Skip to content

Commit

Permalink
Merge pull request #11 from unkeyed/speakeasy-sdk-regen-1716824559
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate
  • Loading branch information
chronark authored May 27, 2024
2 parents e9de46e + a5589a1 commit c9d44fe
Show file tree
Hide file tree
Showing 79 changed files with 1,360 additions and 300 deletions.
70 changes: 46 additions & 24 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
lockVersion: 2.0.0
id: 4fc4737a-135f-4840-8e6d-42a2b2a2884b
management:
docChecksum: 7621b6bd3bfaca0bcd2b0dc8150e0325
docChecksum: 9ef18a373ab97ecd377d1039e3d02538
docVersion: 1.0.0
speakeasyVersion: 1.286.3
generationVersion: 2.329.0
releaseVersion: 0.2.0
configChecksum: f7dcb627a24c2bc24f40a5b483adfe68
speakeasyVersion: 1.296.1
generationVersion: 2.338.1
releaseVersion: 0.3.0
configChecksum: 2498dd6a83123f53e18f3a1cf63243d3
repoURL: https://github.com/unkeyed/unkey-go.git
installationURL: https://github.com/unkeyed/unkey-go
features:
go:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.4
core: 3.4.8
core: 3.4.10
deprecations: 2.81.1
globalSecurity: 2.82.9
globalSecurityCallbacks: 0.1.0
globalSecurityFlattening: 0.1.0
globalServerURLs: 2.82.2
ignores: 2.81.1
intellisenseMarkdownSupport: 0.1.0
nullables: 0.1.0
responseFormat: 0.1.1
responseFormat: 0.1.2
sdkHooks: 0.1.0
generatedFiles:
- liveness.go
Expand Down Expand Up @@ -53,59 +54,78 @@ generatedFiles:
- /models/operations/getkey.go
- /models/operations/deletekey.go
- /models/operations/createkey.go
- /models/operations/verifykey.go
- /models/operations/updatekey.go
- /models/operations/updateremaining.go
- /models/operations/getverifications.go
- /models/operations/getapi.go
- /models/operations/listkeys.go
- /models/operations/deletekeys.go
- /models/operations/limit.go
- /models/operations/v1migrationscreatekeys.go
- /models/components/httpmetadata.go
- /models/components/key.go
- /models/components/v1keysverifykeyresponse.go
- /models/components/v1keysverifykeyrequest.go
- /models/components/security.go
- /models/sdkerrors/errbadrequest.go
- /models/sdkerrors/errunauthorized.go
- /models/sdkerrors/errforbidden.go
- /models/sdkerrors/errnotfound.go
- /models/sdkerrors/errconflict.go
- /models/sdkerrors/errtoomanyrequests.go
- /models/sdkerrors/errinternalservererror.go
- /models/components/key.go
- /models/components/v1keysverifykeyresponse.go
- /models/components/v1keysverifykeyrequest.go
- /models/components/security.go
- docs/models/operations/createapirequestbody.md
- docs/models/operations/createapiresponsebody.md
- docs/models/operations/createapiresponse.md
- docs/models/operations/deleteapirequestbody.md
- docs/models/operations/deleteapiresponsebody.md
- docs/models/operations/deleteapiresponse.md
- docs/models/operations/services.md
- docs/models/operations/v1livenessresponsebody.md
- docs/models/operations/v1livenessresponse.md
- docs/models/operations/getkeyrequest.md
- docs/models/operations/getkeyresponse.md
- docs/models/operations/deletekeyrequestbody.md
- docs/models/operations/deletekeyresponsebody.md
- docs/models/operations/deletekeyresponse.md
- docs/models/operations/interval.md
- docs/models/operations/refill.md
- docs/models/operations/type.md
- docs/models/operations/ratelimit.md
- docs/models/operations/createkeyrequestbody.md
- docs/models/operations/createkeyresponsebody.md
- docs/models/operations/createkeyresponse.md
- docs/models/operations/verifykeyresponse.md
- docs/models/operations/updatekeytype.md
- docs/models/operations/updatekeyratelimit.md
- docs/models/operations/updatekeyinterval.md
- docs/models/operations/updatekeyrefill.md
- docs/models/operations/updatekeyrequestbody.md
- docs/models/operations/updatekeyresponsebody.md
- docs/models/operations/updatekeyresponse.md
- docs/models/operations/op.md
- docs/models/operations/updateremainingrequestbody.md
- docs/models/operations/updateremainingresponsebody.md
- docs/models/operations/updateremainingresponse.md
- docs/models/operations/granularity.md
- docs/models/operations/getverificationsrequest.md
- docs/models/operations/verifications.md
- docs/models/operations/getverificationsresponsebody.md
- docs/models/operations/getverificationsresponse.md
- docs/models/operations/getapirequest.md
- docs/models/operations/getapiresponsebody.md
- docs/models/operations/getapiresponse.md
- docs/models/operations/listkeysrequest.md
- docs/models/operations/listkeysresponsebody.md
- docs/models/operations/listkeysresponse.md
- docs/models/operations/deletekeysrequestbody.md
- docs/models/operations/deletekeysresponsebody.md
- docs/models/operations/deletekeysresponse.md
- docs/models/operations/resources.md
- docs/models/operations/limitrequestbody.md
- docs/models/operations/limitresponsebody.md
- docs/models/operations/limitresponse.md
- docs/models/operations/variant.md
- docs/models/operations/hash.md
- docs/models/operations/v1migrationscreatekeysinterval.md
Expand All @@ -114,6 +134,21 @@ generatedFiles:
- docs/models/operations/v1migrationscreatekeysratelimit.md
- docs/models/operations/requestbody.md
- docs/models/operations/v1migrationscreatekeysresponsebody.md
- docs/models/operations/v1migrationscreatekeysresponse.md
- docs/models/components/httpmetadata.md
- docs/models/components/interval.md
- docs/models/components/refill.md
- docs/models/components/type.md
- docs/models/components/ratelimit.md
- docs/models/components/key.md
- docs/models/components/v1keysverifykeyresponseratelimit.md
- docs/models/components/code.md
- docs/models/components/v1keysverifykeyresponse.md
- docs/models/components/permissions.md
- docs/models/components/authorization.md
- docs/models/components/v1keysverifykeyrequestratelimit.md
- docs/models/components/v1keysverifykeyrequest.md
- docs/models/components/security.md
- docs/models/sdkerrors/code.md
- docs/models/sdkerrors/error.md
- docs/models/sdkerrors/errbadrequest.md
Expand All @@ -135,19 +170,6 @@ generatedFiles:
- docs/models/sdkerrors/errinternalservererrorcode.md
- docs/models/sdkerrors/errinternalservererrorerror.md
- docs/models/sdkerrors/errinternalservererror.md
- docs/models/components/interval.md
- docs/models/components/refill.md
- docs/models/components/type.md
- docs/models/components/ratelimit.md
- docs/models/components/key.md
- docs/models/components/v1keysverifykeyresponseratelimit.md
- docs/models/components/code.md
- docs/models/components/v1keysverifykeyresponse.md
- docs/models/components/permissions.md
- docs/models/components/authorization.md
- docs/models/components/v1keysverifykeyrequestratelimit.md
- docs/models/components/v1keysverifykeyrequest.md
- docs/models/components/security.md
- docs/sdks/unkey/README.md
- docs/sdks/liveness/README.md
- docs/sdks/keys/README.md
Expand Down
3 changes: 2 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
go:
version: 0.2.0
version: 0.3.0
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
flattenGlobalSecurity: true
imports:
Expand Down
12 changes: 5 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
speakeasyVersion: 1.286.3
speakeasyVersion: 1.296.1
sources:
openapi.json:
sourceNamespace: openapi-json
sourceRevisionDigest: sha256:ea1217f15e8f55b82aace2a90dc970e731407804e4a60879d0d69bcfd7538aaa
sourceBlobDigest: sha256:e692b07a5ebd9d35e5c5ca35d98f0715dabd7647ad584b71114af07504e2b539
sourceRevisionDigest: sha256:05b10ec1f0babf41de0f75b23d22fb8832b0be7a230046afcda6632b38133871
sourceBlobDigest: sha256:f8f5d1be63f97653cc910a7d31f5c89f65df52988c9fd4d1a303d7a5ecfaf4c1
tags:
- latest
- main
targets:
go:
source: openapi.json
sourceNamespace: openapi-json
sourceRevisionDigest: sha256:ea1217f15e8f55b82aace2a90dc970e731407804e4a60879d0d69bcfd7538aaa
sourceBlobDigest: sha256:e692b07a5ebd9d35e5c5ca35d98f0715dabd7647ad584b71114af07504e2b539
sourceRevisionDigest: sha256:05b10ec1f0babf41de0f75b23d22fb8832b0be7a230046afcda6632b38133871
sourceBlobDigest: sha256:f8f5d1be63f97653cc910a7d31f5c89f65df52988c9fd4d1a303d7a5ecfaf4c1
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
Expand All @@ -27,5 +27,3 @@ workflow:
go:
target: go
source: openapi.json
codeSamples:
output: codeSamples.yaml
23 changes: 5 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package main
import (
"context"
unkeygo "github.com/unkeyed/unkey-go"
"github.com/unkeyed/unkey-go/models/components"
"github.com/unkeyed/unkey-go/models/operations"
"log"
)
Expand All @@ -28,17 +27,15 @@ func main() {
s := unkeygo.New(
unkeygo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)

request := operations.CreateAPIRequestBody{
Name: "my-api",
}

ctx := context.Background()
res, err := s.CreateAPI(ctx, request)
if err != nil {
log.Fatal(err)
}
if res != nil {
if res.Object != nil {
// handle response
}
}
Expand Down Expand Up @@ -72,6 +69,7 @@ func main() {

* [GetAPI](docs/sdks/apis/README.md#getapi)
* [ListKeys](docs/sdks/apis/README.md#listkeys)
* [DeleteKeys](docs/sdks/apis/README.md#deletekeys)

### [Ratelimits](docs/sdks/ratelimits/README.md)

Expand Down Expand Up @@ -107,7 +105,6 @@ import (
"context"
"errors"
unkeygo "github.com/unkeyed/unkey-go"
"github.com/unkeyed/unkey-go/models/components"
"github.com/unkeyed/unkey-go/models/operations"
"github.com/unkeyed/unkey-go/models/sdkerrors"
"log"
Expand All @@ -117,11 +114,9 @@ func main() {
s := unkeygo.New(
unkeygo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)

request := operations.CreateAPIRequestBody{
Name: "my-api",
}

ctx := context.Background()
res, err := s.CreateAPI(ctx, request)
if err != nil {
Expand Down Expand Up @@ -198,7 +193,6 @@ package main
import (
"context"
unkeygo "github.com/unkeyed/unkey-go"
"github.com/unkeyed/unkey-go/models/components"
"github.com/unkeyed/unkey-go/models/operations"
"log"
)
Expand All @@ -208,17 +202,15 @@ func main() {
unkeygo.WithServerIndex(0),
unkeygo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)

request := operations.CreateAPIRequestBody{
Name: "my-api",
}

ctx := context.Background()
res, err := s.CreateAPI(ctx, request)
if err != nil {
log.Fatal(err)
}
if res != nil {
if res.Object != nil {
// handle response
}
}
Expand All @@ -235,7 +227,6 @@ package main
import (
"context"
unkeygo "github.com/unkeyed/unkey-go"
"github.com/unkeyed/unkey-go/models/components"
"github.com/unkeyed/unkey-go/models/operations"
"log"
)
Expand All @@ -245,17 +236,15 @@ func main() {
unkeygo.WithServerURL("https://api.unkey.dev"),
unkeygo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)

request := operations.CreateAPIRequestBody{
Name: "my-api",
}

ctx := context.Background()
res, err := s.CreateAPI(ctx, request)
if err != nil {
log.Fatal(err)
}
if res != nil {
if res.Object != nil {
// handle response
}
}
Expand Down Expand Up @@ -318,17 +307,15 @@ func main() {
s := unkeygo.New(
unkeygo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)

request := operations.CreateAPIRequestBody{
Name: "my-api",
}

ctx := context.Background()
res, err := s.CreateAPI(ctx, request)
if err != nil {
log.Fatal(err)
}
if res != nil {
if res.Object != nil {
// handle response
}
}
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,14 @@ Based on:
### Generated
- [go v0.2.0] .
### Releases
- [Go v0.2.0] https://github.com/unkeyed/unkey-go/releases/tag/v0.2.0 - .
- [Go v0.2.0] https://github.com/unkeyed/unkey-go/releases/tag/v0.2.0 - .

## 2024-05-27 15:42:36
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.296.1 (2.338.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.3.0] .
### Releases
- [Go v0.3.0] https://github.com/unkeyed/unkey-go/releases/tag/v0.3.0 - .
5 changes: 1 addition & 4 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package main
import (
"context"
unkeygo "github.com/unkeyed/unkey-go"
"github.com/unkeyed/unkey-go/models/components"
"github.com/unkeyed/unkey-go/models/operations"
"log"
)
Expand All @@ -14,17 +13,15 @@ func main() {
s := unkeygo.New(
unkeygo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)

request := operations.CreateAPIRequestBody{
Name: "my-api",
}

ctx := context.Background()
res, err := s.CreateAPI(ctx, request)
if err != nil {
log.Fatal(err)
}
if res != nil {
if res.Object != nil {
// handle response
}
}
Expand Down
Loading

0 comments on commit c9d44fe

Please sign in to comment.