Skip to content

Commit a21728f

Browse files
authored
Merge pull request #64 from dubinc/speakeasy-sdk-regen-1733530385
chore: 🐝 Update SDK - Generate 0.12.4
2 parents 4db247d + 1416ef2 commit a21728f

File tree

11 files changed

+39
-42
lines changed

11 files changed

+39
-42
lines changed

β€Ž.speakeasy/gen.lock

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 1773e9c7-1931-4663-8ac8-4deaf8db76f5
33
management:
4-
docChecksum: da455826be171d9d1ff0d376f0695b24
4+
docChecksum: 1de3a03409e745a2e8bebe20674c1eeb
55
docVersion: 0.0.1
6-
speakeasyVersion: 1.453.0
7-
generationVersion: 2.472.1
8-
releaseVersion: 0.12.3
9-
configChecksum: 57210906a3ff7ebd774d8b07230f61a0
6+
speakeasyVersion: 1.453.1
7+
generationVersion: 2.474.4
8+
releaseVersion: 0.12.4
9+
configChecksum: e6fa82a8ed4d4669687a98563463f008
1010
repoURL: https://github.com/dubinc/dub-go.git
1111
installationURL: https://github.com/dubinc/dub-go
1212
features:
@@ -709,7 +709,7 @@ examples:
709709
idOrSlug: "<value>"
710710
responses:
711711
"200":
712-
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}
712+
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}
713713
"400":
714714
application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}}
715715
"401":
@@ -735,7 +735,7 @@ examples:
735735
idOrSlug: "<value>"
736736
responses:
737737
"200":
738-
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}
738+
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}
739739
"400":
740740
application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}}
741741
"401":

β€Ž.speakeasy/gen.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ generation:
1313
oAuth2ClientCredentialsEnabled: true
1414
oAuth2PasswordEnabled: false
1515
go:
16-
version: 0.12.3
16+
version: 0.12.4
1717
additionalDependencies: {}
1818
allowUnknownFieldsInWeakUnions: false
1919
clientServerStatusCodesAsErrors: true

β€Ž.speakeasy/workflow.lock

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.453.0
1+
speakeasyVersion: 1.453.1
22
sources:
33
dub:
44
sourceNamespace: dub
5-
sourceRevisionDigest: sha256:021e5ac81694030999ffec6219a6b46b58735a0d26b82fd7ef347c860f42704b
6-
sourceBlobDigest: sha256:98d898001f0ef6455618c09c8c6a368877c2fc520cb3d1ed70a17728d4775a9e
5+
sourceRevisionDigest: sha256:6d1c8ad9f32a198c3d7c22010dc8f03ef88e83c63d11b1def914795bbf956e59
6+
sourceBlobDigest: sha256:f6e6d4ce8b927fb6b730f8b1c3836e9d28e68077ed46be1c30edd19532956a53
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1733444003
9+
- speakeasy-sdk-regen-1733530385
1010
- 0.0.1
1111
targets:
1212
my-first-target:
1313
source: dub
1414
sourceNamespace: dub
15-
sourceRevisionDigest: sha256:021e5ac81694030999ffec6219a6b46b58735a0d26b82fd7ef347c860f42704b
16-
sourceBlobDigest: sha256:98d898001f0ef6455618c09c8c6a368877c2fc520cb3d1ed70a17728d4775a9e
15+
sourceRevisionDigest: sha256:6d1c8ad9f32a198c3d7c22010dc8f03ef88e83c63d11b1def914795bbf956e59
16+
sourceBlobDigest: sha256:f6e6d4ce8b927fb6b730f8b1c3836e9d28e68077ed46be1c30edd19532956a53
1717
codeSamplesNamespace: code-samples-go-my-first-target
18-
codeSamplesRevisionDigest: sha256:183f00ddabc2fc15d33446f5e3ee122df68324a231deaacc5ef078cf4bd777ea
18+
codeSamplesRevisionDigest: sha256:624f7f50049feeb31255e2429e5c52aa3c6846a1a4c7963e8f71e16142cc8a85
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

β€ŽREADME.md

-1
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,6 @@ func main() {
579579
break
580580
}
581581
}
582-
583582
}
584583
}
585584

β€ŽRELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -608,4 +608,14 @@ Based on:
608608
### Generated
609609
- [go v0.12.3] .
610610
### Releases
611-
- [Go v0.12.3] https://github.com/dubinc/dub-go/releases/tag/v0.12.3 - .
611+
- [Go v0.12.3] https://github.com/dubinc/dub-go/releases/tag/v0.12.3 - .
612+
613+
## 2024-12-07 00:13:01
614+
### Changes
615+
Based on:
616+
- OpenAPI Doc
617+
- Speakeasy CLI 1.453.1 (2.474.4) https://github.com/speakeasy-api/speakeasy
618+
### Generated
619+
- [go v0.12.4] .
620+
### Releases
621+
- [Go v0.12.4] https://github.com/dubinc/dub-go/releases/tag/v0.12.4 - .

β€ŽcodeSamples.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ actions:
4444
"x-codeSamples":
4545
- "lang": "go"
4646
"label": "listDomains"
47-
"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}"
47+
"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}"
4848
- target: $["paths"]["/domains"]["post"]
4949
update:
5050
"x-codeSamples":
@@ -74,7 +74,7 @@ actions:
7474
"x-codeSamples":
7575
- "lang": "go"
7676
"label": "getLinks"
77-
"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}"
77+
"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}"
7878
- target: $["paths"]["/links"]["post"]
7979
update:
8080
"x-codeSamples":

β€Ždocs/models/components/workspaceschema.md

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
| `Users` | [][components.Users](../../models/components/users.md) | :heavy_check_mark: | The role of the authenticated user in the workspace. |
3333
| `Domains` | [][components.Domains](../../models/components/domains.md) | :heavy_check_mark: | The domains of the workspace. |
3434
| `Flags` | map[string]*bool* | :heavy_minus_sign: | The feature flags of the workspace, indicating which features are enabled. |
35-
| `PublishableKey` | *string* | :heavy_check_mark: | The publishable key of the workspace. |
3635
| `BankAccountName` | *string* | :heavy_check_mark: | [BETA – Dub Partners]: The name of the connected bank account. |
3736
| `PartialAccountNumber` | *string* | :heavy_check_mark: | [BETA – Dub Partners]: The partial account number of the bank account. |
3837
| `RoutingNumber` | *string* | :heavy_check_mark: | [BETA – Dub Partners]: The routing number of the bank account. |

β€Ždocs/sdks/domains/README.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -105,20 +105,19 @@ func main() {
105105
log.Fatal(err)
106106
}
107107
if res != nil {
108-
for {
108+
for {
109109
// handle items
110-
110+
111111
res, err = res.Next()
112-
112+
113113
if err != nil {
114114
// handle error
115115
}
116-
116+
117117
if res == nil {
118118
break
119119
}
120120
}
121-
122121
}
123122
}
124123
```

β€Ždocs/sdks/links/README.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -113,20 +113,19 @@ func main() {
113113
log.Fatal(err)
114114
}
115115
if res != nil {
116-
for {
116+
for {
117117
// handle items
118-
118+
119119
res, err = res.Next()
120-
120+
121121
if err != nil {
122122
// handle error
123123
}
124-
124+
125125
if res == nil {
126126
break
127127
}
128128
}
129-
130129
}
131130
}
132131
```

β€Ždub.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ func New(opts ...SDKOption) *Dub {
159159
sdkConfiguration: sdkConfiguration{
160160
Language: "go",
161161
OpenAPIDocVersion: "0.0.1",
162-
SDKVersion: "0.12.3",
163-
GenVersion: "2.472.1",
164-
UserAgent: "speakeasy-sdk/go 0.12.3 2.472.1 0.0.1 github.com/dubinc/dub-go",
162+
SDKVersion: "0.12.4",
163+
GenVersion: "2.474.4",
164+
UserAgent: "speakeasy-sdk/go 0.12.4 2.474.4 0.0.1 github.com/dubinc/dub-go",
165165
Hooks: hooks.New(),
166166
},
167167
}

β€Žmodels/components/workspaceschema.go

-9
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,6 @@ type WorkspaceSchema struct {
185185
Domains []Domains `json:"domains"`
186186
// The feature flags of the workspace, indicating which features are enabled.
187187
Flags map[string]bool `json:"flags,omitempty"`
188-
// The publishable key of the workspace.
189-
PublishableKey *string `json:"publishableKey"`
190188
// [BETA – Dub Partners]: The name of the connected bank account.
191189
BankAccountName *string `json:"bankAccountName"`
192190
// [BETA – Dub Partners]: The partial account number of the bank account.
@@ -397,13 +395,6 @@ func (o *WorkspaceSchema) GetFlags() map[string]bool {
397395
return o.Flags
398396
}
399397

400-
func (o *WorkspaceSchema) GetPublishableKey() *string {
401-
if o == nil {
402-
return nil
403-
}
404-
return o.PublishableKey
405-
}
406-
407398
func (o *WorkspaceSchema) GetBankAccountName() *string {
408399
if o == nil {
409400
return nil

0 commit comments

Comments
Β (0)