From df414c6818c5a9bcde266994a58fad50e4ddfd1e Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 23 Jan 2025 00:16:25 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.470.1 --- .speakeasy/gen.lock | 12 +- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 14 +- RELEASES.md | 12 +- docs/Models/Shared/NamespaceT.md | 17 +- docs/Models/Shared/Revision.md | 17 +- .../Models/Shared/RevisionContentsMetadata.md | 20 +++ .../Shared/RevisionContentsMetadataType.md | 9 ++ src/Models/Shared/NamespaceT.php | 13 +- src/Models/Shared/Revision.php | 13 +- .../Shared/RevisionContentsMetadata.php | 150 ++++++++++++++++++ .../Shared/RevisionContentsMetadataType.php | 16 ++ src/SDKConfiguration.php | 4 +- 13 files changed, 266 insertions(+), 33 deletions(-) create mode 100644 docs/Models/Shared/RevisionContentsMetadata.md create mode 100644 docs/Models/Shared/RevisionContentsMetadataType.md create mode 100644 src/Models/Shared/RevisionContentsMetadata.php create mode 100644 src/Models/Shared/RevisionContentsMetadataType.php diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index efbc051..067081a 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: 1766b7749df601fc084985fa6f54c7be + docChecksum: 8e0ff093baf67c9e2001a9f810f355de docVersion: 0.4.0 - speakeasyVersion: 1.469.12 + speakeasyVersion: 1.470.1 generationVersion: 2.493.34 - releaseVersion: 0.47.5 - configChecksum: 8c93972262c59be541aa891bc2bd677b + releaseVersion: 0.47.6 + configChecksum: e33657152519b98a43d4ee989637ec18 repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-php.git repoSubDirectory: . installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-php @@ -194,6 +194,8 @@ generatedFiles: - docs/Models/Shared/RemoteSourceSubscriptionSettings.md - docs/Models/Shared/Report.md - docs/Models/Shared/Revision.md + - docs/Models/Shared/RevisionContentsMetadata.md + - docs/Models/Shared/RevisionContentsMetadataType.md - docs/Models/Shared/SSOMetadata.md - docs/Models/Shared/SchemaFile.md - docs/Models/Shared/Secrets.md @@ -425,6 +427,8 @@ generatedFiles: - src/Models/Shared/RemoteSourceSubscriptionSettings.php - src/Models/Shared/Report.php - src/Models/Shared/Revision.php + - src/Models/Shared/RevisionContentsMetadata.php + - src/Models/Shared/RevisionContentsMetadataType.php - src/Models/Shared/SSOMetadata.php - src/Models/Shared/SchemaFile.php - src/Models/Shared/Secrets.php diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index e6d809a..8d8903a 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -11,7 +11,7 @@ generation: oAuth2ClientCredentialsEnabled: false oAuth2PasswordEnabled: false php: - version: 0.47.5 + version: 0.47.6 additionalDependencies: autoload: {} autoload-dev: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index f9ad0ec..50d5c48 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.469.12 +speakeasyVersion: 1.470.1 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:347f9ecc9896dd973a8299123cf070ddca3af0c3218faa9452b0b4a5a1d40002 - sourceBlobDigest: sha256:89100d40a58b27e5294c921a7c698253b084d037635894f0a7c15ab40e224589 + sourceRevisionDigest: sha256:faaba1071b8211089170d62216fb0528db5d373993977552eb0b20727dfc34fd + sourceBlobDigest: sha256:fdce65fc06375b5ac8b51a49e68853e76ba820d057de83e9d0c608a25af78b7d tags: - latest - - speakeasy-sdk-regen-1737486262 + - speakeasy-sdk-regen-1737591343 - 0.4.0 targets: php-target: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:347f9ecc9896dd973a8299123cf070ddca3af0c3218faa9452b0b4a5a1d40002 - sourceBlobDigest: sha256:89100d40a58b27e5294c921a7c698253b084d037635894f0a7c15ab40e224589 + sourceRevisionDigest: sha256:faaba1071b8211089170d62216fb0528db5d373993977552eb0b20727dfc34fd + sourceBlobDigest: sha256:fdce65fc06375b5ac8b51a49e68853e76ba820d057de83e9d0c608a25af78b7d codeSamplesNamespace: my-source-php-code-samples - codeSamplesRevisionDigest: sha256:ecaa1a353bb486697506bfcabaf951541a94a6ff1ed28cca421c78391d790be2 + codeSamplesRevisionDigest: sha256:2e7ad8921f68c8fc8e7187ce1f9155aba3871b47342dd3441264a97b7a5fba16 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index 8a9a803..725fbec 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1604,4 +1604,14 @@ Based on: ### Generated - [php v0.47.5] . ### Releases -- [Composer v0.47.5] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.47.5 - . \ No newline at end of file +- [Composer v0.47.5] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.47.5 - . + +## 2025-01-23 00:15:28 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.470.1 (2.493.34) https://github.com/speakeasy-api/speakeasy +### Generated +- [php v0.47.6] . +### Releases +- [Composer v0.47.6] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.47.6 - . \ No newline at end of file diff --git a/docs/Models/Shared/NamespaceT.md b/docs/Models/Shared/NamespaceT.md index 02d9911..c12127a 100644 --- a/docs/Models/Shared/NamespaceT.md +++ b/docs/Models/Shared/NamespaceT.md @@ -5,11 +5,12 @@ A namespace contains many revisions. ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `createdAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | N/A | -| `id` | *string* | :heavy_check_mark: | {organization_slug}/{workspace_slug}/{namespace_name} | -| `name` | *string* | :heavy_check_mark: | A human-readable name for the namespace. | -| `updatedAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | N/A | -| `compositeSpecMetadata` | [?Shared\CompositeSpecMetadata](../../Models/Shared/CompositeSpecMetadata.md) | :heavy_minus_sign: | N/A | -| `public` | *?bool* | :heavy_minus_sign: | Indicates whether the namespace is publicly accessible | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `createdAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | N/A | +| `id` | *string* | :heavy_check_mark: | {organization_slug}/{workspace_slug}/{namespace_name} | +| `name` | *string* | :heavy_check_mark: | A human-readable name for the namespace. | +| `updatedAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | N/A | +| `compositeSpecMetadata` | [?Shared\CompositeSpecMetadata](../../Models/Shared/CompositeSpecMetadata.md) | :heavy_minus_sign: | N/A | +| `latestRevisionMetadata` | [?Shared\RevisionContentsMetadata](../../Models/Shared/RevisionContentsMetadata.md) | :heavy_minus_sign: | N/A | +| `public` | *?bool* | :heavy_minus_sign: | Indicates whether the namespace is publicly accessible | \ No newline at end of file diff --git a/docs/Models/Shared/Revision.md b/docs/Models/Shared/Revision.md index 80f11d5..e3e9c1b 100644 --- a/docs/Models/Shared/Revision.md +++ b/docs/Models/Shared/Revision.md @@ -3,11 +3,12 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `createdAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | N/A | | -| `digest` | *string* | :heavy_check_mark: | N/A | sha256:6d1ef012b5674ad8a127ecfa9b5e6f5178d171b90ee462846974177fd9bdd39f | -| `id` | *string* | :heavy_check_mark: | Format {namespace_id}/{revision_digest} | | -| `namespaceName` | *string* | :heavy_check_mark: | N/A | | -| `tags` | array<*string*> | :heavy_check_mark: | N/A | | -| `updatedAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `createdAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | N/A | | +| `digest` | *string* | :heavy_check_mark: | N/A | sha256:6d1ef012b5674ad8a127ecfa9b5e6f5178d171b90ee462846974177fd9bdd39f | +| `id` | *string* | :heavy_check_mark: | Format {namespace_id}/{revision_digest} | | +| `namespaceName` | *string* | :heavy_check_mark: | N/A | | +| `tags` | array<*string*> | :heavy_check_mark: | N/A | | +| `updatedAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | N/A | | +| `contentsMetadata` | [?Shared\RevisionContentsMetadata](../../Models/Shared/RevisionContentsMetadata.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Shared/RevisionContentsMetadata.md b/docs/Models/Shared/RevisionContentsMetadata.md new file mode 100644 index 0000000..6df45de --- /dev/null +++ b/docs/Models/Shared/RevisionContentsMetadata.md @@ -0,0 +1,20 @@ +# RevisionContentsMetadata + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `containsCodeSamples` | *bool* | :heavy_check_mark: | Whether the OAS contains code samples. | +| `createdAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | N/A | +| `description` | *string* | :heavy_check_mark: | The OAS description | +| `hash` | *string* | :heavy_check_mark: | The hash of the contents | +| `namespace` | *string* | :heavy_check_mark: | The fully qualified namespace | +| `numOverlayActions` | *int* | :heavy_check_mark: | The number of overlay actions in the OAS. Will be 0 if the OAS is not an overlay. | +| `operationIds` | array<*string*> | :heavy_check_mark: | The operation IDs contained in the OAS. Will be empty if the OAS is an overlay. | +| `revisionDigest` | *string* | :heavy_check_mark: | The digest of the parent bundle | +| `tags` | array<*string*> | :heavy_check_mark: | The tags contained in the OAS -- NOT the OCI tags. Will be empty if the OAS is an overlay. | +| `title` | *string* | :heavy_check_mark: | The OAS title | +| `type` | [Shared\RevisionContentsMetadataType](../../Models/Shared/RevisionContentsMetadataType.md) | :heavy_check_mark: | N/A | +| `version` | *string* | :heavy_check_mark: | The OAS version | +| `workspaceId` | *string* | :heavy_check_mark: | The workspace ID | \ No newline at end of file diff --git a/docs/Models/Shared/RevisionContentsMetadataType.md b/docs/Models/Shared/RevisionContentsMetadataType.md new file mode 100644 index 0000000..1b3b602 --- /dev/null +++ b/docs/Models/Shared/RevisionContentsMetadataType.md @@ -0,0 +1,9 @@ +# RevisionContentsMetadataType + + +## Values + +| Name | Value | +| ---------------- | ---------------- | +| `OpenapiBundle` | OPENAPI_BUNDLE | +| `OpenapiOverlay` | OPENAPI_OVERLAY | \ No newline at end of file diff --git a/src/Models/Shared/NamespaceT.php b/src/Models/Shared/NamespaceT.php index ae6d150..259ec9e 100644 --- a/src/Models/Shared/NamespaceT.php +++ b/src/Models/Shared/NamespaceT.php @@ -51,6 +51,15 @@ class NamespaceT #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?CompositeSpecMetadata $compositeSpecMetadata = null; + /** + * + * @var ?RevisionContentsMetadata $latestRevisionMetadata + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('latest_revision_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Speakeasy\SpeakeasyClientSDK\Models\Shared\RevisionContentsMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?RevisionContentsMetadata $latestRevisionMetadata = null; + /** * Indicates whether the namespace is publicly accessible * @@ -66,15 +75,17 @@ class NamespaceT * @param string $name * @param \DateTime $updatedAt * @param ?CompositeSpecMetadata $compositeSpecMetadata + * @param ?RevisionContentsMetadata $latestRevisionMetadata * @param ?bool $public */ - public function __construct(\DateTime $createdAt, string $id, string $name, \DateTime $updatedAt, ?CompositeSpecMetadata $compositeSpecMetadata = null, ?bool $public = null) + public function __construct(\DateTime $createdAt, string $id, string $name, \DateTime $updatedAt, ?CompositeSpecMetadata $compositeSpecMetadata = null, ?RevisionContentsMetadata $latestRevisionMetadata = null, ?bool $public = null) { $this->createdAt = $createdAt; $this->id = $id; $this->name = $name; $this->updatedAt = $updatedAt; $this->compositeSpecMetadata = $compositeSpecMetadata; + $this->latestRevisionMetadata = $latestRevisionMetadata; $this->public = $public; } } \ No newline at end of file diff --git a/src/Models/Shared/Revision.php b/src/Models/Shared/Revision.php index 2e3656e..78d5c7d 100644 --- a/src/Models/Shared/Revision.php +++ b/src/Models/Shared/Revision.php @@ -56,6 +56,15 @@ class Revision #[\Speakeasy\Serializer\Annotation\SerializedName('updated_at')] public \DateTime $updatedAt; + /** + * + * @var ?RevisionContentsMetadata $contentsMetadata + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('contents_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Speakeasy\SpeakeasyClientSDK\Models\Shared\RevisionContentsMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?RevisionContentsMetadata $contentsMetadata = null; + /** * @param \DateTime $createdAt * @param string $digest @@ -63,8 +72,9 @@ class Revision * @param string $namespaceName * @param array $tags * @param \DateTime $updatedAt + * @param ?RevisionContentsMetadata $contentsMetadata */ - public function __construct(\DateTime $createdAt, string $digest, string $id, string $namespaceName, array $tags, \DateTime $updatedAt) + public function __construct(\DateTime $createdAt, string $digest, string $id, string $namespaceName, array $tags, \DateTime $updatedAt, ?RevisionContentsMetadata $contentsMetadata = null) { $this->createdAt = $createdAt; $this->digest = $digest; @@ -72,5 +82,6 @@ public function __construct(\DateTime $createdAt, string $digest, string $id, st $this->namespaceName = $namespaceName; $this->tags = $tags; $this->updatedAt = $updatedAt; + $this->contentsMetadata = $contentsMetadata; } } \ No newline at end of file diff --git a/src/Models/Shared/RevisionContentsMetadata.php b/src/Models/Shared/RevisionContentsMetadata.php new file mode 100644 index 0000000..7351d8c --- /dev/null +++ b/src/Models/Shared/RevisionContentsMetadata.php @@ -0,0 +1,150 @@ + $operationIds + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('operation_ids')] + #[\Speakeasy\Serializer\Annotation\Type('array')] + public array $operationIds; + + /** + * The digest of the parent bundle + * + * @var string $revisionDigest + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('revision_digest')] + public string $revisionDigest; + + /** + * The tags contained in the OAS -- NOT the OCI tags. Will be empty if the OAS is an overlay. + * + * @var array $tags + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('tags')] + #[\Speakeasy\Serializer\Annotation\Type('array')] + public array $tags; + + /** + * The OAS title + * + * @var string $title + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('title')] + public string $title; + + /** + * + * @var RevisionContentsMetadataType $type + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('type')] + #[\Speakeasy\Serializer\Annotation\Type('\Speakeasy\SpeakeasyClientSDK\Models\Shared\RevisionContentsMetadataType')] + public RevisionContentsMetadataType $type; + + /** + * The OAS version + * + * @var string $version + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('version')] + public string $version; + + /** + * The workspace ID + * + * @var string $workspaceId + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('workspace_id')] + public string $workspaceId; + + /** + * @param bool $containsCodeSamples + * @param \DateTime $createdAt + * @param string $description + * @param string $hash + * @param string $namespace + * @param int $numOverlayActions + * @param array $operationIds + * @param string $revisionDigest + * @param array $tags + * @param string $title + * @param RevisionContentsMetadataType $type + * @param string $version + * @param string $workspaceId + */ + public function __construct(bool $containsCodeSamples, \DateTime $createdAt, string $description, string $hash, string $namespace, int $numOverlayActions, array $operationIds, string $revisionDigest, array $tags, string $title, RevisionContentsMetadataType $type, string $version, string $workspaceId) + { + $this->containsCodeSamples = $containsCodeSamples; + $this->createdAt = $createdAt; + $this->description = $description; + $this->hash = $hash; + $this->namespace = $namespace; + $this->numOverlayActions = $numOverlayActions; + $this->operationIds = $operationIds; + $this->revisionDigest = $revisionDigest; + $this->tags = $tags; + $this->title = $title; + $this->type = $type; + $this->version = $version; + $this->workspaceId = $workspaceId; + } +} \ No newline at end of file diff --git a/src/Models/Shared/RevisionContentsMetadataType.php b/src/Models/Shared/RevisionContentsMetadataType.php new file mode 100644 index 0000000..d2c38ce --- /dev/null +++ b/src/Models/Shared/RevisionContentsMetadataType.php @@ -0,0 +1,16 @@ +>> */ public ?array $globals = [ 'parameters' => [],