Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.468.6
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Jan 15, 2025
1 parent 94a131f commit ba45978
Show file tree
Hide file tree
Showing 9 changed files with 69 additions and 39 deletions.
17 changes: 8 additions & 9 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -26,7 +26,6 @@ features:
serverIDs: 2.81.1
generatedFiles:
- .gitattributes
- CONTRIBUTING.md
- USAGE.md
- composer.json
- docs/Models/Errorors/Error.md
Expand Down Expand Up @@ -995,7 +994,7 @@ examples:
default:
application/json: {"message": "<value>", "status_code": 299050}
2XX:
application/json: {"access_token": "<value>"}
application/json: {"access_token": "<value>", "claims": {}, "user": {}}
4XX:
application/json: {"message": "<value>", "status_code": 299050}
getUser:
Expand Down Expand Up @@ -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"}
Expand Down Expand Up @@ -1358,7 +1357,7 @@ examples:
header:
x-session-id: "<value>"
requestBody:
application/json: {"diagnostics": [], "oas_summary": {"info": {"description": "Operative impactful monitoring", "summary": "<value>", "title": "<value>", "version": "<value>"}, "operations": []}, "suggestion_type": "diagnostics-only"}
application/json: {"diagnostics": [], "oas_summary": {"info": {"description": "Operative impactful monitoring", "license": {}, "summary": "<value>", "title": "<value>", "version": "<value>"}, "operations": []}, "suggestion_type": "diagnostics-only"}
responses:
"200":
application/json: "0x8D9A3DCDEa"
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ generation:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
php:
version: 0.47.1
version: 0.47.2
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.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
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 - .
- [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 - .
33 changes: 17 additions & 16 deletions docs/Models/Shared/User.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
| 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. |
13 changes: 12 additions & 1 deletion src/Models/Shared/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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;
Expand All @@ -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;
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.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<string, array<string, array<string, mixed>>> */
public ?array $globals = [
'parameters' => [],
Expand Down
5 changes: 5 additions & 0 deletions src/Utils/PathParameters.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 5 additions & 1 deletion src/Utils/QueryParameters.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ba45978

Please sign in to comment.