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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as EffectBrand from "effect/Brand";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
|
-
import { ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignAudience, CampaignContentInput, CampaignContentMetadata, CampaignConversationRef, CampaignFooterRequiredError, CampaignId, CampaignLatestRun, CampaignReplyMailbox, CampaignRunId, ConflictError, ContactId,
|
|
4
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, BrandAddressRequiredError, CampaignAudience, CampaignContentInput, CampaignContentMetadata, CampaignConversationRef, CampaignFooterRequiredError, CampaignId, CampaignLatestRun, CampaignReplyMailbox, CampaignRunId, ConflictError, ContactId, DeliveryUnavailableError, EmailAttachments, EmailCustomHeaders, EmailDomainId, EmailFooterOverride, EmailTrackingOverrideV1, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MalformedRequestError, MessageId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, RenderLocale, RenderTimeZone, ReplyToAddresses, ResourceNotFoundError, SenderNotReadyError, SendsSeries, ServiceUnavailableError, SmsContent, TemplateData, TemplateId, TemplateInputContractId, TemplatePublicationId, TemplateSourceError, TopicId, UnauthorizedError, ValidationError, WhatsAppTemplateDispatch, __SamvaRuntimeAbsoluteInstant } from "./shared";
|
|
5
5
|
export type CampaignFrom = {
|
|
6
6
|
readonly email: string;
|
|
7
7
|
readonly name?: string | null;
|
|
@@ -25,11 +25,11 @@ export declare const CampaignDefinitionSummary: Schema.Struct<{
|
|
|
25
25
|
readonly frozenAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
26
26
|
}>;
|
|
27
27
|
export type CampaignRunSkippedReason = {
|
|
28
|
-
readonly reason: "unsubscribed" | "blocked" | "suppressed" | "opted_out" | "unreachable" | "no_identity" | "inactive" | "run_cancelled" | "run_failed" | "missing_merge_field";
|
|
28
|
+
readonly reason: "unsubscribed" | "blocked" | "suppressed" | "opted_out" | "consent_required" | "unreachable" | "no_identity" | "inactive" | "run_cancelled" | "run_failed" | "missing_merge_field";
|
|
29
29
|
readonly count: number;
|
|
30
30
|
};
|
|
31
31
|
export declare const CampaignRunSkippedReason: Schema.Struct<{
|
|
32
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
32
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"consent_required">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
33
33
|
readonly count: Schema.Finite;
|
|
34
34
|
}>;
|
|
35
35
|
export type CampaignRecipientId = string & EffectBrand.Brand<"CampaignRecipientId">;
|
|
@@ -45,11 +45,11 @@ export declare const CampaignRunReportEngagement: Schema.Struct<{
|
|
|
45
45
|
readonly uniqueClicks: Schema.Finite;
|
|
46
46
|
}>;
|
|
47
47
|
export type CampaignRunReportSkippedReason = {
|
|
48
|
-
readonly reason: "unsubscribed" | "blocked" | "suppressed" | "opted_out" | "unreachable" | "no_identity" | "inactive" | "run_cancelled" | "run_failed" | "missing_merge_field";
|
|
48
|
+
readonly reason: "unsubscribed" | "blocked" | "suppressed" | "opted_out" | "consent_required" | "unreachable" | "no_identity" | "inactive" | "run_cancelled" | "run_failed" | "missing_merge_field";
|
|
49
49
|
readonly count: number;
|
|
50
50
|
};
|
|
51
51
|
export declare const CampaignRunReportSkippedReason: Schema.Struct<{
|
|
52
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
52
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"consent_required">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
53
53
|
readonly count: Schema.Finite;
|
|
54
54
|
}>;
|
|
55
55
|
export type CampaignPreview = {
|
|
@@ -86,7 +86,7 @@ export type CampaignRecipientPage = {
|
|
|
86
86
|
readonly status: "pending" | "dispatching" | "dispatched" | "failed" | "skipped";
|
|
87
87
|
readonly messageId: string | null;
|
|
88
88
|
readonly failureReason: string | null;
|
|
89
|
-
readonly skippedReason: "unsubscribed" | "blocked" | "suppressed" | "opted_out" | "unreachable" | "no_identity" | "inactive" | "run_cancelled" | "run_failed" | "missing_merge_field" | null;
|
|
89
|
+
readonly skippedReason: "unsubscribed" | "blocked" | "suppressed" | "opted_out" | "consent_required" | "unreachable" | "no_identity" | "inactive" | "run_cancelled" | "run_failed" | "missing_merge_field" | null;
|
|
90
90
|
readonly createdAt: string;
|
|
91
91
|
readonly updatedAt: string;
|
|
92
92
|
}>;
|
|
@@ -100,7 +100,7 @@ export declare const CampaignRecipientPage: Schema.Struct<{
|
|
|
100
100
|
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"dispatching">, Schema.Literal<"dispatched">, Schema.Literal<"failed">, Schema.Literal<"skipped">]>;
|
|
101
101
|
readonly messageId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
102
102
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
103
|
-
readonly skippedReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>, Schema.Null]>;
|
|
103
|
+
readonly skippedReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"consent_required">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>, Schema.Null]>;
|
|
104
104
|
readonly createdAt: Schema.String;
|
|
105
105
|
readonly updatedAt: Schema.String;
|
|
106
106
|
}>>;
|
|
@@ -144,7 +144,7 @@ export declare const CampaignRunReport: Schema.Struct<{
|
|
|
144
144
|
}>>;
|
|
145
145
|
readonly replyCount: Schema.Finite;
|
|
146
146
|
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
147
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
147
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"consent_required">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
148
148
|
readonly count: Schema.Finite;
|
|
149
149
|
}>>;
|
|
150
150
|
}>;
|
|
@@ -199,7 +199,24 @@ export declare const CampaignEmailContent: Schema.Struct<{
|
|
|
199
199
|
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
200
200
|
readonly preheader: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
201
201
|
}>;
|
|
202
|
-
export type
|
|
202
|
+
export type SmsCampaignContent = {
|
|
203
|
+
readonly channel: "sms";
|
|
204
|
+
readonly sms: SmsContent;
|
|
205
|
+
readonly conversationId?: CampaignConversationRef;
|
|
206
|
+
readonly metadata?: CampaignContentMetadata;
|
|
207
|
+
};
|
|
208
|
+
export declare const SmsCampaignContent: Schema.Struct<{
|
|
209
|
+
readonly channel: Schema.Literal<"sms">;
|
|
210
|
+
readonly sms: Schema.Struct<{
|
|
211
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
212
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
213
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
214
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
215
|
+
}>;
|
|
216
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
217
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
218
|
+
}>;
|
|
219
|
+
export type EmailCampaignContent = {
|
|
203
220
|
readonly channel: "email";
|
|
204
221
|
readonly email: CampaignEmailContent;
|
|
205
222
|
readonly issue?: {
|
|
@@ -211,7 +228,7 @@ export type CampaignContent = {
|
|
|
211
228
|
readonly conversationId?: CampaignConversationRef;
|
|
212
229
|
readonly metadata?: CampaignContentMetadata;
|
|
213
230
|
};
|
|
214
|
-
export declare const
|
|
231
|
+
export declare const EmailCampaignContent: Schema.Struct<{
|
|
215
232
|
readonly channel: Schema.Literal<"email">;
|
|
216
233
|
readonly email: Schema.Struct<{
|
|
217
234
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -256,10 +273,101 @@ export declare const CampaignContent: Schema.Struct<{
|
|
|
256
273
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
257
274
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
258
275
|
}>;
|
|
276
|
+
export type WhatsAppCampaignContent = {
|
|
277
|
+
readonly channel: "whatsapp";
|
|
278
|
+
readonly whatsapp: WhatsAppTemplateDispatch;
|
|
279
|
+
readonly conversationId?: CampaignConversationRef;
|
|
280
|
+
readonly metadata?: CampaignContentMetadata;
|
|
281
|
+
};
|
|
282
|
+
export declare const WhatsAppCampaignContent: Schema.Struct<{
|
|
283
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
284
|
+
readonly whatsapp: Schema.Struct<{
|
|
285
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
286
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
287
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
288
|
+
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">]>;
|
|
289
|
+
}>, Schema.Struct<{
|
|
290
|
+
readonly customField: Schema.String;
|
|
291
|
+
}>]>>>;
|
|
292
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
293
|
+
}>;
|
|
294
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
295
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
296
|
+
}>;
|
|
297
|
+
export type CampaignContent = EmailCampaignContent | SmsCampaignContent | WhatsAppCampaignContent;
|
|
298
|
+
export declare const CampaignContent: Schema.Union<readonly [Schema.Struct<{
|
|
299
|
+
readonly channel: Schema.Literal<"email">;
|
|
300
|
+
readonly email: Schema.Struct<{
|
|
301
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
302
|
+
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
303
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
304
|
+
readonly attachments: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
305
|
+
readonly filename: Schema.String;
|
|
306
|
+
readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
307
|
+
readonly mediaId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MediaId">, Schema.Null]>>;
|
|
308
|
+
readonly contentType: Schema.String;
|
|
309
|
+
readonly size: Schema.Finite;
|
|
310
|
+
}>>, Schema.Null]>>;
|
|
311
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
312
|
+
readonly inputContractId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateInputContractId">>;
|
|
313
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
314
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
315
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
316
|
+
readonly locale: Schema.optionalKey<Schema.String>;
|
|
317
|
+
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
318
|
+
readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
|
|
319
|
+
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
320
|
+
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
|
|
321
|
+
readonly tracking: Schema.optionalKey<Schema.Struct<{
|
|
322
|
+
readonly opens: Schema.optionalKey<Schema.Boolean>;
|
|
323
|
+
readonly clicks: Schema.optionalKey<Schema.Boolean>;
|
|
324
|
+
}>>;
|
|
325
|
+
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
326
|
+
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
327
|
+
}>>;
|
|
328
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
329
|
+
readonly preheader: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
330
|
+
}>;
|
|
331
|
+
readonly issue: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
332
|
+
readonly path: Schema.String;
|
|
333
|
+
readonly commit: Schema.String;
|
|
334
|
+
}>, Schema.Null]>>;
|
|
335
|
+
readonly from: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
336
|
+
readonly email: Schema.String;
|
|
337
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
338
|
+
}>, Schema.Null]>>;
|
|
339
|
+
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
340
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
341
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
342
|
+
}>, Schema.Struct<{
|
|
343
|
+
readonly channel: Schema.Literal<"sms">;
|
|
344
|
+
readonly sms: Schema.Struct<{
|
|
345
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
346
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
347
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
348
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
349
|
+
}>;
|
|
350
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
351
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
352
|
+
}>, Schema.Struct<{
|
|
353
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
354
|
+
readonly whatsapp: Schema.Struct<{
|
|
355
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
356
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
357
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
358
|
+
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">]>;
|
|
359
|
+
}>, Schema.Struct<{
|
|
360
|
+
readonly customField: Schema.String;
|
|
361
|
+
}>]>>>;
|
|
362
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
363
|
+
}>;
|
|
364
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
365
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
366
|
+
}>]>;
|
|
259
367
|
export type CampaignListItem = {
|
|
260
368
|
readonly id: CampaignId;
|
|
261
369
|
readonly name: string;
|
|
262
|
-
readonly channel: "email";
|
|
370
|
+
readonly channel: "sms" | "whatsapp" | "email";
|
|
263
371
|
readonly content: CampaignContent;
|
|
264
372
|
readonly audience: CampaignAudience;
|
|
265
373
|
readonly policy: CampaignPolicy;
|
|
@@ -275,8 +383,8 @@ export type CampaignListItem = {
|
|
|
275
383
|
export declare const CampaignListItem: Schema.Struct<{
|
|
276
384
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
277
385
|
readonly name: Schema.String;
|
|
278
|
-
readonly channel: Schema.Literal<"email">;
|
|
279
|
-
readonly content: Schema.Struct<{
|
|
386
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
387
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
280
388
|
readonly channel: Schema.Literal<"email">;
|
|
281
389
|
readonly email: Schema.Struct<{
|
|
282
390
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -320,7 +428,31 @@ export declare const CampaignListItem: Schema.Struct<{
|
|
|
320
428
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
321
429
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
322
430
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
323
|
-
}
|
|
431
|
+
}>, Schema.Struct<{
|
|
432
|
+
readonly channel: Schema.Literal<"sms">;
|
|
433
|
+
readonly sms: Schema.Struct<{
|
|
434
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
435
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
436
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
437
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
438
|
+
}>;
|
|
439
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
440
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
441
|
+
}>, Schema.Struct<{
|
|
442
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
443
|
+
readonly whatsapp: Schema.Struct<{
|
|
444
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
445
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
446
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
447
|
+
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">]>;
|
|
448
|
+
}>, Schema.Struct<{
|
|
449
|
+
readonly customField: Schema.String;
|
|
450
|
+
}>]>>>;
|
|
451
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
452
|
+
}>;
|
|
453
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
454
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
455
|
+
}>]>;
|
|
324
456
|
readonly audience: Schema.Struct<{
|
|
325
457
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
326
458
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -357,7 +489,7 @@ export declare const CampaignListItem: Schema.Struct<{
|
|
|
357
489
|
export type Campaign = {
|
|
358
490
|
readonly id: CampaignId;
|
|
359
491
|
readonly name: string;
|
|
360
|
-
readonly channel: "email";
|
|
492
|
+
readonly channel: "sms" | "whatsapp" | "email";
|
|
361
493
|
readonly content: CampaignContent;
|
|
362
494
|
readonly audience: CampaignAudience;
|
|
363
495
|
readonly policy: CampaignPolicy;
|
|
@@ -372,8 +504,8 @@ export type Campaign = {
|
|
|
372
504
|
export declare const Campaign: Schema.Struct<{
|
|
373
505
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
374
506
|
readonly name: Schema.String;
|
|
375
|
-
readonly channel: Schema.Literal<"email">;
|
|
376
|
-
readonly content: Schema.Struct<{
|
|
507
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
508
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
377
509
|
readonly channel: Schema.Literal<"email">;
|
|
378
510
|
readonly email: Schema.Struct<{
|
|
379
511
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -417,7 +549,31 @@ export declare const Campaign: Schema.Struct<{
|
|
|
417
549
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
418
550
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
419
551
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
420
|
-
}
|
|
552
|
+
}>, Schema.Struct<{
|
|
553
|
+
readonly channel: Schema.Literal<"sms">;
|
|
554
|
+
readonly sms: Schema.Struct<{
|
|
555
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
556
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
557
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
558
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
559
|
+
}>;
|
|
560
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
561
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
562
|
+
}>, Schema.Struct<{
|
|
563
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
564
|
+
readonly whatsapp: Schema.Struct<{
|
|
565
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
566
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
567
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
568
|
+
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">]>;
|
|
569
|
+
}>, Schema.Struct<{
|
|
570
|
+
readonly customField: Schema.String;
|
|
571
|
+
}>]>>>;
|
|
572
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
573
|
+
}>;
|
|
574
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
575
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
576
|
+
}>]>;
|
|
421
577
|
readonly audience: Schema.Struct<{
|
|
422
578
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
423
579
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -488,7 +644,7 @@ export declare const CampaignRun: Schema.Struct<{
|
|
|
488
644
|
readonly idempotencyKey: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
489
645
|
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
490
646
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
491
|
-
readonly contentSnapshot: Schema.Struct<{
|
|
647
|
+
readonly contentSnapshot: Schema.Union<readonly [Schema.Struct<{
|
|
492
648
|
readonly channel: Schema.Literal<"email">;
|
|
493
649
|
readonly email: Schema.Struct<{
|
|
494
650
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -532,7 +688,31 @@ export declare const CampaignRun: Schema.Struct<{
|
|
|
532
688
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
533
689
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
534
690
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
535
|
-
}
|
|
691
|
+
}>, Schema.Struct<{
|
|
692
|
+
readonly channel: Schema.Literal<"sms">;
|
|
693
|
+
readonly sms: Schema.Struct<{
|
|
694
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
695
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
696
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
697
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
698
|
+
}>;
|
|
699
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
700
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
701
|
+
}>, Schema.Struct<{
|
|
702
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
703
|
+
readonly whatsapp: Schema.Struct<{
|
|
704
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
705
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
706
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
707
|
+
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">]>;
|
|
708
|
+
}>, Schema.Struct<{
|
|
709
|
+
readonly customField: Schema.String;
|
|
710
|
+
}>]>>>;
|
|
711
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
712
|
+
}>;
|
|
713
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
714
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
715
|
+
}>]>;
|
|
536
716
|
readonly audienceSnapshot: Schema.Struct<{
|
|
537
717
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
538
718
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -549,7 +729,7 @@ export declare const CampaignRun: Schema.Struct<{
|
|
|
549
729
|
readonly skippedCount: Schema.Finite;
|
|
550
730
|
readonly pendingCount: Schema.Finite;
|
|
551
731
|
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
552
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
732
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"consent_required">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
553
733
|
readonly count: Schema.Finite;
|
|
554
734
|
}>>;
|
|
555
735
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -573,8 +753,8 @@ export declare const CampaignPage: Schema.Struct<{
|
|
|
573
753
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
574
754
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
575
755
|
readonly name: Schema.String;
|
|
576
|
-
readonly channel: Schema.Literal<"email">;
|
|
577
|
-
readonly content: Schema.Struct<{
|
|
756
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
757
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
578
758
|
readonly channel: Schema.Literal<"email">;
|
|
579
759
|
readonly email: Schema.Struct<{
|
|
580
760
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -618,7 +798,31 @@ export declare const CampaignPage: Schema.Struct<{
|
|
|
618
798
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
619
799
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
620
800
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
621
|
-
}
|
|
801
|
+
}>, Schema.Struct<{
|
|
802
|
+
readonly channel: Schema.Literal<"sms">;
|
|
803
|
+
readonly sms: Schema.Struct<{
|
|
804
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
805
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
806
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
807
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
808
|
+
}>;
|
|
809
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
810
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
811
|
+
}>, Schema.Struct<{
|
|
812
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
813
|
+
readonly whatsapp: Schema.Struct<{
|
|
814
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
815
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
816
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
817
|
+
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">]>;
|
|
818
|
+
}>, Schema.Struct<{
|
|
819
|
+
readonly customField: Schema.String;
|
|
820
|
+
}>]>>>;
|
|
821
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
822
|
+
}>;
|
|
823
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
824
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
825
|
+
}>]>;
|
|
622
826
|
readonly audience: Schema.Struct<{
|
|
623
827
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
624
828
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -667,7 +871,7 @@ export declare const CampaignRunPage: Schema.Struct<{
|
|
|
667
871
|
readonly idempotencyKey: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
668
872
|
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
669
873
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
670
|
-
readonly contentSnapshot: Schema.Struct<{
|
|
874
|
+
readonly contentSnapshot: Schema.Union<readonly [Schema.Struct<{
|
|
671
875
|
readonly channel: Schema.Literal<"email">;
|
|
672
876
|
readonly email: Schema.Struct<{
|
|
673
877
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -711,7 +915,31 @@ export declare const CampaignRunPage: Schema.Struct<{
|
|
|
711
915
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
712
916
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
713
917
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
714
|
-
}
|
|
918
|
+
}>, Schema.Struct<{
|
|
919
|
+
readonly channel: Schema.Literal<"sms">;
|
|
920
|
+
readonly sms: Schema.Struct<{
|
|
921
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
922
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
923
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
924
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
925
|
+
}>;
|
|
926
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
927
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
928
|
+
}>, Schema.Struct<{
|
|
929
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
930
|
+
readonly whatsapp: Schema.Struct<{
|
|
931
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
932
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
933
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
934
|
+
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">]>;
|
|
935
|
+
}>, Schema.Struct<{
|
|
936
|
+
readonly customField: Schema.String;
|
|
937
|
+
}>]>>>;
|
|
938
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
939
|
+
}>;
|
|
940
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
941
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
942
|
+
}>]>;
|
|
715
943
|
readonly audienceSnapshot: Schema.Struct<{
|
|
716
944
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
717
945
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -728,7 +956,7 @@ export declare const CampaignRunPage: Schema.Struct<{
|
|
|
728
956
|
readonly skippedCount: Schema.Finite;
|
|
729
957
|
readonly pendingCount: Schema.Finite;
|
|
730
958
|
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
731
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
959
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"consent_required">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
732
960
|
readonly count: Schema.Finite;
|
|
733
961
|
}>>;
|
|
734
962
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -760,7 +988,7 @@ export declare const CampaignRunAction: Schema.Struct<{
|
|
|
760
988
|
readonly idempotencyKey: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
761
989
|
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
762
990
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
763
|
-
readonly contentSnapshot: Schema.Struct<{
|
|
991
|
+
readonly contentSnapshot: Schema.Union<readonly [Schema.Struct<{
|
|
764
992
|
readonly channel: Schema.Literal<"email">;
|
|
765
993
|
readonly email: Schema.Struct<{
|
|
766
994
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -804,7 +1032,31 @@ export declare const CampaignRunAction: Schema.Struct<{
|
|
|
804
1032
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
805
1033
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
806
1034
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
807
|
-
}
|
|
1035
|
+
}>, Schema.Struct<{
|
|
1036
|
+
readonly channel: Schema.Literal<"sms">;
|
|
1037
|
+
readonly sms: Schema.Struct<{
|
|
1038
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1039
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
1040
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1041
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1042
|
+
}>;
|
|
1043
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1044
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1045
|
+
}>, Schema.Struct<{
|
|
1046
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
1047
|
+
readonly whatsapp: Schema.Struct<{
|
|
1048
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
1049
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
1050
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
1051
|
+
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">]>;
|
|
1052
|
+
}>, Schema.Struct<{
|
|
1053
|
+
readonly customField: Schema.String;
|
|
1054
|
+
}>]>>>;
|
|
1055
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
1056
|
+
}>;
|
|
1057
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1058
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1059
|
+
}>]>;
|
|
808
1060
|
readonly audienceSnapshot: Schema.Struct<{
|
|
809
1061
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
810
1062
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -821,7 +1073,7 @@ export declare const CampaignRunAction: Schema.Struct<{
|
|
|
821
1073
|
readonly skippedCount: Schema.Finite;
|
|
822
1074
|
readonly pendingCount: Schema.Finite;
|
|
823
1075
|
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
824
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
1076
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"consent_required">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
825
1077
|
readonly count: Schema.Finite;
|
|
826
1078
|
}>>;
|
|
827
1079
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -839,22 +1091,22 @@ export declare const CampaignRunAction: Schema.Struct<{
|
|
|
839
1091
|
}>;
|
|
840
1092
|
}>;
|
|
841
1093
|
export type CampaignsListQuery = {
|
|
842
|
-
readonly status?: "draft" | "archived"
|
|
1094
|
+
readonly status?: "draft" | "archived";
|
|
843
1095
|
readonly limit?: number | null;
|
|
844
|
-
readonly cursor?:
|
|
1096
|
+
readonly cursor?: string;
|
|
845
1097
|
};
|
|
846
1098
|
export declare const CampaignsListQuery: Schema.Struct<{
|
|
847
|
-
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
1099
|
+
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"archived">]>>;
|
|
848
1100
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
849
|
-
readonly cursor: Schema.optionalKey<Schema.
|
|
1101
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
850
1102
|
}>;
|
|
851
1103
|
export type CampaignsList200 = CampaignPage;
|
|
852
1104
|
export declare const CampaignsList200: Schema.Struct<{
|
|
853
1105
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
854
1106
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
855
1107
|
readonly name: Schema.String;
|
|
856
|
-
readonly channel: Schema.Literal<"email">;
|
|
857
|
-
readonly content: Schema.Struct<{
|
|
1108
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
1109
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
858
1110
|
readonly channel: Schema.Literal<"email">;
|
|
859
1111
|
readonly email: Schema.Struct<{
|
|
860
1112
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -898,7 +1150,31 @@ export declare const CampaignsList200: Schema.Struct<{
|
|
|
898
1150
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
899
1151
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
900
1152
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
901
|
-
}
|
|
1153
|
+
}>, Schema.Struct<{
|
|
1154
|
+
readonly channel: Schema.Literal<"sms">;
|
|
1155
|
+
readonly sms: Schema.Struct<{
|
|
1156
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1157
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
1158
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1159
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1160
|
+
}>;
|
|
1161
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1162
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1163
|
+
}>, Schema.Struct<{
|
|
1164
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
1165
|
+
readonly whatsapp: Schema.Struct<{
|
|
1166
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
1167
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
1168
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
1169
|
+
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">]>;
|
|
1170
|
+
}>, Schema.Struct<{
|
|
1171
|
+
readonly customField: Schema.String;
|
|
1172
|
+
}>]>>>;
|
|
1173
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
1174
|
+
}>;
|
|
1175
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1176
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1177
|
+
}>]>;
|
|
902
1178
|
readonly audience: Schema.Struct<{
|
|
903
1179
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
904
1180
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -934,6 +1210,8 @@ export declare const CampaignsList200: Schema.Struct<{
|
|
|
934
1210
|
}>>;
|
|
935
1211
|
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
936
1212
|
}>;
|
|
1213
|
+
export type CampaignsList400 = MalformedRequestError;
|
|
1214
|
+
export declare const CampaignsList400: typeof MalformedRequestError;
|
|
937
1215
|
export type CampaignsList401 = UnauthorizedError;
|
|
938
1216
|
export declare const CampaignsList401: typeof UnauthorizedError;
|
|
939
1217
|
export type CampaignsList403 = ForbiddenError;
|
|
@@ -946,15 +1224,15 @@ export type CampaignsList504 = GatewayTimeoutError;
|
|
|
946
1224
|
export declare const CampaignsList504: typeof GatewayTimeoutError;
|
|
947
1225
|
export type CampaignsCreateRequestJson = {
|
|
948
1226
|
readonly name: string;
|
|
949
|
-
readonly channel: "email";
|
|
1227
|
+
readonly channel: "sms" | "whatsapp" | "email";
|
|
950
1228
|
readonly content: CampaignContentInput;
|
|
951
1229
|
readonly audience: CampaignAudience;
|
|
952
1230
|
readonly policy?: CampaignPolicy | null;
|
|
953
1231
|
};
|
|
954
1232
|
export declare const CampaignsCreateRequestJson: Schema.Struct<{
|
|
955
1233
|
readonly name: Schema.String;
|
|
956
|
-
readonly channel: Schema.Literal<"email">;
|
|
957
|
-
readonly content: Schema.Struct<{
|
|
1234
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
1235
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
958
1236
|
readonly channel: Schema.Literal<"email">;
|
|
959
1237
|
readonly email: Schema.Struct<{
|
|
960
1238
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -998,7 +1276,31 @@ export declare const CampaignsCreateRequestJson: Schema.Struct<{
|
|
|
998
1276
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
999
1277
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1000
1278
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1001
|
-
}
|
|
1279
|
+
}>, Schema.Struct<{
|
|
1280
|
+
readonly channel: Schema.Literal<"sms">;
|
|
1281
|
+
readonly sms: Schema.Struct<{
|
|
1282
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1283
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
1284
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1285
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1286
|
+
}>;
|
|
1287
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1288
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1289
|
+
}>, Schema.Struct<{
|
|
1290
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
1291
|
+
readonly whatsapp: Schema.Struct<{
|
|
1292
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
1293
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
1294
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
1295
|
+
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">]>;
|
|
1296
|
+
}>, Schema.Struct<{
|
|
1297
|
+
readonly customField: Schema.String;
|
|
1298
|
+
}>]>>>;
|
|
1299
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
1300
|
+
}>;
|
|
1301
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1302
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1303
|
+
}>]>;
|
|
1002
1304
|
readonly audience: Schema.Struct<{
|
|
1003
1305
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
1004
1306
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -1014,8 +1316,8 @@ export type CampaignsCreate201 = Campaign;
|
|
|
1014
1316
|
export declare const CampaignsCreate201: Schema.Struct<{
|
|
1015
1317
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
1016
1318
|
readonly name: Schema.String;
|
|
1017
|
-
readonly channel: Schema.Literal<"email">;
|
|
1018
|
-
readonly content: Schema.Struct<{
|
|
1319
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
1320
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
1019
1321
|
readonly channel: Schema.Literal<"email">;
|
|
1020
1322
|
readonly email: Schema.Struct<{
|
|
1021
1323
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -1059,7 +1361,31 @@ export declare const CampaignsCreate201: Schema.Struct<{
|
|
|
1059
1361
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
1060
1362
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1061
1363
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1062
|
-
}
|
|
1364
|
+
}>, Schema.Struct<{
|
|
1365
|
+
readonly channel: Schema.Literal<"sms">;
|
|
1366
|
+
readonly sms: Schema.Struct<{
|
|
1367
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1368
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
1369
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1370
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1371
|
+
}>;
|
|
1372
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1373
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1374
|
+
}>, Schema.Struct<{
|
|
1375
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
1376
|
+
readonly whatsapp: Schema.Struct<{
|
|
1377
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
1378
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
1379
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
1380
|
+
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">]>;
|
|
1381
|
+
}>, Schema.Struct<{
|
|
1382
|
+
readonly customField: Schema.String;
|
|
1383
|
+
}>]>>>;
|
|
1384
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
1385
|
+
}>;
|
|
1386
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1387
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1388
|
+
}>]>;
|
|
1063
1389
|
readonly audience: Schema.Struct<{
|
|
1064
1390
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
1065
1391
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -1092,6 +1418,8 @@ export declare const CampaignsCreate201: Schema.Struct<{
|
|
|
1092
1418
|
readonly createdAt: Schema.String;
|
|
1093
1419
|
readonly updatedAt: Schema.String;
|
|
1094
1420
|
}>;
|
|
1421
|
+
export type CampaignsCreate400 = MalformedRequestError;
|
|
1422
|
+
export declare const CampaignsCreate400: typeof MalformedRequestError;
|
|
1095
1423
|
export type CampaignsCreate401 = UnauthorizedError;
|
|
1096
1424
|
export declare const CampaignsCreate401: typeof UnauthorizedError;
|
|
1097
1425
|
export type CampaignsCreate402 = PaymentRequiredError;
|
|
@@ -1116,8 +1444,8 @@ export type CampaignsGet200 = Campaign;
|
|
|
1116
1444
|
export declare const CampaignsGet200: Schema.Struct<{
|
|
1117
1445
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
1118
1446
|
readonly name: Schema.String;
|
|
1119
|
-
readonly channel: Schema.Literal<"email">;
|
|
1120
|
-
readonly content: Schema.Struct<{
|
|
1447
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
1448
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
1121
1449
|
readonly channel: Schema.Literal<"email">;
|
|
1122
1450
|
readonly email: Schema.Struct<{
|
|
1123
1451
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -1161,7 +1489,31 @@ export declare const CampaignsGet200: Schema.Struct<{
|
|
|
1161
1489
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
1162
1490
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1163
1491
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1164
|
-
}
|
|
1492
|
+
}>, Schema.Struct<{
|
|
1493
|
+
readonly channel: Schema.Literal<"sms">;
|
|
1494
|
+
readonly sms: Schema.Struct<{
|
|
1495
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1496
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
1497
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1498
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1499
|
+
}>;
|
|
1500
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1501
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1502
|
+
}>, Schema.Struct<{
|
|
1503
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
1504
|
+
readonly whatsapp: Schema.Struct<{
|
|
1505
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
1506
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
1507
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
1508
|
+
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">]>;
|
|
1509
|
+
}>, Schema.Struct<{
|
|
1510
|
+
readonly customField: Schema.String;
|
|
1511
|
+
}>]>>>;
|
|
1512
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
1513
|
+
}>;
|
|
1514
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1515
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1516
|
+
}>]>;
|
|
1165
1517
|
readonly audience: Schema.Struct<{
|
|
1166
1518
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
1167
1519
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -1194,6 +1546,8 @@ export declare const CampaignsGet200: Schema.Struct<{
|
|
|
1194
1546
|
readonly createdAt: Schema.String;
|
|
1195
1547
|
readonly updatedAt: Schema.String;
|
|
1196
1548
|
}>;
|
|
1549
|
+
export type CampaignsGet400 = MalformedRequestError;
|
|
1550
|
+
export declare const CampaignsGet400: typeof MalformedRequestError;
|
|
1197
1551
|
export type CampaignsGet401 = UnauthorizedError;
|
|
1198
1552
|
export declare const CampaignsGet401: typeof UnauthorizedError;
|
|
1199
1553
|
export type CampaignsGet403 = ForbiddenError;
|
|
@@ -1220,7 +1574,7 @@ export type CampaignsUpdateRequestJson = {
|
|
|
1220
1574
|
};
|
|
1221
1575
|
export declare const CampaignsUpdateRequestJson: Schema.Struct<{
|
|
1222
1576
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1223
|
-
readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1577
|
+
readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
1224
1578
|
readonly channel: Schema.Literal<"email">;
|
|
1225
1579
|
readonly email: Schema.Struct<{
|
|
1226
1580
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -1264,7 +1618,31 @@ export declare const CampaignsUpdateRequestJson: Schema.Struct<{
|
|
|
1264
1618
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
1265
1619
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1266
1620
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1267
|
-
}>, Schema.
|
|
1621
|
+
}>, Schema.Struct<{
|
|
1622
|
+
readonly channel: Schema.Literal<"sms">;
|
|
1623
|
+
readonly sms: Schema.Struct<{
|
|
1624
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1625
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
1626
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1627
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1628
|
+
}>;
|
|
1629
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1630
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1631
|
+
}>, Schema.Struct<{
|
|
1632
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
1633
|
+
readonly whatsapp: Schema.Struct<{
|
|
1634
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
1635
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
1636
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
1637
|
+
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">]>;
|
|
1638
|
+
}>, Schema.Struct<{
|
|
1639
|
+
readonly customField: Schema.String;
|
|
1640
|
+
}>]>>>;
|
|
1641
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
1642
|
+
}>;
|
|
1643
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1644
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1645
|
+
}>]>, Schema.Null]>>;
|
|
1268
1646
|
readonly audience: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1269
1647
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
1270
1648
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -1280,8 +1658,8 @@ export type CampaignsUpdate200 = Campaign;
|
|
|
1280
1658
|
export declare const CampaignsUpdate200: Schema.Struct<{
|
|
1281
1659
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
1282
1660
|
readonly name: Schema.String;
|
|
1283
|
-
readonly channel: Schema.Literal<"email">;
|
|
1284
|
-
readonly content: Schema.Struct<{
|
|
1661
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
1662
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
1285
1663
|
readonly channel: Schema.Literal<"email">;
|
|
1286
1664
|
readonly email: Schema.Struct<{
|
|
1287
1665
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -1325,7 +1703,31 @@ export declare const CampaignsUpdate200: Schema.Struct<{
|
|
|
1325
1703
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
1326
1704
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1327
1705
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1328
|
-
}
|
|
1706
|
+
}>, Schema.Struct<{
|
|
1707
|
+
readonly channel: Schema.Literal<"sms">;
|
|
1708
|
+
readonly sms: Schema.Struct<{
|
|
1709
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1710
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
1711
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1712
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1713
|
+
}>;
|
|
1714
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1715
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1716
|
+
}>, Schema.Struct<{
|
|
1717
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
1718
|
+
readonly whatsapp: Schema.Struct<{
|
|
1719
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
1720
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
1721
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
1722
|
+
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">]>;
|
|
1723
|
+
}>, Schema.Struct<{
|
|
1724
|
+
readonly customField: Schema.String;
|
|
1725
|
+
}>]>>>;
|
|
1726
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
1727
|
+
}>;
|
|
1728
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1729
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1730
|
+
}>]>;
|
|
1329
1731
|
readonly audience: Schema.Struct<{
|
|
1330
1732
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
1331
1733
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -1358,6 +1760,8 @@ export declare const CampaignsUpdate200: Schema.Struct<{
|
|
|
1358
1760
|
readonly createdAt: Schema.String;
|
|
1359
1761
|
readonly updatedAt: Schema.String;
|
|
1360
1762
|
}>;
|
|
1763
|
+
export type CampaignsUpdate400 = MalformedRequestError;
|
|
1764
|
+
export declare const CampaignsUpdate400: typeof MalformedRequestError;
|
|
1361
1765
|
export type CampaignsUpdate401 = UnauthorizedError;
|
|
1362
1766
|
export declare const CampaignsUpdate401: typeof UnauthorizedError;
|
|
1363
1767
|
export type CampaignsUpdate403 = FlagDisabledError | ForbiddenError;
|
|
@@ -1382,8 +1786,8 @@ export type CampaignsArchive200 = Campaign;
|
|
|
1382
1786
|
export declare const CampaignsArchive200: Schema.Struct<{
|
|
1383
1787
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
1384
1788
|
readonly name: Schema.String;
|
|
1385
|
-
readonly channel: Schema.Literal<"email">;
|
|
1386
|
-
readonly content: Schema.Struct<{
|
|
1789
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
1790
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
1387
1791
|
readonly channel: Schema.Literal<"email">;
|
|
1388
1792
|
readonly email: Schema.Struct<{
|
|
1389
1793
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -1427,7 +1831,31 @@ export declare const CampaignsArchive200: Schema.Struct<{
|
|
|
1427
1831
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
1428
1832
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1429
1833
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1430
|
-
}
|
|
1834
|
+
}>, Schema.Struct<{
|
|
1835
|
+
readonly channel: Schema.Literal<"sms">;
|
|
1836
|
+
readonly sms: Schema.Struct<{
|
|
1837
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1838
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
1839
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1840
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1841
|
+
}>;
|
|
1842
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1843
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1844
|
+
}>, Schema.Struct<{
|
|
1845
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
1846
|
+
readonly whatsapp: Schema.Struct<{
|
|
1847
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
1848
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
1849
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
1850
|
+
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">]>;
|
|
1851
|
+
}>, Schema.Struct<{
|
|
1852
|
+
readonly customField: Schema.String;
|
|
1853
|
+
}>]>>>;
|
|
1854
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
1855
|
+
}>;
|
|
1856
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1857
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1858
|
+
}>]>;
|
|
1431
1859
|
readonly audience: Schema.Struct<{
|
|
1432
1860
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
1433
1861
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -1460,6 +1888,8 @@ export declare const CampaignsArchive200: Schema.Struct<{
|
|
|
1460
1888
|
readonly createdAt: Schema.String;
|
|
1461
1889
|
readonly updatedAt: Schema.String;
|
|
1462
1890
|
}>;
|
|
1891
|
+
export type CampaignsArchive400 = MalformedRequestError;
|
|
1892
|
+
export declare const CampaignsArchive400: typeof MalformedRequestError;
|
|
1463
1893
|
export type CampaignsArchive401 = UnauthorizedError;
|
|
1464
1894
|
export declare const CampaignsArchive401: typeof UnauthorizedError;
|
|
1465
1895
|
export type CampaignsArchive403 = ForbiddenError;
|
|
@@ -1481,14 +1911,14 @@ export declare const CampaignsListRunsPathParams: Schema.Struct<{
|
|
|
1481
1911
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
1482
1912
|
}>;
|
|
1483
1913
|
export type CampaignsListRunsQuery = {
|
|
1484
|
-
readonly status?: "scheduled" | "resolving" | "dispatching" | "paused" | "completed" | "cancelled" | "failed"
|
|
1914
|
+
readonly status?: "scheduled" | "resolving" | "dispatching" | "paused" | "completed" | "cancelled" | "failed";
|
|
1485
1915
|
readonly limit?: number | null;
|
|
1486
|
-
readonly cursor?:
|
|
1916
|
+
readonly cursor?: string;
|
|
1487
1917
|
};
|
|
1488
1918
|
export declare const CampaignsListRunsQuery: Schema.Struct<{
|
|
1489
|
-
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
1919
|
+
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"scheduled">, Schema.Literal<"resolving">, Schema.Literal<"dispatching">, Schema.Literal<"paused">, Schema.Literal<"completed">, Schema.Literal<"cancelled">, Schema.Literal<"failed">]>>;
|
|
1490
1920
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
1491
|
-
readonly cursor: Schema.optionalKey<Schema.
|
|
1921
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
1492
1922
|
}>;
|
|
1493
1923
|
export type CampaignsListRuns200 = CampaignRunPage;
|
|
1494
1924
|
export declare const CampaignsListRuns200: Schema.Struct<{
|
|
@@ -1500,7 +1930,7 @@ export declare const CampaignsListRuns200: Schema.Struct<{
|
|
|
1500
1930
|
readonly idempotencyKey: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1501
1931
|
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1502
1932
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1503
|
-
readonly contentSnapshot: Schema.Struct<{
|
|
1933
|
+
readonly contentSnapshot: Schema.Union<readonly [Schema.Struct<{
|
|
1504
1934
|
readonly channel: Schema.Literal<"email">;
|
|
1505
1935
|
readonly email: Schema.Struct<{
|
|
1506
1936
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -1544,7 +1974,31 @@ export declare const CampaignsListRuns200: Schema.Struct<{
|
|
|
1544
1974
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
1545
1975
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1546
1976
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1547
|
-
}
|
|
1977
|
+
}>, Schema.Struct<{
|
|
1978
|
+
readonly channel: Schema.Literal<"sms">;
|
|
1979
|
+
readonly sms: Schema.Struct<{
|
|
1980
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1981
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
1982
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1983
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1984
|
+
}>;
|
|
1985
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1986
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1987
|
+
}>, Schema.Struct<{
|
|
1988
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
1989
|
+
readonly whatsapp: Schema.Struct<{
|
|
1990
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
1991
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
1992
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
1993
|
+
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">]>;
|
|
1994
|
+
}>, Schema.Struct<{
|
|
1995
|
+
readonly customField: Schema.String;
|
|
1996
|
+
}>]>>>;
|
|
1997
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
1998
|
+
}>;
|
|
1999
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2000
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2001
|
+
}>]>;
|
|
1548
2002
|
readonly audienceSnapshot: Schema.Struct<{
|
|
1549
2003
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
1550
2004
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -1561,7 +2015,7 @@ export declare const CampaignsListRuns200: Schema.Struct<{
|
|
|
1561
2015
|
readonly skippedCount: Schema.Finite;
|
|
1562
2016
|
readonly pendingCount: Schema.Finite;
|
|
1563
2017
|
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
1564
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
2018
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"consent_required">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
1565
2019
|
readonly count: Schema.Finite;
|
|
1566
2020
|
}>>;
|
|
1567
2021
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1579,6 +2033,8 @@ export declare const CampaignsListRuns200: Schema.Struct<{
|
|
|
1579
2033
|
}>>;
|
|
1580
2034
|
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1581
2035
|
}>;
|
|
2036
|
+
export type CampaignsListRuns400 = MalformedRequestError;
|
|
2037
|
+
export declare const CampaignsListRuns400: typeof MalformedRequestError;
|
|
1582
2038
|
export type CampaignsListRuns401 = UnauthorizedError;
|
|
1583
2039
|
export declare const CampaignsListRuns401: typeof UnauthorizedError;
|
|
1584
2040
|
export type CampaignsListRuns403 = ForbiddenError;
|
|
@@ -1598,10 +2054,10 @@ export declare const CampaignsScheduleRunPathParams: Schema.Struct<{
|
|
|
1598
2054
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
1599
2055
|
}>;
|
|
1600
2056
|
export type CampaignsScheduleRunHeaders = {
|
|
1601
|
-
readonly "idempotency-key"?: string
|
|
2057
|
+
readonly "idempotency-key"?: string;
|
|
1602
2058
|
};
|
|
1603
2059
|
export declare const CampaignsScheduleRunHeaders: Schema.Struct<{
|
|
1604
|
-
readonly "idempotency-key": Schema.optionalKey<Schema.
|
|
2060
|
+
readonly "idempotency-key": Schema.optionalKey<Schema.String>;
|
|
1605
2061
|
}>;
|
|
1606
2062
|
export type CampaignsScheduleRunRequestJson = {
|
|
1607
2063
|
readonly scheduledFor?: __SamvaRuntimeAbsoluteInstant | null;
|
|
@@ -1618,7 +2074,7 @@ export declare const CampaignsScheduleRun201: Schema.Struct<{
|
|
|
1618
2074
|
readonly idempotencyKey: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1619
2075
|
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1620
2076
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1621
|
-
readonly contentSnapshot: Schema.Struct<{
|
|
2077
|
+
readonly contentSnapshot: Schema.Union<readonly [Schema.Struct<{
|
|
1622
2078
|
readonly channel: Schema.Literal<"email">;
|
|
1623
2079
|
readonly email: Schema.Struct<{
|
|
1624
2080
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -1662,7 +2118,31 @@ export declare const CampaignsScheduleRun201: Schema.Struct<{
|
|
|
1662
2118
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
1663
2119
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1664
2120
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1665
|
-
}
|
|
2121
|
+
}>, Schema.Struct<{
|
|
2122
|
+
readonly channel: Schema.Literal<"sms">;
|
|
2123
|
+
readonly sms: Schema.Struct<{
|
|
2124
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2125
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
2126
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2127
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2128
|
+
}>;
|
|
2129
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2130
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2131
|
+
}>, Schema.Struct<{
|
|
2132
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
2133
|
+
readonly whatsapp: Schema.Struct<{
|
|
2134
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
2135
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
2136
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
2137
|
+
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">]>;
|
|
2138
|
+
}>, Schema.Struct<{
|
|
2139
|
+
readonly customField: Schema.String;
|
|
2140
|
+
}>]>>>;
|
|
2141
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
2142
|
+
}>;
|
|
2143
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2144
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2145
|
+
}>]>;
|
|
1666
2146
|
readonly audienceSnapshot: Schema.Struct<{
|
|
1667
2147
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
1668
2148
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -1679,7 +2159,7 @@ export declare const CampaignsScheduleRun201: Schema.Struct<{
|
|
|
1679
2159
|
readonly skippedCount: Schema.Finite;
|
|
1680
2160
|
readonly pendingCount: Schema.Finite;
|
|
1681
2161
|
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
1682
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
2162
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"consent_required">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
1683
2163
|
readonly count: Schema.Finite;
|
|
1684
2164
|
}>>;
|
|
1685
2165
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1695,6 +2175,8 @@ export declare const CampaignsScheduleRun201: Schema.Struct<{
|
|
|
1695
2175
|
readonly createdAt: Schema.String;
|
|
1696
2176
|
readonly updatedAt: Schema.String;
|
|
1697
2177
|
}>;
|
|
2178
|
+
export type CampaignsScheduleRun400 = MalformedRequestError;
|
|
2179
|
+
export declare const CampaignsScheduleRun400: typeof MalformedRequestError;
|
|
1698
2180
|
export type CampaignsScheduleRun401 = UnauthorizedError;
|
|
1699
2181
|
export declare const CampaignsScheduleRun401: typeof UnauthorizedError;
|
|
1700
2182
|
export type CampaignsScheduleRun402 = PaymentRequiredError;
|
|
@@ -1732,7 +2214,7 @@ export declare const CampaignsGetRun200: Schema.Struct<{
|
|
|
1732
2214
|
readonly idempotencyKey: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1733
2215
|
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1734
2216
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1735
|
-
readonly contentSnapshot: Schema.Struct<{
|
|
2217
|
+
readonly contentSnapshot: Schema.Union<readonly [Schema.Struct<{
|
|
1736
2218
|
readonly channel: Schema.Literal<"email">;
|
|
1737
2219
|
readonly email: Schema.Struct<{
|
|
1738
2220
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -1776,7 +2258,31 @@ export declare const CampaignsGetRun200: Schema.Struct<{
|
|
|
1776
2258
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
1777
2259
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1778
2260
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1779
|
-
}
|
|
2261
|
+
}>, Schema.Struct<{
|
|
2262
|
+
readonly channel: Schema.Literal<"sms">;
|
|
2263
|
+
readonly sms: Schema.Struct<{
|
|
2264
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2265
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
2266
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2267
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2268
|
+
}>;
|
|
2269
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2270
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2271
|
+
}>, Schema.Struct<{
|
|
2272
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
2273
|
+
readonly whatsapp: Schema.Struct<{
|
|
2274
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
2275
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
2276
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
2277
|
+
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">]>;
|
|
2278
|
+
}>, Schema.Struct<{
|
|
2279
|
+
readonly customField: Schema.String;
|
|
2280
|
+
}>]>>>;
|
|
2281
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
2282
|
+
}>;
|
|
2283
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2284
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2285
|
+
}>]>;
|
|
1780
2286
|
readonly audienceSnapshot: Schema.Struct<{
|
|
1781
2287
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
1782
2288
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -1793,7 +2299,7 @@ export declare const CampaignsGetRun200: Schema.Struct<{
|
|
|
1793
2299
|
readonly skippedCount: Schema.Finite;
|
|
1794
2300
|
readonly pendingCount: Schema.Finite;
|
|
1795
2301
|
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
1796
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
2302
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"consent_required">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
1797
2303
|
readonly count: Schema.Finite;
|
|
1798
2304
|
}>>;
|
|
1799
2305
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1809,6 +2315,8 @@ export declare const CampaignsGetRun200: Schema.Struct<{
|
|
|
1809
2315
|
readonly createdAt: Schema.String;
|
|
1810
2316
|
readonly updatedAt: Schema.String;
|
|
1811
2317
|
}>;
|
|
2318
|
+
export type CampaignsGetRun400 = MalformedRequestError;
|
|
2319
|
+
export declare const CampaignsGetRun400: typeof MalformedRequestError;
|
|
1812
2320
|
export type CampaignsGetRun401 = UnauthorizedError;
|
|
1813
2321
|
export declare const CampaignsGetRun401: typeof UnauthorizedError;
|
|
1814
2322
|
export type CampaignsGetRun403 = ForbiddenError;
|
|
@@ -1840,7 +2348,7 @@ export declare const CampaignsCancelRun200: Schema.Struct<{
|
|
|
1840
2348
|
readonly idempotencyKey: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1841
2349
|
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1842
2350
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1843
|
-
readonly contentSnapshot: Schema.Struct<{
|
|
2351
|
+
readonly contentSnapshot: Schema.Union<readonly [Schema.Struct<{
|
|
1844
2352
|
readonly channel: Schema.Literal<"email">;
|
|
1845
2353
|
readonly email: Schema.Struct<{
|
|
1846
2354
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -1884,7 +2392,31 @@ export declare const CampaignsCancelRun200: Schema.Struct<{
|
|
|
1884
2392
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
1885
2393
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1886
2394
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
1887
|
-
}
|
|
2395
|
+
}>, Schema.Struct<{
|
|
2396
|
+
readonly channel: Schema.Literal<"sms">;
|
|
2397
|
+
readonly sms: Schema.Struct<{
|
|
2398
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2399
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
2400
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2401
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2402
|
+
}>;
|
|
2403
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2404
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2405
|
+
}>, Schema.Struct<{
|
|
2406
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
2407
|
+
readonly whatsapp: Schema.Struct<{
|
|
2408
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
2409
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
2410
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
2411
|
+
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">]>;
|
|
2412
|
+
}>, Schema.Struct<{
|
|
2413
|
+
readonly customField: Schema.String;
|
|
2414
|
+
}>]>>>;
|
|
2415
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
2416
|
+
}>;
|
|
2417
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2418
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2419
|
+
}>]>;
|
|
1888
2420
|
readonly audienceSnapshot: Schema.Struct<{
|
|
1889
2421
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
1890
2422
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -1901,7 +2433,7 @@ export declare const CampaignsCancelRun200: Schema.Struct<{
|
|
|
1901
2433
|
readonly skippedCount: Schema.Finite;
|
|
1902
2434
|
readonly pendingCount: Schema.Finite;
|
|
1903
2435
|
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
1904
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
2436
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"consent_required">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
1905
2437
|
readonly count: Schema.Finite;
|
|
1906
2438
|
}>>;
|
|
1907
2439
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1918,6 +2450,8 @@ export declare const CampaignsCancelRun200: Schema.Struct<{
|
|
|
1918
2450
|
readonly updatedAt: Schema.String;
|
|
1919
2451
|
}>;
|
|
1920
2452
|
}>;
|
|
2453
|
+
export type CampaignsCancelRun400 = MalformedRequestError;
|
|
2454
|
+
export declare const CampaignsCancelRun400: typeof MalformedRequestError;
|
|
1921
2455
|
export type CampaignsCancelRun401 = UnauthorizedError;
|
|
1922
2456
|
export declare const CampaignsCancelRun401: typeof UnauthorizedError;
|
|
1923
2457
|
export type CampaignsCancelRun403 = ForbiddenError;
|
|
@@ -1953,7 +2487,7 @@ export declare const CampaignsPauseRun200: Schema.Struct<{
|
|
|
1953
2487
|
readonly idempotencyKey: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1954
2488
|
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1955
2489
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1956
|
-
readonly contentSnapshot: Schema.Struct<{
|
|
2490
|
+
readonly contentSnapshot: Schema.Union<readonly [Schema.Struct<{
|
|
1957
2491
|
readonly channel: Schema.Literal<"email">;
|
|
1958
2492
|
readonly email: Schema.Struct<{
|
|
1959
2493
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -1997,7 +2531,31 @@ export declare const CampaignsPauseRun200: Schema.Struct<{
|
|
|
1997
2531
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
1998
2532
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1999
2533
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2000
|
-
}
|
|
2534
|
+
}>, Schema.Struct<{
|
|
2535
|
+
readonly channel: Schema.Literal<"sms">;
|
|
2536
|
+
readonly sms: Schema.Struct<{
|
|
2537
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2538
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
2539
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2540
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2541
|
+
}>;
|
|
2542
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2543
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2544
|
+
}>, Schema.Struct<{
|
|
2545
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
2546
|
+
readonly whatsapp: Schema.Struct<{
|
|
2547
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
2548
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
2549
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
2550
|
+
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">]>;
|
|
2551
|
+
}>, Schema.Struct<{
|
|
2552
|
+
readonly customField: Schema.String;
|
|
2553
|
+
}>]>>>;
|
|
2554
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
2555
|
+
}>;
|
|
2556
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2557
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2558
|
+
}>]>;
|
|
2001
2559
|
readonly audienceSnapshot: Schema.Struct<{
|
|
2002
2560
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
2003
2561
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -2014,7 +2572,7 @@ export declare const CampaignsPauseRun200: Schema.Struct<{
|
|
|
2014
2572
|
readonly skippedCount: Schema.Finite;
|
|
2015
2573
|
readonly pendingCount: Schema.Finite;
|
|
2016
2574
|
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
2017
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
2575
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"consent_required">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
2018
2576
|
readonly count: Schema.Finite;
|
|
2019
2577
|
}>>;
|
|
2020
2578
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -2031,6 +2589,8 @@ export declare const CampaignsPauseRun200: Schema.Struct<{
|
|
|
2031
2589
|
readonly updatedAt: Schema.String;
|
|
2032
2590
|
}>;
|
|
2033
2591
|
}>;
|
|
2592
|
+
export type CampaignsPauseRun400 = MalformedRequestError;
|
|
2593
|
+
export declare const CampaignsPauseRun400: typeof MalformedRequestError;
|
|
2034
2594
|
export type CampaignsPauseRun401 = UnauthorizedError;
|
|
2035
2595
|
export declare const CampaignsPauseRun401: typeof UnauthorizedError;
|
|
2036
2596
|
export type CampaignsPauseRun403 = ForbiddenError;
|
|
@@ -2056,14 +2616,14 @@ export declare const CampaignsListRecipientsPathParams: Schema.Struct<{
|
|
|
2056
2616
|
readonly runId: Schema.brand<Schema.String, "CampaignRunId">;
|
|
2057
2617
|
}>;
|
|
2058
2618
|
export type CampaignsListRecipientsQuery = {
|
|
2059
|
-
readonly status?: "pending" | "dispatching" | "dispatched" | "failed" | "skipped"
|
|
2619
|
+
readonly status?: "pending" | "dispatching" | "dispatched" | "failed" | "skipped";
|
|
2060
2620
|
readonly limit?: number | null;
|
|
2061
|
-
readonly cursor?:
|
|
2621
|
+
readonly cursor?: string;
|
|
2062
2622
|
};
|
|
2063
2623
|
export declare const CampaignsListRecipientsQuery: Schema.Struct<{
|
|
2064
|
-
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
2624
|
+
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"dispatching">, Schema.Literal<"dispatched">, Schema.Literal<"failed">, Schema.Literal<"skipped">]>>;
|
|
2065
2625
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
2066
|
-
readonly cursor: Schema.optionalKey<Schema.
|
|
2626
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
2067
2627
|
}>;
|
|
2068
2628
|
export type CampaignsListRecipients200 = CampaignRecipientPage;
|
|
2069
2629
|
export declare const CampaignsListRecipients200: Schema.Struct<{
|
|
@@ -2074,12 +2634,14 @@ export declare const CampaignsListRecipients200: Schema.Struct<{
|
|
|
2074
2634
|
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"dispatching">, Schema.Literal<"dispatched">, Schema.Literal<"failed">, Schema.Literal<"skipped">]>;
|
|
2075
2635
|
readonly messageId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2076
2636
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2077
|
-
readonly skippedReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>, Schema.Null]>;
|
|
2637
|
+
readonly skippedReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"consent_required">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>, Schema.Null]>;
|
|
2078
2638
|
readonly createdAt: Schema.String;
|
|
2079
2639
|
readonly updatedAt: Schema.String;
|
|
2080
2640
|
}>>;
|
|
2081
2641
|
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2082
2642
|
}>;
|
|
2643
|
+
export type CampaignsListRecipients400 = MalformedRequestError;
|
|
2644
|
+
export declare const CampaignsListRecipients400: typeof MalformedRequestError;
|
|
2083
2645
|
export type CampaignsListRecipients401 = UnauthorizedError;
|
|
2084
2646
|
export declare const CampaignsListRecipients401: typeof UnauthorizedError;
|
|
2085
2647
|
export type CampaignsListRecipients403 = ForbiddenError;
|
|
@@ -2123,10 +2685,12 @@ export declare const CampaignsGetRunReport200: Schema.Struct<{
|
|
|
2123
2685
|
}>>;
|
|
2124
2686
|
readonly replyCount: Schema.Finite;
|
|
2125
2687
|
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
2126
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
2688
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"consent_required">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
2127
2689
|
readonly count: Schema.Finite;
|
|
2128
2690
|
}>>;
|
|
2129
2691
|
}>;
|
|
2692
|
+
export type CampaignsGetRunReport400 = MalformedRequestError;
|
|
2693
|
+
export declare const CampaignsGetRunReport400: typeof MalformedRequestError;
|
|
2130
2694
|
export type CampaignsGetRunReport401 = UnauthorizedError;
|
|
2131
2695
|
export declare const CampaignsGetRunReport401: typeof UnauthorizedError;
|
|
2132
2696
|
export type CampaignsGetRunReport403 = ForbiddenError;
|
|
@@ -2158,7 +2722,7 @@ export declare const CampaignsResumeRun200: Schema.Struct<{
|
|
|
2158
2722
|
readonly idempotencyKey: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2159
2723
|
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2160
2724
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2161
|
-
readonly contentSnapshot: Schema.Struct<{
|
|
2725
|
+
readonly contentSnapshot: Schema.Union<readonly [Schema.Struct<{
|
|
2162
2726
|
readonly channel: Schema.Literal<"email">;
|
|
2163
2727
|
readonly email: Schema.Struct<{
|
|
2164
2728
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -2202,7 +2766,31 @@ export declare const CampaignsResumeRun200: Schema.Struct<{
|
|
|
2202
2766
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
2203
2767
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2204
2768
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2205
|
-
}
|
|
2769
|
+
}>, Schema.Struct<{
|
|
2770
|
+
readonly channel: Schema.Literal<"sms">;
|
|
2771
|
+
readonly sms: Schema.Struct<{
|
|
2772
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2773
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
2774
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2775
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2776
|
+
}>;
|
|
2777
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2778
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2779
|
+
}>, Schema.Struct<{
|
|
2780
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
2781
|
+
readonly whatsapp: Schema.Struct<{
|
|
2782
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
2783
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
2784
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
2785
|
+
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">]>;
|
|
2786
|
+
}>, Schema.Struct<{
|
|
2787
|
+
readonly customField: Schema.String;
|
|
2788
|
+
}>]>>>;
|
|
2789
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
2790
|
+
}>;
|
|
2791
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2792
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2793
|
+
}>]>;
|
|
2206
2794
|
readonly audienceSnapshot: Schema.Struct<{
|
|
2207
2795
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
2208
2796
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -2219,7 +2807,7 @@ export declare const CampaignsResumeRun200: Schema.Struct<{
|
|
|
2219
2807
|
readonly skippedCount: Schema.Finite;
|
|
2220
2808
|
readonly pendingCount: Schema.Finite;
|
|
2221
2809
|
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
2222
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
2810
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"consent_required">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
2223
2811
|
readonly count: Schema.Finite;
|
|
2224
2812
|
}>>;
|
|
2225
2813
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -2236,6 +2824,8 @@ export declare const CampaignsResumeRun200: Schema.Struct<{
|
|
|
2236
2824
|
readonly updatedAt: Schema.String;
|
|
2237
2825
|
}>;
|
|
2238
2826
|
}>;
|
|
2827
|
+
export type CampaignsResumeRun400 = MalformedRequestError;
|
|
2828
|
+
export declare const CampaignsResumeRun400: typeof MalformedRequestError;
|
|
2239
2829
|
export type CampaignsResumeRun401 = UnauthorizedError;
|
|
2240
2830
|
export declare const CampaignsResumeRun401: typeof UnauthorizedError;
|
|
2241
2831
|
export type CampaignsResumeRun402 = PaymentRequiredError;
|
|
@@ -2260,7 +2850,7 @@ export type CampaignsPreviewRequestJson = {
|
|
|
2260
2850
|
readonly contactId?: ContactId | null;
|
|
2261
2851
|
};
|
|
2262
2852
|
export declare const CampaignsPreviewRequestJson: Schema.Struct<{
|
|
2263
|
-
readonly content: Schema.Struct<{
|
|
2853
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
2264
2854
|
readonly channel: Schema.Literal<"email">;
|
|
2265
2855
|
readonly email: Schema.Struct<{
|
|
2266
2856
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -2304,7 +2894,31 @@ export declare const CampaignsPreviewRequestJson: Schema.Struct<{
|
|
|
2304
2894
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
2305
2895
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2306
2896
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2307
|
-
}
|
|
2897
|
+
}>, Schema.Struct<{
|
|
2898
|
+
readonly channel: Schema.Literal<"sms">;
|
|
2899
|
+
readonly sms: Schema.Struct<{
|
|
2900
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2901
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
2902
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2903
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2904
|
+
}>;
|
|
2905
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2906
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2907
|
+
}>, Schema.Struct<{
|
|
2908
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
2909
|
+
readonly whatsapp: Schema.Struct<{
|
|
2910
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
2911
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
2912
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
2913
|
+
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">]>;
|
|
2914
|
+
}>, Schema.Struct<{
|
|
2915
|
+
readonly customField: Schema.String;
|
|
2916
|
+
}>]>>>;
|
|
2917
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
2918
|
+
}>;
|
|
2919
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2920
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2921
|
+
}>]>;
|
|
2308
2922
|
readonly audience: Schema.Struct<{
|
|
2309
2923
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
2310
2924
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -2321,6 +2935,8 @@ export declare const CampaignsPreview200: Schema.Struct<{
|
|
|
2321
2935
|
readonly html: Schema.String;
|
|
2322
2936
|
readonly text: Schema.String;
|
|
2323
2937
|
}>;
|
|
2938
|
+
export type CampaignsPreview400 = MalformedRequestError;
|
|
2939
|
+
export declare const CampaignsPreview400: typeof MalformedRequestError;
|
|
2324
2940
|
export type CampaignsPreview401 = UnauthorizedError;
|
|
2325
2941
|
export declare const CampaignsPreview401: typeof UnauthorizedError;
|
|
2326
2942
|
export type CampaignsPreview403 = FlagDisabledError | ForbiddenError;
|
|
@@ -2343,7 +2959,7 @@ export type CampaignsSendTestRequestJson = {
|
|
|
2343
2959
|
readonly contactId?: ContactId | null;
|
|
2344
2960
|
};
|
|
2345
2961
|
export declare const CampaignsSendTestRequestJson: Schema.Struct<{
|
|
2346
|
-
readonly content: Schema.Struct<{
|
|
2962
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
2347
2963
|
readonly channel: Schema.Literal<"email">;
|
|
2348
2964
|
readonly email: Schema.Struct<{
|
|
2349
2965
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -2387,7 +3003,31 @@ export declare const CampaignsSendTestRequestJson: Schema.Struct<{
|
|
|
2387
3003
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
2388
3004
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2389
3005
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2390
|
-
}
|
|
3006
|
+
}>, Schema.Struct<{
|
|
3007
|
+
readonly channel: Schema.Literal<"sms">;
|
|
3008
|
+
readonly sms: Schema.Struct<{
|
|
3009
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3010
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
3011
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3012
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3013
|
+
}>;
|
|
3014
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3015
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3016
|
+
}>, Schema.Struct<{
|
|
3017
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
3018
|
+
readonly whatsapp: Schema.Struct<{
|
|
3019
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
3020
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
3021
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
3022
|
+
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">]>;
|
|
3023
|
+
}>, Schema.Struct<{
|
|
3024
|
+
readonly customField: Schema.String;
|
|
3025
|
+
}>]>>>;
|
|
3026
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
3027
|
+
}>;
|
|
3028
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3029
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3030
|
+
}>]>;
|
|
2391
3031
|
readonly audience: Schema.Struct<{
|
|
2392
3032
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
2393
3033
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -2401,6 +3041,8 @@ export type CampaignsSendTest200 = CampaignTestSend;
|
|
|
2401
3041
|
export declare const CampaignsSendTest200: Schema.Struct<{
|
|
2402
3042
|
readonly id: Schema.brand<Schema.String, "MessageId">;
|
|
2403
3043
|
}>;
|
|
3044
|
+
export type CampaignsSendTest400 = MalformedRequestError;
|
|
3045
|
+
export declare const CampaignsSendTest400: typeof MalformedRequestError;
|
|
2404
3046
|
export type CampaignsSendTest401 = UnauthorizedError;
|
|
2405
3047
|
export declare const CampaignsSendTest401: typeof UnauthorizedError;
|
|
2406
3048
|
export type CampaignsSendTest402 = PaymentRequiredError;
|
|
@@ -2428,8 +3070,8 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2428
3070
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2429
3071
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
2430
3072
|
readonly name: Schema.String;
|
|
2431
|
-
readonly channel: Schema.Literal<"email">;
|
|
2432
|
-
readonly content: Schema.Struct<{
|
|
3073
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
3074
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
2433
3075
|
readonly channel: Schema.Literal<"email">;
|
|
2434
3076
|
readonly email: Schema.Struct<{
|
|
2435
3077
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -2473,7 +3115,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2473
3115
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
2474
3116
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2475
3117
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2476
|
-
}
|
|
3118
|
+
}>, Schema.Struct<{
|
|
3119
|
+
readonly channel: Schema.Literal<"sms">;
|
|
3120
|
+
readonly sms: Schema.Struct<{
|
|
3121
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3122
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
3123
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3124
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3125
|
+
}>;
|
|
3126
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3127
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3128
|
+
}>, Schema.Struct<{
|
|
3129
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
3130
|
+
readonly whatsapp: Schema.Struct<{
|
|
3131
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
3132
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
3133
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
3134
|
+
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">]>;
|
|
3135
|
+
}>, Schema.Struct<{
|
|
3136
|
+
readonly customField: Schema.String;
|
|
3137
|
+
}>]>>>;
|
|
3138
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
3139
|
+
}>;
|
|
3140
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3141
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3142
|
+
}>]>;
|
|
2477
3143
|
readonly audience: Schema.Struct<{
|
|
2478
3144
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
2479
3145
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -2553,6 +3219,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2553
3219
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
2554
3220
|
readonly message: Schema.String;
|
|
2555
3221
|
readonly retryAfterSeconds: Schema.Finite;
|
|
3222
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
3223
|
+
readonly _tag: "MalformedRequestError";
|
|
3224
|
+
readonly message: string;
|
|
3225
|
+
readonly fields: {
|
|
3226
|
+
readonly [x: string]: readonly string[];
|
|
3227
|
+
};
|
|
3228
|
+
}, readonly [Schema.Struct<{
|
|
3229
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3230
|
+
readonly message: Schema.String;
|
|
3231
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3232
|
+
}>], {
|
|
3233
|
+
readonly _tag: "MalformedRequestError";
|
|
3234
|
+
readonly message: string;
|
|
3235
|
+
readonly fields: {
|
|
3236
|
+
readonly [x: string]: readonly string[];
|
|
3237
|
+
};
|
|
3238
|
+
}>, Schema.Struct<{
|
|
3239
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3240
|
+
readonly message: Schema.String;
|
|
3241
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
2556
3242
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
2557
3243
|
readonly _tag: "ResourceNotFoundError";
|
|
2558
3244
|
readonly resource: string;
|
|
@@ -2618,7 +3304,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2618
3304
|
readonly idempotencyKey: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2619
3305
|
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2620
3306
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2621
|
-
readonly contentSnapshot: Schema.Struct<{
|
|
3307
|
+
readonly contentSnapshot: Schema.Union<readonly [Schema.Struct<{
|
|
2622
3308
|
readonly channel: Schema.Literal<"email">;
|
|
2623
3309
|
readonly email: Schema.Struct<{
|
|
2624
3310
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -2662,7 +3348,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2662
3348
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
2663
3349
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2664
3350
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2665
|
-
}
|
|
3351
|
+
}>, Schema.Struct<{
|
|
3352
|
+
readonly channel: Schema.Literal<"sms">;
|
|
3353
|
+
readonly sms: Schema.Struct<{
|
|
3354
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3355
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
3356
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3357
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3358
|
+
}>;
|
|
3359
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3360
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3361
|
+
}>, Schema.Struct<{
|
|
3362
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
3363
|
+
readonly whatsapp: Schema.Struct<{
|
|
3364
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
3365
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
3366
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
3367
|
+
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">]>;
|
|
3368
|
+
}>, Schema.Struct<{
|
|
3369
|
+
readonly customField: Schema.String;
|
|
3370
|
+
}>]>>>;
|
|
3371
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
3372
|
+
}>;
|
|
3373
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3374
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3375
|
+
}>]>;
|
|
2666
3376
|
readonly audienceSnapshot: Schema.Struct<{
|
|
2667
3377
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
2668
3378
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -2679,7 +3389,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2679
3389
|
readonly skippedCount: Schema.Finite;
|
|
2680
3390
|
readonly pendingCount: Schema.Finite;
|
|
2681
3391
|
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
2682
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
3392
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"consent_required">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
2683
3393
|
readonly count: Schema.Finite;
|
|
2684
3394
|
}>>;
|
|
2685
3395
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -2755,6 +3465,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2755
3465
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
2756
3466
|
readonly message: Schema.String;
|
|
2757
3467
|
readonly retryAfterSeconds: Schema.Finite;
|
|
3468
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
3469
|
+
readonly _tag: "MalformedRequestError";
|
|
3470
|
+
readonly message: string;
|
|
3471
|
+
readonly fields: {
|
|
3472
|
+
readonly [x: string]: readonly string[];
|
|
3473
|
+
};
|
|
3474
|
+
}, readonly [Schema.Struct<{
|
|
3475
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3476
|
+
readonly message: Schema.String;
|
|
3477
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3478
|
+
}>], {
|
|
3479
|
+
readonly _tag: "MalformedRequestError";
|
|
3480
|
+
readonly message: string;
|
|
3481
|
+
readonly fields: {
|
|
3482
|
+
readonly [x: string]: readonly string[];
|
|
3483
|
+
};
|
|
3484
|
+
}>, Schema.Struct<{
|
|
3485
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3486
|
+
readonly message: Schema.String;
|
|
3487
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
2758
3488
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
2759
3489
|
readonly _tag: "ResourceNotFoundError";
|
|
2760
3490
|
readonly resource: string;
|
|
@@ -2809,8 +3539,8 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2809
3539
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
2810
3540
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"campaignsCreate", "POST", "/v1/campaigns", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2811
3541
|
readonly name: Schema.String;
|
|
2812
|
-
readonly channel: Schema.Literal<"email">;
|
|
2813
|
-
readonly content: Schema.Struct<{
|
|
3542
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
3543
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
2814
3544
|
readonly channel: Schema.Literal<"email">;
|
|
2815
3545
|
readonly email: Schema.Struct<{
|
|
2816
3546
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -2854,7 +3584,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2854
3584
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
2855
3585
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2856
3586
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2857
|
-
}
|
|
3587
|
+
}>, Schema.Struct<{
|
|
3588
|
+
readonly channel: Schema.Literal<"sms">;
|
|
3589
|
+
readonly sms: Schema.Struct<{
|
|
3590
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3591
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
3592
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3593
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3594
|
+
}>;
|
|
3595
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3596
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3597
|
+
}>, Schema.Struct<{
|
|
3598
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
3599
|
+
readonly whatsapp: Schema.Struct<{
|
|
3600
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
3601
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
3602
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
3603
|
+
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">]>;
|
|
3604
|
+
}>, Schema.Struct<{
|
|
3605
|
+
readonly customField: Schema.String;
|
|
3606
|
+
}>]>>>;
|
|
3607
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
3608
|
+
}>;
|
|
3609
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3610
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3611
|
+
}>]>;
|
|
2858
3612
|
readonly audience: Schema.Struct<{
|
|
2859
3613
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
2860
3614
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -2868,8 +3622,8 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2868
3622
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2869
3623
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
2870
3624
|
readonly name: Schema.String;
|
|
2871
|
-
readonly channel: Schema.Literal<"email">;
|
|
2872
|
-
readonly content: Schema.Struct<{
|
|
3625
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
3626
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
2873
3627
|
readonly channel: Schema.Literal<"email">;
|
|
2874
3628
|
readonly email: Schema.Struct<{
|
|
2875
3629
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -2913,7 +3667,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2913
3667
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
2914
3668
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2915
3669
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
2916
|
-
}
|
|
3670
|
+
}>, Schema.Struct<{
|
|
3671
|
+
readonly channel: Schema.Literal<"sms">;
|
|
3672
|
+
readonly sms: Schema.Struct<{
|
|
3673
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3674
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
3675
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3676
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3677
|
+
}>;
|
|
3678
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3679
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3680
|
+
}>, Schema.Struct<{
|
|
3681
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
3682
|
+
readonly whatsapp: Schema.Struct<{
|
|
3683
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
3684
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
3685
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
3686
|
+
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">]>;
|
|
3687
|
+
}>, Schema.Struct<{
|
|
3688
|
+
readonly customField: Schema.String;
|
|
3689
|
+
}>]>>>;
|
|
3690
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
3691
|
+
}>;
|
|
3692
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3693
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3694
|
+
}>]>;
|
|
2917
3695
|
readonly audience: Schema.Struct<{
|
|
2918
3696
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
2919
3697
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -2973,6 +3751,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2973
3751
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
2974
3752
|
readonly message: Schema.String;
|
|
2975
3753
|
readonly retryAfterSeconds: Schema.Finite;
|
|
3754
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
3755
|
+
readonly _tag: "MalformedRequestError";
|
|
3756
|
+
readonly message: string;
|
|
3757
|
+
readonly fields: {
|
|
3758
|
+
readonly [x: string]: readonly string[];
|
|
3759
|
+
};
|
|
3760
|
+
}, readonly [Schema.Struct<{
|
|
3761
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3762
|
+
readonly message: Schema.String;
|
|
3763
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3764
|
+
}>], {
|
|
3765
|
+
readonly _tag: "MalformedRequestError";
|
|
3766
|
+
readonly message: string;
|
|
3767
|
+
readonly fields: {
|
|
3768
|
+
readonly [x: string]: readonly string[];
|
|
3769
|
+
};
|
|
3770
|
+
}>, Schema.Struct<{
|
|
3771
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3772
|
+
readonly message: Schema.String;
|
|
3773
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
2976
3774
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<PaymentRequiredError, {
|
|
2977
3775
|
readonly _tag: "PaymentRequiredError";
|
|
2978
3776
|
readonly message: string;
|
|
@@ -3034,8 +3832,8 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3034
3832
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3035
3833
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
3036
3834
|
readonly name: Schema.String;
|
|
3037
|
-
readonly channel: Schema.Literal<"email">;
|
|
3038
|
-
readonly content: Schema.Struct<{
|
|
3835
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
3836
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
3039
3837
|
readonly channel: Schema.Literal<"email">;
|
|
3040
3838
|
readonly email: Schema.Struct<{
|
|
3041
3839
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -3079,7 +3877,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3079
3877
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
3080
3878
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3081
3879
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3082
|
-
}
|
|
3880
|
+
}>, Schema.Struct<{
|
|
3881
|
+
readonly channel: Schema.Literal<"sms">;
|
|
3882
|
+
readonly sms: Schema.Struct<{
|
|
3883
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3884
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
3885
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3886
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3887
|
+
}>;
|
|
3888
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3889
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3890
|
+
}>, Schema.Struct<{
|
|
3891
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
3892
|
+
readonly whatsapp: Schema.Struct<{
|
|
3893
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
3894
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
3895
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
3896
|
+
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">]>;
|
|
3897
|
+
}>, Schema.Struct<{
|
|
3898
|
+
readonly customField: Schema.String;
|
|
3899
|
+
}>]>>>;
|
|
3900
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
3901
|
+
}>;
|
|
3902
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3903
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3904
|
+
}>]>;
|
|
3083
3905
|
readonly audience: Schema.Struct<{
|
|
3084
3906
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
3085
3907
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -3139,6 +3961,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3139
3961
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
3140
3962
|
readonly message: Schema.String;
|
|
3141
3963
|
readonly retryAfterSeconds: Schema.Finite;
|
|
3964
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
3965
|
+
readonly _tag: "MalformedRequestError";
|
|
3966
|
+
readonly message: string;
|
|
3967
|
+
readonly fields: {
|
|
3968
|
+
readonly [x: string]: readonly string[];
|
|
3969
|
+
};
|
|
3970
|
+
}, readonly [Schema.Struct<{
|
|
3971
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3972
|
+
readonly message: Schema.String;
|
|
3973
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3974
|
+
}>], {
|
|
3975
|
+
readonly _tag: "MalformedRequestError";
|
|
3976
|
+
readonly message: string;
|
|
3977
|
+
readonly fields: {
|
|
3978
|
+
readonly [x: string]: readonly string[];
|
|
3979
|
+
};
|
|
3980
|
+
}>, Schema.Struct<{
|
|
3981
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3982
|
+
readonly message: Schema.String;
|
|
3983
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3142
3984
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
3143
3985
|
readonly _tag: "ResourceNotFoundError";
|
|
3144
3986
|
readonly resource: string;
|
|
@@ -3202,7 +4044,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3202
4044
|
readonly idempotencyKey: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3203
4045
|
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3204
4046
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3205
|
-
readonly contentSnapshot: Schema.Struct<{
|
|
4047
|
+
readonly contentSnapshot: Schema.Union<readonly [Schema.Struct<{
|
|
3206
4048
|
readonly channel: Schema.Literal<"email">;
|
|
3207
4049
|
readonly email: Schema.Struct<{
|
|
3208
4050
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -3246,7 +4088,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3246
4088
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
3247
4089
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3248
4090
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3249
|
-
}
|
|
4091
|
+
}>, Schema.Struct<{
|
|
4092
|
+
readonly channel: Schema.Literal<"sms">;
|
|
4093
|
+
readonly sms: Schema.Struct<{
|
|
4094
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4095
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
4096
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4097
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
4098
|
+
}>;
|
|
4099
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4100
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
4101
|
+
}>, Schema.Struct<{
|
|
4102
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
4103
|
+
readonly whatsapp: Schema.Struct<{
|
|
4104
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
4105
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
4106
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
4107
|
+
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">]>;
|
|
4108
|
+
}>, Schema.Struct<{
|
|
4109
|
+
readonly customField: Schema.String;
|
|
4110
|
+
}>]>>>;
|
|
4111
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
4112
|
+
}>;
|
|
4113
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4114
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
4115
|
+
}>]>;
|
|
3250
4116
|
readonly audienceSnapshot: Schema.Struct<{
|
|
3251
4117
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
3252
4118
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -3263,7 +4129,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3263
4129
|
readonly skippedCount: Schema.Finite;
|
|
3264
4130
|
readonly pendingCount: Schema.Finite;
|
|
3265
4131
|
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
3266
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
4132
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"consent_required">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
3267
4133
|
readonly count: Schema.Finite;
|
|
3268
4134
|
}>>;
|
|
3269
4135
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -3306,6 +4172,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3306
4172
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
3307
4173
|
readonly message: Schema.String;
|
|
3308
4174
|
readonly retryAfterSeconds: Schema.Finite;
|
|
4175
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
4176
|
+
readonly _tag: "MalformedRequestError";
|
|
4177
|
+
readonly message: string;
|
|
4178
|
+
readonly fields: {
|
|
4179
|
+
readonly [x: string]: readonly string[];
|
|
4180
|
+
};
|
|
4181
|
+
}, readonly [Schema.Struct<{
|
|
4182
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4183
|
+
readonly message: Schema.String;
|
|
4184
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4185
|
+
}>], {
|
|
4186
|
+
readonly _tag: "MalformedRequestError";
|
|
4187
|
+
readonly message: string;
|
|
4188
|
+
readonly fields: {
|
|
4189
|
+
readonly [x: string]: readonly string[];
|
|
4190
|
+
};
|
|
4191
|
+
}>, Schema.Struct<{
|
|
4192
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4193
|
+
readonly message: Schema.String;
|
|
4194
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3309
4195
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
3310
4196
|
readonly _tag: "ResourceNotFoundError";
|
|
3311
4197
|
readonly resource: string;
|
|
@@ -3383,7 +4269,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3383
4269
|
}>>;
|
|
3384
4270
|
readonly replyCount: Schema.Finite;
|
|
3385
4271
|
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
3386
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
4272
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"consent_required">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
3387
4273
|
readonly count: Schema.Finite;
|
|
3388
4274
|
}>>;
|
|
3389
4275
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
@@ -3414,6 +4300,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3414
4300
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
3415
4301
|
readonly message: Schema.String;
|
|
3416
4302
|
readonly retryAfterSeconds: Schema.Finite;
|
|
4303
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
4304
|
+
readonly _tag: "MalformedRequestError";
|
|
4305
|
+
readonly message: string;
|
|
4306
|
+
readonly fields: {
|
|
4307
|
+
readonly [x: string]: readonly string[];
|
|
4308
|
+
};
|
|
4309
|
+
}, readonly [Schema.Struct<{
|
|
4310
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4311
|
+
readonly message: Schema.String;
|
|
4312
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4313
|
+
}>], {
|
|
4314
|
+
readonly _tag: "MalformedRequestError";
|
|
4315
|
+
readonly message: string;
|
|
4316
|
+
readonly fields: {
|
|
4317
|
+
readonly [x: string]: readonly string[];
|
|
4318
|
+
};
|
|
4319
|
+
}>, Schema.Struct<{
|
|
4320
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4321
|
+
readonly message: Schema.String;
|
|
4322
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3417
4323
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
3418
4324
|
readonly _tag: "ResourceNotFoundError";
|
|
3419
4325
|
readonly resource: string;
|
|
@@ -3467,15 +4373,15 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3467
4373
|
readonly message: Schema.String;
|
|
3468
4374
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
3469
4375
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"campaignsList", "GET", "/v1/campaigns", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3470
|
-
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
4376
|
+
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"archived">]>>;
|
|
3471
4377
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
3472
|
-
readonly cursor: Schema.optionalKey<Schema.
|
|
4378
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
3473
4379
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3474
4380
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
3475
4381
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
3476
4382
|
readonly name: Schema.String;
|
|
3477
|
-
readonly channel: Schema.Literal<"email">;
|
|
3478
|
-
readonly content: Schema.Struct<{
|
|
4383
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
4384
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
3479
4385
|
readonly channel: Schema.Literal<"email">;
|
|
3480
4386
|
readonly email: Schema.Struct<{
|
|
3481
4387
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -3519,7 +4425,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3519
4425
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
3520
4426
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3521
4427
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3522
|
-
}
|
|
4428
|
+
}>, Schema.Struct<{
|
|
4429
|
+
readonly channel: Schema.Literal<"sms">;
|
|
4430
|
+
readonly sms: Schema.Struct<{
|
|
4431
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4432
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
4433
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4434
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
4435
|
+
}>;
|
|
4436
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4437
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
4438
|
+
}>, Schema.Struct<{
|
|
4439
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
4440
|
+
readonly whatsapp: Schema.Struct<{
|
|
4441
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
4442
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
4443
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
4444
|
+
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">]>;
|
|
4445
|
+
}>, Schema.Struct<{
|
|
4446
|
+
readonly customField: Schema.String;
|
|
4447
|
+
}>]>>>;
|
|
4448
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
4449
|
+
}>;
|
|
4450
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4451
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
4452
|
+
}>]>;
|
|
3523
4453
|
readonly audience: Schema.Struct<{
|
|
3524
4454
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
3525
4455
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -3582,6 +4512,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3582
4512
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
3583
4513
|
readonly message: Schema.String;
|
|
3584
4514
|
readonly retryAfterSeconds: Schema.Finite;
|
|
4515
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
4516
|
+
readonly _tag: "MalformedRequestError";
|
|
4517
|
+
readonly message: string;
|
|
4518
|
+
readonly fields: {
|
|
4519
|
+
readonly [x: string]: readonly string[];
|
|
4520
|
+
};
|
|
4521
|
+
}, readonly [Schema.Struct<{
|
|
4522
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4523
|
+
readonly message: Schema.String;
|
|
4524
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4525
|
+
}>], {
|
|
4526
|
+
readonly _tag: "MalformedRequestError";
|
|
4527
|
+
readonly message: string;
|
|
4528
|
+
readonly fields: {
|
|
4529
|
+
readonly [x: string]: readonly string[];
|
|
4530
|
+
};
|
|
4531
|
+
}>, Schema.Struct<{
|
|
4532
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4533
|
+
readonly message: Schema.String;
|
|
4534
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3585
4535
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
3586
4536
|
readonly _tag: "UnauthorizedError";
|
|
3587
4537
|
readonly message: string;
|
|
@@ -3618,9 +4568,9 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3618
4568
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
3619
4569
|
readonly runId: Schema.brand<Schema.String, "CampaignRunId">;
|
|
3620
4570
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
3621
|
-
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
4571
|
+
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"dispatching">, Schema.Literal<"dispatched">, Schema.Literal<"failed">, Schema.Literal<"skipped">]>>;
|
|
3622
4572
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
3623
|
-
readonly cursor: Schema.optionalKey<Schema.
|
|
4573
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
3624
4574
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3625
4575
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
3626
4576
|
readonly id: Schema.brand<Schema.String, "CampaignRecipientId">;
|
|
@@ -3629,7 +4579,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3629
4579
|
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"dispatching">, Schema.Literal<"dispatched">, Schema.Literal<"failed">, Schema.Literal<"skipped">]>;
|
|
3630
4580
|
readonly messageId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3631
4581
|
readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3632
|
-
readonly skippedReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>, Schema.Null]>;
|
|
4582
|
+
readonly skippedReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"consent_required">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>, Schema.Null]>;
|
|
3633
4583
|
readonly createdAt: Schema.String;
|
|
3634
4584
|
readonly updatedAt: Schema.String;
|
|
3635
4585
|
}>>;
|
|
@@ -3662,6 +4612,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3662
4612
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
3663
4613
|
readonly message: Schema.String;
|
|
3664
4614
|
readonly retryAfterSeconds: Schema.Finite;
|
|
4615
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
4616
|
+
readonly _tag: "MalformedRequestError";
|
|
4617
|
+
readonly message: string;
|
|
4618
|
+
readonly fields: {
|
|
4619
|
+
readonly [x: string]: readonly string[];
|
|
4620
|
+
};
|
|
4621
|
+
}, readonly [Schema.Struct<{
|
|
4622
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4623
|
+
readonly message: Schema.String;
|
|
4624
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4625
|
+
}>], {
|
|
4626
|
+
readonly _tag: "MalformedRequestError";
|
|
4627
|
+
readonly message: string;
|
|
4628
|
+
readonly fields: {
|
|
4629
|
+
readonly [x: string]: readonly string[];
|
|
4630
|
+
};
|
|
4631
|
+
}>, Schema.Struct<{
|
|
4632
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4633
|
+
readonly message: Schema.String;
|
|
4634
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3665
4635
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
3666
4636
|
readonly _tag: "ResourceNotFoundError";
|
|
3667
4637
|
readonly resource: string;
|
|
@@ -3717,9 +4687,9 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3717
4687
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"campaignsListRuns", "GET", "/v1/campaigns/:id/runs", Schema.toCodecStringTree<Schema.Struct<{
|
|
3718
4688
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
3719
4689
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
3720
|
-
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
4690
|
+
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"scheduled">, Schema.Literal<"resolving">, Schema.Literal<"dispatching">, Schema.Literal<"paused">, Schema.Literal<"completed">, Schema.Literal<"cancelled">, Schema.Literal<"failed">]>>;
|
|
3721
4691
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
3722
|
-
readonly cursor: Schema.optionalKey<Schema.
|
|
4692
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
3723
4693
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3724
4694
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
3725
4695
|
readonly id: Schema.brand<Schema.String, "CampaignRunId">;
|
|
@@ -3729,7 +4699,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3729
4699
|
readonly idempotencyKey: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3730
4700
|
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3731
4701
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3732
|
-
readonly contentSnapshot: Schema.Struct<{
|
|
4702
|
+
readonly contentSnapshot: Schema.Union<readonly [Schema.Struct<{
|
|
3733
4703
|
readonly channel: Schema.Literal<"email">;
|
|
3734
4704
|
readonly email: Schema.Struct<{
|
|
3735
4705
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -3773,7 +4743,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3773
4743
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
3774
4744
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3775
4745
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3776
|
-
}
|
|
4746
|
+
}>, Schema.Struct<{
|
|
4747
|
+
readonly channel: Schema.Literal<"sms">;
|
|
4748
|
+
readonly sms: Schema.Struct<{
|
|
4749
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4750
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
4751
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4752
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
4753
|
+
}>;
|
|
4754
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4755
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
4756
|
+
}>, Schema.Struct<{
|
|
4757
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
4758
|
+
readonly whatsapp: Schema.Struct<{
|
|
4759
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
4760
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
4761
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
4762
|
+
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">]>;
|
|
4763
|
+
}>, Schema.Struct<{
|
|
4764
|
+
readonly customField: Schema.String;
|
|
4765
|
+
}>]>>>;
|
|
4766
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
4767
|
+
}>;
|
|
4768
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4769
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
4770
|
+
}>]>;
|
|
3777
4771
|
readonly audienceSnapshot: Schema.Struct<{
|
|
3778
4772
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
3779
4773
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -3790,7 +4784,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3790
4784
|
readonly skippedCount: Schema.Finite;
|
|
3791
4785
|
readonly pendingCount: Schema.Finite;
|
|
3792
4786
|
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
3793
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
4787
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"consent_required">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
3794
4788
|
readonly count: Schema.Finite;
|
|
3795
4789
|
}>>;
|
|
3796
4790
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -3835,6 +4829,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3835
4829
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
3836
4830
|
readonly message: Schema.String;
|
|
3837
4831
|
readonly retryAfterSeconds: Schema.Finite;
|
|
4832
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
4833
|
+
readonly _tag: "MalformedRequestError";
|
|
4834
|
+
readonly message: string;
|
|
4835
|
+
readonly fields: {
|
|
4836
|
+
readonly [x: string]: readonly string[];
|
|
4837
|
+
};
|
|
4838
|
+
}, readonly [Schema.Struct<{
|
|
4839
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4840
|
+
readonly message: Schema.String;
|
|
4841
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4842
|
+
}>], {
|
|
4843
|
+
readonly _tag: "MalformedRequestError";
|
|
4844
|
+
readonly message: string;
|
|
4845
|
+
readonly fields: {
|
|
4846
|
+
readonly [x: string]: readonly string[];
|
|
4847
|
+
};
|
|
4848
|
+
}>, Schema.Struct<{
|
|
4849
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4850
|
+
readonly message: Schema.String;
|
|
4851
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3838
4852
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
3839
4853
|
readonly _tag: "ResourceNotFoundError";
|
|
3840
4854
|
readonly resource: string;
|
|
@@ -3900,7 +4914,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3900
4914
|
readonly idempotencyKey: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3901
4915
|
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3902
4916
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3903
|
-
readonly contentSnapshot: Schema.Struct<{
|
|
4917
|
+
readonly contentSnapshot: Schema.Union<readonly [Schema.Struct<{
|
|
3904
4918
|
readonly channel: Schema.Literal<"email">;
|
|
3905
4919
|
readonly email: Schema.Struct<{
|
|
3906
4920
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -3944,7 +4958,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3944
4958
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
3945
4959
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3946
4960
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
3947
|
-
}
|
|
4961
|
+
}>, Schema.Struct<{
|
|
4962
|
+
readonly channel: Schema.Literal<"sms">;
|
|
4963
|
+
readonly sms: Schema.Struct<{
|
|
4964
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4965
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
4966
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4967
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
4968
|
+
}>;
|
|
4969
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4970
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
4971
|
+
}>, Schema.Struct<{
|
|
4972
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
4973
|
+
readonly whatsapp: Schema.Struct<{
|
|
4974
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
4975
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
4976
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
4977
|
+
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">]>;
|
|
4978
|
+
}>, Schema.Struct<{
|
|
4979
|
+
readonly customField: Schema.String;
|
|
4980
|
+
}>]>>>;
|
|
4981
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
4982
|
+
}>;
|
|
4983
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4984
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
4985
|
+
}>]>;
|
|
3948
4986
|
readonly audienceSnapshot: Schema.Struct<{
|
|
3949
4987
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
3950
4988
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -3961,7 +4999,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3961
4999
|
readonly skippedCount: Schema.Finite;
|
|
3962
5000
|
readonly pendingCount: Schema.Finite;
|
|
3963
5001
|
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
3964
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
5002
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"consent_required">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
3965
5003
|
readonly count: Schema.Finite;
|
|
3966
5004
|
}>>;
|
|
3967
5005
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -4037,6 +5075,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4037
5075
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4038
5076
|
readonly message: Schema.String;
|
|
4039
5077
|
readonly retryAfterSeconds: Schema.Finite;
|
|
5078
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
5079
|
+
readonly _tag: "MalformedRequestError";
|
|
5080
|
+
readonly message: string;
|
|
5081
|
+
readonly fields: {
|
|
5082
|
+
readonly [x: string]: readonly string[];
|
|
5083
|
+
};
|
|
5084
|
+
}, readonly [Schema.Struct<{
|
|
5085
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5086
|
+
readonly message: Schema.String;
|
|
5087
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
5088
|
+
}>], {
|
|
5089
|
+
readonly _tag: "MalformedRequestError";
|
|
5090
|
+
readonly message: string;
|
|
5091
|
+
readonly fields: {
|
|
5092
|
+
readonly [x: string]: readonly string[];
|
|
5093
|
+
};
|
|
5094
|
+
}>, Schema.Struct<{
|
|
5095
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5096
|
+
readonly message: Schema.String;
|
|
5097
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4040
5098
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
4041
5099
|
readonly _tag: "ResourceNotFoundError";
|
|
4042
5100
|
readonly resource: string;
|
|
@@ -4090,7 +5148,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4090
5148
|
readonly message: Schema.String;
|
|
4091
5149
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
4092
5150
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"campaignsPreview", "POST", "/v1/campaigns/preview", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
4093
|
-
readonly content: Schema.Struct<{
|
|
5151
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
4094
5152
|
readonly channel: Schema.Literal<"email">;
|
|
4095
5153
|
readonly email: Schema.Struct<{
|
|
4096
5154
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -4134,7 +5192,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4134
5192
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
4135
5193
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4136
5194
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
4137
|
-
}
|
|
5195
|
+
}>, Schema.Struct<{
|
|
5196
|
+
readonly channel: Schema.Literal<"sms">;
|
|
5197
|
+
readonly sms: Schema.Struct<{
|
|
5198
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5199
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
5200
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5201
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
5202
|
+
}>;
|
|
5203
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5204
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
5205
|
+
}>, Schema.Struct<{
|
|
5206
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
5207
|
+
readonly whatsapp: Schema.Struct<{
|
|
5208
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
5209
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
5210
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
5211
|
+
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">]>;
|
|
5212
|
+
}>, Schema.Struct<{
|
|
5213
|
+
readonly customField: Schema.String;
|
|
5214
|
+
}>]>>>;
|
|
5215
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
5216
|
+
}>;
|
|
5217
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5218
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
5219
|
+
}>]>;
|
|
4138
5220
|
readonly audience: Schema.Struct<{
|
|
4139
5221
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
4140
5222
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -4184,6 +5266,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4184
5266
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4185
5267
|
readonly message: Schema.String;
|
|
4186
5268
|
readonly retryAfterSeconds: Schema.Finite;
|
|
5269
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
5270
|
+
readonly _tag: "MalformedRequestError";
|
|
5271
|
+
readonly message: string;
|
|
5272
|
+
readonly fields: {
|
|
5273
|
+
readonly [x: string]: readonly string[];
|
|
5274
|
+
};
|
|
5275
|
+
}, readonly [Schema.Struct<{
|
|
5276
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5277
|
+
readonly message: Schema.String;
|
|
5278
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
5279
|
+
}>], {
|
|
5280
|
+
readonly _tag: "MalformedRequestError";
|
|
5281
|
+
readonly message: string;
|
|
5282
|
+
readonly fields: {
|
|
5283
|
+
readonly [x: string]: readonly string[];
|
|
5284
|
+
};
|
|
5285
|
+
}>, Schema.Struct<{
|
|
5286
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5287
|
+
readonly message: Schema.String;
|
|
5288
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4187
5289
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
4188
5290
|
readonly _tag: "ResourceNotFoundError";
|
|
4189
5291
|
readonly resource: string;
|
|
@@ -4245,7 +5347,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4245
5347
|
readonly idempotencyKey: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4246
5348
|
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4247
5349
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4248
|
-
readonly contentSnapshot: Schema.Struct<{
|
|
5350
|
+
readonly contentSnapshot: Schema.Union<readonly [Schema.Struct<{
|
|
4249
5351
|
readonly channel: Schema.Literal<"email">;
|
|
4250
5352
|
readonly email: Schema.Struct<{
|
|
4251
5353
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -4289,7 +5391,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4289
5391
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
4290
5392
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4291
5393
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
4292
|
-
}
|
|
5394
|
+
}>, Schema.Struct<{
|
|
5395
|
+
readonly channel: Schema.Literal<"sms">;
|
|
5396
|
+
readonly sms: Schema.Struct<{
|
|
5397
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5398
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
5399
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5400
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
5401
|
+
}>;
|
|
5402
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5403
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
5404
|
+
}>, Schema.Struct<{
|
|
5405
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
5406
|
+
readonly whatsapp: Schema.Struct<{
|
|
5407
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
5408
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
5409
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
5410
|
+
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">]>;
|
|
5411
|
+
}>, Schema.Struct<{
|
|
5412
|
+
readonly customField: Schema.String;
|
|
5413
|
+
}>]>>>;
|
|
5414
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
5415
|
+
}>;
|
|
5416
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5417
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
5418
|
+
}>]>;
|
|
4293
5419
|
readonly audienceSnapshot: Schema.Struct<{
|
|
4294
5420
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
4295
5421
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -4306,7 +5432,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4306
5432
|
readonly skippedCount: Schema.Finite;
|
|
4307
5433
|
readonly pendingCount: Schema.Finite;
|
|
4308
5434
|
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
4309
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
5435
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"consent_required">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
4310
5436
|
readonly count: Schema.Finite;
|
|
4311
5437
|
}>>;
|
|
4312
5438
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -4370,6 +5496,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4370
5496
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4371
5497
|
readonly message: Schema.String;
|
|
4372
5498
|
readonly retryAfterSeconds: Schema.Finite;
|
|
5499
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
5500
|
+
readonly _tag: "MalformedRequestError";
|
|
5501
|
+
readonly message: string;
|
|
5502
|
+
readonly fields: {
|
|
5503
|
+
readonly [x: string]: readonly string[];
|
|
5504
|
+
};
|
|
5505
|
+
}, readonly [Schema.Struct<{
|
|
5506
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5507
|
+
readonly message: Schema.String;
|
|
5508
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
5509
|
+
}>], {
|
|
5510
|
+
readonly _tag: "MalformedRequestError";
|
|
5511
|
+
readonly message: string;
|
|
5512
|
+
readonly fields: {
|
|
5513
|
+
readonly [x: string]: readonly string[];
|
|
5514
|
+
};
|
|
5515
|
+
}>, Schema.Struct<{
|
|
5516
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5517
|
+
readonly message: Schema.String;
|
|
5518
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4373
5519
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<PaymentRequiredError, {
|
|
4374
5520
|
readonly _tag: "PaymentRequiredError";
|
|
4375
5521
|
readonly message: string;
|
|
@@ -4451,7 +5597,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4451
5597
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
4452
5598
|
readonly scheduledFor: Schema.optionalKey<Schema.Union<readonly [Schema.decodeTo<Schema.Date, Schema.String, never, never>, Schema.Null]>>;
|
|
4453
5599
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
4454
|
-
readonly "idempotency-key": Schema.optionalKey<Schema.
|
|
5600
|
+
readonly "idempotency-key": Schema.optionalKey<Schema.String>;
|
|
4455
5601
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
4456
5602
|
readonly id: Schema.brand<Schema.String, "CampaignRunId">;
|
|
4457
5603
|
readonly campaignId: Schema.brand<Schema.String, "CampaignId">;
|
|
@@ -4460,7 +5606,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4460
5606
|
readonly idempotencyKey: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4461
5607
|
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4462
5608
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4463
|
-
readonly contentSnapshot: Schema.Struct<{
|
|
5609
|
+
readonly contentSnapshot: Schema.Union<readonly [Schema.Struct<{
|
|
4464
5610
|
readonly channel: Schema.Literal<"email">;
|
|
4465
5611
|
readonly email: Schema.Struct<{
|
|
4466
5612
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -4504,7 +5650,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4504
5650
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
4505
5651
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4506
5652
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
4507
|
-
}
|
|
5653
|
+
}>, Schema.Struct<{
|
|
5654
|
+
readonly channel: Schema.Literal<"sms">;
|
|
5655
|
+
readonly sms: Schema.Struct<{
|
|
5656
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5657
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
5658
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5659
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
5660
|
+
}>;
|
|
5661
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5662
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
5663
|
+
}>, Schema.Struct<{
|
|
5664
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
5665
|
+
readonly whatsapp: Schema.Struct<{
|
|
5666
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
5667
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
5668
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
5669
|
+
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">]>;
|
|
5670
|
+
}>, Schema.Struct<{
|
|
5671
|
+
readonly customField: Schema.String;
|
|
5672
|
+
}>]>>>;
|
|
5673
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
5674
|
+
}>;
|
|
5675
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5676
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
5677
|
+
}>]>;
|
|
4508
5678
|
readonly audienceSnapshot: Schema.Struct<{
|
|
4509
5679
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
4510
5680
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -4521,7 +5691,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4521
5691
|
readonly skippedCount: Schema.Finite;
|
|
4522
5692
|
readonly pendingCount: Schema.Finite;
|
|
4523
5693
|
readonly skippedReasons: Schema.$Array<Schema.Struct<{
|
|
4524
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
5694
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"consent_required">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">, Schema.Literal<"missing_merge_field">]>;
|
|
4525
5695
|
readonly count: Schema.Finite;
|
|
4526
5696
|
}>>;
|
|
4527
5697
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -4572,6 +5742,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4572
5742
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4573
5743
|
readonly message: Schema.String;
|
|
4574
5744
|
readonly retryAfterSeconds: Schema.Finite;
|
|
5745
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
5746
|
+
readonly _tag: "MalformedRequestError";
|
|
5747
|
+
readonly message: string;
|
|
5748
|
+
readonly fields: {
|
|
5749
|
+
readonly [x: string]: readonly string[];
|
|
5750
|
+
};
|
|
5751
|
+
}, readonly [Schema.Struct<{
|
|
5752
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5753
|
+
readonly message: Schema.String;
|
|
5754
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
5755
|
+
}>], {
|
|
5756
|
+
readonly _tag: "MalformedRequestError";
|
|
5757
|
+
readonly message: string;
|
|
5758
|
+
readonly fields: {
|
|
5759
|
+
readonly [x: string]: readonly string[];
|
|
5760
|
+
};
|
|
5761
|
+
}>, Schema.Struct<{
|
|
5762
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5763
|
+
readonly message: Schema.String;
|
|
5764
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4575
5765
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<PaymentRequiredError, {
|
|
4576
5766
|
readonly _tag: "PaymentRequiredError";
|
|
4577
5767
|
readonly message: string;
|
|
@@ -4629,7 +5819,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4629
5819
|
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
4630
5820
|
readonly message: Schema.String;
|
|
4631
5821
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"campaignsSendTest", "POST", "/v1/campaigns/test-send", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
4632
|
-
readonly content: Schema.Struct<{
|
|
5822
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
4633
5823
|
readonly channel: Schema.Literal<"email">;
|
|
4634
5824
|
readonly email: Schema.Struct<{
|
|
4635
5825
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -4673,7 +5863,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4673
5863
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
4674
5864
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4675
5865
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
4676
|
-
}
|
|
5866
|
+
}>, Schema.Struct<{
|
|
5867
|
+
readonly channel: Schema.Literal<"sms">;
|
|
5868
|
+
readonly sms: Schema.Struct<{
|
|
5869
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5870
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
5871
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5872
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
5873
|
+
}>;
|
|
5874
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5875
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
5876
|
+
}>, Schema.Struct<{
|
|
5877
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
5878
|
+
readonly whatsapp: Schema.Struct<{
|
|
5879
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
5880
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
5881
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
5882
|
+
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">]>;
|
|
5883
|
+
}>, Schema.Struct<{
|
|
5884
|
+
readonly customField: Schema.String;
|
|
5885
|
+
}>]>>>;
|
|
5886
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
5887
|
+
}>;
|
|
5888
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5889
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
5890
|
+
}>]>;
|
|
4677
5891
|
readonly audience: Schema.Struct<{
|
|
4678
5892
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
4679
5893
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -4720,6 +5934,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4720
5934
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4721
5935
|
readonly message: Schema.String;
|
|
4722
5936
|
readonly retryAfterSeconds: Schema.Finite;
|
|
5937
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
5938
|
+
readonly _tag: "MalformedRequestError";
|
|
5939
|
+
readonly message: string;
|
|
5940
|
+
readonly fields: {
|
|
5941
|
+
readonly [x: string]: readonly string[];
|
|
5942
|
+
};
|
|
5943
|
+
}, readonly [Schema.Struct<{
|
|
5944
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5945
|
+
readonly message: Schema.String;
|
|
5946
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
5947
|
+
}>], {
|
|
5948
|
+
readonly _tag: "MalformedRequestError";
|
|
5949
|
+
readonly message: string;
|
|
5950
|
+
readonly fields: {
|
|
5951
|
+
readonly [x: string]: readonly string[];
|
|
5952
|
+
};
|
|
5953
|
+
}>, Schema.Struct<{
|
|
5954
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5955
|
+
readonly message: Schema.String;
|
|
5956
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4723
5957
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<PaymentRequiredError, {
|
|
4724
5958
|
readonly _tag: "PaymentRequiredError";
|
|
4725
5959
|
readonly message: string;
|
|
@@ -4796,7 +6030,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4796
6030
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
4797
6031
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
4798
6032
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4799
|
-
readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6033
|
+
readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
4800
6034
|
readonly channel: Schema.Literal<"email">;
|
|
4801
6035
|
readonly email: Schema.Struct<{
|
|
4802
6036
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -4840,7 +6074,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4840
6074
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
4841
6075
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4842
6076
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
4843
|
-
}>, Schema.
|
|
6077
|
+
}>, Schema.Struct<{
|
|
6078
|
+
readonly channel: Schema.Literal<"sms">;
|
|
6079
|
+
readonly sms: Schema.Struct<{
|
|
6080
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6081
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
6082
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6083
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
6084
|
+
}>;
|
|
6085
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
6086
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
6087
|
+
}>, Schema.Struct<{
|
|
6088
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
6089
|
+
readonly whatsapp: Schema.Struct<{
|
|
6090
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
6091
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
6092
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
6093
|
+
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">]>;
|
|
6094
|
+
}>, Schema.Struct<{
|
|
6095
|
+
readonly customField: Schema.String;
|
|
6096
|
+
}>]>>>;
|
|
6097
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
6098
|
+
}>;
|
|
6099
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
6100
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
6101
|
+
}>]>, Schema.Null]>>;
|
|
4844
6102
|
readonly audience: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
4845
6103
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
4846
6104
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -4854,8 +6112,8 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4854
6112
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
4855
6113
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
4856
6114
|
readonly name: Schema.String;
|
|
4857
|
-
readonly channel: Schema.Literal<"email">;
|
|
4858
|
-
readonly content: Schema.Struct<{
|
|
6115
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
6116
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
4859
6117
|
readonly channel: Schema.Literal<"email">;
|
|
4860
6118
|
readonly email: Schema.Struct<{
|
|
4861
6119
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -4899,7 +6157,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4899
6157
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
4900
6158
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4901
6159
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
4902
|
-
}
|
|
6160
|
+
}>, Schema.Struct<{
|
|
6161
|
+
readonly channel: Schema.Literal<"sms">;
|
|
6162
|
+
readonly sms: Schema.Struct<{
|
|
6163
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6164
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
6165
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6166
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
6167
|
+
}>;
|
|
6168
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
6169
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
6170
|
+
}>, Schema.Struct<{
|
|
6171
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
6172
|
+
readonly whatsapp: Schema.Struct<{
|
|
6173
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
6174
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
6175
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
6176
|
+
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">]>;
|
|
6177
|
+
}>, Schema.Struct<{
|
|
6178
|
+
readonly customField: Schema.String;
|
|
6179
|
+
}>]>>>;
|
|
6180
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
6181
|
+
}>;
|
|
6182
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
6183
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
6184
|
+
}>]>;
|
|
4903
6185
|
readonly audience: Schema.Struct<{
|
|
4904
6186
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
4905
6187
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -4967,6 +6249,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4967
6249
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4968
6250
|
readonly message: Schema.String;
|
|
4969
6251
|
readonly retryAfterSeconds: Schema.Finite;
|
|
6252
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
6253
|
+
readonly _tag: "MalformedRequestError";
|
|
6254
|
+
readonly message: string;
|
|
6255
|
+
readonly fields: {
|
|
6256
|
+
readonly [x: string]: readonly string[];
|
|
6257
|
+
};
|
|
6258
|
+
}, readonly [Schema.Struct<{
|
|
6259
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
6260
|
+
readonly message: Schema.String;
|
|
6261
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
6262
|
+
}>], {
|
|
6263
|
+
readonly _tag: "MalformedRequestError";
|
|
6264
|
+
readonly message: string;
|
|
6265
|
+
readonly fields: {
|
|
6266
|
+
readonly [x: string]: readonly string[];
|
|
6267
|
+
};
|
|
6268
|
+
}>, Schema.Struct<{
|
|
6269
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
6270
|
+
readonly message: Schema.String;
|
|
6271
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4970
6272
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
4971
6273
|
readonly _tag: "ResourceNotFoundError";
|
|
4972
6274
|
readonly resource: string;
|