samva 0.34.0 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +17 -0
- package/README.md +2 -1
- package/dist/client/sdk.gen.d.ts +325 -331
- package/dist/client/sdk.gen.js +406 -454
- package/dist/client/types.gen.d.ts +3465 -750
- package/dist/effect/agents.d.ts +222 -17
- package/dist/effect/agents.js +7 -1
- package/dist/effect/analytics.d.ts +21 -15
- package/dist/effect/api-keys.d.ts +30 -24
- package/dist/effect/campaigns.d.ts +695 -39
- 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 +51 -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 +64 -12
- package/dist/effect/extensions.d.ts +16 -16
- package/dist/effect/generated/agents.d.ts +2902 -150
- package/dist/effect/generated/agents.js +219 -31
- package/dist/effect/generated/analytics.d.ts +127 -136
- package/dist/effect/generated/analytics.js +72 -37
- package/dist/effect/generated/api-keys.d.ts +243 -47
- package/dist/effect/generated/api-keys.js +27 -12
- 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 +1467 -143
- package/dist/effect/generated/campaigns.js +84 -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 +501 -108
- package/dist/effect/generated/conversations.js +106 -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 +1052 -77
- package/dist/effect/generated/extension-installations.js +45 -31
- 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/index.d.ts +3 -1
- package/dist/effect/generated/journeys.d.ts +684 -16
- package/dist/effect/generated/journeys.js +37 -9
- package/dist/effect/generated/mailboxes.d.ts +6169 -1734
- package/dist/effect/generated/mailboxes.js +549 -344
- 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 +215 -55
- package/dist/effect/generated/namespaces.js +30 -12
- 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/policies.d.ts +953 -0
- package/dist/effect/generated/policies.js +116 -0
- package/dist/effect/generated/scheduled-messages.d.ts +4418 -49
- package/dist/effect/generated/scheduled-messages.js +77 -13
- package/dist/effect/generated/shared.d.ts +3213 -521
- package/dist/effect/generated/shared.js +713 -128
- package/dist/effect/generated/subscriptions.d.ts +23 -1
- package/dist/effect/generated/subscriptions.js +6 -4
- package/dist/effect/generated/templates.d.ts +2081 -693
- package/dist/effect/generated/templates.js +482 -267
- 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 +318 -57
- package/dist/effect/generated/webhooks.js +68 -17
- package/dist/effect/generated/whoami.d.ts +35 -5
- package/dist/effect/generated/whoami.js +4 -2
- package/dist/effect/generated-metadata.d.ts +56 -32
- package/dist/effect/generated-metadata.js +137 -105
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +3 -2
- package/dist/effect/internal/client.js +1 -1
- package/dist/effect/internal/email-sender.d.ts +1 -1
- package/dist/effect/internal/operation.js +5 -32
- package/dist/effect/internal/send.d.ts +1 -1
- package/dist/effect/journeys.d.ts +169 -83
- package/dist/effect/mailboxes.d.ts +978 -301
- package/dist/effect/mailboxes.js +1 -11
- 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/policies.d.ts +65 -0
- package/dist/effect/policies.js +16 -0
- package/dist/effect/scheduled-messages.d.ts +869 -8
- package/dist/effect/templates.d.ts +43 -45
- package/dist/effect/templates.js +5 -3
- package/dist/effect/topics.d.ts +23 -23
- package/dist/effect/webhooks.d.ts +29 -26
- package/dist/index.js +2 -2
- package/dist/mailbox/test.js +11 -4
- package/dist/mailbox/types.d.ts +39 -3
- package/dist/normalize.js +13 -1
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +4 -2
- package/dist/promises/client.js +5 -3
- package/dist/promises/errors.gen.d.ts +38 -2
- package/dist/promises/errors.gen.js +394 -34
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +39 -28
- package/dist/service-map.js +220 -782
- package/package.json +13 -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,12 +1418,16 @@ 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;
|
|
1098
1426
|
export declare const CampaignsCreate402: typeof PaymentRequiredError;
|
|
1099
1427
|
export type CampaignsCreate403 = FlagDisabledError | ForbiddenError;
|
|
1100
1428
|
export declare const CampaignsCreate403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
|
|
1429
|
+
export type CampaignsCreate404 = ResourceNotFoundError;
|
|
1430
|
+
export declare const CampaignsCreate404: typeof ResourceNotFoundError;
|
|
1101
1431
|
export type CampaignsCreate422 = ValidationError;
|
|
1102
1432
|
export declare const CampaignsCreate422: typeof ValidationError;
|
|
1103
1433
|
export type CampaignsCreate500 = InternalError;
|
|
@@ -1116,8 +1446,8 @@ export type CampaignsGet200 = Campaign;
|
|
|
1116
1446
|
export declare const CampaignsGet200: Schema.Struct<{
|
|
1117
1447
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
1118
1448
|
readonly name: Schema.String;
|
|
1119
|
-
readonly channel: Schema.Literal<"email">;
|
|
1120
|
-
readonly content: Schema.Struct<{
|
|
1449
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
1450
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
1121
1451
|
readonly channel: Schema.Literal<"email">;
|
|
1122
1452
|
readonly email: Schema.Struct<{
|
|
1123
1453
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -1161,7 +1491,31 @@ export declare const CampaignsGet200: Schema.Struct<{
|
|
|
1161
1491
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
1162
1492
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1163
1493
|
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
|
-
}
|
|
1494
|
+
}>, Schema.Struct<{
|
|
1495
|
+
readonly channel: Schema.Literal<"sms">;
|
|
1496
|
+
readonly sms: Schema.Struct<{
|
|
1497
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1498
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
1499
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1500
|
+
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]>>;
|
|
1501
|
+
}>;
|
|
1502
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1503
|
+
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]>>;
|
|
1504
|
+
}>, Schema.Struct<{
|
|
1505
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
1506
|
+
readonly whatsapp: Schema.Struct<{
|
|
1507
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
1508
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
1509
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
1510
|
+
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">]>;
|
|
1511
|
+
}>, Schema.Struct<{
|
|
1512
|
+
readonly customField: Schema.String;
|
|
1513
|
+
}>]>>>;
|
|
1514
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
1515
|
+
}>;
|
|
1516
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1517
|
+
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]>>;
|
|
1518
|
+
}>]>;
|
|
1165
1519
|
readonly audience: Schema.Struct<{
|
|
1166
1520
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
1167
1521
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -1194,6 +1548,8 @@ export declare const CampaignsGet200: Schema.Struct<{
|
|
|
1194
1548
|
readonly createdAt: Schema.String;
|
|
1195
1549
|
readonly updatedAt: Schema.String;
|
|
1196
1550
|
}>;
|
|
1551
|
+
export type CampaignsGet400 = MalformedRequestError;
|
|
1552
|
+
export declare const CampaignsGet400: typeof MalformedRequestError;
|
|
1197
1553
|
export type CampaignsGet401 = UnauthorizedError;
|
|
1198
1554
|
export declare const CampaignsGet401: typeof UnauthorizedError;
|
|
1199
1555
|
export type CampaignsGet403 = ForbiddenError;
|
|
@@ -1220,7 +1576,7 @@ export type CampaignsUpdateRequestJson = {
|
|
|
1220
1576
|
};
|
|
1221
1577
|
export declare const CampaignsUpdateRequestJson: Schema.Struct<{
|
|
1222
1578
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1223
|
-
readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1579
|
+
readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
1224
1580
|
readonly channel: Schema.Literal<"email">;
|
|
1225
1581
|
readonly email: Schema.Struct<{
|
|
1226
1582
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -1264,7 +1620,31 @@ export declare const CampaignsUpdateRequestJson: Schema.Struct<{
|
|
|
1264
1620
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
1265
1621
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1266
1622
|
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.
|
|
1623
|
+
}>, Schema.Struct<{
|
|
1624
|
+
readonly channel: Schema.Literal<"sms">;
|
|
1625
|
+
readonly sms: Schema.Struct<{
|
|
1626
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1627
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
1628
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1629
|
+
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]>>;
|
|
1630
|
+
}>;
|
|
1631
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1632
|
+
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]>>;
|
|
1633
|
+
}>, Schema.Struct<{
|
|
1634
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
1635
|
+
readonly whatsapp: Schema.Struct<{
|
|
1636
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
1637
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
1638
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
1639
|
+
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">]>;
|
|
1640
|
+
}>, Schema.Struct<{
|
|
1641
|
+
readonly customField: Schema.String;
|
|
1642
|
+
}>]>>>;
|
|
1643
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
1644
|
+
}>;
|
|
1645
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1646
|
+
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]>>;
|
|
1647
|
+
}>]>, Schema.Null]>>;
|
|
1268
1648
|
readonly audience: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1269
1649
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
1270
1650
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -1280,8 +1660,8 @@ export type CampaignsUpdate200 = Campaign;
|
|
|
1280
1660
|
export declare const CampaignsUpdate200: Schema.Struct<{
|
|
1281
1661
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
1282
1662
|
readonly name: Schema.String;
|
|
1283
|
-
readonly channel: Schema.Literal<"email">;
|
|
1284
|
-
readonly content: Schema.Struct<{
|
|
1663
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
1664
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
1285
1665
|
readonly channel: Schema.Literal<"email">;
|
|
1286
1666
|
readonly email: Schema.Struct<{
|
|
1287
1667
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -1325,7 +1705,31 @@ export declare const CampaignsUpdate200: Schema.Struct<{
|
|
|
1325
1705
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
1326
1706
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1327
1707
|
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
|
-
}
|
|
1708
|
+
}>, Schema.Struct<{
|
|
1709
|
+
readonly channel: Schema.Literal<"sms">;
|
|
1710
|
+
readonly sms: Schema.Struct<{
|
|
1711
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1712
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
1713
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1714
|
+
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]>>;
|
|
1715
|
+
}>;
|
|
1716
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1717
|
+
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]>>;
|
|
1718
|
+
}>, Schema.Struct<{
|
|
1719
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
1720
|
+
readonly whatsapp: Schema.Struct<{
|
|
1721
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
1722
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
1723
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
1724
|
+
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">]>;
|
|
1725
|
+
}>, Schema.Struct<{
|
|
1726
|
+
readonly customField: Schema.String;
|
|
1727
|
+
}>]>>>;
|
|
1728
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
1729
|
+
}>;
|
|
1730
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1731
|
+
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]>>;
|
|
1732
|
+
}>]>;
|
|
1329
1733
|
readonly audience: Schema.Struct<{
|
|
1330
1734
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
1331
1735
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -1358,6 +1762,8 @@ export declare const CampaignsUpdate200: Schema.Struct<{
|
|
|
1358
1762
|
readonly createdAt: Schema.String;
|
|
1359
1763
|
readonly updatedAt: Schema.String;
|
|
1360
1764
|
}>;
|
|
1765
|
+
export type CampaignsUpdate400 = MalformedRequestError;
|
|
1766
|
+
export declare const CampaignsUpdate400: typeof MalformedRequestError;
|
|
1361
1767
|
export type CampaignsUpdate401 = UnauthorizedError;
|
|
1362
1768
|
export declare const CampaignsUpdate401: typeof UnauthorizedError;
|
|
1363
1769
|
export type CampaignsUpdate403 = FlagDisabledError | ForbiddenError;
|
|
@@ -1382,8 +1788,8 @@ export type CampaignsArchive200 = Campaign;
|
|
|
1382
1788
|
export declare const CampaignsArchive200: Schema.Struct<{
|
|
1383
1789
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
1384
1790
|
readonly name: Schema.String;
|
|
1385
|
-
readonly channel: Schema.Literal<"email">;
|
|
1386
|
-
readonly content: Schema.Struct<{
|
|
1791
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
1792
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
1387
1793
|
readonly channel: Schema.Literal<"email">;
|
|
1388
1794
|
readonly email: Schema.Struct<{
|
|
1389
1795
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -1427,7 +1833,31 @@ export declare const CampaignsArchive200: Schema.Struct<{
|
|
|
1427
1833
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
1428
1834
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1429
1835
|
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
|
-
}
|
|
1836
|
+
}>, Schema.Struct<{
|
|
1837
|
+
readonly channel: Schema.Literal<"sms">;
|
|
1838
|
+
readonly sms: Schema.Struct<{
|
|
1839
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1840
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
1841
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1842
|
+
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]>>;
|
|
1843
|
+
}>;
|
|
1844
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1845
|
+
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]>>;
|
|
1846
|
+
}>, Schema.Struct<{
|
|
1847
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
1848
|
+
readonly whatsapp: Schema.Struct<{
|
|
1849
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
1850
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
1851
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
1852
|
+
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">]>;
|
|
1853
|
+
}>, Schema.Struct<{
|
|
1854
|
+
readonly customField: Schema.String;
|
|
1855
|
+
}>]>>>;
|
|
1856
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
1857
|
+
}>;
|
|
1858
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1859
|
+
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]>>;
|
|
1860
|
+
}>]>;
|
|
1431
1861
|
readonly audience: Schema.Struct<{
|
|
1432
1862
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
1433
1863
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -1460,6 +1890,8 @@ export declare const CampaignsArchive200: Schema.Struct<{
|
|
|
1460
1890
|
readonly createdAt: Schema.String;
|
|
1461
1891
|
readonly updatedAt: Schema.String;
|
|
1462
1892
|
}>;
|
|
1893
|
+
export type CampaignsArchive400 = MalformedRequestError;
|
|
1894
|
+
export declare const CampaignsArchive400: typeof MalformedRequestError;
|
|
1463
1895
|
export type CampaignsArchive401 = UnauthorizedError;
|
|
1464
1896
|
export declare const CampaignsArchive401: typeof UnauthorizedError;
|
|
1465
1897
|
export type CampaignsArchive403 = ForbiddenError;
|
|
@@ -1481,14 +1913,14 @@ export declare const CampaignsListRunsPathParams: Schema.Struct<{
|
|
|
1481
1913
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
1482
1914
|
}>;
|
|
1483
1915
|
export type CampaignsListRunsQuery = {
|
|
1484
|
-
readonly status?: "scheduled" | "resolving" | "dispatching" | "paused" | "completed" | "cancelled" | "failed"
|
|
1916
|
+
readonly status?: "scheduled" | "resolving" | "dispatching" | "paused" | "completed" | "cancelled" | "failed";
|
|
1485
1917
|
readonly limit?: number | null;
|
|
1486
|
-
readonly cursor?:
|
|
1918
|
+
readonly cursor?: string;
|
|
1487
1919
|
};
|
|
1488
1920
|
export declare const CampaignsListRunsQuery: Schema.Struct<{
|
|
1489
|
-
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
1921
|
+
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
1922
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
1491
|
-
readonly cursor: Schema.optionalKey<Schema.
|
|
1923
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
1492
1924
|
}>;
|
|
1493
1925
|
export type CampaignsListRuns200 = CampaignRunPage;
|
|
1494
1926
|
export declare const CampaignsListRuns200: Schema.Struct<{
|
|
@@ -1500,7 +1932,7 @@ export declare const CampaignsListRuns200: Schema.Struct<{
|
|
|
1500
1932
|
readonly idempotencyKey: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1501
1933
|
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1502
1934
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1503
|
-
readonly contentSnapshot: Schema.Struct<{
|
|
1935
|
+
readonly contentSnapshot: Schema.Union<readonly [Schema.Struct<{
|
|
1504
1936
|
readonly channel: Schema.Literal<"email">;
|
|
1505
1937
|
readonly email: Schema.Struct<{
|
|
1506
1938
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -1544,7 +1976,31 @@ export declare const CampaignsListRuns200: Schema.Struct<{
|
|
|
1544
1976
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
1545
1977
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1546
1978
|
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
|
-
}
|
|
1979
|
+
}>, Schema.Struct<{
|
|
1980
|
+
readonly channel: Schema.Literal<"sms">;
|
|
1981
|
+
readonly sms: Schema.Struct<{
|
|
1982
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1983
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
1984
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1985
|
+
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]>>;
|
|
1986
|
+
}>;
|
|
1987
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1988
|
+
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]>>;
|
|
1989
|
+
}>, Schema.Struct<{
|
|
1990
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
1991
|
+
readonly whatsapp: Schema.Struct<{
|
|
1992
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
1993
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
1994
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
1995
|
+
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">]>;
|
|
1996
|
+
}>, Schema.Struct<{
|
|
1997
|
+
readonly customField: Schema.String;
|
|
1998
|
+
}>]>>>;
|
|
1999
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
2000
|
+
}>;
|
|
2001
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2002
|
+
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]>>;
|
|
2003
|
+
}>]>;
|
|
1548
2004
|
readonly audienceSnapshot: Schema.Struct<{
|
|
1549
2005
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
1550
2006
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -1561,7 +2017,7 @@ export declare const CampaignsListRuns200: Schema.Struct<{
|
|
|
1561
2017
|
readonly skippedCount: Schema.Finite;
|
|
1562
2018
|
readonly pendingCount: Schema.Finite;
|
|
1563
2019
|
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">]>;
|
|
2020
|
+
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
2021
|
readonly count: Schema.Finite;
|
|
1566
2022
|
}>>;
|
|
1567
2023
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1579,6 +2035,8 @@ export declare const CampaignsListRuns200: Schema.Struct<{
|
|
|
1579
2035
|
}>>;
|
|
1580
2036
|
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1581
2037
|
}>;
|
|
2038
|
+
export type CampaignsListRuns400 = MalformedRequestError;
|
|
2039
|
+
export declare const CampaignsListRuns400: typeof MalformedRequestError;
|
|
1582
2040
|
export type CampaignsListRuns401 = UnauthorizedError;
|
|
1583
2041
|
export declare const CampaignsListRuns401: typeof UnauthorizedError;
|
|
1584
2042
|
export type CampaignsListRuns403 = ForbiddenError;
|
|
@@ -1598,10 +2056,10 @@ export declare const CampaignsScheduleRunPathParams: Schema.Struct<{
|
|
|
1598
2056
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
1599
2057
|
}>;
|
|
1600
2058
|
export type CampaignsScheduleRunHeaders = {
|
|
1601
|
-
readonly "idempotency-key"?: string
|
|
2059
|
+
readonly "idempotency-key"?: string;
|
|
1602
2060
|
};
|
|
1603
2061
|
export declare const CampaignsScheduleRunHeaders: Schema.Struct<{
|
|
1604
|
-
readonly "idempotency-key": Schema.optionalKey<Schema.
|
|
2062
|
+
readonly "idempotency-key": Schema.optionalKey<Schema.String>;
|
|
1605
2063
|
}>;
|
|
1606
2064
|
export type CampaignsScheduleRunRequestJson = {
|
|
1607
2065
|
readonly scheduledFor?: __SamvaRuntimeAbsoluteInstant | null;
|
|
@@ -1618,7 +2076,7 @@ export declare const CampaignsScheduleRun201: Schema.Struct<{
|
|
|
1618
2076
|
readonly idempotencyKey: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1619
2077
|
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1620
2078
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1621
|
-
readonly contentSnapshot: Schema.Struct<{
|
|
2079
|
+
readonly contentSnapshot: Schema.Union<readonly [Schema.Struct<{
|
|
1622
2080
|
readonly channel: Schema.Literal<"email">;
|
|
1623
2081
|
readonly email: Schema.Struct<{
|
|
1624
2082
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -1662,7 +2120,31 @@ export declare const CampaignsScheduleRun201: Schema.Struct<{
|
|
|
1662
2120
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
1663
2121
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1664
2122
|
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
|
-
}
|
|
2123
|
+
}>, Schema.Struct<{
|
|
2124
|
+
readonly channel: Schema.Literal<"sms">;
|
|
2125
|
+
readonly sms: Schema.Struct<{
|
|
2126
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2127
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
2128
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2129
|
+
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]>>;
|
|
2130
|
+
}>;
|
|
2131
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2132
|
+
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]>>;
|
|
2133
|
+
}>, Schema.Struct<{
|
|
2134
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
2135
|
+
readonly whatsapp: Schema.Struct<{
|
|
2136
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
2137
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
2138
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
2139
|
+
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">]>;
|
|
2140
|
+
}>, Schema.Struct<{
|
|
2141
|
+
readonly customField: Schema.String;
|
|
2142
|
+
}>]>>>;
|
|
2143
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
2144
|
+
}>;
|
|
2145
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2146
|
+
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]>>;
|
|
2147
|
+
}>]>;
|
|
1666
2148
|
readonly audienceSnapshot: Schema.Struct<{
|
|
1667
2149
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
1668
2150
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -1679,7 +2161,7 @@ export declare const CampaignsScheduleRun201: Schema.Struct<{
|
|
|
1679
2161
|
readonly skippedCount: Schema.Finite;
|
|
1680
2162
|
readonly pendingCount: Schema.Finite;
|
|
1681
2163
|
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">]>;
|
|
2164
|
+
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
2165
|
readonly count: Schema.Finite;
|
|
1684
2166
|
}>>;
|
|
1685
2167
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1695,6 +2177,8 @@ export declare const CampaignsScheduleRun201: Schema.Struct<{
|
|
|
1695
2177
|
readonly createdAt: Schema.String;
|
|
1696
2178
|
readonly updatedAt: Schema.String;
|
|
1697
2179
|
}>;
|
|
2180
|
+
export type CampaignsScheduleRun400 = MalformedRequestError;
|
|
2181
|
+
export declare const CampaignsScheduleRun400: typeof MalformedRequestError;
|
|
1698
2182
|
export type CampaignsScheduleRun401 = UnauthorizedError;
|
|
1699
2183
|
export declare const CampaignsScheduleRun401: typeof UnauthorizedError;
|
|
1700
2184
|
export type CampaignsScheduleRun402 = PaymentRequiredError;
|
|
@@ -1732,7 +2216,7 @@ export declare const CampaignsGetRun200: Schema.Struct<{
|
|
|
1732
2216
|
readonly idempotencyKey: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1733
2217
|
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1734
2218
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1735
|
-
readonly contentSnapshot: Schema.Struct<{
|
|
2219
|
+
readonly contentSnapshot: Schema.Union<readonly [Schema.Struct<{
|
|
1736
2220
|
readonly channel: Schema.Literal<"email">;
|
|
1737
2221
|
readonly email: Schema.Struct<{
|
|
1738
2222
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -1776,7 +2260,31 @@ export declare const CampaignsGetRun200: Schema.Struct<{
|
|
|
1776
2260
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
1777
2261
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1778
2262
|
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
|
-
}
|
|
2263
|
+
}>, Schema.Struct<{
|
|
2264
|
+
readonly channel: Schema.Literal<"sms">;
|
|
2265
|
+
readonly sms: Schema.Struct<{
|
|
2266
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2267
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
2268
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2269
|
+
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]>>;
|
|
2270
|
+
}>;
|
|
2271
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2272
|
+
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]>>;
|
|
2273
|
+
}>, Schema.Struct<{
|
|
2274
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
2275
|
+
readonly whatsapp: Schema.Struct<{
|
|
2276
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
2277
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
2278
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
2279
|
+
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">]>;
|
|
2280
|
+
}>, Schema.Struct<{
|
|
2281
|
+
readonly customField: Schema.String;
|
|
2282
|
+
}>]>>>;
|
|
2283
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
2284
|
+
}>;
|
|
2285
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2286
|
+
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]>>;
|
|
2287
|
+
}>]>;
|
|
1780
2288
|
readonly audienceSnapshot: Schema.Struct<{
|
|
1781
2289
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
1782
2290
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -1793,7 +2301,7 @@ export declare const CampaignsGetRun200: Schema.Struct<{
|
|
|
1793
2301
|
readonly skippedCount: Schema.Finite;
|
|
1794
2302
|
readonly pendingCount: Schema.Finite;
|
|
1795
2303
|
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">]>;
|
|
2304
|
+
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
2305
|
readonly count: Schema.Finite;
|
|
1798
2306
|
}>>;
|
|
1799
2307
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1809,6 +2317,8 @@ export declare const CampaignsGetRun200: Schema.Struct<{
|
|
|
1809
2317
|
readonly createdAt: Schema.String;
|
|
1810
2318
|
readonly updatedAt: Schema.String;
|
|
1811
2319
|
}>;
|
|
2320
|
+
export type CampaignsGetRun400 = MalformedRequestError;
|
|
2321
|
+
export declare const CampaignsGetRun400: typeof MalformedRequestError;
|
|
1812
2322
|
export type CampaignsGetRun401 = UnauthorizedError;
|
|
1813
2323
|
export declare const CampaignsGetRun401: typeof UnauthorizedError;
|
|
1814
2324
|
export type CampaignsGetRun403 = ForbiddenError;
|
|
@@ -1840,7 +2350,7 @@ export declare const CampaignsCancelRun200: Schema.Struct<{
|
|
|
1840
2350
|
readonly idempotencyKey: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1841
2351
|
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1842
2352
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1843
|
-
readonly contentSnapshot: Schema.Struct<{
|
|
2353
|
+
readonly contentSnapshot: Schema.Union<readonly [Schema.Struct<{
|
|
1844
2354
|
readonly channel: Schema.Literal<"email">;
|
|
1845
2355
|
readonly email: Schema.Struct<{
|
|
1846
2356
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -1884,7 +2394,31 @@ export declare const CampaignsCancelRun200: Schema.Struct<{
|
|
|
1884
2394
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
1885
2395
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1886
2396
|
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
|
-
}
|
|
2397
|
+
}>, Schema.Struct<{
|
|
2398
|
+
readonly channel: Schema.Literal<"sms">;
|
|
2399
|
+
readonly sms: Schema.Struct<{
|
|
2400
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2401
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
2402
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2403
|
+
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]>>;
|
|
2404
|
+
}>;
|
|
2405
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2406
|
+
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]>>;
|
|
2407
|
+
}>, Schema.Struct<{
|
|
2408
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
2409
|
+
readonly whatsapp: Schema.Struct<{
|
|
2410
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
2411
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
2412
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
2413
|
+
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">]>;
|
|
2414
|
+
}>, Schema.Struct<{
|
|
2415
|
+
readonly customField: Schema.String;
|
|
2416
|
+
}>]>>>;
|
|
2417
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
2418
|
+
}>;
|
|
2419
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2420
|
+
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]>>;
|
|
2421
|
+
}>]>;
|
|
1888
2422
|
readonly audienceSnapshot: Schema.Struct<{
|
|
1889
2423
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
1890
2424
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -1901,7 +2435,7 @@ export declare const CampaignsCancelRun200: Schema.Struct<{
|
|
|
1901
2435
|
readonly skippedCount: Schema.Finite;
|
|
1902
2436
|
readonly pendingCount: Schema.Finite;
|
|
1903
2437
|
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">]>;
|
|
2438
|
+
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
2439
|
readonly count: Schema.Finite;
|
|
1906
2440
|
}>>;
|
|
1907
2441
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1918,6 +2452,8 @@ export declare const CampaignsCancelRun200: Schema.Struct<{
|
|
|
1918
2452
|
readonly updatedAt: Schema.String;
|
|
1919
2453
|
}>;
|
|
1920
2454
|
}>;
|
|
2455
|
+
export type CampaignsCancelRun400 = MalformedRequestError;
|
|
2456
|
+
export declare const CampaignsCancelRun400: typeof MalformedRequestError;
|
|
1921
2457
|
export type CampaignsCancelRun401 = UnauthorizedError;
|
|
1922
2458
|
export declare const CampaignsCancelRun401: typeof UnauthorizedError;
|
|
1923
2459
|
export type CampaignsCancelRun403 = ForbiddenError;
|
|
@@ -1953,7 +2489,7 @@ export declare const CampaignsPauseRun200: Schema.Struct<{
|
|
|
1953
2489
|
readonly idempotencyKey: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1954
2490
|
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1955
2491
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1956
|
-
readonly contentSnapshot: Schema.Struct<{
|
|
2492
|
+
readonly contentSnapshot: Schema.Union<readonly [Schema.Struct<{
|
|
1957
2493
|
readonly channel: Schema.Literal<"email">;
|
|
1958
2494
|
readonly email: Schema.Struct<{
|
|
1959
2495
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -1997,7 +2533,31 @@ export declare const CampaignsPauseRun200: Schema.Struct<{
|
|
|
1997
2533
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
1998
2534
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
1999
2535
|
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
|
-
}
|
|
2536
|
+
}>, Schema.Struct<{
|
|
2537
|
+
readonly channel: Schema.Literal<"sms">;
|
|
2538
|
+
readonly sms: Schema.Struct<{
|
|
2539
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2540
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
2541
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2542
|
+
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]>>;
|
|
2543
|
+
}>;
|
|
2544
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2545
|
+
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]>>;
|
|
2546
|
+
}>, Schema.Struct<{
|
|
2547
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
2548
|
+
readonly whatsapp: Schema.Struct<{
|
|
2549
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
2550
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
2551
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
2552
|
+
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">]>;
|
|
2553
|
+
}>, Schema.Struct<{
|
|
2554
|
+
readonly customField: Schema.String;
|
|
2555
|
+
}>]>>>;
|
|
2556
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
2557
|
+
}>;
|
|
2558
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2559
|
+
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]>>;
|
|
2560
|
+
}>]>;
|
|
2001
2561
|
readonly audienceSnapshot: Schema.Struct<{
|
|
2002
2562
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
2003
2563
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -2014,7 +2574,7 @@ export declare const CampaignsPauseRun200: Schema.Struct<{
|
|
|
2014
2574
|
readonly skippedCount: Schema.Finite;
|
|
2015
2575
|
readonly pendingCount: Schema.Finite;
|
|
2016
2576
|
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">]>;
|
|
2577
|
+
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
2578
|
readonly count: Schema.Finite;
|
|
2019
2579
|
}>>;
|
|
2020
2580
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -2031,6 +2591,8 @@ export declare const CampaignsPauseRun200: Schema.Struct<{
|
|
|
2031
2591
|
readonly updatedAt: Schema.String;
|
|
2032
2592
|
}>;
|
|
2033
2593
|
}>;
|
|
2594
|
+
export type CampaignsPauseRun400 = MalformedRequestError;
|
|
2595
|
+
export declare const CampaignsPauseRun400: typeof MalformedRequestError;
|
|
2034
2596
|
export type CampaignsPauseRun401 = UnauthorizedError;
|
|
2035
2597
|
export declare const CampaignsPauseRun401: typeof UnauthorizedError;
|
|
2036
2598
|
export type CampaignsPauseRun403 = ForbiddenError;
|
|
@@ -2056,14 +2618,14 @@ export declare const CampaignsListRecipientsPathParams: Schema.Struct<{
|
|
|
2056
2618
|
readonly runId: Schema.brand<Schema.String, "CampaignRunId">;
|
|
2057
2619
|
}>;
|
|
2058
2620
|
export type CampaignsListRecipientsQuery = {
|
|
2059
|
-
readonly status?: "pending" | "dispatching" | "dispatched" | "failed" | "skipped"
|
|
2621
|
+
readonly status?: "pending" | "dispatching" | "dispatched" | "failed" | "skipped";
|
|
2060
2622
|
readonly limit?: number | null;
|
|
2061
|
-
readonly cursor?:
|
|
2623
|
+
readonly cursor?: string;
|
|
2062
2624
|
};
|
|
2063
2625
|
export declare const CampaignsListRecipientsQuery: Schema.Struct<{
|
|
2064
|
-
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
2626
|
+
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"dispatching">, Schema.Literal<"dispatched">, Schema.Literal<"failed">, Schema.Literal<"skipped">]>>;
|
|
2065
2627
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
2066
|
-
readonly cursor: Schema.optionalKey<Schema.
|
|
2628
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
2067
2629
|
}>;
|
|
2068
2630
|
export type CampaignsListRecipients200 = CampaignRecipientPage;
|
|
2069
2631
|
export declare const CampaignsListRecipients200: Schema.Struct<{
|
|
@@ -2074,12 +2636,14 @@ export declare const CampaignsListRecipients200: Schema.Struct<{
|
|
|
2074
2636
|
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"dispatching">, Schema.Literal<"dispatched">, Schema.Literal<"failed">, Schema.Literal<"skipped">]>;
|
|
2075
2637
|
readonly messageId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2076
2638
|
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]>;
|
|
2639
|
+
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
2640
|
readonly createdAt: Schema.String;
|
|
2079
2641
|
readonly updatedAt: Schema.String;
|
|
2080
2642
|
}>>;
|
|
2081
2643
|
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2082
2644
|
}>;
|
|
2645
|
+
export type CampaignsListRecipients400 = MalformedRequestError;
|
|
2646
|
+
export declare const CampaignsListRecipients400: typeof MalformedRequestError;
|
|
2083
2647
|
export type CampaignsListRecipients401 = UnauthorizedError;
|
|
2084
2648
|
export declare const CampaignsListRecipients401: typeof UnauthorizedError;
|
|
2085
2649
|
export type CampaignsListRecipients403 = ForbiddenError;
|
|
@@ -2123,10 +2687,12 @@ export declare const CampaignsGetRunReport200: Schema.Struct<{
|
|
|
2123
2687
|
}>>;
|
|
2124
2688
|
readonly replyCount: Schema.Finite;
|
|
2125
2689
|
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">]>;
|
|
2690
|
+
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
2691
|
readonly count: Schema.Finite;
|
|
2128
2692
|
}>>;
|
|
2129
2693
|
}>;
|
|
2694
|
+
export type CampaignsGetRunReport400 = MalformedRequestError;
|
|
2695
|
+
export declare const CampaignsGetRunReport400: typeof MalformedRequestError;
|
|
2130
2696
|
export type CampaignsGetRunReport401 = UnauthorizedError;
|
|
2131
2697
|
export declare const CampaignsGetRunReport401: typeof UnauthorizedError;
|
|
2132
2698
|
export type CampaignsGetRunReport403 = ForbiddenError;
|
|
@@ -2158,7 +2724,7 @@ export declare const CampaignsResumeRun200: Schema.Struct<{
|
|
|
2158
2724
|
readonly idempotencyKey: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2159
2725
|
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2160
2726
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2161
|
-
readonly contentSnapshot: Schema.Struct<{
|
|
2727
|
+
readonly contentSnapshot: Schema.Union<readonly [Schema.Struct<{
|
|
2162
2728
|
readonly channel: Schema.Literal<"email">;
|
|
2163
2729
|
readonly email: Schema.Struct<{
|
|
2164
2730
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -2202,7 +2768,31 @@ export declare const CampaignsResumeRun200: Schema.Struct<{
|
|
|
2202
2768
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
2203
2769
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2204
2770
|
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
|
-
}
|
|
2771
|
+
}>, Schema.Struct<{
|
|
2772
|
+
readonly channel: Schema.Literal<"sms">;
|
|
2773
|
+
readonly sms: Schema.Struct<{
|
|
2774
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2775
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
2776
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2777
|
+
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]>>;
|
|
2778
|
+
}>;
|
|
2779
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2780
|
+
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]>>;
|
|
2781
|
+
}>, Schema.Struct<{
|
|
2782
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
2783
|
+
readonly whatsapp: Schema.Struct<{
|
|
2784
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
2785
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
2786
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
2787
|
+
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">]>;
|
|
2788
|
+
}>, Schema.Struct<{
|
|
2789
|
+
readonly customField: Schema.String;
|
|
2790
|
+
}>]>>>;
|
|
2791
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
2792
|
+
}>;
|
|
2793
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2794
|
+
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]>>;
|
|
2795
|
+
}>]>;
|
|
2206
2796
|
readonly audienceSnapshot: Schema.Struct<{
|
|
2207
2797
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
2208
2798
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -2219,7 +2809,7 @@ export declare const CampaignsResumeRun200: Schema.Struct<{
|
|
|
2219
2809
|
readonly skippedCount: Schema.Finite;
|
|
2220
2810
|
readonly pendingCount: Schema.Finite;
|
|
2221
2811
|
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">]>;
|
|
2812
|
+
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
2813
|
readonly count: Schema.Finite;
|
|
2224
2814
|
}>>;
|
|
2225
2815
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -2236,6 +2826,8 @@ export declare const CampaignsResumeRun200: Schema.Struct<{
|
|
|
2236
2826
|
readonly updatedAt: Schema.String;
|
|
2237
2827
|
}>;
|
|
2238
2828
|
}>;
|
|
2829
|
+
export type CampaignsResumeRun400 = MalformedRequestError;
|
|
2830
|
+
export declare const CampaignsResumeRun400: typeof MalformedRequestError;
|
|
2239
2831
|
export type CampaignsResumeRun401 = UnauthorizedError;
|
|
2240
2832
|
export declare const CampaignsResumeRun401: typeof UnauthorizedError;
|
|
2241
2833
|
export type CampaignsResumeRun402 = PaymentRequiredError;
|
|
@@ -2260,7 +2852,7 @@ export type CampaignsPreviewRequestJson = {
|
|
|
2260
2852
|
readonly contactId?: ContactId | null;
|
|
2261
2853
|
};
|
|
2262
2854
|
export declare const CampaignsPreviewRequestJson: Schema.Struct<{
|
|
2263
|
-
readonly content: Schema.Struct<{
|
|
2855
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
2264
2856
|
readonly channel: Schema.Literal<"email">;
|
|
2265
2857
|
readonly email: Schema.Struct<{
|
|
2266
2858
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -2304,7 +2896,31 @@ export declare const CampaignsPreviewRequestJson: Schema.Struct<{
|
|
|
2304
2896
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
2305
2897
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2306
2898
|
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
|
-
}
|
|
2899
|
+
}>, Schema.Struct<{
|
|
2900
|
+
readonly channel: Schema.Literal<"sms">;
|
|
2901
|
+
readonly sms: Schema.Struct<{
|
|
2902
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2903
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
2904
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2905
|
+
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]>>;
|
|
2906
|
+
}>;
|
|
2907
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2908
|
+
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]>>;
|
|
2909
|
+
}>, Schema.Struct<{
|
|
2910
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
2911
|
+
readonly whatsapp: Schema.Struct<{
|
|
2912
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
2913
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
2914
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
2915
|
+
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">]>;
|
|
2916
|
+
}>, Schema.Struct<{
|
|
2917
|
+
readonly customField: Schema.String;
|
|
2918
|
+
}>]>>>;
|
|
2919
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
2920
|
+
}>;
|
|
2921
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2922
|
+
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]>>;
|
|
2923
|
+
}>]>;
|
|
2308
2924
|
readonly audience: Schema.Struct<{
|
|
2309
2925
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
2310
2926
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -2321,6 +2937,8 @@ export declare const CampaignsPreview200: Schema.Struct<{
|
|
|
2321
2937
|
readonly html: Schema.String;
|
|
2322
2938
|
readonly text: Schema.String;
|
|
2323
2939
|
}>;
|
|
2940
|
+
export type CampaignsPreview400 = MalformedRequestError;
|
|
2941
|
+
export declare const CampaignsPreview400: typeof MalformedRequestError;
|
|
2324
2942
|
export type CampaignsPreview401 = UnauthorizedError;
|
|
2325
2943
|
export declare const CampaignsPreview401: typeof UnauthorizedError;
|
|
2326
2944
|
export type CampaignsPreview403 = FlagDisabledError | ForbiddenError;
|
|
@@ -2343,7 +2961,7 @@ export type CampaignsSendTestRequestJson = {
|
|
|
2343
2961
|
readonly contactId?: ContactId | null;
|
|
2344
2962
|
};
|
|
2345
2963
|
export declare const CampaignsSendTestRequestJson: Schema.Struct<{
|
|
2346
|
-
readonly content: Schema.Struct<{
|
|
2964
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
2347
2965
|
readonly channel: Schema.Literal<"email">;
|
|
2348
2966
|
readonly email: Schema.Struct<{
|
|
2349
2967
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -2387,7 +3005,31 @@ export declare const CampaignsSendTestRequestJson: Schema.Struct<{
|
|
|
2387
3005
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
2388
3006
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2389
3007
|
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
|
-
}
|
|
3008
|
+
}>, Schema.Struct<{
|
|
3009
|
+
readonly channel: Schema.Literal<"sms">;
|
|
3010
|
+
readonly sms: Schema.Struct<{
|
|
3011
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3012
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
3013
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3014
|
+
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]>>;
|
|
3015
|
+
}>;
|
|
3016
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3017
|
+
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]>>;
|
|
3018
|
+
}>, Schema.Struct<{
|
|
3019
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
3020
|
+
readonly whatsapp: Schema.Struct<{
|
|
3021
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
3022
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
3023
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
3024
|
+
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">]>;
|
|
3025
|
+
}>, Schema.Struct<{
|
|
3026
|
+
readonly customField: Schema.String;
|
|
3027
|
+
}>]>>>;
|
|
3028
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
3029
|
+
}>;
|
|
3030
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3031
|
+
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]>>;
|
|
3032
|
+
}>]>;
|
|
2391
3033
|
readonly audience: Schema.Struct<{
|
|
2392
3034
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
2393
3035
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -2401,6 +3043,8 @@ export type CampaignsSendTest200 = CampaignTestSend;
|
|
|
2401
3043
|
export declare const CampaignsSendTest200: Schema.Struct<{
|
|
2402
3044
|
readonly id: Schema.brand<Schema.String, "MessageId">;
|
|
2403
3045
|
}>;
|
|
3046
|
+
export type CampaignsSendTest400 = MalformedRequestError;
|
|
3047
|
+
export declare const CampaignsSendTest400: typeof MalformedRequestError;
|
|
2404
3048
|
export type CampaignsSendTest401 = UnauthorizedError;
|
|
2405
3049
|
export declare const CampaignsSendTest401: typeof UnauthorizedError;
|
|
2406
3050
|
export type CampaignsSendTest402 = PaymentRequiredError;
|
|
@@ -2428,8 +3072,8 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2428
3072
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2429
3073
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
2430
3074
|
readonly name: Schema.String;
|
|
2431
|
-
readonly channel: Schema.Literal<"email">;
|
|
2432
|
-
readonly content: Schema.Struct<{
|
|
3075
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
3076
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
2433
3077
|
readonly channel: Schema.Literal<"email">;
|
|
2434
3078
|
readonly email: Schema.Struct<{
|
|
2435
3079
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -2473,7 +3117,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2473
3117
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
2474
3118
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2475
3119
|
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
|
-
}
|
|
3120
|
+
}>, Schema.Struct<{
|
|
3121
|
+
readonly channel: Schema.Literal<"sms">;
|
|
3122
|
+
readonly sms: Schema.Struct<{
|
|
3123
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3124
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
3125
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3126
|
+
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]>>;
|
|
3127
|
+
}>;
|
|
3128
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3129
|
+
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]>>;
|
|
3130
|
+
}>, Schema.Struct<{
|
|
3131
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
3132
|
+
readonly whatsapp: Schema.Struct<{
|
|
3133
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
3134
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
3135
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
3136
|
+
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">]>;
|
|
3137
|
+
}>, Schema.Struct<{
|
|
3138
|
+
readonly customField: Schema.String;
|
|
3139
|
+
}>]>>>;
|
|
3140
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
3141
|
+
}>;
|
|
3142
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3143
|
+
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]>>;
|
|
3144
|
+
}>]>;
|
|
2477
3145
|
readonly audience: Schema.Struct<{
|
|
2478
3146
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
2479
3147
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -2553,6 +3221,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2553
3221
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
2554
3222
|
readonly message: Schema.String;
|
|
2555
3223
|
readonly retryAfterSeconds: Schema.Finite;
|
|
3224
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
3225
|
+
readonly _tag: "MalformedRequestError";
|
|
3226
|
+
readonly message: string;
|
|
3227
|
+
readonly fields: {
|
|
3228
|
+
readonly [x: string]: readonly string[];
|
|
3229
|
+
};
|
|
3230
|
+
}, readonly [Schema.Struct<{
|
|
3231
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3232
|
+
readonly message: Schema.String;
|
|
3233
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3234
|
+
}>], {
|
|
3235
|
+
readonly _tag: "MalformedRequestError";
|
|
3236
|
+
readonly message: string;
|
|
3237
|
+
readonly fields: {
|
|
3238
|
+
readonly [x: string]: readonly string[];
|
|
3239
|
+
};
|
|
3240
|
+
}>, Schema.Struct<{
|
|
3241
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3242
|
+
readonly message: Schema.String;
|
|
3243
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
2556
3244
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
2557
3245
|
readonly _tag: "ResourceNotFoundError";
|
|
2558
3246
|
readonly resource: string;
|
|
@@ -2618,7 +3306,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2618
3306
|
readonly idempotencyKey: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2619
3307
|
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2620
3308
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2621
|
-
readonly contentSnapshot: Schema.Struct<{
|
|
3309
|
+
readonly contentSnapshot: Schema.Union<readonly [Schema.Struct<{
|
|
2622
3310
|
readonly channel: Schema.Literal<"email">;
|
|
2623
3311
|
readonly email: Schema.Struct<{
|
|
2624
3312
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -2662,7 +3350,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2662
3350
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
2663
3351
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2664
3352
|
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
|
-
}
|
|
3353
|
+
}>, Schema.Struct<{
|
|
3354
|
+
readonly channel: Schema.Literal<"sms">;
|
|
3355
|
+
readonly sms: Schema.Struct<{
|
|
3356
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3357
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
3358
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3359
|
+
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]>>;
|
|
3360
|
+
}>;
|
|
3361
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3362
|
+
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]>>;
|
|
3363
|
+
}>, Schema.Struct<{
|
|
3364
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
3365
|
+
readonly whatsapp: Schema.Struct<{
|
|
3366
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
3367
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
3368
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
3369
|
+
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">]>;
|
|
3370
|
+
}>, Schema.Struct<{
|
|
3371
|
+
readonly customField: Schema.String;
|
|
3372
|
+
}>]>>>;
|
|
3373
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
3374
|
+
}>;
|
|
3375
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3376
|
+
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]>>;
|
|
3377
|
+
}>]>;
|
|
2666
3378
|
readonly audienceSnapshot: Schema.Struct<{
|
|
2667
3379
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
2668
3380
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -2679,7 +3391,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2679
3391
|
readonly skippedCount: Schema.Finite;
|
|
2680
3392
|
readonly pendingCount: Schema.Finite;
|
|
2681
3393
|
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">]>;
|
|
3394
|
+
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
3395
|
readonly count: Schema.Finite;
|
|
2684
3396
|
}>>;
|
|
2685
3397
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -2755,6 +3467,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2755
3467
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
2756
3468
|
readonly message: Schema.String;
|
|
2757
3469
|
readonly retryAfterSeconds: Schema.Finite;
|
|
3470
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
3471
|
+
readonly _tag: "MalformedRequestError";
|
|
3472
|
+
readonly message: string;
|
|
3473
|
+
readonly fields: {
|
|
3474
|
+
readonly [x: string]: readonly string[];
|
|
3475
|
+
};
|
|
3476
|
+
}, readonly [Schema.Struct<{
|
|
3477
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3478
|
+
readonly message: Schema.String;
|
|
3479
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3480
|
+
}>], {
|
|
3481
|
+
readonly _tag: "MalformedRequestError";
|
|
3482
|
+
readonly message: string;
|
|
3483
|
+
readonly fields: {
|
|
3484
|
+
readonly [x: string]: readonly string[];
|
|
3485
|
+
};
|
|
3486
|
+
}>, Schema.Struct<{
|
|
3487
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3488
|
+
readonly message: Schema.String;
|
|
3489
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
2758
3490
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
2759
3491
|
readonly _tag: "ResourceNotFoundError";
|
|
2760
3492
|
readonly resource: string;
|
|
@@ -2809,8 +3541,8 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2809
3541
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
2810
3542
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"campaignsCreate", "POST", "/v1/campaigns", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2811
3543
|
readonly name: Schema.String;
|
|
2812
|
-
readonly channel: Schema.Literal<"email">;
|
|
2813
|
-
readonly content: Schema.Struct<{
|
|
3544
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
3545
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
2814
3546
|
readonly channel: Schema.Literal<"email">;
|
|
2815
3547
|
readonly email: Schema.Struct<{
|
|
2816
3548
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -2854,7 +3586,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2854
3586
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
2855
3587
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2856
3588
|
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
|
-
}
|
|
3589
|
+
}>, Schema.Struct<{
|
|
3590
|
+
readonly channel: Schema.Literal<"sms">;
|
|
3591
|
+
readonly sms: Schema.Struct<{
|
|
3592
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3593
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
3594
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3595
|
+
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]>>;
|
|
3596
|
+
}>;
|
|
3597
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3598
|
+
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]>>;
|
|
3599
|
+
}>, Schema.Struct<{
|
|
3600
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
3601
|
+
readonly whatsapp: Schema.Struct<{
|
|
3602
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
3603
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
3604
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
3605
|
+
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">]>;
|
|
3606
|
+
}>, Schema.Struct<{
|
|
3607
|
+
readonly customField: Schema.String;
|
|
3608
|
+
}>]>>>;
|
|
3609
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
3610
|
+
}>;
|
|
3611
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3612
|
+
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]>>;
|
|
3613
|
+
}>]>;
|
|
2858
3614
|
readonly audience: Schema.Struct<{
|
|
2859
3615
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
2860
3616
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -2868,8 +3624,8 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2868
3624
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2869
3625
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
2870
3626
|
readonly name: Schema.String;
|
|
2871
|
-
readonly channel: Schema.Literal<"email">;
|
|
2872
|
-
readonly content: Schema.Struct<{
|
|
3627
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
3628
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
2873
3629
|
readonly channel: Schema.Literal<"email">;
|
|
2874
3630
|
readonly email: Schema.Struct<{
|
|
2875
3631
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -2913,7 +3669,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2913
3669
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
2914
3670
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2915
3671
|
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
|
-
}
|
|
3672
|
+
}>, Schema.Struct<{
|
|
3673
|
+
readonly channel: Schema.Literal<"sms">;
|
|
3674
|
+
readonly sms: Schema.Struct<{
|
|
3675
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3676
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
3677
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3678
|
+
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]>>;
|
|
3679
|
+
}>;
|
|
3680
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3681
|
+
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]>>;
|
|
3682
|
+
}>, Schema.Struct<{
|
|
3683
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
3684
|
+
readonly whatsapp: Schema.Struct<{
|
|
3685
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
3686
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
3687
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
3688
|
+
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">]>;
|
|
3689
|
+
}>, Schema.Struct<{
|
|
3690
|
+
readonly customField: Schema.String;
|
|
3691
|
+
}>]>>>;
|
|
3692
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
3693
|
+
}>;
|
|
3694
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3695
|
+
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]>>;
|
|
3696
|
+
}>]>;
|
|
2917
3697
|
readonly audience: Schema.Struct<{
|
|
2918
3698
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
2919
3699
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -2968,11 +3748,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2968
3748
|
}>], {
|
|
2969
3749
|
readonly _tag: "GatewayTimeoutError";
|
|
2970
3750
|
readonly message: string;
|
|
2971
|
-
readonly retryAfterSeconds: number;
|
|
3751
|
+
readonly retryAfterSeconds: number;
|
|
3752
|
+
}>, Schema.Struct<{
|
|
3753
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
3754
|
+
readonly message: Schema.String;
|
|
3755
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
3756
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
3757
|
+
readonly _tag: "MalformedRequestError";
|
|
3758
|
+
readonly message: string;
|
|
3759
|
+
readonly fields: {
|
|
3760
|
+
readonly [x: string]: readonly string[];
|
|
3761
|
+
};
|
|
3762
|
+
}, readonly [Schema.Struct<{
|
|
3763
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3764
|
+
readonly message: Schema.String;
|
|
3765
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3766
|
+
}>], {
|
|
3767
|
+
readonly _tag: "MalformedRequestError";
|
|
3768
|
+
readonly message: string;
|
|
3769
|
+
readonly fields: {
|
|
3770
|
+
readonly [x: string]: readonly string[];
|
|
3771
|
+
};
|
|
2972
3772
|
}>, Schema.Struct<{
|
|
2973
|
-
readonly _tag: Schema.tag<"
|
|
3773
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
2974
3774
|
readonly message: Schema.String;
|
|
2975
|
-
readonly
|
|
3775
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
2976
3776
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<PaymentRequiredError, {
|
|
2977
3777
|
readonly _tag: "PaymentRequiredError";
|
|
2978
3778
|
readonly message: string;
|
|
@@ -2997,6 +3797,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
2997
3797
|
readonly resource: Schema.String;
|
|
2998
3798
|
readonly currentUsage: Schema.Finite;
|
|
2999
3799
|
readonly limit: Schema.Finite;
|
|
3800
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
3801
|
+
readonly _tag: "ResourceNotFoundError";
|
|
3802
|
+
readonly resource: string;
|
|
3803
|
+
readonly id: string;
|
|
3804
|
+
readonly message: string;
|
|
3805
|
+
}, readonly [Schema.Struct<{
|
|
3806
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
3807
|
+
readonly resource: Schema.String;
|
|
3808
|
+
readonly id: Schema.String;
|
|
3809
|
+
readonly message: Schema.String;
|
|
3810
|
+
}>], {
|
|
3811
|
+
readonly _tag: "ResourceNotFoundError";
|
|
3812
|
+
readonly resource: string;
|
|
3813
|
+
readonly id: string;
|
|
3814
|
+
readonly message: string;
|
|
3815
|
+
}>, Schema.Struct<{
|
|
3816
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
3817
|
+
readonly resource: Schema.String;
|
|
3818
|
+
readonly id: Schema.String;
|
|
3819
|
+
readonly message: Schema.String;
|
|
3000
3820
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
3001
3821
|
readonly _tag: "UnauthorizedError";
|
|
3002
3822
|
readonly message: string;
|
|
@@ -3034,8 +3854,8 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3034
3854
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3035
3855
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
3036
3856
|
readonly name: Schema.String;
|
|
3037
|
-
readonly channel: Schema.Literal<"email">;
|
|
3038
|
-
readonly content: Schema.Struct<{
|
|
3857
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
3858
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
3039
3859
|
readonly channel: Schema.Literal<"email">;
|
|
3040
3860
|
readonly email: Schema.Struct<{
|
|
3041
3861
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -3079,7 +3899,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3079
3899
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
3080
3900
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3081
3901
|
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
|
-
}
|
|
3902
|
+
}>, Schema.Struct<{
|
|
3903
|
+
readonly channel: Schema.Literal<"sms">;
|
|
3904
|
+
readonly sms: Schema.Struct<{
|
|
3905
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3906
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
3907
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3908
|
+
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]>>;
|
|
3909
|
+
}>;
|
|
3910
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3911
|
+
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]>>;
|
|
3912
|
+
}>, Schema.Struct<{
|
|
3913
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
3914
|
+
readonly whatsapp: Schema.Struct<{
|
|
3915
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
3916
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
3917
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
3918
|
+
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">]>;
|
|
3919
|
+
}>, Schema.Struct<{
|
|
3920
|
+
readonly customField: Schema.String;
|
|
3921
|
+
}>]>>>;
|
|
3922
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
3923
|
+
}>;
|
|
3924
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3925
|
+
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]>>;
|
|
3926
|
+
}>]>;
|
|
3083
3927
|
readonly audience: Schema.Struct<{
|
|
3084
3928
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
3085
3929
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -3139,6 +3983,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3139
3983
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
3140
3984
|
readonly message: Schema.String;
|
|
3141
3985
|
readonly retryAfterSeconds: Schema.Finite;
|
|
3986
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
3987
|
+
readonly _tag: "MalformedRequestError";
|
|
3988
|
+
readonly message: string;
|
|
3989
|
+
readonly fields: {
|
|
3990
|
+
readonly [x: string]: readonly string[];
|
|
3991
|
+
};
|
|
3992
|
+
}, readonly [Schema.Struct<{
|
|
3993
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3994
|
+
readonly message: Schema.String;
|
|
3995
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3996
|
+
}>], {
|
|
3997
|
+
readonly _tag: "MalformedRequestError";
|
|
3998
|
+
readonly message: string;
|
|
3999
|
+
readonly fields: {
|
|
4000
|
+
readonly [x: string]: readonly string[];
|
|
4001
|
+
};
|
|
4002
|
+
}>, Schema.Struct<{
|
|
4003
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4004
|
+
readonly message: Schema.String;
|
|
4005
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3142
4006
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
3143
4007
|
readonly _tag: "ResourceNotFoundError";
|
|
3144
4008
|
readonly resource: string;
|
|
@@ -3202,7 +4066,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3202
4066
|
readonly idempotencyKey: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3203
4067
|
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3204
4068
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3205
|
-
readonly contentSnapshot: Schema.Struct<{
|
|
4069
|
+
readonly contentSnapshot: Schema.Union<readonly [Schema.Struct<{
|
|
3206
4070
|
readonly channel: Schema.Literal<"email">;
|
|
3207
4071
|
readonly email: Schema.Struct<{
|
|
3208
4072
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -3246,7 +4110,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3246
4110
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
3247
4111
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3248
4112
|
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
|
-
}
|
|
4113
|
+
}>, Schema.Struct<{
|
|
4114
|
+
readonly channel: Schema.Literal<"sms">;
|
|
4115
|
+
readonly sms: Schema.Struct<{
|
|
4116
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4117
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
4118
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4119
|
+
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]>>;
|
|
4120
|
+
}>;
|
|
4121
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4122
|
+
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]>>;
|
|
4123
|
+
}>, Schema.Struct<{
|
|
4124
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
4125
|
+
readonly whatsapp: Schema.Struct<{
|
|
4126
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
4127
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
4128
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
4129
|
+
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">]>;
|
|
4130
|
+
}>, Schema.Struct<{
|
|
4131
|
+
readonly customField: Schema.String;
|
|
4132
|
+
}>]>>>;
|
|
4133
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
4134
|
+
}>;
|
|
4135
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4136
|
+
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
|
+
}>]>;
|
|
3250
4138
|
readonly audienceSnapshot: Schema.Struct<{
|
|
3251
4139
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
3252
4140
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -3263,7 +4151,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3263
4151
|
readonly skippedCount: Schema.Finite;
|
|
3264
4152
|
readonly pendingCount: Schema.Finite;
|
|
3265
4153
|
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">]>;
|
|
4154
|
+
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
4155
|
readonly count: Schema.Finite;
|
|
3268
4156
|
}>>;
|
|
3269
4157
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -3306,6 +4194,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3306
4194
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
3307
4195
|
readonly message: Schema.String;
|
|
3308
4196
|
readonly retryAfterSeconds: Schema.Finite;
|
|
4197
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
4198
|
+
readonly _tag: "MalformedRequestError";
|
|
4199
|
+
readonly message: string;
|
|
4200
|
+
readonly fields: {
|
|
4201
|
+
readonly [x: string]: readonly string[];
|
|
4202
|
+
};
|
|
4203
|
+
}, readonly [Schema.Struct<{
|
|
4204
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4205
|
+
readonly message: Schema.String;
|
|
4206
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4207
|
+
}>], {
|
|
4208
|
+
readonly _tag: "MalformedRequestError";
|
|
4209
|
+
readonly message: string;
|
|
4210
|
+
readonly fields: {
|
|
4211
|
+
readonly [x: string]: readonly string[];
|
|
4212
|
+
};
|
|
4213
|
+
}>, Schema.Struct<{
|
|
4214
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4215
|
+
readonly message: Schema.String;
|
|
4216
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3309
4217
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
3310
4218
|
readonly _tag: "ResourceNotFoundError";
|
|
3311
4219
|
readonly resource: string;
|
|
@@ -3383,7 +4291,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3383
4291
|
}>>;
|
|
3384
4292
|
readonly replyCount: Schema.Finite;
|
|
3385
4293
|
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">]>;
|
|
4294
|
+
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
4295
|
readonly count: Schema.Finite;
|
|
3388
4296
|
}>>;
|
|
3389
4297
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
@@ -3414,6 +4322,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3414
4322
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
3415
4323
|
readonly message: Schema.String;
|
|
3416
4324
|
readonly retryAfterSeconds: Schema.Finite;
|
|
4325
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
4326
|
+
readonly _tag: "MalformedRequestError";
|
|
4327
|
+
readonly message: string;
|
|
4328
|
+
readonly fields: {
|
|
4329
|
+
readonly [x: string]: readonly string[];
|
|
4330
|
+
};
|
|
4331
|
+
}, readonly [Schema.Struct<{
|
|
4332
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4333
|
+
readonly message: Schema.String;
|
|
4334
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4335
|
+
}>], {
|
|
4336
|
+
readonly _tag: "MalformedRequestError";
|
|
4337
|
+
readonly message: string;
|
|
4338
|
+
readonly fields: {
|
|
4339
|
+
readonly [x: string]: readonly string[];
|
|
4340
|
+
};
|
|
4341
|
+
}>, Schema.Struct<{
|
|
4342
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4343
|
+
readonly message: Schema.String;
|
|
4344
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3417
4345
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
3418
4346
|
readonly _tag: "ResourceNotFoundError";
|
|
3419
4347
|
readonly resource: string;
|
|
@@ -3467,15 +4395,15 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3467
4395
|
readonly message: Schema.String;
|
|
3468
4396
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
3469
4397
|
}>, 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.
|
|
4398
|
+
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"archived">]>>;
|
|
3471
4399
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
3472
|
-
readonly cursor: Schema.optionalKey<Schema.
|
|
4400
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
3473
4401
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3474
4402
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
3475
4403
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
3476
4404
|
readonly name: Schema.String;
|
|
3477
|
-
readonly channel: Schema.Literal<"email">;
|
|
3478
|
-
readonly content: Schema.Struct<{
|
|
4405
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
4406
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
3479
4407
|
readonly channel: Schema.Literal<"email">;
|
|
3480
4408
|
readonly email: Schema.Struct<{
|
|
3481
4409
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -3519,7 +4447,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3519
4447
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
3520
4448
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3521
4449
|
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
|
-
}
|
|
4450
|
+
}>, Schema.Struct<{
|
|
4451
|
+
readonly channel: Schema.Literal<"sms">;
|
|
4452
|
+
readonly sms: Schema.Struct<{
|
|
4453
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4454
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
4455
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4456
|
+
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]>>;
|
|
4457
|
+
}>;
|
|
4458
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4459
|
+
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]>>;
|
|
4460
|
+
}>, Schema.Struct<{
|
|
4461
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
4462
|
+
readonly whatsapp: Schema.Struct<{
|
|
4463
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
4464
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
4465
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
4466
|
+
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">]>;
|
|
4467
|
+
}>, Schema.Struct<{
|
|
4468
|
+
readonly customField: Schema.String;
|
|
4469
|
+
}>]>>>;
|
|
4470
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
4471
|
+
}>;
|
|
4472
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4473
|
+
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]>>;
|
|
4474
|
+
}>]>;
|
|
3523
4475
|
readonly audience: Schema.Struct<{
|
|
3524
4476
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
3525
4477
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -3582,6 +4534,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3582
4534
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
3583
4535
|
readonly message: Schema.String;
|
|
3584
4536
|
readonly retryAfterSeconds: Schema.Finite;
|
|
4537
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
4538
|
+
readonly _tag: "MalformedRequestError";
|
|
4539
|
+
readonly message: string;
|
|
4540
|
+
readonly fields: {
|
|
4541
|
+
readonly [x: string]: readonly string[];
|
|
4542
|
+
};
|
|
4543
|
+
}, readonly [Schema.Struct<{
|
|
4544
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4545
|
+
readonly message: Schema.String;
|
|
4546
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4547
|
+
}>], {
|
|
4548
|
+
readonly _tag: "MalformedRequestError";
|
|
4549
|
+
readonly message: string;
|
|
4550
|
+
readonly fields: {
|
|
4551
|
+
readonly [x: string]: readonly string[];
|
|
4552
|
+
};
|
|
4553
|
+
}>, Schema.Struct<{
|
|
4554
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4555
|
+
readonly message: Schema.String;
|
|
4556
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3585
4557
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
3586
4558
|
readonly _tag: "UnauthorizedError";
|
|
3587
4559
|
readonly message: string;
|
|
@@ -3618,9 +4590,9 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3618
4590
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
3619
4591
|
readonly runId: Schema.brand<Schema.String, "CampaignRunId">;
|
|
3620
4592
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
3621
|
-
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
4593
|
+
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"dispatching">, Schema.Literal<"dispatched">, Schema.Literal<"failed">, Schema.Literal<"skipped">]>>;
|
|
3622
4594
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
3623
|
-
readonly cursor: Schema.optionalKey<Schema.
|
|
4595
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
3624
4596
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3625
4597
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
3626
4598
|
readonly id: Schema.brand<Schema.String, "CampaignRecipientId">;
|
|
@@ -3629,7 +4601,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3629
4601
|
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"dispatching">, Schema.Literal<"dispatched">, Schema.Literal<"failed">, Schema.Literal<"skipped">]>;
|
|
3630
4602
|
readonly messageId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3631
4603
|
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]>;
|
|
4604
|
+
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
4605
|
readonly createdAt: Schema.String;
|
|
3634
4606
|
readonly updatedAt: Schema.String;
|
|
3635
4607
|
}>>;
|
|
@@ -3662,6 +4634,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3662
4634
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
3663
4635
|
readonly message: Schema.String;
|
|
3664
4636
|
readonly retryAfterSeconds: Schema.Finite;
|
|
4637
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
4638
|
+
readonly _tag: "MalformedRequestError";
|
|
4639
|
+
readonly message: string;
|
|
4640
|
+
readonly fields: {
|
|
4641
|
+
readonly [x: string]: readonly string[];
|
|
4642
|
+
};
|
|
4643
|
+
}, readonly [Schema.Struct<{
|
|
4644
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4645
|
+
readonly message: Schema.String;
|
|
4646
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4647
|
+
}>], {
|
|
4648
|
+
readonly _tag: "MalformedRequestError";
|
|
4649
|
+
readonly message: string;
|
|
4650
|
+
readonly fields: {
|
|
4651
|
+
readonly [x: string]: readonly string[];
|
|
4652
|
+
};
|
|
4653
|
+
}>, Schema.Struct<{
|
|
4654
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4655
|
+
readonly message: Schema.String;
|
|
4656
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3665
4657
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
3666
4658
|
readonly _tag: "ResourceNotFoundError";
|
|
3667
4659
|
readonly resource: string;
|
|
@@ -3717,9 +4709,9 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3717
4709
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"campaignsListRuns", "GET", "/v1/campaigns/:id/runs", Schema.toCodecStringTree<Schema.Struct<{
|
|
3718
4710
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
3719
4711
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
3720
|
-
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
4712
|
+
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
4713
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
3722
|
-
readonly cursor: Schema.optionalKey<Schema.
|
|
4714
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
3723
4715
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
3724
4716
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
3725
4717
|
readonly id: Schema.brand<Schema.String, "CampaignRunId">;
|
|
@@ -3729,7 +4721,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3729
4721
|
readonly idempotencyKey: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3730
4722
|
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3731
4723
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3732
|
-
readonly contentSnapshot: Schema.Struct<{
|
|
4724
|
+
readonly contentSnapshot: Schema.Union<readonly [Schema.Struct<{
|
|
3733
4725
|
readonly channel: Schema.Literal<"email">;
|
|
3734
4726
|
readonly email: Schema.Struct<{
|
|
3735
4727
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -3773,7 +4765,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3773
4765
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
3774
4766
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3775
4767
|
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
|
-
}
|
|
4768
|
+
}>, Schema.Struct<{
|
|
4769
|
+
readonly channel: Schema.Literal<"sms">;
|
|
4770
|
+
readonly sms: Schema.Struct<{
|
|
4771
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4772
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
4773
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4774
|
+
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]>>;
|
|
4775
|
+
}>;
|
|
4776
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4777
|
+
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]>>;
|
|
4778
|
+
}>, Schema.Struct<{
|
|
4779
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
4780
|
+
readonly whatsapp: Schema.Struct<{
|
|
4781
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
4782
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
4783
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
4784
|
+
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">]>;
|
|
4785
|
+
}>, Schema.Struct<{
|
|
4786
|
+
readonly customField: Schema.String;
|
|
4787
|
+
}>]>>>;
|
|
4788
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
4789
|
+
}>;
|
|
4790
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4791
|
+
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]>>;
|
|
4792
|
+
}>]>;
|
|
3777
4793
|
readonly audienceSnapshot: Schema.Struct<{
|
|
3778
4794
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
3779
4795
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -3790,7 +4806,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3790
4806
|
readonly skippedCount: Schema.Finite;
|
|
3791
4807
|
readonly pendingCount: Schema.Finite;
|
|
3792
4808
|
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">]>;
|
|
4809
|
+
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
4810
|
readonly count: Schema.Finite;
|
|
3795
4811
|
}>>;
|
|
3796
4812
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -3835,6 +4851,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3835
4851
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
3836
4852
|
readonly message: Schema.String;
|
|
3837
4853
|
readonly retryAfterSeconds: Schema.Finite;
|
|
4854
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
4855
|
+
readonly _tag: "MalformedRequestError";
|
|
4856
|
+
readonly message: string;
|
|
4857
|
+
readonly fields: {
|
|
4858
|
+
readonly [x: string]: readonly string[];
|
|
4859
|
+
};
|
|
4860
|
+
}, readonly [Schema.Struct<{
|
|
4861
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4862
|
+
readonly message: Schema.String;
|
|
4863
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4864
|
+
}>], {
|
|
4865
|
+
readonly _tag: "MalformedRequestError";
|
|
4866
|
+
readonly message: string;
|
|
4867
|
+
readonly fields: {
|
|
4868
|
+
readonly [x: string]: readonly string[];
|
|
4869
|
+
};
|
|
4870
|
+
}>, Schema.Struct<{
|
|
4871
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4872
|
+
readonly message: Schema.String;
|
|
4873
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3838
4874
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
3839
4875
|
readonly _tag: "ResourceNotFoundError";
|
|
3840
4876
|
readonly resource: string;
|
|
@@ -3900,7 +4936,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3900
4936
|
readonly idempotencyKey: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3901
4937
|
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3902
4938
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3903
|
-
readonly contentSnapshot: Schema.Struct<{
|
|
4939
|
+
readonly contentSnapshot: Schema.Union<readonly [Schema.Struct<{
|
|
3904
4940
|
readonly channel: Schema.Literal<"email">;
|
|
3905
4941
|
readonly email: Schema.Struct<{
|
|
3906
4942
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -3944,7 +4980,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3944
4980
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
3945
4981
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3946
4982
|
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
|
-
}
|
|
4983
|
+
}>, Schema.Struct<{
|
|
4984
|
+
readonly channel: Schema.Literal<"sms">;
|
|
4985
|
+
readonly sms: Schema.Struct<{
|
|
4986
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4987
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
4988
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4989
|
+
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]>>;
|
|
4990
|
+
}>;
|
|
4991
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4992
|
+
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]>>;
|
|
4993
|
+
}>, Schema.Struct<{
|
|
4994
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
4995
|
+
readonly whatsapp: Schema.Struct<{
|
|
4996
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
4997
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
4998
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
4999
|
+
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">]>;
|
|
5000
|
+
}>, Schema.Struct<{
|
|
5001
|
+
readonly customField: Schema.String;
|
|
5002
|
+
}>]>>>;
|
|
5003
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
5004
|
+
}>;
|
|
5005
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5006
|
+
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]>>;
|
|
5007
|
+
}>]>;
|
|
3948
5008
|
readonly audienceSnapshot: Schema.Struct<{
|
|
3949
5009
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
3950
5010
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -3961,7 +5021,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3961
5021
|
readonly skippedCount: Schema.Finite;
|
|
3962
5022
|
readonly pendingCount: Schema.Finite;
|
|
3963
5023
|
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">]>;
|
|
5024
|
+
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
5025
|
readonly count: Schema.Finite;
|
|
3966
5026
|
}>>;
|
|
3967
5027
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -4037,6 +5097,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4037
5097
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4038
5098
|
readonly message: Schema.String;
|
|
4039
5099
|
readonly retryAfterSeconds: Schema.Finite;
|
|
5100
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
5101
|
+
readonly _tag: "MalformedRequestError";
|
|
5102
|
+
readonly message: string;
|
|
5103
|
+
readonly fields: {
|
|
5104
|
+
readonly [x: string]: readonly string[];
|
|
5105
|
+
};
|
|
5106
|
+
}, readonly [Schema.Struct<{
|
|
5107
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5108
|
+
readonly message: Schema.String;
|
|
5109
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
5110
|
+
}>], {
|
|
5111
|
+
readonly _tag: "MalformedRequestError";
|
|
5112
|
+
readonly message: string;
|
|
5113
|
+
readonly fields: {
|
|
5114
|
+
readonly [x: string]: readonly string[];
|
|
5115
|
+
};
|
|
5116
|
+
}>, Schema.Struct<{
|
|
5117
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5118
|
+
readonly message: Schema.String;
|
|
5119
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4040
5120
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
4041
5121
|
readonly _tag: "ResourceNotFoundError";
|
|
4042
5122
|
readonly resource: string;
|
|
@@ -4090,7 +5170,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4090
5170
|
readonly message: Schema.String;
|
|
4091
5171
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
4092
5172
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"campaignsPreview", "POST", "/v1/campaigns/preview", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
4093
|
-
readonly content: Schema.Struct<{
|
|
5173
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
4094
5174
|
readonly channel: Schema.Literal<"email">;
|
|
4095
5175
|
readonly email: Schema.Struct<{
|
|
4096
5176
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -4134,7 +5214,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4134
5214
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
4135
5215
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4136
5216
|
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
|
-
}
|
|
5217
|
+
}>, Schema.Struct<{
|
|
5218
|
+
readonly channel: Schema.Literal<"sms">;
|
|
5219
|
+
readonly sms: Schema.Struct<{
|
|
5220
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5221
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
5222
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5223
|
+
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]>>;
|
|
5224
|
+
}>;
|
|
5225
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5226
|
+
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]>>;
|
|
5227
|
+
}>, Schema.Struct<{
|
|
5228
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
5229
|
+
readonly whatsapp: Schema.Struct<{
|
|
5230
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
5231
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
5232
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
5233
|
+
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">]>;
|
|
5234
|
+
}>, Schema.Struct<{
|
|
5235
|
+
readonly customField: Schema.String;
|
|
5236
|
+
}>]>>>;
|
|
5237
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
5238
|
+
}>;
|
|
5239
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5240
|
+
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]>>;
|
|
5241
|
+
}>]>;
|
|
4138
5242
|
readonly audience: Schema.Struct<{
|
|
4139
5243
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
4140
5244
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -4184,6 +5288,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4184
5288
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4185
5289
|
readonly message: Schema.String;
|
|
4186
5290
|
readonly retryAfterSeconds: Schema.Finite;
|
|
5291
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
5292
|
+
readonly _tag: "MalformedRequestError";
|
|
5293
|
+
readonly message: string;
|
|
5294
|
+
readonly fields: {
|
|
5295
|
+
readonly [x: string]: readonly string[];
|
|
5296
|
+
};
|
|
5297
|
+
}, readonly [Schema.Struct<{
|
|
5298
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5299
|
+
readonly message: Schema.String;
|
|
5300
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
5301
|
+
}>], {
|
|
5302
|
+
readonly _tag: "MalformedRequestError";
|
|
5303
|
+
readonly message: string;
|
|
5304
|
+
readonly fields: {
|
|
5305
|
+
readonly [x: string]: readonly string[];
|
|
5306
|
+
};
|
|
5307
|
+
}>, Schema.Struct<{
|
|
5308
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5309
|
+
readonly message: Schema.String;
|
|
5310
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4187
5311
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
4188
5312
|
readonly _tag: "ResourceNotFoundError";
|
|
4189
5313
|
readonly resource: string;
|
|
@@ -4245,7 +5369,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4245
5369
|
readonly idempotencyKey: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4246
5370
|
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4247
5371
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4248
|
-
readonly contentSnapshot: Schema.Struct<{
|
|
5372
|
+
readonly contentSnapshot: Schema.Union<readonly [Schema.Struct<{
|
|
4249
5373
|
readonly channel: Schema.Literal<"email">;
|
|
4250
5374
|
readonly email: Schema.Struct<{
|
|
4251
5375
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -4289,7 +5413,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4289
5413
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
4290
5414
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4291
5415
|
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
|
-
}
|
|
5416
|
+
}>, Schema.Struct<{
|
|
5417
|
+
readonly channel: Schema.Literal<"sms">;
|
|
5418
|
+
readonly sms: Schema.Struct<{
|
|
5419
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5420
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
5421
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5422
|
+
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]>>;
|
|
5423
|
+
}>;
|
|
5424
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5425
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>, Schema.Null]>>;
|
|
5426
|
+
}>, Schema.Struct<{
|
|
5427
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
5428
|
+
readonly whatsapp: Schema.Struct<{
|
|
5429
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
5430
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
5431
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
5432
|
+
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">]>;
|
|
5433
|
+
}>, Schema.Struct<{
|
|
5434
|
+
readonly customField: Schema.String;
|
|
5435
|
+
}>]>>>;
|
|
5436
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
5437
|
+
}>;
|
|
5438
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5439
|
+
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]>>;
|
|
5440
|
+
}>]>;
|
|
4293
5441
|
readonly audienceSnapshot: Schema.Struct<{
|
|
4294
5442
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
4295
5443
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -4306,7 +5454,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4306
5454
|
readonly skippedCount: Schema.Finite;
|
|
4307
5455
|
readonly pendingCount: Schema.Finite;
|
|
4308
5456
|
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">]>;
|
|
5457
|
+
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
5458
|
readonly count: Schema.Finite;
|
|
4311
5459
|
}>>;
|
|
4312
5460
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -4370,6 +5518,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4370
5518
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4371
5519
|
readonly message: Schema.String;
|
|
4372
5520
|
readonly retryAfterSeconds: Schema.Finite;
|
|
5521
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
5522
|
+
readonly _tag: "MalformedRequestError";
|
|
5523
|
+
readonly message: string;
|
|
5524
|
+
readonly fields: {
|
|
5525
|
+
readonly [x: string]: readonly string[];
|
|
5526
|
+
};
|
|
5527
|
+
}, readonly [Schema.Struct<{
|
|
5528
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5529
|
+
readonly message: Schema.String;
|
|
5530
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
5531
|
+
}>], {
|
|
5532
|
+
readonly _tag: "MalformedRequestError";
|
|
5533
|
+
readonly message: string;
|
|
5534
|
+
readonly fields: {
|
|
5535
|
+
readonly [x: string]: readonly string[];
|
|
5536
|
+
};
|
|
5537
|
+
}>, Schema.Struct<{
|
|
5538
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5539
|
+
readonly message: Schema.String;
|
|
5540
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4373
5541
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<PaymentRequiredError, {
|
|
4374
5542
|
readonly _tag: "PaymentRequiredError";
|
|
4375
5543
|
readonly message: string;
|
|
@@ -4451,7 +5619,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4451
5619
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
4452
5620
|
readonly scheduledFor: Schema.optionalKey<Schema.Union<readonly [Schema.decodeTo<Schema.Date, Schema.String, never, never>, Schema.Null]>>;
|
|
4453
5621
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
4454
|
-
readonly "idempotency-key": Schema.optionalKey<Schema.
|
|
5622
|
+
readonly "idempotency-key": Schema.optionalKey<Schema.String>;
|
|
4455
5623
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
4456
5624
|
readonly id: Schema.brand<Schema.String, "CampaignRunId">;
|
|
4457
5625
|
readonly campaignId: Schema.brand<Schema.String, "CampaignId">;
|
|
@@ -4460,7 +5628,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4460
5628
|
readonly idempotencyKey: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4461
5629
|
readonly startedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4462
5630
|
readonly completedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4463
|
-
readonly contentSnapshot: Schema.Struct<{
|
|
5631
|
+
readonly contentSnapshot: Schema.Union<readonly [Schema.Struct<{
|
|
4464
5632
|
readonly channel: Schema.Literal<"email">;
|
|
4465
5633
|
readonly email: Schema.Struct<{
|
|
4466
5634
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -4504,7 +5672,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4504
5672
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
4505
5673
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4506
5674
|
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
|
-
}
|
|
5675
|
+
}>, Schema.Struct<{
|
|
5676
|
+
readonly channel: Schema.Literal<"sms">;
|
|
5677
|
+
readonly sms: Schema.Struct<{
|
|
5678
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5679
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
5680
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5681
|
+
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]>>;
|
|
5682
|
+
}>;
|
|
5683
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5684
|
+
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]>>;
|
|
5685
|
+
}>, Schema.Struct<{
|
|
5686
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
5687
|
+
readonly whatsapp: Schema.Struct<{
|
|
5688
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
5689
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
5690
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
5691
|
+
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">]>;
|
|
5692
|
+
}>, Schema.Struct<{
|
|
5693
|
+
readonly customField: Schema.String;
|
|
5694
|
+
}>]>>>;
|
|
5695
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
5696
|
+
}>;
|
|
5697
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5698
|
+
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]>>;
|
|
5699
|
+
}>]>;
|
|
4508
5700
|
readonly audienceSnapshot: Schema.Struct<{
|
|
4509
5701
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
4510
5702
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -4521,7 +5713,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4521
5713
|
readonly skippedCount: Schema.Finite;
|
|
4522
5714
|
readonly pendingCount: Schema.Finite;
|
|
4523
5715
|
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">]>;
|
|
5716
|
+
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
5717
|
readonly count: Schema.Finite;
|
|
4526
5718
|
}>>;
|
|
4527
5719
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -4572,6 +5764,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4572
5764
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4573
5765
|
readonly message: Schema.String;
|
|
4574
5766
|
readonly retryAfterSeconds: Schema.Finite;
|
|
5767
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
5768
|
+
readonly _tag: "MalformedRequestError";
|
|
5769
|
+
readonly message: string;
|
|
5770
|
+
readonly fields: {
|
|
5771
|
+
readonly [x: string]: readonly string[];
|
|
5772
|
+
};
|
|
5773
|
+
}, readonly [Schema.Struct<{
|
|
5774
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5775
|
+
readonly message: Schema.String;
|
|
5776
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
5777
|
+
}>], {
|
|
5778
|
+
readonly _tag: "MalformedRequestError";
|
|
5779
|
+
readonly message: string;
|
|
5780
|
+
readonly fields: {
|
|
5781
|
+
readonly [x: string]: readonly string[];
|
|
5782
|
+
};
|
|
5783
|
+
}>, Schema.Struct<{
|
|
5784
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5785
|
+
readonly message: Schema.String;
|
|
5786
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4575
5787
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<PaymentRequiredError, {
|
|
4576
5788
|
readonly _tag: "PaymentRequiredError";
|
|
4577
5789
|
readonly message: string;
|
|
@@ -4629,7 +5841,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4629
5841
|
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
4630
5842
|
readonly message: Schema.String;
|
|
4631
5843
|
}>, 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<{
|
|
5844
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
4633
5845
|
readonly channel: Schema.Literal<"email">;
|
|
4634
5846
|
readonly email: Schema.Struct<{
|
|
4635
5847
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -4673,7 +5885,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4673
5885
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
4674
5886
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4675
5887
|
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
|
-
}
|
|
5888
|
+
}>, Schema.Struct<{
|
|
5889
|
+
readonly channel: Schema.Literal<"sms">;
|
|
5890
|
+
readonly sms: Schema.Struct<{
|
|
5891
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5892
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
5893
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5894
|
+
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]>>;
|
|
5895
|
+
}>;
|
|
5896
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5897
|
+
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]>>;
|
|
5898
|
+
}>, Schema.Struct<{
|
|
5899
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
5900
|
+
readonly whatsapp: Schema.Struct<{
|
|
5901
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
5902
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
5903
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
5904
|
+
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">]>;
|
|
5905
|
+
}>, Schema.Struct<{
|
|
5906
|
+
readonly customField: Schema.String;
|
|
5907
|
+
}>]>>>;
|
|
5908
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
5909
|
+
}>;
|
|
5910
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
5911
|
+
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]>>;
|
|
5912
|
+
}>]>;
|
|
4677
5913
|
readonly audience: Schema.Struct<{
|
|
4678
5914
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
4679
5915
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -4720,6 +5956,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4720
5956
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4721
5957
|
readonly message: Schema.String;
|
|
4722
5958
|
readonly retryAfterSeconds: Schema.Finite;
|
|
5959
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
5960
|
+
readonly _tag: "MalformedRequestError";
|
|
5961
|
+
readonly message: string;
|
|
5962
|
+
readonly fields: {
|
|
5963
|
+
readonly [x: string]: readonly string[];
|
|
5964
|
+
};
|
|
5965
|
+
}, readonly [Schema.Struct<{
|
|
5966
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5967
|
+
readonly message: Schema.String;
|
|
5968
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
5969
|
+
}>], {
|
|
5970
|
+
readonly _tag: "MalformedRequestError";
|
|
5971
|
+
readonly message: string;
|
|
5972
|
+
readonly fields: {
|
|
5973
|
+
readonly [x: string]: readonly string[];
|
|
5974
|
+
};
|
|
5975
|
+
}>, Schema.Struct<{
|
|
5976
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5977
|
+
readonly message: Schema.String;
|
|
5978
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4723
5979
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<PaymentRequiredError, {
|
|
4724
5980
|
readonly _tag: "PaymentRequiredError";
|
|
4725
5981
|
readonly message: string;
|
|
@@ -4796,7 +6052,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4796
6052
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
4797
6053
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
4798
6054
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4799
|
-
readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
6055
|
+
readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
4800
6056
|
readonly channel: Schema.Literal<"email">;
|
|
4801
6057
|
readonly email: Schema.Struct<{
|
|
4802
6058
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -4840,7 +6096,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4840
6096
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
4841
6097
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4842
6098
|
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.
|
|
6099
|
+
}>, Schema.Struct<{
|
|
6100
|
+
readonly channel: Schema.Literal<"sms">;
|
|
6101
|
+
readonly sms: Schema.Struct<{
|
|
6102
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6103
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
6104
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6105
|
+
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]>>;
|
|
6106
|
+
}>;
|
|
6107
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
6108
|
+
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]>>;
|
|
6109
|
+
}>, Schema.Struct<{
|
|
6110
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
6111
|
+
readonly whatsapp: Schema.Struct<{
|
|
6112
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
6113
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
6114
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
6115
|
+
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">]>;
|
|
6116
|
+
}>, Schema.Struct<{
|
|
6117
|
+
readonly customField: Schema.String;
|
|
6118
|
+
}>]>>>;
|
|
6119
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
6120
|
+
}>;
|
|
6121
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
6122
|
+
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]>>;
|
|
6123
|
+
}>]>, Schema.Null]>>;
|
|
4844
6124
|
readonly audience: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
4845
6125
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
4846
6126
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -4854,8 +6134,8 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4854
6134
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
4855
6135
|
readonly id: Schema.brand<Schema.String, "CampaignId">;
|
|
4856
6136
|
readonly name: Schema.String;
|
|
4857
|
-
readonly channel: Schema.Literal<"email">;
|
|
4858
|
-
readonly content: Schema.Struct<{
|
|
6137
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
6138
|
+
readonly content: Schema.Union<readonly [Schema.Struct<{
|
|
4859
6139
|
readonly channel: Schema.Literal<"email">;
|
|
4860
6140
|
readonly email: Schema.Struct<{
|
|
4861
6141
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -4899,7 +6179,31 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4899
6179
|
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
4900
6180
|
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
4901
6181
|
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
|
-
}
|
|
6182
|
+
}>, Schema.Struct<{
|
|
6183
|
+
readonly channel: Schema.Literal<"sms">;
|
|
6184
|
+
readonly sms: Schema.Struct<{
|
|
6185
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6186
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
6187
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
6188
|
+
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]>>;
|
|
6189
|
+
}>;
|
|
6190
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
6191
|
+
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]>>;
|
|
6192
|
+
}>, Schema.Struct<{
|
|
6193
|
+
readonly channel: Schema.Literal<"whatsapp">;
|
|
6194
|
+
readonly whatsapp: Schema.Struct<{
|
|
6195
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
6196
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
6197
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
6198
|
+
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">]>;
|
|
6199
|
+
}>, Schema.Struct<{
|
|
6200
|
+
readonly customField: Schema.String;
|
|
6201
|
+
}>]>>>;
|
|
6202
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
6203
|
+
}>;
|
|
6204
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
6205
|
+
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]>>;
|
|
6206
|
+
}>]>;
|
|
4903
6207
|
readonly audience: Schema.Struct<{
|
|
4904
6208
|
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
4905
6209
|
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -4967,6 +6271,26 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4967
6271
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4968
6272
|
readonly message: Schema.String;
|
|
4969
6273
|
readonly retryAfterSeconds: Schema.Finite;
|
|
6274
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
6275
|
+
readonly _tag: "MalformedRequestError";
|
|
6276
|
+
readonly message: string;
|
|
6277
|
+
readonly fields: {
|
|
6278
|
+
readonly [x: string]: readonly string[];
|
|
6279
|
+
};
|
|
6280
|
+
}, readonly [Schema.Struct<{
|
|
6281
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
6282
|
+
readonly message: Schema.String;
|
|
6283
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
6284
|
+
}>], {
|
|
6285
|
+
readonly _tag: "MalformedRequestError";
|
|
6286
|
+
readonly message: string;
|
|
6287
|
+
readonly fields: {
|
|
6288
|
+
readonly [x: string]: readonly string[];
|
|
6289
|
+
};
|
|
6290
|
+
}>, Schema.Struct<{
|
|
6291
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
6292
|
+
readonly message: Schema.String;
|
|
6293
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4970
6294
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
4971
6295
|
readonly _tag: "ResourceNotFoundError";
|
|
4972
6296
|
readonly resource: string;
|