Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.455.3
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Dec 14, 2024
1 parent 8dbf964 commit 95843de
Show file tree
Hide file tree
Showing 36 changed files with 445 additions and 166 deletions.
42 changes: 32 additions & 10 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.455.3
generationVersion: 2.479.3
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.0
defaultEnabledRetries: 0.2.0
deprecations: 2.81.1
envVarSecurityUsage: 0.3.2
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 @@ -1102,6 +1102,7 @@ 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": {}
ratelimit.setOverride:
speakeasy-default-ratelimit-set-override:
requestBody:
Expand Down Expand Up @@ -1171,4 +1172,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.455.3
sources:
openapi.json:
sourceNamespace: openapi-json
sourceRevisionDigest: sha256:805c458054c8cb789ff7b9496895307342a6e9a3cd48183010664f8dc91edf2d
sourceBlobDigest: sha256:7c411023d91510110ee6a90feac26e69e43d0c631fc7644606b9d4aa293dc629
sourceRevisionDigest: sha256:6b9adc953e77ae6b847b8de16afd4da75677155e62eb3c9dfdde9c24cf268bce
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:6b9adc953e77ae6b847b8de16afd4da75677155e62eb3c9dfdde9c24cf268bce
sourceBlobDigest: sha256:852b1a345f581d958c5f93243f85191000e087b37a281e616619238a754c5b4c
codeSamplesNamespace: openapi-json-go-code-samples
codeSamplesRevisionDigest: sha256:d87463f60ba7dcd50c93a255a7f50017204d67df2881cb3bbe41b1bb5f2ab7a9
codeSamplesRevisionDigest: sha256:87b3af5fb3b4b0813c51a8d2241fecabf312aa47c0e75244d71ef793a6ad3f5e
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-14 00:31:44
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.455.3 (2.479.3) 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
20 changes: 20 additions & 0 deletions apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ func (s *Apis) GetAPI(ctx context.Context, request operations.GetAPIRequest, opt
return nil, err
}

for k, v := range o.SetHeaders {
req.Header.Set(k, v)
}

globalRetryConfig := s.sdkConfiguration.RetryConfig
retryConfig := o.Retries
if retryConfig == nil {
Expand Down Expand Up @@ -423,6 +427,10 @@ func (s *Apis) CreateAPI(ctx context.Context, request operations.CreateAPIReques
return nil, err
}

for k, v := range o.SetHeaders {
req.Header.Set(k, v)
}

globalRetryConfig := s.sdkConfiguration.RetryConfig
retryConfig := o.Retries
if retryConfig == nil {
Expand Down Expand Up @@ -766,6 +774,10 @@ func (s *Apis) ListKeys(ctx context.Context, request operations.ListKeysRequest,
return nil, err
}

for k, v := range o.SetHeaders {
req.Header.Set(k, v)
}

globalRetryConfig := s.sdkConfiguration.RetryConfig
retryConfig := o.Retries
if retryConfig == nil {
Expand Down Expand Up @@ -1111,6 +1123,10 @@ func (s *Apis) DeleteAPI(ctx context.Context, request operations.DeleteAPIReques
return nil, err
}

for k, v := range o.SetHeaders {
req.Header.Set(k, v)
}

globalRetryConfig := s.sdkConfiguration.RetryConfig
retryConfig := o.Retries
if retryConfig == nil {
Expand Down Expand Up @@ -1456,6 +1472,10 @@ func (s *Apis) DeleteKeys(ctx context.Context, request operations.DeleteKeysRequ
return nil, err
}

for k, v := range o.SetHeaders {
req.Header.Set(k, v)
}

globalRetryConfig := s.sdkConfiguration.RetryConfig
retryConfig := o.Retries
if retryConfig == nil {
Expand Down
Loading

0 comments on commit 95843de

Please sign in to comment.