@unlimited-messaging/sdk 0.1.11 → 0.1.13
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/package.json +1 -1
- package/src/Client.d.ts +9 -3
- package/src/Client.js +15 -5
- package/src/api/errors/ConflictError.d.ts +8 -0
- package/src/api/errors/ConflictError.js +52 -0
- package/src/api/errors/ServiceUnavailableError.d.ts +8 -0
- package/src/api/errors/ServiceUnavailableError.js +52 -0
- package/src/api/errors/index.d.ts +2 -0
- package/src/api/errors/index.js +2 -0
- package/src/api/resources/accounts/client/Client.d.ts +156 -0
- package/src/api/resources/accounts/client/Client.js +609 -0
- package/src/api/resources/{siMs/client/requests/SimGetSimRequest.d.ts → accounts/client/requests/AccountGetAccountRequest.d.ts} +1 -1
- package/src/api/resources/accounts/client/requests/AccountGetChallengeRequest.d.ts +9 -0
- package/src/api/resources/{siMs/client/requests/SimUnlinkSimRequest.d.ts → accounts/client/requests/AccountGetQrCodeRequest.d.ts} +1 -1
- package/src/api/resources/accounts/client/requests/AccountLinkAccountRequest.d.ts +11 -0
- package/src/api/resources/accounts/client/requests/AccountUnlinkAccountRequest.d.ts +9 -0
- package/src/api/resources/accounts/client/requests/AccountUpdateAccountRequest.d.ts +12 -0
- package/src/api/resources/accounts/client/requests/index.d.ts +6 -0
- package/src/api/resources/{siMs/types/SimGetSimResponse.d.ts → accounts/types/AccountGetAccountResponse.d.ts} +4 -3
- package/src/api/resources/accounts/types/AccountGetAccountResponseChannel.d.ts +10 -0
- package/src/api/resources/accounts/types/AccountGetAccountResponseChannel.js +12 -0
- package/src/api/resources/accounts/types/AccountGetAccountResponseStatus.d.ts +12 -0
- package/src/api/resources/{siMs/types/SimGetSimResponseStatus.js → accounts/types/AccountGetAccountResponseStatus.js} +4 -3
- package/src/api/resources/accounts/types/AccountGetChallengeResponse.d.ts +7 -0
- package/src/api/resources/accounts/types/AccountGetChallengeResponseChallenge.d.ts +19 -0
- package/src/api/resources/accounts/types/AccountGetChallengeResponseChallengeCode.d.ts +6 -0
- package/src/api/resources/accounts/types/AccountGetChallengeResponseChallengeCode.js +5 -0
- package/src/api/resources/accounts/types/AccountGetChallengeResponseChallengeNone.d.ts +5 -0
- package/src/api/resources/accounts/types/AccountGetChallengeResponseChallengeNone.js +5 -0
- package/src/api/resources/accounts/types/AccountGetChallengeResponseChallengeQr.d.ts +7 -0
- package/src/api/resources/accounts/types/AccountGetChallengeResponseChallengeQr.js +5 -0
- package/src/api/resources/accounts/types/AccountGetChallengeResponseChallengeRedirect.d.ts +6 -0
- package/src/api/resources/accounts/types/AccountGetChallengeResponseChallengeRedirect.js +5 -0
- package/src/api/resources/{siMs/types/SimGetSimQrCodeResponse.d.ts → accounts/types/AccountGetQrCodeResponse.d.ts} +1 -1
- package/src/api/resources/accounts/types/AccountGetQrCodeResponse.js +5 -0
- package/src/api/resources/accounts/types/AccountLinkAccountRequestMode.d.ts +8 -0
- package/src/api/resources/accounts/types/AccountLinkAccountRequestMode.js +10 -0
- package/src/api/resources/accounts/types/AccountLinkAccountResponse.d.ts +6 -0
- package/src/api/resources/accounts/types/AccountLinkAccountResponse.js +5 -0
- package/src/api/resources/{siMs/types/SimUpdateSimResponse.d.ts → accounts/types/AccountListAccountsResponseItem.d.ts} +4 -3
- package/src/api/resources/accounts/types/AccountListAccountsResponseItem.js +5 -0
- package/src/api/resources/accounts/types/AccountListAccountsResponseItemChannel.d.ts +10 -0
- package/src/api/resources/accounts/types/AccountListAccountsResponseItemChannel.js +12 -0
- package/src/api/resources/accounts/types/AccountListAccountsResponseItemStatus.d.ts +12 -0
- package/src/api/resources/accounts/types/AccountListAccountsResponseItemStatus.js +14 -0
- package/src/api/resources/{siMs/types/SimGetLinkedSimsResponseItem.d.ts → accounts/types/AccountUpdateAccountResponse.d.ts} +4 -3
- package/src/api/resources/accounts/types/AccountUpdateAccountResponse.js +5 -0
- package/src/api/resources/accounts/types/AccountUpdateAccountResponseChannel.d.ts +10 -0
- package/src/api/resources/accounts/types/AccountUpdateAccountResponseChannel.js +12 -0
- package/src/api/resources/accounts/types/AccountUpdateAccountResponseStatus.d.ts +12 -0
- package/src/api/resources/accounts/types/AccountUpdateAccountResponseStatus.js +14 -0
- package/src/api/resources/accounts/types/index.d.ts +18 -0
- package/src/api/resources/accounts/types/index.js +34 -0
- package/src/api/resources/index.d.ts +9 -3
- package/src/api/resources/index.js +10 -4
- package/src/api/resources/messages/client/Client.d.ts +3 -3
- package/src/api/resources/messages/client/Client.js +9 -4
- package/src/api/resources/messages/client/requests/MessageFindAllRequest.d.ts +1 -0
- package/src/api/resources/messages/client/requests/MessageSendRequest.d.ts +3 -2
- package/src/api/resources/messages/types/MessageFindAllResponseDataItem.d.ts +4 -1
- package/src/api/resources/messages/types/MessageFindAllResponseDataItemAccountChannel.d.ts +10 -0
- package/src/api/resources/messages/types/MessageFindAllResponseDataItemAccountChannel.js +12 -0
- package/src/api/resources/messages/types/MessageFindOneResponse.d.ts +4 -1
- package/src/api/resources/messages/types/MessageFindOneResponseAccountChannel.d.ts +10 -0
- package/src/api/resources/messages/types/MessageFindOneResponseAccountChannel.js +12 -0
- package/src/api/resources/messages/types/MessageSendResponse.d.ts +4 -1
- package/src/api/resources/messages/types/MessageSendResponseAccountChannel.d.ts +10 -0
- package/src/api/resources/messages/types/MessageSendResponseAccountChannel.js +12 -0
- package/src/api/resources/messages/types/index.d.ts +3 -0
- package/src/api/resources/messages/types/index.js +3 -0
- package/src/api/resources/siMsDeprecated/client/Client.d.ts +147 -0
- package/src/api/resources/{siMs → siMsDeprecated}/client/Client.js +60 -48
- package/src/api/resources/siMsDeprecated/client/index.d.ts +1 -0
- package/src/api/resources/{siMs/types → siMsDeprecated/client}/index.js +1 -11
- package/src/api/resources/siMsDeprecated/client/requests/SimLegacyGetSimQrCodeRequest.d.ts +9 -0
- package/src/api/resources/siMsDeprecated/client/requests/SimLegacyGetSimQrCodeRequest.js +5 -0
- package/src/api/resources/{siMs/client/requests/SimGetSimQrCodeRequest.d.ts → siMsDeprecated/client/requests/SimLegacyGetSimRequest.d.ts} +1 -1
- package/src/api/resources/siMsDeprecated/client/requests/SimLegacyGetSimRequest.js +5 -0
- package/src/api/resources/siMsDeprecated/client/requests/SimLegacyUnlinkSimRequest.d.ts +9 -0
- package/src/api/resources/siMsDeprecated/client/requests/SimLegacyUnlinkSimRequest.js +5 -0
- package/src/api/resources/{siMs/client/requests/SimUpdateSimRequest.d.ts → siMsDeprecated/client/requests/SimLegacyUpdateSimRequest.d.ts} +1 -1
- package/src/api/resources/siMsDeprecated/client/requests/SimLegacyUpdateSimRequest.js +5 -0
- package/src/api/resources/siMsDeprecated/client/requests/index.d.ts +4 -0
- package/src/api/resources/siMsDeprecated/client/requests/index.js +2 -0
- package/src/api/resources/siMsDeprecated/types/SimLegacyGetLinkedSimsResponseItem.d.ts +16 -0
- package/src/api/resources/siMsDeprecated/types/SimLegacyGetLinkedSimsResponseItem.js +5 -0
- package/src/api/resources/siMsDeprecated/types/SimLegacyGetLinkedSimsResponseItemChannel.d.ts +10 -0
- package/src/api/resources/siMsDeprecated/types/SimLegacyGetLinkedSimsResponseItemChannel.js +12 -0
- package/src/api/resources/siMsDeprecated/types/SimLegacyGetLinkedSimsResponseItemStatus.d.ts +12 -0
- package/src/api/resources/siMsDeprecated/types/SimLegacyGetLinkedSimsResponseItemStatus.js +14 -0
- package/src/api/resources/siMsDeprecated/types/SimLegacyGetLinkedSimsResponseItemType.d.ts +8 -0
- package/src/api/resources/{siMs/types/SimGetLinkedSimsResponseItemType.js → siMsDeprecated/types/SimLegacyGetLinkedSimsResponseItemType.js} +2 -2
- package/src/api/resources/siMsDeprecated/types/SimLegacyGetSimQrCodeResponse.d.ts +6 -0
- package/src/api/resources/siMsDeprecated/types/SimLegacyGetSimQrCodeResponse.js +5 -0
- package/src/api/resources/siMsDeprecated/types/SimLegacyGetSimResponse.d.ts +16 -0
- package/src/api/resources/siMsDeprecated/types/SimLegacyGetSimResponse.js +5 -0
- package/src/api/resources/siMsDeprecated/types/SimLegacyGetSimResponseChannel.d.ts +10 -0
- package/src/api/resources/siMsDeprecated/types/SimLegacyGetSimResponseChannel.js +12 -0
- package/src/api/resources/siMsDeprecated/types/SimLegacyGetSimResponseStatus.d.ts +12 -0
- package/src/api/resources/{siMs/types/SimUpdateSimResponseStatus.js → siMsDeprecated/types/SimLegacyGetSimResponseStatus.js} +4 -3
- package/src/api/resources/{siMs/types/SimGetSimResponseType.d.ts → siMsDeprecated/types/SimLegacyGetSimResponseType.d.ts} +2 -2
- package/src/api/resources/{siMs/types/SimGetSimResponseType.js → siMsDeprecated/types/SimLegacyGetSimResponseType.js} +2 -2
- package/src/api/resources/{siMs/types/SimLinkSimResponse.d.ts → siMsDeprecated/types/SimLegacyLinkSimResponse.d.ts} +1 -1
- package/src/api/resources/siMsDeprecated/types/SimLegacyLinkSimResponse.js +5 -0
- package/src/api/resources/siMsDeprecated/types/SimLegacyUpdateSimResponse.d.ts +16 -0
- package/src/api/resources/siMsDeprecated/types/SimLegacyUpdateSimResponse.js +5 -0
- package/src/api/resources/siMsDeprecated/types/SimLegacyUpdateSimResponseChannel.d.ts +10 -0
- package/src/api/resources/siMsDeprecated/types/SimLegacyUpdateSimResponseChannel.js +12 -0
- package/src/api/resources/siMsDeprecated/types/SimLegacyUpdateSimResponseStatus.d.ts +12 -0
- package/src/api/resources/{siMs/types/SimGetLinkedSimsResponseItemStatus.js → siMsDeprecated/types/SimLegacyUpdateSimResponseStatus.js} +4 -3
- package/src/api/resources/{siMs/types/SimUpdateSimResponseType.d.ts → siMsDeprecated/types/SimLegacyUpdateSimResponseType.d.ts} +2 -2
- package/src/api/resources/{siMs/types/SimUpdateSimResponseType.js → siMsDeprecated/types/SimLegacyUpdateSimResponseType.js} +2 -2
- package/src/api/resources/siMsDeprecated/types/index.d.ts +14 -0
- package/src/api/resources/siMsDeprecated/types/index.js +30 -0
- package/src/api/resources/webhooks/client/Client.d.ts +119 -0
- package/src/api/resources/webhooks/client/Client.js +447 -0
- package/src/api/resources/webhooks/client/index.d.ts +1 -0
- package/src/api/resources/webhooks/client/index.js +17 -0
- package/src/api/resources/webhooks/client/requests/WebhookEndpointCreateRequest.d.ts +16 -0
- package/src/api/resources/webhooks/client/requests/WebhookEndpointCreateRequest.js +5 -0
- package/src/api/resources/webhooks/client/requests/WebhookEndpointDeleteRequest.d.ts +9 -0
- package/src/api/resources/webhooks/client/requests/WebhookEndpointDeleteRequest.js +5 -0
- package/src/api/resources/webhooks/client/requests/WebhookEndpointFindOneRequest.d.ts +9 -0
- package/src/api/resources/webhooks/client/requests/WebhookEndpointFindOneRequest.js +5 -0
- package/src/api/resources/webhooks/client/requests/WebhookEndpointUpdateRequest.d.ts +14 -0
- package/src/api/resources/webhooks/client/requests/WebhookEndpointUpdateRequest.js +5 -0
- package/src/api/resources/webhooks/client/requests/index.d.ts +4 -0
- package/src/api/resources/webhooks/client/requests/index.js +2 -0
- package/src/api/resources/webhooks/index.d.ts +2 -0
- package/src/api/resources/webhooks/index.js +18 -0
- package/src/api/resources/webhooks/types/WebhookEndpointCreateRequestEventTypesItem.d.ts +7 -0
- package/src/api/resources/webhooks/types/WebhookEndpointCreateRequestEventTypesItem.js +9 -0
- package/src/api/resources/webhooks/types/WebhookEndpointCreateResponse.d.ts +15 -0
- package/src/api/resources/webhooks/types/WebhookEndpointCreateResponse.js +5 -0
- package/src/api/resources/webhooks/types/WebhookEndpointCreateResponseEventTypesItem.d.ts +7 -0
- package/src/api/resources/webhooks/types/WebhookEndpointCreateResponseEventTypesItem.js +9 -0
- package/src/api/resources/webhooks/types/WebhookEndpointFindOneResponse.d.ts +14 -0
- package/src/api/resources/webhooks/types/WebhookEndpointFindOneResponse.js +5 -0
- package/src/api/resources/webhooks/types/WebhookEndpointFindOneResponseEventTypesItem.d.ts +7 -0
- package/src/api/resources/webhooks/types/WebhookEndpointFindOneResponseEventTypesItem.js +9 -0
- package/src/api/resources/webhooks/types/WebhookEndpointListResponse.d.ts +7 -0
- package/src/api/resources/webhooks/types/WebhookEndpointListResponse.js +5 -0
- package/src/api/resources/webhooks/types/WebhookEndpointListResponseDataItem.d.ts +14 -0
- package/src/api/resources/webhooks/types/WebhookEndpointListResponseDataItem.js +5 -0
- package/src/api/resources/webhooks/types/WebhookEndpointListResponseDataItemEventTypesItem.d.ts +7 -0
- package/src/api/resources/webhooks/types/WebhookEndpointListResponseDataItemEventTypesItem.js +9 -0
- package/src/api/resources/webhooks/types/WebhookEndpointUpdateRequestEventTypesItem.d.ts +7 -0
- package/src/api/resources/webhooks/types/WebhookEndpointUpdateRequestEventTypesItem.js +9 -0
- package/src/api/resources/webhooks/types/WebhookEndpointUpdateResponse.d.ts +14 -0
- package/src/api/resources/webhooks/types/WebhookEndpointUpdateResponse.js +5 -0
- package/src/api/resources/webhooks/types/WebhookEndpointUpdateResponseEventTypesItem.d.ts +7 -0
- package/src/api/resources/webhooks/types/WebhookEndpointUpdateResponseEventTypesItem.js +9 -0
- package/src/api/resources/webhooks/types/index.d.ts +11 -0
- package/src/api/resources/webhooks/types/index.js +27 -0
- package/src/serialization/resources/{siMs/client/simGetLinkedSims.d.ts → accounts/client/accountListAccounts.d.ts} +3 -3
- package/src/serialization/resources/{siMs/client/simGetLinkedSims.js → accounts/client/accountListAccounts.js} +2 -2
- package/src/serialization/resources/accounts/client/index.d.ts +2 -0
- package/src/serialization/resources/{siMs → accounts}/client/index.js +2 -2
- package/src/serialization/resources/accounts/client/requests/AccountUpdateAccountRequest.d.ts +12 -0
- package/src/serialization/resources/accounts/client/requests/AccountUpdateAccountRequest.js +43 -0
- package/src/serialization/resources/accounts/client/requests/index.d.ts +1 -0
- package/src/serialization/resources/accounts/client/requests/index.js +5 -0
- package/src/serialization/resources/accounts/index.d.ts +2 -0
- package/src/serialization/resources/accounts/index.js +18 -0
- package/src/serialization/resources/accounts/types/AccountGetAccountResponse.d.ts +22 -0
- package/src/serialization/resources/{siMs/types/SimGetLinkedSimsResponseItem.js → accounts/types/AccountGetAccountResponse.js} +7 -6
- package/src/serialization/resources/accounts/types/AccountGetAccountResponseChannel.d.ts +10 -0
- package/src/serialization/resources/accounts/types/AccountGetAccountResponseChannel.js +41 -0
- package/src/serialization/resources/accounts/types/AccountGetAccountResponseStatus.d.ts +10 -0
- package/src/serialization/resources/accounts/types/AccountGetAccountResponseStatus.js +41 -0
- package/src/serialization/resources/accounts/types/AccountGetChallengeResponse.d.ts +13 -0
- package/src/serialization/resources/accounts/types/AccountGetChallengeResponse.js +44 -0
- package/src/serialization/resources/accounts/types/AccountGetChallengeResponseChallenge.d.ts +26 -0
- package/src/serialization/resources/accounts/types/AccountGetChallengeResponseChallenge.js +55 -0
- package/src/serialization/resources/accounts/types/AccountGetChallengeResponseChallengeCode.d.ts +12 -0
- package/src/serialization/resources/accounts/types/AccountGetChallengeResponseChallengeCode.js +43 -0
- package/src/serialization/resources/accounts/types/AccountGetChallengeResponseChallengeNone.d.ts +11 -0
- package/src/serialization/resources/accounts/types/AccountGetChallengeResponseChallengeNone.js +41 -0
- package/src/serialization/resources/accounts/types/AccountGetChallengeResponseChallengeQr.d.ts +13 -0
- package/src/serialization/resources/accounts/types/AccountGetChallengeResponseChallengeQr.js +44 -0
- package/src/serialization/resources/accounts/types/AccountGetChallengeResponseChallengeRedirect.d.ts +12 -0
- package/src/serialization/resources/accounts/types/AccountGetChallengeResponseChallengeRedirect.js +43 -0
- package/src/serialization/resources/{siMs/types/SimGetSimQrCodeResponse.d.ts → accounts/types/AccountGetQrCodeResponse.d.ts} +2 -2
- package/src/serialization/resources/{siMs/types/SimGetSimQrCodeResponse.js → accounts/types/AccountGetQrCodeResponse.js} +2 -2
- package/src/serialization/resources/accounts/types/AccountLinkAccountRequestMode.d.ts +10 -0
- package/src/serialization/resources/{siMs/types/SimUpdateSimResponseType.js → accounts/types/AccountLinkAccountRequestMode.js} +2 -2
- package/src/serialization/resources/accounts/types/AccountLinkAccountResponse.d.ts +12 -0
- package/src/serialization/resources/accounts/types/AccountLinkAccountResponse.js +43 -0
- package/src/serialization/resources/accounts/types/AccountListAccountsResponseItem.d.ts +22 -0
- package/src/serialization/resources/{siMs/types/SimGetSimResponse.js → accounts/types/AccountListAccountsResponseItem.js} +7 -6
- package/src/serialization/resources/accounts/types/AccountListAccountsResponseItemChannel.d.ts +10 -0
- package/src/serialization/resources/accounts/types/AccountListAccountsResponseItemChannel.js +41 -0
- package/src/serialization/resources/accounts/types/AccountListAccountsResponseItemStatus.d.ts +10 -0
- package/src/serialization/resources/accounts/types/AccountListAccountsResponseItemStatus.js +41 -0
- package/src/serialization/resources/accounts/types/AccountUpdateAccountResponse.d.ts +22 -0
- package/src/serialization/resources/{siMs/types/SimUpdateSimResponse.js → accounts/types/AccountUpdateAccountResponse.js} +7 -6
- package/src/serialization/resources/accounts/types/AccountUpdateAccountResponseChannel.d.ts +10 -0
- package/src/serialization/resources/accounts/types/AccountUpdateAccountResponseChannel.js +41 -0
- package/src/serialization/resources/accounts/types/AccountUpdateAccountResponseStatus.d.ts +10 -0
- package/src/serialization/resources/accounts/types/AccountUpdateAccountResponseStatus.js +41 -0
- package/src/serialization/resources/accounts/types/index.d.ts +18 -0
- package/src/serialization/resources/accounts/types/index.js +34 -0
- package/src/serialization/resources/index.d.ts +9 -3
- package/src/serialization/resources/index.js +10 -4
- package/src/serialization/resources/messages/client/requests/MessageSendRequest.d.ts +3 -1
- package/src/serialization/resources/messages/client/requests/MessageSendRequest.js +3 -1
- package/src/serialization/resources/messages/types/MessageFindAllResponseDataItem.d.ts +5 -1
- package/src/serialization/resources/messages/types/MessageFindAllResponseDataItem.js +5 -1
- package/src/serialization/resources/messages/types/MessageFindAllResponseDataItemAccountChannel.d.ts +10 -0
- package/src/serialization/resources/messages/types/MessageFindAllResponseDataItemAccountChannel.js +41 -0
- package/src/serialization/resources/messages/types/MessageFindOneResponse.d.ts +5 -1
- package/src/serialization/resources/messages/types/MessageFindOneResponse.js +5 -1
- package/src/serialization/resources/messages/types/MessageFindOneResponseAccountChannel.d.ts +10 -0
- package/src/serialization/resources/messages/types/MessageFindOneResponseAccountChannel.js +41 -0
- package/src/serialization/resources/messages/types/MessageSendResponse.d.ts +5 -1
- package/src/serialization/resources/messages/types/MessageSendResponse.js +5 -1
- package/src/serialization/resources/messages/types/MessageSendResponseAccountChannel.d.ts +10 -0
- package/src/serialization/resources/messages/types/MessageSendResponseAccountChannel.js +41 -0
- package/src/serialization/resources/messages/types/index.d.ts +3 -0
- package/src/serialization/resources/messages/types/index.js +3 -0
- package/src/serialization/resources/siMsDeprecated/client/index.d.ts +2 -0
- package/src/serialization/resources/siMsDeprecated/client/index.js +41 -0
- package/src/serialization/resources/{siMs/client/requests/SimUpdateSimRequest.d.ts → siMsDeprecated/client/requests/SimLegacyUpdateSimRequest.d.ts} +2 -2
- package/src/serialization/resources/{siMs/client/requests/SimUpdateSimRequest.js → siMsDeprecated/client/requests/SimLegacyUpdateSimRequest.js} +2 -2
- package/src/serialization/resources/siMsDeprecated/client/requests/index.d.ts +1 -0
- package/src/serialization/resources/siMsDeprecated/client/requests/index.js +5 -0
- package/src/serialization/resources/siMsDeprecated/client/simLegacyGetLinkedSims.d.ts +11 -0
- package/src/serialization/resources/siMsDeprecated/client/simLegacyGetLinkedSims.js +42 -0
- package/src/serialization/resources/siMsDeprecated/index.d.ts +2 -0
- package/src/serialization/resources/siMsDeprecated/index.js +18 -0
- package/src/serialization/resources/siMsDeprecated/types/SimLegacyGetLinkedSimsResponseItem.d.ts +24 -0
- package/src/serialization/resources/siMsDeprecated/types/SimLegacyGetLinkedSimsResponseItem.js +55 -0
- package/src/serialization/resources/siMsDeprecated/types/SimLegacyGetLinkedSimsResponseItemChannel.d.ts +10 -0
- package/src/serialization/resources/siMsDeprecated/types/SimLegacyGetLinkedSimsResponseItemChannel.js +41 -0
- package/src/serialization/resources/siMsDeprecated/types/SimLegacyGetLinkedSimsResponseItemStatus.d.ts +10 -0
- package/src/serialization/resources/siMsDeprecated/types/SimLegacyGetLinkedSimsResponseItemStatus.js +41 -0
- package/src/serialization/resources/siMsDeprecated/types/SimLegacyGetLinkedSimsResponseItemType.d.ts +10 -0
- package/src/serialization/resources/siMsDeprecated/types/SimLegacyGetLinkedSimsResponseItemType.js +41 -0
- package/src/serialization/resources/siMsDeprecated/types/SimLegacyGetSimQrCodeResponse.d.ts +12 -0
- package/src/serialization/resources/{siMs/types/SimGetSimResponseStatus.js → siMsDeprecated/types/SimLegacyGetSimQrCodeResponse.js} +4 -2
- package/src/serialization/resources/siMsDeprecated/types/SimLegacyGetSimResponse.d.ts +24 -0
- package/src/serialization/resources/siMsDeprecated/types/SimLegacyGetSimResponse.js +55 -0
- package/src/serialization/resources/siMsDeprecated/types/SimLegacyGetSimResponseChannel.d.ts +10 -0
- package/src/serialization/resources/siMsDeprecated/types/SimLegacyGetSimResponseChannel.js +41 -0
- package/src/serialization/resources/siMsDeprecated/types/SimLegacyGetSimResponseStatus.d.ts +10 -0
- package/src/serialization/resources/siMsDeprecated/types/SimLegacyGetSimResponseStatus.js +41 -0
- package/src/serialization/resources/{siMs/types/SimGetSimResponseType.d.ts → siMsDeprecated/types/SimLegacyGetSimResponseType.d.ts} +2 -2
- package/src/serialization/resources/{siMs/types/SimGetSimResponseType.js → siMsDeprecated/types/SimLegacyGetSimResponseType.js} +2 -2
- package/src/serialization/resources/{siMs/types/SimLinkSimResponse.d.ts → siMsDeprecated/types/SimLegacyLinkSimResponse.d.ts} +2 -2
- package/src/serialization/resources/{siMs/types/SimLinkSimResponse.js → siMsDeprecated/types/SimLegacyLinkSimResponse.js} +2 -2
- package/src/serialization/resources/siMsDeprecated/types/SimLegacyUpdateSimResponse.d.ts +24 -0
- package/src/serialization/resources/siMsDeprecated/types/SimLegacyUpdateSimResponse.js +55 -0
- package/src/serialization/resources/siMsDeprecated/types/SimLegacyUpdateSimResponseChannel.d.ts +10 -0
- package/src/serialization/resources/siMsDeprecated/types/SimLegacyUpdateSimResponseChannel.js +41 -0
- package/src/serialization/resources/siMsDeprecated/types/SimLegacyUpdateSimResponseStatus.d.ts +10 -0
- package/src/serialization/resources/{siMs/types/SimGetLinkedSimsResponseItemStatus.js → siMsDeprecated/types/SimLegacyUpdateSimResponseStatus.js} +2 -2
- package/src/serialization/resources/{siMs/types/SimUpdateSimResponseType.d.ts → siMsDeprecated/types/SimLegacyUpdateSimResponseType.d.ts} +2 -2
- package/src/serialization/resources/{siMs/types/SimGetLinkedSimsResponseItemType.js → siMsDeprecated/types/SimLegacyUpdateSimResponseType.js} +2 -2
- package/src/serialization/resources/siMsDeprecated/types/index.d.ts +14 -0
- package/src/serialization/resources/siMsDeprecated/types/index.js +30 -0
- package/src/serialization/resources/webhooks/client/index.d.ts +1 -0
- package/src/serialization/resources/webhooks/client/index.js +17 -0
- package/src/serialization/resources/webhooks/client/requests/WebhookEndpointCreateRequest.d.ts +15 -0
- package/src/serialization/resources/webhooks/client/requests/WebhookEndpointCreateRequest.js +46 -0
- package/src/serialization/resources/webhooks/client/requests/WebhookEndpointUpdateRequest.d.ts +16 -0
- package/src/serialization/resources/webhooks/client/requests/WebhookEndpointUpdateRequest.js +47 -0
- package/src/serialization/resources/webhooks/client/requests/index.d.ts +2 -0
- package/src/serialization/resources/webhooks/client/requests/index.js +7 -0
- package/src/serialization/resources/webhooks/index.d.ts +2 -0
- package/src/serialization/resources/webhooks/index.js +18 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointCreateRequestEventTypesItem.d.ts +10 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointCreateRequestEventTypesItem.js +41 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointCreateResponse.d.ts +21 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointCreateResponse.js +52 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointCreateResponseEventTypesItem.d.ts +10 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointCreateResponseEventTypesItem.js +41 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointFindOneResponse.d.ts +20 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointFindOneResponse.js +51 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointFindOneResponseEventTypesItem.d.ts +10 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointFindOneResponseEventTypesItem.js +41 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointListResponse.d.ts +13 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointListResponse.js +44 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointListResponseDataItem.d.ts +20 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointListResponseDataItem.js +51 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointListResponseDataItemEventTypesItem.d.ts +10 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointListResponseDataItemEventTypesItem.js +41 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointUpdateRequestEventTypesItem.d.ts +10 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointUpdateRequestEventTypesItem.js +41 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointUpdateResponse.d.ts +20 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointUpdateResponse.js +51 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointUpdateResponseEventTypesItem.d.ts +10 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointUpdateResponseEventTypesItem.js +41 -0
- package/src/serialization/resources/webhooks/types/index.d.ts +11 -0
- package/src/serialization/resources/webhooks/types/index.js +27 -0
- package/src/api/resources/siMs/client/Client.d.ts +0 -137
- package/src/api/resources/siMs/client/requests/index.d.ts +0 -4
- package/src/api/resources/siMs/types/SimGetLinkedSimsResponseItemStatus.d.ts +0 -11
- package/src/api/resources/siMs/types/SimGetLinkedSimsResponseItemType.d.ts +0 -8
- package/src/api/resources/siMs/types/SimGetSimResponseStatus.d.ts +0 -11
- package/src/api/resources/siMs/types/SimUpdateSimResponseStatus.d.ts +0 -11
- package/src/api/resources/siMs/types/index.d.ts +0 -11
- package/src/serialization/resources/siMs/client/index.d.ts +0 -2
- package/src/serialization/resources/siMs/client/requests/index.d.ts +0 -1
- package/src/serialization/resources/siMs/client/requests/index.js +0 -5
- package/src/serialization/resources/siMs/types/SimGetLinkedSimsResponseItem.d.ts +0 -21
- package/src/serialization/resources/siMs/types/SimGetLinkedSimsResponseItemStatus.d.ts +0 -10
- package/src/serialization/resources/siMs/types/SimGetLinkedSimsResponseItemType.d.ts +0 -10
- package/src/serialization/resources/siMs/types/SimGetSimResponse.d.ts +0 -21
- package/src/serialization/resources/siMs/types/SimGetSimResponseStatus.d.ts +0 -10
- package/src/serialization/resources/siMs/types/SimUpdateSimResponse.d.ts +0 -21
- package/src/serialization/resources/siMs/types/SimUpdateSimResponseStatus.d.ts +0 -10
- package/src/serialization/resources/siMs/types/SimUpdateSimResponseStatus.js +0 -41
- package/src/serialization/resources/siMs/types/index.d.ts +0 -11
- package/src/serialization/resources/siMs/types/index.js +0 -27
- /package/src/api/resources/{siMs → accounts}/client/index.d.ts +0 -0
- /package/src/api/resources/{siMs → accounts}/client/index.js +0 -0
- /package/src/api/resources/{siMs/client/requests/SimGetSimQrCodeRequest.js → accounts/client/requests/AccountGetAccountRequest.js} +0 -0
- /package/src/api/resources/{siMs/client/requests/SimGetSimRequest.js → accounts/client/requests/AccountGetChallengeRequest.js} +0 -0
- /package/src/api/resources/{siMs/client/requests/SimUnlinkSimRequest.js → accounts/client/requests/AccountGetQrCodeRequest.js} +0 -0
- /package/src/api/resources/{siMs/client/requests/SimUpdateSimRequest.js → accounts/client/requests/AccountLinkAccountRequest.js} +0 -0
- /package/src/api/resources/{siMs/types/SimGetLinkedSimsResponseItem.js → accounts/client/requests/AccountUnlinkAccountRequest.js} +0 -0
- /package/src/api/resources/{siMs/types/SimGetSimQrCodeResponse.js → accounts/client/requests/AccountUpdateAccountRequest.js} +0 -0
- /package/src/api/resources/{siMs → accounts}/client/requests/index.js +0 -0
- /package/src/api/resources/{siMs → accounts}/index.d.ts +0 -0
- /package/src/api/resources/{siMs → accounts}/index.js +0 -0
- /package/src/api/resources/{siMs/types/SimGetSimResponse.js → accounts/types/AccountGetAccountResponse.js} +0 -0
- /package/src/api/resources/{siMs/types/SimLinkSimResponse.js → accounts/types/AccountGetChallengeResponse.js} +0 -0
- /package/src/api/resources/{siMs/types/SimUpdateSimResponse.js → accounts/types/AccountGetChallengeResponseChallenge.js} +0 -0
- /package/src/{serialization/resources/siMs → api/resources/siMsDeprecated}/index.d.ts +0 -0
- /package/src/{serialization/resources/siMs → api/resources/siMsDeprecated}/index.js +0 -0
|
@@ -0,0 +1,447 @@
|
|
|
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 () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
+
};
|
|
50
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
+
exports.Webhooks = void 0;
|
|
52
|
+
const environments = __importStar(require("../../../../environments"));
|
|
53
|
+
const core = __importStar(require("../../../../core"));
|
|
54
|
+
const UnlimitedMessagingApi = __importStar(require("../../../index"));
|
|
55
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
56
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
57
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
58
|
+
class Webhooks {
|
|
59
|
+
constructor(_options) {
|
|
60
|
+
this._options = _options;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* **Protection**: Protected endpoint. Allowed roles: USER, ADMIN. Required scopes: OTHER:READ
|
|
64
|
+
*
|
|
65
|
+
* Returns every webhook endpoint registered by the authenticated user, with the event types each one is subscribed to. Never includes the secret.
|
|
66
|
+
*
|
|
67
|
+
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link UnlimitedMessagingApi.UnauthorizedError}
|
|
70
|
+
* @throws {@link UnlimitedMessagingApi.ForbiddenError}
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* await client.webhooks.webhookEndpointList()
|
|
74
|
+
*/
|
|
75
|
+
webhookEndpointList(requestOptions) {
|
|
76
|
+
return core.HttpResponsePromise.fromPromise(this.__webhookEndpointList(requestOptions));
|
|
77
|
+
}
|
|
78
|
+
__webhookEndpointList(requestOptions) {
|
|
79
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
var _a, _b;
|
|
81
|
+
const _response = yield core.fetcher({
|
|
82
|
+
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.UnlimitedMessagingApiEnvironment.Production, "webhooks"),
|
|
83
|
+
method: "GET",
|
|
84
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
85
|
+
contentType: "application/json",
|
|
86
|
+
requestType: "json",
|
|
87
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
88
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
89
|
+
withCredentials: true,
|
|
90
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
91
|
+
});
|
|
92
|
+
if (_response.ok) {
|
|
93
|
+
return {
|
|
94
|
+
data: serializers.WebhookEndpointListResponse.parseOrThrow(_response.body, {
|
|
95
|
+
unrecognizedObjectKeys: "passthrough",
|
|
96
|
+
allowUnrecognizedUnionMembers: true,
|
|
97
|
+
allowUnrecognizedEnumValues: true,
|
|
98
|
+
breadcrumbsPrefix: ["response"],
|
|
99
|
+
}),
|
|
100
|
+
rawResponse: _response.rawResponse,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
if (_response.error.reason === "status-code") {
|
|
104
|
+
switch (_response.error.statusCode) {
|
|
105
|
+
case 401:
|
|
106
|
+
throw new UnlimitedMessagingApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
107
|
+
case 403:
|
|
108
|
+
throw new UnlimitedMessagingApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
109
|
+
default:
|
|
110
|
+
throw new errors.UnlimitedMessagingApiError({
|
|
111
|
+
statusCode: _response.error.statusCode,
|
|
112
|
+
body: _response.error.body,
|
|
113
|
+
rawResponse: _response.rawResponse,
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
switch (_response.error.reason) {
|
|
118
|
+
case "non-json":
|
|
119
|
+
throw new errors.UnlimitedMessagingApiError({
|
|
120
|
+
statusCode: _response.error.statusCode,
|
|
121
|
+
body: _response.error.rawBody,
|
|
122
|
+
rawResponse: _response.rawResponse,
|
|
123
|
+
});
|
|
124
|
+
case "timeout":
|
|
125
|
+
throw new errors.UnlimitedMessagingApiTimeoutError("Timeout exceeded when calling GET /webhooks.");
|
|
126
|
+
case "unknown":
|
|
127
|
+
throw new errors.UnlimitedMessagingApiError({
|
|
128
|
+
message: _response.error.errorMessage,
|
|
129
|
+
rawResponse: _response.rawResponse,
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* **Protection**: Protected endpoint. Allowed roles: USER, ADMIN. Required scopes: OTHER:WRITE
|
|
136
|
+
*
|
|
137
|
+
* Registers a URL to receive signed HTTP POST requests for the given event types. The `secret` used to verify deliveries is only returned once, here - store it securely. Requires a Medium or Max plan.
|
|
138
|
+
*
|
|
139
|
+
* @param {UnlimitedMessagingApi.WebhookEndpointCreateRequest} request
|
|
140
|
+
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
141
|
+
*
|
|
142
|
+
* @throws {@link UnlimitedMessagingApi.BadRequestError}
|
|
143
|
+
* @throws {@link UnlimitedMessagingApi.UnauthorizedError}
|
|
144
|
+
* @throws {@link UnlimitedMessagingApi.ForbiddenError}
|
|
145
|
+
*
|
|
146
|
+
* @example
|
|
147
|
+
* await client.webhooks.webhookEndpointCreate({
|
|
148
|
+
* url: "url",
|
|
149
|
+
* eventTypes: ["message.received"]
|
|
150
|
+
* })
|
|
151
|
+
*/
|
|
152
|
+
webhookEndpointCreate(request, requestOptions) {
|
|
153
|
+
return core.HttpResponsePromise.fromPromise(this.__webhookEndpointCreate(request, requestOptions));
|
|
154
|
+
}
|
|
155
|
+
__webhookEndpointCreate(request, requestOptions) {
|
|
156
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
157
|
+
var _a, _b;
|
|
158
|
+
const _response = yield core.fetcher({
|
|
159
|
+
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.UnlimitedMessagingApiEnvironment.Production, "webhooks"),
|
|
160
|
+
method: "POST",
|
|
161
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
162
|
+
contentType: "application/json",
|
|
163
|
+
requestType: "json",
|
|
164
|
+
body: serializers.WebhookEndpointCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
165
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
166
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
167
|
+
withCredentials: true,
|
|
168
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
169
|
+
});
|
|
170
|
+
if (_response.ok) {
|
|
171
|
+
return {
|
|
172
|
+
data: serializers.WebhookEndpointCreateResponse.parseOrThrow(_response.body, {
|
|
173
|
+
unrecognizedObjectKeys: "passthrough",
|
|
174
|
+
allowUnrecognizedUnionMembers: true,
|
|
175
|
+
allowUnrecognizedEnumValues: true,
|
|
176
|
+
breadcrumbsPrefix: ["response"],
|
|
177
|
+
}),
|
|
178
|
+
rawResponse: _response.rawResponse,
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
if (_response.error.reason === "status-code") {
|
|
182
|
+
switch (_response.error.statusCode) {
|
|
183
|
+
case 400:
|
|
184
|
+
throw new UnlimitedMessagingApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
185
|
+
case 401:
|
|
186
|
+
throw new UnlimitedMessagingApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
187
|
+
case 403:
|
|
188
|
+
throw new UnlimitedMessagingApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
189
|
+
default:
|
|
190
|
+
throw new errors.UnlimitedMessagingApiError({
|
|
191
|
+
statusCode: _response.error.statusCode,
|
|
192
|
+
body: _response.error.body,
|
|
193
|
+
rawResponse: _response.rawResponse,
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
switch (_response.error.reason) {
|
|
198
|
+
case "non-json":
|
|
199
|
+
throw new errors.UnlimitedMessagingApiError({
|
|
200
|
+
statusCode: _response.error.statusCode,
|
|
201
|
+
body: _response.error.rawBody,
|
|
202
|
+
rawResponse: _response.rawResponse,
|
|
203
|
+
});
|
|
204
|
+
case "timeout":
|
|
205
|
+
throw new errors.UnlimitedMessagingApiTimeoutError("Timeout exceeded when calling POST /webhooks.");
|
|
206
|
+
case "unknown":
|
|
207
|
+
throw new errors.UnlimitedMessagingApiError({
|
|
208
|
+
message: _response.error.errorMessage,
|
|
209
|
+
rawResponse: _response.rawResponse,
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* **Protection**: Protected endpoint. Allowed roles: USER, ADMIN. Required scopes: OTHER:READ
|
|
216
|
+
*
|
|
217
|
+
* No description provided
|
|
218
|
+
*
|
|
219
|
+
* @param {string} id
|
|
220
|
+
* @param {UnlimitedMessagingApi.WebhookEndpointFindOneRequest} request
|
|
221
|
+
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
222
|
+
*
|
|
223
|
+
* @throws {@link UnlimitedMessagingApi.UnauthorizedError}
|
|
224
|
+
* @throws {@link UnlimitedMessagingApi.ForbiddenError}
|
|
225
|
+
* @throws {@link UnlimitedMessagingApi.NotFoundError}
|
|
226
|
+
*
|
|
227
|
+
* @example
|
|
228
|
+
* await client.webhooks.webhookEndpointFindOne("id")
|
|
229
|
+
*/
|
|
230
|
+
webhookEndpointFindOne(id, request = {}, requestOptions) {
|
|
231
|
+
return core.HttpResponsePromise.fromPromise(this.__webhookEndpointFindOne(id, request, requestOptions));
|
|
232
|
+
}
|
|
233
|
+
__webhookEndpointFindOne(id_1) {
|
|
234
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
235
|
+
var _a, _b;
|
|
236
|
+
const _response = yield core.fetcher({
|
|
237
|
+
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.UnlimitedMessagingApiEnvironment.Production, `webhooks/${encodeURIComponent(id)}`),
|
|
238
|
+
method: "GET",
|
|
239
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
240
|
+
contentType: "application/json",
|
|
241
|
+
requestType: "json",
|
|
242
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
243
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
244
|
+
withCredentials: true,
|
|
245
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
246
|
+
});
|
|
247
|
+
if (_response.ok) {
|
|
248
|
+
return {
|
|
249
|
+
data: serializers.WebhookEndpointFindOneResponse.parseOrThrow(_response.body, {
|
|
250
|
+
unrecognizedObjectKeys: "passthrough",
|
|
251
|
+
allowUnrecognizedUnionMembers: true,
|
|
252
|
+
allowUnrecognizedEnumValues: true,
|
|
253
|
+
breadcrumbsPrefix: ["response"],
|
|
254
|
+
}),
|
|
255
|
+
rawResponse: _response.rawResponse,
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
if (_response.error.reason === "status-code") {
|
|
259
|
+
switch (_response.error.statusCode) {
|
|
260
|
+
case 401:
|
|
261
|
+
throw new UnlimitedMessagingApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
262
|
+
case 403:
|
|
263
|
+
throw new UnlimitedMessagingApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
264
|
+
case 404:
|
|
265
|
+
throw new UnlimitedMessagingApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
266
|
+
default:
|
|
267
|
+
throw new errors.UnlimitedMessagingApiError({
|
|
268
|
+
statusCode: _response.error.statusCode,
|
|
269
|
+
body: _response.error.body,
|
|
270
|
+
rawResponse: _response.rawResponse,
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
switch (_response.error.reason) {
|
|
275
|
+
case "non-json":
|
|
276
|
+
throw new errors.UnlimitedMessagingApiError({
|
|
277
|
+
statusCode: _response.error.statusCode,
|
|
278
|
+
body: _response.error.rawBody,
|
|
279
|
+
rawResponse: _response.rawResponse,
|
|
280
|
+
});
|
|
281
|
+
case "timeout":
|
|
282
|
+
throw new errors.UnlimitedMessagingApiTimeoutError("Timeout exceeded when calling GET /webhooks/{id}.");
|
|
283
|
+
case "unknown":
|
|
284
|
+
throw new errors.UnlimitedMessagingApiError({
|
|
285
|
+
message: _response.error.errorMessage,
|
|
286
|
+
rawResponse: _response.rawResponse,
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* **Protection**: Protected endpoint. Allowed roles: USER, ADMIN. Required scopes: OTHER:WRITE
|
|
293
|
+
*
|
|
294
|
+
* Permanently deletes the endpoint and its delivery history.
|
|
295
|
+
*
|
|
296
|
+
* @param {string} id
|
|
297
|
+
* @param {UnlimitedMessagingApi.WebhookEndpointDeleteRequest} request
|
|
298
|
+
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
299
|
+
*
|
|
300
|
+
* @throws {@link UnlimitedMessagingApi.UnauthorizedError}
|
|
301
|
+
* @throws {@link UnlimitedMessagingApi.ForbiddenError}
|
|
302
|
+
* @throws {@link UnlimitedMessagingApi.NotFoundError}
|
|
303
|
+
*
|
|
304
|
+
* @example
|
|
305
|
+
* await client.webhooks.webhookEndpointDelete("id")
|
|
306
|
+
*/
|
|
307
|
+
webhookEndpointDelete(id, request = {}, requestOptions) {
|
|
308
|
+
return core.HttpResponsePromise.fromPromise(this.__webhookEndpointDelete(id, request, requestOptions));
|
|
309
|
+
}
|
|
310
|
+
__webhookEndpointDelete(id_1) {
|
|
311
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
312
|
+
var _a, _b;
|
|
313
|
+
const _response = yield core.fetcher({
|
|
314
|
+
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.UnlimitedMessagingApiEnvironment.Production, `webhooks/${encodeURIComponent(id)}`),
|
|
315
|
+
method: "DELETE",
|
|
316
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
317
|
+
contentType: "application/json",
|
|
318
|
+
requestType: "json",
|
|
319
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
320
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
321
|
+
withCredentials: true,
|
|
322
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
323
|
+
});
|
|
324
|
+
if (_response.ok) {
|
|
325
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
326
|
+
}
|
|
327
|
+
if (_response.error.reason === "status-code") {
|
|
328
|
+
switch (_response.error.statusCode) {
|
|
329
|
+
case 401:
|
|
330
|
+
throw new UnlimitedMessagingApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
331
|
+
case 403:
|
|
332
|
+
throw new UnlimitedMessagingApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
333
|
+
case 404:
|
|
334
|
+
throw new UnlimitedMessagingApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
335
|
+
default:
|
|
336
|
+
throw new errors.UnlimitedMessagingApiError({
|
|
337
|
+
statusCode: _response.error.statusCode,
|
|
338
|
+
body: _response.error.body,
|
|
339
|
+
rawResponse: _response.rawResponse,
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
switch (_response.error.reason) {
|
|
344
|
+
case "non-json":
|
|
345
|
+
throw new errors.UnlimitedMessagingApiError({
|
|
346
|
+
statusCode: _response.error.statusCode,
|
|
347
|
+
body: _response.error.rawBody,
|
|
348
|
+
rawResponse: _response.rawResponse,
|
|
349
|
+
});
|
|
350
|
+
case "timeout":
|
|
351
|
+
throw new errors.UnlimitedMessagingApiTimeoutError("Timeout exceeded when calling DELETE /webhooks/{id}.");
|
|
352
|
+
case "unknown":
|
|
353
|
+
throw new errors.UnlimitedMessagingApiError({
|
|
354
|
+
message: _response.error.errorMessage,
|
|
355
|
+
rawResponse: _response.rawResponse,
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* **Protection**: Protected endpoint. Allowed roles: USER, ADMIN. Required scopes: OTHER:WRITE
|
|
362
|
+
*
|
|
363
|
+
* Updates the URL, description, enabled state, and/or subscribed event types. Omit a field to leave it unchanged.
|
|
364
|
+
*
|
|
365
|
+
* @param {string} id
|
|
366
|
+
* @param {UnlimitedMessagingApi.WebhookEndpointUpdateRequest} request
|
|
367
|
+
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
368
|
+
*
|
|
369
|
+
* @throws {@link UnlimitedMessagingApi.BadRequestError}
|
|
370
|
+
* @throws {@link UnlimitedMessagingApi.UnauthorizedError}
|
|
371
|
+
* @throws {@link UnlimitedMessagingApi.ForbiddenError}
|
|
372
|
+
* @throws {@link UnlimitedMessagingApi.NotFoundError}
|
|
373
|
+
*
|
|
374
|
+
* @example
|
|
375
|
+
* await client.webhooks.webhookEndpointUpdate("id")
|
|
376
|
+
*/
|
|
377
|
+
webhookEndpointUpdate(id, request = {}, requestOptions) {
|
|
378
|
+
return core.HttpResponsePromise.fromPromise(this.__webhookEndpointUpdate(id, request, requestOptions));
|
|
379
|
+
}
|
|
380
|
+
__webhookEndpointUpdate(id_1) {
|
|
381
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
382
|
+
var _a, _b;
|
|
383
|
+
const _response = yield core.fetcher({
|
|
384
|
+
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.UnlimitedMessagingApiEnvironment.Production, `webhooks/${encodeURIComponent(id)}`),
|
|
385
|
+
method: "PATCH",
|
|
386
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
387
|
+
contentType: "application/json",
|
|
388
|
+
requestType: "json",
|
|
389
|
+
body: serializers.WebhookEndpointUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
390
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
391
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
392
|
+
withCredentials: true,
|
|
393
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
394
|
+
});
|
|
395
|
+
if (_response.ok) {
|
|
396
|
+
return {
|
|
397
|
+
data: serializers.WebhookEndpointUpdateResponse.parseOrThrow(_response.body, {
|
|
398
|
+
unrecognizedObjectKeys: "passthrough",
|
|
399
|
+
allowUnrecognizedUnionMembers: true,
|
|
400
|
+
allowUnrecognizedEnumValues: true,
|
|
401
|
+
breadcrumbsPrefix: ["response"],
|
|
402
|
+
}),
|
|
403
|
+
rawResponse: _response.rawResponse,
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
if (_response.error.reason === "status-code") {
|
|
407
|
+
switch (_response.error.statusCode) {
|
|
408
|
+
case 400:
|
|
409
|
+
throw new UnlimitedMessagingApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
410
|
+
case 401:
|
|
411
|
+
throw new UnlimitedMessagingApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
412
|
+
case 403:
|
|
413
|
+
throw new UnlimitedMessagingApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
414
|
+
case 404:
|
|
415
|
+
throw new UnlimitedMessagingApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
416
|
+
default:
|
|
417
|
+
throw new errors.UnlimitedMessagingApiError({
|
|
418
|
+
statusCode: _response.error.statusCode,
|
|
419
|
+
body: _response.error.body,
|
|
420
|
+
rawResponse: _response.rawResponse,
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
switch (_response.error.reason) {
|
|
425
|
+
case "non-json":
|
|
426
|
+
throw new errors.UnlimitedMessagingApiError({
|
|
427
|
+
statusCode: _response.error.statusCode,
|
|
428
|
+
body: _response.error.rawBody,
|
|
429
|
+
rawResponse: _response.rawResponse,
|
|
430
|
+
});
|
|
431
|
+
case "timeout":
|
|
432
|
+
throw new errors.UnlimitedMessagingApiTimeoutError("Timeout exceeded when calling PATCH /webhooks/{id}.");
|
|
433
|
+
case "unknown":
|
|
434
|
+
throw new errors.UnlimitedMessagingApiError({
|
|
435
|
+
message: _response.error.errorMessage,
|
|
436
|
+
rawResponse: _response.rawResponse,
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
_getAuthorizationHeader() {
|
|
442
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
443
|
+
return `Bearer ${yield core.Supplier.get(this._options.token)}`;
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
exports.Webhooks = Webhooks;
|
|
@@ -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,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as UnlimitedMessagingApi from "../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* url: "url",
|
|
9
|
+
* eventTypes: ["message.received"]
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface WebhookEndpointCreateRequest {
|
|
13
|
+
url: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
eventTypes: UnlimitedMessagingApi.WebhookEndpointCreateRequestEventTypesItem[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as UnlimitedMessagingApi from "../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {}
|
|
8
|
+
*/
|
|
9
|
+
export interface WebhookEndpointUpdateRequest {
|
|
10
|
+
url?: string;
|
|
11
|
+
description?: string | null;
|
|
12
|
+
enabled?: boolean;
|
|
13
|
+
eventTypes?: UnlimitedMessagingApi.WebhookEndpointUpdateRequestEventTypesItem[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { type WebhookEndpointCreateRequest } from "./WebhookEndpointCreateRequest";
|
|
2
|
+
export { type WebhookEndpointFindOneRequest } from "./WebhookEndpointFindOneRequest";
|
|
3
|
+
export { type WebhookEndpointDeleteRequest } from "./WebhookEndpointDeleteRequest";
|
|
4
|
+
export { type WebhookEndpointUpdateRequest } from "./WebhookEndpointUpdateRequest";
|
|
@@ -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,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type WebhookEndpointCreateRequestEventTypesItem = "message.received";
|
|
5
|
+
export declare const WebhookEndpointCreateRequestEventTypesItem: {
|
|
6
|
+
readonly MessageReceived: "message.received";
|
|
7
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.WebhookEndpointCreateRequestEventTypesItem = void 0;
|
|
7
|
+
exports.WebhookEndpointCreateRequestEventTypesItem = {
|
|
8
|
+
MessageReceived: "message.received",
|
|
9
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as UnlimitedMessagingApi from "../../../index";
|
|
5
|
+
export interface WebhookEndpointCreateResponse {
|
|
6
|
+
id: string;
|
|
7
|
+
url: string;
|
|
8
|
+
description: string | null;
|
|
9
|
+
secretPrefix: string;
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
eventTypes: UnlimitedMessagingApi.WebhookEndpointCreateResponseEventTypesItem[];
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
updatedAt: Date;
|
|
14
|
+
secret: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type WebhookEndpointCreateResponseEventTypesItem = "message.received";
|
|
5
|
+
export declare const WebhookEndpointCreateResponseEventTypesItem: {
|
|
6
|
+
readonly MessageReceived: "message.received";
|
|
7
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.WebhookEndpointCreateResponseEventTypesItem = void 0;
|
|
7
|
+
exports.WebhookEndpointCreateResponseEventTypesItem = {
|
|
8
|
+
MessageReceived: "message.received",
|
|
9
|
+
};
|