diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index f846ee0..4045de4 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: 0de17f0e213d140341433691065dc210 + docChecksum: 0516c1ad132f5c25f4436defc305a71b docVersion: 0.4.0 - speakeasyVersion: 1.419.2 + speakeasyVersion: 1.421.2 generationVersion: 2.438.15 - releaseVersion: 0.44.4 - configChecksum: 6bef500076370480b58f5f0e26291192 + releaseVersion: 0.44.5 + configChecksum: 528e0fe5092b22f21e8bae6d7b9dd47a repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-php.git repoSubDirectory: . installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-php diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index daa7cb6..49a0bfd 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -10,7 +10,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false php: - version: 0.44.4 + version: 0.44.5 clientServerStatusCodesAsErrors: true flattenGlobalSecurity: true imports: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 961321e..2a0d488 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.419.2 +speakeasyVersion: 1.421.2 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:96096a005338bebdae27ae25661275aadd00d2b8c2d3bafcbafb862d3f6436d3 - sourceBlobDigest: sha256:5c9772941b84f3517d5ce969ef358b10daece2df8afa823eb2abde28a85e9f4b + sourceRevisionDigest: sha256:9bdcb4e5dfa7e9189cbae1726008aff19c9917f396add1659aaa3713ee75c409 + sourceBlobDigest: sha256:4bdb54f96c3450278550d0948f44121da0514c097977bc08215d4131bb122ed6 tags: - latest - main @@ -11,8 +11,8 @@ targets: php-target: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:96096a005338bebdae27ae25661275aadd00d2b8c2d3bafcbafb862d3f6436d3 - sourceBlobDigest: sha256:5c9772941b84f3517d5ce969ef358b10daece2df8afa823eb2abde28a85e9f4b + sourceRevisionDigest: sha256:9bdcb4e5dfa7e9189cbae1726008aff19c9917f396add1659aaa3713ee75c409 + sourceBlobDigest: sha256:4bdb54f96c3450278550d0948f44121da0514c097977bc08215d4131bb122ed6 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 2588312..938e2d7 100755 --- a/README.md +++ b/README.md @@ -190,6 +190,49 @@ if ($response->apis !== null) { + +## Global Parameters + +A parameter is configured globally. This parameter may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, This global value will be used as the default on the operations that use it. When such operations are called, there is a place in each to override the global value, if needed. + +For example, you can set `workspace_id` to `''` at SDK initialization and then you do not have to pass the same value on calls to operations like `getAccessToken`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration. + + +### Available Globals + +The following global parameter is available. + +| Name | Type | Required | Description | +| ---- | ---- |:--------:| ----------- | +| workspaceId | string | | The workspaceId parameter. | + + +### Example + +```php +declare(strict_types=1); + +require 'vendor/autoload.php'; + +use Speakeasy\SpeakeasyClientSDK; +use Speakeasy\SpeakeasyClientSDK\Models\Operations; + +$sdk = SpeakeasyClientSDK\SDK::builder()->build(); + +$request = new Operations\GetAccessTokenRequest( + workspaceId: '', +); + +$response = $sdk->auth->getAccessToken( + request: $request +); + +if ($response->accessToken !== null) { + // handle response +} +``` + + ## Error Handling @@ -285,6 +328,7 @@ For more information about the API: [The Speakeasy Platform Documentation](/docs * [SDK Installation](#sdk-installation) * [SDK Example Usage](#sdk-example-usage) * [Available Resources and Operations](#available-resources-and-operations) +* [Global Parameters](#global-parameters) * [Error Handling](#error-handling) * [Server Selection](#server-selection) diff --git a/RELEASES.md b/RELEASES.md index 7d141bb..3f4a953 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1354,4 +1354,14 @@ Based on: ### Generated - [php v0.44.4] . ### Releases -- [Composer v0.44.4] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.44.4 - . \ No newline at end of file +- [Composer v0.44.4] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.44.4 - . + +## 2024-10-25 00:15:57 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.421.2 (2.438.15) https://github.com/speakeasy-api/speakeasy +### Generated +- [php v0.44.5] . +### Releases +- [Composer v0.44.5] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.44.5 - . \ No newline at end of file diff --git a/docs/Models/Operations/CreateSubscriptionRequest.md b/docs/Models/Operations/CreateSubscriptionRequest.md index d79debd..84f66bd 100644 --- a/docs/Models/Operations/CreateSubscriptionRequest.md +++ b/docs/Models/Operations/CreateSubscriptionRequest.md @@ -6,4 +6,4 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | | `registrySubscription` | [Shared\RegistrySubscription](../../Models/Shared/RegistrySubscription.md) | :heavy_check_mark: | The subscription to create | -| `workspaceId` | *string* | :heavy_check_mark: | The workspace ID | \ No newline at end of file +| `workspaceId` | *?string* | :heavy_minus_sign: | The workspace ID | \ No newline at end of file diff --git a/docs/Models/Operations/CreateWorkspaceTokenRequest.md b/docs/Models/Operations/CreateWorkspaceTokenRequest.md index 2fe0e77..a902368 100644 --- a/docs/Models/Operations/CreateWorkspaceTokenRequest.md +++ b/docs/Models/Operations/CreateWorkspaceTokenRequest.md @@ -6,4 +6,4 @@ | Field | Type | Required | Description | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | | `workspaceToken` | [Shared\WorkspaceToken](../../Models/Shared/WorkspaceToken.md) | :heavy_check_mark: | N/A | -| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | \ No newline at end of file +| `workspaceId` | *?string* | :heavy_minus_sign: | Unique identifier of the workspace. | \ No newline at end of file diff --git a/docs/Models/Operations/DeleteWorkspaceTokenRequest.md b/docs/Models/Operations/DeleteWorkspaceTokenRequest.md index c89d74e..c03f9c1 100644 --- a/docs/Models/Operations/DeleteWorkspaceTokenRequest.md +++ b/docs/Models/Operations/DeleteWorkspaceTokenRequest.md @@ -6,4 +6,4 @@ | Field | Type | Required | Description | | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | | `tokenID` | *string* | :heavy_check_mark: | Unique identifier of the token. | -| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | \ No newline at end of file +| `workspaceId` | *?string* | :heavy_minus_sign: | Unique identifier of the workspace. | \ No newline at end of file diff --git a/docs/Models/Operations/GetWorkspaceEventsByTargetRequest.md b/docs/Models/Operations/GetWorkspaceEventsByTargetRequest.md index 4a63e33..a58c85c 100644 --- a/docs/Models/Operations/GetWorkspaceEventsByTargetRequest.md +++ b/docs/Models/Operations/GetWorkspaceEventsByTargetRequest.md @@ -6,5 +6,5 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | | `targetId` | *string* | :heavy_check_mark: | Filter to only return events corresponding to a particular gen_lock_id (gen_lock_id uniquely identifies a target) | -| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | -| `afterCreatedAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | Filter to only return events created after this timestamp | \ No newline at end of file +| `afterCreatedAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | Filter to only return events created after this timestamp | +| `workspaceId` | *?string* | :heavy_minus_sign: | Unique identifier of the workspace. | \ No newline at end of file diff --git a/docs/Models/Operations/GetWorkspaceFeatureFlagsRequest.md b/docs/Models/Operations/GetWorkspaceFeatureFlagsRequest.md index 156095e..88f126e 100644 --- a/docs/Models/Operations/GetWorkspaceFeatureFlagsRequest.md +++ b/docs/Models/Operations/GetWorkspaceFeatureFlagsRequest.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | -| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | \ No newline at end of file +| `workspaceId` | *?string* | :heavy_minus_sign: | Unique identifier of the workspace. | \ No newline at end of file diff --git a/docs/Models/Operations/GetWorkspaceRequest.md b/docs/Models/Operations/GetWorkspaceRequest.md index 5e2b764..e9b15b8 100644 --- a/docs/Models/Operations/GetWorkspaceRequest.md +++ b/docs/Models/Operations/GetWorkspaceRequest.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | -| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | \ No newline at end of file +| `workspaceId` | *?string* | :heavy_minus_sign: | Unique identifier of the workspace. | \ No newline at end of file diff --git a/docs/Models/Operations/GetWorkspaceSettingsRequest.md b/docs/Models/Operations/GetWorkspaceSettingsRequest.md index 46c9176..bcea237 100644 --- a/docs/Models/Operations/GetWorkspaceSettingsRequest.md +++ b/docs/Models/Operations/GetWorkspaceSettingsRequest.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | -| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | \ No newline at end of file +| `workspaceId` | *?string* | :heavy_minus_sign: | Unique identifier of the workspace. | \ No newline at end of file diff --git a/docs/Models/Operations/GetWorkspaceTargetsDeprecatedRequest.md b/docs/Models/Operations/GetWorkspaceTargetsDeprecatedRequest.md index 25d7d84..abac394 100644 --- a/docs/Models/Operations/GetWorkspaceTargetsDeprecatedRequest.md +++ b/docs/Models/Operations/GetWorkspaceTargetsDeprecatedRequest.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | -| `afterLastEventCreatedAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | Filter to only return targets with events created after this timestamp | \ No newline at end of file +| `afterLastEventCreatedAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | Filter to only return targets with events created after this timestamp | +| `workspaceId` | *?string* | :heavy_minus_sign: | Unique identifier of the workspace. | \ No newline at end of file diff --git a/docs/Models/Operations/GetWorkspaceTeamRequest.md b/docs/Models/Operations/GetWorkspaceTeamRequest.md index a6a0ab4..2cc3ae3 100644 --- a/docs/Models/Operations/GetWorkspaceTeamRequest.md +++ b/docs/Models/Operations/GetWorkspaceTeamRequest.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | -| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | \ No newline at end of file +| `workspaceId` | *?string* | :heavy_minus_sign: | Unique identifier of the workspace. | \ No newline at end of file diff --git a/docs/Models/Operations/GetWorkspaceTokensRequest.md b/docs/Models/Operations/GetWorkspaceTokensRequest.md index 0eec845..9a36e9b 100644 --- a/docs/Models/Operations/GetWorkspaceTokensRequest.md +++ b/docs/Models/Operations/GetWorkspaceTokensRequest.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | -| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | \ No newline at end of file +| `workspaceId` | *?string* | :heavy_minus_sign: | Unique identifier of the workspace. | \ No newline at end of file diff --git a/docs/Models/Operations/GrantUserAccessToWorkspaceRequest.md b/docs/Models/Operations/GrantUserAccessToWorkspaceRequest.md index 48f1ec2..1257a4f 100644 --- a/docs/Models/Operations/GrantUserAccessToWorkspaceRequest.md +++ b/docs/Models/Operations/GrantUserAccessToWorkspaceRequest.md @@ -6,4 +6,4 @@ | Field | Type | Required | Description | | ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | | `email` | *string* | :heavy_check_mark: | Email of the user to grant access to. | -| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | \ No newline at end of file +| `workspaceId` | *?string* | :heavy_minus_sign: | Unique identifier of the workspace. | \ No newline at end of file diff --git a/docs/Models/Operations/ListRegistrySubscriptionsRequest.md b/docs/Models/Operations/ListRegistrySubscriptionsRequest.md index 6f6dd0c..10e44c5 100644 --- a/docs/Models/Operations/ListRegistrySubscriptionsRequest.md +++ b/docs/Models/Operations/ListRegistrySubscriptionsRequest.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `workspaceId` | *string* | :heavy_check_mark: | The workspace ID | | `eventType` | *?string* | :heavy_minus_sign: | The event type | | `namespaceName` | *?string* | :heavy_minus_sign: | The namespace name | | `subscriptionType` | [?Shared\SubscriptionType](../../Models/Shared/SubscriptionType.md) | :heavy_minus_sign: | The subscription type | -| `tag` | *?string* | :heavy_minus_sign: | The tag | \ No newline at end of file +| `tag` | *?string* | :heavy_minus_sign: | The tag | +| `workspaceId` | *?string* | :heavy_minus_sign: | The workspace ID | \ No newline at end of file diff --git a/docs/Models/Operations/PostWorkspaceEventsRequest.md b/docs/Models/Operations/PostWorkspaceEventsRequest.md index d0f9598..ae509d0 100644 --- a/docs/Models/Operations/PostWorkspaceEventsRequest.md +++ b/docs/Models/Operations/PostWorkspaceEventsRequest.md @@ -6,4 +6,4 @@ | Field | Type | Required | Description | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | | `requestBody` | array<[Shared\CliEvent](../../Models/Shared/CliEvent.md)> | :heavy_check_mark: | N/A | -| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | \ No newline at end of file +| `workspaceId` | *?string* | :heavy_minus_sign: | Unique identifier of the workspace. | \ No newline at end of file diff --git a/docs/Models/Operations/RevokeUserAccessToWorkspaceRequest.md b/docs/Models/Operations/RevokeUserAccessToWorkspaceRequest.md index 093ea7d..d563562 100644 --- a/docs/Models/Operations/RevokeUserAccessToWorkspaceRequest.md +++ b/docs/Models/Operations/RevokeUserAccessToWorkspaceRequest.md @@ -6,4 +6,4 @@ | Field | Type | Required | Description | | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | | `userId` | *string* | :heavy_check_mark: | Unique identifier of the user. | -| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | \ No newline at end of file +| `workspaceId` | *?string* | :heavy_minus_sign: | Unique identifier of the workspace. | \ No newline at end of file diff --git a/docs/Models/Operations/SearchWorkspaceEventsRequest.md b/docs/Models/Operations/SearchWorkspaceEventsRequest.md index d98c14d..4f20c1a 100644 --- a/docs/Models/Operations/SearchWorkspaceEventsRequest.md +++ b/docs/Models/Operations/SearchWorkspaceEventsRequest.md @@ -5,9 +5,9 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | -| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | | `generateGenLockId` | *?string* | :heavy_minus_sign: | A specific gen lock ID for the events. | | `interactionType` | [?Shared\InteractionType](../../Models/Shared/InteractionType.md) | :heavy_minus_sign: | Specified interaction type for events. | | `lintReportDigest` | *?string* | :heavy_minus_sign: | Unique identifier of the lint report digest. | | `openapiDiffReportDigest` | *?string* | :heavy_minus_sign: | Unique identifier of the openapi diff report digest. | -| `sourceRevisionDigest` | *?string* | :heavy_minus_sign: | Unique identifier of the source revision digest. | \ No newline at end of file +| `sourceRevisionDigest` | *?string* | :heavy_minus_sign: | Unique identifier of the source revision digest. | +| `workspaceId` | *?string* | :heavy_minus_sign: | Unique identifier of the workspace. | \ No newline at end of file diff --git a/docs/Models/Operations/UpdateWorkspaceDetailsRequest.md b/docs/Models/Operations/UpdateWorkspaceDetailsRequest.md index 8a8a91a..833d6b4 100644 --- a/docs/Models/Operations/UpdateWorkspaceDetailsRequest.md +++ b/docs/Models/Operations/UpdateWorkspaceDetailsRequest.md @@ -6,4 +6,4 @@ | Field | Type | Required | Description | | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | | `workspace` | [Shared\Workspace](../../Models/Shared/Workspace.md) | :heavy_check_mark: | The workspace details to update. | -| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | \ No newline at end of file +| `workspaceId` | *?string* | :heavy_minus_sign: | Unique identifier of the workspace. | \ No newline at end of file diff --git a/docs/Models/Operations/UpdateWorkspaceSettingsRequest.md b/docs/Models/Operations/UpdateWorkspaceSettingsRequest.md index c9b90b1..86ad103 100644 --- a/docs/Models/Operations/UpdateWorkspaceSettingsRequest.md +++ b/docs/Models/Operations/UpdateWorkspaceSettingsRequest.md @@ -6,4 +6,4 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | | `workspaceSettings` | [Shared\WorkspaceSettings](../../Models/Shared/WorkspaceSettings.md) | :heavy_check_mark: | The workspace settings to update. | -| `workspaceId` | *string* | :heavy_check_mark: | Unique identifier of the workspace. | \ No newline at end of file +| `workspaceId` | *?string* | :heavy_minus_sign: | Unique identifier of the workspace. | \ No newline at end of file diff --git a/docs/Models/Shared/CliEvent.md b/docs/Models/Shared/CliEvent.md index a2c6f4d..c22e50d 100644 --- a/docs/Models/Shared/CliEvent.md +++ b/docs/Models/Shared/CliEvent.md @@ -37,6 +37,7 @@ | `generateGenLockPreVersion` | *?string* | :heavy_minus_sign: | Artifact version for the Previous Generation | | `generateNumberOfOperationsIgnored` | *?int* | :heavy_minus_sign: | The number of operations ignored in generation. | | `generateNumberOfOperationsUsed` | *?int* | :heavy_minus_sign: | The number of operations used in generation. | +| `generateNumberOfTerraformResources` | *?int* | :heavy_minus_sign: | The number of terraform resources used in generation. | | `generateOutputTests` | *?bool* | :heavy_minus_sign: | Indicates whether tests were output. | | `generatePublished` | *?bool* | :heavy_minus_sign: | Indicates whether the target was considered published. | | `generateRepoUrl` | *?string* | :heavy_minus_sign: | Expected Repo URL, for use in documentation generation. | diff --git a/docs/Models/Shared/TargetSDK.md b/docs/Models/Shared/TargetSDK.md index 2d5df86..0794b1a 100644 --- a/docs/Models/Shared/TargetSDK.md +++ b/docs/Models/Shared/TargetSDK.md @@ -20,6 +20,7 @@ | `generateGenLockPreVersion` | *?string* | :heavy_minus_sign: | Artifact version for the Previous Generation | | `generateNumberOfOperationsIgnored` | *?int* | :heavy_minus_sign: | The number of operations ignored in generation. | | `generateNumberOfOperationsUsed` | *?int* | :heavy_minus_sign: | The number of operations used in generation. | +| `generateNumberOfTerraformResources` | *?int* | :heavy_minus_sign: | The number of terraform resources used in generation. | | `generatePublished` | *?bool* | :heavy_minus_sign: | Indicates whether the target was considered published. | | `generateTargetName` | *?string* | :heavy_minus_sign: | The workflow name of the target. | | `generateTargetVersion` | *?string* | :heavy_minus_sign: | The version of the Speakeasy generator for this target eg v2 of the typescript generator. | diff --git a/docs/sdks/events/README.md b/docs/sdks/events/README.md index 6cfb213..eff2fc7 100644 --- a/docs/sdks/events/README.md +++ b/docs/sdks/events/README.md @@ -36,7 +36,6 @@ $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); $request = new Operations\GetWorkspaceEventsByTargetRequest( targetId: '', - workspaceId: '', ); $response = $sdk->events->getEventsByTarget( @@ -135,9 +134,7 @@ $security = new Shared\Security( $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -$request = new Operations\GetWorkspaceTargetsDeprecatedRequest( - workspaceId: '', -); +$request = new Operations\GetWorkspaceTargetsDeprecatedRequest(); $response = $sdk->events->getTargetsDeprecated( request: $request @@ -201,7 +198,6 @@ $request = new Operations\PostWorkspaceEventsRequest( workspaceId: '', ), ], - workspaceId: '', ); $response = $sdk->events->post( @@ -251,9 +247,7 @@ $security = new Shared\Security( $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -$request = new Operations\SearchWorkspaceEventsRequest( - workspaceId: '', -); +$request = new Operations\SearchWorkspaceEventsRequest(); $response = $sdk->events->search( request: $request diff --git a/docs/sdks/subscriptions/README.md b/docs/sdks/subscriptions/README.md index 5eb3cd1..4f3d44b 100644 --- a/docs/sdks/subscriptions/README.md +++ b/docs/sdks/subscriptions/README.md @@ -43,7 +43,6 @@ $request = new Operations\CreateSubscriptionRequest( updatedAt: Utils\Utils::parseDateTime('2022-07-20T08:51:35.776Z'), workspaceId: '', ), - workspaceId: '', ); $response = $sdk->subscriptions->createSubscription( @@ -92,9 +91,7 @@ $security = new Shared\Security( $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -$request = new Operations\ListRegistrySubscriptionsRequest( - workspaceId: '', -); +$request = new Operations\ListRegistrySubscriptionsRequest(); $response = $sdk->subscriptions->listRegistrySubscriptions( request: $request diff --git a/docs/sdks/workspaces/README.md b/docs/sdks/workspaces/README.md index 1e43583..3125079 100644 --- a/docs/sdks/workspaces/README.md +++ b/docs/sdks/workspaces/README.md @@ -108,7 +108,6 @@ $request = new Operations\CreateWorkspaceTokenRequest( name: '', workspaceId: '', ), - workspaceId: '', ); $response = $sdk->workspaces->createToken( @@ -160,7 +159,6 @@ $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); $request = new Operations\DeleteWorkspaceTokenRequest( tokenID: '', - workspaceId: '', ); $response = $sdk->workspaces->deleteToken( @@ -294,9 +292,7 @@ $security = new Shared\Security( $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -$request = new Operations\GetWorkspaceRequest( - workspaceId: '', -); +$request = new Operations\GetWorkspaceRequest(); $response = $sdk->workspaces->getByID( request: $request @@ -345,9 +341,7 @@ $security = new Shared\Security( $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -$request = new Operations\GetWorkspaceFeatureFlagsRequest( - workspaceId: '', -); +$request = new Operations\GetWorkspaceFeatureFlagsRequest(); $response = $sdk->workspaces->getFeatureFlags( request: $request @@ -396,9 +390,7 @@ $security = new Shared\Security( $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -$request = new Operations\GetWorkspaceSettingsRequest( - workspaceId: '', -); +$request = new Operations\GetWorkspaceSettingsRequest(); $response = $sdk->workspaces->getSettings( request: $request @@ -447,9 +439,7 @@ $security = new Shared\Security( $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -$request = new Operations\GetWorkspaceTeamRequest( - workspaceId: '', -); +$request = new Operations\GetWorkspaceTeamRequest(); $response = $sdk->workspaces->getTeam( request: $request @@ -498,9 +488,7 @@ $security = new Shared\Security( $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); -$request = new Operations\GetWorkspaceTokensRequest( - workspaceId: '', -); +$request = new Operations\GetWorkspaceTokensRequest(); $response = $sdk->workspaces->getTokens( request: $request @@ -551,7 +539,6 @@ $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); $request = new Operations\GrantUserAccessToWorkspaceRequest( email: 'Lucinda.Batz8@hotmail.com', - workspaceId: '', ); $response = $sdk->workspaces->grantAccess( @@ -603,7 +590,6 @@ $sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build(); $request = new Operations\RevokeUserAccessToWorkspaceRequest( userId: '', - workspaceId: '', ); $response = $sdk->workspaces->revokeAccess( @@ -664,7 +650,6 @@ $request = new Operations\UpdateWorkspaceDetailsRequest( updatedAt: Utils\Utils::parseDateTime('2023-10-17T10:52:42.015Z'), verified: false, ), - workspaceId: '', ); $response = $sdk->workspaces->update( @@ -722,7 +707,6 @@ $request = new Operations\UpdateWorkspaceSettingsRequest( webhookUrl: 'https://grown-pharmacopoeia.net', workspaceId: '', ), - workspaceId: '', ); $response = $sdk->workspaces->updateSettings( diff --git a/src/Events.php b/src/Events.php index f4ee210..a29c4a0 100644 --- a/src/Events.php +++ b/src/Events.php @@ -127,11 +127,11 @@ public function getTargets(?Operations\GetWorkspaceTargetsRequest $request = nul /** * Load targets for a particular workspace * - * @param Operations\GetWorkspaceTargetsDeprecatedRequest $request + * @param ?Operations\GetWorkspaceTargetsDeprecatedRequest $request * @return Operations\GetWorkspaceTargetsDeprecatedResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ - public function getTargetsDeprecated(Operations\GetWorkspaceTargetsDeprecatedRequest $request): Operations\GetWorkspaceTargetsDeprecatedResponse + public function getTargetsDeprecated(?Operations\GetWorkspaceTargetsDeprecatedRequest $request = null): Operations\GetWorkspaceTargetsDeprecatedResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/{workspace_id}/events/targets', Operations\GetWorkspaceTargetsDeprecatedRequest::class, $request, $this->sdkConfiguration->globals); @@ -227,11 +227,11 @@ public function post(Operations\PostWorkspaceEventsRequest $request): Operations /** * Search events for a particular workspace by any field * - * @param Operations\SearchWorkspaceEventsRequest $request + * @param ?Operations\SearchWorkspaceEventsRequest $request * @return Operations\SearchWorkspaceEventsResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ - public function search(Operations\SearchWorkspaceEventsRequest $request): Operations\SearchWorkspaceEventsResponse + public function search(?Operations\SearchWorkspaceEventsRequest $request = null): Operations\SearchWorkspaceEventsResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/{workspace_id}/events', Operations\SearchWorkspaceEventsRequest::class, $request, $this->sdkConfiguration->globals); diff --git a/src/Models/Operations/CreateSubscriptionRequest.php b/src/Models/Operations/CreateSubscriptionRequest.php index a4f0c27..2cddd1c 100644 --- a/src/Models/Operations/CreateSubscriptionRequest.php +++ b/src/Models/Operations/CreateSubscriptionRequest.php @@ -23,16 +23,16 @@ class CreateSubscriptionRequest /** * The workspace ID * - * @var string $workspaceId + * @var ?string $workspaceId */ #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=workspace_id')] - public string $workspaceId; + public ?string $workspaceId = null; /** * @param Shared\RegistrySubscription $registrySubscription - * @param string $workspaceId + * @param ?string $workspaceId */ - public function __construct(Shared\RegistrySubscription $registrySubscription, string $workspaceId) + public function __construct(Shared\RegistrySubscription $registrySubscription, ?string $workspaceId = null) { $this->registrySubscription = $registrySubscription; $this->workspaceId = $workspaceId; diff --git a/src/Models/Operations/CreateWorkspaceTokenRequest.php b/src/Models/Operations/CreateWorkspaceTokenRequest.php index 35911b7..cbe3dce 100644 --- a/src/Models/Operations/CreateWorkspaceTokenRequest.php +++ b/src/Models/Operations/CreateWorkspaceTokenRequest.php @@ -22,16 +22,16 @@ class CreateWorkspaceTokenRequest /** * Unique identifier of the workspace. * - * @var string $workspaceId + * @var ?string $workspaceId */ #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=workspace_id')] - public string $workspaceId; + public ?string $workspaceId = null; /** * @param Shared\WorkspaceToken $workspaceToken - * @param string $workspaceId + * @param ?string $workspaceId */ - public function __construct(Shared\WorkspaceToken $workspaceToken, string $workspaceId) + public function __construct(Shared\WorkspaceToken $workspaceToken, ?string $workspaceId = null) { $this->workspaceToken = $workspaceToken; $this->workspaceId = $workspaceId; diff --git a/src/Models/Operations/DeleteWorkspaceTokenRequest.php b/src/Models/Operations/DeleteWorkspaceTokenRequest.php index 276c1d7..28f2ef3 100644 --- a/src/Models/Operations/DeleteWorkspaceTokenRequest.php +++ b/src/Models/Operations/DeleteWorkspaceTokenRequest.php @@ -22,16 +22,16 @@ class DeleteWorkspaceTokenRequest /** * Unique identifier of the workspace. * - * @var string $workspaceId + * @var ?string $workspaceId */ #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=workspace_id')] - public string $workspaceId; + public ?string $workspaceId = null; /** * @param string $tokenID - * @param string $workspaceId + * @param ?string $workspaceId */ - public function __construct(string $tokenID, string $workspaceId) + public function __construct(string $tokenID, ?string $workspaceId = null) { $this->tokenID = $tokenID; $this->workspaceId = $workspaceId; diff --git a/src/Models/Operations/GetWorkspaceEventsByTargetRequest.php b/src/Models/Operations/GetWorkspaceEventsByTargetRequest.php index 52c9134..966ac52 100644 --- a/src/Models/Operations/GetWorkspaceEventsByTargetRequest.php +++ b/src/Models/Operations/GetWorkspaceEventsByTargetRequest.php @@ -30,20 +30,20 @@ class GetWorkspaceEventsByTargetRequest /** * Unique identifier of the workspace. * - * @var string $workspaceId + * @var ?string $workspaceId */ #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=workspace_id')] - public string $workspaceId; + public ?string $workspaceId = null; /** * @param string $targetId - * @param string $workspaceId * @param ?\DateTime $afterCreatedAt + * @param ?string $workspaceId */ - public function __construct(string $targetId, string $workspaceId, ?\DateTime $afterCreatedAt = null) + public function __construct(string $targetId, ?\DateTime $afterCreatedAt = null, ?string $workspaceId = null) { $this->targetId = $targetId; - $this->workspaceId = $workspaceId; $this->afterCreatedAt = $afterCreatedAt; + $this->workspaceId = $workspaceId; } } \ No newline at end of file diff --git a/src/Models/Operations/GetWorkspaceFeatureFlagsRequest.php b/src/Models/Operations/GetWorkspaceFeatureFlagsRequest.php index bd714ec..d163abc 100644 --- a/src/Models/Operations/GetWorkspaceFeatureFlagsRequest.php +++ b/src/Models/Operations/GetWorkspaceFeatureFlagsRequest.php @@ -14,15 +14,15 @@ class GetWorkspaceFeatureFlagsRequest /** * Unique identifier of the workspace. * - * @var string $workspaceId + * @var ?string $workspaceId */ #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=workspace_id')] - public string $workspaceId; + public ?string $workspaceId = null; /** - * @param string $workspaceId + * @param ?string $workspaceId */ - public function __construct(string $workspaceId) + public function __construct(?string $workspaceId = null) { $this->workspaceId = $workspaceId; } diff --git a/src/Models/Operations/GetWorkspaceRequest.php b/src/Models/Operations/GetWorkspaceRequest.php index 1a65d54..250c5a8 100644 --- a/src/Models/Operations/GetWorkspaceRequest.php +++ b/src/Models/Operations/GetWorkspaceRequest.php @@ -14,15 +14,15 @@ class GetWorkspaceRequest /** * Unique identifier of the workspace. * - * @var string $workspaceId + * @var ?string $workspaceId */ #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=workspace_id')] - public string $workspaceId; + public ?string $workspaceId = null; /** - * @param string $workspaceId + * @param ?string $workspaceId */ - public function __construct(string $workspaceId) + public function __construct(?string $workspaceId = null) { $this->workspaceId = $workspaceId; } diff --git a/src/Models/Operations/GetWorkspaceSettingsRequest.php b/src/Models/Operations/GetWorkspaceSettingsRequest.php index b4da25e..60575f5 100644 --- a/src/Models/Operations/GetWorkspaceSettingsRequest.php +++ b/src/Models/Operations/GetWorkspaceSettingsRequest.php @@ -14,15 +14,15 @@ class GetWorkspaceSettingsRequest /** * Unique identifier of the workspace. * - * @var string $workspaceId + * @var ?string $workspaceId */ #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=workspace_id')] - public string $workspaceId; + public ?string $workspaceId = null; /** - * @param string $workspaceId + * @param ?string $workspaceId */ - public function __construct(string $workspaceId) + public function __construct(?string $workspaceId = null) { $this->workspaceId = $workspaceId; } diff --git a/src/Models/Operations/GetWorkspaceTargetsDeprecatedRequest.php b/src/Models/Operations/GetWorkspaceTargetsDeprecatedRequest.php index b7083e9..c7b046b 100644 --- a/src/Models/Operations/GetWorkspaceTargetsDeprecatedRequest.php +++ b/src/Models/Operations/GetWorkspaceTargetsDeprecatedRequest.php @@ -22,18 +22,18 @@ class GetWorkspaceTargetsDeprecatedRequest /** * Unique identifier of the workspace. * - * @var string $workspaceId + * @var ?string $workspaceId */ #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=workspace_id')] - public string $workspaceId; + public ?string $workspaceId = null; /** - * @param string $workspaceId * @param ?\DateTime $afterLastEventCreatedAt + * @param ?string $workspaceId */ - public function __construct(string $workspaceId, ?\DateTime $afterLastEventCreatedAt = null) + public function __construct(?\DateTime $afterLastEventCreatedAt = null, ?string $workspaceId = null) { - $this->workspaceId = $workspaceId; $this->afterLastEventCreatedAt = $afterLastEventCreatedAt; + $this->workspaceId = $workspaceId; } } \ No newline at end of file diff --git a/src/Models/Operations/GetWorkspaceTeamRequest.php b/src/Models/Operations/GetWorkspaceTeamRequest.php index 348d4e7..57a5b4a 100644 --- a/src/Models/Operations/GetWorkspaceTeamRequest.php +++ b/src/Models/Operations/GetWorkspaceTeamRequest.php @@ -14,15 +14,15 @@ class GetWorkspaceTeamRequest /** * Unique identifier of the workspace. * - * @var string $workspaceId + * @var ?string $workspaceId */ #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=workspace_id')] - public string $workspaceId; + public ?string $workspaceId = null; /** - * @param string $workspaceId + * @param ?string $workspaceId */ - public function __construct(string $workspaceId) + public function __construct(?string $workspaceId = null) { $this->workspaceId = $workspaceId; } diff --git a/src/Models/Operations/GetWorkspaceTokensRequest.php b/src/Models/Operations/GetWorkspaceTokensRequest.php index 617ee52..34cda75 100644 --- a/src/Models/Operations/GetWorkspaceTokensRequest.php +++ b/src/Models/Operations/GetWorkspaceTokensRequest.php @@ -14,15 +14,15 @@ class GetWorkspaceTokensRequest /** * Unique identifier of the workspace. * - * @var string $workspaceId + * @var ?string $workspaceId */ #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=workspace_id')] - public string $workspaceId; + public ?string $workspaceId = null; /** - * @param string $workspaceId + * @param ?string $workspaceId */ - public function __construct(string $workspaceId) + public function __construct(?string $workspaceId = null) { $this->workspaceId = $workspaceId; } diff --git a/src/Models/Operations/GrantUserAccessToWorkspaceRequest.php b/src/Models/Operations/GrantUserAccessToWorkspaceRequest.php index 32335dc..c485e3e 100644 --- a/src/Models/Operations/GrantUserAccessToWorkspaceRequest.php +++ b/src/Models/Operations/GrantUserAccessToWorkspaceRequest.php @@ -22,16 +22,16 @@ class GrantUserAccessToWorkspaceRequest /** * Unique identifier of the workspace. * - * @var string $workspaceId + * @var ?string $workspaceId */ #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=workspace_id')] - public string $workspaceId; + public ?string $workspaceId = null; /** * @param string $email - * @param string $workspaceId + * @param ?string $workspaceId */ - public function __construct(string $email, string $workspaceId) + public function __construct(string $email, ?string $workspaceId = null) { $this->email = $email; $this->workspaceId = $workspaceId; diff --git a/src/Models/Operations/ListRegistrySubscriptionsRequest.php b/src/Models/Operations/ListRegistrySubscriptionsRequest.php index e9f6734..090cf5f 100644 --- a/src/Models/Operations/ListRegistrySubscriptionsRequest.php +++ b/src/Models/Operations/ListRegistrySubscriptionsRequest.php @@ -47,24 +47,24 @@ class ListRegistrySubscriptionsRequest /** * The workspace ID * - * @var string $workspaceId + * @var ?string $workspaceId */ #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=workspace_id')] - public string $workspaceId; + public ?string $workspaceId = null; /** - * @param string $workspaceId * @param ?string $eventType * @param ?string $namespaceName * @param ?Shared\SubscriptionType $subscriptionType * @param ?string $tag + * @param ?string $workspaceId */ - public function __construct(string $workspaceId, ?string $eventType = null, ?string $namespaceName = null, ?Shared\SubscriptionType $subscriptionType = null, ?string $tag = null) + public function __construct(?string $eventType = null, ?string $namespaceName = null, ?Shared\SubscriptionType $subscriptionType = null, ?string $tag = null, ?string $workspaceId = null) { - $this->workspaceId = $workspaceId; $this->eventType = $eventType; $this->namespaceName = $namespaceName; $this->subscriptionType = $subscriptionType; $this->tag = $tag; + $this->workspaceId = $workspaceId; } } \ No newline at end of file diff --git a/src/Models/Operations/PostWorkspaceEventsRequest.php b/src/Models/Operations/PostWorkspaceEventsRequest.php index bf3d195..3bdbe9a 100644 --- a/src/Models/Operations/PostWorkspaceEventsRequest.php +++ b/src/Models/Operations/PostWorkspaceEventsRequest.php @@ -23,16 +23,16 @@ class PostWorkspaceEventsRequest /** * Unique identifier of the workspace. * - * @var string $workspaceId + * @var ?string $workspaceId */ #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=workspace_id')] - public string $workspaceId; + public ?string $workspaceId = null; /** * @param array $requestBody - * @param string $workspaceId + * @param ?string $workspaceId */ - public function __construct(array $requestBody, string $workspaceId) + public function __construct(array $requestBody, ?string $workspaceId = null) { $this->requestBody = $requestBody; $this->workspaceId = $workspaceId; diff --git a/src/Models/Operations/RevokeUserAccessToWorkspaceRequest.php b/src/Models/Operations/RevokeUserAccessToWorkspaceRequest.php index 84ac7ad..8692e4c 100644 --- a/src/Models/Operations/RevokeUserAccessToWorkspaceRequest.php +++ b/src/Models/Operations/RevokeUserAccessToWorkspaceRequest.php @@ -22,16 +22,16 @@ class RevokeUserAccessToWorkspaceRequest /** * Unique identifier of the workspace. * - * @var string $workspaceId + * @var ?string $workspaceId */ #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=workspace_id')] - public string $workspaceId; + public ?string $workspaceId = null; /** * @param string $userId - * @param string $workspaceId + * @param ?string $workspaceId */ - public function __construct(string $userId, string $workspaceId) + public function __construct(string $userId, ?string $workspaceId = null) { $this->userId = $userId; $this->workspaceId = $workspaceId; diff --git a/src/Models/Operations/SearchWorkspaceEventsRequest.php b/src/Models/Operations/SearchWorkspaceEventsRequest.php index aa08fbd..12017e0 100644 --- a/src/Models/Operations/SearchWorkspaceEventsRequest.php +++ b/src/Models/Operations/SearchWorkspaceEventsRequest.php @@ -55,26 +55,26 @@ class SearchWorkspaceEventsRequest /** * Unique identifier of the workspace. * - * @var string $workspaceId + * @var ?string $workspaceId */ #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=workspace_id')] - public string $workspaceId; + public ?string $workspaceId = null; /** - * @param string $workspaceId * @param ?string $generateGenLockId * @param ?Shared\InteractionType $interactionType * @param ?string $lintReportDigest * @param ?string $openapiDiffReportDigest * @param ?string $sourceRevisionDigest + * @param ?string $workspaceId */ - public function __construct(string $workspaceId, ?string $generateGenLockId = null, ?Shared\InteractionType $interactionType = null, ?string $lintReportDigest = null, ?string $openapiDiffReportDigest = null, ?string $sourceRevisionDigest = null) + public function __construct(?string $generateGenLockId = null, ?Shared\InteractionType $interactionType = null, ?string $lintReportDigest = null, ?string $openapiDiffReportDigest = null, ?string $sourceRevisionDigest = null, ?string $workspaceId = null) { - $this->workspaceId = $workspaceId; $this->generateGenLockId = $generateGenLockId; $this->interactionType = $interactionType; $this->lintReportDigest = $lintReportDigest; $this->openapiDiffReportDigest = $openapiDiffReportDigest; $this->sourceRevisionDigest = $sourceRevisionDigest; + $this->workspaceId = $workspaceId; } } \ No newline at end of file diff --git a/src/Models/Operations/UpdateWorkspaceDetailsRequest.php b/src/Models/Operations/UpdateWorkspaceDetailsRequest.php index 63a752d..8d578e9 100644 --- a/src/Models/Operations/UpdateWorkspaceDetailsRequest.php +++ b/src/Models/Operations/UpdateWorkspaceDetailsRequest.php @@ -23,16 +23,16 @@ class UpdateWorkspaceDetailsRequest /** * Unique identifier of the workspace. * - * @var string $workspaceId + * @var ?string $workspaceId */ #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=workspace_id')] - public string $workspaceId; + public ?string $workspaceId = null; /** * @param Shared\Workspace $workspace - * @param string $workspaceId + * @param ?string $workspaceId */ - public function __construct(Shared\Workspace $workspace, string $workspaceId) + public function __construct(Shared\Workspace $workspace, ?string $workspaceId = null) { $this->workspace = $workspace; $this->workspaceId = $workspaceId; diff --git a/src/Models/Operations/UpdateWorkspaceSettingsRequest.php b/src/Models/Operations/UpdateWorkspaceSettingsRequest.php index b0dcfcf..63ec1f9 100644 --- a/src/Models/Operations/UpdateWorkspaceSettingsRequest.php +++ b/src/Models/Operations/UpdateWorkspaceSettingsRequest.php @@ -23,16 +23,16 @@ class UpdateWorkspaceSettingsRequest /** * Unique identifier of the workspace. * - * @var string $workspaceId + * @var ?string $workspaceId */ #[SpeakeasyMetadata('pathParam:style=simple,explode=false,name=workspace_id')] - public string $workspaceId; + public ?string $workspaceId = null; /** * @param Shared\WorkspaceSettings $workspaceSettings - * @param string $workspaceId + * @param ?string $workspaceId */ - public function __construct(Shared\WorkspaceSettings $workspaceSettings, string $workspaceId) + public function __construct(Shared\WorkspaceSettings $workspaceSettings, ?string $workspaceId = null) { $this->workspaceSettings = $workspaceSettings; $this->workspaceId = $workspaceId; diff --git a/src/Models/Shared/CliEvent.php b/src/Models/Shared/CliEvent.php index 9268962..eba6d19 100644 --- a/src/Models/Shared/CliEvent.php +++ b/src/Models/Shared/CliEvent.php @@ -235,6 +235,15 @@ class CliEvent #[\JMS\Serializer\Annotation\SkipWhenNull] public ?int $generateNumberOfOperationsUsed = null; + /** + * The number of terraform resources used in generation. + * + * @var ?int $generateNumberOfTerraformResources + */ + #[\JMS\Serializer\Annotation\SerializedName('generate_number_of_terraform_resources')] + #[\JMS\Serializer\Annotation\SkipWhenNull] + public ?int $generateNumberOfTerraformResources = null; + /** * Indicates whether tests were output. * @@ -749,6 +758,7 @@ class CliEvent * @param ?string $generateGenLockPreVersion * @param ?int $generateNumberOfOperationsIgnored * @param ?int $generateNumberOfOperationsUsed + * @param ?int $generateNumberOfTerraformResources * @param ?bool $generateOutputTests * @param ?bool $generatePublished * @param ?string $generateRepoUrl @@ -797,7 +807,7 @@ class CliEvent * @param ?string $workflowPostRaw * @param ?string $workflowPreRaw */ - public function __construct(\DateTime $createdAt, string $executionId, string $id, InteractionType $interactionType, \DateTime $localStartedAt, string $speakeasyApiKeyName, string $speakeasyVersion, bool $success, string $workspaceId, ?string $commitHead = null, ?string $continuousIntegrationEnvironment = null, ?int $durationMs = null, ?string $error = null, ?GenerateBumpType $generateBumpType = null, ?string $generateConfigPostChecksum = null, ?string $generateConfigPostRaw = null, ?string $generateConfigPostVersion = null, ?string $generateConfigPreChecksum = null, ?string $generateConfigPreRaw = null, ?string $generateConfigPreVersion = null, ?string $generateEligibleFeatures = null, ?string $generateGenLockId = null, ?string $generateGenLockPostFeatures = null, ?string $generateGenLockPreBlobDigest = null, ?string $generateGenLockPreDocChecksum = null, ?string $generateGenLockPreDocVersion = null, ?string $generateGenLockPreFeatures = null, ?string $generateGenLockPreNamespaceName = null, ?string $generateGenLockPreRevisionDigest = null, ?string $generateGenLockPreVersion = null, ?int $generateNumberOfOperationsIgnored = null, ?int $generateNumberOfOperationsUsed = null, ?bool $generateOutputTests = null, ?bool $generatePublished = null, ?string $generateRepoUrl = null, ?string $generateTarget = null, ?string $generateTargetName = null, ?string $generateTargetVersion = null, ?string $generateVersion = null, ?string $ghActionOrganization = null, ?string $ghActionRef = null, ?string $ghActionRepository = null, ?string $ghActionRunLink = null, ?string $ghActionVersion = null, ?string $ghPullRequest = null, ?string $gitRelativeCwd = null, ?string $gitRemoteDefaultOwner = null, ?string $gitRemoteDefaultRepo = null, ?string $gitUserEmail = null, ?string $gitUserName = null, ?string $hostname = null, ?string $lastStep = null, ?string $lintReportDigest = null, ?int $lintReportErrorCount = null, ?int $lintReportInfoCount = null, ?int $lintReportWarningCount = null, ?\DateTime $localCompletedAt = null, ?string $managementDocChecksum = null, ?string $managementDocVersion = null, ?string $mermaidDiagram = null, ?string $openapiDiffBaseSourceBlobDigest = null, ?string $openapiDiffBaseSourceNamespaceName = null, ?string $openapiDiffBaseSourceRevisionDigest = null, ?int $openapiDiffBreakingChangesCount = null, ?OpenapiDiffBumpType $openapiDiffBumpType = null, ?string $openapiDiffReportDigest = null, ?string $publishPackageName = null, ?string $publishPackageRegistryName = null, ?string $publishPackageUrl = null, ?string $publishPackageVersion = null, ?string $rawCommand = null, ?string $repoLabel = null, ?string $sourceBlobDigest = null, ?string $sourceNamespaceName = null, ?string $sourceRevisionDigest = null, ?string $workflowLockPostRaw = null, ?string $workflowLockPreRaw = null, ?string $workflowPostRaw = null, ?string $workflowPreRaw = null) + public function __construct(\DateTime $createdAt, string $executionId, string $id, InteractionType $interactionType, \DateTime $localStartedAt, string $speakeasyApiKeyName, string $speakeasyVersion, bool $success, string $workspaceId, ?string $commitHead = null, ?string $continuousIntegrationEnvironment = null, ?int $durationMs = null, ?string $error = null, ?GenerateBumpType $generateBumpType = null, ?string $generateConfigPostChecksum = null, ?string $generateConfigPostRaw = null, ?string $generateConfigPostVersion = null, ?string $generateConfigPreChecksum = null, ?string $generateConfigPreRaw = null, ?string $generateConfigPreVersion = null, ?string $generateEligibleFeatures = null, ?string $generateGenLockId = null, ?string $generateGenLockPostFeatures = null, ?string $generateGenLockPreBlobDigest = null, ?string $generateGenLockPreDocChecksum = null, ?string $generateGenLockPreDocVersion = null, ?string $generateGenLockPreFeatures = null, ?string $generateGenLockPreNamespaceName = null, ?string $generateGenLockPreRevisionDigest = null, ?string $generateGenLockPreVersion = null, ?int $generateNumberOfOperationsIgnored = null, ?int $generateNumberOfOperationsUsed = null, ?int $generateNumberOfTerraformResources = null, ?bool $generateOutputTests = null, ?bool $generatePublished = null, ?string $generateRepoUrl = null, ?string $generateTarget = null, ?string $generateTargetName = null, ?string $generateTargetVersion = null, ?string $generateVersion = null, ?string $ghActionOrganization = null, ?string $ghActionRef = null, ?string $ghActionRepository = null, ?string $ghActionRunLink = null, ?string $ghActionVersion = null, ?string $ghPullRequest = null, ?string $gitRelativeCwd = null, ?string $gitRemoteDefaultOwner = null, ?string $gitRemoteDefaultRepo = null, ?string $gitUserEmail = null, ?string $gitUserName = null, ?string $hostname = null, ?string $lastStep = null, ?string $lintReportDigest = null, ?int $lintReportErrorCount = null, ?int $lintReportInfoCount = null, ?int $lintReportWarningCount = null, ?\DateTime $localCompletedAt = null, ?string $managementDocChecksum = null, ?string $managementDocVersion = null, ?string $mermaidDiagram = null, ?string $openapiDiffBaseSourceBlobDigest = null, ?string $openapiDiffBaseSourceNamespaceName = null, ?string $openapiDiffBaseSourceRevisionDigest = null, ?int $openapiDiffBreakingChangesCount = null, ?OpenapiDiffBumpType $openapiDiffBumpType = null, ?string $openapiDiffReportDigest = null, ?string $publishPackageName = null, ?string $publishPackageRegistryName = null, ?string $publishPackageUrl = null, ?string $publishPackageVersion = null, ?string $rawCommand = null, ?string $repoLabel = null, ?string $sourceBlobDigest = null, ?string $sourceNamespaceName = null, ?string $sourceRevisionDigest = null, ?string $workflowLockPostRaw = null, ?string $workflowLockPreRaw = null, ?string $workflowPostRaw = null, ?string $workflowPreRaw = null) { $this->createdAt = $createdAt; $this->executionId = $executionId; @@ -831,6 +841,7 @@ public function __construct(\DateTime $createdAt, string $executionId, string $i $this->generateGenLockPreVersion = $generateGenLockPreVersion; $this->generateNumberOfOperationsIgnored = $generateNumberOfOperationsIgnored; $this->generateNumberOfOperationsUsed = $generateNumberOfOperationsUsed; + $this->generateNumberOfTerraformResources = $generateNumberOfTerraformResources; $this->generateOutputTests = $generateOutputTests; $this->generatePublished = $generatePublished; $this->generateRepoUrl = $generateRepoUrl; diff --git a/src/Models/Shared/TargetSDK.php b/src/Models/Shared/TargetSDK.php index 85209aa..eb528ed 100644 --- a/src/Models/Shared/TargetSDK.php +++ b/src/Models/Shared/TargetSDK.php @@ -100,6 +100,15 @@ class TargetSDK #[\JMS\Serializer\Annotation\SkipWhenNull] public ?int $generateNumberOfOperationsUsed = null; + /** + * The number of terraform resources used in generation. + * + * @var ?int $generateNumberOfTerraformResources + */ + #[\JMS\Serializer\Annotation\SerializedName('generate_number_of_terraform_resources')] + #[\JMS\Serializer\Annotation\SkipWhenNull] + public ?int $generateNumberOfTerraformResources = null; + /** * Indicates whether the target was considered published. * @@ -382,6 +391,7 @@ class TargetSDK * @param ?string $generateGenLockPreVersion * @param ?int $generateNumberOfOperationsIgnored * @param ?int $generateNumberOfOperationsUsed + * @param ?int $generateNumberOfTerraformResources * @param ?bool $generatePublished * @param ?string $generateTargetName * @param ?string $generateTargetVersion @@ -408,7 +418,7 @@ class TargetSDK * @param ?string $workflowPostRaw * @param ?string $workflowPreRaw */ - public function __construct(string $generateGenLockId, string $generateTarget, string $id, \DateTime $lastEventCreatedAt, string $lastEventId, InteractionType $lastEventInteractionType, ?string $commitHead = null, ?string $continuousIntegrationEnvironment = null, ?string $error = null, ?string $generateConfigPostVersion = null, ?string $generateEligibleFeatures = null, ?string $generateGenLockPreFeatures = null, ?string $generateGenLockPreVersion = null, ?int $generateNumberOfOperationsIgnored = null, ?int $generateNumberOfOperationsUsed = null, ?bool $generatePublished = null, ?string $generateTargetName = null, ?string $generateTargetVersion = null, ?string $ghActionOrganization = null, ?string $ghActionRef = null, ?string $ghActionRepository = null, ?string $ghActionRunLink = null, ?string $ghActionVersion = null, ?string $gitRelativeCwd = null, ?string $gitRemoteDefaultOwner = null, ?string $gitRemoteDefaultRepo = null, ?string $gitUserEmail = null, ?string $gitUserName = null, ?string $hostname = null, ?string $publishPackageName = null, ?string $publishPackageRegistryName = null, ?string $publishPackageUrl = null, ?string $publishPackageVersion = null, ?string $repoLabel = null, ?string $sourceBlobDigest = null, ?string $sourceNamespaceName = null, ?string $sourceRevisionDigest = null, ?bool $success = null, ?string $workflowPostRaw = null, ?string $workflowPreRaw = null) + public function __construct(string $generateGenLockId, string $generateTarget, string $id, \DateTime $lastEventCreatedAt, string $lastEventId, InteractionType $lastEventInteractionType, ?string $commitHead = null, ?string $continuousIntegrationEnvironment = null, ?string $error = null, ?string $generateConfigPostVersion = null, ?string $generateEligibleFeatures = null, ?string $generateGenLockPreFeatures = null, ?string $generateGenLockPreVersion = null, ?int $generateNumberOfOperationsIgnored = null, ?int $generateNumberOfOperationsUsed = null, ?int $generateNumberOfTerraformResources = null, ?bool $generatePublished = null, ?string $generateTargetName = null, ?string $generateTargetVersion = null, ?string $ghActionOrganization = null, ?string $ghActionRef = null, ?string $ghActionRepository = null, ?string $ghActionRunLink = null, ?string $ghActionVersion = null, ?string $gitRelativeCwd = null, ?string $gitRemoteDefaultOwner = null, ?string $gitRemoteDefaultRepo = null, ?string $gitUserEmail = null, ?string $gitUserName = null, ?string $hostname = null, ?string $publishPackageName = null, ?string $publishPackageRegistryName = null, ?string $publishPackageUrl = null, ?string $publishPackageVersion = null, ?string $repoLabel = null, ?string $sourceBlobDigest = null, ?string $sourceNamespaceName = null, ?string $sourceRevisionDigest = null, ?bool $success = null, ?string $workflowPostRaw = null, ?string $workflowPreRaw = null) { $this->generateGenLockId = $generateGenLockId; $this->generateTarget = $generateTarget; @@ -425,6 +435,7 @@ public function __construct(string $generateGenLockId, string $generateTarget, s $this->generateGenLockPreVersion = $generateGenLockPreVersion; $this->generateNumberOfOperationsIgnored = $generateNumberOfOperationsIgnored; $this->generateNumberOfOperationsUsed = $generateNumberOfOperationsUsed; + $this->generateNumberOfTerraformResources = $generateNumberOfTerraformResources; $this->generatePublished = $generatePublished; $this->generateTargetName = $generateTargetName; $this->generateTargetVersion = $generateTargetVersion; diff --git a/src/SDKBuilder.php b/src/SDKBuilder.php index 412226e..bdfd1d1 100644 --- a/src/SDKBuilder.php +++ b/src/SDKBuilder.php @@ -85,18 +85,18 @@ public function setServer(string $server): SDKBuilder return $this; } /** - * setWorkspaceID is used to configure the workspaceID parameter for the SDK. + * setWorkspaceId is used to configure the workspace_id parameter for the SDK. * - * @param string $workspaceID + * @param string $workspaceId * @return SDKBuilder */ - public function setWorkspaceID(string $workspaceID): SDKBuilder + public function setWorkspaceId(string $workspaceId): SDKBuilder { if (! array_key_exists('pathParam', $this->sdkConfig->globals['parameters'])) { $this->sdkConfig->globals['parameters']['pathParam'] = []; } - $this->sdkConfig->globals['parameters']['pathParam']['workspaceID'] = $workspaceID; + $this->sdkConfig->globals['parameters']['pathParam']['workspaceId'] = $workspaceId; return $this; } diff --git a/src/SDKConfiguration.php b/src/SDKConfiguration.php index 72ee148..cac97dd 100644 --- a/src/SDKConfiguration.php +++ b/src/SDKConfiguration.php @@ -27,11 +27,11 @@ class SDKConfiguration public string $openapiDocVersion = '0.4.0'; - public string $sdkVersion = '0.44.4'; + public string $sdkVersion = '0.44.5'; public string $genVersion = '2.438.15'; - public string $userAgent = 'speakeasy-sdk/php 0.44.4 2.438.15 0.4.0 speakeasy-api/speakeasy-client-sdk-php'; + public string $userAgent = 'speakeasy-sdk/php 0.44.5 2.438.15 0.4.0 speakeasy-api/speakeasy-client-sdk-php'; /** @var array>> */ public ?array $globals = [ 'parameters' => [], diff --git a/src/Subscriptions.php b/src/Subscriptions.php index c65ea33..ec85907 100644 --- a/src/Subscriptions.php +++ b/src/Subscriptions.php @@ -72,11 +72,11 @@ public function createSubscription(Operations\CreateSubscriptionRequest $request /** * List Subscriptions * - * @param Operations\ListRegistrySubscriptionsRequest $request + * @param ?Operations\ListRegistrySubscriptionsRequest $request * @return Operations\ListRegistrySubscriptionsResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ - public function listRegistrySubscriptions(Operations\ListRegistrySubscriptionsRequest $request): Operations\ListRegistrySubscriptionsResponse + public function listRegistrySubscriptions(?Operations\ListRegistrySubscriptionsRequest $request = null): Operations\ListRegistrySubscriptionsResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/{workspace_id}/registry_subscriptions', Operations\ListRegistrySubscriptionsRequest::class, $request, $this->sdkConfiguration->globals); diff --git a/src/Workspaces.php b/src/Workspaces.php index d7bb88e..11f2660 100644 --- a/src/Workspaces.php +++ b/src/Workspaces.php @@ -276,11 +276,11 @@ public function getAll(): Operations\GetWorkspacesResponse * * Get information about a particular workspace. * - * @param Operations\GetWorkspaceRequest $request + * @param ?Operations\GetWorkspaceRequest $request * @return Operations\GetWorkspaceResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ - public function getByID(Operations\GetWorkspaceRequest $request): Operations\GetWorkspaceResponse + public function getByID(?Operations\GetWorkspaceRequest $request = null): Operations\GetWorkspaceResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/{workspace_id}', Operations\GetWorkspaceRequest::class, $request, $this->sdkConfiguration->globals); @@ -326,11 +326,11 @@ public function getByID(Operations\GetWorkspaceRequest $request): Operations\Get /** * Get workspace feature flags * - * @param Operations\GetWorkspaceFeatureFlagsRequest $request + * @param ?Operations\GetWorkspaceFeatureFlagsRequest $request * @return Operations\GetWorkspaceFeatureFlagsResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ - public function getFeatureFlags(Operations\GetWorkspaceFeatureFlagsRequest $request): Operations\GetWorkspaceFeatureFlagsResponse + public function getFeatureFlags(?Operations\GetWorkspaceFeatureFlagsRequest $request = null): Operations\GetWorkspaceFeatureFlagsResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/{workspace_id}/feature_flags', Operations\GetWorkspaceFeatureFlagsRequest::class, $request, $this->sdkConfiguration->globals); @@ -378,11 +378,11 @@ public function getFeatureFlags(Operations\GetWorkspaceFeatureFlagsRequest $requ * * Get settings about a particular workspace. * - * @param Operations\GetWorkspaceSettingsRequest $request + * @param ?Operations\GetWorkspaceSettingsRequest $request * @return Operations\GetWorkspaceSettingsResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ - public function getSettings(Operations\GetWorkspaceSettingsRequest $request): Operations\GetWorkspaceSettingsResponse + public function getSettings(?Operations\GetWorkspaceSettingsRequest $request = null): Operations\GetWorkspaceSettingsResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/{workspace_id}/settings', Operations\GetWorkspaceSettingsRequest::class, $request, $this->sdkConfiguration->globals); @@ -428,11 +428,11 @@ public function getSettings(Operations\GetWorkspaceSettingsRequest $request): Op /** * Get team members for a particular workspace * - * @param Operations\GetWorkspaceTeamRequest $request + * @param ?Operations\GetWorkspaceTeamRequest $request * @return Operations\GetWorkspaceTeamResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ - public function getTeam(Operations\GetWorkspaceTeamRequest $request): Operations\GetWorkspaceTeamResponse + public function getTeam(?Operations\GetWorkspaceTeamRequest $request = null): Operations\GetWorkspaceTeamResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/{workspace_id}/team', Operations\GetWorkspaceTeamRequest::class, $request, $this->sdkConfiguration->globals); @@ -478,11 +478,11 @@ public function getTeam(Operations\GetWorkspaceTeamRequest $request): Operations /** * Get tokens for a particular workspace * - * @param Operations\GetWorkspaceTokensRequest $request + * @param ?Operations\GetWorkspaceTokensRequest $request * @return Operations\GetWorkspaceTokensResponse * @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException */ - public function getTokens(Operations\GetWorkspaceTokensRequest $request): Operations\GetWorkspaceTokensResponse + public function getTokens(?Operations\GetWorkspaceTokensRequest $request = null): Operations\GetWorkspaceTokensResponse { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/v1/workspace/{workspace_id}/tokens', Operations\GetWorkspaceTokensRequest::class, $request, $this->sdkConfiguration->globals);