sequenzy 2.1.84 → 2.1.88
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/dist/cjs/api/resources/accounts/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/accounts/client/Client.js +1 -1
- package/dist/cjs/api/resources/campaigns/client/Client.js +2 -1
- package/dist/cjs/api/resources/campaigns/client/requests/ListCampaignsRequest.d.ts +2 -0
- package/dist/cjs/api/resources/campaigns/types/ListCampaignsResponsePagination.d.ts +4 -0
- package/dist/cjs/api/resources/inApp/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/inApp/client/Client.js +1 -1
- package/dist/cjs/api/resources/inApp/types/EstimateInAppCampaignRecipientsResponse.d.ts +2 -0
- package/dist/cjs/api/resources/media/client/Client.d.ts +23 -0
- package/dist/cjs/api/resources/media/client/Client.js +90 -0
- package/dist/cjs/api/resources/media/client/requests/CropEmailImageRequest.d.ts +21 -0
- package/dist/cjs/api/resources/media/client/requests/CropEmailImageRequest.js +3 -0
- package/dist/cjs/api/resources/media/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/media/types/CropEmailImageRequestAspectRatio.d.ts +4 -0
- package/dist/cjs/api/resources/media/types/CropEmailImageRequestAspectRatio.js +3 -0
- package/dist/cjs/api/resources/media/types/CropEmailImageRequestCrop.d.ts +9 -0
- package/dist/cjs/api/resources/media/types/CropEmailImageRequestCrop.js +3 -0
- package/dist/cjs/api/resources/media/types/CropEmailImageResponse.d.ts +12 -0
- package/dist/cjs/api/resources/media/types/CropEmailImageResponse.js +3 -0
- package/dist/cjs/api/resources/media/types/CropEmailImageResponseAsset.d.ts +15 -0
- package/dist/cjs/api/resources/media/types/CropEmailImageResponseAsset.js +3 -0
- package/dist/cjs/api/resources/media/types/CropEmailImageResponseCrop.d.ts +11 -0
- package/dist/cjs/api/resources/media/types/CropEmailImageResponseCrop.js +3 -0
- package/dist/cjs/api/resources/media/types/index.d.ts +5 -0
- package/dist/cjs/api/resources/media/types/index.js +5 -0
- package/dist/cjs/api/resources/push/client/requests/SendTestPushRequest.d.ts +2 -0
- package/dist/cjs/api/resources/push/client/requests/TranslatePushContentRequest.d.ts +2 -0
- package/dist/cjs/api/resources/push/types/TranslatePushContentRequestPlatformsItem.d.ts +6 -0
- package/dist/cjs/api/resources/push/types/TranslatePushContentRequestPlatformsItem.js +9 -0
- package/dist/cjs/api/resources/push/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/push/types/index.js +1 -0
- package/dist/cjs/api/resources/segments/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/segments/client/Client.js +1 -1
- package/dist/cjs/api/resources/segments/types/DeleteSegmentsResponse.d.ts +9 -0
- package/dist/cjs/api/resources/segments/types/DeleteSegmentsResponseAffectedAudienceSyncsItem.d.ts +4 -0
- package/dist/cjs/api/resources/segments/types/DeleteSegmentsResponseAffectedAudienceSyncsItem.js +3 -0
- package/dist/cjs/api/resources/segments/types/DeleteSegmentsResponseAffectedCampaignsItem.d.ts +7 -0
- package/dist/cjs/api/resources/segments/types/DeleteSegmentsResponseAffectedCampaignsItem.js +3 -0
- package/dist/cjs/api/resources/segments/types/DeleteSegmentsResponseAffectedSegmentsItem.d.ts +4 -0
- package/dist/cjs/api/resources/segments/types/DeleteSegmentsResponseAffectedSegmentsItem.js +3 -0
- package/dist/cjs/api/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItem.d.ts +8 -0
- package/dist/cjs/api/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItem.js +3 -0
- package/dist/cjs/api/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemStatus.d.ts +6 -0
- package/dist/cjs/api/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemStatus.js +9 -0
- package/dist/cjs/api/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemUsagesItem.d.ts +8 -0
- package/dist/cjs/api/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemUsagesItem.js +11 -0
- package/dist/cjs/api/resources/segments/types/index.d.ts +6 -0
- package/dist/cjs/api/resources/segments/types/index.js +6 -0
- package/dist/cjs/api/resources/sequences/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/sequences/client/Client.js +4 -3
- package/dist/cjs/api/resources/sequences/client/requests/ListSequencesRequest.d.ts +2 -0
- package/dist/cjs/api/resources/sequences/types/DeleteSequencesResponse.d.ts +5 -0
- package/dist/cjs/api/resources/sequences/types/DeleteSequencesResponse.js +3 -0
- package/dist/cjs/api/resources/sequences/types/ListSequencesResponsePagination.d.ts +4 -0
- package/dist/cjs/api/resources/sequences/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/sequences/types/index.js +1 -0
- package/dist/cjs/api/resources/subscribers/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/subscribers/client/Client.js +3 -3
- package/dist/cjs/api/resources/subscribers/resources/events/types/TriggerBulkEventsResponse.d.ts +3 -0
- package/dist/cjs/api/resources/subscribers/resources/events/types/TriggerEventsResponse.d.ts +3 -0
- package/dist/cjs/api/resources/subscribers/resources/tags/client/Client.d.ts +3 -1
- package/dist/cjs/api/resources/subscribers/resources/tags/client/Client.js +7 -1
- package/dist/cjs/api/resources/subscribers/resources/tags/client/requests/RemoveTagsRequest.d.ts +3 -3
- package/dist/cjs/api/resources/subscribers/resources/tags/types/AddTagsResponse.d.ts +3 -0
- package/dist/cjs/api/resources/subscribers/resources/tags/types/RemoveTagsResponse.d.ts +2 -0
- package/dist/cjs/api/resources/subscribers/resources/tags/types/RemoveTagsResponseSubscriber.d.ts +1 -1
- package/dist/cjs/api/resources/subscribers/types/AddTagsBulkResponse.d.ts +3 -0
- package/dist/cjs/api/resources/subscribers/types/CreateSubscribersResponse.d.ts +3 -0
- package/dist/cjs/api/resources/subscribers/types/ImportEventsSubscribersResponse.d.ts +3 -0
- package/dist/cjs/api/resources/subscribers/types/UpdateByExternalIdSubscribersResponse.d.ts +3 -0
- package/dist/cjs/api/resources/subscribers/types/UpdateSubscribersResponse.d.ts +3 -0
- package/dist/cjs/api/resources/templates/client/Client.js +2 -1
- package/dist/cjs/api/resources/templates/client/requests/ListTemplatesRequest.d.ts +2 -0
- package/dist/cjs/api/resources/templates/types/ListTemplatesResponsePagination.d.ts +4 -0
- package/dist/cjs/api/types/SequenceTriggerWarnings.d.ts +4 -0
- package/dist/cjs/api/types/SequenceTriggerWarnings.js +3 -0
- package/dist/cjs/api/types/SequenceTriggersRan.d.ts +4 -0
- package/dist/cjs/api/types/SequenceTriggersRan.js +3 -0
- package/dist/cjs/api/types/SequenceTriggersSkippedReason.d.ts +7 -0
- package/dist/cjs/api/types/SequenceTriggersSkippedReason.js +10 -0
- package/dist/cjs/api/types/index.d.ts +3 -0
- package/dist/cjs/api/types/index.js +3 -0
- package/dist/cjs/serialization/resources/campaigns/types/ListCampaignsResponsePagination.d.ts +2 -0
- package/dist/cjs/serialization/resources/campaigns/types/ListCampaignsResponsePagination.js +2 -0
- package/dist/cjs/serialization/resources/inApp/types/EstimateInAppCampaignRecipientsResponse.d.ts +1 -0
- package/dist/cjs/serialization/resources/inApp/types/EstimateInAppCampaignRecipientsResponse.js +1 -0
- package/dist/cjs/serialization/resources/media/client/requests/CropEmailImageRequest.d.ts +16 -0
- package/dist/cjs/serialization/resources/media/client/requests/CropEmailImageRequest.js +38 -0
- package/dist/cjs/serialization/resources/media/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/media/client/requests/index.js +3 -1
- package/dist/cjs/serialization/resources/media/types/CropEmailImageRequestAspectRatio.d.ts +7 -0
- package/dist/cjs/serialization/resources/media/types/CropEmailImageRequestAspectRatio.js +29 -0
- package/dist/cjs/serialization/resources/media/types/CropEmailImageRequestCrop.d.ts +12 -0
- package/dist/cjs/serialization/resources/media/types/CropEmailImageRequestCrop.js +34 -0
- package/dist/cjs/serialization/resources/media/types/CropEmailImageResponse.d.ts +15 -0
- package/dist/cjs/serialization/resources/media/types/CropEmailImageResponse.js +37 -0
- package/dist/cjs/serialization/resources/media/types/CropEmailImageResponseAsset.d.ts +18 -0
- package/dist/cjs/serialization/resources/media/types/CropEmailImageResponseAsset.js +40 -0
- package/dist/cjs/serialization/resources/media/types/CropEmailImageResponseCrop.d.ts +14 -0
- package/dist/cjs/serialization/resources/media/types/CropEmailImageResponseCrop.js +36 -0
- package/dist/cjs/serialization/resources/media/types/index.d.ts +5 -0
- package/dist/cjs/serialization/resources/media/types/index.js +5 -0
- package/dist/cjs/serialization/resources/push/client/requests/SendTestPushRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/push/client/requests/SendTestPushRequest.js +2 -0
- package/dist/cjs/serialization/resources/push/client/requests/TranslatePushContentRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/push/client/requests/TranslatePushContentRequest.js +2 -0
- package/dist/cjs/serialization/resources/push/types/TranslatePushContentRequestPlatformsItem.d.ts +7 -0
- package/dist/cjs/serialization/resources/push/types/TranslatePushContentRequestPlatformsItem.js +29 -0
- package/dist/cjs/serialization/resources/push/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/push/types/index.js +1 -0
- package/dist/cjs/serialization/resources/segments/types/DeleteSegmentsResponse.d.ts +8 -0
- package/dist/cjs/serialization/resources/segments/types/DeleteSegmentsResponse.js +8 -0
- package/dist/cjs/serialization/resources/segments/types/DeleteSegmentsResponseAffectedAudienceSyncsItem.d.ts +10 -0
- package/dist/cjs/serialization/resources/segments/types/DeleteSegmentsResponseAffectedAudienceSyncsItem.js +32 -0
- package/dist/cjs/serialization/resources/segments/types/DeleteSegmentsResponseAffectedCampaignsItem.d.ts +12 -0
- package/dist/cjs/serialization/resources/segments/types/DeleteSegmentsResponseAffectedCampaignsItem.js +34 -0
- package/dist/cjs/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSegmentsItem.d.ts +10 -0
- package/dist/cjs/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSegmentsItem.js +32 -0
- package/dist/cjs/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItem.d.ts +14 -0
- package/dist/cjs/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItem.js +36 -0
- package/dist/cjs/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemStatus.d.ts +7 -0
- package/dist/cjs/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemStatus.js +29 -0
- package/dist/cjs/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemUsagesItem.d.ts +7 -0
- package/dist/cjs/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemUsagesItem.js +29 -0
- package/dist/cjs/serialization/resources/segments/types/index.d.ts +6 -0
- package/dist/cjs/serialization/resources/segments/types/index.js +6 -0
- package/dist/cjs/serialization/resources/sequences/types/DeleteSequencesResponse.d.ts +10 -0
- package/dist/cjs/serialization/resources/sequences/types/DeleteSequencesResponse.js +34 -0
- package/dist/cjs/serialization/resources/sequences/types/ListSequencesResponsePagination.d.ts +2 -0
- package/dist/cjs/serialization/resources/sequences/types/ListSequencesResponsePagination.js +2 -0
- package/dist/cjs/serialization/resources/sequences/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/sequences/types/index.js +1 -0
- package/dist/cjs/serialization/resources/subscribers/resources/events/types/TriggerBulkEventsResponse.d.ts +6 -0
- package/dist/cjs/serialization/resources/subscribers/resources/events/types/TriggerBulkEventsResponse.js +6 -0
- package/dist/cjs/serialization/resources/subscribers/resources/events/types/TriggerEventsResponse.d.ts +6 -0
- package/dist/cjs/serialization/resources/subscribers/resources/events/types/TriggerEventsResponse.js +6 -0
- package/dist/cjs/serialization/resources/subscribers/resources/tags/types/AddTagsResponse.d.ts +6 -0
- package/dist/cjs/serialization/resources/subscribers/resources/tags/types/AddTagsResponse.js +6 -0
- package/dist/cjs/serialization/resources/subscribers/resources/tags/types/RemoveTagsResponse.d.ts +1 -0
- package/dist/cjs/serialization/resources/subscribers/resources/tags/types/RemoveTagsResponse.js +1 -0
- package/dist/cjs/serialization/resources/subscribers/types/AddTagsBulkResponse.d.ts +6 -0
- package/dist/cjs/serialization/resources/subscribers/types/AddTagsBulkResponse.js +6 -0
- package/dist/cjs/serialization/resources/subscribers/types/CreateSubscribersResponse.d.ts +6 -0
- package/dist/cjs/serialization/resources/subscribers/types/CreateSubscribersResponse.js +6 -0
- package/dist/cjs/serialization/resources/subscribers/types/ImportEventsSubscribersResponse.d.ts +6 -0
- package/dist/cjs/serialization/resources/subscribers/types/ImportEventsSubscribersResponse.js +6 -0
- package/dist/cjs/serialization/resources/subscribers/types/UpdateByExternalIdSubscribersResponse.d.ts +6 -0
- package/dist/cjs/serialization/resources/subscribers/types/UpdateByExternalIdSubscribersResponse.js +6 -0
- package/dist/cjs/serialization/resources/subscribers/types/UpdateSubscribersResponse.d.ts +6 -0
- package/dist/cjs/serialization/resources/subscribers/types/UpdateSubscribersResponse.js +6 -0
- package/dist/cjs/serialization/resources/templates/types/ListTemplatesResponsePagination.d.ts +2 -0
- package/dist/cjs/serialization/resources/templates/types/ListTemplatesResponsePagination.js +2 -0
- package/dist/cjs/serialization/types/SequenceTriggerWarnings.d.ts +7 -0
- package/dist/cjs/serialization/types/SequenceTriggerWarnings.js +29 -0
- package/dist/cjs/serialization/types/SequenceTriggersRan.d.ts +7 -0
- package/dist/cjs/serialization/types/SequenceTriggersRan.js +29 -0
- package/dist/cjs/serialization/types/SequenceTriggersSkippedReason.d.ts +7 -0
- package/dist/cjs/serialization/types/SequenceTriggersSkippedReason.js +29 -0
- package/dist/cjs/serialization/types/index.d.ts +3 -0
- package/dist/cjs/serialization/types/index.js +3 -0
- package/dist/esm/api/resources/accounts/client/Client.d.ts +1 -1
- package/dist/esm/api/resources/accounts/client/Client.js +1 -1
- package/dist/esm/api/resources/campaigns/client/Client.js +2 -1
- package/dist/esm/api/resources/campaigns/client/requests/ListCampaignsRequest.d.ts +2 -0
- package/dist/esm/api/resources/campaigns/types/ListCampaignsResponsePagination.d.ts +4 -0
- package/dist/esm/api/resources/inApp/client/Client.d.ts +1 -1
- package/dist/esm/api/resources/inApp/client/Client.js +1 -1
- package/dist/esm/api/resources/inApp/types/EstimateInAppCampaignRecipientsResponse.d.ts +2 -0
- package/dist/esm/api/resources/media/client/Client.d.ts +23 -0
- package/dist/esm/api/resources/media/client/Client.js +90 -0
- package/dist/esm/api/resources/media/client/requests/CropEmailImageRequest.d.ts +21 -0
- package/dist/esm/api/resources/media/client/requests/CropEmailImageRequest.js +2 -0
- package/dist/esm/api/resources/media/client/requests/index.d.ts +1 -0
- package/dist/esm/api/resources/media/types/CropEmailImageRequestAspectRatio.d.ts +4 -0
- package/dist/esm/api/resources/media/types/CropEmailImageRequestAspectRatio.js +2 -0
- package/dist/esm/api/resources/media/types/CropEmailImageRequestCrop.d.ts +9 -0
- package/dist/esm/api/resources/media/types/CropEmailImageRequestCrop.js +2 -0
- package/dist/esm/api/resources/media/types/CropEmailImageResponse.d.ts +12 -0
- package/dist/esm/api/resources/media/types/CropEmailImageResponse.js +2 -0
- package/dist/esm/api/resources/media/types/CropEmailImageResponseAsset.d.ts +15 -0
- package/dist/esm/api/resources/media/types/CropEmailImageResponseAsset.js +2 -0
- package/dist/esm/api/resources/media/types/CropEmailImageResponseCrop.d.ts +11 -0
- package/dist/esm/api/resources/media/types/CropEmailImageResponseCrop.js +2 -0
- package/dist/esm/api/resources/media/types/index.d.ts +5 -0
- package/dist/esm/api/resources/media/types/index.js +5 -0
- package/dist/esm/api/resources/push/client/requests/SendTestPushRequest.d.ts +2 -0
- package/dist/esm/api/resources/push/client/requests/TranslatePushContentRequest.d.ts +2 -0
- package/dist/esm/api/resources/push/types/TranslatePushContentRequestPlatformsItem.d.ts +6 -0
- package/dist/esm/api/resources/push/types/TranslatePushContentRequestPlatformsItem.js +6 -0
- package/dist/esm/api/resources/push/types/index.d.ts +1 -0
- package/dist/esm/api/resources/push/types/index.js +1 -0
- package/dist/esm/api/resources/segments/client/Client.d.ts +1 -1
- package/dist/esm/api/resources/segments/client/Client.js +1 -1
- package/dist/esm/api/resources/segments/types/DeleteSegmentsResponse.d.ts +9 -0
- package/dist/esm/api/resources/segments/types/DeleteSegmentsResponseAffectedAudienceSyncsItem.d.ts +4 -0
- package/dist/esm/api/resources/segments/types/DeleteSegmentsResponseAffectedAudienceSyncsItem.js +2 -0
- package/dist/esm/api/resources/segments/types/DeleteSegmentsResponseAffectedCampaignsItem.d.ts +7 -0
- package/dist/esm/api/resources/segments/types/DeleteSegmentsResponseAffectedCampaignsItem.js +2 -0
- package/dist/esm/api/resources/segments/types/DeleteSegmentsResponseAffectedSegmentsItem.d.ts +4 -0
- package/dist/esm/api/resources/segments/types/DeleteSegmentsResponseAffectedSegmentsItem.js +2 -0
- package/dist/esm/api/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItem.d.ts +8 -0
- package/dist/esm/api/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItem.js +2 -0
- package/dist/esm/api/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemStatus.d.ts +6 -0
- package/dist/esm/api/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemStatus.js +6 -0
- package/dist/esm/api/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemUsagesItem.d.ts +8 -0
- package/dist/esm/api/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemUsagesItem.js +8 -0
- package/dist/esm/api/resources/segments/types/index.d.ts +6 -0
- package/dist/esm/api/resources/segments/types/index.js +6 -0
- package/dist/esm/api/resources/sequences/client/Client.d.ts +2 -2
- package/dist/esm/api/resources/sequences/client/Client.js +4 -3
- package/dist/esm/api/resources/sequences/client/requests/ListSequencesRequest.d.ts +2 -0
- package/dist/esm/api/resources/sequences/types/DeleteSequencesResponse.d.ts +5 -0
- package/dist/esm/api/resources/sequences/types/DeleteSequencesResponse.js +2 -0
- package/dist/esm/api/resources/sequences/types/ListSequencesResponsePagination.d.ts +4 -0
- package/dist/esm/api/resources/sequences/types/index.d.ts +1 -0
- package/dist/esm/api/resources/sequences/types/index.js +1 -0
- package/dist/esm/api/resources/subscribers/client/Client.d.ts +3 -3
- package/dist/esm/api/resources/subscribers/client/Client.js +3 -3
- package/dist/esm/api/resources/subscribers/resources/events/types/TriggerBulkEventsResponse.d.ts +3 -0
- package/dist/esm/api/resources/subscribers/resources/events/types/TriggerEventsResponse.d.ts +3 -0
- package/dist/esm/api/resources/subscribers/resources/tags/client/Client.d.ts +3 -1
- package/dist/esm/api/resources/subscribers/resources/tags/client/Client.js +7 -1
- package/dist/esm/api/resources/subscribers/resources/tags/client/requests/RemoveTagsRequest.d.ts +3 -3
- package/dist/esm/api/resources/subscribers/resources/tags/types/AddTagsResponse.d.ts +3 -0
- package/dist/esm/api/resources/subscribers/resources/tags/types/RemoveTagsResponse.d.ts +2 -0
- package/dist/esm/api/resources/subscribers/resources/tags/types/RemoveTagsResponseSubscriber.d.ts +1 -1
- package/dist/esm/api/resources/subscribers/types/AddTagsBulkResponse.d.ts +3 -0
- package/dist/esm/api/resources/subscribers/types/CreateSubscribersResponse.d.ts +3 -0
- package/dist/esm/api/resources/subscribers/types/ImportEventsSubscribersResponse.d.ts +3 -0
- package/dist/esm/api/resources/subscribers/types/UpdateByExternalIdSubscribersResponse.d.ts +3 -0
- package/dist/esm/api/resources/subscribers/types/UpdateSubscribersResponse.d.ts +3 -0
- package/dist/esm/api/resources/templates/client/Client.js +2 -1
- package/dist/esm/api/resources/templates/client/requests/ListTemplatesRequest.d.ts +2 -0
- package/dist/esm/api/resources/templates/types/ListTemplatesResponsePagination.d.ts +4 -0
- package/dist/esm/api/types/SequenceTriggerWarnings.d.ts +4 -0
- package/dist/esm/api/types/SequenceTriggerWarnings.js +2 -0
- package/dist/esm/api/types/SequenceTriggersRan.d.ts +4 -0
- package/dist/esm/api/types/SequenceTriggersRan.js +2 -0
- package/dist/esm/api/types/SequenceTriggersSkippedReason.d.ts +7 -0
- package/dist/esm/api/types/SequenceTriggersSkippedReason.js +7 -0
- package/dist/esm/api/types/index.d.ts +3 -0
- package/dist/esm/api/types/index.js +3 -0
- package/dist/esm/serialization/resources/campaigns/types/ListCampaignsResponsePagination.d.ts +2 -0
- package/dist/esm/serialization/resources/campaigns/types/ListCampaignsResponsePagination.js +2 -0
- package/dist/esm/serialization/resources/inApp/types/EstimateInAppCampaignRecipientsResponse.d.ts +1 -0
- package/dist/esm/serialization/resources/inApp/types/EstimateInAppCampaignRecipientsResponse.js +1 -0
- package/dist/esm/serialization/resources/media/client/requests/CropEmailImageRequest.d.ts +16 -0
- package/dist/esm/serialization/resources/media/client/requests/CropEmailImageRequest.js +12 -0
- package/dist/esm/serialization/resources/media/client/requests/index.d.ts +1 -0
- package/dist/esm/serialization/resources/media/client/requests/index.js +1 -0
- package/dist/esm/serialization/resources/media/types/CropEmailImageRequestAspectRatio.d.ts +7 -0
- package/dist/esm/serialization/resources/media/types/CropEmailImageRequestAspectRatio.js +3 -0
- package/dist/esm/serialization/resources/media/types/CropEmailImageRequestCrop.d.ts +12 -0
- package/dist/esm/serialization/resources/media/types/CropEmailImageRequestCrop.js +8 -0
- package/dist/esm/serialization/resources/media/types/CropEmailImageResponse.d.ts +15 -0
- package/dist/esm/serialization/resources/media/types/CropEmailImageResponse.js +11 -0
- package/dist/esm/serialization/resources/media/types/CropEmailImageResponseAsset.d.ts +18 -0
- package/dist/esm/serialization/resources/media/types/CropEmailImageResponseAsset.js +14 -0
- package/dist/esm/serialization/resources/media/types/CropEmailImageResponseCrop.d.ts +14 -0
- package/dist/esm/serialization/resources/media/types/CropEmailImageResponseCrop.js +10 -0
- package/dist/esm/serialization/resources/media/types/index.d.ts +5 -0
- package/dist/esm/serialization/resources/media/types/index.js +5 -0
- package/dist/esm/serialization/resources/push/client/requests/SendTestPushRequest.d.ts +2 -0
- package/dist/esm/serialization/resources/push/client/requests/SendTestPushRequest.js +2 -0
- package/dist/esm/serialization/resources/push/client/requests/TranslatePushContentRequest.d.ts +2 -0
- package/dist/esm/serialization/resources/push/client/requests/TranslatePushContentRequest.js +2 -0
- package/dist/esm/serialization/resources/push/types/TranslatePushContentRequestPlatformsItem.d.ts +7 -0
- package/dist/esm/serialization/resources/push/types/TranslatePushContentRequestPlatformsItem.js +3 -0
- package/dist/esm/serialization/resources/push/types/index.d.ts +1 -0
- package/dist/esm/serialization/resources/push/types/index.js +1 -0
- package/dist/esm/serialization/resources/segments/types/DeleteSegmentsResponse.d.ts +8 -0
- package/dist/esm/serialization/resources/segments/types/DeleteSegmentsResponse.js +8 -0
- package/dist/esm/serialization/resources/segments/types/DeleteSegmentsResponseAffectedAudienceSyncsItem.d.ts +10 -0
- package/dist/esm/serialization/resources/segments/types/DeleteSegmentsResponseAffectedAudienceSyncsItem.js +6 -0
- package/dist/esm/serialization/resources/segments/types/DeleteSegmentsResponseAffectedCampaignsItem.d.ts +12 -0
- package/dist/esm/serialization/resources/segments/types/DeleteSegmentsResponseAffectedCampaignsItem.js +8 -0
- package/dist/esm/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSegmentsItem.d.ts +10 -0
- package/dist/esm/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSegmentsItem.js +6 -0
- package/dist/esm/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItem.d.ts +14 -0
- package/dist/esm/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItem.js +10 -0
- package/dist/esm/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemStatus.d.ts +7 -0
- package/dist/esm/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemStatus.js +3 -0
- package/dist/esm/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemUsagesItem.d.ts +7 -0
- package/dist/esm/serialization/resources/segments/types/DeleteSegmentsResponseAffectedSequencesItemUsagesItem.js +3 -0
- package/dist/esm/serialization/resources/segments/types/index.d.ts +6 -0
- package/dist/esm/serialization/resources/segments/types/index.js +6 -0
- package/dist/esm/serialization/resources/sequences/types/DeleteSequencesResponse.d.ts +10 -0
- package/dist/esm/serialization/resources/sequences/types/DeleteSequencesResponse.js +8 -0
- package/dist/esm/serialization/resources/sequences/types/ListSequencesResponsePagination.d.ts +2 -0
- package/dist/esm/serialization/resources/sequences/types/ListSequencesResponsePagination.js +2 -0
- package/dist/esm/serialization/resources/sequences/types/index.d.ts +1 -0
- package/dist/esm/serialization/resources/sequences/types/index.js +1 -0
- package/dist/esm/serialization/resources/subscribers/resources/events/types/TriggerBulkEventsResponse.d.ts +6 -0
- package/dist/esm/serialization/resources/subscribers/resources/events/types/TriggerBulkEventsResponse.js +6 -0
- package/dist/esm/serialization/resources/subscribers/resources/events/types/TriggerEventsResponse.d.ts +6 -0
- package/dist/esm/serialization/resources/subscribers/resources/events/types/TriggerEventsResponse.js +6 -0
- package/dist/esm/serialization/resources/subscribers/resources/tags/types/AddTagsResponse.d.ts +6 -0
- package/dist/esm/serialization/resources/subscribers/resources/tags/types/AddTagsResponse.js +6 -0
- package/dist/esm/serialization/resources/subscribers/resources/tags/types/RemoveTagsResponse.d.ts +1 -0
- package/dist/esm/serialization/resources/subscribers/resources/tags/types/RemoveTagsResponse.js +1 -0
- package/dist/esm/serialization/resources/subscribers/types/AddTagsBulkResponse.d.ts +6 -0
- package/dist/esm/serialization/resources/subscribers/types/AddTagsBulkResponse.js +6 -0
- package/dist/esm/serialization/resources/subscribers/types/CreateSubscribersResponse.d.ts +6 -0
- package/dist/esm/serialization/resources/subscribers/types/CreateSubscribersResponse.js +6 -0
- package/dist/esm/serialization/resources/subscribers/types/ImportEventsSubscribersResponse.d.ts +6 -0
- package/dist/esm/serialization/resources/subscribers/types/ImportEventsSubscribersResponse.js +6 -0
- package/dist/esm/serialization/resources/subscribers/types/UpdateByExternalIdSubscribersResponse.d.ts +6 -0
- package/dist/esm/serialization/resources/subscribers/types/UpdateByExternalIdSubscribersResponse.js +6 -0
- package/dist/esm/serialization/resources/subscribers/types/UpdateSubscribersResponse.d.ts +6 -0
- package/dist/esm/serialization/resources/subscribers/types/UpdateSubscribersResponse.js +6 -0
- package/dist/esm/serialization/resources/templates/types/ListTemplatesResponsePagination.d.ts +2 -0
- package/dist/esm/serialization/resources/templates/types/ListTemplatesResponsePagination.js +2 -0
- package/dist/esm/serialization/types/SequenceTriggerWarnings.d.ts +7 -0
- package/dist/esm/serialization/types/SequenceTriggerWarnings.js +3 -0
- package/dist/esm/serialization/types/SequenceTriggersRan.d.ts +7 -0
- package/dist/esm/serialization/types/SequenceTriggersRan.js +3 -0
- package/dist/esm/serialization/types/SequenceTriggersSkippedReason.d.ts +7 -0
- package/dist/esm/serialization/types/SequenceTriggersSkippedReason.js +3 -0
- package/dist/esm/serialization/types/index.d.ts +3 -0
- package/dist/esm/serialization/types/index.js +3 -0
- package/package.json +1 -1
|
@@ -319,7 +319,7 @@ export declare class SequencesClient {
|
|
|
319
319
|
createGoal(request: Sequenzy.CreateGoalSequencesRequest, requestOptions?: SequencesClient.RequestOptions): core.HttpResponsePromise<Sequenzy.CreateGoalSequencesResponse>;
|
|
320
320
|
private __createGoal;
|
|
321
321
|
/**
|
|
322
|
-
* Deletes a sequence and its
|
|
322
|
+
* Deletes a sequence and its steps. Contacts still in it are removed and get none of its remaining steps; `contactsInSequence` says how many.
|
|
323
323
|
*
|
|
324
324
|
* @param {Sequenzy.DeleteSequencesRequest} request
|
|
325
325
|
* @param {SequencesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -336,7 +336,7 @@ export declare class SequencesClient {
|
|
|
336
336
|
* sequenceId: "sequenceId"
|
|
337
337
|
* })
|
|
338
338
|
*/
|
|
339
|
-
delete(request: Sequenzy.DeleteSequencesRequest, requestOptions?: SequencesClient.RequestOptions): core.HttpResponsePromise<Sequenzy.
|
|
339
|
+
delete(request: Sequenzy.DeleteSequencesRequest, requestOptions?: SequencesClient.RequestOptions): core.HttpResponsePromise<Sequenzy.DeleteSequencesResponse>;
|
|
340
340
|
private __delete;
|
|
341
341
|
/**
|
|
342
342
|
* Permanently removes a conversion goal from the sequence.
|
|
@@ -812,7 +812,7 @@ export class SequencesClient {
|
|
|
812
812
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/sequences/{sequenceId}/goals");
|
|
813
813
|
}
|
|
814
814
|
/**
|
|
815
|
-
* Deletes a sequence and its
|
|
815
|
+
* Deletes a sequence and its steps. Contacts still in it are removed and get none of its remaining steps; `contactsInSequence` says how many.
|
|
816
816
|
*
|
|
817
817
|
* @param {Sequenzy.DeleteSequencesRequest} request
|
|
818
818
|
* @param {SequencesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -851,7 +851,7 @@ export class SequencesClient {
|
|
|
851
851
|
});
|
|
852
852
|
if (_response.ok) {
|
|
853
853
|
return {
|
|
854
|
-
data: serializers.
|
|
854
|
+
data: serializers.DeleteSequencesResponse.parseOrThrow(_response.body, {
|
|
855
855
|
unrecognizedObjectKeys: "passthrough",
|
|
856
856
|
allowUnrecognizedUnionMembers: true,
|
|
857
857
|
allowUnrecognizedEnumValues: true,
|
|
@@ -2518,12 +2518,13 @@ export class SequencesClient {
|
|
|
2518
2518
|
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
2519
2519
|
}
|
|
2520
2520
|
async __list(request = {}, requestOptions) {
|
|
2521
|
-
const { label, labels, limit, offset, search, status } = request;
|
|
2521
|
+
const { label, labels, limit, offset, page, search, status } = request;
|
|
2522
2522
|
const _queryParams = {
|
|
2523
2523
|
label,
|
|
2524
2524
|
labels,
|
|
2525
2525
|
limit,
|
|
2526
2526
|
offset,
|
|
2527
|
+
page,
|
|
2527
2528
|
search,
|
|
2528
2529
|
status: status != null
|
|
2529
2530
|
? serializers.SequenceStatus.jsonOrThrow(status, {
|
|
@@ -11,6 +11,8 @@ export interface ListSequencesRequest {
|
|
|
11
11
|
/** Page size, up to 100. When limit and offset are both omitted, every sequence is returned. */
|
|
12
12
|
limit?: number;
|
|
13
13
|
offset?: number;
|
|
14
|
+
/** Optional 1-based page number, used only with limit and without offset. page alone does not enable pagination, so every sequence is still returned. A malformed page is ignored. */
|
|
15
|
+
page?: number;
|
|
14
16
|
/** Case-insensitive name or description search. */
|
|
15
17
|
search?: string;
|
|
16
18
|
status?: Sequenzy.SequenceStatus;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type * as Sequenzy from "../../../index.js";
|
|
2
|
+
export interface DeleteSequencesResponse extends Sequenzy.SequenceActionResponse {
|
|
3
|
+
/** Contacts who were still in the sequence (running a step, waiting, or paused) when it was deleted. They were removed and get none of its remaining steps. */
|
|
4
|
+
contactsInSequence?: number;
|
|
5
|
+
}
|
|
@@ -4,5 +4,9 @@ export interface ListSequencesResponsePagination {
|
|
|
4
4
|
/** Applied page size, or null when the unpaginated default returned every sequence. */
|
|
5
5
|
limit?: number | null;
|
|
6
6
|
offset?: number;
|
|
7
|
+
/** 1-based page that starts at offset. */
|
|
8
|
+
page?: number;
|
|
7
9
|
total?: number;
|
|
10
|
+
/** Pages at this limit; 1 for an unpaginated response with results. */
|
|
11
|
+
totalPages?: number;
|
|
8
12
|
}
|
|
@@ -15,6 +15,7 @@ export * from "./CreateFromTemplateSequencesResponseSequenceChannelsItem.js";
|
|
|
15
15
|
export * from "./CreateFromTemplateSequencesResponseSequenceEnrichmentStatus.js";
|
|
16
16
|
export * from "./CreateGoalSequencesResponse.js";
|
|
17
17
|
export * from "./DeleteGoalSequencesResponse.js";
|
|
18
|
+
export * from "./DeleteSequencesResponse.js";
|
|
18
19
|
export * from "./DiscardEmailVariationSequencesResponse.js";
|
|
19
20
|
export * from "./DuplicateSequencesResponse.js";
|
|
20
21
|
export * from "./EditEmailsSequencesResponse.js";
|
|
@@ -15,6 +15,7 @@ export * from "./CreateFromTemplateSequencesResponseSequenceChannelsItem.js";
|
|
|
15
15
|
export * from "./CreateFromTemplateSequencesResponseSequenceEnrichmentStatus.js";
|
|
16
16
|
export * from "./CreateGoalSequencesResponse.js";
|
|
17
17
|
export * from "./DeleteGoalSequencesResponse.js";
|
|
18
|
+
export * from "./DeleteSequencesResponse.js";
|
|
18
19
|
export * from "./DiscardEmailVariationSequencesResponse.js";
|
|
19
20
|
export * from "./DuplicateSequencesResponse.js";
|
|
20
21
|
export * from "./EditEmailsSequencesResponse.js";
|
|
@@ -20,7 +20,7 @@ export declare class SubscribersClient {
|
|
|
20
20
|
get events(): EventsClient;
|
|
21
21
|
get tags(): TagsClient;
|
|
22
22
|
/**
|
|
23
|
-
* Adds
|
|
23
|
+
* One contact, several tags. Adds several tags to a single subscriber identified by email or externalId. Creates the subscriber if they don't exist. To add tags to many existing subscribers without creating contacts, use POST /subscribers/bulk/tags/add. Creates tag definitions if they don't exist. When the workspace has double opt-in enabled, a brand-new subscriber is created pending confirmation, the confirmation email is queued, and tag automations wait at their trigger until the subscriber confirms.
|
|
24
24
|
*
|
|
25
25
|
* @param {Sequenzy.AddTagsBulkRequest} request
|
|
26
26
|
* @param {SubscribersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -38,7 +38,7 @@ export declare class SubscribersClient {
|
|
|
38
38
|
addTagsBulk(request: Sequenzy.AddTagsBulkRequest, requestOptions?: SubscribersClient.RequestOptions): core.HttpResponsePromise<Sequenzy.AddTagsBulkResponse>;
|
|
39
39
|
private __addTagsBulk;
|
|
40
40
|
/**
|
|
41
|
-
* Adds one or more tags to up to 500 existing subscribers identified by email, externalId, or subscriberId. Built for reconciling historical or derived tags, so identifiers that do not match an existing subscriber are returned in notFound rather than creating contacts. Tag automations are skipped unless triggerAutomations is true, which requires the automations:trigger scope.
|
|
41
|
+
* Many contacts, one or more tags. Adds one or more tags to up to 500 existing subscribers identified by email, externalId, or subscriberId. Built for reconciling historical or derived tags, so identifiers that do not match an existing subscriber are returned in notFound rather than creating contacts. Tag automations are skipped unless triggerAutomations is true, which requires the automations:trigger scope.
|
|
42
42
|
*
|
|
43
43
|
* @param {Sequenzy.BulkSubscriberTagRequest} request
|
|
44
44
|
* @param {SubscribersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -59,7 +59,7 @@ export declare class SubscribersClient {
|
|
|
59
59
|
bulkAddTags(request: Sequenzy.BulkSubscriberTagRequest, requestOptions?: SubscribersClient.RequestOptions): core.HttpResponsePromise<Sequenzy.BulkSubscriberTagResponse>;
|
|
60
60
|
private __bulkAddTags;
|
|
61
61
|
/**
|
|
62
|
-
* Removes one or more tags from up to 500 existing subscribers identified by email, externalId, or subscriberId. Identifiers that do not match an existing subscriber are returned in notFound.
|
|
62
|
+
* Many contacts, one or more tags. Removes one or more tags from up to 500 existing subscribers identified by email, externalId, or subscriberId. Identifiers that do not match an existing subscriber are returned in notFound.
|
|
63
63
|
*
|
|
64
64
|
* @param {Sequenzy.BulkSubscriberTagRequest} request
|
|
65
65
|
* @param {SubscribersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -24,7 +24,7 @@ export class SubscribersClient {
|
|
|
24
24
|
return (this._tags ?? (this._tags = new TagsClient(this._options)));
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
|
-
* Adds
|
|
27
|
+
* One contact, several tags. Adds several tags to a single subscriber identified by email or externalId. Creates the subscriber if they don't exist. To add tags to many existing subscribers without creating contacts, use POST /subscribers/bulk/tags/add. Creates tag definitions if they don't exist. When the workspace has double opt-in enabled, a brand-new subscriber is created pending confirmation, the confirmation email is queued, and tag automations wait at their trigger until the subscriber confirms.
|
|
28
28
|
*
|
|
29
29
|
* @param {Sequenzy.AddTagsBulkRequest} request
|
|
30
30
|
* @param {SubscribersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -93,7 +93,7 @@ export class SubscribersClient {
|
|
|
93
93
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/subscribers/tags/bulk");
|
|
94
94
|
}
|
|
95
95
|
/**
|
|
96
|
-
* Adds one or more tags to up to 500 existing subscribers identified by email, externalId, or subscriberId. Built for reconciling historical or derived tags, so identifiers that do not match an existing subscriber are returned in notFound rather than creating contacts. Tag automations are skipped unless triggerAutomations is true, which requires the automations:trigger scope.
|
|
96
|
+
* Many contacts, one or more tags. Adds one or more tags to up to 500 existing subscribers identified by email, externalId, or subscriberId. Built for reconciling historical or derived tags, so identifiers that do not match an existing subscriber are returned in notFound rather than creating contacts. Tag automations are skipped unless triggerAutomations is true, which requires the automations:trigger scope.
|
|
97
97
|
*
|
|
98
98
|
* @param {Sequenzy.BulkSubscriberTagRequest} request
|
|
99
99
|
* @param {SubscribersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -169,7 +169,7 @@ export class SubscribersClient {
|
|
|
169
169
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/subscribers/bulk/tags/add");
|
|
170
170
|
}
|
|
171
171
|
/**
|
|
172
|
-
* Removes one or more tags from up to 500 existing subscribers identified by email, externalId, or subscriberId. Identifiers that do not match an existing subscriber are returned in notFound.
|
|
172
|
+
* Many contacts, one or more tags. Removes one or more tags from up to 500 existing subscribers identified by email, externalId, or subscriberId. Identifiers that do not match an existing subscriber are returned in notFound.
|
|
173
173
|
*
|
|
174
174
|
* @param {Sequenzy.BulkSubscriberTagRequest} request
|
|
175
175
|
* @param {SubscribersClient.RequestOptions} requestOptions - Request-specific configuration.
|
package/dist/esm/api/resources/subscribers/resources/events/types/TriggerBulkEventsResponse.d.ts
CHANGED
|
@@ -3,6 +3,9 @@ export interface TriggerBulkEventsResponse {
|
|
|
3
3
|
events?: Sequenzy.subscribers.TriggerBulkEventsResponseEventsItem[];
|
|
4
4
|
/** Present when this request created a brand-new subscriber while workspace double opt-in is enabled. The subscriber stays pending and matching sequences wait until they confirm. */
|
|
5
5
|
optIn?: Sequenzy.subscribers.TriggerBulkEventsResponseOptIn;
|
|
6
|
+
sequenceTriggersRan?: Sequenzy.SequenceTriggersRan;
|
|
7
|
+
sequenceTriggersSkippedReason?: Sequenzy.SequenceTriggersSkippedReason;
|
|
6
8
|
subscriber?: Sequenzy.subscribers.TriggerBulkEventsResponseSubscriber;
|
|
7
9
|
success?: boolean;
|
|
10
|
+
warnings?: Sequenzy.SequenceTriggerWarnings;
|
|
8
11
|
}
|
package/dist/esm/api/resources/subscribers/resources/events/types/TriggerEventsResponse.d.ts
CHANGED
|
@@ -17,8 +17,11 @@ export interface TriggerEventsResponse {
|
|
|
17
17
|
inserted?: number;
|
|
18
18
|
/** Present when this event created a brand-new subscriber while workspace double opt-in is enabled. The subscriber stays pending and matching sequences wait until they confirm. */
|
|
19
19
|
optIn?: Sequenzy.subscribers.TriggerEventsResponseOptIn;
|
|
20
|
+
sequenceTriggersRan?: Sequenzy.SequenceTriggersRan;
|
|
21
|
+
sequenceTriggersSkippedReason?: Sequenzy.SequenceTriggersSkippedReason;
|
|
20
22
|
/** Present when the event was recorded but one or more side-effect stages (e.g. apply-sync-rules, trigger-event-automations) failed. Retry-sensitive callers should treat these as partial failures. */
|
|
21
23
|
sideEffectFailures?: string[];
|
|
22
24
|
subscriber?: Sequenzy.subscribers.TriggerEventsResponseSubscriber;
|
|
23
25
|
success?: boolean;
|
|
26
|
+
warnings?: Sequenzy.SequenceTriggerWarnings;
|
|
24
27
|
}
|
|
@@ -29,12 +29,14 @@ export declare class TagsClient {
|
|
|
29
29
|
add(request: Sequenzy.subscribers.AddTagsRequest, requestOptions?: TagsClient.RequestOptions): core.HttpResponsePromise<Sequenzy.subscribers.AddTagsResponse>;
|
|
30
30
|
private __add;
|
|
31
31
|
/**
|
|
32
|
-
* Removes
|
|
32
|
+
* Removes one tag from one subscriber identified by email or externalId. Never creates a subscriber. When no subscriber matches, the request succeeds with subscriberFound false, tag.removed false, an empty subscriber.id and subscriber.created false. firstName and lastName update a matched subscriber and are ignored otherwise. To remove tags from many existing subscribers, use POST /subscribers/bulk/tags/remove.
|
|
33
33
|
*
|
|
34
34
|
* @param {Sequenzy.subscribers.RemoveTagsRequest} request
|
|
35
35
|
* @param {TagsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
36
|
*
|
|
37
|
+
* @throws {@link Sequenzy.BadRequestError}
|
|
37
38
|
* @throws {@link Sequenzy.UnauthorizedError}
|
|
39
|
+
* @throws {@link Sequenzy.ConflictError}
|
|
38
40
|
* @throws {@link Sequenzy.InternalServerError}
|
|
39
41
|
* @throws {@link errors.SequenzyError}
|
|
40
42
|
* @throws {@link errors.SequenzyTimeoutError}
|
|
@@ -82,12 +82,14 @@ export class TagsClient {
|
|
|
82
82
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/subscribers/tags");
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
|
-
* Removes
|
|
85
|
+
* Removes one tag from one subscriber identified by email or externalId. Never creates a subscriber. When no subscriber matches, the request succeeds with subscriberFound false, tag.removed false, an empty subscriber.id and subscriber.created false. firstName and lastName update a matched subscriber and are ignored otherwise. To remove tags from many existing subscribers, use POST /subscribers/bulk/tags/remove.
|
|
86
86
|
*
|
|
87
87
|
* @param {Sequenzy.subscribers.RemoveTagsRequest} request
|
|
88
88
|
* @param {TagsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
89
89
|
*
|
|
90
|
+
* @throws {@link Sequenzy.BadRequestError}
|
|
90
91
|
* @throws {@link Sequenzy.UnauthorizedError}
|
|
92
|
+
* @throws {@link Sequenzy.ConflictError}
|
|
91
93
|
* @throws {@link Sequenzy.InternalServerError}
|
|
92
94
|
* @throws {@link errors.SequenzyError}
|
|
93
95
|
* @throws {@link errors.SequenzyTimeoutError}
|
|
@@ -136,8 +138,12 @@ export class TagsClient {
|
|
|
136
138
|
}
|
|
137
139
|
if (_response.error.reason === "status-code") {
|
|
138
140
|
switch (_response.error.statusCode) {
|
|
141
|
+
case 400:
|
|
142
|
+
throw new Sequenzy.BadRequestError(_response.error.body, _response.rawResponse);
|
|
139
143
|
case 401:
|
|
140
144
|
throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
145
|
+
case 409:
|
|
146
|
+
throw new Sequenzy.ConflictError(_response.error.body, _response.rawResponse);
|
|
141
147
|
case 500:
|
|
142
148
|
throw new Sequenzy.InternalServerError(_response.error.body, _response.rawResponse);
|
|
143
149
|
default:
|
package/dist/esm/api/resources/subscribers/resources/tags/client/requests/RemoveTagsRequest.d.ts
CHANGED
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* }
|
|
6
6
|
*/
|
|
7
7
|
export interface RemoveTagsRequest {
|
|
8
|
-
/**
|
|
8
|
+
/** Subscriber email. Provide email, externalId, or both. */
|
|
9
9
|
email?: string;
|
|
10
10
|
/** Customer-owned app/customer/user ID */
|
|
11
11
|
externalId?: string;
|
|
12
|
-
/**
|
|
12
|
+
/** Updates the matched subscriber's first name. Ignored when no subscriber matches. */
|
|
13
13
|
firstName?: string;
|
|
14
|
-
/**
|
|
14
|
+
/** Updates the matched subscriber's last name. Ignored when no subscriber matches. */
|
|
15
15
|
lastName?: string;
|
|
16
16
|
tag: string;
|
|
17
17
|
}
|
|
@@ -2,7 +2,10 @@ import type * as Sequenzy from "../../../../../index.js";
|
|
|
2
2
|
export interface AddTagsResponse {
|
|
3
3
|
/** Present when this request created a brand-new subscriber while workspace double opt-in is enabled. The tag is applied, but the subscriber stays pending and tag automations wait until they confirm. */
|
|
4
4
|
optIn?: Sequenzy.subscribers.AddTagsResponseOptIn;
|
|
5
|
+
sequenceTriggersRan?: Sequenzy.SequenceTriggersRan;
|
|
6
|
+
sequenceTriggersSkippedReason?: Sequenzy.SequenceTriggersSkippedReason;
|
|
5
7
|
subscriber?: Sequenzy.subscribers.AddTagsResponseSubscriber;
|
|
6
8
|
success?: boolean;
|
|
7
9
|
tag?: Sequenzy.subscribers.AddTagsResponseTag;
|
|
10
|
+
warnings?: Sequenzy.SequenceTriggerWarnings;
|
|
8
11
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type * as Sequenzy from "../../../../../index.js";
|
|
2
2
|
export interface RemoveTagsResponse {
|
|
3
3
|
subscriber?: Sequenzy.subscribers.RemoveTagsResponseSubscriber;
|
|
4
|
+
/** False when no subscriber matched the email or externalId. Nothing was created or changed, subscriber.id is empty and subscriber.tags is empty. */
|
|
5
|
+
subscriberFound?: boolean;
|
|
4
6
|
success?: boolean;
|
|
5
7
|
tag?: Sequenzy.subscribers.RemoveTagsResponseTag;
|
|
6
8
|
}
|
|
@@ -2,7 +2,10 @@ import type * as Sequenzy from "../../../index.js";
|
|
|
2
2
|
export interface AddTagsBulkResponse {
|
|
3
3
|
/** Present when this request created a brand-new subscriber while workspace double opt-in is enabled. The tags are applied, but the subscriber stays pending and tag automations wait until they confirm. */
|
|
4
4
|
optIn?: Sequenzy.AddTagsBulkResponseOptIn;
|
|
5
|
+
sequenceTriggersRan?: Sequenzy.SequenceTriggersRan;
|
|
6
|
+
sequenceTriggersSkippedReason?: Sequenzy.SequenceTriggersSkippedReason;
|
|
5
7
|
subscriber?: Sequenzy.AddTagsBulkResponseSubscriber;
|
|
6
8
|
success?: boolean;
|
|
7
9
|
tags?: Sequenzy.AddTagsBulkResponseTags;
|
|
10
|
+
warnings?: Sequenzy.SequenceTriggerWarnings;
|
|
8
11
|
}
|
|
@@ -2,6 +2,9 @@ import type * as Sequenzy from "../../../index.js";
|
|
|
2
2
|
export interface CreateSubscribersResponse {
|
|
3
3
|
/** Present when the subscriber is awaiting double opt-in confirmation. */
|
|
4
4
|
optIn?: Sequenzy.CreateSubscribersResponseOptIn;
|
|
5
|
+
sequenceTriggersRan?: Sequenzy.SequenceTriggersRan;
|
|
6
|
+
sequenceTriggersSkippedReason?: Sequenzy.SequenceTriggersSkippedReason;
|
|
5
7
|
subscriber?: Sequenzy.CreateSubscribersResponseSubscriber;
|
|
6
8
|
success?: boolean;
|
|
9
|
+
warnings?: Sequenzy.SequenceTriggerWarnings;
|
|
7
10
|
}
|
|
@@ -10,6 +10,8 @@ export interface ImportEventsSubscribersResponse {
|
|
|
10
10
|
failures?: Sequenzy.ImportEventsSubscribersResponseFailuresItem[];
|
|
11
11
|
/** Events recorded by this request. */
|
|
12
12
|
recorded?: number;
|
|
13
|
+
sequenceTriggersRan?: Sequenzy.SequenceTriggersRan;
|
|
14
|
+
sequenceTriggersSkippedReason?: Sequenzy.SequenceTriggersSkippedReason;
|
|
13
15
|
/** Receipt rows whose downstream side effects or historical automation shielding failed. This is orthogonal to receipt accounting and may accompany either recorded or duplicate rows during recovery. */
|
|
14
16
|
sideEffectFailed?: number;
|
|
15
17
|
/** Post-write failures by input index. The receipt exists (new or duplicate); retry with the same eventId for recovery. */
|
|
@@ -19,4 +21,5 @@ export interface ImportEventsSubscribersResponse {
|
|
|
19
21
|
success?: boolean;
|
|
20
22
|
/** Events submitted in this request. */
|
|
21
23
|
total?: number;
|
|
24
|
+
warnings?: Sequenzy.SequenceTriggerWarnings;
|
|
22
25
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type * as Sequenzy from "../../../index.js";
|
|
2
2
|
export interface UpdateByExternalIdSubscribersResponse {
|
|
3
|
+
sequenceTriggersRan?: Sequenzy.SequenceTriggersRan;
|
|
4
|
+
sequenceTriggersSkippedReason?: Sequenzy.SequenceTriggersSkippedReason;
|
|
3
5
|
subscriber?: Sequenzy.Subscriber;
|
|
4
6
|
success?: boolean;
|
|
7
|
+
warnings?: Sequenzy.SequenceTriggerWarnings;
|
|
5
8
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type * as Sequenzy from "../../../index.js";
|
|
2
2
|
export interface UpdateSubscribersResponse {
|
|
3
|
+
sequenceTriggersRan?: Sequenzy.SequenceTriggersRan;
|
|
4
|
+
sequenceTriggersSkippedReason?: Sequenzy.SequenceTriggersSkippedReason;
|
|
3
5
|
subscriber?: Sequenzy.Subscriber;
|
|
4
6
|
success?: boolean;
|
|
7
|
+
warnings?: Sequenzy.SequenceTriggerWarnings;
|
|
5
8
|
}
|
|
@@ -532,12 +532,13 @@ export class TemplatesClient {
|
|
|
532
532
|
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
533
533
|
}
|
|
534
534
|
async __list(request = {}, requestOptions) {
|
|
535
|
-
const { isTemplate, label, limit, offset } = request;
|
|
535
|
+
const { isTemplate, label, limit, offset, page } = request;
|
|
536
536
|
const _queryParams = {
|
|
537
537
|
isTemplate,
|
|
538
538
|
label,
|
|
539
539
|
limit,
|
|
540
540
|
offset,
|
|
541
|
+
page,
|
|
541
542
|
};
|
|
542
543
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
543
544
|
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
@@ -11,4 +11,6 @@ export interface ListTemplatesRequest {
|
|
|
11
11
|
limit?: number;
|
|
12
12
|
/** Templates to skip before returning results. */
|
|
13
13
|
offset?: number;
|
|
14
|
+
/** Optional 1-based page number, used when offset is absent: page=N starts at row (N - 1) * limit. An explicit offset takes precedence; a malformed page is ignored. */
|
|
15
|
+
page?: number;
|
|
14
16
|
}
|
|
@@ -4,6 +4,10 @@ export interface ListTemplatesResponsePagination {
|
|
|
4
4
|
hasMore?: boolean;
|
|
5
5
|
limit?: number;
|
|
6
6
|
offset?: number;
|
|
7
|
+
/** 1-based page that starts at offset. */
|
|
8
|
+
page?: number;
|
|
7
9
|
/** Every matching email body. */
|
|
8
10
|
total?: number;
|
|
11
|
+
/** Pages at this limit. */
|
|
12
|
+
totalPages?: number;
|
|
9
13
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `true` when sequence triggers were allowed to run for this request. It does not mean a sequence started: no trigger may match, and a duplicate event or a tag the contact already had does not enroll anyone again. `false` when no sequence could start from this request; `sequenceTriggersSkippedReason` says why.
|
|
3
|
+
*/
|
|
4
|
+
export type SequenceTriggersRan = boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Present when `sequenceTriggersRan` is `false`. `missing_scope`: the API key lacks `automations:trigger`, so the write was applied but no sequence started and no waiting step resumed. `not_requested`: `enrollInSequences` was `false`. `historical`: the write was recorded as history (an `occurredAt` or `createdAt` more than an hour old). */
|
|
2
|
+
export declare const SequenceTriggersSkippedReason: {
|
|
3
|
+
readonly MissingScope: "missing_scope";
|
|
4
|
+
readonly NotRequested: "not_requested";
|
|
5
|
+
readonly Historical: "historical";
|
|
6
|
+
};
|
|
7
|
+
export type SequenceTriggersSkippedReason = (typeof SequenceTriggersSkippedReason)[keyof typeof SequenceTriggersSkippedReason];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/** Present when `sequenceTriggersRan` is `false`. `missing_scope`: the API key lacks `automations:trigger`, so the write was applied but no sequence started and no waiting step resumed. `not_requested`: `enrollInSequences` was `false`. `historical`: the write was recorded as history (an `occurredAt` or `createdAt` more than an hour old). */
|
|
3
|
+
export const SequenceTriggersSkippedReason = {
|
|
4
|
+
MissingScope: "missing_scope",
|
|
5
|
+
NotRequested: "not_requested",
|
|
6
|
+
Historical: "historical",
|
|
7
|
+
};
|
|
@@ -855,7 +855,10 @@ export * from "./SequenceTriggerPropertyFilter.js";
|
|
|
855
855
|
export * from "./SequenceTriggerPropertyFilterOperator.js";
|
|
856
856
|
export * from "./SequenceTriggerPropertyFilterValue.js";
|
|
857
857
|
export * from "./SequenceTriggerPropertyFilterValueThreeItem.js";
|
|
858
|
+
export * from "./SequenceTriggersRan.js";
|
|
859
|
+
export * from "./SequenceTriggersSkippedReason.js";
|
|
858
860
|
export * from "./SequenceTriggerType.js";
|
|
861
|
+
export * from "./SequenceTriggerWarnings.js";
|
|
859
862
|
export * from "./SequenceWaitUntilInput.js";
|
|
860
863
|
export * from "./SequenceWaitUntilInputDirection.js";
|
|
861
864
|
export * from "./SequenceWaitUntilInputMissingAction.js";
|
|
@@ -855,7 +855,10 @@ export * from "./SequenceTriggerPropertyFilter.js";
|
|
|
855
855
|
export * from "./SequenceTriggerPropertyFilterOperator.js";
|
|
856
856
|
export * from "./SequenceTriggerPropertyFilterValue.js";
|
|
857
857
|
export * from "./SequenceTriggerPropertyFilterValueThreeItem.js";
|
|
858
|
+
export * from "./SequenceTriggersRan.js";
|
|
859
|
+
export * from "./SequenceTriggersSkippedReason.js";
|
|
858
860
|
export * from "./SequenceTriggerType.js";
|
|
861
|
+
export * from "./SequenceTriggerWarnings.js";
|
|
859
862
|
export * from "./SequenceWaitUntilInput.js";
|
|
860
863
|
export * from "./SequenceWaitUntilInputDirection.js";
|
|
861
864
|
export * from "./SequenceWaitUntilInputMissingAction.js";
|
|
@@ -5,5 +5,7 @@ export const ListCampaignsResponsePagination = core.serialization.object({
|
|
|
5
5
|
hasMore: core.serialization.boolean().optional(),
|
|
6
6
|
limit: core.serialization.number().optional(),
|
|
7
7
|
offset: core.serialization.number().optional(),
|
|
8
|
+
page: core.serialization.number().optional(),
|
|
8
9
|
total: core.serialization.number().optional(),
|
|
10
|
+
totalPages: core.serialization.number().optional(),
|
|
9
11
|
});
|
package/dist/esm/serialization/resources/inApp/types/EstimateInAppCampaignRecipientsResponse.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import type * as serializers from "../../../index.js";
|
|
|
4
4
|
export declare const EstimateInAppCampaignRecipientsResponse: core.serialization.ObjectSchema<serializers.EstimateInAppCampaignRecipientsResponse.Raw, Sequenzy.EstimateInAppCampaignRecipientsResponse>;
|
|
5
5
|
export declare namespace EstimateInAppCampaignRecipientsResponse {
|
|
6
6
|
interface Raw {
|
|
7
|
+
appUserCount?: number | null;
|
|
7
8
|
audienceCount?: number | null;
|
|
8
9
|
success?: boolean | null;
|
|
9
10
|
}
|
package/dist/esm/serialization/resources/inApp/types/EstimateInAppCampaignRecipientsResponse.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../../../core/index.js";
|
|
3
3
|
export const EstimateInAppCampaignRecipientsResponse = core.serialization.object({
|
|
4
|
+
appUserCount: core.serialization.number().optional(),
|
|
4
5
|
audienceCount: core.serialization.number().optional(),
|
|
5
6
|
success: core.serialization.boolean().optional(),
|
|
6
7
|
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as Sequenzy from "../../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../../index.js";
|
|
4
|
+
import { CropEmailImageRequestAspectRatio } from "../../types/CropEmailImageRequestAspectRatio.js";
|
|
5
|
+
import { CropEmailImageRequestCrop } from "../../types/CropEmailImageRequestCrop.js";
|
|
6
|
+
export declare const CropEmailImageRequest: core.serialization.Schema<serializers.CropEmailImageRequest.Raw, Sequenzy.CropEmailImageRequest>;
|
|
7
|
+
export declare namespace CropEmailImageRequest {
|
|
8
|
+
interface Raw {
|
|
9
|
+
altText?: string | null;
|
|
10
|
+
aspectRatio?: CropEmailImageRequestAspectRatio.Raw | null;
|
|
11
|
+
crop?: CropEmailImageRequestCrop.Raw | null;
|
|
12
|
+
focusX?: number | null;
|
|
13
|
+
focusY?: number | null;
|
|
14
|
+
sourceUrl: string;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../../core/index.js";
|
|
3
|
+
import { CropEmailImageRequestAspectRatio } from "../../types/CropEmailImageRequestAspectRatio.js";
|
|
4
|
+
import { CropEmailImageRequestCrop } from "../../types/CropEmailImageRequestCrop.js";
|
|
5
|
+
export const CropEmailImageRequest = core.serialization.object({
|
|
6
|
+
altText: core.serialization.string().optional(),
|
|
7
|
+
aspectRatio: CropEmailImageRequestAspectRatio.optional(),
|
|
8
|
+
crop: CropEmailImageRequestCrop.optional(),
|
|
9
|
+
focusX: core.serialization.number().optional(),
|
|
10
|
+
focusY: core.serialization.number().optional(),
|
|
11
|
+
sourceUrl: core.serialization.string(),
|
|
12
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Sequenzy from "../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
export declare const CropEmailImageRequestAspectRatio: core.serialization.Schema<serializers.CropEmailImageRequestAspectRatio.Raw, Sequenzy.CropEmailImageRequestAspectRatio>;
|
|
5
|
+
export declare namespace CropEmailImageRequestAspectRatio {
|
|
6
|
+
type Raw = number | string;
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as Sequenzy from "../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
export declare const CropEmailImageRequestCrop: core.serialization.ObjectSchema<serializers.CropEmailImageRequestCrop.Raw, Sequenzy.CropEmailImageRequestCrop>;
|
|
5
|
+
export declare namespace CropEmailImageRequestCrop {
|
|
6
|
+
interface Raw {
|
|
7
|
+
height: number;
|
|
8
|
+
width: number;
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
export const CropEmailImageRequestCrop = core.serialization.object({
|
|
4
|
+
height: core.serialization.number(),
|
|
5
|
+
width: core.serialization.number(),
|
|
6
|
+
x: core.serialization.number(),
|
|
7
|
+
y: core.serialization.number(),
|
|
8
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as Sequenzy from "../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
import { CropEmailImageResponseAsset } from "./CropEmailImageResponseAsset.js";
|
|
5
|
+
import { CropEmailImageResponseCrop } from "./CropEmailImageResponseCrop.js";
|
|
6
|
+
export declare const CropEmailImageResponse: core.serialization.ObjectSchema<serializers.CropEmailImageResponse.Raw, Sequenzy.CropEmailImageResponse>;
|
|
7
|
+
export declare namespace CropEmailImageResponse {
|
|
8
|
+
interface Raw {
|
|
9
|
+
asset?: CropEmailImageResponseAsset.Raw | null;
|
|
10
|
+
crop?: CropEmailImageResponseCrop.Raw | null;
|
|
11
|
+
sourceHeight?: number | null;
|
|
12
|
+
sourceWidth?: number | null;
|
|
13
|
+
success?: boolean | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import { CropEmailImageResponseAsset } from "./CropEmailImageResponseAsset.js";
|
|
4
|
+
import { CropEmailImageResponseCrop } from "./CropEmailImageResponseCrop.js";
|
|
5
|
+
export const CropEmailImageResponse = core.serialization.object({
|
|
6
|
+
asset: CropEmailImageResponseAsset.optional(),
|
|
7
|
+
crop: CropEmailImageResponseCrop.optional(),
|
|
8
|
+
sourceHeight: core.serialization.number().optional(),
|
|
9
|
+
sourceWidth: core.serialization.number().optional(),
|
|
10
|
+
success: core.serialization.boolean().optional(),
|
|
11
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as Sequenzy from "../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
export declare const CropEmailImageResponseAsset: core.serialization.ObjectSchema<serializers.CropEmailImageResponseAsset.Raw, Sequenzy.CropEmailImageResponseAsset>;
|
|
5
|
+
export declare namespace CropEmailImageResponseAsset {
|
|
6
|
+
interface Raw {
|
|
7
|
+
altText?: (string | null | undefined) | null;
|
|
8
|
+
companyId?: string | null;
|
|
9
|
+
createdAt?: string | null;
|
|
10
|
+
filename?: string | null;
|
|
11
|
+
height?: (string | null | undefined) | null;
|
|
12
|
+
id?: string | null;
|
|
13
|
+
mimeType?: string | null;
|
|
14
|
+
size?: string | null;
|
|
15
|
+
url?: string | null;
|
|
16
|
+
width?: (string | null | undefined) | null;
|
|
17
|
+
}
|
|
18
|
+
}
|