Skip to content

Commit d0fa2da

Browse files
authored
Merge pull request #93 from dubinc/speakeasy-sdk-regen-1739147230
chore: 🐝 Update SDK - Generate 0.18.1
2 parents 4eb2315 + 3451aac commit d0fa2da

File tree

102 files changed

+3475
-240
lines changed

Some content is hidden

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

102 files changed

+3475
-240
lines changed

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

Lines changed: 177 additions & 19 deletions
Large diffs are not rendered by default.

β€Ž.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
python:
16-
version: 0.18.0
16+
version: 0.18.1
1717
additionalDependencies:
1818
dev: {}
1919
main: {}

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.487.0
1+
speakeasyVersion: 1.488.0
22
sources:
33
dub:
44
sourceNamespace: dub
5-
sourceRevisionDigest: sha256:ab97c760eae221014b66c6cba59bfb5d5d33b3cedd1b63cb07c650c623381683
6-
sourceBlobDigest: sha256:b7a3b7a4157eabd6259ae17434797f4f765110d42328718fee9539ec10fb40e9
5+
sourceRevisionDigest: sha256:63a6c025e4134124702d440362b5b5d86d86a6894dcefb40e26fb0d77f1c5ac7
6+
sourceBlobDigest: sha256:d23c8374438ca338a7145435254e81f4fc5721e1fdeb1afc96ffb77cdcd830c2
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1738887967
9+
- speakeasy-sdk-regen-1739147230
1010
- 0.0.1
1111
targets:
1212
my-first-target:
1313
source: dub
1414
sourceNamespace: dub
15-
sourceRevisionDigest: sha256:ab97c760eae221014b66c6cba59bfb5d5d33b3cedd1b63cb07c650c623381683
16-
sourceBlobDigest: sha256:b7a3b7a4157eabd6259ae17434797f4f765110d42328718fee9539ec10fb40e9
15+
sourceRevisionDigest: sha256:63a6c025e4134124702d440362b5b5d86d86a6894dcefb40e26fb0d77f1c5ac7
16+
sourceBlobDigest: sha256:d23c8374438ca338a7145435254e81f4fc5721e1fdeb1afc96ffb77cdcd830c2
1717
codeSamplesNamespace: code-samples-python-my-first-target
18-
codeSamplesRevisionDigest: sha256:f885a85925dd968d144b0aec523222a0a57c89430f7e173d4cd42beb5c6e3c9a
18+
codeSamplesRevisionDigest: sha256:f280445717c5a029dcb6cd962dffa582b7db0c032013fcfbed936ea3ebd19094
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

β€ŽREADME.mdβ€Ž

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,13 @@ asyncio.run(main())
239239

240240
* [list](docs/sdks/events/README.md#list) - Retrieve a list of events
241241

242+
### [folders](docs/sdks/folders/README.md)
243+
244+
* [create](docs/sdks/folders/README.md#create) - Create a new folder
245+
* [list](docs/sdks/folders/README.md#list) - Retrieve a list of folders
246+
* [update](docs/sdks/folders/README.md#update) - Update a folder
247+
* [delete](docs/sdks/folders/README.md#delete) - Delete a folder
248+
242249
### [links](docs/sdks/links/README.md)
243250

244251
* [create](docs/sdks/links/README.md#create) - Create a new link
@@ -261,6 +268,7 @@ asyncio.run(main())
261268
* [create](docs/sdks/partners/README.md#create) - Create a new partner
262269
* [create_link](docs/sdks/partners/README.md#create_link) - Create a link for a partner
263270
* [upsert_link](docs/sdks/partners/README.md#upsert_link) - Upsert a link for a partner
271+
* [analytics](docs/sdks/partners/README.md#analytics) - Retrieve analytics for a partner
264272

265273
### [qr_codes](docs/sdks/qrcodes/README.md)
266274

β€ŽRELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,4 +836,14 @@ Based on:
836836
### Generated
837837
- [python v0.18.0] .
838838
### Releases
839-
- [PyPI v0.18.0] https://pypi.org/project/dub/0.18.0 - .
839+
- [PyPI v0.18.0] https://pypi.org/project/dub/0.18.0 - .
840+
841+
## 2025-02-12 00:25:51
842+
### Changes
843+
Based on:
844+
- OpenAPI Doc
845+
- Speakeasy CLI 1.488.0 (2.506.0) https://github.com/speakeasy-api/speakeasy
846+
### Generated
847+
- [python v0.18.1] .
848+
### Releases
849+
- [PyPI v0.18.1] https://pypi.org/project/dub/0.18.1 - .

β€ŽcodeSamples.yamlβ€Ž

Lines changed: 92 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,78 @@ actions:
209209
210210
assert res is not None
211211
212+
# Handle response
213+
print(res)
214+
- target: $["paths"]["/folders"]["get"]
215+
update:
216+
x-codeSamples:
217+
- lang: python
218+
label: listFolders
219+
source: |-
220+
from dub import Dub
221+
222+
with Dub(
223+
token="DUB_API_KEY",
224+
) as d_client:
225+
226+
res = d_client.folders.list(request={})
227+
228+
assert res is not None
229+
230+
# Handle response
231+
print(res)
232+
- target: $["paths"]["/folders"]["post"]
233+
update:
234+
x-codeSamples:
235+
- lang: python
236+
label: createFolder
237+
source: |-
238+
from dub import Dub
239+
240+
with Dub(
241+
token="DUB_API_KEY",
242+
) as d_client:
243+
244+
res = d_client.folders.create()
245+
246+
assert res is not None
247+
248+
# Handle response
249+
print(res)
250+
- target: $["paths"]["/folders/{id}"]["delete"]
251+
update:
252+
x-codeSamples:
253+
- lang: python
254+
label: deleteFolder
255+
source: |-
256+
from dub import Dub
257+
258+
with Dub(
259+
token="DUB_API_KEY",
260+
) as d_client:
261+
262+
res = d_client.folders.delete(id="<id>")
263+
264+
assert res is not None
265+
266+
# Handle response
267+
print(res)
268+
- target: $["paths"]["/folders/{id}"]["patch"]
269+
update:
270+
x-codeSamples:
271+
- lang: python
272+
label: updateFolder
273+
source: |-
274+
from dub import Dub
275+
276+
with Dub(
277+
token="DUB_API_KEY",
278+
) as d_client:
279+
280+
res = d_client.folders.update(id="<id>")
281+
282+
assert res is not None
283+
212284
# Handle response
213285
print(res)
214286
- target: $["paths"]["/links"]["get"]
@@ -486,6 +558,26 @@ actions:
486558
487559
assert res is not None
488560
561+
# Handle response
562+
print(res)
563+
- target: $["paths"]["/partners/analytics"]["get"]
564+
update:
565+
x-codeSamples:
566+
- lang: python
567+
label: retrievePartnerAnalytics
568+
source: |-
569+
from dub import Dub
570+
571+
with Dub(
572+
token="DUB_API_KEY",
573+
) as d_client:
574+
575+
res = d_client.partners.analytics(request={
576+
"program_id": "<id>",
577+
})
578+
579+
assert res is not None
580+
489581
# Handle response
490582
print(res)
491583
- target: $["paths"]["/partners/links"]["post"]
@@ -502,7 +594,6 @@ actions:
502594
503595
res = d_client.partners.create_link(request={
504596
"program_id": "<id>",
505-
"url": "https://necessary-brief.name",
506597
"link_props": {
507598
"external_id": "123456",
508599
"tag_ids": [
@@ -529,7 +620,6 @@ actions:
529620
530621
res = d_client.partners.upsert_link(request={
531622
"program_id": "<id>",
532-
"url": "https://unsteady-lobster.com/",
533623
"link_props": {
534624
"external_id": "123456",
535625
"tag_ids": [
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# AccessLevel
2+
3+
The access level of the folder within the workspace.
4+
5+
6+
## Values
7+
8+
| Name | Value |
9+
| ------- | ------- |
10+
| `READ` | read |
11+
| `WRITE` | write |

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
| `geo` | [Nullable[components.LinkWebhookEventGeo]](../../models/components/linkwebhookeventgeo.md) | :heavy_check_mark: | Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. Learn more: https://d.to/geo |
2626
| ~~`tag_id`~~ | *Nullable[str]* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>The unique ID of the tag assigned to the short link. This field is deprecated – use `tags` instead. |
2727
| `tags` | List[[components.TagSchema](../../models/components/tagschema.md)] | :heavy_check_mark: | The tags assigned to the short link. |
28+
| `folder_id` | *Nullable[str]* | :heavy_check_mark: | The unique ID of the folder assigned to the short link. |
2829
| `webhook_ids` | List[*str*] | :heavy_check_mark: | The IDs of the webhooks that the short link is associated with. |
2930
| `comments` | *Nullable[str]* | :heavy_check_mark: | The comments for the short link. |
3031
| `short_link` | *str* | :heavy_check_mark: | The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`). |
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# FolderSchema
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
8+
| `id` | *str* | :heavy_check_mark: | The unique ID of the folder. |
9+
| `name` | *str* | :heavy_check_mark: | The name of the folder. |
10+
| `created_at` | *str* | :heavy_check_mark: | The date the folder was created. |
11+
| `updated_at` | *str* | :heavy_check_mark: | The date the folder was updated. |
12+
| `access_level` | [OptionalNullable[components.AccessLevel]](../../models/components/accesslevel.md) | :heavy_minus_sign: | The access level of the folder within the workspace. |
13+
| `link_count` | *Optional[float]* | :heavy_minus_sign: | The number of links in the folder. |

0 commit comments

Comments
Β (0)