Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.476.2
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Jan 28, 2025
1 parent 60c4ebf commit c89960f
Show file tree
Hide file tree
Showing 18 changed files with 360 additions and 72 deletions.
27 changes: 21 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
lockVersion: 2.0.0
id: db1bb4da-054f-485f-8c6e-d42db3f1da90
management:
docChecksum: 8e0ff093baf67c9e2001a9f810f355de
docChecksum: af467caf61bea274c32dd872e84f602e
docVersion: 0.4.0
speakeasyVersion: 1.470.1
generationVersion: 2.493.34
releaseVersion: 0.47.6
configChecksum: e33657152519b98a43d4ee989637ec18
speakeasyVersion: 1.476.2
generationVersion: 2.495.1
releaseVersion: 0.48.0
configChecksum: 5c19f838aa948a74fb271f1bf9e035a8
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-php.git
repoSubDirectory: .
installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-php
published: true
features:
php:
core: 3.7.9
constsAndDefaults: 0.2.0
core: 3.7.10
deprecations: 2.81.1
globalSecurity: 2.81.7
globalServerURLs: 2.82.1
Expand All @@ -31,6 +32,9 @@ generatedFiles:
- docs/Models/Errorors/Error.md
- docs/Models/Operations/ActivateSubscriptionNamespaceRequest.md
- docs/Models/Operations/ActivateSubscriptionNamespaceResponse.md
- docs/Models/Operations/ArchiveNamespaceRequest.md
- docs/Models/Operations/ArchiveNamespaceRequestBody.md
- docs/Models/Operations/ArchiveNamespaceResponse.md
- docs/Models/Operations/CheckGithubAccessRequest.md
- docs/Models/Operations/CheckGithubAccessResponse.md
- docs/Models/Operations/CreateFreeTrialResponse.md
Expand Down Expand Up @@ -264,6 +268,9 @@ generatedFiles:
- src/Models/Errorors/SDKException.php
- src/Models/Operations/ActivateSubscriptionNamespaceRequest.php
- src/Models/Operations/ActivateSubscriptionNamespaceResponse.php
- src/Models/Operations/ArchiveNamespaceRequest.php
- src/Models/Operations/ArchiveNamespaceRequestBody.php
- src/Models/Operations/ArchiveNamespaceResponse.php
- src/Models/Operations/CheckGithubAccessRequest.php
- src/Models/Operations/CheckGithubAccessResponse.php
- src/Models/Operations/CreateFreeTrialResponse.php
Expand Down Expand Up @@ -1071,5 +1078,13 @@ examples:
application/json: [{"created_at": "2024-01-24T23:49:11.608Z", "execution_id": "<id>", "id": "<id>", "interaction_type": "LINT", "local_started_at": "2023-03-09T07:00:10.489Z", "speakeasy_api_key_name": "<value>", "speakeasy_version": "<value>", "success": true, "workspace_id": "<id>"}]
5XX:
application/json: {"message": "<value>", "status_code": 238575}
archiveNamespace:
speakeasy-default-archive-namespace:
parameters:
path:
namespace_name: "<value>"
responses:
4XX:
application/json: {"message": "<value>", "status_code": 334009}
examplesVersion: 1.0.0
generatedTests: {}
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ generation:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
php:
version: 0.47.6
version: 0.48.0
additionalDependencies:
autoload: {}
autoload-dev: {}
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.470.1
speakeasyVersion: 1.476.2
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:faaba1071b8211089170d62216fb0528db5d373993977552eb0b20727dfc34fd
sourceBlobDigest: sha256:fdce65fc06375b5ac8b51a49e68853e76ba820d057de83e9d0c608a25af78b7d
sourceRevisionDigest: sha256:460508c20e2184e27dc8a8f2e11a01d48c65d209f8db7063fb88585fb598ae5c
sourceBlobDigest: sha256:c06cc83921f8f24dfc098c977539857c3b7ff65302887ea14acb0fe3d5b17c62
tags:
- latest
- speakeasy-sdk-regen-1737591343
- speakeasy-sdk-regen-1738023358
- 0.4.0
targets:
php-target:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:faaba1071b8211089170d62216fb0528db5d373993977552eb0b20727dfc34fd
sourceBlobDigest: sha256:fdce65fc06375b5ac8b51a49e68853e76ba820d057de83e9d0c608a25af78b7d
sourceRevisionDigest: sha256:460508c20e2184e27dc8a8f2e11a01d48c65d209f8db7063fb88585fb598ae5c
sourceBlobDigest: sha256:c06cc83921f8f24dfc098c977539857c3b7ff65302887ea14acb0fe3d5b17c62
codeSamplesNamespace: my-source-php-code-samples
codeSamplesRevisionDigest: sha256:2e7ad8921f68c8fc8e7187ce1f9155aba3871b47342dd3441264a97b7a5fba16
codeSamplesRevisionDigest: sha256:b449aa1d4d889c5d97d335df0a49840e2ad44fd602a04b8d5bb7c5c346463fb0
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
59 changes: 18 additions & 41 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ declare(strict_types=1);
require 'vendor/autoload.php';

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

$sdk = SpeakeasyClientSDK\SDK::builder()
Expand All @@ -83,18 +84,11 @@ $sdk = SpeakeasyClientSDK\SDK::builder()
)
->build();

$request = new Shared\RemoteSource(
inputs: [
new Shared\RemoteDocument(
registryUrl: 'https://productive-swine.net',
),
],
output: new Shared\RemoteDocument(
registryUrl: 'https://spiteful-apricot.info',
),
$request = new Operations\ArchiveNamespaceRequest(
namespaceName: '<value>',
);

$response = $sdk->artifacts->createRemoteSource(
$response = $sdk->artifacts->setArchived(
request: $request
);

Expand All @@ -112,6 +106,7 @@ if ($response->statusCode === 200) {

### [artifacts](docs/sdks/artifacts/README.md)

* [setArchived](docs/sdks/artifacts/README.md#setarchived) - Set whether a namespace is archived
* [createRemoteSource](docs/sdks/artifacts/README.md#createremotesource) - Configure a new remote source
* [getBlob](docs/sdks/artifacts/README.md#getblob) - Get blob for a particular digest
* [getManifest](docs/sdks/artifacts/README.md#getmanifest) - Get manifest for a particular reference
Expand Down Expand Up @@ -351,7 +346,7 @@ By default an API error will raise a `Errorors\SDKException` exception, which ha
| `$rawResponse` | *?\Psr\Http\Message\ResponseInterface* | The raw HTTP response |
| `$body` | *string* | The response content |

When custom error responses are specified for an operation, the SDK may also throw their associated exception. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `createRemoteSource` method throws the following exceptions:
When custom error responses are specified for an operation, the SDK may also throw their associated exception. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `setArchived` method throws the following exceptions:

| Error Type | Status Code | Content Type |
| --------------------- | ----------- | ---------------- |
Expand All @@ -366,6 +361,7 @@ declare(strict_types=1);
require 'vendor/autoload.php';

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

$sdk = SpeakeasyClientSDK\SDK::builder()
Expand All @@ -377,18 +373,11 @@ $sdk = SpeakeasyClientSDK\SDK::builder()
->build();

try {
$request = new Shared\RemoteSource(
inputs: [
new Shared\RemoteDocument(
registryUrl: 'https://productive-swine.net',
),
],
output: new Shared\RemoteDocument(
registryUrl: 'https://spiteful-apricot.info',
),
$request = new Operations\ArchiveNamespaceRequest(
namespaceName: '<value>',
);

$response = $sdk->artifacts->createRemoteSource(
$response = $sdk->artifacts->setArchived(
request: $request
);

Expand Down Expand Up @@ -424,6 +413,7 @@ declare(strict_types=1);
require 'vendor/autoload.php';

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

$sdk = SpeakeasyClientSDK\SDK::builder()
Expand All @@ -435,18 +425,11 @@ $sdk = SpeakeasyClientSDK\SDK::builder()
)
->build();

$request = new Shared\RemoteSource(
inputs: [
new Shared\RemoteDocument(
registryUrl: 'https://productive-swine.net',
),
],
output: new Shared\RemoteDocument(
registryUrl: 'https://spiteful-apricot.info',
),
$request = new Operations\ArchiveNamespaceRequest(
namespaceName: '<value>',
);

$response = $sdk->artifacts->createRemoteSource(
$response = $sdk->artifacts->setArchived(
request: $request
);

Expand All @@ -464,6 +447,7 @@ declare(strict_types=1);
require 'vendor/autoload.php';

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

$sdk = SpeakeasyClientSDK\SDK::builder()
Expand All @@ -475,18 +459,11 @@ $sdk = SpeakeasyClientSDK\SDK::builder()
)
->build();

$request = new Shared\RemoteSource(
inputs: [
new Shared\RemoteDocument(
registryUrl: 'https://productive-swine.net',
),
],
output: new Shared\RemoteDocument(
registryUrl: 'https://spiteful-apricot.info',
),
$request = new Operations\ArchiveNamespaceRequest(
namespaceName: '<value>',
);

$response = $sdk->artifacts->createRemoteSource(
$response = $sdk->artifacts->setArchived(
request: $request
);

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1614,4 +1614,14 @@ Based on:
### Generated
- [php v0.47.6] .
### Releases
- [Composer v0.47.6] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.47.6 - .
- [Composer v0.47.6] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.47.6 - .

## 2025-01-28 00:15:43
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.476.2 (2.495.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [php v0.48.0] .
### Releases
- [Composer v0.48.0] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.48.0 - .
14 changes: 4 additions & 10 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ declare(strict_types=1);
require 'vendor/autoload.php';

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

$sdk = SpeakeasyClientSDK\SDK::builder()
Expand All @@ -15,18 +16,11 @@ $sdk = SpeakeasyClientSDK\SDK::builder()
)
->build();

$request = new Shared\RemoteSource(
inputs: [
new Shared\RemoteDocument(
registryUrl: 'https://productive-swine.net',
),
],
output: new Shared\RemoteDocument(
registryUrl: 'https://spiteful-apricot.info',
),
$request = new Operations\ArchiveNamespaceRequest(
namespaceName: '<value>',
);

$response = $sdk->artifacts->createRemoteSource(
$response = $sdk->artifacts->setArchived(
request: $request
);

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


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
| `namespaceName` | *string* | :heavy_check_mark: | N/A |
| `requestBody` | [?Operations\ArchiveNamespaceRequestBody](../../Models/Operations/ArchiveNamespaceRequestBody.md) | :heavy_minus_sign: | Archived status |
10 changes: 10 additions & 0 deletions docs/Models/Operations/ArchiveNamespaceRequestBody.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# ArchiveNamespaceRequestBody

Archived status


## Fields

| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `archived` | *?bool* | :heavy_minus_sign: | N/A |
10 changes: 10 additions & 0 deletions docs/Models/Operations/ArchiveNamespaceResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# ArchiveNamespaceResponse


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
1 change: 1 addition & 0 deletions docs/Models/Shared/NamespaceT.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ A namespace contains many revisions.
| `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 |
| `archivedAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | 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 |
Loading

0 comments on commit c89960f

Please sign in to comment.