rcs-js 0.0.1 → 1.0.2
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/Client.d.ts +93 -0
- package/Client.js +384 -0
- package/README.md +137 -0
- package/api/client/index.d.ts +1 -0
- package/api/client/index.js +17 -0
- package/api/client/requests/CheckRcsCapabilityRequest.d.ts +21 -0
- package/api/client/requests/CheckRcsCapabilityRequest.js +5 -0
- package/api/client/requests/UpdateSettingsRequest.d.ts +13 -0
- package/api/client/requests/UpdateSettingsRequest.js +5 -0
- package/api/client/requests/index.d.ts +2 -0
- package/api/client/requests/index.js +2 -0
- package/api/errors/BadRequestError.d.ts +8 -0
- package/api/errors/BadRequestError.js +41 -0
- package/api/errors/InternalServerError.d.ts +8 -0
- package/api/errors/InternalServerError.js +41 -0
- package/api/errors/UnauthorizedError.d.ts +8 -0
- package/api/errors/UnauthorizedError.js +41 -0
- package/api/errors/index.d.ts +3 -0
- package/api/errors/index.js +19 -0
- package/api/index.d.ts +3 -0
- package/api/index.js +19 -0
- package/api/types/Action.d.ts +5 -0
- package/api/types/Action.js +5 -0
- package/api/types/BadRequestErrorBody.d.ts +6 -0
- package/api/types/BadRequestErrorBody.js +5 -0
- package/api/types/BasicRcs.d.ts +13 -0
- package/api/types/BasicRcs.js +5 -0
- package/api/types/BasicRcsMessage.d.ts +10 -0
- package/api/types/BasicRcsMessage.js +5 -0
- package/api/types/Call.d.ts +9 -0
- package/api/types/Call.js +5 -0
- package/api/types/Card.d.ts +16 -0
- package/api/types/Card.js +5 -0
- package/api/types/CardRcs.d.ts +12 -0
- package/api/types/CardRcs.js +5 -0
- package/api/types/CardRcsMessage.d.ts +13 -0
- package/api/types/CardRcsMessage.js +5 -0
- package/api/types/CardStyle.d.ts +16 -0
- package/api/types/CardStyle.js +5 -0
- package/api/types/CardStyleImageAlignment.d.ts +11 -0
- package/api/types/CardStyleImageAlignment.js +10 -0
- package/api/types/CardStyleMediaHeight.d.ts +12 -0
- package/api/types/CardStyleMediaHeight.js +11 -0
- package/api/types/CardStyleOrientation.d.ts +11 -0
- package/api/types/CardStyleOrientation.js +10 -0
- package/api/types/CardStyleWidth.d.ts +11 -0
- package/api/types/CardStyleWidth.js +10 -0
- package/api/types/CarouselRcs.d.ts +12 -0
- package/api/types/CarouselRcs.js +5 -0
- package/api/types/CarouselRcsMessage.d.ts +13 -0
- package/api/types/CarouselRcsMessage.js +5 -0
- package/api/types/CheckRcsCapabilityResponse.d.ts +7 -0
- package/api/types/CheckRcsCapabilityResponse.js +5 -0
- package/api/types/Event.d.ts +15 -0
- package/api/types/Event.js +5 -0
- package/api/types/GetAccountNumberResponse.d.ts +7 -0
- package/api/types/GetAccountNumberResponse.js +5 -0
- package/api/types/InternalServerErrorBody.d.ts +6 -0
- package/api/types/InternalServerErrorBody.js +5 -0
- package/api/types/LatLng.d.ts +12 -0
- package/api/types/LatLng.js +5 -0
- package/api/types/MediaRcs.d.ts +12 -0
- package/api/types/MediaRcs.js +5 -0
- package/api/types/MediaRcsMessage.d.ts +14 -0
- package/api/types/MediaRcsMessage.js +5 -0
- package/api/types/MediaType.d.ts +14 -0
- package/api/types/MediaType.js +13 -0
- package/api/types/PhoneNumber.d.ts +7 -0
- package/api/types/PhoneNumber.js +5 -0
- package/api/types/Postback.d.ts +11 -0
- package/api/types/Postback.js +5 -0
- package/api/types/SendRequest.d.ts +5 -0
- package/api/types/SendRequest.js +5 -0
- package/api/types/SendResponse.d.ts +7 -0
- package/api/types/SendResponse.js +5 -0
- package/api/types/ShareLocation.d.ts +7 -0
- package/api/types/ShareLocation.js +5 -0
- package/api/types/Sms.d.ts +12 -0
- package/api/types/Sms.js +5 -0
- package/api/types/SmsMessage.d.ts +12 -0
- package/api/types/SmsMessage.js +5 -0
- package/api/types/UnauthorizedErrorBody.d.ts +6 -0
- package/api/types/UnauthorizedErrorBody.js +5 -0
- package/api/types/UpdateSettingsResponse.d.ts +6 -0
- package/api/types/UpdateSettingsResponse.js +5 -0
- package/api/types/Url.d.ts +9 -0
- package/api/types/Url.js +5 -0
- package/api/types/ViewLocation.d.ts +11 -0
- package/api/types/ViewLocation.js +5 -0
- package/api/types/index.d.ts +34 -0
- package/api/types/index.js +50 -0
- package/core/fetcher/APIResponse.d.ts +10 -0
- package/core/fetcher/APIResponse.js +2 -0
- package/core/fetcher/Fetcher.d.ts +39 -0
- package/core/fetcher/Fetcher.js +99 -0
- package/core/fetcher/Supplier.d.ts +4 -0
- package/core/fetcher/Supplier.js +22 -0
- package/core/fetcher/createRequestUrl.d.ts +1 -0
- package/core/fetcher/createRequestUrl.js +13 -0
- package/core/fetcher/getFetchFn.d.ts +4 -0
- package/core/fetcher/getFetchFn.js +59 -0
- package/core/fetcher/getHeader.d.ts +1 -0
- package/core/fetcher/getHeader.js +12 -0
- package/core/fetcher/getRequestBody.d.ts +7 -0
- package/core/fetcher/getRequestBody.js +23 -0
- package/core/fetcher/getResponseBody.d.ts +1 -0
- package/core/fetcher/getResponseBody.js +52 -0
- package/core/fetcher/index.d.ts +5 -0
- package/core/fetcher/index.js +9 -0
- package/core/fetcher/makeRequest.d.ts +1 -0
- package/core/fetcher/makeRequest.js +42 -0
- package/core/fetcher/requestWithRetries.d.ts +1 -0
- package/core/fetcher/requestWithRetries.js +32 -0
- package/core/fetcher/signals.d.ts +12 -0
- package/core/fetcher/signals.js +37 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +22 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +124 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +50 -0
- package/core/index.d.ts +3 -0
- package/core/index.js +32 -0
- package/core/runtime/index.d.ts +1 -0
- package/core/runtime/index.js +5 -0
- package/core/runtime/runtime.d.ts +9 -0
- package/core/runtime/runtime.js +93 -0
- package/core/schemas/Schema.d.ts +85 -0
- package/core/schemas/Schema.js +22 -0
- package/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/core/schemas/builders/bigint/bigint.js +50 -0
- package/core/schemas/builders/bigint/index.d.ts +1 -0
- package/core/schemas/builders/bigint/index.js +5 -0
- package/core/schemas/builders/date/date.d.ts +2 -0
- package/core/schemas/builders/date/date.js +63 -0
- package/core/schemas/builders/date/index.d.ts +1 -0
- package/core/schemas/builders/date/index.js +5 -0
- package/core/schemas/builders/enum/enum.d.ts +2 -0
- package/core/schemas/builders/enum/enum.js +39 -0
- package/core/schemas/builders/enum/index.d.ts +1 -0
- package/core/schemas/builders/enum/index.js +5 -0
- package/core/schemas/builders/index.d.ts +14 -0
- package/core/schemas/builders/index.js +30 -0
- package/core/schemas/builders/lazy/index.d.ts +3 -0
- package/core/schemas/builders/lazy/index.js +7 -0
- package/core/schemas/builders/lazy/lazy.d.ts +5 -0
- package/core/schemas/builders/lazy/lazy.js +25 -0
- package/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
- package/core/schemas/builders/lazy/lazyObject.js +12 -0
- package/core/schemas/builders/list/index.d.ts +1 -0
- package/core/schemas/builders/list/index.js +5 -0
- package/core/schemas/builders/list/list.d.ts +2 -0
- package/core/schemas/builders/list/list.js +55 -0
- package/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
- package/core/schemas/builders/literals/booleanLiteral.js +29 -0
- package/core/schemas/builders/literals/index.d.ts +2 -0
- package/core/schemas/builders/literals/index.js +7 -0
- package/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
- package/core/schemas/builders/literals/stringLiteral.js +29 -0
- package/core/schemas/builders/object/index.d.ts +6 -0
- package/core/schemas/builders/object/index.js +11 -0
- package/core/schemas/builders/object/object.d.ts +3 -0
- package/core/schemas/builders/object/object.js +233 -0
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
- package/core/schemas/builders/object/property.d.ts +8 -0
- package/core/schemas/builders/object/property.js +16 -0
- package/core/schemas/builders/object/types.d.ts +26 -0
- package/core/schemas/builders/object/types.js +2 -0
- package/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +54 -0
- package/core/schemas/builders/object-like/index.d.ts +2 -0
- package/core/schemas/builders/object-like/index.js +6 -0
- package/core/schemas/builders/object-like/types.d.ts +7 -0
- package/core/schemas/builders/object-like/types.js +2 -0
- package/core/schemas/builders/primitives/any.d.ts +1 -0
- package/core/schemas/builders/primitives/any.js +6 -0
- package/core/schemas/builders/primitives/boolean.d.ts +1 -0
- package/core/schemas/builders/primitives/boolean.js +25 -0
- package/core/schemas/builders/primitives/index.d.ts +5 -0
- package/core/schemas/builders/primitives/index.js +13 -0
- package/core/schemas/builders/primitives/number.d.ts +1 -0
- package/core/schemas/builders/primitives/number.js +25 -0
- package/core/schemas/builders/primitives/string.d.ts +1 -0
- package/core/schemas/builders/primitives/string.js +25 -0
- package/core/schemas/builders/primitives/unknown.d.ts +1 -0
- package/core/schemas/builders/primitives/unknown.js +6 -0
- package/core/schemas/builders/record/index.d.ts +2 -0
- package/core/schemas/builders/record/index.js +5 -0
- package/core/schemas/builders/record/record.d.ts +3 -0
- package/core/schemas/builders/record/record.js +95 -0
- package/core/schemas/builders/record/types.d.ts +4 -0
- package/core/schemas/builders/record/types.js +2 -0
- package/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
- package/core/schemas/builders/schema-utils/JsonError.js +12 -0
- package/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
- package/core/schemas/builders/schema-utils/ParseError.js +12 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +17 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +82 -0
- package/core/schemas/builders/schema-utils/index.d.ts +4 -0
- package/core/schemas/builders/schema-utils/index.js +11 -0
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +10 -0
- package/core/schemas/builders/set/index.d.ts +1 -0
- package/core/schemas/builders/set/index.js +5 -0
- package/core/schemas/builders/set/set.d.ts +2 -0
- package/core/schemas/builders/set/set.js +44 -0
- package/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
- package/core/schemas/builders/undiscriminated-union/index.js +5 -0
- package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
- package/core/schemas/builders/undiscriminated-union/types.js +2 -0
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +40 -0
- package/core/schemas/builders/union/discriminant.d.ts +5 -0
- package/core/schemas/builders/union/discriminant.js +10 -0
- package/core/schemas/builders/union/index.d.ts +4 -0
- package/core/schemas/builders/union/index.js +7 -0
- package/core/schemas/builders/union/types.d.ts +13 -0
- package/core/schemas/builders/union/types.js +2 -0
- package/core/schemas/builders/union/union.d.ts +4 -0
- package/core/schemas/builders/union/union.js +130 -0
- package/core/schemas/index.d.ts +2 -0
- package/core/schemas/index.js +17 -0
- package/core/schemas/utils/MaybePromise.d.ts +1 -0
- package/core/schemas/utils/MaybePromise.js +2 -0
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
- package/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
- package/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
- package/core/schemas/utils/createIdentitySchemaCreator.js +16 -0
- package/core/schemas/utils/entries.d.ts +1 -0
- package/core/schemas/utils/entries.js +7 -0
- package/core/schemas/utils/filterObject.d.ts +1 -0
- package/core/schemas/utils/filterObject.js +14 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +28 -0
- package/core/schemas/utils/isPlainObject.d.ts +1 -0
- package/core/schemas/utils/isPlainObject.js +18 -0
- package/core/schemas/utils/keys.d.ts +1 -0
- package/core/schemas/utils/keys.js +7 -0
- package/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
- package/core/schemas/utils/maybeSkipValidation.js +28 -0
- package/core/schemas/utils/partition.d.ts +1 -0
- package/core/schemas/utils/partition.js +16 -0
- package/dist/Client.d.ts +93 -0
- package/dist/Client.js +384 -0
- package/dist/api/client/index.d.ts +1 -0
- package/dist/api/client/index.js +17 -0
- package/dist/api/client/requests/CheckRcsCapabilityRequest.d.ts +21 -0
- package/dist/api/client/requests/CheckRcsCapabilityRequest.js +5 -0
- package/dist/api/client/requests/UpdateSettingsRequest.d.ts +13 -0
- package/dist/api/client/requests/UpdateSettingsRequest.js +5 -0
- package/dist/api/client/requests/index.d.ts +2 -0
- package/dist/api/client/requests/index.js +2 -0
- package/dist/api/errors/BadRequestError.d.ts +8 -0
- package/dist/api/errors/BadRequestError.js +41 -0
- package/dist/api/errors/InternalServerError.d.ts +8 -0
- package/dist/api/errors/InternalServerError.js +41 -0
- package/dist/api/errors/UnauthorizedError.d.ts +8 -0
- package/dist/api/errors/UnauthorizedError.js +41 -0
- package/dist/api/errors/index.d.ts +3 -0
- package/dist/api/errors/index.js +19 -0
- package/dist/api/index.d.ts +3 -0
- package/dist/api/index.js +19 -0
- package/dist/api/types/Action.d.ts +5 -0
- package/dist/api/types/Action.js +5 -0
- package/dist/api/types/BadRequestErrorBody.d.ts +6 -0
- package/dist/api/types/BadRequestErrorBody.js +5 -0
- package/dist/api/types/BasicRcs.d.ts +13 -0
- package/dist/api/types/BasicRcs.js +5 -0
- package/dist/api/types/BasicRcsMessage.d.ts +10 -0
- package/dist/api/types/BasicRcsMessage.js +5 -0
- package/dist/api/types/Call.d.ts +9 -0
- package/dist/api/types/Call.js +5 -0
- package/dist/api/types/Card.d.ts +16 -0
- package/dist/api/types/Card.js +5 -0
- package/dist/api/types/CardRcs.d.ts +12 -0
- package/dist/api/types/CardRcs.js +5 -0
- package/dist/api/types/CardRcsMessage.d.ts +13 -0
- package/dist/api/types/CardRcsMessage.js +5 -0
- package/dist/api/types/CardStyle.d.ts +16 -0
- package/dist/api/types/CardStyle.js +5 -0
- package/dist/api/types/CardStyleImageAlignment.d.ts +11 -0
- package/dist/api/types/CardStyleImageAlignment.js +10 -0
- package/dist/api/types/CardStyleMediaHeight.d.ts +12 -0
- package/dist/api/types/CardStyleMediaHeight.js +11 -0
- package/dist/api/types/CardStyleOrientation.d.ts +11 -0
- package/dist/api/types/CardStyleOrientation.js +10 -0
- package/dist/api/types/CardStyleWidth.d.ts +11 -0
- package/dist/api/types/CardStyleWidth.js +10 -0
- package/dist/api/types/CarouselRcs.d.ts +12 -0
- package/dist/api/types/CarouselRcs.js +5 -0
- package/dist/api/types/CarouselRcsMessage.d.ts +13 -0
- package/dist/api/types/CarouselRcsMessage.js +5 -0
- package/dist/api/types/CheckRcsCapabilityResponse.d.ts +7 -0
- package/dist/api/types/CheckRcsCapabilityResponse.js +5 -0
- package/dist/api/types/Event.d.ts +15 -0
- package/dist/api/types/Event.js +5 -0
- package/dist/api/types/GetAccountNumberResponse.d.ts +7 -0
- package/dist/api/types/GetAccountNumberResponse.js +5 -0
- package/dist/api/types/InternalServerErrorBody.d.ts +6 -0
- package/dist/api/types/InternalServerErrorBody.js +5 -0
- package/dist/api/types/LatLng.d.ts +12 -0
- package/dist/api/types/LatLng.js +5 -0
- package/dist/api/types/MediaRcs.d.ts +12 -0
- package/dist/api/types/MediaRcs.js +5 -0
- package/dist/api/types/MediaRcsMessage.d.ts +14 -0
- package/dist/api/types/MediaRcsMessage.js +5 -0
- package/dist/api/types/MediaType.d.ts +14 -0
- package/dist/api/types/MediaType.js +13 -0
- package/dist/api/types/PhoneNumber.d.ts +7 -0
- package/dist/api/types/PhoneNumber.js +5 -0
- package/dist/api/types/Postback.d.ts +11 -0
- package/dist/api/types/Postback.js +5 -0
- package/dist/api/types/SendRequest.d.ts +5 -0
- package/dist/api/types/SendRequest.js +5 -0
- package/dist/api/types/SendResponse.d.ts +7 -0
- package/dist/api/types/SendResponse.js +5 -0
- package/dist/api/types/ShareLocation.d.ts +7 -0
- package/dist/api/types/ShareLocation.js +5 -0
- package/dist/api/types/Sms.d.ts +12 -0
- package/dist/api/types/Sms.js +5 -0
- package/dist/api/types/SmsMessage.d.ts +12 -0
- package/dist/api/types/SmsMessage.js +5 -0
- package/dist/api/types/UnauthorizedErrorBody.d.ts +6 -0
- package/dist/api/types/UnauthorizedErrorBody.js +5 -0
- package/dist/api/types/UpdateSettingsResponse.d.ts +6 -0
- package/dist/api/types/UpdateSettingsResponse.js +5 -0
- package/dist/api/types/Url.d.ts +9 -0
- package/dist/api/types/Url.js +5 -0
- package/dist/api/types/ViewLocation.d.ts +11 -0
- package/dist/api/types/ViewLocation.js +5 -0
- package/dist/api/types/index.d.ts +34 -0
- package/dist/api/types/index.js +50 -0
- package/dist/core/fetcher/APIResponse.d.ts +10 -0
- package/dist/core/fetcher/APIResponse.js +2 -0
- package/dist/core/fetcher/Fetcher.d.ts +39 -0
- package/dist/core/fetcher/Fetcher.js +99 -0
- package/dist/core/fetcher/Supplier.d.ts +4 -0
- package/dist/core/fetcher/Supplier.js +22 -0
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/core/fetcher/createRequestUrl.js +13 -0
- package/dist/core/fetcher/getFetchFn.d.ts +4 -0
- package/dist/core/fetcher/getFetchFn.js +59 -0
- package/dist/core/fetcher/getHeader.d.ts +1 -0
- package/dist/core/fetcher/getHeader.js +12 -0
- package/dist/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/core/fetcher/getRequestBody.js +23 -0
- package/dist/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getResponseBody.js +52 -0
- package/dist/core/fetcher/index.d.ts +5 -0
- package/dist/core/fetcher/index.js +9 -0
- package/dist/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/core/fetcher/makeRequest.js +42 -0
- package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/core/fetcher/requestWithRetries.js +32 -0
- package/dist/core/fetcher/signals.d.ts +12 -0
- package/dist/core/fetcher/signals.js +37 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +22 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +124 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +50 -0
- package/dist/core/index.d.ts +3 -0
- package/dist/core/index.js +32 -0
- package/dist/core/runtime/index.d.ts +1 -0
- package/dist/core/runtime/index.js +5 -0
- package/dist/core/runtime/runtime.d.ts +9 -0
- package/dist/core/runtime/runtime.js +93 -0
- package/dist/core/schemas/Schema.d.ts +85 -0
- package/dist/core/schemas/Schema.js +22 -0
- package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/dist/core/schemas/builders/bigint/bigint.js +50 -0
- package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
- package/dist/core/schemas/builders/bigint/index.js +5 -0
- package/dist/core/schemas/builders/date/date.d.ts +2 -0
- package/dist/core/schemas/builders/date/date.js +63 -0
- package/dist/core/schemas/builders/date/index.d.ts +1 -0
- package/dist/core/schemas/builders/date/index.js +5 -0
- package/dist/core/schemas/builders/enum/enum.d.ts +2 -0
- package/dist/core/schemas/builders/enum/enum.js +39 -0
- package/dist/core/schemas/builders/enum/index.d.ts +1 -0
- package/dist/core/schemas/builders/enum/index.js +5 -0
- package/dist/core/schemas/builders/index.d.ts +14 -0
- package/dist/core/schemas/builders/index.js +30 -0
- package/dist/core/schemas/builders/lazy/index.d.ts +3 -0
- package/dist/core/schemas/builders/lazy/index.js +7 -0
- package/dist/core/schemas/builders/lazy/lazy.d.ts +5 -0
- package/dist/core/schemas/builders/lazy/lazy.js +25 -0
- package/dist/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
- package/dist/core/schemas/builders/lazy/lazyObject.js +12 -0
- package/dist/core/schemas/builders/list/index.d.ts +1 -0
- package/dist/core/schemas/builders/list/index.js +5 -0
- package/dist/core/schemas/builders/list/list.d.ts +2 -0
- package/dist/core/schemas/builders/list/list.js +55 -0
- package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
- package/dist/core/schemas/builders/literals/booleanLiteral.js +29 -0
- package/dist/core/schemas/builders/literals/index.d.ts +2 -0
- package/dist/core/schemas/builders/literals/index.js +7 -0
- package/dist/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
- package/dist/core/schemas/builders/literals/stringLiteral.js +29 -0
- package/dist/core/schemas/builders/object/index.d.ts +6 -0
- package/dist/core/schemas/builders/object/index.js +11 -0
- package/dist/core/schemas/builders/object/object.d.ts +3 -0
- package/dist/core/schemas/builders/object/object.js +233 -0
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
- package/dist/core/schemas/builders/object/property.d.ts +8 -0
- package/dist/core/schemas/builders/object/property.js +16 -0
- package/dist/core/schemas/builders/object/types.d.ts +26 -0
- package/dist/core/schemas/builders/object/types.js +2 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +54 -0
- package/dist/core/schemas/builders/object-like/index.d.ts +2 -0
- package/dist/core/schemas/builders/object-like/index.js +6 -0
- package/dist/core/schemas/builders/object-like/types.d.ts +7 -0
- package/dist/core/schemas/builders/object-like/types.js +2 -0
- package/dist/core/schemas/builders/primitives/any.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/any.js +6 -0
- package/dist/core/schemas/builders/primitives/boolean.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/boolean.js +25 -0
- package/dist/core/schemas/builders/primitives/index.d.ts +5 -0
- package/dist/core/schemas/builders/primitives/index.js +13 -0
- package/dist/core/schemas/builders/primitives/number.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/number.js +25 -0
- package/dist/core/schemas/builders/primitives/string.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/string.js +25 -0
- package/dist/core/schemas/builders/primitives/unknown.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/unknown.js +6 -0
- package/dist/core/schemas/builders/record/index.d.ts +2 -0
- package/dist/core/schemas/builders/record/index.js +5 -0
- package/dist/core/schemas/builders/record/record.d.ts +3 -0
- package/dist/core/schemas/builders/record/record.js +95 -0
- package/dist/core/schemas/builders/record/types.d.ts +4 -0
- package/dist/core/schemas/builders/record/types.js +2 -0
- package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
- package/dist/core/schemas/builders/schema-utils/JsonError.js +12 -0
- package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
- package/dist/core/schemas/builders/schema-utils/ParseError.js +12 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +17 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +82 -0
- package/dist/core/schemas/builders/schema-utils/index.d.ts +4 -0
- package/dist/core/schemas/builders/schema-utils/index.js +11 -0
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +10 -0
- package/dist/core/schemas/builders/set/index.d.ts +1 -0
- package/dist/core/schemas/builders/set/index.js +5 -0
- package/dist/core/schemas/builders/set/set.d.ts +2 -0
- package/dist/core/schemas/builders/set/set.js +44 -0
- package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
- package/dist/core/schemas/builders/undiscriminated-union/index.js +5 -0
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
- package/dist/core/schemas/builders/undiscriminated-union/types.js +2 -0
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +40 -0
- package/dist/core/schemas/builders/union/discriminant.d.ts +5 -0
- package/dist/core/schemas/builders/union/discriminant.js +10 -0
- package/dist/core/schemas/builders/union/index.d.ts +4 -0
- package/dist/core/schemas/builders/union/index.js +7 -0
- package/dist/core/schemas/builders/union/types.d.ts +13 -0
- package/dist/core/schemas/builders/union/types.js +2 -0
- package/dist/core/schemas/builders/union/union.d.ts +4 -0
- package/dist/core/schemas/builders/union/union.js +130 -0
- package/dist/core/schemas/index.d.ts +2 -0
- package/dist/core/schemas/index.js +17 -0
- package/dist/core/schemas/utils/MaybePromise.d.ts +1 -0
- package/dist/core/schemas/utils/MaybePromise.js +2 -0
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
- package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +16 -0
- package/dist/core/schemas/utils/entries.d.ts +1 -0
- package/dist/core/schemas/utils/entries.js +7 -0
- package/dist/core/schemas/utils/filterObject.d.ts +1 -0
- package/dist/core/schemas/utils/filterObject.js +14 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +28 -0
- package/dist/core/schemas/utils/isPlainObject.d.ts +1 -0
- package/dist/core/schemas/utils/isPlainObject.js +18 -0
- package/dist/core/schemas/utils/keys.d.ts +1 -0
- package/dist/core/schemas/utils/keys.js +7 -0
- package/dist/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
- package/dist/core/schemas/utils/maybeSkipValidation.js +28 -0
- package/dist/core/schemas/utils/partition.d.ts +1 -0
- package/dist/core/schemas/utils/partition.js +16 -0
- package/dist/environments.d.ts +7 -0
- package/dist/environments.js +9 -0
- package/dist/errors/PinnacleError.d.ts +12 -0
- package/dist/errors/PinnacleError.js +32 -0
- package/dist/errors/PinnacleTimeoutError.d.ts +6 -0
- package/dist/errors/PinnacleTimeoutError.js +13 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.js +7 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +32 -5
- package/dist/serialization/client/index.d.ts +1 -0
- package/dist/serialization/client/index.js +17 -0
- package/dist/serialization/client/requests/UpdateSettingsRequest.d.ts +12 -0
- package/dist/serialization/client/requests/UpdateSettingsRequest.js +33 -0
- package/dist/serialization/client/requests/index.d.ts +1 -0
- package/dist/serialization/client/requests/index.js +5 -0
- package/dist/serialization/index.d.ts +2 -0
- package/dist/serialization/index.js +18 -0
- package/dist/serialization/types/Action.d.ts +15 -0
- package/dist/serialization/types/Action.js +36 -0
- package/dist/serialization/types/BadRequestErrorBody.d.ts +12 -0
- package/dist/serialization/types/BadRequestErrorBody.js +33 -0
- package/dist/serialization/types/BasicRcs.d.ts +18 -0
- package/dist/serialization/types/BasicRcs.js +39 -0
- package/dist/serialization/types/BasicRcsMessage.d.ts +12 -0
- package/dist/serialization/types/BasicRcsMessage.js +33 -0
- package/dist/serialization/types/Call.d.ts +13 -0
- package/dist/serialization/types/Call.js +34 -0
- package/dist/serialization/types/Card.d.ts +18 -0
- package/dist/serialization/types/Card.js +39 -0
- package/dist/serialization/types/CardRcs.d.ts +16 -0
- package/dist/serialization/types/CardRcs.js +37 -0
- package/dist/serialization/types/CardRcsMessage.d.ts +15 -0
- package/dist/serialization/types/CardRcsMessage.js +36 -0
- package/dist/serialization/types/CardStyle.d.ts +20 -0
- package/dist/serialization/types/CardStyle.js +41 -0
- package/dist/serialization/types/CardStyleImageAlignment.d.ts +10 -0
- package/dist/serialization/types/CardStyleImageAlignment.js +31 -0
- package/dist/serialization/types/CardStyleMediaHeight.d.ts +10 -0
- package/dist/serialization/types/CardStyleMediaHeight.js +31 -0
- package/dist/serialization/types/CardStyleOrientation.d.ts +10 -0
- package/dist/serialization/types/CardStyleOrientation.js +31 -0
- package/dist/serialization/types/CardStyleWidth.d.ts +10 -0
- package/dist/serialization/types/CardStyleWidth.js +31 -0
- package/dist/serialization/types/CarouselRcs.d.ts +16 -0
- package/dist/serialization/types/CarouselRcs.js +37 -0
- package/dist/serialization/types/CarouselRcsMessage.d.ts +15 -0
- package/dist/serialization/types/CarouselRcsMessage.js +36 -0
- package/dist/serialization/types/CheckRcsCapabilityResponse.d.ts +13 -0
- package/dist/serialization/types/CheckRcsCapabilityResponse.js +34 -0
- package/dist/serialization/types/Event.d.ts +16 -0
- package/dist/serialization/types/Event.js +37 -0
- package/dist/serialization/types/GetAccountNumberResponse.d.ts +12 -0
- package/dist/serialization/types/GetAccountNumberResponse.js +33 -0
- package/dist/serialization/types/InternalServerErrorBody.d.ts +12 -0
- package/dist/serialization/types/InternalServerErrorBody.js +33 -0
- package/dist/serialization/types/LatLng.d.ts +13 -0
- package/dist/serialization/types/LatLng.js +34 -0
- package/dist/serialization/types/MediaRcs.d.ts +16 -0
- package/dist/serialization/types/MediaRcs.js +37 -0
- package/dist/serialization/types/MediaRcsMessage.d.ts +16 -0
- package/dist/serialization/types/MediaRcsMessage.js +37 -0
- package/dist/serialization/types/MediaType.d.ts +10 -0
- package/dist/serialization/types/MediaType.js +31 -0
- package/dist/serialization/types/PhoneNumber.d.ts +10 -0
- package/dist/serialization/types/PhoneNumber.js +31 -0
- package/dist/serialization/types/Postback.d.ts +14 -0
- package/dist/serialization/types/Postback.js +35 -0
- package/dist/serialization/types/SendRequest.d.ts +15 -0
- package/dist/serialization/types/SendRequest.js +36 -0
- package/dist/serialization/types/SendResponse.d.ts +12 -0
- package/dist/serialization/types/SendResponse.js +33 -0
- package/dist/serialization/types/ShareLocation.d.ts +12 -0
- package/dist/serialization/types/ShareLocation.js +33 -0
- package/dist/serialization/types/Sms.d.ts +16 -0
- package/dist/serialization/types/Sms.js +37 -0
- package/dist/serialization/types/SmsMessage.d.ts +13 -0
- package/dist/serialization/types/SmsMessage.js +34 -0
- package/dist/serialization/types/UnauthorizedErrorBody.d.ts +12 -0
- package/dist/serialization/types/UnauthorizedErrorBody.js +33 -0
- package/dist/serialization/types/UpdateSettingsResponse.d.ts +12 -0
- package/dist/serialization/types/UpdateSettingsResponse.js +33 -0
- package/dist/serialization/types/Url.d.ts +13 -0
- package/dist/serialization/types/Url.js +34 -0
- package/dist/serialization/types/ViewLocation.d.ts +15 -0
- package/dist/serialization/types/ViewLocation.js +36 -0
- package/dist/serialization/types/index.d.ts +34 -0
- package/dist/serialization/types/index.js +50 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +4 -0
- package/environments.d.ts +7 -0
- package/environments.js +9 -0
- package/errors/PinnacleError.d.ts +12 -0
- package/errors/PinnacleError.js +32 -0
- package/errors/PinnacleTimeoutError.d.ts +6 -0
- package/errors/PinnacleTimeoutError.js +13 -0
- package/errors/index.d.ts +2 -0
- package/errors/index.js +7 -0
- package/index.d.ts +4 -0
- package/index.js +34 -0
- package/jest.config.js +5 -0
- package/package.json +42 -24
- package/reference.md +76 -0
- package/serialization/client/index.d.ts +1 -0
- package/serialization/client/index.js +17 -0
- package/serialization/client/requests/UpdateSettingsRequest.d.ts +12 -0
- package/serialization/client/requests/UpdateSettingsRequest.js +33 -0
- package/serialization/client/requests/index.d.ts +1 -0
- package/serialization/client/requests/index.js +5 -0
- package/serialization/index.d.ts +2 -0
- package/serialization/index.js +18 -0
- package/serialization/types/Action.d.ts +15 -0
- package/serialization/types/Action.js +36 -0
- package/serialization/types/BadRequestErrorBody.d.ts +12 -0
- package/serialization/types/BadRequestErrorBody.js +33 -0
- package/serialization/types/BasicRcs.d.ts +18 -0
- package/serialization/types/BasicRcs.js +39 -0
- package/serialization/types/BasicRcsMessage.d.ts +12 -0
- package/serialization/types/BasicRcsMessage.js +33 -0
- package/serialization/types/Call.d.ts +13 -0
- package/serialization/types/Call.js +34 -0
- package/serialization/types/Card.d.ts +18 -0
- package/serialization/types/Card.js +39 -0
- package/serialization/types/CardRcs.d.ts +16 -0
- package/serialization/types/CardRcs.js +37 -0
- package/serialization/types/CardRcsMessage.d.ts +15 -0
- package/serialization/types/CardRcsMessage.js +36 -0
- package/serialization/types/CardStyle.d.ts +20 -0
- package/serialization/types/CardStyle.js +41 -0
- package/serialization/types/CardStyleImageAlignment.d.ts +10 -0
- package/serialization/types/CardStyleImageAlignment.js +31 -0
- package/serialization/types/CardStyleMediaHeight.d.ts +10 -0
- package/serialization/types/CardStyleMediaHeight.js +31 -0
- package/serialization/types/CardStyleOrientation.d.ts +10 -0
- package/serialization/types/CardStyleOrientation.js +31 -0
- package/serialization/types/CardStyleWidth.d.ts +10 -0
- package/serialization/types/CardStyleWidth.js +31 -0
- package/serialization/types/CarouselRcs.d.ts +16 -0
- package/serialization/types/CarouselRcs.js +37 -0
- package/serialization/types/CarouselRcsMessage.d.ts +15 -0
- package/serialization/types/CarouselRcsMessage.js +36 -0
- package/serialization/types/CheckRcsCapabilityResponse.d.ts +13 -0
- package/serialization/types/CheckRcsCapabilityResponse.js +34 -0
- package/serialization/types/Event.d.ts +16 -0
- package/serialization/types/Event.js +37 -0
- package/serialization/types/GetAccountNumberResponse.d.ts +12 -0
- package/serialization/types/GetAccountNumberResponse.js +33 -0
- package/serialization/types/InternalServerErrorBody.d.ts +12 -0
- package/serialization/types/InternalServerErrorBody.js +33 -0
- package/serialization/types/LatLng.d.ts +13 -0
- package/serialization/types/LatLng.js +34 -0
- package/serialization/types/MediaRcs.d.ts +16 -0
- package/serialization/types/MediaRcs.js +37 -0
- package/serialization/types/MediaRcsMessage.d.ts +16 -0
- package/serialization/types/MediaRcsMessage.js +37 -0
- package/serialization/types/MediaType.d.ts +10 -0
- package/serialization/types/MediaType.js +31 -0
- package/serialization/types/PhoneNumber.d.ts +10 -0
- package/serialization/types/PhoneNumber.js +31 -0
- package/serialization/types/Postback.d.ts +14 -0
- package/serialization/types/Postback.js +35 -0
- package/serialization/types/SendRequest.d.ts +15 -0
- package/serialization/types/SendRequest.js +36 -0
- package/serialization/types/SendResponse.d.ts +12 -0
- package/serialization/types/SendResponse.js +33 -0
- package/serialization/types/ShareLocation.d.ts +12 -0
- package/serialization/types/ShareLocation.js +33 -0
- package/serialization/types/Sms.d.ts +16 -0
- package/serialization/types/Sms.js +37 -0
- package/serialization/types/SmsMessage.d.ts +13 -0
- package/serialization/types/SmsMessage.js +34 -0
- package/serialization/types/UnauthorizedErrorBody.d.ts +12 -0
- package/serialization/types/UnauthorizedErrorBody.js +33 -0
- package/serialization/types/UpdateSettingsResponse.d.ts +12 -0
- package/serialization/types/UpdateSettingsResponse.js +33 -0
- package/serialization/types/Url.d.ts +13 -0
- package/serialization/types/Url.js +34 -0
- package/serialization/types/ViewLocation.d.ts +15 -0
- package/serialization/types/ViewLocation.js +36 -0
- package/serialization/types/index.d.ts +34 -0
- package/serialization/types/index.js +50 -0
- package/version.d.ts +1 -0
- package/version.js +4 -0
package/dist/index.js
CHANGED
|
@@ -1,7 +1,34 @@
|
|
|
1
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
26
|
+
exports.PinnacleTimeoutError = exports.PinnacleError = exports.PinnacleEnvironment = exports.PinnacleClient = exports.Pinnacle = void 0;
|
|
27
|
+
exports.Pinnacle = __importStar(require("./api"));
|
|
28
|
+
var Client_1 = require("./Client");
|
|
29
|
+
Object.defineProperty(exports, "PinnacleClient", { enumerable: true, get: function () { return Client_1.PinnacleClient; } });
|
|
30
|
+
var environments_1 = require("./environments");
|
|
31
|
+
Object.defineProperty(exports, "PinnacleEnvironment", { enumerable: true, get: function () { return environments_1.PinnacleEnvironment; } });
|
|
32
|
+
var errors_1 = require("./errors");
|
|
33
|
+
Object.defineProperty(exports, "PinnacleError", { enumerable: true, get: function () { return errors_1.PinnacleError; } });
|
|
34
|
+
Object.defineProperty(exports, "PinnacleTimeoutError", { enumerable: true, get: function () { return errors_1.PinnacleTimeoutError; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -0,0 +1,17 @@
|
|
|
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);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../index";
|
|
5
|
+
import * as Pinnacle from "../../../api/index";
|
|
6
|
+
import * as core from "../../../core";
|
|
7
|
+
export declare const UpdateSettingsRequest: core.serialization.Schema<serializers.UpdateSettingsRequest.Raw, Pinnacle.UpdateSettingsRequest>;
|
|
8
|
+
export declare namespace UpdateSettingsRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
webhook_url: string;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.UpdateSettingsRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../../core"));
|
|
31
|
+
exports.UpdateSettingsRequest = core.serialization.object({
|
|
32
|
+
webhookUrl: core.serialization.property("webhook_url", core.serialization.string()),
|
|
33
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UpdateSettingsRequest } from "./UpdateSettingsRequest";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateSettingsRequest = void 0;
|
|
4
|
+
var UpdateSettingsRequest_1 = require("./UpdateSettingsRequest");
|
|
5
|
+
Object.defineProperty(exports, "UpdateSettingsRequest", { enumerable: true, get: function () { return UpdateSettingsRequest_1.UpdateSettingsRequest; } });
|
|
@@ -0,0 +1,18 @@
|
|
|
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);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Pinnacle from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { Url } from "./Url";
|
|
8
|
+
import { Call } from "./Call";
|
|
9
|
+
import { Postback } from "./Postback";
|
|
10
|
+
import { ShareLocation } from "./ShareLocation";
|
|
11
|
+
import { ViewLocation } from "./ViewLocation";
|
|
12
|
+
export declare const Action: core.serialization.Schema<serializers.Action.Raw, Pinnacle.Action>;
|
|
13
|
+
export declare namespace Action {
|
|
14
|
+
type Raw = Url.Raw | Call.Raw | Postback.Raw | ShareLocation.Raw | ViewLocation.Raw;
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Action = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const Url_1 = require("./Url");
|
|
32
|
+
const Call_1 = require("./Call");
|
|
33
|
+
const Postback_1 = require("./Postback");
|
|
34
|
+
const ShareLocation_1 = require("./ShareLocation");
|
|
35
|
+
const ViewLocation_1 = require("./ViewLocation");
|
|
36
|
+
exports.Action = core.serialization.undiscriminatedUnion([Url_1.Url, Call_1.Call, Postback_1.Postback, ShareLocation_1.ShareLocation, ViewLocation_1.ViewLocation]);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Pinnacle from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const BadRequestErrorBody: core.serialization.ObjectSchema<serializers.BadRequestErrorBody.Raw, Pinnacle.BadRequestErrorBody>;
|
|
8
|
+
export declare namespace BadRequestErrorBody {
|
|
9
|
+
interface Raw {
|
|
10
|
+
error?: string | null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.BadRequestErrorBody = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.BadRequestErrorBody = core.serialization.object({
|
|
32
|
+
error: core.serialization.string().optional(),
|
|
33
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Pinnacle from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { PhoneNumber } from "./PhoneNumber";
|
|
8
|
+
import { BasicRcsMessage } from "./BasicRcsMessage";
|
|
9
|
+
import { Action } from "./Action";
|
|
10
|
+
export declare const BasicRcs: core.serialization.ObjectSchema<serializers.BasicRcs.Raw, Pinnacle.BasicRcs>;
|
|
11
|
+
export declare namespace BasicRcs {
|
|
12
|
+
interface Raw {
|
|
13
|
+
phone_number?: PhoneNumber.Raw | null;
|
|
14
|
+
message_type: "basic-rcs";
|
|
15
|
+
message: BasicRcsMessage.Raw;
|
|
16
|
+
quick_replies?: Action.Raw[] | null;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.BasicRcs = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const PhoneNumber_1 = require("./PhoneNumber");
|
|
32
|
+
const BasicRcsMessage_1 = require("./BasicRcsMessage");
|
|
33
|
+
const Action_1 = require("./Action");
|
|
34
|
+
exports.BasicRcs = core.serialization.object({
|
|
35
|
+
phoneNumber: core.serialization.property("phone_number", PhoneNumber_1.PhoneNumber.optional()),
|
|
36
|
+
messageType: core.serialization.property("message_type", core.serialization.stringLiteral("basic-rcs")),
|
|
37
|
+
message: BasicRcsMessage_1.BasicRcsMessage,
|
|
38
|
+
quickReplies: core.serialization.property("quick_replies", core.serialization.list(Action_1.Action).optional()),
|
|
39
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Pinnacle from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const BasicRcsMessage: core.serialization.ObjectSchema<serializers.BasicRcsMessage.Raw, Pinnacle.BasicRcsMessage>;
|
|
8
|
+
export declare namespace BasicRcsMessage {
|
|
9
|
+
interface Raw {
|
|
10
|
+
text: string;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.BasicRcsMessage = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.BasicRcsMessage = core.serialization.object({
|
|
32
|
+
text: core.serialization.string(),
|
|
33
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Pinnacle from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const Call: core.serialization.ObjectSchema<serializers.Call.Raw, Pinnacle.Call>;
|
|
8
|
+
export declare namespace Call {
|
|
9
|
+
interface Raw {
|
|
10
|
+
action_type: "call";
|
|
11
|
+
payload: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Call = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.Call = core.serialization.object({
|
|
32
|
+
actionType: core.serialization.property("action_type", core.serialization.stringLiteral("call")),
|
|
33
|
+
payload: core.serialization.string(),
|
|
34
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Pinnacle from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { Action } from "./Action";
|
|
8
|
+
import { CardStyle } from "./CardStyle";
|
|
9
|
+
export declare const Card: core.serialization.ObjectSchema<serializers.Card.Raw, Pinnacle.Card>;
|
|
10
|
+
export declare namespace Card {
|
|
11
|
+
interface Raw {
|
|
12
|
+
title: string;
|
|
13
|
+
subtitle?: string | null;
|
|
14
|
+
image_url: string;
|
|
15
|
+
buttons?: Action.Raw[] | null;
|
|
16
|
+
card_style?: CardStyle.Raw | null;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Card = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const Action_1 = require("./Action");
|
|
32
|
+
const CardStyle_1 = require("./CardStyle");
|
|
33
|
+
exports.Card = core.serialization.object({
|
|
34
|
+
title: core.serialization.string(),
|
|
35
|
+
subtitle: core.serialization.string().optional(),
|
|
36
|
+
imageUrl: core.serialization.property("image_url", core.serialization.string()),
|
|
37
|
+
buttons: core.serialization.list(Action_1.Action).optional(),
|
|
38
|
+
cardStyle: core.serialization.property("card_style", CardStyle_1.CardStyle.optional()),
|
|
39
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Pinnacle from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { PhoneNumber } from "./PhoneNumber";
|
|
8
|
+
import { CardRcsMessage } from "./CardRcsMessage";
|
|
9
|
+
export declare const CardRcs: core.serialization.ObjectSchema<serializers.CardRcs.Raw, Pinnacle.CardRcs>;
|
|
10
|
+
export declare namespace CardRcs {
|
|
11
|
+
interface Raw {
|
|
12
|
+
phone_number?: PhoneNumber.Raw | null;
|
|
13
|
+
message_type: "card";
|
|
14
|
+
message: CardRcsMessage.Raw;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.CardRcs = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const PhoneNumber_1 = require("./PhoneNumber");
|
|
32
|
+
const CardRcsMessage_1 = require("./CardRcsMessage");
|
|
33
|
+
exports.CardRcs = core.serialization.object({
|
|
34
|
+
phoneNumber: core.serialization.property("phone_number", PhoneNumber_1.PhoneNumber.optional()),
|
|
35
|
+
messageType: core.serialization.property("message_type", core.serialization.stringLiteral("card")),
|
|
36
|
+
message: CardRcsMessage_1.CardRcsMessage,
|
|
37
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Pinnacle from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { Card } from "./Card";
|
|
8
|
+
import { Action } from "./Action";
|
|
9
|
+
export declare const CardRcsMessage: core.serialization.ObjectSchema<serializers.CardRcsMessage.Raw, Pinnacle.CardRcsMessage>;
|
|
10
|
+
export declare namespace CardRcsMessage {
|
|
11
|
+
interface Raw {
|
|
12
|
+
cards: Card.Raw[];
|
|
13
|
+
quick_replies?: Action.Raw[] | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.CardRcsMessage = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const Card_1 = require("./Card");
|
|
32
|
+
const Action_1 = require("./Action");
|
|
33
|
+
exports.CardRcsMessage = core.serialization.object({
|
|
34
|
+
cards: core.serialization.list(Card_1.Card),
|
|
35
|
+
quickReplies: core.serialization.property("quick_replies", core.serialization.list(Action_1.Action).optional()),
|
|
36
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Pinnacle from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { CardStyleImageAlignment } from "./CardStyleImageAlignment";
|
|
8
|
+
import { CardStyleMediaHeight } from "./CardStyleMediaHeight";
|
|
9
|
+
import { CardStyleWidth } from "./CardStyleWidth";
|
|
10
|
+
import { CardStyleOrientation } from "./CardStyleOrientation";
|
|
11
|
+
export declare const CardStyle: core.serialization.ObjectSchema<serializers.CardStyle.Raw, Pinnacle.CardStyle>;
|
|
12
|
+
export declare namespace CardStyle {
|
|
13
|
+
interface Raw {
|
|
14
|
+
image_alignment?: CardStyleImageAlignment.Raw | null;
|
|
15
|
+
media_height?: CardStyleMediaHeight.Raw | null;
|
|
16
|
+
thumbnail_url?: string | null;
|
|
17
|
+
width?: CardStyleWidth.Raw | null;
|
|
18
|
+
orientation?: CardStyleOrientation.Raw | null;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.CardStyle = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const CardStyleImageAlignment_1 = require("./CardStyleImageAlignment");
|
|
32
|
+
const CardStyleMediaHeight_1 = require("./CardStyleMediaHeight");
|
|
33
|
+
const CardStyleWidth_1 = require("./CardStyleWidth");
|
|
34
|
+
const CardStyleOrientation_1 = require("./CardStyleOrientation");
|
|
35
|
+
exports.CardStyle = core.serialization.object({
|
|
36
|
+
imageAlignment: core.serialization.property("image_alignment", CardStyleImageAlignment_1.CardStyleImageAlignment.optional()),
|
|
37
|
+
mediaHeight: core.serialization.property("media_height", CardStyleMediaHeight_1.CardStyleMediaHeight.optional()),
|
|
38
|
+
thumbnailUrl: core.serialization.property("thumbnail_url", core.serialization.string().optional()),
|
|
39
|
+
width: CardStyleWidth_1.CardStyleWidth.optional(),
|
|
40
|
+
orientation: CardStyleOrientation_1.CardStyleOrientation.optional(),
|
|
41
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Pinnacle from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const CardStyleImageAlignment: core.serialization.Schema<serializers.CardStyleImageAlignment.Raw, Pinnacle.CardStyleImageAlignment>;
|
|
8
|
+
export declare namespace CardStyleImageAlignment {
|
|
9
|
+
type Raw = "right" | "left";
|
|
10
|
+
}
|