Skip to content

Commit a46c0f3

Browse files
authored
Merge pull request #94 from dubinc/speakeasy-sdk-regen-1742343657
chore: 🐝 Update SDK - Generate 0.12.3
2 parents 8b60168 + deef9c4 commit a46c0f3

File tree

8 files changed

+38
-26
lines changed

8 files changed

+38
-26
lines changed

.speakeasy/gen.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
lockVersion: 2.0.0
22
id: 43187d3e-7c3c-4c11-b5d4-4b2334fb6d96
33
management:
4-
docChecksum: f9c868fde86e1bf634ba88e63a1565a6
4+
docChecksum: 4e598a4467ddcdc095a739a8f8a6521e
55
docVersion: 0.0.1
6-
speakeasyVersion: 1.517.3
7-
generationVersion: 2.548.6
8-
releaseVersion: 0.12.2
9-
configChecksum: e06dcaf9e9e381367167207f0a043f61
6+
speakeasyVersion: 1.520.1
7+
generationVersion: 2.556.1
8+
releaseVersion: 0.12.3
9+
configChecksum: 37975f5528ef2b003e8310c5c8714b94
1010
repoURL: https://github.com/dubinc/dub-php.git
1111
installationURL: https://github.com/dubinc/dub-php
1212
published: true
1313
features:
1414
php:
1515
constsAndDefaults: 0.2.0
16-
core: 3.8.0
16+
core: 3.8.1
1717
deprecations: 2.81.1
1818
errors: 0.3.0
1919
examples: 2.81.5
@@ -1052,7 +1052,7 @@ examples:
10521052
sortBy: "timestamp"
10531053
responses:
10541054
"200":
1055-
application/json: [{"event": "sale", "eventId": "<id>", "eventName": "<value>", "link": {"id": "<id>", "domain": "remorseful-concentration.biz", "key": "<key>", "url": "https://primary-paintwork.com/", "externalId": "<id>", "tenantId": "<id>", "programId": "<id>", "partnerId": "<id>", "expiresAt": "1764823327925", "expiredUrl": "https://black-poetry.name/", "password": "COyVtOrvIw1vLIJ", "title": "<value>", "description": "despite er boom however when uh-huh", "image": "https://picsum.photos/seed/T1tZJLp1EG/3827/3109", "video": "https://loremflickr.com/2420/1632?lock=7470650813503352", "ios": "<value>", "android": "<id>", "geo": {}, "tagId": "<id>", "tags": [{"id": "<id>", "name": "<value>", "color": "green"}], "folderId": "<id>", "webhookIds": [], "comments": "tenement commonly softly boo massive sorrowful", "shortLink": "https://dense-custom.info/", "qrCode": "https://alive-lid.biz", "utm_source": "<value>", "utm_medium": "<value>", "utm_campaign": "<value>", "utm_term": "<value>", "utm_content": "<value>", "userId": "<id>", "workspaceId": "<id>", "clicks": 0, "lastClicked": "<value>", "leads": 0, "sales": 0, "saleAmount": 0, "createdAt": "1730236139475", "updatedAt": "1742109767474", "projectId": "<id>"}, "click": {"id": "<id>", "timestamp": "<value>", "url": "https://utilized-quit.net/", "country": "Togo", "city": "Cormiermouth", "region": "<value>", "continent": "North America", "device": "Mobile", "browser": "Chrome", "os": "Chrome OS", "referer": "gummy-cope.net", "refererUrl": "https://prickly-bourgeoisie.info/", "ip": "69bd:53cd:cebc:ac4b:d1e8:50e8:ee59:b0b3"}, "customer": {"id": "<id>", "externalId": "<id>", "name": "<value>", "createdAt": "1740991683933"}, "sale": {"amount": 625809, "invoiceId": null, "paymentProcessor": "stripe"}, "saleAmount": 1401.42, "invoice_id": "<id>", "payment_processor": "<value>", "click_id": "<id>", "link_id": "<id>", "domain": "unruly-allegation.name", "key": "<key>", "url": "https://fortunate-swim.info/", "continent": "Australia", "country": "Cook Islands", "city": "South Harryburgh", "device": "Mobile", "browser": "Safari", "os": "WebOS", "qr": 1523.03, "ip": "caf5:04dc:da9e:67cc:af3b:8caf:afbe:e39c"}, {"event": "sale", "eventId": "<id>", "eventName": "<value>", "link": {"id": "<id>", "domain": "right-window.biz", "key": "<key>", "url": "https://physical-experience.org/", "externalId": "<id>", "tenantId": "<id>", "programId": "<id>", "partnerId": "<id>", "expiresAt": "1753514681521", "expiredUrl": "https://indelible-birdbath.net", "password": "4yMlkCXkK5ppW3u", "title": "<value>", "description": "terribly gosh facilitate in", "image": "https://loremflickr.com/2596/954?lock=8527955982122580", "video": "https://loremflickr.com/3336/742?lock=2177640289466521", "ios": "<value>", "android": "<id>", "geo": {}, "tagId": "<id>", "tags": [{"id": "<id>", "name": "<value>", "color": "red"}, {"id": "<id>", "name": "<value>", "color": "pink"}, {"id": "<id>", "name": "<value>", "color": "pink"}], "folderId": "<id>", "webhookIds": ["<value>", "<value>", "<value>"], "comments": "up so pro pish clear-cut an mid aw disconnection which wetly typeface usable underneath putrefy ah aha", "shortLink": "https://knowledgeable-season.info", "qrCode": "https://nimble-individual.biz/", "utm_source": "<value>", "utm_medium": "<value>", "utm_campaign": "<value>", "utm_term": "<value>", "utm_content": "<value>", "userId": "<id>", "workspaceId": "<id>", "clicks": 0, "lastClicked": "<value>", "leads": 0, "sales": 0, "saleAmount": 0, "createdAt": "1740730405267", "updatedAt": "1742115488731", "projectId": "<id>"}, "click": {"id": "<id>", "timestamp": "<value>", "url": "https://perfumed-marketplace.com/", "country": "Burundi", "city": "Stockton", "region": "<value>", "continent": "Asia", "device": "Desktop", "browser": "Chrome", "os": "Symbian", "referer": "well-off-hygienic.org", "refererUrl": "https://ripe-ceramic.org", "ip": "eebc:cce9:cecf:ebeb:dfd9:15f2:a0cc:a3b1"}, "customer": {"id": "<id>", "externalId": "<id>", "name": "<value>", "createdAt": "1725091350090"}, "sale": {"amount": 443316, "invoiceId": null, "paymentProcessor": "custom"}, "saleAmount": 2634.98, "invoice_id": "<id>", "payment_processor": "<value>", "click_id": "<id>", "link_id": "<id>", "domain": "next-cricket.biz", "key": "<key>", "url": "https://repentant-rust.name/", "continent": "Australia", "country": "Saint Helena", "city": "Luettgenfort", "device": "Mobile", "browser": "Safari", "os": "Chrome OS", "qr": 4390.32, "ip": "54.229.114.129"}]
1055+
application/json: [{"event": "sale", "eventId": "<id>", "eventName": "<value>", "link": {"id": "<id>", "domain": "remorseful-concentration.biz", "key": "<key>", "url": "https://primary-paintwork.com/", "externalId": "<id>", "tenantId": "<id>", "programId": "<id>", "partnerId": "<id>", "expiresAt": "1764996079101", "expiredUrl": "https://black-poetry.name/", "password": "COyVtOrvIw1vLIJ", "title": "<value>", "description": "despite er boom however when uh-huh", "image": "https://picsum.photos/seed/T1tZJLp1EG/3827/3109", "video": "https://loremflickr.com/2420/1632?lock=7470650813503352", "ios": "<value>", "android": "<id>", "geo": {}, "tagId": "<id>", "tags": [{"id": "<id>", "name": "<value>", "color": "green"}], "folderId": "<id>", "webhookIds": [], "comments": "tenement commonly softly boo massive sorrowful", "shortLink": "https://dense-custom.info/", "qrCode": "https://alive-lid.biz", "utm_source": "<value>", "utm_medium": "<value>", "utm_campaign": "<value>", "utm_term": "<value>", "utm_content": "<value>", "userId": "<id>", "workspaceId": "<id>", "clicks": 0, "lastClicked": "<value>", "leads": 0, "sales": 0, "saleAmount": 0, "createdAt": "1730408890651", "updatedAt": "1742282518650", "projectId": "<id>"}, "click": {"id": "<id>", "timestamp": "<value>", "url": "https://utilized-quit.net/", "country": "Togo", "city": "Cormiermouth", "region": "<value>", "continent": "North America", "device": "Mobile", "browser": "Chrome", "os": "Chrome OS", "referer": "gummy-cope.net", "refererUrl": "https://prickly-bourgeoisie.info/", "ip": "69bd:53cd:cebc:ac4b:d1e8:50e8:ee59:b0b3"}, "customer": {"id": "<id>", "externalId": "<id>", "name": "<value>", "createdAt": "1741164435109"}, "sale": {"amount": 625809, "invoiceId": null, "paymentProcessor": "stripe"}, "saleAmount": 1401.42, "invoice_id": "<id>", "payment_processor": "<value>", "click_id": "<id>", "link_id": "<id>", "domain": "unruly-allegation.name", "key": "<key>", "url": "https://fortunate-swim.info/", "continent": "Australia", "country": "Cook Islands", "city": "South Harryburgh", "device": "Mobile", "browser": "Safari", "os": "WebOS", "qr": 1523.03, "ip": "caf5:04dc:da9e:67cc:af3b:8caf:afbe:e39c"}, {"event": "sale", "eventId": "<id>", "eventName": "<value>", "link": {"id": "<id>", "domain": "right-window.biz", "key": "<key>", "url": "https://physical-experience.org/", "externalId": "<id>", "tenantId": "<id>", "programId": "<id>", "partnerId": "<id>", "expiresAt": "1753687432690", "expiredUrl": "https://indelible-birdbath.net", "password": "4yMlkCXkK5ppW3u", "title": "<value>", "description": "terribly gosh facilitate in", "image": "https://loremflickr.com/2596/954?lock=8527955982122580", "video": "https://loremflickr.com/3336/742?lock=2177640289466521", "ios": "<value>", "android": "<id>", "geo": {}, "tagId": "<id>", "tags": [{"id": "<id>", "name": "<value>", "color": "red"}, {"id": "<id>", "name": "<value>", "color": "pink"}, {"id": "<id>", "name": "<value>", "color": "pink"}], "folderId": "<id>", "webhookIds": ["<value>", "<value>", "<value>"], "comments": "up so pro pish clear-cut an mid aw disconnection which wetly typeface usable underneath putrefy ah aha", "shortLink": "https://knowledgeable-season.info", "qrCode": "https://nimble-individual.biz/", "utm_source": "<value>", "utm_medium": "<value>", "utm_campaign": "<value>", "utm_term": "<value>", "utm_content": "<value>", "userId": "<id>", "workspaceId": "<id>", "clicks": 0, "lastClicked": "<value>", "leads": 0, "sales": 0, "saleAmount": 0, "createdAt": "1740903156392", "updatedAt": "1742288239856", "projectId": "<id>"}, "click": {"id": "<id>", "timestamp": "<value>", "url": "https://perfumed-marketplace.com/", "country": "Burundi", "city": "Stockton", "region": "<value>", "continent": "Asia", "device": "Desktop", "browser": "Chrome", "os": "Symbian", "referer": "well-off-hygienic.org", "refererUrl": "https://ripe-ceramic.org", "ip": "eebc:cce9:cecf:ebeb:dfd9:15f2:a0cc:a3b1"}, "customer": {"id": "<id>", "externalId": "<id>", "name": "<value>", "createdAt": "1725264101214"}, "sale": {"amount": 443316, "invoiceId": null, "paymentProcessor": "custom"}, "saleAmount": 2634.98, "invoice_id": "<id>", "payment_processor": "<value>", "click_id": "<id>", "link_id": "<id>", "domain": "next-cricket.biz", "key": "<key>", "url": "https://repentant-rust.name/", "continent": "Australia", "country": "Saint Helena", "city": "Luettgenfort", "device": "Mobile", "browser": "Safari", "os": "Chrome OS", "qr": 4390.32, "ip": "54.229.114.129"}]
10561056
"400":
10571057
application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}}
10581058
"401":

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ generation:
1515
oAuth2ClientCredentialsEnabled: true
1616
oAuth2PasswordEnabled: false
1717
php:
18-
version: 0.12.2
18+
version: 0.12.3
1919
additionalDependencies:
2020
autoload: {}
2121
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.517.3
1+
speakeasyVersion: 1.520.1
22
sources:
33
dub:
44
sourceNamespace: dub
5-
sourceRevisionDigest: sha256:3ceae42abce5f526720370de21bc6d2ac12b3437fb0338041277e62731e9b33c
6-
sourceBlobDigest: sha256:99676fd746f9c79f4fc42f79e7eb5d067cb1840a78442c75d52140f45e955af6
5+
sourceRevisionDigest: sha256:6b64bd84021187f4d9cd5566def6d1b0dcbefeaaad1dc41bd7e96725ea79b421
6+
sourceBlobDigest: sha256:985a25206949b4a22519ae8b7c5c2cfb779566a17d76fb2506c02b146ec264b5
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1741998019
9+
- speakeasy-sdk-regen-1742343657
1010
- 0.0.1
1111
targets:
1212
my-first-target:
1313
source: dub
1414
sourceNamespace: dub
15-
sourceRevisionDigest: sha256:3ceae42abce5f526720370de21bc6d2ac12b3437fb0338041277e62731e9b33c
16-
sourceBlobDigest: sha256:99676fd746f9c79f4fc42f79e7eb5d067cb1840a78442c75d52140f45e955af6
15+
sourceRevisionDigest: sha256:6b64bd84021187f4d9cd5566def6d1b0dcbefeaaad1dc41bd7e96725ea79b421
16+
sourceBlobDigest: sha256:985a25206949b4a22519ae8b7c5c2cfb779566a17d76fb2506c02b146ec264b5
1717
codeSamplesNamespace: code-samples-php-my-first-target
18-
codeSamplesRevisionDigest: sha256:f83a2aec7f58d0eefc948906df5bca441c187c8c9331432175c24ab47b5da035
18+
codeSamplesRevisionDigest: sha256:acb6c4d7c17eeada9d6c51f0bbd6cd4ff4e1ad0c90395dc239d17e057b0a1438
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
@@ -850,4 +850,14 @@ Based on:
850850
### Generated
851851
- [php v0.12.2] .
852852
### Releases
853-
- [Composer v0.12.2] https://packagist.org/packages/dub/dub-php#v0.12.2 - .
853+
- [Composer v0.12.2] https://packagist.org/packages/dub/dub-php#v0.12.2 - .
854+
855+
## 2025-03-19 00:20:41
856+
### Changes
857+
Based on:
858+
- OpenAPI Doc
859+
- Speakeasy CLI 1.520.1 (2.556.1) https://github.com/speakeasy-api/speakeasy
860+
### Generated
861+
- [php v0.12.3] .
862+
### Releases
863+
- [Composer v0.12.3] https://packagist.org/packages/dub/dub-php#v0.12.3 - .

docs/Models/Components/Plan.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ The plan of the workspace.
1313
| `BusinessPlus` | business plus |
1414
| `BusinessExtra` | business extra |
1515
| `BusinessMax` | business max |
16+
| `Advanced` | advanced |
1617
| `Enterprise` | enterprise |

src/Models/Components/Plan.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ enum Plan: string
1818
case BusinessPlus = 'business plus';
1919
case BusinessExtra = 'business extra';
2020
case BusinessMax = 'business max';
21+
case Advanced = 'advanced';
2122
case Enterprise = 'enterprise';
2223
}

src/SDKConfiguration.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ class SDKConfiguration
2424

2525
public string $openapiDocVersion = '0.0.1';
2626

27-
public string $sdkVersion = '0.12.2';
27+
public string $sdkVersion = '0.12.3';
2828

29-
public string $genVersion = '2.548.6';
29+
public string $genVersion = '2.556.1';
3030

31-
public string $userAgent = 'speakeasy-sdk/php 0.12.2 2.548.6 0.0.1 dub/dub-php';
31+
public string $userAgent = 'speakeasy-sdk/php 0.12.3 2.556.1 0.0.1 dub/dub-php';
3232

3333
public ?RetryConfig $retryConfig = null;
3434

src/Utils/UnionHandler.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,12 @@ private function matchArrayType(mixed $data, array $type, Context $context): mix
240240
continue;
241241
} else {
242242
if (count($possibleType['params']) == 2) {
243-
$possibleValueType = $possibleType['params'][1]['name'];
243+
$possibleValueType = $possibleType['params'][1];
244244
} else {
245-
$possibleValueType = $possibleType['params'][0]['name'];
245+
$possibleValueType = $possibleType['params'][0];
246246
}
247-
248-
if ($possibleValueType == 'mixed' || $possibleValueType == $dataType) {
247+
$isMatchingEnum = $possibleValueType['name'] == 'enum' && $possibleValueType['params'][0]['name'] == $dataType;
248+
if ($possibleValueType['name'] == 'mixed' || $possibleValueType['name'] == $dataType || $isMatchingEnum) {
249249
return $context->getNavigator()->accept($data, $possibleType);
250250
}
251251
}
@@ -276,13 +276,13 @@ private function matchAssociativeArrayType(mixed $data, array $type, Context $co
276276
if ($isNotArray || $isNotAssociativeArray) {
277277
continue;
278278
} else {
279-
$possibleValueType = $possibleType['params'][1]['name'];
279+
$possibleValueType = $possibleType['params'][1];
280280

281281
if ($valueType == 'object') {
282282
$valueType = get_class($value);
283283
}
284-
285-
if ($possibleValueType == 'mixed' || $possibleValueType == $valueType) {
284+
$isMatchingEnum = $possibleValueType['name'] == 'enum' && $possibleValueType['params'][0]['name'] == $valueType;
285+
if ($possibleValueType['name'] == 'mixed' || $possibleValueType['name'] == $valueType || $isMatchingEnum) {
286286
return $context->getNavigator()->accept($data, $possibleType);
287287
}
288288
}

0 commit comments

Comments
 (0)