Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: 🐝 Update SDK - Generate 0.12.4 #64

Merged
merged 1 commit into from
Dec 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 1773e9c7-1931-4663-8ac8-4deaf8db76f5
management:
docChecksum: da455826be171d9d1ff0d376f0695b24
docChecksum: 1de3a03409e745a2e8bebe20674c1eeb
docVersion: 0.0.1
speakeasyVersion: 1.453.0
generationVersion: 2.472.1
releaseVersion: 0.12.3
configChecksum: 57210906a3ff7ebd774d8b07230f61a0
speakeasyVersion: 1.453.1
generationVersion: 2.474.4
releaseVersion: 0.12.4
configChecksum: e6fa82a8ed4d4669687a98563463f008
repoURL: https://github.com/dubinc/dub-go.git
installationURL: https://github.com/dubinc/dub-go
features:
Expand Down Expand Up @@ -709,7 +709,7 @@ examples:
idOrSlug: "<value>"
responses:
"200":
application/json: {"id": "<id>", "name": "<value>", "slug": "<value>", "inviteCode": "<value>", "plan": "business extra", "stripeId": "<value>", "billingCycleStart": "900.65", "paymentFailedAt": "<value>", "stripeConnectId": "<value>", "usage": "5588.34", "usageLimit": "8441.99", "linksUsage": "5442.21", "linksLimit": "8306.36", "salesUsage": "5212.35", "salesLimit": "785.92", "domainsLimit": "9699.61", "tagsLimit": "8661.61", "usersLimit": "4580.49", "aiUsage": "7352.87", "aiLimit": "4508.24", "conversionEnabled": true, "dotLinkClaimed": true, "createdAt": "<value>", "users": [], "domains": [], "publishableKey": "<value>", "bankAccountName": "<value>", "partialAccountNumber": "<value>", "routingNumber": "<value>", "bankAccountVerified": false}
application/json: {"id": "<id>", "name": "<value>", "slug": "<value>", "inviteCode": "<value>", "plan": "business extra", "stripeId": "<value>", "billingCycleStart": "900.65", "paymentFailedAt": "<value>", "stripeConnectId": "<value>", "usage": "5588.34", "usageLimit": "8441.99", "linksUsage": "5442.21", "linksLimit": "8306.36", "salesUsage": "5212.35", "salesLimit": "785.92", "domainsLimit": "9699.61", "tagsLimit": "8661.61", "usersLimit": "4580.49", "aiUsage": "7352.87", "aiLimit": "4508.24", "conversionEnabled": true, "dotLinkClaimed": true, "createdAt": "<value>", "users": [], "domains": [], "bankAccountName": "<value>", "partialAccountNumber": "<value>", "routingNumber": "<value>", "bankAccountVerified": false}
"400":
application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}}
"401":
Expand All @@ -735,7 +735,7 @@ examples:
idOrSlug: "<value>"
responses:
"200":
application/json: {"id": "<id>", "name": "<value>", "slug": "<value>", "inviteCode": "<value>", "plan": "enterprise", "stripeId": "<value>", "billingCycleStart": "245.55", "paymentFailedAt": "<value>", "stripeConnectId": "<value>", "usage": "5971.29", "usageLimit": "156.52", "linksUsage": "3446.2", "linksLimit": "7084.55", "salesUsage": "9914.64", "salesLimit": "2703.24", "domainsLimit": "6276.9", "tagsLimit": "6841.99", "usersLimit": "4888.52", "aiUsage": "4430.76", "aiLimit": "9840.08", "conversionEnabled": true, "dotLinkClaimed": false, "createdAt": "<value>", "users": [], "domains": [], "publishableKey": "<value>", "bankAccountName": "<value>", "partialAccountNumber": "<value>", "routingNumber": "<value>", "bankAccountVerified": false}
application/json: {"id": "<id>", "name": "<value>", "slug": "<value>", "inviteCode": "<value>", "plan": "enterprise", "stripeId": "<value>", "billingCycleStart": "245.55", "paymentFailedAt": "<value>", "stripeConnectId": "<value>", "usage": "5971.29", "usageLimit": "156.52", "linksUsage": "3446.2", "linksLimit": "7084.55", "salesUsage": "9914.64", "salesLimit": "2703.24", "domainsLimit": "6276.9", "tagsLimit": "6841.99", "usersLimit": "4888.52", "aiUsage": "4430.76", "aiLimit": "9840.08", "conversionEnabled": true, "dotLinkClaimed": false, "createdAt": "<value>", "users": [], "domains": [], "bankAccountName": "<value>", "partialAccountNumber": "<value>", "routingNumber": "<value>", "bankAccountVerified": false}
"400":
application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}}
"401":
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
go:
version: 0.12.3
version: 0.12.4
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.453.0
speakeasyVersion: 1.453.1
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:021e5ac81694030999ffec6219a6b46b58735a0d26b82fd7ef347c860f42704b
sourceBlobDigest: sha256:98d898001f0ef6455618c09c8c6a368877c2fc520cb3d1ed70a17728d4775a9e
sourceRevisionDigest: sha256:6d1c8ad9f32a198c3d7c22010dc8f03ef88e83c63d11b1def914795bbf956e59
sourceBlobDigest: sha256:f6e6d4ce8b927fb6b730f8b1c3836e9d28e68077ed46be1c30edd19532956a53
tags:
- latest
- speakeasy-sdk-regen-1733444003
- speakeasy-sdk-regen-1733530385
- 0.0.1
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:021e5ac81694030999ffec6219a6b46b58735a0d26b82fd7ef347c860f42704b
sourceBlobDigest: sha256:98d898001f0ef6455618c09c8c6a368877c2fc520cb3d1ed70a17728d4775a9e
sourceRevisionDigest: sha256:6d1c8ad9f32a198c3d7c22010dc8f03ef88e83c63d11b1def914795bbf956e59
sourceBlobDigest: sha256:f6e6d4ce8b927fb6b730f8b1c3836e9d28e68077ed46be1c30edd19532956a53
codeSamplesNamespace: code-samples-go-my-first-target
codeSamplesRevisionDigest: sha256:183f00ddabc2fc15d33446f5e3ee122df68324a231deaacc5ef078cf4bd777ea
codeSamplesRevisionDigest: sha256:624f7f50049feeb31255e2429e5c52aa3c6846a1a4c7963e8f71e16142cc8a85
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,6 @@ func main() {
break
}
}

}
}

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -608,4 +608,14 @@ Based on:
### Generated
- [go v0.12.3] .
### Releases
- [Go v0.12.3] https://github.com/dubinc/dub-go/releases/tag/v0.12.3 - .
- [Go v0.12.3] https://github.com/dubinc/dub-go/releases/tag/v0.12.3 - .

## 2024-12-07 00:13:01
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.453.1 (2.474.4) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.12.4] .
### Releases
- [Go v0.12.4] https://github.com/dubinc/dub-go/releases/tag/v0.12.4 - .
4 changes: 2 additions & 2 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ actions:
"x-codeSamples":
- "lang": "go"
"label": "listDomains"
"source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n ctx := context.Background()\n res, err := s.Domains.List(ctx, operations.ListDomainsRequest{\n Page: dubgo.Float64(1),\n PageSize: dubgo.Float64(50),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}"
"source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n ctx := context.Background()\n res, err := s.Domains.List(ctx, operations.ListDomainsRequest{\n Page: dubgo.Float64(1),\n PageSize: dubgo.Float64(50),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}"
- target: $["paths"]["/domains"]["post"]
update:
"x-codeSamples":
Expand Down Expand Up @@ -74,7 +74,7 @@ actions:
"x-codeSamples":
- "lang": "go"
"label": "getLinks"
"source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n ctx := context.Background()\n res, err := s.Links.List(ctx, operations.GetLinksRequest{\n Page: dubgo.Float64(1),\n PageSize: dubgo.Float64(50),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n for {\n // handle items\n \n res, err = res.Next()\n \n if err != nil {\n // handle error\n }\n \n if res == nil {\n break\n }\n }\n \n }\n}"
"source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n ctx := context.Background()\n res, err := s.Links.List(ctx, operations.GetLinksRequest{\n Page: dubgo.Float64(1),\n PageSize: dubgo.Float64(50),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n for {\n // handle items\n\n res, err = res.Next()\n\n if err != nil {\n // handle error\n }\n\n if res == nil {\n break\n }\n }\n }\n}"
- target: $["paths"]["/links"]["post"]
update:
"x-codeSamples":
Expand Down
1 change: 0 additions & 1 deletion docs/models/components/workspaceschema.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
| `Users` | [][components.Users](../../models/components/users.md) | :heavy_check_mark: | The role of the authenticated user in the workspace. |
| `Domains` | [][components.Domains](../../models/components/domains.md) | :heavy_check_mark: | The domains of the workspace. |
| `Flags` | map[string]*bool* | :heavy_minus_sign: | The feature flags of the workspace, indicating which features are enabled. |
| `PublishableKey` | *string* | :heavy_check_mark: | The publishable key of the workspace. |
| `BankAccountName` | *string* | :heavy_check_mark: | [BETA – Dub Partners]: The name of the connected bank account. |
| `PartialAccountNumber` | *string* | :heavy_check_mark: | [BETA – Dub Partners]: The partial account number of the bank account. |
| `RoutingNumber` | *string* | :heavy_check_mark: | [BETA – Dub Partners]: The routing number of the bank account. |
Expand Down
9 changes: 4 additions & 5 deletions docs/sdks/domains/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,20 +105,19 @@ func main() {
log.Fatal(err)
}
if res != nil {
for {
for {
// handle items

res, err = res.Next()

if err != nil {
// handle error
}

if res == nil {
break
}
}

}
}
```
Expand Down
9 changes: 4 additions & 5 deletions docs/sdks/links/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,20 +113,19 @@ func main() {
log.Fatal(err)
}
if res != nil {
for {
for {
// handle items

res, err = res.Next()

if err != nil {
// handle error
}

if res == nil {
break
}
}

}
}
```
Expand Down
6 changes: 3 additions & 3 deletions dub.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ func New(opts ...SDKOption) *Dub {
sdkConfiguration: sdkConfiguration{
Language: "go",
OpenAPIDocVersion: "0.0.1",
SDKVersion: "0.12.3",
GenVersion: "2.472.1",
UserAgent: "speakeasy-sdk/go 0.12.3 2.472.1 0.0.1 github.com/dubinc/dub-go",
SDKVersion: "0.12.4",
GenVersion: "2.474.4",
UserAgent: "speakeasy-sdk/go 0.12.4 2.474.4 0.0.1 github.com/dubinc/dub-go",
Hooks: hooks.New(),
},
}
Expand Down
9 changes: 0 additions & 9 deletions models/components/workspaceschema.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,6 @@ type WorkspaceSchema struct {
Domains []Domains `json:"domains"`
// The feature flags of the workspace, indicating which features are enabled.
Flags map[string]bool `json:"flags,omitempty"`
// The publishable key of the workspace.
PublishableKey *string `json:"publishableKey"`
// [BETA – Dub Partners]: The name of the connected bank account.
BankAccountName *string `json:"bankAccountName"`
// [BETA – Dub Partners]: The partial account number of the bank account.
Expand Down Expand Up @@ -397,13 +395,6 @@ func (o *WorkspaceSchema) GetFlags() map[string]bool {
return o.Flags
}

func (o *WorkspaceSchema) GetPublishableKey() *string {
if o == nil {
return nil
}
return o.PublishableKey
}

func (o *WorkspaceSchema) GetBankAccountName() *string {
if o == nil {
return nil
Expand Down