samva 0.16.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +9 -1
- package/README.md +57 -1
- package/dist/{rolldown-runtime-D7D4PA-g.js → _virtual/_rolldown/runtime.js} +1 -1
- package/dist/client/client/client.gen.js +174 -0
- package/dist/client/client/utils.gen.js +177 -0
- package/dist/client/client.gen.js +8 -0
- package/dist/client/core/auth.gen.js +12 -0
- package/dist/client/core/bodySerializer.gen.js +6 -0
- package/dist/client/core/params.gen.js +77 -0
- package/dist/client/core/pathSerializer.gen.js +82 -0
- package/dist/client/core/serverSentEvents.gen.js +96 -0
- package/dist/client/core/utils.gen.js +78 -0
- package/dist/client/sdk.gen.d.ts +174 -3
- package/dist/{promises-KrA2nSLg.js → client/sdk.gen.js} +464 -2289
- package/dist/client/types.gen.d.ts +1126 -11
- package/dist/client-attribution.js +9 -0
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +11 -9
- package/dist/effect/api-keys.d.ts +13 -13
- package/dist/effect/api-keys.js +13 -12
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/attachments.js +9 -7
- package/dist/effect/brands.d.ts +7 -7
- package/dist/effect/brands.js +12 -10
- package/dist/effect/campaigns.d.ts +18 -18
- package/dist/effect/campaigns.js +17 -15
- package/dist/effect/categories.d.ts +2 -2
- package/dist/effect/categories.js +95 -1
- package/dist/effect/client.d.ts +1 -1
- package/dist/effect/client.js +4 -5
- package/dist/effect/contact-groups.d.ts +14 -14
- package/dist/effect/contact-groups.js +15 -13
- package/dist/effect/contacts.d.ts +77 -25
- package/dist/effect/contacts.js +27 -22
- package/dist/effect/conversations.d.ts +17 -17
- package/dist/effect/conversations.js +18 -16
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/custom-fields.js +9 -7
- package/dist/effect/email.d.ts +78 -77
- package/dist/effect/email.js +68 -65
- package/dist/effect/errors.d.ts +2 -0
- package/dist/effect/errors.js +3 -0
- package/dist/effect/events.d.ts +121 -0
- package/dist/effect/events.js +17 -0
- package/dist/effect/extension-installations.d.ts +11 -11
- package/dist/effect/extension-installations.js +14 -12
- package/dist/effect/extensions.d.ts +9 -9
- package/dist/effect/extensions.js +10 -8
- package/dist/effect/feedback.d.ts +2 -2
- package/dist/effect/feedback.js +6 -5
- package/dist/effect/generated/analytics.d.ts +715 -0
- package/dist/effect/generated/analytics.js +188 -0
- package/dist/effect/generated/api-keys.d.ts +1627 -0
- package/dist/effect/generated/api-keys.js +249 -0
- package/dist/effect/generated/attachments.d.ts +554 -0
- package/dist/effect/generated/attachments.js +125 -0
- package/dist/effect/generated/brands.d.ts +1118 -0
- package/dist/effect/generated/brands.js +155 -0
- package/dist/effect/generated/campaigns.d.ts +3783 -0
- package/dist/effect/generated/campaigns.js +491 -0
- package/dist/effect/generated/contact-events.d.ts +158 -0
- package/dist/effect/generated/contact-events.js +37 -0
- package/dist/effect/generated/contact-groups.d.ts +1445 -0
- package/dist/effect/generated/contact-groups.js +419 -0
- package/dist/effect/generated/contacts.d.ts +3789 -0
- package/dist/effect/generated/contacts.js +709 -0
- package/dist/effect/generated/conversations.d.ts +2870 -0
- package/dist/effect/generated/conversations.js +461 -0
- package/dist/effect/generated/custom-fields.d.ts +562 -0
- package/dist/effect/generated/custom-fields.js +162 -0
- package/dist/effect/generated/email.d.ts +10622 -0
- package/dist/effect/generated/email.js +2347 -0
- package/dist/effect/generated/events.d.ts +463 -0
- package/dist/effect/generated/events.js +70 -0
- package/dist/effect/generated/extension-installations.d.ts +1786 -0
- package/dist/effect/generated/extension-installations.js +382 -0
- package/dist/effect/generated/extensions.d.ts +927 -0
- package/dist/effect/generated/extensions.js +203 -0
- package/dist/effect/generated/feedback.d.ts +116 -0
- package/dist/effect/generated/feedback.js +43 -0
- package/dist/effect/generated/index.d.ts +61 -0
- package/dist/effect/generated/journeys.d.ts +6135 -0
- package/dist/effect/generated/journeys.js +464 -0
- package/dist/effect/generated/mailboxes.d.ts +13641 -0
- package/dist/effect/generated/mailboxes.js +2312 -0
- package/dist/effect/generated/media.d.ts +741 -0
- package/dist/effect/generated/media.js +181 -0
- package/dist/effect/generated/messages.d.ts +2355 -0
- package/dist/effect/generated/messages.js +671 -0
- package/dist/effect/generated/namespaces.d.ts +654 -0
- package/dist/effect/generated/namespaces.js +135 -0
- package/dist/effect/generated/operations.d.ts +514 -0
- package/dist/effect/generated/operations.js +80 -0
- package/dist/effect/generated/organizations.d.ts +1111 -0
- package/dist/effect/generated/organizations.js +231 -0
- package/dist/effect/generated/scheduled-messages.d.ts +1798 -0
- package/dist/effect/generated/scheduled-messages.js +190 -0
- package/dist/effect/generated/shared.d.ts +3250 -0
- package/dist/effect/generated/shared.js +1053 -0
- package/dist/effect/generated/subscriptions.d.ts +188 -0
- package/dist/effect/generated/subscriptions.js +61 -0
- package/dist/effect/generated/templates.d.ts +8177 -0
- package/dist/effect/generated/templates.js +2214 -0
- package/dist/effect/generated/unsubscribe-groups.d.ts +1153 -0
- package/dist/effect/generated/unsubscribe-groups.js +267 -0
- package/dist/effect/generated/webhooks.d.ts +1697 -0
- package/dist/effect/generated/webhooks.js +500 -0
- package/dist/effect/generated/whoami.d.ts +291 -0
- package/dist/effect/generated/whoami.js +54 -0
- package/dist/effect/generated-metadata.d.ts +1627 -0
- package/dist/effect/generated-metadata.js +919 -0
- package/dist/effect/index.d.ts +3 -2
- package/dist/effect/index.js +33 -31
- package/dist/effect/internal/client.d.ts +10 -7
- package/dist/effect/internal/client.js +69 -0
- package/dist/effect/internal/email-sender.d.ts +17 -0
- package/dist/effect/internal/email-sender.js +21 -0
- package/dist/effect/internal/mailbox-events.js +33 -0
- package/dist/effect/internal/operation.d.ts +12 -72
- package/dist/effect/internal/operation.js +116 -0
- package/dist/effect/internal/send.d.ts +60 -0
- package/dist/effect/internal/send.js +56 -0
- package/dist/effect/journeys.d.ts +2153 -0
- package/dist/effect/journeys.js +39 -0
- package/dist/effect/mailboxes.d.ts +80 -80
- package/dist/effect/mailboxes.js +135 -3
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +10 -8
- package/dist/effect/messages.d.ts +16 -16
- package/dist/effect/messages.js +15 -12
- package/dist/effect/namespaces.d.ts +7 -7
- package/dist/effect/namespaces.js +10 -8
- package/dist/effect/operations.d.ts +5 -5
- package/dist/effect/operations.js +8 -6
- package/dist/effect/organizations.d.ts +7 -7
- package/dist/effect/organizations.js +12 -10
- package/dist/effect/pagination.js +39 -0
- package/dist/effect/retry.js +3 -3
- package/dist/effect/runtime.js +25 -0
- package/dist/effect/scheduled-messages.d.ts +7 -7
- package/dist/effect/scheduled-messages.js +10 -8
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/subscriptions.js +5 -4
- package/dist/effect/templates.d.ts +40 -40
- package/dist/effect/templates.js +39 -37
- package/dist/effect/unsubscribe-groups.d.ts +11 -11
- package/dist/effect/unsubscribe-groups.js +14 -12
- package/dist/effect/webhooks.d.ts +23 -23
- package/dist/effect/webhooks.js +16 -14
- package/dist/effect/whoami.d.ts +1 -1
- package/dist/effect/whoami.js +5 -4
- package/dist/index.js +4 -3
- package/dist/{inline-attachments-Cegg6tTF.js → inline-attachments.js} +13 -7
- package/dist/{mailbox-events-VKR4f3qq.js → mailbox-events.js} +2 -2
- package/dist/{normalize-B79uJIeb.js → normalize.js} +2 -2
- package/dist/package.js +6 -0
- package/dist/promises/errors.gen.js +1340 -0
- package/dist/promises/index.d.ts +7 -3
- package/dist/promises/index.js +288 -3
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +85 -0
- package/dist/{operation-BTXjPrwf.js → service-map.js} +58 -219
- package/package.json +17 -3
- package/dist/categories-DV51kr2H.js +0 -187
- package/dist/client-BMUew5Wp.js +0 -13794
- package/dist/effect/generated.d.ts +0 -64004
- package/dist/mailboxes-Thp5z0oX.js +0 -161
|
@@ -1210,7 +1210,7 @@ export type WebhookEndpoint = {
|
|
|
1210
1210
|
id: WebhookEndpointId;
|
|
1211
1211
|
name: string;
|
|
1212
1212
|
url: string;
|
|
1213
|
-
eventTypes: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded">;
|
|
1213
|
+
eventTypes: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "journey.webhook">;
|
|
1214
1214
|
channels: Array<"email"> | null;
|
|
1215
1215
|
mailboxIds: Array<MailboxId> | null;
|
|
1216
1216
|
namespaceId: NamespaceId | null;
|
|
@@ -1224,7 +1224,7 @@ export type WebhookEndpoint = {
|
|
|
1224
1224
|
export type UpdateWebhookPayload = {
|
|
1225
1225
|
name?: string | null | undefined;
|
|
1226
1226
|
url?: string | null | undefined;
|
|
1227
|
-
eventTypes?: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded"> | null | undefined;
|
|
1227
|
+
eventTypes?: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "journey.webhook"> | null | undefined;
|
|
1228
1228
|
channels?: Array<"email"> | null | null | undefined;
|
|
1229
1229
|
mailboxIds?: [MailboxId, ...Array<MailboxId>] | null | null | undefined;
|
|
1230
1230
|
namespaceId?: NamespaceId | null | null | undefined;
|
|
@@ -1241,7 +1241,7 @@ export type WebhookEndpointListItem = {
|
|
|
1241
1241
|
id: WebhookEndpointId;
|
|
1242
1242
|
name: string;
|
|
1243
1243
|
url: string;
|
|
1244
|
-
eventTypes: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded">;
|
|
1244
|
+
eventTypes: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "journey.webhook">;
|
|
1245
1245
|
channels: Array<"email"> | null;
|
|
1246
1246
|
mailboxIds: Array<MailboxId> | null;
|
|
1247
1247
|
namespaceId: NamespaceId | null;
|
|
@@ -1263,7 +1263,7 @@ export type WebhookDeliveryCounts = {
|
|
|
1263
1263
|
export type CreateWebhookPayload = {
|
|
1264
1264
|
name: string;
|
|
1265
1265
|
url: string;
|
|
1266
|
-
eventTypes: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded">;
|
|
1266
|
+
eventTypes: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "journey.webhook">;
|
|
1267
1267
|
channels?: Array<"email"> | null | undefined;
|
|
1268
1268
|
mailboxIds?: [MailboxId, ...Array<MailboxId>] | null | undefined;
|
|
1269
1269
|
namespaceId?: NamespaceId | null | undefined;
|
|
@@ -1657,6 +1657,317 @@ export type SubscribePayload = {
|
|
|
1657
1657
|
consentIp?: string | null | undefined;
|
|
1658
1658
|
consentSource?: string | null | undefined;
|
|
1659
1659
|
};
|
|
1660
|
+
export type JourneyRunDetail = {
|
|
1661
|
+
id: JourneyRunId;
|
|
1662
|
+
journeyId: JourneyId;
|
|
1663
|
+
version: number;
|
|
1664
|
+
contactId: ContactId;
|
|
1665
|
+
status: JourneyRunStatus;
|
|
1666
|
+
exitReason: JourneyRunExitReason | null;
|
|
1667
|
+
failureReason: string | null;
|
|
1668
|
+
currentNodeId: JourneyNodeId | null;
|
|
1669
|
+
trigger: JourneyRunTrigger;
|
|
1670
|
+
enteredAt: string;
|
|
1671
|
+
endedAt: string | null;
|
|
1672
|
+
steps: Array<JourneyRunStep>;
|
|
1673
|
+
};
|
|
1674
|
+
export type JourneyRunStep = {
|
|
1675
|
+
nodeId: JourneyNodeId;
|
|
1676
|
+
type: string;
|
|
1677
|
+
enteredAt: string;
|
|
1678
|
+
completedAt: string | null;
|
|
1679
|
+
outcome: JourneyRunStepOutcome | null;
|
|
1680
|
+
nextNodeId: JourneyNodeId | null;
|
|
1681
|
+
messageId: MessageId | null;
|
|
1682
|
+
error: string | null;
|
|
1683
|
+
};
|
|
1684
|
+
export type JourneyNodeId = string;
|
|
1685
|
+
export type JourneyRunStepOutcome = "completed" | "matched" | "timed_out" | "goal" | "archived" | "failed";
|
|
1686
|
+
export type JourneyRunTrigger = {
|
|
1687
|
+
eventId: string;
|
|
1688
|
+
eventName: string;
|
|
1689
|
+
properties: JsonObject;
|
|
1690
|
+
};
|
|
1691
|
+
export type JsonObject = {
|
|
1692
|
+
[key: string]: JsonValue;
|
|
1693
|
+
};
|
|
1694
|
+
export type JourneyRunExitReason = "completed" | "goal" | "archived";
|
|
1695
|
+
export type JourneyRunStatus = "active" | "paused" | "exited" | "failed";
|
|
1696
|
+
export type JourneyId = string;
|
|
1697
|
+
export type JourneyRunId = string;
|
|
1698
|
+
export type JourneyRunPage = {
|
|
1699
|
+
items: Array<JourneyRun>;
|
|
1700
|
+
nextCursor: string | null;
|
|
1701
|
+
};
|
|
1702
|
+
export type JourneyRun = {
|
|
1703
|
+
id: JourneyRunId;
|
|
1704
|
+
journeyId: JourneyId;
|
|
1705
|
+
version: number;
|
|
1706
|
+
contactId: ContactId;
|
|
1707
|
+
status: JourneyRunStatus;
|
|
1708
|
+
exitReason: JourneyRunExitReason | null;
|
|
1709
|
+
failureReason: string | null;
|
|
1710
|
+
currentNodeId: JourneyNodeId | null;
|
|
1711
|
+
trigger: JourneyRunTrigger;
|
|
1712
|
+
enteredAt: string;
|
|
1713
|
+
endedAt: string | null;
|
|
1714
|
+
};
|
|
1715
|
+
export type JourneyStats = {
|
|
1716
|
+
journeyId: JourneyId;
|
|
1717
|
+
version: number;
|
|
1718
|
+
runs: JourneyRunCounts;
|
|
1719
|
+
nodes: Array<JourneyNodeStats>;
|
|
1720
|
+
};
|
|
1721
|
+
export type JourneyNodeStats = {
|
|
1722
|
+
nodeId: JourneyNodeId;
|
|
1723
|
+
current: number;
|
|
1724
|
+
entered: number;
|
|
1725
|
+
};
|
|
1726
|
+
export type JourneyRunCounts = {
|
|
1727
|
+
active: number;
|
|
1728
|
+
paused: number;
|
|
1729
|
+
exited: number;
|
|
1730
|
+
failed: number;
|
|
1731
|
+
};
|
|
1732
|
+
export type JourneyVersion = {
|
|
1733
|
+
journeyId: JourneyId;
|
|
1734
|
+
version: number;
|
|
1735
|
+
definition: JourneyDefinition;
|
|
1736
|
+
publishedAt: string;
|
|
1737
|
+
};
|
|
1738
|
+
export type JourneyDefinition = {
|
|
1739
|
+
trigger: JourneyTrigger;
|
|
1740
|
+
rootNodeId: JourneyNodeId;
|
|
1741
|
+
nodes: {
|
|
1742
|
+
[key: string]: JourneyNode;
|
|
1743
|
+
};
|
|
1744
|
+
goal?: JourneyGoal | undefined;
|
|
1745
|
+
reentry?: boolean | undefined;
|
|
1746
|
+
};
|
|
1747
|
+
export type JourneyGoal = {
|
|
1748
|
+
eventName: JourneyEventName;
|
|
1749
|
+
};
|
|
1750
|
+
export type JourneyEventName = JourneyCustomEventName | "contact.created" | "contact.tag_added" | "contact.joined_group";
|
|
1751
|
+
export type JourneyCustomEventName = string;
|
|
1752
|
+
export type JourneyNode = JourneySendEmailNode | JourneyWaitNode | JourneyWaitForEventNode | JourneyBranchNode | JourneyUpdateTagsNode | JourneyWebhookNode | JourneyExitNode;
|
|
1753
|
+
export type JourneyExitNode = {
|
|
1754
|
+
type: "exit";
|
|
1755
|
+
config: JourneyEmptyConfig;
|
|
1756
|
+
next: [];
|
|
1757
|
+
};
|
|
1758
|
+
export type JourneyEmptyConfig = {
|
|
1759
|
+
[key: string]: never;
|
|
1760
|
+
};
|
|
1761
|
+
export type JourneyWebhookNode = {
|
|
1762
|
+
type: "webhook";
|
|
1763
|
+
config: JourneyWebhookConfig;
|
|
1764
|
+
next: [JourneyNextEdge];
|
|
1765
|
+
};
|
|
1766
|
+
export type JourneyNextEdge = {
|
|
1767
|
+
nodeId: JourneyNodeId;
|
|
1768
|
+
};
|
|
1769
|
+
export type JourneyWebhookConfig = {
|
|
1770
|
+
data?: JsonObject | undefined;
|
|
1771
|
+
};
|
|
1772
|
+
export type JourneyUpdateTagsNode = {
|
|
1773
|
+
type: "update_tags";
|
|
1774
|
+
config: JourneyUpdateTagsConfig;
|
|
1775
|
+
next: [JourneyNextEdge];
|
|
1776
|
+
};
|
|
1777
|
+
export type JourneyUpdateTagsConfig = {
|
|
1778
|
+
add: Array<string>;
|
|
1779
|
+
remove: Array<string>;
|
|
1780
|
+
};
|
|
1781
|
+
export type JourneyBranchNode = {
|
|
1782
|
+
type: "branch";
|
|
1783
|
+
config: JourneyEmptyConfig;
|
|
1784
|
+
next: Array<JourneyBranchEdge>;
|
|
1785
|
+
};
|
|
1786
|
+
export type JourneyBranchEdge = {
|
|
1787
|
+
nodeId: JourneyNodeId;
|
|
1788
|
+
condition?: JourneyCondition | undefined;
|
|
1789
|
+
};
|
|
1790
|
+
export type JourneyCondition = {
|
|
1791
|
+
match: "all" | "any";
|
|
1792
|
+
predicates: [JourneyPredicate, ...Array<JourneyPredicate>];
|
|
1793
|
+
};
|
|
1794
|
+
export type JourneyPredicate = JourneyTagPredicate | JourneyPropertyPredicate | JourneyCustomFieldPredicate | JourneyEventPredicate;
|
|
1795
|
+
export type JourneyEventPredicate = {
|
|
1796
|
+
type: "event";
|
|
1797
|
+
eventName: JourneyEventName;
|
|
1798
|
+
occurred: boolean;
|
|
1799
|
+
};
|
|
1800
|
+
export type JourneyCustomFieldPredicate = {
|
|
1801
|
+
type: "custom_field";
|
|
1802
|
+
key: string;
|
|
1803
|
+
comparison: JourneyComparison;
|
|
1804
|
+
};
|
|
1805
|
+
export type JourneyComparison = JourneyEqualityComparison | JourneyNumericComparison | JourneyStringComparison | JourneyPresenceComparison;
|
|
1806
|
+
export type JourneyPresenceComparison = {
|
|
1807
|
+
operator: "exists" | "not_exists";
|
|
1808
|
+
};
|
|
1809
|
+
export type JourneyStringComparison = {
|
|
1810
|
+
operator: "contains" | "not_contains" | "starts_with" | "ends_with";
|
|
1811
|
+
value: string;
|
|
1812
|
+
};
|
|
1813
|
+
export type JourneyNumericComparison = {
|
|
1814
|
+
operator: "gt" | "gte" | "lt" | "lte";
|
|
1815
|
+
value: number;
|
|
1816
|
+
};
|
|
1817
|
+
export type JourneyEqualityComparison = {
|
|
1818
|
+
operator: "eq" | "neq";
|
|
1819
|
+
value: string | number | boolean | null;
|
|
1820
|
+
};
|
|
1821
|
+
export type JourneyPropertyPredicate = {
|
|
1822
|
+
type: "property";
|
|
1823
|
+
field: JourneyContactProperty;
|
|
1824
|
+
comparison: JourneyComparison;
|
|
1825
|
+
};
|
|
1826
|
+
export type JourneyContactProperty = "name" | "displayName" | "externalId" | "status" | "profile.firstName" | "profile.lastName" | "profile.company" | "profile.jobTitle" | "profile.source" | "profile.location.country" | "profile.location.state" | "profile.location.city" | "profile.location.timezone";
|
|
1827
|
+
export type JourneyTagPredicate = {
|
|
1828
|
+
type: "tag";
|
|
1829
|
+
tag: string;
|
|
1830
|
+
present: boolean;
|
|
1831
|
+
};
|
|
1832
|
+
export type JourneyWaitForEventNode = {
|
|
1833
|
+
type: "wait_for_event";
|
|
1834
|
+
config: JourneyWaitForEventConfig;
|
|
1835
|
+
next: [JourneyWaitEventEdge, JourneyWaitEventEdge];
|
|
1836
|
+
};
|
|
1837
|
+
export type JourneyWaitEventEdge = {
|
|
1838
|
+
nodeId: JourneyNodeId;
|
|
1839
|
+
outcome: "matched" | "timed_out";
|
|
1840
|
+
};
|
|
1841
|
+
export type JourneyWaitForEventConfig = {
|
|
1842
|
+
eventName: JourneyEventName;
|
|
1843
|
+
timeoutSeconds: number;
|
|
1844
|
+
};
|
|
1845
|
+
export type JourneyWaitNode = {
|
|
1846
|
+
type: "wait";
|
|
1847
|
+
config: JourneyWaitConfig;
|
|
1848
|
+
next: [JourneyNextEdge];
|
|
1849
|
+
};
|
|
1850
|
+
export type JourneyWaitConfig = {
|
|
1851
|
+
durationSeconds: number;
|
|
1852
|
+
};
|
|
1853
|
+
export type JourneySendEmailNode = {
|
|
1854
|
+
type: "send_email";
|
|
1855
|
+
config: JourneySendEmailConfig;
|
|
1856
|
+
next: [JourneyNextEdge];
|
|
1857
|
+
};
|
|
1858
|
+
export type JourneySendEmailConfig = {
|
|
1859
|
+
template: TemplateId | string;
|
|
1860
|
+
senderId?: EmailSenderId | undefined;
|
|
1861
|
+
templateData?: JsonObject | undefined;
|
|
1862
|
+
};
|
|
1863
|
+
export type EmailSenderId = string;
|
|
1864
|
+
export type JourneyTrigger = JourneyCustomEventTrigger | JourneyContactCreatedTrigger | JourneyTagAddedTrigger | JourneyGroupJoinedTrigger;
|
|
1865
|
+
export type JourneyGroupJoinedTrigger = {
|
|
1866
|
+
type: "contact.joined_group";
|
|
1867
|
+
groupId: ContactGroupId;
|
|
1868
|
+
};
|
|
1869
|
+
export type JourneyTagAddedTrigger = {
|
|
1870
|
+
type: "contact.tag_added";
|
|
1871
|
+
tag: string;
|
|
1872
|
+
};
|
|
1873
|
+
export type JourneyContactCreatedTrigger = {
|
|
1874
|
+
type: "contact.created";
|
|
1875
|
+
};
|
|
1876
|
+
export type JourneyCustomEventTrigger = {
|
|
1877
|
+
type: "event";
|
|
1878
|
+
eventName: JourneyCustomEventName;
|
|
1879
|
+
};
|
|
1880
|
+
export type JourneyStatus = "draft" | "active" | "paused" | "archived";
|
|
1881
|
+
export type PublishJourneyPayload = {
|
|
1882
|
+
revision: string;
|
|
1883
|
+
};
|
|
1884
|
+
export type ReplaceJourneyDraftPayload = {
|
|
1885
|
+
revision: string;
|
|
1886
|
+
definition: JourneyDefinition;
|
|
1887
|
+
};
|
|
1888
|
+
export type DeleteJourneyResponse = {
|
|
1889
|
+
id: JourneyId;
|
|
1890
|
+
deleted: true;
|
|
1891
|
+
};
|
|
1892
|
+
export type UpdateJourneyPayload = {
|
|
1893
|
+
name: JourneyName;
|
|
1894
|
+
};
|
|
1895
|
+
export type JourneyName = string;
|
|
1896
|
+
export type Journey = {
|
|
1897
|
+
id: JourneyId;
|
|
1898
|
+
name: string;
|
|
1899
|
+
status: JourneyStatus;
|
|
1900
|
+
revision: string;
|
|
1901
|
+
draft: JourneyDefinition;
|
|
1902
|
+
publishedVersion: number | null;
|
|
1903
|
+
publishedAt: string | null;
|
|
1904
|
+
createdAt: string;
|
|
1905
|
+
updatedAt: string;
|
|
1906
|
+
};
|
|
1907
|
+
export type CreateJourneyPayload = {
|
|
1908
|
+
name: JourneyName;
|
|
1909
|
+
definition: JourneyDefinition;
|
|
1910
|
+
};
|
|
1911
|
+
export type JourneyPage = {
|
|
1912
|
+
items: Array<JourneyListItem>;
|
|
1913
|
+
nextCursor: string | null;
|
|
1914
|
+
};
|
|
1915
|
+
export type JourneyListItem = {
|
|
1916
|
+
id: JourneyId;
|
|
1917
|
+
name: string;
|
|
1918
|
+
status: JourneyStatus;
|
|
1919
|
+
publishedVersion: number | null;
|
|
1920
|
+
publishedAt: string | null;
|
|
1921
|
+
createdAt: string;
|
|
1922
|
+
updatedAt: string;
|
|
1923
|
+
};
|
|
1924
|
+
export type ContactEventPage = {
|
|
1925
|
+
items: Array<ContactEvent>;
|
|
1926
|
+
nextCursor: string | null;
|
|
1927
|
+
};
|
|
1928
|
+
export type ContactEvent = {
|
|
1929
|
+
id: string;
|
|
1930
|
+
contactId: ContactId;
|
|
1931
|
+
name: string;
|
|
1932
|
+
source: "api" | "samva";
|
|
1933
|
+
properties: JsonObject;
|
|
1934
|
+
occurredAt: string;
|
|
1935
|
+
recordedAt: string;
|
|
1936
|
+
};
|
|
1937
|
+
export type BatchEventsResult = {
|
|
1938
|
+
total: number;
|
|
1939
|
+
accepted: number;
|
|
1940
|
+
errors: number;
|
|
1941
|
+
results: Array<{
|
|
1942
|
+
index: number;
|
|
1943
|
+
status: "accepted" | "error";
|
|
1944
|
+
event?: ContactEvent | null | undefined;
|
|
1945
|
+
error?: string | null | undefined;
|
|
1946
|
+
}>;
|
|
1947
|
+
};
|
|
1948
|
+
export type BatchEventsPayload = {
|
|
1949
|
+
events: [CreateEventPayload, ...Array<CreateEventPayload>];
|
|
1950
|
+
};
|
|
1951
|
+
export type CreateEventPayload = {
|
|
1952
|
+
contact: ContactEventReference;
|
|
1953
|
+
name: string;
|
|
1954
|
+
properties?: JsonObject | null | undefined;
|
|
1955
|
+
occurredAt?: string | null | undefined;
|
|
1956
|
+
idempotencyKey?: string | null | undefined;
|
|
1957
|
+
};
|
|
1958
|
+
export type ContactEventReference = {
|
|
1959
|
+
id: ContactId;
|
|
1960
|
+
externalId?: never | undefined;
|
|
1961
|
+
email?: never | undefined;
|
|
1962
|
+
} | {
|
|
1963
|
+
externalId: string;
|
|
1964
|
+
id?: never | undefined;
|
|
1965
|
+
email?: never | undefined;
|
|
1966
|
+
} | {
|
|
1967
|
+
email: string;
|
|
1968
|
+
id?: never | undefined;
|
|
1969
|
+
externalId?: never | undefined;
|
|
1970
|
+
};
|
|
1660
1971
|
export type ContactGroupMembershipPage = {
|
|
1661
1972
|
items: Array<{
|
|
1662
1973
|
id: ContactGroupId;
|
|
@@ -1685,9 +1996,6 @@ export type BulkUpdateResult = {
|
|
|
1685
1996
|
updated: number;
|
|
1686
1997
|
failed: number;
|
|
1687
1998
|
};
|
|
1688
|
-
export type JsonObject = {
|
|
1689
|
-
[key: string]: JsonValue;
|
|
1690
|
-
};
|
|
1691
1999
|
export type ContactPreferences = {
|
|
1692
2000
|
preferredChannels?: Array<"email"> | null | undefined;
|
|
1693
2001
|
language?: string | null | undefined;
|
|
@@ -2147,7 +2455,6 @@ export type SuppressionEntry = {
|
|
|
2147
2455
|
expiresAt: string | null;
|
|
2148
2456
|
createdAt: string;
|
|
2149
2457
|
};
|
|
2150
|
-
export type EmailSenderId = string;
|
|
2151
2458
|
export type EmailSenderPage = {
|
|
2152
2459
|
items: Array<{
|
|
2153
2460
|
id: EmailSenderId;
|
|
@@ -2851,7 +3158,7 @@ export type Message = {
|
|
|
2851
3158
|
updatedAt: string;
|
|
2852
3159
|
};
|
|
2853
3160
|
export type MessageSubmission = {
|
|
2854
|
-
origin: "direct" | "campaign" | "scheduled" | "mailbox" | "forwarding";
|
|
3161
|
+
origin: "direct" | "campaign" | "scheduled" | "mailbox" | "forwarding" | "journey";
|
|
2855
3162
|
transport: "http" | null;
|
|
2856
3163
|
credential: SubmissionCredential | null;
|
|
2857
3164
|
userId: UserId | null;
|
|
@@ -9227,6 +9534,814 @@ export type ContactsGetGroupMembershipsResponses = {
|
|
|
9227
9534
|
200: ContactGroupMembershipPage;
|
|
9228
9535
|
};
|
|
9229
9536
|
export type ContactsGetGroupMembershipsResponse = ContactsGetGroupMembershipsResponses[keyof ContactsGetGroupMembershipsResponses];
|
|
9537
|
+
export type EventsCreateData = {
|
|
9538
|
+
body: {
|
|
9539
|
+
contact: ContactEventReference;
|
|
9540
|
+
name: string;
|
|
9541
|
+
properties?: JsonObject | null | undefined;
|
|
9542
|
+
occurredAt?: string | null | undefined;
|
|
9543
|
+
idempotencyKey?: string | null | undefined;
|
|
9544
|
+
};
|
|
9545
|
+
path?: never;
|
|
9546
|
+
query?: never;
|
|
9547
|
+
url: "/v1/events";
|
|
9548
|
+
};
|
|
9549
|
+
export type EventsCreateErrors = {
|
|
9550
|
+
/**
|
|
9551
|
+
* UnauthorizedError
|
|
9552
|
+
*/
|
|
9553
|
+
401: UnauthorizedError;
|
|
9554
|
+
/**
|
|
9555
|
+
* PaymentRequiredError
|
|
9556
|
+
*/
|
|
9557
|
+
402: PaymentRequiredError;
|
|
9558
|
+
/**
|
|
9559
|
+
* ForbiddenError
|
|
9560
|
+
*/
|
|
9561
|
+
403: ForbiddenError;
|
|
9562
|
+
/**
|
|
9563
|
+
* ResourceNotFoundError
|
|
9564
|
+
*/
|
|
9565
|
+
404: ResourceNotFoundError;
|
|
9566
|
+
/**
|
|
9567
|
+
* ConflictError
|
|
9568
|
+
*/
|
|
9569
|
+
409: ConflictError;
|
|
9570
|
+
/**
|
|
9571
|
+
* ValidationError
|
|
9572
|
+
*/
|
|
9573
|
+
422: ValidationError;
|
|
9574
|
+
/**
|
|
9575
|
+
* InternalError
|
|
9576
|
+
*/
|
|
9577
|
+
500: InternalError;
|
|
9578
|
+
/**
|
|
9579
|
+
* BillingProviderError
|
|
9580
|
+
*/
|
|
9581
|
+
502: BillingProviderError;
|
|
9582
|
+
/**
|
|
9583
|
+
* GatewayTimeoutError
|
|
9584
|
+
*/
|
|
9585
|
+
504: GatewayTimeoutError;
|
|
9586
|
+
};
|
|
9587
|
+
export type EventsCreateError = EventsCreateErrors[keyof EventsCreateErrors];
|
|
9588
|
+
export type EventsCreateResponses = {
|
|
9589
|
+
/**
|
|
9590
|
+
* ContactEvent
|
|
9591
|
+
*/
|
|
9592
|
+
200: ContactEvent;
|
|
9593
|
+
};
|
|
9594
|
+
export type EventsCreateResponse = EventsCreateResponses[keyof EventsCreateResponses];
|
|
9595
|
+
export type EventsBatchData = {
|
|
9596
|
+
body: {
|
|
9597
|
+
events: [CreateEventPayload, ...Array<CreateEventPayload>];
|
|
9598
|
+
};
|
|
9599
|
+
path?: never;
|
|
9600
|
+
query?: never;
|
|
9601
|
+
url: "/v1/events/batch";
|
|
9602
|
+
};
|
|
9603
|
+
export type EventsBatchErrors = {
|
|
9604
|
+
/**
|
|
9605
|
+
* UnauthorizedError
|
|
9606
|
+
*/
|
|
9607
|
+
401: UnauthorizedError;
|
|
9608
|
+
/**
|
|
9609
|
+
* ForbiddenError
|
|
9610
|
+
*/
|
|
9611
|
+
403: ForbiddenError;
|
|
9612
|
+
/**
|
|
9613
|
+
* ResourceNotFoundError
|
|
9614
|
+
*/
|
|
9615
|
+
404: ResourceNotFoundError;
|
|
9616
|
+
/**
|
|
9617
|
+
* ValidationError
|
|
9618
|
+
*/
|
|
9619
|
+
422: ValidationError;
|
|
9620
|
+
/**
|
|
9621
|
+
* InternalError
|
|
9622
|
+
*/
|
|
9623
|
+
500: InternalError;
|
|
9624
|
+
/**
|
|
9625
|
+
* GatewayTimeoutError
|
|
9626
|
+
*/
|
|
9627
|
+
504: GatewayTimeoutError;
|
|
9628
|
+
};
|
|
9629
|
+
export type EventsBatchError = EventsBatchErrors[keyof EventsBatchErrors];
|
|
9630
|
+
export type EventsBatchResponses = {
|
|
9631
|
+
/**
|
|
9632
|
+
* BatchEventsResult
|
|
9633
|
+
*/
|
|
9634
|
+
200: BatchEventsResult;
|
|
9635
|
+
};
|
|
9636
|
+
export type EventsBatchResponse = EventsBatchResponses[keyof EventsBatchResponses];
|
|
9637
|
+
export type ContactEventsListEventsData = {
|
|
9638
|
+
body?: never;
|
|
9639
|
+
path: {
|
|
9640
|
+
id: ContactId;
|
|
9641
|
+
};
|
|
9642
|
+
query?: {
|
|
9643
|
+
limit?: string | null | undefined;
|
|
9644
|
+
cursor?: Cursor | null | undefined;
|
|
9645
|
+
};
|
|
9646
|
+
url: "/v1/contacts/{id}/events";
|
|
9647
|
+
};
|
|
9648
|
+
export type ContactEventsListEventsErrors = {
|
|
9649
|
+
/**
|
|
9650
|
+
* UnauthorizedError
|
|
9651
|
+
*/
|
|
9652
|
+
401: UnauthorizedError;
|
|
9653
|
+
/**
|
|
9654
|
+
* ForbiddenError
|
|
9655
|
+
*/
|
|
9656
|
+
403: ForbiddenError;
|
|
9657
|
+
/**
|
|
9658
|
+
* ResourceNotFoundError
|
|
9659
|
+
*/
|
|
9660
|
+
404: ResourceNotFoundError;
|
|
9661
|
+
/**
|
|
9662
|
+
* ValidationError
|
|
9663
|
+
*/
|
|
9664
|
+
422: ValidationError;
|
|
9665
|
+
/**
|
|
9666
|
+
* InternalError
|
|
9667
|
+
*/
|
|
9668
|
+
500: InternalError;
|
|
9669
|
+
/**
|
|
9670
|
+
* GatewayTimeoutError
|
|
9671
|
+
*/
|
|
9672
|
+
504: GatewayTimeoutError;
|
|
9673
|
+
};
|
|
9674
|
+
export type ContactEventsListEventsError = ContactEventsListEventsErrors[keyof ContactEventsListEventsErrors];
|
|
9675
|
+
export type ContactEventsListEventsResponses = {
|
|
9676
|
+
/**
|
|
9677
|
+
* ContactEventPage
|
|
9678
|
+
*/
|
|
9679
|
+
200: ContactEventPage;
|
|
9680
|
+
};
|
|
9681
|
+
export type ContactEventsListEventsResponse = ContactEventsListEventsResponses[keyof ContactEventsListEventsResponses];
|
|
9682
|
+
export type JourneysListData = {
|
|
9683
|
+
body?: never;
|
|
9684
|
+
path?: never;
|
|
9685
|
+
query?: {
|
|
9686
|
+
status?: JourneyStatus | null | undefined;
|
|
9687
|
+
limit?: string | null | undefined;
|
|
9688
|
+
cursor?: Cursor | null | undefined;
|
|
9689
|
+
};
|
|
9690
|
+
url: "/v1/journeys";
|
|
9691
|
+
};
|
|
9692
|
+
export type JourneysListErrors = {
|
|
9693
|
+
/**
|
|
9694
|
+
* UnauthorizedError
|
|
9695
|
+
*/
|
|
9696
|
+
401: UnauthorizedError;
|
|
9697
|
+
/**
|
|
9698
|
+
* ForbiddenError
|
|
9699
|
+
*/
|
|
9700
|
+
403: ForbiddenError;
|
|
9701
|
+
/**
|
|
9702
|
+
* ValidationError
|
|
9703
|
+
*/
|
|
9704
|
+
422: ValidationError;
|
|
9705
|
+
/**
|
|
9706
|
+
* InternalError
|
|
9707
|
+
*/
|
|
9708
|
+
500: InternalError;
|
|
9709
|
+
/**
|
|
9710
|
+
* GatewayTimeoutError
|
|
9711
|
+
*/
|
|
9712
|
+
504: GatewayTimeoutError;
|
|
9713
|
+
};
|
|
9714
|
+
export type JourneysListError = JourneysListErrors[keyof JourneysListErrors];
|
|
9715
|
+
export type JourneysListResponses = {
|
|
9716
|
+
/**
|
|
9717
|
+
* JourneyPage
|
|
9718
|
+
*/
|
|
9719
|
+
200: JourneyPage;
|
|
9720
|
+
};
|
|
9721
|
+
export type JourneysListResponse = JourneysListResponses[keyof JourneysListResponses];
|
|
9722
|
+
export type JourneysCreateData = {
|
|
9723
|
+
body: {
|
|
9724
|
+
name: JourneyName;
|
|
9725
|
+
definition: JourneyDefinition;
|
|
9726
|
+
};
|
|
9727
|
+
path?: never;
|
|
9728
|
+
query?: never;
|
|
9729
|
+
url: "/v1/journeys";
|
|
9730
|
+
};
|
|
9731
|
+
export type JourneysCreateErrors = {
|
|
9732
|
+
/**
|
|
9733
|
+
* UnauthorizedError
|
|
9734
|
+
*/
|
|
9735
|
+
401: UnauthorizedError;
|
|
9736
|
+
/**
|
|
9737
|
+
* PaymentRequiredError
|
|
9738
|
+
*/
|
|
9739
|
+
402: PaymentRequiredError;
|
|
9740
|
+
/**
|
|
9741
|
+
* ForbiddenError
|
|
9742
|
+
*/
|
|
9743
|
+
403: ForbiddenError;
|
|
9744
|
+
/**
|
|
9745
|
+
* ResourceNotFoundError
|
|
9746
|
+
*/
|
|
9747
|
+
404: ResourceNotFoundError;
|
|
9748
|
+
/**
|
|
9749
|
+
* ConflictError
|
|
9750
|
+
*/
|
|
9751
|
+
409: ConflictError;
|
|
9752
|
+
/**
|
|
9753
|
+
* ValidationError
|
|
9754
|
+
*/
|
|
9755
|
+
422: ValidationError;
|
|
9756
|
+
/**
|
|
9757
|
+
* InternalError
|
|
9758
|
+
*/
|
|
9759
|
+
500: InternalError;
|
|
9760
|
+
/**
|
|
9761
|
+
* BillingProviderError
|
|
9762
|
+
*/
|
|
9763
|
+
502: BillingProviderError;
|
|
9764
|
+
/**
|
|
9765
|
+
* GatewayTimeoutError
|
|
9766
|
+
*/
|
|
9767
|
+
504: GatewayTimeoutError;
|
|
9768
|
+
};
|
|
9769
|
+
export type JourneysCreateError = JourneysCreateErrors[keyof JourneysCreateErrors];
|
|
9770
|
+
export type JourneysCreateResponses = {
|
|
9771
|
+
/**
|
|
9772
|
+
* Journey
|
|
9773
|
+
*/
|
|
9774
|
+
201: Journey;
|
|
9775
|
+
};
|
|
9776
|
+
export type JourneysCreateResponse = JourneysCreateResponses[keyof JourneysCreateResponses];
|
|
9777
|
+
export type JourneysRemoveData = {
|
|
9778
|
+
body?: never;
|
|
9779
|
+
path: {
|
|
9780
|
+
id: JourneyId;
|
|
9781
|
+
};
|
|
9782
|
+
query?: never;
|
|
9783
|
+
url: "/v1/journeys/{id}";
|
|
9784
|
+
};
|
|
9785
|
+
export type JourneysRemoveErrors = {
|
|
9786
|
+
/**
|
|
9787
|
+
* UnauthorizedError
|
|
9788
|
+
*/
|
|
9789
|
+
401: UnauthorizedError;
|
|
9790
|
+
/**
|
|
9791
|
+
* ForbiddenError
|
|
9792
|
+
*/
|
|
9793
|
+
403: ForbiddenError;
|
|
9794
|
+
/**
|
|
9795
|
+
* ResourceNotFoundError
|
|
9796
|
+
*/
|
|
9797
|
+
404: ResourceNotFoundError;
|
|
9798
|
+
/**
|
|
9799
|
+
* ConflictError
|
|
9800
|
+
*/
|
|
9801
|
+
409: ConflictError;
|
|
9802
|
+
/**
|
|
9803
|
+
* ValidationError
|
|
9804
|
+
*/
|
|
9805
|
+
422: ValidationError;
|
|
9806
|
+
/**
|
|
9807
|
+
* InternalError
|
|
9808
|
+
*/
|
|
9809
|
+
500: InternalError;
|
|
9810
|
+
/**
|
|
9811
|
+
* GatewayTimeoutError
|
|
9812
|
+
*/
|
|
9813
|
+
504: GatewayTimeoutError;
|
|
9814
|
+
};
|
|
9815
|
+
export type JourneysRemoveError = JourneysRemoveErrors[keyof JourneysRemoveErrors];
|
|
9816
|
+
export type JourneysRemoveResponses = {
|
|
9817
|
+
/**
|
|
9818
|
+
* DeleteJourneyResponse
|
|
9819
|
+
*/
|
|
9820
|
+
200: DeleteJourneyResponse;
|
|
9821
|
+
};
|
|
9822
|
+
export type JourneysRemoveResponse = JourneysRemoveResponses[keyof JourneysRemoveResponses];
|
|
9823
|
+
export type JourneysGetData = {
|
|
9824
|
+
body?: never;
|
|
9825
|
+
path: {
|
|
9826
|
+
id: JourneyId;
|
|
9827
|
+
};
|
|
9828
|
+
query?: never;
|
|
9829
|
+
url: "/v1/journeys/{id}";
|
|
9830
|
+
};
|
|
9831
|
+
export type JourneysGetErrors = {
|
|
9832
|
+
/**
|
|
9833
|
+
* UnauthorizedError
|
|
9834
|
+
*/
|
|
9835
|
+
401: UnauthorizedError;
|
|
9836
|
+
/**
|
|
9837
|
+
* ForbiddenError
|
|
9838
|
+
*/
|
|
9839
|
+
403: ForbiddenError;
|
|
9840
|
+
/**
|
|
9841
|
+
* ResourceNotFoundError
|
|
9842
|
+
*/
|
|
9843
|
+
404: ResourceNotFoundError;
|
|
9844
|
+
/**
|
|
9845
|
+
* ValidationError
|
|
9846
|
+
*/
|
|
9847
|
+
422: ValidationError;
|
|
9848
|
+
/**
|
|
9849
|
+
* InternalError
|
|
9850
|
+
*/
|
|
9851
|
+
500: InternalError;
|
|
9852
|
+
/**
|
|
9853
|
+
* GatewayTimeoutError
|
|
9854
|
+
*/
|
|
9855
|
+
504: GatewayTimeoutError;
|
|
9856
|
+
};
|
|
9857
|
+
export type JourneysGetError = JourneysGetErrors[keyof JourneysGetErrors];
|
|
9858
|
+
export type JourneysGetResponses = {
|
|
9859
|
+
/**
|
|
9860
|
+
* Journey
|
|
9861
|
+
*/
|
|
9862
|
+
200: Journey;
|
|
9863
|
+
};
|
|
9864
|
+
export type JourneysGetResponse = JourneysGetResponses[keyof JourneysGetResponses];
|
|
9865
|
+
export type JourneysUpdateData = {
|
|
9866
|
+
body: {
|
|
9867
|
+
name: JourneyName;
|
|
9868
|
+
};
|
|
9869
|
+
path: {
|
|
9870
|
+
id: JourneyId;
|
|
9871
|
+
};
|
|
9872
|
+
query?: never;
|
|
9873
|
+
url: "/v1/journeys/{id}";
|
|
9874
|
+
};
|
|
9875
|
+
export type JourneysUpdateErrors = {
|
|
9876
|
+
/**
|
|
9877
|
+
* UnauthorizedError
|
|
9878
|
+
*/
|
|
9879
|
+
401: UnauthorizedError;
|
|
9880
|
+
/**
|
|
9881
|
+
* ForbiddenError
|
|
9882
|
+
*/
|
|
9883
|
+
403: ForbiddenError;
|
|
9884
|
+
/**
|
|
9885
|
+
* ResourceNotFoundError
|
|
9886
|
+
*/
|
|
9887
|
+
404: ResourceNotFoundError;
|
|
9888
|
+
/**
|
|
9889
|
+
* ValidationError
|
|
9890
|
+
*/
|
|
9891
|
+
422: ValidationError;
|
|
9892
|
+
/**
|
|
9893
|
+
* InternalError
|
|
9894
|
+
*/
|
|
9895
|
+
500: InternalError;
|
|
9896
|
+
/**
|
|
9897
|
+
* GatewayTimeoutError
|
|
9898
|
+
*/
|
|
9899
|
+
504: GatewayTimeoutError;
|
|
9900
|
+
};
|
|
9901
|
+
export type JourneysUpdateError = JourneysUpdateErrors[keyof JourneysUpdateErrors];
|
|
9902
|
+
export type JourneysUpdateResponses = {
|
|
9903
|
+
/**
|
|
9904
|
+
* Journey
|
|
9905
|
+
*/
|
|
9906
|
+
200: Journey;
|
|
9907
|
+
};
|
|
9908
|
+
export type JourneysUpdateResponse = JourneysUpdateResponses[keyof JourneysUpdateResponses];
|
|
9909
|
+
export type JourneysReplaceDraftData = {
|
|
9910
|
+
body: {
|
|
9911
|
+
revision: string;
|
|
9912
|
+
definition: JourneyDefinition;
|
|
9913
|
+
};
|
|
9914
|
+
path: {
|
|
9915
|
+
id: JourneyId;
|
|
9916
|
+
};
|
|
9917
|
+
query?: never;
|
|
9918
|
+
url: "/v1/journeys/{id}/draft";
|
|
9919
|
+
};
|
|
9920
|
+
export type JourneysReplaceDraftErrors = {
|
|
9921
|
+
/**
|
|
9922
|
+
* UnauthorizedError
|
|
9923
|
+
*/
|
|
9924
|
+
401: UnauthorizedError;
|
|
9925
|
+
/**
|
|
9926
|
+
* PaymentRequiredError
|
|
9927
|
+
*/
|
|
9928
|
+
402: PaymentRequiredError;
|
|
9929
|
+
/**
|
|
9930
|
+
* ForbiddenError
|
|
9931
|
+
*/
|
|
9932
|
+
403: ForbiddenError;
|
|
9933
|
+
/**
|
|
9934
|
+
* ResourceNotFoundError
|
|
9935
|
+
*/
|
|
9936
|
+
404: ResourceNotFoundError;
|
|
9937
|
+
/**
|
|
9938
|
+
* ConflictError
|
|
9939
|
+
*/
|
|
9940
|
+
409: ConflictError;
|
|
9941
|
+
/**
|
|
9942
|
+
* ValidationError
|
|
9943
|
+
*/
|
|
9944
|
+
422: ValidationError;
|
|
9945
|
+
/**
|
|
9946
|
+
* InternalError
|
|
9947
|
+
*/
|
|
9948
|
+
500: InternalError;
|
|
9949
|
+
/**
|
|
9950
|
+
* BillingProviderError
|
|
9951
|
+
*/
|
|
9952
|
+
502: BillingProviderError;
|
|
9953
|
+
/**
|
|
9954
|
+
* GatewayTimeoutError
|
|
9955
|
+
*/
|
|
9956
|
+
504: GatewayTimeoutError;
|
|
9957
|
+
};
|
|
9958
|
+
export type JourneysReplaceDraftError = JourneysReplaceDraftErrors[keyof JourneysReplaceDraftErrors];
|
|
9959
|
+
export type JourneysReplaceDraftResponses = {
|
|
9960
|
+
/**
|
|
9961
|
+
* Journey
|
|
9962
|
+
*/
|
|
9963
|
+
200: Journey;
|
|
9964
|
+
};
|
|
9965
|
+
export type JourneysReplaceDraftResponse = JourneysReplaceDraftResponses[keyof JourneysReplaceDraftResponses];
|
|
9966
|
+
export type JourneysPublishData = {
|
|
9967
|
+
body: {
|
|
9968
|
+
revision: string;
|
|
9969
|
+
};
|
|
9970
|
+
path: {
|
|
9971
|
+
id: JourneyId;
|
|
9972
|
+
};
|
|
9973
|
+
query?: never;
|
|
9974
|
+
url: "/v1/journeys/{id}/publish";
|
|
9975
|
+
};
|
|
9976
|
+
export type JourneysPublishErrors = {
|
|
9977
|
+
/**
|
|
9978
|
+
* UnauthorizedError
|
|
9979
|
+
*/
|
|
9980
|
+
401: UnauthorizedError;
|
|
9981
|
+
/**
|
|
9982
|
+
* PaymentRequiredError
|
|
9983
|
+
*/
|
|
9984
|
+
402: PaymentRequiredError;
|
|
9985
|
+
/**
|
|
9986
|
+
* ForbiddenError
|
|
9987
|
+
*/
|
|
9988
|
+
403: ForbiddenError;
|
|
9989
|
+
/**
|
|
9990
|
+
* ResourceNotFoundError
|
|
9991
|
+
*/
|
|
9992
|
+
404: ResourceNotFoundError;
|
|
9993
|
+
/**
|
|
9994
|
+
* ConflictError
|
|
9995
|
+
*/
|
|
9996
|
+
409: ConflictError;
|
|
9997
|
+
/**
|
|
9998
|
+
* ValidationError
|
|
9999
|
+
*/
|
|
10000
|
+
422: ValidationError;
|
|
10001
|
+
/**
|
|
10002
|
+
* InternalError
|
|
10003
|
+
*/
|
|
10004
|
+
500: InternalError;
|
|
10005
|
+
/**
|
|
10006
|
+
* BillingProviderError
|
|
10007
|
+
*/
|
|
10008
|
+
502: BillingProviderError;
|
|
10009
|
+
/**
|
|
10010
|
+
* GatewayTimeoutError
|
|
10011
|
+
*/
|
|
10012
|
+
504: GatewayTimeoutError;
|
|
10013
|
+
};
|
|
10014
|
+
export type JourneysPublishError = JourneysPublishErrors[keyof JourneysPublishErrors];
|
|
10015
|
+
export type JourneysPublishResponses = {
|
|
10016
|
+
/**
|
|
10017
|
+
* Journey
|
|
10018
|
+
*/
|
|
10019
|
+
200: Journey;
|
|
10020
|
+
};
|
|
10021
|
+
export type JourneysPublishResponse = JourneysPublishResponses[keyof JourneysPublishResponses];
|
|
10022
|
+
export type JourneysPauseData = {
|
|
10023
|
+
body?: never;
|
|
10024
|
+
path: {
|
|
10025
|
+
id: JourneyId;
|
|
10026
|
+
};
|
|
10027
|
+
query?: never;
|
|
10028
|
+
url: "/v1/journeys/{id}/pause";
|
|
10029
|
+
};
|
|
10030
|
+
export type JourneysPauseErrors = {
|
|
10031
|
+
/**
|
|
10032
|
+
* UnauthorizedError
|
|
10033
|
+
*/
|
|
10034
|
+
401: UnauthorizedError;
|
|
10035
|
+
/**
|
|
10036
|
+
* ForbiddenError
|
|
10037
|
+
*/
|
|
10038
|
+
403: ForbiddenError;
|
|
10039
|
+
/**
|
|
10040
|
+
* ResourceNotFoundError
|
|
10041
|
+
*/
|
|
10042
|
+
404: ResourceNotFoundError;
|
|
10043
|
+
/**
|
|
10044
|
+
* ConflictError
|
|
10045
|
+
*/
|
|
10046
|
+
409: ConflictError;
|
|
10047
|
+
/**
|
|
10048
|
+
* ValidationError
|
|
10049
|
+
*/
|
|
10050
|
+
422: ValidationError;
|
|
10051
|
+
/**
|
|
10052
|
+
* InternalError
|
|
10053
|
+
*/
|
|
10054
|
+
500: InternalError;
|
|
10055
|
+
/**
|
|
10056
|
+
* GatewayTimeoutError
|
|
10057
|
+
*/
|
|
10058
|
+
504: GatewayTimeoutError;
|
|
10059
|
+
};
|
|
10060
|
+
export type JourneysPauseError = JourneysPauseErrors[keyof JourneysPauseErrors];
|
|
10061
|
+
export type JourneysPauseResponses = {
|
|
10062
|
+
/**
|
|
10063
|
+
* Journey
|
|
10064
|
+
*/
|
|
10065
|
+
200: Journey;
|
|
10066
|
+
};
|
|
10067
|
+
export type JourneysPauseResponse = JourneysPauseResponses[keyof JourneysPauseResponses];
|
|
10068
|
+
export type JourneysResumeData = {
|
|
10069
|
+
body?: never;
|
|
10070
|
+
path: {
|
|
10071
|
+
id: JourneyId;
|
|
10072
|
+
};
|
|
10073
|
+
query?: never;
|
|
10074
|
+
url: "/v1/journeys/{id}/resume";
|
|
10075
|
+
};
|
|
10076
|
+
export type JourneysResumeErrors = {
|
|
10077
|
+
/**
|
|
10078
|
+
* UnauthorizedError
|
|
10079
|
+
*/
|
|
10080
|
+
401: UnauthorizedError;
|
|
10081
|
+
/**
|
|
10082
|
+
* PaymentRequiredError
|
|
10083
|
+
*/
|
|
10084
|
+
402: PaymentRequiredError;
|
|
10085
|
+
/**
|
|
10086
|
+
* ForbiddenError
|
|
10087
|
+
*/
|
|
10088
|
+
403: ForbiddenError;
|
|
10089
|
+
/**
|
|
10090
|
+
* ResourceNotFoundError
|
|
10091
|
+
*/
|
|
10092
|
+
404: ResourceNotFoundError;
|
|
10093
|
+
/**
|
|
10094
|
+
* ConflictError
|
|
10095
|
+
*/
|
|
10096
|
+
409: ConflictError;
|
|
10097
|
+
/**
|
|
10098
|
+
* ValidationError
|
|
10099
|
+
*/
|
|
10100
|
+
422: ValidationError;
|
|
10101
|
+
/**
|
|
10102
|
+
* InternalError
|
|
10103
|
+
*/
|
|
10104
|
+
500: InternalError;
|
|
10105
|
+
/**
|
|
10106
|
+
* BillingProviderError
|
|
10107
|
+
*/
|
|
10108
|
+
502: BillingProviderError;
|
|
10109
|
+
/**
|
|
10110
|
+
* GatewayTimeoutError
|
|
10111
|
+
*/
|
|
10112
|
+
504: GatewayTimeoutError;
|
|
10113
|
+
};
|
|
10114
|
+
export type JourneysResumeError = JourneysResumeErrors[keyof JourneysResumeErrors];
|
|
10115
|
+
export type JourneysResumeResponses = {
|
|
10116
|
+
/**
|
|
10117
|
+
* Journey
|
|
10118
|
+
*/
|
|
10119
|
+
200: Journey;
|
|
10120
|
+
};
|
|
10121
|
+
export type JourneysResumeResponse = JourneysResumeResponses[keyof JourneysResumeResponses];
|
|
10122
|
+
export type JourneysArchiveData = {
|
|
10123
|
+
body?: never;
|
|
10124
|
+
path: {
|
|
10125
|
+
id: JourneyId;
|
|
10126
|
+
};
|
|
10127
|
+
query?: never;
|
|
10128
|
+
url: "/v1/journeys/{id}/archive";
|
|
10129
|
+
};
|
|
10130
|
+
export type JourneysArchiveErrors = {
|
|
10131
|
+
/**
|
|
10132
|
+
* UnauthorizedError
|
|
10133
|
+
*/
|
|
10134
|
+
401: UnauthorizedError;
|
|
10135
|
+
/**
|
|
10136
|
+
* ForbiddenError
|
|
10137
|
+
*/
|
|
10138
|
+
403: ForbiddenError;
|
|
10139
|
+
/**
|
|
10140
|
+
* ResourceNotFoundError
|
|
10141
|
+
*/
|
|
10142
|
+
404: ResourceNotFoundError;
|
|
10143
|
+
/**
|
|
10144
|
+
* ConflictError
|
|
10145
|
+
*/
|
|
10146
|
+
409: ConflictError;
|
|
10147
|
+
/**
|
|
10148
|
+
* ValidationError
|
|
10149
|
+
*/
|
|
10150
|
+
422: ValidationError;
|
|
10151
|
+
/**
|
|
10152
|
+
* InternalError
|
|
10153
|
+
*/
|
|
10154
|
+
500: InternalError;
|
|
10155
|
+
/**
|
|
10156
|
+
* GatewayTimeoutError
|
|
10157
|
+
*/
|
|
10158
|
+
504: GatewayTimeoutError;
|
|
10159
|
+
};
|
|
10160
|
+
export type JourneysArchiveError = JourneysArchiveErrors[keyof JourneysArchiveErrors];
|
|
10161
|
+
export type JourneysArchiveResponses = {
|
|
10162
|
+
/**
|
|
10163
|
+
* Journey
|
|
10164
|
+
*/
|
|
10165
|
+
200: Journey;
|
|
10166
|
+
};
|
|
10167
|
+
export type JourneysArchiveResponse = JourneysArchiveResponses[keyof JourneysArchiveResponses];
|
|
10168
|
+
export type JourneysGetVersionData = {
|
|
10169
|
+
body?: never;
|
|
10170
|
+
path: {
|
|
10171
|
+
id: JourneyId;
|
|
10172
|
+
version: string;
|
|
10173
|
+
};
|
|
10174
|
+
query?: never;
|
|
10175
|
+
url: "/v1/journeys/{id}/versions/{version}";
|
|
10176
|
+
};
|
|
10177
|
+
export type JourneysGetVersionErrors = {
|
|
10178
|
+
/**
|
|
10179
|
+
* UnauthorizedError
|
|
10180
|
+
*/
|
|
10181
|
+
401: UnauthorizedError;
|
|
10182
|
+
/**
|
|
10183
|
+
* ForbiddenError
|
|
10184
|
+
*/
|
|
10185
|
+
403: ForbiddenError;
|
|
10186
|
+
/**
|
|
10187
|
+
* ResourceNotFoundError
|
|
10188
|
+
*/
|
|
10189
|
+
404: ResourceNotFoundError;
|
|
10190
|
+
/**
|
|
10191
|
+
* ValidationError
|
|
10192
|
+
*/
|
|
10193
|
+
422: ValidationError;
|
|
10194
|
+
/**
|
|
10195
|
+
* InternalError
|
|
10196
|
+
*/
|
|
10197
|
+
500: InternalError;
|
|
10198
|
+
/**
|
|
10199
|
+
* GatewayTimeoutError
|
|
10200
|
+
*/
|
|
10201
|
+
504: GatewayTimeoutError;
|
|
10202
|
+
};
|
|
10203
|
+
export type JourneysGetVersionError = JourneysGetVersionErrors[keyof JourneysGetVersionErrors];
|
|
10204
|
+
export type JourneysGetVersionResponses = {
|
|
10205
|
+
/**
|
|
10206
|
+
* JourneyVersion
|
|
10207
|
+
*/
|
|
10208
|
+
200: JourneyVersion;
|
|
10209
|
+
};
|
|
10210
|
+
export type JourneysGetVersionResponse = JourneysGetVersionResponses[keyof JourneysGetVersionResponses];
|
|
10211
|
+
export type JourneysStatsData = {
|
|
10212
|
+
body?: never;
|
|
10213
|
+
path: {
|
|
10214
|
+
id: JourneyId;
|
|
10215
|
+
};
|
|
10216
|
+
query?: {
|
|
10217
|
+
version?: string | null | undefined;
|
|
10218
|
+
};
|
|
10219
|
+
url: "/v1/journeys/{id}/stats";
|
|
10220
|
+
};
|
|
10221
|
+
export type JourneysStatsErrors = {
|
|
10222
|
+
/**
|
|
10223
|
+
* UnauthorizedError
|
|
10224
|
+
*/
|
|
10225
|
+
401: UnauthorizedError;
|
|
10226
|
+
/**
|
|
10227
|
+
* ForbiddenError
|
|
10228
|
+
*/
|
|
10229
|
+
403: ForbiddenError;
|
|
10230
|
+
/**
|
|
10231
|
+
* ResourceNotFoundError
|
|
10232
|
+
*/
|
|
10233
|
+
404: ResourceNotFoundError;
|
|
10234
|
+
/**
|
|
10235
|
+
* ValidationError
|
|
10236
|
+
*/
|
|
10237
|
+
422: ValidationError;
|
|
10238
|
+
/**
|
|
10239
|
+
* InternalError
|
|
10240
|
+
*/
|
|
10241
|
+
500: InternalError;
|
|
10242
|
+
/**
|
|
10243
|
+
* GatewayTimeoutError
|
|
10244
|
+
*/
|
|
10245
|
+
504: GatewayTimeoutError;
|
|
10246
|
+
};
|
|
10247
|
+
export type JourneysStatsError = JourneysStatsErrors[keyof JourneysStatsErrors];
|
|
10248
|
+
export type JourneysStatsResponses = {
|
|
10249
|
+
/**
|
|
10250
|
+
* JourneyStats
|
|
10251
|
+
*/
|
|
10252
|
+
200: JourneyStats;
|
|
10253
|
+
};
|
|
10254
|
+
export type JourneysStatsResponse = JourneysStatsResponses[keyof JourneysStatsResponses];
|
|
10255
|
+
export type JourneysListRunsData = {
|
|
10256
|
+
body?: never;
|
|
10257
|
+
path: {
|
|
10258
|
+
id: JourneyId;
|
|
10259
|
+
};
|
|
10260
|
+
query?: {
|
|
10261
|
+
status?: JourneyRunStatus | null | undefined;
|
|
10262
|
+
contactId?: ContactId | null | undefined;
|
|
10263
|
+
limit?: string | null | undefined;
|
|
10264
|
+
cursor?: Cursor | null | undefined;
|
|
10265
|
+
};
|
|
10266
|
+
url: "/v1/journeys/{id}/runs";
|
|
10267
|
+
};
|
|
10268
|
+
export type JourneysListRunsErrors = {
|
|
10269
|
+
/**
|
|
10270
|
+
* UnauthorizedError
|
|
10271
|
+
*/
|
|
10272
|
+
401: UnauthorizedError;
|
|
10273
|
+
/**
|
|
10274
|
+
* ForbiddenError
|
|
10275
|
+
*/
|
|
10276
|
+
403: ForbiddenError;
|
|
10277
|
+
/**
|
|
10278
|
+
* ResourceNotFoundError
|
|
10279
|
+
*/
|
|
10280
|
+
404: ResourceNotFoundError;
|
|
10281
|
+
/**
|
|
10282
|
+
* ValidationError
|
|
10283
|
+
*/
|
|
10284
|
+
422: ValidationError;
|
|
10285
|
+
/**
|
|
10286
|
+
* InternalError
|
|
10287
|
+
*/
|
|
10288
|
+
500: InternalError;
|
|
10289
|
+
/**
|
|
10290
|
+
* GatewayTimeoutError
|
|
10291
|
+
*/
|
|
10292
|
+
504: GatewayTimeoutError;
|
|
10293
|
+
};
|
|
10294
|
+
export type JourneysListRunsError = JourneysListRunsErrors[keyof JourneysListRunsErrors];
|
|
10295
|
+
export type JourneysListRunsResponses = {
|
|
10296
|
+
/**
|
|
10297
|
+
* JourneyRunPage
|
|
10298
|
+
*/
|
|
10299
|
+
200: JourneyRunPage;
|
|
10300
|
+
};
|
|
10301
|
+
export type JourneysListRunsResponse = JourneysListRunsResponses[keyof JourneysListRunsResponses];
|
|
10302
|
+
export type JourneysGetRunData = {
|
|
10303
|
+
body?: never;
|
|
10304
|
+
path: {
|
|
10305
|
+
id: JourneyId;
|
|
10306
|
+
runId: JourneyRunId;
|
|
10307
|
+
};
|
|
10308
|
+
query?: never;
|
|
10309
|
+
url: "/v1/journeys/{id}/runs/{runId}";
|
|
10310
|
+
};
|
|
10311
|
+
export type JourneysGetRunErrors = {
|
|
10312
|
+
/**
|
|
10313
|
+
* UnauthorizedError
|
|
10314
|
+
*/
|
|
10315
|
+
401: UnauthorizedError;
|
|
10316
|
+
/**
|
|
10317
|
+
* ForbiddenError
|
|
10318
|
+
*/
|
|
10319
|
+
403: ForbiddenError;
|
|
10320
|
+
/**
|
|
10321
|
+
* ResourceNotFoundError
|
|
10322
|
+
*/
|
|
10323
|
+
404: ResourceNotFoundError;
|
|
10324
|
+
/**
|
|
10325
|
+
* ValidationError
|
|
10326
|
+
*/
|
|
10327
|
+
422: ValidationError;
|
|
10328
|
+
/**
|
|
10329
|
+
* InternalError
|
|
10330
|
+
*/
|
|
10331
|
+
500: InternalError;
|
|
10332
|
+
/**
|
|
10333
|
+
* GatewayTimeoutError
|
|
10334
|
+
*/
|
|
10335
|
+
504: GatewayTimeoutError;
|
|
10336
|
+
};
|
|
10337
|
+
export type JourneysGetRunError = JourneysGetRunErrors[keyof JourneysGetRunErrors];
|
|
10338
|
+
export type JourneysGetRunResponses = {
|
|
10339
|
+
/**
|
|
10340
|
+
* JourneyRunDetail
|
|
10341
|
+
*/
|
|
10342
|
+
200: JourneyRunDetail;
|
|
10343
|
+
};
|
|
10344
|
+
export type JourneysGetRunResponse = JourneysGetRunResponses[keyof JourneysGetRunResponses];
|
|
9230
10345
|
export type SubscriptionsSubscribeData = {
|
|
9231
10346
|
body: {
|
|
9232
10347
|
/**
|
|
@@ -13666,7 +14781,7 @@ export type WebhooksCreateData = {
|
|
|
13666
14781
|
body: {
|
|
13667
14782
|
name: string;
|
|
13668
14783
|
url: string;
|
|
13669
|
-
eventTypes: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded">;
|
|
14784
|
+
eventTypes: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "journey.webhook">;
|
|
13670
14785
|
channels?: Array<"email"> | null | undefined;
|
|
13671
14786
|
mailboxIds?: [MailboxId, ...Array<MailboxId>] | null | undefined;
|
|
13672
14787
|
namespaceId?: NamespaceId | null | undefined;
|
|
@@ -13820,7 +14935,7 @@ export type WebhooksUpdateData = {
|
|
|
13820
14935
|
body: {
|
|
13821
14936
|
name?: string | null | undefined;
|
|
13822
14937
|
url?: string | null | undefined;
|
|
13823
|
-
eventTypes?: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded"> | null | undefined;
|
|
14938
|
+
eventTypes?: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "journey.webhook"> | null | undefined;
|
|
13824
14939
|
channels?: Array<"email"> | null | null | undefined;
|
|
13825
14940
|
mailboxIds?: [MailboxId, ...Array<MailboxId>] | null | null | undefined;
|
|
13826
14941
|
namespaceId?: NamespaceId | null | null | undefined;
|