Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.449.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Dec 3, 2024
1 parent 5b4df93 commit e9bb6ce
Show file tree
Hide file tree
Showing 17 changed files with 164 additions and 99 deletions.
16 changes: 9 additions & 7 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: 89aa27989b46cb5f5c46967f9ea73f58
docChecksum: 867e0698f3110dba472ddc490d9dcf87
docVersion: 0.4.0
speakeasyVersion: 1.448.2
speakeasyVersion: 1.449.0
generationVersion: 2.467.4
releaseVersion: 0.45.10
configChecksum: 7eeb719cc761ade7315b74f07ad3e9f1
releaseVersion: 0.45.11
configChecksum: 7ab094de84b6f42cb464da871ebbd16d
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-php.git
repoSubDirectory: .
installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-php
Expand Down Expand Up @@ -104,7 +104,6 @@ generatedFiles:
- docs/Models/Operations/GetLintingReportSignedUrlSignedAccess.md
- docs/Models/Operations/GetManifestRequest.md
- docs/Models/Operations/GetManifestResponse.md
- docs/Models/Operations/GetNamespacesRequest.md
- docs/Models/Operations/GetNamespacesResponse.md
- docs/Models/Operations/GetOrganizationRequest.md
- docs/Models/Operations/GetOrganizationResponse.md
Expand Down Expand Up @@ -228,6 +227,7 @@ generatedFiles:
- docs/Models/Shared/CliEvent.md
- docs/Models/Shared/CodeSampleSchemaInput.md
- docs/Models/Shared/CodeSamplesJobStatus.md
- docs/Models/Shared/CompositeSpecMetadata.md
- docs/Models/Shared/Diagnostic.md
- docs/Models/Shared/EmbedAccessTokenResponse.md
- docs/Models/Shared/EmbedToken.md
Expand Down Expand Up @@ -268,6 +268,7 @@ generatedFiles:
- docs/Models/Shared/Relationship.md
- docs/Models/Shared/RemoteDocument.md
- docs/Models/Shared/RemoteSource.md
- docs/Models/Shared/RemoteSourceSubscriptionSettings.md
- docs/Models/Shared/Report.md
- docs/Models/Shared/RequestMetadata.md
- docs/Models/Shared/Revision.md
Expand Down Expand Up @@ -407,7 +408,6 @@ generatedFiles:
- src/Models/Operations/GetLintingReportSignedUrlSignedAccess.php
- src/Models/Operations/GetManifestRequest.php
- src/Models/Operations/GetManifestResponse.php
- src/Models/Operations/GetNamespacesRequest.php
- src/Models/Operations/GetNamespacesResponse.php
- src/Models/Operations/GetOrganizationRequest.php
- src/Models/Operations/GetOrganizationResponse.php
Expand Down Expand Up @@ -531,6 +531,7 @@ generatedFiles:
- src/Models/Shared/CliEvent.php
- src/Models/Shared/CodeSampleSchemaInput.php
- src/Models/Shared/CodeSamplesJobStatus.php
- src/Models/Shared/CompositeSpecMetadata.php
- src/Models/Shared/Diagnostic.php
- src/Models/Shared/EmbedAccessTokenResponse.php
- src/Models/Shared/EmbedToken.php
Expand Down Expand Up @@ -571,6 +572,7 @@ generatedFiles:
- src/Models/Shared/Relationship.php
- src/Models/Shared/RemoteDocument.php
- src/Models/Shared/RemoteSource.php
- src/Models/Shared/RemoteSourceSubscriptionSettings.php
- src/Models/Shared/Report.php
- src/Models/Shared/RequestMetadata.php
- src/Models/Shared/Revision.php
Expand Down Expand Up @@ -1086,7 +1088,7 @@ examples:
default:
application/json: {"message": "<value>", "status_code": 284614}
2XX:
application/json: {"is_composite_spec": true, "items": [{"created_at": "2024-09-16T19:17:04.361Z", "digest": "sha256:6d1ef012b5674ad8a127ecfa9b5e6f5178d171b90ee462846974177fd9bdd39f", "id": "<id>", "namespace_name": "<value>", "tags": ["<value>"], "updated_at": "2023-12-06T05:58:38.953Z"}], "next_page_token": "<value>", "public": false}
application/json: {"items": [{"created_at": "2024-09-16T19:17:04.361Z", "digest": "sha256:6d1ef012b5674ad8a127ecfa9b5e6f5178d171b90ee462846974177fd9bdd39f", "id": "<id>", "namespace_name": "<value>", "tags": ["<value>"], "updated_at": "2023-12-06T05:58:38.953Z"}], "next_page_token": "<value>"}
4XX:
application/json: {"message": "<value>", "status_code": 414389}
getTags:
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.45.10
version: 0.45.11
clientServerStatusCodesAsErrors: true
defaultErrorName: SDKException
flattenGlobalSecurity: true
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.448.2
speakeasyVersion: 1.449.0
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:9b8340b798c2a819427df0dd1baae0dedcb36a20aa6a152164aa91226da47c80
sourceBlobDigest: sha256:79c7d7e46224294fa2c7d414e065a08e86c6e63b0096dcc79903de0890463082
sourceRevisionDigest: sha256:bdd5a0cc3b9f5edd626c1f882ccdf14150ff5e4054de692be95c102aa18d148a
sourceBlobDigest: sha256:2b12b4979b9b8f79ebbb3f572fc5b00c9d70a15d984bd726523934adc07c4951
tags:
- latest
- speakeasy-sdk-regen-1732753018
- speakeasy-sdk-regen-1733185091
- 0.4.0
targets:
php-target:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:9b8340b798c2a819427df0dd1baae0dedcb36a20aa6a152164aa91226da47c80
sourceBlobDigest: sha256:79c7d7e46224294fa2c7d414e065a08e86c6e63b0096dcc79903de0890463082
sourceRevisionDigest: sha256:bdd5a0cc3b9f5edd626c1f882ccdf14150ff5e4054de692be95c102aa18d148a
sourceBlobDigest: sha256:2b12b4979b9b8f79ebbb3f572fc5b00c9d70a15d984bd726523934adc07c4951
codeSamplesNamespace: my-source-php-code-samples
codeSamplesRevisionDigest: sha256:1e005acbd0a9f34a22ea1f9bb517de4641b671d6b12ced2e3ec0a68e4edb5fd6
codeSamplesRevisionDigest: sha256:35c33ce1ef92730f5254baaa21fbece0a7e8eeb2a439a30684727b8051b2d978
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 @@ -1474,4 +1474,14 @@ Based on:
### Generated
- [php v0.45.10] .
### Releases
- [Composer v0.45.10] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.45.10 - .
- [Composer v0.45.10] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.45.10 - .

## 2024-12-03 00:18:08
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.449.0 (2.467.4) https://github.com/speakeasy-api/speakeasy
### Generated
- [php v0.45.11] .
### Releases
- [Composer v0.45.11] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.45.11 - .
8 changes: 0 additions & 8 deletions docs/Models/Operations/GetNamespacesRequest.md

This file was deleted.

9 changes: 9 additions & 0 deletions docs/Models/Shared/CompositeSpecMetadata.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# CompositeSpecMetadata


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `subscriptionId` | *string* | :heavy_check_mark: | The subscription ID for the remote source subscription, if applicable. This indicates that the namespace is created by a remote source and thus is composite. |
| `subscriptionSettings` | [Shared\RemoteSourceSubscriptionSettings](../../Models/Shared/RemoteSourceSubscriptionSettings.md) | :heavy_check_mark: | N/A |
4 changes: 1 addition & 3 deletions docs/Models/Shared/GetRevisionsResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@

| Field | Type | Required | Description |
| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- |
| `isCompositeSpec` | *bool* | :heavy_check_mark: | N/A |
| `items` | array<[Shared\Revision](../../Models/Shared/Revision.md)> | :heavy_check_mark: | N/A |
| `nextPageToken` | *string* | :heavy_check_mark: | N/A |
| `public` | *bool* | :heavy_check_mark: | N/A |
| `nextPageToken` | *string* | :heavy_check_mark: | N/A |
15 changes: 8 additions & 7 deletions docs/Models/Shared/NamespaceT.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ 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 |
| `public` | *?bool* | :heavy_minus_sign: | N/A |
| 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 |
10 changes: 10 additions & 0 deletions docs/Models/Shared/RemoteSourceSubscriptionSettings.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# RemoteSourceSubscriptionSettings


## Fields

| Field | Type | Required | Description |
| -------------------- | -------------------- | -------------------- | -------------------- |
| `baseSpecNamespaces` | array<*string*> | :heavy_check_mark: | N/A |
| `outputNamespace` | *string* | :heavy_check_mark: | N/A |
| `overlayNamespaces` | array<*string*> | :heavy_check_mark: | N/A |
11 changes: 2 additions & 9 deletions docs/sdks/artifacts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ declare(strict_types=1);
require 'vendor/autoload.php';

use Speakeasy\SpeakeasyClientSDK;
use Speakeasy\SpeakeasyClientSDK\Models\Operations;
use Speakeasy\SpeakeasyClientSDK\Models\Shared;

$security = new Shared\Security(
Expand All @@ -204,23 +203,17 @@ $security = new Shared\Security(

$sdk = SpeakeasyClientSDK\SDK::builder()->setSecurity($security)->build();

$request = new Operations\GetNamespacesRequest();


$response = $sdk->artifacts->getNamespaces(
request: $request

);

if ($response->getNamespacesResponse !== null) {
// handle response
}
```

### Parameters

| Parameter | Type | Required | Description |
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| `$request` | [Operations\GetNamespacesRequest](../../Models/Operations/GetNamespacesRequest.md) | :heavy_check_mark: | The request object to use for the request. |

### Response

**[?Operations\GetNamespacesResponse](../../Models/Operations/GetNamespacesResponse.md)**
Expand Down
7 changes: 1 addition & 6 deletions src/Artifacts.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,20 +197,15 @@ public function getManifest(Operations\GetManifestRequest $request): Operations\
/**
* Each namespace contains many revisions.
*
* @param ?Operations\GetNamespacesRequest $request
* @return Operations\GetNamespacesResponse
* @throws \Speakeasy\SpeakeasyClientSDK\Models\Errorors\SDKException
*/
public function getNamespaces(?Operations\GetNamespacesRequest $request = null): Operations\GetNamespacesResponse
public function getNamespaces(): Operations\GetNamespacesResponse
{
$baseUrl = $this->sdkConfiguration->getServerUrl();
$url = Utils\Utils::generateUrl($baseUrl, '/v1/artifacts/namespaces');
$urlOverride = null;
$options = ['http_errors' => false];

$qp = Utils\Utils::getQueryParams(Operations\GetNamespacesRequest::class, $request, $urlOverride, $this->sdkConfiguration->globals);

$options = array_merge_recursive($options, $qp);
$options['headers']['Accept'] = 'application/json';
$options['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
Expand Down
28 changes: 0 additions & 28 deletions src/Models/Operations/GetNamespacesRequest.php

This file was deleted.

Loading

0 comments on commit e9bb6ce

Please sign in to comment.