diff --git a/.fern/metadata.json b/.fern/metadata.json index 527cfb7b..7f17ec2e 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -11,10 +11,10 @@ "homepage": "https://www.cloudpdf.com" } }, - "originGitCommit": "3a88df90980e5c0546a5ebbfd1252d8fca77ff9b", + "originGitCommit": "0606e988ebff3773183ef02e0a820c36b3a25f8d", "originGitCommitIsDirty": false, "invokedBy": "ci", - "requestedVersion": "3.0.0-alpha.18", + "requestedVersion": "3.0.0-alpha.19", "ciProvider": "github", - "sdkVersion": "3.0.0-alpha.18" + "sdkVersion": "3.0.0-alpha.19" } \ No newline at end of file diff --git a/cloudpdf-generation.json b/cloudpdf-generation.json index 1e4a1c70..5bb4c58e 100644 --- a/cloudpdf-generation.json +++ b/cloudpdf-generation.json @@ -1,12 +1,12 @@ { "language": "php", - "canonicalVersion": "3.0.0-next.18", - "sdkVersion": "3.0.0-alpha.18", + "canonicalVersion": "3.0.0-next.19", + "sdkVersion": "3.0.0-alpha.19", "source": { "repository": "embedpdf/embed-pdf-viewer", "openapi": "cloudpdf/contract/openapi.json", - "openapiSha256": "ad2a3baa628061e7b3e8b597cfd15bcda7f103d0f829cb01388a0fed6c4f5873", - "gitCommit": "3a88df90980e5c0546a5ebbfd1252d8fca77ff9b", + "openapiSha256": "e88e02ed71f422ad08b2393abeda474e8dcf6707b6e753af74ba2f40da8e7d6b", + "gitCommit": "0606e988ebff3773183ef02e0a820c36b3a25f8d", "gitCommitIsDirty": false }, "fern": { diff --git a/reference.md b/reference.md index 4c9ed2b2..f92f75b8 100644 --- a/reference.md +++ b/reference.md @@ -519,8 +519,8 @@ $client->doc->text( -## Shares -
$client->shares->exchange($request) -> ?SharesExchange200Response +## Grants +
$client->grants->exchange($request) -> ?GrantsExchange200Response
@@ -532,7 +532,7 @@ $client->doc->text(
-Unauthenticated, but requires a browser Origin header, checked against the grant allowlist. Unknown, revoked, and disabled tokens are indistinguishable (404). Passphrase-protected grants return 422 SharePasswordRequired until `password` is supplied. A link that asks its visitors who they are on open returns 422 VisitorIdentityRequired until the required answers are given; `error.details` carries `fields` (what the link asks), `missing`, `invalid`, `purpose` and `privacyUrl`. A link that asks before the first change issues the session at once with `visitor.identityRequest`, and writes answer 403 VisitorIdentityRequired with the same details until the visitor exchanges again with their answers. Answers that can not be taken answer 422 on any link. Mounted only when the deployment can sign (HS256 mode). +Unauthenticated, but requires a browser Origin header, checked against the grant allowlist. Unknown, deleted, paused and archived grants are indistinguishable (404). Passphrase-protected grants return 422 GrantPassphraseRequired until `passphrase` is supplied. A grant that asks its visitors who they are on open returns 422 VisitorIdentityRequired until the required answers are given; `error.details` carries `fields` (what the grant asks), `missing`, `invalid`, `purpose` and `privacyUrl`. A grant that asks before the first change issues the session at once with `visitor.identityRequest`, and writes answer 403 VisitorIdentityRequired with the same details until the visitor exchanges again with their answers. Answers that can not be taken answer 422 on any grant. Mounted only when the deployment can sign (HS256 mode).
@@ -547,9 +547,9 @@ Unauthenticated, but requires a browser Origin header, checked against the grant
```php -$client->shares->exchange( - new SharesExchangeRequest([ - 'shareToken' => 'shareToken', +$client->grants->exchange( + new GrantsExchangeRequest([ + 'grant' => 'grant', ]), ); ``` @@ -566,7 +566,7 @@ $client->shares->exchange(
-**$shareToken:** `string` +**$grant:** `string`
@@ -574,7 +574,7 @@ $client->shares->exchange(
-**$password:** `?string` +**$passphrase:** `?string`
@@ -598,7 +598,7 @@ $client->shares->exchange(
-**$visitorIdentity:** `?SharesExchangeRequestVisitorIdentity` +**$visitorIdentity:** `?GrantsExchangeRequestVisitorIdentity`
@@ -610,7 +610,7 @@ $client->shares->exchange(
-
$client->shares->list($tenantId, $request) -> ?SharesList200Response +
$client->grants->list($tenantId, $request) -> ?GrantsList200Response
@@ -623,9 +623,9 @@ $client->shares->exchange(
```php -$client->shares->list( +$client->grants->list( 'tenantId', - new ListSharesRequest([]), + new ListGrantsRequest([]), ); ```
@@ -685,7 +685,7 @@ $client->shares->list(
-
$client->shares->create($tenantId, $request) -> ?SharesCreate200Response +
$client->grants->create($tenantId, $request) -> ?GrantsCreate200Response
@@ -697,7 +697,7 @@ $client->shares->list(
-The returned share id is the public share token. Mounted only when the deployment can sign (HS256 mode) — exchange mints session JWTs, so grants exist only where minting does. +The returned id is what a link page or an embed opens. Mounted only when the deployment can sign (HS256 mode) — exchange mints session JWTs, so grants exist only where minting does.
@@ -712,9 +712,9 @@ The returned share id is the public share token. Mounted only when the deploymen
```php -$client->shares->create( +$client->grants->create( 'tenantId', - new SharesCreateRequest([ + new GrantsCreateRequest([ 'docId' => 'docId', 'scope' => [ 'scope', @@ -751,6 +751,14 @@ $client->shares->create(
+**$name:** `?string` + +
+
+ +
+
+ **$layerMode:** `?string`
@@ -783,7 +791,7 @@ $client->shares->create(
-**$visitorIdentity:** `?SharesCreateRequestVisitorIdentity` +**$visitorIdentity:** `?GrantsCreateRequestVisitorIdentity`
@@ -815,7 +823,7 @@ $client->shares->create(
-**$password:** `?string` +**$passphrase:** `?string`
@@ -843,7 +851,7 @@ $client->shares->create(
-
$client->shares->get($tenantId, $shareId) -> ?SharesGet200Response +
$client->grants->get($tenantId, $grantId) -> ?GrantsGet200Response
@@ -856,9 +864,9 @@ $client->shares->create(
```php -$client->shares->get( +$client->grants->get( 'tenantId', - 'shareId', + 'grantId', ); ```
@@ -882,7 +890,7 @@ $client->shares->get(
-**$shareId:** `string` +**$grantId:** `string`
@@ -894,7 +902,7 @@ $client->shares->get(
-
$client->shares->delete($tenantId, $shareId) +
$client->grants->delete($tenantId, $grantId)
@@ -907,9 +915,9 @@ $client->shares->get(
```php -$client->shares->delete( +$client->grants->delete( 'tenantId', - 'shareId', + 'grantId', ); ```
@@ -933,7 +941,7 @@ $client->shares->delete(
-**$shareId:** `string` +**$grantId:** `string`
@@ -945,7 +953,7 @@ $client->shares->delete(
-
$client->shares->update($tenantId, $shareId, $request) -> ?SharesUpdate200Response +
$client->grants->update($tenantId, $grantId, $request) -> ?GrantsUpdate200Response
@@ -958,10 +966,10 @@ $client->shares->delete(
```php -$client->shares->update( +$client->grants->update( 'tenantId', - 'shareId', - new SharesUpdateRequest([]), + 'grantId', + new GrantsUpdateRequest([]), ); ```
@@ -985,7 +993,15 @@ $client->shares->update(
-**$shareId:** `string` +**$grantId:** `string` + +
+
+ +
+
+ +**$name:** `?string`
@@ -1025,7 +1041,7 @@ $client->shares->update(
-**$visitorIdentity:** `?SharesUpdateRequestVisitorIdentity` +**$visitorIdentity:** `?GrantsUpdateRequestVisitorIdentity`
@@ -1057,7 +1073,7 @@ $client->shares->update(
-**$password:** `?string` +**$passphrase:** `?string`
@@ -1093,7 +1109,7 @@ $client->shares->update(
-
$client->shares->archive($tenantId, $shareId) -> ?SharesArchive200Response +
$client->grants->archive($tenantId, $grantId) -> ?GrantsArchive200Response
@@ -1105,7 +1121,7 @@ $client->shares->update(
-Archiving is final: an archived link never exchanges again, and to share again you create a new link. Pausing (`disabled`) is the reversible stop. An archived link no longer counts as using its shared layer, so that layer can be deleted. +Archiving is final: an archived grant never exchanges again, and to give access again you create a new grant. Pausing (`disabled`) is the reversible stop. An archived grant no longer counts as using its shared layer, so that layer can be deleted.
@@ -1120,9 +1136,9 @@ Archiving is final: an archived link never exchanges again, and to share again y
```php -$client->shares->archive( +$client->grants->archive( 'tenantId', - 'shareId', + 'grantId', ); ```
@@ -1146,7 +1162,7 @@ $client->shares->archive(
-**$shareId:** `string` +**$grantId:** `string`
@@ -1478,7 +1494,7 @@ $client->tenants->suspend(
-Facts only — no limits or billing state. Views count share exchanges plus authorized /v1/access grants, deduplicated across the two. +Facts only — no limits or billing state. Views count grant exchanges plus authorized /v1/access requests, deduplicated across the two.
@@ -2506,7 +2522,7 @@ $client->folders->get(
-Without recursive, a folder with anything inside is refused: 409 Conflict with `details.reason` `not-empty` and what it holds, counted over every level below, in `details.folders` and `details.documents`. With recursive=true, the folder and every folder under it go at once, and every document in them stops opening, leaves every list and stops answering its share links at once; their stored files and links are removed in the background. Uploads into those folders that have not committed cannot commit. +Without recursive, a folder with anything inside is refused: 409 Conflict with `details.reason` `not-empty` and what it holds, counted over every level below, in `details.folders` and `details.documents`. With recursive=true, the folder and every folder under it go at once, and every document in them stops opening, leaves every list and stops answering its grants at once; their stored files and grants are removed in the background. Uploads into those folders that have not committed cannot commit.
@@ -6367,7 +6383,7 @@ $client->documents->layers->list(
-**$shareId:** `?string` +**$grantId:** `?string`
@@ -6439,8 +6455,8 @@ $client->documents->layers->delete(
-## Shares Visitors -
$client->shares->visitors->list($tenantId, $shareId, $request) -> ?SharesVisitorsList200Response +## Grants Visitors +
$client->grants->visitors->list($tenantId, $grantId, $request) -> ?GrantsVisitorsList200Response
@@ -6452,7 +6468,7 @@ $client->documents->layers->delete(
-An archived link's visitors are listed too. +An archived grant's visitors are listed too.
@@ -6467,9 +6483,9 @@ An archived link's visitors are listed too.
```php -$client->shares->visitors->list( +$client->grants->visitors->list( 'tenantId', - 'shareId', + 'grantId', new ListVisitorsRequest([]), ); ``` @@ -6494,7 +6510,7 @@ $client->shares->visitors->list(
-**$shareId:** `string` +**$grantId:** `string`
@@ -6522,7 +6538,7 @@ $client->shares->visitors->list(
-
$client->shares->visitors->delete($tenantId, $shareId, $visitorId) +
$client->grants->visitors->delete($tenantId, $grantId, $visitorId)
@@ -6549,9 +6565,9 @@ Their handle brings them back as a new visitor, who is asked again. Deleting a v
```php -$client->shares->visitors->delete( +$client->grants->visitors->delete( 'tenantId', - 'shareId', + 'grantId', 'visitorId', ); ``` @@ -6576,7 +6592,7 @@ $client->shares->visitors->delete(
-**$shareId:** `string` +**$grantId:** `string`
diff --git a/src/CloudPDFClient.php b/src/CloudPDFClient.php index 5d6c1a20..54a2e51e 100644 --- a/src/CloudPDFClient.php +++ b/src/CloudPDFClient.php @@ -4,7 +4,7 @@ use CloudPDF\Deployment\DeploymentClient; use CloudPDF\Doc\DocClient; -use CloudPDF\Shares\SharesClient; +use CloudPDF\Grants\GrantsClient; use CloudPDF\Tenants\TenantsClient; use CloudPDF\Documents\DocumentsClient; use CloudPDF\Folders\FoldersClient; @@ -25,9 +25,9 @@ class CloudPDFClient public DocClient $doc; /** - * @var SharesClient $shares + * @var GrantsClient $grants */ - public SharesClient $shares; + public GrantsClient $grants; /** * @var TenantsClient $tenants @@ -82,8 +82,8 @@ public function __construct( $defaultHeaders = [ 'X-Fern-Language' => 'PHP', 'X-Fern-SDK-Name' => 'CloudPDF', - 'X-Fern-SDK-Version' => '3.0.0-alpha.18', - 'User-Agent' => 'cloudpdf/sdk/3.0.0-alpha.18', + 'X-Fern-SDK-Version' => '3.0.0-alpha.19', + 'User-Agent' => 'cloudpdf/sdk/3.0.0-alpha.19', ]; if ($token != null) { $defaultHeaders['Authorization'] = "Bearer $token"; @@ -102,7 +102,7 @@ public function __construct( $this->deployment = new DeploymentClient($this->client, $this->options); $this->doc = new DocClient($this->client, $this->options); - $this->shares = new SharesClient($this->client, $this->options); + $this->grants = new GrantsClient($this->client, $this->options); $this->tenants = new TenantsClient($this->client, $this->options); $this->documents = new DocumentsClient($this->client, $this->options); $this->folders = new FoldersClient($this->client, $this->options); diff --git a/src/Documents/Layers/LayersClient.php b/src/Documents/Layers/LayersClient.php index c22a1709..57430619 100644 --- a/src/Documents/Layers/LayersClient.php +++ b/src/Documents/Layers/LayersClient.php @@ -84,8 +84,8 @@ public function list(string $tenantId, string $id, ListLayersRequest $request = if ($request->cursor != null) { $query['cursor'] = $request->cursor; } - if ($request->shareId != null) { - $query['shareId'] = $request->shareId; + if ($request->grantId != null) { + $query['grantId'] = $request->grantId; } try { $response = $this->client->sendRequest( diff --git a/src/Documents/Layers/Requests/ListLayersRequest.php b/src/Documents/Layers/Requests/ListLayersRequest.php index 0538addf..e082f3f6 100644 --- a/src/Documents/Layers/Requests/ListLayersRequest.php +++ b/src/Documents/Layers/Requests/ListLayersRequest.php @@ -17,15 +17,15 @@ class ListLayersRequest extends JsonSerializableType public ?string $cursor; /** - * @var ?string $shareId + * @var ?string $grantId */ - public ?string $shareId; + public ?string $grantId; /** * @param array{ * limit?: ?int, * cursor?: ?string, - * shareId?: ?string, + * grantId?: ?string, * } $values */ public function __construct( @@ -33,6 +33,6 @@ public function __construct( ) { $this->limit = $values['limit'] ?? null; $this->cursor = $values['cursor'] ?? null; - $this->shareId = $values['shareId'] ?? null; + $this->grantId = $values['grantId'] ?? null; } } diff --git a/src/Folders/FoldersClient.php b/src/Folders/FoldersClient.php index d9765fd8..ee7ab140 100644 --- a/src/Folders/FoldersClient.php +++ b/src/Folders/FoldersClient.php @@ -238,7 +238,7 @@ public function get(string $tenantId, string $folderId, ?array $options = null): } /** - * Without recursive, a folder with anything inside is refused: 409 Conflict with `details.reason` `not-empty` and what it holds, counted over every level below, in `details.folders` and `details.documents`. With recursive=true, the folder and every folder under it go at once, and every document in them stops opening, leaves every list and stops answering its share links at once; their stored files and links are removed in the background. Uploads into those folders that have not committed cannot commit. + * Without recursive, a folder with anything inside is refused: 409 Conflict with `details.reason` `not-empty` and what it holds, counted over every level below, in `details.folders` and `details.documents`. With recursive=true, the folder and every folder under it go at once, and every document in them stops opening, leaves every list and stops answering its grants at once; their stored files and grants are removed in the background. Uploads into those folders that have not committed cannot commit. * * Example: * ```php diff --git a/src/Shares/SharesClient.php b/src/Grants/GrantsClient.php similarity index 74% rename from src/Shares/SharesClient.php rename to src/Grants/GrantsClient.php index dd3870f9..45d3e8aa 100644 --- a/src/Shares/SharesClient.php +++ b/src/Grants/GrantsClient.php @@ -1,28 +1,28 @@ shares->exchange( - * new SharesExchangeRequest([ - * 'shareToken' => 'shareToken', + * $client->grants->exchange( + * new GrantsExchangeRequest([ + * 'grant' => 'grant', * ]), * ); * ``` * - * @param SharesExchangeRequest $request + * @param GrantsExchangeRequest $request * @param ?array{ * baseUrl?: string, * maxRetries?: int, @@ -85,18 +85,18 @@ public function __construct( * queryParameters?: array, * bodyProperties?: array, * } $options - * @return ?SharesExchange200Response + * @return ?GrantsExchange200Response * @throws CloudPDFException * @throws CloudPDFApiException */ - public function exchange(SharesExchangeRequest $request, ?array $options = null): ?SharesExchange200Response + public function exchange(GrantsExchangeRequest $request, ?array $options = null): ?GrantsExchange200Response { $options = array_merge($this->options, $options ?? []); try { $response = $this->client->sendRequest( new JsonApiRequest( baseUrl: $options['baseUrl'] ?? $this->client->options['baseUrl'] ?? '', - path: "v1/share-sessions", + path: "v1/grant-sessions", method: HttpMethod::POST, body: $request, ), @@ -108,7 +108,7 @@ public function exchange(SharesExchangeRequest $request, ?array $options = null) if (empty($json)) { return null; } - return SharesExchange200Response::fromJson($json); + return GrantsExchange200Response::fromJson($json); } } catch (JsonException $e) { throw new CloudPDFException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); @@ -125,14 +125,14 @@ public function exchange(SharesExchangeRequest $request, ?array $options = null) /** * Example: * ```php - * $client->shares->list( + * $client->grants->list( * 'tenantId', - * new ListSharesRequest([]), + * new ListGrantsRequest([]), * ); * ``` * * @param string $tenantId - * @param ListSharesRequest $request + * @param ListGrantsRequest $request * @param ?array{ * baseUrl?: string, * maxRetries?: int, @@ -141,11 +141,11 @@ public function exchange(SharesExchangeRequest $request, ?array $options = null) * queryParameters?: array, * bodyProperties?: array, * } $options - * @return ?SharesList200Response + * @return ?GrantsList200Response * @throws CloudPDFException * @throws CloudPDFApiException */ - public function list(string $tenantId, ListSharesRequest $request = new ListSharesRequest(), ?array $options = null): ?SharesList200Response + public function list(string $tenantId, ListGrantsRequest $request = new ListGrantsRequest(), ?array $options = null): ?GrantsList200Response { $options = array_merge($this->options, $options ?? []); $query = []; @@ -165,7 +165,7 @@ public function list(string $tenantId, ListSharesRequest $request = new ListShar $response = $this->client->sendRequest( new JsonApiRequest( baseUrl: $options['baseUrl'] ?? $this->client->options['baseUrl'] ?? '', - path: "v1/tenants/{$tenantId}/shares", + path: "v1/tenants/{$tenantId}/grants", method: HttpMethod::GET, query: $query, ), @@ -177,7 +177,7 @@ public function list(string $tenantId, ListSharesRequest $request = new ListShar if (empty($json)) { return null; } - return SharesList200Response::fromJson($json); + return GrantsList200Response::fromJson($json); } } catch (JsonException $e) { throw new CloudPDFException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); @@ -192,13 +192,13 @@ public function list(string $tenantId, ListSharesRequest $request = new ListShar } /** - * The returned share id is the public share token. Mounted only when the deployment can sign (HS256 mode) — exchange mints session JWTs, so grants exist only where minting does. + * The returned id is what a link page or an embed opens. Mounted only when the deployment can sign (HS256 mode) — exchange mints session JWTs, so grants exist only where minting does. * * Example: * ```php - * $client->shares->create( + * $client->grants->create( * 'tenantId', - * new SharesCreateRequest([ + * new GrantsCreateRequest([ * 'docId' => 'docId', * 'scope' => [ * 'scope', @@ -208,7 +208,7 @@ public function list(string $tenantId, ListSharesRequest $request = new ListShar * ``` * * @param string $tenantId - * @param SharesCreateRequest $request + * @param GrantsCreateRequest $request * @param ?array{ * baseUrl?: string, * maxRetries?: int, @@ -217,18 +217,18 @@ public function list(string $tenantId, ListSharesRequest $request = new ListShar * queryParameters?: array, * bodyProperties?: array, * } $options - * @return ?SharesCreate200Response + * @return ?GrantsCreate200Response * @throws CloudPDFException * @throws CloudPDFApiException */ - public function create(string $tenantId, SharesCreateRequest $request, ?array $options = null): ?SharesCreate200Response + public function create(string $tenantId, GrantsCreateRequest $request, ?array $options = null): ?GrantsCreate200Response { $options = array_merge($this->options, $options ?? []); try { $response = $this->client->sendRequest( new JsonApiRequest( baseUrl: $options['baseUrl'] ?? $this->client->options['baseUrl'] ?? '', - path: "v1/tenants/{$tenantId}/shares", + path: "v1/tenants/{$tenantId}/grants", method: HttpMethod::POST, body: $request, ), @@ -240,7 +240,7 @@ public function create(string $tenantId, SharesCreateRequest $request, ?array $o if (empty($json)) { return null; } - return SharesCreate200Response::fromJson($json); + return GrantsCreate200Response::fromJson($json); } } catch (JsonException $e) { throw new CloudPDFException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); @@ -257,14 +257,14 @@ public function create(string $tenantId, SharesCreateRequest $request, ?array $o /** * Example: * ```php - * $client->shares->get( + * $client->grants->get( * 'tenantId', - * 'shareId', + * 'grantId', * ); * ``` * * @param string $tenantId - * @param string $shareId + * @param string $grantId * @param ?array{ * baseUrl?: string, * maxRetries?: int, @@ -273,18 +273,18 @@ public function create(string $tenantId, SharesCreateRequest $request, ?array $o * queryParameters?: array, * bodyProperties?: array, * } $options - * @return ?SharesGet200Response + * @return ?GrantsGet200Response * @throws CloudPDFException * @throws CloudPDFApiException */ - public function get(string $tenantId, string $shareId, ?array $options = null): ?SharesGet200Response + public function get(string $tenantId, string $grantId, ?array $options = null): ?GrantsGet200Response { $options = array_merge($this->options, $options ?? []); try { $response = $this->client->sendRequest( new JsonApiRequest( baseUrl: $options['baseUrl'] ?? $this->client->options['baseUrl'] ?? '', - path: "v1/tenants/{$tenantId}/shares/{$shareId}", + path: "v1/tenants/{$tenantId}/grants/{$grantId}", method: HttpMethod::GET, ), $options, @@ -295,7 +295,7 @@ public function get(string $tenantId, string $shareId, ?array $options = null): if (empty($json)) { return null; } - return SharesGet200Response::fromJson($json); + return GrantsGet200Response::fromJson($json); } } catch (JsonException $e) { throw new CloudPDFException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); @@ -312,14 +312,14 @@ public function get(string $tenantId, string $shareId, ?array $options = null): /** * Example: * ```php - * $client->shares->delete( + * $client->grants->delete( * 'tenantId', - * 'shareId', + * 'grantId', * ); * ``` * * @param string $tenantId - * @param string $shareId + * @param string $grantId * @param ?array{ * baseUrl?: string, * maxRetries?: int, @@ -331,14 +331,14 @@ public function get(string $tenantId, string $shareId, ?array $options = null): * @throws CloudPDFException * @throws CloudPDFApiException */ - public function delete(string $tenantId, string $shareId, ?array $options = null): void + public function delete(string $tenantId, string $grantId, ?array $options = null): void { $options = array_merge($this->options, $options ?? []); try { $response = $this->client->sendRequest( new JsonApiRequest( baseUrl: $options['baseUrl'] ?? $this->client->options['baseUrl'] ?? '', - path: "v1/tenants/{$tenantId}/shares/{$shareId}", + path: "v1/tenants/{$tenantId}/grants/{$grantId}", method: HttpMethod::DELETE, ), $options, @@ -360,16 +360,16 @@ public function delete(string $tenantId, string $shareId, ?array $options = null /** * Example: * ```php - * $client->shares->update( + * $client->grants->update( * 'tenantId', - * 'shareId', - * new SharesUpdateRequest([]), + * 'grantId', + * new GrantsUpdateRequest([]), * ); * ``` * * @param string $tenantId - * @param string $shareId - * @param SharesUpdateRequest $request + * @param string $grantId + * @param GrantsUpdateRequest $request * @param ?array{ * baseUrl?: string, * maxRetries?: int, @@ -378,18 +378,18 @@ public function delete(string $tenantId, string $shareId, ?array $options = null * queryParameters?: array, * bodyProperties?: array, * } $options - * @return ?SharesUpdate200Response + * @return ?GrantsUpdate200Response * @throws CloudPDFException * @throws CloudPDFApiException */ - public function update(string $tenantId, string $shareId, SharesUpdateRequest $request = new SharesUpdateRequest(), ?array $options = null): ?SharesUpdate200Response + public function update(string $tenantId, string $grantId, GrantsUpdateRequest $request = new GrantsUpdateRequest(), ?array $options = null): ?GrantsUpdate200Response { $options = array_merge($this->options, $options ?? []); try { $response = $this->client->sendRequest( new JsonApiRequest( baseUrl: $options['baseUrl'] ?? $this->client->options['baseUrl'] ?? '', - path: "v1/tenants/{$tenantId}/shares/{$shareId}", + path: "v1/tenants/{$tenantId}/grants/{$grantId}", method: HttpMethod::PATCH, body: $request, ), @@ -401,7 +401,7 @@ public function update(string $tenantId, string $shareId, SharesUpdateRequest $r if (empty($json)) { return null; } - return SharesUpdate200Response::fromJson($json); + return GrantsUpdate200Response::fromJson($json); } } catch (JsonException $e) { throw new CloudPDFException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); @@ -416,18 +416,18 @@ public function update(string $tenantId, string $shareId, SharesUpdateRequest $r } /** - * Archiving is final: an archived link never exchanges again, and to share again you create a new link. Pausing (`disabled`) is the reversible stop. An archived link no longer counts as using its shared layer, so that layer can be deleted. + * Archiving is final: an archived grant never exchanges again, and to give access again you create a new grant. Pausing (`disabled`) is the reversible stop. An archived grant no longer counts as using its shared layer, so that layer can be deleted. * * Example: * ```php - * $client->shares->archive( + * $client->grants->archive( * 'tenantId', - * 'shareId', + * 'grantId', * ); * ``` * * @param string $tenantId - * @param string $shareId + * @param string $grantId * @param ?array{ * baseUrl?: string, * maxRetries?: int, @@ -436,18 +436,18 @@ public function update(string $tenantId, string $shareId, SharesUpdateRequest $r * queryParameters?: array, * bodyProperties?: array, * } $options - * @return ?SharesArchive200Response + * @return ?GrantsArchive200Response * @throws CloudPDFException * @throws CloudPDFApiException */ - public function archive(string $tenantId, string $shareId, ?array $options = null): ?SharesArchive200Response + public function archive(string $tenantId, string $grantId, ?array $options = null): ?GrantsArchive200Response { $options = array_merge($this->options, $options ?? []); try { $response = $this->client->sendRequest( new JsonApiRequest( baseUrl: $options['baseUrl'] ?? $this->client->options['baseUrl'] ?? '', - path: "v1/tenants/{$tenantId}/shares/{$shareId}/archive", + path: "v1/tenants/{$tenantId}/grants/{$grantId}/archive", method: HttpMethod::POST, ), $options, @@ -458,7 +458,7 @@ public function archive(string $tenantId, string $shareId, ?array $options = nul if (empty($json)) { return null; } - return SharesArchive200Response::fromJson($json); + return GrantsArchive200Response::fromJson($json); } } catch (JsonException $e) { throw new CloudPDFException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); diff --git a/src/Shares/Requests/SharesCreateRequest.php b/src/Grants/Requests/GrantsCreateRequest.php similarity index 73% rename from src/Shares/Requests/SharesCreateRequest.php rename to src/Grants/Requests/GrantsCreateRequest.php index 9faa8e91..fe7f2ca7 100644 --- a/src/Shares/Requests/SharesCreateRequest.php +++ b/src/Grants/Requests/GrantsCreateRequest.php @@ -1,15 +1,15 @@ $layerMode + * @var ?string $name + */ + #[JsonProperty('name')] + public ?string $name; + + /** + * @var ?value-of $layerMode */ #[JsonProperty('layerMode')] public ?string $layerMode; @@ -42,10 +48,10 @@ class SharesCreateRequest extends JsonSerializableType public ?int $visitorIdleSeconds; /** - * @var ?SharesCreateRequestVisitorIdentity $visitorIdentity + * @var ?GrantsCreateRequestVisitorIdentity $visitorIdentity */ #[JsonProperty('visitorIdentity')] - public ?SharesCreateRequestVisitorIdentity $visitorIdentity; + public ?GrantsCreateRequestVisitorIdentity $visitorIdentity; /** * @var ?Identity $identity @@ -66,10 +72,10 @@ class SharesCreateRequest extends JsonSerializableType public ?array $origins; /** - * @var ?string $password + * @var ?string $passphrase */ - #[JsonProperty('password')] - public ?string $password; + #[JsonProperty('passphrase')] + public ?string $passphrase; /** * @var ?int $sessionTtlSeconds @@ -87,14 +93,15 @@ class SharesCreateRequest extends JsonSerializableType * @param array{ * docId: string, * scope: array, - * layerMode?: ?value-of, + * name?: ?string, + * layerMode?: ?value-of, * layerName?: ?string, * keepVisitorLayers?: ?bool, * visitorIdleSeconds?: ?int, - * visitorIdentity?: ?SharesCreateRequestVisitorIdentity, + * visitorIdentity?: ?GrantsCreateRequestVisitorIdentity, * identity?: ?Identity, * origins?: ?array, - * password?: ?string, + * passphrase?: ?string, * sessionTtlSeconds?: ?int, * expiresAt?: ?int, * } $values @@ -103,6 +110,7 @@ public function __construct( array $values, ) { $this->docId = $values['docId']; + $this->name = $values['name'] ?? null; $this->layerMode = $values['layerMode'] ?? null; $this->layerName = $values['layerName'] ?? null; $this->keepVisitorLayers = $values['keepVisitorLayers'] ?? null; @@ -111,7 +119,7 @@ public function __construct( $this->identity = $values['identity'] ?? null; $this->scope = $values['scope']; $this->origins = $values['origins'] ?? null; - $this->password = $values['password'] ?? null; + $this->passphrase = $values['passphrase'] ?? null; $this->sessionTtlSeconds = $values['sessionTtlSeconds'] ?? null; $this->expiresAt = $values['expiresAt'] ?? null; } diff --git a/src/Shares/Requests/SharesExchangeRequest.php b/src/Grants/Requests/GrantsExchangeRequest.php similarity index 52% rename from src/Shares/Requests/SharesExchangeRequest.php rename to src/Grants/Requests/GrantsExchangeRequest.php index 0d14548b..a3682b06 100644 --- a/src/Shares/Requests/SharesExchangeRequest.php +++ b/src/Grants/Requests/GrantsExchangeRequest.php @@ -1,24 +1,24 @@ shareToken = $values['shareToken']; - $this->password = $values['password'] ?? null; + $this->grant = $values['grant']; + $this->passphrase = $values['passphrase'] ?? null; $this->visitorHandle = $values['visitorHandle'] ?? null; $this->restart = $values['restart'] ?? null; $this->visitorIdentity = $values['visitorIdentity'] ?? null; diff --git a/src/Shares/Requests/SharesUpdateRequest.php b/src/Grants/Requests/GrantsUpdateRequest.php similarity index 73% rename from src/Shares/Requests/SharesUpdateRequest.php rename to src/Grants/Requests/GrantsUpdateRequest.php index 91be80fa..f2d170c6 100644 --- a/src/Shares/Requests/SharesUpdateRequest.php +++ b/src/Grants/Requests/GrantsUpdateRequest.php @@ -1,18 +1,24 @@ $layerMode + * @var ?string $name + */ + #[JsonProperty('name')] + public ?string $name; + + /** + * @var ?value-of $layerMode */ #[JsonProperty('layerMode')] public ?string $layerMode; @@ -36,10 +42,10 @@ class SharesUpdateRequest extends JsonSerializableType public ?int $visitorIdleSeconds; /** - * @var ?SharesUpdateRequestVisitorIdentity $visitorIdentity + * @var ?GrantsUpdateRequestVisitorIdentity $visitorIdentity */ #[JsonProperty('visitorIdentity')] - public ?SharesUpdateRequestVisitorIdentity $visitorIdentity; + public ?GrantsUpdateRequestVisitorIdentity $visitorIdentity; /** * @var ?Identity $identity @@ -60,10 +66,10 @@ class SharesUpdateRequest extends JsonSerializableType public ?array $origins; /** - * @var ?string $password + * @var ?string $passphrase */ - #[JsonProperty('password')] - public ?string $password; + #[JsonProperty('passphrase')] + public ?string $passphrase; /** * @var ?int $sessionTtlSeconds @@ -85,15 +91,16 @@ class SharesUpdateRequest extends JsonSerializableType /** * @param array{ - * layerMode?: ?value-of, + * name?: ?string, + * layerMode?: ?value-of, * layerName?: ?string, * keepVisitorLayers?: ?bool, * visitorIdleSeconds?: ?int, - * visitorIdentity?: ?SharesUpdateRequestVisitorIdentity, + * visitorIdentity?: ?GrantsUpdateRequestVisitorIdentity, * identity?: ?Identity, * scope?: ?array, * origins?: ?array, - * password?: ?string, + * passphrase?: ?string, * sessionTtlSeconds?: ?int, * disabled?: ?bool, * expiresAt?: ?int, @@ -102,6 +109,7 @@ class SharesUpdateRequest extends JsonSerializableType public function __construct( array $values = [], ) { + $this->name = $values['name'] ?? null; $this->layerMode = $values['layerMode'] ?? null; $this->layerName = $values['layerName'] ?? null; $this->keepVisitorLayers = $values['keepVisitorLayers'] ?? null; @@ -110,7 +118,7 @@ public function __construct( $this->identity = $values['identity'] ?? null; $this->scope = $values['scope'] ?? null; $this->origins = $values['origins'] ?? null; - $this->password = $values['password'] ?? null; + $this->passphrase = $values['passphrase'] ?? null; $this->sessionTtlSeconds = $values['sessionTtlSeconds'] ?? null; $this->disabled = $values['disabled'] ?? null; $this->expiresAt = $values['expiresAt'] ?? null; diff --git a/src/Shares/Requests/ListSharesRequest.php b/src/Grants/Requests/ListGrantsRequest.php similarity index 89% rename from src/Shares/Requests/ListSharesRequest.php rename to src/Grants/Requests/ListGrantsRequest.php index dea6c6b8..08975b6c 100644 --- a/src/Shares/Requests/ListSharesRequest.php +++ b/src/Grants/Requests/ListGrantsRequest.php @@ -1,10 +1,10 @@ $ask + * @var value-of $ask */ #[JsonProperty('ask')] public string $ask; @@ -33,8 +33,8 @@ class SharesCreateRequestVisitorIdentity extends JsonSerializableType /** * @param array{ - * fields: SharesCreateRequestVisitorIdentityFields, - * ask: value-of, + * fields: GrantsCreateRequestVisitorIdentityFields, + * ask: value-of, * purpose?: ?string, * privacyUrl?: ?string, * } $values diff --git a/src/Shares/Types/SharesUpdateRequestVisitorIdentityAsk.php b/src/Grants/Types/GrantsCreateRequestVisitorIdentityAsk.php similarity index 52% rename from src/Shares/Types/SharesUpdateRequestVisitorIdentityAsk.php rename to src/Grants/Types/GrantsCreateRequestVisitorIdentityAsk.php index e91ff165..da4c7ff6 100644 --- a/src/Shares/Types/SharesUpdateRequestVisitorIdentityAsk.php +++ b/src/Grants/Types/GrantsCreateRequestVisitorIdentityAsk.php @@ -1,8 +1,8 @@ $displayName + * @var ?value-of $displayName */ #[JsonProperty('displayName')] public ?string $displayName; /** - * @var ?value-of $email + * @var ?value-of $email */ #[JsonProperty('email')] public ?string $email; /** - * @var ?value-of $title + * @var ?value-of $title */ #[JsonProperty('title')] public ?string $title; /** - * @var ?value-of $organization + * @var ?value-of $organization */ #[JsonProperty('organization')] public ?string $organization; /** - * @var ?value-of $organizationalUnit + * @var ?value-of $organizationalUnit */ #[JsonProperty('organizationalUnit')] public ?string $organizationalUnit; /** * @param array{ - * displayName?: ?value-of, - * email?: ?value-of, - * title?: ?value-of, - * organization?: ?value-of, - * organizationalUnit?: ?value-of, + * displayName?: ?value-of, + * email?: ?value-of, + * title?: ?value-of, + * organization?: ?value-of, + * organizationalUnit?: ?value-of, * } $values */ public function __construct( diff --git a/src/Grants/Types/GrantsCreateRequestVisitorIdentityFieldsDisplayName.php b/src/Grants/Types/GrantsCreateRequestVisitorIdentityFieldsDisplayName.php new file mode 100644 index 00000000..7a84b493 --- /dev/null +++ b/src/Grants/Types/GrantsCreateRequestVisitorIdentityFieldsDisplayName.php @@ -0,0 +1,9 @@ + $ask + * @var value-of $ask */ #[JsonProperty('ask')] public string $ask; @@ -33,8 +33,8 @@ class SharesUpdateRequestVisitorIdentity extends JsonSerializableType /** * @param array{ - * fields: SharesUpdateRequestVisitorIdentityFields, - * ask: value-of, + * fields: GrantsUpdateRequestVisitorIdentityFields, + * ask: value-of, * purpose?: ?string, * privacyUrl?: ?string, * } $values diff --git a/src/Shares/Types/SharesCreateRequestVisitorIdentityAsk.php b/src/Grants/Types/GrantsUpdateRequestVisitorIdentityAsk.php similarity index 52% rename from src/Shares/Types/SharesCreateRequestVisitorIdentityAsk.php rename to src/Grants/Types/GrantsUpdateRequestVisitorIdentityAsk.php index a5b92003..80338200 100644 --- a/src/Shares/Types/SharesCreateRequestVisitorIdentityAsk.php +++ b/src/Grants/Types/GrantsUpdateRequestVisitorIdentityAsk.php @@ -1,8 +1,8 @@ $displayName + * @var ?value-of $displayName */ #[JsonProperty('displayName')] public ?string $displayName; /** - * @var ?value-of $email + * @var ?value-of $email */ #[JsonProperty('email')] public ?string $email; /** - * @var ?value-of $title + * @var ?value-of $title */ #[JsonProperty('title')] public ?string $title; /** - * @var ?value-of $organization + * @var ?value-of $organization */ #[JsonProperty('organization')] public ?string $organization; /** - * @var ?value-of $organizationalUnit + * @var ?value-of $organizationalUnit */ #[JsonProperty('organizationalUnit')] public ?string $organizationalUnit; /** * @param array{ - * displayName?: ?value-of, - * email?: ?value-of, - * title?: ?value-of, - * organization?: ?value-of, - * organizationalUnit?: ?value-of, + * displayName?: ?value-of, + * email?: ?value-of, + * title?: ?value-of, + * organization?: ?value-of, + * organizationalUnit?: ?value-of, * } $values */ public function __construct( diff --git a/src/Grants/Types/GrantsUpdateRequestVisitorIdentityFieldsDisplayName.php b/src/Grants/Types/GrantsUpdateRequestVisitorIdentityFieldsDisplayName.php new file mode 100644 index 00000000..a9550bb3 --- /dev/null +++ b/src/Grants/Types/GrantsUpdateRequestVisitorIdentityFieldsDisplayName.php @@ -0,0 +1,9 @@ +shares->visitors->list( + * $client->grants->visitors->list( * 'tenantId', - * 'shareId', + * 'grantId', * new ListVisitorsRequest([]), * ); * ``` * * @param string $tenantId - * @param string $shareId + * @param string $grantId * @param ListVisitorsRequest $request * @param ?array{ * baseUrl?: string, @@ -72,11 +72,11 @@ public function __construct( * queryParameters?: array, * bodyProperties?: array, * } $options - * @return ?SharesVisitorsList200Response + * @return ?GrantsVisitorsList200Response * @throws CloudPDFException * @throws CloudPDFApiException */ - public function list(string $tenantId, string $shareId, ListVisitorsRequest $request = new ListVisitorsRequest(), ?array $options = null): ?SharesVisitorsList200Response + public function list(string $tenantId, string $grantId, ListVisitorsRequest $request = new ListVisitorsRequest(), ?array $options = null): ?GrantsVisitorsList200Response { $options = array_merge($this->options, $options ?? []); $query = []; @@ -90,7 +90,7 @@ public function list(string $tenantId, string $shareId, ListVisitorsRequest $req $response = $this->client->sendRequest( new JsonApiRequest( baseUrl: $options['baseUrl'] ?? $this->client->options['baseUrl'] ?? '', - path: "v1/tenants/{$tenantId}/shares/{$shareId}/visitors", + path: "v1/tenants/{$tenantId}/grants/{$grantId}/visitors", method: HttpMethod::GET, query: $query, ), @@ -102,7 +102,7 @@ public function list(string $tenantId, string $shareId, ListVisitorsRequest $req if (empty($json)) { return null; } - return SharesVisitorsList200Response::fromJson($json); + return GrantsVisitorsList200Response::fromJson($json); } } catch (JsonException $e) { throw new CloudPDFException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); @@ -121,15 +121,15 @@ public function list(string $tenantId, string $shareId, ListVisitorsRequest $req * * Example: * ```php - * $client->shares->visitors->delete( + * $client->grants->visitors->delete( * 'tenantId', - * 'shareId', + * 'grantId', * 'visitorId', * ); * ``` * * @param string $tenantId - * @param string $shareId + * @param string $grantId * @param string $visitorId * @param ?array{ * baseUrl?: string, @@ -142,14 +142,14 @@ public function list(string $tenantId, string $shareId, ListVisitorsRequest $req * @throws CloudPDFException * @throws CloudPDFApiException */ - public function delete(string $tenantId, string $shareId, string $visitorId, ?array $options = null): void + public function delete(string $tenantId, string $grantId, string $visitorId, ?array $options = null): void { $options = array_merge($this->options, $options ?? []); try { $response = $this->client->sendRequest( new JsonApiRequest( baseUrl: $options['baseUrl'] ?? $this->client->options['baseUrl'] ?? '', - path: "v1/tenants/{$tenantId}/shares/{$shareId}/visitors/{$visitorId}", + path: "v1/tenants/{$tenantId}/grants/{$grantId}/visitors/{$visitorId}", method: HttpMethod::DELETE, ), $options, diff --git a/src/Shares/Types/SharesCreateRequestVisitorIdentityFieldsDisplayName.php b/src/Shares/Types/SharesCreateRequestVisitorIdentityFieldsDisplayName.php deleted file mode 100644 index 51d33484..00000000 --- a/src/Shares/Types/SharesCreateRequestVisitorIdentityFieldsDisplayName.php +++ /dev/null @@ -1,9 +0,0 @@ -docId = $values['docId']; $this->layerName = $values['layerName']; - $this->shareId = $values['shareId'] ?? null; + $this->grantId = $values['grantId'] ?? null; $this->visitorId = $values['visitorId'] ?? null; $this->storageSizeBytes = $values['storageSizeBytes'] ?? null; $this->createdAt = $values['createdAt']; diff --git a/src/Types/EngineErrorPayloadCode.php b/src/Types/EngineErrorPayloadCode.php index 8725ba82..b9acda9e 100644 --- a/src/Types/EngineErrorPayloadCode.php +++ b/src/Types/EngineErrorPayloadCode.php @@ -10,7 +10,7 @@ enum EngineErrorPayloadCode: string case DocOpenFailed = "DocOpenFailed"; case DocPasswordRequired = "DocPasswordRequired"; case DocPasswordIncorrect = "DocPasswordIncorrect"; - case SharePasswordRequired = "SharePasswordRequired"; + case GrantPassphraseRequired = "GrantPassphraseRequired"; case Aborted = "Aborted"; case Network = "Network"; case Unauthenticated = "Unauthenticated"; diff --git a/src/Types/SharesArchive200Response.php b/src/Types/GrantsArchive200Response.php similarity index 58% rename from src/Types/SharesArchive200Response.php rename to src/Types/GrantsArchive200Response.php index 2b56f3dd..ab02af31 100644 --- a/src/Types/SharesArchive200Response.php +++ b/src/Types/GrantsArchive200Response.php @@ -5,23 +5,23 @@ use CloudPDF\Core\Json\JsonSerializableType; use CloudPDF\Core\Json\JsonProperty; -class SharesArchive200Response extends JsonSerializableType +class GrantsArchive200Response extends JsonSerializableType { /** - * @var SharesArchive200ResponseShare $share + * @var GrantsArchive200ResponseGrant $grant */ - #[JsonProperty('share')] - public SharesArchive200ResponseShare $share; + #[JsonProperty('grant')] + public GrantsArchive200ResponseGrant $grant; /** * @param array{ - * share: SharesArchive200ResponseShare, + * grant: GrantsArchive200ResponseGrant, * } $values */ public function __construct( array $values, ) { - $this->share = $values['share']; + $this->grant = $values['grant']; } /** diff --git a/src/Types/SharesArchive200ResponseShare.php b/src/Types/GrantsArchive200ResponseGrant.php similarity index 84% rename from src/Types/SharesArchive200ResponseShare.php rename to src/Types/GrantsArchive200ResponseGrant.php index c18197d9..f870e2bd 100644 --- a/src/Types/SharesArchive200ResponseShare.php +++ b/src/Types/GrantsArchive200ResponseGrant.php @@ -6,7 +6,7 @@ use CloudPDF\Core\Json\JsonProperty; use CloudPDF\Core\Types\ArrayType; -class SharesArchive200ResponseShare extends JsonSerializableType +class GrantsArchive200ResponseGrant extends JsonSerializableType { /** * @var string $id @@ -27,7 +27,13 @@ class SharesArchive200ResponseShare extends JsonSerializableType public string $docId; /** - * @var value-of $layerMode + * @var ?string $name + */ + #[JsonProperty('name')] + public ?string $name; + + /** + * @var value-of $layerMode */ #[JsonProperty('layerMode')] public string $layerMode; @@ -51,10 +57,10 @@ class SharesArchive200ResponseShare extends JsonSerializableType public ?float $visitorIdleSeconds; /** - * @var ?SharesArchive200ResponseShareVisitorIdentity $visitorIdentity + * @var ?GrantsArchive200ResponseGrantVisitorIdentity $visitorIdentity */ #[JsonProperty('visitorIdentity')] - public ?SharesArchive200ResponseShareVisitorIdentity $visitorIdentity; + public ?GrantsArchive200ResponseGrantVisitorIdentity $visitorIdentity; /** * @var ?Identity $identity @@ -75,10 +81,10 @@ class SharesArchive200ResponseShare extends JsonSerializableType public ?array $origins; /** - * @var bool $passwordProtected + * @var bool $passphraseProtected */ - #[JsonProperty('passwordProtected')] - public bool $passwordProtected; + #[JsonProperty('passphraseProtected')] + public bool $passphraseProtected; /** * @var float $sessionTtlSeconds @@ -139,19 +145,20 @@ class SharesArchive200ResponseShare extends JsonSerializableType * id: string, * tenantId: string, * docId: string, - * layerMode: value-of, + * layerMode: value-of, * keepVisitorLayers: bool, * scope: array, - * passwordProtected: bool, + * passphraseProtected: bool, * sessionTtlSeconds: float, * disabled: bool, * exchangeCount: float, * createdBy: string, * createdAt: float, * updatedAt: float, + * name?: ?string, * layerName?: ?string, * visitorIdleSeconds?: ?float, - * visitorIdentity?: ?SharesArchive200ResponseShareVisitorIdentity, + * visitorIdentity?: ?GrantsArchive200ResponseGrantVisitorIdentity, * identity?: ?Identity, * origins?: ?array, * archivedAt?: ?float, @@ -165,6 +172,7 @@ public function __construct( $this->id = $values['id']; $this->tenantId = $values['tenantId']; $this->docId = $values['docId']; + $this->name = $values['name'] ?? null; $this->layerMode = $values['layerMode']; $this->layerName = $values['layerName'] ?? null; $this->keepVisitorLayers = $values['keepVisitorLayers']; @@ -173,7 +181,7 @@ public function __construct( $this->identity = $values['identity'] ?? null; $this->scope = $values['scope']; $this->origins = $values['origins'] ?? null; - $this->passwordProtected = $values['passwordProtected']; + $this->passphraseProtected = $values['passphraseProtected']; $this->sessionTtlSeconds = $values['sessionTtlSeconds']; $this->disabled = $values['disabled']; $this->archivedAt = $values['archivedAt'] ?? null; diff --git a/src/Types/SharesArchive200ResponseShareLayerMode.php b/src/Types/GrantsArchive200ResponseGrantLayerMode.php similarity index 66% rename from src/Types/SharesArchive200ResponseShareLayerMode.php rename to src/Types/GrantsArchive200ResponseGrantLayerMode.php index 300c16f5..556ad715 100644 --- a/src/Types/SharesArchive200ResponseShareLayerMode.php +++ b/src/Types/GrantsArchive200ResponseGrantLayerMode.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesArchive200ResponseShareLayerMode: string +enum GrantsArchive200ResponseGrantLayerMode: string { case Shared = "shared"; case PerVisitor = "per-visitor"; diff --git a/src/Types/SharesArchive200ResponseShareVisitorIdentity.php b/src/Types/GrantsArchive200ResponseGrantVisitorIdentity.php similarity index 72% rename from src/Types/SharesArchive200ResponseShareVisitorIdentity.php rename to src/Types/GrantsArchive200ResponseGrantVisitorIdentity.php index b92d2a64..5e51465c 100644 --- a/src/Types/SharesArchive200ResponseShareVisitorIdentity.php +++ b/src/Types/GrantsArchive200ResponseGrantVisitorIdentity.php @@ -5,16 +5,16 @@ use CloudPDF\Core\Json\JsonSerializableType; use CloudPDF\Core\Json\JsonProperty; -class SharesArchive200ResponseShareVisitorIdentity extends JsonSerializableType +class GrantsArchive200ResponseGrantVisitorIdentity extends JsonSerializableType { /** - * @var SharesArchive200ResponseShareVisitorIdentityFields $fields + * @var GrantsArchive200ResponseGrantVisitorIdentityFields $fields */ #[JsonProperty('fields')] - public SharesArchive200ResponseShareVisitorIdentityFields $fields; + public GrantsArchive200ResponseGrantVisitorIdentityFields $fields; /** - * @var value-of $ask + * @var value-of $ask */ #[JsonProperty('ask')] public string $ask; @@ -33,8 +33,8 @@ class SharesArchive200ResponseShareVisitorIdentity extends JsonSerializableType /** * @param array{ - * fields: SharesArchive200ResponseShareVisitorIdentityFields, - * ask: value-of, + * fields: GrantsArchive200ResponseGrantVisitorIdentityFields, + * ask: value-of, * purpose?: ?string, * privacyUrl?: ?string, * } $values diff --git a/src/Types/SharesArchive200ResponseShareVisitorIdentityAsk.php b/src/Types/GrantsArchive200ResponseGrantVisitorIdentityAsk.php similarity index 66% rename from src/Types/SharesArchive200ResponseShareVisitorIdentityAsk.php rename to src/Types/GrantsArchive200ResponseGrantVisitorIdentityAsk.php index 7ec9cf52..b61f1fb0 100644 --- a/src/Types/SharesArchive200ResponseShareVisitorIdentityAsk.php +++ b/src/Types/GrantsArchive200ResponseGrantVisitorIdentityAsk.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesArchive200ResponseShareVisitorIdentityAsk: string +enum GrantsArchive200ResponseGrantVisitorIdentityAsk: string { case OnOpen = "on-open"; case BeforeFirstChange = "before-first-change"; diff --git a/src/Types/SharesArchive200ResponseShareVisitorIdentityFields.php b/src/Types/GrantsArchive200ResponseGrantVisitorIdentityFields.php similarity index 64% rename from src/Types/SharesArchive200ResponseShareVisitorIdentityFields.php rename to src/Types/GrantsArchive200ResponseGrantVisitorIdentityFields.php index bf8fe658..452e5248 100644 --- a/src/Types/SharesArchive200ResponseShareVisitorIdentityFields.php +++ b/src/Types/GrantsArchive200ResponseGrantVisitorIdentityFields.php @@ -5,45 +5,45 @@ use CloudPDF\Core\Json\JsonSerializableType; use CloudPDF\Core\Json\JsonProperty; -class SharesArchive200ResponseShareVisitorIdentityFields extends JsonSerializableType +class GrantsArchive200ResponseGrantVisitorIdentityFields extends JsonSerializableType { /** - * @var ?value-of $displayName + * @var ?value-of $displayName */ #[JsonProperty('displayName')] public ?string $displayName; /** - * @var ?value-of $email + * @var ?value-of $email */ #[JsonProperty('email')] public ?string $email; /** - * @var ?value-of $title + * @var ?value-of $title */ #[JsonProperty('title')] public ?string $title; /** - * @var ?value-of $organization + * @var ?value-of $organization */ #[JsonProperty('organization')] public ?string $organization; /** - * @var ?value-of $organizationalUnit + * @var ?value-of $organizationalUnit */ #[JsonProperty('organizationalUnit')] public ?string $organizationalUnit; /** * @param array{ - * displayName?: ?value-of, - * email?: ?value-of, - * title?: ?value-of, - * organization?: ?value-of, - * organizationalUnit?: ?value-of, + * displayName?: ?value-of, + * email?: ?value-of, + * title?: ?value-of, + * organization?: ?value-of, + * organizationalUnit?: ?value-of, * } $values */ public function __construct( diff --git a/src/Types/SharesArchive200ResponseShareVisitorIdentityFieldsDisplayName.php b/src/Types/GrantsArchive200ResponseGrantVisitorIdentityFieldsDisplayName.php similarity index 63% rename from src/Types/SharesArchive200ResponseShareVisitorIdentityFieldsDisplayName.php rename to src/Types/GrantsArchive200ResponseGrantVisitorIdentityFieldsDisplayName.php index 0564d0c3..df84ceef 100644 --- a/src/Types/SharesArchive200ResponseShareVisitorIdentityFieldsDisplayName.php +++ b/src/Types/GrantsArchive200ResponseGrantVisitorIdentityFieldsDisplayName.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesArchive200ResponseShareVisitorIdentityFieldsDisplayName: string +enum GrantsArchive200ResponseGrantVisitorIdentityFieldsDisplayName: string { case Required = "required"; case Optional = "optional"; diff --git a/src/Types/SharesArchive200ResponseShareVisitorIdentityFieldsEmail.php b/src/Types/GrantsArchive200ResponseGrantVisitorIdentityFieldsEmail.php similarity index 62% rename from src/Types/SharesArchive200ResponseShareVisitorIdentityFieldsEmail.php rename to src/Types/GrantsArchive200ResponseGrantVisitorIdentityFieldsEmail.php index 820f8c86..d9976f35 100644 --- a/src/Types/SharesArchive200ResponseShareVisitorIdentityFieldsEmail.php +++ b/src/Types/GrantsArchive200ResponseGrantVisitorIdentityFieldsEmail.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesArchive200ResponseShareVisitorIdentityFieldsEmail: string +enum GrantsArchive200ResponseGrantVisitorIdentityFieldsEmail: string { case Required = "required"; case Optional = "optional"; diff --git a/src/Types/SharesArchive200ResponseShareVisitorIdentityFieldsOrganization.php b/src/Types/GrantsArchive200ResponseGrantVisitorIdentityFieldsOrganization.php similarity index 64% rename from src/Types/SharesArchive200ResponseShareVisitorIdentityFieldsOrganization.php rename to src/Types/GrantsArchive200ResponseGrantVisitorIdentityFieldsOrganization.php index a397435d..6282eaab 100644 --- a/src/Types/SharesArchive200ResponseShareVisitorIdentityFieldsOrganization.php +++ b/src/Types/GrantsArchive200ResponseGrantVisitorIdentityFieldsOrganization.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesArchive200ResponseShareVisitorIdentityFieldsOrganization: string +enum GrantsArchive200ResponseGrantVisitorIdentityFieldsOrganization: string { case Required = "required"; case Optional = "optional"; diff --git a/src/Types/SharesArchive200ResponseShareVisitorIdentityFieldsOrganizationalUnit.php b/src/Types/GrantsArchive200ResponseGrantVisitorIdentityFieldsOrganizationalUnit.php similarity index 65% rename from src/Types/SharesArchive200ResponseShareVisitorIdentityFieldsOrganizationalUnit.php rename to src/Types/GrantsArchive200ResponseGrantVisitorIdentityFieldsOrganizationalUnit.php index ec2a2e77..947467a9 100644 --- a/src/Types/SharesArchive200ResponseShareVisitorIdentityFieldsOrganizationalUnit.php +++ b/src/Types/GrantsArchive200ResponseGrantVisitorIdentityFieldsOrganizationalUnit.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesArchive200ResponseShareVisitorIdentityFieldsOrganizationalUnit: string +enum GrantsArchive200ResponseGrantVisitorIdentityFieldsOrganizationalUnit: string { case Required = "required"; case Optional = "optional"; diff --git a/src/Types/SharesArchive200ResponseShareVisitorIdentityFieldsTitle.php b/src/Types/GrantsArchive200ResponseGrantVisitorIdentityFieldsTitle.php similarity index 62% rename from src/Types/SharesArchive200ResponseShareVisitorIdentityFieldsTitle.php rename to src/Types/GrantsArchive200ResponseGrantVisitorIdentityFieldsTitle.php index b5a18f20..be405d4b 100644 --- a/src/Types/SharesArchive200ResponseShareVisitorIdentityFieldsTitle.php +++ b/src/Types/GrantsArchive200ResponseGrantVisitorIdentityFieldsTitle.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesArchive200ResponseShareVisitorIdentityFieldsTitle: string +enum GrantsArchive200ResponseGrantVisitorIdentityFieldsTitle: string { case Required = "required"; case Optional = "optional"; diff --git a/src/Types/SharesCreate200Response.php b/src/Types/GrantsCreate200Response.php similarity index 58% rename from src/Types/SharesCreate200Response.php rename to src/Types/GrantsCreate200Response.php index b314945a..ab498172 100644 --- a/src/Types/SharesCreate200Response.php +++ b/src/Types/GrantsCreate200Response.php @@ -5,23 +5,23 @@ use CloudPDF\Core\Json\JsonSerializableType; use CloudPDF\Core\Json\JsonProperty; -class SharesCreate200Response extends JsonSerializableType +class GrantsCreate200Response extends JsonSerializableType { /** - * @var SharesCreate200ResponseShare $share + * @var GrantsCreate200ResponseGrant $grant */ - #[JsonProperty('share')] - public SharesCreate200ResponseShare $share; + #[JsonProperty('grant')] + public GrantsCreate200ResponseGrant $grant; /** * @param array{ - * share: SharesCreate200ResponseShare, + * grant: GrantsCreate200ResponseGrant, * } $values */ public function __construct( array $values, ) { - $this->share = $values['share']; + $this->grant = $values['grant']; } /** diff --git a/src/Types/SharesUpdate200ResponseShare.php b/src/Types/GrantsCreate200ResponseGrant.php similarity index 84% rename from src/Types/SharesUpdate200ResponseShare.php rename to src/Types/GrantsCreate200ResponseGrant.php index 85d72599..5f3b7276 100644 --- a/src/Types/SharesUpdate200ResponseShare.php +++ b/src/Types/GrantsCreate200ResponseGrant.php @@ -6,7 +6,7 @@ use CloudPDF\Core\Json\JsonProperty; use CloudPDF\Core\Types\ArrayType; -class SharesUpdate200ResponseShare extends JsonSerializableType +class GrantsCreate200ResponseGrant extends JsonSerializableType { /** * @var string $id @@ -27,7 +27,13 @@ class SharesUpdate200ResponseShare extends JsonSerializableType public string $docId; /** - * @var value-of $layerMode + * @var ?string $name + */ + #[JsonProperty('name')] + public ?string $name; + + /** + * @var value-of $layerMode */ #[JsonProperty('layerMode')] public string $layerMode; @@ -51,10 +57,10 @@ class SharesUpdate200ResponseShare extends JsonSerializableType public ?float $visitorIdleSeconds; /** - * @var ?SharesUpdate200ResponseShareVisitorIdentity $visitorIdentity + * @var ?GrantsCreate200ResponseGrantVisitorIdentity $visitorIdentity */ #[JsonProperty('visitorIdentity')] - public ?SharesUpdate200ResponseShareVisitorIdentity $visitorIdentity; + public ?GrantsCreate200ResponseGrantVisitorIdentity $visitorIdentity; /** * @var ?Identity $identity @@ -75,10 +81,10 @@ class SharesUpdate200ResponseShare extends JsonSerializableType public ?array $origins; /** - * @var bool $passwordProtected + * @var bool $passphraseProtected */ - #[JsonProperty('passwordProtected')] - public bool $passwordProtected; + #[JsonProperty('passphraseProtected')] + public bool $passphraseProtected; /** * @var float $sessionTtlSeconds @@ -139,19 +145,20 @@ class SharesUpdate200ResponseShare extends JsonSerializableType * id: string, * tenantId: string, * docId: string, - * layerMode: value-of, + * layerMode: value-of, * keepVisitorLayers: bool, * scope: array, - * passwordProtected: bool, + * passphraseProtected: bool, * sessionTtlSeconds: float, * disabled: bool, * exchangeCount: float, * createdBy: string, * createdAt: float, * updatedAt: float, + * name?: ?string, * layerName?: ?string, * visitorIdleSeconds?: ?float, - * visitorIdentity?: ?SharesUpdate200ResponseShareVisitorIdentity, + * visitorIdentity?: ?GrantsCreate200ResponseGrantVisitorIdentity, * identity?: ?Identity, * origins?: ?array, * archivedAt?: ?float, @@ -165,6 +172,7 @@ public function __construct( $this->id = $values['id']; $this->tenantId = $values['tenantId']; $this->docId = $values['docId']; + $this->name = $values['name'] ?? null; $this->layerMode = $values['layerMode']; $this->layerName = $values['layerName'] ?? null; $this->keepVisitorLayers = $values['keepVisitorLayers']; @@ -173,7 +181,7 @@ public function __construct( $this->identity = $values['identity'] ?? null; $this->scope = $values['scope']; $this->origins = $values['origins'] ?? null; - $this->passwordProtected = $values['passwordProtected']; + $this->passphraseProtected = $values['passphraseProtected']; $this->sessionTtlSeconds = $values['sessionTtlSeconds']; $this->disabled = $values['disabled']; $this->archivedAt = $values['archivedAt'] ?? null; diff --git a/src/Types/SharesUpdate200ResponseShareLayerMode.php b/src/Types/GrantsCreate200ResponseGrantLayerMode.php similarity index 66% rename from src/Types/SharesUpdate200ResponseShareLayerMode.php rename to src/Types/GrantsCreate200ResponseGrantLayerMode.php index 19902ff0..56ddf11e 100644 --- a/src/Types/SharesUpdate200ResponseShareLayerMode.php +++ b/src/Types/GrantsCreate200ResponseGrantLayerMode.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesUpdate200ResponseShareLayerMode: string +enum GrantsCreate200ResponseGrantLayerMode: string { case Shared = "shared"; case PerVisitor = "per-visitor"; diff --git a/src/Types/SharesCreate200ResponseShareVisitorIdentity.php b/src/Types/GrantsCreate200ResponseGrantVisitorIdentity.php similarity index 72% rename from src/Types/SharesCreate200ResponseShareVisitorIdentity.php rename to src/Types/GrantsCreate200ResponseGrantVisitorIdentity.php index 575b3c96..2d29ffcd 100644 --- a/src/Types/SharesCreate200ResponseShareVisitorIdentity.php +++ b/src/Types/GrantsCreate200ResponseGrantVisitorIdentity.php @@ -5,16 +5,16 @@ use CloudPDF\Core\Json\JsonSerializableType; use CloudPDF\Core\Json\JsonProperty; -class SharesCreate200ResponseShareVisitorIdentity extends JsonSerializableType +class GrantsCreate200ResponseGrantVisitorIdentity extends JsonSerializableType { /** - * @var SharesCreate200ResponseShareVisitorIdentityFields $fields + * @var GrantsCreate200ResponseGrantVisitorIdentityFields $fields */ #[JsonProperty('fields')] - public SharesCreate200ResponseShareVisitorIdentityFields $fields; + public GrantsCreate200ResponseGrantVisitorIdentityFields $fields; /** - * @var value-of $ask + * @var value-of $ask */ #[JsonProperty('ask')] public string $ask; @@ -33,8 +33,8 @@ class SharesCreate200ResponseShareVisitorIdentity extends JsonSerializableType /** * @param array{ - * fields: SharesCreate200ResponseShareVisitorIdentityFields, - * ask: value-of, + * fields: GrantsCreate200ResponseGrantVisitorIdentityFields, + * ask: value-of, * purpose?: ?string, * privacyUrl?: ?string, * } $values diff --git a/src/Types/SharesUpdate200ResponseShareVisitorIdentityAsk.php b/src/Types/GrantsCreate200ResponseGrantVisitorIdentityAsk.php similarity index 66% rename from src/Types/SharesUpdate200ResponseShareVisitorIdentityAsk.php rename to src/Types/GrantsCreate200ResponseGrantVisitorIdentityAsk.php index a63e26fa..f9d1a32f 100644 --- a/src/Types/SharesUpdate200ResponseShareVisitorIdentityAsk.php +++ b/src/Types/GrantsCreate200ResponseGrantVisitorIdentityAsk.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesUpdate200ResponseShareVisitorIdentityAsk: string +enum GrantsCreate200ResponseGrantVisitorIdentityAsk: string { case OnOpen = "on-open"; case BeforeFirstChange = "before-first-change"; diff --git a/src/Types/SharesCreate200ResponseShareVisitorIdentityFields.php b/src/Types/GrantsCreate200ResponseGrantVisitorIdentityFields.php similarity index 64% rename from src/Types/SharesCreate200ResponseShareVisitorIdentityFields.php rename to src/Types/GrantsCreate200ResponseGrantVisitorIdentityFields.php index fa7dcfa1..662bfddc 100644 --- a/src/Types/SharesCreate200ResponseShareVisitorIdentityFields.php +++ b/src/Types/GrantsCreate200ResponseGrantVisitorIdentityFields.php @@ -5,45 +5,45 @@ use CloudPDF\Core\Json\JsonSerializableType; use CloudPDF\Core\Json\JsonProperty; -class SharesCreate200ResponseShareVisitorIdentityFields extends JsonSerializableType +class GrantsCreate200ResponseGrantVisitorIdentityFields extends JsonSerializableType { /** - * @var ?value-of $displayName + * @var ?value-of $displayName */ #[JsonProperty('displayName')] public ?string $displayName; /** - * @var ?value-of $email + * @var ?value-of $email */ #[JsonProperty('email')] public ?string $email; /** - * @var ?value-of $title + * @var ?value-of $title */ #[JsonProperty('title')] public ?string $title; /** - * @var ?value-of $organization + * @var ?value-of $organization */ #[JsonProperty('organization')] public ?string $organization; /** - * @var ?value-of $organizationalUnit + * @var ?value-of $organizationalUnit */ #[JsonProperty('organizationalUnit')] public ?string $organizationalUnit; /** * @param array{ - * displayName?: ?value-of, - * email?: ?value-of, - * title?: ?value-of, - * organization?: ?value-of, - * organizationalUnit?: ?value-of, + * displayName?: ?value-of, + * email?: ?value-of, + * title?: ?value-of, + * organization?: ?value-of, + * organizationalUnit?: ?value-of, * } $values */ public function __construct( diff --git a/src/Types/SharesUpdate200ResponseShareVisitorIdentityFieldsDisplayName.php b/src/Types/GrantsCreate200ResponseGrantVisitorIdentityFieldsDisplayName.php similarity index 63% rename from src/Types/SharesUpdate200ResponseShareVisitorIdentityFieldsDisplayName.php rename to src/Types/GrantsCreate200ResponseGrantVisitorIdentityFieldsDisplayName.php index dff235ec..ee79c009 100644 --- a/src/Types/SharesUpdate200ResponseShareVisitorIdentityFieldsDisplayName.php +++ b/src/Types/GrantsCreate200ResponseGrantVisitorIdentityFieldsDisplayName.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesUpdate200ResponseShareVisitorIdentityFieldsDisplayName: string +enum GrantsCreate200ResponseGrantVisitorIdentityFieldsDisplayName: string { case Required = "required"; case Optional = "optional"; diff --git a/src/Types/SharesCreate200ResponseShareVisitorIdentityFieldsEmail.php b/src/Types/GrantsCreate200ResponseGrantVisitorIdentityFieldsEmail.php similarity index 62% rename from src/Types/SharesCreate200ResponseShareVisitorIdentityFieldsEmail.php rename to src/Types/GrantsCreate200ResponseGrantVisitorIdentityFieldsEmail.php index 1bf68080..5328d680 100644 --- a/src/Types/SharesCreate200ResponseShareVisitorIdentityFieldsEmail.php +++ b/src/Types/GrantsCreate200ResponseGrantVisitorIdentityFieldsEmail.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesCreate200ResponseShareVisitorIdentityFieldsEmail: string +enum GrantsCreate200ResponseGrantVisitorIdentityFieldsEmail: string { case Required = "required"; case Optional = "optional"; diff --git a/src/Types/SharesCreate200ResponseShareVisitorIdentityFieldsOrganization.php b/src/Types/GrantsCreate200ResponseGrantVisitorIdentityFieldsOrganization.php similarity index 63% rename from src/Types/SharesCreate200ResponseShareVisitorIdentityFieldsOrganization.php rename to src/Types/GrantsCreate200ResponseGrantVisitorIdentityFieldsOrganization.php index 4e516b54..00a39aef 100644 --- a/src/Types/SharesCreate200ResponseShareVisitorIdentityFieldsOrganization.php +++ b/src/Types/GrantsCreate200ResponseGrantVisitorIdentityFieldsOrganization.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesCreate200ResponseShareVisitorIdentityFieldsOrganization: string +enum GrantsCreate200ResponseGrantVisitorIdentityFieldsOrganization: string { case Required = "required"; case Optional = "optional"; diff --git a/src/Types/SharesCreate200ResponseShareVisitorIdentityFieldsOrganizationalUnit.php b/src/Types/GrantsCreate200ResponseGrantVisitorIdentityFieldsOrganizationalUnit.php similarity index 65% rename from src/Types/SharesCreate200ResponseShareVisitorIdentityFieldsOrganizationalUnit.php rename to src/Types/GrantsCreate200ResponseGrantVisitorIdentityFieldsOrganizationalUnit.php index 8bcc5bc6..546d2f23 100644 --- a/src/Types/SharesCreate200ResponseShareVisitorIdentityFieldsOrganizationalUnit.php +++ b/src/Types/GrantsCreate200ResponseGrantVisitorIdentityFieldsOrganizationalUnit.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesCreate200ResponseShareVisitorIdentityFieldsOrganizationalUnit: string +enum GrantsCreate200ResponseGrantVisitorIdentityFieldsOrganizationalUnit: string { case Required = "required"; case Optional = "optional"; diff --git a/src/Types/SharesUpdate200ResponseShareVisitorIdentityFieldsEmail.php b/src/Types/GrantsCreate200ResponseGrantVisitorIdentityFieldsTitle.php similarity index 62% rename from src/Types/SharesUpdate200ResponseShareVisitorIdentityFieldsEmail.php rename to src/Types/GrantsCreate200ResponseGrantVisitorIdentityFieldsTitle.php index da360900..93b886bf 100644 --- a/src/Types/SharesUpdate200ResponseShareVisitorIdentityFieldsEmail.php +++ b/src/Types/GrantsCreate200ResponseGrantVisitorIdentityFieldsTitle.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesUpdate200ResponseShareVisitorIdentityFieldsEmail: string +enum GrantsCreate200ResponseGrantVisitorIdentityFieldsTitle: string { case Required = "required"; case Optional = "optional"; diff --git a/src/Types/SharesExchange200Response.php b/src/Types/GrantsExchange200Response.php similarity index 78% rename from src/Types/SharesExchange200Response.php rename to src/Types/GrantsExchange200Response.php index a8ba4399..54931d7e 100644 --- a/src/Types/SharesExchange200Response.php +++ b/src/Types/GrantsExchange200Response.php @@ -5,7 +5,7 @@ use CloudPDF\Core\Json\JsonSerializableType; use CloudPDF\Core\Json\JsonProperty; -class SharesExchange200Response extends JsonSerializableType +class GrantsExchange200Response extends JsonSerializableType { /** * @var string $token @@ -26,16 +26,16 @@ class SharesExchange200Response extends JsonSerializableType public string $layerName; /** - * @var value-of $layerMode + * @var value-of $layerMode */ #[JsonProperty('layerMode')] public string $layerMode; /** - * @var SharesExchange200ResponseVisitor $visitor + * @var GrantsExchange200ResponseVisitor $visitor */ #[JsonProperty('visitor')] - public SharesExchange200ResponseVisitor $visitor; + public GrantsExchange200ResponseVisitor $visitor; /** * @var float $expiresAt @@ -48,8 +48,8 @@ class SharesExchange200Response extends JsonSerializableType * token: string, * docId: string, * layerName: string, - * layerMode: value-of, - * visitor: SharesExchange200ResponseVisitor, + * layerMode: value-of, + * visitor: GrantsExchange200ResponseVisitor, * expiresAt: float, * } $values */ diff --git a/src/Types/SharesExchange200ResponseLayerMode.php b/src/Types/GrantsExchange200ResponseLayerMode.php similarity index 68% rename from src/Types/SharesExchange200ResponseLayerMode.php rename to src/Types/GrantsExchange200ResponseLayerMode.php index 93481944..08954137 100644 --- a/src/Types/SharesExchange200ResponseLayerMode.php +++ b/src/Types/GrantsExchange200ResponseLayerMode.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesExchange200ResponseLayerMode: string +enum GrantsExchange200ResponseLayerMode: string { case Shared = "shared"; case PerVisitor = "per-visitor"; diff --git a/src/Types/SharesExchange200ResponseVisitor.php b/src/Types/GrantsExchange200ResponseVisitor.php similarity index 77% rename from src/Types/SharesExchange200ResponseVisitor.php rename to src/Types/GrantsExchange200ResponseVisitor.php index 99e57b0d..83b8882c 100644 --- a/src/Types/SharesExchange200ResponseVisitor.php +++ b/src/Types/GrantsExchange200ResponseVisitor.php @@ -5,7 +5,7 @@ use CloudPDF\Core\Json\JsonSerializableType; use CloudPDF\Core\Json\JsonProperty; -class SharesExchange200ResponseVisitor extends JsonSerializableType +class GrantsExchange200ResponseVisitor extends JsonSerializableType { /** * @var string $handle @@ -20,16 +20,16 @@ class SharesExchange200ResponseVisitor extends JsonSerializableType public bool $keep; /** - * @var ?SharesExchange200ResponseVisitorIdentityRequest $identityRequest + * @var ?GrantsExchange200ResponseVisitorIdentityRequest $identityRequest */ #[JsonProperty('identityRequest')] - public ?SharesExchange200ResponseVisitorIdentityRequest $identityRequest; + public ?GrantsExchange200ResponseVisitorIdentityRequest $identityRequest; /** * @param array{ * handle: string, * keep: bool, - * identityRequest?: ?SharesExchange200ResponseVisitorIdentityRequest, + * identityRequest?: ?GrantsExchange200ResponseVisitorIdentityRequest, * } $values */ public function __construct( diff --git a/src/Types/SharesExchange200ResponseVisitorIdentityRequest.php b/src/Types/GrantsExchange200ResponseVisitorIdentityRequest.php similarity index 72% rename from src/Types/SharesExchange200ResponseVisitorIdentityRequest.php rename to src/Types/GrantsExchange200ResponseVisitorIdentityRequest.php index 6e9ff574..0e466ab8 100644 --- a/src/Types/SharesExchange200ResponseVisitorIdentityRequest.php +++ b/src/Types/GrantsExchange200ResponseVisitorIdentityRequest.php @@ -6,22 +6,22 @@ use CloudPDF\Core\Json\JsonProperty; use CloudPDF\Core\Types\ArrayType; -class SharesExchange200ResponseVisitorIdentityRequest extends JsonSerializableType +class GrantsExchange200ResponseVisitorIdentityRequest extends JsonSerializableType { /** - * @var SharesExchange200ResponseVisitorIdentityRequestFields $fields + * @var GrantsExchange200ResponseVisitorIdentityRequestFields $fields */ #[JsonProperty('fields')] - public SharesExchange200ResponseVisitorIdentityRequestFields $fields; + public GrantsExchange200ResponseVisitorIdentityRequestFields $fields; /** - * @var array> $missing + * @var array> $missing */ #[JsonProperty('missing'), ArrayType(['string'])] public array $missing; /** - * @var array> $invalid + * @var array> $invalid */ #[JsonProperty('invalid'), ArrayType(['string'])] public array $invalid; @@ -40,9 +40,9 @@ class SharesExchange200ResponseVisitorIdentityRequest extends JsonSerializableTy /** * @param array{ - * fields: SharesExchange200ResponseVisitorIdentityRequestFields, - * missing: array>, - * invalid: array>, + * fields: GrantsExchange200ResponseVisitorIdentityRequestFields, + * missing: array>, + * invalid: array>, * purpose?: ?string, * privacyUrl?: ?string, * } $values diff --git a/src/Types/SharesExchange200ResponseVisitorIdentityRequestFields.php b/src/Types/GrantsExchange200ResponseVisitorIdentityRequestFields.php similarity index 67% rename from src/Types/SharesExchange200ResponseVisitorIdentityRequestFields.php rename to src/Types/GrantsExchange200ResponseVisitorIdentityRequestFields.php index da180e44..0bd433d9 100644 --- a/src/Types/SharesExchange200ResponseVisitorIdentityRequestFields.php +++ b/src/Types/GrantsExchange200ResponseVisitorIdentityRequestFields.php @@ -5,45 +5,45 @@ use CloudPDF\Core\Json\JsonSerializableType; use CloudPDF\Core\Json\JsonProperty; -class SharesExchange200ResponseVisitorIdentityRequestFields extends JsonSerializableType +class GrantsExchange200ResponseVisitorIdentityRequestFields extends JsonSerializableType { /** - * @var ?value-of $displayName + * @var ?value-of $displayName */ #[JsonProperty('displayName')] public ?string $displayName; /** - * @var ?value-of $email + * @var ?value-of $email */ #[JsonProperty('email')] public ?string $email; /** - * @var ?value-of $title + * @var ?value-of $title */ #[JsonProperty('title')] public ?string $title; /** - * @var ?value-of $organization + * @var ?value-of $organization */ #[JsonProperty('organization')] public ?string $organization; /** - * @var ?value-of $organizationalUnit + * @var ?value-of $organizationalUnit */ #[JsonProperty('organizationalUnit')] public ?string $organizationalUnit; /** * @param array{ - * displayName?: ?value-of, - * email?: ?value-of, - * title?: ?value-of, - * organization?: ?value-of, - * organizationalUnit?: ?value-of, + * displayName?: ?value-of, + * email?: ?value-of, + * title?: ?value-of, + * organization?: ?value-of, + * organizationalUnit?: ?value-of, * } $values */ public function __construct( diff --git a/src/Types/SharesExchange200ResponseVisitorIdentityRequestFieldsDisplayName.php b/src/Types/GrantsExchange200ResponseVisitorIdentityRequestFieldsDisplayName.php similarity index 64% rename from src/Types/SharesExchange200ResponseVisitorIdentityRequestFieldsDisplayName.php rename to src/Types/GrantsExchange200ResponseVisitorIdentityRequestFieldsDisplayName.php index 1ed64e07..ea3c822e 100644 --- a/src/Types/SharesExchange200ResponseVisitorIdentityRequestFieldsDisplayName.php +++ b/src/Types/GrantsExchange200ResponseVisitorIdentityRequestFieldsDisplayName.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesExchange200ResponseVisitorIdentityRequestFieldsDisplayName: string +enum GrantsExchange200ResponseVisitorIdentityRequestFieldsDisplayName: string { case Required = "required"; case Optional = "optional"; diff --git a/src/Types/SharesExchange200ResponseVisitorIdentityRequestFieldsEmail.php b/src/Types/GrantsExchange200ResponseVisitorIdentityRequestFieldsEmail.php similarity index 63% rename from src/Types/SharesExchange200ResponseVisitorIdentityRequestFieldsEmail.php rename to src/Types/GrantsExchange200ResponseVisitorIdentityRequestFieldsEmail.php index 7fd8c4b2..5cee1347 100644 --- a/src/Types/SharesExchange200ResponseVisitorIdentityRequestFieldsEmail.php +++ b/src/Types/GrantsExchange200ResponseVisitorIdentityRequestFieldsEmail.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesExchange200ResponseVisitorIdentityRequestFieldsEmail: string +enum GrantsExchange200ResponseVisitorIdentityRequestFieldsEmail: string { case Required = "required"; case Optional = "optional"; diff --git a/src/Types/SharesExchange200ResponseVisitorIdentityRequestFieldsOrganization.php b/src/Types/GrantsExchange200ResponseVisitorIdentityRequestFieldsOrganization.php similarity index 64% rename from src/Types/SharesExchange200ResponseVisitorIdentityRequestFieldsOrganization.php rename to src/Types/GrantsExchange200ResponseVisitorIdentityRequestFieldsOrganization.php index e3fd1252..20f85542 100644 --- a/src/Types/SharesExchange200ResponseVisitorIdentityRequestFieldsOrganization.php +++ b/src/Types/GrantsExchange200ResponseVisitorIdentityRequestFieldsOrganization.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesExchange200ResponseVisitorIdentityRequestFieldsOrganization: string +enum GrantsExchange200ResponseVisitorIdentityRequestFieldsOrganization: string { case Required = "required"; case Optional = "optional"; diff --git a/src/Types/SharesExchange200ResponseVisitorIdentityRequestFieldsOrganizationalUnit.php b/src/Types/GrantsExchange200ResponseVisitorIdentityRequestFieldsOrganizationalUnit.php similarity index 65% rename from src/Types/SharesExchange200ResponseVisitorIdentityRequestFieldsOrganizationalUnit.php rename to src/Types/GrantsExchange200ResponseVisitorIdentityRequestFieldsOrganizationalUnit.php index 2dd8ddf0..ffaddc03 100644 --- a/src/Types/SharesExchange200ResponseVisitorIdentityRequestFieldsOrganizationalUnit.php +++ b/src/Types/GrantsExchange200ResponseVisitorIdentityRequestFieldsOrganizationalUnit.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesExchange200ResponseVisitorIdentityRequestFieldsOrganizationalUnit: string +enum GrantsExchange200ResponseVisitorIdentityRequestFieldsOrganizationalUnit: string { case Required = "required"; case Optional = "optional"; diff --git a/src/Types/SharesExchange200ResponseVisitorIdentityRequestFieldsTitle.php b/src/Types/GrantsExchange200ResponseVisitorIdentityRequestFieldsTitle.php similarity index 63% rename from src/Types/SharesExchange200ResponseVisitorIdentityRequestFieldsTitle.php rename to src/Types/GrantsExchange200ResponseVisitorIdentityRequestFieldsTitle.php index 1b51b736..1e937d14 100644 --- a/src/Types/SharesExchange200ResponseVisitorIdentityRequestFieldsTitle.php +++ b/src/Types/GrantsExchange200ResponseVisitorIdentityRequestFieldsTitle.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesExchange200ResponseVisitorIdentityRequestFieldsTitle: string +enum GrantsExchange200ResponseVisitorIdentityRequestFieldsTitle: string { case Required = "required"; case Optional = "optional"; diff --git a/src/Types/SharesExchange200ResponseVisitorIdentityRequestInvalidItem.php b/src/Types/GrantsExchange200ResponseVisitorIdentityRequestInvalidItem.php similarity index 78% rename from src/Types/SharesExchange200ResponseVisitorIdentityRequestInvalidItem.php rename to src/Types/GrantsExchange200ResponseVisitorIdentityRequestInvalidItem.php index e9480261..dc172532 100644 --- a/src/Types/SharesExchange200ResponseVisitorIdentityRequestInvalidItem.php +++ b/src/Types/GrantsExchange200ResponseVisitorIdentityRequestInvalidItem.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesExchange200ResponseVisitorIdentityRequestInvalidItem: string +enum GrantsExchange200ResponseVisitorIdentityRequestInvalidItem: string { case DisplayName = "displayName"; case Email = "email"; diff --git a/src/Types/SharesExchange200ResponseVisitorIdentityRequestMissingItem.php b/src/Types/GrantsExchange200ResponseVisitorIdentityRequestMissingItem.php similarity index 78% rename from src/Types/SharesExchange200ResponseVisitorIdentityRequestMissingItem.php rename to src/Types/GrantsExchange200ResponseVisitorIdentityRequestMissingItem.php index 41152e18..877f4eaf 100644 --- a/src/Types/SharesExchange200ResponseVisitorIdentityRequestMissingItem.php +++ b/src/Types/GrantsExchange200ResponseVisitorIdentityRequestMissingItem.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesExchange200ResponseVisitorIdentityRequestMissingItem: string +enum GrantsExchange200ResponseVisitorIdentityRequestMissingItem: string { case DisplayName = "displayName"; case Email = "email"; diff --git a/src/Types/SharesGet200Response.php b/src/Types/GrantsGet200Response.php similarity index 59% rename from src/Types/SharesGet200Response.php rename to src/Types/GrantsGet200Response.php index fa7434c3..8c9207a9 100644 --- a/src/Types/SharesGet200Response.php +++ b/src/Types/GrantsGet200Response.php @@ -5,23 +5,23 @@ use CloudPDF\Core\Json\JsonSerializableType; use CloudPDF\Core\Json\JsonProperty; -class SharesGet200Response extends JsonSerializableType +class GrantsGet200Response extends JsonSerializableType { /** - * @var SharesGet200ResponseShare $share + * @var GrantsGet200ResponseGrant $grant */ - #[JsonProperty('share')] - public SharesGet200ResponseShare $share; + #[JsonProperty('grant')] + public GrantsGet200ResponseGrant $grant; /** * @param array{ - * share: SharesGet200ResponseShare, + * grant: GrantsGet200ResponseGrant, * } $values */ public function __construct( array $values, ) { - $this->share = $values['share']; + $this->grant = $values['grant']; } /** diff --git a/src/Types/SharesGet200ResponseShare.php b/src/Types/GrantsGet200ResponseGrant.php similarity index 84% rename from src/Types/SharesGet200ResponseShare.php rename to src/Types/GrantsGet200ResponseGrant.php index 15ea2304..6dc1b2fe 100644 --- a/src/Types/SharesGet200ResponseShare.php +++ b/src/Types/GrantsGet200ResponseGrant.php @@ -6,7 +6,7 @@ use CloudPDF\Core\Json\JsonProperty; use CloudPDF\Core\Types\ArrayType; -class SharesGet200ResponseShare extends JsonSerializableType +class GrantsGet200ResponseGrant extends JsonSerializableType { /** * @var string $id @@ -27,7 +27,13 @@ class SharesGet200ResponseShare extends JsonSerializableType public string $docId; /** - * @var value-of $layerMode + * @var ?string $name + */ + #[JsonProperty('name')] + public ?string $name; + + /** + * @var value-of $layerMode */ #[JsonProperty('layerMode')] public string $layerMode; @@ -51,10 +57,10 @@ class SharesGet200ResponseShare extends JsonSerializableType public ?float $visitorIdleSeconds; /** - * @var ?SharesGet200ResponseShareVisitorIdentity $visitorIdentity + * @var ?GrantsGet200ResponseGrantVisitorIdentity $visitorIdentity */ #[JsonProperty('visitorIdentity')] - public ?SharesGet200ResponseShareVisitorIdentity $visitorIdentity; + public ?GrantsGet200ResponseGrantVisitorIdentity $visitorIdentity; /** * @var ?Identity $identity @@ -75,10 +81,10 @@ class SharesGet200ResponseShare extends JsonSerializableType public ?array $origins; /** - * @var bool $passwordProtected + * @var bool $passphraseProtected */ - #[JsonProperty('passwordProtected')] - public bool $passwordProtected; + #[JsonProperty('passphraseProtected')] + public bool $passphraseProtected; /** * @var float $sessionTtlSeconds @@ -139,19 +145,20 @@ class SharesGet200ResponseShare extends JsonSerializableType * id: string, * tenantId: string, * docId: string, - * layerMode: value-of, + * layerMode: value-of, * keepVisitorLayers: bool, * scope: array, - * passwordProtected: bool, + * passphraseProtected: bool, * sessionTtlSeconds: float, * disabled: bool, * exchangeCount: float, * createdBy: string, * createdAt: float, * updatedAt: float, + * name?: ?string, * layerName?: ?string, * visitorIdleSeconds?: ?float, - * visitorIdentity?: ?SharesGet200ResponseShareVisitorIdentity, + * visitorIdentity?: ?GrantsGet200ResponseGrantVisitorIdentity, * identity?: ?Identity, * origins?: ?array, * archivedAt?: ?float, @@ -165,6 +172,7 @@ public function __construct( $this->id = $values['id']; $this->tenantId = $values['tenantId']; $this->docId = $values['docId']; + $this->name = $values['name'] ?? null; $this->layerMode = $values['layerMode']; $this->layerName = $values['layerName'] ?? null; $this->keepVisitorLayers = $values['keepVisitorLayers']; @@ -173,7 +181,7 @@ public function __construct( $this->identity = $values['identity'] ?? null; $this->scope = $values['scope']; $this->origins = $values['origins'] ?? null; - $this->passwordProtected = $values['passwordProtected']; + $this->passphraseProtected = $values['passphraseProtected']; $this->sessionTtlSeconds = $values['sessionTtlSeconds']; $this->disabled = $values['disabled']; $this->archivedAt = $values['archivedAt'] ?? null; diff --git a/src/Types/SharesGet200ResponseShareLayerMode.php b/src/Types/GrantsGet200ResponseGrantLayerMode.php similarity index 68% rename from src/Types/SharesGet200ResponseShareLayerMode.php rename to src/Types/GrantsGet200ResponseGrantLayerMode.php index b650620d..7e8fa82c 100644 --- a/src/Types/SharesGet200ResponseShareLayerMode.php +++ b/src/Types/GrantsGet200ResponseGrantLayerMode.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesGet200ResponseShareLayerMode: string +enum GrantsGet200ResponseGrantLayerMode: string { case Shared = "shared"; case PerVisitor = "per-visitor"; diff --git a/src/Types/SharesGet200ResponseShareVisitorIdentity.php b/src/Types/GrantsGet200ResponseGrantVisitorIdentity.php similarity index 71% rename from src/Types/SharesGet200ResponseShareVisitorIdentity.php rename to src/Types/GrantsGet200ResponseGrantVisitorIdentity.php index 01690b54..280c78b2 100644 --- a/src/Types/SharesGet200ResponseShareVisitorIdentity.php +++ b/src/Types/GrantsGet200ResponseGrantVisitorIdentity.php @@ -5,16 +5,16 @@ use CloudPDF\Core\Json\JsonSerializableType; use CloudPDF\Core\Json\JsonProperty; -class SharesGet200ResponseShareVisitorIdentity extends JsonSerializableType +class GrantsGet200ResponseGrantVisitorIdentity extends JsonSerializableType { /** - * @var SharesGet200ResponseShareVisitorIdentityFields $fields + * @var GrantsGet200ResponseGrantVisitorIdentityFields $fields */ #[JsonProperty('fields')] - public SharesGet200ResponseShareVisitorIdentityFields $fields; + public GrantsGet200ResponseGrantVisitorIdentityFields $fields; /** - * @var value-of $ask + * @var value-of $ask */ #[JsonProperty('ask')] public string $ask; @@ -33,8 +33,8 @@ class SharesGet200ResponseShareVisitorIdentity extends JsonSerializableType /** * @param array{ - * fields: SharesGet200ResponseShareVisitorIdentityFields, - * ask: value-of, + * fields: GrantsGet200ResponseGrantVisitorIdentityFields, + * ask: value-of, * purpose?: ?string, * privacyUrl?: ?string, * } $values diff --git a/src/Types/SharesGet200ResponseShareVisitorIdentityAsk.php b/src/Types/GrantsGet200ResponseGrantVisitorIdentityAsk.php similarity index 67% rename from src/Types/SharesGet200ResponseShareVisitorIdentityAsk.php rename to src/Types/GrantsGet200ResponseGrantVisitorIdentityAsk.php index c89f49d9..abf1964b 100644 --- a/src/Types/SharesGet200ResponseShareVisitorIdentityAsk.php +++ b/src/Types/GrantsGet200ResponseGrantVisitorIdentityAsk.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesGet200ResponseShareVisitorIdentityAsk: string +enum GrantsGet200ResponseGrantVisitorIdentityAsk: string { case OnOpen = "on-open"; case BeforeFirstChange = "before-first-change"; diff --git a/src/Types/SharesGet200ResponseShareVisitorIdentityFields.php b/src/Types/GrantsGet200ResponseGrantVisitorIdentityFields.php similarity index 64% rename from src/Types/SharesGet200ResponseShareVisitorIdentityFields.php rename to src/Types/GrantsGet200ResponseGrantVisitorIdentityFields.php index 9002b97e..91c06de4 100644 --- a/src/Types/SharesGet200ResponseShareVisitorIdentityFields.php +++ b/src/Types/GrantsGet200ResponseGrantVisitorIdentityFields.php @@ -5,45 +5,45 @@ use CloudPDF\Core\Json\JsonSerializableType; use CloudPDF\Core\Json\JsonProperty; -class SharesGet200ResponseShareVisitorIdentityFields extends JsonSerializableType +class GrantsGet200ResponseGrantVisitorIdentityFields extends JsonSerializableType { /** - * @var ?value-of $displayName + * @var ?value-of $displayName */ #[JsonProperty('displayName')] public ?string $displayName; /** - * @var ?value-of $email + * @var ?value-of $email */ #[JsonProperty('email')] public ?string $email; /** - * @var ?value-of $title + * @var ?value-of $title */ #[JsonProperty('title')] public ?string $title; /** - * @var ?value-of $organization + * @var ?value-of $organization */ #[JsonProperty('organization')] public ?string $organization; /** - * @var ?value-of $organizationalUnit + * @var ?value-of $organizationalUnit */ #[JsonProperty('organizationalUnit')] public ?string $organizationalUnit; /** * @param array{ - * displayName?: ?value-of, - * email?: ?value-of, - * title?: ?value-of, - * organization?: ?value-of, - * organizationalUnit?: ?value-of, + * displayName?: ?value-of, + * email?: ?value-of, + * title?: ?value-of, + * organization?: ?value-of, + * organizationalUnit?: ?value-of, * } $values */ public function __construct( diff --git a/src/Types/SharesGet200ResponseShareVisitorIdentityFieldsDisplayName.php b/src/Types/GrantsGet200ResponseGrantVisitorIdentityFieldsDisplayName.php similarity index 63% rename from src/Types/SharesGet200ResponseShareVisitorIdentityFieldsDisplayName.php rename to src/Types/GrantsGet200ResponseGrantVisitorIdentityFieldsDisplayName.php index 998fc84c..6d6a2325 100644 --- a/src/Types/SharesGet200ResponseShareVisitorIdentityFieldsDisplayName.php +++ b/src/Types/GrantsGet200ResponseGrantVisitorIdentityFieldsDisplayName.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesGet200ResponseShareVisitorIdentityFieldsDisplayName: string +enum GrantsGet200ResponseGrantVisitorIdentityFieldsDisplayName: string { case Required = "required"; case Optional = "optional"; diff --git a/src/Types/SharesGet200ResponseShareVisitorIdentityFieldsEmail.php b/src/Types/GrantsGet200ResponseGrantVisitorIdentityFieldsEmail.php similarity index 61% rename from src/Types/SharesGet200ResponseShareVisitorIdentityFieldsEmail.php rename to src/Types/GrantsGet200ResponseGrantVisitorIdentityFieldsEmail.php index b152d307..d7e1a54c 100644 --- a/src/Types/SharesGet200ResponseShareVisitorIdentityFieldsEmail.php +++ b/src/Types/GrantsGet200ResponseGrantVisitorIdentityFieldsEmail.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesGet200ResponseShareVisitorIdentityFieldsEmail: string +enum GrantsGet200ResponseGrantVisitorIdentityFieldsEmail: string { case Required = "required"; case Optional = "optional"; diff --git a/src/Shares/Types/SharesUpdateRequestVisitorIdentityFieldsOrganization.php b/src/Types/GrantsGet200ResponseGrantVisitorIdentityFieldsOrganization.php similarity index 80% rename from src/Shares/Types/SharesUpdateRequestVisitorIdentityFieldsOrganization.php rename to src/Types/GrantsGet200ResponseGrantVisitorIdentityFieldsOrganization.php index 1b9c3e05..efa9accb 100644 --- a/src/Shares/Types/SharesUpdateRequestVisitorIdentityFieldsOrganization.php +++ b/src/Types/GrantsGet200ResponseGrantVisitorIdentityFieldsOrganization.php @@ -1,8 +1,8 @@ $shares + * @var array $grants */ - #[JsonProperty('shares'), ArrayType([SharesList200ResponseSharesItem::class])] - public array $shares; + #[JsonProperty('grants'), ArrayType([GrantsList200ResponseGrantsItem::class])] + public array $grants; /** * @var ?string $nextCursor @@ -22,14 +22,14 @@ class SharesList200Response extends JsonSerializableType /** * @param array{ - * shares: array, + * grants: array, * nextCursor?: ?string, * } $values */ public function __construct( array $values, ) { - $this->shares = $values['shares']; + $this->grants = $values['grants']; $this->nextCursor = $values['nextCursor'] ?? null; } diff --git a/src/Types/SharesList200ResponseSharesItem.php b/src/Types/GrantsList200ResponseGrantsItem.php similarity index 84% rename from src/Types/SharesList200ResponseSharesItem.php rename to src/Types/GrantsList200ResponseGrantsItem.php index abd8621d..460a0dd1 100644 --- a/src/Types/SharesList200ResponseSharesItem.php +++ b/src/Types/GrantsList200ResponseGrantsItem.php @@ -6,7 +6,7 @@ use CloudPDF\Core\Json\JsonProperty; use CloudPDF\Core\Types\ArrayType; -class SharesList200ResponseSharesItem extends JsonSerializableType +class GrantsList200ResponseGrantsItem extends JsonSerializableType { /** * @var string $id @@ -27,7 +27,13 @@ class SharesList200ResponseSharesItem extends JsonSerializableType public string $docId; /** - * @var value-of $layerMode + * @var ?string $name + */ + #[JsonProperty('name')] + public ?string $name; + + /** + * @var value-of $layerMode */ #[JsonProperty('layerMode')] public string $layerMode; @@ -51,10 +57,10 @@ class SharesList200ResponseSharesItem extends JsonSerializableType public ?float $visitorIdleSeconds; /** - * @var ?SharesList200ResponseSharesItemVisitorIdentity $visitorIdentity + * @var ?GrantsList200ResponseGrantsItemVisitorIdentity $visitorIdentity */ #[JsonProperty('visitorIdentity')] - public ?SharesList200ResponseSharesItemVisitorIdentity $visitorIdentity; + public ?GrantsList200ResponseGrantsItemVisitorIdentity $visitorIdentity; /** * @var ?Identity $identity @@ -75,10 +81,10 @@ class SharesList200ResponseSharesItem extends JsonSerializableType public ?array $origins; /** - * @var bool $passwordProtected + * @var bool $passphraseProtected */ - #[JsonProperty('passwordProtected')] - public bool $passwordProtected; + #[JsonProperty('passphraseProtected')] + public bool $passphraseProtected; /** * @var float $sessionTtlSeconds @@ -139,19 +145,20 @@ class SharesList200ResponseSharesItem extends JsonSerializableType * id: string, * tenantId: string, * docId: string, - * layerMode: value-of, + * layerMode: value-of, * keepVisitorLayers: bool, * scope: array, - * passwordProtected: bool, + * passphraseProtected: bool, * sessionTtlSeconds: float, * disabled: bool, * exchangeCount: float, * createdBy: string, * createdAt: float, * updatedAt: float, + * name?: ?string, * layerName?: ?string, * visitorIdleSeconds?: ?float, - * visitorIdentity?: ?SharesList200ResponseSharesItemVisitorIdentity, + * visitorIdentity?: ?GrantsList200ResponseGrantsItemVisitorIdentity, * identity?: ?Identity, * origins?: ?array, * archivedAt?: ?float, @@ -165,6 +172,7 @@ public function __construct( $this->id = $values['id']; $this->tenantId = $values['tenantId']; $this->docId = $values['docId']; + $this->name = $values['name'] ?? null; $this->layerMode = $values['layerMode']; $this->layerName = $values['layerName'] ?? null; $this->keepVisitorLayers = $values['keepVisitorLayers']; @@ -173,7 +181,7 @@ public function __construct( $this->identity = $values['identity'] ?? null; $this->scope = $values['scope']; $this->origins = $values['origins'] ?? null; - $this->passwordProtected = $values['passwordProtected']; + $this->passphraseProtected = $values['passphraseProtected']; $this->sessionTtlSeconds = $values['sessionTtlSeconds']; $this->disabled = $values['disabled']; $this->archivedAt = $values['archivedAt'] ?? null; diff --git a/src/Types/GrantsList200ResponseGrantsItemLayerMode.php b/src/Types/GrantsList200ResponseGrantsItemLayerMode.php new file mode 100644 index 00000000..c3726883 --- /dev/null +++ b/src/Types/GrantsList200ResponseGrantsItemLayerMode.php @@ -0,0 +1,9 @@ + $ask + * @var value-of $ask */ #[JsonProperty('ask')] public string $ask; @@ -33,8 +33,8 @@ class SharesList200ResponseSharesItemVisitorIdentity extends JsonSerializableTyp /** * @param array{ - * fields: SharesList200ResponseSharesItemVisitorIdentityFields, - * ask: value-of, + * fields: GrantsList200ResponseGrantsItemVisitorIdentityFields, + * ask: value-of, * purpose?: ?string, * privacyUrl?: ?string, * } $values diff --git a/src/Types/SharesList200ResponseSharesItemVisitorIdentityAsk.php b/src/Types/GrantsList200ResponseGrantsItemVisitorIdentityAsk.php similarity index 65% rename from src/Types/SharesList200ResponseSharesItemVisitorIdentityAsk.php rename to src/Types/GrantsList200ResponseGrantsItemVisitorIdentityAsk.php index f4db6708..adc0d7a6 100644 --- a/src/Types/SharesList200ResponseSharesItemVisitorIdentityAsk.php +++ b/src/Types/GrantsList200ResponseGrantsItemVisitorIdentityAsk.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesList200ResponseSharesItemVisitorIdentityAsk: string +enum GrantsList200ResponseGrantsItemVisitorIdentityAsk: string { case OnOpen = "on-open"; case BeforeFirstChange = "before-first-change"; diff --git a/src/Types/SharesList200ResponseSharesItemVisitorIdentityFields.php b/src/Types/GrantsList200ResponseGrantsItemVisitorIdentityFields.php similarity index 65% rename from src/Types/SharesList200ResponseSharesItemVisitorIdentityFields.php rename to src/Types/GrantsList200ResponseGrantsItemVisitorIdentityFields.php index 091f0597..a8896a46 100644 --- a/src/Types/SharesList200ResponseSharesItemVisitorIdentityFields.php +++ b/src/Types/GrantsList200ResponseGrantsItemVisitorIdentityFields.php @@ -5,45 +5,45 @@ use CloudPDF\Core\Json\JsonSerializableType; use CloudPDF\Core\Json\JsonProperty; -class SharesList200ResponseSharesItemVisitorIdentityFields extends JsonSerializableType +class GrantsList200ResponseGrantsItemVisitorIdentityFields extends JsonSerializableType { /** - * @var ?value-of $displayName + * @var ?value-of $displayName */ #[JsonProperty('displayName')] public ?string $displayName; /** - * @var ?value-of $email + * @var ?value-of $email */ #[JsonProperty('email')] public ?string $email; /** - * @var ?value-of $title + * @var ?value-of $title */ #[JsonProperty('title')] public ?string $title; /** - * @var ?value-of $organization + * @var ?value-of $organization */ #[JsonProperty('organization')] public ?string $organization; /** - * @var ?value-of $organizationalUnit + * @var ?value-of $organizationalUnit */ #[JsonProperty('organizationalUnit')] public ?string $organizationalUnit; /** * @param array{ - * displayName?: ?value-of, - * email?: ?value-of, - * title?: ?value-of, - * organization?: ?value-of, - * organizationalUnit?: ?value-of, + * displayName?: ?value-of, + * email?: ?value-of, + * title?: ?value-of, + * organization?: ?value-of, + * organizationalUnit?: ?value-of, * } $values */ public function __construct( diff --git a/src/Types/SharesList200ResponseSharesItemVisitorIdentityFieldsDisplayName.php b/src/Types/GrantsList200ResponseGrantsItemVisitorIdentityFieldsDisplayName.php similarity index 64% rename from src/Types/SharesList200ResponseSharesItemVisitorIdentityFieldsDisplayName.php rename to src/Types/GrantsList200ResponseGrantsItemVisitorIdentityFieldsDisplayName.php index e7835df5..6dc3198f 100644 --- a/src/Types/SharesList200ResponseSharesItemVisitorIdentityFieldsDisplayName.php +++ b/src/Types/GrantsList200ResponseGrantsItemVisitorIdentityFieldsDisplayName.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesList200ResponseSharesItemVisitorIdentityFieldsDisplayName: string +enum GrantsList200ResponseGrantsItemVisitorIdentityFieldsDisplayName: string { case Required = "required"; case Optional = "optional"; diff --git a/src/Types/SharesList200ResponseSharesItemVisitorIdentityFieldsEmail.php b/src/Types/GrantsList200ResponseGrantsItemVisitorIdentityFieldsEmail.php similarity index 63% rename from src/Types/SharesList200ResponseSharesItemVisitorIdentityFieldsEmail.php rename to src/Types/GrantsList200ResponseGrantsItemVisitorIdentityFieldsEmail.php index f5269593..253f78b4 100644 --- a/src/Types/SharesList200ResponseSharesItemVisitorIdentityFieldsEmail.php +++ b/src/Types/GrantsList200ResponseGrantsItemVisitorIdentityFieldsEmail.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesList200ResponseSharesItemVisitorIdentityFieldsEmail: string +enum GrantsList200ResponseGrantsItemVisitorIdentityFieldsEmail: string { case Required = "required"; case Optional = "optional"; diff --git a/src/Types/SharesList200ResponseSharesItemVisitorIdentityFieldsOrganization.php b/src/Types/GrantsList200ResponseGrantsItemVisitorIdentityFieldsOrganization.php similarity index 64% rename from src/Types/SharesList200ResponseSharesItemVisitorIdentityFieldsOrganization.php rename to src/Types/GrantsList200ResponseGrantsItemVisitorIdentityFieldsOrganization.php index 6027b72a..e1b543a0 100644 --- a/src/Types/SharesList200ResponseSharesItemVisitorIdentityFieldsOrganization.php +++ b/src/Types/GrantsList200ResponseGrantsItemVisitorIdentityFieldsOrganization.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesList200ResponseSharesItemVisitorIdentityFieldsOrganization: string +enum GrantsList200ResponseGrantsItemVisitorIdentityFieldsOrganization: string { case Required = "required"; case Optional = "optional"; diff --git a/src/Types/SharesList200ResponseSharesItemVisitorIdentityFieldsOrganizationalUnit.php b/src/Types/GrantsList200ResponseGrantsItemVisitorIdentityFieldsOrganizationalUnit.php similarity index 65% rename from src/Types/SharesList200ResponseSharesItemVisitorIdentityFieldsOrganizationalUnit.php rename to src/Types/GrantsList200ResponseGrantsItemVisitorIdentityFieldsOrganizationalUnit.php index b10cc282..4ca90228 100644 --- a/src/Types/SharesList200ResponseSharesItemVisitorIdentityFieldsOrganizationalUnit.php +++ b/src/Types/GrantsList200ResponseGrantsItemVisitorIdentityFieldsOrganizationalUnit.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesList200ResponseSharesItemVisitorIdentityFieldsOrganizationalUnit: string +enum GrantsList200ResponseGrantsItemVisitorIdentityFieldsOrganizationalUnit: string { case Required = "required"; case Optional = "optional"; diff --git a/src/Types/SharesList200ResponseSharesItemVisitorIdentityFieldsTitle.php b/src/Types/GrantsList200ResponseGrantsItemVisitorIdentityFieldsTitle.php similarity index 63% rename from src/Types/SharesList200ResponseSharesItemVisitorIdentityFieldsTitle.php rename to src/Types/GrantsList200ResponseGrantsItemVisitorIdentityFieldsTitle.php index 9a62930a..0f62635b 100644 --- a/src/Types/SharesList200ResponseSharesItemVisitorIdentityFieldsTitle.php +++ b/src/Types/GrantsList200ResponseGrantsItemVisitorIdentityFieldsTitle.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesList200ResponseSharesItemVisitorIdentityFieldsTitle: string +enum GrantsList200ResponseGrantsItemVisitorIdentityFieldsTitle: string { case Required = "required"; case Optional = "optional"; diff --git a/src/Types/SharesUpdate200Response.php b/src/Types/GrantsUpdate200Response.php similarity index 58% rename from src/Types/SharesUpdate200Response.php rename to src/Types/GrantsUpdate200Response.php index 47c8cb3b..98a848da 100644 --- a/src/Types/SharesUpdate200Response.php +++ b/src/Types/GrantsUpdate200Response.php @@ -5,23 +5,23 @@ use CloudPDF\Core\Json\JsonSerializableType; use CloudPDF\Core\Json\JsonProperty; -class SharesUpdate200Response extends JsonSerializableType +class GrantsUpdate200Response extends JsonSerializableType { /** - * @var SharesUpdate200ResponseShare $share + * @var GrantsUpdate200ResponseGrant $grant */ - #[JsonProperty('share')] - public SharesUpdate200ResponseShare $share; + #[JsonProperty('grant')] + public GrantsUpdate200ResponseGrant $grant; /** * @param array{ - * share: SharesUpdate200ResponseShare, + * grant: GrantsUpdate200ResponseGrant, * } $values */ public function __construct( array $values, ) { - $this->share = $values['share']; + $this->grant = $values['grant']; } /** diff --git a/src/Types/SharesCreate200ResponseShare.php b/src/Types/GrantsUpdate200ResponseGrant.php similarity index 84% rename from src/Types/SharesCreate200ResponseShare.php rename to src/Types/GrantsUpdate200ResponseGrant.php index d696ec1a..b662d460 100644 --- a/src/Types/SharesCreate200ResponseShare.php +++ b/src/Types/GrantsUpdate200ResponseGrant.php @@ -6,7 +6,7 @@ use CloudPDF\Core\Json\JsonProperty; use CloudPDF\Core\Types\ArrayType; -class SharesCreate200ResponseShare extends JsonSerializableType +class GrantsUpdate200ResponseGrant extends JsonSerializableType { /** * @var string $id @@ -27,7 +27,13 @@ class SharesCreate200ResponseShare extends JsonSerializableType public string $docId; /** - * @var value-of $layerMode + * @var ?string $name + */ + #[JsonProperty('name')] + public ?string $name; + + /** + * @var value-of $layerMode */ #[JsonProperty('layerMode')] public string $layerMode; @@ -51,10 +57,10 @@ class SharesCreate200ResponseShare extends JsonSerializableType public ?float $visitorIdleSeconds; /** - * @var ?SharesCreate200ResponseShareVisitorIdentity $visitorIdentity + * @var ?GrantsUpdate200ResponseGrantVisitorIdentity $visitorIdentity */ #[JsonProperty('visitorIdentity')] - public ?SharesCreate200ResponseShareVisitorIdentity $visitorIdentity; + public ?GrantsUpdate200ResponseGrantVisitorIdentity $visitorIdentity; /** * @var ?Identity $identity @@ -75,10 +81,10 @@ class SharesCreate200ResponseShare extends JsonSerializableType public ?array $origins; /** - * @var bool $passwordProtected + * @var bool $passphraseProtected */ - #[JsonProperty('passwordProtected')] - public bool $passwordProtected; + #[JsonProperty('passphraseProtected')] + public bool $passphraseProtected; /** * @var float $sessionTtlSeconds @@ -139,19 +145,20 @@ class SharesCreate200ResponseShare extends JsonSerializableType * id: string, * tenantId: string, * docId: string, - * layerMode: value-of, + * layerMode: value-of, * keepVisitorLayers: bool, * scope: array, - * passwordProtected: bool, + * passphraseProtected: bool, * sessionTtlSeconds: float, * disabled: bool, * exchangeCount: float, * createdBy: string, * createdAt: float, * updatedAt: float, + * name?: ?string, * layerName?: ?string, * visitorIdleSeconds?: ?float, - * visitorIdentity?: ?SharesCreate200ResponseShareVisitorIdentity, + * visitorIdentity?: ?GrantsUpdate200ResponseGrantVisitorIdentity, * identity?: ?Identity, * origins?: ?array, * archivedAt?: ?float, @@ -165,6 +172,7 @@ public function __construct( $this->id = $values['id']; $this->tenantId = $values['tenantId']; $this->docId = $values['docId']; + $this->name = $values['name'] ?? null; $this->layerMode = $values['layerMode']; $this->layerName = $values['layerName'] ?? null; $this->keepVisitorLayers = $values['keepVisitorLayers']; @@ -173,7 +181,7 @@ public function __construct( $this->identity = $values['identity'] ?? null; $this->scope = $values['scope']; $this->origins = $values['origins'] ?? null; - $this->passwordProtected = $values['passwordProtected']; + $this->passphraseProtected = $values['passphraseProtected']; $this->sessionTtlSeconds = $values['sessionTtlSeconds']; $this->disabled = $values['disabled']; $this->archivedAt = $values['archivedAt'] ?? null; diff --git a/src/Types/SharesCreate200ResponseShareLayerMode.php b/src/Types/GrantsUpdate200ResponseGrantLayerMode.php similarity index 66% rename from src/Types/SharesCreate200ResponseShareLayerMode.php rename to src/Types/GrantsUpdate200ResponseGrantLayerMode.php index 5489269a..db278daa 100644 --- a/src/Types/SharesCreate200ResponseShareLayerMode.php +++ b/src/Types/GrantsUpdate200ResponseGrantLayerMode.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesCreate200ResponseShareLayerMode: string +enum GrantsUpdate200ResponseGrantLayerMode: string { case Shared = "shared"; case PerVisitor = "per-visitor"; diff --git a/src/Types/SharesUpdate200ResponseShareVisitorIdentity.php b/src/Types/GrantsUpdate200ResponseGrantVisitorIdentity.php similarity index 72% rename from src/Types/SharesUpdate200ResponseShareVisitorIdentity.php rename to src/Types/GrantsUpdate200ResponseGrantVisitorIdentity.php index 30f18f01..868e1286 100644 --- a/src/Types/SharesUpdate200ResponseShareVisitorIdentity.php +++ b/src/Types/GrantsUpdate200ResponseGrantVisitorIdentity.php @@ -5,16 +5,16 @@ use CloudPDF\Core\Json\JsonSerializableType; use CloudPDF\Core\Json\JsonProperty; -class SharesUpdate200ResponseShareVisitorIdentity extends JsonSerializableType +class GrantsUpdate200ResponseGrantVisitorIdentity extends JsonSerializableType { /** - * @var SharesUpdate200ResponseShareVisitorIdentityFields $fields + * @var GrantsUpdate200ResponseGrantVisitorIdentityFields $fields */ #[JsonProperty('fields')] - public SharesUpdate200ResponseShareVisitorIdentityFields $fields; + public GrantsUpdate200ResponseGrantVisitorIdentityFields $fields; /** - * @var value-of $ask + * @var value-of $ask */ #[JsonProperty('ask')] public string $ask; @@ -33,8 +33,8 @@ class SharesUpdate200ResponseShareVisitorIdentity extends JsonSerializableType /** * @param array{ - * fields: SharesUpdate200ResponseShareVisitorIdentityFields, - * ask: value-of, + * fields: GrantsUpdate200ResponseGrantVisitorIdentityFields, + * ask: value-of, * purpose?: ?string, * privacyUrl?: ?string, * } $values diff --git a/src/Types/SharesCreate200ResponseShareVisitorIdentityAsk.php b/src/Types/GrantsUpdate200ResponseGrantVisitorIdentityAsk.php similarity index 66% rename from src/Types/SharesCreate200ResponseShareVisitorIdentityAsk.php rename to src/Types/GrantsUpdate200ResponseGrantVisitorIdentityAsk.php index 182096b1..6549e30f 100644 --- a/src/Types/SharesCreate200ResponseShareVisitorIdentityAsk.php +++ b/src/Types/GrantsUpdate200ResponseGrantVisitorIdentityAsk.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesCreate200ResponseShareVisitorIdentityAsk: string +enum GrantsUpdate200ResponseGrantVisitorIdentityAsk: string { case OnOpen = "on-open"; case BeforeFirstChange = "before-first-change"; diff --git a/src/Types/SharesUpdate200ResponseShareVisitorIdentityFields.php b/src/Types/GrantsUpdate200ResponseGrantVisitorIdentityFields.php similarity index 64% rename from src/Types/SharesUpdate200ResponseShareVisitorIdentityFields.php rename to src/Types/GrantsUpdate200ResponseGrantVisitorIdentityFields.php index e88eeadb..675f8e46 100644 --- a/src/Types/SharesUpdate200ResponseShareVisitorIdentityFields.php +++ b/src/Types/GrantsUpdate200ResponseGrantVisitorIdentityFields.php @@ -5,45 +5,45 @@ use CloudPDF\Core\Json\JsonSerializableType; use CloudPDF\Core\Json\JsonProperty; -class SharesUpdate200ResponseShareVisitorIdentityFields extends JsonSerializableType +class GrantsUpdate200ResponseGrantVisitorIdentityFields extends JsonSerializableType { /** - * @var ?value-of $displayName + * @var ?value-of $displayName */ #[JsonProperty('displayName')] public ?string $displayName; /** - * @var ?value-of $email + * @var ?value-of $email */ #[JsonProperty('email')] public ?string $email; /** - * @var ?value-of $title + * @var ?value-of $title */ #[JsonProperty('title')] public ?string $title; /** - * @var ?value-of $organization + * @var ?value-of $organization */ #[JsonProperty('organization')] public ?string $organization; /** - * @var ?value-of $organizationalUnit + * @var ?value-of $organizationalUnit */ #[JsonProperty('organizationalUnit')] public ?string $organizationalUnit; /** * @param array{ - * displayName?: ?value-of, - * email?: ?value-of, - * title?: ?value-of, - * organization?: ?value-of, - * organizationalUnit?: ?value-of, + * displayName?: ?value-of, + * email?: ?value-of, + * title?: ?value-of, + * organization?: ?value-of, + * organizationalUnit?: ?value-of, * } $values */ public function __construct( diff --git a/src/Types/SharesCreate200ResponseShareVisitorIdentityFieldsDisplayName.php b/src/Types/GrantsUpdate200ResponseGrantVisitorIdentityFieldsDisplayName.php similarity index 63% rename from src/Types/SharesCreate200ResponseShareVisitorIdentityFieldsDisplayName.php rename to src/Types/GrantsUpdate200ResponseGrantVisitorIdentityFieldsDisplayName.php index f9f11659..8ac8d385 100644 --- a/src/Types/SharesCreate200ResponseShareVisitorIdentityFieldsDisplayName.php +++ b/src/Types/GrantsUpdate200ResponseGrantVisitorIdentityFieldsDisplayName.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesCreate200ResponseShareVisitorIdentityFieldsDisplayName: string +enum GrantsUpdate200ResponseGrantVisitorIdentityFieldsDisplayName: string { case Required = "required"; case Optional = "optional"; diff --git a/src/Types/SharesCreate200ResponseShareVisitorIdentityFieldsTitle.php b/src/Types/GrantsUpdate200ResponseGrantVisitorIdentityFieldsEmail.php similarity index 62% rename from src/Types/SharesCreate200ResponseShareVisitorIdentityFieldsTitle.php rename to src/Types/GrantsUpdate200ResponseGrantVisitorIdentityFieldsEmail.php index 35a7db73..9fde8979 100644 --- a/src/Types/SharesCreate200ResponseShareVisitorIdentityFieldsTitle.php +++ b/src/Types/GrantsUpdate200ResponseGrantVisitorIdentityFieldsEmail.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesCreate200ResponseShareVisitorIdentityFieldsTitle: string +enum GrantsUpdate200ResponseGrantVisitorIdentityFieldsEmail: string { case Required = "required"; case Optional = "optional"; diff --git a/src/Types/SharesUpdate200ResponseShareVisitorIdentityFieldsOrganization.php b/src/Types/GrantsUpdate200ResponseGrantVisitorIdentityFieldsOrganization.php similarity index 63% rename from src/Types/SharesUpdate200ResponseShareVisitorIdentityFieldsOrganization.php rename to src/Types/GrantsUpdate200ResponseGrantVisitorIdentityFieldsOrganization.php index c3716ff6..94890cef 100644 --- a/src/Types/SharesUpdate200ResponseShareVisitorIdentityFieldsOrganization.php +++ b/src/Types/GrantsUpdate200ResponseGrantVisitorIdentityFieldsOrganization.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesUpdate200ResponseShareVisitorIdentityFieldsOrganization: string +enum GrantsUpdate200ResponseGrantVisitorIdentityFieldsOrganization: string { case Required = "required"; case Optional = "optional"; diff --git a/src/Types/SharesUpdate200ResponseShareVisitorIdentityFieldsOrganizationalUnit.php b/src/Types/GrantsUpdate200ResponseGrantVisitorIdentityFieldsOrganizationalUnit.php similarity index 65% rename from src/Types/SharesUpdate200ResponseShareVisitorIdentityFieldsOrganizationalUnit.php rename to src/Types/GrantsUpdate200ResponseGrantVisitorIdentityFieldsOrganizationalUnit.php index 592da01f..f05120f2 100644 --- a/src/Types/SharesUpdate200ResponseShareVisitorIdentityFieldsOrganizationalUnit.php +++ b/src/Types/GrantsUpdate200ResponseGrantVisitorIdentityFieldsOrganizationalUnit.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesUpdate200ResponseShareVisitorIdentityFieldsOrganizationalUnit: string +enum GrantsUpdate200ResponseGrantVisitorIdentityFieldsOrganizationalUnit: string { case Required = "required"; case Optional = "optional"; diff --git a/src/Types/SharesUpdate200ResponseShareVisitorIdentityFieldsTitle.php b/src/Types/GrantsUpdate200ResponseGrantVisitorIdentityFieldsTitle.php similarity index 62% rename from src/Types/SharesUpdate200ResponseShareVisitorIdentityFieldsTitle.php rename to src/Types/GrantsUpdate200ResponseGrantVisitorIdentityFieldsTitle.php index 86a3768a..b240d57b 100644 --- a/src/Types/SharesUpdate200ResponseShareVisitorIdentityFieldsTitle.php +++ b/src/Types/GrantsUpdate200ResponseGrantVisitorIdentityFieldsTitle.php @@ -2,7 +2,7 @@ namespace CloudPDF\Types; -enum SharesUpdate200ResponseShareVisitorIdentityFieldsTitle: string +enum GrantsUpdate200ResponseGrantVisitorIdentityFieldsTitle: string { case Required = "required"; case Optional = "optional"; diff --git a/src/Types/SharesVisitorsList200Response.php b/src/Types/GrantsVisitorsList200Response.php similarity index 74% rename from src/Types/SharesVisitorsList200Response.php rename to src/Types/GrantsVisitorsList200Response.php index 932572be..0cf32f84 100644 --- a/src/Types/SharesVisitorsList200Response.php +++ b/src/Types/GrantsVisitorsList200Response.php @@ -6,12 +6,12 @@ use CloudPDF\Core\Json\JsonProperty; use CloudPDF\Core\Types\ArrayType; -class SharesVisitorsList200Response extends JsonSerializableType +class GrantsVisitorsList200Response extends JsonSerializableType { /** - * @var array $visitors + * @var array $visitors */ - #[JsonProperty('visitors'), ArrayType([SharesVisitorsList200ResponseVisitorsItem::class])] + #[JsonProperty('visitors'), ArrayType([GrantsVisitorsList200ResponseVisitorsItem::class])] public array $visitors; /** @@ -22,7 +22,7 @@ class SharesVisitorsList200Response extends JsonSerializableType /** * @param array{ - * visitors: array, + * visitors: array, * nextCursor?: ?string, * } $values */ diff --git a/src/Types/SharesVisitorsList200ResponseVisitorsItem.php b/src/Types/GrantsVisitorsList200ResponseVisitorsItem.php similarity index 77% rename from src/Types/SharesVisitorsList200ResponseVisitorsItem.php rename to src/Types/GrantsVisitorsList200ResponseVisitorsItem.php index 54ea336e..c420661e 100644 --- a/src/Types/SharesVisitorsList200ResponseVisitorsItem.php +++ b/src/Types/GrantsVisitorsList200ResponseVisitorsItem.php @@ -5,7 +5,7 @@ use CloudPDF\Core\Json\JsonSerializableType; use CloudPDF\Core\Json\JsonProperty; -class SharesVisitorsList200ResponseVisitorsItem extends JsonSerializableType +class GrantsVisitorsList200ResponseVisitorsItem extends JsonSerializableType { /** * @var string $visitorId @@ -14,10 +14,10 @@ class SharesVisitorsList200ResponseVisitorsItem extends JsonSerializableType public string $visitorId; /** - * @var SharesVisitorsList200ResponseVisitorsItemAnswers $answers + * @var GrantsVisitorsList200ResponseVisitorsItemAnswers $answers */ #[JsonProperty('answers')] - public SharesVisitorsList200ResponseVisitorsItemAnswers $answers; + public GrantsVisitorsList200ResponseVisitorsItemAnswers $answers; /** * @var bool $emailVerified @@ -44,20 +44,20 @@ class SharesVisitorsList200ResponseVisitorsItem extends JsonSerializableType public float $lastSeenAt; /** - * @var ?SharesVisitorsList200ResponseVisitorsItemLayer $layer + * @var ?GrantsVisitorsList200ResponseVisitorsItemLayer $layer */ #[JsonProperty('layer')] - public ?SharesVisitorsList200ResponseVisitorsItemLayer $layer; + public ?GrantsVisitorsList200ResponseVisitorsItemLayer $layer; /** * @param array{ * visitorId: string, - * answers: SharesVisitorsList200ResponseVisitorsItemAnswers, + * answers: GrantsVisitorsList200ResponseVisitorsItemAnswers, * emailVerified: bool, * firstSeenAt: float, * lastSeenAt: float, * consentedAt?: ?float, - * layer?: ?SharesVisitorsList200ResponseVisitorsItemLayer, + * layer?: ?GrantsVisitorsList200ResponseVisitorsItemLayer, * } $values */ public function __construct( diff --git a/src/Types/SharesVisitorsList200ResponseVisitorsItemAnswers.php b/src/Types/GrantsVisitorsList200ResponseVisitorsItemAnswers.php similarity index 95% rename from src/Types/SharesVisitorsList200ResponseVisitorsItemAnswers.php rename to src/Types/GrantsVisitorsList200ResponseVisitorsItemAnswers.php index 5e02dea0..b6daf392 100644 --- a/src/Types/SharesVisitorsList200ResponseVisitorsItemAnswers.php +++ b/src/Types/GrantsVisitorsList200ResponseVisitorsItemAnswers.php @@ -5,7 +5,7 @@ use CloudPDF\Core\Json\JsonSerializableType; use CloudPDF\Core\Json\JsonProperty; -class SharesVisitorsList200ResponseVisitorsItemAnswers extends JsonSerializableType +class GrantsVisitorsList200ResponseVisitorsItemAnswers extends JsonSerializableType { /** * @var ?string $displayName diff --git a/src/Types/SharesVisitorsList200ResponseVisitorsItemLayer.php b/src/Types/GrantsVisitorsList200ResponseVisitorsItemLayer.php similarity index 92% rename from src/Types/SharesVisitorsList200ResponseVisitorsItemLayer.php rename to src/Types/GrantsVisitorsList200ResponseVisitorsItemLayer.php index 172f1a52..70e111c4 100644 --- a/src/Types/SharesVisitorsList200ResponseVisitorsItemLayer.php +++ b/src/Types/GrantsVisitorsList200ResponseVisitorsItemLayer.php @@ -5,7 +5,7 @@ use CloudPDF\Core\Json\JsonSerializableType; use CloudPDF\Core\Json\JsonProperty; -class SharesVisitorsList200ResponseVisitorsItemLayer extends JsonSerializableType +class GrantsVisitorsList200ResponseVisitorsItemLayer extends JsonSerializableType { /** * @var string $layerName diff --git a/src/Types/SharesGet200ResponseShareVisitorIdentityFieldsOrganization.php b/src/Types/SharesGet200ResponseShareVisitorIdentityFieldsOrganization.php deleted file mode 100644 index edc94d56..00000000 --- a/src/Types/SharesGet200ResponseShareVisitorIdentityFieldsOrganization.php +++ /dev/null @@ -1,9 +0,0 @@ -