Skip to content

Commit 5ae3f19

Browse files
authored
Merge pull request #124 from dubinc/speakeasy-sdk-regen-1752711874
chore: 🐝 Update SDK - Generate 0.12.33
2 parents 2954bca + 86aae54 commit 5ae3f19

File tree

80 files changed

+3308
-329
lines changed

Some content is hidden

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

80 files changed

+3308
-329
lines changed

.speakeasy/gen.lock

Lines changed: 90 additions & 8 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
@@ -21,7 +21,7 @@ generation:
2121
generateNewTests: false
2222
skipResponseBodyAssertions: false
2323
php:
24-
version: 0.12.32
24+
version: 0.12.33
2525
additionalDependencies:
2626
autoload: {}
2727
autoload-dev: {}

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.580.2
1+
speakeasyVersion: 1.587.1
22
sources:
33
dub:
44
sourceNamespace: dub
5-
sourceRevisionDigest: sha256:1ff5f9382f2a5f59c6203c980ecd26035670a04f6e209f186ae0b564d270e93f
6-
sourceBlobDigest: sha256:513bbc5a5d14b68f0b0ab5cfb0d77dc70e0043ef17cc4faa99b56ccbf24081e4
5+
sourceRevisionDigest: sha256:723a7afc4f86f112e033d752e70146d3037fd530a44a67f6ac43472ae50c1da6
6+
sourceBlobDigest: sha256:618a7fa6c79932d3c0d2be8b8bfd5b1babc8df14f052a70b077fff3700e1f87d
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1752180431
9+
- speakeasy-sdk-regen-1752711874
1010
- 0.0.1
1111
targets:
1212
my-first-target:
1313
source: dub
1414
sourceNamespace: dub
15-
sourceRevisionDigest: sha256:1ff5f9382f2a5f59c6203c980ecd26035670a04f6e209f186ae0b564d270e93f
16-
sourceBlobDigest: sha256:513bbc5a5d14b68f0b0ab5cfb0d77dc70e0043ef17cc4faa99b56ccbf24081e4
15+
sourceRevisionDigest: sha256:723a7afc4f86f112e033d752e70146d3037fd530a44a67f6ac43472ae50c1da6
16+
sourceBlobDigest: sha256:618a7fa6c79932d3c0d2be8b8bfd5b1babc8df14f052a70b077fff3700e1f87d
1717
codeSamplesNamespace: code-samples-php-my-first-target
18-
codeSamplesRevisionDigest: sha256:3e3fea03e23eadf054704162fbb25e7fc38bffa11865129c69a41c06d94c8f8a
18+
codeSamplesRevisionDigest: sha256:75b8b908947daf5aa9b233f139a9025ab1e68dbb209bb388035178428739282b
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ if ($response->linkSchema !== null) {
249249
### [partners](docs/sdks/partners/README.md)
250250

251251
* [create](docs/sdks/partners/README.md#create) - Create a partner
252+
* [list](docs/sdks/partners/README.md#list) - List all partners
252253
* [createLink](docs/sdks/partners/README.md#createlink) - Create a link for a partner
253254
* [retrieveLinks](docs/sdks/partners/README.md#retrievelinks) - Retrieve a partner's links.
254255
* [upsertLink](docs/sdks/partners/README.md#upsertlink) - Upsert a link for a partner

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1150,4 +1150,14 @@ Based on:
11501150
### Generated
11511151
- [php v0.12.32] .
11521152
### Releases
1153-
- [Composer v0.12.32] https://packagist.org/packages/dub/dub-php#v0.12.32 - .
1153+
- [Composer v0.12.32] https://packagist.org/packages/dub/dub-php#v0.12.32 - .
1154+
1155+
## 2025-07-24 00:42:54
1156+
### Changes
1157+
Based on:
1158+
- OpenAPI Doc
1159+
- Speakeasy CLI 1.587.1 (2.662.0) https://github.com/speakeasy-api/speakeasy
1160+
### Generated
1161+
- [php v0.12.33] .
1162+
### Releases
1163+
- [Composer v0.12.33] https://packagist.org/packages/dub/dub-php#v0.12.33 - .

codeSamples.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,12 @@ actions:
171171
- "lang": "php"
172172
"label": "updateLink"
173173
"source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Operations;\n\n$sdk = Dub\\Dub::builder()\n ->setSecurity(\n 'DUB_API_KEY'\n )\n ->build();\n\n$requestBody = new Operations\\UpdateLinkRequestBody(\n url: 'https://google.com',\n externalId: '123456',\n tagIds: [\n 'clux0rgak00011...',\n ],\n testVariants: [\n new Operations\\UpdateLinkTestVariants(\n url: 'https://example.com/variant-1',\n percentage: 50,\n ),\n new Operations\\UpdateLinkTestVariants(\n url: 'https://example.com/variant-2',\n percentage: 50,\n ),\n ],\n);\n\n$response = $sdk->links->update(\n linkId: '<id>',\n requestBody: $requestBody\n\n);\n\nif ($response->linkSchema !== null) {\n // handle response\n}"
174+
- target: $["paths"]["/partners"]["get"]
175+
update:
176+
"x-codeSamples":
177+
- "lang": "php"
178+
"label": "listPartners"
179+
"source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Operations;\n\n$sdk = Dub\\Dub::builder()\n ->setSecurity(\n 'DUB_API_KEY'\n )\n ->build();\n\n$request = new Operations\\ListPartnersRequest(\n status: Operations\\ListPartnersQueryParamStatus::Approved,\n country: 'US',\n tenantId: '1K0NM7HCN944PEMZ3CQPH43H8',\n includeExpandedFields: false,\n search: 'john',\n pageSize: 50,\n);\n\n$response = $sdk->partners->list(\n request: $request\n);\n\nif ($response->responseBodies !== null) {\n // handle response\n}"
174180
- target: $["paths"]["/partners"]["post"]
175181
update:
176182
"x-codeSamples":
@@ -248,7 +254,7 @@ actions:
248254
"x-codeSamples":
249255
- "lang": "php"
250256
"label": "trackSale"
251-
"source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Operations;\n\n$sdk = Dub\\Dub::builder()\n ->setSecurity(\n 'DUB_API_KEY'\n )\n ->build();\n\n$request = new Operations\\TrackSaleRequestBody(\n customerExternalId: '<id>',\n amount: 594903,\n eventName: 'Invoice paid',\n paymentProcessor: Operations\\PaymentProcessor::Polar,\n leadEventName: 'Cloned template 1481267',\n);\n\n$response = $sdk->track->sale(\n request: $request\n);\n\nif ($response->object !== null) {\n // handle response\n}"
257+
"source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\nuse Dub\\Models\\Operations;\n\n$sdk = Dub\\Dub::builder()\n ->setSecurity(\n 'DUB_API_KEY'\n )\n ->build();\n\n$request = new Operations\\TrackSaleRequestBody(\n customerExternalId: '<id>',\n amount: 594903,\n eventName: 'Invoice paid',\n paymentProcessor: Operations\\PaymentProcessor::Paddle,\n leadEventName: 'Cloned template 1481267',\n);\n\n$response = $sdk->track->sale(\n request: $request\n);\n\nif ($response->object !== null) {\n // handle response\n}"
252258
- target: $["paths"]["/workspaces/{idOrSlug}"]["get"]
253259
update:
254260
"x-codeSamples":
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# BannedReason
2+
3+
If the partner was banned from the program, this is the reason for the ban.
4+
5+
6+
## Values
7+
8+
| Name | Value |
9+
| ---------------------- | ---------------------- |
10+
| `TosViolation` | tos_violation |
11+
| `InappropriateContent` | inappropriate_content |
12+
| `FakeTraffic` | fake_traffic |
13+
| `Fraud` | fraud |
14+
| `Spam` | spam |
15+
| `BrandAbuse` | brand_abuse |
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# CommissionCreatedEvent
2+
3+
Triggered when a commission is created for a partner.
4+
5+
6+
## Fields
7+
8+
| Field | Type | Required | Description |
9+
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
10+
| `id` | *string* | :heavy_check_mark: | N/A |
11+
| `event` | [Components\CommissionCreatedEventEvent](../../Models/Components/CommissionCreatedEventEvent.md) | :heavy_check_mark: | N/A |
12+
| `createdAt` | *string* | :heavy_check_mark: | N/A |
13+
| `data` | [Components\CommissionCreatedEventData](../../Models/Components/CommissionCreatedEventData.md) | :heavy_check_mark: | N/A |
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# CommissionCreatedEventCustomer
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
8+
| `id` | *string* | :heavy_check_mark: | The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`). |
9+
| `externalId` | *string* | :heavy_check_mark: | Unique identifier for the customer in the client's app. |
10+
| `name` | *string* | :heavy_check_mark: | Name of the customer. |
11+
| `email` | *?string* | :heavy_minus_sign: | Email of the customer. |
12+
| `avatar` | *?string* | :heavy_minus_sign: | Avatar URL of the customer. |
13+
| `country` | *?string* | :heavy_minus_sign: | Country of the customer. |
14+
| `sales` | *?float* | :heavy_minus_sign: | Total number of sales for the customer. |
15+
| `saleAmount` | *?float* | :heavy_minus_sign: | Total amount of sales for the customer. |
16+
| `createdAt` | *string* | :heavy_check_mark: | The date the customer was created. |

0 commit comments

Comments
 (0)