@cloudpdf/sdk 3.0.0-next.1 → 3.0.0-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -46
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +3 -0
- package/dist/cjs/Client.js +9 -4
- package/dist/cjs/CloudPDFClient.d.ts +20 -0
- package/dist/cjs/CloudPDFClient.js +39 -0
- package/dist/cjs/api/errors/ConflictError.d.ts +7 -0
- package/dist/cjs/api/errors/ConflictError.js +54 -0
- package/dist/cjs/api/errors/GoneError.d.ts +7 -0
- package/dist/cjs/api/errors/GoneError.js +54 -0
- package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +7 -0
- package/dist/cjs/api/errors/UnprocessableEntityError.js +54 -0
- package/dist/cjs/api/errors/index.d.ts +3 -0
- package/dist/cjs/api/errors/index.js +3 -0
- package/dist/cjs/api/resources/documents/client/Client.d.ts +14 -5
- package/dist/cjs/api/resources/documents/client/Client.js +26 -14
- package/dist/cjs/api/resources/documents/client/requests/DocumentsInitRequest.d.ts +7 -0
- package/dist/cjs/api/resources/documents/client/requests/DocumentsInitRequest.js +5 -0
- package/dist/cjs/api/resources/documents/client/requests/UploadProxyDocumentsRequest.d.ts +14 -0
- package/dist/cjs/api/resources/documents/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/index.js +3 -1
- package/dist/cjs/api/resources/shares/client/Client.d.ts +119 -0
- package/dist/cjs/api/resources/shares/client/Client.js +422 -0
- package/dist/cjs/api/resources/shares/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/shares/client/index.js +17 -0
- package/dist/cjs/api/resources/shares/client/requests/DeleteSharesRequest.d.ts +11 -0
- package/dist/cjs/api/resources/shares/client/requests/GetSharesRequest.d.ts +11 -0
- package/dist/cjs/api/resources/shares/client/requests/GetSharesRequest.js +3 -0
- package/dist/cjs/api/resources/shares/client/requests/ListSharesRequest.d.ts +12 -0
- package/dist/cjs/api/resources/shares/client/requests/ListSharesRequest.js +3 -0
- package/dist/cjs/api/resources/shares/client/requests/SharesCreateRequest.d.ts +18 -0
- package/dist/cjs/api/resources/shares/client/requests/SharesCreateRequest.js +3 -0
- package/dist/cjs/api/resources/shares/client/requests/SharesExchangeRequest.d.ts +10 -0
- package/dist/cjs/api/resources/shares/client/requests/SharesExchangeRequest.js +3 -0
- package/dist/cjs/api/resources/shares/client/requests/SharesUpdateRequest.d.ts +17 -0
- package/dist/cjs/api/resources/shares/client/requests/SharesUpdateRequest.js +3 -0
- package/dist/cjs/api/resources/shares/client/requests/index.d.ts +6 -0
- package/dist/cjs/api/resources/shares/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/shares/exports.d.ts +2 -0
- package/dist/cjs/api/resources/shares/exports.js +21 -0
- package/dist/cjs/api/resources/shares/index.d.ts +1 -0
- package/dist/cjs/api/resources/shares/index.js +17 -0
- package/dist/cjs/api/resources/tenants/client/Client.d.ts +50 -0
- package/dist/cjs/api/resources/tenants/client/Client.js +181 -0
- package/dist/cjs/api/resources/tenants/client/requests/ResumeTenantsRequest.d.ts +9 -0
- package/dist/cjs/api/resources/tenants/client/requests/ResumeTenantsRequest.js +3 -0
- package/dist/cjs/api/resources/tenants/client/requests/TenantsSuspendRequest.d.ts +10 -0
- package/dist/cjs/api/resources/tenants/client/requests/TenantsSuspendRequest.js +3 -0
- package/dist/cjs/api/resources/tenants/client/requests/UsageTenantsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/tenants/client/requests/UsageTenantsRequest.js +3 -0
- package/dist/cjs/api/resources/tenants/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/types/DocumentsInit200ResponseCreatedUpload.d.ts +3 -3
- package/dist/cjs/api/types/DocumentsInit200ResponseResumedUpload.d.ts +3 -3
- package/dist/cjs/api/types/DocumentsUploadProxy200Response.d.ts +3 -0
- package/dist/cjs/api/types/DocumentsUploadProxy200Response.js +3 -0
- package/dist/cjs/api/types/DocumentsUploadProxy400Response.d.ts +9 -0
- package/dist/cjs/api/types/DocumentsUploadProxy400Response.js +3 -0
- package/dist/cjs/api/types/DocumentsUploadProxy409Response.d.ts +9 -0
- package/dist/cjs/api/types/DocumentsUploadProxy409Response.js +3 -0
- package/dist/cjs/api/types/SharesCreate200Response.d.ts +22 -0
- package/dist/cjs/api/types/SharesCreate200Response.js +3 -0
- package/dist/cjs/api/types/SharesCreate400Response.d.ts +9 -0
- package/dist/cjs/api/types/SharesCreate400Response.js +3 -0
- package/dist/cjs/api/types/SharesCreate403Response.d.ts +9 -0
- package/dist/cjs/api/types/SharesCreate403Response.js +3 -0
- package/dist/cjs/api/types/SharesCreate404Response.d.ts +9 -0
- package/dist/cjs/api/types/SharesCreate404Response.js +3 -0
- package/dist/cjs/api/types/SharesDeleteResponse.d.ts +9 -0
- package/dist/cjs/api/types/SharesDeleteResponse.js +3 -0
- package/dist/cjs/api/types/SharesExchange200Response.d.ts +6 -0
- package/dist/cjs/api/types/SharesExchange200Response.js +3 -0
- package/dist/cjs/api/types/SharesExchange400Response.d.ts +9 -0
- package/dist/cjs/api/types/SharesExchange400Response.js +3 -0
- package/dist/cjs/api/types/SharesExchange403Response.d.ts +9 -0
- package/dist/cjs/api/types/SharesExchange403Response.js +3 -0
- package/dist/cjs/api/types/SharesExchange404Response.d.ts +9 -0
- package/dist/cjs/api/types/SharesExchange404Response.js +3 -0
- package/dist/cjs/api/types/SharesExchange410Response.d.ts +9 -0
- package/dist/cjs/api/types/SharesExchange410Response.js +3 -0
- package/dist/cjs/api/types/SharesExchange422Response.d.ts +9 -0
- package/dist/cjs/api/types/SharesExchange422Response.js +3 -0
- package/dist/cjs/api/types/SharesGet200Response.d.ts +22 -0
- package/dist/cjs/api/types/SharesGet200Response.js +3 -0
- package/dist/cjs/api/types/SharesGet404Response.d.ts +9 -0
- package/dist/cjs/api/types/SharesGet404Response.js +3 -0
- package/dist/cjs/api/types/SharesList200Response.d.ts +26 -0
- package/dist/cjs/api/types/SharesList200Response.js +3 -0
- package/dist/cjs/api/types/SharesList400Response.d.ts +9 -0
- package/dist/cjs/api/types/SharesList400Response.js +3 -0
- package/dist/cjs/api/types/SharesUpdate200Response.d.ts +22 -0
- package/dist/cjs/api/types/SharesUpdate200Response.js +3 -0
- package/dist/cjs/api/types/SharesUpdate400Response.d.ts +9 -0
- package/dist/cjs/api/types/SharesUpdate400Response.js +3 -0
- package/dist/cjs/api/types/SharesUpdate404Response.d.ts +9 -0
- package/dist/cjs/api/types/SharesUpdate404Response.js +3 -0
- package/dist/cjs/api/types/TenantsCreate200Response.d.ts +8 -0
- package/dist/cjs/api/types/TenantsCreate200Response.js +11 -0
- package/dist/cjs/api/types/TenantsGet200Response.d.ts +8 -0
- package/dist/cjs/api/types/TenantsGet200Response.js +11 -0
- package/dist/cjs/api/types/TenantsList200Response.d.ts +8 -0
- package/dist/cjs/api/types/TenantsList200Response.js +14 -0
- package/dist/cjs/api/types/TenantsResumeResponse.d.ts +9 -0
- package/dist/cjs/api/types/TenantsResumeResponse.js +3 -0
- package/dist/cjs/api/types/TenantsSuspendResponse.d.ts +9 -0
- package/dist/cjs/api/types/TenantsSuspendResponse.js +3 -0
- package/dist/cjs/api/types/TenantsUsage200Response.d.ts +13 -0
- package/dist/cjs/api/types/TenantsUsage200Response.js +3 -0
- package/dist/cjs/api/types/TenantsUsage400Response.d.ts +9 -0
- package/dist/cjs/api/types/TenantsUsage400Response.js +3 -0
- package/dist/cjs/api/types/TenantsUsage404Response.d.ts +9 -0
- package/dist/cjs/api/types/TenantsUsage404Response.js +3 -0
- package/dist/cjs/api/types/TokensIssueRequest.d.ts +2 -1
- package/dist/cjs/api/types/index.d.ts +26 -2
- package/dist/cjs/api/types/index.js +26 -2
- package/dist/cjs/auth/BearerAuthProvider.d.ts +1 -1
- package/dist/cjs/core/form-data-utils/FormDataWrapper.d.ts +15 -0
- package/dist/cjs/core/form-data-utils/FormDataWrapper.js +188 -0
- package/dist/cjs/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
- package/dist/cjs/core/form-data-utils/encodeAsFormParameter.js +12 -0
- package/dist/cjs/core/form-data-utils/index.d.ts +2 -0
- package/dist/cjs/core/form-data-utils/index.js +20 -0
- package/dist/cjs/core/index.d.ts +1 -0
- package/dist/cjs/core/index.js +1 -0
- package/dist/cjs/index.d.ts +3 -1
- package/dist/cjs/index.js +5 -2
- package/dist/cjs/uploads/Uploads.d.ts +7 -0
- package/dist/cjs/uploads/Uploads.js +78 -0
- package/dist/cjs/uploads/index.d.ts +2 -0
- package/dist/cjs/uploads/index.js +5 -0
- package/dist/cjs/uploads/source.d.ts +10 -0
- package/dist/cjs/uploads/source.js +155 -0
- package/dist/cjs/uploads/types.d.ts +46 -0
- package/dist/cjs/uploads/types.js +2 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +5 -0
- package/dist/esm/CloudPDFClient.d.mts +20 -0
- package/dist/esm/CloudPDFClient.mjs +35 -0
- package/dist/esm/api/errors/ConflictError.d.mts +7 -0
- package/dist/esm/api/errors/ConflictError.mjs +17 -0
- package/dist/esm/api/errors/GoneError.d.mts +7 -0
- package/dist/esm/api/errors/GoneError.mjs +17 -0
- package/dist/esm/api/errors/UnprocessableEntityError.d.mts +7 -0
- package/dist/esm/api/errors/UnprocessableEntityError.mjs +17 -0
- package/dist/esm/api/errors/index.d.mts +3 -0
- package/dist/esm/api/errors/index.mjs +3 -0
- package/dist/esm/api/resources/documents/client/Client.d.mts +14 -5
- package/dist/esm/api/resources/documents/client/Client.mjs +27 -15
- package/dist/esm/api/resources/documents/client/requests/DocumentsInitRequest.d.mts +7 -0
- package/dist/esm/api/resources/documents/client/requests/DocumentsInitRequest.mjs +5 -0
- package/dist/esm/api/resources/documents/client/requests/UploadProxyDocumentsRequest.d.mts +14 -0
- package/dist/esm/api/resources/documents/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/index.mjs +2 -0
- package/dist/esm/api/resources/shares/client/Client.d.mts +119 -0
- package/dist/esm/api/resources/shares/client/Client.mjs +385 -0
- package/dist/esm/api/resources/shares/client/index.d.mts +1 -0
- package/dist/esm/api/resources/shares/client/index.mjs +1 -0
- package/dist/esm/api/resources/shares/client/requests/DeleteSharesRequest.d.mts +11 -0
- package/dist/esm/api/resources/shares/client/requests/GetSharesRequest.d.mts +11 -0
- package/dist/esm/api/resources/shares/client/requests/GetSharesRequest.mjs +2 -0
- package/dist/esm/api/resources/shares/client/requests/ListSharesRequest.d.mts +12 -0
- package/dist/esm/api/resources/shares/client/requests/ListSharesRequest.mjs +2 -0
- package/dist/esm/api/resources/shares/client/requests/SharesCreateRequest.d.mts +18 -0
- package/dist/esm/api/resources/shares/client/requests/SharesCreateRequest.mjs +2 -0
- package/dist/esm/api/resources/shares/client/requests/SharesExchangeRequest.d.mts +10 -0
- package/dist/esm/api/resources/shares/client/requests/SharesExchangeRequest.mjs +2 -0
- package/dist/esm/api/resources/shares/client/requests/SharesUpdateRequest.d.mts +17 -0
- package/dist/esm/api/resources/shares/client/requests/SharesUpdateRequest.mjs +2 -0
- package/dist/esm/api/resources/shares/client/requests/index.d.mts +6 -0
- package/dist/esm/api/resources/shares/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/shares/exports.d.mts +2 -0
- package/dist/esm/api/resources/shares/exports.mjs +3 -0
- package/dist/esm/api/resources/shares/index.d.mts +1 -0
- package/dist/esm/api/resources/shares/index.mjs +1 -0
- package/dist/esm/api/resources/tenants/client/Client.d.mts +50 -0
- package/dist/esm/api/resources/tenants/client/Client.mjs +181 -0
- package/dist/esm/api/resources/tenants/client/requests/ResumeTenantsRequest.d.mts +9 -0
- package/dist/esm/api/resources/tenants/client/requests/ResumeTenantsRequest.mjs +2 -0
- package/dist/esm/api/resources/tenants/client/requests/TenantsSuspendRequest.d.mts +10 -0
- package/dist/esm/api/resources/tenants/client/requests/TenantsSuspendRequest.mjs +2 -0
- package/dist/esm/api/resources/tenants/client/requests/UsageTenantsRequest.d.mts +10 -0
- package/dist/esm/api/resources/tenants/client/requests/UsageTenantsRequest.mjs +2 -0
- package/dist/esm/api/resources/tenants/client/requests/index.d.mts +3 -0
- package/dist/esm/api/types/DocumentsInit200ResponseCreatedUpload.d.mts +3 -3
- package/dist/esm/api/types/DocumentsInit200ResponseResumedUpload.d.mts +3 -3
- package/dist/esm/api/types/DocumentsUploadProxy200Response.d.mts +3 -0
- package/dist/esm/api/types/DocumentsUploadProxy200Response.mjs +2 -0
- package/dist/esm/api/types/DocumentsUploadProxy400Response.d.mts +9 -0
- package/dist/esm/api/types/DocumentsUploadProxy400Response.mjs +2 -0
- package/dist/esm/api/types/DocumentsUploadProxy409Response.d.mts +9 -0
- package/dist/esm/api/types/DocumentsUploadProxy409Response.mjs +2 -0
- package/dist/esm/api/types/SharesCreate200Response.d.mts +22 -0
- package/dist/esm/api/types/SharesCreate200Response.mjs +2 -0
- package/dist/esm/api/types/SharesCreate400Response.d.mts +9 -0
- package/dist/esm/api/types/SharesCreate400Response.mjs +2 -0
- package/dist/esm/api/types/SharesCreate403Response.d.mts +9 -0
- package/dist/esm/api/types/SharesCreate403Response.mjs +2 -0
- package/dist/esm/api/types/SharesCreate404Response.d.mts +9 -0
- package/dist/esm/api/types/SharesCreate404Response.mjs +2 -0
- package/dist/esm/api/types/SharesDeleteResponse.d.mts +9 -0
- package/dist/esm/api/types/SharesDeleteResponse.mjs +2 -0
- package/dist/esm/api/types/SharesExchange200Response.d.mts +6 -0
- package/dist/esm/api/types/SharesExchange200Response.mjs +2 -0
- package/dist/esm/api/types/SharesExchange400Response.d.mts +9 -0
- package/dist/esm/api/types/SharesExchange400Response.mjs +2 -0
- package/dist/esm/api/types/SharesExchange403Response.d.mts +9 -0
- package/dist/esm/api/types/SharesExchange403Response.mjs +2 -0
- package/dist/esm/api/types/SharesExchange404Response.d.mts +9 -0
- package/dist/esm/api/types/SharesExchange404Response.mjs +2 -0
- package/dist/esm/api/types/SharesExchange410Response.d.mts +9 -0
- package/dist/esm/api/types/SharesExchange410Response.mjs +2 -0
- package/dist/esm/api/types/SharesExchange422Response.d.mts +9 -0
- package/dist/esm/api/types/SharesExchange422Response.mjs +2 -0
- package/dist/esm/api/types/SharesGet200Response.d.mts +22 -0
- package/dist/esm/api/types/SharesGet200Response.mjs +2 -0
- package/dist/esm/api/types/SharesGet404Response.d.mts +9 -0
- package/dist/esm/api/types/SharesGet404Response.mjs +2 -0
- package/dist/esm/api/types/SharesList200Response.d.mts +26 -0
- package/dist/esm/api/types/SharesList200Response.mjs +2 -0
- package/dist/esm/api/types/SharesList400Response.d.mts +9 -0
- package/dist/esm/api/types/SharesList400Response.mjs +2 -0
- package/dist/esm/api/types/SharesUpdate200Response.d.mts +22 -0
- package/dist/esm/api/types/SharesUpdate200Response.mjs +2 -0
- package/dist/esm/api/types/SharesUpdate400Response.d.mts +9 -0
- package/dist/esm/api/types/SharesUpdate400Response.mjs +2 -0
- package/dist/esm/api/types/SharesUpdate404Response.d.mts +9 -0
- package/dist/esm/api/types/SharesUpdate404Response.mjs +2 -0
- package/dist/esm/api/types/TenantsCreate200Response.d.mts +8 -0
- package/dist/esm/api/types/TenantsCreate200Response.mjs +10 -1
- package/dist/esm/api/types/TenantsGet200Response.d.mts +8 -0
- package/dist/esm/api/types/TenantsGet200Response.mjs +10 -1
- package/dist/esm/api/types/TenantsList200Response.d.mts +8 -0
- package/dist/esm/api/types/TenantsList200Response.mjs +13 -1
- package/dist/esm/api/types/TenantsResumeResponse.d.mts +9 -0
- package/dist/esm/api/types/TenantsResumeResponse.mjs +2 -0
- package/dist/esm/api/types/TenantsSuspendResponse.d.mts +9 -0
- package/dist/esm/api/types/TenantsSuspendResponse.mjs +2 -0
- package/dist/esm/api/types/TenantsUsage200Response.d.mts +13 -0
- package/dist/esm/api/types/TenantsUsage200Response.mjs +2 -0
- package/dist/esm/api/types/TenantsUsage400Response.d.mts +9 -0
- package/dist/esm/api/types/TenantsUsage400Response.mjs +2 -0
- package/dist/esm/api/types/TenantsUsage404Response.d.mts +9 -0
- package/dist/esm/api/types/TenantsUsage404Response.mjs +2 -0
- package/dist/esm/api/types/TokensIssueRequest.d.mts +2 -1
- package/dist/esm/api/types/index.d.mts +26 -2
- package/dist/esm/api/types/index.mjs +26 -2
- package/dist/esm/auth/BearerAuthProvider.d.mts +1 -1
- package/dist/esm/core/form-data-utils/FormDataWrapper.d.mts +15 -0
- package/dist/esm/core/form-data-utils/FormDataWrapper.mjs +150 -0
- package/dist/esm/core/form-data-utils/encodeAsFormParameter.d.mts +1 -0
- package/dist/esm/core/form-data-utils/encodeAsFormParameter.mjs +9 -0
- package/dist/esm/core/form-data-utils/index.d.mts +2 -0
- package/dist/esm/core/form-data-utils/index.mjs +2 -0
- package/dist/esm/core/index.d.mts +1 -0
- package/dist/esm/core/index.mjs +1 -0
- package/dist/esm/index.d.mts +3 -1
- package/dist/esm/index.mjs +3 -1
- package/dist/esm/uploads/Uploads.d.mts +7 -0
- package/dist/esm/uploads/Uploads.mjs +74 -0
- package/dist/esm/uploads/index.d.mts +2 -0
- package/dist/esm/uploads/index.mjs +1 -0
- package/dist/esm/uploads/source.d.mts +10 -0
- package/dist/esm/uploads/source.mjs +119 -0
- package/dist/esm/uploads/types.d.mts +46 -0
- package/dist/esm/uploads/types.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +188 -177
- package/reference.md +588 -0
- package/dist/cjs/api/types/DocumentsUploadDirect200Response.d.ts +0 -3
- package/dist/cjs/api/types/DocumentsUploadDirect400Response.d.ts +0 -9
- package/dist/esm/api/types/DocumentsUploadDirect200Response.d.mts +0 -3
- package/dist/esm/api/types/DocumentsUploadDirect400Response.d.mts +0 -9
- /package/dist/cjs/api/{types/DocumentsUploadDirect200Response.js → resources/documents/client/requests/UploadProxyDocumentsRequest.js} +0 -0
- /package/dist/cjs/api/{types/DocumentsUploadDirect400Response.js → resources/shares/client/requests/DeleteSharesRequest.js} +0 -0
- /package/dist/esm/api/{types/DocumentsUploadDirect200Response.mjs → resources/documents/client/requests/UploadProxyDocumentsRequest.mjs} +0 -0
- /package/dist/esm/api/{types/DocumentsUploadDirect400Response.mjs → resources/shares/client/requests/DeleteSharesRequest.mjs} +0 -0
package/dist/esm/Client.mjs
CHANGED
|
@@ -11,6 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
import { DeploymentClient } from "./api/resources/deployment/client/Client.mjs";
|
|
12
12
|
import { DocClient } from "./api/resources/doc/client/Client.mjs";
|
|
13
13
|
import { DocumentsClient } from "./api/resources/documents/client/Client.mjs";
|
|
14
|
+
import { SharesClient } from "./api/resources/shares/client/Client.mjs";
|
|
14
15
|
import { TenantsClient } from "./api/resources/tenants/client/Client.mjs";
|
|
15
16
|
import { TokensClient } from "./api/resources/tokens/client/Client.mjs";
|
|
16
17
|
import { normalizeClientOptionsWithAuth } from "./BaseClient.mjs";
|
|
@@ -27,6 +28,10 @@ export class CloudPDFClient {
|
|
|
27
28
|
var _a;
|
|
28
29
|
return ((_a = this._doc) !== null && _a !== void 0 ? _a : (this._doc = new DocClient(this._options)));
|
|
29
30
|
}
|
|
31
|
+
get shares() {
|
|
32
|
+
var _a;
|
|
33
|
+
return ((_a = this._shares) !== null && _a !== void 0 ? _a : (this._shares = new SharesClient(this._options)));
|
|
34
|
+
}
|
|
30
35
|
get tenants() {
|
|
31
36
|
var _a;
|
|
32
37
|
return ((_a = this._tenants) !== null && _a !== void 0 ? _a : (this._tenants = new TenantsClient(this._options)));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CloudPDFClient as GeneratedCloudPDFClient } from "./Client.mjs";
|
|
2
|
+
import type * as CloudPDF from "./api/index.mjs";
|
|
3
|
+
import { Uploads } from "./uploads/Uploads.mjs";
|
|
4
|
+
export declare namespace CloudPDFClient {
|
|
5
|
+
type GeneratedOptions = GeneratedCloudPDFClient.Options;
|
|
6
|
+
type Endpoint = GeneratedOptions["environment"];
|
|
7
|
+
type Options = Omit<GeneratedOptions, "environment" | "baseUrl"> & ({
|
|
8
|
+
baseUrl: NonNullable<GeneratedOptions["baseUrl"]>;
|
|
9
|
+
environment?: Endpoint;
|
|
10
|
+
} | {
|
|
11
|
+
environment: Endpoint;
|
|
12
|
+
baseUrl?: GeneratedOptions["baseUrl"];
|
|
13
|
+
});
|
|
14
|
+
type RequestOptions = GeneratedCloudPDFClient.RequestOptions;
|
|
15
|
+
}
|
|
16
|
+
/** Generated protocol client plus CloudPDF's handwritten workflow layer. */
|
|
17
|
+
export declare class CloudPDFClient extends GeneratedCloudPDFClient {
|
|
18
|
+
readonly uploads: Uploads<CloudPDF.DocumentsCommit200Response.Document>;
|
|
19
|
+
constructor(options: CloudPDFClient.Options);
|
|
20
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { CloudPDFClient as GeneratedCloudPDFClient } from "./Client.mjs";
|
|
11
|
+
import { Uploads } from "./uploads/Uploads.mjs";
|
|
12
|
+
/** Generated protocol client plus CloudPDF's handwritten workflow layer. */
|
|
13
|
+
export class CloudPDFClient extends GeneratedCloudPDFClient {
|
|
14
|
+
constructor(options) {
|
|
15
|
+
var _a, _b, _c;
|
|
16
|
+
// Self-hosted CloudPDF has no universal environment URL. Let callers
|
|
17
|
+
// provide the familiar `baseUrl` alone while still satisfying Fern's
|
|
18
|
+
// generated client's internal environment slot.
|
|
19
|
+
super(Object.assign(Object.assign({}, options), { environment: (_a = options.environment) !== null && _a !== void 0 ? _a : options.baseUrl }));
|
|
20
|
+
const rawFetch = (_b = options.fetch) !== null && _b !== void 0 ? _b : (_c = globalThis.fetch) === null || _c === void 0 ? void 0 : _c.bind(globalThis);
|
|
21
|
+
if (!rawFetch)
|
|
22
|
+
throw new Error("CloudPDFClient requires a fetch implementation");
|
|
23
|
+
this.uploads = new Uploads({
|
|
24
|
+
init: (request, requestOptions) => __awaiter(this, void 0, void 0, function* () { return this.documents.init(request, requestOptions); }),
|
|
25
|
+
commit: (request, requestOptions) => __awaiter(this, void 0, void 0, function* () { return this.documents.commit(request, requestOptions); }),
|
|
26
|
+
proxy: (url, form, requestOptions) => __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
return this.fetch(url, { method: "POST", body: form }, {
|
|
28
|
+
abortSignal: requestOptions.abortSignal,
|
|
29
|
+
maxRetries: requestOptions.maxRetries,
|
|
30
|
+
});
|
|
31
|
+
}),
|
|
32
|
+
presigned: (url, init) => __awaiter(this, void 0, void 0, function* () { return rawFetch(url, init); }),
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as core from "../../core/index.mjs";
|
|
2
|
+
import * as errors from "../../errors/index.mjs";
|
|
3
|
+
import type * as CloudPDF from "../index.mjs";
|
|
4
|
+
export declare class ConflictError extends errors.CloudPDFError {
|
|
5
|
+
readonly body: CloudPDF.DocumentsUploadProxy409Response;
|
|
6
|
+
constructor(body: CloudPDF.DocumentsUploadProxy409Response, rawResponse?: core.RawResponse);
|
|
7
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as errors from "../../errors/index.mjs";
|
|
3
|
+
export class ConflictError extends errors.CloudPDFError {
|
|
4
|
+
constructor(body, rawResponse) {
|
|
5
|
+
super({
|
|
6
|
+
message: "ConflictError",
|
|
7
|
+
statusCode: 409,
|
|
8
|
+
body: body,
|
|
9
|
+
rawResponse: rawResponse,
|
|
10
|
+
});
|
|
11
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
12
|
+
if (Error.captureStackTrace) {
|
|
13
|
+
Error.captureStackTrace(this, this.constructor);
|
|
14
|
+
}
|
|
15
|
+
this.name = "ConflictError";
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as core from "../../core/index.mjs";
|
|
2
|
+
import * as errors from "../../errors/index.mjs";
|
|
3
|
+
import type * as CloudPDF from "../index.mjs";
|
|
4
|
+
export declare class GoneError extends errors.CloudPDFError {
|
|
5
|
+
readonly body: CloudPDF.SharesExchange410Response;
|
|
6
|
+
constructor(body: CloudPDF.SharesExchange410Response, rawResponse?: core.RawResponse);
|
|
7
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as errors from "../../errors/index.mjs";
|
|
3
|
+
export class GoneError extends errors.CloudPDFError {
|
|
4
|
+
constructor(body, rawResponse) {
|
|
5
|
+
super({
|
|
6
|
+
message: "GoneError",
|
|
7
|
+
statusCode: 410,
|
|
8
|
+
body: body,
|
|
9
|
+
rawResponse: rawResponse,
|
|
10
|
+
});
|
|
11
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
12
|
+
if (Error.captureStackTrace) {
|
|
13
|
+
Error.captureStackTrace(this, this.constructor);
|
|
14
|
+
}
|
|
15
|
+
this.name = "GoneError";
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as core from "../../core/index.mjs";
|
|
2
|
+
import * as errors from "../../errors/index.mjs";
|
|
3
|
+
import type * as CloudPDF from "../index.mjs";
|
|
4
|
+
export declare class UnprocessableEntityError extends errors.CloudPDFError {
|
|
5
|
+
readonly body: CloudPDF.SharesExchange422Response;
|
|
6
|
+
constructor(body: CloudPDF.SharesExchange422Response, rawResponse?: core.RawResponse);
|
|
7
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as errors from "../../errors/index.mjs";
|
|
3
|
+
export class UnprocessableEntityError extends errors.CloudPDFError {
|
|
4
|
+
constructor(body, rawResponse) {
|
|
5
|
+
super({
|
|
6
|
+
message: "UnprocessableEntityError",
|
|
7
|
+
statusCode: 422,
|
|
8
|
+
body: body,
|
|
9
|
+
rawResponse: rawResponse,
|
|
10
|
+
});
|
|
11
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
12
|
+
if (Error.captureStackTrace) {
|
|
13
|
+
Error.captureStackTrace(this, this.constructor);
|
|
14
|
+
}
|
|
15
|
+
this.name = "UnprocessableEntityError";
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -93,17 +93,26 @@ export declare class DocumentsClient {
|
|
|
93
93
|
thumbnail(request: CloudPDF.ThumbnailDocumentsRequest, requestOptions?: DocumentsClient.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
|
|
94
94
|
private __thumbnail;
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
* @param {
|
|
96
|
+
* This bounded origin-mediated fallback must only be used after documents.init returns upload.kind=proxy. Auto mode prefers a presigned object-store PUT whenever available.
|
|
97
|
+
*
|
|
98
|
+
* @param {CloudPDF.UploadProxyDocumentsRequest} request
|
|
99
99
|
* @param {DocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
100
100
|
*
|
|
101
101
|
* @throws {@link CloudPDF.BadRequestError}
|
|
102
|
+
* @throws {@link CloudPDF.ConflictError}
|
|
102
103
|
* @throws {@link errors.CloudPDFError}
|
|
103
104
|
* @throws {@link errors.CloudPDFTimeoutError}
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* import { createReadStream } from "fs";
|
|
108
|
+
* await client.documents.uploadProxy({
|
|
109
|
+
* file: fs.createReadStream("/path/to/your/file"),
|
|
110
|
+
* tenantId: "tenantId",
|
|
111
|
+
* id: "id"
|
|
112
|
+
* })
|
|
104
113
|
*/
|
|
105
|
-
|
|
106
|
-
private
|
|
114
|
+
uploadProxy(request: CloudPDF.UploadProxyDocumentsRequest, requestOptions?: DocumentsClient.RequestOptions): core.HttpResponsePromise<CloudPDF.DocumentsUploadProxy200Response>;
|
|
115
|
+
private __uploadProxy;
|
|
107
116
|
/**
|
|
108
117
|
* @param {CloudPDF.DocumentsInitRequest} request
|
|
109
118
|
* @param {DocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -20,7 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
20
|
return t;
|
|
21
21
|
};
|
|
22
22
|
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
23
|
-
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
23
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
24
24
|
import * as core from "../../../../core/index.mjs";
|
|
25
25
|
import { mergeAdditionalBodyParameters } from "../../../../core/requestBody.mjs";
|
|
26
26
|
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
|
|
@@ -351,33 +351,43 @@ export class DocumentsClient {
|
|
|
351
351
|
});
|
|
352
352
|
}
|
|
353
353
|
/**
|
|
354
|
-
*
|
|
355
|
-
*
|
|
356
|
-
* @param {
|
|
354
|
+
* This bounded origin-mediated fallback must only be used after documents.init returns upload.kind=proxy. Auto mode prefers a presigned object-store PUT whenever available.
|
|
355
|
+
*
|
|
356
|
+
* @param {CloudPDF.UploadProxyDocumentsRequest} request
|
|
357
357
|
* @param {DocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
358
358
|
*
|
|
359
359
|
* @throws {@link CloudPDF.BadRequestError}
|
|
360
|
+
* @throws {@link CloudPDF.ConflictError}
|
|
360
361
|
* @throws {@link errors.CloudPDFError}
|
|
361
362
|
* @throws {@link errors.CloudPDFTimeoutError}
|
|
363
|
+
*
|
|
364
|
+
* @example
|
|
365
|
+
* import { createReadStream } from "fs";
|
|
366
|
+
* await client.documents.uploadProxy({
|
|
367
|
+
* file: fs.createReadStream("/path/to/your/file"),
|
|
368
|
+
* tenantId: "tenantId",
|
|
369
|
+
* id: "id"
|
|
370
|
+
* })
|
|
362
371
|
*/
|
|
363
|
-
|
|
364
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
372
|
+
uploadProxy(request, requestOptions) {
|
|
373
|
+
return core.HttpResponsePromise.fromPromise(this.__uploadProxy(request, requestOptions));
|
|
365
374
|
}
|
|
366
|
-
|
|
375
|
+
__uploadProxy(request, requestOptions) {
|
|
367
376
|
return __awaiter(this, void 0, void 0, function* () {
|
|
368
377
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
369
|
-
const
|
|
378
|
+
const _body = yield core.newFormData();
|
|
379
|
+
yield _body.appendFile("file", request.file);
|
|
380
|
+
const _maybeEncodedRequest = yield _body.getRequest();
|
|
370
381
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
371
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
382
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
372
383
|
const _response = yield core.fetcher({
|
|
373
|
-
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `v1/tenants/${core.url.encodePathParam(tenantId)}/documents/${core.url.encodePathParam(id)}/upload-
|
|
384
|
+
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `v1/tenants/${core.url.encodePathParam(request.tenantId)}/documents/${core.url.encodePathParam(request.id)}/upload-proxy`),
|
|
374
385
|
method: "POST",
|
|
375
386
|
headers: _headers,
|
|
376
|
-
contentType: "application/pdf",
|
|
377
387
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
378
|
-
requestType: "
|
|
379
|
-
duplex:
|
|
380
|
-
body:
|
|
388
|
+
requestType: "file",
|
|
389
|
+
duplex: _maybeEncodedRequest.duplex,
|
|
390
|
+
body: _maybeEncodedRequest.body,
|
|
381
391
|
timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
|
|
382
392
|
maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
|
|
383
393
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -394,6 +404,8 @@ export class DocumentsClient {
|
|
|
394
404
|
switch (_response.error.statusCode) {
|
|
395
405
|
case 400:
|
|
396
406
|
throw new CloudPDF.BadRequestError(_response.error.body, _response.rawResponse);
|
|
407
|
+
case 409:
|
|
408
|
+
throw new CloudPDF.ConflictError(_response.error.body, _response.rawResponse);
|
|
397
409
|
default:
|
|
398
410
|
throw new errors.CloudPDFError({
|
|
399
411
|
statusCode: _response.error.statusCode,
|
|
@@ -402,7 +414,7 @@ export class DocumentsClient {
|
|
|
402
414
|
});
|
|
403
415
|
}
|
|
404
416
|
}
|
|
405
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v1/tenants/{tenantId}/documents/{id}/upload-
|
|
417
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v1/tenants/{tenantId}/documents/{id}/upload-proxy");
|
|
406
418
|
});
|
|
407
419
|
}
|
|
408
420
|
/**
|
|
@@ -15,6 +15,7 @@ export interface DocumentsInitRequest {
|
|
|
15
15
|
dedupMode?: DocumentsInitRequest.DedupMode;
|
|
16
16
|
docId?: string;
|
|
17
17
|
uploadTtlSec?: number;
|
|
18
|
+
uploadPreference?: DocumentsInitRequest.UploadPreference;
|
|
18
19
|
}
|
|
19
20
|
export declare namespace DocumentsInitRequest {
|
|
20
21
|
const DedupMode: {
|
|
@@ -22,4 +23,10 @@ export declare namespace DocumentsInitRequest {
|
|
|
22
23
|
readonly ReuseExisting: "reuse-existing";
|
|
23
24
|
};
|
|
24
25
|
type DedupMode = (typeof DedupMode)[keyof typeof DedupMode];
|
|
26
|
+
const UploadPreference: {
|
|
27
|
+
readonly Auto: "auto";
|
|
28
|
+
readonly Presigned: "presigned";
|
|
29
|
+
readonly Proxy: "proxy";
|
|
30
|
+
};
|
|
31
|
+
type UploadPreference = (typeof UploadPreference)[keyof typeof UploadPreference];
|
|
25
32
|
}
|
|
@@ -5,4 +5,9 @@ export var DocumentsInitRequest;
|
|
|
5
5
|
AlwaysCreate: "always-create",
|
|
6
6
|
ReuseExisting: "reuse-existing",
|
|
7
7
|
};
|
|
8
|
+
DocumentsInitRequest.UploadPreference = {
|
|
9
|
+
Auto: "auto",
|
|
10
|
+
Presigned: "presigned",
|
|
11
|
+
Proxy: "proxy",
|
|
12
|
+
};
|
|
8
13
|
})(DocumentsInitRequest || (DocumentsInitRequest = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as core from "../../../../../core/index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* file: fs.createReadStream("/path/to/your/file"),
|
|
6
|
+
* tenantId: "tenantId",
|
|
7
|
+
* id: "id"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface UploadProxyDocumentsRequest {
|
|
11
|
+
tenantId: string;
|
|
12
|
+
id: string;
|
|
13
|
+
file: core.file.Uploadable;
|
|
14
|
+
}
|
|
@@ -5,3 +5,4 @@ export type { DownloadDocumentsRequest } from "./DownloadDocumentsRequest.mjs";
|
|
|
5
5
|
export type { GetDocumentsRequest } from "./GetDocumentsRequest.mjs";
|
|
6
6
|
export type { ListDocumentsRequest } from "./ListDocumentsRequest.mjs";
|
|
7
7
|
export type { ThumbnailDocumentsRequest } from "./ThumbnailDocumentsRequest.mjs";
|
|
8
|
+
export type { UploadProxyDocumentsRequest } from "./UploadProxyDocumentsRequest.mjs";
|
|
@@ -4,6 +4,8 @@ export * as doc from "./doc/index.mjs";
|
|
|
4
4
|
export * from "./documents/client/requests/index.mjs";
|
|
5
5
|
export * as documents from "./documents/index.mjs";
|
|
6
6
|
export * from "./documents/types/index.mjs";
|
|
7
|
+
export * from "./shares/client/requests/index.mjs";
|
|
8
|
+
export * as shares from "./shares/index.mjs";
|
|
7
9
|
export * from "./tenants/client/requests/index.mjs";
|
|
8
10
|
export * as tenants from "./tenants/index.mjs";
|
|
9
11
|
export * from "./tokens/client/requests/index.mjs";
|
|
@@ -4,6 +4,8 @@ export * as doc from "./doc/index.mjs";
|
|
|
4
4
|
export * from "./documents/client/requests/index.mjs";
|
|
5
5
|
export * as documents from "./documents/index.mjs";
|
|
6
6
|
export * from "./documents/types/index.mjs";
|
|
7
|
+
export * from "./shares/client/requests/index.mjs";
|
|
8
|
+
export * as shares from "./shares/index.mjs";
|
|
7
9
|
export * from "./tenants/client/requests/index.mjs";
|
|
8
10
|
export * as tenants from "./tenants/index.mjs";
|
|
9
11
|
export * from "./tokens/client/requests/index.mjs";
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
3
|
+
import * as core from "../../../../core/index.mjs";
|
|
4
|
+
import * as CloudPDF from "../../../index.mjs";
|
|
5
|
+
export declare namespace SharesClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class SharesClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<SharesClient.Options>;
|
|
12
|
+
constructor(options: SharesClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* 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. Mounted only when the deployment can sign (HS256 mode).
|
|
15
|
+
*
|
|
16
|
+
* @param {CloudPDF.SharesExchangeRequest} request
|
|
17
|
+
* @param {SharesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
|
+
*
|
|
19
|
+
* @throws {@link CloudPDF.BadRequestError}
|
|
20
|
+
* @throws {@link CloudPDF.ForbiddenError}
|
|
21
|
+
* @throws {@link CloudPDF.NotFoundError}
|
|
22
|
+
* @throws {@link CloudPDF.GoneError}
|
|
23
|
+
* @throws {@link CloudPDF.UnprocessableEntityError}
|
|
24
|
+
* @throws {@link errors.CloudPDFError}
|
|
25
|
+
* @throws {@link errors.CloudPDFTimeoutError}
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* await client.shares.exchange({
|
|
29
|
+
* shareToken: "shareToken"
|
|
30
|
+
* })
|
|
31
|
+
*/
|
|
32
|
+
exchange(request: CloudPDF.SharesExchangeRequest, requestOptions?: SharesClient.RequestOptions): core.HttpResponsePromise<CloudPDF.SharesExchange200Response>;
|
|
33
|
+
private __exchange;
|
|
34
|
+
/**
|
|
35
|
+
* @param {CloudPDF.ListSharesRequest} request
|
|
36
|
+
* @param {SharesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
|
+
*
|
|
38
|
+
* @throws {@link CloudPDF.BadRequestError}
|
|
39
|
+
* @throws {@link errors.CloudPDFError}
|
|
40
|
+
* @throws {@link errors.CloudPDFTimeoutError}
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* await client.shares.list({
|
|
44
|
+
* tenantId: "tenantId"
|
|
45
|
+
* })
|
|
46
|
+
*/
|
|
47
|
+
list(request: CloudPDF.ListSharesRequest, requestOptions?: SharesClient.RequestOptions): core.HttpResponsePromise<CloudPDF.SharesList200Response>;
|
|
48
|
+
private __list;
|
|
49
|
+
/**
|
|
50
|
+
* 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.
|
|
51
|
+
*
|
|
52
|
+
* @param {CloudPDF.SharesCreateRequest} request
|
|
53
|
+
* @param {SharesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link CloudPDF.BadRequestError}
|
|
56
|
+
* @throws {@link CloudPDF.ForbiddenError}
|
|
57
|
+
* @throws {@link CloudPDF.NotFoundError}
|
|
58
|
+
* @throws {@link errors.CloudPDFError}
|
|
59
|
+
* @throws {@link errors.CloudPDFTimeoutError}
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* await client.shares.create({
|
|
63
|
+
* tenantId: "tenantId",
|
|
64
|
+
* docId: "docId",
|
|
65
|
+
* scope: ["scope"]
|
|
66
|
+
* })
|
|
67
|
+
*/
|
|
68
|
+
create(request: CloudPDF.SharesCreateRequest, requestOptions?: SharesClient.RequestOptions): core.HttpResponsePromise<CloudPDF.SharesCreate200Response>;
|
|
69
|
+
private __create;
|
|
70
|
+
/**
|
|
71
|
+
* @param {CloudPDF.GetSharesRequest} request
|
|
72
|
+
* @param {SharesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link CloudPDF.NotFoundError}
|
|
75
|
+
* @throws {@link errors.CloudPDFError}
|
|
76
|
+
* @throws {@link errors.CloudPDFTimeoutError}
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* await client.shares.get({
|
|
80
|
+
* tenantId: "tenantId",
|
|
81
|
+
* shareId: "shareId"
|
|
82
|
+
* })
|
|
83
|
+
*/
|
|
84
|
+
get(request: CloudPDF.GetSharesRequest, requestOptions?: SharesClient.RequestOptions): core.HttpResponsePromise<CloudPDF.SharesGet200Response>;
|
|
85
|
+
private __get;
|
|
86
|
+
/**
|
|
87
|
+
* @param {CloudPDF.DeleteSharesRequest} request
|
|
88
|
+
* @param {SharesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link CloudPDF.NotFoundError}
|
|
91
|
+
* @throws {@link errors.CloudPDFError}
|
|
92
|
+
* @throws {@link errors.CloudPDFTimeoutError}
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* await client.shares.delete({
|
|
96
|
+
* tenantId: "tenantId",
|
|
97
|
+
* shareId: "shareId"
|
|
98
|
+
* })
|
|
99
|
+
*/
|
|
100
|
+
delete(request: CloudPDF.DeleteSharesRequest, requestOptions?: SharesClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
101
|
+
private __delete;
|
|
102
|
+
/**
|
|
103
|
+
* @param {CloudPDF.SharesUpdateRequest} request
|
|
104
|
+
* @param {SharesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link CloudPDF.BadRequestError}
|
|
107
|
+
* @throws {@link CloudPDF.NotFoundError}
|
|
108
|
+
* @throws {@link errors.CloudPDFError}
|
|
109
|
+
* @throws {@link errors.CloudPDFTimeoutError}
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* await client.shares.update({
|
|
113
|
+
* tenantId: "tenantId",
|
|
114
|
+
* shareId: "shareId"
|
|
115
|
+
* })
|
|
116
|
+
*/
|
|
117
|
+
update(request: CloudPDF.SharesUpdateRequest, requestOptions?: SharesClient.RequestOptions): core.HttpResponsePromise<CloudPDF.SharesUpdate200Response>;
|
|
118
|
+
private __update;
|
|
119
|
+
}
|