Skip to content

Commit

Permalink
Merge pull request #41 from unkeyed/speakeasy-sdk-regen-1722942385
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.8.9
  • Loading branch information
chronark committed Aug 6, 2024
2 parents 9138df6 + f67fefd commit e764d31
Show file tree
Hide file tree
Showing 27 changed files with 213 additions and 128 deletions.
20 changes: 12 additions & 8 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
lockVersion: 2.0.0
id: 4fc4737a-135f-4840-8e6d-42a2b2a2884b
management:
docChecksum: cb57c3e224d3fc744f0f42932b21be86
docChecksum: 5c90969528e4ba20ca9e64ea3b1e6a95
docVersion: 1.0.0
speakeasyVersion: 1.349.2
generationVersion: 2.382.2
releaseVersion: 0.8.8
configChecksum: f26de192591b96f25f0f067caeea31f9
speakeasyVersion: 1.352.2
generationVersion: 2.385.2
releaseVersion: 0.8.9
configChecksum: 8faf54ef797f49985007dd8c70ffeccc
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.5.2
core: 3.5.3
defaultEnabledRetries: 0.2.0
deprecations: 2.81.1
envVarSecurityUsage: 0.2.1
globalSecurity: 2.82.9
envVarSecurityUsage: 0.2.2
globalSecurity: 2.82.10
globalSecurityCallbacks: 0.1.0
globalSecurityFlattening: 0.1.0
globalServerURLs: 2.82.2
Expand Down Expand Up @@ -104,6 +104,7 @@ generatedFiles:
- /models/sdkerrors/errconflict.go
- /models/sdkerrors/errtoomanyrequests.go
- /models/sdkerrors/errinternalservererror.go
- /models/sdkerrors/errdeleteprotected.go
- docs/models/operations/services.md
- docs/models/operations/v1livenessresponsebody.md
- docs/models/operations/v1livenessresponse.md
Expand Down Expand Up @@ -283,6 +284,9 @@ generatedFiles:
- docs/models/sdkerrors/errinternalservererrorcode.md
- docs/models/sdkerrors/errinternalservererrorerror.md
- docs/models/sdkerrors/errinternalservererror.md
- docs/models/sdkerrors/errdeleteprotectedcode.md
- docs/models/sdkerrors/errdeleteprotectederror.md
- docs/models/sdkerrors/errdeleteprotected.md
- docs/sdks/unkey/README.md
- docs/models/operations/option.md
- docs/sdks/liveness/README.md
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.8.8
version: 0.8.9
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
speakeasyVersion: 1.349.2
speakeasyVersion: 1.352.2
sources:
openapi.json:
sourceNamespace: openapi-json
sourceRevisionDigest: sha256:f225ea6bd7d6c1ade6d1e10208bffcdddd73dea45e231767363aba5443c4dca7
sourceBlobDigest: sha256:1014c289c881c466ded581e22ff631cbfb3739af1c8e8665c887bcabae4b8344
sourceRevisionDigest: sha256:6d6296b2170dd24191a23ec6f3088ffc07ae7a57ad0a6db9917b9bd9cd786a62
sourceBlobDigest: sha256:3e1a62a3e16aee8f00a9561a45331b89a01fc8572c439b16fb15c99e33f67c77
tags:
- latest
- main
targets:
go:
source: openapi.json
sourceNamespace: openapi-json
sourceRevisionDigest: sha256:f225ea6bd7d6c1ade6d1e10208bffcdddd73dea45e231767363aba5443c4dca7
sourceBlobDigest: sha256:1014c289c881c466ded581e22ff631cbfb3739af1c8e8665c887bcabae4b8344
sourceRevisionDigest: sha256:6d6296b2170dd24191a23ec6f3088ffc07ae7a57ad0a6db9917b9bd9cd786a62
sourceBlobDigest: sha256:3e1a62a3e16aee8f00a9561a45331b89a01fc8572c439b16fb15c99e33f67c77
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
Expand Down
24 changes: 8 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@ import (
"context"
unkeygo "github.com/unkeyed/unkey-go"
"log"
"os"
)

func main() {
s := unkeygo.New(
unkeygo.WithSecurity(os.Getenv("BEARER_AUTH")),
unkeygo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)

ctx := context.Background()
Expand Down Expand Up @@ -135,12 +134,11 @@ import (
unkeygo "github.com/unkeyed/unkey-go"
"github.com/unkeyed/unkey-go/models/sdkerrors"
"log"
"os"
)

func main() {
s := unkeygo.New(
unkeygo.WithSecurity(os.Getenv("BEARER_AUTH")),
unkeygo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)

ctx := context.Background()
Expand Down Expand Up @@ -220,13 +218,12 @@ import (
"context"
unkeygo "github.com/unkeyed/unkey-go"
"log"
"os"
)

func main() {
s := unkeygo.New(
unkeygo.WithServerIndex(0),
unkeygo.WithSecurity(os.Getenv("BEARER_AUTH")),
unkeygo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)

ctx := context.Background()
Expand All @@ -252,13 +249,12 @@ import (
"context"
unkeygo "github.com/unkeyed/unkey-go"
"log"
"os"
)

func main() {
s := unkeygo.New(
unkeygo.WithServerURL("https://api.unkey.dev"),
unkeygo.WithSecurity(os.Getenv("BEARER_AUTH")),
unkeygo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)

ctx := context.Background()
Expand Down Expand Up @@ -322,12 +318,11 @@ import (
"context"
unkeygo "github.com/unkeyed/unkey-go"
"log"
"os"
)

func main() {
s := unkeygo.New(
unkeygo.WithSecurity(os.Getenv("BEARER_AUTH")),
unkeygo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)

ctx := context.Background()
Expand Down Expand Up @@ -364,12 +359,11 @@ import (
"github.com/unkeyed/unkey-go/retry"
"log"
"models/operations"
"os"
)

func main() {
s := unkeygo.New(
unkeygo.WithSecurity(os.Getenv("BEARER_AUTH")),
unkeygo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)

ctx := context.Background()
Expand Down Expand Up @@ -403,7 +397,6 @@ import (
unkeygo "github.com/unkeyed/unkey-go"
"github.com/unkeyed/unkey-go/retry"
"log"
"os"
)

func main() {
Expand All @@ -419,7 +412,7 @@ func main() {
},
RetryConnectionErrors: false,
}),
unkeygo.WithSecurity(os.Getenv("BEARER_AUTH")),
unkeygo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)

ctx := context.Background()
Expand Down Expand Up @@ -451,12 +444,11 @@ import (
unkeygo "github.com/unkeyed/unkey-go"
"github.com/unkeyed/unkey-go/models/operations"
"log"
"os"
)

func main() {
s := unkeygo.New(
unkeygo.WithSecurity(os.Getenv("BEARER_AUTH")),
unkeygo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
request := 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 @@ -188,4 +188,14 @@ Based on:
### Generated
- [go v0.8.8] .
### Releases
- [Go v0.8.8] https://github.com/unkeyed/unkey-go/releases/tag/v0.8.8 - .
- [Go v0.8.8] https://github.com/unkeyed/unkey-go/releases/tag/v0.8.8 - .

## 2024-08-06 11:06:22
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.352.2 (2.385.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.8.9] .
### Releases
- [Go v0.8.9] https://github.com/unkeyed/unkey-go/releases/tag/v0.8.9 - .
3 changes: 1 addition & 2 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ import (
"context"
unkeygo "github.com/unkeyed/unkey-go"
"log"
"os"
)

func main() {
s := unkeygo.New(
unkeygo.WithSecurity(os.Getenv("BEARER_AUTH")),
unkeygo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)

ctx := context.Background()
Expand Down
2 changes: 1 addition & 1 deletion apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ func (s *Apis) DeleteAPI(ctx context.Context, request operations.DeleteAPIReques
case httpRes.StatusCode == 429:
switch {
case utils.MatchContentType(httpRes.Header.Get("Content-Type"), `application/json`):
var out sdkerrors.ErrTooManyRequests
var out sdkerrors.ErrDeleteProtected
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
}
Expand Down
1 change: 0 additions & 1 deletion docs/models/components/key.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
| `Meta` | map[string]*any* | :heavy_minus_sign: | Any additional metadata you want to store with the key | {<br/>"roles": [<br/>"admin",<br/>"user"<br/>],<br/>"stripeCustomerId": "cus_1234"<br/>} |
| `CreatedAt` | *int64* | :heavy_check_mark: | The unix timestamp in milliseconds when the key was created | 0 |
| `UpdatedAt` | **int64* | :heavy_minus_sign: | The unix timestamp in milliseconds when the key was last updated | 0 |
| `DeletedAt` | **int64* | :heavy_minus_sign: | The unix timestamp in milliseconds when the key was deleted. We don't delete the key outright, you can restore it later. | 0 |
| `Expires` | **int64* | :heavy_minus_sign: | The unix timestamp in milliseconds when the key will expire. If this field is null or undefined, the key is not expiring. | 0 |
| `Remaining` | **int64* | :heavy_minus_sign: | The number of requests that can be made with this key before it becomes invalid. If this field is null or undefined, the key has no request limit. | 1000 |
| `Refill` | [*components.Refill](../../models/components/refill.md) | :heavy_minus_sign: | Unkey allows you to refill remaining verifications on a key on a regular interval. | {<br/>"interval": "daily",<br/>"amount": 10<br/>} |
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `BearerAuth` | **string* | :heavy_minus_sign: | N/A |
| `BearerAuth` | *string* | :heavy_check_mark: | N/A |
Loading

0 comments on commit e764d31

Please sign in to comment.