@sinch/conversation 0.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/README.md +133 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +18 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/v1/agent/agent.d.ts +11 -0
- package/dist/models/v1/agent/agent.js +3 -0
- package/dist/models/v1/agent/agent.js.map +1 -0
- package/dist/models/v1/agent/index.d.ts +1 -0
- package/dist/models/v1/agent/index.js +3 -0
- package/dist/models/v1/agent/index.js.map +1 -0
- package/dist/models/v1/agent-joined-event/agent-joined-event.d.ts +9 -0
- package/dist/models/v1/agent-joined-event/agent-joined-event.js +3 -0
- package/dist/models/v1/agent-joined-event/agent-joined-event.js.map +1 -0
- package/dist/models/v1/agent-joined-event/index.d.ts +1 -0
- package/dist/models/v1/agent-joined-event/index.js +3 -0
- package/dist/models/v1/agent-joined-event/index.js.map +1 -0
- package/dist/models/v1/agent-left-event/agent-left-event.d.ts +9 -0
- package/dist/models/v1/agent-left-event/agent-left-event.js +3 -0
- package/dist/models/v1/agent-left-event/agent-left-event.js.map +1 -0
- package/dist/models/v1/agent-left-event/index.d.ts +1 -0
- package/dist/models/v1/agent-left-event/index.js +3 -0
- package/dist/models/v1/agent-left-event/index.js.map +1 -0
- package/dist/models/v1/app-create-request/app-create-request.d.ts +33 -0
- package/dist/models/v1/app-create-request/app-create-request.js +3 -0
- package/dist/models/v1/app-create-request/app-create-request.js.map +1 -0
- package/dist/models/v1/app-create-request/index.d.ts +1 -0
- package/dist/models/v1/app-create-request/index.js +3 -0
- package/dist/models/v1/app-create-request/index.js.map +1 -0
- package/dist/models/v1/app-event/app-event.d.ts +10 -0
- package/dist/models/v1/app-event/app-event.js +3 -0
- package/dist/models/v1/app-event/app-event.js.map +1 -0
- package/dist/models/v1/app-event/index.d.ts +1 -0
- package/dist/models/v1/app-event/index.js +3 -0
- package/dist/models/v1/app-event/index.js.map +1 -0
- package/dist/models/v1/app-message/app-message.d.ts +69 -0
- package/dist/models/v1/app-message/app-message.js +3 -0
- package/dist/models/v1/app-message/app-message.js.map +1 -0
- package/dist/models/v1/app-message/index.d.ts +1 -0
- package/dist/models/v1/app-message/index.js +3 -0
- package/dist/models/v1/app-message/index.js.map +1 -0
- package/dist/models/v1/app-message-message/app-message-message.d.ts +11 -0
- package/dist/models/v1/app-message-message/app-message-message.js +3 -0
- package/dist/models/v1/app-message-message/app-message-message.js.map +1 -0
- package/dist/models/v1/app-message-message/index.d.ts +1 -0
- package/dist/models/v1/app-message-message/index.js +3 -0
- package/dist/models/v1/app-message-message/index.js.map +1 -0
- package/dist/models/v1/app-response/app-response.d.ts +53 -0
- package/dist/models/v1/app-response/app-response.js +3 -0
- package/dist/models/v1/app-response/app-response.js.map +1 -0
- package/dist/models/v1/app-response/index.d.ts +1 -0
- package/dist/models/v1/app-response/index.js +3 -0
- package/dist/models/v1/app-response/index.js.map +1 -0
- package/dist/models/v1/app-update-request/app-update-request.d.ts +33 -0
- package/dist/models/v1/app-update-request/app-update-request.js +3 -0
- package/dist/models/v1/app-update-request/app-update-request.js.map +1 -0
- package/dist/models/v1/app-update-request/index.d.ts +1 -0
- package/dist/models/v1/app-update-request/index.js +3 -0
- package/dist/models/v1/app-update-request/index.js.map +1 -0
- package/dist/models/v1/call-message/call-message.d.ts +9 -0
- package/dist/models/v1/call-message/call-message.js +3 -0
- package/dist/models/v1/call-message/call-message.js.map +1 -0
- package/dist/models/v1/call-message/index.d.ts +1 -0
- package/dist/models/v1/call-message/index.js +3 -0
- package/dist/models/v1/call-message/index.js.map +1 -0
- package/dist/models/v1/callback-settings/callback-settings.d.ts +7 -0
- package/dist/models/v1/callback-settings/callback-settings.js +3 -0
- package/dist/models/v1/callback-settings/callback-settings.js.map +1 -0
- package/dist/models/v1/callback-settings/index.d.ts +1 -0
- package/dist/models/v1/callback-settings/index.js +3 -0
- package/dist/models/v1/callback-settings/index.js.map +1 -0
- package/dist/models/v1/card-message/card-message.d.ts +22 -0
- package/dist/models/v1/card-message/card-message.js +3 -0
- package/dist/models/v1/card-message/card-message.js.map +1 -0
- package/dist/models/v1/card-message/index.d.ts +1 -0
- package/dist/models/v1/card-message/index.js +3 -0
- package/dist/models/v1/card-message/index.js.map +1 -0
- package/dist/models/v1/carousel-message/carousel-message.d.ts +15 -0
- package/dist/models/v1/carousel-message/carousel-message.js +3 -0
- package/dist/models/v1/carousel-message/carousel-message.js.map +1 -0
- package/dist/models/v1/carousel-message/index.d.ts +1 -0
- package/dist/models/v1/carousel-message/index.js +3 -0
- package/dist/models/v1/carousel-message/index.js.map +1 -0
- package/dist/models/v1/channel-identity/channel-identity.d.ts +12 -0
- package/dist/models/v1/channel-identity/channel-identity.js +3 -0
- package/dist/models/v1/channel-identity/channel-identity.js.map +1 -0
- package/dist/models/v1/channel-identity/index.d.ts +1 -0
- package/dist/models/v1/channel-identity/index.js +3 -0
- package/dist/models/v1/channel-identity/index.js.map +1 -0
- package/dist/models/v1/channel-recipient-identity/channel-recipient-identity.d.ts +7 -0
- package/dist/models/v1/channel-recipient-identity/channel-recipient-identity.js +3 -0
- package/dist/models/v1/channel-recipient-identity/channel-recipient-identity.js.map +1 -0
- package/dist/models/v1/channel-recipient-identity/index.d.ts +1 -0
- package/dist/models/v1/channel-recipient-identity/index.js +3 -0
- package/dist/models/v1/channel-recipient-identity/index.js.map +1 -0
- package/dist/models/v1/channel-template-override/channel-template-override.d.ts +10 -0
- package/dist/models/v1/channel-template-override/channel-template-override.js +3 -0
- package/dist/models/v1/channel-template-override/channel-template-override.js.map +1 -0
- package/dist/models/v1/channel-template-override/index.d.ts +1 -0
- package/dist/models/v1/channel-template-override/index.js +3 -0
- package/dist/models/v1/channel-template-override/index.js.map +1 -0
- package/dist/models/v1/channel-template-reference/channel-template-reference.d.ts +9 -0
- package/dist/models/v1/channel-template-reference/channel-template-reference.js +3 -0
- package/dist/models/v1/channel-template-reference/channel-template-reference.js.map +1 -0
- package/dist/models/v1/channel-template-reference/index.d.ts +1 -0
- package/dist/models/v1/channel-template-reference/index.js +3 -0
- package/dist/models/v1/channel-template-reference/index.js.map +1 -0
- package/dist/models/v1/choice/choice.d.ts +28 -0
- package/dist/models/v1/choice/choice.js +3 -0
- package/dist/models/v1/choice/choice.js.map +1 -0
- package/dist/models/v1/choice/index.d.ts +1 -0
- package/dist/models/v1/choice/index.js +3 -0
- package/dist/models/v1/choice/index.js.map +1 -0
- package/dist/models/v1/choice-item/choice-item.d.ts +14 -0
- package/dist/models/v1/choice-item/choice-item.js +3 -0
- package/dist/models/v1/choice-item/choice-item.js.map +1 -0
- package/dist/models/v1/choice-item/index.d.ts +1 -0
- package/dist/models/v1/choice-item/index.js +3 -0
- package/dist/models/v1/choice-item/index.js.map +1 -0
- package/dist/models/v1/choice-message/choice-message.d.ts +15 -0
- package/dist/models/v1/choice-message/choice-message.js +3 -0
- package/dist/models/v1/choice-message/choice-message.js.map +1 -0
- package/dist/models/v1/choice-message/index.d.ts +1 -0
- package/dist/models/v1/choice-message/index.js +3 -0
- package/dist/models/v1/choice-message/index.js.map +1 -0
- package/dist/models/v1/choice-response-message/choice-response-message.d.ts +9 -0
- package/dist/models/v1/choice-response-message/choice-response-message.js +3 -0
- package/dist/models/v1/choice-response-message/choice-response-message.js.map +1 -0
- package/dist/models/v1/choice-response-message/index.d.ts +1 -0
- package/dist/models/v1/choice-response-message/index.js +3 -0
- package/dist/models/v1/choice-response-message/index.js.map +1 -0
- package/dist/models/v1/client-credentials/client-credentials.d.ts +11 -0
- package/dist/models/v1/client-credentials/client-credentials.js +3 -0
- package/dist/models/v1/client-credentials/client-credentials.js.map +1 -0
- package/dist/models/v1/client-credentials/index.d.ts +1 -0
- package/dist/models/v1/client-credentials/index.js +3 -0
- package/dist/models/v1/client-credentials/index.js.map +1 -0
- package/dist/models/v1/comment-event/comment-event.d.ts +19 -0
- package/dist/models/v1/comment-event/comment-event.js +3 -0
- package/dist/models/v1/comment-event/comment-event.js.map +1 -0
- package/dist/models/v1/comment-event/index.d.ts +1 -0
- package/dist/models/v1/comment-event/index.js +3 -0
- package/dist/models/v1/comment-event/index.js.map +1 -0
- package/dist/models/v1/comment-reply-event/comment-reply-event.d.ts +8 -0
- package/dist/models/v1/comment-reply-event/comment-reply-event.js +3 -0
- package/dist/models/v1/comment-reply-event/comment-reply-event.js.map +1 -0
- package/dist/models/v1/comment-reply-event/index.d.ts +1 -0
- package/dist/models/v1/comment-reply-event/index.js +3 -0
- package/dist/models/v1/comment-reply-event/index.js.map +1 -0
- package/dist/models/v1/composing-end-event/composing-end-event.d.ts +4 -0
- package/dist/models/v1/composing-end-event/composing-end-event.js +3 -0
- package/dist/models/v1/composing-end-event/composing-end-event.js.map +1 -0
- package/dist/models/v1/composing-end-event/index.d.ts +1 -0
- package/dist/models/v1/composing-end-event/index.js +3 -0
- package/dist/models/v1/composing-end-event/index.js.map +1 -0
- package/dist/models/v1/composing-event/composing-event.d.ts +4 -0
- package/dist/models/v1/composing-event/composing-event.js +3 -0
- package/dist/models/v1/composing-event/composing-event.js.map +1 -0
- package/dist/models/v1/composing-event/index.d.ts +1 -0
- package/dist/models/v1/composing-event/index.js +3 -0
- package/dist/models/v1/composing-event/index.js.map +1 -0
- package/dist/models/v1/contact/contact.d.ts +24 -0
- package/dist/models/v1/contact/contact.js +3 -0
- package/dist/models/v1/contact/contact.js.map +1 -0
- package/dist/models/v1/contact/index.d.ts +1 -0
- package/dist/models/v1/contact/index.js +3 -0
- package/dist/models/v1/contact/index.js.map +1 -0
- package/dist/models/v1/contact-create-request/contact-create-request.d.ts +22 -0
- package/dist/models/v1/contact-create-request/contact-create-request.js +3 -0
- package/dist/models/v1/contact-create-request/contact-create-request.js.map +1 -0
- package/dist/models/v1/contact-create-request/index.d.ts +1 -0
- package/dist/models/v1/contact-create-request/index.js +3 -0
- package/dist/models/v1/contact-create-request/index.js.map +1 -0
- package/dist/models/v1/contact-event/contact-event.d.ts +7 -0
- package/dist/models/v1/contact-event/contact-event.js +3 -0
- package/dist/models/v1/contact-event/contact-event.js.map +1 -0
- package/dist/models/v1/contact-event/index.d.ts +1 -0
- package/dist/models/v1/contact-event/index.js +3 -0
- package/dist/models/v1/contact-event/index.js.map +1 -0
- package/dist/models/v1/contact-id/contact-id.d.ts +4 -0
- package/dist/models/v1/contact-id/contact-id.js +3 -0
- package/dist/models/v1/contact-id/contact-id.js.map +1 -0
- package/dist/models/v1/contact-id/index.d.ts +1 -0
- package/dist/models/v1/contact-id/index.js +3 -0
- package/dist/models/v1/contact-id/index.js.map +1 -0
- package/dist/models/v1/contact-info-message/contact-info-message.d.ts +95 -0
- package/dist/models/v1/contact-info-message/contact-info-message.js +3 -0
- package/dist/models/v1/contact-info-message/contact-info-message.js.map +1 -0
- package/dist/models/v1/contact-info-message/index.d.ts +1 -0
- package/dist/models/v1/contact-info-message/index.js +3 -0
- package/dist/models/v1/contact-info-message/index.js.map +1 -0
- package/dist/models/v1/contact-language/contact-language.d.ts +1 -0
- package/dist/models/v1/contact-language/contact-language.js +3 -0
- package/dist/models/v1/contact-language/contact-language.js.map +1 -0
- package/dist/models/v1/contact-language/index.d.ts +1 -0
- package/dist/models/v1/contact-language/index.js +18 -0
- package/dist/models/v1/contact-language/index.js.map +1 -0
- package/dist/models/v1/contact-message/contact-message.d.ts +40 -0
- package/dist/models/v1/contact-message/contact-message.js +3 -0
- package/dist/models/v1/contact-message/contact-message.js.map +1 -0
- package/dist/models/v1/contact-message/index.d.ts +1 -0
- package/dist/models/v1/contact-message/index.js +3 -0
- package/dist/models/v1/contact-message/index.js.map +1 -0
- package/dist/models/v1/contact-message-event/contact-message-event.d.ts +20 -0
- package/dist/models/v1/contact-message-event/contact-message-event.js +3 -0
- package/dist/models/v1/contact-message-event/contact-message-event.js.map +1 -0
- package/dist/models/v1/contact-message-event/index.d.ts +1 -0
- package/dist/models/v1/contact-message-event/index.js +3 -0
- package/dist/models/v1/contact-message-event/index.js.map +1 -0
- package/dist/models/v1/conversation/conversation.d.ts +29 -0
- package/dist/models/v1/conversation/conversation.js +3 -0
- package/dist/models/v1/conversation/conversation.js.map +1 -0
- package/dist/models/v1/conversation/index.d.ts +1 -0
- package/dist/models/v1/conversation/index.js +3 -0
- package/dist/models/v1/conversation/index.js.map +1 -0
- package/dist/models/v1/conversation-channel/conversation-channel.d.ts +5 -0
- package/dist/models/v1/conversation-channel/conversation-channel.js +3 -0
- package/dist/models/v1/conversation-channel/conversation-channel.js.map +1 -0
- package/dist/models/v1/conversation-channel/index.d.ts +1 -0
- package/dist/models/v1/conversation-channel/index.js +3 -0
- package/dist/models/v1/conversation-channel/index.js.map +1 -0
- package/dist/models/v1/conversation-channel-credential/conversation-channel-credential.d.ts +140 -0
- package/dist/models/v1/conversation-channel-credential/conversation-channel-credential.js +3 -0
- package/dist/models/v1/conversation-channel-credential/conversation-channel-credential.js.map +1 -0
- package/dist/models/v1/conversation-channel-credential/index.d.ts +1 -0
- package/dist/models/v1/conversation-channel-credential/index.js +3 -0
- package/dist/models/v1/conversation-channel-credential/index.js.map +1 -0
- package/dist/models/v1/conversation-deleted-event/conversation-deleted-event.d.ts +4 -0
- package/dist/models/v1/conversation-deleted-event/conversation-deleted-event.js +3 -0
- package/dist/models/v1/conversation-deleted-event/conversation-deleted-event.js.map +1 -0
- package/dist/models/v1/conversation-deleted-event/index.d.ts +1 -0
- package/dist/models/v1/conversation-deleted-event/index.js +3 -0
- package/dist/models/v1/conversation-deleted-event/index.js.map +1 -0
- package/dist/models/v1/conversation-event/conversation-event.d.ts +35 -0
- package/dist/models/v1/conversation-event/conversation-event.js +3 -0
- package/dist/models/v1/conversation-event/conversation-event.js.map +1 -0
- package/dist/models/v1/conversation-event/index.d.ts +1 -0
- package/dist/models/v1/conversation-event/index.js +3 -0
- package/dist/models/v1/conversation-event/index.js.map +1 -0
- package/dist/models/v1/conversation-message/conversation-message.d.ts +50 -0
- package/dist/models/v1/conversation-message/conversation-message.js +3 -0
- package/dist/models/v1/conversation-message/conversation-message.js.map +1 -0
- package/dist/models/v1/conversation-message/index.d.ts +1 -0
- package/dist/models/v1/conversation-message/index.js +3 -0
- package/dist/models/v1/conversation-message/index.js.map +1 -0
- package/dist/models/v1/conversation-recent-message/conversation-recent-message.d.ts +8 -0
- package/dist/models/v1/conversation-recent-message/conversation-recent-message.js +3 -0
- package/dist/models/v1/conversation-recent-message/conversation-recent-message.js.map +1 -0
- package/dist/models/v1/conversation-recent-message/index.d.ts +1 -0
- package/dist/models/v1/conversation-recent-message/index.js +3 -0
- package/dist/models/v1/conversation-recent-message/index.js.map +1 -0
- package/dist/models/v1/coordinates/coordinates.d.ts +6 -0
- package/dist/models/v1/coordinates/coordinates.js +3 -0
- package/dist/models/v1/coordinates/coordinates.js.map +1 -0
- package/dist/models/v1/coordinates/index.d.ts +1 -0
- package/dist/models/v1/coordinates/index.js +3 -0
- package/dist/models/v1/coordinates/index.js.map +1 -0
- package/dist/models/v1/create-conversation-request/create-conversation-request.d.ts +18 -0
- package/dist/models/v1/create-conversation-request/create-conversation-request.js +3 -0
- package/dist/models/v1/create-conversation-request/create-conversation-request.js.map +1 -0
- package/dist/models/v1/create-conversation-request/index.d.ts +1 -0
- package/dist/models/v1/create-conversation-request/index.js +3 -0
- package/dist/models/v1/create-conversation-request/index.js.map +1 -0
- package/dist/models/v1/delivery-report-based-fallback/delivery-report-based-fallback.d.ts +9 -0
- package/dist/models/v1/delivery-report-based-fallback/delivery-report-based-fallback.js +3 -0
- package/dist/models/v1/delivery-report-based-fallback/delivery-report-based-fallback.js.map +1 -0
- package/dist/models/v1/delivery-report-based-fallback/index.d.ts +1 -0
- package/dist/models/v1/delivery-report-based-fallback/index.js +3 -0
- package/dist/models/v1/delivery-report-based-fallback/index.js.map +1 -0
- package/dist/models/v1/dispatch-retention-policy/dispatch-retention-policy.d.ts +10 -0
- package/dist/models/v1/dispatch-retention-policy/dispatch-retention-policy.js +3 -0
- package/dist/models/v1/dispatch-retention-policy/dispatch-retention-policy.js.map +1 -0
- package/dist/models/v1/dispatch-retention-policy/index.d.ts +1 -0
- package/dist/models/v1/dispatch-retention-policy/index.js +3 -0
- package/dist/models/v1/dispatch-retention-policy/index.js.map +1 -0
- package/dist/models/v1/enums.d.ts +23 -0
- package/dist/models/v1/enums.js +3 -0
- package/dist/models/v1/enums.js.map +1 -0
- package/dist/models/v1/error-detail/error-detail.d.ts +4 -0
- package/dist/models/v1/error-detail/error-detail.js +3 -0
- package/dist/models/v1/error-detail/error-detail.js.map +1 -0
- package/dist/models/v1/error-detail/index.d.ts +1 -0
- package/dist/models/v1/error-detail/index.js +3 -0
- package/dist/models/v1/error-detail/index.js.map +1 -0
- package/dist/models/v1/fallback-message/fallback-message.d.ts +10 -0
- package/dist/models/v1/fallback-message/fallback-message.js +3 -0
- package/dist/models/v1/fallback-message/fallback-message.js.map +1 -0
- package/dist/models/v1/fallback-message/index.d.ts +1 -0
- package/dist/models/v1/fallback-message/index.js +3 -0
- package/dist/models/v1/fallback-message/index.js.map +1 -0
- package/dist/models/v1/generic-event/generic-event.d.ts +8 -0
- package/dist/models/v1/generic-event/generic-event.js +3 -0
- package/dist/models/v1/generic-event/generic-event.js.map +1 -0
- package/dist/models/v1/generic-event/index.d.ts +1 -0
- package/dist/models/v1/generic-event/index.js +3 -0
- package/dist/models/v1/generic-event/index.js.map +1 -0
- package/dist/models/v1/get-channel-profile-request/get-channel-profile-request.d.ts +10 -0
- package/dist/models/v1/get-channel-profile-request/get-channel-profile-request.js +3 -0
- package/dist/models/v1/get-channel-profile-request/get-channel-profile-request.js.map +1 -0
- package/dist/models/v1/get-channel-profile-request/index.d.ts +1 -0
- package/dist/models/v1/get-channel-profile-request/index.js +3 -0
- package/dist/models/v1/get-channel-profile-request/index.js.map +1 -0
- package/dist/models/v1/get-channel-profile-response/get-channel-profile-response.d.ts +4 -0
- package/dist/models/v1/get-channel-profile-response/get-channel-profile-response.js +3 -0
- package/dist/models/v1/get-channel-profile-response/get-channel-profile-response.js.map +1 -0
- package/dist/models/v1/get-channel-profile-response/index.d.ts +1 -0
- package/dist/models/v1/get-channel-profile-response/index.js +3 -0
- package/dist/models/v1/get-channel-profile-response/index.js.map +1 -0
- package/dist/models/v1/helper.d.ts +79 -0
- package/dist/models/v1/helper.js +163 -0
- package/dist/models/v1/helper.js.map +1 -0
- package/dist/models/v1/identified-by/identified-by.d.ts +10 -0
- package/dist/models/v1/identified-by/identified-by.js +3 -0
- package/dist/models/v1/identified-by/identified-by.js.map +1 -0
- package/dist/models/v1/identified-by/index.d.ts +1 -0
- package/dist/models/v1/identified-by/index.js +3 -0
- package/dist/models/v1/identified-by/index.js.map +1 -0
- package/dist/models/v1/index.d.ts +101 -0
- package/dist/models/v1/index.js +118 -0
- package/dist/models/v1/index.js.map +1 -0
- package/dist/models/v1/inject-conversation-event-request/index.d.ts +1 -0
- package/dist/models/v1/inject-conversation-event-request/index.js +3 -0
- package/dist/models/v1/inject-conversation-event-request/index.js.map +1 -0
- package/dist/models/v1/inject-conversation-event-request/inject-conversation-event-request.d.ts +29 -0
- package/dist/models/v1/inject-conversation-event-request/inject-conversation-event-request.js +3 -0
- package/dist/models/v1/inject-conversation-event-request/inject-conversation-event-request.js.map +1 -0
- package/dist/models/v1/inject-event-response/index.d.ts +1 -0
- package/dist/models/v1/inject-event-response/index.js +3 -0
- package/dist/models/v1/inject-event-response/index.js.map +1 -0
- package/dist/models/v1/inject-event-response/inject-event-response.d.ts +6 -0
- package/dist/models/v1/inject-event-response/inject-event-response.js +3 -0
- package/dist/models/v1/inject-event-response/inject-event-response.js.map +1 -0
- package/dist/models/v1/inject-message-request/index.d.ts +1 -0
- package/dist/models/v1/inject-message-request/index.js +3 -0
- package/dist/models/v1/inject-message-request/index.js.map +1 -0
- package/dist/models/v1/inject-message-request/inject-message-request.d.ts +37 -0
- package/dist/models/v1/inject-message-request/inject-message-request.js +3 -0
- package/dist/models/v1/inject-message-request/inject-message-request.js.map +1 -0
- package/dist/models/v1/list-apps-response/index.d.ts +1 -0
- package/dist/models/v1/list-apps-response/index.js +3 -0
- package/dist/models/v1/list-apps-response/index.js.map +1 -0
- package/dist/models/v1/list-apps-response/list-apps-response.d.ts +5 -0
- package/dist/models/v1/list-apps-response/list-apps-response.js +3 -0
- package/dist/models/v1/list-apps-response/list-apps-response.js.map +1 -0
- package/dist/models/v1/list-message/index.d.ts +1 -0
- package/dist/models/v1/list-message/index.js +3 -0
- package/dist/models/v1/list-message/index.js.map +1 -0
- package/dist/models/v1/list-message/list-message.d.ts +19 -0
- package/dist/models/v1/list-message/list-message.js +3 -0
- package/dist/models/v1/list-message/list-message.js.map +1 -0
- package/dist/models/v1/list-message-message-properties/index.d.ts +1 -0
- package/dist/models/v1/list-message-message-properties/index.js +3 -0
- package/dist/models/v1/list-message-message-properties/index.js.map +1 -0
- package/dist/models/v1/list-message-message-properties/list-message-message-properties.d.ts +9 -0
- package/dist/models/v1/list-message-message-properties/list-message-message-properties.js +3 -0
- package/dist/models/v1/list-message-message-properties/list-message-message-properties.js.map +1 -0
- package/dist/models/v1/list-section/index.d.ts +1 -0
- package/dist/models/v1/list-section/index.js +3 -0
- package/dist/models/v1/list-section/index.js.map +1 -0
- package/dist/models/v1/list-section/list-section.d.ts +11 -0
- package/dist/models/v1/list-section/list-section.js +3 -0
- package/dist/models/v1/list-section/list-section.js.map +1 -0
- package/dist/models/v1/list-webhooks-response/index.d.ts +1 -0
- package/dist/models/v1/list-webhooks-response/index.js +3 -0
- package/dist/models/v1/list-webhooks-response/index.js.map +1 -0
- package/dist/models/v1/list-webhooks-response/list-webhooks-response.d.ts +5 -0
- package/dist/models/v1/list-webhooks-response/list-webhooks-response.js +3 -0
- package/dist/models/v1/list-webhooks-response/list-webhooks-response.js.map +1 -0
- package/dist/models/v1/location-message/index.d.ts +1 -0
- package/dist/models/v1/location-message/index.js +3 -0
- package/dist/models/v1/location-message/index.js.map +1 -0
- package/dist/models/v1/location-message/location-message.d.ts +16 -0
- package/dist/models/v1/location-message/location-message.js +3 -0
- package/dist/models/v1/location-message/location-message.js.map +1 -0
- package/dist/models/v1/lookup-capability/index.d.ts +1 -0
- package/dist/models/v1/lookup-capability/index.js +3 -0
- package/dist/models/v1/lookup-capability/index.js.map +1 -0
- package/dist/models/v1/lookup-capability/lookup-capability.d.ts +9 -0
- package/dist/models/v1/lookup-capability/lookup-capability.js +3 -0
- package/dist/models/v1/lookup-capability/lookup-capability.js.map +1 -0
- package/dist/models/v1/media-card-message/index.d.ts +1 -0
- package/dist/models/v1/media-card-message/index.js +3 -0
- package/dist/models/v1/media-card-message/index.js.map +1 -0
- package/dist/models/v1/media-card-message/media-card-message.d.ts +9 -0
- package/dist/models/v1/media-card-message/media-card-message.js +3 -0
- package/dist/models/v1/media-card-message/media-card-message.js.map +1 -0
- package/dist/models/v1/media-carousel-message/index.d.ts +1 -0
- package/dist/models/v1/media-carousel-message/index.js +3 -0
- package/dist/models/v1/media-carousel-message/index.js.map +1 -0
- package/dist/models/v1/media-carousel-message/media-carousel-message.d.ts +7 -0
- package/dist/models/v1/media-carousel-message/media-carousel-message.js +3 -0
- package/dist/models/v1/media-carousel-message/media-carousel-message.js.map +1 -0
- package/dist/models/v1/media-message/index.d.ts +1 -0
- package/dist/models/v1/media-message/index.js +3 -0
- package/dist/models/v1/media-message/index.js.map +1 -0
- package/dist/models/v1/media-message/media-message.d.ts +15 -0
- package/dist/models/v1/media-message/media-message.js +3 -0
- package/dist/models/v1/media-message/media-message.js.map +1 -0
- package/dist/models/v1/merge-contact-request/index.d.ts +1 -0
- package/dist/models/v1/merge-contact-request/index.js +3 -0
- package/dist/models/v1/merge-contact-request/index.js.map +1 -0
- package/dist/models/v1/merge-contact-request/merge-contact-request.d.ts +7 -0
- package/dist/models/v1/merge-contact-request/merge-contact-request.js +3 -0
- package/dist/models/v1/merge-contact-request/merge-contact-request.js.map +1 -0
- package/dist/models/v1/message-retry-settings/index.d.ts +1 -0
- package/dist/models/v1/message-retry-settings/index.js +3 -0
- package/dist/models/v1/message-retry-settings/index.js.map +1 -0
- package/dist/models/v1/message-retry-settings/message-retry-settings.d.ts +12 -0
- package/dist/models/v1/message-retry-settings/message-retry-settings.js +3 -0
- package/dist/models/v1/message-retry-settings/message-retry-settings.js.map +1 -0
- package/dist/models/v1/mod-callback-events/capability-event/capability-event.d.ts +40 -0
- package/dist/models/v1/mod-callback-events/capability-event/capability-event.js +3 -0
- package/dist/models/v1/mod-callback-events/capability-event/capability-event.js.map +1 -0
- package/dist/models/v1/mod-callback-events/capability-event/index.d.ts +1 -0
- package/dist/models/v1/mod-callback-events/capability-event/index.js +3 -0
- package/dist/models/v1/mod-callback-events/capability-event/index.js.map +1 -0
- package/dist/models/v1/mod-callback-events/channel-event/channel-event.d.ts +34 -0
- package/dist/models/v1/mod-callback-events/channel-event/channel-event.js +3 -0
- package/dist/models/v1/mod-callback-events/channel-event/channel-event.js.map +1 -0
- package/dist/models/v1/mod-callback-events/channel-event/index.d.ts +1 -0
- package/dist/models/v1/mod-callback-events/channel-event/index.js +3 -0
- package/dist/models/v1/mod-callback-events/channel-event/index.js.map +1 -0
- package/dist/models/v1/mod-callback-events/contact-create-event/contact-create-event.d.ts +23 -0
- package/dist/models/v1/mod-callback-events/contact-create-event/contact-create-event.js +3 -0
- package/dist/models/v1/mod-callback-events/contact-create-event/contact-create-event.js.map +1 -0
- package/dist/models/v1/mod-callback-events/contact-create-event/index.d.ts +1 -0
- package/dist/models/v1/mod-callback-events/contact-create-event/index.js +3 -0
- package/dist/models/v1/mod-callback-events/contact-create-event/index.js.map +1 -0
- package/dist/models/v1/mod-callback-events/contact-delete-event/contact-delete-event.d.ts +23 -0
- package/dist/models/v1/mod-callback-events/contact-delete-event/contact-delete-event.js +3 -0
- package/dist/models/v1/mod-callback-events/contact-delete-event/contact-delete-event.js.map +1 -0
- package/dist/models/v1/mod-callback-events/contact-delete-event/index.d.ts +1 -0
- package/dist/models/v1/mod-callback-events/contact-delete-event/index.js +3 -0
- package/dist/models/v1/mod-callback-events/contact-delete-event/index.js.map +1 -0
- package/dist/models/v1/mod-callback-events/contact-identities-duplication-event/contact-identities-duplication-event.d.ts +33 -0
- package/dist/models/v1/mod-callback-events/contact-identities-duplication-event/contact-identities-duplication-event.js +3 -0
- package/dist/models/v1/mod-callback-events/contact-identities-duplication-event/contact-identities-duplication-event.js.map +1 -0
- package/dist/models/v1/mod-callback-events/contact-identities-duplication-event/index.d.ts +1 -0
- package/dist/models/v1/mod-callback-events/contact-identities-duplication-event/index.js +3 -0
- package/dist/models/v1/mod-callback-events/contact-identities-duplication-event/index.js.map +1 -0
- package/dist/models/v1/mod-callback-events/contact-merge-event/contact-merge-event.d.ts +29 -0
- package/dist/models/v1/mod-callback-events/contact-merge-event/contact-merge-event.js +3 -0
- package/dist/models/v1/mod-callback-events/contact-merge-event/contact-merge-event.js.map +1 -0
- package/dist/models/v1/mod-callback-events/contact-merge-event/index.d.ts +1 -0
- package/dist/models/v1/mod-callback-events/contact-merge-event/index.js +3 -0
- package/dist/models/v1/mod-callback-events/contact-merge-event/index.js.map +1 -0
- package/dist/models/v1/mod-callback-events/contact-notification/contact-notification.d.ts +5 -0
- package/dist/models/v1/mod-callback-events/contact-notification/contact-notification.js +3 -0
- package/dist/models/v1/mod-callback-events/contact-notification/contact-notification.js.map +1 -0
- package/dist/models/v1/mod-callback-events/contact-notification/index.d.ts +1 -0
- package/dist/models/v1/mod-callback-events/contact-notification/index.js +3 -0
- package/dist/models/v1/mod-callback-events/contact-notification/index.js.map +1 -0
- package/dist/models/v1/mod-callback-events/contact-update-event/contact-update-event.d.ts +23 -0
- package/dist/models/v1/mod-callback-events/contact-update-event/contact-update-event.js +3 -0
- package/dist/models/v1/mod-callback-events/contact-update-event/contact-update-event.js.map +1 -0
- package/dist/models/v1/mod-callback-events/contact-update-event/index.d.ts +1 -0
- package/dist/models/v1/mod-callback-events/contact-update-event/index.js +3 -0
- package/dist/models/v1/mod-callback-events/contact-update-event/index.js.map +1 -0
- package/dist/models/v1/mod-callback-events/conversation-callback-event/conversation-callback-event.d.ts +4 -0
- package/dist/models/v1/mod-callback-events/conversation-callback-event/conversation-callback-event.js +3 -0
- package/dist/models/v1/mod-callback-events/conversation-callback-event/conversation-callback-event.js.map +1 -0
- package/dist/models/v1/mod-callback-events/conversation-callback-event/index.d.ts +1 -0
- package/dist/models/v1/mod-callback-events/conversation-callback-event/index.js +3 -0
- package/dist/models/v1/mod-callback-events/conversation-callback-event/index.js.map +1 -0
- package/dist/models/v1/mod-callback-events/conversation-delete-event/conversation-delete-event.d.ts +30 -0
- package/dist/models/v1/mod-callback-events/conversation-delete-event/conversation-delete-event.js +3 -0
- package/dist/models/v1/mod-callback-events/conversation-delete-event/conversation-delete-event.js.map +1 -0
- package/dist/models/v1/mod-callback-events/conversation-delete-event/index.d.ts +1 -0
- package/dist/models/v1/mod-callback-events/conversation-delete-event/index.js +3 -0
- package/dist/models/v1/mod-callback-events/conversation-delete-event/index.js.map +1 -0
- package/dist/models/v1/mod-callback-events/conversation-start-event/conversation-start-event.d.ts +30 -0
- package/dist/models/v1/mod-callback-events/conversation-start-event/conversation-start-event.js +3 -0
- package/dist/models/v1/mod-callback-events/conversation-start-event/conversation-start-event.js.map +1 -0
- package/dist/models/v1/mod-callback-events/conversation-start-event/index.d.ts +1 -0
- package/dist/models/v1/mod-callback-events/conversation-start-event/index.js +3 -0
- package/dist/models/v1/mod-callback-events/conversation-start-event/index.js.map +1 -0
- package/dist/models/v1/mod-callback-events/conversation-stop-event/conversation-stop-event.d.ts +30 -0
- package/dist/models/v1/mod-callback-events/conversation-stop-event/conversation-stop-event.js +3 -0
- package/dist/models/v1/mod-callback-events/conversation-stop-event/conversation-stop-event.js.map +1 -0
- package/dist/models/v1/mod-callback-events/conversation-stop-event/index.d.ts +1 -0
- package/dist/models/v1/mod-callback-events/conversation-stop-event/index.js +3 -0
- package/dist/models/v1/mod-callback-events/conversation-stop-event/index.js.map +1 -0
- package/dist/models/v1/mod-callback-events/conversation-webhook-event/conversation-webhook-event.d.ts +22 -0
- package/dist/models/v1/mod-callback-events/conversation-webhook-event/conversation-webhook-event.js +3 -0
- package/dist/models/v1/mod-callback-events/conversation-webhook-event/conversation-webhook-event.js.map +1 -0
- package/dist/models/v1/mod-callback-events/conversation-webhook-event/index.d.ts +1 -0
- package/dist/models/v1/mod-callback-events/conversation-webhook-event/index.js +3 -0
- package/dist/models/v1/mod-callback-events/conversation-webhook-event/index.js.map +1 -0
- package/dist/models/v1/mod-callback-events/event-delivery/event-delivery.d.ts +38 -0
- package/dist/models/v1/mod-callback-events/event-delivery/event-delivery.js +3 -0
- package/dist/models/v1/mod-callback-events/event-delivery/event-delivery.js.map +1 -0
- package/dist/models/v1/mod-callback-events/event-delivery/index.d.ts +1 -0
- package/dist/models/v1/mod-callback-events/event-delivery/index.js +3 -0
- package/dist/models/v1/mod-callback-events/event-delivery/index.js.map +1 -0
- package/dist/models/v1/mod-callback-events/event-inbound/event-inbound.d.ts +43 -0
- package/dist/models/v1/mod-callback-events/event-inbound/event-inbound.js +3 -0
- package/dist/models/v1/mod-callback-events/event-inbound/event-inbound.js.map +1 -0
- package/dist/models/v1/mod-callback-events/event-inbound/index.d.ts +1 -0
- package/dist/models/v1/mod-callback-events/event-inbound/index.js +3 -0
- package/dist/models/v1/mod-callback-events/event-inbound/index.js.map +1 -0
- package/dist/models/v1/mod-callback-events/index.d.ts +24 -0
- package/dist/models/v1/mod-callback-events/index.js +41 -0
- package/dist/models/v1/mod-callback-events/index.js.map +1 -0
- package/dist/models/v1/mod-callback-events/message-delivery-receipt-event/index.d.ts +1 -0
- package/dist/models/v1/mod-callback-events/message-delivery-receipt-event/index.js +3 -0
- package/dist/models/v1/mod-callback-events/message-delivery-receipt-event/index.js.map +1 -0
- package/dist/models/v1/mod-callback-events/message-delivery-receipt-event/message-delivery-receipt-event.d.ts +43 -0
- package/dist/models/v1/mod-callback-events/message-delivery-receipt-event/message-delivery-receipt-event.js +3 -0
- package/dist/models/v1/mod-callback-events/message-delivery-receipt-event/message-delivery-receipt-event.js.map +1 -0
- package/dist/models/v1/mod-callback-events/message-inbound-event/index.d.ts +1 -0
- package/dist/models/v1/mod-callback-events/message-inbound-event/index.js +3 -0
- package/dist/models/v1/mod-callback-events/message-inbound-event/index.js.map +1 -0
- package/dist/models/v1/mod-callback-events/message-inbound-event/message-inbound-event.d.ts +23 -0
- package/dist/models/v1/mod-callback-events/message-inbound-event/message-inbound-event.js +3 -0
- package/dist/models/v1/mod-callback-events/message-inbound-event/message-inbound-event.js.map +1 -0
- package/dist/models/v1/mod-callback-events/message-inbound-event-item/index.d.ts +1 -0
- package/dist/models/v1/mod-callback-events/message-inbound-event-item/index.js +3 -0
- package/dist/models/v1/mod-callback-events/message-inbound-event-item/index.js.map +1 -0
- package/dist/models/v1/mod-callback-events/message-inbound-event-item/message-inbound-event-item.d.ts +27 -0
- package/dist/models/v1/mod-callback-events/message-inbound-event-item/message-inbound-event-item.js +3 -0
- package/dist/models/v1/mod-callback-events/message-inbound-event-item/message-inbound-event-item.js.map +1 -0
- package/dist/models/v1/mod-callback-events/message-inbound-smart-conversation-redaction-event/index.d.ts +1 -0
- package/dist/models/v1/mod-callback-events/message-inbound-smart-conversation-redaction-event/index.js +3 -0
- package/dist/models/v1/mod-callback-events/message-inbound-smart-conversation-redaction-event/index.js.map +1 -0
- package/dist/models/v1/mod-callback-events/message-inbound-smart-conversation-redaction-event/message-inbound-smart-conversation-redaction-event.d.ts +23 -0
- package/dist/models/v1/mod-callback-events/message-inbound-smart-conversation-redaction-event/message-inbound-smart-conversation-redaction-event.js +3 -0
- package/dist/models/v1/mod-callback-events/message-inbound-smart-conversation-redaction-event/message-inbound-smart-conversation-redaction-event.js.map +1 -0
- package/dist/models/v1/mod-callback-events/message-submit-event/index.d.ts +1 -0
- package/dist/models/v1/mod-callback-events/message-submit-event/index.js +3 -0
- package/dist/models/v1/mod-callback-events/message-submit-event/index.js.map +1 -0
- package/dist/models/v1/mod-callback-events/message-submit-event/message-submit-event.d.ts +41 -0
- package/dist/models/v1/mod-callback-events/message-submit-event/message-submit-event.js +3 -0
- package/dist/models/v1/mod-callback-events/message-submit-event/message-submit-event.js.map +1 -0
- package/dist/models/v1/mod-callback-events/opt-in-event/index.d.ts +1 -0
- package/dist/models/v1/mod-callback-events/opt-in-event/index.js +3 -0
- package/dist/models/v1/mod-callback-events/opt-in-event/index.js.map +1 -0
- package/dist/models/v1/mod-callback-events/opt-in-event/opt-in-event.d.ts +47 -0
- package/dist/models/v1/mod-callback-events/opt-in-event/opt-in-event.js +3 -0
- package/dist/models/v1/mod-callback-events/opt-in-event/opt-in-event.js.map +1 -0
- package/dist/models/v1/mod-callback-events/opt-out-event/index.d.ts +1 -0
- package/dist/models/v1/mod-callback-events/opt-out-event/index.js +3 -0
- package/dist/models/v1/mod-callback-events/opt-out-event/index.js.map +1 -0
- package/dist/models/v1/mod-callback-events/opt-out-event/opt-out-event.d.ts +47 -0
- package/dist/models/v1/mod-callback-events/opt-out-event/opt-out-event.js +3 -0
- package/dist/models/v1/mod-callback-events/opt-out-event/opt-out-event.js.map +1 -0
- package/dist/models/v1/mod-callback-events/record-notification/index.d.ts +1 -0
- package/dist/models/v1/mod-callback-events/record-notification/index.js +3 -0
- package/dist/models/v1/mod-callback-events/record-notification/index.js.map +1 -0
- package/dist/models/v1/mod-callback-events/record-notification/record-notification.d.ts +40 -0
- package/dist/models/v1/mod-callback-events/record-notification/record-notification.js +3 -0
- package/dist/models/v1/mod-callback-events/record-notification/record-notification.js.map +1 -0
- package/dist/models/v1/mod-callback-events/smart-conversations-event/index.d.ts +1 -0
- package/dist/models/v1/mod-callback-events/smart-conversations-event/index.js +3 -0
- package/dist/models/v1/mod-callback-events/smart-conversations-event/index.js.map +1 -0
- package/dist/models/v1/mod-callback-events/smart-conversations-event/smart-conversations-event.d.ts +148 -0
- package/dist/models/v1/mod-callback-events/smart-conversations-event/smart-conversations-event.js +3 -0
- package/dist/models/v1/mod-callback-events/smart-conversations-event/smart-conversations-event.js.map +1 -0
- package/dist/models/v1/mod-callback-events/unsupported-callback-event/index.d.ts +1 -0
- package/dist/models/v1/mod-callback-events/unsupported-callback-event/index.js +3 -0
- package/dist/models/v1/mod-callback-events/unsupported-callback-event/index.js.map +1 -0
- package/dist/models/v1/mod-callback-events/unsupported-callback-event/unsupported-callback-event.d.ts +41 -0
- package/dist/models/v1/mod-callback-events/unsupported-callback-event/unsupported-callback-event.js +3 -0
- package/dist/models/v1/mod-callback-events/unsupported-callback-event/unsupported-callback-event.js.map +1 -0
- package/dist/models/v1/mod-credentials/applebc-credentials/applebc-credentials.d.ts +13 -0
- package/dist/models/v1/mod-credentials/applebc-credentials/applebc-credentials.js +3 -0
- package/dist/models/v1/mod-credentials/applebc-credentials/applebc-credentials.js.map +1 -0
- package/dist/models/v1/mod-credentials/applebc-credentials/index.d.ts +1 -0
- package/dist/models/v1/mod-credentials/applebc-credentials/index.js +3 -0
- package/dist/models/v1/mod-credentials/applebc-credentials/index.js.map +1 -0
- package/dist/models/v1/mod-credentials/basic-auth-credential/basic-auth-credential.d.ts +9 -0
- package/dist/models/v1/mod-credentials/basic-auth-credential/basic-auth-credential.js +3 -0
- package/dist/models/v1/mod-credentials/basic-auth-credential/basic-auth-credential.js.map +1 -0
- package/dist/models/v1/mod-credentials/basic-auth-credential/index.d.ts +1 -0
- package/dist/models/v1/mod-credentials/basic-auth-credential/index.js +3 -0
- package/dist/models/v1/mod-credentials/basic-auth-credential/index.js.map +1 -0
- package/dist/models/v1/mod-credentials/index.d.ts +12 -0
- package/dist/models/v1/mod-credentials/index.js +29 -0
- package/dist/models/v1/mod-credentials/index.js.map +1 -0
- package/dist/models/v1/mod-credentials/instagram-credentials/index.d.ts +1 -0
- package/dist/models/v1/mod-credentials/instagram-credentials/index.js +3 -0
- package/dist/models/v1/mod-credentials/instagram-credentials/index.js.map +1 -0
- package/dist/models/v1/mod-credentials/instagram-credentials/instagram-credentials.d.ts +9 -0
- package/dist/models/v1/mod-credentials/instagram-credentials/instagram-credentials.js +3 -0
- package/dist/models/v1/mod-credentials/instagram-credentials/instagram-credentials.js.map +1 -0
- package/dist/models/v1/mod-credentials/kakaotalk-credentials/index.d.ts +1 -0
- package/dist/models/v1/mod-credentials/kakaotalk-credentials/index.js +3 -0
- package/dist/models/v1/mod-credentials/kakaotalk-credentials/index.js.map +1 -0
- package/dist/models/v1/mod-credentials/kakaotalk-credentials/kakaotalk-credentials.d.ts +9 -0
- package/dist/models/v1/mod-credentials/kakaotalk-credentials/kakaotalk-credentials.js +3 -0
- package/dist/models/v1/mod-credentials/kakaotalk-credentials/kakaotalk-credentials.js.map +1 -0
- package/dist/models/v1/mod-credentials/kakaotalkchat-credentials/index.d.ts +1 -0
- package/dist/models/v1/mod-credentials/kakaotalkchat-credentials/index.js +3 -0
- package/dist/models/v1/mod-credentials/kakaotalkchat-credentials/index.js.map +1 -0
- package/dist/models/v1/mod-credentials/kakaotalkchat-credentials/kakaotalkchat-credentials.d.ts +9 -0
- package/dist/models/v1/mod-credentials/kakaotalkchat-credentials/kakaotalkchat-credentials.js +3 -0
- package/dist/models/v1/mod-credentials/kakaotalkchat-credentials/kakaotalkchat-credentials.js.map +1 -0
- package/dist/models/v1/mod-credentials/line-credentials/index.d.ts +1 -0
- package/dist/models/v1/mod-credentials/line-credentials/index.js +3 -0
- package/dist/models/v1/mod-credentials/line-credentials/index.js.map +1 -0
- package/dist/models/v1/mod-credentials/line-credentials/line-credentials.d.ts +9 -0
- package/dist/models/v1/mod-credentials/line-credentials/line-credentials.js +3 -0
- package/dist/models/v1/mod-credentials/line-credentials/line-credentials.js.map +1 -0
- package/dist/models/v1/mod-credentials/mms-credentials/index.d.ts +1 -0
- package/dist/models/v1/mod-credentials/mms-credentials/index.js +3 -0
- package/dist/models/v1/mod-credentials/mms-credentials/index.js.map +1 -0
- package/dist/models/v1/mod-credentials/mms-credentials/mms-credentials.d.ts +14 -0
- package/dist/models/v1/mod-credentials/mms-credentials/mms-credentials.js +3 -0
- package/dist/models/v1/mod-credentials/mms-credentials/mms-credentials.js.map +1 -0
- package/dist/models/v1/mod-credentials/sms-credentials/index.d.ts +1 -0
- package/dist/models/v1/mod-credentials/sms-credentials/index.js +3 -0
- package/dist/models/v1/mod-credentials/sms-credentials/index.js.map +1 -0
- package/dist/models/v1/mod-credentials/sms-credentials/sms-credentials.d.ts +7 -0
- package/dist/models/v1/mod-credentials/sms-credentials/sms-credentials.js +3 -0
- package/dist/models/v1/mod-credentials/sms-credentials/sms-credentials.js.map +1 -0
- package/dist/models/v1/mod-credentials/static-bearer-credential/index.d.ts +1 -0
- package/dist/models/v1/mod-credentials/static-bearer-credential/index.js +3 -0
- package/dist/models/v1/mod-credentials/static-bearer-credential/index.js.map +1 -0
- package/dist/models/v1/mod-credentials/static-bearer-credential/static-bearer-credential.d.ts +9 -0
- package/dist/models/v1/mod-credentials/static-bearer-credential/static-bearer-credential.js +3 -0
- package/dist/models/v1/mod-credentials/static-bearer-credential/static-bearer-credential.js.map +1 -0
- package/dist/models/v1/mod-credentials/static-token-credential/index.d.ts +1 -0
- package/dist/models/v1/mod-credentials/static-token-credential/index.js +3 -0
- package/dist/models/v1/mod-credentials/static-token-credential/index.js.map +1 -0
- package/dist/models/v1/mod-credentials/static-token-credential/static-token-credential.d.ts +7 -0
- package/dist/models/v1/mod-credentials/static-token-credential/static-token-credential.js +3 -0
- package/dist/models/v1/mod-credentials/static-token-credential/static-token-credential.js.map +1 -0
- package/dist/models/v1/mod-credentials/telegram-credentials/index.d.ts +1 -0
- package/dist/models/v1/mod-credentials/telegram-credentials/index.js +3 -0
- package/dist/models/v1/mod-credentials/telegram-credentials/index.js.map +1 -0
- package/dist/models/v1/mod-credentials/telegram-credentials/telegram-credentials.d.ts +7 -0
- package/dist/models/v1/mod-credentials/telegram-credentials/telegram-credentials.js +3 -0
- package/dist/models/v1/mod-credentials/telegram-credentials/telegram-credentials.js.map +1 -0
- package/dist/models/v1/mod-credentials/wechat-credentials/index.d.ts +1 -0
- package/dist/models/v1/mod-credentials/wechat-credentials/index.js +3 -0
- package/dist/models/v1/mod-credentials/wechat-credentials/index.js.map +1 -0
- package/dist/models/v1/mod-credentials/wechat-credentials/wechat-credentials.d.ts +13 -0
- package/dist/models/v1/mod-credentials/wechat-credentials/wechat-credentials.js +3 -0
- package/dist/models/v1/mod-credentials/wechat-credentials/wechat-credentials.js.map +1 -0
- package/dist/models/v1/product/index.d.ts +1 -0
- package/dist/models/v1/product/index.js +3 -0
- package/dist/models/v1/product/index.js.map +1 -0
- package/dist/models/v1/product/product.d.ts +19 -0
- package/dist/models/v1/product/product.js +3 -0
- package/dist/models/v1/product/product.js.map +1 -0
- package/dist/models/v1/query-capability-response/index.d.ts +1 -0
- package/dist/models/v1/query-capability-response/index.js +3 -0
- package/dist/models/v1/query-capability-response/index.js.map +1 -0
- package/dist/models/v1/query-capability-response/query-capability-response.d.ts +12 -0
- package/dist/models/v1/query-capability-response/query-capability-response.js +3 -0
- package/dist/models/v1/query-capability-response/query-capability-response.js.map +1 -0
- package/dist/models/v1/queue-stats/index.d.ts +1 -0
- package/dist/models/v1/queue-stats/index.js +3 -0
- package/dist/models/v1/queue-stats/index.js.map +1 -0
- package/dist/models/v1/queue-stats/queue-stats.d.ts +6 -0
- package/dist/models/v1/queue-stats/queue-stats.js +3 -0
- package/dist/models/v1/queue-stats/queue-stats.js.map +1 -0
- package/dist/models/v1/rate-limits/index.d.ts +1 -0
- package/dist/models/v1/rate-limits/index.js +3 -0
- package/dist/models/v1/rate-limits/index.js.map +1 -0
- package/dist/models/v1/rate-limits/rate-limits.d.ts +8 -0
- package/dist/models/v1/rate-limits/rate-limits.js +3 -0
- package/dist/models/v1/rate-limits/rate-limits.js.map +1 -0
- package/dist/models/v1/reason/index.d.ts +1 -0
- package/dist/models/v1/reason/index.js +3 -0
- package/dist/models/v1/reason/index.js.map +1 -0
- package/dist/models/v1/reason/reason.d.ts +8 -0
- package/dist/models/v1/reason/reason.js +3 -0
- package/dist/models/v1/reason/reason.js.map +1 -0
- package/dist/models/v1/recipient/index.d.ts +1 -0
- package/dist/models/v1/recipient/index.js +3 -0
- package/dist/models/v1/recipient/index.js.map +1 -0
- package/dist/models/v1/recipient/recipient.d.ts +6 -0
- package/dist/models/v1/recipient/recipient.js +3 -0
- package/dist/models/v1/recipient/recipient.js.map +1 -0
- package/dist/models/v1/reply-to/index.d.ts +1 -0
- package/dist/models/v1/reply-to/index.js +3 -0
- package/dist/models/v1/reply-to/index.js.map +1 -0
- package/dist/models/v1/reply-to/reply-to.d.ts +7 -0
- package/dist/models/v1/reply-to/reply-to.js +3 -0
- package/dist/models/v1/reply-to/reply-to.js.map +1 -0
- package/dist/models/v1/retention-policy/index.d.ts +1 -0
- package/dist/models/v1/retention-policy/index.js +3 -0
- package/dist/models/v1/retention-policy/index.js.map +1 -0
- package/dist/models/v1/retention-policy/retention-policy.d.ts +8 -0
- package/dist/models/v1/retention-policy/retention-policy.js +3 -0
- package/dist/models/v1/retention-policy/retention-policy.js.map +1 -0
- package/dist/models/v1/runtime-error/index.d.ts +1 -0
- package/dist/models/v1/runtime-error/index.js +3 -0
- package/dist/models/v1/runtime-error/index.js.map +1 -0
- package/dist/models/v1/runtime-error/runtime-error.d.ts +9 -0
- package/dist/models/v1/runtime-error/runtime-error.js +3 -0
- package/dist/models/v1/runtime-error/runtime-error.js.map +1 -0
- package/dist/models/v1/send-event-request/index.d.ts +1 -0
- package/dist/models/v1/send-event-request/index.js +3 -0
- package/dist/models/v1/send-event-request/index.js.map +1 -0
- package/dist/models/v1/send-event-request/send-event-request.d.ts +20 -0
- package/dist/models/v1/send-event-request/send-event-request.js +3 -0
- package/dist/models/v1/send-event-request/send-event-request.js.map +1 -0
- package/dist/models/v1/send-event-response/index.d.ts +1 -0
- package/dist/models/v1/send-event-response/index.js +3 -0
- package/dist/models/v1/send-event-response/index.js.map +1 -0
- package/dist/models/v1/send-event-response/send-event-response.d.ts +6 -0
- package/dist/models/v1/send-event-response/send-event-response.js +3 -0
- package/dist/models/v1/send-event-response/send-event-response.js.map +1 -0
- package/dist/models/v1/send-message-request/index.d.ts +1 -0
- package/dist/models/v1/send-message-request/index.js +3 -0
- package/dist/models/v1/send-message-request/index.js.map +1 -0
- package/dist/models/v1/send-message-request/send-message-request.d.ts +38 -0
- package/dist/models/v1/send-message-request/send-message-request.js +3 -0
- package/dist/models/v1/send-message-request/send-message-request.js.map +1 -0
- package/dist/models/v1/send-message-response/index.d.ts +1 -0
- package/dist/models/v1/send-message-response/index.js +3 -0
- package/dist/models/v1/send-message-response/index.js.map +1 -0
- package/dist/models/v1/send-message-response/send-message-response.d.ts +6 -0
- package/dist/models/v1/send-message-response/send-message-response.js +3 -0
- package/dist/models/v1/send-message-response/send-message-response.js.map +1 -0
- package/dist/models/v1/smart-conversation/index.d.ts +1 -0
- package/dist/models/v1/smart-conversation/index.js +3 -0
- package/dist/models/v1/smart-conversation/index.js.map +1 -0
- package/dist/models/v1/smart-conversation/smart-conversation.d.ts +7 -0
- package/dist/models/v1/smart-conversation/smart-conversation.js +3 -0
- package/dist/models/v1/smart-conversation/smart-conversation.js.map +1 -0
- package/dist/models/v1/template-message/index.d.ts +1 -0
- package/dist/models/v1/template-message/index.js +3 -0
- package/dist/models/v1/template-message/index.js.map +1 -0
- package/dist/models/v1/template-message/template-message.d.ts +14 -0
- package/dist/models/v1/template-message/template-message.js +3 -0
- package/dist/models/v1/template-message/template-message.js.map +1 -0
- package/dist/models/v1/template-reference/index.d.ts +1 -0
- package/dist/models/v1/template-reference/index.js +3 -0
- package/dist/models/v1/template-reference/index.js.map +1 -0
- package/dist/models/v1/template-reference/template-reference.d.ts +15 -0
- package/dist/models/v1/template-reference/template-reference.js +3 -0
- package/dist/models/v1/template-reference/template-reference.js.map +1 -0
- package/dist/models/v1/template-variable/index.d.ts +1 -0
- package/dist/models/v1/template-variable/index.js +3 -0
- package/dist/models/v1/template-variable/index.js.map +1 -0
- package/dist/models/v1/template-variable/template-variable.d.ts +4 -0
- package/dist/models/v1/template-variable/template-variable.js +3 -0
- package/dist/models/v1/template-variable/template-variable.js.map +1 -0
- package/dist/models/v1/text-message/index.d.ts +1 -0
- package/dist/models/v1/text-message/index.js +3 -0
- package/dist/models/v1/text-message/index.js.map +1 -0
- package/dist/models/v1/text-message/text-message.d.ts +11 -0
- package/dist/models/v1/text-message/text-message.js +3 -0
- package/dist/models/v1/text-message/text-message.js.map +1 -0
- package/dist/models/v1/transcode-message-request/index.d.ts +1 -0
- package/dist/models/v1/transcode-message-request/index.js +3 -0
- package/dist/models/v1/transcode-message-request/index.js.map +1 -0
- package/dist/models/v1/transcode-message-request/transcode-message-request.d.ts +14 -0
- package/dist/models/v1/transcode-message-request/transcode-message-request.js +3 -0
- package/dist/models/v1/transcode-message-request/transcode-message-request.js.map +1 -0
- package/dist/models/v1/transcode-message-response/index.d.ts +1 -0
- package/dist/models/v1/transcode-message-response/index.js +3 -0
- package/dist/models/v1/transcode-message-response/index.js.map +1 -0
- package/dist/models/v1/transcode-message-response/transcode-message-response.d.ts +6 -0
- package/dist/models/v1/transcode-message-response/transcode-message-response.js +3 -0
- package/dist/models/v1/transcode-message-response/transcode-message-response.js.map +1 -0
- package/dist/models/v1/update-message-request/index.d.ts +1 -0
- package/dist/models/v1/update-message-request/index.js +3 -0
- package/dist/models/v1/update-message-request/index.js.map +1 -0
- package/dist/models/v1/update-message-request/update-message-request.d.ts +7 -0
- package/dist/models/v1/update-message-request/update-message-request.js +3 -0
- package/dist/models/v1/update-message-request/update-message-request.js.map +1 -0
- package/dist/models/v1/url-message/index.d.ts +1 -0
- package/dist/models/v1/url-message/index.js +3 -0
- package/dist/models/v1/url-message/index.js.map +1 -0
- package/dist/models/v1/url-message/url-message.d.ts +9 -0
- package/dist/models/v1/url-message/url-message.js +3 -0
- package/dist/models/v1/url-message/url-message.js.map +1 -0
- package/dist/models/v1/v1-list-templates-response/index.d.ts +1 -0
- package/dist/models/v1/v1-list-templates-response/index.js +3 -0
- package/dist/models/v1/v1-list-templates-response/index.js.map +1 -0
- package/dist/models/v1/v1-list-templates-response/v1-list-templates-response.d.ts +4 -0
- package/dist/models/v1/v1-list-templates-response/v1-list-templates-response.js +3 -0
- package/dist/models/v1/v1-list-templates-response/v1-list-templates-response.js.map +1 -0
- package/dist/models/v1/v1-template/index.d.ts +1 -0
- package/dist/models/v1/v1-template/index.js +3 -0
- package/dist/models/v1/v1-template/index.js.map +1 -0
- package/dist/models/v1/v1-template/v1-template.d.ts +18 -0
- package/dist/models/v1/v1-template/v1-template.js +3 -0
- package/dist/models/v1/v1-template/v1-template.js.map +1 -0
- package/dist/models/v1/v1-template-translation/index.d.ts +1 -0
- package/dist/models/v1/v1-template-translation/index.js +3 -0
- package/dist/models/v1/v1-template-translation/index.js.map +1 -0
- package/dist/models/v1/v1-template-translation/v1-template-translation.d.ts +15 -0
- package/dist/models/v1/v1-template-translation/v1-template-translation.js +3 -0
- package/dist/models/v1/v1-template-translation/v1-template-translation.js.map +1 -0
- package/dist/models/v1/v2-list-templates-response/index.d.ts +1 -0
- package/dist/models/v1/v2-list-templates-response/index.js +3 -0
- package/dist/models/v1/v2-list-templates-response/index.js.map +1 -0
- package/dist/models/v1/v2-list-templates-response/v2-list-templates-response.d.ts +5 -0
- package/dist/models/v1/v2-list-templates-response/v2-list-templates-response.js +3 -0
- package/dist/models/v1/v2-list-templates-response/v2-list-templates-response.js.map +1 -0
- package/dist/models/v1/v2-list-translations-response/index.d.ts +1 -0
- package/dist/models/v1/v2-list-translations-response/index.js +3 -0
- package/dist/models/v1/v2-list-translations-response/index.js.map +1 -0
- package/dist/models/v1/v2-list-translations-response/v2-list-translations-response.d.ts +5 -0
- package/dist/models/v1/v2-list-translations-response/v2-list-translations-response.js +3 -0
- package/dist/models/v1/v2-list-translations-response/v2-list-translations-response.js.map +1 -0
- package/dist/models/v1/v2-template/index.d.ts +1 -0
- package/dist/models/v1/v2-template/index.js +3 -0
- package/dist/models/v1/v2-template/index.js.map +1 -0
- package/dist/models/v1/v2-template/v2-template.d.ts +15 -0
- package/dist/models/v1/v2-template/v2-template.js +3 -0
- package/dist/models/v1/v2-template/v2-template.js.map +1 -0
- package/dist/models/v1/v2-template-response/index.d.ts +1 -0
- package/dist/models/v1/v2-template-response/index.js +3 -0
- package/dist/models/v1/v2-template-response/index.js.map +1 -0
- package/dist/models/v1/v2-template-response/v2-template-response.d.ts +17 -0
- package/dist/models/v1/v2-template-response/v2-template-response.js +3 -0
- package/dist/models/v1/v2-template-response/v2-template-response.js.map +1 -0
- package/dist/models/v1/v2-template-translation/index.d.ts +1 -0
- package/dist/models/v1/v2-template-translation/index.js +3 -0
- package/dist/models/v1/v2-template-translation/index.js.map +1 -0
- package/dist/models/v1/v2-template-translation/v2-template-translation.d.ts +33 -0
- package/dist/models/v1/v2-template-translation/v2-template-translation.js +3 -0
- package/dist/models/v1/v2-template-translation/v2-template-translation.js.map +1 -0
- package/dist/models/v1/webhook/index.d.ts +1 -0
- package/dist/models/v1/webhook/index.js +3 -0
- package/dist/models/v1/webhook/index.js.map +1 -0
- package/dist/models/v1/webhook/webhook.d.ts +22 -0
- package/dist/models/v1/webhook/webhook.js +3 -0
- package/dist/models/v1/webhook/webhook.js.map +1 -0
- package/dist/models/v1/webhook-trigger/index.d.ts +1 -0
- package/dist/models/v1/webhook-trigger/index.js +3 -0
- package/dist/models/v1/webhook-trigger/index.js.map +1 -0
- package/dist/models/v1/webhook-trigger/webhook-trigger.d.ts +22 -0
- package/dist/models/v1/webhook-trigger/webhook-trigger.js +3 -0
- package/dist/models/v1/webhook-trigger/webhook-trigger.js.map +1 -0
- package/dist/rest/index.d.ts +1 -0
- package/dist/rest/index.js +18 -0
- package/dist/rest/index.js.map +1 -0
- package/dist/rest/v1/app/app-api.d.ts +63 -0
- package/dist/rest/v1/app/app-api.jest.fixture.d.ts +26 -0
- package/dist/rest/v1/app/app-api.jest.fixture.js +29 -0
- package/dist/rest/v1/app/app-api.jest.fixture.js.map +1 -0
- package/dist/rest/v1/app/app-api.js +131 -0
- package/dist/rest/v1/app/app-api.js.map +1 -0
- package/dist/rest/v1/app/index.d.ts +2 -0
- package/dist/rest/v1/app/index.js +19 -0
- package/dist/rest/v1/app/index.js.map +1 -0
- package/dist/rest/v1/callbacks/callbacks-webhook.d.ts +50 -0
- package/dist/rest/v1/callbacks/callbacks-webhook.js +183 -0
- package/dist/rest/v1/callbacks/callbacks-webhook.js.map +1 -0
- package/dist/rest/v1/callbacks/index.d.ts +1 -0
- package/dist/rest/v1/callbacks/index.js +18 -0
- package/dist/rest/v1/callbacks/index.js.map +1 -0
- package/dist/rest/v1/capability/capability-api.d.ts +21 -0
- package/dist/rest/v1/capability/capability-api.jest.fixture.d.ts +9 -0
- package/dist/rest/v1/capability/capability-api.jest.fixture.js +13 -0
- package/dist/rest/v1/capability/capability-api.jest.fixture.js.map +1 -0
- package/dist/rest/v1/capability/capability-api.js +41 -0
- package/dist/rest/v1/capability/capability-api.js.map +1 -0
- package/dist/rest/v1/capability/index.d.ts +2 -0
- package/dist/rest/v1/capability/index.js +19 -0
- package/dist/rest/v1/capability/index.js.map +1 -0
- package/dist/rest/v1/contact/contact-api.d.ts +96 -0
- package/dist/rest/v1/contact/contact-api.jest.fixture.d.ts +35 -0
- package/dist/rest/v1/contact/contact-api.jest.fixture.js +37 -0
- package/dist/rest/v1/contact/contact-api.jest.fixture.js.map +1 -0
- package/dist/rest/v1/contact/contact-api.js +185 -0
- package/dist/rest/v1/contact/contact-api.js.map +1 -0
- package/dist/rest/v1/contact/index.d.ts +2 -0
- package/dist/rest/v1/contact/index.js +19 -0
- package/dist/rest/v1/contact/index.js.map +1 -0
- package/dist/rest/v1/conversation/conversation-api.d.ts +131 -0
- package/dist/rest/v1/conversation/conversation-api.jest.fixture.d.ts +42 -0
- package/dist/rest/v1/conversation/conversation-api.jest.fixture.js +45 -0
- package/dist/rest/v1/conversation/conversation-api.jest.fixture.js.map +1 -0
- package/dist/rest/v1/conversation/conversation-api.js +257 -0
- package/dist/rest/v1/conversation/conversation-api.js.map +1 -0
- package/dist/rest/v1/conversation/index.d.ts +2 -0
- package/dist/rest/v1/conversation/index.js +19 -0
- package/dist/rest/v1/conversation/index.js.map +1 -0
- package/dist/rest/v1/conversation-domain-api.d.ts +32 -0
- package/dist/rest/v1/conversation-domain-api.js +97 -0
- package/dist/rest/v1/conversation-domain-api.js.map +1 -0
- package/dist/rest/v1/conversation-service.d.ts +30 -0
- package/dist/rest/v1/conversation-service.js +46 -0
- package/dist/rest/v1/conversation-service.js.map +1 -0
- package/dist/rest/v1/enums.d.ts +1 -0
- package/dist/rest/v1/enums.js +3 -0
- package/dist/rest/v1/enums.js.map +1 -0
- package/dist/rest/v1/events/events-api.d.ts +58 -0
- package/dist/rest/v1/events/events-api.jest.fixture.d.ts +22 -0
- package/dist/rest/v1/events/events-api.jest.fixture.js +25 -0
- package/dist/rest/v1/events/events-api.jest.fixture.js.map +1 -0
- package/dist/rest/v1/events/events-api.js +119 -0
- package/dist/rest/v1/events/events-api.js.map +1 -0
- package/dist/rest/v1/events/index.d.ts +2 -0
- package/dist/rest/v1/events/index.js +19 -0
- package/dist/rest/v1/events/index.js.map +1 -0
- package/dist/rest/v1/index.d.ts +13 -0
- package/dist/rest/v1/index.js +30 -0
- package/dist/rest/v1/index.js.map +1 -0
- package/dist/rest/v1/messages/index.d.ts +2 -0
- package/dist/rest/v1/messages/index.js +19 -0
- package/dist/rest/v1/messages/index.js.map +1 -0
- package/dist/rest/v1/messages/messages-api.d.ts +93 -0
- package/dist/rest/v1/messages/messages-api.jest.fixture.d.ts +26 -0
- package/dist/rest/v1/messages/messages-api.jest.fixture.js +29 -0
- package/dist/rest/v1/messages/messages-api.jest.fixture.js.map +1 -0
- package/dist/rest/v1/messages/messages-api.js +156 -0
- package/dist/rest/v1/messages/messages-api.js.map +1 -0
- package/dist/rest/v1/templates-v1/index.d.ts +2 -0
- package/dist/rest/v1/templates-v1/index.js +19 -0
- package/dist/rest/v1/templates-v1/index.js.map +1 -0
- package/dist/rest/v1/templates-v1/templates-v1-api.d.ts +63 -0
- package/dist/rest/v1/templates-v1/templates-v1-api.jest.fixture.d.ts +25 -0
- package/dist/rest/v1/templates-v1/templates-v1-api.jest.fixture.js +29 -0
- package/dist/rest/v1/templates-v1/templates-v1-api.jest.fixture.js.map +1 -0
- package/dist/rest/v1/templates-v1/templates-v1-api.js +131 -0
- package/dist/rest/v1/templates-v1/templates-v1-api.js.map +1 -0
- package/dist/rest/v1/templates-v2/index.d.ts +2 -0
- package/dist/rest/v1/templates-v2/index.js +19 -0
- package/dist/rest/v1/templates-v2/index.js.map +1 -0
- package/dist/rest/v1/templates-v2/templates-v2-api.d.ts +75 -0
- package/dist/rest/v1/templates-v2/templates-v2-api.jest.fixture.d.ts +29 -0
- package/dist/rest/v1/templates-v2/templates-v2-api.jest.fixture.js +33 -0
- package/dist/rest/v1/templates-v2/templates-v2-api.jest.fixture.js.map +1 -0
- package/dist/rest/v1/templates-v2/templates-v2-api.js +154 -0
- package/dist/rest/v1/templates-v2/templates-v2-api.js.map +1 -0
- package/dist/rest/v1/transcoding/index.d.ts +2 -0
- package/dist/rest/v1/transcoding/index.js +19 -0
- package/dist/rest/v1/transcoding/index.js.map +1 -0
- package/dist/rest/v1/transcoding/transcoding-api.d.ts +21 -0
- package/dist/rest/v1/transcoding/transcoding-api.jest.fixture.d.ts +9 -0
- package/dist/rest/v1/transcoding/transcoding-api.jest.fixture.js +13 -0
- package/dist/rest/v1/transcoding/transcoding-api.jest.fixture.js.map +1 -0
- package/dist/rest/v1/transcoding/transcoding-api.js +39 -0
- package/dist/rest/v1/transcoding/transcoding-api.js.map +1 -0
- package/dist/rest/v1/webhooks/index.d.ts +2 -0
- package/dist/rest/v1/webhooks/index.js +19 -0
- package/dist/rest/v1/webhooks/index.js.map +1 -0
- package/dist/rest/v1/webhooks/webhooks-api.d.ts +65 -0
- package/dist/rest/v1/webhooks/webhooks-api.jest.fixture.d.ts +26 -0
- package/dist/rest/v1/webhooks/webhooks-api.jest.fixture.js +29 -0
- package/dist/rest/v1/webhooks/webhooks-api.jest.fixture.js.map +1 -0
- package/dist/rest/v1/webhooks/webhooks-api.js +135 -0
- package/dist/rest/v1/webhooks/webhooks-api.js.map +1 -0
- package/package.json +37 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { QueryCapabilityResponse } from '../../../models';
|
|
3
|
+
import { CapabilityApi, LookupCapabilityRequestData } from './capability-api';
|
|
4
|
+
export declare class CapabilityApiFixture implements Partial<Readonly<CapabilityApi>> {
|
|
5
|
+
/**
|
|
6
|
+
* Fixture associated to function lookup
|
|
7
|
+
*/
|
|
8
|
+
lookup: jest.Mock<Promise<QueryCapabilityResponse>, [LookupCapabilityRequestData]>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CapabilityApiFixture = void 0;
|
|
4
|
+
class CapabilityApiFixture {
|
|
5
|
+
constructor() {
|
|
6
|
+
/**
|
|
7
|
+
* Fixture associated to function lookup
|
|
8
|
+
*/
|
|
9
|
+
this.lookup = jest.fn();
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.CapabilityApiFixture = CapabilityApiFixture;
|
|
13
|
+
//# sourceMappingURL=capability-api.jest.fixture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capability-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v1/capability/capability-api.jest.fixture.ts"],"names":[],"mappings":";;;AAGA,MAAa,oBAAoB;IAAjC;QAEE;;WAEG;QACI,WAAM,GAA+E,IAAI,CAAC,EAAE,EAAE,CAAC;IACxG,CAAC;CAAA;AAND,oDAMC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CapabilityApi = void 0;
|
|
4
|
+
const conversation_domain_api_1 = require("../conversation-domain-api");
|
|
5
|
+
class CapabilityApi extends conversation_domain_api_1.ConversationDomainApi {
|
|
6
|
+
/**
|
|
7
|
+
* Initialize your interface
|
|
8
|
+
*
|
|
9
|
+
* @param {SinchClientParameters} sinchClientParameters - The parameters used to initialize the API Client.
|
|
10
|
+
*/
|
|
11
|
+
constructor(sinchClientParameters) {
|
|
12
|
+
super(sinchClientParameters, 'CapabilityApi');
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Capability lookup
|
|
16
|
+
* This method is asynchronous - it immediately returns the requested Capability registration. Capability check is then delivered as a callback to registered webhooks with trigger CAPABILITY for every reachable channel.
|
|
17
|
+
* @param { LookupCapabilityRequestData } data - The data to provide to the API call.
|
|
18
|
+
*/
|
|
19
|
+
async lookup(data) {
|
|
20
|
+
this.client = this.getSinchClient();
|
|
21
|
+
const getParams = this.client.extractQueryParams(data, []);
|
|
22
|
+
const headers = {
|
|
23
|
+
'Content-Type': 'application/json',
|
|
24
|
+
'Accept': 'application/json',
|
|
25
|
+
};
|
|
26
|
+
const body = data['lookupCapabilityRequestBody']
|
|
27
|
+
? JSON.stringify(data['lookupCapabilityRequestBody'])
|
|
28
|
+
: '{}';
|
|
29
|
+
const basePathUrl = `${this.client.apiClientOptions.basePath}/v1/projects/${this.client.apiClientOptions.projectId}/capability:query`;
|
|
30
|
+
const requestOptions = await this.client.prepareOptions(basePathUrl, 'POST', getParams, headers, body || undefined);
|
|
31
|
+
const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
|
|
32
|
+
return this.client.processCall({
|
|
33
|
+
url,
|
|
34
|
+
requestOptions,
|
|
35
|
+
apiName: this.apiName,
|
|
36
|
+
operationId: 'QueryCapability',
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.CapabilityApi = CapabilityApi;
|
|
41
|
+
//# sourceMappingURL=capability-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capability-api.js","sourceRoot":"","sources":["../../../../src/rest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
@@ -0,0 +1,19 @@
|
|
|
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("./capability-api"), exports);
|
|
18
|
+
__exportStar(require("./capability-api.jest.fixture"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rest/v1/capability/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,gEAA8C"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { ApiListPromise, SinchClientParameters } from '@sinch/sdk-client';
|
|
2
|
+
import { Contact, ContactCreateRequest, ConversationChannel, GetChannelProfileRequest, GetChannelProfileResponse, MergeContactRequest } from '../../../models';
|
|
3
|
+
import { ConversationDomainApi } from '../conversation-domain-api';
|
|
4
|
+
export interface CreateContactRequestData {
|
|
5
|
+
/** The contact to create. */
|
|
6
|
+
'contactCreateRequestBody': ContactCreateRequest;
|
|
7
|
+
}
|
|
8
|
+
export interface DeleteContactRequestData {
|
|
9
|
+
/** The unique ID of the contact. */
|
|
10
|
+
'contact_id': string;
|
|
11
|
+
}
|
|
12
|
+
export interface GetChannelProfileRequestData {
|
|
13
|
+
/** */
|
|
14
|
+
'getChannelProfileRequestBody': GetChannelProfileRequest;
|
|
15
|
+
}
|
|
16
|
+
export interface GetContactRequestData {
|
|
17
|
+
/** The unique ID of the contact. */
|
|
18
|
+
'contact_id': string;
|
|
19
|
+
}
|
|
20
|
+
export interface ListContactsRequestData {
|
|
21
|
+
/** Optional. The maximum number of contacts to fetch. The default is 10 and the maximum is 20. */
|
|
22
|
+
'page_size'?: number;
|
|
23
|
+
/** Optional. Next page token previously returned if any. */
|
|
24
|
+
'page_token'?: string;
|
|
25
|
+
/** Optional. Contact identifier in an external system. If used, `channel` and `identity` query parameters can\'t be used. */
|
|
26
|
+
'external_id'?: string;
|
|
27
|
+
/** Optional. Specifies a channel, and must be set to one of the enum values. If set, the `identity` parameter must be set and `external_id` can\'t be used. Used in conjunction with `identity` to uniquely identify the specified channel identity. */
|
|
28
|
+
'channel'?: ConversationChannel;
|
|
29
|
+
/** Optional. If set, the `channel` parameter must be set and `external_id` can\'t be used. Used in conjunction with `channel` to uniquely identify the specified channel identity. This will differ from channel to channel. For example, a phone number for SMS, WhatsApp, and Viber Business. */
|
|
30
|
+
'identity'?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface MergeContactRequestData {
|
|
33
|
+
/** The unique ID of the contact that should be kept when merging two contacts. */
|
|
34
|
+
'destination_id': string;
|
|
35
|
+
/** The contact to be removed. */
|
|
36
|
+
'mergeContactRequestBody': MergeContactRequest;
|
|
37
|
+
}
|
|
38
|
+
export interface UpdateContactRequestData {
|
|
39
|
+
/** The unique ID of the contact. */
|
|
40
|
+
'contact_id': string;
|
|
41
|
+
/** The updated contact. */
|
|
42
|
+
'updateContactRequestBody': Contact;
|
|
43
|
+
/** The set of field mask paths. */
|
|
44
|
+
'update_mask'?: Array<string>;
|
|
45
|
+
}
|
|
46
|
+
export declare class ContactApi extends ConversationDomainApi {
|
|
47
|
+
/**
|
|
48
|
+
* Initialize your interface
|
|
49
|
+
*
|
|
50
|
+
* @param {SinchClientParameters} sinchClientParameters - The parameters used to initialize the API Client.
|
|
51
|
+
*/
|
|
52
|
+
constructor(sinchClientParameters: SinchClientParameters);
|
|
53
|
+
/**
|
|
54
|
+
* Create a Contact
|
|
55
|
+
* Most Conversation API contacts are [created automatically](/docs/conversation/contact-management/) when a message is sent to a new recipient. You can also create a new contact manually using this API call.
|
|
56
|
+
* @param { CreateContactRequestData } data - The data to provide to the API call.
|
|
57
|
+
*/
|
|
58
|
+
create(data: CreateContactRequestData): Promise<Contact>;
|
|
59
|
+
/**
|
|
60
|
+
* Delete a Contact
|
|
61
|
+
* Delete a contact as specified by the contact ID.
|
|
62
|
+
* @param { DeleteContactRequestData } data - The data to provide to the API call.
|
|
63
|
+
*/
|
|
64
|
+
delete(data: DeleteContactRequestData): Promise<any>;
|
|
65
|
+
/**
|
|
66
|
+
* Get Channel Profile
|
|
67
|
+
* Get user profile from a specific channel. Only supported on `MESSENGER`, `INSTAGRAM`, `VIBER` and `LINE` channels. Note that, in order to retrieve a WhatsApp display name, you can use the Get a Contact or List Contacts operations, which will populate the `display_name` field of each returned contact with the WhatsApp display name (if the name is already stored on the server and the `display_name` field has not been overwritten by the user).
|
|
68
|
+
* @param { GetChannelProfileRequestData } data - The data to provide to the API call.
|
|
69
|
+
*/
|
|
70
|
+
getChannelProfile(data: GetChannelProfileRequestData): Promise<GetChannelProfileResponse>;
|
|
71
|
+
/**
|
|
72
|
+
* Get a Contact
|
|
73
|
+
* Returns a specific contact as specified by the contact ID. Note that, if a WhatsApp contact is returned, the `display_name` field of that contact may be populated with the WhatsApp display name (if the name is already stored on the server and the `display_name` field has not been overwritten by the user).
|
|
74
|
+
* @param { GetContactRequestData } data - The data to provide to the API call.
|
|
75
|
+
*/
|
|
76
|
+
get(data: GetContactRequestData): Promise<Contact>;
|
|
77
|
+
/**
|
|
78
|
+
* List Contacts
|
|
79
|
+
* List all contacts in the project. Note that, if a WhatsApp contact is returned, the `display_name` field of that contact may be populated with the WhatsApp display name (if the name is already stored on the server and the `display_name` field has not been overwritten by the user).
|
|
80
|
+
* @param { ListContactsRequestData } data - The data to provide to the API call.
|
|
81
|
+
* @return {ApiListPromise<Contact>}
|
|
82
|
+
*/
|
|
83
|
+
list(data: ListContactsRequestData): ApiListPromise<Contact>;
|
|
84
|
+
/**
|
|
85
|
+
* Merge two Contacts
|
|
86
|
+
* The remaining contact will contain all conversations that the removed contact did. If both contacts had conversations within the same App, messages from the removed contact will be merged into corresponding active conversations in the destination contact. Channel identities will be moved from the source contact to the destination contact only for channels that weren\'t present there before. Moved channel identities will be placed at the bottom of the channel priority list. Optional fields from the source contact will be copied only if corresponding fields in the destination contact are empty The contact being removed cannot be referenced after this call.
|
|
87
|
+
* @param { MergeContactRequestData } data - The data to provide to the API call.
|
|
88
|
+
*/
|
|
89
|
+
mergeContact(data: MergeContactRequestData): Promise<Contact>;
|
|
90
|
+
/**
|
|
91
|
+
* Update a Contact
|
|
92
|
+
* Updates a contact as specified by the contact ID.
|
|
93
|
+
* @param { UpdateContactRequestData } data - The data to provide to the API call.
|
|
94
|
+
*/
|
|
95
|
+
update(data: UpdateContactRequestData): Promise<Contact>;
|
|
96
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { Contact } from '../../../models';
|
|
3
|
+
import { GetChannelProfileResponse } from '../../../models';
|
|
4
|
+
import { ContactApi, CreateContactRequestData, DeleteContactRequestData, GetChannelProfileRequestData, GetContactRequestData, ListContactsRequestData, MergeContactRequestData, UpdateContactRequestData } from './contact-api';
|
|
5
|
+
import { ApiListPromise } from '@sinch/sdk-client';
|
|
6
|
+
export declare class ContactApiFixture implements Partial<Readonly<ContactApi>> {
|
|
7
|
+
/**
|
|
8
|
+
* Fixture associated to function create
|
|
9
|
+
*/
|
|
10
|
+
create: jest.Mock<Promise<Contact>, [CreateContactRequestData]>;
|
|
11
|
+
/**
|
|
12
|
+
* Fixture associated to function delete
|
|
13
|
+
*/
|
|
14
|
+
delete: jest.Mock<Promise<any>, [DeleteContactRequestData]>;
|
|
15
|
+
/**
|
|
16
|
+
* Fixture associated to function getChannelProfile
|
|
17
|
+
*/
|
|
18
|
+
getChannelProfile: jest.Mock<Promise<GetChannelProfileResponse>, [GetChannelProfileRequestData]>;
|
|
19
|
+
/**
|
|
20
|
+
* Fixture associated to function get
|
|
21
|
+
*/
|
|
22
|
+
get: jest.Mock<Promise<Contact>, [GetContactRequestData]>;
|
|
23
|
+
/**
|
|
24
|
+
* Fixture associated to function list
|
|
25
|
+
*/
|
|
26
|
+
list: jest.Mock<ApiListPromise<Contact>, [ListContactsRequestData]>;
|
|
27
|
+
/**
|
|
28
|
+
* Fixture associated to function mergeContact
|
|
29
|
+
*/
|
|
30
|
+
mergeContact: jest.Mock<Promise<Contact>, [MergeContactRequestData]>;
|
|
31
|
+
/**
|
|
32
|
+
* Fixture associated to function update
|
|
33
|
+
*/
|
|
34
|
+
update: jest.Mock<Promise<Contact>, [UpdateContactRequestData]>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContactApiFixture = void 0;
|
|
4
|
+
class ContactApiFixture {
|
|
5
|
+
constructor() {
|
|
6
|
+
/**
|
|
7
|
+
* Fixture associated to function create
|
|
8
|
+
*/
|
|
9
|
+
this.create = jest.fn();
|
|
10
|
+
/**
|
|
11
|
+
* Fixture associated to function delete
|
|
12
|
+
*/
|
|
13
|
+
this.delete = jest.fn();
|
|
14
|
+
/**
|
|
15
|
+
* Fixture associated to function getChannelProfile
|
|
16
|
+
*/
|
|
17
|
+
this.getChannelProfile = jest.fn();
|
|
18
|
+
/**
|
|
19
|
+
* Fixture associated to function get
|
|
20
|
+
*/
|
|
21
|
+
this.get = jest.fn();
|
|
22
|
+
/**
|
|
23
|
+
* Fixture associated to function list
|
|
24
|
+
*/
|
|
25
|
+
this.list = jest.fn();
|
|
26
|
+
/**
|
|
27
|
+
* Fixture associated to function mergeContact
|
|
28
|
+
*/
|
|
29
|
+
this.mergeContact = jest.fn();
|
|
30
|
+
/**
|
|
31
|
+
* Fixture associated to function update
|
|
32
|
+
*/
|
|
33
|
+
this.update = jest.fn();
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ContactApiFixture = ContactApiFixture;
|
|
37
|
+
//# sourceMappingURL=contact-api.jest.fixture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v1/contact/contact-api.jest.fixture.ts"],"names":[],"mappings":";;;AAKA,MAAa,iBAAiB;IAA9B;QAEE;;WAEG;QACI,WAAM,GAA4D,IAAI,CAAC,EAAE,EAAE,CAAC;QACnF;;WAEG;QACI,WAAM,GAAwD,IAAI,CAAC,EAAE,EAAE,CAAC;QAC/E;;WAEG;QACI,sBAAiB,GAAkF,IAAI,CAAC,EAAE,EAAE,CAAC;QACpH;;WAEG;QACI,QAAG,GAAyD,IAAI,CAAC,EAAE,EAAE,CAAC;QAC7E;;WAEG;QACI,SAAI,GAAkE,IAAI,CAAC,EAAE,EAAE,CAAC;QACvF;;WAEG;QACI,iBAAY,GAA2D,IAAI,CAAC,EAAE,EAAE,CAAC;QACxF;;WAEG;QACI,WAAM,GAA4D,IAAI,CAAC,EAAE,EAAE,CAAC;IACrF,CAAC;CAAA;AA9BD,8CA8BC"}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContactApi = void 0;
|
|
4
|
+
const sdk_client_1 = require("@sinch/sdk-client");
|
|
5
|
+
const conversation_domain_api_1 = require("../conversation-domain-api");
|
|
6
|
+
class ContactApi extends conversation_domain_api_1.ConversationDomainApi {
|
|
7
|
+
/**
|
|
8
|
+
* Initialize your interface
|
|
9
|
+
*
|
|
10
|
+
* @param {SinchClientParameters} sinchClientParameters - The parameters used to initialize the API Client.
|
|
11
|
+
*/
|
|
12
|
+
constructor(sinchClientParameters) {
|
|
13
|
+
super(sinchClientParameters, 'ContactApi');
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Create a Contact
|
|
17
|
+
* Most Conversation API contacts are [created automatically](/docs/conversation/contact-management/) when a message is sent to a new recipient. You can also create a new contact manually using this API call.
|
|
18
|
+
* @param { CreateContactRequestData } data - The data to provide to the API call.
|
|
19
|
+
*/
|
|
20
|
+
async create(data) {
|
|
21
|
+
this.client = this.getSinchClient();
|
|
22
|
+
const getParams = this.client.extractQueryParams(data, []);
|
|
23
|
+
const headers = {
|
|
24
|
+
'Content-Type': 'application/json',
|
|
25
|
+
'Accept': 'application/json',
|
|
26
|
+
};
|
|
27
|
+
const body = data['contactCreateRequestBody'] ? JSON.stringify(data['contactCreateRequestBody']) : '{}';
|
|
28
|
+
const basePathUrl = `${this.client.apiClientOptions.basePath}/v1/projects/${this.client.apiClientOptions.projectId}/contacts`;
|
|
29
|
+
const requestOptions = await this.client.prepareOptions(basePathUrl, 'POST', getParams, headers, body || undefined);
|
|
30
|
+
const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
|
|
31
|
+
return this.client.processCall({
|
|
32
|
+
url,
|
|
33
|
+
requestOptions,
|
|
34
|
+
apiName: this.apiName,
|
|
35
|
+
operationId: 'CreateContact',
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Delete a Contact
|
|
40
|
+
* Delete a contact as specified by the contact ID.
|
|
41
|
+
* @param { DeleteContactRequestData } data - The data to provide to the API call.
|
|
42
|
+
*/
|
|
43
|
+
async delete(data) {
|
|
44
|
+
this.client = this.getSinchClient();
|
|
45
|
+
const getParams = this.client.extractQueryParams(data, []);
|
|
46
|
+
const headers = {
|
|
47
|
+
'Content-Type': 'application/json',
|
|
48
|
+
'Accept': 'application/json',
|
|
49
|
+
};
|
|
50
|
+
const body = '';
|
|
51
|
+
const basePathUrl = `${this.client.apiClientOptions.basePath}/v1/projects/${this.client.apiClientOptions.projectId}/contacts/${data['contact_id']}`;
|
|
52
|
+
const requestOptions = await this.client.prepareOptions(basePathUrl, 'DELETE', getParams, headers, body || undefined);
|
|
53
|
+
const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
|
|
54
|
+
return this.client.processCall({
|
|
55
|
+
url,
|
|
56
|
+
requestOptions,
|
|
57
|
+
apiName: this.apiName,
|
|
58
|
+
operationId: 'DeleteContact',
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Get Channel Profile
|
|
63
|
+
* Get user profile from a specific channel. Only supported on `MESSENGER`, `INSTAGRAM`, `VIBER` and `LINE` channels. Note that, in order to retrieve a WhatsApp display name, you can use the Get a Contact or List Contacts operations, which will populate the `display_name` field of each returned contact with the WhatsApp display name (if the name is already stored on the server and the `display_name` field has not been overwritten by the user).
|
|
64
|
+
* @param { GetChannelProfileRequestData } data - The data to provide to the API call.
|
|
65
|
+
*/
|
|
66
|
+
async getChannelProfile(data) {
|
|
67
|
+
this.client = this.getSinchClient();
|
|
68
|
+
const getParams = this.client.extractQueryParams(data, []);
|
|
69
|
+
const headers = {
|
|
70
|
+
'Content-Type': 'application/json',
|
|
71
|
+
'Accept': 'application/json',
|
|
72
|
+
};
|
|
73
|
+
const body = data['getChannelProfileRequestBody'] ? JSON.stringify(data['getChannelProfileRequestBody']) : '{}';
|
|
74
|
+
const basePathUrl = `${this.client.apiClientOptions.basePath}/v1/projects/${this.client.apiClientOptions.projectId}/contacts:getChannelProfile`;
|
|
75
|
+
const requestOptions = await this.client.prepareOptions(basePathUrl, 'POST', getParams, headers, body || undefined);
|
|
76
|
+
const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
|
|
77
|
+
return this.client.processCall({
|
|
78
|
+
url,
|
|
79
|
+
requestOptions,
|
|
80
|
+
apiName: this.apiName,
|
|
81
|
+
operationId: 'GetChannelProfile',
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Get a Contact
|
|
86
|
+
* Returns a specific contact as specified by the contact ID. Note that, if a WhatsApp contact is returned, the `display_name` field of that contact may be populated with the WhatsApp display name (if the name is already stored on the server and the `display_name` field has not been overwritten by the user).
|
|
87
|
+
* @param { GetContactRequestData } data - The data to provide to the API call.
|
|
88
|
+
*/
|
|
89
|
+
async get(data) {
|
|
90
|
+
this.client = this.getSinchClient();
|
|
91
|
+
const getParams = this.client.extractQueryParams(data, []);
|
|
92
|
+
const headers = {
|
|
93
|
+
'Content-Type': 'application/json',
|
|
94
|
+
'Accept': 'application/json',
|
|
95
|
+
};
|
|
96
|
+
const body = '';
|
|
97
|
+
const basePathUrl = `${this.client.apiClientOptions.basePath}/v1/projects/${this.client.apiClientOptions.projectId}/contacts/${data['contact_id']}`;
|
|
98
|
+
const requestOptions = await this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined);
|
|
99
|
+
const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
|
|
100
|
+
return this.client.processCall({
|
|
101
|
+
url,
|
|
102
|
+
requestOptions,
|
|
103
|
+
apiName: this.apiName,
|
|
104
|
+
operationId: 'GetContact',
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* List Contacts
|
|
109
|
+
* List all contacts in the project. Note that, if a WhatsApp contact is returned, the `display_name` field of that contact may be populated with the WhatsApp display name (if the name is already stored on the server and the `display_name` field has not been overwritten by the user).
|
|
110
|
+
* @param { ListContactsRequestData } data - The data to provide to the API call.
|
|
111
|
+
* @return {ApiListPromise<Contact>}
|
|
112
|
+
*/
|
|
113
|
+
list(data) {
|
|
114
|
+
this.client = this.getSinchClient();
|
|
115
|
+
const getParams = this.client.extractQueryParams(data, ['page_size', 'page_token', 'external_id', 'channel', 'identity']);
|
|
116
|
+
const headers = {
|
|
117
|
+
'Content-Type': 'application/json',
|
|
118
|
+
'Accept': 'application/json',
|
|
119
|
+
};
|
|
120
|
+
const body = '';
|
|
121
|
+
const basePathUrl = `${this.client.apiClientOptions.basePath}/v1/projects/${this.client.apiClientOptions.projectId}/contacts`;
|
|
122
|
+
const requestOptionsPromise = this.client.prepareOptions(basePathUrl, 'GET', getParams, headers, body || undefined);
|
|
123
|
+
const operationProperties = {
|
|
124
|
+
pagination: sdk_client_1.PaginationEnum.TOKEN,
|
|
125
|
+
apiName: this.apiName,
|
|
126
|
+
operationId: 'ListContacts',
|
|
127
|
+
dataKey: 'contacts',
|
|
128
|
+
};
|
|
129
|
+
// Create the promise containing the response wrapped as a PageResult
|
|
130
|
+
const listPromise = (0, sdk_client_1.buildPageResultPromise)(this.client, requestOptionsPromise, operationProperties);
|
|
131
|
+
// Add properties to the Promise to offer the possibility to use it as an iterator
|
|
132
|
+
Object.assign(listPromise, (0, sdk_client_1.createIteratorMethodsForPagination)(this.client, requestOptionsPromise, listPromise, operationProperties));
|
|
133
|
+
return listPromise;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Merge two Contacts
|
|
137
|
+
* The remaining contact will contain all conversations that the removed contact did. If both contacts had conversations within the same App, messages from the removed contact will be merged into corresponding active conversations in the destination contact. Channel identities will be moved from the source contact to the destination contact only for channels that weren\'t present there before. Moved channel identities will be placed at the bottom of the channel priority list. Optional fields from the source contact will be copied only if corresponding fields in the destination contact are empty The contact being removed cannot be referenced after this call.
|
|
138
|
+
* @param { MergeContactRequestData } data - The data to provide to the API call.
|
|
139
|
+
*/
|
|
140
|
+
async mergeContact(data) {
|
|
141
|
+
this.client = this.getSinchClient();
|
|
142
|
+
const getParams = this.client.extractQueryParams(data, []);
|
|
143
|
+
const headers = {
|
|
144
|
+
'Content-Type': 'application/json',
|
|
145
|
+
'Accept': 'application/json',
|
|
146
|
+
};
|
|
147
|
+
const body = data['mergeContactRequestBody'] ? JSON.stringify(data['mergeContactRequestBody']) : '{}';
|
|
148
|
+
const basePathUrl = `${this.client.apiClientOptions.basePath}/v1/projects/${this.client.apiClientOptions.projectId}/contacts/${data['destination_id']}:merge`;
|
|
149
|
+
const requestOptions = await this.client.prepareOptions(basePathUrl, 'POST', getParams, headers, body || undefined);
|
|
150
|
+
const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
|
|
151
|
+
return this.client.processCall({
|
|
152
|
+
url,
|
|
153
|
+
requestOptions,
|
|
154
|
+
apiName: this.apiName,
|
|
155
|
+
operationId: 'MergeContact',
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Update a Contact
|
|
160
|
+
* Updates a contact as specified by the contact ID.
|
|
161
|
+
* @param { UpdateContactRequestData } data - The data to provide to the API call.
|
|
162
|
+
*/
|
|
163
|
+
async update(data) {
|
|
164
|
+
this.client = this.getSinchClient();
|
|
165
|
+
const getParams = this.client.extractQueryParams(data, ['update_mask']);
|
|
166
|
+
const headers = {
|
|
167
|
+
'Content-Type': 'application/json',
|
|
168
|
+
'Accept': 'application/json',
|
|
169
|
+
};
|
|
170
|
+
const body = data['updateContactRequestBody']
|
|
171
|
+
? JSON.stringify(data['updateContactRequestBody'])
|
|
172
|
+
: '{}';
|
|
173
|
+
const basePathUrl = `${this.client.apiClientOptions.basePath}/v1/projects/${this.client.apiClientOptions.projectId}/contacts/${data['contact_id']}`;
|
|
174
|
+
const requestOptions = await this.client.prepareOptions(basePathUrl, 'PATCH', getParams, headers, body || undefined);
|
|
175
|
+
const url = this.client.prepareUrl(requestOptions.basePath, requestOptions.queryParams);
|
|
176
|
+
return this.client.processCall({
|
|
177
|
+
url,
|
|
178
|
+
requestOptions,
|
|
179
|
+
apiName: this.apiName,
|
|
180
|
+
operationId: 'UpdateContact',
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
exports.ContactApi = ContactApi;
|
|
185
|
+
//# sourceMappingURL=contact-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/contact/contact-api.ts"],"names":[],"mappings":";;;AAAA,kDAQ2B;AAS3B,wEAAmE;AA6CnE,MAAa,UAAW,SAAQ,+CAAqB;IAEnD;;;;OAIG;IACH,YAAY,qBAA4C;QACtD,KAAK,CAAC,qBAAqB,EAAE,YAAY,CAAC,CAAC;IAC7C,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,MAAM,CAAC,IAA8B;QAChD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACpC,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAA2B,IAAI,EAAE,EAAa,CAAC,CAAC;QAChG,MAAM,OAAO,GAA0C;YACrD,cAAc,EAAE,kBAAkB;YAClC,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;QAEF,MAAM,IAAI,GACN,IAAI,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAC/F,MAAM,WAAW,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,gBAAgB,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,WAAW,CAAC;QAE9H,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,IAAI,SAAS,CAAC,CAAC;QACpH,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC,QAAQ,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;QAExF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAU;YACtC,GAAG;YAC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,CAAC,OAAO;YACrB,WAAW,EAAE,eAAe;SAC7B,CAAC,CAAC;IACL,CAAC;CAEF;AA/ND,gCA+NC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./contact-api"), exports);
|
|
18
|
+
__exportStar(require("./contact-api.jest.fixture"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rest/v1/contact/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,6DAA2C"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { ApiListPromise, SinchClientParameters } from '@sinch/sdk-client';
|
|
2
|
+
import { Conversation, ConversationChannel, InjectMessageRequest, ConversationMetadataUpdateStrategy, ConversationRecentMessage, CreateConversationRequest, InjectEventResponse, InjectConversationEventRequest } from '../../../models';
|
|
3
|
+
import { ConversationDomainApi } from '../conversation-domain-api';
|
|
4
|
+
export interface CreateConversationRequestData {
|
|
5
|
+
/** The conversation to create. ID will be generated for the conversation and any ID in the given conversation will be ignored. */
|
|
6
|
+
'createConversationRequestBody': CreateConversationRequest;
|
|
7
|
+
}
|
|
8
|
+
export interface DeleteConversationRequestData {
|
|
9
|
+
/** The unique ID of the conversation. This is generated by the system. */
|
|
10
|
+
'conversation_id': string;
|
|
11
|
+
}
|
|
12
|
+
export interface GetConversationRequestData {
|
|
13
|
+
/** The unique ID of the conversation. This is generated by the system. */
|
|
14
|
+
'conversation_id': string;
|
|
15
|
+
}
|
|
16
|
+
export interface InjectEventRequestData {
|
|
17
|
+
/** The unique ID of the conversation. This is generated by the system. */
|
|
18
|
+
'conversation_id': string;
|
|
19
|
+
/** Inject event request */
|
|
20
|
+
'injectConversationEventRequestBody': InjectConversationEventRequest;
|
|
21
|
+
}
|
|
22
|
+
export interface InjectMessageRequestData {
|
|
23
|
+
/** Required. The ID of the conversation. */
|
|
24
|
+
'conversation_id': string;
|
|
25
|
+
/** Message to be injected. */
|
|
26
|
+
'injectMessageRequestBody': InjectMessageRequest;
|
|
27
|
+
}
|
|
28
|
+
export interface ListConversationsRequestData {
|
|
29
|
+
/** Required. True if only active conversations should be listed. */
|
|
30
|
+
'only_active': boolean;
|
|
31
|
+
/** The ID of the app involved in the conversations. */
|
|
32
|
+
'app_id'?: string;
|
|
33
|
+
/** Resource name (ID) of the contact. */
|
|
34
|
+
'contact_id'?: string;
|
|
35
|
+
/** The maximum number of conversations to fetch. Defaults to 10 and the maximum is 20. */
|
|
36
|
+
'page_size'?: number;
|
|
37
|
+
/** Next page token previously returned if any. */
|
|
38
|
+
'page_token'?: string;
|
|
39
|
+
/** Only fetch conversations from the `active_channel` */
|
|
40
|
+
'active_channel'?: ConversationChannel;
|
|
41
|
+
}
|
|
42
|
+
export interface ListRecentConversationsRequestData {
|
|
43
|
+
/** The application ID */
|
|
44
|
+
'app_id': string;
|
|
45
|
+
/** True if only active conversations should be listed. Default is false. */
|
|
46
|
+
'only_active'?: boolean;
|
|
47
|
+
/** The maximum number of conversations to fetch. Defaults to 10 and the maximum value is 50. */
|
|
48
|
+
'page_size'?: number;
|
|
49
|
+
/** Next page token previously returned if any. When specifying this token, make sure to use the same values for the other parameters from the request that originated the token, otherwise the paged results may be inconsistent. */
|
|
50
|
+
'page_token'?: string;
|
|
51
|
+
/** Whether to sort conversations by newest message first or oldest. Default is DESC (newest first) */
|
|
52
|
+
'order'?: 'ASC' | 'DESC';
|
|
53
|
+
}
|
|
54
|
+
export interface StopActiveConversationRequestData {
|
|
55
|
+
/** The unique ID of the conversation. This is generated by the system. */
|
|
56
|
+
'conversation_id': string;
|
|
57
|
+
}
|
|
58
|
+
export interface UpdateConversationRequestData {
|
|
59
|
+
/** The unique ID of the conversation. This is generated by the system. */
|
|
60
|
+
'conversation_id': string;
|
|
61
|
+
/** The updated conversation. */
|
|
62
|
+
'updateConversationRequestBody': Conversation;
|
|
63
|
+
/** The set of field mask paths. */
|
|
64
|
+
'update_mask'?: Array<string>;
|
|
65
|
+
/** Update strategy for the `conversation_metadata` field. */
|
|
66
|
+
'metadata_update_strategy'?: ConversationMetadataUpdateStrategy;
|
|
67
|
+
}
|
|
68
|
+
export declare class ConversationApi extends ConversationDomainApi {
|
|
69
|
+
/**
|
|
70
|
+
* Initialize your interface
|
|
71
|
+
*
|
|
72
|
+
* @param {SinchClientParameters} sinchClientParameters - The parameters used to initialize the API Client.
|
|
73
|
+
*/
|
|
74
|
+
constructor(sinchClientParameters: SinchClientParameters);
|
|
75
|
+
/**
|
|
76
|
+
* Create a conversation
|
|
77
|
+
* Creates a new empty conversation. It is generally not needed to create a conversation explicitly since sending or receiving a message automatically creates a new conversation if it does not already exist between the given app and contact. Creating empty conversation is useful if the metadata of the conversation should be populated when the first message in the conversation is a contact message or the first message in the conversation comes out-of-band and needs to be injected with InjectMessage endpoint.
|
|
78
|
+
* @param { CreateConversationRequestData } data - The data to provide to the API call.
|
|
79
|
+
*/
|
|
80
|
+
create(data: CreateConversationRequestData): Promise<Conversation>;
|
|
81
|
+
/**
|
|
82
|
+
* Delete a conversation
|
|
83
|
+
* Deletes a conversation together with all the messages sent as part of the conversation.
|
|
84
|
+
* @param { DeleteConversationRequestData } data - The data to provide to the API call.
|
|
85
|
+
*/
|
|
86
|
+
delete(data: DeleteConversationRequestData): Promise<any>;
|
|
87
|
+
/**
|
|
88
|
+
* Get a conversation
|
|
89
|
+
* Retrieves a conversation by id. A conversation has two participating entities, an app and a contact.
|
|
90
|
+
* @param { GetConversationRequestData } data - The data to provide to the API call.
|
|
91
|
+
*/
|
|
92
|
+
get(data: GetConversationRequestData): Promise<Conversation>;
|
|
93
|
+
/**
|
|
94
|
+
* Inject an event
|
|
95
|
+
* This operation injects a conversation event into a specific conversation.
|
|
96
|
+
* @param { InjectEventRequestData } data - The data to provide to the API call.
|
|
97
|
+
*/
|
|
98
|
+
injectEvent(data: InjectEventRequestData): Promise<InjectEventResponse>;
|
|
99
|
+
/**
|
|
100
|
+
* Inject messages
|
|
101
|
+
* This operation injects a conversation message in to a specific conversation.
|
|
102
|
+
* @param { InjectMessageRequestData } data - The data to provide to the API call.
|
|
103
|
+
*/
|
|
104
|
+
injectMessage(data: InjectMessageRequestData): Promise<any>;
|
|
105
|
+
/**
|
|
106
|
+
* List conversations
|
|
107
|
+
* This operation lists all conversations that are associated with an app and/or a contact.
|
|
108
|
+
* @param { ListConversationsRequestData } data - The data to provide to the API call.
|
|
109
|
+
* @return {ApiListPromise<Conversation>}
|
|
110
|
+
*/
|
|
111
|
+
list(data: ListConversationsRequestData): ApiListPromise<Conversation>;
|
|
112
|
+
/**
|
|
113
|
+
* List recent conversations
|
|
114
|
+
* This operation lists conversations and their most recent message, ordered by when the most recent message was sent for that conversation.
|
|
115
|
+
* @param { ListRecentConversationsRequestData } data - The data to provide to the API call.
|
|
116
|
+
* @return {ApiListPromise<ConversationRecentMessage>}
|
|
117
|
+
*/
|
|
118
|
+
listRecent(data: ListRecentConversationsRequestData): ApiListPromise<ConversationRecentMessage>;
|
|
119
|
+
/**
|
|
120
|
+
* Stop conversation
|
|
121
|
+
* This operation stops the referenced conversation, if the conversation is still active. A new conversation will be created if a new message is exchanged between the app or contact that was part of the stopped conversation.
|
|
122
|
+
* @param { StopActiveConversationRequestData } data - The data to provide to the API call.
|
|
123
|
+
*/
|
|
124
|
+
stopActive(data: StopActiveConversationRequestData): Promise<any>;
|
|
125
|
+
/**
|
|
126
|
+
* Update a conversation
|
|
127
|
+
* This operation updates a conversation which can, for instance, be used to update the metadata associated with a conversation.
|
|
128
|
+
* @param { UpdateConversationRequestData } data - The data to provide to the API call.
|
|
129
|
+
*/
|
|
130
|
+
update(data: UpdateConversationRequestData): Promise<Conversation>;
|
|
131
|
+
}
|