samva 0.44.0 → 0.45.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +3 -0
- package/README.md +4 -0
- package/dist/client/sdk.gen.d.ts +281 -1
- package/dist/client/sdk.gen.js +856 -1
- package/dist/client/types.gen.d.ts +1858 -46
- package/dist/effect/agents.d.ts +86 -86
- package/dist/effect/agents.js +2 -2
- package/dist/effect/api-keys.d.ts +36 -36
- package/dist/effect/api-keys.js +2 -2
- package/dist/effect/attachments.d.ts +3 -3
- package/dist/effect/attachments.js +1 -1
- package/dist/effect/campaigns.d.ts +250 -250
- package/dist/effect/campaigns.js +3 -3
- package/dist/effect/categories.d.ts +23 -5
- package/dist/effect/categories.js +11 -20
- package/dist/effect/contact-groups.d.ts +44 -44
- package/dist/effect/contact-groups.js +3 -3
- package/dist/effect/contacts.d.ts +3 -3
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +53 -53
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/email.d.ts +97 -97
- package/dist/effect/email.js +21 -21
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +6 -6
- package/dist/effect/extension-installations.js +1 -1
- package/dist/effect/generated/analytics.d.ts +6 -0
- package/dist/effect/generated/analytics.js +4 -2
- package/dist/effect/generated/index.d.ts +9 -1
- package/dist/effect/generated/journeys.d.ts +1 -3
- package/dist/effect/generated/journeys.js +2 -6
- package/dist/effect/generated/messages.d.ts +1 -5
- package/dist/effect/generated/messages.js +2 -10
- package/dist/effect/generated/shared.d.ts +92 -2
- package/dist/effect/generated/shared.js +43 -2
- package/dist/effect/generated/template-registrations.d.ts +651 -0
- package/dist/effect/generated/template-registrations.js +138 -0
- package/dist/effect/generated/whats-app-flows.d.ts +1838 -0
- package/dist/effect/generated/whats-app-flows.js +338 -0
- package/dist/effect/generated/whats-app-setup-links.d.ts +705 -0
- package/dist/effect/generated/whats-app-setup-links.js +150 -0
- package/dist/effect/generated/whats-app.d.ts +2089 -0
- package/dist/effect/generated/whats-app.js +633 -0
- package/dist/effect/generated-metadata.d.ts +245 -0
- package/dist/effect/generated-metadata.js +221 -48
- package/dist/effect/index.d.ts +4 -0
- package/dist/effect/index.js +6 -2
- package/dist/effect/mailboxes.d.ts +298 -298
- package/dist/effect/mailboxes.js +3 -3
- package/dist/effect/media.d.ts +4 -4
- package/dist/effect/media.js +2 -2
- package/dist/effect/messages.d.ts +17 -17
- package/dist/effect/messages.js +4 -4
- package/dist/effect/namespaces.d.ts +5 -5
- package/dist/effect/namespaces.js +1 -1
- package/dist/effect/newsletter-issues.d.ts +8 -8
- package/dist/effect/newsletter-issues.js +2 -2
- package/dist/effect/newsletters.d.ts +3 -3
- package/dist/effect/newsletters.js +1 -1
- package/dist/effect/organizations.d.ts +10 -10
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/runtime.d.ts +2 -0
- package/dist/effect/runtime.js +2 -1
- package/dist/effect/scheduled-messages.d.ts +839 -839
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/template-registrations.d.ts +12 -0
- package/dist/effect/template-registrations.js +16 -0
- package/dist/effect/templates.d.ts +66 -66
- package/dist/effect/templates.js +13 -13
- package/dist/effect/topic-forms.d.ts +4 -4
- package/dist/effect/topic-forms.js +1 -1
- package/dist/effect/topics.d.ts +11 -11
- package/dist/effect/topics.js +2 -2
- package/dist/effect/webhooks.d.ts +18 -18
- package/dist/effect/webhooks.js +3 -3
- package/dist/effect/whatsapp-flows.d.ts +34 -0
- package/dist/effect/whatsapp-flows.js +30 -0
- package/dist/effect/whatsapp-setup-links.d.ts +66 -0
- package/dist/effect/whatsapp-setup-links.js +18 -0
- package/dist/effect/whatsapp.d.ts +51 -0
- package/dist/effect/whatsapp.js +34 -0
- package/dist/index.js +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +9 -1
- package/dist/promises/client.js +11 -3
- package/dist/promises/errors.gen.d.ts +38 -2
- package/dist/promises/errors.gen.js +160 -3
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +917 -736
- package/dist/service-map.js +288 -235
- package/package.json +19 -3
|
@@ -1,663 +1,3 @@
|
|
|
1
|
-
export declare const list: ((input?: {
|
|
2
|
-
readonly limit?: number | null | undefined;
|
|
3
|
-
readonly cursor?: string | undefined;
|
|
4
|
-
readonly namespaceId?: string | undefined;
|
|
5
|
-
readonly status?: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending" | undefined;
|
|
6
|
-
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"scheduledMessagesList">) & {
|
|
7
|
-
readonly pages: (input?: {
|
|
8
|
-
readonly limit?: number | null | undefined;
|
|
9
|
-
readonly cursor?: string | undefined;
|
|
10
|
-
readonly namespaceId?: string | undefined;
|
|
11
|
-
readonly status?: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending" | undefined;
|
|
12
|
-
} | undefined) => import("effect/Stream").Stream<{
|
|
13
|
-
readonly items: readonly {
|
|
14
|
-
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
15
|
-
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
16
|
-
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
17
|
-
readonly scheduledFor: string;
|
|
18
|
-
readonly timezone: string;
|
|
19
|
-
readonly send: {
|
|
20
|
-
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
21
|
-
readonly metadata?: {
|
|
22
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
23
|
-
} | null;
|
|
24
|
-
readonly channel: "email";
|
|
25
|
-
readonly to: readonly ({
|
|
26
|
-
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
27
|
-
} | {
|
|
28
|
-
readonly email: string;
|
|
29
|
-
readonly name?: string | null;
|
|
30
|
-
readonly displayName?: string | null;
|
|
31
|
-
})[];
|
|
32
|
-
readonly cc?: readonly ({
|
|
33
|
-
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
34
|
-
} | {
|
|
35
|
-
readonly email: string;
|
|
36
|
-
readonly name?: string | null;
|
|
37
|
-
readonly displayName?: string | null;
|
|
38
|
-
})[] | null;
|
|
39
|
-
readonly bcc?: readonly ({
|
|
40
|
-
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
41
|
-
} | {
|
|
42
|
-
readonly email: string;
|
|
43
|
-
readonly name?: string | null;
|
|
44
|
-
readonly displayName?: string | null;
|
|
45
|
-
})[] | null;
|
|
46
|
-
readonly from?: {
|
|
47
|
-
readonly email: string;
|
|
48
|
-
readonly name?: string | null;
|
|
49
|
-
} | null;
|
|
50
|
-
readonly email: {
|
|
51
|
-
readonly subject?: string | null;
|
|
52
|
-
readonly html?: string | null;
|
|
53
|
-
readonly text?: string | null;
|
|
54
|
-
readonly attachments?: readonly {
|
|
55
|
-
readonly filename: string;
|
|
56
|
-
readonly content?: string | null;
|
|
57
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
58
|
-
readonly contentType: string;
|
|
59
|
-
readonly size: number;
|
|
60
|
-
}[] | null;
|
|
61
|
-
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
62
|
-
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
63
|
-
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
64
|
-
readonly templateSlug?: string | null;
|
|
65
|
-
readonly templateData?: {
|
|
66
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
67
|
-
} | null;
|
|
68
|
-
readonly locale?: string;
|
|
69
|
-
readonly timeZone?: string;
|
|
70
|
-
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
71
|
-
readonly replyTo?: readonly string[] | null;
|
|
72
|
-
readonly topicId?: (string & import("effect/Brand").Brand<"TopicId">) | null;
|
|
73
|
-
readonly tracking?: {
|
|
74
|
-
readonly opens?: boolean;
|
|
75
|
-
readonly clicks?: boolean;
|
|
76
|
-
};
|
|
77
|
-
readonly footer?: {
|
|
78
|
-
readonly enabled?: boolean | null;
|
|
79
|
-
};
|
|
80
|
-
readonly headers?: {
|
|
81
|
-
readonly [x: string]: string;
|
|
82
|
-
} | null;
|
|
83
|
-
};
|
|
84
|
-
} | {
|
|
85
|
-
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
86
|
-
readonly metadata?: {
|
|
87
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
88
|
-
} | null;
|
|
89
|
-
readonly channel: "sms";
|
|
90
|
-
readonly to: readonly ({
|
|
91
|
-
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
92
|
-
} | {
|
|
93
|
-
readonly phone: string;
|
|
94
|
-
readonly name?: string | null;
|
|
95
|
-
readonly displayName?: string | null;
|
|
96
|
-
})[];
|
|
97
|
-
readonly sms: {
|
|
98
|
-
readonly text?: string | null;
|
|
99
|
-
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
100
|
-
readonly templateSlug?: string | null;
|
|
101
|
-
readonly templateData?: {
|
|
102
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
103
|
-
} | null;
|
|
104
|
-
};
|
|
105
|
-
} | {
|
|
106
|
-
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
107
|
-
readonly metadata?: {
|
|
108
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
109
|
-
} | null;
|
|
110
|
-
readonly channel: "whatsapp";
|
|
111
|
-
readonly to: readonly ({
|
|
112
|
-
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
113
|
-
} | {
|
|
114
|
-
readonly phone: string;
|
|
115
|
-
readonly name?: string | null;
|
|
116
|
-
readonly displayName?: string | null;
|
|
117
|
-
})[];
|
|
118
|
-
readonly whatsapp: {
|
|
119
|
-
readonly text: string;
|
|
120
|
-
} | {
|
|
121
|
-
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
122
|
-
readonly templateData?: {
|
|
123
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
124
|
-
};
|
|
125
|
-
readonly flowToken?: string;
|
|
126
|
-
} | {
|
|
127
|
-
readonly templateSlug: string;
|
|
128
|
-
readonly templateData?: {
|
|
129
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
130
|
-
};
|
|
131
|
-
readonly flowToken?: string;
|
|
132
|
-
} | {
|
|
133
|
-
readonly media: {
|
|
134
|
-
readonly type: "image";
|
|
135
|
-
readonly caption?: string;
|
|
136
|
-
readonly url: string;
|
|
137
|
-
} | {
|
|
138
|
-
readonly type: "image";
|
|
139
|
-
readonly caption?: string;
|
|
140
|
-
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
141
|
-
} | {
|
|
142
|
-
readonly type: "video";
|
|
143
|
-
readonly caption?: string;
|
|
144
|
-
readonly url: string;
|
|
145
|
-
} | {
|
|
146
|
-
readonly type: "video";
|
|
147
|
-
readonly caption?: string;
|
|
148
|
-
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
149
|
-
} | {
|
|
150
|
-
readonly type: "audio";
|
|
151
|
-
readonly url: string;
|
|
152
|
-
} | {
|
|
153
|
-
readonly type: "audio";
|
|
154
|
-
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
155
|
-
} | {
|
|
156
|
-
readonly type: "document";
|
|
157
|
-
readonly caption?: string;
|
|
158
|
-
readonly filename?: string;
|
|
159
|
-
readonly url: string;
|
|
160
|
-
} | {
|
|
161
|
-
readonly type: "document";
|
|
162
|
-
readonly caption?: string;
|
|
163
|
-
readonly filename?: string;
|
|
164
|
-
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
165
|
-
} | {
|
|
166
|
-
readonly type: "sticker";
|
|
167
|
-
readonly url: string;
|
|
168
|
-
} | {
|
|
169
|
-
readonly type: "sticker";
|
|
170
|
-
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
171
|
-
};
|
|
172
|
-
} | {
|
|
173
|
-
readonly interactive: {
|
|
174
|
-
readonly type: "buttons";
|
|
175
|
-
readonly header?: {
|
|
176
|
-
readonly type: "text";
|
|
177
|
-
readonly text: string;
|
|
178
|
-
} | {
|
|
179
|
-
readonly type: "image";
|
|
180
|
-
readonly url: string;
|
|
181
|
-
} | {
|
|
182
|
-
readonly type: "image";
|
|
183
|
-
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
184
|
-
} | {
|
|
185
|
-
readonly type: "video";
|
|
186
|
-
readonly url: string;
|
|
187
|
-
} | {
|
|
188
|
-
readonly type: "video";
|
|
189
|
-
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
190
|
-
} | {
|
|
191
|
-
readonly type: "document";
|
|
192
|
-
readonly filename?: string;
|
|
193
|
-
readonly url: string;
|
|
194
|
-
} | {
|
|
195
|
-
readonly type: "document";
|
|
196
|
-
readonly filename?: string;
|
|
197
|
-
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
198
|
-
};
|
|
199
|
-
readonly body: string;
|
|
200
|
-
readonly footer?: string;
|
|
201
|
-
readonly buttons: readonly {
|
|
202
|
-
readonly id: string;
|
|
203
|
-
readonly title: string;
|
|
204
|
-
}[];
|
|
205
|
-
} | {
|
|
206
|
-
readonly type: "list";
|
|
207
|
-
readonly header?: {
|
|
208
|
-
readonly type: "text";
|
|
209
|
-
readonly text: string;
|
|
210
|
-
};
|
|
211
|
-
readonly body: string;
|
|
212
|
-
readonly footer?: string;
|
|
213
|
-
readonly button: string;
|
|
214
|
-
readonly sections: readonly {
|
|
215
|
-
readonly title?: string;
|
|
216
|
-
readonly rows: readonly {
|
|
217
|
-
readonly id: string;
|
|
218
|
-
readonly title: string;
|
|
219
|
-
readonly description?: string;
|
|
220
|
-
}[];
|
|
221
|
-
}[];
|
|
222
|
-
} | {
|
|
223
|
-
readonly type: "cta_url";
|
|
224
|
-
readonly header?: {
|
|
225
|
-
readonly type: "text";
|
|
226
|
-
readonly text: string;
|
|
227
|
-
} | {
|
|
228
|
-
readonly type: "image";
|
|
229
|
-
readonly url: string;
|
|
230
|
-
} | {
|
|
231
|
-
readonly type: "image";
|
|
232
|
-
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
233
|
-
} | {
|
|
234
|
-
readonly type: "video";
|
|
235
|
-
readonly url: string;
|
|
236
|
-
} | {
|
|
237
|
-
readonly type: "video";
|
|
238
|
-
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
239
|
-
} | {
|
|
240
|
-
readonly type: "document";
|
|
241
|
-
readonly filename?: string;
|
|
242
|
-
readonly url: string;
|
|
243
|
-
} | {
|
|
244
|
-
readonly type: "document";
|
|
245
|
-
readonly filename?: string;
|
|
246
|
-
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
247
|
-
};
|
|
248
|
-
readonly body: string;
|
|
249
|
-
readonly footer?: string;
|
|
250
|
-
readonly displayText: string;
|
|
251
|
-
readonly url: string;
|
|
252
|
-
} | {
|
|
253
|
-
readonly type: "flow";
|
|
254
|
-
readonly header?: {
|
|
255
|
-
readonly type: "text";
|
|
256
|
-
readonly text: string;
|
|
257
|
-
};
|
|
258
|
-
readonly body: string;
|
|
259
|
-
readonly footer?: string;
|
|
260
|
-
readonly flowId: string & import("effect/Brand").Brand<"WhatsAppFlowId">;
|
|
261
|
-
readonly cta: string;
|
|
262
|
-
readonly token?: string;
|
|
263
|
-
readonly action?: "data_exchange" | "navigate";
|
|
264
|
-
readonly screen?: string;
|
|
265
|
-
readonly data?: {
|
|
266
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
267
|
-
};
|
|
268
|
-
};
|
|
269
|
-
} | {
|
|
270
|
-
readonly reaction: {
|
|
271
|
-
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
272
|
-
readonly emoji: string;
|
|
273
|
-
};
|
|
274
|
-
} | {
|
|
275
|
-
readonly location: {
|
|
276
|
-
readonly latitude: number;
|
|
277
|
-
readonly longitude: number;
|
|
278
|
-
readonly name?: string;
|
|
279
|
-
readonly address?: string;
|
|
280
|
-
};
|
|
281
|
-
} | {
|
|
282
|
-
readonly contacts: readonly {
|
|
283
|
-
readonly name: {
|
|
284
|
-
readonly formattedName: string;
|
|
285
|
-
readonly firstName?: string;
|
|
286
|
-
readonly lastName?: string;
|
|
287
|
-
readonly middleName?: string;
|
|
288
|
-
readonly prefix?: string;
|
|
289
|
-
readonly suffix?: string;
|
|
290
|
-
};
|
|
291
|
-
readonly phones?: readonly {
|
|
292
|
-
readonly phone: string;
|
|
293
|
-
readonly type?: string;
|
|
294
|
-
readonly waId?: string;
|
|
295
|
-
}[];
|
|
296
|
-
readonly emails?: readonly {
|
|
297
|
-
readonly email: string;
|
|
298
|
-
readonly type?: string;
|
|
299
|
-
}[];
|
|
300
|
-
readonly urls?: readonly {
|
|
301
|
-
readonly url: string;
|
|
302
|
-
readonly type?: string;
|
|
303
|
-
}[];
|
|
304
|
-
readonly org?: {
|
|
305
|
-
readonly company?: string;
|
|
306
|
-
readonly department?: string;
|
|
307
|
-
readonly title?: string;
|
|
308
|
-
};
|
|
309
|
-
readonly addresses?: readonly {
|
|
310
|
-
readonly street?: string;
|
|
311
|
-
readonly city?: string;
|
|
312
|
-
readonly state?: string;
|
|
313
|
-
readonly zip?: string;
|
|
314
|
-
readonly country?: string;
|
|
315
|
-
readonly countryCode?: string;
|
|
316
|
-
readonly type?: string;
|
|
317
|
-
}[];
|
|
318
|
-
readonly birthday?: string;
|
|
319
|
-
}[];
|
|
320
|
-
};
|
|
321
|
-
};
|
|
322
|
-
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
323
|
-
readonly idempotencyKey: string | null;
|
|
324
|
-
readonly referenceId: string | null;
|
|
325
|
-
readonly failureReason: string | null;
|
|
326
|
-
readonly attempts: number;
|
|
327
|
-
readonly createdBy: string | null;
|
|
328
|
-
readonly actorEmail: string;
|
|
329
|
-
readonly memberRole: string;
|
|
330
|
-
readonly createdAt: string;
|
|
331
|
-
readonly updatedAt: string;
|
|
332
|
-
}[];
|
|
333
|
-
readonly nextCursor: string | null;
|
|
334
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
335
|
-
readonly items: (input?: {
|
|
336
|
-
readonly limit?: number | null | undefined;
|
|
337
|
-
readonly cursor?: string | undefined;
|
|
338
|
-
readonly namespaceId?: string | undefined;
|
|
339
|
-
readonly status?: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending" | undefined;
|
|
340
|
-
} | undefined) => import("effect/Stream").Stream<{
|
|
341
|
-
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
342
|
-
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
343
|
-
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
344
|
-
readonly scheduledFor: string;
|
|
345
|
-
readonly timezone: string;
|
|
346
|
-
readonly send: {
|
|
347
|
-
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
348
|
-
readonly metadata?: {
|
|
349
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
350
|
-
} | null;
|
|
351
|
-
readonly channel: "email";
|
|
352
|
-
readonly to: readonly ({
|
|
353
|
-
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
354
|
-
} | {
|
|
355
|
-
readonly email: string;
|
|
356
|
-
readonly name?: string | null;
|
|
357
|
-
readonly displayName?: string | null;
|
|
358
|
-
})[];
|
|
359
|
-
readonly cc?: readonly ({
|
|
360
|
-
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
361
|
-
} | {
|
|
362
|
-
readonly email: string;
|
|
363
|
-
readonly name?: string | null;
|
|
364
|
-
readonly displayName?: string | null;
|
|
365
|
-
})[] | null;
|
|
366
|
-
readonly bcc?: readonly ({
|
|
367
|
-
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
368
|
-
} | {
|
|
369
|
-
readonly email: string;
|
|
370
|
-
readonly name?: string | null;
|
|
371
|
-
readonly displayName?: string | null;
|
|
372
|
-
})[] | null;
|
|
373
|
-
readonly from?: {
|
|
374
|
-
readonly email: string;
|
|
375
|
-
readonly name?: string | null;
|
|
376
|
-
} | null;
|
|
377
|
-
readonly email: {
|
|
378
|
-
readonly subject?: string | null;
|
|
379
|
-
readonly html?: string | null;
|
|
380
|
-
readonly text?: string | null;
|
|
381
|
-
readonly attachments?: readonly {
|
|
382
|
-
readonly filename: string;
|
|
383
|
-
readonly content?: string | null;
|
|
384
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
385
|
-
readonly contentType: string;
|
|
386
|
-
readonly size: number;
|
|
387
|
-
}[] | null;
|
|
388
|
-
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
389
|
-
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
390
|
-
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
391
|
-
readonly templateSlug?: string | null;
|
|
392
|
-
readonly templateData?: {
|
|
393
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
394
|
-
} | null;
|
|
395
|
-
readonly locale?: string;
|
|
396
|
-
readonly timeZone?: string;
|
|
397
|
-
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
398
|
-
readonly replyTo?: readonly string[] | null;
|
|
399
|
-
readonly topicId?: (string & import("effect/Brand").Brand<"TopicId">) | null;
|
|
400
|
-
readonly tracking?: {
|
|
401
|
-
readonly opens?: boolean;
|
|
402
|
-
readonly clicks?: boolean;
|
|
403
|
-
};
|
|
404
|
-
readonly footer?: {
|
|
405
|
-
readonly enabled?: boolean | null;
|
|
406
|
-
};
|
|
407
|
-
readonly headers?: {
|
|
408
|
-
readonly [x: string]: string;
|
|
409
|
-
} | null;
|
|
410
|
-
};
|
|
411
|
-
} | {
|
|
412
|
-
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
413
|
-
readonly metadata?: {
|
|
414
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
415
|
-
} | null;
|
|
416
|
-
readonly channel: "sms";
|
|
417
|
-
readonly to: readonly ({
|
|
418
|
-
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
419
|
-
} | {
|
|
420
|
-
readonly phone: string;
|
|
421
|
-
readonly name?: string | null;
|
|
422
|
-
readonly displayName?: string | null;
|
|
423
|
-
})[];
|
|
424
|
-
readonly sms: {
|
|
425
|
-
readonly text?: string | null;
|
|
426
|
-
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
427
|
-
readonly templateSlug?: string | null;
|
|
428
|
-
readonly templateData?: {
|
|
429
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
430
|
-
} | null;
|
|
431
|
-
};
|
|
432
|
-
} | {
|
|
433
|
-
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
434
|
-
readonly metadata?: {
|
|
435
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
436
|
-
} | null;
|
|
437
|
-
readonly channel: "whatsapp";
|
|
438
|
-
readonly to: readonly ({
|
|
439
|
-
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
440
|
-
} | {
|
|
441
|
-
readonly phone: string;
|
|
442
|
-
readonly name?: string | null;
|
|
443
|
-
readonly displayName?: string | null;
|
|
444
|
-
})[];
|
|
445
|
-
readonly whatsapp: {
|
|
446
|
-
readonly text: string;
|
|
447
|
-
} | {
|
|
448
|
-
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
449
|
-
readonly templateData?: {
|
|
450
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
451
|
-
};
|
|
452
|
-
readonly flowToken?: string;
|
|
453
|
-
} | {
|
|
454
|
-
readonly templateSlug: string;
|
|
455
|
-
readonly templateData?: {
|
|
456
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
457
|
-
};
|
|
458
|
-
readonly flowToken?: string;
|
|
459
|
-
} | {
|
|
460
|
-
readonly media: {
|
|
461
|
-
readonly type: "image";
|
|
462
|
-
readonly caption?: string;
|
|
463
|
-
readonly url: string;
|
|
464
|
-
} | {
|
|
465
|
-
readonly type: "image";
|
|
466
|
-
readonly caption?: string;
|
|
467
|
-
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
468
|
-
} | {
|
|
469
|
-
readonly type: "video";
|
|
470
|
-
readonly caption?: string;
|
|
471
|
-
readonly url: string;
|
|
472
|
-
} | {
|
|
473
|
-
readonly type: "video";
|
|
474
|
-
readonly caption?: string;
|
|
475
|
-
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
476
|
-
} | {
|
|
477
|
-
readonly type: "audio";
|
|
478
|
-
readonly url: string;
|
|
479
|
-
} | {
|
|
480
|
-
readonly type: "audio";
|
|
481
|
-
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
482
|
-
} | {
|
|
483
|
-
readonly type: "document";
|
|
484
|
-
readonly caption?: string;
|
|
485
|
-
readonly filename?: string;
|
|
486
|
-
readonly url: string;
|
|
487
|
-
} | {
|
|
488
|
-
readonly type: "document";
|
|
489
|
-
readonly caption?: string;
|
|
490
|
-
readonly filename?: string;
|
|
491
|
-
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
492
|
-
} | {
|
|
493
|
-
readonly type: "sticker";
|
|
494
|
-
readonly url: string;
|
|
495
|
-
} | {
|
|
496
|
-
readonly type: "sticker";
|
|
497
|
-
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
498
|
-
};
|
|
499
|
-
} | {
|
|
500
|
-
readonly interactive: {
|
|
501
|
-
readonly type: "buttons";
|
|
502
|
-
readonly header?: {
|
|
503
|
-
readonly type: "text";
|
|
504
|
-
readonly text: string;
|
|
505
|
-
} | {
|
|
506
|
-
readonly type: "image";
|
|
507
|
-
readonly url: string;
|
|
508
|
-
} | {
|
|
509
|
-
readonly type: "image";
|
|
510
|
-
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
511
|
-
} | {
|
|
512
|
-
readonly type: "video";
|
|
513
|
-
readonly url: string;
|
|
514
|
-
} | {
|
|
515
|
-
readonly type: "video";
|
|
516
|
-
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
517
|
-
} | {
|
|
518
|
-
readonly type: "document";
|
|
519
|
-
readonly filename?: string;
|
|
520
|
-
readonly url: string;
|
|
521
|
-
} | {
|
|
522
|
-
readonly type: "document";
|
|
523
|
-
readonly filename?: string;
|
|
524
|
-
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
525
|
-
};
|
|
526
|
-
readonly body: string;
|
|
527
|
-
readonly footer?: string;
|
|
528
|
-
readonly buttons: readonly {
|
|
529
|
-
readonly id: string;
|
|
530
|
-
readonly title: string;
|
|
531
|
-
}[];
|
|
532
|
-
} | {
|
|
533
|
-
readonly type: "list";
|
|
534
|
-
readonly header?: {
|
|
535
|
-
readonly type: "text";
|
|
536
|
-
readonly text: string;
|
|
537
|
-
};
|
|
538
|
-
readonly body: string;
|
|
539
|
-
readonly footer?: string;
|
|
540
|
-
readonly button: string;
|
|
541
|
-
readonly sections: readonly {
|
|
542
|
-
readonly title?: string;
|
|
543
|
-
readonly rows: readonly {
|
|
544
|
-
readonly id: string;
|
|
545
|
-
readonly title: string;
|
|
546
|
-
readonly description?: string;
|
|
547
|
-
}[];
|
|
548
|
-
}[];
|
|
549
|
-
} | {
|
|
550
|
-
readonly type: "cta_url";
|
|
551
|
-
readonly header?: {
|
|
552
|
-
readonly type: "text";
|
|
553
|
-
readonly text: string;
|
|
554
|
-
} | {
|
|
555
|
-
readonly type: "image";
|
|
556
|
-
readonly url: string;
|
|
557
|
-
} | {
|
|
558
|
-
readonly type: "image";
|
|
559
|
-
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
560
|
-
} | {
|
|
561
|
-
readonly type: "video";
|
|
562
|
-
readonly url: string;
|
|
563
|
-
} | {
|
|
564
|
-
readonly type: "video";
|
|
565
|
-
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
566
|
-
} | {
|
|
567
|
-
readonly type: "document";
|
|
568
|
-
readonly filename?: string;
|
|
569
|
-
readonly url: string;
|
|
570
|
-
} | {
|
|
571
|
-
readonly type: "document";
|
|
572
|
-
readonly filename?: string;
|
|
573
|
-
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
574
|
-
};
|
|
575
|
-
readonly body: string;
|
|
576
|
-
readonly footer?: string;
|
|
577
|
-
readonly displayText: string;
|
|
578
|
-
readonly url: string;
|
|
579
|
-
} | {
|
|
580
|
-
readonly type: "flow";
|
|
581
|
-
readonly header?: {
|
|
582
|
-
readonly type: "text";
|
|
583
|
-
readonly text: string;
|
|
584
|
-
};
|
|
585
|
-
readonly body: string;
|
|
586
|
-
readonly footer?: string;
|
|
587
|
-
readonly flowId: string & import("effect/Brand").Brand<"WhatsAppFlowId">;
|
|
588
|
-
readonly cta: string;
|
|
589
|
-
readonly token?: string;
|
|
590
|
-
readonly action?: "data_exchange" | "navigate";
|
|
591
|
-
readonly screen?: string;
|
|
592
|
-
readonly data?: {
|
|
593
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
594
|
-
};
|
|
595
|
-
};
|
|
596
|
-
} | {
|
|
597
|
-
readonly reaction: {
|
|
598
|
-
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
599
|
-
readonly emoji: string;
|
|
600
|
-
};
|
|
601
|
-
} | {
|
|
602
|
-
readonly location: {
|
|
603
|
-
readonly latitude: number;
|
|
604
|
-
readonly longitude: number;
|
|
605
|
-
readonly name?: string;
|
|
606
|
-
readonly address?: string;
|
|
607
|
-
};
|
|
608
|
-
} | {
|
|
609
|
-
readonly contacts: readonly {
|
|
610
|
-
readonly name: {
|
|
611
|
-
readonly formattedName: string;
|
|
612
|
-
readonly firstName?: string;
|
|
613
|
-
readonly lastName?: string;
|
|
614
|
-
readonly middleName?: string;
|
|
615
|
-
readonly prefix?: string;
|
|
616
|
-
readonly suffix?: string;
|
|
617
|
-
};
|
|
618
|
-
readonly phones?: readonly {
|
|
619
|
-
readonly phone: string;
|
|
620
|
-
readonly type?: string;
|
|
621
|
-
readonly waId?: string;
|
|
622
|
-
}[];
|
|
623
|
-
readonly emails?: readonly {
|
|
624
|
-
readonly email: string;
|
|
625
|
-
readonly type?: string;
|
|
626
|
-
}[];
|
|
627
|
-
readonly urls?: readonly {
|
|
628
|
-
readonly url: string;
|
|
629
|
-
readonly type?: string;
|
|
630
|
-
}[];
|
|
631
|
-
readonly org?: {
|
|
632
|
-
readonly company?: string;
|
|
633
|
-
readonly department?: string;
|
|
634
|
-
readonly title?: string;
|
|
635
|
-
};
|
|
636
|
-
readonly addresses?: readonly {
|
|
637
|
-
readonly street?: string;
|
|
638
|
-
readonly city?: string;
|
|
639
|
-
readonly state?: string;
|
|
640
|
-
readonly zip?: string;
|
|
641
|
-
readonly country?: string;
|
|
642
|
-
readonly countryCode?: string;
|
|
643
|
-
readonly type?: string;
|
|
644
|
-
}[];
|
|
645
|
-
readonly birthday?: string;
|
|
646
|
-
}[];
|
|
647
|
-
};
|
|
648
|
-
};
|
|
649
|
-
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
650
|
-
readonly idempotencyKey: string | null;
|
|
651
|
-
readonly referenceId: string | null;
|
|
652
|
-
readonly failureReason: string | null;
|
|
653
|
-
readonly attempts: number;
|
|
654
|
-
readonly createdBy: string | null;
|
|
655
|
-
readonly actorEmail: string;
|
|
656
|
-
readonly memberRole: string;
|
|
657
|
-
readonly createdAt: string;
|
|
658
|
-
readonly updatedAt: string;
|
|
659
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
660
|
-
};
|
|
661
1
|
export declare const create: (input: {
|
|
662
2
|
readonly namespaceId?: string | null | undefined;
|
|
663
3
|
readonly send: {
|
|
@@ -947,218 +287,878 @@ export declare const create: (input: {
|
|
|
947
287
|
readonly caption?: string | undefined;
|
|
948
288
|
readonly url: string;
|
|
949
289
|
} | {
|
|
950
|
-
readonly type: "image";
|
|
951
|
-
readonly caption?: string | undefined;
|
|
952
|
-
readonly mediaId: string;
|
|
290
|
+
readonly type: "image";
|
|
291
|
+
readonly caption?: string | undefined;
|
|
292
|
+
readonly mediaId: string;
|
|
293
|
+
} | {
|
|
294
|
+
readonly type: "video";
|
|
295
|
+
readonly caption?: string | undefined;
|
|
296
|
+
readonly url: string;
|
|
297
|
+
} | {
|
|
298
|
+
readonly type: "video";
|
|
299
|
+
readonly caption?: string | undefined;
|
|
300
|
+
readonly mediaId: string;
|
|
301
|
+
} | {
|
|
302
|
+
readonly type: "audio";
|
|
303
|
+
readonly url: string;
|
|
304
|
+
} | {
|
|
305
|
+
readonly type: "audio";
|
|
306
|
+
readonly mediaId: string;
|
|
307
|
+
} | {
|
|
308
|
+
readonly type: "document";
|
|
309
|
+
readonly caption?: string | undefined;
|
|
310
|
+
readonly filename?: string | undefined;
|
|
311
|
+
readonly url: string;
|
|
312
|
+
} | {
|
|
313
|
+
readonly type: "document";
|
|
314
|
+
readonly caption?: string | undefined;
|
|
315
|
+
readonly filename?: string | undefined;
|
|
316
|
+
readonly mediaId: string;
|
|
317
|
+
} | {
|
|
318
|
+
readonly type: "sticker";
|
|
319
|
+
readonly url: string;
|
|
320
|
+
} | {
|
|
321
|
+
readonly type: "sticker";
|
|
322
|
+
readonly mediaId: string;
|
|
323
|
+
};
|
|
324
|
+
} | {
|
|
325
|
+
readonly interactive: {
|
|
326
|
+
readonly type: "buttons";
|
|
327
|
+
readonly header?: {
|
|
328
|
+
readonly type: "text";
|
|
329
|
+
readonly text: string;
|
|
330
|
+
} | {
|
|
331
|
+
readonly type: "image";
|
|
332
|
+
readonly url: string;
|
|
333
|
+
} | {
|
|
334
|
+
readonly type: "image";
|
|
335
|
+
readonly mediaId: string;
|
|
336
|
+
} | {
|
|
337
|
+
readonly type: "video";
|
|
338
|
+
readonly url: string;
|
|
339
|
+
} | {
|
|
340
|
+
readonly type: "video";
|
|
341
|
+
readonly mediaId: string;
|
|
342
|
+
} | {
|
|
343
|
+
readonly type: "document";
|
|
344
|
+
readonly filename?: string | undefined;
|
|
345
|
+
readonly url: string;
|
|
346
|
+
} | {
|
|
347
|
+
readonly type: "document";
|
|
348
|
+
readonly filename?: string | undefined;
|
|
349
|
+
readonly mediaId: string;
|
|
350
|
+
} | undefined;
|
|
351
|
+
readonly body: string;
|
|
352
|
+
readonly footer?: string | undefined;
|
|
353
|
+
readonly buttons: readonly {
|
|
354
|
+
readonly id: string;
|
|
355
|
+
readonly title: string;
|
|
356
|
+
}[];
|
|
357
|
+
} | {
|
|
358
|
+
readonly type: "list";
|
|
359
|
+
readonly header?: {
|
|
360
|
+
readonly type: "text";
|
|
361
|
+
readonly text: string;
|
|
362
|
+
} | undefined;
|
|
363
|
+
readonly body: string;
|
|
364
|
+
readonly footer?: string | undefined;
|
|
365
|
+
readonly button: string;
|
|
366
|
+
readonly sections: readonly {
|
|
367
|
+
readonly title?: string | undefined;
|
|
368
|
+
readonly rows: readonly {
|
|
369
|
+
readonly id: string;
|
|
370
|
+
readonly title: string;
|
|
371
|
+
readonly description?: string | undefined;
|
|
372
|
+
}[];
|
|
373
|
+
}[];
|
|
374
|
+
} | {
|
|
375
|
+
readonly type: "cta_url";
|
|
376
|
+
readonly header?: {
|
|
377
|
+
readonly type: "text";
|
|
378
|
+
readonly text: string;
|
|
379
|
+
} | {
|
|
380
|
+
readonly type: "image";
|
|
381
|
+
readonly url: string;
|
|
382
|
+
} | {
|
|
383
|
+
readonly type: "image";
|
|
384
|
+
readonly mediaId: string;
|
|
385
|
+
} | {
|
|
386
|
+
readonly type: "video";
|
|
387
|
+
readonly url: string;
|
|
388
|
+
} | {
|
|
389
|
+
readonly type: "video";
|
|
390
|
+
readonly mediaId: string;
|
|
391
|
+
} | {
|
|
392
|
+
readonly type: "document";
|
|
393
|
+
readonly filename?: string | undefined;
|
|
394
|
+
readonly url: string;
|
|
395
|
+
} | {
|
|
396
|
+
readonly type: "document";
|
|
397
|
+
readonly filename?: string | undefined;
|
|
398
|
+
readonly mediaId: string;
|
|
399
|
+
} | undefined;
|
|
400
|
+
readonly body: string;
|
|
401
|
+
readonly footer?: string | undefined;
|
|
402
|
+
readonly displayText: string;
|
|
403
|
+
readonly url: string;
|
|
404
|
+
} | {
|
|
405
|
+
readonly type: "flow";
|
|
406
|
+
readonly header?: {
|
|
407
|
+
readonly type: "text";
|
|
408
|
+
readonly text: string;
|
|
409
|
+
} | undefined;
|
|
410
|
+
readonly body: string;
|
|
411
|
+
readonly footer?: string | undefined;
|
|
412
|
+
readonly flowId: string;
|
|
413
|
+
readonly cta: string;
|
|
414
|
+
readonly token?: string | undefined;
|
|
415
|
+
readonly action?: "data_exchange" | "navigate" | undefined;
|
|
416
|
+
readonly screen?: string | undefined;
|
|
417
|
+
readonly data?: {
|
|
418
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
|
|
419
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
420
|
+
} | null)[] | {
|
|
421
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
422
|
+
} | null)[] | {
|
|
423
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
424
|
+
} | null)[] | {
|
|
425
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
426
|
+
} | null)[] | {
|
|
427
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
428
|
+
} | null)[] | {
|
|
429
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
430
|
+
} | null)[] | {
|
|
431
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
432
|
+
} | null)[] | {
|
|
433
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
434
|
+
} | null)[] | {
|
|
435
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
436
|
+
} | null)[] | {
|
|
437
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
438
|
+
} | null)[] | {
|
|
439
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
440
|
+
} | null)[] | {
|
|
441
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
442
|
+
} | null | undefined;
|
|
443
|
+
} | undefined;
|
|
444
|
+
};
|
|
445
|
+
} | {
|
|
446
|
+
readonly reaction: {
|
|
447
|
+
readonly messageId: string;
|
|
448
|
+
readonly emoji: string;
|
|
449
|
+
};
|
|
450
|
+
} | {
|
|
451
|
+
readonly location: {
|
|
452
|
+
readonly latitude: number;
|
|
453
|
+
readonly longitude: number;
|
|
454
|
+
readonly name?: string | undefined;
|
|
455
|
+
readonly address?: string | undefined;
|
|
456
|
+
};
|
|
457
|
+
} | {
|
|
458
|
+
readonly contacts: readonly {
|
|
459
|
+
readonly name: {
|
|
460
|
+
readonly formattedName: string;
|
|
461
|
+
readonly firstName?: string | undefined;
|
|
462
|
+
readonly lastName?: string | undefined;
|
|
463
|
+
readonly middleName?: string | undefined;
|
|
464
|
+
readonly prefix?: string | undefined;
|
|
465
|
+
readonly suffix?: string | undefined;
|
|
466
|
+
};
|
|
467
|
+
readonly phones?: readonly {
|
|
468
|
+
readonly phone: string;
|
|
469
|
+
readonly type?: string | undefined;
|
|
470
|
+
readonly waId?: string | undefined;
|
|
471
|
+
}[] | undefined;
|
|
472
|
+
readonly emails?: readonly {
|
|
473
|
+
readonly email: string;
|
|
474
|
+
readonly type?: string | undefined;
|
|
475
|
+
}[] | undefined;
|
|
476
|
+
readonly urls?: readonly {
|
|
477
|
+
readonly url: string;
|
|
478
|
+
readonly type?: string | undefined;
|
|
479
|
+
}[] | undefined;
|
|
480
|
+
readonly org?: {
|
|
481
|
+
readonly company?: string | undefined;
|
|
482
|
+
readonly department?: string | undefined;
|
|
483
|
+
readonly title?: string | undefined;
|
|
484
|
+
} | undefined;
|
|
485
|
+
readonly addresses?: readonly {
|
|
486
|
+
readonly street?: string | undefined;
|
|
487
|
+
readonly city?: string | undefined;
|
|
488
|
+
readonly state?: string | undefined;
|
|
489
|
+
readonly zip?: string | undefined;
|
|
490
|
+
readonly country?: string | undefined;
|
|
491
|
+
readonly countryCode?: string | undefined;
|
|
492
|
+
readonly type?: string | undefined;
|
|
493
|
+
}[] | undefined;
|
|
494
|
+
readonly birthday?: string | undefined;
|
|
495
|
+
}[];
|
|
496
|
+
};
|
|
497
|
+
};
|
|
498
|
+
readonly scheduledFor: Date;
|
|
499
|
+
readonly timezone?: string | null | undefined;
|
|
500
|
+
readonly referenceId?: string | null | undefined;
|
|
501
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"scheduledMessagesCreate">;
|
|
502
|
+
export declare const list: ((input?: {
|
|
503
|
+
readonly limit?: number | null | undefined;
|
|
504
|
+
readonly cursor?: string | undefined;
|
|
505
|
+
readonly namespaceId?: string | undefined;
|
|
506
|
+
readonly status?: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending" | undefined;
|
|
507
|
+
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"scheduledMessagesList">) & {
|
|
508
|
+
readonly pages: (input?: {
|
|
509
|
+
readonly limit?: number | null | undefined;
|
|
510
|
+
readonly cursor?: string | undefined;
|
|
511
|
+
readonly namespaceId?: string | undefined;
|
|
512
|
+
readonly status?: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending" | undefined;
|
|
513
|
+
} | undefined) => import("effect/Stream").Stream<{
|
|
514
|
+
readonly items: readonly {
|
|
515
|
+
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
516
|
+
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
517
|
+
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
518
|
+
readonly scheduledFor: string;
|
|
519
|
+
readonly timezone: string;
|
|
520
|
+
readonly send: {
|
|
521
|
+
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
522
|
+
readonly metadata?: {
|
|
523
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
524
|
+
} | null;
|
|
525
|
+
readonly channel: "email";
|
|
526
|
+
readonly to: readonly ({
|
|
527
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
528
|
+
} | {
|
|
529
|
+
readonly email: string;
|
|
530
|
+
readonly name?: string | null;
|
|
531
|
+
readonly displayName?: string | null;
|
|
532
|
+
})[];
|
|
533
|
+
readonly cc?: readonly ({
|
|
534
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
535
|
+
} | {
|
|
536
|
+
readonly email: string;
|
|
537
|
+
readonly name?: string | null;
|
|
538
|
+
readonly displayName?: string | null;
|
|
539
|
+
})[] | null;
|
|
540
|
+
readonly bcc?: readonly ({
|
|
541
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
542
|
+
} | {
|
|
543
|
+
readonly email: string;
|
|
544
|
+
readonly name?: string | null;
|
|
545
|
+
readonly displayName?: string | null;
|
|
546
|
+
})[] | null;
|
|
547
|
+
readonly from?: {
|
|
548
|
+
readonly email: string;
|
|
549
|
+
readonly name?: string | null;
|
|
550
|
+
} | null;
|
|
551
|
+
readonly email: {
|
|
552
|
+
readonly subject?: string | null;
|
|
553
|
+
readonly html?: string | null;
|
|
554
|
+
readonly text?: string | null;
|
|
555
|
+
readonly attachments?: readonly {
|
|
556
|
+
readonly filename: string;
|
|
557
|
+
readonly content?: string | null;
|
|
558
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
559
|
+
readonly contentType: string;
|
|
560
|
+
readonly size: number;
|
|
561
|
+
}[] | null;
|
|
562
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
563
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
564
|
+
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
565
|
+
readonly templateSlug?: string | null;
|
|
566
|
+
readonly templateData?: {
|
|
567
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
568
|
+
} | null;
|
|
569
|
+
readonly locale?: string;
|
|
570
|
+
readonly timeZone?: string;
|
|
571
|
+
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
572
|
+
readonly replyTo?: readonly string[] | null;
|
|
573
|
+
readonly topicId?: (string & import("effect/Brand").Brand<"TopicId">) | null;
|
|
574
|
+
readonly tracking?: {
|
|
575
|
+
readonly opens?: boolean;
|
|
576
|
+
readonly clicks?: boolean;
|
|
577
|
+
};
|
|
578
|
+
readonly footer?: {
|
|
579
|
+
readonly enabled?: boolean | null;
|
|
580
|
+
};
|
|
581
|
+
readonly headers?: {
|
|
582
|
+
readonly [x: string]: string;
|
|
583
|
+
} | null;
|
|
584
|
+
};
|
|
585
|
+
} | {
|
|
586
|
+
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
587
|
+
readonly metadata?: {
|
|
588
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
589
|
+
} | null;
|
|
590
|
+
readonly channel: "sms";
|
|
591
|
+
readonly to: readonly ({
|
|
592
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
593
|
+
} | {
|
|
594
|
+
readonly phone: string;
|
|
595
|
+
readonly name?: string | null;
|
|
596
|
+
readonly displayName?: string | null;
|
|
597
|
+
})[];
|
|
598
|
+
readonly sms: {
|
|
599
|
+
readonly text?: string | null;
|
|
600
|
+
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
601
|
+
readonly templateSlug?: string | null;
|
|
602
|
+
readonly templateData?: {
|
|
603
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
604
|
+
} | null;
|
|
605
|
+
};
|
|
606
|
+
} | {
|
|
607
|
+
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
608
|
+
readonly metadata?: {
|
|
609
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
610
|
+
} | null;
|
|
611
|
+
readonly channel: "whatsapp";
|
|
612
|
+
readonly to: readonly ({
|
|
613
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
614
|
+
} | {
|
|
615
|
+
readonly phone: string;
|
|
616
|
+
readonly name?: string | null;
|
|
617
|
+
readonly displayName?: string | null;
|
|
618
|
+
})[];
|
|
619
|
+
readonly whatsapp: {
|
|
620
|
+
readonly text: string;
|
|
621
|
+
} | {
|
|
622
|
+
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
623
|
+
readonly templateData?: {
|
|
624
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
625
|
+
};
|
|
626
|
+
readonly flowToken?: string;
|
|
627
|
+
} | {
|
|
628
|
+
readonly templateSlug: string;
|
|
629
|
+
readonly templateData?: {
|
|
630
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
631
|
+
};
|
|
632
|
+
readonly flowToken?: string;
|
|
633
|
+
} | {
|
|
634
|
+
readonly media: {
|
|
635
|
+
readonly type: "image";
|
|
636
|
+
readonly caption?: string;
|
|
637
|
+
readonly url: string;
|
|
638
|
+
} | {
|
|
639
|
+
readonly type: "image";
|
|
640
|
+
readonly caption?: string;
|
|
641
|
+
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
642
|
+
} | {
|
|
643
|
+
readonly type: "video";
|
|
644
|
+
readonly caption?: string;
|
|
645
|
+
readonly url: string;
|
|
646
|
+
} | {
|
|
647
|
+
readonly type: "video";
|
|
648
|
+
readonly caption?: string;
|
|
649
|
+
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
650
|
+
} | {
|
|
651
|
+
readonly type: "audio";
|
|
652
|
+
readonly url: string;
|
|
653
|
+
} | {
|
|
654
|
+
readonly type: "audio";
|
|
655
|
+
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
656
|
+
} | {
|
|
657
|
+
readonly type: "document";
|
|
658
|
+
readonly caption?: string;
|
|
659
|
+
readonly filename?: string;
|
|
660
|
+
readonly url: string;
|
|
661
|
+
} | {
|
|
662
|
+
readonly type: "document";
|
|
663
|
+
readonly caption?: string;
|
|
664
|
+
readonly filename?: string;
|
|
665
|
+
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
666
|
+
} | {
|
|
667
|
+
readonly type: "sticker";
|
|
668
|
+
readonly url: string;
|
|
669
|
+
} | {
|
|
670
|
+
readonly type: "sticker";
|
|
671
|
+
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
672
|
+
};
|
|
673
|
+
} | {
|
|
674
|
+
readonly interactive: {
|
|
675
|
+
readonly type: "buttons";
|
|
676
|
+
readonly header?: {
|
|
677
|
+
readonly type: "text";
|
|
678
|
+
readonly text: string;
|
|
679
|
+
} | {
|
|
680
|
+
readonly type: "image";
|
|
681
|
+
readonly url: string;
|
|
682
|
+
} | {
|
|
683
|
+
readonly type: "image";
|
|
684
|
+
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
685
|
+
} | {
|
|
686
|
+
readonly type: "video";
|
|
687
|
+
readonly url: string;
|
|
688
|
+
} | {
|
|
689
|
+
readonly type: "video";
|
|
690
|
+
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
691
|
+
} | {
|
|
692
|
+
readonly type: "document";
|
|
693
|
+
readonly filename?: string;
|
|
694
|
+
readonly url: string;
|
|
695
|
+
} | {
|
|
696
|
+
readonly type: "document";
|
|
697
|
+
readonly filename?: string;
|
|
698
|
+
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
699
|
+
};
|
|
700
|
+
readonly body: string;
|
|
701
|
+
readonly footer?: string;
|
|
702
|
+
readonly buttons: readonly {
|
|
703
|
+
readonly id: string;
|
|
704
|
+
readonly title: string;
|
|
705
|
+
}[];
|
|
706
|
+
} | {
|
|
707
|
+
readonly type: "list";
|
|
708
|
+
readonly header?: {
|
|
709
|
+
readonly type: "text";
|
|
710
|
+
readonly text: string;
|
|
711
|
+
};
|
|
712
|
+
readonly body: string;
|
|
713
|
+
readonly footer?: string;
|
|
714
|
+
readonly button: string;
|
|
715
|
+
readonly sections: readonly {
|
|
716
|
+
readonly title?: string;
|
|
717
|
+
readonly rows: readonly {
|
|
718
|
+
readonly id: string;
|
|
719
|
+
readonly title: string;
|
|
720
|
+
readonly description?: string;
|
|
721
|
+
}[];
|
|
722
|
+
}[];
|
|
723
|
+
} | {
|
|
724
|
+
readonly type: "cta_url";
|
|
725
|
+
readonly header?: {
|
|
726
|
+
readonly type: "text";
|
|
727
|
+
readonly text: string;
|
|
728
|
+
} | {
|
|
729
|
+
readonly type: "image";
|
|
730
|
+
readonly url: string;
|
|
731
|
+
} | {
|
|
732
|
+
readonly type: "image";
|
|
733
|
+
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
734
|
+
} | {
|
|
735
|
+
readonly type: "video";
|
|
736
|
+
readonly url: string;
|
|
737
|
+
} | {
|
|
738
|
+
readonly type: "video";
|
|
739
|
+
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
740
|
+
} | {
|
|
741
|
+
readonly type: "document";
|
|
742
|
+
readonly filename?: string;
|
|
743
|
+
readonly url: string;
|
|
744
|
+
} | {
|
|
745
|
+
readonly type: "document";
|
|
746
|
+
readonly filename?: string;
|
|
747
|
+
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
748
|
+
};
|
|
749
|
+
readonly body: string;
|
|
750
|
+
readonly footer?: string;
|
|
751
|
+
readonly displayText: string;
|
|
752
|
+
readonly url: string;
|
|
753
|
+
} | {
|
|
754
|
+
readonly type: "flow";
|
|
755
|
+
readonly header?: {
|
|
756
|
+
readonly type: "text";
|
|
757
|
+
readonly text: string;
|
|
758
|
+
};
|
|
759
|
+
readonly body: string;
|
|
760
|
+
readonly footer?: string;
|
|
761
|
+
readonly flowId: string & import("effect/Brand").Brand<"WhatsAppFlowId">;
|
|
762
|
+
readonly cta: string;
|
|
763
|
+
readonly token?: string;
|
|
764
|
+
readonly action?: "data_exchange" | "navigate";
|
|
765
|
+
readonly screen?: string;
|
|
766
|
+
readonly data?: {
|
|
767
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
768
|
+
};
|
|
769
|
+
};
|
|
770
|
+
} | {
|
|
771
|
+
readonly reaction: {
|
|
772
|
+
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
773
|
+
readonly emoji: string;
|
|
774
|
+
};
|
|
775
|
+
} | {
|
|
776
|
+
readonly location: {
|
|
777
|
+
readonly latitude: number;
|
|
778
|
+
readonly longitude: number;
|
|
779
|
+
readonly name?: string;
|
|
780
|
+
readonly address?: string;
|
|
781
|
+
};
|
|
782
|
+
} | {
|
|
783
|
+
readonly contacts: readonly {
|
|
784
|
+
readonly name: {
|
|
785
|
+
readonly formattedName: string;
|
|
786
|
+
readonly firstName?: string;
|
|
787
|
+
readonly lastName?: string;
|
|
788
|
+
readonly middleName?: string;
|
|
789
|
+
readonly prefix?: string;
|
|
790
|
+
readonly suffix?: string;
|
|
791
|
+
};
|
|
792
|
+
readonly phones?: readonly {
|
|
793
|
+
readonly phone: string;
|
|
794
|
+
readonly type?: string;
|
|
795
|
+
readonly waId?: string;
|
|
796
|
+
}[];
|
|
797
|
+
readonly emails?: readonly {
|
|
798
|
+
readonly email: string;
|
|
799
|
+
readonly type?: string;
|
|
800
|
+
}[];
|
|
801
|
+
readonly urls?: readonly {
|
|
802
|
+
readonly url: string;
|
|
803
|
+
readonly type?: string;
|
|
804
|
+
}[];
|
|
805
|
+
readonly org?: {
|
|
806
|
+
readonly company?: string;
|
|
807
|
+
readonly department?: string;
|
|
808
|
+
readonly title?: string;
|
|
809
|
+
};
|
|
810
|
+
readonly addresses?: readonly {
|
|
811
|
+
readonly street?: string;
|
|
812
|
+
readonly city?: string;
|
|
813
|
+
readonly state?: string;
|
|
814
|
+
readonly zip?: string;
|
|
815
|
+
readonly country?: string;
|
|
816
|
+
readonly countryCode?: string;
|
|
817
|
+
readonly type?: string;
|
|
818
|
+
}[];
|
|
819
|
+
readonly birthday?: string;
|
|
820
|
+
}[];
|
|
821
|
+
};
|
|
822
|
+
};
|
|
823
|
+
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
824
|
+
readonly idempotencyKey: string | null;
|
|
825
|
+
readonly referenceId: string | null;
|
|
826
|
+
readonly failureReason: string | null;
|
|
827
|
+
readonly attempts: number;
|
|
828
|
+
readonly createdBy: string | null;
|
|
829
|
+
readonly actorEmail: string;
|
|
830
|
+
readonly memberRole: string;
|
|
831
|
+
readonly createdAt: string;
|
|
832
|
+
readonly updatedAt: string;
|
|
833
|
+
}[];
|
|
834
|
+
readonly nextCursor: string | null;
|
|
835
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
836
|
+
readonly items: (input?: {
|
|
837
|
+
readonly limit?: number | null | undefined;
|
|
838
|
+
readonly cursor?: string | undefined;
|
|
839
|
+
readonly namespaceId?: string | undefined;
|
|
840
|
+
readonly status?: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending" | undefined;
|
|
841
|
+
} | undefined) => import("effect/Stream").Stream<{
|
|
842
|
+
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
843
|
+
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
844
|
+
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
845
|
+
readonly scheduledFor: string;
|
|
846
|
+
readonly timezone: string;
|
|
847
|
+
readonly send: {
|
|
848
|
+
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
849
|
+
readonly metadata?: {
|
|
850
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
851
|
+
} | null;
|
|
852
|
+
readonly channel: "email";
|
|
853
|
+
readonly to: readonly ({
|
|
854
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
953
855
|
} | {
|
|
954
|
-
readonly
|
|
955
|
-
readonly
|
|
956
|
-
readonly
|
|
856
|
+
readonly email: string;
|
|
857
|
+
readonly name?: string | null;
|
|
858
|
+
readonly displayName?: string | null;
|
|
859
|
+
})[];
|
|
860
|
+
readonly cc?: readonly ({
|
|
861
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
957
862
|
} | {
|
|
958
|
-
readonly
|
|
959
|
-
readonly
|
|
960
|
-
readonly
|
|
863
|
+
readonly email: string;
|
|
864
|
+
readonly name?: string | null;
|
|
865
|
+
readonly displayName?: string | null;
|
|
866
|
+
})[] | null;
|
|
867
|
+
readonly bcc?: readonly ({
|
|
868
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
961
869
|
} | {
|
|
962
|
-
readonly
|
|
963
|
-
readonly
|
|
870
|
+
readonly email: string;
|
|
871
|
+
readonly name?: string | null;
|
|
872
|
+
readonly displayName?: string | null;
|
|
873
|
+
})[] | null;
|
|
874
|
+
readonly from?: {
|
|
875
|
+
readonly email: string;
|
|
876
|
+
readonly name?: string | null;
|
|
877
|
+
} | null;
|
|
878
|
+
readonly email: {
|
|
879
|
+
readonly subject?: string | null;
|
|
880
|
+
readonly html?: string | null;
|
|
881
|
+
readonly text?: string | null;
|
|
882
|
+
readonly attachments?: readonly {
|
|
883
|
+
readonly filename: string;
|
|
884
|
+
readonly content?: string | null;
|
|
885
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
886
|
+
readonly contentType: string;
|
|
887
|
+
readonly size: number;
|
|
888
|
+
}[] | null;
|
|
889
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
890
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
891
|
+
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
892
|
+
readonly templateSlug?: string | null;
|
|
893
|
+
readonly templateData?: {
|
|
894
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
895
|
+
} | null;
|
|
896
|
+
readonly locale?: string;
|
|
897
|
+
readonly timeZone?: string;
|
|
898
|
+
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
899
|
+
readonly replyTo?: readonly string[] | null;
|
|
900
|
+
readonly topicId?: (string & import("effect/Brand").Brand<"TopicId">) | null;
|
|
901
|
+
readonly tracking?: {
|
|
902
|
+
readonly opens?: boolean;
|
|
903
|
+
readonly clicks?: boolean;
|
|
904
|
+
};
|
|
905
|
+
readonly footer?: {
|
|
906
|
+
readonly enabled?: boolean | null;
|
|
907
|
+
};
|
|
908
|
+
readonly headers?: {
|
|
909
|
+
readonly [x: string]: string;
|
|
910
|
+
} | null;
|
|
911
|
+
};
|
|
912
|
+
} | {
|
|
913
|
+
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
914
|
+
readonly metadata?: {
|
|
915
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
916
|
+
} | null;
|
|
917
|
+
readonly channel: "sms";
|
|
918
|
+
readonly to: readonly ({
|
|
919
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
964
920
|
} | {
|
|
965
|
-
readonly
|
|
966
|
-
readonly
|
|
921
|
+
readonly phone: string;
|
|
922
|
+
readonly name?: string | null;
|
|
923
|
+
readonly displayName?: string | null;
|
|
924
|
+
})[];
|
|
925
|
+
readonly sms: {
|
|
926
|
+
readonly text?: string | null;
|
|
927
|
+
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
928
|
+
readonly templateSlug?: string | null;
|
|
929
|
+
readonly templateData?: {
|
|
930
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
931
|
+
} | null;
|
|
932
|
+
};
|
|
933
|
+
} | {
|
|
934
|
+
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
935
|
+
readonly metadata?: {
|
|
936
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
937
|
+
} | null;
|
|
938
|
+
readonly channel: "whatsapp";
|
|
939
|
+
readonly to: readonly ({
|
|
940
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
967
941
|
} | {
|
|
968
|
-
readonly
|
|
969
|
-
readonly
|
|
970
|
-
readonly
|
|
971
|
-
|
|
942
|
+
readonly phone: string;
|
|
943
|
+
readonly name?: string | null;
|
|
944
|
+
readonly displayName?: string | null;
|
|
945
|
+
})[];
|
|
946
|
+
readonly whatsapp: {
|
|
947
|
+
readonly text: string;
|
|
972
948
|
} | {
|
|
973
|
-
readonly
|
|
974
|
-
readonly
|
|
975
|
-
|
|
976
|
-
|
|
949
|
+
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
950
|
+
readonly templateData?: {
|
|
951
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
952
|
+
};
|
|
953
|
+
readonly flowToken?: string;
|
|
977
954
|
} | {
|
|
978
|
-
readonly
|
|
979
|
-
readonly
|
|
955
|
+
readonly templateSlug: string;
|
|
956
|
+
readonly templateData?: {
|
|
957
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
958
|
+
};
|
|
959
|
+
readonly flowToken?: string;
|
|
980
960
|
} | {
|
|
981
|
-
readonly
|
|
982
|
-
readonly mediaId: string;
|
|
983
|
-
};
|
|
984
|
-
} | {
|
|
985
|
-
readonly interactive: {
|
|
986
|
-
readonly type: "buttons";
|
|
987
|
-
readonly header?: {
|
|
988
|
-
readonly type: "text";
|
|
989
|
-
readonly text: string;
|
|
990
|
-
} | {
|
|
961
|
+
readonly media: {
|
|
991
962
|
readonly type: "image";
|
|
963
|
+
readonly caption?: string;
|
|
992
964
|
readonly url: string;
|
|
993
965
|
} | {
|
|
994
966
|
readonly type: "image";
|
|
995
|
-
readonly
|
|
967
|
+
readonly caption?: string;
|
|
968
|
+
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
996
969
|
} | {
|
|
997
970
|
readonly type: "video";
|
|
971
|
+
readonly caption?: string;
|
|
998
972
|
readonly url: string;
|
|
999
973
|
} | {
|
|
1000
974
|
readonly type: "video";
|
|
1001
|
-
readonly
|
|
975
|
+
readonly caption?: string;
|
|
976
|
+
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
977
|
+
} | {
|
|
978
|
+
readonly type: "audio";
|
|
979
|
+
readonly url: string;
|
|
980
|
+
} | {
|
|
981
|
+
readonly type: "audio";
|
|
982
|
+
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
1002
983
|
} | {
|
|
1003
984
|
readonly type: "document";
|
|
1004
|
-
readonly
|
|
985
|
+
readonly caption?: string;
|
|
986
|
+
readonly filename?: string;
|
|
1005
987
|
readonly url: string;
|
|
1006
988
|
} | {
|
|
1007
989
|
readonly type: "document";
|
|
1008
|
-
readonly
|
|
1009
|
-
readonly
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
readonly
|
|
1016
|
-
|
|
990
|
+
readonly caption?: string;
|
|
991
|
+
readonly filename?: string;
|
|
992
|
+
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
993
|
+
} | {
|
|
994
|
+
readonly type: "sticker";
|
|
995
|
+
readonly url: string;
|
|
996
|
+
} | {
|
|
997
|
+
readonly type: "sticker";
|
|
998
|
+
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
999
|
+
};
|
|
1017
1000
|
} | {
|
|
1018
|
-
readonly
|
|
1019
|
-
|
|
1020
|
-
readonly
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1001
|
+
readonly interactive: {
|
|
1002
|
+
readonly type: "buttons";
|
|
1003
|
+
readonly header?: {
|
|
1004
|
+
readonly type: "text";
|
|
1005
|
+
readonly text: string;
|
|
1006
|
+
} | {
|
|
1007
|
+
readonly type: "image";
|
|
1008
|
+
readonly url: string;
|
|
1009
|
+
} | {
|
|
1010
|
+
readonly type: "image";
|
|
1011
|
+
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
1012
|
+
} | {
|
|
1013
|
+
readonly type: "video";
|
|
1014
|
+
readonly url: string;
|
|
1015
|
+
} | {
|
|
1016
|
+
readonly type: "video";
|
|
1017
|
+
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
1018
|
+
} | {
|
|
1019
|
+
readonly type: "document";
|
|
1020
|
+
readonly filename?: string;
|
|
1021
|
+
readonly url: string;
|
|
1022
|
+
} | {
|
|
1023
|
+
readonly type: "document";
|
|
1024
|
+
readonly filename?: string;
|
|
1025
|
+
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
1026
|
+
};
|
|
1027
|
+
readonly body: string;
|
|
1028
|
+
readonly footer?: string;
|
|
1029
|
+
readonly buttons: readonly {
|
|
1029
1030
|
readonly id: string;
|
|
1030
1031
|
readonly title: string;
|
|
1031
|
-
readonly description?: string | undefined;
|
|
1032
1032
|
}[];
|
|
1033
|
-
}[];
|
|
1034
|
-
} | {
|
|
1035
|
-
readonly type: "cta_url";
|
|
1036
|
-
readonly header?: {
|
|
1037
|
-
readonly type: "text";
|
|
1038
|
-
readonly text: string;
|
|
1039
|
-
} | {
|
|
1040
|
-
readonly type: "image";
|
|
1041
|
-
readonly url: string;
|
|
1042
|
-
} | {
|
|
1043
|
-
readonly type: "image";
|
|
1044
|
-
readonly mediaId: string;
|
|
1045
1033
|
} | {
|
|
1046
|
-
readonly type: "
|
|
1047
|
-
readonly
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1034
|
+
readonly type: "list";
|
|
1035
|
+
readonly header?: {
|
|
1036
|
+
readonly type: "text";
|
|
1037
|
+
readonly text: string;
|
|
1038
|
+
};
|
|
1039
|
+
readonly body: string;
|
|
1040
|
+
readonly footer?: string;
|
|
1041
|
+
readonly button: string;
|
|
1042
|
+
readonly sections: readonly {
|
|
1043
|
+
readonly title?: string;
|
|
1044
|
+
readonly rows: readonly {
|
|
1045
|
+
readonly id: string;
|
|
1046
|
+
readonly title: string;
|
|
1047
|
+
readonly description?: string;
|
|
1048
|
+
}[];
|
|
1049
|
+
}[];
|
|
1051
1050
|
} | {
|
|
1052
|
-
readonly type: "
|
|
1053
|
-
readonly
|
|
1051
|
+
readonly type: "cta_url";
|
|
1052
|
+
readonly header?: {
|
|
1053
|
+
readonly type: "text";
|
|
1054
|
+
readonly text: string;
|
|
1055
|
+
} | {
|
|
1056
|
+
readonly type: "image";
|
|
1057
|
+
readonly url: string;
|
|
1058
|
+
} | {
|
|
1059
|
+
readonly type: "image";
|
|
1060
|
+
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
1061
|
+
} | {
|
|
1062
|
+
readonly type: "video";
|
|
1063
|
+
readonly url: string;
|
|
1064
|
+
} | {
|
|
1065
|
+
readonly type: "video";
|
|
1066
|
+
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
1067
|
+
} | {
|
|
1068
|
+
readonly type: "document";
|
|
1069
|
+
readonly filename?: string;
|
|
1070
|
+
readonly url: string;
|
|
1071
|
+
} | {
|
|
1072
|
+
readonly type: "document";
|
|
1073
|
+
readonly filename?: string;
|
|
1074
|
+
readonly mediaId: string & import("effect/Brand").Brand<"MediaId">;
|
|
1075
|
+
};
|
|
1076
|
+
readonly body: string;
|
|
1077
|
+
readonly footer?: string;
|
|
1078
|
+
readonly displayText: string;
|
|
1054
1079
|
readonly url: string;
|
|
1055
1080
|
} | {
|
|
1056
|
-
readonly type: "
|
|
1057
|
-
readonly
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1081
|
+
readonly type: "flow";
|
|
1082
|
+
readonly header?: {
|
|
1083
|
+
readonly type: "text";
|
|
1084
|
+
readonly text: string;
|
|
1085
|
+
};
|
|
1086
|
+
readonly body: string;
|
|
1087
|
+
readonly footer?: string;
|
|
1088
|
+
readonly flowId: string & import("effect/Brand").Brand<"WhatsAppFlowId">;
|
|
1089
|
+
readonly cta: string;
|
|
1090
|
+
readonly token?: string;
|
|
1091
|
+
readonly action?: "data_exchange" | "navigate";
|
|
1092
|
+
readonly screen?: string;
|
|
1093
|
+
readonly data?: {
|
|
1094
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
1095
|
+
};
|
|
1096
|
+
};
|
|
1064
1097
|
} | {
|
|
1065
|
-
readonly
|
|
1066
|
-
|
|
1067
|
-
readonly
|
|
1068
|
-
readonly text: string;
|
|
1069
|
-
} | undefined;
|
|
1070
|
-
readonly body: string;
|
|
1071
|
-
readonly footer?: string | undefined;
|
|
1072
|
-
readonly flowId: string;
|
|
1073
|
-
readonly cta: string;
|
|
1074
|
-
readonly token?: string | undefined;
|
|
1075
|
-
readonly action?: "data_exchange" | "navigate" | undefined;
|
|
1076
|
-
readonly screen?: string | undefined;
|
|
1077
|
-
readonly data?: {
|
|
1078
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
|
|
1079
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1080
|
-
} | null)[] | {
|
|
1081
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1082
|
-
} | null)[] | {
|
|
1083
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1084
|
-
} | null)[] | {
|
|
1085
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1086
|
-
} | null)[] | {
|
|
1087
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1088
|
-
} | null)[] | {
|
|
1089
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1090
|
-
} | null)[] | {
|
|
1091
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1092
|
-
} | null)[] | {
|
|
1093
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1094
|
-
} | null)[] | {
|
|
1095
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1096
|
-
} | null)[] | {
|
|
1097
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1098
|
-
} | null)[] | {
|
|
1099
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1100
|
-
} | null)[] | {
|
|
1101
|
-
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
1102
|
-
} | null | undefined;
|
|
1103
|
-
} | undefined;
|
|
1104
|
-
};
|
|
1105
|
-
} | {
|
|
1106
|
-
readonly reaction: {
|
|
1107
|
-
readonly messageId: string;
|
|
1108
|
-
readonly emoji: string;
|
|
1109
|
-
};
|
|
1110
|
-
} | {
|
|
1111
|
-
readonly location: {
|
|
1112
|
-
readonly latitude: number;
|
|
1113
|
-
readonly longitude: number;
|
|
1114
|
-
readonly name?: string | undefined;
|
|
1115
|
-
readonly address?: string | undefined;
|
|
1116
|
-
};
|
|
1117
|
-
} | {
|
|
1118
|
-
readonly contacts: readonly {
|
|
1119
|
-
readonly name: {
|
|
1120
|
-
readonly formattedName: string;
|
|
1121
|
-
readonly firstName?: string | undefined;
|
|
1122
|
-
readonly lastName?: string | undefined;
|
|
1123
|
-
readonly middleName?: string | undefined;
|
|
1124
|
-
readonly prefix?: string | undefined;
|
|
1125
|
-
readonly suffix?: string | undefined;
|
|
1098
|
+
readonly reaction: {
|
|
1099
|
+
readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
|
|
1100
|
+
readonly emoji: string;
|
|
1126
1101
|
};
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
readonly
|
|
1130
|
-
readonly
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
readonly
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1102
|
+
} | {
|
|
1103
|
+
readonly location: {
|
|
1104
|
+
readonly latitude: number;
|
|
1105
|
+
readonly longitude: number;
|
|
1106
|
+
readonly name?: string;
|
|
1107
|
+
readonly address?: string;
|
|
1108
|
+
};
|
|
1109
|
+
} | {
|
|
1110
|
+
readonly contacts: readonly {
|
|
1111
|
+
readonly name: {
|
|
1112
|
+
readonly formattedName: string;
|
|
1113
|
+
readonly firstName?: string;
|
|
1114
|
+
readonly lastName?: string;
|
|
1115
|
+
readonly middleName?: string;
|
|
1116
|
+
readonly prefix?: string;
|
|
1117
|
+
readonly suffix?: string;
|
|
1118
|
+
};
|
|
1119
|
+
readonly phones?: readonly {
|
|
1120
|
+
readonly phone: string;
|
|
1121
|
+
readonly type?: string;
|
|
1122
|
+
readonly waId?: string;
|
|
1123
|
+
}[];
|
|
1124
|
+
readonly emails?: readonly {
|
|
1125
|
+
readonly email: string;
|
|
1126
|
+
readonly type?: string;
|
|
1127
|
+
}[];
|
|
1128
|
+
readonly urls?: readonly {
|
|
1129
|
+
readonly url: string;
|
|
1130
|
+
readonly type?: string;
|
|
1131
|
+
}[];
|
|
1132
|
+
readonly org?: {
|
|
1133
|
+
readonly company?: string;
|
|
1134
|
+
readonly department?: string;
|
|
1135
|
+
readonly title?: string;
|
|
1136
|
+
};
|
|
1137
|
+
readonly addresses?: readonly {
|
|
1138
|
+
readonly street?: string;
|
|
1139
|
+
readonly city?: string;
|
|
1140
|
+
readonly state?: string;
|
|
1141
|
+
readonly zip?: string;
|
|
1142
|
+
readonly country?: string;
|
|
1143
|
+
readonly countryCode?: string;
|
|
1144
|
+
readonly type?: string;
|
|
1145
|
+
}[];
|
|
1146
|
+
readonly birthday?: string;
|
|
1147
|
+
}[];
|
|
1148
|
+
};
|
|
1156
1149
|
};
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1150
|
+
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1151
|
+
readonly idempotencyKey: string | null;
|
|
1152
|
+
readonly referenceId: string | null;
|
|
1153
|
+
readonly failureReason: string | null;
|
|
1154
|
+
readonly attempts: number;
|
|
1155
|
+
readonly createdBy: string | null;
|
|
1156
|
+
readonly actorEmail: string;
|
|
1157
|
+
readonly memberRole: string;
|
|
1158
|
+
readonly createdAt: string;
|
|
1159
|
+
readonly updatedAt: string;
|
|
1160
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1161
|
+
};
|
|
1162
1162
|
export declare const get: (input: {
|
|
1163
1163
|
readonly id: string;
|
|
1164
1164
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"scheduledMessagesGet">;
|