Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.460.2
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Dec 24, 2024
1 parent 8dbf964 commit 271801c
Show file tree
Hide file tree
Showing 37 changed files with 708 additions and 230 deletions.
72 changes: 52 additions & 20 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
lockVersion: 2.0.0
id: 4fc4737a-135f-4840-8e6d-42a2b2a2884b
management:
docChecksum: aed0c1332c44cace441ba6222252499a
docChecksum: 5cf3e99269a4980fb916005ba7cdccb5
docVersion: 1.0.0
speakeasyVersion: 1.453.4
generationVersion: 2.474.6
releaseVersion: 0.11.0
configChecksum: a062b6a46d3010813d5b8551dd3182c1
speakeasyVersion: 1.460.2
generationVersion: 2.484.0
releaseVersion: 0.12.0
configChecksum: 71353dbefee1832b29202864ab261760
repoURL: https://github.com/unkeyed/unkey-go.git
installationURL: https://github.com/unkeyed/unkey-go
features:
go:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.6
core: 3.5.17
core: 3.6.2
defaultEnabledRetries: 0.2.0
deprecations: 2.81.1
envVarSecurityUsage: 0.3.2
Expand All @@ -25,7 +25,7 @@ features:
ignores: 2.81.1
intellisenseMarkdownSupport: 0.1.0
nullables: 0.1.0
pagination: 2.82.1
pagination: 2.82.2
responseFormat: 0.1.2
retries: 2.83.1
sdkHooks: 0.1.0
Expand Down Expand Up @@ -65,9 +65,9 @@ generatedFiles:
- /models/operations/listoverrides.go
- /models/operations/listpermissions.go
- /models/operations/listroles.go
- /models/operations/ratelimitsetoverride.go
- /models/operations/removepermissions.go
- /models/operations/removeroles.go
- /models/operations/setoverride.go
- /models/operations/setpermissions.go
- /models/operations/setroles.go
- /models/operations/updateidentity.go
Expand Down Expand Up @@ -201,9 +201,6 @@ generatedFiles:
- docs/models/operations/permissions.md
- docs/models/operations/ratelimit.md
- docs/models/operations/ratelimits.md
- docs/models/operations/ratelimitsetoverriderequestbody.md
- docs/models/operations/ratelimitsetoverrideresponse.md
- docs/models/operations/ratelimitsetoverrideresponsebody.md
- docs/models/operations/refill.md
- docs/models/operations/removepermissionspermissions.md
- docs/models/operations/removepermissionsrequestbody.md
Expand All @@ -218,6 +215,9 @@ generatedFiles:
- docs/models/operations/responsebody.md
- docs/models/operations/roles.md
- docs/models/operations/services.md
- docs/models/operations/setoverriderequestbody.md
- docs/models/operations/setoverrideresponse.md
- docs/models/operations/setoverrideresponsebody.md
- docs/models/operations/setpermissionspermissions.md
- docs/models/operations/setpermissionsrequestbody.md
- docs/models/operations/setpermissionsresponse.md
Expand Down Expand Up @@ -388,7 +388,8 @@ examples:
application/json: {"error": {"code": "TOO_MANY_REQUESTS", "docs": "https://unkey.dev/docs/api-reference/errors/code/TOO_MANY_REQUESTS", "message": "<value>", "requestId": "req_1234"}}
"500":
application/json: {"error": {"code": "INTERNAL_SERVER_ERROR", "docs": "https://unkey.dev/docs/api-reference/errors/code/INTERNAL_SERVER_ERROR", "message": "<value>", "requestId": "req_1234"}}
"200": {}
"200":
application/json: {}
createKey:
speakeasy-default-create-key:
requestBody:
Expand Down Expand Up @@ -450,7 +451,8 @@ examples:
application/json: {"error": {"code": "TOO_MANY_REQUESTS", "docs": "https://unkey.dev/docs/api-reference/errors/code/TOO_MANY_REQUESTS", "message": "<value>", "requestId": "req_1234"}}
"500":
application/json: {"error": {"code": "INTERNAL_SERVER_ERROR", "docs": "https://unkey.dev/docs/api-reference/errors/code/INTERNAL_SERVER_ERROR", "message": "<value>", "requestId": "req_1234"}}
"200": {}
"200":
application/json: {}
updateRemaining:
speakeasy-default-update-remaining:
requestBody:
Expand Down Expand Up @@ -538,7 +540,8 @@ examples:
application/json: {"error": {"code": "TOO_MANY_REQUESTS", "docs": "https://unkey.dev/docs/api-reference/errors/code/TOO_MANY_REQUESTS", "message": "<value>", "requestId": "req_1234"}}
"500":
application/json: {"error": {"code": "INTERNAL_SERVER_ERROR", "docs": "https://unkey.dev/docs/api-reference/errors/code/INTERNAL_SERVER_ERROR", "message": "<value>", "requestId": "req_1234"}}
"200": {}
"200":
application/json: {}
setPermissions:
speakeasy-default-set-permissions:
requestBody:
Expand Down Expand Up @@ -600,7 +603,8 @@ examples:
application/json: {"error": {"code": "TOO_MANY_REQUESTS", "docs": "https://unkey.dev/docs/api-reference/errors/code/TOO_MANY_REQUESTS", "message": "<value>", "requestId": "req_1234"}}
"500":
application/json: {"error": {"code": "INTERNAL_SERVER_ERROR", "docs": "https://unkey.dev/docs/api-reference/errors/code/INTERNAL_SERVER_ERROR", "message": "<value>", "requestId": "req_1234"}}
"200": {}
"200":
application/json: {}
setRoles:
speakeasy-default-set-roles:
requestBody:
Expand Down Expand Up @@ -707,7 +711,8 @@ examples:
application/json: {"error": {"code": "DELETE_PROTECTED", "docs": "https://unkey.dev/docs/api-reference/errors/code/DELETE_PROTECTED", "message": "<value>", "requestId": "req_1234"}}
"500":
application/json: {"error": {"code": "INTERNAL_SERVER_ERROR", "docs": "https://unkey.dev/docs/api-reference/errors/code/INTERNAL_SERVER_ERROR", "message": "<value>", "requestId": "req_1234"}}
"200": {}
"200":
application/json: {}
deleteKeys:
speakeasy-default-delete-keys:
requestBody:
Expand Down Expand Up @@ -790,7 +795,8 @@ examples:
application/json: {"error": {"code": "TOO_MANY_REQUESTS", "docs": "https://unkey.dev/docs/api-reference/errors/code/TOO_MANY_REQUESTS", "message": "<value>", "requestId": "req_1234"}}
"500":
application/json: {"error": {"code": "INTERNAL_SERVER_ERROR", "docs": "https://unkey.dev/docs/api-reference/errors/code/INTERNAL_SERVER_ERROR", "message": "<value>", "requestId": "req_1234"}}
"202": {}
"202":
application/json: {}
createPermission:
speakeasy-default-create-permission:
requestBody:
Expand Down Expand Up @@ -831,7 +837,8 @@ examples:
application/json: {"error": {"code": "TOO_MANY_REQUESTS", "docs": "https://unkey.dev/docs/api-reference/errors/code/TOO_MANY_REQUESTS", "message": "<value>", "requestId": "req_1234"}}
"500":
application/json: {"error": {"code": "INTERNAL_SERVER_ERROR", "docs": "https://unkey.dev/docs/api-reference/errors/code/INTERNAL_SERVER_ERROR", "message": "<value>", "requestId": "req_1234"}}
"200": {}
"200":
application/json: {}
getPermission:
speakeasy-default-get-permission:
parameters:
Expand Down Expand Up @@ -913,7 +920,8 @@ examples:
application/json: {"error": {"code": "TOO_MANY_REQUESTS", "docs": "https://unkey.dev/docs/api-reference/errors/code/TOO_MANY_REQUESTS", "message": "<value>", "requestId": "req_1234"}}
"500":
application/json: {"error": {"code": "INTERNAL_SERVER_ERROR", "docs": "https://unkey.dev/docs/api-reference/errors/code/INTERNAL_SERVER_ERROR", "message": "<value>", "requestId": "req_1234"}}
"200": {}
"200":
application/json: {}
getRole:
speakeasy-default-get-role:
parameters:
Expand Down Expand Up @@ -1061,7 +1069,8 @@ examples:
application/json: {"error": {"code": "TOO_MANY_REQUESTS", "docs": "https://unkey.dev/docs/api-reference/errors/code/TOO_MANY_REQUESTS", "message": "<value>", "requestId": "req_1234"}}
"500":
application/json: {"error": {"code": "INTERNAL_SERVER_ERROR", "docs": "https://unkey.dev/docs/api-reference/errors/code/INTERNAL_SERVER_ERROR", "message": "<value>", "requestId": "req_1234"}}
"200": {}
"200":
application/json: {}
whoami:
speakeasy-default-whoami:
requestBody:
Expand Down Expand Up @@ -1102,6 +1111,8 @@ examples:
application/json: {"error": {"code": "TOO_MANY_REQUESTS", "docs": "https://unkey.dev/docs/api-reference/errors/code/TOO_MANY_REQUESTS", "message": "<value>", "requestId": "req_1234"}}
"500":
application/json: {"error": {"code": "INTERNAL_SERVER_ERROR", "docs": "https://unkey.dev/docs/api-reference/errors/code/INTERNAL_SERVER_ERROR", "message": "<value>", "requestId": "req_1234"}}
"200":
application/json: {}
ratelimit.setOverride:
speakeasy-default-ratelimit-set-override:
requestBody:
Expand Down Expand Up @@ -1171,4 +1182,25 @@ examples:
application/json: {"error": {"code": "TOO_MANY_REQUESTS", "docs": "https://unkey.dev/docs/api-reference/errors/code/TOO_MANY_REQUESTS", "message": "<value>", "requestId": "req_1234"}}
"500":
application/json: {"error": {"code": "INTERNAL_SERVER_ERROR", "docs": "https://unkey.dev/docs/api-reference/errors/code/INTERNAL_SERVER_ERROR", "message": "<value>", "requestId": "req_1234"}}
setOverride:
speakeasy-default-set-override:
requestBody:
application/json: {"namespaceId": "rlns_1234", "namespaceName": "email.outbound", "identifier": "user_123", "limit": 10, "duration": 60000}
responses:
"200":
application/json: {"overrideId": "over_123"}
"400":
application/json: {"error": {"code": "BAD_REQUEST", "docs": "https://unkey.dev/docs/api-reference/errors/code/BAD_REQUEST", "message": "<value>", "requestId": "req_1234"}}
"401":
application/json: {"error": {"code": "UNAUTHORIZED", "docs": "https://unkey.dev/docs/api-reference/errors/code/UNAUTHORIZED", "message": "<value>", "requestId": "req_1234"}}
"403":
application/json: {"error": {"code": "FORBIDDEN", "docs": "https://unkey.dev/docs/api-reference/errors/code/FORBIDDEN", "message": "<value>", "requestId": "req_1234"}}
"404":
application/json: {"error": {"code": "NOT_FOUND", "docs": "https://unkey.dev/docs/api-reference/errors/code/NOT_FOUND", "message": "<value>", "requestId": "req_1234"}}
"409":
application/json: {"error": {"code": "CONFLICT", "docs": "https://unkey.dev/docs/api-reference/errors/code/CONFLICT", "message": "<value>", "requestId": "req_1234"}}
"429":
application/json: {"error": {"code": "TOO_MANY_REQUESTS", "docs": "https://unkey.dev/docs/api-reference/errors/code/TOO_MANY_REQUESTS", "message": "<value>", "requestId": "req_1234"}}
"500":
application/json: {"error": {"code": "INTERNAL_SERVER_ERROR", "docs": "https://unkey.dev/docs/api-reference/errors/code/INTERNAL_SERVER_ERROR", "message": "<value>", "requestId": "req_1234"}}
generatedTests: {}
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
go:
version: 0.11.0
version: 0.12.0
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.453.4
speakeasyVersion: 1.460.2
sources:
openapi.json:
sourceNamespace: openapi-json
sourceRevisionDigest: sha256:805c458054c8cb789ff7b9496895307342a6e9a3cd48183010664f8dc91edf2d
sourceBlobDigest: sha256:7c411023d91510110ee6a90feac26e69e43d0c631fc7644606b9d4aa293dc629
sourceRevisionDigest: sha256:efd31b857dc482079e573d49ac954a6668bf5a51062198fa555e21952a7763c2
sourceBlobDigest: sha256:852b1a345f581d958c5f93243f85191000e087b37a281e616619238a754c5b4c
tags:
- latest
- speakeasy-sdk-regen-1731025759
- speakeasy-sdk-regen-1733790794
- 1.0.0
targets:
go:
source: openapi.json
sourceNamespace: openapi-json
sourceRevisionDigest: sha256:805c458054c8cb789ff7b9496895307342a6e9a3cd48183010664f8dc91edf2d
sourceBlobDigest: sha256:7c411023d91510110ee6a90feac26e69e43d0c631fc7644606b9d4aa293dc629
sourceRevisionDigest: sha256:efd31b857dc482079e573d49ac954a6668bf5a51062198fa555e21952a7763c2
sourceBlobDigest: sha256:852b1a345f581d958c5f93243f85191000e087b37a281e616619238a754c5b4c
codeSamplesNamespace: openapi-json-go-code-samples
codeSamplesRevisionDigest: sha256:d87463f60ba7dcd50c93a255a7f50017204d67df2881cb3bbe41b1bb5f2ab7a9
codeSamplesRevisionDigest: sha256:313f5ed7b6cabfbda33d36d53b7aacc34d1e8390de5c1150a4b41f872bbd1c16
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@ import (
)

func main() {
ctx := context.Background()

s := unkeygo.New(
unkeygo.WithSecurity("UNKEY_ROOT_KEY"),
)

ctx := context.Background()
res, err := s.Liveness.V1Liveness(ctx)
if err != nil {
log.Fatal(err)
Expand Down Expand Up @@ -133,7 +134,7 @@ func main() {

### [Ratelimit](docs/sdks/ratelimit/README.md)

* [RatelimitSetOverride](docs/sdks/ratelimit/README.md#ratelimitsetoverride)
* [SetOverride](docs/sdks/ratelimit/README.md#setoverride)
* [ListOverrides](docs/sdks/ratelimit/README.md#listoverrides)
* [GetOverride](docs/sdks/ratelimit/README.md#getoverride)

Expand Down Expand Up @@ -180,11 +181,12 @@ import (
)

func main() {
ctx := context.Background()

s := unkeygo.New(
unkeygo.WithSecurity("UNKEY_ROOT_KEY"),
)

ctx := context.Background()
res, err := s.Liveness.V1Liveness(ctx)
if err != nil {

Expand Down Expand Up @@ -257,12 +259,13 @@ import (
)

func main() {
ctx := context.Background()

s := unkeygo.New(
unkeygo.WithServerURL("https://api.unkey.dev"),
unkeygo.WithSecurity("UNKEY_ROOT_KEY"),
)

ctx := context.Background()
res, err := s.Liveness.V1Liveness(ctx)
if err != nil {
log.Fatal(err)
Expand Down Expand Up @@ -326,11 +329,12 @@ import (
)

func main() {
ctx := context.Background()

s := unkeygo.New(
unkeygo.WithSecurity("UNKEY_ROOT_KEY"),
)

ctx := context.Background()
res, err := s.Liveness.V1Liveness(ctx)
if err != nil {
log.Fatal(err)
Expand Down Expand Up @@ -361,11 +365,12 @@ import (
)

func main() {
ctx := context.Background()

s := unkeygo.New(
unkeygo.WithSecurity("UNKEY_ROOT_KEY"),
)

ctx := context.Background()
res, err := s.Liveness.V1Liveness(ctx, operations.WithRetries(
retry.Config{
Strategy: "backoff",
Expand Down Expand Up @@ -399,6 +404,8 @@ import (
)

func main() {
ctx := context.Background()

s := unkeygo.New(
unkeygo.WithRetryConfig(
retry.Config{
Expand All @@ -414,7 +421,6 @@ func main() {
unkeygo.WithSecurity("UNKEY_ROOT_KEY"),
)

ctx := context.Background()
res, err := s.Liveness.V1Liveness(ctx)
if err != nil {
log.Fatal(err)
Expand Down Expand Up @@ -446,11 +452,12 @@ import (
)

func main() {
ctx := context.Background()

s := unkeygo.New(
unkeygo.WithSecurity("UNKEY_ROOT_KEY"),
)

ctx := context.Background()
res, err := s.Identities.ListIdentities(ctx, operations.ListIdentitiesRequest{
Limit: unkeygo.Int64(100),
})
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,4 +278,14 @@ Based on:
### Generated
- [go v0.11.0] .
### Releases
- [Go v0.11.0] https://github.com/unkeyed/unkey-go/releases/tag/v0.11.0 - .
- [Go v0.11.0] https://github.com/unkeyed/unkey-go/releases/tag/v0.11.0 - .

## 2024-12-24 00:30:06
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.460.2 (2.484.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.12.0] .
### Releases
- [Go v0.12.0] https://github.com/unkeyed/unkey-go/releases/tag/v0.12.0 - .
3 changes: 2 additions & 1 deletion USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ import (
)

func main() {
ctx := context.Background()

s := unkeygo.New(
unkeygo.WithSecurity("UNKEY_ROOT_KEY"),
)

ctx := context.Background()
res, err := s.Liveness.V1Liveness(ctx)
if err != nil {
log.Fatal(err)
Expand Down
Loading

0 comments on commit 271801c

Please sign in to comment.