Skip to content

Commit

Permalink
Merge pull request #1 from unkeyed/speakeasy-sdk-regen-1715352025
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate
  • Loading branch information
chronark authored May 10, 2024
2 parents 2e0462f + 8a2dc6a commit 8c250dd
Show file tree
Hide file tree
Showing 30 changed files with 213 additions and 200 deletions.
6 changes: 4 additions & 2 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ management:
docVersion: 1.0.0
speakeasyVersion: 1.285.4
generationVersion: 2.326.3
releaseVersion: 0.1.1
configChecksum: 943702408fc3f25710ed88ccab9bc8fa
releaseVersion: 0.1.2
configChecksum: 9c16fa84cf77ada8d9454271d479134c
repoURL: https://github.com/unkeyed/sdk-go.git
installationURL: https://github.com/unkeyed/sdk-go
features:
go:
additionalDependencies: 0.1.0
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.1
version: 0.1.2
additionalDependencies: {}
clientServerStatusCodesAsErrors: true
flattenGlobalSecurity: true
Expand Down
56 changes: 28 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ It has been generated successfully based on your OpenAPI spec. However, it is no
## SDK Installation

```bash
go get github.com/unkeyed/unkey-sdk-go
go get github.com/unkeyed/sdk-go
```
<!-- End SDK Installation [installation] -->

Expand All @@ -34,15 +34,15 @@ package main

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

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

request := operations.V1ApisCreateAPIRequestBody{
Expand Down Expand Up @@ -125,16 +125,16 @@ package main
import (
"context"
"errors"
unkeysdkgo "github.com/unkeyed/unkey-sdk-go"
"github.com/unkeyed/unkey-sdk-go/models/components"
"github.com/unkeyed/unkey-sdk-go/models/operations"
"github.com/unkeyed/unkey-sdk-go/models/sdkerrors"
sdkgo "github.com/unkeyed/sdk-go"
"github.com/unkeyed/sdk-go/models/components"
"github.com/unkeyed/sdk-go/models/operations"
"github.com/unkeyed/sdk-go/models/sdkerrors"
"log"
)

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

request := operations.V1ApisCreateAPIRequestBody{
Expand Down Expand Up @@ -216,16 +216,16 @@ package main

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

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

request := operations.V1ApisCreateAPIRequestBody{
Expand Down Expand Up @@ -253,16 +253,16 @@ package main

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

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

request := operations.V1ApisCreateAPIRequestBody{
Expand Down Expand Up @@ -328,14 +328,14 @@ package main

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

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

request := operations.V1ApisCreateAPIRequestBody{
Expand Down
11 changes: 11 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@


## 2024-05-10 14:40:23
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.285.4 (2.326.3) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.1.2] .
### Releases
- [Go v0.1.2] https://github.com/unkeyed/sdk-go/releases/tag/v0.1.2 - .
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"
unkeysdkgo "github.com/unkeyed/unkey-sdk-go"
"github.com/unkeyed/unkey-sdk-go/models/components"
"github.com/unkeyed/unkey-sdk-go/models/operations"
sdkgo "github.com/unkeyed/sdk-go"
"github.com/unkeyed/sdk-go/models/components"
"github.com/unkeyed/sdk-go/models/operations"
"log"
)

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

request := operations.V1ApisCreateAPIRequestBody{
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 unkeysdkgo
package sdkgo

import (
"bytes"
"context"
"fmt"
"github.com/unkeyed/unkey-sdk-go/internal/hooks"
"github.com/unkeyed/unkey-sdk-go/internal/utils"
"github.com/unkeyed/unkey-sdk-go/models/operations"
"github.com/unkeyed/unkey-sdk-go/models/sdkerrors"
"github.com/unkeyed/sdk-go/internal/hooks"
"github.com/unkeyed/sdk-go/internal/utils"
"github.com/unkeyed/sdk-go/models/operations"
"github.com/unkeyed/sdk-go/models/sdkerrors"
"io"
"net/http"
"net/url"
Expand Down
22 changes: 11 additions & 11 deletions docs/sdks/apis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
package main

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

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

request := operations.V1ApisGetAPIRequest{
Expand Down Expand Up @@ -71,21 +71,21 @@ func main() {
package main

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

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

request := operations.V1ApisListKeysRequest{
APIID: "api_1234",
Limit: unkeysdkgo.Int64(100),
Limit: sdkgo.Int64(100),
}

ctx := context.Background()
Expand Down
Loading

0 comments on commit 8c250dd

Please sign in to comment.