Skip to content

Commit d4ece88

Browse files
authored
Merge pull request #70 from dubinc/speakeasy-sdk-regen-1735949521
chore: 🐝 Update SDK - Generate 0.13.4
2 parents 37e62f9 + 5e7b8fc commit d4ece88

File tree

15 files changed

+129
-44
lines changed

15 files changed

+129
-44
lines changed

β€Ž.gitignoreβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
.speakeasy/reports
12
# .gitignore

β€Ž.speakeasy/gen.lockβ€Ž

Lines changed: 9 additions & 6 deletions
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: b6c3f376c48f7905069b63adb30d9d19
4+
docChecksum: e904bd8a77ea57b3ba18586e860e5b93
55
docVersion: 0.0.1
6-
speakeasyVersion: 1.460.3
7-
generationVersion: 2.484.0
8-
releaseVersion: 0.13.3
9-
configChecksum: 3fb1e16bfafa43fb1137a149ef4edde8
6+
speakeasyVersion: 1.462.2
7+
generationVersion: 2.486.1
8+
releaseVersion: 0.13.4
9+
configChecksum: 8e14469f54e0e59c899c824d04cdda01
1010
repoURL: https://github.com/dubinc/dub-go.git
1111
installationURL: https://github.com/dubinc/dub-go
1212
features:
@@ -15,7 +15,7 @@ features:
1515
constsAndDefaults: 0.1.6
1616
core: 3.6.2
1717
defaultEnabledRetries: 0.2.0
18-
deprecations: 2.81.1
18+
deprecations: 2.81.2
1919
envVarSecurityUsage: 0.3.2
2020
errors: 2.83.0
2121
examples: 2.81.3
@@ -249,6 +249,7 @@ generatedFiles:
249249
- docs/models/operations/getcustomerrequest.md
250250
- docs/models/operations/getcustomerresponsebody.md
251251
- docs/models/operations/getcustomersinterval.md
252+
- docs/models/operations/getcustomersrequest.md
252253
- docs/models/operations/getcustomertype.md
253254
- docs/models/operations/getlinkinforequest.md
254255
- docs/models/operations/getlinkscountqueryparamtagids.md
@@ -1127,6 +1128,7 @@ examples:
11271128
parameters:
11281129
path:
11291130
id: "<id>"
1131+
query: {}
11301132
responses:
11311133
"200":
11321134
application/json: {"id": "<id>", "externalId": "<id>", "name": "<value>", "createdAt": "<value>"}
@@ -1153,6 +1155,7 @@ examples:
11531155
parameters:
11541156
path:
11551157
id: "<id>"
1158+
query: {}
11561159
responses:
11571160
"200":
11581161
application/json: {"id": "<id>", "externalId": "<id>", "name": "<value>", "createdAt": "<value>"}

β€Ž.speakeasy/gen.yamlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ generation:
1313
oAuth2ClientCredentialsEnabled: true
1414
oAuth2PasswordEnabled: false
1515
go:
16-
version: 0.13.3
16+
version: 0.13.4
1717
additionalDependencies: {}
1818
allowUnknownFieldsInWeakUnions: false
1919
clientServerStatusCodesAsErrors: true

β€Ž.speakeasy/workflow.lockβ€Ž

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.460.3
1+
speakeasyVersion: 1.462.2
22
sources:
33
dub:
44
sourceNamespace: dub
5-
sourceRevisionDigest: sha256:df0afe8371e9f335f41eccd86c23915cc0d71718327fff64dc3f42dc39063655
6-
sourceBlobDigest: sha256:1b42a9880bdb51e5cadcf56873c1b05492c0ba24bf82cd416493f71c289830fa
5+
sourceRevisionDigest: sha256:a29305c2227f352d9976fa2065cc2646c76be676f6afd09d6f78a07f9508edc0
6+
sourceBlobDigest: sha256:92f1737af067df0a426e19c6f461d5f97f94768ba5dcf52752994c635240ed36
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1735517571
9+
- speakeasy-sdk-regen-1735949521
1010
- 0.0.1
1111
targets:
1212
my-first-target:
1313
source: dub
1414
sourceNamespace: dub
15-
sourceRevisionDigest: sha256:df0afe8371e9f335f41eccd86c23915cc0d71718327fff64dc3f42dc39063655
16-
sourceBlobDigest: sha256:1b42a9880bdb51e5cadcf56873c1b05492c0ba24bf82cd416493f71c289830fa
15+
sourceRevisionDigest: sha256:a29305c2227f352d9976fa2065cc2646c76be676f6afd09d6f78a07f9508edc0
16+
sourceBlobDigest: sha256:92f1737af067df0a426e19c6f461d5f97f94768ba5dcf52752994c635240ed36
1717
codeSamplesNamespace: code-samples-go-my-first-target
18-
codeSamplesRevisionDigest: sha256:5946b5460268081a20f0c0f4a718f122cce93090667a6d14584ef1d4765fd88c
18+
codeSamplesRevisionDigest: sha256:428e874286ba7fb7ceff3b9a41d6571690adb71d7067f5c844af7b25d1f702de
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

β€ŽRELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,4 +668,14 @@ Based on:
668668
### Generated
669669
- [go v0.13.3] .
670670
### Releases
671-
- [Go v0.13.3] https://github.com/dubinc/dub-go/releases/tag/v0.13.3 - .
671+
- [Go v0.13.3] https://github.com/dubinc/dub-go/releases/tag/v0.13.3 - .
672+
673+
## 2025-01-06 00:13:01
674+
### Changes
675+
Based on:
676+
- OpenAPI Doc
677+
- Speakeasy CLI 1.462.2 (2.486.1) https://github.com/speakeasy-api/speakeasy
678+
### Generated
679+
- [go v0.13.4] .
680+
### Releases
681+
- [Go v0.13.4] https://github.com/dubinc/dub-go/releases/tag/v0.13.4 - .

β€ŽcodeSamples.yamlβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ actions:
1414
"x-codeSamples":
1515
- "lang": "go"
1616
"label": "getCustomers"
17-
"source": "package main\n\nimport(\n\t\"context\"\n\tdubgo \"github.com/dubinc/dub-go\"\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.Customers.List(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"
17+
"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.Customers.List(ctx, operations.GetCustomersRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"
1818
- target: $["paths"]["/customers"]["post"]
1919
update:
2020
"x-codeSamples":
@@ -38,7 +38,7 @@ actions:
3838
"x-codeSamples":
3939
- "lang": "go"
4040
"label": "updateCustomer"
41-
"source": "package main\n\nimport(\n\t\"context\"\n\tdubgo \"github.com/dubinc/dub-go\"\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.Customers.Update(ctx, \"<id>\", nil)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"
41+
"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.Customers.Update(ctx, operations.UpdateCustomerRequest{\n ID: \"<id>\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"
4242
- target: $["paths"]["/domains"]["get"]
4343
update:
4444
"x-codeSamples":

β€Žcustomers.goβ€Ž

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func newCustomers(sdkConfig sdkConfiguration) *Customers {
2727

2828
// List - Retrieve a list of customers
2929
// Retrieve a list of customers for the authenticated workspace.
30-
func (s *Customers) List(ctx context.Context, opts ...operations.Option) ([]operations.ResponseBody, error) {
30+
func (s *Customers) List(ctx context.Context, request operations.GetCustomersRequest, opts ...operations.Option) ([]operations.ResponseBody, error) {
3131
hookCtx := hooks.HookContext{
3232
Context: ctx,
3333
OperationID: "getCustomers",
@@ -76,6 +76,10 @@ func (s *Customers) List(ctx context.Context, opts ...operations.Option) ([]oper
7676
req.Header.Set("Accept", "application/json")
7777
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
7878

79+
if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil {
80+
return nil, fmt.Errorf("error populating query params: %w", err)
81+
}
82+
7983
if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
8084
return nil, err
8185
}
@@ -840,6 +844,10 @@ func (s *Customers) Get(ctx context.Context, request operations.GetCustomerReque
840844
req.Header.Set("Accept", "application/json")
841845
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
842846

847+
if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil {
848+
return nil, fmt.Errorf("error populating query params: %w", err)
849+
}
850+
843851
if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
844852
return nil, err
845853
}
@@ -1170,19 +1178,14 @@ func (s *Customers) Get(ctx context.Context, request operations.GetCustomerReque
11701178

11711179
// Update a customer
11721180
// Update a customer for the authenticated workspace.
1173-
func (s *Customers) Update(ctx context.Context, id string, requestBody *operations.UpdateCustomerRequestBody, opts ...operations.Option) (*operations.UpdateCustomerResponseBody, error) {
1181+
func (s *Customers) Update(ctx context.Context, request operations.UpdateCustomerRequest, opts ...operations.Option) (*operations.UpdateCustomerResponseBody, error) {
11741182
hookCtx := hooks.HookContext{
11751183
Context: ctx,
11761184
OperationID: "updateCustomer",
11771185
OAuth2Scopes: []string{},
11781186
SecuritySource: s.sdkConfiguration.Security,
11791187
}
11801188

1181-
request := operations.UpdateCustomerRequest{
1182-
ID: id,
1183-
RequestBody: requestBody,
1184-
}
1185-
11861189
o := operations.Options{}
11871190
supportedOptions := []string{
11881191
operations.SupportedOptionRetries,
@@ -1230,6 +1233,10 @@ func (s *Customers) Update(ctx context.Context, id string, requestBody *operatio
12301233
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
12311234
req.Header.Set("Content-Type", reqContentType)
12321235

1236+
if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil {
1237+
return nil, fmt.Errorf("error populating query params: %w", err)
1238+
}
1239+
12331240
if err := utils.PopulateSecurity(ctx, req, s.sdkConfiguration.Security); err != nil {
12341241
return nil, err
12351242
}

β€Ždocs/models/operations/getcustomerrequest.mdβ€Ž

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- |
8-
| `ID` | *string* | :heavy_check_mark: | The unique identifier of the customer in Dub. |
6+
| Field | Type | Required | Description |
7+
| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
8+
| `ID` | *string* | :heavy_check_mark: | The unique identifier of the customer in Dub. |
9+
| `IncludeExpandedFields` | **bool* | :heavy_minus_sign: | Whether to include expanded fields on the customer (`link`, `partner`, `discount`). |
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# GetCustomersRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
8+
| `Email` | **string* | :heavy_minus_sign: | A case-sensitive filter on the list based on the customer's `email` field. The value must be a string. |
9+
| `ExternalID` | **string* | :heavy_minus_sign: | A case-sensitive filter on the list based on the customer's `externalId` field. The value must be a string. |
10+
| `IncludeExpandedFields` | **bool* | :heavy_minus_sign: | Whether to include expanded fields on the customer (`link`, `partner`, `discount`). |

β€Ždocs/models/operations/updatecustomerrequest.mdβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
| Field | Type | Required | Description |
77
| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
88
| `ID` | *string* | :heavy_check_mark: | The unique identifier of the customer in Dub. |
9+
| `IncludeExpandedFields` | **bool* | :heavy_minus_sign: | Whether to include expanded fields on the customer (`link`, `partner`, `discount`). |
910
| `RequestBody` | [*operations.UpdateCustomerRequestBody](../../models/operations/updatecustomerrequestbody.md) | :heavy_minus_sign: | N/A |

0 commit comments

Comments
Β (0)