Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/unkeyed/sdk-go
Browse files Browse the repository at this point in the history
  • Loading branch information
chronark committed Oct 28, 2024
2 parents 120dc71 + 50b967d commit 92e9acd
Show file tree
Hide file tree
Showing 9 changed files with 56 additions and 30 deletions.
10 changes: 5 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 4fc4737a-135f-4840-8e6d-42a2b2a2884b
management:
docChecksum: 59dd02148a920cd69cef637da74fab37
docChecksum: f56588fc2d036bcae3411872cb7a4f6b
docVersion: 1.0.0
speakeasyVersion: 1.418.1
generationVersion: 2.438.3
releaseVersion: 0.9.4
configChecksum: 117778630705356958a9f1d4317948b4
speakeasyVersion: 1.422.1
generationVersion: 2.438.15
releaseVersion: 0.9.5
configChecksum: 2ed914345363c8de34fb47a258642372
repoURL: https://github.com/unkeyed/unkey-go.git
installationURL: https://github.com/unkeyed/unkey-go
features:
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
go:
version: 0.9.4
version: 0.9.5
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
16 changes: 11 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
speakeasyVersion: 1.418.1
speakeasyVersion: 1.422.1
sources:
openapi.json:
sourceNamespace: openapi-json
sourceRevisionDigest: sha256:f7da09f3f786a654f681968a9472f7b1fb1f2cfd28a5de9fb0e22eb28684b49e
sourceBlobDigest: sha256:ccf76ebe23afdfc9add4a94cd104a04a6f32d14396733d0969409105e1e4f71e
sourceRevisionDigest: sha256:83052d10b562ee373d66b562b62e25ef9cc1b75b88c8fef8e05b48c99efb53d0
sourceBlobDigest: sha256:43668944807ad4c9cb429c37c516be26fe2a14b9165957d22d277e6eee6ed55c
tags:
- latest
- main
targets:
go:
source: openapi.json
sourceNamespace: openapi-json
sourceRevisionDigest: sha256:f7da09f3f786a654f681968a9472f7b1fb1f2cfd28a5de9fb0e22eb28684b49e
sourceBlobDigest: sha256:ccf76ebe23afdfc9add4a94cd104a04a6f32d14396733d0969409105e1e4f71e
sourceRevisionDigest: sha256:83052d10b562ee373d66b562b62e25ef9cc1b75b88c8fef8e05b48c99efb53d0
sourceBlobDigest: sha256:43668944807ad4c9cb429c37c516be26fe2a14b9165957d22d277e6eee6ed55c
codeSamplesNamespace: openapi-json-code-samples
codeSamplesRevisionDigest: sha256:6120e6bd38b7b13362ae9167c517e492d8afb26c9ca537184ce393ee4b8aa23f
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand All @@ -26,3 +28,7 @@ workflow:
go:
target: go
source: openapi.json
codeSamples:
registry:
location: registry.speakeasyapi.dev/unkey/unkey/openapi-json-code-samples
blocking: false
4 changes: 4 additions & 0 deletions .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ targets:
go:
target: go
source: openapi.json
codeSamples:
registry:
location: registry.speakeasyapi.dev/unkey/unkey/openapi-json-code-samples
blocking: false
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,4 +248,14 @@ Based on:
### Generated
- [go v0.9.4] .
### Releases
- [Go v0.9.4] https://github.com/unkeyed/unkey-go/releases/tag/v0.9.4 - .
- [Go v0.9.4] https://github.com/unkeyed/unkey-go/releases/tag/v0.9.4 - .

## 2024-10-28 09:47:01
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.422.1 (2.438.15) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.9.5] .
### Releases
- [Go v0.9.5] https://github.com/unkeyed/unkey-go/releases/tag/v0.9.5 - .
2 changes: 2 additions & 0 deletions docs/models/components/code.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Possible values are:
- INSUFFICIENT_PERMISSIONS: you do not have the required permissions to perform this action
- EXPIRED: The key was only valid for a certain time and has expired.

These are validation codes, the HTTP status will be 200.



## Values
Expand Down
30 changes: 15 additions & 15 deletions docs/models/components/v1keysverifykeyresponse.md

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions models/components/v1keysverifykeyresponse.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ func (o *V1KeysVerifyKeyResponseRatelimit) GetReset() int64 {
// - DISABLED: the key is disabled
// - INSUFFICIENT_PERMISSIONS: you do not have the required permissions to perform this action
// - EXPIRED: The key was only valid for a certain time and has expired.
//
// These are validation codes, the HTTP status will be 200.
type Code string

const (
Expand Down Expand Up @@ -154,6 +156,8 @@ type V1KeysVerifyKeyResponse struct {
// - INSUFFICIENT_PERMISSIONS: you do not have the required permissions to perform this action
// - EXPIRED: The key was only valid for a certain time and has expired.
//
// These are validation codes, the HTTP status will be 200.
//
Code Code `json:"code"`
// Sets the key to be enabled or disabled. Disabled keys will not verify.
Enabled *bool `json:"enabled,omitempty"`
Expand Down
6 changes: 3 additions & 3 deletions unkey.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ func New(opts ...SDKOption) *Unkey {
sdkConfiguration: sdkConfiguration{
Language: "go",
OpenAPIDocVersion: "1.0.0",
SDKVersion: "0.9.4",
GenVersion: "2.438.3",
UserAgent: "speakeasy-sdk/go 0.9.4 2.438.3 1.0.0 github.com/unkeyed/unkey-go",
SDKVersion: "0.9.5",
GenVersion: "2.438.15",
UserAgent: "speakeasy-sdk/go 0.9.5 2.438.15 1.0.0 github.com/unkeyed/unkey-go",
Hooks: hooks.New(),
},
}
Expand Down

0 comments on commit 92e9acd

Please sign in to comment.