samva 0.47.0 → 0.49.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/dist/agent/index.d.ts +1 -0
- package/dist/agent/index.js +2 -1
- package/dist/agent/runtime.js +26 -5
- package/dist/agent/types.d.ts +27 -0
- package/dist/client/sdk.gen.d.ts +234 -34
- package/dist/client/sdk.gen.js +574 -60
- package/dist/client/types.gen.d.ts +1363 -164
- package/dist/effect/accounts.d.ts +6 -6
- package/dist/effect/agents.d.ts +13 -13
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/api-keys.d.ts +13 -11
- package/dist/effect/approval-requests.d.ts +4 -4
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/brands.d.ts +6 -6
- package/dist/effect/campaigns.d.ts +15 -15
- package/dist/effect/contact-groups.d.ts +10 -10
- package/dist/effect/contacts.d.ts +25 -25
- package/dist/effect/conversations.d.ts +13 -13
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/descriptors/integrations-catalog.d.ts +134 -0
- package/dist/effect/descriptors/integrations-catalog.js +122 -0
- package/dist/effect/descriptors/mailboxes.d.ts +32 -12
- package/dist/effect/descriptors/mailboxes.js +32 -12
- package/dist/effect/email.d.ts +61 -61
- package/dist/effect/events.d.ts +2 -2
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/generated/accounts.d.ts +1 -3
- package/dist/effect/generated/accounts.js +2 -7
- package/dist/effect/generated/api-keys.d.ts +30 -15
- package/dist/effect/generated/api-keys.js +2 -0
- package/dist/effect/generated/attachments.js +1 -1
- package/dist/effect/generated/integrations-catalog.d.ts +2702 -1
- package/dist/effect/generated/integrations-catalog.js +578 -3
- package/dist/effect/generated/journeys.d.ts +105 -107
- package/dist/effect/generated/journeys.js +6 -12
- package/dist/effect/generated/mailboxes.d.ts +752 -463
- package/dist/effect/generated/mailboxes.js +163 -98
- package/dist/effect/generated/messages.d.ts +109 -4
- package/dist/effect/generated/messages.js +41 -8
- package/dist/effect/generated/shared.d.ts +255 -59
- package/dist/effect/generated/shared.js +64 -18
- package/dist/effect/generated/template-registrations.d.ts +53 -4
- package/dist/effect/generated/template-registrations.js +13 -5
- package/dist/effect/generated/templates.d.ts +77 -15
- package/dist/effect/generated/templates.js +26 -17
- package/dist/effect/generated/webhooks.d.ts +19 -19
- package/dist/effect/generated/webhooks.js +8 -8
- package/dist/effect/generated/whoami.d.ts +4 -4
- package/dist/effect/generated-metadata.d.ts +114 -18
- package/dist/effect/generated-metadata.js +362 -340
- package/dist/effect/integrations-catalog.d.ts +228 -3
- package/dist/effect/integrations-catalog.js +29 -1
- package/dist/effect/integrations.d.ts +7 -7
- package/dist/effect/internal/client.d.ts +7 -3
- package/dist/effect/internal/operation.d.ts +10 -6
- package/dist/effect/internal/operation.js +3 -3
- package/dist/effect/journeys.d.ts +14 -14
- package/dist/effect/mailboxes.d.ts +117 -91
- package/dist/effect/mailboxes.js +11 -7
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/messages.d.ts +9 -9
- package/dist/effect/namespaces.d.ts +11 -11
- package/dist/effect/newsletter-domains.d.ts +4 -4
- package/dist/effect/newsletter-issues.d.ts +11 -11
- package/dist/effect/newsletters.d.ts +5 -5
- package/dist/effect/operations.d.ts +3 -3
- package/dist/effect/organizations.d.ts +12 -12
- package/dist/effect/policies.d.ts +3 -3
- package/dist/effect/retry.js +1 -1
- package/dist/effect/scheduled-messages.d.ts +5 -5
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/template-registrations.d.ts +9 -3
- package/dist/effect/template-share-links.d.ts +5 -5
- package/dist/effect/templates.d.ts +46 -37
- package/dist/effect/topic-forms.d.ts +5 -5
- package/dist/effect/topics.d.ts +9 -9
- package/dist/effect/webhooks.d.ts +15 -15
- package/dist/effect/whatsapp-flows.d.ts +10 -10
- package/dist/effect/whatsapp-setup-links.d.ts +4 -4
- package/dist/effect/whatsapp.d.ts +12 -12
- package/dist/effect/whoami.d.ts +1 -1
- package/dist/inline-attachments.d.ts +0 -5
- package/dist/mailbox-events.d.ts +1 -5
- package/dist/mailbox-events.js +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +4 -4
- package/dist/promises/client.js +8 -4
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +83 -9
- package/package.json +2 -2
|
@@ -14,6 +14,8 @@ export type JsonObject = {
|
|
|
14
14
|
export declare const JsonObject: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
15
15
|
export type IntegrationAccountId = string & EffectBrand.Brand<"IntegrationAccountId">;
|
|
16
16
|
export declare const IntegrationAccountId: Schema.brand<Schema.String, "IntegrationAccountId">;
|
|
17
|
+
export type AccountStatus = "pending" | "connected" | "needsReconnect";
|
|
18
|
+
export declare const AccountStatus: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"connected">, Schema.Literal<"needsReconnect">]>;
|
|
17
19
|
export type UserId = string & EffectBrand.Brand<"UserId">;
|
|
18
20
|
export declare const UserId: Schema.brand<Schema.String, "UserId">;
|
|
19
21
|
declare const MalformedRequestError_base: Schema.Class<MalformedRequestError, Schema.Struct<{
|
|
@@ -443,8 +445,14 @@ export type AnswerWithoutApproval = boolean;
|
|
|
443
445
|
export declare const AnswerWithoutApproval: Schema.Boolean;
|
|
444
446
|
export type IntegrationTool = string;
|
|
445
447
|
export declare const IntegrationTool: Schema.String;
|
|
448
|
+
export type TemplateRegistrationId = string & EffectBrand.Brand<"TemplateRegistrationId">;
|
|
449
|
+
export declare const TemplateRegistrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
450
|
+
export type TemplateFamilyId = string & EffectBrand.Brand<"TemplateFamilyId">;
|
|
451
|
+
export declare const TemplateFamilyId: Schema.brand<Schema.String, "TemplateFamilyId">;
|
|
446
452
|
export type JourneyId = string & EffectBrand.Brand<"JourneyId">;
|
|
447
453
|
export declare const JourneyId: Schema.brand<Schema.String, "JourneyId">;
|
|
454
|
+
export type JourneyStatus = "draft" | "active" | "paused" | "archived";
|
|
455
|
+
export declare const JourneyStatus: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
448
456
|
export type JourneyName = string;
|
|
449
457
|
export declare const JourneyName: Schema.String;
|
|
450
458
|
export type JourneyCustomEventName = string;
|
|
@@ -465,8 +473,6 @@ export declare const JourneyTagAddedTrigger: Schema.Struct<{
|
|
|
465
473
|
}>;
|
|
466
474
|
export type JourneyNodeId = string;
|
|
467
475
|
export declare const JourneyNodeId: Schema.String;
|
|
468
|
-
export type TemplateRegistrationId = string & EffectBrand.Brand<"TemplateRegistrationId">;
|
|
469
|
-
export declare const TemplateRegistrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
470
476
|
export type TemplateChannelVariantId = string & EffectBrand.Brand<"TemplateChannelVariantId">;
|
|
471
477
|
export declare const TemplateChannelVariantId: Schema.brand<Schema.String, "TemplateChannelVariantId">;
|
|
472
478
|
export type JourneyWaitConfig = {
|
|
@@ -627,8 +633,8 @@ declare const WhatsAppServiceWindowClosedError_base: Schema.Class<WhatsAppServic
|
|
|
627
633
|
}>, import("effect/Cause").YieldableError>;
|
|
628
634
|
export declare class WhatsAppServiceWindowClosedError extends WhatsAppServiceWindowClosedError_base {
|
|
629
635
|
}
|
|
630
|
-
export type MailboxThreadFolder = "inbox" | "assigned" | "pending" | "sent" | "archived" | "trash";
|
|
631
|
-
export declare const MailboxThreadFolder: Schema.Union<readonly [Schema.Literal<"inbox">, Schema.Literal<"assigned">, Schema.Literal<"pending">, Schema.Literal<"sent">, Schema.Literal<"archived">, Schema.Literal<"trash">]>;
|
|
636
|
+
export type MailboxThreadFolder = "inbox" | "assigned" | "pending" | "sent" | "archived" | "trash" | "spam";
|
|
637
|
+
export declare const MailboxThreadFolder: Schema.Union<readonly [Schema.Literal<"inbox">, Schema.Literal<"assigned">, Schema.Literal<"pending">, Schema.Literal<"sent">, Schema.Literal<"archived">, Schema.Literal<"trash">, Schema.Literal<"spam">]>;
|
|
632
638
|
export type MailboxGrantRole = "admin" | "collaborator" | "viewer";
|
|
633
639
|
export declare const MailboxGrantRole: Schema.Union<readonly [Schema.Literal<"admin">, Schema.Literal<"collaborator">, Schema.Literal<"viewer">]>;
|
|
634
640
|
export type MailboxLabelId = string & EffectBrand.Brand<"MailboxLabelId">;
|
|
@@ -919,6 +925,10 @@ export declare const TemplateFromDefaultInput: Schema.Struct<{
|
|
|
919
925
|
readonly email: Schema.String;
|
|
920
926
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
921
927
|
}>;
|
|
928
|
+
export type WhatsAppBusinessAccountId_1 = string;
|
|
929
|
+
export declare const WhatsAppBusinessAccountId_1: Schema.String;
|
|
930
|
+
export type WhatsAppBusinessAccountId_2 = string;
|
|
931
|
+
export declare const WhatsAppBusinessAccountId_2: Schema.String;
|
|
922
932
|
declare const CredentialsError_base: Schema.Class<CredentialsError, Schema.Struct<{
|
|
923
933
|
readonly _tag: Schema.tag<"CredentialsError">;
|
|
924
934
|
readonly message: Schema.String;
|
|
@@ -1200,9 +1210,11 @@ export declare const SetWhatsAppFlowEndpointPayload: Schema.Struct<{
|
|
|
1200
1210
|
}>;
|
|
1201
1211
|
export type SuggestTemplateStartersPayload = {
|
|
1202
1212
|
readonly brief: string;
|
|
1213
|
+
readonly channel?: "email" | "whatsapp" | null;
|
|
1203
1214
|
};
|
|
1204
1215
|
export declare const SuggestTemplateStartersPayload: Schema.Struct<{
|
|
1205
1216
|
readonly brief: Schema.String;
|
|
1217
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>, Schema.Null]>>;
|
|
1206
1218
|
}>;
|
|
1207
1219
|
export type TemplateFamilyName = {
|
|
1208
1220
|
readonly name: string;
|
|
@@ -1464,18 +1476,12 @@ export type MergeContactPayload = {
|
|
|
1464
1476
|
export declare const MergeContactPayload: Schema.Struct<{
|
|
1465
1477
|
readonly from: Schema.brand<Schema.String, "ContactId">;
|
|
1466
1478
|
}>;
|
|
1467
|
-
export type
|
|
1468
|
-
readonly
|
|
1469
|
-
readonly name?: string | null;
|
|
1470
|
-
readonly galleryTemplateId?: string | null;
|
|
1471
|
-
readonly useBrand?: boolean | null;
|
|
1479
|
+
export type CreateTemplateFamilyPayload = {
|
|
1480
|
+
readonly name: string;
|
|
1472
1481
|
readonly namespaceId?: NamespaceId | null;
|
|
1473
1482
|
};
|
|
1474
|
-
export declare const
|
|
1475
|
-
readonly
|
|
1476
|
-
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1477
|
-
readonly galleryTemplateId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1478
|
-
readonly useBrand: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1483
|
+
export declare const CreateTemplateFamilyPayload: Schema.Struct<{
|
|
1484
|
+
readonly name: Schema.String;
|
|
1479
1485
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1480
1486
|
}>;
|
|
1481
1487
|
export type CreateTemplateFromWebsitePayload = {
|
|
@@ -1605,6 +1611,24 @@ export declare const ReplyMailboxChatPayload: Schema.Struct<{
|
|
|
1605
1611
|
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
1606
1612
|
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
1607
1613
|
}>;
|
|
1614
|
+
export type CreateTemplateFromBriefPayload = {
|
|
1615
|
+
readonly brief: string;
|
|
1616
|
+
readonly channel?: "email" | "whatsapp" | null;
|
|
1617
|
+
readonly name?: string | null;
|
|
1618
|
+
readonly galleryTemplateId?: string | null;
|
|
1619
|
+
readonly useBrand?: boolean | null;
|
|
1620
|
+
readonly namespaceId?: NamespaceId | null;
|
|
1621
|
+
readonly variantOf?: TemplateId | null;
|
|
1622
|
+
};
|
|
1623
|
+
export declare const CreateTemplateFromBriefPayload: Schema.Struct<{
|
|
1624
|
+
readonly brief: Schema.String;
|
|
1625
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>, Schema.Null]>>;
|
|
1626
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1627
|
+
readonly galleryTemplateId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1628
|
+
readonly useBrand: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1629
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1630
|
+
readonly variantOf: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
1631
|
+
}>;
|
|
1608
1632
|
export type UpdateAgentPayload = {
|
|
1609
1633
|
readonly name?: AgentName | null;
|
|
1610
1634
|
readonly monthlySpendCapDollars?: MonthlySpendCapDollars | null;
|
|
@@ -1615,13 +1639,13 @@ export declare const UpdateAgentPayload: Schema.Struct<{
|
|
|
1615
1639
|
}>;
|
|
1616
1640
|
export type ApiKeyMailboxAccess = {
|
|
1617
1641
|
readonly permissions: readonly [
|
|
1618
|
-
"read" | "update" | "send" | "
|
|
1619
|
-
...Array<"read" | "update" | "send" | "
|
|
1642
|
+
"read" | "update" | "send" | "spam.read",
|
|
1643
|
+
...Array<"read" | "update" | "send" | "spam.read">
|
|
1620
1644
|
];
|
|
1621
1645
|
readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null;
|
|
1622
1646
|
};
|
|
1623
1647
|
export declare const ApiKeyMailboxAccess: Schema.Struct<{
|
|
1624
|
-
readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"
|
|
1648
|
+
readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>;
|
|
1625
1649
|
readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "MailboxId">]>, readonly [Schema.brand<Schema.String, "MailboxId">]>, Schema.Null]>>;
|
|
1626
1650
|
}>;
|
|
1627
1651
|
export type CampaignReplyMailbox = MailboxId | null;
|
|
@@ -1629,7 +1653,7 @@ export declare const CampaignReplyMailbox: Schema.Union<readonly [Schema.brand<S
|
|
|
1629
1653
|
export type CreateWebhookPayload = {
|
|
1630
1654
|
readonly name: string;
|
|
1631
1655
|
readonly url: string;
|
|
1632
|
-
readonly eventTypes: ReadonlyArray<"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" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.
|
|
1656
|
+
readonly eventTypes: ReadonlyArray<"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" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.spam" | "mailbox.message.discarded" | "mailbox.thread.deleted" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook">;
|
|
1633
1657
|
readonly channels?: ReadonlyArray<"sms" | "whatsapp" | "email"> | null;
|
|
1634
1658
|
readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null;
|
|
1635
1659
|
readonly namespaceId?: NamespaceId | null;
|
|
@@ -1641,7 +1665,7 @@ export type CreateWebhookPayload = {
|
|
|
1641
1665
|
export declare const CreateWebhookPayload: Schema.Struct<{
|
|
1642
1666
|
readonly name: Schema.String;
|
|
1643
1667
|
readonly url: Schema.String;
|
|
1644
|
-
readonly eventTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.
|
|
1668
|
+
readonly eventTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
1645
1669
|
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
1646
1670
|
readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "MailboxId">]>, readonly [Schema.brand<Schema.String, "MailboxId">]>, Schema.Null]>>;
|
|
1647
1671
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
@@ -1651,7 +1675,7 @@ export declare const CreateWebhookPayload: Schema.Struct<{
|
|
|
1651
1675
|
export type UpdateWebhookPayload = {
|
|
1652
1676
|
readonly name?: string | null;
|
|
1653
1677
|
readonly url?: string | null;
|
|
1654
|
-
readonly eventTypes?: ReadonlyArray<"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" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.
|
|
1678
|
+
readonly eventTypes?: ReadonlyArray<"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" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.spam" | "mailbox.message.discarded" | "mailbox.thread.deleted" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook"> | null;
|
|
1655
1679
|
readonly channels?: ReadonlyArray<"sms" | "whatsapp" | "email"> | null;
|
|
1656
1680
|
readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null;
|
|
1657
1681
|
readonly namespaceId?: NamespaceId | null;
|
|
@@ -1663,7 +1687,7 @@ export type UpdateWebhookPayload = {
|
|
|
1663
1687
|
export declare const UpdateWebhookPayload: Schema.Struct<{
|
|
1664
1688
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1665
1689
|
readonly url: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1666
|
-
readonly eventTypes: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.
|
|
1690
|
+
readonly eventTypes: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"email.sending.paused">, Schema.Literal<"email.sending.resumed">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.spam">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.thread.deleted">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>, Schema.Null]>>;
|
|
1667
1691
|
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
1668
1692
|
readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "MailboxId">]>, readonly [Schema.brand<Schema.String, "MailboxId">]>, Schema.Null]>>;
|
|
1669
1693
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
@@ -1810,6 +1834,36 @@ export declare const RespondToOnboardingInformationRequestInput: Schema.Struct<{
|
|
|
1810
1834
|
readonly responseText: Schema.String;
|
|
1811
1835
|
readonly evidenceMediaIds: Schema.$Array<Schema.brand<Schema.String, "MediaId">>;
|
|
1812
1836
|
}>;
|
|
1837
|
+
export type RecipePreviewPayload = {
|
|
1838
|
+
readonly templateId: TemplateId;
|
|
1839
|
+
readonly publicationId: TemplatePublicationId;
|
|
1840
|
+
readonly fixture?: string;
|
|
1841
|
+
readonly templateData?: JsonObject;
|
|
1842
|
+
readonly channel: "email";
|
|
1843
|
+
} | {
|
|
1844
|
+
readonly templateId: TemplateId;
|
|
1845
|
+
readonly publicationId: TemplatePublicationId;
|
|
1846
|
+
readonly fixture?: string;
|
|
1847
|
+
readonly templateData?: JsonObject;
|
|
1848
|
+
readonly channel: "whatsapp";
|
|
1849
|
+
readonly eventBindings?: {
|
|
1850
|
+
readonly [x: string]: string;
|
|
1851
|
+
};
|
|
1852
|
+
};
|
|
1853
|
+
export declare const RecipePreviewPayload: Schema.Union<readonly [Schema.Struct<{
|
|
1854
|
+
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
1855
|
+
readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
|
|
1856
|
+
readonly fixture: Schema.optionalKey<Schema.String>;
|
|
1857
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
1858
|
+
readonly channel: Schema.Literal<"email">;
|
|
1859
|
+
}>, Schema.Struct<{
|
|
1860
|
+
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
1861
|
+
readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
|
|
1862
|
+
readonly fixture: Schema.optionalKey<Schema.String>;
|
|
1863
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
1864
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
1865
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1866
|
+
}>]>;
|
|
1813
1867
|
export type RenderTemplatePublicationPayload = {
|
|
1814
1868
|
readonly data: {
|
|
1815
1869
|
readonly [x: string]: JsonValue;
|
|
@@ -1890,14 +1944,6 @@ export type RotateWhatsAppFlowEncryptionKeyPayload = {
|
|
|
1890
1944
|
export declare const RotateWhatsAppFlowEncryptionKeyPayload: Schema.Struct<{
|
|
1891
1945
|
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
1892
1946
|
}>;
|
|
1893
|
-
export type SubmitTemplateRegistrationPayload = {
|
|
1894
|
-
readonly provider: "whatsapp";
|
|
1895
|
-
readonly businessAccountId?: WhatsAppBusinessAccountId;
|
|
1896
|
-
};
|
|
1897
|
-
export declare const SubmitTemplateRegistrationPayload: Schema.Struct<{
|
|
1898
|
-
readonly provider: Schema.Literal<"whatsapp">;
|
|
1899
|
-
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
1900
|
-
}>;
|
|
1901
1947
|
export type CampaignAudience = {
|
|
1902
1948
|
readonly topicId: TopicId;
|
|
1903
1949
|
readonly includeTags?: ReadonlyArray<string> | null;
|
|
@@ -2053,6 +2099,110 @@ export declare const UpdateIntegrationPayload: Schema.Struct<{
|
|
|
2053
2099
|
}>>;
|
|
2054
2100
|
readonly settings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2055
2101
|
}>;
|
|
2102
|
+
export type ActivateRecipeSetup = {
|
|
2103
|
+
readonly revision: string;
|
|
2104
|
+
readonly selection: {
|
|
2105
|
+
readonly channel: "email";
|
|
2106
|
+
readonly publicationId: TemplatePublicationId;
|
|
2107
|
+
readonly senderId?: EmailSenderId;
|
|
2108
|
+
} | {
|
|
2109
|
+
readonly channel: "whatsapp";
|
|
2110
|
+
readonly whatsappAccountId: WhatsAppBusinessAccountId;
|
|
2111
|
+
readonly registrationId: TemplateRegistrationId;
|
|
2112
|
+
readonly eventBindings: {
|
|
2113
|
+
readonly [x: string]: string;
|
|
2114
|
+
};
|
|
2115
|
+
};
|
|
2116
|
+
};
|
|
2117
|
+
export declare const ActivateRecipeSetup: Schema.Struct<{
|
|
2118
|
+
readonly revision: Schema.String;
|
|
2119
|
+
readonly selection: Schema.Union<readonly [Schema.Struct<{
|
|
2120
|
+
readonly channel: Schema.Literal<"email">;
|
|
2121
|
+
readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
|
|
2122
|
+
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
2123
|
+
}>, Schema.Struct<{
|
|
2124
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
2125
|
+
readonly whatsappAccountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
|
|
2126
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
2127
|
+
readonly eventBindings: Schema.$Record<Schema.String, Schema.String>;
|
|
2128
|
+
}>]>;
|
|
2129
|
+
}>;
|
|
2130
|
+
export type RecipeTestPayload = {
|
|
2131
|
+
readonly templateId: TemplateId;
|
|
2132
|
+
readonly publicationId: TemplatePublicationId;
|
|
2133
|
+
readonly fixture?: string;
|
|
2134
|
+
readonly templateData?: JsonObject;
|
|
2135
|
+
readonly channel: "email";
|
|
2136
|
+
readonly requestId: string;
|
|
2137
|
+
readonly mailboxEndpointId: MailboxEndpointId;
|
|
2138
|
+
readonly topicId?: TopicId;
|
|
2139
|
+
readonly senderId?: EmailSenderId;
|
|
2140
|
+
} | {
|
|
2141
|
+
readonly templateId: TemplateId;
|
|
2142
|
+
readonly publicationId: TemplatePublicationId;
|
|
2143
|
+
readonly fixture?: string;
|
|
2144
|
+
readonly templateData?: JsonObject;
|
|
2145
|
+
readonly channel: "whatsapp";
|
|
2146
|
+
readonly eventBindings?: {
|
|
2147
|
+
readonly [x: string]: string;
|
|
2148
|
+
};
|
|
2149
|
+
readonly requestId: string;
|
|
2150
|
+
readonly mailboxEndpointId: MailboxEndpointId;
|
|
2151
|
+
readonly topicId?: TopicId;
|
|
2152
|
+
readonly businessAccountId: WhatsAppBusinessAccountId;
|
|
2153
|
+
readonly registrationId: TemplateRegistrationId;
|
|
2154
|
+
readonly challengeId: string;
|
|
2155
|
+
};
|
|
2156
|
+
export declare const RecipeTestPayload: Schema.Union<readonly [Schema.Struct<{
|
|
2157
|
+
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
2158
|
+
readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
|
|
2159
|
+
readonly fixture: Schema.optionalKey<Schema.String>;
|
|
2160
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2161
|
+
readonly channel: Schema.Literal<"email">;
|
|
2162
|
+
readonly requestId: Schema.String;
|
|
2163
|
+
readonly mailboxEndpointId: Schema.brand<Schema.String, "MailboxEndpointId">;
|
|
2164
|
+
readonly topicId: Schema.optionalKey<Schema.brand<Schema.String, "TopicId">>;
|
|
2165
|
+
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
2166
|
+
}>, Schema.Struct<{
|
|
2167
|
+
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
2168
|
+
readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
|
|
2169
|
+
readonly fixture: Schema.optionalKey<Schema.String>;
|
|
2170
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2171
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
2172
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2173
|
+
readonly requestId: Schema.String;
|
|
2174
|
+
readonly mailboxEndpointId: Schema.brand<Schema.String, "MailboxEndpointId">;
|
|
2175
|
+
readonly topicId: Schema.optionalKey<Schema.brand<Schema.String, "TopicId">>;
|
|
2176
|
+
readonly businessAccountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
|
|
2177
|
+
readonly registrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
2178
|
+
readonly challengeId: Schema.String;
|
|
2179
|
+
}>]>;
|
|
2180
|
+
export type RecipeSetupReferences = {
|
|
2181
|
+
readonly channel: "email" | "whatsapp";
|
|
2182
|
+
readonly templateFamilyId?: TemplateFamilyId;
|
|
2183
|
+
readonly integrationAccountId?: IntegrationAccountId;
|
|
2184
|
+
readonly publicationId?: TemplatePublicationId;
|
|
2185
|
+
readonly senderId?: EmailSenderId;
|
|
2186
|
+
readonly whatsappAccountId?: WhatsAppBusinessAccountId;
|
|
2187
|
+
readonly registrationId?: TemplateRegistrationId;
|
|
2188
|
+
readonly mailboxEndpointId?: MailboxEndpointId;
|
|
2189
|
+
readonly journeyId?: JourneyId;
|
|
2190
|
+
readonly eventBindings?: {
|
|
2191
|
+
readonly [x: string]: string;
|
|
2192
|
+
};
|
|
2193
|
+
};
|
|
2194
|
+
export declare const RecipeSetupReferences: Schema.Struct<{
|
|
2195
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>;
|
|
2196
|
+
readonly templateFamilyId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateFamilyId">>;
|
|
2197
|
+
readonly integrationAccountId: Schema.optionalKey<Schema.brand<Schema.String, "IntegrationAccountId">>;
|
|
2198
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
2199
|
+
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
2200
|
+
readonly whatsappAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
2201
|
+
readonly registrationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateRegistrationId">>;
|
|
2202
|
+
readonly mailboxEndpointId: Schema.optionalKey<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
2203
|
+
readonly journeyId: Schema.optionalKey<Schema.brand<Schema.String, "JourneyId">>;
|
|
2204
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
2205
|
+
}>;
|
|
2056
2206
|
export type UpdateJourneyPayload = {
|
|
2057
2207
|
readonly name: JourneyName;
|
|
2058
2208
|
};
|
|
@@ -2067,8 +2217,8 @@ export declare const JourneyCustomEventTrigger: Schema.Struct<{
|
|
|
2067
2217
|
readonly type: Schema.Literal<"event">;
|
|
2068
2218
|
readonly eventName: Schema.String;
|
|
2069
2219
|
}>;
|
|
2070
|
-
export type JourneyEventName = JourneyCustomEventName | "contact.created" | "contact.tag_added" | "contact.joined_group";
|
|
2071
|
-
export declare const JourneyEventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
2220
|
+
export type JourneyEventName = JourneyCustomEventName | "contact.created" | "contact.tag_added" | "contact.joined_group" | "contact.connection_completed";
|
|
2221
|
+
export declare const JourneyEventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
2072
2222
|
export type JourneyNextEdge = {
|
|
2073
2223
|
readonly nodeId: JourneyNodeId;
|
|
2074
2224
|
};
|
|
@@ -2290,7 +2440,7 @@ export type UpdateMailboxThreadPayload = {
|
|
|
2290
2440
|
readonly reminderInboxAt?: string | null;
|
|
2291
2441
|
};
|
|
2292
2442
|
export declare const UpdateMailboxThreadPayload: Schema.Struct<{
|
|
2293
|
-
readonly folder: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"inbox">, Schema.Literal<"assigned">, Schema.Literal<"pending">, Schema.Literal<"sent">, Schema.Literal<"archived">, Schema.Literal<"trash">]>, Schema.Null]>>;
|
|
2443
|
+
readonly folder: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"inbox">, Schema.Literal<"assigned">, Schema.Literal<"pending">, Schema.Literal<"sent">, Schema.Literal<"archived">, Schema.Literal<"trash">, Schema.Literal<"spam">]>, Schema.Null]>>;
|
|
2294
2444
|
readonly priority: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"low">, Schema.Literal<"normal">, Schema.Literal<"high">, Schema.Literal<"urgent">]>, Schema.Null]>>;
|
|
2295
2445
|
readonly done: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2296
2446
|
readonly closed: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
@@ -2537,6 +2687,18 @@ export declare const UpdateTemplatePayload: Schema.Struct<{
|
|
|
2537
2687
|
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2538
2688
|
}>;
|
|
2539
2689
|
}>;
|
|
2690
|
+
export type TemplateRegistrationApproval = {
|
|
2691
|
+
readonly publicationId: TemplatePublicationId;
|
|
2692
|
+
readonly businessAccountId: WhatsAppBusinessAccountId_2;
|
|
2693
|
+
readonly expectedWabaId: string;
|
|
2694
|
+
readonly expectedWorkspaceRevision: string;
|
|
2695
|
+
};
|
|
2696
|
+
export declare const TemplateRegistrationApproval: Schema.Struct<{
|
|
2697
|
+
readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
|
|
2698
|
+
readonly businessAccountId: Schema.String;
|
|
2699
|
+
readonly expectedWabaId: Schema.String;
|
|
2700
|
+
readonly expectedWorkspaceRevision: Schema.String;
|
|
2701
|
+
}>;
|
|
2540
2702
|
export type CreateWhatsAppSetupLinkPayload = {
|
|
2541
2703
|
readonly namespaceId: NamespaceId;
|
|
2542
2704
|
readonly redirectUrl?: WhatsAppSetupLinkRedirectUrl | null;
|
|
@@ -2741,7 +2903,7 @@ export declare const ApiKeyAccess: Schema.Union<readonly [Schema.Struct<{
|
|
|
2741
2903
|
readonly analytics: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
2742
2904
|
}>;
|
|
2743
2905
|
readonly mailboxes: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2744
|
-
readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"
|
|
2906
|
+
readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>;
|
|
2745
2907
|
readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "MailboxId">]>, readonly [Schema.brand<Schema.String, "MailboxId">]>, Schema.Null]>>;
|
|
2746
2908
|
}>, Schema.Null]>>;
|
|
2747
2909
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
@@ -3073,6 +3235,25 @@ export declare const MessagePage: Schema.Struct<{
|
|
|
3073
3235
|
}>>;
|
|
3074
3236
|
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3075
3237
|
}>;
|
|
3238
|
+
export type ReplaceRecipeSetup = {
|
|
3239
|
+
readonly references: RecipeSetupReferences;
|
|
3240
|
+
readonly revision: string | null;
|
|
3241
|
+
};
|
|
3242
|
+
export declare const ReplaceRecipeSetup: Schema.Struct<{
|
|
3243
|
+
readonly references: Schema.Struct<{
|
|
3244
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"whatsapp">]>;
|
|
3245
|
+
readonly templateFamilyId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateFamilyId">>;
|
|
3246
|
+
readonly integrationAccountId: Schema.optionalKey<Schema.brand<Schema.String, "IntegrationAccountId">>;
|
|
3247
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
3248
|
+
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
3249
|
+
readonly whatsappAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
3250
|
+
readonly registrationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateRegistrationId">>;
|
|
3251
|
+
readonly mailboxEndpointId: Schema.optionalKey<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
3252
|
+
readonly journeyId: Schema.optionalKey<Schema.brand<Schema.String, "JourneyId">>;
|
|
3253
|
+
readonly eventBindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
3254
|
+
}>;
|
|
3255
|
+
readonly revision: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3256
|
+
}>;
|
|
3076
3257
|
export type JourneyTrigger = JourneyCustomEventTrigger | JourneyContactCreatedTrigger | JourneyTagAddedTrigger | JourneyGroupJoinedTrigger;
|
|
3077
3258
|
export declare const JourneyTrigger: Schema.Union<readonly [Schema.Struct<{
|
|
3078
3259
|
readonly type: Schema.Literal<"event">;
|
|
@@ -3091,7 +3272,7 @@ export type JourneyWaitForEventConfig = {
|
|
|
3091
3272
|
readonly timeoutSeconds: number;
|
|
3092
3273
|
};
|
|
3093
3274
|
export declare const JourneyWaitForEventConfig: Schema.Struct<{
|
|
3094
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
3275
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
3095
3276
|
readonly timeoutSeconds: Schema.Finite;
|
|
3096
3277
|
}>;
|
|
3097
3278
|
export type JourneyEventPredicate = {
|
|
@@ -3101,14 +3282,14 @@ export type JourneyEventPredicate = {
|
|
|
3101
3282
|
};
|
|
3102
3283
|
export declare const JourneyEventPredicate: Schema.Struct<{
|
|
3103
3284
|
readonly type: Schema.Literal<"event">;
|
|
3104
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
3285
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
3105
3286
|
readonly occurred: Schema.Boolean;
|
|
3106
3287
|
}>;
|
|
3107
3288
|
export type JourneyGoal = {
|
|
3108
3289
|
readonly eventName: JourneyEventName;
|
|
3109
3290
|
};
|
|
3110
3291
|
export declare const JourneyGoal: Schema.Struct<{
|
|
3111
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
3292
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
3112
3293
|
}>;
|
|
3113
3294
|
export type JourneySendEmailNode = {
|
|
3114
3295
|
readonly type: "send_email";
|
|
@@ -3405,6 +3586,21 @@ export declare const OperationAccepted: Schema.Struct<{
|
|
|
3405
3586
|
}>;
|
|
3406
3587
|
}>;
|
|
3407
3588
|
}>;
|
|
3589
|
+
export type SubmitTemplateRegistrationPayload = {
|
|
3590
|
+
readonly provider: "whatsapp";
|
|
3591
|
+
readonly businessAccountId?: WhatsAppBusinessAccountId_1;
|
|
3592
|
+
readonly approval?: TemplateRegistrationApproval;
|
|
3593
|
+
};
|
|
3594
|
+
export declare const SubmitTemplateRegistrationPayload: Schema.Struct<{
|
|
3595
|
+
readonly provider: Schema.Literal<"whatsapp">;
|
|
3596
|
+
readonly businessAccountId: Schema.optionalKey<Schema.String>;
|
|
3597
|
+
readonly approval: Schema.optionalKey<Schema.Struct<{
|
|
3598
|
+
readonly publicationId: Schema.brand<Schema.String, "TemplatePublicationId">;
|
|
3599
|
+
readonly businessAccountId: Schema.String;
|
|
3600
|
+
readonly expectedWabaId: Schema.String;
|
|
3601
|
+
readonly expectedWorkspaceRevision: Schema.String;
|
|
3602
|
+
}>>;
|
|
3603
|
+
}>;
|
|
3408
3604
|
export type SmsCampaignContentInput = {
|
|
3409
3605
|
readonly channel: "sms";
|
|
3410
3606
|
readonly sms: SmsDispatchContent;
|
|
@@ -3874,7 +4070,7 @@ export type JourneyWaitForEventNode = {
|
|
|
3874
4070
|
export declare const JourneyWaitForEventNode: Schema.Struct<{
|
|
3875
4071
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
3876
4072
|
readonly config: Schema.Struct<{
|
|
3877
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
4073
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
3878
4074
|
readonly timeoutSeconds: Schema.Finite;
|
|
3879
4075
|
}>;
|
|
3880
4076
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -3922,7 +4118,7 @@ export declare const JourneyPredicate: Schema.Union<readonly [Schema.Struct<{
|
|
|
3922
4118
|
}>]>;
|
|
3923
4119
|
}>, Schema.Struct<{
|
|
3924
4120
|
readonly type: Schema.Literal<"event">;
|
|
3925
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
4121
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
3926
4122
|
readonly occurred: Schema.Boolean;
|
|
3927
4123
|
}>]>;
|
|
3928
4124
|
declare const MailboxSendRefusedError_base: Schema.Class<MailboxSendRefusedError, Schema.Struct<{
|
|
@@ -4574,7 +4770,7 @@ export declare const JourneyCondition: Schema.Struct<{
|
|
|
4574
4770
|
}>]>;
|
|
4575
4771
|
}>, Schema.Struct<{
|
|
4576
4772
|
readonly type: Schema.Literal<"event">;
|
|
4577
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
4773
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
4578
4774
|
readonly occurred: Schema.Boolean;
|
|
4579
4775
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
4580
4776
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -4612,7 +4808,7 @@ export declare const JourneyCondition: Schema.Struct<{
|
|
|
4612
4808
|
}>]>;
|
|
4613
4809
|
}>, Schema.Struct<{
|
|
4614
4810
|
readonly type: Schema.Literal<"event">;
|
|
4615
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
4811
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
4616
4812
|
readonly occurred: Schema.Boolean;
|
|
4617
4813
|
}>]>]>;
|
|
4618
4814
|
}>;
|
|
@@ -5036,7 +5232,7 @@ export declare const JourneyBranchEdge: Schema.Struct<{
|
|
|
5036
5232
|
}>]>;
|
|
5037
5233
|
}>, Schema.Struct<{
|
|
5038
5234
|
readonly type: Schema.Literal<"event">;
|
|
5039
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
5235
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
5040
5236
|
readonly occurred: Schema.Boolean;
|
|
5041
5237
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
5042
5238
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -5074,7 +5270,7 @@ export declare const JourneyBranchEdge: Schema.Struct<{
|
|
|
5074
5270
|
}>]>;
|
|
5075
5271
|
}>, Schema.Struct<{
|
|
5076
5272
|
readonly type: Schema.Literal<"event">;
|
|
5077
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
5273
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
5078
5274
|
readonly occurred: Schema.Boolean;
|
|
5079
5275
|
}>]>]>;
|
|
5080
5276
|
}>>;
|
|
@@ -5687,7 +5883,7 @@ export declare const JourneyBranchNode: Schema.Struct<{
|
|
|
5687
5883
|
}>]>;
|
|
5688
5884
|
}>, Schema.Struct<{
|
|
5689
5885
|
readonly type: Schema.Literal<"event">;
|
|
5690
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
5886
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
5691
5887
|
readonly occurred: Schema.Boolean;
|
|
5692
5888
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
5693
5889
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -5725,7 +5921,7 @@ export declare const JourneyBranchNode: Schema.Struct<{
|
|
|
5725
5921
|
}>]>;
|
|
5726
5922
|
}>, Schema.Struct<{
|
|
5727
5923
|
readonly type: Schema.Literal<"event">;
|
|
5728
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
5924
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
5729
5925
|
readonly occurred: Schema.Boolean;
|
|
5730
5926
|
}>]>]>;
|
|
5731
5927
|
}>>;
|
|
@@ -6075,7 +6271,7 @@ export declare const JourneyNode: Schema.Union<readonly [Schema.Struct<{
|
|
|
6075
6271
|
}>, Schema.Struct<{
|
|
6076
6272
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
6077
6273
|
readonly config: Schema.Struct<{
|
|
6078
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
6274
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
6079
6275
|
readonly timeoutSeconds: Schema.Finite;
|
|
6080
6276
|
}>;
|
|
6081
6277
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -6128,7 +6324,7 @@ export declare const JourneyNode: Schema.Union<readonly [Schema.Struct<{
|
|
|
6128
6324
|
}>]>;
|
|
6129
6325
|
}>, Schema.Struct<{
|
|
6130
6326
|
readonly type: Schema.Literal<"event">;
|
|
6131
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
6327
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
6132
6328
|
readonly occurred: Schema.Boolean;
|
|
6133
6329
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
6134
6330
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -6166,7 +6362,7 @@ export declare const JourneyNode: Schema.Union<readonly [Schema.Struct<{
|
|
|
6166
6362
|
}>]>;
|
|
6167
6363
|
}>, Schema.Struct<{
|
|
6168
6364
|
readonly type: Schema.Literal<"event">;
|
|
6169
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
6365
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
6170
6366
|
readonly occurred: Schema.Boolean;
|
|
6171
6367
|
}>]>]>;
|
|
6172
6368
|
}>>;
|
|
@@ -6478,7 +6674,7 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
6478
6674
|
}>, Schema.Struct<{
|
|
6479
6675
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
6480
6676
|
readonly config: Schema.Struct<{
|
|
6481
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
6677
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
6482
6678
|
readonly timeoutSeconds: Schema.Finite;
|
|
6483
6679
|
}>;
|
|
6484
6680
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -6531,7 +6727,7 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
6531
6727
|
}>]>;
|
|
6532
6728
|
}>, Schema.Struct<{
|
|
6533
6729
|
readonly type: Schema.Literal<"event">;
|
|
6534
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
6730
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
6535
6731
|
readonly occurred: Schema.Boolean;
|
|
6536
6732
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
6537
6733
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -6569,7 +6765,7 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
6569
6765
|
}>]>;
|
|
6570
6766
|
}>, Schema.Struct<{
|
|
6571
6767
|
readonly type: Schema.Literal<"event">;
|
|
6572
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
6768
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
6573
6769
|
readonly occurred: Schema.Boolean;
|
|
6574
6770
|
}>]>]>;
|
|
6575
6771
|
}>>;
|
|
@@ -6597,7 +6793,7 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
6597
6793
|
readonly next: Schema.Tuple<readonly []>;
|
|
6598
6794
|
}>]>>;
|
|
6599
6795
|
readonly goal: Schema.optionalKey<Schema.Struct<{
|
|
6600
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
6796
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
6601
6797
|
}>>;
|
|
6602
6798
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
6603
6799
|
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
@@ -6953,7 +7149,7 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
6953
7149
|
}>, Schema.Struct<{
|
|
6954
7150
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
6955
7151
|
readonly config: Schema.Struct<{
|
|
6956
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
7152
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
6957
7153
|
readonly timeoutSeconds: Schema.Finite;
|
|
6958
7154
|
}>;
|
|
6959
7155
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -7006,7 +7202,7 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
7006
7202
|
}>]>;
|
|
7007
7203
|
}>, Schema.Struct<{
|
|
7008
7204
|
readonly type: Schema.Literal<"event">;
|
|
7009
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
7205
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
7010
7206
|
readonly occurred: Schema.Boolean;
|
|
7011
7207
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
7012
7208
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -7044,7 +7240,7 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
7044
7240
|
}>]>;
|
|
7045
7241
|
}>, Schema.Struct<{
|
|
7046
7242
|
readonly type: Schema.Literal<"event">;
|
|
7047
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
7243
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
7048
7244
|
readonly occurred: Schema.Boolean;
|
|
7049
7245
|
}>]>]>;
|
|
7050
7246
|
}>>;
|
|
@@ -7072,7 +7268,7 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
7072
7268
|
readonly next: Schema.Tuple<readonly []>;
|
|
7073
7269
|
}>]>>;
|
|
7074
7270
|
readonly goal: Schema.optionalKey<Schema.Struct<{
|
|
7075
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
7271
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
7076
7272
|
}>>;
|
|
7077
7273
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
7078
7274
|
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|
|
@@ -7143,7 +7339,7 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
7143
7339
|
}>, Schema.Struct<{
|
|
7144
7340
|
readonly type: Schema.Literal<"wait_for_event">;
|
|
7145
7341
|
readonly config: Schema.Struct<{
|
|
7146
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
7342
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
7147
7343
|
readonly timeoutSeconds: Schema.Finite;
|
|
7148
7344
|
}>;
|
|
7149
7345
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
@@ -7196,7 +7392,7 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
7196
7392
|
}>]>;
|
|
7197
7393
|
}>, Schema.Struct<{
|
|
7198
7394
|
readonly type: Schema.Literal<"event">;
|
|
7199
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
7395
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
7200
7396
|
readonly occurred: Schema.Boolean;
|
|
7201
7397
|
}>]>]>, readonly [Schema.Union<readonly [Schema.Struct<{
|
|
7202
7398
|
readonly type: Schema.Literal<"tag">;
|
|
@@ -7234,7 +7430,7 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
7234
7430
|
}>]>;
|
|
7235
7431
|
}>, Schema.Struct<{
|
|
7236
7432
|
readonly type: Schema.Literal<"event">;
|
|
7237
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
7433
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
7238
7434
|
readonly occurred: Schema.Boolean;
|
|
7239
7435
|
}>]>]>;
|
|
7240
7436
|
}>>;
|
|
@@ -7262,7 +7458,7 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
7262
7458
|
readonly next: Schema.Tuple<readonly []>;
|
|
7263
7459
|
}>]>>;
|
|
7264
7460
|
readonly goal: Schema.optionalKey<Schema.Struct<{
|
|
7265
|
-
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">]>]>;
|
|
7461
|
+
readonly eventName: Schema.Union<readonly [Schema.String, Schema.Union<readonly [Schema.Literal<"contact.created">, Schema.Literal<"contact.tag_added">, Schema.Literal<"contact.joined_group">, Schema.Literal<"contact.connection_completed">]>]>;
|
|
7266
7462
|
}>>;
|
|
7267
7463
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
7268
7464
|
readonly enrollment: Schema.optionalKey<Schema.Struct<{
|