Skip to content

Commit

Permalink
Merge pull request #70 from dubinc/speakeasy-sdk-regen-1737332387
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.11.17
  • Loading branch information
devkiran authored Jan 20, 2025
2 parents bdde09e + fc7ff9f commit 88c87b9
Show file tree
Hide file tree
Showing 9 changed files with 213 additions and 201 deletions.
360 changes: 182 additions & 178 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
php:
version: 0.11.16
version: 0.11.17
additionalDependencies:
autoload: {}
autoload-dev: {}
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.468.9
speakeasyVersion: 1.469.2
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:7b9e196d66f3163418a4e27322e3c6de647189ffeba069d657bd4230a9f2aa92
sourceBlobDigest: sha256:3b9749ee4775b8022360e4efaad2a707cd10b0d65d85a424cb17498b6d1e6005
sourceRevisionDigest: sha256:e975294d6782bdef31d68846367c75e164d922880357a5bedafbdedd75ee26bd
sourceBlobDigest: sha256:2db078d1bdf0a1bbb76dfc80c3272d19eecccf91adb3090189e58492c31c2f9a
tags:
- latest
- speakeasy-sdk-regen-1737073161
- speakeasy-sdk-regen-1737332387
- 0.0.1
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:7b9e196d66f3163418a4e27322e3c6de647189ffeba069d657bd4230a9f2aa92
sourceBlobDigest: sha256:3b9749ee4775b8022360e4efaad2a707cd10b0d65d85a424cb17498b6d1e6005
sourceRevisionDigest: sha256:e975294d6782bdef31d68846367c75e164d922880357a5bedafbdedd75ee26bd
sourceBlobDigest: sha256:2db078d1bdf0a1bbb76dfc80c3272d19eecccf91adb3090189e58492c31c2f9a
codeSamplesNamespace: code-samples-php-my-first-target
codeSamplesRevisionDigest: sha256:3a9bee719bbfe7adec461520505ffef25cce945a3484ed32fc33be0e4956f714
codeSamplesRevisionDigest: sha256:90b53b169af9f8eb7540f08ebee5ea437ee29385906865edc58f3ca9ec466cc5
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ if ($response->responseBodies !== null) {

### [customers](docs/sdks/customers/README.md)

* [create](docs/sdks/customers/README.md#create) - Create a customer
* [~~create~~](docs/sdks/customers/README.md#create) - Create a customer :warning: **Deprecated**
* [delete](docs/sdks/customers/README.md#delete) - Delete a customer
* [get](docs/sdks/customers/README.md#get) - Retrieve a customer
* [list](docs/sdks/customers/README.md#list) - Retrieve a list of customers
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -610,4 +610,14 @@ Based on:
### Generated
- [php v0.11.16] .
### Releases
- [Composer v0.11.16] https://packagist.org/packages/dub/dub-php#v0.11.16 - .
- [Composer v0.11.16] https://packagist.org/packages/dub/dub-php#v0.11.16 - .

## 2025-01-20 00:19:29
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.469.2 (2.493.23) https://github.com/speakeasy-api/speakeasy
### Generated
- [php v0.11.17] .
### Releases
- [Composer v0.11.17] https://packagist.org/packages/dub/dub-php#v0.11.17 - .
6 changes: 0 additions & 6 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ actions:
- "lang": "php"
"label": "getCustomers"
"source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\n\n$sdk = Dub\\Dub::builder()\n ->setSecurity(\n 'DUB_API_KEY'\n )\n ->build();\n\n\n\n$response = $sdk->customers->list(\n email: '[email protected]',\n externalId: '<id>',\n includeExpandedFields: false\n\n);\n\nif ($response->responseBodies !== null) {\n // handle response\n}"
- target: $["paths"]["/customers"]["post"]
update:
"x-codeSamples":
- "lang": "php"
"label": "createCustomer"
"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\\CreateCustomerRequestBody(\n externalId: '<id>',\n);\n\n$response = $sdk->customers->create(\n request: $request\n);\n\nif ($response->object !== null) {\n // handle response\n}"
- target: $["paths"]["/customers/{id}"]["delete"]
update:
"x-codeSamples":
Expand Down
8 changes: 5 additions & 3 deletions docs/sdks/customers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@

### Available Operations

* [create](#create) - Create a customer
* [~~create~~](#create) - Create a customer :warning: **Deprecated**
* [delete](#delete) - Delete a customer
* [get](#get) - Retrieve a customer
* [list](#list) - Retrieve a list of customers
* [update](#update) - Update a customer

## create
## ~~create~~

Create a customer for the authenticated workspace.
[Deprecated]: Customer creation can only be done via tracking a lead event. Use the /track/lead endpoint instead.

> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.
### Example Usage

Expand Down
4 changes: 3 additions & 1 deletion src/Customers.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,16 @@ public function getUrl(string $baseUrl, array $urlVariables): string
/**
* Create a customer
*
* Create a customer for the authenticated workspace.
* [Deprecated]: Customer creation can only be done via tracking a lead event. Use the /track/lead endpoint instead.
*
* @param ?Operations\CreateCustomerRequestBody $request
* @return Operations\CreateCustomerResponse
* @throws \Dub\Models\Errors\SDKException
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
*/
public function create(?Operations\CreateCustomerRequestBody $request = null, ?Options $options = null): Operations\CreateCustomerResponse
{
trigger_error('Method '.__METHOD__.' is deprecated', E_USER_DEPRECATED);
$baseUrl = $this->sdkConfiguration->getServerUrl();
$url = Utils\Utils::generateUrl($baseUrl, '/customers');
$urlOverride = null;
Expand Down
6 changes: 3 additions & 3 deletions src/SDKConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ class SDKConfiguration

public string $openapiDocVersion = '0.0.1';

public string $sdkVersion = '0.11.16';
public string $sdkVersion = '0.11.17';

public string $genVersion = '2.493.21';
public string $genVersion = '2.493.23';

public string $userAgent = 'speakeasy-sdk/php 0.11.16 2.493.21 0.0.1 dub/dub-php';
public string $userAgent = 'speakeasy-sdk/php 0.11.17 2.493.23 0.0.1 dub/dub-php';

public ?RetryConfig $retryConfig = null;

Expand Down

0 comments on commit 88c87b9

Please sign in to comment.