Skip to content

Commit

Permalink
Merge pull request #9 from unkeyed/speakeasy-sdk-regen-1715449204
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate
  • Loading branch information
chronark authored May 14, 2024
2 parents b39018f + abc6405 commit 0f9a2dc
Show file tree
Hide file tree
Showing 52 changed files with 256 additions and 1,638 deletions.
27 changes: 7 additions & 20 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
lockVersion: 2.0.0
id: 4fc4737a-135f-4840-8e6d-42a2b2a2884b
management:
docChecksum: a715ffbc95c5418289d86dc35921e0e8
docChecksum: 7621b6bd3bfaca0bcd2b0dc8150e0325
docVersion: 1.0.0
speakeasyVersion: 1.286.0
generationVersion: 2.326.3
releaseVersion: 0.1.9
configChecksum: 804fe5269ba412bff73d4706ac012430
speakeasyVersion: 1.286.3
generationVersion: 2.329.0
releaseVersion: 0.2.0
configChecksum: f7dcb627a24c2bc24f40a5b483adfe68
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.7
deprecations: 2.81.1
core: 3.4.8
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
Expand Down Expand Up @@ -49,9 +49,6 @@ generatedFiles:
- internal/utils/utils.go
- /models/operations/createapi.go
- /models/operations/deleteapi.go
- /models/operations/deprecatedcreatekey.go
- /models/operations/deprecatedverifykey.go
- /models/operations/deprecatedlistkeys.go
- /models/operations/v1liveness.go
- /models/operations/getkey.go
- /models/operations/deletekey.go
Expand All @@ -78,16 +75,6 @@ generatedFiles:
- docs/models/operations/createapiresponsebody.md
- docs/models/operations/deleteapirequestbody.md
- docs/models/operations/deleteapiresponsebody.md
- docs/models/operations/deprecatedcreatekeytype.md
- docs/models/operations/deprecatedcreatekeyratelimit.md
- docs/models/operations/deprecatedcreatekeyrequestbody.md
- docs/models/operations/deprecatedcreatekeyresponsebody.md
- docs/models/operations/deprecatedverifykeyrequestbody.md
- docs/models/operations/deprecatedverifykeyratelimit.md
- docs/models/operations/code.md
- docs/models/operations/deprecatedverifykeyresponsebody.md
- docs/models/operations/deprecatedlistkeysrequest.md
- docs/models/operations/deprecatedlistkeysresponsebody.md
- docs/models/operations/services.md
- docs/models/operations/v1livenessresponsebody.md
- docs/models/operations/getkeyrequest.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.1.9
version: 0.2.0
additionalDependencies: {}
clientServerStatusCodesAsErrors: true
flattenGlobalSecurity: 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.286.0
speakeasyVersion: 1.286.3
sources:
openapi.json:
sourceNamespace: openapi-json
sourceRevisionDigest: sha256:ac05bb0f5c3a362720650d5dacb4c16503a78f8b0aaebd6d9525fb27869028b2
sourceBlobDigest: sha256:f0cdc501f15708ac39aefbdeb32553e5ce6a19b4dc32f7e3976c1b91b53eb6ba
sourceRevisionDigest: sha256:ea1217f15e8f55b82aace2a90dc970e731407804e4a60879d0d69bcfd7538aaa
sourceBlobDigest: sha256:e692b07a5ebd9d35e5c5ca35d98f0715dabd7647ad584b71114af07504e2b539
tags:
- latest
- main
targets:
go:
source: openapi.json
sourceNamespace: openapi-json
sourceRevisionDigest: sha256:ac05bb0f5c3a362720650d5dacb4c16503a78f8b0aaebd6d9525fb27869028b2
sourceBlobDigest: sha256:f0cdc501f15708ac39aefbdeb32553e5ce6a19b4dc32f7e3976c1b91b53eb6ba
sourceRevisionDigest: sha256:ea1217f15e8f55b82aace2a90dc970e731407804e4a60879d0d69bcfd7538aaa
sourceBlobDigest: sha256:e692b07a5ebd9d35e5c5ca35d98f0715dabd7647ad584b71114af07504e2b539
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
Expand Down
57 changes: 27 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ package main

import (
"context"
"github.com/unkeyed/unkey"
"github.com/unkeyed/unkey/models/components"
"github.com/unkeyed/unkey/models/operations"
unkeygo "github.com/unkeyed/unkey-go"
"github.com/unkeyed/unkey-go/models/components"
"github.com/unkeyed/unkey-go/models/operations"
"log"
)

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

request := operations.CreateAPIRequestBody{
Expand All @@ -53,9 +53,6 @@ func main() {

* [CreateAPI](docs/sdks/unkey/README.md#createapi)
* [DeleteAPI](docs/sdks/unkey/README.md#deleteapi)
* [DeprecatedCreateKey](docs/sdks/unkey/README.md#deprecatedcreatekey)
* [~~DeprecatedVerifyKey~~](docs/sdks/unkey/README.md#deprecatedverifykey) - :warning: **Deprecated**
* [DeprecatedListKeys](docs/sdks/unkey/README.md#deprecatedlistkeys)

### [Liveness](docs/sdks/liveness/README.md)

Expand Down Expand Up @@ -109,16 +106,16 @@ package main
import (
"context"
"errors"
"github.com/unkeyed/unkey"
"github.com/unkeyed/unkey/models/components"
"github.com/unkeyed/unkey/models/operations"
"github.com/unkeyed/unkey/models/sdkerrors"
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"
)

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

request := operations.CreateAPIRequestBody{
Expand Down Expand Up @@ -200,16 +197,16 @@ package main

import (
"context"
"github.com/unkeyed/unkey"
"github.com/unkeyed/unkey/models/components"
"github.com/unkeyed/unkey/models/operations"
unkeygo "github.com/unkeyed/unkey-go"
"github.com/unkeyed/unkey-go/models/components"
"github.com/unkeyed/unkey-go/models/operations"
"log"
)

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

request := operations.CreateAPIRequestBody{
Expand Down Expand Up @@ -237,16 +234,16 @@ package main

import (
"context"
"github.com/unkeyed/unkey"
"github.com/unkeyed/unkey/models/components"
"github.com/unkeyed/unkey/models/operations"
unkeygo "github.com/unkeyed/unkey-go"
"github.com/unkeyed/unkey-go/models/components"
"github.com/unkeyed/unkey-go/models/operations"
"log"
)

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

request := operations.CreateAPIRequestBody{
Expand Down Expand Up @@ -312,14 +309,14 @@ package main

import (
"context"
"github.com/unkeyed/unkey"
"github.com/unkeyed/unkey/models/operations"
unkeygo "github.com/unkeyed/unkey-go"
"github.com/unkeyed/unkey-go/models/operations"
"log"
)

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

request := operations.CreateAPIRequestBody{
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,14 @@ Based on:
### Generated
- [go v0.1.9] .
### Releases
- [Go v0.1.9] https://github.com/unkeyed/unkey-go/releases/tag/v0.1.9 - .
- [Go v0.1.9] https://github.com/unkeyed/unkey-go/releases/tag/v0.1.9 - .

## 2024-05-14 00:23:57
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.286.3 (2.329.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.2.0] .
### Releases
- [Go v0.2.0] https://github.com/unkeyed/unkey-go/releases/tag/v0.2.0 - .
10 changes: 5 additions & 5 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ package main

import (
"context"
"github.com/unkeyed/unkey"
"github.com/unkeyed/unkey/models/components"
"github.com/unkeyed/unkey/models/operations"
unkeygo "github.com/unkeyed/unkey-go"
"github.com/unkeyed/unkey-go/models/components"
"github.com/unkeyed/unkey-go/models/operations"
"log"
)

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

request := operations.CreateAPIRequestBody{
Expand Down
10 changes: 5 additions & 5 deletions apis.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.

package unkey
package unkeygo

import (
"bytes"
"context"
"fmt"
"github.com/unkeyed/unkey/internal/hooks"
"github.com/unkeyed/unkey/internal/utils"
"github.com/unkeyed/unkey/models/operations"
"github.com/unkeyed/unkey/models/sdkerrors"
"github.com/unkeyed/unkey-go/internal/hooks"
"github.com/unkeyed/unkey-go/internal/utils"
"github.com/unkeyed/unkey-go/models/operations"
"github.com/unkeyed/unkey-go/models/sdkerrors"
"io"
"net/http"
"net/url"
Expand Down
Loading

0 comments on commit 0f9a2dc

Please sign in to comment.