diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index f6a7088..66665b1 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: db1bb4da-054f-485f-8c6e-d42db3f1da90 management: - docChecksum: 52df6f1f34dfe76968f8ed009cc2bfd3 + docChecksum: 53c59e9888ffa48d7fef9b0017efc602 docVersion: 0.4.0 - speakeasyVersion: 1.467.0 - generationVersion: 2.492.3 - releaseVersion: 0.47.1 - configChecksum: fc3e2a4f688162e907c0aed73a152b12 + speakeasyVersion: 1.468.6 + generationVersion: 2.493.13 + releaseVersion: 0.47.2 + configChecksum: b81af1be2975a7ed902d5e1c9aaa461a repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-php.git repoSubDirectory: . installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-php @@ -26,7 +26,6 @@ features: serverIDs: 2.81.1 generatedFiles: - .gitattributes - - CONTRIBUTING.md - USAGE.md - composer.json - docs/Models/Errorors/Error.md @@ -995,7 +994,7 @@ examples: default: application/json: {"message": "", "status_code": 299050} 2XX: - application/json: {"access_token": ""} + application/json: {"access_token": "", "claims": {}, "user": {}} 4XX: application/json: {"message": "", "status_code": 299050} getUser: @@ -1214,7 +1213,7 @@ examples: uploadReport: speakeasy-default-upload-report: requestBody: - multipart/form-data: {"file": {"": "example.file"}} + multipart/form-data: {"data": {}, "file": {"": "example.file"}} responses: "200": application/json: {"url": "http://earnest-upgrade.com"} @@ -1358,7 +1357,7 @@ examples: header: x-session-id: "" requestBody: - application/json: {"diagnostics": [], "oas_summary": {"info": {"description": "Operative impactful monitoring", "summary": "", "title": "", "version": ""}, "operations": []}, "suggestion_type": "diagnostics-only"} + application/json: {"diagnostics": [], "oas_summary": {"info": {"description": "Operative impactful monitoring", "license": {}, "summary": "", "title": "", "version": ""}, "operations": []}, "suggestion_type": "diagnostics-only"} responses: "200": application/json: "0x8D9A3DCDEa" diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 2750aa1..78c8cad 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -11,7 +11,7 @@ generation: oAuth2ClientCredentialsEnabled: false oAuth2PasswordEnabled: false php: - version: 0.47.1 + version: 0.47.2 additionalDependencies: autoload: {} autoload-dev: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index cd65aa4..6ff959c 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.467.0 +speakeasyVersion: 1.468.6 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:b5af2ed48f211d3e3697888ebd8f0ef71934aa86bb45165e660960c07554ce07 - sourceBlobDigest: sha256:952a58da1511e3191ea8e470c7f01a4e3785d11d9152f490a3e5a7173c8542e7 + sourceRevisionDigest: sha256:0bed0fb50674ac92adc1637baf302244d5e30b5edde4527faabca2215228aefb + sourceBlobDigest: sha256:c4bc148bd2df6e1b53fee2228938cbb11d43111425e73c01ba58df9ba77bd4a0 tags: - latest - - speakeasy-sdk-regen-1736468190 + - speakeasy-sdk-regen-1736900148 - 0.4.0 targets: php-target: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:b5af2ed48f211d3e3697888ebd8f0ef71934aa86bb45165e660960c07554ce07 - sourceBlobDigest: sha256:952a58da1511e3191ea8e470c7f01a4e3785d11d9152f490a3e5a7173c8542e7 + sourceRevisionDigest: sha256:0bed0fb50674ac92adc1637baf302244d5e30b5edde4527faabca2215228aefb + sourceBlobDigest: sha256:c4bc148bd2df6e1b53fee2228938cbb11d43111425e73c01ba58df9ba77bd4a0 codeSamplesNamespace: my-source-php-code-samples - codeSamplesRevisionDigest: sha256:397048d739633fe9fb487ef719337a73337410da205a46bea58d85d8a1a22f64 + codeSamplesRevisionDigest: sha256:845564bdcbf2bc8d0291bbc903268b977cc2cbcc2b5a1fc05e00e63baa7274eb workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index 4c98a51..3d01ce8 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1564,4 +1564,14 @@ Based on: ### Generated - [php v0.47.1] . ### Releases -- [Composer v0.47.1] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.47.1 - . \ No newline at end of file +- [Composer v0.47.1] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.47.1 - . + +## 2025-01-15 00:15:33 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.468.6 (2.493.13) https://github.com/speakeasy-api/speakeasy +### Generated +- [php v0.47.2] . +### Releases +- [Composer v0.47.2] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.47.2 - . \ No newline at end of file diff --git a/docs/Models/Shared/User.md b/docs/Models/Shared/User.md index 051ad0e..52bf662 100644 --- a/docs/Models/Shared/User.md +++ b/docs/Models/Shared/User.md @@ -3,19 +3,20 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | -| `admin` | *bool* | :heavy_check_mark: | Indicates whether the user is an admin. | -| `confirmed` | *bool* | :heavy_check_mark: | Indicates whether the user has been confirmed. | -| `createdAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | Timestamp of the user's creation. | -| `displayName` | *string* | :heavy_check_mark: | Display name of the user. | -| `email` | *string* | :heavy_check_mark: | Email address of the user. | -| `emailVerified` | *bool* | :heavy_check_mark: | Indicates whether the email address has been verified. | -| `id` | *string* | :heavy_check_mark: | Unique identifier for the user. | -| `updatedAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | Timestamp of the user's last update. | -| `whitelisted` | *bool* | :heavy_check_mark: | Indicates whether the user has been whitelisted. | -| `internal` | *?bool* | :heavy_minus_sign: | Indicates whether the user is internal. | -| `defaultWorkspaceId` | *?string* | :heavy_minus_sign: | Identifier of the default workspace. | -| `githubHandle` | *?string* | :heavy_minus_sign: | GitHub handle of the user. | -| `lastLoginAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | Timestamp of the last login. | -| `photoUrl` | *?string* | :heavy_minus_sign: | URL of the user's photo. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `admin` | *bool* | :heavy_check_mark: | Indicates whether the user is an admin. | +| `confirmed` | *bool* | :heavy_check_mark: | Indicates whether the user has been confirmed. | +| `createdAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | Timestamp of the user's creation. | +| `displayName` | *string* | :heavy_check_mark: | Display name of the user. | +| `email` | *string* | :heavy_check_mark: | Email address of the user. | +| `emailVerified` | *bool* | :heavy_check_mark: | Indicates whether the email address has been verified. | +| `id` | *string* | :heavy_check_mark: | Unique identifier for the user. | +| `updatedAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | Timestamp of the user's last update. | +| `whitelisted` | *bool* | :heavy_check_mark: | Indicates whether the user has been whitelisted. | +| `internal` | *?bool* | :heavy_minus_sign: | Indicates whether the user is internal. | +| `pylonIdentityHash` | *?string* | :heavy_minus_sign: | Hash used for pylon identity verification returned on v1/user. | +| `defaultWorkspaceId` | *?string* | :heavy_minus_sign: | Identifier of the default workspace. | +| `githubHandle` | *?string* | :heavy_minus_sign: | GitHub handle of the user. | +| `lastLoginAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | Timestamp of the last login. | +| `photoUrl` | *?string* | :heavy_minus_sign: | URL of the user's photo. | \ No newline at end of file diff --git a/src/Models/Shared/User.php b/src/Models/Shared/User.php index 3b6a692..0b97303 100644 --- a/src/Models/Shared/User.php +++ b/src/Models/Shared/User.php @@ -92,6 +92,15 @@ class User #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $internal = null; + /** + * Hash used for pylon identity verification returned on v1/user. + * + * @var ?string $pylonIdentityHash + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('pylon_identity_hash')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?string $pylonIdentityHash = null; + /** * Identifier of the default workspace. * @@ -139,12 +148,13 @@ class User * @param \DateTime $updatedAt * @param bool $whitelisted * @param ?bool $internal + * @param ?string $pylonIdentityHash * @param ?string $defaultWorkspaceId * @param ?string $githubHandle * @param ?\DateTime $lastLoginAt * @param ?string $photoUrl */ - public function __construct(bool $admin, bool $confirmed, \DateTime $createdAt, string $displayName, string $email, bool $emailVerified, string $id, \DateTime $updatedAt, bool $whitelisted, ?bool $internal = null, ?string $defaultWorkspaceId = null, ?string $githubHandle = null, ?\DateTime $lastLoginAt = null, ?string $photoUrl = null) + public function __construct(bool $admin, bool $confirmed, \DateTime $createdAt, string $displayName, string $email, bool $emailVerified, string $id, \DateTime $updatedAt, bool $whitelisted, ?bool $internal = null, ?string $pylonIdentityHash = null, ?string $defaultWorkspaceId = null, ?string $githubHandle = null, ?\DateTime $lastLoginAt = null, ?string $photoUrl = null) { $this->admin = $admin; $this->confirmed = $confirmed; @@ -156,6 +166,7 @@ public function __construct(bool $admin, bool $confirmed, \DateTime $createdAt, $this->updatedAt = $updatedAt; $this->whitelisted = $whitelisted; $this->internal = $internal; + $this->pylonIdentityHash = $pylonIdentityHash; $this->defaultWorkspaceId = $defaultWorkspaceId; $this->githubHandle = $githubHandle; $this->lastLoginAt = $lastLoginAt; diff --git a/src/SDKConfiguration.php b/src/SDKConfiguration.php index a2ccd9d..565c29d 100644 --- a/src/SDKConfiguration.php +++ b/src/SDKConfiguration.php @@ -26,11 +26,11 @@ class SDKConfiguration public string $openapiDocVersion = '0.4.0'; - public string $sdkVersion = '0.47.1'; + public string $sdkVersion = '0.47.2'; - public string $genVersion = '2.492.3'; + public string $genVersion = '2.493.13'; - public string $userAgent = 'speakeasy-sdk/php 0.47.1 2.492.3 0.4.0 speakeasy-api/speakeasy-client-sdk-php'; + public string $userAgent = 'speakeasy-sdk/php 0.47.2 2.493.13 0.4.0 speakeasy-api/speakeasy-client-sdk-php'; /** @var array>> */ public ?array $globals = [ 'parameters' => [], diff --git a/src/Utils/PathParameters.php b/src/Utils/PathParameters.php index 897d2be..b31049f 100644 --- a/src/Utils/PathParameters.php +++ b/src/Utils/PathParameters.php @@ -71,6 +71,11 @@ private function parseSimplePathParams(ParamsMetadata $metadata, mixed $value): case 'object': $vals = []; + $cls = get_class($value); + if ($cls === 'Brick\\Math\\BigDecimal' || $cls === 'Brick\\Math\\BigInteger') { + $pathParams[$metadata->name] = valToString($value, []); + break; + } foreach ($value as $field => $fieldValue) { /** @phpstan-ignore-line */ if ($fieldValue === null) { continue; diff --git a/src/Utils/QueryParameters.php b/src/Utils/QueryParameters.php index d988d63..a96c3ff 100644 --- a/src/Utils/QueryParameters.php +++ b/src/Utils/QueryParameters.php @@ -167,7 +167,11 @@ private function parseDelimitedParams(ParamsMetadata $metadata, mixed $value, st switch (gettype($value)) { case 'object': $items = []; - + $cls = get_class($value); + if ($cls === 'Brick\\Math\\BigDecimal' || $cls === 'Brick\\Math\\BigInteger') { + $queryParams[$metadata->name] = valToString($value, []); + break; + } foreach ($value as $field => $val) { /** @phpstan-ignore-line */ if ($val === null) { continue;