samva 0.34.0 → 0.35.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/README.md +1 -1
- package/dist/client/sdk.gen.d.ts +224 -250
- package/dist/client/sdk.gen.js +84 -210
- package/dist/client/types.gen.d.ts +2894 -401
- package/dist/effect/agents.d.ts +28 -13
- package/dist/effect/agents.js +5 -1
- package/dist/effect/analytics.d.ts +15 -15
- package/dist/effect/api-keys.d.ts +27 -18
- package/dist/effect/campaigns.d.ts +721 -65
- package/dist/effect/categories.d.ts +3 -3
- package/dist/effect/contact-groups.d.ts +15 -15
- package/dist/effect/contacts.d.ts +56 -52
- package/dist/effect/conversations.d.ts +45 -45
- package/dist/effect/email.d.ts +82 -82
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +11 -11
- package/dist/effect/extensions.d.ts +16 -16
- package/dist/effect/generated/agents.d.ts +1063 -33
- package/dist/effect/generated/agents.js +133 -11
- package/dist/effect/generated/analytics.d.ts +109 -136
- package/dist/effect/generated/analytics.js +65 -36
- package/dist/effect/generated/api-keys.d.ts +240 -19
- package/dist/effect/generated/api-keys.js +24 -8
- package/dist/effect/generated/attachments.d.ts +89 -1
- package/dist/effect/generated/attachments.js +10 -2
- package/dist/effect/generated/brands.d.ts +133 -1
- package/dist/effect/generated/brands.js +22 -10
- package/dist/effect/generated/campaigns.d.ts +1442 -140
- package/dist/effect/generated/campaigns.js +82 -20
- package/dist/effect/generated/contact-events.d.ts +26 -4
- package/dist/effect/generated/contact-events.js +5 -3
- package/dist/effect/generated/contact-groups.d.ts +233 -13
- package/dist/effect/generated/contact-groups.js +33 -17
- package/dist/effect/generated/contacts.d.ts +634 -96
- package/dist/effect/generated/contacts.js +82 -20
- package/dist/effect/generated/conversations.d.ts +398 -106
- package/dist/effect/generated/conversations.js +96 -22
- package/dist/effect/generated/custom-fields.d.ts +89 -1
- package/dist/effect/generated/custom-fields.js +11 -3
- package/dist/effect/generated/email.d.ts +1447 -83
- package/dist/effect/generated/email.js +167 -43
- package/dist/effect/generated/events.d.ts +51 -7
- package/dist/effect/generated/events.js +9 -5
- package/dist/effect/generated/extension-installations.d.ts +208 -10
- package/dist/effect/generated/extension-installations.js +26 -8
- package/dist/effect/generated/extensions.d.ts +123 -13
- package/dist/effect/generated/extensions.js +20 -10
- package/dist/effect/generated/feedback.d.ts +23 -1
- package/dist/effect/generated/feedback.js +6 -4
- package/dist/effect/generated/journeys.d.ts +684 -16
- package/dist/effect/generated/journeys.js +37 -9
- package/dist/effect/generated/mailboxes.d.ts +3085 -627
- package/dist/effect/generated/mailboxes.js +340 -141
- package/dist/effect/generated/media.d.ts +125 -15
- package/dist/effect/generated/media.js +15 -2
- package/dist/effect/generated/messages.d.ts +2036 -117
- package/dist/effect/generated/messages.js +286 -54
- package/dist/effect/generated/namespaces.d.ts +209 -25
- package/dist/effect/generated/namespaces.js +27 -9
- package/dist/effect/generated/newsletter-domains.d.ts +98 -12
- package/dist/effect/generated/newsletter-domains.js +20 -13
- package/dist/effect/generated/newsletter-issues.d.ts +354 -19
- package/dist/effect/generated/newsletter-issues.js +162 -98
- package/dist/effect/generated/newsletters.d.ts +123 -13
- package/dist/effect/generated/newsletters.js +19 -9
- package/dist/effect/generated/operations.d.ts +76 -10
- package/dist/effect/generated/operations.js +12 -6
- package/dist/effect/generated/organizations.d.ts +287 -7
- package/dist/effect/generated/organizations.js +33 -5
- package/dist/effect/generated/scheduled-messages.d.ts +4427 -99
- package/dist/effect/generated/scheduled-messages.js +71 -12
- package/dist/effect/generated/shared.d.ts +2213 -190
- package/dist/effect/generated/shared.js +527 -76
- package/dist/effect/generated/subscriptions.d.ts +23 -1
- package/dist/effect/generated/subscriptions.js +6 -4
- package/dist/effect/generated/templates.d.ts +1718 -136
- package/dist/effect/generated/templates.js +421 -226
- package/dist/effect/generated/topic-forms.d.ts +111 -1
- package/dist/effect/generated/topic-forms.js +23 -13
- package/dist/effect/generated/topics.d.ts +353 -43
- package/dist/effect/generated/topics.js +67 -19
- package/dist/effect/generated/webhooks.d.ts +296 -38
- package/dist/effect/generated/webhooks.js +58 -16
- package/dist/effect/generated/whoami.d.ts +35 -1
- package/dist/effect/generated/whoami.js +4 -2
- package/dist/effect/generated-metadata.d.ts +20 -0
- package/dist/effect/generated-metadata.js +10 -0
- package/dist/effect/index.js +2 -2
- package/dist/effect/internal/client.js +1 -1
- package/dist/effect/internal/email-sender.d.ts +1 -1
- package/dist/effect/internal/send.d.ts +1 -1
- package/dist/effect/journeys.d.ts +105 -19
- package/dist/effect/mailboxes.d.ts +405 -174
- package/dist/effect/media.d.ts +1 -1
- package/dist/effect/messages.d.ts +40 -40
- package/dist/effect/namespaces.d.ts +15 -15
- package/dist/effect/newsletter-domains.d.ts +5 -5
- package/dist/effect/newsletters.d.ts +1 -1
- package/dist/effect/operations.d.ts +11 -11
- package/dist/effect/organizations.d.ts +2 -2
- package/dist/effect/scheduled-messages.d.ts +863 -8
- package/dist/effect/templates.d.ts +37 -37
- package/dist/effect/topics.d.ts +21 -21
- package/dist/effect/webhooks.d.ts +22 -22
- package/dist/index.js +2 -2
- package/dist/normalize.js +13 -1
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +1 -1
- package/dist/promises/client.js +2 -2
- package/dist/promises/errors.gen.d.ts +22 -2
- package/dist/promises/errors.gen.js +60 -2
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +9 -0
- package/dist/service-map.js +5 -0
- package/package.json +9 -8
|
@@ -6,10 +6,15 @@ export type JsonValue = string | number | boolean | null | ReadonlyArray<JsonVal
|
|
|
6
6
|
readonly [x: string]: JsonValue;
|
|
7
7
|
};
|
|
8
8
|
export declare const JsonValue: Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>;
|
|
9
|
-
export type Cursor = string;
|
|
10
|
-
export declare const Cursor: Schema.String;
|
|
11
9
|
export type NamespaceId = string & EffectBrand.Brand<"NamespaceId">;
|
|
12
10
|
export declare const NamespaceId: Schema.brand<Schema.String, "NamespaceId">;
|
|
11
|
+
declare const MalformedRequestError_base: Schema.Class<MalformedRequestError, Schema.Struct<{
|
|
12
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
13
|
+
readonly message: Schema.String;
|
|
14
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
15
|
+
}>, import("effect/Cause").YieldableError>;
|
|
16
|
+
export declare class MalformedRequestError extends MalformedRequestError_base {
|
|
17
|
+
}
|
|
13
18
|
declare const UnauthorizedError_base: Schema.Class<UnauthorizedError, Schema.Struct<{
|
|
14
19
|
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
15
20
|
readonly message: Schema.String;
|
|
@@ -44,6 +49,8 @@ export declare class GatewayTimeoutError extends GatewayTimeoutError_base {
|
|
|
44
49
|
}
|
|
45
50
|
export type AgentName = string;
|
|
46
51
|
export declare const AgentName: Schema.String;
|
|
52
|
+
export type KnowledgeSourceId = string & EffectBrand.Brand<"KnowledgeSourceId">;
|
|
53
|
+
export declare const KnowledgeSourceId: Schema.brand<Schema.String, "KnowledgeSourceId">;
|
|
47
54
|
export type MailboxEndpointId = string & EffectBrand.Brand<"MailboxEndpointId">;
|
|
48
55
|
export declare const MailboxEndpointId: Schema.brand<Schema.String, "MailboxEndpointId">;
|
|
49
56
|
export type IntegrationId = string & EffectBrand.Brand<"IntegrationId">;
|
|
@@ -68,12 +75,25 @@ export type AgentMode = "live" | "supervised";
|
|
|
68
75
|
export declare const AgentMode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
69
76
|
export type AgentModel = "standard" | "max";
|
|
70
77
|
export declare const AgentModel: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
78
|
+
export type CatalogModelId = string;
|
|
79
|
+
export declare const CatalogModelId: Schema.String;
|
|
80
|
+
export type AgentReasoning = "auto" | "low" | "medium" | "high";
|
|
81
|
+
export declare const AgentReasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
71
82
|
export type TimeZone = string;
|
|
72
83
|
export declare const TimeZone: Schema.String;
|
|
73
84
|
export type Weekday = "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
|
|
74
85
|
export declare const Weekday: Schema.Union<readonly [Schema.Literal<"monday">, Schema.Literal<"tuesday">, Schema.Literal<"wednesday">, Schema.Literal<"thursday">, Schema.Literal<"friday">, Schema.Literal<"saturday">, Schema.Literal<"sunday">]>;
|
|
75
86
|
export type ClockTime = string;
|
|
76
87
|
export declare const ClockTime: Schema.String;
|
|
88
|
+
declare const PaymentRequiredError_base: Schema.Class<PaymentRequiredError, Schema.Struct<{
|
|
89
|
+
readonly _tag: Schema.tag<"PaymentRequiredError">;
|
|
90
|
+
readonly message: Schema.String;
|
|
91
|
+
readonly resource: Schema.String;
|
|
92
|
+
readonly currentUsage: Schema.Finite;
|
|
93
|
+
readonly limit: Schema.Finite;
|
|
94
|
+
}>, import("effect/Cause").YieldableError>;
|
|
95
|
+
export declare class PaymentRequiredError extends PaymentRequiredError_base {
|
|
96
|
+
}
|
|
77
97
|
declare const ResourceNotFoundError_base: Schema.Class<ResourceNotFoundError, Schema.Struct<{
|
|
78
98
|
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
79
99
|
readonly resource: Schema.String;
|
|
@@ -82,6 +102,8 @@ declare const ResourceNotFoundError_base: Schema.Class<ResourceNotFoundError, Sc
|
|
|
82
102
|
}>, import("effect/Cause").YieldableError>;
|
|
83
103
|
export declare class ResourceNotFoundError extends ResourceNotFoundError_base {
|
|
84
104
|
}
|
|
105
|
+
export type MonthlySpendCapDollars = number;
|
|
106
|
+
export declare const MonthlySpendCapDollars: Schema.Finite;
|
|
85
107
|
declare const ConflictError_base: Schema.Class<ConflictError, Schema.Struct<{
|
|
86
108
|
readonly _tag: Schema.tag<"ConflictError">;
|
|
87
109
|
readonly message: Schema.String;
|
|
@@ -90,8 +112,6 @@ declare const ConflictError_base: Schema.Class<ConflictError, Schema.Struct<{
|
|
|
90
112
|
}>, import("effect/Cause").YieldableError>;
|
|
91
113
|
export declare class ConflictError extends ConflictError_base {
|
|
92
114
|
}
|
|
93
|
-
export type VersionCursor = string;
|
|
94
|
-
export declare const VersionCursor: Schema.String;
|
|
95
115
|
declare const AnalyticsQueryError_base: Schema.Class<AnalyticsQueryError, Schema.Struct<{
|
|
96
116
|
readonly _tag: Schema.tag<"AnalyticsQueryError">;
|
|
97
117
|
readonly message: Schema.String;
|
|
@@ -101,8 +121,11 @@ export declare class AnalyticsQueryError extends AnalyticsQueryError_base {
|
|
|
101
121
|
export type ApiKeyResourceAccess = {
|
|
102
122
|
readonly messages?: "read" | "write" | null;
|
|
103
123
|
readonly email?: "read" | "write" | null;
|
|
124
|
+
readonly sms?: "read" | "write" | null;
|
|
125
|
+
readonly whatsapp?: "read" | "write" | null;
|
|
104
126
|
readonly domains?: "read" | "write" | null;
|
|
105
127
|
readonly phoneNumbers?: "read" | "write" | null;
|
|
128
|
+
readonly whatsappAccounts?: "read" | "write" | null;
|
|
106
129
|
readonly contacts?: "read" | "write" | null;
|
|
107
130
|
readonly conversations?: "read" | "write" | null;
|
|
108
131
|
readonly templates?: "read" | "write" | null;
|
|
@@ -116,8 +139,11 @@ export type ApiKeyResourceAccess = {
|
|
|
116
139
|
export declare const ApiKeyResourceAccess: Schema.Struct<{
|
|
117
140
|
readonly messages: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
118
141
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
142
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
143
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
119
144
|
readonly domains: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
120
145
|
readonly phoneNumbers: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
146
|
+
readonly whatsappAccounts: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
121
147
|
readonly contacts: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
122
148
|
readonly conversations: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
123
149
|
readonly templates: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
@@ -132,15 +158,6 @@ export type MailboxId = string & EffectBrand.Brand<"MailboxId">;
|
|
|
132
158
|
export declare const MailboxId: Schema.brand<Schema.String, "MailboxId">;
|
|
133
159
|
export type MailboxSendMode = "send" | "approval";
|
|
134
160
|
export declare const MailboxSendMode: Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"approval">]>;
|
|
135
|
-
declare const PaymentRequiredError_base: Schema.Class<PaymentRequiredError, Schema.Struct<{
|
|
136
|
-
readonly _tag: Schema.tag<"PaymentRequiredError">;
|
|
137
|
-
readonly message: Schema.String;
|
|
138
|
-
readonly resource: Schema.String;
|
|
139
|
-
readonly currentUsage: Schema.Finite;
|
|
140
|
-
readonly limit: Schema.Finite;
|
|
141
|
-
}>, import("effect/Cause").YieldableError>;
|
|
142
|
-
export declare class PaymentRequiredError extends PaymentRequiredError_base {
|
|
143
|
-
}
|
|
144
161
|
declare const RateLimitedError_base: Schema.Class<RateLimitedError, Schema.Struct<{
|
|
145
162
|
readonly _tag: Schema.tag<"RateLimitedError">;
|
|
146
163
|
readonly message: Schema.String;
|
|
@@ -248,6 +265,24 @@ export type CampaignContentMetadata = {
|
|
|
248
265
|
readonly [x: string]: JsonValue;
|
|
249
266
|
} | null;
|
|
250
267
|
export declare const CampaignContentMetadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
268
|
+
export type WhatsAppTemplateDispatchData = {
|
|
269
|
+
readonly [x: string]: JsonValue;
|
|
270
|
+
};
|
|
271
|
+
export declare const WhatsAppTemplateDispatchData: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
272
|
+
export type WhatsAppTemplateContactBinding = {
|
|
273
|
+
readonly contact: "id" | "name" | "displayName" | "externalId" | "phone" | "email" | "firstName" | "lastName" | "company" | "jobTitle";
|
|
274
|
+
};
|
|
275
|
+
export declare const WhatsAppTemplateContactBinding: Schema.Struct<{
|
|
276
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
277
|
+
}>;
|
|
278
|
+
export type WhatsAppTemplateCustomFieldBinding = {
|
|
279
|
+
readonly customField: string;
|
|
280
|
+
};
|
|
281
|
+
export declare const WhatsAppTemplateCustomFieldBinding: Schema.Struct<{
|
|
282
|
+
readonly customField: Schema.String;
|
|
283
|
+
}>;
|
|
284
|
+
export type WhatsAppBusinessAccountId = string & EffectBrand.Brand<"WhatsAppBusinessAccountId">;
|
|
285
|
+
export declare const WhatsAppBusinessAccountId: Schema.brand<Schema.String, "WhatsAppBusinessAccountId">;
|
|
251
286
|
export type ContactId = string & EffectBrand.Brand<"ContactId">;
|
|
252
287
|
export declare const ContactId: Schema.brand<Schema.String, "ContactId">;
|
|
253
288
|
export type ContactGroupId = string & EffectBrand.Brand<"ContactGroupId">;
|
|
@@ -472,8 +507,8 @@ export declare const JourneyUpdateTagsConfig: Schema.Struct<{
|
|
|
472
507
|
readonly add: Schema.$Array<Schema.String>;
|
|
473
508
|
readonly remove: Schema.$Array<Schema.String>;
|
|
474
509
|
}>;
|
|
475
|
-
export type MailboxChannel = "email";
|
|
476
|
-
export declare const MailboxChannel: Schema.Literal<"email">;
|
|
510
|
+
export type MailboxChannel = "sms" | "whatsapp" | "email";
|
|
511
|
+
export declare const MailboxChannel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
477
512
|
export type MailboxMetadata = {
|
|
478
513
|
readonly [x: string]: string;
|
|
479
514
|
};
|
|
@@ -557,6 +592,13 @@ export declare const MailboxSendError: Schema.Union<readonly [Schema.TaggedStruc
|
|
|
557
592
|
readonly id: Schema.String;
|
|
558
593
|
readonly message: Schema.String;
|
|
559
594
|
}>]>;
|
|
595
|
+
declare const WhatsAppServiceWindowClosedError_base: Schema.Class<WhatsAppServiceWindowClosedError, Schema.Struct<{
|
|
596
|
+
readonly _tag: Schema.tag<"WhatsAppServiceWindowClosedError">;
|
|
597
|
+
readonly message: Schema.String;
|
|
598
|
+
readonly closedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
599
|
+
}>, import("effect/Cause").YieldableError>;
|
|
600
|
+
export declare class WhatsAppServiceWindowClosedError extends WhatsAppServiceWindowClosedError_base {
|
|
601
|
+
}
|
|
560
602
|
export type MailboxThreadFolder = "inbox" | "assigned" | "pending" | "sent" | "archived" | "trash";
|
|
561
603
|
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">]>;
|
|
562
604
|
export type MailboxGrantRole = "admin" | "collaborator" | "viewer";
|
|
@@ -579,14 +621,214 @@ export declare const EmailSender: Schema.Union<readonly [Schema.Struct<{
|
|
|
579
621
|
readonly email: Schema.String;
|
|
580
622
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
581
623
|
}>, Schema.Null]>;
|
|
624
|
+
export type WhatsAppTextContent = {
|
|
625
|
+
readonly text: string;
|
|
626
|
+
};
|
|
627
|
+
export declare const WhatsAppTextContent: Schema.Struct<{
|
|
628
|
+
readonly text: Schema.String;
|
|
629
|
+
}>;
|
|
630
|
+
export type WhatsAppTemplateData = {
|
|
631
|
+
readonly [x: string]: JsonValue;
|
|
632
|
+
};
|
|
633
|
+
export declare const WhatsAppTemplateData: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
|
|
634
|
+
export type WhatsAppImageLink = {
|
|
635
|
+
readonly type: "image";
|
|
636
|
+
readonly caption?: string;
|
|
637
|
+
readonly url: string;
|
|
638
|
+
};
|
|
639
|
+
export declare const WhatsAppImageLink: Schema.Struct<{
|
|
640
|
+
readonly type: Schema.Literal<"image">;
|
|
641
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
642
|
+
readonly url: Schema.String;
|
|
643
|
+
}>;
|
|
644
|
+
export type WhatsAppVideoLink = {
|
|
645
|
+
readonly type: "video";
|
|
646
|
+
readonly caption?: string;
|
|
647
|
+
readonly url: string;
|
|
648
|
+
};
|
|
649
|
+
export declare const WhatsAppVideoLink: Schema.Struct<{
|
|
650
|
+
readonly type: Schema.Literal<"video">;
|
|
651
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
652
|
+
readonly url: Schema.String;
|
|
653
|
+
}>;
|
|
654
|
+
export type WhatsAppAudioLink = {
|
|
655
|
+
readonly type: "audio";
|
|
656
|
+
readonly url: string;
|
|
657
|
+
};
|
|
658
|
+
export declare const WhatsAppAudioLink: Schema.Struct<{
|
|
659
|
+
readonly type: Schema.Literal<"audio">;
|
|
660
|
+
readonly url: Schema.String;
|
|
661
|
+
}>;
|
|
662
|
+
export type WhatsAppDocumentLink = {
|
|
663
|
+
readonly type: "document";
|
|
664
|
+
readonly caption?: string;
|
|
665
|
+
readonly filename?: string;
|
|
666
|
+
readonly url: string;
|
|
667
|
+
};
|
|
668
|
+
export declare const WhatsAppDocumentLink: Schema.Struct<{
|
|
669
|
+
readonly type: Schema.Literal<"document">;
|
|
670
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
671
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
672
|
+
readonly url: Schema.String;
|
|
673
|
+
}>;
|
|
674
|
+
export type WhatsAppStickerLink = {
|
|
675
|
+
readonly type: "sticker";
|
|
676
|
+
readonly url: string;
|
|
677
|
+
};
|
|
678
|
+
export declare const WhatsAppStickerLink: Schema.Struct<{
|
|
679
|
+
readonly type: Schema.Literal<"sticker">;
|
|
680
|
+
readonly url: Schema.String;
|
|
681
|
+
}>;
|
|
682
|
+
export type WhatsAppTextHeader = {
|
|
683
|
+
readonly type: "text";
|
|
684
|
+
readonly text: string;
|
|
685
|
+
};
|
|
686
|
+
export declare const WhatsAppTextHeader: Schema.Struct<{
|
|
687
|
+
readonly type: Schema.Literal<"text">;
|
|
688
|
+
readonly text: Schema.String;
|
|
689
|
+
}>;
|
|
690
|
+
export type WhatsAppImageHeaderLink = {
|
|
691
|
+
readonly type: "image";
|
|
692
|
+
readonly url: string;
|
|
693
|
+
};
|
|
694
|
+
export declare const WhatsAppImageHeaderLink: Schema.Struct<{
|
|
695
|
+
readonly type: Schema.Literal<"image">;
|
|
696
|
+
readonly url: Schema.String;
|
|
697
|
+
}>;
|
|
698
|
+
export type WhatsAppVideoHeaderLink = {
|
|
699
|
+
readonly type: "video";
|
|
700
|
+
readonly url: string;
|
|
701
|
+
};
|
|
702
|
+
export declare const WhatsAppVideoHeaderLink: Schema.Struct<{
|
|
703
|
+
readonly type: Schema.Literal<"video">;
|
|
704
|
+
readonly url: Schema.String;
|
|
705
|
+
}>;
|
|
706
|
+
export type WhatsAppDocumentHeaderLink = {
|
|
707
|
+
readonly type: "document";
|
|
708
|
+
readonly filename?: string;
|
|
709
|
+
readonly url: string;
|
|
710
|
+
};
|
|
711
|
+
export declare const WhatsAppDocumentHeaderLink: Schema.Struct<{
|
|
712
|
+
readonly type: Schema.Literal<"document">;
|
|
713
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
714
|
+
readonly url: Schema.String;
|
|
715
|
+
}>;
|
|
716
|
+
export type WhatsAppReplyButton = {
|
|
717
|
+
readonly id: string;
|
|
718
|
+
readonly title: string;
|
|
719
|
+
};
|
|
720
|
+
export declare const WhatsAppReplyButton: Schema.Struct<{
|
|
721
|
+
readonly id: Schema.String;
|
|
722
|
+
readonly title: Schema.String;
|
|
723
|
+
}>;
|
|
724
|
+
export type WhatsAppListRow = {
|
|
725
|
+
readonly id: string;
|
|
726
|
+
readonly title: string;
|
|
727
|
+
readonly description?: string;
|
|
728
|
+
};
|
|
729
|
+
export declare const WhatsAppListRow: Schema.Struct<{
|
|
730
|
+
readonly id: Schema.String;
|
|
731
|
+
readonly title: Schema.String;
|
|
732
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
733
|
+
}>;
|
|
734
|
+
export type WhatsAppFlowId = string & EffectBrand.Brand<"WhatsAppFlowId">;
|
|
735
|
+
export declare const WhatsAppFlowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
736
|
+
export type WhatsAppLocation = {
|
|
737
|
+
readonly latitude: number;
|
|
738
|
+
readonly longitude: number;
|
|
739
|
+
readonly name?: string;
|
|
740
|
+
readonly address?: string;
|
|
741
|
+
};
|
|
742
|
+
export declare const WhatsAppLocation: Schema.Struct<{
|
|
743
|
+
readonly latitude: Schema.Finite;
|
|
744
|
+
readonly longitude: Schema.Finite;
|
|
745
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
746
|
+
readonly address: Schema.optionalKey<Schema.String>;
|
|
747
|
+
}>;
|
|
748
|
+
export type WhatsAppContactCard = {
|
|
749
|
+
readonly name: {
|
|
750
|
+
readonly formattedName: string;
|
|
751
|
+
readonly firstName?: string;
|
|
752
|
+
readonly lastName?: string;
|
|
753
|
+
readonly middleName?: string;
|
|
754
|
+
readonly prefix?: string;
|
|
755
|
+
readonly suffix?: string;
|
|
756
|
+
};
|
|
757
|
+
readonly phones?: ReadonlyArray<{
|
|
758
|
+
readonly phone: string;
|
|
759
|
+
readonly type?: string;
|
|
760
|
+
readonly waId?: string;
|
|
761
|
+
}>;
|
|
762
|
+
readonly emails?: ReadonlyArray<{
|
|
763
|
+
readonly email: string;
|
|
764
|
+
readonly type?: string;
|
|
765
|
+
}>;
|
|
766
|
+
readonly urls?: ReadonlyArray<{
|
|
767
|
+
readonly url: string;
|
|
768
|
+
readonly type?: string;
|
|
769
|
+
}>;
|
|
770
|
+
readonly org?: {
|
|
771
|
+
readonly company?: string;
|
|
772
|
+
readonly department?: string;
|
|
773
|
+
readonly title?: string;
|
|
774
|
+
};
|
|
775
|
+
readonly addresses?: ReadonlyArray<{
|
|
776
|
+
readonly street?: string;
|
|
777
|
+
readonly city?: string;
|
|
778
|
+
readonly state?: string;
|
|
779
|
+
readonly zip?: string;
|
|
780
|
+
readonly country?: string;
|
|
781
|
+
readonly countryCode?: string;
|
|
782
|
+
readonly type?: string;
|
|
783
|
+
}>;
|
|
784
|
+
readonly birthday?: string;
|
|
785
|
+
};
|
|
786
|
+
export declare const WhatsAppContactCard: Schema.Struct<{
|
|
787
|
+
readonly name: Schema.Struct<{
|
|
788
|
+
readonly formattedName: Schema.String;
|
|
789
|
+
readonly firstName: Schema.optionalKey<Schema.String>;
|
|
790
|
+
readonly lastName: Schema.optionalKey<Schema.String>;
|
|
791
|
+
readonly middleName: Schema.optionalKey<Schema.String>;
|
|
792
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
793
|
+
readonly suffix: Schema.optionalKey<Schema.String>;
|
|
794
|
+
}>;
|
|
795
|
+
readonly phones: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
796
|
+
readonly phone: Schema.String;
|
|
797
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
798
|
+
readonly waId: Schema.optionalKey<Schema.String>;
|
|
799
|
+
}>>>;
|
|
800
|
+
readonly emails: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
801
|
+
readonly email: Schema.String;
|
|
802
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
803
|
+
}>>>;
|
|
804
|
+
readonly urls: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
805
|
+
readonly url: Schema.String;
|
|
806
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
807
|
+
}>>>;
|
|
808
|
+
readonly org: Schema.optionalKey<Schema.Struct<{
|
|
809
|
+
readonly company: Schema.optionalKey<Schema.String>;
|
|
810
|
+
readonly department: Schema.optionalKey<Schema.String>;
|
|
811
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
812
|
+
}>>;
|
|
813
|
+
readonly addresses: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
814
|
+
readonly street: Schema.optionalKey<Schema.String>;
|
|
815
|
+
readonly city: Schema.optionalKey<Schema.String>;
|
|
816
|
+
readonly state: Schema.optionalKey<Schema.String>;
|
|
817
|
+
readonly zip: Schema.optionalKey<Schema.String>;
|
|
818
|
+
readonly country: Schema.optionalKey<Schema.String>;
|
|
819
|
+
readonly countryCode: Schema.optionalKey<Schema.String>;
|
|
820
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
821
|
+
}>>>;
|
|
822
|
+
readonly birthday: Schema.optionalKey<Schema.String>;
|
|
823
|
+
}>;
|
|
582
824
|
export type IanaTimezone = string;
|
|
583
825
|
export declare const IanaTimezone: Schema.String;
|
|
584
826
|
export type NamespaceMetadata = {
|
|
585
827
|
readonly [x: string]: string;
|
|
586
828
|
};
|
|
587
829
|
export declare const NamespaceMetadata: Schema.$Record<Schema.String, Schema.String>;
|
|
588
|
-
export type NamespaceResourceType = "domain" | "sender" | "contact" | "template";
|
|
589
|
-
export declare const NamespaceResourceType: Schema.Union<readonly [Schema.Literal<"domain">, Schema.Literal<"sender">, Schema.Literal<"contact">, Schema.Literal<"template">]>;
|
|
830
|
+
export type NamespaceResourceType = "domain" | "sender" | "whatsappNumber" | "smsNumber" | "contact" | "template";
|
|
831
|
+
export declare const NamespaceResourceType: Schema.Union<readonly [Schema.Literal<"domain">, Schema.Literal<"sender">, Schema.Literal<"whatsappNumber">, Schema.Literal<"smsNumber">, Schema.Literal<"contact">, Schema.Literal<"template">]>;
|
|
590
832
|
export type NewsletterId = string & EffectBrand.Brand<"NewsletterId">;
|
|
591
833
|
export declare const NewsletterId: Schema.brand<Schema.String, "NewsletterId">;
|
|
592
834
|
export type TemplateProjectId = string & EffectBrand.Brand<"TemplateProjectId">;
|
|
@@ -654,10 +896,13 @@ export declare const ConversationCategories: Schema.Struct<{
|
|
|
654
896
|
readonly categories: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.String]>, readonly [Schema.String]>;
|
|
655
897
|
}>;
|
|
656
898
|
export type ConversationChannels = {
|
|
657
|
-
readonly channels: readonly [
|
|
899
|
+
readonly channels: readonly [
|
|
900
|
+
"sms" | "whatsapp" | "email",
|
|
901
|
+
...Array<"sms" | "whatsapp" | "email">
|
|
902
|
+
];
|
|
658
903
|
};
|
|
659
904
|
export declare const ConversationChannels: Schema.Struct<{
|
|
660
|
-
readonly channels: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Literal<"email">]>, readonly [Schema.Literal<"email">]>;
|
|
905
|
+
readonly channels: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>]>;
|
|
661
906
|
}>;
|
|
662
907
|
export type ConversationTags = {
|
|
663
908
|
readonly tags: readonly [string, ...Array<string>];
|
|
@@ -701,14 +946,14 @@ export type CreateMediaPayload = {
|
|
|
701
946
|
readonly filename: string;
|
|
702
947
|
readonly contentType: string;
|
|
703
948
|
readonly sizeBytes: number;
|
|
704
|
-
readonly purpose: "attachment" | "avatar" | "review_evidence";
|
|
949
|
+
readonly purpose: "attachment" | "avatar" | "whatsapp_media" | "review_evidence";
|
|
705
950
|
readonly checksumSha256?: string | null;
|
|
706
951
|
};
|
|
707
952
|
export declare const CreateMediaPayload: Schema.Struct<{
|
|
708
953
|
readonly filename: Schema.String;
|
|
709
954
|
readonly contentType: Schema.String;
|
|
710
955
|
readonly sizeBytes: Schema.Finite;
|
|
711
|
-
readonly purpose: Schema.Union<readonly [Schema.Literal<"attachment">, Schema.Literal<"avatar">, Schema.Literal<"review_evidence">]>;
|
|
956
|
+
readonly purpose: Schema.Union<readonly [Schema.Literal<"attachment">, Schema.Literal<"avatar">, Schema.Literal<"whatsapp_media">, Schema.Literal<"review_evidence">]>;
|
|
712
957
|
readonly checksumSha256: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
713
958
|
}>;
|
|
714
959
|
export type DenyMailboxActionPayload = {
|
|
@@ -957,12 +1202,6 @@ export declare const CreateTemplatePayload: Schema.Struct<{
|
|
|
957
1202
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
958
1203
|
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
959
1204
|
}>;
|
|
960
|
-
export type UpdateAgentPayload = {
|
|
961
|
-
readonly name: AgentName;
|
|
962
|
-
};
|
|
963
|
-
export declare const UpdateAgentPayload: Schema.Struct<{
|
|
964
|
-
readonly name: Schema.String;
|
|
965
|
-
}>;
|
|
966
1205
|
export type AgentIntegrationGrant = {
|
|
967
1206
|
readonly integrationId: IntegrationId;
|
|
968
1207
|
readonly tools: AgentToolScope;
|
|
@@ -980,6 +1219,8 @@ export declare const AgentIntegrationGrant: Schema.Struct<{
|
|
|
980
1219
|
}>]>;
|
|
981
1220
|
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
982
1221
|
}>;
|
|
1222
|
+
export type AgentModelChoice = AgentModel | CatalogModelId;
|
|
1223
|
+
export declare const AgentModelChoice: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
983
1224
|
export type WorkingHoursRange = {
|
|
984
1225
|
readonly day: Weekday;
|
|
985
1226
|
readonly opens: ClockTime;
|
|
@@ -990,13 +1231,21 @@ export declare const WorkingHoursRange: Schema.Struct<{
|
|
|
990
1231
|
readonly opens: Schema.String;
|
|
991
1232
|
readonly closes: Schema.String;
|
|
992
1233
|
}>;
|
|
1234
|
+
export type UpdateAgentPayload = {
|
|
1235
|
+
readonly name?: AgentName | null;
|
|
1236
|
+
readonly monthlySpendCapDollars?: MonthlySpendCapDollars | null;
|
|
1237
|
+
};
|
|
1238
|
+
export declare const UpdateAgentPayload: Schema.Struct<{
|
|
1239
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1240
|
+
readonly monthlySpendCapDollars: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
1241
|
+
}>;
|
|
993
1242
|
export type CampaignReplyMailbox = MailboxId | null;
|
|
994
1243
|
export declare const CampaignReplyMailbox: Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>;
|
|
995
1244
|
export type CreateWebhookPayload = {
|
|
996
1245
|
readonly name: string;
|
|
997
1246
|
readonly url: string;
|
|
998
1247
|
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" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook">;
|
|
999
|
-
readonly channels?: ReadonlyArray<"email"> | null;
|
|
1248
|
+
readonly channels?: ReadonlyArray<"sms" | "whatsapp" | "email"> | null;
|
|
1000
1249
|
readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null;
|
|
1001
1250
|
readonly namespaceId?: NamespaceId | null;
|
|
1002
1251
|
readonly headers?: {
|
|
@@ -1008,7 +1257,7 @@ export declare const CreateWebhookPayload: Schema.Struct<{
|
|
|
1008
1257
|
readonly name: Schema.String;
|
|
1009
1258
|
readonly url: Schema.String;
|
|
1010
1259
|
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<"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.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>;
|
|
1011
|
-
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
1260
|
+
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
1012
1261
|
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]>>;
|
|
1013
1262
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1014
1263
|
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
@@ -1036,7 +1285,7 @@ export type UpdateWebhookPayload = {
|
|
|
1036
1285
|
readonly name?: string | null;
|
|
1037
1286
|
readonly url?: string | null;
|
|
1038
1287
|
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" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook"> | null;
|
|
1039
|
-
readonly channels?: ReadonlyArray<"email"> | null;
|
|
1288
|
+
readonly channels?: ReadonlyArray<"sms" | "whatsapp" | "email"> | null;
|
|
1040
1289
|
readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null;
|
|
1041
1290
|
readonly namespaceId?: NamespaceId | null;
|
|
1042
1291
|
readonly headers?: {
|
|
@@ -1048,7 +1297,7 @@ export declare const UpdateWebhookPayload: Schema.Struct<{
|
|
|
1048
1297
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1049
1298
|
readonly url: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1050
1299
|
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<"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.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>, Schema.Null]>>;
|
|
1051
|
-
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
1300
|
+
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
1052
1301
|
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]>>;
|
|
1053
1302
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1054
1303
|
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
@@ -1067,6 +1316,26 @@ export declare const ApiKeyMailboxAccess: Schema.Struct<{
|
|
|
1067
1316
|
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]>>;
|
|
1068
1317
|
readonly sendMode: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"approval">]>, Schema.Null]>>;
|
|
1069
1318
|
}>;
|
|
1319
|
+
export type CreateMailboxChatDraftPayload = {
|
|
1320
|
+
readonly channel: "whatsapp" | "sms";
|
|
1321
|
+
readonly to?: string | null;
|
|
1322
|
+
readonly text?: string | null;
|
|
1323
|
+
readonly inReplyToMessageId?: MessageId | null;
|
|
1324
|
+
};
|
|
1325
|
+
export declare const CreateMailboxChatDraftPayload: Schema.Struct<{
|
|
1326
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"whatsapp">, Schema.Literal<"sms">]>;
|
|
1327
|
+
readonly to: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1328
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1329
|
+
readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
|
|
1330
|
+
}>;
|
|
1331
|
+
export type WhatsAppReaction = {
|
|
1332
|
+
readonly messageId: MessageId;
|
|
1333
|
+
readonly emoji: string;
|
|
1334
|
+
};
|
|
1335
|
+
export declare const WhatsAppReaction: Schema.Struct<{
|
|
1336
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
1337
|
+
readonly emoji: Schema.String;
|
|
1338
|
+
}>;
|
|
1070
1339
|
export type BrandFooter = {
|
|
1071
1340
|
readonly companyName?: string | null;
|
|
1072
1341
|
readonly websiteUrl?: string | null;
|
|
@@ -1103,6 +1372,80 @@ export declare const EmailAttachment: Schema.Struct<{
|
|
|
1103
1372
|
readonly contentType: Schema.String;
|
|
1104
1373
|
readonly size: Schema.Finite;
|
|
1105
1374
|
}>;
|
|
1375
|
+
export type WhatsAppImageUpload = {
|
|
1376
|
+
readonly type: "image";
|
|
1377
|
+
readonly caption?: string;
|
|
1378
|
+
readonly mediaId: MediaId;
|
|
1379
|
+
};
|
|
1380
|
+
export declare const WhatsAppImageUpload: Schema.Struct<{
|
|
1381
|
+
readonly type: Schema.Literal<"image">;
|
|
1382
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
1383
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1384
|
+
}>;
|
|
1385
|
+
export type WhatsAppVideoUpload = {
|
|
1386
|
+
readonly type: "video";
|
|
1387
|
+
readonly caption?: string;
|
|
1388
|
+
readonly mediaId: MediaId;
|
|
1389
|
+
};
|
|
1390
|
+
export declare const WhatsAppVideoUpload: Schema.Struct<{
|
|
1391
|
+
readonly type: Schema.Literal<"video">;
|
|
1392
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
1393
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1394
|
+
}>;
|
|
1395
|
+
export type WhatsAppAudioUpload = {
|
|
1396
|
+
readonly type: "audio";
|
|
1397
|
+
readonly mediaId: MediaId;
|
|
1398
|
+
};
|
|
1399
|
+
export declare const WhatsAppAudioUpload: Schema.Struct<{
|
|
1400
|
+
readonly type: Schema.Literal<"audio">;
|
|
1401
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1402
|
+
}>;
|
|
1403
|
+
export type WhatsAppDocumentUpload = {
|
|
1404
|
+
readonly type: "document";
|
|
1405
|
+
readonly caption?: string;
|
|
1406
|
+
readonly filename?: string;
|
|
1407
|
+
readonly mediaId: MediaId;
|
|
1408
|
+
};
|
|
1409
|
+
export declare const WhatsAppDocumentUpload: Schema.Struct<{
|
|
1410
|
+
readonly type: Schema.Literal<"document">;
|
|
1411
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
1412
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
1413
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1414
|
+
}>;
|
|
1415
|
+
export type WhatsAppStickerUpload = {
|
|
1416
|
+
readonly type: "sticker";
|
|
1417
|
+
readonly mediaId: MediaId;
|
|
1418
|
+
};
|
|
1419
|
+
export declare const WhatsAppStickerUpload: Schema.Struct<{
|
|
1420
|
+
readonly type: Schema.Literal<"sticker">;
|
|
1421
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1422
|
+
}>;
|
|
1423
|
+
export type WhatsAppImageHeaderUpload = {
|
|
1424
|
+
readonly type: "image";
|
|
1425
|
+
readonly mediaId: MediaId;
|
|
1426
|
+
};
|
|
1427
|
+
export declare const WhatsAppImageHeaderUpload: Schema.Struct<{
|
|
1428
|
+
readonly type: Schema.Literal<"image">;
|
|
1429
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1430
|
+
}>;
|
|
1431
|
+
export type WhatsAppVideoHeaderUpload = {
|
|
1432
|
+
readonly type: "video";
|
|
1433
|
+
readonly mediaId: MediaId;
|
|
1434
|
+
};
|
|
1435
|
+
export declare const WhatsAppVideoHeaderUpload: Schema.Struct<{
|
|
1436
|
+
readonly type: Schema.Literal<"video">;
|
|
1437
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1438
|
+
}>;
|
|
1439
|
+
export type WhatsAppDocumentHeaderUpload = {
|
|
1440
|
+
readonly type: "document";
|
|
1441
|
+
readonly filename?: string;
|
|
1442
|
+
readonly mediaId: MediaId;
|
|
1443
|
+
};
|
|
1444
|
+
export declare const WhatsAppDocumentHeaderUpload: Schema.Struct<{
|
|
1445
|
+
readonly type: Schema.Literal<"document">;
|
|
1446
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
1447
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
1448
|
+
}>;
|
|
1106
1449
|
export type RespondToOnboardingInformationRequestInput = {
|
|
1107
1450
|
readonly expectedGeneration: number;
|
|
1108
1451
|
readonly responseText: string;
|
|
@@ -1115,6 +1458,8 @@ export declare const RespondToOnboardingInformationRequestInput: Schema.Struct<{
|
|
|
1115
1458
|
}>;
|
|
1116
1459
|
export type TemplateData = JsonObject | null;
|
|
1117
1460
|
export declare const TemplateData: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
1461
|
+
export type SmsTemplateData = JsonObject | null;
|
|
1462
|
+
export declare const SmsTemplateData: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
1118
1463
|
export type ContactConsent = {
|
|
1119
1464
|
readonly status: "opted_in" | "opted_out";
|
|
1120
1465
|
readonly source: string;
|
|
@@ -1133,6 +1478,32 @@ export type JourneyWebhookConfig = {
|
|
|
1133
1478
|
export declare const JourneyWebhookConfig: Schema.Struct<{
|
|
1134
1479
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
1135
1480
|
}>;
|
|
1481
|
+
export type SendMailboxChatPayload = {
|
|
1482
|
+
readonly channel: "whatsapp" | "sms";
|
|
1483
|
+
readonly to: string;
|
|
1484
|
+
readonly text?: string | null;
|
|
1485
|
+
readonly templateId?: TemplateId | null;
|
|
1486
|
+
readonly templateData?: JsonObject | null;
|
|
1487
|
+
};
|
|
1488
|
+
export declare const SendMailboxChatPayload: Schema.Struct<{
|
|
1489
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"whatsapp">, Schema.Literal<"sms">]>;
|
|
1490
|
+
readonly to: Schema.String;
|
|
1491
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1492
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
1493
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
1494
|
+
}>;
|
|
1495
|
+
export type ReplyMailboxChatPayload = {
|
|
1496
|
+
readonly channel: "whatsapp" | "sms";
|
|
1497
|
+
readonly text?: string | null;
|
|
1498
|
+
readonly templateId?: TemplateId | null;
|
|
1499
|
+
readonly templateData?: JsonObject | null;
|
|
1500
|
+
};
|
|
1501
|
+
export declare const ReplyMailboxChatPayload: Schema.Struct<{
|
|
1502
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"whatsapp">, Schema.Literal<"sms">]>;
|
|
1503
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1504
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
1505
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
1506
|
+
}>;
|
|
1136
1507
|
export type SetContactConsent = {
|
|
1137
1508
|
readonly status: "opted_in" | "opted_out";
|
|
1138
1509
|
readonly source: string;
|
|
@@ -1207,6 +1578,12 @@ export declare const SubscribePayload: Schema.Struct<{
|
|
|
1207
1578
|
}>;
|
|
1208
1579
|
export type CampaignConversationRef = ConversationId | null;
|
|
1209
1580
|
export declare const CampaignConversationRef: Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>;
|
|
1581
|
+
export type WhatsAppTemplateBinding = WhatsAppTemplateContactBinding | WhatsAppTemplateCustomFieldBinding;
|
|
1582
|
+
export declare const WhatsAppTemplateBinding: Schema.Union<readonly [Schema.Struct<{
|
|
1583
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
1584
|
+
}>, Schema.Struct<{
|
|
1585
|
+
readonly customField: Schema.String;
|
|
1586
|
+
}>]>;
|
|
1210
1587
|
export type ContactEvent = {
|
|
1211
1588
|
readonly id: string;
|
|
1212
1589
|
readonly contactId: ContactId;
|
|
@@ -1265,6 +1642,34 @@ export declare const EmailRecipient: Schema.Union<readonly [Schema.Struct<{
|
|
|
1265
1642
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1266
1643
|
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1267
1644
|
}>]>;
|
|
1645
|
+
export type SmsRecipient = {
|
|
1646
|
+
readonly contactId: ContactId;
|
|
1647
|
+
} | {
|
|
1648
|
+
readonly phone: string;
|
|
1649
|
+
readonly name?: string | null;
|
|
1650
|
+
readonly displayName?: string | null;
|
|
1651
|
+
};
|
|
1652
|
+
export declare const SmsRecipient: Schema.Union<readonly [Schema.Struct<{
|
|
1653
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
1654
|
+
}>, Schema.Struct<{
|
|
1655
|
+
readonly phone: Schema.String;
|
|
1656
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1657
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1658
|
+
}>]>;
|
|
1659
|
+
export type WhatsAppRecipient = {
|
|
1660
|
+
readonly contactId: ContactId;
|
|
1661
|
+
} | {
|
|
1662
|
+
readonly phone: string;
|
|
1663
|
+
readonly name?: string | null;
|
|
1664
|
+
readonly displayName?: string | null;
|
|
1665
|
+
};
|
|
1666
|
+
export declare const WhatsAppRecipient: Schema.Union<readonly [Schema.Struct<{
|
|
1667
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
1668
|
+
}>, Schema.Struct<{
|
|
1669
|
+
readonly phone: Schema.String;
|
|
1670
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1671
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1672
|
+
}>]>;
|
|
1268
1673
|
export type TopicContactById = {
|
|
1269
1674
|
readonly contactId: ContactId;
|
|
1270
1675
|
};
|
|
@@ -1329,7 +1734,7 @@ export type MessageSummary = {
|
|
|
1329
1734
|
readonly campaignId: CampaignId;
|
|
1330
1735
|
readonly runId: CampaignRunId;
|
|
1331
1736
|
} | null;
|
|
1332
|
-
readonly channel: "email";
|
|
1737
|
+
readonly channel: "sms" | "whatsapp" | "email";
|
|
1333
1738
|
readonly direction: "outbound" | "inbound";
|
|
1334
1739
|
readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
|
|
1335
1740
|
readonly from: string | null;
|
|
@@ -1344,7 +1749,7 @@ export declare const MessageSummary: Schema.Struct<{
|
|
|
1344
1749
|
readonly campaignId: Schema.brand<Schema.String, "CampaignId">;
|
|
1345
1750
|
readonly runId: Schema.brand<Schema.String, "CampaignRunId">;
|
|
1346
1751
|
}>, Schema.Null]>>;
|
|
1347
|
-
readonly channel: Schema.Literal<"email">;
|
|
1752
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
1348
1753
|
readonly direction: Schema.Union<readonly [Schema.Literal<"outbound">, Schema.Literal<"inbound">]>;
|
|
1349
1754
|
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"scheduled">, Schema.Literal<"queued">, Schema.Literal<"processing">, Schema.Literal<"sent">, Schema.Literal<"delivered">, Schema.Literal<"read">, Schema.Literal<"failed">, Schema.Literal<"bounced">, Schema.Literal<"complained">]>;
|
|
1350
1755
|
readonly from: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1487,7 +1892,7 @@ export type CreateMailboxEndpointPayload = {
|
|
|
1487
1892
|
readonly displayName?: string | null;
|
|
1488
1893
|
};
|
|
1489
1894
|
export declare const CreateMailboxEndpointPayload: Schema.Struct<{
|
|
1490
|
-
readonly channel: Schema.Literal<"email">;
|
|
1895
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
1491
1896
|
readonly address: Schema.String;
|
|
1492
1897
|
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1493
1898
|
}>;
|
|
@@ -1617,6 +2022,121 @@ export declare const UpdateMailboxThreadPayload: Schema.Struct<{
|
|
|
1617
2022
|
readonly starred: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1618
2023
|
readonly snoozedUntil: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1619
2024
|
}>;
|
|
2025
|
+
export type WhatsAppTemplateIdContent = {
|
|
2026
|
+
readonly templateId: TemplateId;
|
|
2027
|
+
readonly templateData?: WhatsAppTemplateData;
|
|
2028
|
+
readonly flowToken?: string;
|
|
2029
|
+
};
|
|
2030
|
+
export declare const WhatsAppTemplateIdContent: Schema.Struct<{
|
|
2031
|
+
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
2032
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2033
|
+
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
2034
|
+
}>;
|
|
2035
|
+
export type WhatsAppTemplateSlugContent = {
|
|
2036
|
+
readonly templateSlug: string;
|
|
2037
|
+
readonly templateData?: WhatsAppTemplateData;
|
|
2038
|
+
readonly flowToken?: string;
|
|
2039
|
+
};
|
|
2040
|
+
export declare const WhatsAppTemplateSlugContent: Schema.Struct<{
|
|
2041
|
+
readonly templateSlug: Schema.String;
|
|
2042
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2043
|
+
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
2044
|
+
}>;
|
|
2045
|
+
export type WhatsAppListSection = {
|
|
2046
|
+
readonly title?: string;
|
|
2047
|
+
readonly rows: ReadonlyArray<WhatsAppListRow>;
|
|
2048
|
+
};
|
|
2049
|
+
export declare const WhatsAppListSection: Schema.Struct<{
|
|
2050
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
2051
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
2052
|
+
readonly id: Schema.String;
|
|
2053
|
+
readonly title: Schema.String;
|
|
2054
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
2055
|
+
}>>;
|
|
2056
|
+
}>;
|
|
2057
|
+
export type WhatsAppFlowMessage = {
|
|
2058
|
+
readonly type: "flow";
|
|
2059
|
+
readonly header?: WhatsAppTextHeader;
|
|
2060
|
+
readonly body: string;
|
|
2061
|
+
readonly footer?: string;
|
|
2062
|
+
readonly flowId: WhatsAppFlowId;
|
|
2063
|
+
readonly cta: string;
|
|
2064
|
+
readonly token?: string;
|
|
2065
|
+
readonly action?: "navigate" | "data_exchange";
|
|
2066
|
+
readonly screen?: string;
|
|
2067
|
+
readonly data?: {
|
|
2068
|
+
readonly [x: string]: JsonValue;
|
|
2069
|
+
};
|
|
2070
|
+
};
|
|
2071
|
+
export declare const WhatsAppFlowMessage: Schema.Struct<{
|
|
2072
|
+
readonly type: Schema.Literal<"flow">;
|
|
2073
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
2074
|
+
readonly type: Schema.Literal<"text">;
|
|
2075
|
+
readonly text: Schema.String;
|
|
2076
|
+
}>>;
|
|
2077
|
+
readonly body: Schema.String;
|
|
2078
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
2079
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
2080
|
+
readonly cta: Schema.String;
|
|
2081
|
+
readonly token: Schema.optionalKey<Schema.String>;
|
|
2082
|
+
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"navigate">, Schema.Literal<"data_exchange">]>>;
|
|
2083
|
+
readonly screen: Schema.optionalKey<Schema.String>;
|
|
2084
|
+
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
2085
|
+
}>;
|
|
2086
|
+
export type WhatsAppLocationContent = {
|
|
2087
|
+
readonly location: WhatsAppLocation;
|
|
2088
|
+
};
|
|
2089
|
+
export declare const WhatsAppLocationContent: Schema.Struct<{
|
|
2090
|
+
readonly location: Schema.Struct<{
|
|
2091
|
+
readonly latitude: Schema.Finite;
|
|
2092
|
+
readonly longitude: Schema.Finite;
|
|
2093
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
2094
|
+
readonly address: Schema.optionalKey<Schema.String>;
|
|
2095
|
+
}>;
|
|
2096
|
+
}>;
|
|
2097
|
+
export type WhatsAppContactsContent = {
|
|
2098
|
+
readonly contacts: ReadonlyArray<WhatsAppContactCard>;
|
|
2099
|
+
};
|
|
2100
|
+
export declare const WhatsAppContactsContent: Schema.Struct<{
|
|
2101
|
+
readonly contacts: Schema.$Array<Schema.Struct<{
|
|
2102
|
+
readonly name: Schema.Struct<{
|
|
2103
|
+
readonly formattedName: Schema.String;
|
|
2104
|
+
readonly firstName: Schema.optionalKey<Schema.String>;
|
|
2105
|
+
readonly lastName: Schema.optionalKey<Schema.String>;
|
|
2106
|
+
readonly middleName: Schema.optionalKey<Schema.String>;
|
|
2107
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
2108
|
+
readonly suffix: Schema.optionalKey<Schema.String>;
|
|
2109
|
+
}>;
|
|
2110
|
+
readonly phones: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2111
|
+
readonly phone: Schema.String;
|
|
2112
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
2113
|
+
readonly waId: Schema.optionalKey<Schema.String>;
|
|
2114
|
+
}>>>;
|
|
2115
|
+
readonly emails: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2116
|
+
readonly email: Schema.String;
|
|
2117
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
2118
|
+
}>>>;
|
|
2119
|
+
readonly urls: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2120
|
+
readonly url: Schema.String;
|
|
2121
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
2122
|
+
}>>>;
|
|
2123
|
+
readonly org: Schema.optionalKey<Schema.Struct<{
|
|
2124
|
+
readonly company: Schema.optionalKey<Schema.String>;
|
|
2125
|
+
readonly department: Schema.optionalKey<Schema.String>;
|
|
2126
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
2127
|
+
}>>;
|
|
2128
|
+
readonly addresses: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2129
|
+
readonly street: Schema.optionalKey<Schema.String>;
|
|
2130
|
+
readonly city: Schema.optionalKey<Schema.String>;
|
|
2131
|
+
readonly state: Schema.optionalKey<Schema.String>;
|
|
2132
|
+
readonly zip: Schema.optionalKey<Schema.String>;
|
|
2133
|
+
readonly country: Schema.optionalKey<Schema.String>;
|
|
2134
|
+
readonly countryCode: Schema.optionalKey<Schema.String>;
|
|
2135
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
2136
|
+
}>>>;
|
|
2137
|
+
readonly birthday: Schema.optionalKey<Schema.String>;
|
|
2138
|
+
}>>;
|
|
2139
|
+
}>;
|
|
1620
2140
|
export type CreateNamespacePayload = {
|
|
1621
2141
|
readonly name: string;
|
|
1622
2142
|
readonly metadata?: NamespaceMetadata | null;
|
|
@@ -1630,7 +2150,7 @@ export type AssignNamespaceResourcePayload = {
|
|
|
1630
2150
|
readonly resourceId: string;
|
|
1631
2151
|
};
|
|
1632
2152
|
export declare const AssignNamespaceResourcePayload: Schema.Struct<{
|
|
1633
|
-
readonly type: Schema.Union<readonly [Schema.Literal<"domain">, Schema.Literal<"sender">, Schema.Literal<"contact">, Schema.Literal<"template">]>;
|
|
2153
|
+
readonly type: Schema.Union<readonly [Schema.Literal<"domain">, Schema.Literal<"sender">, Schema.Literal<"whatsappNumber">, Schema.Literal<"smsNumber">, Schema.Literal<"contact">, Schema.Literal<"template">]>;
|
|
1634
2154
|
readonly resourceId: Schema.String;
|
|
1635
2155
|
}>;
|
|
1636
2156
|
export type Operation = {
|
|
@@ -1748,8 +2268,11 @@ export declare const ApiKeyAccess: Schema.Union<readonly [Schema.Struct<{
|
|
|
1748
2268
|
readonly resources: Schema.Struct<{
|
|
1749
2269
|
readonly messages: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
1750
2270
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
2271
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
2272
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
1751
2273
|
readonly domains: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
1752
2274
|
readonly phoneNumbers: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
2275
|
+
readonly whatsappAccounts: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
1753
2276
|
readonly contacts: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
1754
2277
|
readonly conversations: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
1755
2278
|
readonly templates: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
|
|
@@ -1767,6 +2290,15 @@ export declare const ApiKeyAccess: Schema.Union<readonly [Schema.Struct<{
|
|
|
1767
2290
|
}>, Schema.Null]>>;
|
|
1768
2291
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1769
2292
|
}>]>;
|
|
2293
|
+
export type WhatsAppReactionContent = {
|
|
2294
|
+
readonly reaction: WhatsAppReaction;
|
|
2295
|
+
};
|
|
2296
|
+
export declare const WhatsAppReactionContent: Schema.Struct<{
|
|
2297
|
+
readonly reaction: Schema.Struct<{
|
|
2298
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
2299
|
+
readonly emoji: Schema.String;
|
|
2300
|
+
}>;
|
|
2301
|
+
}>;
|
|
1770
2302
|
export type CreateBrand = {
|
|
1771
2303
|
readonly slug: string;
|
|
1772
2304
|
readonly name: string;
|
|
@@ -1843,7 +2375,7 @@ export declare const EmailAttachments: Schema.Union<readonly [Schema.$Array<Sche
|
|
|
1843
2375
|
readonly contentType: Schema.String;
|
|
1844
2376
|
readonly size: Schema.Finite;
|
|
1845
2377
|
}>>, Schema.Null]>;
|
|
1846
|
-
export type
|
|
2378
|
+
export type CreateMailboxEmailDraftPayload = {
|
|
1847
2379
|
readonly channel?: "email" | null;
|
|
1848
2380
|
readonly endpointId?: MailboxEndpointId | null;
|
|
1849
2381
|
readonly to?: ReadonlyArray<string> | null;
|
|
@@ -1856,7 +2388,7 @@ export type CreateMailboxDraftPayload = {
|
|
|
1856
2388
|
readonly attachments?: ReadonlyArray<EmailAttachment> | null;
|
|
1857
2389
|
readonly inReplyToMessageId?: MessageId | null;
|
|
1858
2390
|
};
|
|
1859
|
-
export declare const
|
|
2391
|
+
export declare const CreateMailboxEmailDraftPayload: Schema.Struct<{
|
|
1860
2392
|
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"email">, Schema.Null]>>;
|
|
1861
2393
|
readonly endpointId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxEndpointId">, Schema.Null]>>;
|
|
1862
2394
|
readonly to: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -1875,18 +2407,24 @@ export declare const CreateMailboxDraftPayload: Schema.Struct<{
|
|
|
1875
2407
|
}>>, Schema.Null]>>;
|
|
1876
2408
|
readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
|
|
1877
2409
|
}>;
|
|
1878
|
-
export type
|
|
2410
|
+
export type SendMailboxEmailPayload = {
|
|
2411
|
+
readonly channel?: "email" | null;
|
|
1879
2412
|
readonly to: readonly [string, ...Array<string>];
|
|
1880
2413
|
readonly cc?: ReadonlyArray<string> | null;
|
|
1881
2414
|
readonly bcc?: ReadonlyArray<string> | null;
|
|
2415
|
+
readonly replyTo?: ReadonlyArray<string> | null;
|
|
2416
|
+
readonly subject: string;
|
|
1882
2417
|
readonly text?: string | null;
|
|
1883
2418
|
readonly html?: string | null;
|
|
1884
2419
|
readonly attachments?: ReadonlyArray<EmailAttachment> | null;
|
|
1885
2420
|
};
|
|
1886
|
-
export declare const
|
|
2421
|
+
export declare const SendMailboxEmailPayload: Schema.Struct<{
|
|
2422
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"email">, Schema.Null]>>;
|
|
1887
2423
|
readonly to: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.String]>, readonly [Schema.String]>;
|
|
1888
2424
|
readonly cc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
1889
2425
|
readonly bcc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
2426
|
+
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
2427
|
+
readonly subject: Schema.String;
|
|
1890
2428
|
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1891
2429
|
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1892
2430
|
readonly attachments: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
@@ -1897,7 +2435,7 @@ export declare const ForwardMailboxMessagePayload: Schema.Struct<{
|
|
|
1897
2435
|
readonly size: Schema.Finite;
|
|
1898
2436
|
}>>, Schema.Null]>>;
|
|
1899
2437
|
}>;
|
|
1900
|
-
export type
|
|
2438
|
+
export type ReplyMailboxEmailPayload = {
|
|
1901
2439
|
readonly channel?: "email" | null;
|
|
1902
2440
|
readonly cc?: ReadonlyArray<string> | null;
|
|
1903
2441
|
readonly bcc?: ReadonlyArray<string> | null;
|
|
@@ -1905,7 +2443,7 @@ export type ReplyMailboxMessagePayload = {
|
|
|
1905
2443
|
readonly html?: string | null;
|
|
1906
2444
|
readonly attachments?: ReadonlyArray<EmailAttachment> | null;
|
|
1907
2445
|
};
|
|
1908
|
-
export declare const
|
|
2446
|
+
export declare const ReplyMailboxEmailPayload: Schema.Struct<{
|
|
1909
2447
|
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"email">, Schema.Null]>>;
|
|
1910
2448
|
readonly cc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
1911
2449
|
readonly bcc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -1919,24 +2457,18 @@ export declare const ReplyMailboxMessagePayload: Schema.Struct<{
|
|
|
1919
2457
|
readonly size: Schema.Finite;
|
|
1920
2458
|
}>>, Schema.Null]>>;
|
|
1921
2459
|
}>;
|
|
1922
|
-
export type
|
|
1923
|
-
readonly channel?: "email" | null;
|
|
2460
|
+
export type ForwardMailboxMessagePayload = {
|
|
1924
2461
|
readonly to: readonly [string, ...Array<string>];
|
|
1925
2462
|
readonly cc?: ReadonlyArray<string> | null;
|
|
1926
2463
|
readonly bcc?: ReadonlyArray<string> | null;
|
|
1927
|
-
readonly replyTo?: ReadonlyArray<string> | null;
|
|
1928
|
-
readonly subject: string;
|
|
1929
2464
|
readonly text?: string | null;
|
|
1930
2465
|
readonly html?: string | null;
|
|
1931
2466
|
readonly attachments?: ReadonlyArray<EmailAttachment> | null;
|
|
1932
2467
|
};
|
|
1933
|
-
export declare const
|
|
1934
|
-
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"email">, Schema.Null]>>;
|
|
2468
|
+
export declare const ForwardMailboxMessagePayload: Schema.Struct<{
|
|
1935
2469
|
readonly to: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.String]>, readonly [Schema.String]>;
|
|
1936
2470
|
readonly cc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
1937
2471
|
readonly bcc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
1938
|
-
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
1939
|
-
readonly subject: Schema.String;
|
|
1940
2472
|
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1941
2473
|
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1942
2474
|
readonly attachments: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
@@ -1973,13 +2505,111 @@ export declare const UpdateMailboxDraftPayload: Schema.Struct<{
|
|
|
1973
2505
|
readonly size: Schema.Finite;
|
|
1974
2506
|
}>>, Schema.Null]>>;
|
|
1975
2507
|
}>;
|
|
2508
|
+
export type WhatsAppImage = WhatsAppImageLink | WhatsAppImageUpload;
|
|
2509
|
+
export declare const WhatsAppImage: Schema.Union<readonly [Schema.Struct<{
|
|
2510
|
+
readonly type: Schema.Literal<"image">;
|
|
2511
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
2512
|
+
readonly url: Schema.String;
|
|
2513
|
+
}>, Schema.Struct<{
|
|
2514
|
+
readonly type: Schema.Literal<"image">;
|
|
2515
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
2516
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
2517
|
+
}>]>;
|
|
2518
|
+
export type WhatsAppVideo = WhatsAppVideoLink | WhatsAppVideoUpload;
|
|
2519
|
+
export declare const WhatsAppVideo: Schema.Union<readonly [Schema.Struct<{
|
|
2520
|
+
readonly type: Schema.Literal<"video">;
|
|
2521
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
2522
|
+
readonly url: Schema.String;
|
|
2523
|
+
}>, Schema.Struct<{
|
|
2524
|
+
readonly type: Schema.Literal<"video">;
|
|
2525
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
2526
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
2527
|
+
}>]>;
|
|
2528
|
+
export type WhatsAppAudio = WhatsAppAudioLink | WhatsAppAudioUpload;
|
|
2529
|
+
export declare const WhatsAppAudio: Schema.Union<readonly [Schema.Struct<{
|
|
2530
|
+
readonly type: Schema.Literal<"audio">;
|
|
2531
|
+
readonly url: Schema.String;
|
|
2532
|
+
}>, Schema.Struct<{
|
|
2533
|
+
readonly type: Schema.Literal<"audio">;
|
|
2534
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
2535
|
+
}>]>;
|
|
2536
|
+
export type WhatsAppDocument = WhatsAppDocumentLink | WhatsAppDocumentUpload;
|
|
2537
|
+
export declare const WhatsAppDocument: Schema.Union<readonly [Schema.Struct<{
|
|
2538
|
+
readonly type: Schema.Literal<"document">;
|
|
2539
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
2540
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
2541
|
+
readonly url: Schema.String;
|
|
2542
|
+
}>, Schema.Struct<{
|
|
2543
|
+
readonly type: Schema.Literal<"document">;
|
|
2544
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
2545
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
2546
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
2547
|
+
}>]>;
|
|
2548
|
+
export type WhatsAppSticker = WhatsAppStickerLink | WhatsAppStickerUpload;
|
|
2549
|
+
export declare const WhatsAppSticker: Schema.Union<readonly [Schema.Struct<{
|
|
2550
|
+
readonly type: Schema.Literal<"sticker">;
|
|
2551
|
+
readonly url: Schema.String;
|
|
2552
|
+
}>, Schema.Struct<{
|
|
2553
|
+
readonly type: Schema.Literal<"sticker">;
|
|
2554
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
2555
|
+
}>]>;
|
|
2556
|
+
export type WhatsAppImageHeader = WhatsAppImageHeaderLink | WhatsAppImageHeaderUpload;
|
|
2557
|
+
export declare const WhatsAppImageHeader: Schema.Union<readonly [Schema.Struct<{
|
|
2558
|
+
readonly type: Schema.Literal<"image">;
|
|
2559
|
+
readonly url: Schema.String;
|
|
2560
|
+
}>, Schema.Struct<{
|
|
2561
|
+
readonly type: Schema.Literal<"image">;
|
|
2562
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
2563
|
+
}>]>;
|
|
2564
|
+
export type WhatsAppVideoHeader = WhatsAppVideoHeaderLink | WhatsAppVideoHeaderUpload;
|
|
2565
|
+
export declare const WhatsAppVideoHeader: Schema.Union<readonly [Schema.Struct<{
|
|
2566
|
+
readonly type: Schema.Literal<"video">;
|
|
2567
|
+
readonly url: Schema.String;
|
|
2568
|
+
}>, Schema.Struct<{
|
|
2569
|
+
readonly type: Schema.Literal<"video">;
|
|
2570
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
2571
|
+
}>]>;
|
|
2572
|
+
export type WhatsAppDocumentHeader = WhatsAppDocumentHeaderLink | WhatsAppDocumentHeaderUpload;
|
|
2573
|
+
export declare const WhatsAppDocumentHeader: Schema.Union<readonly [Schema.Struct<{
|
|
2574
|
+
readonly type: Schema.Literal<"document">;
|
|
2575
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
2576
|
+
readonly url: Schema.String;
|
|
2577
|
+
}>, Schema.Struct<{
|
|
2578
|
+
readonly type: Schema.Literal<"document">;
|
|
2579
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
2580
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
2581
|
+
}>]>;
|
|
2582
|
+
export type SmsContent = {
|
|
2583
|
+
readonly text?: string | null;
|
|
2584
|
+
readonly templateId?: TemplateId | null;
|
|
2585
|
+
readonly templateSlug?: string | null;
|
|
2586
|
+
readonly templateData?: SmsTemplateData;
|
|
2587
|
+
};
|
|
2588
|
+
export declare const SmsContent: Schema.Struct<{
|
|
2589
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2590
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
2591
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2592
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
2593
|
+
}>;
|
|
2594
|
+
export type SmsDispatchContent = {
|
|
2595
|
+
readonly text?: string | null;
|
|
2596
|
+
readonly templateId?: TemplateId | null;
|
|
2597
|
+
readonly templateSlug?: string | null;
|
|
2598
|
+
readonly templateData?: SmsTemplateData;
|
|
2599
|
+
};
|
|
2600
|
+
export declare const SmsDispatchContent: Schema.Struct<{
|
|
2601
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2602
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
2603
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2604
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
2605
|
+
}>;
|
|
1976
2606
|
export type ContactIdentityChannel = {
|
|
1977
|
-
readonly channel: "email";
|
|
2607
|
+
readonly channel: "sms" | "whatsapp" | "email";
|
|
1978
2608
|
readonly reachability: "unknown" | "reachable" | "unreachable";
|
|
1979
2609
|
readonly consent: ContactConsent | null;
|
|
1980
2610
|
};
|
|
1981
2611
|
export declare const ContactIdentityChannel: Schema.Struct<{
|
|
1982
|
-
readonly channel: Schema.Literal<"email">;
|
|
2612
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
1983
2613
|
readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
|
|
1984
2614
|
readonly consent: Schema.Union<readonly [Schema.Struct<{
|
|
1985
2615
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
@@ -1988,6 +2618,14 @@ export declare const ContactIdentityChannel: Schema.Struct<{
|
|
|
1988
2618
|
readonly proof: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
1989
2619
|
}>, Schema.Null]>;
|
|
1990
2620
|
}>;
|
|
2621
|
+
export type WhatsAppTemplateBindings = {
|
|
2622
|
+
readonly [x: string]: WhatsAppTemplateBinding;
|
|
2623
|
+
};
|
|
2624
|
+
export declare const WhatsAppTemplateBindings: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
2625
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
2626
|
+
}>, Schema.Struct<{
|
|
2627
|
+
readonly customField: Schema.String;
|
|
2628
|
+
}>]>>;
|
|
1991
2629
|
export type CreateEventPayload = {
|
|
1992
2630
|
readonly contact: ContactEventReference;
|
|
1993
2631
|
readonly name: string;
|
|
@@ -2036,15 +2674,31 @@ export declare const EmailBccRecipients: Schema.Union<readonly [Schema.$Array<Sc
|
|
|
2036
2674
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2037
2675
|
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2038
2676
|
}>]>>, Schema.Null]>;
|
|
2039
|
-
export type
|
|
2040
|
-
export declare const
|
|
2677
|
+
export type SmsRecipients = ReadonlyArray<SmsRecipient>;
|
|
2678
|
+
export declare const SmsRecipients: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2041
2679
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
2042
2680
|
}>, Schema.Struct<{
|
|
2043
|
-
readonly
|
|
2681
|
+
readonly phone: Schema.String;
|
|
2682
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2683
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2684
|
+
}>]>>;
|
|
2685
|
+
export type WhatsAppRecipients = ReadonlyArray<WhatsAppRecipient>;
|
|
2686
|
+
export declare const WhatsAppRecipients: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2687
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
2044
2688
|
}>, Schema.Struct<{
|
|
2045
2689
|
readonly phone: Schema.String;
|
|
2046
|
-
|
|
2047
|
-
|
|
2690
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2691
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2692
|
+
}>]>>;
|
|
2693
|
+
export type TopicContactRef = TopicContactById | TopicContactByEmail | TopicContactByPhone;
|
|
2694
|
+
export declare const TopicContactRef: Schema.Union<readonly [Schema.Struct<{
|
|
2695
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
2696
|
+
}>, Schema.Struct<{
|
|
2697
|
+
readonly email: Schema.String;
|
|
2698
|
+
}>, Schema.Struct<{
|
|
2699
|
+
readonly phone: Schema.String;
|
|
2700
|
+
}>]>;
|
|
2701
|
+
export type MessagePage = {
|
|
2048
2702
|
readonly items: ReadonlyArray<MessageSummary>;
|
|
2049
2703
|
readonly nextCursor: string | null;
|
|
2050
2704
|
};
|
|
@@ -2055,7 +2709,7 @@ export declare const MessagePage: Schema.Struct<{
|
|
|
2055
2709
|
readonly campaignId: Schema.brand<Schema.String, "CampaignId">;
|
|
2056
2710
|
readonly runId: Schema.brand<Schema.String, "CampaignRunId">;
|
|
2057
2711
|
}>, Schema.Null]>>;
|
|
2058
|
-
readonly channel: Schema.Literal<"email">;
|
|
2712
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
2059
2713
|
readonly direction: Schema.Union<readonly [Schema.Literal<"outbound">, Schema.Literal<"inbound">]>;
|
|
2060
2714
|
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"scheduled">, Schema.Literal<"queued">, Schema.Literal<"processing">, Schema.Literal<"sent">, Schema.Literal<"delivered">, Schema.Literal<"read">, Schema.Literal<"failed">, Schema.Literal<"bounced">, Schema.Literal<"complained">]>;
|
|
2061
2715
|
readonly from: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -2214,7 +2868,7 @@ export type CreateMailboxPayload = {
|
|
|
2214
2868
|
export declare const CreateMailboxPayload: Schema.Struct<{
|
|
2215
2869
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
2216
2870
|
readonly endpoint: Schema.Struct<{
|
|
2217
|
-
readonly channel: Schema.Literal<"email">;
|
|
2871
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
2218
2872
|
readonly address: Schema.String;
|
|
2219
2873
|
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2220
2874
|
}>;
|
|
@@ -2300,6 +2954,32 @@ export declare const MailboxSendReceipt: Schema.Struct<{
|
|
|
2300
2954
|
readonly createdAt: Schema.String;
|
|
2301
2955
|
readonly updatedAt: Schema.String;
|
|
2302
2956
|
}>;
|
|
2957
|
+
export type WhatsAppListMessage = {
|
|
2958
|
+
readonly type: "list";
|
|
2959
|
+
readonly header?: WhatsAppTextHeader;
|
|
2960
|
+
readonly body: string;
|
|
2961
|
+
readonly footer?: string;
|
|
2962
|
+
readonly button: string;
|
|
2963
|
+
readonly sections: ReadonlyArray<WhatsAppListSection>;
|
|
2964
|
+
};
|
|
2965
|
+
export declare const WhatsAppListMessage: Schema.Struct<{
|
|
2966
|
+
readonly type: Schema.Literal<"list">;
|
|
2967
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
2968
|
+
readonly type: Schema.Literal<"text">;
|
|
2969
|
+
readonly text: Schema.String;
|
|
2970
|
+
}>>;
|
|
2971
|
+
readonly body: Schema.String;
|
|
2972
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
2973
|
+
readonly button: Schema.String;
|
|
2974
|
+
readonly sections: Schema.$Array<Schema.Struct<{
|
|
2975
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
2976
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
2977
|
+
readonly id: Schema.String;
|
|
2978
|
+
readonly title: Schema.String;
|
|
2979
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
2980
|
+
}>>;
|
|
2981
|
+
}>>;
|
|
2982
|
+
}>;
|
|
2303
2983
|
export type OperationAccepted = {
|
|
2304
2984
|
readonly operation: Operation;
|
|
2305
2985
|
readonly links: {
|
|
@@ -2345,16 +3025,19 @@ export declare const OperationAccepted: Schema.Struct<{
|
|
|
2345
3025
|
export type AgentDefinition = {
|
|
2346
3026
|
readonly instructions: string;
|
|
2347
3027
|
readonly knowledge: string;
|
|
3028
|
+
readonly knowledgeSourceIds?: ReadonlyArray<KnowledgeSourceId>;
|
|
2348
3029
|
readonly endpointIds: ReadonlyArray<MailboxEndpointId>;
|
|
2349
3030
|
readonly integrations: ReadonlyArray<AgentIntegrationGrant>;
|
|
2350
3031
|
readonly mode: AgentMode;
|
|
2351
|
-
readonly model:
|
|
3032
|
+
readonly model: AgentModelChoice;
|
|
3033
|
+
readonly reasoning: AgentReasoning;
|
|
2352
3034
|
readonly workingHours: WorkingHours | null;
|
|
2353
3035
|
readonly takeoverTimeoutMinutes: number;
|
|
2354
3036
|
};
|
|
2355
3037
|
export declare const AgentDefinition: Schema.Struct<{
|
|
2356
3038
|
readonly instructions: Schema.String;
|
|
2357
3039
|
readonly knowledge: Schema.String;
|
|
3040
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
2358
3041
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
2359
3042
|
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
2360
3043
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
@@ -2369,7 +3052,8 @@ export declare const AgentDefinition: Schema.Struct<{
|
|
|
2369
3052
|
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
2370
3053
|
}>>;
|
|
2371
3054
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
2372
|
-
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
3055
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
3056
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
2373
3057
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
2374
3058
|
readonly timeZone: Schema.String;
|
|
2375
3059
|
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
@@ -2480,6 +3164,157 @@ export declare const EmailContent: Schema.Struct<{
|
|
|
2480
3164
|
}>>;
|
|
2481
3165
|
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
2482
3166
|
}>;
|
|
3167
|
+
export type CreateMailboxDraftPayload = CreateMailboxEmailDraftPayload | CreateMailboxChatDraftPayload;
|
|
3168
|
+
export declare const CreateMailboxDraftPayload: Schema.Union<readonly [Schema.Struct<{
|
|
3169
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"email">, Schema.Null]>>;
|
|
3170
|
+
readonly endpointId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxEndpointId">, Schema.Null]>>;
|
|
3171
|
+
readonly to: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
3172
|
+
readonly cc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
3173
|
+
readonly bcc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
3174
|
+
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
3175
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3176
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3177
|
+
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3178
|
+
readonly attachments: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
3179
|
+
readonly filename: Schema.String;
|
|
3180
|
+
readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3181
|
+
readonly mediaId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MediaId">, Schema.Null]>>;
|
|
3182
|
+
readonly contentType: Schema.String;
|
|
3183
|
+
readonly size: Schema.Finite;
|
|
3184
|
+
}>>, Schema.Null]>>;
|
|
3185
|
+
readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
|
|
3186
|
+
}>, Schema.Struct<{
|
|
3187
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"whatsapp">, Schema.Literal<"sms">]>;
|
|
3188
|
+
readonly to: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3189
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3190
|
+
readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
|
|
3191
|
+
}>]>;
|
|
3192
|
+
export type SendMailboxMessagePayload = SendMailboxEmailPayload | SendMailboxChatPayload;
|
|
3193
|
+
export declare const SendMailboxMessagePayload: Schema.Union<readonly [Schema.Struct<{
|
|
3194
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"email">, Schema.Null]>>;
|
|
3195
|
+
readonly to: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.String]>, readonly [Schema.String]>;
|
|
3196
|
+
readonly cc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
3197
|
+
readonly bcc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
3198
|
+
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
3199
|
+
readonly subject: Schema.String;
|
|
3200
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3201
|
+
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3202
|
+
readonly attachments: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
3203
|
+
readonly filename: Schema.String;
|
|
3204
|
+
readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3205
|
+
readonly mediaId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MediaId">, Schema.Null]>>;
|
|
3206
|
+
readonly contentType: Schema.String;
|
|
3207
|
+
readonly size: Schema.Finite;
|
|
3208
|
+
}>>, Schema.Null]>>;
|
|
3209
|
+
}>, Schema.Struct<{
|
|
3210
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"whatsapp">, Schema.Literal<"sms">]>;
|
|
3211
|
+
readonly to: Schema.String;
|
|
3212
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3213
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
3214
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
3215
|
+
}>]>;
|
|
3216
|
+
export type ReplyMailboxMessagePayload = ReplyMailboxEmailPayload | ReplyMailboxChatPayload;
|
|
3217
|
+
export declare const ReplyMailboxMessagePayload: Schema.Union<readonly [Schema.Struct<{
|
|
3218
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"email">, Schema.Null]>>;
|
|
3219
|
+
readonly cc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
3220
|
+
readonly bcc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
3221
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3222
|
+
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3223
|
+
readonly attachments: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
3224
|
+
readonly filename: Schema.String;
|
|
3225
|
+
readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3226
|
+
readonly mediaId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MediaId">, Schema.Null]>>;
|
|
3227
|
+
readonly contentType: Schema.String;
|
|
3228
|
+
readonly size: Schema.Finite;
|
|
3229
|
+
}>>, Schema.Null]>>;
|
|
3230
|
+
}>, Schema.Struct<{
|
|
3231
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"whatsapp">, Schema.Literal<"sms">]>;
|
|
3232
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3233
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
3234
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
3235
|
+
}>]>;
|
|
3236
|
+
export type WhatsAppOutboundMedia = WhatsAppImage | WhatsAppVideo | WhatsAppAudio | WhatsAppDocument | WhatsAppSticker;
|
|
3237
|
+
export declare const WhatsAppOutboundMedia: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
3238
|
+
readonly type: Schema.Literal<"image">;
|
|
3239
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3240
|
+
readonly url: Schema.String;
|
|
3241
|
+
}>, Schema.Struct<{
|
|
3242
|
+
readonly type: Schema.Literal<"image">;
|
|
3243
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3244
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3245
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3246
|
+
readonly type: Schema.Literal<"video">;
|
|
3247
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3248
|
+
readonly url: Schema.String;
|
|
3249
|
+
}>, Schema.Struct<{
|
|
3250
|
+
readonly type: Schema.Literal<"video">;
|
|
3251
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3252
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3253
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3254
|
+
readonly type: Schema.Literal<"audio">;
|
|
3255
|
+
readonly url: Schema.String;
|
|
3256
|
+
}>, Schema.Struct<{
|
|
3257
|
+
readonly type: Schema.Literal<"audio">;
|
|
3258
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3259
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3260
|
+
readonly type: Schema.Literal<"document">;
|
|
3261
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3262
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3263
|
+
readonly url: Schema.String;
|
|
3264
|
+
}>, Schema.Struct<{
|
|
3265
|
+
readonly type: Schema.Literal<"document">;
|
|
3266
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3267
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3268
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3269
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3270
|
+
readonly type: Schema.Literal<"sticker">;
|
|
3271
|
+
readonly url: Schema.String;
|
|
3272
|
+
}>, Schema.Struct<{
|
|
3273
|
+
readonly type: Schema.Literal<"sticker">;
|
|
3274
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3275
|
+
}>]>]>;
|
|
3276
|
+
export type WhatsAppInteractiveHeader = WhatsAppTextHeader | WhatsAppImageHeader | WhatsAppVideoHeader | WhatsAppDocumentHeader;
|
|
3277
|
+
export declare const WhatsAppInteractiveHeader: Schema.Union<readonly [Schema.Struct<{
|
|
3278
|
+
readonly type: Schema.Literal<"text">;
|
|
3279
|
+
readonly text: Schema.String;
|
|
3280
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
3281
|
+
readonly type: Schema.Literal<"image">;
|
|
3282
|
+
readonly url: Schema.String;
|
|
3283
|
+
}>, Schema.Struct<{
|
|
3284
|
+
readonly type: Schema.Literal<"image">;
|
|
3285
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3286
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3287
|
+
readonly type: Schema.Literal<"video">;
|
|
3288
|
+
readonly url: Schema.String;
|
|
3289
|
+
}>, Schema.Struct<{
|
|
3290
|
+
readonly type: Schema.Literal<"video">;
|
|
3291
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3292
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3293
|
+
readonly type: Schema.Literal<"document">;
|
|
3294
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3295
|
+
readonly url: Schema.String;
|
|
3296
|
+
}>, Schema.Struct<{
|
|
3297
|
+
readonly type: Schema.Literal<"document">;
|
|
3298
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3299
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3300
|
+
}>]>]>;
|
|
3301
|
+
export type SmsCampaignContentInput = {
|
|
3302
|
+
readonly channel: "sms";
|
|
3303
|
+
readonly sms: SmsDispatchContent;
|
|
3304
|
+
readonly conversationId?: CampaignConversationRef;
|
|
3305
|
+
readonly metadata?: CampaignContentMetadata;
|
|
3306
|
+
};
|
|
3307
|
+
export declare const SmsCampaignContentInput: Schema.Struct<{
|
|
3308
|
+
readonly channel: Schema.Literal<"sms">;
|
|
3309
|
+
readonly sms: Schema.Struct<{
|
|
3310
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3311
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
3312
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3313
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
3314
|
+
}>;
|
|
3315
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3316
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
3317
|
+
}>;
|
|
2483
3318
|
export type ContactIdentity = {
|
|
2484
3319
|
readonly id: ContactIdentityId;
|
|
2485
3320
|
readonly type: "email" | "phone";
|
|
@@ -2493,7 +3328,7 @@ export declare const ContactIdentity: Schema.Struct<{
|
|
|
2493
3328
|
readonly identifier: Schema.String;
|
|
2494
3329
|
readonly verified: Schema.Boolean;
|
|
2495
3330
|
readonly channels: Schema.$Array<Schema.Struct<{
|
|
2496
|
-
readonly channel: Schema.Literal<"email">;
|
|
3331
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
2497
3332
|
readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
|
|
2498
3333
|
readonly consent: Schema.Union<readonly [Schema.Struct<{
|
|
2499
3334
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
@@ -2503,6 +3338,22 @@ export declare const ContactIdentity: Schema.Struct<{
|
|
|
2503
3338
|
}>, Schema.Null]>;
|
|
2504
3339
|
}>>;
|
|
2505
3340
|
}>;
|
|
3341
|
+
export type WhatsAppTemplateDispatch = {
|
|
3342
|
+
readonly template: TemplateId | string;
|
|
3343
|
+
readonly templateData?: WhatsAppTemplateDispatchData;
|
|
3344
|
+
readonly bindings?: WhatsAppTemplateBindings;
|
|
3345
|
+
readonly businessAccountId?: WhatsAppBusinessAccountId;
|
|
3346
|
+
};
|
|
3347
|
+
export declare const WhatsAppTemplateDispatch: Schema.Struct<{
|
|
3348
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
3349
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
3350
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
3351
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
3352
|
+
}>, Schema.Struct<{
|
|
3353
|
+
readonly customField: Schema.String;
|
|
3354
|
+
}>]>>>;
|
|
3355
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
3356
|
+
}>;
|
|
2506
3357
|
export type BatchEventsPayload = {
|
|
2507
3358
|
readonly events: readonly [CreateEventPayload, ...Array<CreateEventPayload>];
|
|
2508
3359
|
};
|
|
@@ -2543,9 +3394,34 @@ export declare const BatchEventsPayload: Schema.Struct<{
|
|
|
2543
3394
|
readonly occurredAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2544
3395
|
}>]>;
|
|
2545
3396
|
}>;
|
|
3397
|
+
export type SmsSendMessagePayload = {
|
|
3398
|
+
readonly conversationId?: ConversationId | null;
|
|
3399
|
+
readonly metadata?: MessageMetadata;
|
|
3400
|
+
readonly channel: "sms";
|
|
3401
|
+
readonly to: SmsRecipients;
|
|
3402
|
+
readonly sms: SmsContent;
|
|
3403
|
+
};
|
|
3404
|
+
export declare const SmsSendMessagePayload: Schema.Struct<{
|
|
3405
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3406
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
3407
|
+
readonly channel: Schema.Literal<"sms">;
|
|
3408
|
+
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3409
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
3410
|
+
}>, Schema.Struct<{
|
|
3411
|
+
readonly phone: Schema.String;
|
|
3412
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3413
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3414
|
+
}>]>>;
|
|
3415
|
+
readonly sms: Schema.Struct<{
|
|
3416
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3417
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
3418
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3419
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
3420
|
+
}>;
|
|
3421
|
+
}>;
|
|
2546
3422
|
export type TopicSetSubscriptionsPayload = {
|
|
2547
3423
|
readonly contacts: ReadonlyArray<TopicContactRef>;
|
|
2548
|
-
readonly channel: "email";
|
|
3424
|
+
readonly channel: "sms" | "whatsapp" | "email";
|
|
2549
3425
|
readonly status: "subscribed" | "unsubscribed";
|
|
2550
3426
|
readonly source?: string | null;
|
|
2551
3427
|
};
|
|
@@ -2557,7 +3433,7 @@ export declare const TopicSetSubscriptionsPayload: Schema.Struct<{
|
|
|
2557
3433
|
}>, Schema.Struct<{
|
|
2558
3434
|
readonly phone: Schema.String;
|
|
2559
3435
|
}>]>>;
|
|
2560
|
-
readonly channel: Schema.Literal<"email">;
|
|
3436
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
2561
3437
|
readonly status: Schema.Union<readonly [Schema.Literal<"subscribed">, Schema.Literal<"unsubscribed">]>;
|
|
2562
3438
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2563
3439
|
}>;
|
|
@@ -2765,6 +3641,7 @@ export declare const CreateAgentPayload: Schema.Struct<{
|
|
|
2765
3641
|
readonly definition: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2766
3642
|
readonly instructions: Schema.String;
|
|
2767
3643
|
readonly knowledge: Schema.String;
|
|
3644
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
2768
3645
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
2769
3646
|
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
2770
3647
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
@@ -2779,7 +3656,8 @@ export declare const CreateAgentPayload: Schema.Struct<{
|
|
|
2779
3656
|
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
2780
3657
|
}>>;
|
|
2781
3658
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
2782
|
-
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
3659
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
3660
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
2783
3661
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
2784
3662
|
readonly timeZone: Schema.String;
|
|
2785
3663
|
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
@@ -2800,6 +3678,7 @@ export declare const ReplaceAgentDraftPayload: Schema.Struct<{
|
|
|
2800
3678
|
readonly definition: Schema.Struct<{
|
|
2801
3679
|
readonly instructions: Schema.String;
|
|
2802
3680
|
readonly knowledge: Schema.String;
|
|
3681
|
+
readonly knowledgeSourceIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "KnowledgeSourceId">>>;
|
|
2803
3682
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
2804
3683
|
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
2805
3684
|
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
@@ -2814,7 +3693,8 @@ export declare const ReplaceAgentDraftPayload: Schema.Struct<{
|
|
|
2814
3693
|
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
2815
3694
|
}>>;
|
|
2816
3695
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
2817
|
-
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
3696
|
+
readonly model: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>, Schema.String]>;
|
|
3697
|
+
readonly reasoning: Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"low">, Schema.Literal<"medium">, Schema.Literal<"high">]>;
|
|
2818
3698
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
2819
3699
|
readonly timeZone: Schema.String;
|
|
2820
3700
|
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
@@ -2826,7 +3706,7 @@ export declare const ReplaceAgentDraftPayload: Schema.Struct<{
|
|
|
2826
3706
|
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
2827
3707
|
}>;
|
|
2828
3708
|
}>;
|
|
2829
|
-
export type
|
|
3709
|
+
export type EmailCampaignContentInput = {
|
|
2830
3710
|
readonly channel: "email";
|
|
2831
3711
|
readonly email: CampaignEmailInput;
|
|
2832
3712
|
readonly issue?: {
|
|
@@ -2838,7 +3718,7 @@ export type CampaignContentInput = {
|
|
|
2838
3718
|
readonly conversationId?: CampaignConversationRef;
|
|
2839
3719
|
readonly metadata?: CampaignContentMetadata;
|
|
2840
3720
|
};
|
|
2841
|
-
export declare const
|
|
3721
|
+
export declare const EmailCampaignContentInput: Schema.Struct<{
|
|
2842
3722
|
readonly channel: Schema.Literal<"email">;
|
|
2843
3723
|
readonly email: Schema.Struct<{
|
|
2844
3724
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -2953,75 +3833,170 @@ export declare const EmailSendMessagePayload: Schema.Struct<{
|
|
|
2953
3833
|
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
2954
3834
|
}>;
|
|
2955
3835
|
}>;
|
|
2956
|
-
export type
|
|
2957
|
-
readonly
|
|
2958
|
-
readonly metadata?: MessageMetadata;
|
|
2959
|
-
readonly channel: "email";
|
|
2960
|
-
readonly to: EmailRecipients;
|
|
2961
|
-
readonly cc?: EmailCcRecipients;
|
|
2962
|
-
readonly bcc?: EmailBccRecipients;
|
|
2963
|
-
readonly from?: EmailSender;
|
|
2964
|
-
readonly email: EmailContent;
|
|
3836
|
+
export type WhatsAppMediaContent = {
|
|
3837
|
+
readonly media: WhatsAppOutboundMedia;
|
|
2965
3838
|
};
|
|
2966
|
-
export declare const
|
|
2967
|
-
readonly
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
3839
|
+
export declare const WhatsAppMediaContent: Schema.Struct<{
|
|
3840
|
+
readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
3841
|
+
readonly type: Schema.Literal<"image">;
|
|
3842
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3843
|
+
readonly url: Schema.String;
|
|
2972
3844
|
}>, Schema.Struct<{
|
|
2973
|
-
readonly
|
|
2974
|
-
readonly
|
|
2975
|
-
readonly
|
|
2976
|
-
}>]
|
|
2977
|
-
|
|
2978
|
-
readonly
|
|
3845
|
+
readonly type: Schema.Literal<"image">;
|
|
3846
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3847
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3848
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3849
|
+
readonly type: Schema.Literal<"video">;
|
|
3850
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3851
|
+
readonly url: Schema.String;
|
|
2979
3852
|
}>, Schema.Struct<{
|
|
2980
|
-
readonly
|
|
2981
|
-
readonly
|
|
2982
|
-
readonly
|
|
2983
|
-
}>]
|
|
2984
|
-
|
|
2985
|
-
readonly
|
|
3853
|
+
readonly type: Schema.Literal<"video">;
|
|
3854
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3855
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3856
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3857
|
+
readonly type: Schema.Literal<"audio">;
|
|
3858
|
+
readonly url: Schema.String;
|
|
2986
3859
|
}>, Schema.Struct<{
|
|
2987
|
-
readonly
|
|
2988
|
-
readonly
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
readonly
|
|
2993
|
-
readonly
|
|
2994
|
-
}>, Schema.
|
|
2995
|
-
|
|
2996
|
-
readonly
|
|
2997
|
-
readonly
|
|
2998
|
-
readonly
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
readonly
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
readonly
|
|
3860
|
+
readonly type: Schema.Literal<"audio">;
|
|
3861
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3862
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3863
|
+
readonly type: Schema.Literal<"document">;
|
|
3864
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3865
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3866
|
+
readonly url: Schema.String;
|
|
3867
|
+
}>, Schema.Struct<{
|
|
3868
|
+
readonly type: Schema.Literal<"document">;
|
|
3869
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
3870
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3871
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3872
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3873
|
+
readonly type: Schema.Literal<"sticker">;
|
|
3874
|
+
readonly url: Schema.String;
|
|
3875
|
+
}>, Schema.Struct<{
|
|
3876
|
+
readonly type: Schema.Literal<"sticker">;
|
|
3877
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3878
|
+
}>]>]>;
|
|
3879
|
+
}>;
|
|
3880
|
+
export type WhatsAppButtonsMessage = {
|
|
3881
|
+
readonly type: "buttons";
|
|
3882
|
+
readonly header?: WhatsAppInteractiveHeader;
|
|
3883
|
+
readonly body: string;
|
|
3884
|
+
readonly footer?: string;
|
|
3885
|
+
readonly buttons: ReadonlyArray<WhatsAppReplyButton>;
|
|
3886
|
+
};
|
|
3887
|
+
export declare const WhatsAppButtonsMessage: Schema.Struct<{
|
|
3888
|
+
readonly type: Schema.Literal<"buttons">;
|
|
3889
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3890
|
+
readonly type: Schema.Literal<"text">;
|
|
3891
|
+
readonly text: Schema.String;
|
|
3892
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
3893
|
+
readonly type: Schema.Literal<"image">;
|
|
3894
|
+
readonly url: Schema.String;
|
|
3895
|
+
}>, Schema.Struct<{
|
|
3896
|
+
readonly type: Schema.Literal<"image">;
|
|
3897
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3898
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3899
|
+
readonly type: Schema.Literal<"video">;
|
|
3900
|
+
readonly url: Schema.String;
|
|
3901
|
+
}>, Schema.Struct<{
|
|
3902
|
+
readonly type: Schema.Literal<"video">;
|
|
3903
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3904
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3905
|
+
readonly type: Schema.Literal<"document">;
|
|
3906
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3907
|
+
readonly url: Schema.String;
|
|
3908
|
+
}>, Schema.Struct<{
|
|
3909
|
+
readonly type: Schema.Literal<"document">;
|
|
3910
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3911
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3912
|
+
}>]>]>>;
|
|
3913
|
+
readonly body: Schema.String;
|
|
3914
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
3915
|
+
readonly buttons: Schema.$Array<Schema.Struct<{
|
|
3916
|
+
readonly id: Schema.String;
|
|
3917
|
+
readonly title: Schema.String;
|
|
3918
|
+
}>>;
|
|
3919
|
+
}>;
|
|
3920
|
+
export type WhatsAppCtaUrlMessage = {
|
|
3921
|
+
readonly type: "cta_url";
|
|
3922
|
+
readonly header?: WhatsAppInteractiveHeader;
|
|
3923
|
+
readonly body: string;
|
|
3924
|
+
readonly footer?: string;
|
|
3925
|
+
readonly displayText: string;
|
|
3926
|
+
readonly url: string;
|
|
3927
|
+
};
|
|
3928
|
+
export declare const WhatsAppCtaUrlMessage: Schema.Struct<{
|
|
3929
|
+
readonly type: Schema.Literal<"cta_url">;
|
|
3930
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3931
|
+
readonly type: Schema.Literal<"text">;
|
|
3932
|
+
readonly text: Schema.String;
|
|
3933
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
3934
|
+
readonly type: Schema.Literal<"image">;
|
|
3935
|
+
readonly url: Schema.String;
|
|
3936
|
+
}>, Schema.Struct<{
|
|
3937
|
+
readonly type: Schema.Literal<"image">;
|
|
3938
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3939
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3940
|
+
readonly type: Schema.Literal<"video">;
|
|
3941
|
+
readonly url: Schema.String;
|
|
3942
|
+
}>, Schema.Struct<{
|
|
3943
|
+
readonly type: Schema.Literal<"video">;
|
|
3944
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3945
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
3946
|
+
readonly type: Schema.Literal<"document">;
|
|
3947
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3948
|
+
readonly url: Schema.String;
|
|
3949
|
+
}>, Schema.Struct<{
|
|
3950
|
+
readonly type: Schema.Literal<"document">;
|
|
3951
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
3952
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
3953
|
+
}>]>]>>;
|
|
3954
|
+
readonly body: Schema.String;
|
|
3955
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
3956
|
+
readonly displayText: Schema.String;
|
|
3957
|
+
readonly url: Schema.String;
|
|
3958
|
+
}>;
|
|
3959
|
+
export type WhatsAppCampaignContentInput = {
|
|
3960
|
+
readonly channel: "whatsapp";
|
|
3961
|
+
readonly whatsapp: WhatsAppTemplateDispatch;
|
|
3962
|
+
readonly conversationId?: CampaignConversationRef;
|
|
3963
|
+
readonly metadata?: CampaignContentMetadata;
|
|
3964
|
+
};
|
|
3965
|
+
export declare const WhatsAppCampaignContentInput: Schema.Struct<{
|
|
3966
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
3967
|
+
readonly whatsapp: Schema.Struct<{
|
|
3968
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
3969
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
3970
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
3971
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
3972
|
+
}>, Schema.Struct<{
|
|
3973
|
+
readonly customField: Schema.String;
|
|
3974
|
+
}>]>>>;
|
|
3975
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
3976
|
+
}>;
|
|
3977
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3978
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
3979
|
+
}>;
|
|
3980
|
+
export type WhatsAppJourneySendNode = {
|
|
3981
|
+
readonly type: "send_whatsapp";
|
|
3982
|
+
readonly config: WhatsAppTemplateDispatch;
|
|
3983
|
+
readonly next: readonly [JourneyNextEdge];
|
|
3984
|
+
};
|
|
3985
|
+
export declare const WhatsAppJourneySendNode: Schema.Struct<{
|
|
3986
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
3987
|
+
readonly config: Schema.Struct<{
|
|
3988
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
3989
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
3990
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
3991
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
3992
|
+
}>, Schema.Struct<{
|
|
3993
|
+
readonly customField: Schema.String;
|
|
3994
|
+
}>]>>>;
|
|
3995
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
3024
3996
|
}>;
|
|
3997
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3998
|
+
readonly nodeId: Schema.String;
|
|
3999
|
+
}>]>;
|
|
3025
4000
|
}>;
|
|
3026
4001
|
export type JourneyCondition = {
|
|
3027
4002
|
readonly match: "all" | "any";
|
|
@@ -3107,66 +4082,171 @@ export declare const JourneyCondition: Schema.Struct<{
|
|
|
3107
4082
|
readonly occurred: Schema.Boolean;
|
|
3108
4083
|
}>]>]>;
|
|
3109
4084
|
}>;
|
|
3110
|
-
export type
|
|
3111
|
-
|
|
3112
|
-
readonly
|
|
3113
|
-
readonly
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
readonly
|
|
3117
|
-
readonly
|
|
3118
|
-
readonly
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
readonly
|
|
3154
|
-
|
|
3155
|
-
readonly
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
4085
|
+
export type WhatsAppInteractive = WhatsAppButtonsMessage | WhatsAppListMessage | WhatsAppCtaUrlMessage | WhatsAppFlowMessage;
|
|
4086
|
+
export declare const WhatsAppInteractive: Schema.Union<readonly [Schema.Struct<{
|
|
4087
|
+
readonly type: Schema.Literal<"buttons">;
|
|
4088
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
4089
|
+
readonly type: Schema.Literal<"text">;
|
|
4090
|
+
readonly text: Schema.String;
|
|
4091
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
4092
|
+
readonly type: Schema.Literal<"image">;
|
|
4093
|
+
readonly url: Schema.String;
|
|
4094
|
+
}>, Schema.Struct<{
|
|
4095
|
+
readonly type: Schema.Literal<"image">;
|
|
4096
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4097
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4098
|
+
readonly type: Schema.Literal<"video">;
|
|
4099
|
+
readonly url: Schema.String;
|
|
4100
|
+
}>, Schema.Struct<{
|
|
4101
|
+
readonly type: Schema.Literal<"video">;
|
|
4102
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4103
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4104
|
+
readonly type: Schema.Literal<"document">;
|
|
4105
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4106
|
+
readonly url: Schema.String;
|
|
4107
|
+
}>, Schema.Struct<{
|
|
4108
|
+
readonly type: Schema.Literal<"document">;
|
|
4109
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4110
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4111
|
+
}>]>]>>;
|
|
4112
|
+
readonly body: Schema.String;
|
|
4113
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
4114
|
+
readonly buttons: Schema.$Array<Schema.Struct<{
|
|
4115
|
+
readonly id: Schema.String;
|
|
4116
|
+
readonly title: Schema.String;
|
|
4117
|
+
}>>;
|
|
4118
|
+
}>, Schema.Struct<{
|
|
4119
|
+
readonly type: Schema.Literal<"list">;
|
|
4120
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
4121
|
+
readonly type: Schema.Literal<"text">;
|
|
4122
|
+
readonly text: Schema.String;
|
|
4123
|
+
}>>;
|
|
4124
|
+
readonly body: Schema.String;
|
|
4125
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
4126
|
+
readonly button: Schema.String;
|
|
4127
|
+
readonly sections: Schema.$Array<Schema.Struct<{
|
|
4128
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
4129
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
4130
|
+
readonly id: Schema.String;
|
|
4131
|
+
readonly title: Schema.String;
|
|
4132
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
4133
|
+
}>>;
|
|
4134
|
+
}>>;
|
|
4135
|
+
}>, Schema.Struct<{
|
|
4136
|
+
readonly type: Schema.Literal<"cta_url">;
|
|
4137
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
4138
|
+
readonly type: Schema.Literal<"text">;
|
|
4139
|
+
readonly text: Schema.String;
|
|
4140
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
4141
|
+
readonly type: Schema.Literal<"image">;
|
|
4142
|
+
readonly url: Schema.String;
|
|
4143
|
+
}>, Schema.Struct<{
|
|
4144
|
+
readonly type: Schema.Literal<"image">;
|
|
4145
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4146
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4147
|
+
readonly type: Schema.Literal<"video">;
|
|
4148
|
+
readonly url: Schema.String;
|
|
4149
|
+
}>, Schema.Struct<{
|
|
4150
|
+
readonly type: Schema.Literal<"video">;
|
|
4151
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4152
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4153
|
+
readonly type: Schema.Literal<"document">;
|
|
4154
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4155
|
+
readonly url: Schema.String;
|
|
4156
|
+
}>, Schema.Struct<{
|
|
4157
|
+
readonly type: Schema.Literal<"document">;
|
|
4158
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4159
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4160
|
+
}>]>]>>;
|
|
4161
|
+
readonly body: Schema.String;
|
|
4162
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
4163
|
+
readonly displayText: Schema.String;
|
|
4164
|
+
readonly url: Schema.String;
|
|
4165
|
+
}>, Schema.Struct<{
|
|
4166
|
+
readonly type: Schema.Literal<"flow">;
|
|
4167
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
4168
|
+
readonly type: Schema.Literal<"text">;
|
|
4169
|
+
readonly text: Schema.String;
|
|
4170
|
+
}>>;
|
|
4171
|
+
readonly body: Schema.String;
|
|
4172
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
4173
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
4174
|
+
readonly cta: Schema.String;
|
|
4175
|
+
readonly token: Schema.optionalKey<Schema.String>;
|
|
4176
|
+
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"navigate">, Schema.Literal<"data_exchange">]>>;
|
|
4177
|
+
readonly screen: Schema.optionalKey<Schema.String>;
|
|
4178
|
+
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
4179
|
+
}>]>;
|
|
4180
|
+
export type CampaignContentInput = EmailCampaignContentInput | SmsCampaignContentInput | WhatsAppCampaignContentInput;
|
|
4181
|
+
export declare const CampaignContentInput: Schema.Union<readonly [Schema.Struct<{
|
|
4182
|
+
readonly channel: Schema.Literal<"email">;
|
|
4183
|
+
readonly email: Schema.Struct<{
|
|
4184
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4185
|
+
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4186
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4187
|
+
readonly attachments: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
4188
|
+
readonly filename: Schema.String;
|
|
4189
|
+
readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4190
|
+
readonly mediaId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MediaId">, Schema.Null]>>;
|
|
4191
|
+
readonly contentType: Schema.String;
|
|
4192
|
+
readonly size: Schema.Finite;
|
|
4193
|
+
}>>, Schema.Null]>>;
|
|
4194
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
4195
|
+
readonly inputContractId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateInputContractId">>;
|
|
4196
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
4197
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4198
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
4199
|
+
readonly locale: Schema.optionalKey<Schema.String>;
|
|
4200
|
+
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
4201
|
+
readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
|
|
4202
|
+
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
4203
|
+
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
|
|
4204
|
+
readonly tracking: Schema.optionalKey<Schema.Struct<{
|
|
4205
|
+
readonly opens: Schema.optionalKey<Schema.Boolean>;
|
|
4206
|
+
readonly clicks: Schema.optionalKey<Schema.Boolean>;
|
|
4207
|
+
}>>;
|
|
4208
|
+
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
4209
|
+
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
4210
|
+
}>>;
|
|
4211
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
4212
|
+
readonly preheader: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3160
4213
|
}>;
|
|
3161
|
-
readonly
|
|
3162
|
-
readonly
|
|
3163
|
-
readonly
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
readonly
|
|
4214
|
+
readonly issue: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
4215
|
+
readonly path: Schema.String;
|
|
4216
|
+
readonly commit: Schema.String;
|
|
4217
|
+
}>, Schema.Null]>>;
|
|
4218
|
+
readonly from: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
4219
|
+
readonly email: Schema.String;
|
|
4220
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4221
|
+
}>, Schema.Null]>>;
|
|
4222
|
+
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
4223
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4224
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
4225
|
+
}>, Schema.Struct<{
|
|
4226
|
+
readonly channel: Schema.Literal<"sms">;
|
|
4227
|
+
readonly sms: Schema.Struct<{
|
|
4228
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4229
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
4230
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4231
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
3167
4232
|
}>;
|
|
3168
|
-
readonly
|
|
3169
|
-
|
|
4233
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4234
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
4235
|
+
}>, Schema.Struct<{
|
|
4236
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
4237
|
+
readonly whatsapp: Schema.Struct<{
|
|
4238
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
4239
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
4240
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
4241
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
4242
|
+
}>, Schema.Struct<{
|
|
4243
|
+
readonly customField: Schema.String;
|
|
4244
|
+
}>]>>>;
|
|
4245
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
4246
|
+
}>;
|
|
4247
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4248
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
4249
|
+
}>]>;
|
|
3170
4250
|
export type JourneyBranchEdge = {
|
|
3171
4251
|
readonly nodeId: JourneyNodeId;
|
|
3172
4252
|
readonly condition?: JourneyCondition;
|
|
@@ -3254,6 +4334,189 @@ export declare const JourneyBranchEdge: Schema.Struct<{
|
|
|
3254
4334
|
}>]>]>;
|
|
3255
4335
|
}>>;
|
|
3256
4336
|
}>;
|
|
4337
|
+
export type WhatsAppInteractiveContent = {
|
|
4338
|
+
readonly interactive: WhatsAppInteractive;
|
|
4339
|
+
};
|
|
4340
|
+
export declare const WhatsAppInteractiveContent: Schema.Struct<{
|
|
4341
|
+
readonly interactive: Schema.Union<readonly [Schema.Struct<{
|
|
4342
|
+
readonly type: Schema.Literal<"buttons">;
|
|
4343
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
4344
|
+
readonly type: Schema.Literal<"text">;
|
|
4345
|
+
readonly text: Schema.String;
|
|
4346
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
4347
|
+
readonly type: Schema.Literal<"image">;
|
|
4348
|
+
readonly url: Schema.String;
|
|
4349
|
+
}>, Schema.Struct<{
|
|
4350
|
+
readonly type: Schema.Literal<"image">;
|
|
4351
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4352
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4353
|
+
readonly type: Schema.Literal<"video">;
|
|
4354
|
+
readonly url: Schema.String;
|
|
4355
|
+
}>, Schema.Struct<{
|
|
4356
|
+
readonly type: Schema.Literal<"video">;
|
|
4357
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4358
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4359
|
+
readonly type: Schema.Literal<"document">;
|
|
4360
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4361
|
+
readonly url: Schema.String;
|
|
4362
|
+
}>, Schema.Struct<{
|
|
4363
|
+
readonly type: Schema.Literal<"document">;
|
|
4364
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4365
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4366
|
+
}>]>]>>;
|
|
4367
|
+
readonly body: Schema.String;
|
|
4368
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
4369
|
+
readonly buttons: Schema.$Array<Schema.Struct<{
|
|
4370
|
+
readonly id: Schema.String;
|
|
4371
|
+
readonly title: Schema.String;
|
|
4372
|
+
}>>;
|
|
4373
|
+
}>, Schema.Struct<{
|
|
4374
|
+
readonly type: Schema.Literal<"list">;
|
|
4375
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
4376
|
+
readonly type: Schema.Literal<"text">;
|
|
4377
|
+
readonly text: Schema.String;
|
|
4378
|
+
}>>;
|
|
4379
|
+
readonly body: Schema.String;
|
|
4380
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
4381
|
+
readonly button: Schema.String;
|
|
4382
|
+
readonly sections: Schema.$Array<Schema.Struct<{
|
|
4383
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
4384
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
4385
|
+
readonly id: Schema.String;
|
|
4386
|
+
readonly title: Schema.String;
|
|
4387
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
4388
|
+
}>>;
|
|
4389
|
+
}>>;
|
|
4390
|
+
}>, Schema.Struct<{
|
|
4391
|
+
readonly type: Schema.Literal<"cta_url">;
|
|
4392
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
4393
|
+
readonly type: Schema.Literal<"text">;
|
|
4394
|
+
readonly text: Schema.String;
|
|
4395
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
4396
|
+
readonly type: Schema.Literal<"image">;
|
|
4397
|
+
readonly url: Schema.String;
|
|
4398
|
+
}>, Schema.Struct<{
|
|
4399
|
+
readonly type: Schema.Literal<"image">;
|
|
4400
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4401
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4402
|
+
readonly type: Schema.Literal<"video">;
|
|
4403
|
+
readonly url: Schema.String;
|
|
4404
|
+
}>, Schema.Struct<{
|
|
4405
|
+
readonly type: Schema.Literal<"video">;
|
|
4406
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4407
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4408
|
+
readonly type: Schema.Literal<"document">;
|
|
4409
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4410
|
+
readonly url: Schema.String;
|
|
4411
|
+
}>, Schema.Struct<{
|
|
4412
|
+
readonly type: Schema.Literal<"document">;
|
|
4413
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4414
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4415
|
+
}>]>]>>;
|
|
4416
|
+
readonly body: Schema.String;
|
|
4417
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
4418
|
+
readonly displayText: Schema.String;
|
|
4419
|
+
readonly url: Schema.String;
|
|
4420
|
+
}>, Schema.Struct<{
|
|
4421
|
+
readonly type: Schema.Literal<"flow">;
|
|
4422
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
4423
|
+
readonly type: Schema.Literal<"text">;
|
|
4424
|
+
readonly text: Schema.String;
|
|
4425
|
+
}>>;
|
|
4426
|
+
readonly body: Schema.String;
|
|
4427
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
4428
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
4429
|
+
readonly cta: Schema.String;
|
|
4430
|
+
readonly token: Schema.optionalKey<Schema.String>;
|
|
4431
|
+
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"navigate">, Schema.Literal<"data_exchange">]>>;
|
|
4432
|
+
readonly screen: Schema.optionalKey<Schema.String>;
|
|
4433
|
+
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
4434
|
+
}>]>;
|
|
4435
|
+
}>;
|
|
4436
|
+
export type CampaignComposition = {
|
|
4437
|
+
readonly content: CampaignContentInput;
|
|
4438
|
+
readonly audience: CampaignAudience;
|
|
4439
|
+
readonly contactId?: ContactId | null;
|
|
4440
|
+
};
|
|
4441
|
+
export declare const CampaignComposition: Schema.Struct<{
|
|
4442
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
4443
|
+
readonly channel: Schema.Literal<"email">;
|
|
4444
|
+
readonly email: Schema.Struct<{
|
|
4445
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4446
|
+
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4447
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4448
|
+
readonly attachments: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
4449
|
+
readonly filename: Schema.String;
|
|
4450
|
+
readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4451
|
+
readonly mediaId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MediaId">, Schema.Null]>>;
|
|
4452
|
+
readonly contentType: Schema.String;
|
|
4453
|
+
readonly size: Schema.Finite;
|
|
4454
|
+
}>>, Schema.Null]>>;
|
|
4455
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
4456
|
+
readonly inputContractId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateInputContractId">>;
|
|
4457
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
4458
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4459
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
4460
|
+
readonly locale: Schema.optionalKey<Schema.String>;
|
|
4461
|
+
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
4462
|
+
readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
|
|
4463
|
+
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
4464
|
+
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
|
|
4465
|
+
readonly tracking: Schema.optionalKey<Schema.Struct<{
|
|
4466
|
+
readonly opens: Schema.optionalKey<Schema.Boolean>;
|
|
4467
|
+
readonly clicks: Schema.optionalKey<Schema.Boolean>;
|
|
4468
|
+
}>>;
|
|
4469
|
+
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
4470
|
+
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
4471
|
+
}>>;
|
|
4472
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
4473
|
+
readonly preheader: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4474
|
+
}>;
|
|
4475
|
+
readonly issue: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
4476
|
+
readonly path: Schema.String;
|
|
4477
|
+
readonly commit: Schema.String;
|
|
4478
|
+
}>, Schema.Null]>>;
|
|
4479
|
+
readonly from: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
4480
|
+
readonly email: Schema.String;
|
|
4481
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4482
|
+
}>, Schema.Null]>>;
|
|
4483
|
+
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
4484
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4485
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
4486
|
+
}>, Schema.Struct<{
|
|
4487
|
+
readonly channel: Schema.Literal<"sms">;
|
|
4488
|
+
readonly sms: Schema.Struct<{
|
|
4489
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4490
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
4491
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4492
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
4493
|
+
}>;
|
|
4494
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4495
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
4496
|
+
}>, Schema.Struct<{
|
|
4497
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
4498
|
+
readonly whatsapp: Schema.Struct<{
|
|
4499
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
4500
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
4501
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
4502
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
4503
|
+
}>, Schema.Struct<{
|
|
4504
|
+
readonly customField: Schema.String;
|
|
4505
|
+
}>]>>>;
|
|
4506
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
4507
|
+
}>;
|
|
4508
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4509
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
4510
|
+
}>]>;
|
|
4511
|
+
readonly audience: Schema.Struct<{
|
|
4512
|
+
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
4513
|
+
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
4514
|
+
readonly excludeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
4515
|
+
readonly contactIds: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "ContactId">>, Schema.Null]>>;
|
|
4516
|
+
readonly groupIds: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "ContactGroupId">>, Schema.Null]>>;
|
|
4517
|
+
}>;
|
|
4518
|
+
readonly contactId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ContactId">, Schema.Null]>>;
|
|
4519
|
+
}>;
|
|
3257
4520
|
export type JourneyBranchNode = {
|
|
3258
4521
|
readonly type: "branch";
|
|
3259
4522
|
readonly config: JourneyEmptyConfig;
|
|
@@ -3346,7 +4609,205 @@ export declare const JourneyBranchNode: Schema.Struct<{
|
|
|
3346
4609
|
}>>;
|
|
3347
4610
|
}>>;
|
|
3348
4611
|
}>;
|
|
3349
|
-
export type
|
|
4612
|
+
export type WhatsAppContent = WhatsAppTextContent | WhatsAppTemplateIdContent | WhatsAppTemplateSlugContent | WhatsAppMediaContent | WhatsAppInteractiveContent | WhatsAppReactionContent | WhatsAppLocationContent | WhatsAppContactsContent;
|
|
4613
|
+
export declare const WhatsAppContent: Schema.Union<readonly [Schema.Struct<{
|
|
4614
|
+
readonly text: Schema.String;
|
|
4615
|
+
}>, Schema.Struct<{
|
|
4616
|
+
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
4617
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
4618
|
+
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
4619
|
+
}>, Schema.Struct<{
|
|
4620
|
+
readonly templateSlug: Schema.String;
|
|
4621
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
4622
|
+
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
4623
|
+
}>, Schema.Struct<{
|
|
4624
|
+
readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
4625
|
+
readonly type: Schema.Literal<"image">;
|
|
4626
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4627
|
+
readonly url: Schema.String;
|
|
4628
|
+
}>, Schema.Struct<{
|
|
4629
|
+
readonly type: Schema.Literal<"image">;
|
|
4630
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4631
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4632
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4633
|
+
readonly type: Schema.Literal<"video">;
|
|
4634
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4635
|
+
readonly url: Schema.String;
|
|
4636
|
+
}>, Schema.Struct<{
|
|
4637
|
+
readonly type: Schema.Literal<"video">;
|
|
4638
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4639
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4640
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4641
|
+
readonly type: Schema.Literal<"audio">;
|
|
4642
|
+
readonly url: Schema.String;
|
|
4643
|
+
}>, Schema.Struct<{
|
|
4644
|
+
readonly type: Schema.Literal<"audio">;
|
|
4645
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4646
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4647
|
+
readonly type: Schema.Literal<"document">;
|
|
4648
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4649
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4650
|
+
readonly url: Schema.String;
|
|
4651
|
+
}>, Schema.Struct<{
|
|
4652
|
+
readonly type: Schema.Literal<"document">;
|
|
4653
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4654
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4655
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4656
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4657
|
+
readonly type: Schema.Literal<"sticker">;
|
|
4658
|
+
readonly url: Schema.String;
|
|
4659
|
+
}>, Schema.Struct<{
|
|
4660
|
+
readonly type: Schema.Literal<"sticker">;
|
|
4661
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4662
|
+
}>]>]>;
|
|
4663
|
+
}>, Schema.Struct<{
|
|
4664
|
+
readonly interactive: Schema.Union<readonly [Schema.Struct<{
|
|
4665
|
+
readonly type: Schema.Literal<"buttons">;
|
|
4666
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
4667
|
+
readonly type: Schema.Literal<"text">;
|
|
4668
|
+
readonly text: Schema.String;
|
|
4669
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
4670
|
+
readonly type: Schema.Literal<"image">;
|
|
4671
|
+
readonly url: Schema.String;
|
|
4672
|
+
}>, Schema.Struct<{
|
|
4673
|
+
readonly type: Schema.Literal<"image">;
|
|
4674
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4675
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4676
|
+
readonly type: Schema.Literal<"video">;
|
|
4677
|
+
readonly url: Schema.String;
|
|
4678
|
+
}>, Schema.Struct<{
|
|
4679
|
+
readonly type: Schema.Literal<"video">;
|
|
4680
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4681
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4682
|
+
readonly type: Schema.Literal<"document">;
|
|
4683
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4684
|
+
readonly url: Schema.String;
|
|
4685
|
+
}>, Schema.Struct<{
|
|
4686
|
+
readonly type: Schema.Literal<"document">;
|
|
4687
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4688
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4689
|
+
}>]>]>>;
|
|
4690
|
+
readonly body: Schema.String;
|
|
4691
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
4692
|
+
readonly buttons: Schema.$Array<Schema.Struct<{
|
|
4693
|
+
readonly id: Schema.String;
|
|
4694
|
+
readonly title: Schema.String;
|
|
4695
|
+
}>>;
|
|
4696
|
+
}>, Schema.Struct<{
|
|
4697
|
+
readonly type: Schema.Literal<"list">;
|
|
4698
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
4699
|
+
readonly type: Schema.Literal<"text">;
|
|
4700
|
+
readonly text: Schema.String;
|
|
4701
|
+
}>>;
|
|
4702
|
+
readonly body: Schema.String;
|
|
4703
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
4704
|
+
readonly button: Schema.String;
|
|
4705
|
+
readonly sections: Schema.$Array<Schema.Struct<{
|
|
4706
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
4707
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
4708
|
+
readonly id: Schema.String;
|
|
4709
|
+
readonly title: Schema.String;
|
|
4710
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
4711
|
+
}>>;
|
|
4712
|
+
}>>;
|
|
4713
|
+
}>, Schema.Struct<{
|
|
4714
|
+
readonly type: Schema.Literal<"cta_url">;
|
|
4715
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
4716
|
+
readonly type: Schema.Literal<"text">;
|
|
4717
|
+
readonly text: Schema.String;
|
|
4718
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
4719
|
+
readonly type: Schema.Literal<"image">;
|
|
4720
|
+
readonly url: Schema.String;
|
|
4721
|
+
}>, Schema.Struct<{
|
|
4722
|
+
readonly type: Schema.Literal<"image">;
|
|
4723
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4724
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4725
|
+
readonly type: Schema.Literal<"video">;
|
|
4726
|
+
readonly url: Schema.String;
|
|
4727
|
+
}>, Schema.Struct<{
|
|
4728
|
+
readonly type: Schema.Literal<"video">;
|
|
4729
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4730
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
4731
|
+
readonly type: Schema.Literal<"document">;
|
|
4732
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4733
|
+
readonly url: Schema.String;
|
|
4734
|
+
}>, Schema.Struct<{
|
|
4735
|
+
readonly type: Schema.Literal<"document">;
|
|
4736
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
4737
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
4738
|
+
}>]>]>>;
|
|
4739
|
+
readonly body: Schema.String;
|
|
4740
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
4741
|
+
readonly displayText: Schema.String;
|
|
4742
|
+
readonly url: Schema.String;
|
|
4743
|
+
}>, Schema.Struct<{
|
|
4744
|
+
readonly type: Schema.Literal<"flow">;
|
|
4745
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
4746
|
+
readonly type: Schema.Literal<"text">;
|
|
4747
|
+
readonly text: Schema.String;
|
|
4748
|
+
}>>;
|
|
4749
|
+
readonly body: Schema.String;
|
|
4750
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
4751
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
4752
|
+
readonly cta: Schema.String;
|
|
4753
|
+
readonly token: Schema.optionalKey<Schema.String>;
|
|
4754
|
+
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"navigate">, Schema.Literal<"data_exchange">]>>;
|
|
4755
|
+
readonly screen: Schema.optionalKey<Schema.String>;
|
|
4756
|
+
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
4757
|
+
}>]>;
|
|
4758
|
+
}>, Schema.Struct<{
|
|
4759
|
+
readonly reaction: Schema.Struct<{
|
|
4760
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
4761
|
+
readonly emoji: Schema.String;
|
|
4762
|
+
}>;
|
|
4763
|
+
}>, Schema.Struct<{
|
|
4764
|
+
readonly location: Schema.Struct<{
|
|
4765
|
+
readonly latitude: Schema.Finite;
|
|
4766
|
+
readonly longitude: Schema.Finite;
|
|
4767
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
4768
|
+
readonly address: Schema.optionalKey<Schema.String>;
|
|
4769
|
+
}>;
|
|
4770
|
+
}>, Schema.Struct<{
|
|
4771
|
+
readonly contacts: Schema.$Array<Schema.Struct<{
|
|
4772
|
+
readonly name: Schema.Struct<{
|
|
4773
|
+
readonly formattedName: Schema.String;
|
|
4774
|
+
readonly firstName: Schema.optionalKey<Schema.String>;
|
|
4775
|
+
readonly lastName: Schema.optionalKey<Schema.String>;
|
|
4776
|
+
readonly middleName: Schema.optionalKey<Schema.String>;
|
|
4777
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
4778
|
+
readonly suffix: Schema.optionalKey<Schema.String>;
|
|
4779
|
+
}>;
|
|
4780
|
+
readonly phones: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4781
|
+
readonly phone: Schema.String;
|
|
4782
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
4783
|
+
readonly waId: Schema.optionalKey<Schema.String>;
|
|
4784
|
+
}>>>;
|
|
4785
|
+
readonly emails: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4786
|
+
readonly email: Schema.String;
|
|
4787
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
4788
|
+
}>>>;
|
|
4789
|
+
readonly urls: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4790
|
+
readonly url: Schema.String;
|
|
4791
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
4792
|
+
}>>>;
|
|
4793
|
+
readonly org: Schema.optionalKey<Schema.Struct<{
|
|
4794
|
+
readonly company: Schema.optionalKey<Schema.String>;
|
|
4795
|
+
readonly department: Schema.optionalKey<Schema.String>;
|
|
4796
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
4797
|
+
}>>;
|
|
4798
|
+
readonly addresses: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4799
|
+
readonly street: Schema.optionalKey<Schema.String>;
|
|
4800
|
+
readonly city: Schema.optionalKey<Schema.String>;
|
|
4801
|
+
readonly state: Schema.optionalKey<Schema.String>;
|
|
4802
|
+
readonly zip: Schema.optionalKey<Schema.String>;
|
|
4803
|
+
readonly country: Schema.optionalKey<Schema.String>;
|
|
4804
|
+
readonly countryCode: Schema.optionalKey<Schema.String>;
|
|
4805
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
4806
|
+
}>>>;
|
|
4807
|
+
readonly birthday: Schema.optionalKey<Schema.String>;
|
|
4808
|
+
}>>;
|
|
4809
|
+
}>]>;
|
|
4810
|
+
export type JourneyNode = JourneySendEmailNode | WhatsAppJourneySendNode | JourneyWaitNode | JourneyWaitForEventNode | JourneyBranchNode | JourneyUpdateTagsNode | JourneyWebhookNode | JourneyExitNode;
|
|
3350
4811
|
export declare const JourneyNode: Schema.Union<readonly [Schema.Struct<{
|
|
3351
4812
|
readonly type: Schema.Literal<"send_email">;
|
|
3352
4813
|
readonly config: Schema.Struct<{
|
|
@@ -3357,6 +4818,21 @@ export declare const JourneyNode: Schema.Union<readonly [Schema.Struct<{
|
|
|
3357
4818
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3358
4819
|
readonly nodeId: Schema.String;
|
|
3359
4820
|
}>]>;
|
|
4821
|
+
}>, Schema.Struct<{
|
|
4822
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
4823
|
+
readonly config: Schema.Struct<{
|
|
4824
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
4825
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
4826
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
4827
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
4828
|
+
}>, Schema.Struct<{
|
|
4829
|
+
readonly customField: Schema.String;
|
|
4830
|
+
}>]>>>;
|
|
4831
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
4832
|
+
}>;
|
|
4833
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
4834
|
+
readonly nodeId: Schema.String;
|
|
4835
|
+
}>]>;
|
|
3360
4836
|
}>, Schema.Struct<{
|
|
3361
4837
|
readonly type: Schema.Literal<"wait">;
|
|
3362
4838
|
readonly config: Schema.Struct<{
|
|
@@ -3486,6 +4962,222 @@ export declare const JourneyNode: Schema.Union<readonly [Schema.Struct<{
|
|
|
3486
4962
|
readonly config: Schema.$Record<Schema.String, Schema.Never>;
|
|
3487
4963
|
readonly next: Schema.Tuple<readonly []>;
|
|
3488
4964
|
}>]>;
|
|
4965
|
+
export type WhatsAppSendMessagePayload = {
|
|
4966
|
+
readonly conversationId?: ConversationId | null;
|
|
4967
|
+
readonly metadata?: MessageMetadata;
|
|
4968
|
+
readonly channel: "whatsapp";
|
|
4969
|
+
readonly to: WhatsAppRecipients;
|
|
4970
|
+
readonly whatsapp: WhatsAppContent;
|
|
4971
|
+
};
|
|
4972
|
+
export declare const WhatsAppSendMessagePayload: Schema.Struct<{
|
|
4973
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4974
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
4975
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
4976
|
+
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
4977
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
4978
|
+
}>, Schema.Struct<{
|
|
4979
|
+
readonly phone: Schema.String;
|
|
4980
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4981
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4982
|
+
}>]>>;
|
|
4983
|
+
readonly whatsapp: Schema.Union<readonly [Schema.Struct<{
|
|
4984
|
+
readonly text: Schema.String;
|
|
4985
|
+
}>, Schema.Struct<{
|
|
4986
|
+
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
4987
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
4988
|
+
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
4989
|
+
}>, Schema.Struct<{
|
|
4990
|
+
readonly templateSlug: Schema.String;
|
|
4991
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
4992
|
+
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
4993
|
+
}>, Schema.Struct<{
|
|
4994
|
+
readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
4995
|
+
readonly type: Schema.Literal<"image">;
|
|
4996
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
4997
|
+
readonly url: Schema.String;
|
|
4998
|
+
}>, Schema.Struct<{
|
|
4999
|
+
readonly type: Schema.Literal<"image">;
|
|
5000
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
5001
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5002
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5003
|
+
readonly type: Schema.Literal<"video">;
|
|
5004
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
5005
|
+
readonly url: Schema.String;
|
|
5006
|
+
}>, Schema.Struct<{
|
|
5007
|
+
readonly type: Schema.Literal<"video">;
|
|
5008
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
5009
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5010
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5011
|
+
readonly type: Schema.Literal<"audio">;
|
|
5012
|
+
readonly url: Schema.String;
|
|
5013
|
+
}>, Schema.Struct<{
|
|
5014
|
+
readonly type: Schema.Literal<"audio">;
|
|
5015
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5016
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5017
|
+
readonly type: Schema.Literal<"document">;
|
|
5018
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
5019
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5020
|
+
readonly url: Schema.String;
|
|
5021
|
+
}>, Schema.Struct<{
|
|
5022
|
+
readonly type: Schema.Literal<"document">;
|
|
5023
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
5024
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5025
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5026
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5027
|
+
readonly type: Schema.Literal<"sticker">;
|
|
5028
|
+
readonly url: Schema.String;
|
|
5029
|
+
}>, Schema.Struct<{
|
|
5030
|
+
readonly type: Schema.Literal<"sticker">;
|
|
5031
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5032
|
+
}>]>]>;
|
|
5033
|
+
}>, Schema.Struct<{
|
|
5034
|
+
readonly interactive: Schema.Union<readonly [Schema.Struct<{
|
|
5035
|
+
readonly type: Schema.Literal<"buttons">;
|
|
5036
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5037
|
+
readonly type: Schema.Literal<"text">;
|
|
5038
|
+
readonly text: Schema.String;
|
|
5039
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
5040
|
+
readonly type: Schema.Literal<"image">;
|
|
5041
|
+
readonly url: Schema.String;
|
|
5042
|
+
}>, Schema.Struct<{
|
|
5043
|
+
readonly type: Schema.Literal<"image">;
|
|
5044
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5045
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5046
|
+
readonly type: Schema.Literal<"video">;
|
|
5047
|
+
readonly url: Schema.String;
|
|
5048
|
+
}>, Schema.Struct<{
|
|
5049
|
+
readonly type: Schema.Literal<"video">;
|
|
5050
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5051
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5052
|
+
readonly type: Schema.Literal<"document">;
|
|
5053
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5054
|
+
readonly url: Schema.String;
|
|
5055
|
+
}>, Schema.Struct<{
|
|
5056
|
+
readonly type: Schema.Literal<"document">;
|
|
5057
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5058
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5059
|
+
}>]>]>>;
|
|
5060
|
+
readonly body: Schema.String;
|
|
5061
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
5062
|
+
readonly buttons: Schema.$Array<Schema.Struct<{
|
|
5063
|
+
readonly id: Schema.String;
|
|
5064
|
+
readonly title: Schema.String;
|
|
5065
|
+
}>>;
|
|
5066
|
+
}>, Schema.Struct<{
|
|
5067
|
+
readonly type: Schema.Literal<"list">;
|
|
5068
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
5069
|
+
readonly type: Schema.Literal<"text">;
|
|
5070
|
+
readonly text: Schema.String;
|
|
5071
|
+
}>>;
|
|
5072
|
+
readonly body: Schema.String;
|
|
5073
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
5074
|
+
readonly button: Schema.String;
|
|
5075
|
+
readonly sections: Schema.$Array<Schema.Struct<{
|
|
5076
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
5077
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
5078
|
+
readonly id: Schema.String;
|
|
5079
|
+
readonly title: Schema.String;
|
|
5080
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
5081
|
+
}>>;
|
|
5082
|
+
}>>;
|
|
5083
|
+
}>, Schema.Struct<{
|
|
5084
|
+
readonly type: Schema.Literal<"cta_url">;
|
|
5085
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5086
|
+
readonly type: Schema.Literal<"text">;
|
|
5087
|
+
readonly text: Schema.String;
|
|
5088
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
5089
|
+
readonly type: Schema.Literal<"image">;
|
|
5090
|
+
readonly url: Schema.String;
|
|
5091
|
+
}>, Schema.Struct<{
|
|
5092
|
+
readonly type: Schema.Literal<"image">;
|
|
5093
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5094
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5095
|
+
readonly type: Schema.Literal<"video">;
|
|
5096
|
+
readonly url: Schema.String;
|
|
5097
|
+
}>, Schema.Struct<{
|
|
5098
|
+
readonly type: Schema.Literal<"video">;
|
|
5099
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5100
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5101
|
+
readonly type: Schema.Literal<"document">;
|
|
5102
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5103
|
+
readonly url: Schema.String;
|
|
5104
|
+
}>, Schema.Struct<{
|
|
5105
|
+
readonly type: Schema.Literal<"document">;
|
|
5106
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5107
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5108
|
+
}>]>]>>;
|
|
5109
|
+
readonly body: Schema.String;
|
|
5110
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
5111
|
+
readonly displayText: Schema.String;
|
|
5112
|
+
readonly url: Schema.String;
|
|
5113
|
+
}>, Schema.Struct<{
|
|
5114
|
+
readonly type: Schema.Literal<"flow">;
|
|
5115
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
5116
|
+
readonly type: Schema.Literal<"text">;
|
|
5117
|
+
readonly text: Schema.String;
|
|
5118
|
+
}>>;
|
|
5119
|
+
readonly body: Schema.String;
|
|
5120
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
5121
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
5122
|
+
readonly cta: Schema.String;
|
|
5123
|
+
readonly token: Schema.optionalKey<Schema.String>;
|
|
5124
|
+
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"navigate">, Schema.Literal<"data_exchange">]>>;
|
|
5125
|
+
readonly screen: Schema.optionalKey<Schema.String>;
|
|
5126
|
+
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
5127
|
+
}>]>;
|
|
5128
|
+
}>, Schema.Struct<{
|
|
5129
|
+
readonly reaction: Schema.Struct<{
|
|
5130
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
5131
|
+
readonly emoji: Schema.String;
|
|
5132
|
+
}>;
|
|
5133
|
+
}>, Schema.Struct<{
|
|
5134
|
+
readonly location: Schema.Struct<{
|
|
5135
|
+
readonly latitude: Schema.Finite;
|
|
5136
|
+
readonly longitude: Schema.Finite;
|
|
5137
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
5138
|
+
readonly address: Schema.optionalKey<Schema.String>;
|
|
5139
|
+
}>;
|
|
5140
|
+
}>, Schema.Struct<{
|
|
5141
|
+
readonly contacts: Schema.$Array<Schema.Struct<{
|
|
5142
|
+
readonly name: Schema.Struct<{
|
|
5143
|
+
readonly formattedName: Schema.String;
|
|
5144
|
+
readonly firstName: Schema.optionalKey<Schema.String>;
|
|
5145
|
+
readonly lastName: Schema.optionalKey<Schema.String>;
|
|
5146
|
+
readonly middleName: Schema.optionalKey<Schema.String>;
|
|
5147
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
5148
|
+
readonly suffix: Schema.optionalKey<Schema.String>;
|
|
5149
|
+
}>;
|
|
5150
|
+
readonly phones: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5151
|
+
readonly phone: Schema.String;
|
|
5152
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
5153
|
+
readonly waId: Schema.optionalKey<Schema.String>;
|
|
5154
|
+
}>>>;
|
|
5155
|
+
readonly emails: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5156
|
+
readonly email: Schema.String;
|
|
5157
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
5158
|
+
}>>>;
|
|
5159
|
+
readonly urls: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5160
|
+
readonly url: Schema.String;
|
|
5161
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
5162
|
+
}>>>;
|
|
5163
|
+
readonly org: Schema.optionalKey<Schema.Struct<{
|
|
5164
|
+
readonly company: Schema.optionalKey<Schema.String>;
|
|
5165
|
+
readonly department: Schema.optionalKey<Schema.String>;
|
|
5166
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
5167
|
+
}>>;
|
|
5168
|
+
readonly addresses: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5169
|
+
readonly street: Schema.optionalKey<Schema.String>;
|
|
5170
|
+
readonly city: Schema.optionalKey<Schema.String>;
|
|
5171
|
+
readonly state: Schema.optionalKey<Schema.String>;
|
|
5172
|
+
readonly zip: Schema.optionalKey<Schema.String>;
|
|
5173
|
+
readonly country: Schema.optionalKey<Schema.String>;
|
|
5174
|
+
readonly countryCode: Schema.optionalKey<Schema.String>;
|
|
5175
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
5176
|
+
}>>>;
|
|
5177
|
+
readonly birthday: Schema.optionalKey<Schema.String>;
|
|
5178
|
+
}>>;
|
|
5179
|
+
}>]>;
|
|
5180
|
+
}>;
|
|
3489
5181
|
export type JourneyDefinition = {
|
|
3490
5182
|
readonly trigger: JourneyTrigger;
|
|
3491
5183
|
readonly rootNodeId: JourneyNodeId;
|
|
@@ -3519,6 +5211,21 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
3519
5211
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3520
5212
|
readonly nodeId: Schema.String;
|
|
3521
5213
|
}>]>;
|
|
5214
|
+
}>, Schema.Struct<{
|
|
5215
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
5216
|
+
readonly config: Schema.Struct<{
|
|
5217
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
5218
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
5219
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
5220
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
5221
|
+
}>, Schema.Struct<{
|
|
5222
|
+
readonly customField: Schema.String;
|
|
5223
|
+
}>]>>>;
|
|
5224
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
5225
|
+
}>;
|
|
5226
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5227
|
+
readonly nodeId: Schema.String;
|
|
5228
|
+
}>]>;
|
|
3522
5229
|
}>, Schema.Struct<{
|
|
3523
5230
|
readonly type: Schema.Literal<"wait">;
|
|
3524
5231
|
readonly config: Schema.Struct<{
|
|
@@ -3653,6 +5360,292 @@ export declare const JourneyDefinition: Schema.Struct<{
|
|
|
3653
5360
|
}>>;
|
|
3654
5361
|
readonly reentry: Schema.optionalKey<Schema.Boolean>;
|
|
3655
5362
|
}>;
|
|
5363
|
+
export type SendMessagePayload = EmailSendMessagePayload | SmsSendMessagePayload | WhatsAppSendMessagePayload;
|
|
5364
|
+
export declare const SendMessagePayload: Schema.Union<readonly [Schema.Struct<{
|
|
5365
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5366
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
5367
|
+
readonly channel: Schema.Literal<"email">;
|
|
5368
|
+
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
5369
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
5370
|
+
}>, Schema.Struct<{
|
|
5371
|
+
readonly email: Schema.String;
|
|
5372
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5373
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5374
|
+
}>]>>;
|
|
5375
|
+
readonly cc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
5376
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
5377
|
+
}>, Schema.Struct<{
|
|
5378
|
+
readonly email: Schema.String;
|
|
5379
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5380
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5381
|
+
}>]>>, Schema.Null]>>;
|
|
5382
|
+
readonly bcc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
5383
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
5384
|
+
}>, Schema.Struct<{
|
|
5385
|
+
readonly email: Schema.String;
|
|
5386
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5387
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5388
|
+
}>]>>, Schema.Null]>>;
|
|
5389
|
+
readonly from: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5390
|
+
readonly email: Schema.String;
|
|
5391
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5392
|
+
}>, Schema.Null]>>;
|
|
5393
|
+
readonly email: Schema.Struct<{
|
|
5394
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5395
|
+
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5396
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5397
|
+
readonly attachments: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
5398
|
+
readonly filename: Schema.String;
|
|
5399
|
+
readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5400
|
+
readonly mediaId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MediaId">, Schema.Null]>>;
|
|
5401
|
+
readonly contentType: Schema.String;
|
|
5402
|
+
readonly size: Schema.Finite;
|
|
5403
|
+
}>>, Schema.Null]>>;
|
|
5404
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
5405
|
+
readonly inputContractId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateInputContractId">>;
|
|
5406
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
5407
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5408
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
5409
|
+
readonly locale: Schema.optionalKey<Schema.String>;
|
|
5410
|
+
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
5411
|
+
readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
|
|
5412
|
+
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
5413
|
+
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
|
|
5414
|
+
readonly tracking: Schema.optionalKey<Schema.Struct<{
|
|
5415
|
+
readonly opens: Schema.optionalKey<Schema.Boolean>;
|
|
5416
|
+
readonly clicks: Schema.optionalKey<Schema.Boolean>;
|
|
5417
|
+
}>>;
|
|
5418
|
+
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
5419
|
+
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
5420
|
+
}>>;
|
|
5421
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
5422
|
+
}>;
|
|
5423
|
+
}>, Schema.Struct<{
|
|
5424
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5425
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
5426
|
+
readonly channel: Schema.Literal<"sms">;
|
|
5427
|
+
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
5428
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
5429
|
+
}>, Schema.Struct<{
|
|
5430
|
+
readonly phone: Schema.String;
|
|
5431
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5432
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5433
|
+
}>]>>;
|
|
5434
|
+
readonly sms: Schema.Struct<{
|
|
5435
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5436
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
5437
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5438
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
5439
|
+
}>;
|
|
5440
|
+
}>, Schema.Struct<{
|
|
5441
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5442
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
5443
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
5444
|
+
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
5445
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
5446
|
+
}>, Schema.Struct<{
|
|
5447
|
+
readonly phone: Schema.String;
|
|
5448
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5449
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5450
|
+
}>]>>;
|
|
5451
|
+
readonly whatsapp: Schema.Union<readonly [Schema.Struct<{
|
|
5452
|
+
readonly text: Schema.String;
|
|
5453
|
+
}>, Schema.Struct<{
|
|
5454
|
+
readonly templateId: Schema.brand<Schema.String, "TemplateId">;
|
|
5455
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
5456
|
+
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
5457
|
+
}>, Schema.Struct<{
|
|
5458
|
+
readonly templateSlug: Schema.String;
|
|
5459
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
5460
|
+
readonly flowToken: Schema.optionalKey<Schema.String>;
|
|
5461
|
+
}>, Schema.Struct<{
|
|
5462
|
+
readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
5463
|
+
readonly type: Schema.Literal<"image">;
|
|
5464
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
5465
|
+
readonly url: Schema.String;
|
|
5466
|
+
}>, Schema.Struct<{
|
|
5467
|
+
readonly type: Schema.Literal<"image">;
|
|
5468
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
5469
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5470
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5471
|
+
readonly type: Schema.Literal<"video">;
|
|
5472
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
5473
|
+
readonly url: Schema.String;
|
|
5474
|
+
}>, Schema.Struct<{
|
|
5475
|
+
readonly type: Schema.Literal<"video">;
|
|
5476
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
5477
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5478
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5479
|
+
readonly type: Schema.Literal<"audio">;
|
|
5480
|
+
readonly url: Schema.String;
|
|
5481
|
+
}>, Schema.Struct<{
|
|
5482
|
+
readonly type: Schema.Literal<"audio">;
|
|
5483
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5484
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5485
|
+
readonly type: Schema.Literal<"document">;
|
|
5486
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
5487
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5488
|
+
readonly url: Schema.String;
|
|
5489
|
+
}>, Schema.Struct<{
|
|
5490
|
+
readonly type: Schema.Literal<"document">;
|
|
5491
|
+
readonly caption: Schema.optionalKey<Schema.String>;
|
|
5492
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5493
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5494
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5495
|
+
readonly type: Schema.Literal<"sticker">;
|
|
5496
|
+
readonly url: Schema.String;
|
|
5497
|
+
}>, Schema.Struct<{
|
|
5498
|
+
readonly type: Schema.Literal<"sticker">;
|
|
5499
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5500
|
+
}>]>]>;
|
|
5501
|
+
}>, Schema.Struct<{
|
|
5502
|
+
readonly interactive: Schema.Union<readonly [Schema.Struct<{
|
|
5503
|
+
readonly type: Schema.Literal<"buttons">;
|
|
5504
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5505
|
+
readonly type: Schema.Literal<"text">;
|
|
5506
|
+
readonly text: Schema.String;
|
|
5507
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
5508
|
+
readonly type: Schema.Literal<"image">;
|
|
5509
|
+
readonly url: Schema.String;
|
|
5510
|
+
}>, Schema.Struct<{
|
|
5511
|
+
readonly type: Schema.Literal<"image">;
|
|
5512
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5513
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5514
|
+
readonly type: Schema.Literal<"video">;
|
|
5515
|
+
readonly url: Schema.String;
|
|
5516
|
+
}>, Schema.Struct<{
|
|
5517
|
+
readonly type: Schema.Literal<"video">;
|
|
5518
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5519
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5520
|
+
readonly type: Schema.Literal<"document">;
|
|
5521
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5522
|
+
readonly url: Schema.String;
|
|
5523
|
+
}>, Schema.Struct<{
|
|
5524
|
+
readonly type: Schema.Literal<"document">;
|
|
5525
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5526
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5527
|
+
}>]>]>>;
|
|
5528
|
+
readonly body: Schema.String;
|
|
5529
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
5530
|
+
readonly buttons: Schema.$Array<Schema.Struct<{
|
|
5531
|
+
readonly id: Schema.String;
|
|
5532
|
+
readonly title: Schema.String;
|
|
5533
|
+
}>>;
|
|
5534
|
+
}>, Schema.Struct<{
|
|
5535
|
+
readonly type: Schema.Literal<"list">;
|
|
5536
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
5537
|
+
readonly type: Schema.Literal<"text">;
|
|
5538
|
+
readonly text: Schema.String;
|
|
5539
|
+
}>>;
|
|
5540
|
+
readonly body: Schema.String;
|
|
5541
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
5542
|
+
readonly button: Schema.String;
|
|
5543
|
+
readonly sections: Schema.$Array<Schema.Struct<{
|
|
5544
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
5545
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
5546
|
+
readonly id: Schema.String;
|
|
5547
|
+
readonly title: Schema.String;
|
|
5548
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
5549
|
+
}>>;
|
|
5550
|
+
}>>;
|
|
5551
|
+
}>, Schema.Struct<{
|
|
5552
|
+
readonly type: Schema.Literal<"cta_url">;
|
|
5553
|
+
readonly header: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5554
|
+
readonly type: Schema.Literal<"text">;
|
|
5555
|
+
readonly text: Schema.String;
|
|
5556
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
5557
|
+
readonly type: Schema.Literal<"image">;
|
|
5558
|
+
readonly url: Schema.String;
|
|
5559
|
+
}>, Schema.Struct<{
|
|
5560
|
+
readonly type: Schema.Literal<"image">;
|
|
5561
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5562
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5563
|
+
readonly type: Schema.Literal<"video">;
|
|
5564
|
+
readonly url: Schema.String;
|
|
5565
|
+
}>, Schema.Struct<{
|
|
5566
|
+
readonly type: Schema.Literal<"video">;
|
|
5567
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5568
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
5569
|
+
readonly type: Schema.Literal<"document">;
|
|
5570
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5571
|
+
readonly url: Schema.String;
|
|
5572
|
+
}>, Schema.Struct<{
|
|
5573
|
+
readonly type: Schema.Literal<"document">;
|
|
5574
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
5575
|
+
readonly mediaId: Schema.brand<Schema.String, "MediaId">;
|
|
5576
|
+
}>]>]>>;
|
|
5577
|
+
readonly body: Schema.String;
|
|
5578
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
5579
|
+
readonly displayText: Schema.String;
|
|
5580
|
+
readonly url: Schema.String;
|
|
5581
|
+
}>, Schema.Struct<{
|
|
5582
|
+
readonly type: Schema.Literal<"flow">;
|
|
5583
|
+
readonly header: Schema.optionalKey<Schema.Struct<{
|
|
5584
|
+
readonly type: Schema.Literal<"text">;
|
|
5585
|
+
readonly text: Schema.String;
|
|
5586
|
+
}>>;
|
|
5587
|
+
readonly body: Schema.String;
|
|
5588
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
5589
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
5590
|
+
readonly cta: Schema.String;
|
|
5591
|
+
readonly token: Schema.optionalKey<Schema.String>;
|
|
5592
|
+
readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"navigate">, Schema.Literal<"data_exchange">]>>;
|
|
5593
|
+
readonly screen: Schema.optionalKey<Schema.String>;
|
|
5594
|
+
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
5595
|
+
}>]>;
|
|
5596
|
+
}>, Schema.Struct<{
|
|
5597
|
+
readonly reaction: Schema.Struct<{
|
|
5598
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
5599
|
+
readonly emoji: Schema.String;
|
|
5600
|
+
}>;
|
|
5601
|
+
}>, Schema.Struct<{
|
|
5602
|
+
readonly location: Schema.Struct<{
|
|
5603
|
+
readonly latitude: Schema.Finite;
|
|
5604
|
+
readonly longitude: Schema.Finite;
|
|
5605
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
5606
|
+
readonly address: Schema.optionalKey<Schema.String>;
|
|
5607
|
+
}>;
|
|
5608
|
+
}>, Schema.Struct<{
|
|
5609
|
+
readonly contacts: Schema.$Array<Schema.Struct<{
|
|
5610
|
+
readonly name: Schema.Struct<{
|
|
5611
|
+
readonly formattedName: Schema.String;
|
|
5612
|
+
readonly firstName: Schema.optionalKey<Schema.String>;
|
|
5613
|
+
readonly lastName: Schema.optionalKey<Schema.String>;
|
|
5614
|
+
readonly middleName: Schema.optionalKey<Schema.String>;
|
|
5615
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
5616
|
+
readonly suffix: Schema.optionalKey<Schema.String>;
|
|
5617
|
+
}>;
|
|
5618
|
+
readonly phones: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5619
|
+
readonly phone: Schema.String;
|
|
5620
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
5621
|
+
readonly waId: Schema.optionalKey<Schema.String>;
|
|
5622
|
+
}>>>;
|
|
5623
|
+
readonly emails: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5624
|
+
readonly email: Schema.String;
|
|
5625
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
5626
|
+
}>>>;
|
|
5627
|
+
readonly urls: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5628
|
+
readonly url: Schema.String;
|
|
5629
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
5630
|
+
}>>>;
|
|
5631
|
+
readonly org: Schema.optionalKey<Schema.Struct<{
|
|
5632
|
+
readonly company: Schema.optionalKey<Schema.String>;
|
|
5633
|
+
readonly department: Schema.optionalKey<Schema.String>;
|
|
5634
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
5635
|
+
}>>;
|
|
5636
|
+
readonly addresses: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5637
|
+
readonly street: Schema.optionalKey<Schema.String>;
|
|
5638
|
+
readonly city: Schema.optionalKey<Schema.String>;
|
|
5639
|
+
readonly state: Schema.optionalKey<Schema.String>;
|
|
5640
|
+
readonly zip: Schema.optionalKey<Schema.String>;
|
|
5641
|
+
readonly country: Schema.optionalKey<Schema.String>;
|
|
5642
|
+
readonly countryCode: Schema.optionalKey<Schema.String>;
|
|
5643
|
+
readonly type: Schema.optionalKey<Schema.String>;
|
|
5644
|
+
}>>>;
|
|
5645
|
+
readonly birthday: Schema.optionalKey<Schema.String>;
|
|
5646
|
+
}>>;
|
|
5647
|
+
}>]>;
|
|
5648
|
+
}>]>;
|
|
3656
5649
|
export type CreateJourneyPayload = {
|
|
3657
5650
|
readonly name: JourneyName;
|
|
3658
5651
|
readonly definition: JourneyDefinition;
|
|
@@ -3683,6 +5676,21 @@ export declare const CreateJourneyPayload: Schema.Struct<{
|
|
|
3683
5676
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3684
5677
|
readonly nodeId: Schema.String;
|
|
3685
5678
|
}>]>;
|
|
5679
|
+
}>, Schema.Struct<{
|
|
5680
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
5681
|
+
readonly config: Schema.Struct<{
|
|
5682
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
5683
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
5684
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
5685
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
5686
|
+
}>, Schema.Struct<{
|
|
5687
|
+
readonly customField: Schema.String;
|
|
5688
|
+
}>]>>>;
|
|
5689
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
5690
|
+
}>;
|
|
5691
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5692
|
+
readonly nodeId: Schema.String;
|
|
5693
|
+
}>]>;
|
|
3686
5694
|
}>, Schema.Struct<{
|
|
3687
5695
|
readonly type: Schema.Literal<"wait">;
|
|
3688
5696
|
readonly config: Schema.Struct<{
|
|
@@ -3848,6 +5856,21 @@ export declare const ReplaceJourneyDraftPayload: Schema.Struct<{
|
|
|
3848
5856
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3849
5857
|
readonly nodeId: Schema.String;
|
|
3850
5858
|
}>]>;
|
|
5859
|
+
}>, Schema.Struct<{
|
|
5860
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
5861
|
+
readonly config: Schema.Struct<{
|
|
5862
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
5863
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
5864
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
5865
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
5866
|
+
}>, Schema.Struct<{
|
|
5867
|
+
readonly customField: Schema.String;
|
|
5868
|
+
}>]>>>;
|
|
5869
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
5870
|
+
}>;
|
|
5871
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5872
|
+
readonly nodeId: Schema.String;
|
|
5873
|
+
}>]>;
|
|
3851
5874
|
}>, Schema.Struct<{
|
|
3852
5875
|
readonly type: Schema.Literal<"wait">;
|
|
3853
5876
|
readonly config: Schema.Struct<{
|