samva 0.33.0 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/client/sdk.gen.d.ts +225 -251
- package/dist/client/sdk.gen.js +85 -211
- package/dist/client/types.gen.d.ts +2897 -403
- package/dist/effect/agents.d.ts +28 -13
- package/dist/effect/agents.js +5 -1
- package/dist/effect/analytics.d.ts +15 -15
- package/dist/effect/api-keys.d.ts +27 -18
- package/dist/effect/campaigns.d.ts +721 -65
- package/dist/effect/categories.d.ts +3 -3
- package/dist/effect/contact-groups.d.ts +15 -15
- package/dist/effect/contacts.d.ts +56 -52
- package/dist/effect/conversations.d.ts +45 -45
- package/dist/effect/email.d.ts +82 -82
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +11 -11
- package/dist/effect/extensions.d.ts +16 -16
- package/dist/effect/generated/agents.d.ts +1063 -33
- package/dist/effect/generated/agents.js +133 -11
- package/dist/effect/generated/analytics.d.ts +109 -136
- package/dist/effect/generated/analytics.js +65 -36
- package/dist/effect/generated/api-keys.d.ts +240 -19
- package/dist/effect/generated/api-keys.js +24 -8
- package/dist/effect/generated/attachments.d.ts +89 -1
- package/dist/effect/generated/attachments.js +10 -2
- package/dist/effect/generated/brands.d.ts +133 -1
- package/dist/effect/generated/brands.js +22 -10
- package/dist/effect/generated/campaigns.d.ts +1442 -140
- package/dist/effect/generated/campaigns.js +82 -20
- package/dist/effect/generated/contact-events.d.ts +26 -4
- package/dist/effect/generated/contact-events.js +5 -3
- package/dist/effect/generated/contact-groups.d.ts +233 -13
- package/dist/effect/generated/contact-groups.js +33 -17
- package/dist/effect/generated/contacts.d.ts +634 -96
- package/dist/effect/generated/contacts.js +82 -20
- package/dist/effect/generated/conversations.d.ts +398 -106
- package/dist/effect/generated/conversations.js +96 -22
- package/dist/effect/generated/custom-fields.d.ts +89 -1
- package/dist/effect/generated/custom-fields.js +11 -3
- package/dist/effect/generated/email.d.ts +1447 -83
- package/dist/effect/generated/email.js +167 -43
- package/dist/effect/generated/events.d.ts +51 -7
- package/dist/effect/generated/events.js +9 -5
- package/dist/effect/generated/extension-installations.d.ts +208 -10
- package/dist/effect/generated/extension-installations.js +26 -8
- package/dist/effect/generated/extensions.d.ts +123 -13
- package/dist/effect/generated/extensions.js +20 -10
- package/dist/effect/generated/feedback.d.ts +23 -1
- package/dist/effect/generated/feedback.js +6 -4
- package/dist/effect/generated/journeys.d.ts +684 -16
- package/dist/effect/generated/journeys.js +37 -9
- package/dist/effect/generated/mailboxes.d.ts +3085 -627
- package/dist/effect/generated/mailboxes.js +340 -141
- package/dist/effect/generated/media.d.ts +125 -15
- package/dist/effect/generated/media.js +15 -2
- package/dist/effect/generated/messages.d.ts +2036 -117
- package/dist/effect/generated/messages.js +286 -54
- package/dist/effect/generated/namespaces.d.ts +209 -25
- package/dist/effect/generated/namespaces.js +27 -9
- package/dist/effect/generated/newsletter-domains.d.ts +98 -12
- package/dist/effect/generated/newsletter-domains.js +20 -13
- package/dist/effect/generated/newsletter-issues.d.ts +354 -19
- package/dist/effect/generated/newsletter-issues.js +162 -98
- package/dist/effect/generated/newsletters.d.ts +123 -13
- package/dist/effect/generated/newsletters.js +19 -9
- package/dist/effect/generated/operations.d.ts +76 -10
- package/dist/effect/generated/operations.js +12 -6
- package/dist/effect/generated/organizations.d.ts +287 -7
- package/dist/effect/generated/organizations.js +33 -5
- package/dist/effect/generated/scheduled-messages.d.ts +4427 -99
- package/dist/effect/generated/scheduled-messages.js +71 -12
- package/dist/effect/generated/shared.d.ts +2213 -190
- package/dist/effect/generated/shared.js +527 -76
- package/dist/effect/generated/subscriptions.d.ts +23 -1
- package/dist/effect/generated/subscriptions.js +6 -4
- package/dist/effect/generated/templates.d.ts +1718 -136
- package/dist/effect/generated/templates.js +421 -226
- package/dist/effect/generated/topic-forms.d.ts +111 -1
- package/dist/effect/generated/topic-forms.js +23 -13
- package/dist/effect/generated/topics.d.ts +353 -43
- package/dist/effect/generated/topics.js +67 -19
- package/dist/effect/generated/webhooks.d.ts +308 -46
- package/dist/effect/generated/webhooks.js +67 -19
- package/dist/effect/generated/whoami.d.ts +35 -1
- package/dist/effect/generated/whoami.js +4 -2
- package/dist/effect/generated-metadata.d.ts +20 -0
- package/dist/effect/generated-metadata.js +10 -0
- package/dist/effect/index.js +2 -2
- package/dist/effect/internal/client.js +1 -1
- package/dist/effect/internal/email-sender.d.ts +1 -1
- package/dist/effect/internal/send.d.ts +1 -1
- package/dist/effect/journeys.d.ts +105 -19
- package/dist/effect/mailboxes.d.ts +405 -174
- package/dist/effect/media.d.ts +1 -1
- package/dist/effect/messages.d.ts +40 -40
- package/dist/effect/namespaces.d.ts +15 -15
- package/dist/effect/newsletter-domains.d.ts +5 -5
- package/dist/effect/newsletters.d.ts +1 -1
- package/dist/effect/operations.d.ts +11 -11
- package/dist/effect/organizations.d.ts +2 -2
- package/dist/effect/scheduled-messages.d.ts +863 -8
- package/dist/effect/templates.d.ts +37 -37
- package/dist/effect/topics.d.ts +21 -21
- package/dist/effect/webhooks.d.ts +28 -26
- package/dist/index.js +2 -2
- package/dist/normalize.js +13 -1
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +1 -1
- package/dist/promises/client.js +2 -2
- package/dist/promises/errors.gen.d.ts +22 -2
- package/dist/promises/errors.gen.js +60 -2
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +9 -0
- package/dist/service-map.js +5 -0
- package/package.json +9 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as EffectBrand from "effect/Brand";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
|
-
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactGroupId, ContactId, ContactIdentity, ContactIdentityId, ConversationId,
|
|
4
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactGroupId, ContactId, ContactIdentity, ContactIdentityId, ConversationId, ForbiddenError, GatewayTimeoutError, InternalError, JsonObject, MalformedRequestError, MessageId, NamespaceId, PaymentRequiredError, ResourceNotFoundError, TopicId, UnauthorizedError, ValidationError } from "./shared";
|
|
5
5
|
export type ContactCustomFields = {
|
|
6
6
|
readonly [x: string]: string | number | boolean | null;
|
|
7
7
|
};
|
|
@@ -29,11 +29,13 @@ export declare const ContactLocation: Schema.Struct<{
|
|
|
29
29
|
readonly timezone: Schema.String;
|
|
30
30
|
}>;
|
|
31
31
|
export type ContactPreferences = {
|
|
32
|
-
readonly preferredChannels?: ReadonlyArray<"email"> | null;
|
|
32
|
+
readonly preferredChannels?: ReadonlyArray<"sms" | "whatsapp" | "email"> | null;
|
|
33
33
|
readonly language?: string | null;
|
|
34
34
|
readonly timezone?: string | null;
|
|
35
35
|
readonly notifications?: {
|
|
36
36
|
readonly email?: boolean | null;
|
|
37
|
+
readonly sms?: boolean | null;
|
|
38
|
+
readonly whatsapp?: boolean | null;
|
|
37
39
|
readonly quiet_hours?: {
|
|
38
40
|
readonly start: string;
|
|
39
41
|
readonly end: string;
|
|
@@ -41,11 +43,13 @@ export type ContactPreferences = {
|
|
|
41
43
|
} | null;
|
|
42
44
|
};
|
|
43
45
|
export declare const ContactPreferences: Schema.Struct<{
|
|
44
|
-
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
46
|
+
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
45
47
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
46
48
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
47
49
|
readonly notifications: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
48
50
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
51
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
52
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
49
53
|
readonly quiet_hours: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
50
54
|
readonly start: Schema.String;
|
|
51
55
|
readonly end: Schema.String;
|
|
@@ -191,7 +195,7 @@ export type ContactSummary = {
|
|
|
191
195
|
readonly displayName: string | null;
|
|
192
196
|
readonly status: "active" | "paused" | "blocked" | "archived";
|
|
193
197
|
readonly email: string | null;
|
|
194
|
-
readonly channels: ReadonlyArray<"email">;
|
|
198
|
+
readonly channels: ReadonlyArray<"sms" | "whatsapp" | "email">;
|
|
195
199
|
readonly tags: ReadonlyArray<string>;
|
|
196
200
|
readonly lists: ReadonlyArray<ContactListMembership>;
|
|
197
201
|
readonly customFields?: ContactCustomFields | null;
|
|
@@ -205,7 +209,7 @@ export declare const ContactSummary: Schema.Struct<{
|
|
|
205
209
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
206
210
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"blocked">, Schema.Literal<"archived">]>;
|
|
207
211
|
readonly email: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
208
|
-
readonly channels: Schema.$Array<Schema.Literal<"email">>;
|
|
212
|
+
readonly channels: Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>;
|
|
209
213
|
readonly tags: Schema.$Array<Schema.String>;
|
|
210
214
|
readonly lists: Schema.$Array<Schema.Struct<{
|
|
211
215
|
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
@@ -228,7 +232,7 @@ export declare const ContactPage: Schema.Struct<{
|
|
|
228
232
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
229
233
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"blocked">, Schema.Literal<"archived">]>;
|
|
230
234
|
readonly email: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
231
|
-
readonly channels: Schema.$Array<Schema.Literal<"email">>;
|
|
235
|
+
readonly channels: Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>;
|
|
232
236
|
readonly tags: Schema.$Array<Schema.String>;
|
|
233
237
|
readonly lists: Schema.$Array<Schema.Struct<{
|
|
234
238
|
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
@@ -331,7 +335,7 @@ export declare const Contact: Schema.Struct<{
|
|
|
331
335
|
readonly identifier: Schema.String;
|
|
332
336
|
readonly verified: Schema.Boolean;
|
|
333
337
|
readonly channels: Schema.$Array<Schema.Struct<{
|
|
334
|
-
readonly channel: Schema.Literal<"email">;
|
|
338
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
335
339
|
readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
|
|
336
340
|
readonly consent: Schema.Union<readonly [Schema.Struct<{
|
|
337
341
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
@@ -356,11 +360,13 @@ export declare const Contact: Schema.Struct<{
|
|
|
356
360
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"import">, Schema.Literal<"manual">, Schema.Literal<"form">]>, Schema.Null]>>;
|
|
357
361
|
}>, Schema.Null]>;
|
|
358
362
|
readonly preferences: Schema.Union<readonly [Schema.Struct<{
|
|
359
|
-
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
363
|
+
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
360
364
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
361
365
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
362
366
|
readonly notifications: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
363
367
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
368
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
369
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
364
370
|
readonly quiet_hours: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
365
371
|
readonly start: Schema.String;
|
|
366
372
|
readonly end: Schema.String;
|
|
@@ -432,27 +438,27 @@ export declare const Contact: Schema.Struct<{
|
|
|
432
438
|
}>;
|
|
433
439
|
export type ContactsListQuery = {
|
|
434
440
|
readonly limit?: number | null;
|
|
435
|
-
readonly cursor?:
|
|
436
|
-
readonly namespaceId?: NamespaceId
|
|
437
|
-
readonly search?: string
|
|
438
|
-
readonly status?: "active" | "paused" | "blocked" | "archived"
|
|
439
|
-
readonly fields?: string
|
|
440
|
-
readonly customField?: string
|
|
441
|
-
readonly customFieldValue?: string
|
|
442
|
-
readonly after?: string
|
|
443
|
-
readonly before?: string
|
|
441
|
+
readonly cursor?: string;
|
|
442
|
+
readonly namespaceId?: NamespaceId;
|
|
443
|
+
readonly search?: string;
|
|
444
|
+
readonly status?: "active" | "paused" | "blocked" | "archived";
|
|
445
|
+
readonly fields?: string;
|
|
446
|
+
readonly customField?: string;
|
|
447
|
+
readonly customFieldValue?: string;
|
|
448
|
+
readonly after?: string;
|
|
449
|
+
readonly before?: string;
|
|
444
450
|
};
|
|
445
451
|
export declare const ContactsListQuery: Schema.Struct<{
|
|
446
452
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
447
|
-
readonly cursor: Schema.optionalKey<Schema.
|
|
448
|
-
readonly namespaceId: Schema.optionalKey<Schema.
|
|
449
|
-
readonly search: Schema.optionalKey<Schema.
|
|
450
|
-
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
451
|
-
readonly fields: Schema.optionalKey<Schema.
|
|
452
|
-
readonly customField: Schema.optionalKey<Schema.
|
|
453
|
-
readonly customFieldValue: Schema.optionalKey<Schema.
|
|
454
|
-
readonly after: Schema.optionalKey<Schema.
|
|
455
|
-
readonly before: Schema.optionalKey<Schema.
|
|
453
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
454
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
455
|
+
readonly search: Schema.optionalKey<Schema.String>;
|
|
456
|
+
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"blocked">, Schema.Literal<"archived">]>>;
|
|
457
|
+
readonly fields: Schema.optionalKey<Schema.String>;
|
|
458
|
+
readonly customField: Schema.optionalKey<Schema.String>;
|
|
459
|
+
readonly customFieldValue: Schema.optionalKey<Schema.String>;
|
|
460
|
+
readonly after: Schema.optionalKey<Schema.String>;
|
|
461
|
+
readonly before: Schema.optionalKey<Schema.String>;
|
|
456
462
|
}>;
|
|
457
463
|
export type ContactsList200 = ContactPage;
|
|
458
464
|
export declare const ContactsList200: Schema.Struct<{
|
|
@@ -463,7 +469,7 @@ export declare const ContactsList200: Schema.Struct<{
|
|
|
463
469
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
464
470
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"blocked">, Schema.Literal<"archived">]>;
|
|
465
471
|
readonly email: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
466
|
-
readonly channels: Schema.$Array<Schema.Literal<"email">>;
|
|
472
|
+
readonly channels: Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>;
|
|
467
473
|
readonly tags: Schema.$Array<Schema.String>;
|
|
468
474
|
readonly lists: Schema.$Array<Schema.Struct<{
|
|
469
475
|
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
@@ -476,6 +482,8 @@ export declare const ContactsList200: Schema.Struct<{
|
|
|
476
482
|
}>>;
|
|
477
483
|
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
478
484
|
}>;
|
|
485
|
+
export type ContactsList400 = MalformedRequestError;
|
|
486
|
+
export declare const ContactsList400: typeof MalformedRequestError;
|
|
479
487
|
export type ContactsList401 = UnauthorizedError;
|
|
480
488
|
export declare const ContactsList401: typeof UnauthorizedError;
|
|
481
489
|
export type ContactsList403 = ForbiddenError;
|
|
@@ -525,11 +533,13 @@ export declare const ContactsCreateRequestJson: Schema.Struct<{
|
|
|
525
533
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"import">, Schema.Literal<"manual">, Schema.Literal<"form">]>, Schema.Null]>>;
|
|
526
534
|
}>, Schema.Null]>>;
|
|
527
535
|
readonly preferences: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
528
|
-
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
536
|
+
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
529
537
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
530
538
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
531
539
|
readonly notifications: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
532
540
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
541
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
542
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
533
543
|
readonly quiet_hours: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
534
544
|
readonly start: Schema.String;
|
|
535
545
|
readonly end: Schema.String;
|
|
@@ -558,7 +568,7 @@ export declare const ContactsCreate201: Schema.Struct<{
|
|
|
558
568
|
readonly identifier: Schema.String;
|
|
559
569
|
readonly verified: Schema.Boolean;
|
|
560
570
|
readonly channels: Schema.$Array<Schema.Struct<{
|
|
561
|
-
readonly channel: Schema.Literal<"email">;
|
|
571
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
562
572
|
readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
|
|
563
573
|
readonly consent: Schema.Union<readonly [Schema.Struct<{
|
|
564
574
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
@@ -583,11 +593,13 @@ export declare const ContactsCreate201: Schema.Struct<{
|
|
|
583
593
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"import">, Schema.Literal<"manual">, Schema.Literal<"form">]>, Schema.Null]>>;
|
|
584
594
|
}>, Schema.Null]>;
|
|
585
595
|
readonly preferences: Schema.Union<readonly [Schema.Struct<{
|
|
586
|
-
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
596
|
+
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
587
597
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
588
598
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
589
599
|
readonly notifications: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
590
600
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
601
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
602
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
591
603
|
readonly quiet_hours: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
592
604
|
readonly start: Schema.String;
|
|
593
605
|
readonly end: Schema.String;
|
|
@@ -657,6 +669,8 @@ export declare const ContactsCreate201: Schema.Struct<{
|
|
|
657
669
|
readonly createdAt: Schema.String;
|
|
658
670
|
readonly updatedAt: Schema.String;
|
|
659
671
|
}>;
|
|
672
|
+
export type ContactsCreate400 = MalformedRequestError;
|
|
673
|
+
export declare const ContactsCreate400: typeof MalformedRequestError;
|
|
660
674
|
export type ContactsCreate401 = UnauthorizedError;
|
|
661
675
|
export declare const ContactsCreate401: typeof UnauthorizedError;
|
|
662
676
|
export type ContactsCreate402 = PaymentRequiredError;
|
|
@@ -697,7 +711,7 @@ export declare const ContactsGet200: Schema.Struct<{
|
|
|
697
711
|
readonly identifier: Schema.String;
|
|
698
712
|
readonly verified: Schema.Boolean;
|
|
699
713
|
readonly channels: Schema.$Array<Schema.Struct<{
|
|
700
|
-
readonly channel: Schema.Literal<"email">;
|
|
714
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
701
715
|
readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
|
|
702
716
|
readonly consent: Schema.Union<readonly [Schema.Struct<{
|
|
703
717
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
@@ -722,11 +736,13 @@ export declare const ContactsGet200: Schema.Struct<{
|
|
|
722
736
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"import">, Schema.Literal<"manual">, Schema.Literal<"form">]>, Schema.Null]>>;
|
|
723
737
|
}>, Schema.Null]>;
|
|
724
738
|
readonly preferences: Schema.Union<readonly [Schema.Struct<{
|
|
725
|
-
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
739
|
+
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
726
740
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
727
741
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
728
742
|
readonly notifications: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
729
743
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
744
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
745
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
730
746
|
readonly quiet_hours: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
731
747
|
readonly start: Schema.String;
|
|
732
748
|
readonly end: Schema.String;
|
|
@@ -796,6 +812,8 @@ export declare const ContactsGet200: Schema.Struct<{
|
|
|
796
812
|
readonly createdAt: Schema.String;
|
|
797
813
|
readonly updatedAt: Schema.String;
|
|
798
814
|
}>;
|
|
815
|
+
export type ContactsGet400 = MalformedRequestError;
|
|
816
|
+
export declare const ContactsGet400: typeof MalformedRequestError;
|
|
799
817
|
export type ContactsGet401 = UnauthorizedError;
|
|
800
818
|
export declare const ContactsGet401: typeof UnauthorizedError;
|
|
801
819
|
export type ContactsGet403 = ForbiddenError;
|
|
@@ -820,6 +838,8 @@ export type ContactsRemove200 = {
|
|
|
820
838
|
export declare const ContactsRemove200: Schema.Struct<{
|
|
821
839
|
readonly success: Schema.Boolean;
|
|
822
840
|
}>;
|
|
841
|
+
export type ContactsRemove400 = MalformedRequestError;
|
|
842
|
+
export declare const ContactsRemove400: typeof MalformedRequestError;
|
|
823
843
|
export type ContactsRemove401 = UnauthorizedError;
|
|
824
844
|
export declare const ContactsRemove401: typeof UnauthorizedError;
|
|
825
845
|
export type ContactsRemove403 = ForbiddenError;
|
|
@@ -869,11 +889,13 @@ export declare const ContactsUpdateRequestJson: Schema.Struct<{
|
|
|
869
889
|
readonly customFields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>>, Schema.Null]>>;
|
|
870
890
|
}>, Schema.Null]>>;
|
|
871
891
|
readonly preferences: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
872
|
-
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
892
|
+
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
873
893
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
874
894
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
875
895
|
readonly notifications: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
876
896
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
897
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
898
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
877
899
|
readonly quiet_hours: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
878
900
|
readonly start: Schema.String;
|
|
879
901
|
readonly end: Schema.String;
|
|
@@ -901,7 +923,7 @@ export declare const ContactsUpdate200: Schema.Struct<{
|
|
|
901
923
|
readonly identifier: Schema.String;
|
|
902
924
|
readonly verified: Schema.Boolean;
|
|
903
925
|
readonly channels: Schema.$Array<Schema.Struct<{
|
|
904
|
-
readonly channel: Schema.Literal<"email">;
|
|
926
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
905
927
|
readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
|
|
906
928
|
readonly consent: Schema.Union<readonly [Schema.Struct<{
|
|
907
929
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
@@ -926,11 +948,13 @@ export declare const ContactsUpdate200: Schema.Struct<{
|
|
|
926
948
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"import">, Schema.Literal<"manual">, Schema.Literal<"form">]>, Schema.Null]>>;
|
|
927
949
|
}>, Schema.Null]>;
|
|
928
950
|
readonly preferences: Schema.Union<readonly [Schema.Struct<{
|
|
929
|
-
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
951
|
+
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
930
952
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
931
953
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
932
954
|
readonly notifications: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
933
955
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
956
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
957
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
934
958
|
readonly quiet_hours: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
935
959
|
readonly start: Schema.String;
|
|
936
960
|
readonly end: Schema.String;
|
|
@@ -1000,6 +1024,8 @@ export declare const ContactsUpdate200: Schema.Struct<{
|
|
|
1000
1024
|
readonly createdAt: Schema.String;
|
|
1001
1025
|
readonly updatedAt: Schema.String;
|
|
1002
1026
|
}>;
|
|
1027
|
+
export type ContactsUpdate400 = MalformedRequestError;
|
|
1028
|
+
export declare const ContactsUpdate400: typeof MalformedRequestError;
|
|
1003
1029
|
export type ContactsUpdate401 = UnauthorizedError;
|
|
1004
1030
|
export declare const ContactsUpdate401: typeof UnauthorizedError;
|
|
1005
1031
|
export type ContactsUpdate402 = PaymentRequiredError;
|
|
@@ -1024,13 +1050,13 @@ export declare const ContactsGetActivityTimelinePathParams: Schema.Struct<{
|
|
|
1024
1050
|
}>;
|
|
1025
1051
|
export type ContactsGetActivityTimelineQuery = {
|
|
1026
1052
|
readonly limit?: number | null;
|
|
1027
|
-
readonly cursor?:
|
|
1028
|
-
readonly channel?: "
|
|
1053
|
+
readonly cursor?: string;
|
|
1054
|
+
readonly channel?: "sms" | "whatsapp" | "email";
|
|
1029
1055
|
};
|
|
1030
1056
|
export declare const ContactsGetActivityTimelineQuery: Schema.Struct<{
|
|
1031
1057
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
1032
|
-
readonly cursor: Schema.optionalKey<Schema.
|
|
1033
|
-
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"
|
|
1058
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
1059
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>;
|
|
1034
1060
|
}>;
|
|
1035
1061
|
export type ContactsGetActivityTimeline200 = ContactActivityPage;
|
|
1036
1062
|
export declare const ContactsGetActivityTimeline200: Schema.Struct<{
|
|
@@ -1046,6 +1072,8 @@ export declare const ContactsGetActivityTimeline200: Schema.Struct<{
|
|
|
1046
1072
|
}>>;
|
|
1047
1073
|
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1048
1074
|
}>;
|
|
1075
|
+
export type ContactsGetActivityTimeline400 = MalformedRequestError;
|
|
1076
|
+
export declare const ContactsGetActivityTimeline400: typeof MalformedRequestError;
|
|
1049
1077
|
export type ContactsGetActivityTimeline401 = UnauthorizedError;
|
|
1050
1078
|
export declare const ContactsGetActivityTimeline401: typeof UnauthorizedError;
|
|
1051
1079
|
export type ContactsGetActivityTimeline403 = ForbiddenError;
|
|
@@ -1082,6 +1110,8 @@ export declare const ContactsGetEngagement200: Schema.Struct<{
|
|
|
1082
1110
|
readonly lastActivityAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1083
1111
|
readonly channelsUsed: Schema.$Record<Schema.String, Schema.Finite>;
|
|
1084
1112
|
}>;
|
|
1113
|
+
export type ContactsGetEngagement400 = MalformedRequestError;
|
|
1114
|
+
export declare const ContactsGetEngagement400: typeof MalformedRequestError;
|
|
1085
1115
|
export type ContactsGetEngagement401 = UnauthorizedError;
|
|
1086
1116
|
export declare const ContactsGetEngagement401: typeof UnauthorizedError;
|
|
1087
1117
|
export type ContactsGetEngagement403 = ForbiddenError;
|
|
@@ -1102,11 +1132,11 @@ export declare const ContactsGetGroupMembershipsPathParams: Schema.Struct<{
|
|
|
1102
1132
|
}>;
|
|
1103
1133
|
export type ContactsGetGroupMembershipsQuery = {
|
|
1104
1134
|
readonly limit?: number | null;
|
|
1105
|
-
readonly cursor?:
|
|
1135
|
+
readonly cursor?: string;
|
|
1106
1136
|
};
|
|
1107
1137
|
export declare const ContactsGetGroupMembershipsQuery: Schema.Struct<{
|
|
1108
1138
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
1109
|
-
readonly cursor: Schema.optionalKey<Schema.
|
|
1139
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
1110
1140
|
}>;
|
|
1111
1141
|
export type ContactsGetGroupMemberships200 = ContactGroupMembershipPage;
|
|
1112
1142
|
export declare const ContactsGetGroupMemberships200: Schema.Struct<{
|
|
@@ -1120,6 +1150,8 @@ export declare const ContactsGetGroupMemberships200: Schema.Struct<{
|
|
|
1120
1150
|
}>>;
|
|
1121
1151
|
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1122
1152
|
}>;
|
|
1153
|
+
export type ContactsGetGroupMemberships400 = MalformedRequestError;
|
|
1154
|
+
export declare const ContactsGetGroupMemberships400: typeof MalformedRequestError;
|
|
1123
1155
|
export type ContactsGetGroupMemberships401 = UnauthorizedError;
|
|
1124
1156
|
export declare const ContactsGetGroupMemberships401: typeof UnauthorizedError;
|
|
1125
1157
|
export type ContactsGetGroupMemberships403 = ForbiddenError;
|
|
@@ -1164,7 +1196,7 @@ export declare const ContactsAddIdentity200: Schema.Struct<{
|
|
|
1164
1196
|
readonly identifier: Schema.String;
|
|
1165
1197
|
readonly verified: Schema.Boolean;
|
|
1166
1198
|
readonly channels: Schema.$Array<Schema.Struct<{
|
|
1167
|
-
readonly channel: Schema.Literal<"email">;
|
|
1199
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
1168
1200
|
readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
|
|
1169
1201
|
readonly consent: Schema.Union<readonly [Schema.Struct<{
|
|
1170
1202
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
@@ -1189,11 +1221,13 @@ export declare const ContactsAddIdentity200: Schema.Struct<{
|
|
|
1189
1221
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"import">, Schema.Literal<"manual">, Schema.Literal<"form">]>, Schema.Null]>>;
|
|
1190
1222
|
}>, Schema.Null]>;
|
|
1191
1223
|
readonly preferences: Schema.Union<readonly [Schema.Struct<{
|
|
1192
|
-
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
1224
|
+
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
1193
1225
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1194
1226
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1195
1227
|
readonly notifications: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1196
1228
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1229
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1230
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1197
1231
|
readonly quiet_hours: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1198
1232
|
readonly start: Schema.String;
|
|
1199
1233
|
readonly end: Schema.String;
|
|
@@ -1263,6 +1297,8 @@ export declare const ContactsAddIdentity200: Schema.Struct<{
|
|
|
1263
1297
|
readonly createdAt: Schema.String;
|
|
1264
1298
|
readonly updatedAt: Schema.String;
|
|
1265
1299
|
}>;
|
|
1300
|
+
export type ContactsAddIdentity400 = MalformedRequestError;
|
|
1301
|
+
export declare const ContactsAddIdentity400: typeof MalformedRequestError;
|
|
1266
1302
|
export type ContactsAddIdentity401 = UnauthorizedError;
|
|
1267
1303
|
export declare const ContactsAddIdentity401: typeof UnauthorizedError;
|
|
1268
1304
|
export type ContactsAddIdentity403 = ForbiddenError;
|
|
@@ -1301,7 +1337,7 @@ export declare const ContactsRemoveIdentity200: Schema.Struct<{
|
|
|
1301
1337
|
readonly identifier: Schema.String;
|
|
1302
1338
|
readonly verified: Schema.Boolean;
|
|
1303
1339
|
readonly channels: Schema.$Array<Schema.Struct<{
|
|
1304
|
-
readonly channel: Schema.Literal<"email">;
|
|
1340
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
1305
1341
|
readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
|
|
1306
1342
|
readonly consent: Schema.Union<readonly [Schema.Struct<{
|
|
1307
1343
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
@@ -1326,11 +1362,13 @@ export declare const ContactsRemoveIdentity200: Schema.Struct<{
|
|
|
1326
1362
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"import">, Schema.Literal<"manual">, Schema.Literal<"form">]>, Schema.Null]>>;
|
|
1327
1363
|
}>, Schema.Null]>;
|
|
1328
1364
|
readonly preferences: Schema.Union<readonly [Schema.Struct<{
|
|
1329
|
-
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
1365
|
+
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
1330
1366
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1331
1367
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1332
1368
|
readonly notifications: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1333
1369
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1370
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1371
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1334
1372
|
readonly quiet_hours: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1335
1373
|
readonly start: Schema.String;
|
|
1336
1374
|
readonly end: Schema.String;
|
|
@@ -1400,6 +1438,8 @@ export declare const ContactsRemoveIdentity200: Schema.Struct<{
|
|
|
1400
1438
|
readonly createdAt: Schema.String;
|
|
1401
1439
|
readonly updatedAt: Schema.String;
|
|
1402
1440
|
}>;
|
|
1441
|
+
export type ContactsRemoveIdentity400 = MalformedRequestError;
|
|
1442
|
+
export declare const ContactsRemoveIdentity400: typeof MalformedRequestError;
|
|
1403
1443
|
export type ContactsRemoveIdentity401 = UnauthorizedError;
|
|
1404
1444
|
export declare const ContactsRemoveIdentity401: typeof UnauthorizedError;
|
|
1405
1445
|
export type ContactsRemoveIdentity403 = ForbiddenError;
|
|
@@ -1415,12 +1455,12 @@ export declare const ContactsRemoveIdentity504: typeof GatewayTimeoutError;
|
|
|
1415
1455
|
export type ContactsSetConsentPathParams = {
|
|
1416
1456
|
readonly id: ContactId;
|
|
1417
1457
|
readonly identityId: ContactIdentityId;
|
|
1418
|
-
readonly channel: "email";
|
|
1458
|
+
readonly channel: "sms" | "whatsapp" | "email";
|
|
1419
1459
|
};
|
|
1420
1460
|
export declare const ContactsSetConsentPathParams: Schema.Struct<{
|
|
1421
1461
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
1422
1462
|
readonly identityId: Schema.brand<Schema.String, "ContactIdentityId">;
|
|
1423
|
-
readonly channel: Schema.Literal<"email">;
|
|
1463
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
1424
1464
|
}>;
|
|
1425
1465
|
export type ContactsSetConsentRequestJson = {
|
|
1426
1466
|
readonly status: "opted_in" | "opted_out";
|
|
@@ -1450,7 +1490,7 @@ export declare const ContactsSetConsent200: Schema.Struct<{
|
|
|
1450
1490
|
readonly identifier: Schema.String;
|
|
1451
1491
|
readonly verified: Schema.Boolean;
|
|
1452
1492
|
readonly channels: Schema.$Array<Schema.Struct<{
|
|
1453
|
-
readonly channel: Schema.Literal<"email">;
|
|
1493
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
1454
1494
|
readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
|
|
1455
1495
|
readonly consent: Schema.Union<readonly [Schema.Struct<{
|
|
1456
1496
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
@@ -1475,11 +1515,13 @@ export declare const ContactsSetConsent200: Schema.Struct<{
|
|
|
1475
1515
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"import">, Schema.Literal<"manual">, Schema.Literal<"form">]>, Schema.Null]>>;
|
|
1476
1516
|
}>, Schema.Null]>;
|
|
1477
1517
|
readonly preferences: Schema.Union<readonly [Schema.Struct<{
|
|
1478
|
-
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
1518
|
+
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
1479
1519
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1480
1520
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1481
1521
|
readonly notifications: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1482
1522
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1523
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1524
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1483
1525
|
readonly quiet_hours: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1484
1526
|
readonly start: Schema.String;
|
|
1485
1527
|
readonly end: Schema.String;
|
|
@@ -1549,6 +1591,8 @@ export declare const ContactsSetConsent200: Schema.Struct<{
|
|
|
1549
1591
|
readonly createdAt: Schema.String;
|
|
1550
1592
|
readonly updatedAt: Schema.String;
|
|
1551
1593
|
}>;
|
|
1594
|
+
export type ContactsSetConsent400 = MalformedRequestError;
|
|
1595
|
+
export declare const ContactsSetConsent400: typeof MalformedRequestError;
|
|
1552
1596
|
export type ContactsSetConsent401 = UnauthorizedError;
|
|
1553
1597
|
export declare const ContactsSetConsent401: typeof UnauthorizedError;
|
|
1554
1598
|
export type ContactsSetConsent403 = ForbiddenError;
|
|
@@ -1589,7 +1633,7 @@ export declare const ContactsAddTags200: Schema.Struct<{
|
|
|
1589
1633
|
readonly identifier: Schema.String;
|
|
1590
1634
|
readonly verified: Schema.Boolean;
|
|
1591
1635
|
readonly channels: Schema.$Array<Schema.Struct<{
|
|
1592
|
-
readonly channel: Schema.Literal<"email">;
|
|
1636
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
1593
1637
|
readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
|
|
1594
1638
|
readonly consent: Schema.Union<readonly [Schema.Struct<{
|
|
1595
1639
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
@@ -1614,11 +1658,13 @@ export declare const ContactsAddTags200: Schema.Struct<{
|
|
|
1614
1658
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"import">, Schema.Literal<"manual">, Schema.Literal<"form">]>, Schema.Null]>>;
|
|
1615
1659
|
}>, Schema.Null]>;
|
|
1616
1660
|
readonly preferences: Schema.Union<readonly [Schema.Struct<{
|
|
1617
|
-
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
1661
|
+
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
1618
1662
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1619
1663
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1620
1664
|
readonly notifications: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1621
1665
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1666
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1667
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1622
1668
|
readonly quiet_hours: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1623
1669
|
readonly start: Schema.String;
|
|
1624
1670
|
readonly end: Schema.String;
|
|
@@ -1688,6 +1734,8 @@ export declare const ContactsAddTags200: Schema.Struct<{
|
|
|
1688
1734
|
readonly createdAt: Schema.String;
|
|
1689
1735
|
readonly updatedAt: Schema.String;
|
|
1690
1736
|
}>;
|
|
1737
|
+
export type ContactsAddTags400 = MalformedRequestError;
|
|
1738
|
+
export declare const ContactsAddTags400: typeof MalformedRequestError;
|
|
1691
1739
|
export type ContactsAddTags401 = UnauthorizedError;
|
|
1692
1740
|
export declare const ContactsAddTags401: typeof UnauthorizedError;
|
|
1693
1741
|
export type ContactsAddTags403 = ForbiddenError;
|
|
@@ -1728,7 +1776,7 @@ export declare const ContactsRemoveTags200: Schema.Struct<{
|
|
|
1728
1776
|
readonly identifier: Schema.String;
|
|
1729
1777
|
readonly verified: Schema.Boolean;
|
|
1730
1778
|
readonly channels: Schema.$Array<Schema.Struct<{
|
|
1731
|
-
readonly channel: Schema.Literal<"email">;
|
|
1779
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
1732
1780
|
readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
|
|
1733
1781
|
readonly consent: Schema.Union<readonly [Schema.Struct<{
|
|
1734
1782
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
@@ -1753,11 +1801,13 @@ export declare const ContactsRemoveTags200: Schema.Struct<{
|
|
|
1753
1801
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"import">, Schema.Literal<"manual">, Schema.Literal<"form">]>, Schema.Null]>>;
|
|
1754
1802
|
}>, Schema.Null]>;
|
|
1755
1803
|
readonly preferences: Schema.Union<readonly [Schema.Struct<{
|
|
1756
|
-
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
1804
|
+
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
1757
1805
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1758
1806
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1759
1807
|
readonly notifications: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1760
1808
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1809
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1810
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1761
1811
|
readonly quiet_hours: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1762
1812
|
readonly start: Schema.String;
|
|
1763
1813
|
readonly end: Schema.String;
|
|
@@ -1827,6 +1877,8 @@ export declare const ContactsRemoveTags200: Schema.Struct<{
|
|
|
1827
1877
|
readonly createdAt: Schema.String;
|
|
1828
1878
|
readonly updatedAt: Schema.String;
|
|
1829
1879
|
}>;
|
|
1880
|
+
export type ContactsRemoveTags400 = MalformedRequestError;
|
|
1881
|
+
export declare const ContactsRemoveTags400: typeof MalformedRequestError;
|
|
1830
1882
|
export type ContactsRemoveTags401 = UnauthorizedError;
|
|
1831
1883
|
export declare const ContactsRemoveTags401: typeof UnauthorizedError;
|
|
1832
1884
|
export type ContactsRemoveTags403 = ForbiddenError;
|
|
@@ -1853,6 +1905,8 @@ export declare const ContactsBulkDelete200: Schema.Struct<{
|
|
|
1853
1905
|
readonly deleted: Schema.Finite;
|
|
1854
1906
|
readonly failed: Schema.Finite;
|
|
1855
1907
|
}>;
|
|
1908
|
+
export type ContactsBulkDelete400 = MalformedRequestError;
|
|
1909
|
+
export declare const ContactsBulkDelete400: typeof MalformedRequestError;
|
|
1856
1910
|
export type ContactsBulkDelete401 = UnauthorizedError;
|
|
1857
1911
|
export declare const ContactsBulkDelete401: typeof UnauthorizedError;
|
|
1858
1912
|
export type ContactsBulkDelete403 = ForbiddenError;
|
|
@@ -1878,6 +1932,8 @@ export declare const ContactsBulkUpdateStatus200: Schema.Struct<{
|
|
|
1878
1932
|
readonly updated: Schema.Finite;
|
|
1879
1933
|
readonly failed: Schema.Finite;
|
|
1880
1934
|
}>;
|
|
1935
|
+
export type ContactsBulkUpdateStatus400 = MalformedRequestError;
|
|
1936
|
+
export declare const ContactsBulkUpdateStatus400: typeof MalformedRequestError;
|
|
1881
1937
|
export type ContactsBulkUpdateStatus401 = UnauthorizedError;
|
|
1882
1938
|
export declare const ContactsBulkUpdateStatus401: typeof UnauthorizedError;
|
|
1883
1939
|
export type ContactsBulkUpdateStatus402 = PaymentRequiredError;
|
|
@@ -1907,6 +1963,8 @@ export declare const ContactsBulkUpdateTags200: Schema.Struct<{
|
|
|
1907
1963
|
readonly updated: Schema.Finite;
|
|
1908
1964
|
readonly failed: Schema.Finite;
|
|
1909
1965
|
}>;
|
|
1966
|
+
export type ContactsBulkUpdateTags400 = MalformedRequestError;
|
|
1967
|
+
export declare const ContactsBulkUpdateTags400: typeof MalformedRequestError;
|
|
1910
1968
|
export type ContactsBulkUpdateTags401 = UnauthorizedError;
|
|
1911
1969
|
export declare const ContactsBulkUpdateTags401: typeof UnauthorizedError;
|
|
1912
1970
|
export type ContactsBulkUpdateTags403 = ForbiddenError;
|
|
@@ -1945,6 +2003,8 @@ export declare const ContactsExport200: Schema.Struct<{
|
|
|
1945
2003
|
readonly format: Schema.Union<readonly [Schema.Literal<"json">, Schema.Literal<"csv">]>;
|
|
1946
2004
|
readonly count: Schema.Finite;
|
|
1947
2005
|
}>;
|
|
2006
|
+
export type ContactsExport400 = MalformedRequestError;
|
|
2007
|
+
export declare const ContactsExport400: typeof MalformedRequestError;
|
|
1948
2008
|
export type ContactsExport401 = UnauthorizedError;
|
|
1949
2009
|
export declare const ContactsExport401: typeof UnauthorizedError;
|
|
1950
2010
|
export type ContactsExport403 = ForbiddenError;
|
|
@@ -1983,7 +2043,7 @@ export declare const ContactsFind200: Schema.Union<readonly [Schema.Struct<{
|
|
|
1983
2043
|
readonly identifier: Schema.String;
|
|
1984
2044
|
readonly verified: Schema.Boolean;
|
|
1985
2045
|
readonly channels: Schema.$Array<Schema.Struct<{
|
|
1986
|
-
readonly channel: Schema.Literal<"email">;
|
|
2046
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
1987
2047
|
readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
|
|
1988
2048
|
readonly consent: Schema.Union<readonly [Schema.Struct<{
|
|
1989
2049
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
@@ -2008,11 +2068,13 @@ export declare const ContactsFind200: Schema.Union<readonly [Schema.Struct<{
|
|
|
2008
2068
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"import">, Schema.Literal<"manual">, Schema.Literal<"form">]>, Schema.Null]>>;
|
|
2009
2069
|
}>, Schema.Null]>;
|
|
2010
2070
|
readonly preferences: Schema.Union<readonly [Schema.Struct<{
|
|
2011
|
-
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
2071
|
+
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
2012
2072
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2013
2073
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2014
2074
|
readonly notifications: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2015
2075
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2076
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2077
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2016
2078
|
readonly quiet_hours: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2017
2079
|
readonly start: Schema.String;
|
|
2018
2080
|
readonly end: Schema.String;
|
|
@@ -2082,6 +2144,8 @@ export declare const ContactsFind200: Schema.Union<readonly [Schema.Struct<{
|
|
|
2082
2144
|
readonly createdAt: Schema.String;
|
|
2083
2145
|
readonly updatedAt: Schema.String;
|
|
2084
2146
|
}>, Schema.Null]>;
|
|
2147
|
+
export type ContactsFind400 = MalformedRequestError;
|
|
2148
|
+
export declare const ContactsFind400: typeof MalformedRequestError;
|
|
2085
2149
|
export type ContactsFind401 = UnauthorizedError;
|
|
2086
2150
|
export declare const ContactsFind401: typeof UnauthorizedError;
|
|
2087
2151
|
export type ContactsFind403 = ForbiddenError;
|
|
@@ -2166,7 +2230,7 @@ export declare const ContactsFindOrCreate200: Schema.Struct<{
|
|
|
2166
2230
|
readonly identifier: Schema.String;
|
|
2167
2231
|
readonly verified: Schema.Boolean;
|
|
2168
2232
|
readonly channels: Schema.$Array<Schema.Struct<{
|
|
2169
|
-
readonly channel: Schema.Literal<"email">;
|
|
2233
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
2170
2234
|
readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
|
|
2171
2235
|
readonly consent: Schema.Union<readonly [Schema.Struct<{
|
|
2172
2236
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
@@ -2191,11 +2255,13 @@ export declare const ContactsFindOrCreate200: Schema.Struct<{
|
|
|
2191
2255
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"import">, Schema.Literal<"manual">, Schema.Literal<"form">]>, Schema.Null]>>;
|
|
2192
2256
|
}>, Schema.Null]>;
|
|
2193
2257
|
readonly preferences: Schema.Union<readonly [Schema.Struct<{
|
|
2194
|
-
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
2258
|
+
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
2195
2259
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2196
2260
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2197
2261
|
readonly notifications: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2198
2262
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2263
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2264
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2199
2265
|
readonly quiet_hours: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2200
2266
|
readonly start: Schema.String;
|
|
2201
2267
|
readonly end: Schema.String;
|
|
@@ -2267,6 +2333,8 @@ export declare const ContactsFindOrCreate200: Schema.Struct<{
|
|
|
2267
2333
|
}>;
|
|
2268
2334
|
readonly created: Schema.Boolean;
|
|
2269
2335
|
}>;
|
|
2336
|
+
export type ContactsFindOrCreate400 = MalformedRequestError;
|
|
2337
|
+
export declare const ContactsFindOrCreate400: typeof MalformedRequestError;
|
|
2270
2338
|
export type ContactsFindOrCreate401 = UnauthorizedError;
|
|
2271
2339
|
export declare const ContactsFindOrCreate401: typeof UnauthorizedError;
|
|
2272
2340
|
export type ContactsFindOrCreate402 = PaymentRequiredError;
|
|
@@ -2286,10 +2354,10 @@ export declare const ContactsFindOrCreate502: typeof BillingProviderError;
|
|
|
2286
2354
|
export type ContactsFindOrCreate504 = GatewayTimeoutError;
|
|
2287
2355
|
export declare const ContactsFindOrCreate504: typeof GatewayTimeoutError;
|
|
2288
2356
|
export type ContactsStartImportHeaders = {
|
|
2289
|
-
readonly "idempotency-key"?: string
|
|
2357
|
+
readonly "idempotency-key"?: string;
|
|
2290
2358
|
};
|
|
2291
2359
|
export declare const ContactsStartImportHeaders: Schema.Struct<{
|
|
2292
|
-
readonly "idempotency-key": Schema.optionalKey<Schema.
|
|
2360
|
+
readonly "idempotency-key": Schema.optionalKey<Schema.String>;
|
|
2293
2361
|
}>;
|
|
2294
2362
|
export type ContactsStartImportRequestJson = {
|
|
2295
2363
|
readonly mode: "new";
|
|
@@ -2424,6 +2492,8 @@ export declare const ContactsStartImport202: Schema.Struct<{
|
|
|
2424
2492
|
}>, Schema.Null]>;
|
|
2425
2493
|
readonly resumable: Schema.Boolean;
|
|
2426
2494
|
}>;
|
|
2495
|
+
export type ContactsStartImport400 = MalformedRequestError;
|
|
2496
|
+
export declare const ContactsStartImport400: typeof MalformedRequestError;
|
|
2427
2497
|
export type ContactsStartImport401 = UnauthorizedError;
|
|
2428
2498
|
export declare const ContactsStartImport401: typeof UnauthorizedError;
|
|
2429
2499
|
export type ContactsStartImport402 = PaymentRequiredError;
|
|
@@ -2510,6 +2580,8 @@ export declare const ContactsGetImportJob200: Schema.Struct<{
|
|
|
2510
2580
|
}>, Schema.Null]>;
|
|
2511
2581
|
readonly resumable: Schema.Boolean;
|
|
2512
2582
|
}>;
|
|
2583
|
+
export type ContactsGetImportJob400 = MalformedRequestError;
|
|
2584
|
+
export declare const ContactsGetImportJob400: typeof MalformedRequestError;
|
|
2513
2585
|
export type ContactsGetImportJob401 = UnauthorizedError;
|
|
2514
2586
|
export declare const ContactsGetImportJob401: typeof UnauthorizedError;
|
|
2515
2587
|
export type ContactsGetImportJob403 = ForbiddenError;
|
|
@@ -2629,6 +2701,8 @@ export declare const ContactsPlanImport200: Schema.Struct<{
|
|
|
2629
2701
|
}>>;
|
|
2630
2702
|
readonly diagnosticsTruncated: Schema.Boolean;
|
|
2631
2703
|
}>;
|
|
2704
|
+
export type ContactsPlanImport400 = MalformedRequestError;
|
|
2705
|
+
export declare const ContactsPlanImport400: typeof MalformedRequestError;
|
|
2632
2706
|
export type ContactsPlanImport401 = UnauthorizedError;
|
|
2633
2707
|
export declare const ContactsPlanImport401: typeof UnauthorizedError;
|
|
2634
2708
|
export type ContactsPlanImport403 = ForbiddenError;
|
|
@@ -2662,7 +2736,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
2662
2736
|
readonly identifier: Schema.String;
|
|
2663
2737
|
readonly verified: Schema.Boolean;
|
|
2664
2738
|
readonly channels: Schema.$Array<Schema.Struct<{
|
|
2665
|
-
readonly channel: Schema.Literal<"email">;
|
|
2739
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
2666
2740
|
readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
|
|
2667
2741
|
readonly consent: Schema.Union<readonly [Schema.Struct<{
|
|
2668
2742
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
@@ -2687,11 +2761,13 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
2687
2761
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"import">, Schema.Literal<"manual">, Schema.Literal<"form">]>, Schema.Null]>>;
|
|
2688
2762
|
}>, Schema.Null]>;
|
|
2689
2763
|
readonly preferences: Schema.Union<readonly [Schema.Struct<{
|
|
2690
|
-
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
2764
|
+
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
2691
2765
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2692
2766
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2693
2767
|
readonly notifications: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2694
2768
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2769
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2770
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2695
2771
|
readonly quiet_hours: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2696
2772
|
readonly start: Schema.String;
|
|
2697
2773
|
readonly end: Schema.String;
|
|
@@ -2808,6 +2884,26 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
2808
2884
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
2809
2885
|
readonly message: Schema.String;
|
|
2810
2886
|
readonly retryAfterSeconds: Schema.Finite;
|
|
2887
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
2888
|
+
readonly _tag: "MalformedRequestError";
|
|
2889
|
+
readonly message: string;
|
|
2890
|
+
readonly fields: {
|
|
2891
|
+
readonly [x: string]: readonly string[];
|
|
2892
|
+
};
|
|
2893
|
+
}, readonly [Schema.Struct<{
|
|
2894
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
2895
|
+
readonly message: Schema.String;
|
|
2896
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
2897
|
+
}>], {
|
|
2898
|
+
readonly _tag: "MalformedRequestError";
|
|
2899
|
+
readonly message: string;
|
|
2900
|
+
readonly fields: {
|
|
2901
|
+
readonly [x: string]: readonly string[];
|
|
2902
|
+
};
|
|
2903
|
+
}>, Schema.Struct<{
|
|
2904
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
2905
|
+
readonly message: Schema.String;
|
|
2906
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
2811
2907
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
2812
2908
|
readonly _tag: "ResourceNotFoundError";
|
|
2813
2909
|
readonly resource: string;
|
|
@@ -2879,7 +2975,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
2879
2975
|
readonly identifier: Schema.String;
|
|
2880
2976
|
readonly verified: Schema.Boolean;
|
|
2881
2977
|
readonly channels: Schema.$Array<Schema.Struct<{
|
|
2882
|
-
readonly channel: Schema.Literal<"email">;
|
|
2978
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
2883
2979
|
readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
|
|
2884
2980
|
readonly consent: Schema.Union<readonly [Schema.Struct<{
|
|
2885
2981
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
@@ -2904,11 +3000,13 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
2904
3000
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"import">, Schema.Literal<"manual">, Schema.Literal<"form">]>, Schema.Null]>>;
|
|
2905
3001
|
}>, Schema.Null]>;
|
|
2906
3002
|
readonly preferences: Schema.Union<readonly [Schema.Struct<{
|
|
2907
|
-
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
3003
|
+
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
2908
3004
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2909
3005
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2910
3006
|
readonly notifications: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2911
3007
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
3008
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
3009
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2912
3010
|
readonly quiet_hours: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2913
3011
|
readonly start: Schema.String;
|
|
2914
3012
|
readonly end: Schema.String;
|
|
@@ -3005,6 +3103,26 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3005
3103
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
3006
3104
|
readonly message: Schema.String;
|
|
3007
3105
|
readonly retryAfterSeconds: Schema.Finite;
|
|
3106
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
3107
|
+
readonly _tag: "MalformedRequestError";
|
|
3108
|
+
readonly message: string;
|
|
3109
|
+
readonly fields: {
|
|
3110
|
+
readonly [x: string]: readonly string[];
|
|
3111
|
+
};
|
|
3112
|
+
}, readonly [Schema.Struct<{
|
|
3113
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3114
|
+
readonly message: Schema.String;
|
|
3115
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3116
|
+
}>], {
|
|
3117
|
+
readonly _tag: "MalformedRequestError";
|
|
3118
|
+
readonly message: string;
|
|
3119
|
+
readonly fields: {
|
|
3120
|
+
readonly [x: string]: readonly string[];
|
|
3121
|
+
};
|
|
3122
|
+
}>, Schema.Struct<{
|
|
3123
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3124
|
+
readonly message: Schema.String;
|
|
3125
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3008
3126
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
3009
3127
|
readonly _tag: "ResourceNotFoundError";
|
|
3010
3128
|
readonly resource: string;
|
|
@@ -3102,6 +3220,26 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3102
3220
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
3103
3221
|
readonly message: Schema.String;
|
|
3104
3222
|
readonly retryAfterSeconds: Schema.Finite;
|
|
3223
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
3224
|
+
readonly _tag: "MalformedRequestError";
|
|
3225
|
+
readonly message: string;
|
|
3226
|
+
readonly fields: {
|
|
3227
|
+
readonly [x: string]: readonly string[];
|
|
3228
|
+
};
|
|
3229
|
+
}, readonly [Schema.Struct<{
|
|
3230
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3231
|
+
readonly message: Schema.String;
|
|
3232
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3233
|
+
}>], {
|
|
3234
|
+
readonly _tag: "MalformedRequestError";
|
|
3235
|
+
readonly message: string;
|
|
3236
|
+
readonly fields: {
|
|
3237
|
+
readonly [x: string]: readonly string[];
|
|
3238
|
+
};
|
|
3239
|
+
}>, Schema.Struct<{
|
|
3240
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3241
|
+
readonly message: Schema.String;
|
|
3242
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3105
3243
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
3106
3244
|
readonly _tag: "UnauthorizedError";
|
|
3107
3245
|
readonly message: string;
|
|
@@ -3180,6 +3318,26 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3180
3318
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
3181
3319
|
readonly message: Schema.String;
|
|
3182
3320
|
readonly retryAfterSeconds: Schema.Finite;
|
|
3321
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
3322
|
+
readonly _tag: "MalformedRequestError";
|
|
3323
|
+
readonly message: string;
|
|
3324
|
+
readonly fields: {
|
|
3325
|
+
readonly [x: string]: readonly string[];
|
|
3326
|
+
};
|
|
3327
|
+
}, readonly [Schema.Struct<{
|
|
3328
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3329
|
+
readonly message: Schema.String;
|
|
3330
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3331
|
+
}>], {
|
|
3332
|
+
readonly _tag: "MalformedRequestError";
|
|
3333
|
+
readonly message: string;
|
|
3334
|
+
readonly fields: {
|
|
3335
|
+
readonly [x: string]: readonly string[];
|
|
3336
|
+
};
|
|
3337
|
+
}>, Schema.Struct<{
|
|
3338
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3339
|
+
readonly message: Schema.String;
|
|
3340
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3183
3341
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<PaymentRequiredError, {
|
|
3184
3342
|
readonly _tag: "PaymentRequiredError";
|
|
3185
3343
|
readonly message: string;
|
|
@@ -3271,6 +3429,26 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3271
3429
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
3272
3430
|
readonly message: Schema.String;
|
|
3273
3431
|
readonly retryAfterSeconds: Schema.Finite;
|
|
3432
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
3433
|
+
readonly _tag: "MalformedRequestError";
|
|
3434
|
+
readonly message: string;
|
|
3435
|
+
readonly fields: {
|
|
3436
|
+
readonly [x: string]: readonly string[];
|
|
3437
|
+
};
|
|
3438
|
+
}, readonly [Schema.Struct<{
|
|
3439
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3440
|
+
readonly message: Schema.String;
|
|
3441
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3442
|
+
}>], {
|
|
3443
|
+
readonly _tag: "MalformedRequestError";
|
|
3444
|
+
readonly message: string;
|
|
3445
|
+
readonly fields: {
|
|
3446
|
+
readonly [x: string]: readonly string[];
|
|
3447
|
+
};
|
|
3448
|
+
}>, Schema.Struct<{
|
|
3449
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3450
|
+
readonly message: Schema.String;
|
|
3451
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3274
3452
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
3275
3453
|
readonly _tag: "UnauthorizedError";
|
|
3276
3454
|
readonly message: string;
|
|
@@ -3328,11 +3506,13 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3328
3506
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"import">, Schema.Literal<"manual">, Schema.Literal<"form">]>, Schema.Null]>>;
|
|
3329
3507
|
}>, Schema.Null]>>;
|
|
3330
3508
|
readonly preferences: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3331
|
-
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
3509
|
+
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
3332
3510
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3333
3511
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3334
3512
|
readonly notifications: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3335
3513
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
3514
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
3515
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
3336
3516
|
readonly quiet_hours: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3337
3517
|
readonly start: Schema.String;
|
|
3338
3518
|
readonly end: Schema.String;
|
|
@@ -3359,7 +3539,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3359
3539
|
readonly identifier: Schema.String;
|
|
3360
3540
|
readonly verified: Schema.Boolean;
|
|
3361
3541
|
readonly channels: Schema.$Array<Schema.Struct<{
|
|
3362
|
-
readonly channel: Schema.Literal<"email">;
|
|
3542
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
3363
3543
|
readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
|
|
3364
3544
|
readonly consent: Schema.Union<readonly [Schema.Struct<{
|
|
3365
3545
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
@@ -3384,11 +3564,13 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3384
3564
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"import">, Schema.Literal<"manual">, Schema.Literal<"form">]>, Schema.Null]>>;
|
|
3385
3565
|
}>, Schema.Null]>;
|
|
3386
3566
|
readonly preferences: Schema.Union<readonly [Schema.Struct<{
|
|
3387
|
-
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
3567
|
+
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
3388
3568
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3389
3569
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3390
3570
|
readonly notifications: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3391
3571
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
3572
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
3573
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
3392
3574
|
readonly quiet_hours: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3393
3575
|
readonly start: Schema.String;
|
|
3394
3576
|
readonly end: Schema.String;
|
|
@@ -3517,6 +3699,26 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3517
3699
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
3518
3700
|
readonly message: Schema.String;
|
|
3519
3701
|
readonly retryAfterSeconds: Schema.Finite;
|
|
3702
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
3703
|
+
readonly _tag: "MalformedRequestError";
|
|
3704
|
+
readonly message: string;
|
|
3705
|
+
readonly fields: {
|
|
3706
|
+
readonly [x: string]: readonly string[];
|
|
3707
|
+
};
|
|
3708
|
+
}, readonly [Schema.Struct<{
|
|
3709
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3710
|
+
readonly message: Schema.String;
|
|
3711
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3712
|
+
}>], {
|
|
3713
|
+
readonly _tag: "MalformedRequestError";
|
|
3714
|
+
readonly message: string;
|
|
3715
|
+
readonly fields: {
|
|
3716
|
+
readonly [x: string]: readonly string[];
|
|
3717
|
+
};
|
|
3718
|
+
}>, Schema.Struct<{
|
|
3719
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3720
|
+
readonly message: Schema.String;
|
|
3721
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3520
3722
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<PaymentRequiredError, {
|
|
3521
3723
|
readonly _tag: "PaymentRequiredError";
|
|
3522
3724
|
readonly message: string;
|
|
@@ -3633,6 +3835,26 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3633
3835
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
3634
3836
|
readonly message: Schema.String;
|
|
3635
3837
|
readonly retryAfterSeconds: Schema.Finite;
|
|
3838
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
3839
|
+
readonly _tag: "MalformedRequestError";
|
|
3840
|
+
readonly message: string;
|
|
3841
|
+
readonly fields: {
|
|
3842
|
+
readonly [x: string]: readonly string[];
|
|
3843
|
+
};
|
|
3844
|
+
}, readonly [Schema.Struct<{
|
|
3845
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3846
|
+
readonly message: Schema.String;
|
|
3847
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3848
|
+
}>], {
|
|
3849
|
+
readonly _tag: "MalformedRequestError";
|
|
3850
|
+
readonly message: string;
|
|
3851
|
+
readonly fields: {
|
|
3852
|
+
readonly [x: string]: readonly string[];
|
|
3853
|
+
};
|
|
3854
|
+
}>, Schema.Struct<{
|
|
3855
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3856
|
+
readonly message: Schema.String;
|
|
3857
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3636
3858
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
3637
3859
|
readonly _tag: "UnauthorizedError";
|
|
3638
3860
|
readonly message: string;
|
|
@@ -3685,7 +3907,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3685
3907
|
readonly identifier: Schema.String;
|
|
3686
3908
|
readonly verified: Schema.Boolean;
|
|
3687
3909
|
readonly channels: Schema.$Array<Schema.Struct<{
|
|
3688
|
-
readonly channel: Schema.Literal<"email">;
|
|
3910
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
3689
3911
|
readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
|
|
3690
3912
|
readonly consent: Schema.Union<readonly [Schema.Struct<{
|
|
3691
3913
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
@@ -3710,11 +3932,13 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3710
3932
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"import">, Schema.Literal<"manual">, Schema.Literal<"form">]>, Schema.Null]>>;
|
|
3711
3933
|
}>, Schema.Null]>;
|
|
3712
3934
|
readonly preferences: Schema.Union<readonly [Schema.Struct<{
|
|
3713
|
-
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
3935
|
+
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
3714
3936
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3715
3937
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3716
3938
|
readonly notifications: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3717
3939
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
3940
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
3941
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
3718
3942
|
readonly quiet_hours: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3719
3943
|
readonly start: Schema.String;
|
|
3720
3944
|
readonly end: Schema.String;
|
|
@@ -3831,6 +4055,26 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3831
4055
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
3832
4056
|
readonly message: Schema.String;
|
|
3833
4057
|
readonly retryAfterSeconds: Schema.Finite;
|
|
4058
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
4059
|
+
readonly _tag: "MalformedRequestError";
|
|
4060
|
+
readonly message: string;
|
|
4061
|
+
readonly fields: {
|
|
4062
|
+
readonly [x: string]: readonly string[];
|
|
4063
|
+
};
|
|
4064
|
+
}, readonly [Schema.Struct<{
|
|
4065
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4066
|
+
readonly message: Schema.String;
|
|
4067
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4068
|
+
}>], {
|
|
4069
|
+
readonly _tag: "MalformedRequestError";
|
|
4070
|
+
readonly message: string;
|
|
4071
|
+
readonly fields: {
|
|
4072
|
+
readonly [x: string]: readonly string[];
|
|
4073
|
+
};
|
|
4074
|
+
}>, Schema.Struct<{
|
|
4075
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4076
|
+
readonly message: Schema.String;
|
|
4077
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3834
4078
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
3835
4079
|
readonly _tag: "ResourceNotFoundError";
|
|
3836
4080
|
readonly resource: string;
|
|
@@ -3936,7 +4180,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3936
4180
|
readonly identifier: Schema.String;
|
|
3937
4181
|
readonly verified: Schema.Boolean;
|
|
3938
4182
|
readonly channels: Schema.$Array<Schema.Struct<{
|
|
3939
|
-
readonly channel: Schema.Literal<"email">;
|
|
4183
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
3940
4184
|
readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
|
|
3941
4185
|
readonly consent: Schema.Union<readonly [Schema.Struct<{
|
|
3942
4186
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
@@ -3961,11 +4205,13 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
3961
4205
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"import">, Schema.Literal<"manual">, Schema.Literal<"form">]>, Schema.Null]>>;
|
|
3962
4206
|
}>, Schema.Null]>;
|
|
3963
4207
|
readonly preferences: Schema.Union<readonly [Schema.Struct<{
|
|
3964
|
-
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
4208
|
+
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
3965
4209
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3966
4210
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3967
4211
|
readonly notifications: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3968
4212
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
4213
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
4214
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
3969
4215
|
readonly quiet_hours: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
3970
4216
|
readonly start: Schema.String;
|
|
3971
4217
|
readonly end: Schema.String;
|
|
@@ -4096,6 +4342,26 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
4096
4342
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4097
4343
|
readonly message: Schema.String;
|
|
4098
4344
|
readonly retryAfterSeconds: Schema.Finite;
|
|
4345
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
4346
|
+
readonly _tag: "MalformedRequestError";
|
|
4347
|
+
readonly message: string;
|
|
4348
|
+
readonly fields: {
|
|
4349
|
+
readonly [x: string]: readonly string[];
|
|
4350
|
+
};
|
|
4351
|
+
}, readonly [Schema.Struct<{
|
|
4352
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4353
|
+
readonly message: Schema.String;
|
|
4354
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4355
|
+
}>], {
|
|
4356
|
+
readonly _tag: "MalformedRequestError";
|
|
4357
|
+
readonly message: string;
|
|
4358
|
+
readonly fields: {
|
|
4359
|
+
readonly [x: string]: readonly string[];
|
|
4360
|
+
};
|
|
4361
|
+
}>, Schema.Struct<{
|
|
4362
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4363
|
+
readonly message: Schema.String;
|
|
4364
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4099
4365
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<PaymentRequiredError, {
|
|
4100
4366
|
readonly _tag: "PaymentRequiredError";
|
|
4101
4367
|
readonly message: string;
|
|
@@ -4189,7 +4455,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
4189
4455
|
readonly identifier: Schema.String;
|
|
4190
4456
|
readonly verified: Schema.Boolean;
|
|
4191
4457
|
readonly channels: Schema.$Array<Schema.Struct<{
|
|
4192
|
-
readonly channel: Schema.Literal<"email">;
|
|
4458
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
4193
4459
|
readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
|
|
4194
4460
|
readonly consent: Schema.Union<readonly [Schema.Struct<{
|
|
4195
4461
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
@@ -4214,11 +4480,13 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
4214
4480
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"import">, Schema.Literal<"manual">, Schema.Literal<"form">]>, Schema.Null]>>;
|
|
4215
4481
|
}>, Schema.Null]>;
|
|
4216
4482
|
readonly preferences: Schema.Union<readonly [Schema.Struct<{
|
|
4217
|
-
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
4483
|
+
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
4218
4484
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4219
4485
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
4220
4486
|
readonly notifications: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
4221
4487
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
4488
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
4489
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
4222
4490
|
readonly quiet_hours: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
4223
4491
|
readonly start: Schema.String;
|
|
4224
4492
|
readonly end: Schema.String;
|
|
@@ -4315,6 +4583,26 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
4315
4583
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4316
4584
|
readonly message: Schema.String;
|
|
4317
4585
|
readonly retryAfterSeconds: Schema.Finite;
|
|
4586
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
4587
|
+
readonly _tag: "MalformedRequestError";
|
|
4588
|
+
readonly message: string;
|
|
4589
|
+
readonly fields: {
|
|
4590
|
+
readonly [x: string]: readonly string[];
|
|
4591
|
+
};
|
|
4592
|
+
}, readonly [Schema.Struct<{
|
|
4593
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4594
|
+
readonly message: Schema.String;
|
|
4595
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4596
|
+
}>], {
|
|
4597
|
+
readonly _tag: "MalformedRequestError";
|
|
4598
|
+
readonly message: string;
|
|
4599
|
+
readonly fields: {
|
|
4600
|
+
readonly [x: string]: readonly string[];
|
|
4601
|
+
};
|
|
4602
|
+
}>, Schema.Struct<{
|
|
4603
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4604
|
+
readonly message: Schema.String;
|
|
4605
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4318
4606
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
4319
4607
|
readonly _tag: "ResourceNotFoundError";
|
|
4320
4608
|
readonly resource: string;
|
|
@@ -4371,8 +4659,8 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
4371
4659
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
4372
4660
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
4373
4661
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
4374
|
-
readonly cursor: Schema.optionalKey<Schema.
|
|
4375
|
-
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"
|
|
4662
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
4663
|
+
readonly channel: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>;
|
|
4376
4664
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
4377
4665
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
4378
4666
|
readonly id: Schema.brand<Schema.String, "MessageId">;
|
|
@@ -4413,6 +4701,26 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
4413
4701
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4414
4702
|
readonly message: Schema.String;
|
|
4415
4703
|
readonly retryAfterSeconds: Schema.Finite;
|
|
4704
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
4705
|
+
readonly _tag: "MalformedRequestError";
|
|
4706
|
+
readonly message: string;
|
|
4707
|
+
readonly fields: {
|
|
4708
|
+
readonly [x: string]: readonly string[];
|
|
4709
|
+
};
|
|
4710
|
+
}, readonly [Schema.Struct<{
|
|
4711
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4712
|
+
readonly message: Schema.String;
|
|
4713
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4714
|
+
}>], {
|
|
4715
|
+
readonly _tag: "MalformedRequestError";
|
|
4716
|
+
readonly message: string;
|
|
4717
|
+
readonly fields: {
|
|
4718
|
+
readonly [x: string]: readonly string[];
|
|
4719
|
+
};
|
|
4720
|
+
}>, Schema.Struct<{
|
|
4721
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4722
|
+
readonly message: Schema.String;
|
|
4723
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4416
4724
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
4417
4725
|
readonly _tag: "ResourceNotFoundError";
|
|
4418
4726
|
readonly resource: string;
|
|
@@ -4502,6 +4810,26 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
4502
4810
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4503
4811
|
readonly message: Schema.String;
|
|
4504
4812
|
readonly retryAfterSeconds: Schema.Finite;
|
|
4813
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
4814
|
+
readonly _tag: "MalformedRequestError";
|
|
4815
|
+
readonly message: string;
|
|
4816
|
+
readonly fields: {
|
|
4817
|
+
readonly [x: string]: readonly string[];
|
|
4818
|
+
};
|
|
4819
|
+
}, readonly [Schema.Struct<{
|
|
4820
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4821
|
+
readonly message: Schema.String;
|
|
4822
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4823
|
+
}>], {
|
|
4824
|
+
readonly _tag: "MalformedRequestError";
|
|
4825
|
+
readonly message: string;
|
|
4826
|
+
readonly fields: {
|
|
4827
|
+
readonly [x: string]: readonly string[];
|
|
4828
|
+
};
|
|
4829
|
+
}>, Schema.Struct<{
|
|
4830
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4831
|
+
readonly message: Schema.String;
|
|
4832
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4505
4833
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
4506
4834
|
readonly _tag: "ResourceNotFoundError";
|
|
4507
4835
|
readonly resource: string;
|
|
@@ -4558,7 +4886,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
4558
4886
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
4559
4887
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
4560
4888
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
4561
|
-
readonly cursor: Schema.optionalKey<Schema.
|
|
4889
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
4562
4890
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
4563
4891
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
4564
4892
|
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
@@ -4597,6 +4925,26 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
4597
4925
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4598
4926
|
readonly message: Schema.String;
|
|
4599
4927
|
readonly retryAfterSeconds: Schema.Finite;
|
|
4928
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
4929
|
+
readonly _tag: "MalformedRequestError";
|
|
4930
|
+
readonly message: string;
|
|
4931
|
+
readonly fields: {
|
|
4932
|
+
readonly [x: string]: readonly string[];
|
|
4933
|
+
};
|
|
4934
|
+
}, readonly [Schema.Struct<{
|
|
4935
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4936
|
+
readonly message: Schema.String;
|
|
4937
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4938
|
+
}>], {
|
|
4939
|
+
readonly _tag: "MalformedRequestError";
|
|
4940
|
+
readonly message: string;
|
|
4941
|
+
readonly fields: {
|
|
4942
|
+
readonly [x: string]: readonly string[];
|
|
4943
|
+
};
|
|
4944
|
+
}>, Schema.Struct<{
|
|
4945
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4946
|
+
readonly message: Schema.String;
|
|
4947
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4600
4948
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
4601
4949
|
readonly _tag: "ResourceNotFoundError";
|
|
4602
4950
|
readonly resource: string;
|
|
@@ -4709,6 +5057,26 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
4709
5057
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4710
5058
|
readonly message: Schema.String;
|
|
4711
5059
|
readonly retryAfterSeconds: Schema.Finite;
|
|
5060
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
5061
|
+
readonly _tag: "MalformedRequestError";
|
|
5062
|
+
readonly message: string;
|
|
5063
|
+
readonly fields: {
|
|
5064
|
+
readonly [x: string]: readonly string[];
|
|
5065
|
+
};
|
|
5066
|
+
}, readonly [Schema.Struct<{
|
|
5067
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5068
|
+
readonly message: Schema.String;
|
|
5069
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
5070
|
+
}>], {
|
|
5071
|
+
readonly _tag: "MalformedRequestError";
|
|
5072
|
+
readonly message: string;
|
|
5073
|
+
readonly fields: {
|
|
5074
|
+
readonly [x: string]: readonly string[];
|
|
5075
|
+
};
|
|
5076
|
+
}>, Schema.Struct<{
|
|
5077
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5078
|
+
readonly message: Schema.String;
|
|
5079
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4712
5080
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
4713
5081
|
readonly _tag: "ResourceNotFoundError";
|
|
4714
5082
|
readonly resource: string;
|
|
@@ -4763,15 +5131,15 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
4763
5131
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
4764
5132
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"contactsList", "GET", "/v1/contacts", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
4765
5133
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
4766
|
-
readonly cursor: Schema.optionalKey<Schema.
|
|
4767
|
-
readonly namespaceId: Schema.optionalKey<Schema.
|
|
4768
|
-
readonly search: Schema.optionalKey<Schema.
|
|
4769
|
-
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
4770
|
-
readonly fields: Schema.optionalKey<Schema.
|
|
4771
|
-
readonly customField: Schema.optionalKey<Schema.
|
|
4772
|
-
readonly customFieldValue: Schema.optionalKey<Schema.
|
|
4773
|
-
readonly after: Schema.optionalKey<Schema.
|
|
4774
|
-
readonly before: Schema.optionalKey<Schema.
|
|
5134
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
5135
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
5136
|
+
readonly search: Schema.optionalKey<Schema.String>;
|
|
5137
|
+
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"blocked">, Schema.Literal<"archived">]>>;
|
|
5138
|
+
readonly fields: Schema.optionalKey<Schema.String>;
|
|
5139
|
+
readonly customField: Schema.optionalKey<Schema.String>;
|
|
5140
|
+
readonly customFieldValue: Schema.optionalKey<Schema.String>;
|
|
5141
|
+
readonly after: Schema.optionalKey<Schema.String>;
|
|
5142
|
+
readonly before: Schema.optionalKey<Schema.String>;
|
|
4775
5143
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
4776
5144
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
4777
5145
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
@@ -4780,7 +5148,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
4780
5148
|
readonly displayName: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4781
5149
|
readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"blocked">, Schema.Literal<"archived">]>;
|
|
4782
5150
|
readonly email: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4783
|
-
readonly channels: Schema.$Array<Schema.Literal<"email">>;
|
|
5151
|
+
readonly channels: Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>;
|
|
4784
5152
|
readonly tags: Schema.$Array<Schema.String>;
|
|
4785
5153
|
readonly lists: Schema.$Array<Schema.Struct<{
|
|
4786
5154
|
readonly id: Schema.brand<Schema.String, "ContactGroupId">;
|
|
@@ -4820,6 +5188,26 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
4820
5188
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4821
5189
|
readonly message: Schema.String;
|
|
4822
5190
|
readonly retryAfterSeconds: Schema.Finite;
|
|
5191
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
5192
|
+
readonly _tag: "MalformedRequestError";
|
|
5193
|
+
readonly message: string;
|
|
5194
|
+
readonly fields: {
|
|
5195
|
+
readonly [x: string]: readonly string[];
|
|
5196
|
+
};
|
|
5197
|
+
}, readonly [Schema.Struct<{
|
|
5198
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5199
|
+
readonly message: Schema.String;
|
|
5200
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
5201
|
+
}>], {
|
|
5202
|
+
readonly _tag: "MalformedRequestError";
|
|
5203
|
+
readonly message: string;
|
|
5204
|
+
readonly fields: {
|
|
5205
|
+
readonly [x: string]: readonly string[];
|
|
5206
|
+
};
|
|
5207
|
+
}>, Schema.Struct<{
|
|
5208
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5209
|
+
readonly message: Schema.String;
|
|
5210
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4823
5211
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
4824
5212
|
readonly _tag: "UnauthorizedError";
|
|
4825
5213
|
readonly message: string;
|
|
@@ -4930,6 +5318,26 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
4930
5318
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4931
5319
|
readonly message: Schema.String;
|
|
4932
5320
|
readonly retryAfterSeconds: Schema.Finite;
|
|
5321
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
5322
|
+
readonly _tag: "MalformedRequestError";
|
|
5323
|
+
readonly message: string;
|
|
5324
|
+
readonly fields: {
|
|
5325
|
+
readonly [x: string]: readonly string[];
|
|
5326
|
+
};
|
|
5327
|
+
}, readonly [Schema.Struct<{
|
|
5328
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5329
|
+
readonly message: Schema.String;
|
|
5330
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
5331
|
+
}>], {
|
|
5332
|
+
readonly _tag: "MalformedRequestError";
|
|
5333
|
+
readonly message: string;
|
|
5334
|
+
readonly fields: {
|
|
5335
|
+
readonly [x: string]: readonly string[];
|
|
5336
|
+
};
|
|
5337
|
+
}>, Schema.Struct<{
|
|
5338
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5339
|
+
readonly message: Schema.String;
|
|
5340
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4933
5341
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
4934
5342
|
readonly _tag: "ResourceNotFoundError";
|
|
4935
5343
|
readonly resource: string;
|
|
@@ -5026,6 +5434,26 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
5026
5434
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
5027
5435
|
readonly message: Schema.String;
|
|
5028
5436
|
readonly retryAfterSeconds: Schema.Finite;
|
|
5437
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
5438
|
+
readonly _tag: "MalformedRequestError";
|
|
5439
|
+
readonly message: string;
|
|
5440
|
+
readonly fields: {
|
|
5441
|
+
readonly [x: string]: readonly string[];
|
|
5442
|
+
};
|
|
5443
|
+
}, readonly [Schema.Struct<{
|
|
5444
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5445
|
+
readonly message: Schema.String;
|
|
5446
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
5447
|
+
}>], {
|
|
5448
|
+
readonly _tag: "MalformedRequestError";
|
|
5449
|
+
readonly message: string;
|
|
5450
|
+
readonly fields: {
|
|
5451
|
+
readonly [x: string]: readonly string[];
|
|
5452
|
+
};
|
|
5453
|
+
}>, Schema.Struct<{
|
|
5454
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5455
|
+
readonly message: Schema.String;
|
|
5456
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
5029
5457
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
5030
5458
|
readonly _tag: "ResourceNotFoundError";
|
|
5031
5459
|
readonly resource: string;
|
|
@@ -5096,7 +5524,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
5096
5524
|
readonly identifier: Schema.String;
|
|
5097
5525
|
readonly verified: Schema.Boolean;
|
|
5098
5526
|
readonly channels: Schema.$Array<Schema.Struct<{
|
|
5099
|
-
readonly channel: Schema.Literal<"email">;
|
|
5527
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
5100
5528
|
readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
|
|
5101
5529
|
readonly consent: Schema.Union<readonly [Schema.Struct<{
|
|
5102
5530
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
@@ -5121,11 +5549,13 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
5121
5549
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"import">, Schema.Literal<"manual">, Schema.Literal<"form">]>, Schema.Null]>>;
|
|
5122
5550
|
}>, Schema.Null]>;
|
|
5123
5551
|
readonly preferences: Schema.Union<readonly [Schema.Struct<{
|
|
5124
|
-
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
5552
|
+
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
5125
5553
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5126
5554
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5127
5555
|
readonly notifications: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5128
5556
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
5557
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
5558
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
5129
5559
|
readonly quiet_hours: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5130
5560
|
readonly start: Schema.String;
|
|
5131
5561
|
readonly end: Schema.String;
|
|
@@ -5222,6 +5652,26 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
5222
5652
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
5223
5653
|
readonly message: Schema.String;
|
|
5224
5654
|
readonly retryAfterSeconds: Schema.Finite;
|
|
5655
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
5656
|
+
readonly _tag: "MalformedRequestError";
|
|
5657
|
+
readonly message: string;
|
|
5658
|
+
readonly fields: {
|
|
5659
|
+
readonly [x: string]: readonly string[];
|
|
5660
|
+
};
|
|
5661
|
+
}, readonly [Schema.Struct<{
|
|
5662
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5663
|
+
readonly message: Schema.String;
|
|
5664
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
5665
|
+
}>], {
|
|
5666
|
+
readonly _tag: "MalformedRequestError";
|
|
5667
|
+
readonly message: string;
|
|
5668
|
+
readonly fields: {
|
|
5669
|
+
readonly [x: string]: readonly string[];
|
|
5670
|
+
};
|
|
5671
|
+
}>, Schema.Struct<{
|
|
5672
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5673
|
+
readonly message: Schema.String;
|
|
5674
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
5225
5675
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
5226
5676
|
readonly _tag: "ResourceNotFoundError";
|
|
5227
5677
|
readonly resource: string;
|
|
@@ -5293,7 +5743,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
5293
5743
|
readonly identifier: Schema.String;
|
|
5294
5744
|
readonly verified: Schema.Boolean;
|
|
5295
5745
|
readonly channels: Schema.$Array<Schema.Struct<{
|
|
5296
|
-
readonly channel: Schema.Literal<"email">;
|
|
5746
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
5297
5747
|
readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
|
|
5298
5748
|
readonly consent: Schema.Union<readonly [Schema.Struct<{
|
|
5299
5749
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
@@ -5318,11 +5768,13 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
5318
5768
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"import">, Schema.Literal<"manual">, Schema.Literal<"form">]>, Schema.Null]>>;
|
|
5319
5769
|
}>, Schema.Null]>;
|
|
5320
5770
|
readonly preferences: Schema.Union<readonly [Schema.Struct<{
|
|
5321
|
-
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
5771
|
+
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
5322
5772
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5323
5773
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5324
5774
|
readonly notifications: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5325
5775
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
5776
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
5777
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
5326
5778
|
readonly quiet_hours: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5327
5779
|
readonly start: Schema.String;
|
|
5328
5780
|
readonly end: Schema.String;
|
|
@@ -5419,6 +5871,26 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
5419
5871
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
5420
5872
|
readonly message: Schema.String;
|
|
5421
5873
|
readonly retryAfterSeconds: Schema.Finite;
|
|
5874
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
5875
|
+
readonly _tag: "MalformedRequestError";
|
|
5876
|
+
readonly message: string;
|
|
5877
|
+
readonly fields: {
|
|
5878
|
+
readonly [x: string]: readonly string[];
|
|
5879
|
+
};
|
|
5880
|
+
}, readonly [Schema.Struct<{
|
|
5881
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5882
|
+
readonly message: Schema.String;
|
|
5883
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
5884
|
+
}>], {
|
|
5885
|
+
readonly _tag: "MalformedRequestError";
|
|
5886
|
+
readonly message: string;
|
|
5887
|
+
readonly fields: {
|
|
5888
|
+
readonly [x: string]: readonly string[];
|
|
5889
|
+
};
|
|
5890
|
+
}>, Schema.Struct<{
|
|
5891
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5892
|
+
readonly message: Schema.String;
|
|
5893
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
5422
5894
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
5423
5895
|
readonly _tag: "ResourceNotFoundError";
|
|
5424
5896
|
readonly resource: string;
|
|
@@ -5474,7 +5946,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
5474
5946
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"contactsSetConsent", "PUT", "/v1/contacts/:id/identities/:identityId/consent/:channel", Schema.toCodecStringTree<Schema.Struct<{
|
|
5475
5947
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
5476
5948
|
readonly identityId: Schema.brand<Schema.String, "ContactIdentityId">;
|
|
5477
|
-
readonly channel: Schema.Literal<"email">;
|
|
5949
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
5478
5950
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
5479
5951
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
5480
5952
|
readonly source: Schema.String;
|
|
@@ -5495,7 +5967,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
5495
5967
|
readonly identifier: Schema.String;
|
|
5496
5968
|
readonly verified: Schema.Boolean;
|
|
5497
5969
|
readonly channels: Schema.$Array<Schema.Struct<{
|
|
5498
|
-
readonly channel: Schema.Literal<"email">;
|
|
5970
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
5499
5971
|
readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
|
|
5500
5972
|
readonly consent: Schema.Union<readonly [Schema.Struct<{
|
|
5501
5973
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
@@ -5520,11 +5992,13 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
5520
5992
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"import">, Schema.Literal<"manual">, Schema.Literal<"form">]>, Schema.Null]>>;
|
|
5521
5993
|
}>, Schema.Null]>;
|
|
5522
5994
|
readonly preferences: Schema.Union<readonly [Schema.Struct<{
|
|
5523
|
-
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
5995
|
+
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
5524
5996
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5525
5997
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5526
5998
|
readonly notifications: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5527
5999
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
6000
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
6001
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
5528
6002
|
readonly quiet_hours: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5529
6003
|
readonly start: Schema.String;
|
|
5530
6004
|
readonly end: Schema.String;
|
|
@@ -5621,6 +6095,26 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
5621
6095
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
5622
6096
|
readonly message: Schema.String;
|
|
5623
6097
|
readonly retryAfterSeconds: Schema.Finite;
|
|
6098
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
6099
|
+
readonly _tag: "MalformedRequestError";
|
|
6100
|
+
readonly message: string;
|
|
6101
|
+
readonly fields: {
|
|
6102
|
+
readonly [x: string]: readonly string[];
|
|
6103
|
+
};
|
|
6104
|
+
}, readonly [Schema.Struct<{
|
|
6105
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
6106
|
+
readonly message: Schema.String;
|
|
6107
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
6108
|
+
}>], {
|
|
6109
|
+
readonly _tag: "MalformedRequestError";
|
|
6110
|
+
readonly message: string;
|
|
6111
|
+
readonly fields: {
|
|
6112
|
+
readonly [x: string]: readonly string[];
|
|
6113
|
+
};
|
|
6114
|
+
}>, Schema.Struct<{
|
|
6115
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
6116
|
+
readonly message: Schema.String;
|
|
6117
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
5624
6118
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
5625
6119
|
readonly _tag: "ResourceNotFoundError";
|
|
5626
6120
|
readonly resource: string;
|
|
@@ -5707,7 +6201,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
5707
6201
|
readonly jobId: Schema.brand<Schema.String, "ContactImportJobId">;
|
|
5708
6202
|
readonly expectedGeneration: Schema.Finite;
|
|
5709
6203
|
}>]>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
5710
|
-
readonly "idempotency-key": Schema.optionalKey<Schema.
|
|
6204
|
+
readonly "idempotency-key": Schema.optionalKey<Schema.String>;
|
|
5711
6205
|
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
5712
6206
|
readonly id: Schema.brand<Schema.String, "ContactImportJobId">;
|
|
5713
6207
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
@@ -5798,6 +6292,26 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
5798
6292
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
5799
6293
|
readonly message: Schema.String;
|
|
5800
6294
|
readonly retryAfterSeconds: Schema.Finite;
|
|
6295
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
6296
|
+
readonly _tag: "MalformedRequestError";
|
|
6297
|
+
readonly message: string;
|
|
6298
|
+
readonly fields: {
|
|
6299
|
+
readonly [x: string]: readonly string[];
|
|
6300
|
+
};
|
|
6301
|
+
}, readonly [Schema.Struct<{
|
|
6302
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
6303
|
+
readonly message: Schema.String;
|
|
6304
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
6305
|
+
}>], {
|
|
6306
|
+
readonly _tag: "MalformedRequestError";
|
|
6307
|
+
readonly message: string;
|
|
6308
|
+
readonly fields: {
|
|
6309
|
+
readonly [x: string]: readonly string[];
|
|
6310
|
+
};
|
|
6311
|
+
}>, Schema.Struct<{
|
|
6312
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
6313
|
+
readonly message: Schema.String;
|
|
6314
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
5801
6315
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<PaymentRequiredError, {
|
|
5802
6316
|
readonly _tag: "PaymentRequiredError";
|
|
5803
6317
|
readonly message: string;
|
|
@@ -5894,11 +6408,13 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
5894
6408
|
readonly customFields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Null]>>, Schema.Null]>>;
|
|
5895
6409
|
}>, Schema.Null]>>;
|
|
5896
6410
|
readonly preferences: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5897
|
-
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
6411
|
+
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
5898
6412
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5899
6413
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5900
6414
|
readonly notifications: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5901
6415
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
6416
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
6417
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
5902
6418
|
readonly quiet_hours: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5903
6419
|
readonly start: Schema.String;
|
|
5904
6420
|
readonly end: Schema.String;
|
|
@@ -5924,7 +6440,7 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
5924
6440
|
readonly identifier: Schema.String;
|
|
5925
6441
|
readonly verified: Schema.Boolean;
|
|
5926
6442
|
readonly channels: Schema.$Array<Schema.Struct<{
|
|
5927
|
-
readonly channel: Schema.Literal<"email">;
|
|
6443
|
+
readonly channel: Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>;
|
|
5928
6444
|
readonly reachability: Schema.Union<readonly [Schema.Literal<"unknown">, Schema.Literal<"reachable">, Schema.Literal<"unreachable">]>;
|
|
5929
6445
|
readonly consent: Schema.Union<readonly [Schema.Struct<{
|
|
5930
6446
|
readonly status: Schema.Union<readonly [Schema.Literal<"opted_in">, Schema.Literal<"opted_out">]>;
|
|
@@ -5949,11 +6465,13 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
5949
6465
|
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"api">, Schema.Literal<"import">, Schema.Literal<"manual">, Schema.Literal<"form">]>, Schema.Null]>>;
|
|
5950
6466
|
}>, Schema.Null]>;
|
|
5951
6467
|
readonly preferences: Schema.Union<readonly [Schema.Struct<{
|
|
5952
|
-
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
6468
|
+
readonly preferredChannels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"sms">, Schema.Literal<"whatsapp">, Schema.Literal<"email">]>>, Schema.Null]>>;
|
|
5953
6469
|
readonly language: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5954
6470
|
readonly timezone: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5955
6471
|
readonly notifications: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5956
6472
|
readonly email: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
6473
|
+
readonly sms: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
6474
|
+
readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
5957
6475
|
readonly quiet_hours: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
5958
6476
|
readonly start: Schema.String;
|
|
5959
6477
|
readonly end: Schema.String;
|
|
@@ -6062,6 +6580,26 @@ declare const ContactsGroup_base: HttpApiGroup.HttpApiGroup<"Contacts", HttpApiE
|
|
|
6062
6580
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
6063
6581
|
readonly message: Schema.String;
|
|
6064
6582
|
readonly retryAfterSeconds: Schema.Finite;
|
|
6583
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
6584
|
+
readonly _tag: "MalformedRequestError";
|
|
6585
|
+
readonly message: string;
|
|
6586
|
+
readonly fields: {
|
|
6587
|
+
readonly [x: string]: readonly string[];
|
|
6588
|
+
};
|
|
6589
|
+
}, readonly [Schema.Struct<{
|
|
6590
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
6591
|
+
readonly message: Schema.String;
|
|
6592
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
6593
|
+
}>], {
|
|
6594
|
+
readonly _tag: "MalformedRequestError";
|
|
6595
|
+
readonly message: string;
|
|
6596
|
+
readonly fields: {
|
|
6597
|
+
readonly [x: string]: readonly string[];
|
|
6598
|
+
};
|
|
6599
|
+
}>, Schema.Struct<{
|
|
6600
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
6601
|
+
readonly message: Schema.String;
|
|
6602
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
6065
6603
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<PaymentRequiredError, {
|
|
6066
6604
|
readonly _tag: "PaymentRequiredError";
|
|
6067
6605
|
readonly message: string;
|