Skip to content

Commit 2ba0020

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.531.1
1 parent 510f392 commit 2ba0020

100 files changed

Lines changed: 2353 additions & 792 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.speakeasy/gen.lock

Lines changed: 246 additions & 193 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ generation:
1212
oAuth2ClientCredentialsEnabled: false
1313
oAuth2PasswordEnabled: false
1414
php:
15-
version: 0.51.1
15+
version: 0.51.2
1616
additionalDependencies:
1717
autoload: {}
1818
autoload-dev: {}

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.528.1
1+
speakeasyVersion: 1.531.1
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:bdc056eb26c39e31c890a05337e09774afc598d2361fc84d454a5a83a1f3691f
6-
sourceBlobDigest: sha256:7d89bc5d5d174d4b21964c5c8e198e1910b6a2753080cc7c73a8cbede420c980
5+
sourceRevisionDigest: sha256:2699dfe9ec5e5bb114ac91c48cc4fb5b9cacad0c58c8f5b7f7da974437c5c823
6+
sourceBlobDigest: sha256:68f7956d7c719348b690e596d2008eebcfed880cf34e81d540738ab3a939b4fd
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1743639433
9+
- speakeasy-sdk-regen-1744244244
1010
- 0.4.0
1111
targets:
1212
php-target:
1313
source: my-source
1414
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:bdc056eb26c39e31c890a05337e09774afc598d2361fc84d454a5a83a1f3691f
16-
sourceBlobDigest: sha256:7d89bc5d5d174d4b21964c5c8e198e1910b6a2753080cc7c73a8cbede420c980
15+
sourceRevisionDigest: sha256:2699dfe9ec5e5bb114ac91c48cc4fb5b9cacad0c58c8f5b7f7da974437c5c823
16+
sourceBlobDigest: sha256:68f7956d7c719348b690e596d2008eebcfed880cf34e81d540738ab3a939b4fd
1717
codeSamplesNamespace: my-source-php-code-samples
18-
codeSamplesRevisionDigest: sha256:730879fda7552e89b6855bcd397a9c1567d98efe0cd612872e7e8ada007dd57b
18+
codeSamplesRevisionDigest: sha256:c91cd7c6eb62e248258b0c4c77df9b93a7def00b47866e173fd8aecbf944cd51
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 65 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ require 'vendor/autoload.php';
2323

2424
use Speakeasy\SpeakeasyClientSDK;
2525
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
26+
use Speakeasy\SpeakeasyClientSDK\Utils;
2627

2728
$sdk = SpeakeasyClientSDK\SDK::builder()
2829
->setSecurity(
@@ -32,22 +33,19 @@ $sdk = SpeakeasyClientSDK\SDK::builder()
3233
)
3334
->build();
3435

35-
$request = new Shared\RemoteSource(
36-
inputs: [
37-
new Shared\RemoteDocument(
38-
registryUrl: 'https://productive-swine.net',
39-
),
40-
],
41-
output: new Shared\RemoteDocument(
42-
registryUrl: 'https://spiteful-apricot.info',
43-
),
36+
$request = new Shared\PublishingToken(
37+
createdAt: Utils\Utils::parseDateTime('2025-10-25T02:17:15.413Z'),
38+
id: '<id>',
39+
targetId: '<id>',
40+
targetResource: '<value>',
41+
token: '<value>',
4442
);
4543

46-
$response = $sdk->artifacts->createRemoteSource(
44+
$response = $sdk->createPublishingToken(
4745
request: $request
4846
);
4947

50-
if ($response->statusCode === 200) {
48+
if ($response->publishingToken !== null) {
5149
// handle response
5250
}
5351
```
@@ -73,8 +71,8 @@ declare(strict_types=1);
7371
require 'vendor/autoload.php';
7472

7573
use Speakeasy\SpeakeasyClientSDK;
76-
use Speakeasy\SpeakeasyClientSDK\Models\Operations;
7774
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
75+
use Speakeasy\SpeakeasyClientSDK\Utils;
7876

7977
$sdk = SpeakeasyClientSDK\SDK::builder()
8078
->setSecurity(
@@ -84,15 +82,19 @@ $sdk = SpeakeasyClientSDK\SDK::builder()
8482
)
8583
->build();
8684

87-
$request = new Operations\ArchiveNamespaceRequest(
88-
namespaceName: '<value>',
85+
$request = new Shared\PublishingToken(
86+
createdAt: Utils\Utils::parseDateTime('2025-10-25T02:17:15.413Z'),
87+
id: '<id>',
88+
targetId: '<id>',
89+
targetResource: '<value>',
90+
token: '<value>',
8991
);
9092

91-
$response = $sdk->artifacts->setArchived(
93+
$response = $sdk->createPublishingToken(
9294
request: $request
9395
);
9496

95-
if ($response->statusCode === 200) {
97+
if ($response->publishingToken !== null) {
9698
// handle response
9799
}
98100
```
@@ -106,7 +108,6 @@ if ($response->statusCode === 200) {
106108

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

109-
* [setArchived](docs/sdks/artifacts/README.md#setarchived) - Set whether a namespace is archived
110111
* [createRemoteSource](docs/sdks/artifacts/README.md#createremotesource) - Configure a new remote source
111112
* [getBlob](docs/sdks/artifacts/README.md#getblob) - Get blob for a particular digest
112113
* [getManifest](docs/sdks/artifacts/README.md#getmanifest) - Get manifest for a particular reference
@@ -116,21 +117,22 @@ if ($response->statusCode === 200) {
116117
* [listRemoteSources](docs/sdks/artifacts/README.md#listremotesources) - Get remote sources attached to a particular namespace
117118
* [postTags](docs/sdks/artifacts/README.md#posttags) - Add tags to an existing revision
118119
* [preflight](docs/sdks/artifacts/README.md#preflight) - Get access token for communicating with OCI distribution endpoints
120+
* [setArchived](docs/sdks/artifacts/README.md#setarchived) - Set whether a namespace is archived
119121
* [setVisibility](docs/sdks/artifacts/README.md#setvisibility) - Set visibility of a namespace with an existing metadata entry
120122

121123
### [auth](docs/sdks/auth/README.md)
122124

125+
* [getAccess](docs/sdks/auth/README.md#getaccess) - Get access allowances for a particular workspace
123126
* [getAccessToken](docs/sdks/auth/README.md#getaccesstoken) - Get or refresh an access token for the current workspace.
124127
* [getUser](docs/sdks/auth/README.md#getuser) - Get information about the current user.
125-
* [getAccess](docs/sdks/auth/README.md#getaccess) - Get access allowances for a particular workspace
126128
* [validateApiKey](docs/sdks/auth/README.md#validateapikey) - Validate the current api key.
127129

128130
### [codeSamples](docs/sdks/codesamples/README.md)
129131

130132
* [generateCodeSamplePreview](docs/sdks/codesamples/README.md#generatecodesamplepreview) - Generate Code Sample previews from a file and configuration parameters.
131133
* [generateCodeSamplePreviewAsync](docs/sdks/codesamples/README.md#generatecodesamplepreviewasync) - Initiate asynchronous Code Sample preview generation from a file and configuration parameters, receiving an async JobID response for polling.
132-
* [getCodeSamplePreviewAsync](docs/sdks/codesamples/README.md#getcodesamplepreviewasync) - Poll for the result of an asynchronous Code Sample preview generation.
133134
* [get](docs/sdks/codesamples/README.md#get) - Retrieve usage snippets
135+
* [getCodeSamplePreviewAsync](docs/sdks/codesamples/README.md#getcodesamplepreviewasync) - Poll for the result of an asynchronous Code Sample preview generation.
134136

135137
### [events](docs/sdks/events/README.md)
136138

@@ -143,27 +145,27 @@ if ($response->statusCode === 200) {
143145
### [github](docs/sdks/github/README.md)
144146

145147
* [checkAccess](docs/sdks/github/README.md#checkaccess)
146-
* [getAction](docs/sdks/github/README.md#getaction)
147-
* [getSetup](docs/sdks/github/README.md#getsetup)
148148
* [checkPublishingPRs](docs/sdks/github/README.md#checkpublishingprs)
149149
* [checkPublishingSecrets](docs/sdks/github/README.md#checkpublishingsecrets)
150150
* [configureCodeSamples](docs/sdks/github/README.md#configurecodesamples)
151151
* [configureMintlifyRepo](docs/sdks/github/README.md#configuremintlifyrepo)
152152
* [configureTarget](docs/sdks/github/README.md#configuretarget)
153+
* [getAction](docs/sdks/github/README.md#getaction)
154+
* [getSetup](docs/sdks/github/README.md#getsetup)
155+
* [linkGithub](docs/sdks/github/README.md#linkgithub)
153156
* [storePublishingSecrets](docs/sdks/github/README.md#storepublishingsecrets)
154157
* [triggerAction](docs/sdks/github/README.md#triggeraction)
155-
* [linkGithub](docs/sdks/github/README.md#linkgithub)
156158

157159
### [organizations](docs/sdks/organizations/README.md)
158160

161+
* [create](docs/sdks/organizations/README.md#create) - Create an organization
159162
* [createBillingAddOns](docs/sdks/organizations/README.md#createbillingaddons) - Create billing add ons
160163
* [createFreeTrial](docs/sdks/organizations/README.md#createfreetrial) - Create a free trial for an organization
161-
* [create](docs/sdks/organizations/README.md#create) - Create an organization
162164
* [deleteBillingAddOn](docs/sdks/organizations/README.md#deletebillingaddon) - Delete billing add ons
163-
* [getBillingAddOns](docs/sdks/organizations/README.md#getbillingaddons) - Get billing add ons
164165
* [get](docs/sdks/organizations/README.md#get) - Get organization
165-
* [getUsage](docs/sdks/organizations/README.md#getusage) - Get billing usage summary for a particular organization
166166
* [getAll](docs/sdks/organizations/README.md#getall) - Get organizations for a user
167+
* [getBillingAddOns](docs/sdks/organizations/README.md#getbillingaddons) - Get billing add ons
168+
* [getUsage](docs/sdks/organizations/README.md#getusage) - Get billing usage summary for a particular organization
167169

168170
### [reports](docs/sdks/reports/README.md)
169171

@@ -176,6 +178,13 @@ if ($response->statusCode === 200) {
176178
* [createSchemaStoreItem](docs/sdks/schemastore/README.md#createschemastoreitem) - Create a schema in the schema store
177179
* [getSchemaStoreItem](docs/sdks/schemastore/README.md#getschemastoreitem) - Get a OAS schema from the schema store
178180

181+
### [SDK](docs/sdks/sdk/README.md)
182+
183+
* [createPublishingToken](docs/sdks/sdk/README.md#createpublishingtoken) - Create a publishing token for a workspace
184+
* [deletePublishingToken](docs/sdks/sdk/README.md#deletepublishingtoken) - Delete a specific publishing token
185+
* [getPublishingTokenByID](docs/sdks/sdk/README.md#getpublishingtokenbyid) - Get a specific publishing token
186+
* [getPublishingTokenTargetByID](docs/sdks/sdk/README.md#getpublishingtokentargetbyid) - Get a specific publishing token target
187+
* [updatePublishingTokenExpiration](docs/sdks/sdk/README.md#updatepublishingtokenexpiration) - Updates the validitity period of a publishing token
179188

180189
### [shortURLs](docs/sdks/shorturls/README.md)
181190

@@ -198,13 +207,14 @@ if ($response->statusCode === 200) {
198207
* [create](docs/sdks/workspaces/README.md#create) - Create a workspace
199208
* [createToken](docs/sdks/workspaces/README.md#createtoken) - Create a token for a particular workspace
200209
* [deleteToken](docs/sdks/workspaces/README.md#deletetoken) - Delete a token for a particular workspace
201-
* [getByID](docs/sdks/workspaces/README.md#getbyid) - Get workspace
202210
* [get](docs/sdks/workspaces/README.md#get) - Get workspace by context
211+
* [getAll](docs/sdks/workspaces/README.md#getall) - Get workspaces for a user
212+
* [getByID](docs/sdks/workspaces/README.md#getbyid) - Get workspace
203213
* [getFeatureFlags](docs/sdks/workspaces/README.md#getfeatureflags) - Get workspace feature flags
214+
* [getPublishingToken](docs/sdks/workspaces/README.md#getpublishingtoken) - Get publishing tokens for a workspace
204215
* [getSettings](docs/sdks/workspaces/README.md#getsettings) - Get workspace settings
205216
* [getTeam](docs/sdks/workspaces/README.md#getteam) - Get team members for a particular workspace
206217
* [getTokens](docs/sdks/workspaces/README.md#gettokens) - Get tokens for a particular workspace
207-
* [getAll](docs/sdks/workspaces/README.md#getall) - Get workspaces for a user
208218
* [grantAccess](docs/sdks/workspaces/README.md#grantaccess) - Grant a user access to a particular workspace
209219
* [revokeAccess](docs/sdks/workspaces/README.md#revokeaccess) - Revoke a user's access to a particular workspace
210220
* [setFeatureFlags](docs/sdks/workspaces/README.md#setfeatureflags) - Set workspace feature flags
@@ -355,7 +365,7 @@ By default an API error will raise a `Errorors\SDKExceptioon` exception, which h
355365
| `$rawResponse` | *?\Psr\Http\Message\ResponseInterface* | The raw HTTP response |
356366
| `$body` | *string* | The response content |
357367

358-
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:
368+
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 `createPublishingToken` method throws the following exceptions:
359369

360370
| Error Type | Status Code | Content Type |
361371
| ---------------------- | ----------- | ---------------- |
@@ -371,8 +381,8 @@ require 'vendor/autoload.php';
371381

372382
use Speakeasy\SpeakeasyClientSDK;
373383
use Speakeasy\SpeakeasyClientSDK\Models\Errorors;
374-
use Speakeasy\SpeakeasyClientSDK\Models\Operations;
375384
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
385+
use Speakeasy\SpeakeasyClientSDK\Utils;
376386

377387
$sdk = SpeakeasyClientSDK\SDK::builder()
378388
->setSecurity(
@@ -383,15 +393,19 @@ $sdk = SpeakeasyClientSDK\SDK::builder()
383393
->build();
384394

385395
try {
386-
$request = new Operations\ArchiveNamespaceRequest(
387-
namespaceName: '<value>',
396+
$request = new Shared\PublishingToken(
397+
createdAt: Utils\Utils::parseDateTime('2025-10-25T02:17:15.413Z'),
398+
id: '<id>',
399+
targetId: '<id>',
400+
targetResource: '<value>',
401+
token: '<value>',
388402
);
389403

390-
$response = $sdk->artifacts->setArchived(
404+
$response = $sdk->createPublishingToken(
391405
request: $request
392406
);
393407

394-
if ($response->statusCode === 200) {
408+
if ($response->publishingToken !== null) {
395409
// handle response
396410
}
397411
} catch (Errorors\ErrorThrowable $e) {
@@ -423,8 +437,8 @@ declare(strict_types=1);
423437
require 'vendor/autoload.php';
424438

425439
use Speakeasy\SpeakeasyClientSDK;
426-
use Speakeasy\SpeakeasyClientSDK\Models\Operations;
427440
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
441+
use Speakeasy\SpeakeasyClientSDK\Utils;
428442

429443
$sdk = SpeakeasyClientSDK\SDK::builder()
430444
->setServer('prod')
@@ -435,15 +449,19 @@ $sdk = SpeakeasyClientSDK\SDK::builder()
435449
)
436450
->build();
437451

438-
$request = new Operations\ArchiveNamespaceRequest(
439-
namespaceName: '<value>',
452+
$request = new Shared\PublishingToken(
453+
createdAt: Utils\Utils::parseDateTime('2025-10-25T02:17:15.413Z'),
454+
id: '<id>',
455+
targetId: '<id>',
456+
targetResource: '<value>',
457+
token: '<value>',
440458
);
441459

442-
$response = $sdk->artifacts->setArchived(
460+
$response = $sdk->createPublishingToken(
443461
request: $request
444462
);
445463

446-
if ($response->statusCode === 200) {
464+
if ($response->publishingToken !== null) {
447465
// handle response
448466
}
449467
```
@@ -457,8 +475,8 @@ declare(strict_types=1);
457475
require 'vendor/autoload.php';
458476

459477
use Speakeasy\SpeakeasyClientSDK;
460-
use Speakeasy\SpeakeasyClientSDK\Models\Operations;
461478
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
479+
use Speakeasy\SpeakeasyClientSDK\Utils;
462480

463481
$sdk = SpeakeasyClientSDK\SDK::builder()
464482
->setServerURL('https://api.prod.speakeasyapi.dev')
@@ -469,15 +487,19 @@ $sdk = SpeakeasyClientSDK\SDK::builder()
469487
)
470488
->build();
471489

472-
$request = new Operations\ArchiveNamespaceRequest(
473-
namespaceName: '<value>',
490+
$request = new Shared\PublishingToken(
491+
createdAt: Utils\Utils::parseDateTime('2025-10-25T02:17:15.413Z'),
492+
id: '<id>',
493+
targetId: '<id>',
494+
targetResource: '<value>',
495+
token: '<value>',
474496
);
475497

476-
$response = $sdk->artifacts->setArchived(
498+
$response = $sdk->createPublishingToken(
477499
request: $request
478500
);
479501

480-
if ($response->statusCode === 200) {
502+
if ($response->publishingToken !== null) {
481503
// handle response
482504
}
483505
```

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1704,4 +1704,14 @@ Based on:
17041704
### Generated
17051705
- [php v0.51.1] .
17061706
### Releases
1707-
- [Composer v0.51.1] https://packagist.org/packages/ian-speakeasy/speakeasy-client-sdk-php#v0.51.1 - .
1707+
- [Composer v0.51.1] https://packagist.org/packages/ian-speakeasy/speakeasy-client-sdk-php#v0.51.1 - .
1708+
1709+
## 2025-04-10 00:17:07
1710+
### Changes
1711+
Based on:
1712+
- OpenAPI Doc
1713+
- Speakeasy CLI 1.531.1 (2.568.5) https://github.com/speakeasy-api/speakeasy
1714+
### Generated
1715+
- [php v0.51.2] .
1716+
### Releases
1717+
- [Composer v0.51.2] https://packagist.org/packages/ian-speakeasy/speakeasy-client-sdk-php#v0.51.2 - .

USAGE.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ declare(strict_types=1);
55
require 'vendor/autoload.php';
66

77
use Speakeasy\SpeakeasyClientSDK;
8-
use Speakeasy\SpeakeasyClientSDK\Models\Operations;
98
use Speakeasy\SpeakeasyClientSDK\Models\Shared;
9+
use Speakeasy\SpeakeasyClientSDK\Utils;
1010

1111
$sdk = SpeakeasyClientSDK\SDK::builder()
1212
->setSecurity(
@@ -16,15 +16,19 @@ $sdk = SpeakeasyClientSDK\SDK::builder()
1616
)
1717
->build();
1818

19-
$request = new Operations\ArchiveNamespaceRequest(
20-
namespaceName: '<value>',
19+
$request = new Shared\PublishingToken(
20+
createdAt: Utils\Utils::parseDateTime('2025-10-25T02:17:15.413Z'),
21+
id: '<id>',
22+
targetId: '<id>',
23+
targetResource: '<value>',
24+
token: '<value>',
2125
);
2226

23-
$response = $sdk->artifacts->setArchived(
27+
$response = $sdk->createPublishingToken(
2428
request: $request
2529
);
2630

27-
if ($response->statusCode === 200) {
31+
if ($response->publishingToken !== null) {
2832
// handle response
2933
}
3034
```

docs/Models/Operations/ArchiveNamespaceRequest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55

66
| Field | Type | Required | Description |
77
| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
8-
| `namespaceName` | *string* | :heavy_check_mark: | N/A |
9-
| `requestBody` | [?Operations\ArchiveNamespaceRequestBody](../../Models/Operations/ArchiveNamespaceRequestBody.md) | :heavy_minus_sign: | Archived status |
8+
| `requestBody` | [?Operations\ArchiveNamespaceRequestBody](../../Models/Operations/ArchiveNamespaceRequestBody.md) | :heavy_minus_sign: | Archived status |
9+
| `namespaceName` | *string* | :heavy_check_mark: | N/A |

0 commit comments

Comments
 (0)