Skip to content

Commit

Permalink
Merge pull request #40 from dubinc/speakeasy-sdk-regen-1727482311
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.9.6
  • Loading branch information
devkiran authored Sep 28, 2024
2 parents d135a41 + f4531f2 commit 629b8a2
Show file tree
Hide file tree
Showing 11 changed files with 60 additions and 39 deletions.
14 changes: 7 additions & 7 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
lockVersion: 2.0.0
id: 1773e9c7-1931-4663-8ac8-4deaf8db76f5
management:
docChecksum: b6e0f68b0350f243f5aab5565767940a
docChecksum: 596f43d83d9b42d6000040c93ba5018d
docVersion: 0.0.1
speakeasyVersion: 1.402.14
generationVersion: 2.422.22
releaseVersion: 0.9.5
configChecksum: f8b2fc4539df973efab9a5957b672599
speakeasyVersion: 1.404.5
generationVersion: 2.426.2
releaseVersion: 0.9.6
configChecksum: 61e72cea5f8e72d11e3eb5cd65acb087
repoURL: https://github.com/dubinc/dub-go.git
installationURL: https://github.com/dubinc/dub-go
features:
go:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.6
core: 3.5.10
core: 3.5.11
defaultEnabledRetries: 0.2.0
deprecations: 2.81.1
envVarSecurityUsage: 0.3.1
Expand Down Expand Up @@ -396,7 +396,7 @@ examples:
parameters:
query:
linkId: "clux0rgak00011..."
externalId: "ext_123456"
externalId: "123456"
responses:
"200":
application/json: {"id": "<id>", "domain": "ringed-blow.name", "key": "<key>", "externalId": "<value>", "url": "https://monumental-spaghetti.name", "expiresAt": "<value>", "expiredUrl": "http://wiggly-substitution.info", "password": "fKH9v5zJBmg5IWA", "title": "<value>", "description": "Optional reciprocal projection", "image": "https://loremflickr.com/640/480", "video": "<value>", "ios": "<value>", "android": "<value>", "tagId": "<value>", "tags": [], "comments": "<value>", "shortLink": "https://hefty-festival.net", "qrCode": "https://pale-civilisation.name", "utm_source": "<value>", "utm_medium": "<value>", "utm_campaign": "<value>", "utm_term": "<value>", "utm_content": "<value>", "userId": "<value>", "workspaceId": "<value>", "lastClicked": "<value>", "createdAt": "<value>", "updatedAt": "<value>", "projectId": "<value>"}
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
go:
version: 0.9.5
version: 0.9.6
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
speakeasyVersion: 1.402.14
speakeasyVersion: 1.404.5
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:9b449b10207ac225854ea186533d16a65d744fd893f15a49d75190ca5d4464cf
sourceBlobDigest: sha256:e3b860d91d9141c00002b6700fcb9ca745afd5bba1db1c785f6cac397483d74f
sourceRevisionDigest: sha256:54a8cb651315019f0ce52efdfa13d7ad3b77fb078b7fac80d10ad581010a20ea
sourceBlobDigest: sha256:ae9b94360373cfd5c559ad5c6dc4a15b0a9131b273d63f0eefd2573366b5250c
tags:
- latest
- main
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:9b449b10207ac225854ea186533d16a65d744fd893f15a49d75190ca5d4464cf
sourceBlobDigest: sha256:e3b860d91d9141c00002b6700fcb9ca745afd5bba1db1c785f6cac397483d74f
sourceRevisionDigest: sha256:54a8cb651315019f0ce52efdfa13d7ad3b77fb078b7fac80d10ad581010a20ea
sourceBlobDigest: sha256:ae9b94360373cfd5c559ad5c6dc4a15b0a9131b273d63f0eefd2573366b5250c
codeSamplesNamespace: code-samples-go-my-first-target
codeSamplesRevisionDigest: sha256:f5ac876623a57ca645cf375dfb717a7baea0a689c9ec8c158f3e91d4b5315473
codeSamplesRevisionDigest: sha256:6780b40edbbefbcae0ae6ca679591a18e2952fb8fd8a83f65237b903c23f1cd3
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -368,4 +368,14 @@ Based on:
### Generated
- [go v0.9.5] .
### Releases
- [Go v0.9.5] https://github.com/dubinc/dub-go/releases/tag/v0.9.5 - .
- [Go v0.9.5] https://github.com/dubinc/dub-go/releases/tag/v0.9.5 - .

## 2024-09-28 00:11:46
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.404.5 (2.426.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.9.6] .
### Releases
- [Go v0.9.6] https://github.com/dubinc/dub-go/releases/tag/v0.9.6 - .
12 changes: 6 additions & 6 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ actions:
"x-codeSamples":
- "lang": "go"
"label": "bulkUpdateLinks"
"source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"context\"\n\t\"github.com/dubinc/dub-go/models/operations\"\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.UpdateMany(ctx, &operations.BulkUpdateLinksRequestBody{\n LinkIds: []string{\n \"<value>\",\n },\n Data: operations.Data{\n URL: dubgo.String(\"https://google.com\"),\n TagIds: dubgo.Pointer(operations.CreateBulkUpdateLinksTagIdsArrayOfStr(\n []string{\n \"clux0rgak00011...\",\n },\n )),\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"
"source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"context\"\n\t\"github.com/dubinc/dub-go/models/operations\"\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.UpdateMany(ctx, &operations.BulkUpdateLinksRequestBody{\n Data: operations.Data{\n URL: dubgo.String(\"https://google.com\"),\n TagIds: dubgo.Pointer(operations.CreateBulkUpdateLinksTagIdsArrayOfStr(\n []string{\n \"clux0rgak00011...\",\n },\n )),\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"
- target: $["paths"]["/links/bulk"]["post"]
update:
"x-codeSamples":
Expand All @@ -80,7 +80,7 @@ actions:
"x-codeSamples":
- "lang": "go"
"label": "getLinkInfo"
"source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"context\"\n\t\"github.com/dubinc/dub-go/models/operations\"\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.Get(ctx, operations.GetLinkInfoRequest{\n LinkID: dubgo.String(\"clux0rgak00011...\"),\n ExternalID: dubgo.String(\"ext_123456\"),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"
"source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"context\"\n\t\"github.com/dubinc/dub-go/models/operations\"\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.Get(ctx, operations.GetLinkInfoRequest{\n LinkID: dubgo.String(\"clux0rgak00011...\"),\n ExternalID: dubgo.String(\"123456\"),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"
- target: $["paths"]["/links/upsert"]["put"]
update:
"x-codeSamples":
Expand All @@ -92,13 +92,13 @@ actions:
"x-codeSamples":
- "lang": "go"
"label": "deleteLink"
"source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\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.Delete(ctx, \"<value>\")\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"
"source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\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.Delete(ctx, \"<id>\")\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"
- target: $["paths"]["/links/{linkId}"]["patch"]
update:
"x-codeSamples":
- "lang": "go"
"label": "updateLink"
"source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"context\"\n\t\"github.com/dubinc/dub-go/models/operations\"\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.Update(ctx, \"<value>\", &operations.UpdateLinkRequestBody{\n URL: dubgo.String(\"https://google.com\"),\n ExternalID: dubgo.String(\"123456\"),\n TagIds: dubgo.Pointer(operations.CreateUpdateLinkTagIdsArrayOfStr(\n []string{\n \"clux0rgak00011...\",\n },\n )),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"
"source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"context\"\n\t\"github.com/dubinc/dub-go/models/operations\"\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.Update(ctx, \"<id>\", &operations.UpdateLinkRequestBody{\n URL: dubgo.String(\"https://google.com\"),\n ExternalID: dubgo.String(\"123456\"),\n TagIds: dubgo.Pointer(operations.CreateUpdateLinkTagIdsArrayOfStr(\n []string{\n \"clux0rgak00011...\",\n },\n )),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"
- target: $["paths"]["/metatags"]["get"]
update:
"x-codeSamples":
Expand Down Expand Up @@ -146,13 +146,13 @@ actions:
"x-codeSamples":
- "lang": "go"
"label": "trackLead"
"source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"context\"\n\t\"github.com/dubinc/dub-go/models/operations\"\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.Track.Lead(ctx, &operations.TrackLeadRequestBody{\n ClickID: \"<value>\",\n EventName: \"Sign up\",\n CustomerID: \"<value>\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"
"source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"context\"\n\t\"github.com/dubinc/dub-go/models/operations\"\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.Track.Lead(ctx, &operations.TrackLeadRequestBody{\n ClickID: \"<id>\",\n EventName: \"Sign up\",\n CustomerID: \"<id>\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"
- target: $["paths"]["/track/sale"]["post"]
update:
"x-codeSamples":
- "lang": "go"
"label": "trackSale"
"source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"context\"\n\t\"github.com/dubinc/dub-go/models/operations\"\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.Track.Sale(ctx, &operations.TrackSaleRequestBody{\n CustomerID: \"<value>\",\n Amount: 996500,\n PaymentProcessor: operations.PaymentProcessorPaddle,\n EventName: dubgo.String(\"Purchase\"),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"
"source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"context\"\n\t\"github.com/dubinc/dub-go/models/operations\"\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.Track.Sale(ctx, &operations.TrackSaleRequestBody{\n CustomerID: \"<id>\",\n Amount: 996500,\n PaymentProcessor: operations.PaymentProcessorPaddle,\n EventName: dubgo.String(\"Purchase\"),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"
- target: $["paths"]["/workspaces/{idOrSlug}"]["get"]
update:
"x-codeSamples":
Expand Down
9 changes: 5 additions & 4 deletions docs/models/operations/bulkupdatelinksrequestbody.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

## Fields

| Field | Type | Required | Description |
| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- |
| `LinkIds` | []*string* | :heavy_check_mark: | N/A |
| `Data` | [operations.Data](../../models/operations/data.md) | :heavy_check_mark: | N/A |
| Field | Type | Required | Description |
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
| `LinkIds` | []*string* | :heavy_minus_sign: | The IDs of the links to update. Takes precedence over `externalIds`. |
| `ExternalIds` | []*string* | :heavy_minus_sign: | The external IDs of the links to update as stored in your database. |
| `Data` | [operations.Data](../../models/operations/data.md) | :heavy_check_mark: | N/A |
Loading

0 comments on commit 629b8a2

Please sign in to comment.