Skip to content

Commit 2954bca

Browse files
authored
Merge pull request #123 from dubinc/speakeasy-sdk-regen-1752180431
chore: 🐝 Update SDK - Generate 0.12.32
2 parents 081bb5d + a27a6cd commit 2954bca

File tree

11 files changed

+48
-38
lines changed

11 files changed

+48
-38
lines changed

.speakeasy/gen.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 43187d3e-7c3c-4c11-b5d4-4b2334fb6d96
33
management:
4-
docChecksum: 6e45f3521cae083a495cc5102bf01725
4+
docChecksum: aa92a2d401a7d3e37140aef2558f04b3
55
docVersion: 0.0.1
6-
speakeasyVersion: 1.576.1
7-
generationVersion: 2.651.2
8-
releaseVersion: 0.12.31
9-
configChecksum: 53f57d1e5d36bc404b1c8df2599e1a85
6+
speakeasyVersion: 1.580.2
7+
generationVersion: 2.656.5
8+
releaseVersion: 0.12.32
9+
configChecksum: 69ff564775f5311a07ce16b14f6f2d10
1010
repoURL: https://github.com/dubinc/dub-php.git
1111
installationURL: https://github.com/dubinc/dub-php
1212
published: true
@@ -16,7 +16,7 @@ features:
1616
core: 3.8.6
1717
deprecations: 2.81.1
1818
errors: 0.3.0
19-
examples: 2.81.5
19+
examples: 2.81.6
2020
flattening: 2.81.1
2121
globalSecurity: 2.81.8
2222
globalSecurityFlattening: 0.1.2
@@ -1457,7 +1457,7 @@ examples:
14571457
trackLead:
14581458
speakeasy-default-track-lead:
14591459
requestBody:
1460-
application/json: {"clickId": "<id>", "eventName": "Sign up", "externalId": "<id>", "customerName": null, "customerEmail": null, "customerAvatar": null, "mode": "async"}
1460+
application/json: {"clickId": "<id>", "eventName": "Sign up", "customerExternalId": "<id>", "customerName": null, "customerEmail": null, "customerAvatar": null, "mode": "async"}
14611461
responses:
14621462
"200":
14631463
application/json: {"click": {"id": "<id>"}, "customer": {"name": "<value>", "email": "Beaulah.Hamill78@gmail.com", "avatar": "https://picsum.photos/seed/4p2vQu6/2339/955", "externalId": "<id>"}}
@@ -1482,7 +1482,7 @@ examples:
14821482
trackSale:
14831483
speakeasy-default-track-sale:
14841484
requestBody:
1485-
application/json: {"externalId": "<id>", "amount": 594903, "currency": "usd", "eventName": "Invoice paid", "paymentProcessor": "polar", "invoiceId": null, "leadEventName": "Cloned template 1481267"}
1485+
application/json: {"customerExternalId": "<id>", "amount": 594903, "currency": "usd", "eventName": "Invoice paid", "paymentProcessor": "polar", "invoiceId": null, "leadEventName": "Cloned template 1481267"}
14861486
responses:
14871487
"200":
14881488
application/json: {"eventName": "<value>", "customer": {"id": "<id>", "name": "<value>", "email": "Jettie.Hirthe97@yahoo.com", "avatar": "https://loremflickr.com/2112/1585?lock=96959249386723", "externalId": "<id>"}, "sale": {"amount": 67.63, "currency": "Pula", "paymentProcessor": "<value>", "invoiceId": "<id>", "metadata": {"key": "<value>"}}}

.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.31
24+
version: 0.12.32
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.576.1
1+
speakeasyVersion: 1.580.2
22
sources:
33
dub:
44
sourceNamespace: dub
5-
sourceRevisionDigest: sha256:344a20354eb4589dbbd9980f9be560845334a5393b506fa2c861a836aa71a842
6-
sourceBlobDigest: sha256:c6e3421dbea43d0614284508b706e3763f3efb3c7a18e67d6514e04f531cd03c
5+
sourceRevisionDigest: sha256:1ff5f9382f2a5f59c6203c980ecd26035670a04f6e209f186ae0b564d270e93f
6+
sourceBlobDigest: sha256:513bbc5a5d14b68f0b0ab5cfb0d77dc70e0043ef17cc4faa99b56ccbf24081e4
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1751761552
9+
- speakeasy-sdk-regen-1752180431
1010
- 0.0.1
1111
targets:
1212
my-first-target:
1313
source: dub
1414
sourceNamespace: dub
15-
sourceRevisionDigest: sha256:344a20354eb4589dbbd9980f9be560845334a5393b506fa2c861a836aa71a842
16-
sourceBlobDigest: sha256:c6e3421dbea43d0614284508b706e3763f3efb3c7a18e67d6514e04f531cd03c
15+
sourceRevisionDigest: sha256:1ff5f9382f2a5f59c6203c980ecd26035670a04f6e209f186ae0b564d270e93f
16+
sourceBlobDigest: sha256:513bbc5a5d14b68f0b0ab5cfb0d77dc70e0043ef17cc4faa99b56ccbf24081e4
1717
codeSamplesNamespace: code-samples-php-my-first-target
18-
codeSamplesRevisionDigest: sha256:6c18d3e676bb0872ef4d412bc495c262fb25986969ccac1a9dbf3d902b2e1294
18+
codeSamplesRevisionDigest: sha256:3e3fea03e23eadf054704162fbb25e7fc38bffa11865129c69a41c06d94c8f8a
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1140,4 +1140,14 @@ Based on:
11401140
### Generated
11411141
- [php v0.12.31] .
11421142
### Releases
1143-
- [Composer v0.12.31] https://packagist.org/packages/dub/dub-php#v0.12.31 - .
1143+
- [Composer v0.12.31] https://packagist.org/packages/dub/dub-php#v0.12.31 - .
1144+
1145+
## 2025-07-10 20:46:55
1146+
### Changes
1147+
Based on:
1148+
- OpenAPI Doc
1149+
- Speakeasy CLI 1.580.2 (2.656.5) https://github.com/speakeasy-api/speakeasy
1150+
### Generated
1151+
- [php v0.12.32] .
1152+
### Releases
1153+
- [Composer v0.12.32] https://packagist.org/packages/dub/dub-php#v0.12.32 - .

codeSamples.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,13 +242,13 @@ actions:
242242
"x-codeSamples":
243243
- "lang": "php"
244244
"label": "trackLead"
245-
"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\\TrackLeadRequestBody(\n clickId: '<id>',\n eventName: 'Sign up',\n externalId: '<id>',\n);\n\n$response = $sdk->track->lead(\n request: $request\n);\n\nif ($response->object !== null) {\n // handle response\n}"
245+
"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\\TrackLeadRequestBody(\n clickId: '<id>',\n eventName: 'Sign up',\n customerExternalId: '<id>',\n);\n\n$response = $sdk->track->lead(\n request: $request\n);\n\nif ($response->object !== null) {\n // handle response\n}"
246246
- target: $["paths"]["/track/sale"]["post"]
247247
update:
248248
"x-codeSamples":
249249
- "lang": "php"
250250
"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 externalId: '<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}"
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}"
252252
- target: $["paths"]["/workspaces/{idOrSlug}"]["get"]
253253
update:
254254
"x-codeSamples":

docs/Models/Operations/TrackLeadRequestBody.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
88
| `clickId` | *string* | :heavy_check_mark: | The unique ID of the click that the lead conversion event is attributed to. You can read this value from `dub_id` cookie. | |
99
| `eventName` | *string* | :heavy_check_mark: | The name of the lead event to track. Can also be used as a unique identifier to associate a given lead event for a customer for a subsequent sale event (via the `leadEventName` prop in `/track/sale`). | Sign up |
10-
| `externalId` | *string* | :heavy_check_mark: | The unique ID of the customer in your system. Will be used to identify and attribute all future events to this customer. | |
10+
| `customerExternalId` | *string* | :heavy_check_mark: | The unique ID of the customer in your system. Will be used to identify and attribute all future events to this customer. | |
1111
| `customerName` | *?string* | :heavy_minus_sign: | The name of the customer. If not passed, a random name will be generated (e.g. “Big Red Caribou”). | |
1212
| `customerEmail` | *?string* | :heavy_minus_sign: | The email address of the customer. | |
1313
| `customerAvatar` | *?string* | :heavy_minus_sign: | The avatar URL of the customer. | |

0 commit comments

Comments
 (0)