Skip to content

Commit

Permalink
chore(gen.yaml): update go version to 0.1.5 and change package name to
Browse files Browse the repository at this point in the history
github.com/unkeyed/unkey-go
refactor(README.md): update package import paths to use github.com/unkeyed/unkey-go
refactor(USAGE.md): update package import paths to use github.com/unkeyed/unkey-go
refactor(apis.go): update package name to unkeygo and import paths to
github.com/unkeyed/unkey-go

chore(codeSamples.yaml): update code samples in YAML file

fix(codeSamples.yaml): update code samples for go target endpoints
feat(codeSamples.yaml): add new code samples for go target endpoints

chore(docs): update import paths to use 'unkey-go' package prefix
feat(docs): refactor code to use 'unkeygo' package prefix for consistency

refactor: rename package import paths to use 'unkey-go' instead of 'unkey'

refactor(unkey.go): update package name from unkey to unkeygo
refactor(unkey.go): update import paths to use unkey-go instead of unkeyed
refactor(unkey.go): update SDKVersion to 0.1.5 and UserAgent accordingly
  • Loading branch information
chronark committed May 11, 2024
1 parent 3173b0b commit 11d845c
Show file tree
Hide file tree
Showing 31 changed files with 239 additions and 238 deletions.
4 changes: 2 additions & 2 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ management:
docVersion: 1.0.0
speakeasyVersion: 1.286.0
generationVersion: 2.326.3
releaseVersion: 0.1.4
configChecksum: 85c3b050f9c4452376f6ef09ce462b51
releaseVersion: 0.1.5
configChecksum: acf78e36bad2452c7bc781abc8b0d5ed
repoURL: https://github.com/unkeyed/unkey-go.git
installationURL: https://github.com/unkeyed/unkey-go
features:
Expand Down
4 changes: 2 additions & 2 deletions .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.4
version: 0.1.5
additionalDependencies: {}
clientServerStatusCodesAsErrors: true
flattenGlobalSecurity: true
Expand All @@ -28,5 +28,5 @@ go:
maxMethodParams: 0
methodArguments: require-security-and-request
outputModelSuffix: output
packageName: github.com/unkeyed/unkey
packageName: github.com/unkeyed/unkey-go
responseFormat: flat
54 changes: 27 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,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 Expand Up @@ -119,16 +119,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 @@ -210,16 +210,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 @@ -247,16 +247,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 @@ -322,14 +322,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
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
76 changes: 38 additions & 38 deletions codeSamples.yaml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package unkey
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/models/components"
"github.com/unkeyed/unkey"
"github.com/unkeyed/unkey/models/operations"
"github.com/unkeyed/unkey-go/models/components"
unkeygo "github.com/unkeyed/unkey-go"
"github.com/unkeyed/unkey-go/models/operations"
"context"
"log"
)

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

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

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

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

request := operations.ListKeysRequest{
APIID: "api_1234",
Limit: unkey.Int64(100),
Limit: unkeygo.Int64(100),
}

ctx := context.Background()
Expand Down
Loading

0 comments on commit 11d845c

Please sign in to comment.