Skip to content

Commit 7705e1b

Browse files
authored
Merge pull request #66 from dubinc/speakeasy-sdk-regen-1734480766
chore: 🐝 Update SDK - Generate 0.13.0
2 parents b13b0e3 + c2f611c commit 7705e1b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+608
-275
lines changed

.speakeasy/gen.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
lockVersion: 2.0.0
22
id: 1773e9c7-1931-4663-8ac8-4deaf8db76f5
33
management:
4-
docChecksum: 696b11ac8aea0ac84de6ac987269993a
4+
docChecksum: cb382cc4468d569fac201d1bf8058387
55
docVersion: 0.0.1
6-
speakeasyVersion: 1.453.10
7-
generationVersion: 2.474.15
8-
releaseVersion: 0.12.5
9-
configChecksum: fa95747b5e007ad2c86b7bf002967e92
6+
speakeasyVersion: 1.456.0
7+
generationVersion: 2.481.0
8+
releaseVersion: 0.13.0
9+
configChecksum: 336bb15ccfa8a9a37c3d2542d5b1609e
1010
repoURL: https://github.com/dubinc/dub-go.git
1111
installationURL: https://github.com/dubinc/dub-go
1212
features:
1313
go:
1414
additionalDependencies: 0.1.0
1515
constsAndDefaults: 0.1.6
16-
core: 3.5.18
16+
core: 3.6.2
1717
defaultEnabledRetries: 0.2.0
1818
deprecations: 2.81.1
1919
envVarSecurityUsage: 0.3.2
@@ -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": [], "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>", "payoutMethodId": "<id>", "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": []}
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": [], "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>", "payoutMethodId": "<id>", "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": []}
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

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.12.5
16+
version: 0.13.0
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.453.10
1+
speakeasyVersion: 1.456.0
22
sources:
33
dub:
44
sourceNamespace: dub
5-
sourceRevisionDigest: sha256:b643bd4d583a81d6507907f23fe68624ccd7a82451c5eefdbd3c0bf5dfd5071b
6-
sourceBlobDigest: sha256:4fb9afd3f82041cb034a365f95133390b69b22cbb6bd915dea4c7ce235cc144b
5+
sourceRevisionDigest: sha256:9ec3b2350bcbaea6118495836ba221efe6393343abae0a5843acb4173ace2cf9
6+
sourceBlobDigest: sha256:1a0d16219c5d15e56c8d4f3010b89035f7ea6d5af284d33241f231f8e87d361c
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1733875993
9+
- speakeasy-sdk-regen-1734480766
1010
- 0.0.1
1111
targets:
1212
my-first-target:
1313
source: dub
1414
sourceNamespace: dub
15-
sourceRevisionDigest: sha256:b643bd4d583a81d6507907f23fe68624ccd7a82451c5eefdbd3c0bf5dfd5071b
16-
sourceBlobDigest: sha256:4fb9afd3f82041cb034a365f95133390b69b22cbb6bd915dea4c7ce235cc144b
15+
sourceRevisionDigest: sha256:9ec3b2350bcbaea6118495836ba221efe6393343abae0a5843acb4173ace2cf9
16+
sourceBlobDigest: sha256:1a0d16219c5d15e56c8d4f3010b89035f7ea6d5af284d33241f231f8e87d361c
1717
codeSamplesNamespace: code-samples-go-my-first-target
18-
codeSamplesRevisionDigest: sha256:c43f67096866bb45bf0b95055289ce7e2e2670652f3cd5a1435cf43bc437ee3d
18+
codeSamplesRevisionDigest: sha256:afe4eba2a6c6f8dae977bf8aefcb671fba254f05d5573f1e7173d165c99dfea6
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,12 @@ import (
5656
)
5757

5858
func main() {
59+
ctx := context.Background()
60+
5961
s := dubgo.New(
6062
dubgo.WithSecurity("DUB_API_KEY"),
6163
)
6264

63-
ctx := context.Background()
6465
res, err := s.Links.Create(ctx, &operations.CreateLinkRequestBody{
6566
URL: "https://google.com",
6667
ExternalID: dubgo.String("123456"),
@@ -93,11 +94,12 @@ import (
9394
)
9495

9596
func main() {
97+
ctx := context.Background()
98+
9699
s := dubgo.New(
97100
dubgo.WithSecurity("DUB_API_KEY"),
98101
)
99102

100-
ctx := context.Background()
101103
res, err := s.Links.Upsert(ctx, &operations.UpsertLinkRequestBody{
102104
URL: "https://google.com",
103105
ExternalID: dubgo.String("123456"),
@@ -231,11 +233,12 @@ import (
231233
)
232234

233235
func main() {
236+
ctx := context.Background()
237+
234238
s := dubgo.New(
235239
dubgo.WithSecurity("DUB_API_KEY"),
236240
)
237241

238-
ctx := context.Background()
239242
res, err := s.Links.Create(ctx, &operations.CreateLinkRequestBody{
240243
URL: "https://google.com",
241244
ExternalID: dubgo.String("123456"),
@@ -329,12 +332,13 @@ import (
329332
)
330333

331334
func main() {
335+
ctx := context.Background()
336+
332337
s := dubgo.New(
333338
dubgo.WithServerURL("https://api.dub.co"),
334339
dubgo.WithSecurity("DUB_API_KEY"),
335340
)
336341

337-
ctx := context.Background()
338342
res, err := s.Links.Create(ctx, &operations.CreateLinkRequestBody{
339343
URL: "https://google.com",
340344
ExternalID: dubgo.String("123456"),
@@ -407,11 +411,12 @@ import (
407411
)
408412

409413
func main() {
414+
ctx := context.Background()
415+
410416
s := dubgo.New(
411417
dubgo.WithSecurity("DUB_API_KEY"),
412418
)
413419

414-
ctx := context.Background()
415420
res, err := s.Links.Create(ctx, &operations.CreateLinkRequestBody{
416421
URL: "https://google.com",
417422
ExternalID: dubgo.String("123456"),
@@ -451,11 +456,12 @@ import (
451456
)
452457

453458
func main() {
459+
ctx := context.Background()
460+
454461
s := dubgo.New(
455462
dubgo.WithSecurity("DUB_API_KEY"),
456463
)
457464

458-
ctx := context.Background()
459465
res, err := s.Links.Create(ctx, &operations.CreateLinkRequestBody{
460466
URL: "https://google.com",
461467
ExternalID: dubgo.String("123456"),
@@ -498,6 +504,8 @@ import (
498504
)
499505

500506
func main() {
507+
ctx := context.Background()
508+
501509
s := dubgo.New(
502510
dubgo.WithRetryConfig(
503511
retry.Config{
@@ -513,7 +521,6 @@ func main() {
513521
dubgo.WithSecurity("DUB_API_KEY"),
514522
)
515523

516-
ctx := context.Background()
517524
res, err := s.Links.Create(ctx, &operations.CreateLinkRequestBody{
518525
URL: "https://google.com",
519526
ExternalID: dubgo.String("123456"),
@@ -553,11 +560,12 @@ import (
553560
)
554561

555562
func main() {
563+
ctx := context.Background()
564+
556565
s := dubgo.New(
557566
dubgo.WithSecurity("DUB_API_KEY"),
558567
)
559568

560-
ctx := context.Background()
561569
res, err := s.Links.List(ctx, operations.GetLinksRequest{
562570
Page: dubgo.Float64(1),
563571
PageSize: dubgo.Float64(50),

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,4 +628,14 @@ Based on:
628628
### Generated
629629
- [go v0.12.5] .
630630
### Releases
631-
- [Go v0.12.5] https://github.com/dubinc/dub-go/releases/tag/v0.12.5 - .
631+
- [Go v0.12.5] https://github.com/dubinc/dub-go/releases/tag/v0.12.5 - .
632+
633+
## 2024-12-18 00:12:42
634+
### Changes
635+
Based on:
636+
- OpenAPI Doc
637+
- Speakeasy CLI 1.456.0 (2.481.0) https://github.com/speakeasy-api/speakeasy
638+
### Generated
639+
- [go v0.13.0] .
640+
### Releases
641+
- [Go v0.13.0] https://github.com/dubinc/dub-go/releases/tag/v0.13.0 - .

USAGE.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ import (
1010
)
1111

1212
func main() {
13+
ctx := context.Background()
14+
1315
s := dubgo.New(
1416
dubgo.WithSecurity("DUB_API_KEY"),
1517
)
1618

17-
ctx := context.Background()
1819
res, err := s.Links.Create(ctx, &operations.CreateLinkRequestBody{
1920
URL: "https://google.com",
2021
ExternalID: dubgo.String("123456"),
@@ -45,11 +46,12 @@ import (
4546
)
4647

4748
func main() {
49+
ctx := context.Background()
50+
4851
s := dubgo.New(
4952
dubgo.WithSecurity("DUB_API_KEY"),
5053
)
5154

52-
ctx := context.Background()
5355
res, err := s.Links.Upsert(ctx, &operations.UpsertLinkRequestBody{
5456
URL: "https://google.com",
5557
ExternalID: dubgo.String("123456"),

analytics.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ func (s *Analytics) Retrieve(ctx context.Context, request operations.RetrieveAna
4747
}
4848
}
4949

50-
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
50+
var baseURL string
51+
if o.ServerURL == nil {
52+
baseURL = utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
53+
} else {
54+
baseURL = *o.ServerURL
55+
}
5156
opURL, err := url.JoinPath(baseURL, "/analytics")
5257
if err != nil {
5358
return nil, fmt.Errorf("error generating URL: %w", err)
@@ -79,6 +84,10 @@ func (s *Analytics) Retrieve(ctx context.Context, request operations.RetrieveAna
7984
return nil, err
8085
}
8186

87+
for k, v := range o.SetHeaders {
88+
req.Header.Set(k, v)
89+
}
90+
8291
globalRetryConfig := s.sdkConfiguration.RetryConfig
8392
retryConfig := o.Retries
8493
if retryConfig == nil {

0 commit comments

Comments
 (0)