@trycourier/courier 5.6.0 → 6.0.0
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/CHANGELOG.md +321 -0
- package/CONTRIBUTING.md +30 -0
- package/Client.d.ts +71 -0
- package/Client.js +181 -0
- package/README.md +8 -1
- package/api/client/index.d.ts +1 -0
- package/api/client/index.js +17 -0
- package/api/client/requests/SendMessageRequest.d.ts +8 -0
- package/api/client/requests/SendMessageRequest.js +5 -0
- package/api/client/requests/index.d.ts +1 -0
- package/api/index.d.ts +3 -0
- package/api/index.js +19 -0
- package/api/resources/audiences/client/Client.d.ts +43 -0
- package/api/resources/audiences/client/Client.js +304 -0
- package/api/resources/audiences/client/index.d.ts +1 -0
- package/api/resources/audiences/client/index.js +17 -0
- package/api/resources/audiences/client/requests/ListAudienceMembersRequest.d.ts +10 -0
- package/api/resources/audiences/client/requests/ListAudienceMembersRequest.js +5 -0
- package/api/resources/audiences/client/requests/ListAudiencesRequest.d.ts +10 -0
- package/api/resources/audiences/client/requests/ListAudiencesRequest.js +5 -0
- package/api/resources/audiences/client/requests/index.d.ts +2 -0
- package/api/resources/audiences/index.d.ts +2 -0
- package/api/resources/audiences/index.js +18 -0
- package/api/resources/audiences/types/Audience.d.ts +15 -0
- package/api/resources/audiences/types/Audience.js +5 -0
- package/api/resources/audiences/types/AudienceListResponse.d.ts +8 -0
- package/api/resources/audiences/types/AudienceListResponse.js +5 -0
- package/api/resources/audiences/types/AudienceMember.d.ts +10 -0
- package/api/resources/audiences/types/AudienceMember.js +5 -0
- package/api/resources/audiences/types/AudienceMemberGetResponse.d.ts +7 -0
- package/api/resources/audiences/types/AudienceMemberGetResponse.js +5 -0
- package/api/resources/audiences/types/AudienceMemberListResponse.d.ts +8 -0
- package/api/resources/audiences/types/AudienceMemberListResponse.js +5 -0
- package/api/resources/audiences/types/AudiencePutResponse.d.ts +7 -0
- package/api/resources/audiences/types/AudiencePutResponse.js +5 -0
- package/api/resources/audiences/types/AudienceRequest.d.ts +13 -0
- package/api/resources/audiences/types/AudienceRequest.js +5 -0
- package/api/resources/audiences/types/BaseFilterConfig.d.ts +11 -0
- package/api/resources/audiences/types/BaseFilterConfig.js +5 -0
- package/api/resources/audiences/types/ComparisonOperator.d.ts +19 -0
- package/api/resources/audiences/types/ComparisonOperator.js +21 -0
- package/api/resources/audiences/types/Filter.d.ts +5 -0
- package/api/resources/audiences/types/Filter.js +5 -0
- package/api/resources/audiences/types/FilterConfig.d.ts +5 -0
- package/api/resources/audiences/types/FilterConfig.js +5 -0
- package/api/resources/audiences/types/LogicalOperator.d.ts +8 -0
- package/api/resources/audiences/types/LogicalOperator.js +10 -0
- package/api/resources/audiences/types/NestedFilterConfig.d.ts +10 -0
- package/api/resources/audiences/types/NestedFilterConfig.js +5 -0
- package/api/resources/audiences/types/Operator.d.ts +5 -0
- package/api/resources/audiences/types/Operator.js +5 -0
- package/api/resources/audiences/types/SingleFilterConfig.d.ts +13 -0
- package/api/resources/audiences/types/SingleFilterConfig.js +5 -0
- package/api/resources/audiences/types/index.d.ts +15 -0
- package/api/resources/audiences/types/index.js +31 -0
- package/api/resources/auditEvents/client/Client.d.ts +29 -0
- package/api/resources/auditEvents/client/Client.js +155 -0
- package/api/resources/auditEvents/client/index.d.ts +1 -0
- package/api/resources/auditEvents/client/index.js +17 -0
- package/api/resources/auditEvents/client/requests/ListAuditEventsRequest.d.ts +10 -0
- package/api/resources/auditEvents/client/requests/ListAuditEventsRequest.js +5 -0
- package/api/resources/auditEvents/client/requests/index.d.ts +1 -0
- package/api/resources/auditEvents/index.d.ts +2 -0
- package/api/resources/auditEvents/index.js +18 -0
- package/api/resources/auditEvents/types/Actor.d.ts +7 -0
- package/api/resources/auditEvents/types/Actor.js +5 -0
- package/api/resources/auditEvents/types/AuditEvent.d.ts +12 -0
- package/api/resources/auditEvents/types/AuditEvent.js +5 -0
- package/api/resources/auditEvents/types/GetAuditEventParams.d.ts +6 -0
- package/api/resources/auditEvents/types/GetAuditEventParams.js +5 -0
- package/api/resources/auditEvents/types/ListAuditEventsParams.d.ts +6 -0
- package/api/resources/auditEvents/types/ListAuditEventsParams.js +5 -0
- package/api/resources/auditEvents/types/ListAuditEventsResponse.d.ts +8 -0
- package/api/resources/auditEvents/types/ListAuditEventsResponse.js +5 -0
- package/api/resources/auditEvents/types/Target.d.ts +7 -0
- package/api/resources/auditEvents/types/Target.js +5 -0
- package/api/resources/auditEvents/types/index.d.ts +6 -0
- package/api/resources/auditEvents/types/index.js +22 -0
- package/api/resources/authTokens/client/Client.d.ts +29 -0
- package/api/resources/authTokens/client/Client.js +111 -0
- package/api/resources/authTokens/client/index.d.ts +1 -0
- package/api/resources/authTokens/index.d.ts +2 -0
- package/api/resources/authTokens/index.js +18 -0
- package/api/resources/authTokens/types/AuthIssueTokenParameters.d.ts +7 -0
- package/api/resources/authTokens/types/AuthIssueTokenParameters.js +5 -0
- package/api/resources/authTokens/types/AuthIssueTokenResponse.d.ts +6 -0
- package/api/resources/authTokens/types/AuthIssueTokenResponse.js +5 -0
- package/api/resources/authTokens/types/index.d.ts +2 -0
- package/api/resources/authTokens/types/index.js +18 -0
- package/api/resources/automations/client/Client.d.ts +33 -0
- package/api/resources/automations/client/Client.js +158 -0
- package/api/resources/automations/client/index.d.ts +1 -0
- package/api/resources/automations/index.d.ts +2 -0
- package/api/resources/automations/index.js +18 -0
- package/api/resources/automations/types/Automation.d.ts +8 -0
- package/api/resources/automations/types/Automation.js +5 -0
- package/api/resources/automations/types/AutomationAdHocInvokeParams.d.ts +7 -0
- package/api/resources/automations/types/AutomationAdHocInvokeParams.js +5 -0
- package/api/resources/automations/types/AutomationCancelStep.d.ts +8 -0
- package/api/resources/automations/types/AutomationCancelStep.js +5 -0
- package/api/resources/automations/types/AutomationDelayStep.d.ts +8 -0
- package/api/resources/automations/types/AutomationDelayStep.js +5 -0
- package/api/resources/automations/types/AutomationInvokeParams.d.ts +11 -0
- package/api/resources/automations/types/AutomationInvokeParams.js +5 -0
- package/api/resources/automations/types/AutomationInvokeResponse.d.ts +6 -0
- package/api/resources/automations/types/AutomationInvokeResponse.js +5 -0
- package/api/resources/automations/types/AutomationInvokeStep.d.ts +8 -0
- package/api/resources/automations/types/AutomationInvokeStep.js +5 -0
- package/api/resources/automations/types/AutomationInvokeTemplateParams.d.ts +7 -0
- package/api/resources/automations/types/AutomationInvokeTemplateParams.js +5 -0
- package/api/resources/automations/types/AutomationRunContext.d.ts +11 -0
- package/api/resources/automations/types/AutomationRunContext.js +5 -0
- package/api/resources/automations/types/AutomationSendListStep.d.ts +12 -0
- package/api/resources/automations/types/AutomationSendListStep.js +5 -0
- package/api/resources/automations/types/AutomationSendStep.d.ts +13 -0
- package/api/resources/automations/types/AutomationSendStep.js +5 -0
- package/api/resources/automations/types/AutomationStep.d.ts +7 -0
- package/api/resources/automations/types/AutomationStep.js +5 -0
- package/api/resources/automations/types/AutomationStepAction.d.ts +12 -0
- package/api/resources/automations/types/AutomationStepAction.js +14 -0
- package/api/resources/automations/types/AutomationStepOption.d.ts +5 -0
- package/api/resources/automations/types/AutomationStepOption.js +5 -0
- package/api/resources/automations/types/AutomationUpdateProfileStep.d.ts +10 -0
- package/api/resources/automations/types/AutomationUpdateProfileStep.js +5 -0
- package/api/resources/automations/types/AutomationV2SendStep.d.ts +8 -0
- package/api/resources/automations/types/AutomationV2SendStep.js +5 -0
- package/api/resources/automations/types/MergeAlgorithm.d.ts +10 -0
- package/api/resources/automations/types/MergeAlgorithm.js +12 -0
- package/api/resources/automations/types/Profile.d.ts +4 -0
- package/api/resources/automations/types/Profile.js +5 -0
- package/api/resources/automations/types/index.d.ts +18 -0
- package/api/resources/automations/types/index.js +34 -0
- package/api/resources/brands/client/Client.d.ts +44 -0
- package/api/resources/brands/client/Client.js +264 -0
- package/api/resources/brands/client/index.d.ts +1 -0
- package/api/resources/brands/client/index.js +17 -0
- package/api/resources/brands/client/requests/ListBrandsRequest.d.ts +9 -0
- package/api/resources/brands/client/requests/ListBrandsRequest.js +5 -0
- package/api/resources/brands/client/requests/index.d.ts +1 -0
- package/api/resources/brands/index.d.ts +2 -0
- package/api/resources/brands/index.js +18 -0
- package/api/resources/brands/types/Brand.d.ts +20 -0
- package/api/resources/brands/types/Brand.js +5 -0
- package/api/resources/brands/types/BrandColors.d.ts +8 -0
- package/api/resources/brands/types/BrandColors.js +5 -0
- package/api/resources/brands/types/BrandGetAllResponse.d.ts +8 -0
- package/api/resources/brands/types/BrandGetAllResponse.js +5 -0
- package/api/resources/brands/types/BrandParameters.d.ts +11 -0
- package/api/resources/brands/types/BrandParameters.js +5 -0
- package/api/resources/brands/types/BrandPutParameters.d.ts +11 -0
- package/api/resources/brands/types/BrandPutParameters.js +5 -0
- package/api/resources/brands/types/BrandSettings.d.ts +8 -0
- package/api/resources/brands/types/BrandSettings.js +5 -0
- package/api/resources/brands/types/BrandSnippet.d.ts +8 -0
- package/api/resources/brands/types/BrandSnippet.js +5 -0
- package/api/resources/brands/types/BrandSnippets.d.ts +7 -0
- package/api/resources/brands/types/BrandSnippets.js +5 -0
- package/api/resources/brands/types/BrandsResponse.d.ts +8 -0
- package/api/resources/brands/types/BrandsResponse.js +5 -0
- package/api/resources/brands/types/index.d.ts +9 -0
- package/api/resources/brands/types/index.js +25 -0
- package/api/resources/bulk/client/Client.d.ts +48 -0
- package/api/resources/bulk/client/Client.js +317 -0
- package/api/resources/bulk/client/index.d.ts +1 -0
- package/api/resources/bulk/index.d.ts +2 -0
- package/api/resources/bulk/index.js +18 -0
- package/api/resources/bulk/types/BulkCreateJobParams.d.ts +7 -0
- package/api/resources/bulk/types/BulkCreateJobParams.js +5 -0
- package/api/resources/bulk/types/BulkCreateJobResponse.d.ts +6 -0
- package/api/resources/bulk/types/BulkCreateJobResponse.js +5 -0
- package/api/resources/bulk/types/BulkGetJobParams.d.ts +6 -0
- package/api/resources/bulk/types/BulkGetJobParams.js +5 -0
- package/api/resources/bulk/types/BulkGetJobResponse.d.ts +7 -0
- package/api/resources/bulk/types/BulkGetJobResponse.js +5 -0
- package/api/resources/bulk/types/BulkGetJobUsersParams.d.ts +7 -0
- package/api/resources/bulk/types/BulkGetJobUsersParams.js +5 -0
- package/api/resources/bulk/types/BulkGetJobUsersResponse.d.ts +8 -0
- package/api/resources/bulk/types/BulkGetJobUsersResponse.js +5 -0
- package/api/resources/bulk/types/BulkIngestError.d.ts +7 -0
- package/api/resources/bulk/types/BulkIngestError.js +5 -0
- package/api/resources/bulk/types/BulkIngestUsersParams.d.ts +8 -0
- package/api/resources/bulk/types/BulkIngestUsersParams.js +5 -0
- package/api/resources/bulk/types/BulkIngestUsersResponse.d.ts +8 -0
- package/api/resources/bulk/types/BulkIngestUsersResponse.js +5 -0
- package/api/resources/bulk/types/BulkJobStatus.d.ts +10 -0
- package/api/resources/bulk/types/BulkJobStatus.js +12 -0
- package/api/resources/bulk/types/BulkJobUserStatus.d.ts +9 -0
- package/api/resources/bulk/types/BulkJobUserStatus.js +11 -0
- package/api/resources/bulk/types/BulkMessageUserResponse.d.ts +8 -0
- package/api/resources/bulk/types/BulkMessageUserResponse.js +5 -0
- package/api/resources/bulk/types/BulkRunJobParams.d.ts +6 -0
- package/api/resources/bulk/types/BulkRunJobParams.js +5 -0
- package/api/resources/bulk/types/InboundBulkMessage.d.ts +7 -0
- package/api/resources/bulk/types/InboundBulkMessage.js +5 -0
- package/api/resources/bulk/types/InboundBulkMessageApiV1.d.ts +13 -0
- package/api/resources/bulk/types/InboundBulkMessageApiV1.js +5 -0
- package/api/resources/bulk/types/InboundBulkMessageApiV2.d.ts +4 -0
- package/api/resources/bulk/types/InboundBulkMessageApiV2.js +5 -0
- package/api/resources/bulk/types/InboundBulkMessageUser.d.ts +11 -0
- package/api/resources/bulk/types/InboundBulkMessageUser.js +5 -0
- package/api/resources/bulk/types/JobDetails.d.ts +11 -0
- package/api/resources/bulk/types/JobDetails.js +5 -0
- package/api/resources/bulk/types/index.d.ts +18 -0
- package/api/resources/bulk/types/index.js +34 -0
- package/api/resources/commons/errors/AlreadyExistsError.d.ts +8 -0
- package/api/resources/commons/errors/AlreadyExistsError.js +41 -0
- package/api/resources/commons/errors/BadRequestError.d.ts +8 -0
- package/api/resources/commons/errors/BadRequestError.js +41 -0
- package/api/resources/commons/errors/ConflictError.d.ts +8 -0
- package/api/resources/commons/errors/ConflictError.js +41 -0
- package/api/resources/commons/errors/MessageNotFoundError.d.ts +8 -0
- package/api/resources/commons/errors/MessageNotFoundError.js +41 -0
- package/api/resources/commons/errors/NotFoundError.d.ts +8 -0
- package/api/resources/commons/errors/NotFoundError.js +41 -0
- package/api/resources/commons/errors/PaymentRequiredError.d.ts +8 -0
- package/api/resources/commons/errors/PaymentRequiredError.js +41 -0
- package/api/resources/commons/errors/index.d.ts +6 -0
- package/api/resources/commons/errors/index.js +22 -0
- package/api/resources/commons/index.d.ts +2 -0
- package/api/resources/commons/index.js +18 -0
- package/api/resources/commons/types/AlreadyExists.d.ts +7 -0
- package/api/resources/commons/types/AlreadyExists.js +5 -0
- package/api/resources/commons/types/BadRequest.d.ts +7 -0
- package/api/resources/commons/types/BadRequest.js +5 -0
- package/api/resources/commons/types/BaseError.d.ts +7 -0
- package/api/resources/commons/types/BaseError.js +5 -0
- package/api/resources/commons/types/ChannelClassification.d.ts +10 -0
- package/api/resources/commons/types/ChannelClassification.js +12 -0
- package/api/resources/commons/types/ChannelPreference.d.ts +7 -0
- package/api/resources/commons/types/ChannelPreference.js +5 -0
- package/api/resources/commons/types/Conflict.d.ts +7 -0
- package/api/resources/commons/types/Conflict.js +5 -0
- package/api/resources/commons/types/Email.d.ts +7 -0
- package/api/resources/commons/types/Email.js +5 -0
- package/api/resources/commons/types/MessageNotFound.d.ts +7 -0
- package/api/resources/commons/types/MessageNotFound.js +5 -0
- package/api/resources/commons/types/NotFound.d.ts +7 -0
- package/api/resources/commons/types/NotFound.js +5 -0
- package/api/resources/commons/types/NotificationPreferenceDetails.d.ts +9 -0
- package/api/resources/commons/types/NotificationPreferenceDetails.js +5 -0
- package/api/resources/commons/types/NotificationPreferences.d.ts +5 -0
- package/api/resources/commons/types/NotificationPreferences.js +5 -0
- package/api/resources/commons/types/Paging.d.ts +7 -0
- package/api/resources/commons/types/Paging.js +5 -0
- package/api/resources/commons/types/PaymentRequired.d.ts +7 -0
- package/api/resources/commons/types/PaymentRequired.js +5 -0
- package/api/resources/commons/types/PreferenceStatus.d.ts +9 -0
- package/api/resources/commons/types/PreferenceStatus.js +11 -0
- package/api/resources/commons/types/RecipientPreferences.d.ts +8 -0
- package/api/resources/commons/types/RecipientPreferences.js +5 -0
- package/api/resources/commons/types/Rule.d.ts +7 -0
- package/api/resources/commons/types/Rule.js +5 -0
- package/api/resources/commons/types/index.d.ts +16 -0
- package/api/resources/commons/types/index.js +32 -0
- package/api/resources/index.d.ts +39 -0
- package/api/resources/index.js +68 -0
- package/api/resources/lists/client/Client.d.ts +63 -0
- package/api/resources/lists/client/Client.js +476 -0
- package/api/resources/lists/client/index.d.ts +1 -0
- package/api/resources/lists/client/index.js +17 -0
- package/api/resources/lists/client/requests/GetAllListsRequest.d.ts +14 -0
- package/api/resources/lists/client/requests/GetAllListsRequest.js +5 -0
- package/api/resources/lists/client/requests/GetListRequest.d.ts +14 -0
- package/api/resources/lists/client/requests/GetListRequest.js +5 -0
- package/api/resources/lists/client/requests/GetSubscriptionForListRequest.d.ts +9 -0
- package/api/resources/lists/client/requests/GetSubscriptionForListRequest.js +5 -0
- package/api/resources/lists/client/requests/SubscribeUserToListRequest.d.ts +9 -0
- package/api/resources/lists/client/requests/SubscribeUserToListRequest.js +5 -0
- package/api/resources/lists/client/requests/index.d.ts +4 -0
- package/api/resources/lists/index.d.ts +2 -0
- package/api/resources/lists/index.js +18 -0
- package/api/resources/lists/types/List.d.ts +9 -0
- package/api/resources/lists/types/List.js +5 -0
- package/api/resources/lists/types/ListFindByRecipientIdParams.d.ts +6 -0
- package/api/resources/lists/types/ListFindByRecipientIdParams.js +5 -0
- package/api/resources/lists/types/ListFindByRecipientIdResponse.d.ts +8 -0
- package/api/resources/lists/types/ListFindByRecipientIdResponse.js +5 -0
- package/api/resources/lists/types/ListGetAllParams.d.ts +7 -0
- package/api/resources/lists/types/ListGetAllParams.js +5 -0
- package/api/resources/lists/types/ListGetAllResponse.d.ts +8 -0
- package/api/resources/lists/types/ListGetAllResponse.js +5 -0
- package/api/resources/lists/types/ListGetSubscriptionsParams.d.ts +6 -0
- package/api/resources/lists/types/ListGetSubscriptionsParams.js +5 -0
- package/api/resources/lists/types/ListGetSubscriptionsResponse.d.ts +8 -0
- package/api/resources/lists/types/ListGetSubscriptionsResponse.js +5 -0
- package/api/resources/lists/types/ListPutParams.d.ts +8 -0
- package/api/resources/lists/types/ListPutParams.js +5 -0
- package/api/resources/lists/types/ListSubscriptionRecipient.d.ts +9 -0
- package/api/resources/lists/types/ListSubscriptionRecipient.js +5 -0
- package/api/resources/lists/types/PutSubscriptionsRecipient.d.ts +8 -0
- package/api/resources/lists/types/PutSubscriptionsRecipient.js +5 -0
- package/api/resources/lists/types/RecipientSubscriptionsResponse.d.ts +8 -0
- package/api/resources/lists/types/RecipientSubscriptionsResponse.js +5 -0
- package/api/resources/lists/types/index.d.ts +11 -0
- package/api/resources/lists/types/index.js +27 -0
- package/api/resources/messages/client/Client.d.ts +51 -0
- package/api/resources/messages/client/Client.js +391 -0
- package/api/resources/messages/client/index.d.ts +1 -0
- package/api/resources/messages/client/index.js +17 -0
- package/api/resources/messages/client/requests/GetMessageHistoryRequest.d.ts +9 -0
- package/api/resources/messages/client/requests/GetMessageHistoryRequest.js +5 -0
- package/api/resources/messages/client/requests/ListMessagesRequest.d.ts +49 -0
- package/api/resources/messages/client/requests/ListMessagesRequest.js +5 -0
- package/api/resources/messages/client/requests/index.d.ts +2 -0
- package/api/resources/messages/index.d.ts +2 -0
- package/api/resources/messages/index.js +18 -0
- package/api/resources/messages/types/ListMessagesResponse.d.ts +10 -0
- package/api/resources/messages/types/ListMessagesResponse.js +5 -0
- package/api/resources/messages/types/MessageDetails.d.ts +30 -0
- package/api/resources/messages/types/MessageDetails.js +5 -0
- package/api/resources/messages/types/MessageHistoryResponse.d.ts +7 -0
- package/api/resources/messages/types/MessageHistoryResponse.js +5 -0
- package/api/resources/messages/types/MessageStatus.d.ts +42 -0
- package/api/resources/messages/types/MessageStatus.js +17 -0
- package/api/resources/messages/types/Reason.d.ts +30 -0
- package/api/resources/messages/types/Reason.js +14 -0
- package/api/resources/messages/types/RenderOutput.d.ts +12 -0
- package/api/resources/messages/types/RenderOutput.js +5 -0
- package/api/resources/messages/types/RenderOutputResponse.d.ts +8 -0
- package/api/resources/messages/types/RenderOutputResponse.js +5 -0
- package/api/resources/messages/types/RenderedMessageBlock.d.ts +9 -0
- package/api/resources/messages/types/RenderedMessageBlock.js +5 -0
- package/api/resources/messages/types/RenderedMessageContent.d.ts +18 -0
- package/api/resources/messages/types/RenderedMessageContent.js +5 -0
- package/api/resources/messages/types/index.d.ts +9 -0
- package/api/resources/messages/types/index.js +25 -0
- package/api/resources/profiles/client/Client.d.ts +64 -0
- package/api/resources/profiles/client/Client.js +428 -0
- package/api/resources/profiles/client/index.d.ts +1 -0
- package/api/resources/profiles/client/index.js +17 -0
- package/api/resources/profiles/client/requests/GetListSubscriptionsRequest.d.ts +9 -0
- package/api/resources/profiles/client/requests/GetListSubscriptionsRequest.js +5 -0
- package/api/resources/profiles/client/requests/MergeProfileRequest.d.ts +7 -0
- package/api/resources/profiles/client/requests/MergeProfileRequest.js +5 -0
- package/api/resources/profiles/client/requests/ReplaceProfileRequest.d.ts +7 -0
- package/api/resources/profiles/client/requests/ReplaceProfileRequest.js +5 -0
- package/api/resources/profiles/client/requests/index.d.ts +3 -0
- package/api/resources/profiles/index.d.ts +2 -0
- package/api/resources/profiles/index.js +18 -0
- package/api/resources/profiles/types/Address.d.ts +11 -0
- package/api/resources/profiles/types/Address.js +5 -0
- package/api/resources/profiles/types/AirshipProfile.d.ts +8 -0
- package/api/resources/profiles/types/AirshipProfile.js +5 -0
- package/api/resources/profiles/types/AirshipProfileAudience.d.ts +6 -0
- package/api/resources/profiles/types/AirshipProfileAudience.js +5 -0
- package/api/resources/profiles/types/DeleteListSubscriptionResponse.d.ts +6 -0
- package/api/resources/profiles/types/DeleteListSubscriptionResponse.js +5 -0
- package/api/resources/profiles/types/DeviceType.d.ts +4 -0
- package/api/resources/profiles/types/DeviceType.js +5 -0
- package/api/resources/profiles/types/Discord.d.ts +5 -0
- package/api/resources/profiles/types/Discord.js +5 -0
- package/api/resources/profiles/types/Expo.d.ts +5 -0
- package/api/resources/profiles/types/Expo.js +5 -0
- package/api/resources/profiles/types/Intercom.d.ts +8 -0
- package/api/resources/profiles/types/Intercom.js +5 -0
- package/api/resources/profiles/types/IntercomeRecipient.d.ts +6 -0
- package/api/resources/profiles/types/IntercomeRecipient.js +5 -0
- package/api/resources/profiles/types/MergeProfileResponse.d.ts +6 -0
- package/api/resources/profiles/types/MergeProfileResponse.js +5 -0
- package/api/resources/profiles/types/MsTeams.d.ts +5 -0
- package/api/resources/profiles/types/MsTeams.js +5 -0
- package/api/resources/profiles/types/MultipleTokens.d.ts +7 -0
- package/api/resources/profiles/types/MultipleTokens.js +5 -0
- package/api/resources/profiles/types/ProfileGetParameters.d.ts +6 -0
- package/api/resources/profiles/types/ProfileGetParameters.js +5 -0
- package/api/resources/profiles/types/ProfileGetResponse.d.ts +6 -0
- package/api/resources/profiles/types/ProfileGetResponse.js +5 -0
- package/api/resources/profiles/types/ReplaceProfileResponse.d.ts +6 -0
- package/api/resources/profiles/types/ReplaceProfileResponse.js +5 -0
- package/api/resources/profiles/types/SendDirectMessage.d.ts +6 -0
- package/api/resources/profiles/types/SendDirectMessage.js +5 -0
- package/api/resources/profiles/types/SendToChannel.d.ts +6 -0
- package/api/resources/profiles/types/SendToChannel.js +5 -0
- package/api/resources/profiles/types/SendToMsTeamsChannel.d.ts +8 -0
- package/api/resources/profiles/types/SendToMsTeamsChannel.js +5 -0
- package/api/resources/profiles/types/SendToMsTeamsUser.d.ts +8 -0
- package/api/resources/profiles/types/SendToMsTeamsUser.js +5 -0
- package/api/resources/profiles/types/SnoozeRule.d.ts +9 -0
- package/api/resources/profiles/types/SnoozeRule.js +5 -0
- package/api/resources/profiles/types/SnoozeRuleType.d.ts +7 -0
- package/api/resources/profiles/types/SnoozeRuleType.js +9 -0
- package/api/resources/profiles/types/SubscribeToListsRequest.d.ts +8 -0
- package/api/resources/profiles/types/SubscribeToListsRequest.js +5 -0
- package/api/resources/profiles/types/SubscribeToListsResponse.d.ts +6 -0
- package/api/resources/profiles/types/SubscribeToListsResponse.js +5 -0
- package/api/resources/profiles/types/Token.d.ts +6 -0
- package/api/resources/profiles/types/Token.js +5 -0
- package/api/resources/profiles/types/UserProfile.d.ts +37 -0
- package/api/resources/profiles/types/UserProfile.js +5 -0
- package/api/resources/profiles/types/index.d.ts +25 -0
- package/api/resources/profiles/types/index.js +41 -0
- package/api/resources/send/index.d.ts +1 -0
- package/api/resources/send/index.js +17 -0
- package/api/resources/send/types/Attachment.d.ts +4 -0
- package/api/resources/send/types/Attachment.js +5 -0
- package/api/resources/send/types/AudienceFilter.d.ts +9 -0
- package/api/resources/send/types/AudienceFilter.js +5 -0
- package/api/resources/send/types/AudienceRecipient.d.ts +10 -0
- package/api/resources/send/types/AudienceRecipient.js +5 -0
- package/api/resources/send/types/BaseMessage.d.ts +37 -0
- package/api/resources/send/types/BaseMessage.js +5 -0
- package/api/resources/send/types/BaseSocialPresence.d.ts +6 -0
- package/api/resources/send/types/BaseSocialPresence.js +5 -0
- package/api/resources/send/types/BrandSettingsEmail.d.ts +10 -0
- package/api/resources/send/types/BrandSettingsEmail.js +5 -0
- package/api/resources/send/types/BrandSettingsInApp.d.ts +14 -0
- package/api/resources/send/types/BrandSettingsInApp.js +5 -0
- package/api/resources/send/types/BrandSettingsSocialPresence.d.ts +12 -0
- package/api/resources/send/types/BrandSettingsSocialPresence.js +5 -0
- package/api/resources/send/types/BrandTemplate.d.ts +12 -0
- package/api/resources/send/types/BrandTemplate.js +5 -0
- package/api/resources/send/types/BrandTemplateOverride.d.ts +9 -0
- package/api/resources/send/types/BrandTemplateOverride.js +5 -0
- package/api/resources/send/types/Channel.d.ts +36 -0
- package/api/resources/send/types/Channel.js +5 -0
- package/api/resources/send/types/ChannelMetadata.d.ts +7 -0
- package/api/resources/send/types/ChannelMetadata.js +5 -0
- package/api/resources/send/types/ChannelSource.d.ts +9 -0
- package/api/resources/send/types/ChannelSource.js +11 -0
- package/api/resources/send/types/Content.d.ts +5 -0
- package/api/resources/send/types/Content.js +5 -0
- package/api/resources/send/types/ContentMessage.d.ts +17 -0
- package/api/resources/send/types/ContentMessage.js +5 -0
- package/api/resources/send/types/Criteria.d.ts +10 -0
- package/api/resources/send/types/Criteria.js +12 -0
- package/api/resources/send/types/Delay.d.ts +7 -0
- package/api/resources/send/types/Delay.js +5 -0
- package/api/resources/send/types/ElementalActionNode.d.ts +23 -0
- package/api/resources/send/types/ElementalActionNode.js +5 -0
- package/api/resources/send/types/ElementalBaseNode.d.ts +9 -0
- package/api/resources/send/types/ElementalBaseNode.js +5 -0
- package/api/resources/send/types/ElementalChannelNode.d.ts +35 -0
- package/api/resources/send/types/ElementalChannelNode.js +5 -0
- package/api/resources/send/types/ElementalContent.d.ts +10 -0
- package/api/resources/send/types/ElementalContent.js +5 -0
- package/api/resources/send/types/ElementalContentSugar.d.ts +12 -0
- package/api/resources/send/types/ElementalContentSugar.js +5 -0
- package/api/resources/send/types/ElementalDividerNode.d.ts +11 -0
- package/api/resources/send/types/ElementalDividerNode.js +5 -0
- package/api/resources/send/types/ElementalGroupNode.d.ts +11 -0
- package/api/resources/send/types/ElementalGroupNode.js +5 -0
- package/api/resources/send/types/ElementalImageNode.d.ts +19 -0
- package/api/resources/send/types/ElementalImageNode.js +5 -0
- package/api/resources/send/types/ElementalMetaNode.d.ts +14 -0
- package/api/resources/send/types/ElementalMetaNode.js +5 -0
- package/api/resources/send/types/ElementalNode.d.ts +31 -0
- package/api/resources/send/types/ElementalNode.js +5 -0
- package/api/resources/send/types/ElementalQuoteNode.d.ts +18 -0
- package/api/resources/send/types/ElementalQuoteNode.js +5 -0
- package/api/resources/send/types/ElementalTextNode.d.ts +32 -0
- package/api/resources/send/types/ElementalTextNode.js +5 -0
- package/api/resources/send/types/EmailFooter.d.ts +7 -0
- package/api/resources/send/types/EmailFooter.js +5 -0
- package/api/resources/send/types/EmailHead.d.ts +7 -0
- package/api/resources/send/types/EmailHead.js +5 -0
- package/api/resources/send/types/EmailHeader.d.ts +9 -0
- package/api/resources/send/types/EmailHeader.js +5 -0
- package/api/resources/send/types/ExpiresInType.d.ts +4 -0
- package/api/resources/send/types/ExpiresInType.js +5 -0
- package/api/resources/send/types/Expiry.d.ts +10 -0
- package/api/resources/send/types/Expiry.js +5 -0
- package/api/resources/send/types/IActionButtonStyle.d.ts +8 -0
- package/api/resources/send/types/IActionButtonStyle.js +10 -0
- package/api/resources/send/types/IAlignment.d.ts +10 -0
- package/api/resources/send/types/IAlignment.js +12 -0
- package/api/resources/send/types/IPreferences.d.ts +5 -0
- package/api/resources/send/types/IPreferences.js +5 -0
- package/api/resources/send/types/IProfilePreferences.d.ts +9 -0
- package/api/resources/send/types/IProfilePreferences.js +5 -0
- package/api/resources/send/types/Icons.d.ts +7 -0
- package/api/resources/send/types/Icons.js +5 -0
- package/api/resources/send/types/InAppPlacement.d.ts +10 -0
- package/api/resources/send/types/InAppPlacement.js +12 -0
- package/api/resources/send/types/InvalidListPatternRecipient.d.ts +7 -0
- package/api/resources/send/types/InvalidListPatternRecipient.js +5 -0
- package/api/resources/send/types/InvalidListRecipient.d.ts +7 -0
- package/api/resources/send/types/InvalidListRecipient.js +5 -0
- package/api/resources/send/types/InvalidUserRecipient.d.ts +7 -0
- package/api/resources/send/types/InvalidUserRecipient.js +5 -0
- package/api/resources/send/types/ListFilter.d.ts +9 -0
- package/api/resources/send/types/ListFilter.js +5 -0
- package/api/resources/send/types/ListPatternRecipient.d.ts +8 -0
- package/api/resources/send/types/ListPatternRecipient.js +5 -0
- package/api/resources/send/types/ListPatternRecipientType.d.ts +5 -0
- package/api/resources/send/types/ListPatternRecipientType.js +5 -0
- package/api/resources/send/types/ListRecipient.d.ts +9 -0
- package/api/resources/send/types/ListRecipient.js +5 -0
- package/api/resources/send/types/ListRecipientType.d.ts +5 -0
- package/api/resources/send/types/ListRecipientType.js +5 -0
- package/api/resources/send/types/Locale.d.ts +6 -0
- package/api/resources/send/types/Locale.js +5 -0
- package/api/resources/send/types/Locales.d.ts +5 -0
- package/api/resources/send/types/Locales.js +5 -0
- package/api/resources/send/types/Logo.d.ts +7 -0
- package/api/resources/send/types/Logo.js +5 -0
- package/api/resources/send/types/Message.d.ts +11 -0
- package/api/resources/send/types/Message.js +5 -0
- package/api/resources/send/types/MessageChannelEmailOverride.d.ts +16 -0
- package/api/resources/send/types/MessageChannelEmailOverride.js +5 -0
- package/api/resources/send/types/MessageChannels.d.ts +5 -0
- package/api/resources/send/types/MessageChannels.js +5 -0
- package/api/resources/send/types/MessageContext.d.ts +11 -0
- package/api/resources/send/types/MessageContext.js +5 -0
- package/api/resources/send/types/MessageData.d.ts +4 -0
- package/api/resources/send/types/MessageData.js +5 -0
- package/api/resources/send/types/MessageMetadata.d.ts +14 -0
- package/api/resources/send/types/MessageMetadata.js +5 -0
- package/api/resources/send/types/MessageProviders.d.ts +5 -0
- package/api/resources/send/types/MessageProviders.js +5 -0
- package/api/resources/send/types/MessageProvidersType.d.ts +17 -0
- package/api/resources/send/types/MessageProvidersType.js +5 -0
- package/api/resources/send/types/MessageRecipient.d.ts +5 -0
- package/api/resources/send/types/MessageRecipient.js +5 -0
- package/api/resources/send/types/Metadata.d.ts +7 -0
- package/api/resources/send/types/Metadata.js +5 -0
- package/api/resources/send/types/Override.d.ts +8 -0
- package/api/resources/send/types/Override.js +10 -0
- package/api/resources/send/types/Preference.d.ts +10 -0
- package/api/resources/send/types/Preference.js +5 -0
- package/api/resources/send/types/Preferences.d.ts +6 -0
- package/api/resources/send/types/Preferences.js +5 -0
- package/api/resources/send/types/Recipient.d.ts +5 -0
- package/api/resources/send/types/Recipient.js +5 -0
- package/api/resources/send/types/Routing.d.ts +20 -0
- package/api/resources/send/types/Routing.js +5 -0
- package/api/resources/send/types/RoutingChannel.d.ts +5 -0
- package/api/resources/send/types/RoutingChannel.js +5 -0
- package/api/resources/send/types/RoutingMethod.d.ts +8 -0
- package/api/resources/send/types/RoutingMethod.js +10 -0
- package/api/resources/send/types/RoutingStrategyChannel.d.ts +11 -0
- package/api/resources/send/types/RoutingStrategyChannel.js +5 -0
- package/api/resources/send/types/RoutingStrategyProvider.d.ts +10 -0
- package/api/resources/send/types/RoutingStrategyProvider.js +5 -0
- package/api/resources/send/types/RuleType.d.ts +9 -0
- package/api/resources/send/types/RuleType.js +11 -0
- package/api/resources/send/types/TemplateMessage.d.ts +12 -0
- package/api/resources/send/types/TemplateMessage.js +5 -0
- package/api/resources/send/types/TextAlign.d.ts +9 -0
- package/api/resources/send/types/TextAlign.js +11 -0
- package/api/resources/send/types/TextStyle.d.ts +10 -0
- package/api/resources/send/types/TextStyle.js +12 -0
- package/api/resources/send/types/Timeout.d.ts +11 -0
- package/api/resources/send/types/Timeout.js +5 -0
- package/api/resources/send/types/Timeouts.d.ts +7 -0
- package/api/resources/send/types/Timeouts.js +5 -0
- package/api/resources/send/types/TrackingOverride.d.ts +6 -0
- package/api/resources/send/types/TrackingOverride.js +5 -0
- package/api/resources/send/types/UserRecipient.d.ts +23 -0
- package/api/resources/send/types/UserRecipient.js +5 -0
- package/api/resources/send/types/UserRecipientType.d.ts +5 -0
- package/api/resources/send/types/UserRecipientType.js +5 -0
- package/api/resources/send/types/Utm.d.ts +10 -0
- package/api/resources/send/types/Utm.js +5 -0
- package/api/resources/send/types/WidgetBackground.d.ts +7 -0
- package/api/resources/send/types/WidgetBackground.js +5 -0
- package/api/resources/send/types/index.d.ts +81 -0
- package/api/resources/send/types/index.js +97 -0
- package/api/resources/templates/client/Client.d.ts +25 -0
- package/api/resources/templates/client/Client.js +112 -0
- package/api/resources/templates/client/index.d.ts +1 -0
- package/api/resources/templates/client/index.js +17 -0
- package/api/resources/templates/client/requests/ListTemplatesRequest.d.ts +9 -0
- package/api/resources/templates/client/requests/ListTemplatesRequest.js +5 -0
- package/api/resources/templates/client/requests/index.d.ts +1 -0
- package/api/resources/templates/index.d.ts +2 -0
- package/api/resources/templates/index.js +18 -0
- package/api/resources/templates/types/ChannelIdentifier.d.ts +4 -0
- package/api/resources/templates/types/ChannelIdentifier.js +5 -0
- package/api/resources/templates/types/ListTemplatesResponse.d.ts +9 -0
- package/api/resources/templates/types/ListTemplatesResponse.js +5 -0
- package/api/resources/templates/types/NotificationTemplates.d.ts +18 -0
- package/api/resources/templates/types/NotificationTemplates.js +5 -0
- package/api/resources/templates/types/RoutingStrategy.d.ts +10 -0
- package/api/resources/templates/types/RoutingStrategy.js +5 -0
- package/api/resources/templates/types/RoutingStrategyMethod.d.ts +8 -0
- package/api/resources/templates/types/RoutingStrategyMethod.js +10 -0
- package/api/resources/templates/types/Tag.d.ts +7 -0
- package/api/resources/templates/types/Tag.js +5 -0
- package/api/resources/templates/types/TagData.d.ts +9 -0
- package/api/resources/templates/types/TagData.js +5 -0
- package/api/resources/templates/types/index.d.ts +7 -0
- package/api/resources/templates/types/index.js +23 -0
- package/api/resources/tenants/client/Client.d.ts +25 -0
- package/api/resources/tenants/client/Client.js +113 -0
- package/api/resources/tenants/client/index.d.ts +1 -0
- package/api/resources/tenants/index.d.ts +2 -0
- package/api/resources/tenants/index.js +18 -0
- package/api/resources/tenants/types/CreateOrReplaceTenantRequest.d.ts +18 -0
- package/api/resources/tenants/types/CreateOrReplaceTenantRequest.js +5 -0
- package/api/resources/tenants/types/CreateOrReplaceTenantResponse.d.ts +20 -0
- package/api/resources/tenants/types/CreateOrReplaceTenantResponse.js +5 -0
- package/api/resources/tenants/types/DefaultPreferences.d.ts +7 -0
- package/api/resources/tenants/types/DefaultPreferences.js +5 -0
- package/api/resources/tenants/types/SubscriptionTopic.d.ts +9 -0
- package/api/resources/tenants/types/SubscriptionTopic.js +5 -0
- package/api/resources/tenants/types/SubscriptionTopicStatus.d.ts +9 -0
- package/api/resources/tenants/types/SubscriptionTopicStatus.js +11 -0
- package/api/resources/tenants/types/TemplateProperty.d.ts +4 -0
- package/api/resources/tenants/types/TemplateProperty.js +5 -0
- package/api/resources/tenants/types/index.d.ts +6 -0
- package/api/resources/tenants/types/index.js +22 -0
- package/api/resources/tokenManagement/client/Client.d.ts +46 -0
- package/api/resources/tokenManagement/client/Client.js +311 -0
- package/api/resources/tokenManagement/client/index.d.ts +1 -0
- package/api/resources/tokenManagement/index.d.ts +2 -0
- package/api/resources/tokenManagement/index.js +18 -0
- package/api/resources/tokenManagement/types/DeleteUserTokenOpts.d.ts +7 -0
- package/api/resources/tokenManagement/types/DeleteUserTokenOpts.js +5 -0
- package/api/resources/tokenManagement/types/Device.d.ts +17 -0
- package/api/resources/tokenManagement/types/Device.js +5 -0
- package/api/resources/tokenManagement/types/ExpiryDate.d.ts +4 -0
- package/api/resources/tokenManagement/types/ExpiryDate.js +5 -0
- package/api/resources/tokenManagement/types/GetAllTokensResponse.d.ts +8 -0
- package/api/resources/tokenManagement/types/GetAllTokensResponse.js +5 -0
- package/api/resources/tokenManagement/types/GetUserTokenOpts.d.ts +7 -0
- package/api/resources/tokenManagement/types/GetUserTokenOpts.js +5 -0
- package/api/resources/tokenManagement/types/GetUserTokenResponse.d.ts +9 -0
- package/api/resources/tokenManagement/types/GetUserTokenResponse.js +5 -0
- package/api/resources/tokenManagement/types/GetUserTokensOpts.d.ts +6 -0
- package/api/resources/tokenManagement/types/GetUserTokensOpts.js +5 -0
- package/api/resources/tokenManagement/types/PatchOp.d.ts +12 -0
- package/api/resources/tokenManagement/types/PatchOp.js +14 -0
- package/api/resources/tokenManagement/types/PatchOperation.d.ts +11 -0
- package/api/resources/tokenManagement/types/PatchOperation.js +5 -0
- package/api/resources/tokenManagement/types/PatchUserTokenOpts.d.ts +7 -0
- package/api/resources/tokenManagement/types/PatchUserTokenOpts.js +5 -0
- package/api/resources/tokenManagement/types/ProviderKey.d.ts +10 -0
- package/api/resources/tokenManagement/types/ProviderKey.js +12 -0
- package/api/resources/tokenManagement/types/PutUserTokenOpts.d.ts +8 -0
- package/api/resources/tokenManagement/types/PutUserTokenOpts.js +5 -0
- package/api/resources/tokenManagement/types/PutUserTokensOpts.d.ts +8 -0
- package/api/resources/tokenManagement/types/PutUserTokensOpts.js +5 -0
- package/api/resources/tokenManagement/types/TokenStatus.d.ts +10 -0
- package/api/resources/tokenManagement/types/TokenStatus.js +12 -0
- package/api/resources/tokenManagement/types/Tracking.d.ts +13 -0
- package/api/resources/tokenManagement/types/Tracking.js +5 -0
- package/api/resources/tokenManagement/types/UserToken.d.ts +17 -0
- package/api/resources/tokenManagement/types/UserToken.js +5 -0
- package/api/resources/tokenManagement/types/index.d.ts +16 -0
- package/api/resources/tokenManagement/types/index.js +32 -0
- package/api/resources/translations/client/Client.d.ts +30 -0
- package/api/resources/translations/client/Client.js +163 -0
- package/api/resources/translations/client/index.d.ts +1 -0
- package/api/resources/translations/client/index.js +2 -0
- package/api/resources/translations/index.d.ts +1 -0
- package/api/resources/translations/index.js +17 -0
- package/api/resources/userPreferences/client/Client.d.ts +36 -0
- package/api/resources/userPreferences/client/Client.js +212 -0
- package/api/resources/userPreferences/client/index.d.ts +1 -0
- package/api/resources/userPreferences/client/index.js +2 -0
- package/api/resources/userPreferences/index.d.ts +2 -0
- package/api/resources/userPreferences/index.js +18 -0
- package/api/resources/userPreferences/types/TopicPreference.d.ts +13 -0
- package/api/resources/userPreferences/types/TopicPreference.js +5 -0
- package/api/resources/userPreferences/types/UpdateSubscriptionTopicRequest.d.ts +11 -0
- package/api/resources/userPreferences/types/UpdateSubscriptionTopicRequest.js +5 -0
- package/api/resources/userPreferences/types/UpdateSubscriptionTopicResponse.d.ts +6 -0
- package/api/resources/userPreferences/types/UpdateSubscriptionTopicResponse.js +5 -0
- package/api/resources/userPreferences/types/UserPreferences.d.ts +9 -0
- package/api/resources/userPreferences/types/UserPreferences.js +5 -0
- package/api/resources/userPreferences/types/index.d.ts +4 -0
- package/api/resources/userPreferences/types/index.js +20 -0
- package/api/types/SendMessageResponse.d.ts +14 -0
- package/api/types/SendMessageResponse.js +5 -0
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +17 -0
- package/core/auth/BasicAuth.d.ts +8 -0
- package/core/auth/BasicAuth.js +26 -0
- package/core/auth/BearerToken.d.ts +5 -0
- package/core/auth/BearerToken.js +15 -0
- package/core/auth/index.d.ts +2 -0
- package/core/auth/index.js +7 -0
- package/core/fetcher/APIResponse.d.ts +9 -0
- package/core/fetcher/APIResponse.js +2 -0
- package/core/fetcher/Fetcher.d.ts +38 -0
- package/core/fetcher/Fetcher.js +129 -0
- package/core/fetcher/Supplier.d.ts +4 -0
- package/core/fetcher/Supplier.js +22 -0
- package/core/fetcher/index.d.ts +4 -0
- package/core/fetcher/index.js +7 -0
- package/core/index.d.ts +2 -0
- package/core/index.js +18 -0
- package/dist/Client.d.ts +71 -0
- package/dist/Client.js +181 -0
- package/dist/api/client/index.d.ts +1 -0
- package/dist/api/client/index.js +17 -0
- package/dist/api/client/requests/SendMessageRequest.d.ts +8 -0
- package/dist/api/client/requests/SendMessageRequest.js +5 -0
- package/dist/api/client/requests/index.d.ts +1 -0
- package/dist/api/client/requests/index.js +2 -0
- package/dist/api/index.d.ts +3 -0
- package/dist/api/index.js +19 -0
- package/dist/api/resources/audiences/client/Client.d.ts +43 -0
- package/dist/api/resources/audiences/client/Client.js +304 -0
- package/dist/api/resources/audiences/client/index.d.ts +1 -0
- package/dist/api/resources/audiences/client/index.js +17 -0
- package/dist/api/resources/audiences/client/requests/ListAudienceMembersRequest.d.ts +10 -0
- package/dist/api/resources/audiences/client/requests/ListAudienceMembersRequest.js +5 -0
- package/dist/api/resources/audiences/client/requests/ListAudiencesRequest.d.ts +10 -0
- package/dist/api/resources/audiences/client/requests/ListAudiencesRequest.js +5 -0
- package/dist/api/resources/audiences/client/requests/index.d.ts +2 -0
- package/dist/api/resources/audiences/client/requests/index.js +2 -0
- package/dist/api/resources/audiences/index.d.ts +2 -0
- package/dist/api/resources/audiences/index.js +18 -0
- package/dist/api/resources/audiences/types/Audience.d.ts +15 -0
- package/dist/api/resources/audiences/types/Audience.js +5 -0
- package/dist/api/resources/audiences/types/AudienceListResponse.d.ts +8 -0
- package/dist/api/resources/audiences/types/AudienceListResponse.js +5 -0
- package/dist/api/resources/audiences/types/AudienceMember.d.ts +10 -0
- package/dist/api/resources/audiences/types/AudienceMember.js +5 -0
- package/dist/api/resources/audiences/types/AudienceMemberGetResponse.d.ts +7 -0
- package/dist/api/resources/audiences/types/AudienceMemberGetResponse.js +5 -0
- package/dist/api/resources/audiences/types/AudienceMemberListResponse.d.ts +8 -0
- package/dist/api/resources/audiences/types/AudienceMemberListResponse.js +5 -0
- package/dist/api/resources/audiences/types/AudiencePutResponse.d.ts +7 -0
- package/dist/api/resources/audiences/types/AudiencePutResponse.js +5 -0
- package/dist/api/resources/audiences/types/AudienceRequest.d.ts +13 -0
- package/dist/api/resources/audiences/types/AudienceRequest.js +5 -0
- package/dist/api/resources/audiences/types/BaseFilterConfig.d.ts +11 -0
- package/dist/api/resources/audiences/types/BaseFilterConfig.js +5 -0
- package/dist/api/resources/audiences/types/ComparisonOperator.d.ts +19 -0
- package/dist/api/resources/audiences/types/ComparisonOperator.js +21 -0
- package/dist/api/resources/audiences/types/Filter.d.ts +5 -0
- package/dist/api/resources/audiences/types/Filter.js +5 -0
- package/dist/api/resources/audiences/types/FilterConfig.d.ts +5 -0
- package/dist/api/resources/audiences/types/FilterConfig.js +5 -0
- package/dist/api/resources/audiences/types/LogicalOperator.d.ts +8 -0
- package/dist/api/resources/audiences/types/LogicalOperator.js +10 -0
- package/dist/api/resources/audiences/types/NestedFilterConfig.d.ts +10 -0
- package/dist/api/resources/audiences/types/NestedFilterConfig.js +5 -0
- package/dist/api/resources/audiences/types/Operator.d.ts +5 -0
- package/dist/api/resources/audiences/types/Operator.js +5 -0
- package/dist/api/resources/audiences/types/SingleFilterConfig.d.ts +13 -0
- package/dist/api/resources/audiences/types/SingleFilterConfig.js +5 -0
- package/dist/api/resources/audiences/types/index.d.ts +15 -0
- package/dist/api/resources/audiences/types/index.js +31 -0
- package/dist/api/resources/auditEvents/client/Client.d.ts +29 -0
- package/dist/api/resources/auditEvents/client/Client.js +155 -0
- package/dist/api/resources/auditEvents/client/index.d.ts +1 -0
- package/dist/api/resources/auditEvents/client/index.js +17 -0
- package/dist/api/resources/auditEvents/client/requests/ListAuditEventsRequest.d.ts +10 -0
- package/dist/api/resources/auditEvents/client/requests/ListAuditEventsRequest.js +5 -0
- package/dist/api/resources/auditEvents/client/requests/index.d.ts +1 -0
- package/dist/api/resources/auditEvents/client/requests/index.js +2 -0
- package/dist/api/resources/auditEvents/index.d.ts +2 -0
- package/dist/api/resources/auditEvents/index.js +18 -0
- package/dist/api/resources/auditEvents/types/Actor.d.ts +7 -0
- package/dist/api/resources/auditEvents/types/Actor.js +5 -0
- package/dist/api/resources/auditEvents/types/AuditEvent.d.ts +12 -0
- package/dist/api/resources/auditEvents/types/AuditEvent.js +5 -0
- package/dist/api/resources/auditEvents/types/GetAuditEventParams.d.ts +6 -0
- package/dist/api/resources/auditEvents/types/GetAuditEventParams.js +5 -0
- package/dist/api/resources/auditEvents/types/ListAuditEventsParams.d.ts +6 -0
- package/dist/api/resources/auditEvents/types/ListAuditEventsParams.js +5 -0
- package/dist/api/resources/auditEvents/types/ListAuditEventsResponse.d.ts +8 -0
- package/dist/api/resources/auditEvents/types/ListAuditEventsResponse.js +5 -0
- package/dist/api/resources/auditEvents/types/Target.d.ts +7 -0
- package/dist/api/resources/auditEvents/types/Target.js +5 -0
- package/dist/api/resources/auditEvents/types/index.d.ts +6 -0
- package/dist/api/resources/auditEvents/types/index.js +22 -0
- package/dist/api/resources/authTokens/client/Client.d.ts +29 -0
- package/dist/api/resources/authTokens/client/Client.js +111 -0
- package/dist/api/resources/authTokens/client/index.d.ts +1 -0
- package/dist/api/resources/authTokens/client/index.js +2 -0
- package/dist/api/resources/authTokens/index.d.ts +2 -0
- package/dist/api/resources/authTokens/index.js +18 -0
- package/dist/api/resources/authTokens/types/AuthIssueTokenParameters.d.ts +7 -0
- package/dist/api/resources/authTokens/types/AuthIssueTokenParameters.js +5 -0
- package/dist/api/resources/authTokens/types/AuthIssueTokenResponse.d.ts +6 -0
- package/dist/api/resources/authTokens/types/AuthIssueTokenResponse.js +5 -0
- package/dist/api/resources/authTokens/types/index.d.ts +2 -0
- package/dist/api/resources/authTokens/types/index.js +18 -0
- package/dist/api/resources/automations/client/Client.d.ts +33 -0
- package/dist/api/resources/automations/client/Client.js +158 -0
- package/dist/api/resources/automations/client/index.d.ts +1 -0
- package/dist/api/resources/automations/client/index.js +2 -0
- package/dist/api/resources/automations/index.d.ts +2 -0
- package/dist/api/resources/automations/index.js +18 -0
- package/dist/api/resources/automations/types/Automation.d.ts +8 -0
- package/dist/api/resources/automations/types/Automation.js +5 -0
- package/dist/api/resources/automations/types/AutomationAdHocInvokeParams.d.ts +7 -0
- package/dist/api/resources/automations/types/AutomationAdHocInvokeParams.js +5 -0
- package/dist/api/resources/automations/types/AutomationCancelStep.d.ts +8 -0
- package/dist/api/resources/automations/types/AutomationCancelStep.js +5 -0
- package/dist/api/resources/automations/types/AutomationDelayStep.d.ts +8 -0
- package/dist/api/resources/automations/types/AutomationDelayStep.js +5 -0
- package/dist/api/resources/automations/types/AutomationInvokeParams.d.ts +11 -0
- package/dist/api/resources/automations/types/AutomationInvokeParams.js +5 -0
- package/dist/api/resources/automations/types/AutomationInvokeResponse.d.ts +6 -0
- package/dist/api/resources/automations/types/AutomationInvokeResponse.js +5 -0
- package/dist/api/resources/automations/types/AutomationInvokeStep.d.ts +8 -0
- package/dist/api/resources/automations/types/AutomationInvokeStep.js +5 -0
- package/dist/api/resources/automations/types/AutomationInvokeTemplateParams.d.ts +7 -0
- package/dist/api/resources/automations/types/AutomationInvokeTemplateParams.js +5 -0
- package/dist/api/resources/automations/types/AutomationRunContext.d.ts +11 -0
- package/dist/api/resources/automations/types/AutomationRunContext.js +5 -0
- package/dist/api/resources/automations/types/AutomationSendListStep.d.ts +12 -0
- package/dist/api/resources/automations/types/AutomationSendListStep.js +5 -0
- package/dist/api/resources/automations/types/AutomationSendStep.d.ts +13 -0
- package/dist/api/resources/automations/types/AutomationSendStep.js +5 -0
- package/dist/api/resources/automations/types/AutomationStep.d.ts +7 -0
- package/dist/api/resources/automations/types/AutomationStep.js +5 -0
- package/dist/api/resources/automations/types/AutomationStepAction.d.ts +12 -0
- package/dist/api/resources/automations/types/AutomationStepAction.js +14 -0
- package/dist/api/resources/automations/types/AutomationStepOption.d.ts +5 -0
- package/dist/api/resources/automations/types/AutomationStepOption.js +5 -0
- package/dist/api/resources/automations/types/AutomationUpdateProfileStep.d.ts +10 -0
- package/dist/api/resources/automations/types/AutomationUpdateProfileStep.js +5 -0
- package/dist/api/resources/automations/types/AutomationV2SendStep.d.ts +8 -0
- package/dist/api/resources/automations/types/AutomationV2SendStep.js +5 -0
- package/dist/api/resources/automations/types/MergeAlgorithm.d.ts +10 -0
- package/dist/api/resources/automations/types/MergeAlgorithm.js +12 -0
- package/dist/api/resources/automations/types/Profile.d.ts +4 -0
- package/dist/api/resources/automations/types/Profile.js +5 -0
- package/dist/api/resources/automations/types/index.d.ts +18 -0
- package/dist/api/resources/automations/types/index.js +34 -0
- package/dist/api/resources/brands/client/Client.d.ts +44 -0
- package/dist/api/resources/brands/client/Client.js +264 -0
- package/dist/api/resources/brands/client/index.d.ts +1 -0
- package/dist/api/resources/brands/client/index.js +17 -0
- package/dist/api/resources/brands/client/requests/ListBrandsRequest.d.ts +9 -0
- package/dist/api/resources/brands/client/requests/ListBrandsRequest.js +5 -0
- package/dist/api/resources/brands/client/requests/index.d.ts +1 -0
- package/dist/api/resources/brands/client/requests/index.js +2 -0
- package/dist/api/resources/brands/index.d.ts +2 -0
- package/dist/api/resources/brands/index.js +18 -0
- package/dist/api/resources/brands/types/Brand.d.ts +20 -0
- package/dist/api/resources/brands/types/Brand.js +5 -0
- package/dist/api/resources/brands/types/BrandColors.d.ts +8 -0
- package/dist/api/resources/brands/types/BrandColors.js +5 -0
- package/dist/api/resources/brands/types/BrandGetAllResponse.d.ts +8 -0
- package/dist/api/resources/brands/types/BrandGetAllResponse.js +5 -0
- package/dist/api/resources/brands/types/BrandParameters.d.ts +11 -0
- package/dist/api/resources/brands/types/BrandParameters.js +5 -0
- package/dist/api/resources/brands/types/BrandPutParameters.d.ts +11 -0
- package/dist/api/resources/brands/types/BrandPutParameters.js +5 -0
- package/dist/api/resources/brands/types/BrandSettings.d.ts +8 -0
- package/dist/api/resources/brands/types/BrandSettings.js +5 -0
- package/dist/api/resources/brands/types/BrandSnippet.d.ts +8 -0
- package/dist/api/resources/brands/types/BrandSnippet.js +5 -0
- package/dist/api/resources/brands/types/BrandSnippets.d.ts +7 -0
- package/dist/api/resources/brands/types/BrandSnippets.js +5 -0
- package/dist/api/resources/brands/types/BrandsResponse.d.ts +8 -0
- package/dist/api/resources/brands/types/BrandsResponse.js +5 -0
- package/dist/api/resources/brands/types/index.d.ts +9 -0
- package/dist/api/resources/brands/types/index.js +25 -0
- package/dist/api/resources/bulk/client/Client.d.ts +48 -0
- package/dist/api/resources/bulk/client/Client.js +317 -0
- package/dist/api/resources/bulk/client/index.d.ts +1 -0
- package/dist/api/resources/bulk/client/index.js +2 -0
- package/dist/api/resources/bulk/index.d.ts +2 -0
- package/dist/api/resources/bulk/index.js +18 -0
- package/dist/api/resources/bulk/types/BulkCreateJobParams.d.ts +7 -0
- package/dist/api/resources/bulk/types/BulkCreateJobParams.js +5 -0
- package/dist/api/resources/bulk/types/BulkCreateJobResponse.d.ts +6 -0
- package/dist/api/resources/bulk/types/BulkCreateJobResponse.js +5 -0
- package/dist/api/resources/bulk/types/BulkGetJobParams.d.ts +6 -0
- package/dist/api/resources/bulk/types/BulkGetJobParams.js +5 -0
- package/dist/api/resources/bulk/types/BulkGetJobResponse.d.ts +7 -0
- package/dist/api/resources/bulk/types/BulkGetJobResponse.js +5 -0
- package/dist/api/resources/bulk/types/BulkGetJobUsersParams.d.ts +7 -0
- package/dist/api/resources/bulk/types/BulkGetJobUsersParams.js +5 -0
- package/dist/api/resources/bulk/types/BulkGetJobUsersResponse.d.ts +8 -0
- package/dist/api/resources/bulk/types/BulkGetJobUsersResponse.js +5 -0
- package/dist/api/resources/bulk/types/BulkIngestError.d.ts +7 -0
- package/dist/api/resources/bulk/types/BulkIngestError.js +5 -0
- package/dist/api/resources/bulk/types/BulkIngestUsersParams.d.ts +8 -0
- package/dist/api/resources/bulk/types/BulkIngestUsersParams.js +5 -0
- package/dist/api/resources/bulk/types/BulkIngestUsersResponse.d.ts +8 -0
- package/dist/api/resources/bulk/types/BulkIngestUsersResponse.js +5 -0
- package/dist/api/resources/bulk/types/BulkJobStatus.d.ts +10 -0
- package/dist/api/resources/bulk/types/BulkJobStatus.js +12 -0
- package/dist/api/resources/bulk/types/BulkJobUserStatus.d.ts +9 -0
- package/dist/api/resources/bulk/types/BulkJobUserStatus.js +11 -0
- package/dist/api/resources/bulk/types/BulkMessageUserResponse.d.ts +8 -0
- package/dist/api/resources/bulk/types/BulkMessageUserResponse.js +5 -0
- package/dist/api/resources/bulk/types/BulkRunJobParams.d.ts +6 -0
- package/dist/api/resources/bulk/types/BulkRunJobParams.js +5 -0
- package/dist/api/resources/bulk/types/InboundBulkMessage.d.ts +7 -0
- package/dist/api/resources/bulk/types/InboundBulkMessage.js +5 -0
- package/dist/api/resources/bulk/types/InboundBulkMessageApiV1.d.ts +13 -0
- package/dist/api/resources/bulk/types/InboundBulkMessageApiV1.js +5 -0
- package/dist/api/resources/bulk/types/InboundBulkMessageApiV2.d.ts +4 -0
- package/dist/api/resources/bulk/types/InboundBulkMessageApiV2.js +5 -0
- package/dist/api/resources/bulk/types/InboundBulkMessageUser.d.ts +11 -0
- package/dist/api/resources/bulk/types/InboundBulkMessageUser.js +5 -0
- package/dist/api/resources/bulk/types/JobDetails.d.ts +11 -0
- package/dist/api/resources/bulk/types/JobDetails.js +5 -0
- package/dist/api/resources/bulk/types/index.d.ts +18 -0
- package/dist/api/resources/bulk/types/index.js +34 -0
- package/dist/api/resources/commons/errors/AlreadyExistsError.d.ts +8 -0
- package/dist/api/resources/commons/errors/AlreadyExistsError.js +41 -0
- package/dist/api/resources/commons/errors/BadRequestError.d.ts +8 -0
- package/dist/api/resources/commons/errors/BadRequestError.js +41 -0
- package/dist/api/resources/commons/errors/ConflictError.d.ts +8 -0
- package/dist/api/resources/commons/errors/ConflictError.js +41 -0
- package/dist/api/resources/commons/errors/MessageNotFoundError.d.ts +8 -0
- package/dist/api/resources/commons/errors/MessageNotFoundError.js +41 -0
- package/dist/api/resources/commons/errors/NotFoundError.d.ts +8 -0
- package/dist/api/resources/commons/errors/NotFoundError.js +41 -0
- package/dist/api/resources/commons/errors/PaymentRequiredError.d.ts +8 -0
- package/dist/api/resources/commons/errors/PaymentRequiredError.js +41 -0
- package/dist/api/resources/commons/errors/index.d.ts +6 -0
- package/dist/api/resources/commons/errors/index.js +22 -0
- package/dist/api/resources/commons/index.d.ts +2 -0
- package/dist/api/resources/commons/index.js +18 -0
- package/dist/api/resources/commons/types/AlreadyExists.d.ts +7 -0
- package/dist/api/resources/commons/types/AlreadyExists.js +5 -0
- package/dist/api/resources/commons/types/BadRequest.d.ts +7 -0
- package/dist/api/resources/commons/types/BadRequest.js +5 -0
- package/dist/api/resources/commons/types/BaseError.d.ts +7 -0
- package/dist/api/resources/commons/types/BaseError.js +5 -0
- package/dist/api/resources/commons/types/ChannelClassification.d.ts +10 -0
- package/dist/api/resources/commons/types/ChannelClassification.js +12 -0
- package/dist/api/resources/commons/types/ChannelPreference.d.ts +7 -0
- package/dist/api/resources/commons/types/ChannelPreference.js +5 -0
- package/dist/api/resources/commons/types/Conflict.d.ts +7 -0
- package/dist/api/resources/commons/types/Conflict.js +5 -0
- package/dist/api/resources/commons/types/Email.d.ts +7 -0
- package/dist/api/resources/commons/types/Email.js +5 -0
- package/dist/api/resources/commons/types/MessageNotFound.d.ts +7 -0
- package/dist/api/resources/commons/types/MessageNotFound.js +5 -0
- package/dist/api/resources/commons/types/NotFound.d.ts +7 -0
- package/dist/api/resources/commons/types/NotFound.js +5 -0
- package/dist/api/resources/commons/types/NotificationPreferenceDetails.d.ts +9 -0
- package/dist/api/resources/commons/types/NotificationPreferenceDetails.js +5 -0
- package/dist/api/resources/commons/types/NotificationPreferences.d.ts +5 -0
- package/dist/api/resources/commons/types/NotificationPreferences.js +5 -0
- package/dist/api/resources/commons/types/Paging.d.ts +7 -0
- package/dist/api/resources/commons/types/Paging.js +5 -0
- package/dist/api/resources/commons/types/PaymentRequired.d.ts +7 -0
- package/dist/api/resources/commons/types/PaymentRequired.js +5 -0
- package/dist/api/resources/commons/types/PreferenceStatus.d.ts +9 -0
- package/dist/api/resources/commons/types/PreferenceStatus.js +11 -0
- package/dist/api/resources/commons/types/RecipientPreferences.d.ts +8 -0
- package/dist/api/resources/commons/types/RecipientPreferences.js +5 -0
- package/dist/api/resources/commons/types/Rule.d.ts +7 -0
- package/dist/api/resources/commons/types/Rule.js +5 -0
- package/dist/api/resources/commons/types/index.d.ts +16 -0
- package/dist/api/resources/commons/types/index.js +32 -0
- package/dist/api/resources/index.d.ts +39 -0
- package/dist/api/resources/index.js +68 -0
- package/dist/api/resources/lists/client/Client.d.ts +63 -0
- package/dist/api/resources/lists/client/Client.js +476 -0
- package/dist/api/resources/lists/client/index.d.ts +1 -0
- package/dist/api/resources/lists/client/index.js +17 -0
- package/dist/api/resources/lists/client/requests/GetAllListsRequest.d.ts +14 -0
- package/dist/api/resources/lists/client/requests/GetAllListsRequest.js +5 -0
- package/dist/api/resources/lists/client/requests/GetListRequest.d.ts +14 -0
- package/dist/api/resources/lists/client/requests/GetListRequest.js +5 -0
- package/dist/api/resources/lists/client/requests/GetSubscriptionForListRequest.d.ts +9 -0
- package/dist/api/resources/lists/client/requests/GetSubscriptionForListRequest.js +5 -0
- package/dist/api/resources/lists/client/requests/SubscribeUserToListRequest.d.ts +9 -0
- package/dist/api/resources/lists/client/requests/SubscribeUserToListRequest.js +5 -0
- package/dist/api/resources/lists/client/requests/index.d.ts +4 -0
- package/dist/api/resources/lists/client/requests/index.js +2 -0
- package/dist/api/resources/lists/index.d.ts +2 -0
- package/dist/api/resources/lists/index.js +18 -0
- package/dist/api/resources/lists/types/List.d.ts +9 -0
- package/dist/api/resources/lists/types/List.js +5 -0
- package/dist/api/resources/lists/types/ListFindByRecipientIdParams.d.ts +6 -0
- package/dist/api/resources/lists/types/ListFindByRecipientIdParams.js +5 -0
- package/dist/api/resources/lists/types/ListFindByRecipientIdResponse.d.ts +8 -0
- package/dist/api/resources/lists/types/ListFindByRecipientIdResponse.js +5 -0
- package/dist/api/resources/lists/types/ListGetAllParams.d.ts +7 -0
- package/dist/api/resources/lists/types/ListGetAllParams.js +5 -0
- package/dist/api/resources/lists/types/ListGetAllResponse.d.ts +8 -0
- package/dist/api/resources/lists/types/ListGetAllResponse.js +5 -0
- package/dist/api/resources/lists/types/ListGetSubscriptionsParams.d.ts +6 -0
- package/dist/api/resources/lists/types/ListGetSubscriptionsParams.js +5 -0
- package/dist/api/resources/lists/types/ListGetSubscriptionsResponse.d.ts +8 -0
- package/dist/api/resources/lists/types/ListGetSubscriptionsResponse.js +5 -0
- package/dist/api/resources/lists/types/ListPutParams.d.ts +8 -0
- package/dist/api/resources/lists/types/ListPutParams.js +5 -0
- package/dist/api/resources/lists/types/ListSubscriptionRecipient.d.ts +9 -0
- package/dist/api/resources/lists/types/ListSubscriptionRecipient.js +5 -0
- package/dist/api/resources/lists/types/PutSubscriptionsRecipient.d.ts +8 -0
- package/dist/api/resources/lists/types/PutSubscriptionsRecipient.js +5 -0
- package/dist/api/resources/lists/types/RecipientSubscriptionsResponse.d.ts +8 -0
- package/dist/api/resources/lists/types/RecipientSubscriptionsResponse.js +5 -0
- package/dist/api/resources/lists/types/index.d.ts +11 -0
- package/dist/api/resources/lists/types/index.js +27 -0
- package/dist/api/resources/messages/client/Client.d.ts +51 -0
- package/dist/api/resources/messages/client/Client.js +391 -0
- package/dist/api/resources/messages/client/index.d.ts +1 -0
- package/dist/api/resources/messages/client/index.js +17 -0
- package/dist/api/resources/messages/client/requests/GetMessageHistoryRequest.d.ts +9 -0
- package/dist/api/resources/messages/client/requests/GetMessageHistoryRequest.js +5 -0
- package/dist/api/resources/messages/client/requests/ListMessagesRequest.d.ts +49 -0
- package/dist/api/resources/messages/client/requests/ListMessagesRequest.js +5 -0
- package/dist/api/resources/messages/client/requests/index.d.ts +2 -0
- package/dist/api/resources/messages/client/requests/index.js +2 -0
- package/dist/api/resources/messages/index.d.ts +2 -0
- package/dist/api/resources/messages/index.js +18 -0
- package/dist/api/resources/messages/types/ListMessagesResponse.d.ts +10 -0
- package/dist/api/resources/messages/types/ListMessagesResponse.js +5 -0
- package/dist/api/resources/messages/types/MessageDetails.d.ts +30 -0
- package/dist/api/resources/messages/types/MessageDetails.js +5 -0
- package/dist/api/resources/messages/types/MessageHistoryResponse.d.ts +7 -0
- package/dist/api/resources/messages/types/MessageHistoryResponse.js +5 -0
- package/dist/api/resources/messages/types/MessageStatus.d.ts +42 -0
- package/dist/api/resources/messages/types/MessageStatus.js +17 -0
- package/dist/api/resources/messages/types/Reason.d.ts +30 -0
- package/dist/api/resources/messages/types/Reason.js +14 -0
- package/dist/api/resources/messages/types/RenderOutput.d.ts +12 -0
- package/dist/api/resources/messages/types/RenderOutput.js +5 -0
- package/dist/api/resources/messages/types/RenderOutputResponse.d.ts +8 -0
- package/dist/api/resources/messages/types/RenderOutputResponse.js +5 -0
- package/dist/api/resources/messages/types/RenderedMessageBlock.d.ts +9 -0
- package/dist/api/resources/messages/types/RenderedMessageBlock.js +5 -0
- package/dist/api/resources/messages/types/RenderedMessageContent.d.ts +18 -0
- package/dist/api/resources/messages/types/RenderedMessageContent.js +5 -0
- package/dist/api/resources/messages/types/index.d.ts +9 -0
- package/dist/api/resources/messages/types/index.js +25 -0
- package/dist/api/resources/profiles/client/Client.d.ts +64 -0
- package/dist/api/resources/profiles/client/Client.js +428 -0
- package/dist/api/resources/profiles/client/index.d.ts +1 -0
- package/dist/api/resources/profiles/client/index.js +17 -0
- package/dist/api/resources/profiles/client/requests/GetListSubscriptionsRequest.d.ts +9 -0
- package/dist/api/resources/profiles/client/requests/GetListSubscriptionsRequest.js +5 -0
- package/dist/api/resources/profiles/client/requests/MergeProfileRequest.d.ts +7 -0
- package/dist/api/resources/profiles/client/requests/MergeProfileRequest.js +5 -0
- package/dist/api/resources/profiles/client/requests/ReplaceProfileRequest.d.ts +7 -0
- package/dist/api/resources/profiles/client/requests/ReplaceProfileRequest.js +5 -0
- package/dist/api/resources/profiles/client/requests/index.d.ts +3 -0
- package/dist/api/resources/profiles/client/requests/index.js +2 -0
- package/dist/api/resources/profiles/index.d.ts +2 -0
- package/dist/api/resources/profiles/index.js +18 -0
- package/dist/api/resources/profiles/types/Address.d.ts +11 -0
- package/dist/api/resources/profiles/types/Address.js +5 -0
- package/dist/api/resources/profiles/types/AirshipProfile.d.ts +8 -0
- package/dist/api/resources/profiles/types/AirshipProfile.js +5 -0
- package/dist/api/resources/profiles/types/AirshipProfileAudience.d.ts +6 -0
- package/dist/api/resources/profiles/types/AirshipProfileAudience.js +5 -0
- package/dist/api/resources/profiles/types/DeleteListSubscriptionResponse.d.ts +6 -0
- package/dist/api/resources/profiles/types/DeleteListSubscriptionResponse.js +5 -0
- package/dist/api/resources/profiles/types/DeviceType.d.ts +4 -0
- package/dist/api/resources/profiles/types/DeviceType.js +5 -0
- package/dist/api/resources/profiles/types/Discord.d.ts +5 -0
- package/dist/api/resources/profiles/types/Discord.js +5 -0
- package/dist/api/resources/profiles/types/Expo.d.ts +5 -0
- package/dist/api/resources/profiles/types/Expo.js +5 -0
- package/dist/api/resources/profiles/types/Intercom.d.ts +8 -0
- package/dist/api/resources/profiles/types/Intercom.js +5 -0
- package/dist/api/resources/profiles/types/IntercomeRecipient.d.ts +6 -0
- package/dist/api/resources/profiles/types/IntercomeRecipient.js +5 -0
- package/dist/api/resources/profiles/types/MergeProfileResponse.d.ts +6 -0
- package/dist/api/resources/profiles/types/MergeProfileResponse.js +5 -0
- package/dist/api/resources/profiles/types/MsTeams.d.ts +5 -0
- package/dist/api/resources/profiles/types/MsTeams.js +5 -0
- package/dist/api/resources/profiles/types/MultipleTokens.d.ts +7 -0
- package/dist/api/resources/profiles/types/MultipleTokens.js +5 -0
- package/dist/api/resources/profiles/types/ProfileGetParameters.d.ts +6 -0
- package/dist/api/resources/profiles/types/ProfileGetParameters.js +5 -0
- package/dist/api/resources/profiles/types/ProfileGetResponse.d.ts +6 -0
- package/dist/api/resources/profiles/types/ProfileGetResponse.js +5 -0
- package/dist/api/resources/profiles/types/ReplaceProfileResponse.d.ts +6 -0
- package/dist/api/resources/profiles/types/ReplaceProfileResponse.js +5 -0
- package/dist/api/resources/profiles/types/SendDirectMessage.d.ts +6 -0
- package/dist/api/resources/profiles/types/SendDirectMessage.js +5 -0
- package/dist/api/resources/profiles/types/SendToChannel.d.ts +6 -0
- package/dist/api/resources/profiles/types/SendToChannel.js +5 -0
- package/dist/api/resources/profiles/types/SendToMsTeamsChannel.d.ts +8 -0
- package/dist/api/resources/profiles/types/SendToMsTeamsChannel.js +5 -0
- package/dist/api/resources/profiles/types/SendToMsTeamsUser.d.ts +8 -0
- package/dist/api/resources/profiles/types/SendToMsTeamsUser.js +5 -0
- package/dist/api/resources/profiles/types/SnoozeRule.d.ts +9 -0
- package/dist/api/resources/profiles/types/SnoozeRule.js +5 -0
- package/dist/api/resources/profiles/types/SnoozeRuleType.d.ts +7 -0
- package/dist/api/resources/profiles/types/SnoozeRuleType.js +9 -0
- package/dist/api/resources/profiles/types/SubscribeToListsRequest.d.ts +8 -0
- package/dist/api/resources/profiles/types/SubscribeToListsRequest.js +5 -0
- package/dist/api/resources/profiles/types/SubscribeToListsResponse.d.ts +6 -0
- package/dist/api/resources/profiles/types/SubscribeToListsResponse.js +5 -0
- package/dist/api/resources/profiles/types/Token.d.ts +6 -0
- package/dist/api/resources/profiles/types/Token.js +5 -0
- package/dist/api/resources/profiles/types/UserProfile.d.ts +37 -0
- package/dist/api/resources/profiles/types/UserProfile.js +5 -0
- package/dist/api/resources/profiles/types/index.d.ts +25 -0
- package/dist/api/resources/profiles/types/index.js +41 -0
- package/dist/api/resources/send/index.d.ts +1 -0
- package/dist/api/resources/send/index.js +17 -0
- package/dist/api/resources/send/types/Attachment.d.ts +4 -0
- package/dist/api/resources/send/types/Attachment.js +5 -0
- package/dist/api/resources/send/types/AudienceFilter.d.ts +9 -0
- package/dist/api/resources/send/types/AudienceFilter.js +5 -0
- package/dist/api/resources/send/types/AudienceRecipient.d.ts +10 -0
- package/dist/api/resources/send/types/AudienceRecipient.js +5 -0
- package/dist/api/resources/send/types/BaseMessage.d.ts +37 -0
- package/dist/api/resources/send/types/BaseMessage.js +5 -0
- package/dist/api/resources/send/types/BaseSocialPresence.d.ts +6 -0
- package/dist/api/resources/send/types/BaseSocialPresence.js +5 -0
- package/dist/api/resources/send/types/BrandSettingsEmail.d.ts +10 -0
- package/dist/api/resources/send/types/BrandSettingsEmail.js +5 -0
- package/dist/api/resources/send/types/BrandSettingsInApp.d.ts +14 -0
- package/dist/api/resources/send/types/BrandSettingsInApp.js +5 -0
- package/dist/api/resources/send/types/BrandSettingsSocialPresence.d.ts +12 -0
- package/dist/api/resources/send/types/BrandSettingsSocialPresence.js +5 -0
- package/dist/api/resources/send/types/BrandTemplate.d.ts +12 -0
- package/dist/api/resources/send/types/BrandTemplate.js +5 -0
- package/dist/api/resources/send/types/BrandTemplateOverride.d.ts +9 -0
- package/dist/api/resources/send/types/BrandTemplateOverride.js +5 -0
- package/dist/api/resources/send/types/Channel.d.ts +36 -0
- package/dist/api/resources/send/types/Channel.js +5 -0
- package/dist/api/resources/send/types/ChannelMetadata.d.ts +7 -0
- package/dist/api/resources/send/types/ChannelMetadata.js +5 -0
- package/dist/api/resources/send/types/ChannelSource.d.ts +9 -0
- package/dist/api/resources/send/types/ChannelSource.js +11 -0
- package/dist/api/resources/send/types/Content.d.ts +5 -0
- package/dist/api/resources/send/types/Content.js +5 -0
- package/dist/api/resources/send/types/ContentMessage.d.ts +17 -0
- package/dist/api/resources/send/types/ContentMessage.js +5 -0
- package/dist/api/resources/send/types/Criteria.d.ts +10 -0
- package/dist/api/resources/send/types/Criteria.js +12 -0
- package/dist/api/resources/send/types/Delay.d.ts +7 -0
- package/dist/api/resources/send/types/Delay.js +5 -0
- package/dist/api/resources/send/types/ElementalActionNode.d.ts +23 -0
- package/dist/api/resources/send/types/ElementalActionNode.js +5 -0
- package/dist/api/resources/send/types/ElementalBaseNode.d.ts +9 -0
- package/dist/api/resources/send/types/ElementalBaseNode.js +5 -0
- package/dist/api/resources/send/types/ElementalChannelNode.d.ts +35 -0
- package/dist/api/resources/send/types/ElementalChannelNode.js +5 -0
- package/dist/api/resources/send/types/ElementalContent.d.ts +10 -0
- package/dist/api/resources/send/types/ElementalContent.js +5 -0
- package/dist/api/resources/send/types/ElementalContentSugar.d.ts +12 -0
- package/dist/api/resources/send/types/ElementalContentSugar.js +5 -0
- package/dist/api/resources/send/types/ElementalDividerNode.d.ts +11 -0
- package/dist/api/resources/send/types/ElementalDividerNode.js +5 -0
- package/dist/api/resources/send/types/ElementalGroupNode.d.ts +11 -0
- package/dist/api/resources/send/types/ElementalGroupNode.js +5 -0
- package/dist/api/resources/send/types/ElementalImageNode.d.ts +19 -0
- package/dist/api/resources/send/types/ElementalImageNode.js +5 -0
- package/dist/api/resources/send/types/ElementalMetaNode.d.ts +14 -0
- package/dist/api/resources/send/types/ElementalMetaNode.js +5 -0
- package/dist/api/resources/send/types/ElementalNode.d.ts +31 -0
- package/dist/api/resources/send/types/ElementalNode.js +5 -0
- package/dist/api/resources/send/types/ElementalQuoteNode.d.ts +18 -0
- package/dist/api/resources/send/types/ElementalQuoteNode.js +5 -0
- package/dist/api/resources/send/types/ElementalTextNode.d.ts +32 -0
- package/dist/api/resources/send/types/ElementalTextNode.js +5 -0
- package/dist/api/resources/send/types/EmailFooter.d.ts +7 -0
- package/dist/api/resources/send/types/EmailFooter.js +5 -0
- package/dist/api/resources/send/types/EmailHead.d.ts +7 -0
- package/dist/api/resources/send/types/EmailHead.js +5 -0
- package/dist/api/resources/send/types/EmailHeader.d.ts +9 -0
- package/dist/api/resources/send/types/EmailHeader.js +5 -0
- package/dist/api/resources/send/types/ExpiresInType.d.ts +4 -0
- package/dist/api/resources/send/types/ExpiresInType.js +5 -0
- package/dist/api/resources/send/types/Expiry.d.ts +10 -0
- package/dist/api/resources/send/types/Expiry.js +5 -0
- package/dist/api/resources/send/types/IActionButtonStyle.d.ts +8 -0
- package/dist/api/resources/send/types/IActionButtonStyle.js +10 -0
- package/dist/api/resources/send/types/IAlignment.d.ts +10 -0
- package/dist/api/resources/send/types/IAlignment.js +12 -0
- package/dist/api/resources/send/types/IPreferences.d.ts +5 -0
- package/dist/api/resources/send/types/IPreferences.js +5 -0
- package/dist/api/resources/send/types/IProfilePreferences.d.ts +9 -0
- package/dist/api/resources/send/types/IProfilePreferences.js +5 -0
- package/dist/api/resources/send/types/Icons.d.ts +7 -0
- package/dist/api/resources/send/types/Icons.js +5 -0
- package/dist/api/resources/send/types/InAppPlacement.d.ts +10 -0
- package/dist/api/resources/send/types/InAppPlacement.js +12 -0
- package/dist/api/resources/send/types/InvalidListPatternRecipient.d.ts +7 -0
- package/dist/api/resources/send/types/InvalidListPatternRecipient.js +5 -0
- package/dist/api/resources/send/types/InvalidListRecipient.d.ts +7 -0
- package/dist/api/resources/send/types/InvalidListRecipient.js +5 -0
- package/dist/api/resources/send/types/InvalidUserRecipient.d.ts +7 -0
- package/dist/api/resources/send/types/InvalidUserRecipient.js +5 -0
- package/dist/api/resources/send/types/ListFilter.d.ts +9 -0
- package/dist/api/resources/send/types/ListFilter.js +5 -0
- package/dist/api/resources/send/types/ListPatternRecipient.d.ts +8 -0
- package/dist/api/resources/send/types/ListPatternRecipient.js +5 -0
- package/dist/api/resources/send/types/ListPatternRecipientType.d.ts +5 -0
- package/dist/api/resources/send/types/ListPatternRecipientType.js +5 -0
- package/dist/api/resources/send/types/ListRecipient.d.ts +9 -0
- package/dist/api/resources/send/types/ListRecipient.js +5 -0
- package/dist/api/resources/send/types/ListRecipientType.d.ts +5 -0
- package/dist/api/resources/send/types/ListRecipientType.js +5 -0
- package/dist/api/resources/send/types/Locale.d.ts +6 -0
- package/dist/api/resources/send/types/Locale.js +5 -0
- package/dist/api/resources/send/types/Locales.d.ts +5 -0
- package/dist/api/resources/send/types/Locales.js +5 -0
- package/dist/api/resources/send/types/Logo.d.ts +7 -0
- package/dist/api/resources/send/types/Logo.js +5 -0
- package/dist/api/resources/send/types/Message.d.ts +11 -0
- package/dist/api/resources/send/types/Message.js +5 -0
- package/dist/api/resources/send/types/MessageChannelEmailOverride.d.ts +16 -0
- package/dist/api/resources/send/types/MessageChannelEmailOverride.js +5 -0
- package/dist/api/resources/send/types/MessageChannels.d.ts +5 -0
- package/dist/api/resources/send/types/MessageChannels.js +5 -0
- package/dist/api/resources/send/types/MessageContext.d.ts +11 -0
- package/dist/api/resources/send/types/MessageContext.js +5 -0
- package/dist/api/resources/send/types/MessageData.d.ts +4 -0
- package/dist/api/resources/send/types/MessageData.js +5 -0
- package/dist/api/resources/send/types/MessageMetadata.d.ts +14 -0
- package/dist/api/resources/send/types/MessageMetadata.js +5 -0
- package/dist/api/resources/send/types/MessageProviders.d.ts +5 -0
- package/dist/api/resources/send/types/MessageProviders.js +5 -0
- package/dist/api/resources/send/types/MessageProvidersType.d.ts +17 -0
- package/dist/api/resources/send/types/MessageProvidersType.js +5 -0
- package/dist/api/resources/send/types/MessageRecipient.d.ts +5 -0
- package/dist/api/resources/send/types/MessageRecipient.js +5 -0
- package/dist/api/resources/send/types/Metadata.d.ts +7 -0
- package/dist/api/resources/send/types/Metadata.js +5 -0
- package/dist/api/resources/send/types/Override.d.ts +8 -0
- package/dist/api/resources/send/types/Override.js +10 -0
- package/dist/api/resources/send/types/Preference.d.ts +10 -0
- package/dist/api/resources/send/types/Preference.js +5 -0
- package/dist/api/resources/send/types/Preferences.d.ts +6 -0
- package/dist/api/resources/send/types/Preferences.js +5 -0
- package/dist/api/resources/send/types/Recipient.d.ts +5 -0
- package/dist/api/resources/send/types/Recipient.js +5 -0
- package/dist/api/resources/send/types/Routing.d.ts +20 -0
- package/dist/api/resources/send/types/Routing.js +5 -0
- package/dist/api/resources/send/types/RoutingChannel.d.ts +5 -0
- package/dist/api/resources/send/types/RoutingChannel.js +5 -0
- package/dist/api/resources/send/types/RoutingMethod.d.ts +8 -0
- package/dist/api/resources/send/types/RoutingMethod.js +10 -0
- package/dist/api/resources/send/types/RoutingStrategyChannel.d.ts +11 -0
- package/dist/api/resources/send/types/RoutingStrategyChannel.js +5 -0
- package/dist/api/resources/send/types/RoutingStrategyProvider.d.ts +10 -0
- package/dist/api/resources/send/types/RoutingStrategyProvider.js +5 -0
- package/dist/api/resources/send/types/RuleType.d.ts +9 -0
- package/dist/api/resources/send/types/RuleType.js +11 -0
- package/dist/api/resources/send/types/TemplateMessage.d.ts +12 -0
- package/dist/api/resources/send/types/TemplateMessage.js +5 -0
- package/dist/api/resources/send/types/TextAlign.d.ts +9 -0
- package/dist/api/resources/send/types/TextAlign.js +11 -0
- package/dist/api/resources/send/types/TextStyle.d.ts +10 -0
- package/dist/api/resources/send/types/TextStyle.js +12 -0
- package/dist/api/resources/send/types/Timeout.d.ts +11 -0
- package/dist/api/resources/send/types/Timeout.js +5 -0
- package/dist/api/resources/send/types/Timeouts.d.ts +7 -0
- package/dist/api/resources/send/types/Timeouts.js +5 -0
- package/dist/api/resources/send/types/TrackingOverride.d.ts +6 -0
- package/dist/api/resources/send/types/TrackingOverride.js +5 -0
- package/dist/api/resources/send/types/UserRecipient.d.ts +23 -0
- package/dist/api/resources/send/types/UserRecipient.js +5 -0
- package/dist/api/resources/send/types/UserRecipientType.d.ts +5 -0
- package/dist/api/resources/send/types/UserRecipientType.js +5 -0
- package/dist/api/resources/send/types/Utm.d.ts +10 -0
- package/dist/api/resources/send/types/Utm.js +5 -0
- package/dist/api/resources/send/types/WidgetBackground.d.ts +7 -0
- package/dist/api/resources/send/types/WidgetBackground.js +5 -0
- package/dist/api/resources/send/types/index.d.ts +81 -0
- package/dist/api/resources/send/types/index.js +97 -0
- package/dist/api/resources/templates/client/Client.d.ts +25 -0
- package/dist/api/resources/templates/client/Client.js +112 -0
- package/dist/api/resources/templates/client/index.d.ts +1 -0
- package/dist/api/resources/templates/client/index.js +17 -0
- package/dist/api/resources/templates/client/requests/ListTemplatesRequest.d.ts +9 -0
- package/dist/api/resources/templates/client/requests/ListTemplatesRequest.js +5 -0
- package/dist/api/resources/templates/client/requests/index.d.ts +1 -0
- package/dist/api/resources/templates/client/requests/index.js +2 -0
- package/dist/api/resources/templates/index.d.ts +2 -0
- package/dist/api/resources/templates/index.js +18 -0
- package/dist/api/resources/templates/types/ChannelIdentifier.d.ts +4 -0
- package/dist/api/resources/templates/types/ChannelIdentifier.js +5 -0
- package/dist/api/resources/templates/types/ListTemplatesResponse.d.ts +9 -0
- package/dist/api/resources/templates/types/ListTemplatesResponse.js +5 -0
- package/dist/api/resources/templates/types/NotificationTemplates.d.ts +18 -0
- package/dist/api/resources/templates/types/NotificationTemplates.js +5 -0
- package/dist/api/resources/templates/types/RoutingStrategy.d.ts +10 -0
- package/dist/api/resources/templates/types/RoutingStrategy.js +5 -0
- package/dist/api/resources/templates/types/RoutingStrategyMethod.d.ts +8 -0
- package/dist/api/resources/templates/types/RoutingStrategyMethod.js +10 -0
- package/dist/api/resources/templates/types/Tag.d.ts +7 -0
- package/dist/api/resources/templates/types/Tag.js +5 -0
- package/dist/api/resources/templates/types/TagData.d.ts +9 -0
- package/dist/api/resources/templates/types/TagData.js +5 -0
- package/dist/api/resources/templates/types/index.d.ts +7 -0
- package/dist/api/resources/templates/types/index.js +23 -0
- package/dist/api/resources/tenants/client/Client.d.ts +25 -0
- package/dist/api/resources/tenants/client/Client.js +113 -0
- package/dist/api/resources/tenants/client/index.d.ts +1 -0
- package/dist/api/resources/tenants/client/index.js +2 -0
- package/dist/api/resources/tenants/index.d.ts +2 -0
- package/dist/api/resources/tenants/index.js +18 -0
- package/dist/api/resources/tenants/types/CreateOrReplaceTenantRequest.d.ts +18 -0
- package/dist/api/resources/tenants/types/CreateOrReplaceTenantRequest.js +5 -0
- package/dist/api/resources/tenants/types/CreateOrReplaceTenantResponse.d.ts +20 -0
- package/dist/api/resources/tenants/types/CreateOrReplaceTenantResponse.js +5 -0
- package/dist/api/resources/tenants/types/DefaultPreferences.d.ts +7 -0
- package/dist/api/resources/tenants/types/DefaultPreferences.js +5 -0
- package/dist/api/resources/tenants/types/SubscriptionTopic.d.ts +9 -0
- package/dist/api/resources/tenants/types/SubscriptionTopic.js +5 -0
- package/dist/api/resources/tenants/types/SubscriptionTopicStatus.d.ts +9 -0
- package/dist/api/resources/tenants/types/SubscriptionTopicStatus.js +11 -0
- package/dist/api/resources/tenants/types/TemplateProperty.d.ts +4 -0
- package/dist/api/resources/tenants/types/TemplateProperty.js +5 -0
- package/dist/api/resources/tenants/types/index.d.ts +6 -0
- package/dist/api/resources/tenants/types/index.js +22 -0
- package/dist/api/resources/tokenManagement/client/Client.d.ts +46 -0
- package/dist/api/resources/tokenManagement/client/Client.js +311 -0
- package/dist/api/resources/tokenManagement/client/index.d.ts +1 -0
- package/dist/api/resources/tokenManagement/client/index.js +2 -0
- package/dist/api/resources/tokenManagement/index.d.ts +2 -0
- package/dist/api/resources/tokenManagement/index.js +18 -0
- package/dist/api/resources/tokenManagement/types/DeleteUserTokenOpts.d.ts +7 -0
- package/dist/api/resources/tokenManagement/types/DeleteUserTokenOpts.js +5 -0
- package/dist/api/resources/tokenManagement/types/Device.d.ts +17 -0
- package/dist/api/resources/tokenManagement/types/Device.js +5 -0
- package/dist/api/resources/tokenManagement/types/ExpiryDate.d.ts +4 -0
- package/dist/api/resources/tokenManagement/types/ExpiryDate.js +5 -0
- package/dist/api/resources/tokenManagement/types/GetAllTokensResponse.d.ts +8 -0
- package/dist/api/resources/tokenManagement/types/GetAllTokensResponse.js +5 -0
- package/dist/api/resources/tokenManagement/types/GetUserTokenOpts.d.ts +7 -0
- package/dist/api/resources/tokenManagement/types/GetUserTokenOpts.js +5 -0
- package/dist/api/resources/tokenManagement/types/GetUserTokenResponse.d.ts +9 -0
- package/dist/api/resources/tokenManagement/types/GetUserTokenResponse.js +5 -0
- package/dist/api/resources/tokenManagement/types/GetUserTokensOpts.d.ts +6 -0
- package/dist/api/resources/tokenManagement/types/GetUserTokensOpts.js +5 -0
- package/dist/api/resources/tokenManagement/types/PatchOp.d.ts +12 -0
- package/dist/api/resources/tokenManagement/types/PatchOp.js +14 -0
- package/dist/api/resources/tokenManagement/types/PatchOperation.d.ts +11 -0
- package/dist/api/resources/tokenManagement/types/PatchOperation.js +5 -0
- package/dist/api/resources/tokenManagement/types/PatchUserTokenOpts.d.ts +7 -0
- package/dist/api/resources/tokenManagement/types/PatchUserTokenOpts.js +5 -0
- package/dist/api/resources/tokenManagement/types/ProviderKey.d.ts +10 -0
- package/dist/api/resources/tokenManagement/types/ProviderKey.js +12 -0
- package/dist/api/resources/tokenManagement/types/PutUserTokenOpts.d.ts +8 -0
- package/dist/api/resources/tokenManagement/types/PutUserTokenOpts.js +5 -0
- package/dist/api/resources/tokenManagement/types/PutUserTokensOpts.d.ts +8 -0
- package/dist/api/resources/tokenManagement/types/PutUserTokensOpts.js +5 -0
- package/dist/api/resources/tokenManagement/types/TokenStatus.d.ts +10 -0
- package/dist/api/resources/tokenManagement/types/TokenStatus.js +12 -0
- package/dist/api/resources/tokenManagement/types/Tracking.d.ts +13 -0
- package/dist/api/resources/tokenManagement/types/Tracking.js +5 -0
- package/dist/api/resources/tokenManagement/types/UserToken.d.ts +17 -0
- package/dist/api/resources/tokenManagement/types/UserToken.js +5 -0
- package/dist/api/resources/tokenManagement/types/index.d.ts +16 -0
- package/dist/api/resources/tokenManagement/types/index.js +32 -0
- package/dist/api/resources/translations/client/Client.d.ts +30 -0
- package/dist/api/resources/translations/client/Client.js +163 -0
- package/dist/api/resources/translations/client/index.d.ts +1 -0
- package/dist/api/resources/translations/client/index.js +2 -0
- package/dist/api/resources/translations/index.d.ts +1 -0
- package/dist/api/resources/translations/index.js +17 -0
- package/dist/api/resources/userPreferences/client/Client.d.ts +36 -0
- package/dist/api/resources/userPreferences/client/Client.js +212 -0
- package/dist/api/resources/userPreferences/client/index.d.ts +1 -0
- package/dist/api/resources/userPreferences/client/index.js +2 -0
- package/dist/api/resources/userPreferences/index.d.ts +2 -0
- package/dist/api/resources/userPreferences/index.js +18 -0
- package/dist/api/resources/userPreferences/types/TopicPreference.d.ts +13 -0
- package/dist/api/resources/userPreferences/types/TopicPreference.js +5 -0
- package/dist/api/resources/userPreferences/types/UpdateSubscriptionTopicRequest.d.ts +11 -0
- package/dist/api/resources/userPreferences/types/UpdateSubscriptionTopicRequest.js +5 -0
- package/dist/api/resources/userPreferences/types/UpdateSubscriptionTopicResponse.d.ts +6 -0
- package/dist/api/resources/userPreferences/types/UpdateSubscriptionTopicResponse.js +5 -0
- package/dist/api/resources/userPreferences/types/UserPreferences.d.ts +9 -0
- package/dist/api/resources/userPreferences/types/UserPreferences.js +5 -0
- package/dist/api/resources/userPreferences/types/index.d.ts +4 -0
- package/dist/api/resources/userPreferences/types/index.js +20 -0
- package/dist/api/types/SendMessageResponse.d.ts +14 -0
- package/dist/api/types/SendMessageResponse.js +5 -0
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +17 -0
- package/dist/core/auth/BasicAuth.d.ts +8 -0
- package/dist/core/auth/BasicAuth.js +26 -0
- package/dist/core/auth/BearerToken.d.ts +5 -0
- package/dist/core/auth/BearerToken.js +15 -0
- package/dist/core/auth/index.d.ts +2 -0
- package/dist/core/auth/index.js +7 -0
- package/dist/core/fetcher/APIResponse.d.ts +9 -0
- package/dist/core/fetcher/APIResponse.js +2 -0
- package/dist/core/fetcher/Fetcher.d.ts +38 -0
- package/dist/core/fetcher/Fetcher.js +129 -0
- package/dist/core/fetcher/Supplier.d.ts +4 -0
- package/dist/core/fetcher/Supplier.js +22 -0
- package/dist/core/fetcher/index.d.ts +4 -0
- package/dist/core/fetcher/index.js +7 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +18 -0
- package/dist/environments.d.ts +7 -0
- package/dist/environments.js +9 -0
- package/dist/errors/CourierError.d.ts +12 -0
- package/dist/errors/CourierError.js +32 -0
- package/dist/errors/CourierTimeoutError.d.ts +6 -0
- package/dist/errors/CourierTimeoutError.js +13 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.js +7 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +34 -0
- package/environments.d.ts +7 -0
- package/environments.js +9 -0
- package/errors/CourierError.d.ts +12 -0
- package/errors/CourierError.js +32 -0
- package/errors/CourierTimeoutError.d.ts +6 -0
- package/errors/CourierTimeoutError.js +13 -0
- package/errors/index.d.ts +2 -0
- package/errors/index.js +7 -0
- package/index.d.ts +4 -0
- package/index.js +34 -0
- package/package.json +25 -35
- package/lib/audiences/index.d.ts +0 -13
- package/lib/audiences/index.js +0 -108
- package/lib/audiences/types.d.ts +0 -65
- package/lib/audit-events/index.d.ts +0 -6
- package/lib/audit-events/index.js +0 -75
- package/lib/audit-events/types.d.ts +0 -27
- package/lib/automations/index.d.ts +0 -3
- package/lib/automations/index.js +0 -90
- package/lib/automations/types.d.ts +0 -87
- package/lib/brands.d.ts +0 -8
- package/lib/brands.js +0 -119
- package/lib/bulk/index.d.ts +0 -3
- package/lib/bulk/index.js +0 -129
- package/lib/bulk/types.d.ts +0 -84
- package/lib/client.d.ts +0 -2
- package/lib/client.js +0 -162
- package/lib/http-client.d.ts +0 -10
- package/lib/http-client.js +0 -131
- package/lib/index.d.ts +0 -4
- package/lib/index.js +0 -31
- package/lib/issue-token/index.d.ts +0 -3
- package/lib/issue-token/index.js +0 -55
- package/lib/issue-token/types.d.ts +0 -10
- package/lib/lists/index.d.ts +0 -3
- package/lib/lists/index.js +0 -214
- package/lib/lists/types.d.ts +0 -68
- package/lib/notifications/index.d.ts +0 -3
- package/lib/notifications/index.js +0 -152
- package/lib/notifications/types.d.ts +0 -98
- package/lib/preferences/index.d.ts +0 -3
- package/lib/preferences/index.js +0 -92
- package/lib/preferences/types.d.ts +0 -45
- package/lib/profile.d.ts +0 -9
- package/lib/profile.js +0 -138
- package/lib/send/index.d.ts +0 -2
- package/lib/send/index.js +0 -96
- package/lib/send/types.d.ts +0 -389
- package/lib/tenants/index.d.ts +0 -8
- package/lib/tenants/index.js +0 -99
- package/lib/tenants/types.d.ts +0 -36
- package/lib/token-management/index.d.ts +0 -12
- package/lib/token-management/index.js +0 -127
- package/lib/token-management/types.d.ts +0 -56
- package/lib/types.d.ts +0 -354
- package/lib/users/index.d.ts +0 -9
- package/lib/users/index.js +0 -111
- package/lib/users/types.d.ts +0 -39
- /package/{lib/audiences/types.js → api/client/requests/index.js} +0 -0
- /package/{lib/audit-events/types.js → api/resources/audiences/client/requests/index.js} +0 -0
- /package/{lib/automations/types.js → api/resources/auditEvents/client/requests/index.js} +0 -0
- /package/{lib/bulk/types.js → api/resources/authTokens/client/index.js} +0 -0
- /package/{lib/issue-token/types.js → api/resources/automations/client/index.js} +0 -0
- /package/{lib/lists/types.js → api/resources/brands/client/requests/index.js} +0 -0
- /package/{lib/notifications/types.js → api/resources/bulk/client/index.js} +0 -0
- /package/{lib/preferences/types.js → api/resources/lists/client/requests/index.js} +0 -0
- /package/{lib/send/types.js → api/resources/messages/client/requests/index.js} +0 -0
- /package/{lib/tenants/types.js → api/resources/profiles/client/requests/index.js} +0 -0
- /package/{lib/token-management/types.js → api/resources/templates/client/requests/index.js} +0 -0
- /package/{lib/types.js → api/resources/tenants/client/index.js} +0 -0
- /package/{lib/users/types.js → api/resources/tokenManagement/client/index.js} +0 -0
package/lib/index.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CourierClient = void 0;
|
|
4
|
-
var client_1 = require("./client");
|
|
5
|
-
var http_client_1 = require("./http-client");
|
|
6
|
-
var http_client_2 = require("./http-client");
|
|
7
|
-
Object.defineProperty(exports, "CourierHttpClientError", { enumerable: true, get: function () { return http_client_2.CourierHttpClientError; } });
|
|
8
|
-
// cannot be `import` as it's not under TS root dir
|
|
9
|
-
// tslint:disable-next-line:no-var-requires
|
|
10
|
-
var version = require("../package.json").version;
|
|
11
|
-
var DEFAULTS = {
|
|
12
|
-
BASE_URL: "https://api.courier.com"
|
|
13
|
-
};
|
|
14
|
-
var getEnvVariable = function (name) { var _a, _b; return (_b = (_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.process) === null || _a === void 0 ? void 0 : _a.env) === null || _b === void 0 ? void 0 : _b[name]; };
|
|
15
|
-
exports.CourierClient = function (options) {
|
|
16
|
-
if (options === void 0) { options = {}; }
|
|
17
|
-
var authorizationToken = options.authorizationToken || getEnvVariable("COURIER_AUTH_TOKEN");
|
|
18
|
-
if (!authorizationToken) {
|
|
19
|
-
throw new Error("Courier Auth Token is required.");
|
|
20
|
-
}
|
|
21
|
-
var baseUrl = options.baseUrl || getEnvVariable("COURIER_BASE_URL") || DEFAULTS.BASE_URL;
|
|
22
|
-
var httpClient = http_client_1.initHttpClient({
|
|
23
|
-
authorizationToken: authorizationToken,
|
|
24
|
-
baseUrl: baseUrl,
|
|
25
|
-
version: version
|
|
26
|
-
});
|
|
27
|
-
var courier = client_1.client({
|
|
28
|
-
httpClient: httpClient
|
|
29
|
-
});
|
|
30
|
-
return courier;
|
|
31
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ICourierClientConfiguration } from "../types";
|
|
2
|
-
import { ICourierAuthIssueTokenParameters, ICourierAuthIssueTokenResponse } from "./types";
|
|
3
|
-
export declare const postIssueToken: (options: ICourierClientConfiguration) => (params: ICourierAuthIssueTokenParameters) => Promise<ICourierAuthIssueTokenResponse>;
|
package/lib/issue-token/index.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.postIssueToken = void 0;
|
|
40
|
-
exports.postIssueToken = function (options) {
|
|
41
|
-
return function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
42
|
-
var res;
|
|
43
|
-
return __generator(this, function (_a) {
|
|
44
|
-
switch (_a.label) {
|
|
45
|
-
case 0: return [4 /*yield*/, options.httpClient.post("/auth/issue-token", {
|
|
46
|
-
expires_in: params.expiresIn,
|
|
47
|
-
scope: params.scope
|
|
48
|
-
})];
|
|
49
|
-
case 1:
|
|
50
|
-
res = _a.sent();
|
|
51
|
-
return [2 /*return*/, res.data];
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
}); };
|
|
55
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface ICourierAuthIssueTokenParameters {
|
|
2
|
-
scope: string;
|
|
3
|
-
expiresIn: string;
|
|
4
|
-
}
|
|
5
|
-
export interface ICourierAuthIssueTokenResponse {
|
|
6
|
-
token?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface ICourierClientAuth {
|
|
9
|
-
postIssueToken: (scope: string, expiresIn?: string) => Promise<ICourierAuthIssueTokenResponse>;
|
|
10
|
-
}
|
package/lib/lists/index.d.ts
DELETED
package/lib/lists/index.js
DELETED
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.lists = void 0;
|
|
40
|
-
var list = function (options) {
|
|
41
|
-
return function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
42
|
-
var res;
|
|
43
|
-
return __generator(this, function (_a) {
|
|
44
|
-
switch (_a.label) {
|
|
45
|
-
case 0: return [4 /*yield*/, options.httpClient.get("/lists", params)];
|
|
46
|
-
case 1:
|
|
47
|
-
res = _a.sent();
|
|
48
|
-
return [2 /*return*/, res.data];
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
}); };
|
|
52
|
-
};
|
|
53
|
-
var get = function (options) {
|
|
54
|
-
return function (listId) { return __awaiter(void 0, void 0, void 0, function () {
|
|
55
|
-
var res;
|
|
56
|
-
return __generator(this, function (_a) {
|
|
57
|
-
switch (_a.label) {
|
|
58
|
-
case 0: return [4 /*yield*/, options.httpClient.get("/lists/" + listId)];
|
|
59
|
-
case 1:
|
|
60
|
-
res = _a.sent();
|
|
61
|
-
return [2 /*return*/, res.data];
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
}); };
|
|
65
|
-
};
|
|
66
|
-
var put = function (options) {
|
|
67
|
-
// tslint:disable-next-line: no-shadowed-variable
|
|
68
|
-
return function (listId, params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
69
|
-
return __generator(this, function (_a) {
|
|
70
|
-
switch (_a.label) {
|
|
71
|
-
case 0: return [4 /*yield*/, options.httpClient.put("/lists/" + listId, params)];
|
|
72
|
-
case 1:
|
|
73
|
-
_a.sent();
|
|
74
|
-
return [2 /*return*/];
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
}); };
|
|
78
|
-
};
|
|
79
|
-
var deleteList = function (options) {
|
|
80
|
-
return function (listId) { return __awaiter(void 0, void 0, void 0, function () {
|
|
81
|
-
return __generator(this, function (_a) {
|
|
82
|
-
switch (_a.label) {
|
|
83
|
-
case 0: return [4 /*yield*/, options.httpClient.delete("/lists/" + listId)];
|
|
84
|
-
case 1:
|
|
85
|
-
_a.sent();
|
|
86
|
-
return [2 /*return*/];
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
}); };
|
|
90
|
-
};
|
|
91
|
-
var restore = function (options) {
|
|
92
|
-
return function (listId) { return __awaiter(void 0, void 0, void 0, function () {
|
|
93
|
-
return __generator(this, function (_a) {
|
|
94
|
-
switch (_a.label) {
|
|
95
|
-
case 0: return [4 /*yield*/, options.httpClient.put("/lists/" + listId + "/restore")];
|
|
96
|
-
case 1:
|
|
97
|
-
_a.sent();
|
|
98
|
-
return [2 /*return*/];
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
}); };
|
|
102
|
-
};
|
|
103
|
-
var getSubscriptions = function (options) {
|
|
104
|
-
return function (listId, params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
105
|
-
var res;
|
|
106
|
-
return __generator(this, function (_a) {
|
|
107
|
-
switch (_a.label) {
|
|
108
|
-
case 0: return [4 /*yield*/, options.httpClient.get("/lists/" + listId + "/subscriptions", params)];
|
|
109
|
-
case 1:
|
|
110
|
-
res = _a.sent();
|
|
111
|
-
return [2 /*return*/, res.data];
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
}); };
|
|
115
|
-
};
|
|
116
|
-
var putSubscriptions = function (options) {
|
|
117
|
-
return function (listId, recipients) { return __awaiter(void 0, void 0, void 0, function () {
|
|
118
|
-
return __generator(this, function (_a) {
|
|
119
|
-
switch (_a.label) {
|
|
120
|
-
case 0: return [4 /*yield*/, options.httpClient.put("/lists/" + listId + "/subscriptions", {
|
|
121
|
-
recipients: recipients
|
|
122
|
-
})];
|
|
123
|
-
case 1:
|
|
124
|
-
_a.sent();
|
|
125
|
-
return [2 /*return*/];
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
}); };
|
|
129
|
-
};
|
|
130
|
-
var postSubscriptions = function (options) {
|
|
131
|
-
return function (listId, recipients) { return __awaiter(void 0, void 0, void 0, function () {
|
|
132
|
-
return __generator(this, function (_a) {
|
|
133
|
-
switch (_a.label) {
|
|
134
|
-
case 0: return [4 /*yield*/, options.httpClient.post("/lists/" + listId + "/subscriptions", {
|
|
135
|
-
recipients: recipients
|
|
136
|
-
})];
|
|
137
|
-
case 1:
|
|
138
|
-
_a.sent();
|
|
139
|
-
return [2 /*return*/];
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
}); };
|
|
143
|
-
};
|
|
144
|
-
var subscribe = function (options) {
|
|
145
|
-
return function (listId, recipientId, preferences) { return __awaiter(void 0, void 0, void 0, function () {
|
|
146
|
-
return __generator(this, function (_a) {
|
|
147
|
-
switch (_a.label) {
|
|
148
|
-
case 0: return [4 /*yield*/, options.httpClient.put("/lists/" + listId + "/subscriptions/" + recipientId, {
|
|
149
|
-
preferences: preferences
|
|
150
|
-
})];
|
|
151
|
-
case 1:
|
|
152
|
-
_a.sent();
|
|
153
|
-
return [2 /*return*/];
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
}); };
|
|
157
|
-
};
|
|
158
|
-
var unsubscribe = function (options) {
|
|
159
|
-
return function (listId, recipientId) { return __awaiter(void 0, void 0, void 0, function () {
|
|
160
|
-
return __generator(this, function (_a) {
|
|
161
|
-
switch (_a.label) {
|
|
162
|
-
case 0: return [4 /*yield*/, options.httpClient.delete("/lists/" + listId + "/subscriptions/" + recipientId)];
|
|
163
|
-
case 1:
|
|
164
|
-
_a.sent();
|
|
165
|
-
return [2 /*return*/];
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
}); };
|
|
169
|
-
};
|
|
170
|
-
var findByRecipientId = function (options) {
|
|
171
|
-
return function (recipientId, params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
172
|
-
var res;
|
|
173
|
-
return __generator(this, function (_a) {
|
|
174
|
-
switch (_a.label) {
|
|
175
|
-
case 0: return [4 /*yield*/, options.httpClient.get("/profiles/" + recipientId + "/lists", params)];
|
|
176
|
-
case 1:
|
|
177
|
-
res = _a.sent();
|
|
178
|
-
return [2 /*return*/, res.data];
|
|
179
|
-
}
|
|
180
|
-
});
|
|
181
|
-
}); };
|
|
182
|
-
};
|
|
183
|
-
var send = function (options) {
|
|
184
|
-
return function (params, config) { return __awaiter(void 0, void 0, void 0, function () {
|
|
185
|
-
var res;
|
|
186
|
-
return __generator(this, function (_a) {
|
|
187
|
-
switch (_a.label) {
|
|
188
|
-
case 0: return [4 /*yield*/, options.httpClient.post("/send/list", params, {
|
|
189
|
-
idempotencyExpiry: config === null || config === void 0 ? void 0 : config.idempotencyExpiry,
|
|
190
|
-
idempotencyKey: config === null || config === void 0 ? void 0 : config.idempotencyKey
|
|
191
|
-
})];
|
|
192
|
-
case 1:
|
|
193
|
-
res = _a.sent();
|
|
194
|
-
return [2 /*return*/, res.data];
|
|
195
|
-
}
|
|
196
|
-
});
|
|
197
|
-
}); };
|
|
198
|
-
};
|
|
199
|
-
exports.lists = function (options) {
|
|
200
|
-
return {
|
|
201
|
-
delete: deleteList(options),
|
|
202
|
-
findByRecipientId: findByRecipientId(options),
|
|
203
|
-
get: get(options),
|
|
204
|
-
getSubscriptions: getSubscriptions(options),
|
|
205
|
-
list: list(options),
|
|
206
|
-
postSubscriptions: postSubscriptions(options),
|
|
207
|
-
put: put(options),
|
|
208
|
-
putSubscriptions: putSubscriptions(options),
|
|
209
|
-
restore: restore(options),
|
|
210
|
-
send: send(options),
|
|
211
|
-
subscribe: subscribe(options),
|
|
212
|
-
unsubscribe: unsubscribe(options)
|
|
213
|
-
};
|
|
214
|
-
};
|
package/lib/lists/types.d.ts
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { ICourierNotificationPreferences, IRecipientPreferences } from "../preferences/types";
|
|
2
|
-
import { ICourierPaging, ICourierSendConfig, ICourierSendListOrPatternParams, ICourierSendResponse } from "../types";
|
|
3
|
-
export interface ICourierList {
|
|
4
|
-
created?: number;
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
updated?: number;
|
|
8
|
-
}
|
|
9
|
-
export interface ICourierRecipientSubscriptionsResponse {
|
|
10
|
-
paging: ICourierPaging;
|
|
11
|
-
results: ICourierList[];
|
|
12
|
-
}
|
|
13
|
-
export interface ICourierListPutParams {
|
|
14
|
-
name: string;
|
|
15
|
-
preferences?: {
|
|
16
|
-
notifications: IRecipientPreferences;
|
|
17
|
-
categories?: IRecipientPreferences;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export interface ICourierListGetAllParams {
|
|
21
|
-
cursor?: string;
|
|
22
|
-
pattern?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface ICourierListGetAllResponse {
|
|
25
|
-
paging: ICourierPaging;
|
|
26
|
-
items: ICourierList[];
|
|
27
|
-
}
|
|
28
|
-
export interface ICourierListGetSubscriptionsParams {
|
|
29
|
-
cursor?: string;
|
|
30
|
-
}
|
|
31
|
-
export interface ICourierListRecipient {
|
|
32
|
-
recipientId: string;
|
|
33
|
-
created?: string;
|
|
34
|
-
preferences?: ICourierRecipientPreferences;
|
|
35
|
-
}
|
|
36
|
-
export interface ICourierListGetSubscriptionsResponse {
|
|
37
|
-
paging: ICourierPaging;
|
|
38
|
-
items: ICourierListRecipient[];
|
|
39
|
-
}
|
|
40
|
-
export interface ICourierListFindByRecipientIdParams {
|
|
41
|
-
curser?: string;
|
|
42
|
-
}
|
|
43
|
-
export interface ICourierListFindByRecipientIdResponse {
|
|
44
|
-
paging: ICourierPaging;
|
|
45
|
-
results: ICourierList[];
|
|
46
|
-
}
|
|
47
|
-
export interface ICourierRecipientPreferences {
|
|
48
|
-
categories?: ICourierNotificationPreferences;
|
|
49
|
-
notifications: ICourierNotificationPreferences;
|
|
50
|
-
}
|
|
51
|
-
export interface ICourierPutSubscriptionsRecipient {
|
|
52
|
-
recipientId: string;
|
|
53
|
-
preferences?: ICourierRecipientPreferences;
|
|
54
|
-
}
|
|
55
|
-
export interface ICourierClientLists {
|
|
56
|
-
delete: (listId: string) => Promise<void>;
|
|
57
|
-
findByRecipientId: (recipientId: string, params?: ICourierListFindByRecipientIdParams) => Promise<ICourierListFindByRecipientIdResponse>;
|
|
58
|
-
get: (listId: string) => Promise<ICourierList>;
|
|
59
|
-
getSubscriptions: (listId: string, params?: ICourierListGetSubscriptionsParams) => Promise<ICourierListGetSubscriptionsResponse>;
|
|
60
|
-
list: (params?: ICourierListGetAllParams) => Promise<ICourierListGetAllResponse>;
|
|
61
|
-
postSubscriptions: (listId: string, recipients: ICourierPutSubscriptionsRecipient[]) => Promise<void>;
|
|
62
|
-
put: (listId: string, params: ICourierListPutParams) => Promise<void>;
|
|
63
|
-
putSubscriptions: (listId: string, recipients: ICourierPutSubscriptionsRecipient[]) => Promise<void>;
|
|
64
|
-
restore: (listId: string) => Promise<void>;
|
|
65
|
-
send: (params: ICourierSendListOrPatternParams, config?: ICourierSendConfig) => Promise<ICourierSendResponse>;
|
|
66
|
-
subscribe: (listId: string, recipientId: string, preferences?: ICourierRecipientPreferences) => Promise<void>;
|
|
67
|
-
unsubscribe: (listId: string, recipientId: string) => Promise<void>;
|
|
68
|
-
}
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.notifications = void 0;
|
|
40
|
-
var list = function (options) {
|
|
41
|
-
return function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
42
|
-
var res;
|
|
43
|
-
return __generator(this, function (_a) {
|
|
44
|
-
switch (_a.label) {
|
|
45
|
-
case 0: return [4 /*yield*/, options.httpClient.get("/notifications", params)];
|
|
46
|
-
case 1:
|
|
47
|
-
res = _a.sent();
|
|
48
|
-
return [2 /*return*/, res.data];
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
}); };
|
|
52
|
-
};
|
|
53
|
-
var getContent = function (options) {
|
|
54
|
-
return function (id) { return __awaiter(void 0, void 0, void 0, function () {
|
|
55
|
-
var res;
|
|
56
|
-
return __generator(this, function (_a) {
|
|
57
|
-
switch (_a.label) {
|
|
58
|
-
case 0: return [4 /*yield*/, options.httpClient.get("/notifications/" + id + "/content")];
|
|
59
|
-
case 1:
|
|
60
|
-
res = _a.sent();
|
|
61
|
-
return [2 /*return*/, res.data];
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
}); };
|
|
65
|
-
};
|
|
66
|
-
var getDraftContent = function (options) {
|
|
67
|
-
return function (id) { return __awaiter(void 0, void 0, void 0, function () {
|
|
68
|
-
var res;
|
|
69
|
-
return __generator(this, function (_a) {
|
|
70
|
-
switch (_a.label) {
|
|
71
|
-
case 0: return [4 /*yield*/, options.httpClient.get("/notifications/" + id + "/draft/content")];
|
|
72
|
-
case 1:
|
|
73
|
-
res = _a.sent();
|
|
74
|
-
return [2 /*return*/, res.data];
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
}); };
|
|
78
|
-
};
|
|
79
|
-
var postVariations = function (options) {
|
|
80
|
-
return function (id, params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
81
|
-
return __generator(this, function (_a) {
|
|
82
|
-
switch (_a.label) {
|
|
83
|
-
case 0: return [4 /*yield*/, options.httpClient.post("/notifications/" + id + "/variations", params)];
|
|
84
|
-
case 1:
|
|
85
|
-
_a.sent();
|
|
86
|
-
return [2 /*return*/];
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
}); };
|
|
90
|
-
};
|
|
91
|
-
var postDraftVariations = function (options) {
|
|
92
|
-
return function (id, params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
93
|
-
return __generator(this, function (_a) {
|
|
94
|
-
switch (_a.label) {
|
|
95
|
-
case 0: return [4 /*yield*/, options.httpClient.post("/notifications/" + id + "/draft/variations", params)];
|
|
96
|
-
case 1:
|
|
97
|
-
_a.sent();
|
|
98
|
-
return [2 /*return*/];
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
}); };
|
|
102
|
-
};
|
|
103
|
-
var getSubmissionChecks = function (options) {
|
|
104
|
-
return function (id, submissionId) { return __awaiter(void 0, void 0, void 0, function () {
|
|
105
|
-
var res;
|
|
106
|
-
return __generator(this, function (_a) {
|
|
107
|
-
switch (_a.label) {
|
|
108
|
-
case 0: return [4 /*yield*/, options.httpClient.get("/notifications/" + id + "/" + submissionId + "/checks")];
|
|
109
|
-
case 1:
|
|
110
|
-
res = _a.sent();
|
|
111
|
-
return [2 /*return*/, res.data];
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
}); };
|
|
115
|
-
};
|
|
116
|
-
var putSubmissionChecks = function (options) {
|
|
117
|
-
return function (id, submissionId, params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
118
|
-
var res;
|
|
119
|
-
return __generator(this, function (_a) {
|
|
120
|
-
switch (_a.label) {
|
|
121
|
-
case 0: return [4 /*yield*/, options.httpClient.put("/notifications/" + id + "/" + submissionId + "/checks", params)];
|
|
122
|
-
case 1:
|
|
123
|
-
res = _a.sent();
|
|
124
|
-
return [2 /*return*/, res.data];
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
}); };
|
|
128
|
-
};
|
|
129
|
-
var cancelSubmission = function (options) {
|
|
130
|
-
return function (id, submissionId) { return __awaiter(void 0, void 0, void 0, function () {
|
|
131
|
-
return __generator(this, function (_a) {
|
|
132
|
-
switch (_a.label) {
|
|
133
|
-
case 0: return [4 /*yield*/, options.httpClient.delete("/notifications/" + id + "/" + submissionId + "/checks")];
|
|
134
|
-
case 1:
|
|
135
|
-
_a.sent();
|
|
136
|
-
return [2 /*return*/];
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
}); };
|
|
140
|
-
};
|
|
141
|
-
exports.notifications = function (options) {
|
|
142
|
-
return {
|
|
143
|
-
cancelSubmission: cancelSubmission(options),
|
|
144
|
-
getContent: getContent(options),
|
|
145
|
-
getDraftContent: getDraftContent(options),
|
|
146
|
-
getSubmissionChecks: getSubmissionChecks(options),
|
|
147
|
-
list: list(options),
|
|
148
|
-
postDraftVariations: postDraftVariations(options),
|
|
149
|
-
postVariations: postVariations(options),
|
|
150
|
-
putSubmissionChecks: putSubmissionChecks(options)
|
|
151
|
-
};
|
|
152
|
-
};
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { ICourierPaging } from "../types";
|
|
2
|
-
export declare type MessageRoutingMethod = "all" | "single";
|
|
3
|
-
export declare type MessageRoutingChannel = string | IMessageRouting;
|
|
4
|
-
export interface IMessageRouting {
|
|
5
|
-
method: MessageRoutingMethod;
|
|
6
|
-
channels: MessageRoutingChannel[];
|
|
7
|
-
}
|
|
8
|
-
export interface ICourierNotificationListResponse {
|
|
9
|
-
paging: ICourierPaging;
|
|
10
|
-
results: Array<{
|
|
11
|
-
created_at: number;
|
|
12
|
-
id: string;
|
|
13
|
-
routing: IMessageRouting;
|
|
14
|
-
tags: {
|
|
15
|
-
data: Array<{
|
|
16
|
-
id: string;
|
|
17
|
-
name: string;
|
|
18
|
-
}>;
|
|
19
|
-
};
|
|
20
|
-
title: string;
|
|
21
|
-
updated_at: number;
|
|
22
|
-
}>;
|
|
23
|
-
}
|
|
24
|
-
export interface ICourierNotificationListParams {
|
|
25
|
-
cursor?: string;
|
|
26
|
-
}
|
|
27
|
-
export declare type BlockType = "action" | "divider" | "image" | "jsonnet" | "list" | "markdown" | "quote" | "template" | "text";
|
|
28
|
-
export interface ICourierNotificationBlock {
|
|
29
|
-
alias?: string;
|
|
30
|
-
context?: string;
|
|
31
|
-
id: string;
|
|
32
|
-
type: BlockType;
|
|
33
|
-
content?: string | {
|
|
34
|
-
parent?: string;
|
|
35
|
-
children?: string;
|
|
36
|
-
};
|
|
37
|
-
locales?: {
|
|
38
|
-
[locale: string]: string | {
|
|
39
|
-
parent?: string;
|
|
40
|
-
children?: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
checksum?: string;
|
|
44
|
-
}
|
|
45
|
-
export interface ICourierNotificationChannel {
|
|
46
|
-
id: string;
|
|
47
|
-
type?: string;
|
|
48
|
-
content?: {
|
|
49
|
-
subject?: string;
|
|
50
|
-
title?: string;
|
|
51
|
-
};
|
|
52
|
-
locales?: {
|
|
53
|
-
[locale: string]: {
|
|
54
|
-
subject?: string;
|
|
55
|
-
title?: string;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
checksum?: string;
|
|
59
|
-
}
|
|
60
|
-
export interface ICourierNotificationGetContentResponse {
|
|
61
|
-
blocks?: ICourierNotificationBlock[];
|
|
62
|
-
channels?: ICourierNotificationChannel[];
|
|
63
|
-
checksum?: string;
|
|
64
|
-
}
|
|
65
|
-
export interface ICourierNotificationPostVariationsParams {
|
|
66
|
-
blocks?: ICourierNotificationBlock[];
|
|
67
|
-
channels?: ICourierNotificationChannel[];
|
|
68
|
-
}
|
|
69
|
-
export interface ICourierNotificationPostDraftVariationsParams {
|
|
70
|
-
blocks?: ICourierNotificationBlock[];
|
|
71
|
-
channels?: ICourierNotificationChannel[];
|
|
72
|
-
}
|
|
73
|
-
export declare type CheckStatus = "RESOLVED" | "FAILED" | "PENDING";
|
|
74
|
-
export interface ICheck {
|
|
75
|
-
id: string;
|
|
76
|
-
status: CheckStatus;
|
|
77
|
-
type: "custom";
|
|
78
|
-
updated: number;
|
|
79
|
-
}
|
|
80
|
-
export interface ICourierNotificationGetSubmissionChecksResponse {
|
|
81
|
-
checks: ICheck[];
|
|
82
|
-
}
|
|
83
|
-
export interface ICourierNotificationPutSubmissionChecksParams {
|
|
84
|
-
checks: Array<Omit<ICheck, "updated">>;
|
|
85
|
-
}
|
|
86
|
-
export interface ICourierNotificationPutSubmissionChecksResponse {
|
|
87
|
-
checks: ICheck[];
|
|
88
|
-
}
|
|
89
|
-
export interface ICourierClientNotifications {
|
|
90
|
-
list: (params: ICourierNotificationListParams) => Promise<ICourierNotificationListResponse>;
|
|
91
|
-
getContent: (id: string) => Promise<ICourierNotificationGetContentResponse>;
|
|
92
|
-
getDraftContent: (id: string) => Promise<ICourierNotificationGetContentResponse>;
|
|
93
|
-
postVariations: (id: string, params: ICourierNotificationPostVariationsParams) => Promise<void>;
|
|
94
|
-
postDraftVariations: (id: string, params: ICourierNotificationPostDraftVariationsParams) => Promise<void>;
|
|
95
|
-
getSubmissionChecks: (id: string, submissionId: string) => Promise<ICourierNotificationGetSubmissionChecksResponse>;
|
|
96
|
-
putSubmissionChecks: (id: string, submissionId: string, params: ICourierNotificationPutSubmissionChecksParams) => Promise<ICourierNotificationPutSubmissionChecksResponse>;
|
|
97
|
-
cancelSubmission: (id: string, submissionId: string) => Promise<void>;
|
|
98
|
-
}
|