Skip to content

Commit ef74d0e

Browse files
authored
Merge pull request #146 from dubinc/speakeasy-sdk-regen-1770423581
chore: 🐝 Update SDK - Generate 0.23.3
2 parents 96aa771 + 8866a45 commit ef74d0e

32 files changed

+1813
-50
lines changed

.speakeasy/gen.lock

Lines changed: 132 additions & 29 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ generation:
2828
generateNewTests: false
2929
skipResponseBodyAssertions: false
3030
go:
31-
version: 0.23.2
31+
version: 0.23.3
3232
additionalDependencies: {}
3333
allowUnknownFieldsInWeakUnions: true
3434
baseErrorName: DubError
@@ -55,6 +55,7 @@ go:
5555
outputModelSuffix: output
5656
packageName: github.com/dubinc/dub-go
5757
respectRequiredFields: false
58+
respectTitlesForPrimitiveUnionMembers: false
5859
responseFormat: flat
5960
sdkPackageName: ""
6061
unionStrategy: left-to-right

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.703.0
1+
speakeasyVersion: 1.709.1
22
sources:
33
dub:
44
sourceNamespace: dub
5-
sourceRevisionDigest: sha256:697c8b1a358a102d63b28241c37e5d2a7f06aa5f7e96e267cdf41f3e7c963118
6-
sourceBlobDigest: sha256:95552af2deba5b090f84a546ce6da63a5a2e7584ad345eebfc21927503f90b40
5+
sourceRevisionDigest: sha256:81dd03f25ffec86dbe5a06d476c9b3538f197d3fc21167596f246ea1c1655212
6+
sourceBlobDigest: sha256:46d7165333fc9b9bdd809c12c5ee974125578a995d262142ae0c1baf9ae71446
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1768436173
9+
- speakeasy-sdk-regen-1770423581
1010
- 0.0.1
1111
targets:
1212
my-first-target:
1313
source: dub
1414
sourceNamespace: dub
15-
sourceRevisionDigest: sha256:697c8b1a358a102d63b28241c37e5d2a7f06aa5f7e96e267cdf41f3e7c963118
16-
sourceBlobDigest: sha256:95552af2deba5b090f84a546ce6da63a5a2e7584ad345eebfc21927503f90b40
15+
sourceRevisionDigest: sha256:81dd03f25ffec86dbe5a06d476c9b3538f197d3fc21167596f246ea1c1655212
16+
sourceBlobDigest: sha256:46d7165333fc9b9bdd809c12c5ee974125578a995d262142ae0c1baf9ae71446
1717
codeSamplesNamespace: code-samples-go-my-first-target
18-
codeSamplesRevisionDigest: sha256:42993a2cb77dd8debb647aa02673faedc63e131ded4e5f7a963fad42ba5b7543
18+
codeSamplesRevisionDigest: sha256:22fa25d943b59d1d2fb4ac7b9010d6ecbbe2b9ef2dea8a2103ce691356734e5c
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func main() {
158158

159159
### [Commissions](docs/sdks/commissions/README.md)
160160

161-
* [List](docs/sdks/commissions/README.md#list) - Get commissions for a program.
161+
* [List](docs/sdks/commissions/README.md#list) - List all commissions
162162
* [Update](docs/sdks/commissions/README.md#update) - Update a commission.
163163

164164
### [Customers](docs/sdks/customers/README.md)
@@ -216,6 +216,10 @@ func main() {
216216
* [Ban](docs/sdks/partners/README.md#ban) - Ban a partner
217217
* [Deactivate](docs/sdks/partners/README.md#deactivate) - Deactivate a partner
218218

219+
### [Payouts](docs/sdks/payouts/README.md)
220+
221+
* [List](docs/sdks/payouts/README.md#list) - List all payouts
222+
219223
### [QRCodes](docs/sdks/qrcodes/README.md)
220224

221225
* [Get](docs/sdks/qrcodes/README.md#get) - Retrieve a QR code

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1388,4 +1388,14 @@ Based on:
13881388
### Generated
13891389
- [go v0.23.2] .
13901390
### Releases
1391-
- [Go v0.23.2] https://github.com/dubinc/dub-go/releases/tag/v0.23.2 - .
1391+
- [Go v0.23.2] https://github.com/dubinc/dub-go/releases/tag/v0.23.2 - .
1392+
1393+
## 2026-02-09 23:49:43
1394+
### Changes
1395+
Based on:
1396+
- OpenAPI Doc
1397+
- Speakeasy CLI 1.709.1 (2.812.2) https://github.com/speakeasy-api/speakeasy
1398+
### Generated
1399+
- [go v0.23.3] .
1400+
### Releases
1401+
- [Go v0.23.3] https://github.com/dubinc/dub-go/releases/tag/v0.23.3 - .

bounties.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func newBounties(rootSDK *Dub, sdkConfig config.SDKConfiguration, hooks *hooks.H
3030
}
3131

3232
// ListSubmissions - List bounty submissions
33-
// List all submissions for a specific bounty.
33+
// List all submissions for a specific bounty in your partner program.
3434
func (s *Bounties) ListSubmissions(ctx context.Context, request operations.ListBountySubmissionsRequest, opts ...operations.Option) ([]operations.ListBountySubmissionsResponseBody, error) {
3535
o := operations.Options{}
3636
supportedOptions := []string{

codeSamples.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,12 @@ actions:
237237
- "lang": "go"
238238
"label": "upsertPartnerLink"
239239
"source": "package main\n\nimport(\n\t\"context\"\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n res, err := s.Partners.UpsertLink(ctx, &operations.UpsertPartnerLinkRequestBody{\n URL: \"https://bad-intent.org/\",\n LinkProps: &operations.UpsertPartnerLinkLinkProps{\n ExternalID: dubgo.Pointer(\"123456\"),\n TagIds: dubgo.Pointer(operations.CreateUpsertPartnerLinkTagIdsArrayOfStr(\n []string{\n \"clux0rgak00011...\",\n },\n )),\n TestVariants: []operations.UpsertPartnerLinkTestVariants{\n operations.UpsertPartnerLinkTestVariants{\n URL: \"https://example.com/variant-1\",\n Percentage: 50,\n },\n operations.UpsertPartnerLinkTestVariants{\n URL: \"https://example.com/variant-2\",\n Percentage: 50,\n },\n },\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"
240+
- target: $["paths"]["/payouts"]["get"]
241+
update:
242+
"x-codeSamples":
243+
- "lang": "go"
244+
"label": "listPayouts"
245+
"source": "package main\n\nimport(\n\t\"context\"\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n res, err := s.Payouts.List(ctx, operations.ListPayoutsRequest{\n PageSize: dubgo.Pointer[float64](50),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"
240246
- target: $["paths"]["/qr"]["get"]
241247
update:
242248
"x-codeSamples":

commissions.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ func newCommissions(rootSDK *Dub, sdkConfig config.SDKConfiguration, hooks *hook
3030
}
3131
}
3232

33-
// List - Get commissions for a program.
34-
// Retrieve a list of commissions for a program.
33+
// List all commissions
34+
// Retrieve a list of commissions for your partner program.
3535
func (s *Commissions) List(ctx context.Context, request operations.ListCommissionsRequest, opts ...operations.Option) ([]operations.ListCommissionsResponseBody, error) {
3636
o := operations.Options{}
3737
supportedOptions := []string{
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# IndustryInterests
2+
3+
4+
## Values
5+
6+
| Name | Value |
7+
| -------------------------------------------- | -------------------------------------------- |
8+
| `IndustryInterestsSaaS` | SaaS |
9+
| `IndustryInterestsDevTool` | DevTool |
10+
| `IndustryInterestsAi` | AI |
11+
| `IndustryInterestsCreativeAndDesign` | Creative_And_Design |
12+
| `IndustryInterestsProductivitySoftware` | Productivity_Software |
13+
| `IndustryInterestsMarketing` | Marketing |
14+
| `IndustryInterestsGaming` | Gaming |
15+
| `IndustryInterestsFinance` | Finance |
16+
| `IndustryInterestsSales` | Sales |
17+
| `IndustryInterestsEcommerce` | Ecommerce |
18+
| `IndustryInterestsCustomerServiceAndSupport` | Customer_Service_And_Support |
19+
| `IndustryInterestsContentManagement` | Content_Management |
20+
| `IndustryInterestsHumanResources` | Human_Resources |
21+
| `IndustryInterestsSecurity` | Security |
22+
| `IndustryInterestsAnalyticsAndData` | Analytics_And_Data |
23+
| `IndustryInterestsSocialMedia` | Social_Media |
24+
| `IndustryInterestsConsumerTech` | Consumer_Tech |
25+
| `IndustryInterestsEducationAndLearning` | Education_And_Learning |
26+
| `IndustryInterestsHealthAndFitness` | Health_And_Fitness |
27+
| `IndustryInterestsFoodAndBeverage` | Food_And_Beverage |
28+
| `IndustryInterestsTravelAndLifestyle` | Travel_And_Lifestyle |
29+
| `IndustryInterestsEntertainmentAndMedia` | Entertainment_And_Media |
30+
| `IndustryInterestsSports` | Sports |
31+
| `IndustryInterestsScienceAndEngineering` | Science_And_Engineering |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# InvoiceSettings
2+
3+
The partner's invoice settings.
4+
5+
6+
## Fields
7+
8+
| Field | Type | Required | Description |
9+
| ------------------ | ------------------ | ------------------ | ------------------ |
10+
| `Address` | **string* | :heavy_minus_sign: | N/A |
11+
| `TaxID` | **string* | :heavy_minus_sign: | N/A |

0 commit comments

Comments
 (0)