sequenzy 2.1.2 → 2.1.6
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/companies/client/requests/UpdateCompaniesRequest.d.ts +2 -0
- package/dist/cjs/api/resources/companies/types/UpdateCompaniesRequestFooterStyle.d.ts +9 -0
- package/dist/cjs/api/resources/companies/types/UpdateCompaniesRequestFooterStyle.js +12 -0
- package/dist/cjs/api/resources/companies/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/companies/types/index.js +1 -0
- package/dist/cjs/api/resources/inApp/client/Client.d.ts +36 -0
- package/dist/cjs/api/resources/inApp/client/Client.js +138 -0
- package/dist/cjs/api/resources/inApp/client/requests/WriteInAppCopyRequest.d.ts +13 -0
- package/dist/cjs/api/resources/inApp/client/requests/WriteInAppCopyRequest.js +3 -0
- package/dist/cjs/api/resources/inApp/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/inApp/types/ListInAppTemplatesResponse.d.ts +5 -0
- package/dist/cjs/api/resources/inApp/types/ListInAppTemplatesResponse.js +3 -0
- package/dist/cjs/api/resources/inApp/types/ListInAppTemplatesResponseTemplatesItem.d.ts +9 -0
- package/dist/cjs/api/resources/inApp/types/ListInAppTemplatesResponseTemplatesItem.js +3 -0
- package/dist/cjs/api/resources/inApp/types/ListInAppTemplatesResponseTemplatesItemCategory.d.ts +7 -0
- package/dist/cjs/api/resources/inApp/types/ListInAppTemplatesResponseTemplatesItemCategory.js +10 -0
- package/dist/cjs/api/resources/inApp/types/WriteInAppCopyRequestFormat.d.ts +6 -0
- package/dist/cjs/api/resources/inApp/types/WriteInAppCopyRequestFormat.js +9 -0
- package/dist/cjs/api/resources/inApp/types/WriteInAppCopyRequestKind.d.ts +5 -0
- package/dist/cjs/api/resources/inApp/types/WriteInAppCopyRequestKind.js +8 -0
- package/dist/cjs/api/resources/inApp/types/WriteInAppCopyResponse.d.ts +5 -0
- package/dist/cjs/api/resources/inApp/types/WriteInAppCopyResponse.js +3 -0
- package/dist/cjs/api/resources/inApp/types/WriteInAppCopyResponseCopy.d.ts +7 -0
- package/dist/cjs/api/resources/inApp/types/WriteInAppCopyResponseCopy.js +3 -0
- package/dist/cjs/api/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItem.d.ts +5 -0
- package/dist/cjs/api/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItem.js +3 -0
- package/dist/cjs/api/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItemAction.d.ts +5 -0
- package/dist/cjs/api/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItemAction.js +8 -0
- package/dist/cjs/api/resources/inApp/types/index.d.ts +9 -0
- package/dist/cjs/api/resources/inApp/types/index.js +9 -0
- package/dist/cjs/api/resources/push/client/Client.d.ts +97 -0
- package/dist/cjs/api/resources/push/client/Client.js +348 -0
- package/dist/cjs/api/resources/push/client/requests/EndLiveActivityRequest.d.ts +27 -0
- package/dist/cjs/api/resources/push/client/requests/EndLiveActivityRequest.js +3 -0
- package/dist/cjs/api/resources/push/client/requests/ListLiveActivitiesRequest.d.ts +17 -0
- package/dist/cjs/api/resources/push/client/requests/ListLiveActivitiesRequest.js +3 -0
- package/dist/cjs/api/resources/push/client/requests/StartLiveActivityRequest.d.ts +30 -0
- package/dist/cjs/api/resources/push/client/requests/StartLiveActivityRequest.js +3 -0
- package/dist/cjs/api/resources/push/client/requests/UpdateLiveActivityRequest.d.ts +27 -0
- package/dist/cjs/api/resources/push/client/requests/UpdateLiveActivityRequest.js +3 -0
- package/dist/cjs/api/resources/push/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/push/types/EndLiveActivityRequestPriority.d.ts +6 -0
- package/dist/cjs/api/resources/push/types/EndLiveActivityRequestPriority.js +9 -0
- package/dist/cjs/api/resources/push/types/ListLiveActivitiesRequestKind.d.ts +5 -0
- package/dist/cjs/api/resources/push/types/ListLiveActivitiesRequestKind.js +8 -0
- package/dist/cjs/api/resources/push/types/ListLiveActivitiesRequestStatus.d.ts +6 -0
- package/dist/cjs/api/resources/push/types/ListLiveActivitiesRequestStatus.js +9 -0
- package/dist/cjs/api/resources/push/types/ListLiveActivitiesResponse.d.ts +8 -0
- package/dist/cjs/api/resources/push/types/ListLiveActivitiesResponse.js +3 -0
- package/dist/cjs/api/resources/push/types/ListLiveActivitiesResponseSummary.d.ts +9 -0
- package/dist/cjs/api/resources/push/types/ListLiveActivitiesResponseSummary.js +3 -0
- package/dist/cjs/api/resources/push/types/ListLiveActivitiesResponseSummaryActivityTypesItem.d.ts +5 -0
- package/dist/cjs/api/resources/push/types/ListLiveActivitiesResponseSummaryActivityTypesItem.js +3 -0
- package/dist/cjs/api/resources/push/types/UpdateLiveActivityRequestPriority.d.ts +6 -0
- package/dist/cjs/api/resources/push/types/UpdateLiveActivityRequestPriority.js +9 -0
- package/dist/cjs/api/resources/push/types/index.d.ts +7 -0
- package/dist/cjs/api/resources/push/types/index.js +7 -0
- package/dist/cjs/api/resources/sequences/types/SimulateSequencesResponse.d.ts +1 -1
- package/dist/cjs/api/resources/sequences/types/SimulateSequencesResponseReadiness.d.ts +1 -1
- package/dist/cjs/api/resources/webTrackingKeys/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/webTrackingKeys/client/Client.js +2 -2
- package/dist/cjs/api/resources/webTrackingKeys/client/requests/CreateWebTrackingKeysRequest.d.ts +3 -1
- package/dist/cjs/api/resources/webTrackingKeys/client/requests/UpdateWebTrackingKeysRequest.d.ts +3 -1
- package/dist/cjs/api/types/Company.d.ts +3 -0
- package/dist/cjs/api/types/CompanyFooterStyle.d.ts +9 -0
- package/dist/cjs/api/types/CompanyFooterStyle.js +12 -0
- package/dist/cjs/api/types/InAppMessage.d.ts +5 -1
- package/dist/cjs/api/types/InAppMessageImagePlacement.d.ts +6 -0
- package/dist/cjs/api/types/InAppMessageImagePlacement.js +9 -0
- package/dist/cjs/api/types/InAppMessagePosition.d.ts +2 -1
- package/dist/cjs/api/types/InAppMessagePosition.js +2 -1
- package/dist/cjs/api/types/LiveActivityAlert.d.ts +9 -0
- package/dist/cjs/api/types/LiveActivityAlert.js +3 -0
- package/dist/cjs/api/types/LiveActivityDispatch.d.ts +11 -0
- package/dist/cjs/api/types/LiveActivityDispatch.js +3 -0
- package/dist/cjs/api/types/LiveActivityDispatchEvent.d.ts +6 -0
- package/dist/cjs/api/types/LiveActivityDispatchEvent.js +9 -0
- package/dist/cjs/api/types/LiveActivityTime.d.ts +4 -0
- package/dist/cjs/api/types/LiveActivityTime.js +3 -0
- package/dist/cjs/api/types/LiveActivityToken.d.ts +25 -0
- package/dist/cjs/api/types/LiveActivityToken.js +3 -0
- package/dist/cjs/api/types/LiveActivityTokenKind.d.ts +6 -0
- package/dist/cjs/api/types/LiveActivityTokenKind.js +9 -0
- package/dist/cjs/api/types/LiveActivityTokenStatus.d.ts +6 -0
- package/dist/cjs/api/types/LiveActivityTokenStatus.js +9 -0
- package/dist/cjs/api/types/PushDevice.d.ts +1 -0
- package/dist/cjs/api/types/PushDeviceSource.d.ts +2 -0
- package/dist/cjs/api/types/PushDeviceSource.js +2 -0
- package/dist/cjs/api/types/SequenceActionResponse.d.ts +1 -1
- package/dist/cjs/api/types/WebTrackingKey.d.ts +5 -3
- package/dist/cjs/api/types/index.d.ts +9 -0
- package/dist/cjs/api/types/index.js +9 -0
- package/dist/cjs/serialization/resources/companies/client/requests/UpdateCompaniesRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/companies/client/requests/UpdateCompaniesRequest.js +2 -0
- package/dist/cjs/serialization/resources/companies/types/UpdateCompaniesRequestFooterStyle.d.ts +7 -0
- package/dist/cjs/serialization/resources/companies/types/UpdateCompaniesRequestFooterStyle.js +29 -0
- package/dist/cjs/serialization/resources/companies/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/companies/types/index.js +1 -0
- package/dist/cjs/serialization/resources/inApp/client/requests/WriteInAppCopyRequest.d.ts +14 -0
- package/dist/cjs/serialization/resources/inApp/client/requests/WriteInAppCopyRequest.js +36 -0
- package/dist/cjs/serialization/resources/inApp/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/inApp/client/requests/index.js +3 -1
- package/dist/cjs/serialization/resources/inApp/types/ListInAppTemplatesResponse.d.ts +11 -0
- package/dist/cjs/serialization/resources/inApp/types/ListInAppTemplatesResponse.js +33 -0
- package/dist/cjs/serialization/resources/inApp/types/ListInAppTemplatesResponseTemplatesItem.d.ts +14 -0
- package/dist/cjs/serialization/resources/inApp/types/ListInAppTemplatesResponseTemplatesItem.js +36 -0
- package/dist/cjs/serialization/resources/inApp/types/ListInAppTemplatesResponseTemplatesItemCategory.d.ts +7 -0
- package/dist/cjs/serialization/resources/inApp/types/ListInAppTemplatesResponseTemplatesItemCategory.js +29 -0
- package/dist/cjs/serialization/resources/inApp/types/WriteInAppCopyRequestFormat.d.ts +7 -0
- package/dist/cjs/serialization/resources/inApp/types/WriteInAppCopyRequestFormat.js +29 -0
- package/dist/cjs/serialization/resources/inApp/types/WriteInAppCopyRequestKind.d.ts +7 -0
- package/dist/cjs/serialization/resources/inApp/types/WriteInAppCopyRequestKind.js +29 -0
- package/dist/cjs/serialization/resources/inApp/types/WriteInAppCopyResponse.d.ts +11 -0
- package/dist/cjs/serialization/resources/inApp/types/WriteInAppCopyResponse.js +33 -0
- package/dist/cjs/serialization/resources/inApp/types/WriteInAppCopyResponseCopy.d.ts +13 -0
- package/dist/cjs/serialization/resources/inApp/types/WriteInAppCopyResponseCopy.js +35 -0
- package/dist/cjs/serialization/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItem.d.ts +11 -0
- package/dist/cjs/serialization/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItem.js +33 -0
- package/dist/cjs/serialization/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItemAction.d.ts +7 -0
- package/dist/cjs/serialization/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItemAction.js +29 -0
- package/dist/cjs/serialization/resources/inApp/types/index.d.ts +9 -0
- package/dist/cjs/serialization/resources/inApp/types/index.js +9 -0
- package/dist/cjs/serialization/resources/push/client/requests/EndLiveActivityRequest.d.ts +20 -0
- package/dist/cjs/serialization/resources/push/client/requests/EndLiveActivityRequest.js +42 -0
- package/dist/cjs/serialization/resources/push/client/requests/StartLiveActivityRequest.d.ts +19 -0
- package/dist/cjs/serialization/resources/push/client/requests/StartLiveActivityRequest.js +41 -0
- package/dist/cjs/serialization/resources/push/client/requests/UpdateLiveActivityRequest.d.ts +19 -0
- package/dist/cjs/serialization/resources/push/client/requests/UpdateLiveActivityRequest.js +41 -0
- package/dist/cjs/serialization/resources/push/client/requests/index.d.ts +3 -0
- package/dist/cjs/serialization/resources/push/client/requests/index.js +7 -1
- package/dist/cjs/serialization/resources/push/types/EndLiveActivityRequestPriority.d.ts +7 -0
- package/dist/cjs/serialization/resources/push/types/EndLiveActivityRequestPriority.js +29 -0
- package/dist/cjs/serialization/resources/push/types/ListLiveActivitiesRequestKind.d.ts +7 -0
- package/dist/cjs/serialization/resources/push/types/ListLiveActivitiesRequestKind.js +29 -0
- package/dist/cjs/serialization/resources/push/types/ListLiveActivitiesRequestStatus.d.ts +7 -0
- package/dist/cjs/serialization/resources/push/types/ListLiveActivitiesRequestStatus.js +29 -0
- package/dist/cjs/serialization/resources/push/types/ListLiveActivitiesResponse.d.ts +14 -0
- package/dist/cjs/serialization/resources/push/types/ListLiveActivitiesResponse.js +36 -0
- package/dist/cjs/serialization/resources/push/types/ListLiveActivitiesResponseSummary.d.ts +12 -0
- package/dist/cjs/serialization/resources/push/types/ListLiveActivitiesResponseSummary.js +34 -0
- package/dist/cjs/serialization/resources/push/types/ListLiveActivitiesResponseSummaryActivityTypesItem.d.ts +11 -0
- package/dist/cjs/serialization/resources/push/types/ListLiveActivitiesResponseSummaryActivityTypesItem.js +33 -0
- package/dist/cjs/serialization/resources/push/types/UpdateLiveActivityRequestPriority.d.ts +7 -0
- package/dist/cjs/serialization/resources/push/types/UpdateLiveActivityRequestPriority.js +29 -0
- package/dist/cjs/serialization/resources/push/types/index.d.ts +7 -0
- package/dist/cjs/serialization/resources/push/types/index.js +7 -0
- package/dist/cjs/serialization/resources/webTrackingKeys/client/requests/CreateWebTrackingKeysRequest.d.ts +1 -0
- package/dist/cjs/serialization/resources/webTrackingKeys/client/requests/CreateWebTrackingKeysRequest.js +1 -0
- package/dist/cjs/serialization/resources/webTrackingKeys/client/requests/UpdateWebTrackingKeysRequest.d.ts +1 -0
- package/dist/cjs/serialization/resources/webTrackingKeys/client/requests/UpdateWebTrackingKeysRequest.js +1 -0
- package/dist/cjs/serialization/types/Company.d.ts +2 -0
- package/dist/cjs/serialization/types/Company.js +2 -0
- package/dist/cjs/serialization/types/CompanyFooterStyle.d.ts +7 -0
- package/dist/cjs/serialization/types/CompanyFooterStyle.js +29 -0
- package/dist/cjs/serialization/types/InAppMessage.d.ts +3 -0
- package/dist/cjs/serialization/types/InAppMessage.js +3 -0
- package/dist/cjs/serialization/types/InAppMessageImagePlacement.d.ts +7 -0
- package/dist/cjs/serialization/types/InAppMessageImagePlacement.js +29 -0
- package/dist/cjs/serialization/types/InAppMessagePosition.d.ts +1 -1
- package/dist/cjs/serialization/types/InAppMessagePosition.js +1 -1
- package/dist/cjs/serialization/types/LiveActivityAlert.d.ts +11 -0
- package/dist/cjs/serialization/types/LiveActivityAlert.js +33 -0
- package/dist/cjs/serialization/types/LiveActivityDispatch.d.ts +15 -0
- package/dist/cjs/serialization/types/LiveActivityDispatch.js +37 -0
- package/dist/cjs/serialization/types/LiveActivityDispatchEvent.d.ts +7 -0
- package/dist/cjs/serialization/types/LiveActivityDispatchEvent.js +29 -0
- package/dist/cjs/serialization/types/LiveActivityTime.d.ts +7 -0
- package/dist/cjs/serialization/types/LiveActivityTime.js +29 -0
- package/dist/cjs/serialization/types/LiveActivityToken.d.ts +25 -0
- package/dist/cjs/serialization/types/LiveActivityToken.js +47 -0
- package/dist/cjs/serialization/types/LiveActivityTokenKind.d.ts +7 -0
- package/dist/cjs/serialization/types/LiveActivityTokenKind.js +29 -0
- package/dist/cjs/serialization/types/LiveActivityTokenStatus.d.ts +7 -0
- package/dist/cjs/serialization/types/LiveActivityTokenStatus.js +29 -0
- package/dist/cjs/serialization/types/PushDeviceSource.d.ts +1 -1
- package/dist/cjs/serialization/types/PushDeviceSource.js +1 -1
- package/dist/cjs/serialization/types/WebTrackingKey.d.ts +1 -0
- package/dist/cjs/serialization/types/WebTrackingKey.js +1 -0
- package/dist/cjs/serialization/types/index.d.ts +9 -0
- package/dist/cjs/serialization/types/index.js +9 -0
- package/dist/esm/api/resources/companies/client/requests/UpdateCompaniesRequest.d.ts +2 -0
- package/dist/esm/api/resources/companies/types/UpdateCompaniesRequestFooterStyle.d.ts +9 -0
- package/dist/esm/api/resources/companies/types/UpdateCompaniesRequestFooterStyle.js +9 -0
- package/dist/esm/api/resources/companies/types/index.d.ts +1 -0
- package/dist/esm/api/resources/companies/types/index.js +1 -0
- package/dist/esm/api/resources/inApp/client/Client.d.ts +36 -0
- package/dist/esm/api/resources/inApp/client/Client.js +138 -0
- package/dist/esm/api/resources/inApp/client/requests/WriteInAppCopyRequest.d.ts +13 -0
- package/dist/esm/api/resources/inApp/client/requests/WriteInAppCopyRequest.js +2 -0
- package/dist/esm/api/resources/inApp/client/requests/index.d.ts +1 -0
- package/dist/esm/api/resources/inApp/types/ListInAppTemplatesResponse.d.ts +5 -0
- package/dist/esm/api/resources/inApp/types/ListInAppTemplatesResponse.js +2 -0
- package/dist/esm/api/resources/inApp/types/ListInAppTemplatesResponseTemplatesItem.d.ts +9 -0
- package/dist/esm/api/resources/inApp/types/ListInAppTemplatesResponseTemplatesItem.js +2 -0
- package/dist/esm/api/resources/inApp/types/ListInAppTemplatesResponseTemplatesItemCategory.d.ts +7 -0
- package/dist/esm/api/resources/inApp/types/ListInAppTemplatesResponseTemplatesItemCategory.js +7 -0
- package/dist/esm/api/resources/inApp/types/WriteInAppCopyRequestFormat.d.ts +6 -0
- package/dist/esm/api/resources/inApp/types/WriteInAppCopyRequestFormat.js +6 -0
- package/dist/esm/api/resources/inApp/types/WriteInAppCopyRequestKind.d.ts +5 -0
- package/dist/esm/api/resources/inApp/types/WriteInAppCopyRequestKind.js +5 -0
- package/dist/esm/api/resources/inApp/types/WriteInAppCopyResponse.d.ts +5 -0
- package/dist/esm/api/resources/inApp/types/WriteInAppCopyResponse.js +2 -0
- package/dist/esm/api/resources/inApp/types/WriteInAppCopyResponseCopy.d.ts +7 -0
- package/dist/esm/api/resources/inApp/types/WriteInAppCopyResponseCopy.js +2 -0
- package/dist/esm/api/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItem.d.ts +5 -0
- package/dist/esm/api/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItem.js +2 -0
- package/dist/esm/api/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItemAction.d.ts +5 -0
- package/dist/esm/api/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItemAction.js +5 -0
- package/dist/esm/api/resources/inApp/types/index.d.ts +9 -0
- package/dist/esm/api/resources/inApp/types/index.js +9 -0
- package/dist/esm/api/resources/push/client/Client.d.ts +97 -0
- package/dist/esm/api/resources/push/client/Client.js +348 -0
- package/dist/esm/api/resources/push/client/requests/EndLiveActivityRequest.d.ts +27 -0
- package/dist/esm/api/resources/push/client/requests/EndLiveActivityRequest.js +2 -0
- package/dist/esm/api/resources/push/client/requests/ListLiveActivitiesRequest.d.ts +17 -0
- package/dist/esm/api/resources/push/client/requests/ListLiveActivitiesRequest.js +2 -0
- package/dist/esm/api/resources/push/client/requests/StartLiveActivityRequest.d.ts +30 -0
- package/dist/esm/api/resources/push/client/requests/StartLiveActivityRequest.js +2 -0
- package/dist/esm/api/resources/push/client/requests/UpdateLiveActivityRequest.d.ts +27 -0
- package/dist/esm/api/resources/push/client/requests/UpdateLiveActivityRequest.js +2 -0
- package/dist/esm/api/resources/push/client/requests/index.d.ts +4 -0
- package/dist/esm/api/resources/push/types/EndLiveActivityRequestPriority.d.ts +6 -0
- package/dist/esm/api/resources/push/types/EndLiveActivityRequestPriority.js +6 -0
- package/dist/esm/api/resources/push/types/ListLiveActivitiesRequestKind.d.ts +5 -0
- package/dist/esm/api/resources/push/types/ListLiveActivitiesRequestKind.js +5 -0
- package/dist/esm/api/resources/push/types/ListLiveActivitiesRequestStatus.d.ts +6 -0
- package/dist/esm/api/resources/push/types/ListLiveActivitiesRequestStatus.js +6 -0
- package/dist/esm/api/resources/push/types/ListLiveActivitiesResponse.d.ts +8 -0
- package/dist/esm/api/resources/push/types/ListLiveActivitiesResponse.js +2 -0
- package/dist/esm/api/resources/push/types/ListLiveActivitiesResponseSummary.d.ts +9 -0
- package/dist/esm/api/resources/push/types/ListLiveActivitiesResponseSummary.js +2 -0
- package/dist/esm/api/resources/push/types/ListLiveActivitiesResponseSummaryActivityTypesItem.d.ts +5 -0
- package/dist/esm/api/resources/push/types/ListLiveActivitiesResponseSummaryActivityTypesItem.js +2 -0
- package/dist/esm/api/resources/push/types/UpdateLiveActivityRequestPriority.d.ts +6 -0
- package/dist/esm/api/resources/push/types/UpdateLiveActivityRequestPriority.js +6 -0
- package/dist/esm/api/resources/push/types/index.d.ts +7 -0
- package/dist/esm/api/resources/push/types/index.js +7 -0
- package/dist/esm/api/resources/sequences/types/SimulateSequencesResponse.d.ts +1 -1
- package/dist/esm/api/resources/sequences/types/SimulateSequencesResponseReadiness.d.ts +1 -1
- package/dist/esm/api/resources/webTrackingKeys/client/Client.d.ts +2 -2
- package/dist/esm/api/resources/webTrackingKeys/client/Client.js +2 -2
- package/dist/esm/api/resources/webTrackingKeys/client/requests/CreateWebTrackingKeysRequest.d.ts +3 -1
- package/dist/esm/api/resources/webTrackingKeys/client/requests/UpdateWebTrackingKeysRequest.d.ts +3 -1
- package/dist/esm/api/types/Company.d.ts +3 -0
- package/dist/esm/api/types/CompanyFooterStyle.d.ts +9 -0
- package/dist/esm/api/types/CompanyFooterStyle.js +9 -0
- package/dist/esm/api/types/InAppMessage.d.ts +5 -1
- package/dist/esm/api/types/InAppMessageImagePlacement.d.ts +6 -0
- package/dist/esm/api/types/InAppMessageImagePlacement.js +6 -0
- package/dist/esm/api/types/InAppMessagePosition.d.ts +2 -1
- package/dist/esm/api/types/InAppMessagePosition.js +2 -1
- package/dist/esm/api/types/LiveActivityAlert.d.ts +9 -0
- package/dist/esm/api/types/LiveActivityAlert.js +2 -0
- package/dist/esm/api/types/LiveActivityDispatch.d.ts +11 -0
- package/dist/esm/api/types/LiveActivityDispatch.js +2 -0
- package/dist/esm/api/types/LiveActivityDispatchEvent.d.ts +6 -0
- package/dist/esm/api/types/LiveActivityDispatchEvent.js +6 -0
- package/dist/esm/api/types/LiveActivityTime.d.ts +4 -0
- package/dist/esm/api/types/LiveActivityTime.js +2 -0
- package/dist/esm/api/types/LiveActivityToken.d.ts +25 -0
- package/dist/esm/api/types/LiveActivityToken.js +2 -0
- package/dist/esm/api/types/LiveActivityTokenKind.d.ts +6 -0
- package/dist/esm/api/types/LiveActivityTokenKind.js +6 -0
- package/dist/esm/api/types/LiveActivityTokenStatus.d.ts +6 -0
- package/dist/esm/api/types/LiveActivityTokenStatus.js +6 -0
- package/dist/esm/api/types/PushDevice.d.ts +1 -0
- package/dist/esm/api/types/PushDeviceSource.d.ts +2 -0
- package/dist/esm/api/types/PushDeviceSource.js +2 -0
- package/dist/esm/api/types/SequenceActionResponse.d.ts +1 -1
- package/dist/esm/api/types/WebTrackingKey.d.ts +5 -3
- package/dist/esm/api/types/index.d.ts +9 -0
- package/dist/esm/api/types/index.js +9 -0
- package/dist/esm/serialization/resources/companies/client/requests/UpdateCompaniesRequest.d.ts +2 -0
- package/dist/esm/serialization/resources/companies/client/requests/UpdateCompaniesRequest.js +2 -0
- package/dist/esm/serialization/resources/companies/types/UpdateCompaniesRequestFooterStyle.d.ts +7 -0
- package/dist/esm/serialization/resources/companies/types/UpdateCompaniesRequestFooterStyle.js +3 -0
- package/dist/esm/serialization/resources/companies/types/index.d.ts +1 -0
- package/dist/esm/serialization/resources/companies/types/index.js +1 -0
- package/dist/esm/serialization/resources/inApp/client/requests/WriteInAppCopyRequest.d.ts +14 -0
- package/dist/esm/serialization/resources/inApp/client/requests/WriteInAppCopyRequest.js +10 -0
- package/dist/esm/serialization/resources/inApp/client/requests/index.d.ts +1 -0
- package/dist/esm/serialization/resources/inApp/client/requests/index.js +1 -0
- package/dist/esm/serialization/resources/inApp/types/ListInAppTemplatesResponse.d.ts +11 -0
- package/dist/esm/serialization/resources/inApp/types/ListInAppTemplatesResponse.js +7 -0
- package/dist/esm/serialization/resources/inApp/types/ListInAppTemplatesResponseTemplatesItem.d.ts +14 -0
- package/dist/esm/serialization/resources/inApp/types/ListInAppTemplatesResponseTemplatesItem.js +10 -0
- package/dist/esm/serialization/resources/inApp/types/ListInAppTemplatesResponseTemplatesItemCategory.d.ts +7 -0
- package/dist/esm/serialization/resources/inApp/types/ListInAppTemplatesResponseTemplatesItemCategory.js +3 -0
- package/dist/esm/serialization/resources/inApp/types/WriteInAppCopyRequestFormat.d.ts +7 -0
- package/dist/esm/serialization/resources/inApp/types/WriteInAppCopyRequestFormat.js +3 -0
- package/dist/esm/serialization/resources/inApp/types/WriteInAppCopyRequestKind.d.ts +7 -0
- package/dist/esm/serialization/resources/inApp/types/WriteInAppCopyRequestKind.js +3 -0
- package/dist/esm/serialization/resources/inApp/types/WriteInAppCopyResponse.d.ts +11 -0
- package/dist/esm/serialization/resources/inApp/types/WriteInAppCopyResponse.js +7 -0
- package/dist/esm/serialization/resources/inApp/types/WriteInAppCopyResponseCopy.d.ts +13 -0
- package/dist/esm/serialization/resources/inApp/types/WriteInAppCopyResponseCopy.js +9 -0
- package/dist/esm/serialization/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItem.d.ts +11 -0
- package/dist/esm/serialization/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItem.js +7 -0
- package/dist/esm/serialization/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItemAction.d.ts +7 -0
- package/dist/esm/serialization/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItemAction.js +3 -0
- package/dist/esm/serialization/resources/inApp/types/index.d.ts +9 -0
- package/dist/esm/serialization/resources/inApp/types/index.js +9 -0
- package/dist/esm/serialization/resources/push/client/requests/EndLiveActivityRequest.d.ts +20 -0
- package/dist/esm/serialization/resources/push/client/requests/EndLiveActivityRequest.js +16 -0
- package/dist/esm/serialization/resources/push/client/requests/StartLiveActivityRequest.d.ts +19 -0
- package/dist/esm/serialization/resources/push/client/requests/StartLiveActivityRequest.js +15 -0
- package/dist/esm/serialization/resources/push/client/requests/UpdateLiveActivityRequest.d.ts +19 -0
- package/dist/esm/serialization/resources/push/client/requests/UpdateLiveActivityRequest.js +15 -0
- package/dist/esm/serialization/resources/push/client/requests/index.d.ts +3 -0
- package/dist/esm/serialization/resources/push/client/requests/index.js +3 -0
- package/dist/esm/serialization/resources/push/types/EndLiveActivityRequestPriority.d.ts +7 -0
- package/dist/esm/serialization/resources/push/types/EndLiveActivityRequestPriority.js +3 -0
- package/dist/esm/serialization/resources/push/types/ListLiveActivitiesRequestKind.d.ts +7 -0
- package/dist/esm/serialization/resources/push/types/ListLiveActivitiesRequestKind.js +3 -0
- package/dist/esm/serialization/resources/push/types/ListLiveActivitiesRequestStatus.d.ts +7 -0
- package/dist/esm/serialization/resources/push/types/ListLiveActivitiesRequestStatus.js +3 -0
- package/dist/esm/serialization/resources/push/types/ListLiveActivitiesResponse.d.ts +14 -0
- package/dist/esm/serialization/resources/push/types/ListLiveActivitiesResponse.js +10 -0
- package/dist/esm/serialization/resources/push/types/ListLiveActivitiesResponseSummary.d.ts +12 -0
- package/dist/esm/serialization/resources/push/types/ListLiveActivitiesResponseSummary.js +8 -0
- package/dist/esm/serialization/resources/push/types/ListLiveActivitiesResponseSummaryActivityTypesItem.d.ts +11 -0
- package/dist/esm/serialization/resources/push/types/ListLiveActivitiesResponseSummaryActivityTypesItem.js +7 -0
- package/dist/esm/serialization/resources/push/types/UpdateLiveActivityRequestPriority.d.ts +7 -0
- package/dist/esm/serialization/resources/push/types/UpdateLiveActivityRequestPriority.js +3 -0
- package/dist/esm/serialization/resources/push/types/index.d.ts +7 -0
- package/dist/esm/serialization/resources/push/types/index.js +7 -0
- package/dist/esm/serialization/resources/webTrackingKeys/client/requests/CreateWebTrackingKeysRequest.d.ts +1 -0
- package/dist/esm/serialization/resources/webTrackingKeys/client/requests/CreateWebTrackingKeysRequest.js +1 -0
- package/dist/esm/serialization/resources/webTrackingKeys/client/requests/UpdateWebTrackingKeysRequest.d.ts +1 -0
- package/dist/esm/serialization/resources/webTrackingKeys/client/requests/UpdateWebTrackingKeysRequest.js +1 -0
- package/dist/esm/serialization/types/Company.d.ts +2 -0
- package/dist/esm/serialization/types/Company.js +2 -0
- package/dist/esm/serialization/types/CompanyFooterStyle.d.ts +7 -0
- package/dist/esm/serialization/types/CompanyFooterStyle.js +3 -0
- package/dist/esm/serialization/types/InAppMessage.d.ts +3 -0
- package/dist/esm/serialization/types/InAppMessage.js +3 -0
- package/dist/esm/serialization/types/InAppMessageImagePlacement.d.ts +7 -0
- package/dist/esm/serialization/types/InAppMessageImagePlacement.js +3 -0
- package/dist/esm/serialization/types/InAppMessagePosition.d.ts +1 -1
- package/dist/esm/serialization/types/InAppMessagePosition.js +1 -1
- package/dist/esm/serialization/types/LiveActivityAlert.d.ts +11 -0
- package/dist/esm/serialization/types/LiveActivityAlert.js +7 -0
- package/dist/esm/serialization/types/LiveActivityDispatch.d.ts +15 -0
- package/dist/esm/serialization/types/LiveActivityDispatch.js +11 -0
- package/dist/esm/serialization/types/LiveActivityDispatchEvent.d.ts +7 -0
- package/dist/esm/serialization/types/LiveActivityDispatchEvent.js +3 -0
- package/dist/esm/serialization/types/LiveActivityTime.d.ts +7 -0
- package/dist/esm/serialization/types/LiveActivityTime.js +3 -0
- package/dist/esm/serialization/types/LiveActivityToken.d.ts +25 -0
- package/dist/esm/serialization/types/LiveActivityToken.js +21 -0
- package/dist/esm/serialization/types/LiveActivityTokenKind.d.ts +7 -0
- package/dist/esm/serialization/types/LiveActivityTokenKind.js +3 -0
- package/dist/esm/serialization/types/LiveActivityTokenStatus.d.ts +7 -0
- package/dist/esm/serialization/types/LiveActivityTokenStatus.js +3 -0
- package/dist/esm/serialization/types/PushDeviceSource.d.ts +1 -1
- package/dist/esm/serialization/types/PushDeviceSource.js +1 -1
- package/dist/esm/serialization/types/WebTrackingKey.d.ts +1 -0
- package/dist/esm/serialization/types/WebTrackingKey.js +1 -0
- package/dist/esm/serialization/types/index.d.ts +9 -0
- package/dist/esm/serialization/types/index.js +9 -0
- package/package.json +1 -1
|
@@ -26,6 +26,8 @@ export interface UpdateCompaniesRequest {
|
|
|
26
26
|
/** Default email theme. Partial update - omitted fields keep their current value (or the preset default) and numeric values are clamped to supported ranges. Pass null to reset to the platform default theme. */
|
|
27
27
|
emailTheme?: Sequenzy.UpdateCompaniesRequestEmailTheme | null;
|
|
28
28
|
fontFamily?: string | null;
|
|
29
|
+
/** Footer style for new AI-designed emails: `auto` (fits the brand), `classic`, `mono`, `band` or `editorial`. Kept in the stored footer theme, alongside its other settings. Existing emails keep their footers. Other values return 400. */
|
|
30
|
+
footerStyle?: Sequenzy.UpdateCompaniesRequestFooterStyle;
|
|
29
31
|
/** Enable or disable forwarding captured replies to the configured mailbox. */
|
|
30
32
|
forwardReplies?: boolean;
|
|
31
33
|
founderName?: string | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Footer style for new AI-designed emails: `auto` (fits the brand), `classic`, `mono`, `band` or `editorial`. Kept in the stored footer theme, alongside its other settings. Existing emails keep their footers. Other values return 400. */
|
|
2
|
+
export declare const UpdateCompaniesRequestFooterStyle: {
|
|
3
|
+
readonly Auto: "auto";
|
|
4
|
+
readonly Classic: "classic";
|
|
5
|
+
readonly Mono: "mono";
|
|
6
|
+
readonly Band: "band";
|
|
7
|
+
readonly Editorial: "editorial";
|
|
8
|
+
};
|
|
9
|
+
export type UpdateCompaniesRequestFooterStyle = (typeof UpdateCompaniesRequestFooterStyle)[keyof typeof UpdateCompaniesRequestFooterStyle];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.UpdateCompaniesRequestFooterStyle = void 0;
|
|
5
|
+
/** Footer style for new AI-designed emails: `auto` (fits the brand), `classic`, `mono`, `band` or `editorial`. Kept in the stored footer theme, alongside its other settings. Existing emails keep their footers. Other values return 400. */
|
|
6
|
+
exports.UpdateCompaniesRequestFooterStyle = {
|
|
7
|
+
Auto: "auto",
|
|
8
|
+
Classic: "classic",
|
|
9
|
+
Mono: "mono",
|
|
10
|
+
Band: "band",
|
|
11
|
+
Editorial: "editorial",
|
|
12
|
+
};
|
|
@@ -12,5 +12,6 @@ export * from "./UpdateCompaniesRequestEmailThemeColors.js";
|
|
|
12
12
|
export * from "./UpdateCompaniesRequestEmailThemeLayout.js";
|
|
13
13
|
export * from "./UpdateCompaniesRequestEmailThemePresetId.js";
|
|
14
14
|
export * from "./UpdateCompaniesRequestEmailThemeTypography.js";
|
|
15
|
+
export * from "./UpdateCompaniesRequestFooterStyle.js";
|
|
15
16
|
export * from "./UpdateCompaniesRequestReplyTrackingDomainMode.js";
|
|
16
17
|
export * from "./UpdateCompaniesResponse.js";
|
|
@@ -28,5 +28,6 @@ __exportStar(require("./UpdateCompaniesRequestEmailThemeColors.js"), exports);
|
|
|
28
28
|
__exportStar(require("./UpdateCompaniesRequestEmailThemeLayout.js"), exports);
|
|
29
29
|
__exportStar(require("./UpdateCompaniesRequestEmailThemePresetId.js"), exports);
|
|
30
30
|
__exportStar(require("./UpdateCompaniesRequestEmailThemeTypography.js"), exports);
|
|
31
|
+
__exportStar(require("./UpdateCompaniesRequestFooterStyle.js"), exports);
|
|
31
32
|
__exportStar(require("./UpdateCompaniesRequestReplyTrackingDomainMode.js"), exports);
|
|
32
33
|
__exportStar(require("./UpdateCompaniesResponse.js"), exports);
|
|
@@ -72,6 +72,21 @@ export declare class InAppClient {
|
|
|
72
72
|
*/
|
|
73
73
|
listInAppMessages(request?: Sequenzy.ListInAppMessagesRequest, requestOptions?: InAppClient.RequestOptions): core.HttpResponsePromise<Sequenzy.ListInAppMessagesResponse>;
|
|
74
74
|
private __listInAppMessages;
|
|
75
|
+
/**
|
|
76
|
+
* Built-in starting points for in_app sequence steps. Each config is a complete step without a label; link buttons have no url until you add one. Requires the sequences:read scope.
|
|
77
|
+
*
|
|
78
|
+
* @param {InAppClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link Sequenzy.UnauthorizedError}
|
|
81
|
+
* @throws {@link Sequenzy.ForbiddenError}
|
|
82
|
+
* @throws {@link errors.SequenzyError}
|
|
83
|
+
* @throws {@link errors.SequenzyTimeoutError}
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* await client.inApp.listInAppTemplates()
|
|
87
|
+
*/
|
|
88
|
+
listInAppTemplates(requestOptions?: InAppClient.RequestOptions): core.HttpResponsePromise<Sequenzy.ListInAppTemplatesResponse>;
|
|
89
|
+
private __listInAppTemplates;
|
|
75
90
|
/**
|
|
76
91
|
* Records that the app displayed, clicked, dismissed or read an item. The first report of each type sets its timestamp; repeats change nothing except clickCount, and recorded is false. Clicks, dismissals and reads also mark the item displayed. Messages leave the open feed once displayed, clicked or dismissed; cards once dismissed. Requires the subscribers:write scope.
|
|
77
92
|
*
|
|
@@ -94,4 +109,25 @@ export declare class InAppClient {
|
|
|
94
109
|
*/
|
|
95
110
|
recordInAppEvent(request: Sequenzy.RecordInAppEventRequest, requestOptions?: InAppClient.RequestOptions): core.HttpResponsePromise<Sequenzy.RecordInAppEventResponse>;
|
|
96
111
|
private __recordInAppEvent;
|
|
112
|
+
/**
|
|
113
|
+
* Writes an in-app message's eyebrow, title, message and button labels with AI from a brief. Nothing is saved. Requires the sequences:write scope; limited to 20 requests a minute per workspace.
|
|
114
|
+
*
|
|
115
|
+
* @param {Sequenzy.WriteInAppCopyRequest} request
|
|
116
|
+
* @param {InAppClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
117
|
+
*
|
|
118
|
+
* @throws {@link Sequenzy.UnauthorizedError}
|
|
119
|
+
* @throws {@link Sequenzy.ForbiddenError}
|
|
120
|
+
* @throws {@link Sequenzy.UnprocessableEntityError}
|
|
121
|
+
* @throws {@link Sequenzy.TooManyRequestsError}
|
|
122
|
+
* @throws {@link Sequenzy.InternalServerError}
|
|
123
|
+
* @throws {@link errors.SequenzyError}
|
|
124
|
+
* @throws {@link errors.SequenzyTimeoutError}
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* await client.inApp.writeInAppCopy({
|
|
128
|
+
* brief: "brief"
|
|
129
|
+
* })
|
|
130
|
+
*/
|
|
131
|
+
writeInAppCopy(request: Sequenzy.WriteInAppCopyRequest, requestOptions?: InAppClient.RequestOptions): core.HttpResponsePromise<Sequenzy.WriteInAppCopyResponse>;
|
|
132
|
+
private __writeInAppCopy;
|
|
97
133
|
}
|
|
@@ -274,6 +274,66 @@ class InAppClient {
|
|
|
274
274
|
}
|
|
275
275
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/in-app/messages");
|
|
276
276
|
}
|
|
277
|
+
/**
|
|
278
|
+
* Built-in starting points for in_app sequence steps. Each config is a complete step without a label; link buttons have no url until you add one. Requires the sequences:read scope.
|
|
279
|
+
*
|
|
280
|
+
* @param {InAppClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
281
|
+
*
|
|
282
|
+
* @throws {@link Sequenzy.UnauthorizedError}
|
|
283
|
+
* @throws {@link Sequenzy.ForbiddenError}
|
|
284
|
+
* @throws {@link errors.SequenzyError}
|
|
285
|
+
* @throws {@link errors.SequenzyTimeoutError}
|
|
286
|
+
*
|
|
287
|
+
* @example
|
|
288
|
+
* await client.inApp.listInAppTemplates()
|
|
289
|
+
*/
|
|
290
|
+
listInAppTemplates(requestOptions) {
|
|
291
|
+
return core.HttpResponsePromise.fromPromise(this.__listInAppTemplates(requestOptions));
|
|
292
|
+
}
|
|
293
|
+
async __listInAppTemplates(requestOptions) {
|
|
294
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
295
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
296
|
+
const _response = await core.fetcher({
|
|
297
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
298
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
299
|
+
environments.SequenzyEnvironment.Default, "in-app/templates"),
|
|
300
|
+
method: "GET",
|
|
301
|
+
headers: _headers,
|
|
302
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
303
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
304
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
305
|
+
abortSignal: requestOptions?.abortSignal,
|
|
306
|
+
fetchFn: this._options?.fetch,
|
|
307
|
+
logging: this._options.logging,
|
|
308
|
+
});
|
|
309
|
+
if (_response.ok) {
|
|
310
|
+
return {
|
|
311
|
+
data: serializers.ListInAppTemplatesResponse.parseOrThrow(_response.body, {
|
|
312
|
+
unrecognizedObjectKeys: "passthrough",
|
|
313
|
+
allowUnrecognizedUnionMembers: true,
|
|
314
|
+
allowUnrecognizedEnumValues: true,
|
|
315
|
+
skipValidation: true,
|
|
316
|
+
breadcrumbsPrefix: ["response"],
|
|
317
|
+
}),
|
|
318
|
+
rawResponse: _response.rawResponse,
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
if (_response.error.reason === "status-code") {
|
|
322
|
+
switch (_response.error.statusCode) {
|
|
323
|
+
case 401:
|
|
324
|
+
throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
325
|
+
case 403:
|
|
326
|
+
throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
327
|
+
default:
|
|
328
|
+
throw new errors.SequenzyError({
|
|
329
|
+
statusCode: _response.error.statusCode,
|
|
330
|
+
body: _response.error.body,
|
|
331
|
+
rawResponse: _response.rawResponse,
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/in-app/templates");
|
|
336
|
+
}
|
|
277
337
|
/**
|
|
278
338
|
* Records that the app displayed, clicked, dismissed or read an item. The first report of each type sets its timestamp; repeats change nothing except clickCount, and recorded is false. Clicks, dismissals and reads also mark the item displayed. Messages leave the open feed once displayed, clicked or dismissed; cards once dismissed. Requires the subscribers:write scope.
|
|
279
339
|
*
|
|
@@ -354,5 +414,83 @@ class InAppClient {
|
|
|
354
414
|
}
|
|
355
415
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/in-app/messages/{messageId}/events");
|
|
356
416
|
}
|
|
417
|
+
/**
|
|
418
|
+
* Writes an in-app message's eyebrow, title, message and button labels with AI from a brief. Nothing is saved. Requires the sequences:write scope; limited to 20 requests a minute per workspace.
|
|
419
|
+
*
|
|
420
|
+
* @param {Sequenzy.WriteInAppCopyRequest} request
|
|
421
|
+
* @param {InAppClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
422
|
+
*
|
|
423
|
+
* @throws {@link Sequenzy.UnauthorizedError}
|
|
424
|
+
* @throws {@link Sequenzy.ForbiddenError}
|
|
425
|
+
* @throws {@link Sequenzy.UnprocessableEntityError}
|
|
426
|
+
* @throws {@link Sequenzy.TooManyRequestsError}
|
|
427
|
+
* @throws {@link Sequenzy.InternalServerError}
|
|
428
|
+
* @throws {@link errors.SequenzyError}
|
|
429
|
+
* @throws {@link errors.SequenzyTimeoutError}
|
|
430
|
+
*
|
|
431
|
+
* @example
|
|
432
|
+
* await client.inApp.writeInAppCopy({
|
|
433
|
+
* brief: "brief"
|
|
434
|
+
* })
|
|
435
|
+
*/
|
|
436
|
+
writeInAppCopy(request, requestOptions) {
|
|
437
|
+
return core.HttpResponsePromise.fromPromise(this.__writeInAppCopy(request, requestOptions));
|
|
438
|
+
}
|
|
439
|
+
async __writeInAppCopy(request, requestOptions) {
|
|
440
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
441
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
442
|
+
const _response = await core.fetcher({
|
|
443
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
444
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
445
|
+
environments.SequenzyEnvironment.Default, "in-app/copy"),
|
|
446
|
+
method: "POST",
|
|
447
|
+
headers: _headers,
|
|
448
|
+
contentType: "application/json",
|
|
449
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
450
|
+
requestType: "json",
|
|
451
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(serializers.WriteInAppCopyRequest.jsonOrThrow(request, {
|
|
452
|
+
unrecognizedObjectKeys: "strip",
|
|
453
|
+
omitUndefined: true,
|
|
454
|
+
}), requestOptions?.additionalBodyParameters),
|
|
455
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
456
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
457
|
+
abortSignal: requestOptions?.abortSignal,
|
|
458
|
+
fetchFn: this._options?.fetch,
|
|
459
|
+
logging: this._options.logging,
|
|
460
|
+
});
|
|
461
|
+
if (_response.ok) {
|
|
462
|
+
return {
|
|
463
|
+
data: serializers.WriteInAppCopyResponse.parseOrThrow(_response.body, {
|
|
464
|
+
unrecognizedObjectKeys: "passthrough",
|
|
465
|
+
allowUnrecognizedUnionMembers: true,
|
|
466
|
+
allowUnrecognizedEnumValues: true,
|
|
467
|
+
skipValidation: true,
|
|
468
|
+
breadcrumbsPrefix: ["response"],
|
|
469
|
+
}),
|
|
470
|
+
rawResponse: _response.rawResponse,
|
|
471
|
+
};
|
|
472
|
+
}
|
|
473
|
+
if (_response.error.reason === "status-code") {
|
|
474
|
+
switch (_response.error.statusCode) {
|
|
475
|
+
case 401:
|
|
476
|
+
throw new Sequenzy.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
477
|
+
case 403:
|
|
478
|
+
throw new Sequenzy.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
479
|
+
case 422:
|
|
480
|
+
throw new Sequenzy.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
481
|
+
case 429:
|
|
482
|
+
throw new Sequenzy.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
483
|
+
case 500:
|
|
484
|
+
throw new Sequenzy.InternalServerError(_response.error.body, _response.rawResponse);
|
|
485
|
+
default:
|
|
486
|
+
throw new errors.SequenzyError({
|
|
487
|
+
statusCode: _response.error.statusCode,
|
|
488
|
+
body: _response.error.body,
|
|
489
|
+
rawResponse: _response.rawResponse,
|
|
490
|
+
});
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/in-app/copy");
|
|
494
|
+
}
|
|
357
495
|
}
|
|
358
496
|
exports.InAppClient = InAppClient;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as Sequenzy from "../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* brief: "brief"
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface WriteInAppCopyRequest {
|
|
9
|
+
brief: string;
|
|
10
|
+
format?: Sequenzy.WriteInAppCopyRequestFormat;
|
|
11
|
+
hasImage?: boolean;
|
|
12
|
+
kind?: Sequenzy.WriteInAppCopyRequestKind;
|
|
13
|
+
}
|
|
@@ -2,3 +2,4 @@ export type { DeleteInAppMessageRequest } from "./DeleteInAppMessageRequest.js";
|
|
|
2
2
|
export type { GetInAppStepStatsRequest } from "./GetInAppStepStatsRequest.js";
|
|
3
3
|
export type { ListInAppMessagesRequest } from "./ListInAppMessagesRequest.js";
|
|
4
4
|
export type { RecordInAppEventRequest } from "./RecordInAppEventRequest.js";
|
|
5
|
+
export type { WriteInAppCopyRequest } from "./WriteInAppCopyRequest.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Sequenzy from "../../../index.js";
|
|
2
|
+
export interface ListInAppTemplatesResponseTemplatesItem {
|
|
3
|
+
category?: Sequenzy.ListInAppTemplatesResponseTemplatesItemCategory;
|
|
4
|
+
/** An in_app step config without a label. */
|
|
5
|
+
config?: Record<string, unknown>;
|
|
6
|
+
description?: string;
|
|
7
|
+
id?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
}
|
package/dist/cjs/api/resources/inApp/types/ListInAppTemplatesResponseTemplatesItemCategory.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const ListInAppTemplatesResponseTemplatesItemCategory: {
|
|
2
|
+
readonly Conversion: "Conversion";
|
|
3
|
+
readonly Onboarding: "Onboarding";
|
|
4
|
+
readonly Announcement: "Announcement";
|
|
5
|
+
readonly Engagement: "Engagement";
|
|
6
|
+
};
|
|
7
|
+
export type ListInAppTemplatesResponseTemplatesItemCategory = (typeof ListInAppTemplatesResponseTemplatesItemCategory)[keyof typeof ListInAppTemplatesResponseTemplatesItemCategory];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ListInAppTemplatesResponseTemplatesItemCategory = void 0;
|
|
5
|
+
exports.ListInAppTemplatesResponseTemplatesItemCategory = {
|
|
6
|
+
Conversion: "Conversion",
|
|
7
|
+
Onboarding: "Onboarding",
|
|
8
|
+
Announcement: "Announcement",
|
|
9
|
+
Engagement: "Engagement",
|
|
10
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const WriteInAppCopyRequestFormat: {
|
|
2
|
+
readonly Modal: "modal";
|
|
3
|
+
readonly Banner: "banner";
|
|
4
|
+
readonly Fullscreen: "fullscreen";
|
|
5
|
+
};
|
|
6
|
+
export type WriteInAppCopyRequestFormat = (typeof WriteInAppCopyRequestFormat)[keyof typeof WriteInAppCopyRequestFormat];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.WriteInAppCopyRequestFormat = void 0;
|
|
5
|
+
exports.WriteInAppCopyRequestFormat = {
|
|
6
|
+
Modal: "modal",
|
|
7
|
+
Banner: "banner",
|
|
8
|
+
Fullscreen: "fullscreen",
|
|
9
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.WriteInAppCopyRequestKind = void 0;
|
|
5
|
+
exports.WriteInAppCopyRequestKind = {
|
|
6
|
+
Message: "message",
|
|
7
|
+
Card: "card",
|
|
8
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const WriteInAppCopyResponseCopyButtonsItemAction: {
|
|
2
|
+
readonly OpenUrl: "open_url";
|
|
3
|
+
readonly Dismiss: "dismiss";
|
|
4
|
+
};
|
|
5
|
+
export type WriteInAppCopyResponseCopyButtonsItemAction = (typeof WriteInAppCopyResponseCopyButtonsItemAction)[keyof typeof WriteInAppCopyResponseCopyButtonsItemAction];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.WriteInAppCopyResponseCopyButtonsItemAction = void 0;
|
|
5
|
+
exports.WriteInAppCopyResponseCopyButtonsItemAction = {
|
|
6
|
+
OpenUrl: "open_url",
|
|
7
|
+
Dismiss: "dismiss",
|
|
8
|
+
};
|
|
@@ -5,5 +5,14 @@ export * from "./ListInAppMessagesRequestKind.js";
|
|
|
5
5
|
export * from "./ListInAppMessagesRequestStatus.js";
|
|
6
6
|
export * from "./ListInAppMessagesResponse.js";
|
|
7
7
|
export * from "./ListInAppMessagesResponseStatus.js";
|
|
8
|
+
export * from "./ListInAppTemplatesResponse.js";
|
|
9
|
+
export * from "./ListInAppTemplatesResponseTemplatesItem.js";
|
|
10
|
+
export * from "./ListInAppTemplatesResponseTemplatesItemCategory.js";
|
|
8
11
|
export * from "./RecordInAppEventRequestType.js";
|
|
9
12
|
export * from "./RecordInAppEventResponse.js";
|
|
13
|
+
export * from "./WriteInAppCopyRequestFormat.js";
|
|
14
|
+
export * from "./WriteInAppCopyRequestKind.js";
|
|
15
|
+
export * from "./WriteInAppCopyResponse.js";
|
|
16
|
+
export * from "./WriteInAppCopyResponseCopy.js";
|
|
17
|
+
export * from "./WriteInAppCopyResponseCopyButtonsItem.js";
|
|
18
|
+
export * from "./WriteInAppCopyResponseCopyButtonsItemAction.js";
|
|
@@ -21,5 +21,14 @@ __exportStar(require("./ListInAppMessagesRequestKind.js"), exports);
|
|
|
21
21
|
__exportStar(require("./ListInAppMessagesRequestStatus.js"), exports);
|
|
22
22
|
__exportStar(require("./ListInAppMessagesResponse.js"), exports);
|
|
23
23
|
__exportStar(require("./ListInAppMessagesResponseStatus.js"), exports);
|
|
24
|
+
__exportStar(require("./ListInAppTemplatesResponse.js"), exports);
|
|
25
|
+
__exportStar(require("./ListInAppTemplatesResponseTemplatesItem.js"), exports);
|
|
26
|
+
__exportStar(require("./ListInAppTemplatesResponseTemplatesItemCategory.js"), exports);
|
|
24
27
|
__exportStar(require("./RecordInAppEventRequestType.js"), exports);
|
|
25
28
|
__exportStar(require("./RecordInAppEventResponse.js"), exports);
|
|
29
|
+
__exportStar(require("./WriteInAppCopyRequestFormat.js"), exports);
|
|
30
|
+
__exportStar(require("./WriteInAppCopyRequestKind.js"), exports);
|
|
31
|
+
__exportStar(require("./WriteInAppCopyResponse.js"), exports);
|
|
32
|
+
__exportStar(require("./WriteInAppCopyResponseCopy.js"), exports);
|
|
33
|
+
__exportStar(require("./WriteInAppCopyResponseCopyButtonsItem.js"), exports);
|
|
34
|
+
__exportStar(require("./WriteInAppCopyResponseCopyButtonsItemAction.js"), exports);
|
|
@@ -126,6 +126,31 @@ export declare class PushClient {
|
|
|
126
126
|
*/
|
|
127
127
|
duplicatePushCampaign(request: Sequenzy.DuplicatePushCampaignRequest, requestOptions?: PushClient.RequestOptions): core.HttpResponsePromise<Sequenzy.DuplicatePushCampaignResponse>;
|
|
128
128
|
private __duplicatePushCampaign;
|
|
129
|
+
/**
|
|
130
|
+
* Ends the contact's activity on every device running it. Tokens are marked ended as APNs accepts the push, so an end that failed can be sent again. Without dismissalDate iOS keeps an ended activity on the Lock Screen for up to four hours. Requires the transactional:send scope.
|
|
131
|
+
*
|
|
132
|
+
* @param {Sequenzy.EndLiveActivityRequest} request
|
|
133
|
+
* @param {PushClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
134
|
+
*
|
|
135
|
+
* @throws {@link Sequenzy.BadRequestError}
|
|
136
|
+
* @throws {@link Sequenzy.UnauthorizedError}
|
|
137
|
+
* @throws {@link Sequenzy.ForbiddenError}
|
|
138
|
+
* @throws {@link Sequenzy.NotFoundError}
|
|
139
|
+
* @throws {@link Sequenzy.UnprocessableEntityError}
|
|
140
|
+
* @throws {@link Sequenzy.InternalServerError}
|
|
141
|
+
* @throws {@link errors.SequenzyError}
|
|
142
|
+
* @throws {@link errors.SequenzyTimeoutError}
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
* await client.push.endLiveActivity({
|
|
146
|
+
* activityId: "order-1234",
|
|
147
|
+
* contentState: {
|
|
148
|
+
* "key": "value"
|
|
149
|
+
* }
|
|
150
|
+
* })
|
|
151
|
+
*/
|
|
152
|
+
endLiveActivity(request: Sequenzy.EndLiveActivityRequest, requestOptions?: PushClient.RequestOptions): core.HttpResponsePromise<Sequenzy.LiveActivityDispatch>;
|
|
153
|
+
private __endLiveActivity;
|
|
129
154
|
/**
|
|
130
155
|
* Counts the contacts in an audience (audienceCount) and those with an active device on the selected platforms (eligibleCount). Email status does not affect push eligibility. Requires the campaigns:read scope.
|
|
131
156
|
*
|
|
@@ -206,6 +231,24 @@ export declare class PushClient {
|
|
|
206
231
|
*/
|
|
207
232
|
getPushSettings(requestOptions?: PushClient.RequestOptions): core.HttpResponsePromise<Sequenzy.GetPushSettingsResponse>;
|
|
208
233
|
private __getPushSettings;
|
|
234
|
+
/**
|
|
235
|
+
* Lists ActivityKit tokens the Sequenzy iOS SDK reported, with a summary per activity type (for the contact when email or subscriberId is given). push_to_start tokens can start an activity of their type; update tokens address one running activity. Tokens are masked. Requires the subscribers:read scope.
|
|
236
|
+
*
|
|
237
|
+
* @param {Sequenzy.ListLiveActivitiesRequest} request
|
|
238
|
+
* @param {PushClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
239
|
+
*
|
|
240
|
+
* @throws {@link Sequenzy.UnauthorizedError}
|
|
241
|
+
* @throws {@link Sequenzy.ForbiddenError}
|
|
242
|
+
* @throws {@link Sequenzy.NotFoundError}
|
|
243
|
+
* @throws {@link Sequenzy.InternalServerError}
|
|
244
|
+
* @throws {@link errors.SequenzyError}
|
|
245
|
+
* @throws {@link errors.SequenzyTimeoutError}
|
|
246
|
+
*
|
|
247
|
+
* @example
|
|
248
|
+
* await client.push.listLiveActivities()
|
|
249
|
+
*/
|
|
250
|
+
listLiveActivities(request?: Sequenzy.ListLiveActivitiesRequest, requestOptions?: PushClient.RequestOptions): core.HttpResponsePromise<Sequenzy.ListLiveActivitiesResponse>;
|
|
251
|
+
private __listLiveActivities;
|
|
209
252
|
/**
|
|
210
253
|
* Lists push campaigns, newest first. Push campaigns also appear in GET /campaigns with type push. Requires the campaigns:read scope.
|
|
211
254
|
*
|
|
@@ -350,6 +393,34 @@ export declare class PushClient {
|
|
|
350
393
|
*/
|
|
351
394
|
setFcmCredentials(request: Sequenzy.SetFcmCredentialsRequest, requestOptions?: PushClient.RequestOptions): core.HttpResponsePromise<Sequenzy.SetFcmCredentialsResponse>;
|
|
352
395
|
private __setFcmCredentials;
|
|
396
|
+
/**
|
|
397
|
+
* Starts an iOS Live Activity remotely (push-to-start, iOS 17.2+) on every device of one contact that reported a push-to-start token for activityType. Sequenzy adds sequenzy.activityId to the attributes so the SDK can report the new activity's update token under your id. Returns 202 with tokenCount 0, sending nothing, when no device can start it. Calling it again starts another copy. Requires the transactional:send scope.
|
|
398
|
+
*
|
|
399
|
+
* @param {Sequenzy.StartLiveActivityRequest} request
|
|
400
|
+
* @param {PushClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
401
|
+
*
|
|
402
|
+
* @throws {@link Sequenzy.BadRequestError}
|
|
403
|
+
* @throws {@link Sequenzy.UnauthorizedError}
|
|
404
|
+
* @throws {@link Sequenzy.ForbiddenError}
|
|
405
|
+
* @throws {@link Sequenzy.NotFoundError}
|
|
406
|
+
* @throws {@link Sequenzy.UnprocessableEntityError}
|
|
407
|
+
* @throws {@link Sequenzy.InternalServerError}
|
|
408
|
+
* @throws {@link errors.SequenzyError}
|
|
409
|
+
* @throws {@link errors.SequenzyTimeoutError}
|
|
410
|
+
*
|
|
411
|
+
* @example
|
|
412
|
+
* await client.push.startLiveActivity({
|
|
413
|
+
* activityId: "order-1234",
|
|
414
|
+
* activityType: "DeliveryAttributes",
|
|
415
|
+
* alert: {},
|
|
416
|
+
* contentState: {
|
|
417
|
+
* "minutesAway": 8,
|
|
418
|
+
* "status": "out_for_delivery"
|
|
419
|
+
* }
|
|
420
|
+
* })
|
|
421
|
+
*/
|
|
422
|
+
startLiveActivity(request: Sequenzy.StartLiveActivityRequest, requestOptions?: PushClient.RequestOptions): core.HttpResponsePromise<Sequenzy.LiveActivityDispatch>;
|
|
423
|
+
private __startLiveActivity;
|
|
353
424
|
/**
|
|
354
425
|
* Moves a scheduled push campaign back to draft. The queued send is discarded. Requires the campaigns:send scope.
|
|
355
426
|
*
|
|
@@ -372,6 +443,32 @@ export declare class PushClient {
|
|
|
372
443
|
*/
|
|
373
444
|
unschedulePushCampaign(request: Sequenzy.UnschedulePushCampaignRequest, requestOptions?: PushClient.RequestOptions): core.HttpResponsePromise<Sequenzy.UnschedulePushCampaignResponse>;
|
|
374
445
|
private __unschedulePushCampaign;
|
|
446
|
+
/**
|
|
447
|
+
* Sends new content state to every running copy of the contact's activity (one per device that reported an update token). Each request carries a fixed timestamp, so a retried or late delivery never replaces newer content. Returns tokenCount 0 when no running copy has reported a token. Requires the transactional:send scope.
|
|
448
|
+
*
|
|
449
|
+
* @param {Sequenzy.UpdateLiveActivityRequest} request
|
|
450
|
+
* @param {PushClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
451
|
+
*
|
|
452
|
+
* @throws {@link Sequenzy.BadRequestError}
|
|
453
|
+
* @throws {@link Sequenzy.UnauthorizedError}
|
|
454
|
+
* @throws {@link Sequenzy.ForbiddenError}
|
|
455
|
+
* @throws {@link Sequenzy.NotFoundError}
|
|
456
|
+
* @throws {@link Sequenzy.UnprocessableEntityError}
|
|
457
|
+
* @throws {@link Sequenzy.InternalServerError}
|
|
458
|
+
* @throws {@link errors.SequenzyError}
|
|
459
|
+
* @throws {@link errors.SequenzyTimeoutError}
|
|
460
|
+
*
|
|
461
|
+
* @example
|
|
462
|
+
* await client.push.updateLiveActivity({
|
|
463
|
+
* activityId: "order-1234",
|
|
464
|
+
* contentState: {
|
|
465
|
+
* "minutesAway": 8,
|
|
466
|
+
* "status": "out_for_delivery"
|
|
467
|
+
* }
|
|
468
|
+
* })
|
|
469
|
+
*/
|
|
470
|
+
updateLiveActivity(request: Sequenzy.UpdateLiveActivityRequest, requestOptions?: PushClient.RequestOptions): core.HttpResponsePromise<Sequenzy.LiveActivityDispatch>;
|
|
471
|
+
private __updateLiveActivity;
|
|
375
472
|
/**
|
|
376
473
|
* Updates a draft or scheduled push campaign. Only the fields you pass change; content fields merge over the stored content. A scheduled campaign keeps its schedule and cannot be cleared to empty content. Requires the campaigns:write scope.
|
|
377
474
|
*
|