Skip to content

Commit 823ca31

Browse files
authored
Merge pull request #154 from dubinc/speakeasy-sdk-regen-1768350905
chore: 🐝 Update SDK - Generate 0.34.1
2 parents f93360a + 28d5624 commit 823ca31

40 files changed

+2263
-67
lines changed

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

Lines changed: 211 additions & 30 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
@@ -26,7 +26,7 @@ generation:
2626
generateNewTests: false
2727
skipResponseBodyAssertions: false
2828
python:
29-
version: 0.34.0
29+
version: 0.34.1
3030
additionalDependencies:
3131
dev: {}
3232
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.684.1
1+
speakeasyVersion: 1.685.0
22
sources:
33
dub:
44
sourceNamespace: dub
5-
sourceRevisionDigest: sha256:5ecf6fa4e6db184474627cabf884146e76c6dfc23e50af57309db41a66b15dca
6-
sourceBlobDigest: sha256:15452b1797768677fd08c357a3252fc745d54a17cb81dd89f605fb04ec40072e
5+
sourceRevisionDigest: sha256:ffa38913fd1ddb434ea4fdce5a9e4f7ac7e0eaecc392cfcfd91ac0b1afe8a92e
6+
sourceBlobDigest: sha256:12df286a54a2610dde44a634f34e6e8d05e77d70b5c92a97875dffe2f7200504
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1765240302
9+
- speakeasy-sdk-regen-1768350905
1010
- 0.0.1
1111
targets:
1212
my-first-target:
1313
source: dub
1414
sourceNamespace: dub
15-
sourceRevisionDigest: sha256:5ecf6fa4e6db184474627cabf884146e76c6dfc23e50af57309db41a66b15dca
16-
sourceBlobDigest: sha256:15452b1797768677fd08c357a3252fc745d54a17cb81dd89f605fb04ec40072e
15+
sourceRevisionDigest: sha256:ffa38913fd1ddb434ea4fdce5a9e4f7ac7e0eaecc392cfcfd91ac0b1afe8a92e
16+
sourceBlobDigest: sha256:12df286a54a2610dde44a634f34e6e8d05e77d70b5c92a97875dffe2f7200504
1717
codeSamplesNamespace: code-samples-python-my-first-target
18-
codeSamplesRevisionDigest: sha256:ae180d97f2e63cb5b3cb14941356df5b89a6dd53d8e5dc9208e1a240018b1cee
18+
codeSamplesRevisionDigest: sha256:372b8c53eb3837830888c25811fa3a070ee33ea4159b12d2b76af3d543b04953
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

β€ŽREADME.mdβ€Ž

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,12 @@ asyncio.run(main())
261261

262262
* [retrieve](docs/sdks/analytics/README.md#retrieve) - Retrieve analytics for a link, a domain, or the authenticated workspace.
263263

264+
### [Bounties](docs/sdks/bounties/README.md)
265+
266+
* [list_submissions](docs/sdks/bounties/README.md#list_submissions) - List bounty submissions
267+
* [approve_submission](docs/sdks/bounties/README.md#approve_submission) - Approve a bounty submission
268+
* [reject_submission](docs/sdks/bounties/README.md#reject_submission) - Reject a bounty submission
269+
264270
### [Commissions](docs/sdks/commissions/README.md)
265271

266272
* [list](docs/sdks/commissions/README.md#list) - Get commissions for a program.

β€ŽRELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1446,4 +1446,14 @@ Based on:
14461446
### Generated
14471447
- [python v0.34.0] .
14481448
### Releases
1449-
- [PyPI v0.34.0] https://pypi.org/project/dub/0.34.0 - .
1449+
- [PyPI v0.34.0] https://pypi.org/project/dub/0.34.0 - .
1450+
1451+
## 2026-01-14 07:13:25
1452+
### Changes
1453+
Based on:
1454+
- OpenAPI Doc
1455+
- Speakeasy CLI 1.685.0 (2.794.1) https://github.com/speakeasy-api/speakeasy
1456+
### Generated
1457+
- [python v0.34.1] .
1458+
### Releases
1459+
- [PyPI v0.34.1] https://pypi.org/project/dub/0.34.1 - .

β€ŽcodeSamples.yamlβ€Ž

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,66 @@ actions:
2929
"query": "metadata['key']:'value'",
3030
})
3131
32+
# Handle response
33+
print(res)
34+
- target: $["paths"]["/bounties/{bountyId}/submissions"]["get"]
35+
update:
36+
x-codeSamples:
37+
- lang: python
38+
label: listBountySubmissions
39+
source: |-
40+
from dub import Dub
41+
42+
43+
with Dub(
44+
token="DUB_API_KEY",
45+
) as d_client:
46+
47+
res = d_client.bounties.list_submissions(request={
48+
"bounty_id": "<id>",
49+
"page_size": 50,
50+
})
51+
52+
# Handle response
53+
print(res)
54+
- target: $["paths"]["/bounties/{bountyId}/submissions/{submissionId}/approve"]["post"]
55+
update:
56+
x-codeSamples:
57+
- lang: python
58+
label: approveBountySubmission
59+
source: |-
60+
from dub import Dub
61+
62+
63+
with Dub(
64+
token="DUB_API_KEY",
65+
) as d_client:
66+
67+
res = d_client.bounties.approve_submission(request={
68+
"bounty_id": "<id>",
69+
"submission_id": "<id>",
70+
})
71+
72+
# Handle response
73+
print(res)
74+
- target: $["paths"]["/bounties/{bountyId}/submissions/{submissionId}/reject"]["post"]
75+
update:
76+
x-codeSamples:
77+
- lang: python
78+
label: rejectBountySubmission
79+
source: |-
80+
from dub import Dub
81+
82+
83+
with Dub(
84+
token="DUB_API_KEY",
85+
) as d_client:
86+
87+
res = d_client.bounties.reject_submission(request={
88+
"bounty_id": "<id>",
89+
"submission_id": "<id>",
90+
})
91+
3292
# Handle response
3393
print(res)
3494
- target: $["paths"]["/commissions"]["get"]
@@ -782,6 +842,7 @@ actions:
782842
) as d_client:
783843
784844
res = d_client.partners.upsert_link(request={
845+
"url": "https://bad-intent.org/",
785846
"link_props": {
786847
"external_id": "123456",
787848
"tag_ids": [

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@
1818
| `created_at` | *str* | :heavy_check_mark: | N/A | |
1919
| `updated_at` | *str* | :heavy_check_mark: | N/A | |
2020
| `partner` | [components.CommissionCreatedEventPartner](../../models/components/commissioncreatedeventpartner.md) | :heavy_check_mark: | N/A | |
21-
| `customer` | [OptionalNullable[components.CommissionCreatedEventCustomer]](../../models/components/commissioncreatedeventcustomer.md) | :heavy_minus_sign: | N/A | |
21+
| `customer` | [OptionalNullable[components.CommissionCreatedEventCustomer]](../../models/components/commissioncreatedeventcustomer.md) | :heavy_minus_sign: | N/A | |
22+
| `link` | [Nullable[components.CommissionCreatedEventLink]](../../models/components/commissioncreatedeventlink.md) | :heavy_check_mark: | N/A | |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# CommissionCreatedEventLink
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
8+
| `id` | *str* | :heavy_check_mark: | The unique ID of the short link. |
9+
| `short_link` | *str* | :heavy_check_mark: | The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`). |
10+
| `domain` | *str* | :heavy_check_mark: | The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains). |
11+
| `key` | *str* | :heavy_check_mark: | The short link slug. If not provided, a random 7-character slug will be generated. |
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# ApproveBountySubmissionFiles
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------ | ------------------ | ------------------ | ------------------ |
8+
| `url` | *str* | :heavy_check_mark: | N/A |
9+
| `file_name` | *str* | :heavy_check_mark: | N/A |
10+
| `size` | *float* | :heavy_check_mark: | N/A |
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# ApproveBountySubmissionRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
8+
| `bounty_id` | *str* | :heavy_check_mark: | N/A |
9+
| `submission_id` | *str* | :heavy_check_mark: | N/A |
10+
| `request_body` | [Optional[operations.ApproveBountySubmissionRequestBody]](../../models/operations/approvebountysubmissionrequestbody.md) | :heavy_minus_sign: | N/A |

0 commit comments

Comments
Β (0)