@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/CHANGELOG.md
ADDED
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
This project adheres to [Semantic Versioning](http://semver.org/).
|
|
5
|
+
|
|
6
|
+
## [Unreleased][unreleased]
|
|
7
|
+
|
|
8
|
+
## [v4.1.1] - 2023-02-02
|
|
9
|
+
|
|
10
|
+
- fix audience put request
|
|
11
|
+
|
|
12
|
+
## [v4.1.0] - 2022-10-21
|
|
13
|
+
|
|
14
|
+
- adds support for invoke step via `client.automations.invokeAdHocAutomation({...})`
|
|
15
|
+
|
|
16
|
+
## [v4.0.2] - 2022-10-19
|
|
17
|
+
|
|
18
|
+
- Fix `unexpected error` in Node 18.x
|
|
19
|
+
- Fix baseURLs getting chopped off
|
|
20
|
+
|
|
21
|
+
## [v4.0.1] - 2022-10-13
|
|
22
|
+
|
|
23
|
+
- resolves `FetchError: invalid json response body` for API's returning no body
|
|
24
|
+
|
|
25
|
+
## [v4.0.0]
|
|
26
|
+
|
|
27
|
+
- Migrate from Axios to fetch
|
|
28
|
+
|
|
29
|
+
## [3.16.0]
|
|
30
|
+
|
|
31
|
+
- adds support for idempotency expiry to be passed in profiles and brands POST
|
|
32
|
+
|
|
33
|
+
## [3.15.0]
|
|
34
|
+
|
|
35
|
+
- adds support for audit events
|
|
36
|
+
|
|
37
|
+
## [3.14.0]
|
|
38
|
+
|
|
39
|
+
- adds support for token management
|
|
40
|
+
|
|
41
|
+
## [3.13.1] - 2022-06-03
|
|
42
|
+
|
|
43
|
+
- adds provider and channel timeout
|
|
44
|
+
|
|
45
|
+
## [3.12.0] - 2022-03-31
|
|
46
|
+
|
|
47
|
+
- adds support for message trace id (`message.metadata.trace_id`)
|
|
48
|
+
|
|
49
|
+
## [3.11.0] - 2022-03-23
|
|
50
|
+
|
|
51
|
+
- adds support for `audiences`
|
|
52
|
+
|
|
53
|
+
## [3.10.1] - 2022-03-20
|
|
54
|
+
|
|
55
|
+
- adds support for messages timeout (`message.timeout`)
|
|
56
|
+
|
|
57
|
+
## [3.10.0] - 2020-03-24
|
|
58
|
+
|
|
59
|
+
- adds support for messages brand_id (`message.brand_id`)
|
|
60
|
+
|
|
61
|
+
## [3.9.0] - 2022-03-17
|
|
62
|
+
|
|
63
|
+
- adds support for bulk messaging API v2 support
|
|
64
|
+
|
|
65
|
+
## [3.8.0] - 2022-03-14
|
|
66
|
+
|
|
67
|
+
- adds additional types for utm property (`message.metadata.utm`)
|
|
68
|
+
|
|
69
|
+
## [v3.7.0] - 2022-03-11
|
|
70
|
+
|
|
71
|
+
- adds additional types for the tags property (`message.metadata.tags`)
|
|
72
|
+
- adds support for searching message by tags
|
|
73
|
+
|
|
74
|
+
## [v3.6.0] - 2022-02-10
|
|
75
|
+
|
|
76
|
+
- adds additional types for the recipient property (`message.to`)
|
|
77
|
+
|
|
78
|
+
## [v3.5.0] - 2022-02-10
|
|
79
|
+
|
|
80
|
+
- adds type for unroutable status
|
|
81
|
+
|
|
82
|
+
## [v3.4.0] - 2022-01-25
|
|
83
|
+
|
|
84
|
+
- adds support for the send message object in the request body of a `/send` call
|
|
85
|
+
|
|
86
|
+
## [v3.3.0] - 2022-01-25
|
|
87
|
+
|
|
88
|
+
- adds support for bulk processing endpoints
|
|
89
|
+
|
|
90
|
+
## [v3.2.1] - 2022-01-13
|
|
91
|
+
|
|
92
|
+
- Fixes `getMessages` query params
|
|
93
|
+
|
|
94
|
+
## [v3.2.0] - 2021-11-18
|
|
95
|
+
|
|
96
|
+
- adds idempotency expiration support for send and send list endpoints
|
|
97
|
+
|
|
98
|
+
## [v3.1.0] - 2021-11-16
|
|
99
|
+
|
|
100
|
+
- Expose additional type definitions for `getMessage`
|
|
101
|
+
|
|
102
|
+
## [v3.0.0] - 2021-11-02
|
|
103
|
+
|
|
104
|
+
- fixes type definition for `getRecipientSubscriptions`
|
|
105
|
+
|
|
106
|
+
## [v2.8.0] - 2021-10-29
|
|
107
|
+
|
|
108
|
+
- adds GET /messages/{messageId}/output API
|
|
109
|
+
|
|
110
|
+
## [v2.7.0] - 2021-10-21
|
|
111
|
+
|
|
112
|
+
- adds GET /messages/{messageId}/history API
|
|
113
|
+
|
|
114
|
+
## [v2.6.0] - 2021-10-07
|
|
115
|
+
|
|
116
|
+
- Add support for DELETE /profiles/{recipient_id} (#58)
|
|
117
|
+
- adds GET /messages API
|
|
118
|
+
- adds idempotencyKey support in automations client
|
|
119
|
+
|
|
120
|
+
## [v2.4.0] - 2021-08-23
|
|
121
|
+
|
|
122
|
+
- adds notifications API
|
|
123
|
+
- type fix `put` method of `ICourierClientLists`
|
|
124
|
+
|
|
125
|
+
## [v2.3.0] - 2021-04-28
|
|
126
|
+
|
|
127
|
+
- adds support for update-profile step via `client.automations.invokeAdHocAutomation({...})`
|
|
128
|
+
|
|
129
|
+
## [v2.2.0] - 2021-04-07
|
|
130
|
+
|
|
131
|
+
- adds automations API
|
|
132
|
+
|
|
133
|
+
## [v2.1.0] - 2021-03-15
|
|
134
|
+
|
|
135
|
+
- adds support to add more recipients to a list subscription (#40)
|
|
136
|
+
- adds support to delete all the lists subscriptions for a recipient (#39)
|
|
137
|
+
- adds support to add recipient to multiple lists (#38)
|
|
138
|
+
- updates preference interface to accept new preference options (#37)
|
|
139
|
+
|
|
140
|
+
## [v2.0.0] - 2021-03-03
|
|
141
|
+
|
|
142
|
+
- supports adding subscription preferences (#35)
|
|
143
|
+
|
|
144
|
+
## [v1.7.3] - 2021-03-03
|
|
145
|
+
|
|
146
|
+
### Added
|
|
147
|
+
|
|
148
|
+
- ICourierClient exported as a type [#33](https://github.com/trycourier/courier-node/pull/33)
|
|
149
|
+
|
|
150
|
+
## [v1.7.2] - 2021-02-16
|
|
151
|
+
|
|
152
|
+
### Fixed
|
|
153
|
+
|
|
154
|
+
- Update PUT list subscription request params with appropriate type [#32](https://github.com/trycourier/courier-node/pull/32)
|
|
155
|
+
|
|
156
|
+
## [v1.7.1] - 2021-02-01
|
|
157
|
+
|
|
158
|
+
### Fixed
|
|
159
|
+
|
|
160
|
+
- Fix the notification(s) typo [#28](https://github.com/trycourier/courier-node/pull/28)
|
|
161
|
+
|
|
162
|
+
## [v1.7.0] - 2021-01-25
|
|
163
|
+
|
|
164
|
+
### Added
|
|
165
|
+
|
|
166
|
+
- Support for [Preferences API]() by @helenamerk and @aydrian
|
|
167
|
+
- `GET /preferences` via `client.preferences.list()`
|
|
168
|
+
- `GET /preferences/{recipient_id}` via `client.preferences.get(recipientId)`
|
|
169
|
+
- `PUT /preferences/{recipient_id}` via `client.preferences.put(recipientId, {...})`
|
|
170
|
+
|
|
171
|
+
## [v1.6.2] - 2021-01-19
|
|
172
|
+
|
|
173
|
+
### Fixed
|
|
174
|
+
|
|
175
|
+
- Bumped [axios](https://www.npmjs.com/package/axios) to version 0.21.1
|
|
176
|
+
- Updated types for Send to List Parameters by @rileylnapier
|
|
177
|
+
|
|
178
|
+
## [v1.6.1] - 2020-09-23
|
|
179
|
+
|
|
180
|
+
### Fixed
|
|
181
|
+
|
|
182
|
+
- Fixed return types for `PUT` methods that return 204
|
|
183
|
+
- Fixed param types for `client.lists.send()`
|
|
184
|
+
- Fixed return type for `client.lists.findByRecipientId()`
|
|
185
|
+
- Fixed param types for `client.lists.put()`
|
|
186
|
+
|
|
187
|
+
## [v1.6.0] - 2020-09-22
|
|
188
|
+
|
|
189
|
+
### Added
|
|
190
|
+
|
|
191
|
+
- Support for `idempotencyKey` for `POST` methods by @aydrian & @rileylnapier
|
|
192
|
+
- Support for [Lists API](https://docs.courier.com/reference/lists-api) by @aydrian
|
|
193
|
+
- `POST /send/list` via `client.lists.send(params, config)`
|
|
194
|
+
- `GET /profiles/{recipient_id}/lists` via `client.lists.findByRecipientId(recipientId, params)`
|
|
195
|
+
- `GET /lists` via `client.lists.list(params)`
|
|
196
|
+
- `GET /lists/{list_id}` via `client.lists.get(listId)`
|
|
197
|
+
- `PUT /lists/{list_id}` via `client.lists.put(listId, {...})`
|
|
198
|
+
- `DELETE /lists/{list_id}` via `client.lists.delete(listId)`
|
|
199
|
+
- `PUT /lists/{list_id}/restore` via `client.lists.restore(listId)`
|
|
200
|
+
- `GET /lists/{list_id}/subscriptions` via `client.lists.getSubscriptions(listId)`
|
|
201
|
+
- `PUT /lists/{list_id}/subscriptions` via `client.lists.putSubscriptions(listId, [recipientId], config)`
|
|
202
|
+
- `PUT /lists/{list_id}/subscriptions/{recipient_id}` via `client.lists.subscribe(listId, recipientId)`
|
|
203
|
+
- `DELETE /lists/{list_id}/subscriptions/{recipient_id}` via `client.lists.unsubscribe(listId, recipientId)`
|
|
204
|
+
|
|
205
|
+
### Changed
|
|
206
|
+
|
|
207
|
+
- Default `base_url` is now `api.courier.com`
|
|
208
|
+
|
|
209
|
+
## [v1.5.0] - 2020-07-08
|
|
210
|
+
|
|
211
|
+
### Added
|
|
212
|
+
|
|
213
|
+
- Support for [Brands API](https://docs.courier.com/reference/brands-api) by @aydrian
|
|
214
|
+
- `GET /brands` via `client.getBrands(params)`
|
|
215
|
+
- `GET /brands/:brand_id` via `client.getBrand(brandId)`
|
|
216
|
+
- `POST /brands` via `client.createBrand({…})`
|
|
217
|
+
- `PUT /brands/:brand_id` via `client.replaceBrand({…})`
|
|
218
|
+
- `DELETE /brands/:brand_id` via `client.deleteBrand(brandId)`
|
|
219
|
+
- Support for specifying notification brand during [send](https://docs.courier.com/reference/send-api#sendmessage) by @aydrian
|
|
220
|
+
|
|
221
|
+
## [v1.4.0] - 2020-06-29
|
|
222
|
+
|
|
223
|
+
### Added
|
|
224
|
+
|
|
225
|
+
- Support `GET /messages/:messageId` via `client.getMessage(messageId)` @rileylnapier
|
|
226
|
+
|
|
227
|
+
## [v1.3.0] - 2020-03-10
|
|
228
|
+
|
|
229
|
+
### Added
|
|
230
|
+
|
|
231
|
+
- Support credential storage using `COURIER_AUTH_TOKEN` environment variable by @aydrian
|
|
232
|
+
- Support setting base url using `COURIER_BASE_URL` environment variable by @aydrian
|
|
233
|
+
- Support preferences and override in send method by @aydrian
|
|
234
|
+
- Create GitHub Issue and Pull Request templates by @rileylnapier
|
|
235
|
+
|
|
236
|
+
### Changed
|
|
237
|
+
|
|
238
|
+
- Updated user agent string to match new standard by @aydrian
|
|
239
|
+
|
|
240
|
+
## [v1.2.1] - 2019-12-30
|
|
241
|
+
|
|
242
|
+
### Fixed
|
|
243
|
+
|
|
244
|
+
- Convert package.json import to a require by @@scarney81
|
|
245
|
+
|
|
246
|
+
## [v1.2.0] - 2019-12-20
|
|
247
|
+
|
|
248
|
+
## Added
|
|
249
|
+
|
|
250
|
+
- Custom user agent string by @aydrian
|
|
251
|
+
|
|
252
|
+
## [v1.1.6] - 2019-07-12
|
|
253
|
+
|
|
254
|
+
## [v1.1.5] - 2019-07-12
|
|
255
|
+
|
|
256
|
+
## [v1.1.4] - 2019-07-12
|
|
257
|
+
|
|
258
|
+
## [v1.1.3] - 2019-07-12
|
|
259
|
+
|
|
260
|
+
## [v1.1.2] - 2019-07-12
|
|
261
|
+
|
|
262
|
+
## [v1.1.1] - 2019-07-12
|
|
263
|
+
|
|
264
|
+
## [v1.1.0] - 2019-07-12
|
|
265
|
+
|
|
266
|
+
## [v1.0.4] - 2019-07-12
|
|
267
|
+
|
|
268
|
+
## [v1.0.3] - 2019-07-12
|
|
269
|
+
|
|
270
|
+
## [v1.0.2] - 2019-07-12
|
|
271
|
+
|
|
272
|
+
## v1.0.1 - 2019-07-12
|
|
273
|
+
|
|
274
|
+
[unreleased]: https://github.com/trycourier/courier-node/compare/v4.1.1...HEAD
|
|
275
|
+
[v4.1.1]: https://github.com/trycourier/courier-node/compare/v4.1.1...v4.1.0
|
|
276
|
+
[v4.0.2]: https://github.com/trycourier/courier-node/compare/v4.0.1...v4.0.2
|
|
277
|
+
[v4.0.1]: https://github.com/trycourier/courier-node/compare/v4.0.0...v4.0.1
|
|
278
|
+
[v4.0.0]: https://github.com/trycourier/courier-node/compare/v3.16.0...v4.0.0
|
|
279
|
+
[v3.11.0]: https://github.com/trycourier/courier-node/compare/v3.10.0...v3.11.0
|
|
280
|
+
[v3.10.0]: https://github.com/trycourier/courier-node/compare/v3.9.0...v3.10.0
|
|
281
|
+
[v3.9.0]: https://github.com/trycourier/courier-node/compare/v3.8.0...v3.9.0
|
|
282
|
+
[v3.8.0]: https://github.com/trycourier/courier-node/compare/v3.7.0...v3.8.0
|
|
283
|
+
[v3.7.0]: https://github.com/trycourier/courier-node/compare/v3.6.0...v3.7.0
|
|
284
|
+
[v3.6.0]: https://github.com/trycourier/courier-node/compare/v3.5.0...v3.6.0
|
|
285
|
+
[v3.5.0]: https://github.com/trycourier/courier-node/compare/v3.4.0...v3.5.0
|
|
286
|
+
[v3.4.0]: https://github.com/trycourier/courier-node/compare/v3.3.0...v3.4.0
|
|
287
|
+
[v3.3.0]: https://github.com/trycourier/courier-node/compare/v3.2.1...v3.3.0
|
|
288
|
+
[v3.2.1]: https://github.com/trycourier/courier-node/compare/v3.2.0...v3.2.1
|
|
289
|
+
[v3.2.0]: https://github.com/trycourier/courier-node/compare/v3.1.0...v3.2.0
|
|
290
|
+
[v3.1.0]: https://github.com/trycourier/courier-node/compare/v3.0.0...v3.1.0
|
|
291
|
+
[v3.0.0]: https://github.com/trycourier/courier-node/compare/v2.8.0...v3.0.0
|
|
292
|
+
[v2.8.0]: https://github.com/trycourier/courier-node/compare/v2.7.0...v2.8.0
|
|
293
|
+
[v2.7.0]: https://github.com/trycourier/courier-node/compare/v2.6.0...v2.7.0
|
|
294
|
+
[v2.6.0]: https://github.com/trycourier/courier-node/compare/v2.4.0...v2.6.0
|
|
295
|
+
[v2.4.0]: https://github.com/trycourier/courier-node/compare/v2.3.0...v2.4.0
|
|
296
|
+
[v2.3.0]: https://github.com/trycourier/courier-node/compare/v2.2.0...v2.3.0
|
|
297
|
+
[v2.2.0]: https://github.com/trycourier/courier-node/compare/v2.1.0...v2.2.0
|
|
298
|
+
[v2.1.0]: https://github.com/trycourier/courier-node/compare/v2.0.0...v2.1.0
|
|
299
|
+
[v2.0.0]: https://github.com/trycourier/courier-node/compare/v1.7.3...v2.0.0
|
|
300
|
+
[v1.7.3]: https://github.com/trycourier/courier-node/compare/v1.7.2...v1.7.3
|
|
301
|
+
[v1.7.2]: https://github.com/trycourier/courier-node/compare/v1.7.1...v1.7.2
|
|
302
|
+
[v1.7.1]: https://github.com/trycourier/courier-node/compare/v1.7.0...v1.7.1
|
|
303
|
+
[v1.7.0]: https://github.com/trycourier/courier-node/compare/v1.6.2...v1.7.0
|
|
304
|
+
[v1.6.2]: https://github.com/trycourier/courier-node/compare/v1.6.1...v1.6.2
|
|
305
|
+
[v1.6.1]: https://github.com/trycourier/courier-node/compare/v1.6.0...v1.6.1
|
|
306
|
+
[v1.6.0]: https://github.com/trycourier/courier-node/compare/v1.5.0...v1.6.0
|
|
307
|
+
[v1.5.0]: https://github.com/trycourier/courier-node/compare/v1.4.0...v1.5.0
|
|
308
|
+
[v1.4.0]: https://github.com/trycourier/courier-node/compare/v1.3.0...v1.4.0
|
|
309
|
+
[v1.3.0]: https://github.com/trycourier/courier-node/compare/v1.2.1...v1.3.0
|
|
310
|
+
[v1.2.1]: https://github.com/trycourier/courier-node/compare/v1.2.0...v1.2.1
|
|
311
|
+
[v1.2.0]: https://github.com/trycourier/courier-node/compare/v1.1.6...v1.2.0
|
|
312
|
+
[v1.1.6]: https://github.com/trycourier/courier-node/compare/v1.1.5...v1.1.6
|
|
313
|
+
[v1.1.5]: https://github.com/trycourier/courier-node/compare/v1.1.4...v1.1.5
|
|
314
|
+
[v1.1.4]: https://github.com/trycourier/courier-node/compare/v1.1.3...v1.1.4
|
|
315
|
+
[v1.1.3]: https://github.com/trycourier/courier-node/compare/v1.1.2...v1.1.3
|
|
316
|
+
[v1.1.2]: https://github.com/trycourier/courier-node/compare/v1.1.1...v1.1.2
|
|
317
|
+
[v1.1.1]: https://github.com/trycourier/courier-node/compare/v1.1.0...v1.1.1
|
|
318
|
+
[v1.1.0]: https://github.com/trycourier/courier-node/compare/v1.0.4...v1.1.0
|
|
319
|
+
[v1.0.4]: https://github.com/trycourier/courier-node/compare/v1.0.3...v1.0.4
|
|
320
|
+
[v1.0.3]: https://github.com/trycourier/courier-node/compare/v1.0.2...v1.0.3
|
|
321
|
+
[v1.0.2]: https://github.com/trycourier/courier-node/compare/v1.0.1...v1.0.2
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
PR's welcome:
|
|
4
|
+
|
|
5
|
+
https://github.com/trycourier/courier-node
|
|
6
|
+
|
|
7
|
+
# Testing
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
yarn lint && yarn test
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Code Style/Formatting
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
yarn format
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Releasing New Versions
|
|
20
|
+
|
|
21
|
+
https://www.npmjs.com/package/@trycourier/courier
|
|
22
|
+
|
|
23
|
+
Make sure you have incremented the version string in `package.json` to your new version string, hereafter referred to as `<VERSION>` and merged that commit. Then:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
git tag -a v<VERSION> -m v<VERSION>
|
|
27
|
+
git push origin v<VERSION>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Note: We use NPM Automation token (https://docs.npmjs.com/creating-and-viewing-access-tokens) to publish the package. The token exists in Circle CI environment.
|
package/Client.d.ts
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "./environments";
|
|
5
|
+
import * as core from "./core";
|
|
6
|
+
import * as Courier from "./api";
|
|
7
|
+
import { Audiences } from "./api/resources/audiences/client/Client";
|
|
8
|
+
import { AuditEvents } from "./api/resources/auditEvents/client/Client";
|
|
9
|
+
import { AuthTokens } from "./api/resources/authTokens/client/Client";
|
|
10
|
+
import { Automations } from "./api/resources/automations/client/Client";
|
|
11
|
+
import { Brands } from "./api/resources/brands/client/Client";
|
|
12
|
+
import { Bulk } from "./api/resources/bulk/client/Client";
|
|
13
|
+
import { Lists } from "./api/resources/lists/client/Client";
|
|
14
|
+
import { Messages } from "./api/resources/messages/client/Client";
|
|
15
|
+
import { Profiles } from "./api/resources/profiles/client/Client";
|
|
16
|
+
import { Templates } from "./api/resources/templates/client/Client";
|
|
17
|
+
import { Tenants } from "./api/resources/tenants/client/Client";
|
|
18
|
+
import { TokenManagement } from "./api/resources/tokenManagement/client/Client";
|
|
19
|
+
import { Translations } from "./api/resources/translations/client/Client";
|
|
20
|
+
import { UserPreferences } from "./api/resources/userPreferences/client/Client";
|
|
21
|
+
export declare namespace CourierClient {
|
|
22
|
+
interface Options {
|
|
23
|
+
environment?: core.Supplier<environments.CourierEnvironment | string>;
|
|
24
|
+
authorizationToken: core.Supplier<core.BearerToken | undefined>;
|
|
25
|
+
}
|
|
26
|
+
interface RequestOptions {
|
|
27
|
+
timeoutInSeconds?: number;
|
|
28
|
+
maxRetries?: number;
|
|
29
|
+
}
|
|
30
|
+
interface IdempotentRequestOptions extends RequestOptions {
|
|
31
|
+
idempotencyKey?: string | undefined;
|
|
32
|
+
idempotencyExpiry?: number | undefined;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export declare class CourierClient {
|
|
36
|
+
protected readonly _options: CourierClient.Options;
|
|
37
|
+
constructor(_options: CourierClient.Options);
|
|
38
|
+
/**
|
|
39
|
+
* Use the send API to send a message to one or more recipients.
|
|
40
|
+
*/
|
|
41
|
+
send(request: Courier.SendMessageRequest, requestOptions?: CourierClient.IdempotentRequestOptions): Promise<Courier.SendMessageResponse>;
|
|
42
|
+
protected _audiences: Audiences | undefined;
|
|
43
|
+
get audiences(): Audiences;
|
|
44
|
+
protected _auditEvents: AuditEvents | undefined;
|
|
45
|
+
get auditEvents(): AuditEvents;
|
|
46
|
+
protected _authTokens: AuthTokens | undefined;
|
|
47
|
+
get authTokens(): AuthTokens;
|
|
48
|
+
protected _automations: Automations | undefined;
|
|
49
|
+
get automations(): Automations;
|
|
50
|
+
protected _brands: Brands | undefined;
|
|
51
|
+
get brands(): Brands;
|
|
52
|
+
protected _bulk: Bulk | undefined;
|
|
53
|
+
get bulk(): Bulk;
|
|
54
|
+
protected _lists: Lists | undefined;
|
|
55
|
+
get lists(): Lists;
|
|
56
|
+
protected _messages: Messages | undefined;
|
|
57
|
+
get messages(): Messages;
|
|
58
|
+
protected _profiles: Profiles | undefined;
|
|
59
|
+
get profiles(): Profiles;
|
|
60
|
+
protected _templates: Templates | undefined;
|
|
61
|
+
get templates(): Templates;
|
|
62
|
+
protected _tenants: Tenants | undefined;
|
|
63
|
+
get tenants(): Tenants;
|
|
64
|
+
protected _tokenManagement: TokenManagement | undefined;
|
|
65
|
+
get tokenManagement(): TokenManagement;
|
|
66
|
+
protected _translations: Translations | undefined;
|
|
67
|
+
get translations(): Translations;
|
|
68
|
+
protected _userPreferences: UserPreferences | undefined;
|
|
69
|
+
get userPreferences(): UserPreferences;
|
|
70
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
71
|
+
}
|
package/Client.js
ADDED
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
38
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
39
|
+
};
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.CourierClient = void 0;
|
|
42
|
+
const environments = __importStar(require("./environments"));
|
|
43
|
+
const core = __importStar(require("./core"));
|
|
44
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
45
|
+
const errors = __importStar(require("./errors"));
|
|
46
|
+
const Client_1 = require("./api/resources/audiences/client/Client");
|
|
47
|
+
const Client_2 = require("./api/resources/auditEvents/client/Client");
|
|
48
|
+
const Client_3 = require("./api/resources/authTokens/client/Client");
|
|
49
|
+
const Client_4 = require("./api/resources/automations/client/Client");
|
|
50
|
+
const Client_5 = require("./api/resources/brands/client/Client");
|
|
51
|
+
const Client_6 = require("./api/resources/bulk/client/Client");
|
|
52
|
+
const Client_7 = require("./api/resources/lists/client/Client");
|
|
53
|
+
const Client_8 = require("./api/resources/messages/client/Client");
|
|
54
|
+
const Client_9 = require("./api/resources/profiles/client/Client");
|
|
55
|
+
const Client_10 = require("./api/resources/templates/client/Client");
|
|
56
|
+
const Client_11 = require("./api/resources/tenants/client/Client");
|
|
57
|
+
const Client_12 = require("./api/resources/tokenManagement/client/Client");
|
|
58
|
+
const Client_13 = require("./api/resources/translations/client/Client");
|
|
59
|
+
const Client_14 = require("./api/resources/userPreferences/client/Client");
|
|
60
|
+
class CourierClient {
|
|
61
|
+
constructor(_options) {
|
|
62
|
+
this._options = _options;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Use the send API to send a message to one or more recipients.
|
|
66
|
+
*/
|
|
67
|
+
send(request, requestOptions) {
|
|
68
|
+
var _a;
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
const _response = yield core.fetcher({
|
|
71
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CourierEnvironment.Production, "/send"),
|
|
72
|
+
method: "POST",
|
|
73
|
+
headers: {
|
|
74
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
75
|
+
"X-Fern-Language": "JavaScript",
|
|
76
|
+
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
77
|
+
"X-Fern-SDK-Version": "v6.0.0",
|
|
78
|
+
"Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
|
|
79
|
+
"X-Idempotency-Expiration": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry) != null
|
|
80
|
+
? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyExpiry.toString()
|
|
81
|
+
: undefined,
|
|
82
|
+
},
|
|
83
|
+
contentType: "application/json",
|
|
84
|
+
body: request,
|
|
85
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
86
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
87
|
+
});
|
|
88
|
+
if (_response.ok) {
|
|
89
|
+
return _response.body;
|
|
90
|
+
}
|
|
91
|
+
if (_response.error.reason === "status-code") {
|
|
92
|
+
throw new errors.CourierError({
|
|
93
|
+
statusCode: _response.error.statusCode,
|
|
94
|
+
body: _response.error.body,
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
switch (_response.error.reason) {
|
|
98
|
+
case "non-json":
|
|
99
|
+
throw new errors.CourierError({
|
|
100
|
+
statusCode: _response.error.statusCode,
|
|
101
|
+
body: _response.error.rawBody,
|
|
102
|
+
});
|
|
103
|
+
case "timeout":
|
|
104
|
+
throw new errors.CourierTimeoutError();
|
|
105
|
+
case "unknown":
|
|
106
|
+
throw new errors.CourierError({
|
|
107
|
+
message: _response.error.errorMessage,
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
get audiences() {
|
|
113
|
+
var _a;
|
|
114
|
+
return ((_a = this._audiences) !== null && _a !== void 0 ? _a : (this._audiences = new Client_1.Audiences(this._options)));
|
|
115
|
+
}
|
|
116
|
+
get auditEvents() {
|
|
117
|
+
var _a;
|
|
118
|
+
return ((_a = this._auditEvents) !== null && _a !== void 0 ? _a : (this._auditEvents = new Client_2.AuditEvents(this._options)));
|
|
119
|
+
}
|
|
120
|
+
get authTokens() {
|
|
121
|
+
var _a;
|
|
122
|
+
return ((_a = this._authTokens) !== null && _a !== void 0 ? _a : (this._authTokens = new Client_3.AuthTokens(this._options)));
|
|
123
|
+
}
|
|
124
|
+
get automations() {
|
|
125
|
+
var _a;
|
|
126
|
+
return ((_a = this._automations) !== null && _a !== void 0 ? _a : (this._automations = new Client_4.Automations(this._options)));
|
|
127
|
+
}
|
|
128
|
+
get brands() {
|
|
129
|
+
var _a;
|
|
130
|
+
return ((_a = this._brands) !== null && _a !== void 0 ? _a : (this._brands = new Client_5.Brands(this._options)));
|
|
131
|
+
}
|
|
132
|
+
get bulk() {
|
|
133
|
+
var _a;
|
|
134
|
+
return ((_a = this._bulk) !== null && _a !== void 0 ? _a : (this._bulk = new Client_6.Bulk(this._options)));
|
|
135
|
+
}
|
|
136
|
+
get lists() {
|
|
137
|
+
var _a;
|
|
138
|
+
return ((_a = this._lists) !== null && _a !== void 0 ? _a : (this._lists = new Client_7.Lists(this._options)));
|
|
139
|
+
}
|
|
140
|
+
get messages() {
|
|
141
|
+
var _a;
|
|
142
|
+
return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new Client_8.Messages(this._options)));
|
|
143
|
+
}
|
|
144
|
+
get profiles() {
|
|
145
|
+
var _a;
|
|
146
|
+
return ((_a = this._profiles) !== null && _a !== void 0 ? _a : (this._profiles = new Client_9.Profiles(this._options)));
|
|
147
|
+
}
|
|
148
|
+
get templates() {
|
|
149
|
+
var _a;
|
|
150
|
+
return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new Client_10.Templates(this._options)));
|
|
151
|
+
}
|
|
152
|
+
get tenants() {
|
|
153
|
+
var _a;
|
|
154
|
+
return ((_a = this._tenants) !== null && _a !== void 0 ? _a : (this._tenants = new Client_11.Tenants(this._options)));
|
|
155
|
+
}
|
|
156
|
+
get tokenManagement() {
|
|
157
|
+
var _a;
|
|
158
|
+
return ((_a = this._tokenManagement) !== null && _a !== void 0 ? _a : (this._tokenManagement = new Client_12.TokenManagement(this._options)));
|
|
159
|
+
}
|
|
160
|
+
get translations() {
|
|
161
|
+
var _a;
|
|
162
|
+
return ((_a = this._translations) !== null && _a !== void 0 ? _a : (this._translations = new Client_13.Translations(this._options)));
|
|
163
|
+
}
|
|
164
|
+
get userPreferences() {
|
|
165
|
+
var _a;
|
|
166
|
+
return ((_a = this._userPreferences) !== null && _a !== void 0 ? _a : (this._userPreferences = new Client_14.UserPreferences(this._options)));
|
|
167
|
+
}
|
|
168
|
+
_getAuthorizationHeader() {
|
|
169
|
+
var _a;
|
|
170
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
171
|
+
const bearer = (_a = (yield core.Supplier.get(this._options.authorizationToken))) !== null && _a !== void 0 ? _a : process.env["COURIER_AUTH_TOKEN"];
|
|
172
|
+
if (bearer == null) {
|
|
173
|
+
throw new errors.CourierError({
|
|
174
|
+
message: "Please specify COURIER_AUTH_TOKEN when instantiating the client.",
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
return `Bearer ${bearer}`;
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
exports.CourierClient = CourierClient;
|
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
[](https://courier.com)
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/@trycourier/courier)
|
|
4
|
+
[](https://buildwithfern.com/?utm_source=trycourier/courier-node/readme)
|
|
4
5
|
|
|
5
6
|
This is the official node.js module for sending notifications with node.js with the [Courier](https://courier.com) REST API.
|
|
6
7
|
|
|
@@ -857,6 +858,12 @@ const userPreference = await courier.users.getUserPreferenceByTopic(
|
|
|
857
858
|
);
|
|
858
859
|
```
|
|
859
860
|
|
|
861
|
+
## Contributing
|
|
862
|
+
|
|
863
|
+
While we value open-source contributions to this SDK, this library is generated programmatically. Additions made directly to this library would have to be moved over to our generation code, otherwise they would be overwritten upon the next generated release. Feel free to open a PR as a proof of concept, but know that we will not be able to merge it as-is. We suggest opening an issue first to discuss with us!
|
|
864
|
+
|
|
865
|
+
On the other hand, contributions to the README are always very welcome!
|
|
866
|
+
|
|
860
867
|
## License
|
|
861
868
|
|
|
862
869
|
[MIT License](http://www.opensource.org/licenses/mit-license.php)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SendMessageRequest } from "./SendMessageRequest";
|
package/api/index.d.ts
ADDED