rcs-js 1.0.16 → 1.0.22
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 +43 -47
- package/dist/cjs/Client.d.ts +57 -0
- package/dist/cjs/Client.js +156 -0
- package/dist/cjs/api/client/index.d.ts +1 -0
- package/dist/cjs/api/client/index.js +17 -0
- package/dist/cjs/api/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/errors/BadRequestError.d.ts +8 -0
- package/dist/cjs/api/errors/BadRequestError.js +52 -0
- package/dist/cjs/api/errors/ForbiddenError.d.ts +8 -0
- package/dist/cjs/api/errors/ForbiddenError.js +52 -0
- package/dist/cjs/api/errors/InternalServerError.d.ts +8 -0
- package/dist/cjs/api/errors/InternalServerError.js +52 -0
- package/dist/cjs/api/errors/PaymentRequiredError.d.ts +8 -0
- package/dist/cjs/api/errors/PaymentRequiredError.js +52 -0
- package/dist/cjs/api/errors/UnauthorizedError.d.ts +8 -0
- package/dist/cjs/api/errors/UnauthorizedError.js +52 -0
- package/dist/cjs/api/errors/index.d.ts +5 -0
- package/dist/cjs/api/errors/index.js +21 -0
- package/dist/cjs/api/index.d.ts +4 -0
- package/dist/cjs/api/index.js +20 -0
- package/dist/cjs/api/resources/company/client/Client.d.ts +81 -0
- package/dist/cjs/api/resources/company/client/Client.js +274 -0
- package/dist/cjs/api/resources/company/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/company/client/index.js +17 -0
- package/dist/cjs/api/resources/company/client/requests/CompanyUpdateRequest.d.ts +17 -0
- package/dist/cjs/api/resources/company/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/company/index.d.ts +2 -0
- package/dist/cjs/api/resources/company/index.js +18 -0
- package/dist/cjs/api/resources/company/types/CompanyRegisterRequest.d.ts +19 -0
- package/dist/cjs/api/resources/company/types/CompanyRegisterResponse.d.ts +12 -0
- package/dist/cjs/api/resources/company/types/CompanyUpdateResponse.d.ts +12 -0
- package/dist/cjs/api/resources/company/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/company/types/index.js +19 -0
- package/dist/cjs/api/resources/index.d.ts +9 -0
- package/dist/cjs/api/resources/index.js +48 -0
- package/dist/cjs/api/resources/send/client/Client.d.ts +97 -0
- package/dist/cjs/api/resources/send/client/Client.js +294 -0
- package/dist/cjs/api/resources/send/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/send/client/index.js +17 -0
- package/dist/cjs/api/resources/send/client/requests/Rcs.d.ts +62 -0
- package/dist/cjs/api/resources/send/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/send/index.d.ts +2 -0
- package/dist/cjs/api/resources/send/index.js +18 -0
- package/dist/cjs/api/resources/send/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/send/types/index.js +19 -0
- package/dist/cjs/api/resources/tools/client/Client.d.ts +71 -0
- package/dist/cjs/api/resources/tools/client/Client.js +205 -0
- package/dist/cjs/api/resources/tools/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/tools/client/index.js +17 -0
- package/dist/cjs/api/resources/tools/client/requests/ToolsShortenUrlRequest.d.ts +15 -0
- package/dist/cjs/api/resources/tools/client/requests/ToolsUploadUrlRequest.d.ts +23 -0
- package/dist/cjs/api/resources/tools/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/tools/index.d.ts +2 -0
- package/dist/cjs/api/resources/tools/index.js +18 -0
- package/dist/cjs/api/resources/tools/types/ToolsShortenUrlResponse.d.ts +9 -0
- package/dist/cjs/api/resources/tools/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/tools/types/index.js +18 -0
- package/dist/cjs/api/types/Action.d.ts +46 -0
- package/dist/cjs/api/types/Action.js +17 -0
- package/dist/cjs/api/types/Card.d.ts +14 -0
- package/dist/cjs/api/types/Company.d.ts +97 -0
- package/dist/cjs/api/types/CompanyCategory.d.ts +20 -0
- package/dist/cjs/api/types/CompanyDetails.d.ts +22 -0
- package/dist/cjs/api/types/InboundActionMessage.d.ts +19 -0
- package/dist/cjs/api/types/InboundLocationMessage.d.ts +21 -0
- package/dist/cjs/api/types/InboundMediaMessage.d.ts +18 -0
- package/dist/cjs/api/types/InboundMessage.d.ts +23 -0
- package/dist/cjs/api/types/InboundMessage.js +15 -0
- package/dist/cjs/api/types/InboundTextMessage.d.ts +17 -0
- package/dist/cjs/api/types/MessageMetadata.d.ts +6 -0
- package/dist/cjs/api/types/Optionals.d.ts +13 -0
- package/dist/cjs/api/types/RcsFunctionalities.d.ts +21 -0
- package/dist/cjs/api/types/index.d.ts +26 -0
- package/dist/cjs/api/types/index.js +42 -0
- package/dist/cjs/core/fetcher/APIResponse.d.ts +20 -0
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +20 -0
- package/dist/cjs/core/fetcher/BinaryResponse.js +17 -0
- package/dist/cjs/core/fetcher/Fetcher.d.ts +40 -0
- package/dist/cjs/core/fetcher/Fetcher.js +120 -0
- package/dist/cjs/core/fetcher/Headers.d.ts +2 -0
- package/dist/cjs/core/fetcher/Headers.js +84 -0
- package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/dist/cjs/core/fetcher/HttpResponsePromise.js +103 -0
- package/dist/cjs/core/fetcher/RawResponse.d.ts +29 -0
- package/dist/cjs/core/fetcher/RawResponse.js +44 -0
- package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +4 -0
- package/dist/cjs/core/fetcher/ResponseWithBody.js +6 -0
- package/dist/cjs/core/fetcher/Supplier.d.ts +4 -0
- package/dist/cjs/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/cjs/core/fetcher/createRequestUrl.js +8 -0
- package/dist/cjs/core/fetcher/getErrorResponseBody.d.ts +1 -0
- package/dist/cjs/core/fetcher/getErrorResponseBody.js +44 -0
- package/dist/cjs/core/fetcher/getFetchFn.d.ts +1 -0
- package/dist/cjs/core/fetcher/getFetchFn.js +17 -0
- package/dist/cjs/core/fetcher/getHeader.js +11 -0
- package/dist/cjs/core/fetcher/getRequestBody.js +23 -0
- package/dist/cjs/core/fetcher/getResponseBody.js +55 -0
- package/dist/cjs/core/fetcher/index.d.ts +9 -0
- package/dist/cjs/core/fetcher/index.js +15 -0
- package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/cjs/core/fetcher/makeRequest.js +42 -0
- package/dist/cjs/core/fetcher/requestWithRetries.js +40 -0
- package/dist/cjs/core/fetcher/signals.d.ts +11 -0
- package/dist/cjs/core/fetcher/signals.js +36 -0
- package/dist/cjs/core/headers.d.ts +3 -0
- package/dist/cjs/core/headers.js +29 -0
- package/dist/cjs/core/index.d.ts +3 -0
- package/dist/cjs/core/index.js +42 -0
- package/dist/cjs/core/json.d.ts +15 -0
- package/dist/cjs/core/json.js +24 -0
- package/dist/cjs/core/runtime/index.d.ts +1 -0
- package/dist/cjs/core/runtime/index.js +5 -0
- package/dist/cjs/core/runtime/runtime.d.ts +9 -0
- package/dist/cjs/core/runtime/runtime.js +102 -0
- package/dist/cjs/core/url/index.d.ts +2 -0
- package/dist/cjs/core/url/index.js +7 -0
- package/dist/cjs/core/url/join.d.ts +1 -0
- package/dist/cjs/core/url/join.js +69 -0
- package/dist/cjs/core/url/qs.d.ts +6 -0
- package/dist/cjs/core/url/qs.js +64 -0
- package/dist/cjs/environments.d.ts +7 -0
- package/dist/cjs/errors/PinnacleError.d.ts +15 -0
- package/dist/cjs/errors/PinnacleError.js +30 -0
- package/dist/cjs/errors/PinnacleTimeoutError.d.ts +6 -0
- package/dist/cjs/errors/PinnacleTimeoutError.js +13 -0
- package/dist/cjs/errors/index.d.ts +2 -0
- package/dist/cjs/errors/index.js +7 -0
- package/dist/cjs/index.d.ts +4 -0
- package/dist/cjs/index.js +44 -0
- package/dist/cjs/version.d.ts +1 -0
- package/dist/cjs/version.js +4 -0
- package/dist/cjs/wrapper/PinnacleClient.d.ts +17 -0
- package/dist/cjs/wrapper/PinnacleClient.js +64 -0
- package/dist/esm/Client.d.mts +57 -0
- package/dist/esm/Client.mjs +119 -0
- package/dist/esm/api/client/index.d.mts +1 -0
- package/dist/esm/api/client/index.mjs +1 -0
- package/dist/esm/api/client/requests/GetRcsFunctionalityRequest.mjs +4 -0
- package/dist/esm/api/client/requests/index.d.mts +1 -0
- package/dist/esm/api/client/requests/index.mjs +1 -0
- package/dist/esm/api/errors/BadRequestError.d.mts +8 -0
- package/dist/esm/api/errors/BadRequestError.mjs +15 -0
- package/dist/esm/api/errors/ForbiddenError.d.mts +8 -0
- package/dist/esm/api/errors/ForbiddenError.mjs +15 -0
- package/dist/esm/api/errors/InternalServerError.d.mts +8 -0
- package/dist/esm/api/errors/InternalServerError.mjs +15 -0
- package/dist/esm/api/errors/PaymentRequiredError.d.mts +8 -0
- package/dist/esm/api/errors/PaymentRequiredError.mjs +15 -0
- package/dist/esm/api/errors/UnauthorizedError.d.mts +8 -0
- package/dist/esm/api/errors/UnauthorizedError.mjs +15 -0
- package/dist/esm/api/errors/index.d.mts +5 -0
- package/dist/esm/api/errors/index.mjs +5 -0
- package/dist/esm/api/index.d.mts +4 -0
- package/dist/esm/api/index.mjs +4 -0
- package/dist/esm/api/resources/company/client/Client.d.mts +81 -0
- package/dist/esm/api/resources/company/client/Client.mjs +237 -0
- package/dist/esm/api/resources/company/client/index.d.mts +2 -0
- package/dist/esm/api/resources/company/client/index.mjs +1 -0
- package/dist/esm/api/resources/company/client/requests/CompanyGetRequest.mjs +4 -0
- package/dist/esm/api/resources/company/client/requests/CompanyUpdateRequest.d.mts +17 -0
- package/dist/esm/api/resources/company/client/requests/CompanyUpdateRequest.mjs +4 -0
- package/dist/esm/api/resources/company/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/company/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/company/index.d.mts +2 -0
- package/dist/esm/api/resources/company/index.mjs +2 -0
- package/dist/esm/api/resources/company/types/CompanyRegisterRequest.d.mts +19 -0
- package/dist/esm/api/resources/company/types/CompanyRegisterRequest.mjs +4 -0
- package/dist/esm/api/resources/company/types/CompanyRegisterResponse.d.mts +12 -0
- package/dist/esm/api/resources/company/types/CompanyRegisterResponse.mjs +4 -0
- package/dist/esm/api/resources/company/types/CompanyUpdateResponse.d.mts +12 -0
- package/dist/esm/api/resources/company/types/CompanyUpdateResponse.mjs +4 -0
- package/dist/esm/api/resources/company/types/index.d.mts +3 -0
- package/dist/esm/api/resources/company/types/index.mjs +3 -0
- package/dist/esm/api/resources/index.d.mts +9 -0
- package/dist/esm/api/resources/index.mjs +9 -0
- package/dist/esm/api/resources/send/client/Client.d.mts +97 -0
- package/dist/esm/api/resources/send/client/Client.mjs +257 -0
- package/dist/esm/api/resources/send/client/index.d.mts +2 -0
- package/dist/esm/api/resources/send/client/index.mjs +1 -0
- package/dist/esm/api/resources/send/client/requests/Rcs.d.mts +62 -0
- package/dist/esm/api/resources/send/client/requests/Rcs.mjs +4 -0
- package/dist/esm/api/resources/send/client/requests/SendMmsRequest.mjs +4 -0
- package/dist/esm/api/resources/send/client/requests/SendSmsRequest.mjs +4 -0
- package/dist/esm/api/resources/send/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/send/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/send/index.d.mts +2 -0
- package/dist/esm/api/resources/send/index.mjs +2 -0
- package/dist/esm/api/resources/send/types/SendMmsResponse.mjs +4 -0
- package/dist/esm/api/resources/send/types/SendRcsResponse.mjs +4 -0
- package/dist/esm/api/resources/send/types/SendSmsResponse.mjs +4 -0
- package/dist/esm/api/resources/send/types/index.d.mts +3 -0
- package/dist/esm/api/resources/send/types/index.mjs +3 -0
- package/dist/esm/api/resources/tools/client/Client.d.mts +71 -0
- package/dist/esm/api/resources/tools/client/Client.mjs +168 -0
- package/dist/esm/api/resources/tools/client/index.d.mts +2 -0
- package/dist/esm/api/resources/tools/client/index.mjs +1 -0
- package/dist/esm/api/resources/tools/client/requests/ToolsShortenUrlRequest.d.mts +15 -0
- package/dist/esm/api/resources/tools/client/requests/ToolsShortenUrlRequest.mjs +4 -0
- package/dist/esm/api/resources/tools/client/requests/ToolsUploadUrlRequest.d.mts +23 -0
- package/dist/esm/api/resources/tools/client/requests/ToolsUploadUrlRequest.mjs +4 -0
- package/dist/esm/api/resources/tools/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/tools/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/tools/index.d.mts +2 -0
- package/dist/esm/api/resources/tools/index.mjs +2 -0
- package/dist/esm/api/resources/tools/types/ToolsShortenUrlResponse.d.mts +9 -0
- package/dist/esm/api/resources/tools/types/ToolsShortenUrlResponse.mjs +4 -0
- package/dist/esm/api/resources/tools/types/ToolsUploadUrlResponse.mjs +4 -0
- package/dist/esm/api/resources/tools/types/index.d.mts +2 -0
- package/dist/esm/api/resources/tools/types/index.mjs +2 -0
- package/dist/esm/api/types/Action.d.mts +46 -0
- package/dist/esm/api/types/Action.mjs +14 -0
- package/dist/esm/api/types/AdditionalEmail.mjs +4 -0
- package/dist/esm/api/types/AdditionalPhoneNumber.mjs +4 -0
- package/dist/esm/api/types/AdditionalWebsite.mjs +4 -0
- package/dist/esm/api/types/BadRequestErrorBody.mjs +4 -0
- package/dist/esm/api/types/Card.d.mts +14 -0
- package/dist/esm/api/types/Card.mjs +4 -0
- package/dist/esm/api/types/Company.d.mts +97 -0
- package/dist/esm/api/types/Company.mjs +4 -0
- package/dist/esm/api/types/CompanyCategory.d.mts +20 -0
- package/dist/esm/api/types/CompanyCategory.mjs +19 -0
- package/dist/esm/api/types/CompanyContact.mjs +4 -0
- package/dist/esm/api/types/CompanyDetails.d.mts +22 -0
- package/dist/esm/api/types/CompanyDetails.mjs +4 -0
- package/dist/esm/api/types/ForbiddenErrorBody.mjs +4 -0
- package/dist/esm/api/types/InboundActionMessage.d.mts +19 -0
- package/dist/esm/api/types/InboundActionMessage.mjs +4 -0
- package/dist/esm/api/types/InboundLocationMessage.d.mts +21 -0
- package/dist/esm/api/types/InboundLocationMessage.mjs +4 -0
- package/dist/esm/api/types/InboundMediaMessage.d.mts +18 -0
- package/dist/esm/api/types/InboundMediaMessage.mjs +4 -0
- package/dist/esm/api/types/InboundMessage.d.mts +23 -0
- package/dist/esm/api/types/InboundMessage.mjs +12 -0
- package/dist/esm/api/types/InboundTextMessage.d.mts +17 -0
- package/dist/esm/api/types/InboundTextMessage.mjs +4 -0
- package/dist/esm/api/types/InternalServerErrorBody.mjs +4 -0
- package/dist/esm/api/types/MediaPayload.mjs +4 -0
- package/dist/esm/api/types/MessageMetadata.d.mts +6 -0
- package/dist/esm/api/types/MessageMetadata.mjs +4 -0
- package/dist/esm/api/types/Messaging.mjs +4 -0
- package/dist/esm/api/types/Optionals.d.mts +13 -0
- package/dist/esm/api/types/Optionals.mjs +4 -0
- package/dist/esm/api/types/PaymentRequiredErrorBody.mjs +4 -0
- package/dist/esm/api/types/PointOfContact.mjs +4 -0
- package/dist/esm/api/types/RcsFunctionalities.d.mts +21 -0
- package/dist/esm/api/types/RcsFunctionalities.mjs +4 -0
- package/dist/esm/api/types/SenderMetadata.mjs +4 -0
- package/dist/esm/api/types/UnauthorizedErrorBody.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +26 -0
- package/dist/esm/api/types/index.mjs +26 -0
- package/dist/esm/core/fetcher/APIResponse.d.mts +20 -0
- package/dist/esm/core/fetcher/APIResponse.mjs +1 -0
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +20 -0
- package/dist/esm/core/fetcher/BinaryResponse.mjs +14 -0
- package/dist/esm/core/fetcher/Fetcher.d.mts +40 -0
- package/dist/esm/core/fetcher/Fetcher.mjs +116 -0
- package/dist/esm/core/fetcher/Headers.d.mts +2 -0
- package/dist/esm/core/fetcher/Headers.mjs +82 -0
- package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +58 -0
- package/dist/esm/core/fetcher/HttpResponsePromise.mjs +99 -0
- package/dist/esm/core/fetcher/RawResponse.d.mts +29 -0
- package/dist/esm/core/fetcher/RawResponse.mjs +40 -0
- package/dist/esm/core/fetcher/ResponseWithBody.d.mts +4 -0
- package/dist/esm/core/fetcher/ResponseWithBody.mjs +3 -0
- package/dist/esm/core/fetcher/Supplier.d.mts +4 -0
- package/dist/esm/core/fetcher/Supplier.mjs +19 -0
- package/dist/esm/core/fetcher/createRequestUrl.d.mts +1 -0
- package/dist/esm/core/fetcher/createRequestUrl.mjs +5 -0
- package/dist/esm/core/fetcher/getErrorResponseBody.d.mts +1 -0
- package/dist/esm/core/fetcher/getErrorResponseBody.mjs +41 -0
- package/dist/esm/core/fetcher/getFetchFn.d.mts +1 -0
- package/dist/esm/core/fetcher/getFetchFn.mjs +14 -0
- package/dist/esm/core/fetcher/getHeader.mjs +8 -0
- package/dist/esm/core/fetcher/getRequestBody.mjs +20 -0
- package/dist/esm/core/fetcher/getResponseBody.mjs +52 -0
- package/dist/esm/core/fetcher/index.d.mts +9 -0
- package/dist/esm/core/fetcher/index.mjs +5 -0
- package/dist/esm/core/fetcher/makeRequest.d.mts +1 -0
- package/dist/esm/core/fetcher/makeRequest.mjs +38 -0
- package/dist/esm/core/fetcher/requestWithRetries.mjs +37 -0
- package/dist/esm/core/fetcher/signals.d.mts +11 -0
- package/dist/esm/core/fetcher/signals.mjs +32 -0
- package/dist/esm/core/headers.d.mts +3 -0
- package/dist/esm/core/headers.mjs +25 -0
- package/dist/esm/core/index.d.mts +3 -0
- package/dist/esm/core/index.mjs +3 -0
- package/dist/esm/core/json.d.mts +15 -0
- package/dist/esm/core/json.mjs +19 -0
- package/dist/esm/core/runtime/index.d.mts +1 -0
- package/dist/esm/core/runtime/index.mjs +1 -0
- package/dist/esm/core/runtime/runtime.d.mts +9 -0
- package/dist/esm/core/runtime/runtime.mjs +99 -0
- package/dist/esm/core/url/index.d.mts +2 -0
- package/dist/esm/core/url/index.mjs +2 -0
- package/dist/esm/core/url/join.d.mts +1 -0
- package/dist/esm/core/url/join.mjs +66 -0
- package/dist/esm/core/url/qs.d.mts +6 -0
- package/dist/esm/core/url/qs.mjs +61 -0
- package/dist/esm/environments.d.mts +7 -0
- package/dist/esm/environments.mjs +6 -0
- package/dist/esm/errors/PinnacleError.d.mts +15 -0
- package/dist/esm/errors/PinnacleError.mjs +26 -0
- package/dist/esm/errors/PinnacleTimeoutError.d.mts +6 -0
- package/dist/esm/errors/PinnacleTimeoutError.mjs +9 -0
- package/dist/esm/errors/index.d.mts +2 -0
- package/dist/esm/errors/index.mjs +2 -0
- package/dist/esm/index.d.mts +4 -0
- package/dist/esm/index.mjs +4 -0
- package/dist/esm/version.d.mts +1 -0
- package/dist/esm/version.mjs +1 -0
- package/dist/esm/wrapper/PinnacleClient.d.mts +17 -0
- package/dist/esm/wrapper/PinnacleClient.mjs +60 -0
- package/package.json +53 -33
- package/reference.md +5 -38
- package/Client.d.ts +0 -50
- package/Client.js +0 -144
- package/api/client/index.d.ts +0 -1
- package/api/client/index.js +0 -17
- package/api/client/requests/index.d.ts +0 -1
- package/api/errors/BadRequestError.d.ts +0 -7
- package/api/errors/BadRequestError.js +0 -41
- package/api/errors/ForbiddenError.d.ts +0 -7
- package/api/errors/ForbiddenError.js +0 -41
- package/api/errors/InternalServerError.d.ts +0 -7
- package/api/errors/InternalServerError.js +0 -41
- package/api/errors/PaymentRequiredError.d.ts +0 -7
- package/api/errors/PaymentRequiredError.js +0 -41
- package/api/errors/UnauthorizedError.d.ts +0 -7
- package/api/errors/UnauthorizedError.js +0 -41
- package/api/errors/index.d.ts +0 -5
- package/api/errors/index.js +0 -21
- package/api/index.d.ts +0 -4
- package/api/index.js +0 -20
- package/api/resources/company/client/Client.d.ts +0 -105
- package/api/resources/company/client/Client.js +0 -300
- package/api/resources/company/client/index.d.ts +0 -1
- package/api/resources/company/client/index.js +0 -17
- package/api/resources/company/client/requests/CompanyRegisterRequest.d.ts +0 -48
- package/api/resources/company/client/requests/CompanyUpdateRequest.d.ts +0 -18
- package/api/resources/company/client/requests/index.d.ts +0 -3
- package/api/resources/company/index.d.ts +0 -2
- package/api/resources/company/index.js +0 -18
- package/api/resources/company/types/CompanyRegisterResponse.d.ts +0 -7
- package/api/resources/company/types/CompanyRegisterResponseBrand.d.ts +0 -7
- package/api/resources/company/types/CompanyRegisterResponseBrand.js +0 -5
- package/api/resources/company/types/CompanyUpdateResponse.d.ts +0 -7
- package/api/resources/company/types/CompanyUpdateResponseBrand.d.ts +0 -7
- package/api/resources/company/types/CompanyUpdateResponseBrand.js +0 -5
- package/api/resources/company/types/index.d.ts +0 -4
- package/api/resources/company/types/index.js +0 -20
- package/api/resources/index.d.ts +0 -9
- package/api/resources/index.js +0 -38
- package/api/resources/send/client/Client.d.ts +0 -88
- package/api/resources/send/client/Client.js +0 -285
- package/api/resources/send/client/index.d.ts +0 -1
- package/api/resources/send/client/index.js +0 -17
- package/api/resources/send/client/requests/Rcs.d.ts +0 -52
- package/api/resources/send/client/requests/index.d.ts +0 -3
- package/api/resources/send/index.d.ts +0 -2
- package/api/resources/send/index.js +0 -18
- package/api/resources/send/types/RcsFallback.d.ts +0 -11
- package/api/resources/send/types/RcsFallback.js +0 -5
- package/api/resources/send/types/index.d.ts +0 -4
- package/api/resources/send/types/index.js +0 -20
- package/api/resources/tools/client/Client.d.ts +0 -61
- package/api/resources/tools/client/Client.js +0 -195
- package/api/resources/tools/client/index.d.ts +0 -1
- package/api/resources/tools/client/index.js +0 -17
- package/api/resources/tools/client/requests/ToolsShortenUrlRequest.d.ts +0 -15
- package/api/resources/tools/client/requests/ToolsUploadUrlRequest.d.ts +0 -24
- package/api/resources/tools/client/requests/index.d.ts +0 -2
- package/api/resources/tools/index.d.ts +0 -2
- package/api/resources/tools/index.js +0 -18
- package/api/resources/tools/types/ToolsShortenUrlResponse.d.ts +0 -9
- package/api/resources/tools/types/index.d.ts +0 -2
- package/api/resources/tools/types/index.js +0 -18
- package/api/types/Action.d.ts +0 -24
- package/api/types/Action.js +0 -5
- package/api/types/ActionLatLong.d.ts +0 -12
- package/api/types/ActionLatLong.js +0 -5
- package/api/types/ActionType.d.ts +0 -15
- package/api/types/ActionType.js +0 -14
- package/api/types/Card.d.ts +0 -14
- package/api/types/Company.d.ts +0 -68
- package/api/types/CompanyAdditionalEmailsItem.d.ts +0 -9
- package/api/types/CompanyAdditionalEmailsItem.js +0 -5
- package/api/types/CompanyAdditionalPhoneNumbersItem.d.ts +0 -9
- package/api/types/CompanyAdditionalPhoneNumbersItem.js +0 -5
- package/api/types/CompanyAdditionalWebsitesItem.d.ts +0 -9
- package/api/types/CompanyAdditionalWebsitesItem.js +0 -5
- package/api/types/CompanyCategory.d.ts +0 -20
- package/api/types/CompanyDetails.d.ts +0 -22
- package/api/types/InboundActionMessage.d.ts +0 -13
- package/api/types/InboundLocationMessage.d.ts +0 -11
- package/api/types/InboundLocationMessageCoordinates.d.ts +0 -7
- package/api/types/InboundLocationMessageCoordinates.js +0 -5
- package/api/types/InboundMediaMessage.d.ts +0 -12
- package/api/types/InboundMessage.d.ts +0 -10
- package/api/types/InboundMessage.js +0 -5
- package/api/types/InboundMessageMessageType.d.ts +0 -10
- package/api/types/InboundMessageMessageType.js +0 -12
- package/api/types/InboundMessageMetadata.d.ts +0 -8
- package/api/types/InboundMessageMetadata.js +0 -5
- package/api/types/InboundTextMessage.d.ts +0 -11
- package/api/types/MessageMetadata.d.ts +0 -6
- package/api/types/Optionals.d.ts +0 -13
- package/api/types/RcsFunctionalities.d.ts +0 -21
- package/api/types/index.d.ts +0 -34
- package/api/types/index.js +0 -50
- package/core/fetcher/APIResponse.d.ts +0 -10
- package/core/fetcher/Fetcher.d.ts +0 -39
- package/core/fetcher/Fetcher.js +0 -99
- package/core/fetcher/Supplier.d.ts +0 -4
- package/core/fetcher/createRequestUrl.d.ts +0 -1
- package/core/fetcher/createRequestUrl.js +0 -13
- package/core/fetcher/getFetchFn.d.ts +0 -4
- package/core/fetcher/getFetchFn.js +0 -59
- package/core/fetcher/getHeader.js +0 -12
- package/core/fetcher/getRequestBody.js +0 -23
- package/core/fetcher/getResponseBody.js +0 -52
- package/core/fetcher/index.d.ts +0 -5
- package/core/fetcher/index.js +0 -9
- package/core/fetcher/makeRequest.d.ts +0 -1
- package/core/fetcher/makeRequest.js +0 -42
- package/core/fetcher/requestWithRetries.js +0 -32
- package/core/fetcher/signals.d.ts +0 -12
- package/core/fetcher/signals.js +0 -37
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -22
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -124
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -50
- package/core/index.d.ts +0 -3
- package/core/index.js +0 -32
- package/core/runtime/index.d.ts +0 -1
- package/core/runtime/index.js +0 -5
- package/core/runtime/runtime.d.ts +0 -9
- package/core/runtime/runtime.js +0 -93
- package/core/schemas/Schema.d.ts +0 -85
- package/core/schemas/Schema.js +0 -22
- package/core/schemas/builders/bigint/bigint.d.ts +0 -2
- package/core/schemas/builders/bigint/bigint.js +0 -50
- package/core/schemas/builders/bigint/index.d.ts +0 -1
- package/core/schemas/builders/bigint/index.js +0 -5
- package/core/schemas/builders/date/date.d.ts +0 -2
- package/core/schemas/builders/date/date.js +0 -63
- package/core/schemas/builders/date/index.d.ts +0 -1
- package/core/schemas/builders/date/index.js +0 -5
- package/core/schemas/builders/enum/enum.d.ts +0 -2
- package/core/schemas/builders/enum/enum.js +0 -39
- package/core/schemas/builders/enum/index.d.ts +0 -1
- package/core/schemas/builders/enum/index.js +0 -5
- package/core/schemas/builders/index.d.ts +0 -14
- package/core/schemas/builders/index.js +0 -30
- package/core/schemas/builders/lazy/index.d.ts +0 -3
- package/core/schemas/builders/lazy/index.js +0 -7
- package/core/schemas/builders/lazy/lazy.d.ts +0 -5
- package/core/schemas/builders/lazy/lazy.js +0 -25
- package/core/schemas/builders/lazy/lazyObject.d.ts +0 -3
- package/core/schemas/builders/lazy/lazyObject.js +0 -12
- package/core/schemas/builders/list/index.d.ts +0 -1
- package/core/schemas/builders/list/index.js +0 -5
- package/core/schemas/builders/list/list.d.ts +0 -2
- package/core/schemas/builders/list/list.js +0 -55
- package/core/schemas/builders/literals/booleanLiteral.d.ts +0 -2
- package/core/schemas/builders/literals/booleanLiteral.js +0 -29
- package/core/schemas/builders/literals/index.d.ts +0 -2
- package/core/schemas/builders/literals/index.js +0 -7
- package/core/schemas/builders/literals/stringLiteral.d.ts +0 -2
- package/core/schemas/builders/literals/stringLiteral.js +0 -29
- package/core/schemas/builders/object/index.d.ts +0 -6
- package/core/schemas/builders/object/index.js +0 -11
- package/core/schemas/builders/object/object.d.ts +0 -3
- package/core/schemas/builders/object/object.js +0 -233
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +0 -6
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +0 -8
- package/core/schemas/builders/object/property.d.ts +0 -8
- package/core/schemas/builders/object/property.js +0 -16
- package/core/schemas/builders/object/types.d.ts +0 -26
- package/core/schemas/builders/object/types.js +0 -2
- package/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +0 -9
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +0 -54
- package/core/schemas/builders/object-like/index.d.ts +0 -2
- package/core/schemas/builders/object-like/index.js +0 -6
- package/core/schemas/builders/object-like/types.d.ts +0 -7
- package/core/schemas/builders/object-like/types.js +0 -2
- package/core/schemas/builders/primitives/any.d.ts +0 -1
- package/core/schemas/builders/primitives/any.js +0 -6
- package/core/schemas/builders/primitives/boolean.d.ts +0 -1
- package/core/schemas/builders/primitives/boolean.js +0 -25
- package/core/schemas/builders/primitives/index.d.ts +0 -5
- package/core/schemas/builders/primitives/index.js +0 -13
- package/core/schemas/builders/primitives/number.d.ts +0 -1
- package/core/schemas/builders/primitives/number.js +0 -25
- package/core/schemas/builders/primitives/string.d.ts +0 -1
- package/core/schemas/builders/primitives/string.js +0 -25
- package/core/schemas/builders/primitives/unknown.d.ts +0 -1
- package/core/schemas/builders/primitives/unknown.js +0 -6
- package/core/schemas/builders/record/index.d.ts +0 -2
- package/core/schemas/builders/record/index.js +0 -5
- package/core/schemas/builders/record/record.d.ts +0 -3
- package/core/schemas/builders/record/record.js +0 -95
- package/core/schemas/builders/record/types.d.ts +0 -4
- package/core/schemas/builders/record/types.js +0 -2
- package/core/schemas/builders/schema-utils/JsonError.d.ts +0 -5
- package/core/schemas/builders/schema-utils/JsonError.js +0 -12
- package/core/schemas/builders/schema-utils/ParseError.d.ts +0 -5
- package/core/schemas/builders/schema-utils/ParseError.js +0 -12
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +0 -17
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +0 -82
- package/core/schemas/builders/schema-utils/index.d.ts +0 -4
- package/core/schemas/builders/schema-utils/index.js +0 -11
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +0 -2
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +0 -10
- package/core/schemas/builders/set/index.d.ts +0 -1
- package/core/schemas/builders/set/index.js +0 -5
- package/core/schemas/builders/set/set.d.ts +0 -2
- package/core/schemas/builders/set/set.js +0 -44
- package/core/schemas/builders/undiscriminated-union/index.d.ts +0 -2
- package/core/schemas/builders/undiscriminated-union/index.js +0 -5
- package/core/schemas/builders/undiscriminated-union/types.d.ts +0 -4
- package/core/schemas/builders/undiscriminated-union/types.js +0 -2
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +0 -3
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +0 -40
- package/core/schemas/builders/union/discriminant.d.ts +0 -5
- package/core/schemas/builders/union/discriminant.js +0 -10
- package/core/schemas/builders/union/index.d.ts +0 -4
- package/core/schemas/builders/union/index.js +0 -7
- package/core/schemas/builders/union/types.d.ts +0 -13
- package/core/schemas/builders/union/types.js +0 -2
- package/core/schemas/builders/union/union.d.ts +0 -4
- package/core/schemas/builders/union/union.js +0 -130
- package/core/schemas/index.d.ts +0 -2
- package/core/schemas/index.js +0 -17
- package/core/schemas/utils/MaybePromise.d.ts +0 -1
- package/core/schemas/utils/MaybePromise.js +0 -2
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +0 -7
- package/core/schemas/utils/addQuestionMarksToNullableProperties.js +0 -2
- package/core/schemas/utils/createIdentitySchemaCreator.d.ts +0 -2
- package/core/schemas/utils/createIdentitySchemaCreator.js +0 -16
- package/core/schemas/utils/entries.d.ts +0 -1
- package/core/schemas/utils/entries.js +0 -7
- package/core/schemas/utils/filterObject.d.ts +0 -1
- package/core/schemas/utils/filterObject.js +0 -14
- package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +0 -1
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +0 -28
- package/core/schemas/utils/isPlainObject.d.ts +0 -1
- package/core/schemas/utils/isPlainObject.js +0 -18
- package/core/schemas/utils/keys.d.ts +0 -1
- package/core/schemas/utils/keys.js +0 -7
- package/core/schemas/utils/maybeSkipValidation.d.ts +0 -2
- package/core/schemas/utils/maybeSkipValidation.js +0 -28
- package/core/schemas/utils/partition.d.ts +0 -1
- package/core/schemas/utils/partition.js +0 -16
- package/dist/Client.d.ts +0 -50
- package/dist/Client.js +0 -144
- package/dist/api/client/index.d.ts +0 -1
- package/dist/api/client/index.js +0 -17
- package/dist/api/client/requests/GetRcsFunctionalityRequest.js +0 -5
- package/dist/api/client/requests/index.d.ts +0 -1
- package/dist/api/client/requests/index.js +0 -2
- package/dist/api/errors/BadRequestError.d.ts +0 -7
- package/dist/api/errors/BadRequestError.js +0 -41
- package/dist/api/errors/ForbiddenError.d.ts +0 -7
- package/dist/api/errors/ForbiddenError.js +0 -41
- package/dist/api/errors/InternalServerError.d.ts +0 -7
- package/dist/api/errors/InternalServerError.js +0 -41
- package/dist/api/errors/PaymentRequiredError.d.ts +0 -7
- package/dist/api/errors/PaymentRequiredError.js +0 -41
- package/dist/api/errors/UnauthorizedError.d.ts +0 -7
- package/dist/api/errors/UnauthorizedError.js +0 -41
- package/dist/api/errors/index.d.ts +0 -5
- package/dist/api/errors/index.js +0 -21
- package/dist/api/index.d.ts +0 -4
- package/dist/api/index.js +0 -20
- package/dist/api/resources/company/client/Client.d.ts +0 -105
- package/dist/api/resources/company/client/Client.js +0 -300
- package/dist/api/resources/company/client/index.d.ts +0 -1
- package/dist/api/resources/company/client/index.js +0 -17
- package/dist/api/resources/company/client/requests/CompanyGetRequest.js +0 -5
- package/dist/api/resources/company/client/requests/CompanyRegisterRequest.d.ts +0 -48
- package/dist/api/resources/company/client/requests/CompanyRegisterRequest.js +0 -5
- package/dist/api/resources/company/client/requests/CompanyUpdateRequest.d.ts +0 -18
- package/dist/api/resources/company/client/requests/CompanyUpdateRequest.js +0 -5
- package/dist/api/resources/company/client/requests/index.d.ts +0 -3
- package/dist/api/resources/company/client/requests/index.js +0 -2
- package/dist/api/resources/company/index.d.ts +0 -2
- package/dist/api/resources/company/index.js +0 -18
- package/dist/api/resources/company/types/CompanyRegisterResponse.d.ts +0 -7
- package/dist/api/resources/company/types/CompanyRegisterResponse.js +0 -5
- package/dist/api/resources/company/types/CompanyRegisterResponseBrand.d.ts +0 -7
- package/dist/api/resources/company/types/CompanyRegisterResponseBrand.js +0 -5
- package/dist/api/resources/company/types/CompanyUpdateResponse.d.ts +0 -7
- package/dist/api/resources/company/types/CompanyUpdateResponse.js +0 -5
- package/dist/api/resources/company/types/CompanyUpdateResponseBrand.d.ts +0 -7
- package/dist/api/resources/company/types/CompanyUpdateResponseBrand.js +0 -5
- package/dist/api/resources/company/types/index.d.ts +0 -4
- package/dist/api/resources/company/types/index.js +0 -20
- package/dist/api/resources/index.d.ts +0 -9
- package/dist/api/resources/index.js +0 -38
- package/dist/api/resources/send/client/Client.d.ts +0 -88
- package/dist/api/resources/send/client/Client.js +0 -285
- package/dist/api/resources/send/client/index.d.ts +0 -1
- package/dist/api/resources/send/client/index.js +0 -17
- package/dist/api/resources/send/client/requests/Rcs.d.ts +0 -52
- package/dist/api/resources/send/client/requests/Rcs.js +0 -5
- package/dist/api/resources/send/client/requests/SendMmsRequest.js +0 -5
- package/dist/api/resources/send/client/requests/SendSmsRequest.js +0 -5
- package/dist/api/resources/send/client/requests/index.d.ts +0 -3
- package/dist/api/resources/send/client/requests/index.js +0 -2
- package/dist/api/resources/send/index.d.ts +0 -2
- package/dist/api/resources/send/index.js +0 -18
- package/dist/api/resources/send/types/RcsFallback.d.ts +0 -11
- package/dist/api/resources/send/types/RcsFallback.js +0 -5
- package/dist/api/resources/send/types/SendMmsResponse.js +0 -5
- package/dist/api/resources/send/types/SendRcsResponse.js +0 -5
- package/dist/api/resources/send/types/SendSmsResponse.js +0 -5
- package/dist/api/resources/send/types/index.d.ts +0 -4
- package/dist/api/resources/send/types/index.js +0 -20
- package/dist/api/resources/tools/client/Client.d.ts +0 -61
- package/dist/api/resources/tools/client/Client.js +0 -195
- package/dist/api/resources/tools/client/index.d.ts +0 -1
- package/dist/api/resources/tools/client/index.js +0 -17
- package/dist/api/resources/tools/client/requests/ToolsShortenUrlRequest.d.ts +0 -15
- package/dist/api/resources/tools/client/requests/ToolsShortenUrlRequest.js +0 -5
- package/dist/api/resources/tools/client/requests/ToolsUploadUrlRequest.d.ts +0 -24
- package/dist/api/resources/tools/client/requests/ToolsUploadUrlRequest.js +0 -5
- package/dist/api/resources/tools/client/requests/index.d.ts +0 -2
- package/dist/api/resources/tools/client/requests/index.js +0 -2
- package/dist/api/resources/tools/index.d.ts +0 -2
- package/dist/api/resources/tools/index.js +0 -18
- package/dist/api/resources/tools/types/ToolsShortenUrlResponse.d.ts +0 -9
- package/dist/api/resources/tools/types/ToolsShortenUrlResponse.js +0 -5
- package/dist/api/resources/tools/types/ToolsUploadUrlResponse.js +0 -5
- package/dist/api/resources/tools/types/index.d.ts +0 -2
- package/dist/api/resources/tools/types/index.js +0 -18
- package/dist/api/types/Action.d.ts +0 -24
- package/dist/api/types/Action.js +0 -5
- package/dist/api/types/ActionLatLong.d.ts +0 -12
- package/dist/api/types/ActionLatLong.js +0 -5
- package/dist/api/types/ActionType.d.ts +0 -15
- package/dist/api/types/ActionType.js +0 -14
- package/dist/api/types/AdditionalEmail.js +0 -5
- package/dist/api/types/AdditionalPhoneNumber.js +0 -5
- package/dist/api/types/AdditionalWebsite.js +0 -5
- package/dist/api/types/BadRequestErrorBody.js +0 -5
- package/dist/api/types/Card.d.ts +0 -14
- package/dist/api/types/Card.js +0 -5
- package/dist/api/types/Company.d.ts +0 -68
- package/dist/api/types/Company.js +0 -5
- package/dist/api/types/CompanyAdditionalEmailsItem.d.ts +0 -9
- package/dist/api/types/CompanyAdditionalEmailsItem.js +0 -5
- package/dist/api/types/CompanyAdditionalPhoneNumbersItem.d.ts +0 -9
- package/dist/api/types/CompanyAdditionalPhoneNumbersItem.js +0 -5
- package/dist/api/types/CompanyAdditionalWebsitesItem.d.ts +0 -9
- package/dist/api/types/CompanyAdditionalWebsitesItem.js +0 -5
- package/dist/api/types/CompanyCategory.d.ts +0 -20
- package/dist/api/types/CompanyCategory.js +0 -22
- package/dist/api/types/CompanyContact.js +0 -5
- package/dist/api/types/CompanyDetails.d.ts +0 -22
- package/dist/api/types/CompanyDetails.js +0 -5
- package/dist/api/types/ForbiddenErrorBody.js +0 -5
- package/dist/api/types/InboundActionMessage.d.ts +0 -13
- package/dist/api/types/InboundActionMessage.js +0 -5
- package/dist/api/types/InboundLocationMessage.d.ts +0 -11
- package/dist/api/types/InboundLocationMessage.js +0 -5
- package/dist/api/types/InboundLocationMessageCoordinates.d.ts +0 -7
- package/dist/api/types/InboundLocationMessageCoordinates.js +0 -5
- package/dist/api/types/InboundMediaMessage.d.ts +0 -12
- package/dist/api/types/InboundMediaMessage.js +0 -5
- package/dist/api/types/InboundMessage.d.ts +0 -10
- package/dist/api/types/InboundMessage.js +0 -5
- package/dist/api/types/InboundMessageMessageType.d.ts +0 -10
- package/dist/api/types/InboundMessageMessageType.js +0 -12
- package/dist/api/types/InboundMessageMetadata.d.ts +0 -8
- package/dist/api/types/InboundMessageMetadata.js +0 -5
- package/dist/api/types/InboundTextMessage.d.ts +0 -11
- package/dist/api/types/InboundTextMessage.js +0 -5
- package/dist/api/types/InternalServerErrorBody.js +0 -5
- package/dist/api/types/MediaPayload.js +0 -5
- package/dist/api/types/MessageMetadata.d.ts +0 -6
- package/dist/api/types/MessageMetadata.js +0 -5
- package/dist/api/types/Messaging.js +0 -5
- package/dist/api/types/Optionals.d.ts +0 -13
- package/dist/api/types/Optionals.js +0 -5
- package/dist/api/types/PaymentRequiredErrorBody.js +0 -5
- package/dist/api/types/PointOfContact.js +0 -5
- package/dist/api/types/RcsFunctionalities.d.ts +0 -21
- package/dist/api/types/RcsFunctionalities.js +0 -5
- package/dist/api/types/SenderMetadata.js +0 -5
- package/dist/api/types/UnauthorizedErrorBody.js +0 -5
- package/dist/api/types/index.d.ts +0 -34
- package/dist/api/types/index.js +0 -50
- package/dist/core/fetcher/APIResponse.d.ts +0 -10
- package/dist/core/fetcher/APIResponse.js +0 -2
- package/dist/core/fetcher/Fetcher.d.ts +0 -39
- package/dist/core/fetcher/Fetcher.js +0 -99
- package/dist/core/fetcher/Supplier.d.ts +0 -4
- package/dist/core/fetcher/Supplier.js +0 -22
- package/dist/core/fetcher/createRequestUrl.d.ts +0 -1
- package/dist/core/fetcher/createRequestUrl.js +0 -13
- package/dist/core/fetcher/getFetchFn.d.ts +0 -4
- package/dist/core/fetcher/getFetchFn.js +0 -59
- package/dist/core/fetcher/getHeader.js +0 -12
- package/dist/core/fetcher/getRequestBody.js +0 -23
- package/dist/core/fetcher/getResponseBody.js +0 -52
- package/dist/core/fetcher/index.d.ts +0 -5
- package/dist/core/fetcher/index.js +0 -9
- package/dist/core/fetcher/makeRequest.d.ts +0 -1
- package/dist/core/fetcher/makeRequest.js +0 -42
- package/dist/core/fetcher/requestWithRetries.js +0 -32
- package/dist/core/fetcher/signals.d.ts +0 -12
- package/dist/core/fetcher/signals.js +0 -37
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -22
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -124
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -50
- package/dist/core/index.d.ts +0 -3
- package/dist/core/index.js +0 -32
- package/dist/core/runtime/index.d.ts +0 -1
- package/dist/core/runtime/index.js +0 -5
- package/dist/core/runtime/runtime.d.ts +0 -9
- package/dist/core/runtime/runtime.js +0 -93
- package/dist/core/schemas/Schema.d.ts +0 -85
- package/dist/core/schemas/Schema.js +0 -22
- package/dist/core/schemas/builders/bigint/bigint.d.ts +0 -2
- package/dist/core/schemas/builders/bigint/bigint.js +0 -50
- package/dist/core/schemas/builders/bigint/index.d.ts +0 -1
- package/dist/core/schemas/builders/bigint/index.js +0 -5
- package/dist/core/schemas/builders/date/date.d.ts +0 -2
- package/dist/core/schemas/builders/date/date.js +0 -63
- package/dist/core/schemas/builders/date/index.d.ts +0 -1
- package/dist/core/schemas/builders/date/index.js +0 -5
- package/dist/core/schemas/builders/enum/enum.d.ts +0 -2
- package/dist/core/schemas/builders/enum/enum.js +0 -39
- package/dist/core/schemas/builders/enum/index.d.ts +0 -1
- package/dist/core/schemas/builders/enum/index.js +0 -5
- package/dist/core/schemas/builders/index.d.ts +0 -14
- package/dist/core/schemas/builders/index.js +0 -30
- package/dist/core/schemas/builders/lazy/index.d.ts +0 -3
- package/dist/core/schemas/builders/lazy/index.js +0 -7
- package/dist/core/schemas/builders/lazy/lazy.d.ts +0 -5
- package/dist/core/schemas/builders/lazy/lazy.js +0 -25
- package/dist/core/schemas/builders/lazy/lazyObject.d.ts +0 -3
- package/dist/core/schemas/builders/lazy/lazyObject.js +0 -12
- package/dist/core/schemas/builders/list/index.d.ts +0 -1
- package/dist/core/schemas/builders/list/index.js +0 -5
- package/dist/core/schemas/builders/list/list.d.ts +0 -2
- package/dist/core/schemas/builders/list/list.js +0 -55
- package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +0 -2
- package/dist/core/schemas/builders/literals/booleanLiteral.js +0 -29
- package/dist/core/schemas/builders/literals/index.d.ts +0 -2
- package/dist/core/schemas/builders/literals/index.js +0 -7
- package/dist/core/schemas/builders/literals/stringLiteral.d.ts +0 -2
- package/dist/core/schemas/builders/literals/stringLiteral.js +0 -29
- package/dist/core/schemas/builders/object/index.d.ts +0 -6
- package/dist/core/schemas/builders/object/index.js +0 -11
- package/dist/core/schemas/builders/object/object.d.ts +0 -3
- package/dist/core/schemas/builders/object/object.js +0 -233
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +0 -6
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +0 -8
- package/dist/core/schemas/builders/object/property.d.ts +0 -8
- package/dist/core/schemas/builders/object/property.js +0 -16
- package/dist/core/schemas/builders/object/types.d.ts +0 -26
- package/dist/core/schemas/builders/object/types.js +0 -2
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +0 -9
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +0 -54
- package/dist/core/schemas/builders/object-like/index.d.ts +0 -2
- package/dist/core/schemas/builders/object-like/index.js +0 -6
- package/dist/core/schemas/builders/object-like/types.d.ts +0 -7
- package/dist/core/schemas/builders/object-like/types.js +0 -2
- package/dist/core/schemas/builders/primitives/any.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/any.js +0 -6
- package/dist/core/schemas/builders/primitives/boolean.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/boolean.js +0 -25
- package/dist/core/schemas/builders/primitives/index.d.ts +0 -5
- package/dist/core/schemas/builders/primitives/index.js +0 -13
- package/dist/core/schemas/builders/primitives/number.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/number.js +0 -25
- package/dist/core/schemas/builders/primitives/string.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/string.js +0 -25
- package/dist/core/schemas/builders/primitives/unknown.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/unknown.js +0 -6
- package/dist/core/schemas/builders/record/index.d.ts +0 -2
- package/dist/core/schemas/builders/record/index.js +0 -5
- package/dist/core/schemas/builders/record/record.d.ts +0 -3
- package/dist/core/schemas/builders/record/record.js +0 -95
- package/dist/core/schemas/builders/record/types.d.ts +0 -4
- package/dist/core/schemas/builders/record/types.js +0 -2
- package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +0 -5
- package/dist/core/schemas/builders/schema-utils/JsonError.js +0 -12
- package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +0 -5
- package/dist/core/schemas/builders/schema-utils/ParseError.js +0 -12
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +0 -17
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +0 -82
- package/dist/core/schemas/builders/schema-utils/index.d.ts +0 -4
- package/dist/core/schemas/builders/schema-utils/index.js +0 -11
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +0 -2
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +0 -10
- package/dist/core/schemas/builders/set/index.d.ts +0 -1
- package/dist/core/schemas/builders/set/index.js +0 -5
- package/dist/core/schemas/builders/set/set.d.ts +0 -2
- package/dist/core/schemas/builders/set/set.js +0 -44
- package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +0 -2
- package/dist/core/schemas/builders/undiscriminated-union/index.js +0 -5
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +0 -4
- package/dist/core/schemas/builders/undiscriminated-union/types.js +0 -2
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +0 -3
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +0 -40
- package/dist/core/schemas/builders/union/discriminant.d.ts +0 -5
- package/dist/core/schemas/builders/union/discriminant.js +0 -10
- package/dist/core/schemas/builders/union/index.d.ts +0 -4
- package/dist/core/schemas/builders/union/index.js +0 -7
- package/dist/core/schemas/builders/union/types.d.ts +0 -13
- package/dist/core/schemas/builders/union/types.js +0 -2
- package/dist/core/schemas/builders/union/union.d.ts +0 -4
- package/dist/core/schemas/builders/union/union.js +0 -130
- package/dist/core/schemas/index.d.ts +0 -2
- package/dist/core/schemas/index.js +0 -17
- package/dist/core/schemas/utils/MaybePromise.d.ts +0 -1
- package/dist/core/schemas/utils/MaybePromise.js +0 -2
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +0 -7
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +0 -2
- package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +0 -2
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +0 -16
- package/dist/core/schemas/utils/entries.d.ts +0 -1
- package/dist/core/schemas/utils/entries.js +0 -7
- package/dist/core/schemas/utils/filterObject.d.ts +0 -1
- package/dist/core/schemas/utils/filterObject.js +0 -14
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +0 -1
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +0 -28
- package/dist/core/schemas/utils/isPlainObject.d.ts +0 -1
- package/dist/core/schemas/utils/isPlainObject.js +0 -18
- package/dist/core/schemas/utils/keys.d.ts +0 -1
- package/dist/core/schemas/utils/keys.js +0 -7
- package/dist/core/schemas/utils/maybeSkipValidation.d.ts +0 -2
- package/dist/core/schemas/utils/maybeSkipValidation.js +0 -28
- package/dist/core/schemas/utils/partition.d.ts +0 -1
- package/dist/core/schemas/utils/partition.js +0 -16
- package/dist/environments.d.ts +0 -7
- package/dist/errors/PinnacleError.d.ts +0 -12
- package/dist/errors/PinnacleError.js +0 -32
- package/dist/errors/PinnacleTimeoutError.d.ts +0 -6
- package/dist/errors/PinnacleTimeoutError.js +0 -13
- package/dist/errors/index.d.ts +0 -2
- package/dist/errors/index.js +0 -7
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -34
- package/dist/serialization/index.d.ts +0 -2
- package/dist/serialization/index.js +0 -18
- package/dist/serialization/resources/company/client/get.d.ts +0 -11
- package/dist/serialization/resources/company/client/get.js +0 -32
- package/dist/serialization/resources/company/client/index.d.ts +0 -2
- package/dist/serialization/resources/company/client/index.js +0 -31
- package/dist/serialization/resources/company/client/requests/CompanyRegisterRequest.d.ts +0 -21
- package/dist/serialization/resources/company/client/requests/CompanyRegisterRequest.js +0 -42
- package/dist/serialization/resources/company/client/requests/CompanyUpdateRequest.d.ts +0 -22
- package/dist/serialization/resources/company/client/requests/CompanyUpdateRequest.js +0 -43
- package/dist/serialization/resources/company/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/company/client/requests/index.js +0 -7
- package/dist/serialization/resources/company/index.d.ts +0 -2
- package/dist/serialization/resources/company/index.js +0 -18
- package/dist/serialization/resources/company/types/CompanyRegisterResponse.d.ts +0 -13
- package/dist/serialization/resources/company/types/CompanyRegisterResponse.js +0 -34
- package/dist/serialization/resources/company/types/CompanyRegisterResponseBrand.d.ts +0 -13
- package/dist/serialization/resources/company/types/CompanyRegisterResponseBrand.js +0 -34
- package/dist/serialization/resources/company/types/CompanyUpdateResponse.d.ts +0 -13
- package/dist/serialization/resources/company/types/CompanyUpdateResponse.js +0 -34
- package/dist/serialization/resources/company/types/CompanyUpdateResponseBrand.d.ts +0 -13
- package/dist/serialization/resources/company/types/CompanyUpdateResponseBrand.js +0 -34
- package/dist/serialization/resources/company/types/index.d.ts +0 -4
- package/dist/serialization/resources/company/types/index.js +0 -20
- package/dist/serialization/resources/index.d.ts +0 -9
- package/dist/serialization/resources/index.js +0 -38
- package/dist/serialization/resources/send/client/index.d.ts +0 -1
- package/dist/serialization/resources/send/client/index.js +0 -17
- package/dist/serialization/resources/send/client/requests/Rcs.d.ts +0 -22
- package/dist/serialization/resources/send/client/requests/Rcs.js +0 -43
- package/dist/serialization/resources/send/client/requests/SendMmsRequest.d.ts +0 -16
- package/dist/serialization/resources/send/client/requests/SendMmsRequest.js +0 -37
- package/dist/serialization/resources/send/client/requests/SendSmsRequest.d.ts +0 -15
- package/dist/serialization/resources/send/client/requests/SendSmsRequest.js +0 -36
- package/dist/serialization/resources/send/client/requests/index.d.ts +0 -3
- package/dist/serialization/resources/send/client/requests/index.js +0 -9
- package/dist/serialization/resources/send/index.d.ts +0 -2
- package/dist/serialization/resources/send/index.js +0 -18
- package/dist/serialization/resources/send/types/RcsFallback.d.ts +0 -14
- package/dist/serialization/resources/send/types/RcsFallback.js +0 -35
- package/dist/serialization/resources/send/types/SendMmsResponse.d.ts +0 -13
- package/dist/serialization/resources/send/types/SendMmsResponse.js +0 -34
- package/dist/serialization/resources/send/types/SendRcsResponse.d.ts +0 -13
- package/dist/serialization/resources/send/types/SendRcsResponse.js +0 -34
- package/dist/serialization/resources/send/types/SendSmsResponse.d.ts +0 -13
- package/dist/serialization/resources/send/types/SendSmsResponse.js +0 -34
- package/dist/serialization/resources/send/types/index.d.ts +0 -4
- package/dist/serialization/resources/send/types/index.js +0 -20
- package/dist/serialization/resources/tools/client/index.d.ts +0 -1
- package/dist/serialization/resources/tools/client/index.js +0 -17
- package/dist/serialization/resources/tools/client/requests/ToolsShortenUrlRequest.d.ts +0 -13
- package/dist/serialization/resources/tools/client/requests/ToolsShortenUrlRequest.js +0 -34
- package/dist/serialization/resources/tools/client/requests/ToolsUploadUrlRequest.d.ts +0 -14
- package/dist/serialization/resources/tools/client/requests/ToolsUploadUrlRequest.js +0 -35
- package/dist/serialization/resources/tools/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/tools/client/requests/index.js +0 -7
- package/dist/serialization/resources/tools/index.d.ts +0 -2
- package/dist/serialization/resources/tools/index.js +0 -18
- package/dist/serialization/resources/tools/types/ToolsShortenUrlResponse.d.ts +0 -13
- package/dist/serialization/resources/tools/types/ToolsShortenUrlResponse.js +0 -34
- package/dist/serialization/resources/tools/types/ToolsUploadUrlResponse.d.ts +0 -13
- package/dist/serialization/resources/tools/types/ToolsUploadUrlResponse.js +0 -34
- package/dist/serialization/resources/tools/types/index.d.ts +0 -2
- package/dist/serialization/resources/tools/types/index.js +0 -18
- package/dist/serialization/types/Action.d.ts +0 -22
- package/dist/serialization/types/Action.js +0 -43
- package/dist/serialization/types/ActionLatLong.d.ts +0 -13
- package/dist/serialization/types/ActionLatLong.js +0 -34
- package/dist/serialization/types/ActionType.d.ts +0 -10
- package/dist/serialization/types/ActionType.js +0 -31
- package/dist/serialization/types/AdditionalEmail.d.ts +0 -13
- package/dist/serialization/types/AdditionalEmail.js +0 -34
- package/dist/serialization/types/AdditionalPhoneNumber.d.ts +0 -13
- package/dist/serialization/types/AdditionalPhoneNumber.js +0 -34
- package/dist/serialization/types/AdditionalWebsite.d.ts +0 -13
- package/dist/serialization/types/AdditionalWebsite.js +0 -34
- package/dist/serialization/types/BadRequestErrorBody.d.ts +0 -12
- package/dist/serialization/types/BadRequestErrorBody.js +0 -33
- package/dist/serialization/types/Card.d.ts +0 -16
- package/dist/serialization/types/Card.js +0 -37
- package/dist/serialization/types/Company.d.ts +0 -46
- package/dist/serialization/types/Company.js +0 -67
- package/dist/serialization/types/CompanyAdditionalEmailsItem.d.ts +0 -13
- package/dist/serialization/types/CompanyAdditionalEmailsItem.js +0 -34
- package/dist/serialization/types/CompanyAdditionalPhoneNumbersItem.d.ts +0 -13
- package/dist/serialization/types/CompanyAdditionalPhoneNumbersItem.js +0 -34
- package/dist/serialization/types/CompanyAdditionalWebsitesItem.d.ts +0 -13
- package/dist/serialization/types/CompanyAdditionalWebsitesItem.js +0 -34
- package/dist/serialization/types/CompanyCategory.d.ts +0 -10
- package/dist/serialization/types/CompanyCategory.js +0 -46
- package/dist/serialization/types/CompanyContact.d.ts +0 -19
- package/dist/serialization/types/CompanyContact.js +0 -40
- package/dist/serialization/types/CompanyDetails.d.ts +0 -20
- package/dist/serialization/types/CompanyDetails.js +0 -41
- package/dist/serialization/types/ForbiddenErrorBody.d.ts +0 -12
- package/dist/serialization/types/ForbiddenErrorBody.js +0 -33
- package/dist/serialization/types/InboundActionMessage.d.ts +0 -19
- package/dist/serialization/types/InboundActionMessage.js +0 -40
- package/dist/serialization/types/InboundLocationMessage.d.ts +0 -18
- package/dist/serialization/types/InboundLocationMessage.js +0 -39
- package/dist/serialization/types/InboundLocationMessageCoordinates.d.ts +0 -13
- package/dist/serialization/types/InboundLocationMessageCoordinates.js +0 -34
- package/dist/serialization/types/InboundMediaMessage.d.ts +0 -19
- package/dist/serialization/types/InboundMediaMessage.js +0 -40
- package/dist/serialization/types/InboundMessage.d.ts +0 -17
- package/dist/serialization/types/InboundMessage.js +0 -38
- package/dist/serialization/types/InboundMessageMessageType.d.ts +0 -10
- package/dist/serialization/types/InboundMessageMessageType.js +0 -31
- package/dist/serialization/types/InboundMessageMetadata.d.ts +0 -15
- package/dist/serialization/types/InboundMessageMetadata.js +0 -36
- package/dist/serialization/types/InboundTextMessage.d.ts +0 -17
- package/dist/serialization/types/InboundTextMessage.js +0 -38
- package/dist/serialization/types/InternalServerErrorBody.d.ts +0 -12
- package/dist/serialization/types/InternalServerErrorBody.js +0 -33
- package/dist/serialization/types/MediaPayload.d.ts +0 -13
- package/dist/serialization/types/MediaPayload.js +0 -34
- package/dist/serialization/types/MessageMetadata.d.ts +0 -12
- package/dist/serialization/types/MessageMetadata.js +0 -33
- package/dist/serialization/types/Messaging.d.ts +0 -16
- package/dist/serialization/types/Messaging.js +0 -37
- package/dist/serialization/types/Optionals.d.ts +0 -18
- package/dist/serialization/types/Optionals.js +0 -39
- package/dist/serialization/types/PaymentRequiredErrorBody.d.ts +0 -12
- package/dist/serialization/types/PaymentRequiredErrorBody.js +0 -33
- package/dist/serialization/types/PointOfContact.d.ts +0 -14
- package/dist/serialization/types/PointOfContact.js +0 -35
- package/dist/serialization/types/RcsFunctionalities.d.ts +0 -19
- package/dist/serialization/types/RcsFunctionalities.js +0 -40
- package/dist/serialization/types/SenderMetadata.d.ts +0 -14
- package/dist/serialization/types/SenderMetadata.js +0 -35
- package/dist/serialization/types/UnauthorizedErrorBody.d.ts +0 -12
- package/dist/serialization/types/UnauthorizedErrorBody.js +0 -33
- package/dist/serialization/types/index.d.ts +0 -34
- package/dist/serialization/types/index.js +0 -50
- package/dist/version.d.ts +0 -1
- package/dist/version.js +0 -4
- package/environments.d.ts +0 -7
- package/environments.js +0 -9
- package/errors/PinnacleError.d.ts +0 -12
- package/errors/PinnacleError.js +0 -32
- package/errors/PinnacleTimeoutError.d.ts +0 -6
- package/errors/PinnacleTimeoutError.js +0 -13
- package/errors/index.d.ts +0 -2
- package/errors/index.js +0 -7
- package/index.d.ts +0 -4
- package/index.js +0 -34
- package/jest.config.js +0 -5
- package/serialization/index.d.ts +0 -2
- package/serialization/index.js +0 -18
- package/serialization/resources/company/client/get.d.ts +0 -11
- package/serialization/resources/company/client/get.js +0 -32
- package/serialization/resources/company/client/index.d.ts +0 -2
- package/serialization/resources/company/client/index.js +0 -31
- package/serialization/resources/company/client/requests/CompanyRegisterRequest.d.ts +0 -21
- package/serialization/resources/company/client/requests/CompanyRegisterRequest.js +0 -42
- package/serialization/resources/company/client/requests/CompanyUpdateRequest.d.ts +0 -22
- package/serialization/resources/company/client/requests/CompanyUpdateRequest.js +0 -43
- package/serialization/resources/company/client/requests/index.d.ts +0 -2
- package/serialization/resources/company/client/requests/index.js +0 -7
- package/serialization/resources/company/index.d.ts +0 -2
- package/serialization/resources/company/index.js +0 -18
- package/serialization/resources/company/types/CompanyRegisterResponse.d.ts +0 -13
- package/serialization/resources/company/types/CompanyRegisterResponse.js +0 -34
- package/serialization/resources/company/types/CompanyRegisterResponseBrand.d.ts +0 -13
- package/serialization/resources/company/types/CompanyRegisterResponseBrand.js +0 -34
- package/serialization/resources/company/types/CompanyUpdateResponse.d.ts +0 -13
- package/serialization/resources/company/types/CompanyUpdateResponse.js +0 -34
- package/serialization/resources/company/types/CompanyUpdateResponseBrand.d.ts +0 -13
- package/serialization/resources/company/types/CompanyUpdateResponseBrand.js +0 -34
- package/serialization/resources/company/types/index.d.ts +0 -4
- package/serialization/resources/company/types/index.js +0 -20
- package/serialization/resources/index.d.ts +0 -9
- package/serialization/resources/index.js +0 -38
- package/serialization/resources/send/client/index.d.ts +0 -1
- package/serialization/resources/send/client/index.js +0 -17
- package/serialization/resources/send/client/requests/Rcs.d.ts +0 -22
- package/serialization/resources/send/client/requests/Rcs.js +0 -43
- package/serialization/resources/send/client/requests/SendMmsRequest.d.ts +0 -16
- package/serialization/resources/send/client/requests/SendMmsRequest.js +0 -37
- package/serialization/resources/send/client/requests/SendSmsRequest.d.ts +0 -15
- package/serialization/resources/send/client/requests/SendSmsRequest.js +0 -36
- package/serialization/resources/send/client/requests/index.d.ts +0 -3
- package/serialization/resources/send/client/requests/index.js +0 -9
- package/serialization/resources/send/index.d.ts +0 -2
- package/serialization/resources/send/index.js +0 -18
- package/serialization/resources/send/types/RcsFallback.d.ts +0 -14
- package/serialization/resources/send/types/RcsFallback.js +0 -35
- package/serialization/resources/send/types/SendMmsResponse.d.ts +0 -13
- package/serialization/resources/send/types/SendMmsResponse.js +0 -34
- package/serialization/resources/send/types/SendRcsResponse.d.ts +0 -13
- package/serialization/resources/send/types/SendRcsResponse.js +0 -34
- package/serialization/resources/send/types/SendSmsResponse.d.ts +0 -13
- package/serialization/resources/send/types/SendSmsResponse.js +0 -34
- package/serialization/resources/send/types/index.d.ts +0 -4
- package/serialization/resources/send/types/index.js +0 -20
- package/serialization/resources/tools/client/index.d.ts +0 -1
- package/serialization/resources/tools/client/index.js +0 -17
- package/serialization/resources/tools/client/requests/ToolsShortenUrlRequest.d.ts +0 -13
- package/serialization/resources/tools/client/requests/ToolsShortenUrlRequest.js +0 -34
- package/serialization/resources/tools/client/requests/ToolsUploadUrlRequest.d.ts +0 -14
- package/serialization/resources/tools/client/requests/ToolsUploadUrlRequest.js +0 -35
- package/serialization/resources/tools/client/requests/index.d.ts +0 -2
- package/serialization/resources/tools/client/requests/index.js +0 -7
- package/serialization/resources/tools/index.d.ts +0 -2
- package/serialization/resources/tools/index.js +0 -18
- package/serialization/resources/tools/types/ToolsShortenUrlResponse.d.ts +0 -13
- package/serialization/resources/tools/types/ToolsShortenUrlResponse.js +0 -34
- package/serialization/resources/tools/types/ToolsUploadUrlResponse.d.ts +0 -13
- package/serialization/resources/tools/types/ToolsUploadUrlResponse.js +0 -34
- package/serialization/resources/tools/types/index.d.ts +0 -2
- package/serialization/resources/tools/types/index.js +0 -18
- package/serialization/types/Action.d.ts +0 -22
- package/serialization/types/Action.js +0 -43
- package/serialization/types/ActionLatLong.d.ts +0 -13
- package/serialization/types/ActionLatLong.js +0 -34
- package/serialization/types/ActionType.d.ts +0 -10
- package/serialization/types/ActionType.js +0 -31
- package/serialization/types/AdditionalEmail.d.ts +0 -13
- package/serialization/types/AdditionalEmail.js +0 -34
- package/serialization/types/AdditionalPhoneNumber.d.ts +0 -13
- package/serialization/types/AdditionalPhoneNumber.js +0 -34
- package/serialization/types/AdditionalWebsite.d.ts +0 -13
- package/serialization/types/AdditionalWebsite.js +0 -34
- package/serialization/types/BadRequestErrorBody.d.ts +0 -12
- package/serialization/types/BadRequestErrorBody.js +0 -33
- package/serialization/types/Card.d.ts +0 -16
- package/serialization/types/Card.js +0 -37
- package/serialization/types/Company.d.ts +0 -46
- package/serialization/types/Company.js +0 -67
- package/serialization/types/CompanyAdditionalEmailsItem.d.ts +0 -13
- package/serialization/types/CompanyAdditionalEmailsItem.js +0 -34
- package/serialization/types/CompanyAdditionalPhoneNumbersItem.d.ts +0 -13
- package/serialization/types/CompanyAdditionalPhoneNumbersItem.js +0 -34
- package/serialization/types/CompanyAdditionalWebsitesItem.d.ts +0 -13
- package/serialization/types/CompanyAdditionalWebsitesItem.js +0 -34
- package/serialization/types/CompanyCategory.d.ts +0 -10
- package/serialization/types/CompanyCategory.js +0 -46
- package/serialization/types/CompanyContact.d.ts +0 -19
- package/serialization/types/CompanyContact.js +0 -40
- package/serialization/types/CompanyDetails.d.ts +0 -20
- package/serialization/types/CompanyDetails.js +0 -41
- package/serialization/types/ForbiddenErrorBody.d.ts +0 -12
- package/serialization/types/ForbiddenErrorBody.js +0 -33
- package/serialization/types/InboundActionMessage.d.ts +0 -19
- package/serialization/types/InboundActionMessage.js +0 -40
- package/serialization/types/InboundLocationMessage.d.ts +0 -18
- package/serialization/types/InboundLocationMessage.js +0 -39
- package/serialization/types/InboundLocationMessageCoordinates.d.ts +0 -13
- package/serialization/types/InboundLocationMessageCoordinates.js +0 -34
- package/serialization/types/InboundMediaMessage.d.ts +0 -19
- package/serialization/types/InboundMediaMessage.js +0 -40
- package/serialization/types/InboundMessage.d.ts +0 -17
- package/serialization/types/InboundMessage.js +0 -38
- package/serialization/types/InboundMessageMessageType.d.ts +0 -10
- package/serialization/types/InboundMessageMessageType.js +0 -31
- package/serialization/types/InboundMessageMetadata.d.ts +0 -15
- package/serialization/types/InboundMessageMetadata.js +0 -36
- package/serialization/types/InboundTextMessage.d.ts +0 -17
- package/serialization/types/InboundTextMessage.js +0 -38
- package/serialization/types/InternalServerErrorBody.d.ts +0 -12
- package/serialization/types/InternalServerErrorBody.js +0 -33
- package/serialization/types/MediaPayload.d.ts +0 -13
- package/serialization/types/MediaPayload.js +0 -34
- package/serialization/types/MessageMetadata.d.ts +0 -12
- package/serialization/types/MessageMetadata.js +0 -33
- package/serialization/types/Messaging.d.ts +0 -16
- package/serialization/types/Messaging.js +0 -37
- package/serialization/types/Optionals.d.ts +0 -18
- package/serialization/types/Optionals.js +0 -39
- package/serialization/types/PaymentRequiredErrorBody.d.ts +0 -12
- package/serialization/types/PaymentRequiredErrorBody.js +0 -33
- package/serialization/types/PointOfContact.d.ts +0 -14
- package/serialization/types/PointOfContact.js +0 -35
- package/serialization/types/RcsFunctionalities.d.ts +0 -19
- package/serialization/types/RcsFunctionalities.js +0 -40
- package/serialization/types/SenderMetadata.d.ts +0 -14
- package/serialization/types/SenderMetadata.js +0 -35
- package/serialization/types/UnauthorizedErrorBody.d.ts +0 -12
- package/serialization/types/UnauthorizedErrorBody.js +0 -33
- package/serialization/types/index.d.ts +0 -34
- package/serialization/types/index.js +0 -50
- package/version.d.ts +0 -1
- package/version.js +0 -4
- /package/{api → dist/cjs/api}/client/requests/GetRcsFunctionalityRequest.d.ts +0 -0
- /package/{api → dist/cjs/api}/client/requests/GetRcsFunctionalityRequest.js +0 -0
- /package/{api → dist/cjs/api}/client/requests/index.js +0 -0
- /package/{api → dist/cjs/api}/resources/company/client/requests/CompanyGetRequest.d.ts +0 -0
- /package/{api → dist/cjs/api}/resources/company/client/requests/CompanyGetRequest.js +0 -0
- /package/{api → dist/cjs/api}/resources/company/client/requests/CompanyUpdateRequest.js +0 -0
- /package/{api → dist/cjs/api}/resources/company/client/requests/index.js +0 -0
- /package/{api/resources/company/client/requests → dist/cjs/api/resources/company/types}/CompanyRegisterRequest.js +0 -0
- /package/{api → dist/cjs/api}/resources/company/types/CompanyRegisterResponse.js +0 -0
- /package/{api → dist/cjs/api}/resources/company/types/CompanyUpdateResponse.js +0 -0
- /package/{api → dist/cjs/api}/resources/send/client/requests/Rcs.js +0 -0
- /package/{api → dist/cjs/api}/resources/send/client/requests/SendMmsRequest.d.ts +0 -0
- /package/{api → dist/cjs/api}/resources/send/client/requests/SendMmsRequest.js +0 -0
- /package/{api → dist/cjs/api}/resources/send/client/requests/SendSmsRequest.d.ts +0 -0
- /package/{api → dist/cjs/api}/resources/send/client/requests/SendSmsRequest.js +0 -0
- /package/{api → dist/cjs/api}/resources/send/client/requests/index.js +0 -0
- /package/{api → dist/cjs/api}/resources/send/types/SendMmsResponse.d.ts +0 -0
- /package/{api → dist/cjs/api}/resources/send/types/SendMmsResponse.js +0 -0
- /package/{api → dist/cjs/api}/resources/send/types/SendRcsResponse.d.ts +0 -0
- /package/{api → dist/cjs/api}/resources/send/types/SendRcsResponse.js +0 -0
- /package/{api → dist/cjs/api}/resources/send/types/SendSmsResponse.d.ts +0 -0
- /package/{api → dist/cjs/api}/resources/send/types/SendSmsResponse.js +0 -0
- /package/{api → dist/cjs/api}/resources/tools/client/requests/ToolsShortenUrlRequest.js +0 -0
- /package/{api → dist/cjs/api}/resources/tools/client/requests/ToolsUploadUrlRequest.js +0 -0
- /package/{api → dist/cjs/api}/resources/tools/client/requests/index.js +0 -0
- /package/{api → dist/cjs/api}/resources/tools/types/ToolsShortenUrlResponse.js +0 -0
- /package/{api → dist/cjs/api}/resources/tools/types/ToolsUploadUrlResponse.d.ts +0 -0
- /package/{api → dist/cjs/api}/resources/tools/types/ToolsUploadUrlResponse.js +0 -0
- /package/{api → dist/cjs/api}/types/AdditionalEmail.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/AdditionalEmail.js +0 -0
- /package/{api → dist/cjs/api}/types/AdditionalPhoneNumber.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/AdditionalPhoneNumber.js +0 -0
- /package/{api → dist/cjs/api}/types/AdditionalWebsite.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/AdditionalWebsite.js +0 -0
- /package/{api → dist/cjs/api}/types/BadRequestErrorBody.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/BadRequestErrorBody.js +0 -0
- /package/{api → dist/cjs/api}/types/Card.js +0 -0
- /package/{api → dist/cjs/api}/types/Company.js +0 -0
- /package/{api → dist/cjs/api}/types/CompanyCategory.js +0 -0
- /package/{api → dist/cjs/api}/types/CompanyContact.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/CompanyContact.js +0 -0
- /package/{api → dist/cjs/api}/types/CompanyDetails.js +0 -0
- /package/{api → dist/cjs/api}/types/ForbiddenErrorBody.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/ForbiddenErrorBody.js +0 -0
- /package/{api → dist/cjs/api}/types/InboundActionMessage.js +0 -0
- /package/{api → dist/cjs/api}/types/InboundLocationMessage.js +0 -0
- /package/{api → dist/cjs/api}/types/InboundMediaMessage.js +0 -0
- /package/{api → dist/cjs/api}/types/InboundTextMessage.js +0 -0
- /package/{api → dist/cjs/api}/types/InternalServerErrorBody.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/InternalServerErrorBody.js +0 -0
- /package/{api → dist/cjs/api}/types/MediaPayload.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/MediaPayload.js +0 -0
- /package/{api → dist/cjs/api}/types/MessageMetadata.js +0 -0
- /package/{api → dist/cjs/api}/types/Messaging.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/Messaging.js +0 -0
- /package/{api → dist/cjs/api}/types/Optionals.js +0 -0
- /package/{api → dist/cjs/api}/types/PaymentRequiredErrorBody.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/PaymentRequiredErrorBody.js +0 -0
- /package/{api → dist/cjs/api}/types/PointOfContact.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/PointOfContact.js +0 -0
- /package/{api → dist/cjs/api}/types/RcsFunctionalities.js +0 -0
- /package/{api → dist/cjs/api}/types/SenderMetadata.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/SenderMetadata.js +0 -0
- /package/{api → dist/cjs/api}/types/UnauthorizedErrorBody.d.ts +0 -0
- /package/{api → dist/cjs/api}/types/UnauthorizedErrorBody.js +0 -0
- /package/{core → dist/cjs/core}/fetcher/APIResponse.js +0 -0
- /package/{core → dist/cjs/core}/fetcher/Supplier.js +0 -0
- /package/{core → dist/cjs/core}/fetcher/getHeader.d.ts +0 -0
- /package/{core → dist/cjs/core}/fetcher/getRequestBody.d.ts +0 -0
- /package/{core → dist/cjs/core}/fetcher/getResponseBody.d.ts +0 -0
- /package/{core → dist/cjs/core}/fetcher/requestWithRetries.d.ts +0 -0
- /package/dist/{environments.js → cjs/environments.js} +0 -0
- /package/dist/{api/client/requests/GetRcsFunctionalityRequest.d.ts → esm/api/client/requests/GetRcsFunctionalityRequest.d.mts} +0 -0
- /package/dist/{api/resources/company/client/requests/CompanyGetRequest.d.ts → esm/api/resources/company/client/requests/CompanyGetRequest.d.mts} +0 -0
- /package/dist/{api/resources/send/client/requests/SendMmsRequest.d.ts → esm/api/resources/send/client/requests/SendMmsRequest.d.mts} +0 -0
- /package/dist/{api/resources/send/client/requests/SendSmsRequest.d.ts → esm/api/resources/send/client/requests/SendSmsRequest.d.mts} +0 -0
- /package/dist/{api/resources/send/types/SendMmsResponse.d.ts → esm/api/resources/send/types/SendMmsResponse.d.mts} +0 -0
- /package/dist/{api/resources/send/types/SendRcsResponse.d.ts → esm/api/resources/send/types/SendRcsResponse.d.mts} +0 -0
- /package/dist/{api/resources/send/types/SendSmsResponse.d.ts → esm/api/resources/send/types/SendSmsResponse.d.mts} +0 -0
- /package/dist/{api/resources/tools/types/ToolsUploadUrlResponse.d.ts → esm/api/resources/tools/types/ToolsUploadUrlResponse.d.mts} +0 -0
- /package/dist/{api/types/AdditionalEmail.d.ts → esm/api/types/AdditionalEmail.d.mts} +0 -0
- /package/dist/{api/types/AdditionalPhoneNumber.d.ts → esm/api/types/AdditionalPhoneNumber.d.mts} +0 -0
- /package/dist/{api/types/AdditionalWebsite.d.ts → esm/api/types/AdditionalWebsite.d.mts} +0 -0
- /package/dist/{api/types/BadRequestErrorBody.d.ts → esm/api/types/BadRequestErrorBody.d.mts} +0 -0
- /package/dist/{api/types/CompanyContact.d.ts → esm/api/types/CompanyContact.d.mts} +0 -0
- /package/dist/{api/types/ForbiddenErrorBody.d.ts → esm/api/types/ForbiddenErrorBody.d.mts} +0 -0
- /package/dist/{api/types/InternalServerErrorBody.d.ts → esm/api/types/InternalServerErrorBody.d.mts} +0 -0
- /package/dist/{api/types/MediaPayload.d.ts → esm/api/types/MediaPayload.d.mts} +0 -0
- /package/dist/{api/types/Messaging.d.ts → esm/api/types/Messaging.d.mts} +0 -0
- /package/dist/{api/types/PaymentRequiredErrorBody.d.ts → esm/api/types/PaymentRequiredErrorBody.d.mts} +0 -0
- /package/dist/{api/types/PointOfContact.d.ts → esm/api/types/PointOfContact.d.mts} +0 -0
- /package/dist/{api/types/SenderMetadata.d.ts → esm/api/types/SenderMetadata.d.mts} +0 -0
- /package/dist/{api/types/UnauthorizedErrorBody.d.ts → esm/api/types/UnauthorizedErrorBody.d.mts} +0 -0
- /package/dist/{core/fetcher/getHeader.d.ts → esm/core/fetcher/getHeader.d.mts} +0 -0
- /package/dist/{core/fetcher/getRequestBody.d.ts → esm/core/fetcher/getRequestBody.d.mts} +0 -0
- /package/dist/{core/fetcher/getResponseBody.d.ts → esm/core/fetcher/getResponseBody.d.mts} +0 -0
- /package/dist/{core/fetcher/requestWithRetries.d.ts → esm/core/fetcher/requestWithRetries.d.mts} +0 -0
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as environments from "../../../../environments";
|
|
5
|
-
import * as core from "../../../../core";
|
|
6
|
-
import * as Pinnacle from "../../../index";
|
|
7
|
-
export declare namespace Send {
|
|
8
|
-
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.PinnacleEnvironment | string>;
|
|
10
|
-
apiKey: core.Supplier<string>;
|
|
11
|
-
}
|
|
12
|
-
interface RequestOptions {
|
|
13
|
-
/** The maximum time to wait for a response in seconds. */
|
|
14
|
-
timeoutInSeconds?: number;
|
|
15
|
-
/** The number of times to retry the request. Defaults to 2. */
|
|
16
|
-
maxRetries?: number;
|
|
17
|
-
/** A hook to abort the request. */
|
|
18
|
-
abortSignal?: AbortSignal;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
export declare class Send {
|
|
22
|
-
protected readonly _options: Send.Options;
|
|
23
|
-
constructor(_options: Send.Options);
|
|
24
|
-
/**
|
|
25
|
-
* Send an interactive RCS message with text, media, or cards. Each message can only contain either text, media, or card(s).
|
|
26
|
-
*
|
|
27
|
-
* Quick replies can also be added to the message.
|
|
28
|
-
*
|
|
29
|
-
* @param {Pinnacle.Rcs} request
|
|
30
|
-
* @param {Send.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
|
-
*
|
|
32
|
-
* @throws {@link Pinnacle.BadRequestError}
|
|
33
|
-
* @throws {@link Pinnacle.UnauthorizedError}
|
|
34
|
-
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
35
|
-
* @throws {@link Pinnacle.ForbiddenError}
|
|
36
|
-
* @throws {@link Pinnacle.InternalServerError}
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* await client.send.rcs({
|
|
40
|
-
* from: "from",
|
|
41
|
-
* to: "to"
|
|
42
|
-
* })
|
|
43
|
-
*/
|
|
44
|
-
rcs(request: Pinnacle.Rcs, requestOptions?: Send.RequestOptions): Promise<Pinnacle.SendRcsResponse>;
|
|
45
|
-
/**
|
|
46
|
-
* Send an SMS message to a recipient.
|
|
47
|
-
*
|
|
48
|
-
* @param {Pinnacle.SendSmsRequest} request
|
|
49
|
-
* @param {Send.RequestOptions} requestOptions - Request-specific configuration.
|
|
50
|
-
*
|
|
51
|
-
* @throws {@link Pinnacle.BadRequestError}
|
|
52
|
-
* @throws {@link Pinnacle.UnauthorizedError}
|
|
53
|
-
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
54
|
-
* @throws {@link Pinnacle.ForbiddenError}
|
|
55
|
-
* @throws {@link Pinnacle.InternalServerError}
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* await client.send.sms({
|
|
59
|
-
* to: "to",
|
|
60
|
-
* from: "from",
|
|
61
|
-
* text: "text"
|
|
62
|
-
* })
|
|
63
|
-
*/
|
|
64
|
-
sms(request: Pinnacle.SendSmsRequest, requestOptions?: Send.RequestOptions): Promise<Pinnacle.SendSmsResponse>;
|
|
65
|
-
/**
|
|
66
|
-
* Send an MMS message with media attachments.
|
|
67
|
-
*
|
|
68
|
-
* @param {Pinnacle.SendMmsRequest} request
|
|
69
|
-
* @param {Send.RequestOptions} requestOptions - Request-specific configuration.
|
|
70
|
-
*
|
|
71
|
-
* @throws {@link Pinnacle.BadRequestError}
|
|
72
|
-
* @throws {@link Pinnacle.UnauthorizedError}
|
|
73
|
-
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
74
|
-
* @throws {@link Pinnacle.ForbiddenError}
|
|
75
|
-
* @throws {@link Pinnacle.InternalServerError}
|
|
76
|
-
*
|
|
77
|
-
* @example
|
|
78
|
-
* await client.send.mms({
|
|
79
|
-
* to: "to",
|
|
80
|
-
* from: "from",
|
|
81
|
-
* mediaUrls: ["https://example.com/image1.jpg", "https://example.com/video.mp4"]
|
|
82
|
-
* })
|
|
83
|
-
*/
|
|
84
|
-
mms(request: Pinnacle.SendMmsRequest, requestOptions?: Send.RequestOptions): Promise<Pinnacle.SendMmsResponse>;
|
|
85
|
-
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
86
|
-
"PINNACLE-API-Key": string;
|
|
87
|
-
}>;
|
|
88
|
-
}
|
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
38
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
39
|
-
};
|
|
40
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
-
exports.Send = void 0;
|
|
42
|
-
const environments = __importStar(require("../../../../environments"));
|
|
43
|
-
const core = __importStar(require("../../../../core"));
|
|
44
|
-
const Pinnacle = __importStar(require("../../../index"));
|
|
45
|
-
const serializers = __importStar(require("../../../../serialization/index"));
|
|
46
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
47
|
-
const errors = __importStar(require("../../../../errors/index"));
|
|
48
|
-
class Send {
|
|
49
|
-
constructor(_options) {
|
|
50
|
-
this._options = _options;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Send an interactive RCS message with text, media, or cards. Each message can only contain either text, media, or card(s).
|
|
54
|
-
*
|
|
55
|
-
* Quick replies can also be added to the message.
|
|
56
|
-
*
|
|
57
|
-
* @param {Pinnacle.Rcs} request
|
|
58
|
-
* @param {Send.RequestOptions} requestOptions - Request-specific configuration.
|
|
59
|
-
*
|
|
60
|
-
* @throws {@link Pinnacle.BadRequestError}
|
|
61
|
-
* @throws {@link Pinnacle.UnauthorizedError}
|
|
62
|
-
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
63
|
-
* @throws {@link Pinnacle.ForbiddenError}
|
|
64
|
-
* @throws {@link Pinnacle.InternalServerError}
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
* await client.send.rcs({
|
|
68
|
-
* from: "from",
|
|
69
|
-
* to: "to"
|
|
70
|
-
* })
|
|
71
|
-
*/
|
|
72
|
-
rcs(request, requestOptions) {
|
|
73
|
-
var _a;
|
|
74
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
-
const _response = yield core.fetcher({
|
|
76
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "send/rcs"),
|
|
77
|
-
method: "POST",
|
|
78
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.16", "User-Agent": "rcs-js/1.0.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
79
|
-
contentType: "application/json",
|
|
80
|
-
requestType: "json",
|
|
81
|
-
body: serializers.Rcs.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
82
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
83
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
84
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
85
|
-
});
|
|
86
|
-
if (_response.ok) {
|
|
87
|
-
return serializers.SendRcsResponse.parseOrThrow(_response.body, {
|
|
88
|
-
unrecognizedObjectKeys: "passthrough",
|
|
89
|
-
allowUnrecognizedUnionMembers: true,
|
|
90
|
-
allowUnrecognizedEnumValues: true,
|
|
91
|
-
breadcrumbsPrefix: ["response"],
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
if (_response.error.reason === "status-code") {
|
|
95
|
-
switch (_response.error.statusCode) {
|
|
96
|
-
case 400:
|
|
97
|
-
throw new Pinnacle.BadRequestError(_response.error.body);
|
|
98
|
-
case 401:
|
|
99
|
-
throw new Pinnacle.UnauthorizedError(_response.error.body);
|
|
100
|
-
case 402:
|
|
101
|
-
throw new Pinnacle.PaymentRequiredError(_response.error.body);
|
|
102
|
-
case 403:
|
|
103
|
-
throw new Pinnacle.ForbiddenError(_response.error.body);
|
|
104
|
-
case 500:
|
|
105
|
-
throw new Pinnacle.InternalServerError(_response.error.body);
|
|
106
|
-
default:
|
|
107
|
-
throw new errors.PinnacleError({
|
|
108
|
-
statusCode: _response.error.statusCode,
|
|
109
|
-
body: _response.error.body,
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
switch (_response.error.reason) {
|
|
114
|
-
case "non-json":
|
|
115
|
-
throw new errors.PinnacleError({
|
|
116
|
-
statusCode: _response.error.statusCode,
|
|
117
|
-
body: _response.error.rawBody,
|
|
118
|
-
});
|
|
119
|
-
case "timeout":
|
|
120
|
-
throw new errors.PinnacleTimeoutError();
|
|
121
|
-
case "unknown":
|
|
122
|
-
throw new errors.PinnacleError({
|
|
123
|
-
message: _response.error.errorMessage,
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Send an SMS message to a recipient.
|
|
130
|
-
*
|
|
131
|
-
* @param {Pinnacle.SendSmsRequest} request
|
|
132
|
-
* @param {Send.RequestOptions} requestOptions - Request-specific configuration.
|
|
133
|
-
*
|
|
134
|
-
* @throws {@link Pinnacle.BadRequestError}
|
|
135
|
-
* @throws {@link Pinnacle.UnauthorizedError}
|
|
136
|
-
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
137
|
-
* @throws {@link Pinnacle.ForbiddenError}
|
|
138
|
-
* @throws {@link Pinnacle.InternalServerError}
|
|
139
|
-
*
|
|
140
|
-
* @example
|
|
141
|
-
* await client.send.sms({
|
|
142
|
-
* to: "to",
|
|
143
|
-
* from: "from",
|
|
144
|
-
* text: "text"
|
|
145
|
-
* })
|
|
146
|
-
*/
|
|
147
|
-
sms(request, requestOptions) {
|
|
148
|
-
var _a;
|
|
149
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
150
|
-
const _response = yield core.fetcher({
|
|
151
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "send/sms"),
|
|
152
|
-
method: "POST",
|
|
153
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.16", "User-Agent": "rcs-js/1.0.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
154
|
-
contentType: "application/json",
|
|
155
|
-
requestType: "json",
|
|
156
|
-
body: serializers.SendSmsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
157
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
158
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
159
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
160
|
-
});
|
|
161
|
-
if (_response.ok) {
|
|
162
|
-
return serializers.SendSmsResponse.parseOrThrow(_response.body, {
|
|
163
|
-
unrecognizedObjectKeys: "passthrough",
|
|
164
|
-
allowUnrecognizedUnionMembers: true,
|
|
165
|
-
allowUnrecognizedEnumValues: true,
|
|
166
|
-
breadcrumbsPrefix: ["response"],
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
if (_response.error.reason === "status-code") {
|
|
170
|
-
switch (_response.error.statusCode) {
|
|
171
|
-
case 400:
|
|
172
|
-
throw new Pinnacle.BadRequestError(_response.error.body);
|
|
173
|
-
case 401:
|
|
174
|
-
throw new Pinnacle.UnauthorizedError(_response.error.body);
|
|
175
|
-
case 402:
|
|
176
|
-
throw new Pinnacle.PaymentRequiredError(_response.error.body);
|
|
177
|
-
case 403:
|
|
178
|
-
throw new Pinnacle.ForbiddenError(_response.error.body);
|
|
179
|
-
case 500:
|
|
180
|
-
throw new Pinnacle.InternalServerError(_response.error.body);
|
|
181
|
-
default:
|
|
182
|
-
throw new errors.PinnacleError({
|
|
183
|
-
statusCode: _response.error.statusCode,
|
|
184
|
-
body: _response.error.body,
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
switch (_response.error.reason) {
|
|
189
|
-
case "non-json":
|
|
190
|
-
throw new errors.PinnacleError({
|
|
191
|
-
statusCode: _response.error.statusCode,
|
|
192
|
-
body: _response.error.rawBody,
|
|
193
|
-
});
|
|
194
|
-
case "timeout":
|
|
195
|
-
throw new errors.PinnacleTimeoutError();
|
|
196
|
-
case "unknown":
|
|
197
|
-
throw new errors.PinnacleError({
|
|
198
|
-
message: _response.error.errorMessage,
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
/**
|
|
204
|
-
* Send an MMS message with media attachments.
|
|
205
|
-
*
|
|
206
|
-
* @param {Pinnacle.SendMmsRequest} request
|
|
207
|
-
* @param {Send.RequestOptions} requestOptions - Request-specific configuration.
|
|
208
|
-
*
|
|
209
|
-
* @throws {@link Pinnacle.BadRequestError}
|
|
210
|
-
* @throws {@link Pinnacle.UnauthorizedError}
|
|
211
|
-
* @throws {@link Pinnacle.PaymentRequiredError}
|
|
212
|
-
* @throws {@link Pinnacle.ForbiddenError}
|
|
213
|
-
* @throws {@link Pinnacle.InternalServerError}
|
|
214
|
-
*
|
|
215
|
-
* @example
|
|
216
|
-
* await client.send.mms({
|
|
217
|
-
* to: "to",
|
|
218
|
-
* from: "from",
|
|
219
|
-
* mediaUrls: ["https://example.com/image1.jpg", "https://example.com/video.mp4"]
|
|
220
|
-
* })
|
|
221
|
-
*/
|
|
222
|
-
mms(request, requestOptions) {
|
|
223
|
-
var _a;
|
|
224
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
225
|
-
const _response = yield core.fetcher({
|
|
226
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PinnacleEnvironment.Default, "send/mms"),
|
|
227
|
-
method: "POST",
|
|
228
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "rcs-js", "X-Fern-SDK-Version": "1.0.16", "User-Agent": "rcs-js/1.0.16", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
229
|
-
contentType: "application/json",
|
|
230
|
-
requestType: "json",
|
|
231
|
-
body: serializers.SendMmsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
232
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
233
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
234
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
235
|
-
});
|
|
236
|
-
if (_response.ok) {
|
|
237
|
-
return serializers.SendMmsResponse.parseOrThrow(_response.body, {
|
|
238
|
-
unrecognizedObjectKeys: "passthrough",
|
|
239
|
-
allowUnrecognizedUnionMembers: true,
|
|
240
|
-
allowUnrecognizedEnumValues: true,
|
|
241
|
-
breadcrumbsPrefix: ["response"],
|
|
242
|
-
});
|
|
243
|
-
}
|
|
244
|
-
if (_response.error.reason === "status-code") {
|
|
245
|
-
switch (_response.error.statusCode) {
|
|
246
|
-
case 400:
|
|
247
|
-
throw new Pinnacle.BadRequestError(_response.error.body);
|
|
248
|
-
case 401:
|
|
249
|
-
throw new Pinnacle.UnauthorizedError(_response.error.body);
|
|
250
|
-
case 402:
|
|
251
|
-
throw new Pinnacle.PaymentRequiredError(_response.error.body);
|
|
252
|
-
case 403:
|
|
253
|
-
throw new Pinnacle.ForbiddenError(_response.error.body);
|
|
254
|
-
case 500:
|
|
255
|
-
throw new Pinnacle.InternalServerError(_response.error.body);
|
|
256
|
-
default:
|
|
257
|
-
throw new errors.PinnacleError({
|
|
258
|
-
statusCode: _response.error.statusCode,
|
|
259
|
-
body: _response.error.body,
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
switch (_response.error.reason) {
|
|
264
|
-
case "non-json":
|
|
265
|
-
throw new errors.PinnacleError({
|
|
266
|
-
statusCode: _response.error.statusCode,
|
|
267
|
-
body: _response.error.rawBody,
|
|
268
|
-
});
|
|
269
|
-
case "timeout":
|
|
270
|
-
throw new errors.PinnacleTimeoutError();
|
|
271
|
-
case "unknown":
|
|
272
|
-
throw new errors.PinnacleError({
|
|
273
|
-
message: _response.error.errorMessage,
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
});
|
|
277
|
-
}
|
|
278
|
-
_getCustomAuthorizationHeaders() {
|
|
279
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
280
|
-
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
281
|
-
return { "PINNACLE-API-Key": apiKeyValue };
|
|
282
|
-
});
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
exports.Send = Send;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./requests";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./requests"), exports);
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Pinnacle from "../../../../index";
|
|
5
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* {
|
|
8
|
-
* from: "from",
|
|
9
|
-
* to: "to"
|
|
10
|
-
* }
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* {
|
|
14
|
-
* from: "from",
|
|
15
|
-
* to: "to"
|
|
16
|
-
* }
|
|
17
|
-
*/
|
|
18
|
-
export interface Rcs {
|
|
19
|
-
/**
|
|
20
|
-
* The id of the RCS agent sending the message.
|
|
21
|
-
*
|
|
22
|
-
* Use 'test' if you want to send from the Pinnacle test agent. The test agent can only send to whitelisted test numbers.
|
|
23
|
-
*
|
|
24
|
-
* See https://dashboard.trypinnacle.app/settings/test-numbers to whitelist a number.
|
|
25
|
-
*/
|
|
26
|
-
from: string;
|
|
27
|
-
/** The recipient's RCS-enabled phone number in E.164 format (e.g., +12345678901). */
|
|
28
|
-
to: string;
|
|
29
|
-
/**
|
|
30
|
-
* Text content of the message.
|
|
31
|
-
*
|
|
32
|
-
* Make sure you have either 'text', 'mediaUrl', or 'cards'. An error will be thrown if multiple (i.e. both 'text' and 'mediaUrl') is provided.
|
|
33
|
-
*/
|
|
34
|
-
text?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Media URL to be included in the message.
|
|
37
|
-
*
|
|
38
|
-
* Make sure you have either 'text', 'mediaUrl', or 'cards'. An error will be thrown if multiple (i.e. both 'text' and 'mediaUrl') is provided.
|
|
39
|
-
*/
|
|
40
|
-
mediaUrl?: string;
|
|
41
|
-
/**
|
|
42
|
-
* List of rich cards. Maximum of 10 cards.
|
|
43
|
-
*
|
|
44
|
-
* Make sure you have either 'text', 'mediaUrl', or 'cards'. An error will be thrown if multiple (i.e. both 'text' and 'mediaUrl') is provided.
|
|
45
|
-
*/
|
|
46
|
-
cards?: Pinnacle.Card[];
|
|
47
|
-
/** Optional list of quick reply actions (max 10). */
|
|
48
|
-
quickReplies?: Pinnacle.Action[];
|
|
49
|
-
fallback?: Pinnacle.RcsFallback;
|
|
50
|
-
/** Optional URL to receive a POST request when the message status changes. Read more about status callbacks [here](/api-reference/receive-msg-statuses). */
|
|
51
|
-
statusCallback?: string;
|
|
52
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./types"), exports);
|
|
18
|
-
__exportStar(require("./client"), exports);
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface RcsFallback {
|
|
5
|
-
/** The sender's phone number in E.164 format. Must be owned by the user. */
|
|
6
|
-
from?: string;
|
|
7
|
-
/** The fallback message content (max 1600 characters). One of 'text' or 'mediaUrls' must be provided. */
|
|
8
|
-
text?: string;
|
|
9
|
-
/** The URLs of media to include. One of 'text' or 'mediaUrls' must be provided. `jpeg`, `jpg`, `gif`, and `png` file types are fully supported and have a size limit of 5 MB. 500 KB limit for other types. Up to 10 media URLs can be included. */
|
|
10
|
-
mediaUrls?: string[];
|
|
11
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./RcsFallback"), exports);
|
|
18
|
-
__exportStar(require("./SendRcsResponse"), exports);
|
|
19
|
-
__exportStar(require("./SendSmsResponse"), exports);
|
|
20
|
-
__exportStar(require("./SendMmsResponse"), exports);
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as environments from "../../../../environments";
|
|
5
|
-
import * as core from "../../../../core";
|
|
6
|
-
import * as Pinnacle from "../../../index";
|
|
7
|
-
export declare namespace Tools {
|
|
8
|
-
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.PinnacleEnvironment | string>;
|
|
10
|
-
apiKey: core.Supplier<string>;
|
|
11
|
-
}
|
|
12
|
-
interface RequestOptions {
|
|
13
|
-
/** The maximum time to wait for a response in seconds. */
|
|
14
|
-
timeoutInSeconds?: number;
|
|
15
|
-
/** The number of times to retry the request. Defaults to 2. */
|
|
16
|
-
maxRetries?: number;
|
|
17
|
-
/** A hook to abort the request. */
|
|
18
|
-
abortSignal?: AbortSignal;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
export declare class Tools {
|
|
22
|
-
protected readonly _options: Tools.Options;
|
|
23
|
-
constructor(_options: Tools.Options);
|
|
24
|
-
/**
|
|
25
|
-
* Create a shortened URL with an optional expiration date (default and max expiration is 90 days). The shortened URL will redirect to the original URL and will have the following format https://urls.p1n.io/ABCD5678.
|
|
26
|
-
*
|
|
27
|
-
* @param {Pinnacle.ToolsShortenUrlRequest} request
|
|
28
|
-
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
29
|
-
*
|
|
30
|
-
* @throws {@link Pinnacle.BadRequestError}
|
|
31
|
-
* @throws {@link Pinnacle.UnauthorizedError}
|
|
32
|
-
* @throws {@link Pinnacle.InternalServerError}
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* await client.tools.shortenUrl({
|
|
36
|
-
* url: "https://example.com"
|
|
37
|
-
* })
|
|
38
|
-
*/
|
|
39
|
-
shortenUrl(request: Pinnacle.ToolsShortenUrlRequest, requestOptions?: Tools.RequestOptions): Promise<Pinnacle.ToolsShortenUrlResponse>;
|
|
40
|
-
/**
|
|
41
|
-
* Generate signed upload (expires in 2 hours) and download URLs for a file (expires in 1 hour).
|
|
42
|
-
*
|
|
43
|
-
* @param {Pinnacle.ToolsUploadUrlRequest} request
|
|
44
|
-
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
45
|
-
*
|
|
46
|
-
* @throws {@link Pinnacle.BadRequestError}
|
|
47
|
-
* @throws {@link Pinnacle.UnauthorizedError}
|
|
48
|
-
* @throws {@link Pinnacle.InternalServerError}
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* await client.tools.uploadUrl({
|
|
52
|
-
* contentType: "image/png",
|
|
53
|
-
* size: 1024,
|
|
54
|
-
* name: "example.png"
|
|
55
|
-
* })
|
|
56
|
-
*/
|
|
57
|
-
uploadUrl(request: Pinnacle.ToolsUploadUrlRequest, requestOptions?: Tools.RequestOptions): Promise<Pinnacle.ToolsUploadUrlResponse>;
|
|
58
|
-
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
59
|
-
"PINNACLE-API-Key": string;
|
|
60
|
-
}>;
|
|
61
|
-
}
|