samva 0.26.0 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +7 -0
- package/README.md +14 -7
- package/dist/client/sdk.gen.d.ts +322 -143
- package/dist/client/sdk.gen.js +1085 -332
- package/dist/client/types.gen.d.ts +1342 -479
- package/dist/effect/agents.d.ts +119 -0
- package/dist/effect/agents.js +29 -0
- package/dist/effect/analytics.d.ts +1 -1
- package/dist/effect/analytics.js +1 -1
- package/dist/effect/api-keys.d.ts +6 -6
- package/dist/effect/attachments.d.ts +1 -1
- package/dist/effect/brands.d.ts +2 -0
- package/dist/effect/campaigns.d.ts +275 -25
- package/dist/effect/campaigns.js +7 -1
- package/dist/effect/contact-groups.d.ts +9 -9
- package/dist/effect/contacts.d.ts +74 -81
- package/dist/effect/contacts.js +7 -3
- package/dist/effect/conversations.d.ts +14 -6
- package/dist/effect/email.d.ts +34 -34
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +3 -3
- package/dist/effect/extensions.d.ts +6 -6
- package/dist/effect/generated/agents.d.ts +6 -28
- package/dist/effect/generated/agents.js +270 -0
- package/dist/effect/generated/analytics.d.ts +3 -3
- package/dist/effect/generated/analytics.js +1 -1
- package/dist/effect/generated/api-keys.d.ts +6 -6
- package/dist/effect/generated/api-keys.js +2 -2
- package/dist/effect/generated/attachments.d.ts +3 -3
- package/dist/effect/generated/attachments.js +1 -1
- package/dist/effect/generated/brands.d.ts +16 -0
- package/dist/effect/generated/campaigns.d.ts +1181 -302
- package/dist/effect/generated/campaigns.js +169 -36
- package/dist/effect/generated/contact-events.d.ts +3 -3
- package/dist/effect/generated/contact-events.js +1 -1
- package/dist/effect/generated/contact-groups.d.ts +9 -9
- package/dist/effect/generated/contact-groups.js +7 -7
- package/dist/effect/generated/contacts.d.ts +2063 -290
- package/dist/effect/generated/contacts.js +343 -75
- package/dist/effect/generated/conversations.d.ts +14 -6
- package/dist/effect/generated/conversations.js +6 -6
- package/dist/effect/generated/email.d.ts +55 -70
- package/dist/effect/generated/email.js +18 -21
- package/dist/effect/generated/extension-installations.d.ts +3 -3
- package/dist/effect/generated/extension-installations.js +1 -1
- package/dist/effect/generated/extensions.d.ts +6 -6
- package/dist/effect/generated/extensions.js +2 -2
- package/dist/effect/generated/index.d.ts +5 -3
- package/dist/effect/generated/journeys.d.ts +9 -9
- package/dist/effect/generated/journeys.js +3 -3
- package/dist/effect/generated/mailboxes.d.ts +466 -712
- package/dist/effect/generated/mailboxes.js +22 -14
- package/dist/effect/generated/messages.d.ts +53 -29
- package/dist/effect/generated/messages.js +9 -5
- package/dist/effect/generated/namespaces.d.ts +3 -3
- package/dist/effect/generated/namespaces.js +1 -1
- package/dist/effect/generated/operations.d.ts +3 -3
- package/dist/effect/generated/operations.js +1 -1
- package/dist/effect/generated/organizations.d.ts +0 -9
- package/dist/effect/generated/organizations.js +1 -4
- package/dist/effect/generated/scheduled-messages.d.ts +69 -20
- package/dist/effect/generated/scheduled-messages.js +22 -3
- package/dist/effect/generated/shared.d.ts +431 -177
- package/dist/effect/generated/shared.js +216 -108
- package/dist/effect/generated/subscriptions.d.ts +4 -7
- package/dist/effect/generated/subscriptions.js +3 -4
- package/dist/effect/generated/templates.d.ts +71 -407
- package/dist/effect/generated/templates.js +23 -23
- package/dist/effect/generated/topic-forms.d.ts +656 -0
- package/dist/effect/generated/topic-forms.js +145 -0
- package/dist/effect/generated/{unsubscribe-groups.d.ts → topics.d.ts} +640 -435
- package/dist/effect/generated/topics.js +267 -0
- package/dist/effect/generated/webhooks.d.ts +6 -6
- package/dist/effect/generated/webhooks.js +2 -2
- package/dist/effect/generated-metadata.d.ts +78 -24
- package/dist/effect/generated-metadata.js +61 -27
- package/dist/effect/index.d.ts +3 -1
- package/dist/effect/index.js +5 -3
- package/dist/effect/internal/operation.js +4 -3
- package/dist/effect/internal/send.d.ts +4 -4
- package/dist/effect/journeys.d.ts +119 -119
- package/dist/effect/mailboxes.d.ts +137 -121
- package/dist/effect/messages.d.ts +19 -11
- package/dist/effect/namespaces.d.ts +3 -3
- package/dist/effect/operations.d.ts +3 -3
- package/dist/effect/scheduled-messages.d.ts +6 -6
- package/dist/effect/subscriptions.d.ts +1 -2
- package/dist/effect/templates.d.ts +13 -13
- package/dist/effect/topic-forms.d.ts +30 -0
- package/dist/effect/topic-forms.js +21 -0
- package/dist/effect/topics.d.ts +94 -0
- package/dist/effect/topics.js +29 -0
- package/dist/effect/webhooks.d.ts +6 -6
- package/dist/index.js +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/errors.gen.d.ts +65 -8
- package/dist/promises/errors.gen.js +139 -7
- package/dist/promises/index.d.ts +7 -3
- package/dist/promises/index.js +9 -5
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +117 -23
- package/dist/service-map.js +71 -10
- package/package.json +17 -9
- package/dist/effect/generated/unsubscribe-groups.js +0 -284
- package/dist/effect/unsubscribe-groups.d.ts +0 -74
- package/dist/effect/unsubscribe-groups.js +0 -29
|
@@ -52,8 +52,6 @@ export type AgentMode = "live" | "supervised";
|
|
|
52
52
|
export declare const AgentMode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
53
53
|
export type AgentModel = "standard" | "max";
|
|
54
54
|
export declare const AgentModel: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
55
|
-
export type AgentApprovalPolicy = "toolActions" | "none";
|
|
56
|
-
export declare const AgentApprovalPolicy: Schema.Union<readonly [Schema.Literal<"toolActions">, Schema.Literal<"none">]>;
|
|
57
55
|
export type TimeZone = string;
|
|
58
56
|
export declare const TimeZone: Schema.String;
|
|
59
57
|
export type Weekday = "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
|
|
@@ -188,6 +186,8 @@ export declare const BrandSocialLink: Schema.Struct<{
|
|
|
188
186
|
readonly label: Schema.String;
|
|
189
187
|
readonly url: Schema.String;
|
|
190
188
|
}>;
|
|
189
|
+
export type CampaignId = string & EffectBrand.Brand<"CampaignId">;
|
|
190
|
+
export declare const CampaignId: Schema.brand<Schema.String, "CampaignId">;
|
|
191
191
|
export type MediaId = string & EffectBrand.Brand<"MediaId">;
|
|
192
192
|
export declare const MediaId: Schema.brand<Schema.String, "MediaId">;
|
|
193
193
|
export type TemplatePublicationId = string & EffectBrand.Brand<"TemplatePublicationId">;
|
|
@@ -206,8 +206,8 @@ export type RenderTimeZone = string;
|
|
|
206
206
|
export declare const RenderTimeZone: Schema.String;
|
|
207
207
|
export type ReplyToAddresses = ReadonlyArray<string> | null | null;
|
|
208
208
|
export declare const ReplyToAddresses: Schema.Union<readonly [Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>, Schema.Null]>;
|
|
209
|
-
export type
|
|
210
|
-
export declare const
|
|
209
|
+
export type TopicId = string & EffectBrand.Brand<"TopicId">;
|
|
210
|
+
export declare const TopicId: Schema.brand<Schema.String, "TopicId">;
|
|
211
211
|
export type EmailTrackingOverrideV1 = {
|
|
212
212
|
readonly opens?: boolean;
|
|
213
213
|
readonly clicks?: boolean;
|
|
@@ -226,12 +226,26 @@ export type EmailCustomHeaders = {
|
|
|
226
226
|
readonly [x: string]: string;
|
|
227
227
|
};
|
|
228
228
|
export declare const EmailCustomHeaders: Schema.$Record<Schema.String, Schema.String>;
|
|
229
|
+
export type CampaignFrom = {
|
|
230
|
+
readonly email: string;
|
|
231
|
+
readonly name?: string | null;
|
|
232
|
+
} | null;
|
|
233
|
+
export declare const CampaignFrom: Schema.Union<readonly [Schema.Struct<{
|
|
234
|
+
readonly email: Schema.String;
|
|
235
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
236
|
+
}>, Schema.Null]>;
|
|
229
237
|
export type ConversationId = string & EffectBrand.Brand<"ConversationId">;
|
|
230
238
|
export declare const ConversationId: Schema.brand<Schema.String, "ConversationId">;
|
|
239
|
+
export type CampaignContentMetadata = {
|
|
240
|
+
readonly [x: string]: JsonValue;
|
|
241
|
+
} | null;
|
|
242
|
+
export declare const CampaignContentMetadata: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>;
|
|
231
243
|
export type ContactId = string & EffectBrand.Brand<"ContactId">;
|
|
232
244
|
export declare const ContactId: Schema.brand<Schema.String, "ContactId">;
|
|
233
245
|
export type ContactGroupId = string & EffectBrand.Brand<"ContactGroupId">;
|
|
234
246
|
export declare const ContactGroupId: Schema.brand<Schema.String, "ContactGroupId">;
|
|
247
|
+
export type CampaignRunId = string & EffectBrand.Brand<"CampaignRunId">;
|
|
248
|
+
export declare const CampaignRunId: Schema.brand<Schema.String, "CampaignRunId">;
|
|
235
249
|
export type SendsSeries = ReadonlyArray<number>;
|
|
236
250
|
export declare const SendsSeries: Schema.$Array<Schema.Finite>;
|
|
237
251
|
declare const FlagDisabledError_base: Schema.Class<FlagDisabledError, Schema.Struct<{
|
|
@@ -277,6 +291,24 @@ declare const SenderNotReadyError_base: Schema.Class<SenderNotReadyError, Schema
|
|
|
277
291
|
}>, import("effect/Cause").YieldableError>;
|
|
278
292
|
export declare class SenderNotReadyError extends SenderNotReadyError_base {
|
|
279
293
|
}
|
|
294
|
+
declare const OnboardingReviewRequiredError_base: Schema.Class<OnboardingReviewRequiredError, Schema.Struct<{
|
|
295
|
+
readonly _tag: Schema.tag<"OnboardingReviewRequiredError">;
|
|
296
|
+
readonly message: Schema.String;
|
|
297
|
+
readonly code: Schema.Union<readonly [Schema.Literal<"review_required">, Schema.Literal<"review_in_progress">, Schema.Literal<"information_required">, Schema.Literal<"review_rejected">, Schema.Literal<"identity_review_required">, Schema.Literal<"identity_review_rejected">, Schema.Literal<"identity_changed">]>;
|
|
298
|
+
readonly decision: Schema.Union<readonly [Schema.Literal<"undecided">, Schema.Literal<"approved">, Schema.Literal<"rejected">]>;
|
|
299
|
+
readonly stage: Schema.Union<readonly [Schema.Literal<"collecting">, Schema.Literal<"automated_review">, Schema.Literal<"manual_review">, Schema.Literal<"information_requested">, Schema.Literal<"complete">]>;
|
|
300
|
+
readonly nextAction: Schema.Union<readonly [Schema.Literal<"wait_for_review">, Schema.Literal<"provide_information">, Schema.Literal<"verify_sending_identity">, Schema.Literal<"reapply">, Schema.Literal<"contact_support">]>;
|
|
301
|
+
readonly identityId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
302
|
+
}>, import("effect/Cause").YieldableError>;
|
|
303
|
+
export declare class OnboardingReviewRequiredError extends OnboardingReviewRequiredError_base {
|
|
304
|
+
}
|
|
305
|
+
declare const DeliveryUnavailableError_base: Schema.Class<DeliveryUnavailableError, Schema.Struct<{
|
|
306
|
+
readonly _tag: Schema.tag<"DeliveryUnavailableError">;
|
|
307
|
+
readonly message: Schema.String;
|
|
308
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
309
|
+
}>, import("effect/Cause").YieldableError>;
|
|
310
|
+
export declare class DeliveryUnavailableError extends DeliveryUnavailableError_base {
|
|
311
|
+
}
|
|
280
312
|
export type ContactIdentityId = string & EffectBrand.Brand<"ContactIdentityId">;
|
|
281
313
|
export declare const ContactIdentityId: Schema.brand<Schema.String, "ContactIdentityId">;
|
|
282
314
|
export type WebhookEndpointId = string & EffectBrand.Brand<"WebhookEndpointId">;
|
|
@@ -443,53 +475,35 @@ export type MailboxSendError = {
|
|
|
443
475
|
readonly id: string;
|
|
444
476
|
readonly message: string;
|
|
445
477
|
};
|
|
446
|
-
export declare const MailboxSendError: Schema.Union<readonly [Schema.
|
|
447
|
-
readonly _tag: Schema.Literal<"SenderNotReadyError">;
|
|
478
|
+
export declare const MailboxSendError: Schema.Union<readonly [Schema.TaggedStruct<"SenderNotReadyError", {
|
|
448
479
|
readonly message: Schema.String;
|
|
449
480
|
readonly sender: Schema.String;
|
|
450
481
|
readonly retryAfterSeconds: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
451
|
-
}>, Schema.
|
|
452
|
-
readonly _tag: Schema.Literal<"RateLimitedError">;
|
|
482
|
+
}>, Schema.TaggedStruct<"RateLimitedError", {
|
|
453
483
|
readonly message: Schema.String;
|
|
454
484
|
readonly retryAfterSeconds: Schema.Finite;
|
|
455
|
-
}>, Schema.
|
|
456
|
-
readonly _tag: Schema.Literal<"OnboardingReviewRequiredError">;
|
|
485
|
+
}>, Schema.TaggedStruct<"OnboardingReviewRequiredError", {
|
|
457
486
|
readonly message: Schema.String;
|
|
458
487
|
readonly code: Schema.Union<readonly [Schema.Literal<"review_required">, Schema.Literal<"review_in_progress">, Schema.Literal<"information_required">, Schema.Literal<"review_rejected">, Schema.Literal<"identity_review_required">, Schema.Literal<"identity_review_rejected">, Schema.Literal<"identity_changed">]>;
|
|
459
488
|
readonly decision: Schema.Union<readonly [Schema.Literal<"undecided">, Schema.Literal<"approved">, Schema.Literal<"rejected">]>;
|
|
460
489
|
readonly stage: Schema.Union<readonly [Schema.Literal<"collecting">, Schema.Literal<"automated_review">, Schema.Literal<"manual_review">, Schema.Literal<"information_requested">, Schema.Literal<"complete">]>;
|
|
461
490
|
readonly nextAction: Schema.Union<readonly [Schema.Literal<"wait_for_review">, Schema.Literal<"provide_information">, Schema.Literal<"verify_sending_identity">, Schema.Literal<"reapply">, Schema.Literal<"contact_support">]>;
|
|
462
491
|
readonly identityId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
463
|
-
}>, Schema.
|
|
464
|
-
readonly _tag: Schema.Literal<"PaymentRequiredError">;
|
|
492
|
+
}>, Schema.TaggedStruct<"PaymentRequiredError", {
|
|
465
493
|
readonly message: Schema.String;
|
|
466
494
|
readonly resource: Schema.String;
|
|
467
495
|
readonly currentUsage: Schema.Finite;
|
|
468
496
|
readonly limit: Schema.Finite;
|
|
469
|
-
}>, Schema.
|
|
470
|
-
readonly _tag: Schema.Literal<"ValidationError">;
|
|
497
|
+
}>, Schema.TaggedStruct<"ValidationError", {
|
|
471
498
|
readonly message: Schema.String;
|
|
472
499
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
473
|
-
}>, Schema.
|
|
474
|
-
readonly _tag: Schema.Literal<"ForbiddenError">;
|
|
500
|
+
}>, Schema.TaggedStruct<"ForbiddenError", {
|
|
475
501
|
readonly message: Schema.String;
|
|
476
|
-
}>, Schema.
|
|
477
|
-
readonly _tag: Schema.Literal<"ResourceNotFoundError">;
|
|
502
|
+
}>, Schema.TaggedStruct<"ResourceNotFoundError", {
|
|
478
503
|
readonly resource: Schema.String;
|
|
479
504
|
readonly id: Schema.String;
|
|
480
505
|
readonly message: Schema.String;
|
|
481
506
|
}>]>;
|
|
482
|
-
declare const OnboardingReviewRequiredError_base: Schema.Class<OnboardingReviewRequiredError, Schema.Struct<{
|
|
483
|
-
readonly _tag: Schema.tag<"OnboardingReviewRequiredError">;
|
|
484
|
-
readonly message: Schema.String;
|
|
485
|
-
readonly code: Schema.Union<readonly [Schema.Literal<"review_required">, Schema.Literal<"review_in_progress">, Schema.Literal<"information_required">, Schema.Literal<"review_rejected">, Schema.Literal<"identity_review_required">, Schema.Literal<"identity_review_rejected">, Schema.Literal<"identity_changed">]>;
|
|
486
|
-
readonly decision: Schema.Union<readonly [Schema.Literal<"undecided">, Schema.Literal<"approved">, Schema.Literal<"rejected">]>;
|
|
487
|
-
readonly stage: Schema.Union<readonly [Schema.Literal<"collecting">, Schema.Literal<"automated_review">, Schema.Literal<"manual_review">, Schema.Literal<"information_requested">, Schema.Literal<"complete">]>;
|
|
488
|
-
readonly nextAction: Schema.Union<readonly [Schema.Literal<"wait_for_review">, Schema.Literal<"provide_information">, Schema.Literal<"verify_sending_identity">, Schema.Literal<"reapply">, Schema.Literal<"contact_support">]>;
|
|
489
|
-
readonly identityId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
490
|
-
}>, import("effect/Cause").YieldableError>;
|
|
491
|
-
export declare class OnboardingReviewRequiredError extends OnboardingReviewRequiredError_base {
|
|
492
|
-
}
|
|
493
507
|
export type MailboxThreadFolder = "inbox" | "assigned" | "pending" | "sent" | "archived" | "trash";
|
|
494
508
|
export declare const MailboxThreadFolder: Schema.Union<readonly [Schema.Literal<"inbox">, Schema.Literal<"assigned">, Schema.Literal<"pending">, Schema.Literal<"sent">, Schema.Literal<"archived">, Schema.Literal<"trash">]>;
|
|
495
509
|
export type MailboxGrantRole = "admin" | "collaborator" | "viewer";
|
|
@@ -512,13 +526,6 @@ export declare const EmailSender: Schema.Union<readonly [Schema.Struct<{
|
|
|
512
526
|
readonly email: Schema.String;
|
|
513
527
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
514
528
|
}>, Schema.Null]>;
|
|
515
|
-
declare const DeliveryUnavailableError_base: Schema.Class<DeliveryUnavailableError, Schema.Struct<{
|
|
516
|
-
readonly _tag: Schema.tag<"DeliveryUnavailableError">;
|
|
517
|
-
readonly message: Schema.String;
|
|
518
|
-
readonly retryAfterSeconds: Schema.Finite;
|
|
519
|
-
}>, import("effect/Cause").YieldableError>;
|
|
520
|
-
export declare class DeliveryUnavailableError extends DeliveryUnavailableError_base {
|
|
521
|
-
}
|
|
522
529
|
export type IanaTimezone = string;
|
|
523
530
|
export declare const IanaTimezone: Schema.String;
|
|
524
531
|
export type NamespaceMetadata = {
|
|
@@ -551,6 +558,48 @@ export declare const TemplateTrackingDefault: Schema.Struct<{
|
|
|
551
558
|
readonly opens: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
552
559
|
readonly clicks: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
553
560
|
}>;
|
|
561
|
+
declare const TemplateSourceError_base: Schema.Class<TemplateSourceError, Schema.Struct<{
|
|
562
|
+
readonly _tag: Schema.tag<"TemplateSourceError">;
|
|
563
|
+
readonly message: Schema.String;
|
|
564
|
+
readonly diagnostics: Schema.$Array<Schema.Struct<{
|
|
565
|
+
readonly code: Schema.String;
|
|
566
|
+
readonly severity: Schema.Union<readonly [Schema.Literal<"error">, Schema.Literal<"warning">, Schema.Literal<"info">]>;
|
|
567
|
+
readonly message: Schema.String;
|
|
568
|
+
readonly origins: Schema.$Array<Schema.Struct<{
|
|
569
|
+
readonly fileName: Schema.String;
|
|
570
|
+
readonly lineNumber: Schema.Finite;
|
|
571
|
+
readonly columnNumber: Schema.Finite;
|
|
572
|
+
}>>;
|
|
573
|
+
readonly clients: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
574
|
+
readonly notes: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
575
|
+
readonly provenance: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
576
|
+
readonly fixtures: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
577
|
+
readonly occurrences: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.$Array<Schema.Struct<{
|
|
578
|
+
readonly fileName: Schema.String;
|
|
579
|
+
readonly lineNumber: Schema.Finite;
|
|
580
|
+
readonly columnNumber: Schema.Finite;
|
|
581
|
+
}>>>, Schema.Null]>>;
|
|
582
|
+
readonly compatibility: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
583
|
+
readonly assessment: Schema.Union<readonly [Schema.Literal<"risk">, Schema.Literal<"degradation">, Schema.Literal<"unverified">, Schema.Literal<"not-applicable">]>;
|
|
584
|
+
readonly title: Schema.String;
|
|
585
|
+
}>, Schema.Null]>>;
|
|
586
|
+
}>>;
|
|
587
|
+
readonly revision: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
588
|
+
}>, import("effect/Cause").YieldableError>;
|
|
589
|
+
export declare class TemplateSourceError extends TemplateSourceError_base {
|
|
590
|
+
}
|
|
591
|
+
export type TopicContactByEmail = {
|
|
592
|
+
readonly email: string;
|
|
593
|
+
};
|
|
594
|
+
export declare const TopicContactByEmail: Schema.Struct<{
|
|
595
|
+
readonly email: Schema.String;
|
|
596
|
+
}>;
|
|
597
|
+
export type TopicContactByPhone = {
|
|
598
|
+
readonly phone: string;
|
|
599
|
+
};
|
|
600
|
+
export declare const TopicContactByPhone: Schema.Struct<{
|
|
601
|
+
readonly phone: Schema.String;
|
|
602
|
+
}>;
|
|
554
603
|
export type AddTemplateEntryPayload = {
|
|
555
604
|
readonly entryPath: string;
|
|
556
605
|
readonly name: string;
|
|
@@ -703,6 +752,38 @@ export type TestWebhookPayload = {
|
|
|
703
752
|
export declare const TestWebhookPayload: Schema.Struct<{
|
|
704
753
|
readonly data: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
705
754
|
}>;
|
|
755
|
+
export type TopicFormCreatePayload = {
|
|
756
|
+
readonly allowedOrigins: ReadonlyArray<string>;
|
|
757
|
+
readonly confirmationTitle: string;
|
|
758
|
+
readonly confirmationMessage: string;
|
|
759
|
+
readonly successTitle: string;
|
|
760
|
+
readonly successMessage: string;
|
|
761
|
+
readonly redirectUrl: string | null;
|
|
762
|
+
};
|
|
763
|
+
export declare const TopicFormCreatePayload: Schema.Struct<{
|
|
764
|
+
readonly allowedOrigins: Schema.$Array<Schema.String>;
|
|
765
|
+
readonly confirmationTitle: Schema.String;
|
|
766
|
+
readonly confirmationMessage: Schema.String;
|
|
767
|
+
readonly successTitle: Schema.String;
|
|
768
|
+
readonly successMessage: Schema.String;
|
|
769
|
+
readonly redirectUrl: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
770
|
+
}>;
|
|
771
|
+
export type TopicFormUpdatePayload = {
|
|
772
|
+
readonly allowedOrigins?: ReadonlyArray<string> | null;
|
|
773
|
+
readonly confirmationTitle?: string | null;
|
|
774
|
+
readonly confirmationMessage?: string | null;
|
|
775
|
+
readonly successTitle?: string | null;
|
|
776
|
+
readonly successMessage?: string | null;
|
|
777
|
+
readonly redirectUrl?: string | null | null;
|
|
778
|
+
};
|
|
779
|
+
export declare const TopicFormUpdatePayload: Schema.Struct<{
|
|
780
|
+
readonly allowedOrigins: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
781
|
+
readonly confirmationTitle: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
782
|
+
readonly confirmationMessage: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
783
|
+
readonly successTitle: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
784
|
+
readonly successMessage: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
785
|
+
readonly redirectUrl: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Null]>, Schema.Null]>>;
|
|
786
|
+
}>;
|
|
706
787
|
export type UpdateDomainWarmingPolicyPayload = {
|
|
707
788
|
readonly dailyGrowthPercent: number;
|
|
708
789
|
readonly targetDailyRecipients: number;
|
|
@@ -803,6 +884,8 @@ export declare const WorkingHoursRange: Schema.Struct<{
|
|
|
803
884
|
readonly opens: Schema.String;
|
|
804
885
|
readonly closes: Schema.String;
|
|
805
886
|
}>;
|
|
887
|
+
export type CampaignReplyMailbox = MailboxId | null | null;
|
|
888
|
+
export declare const CampaignReplyMailbox: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>, Schema.Null]>;
|
|
806
889
|
export type CreateWebhookPayload = {
|
|
807
890
|
readonly name: string;
|
|
808
891
|
readonly url: string;
|
|
@@ -878,35 +961,15 @@ export declare const ApiKeyMailboxAccess: Schema.Struct<{
|
|
|
878
961
|
readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "MailboxId">]>, readonly [Schema.brand<Schema.String, "MailboxId">]>, Schema.Null]>>;
|
|
879
962
|
readonly sendMode: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"approval">]>, Schema.Null]>>;
|
|
880
963
|
}>;
|
|
881
|
-
export type MessageSummary = {
|
|
882
|
-
readonly id: MessageId;
|
|
883
|
-
readonly channel: "email";
|
|
884
|
-
readonly direction: "outbound" | "inbound";
|
|
885
|
-
readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
|
|
886
|
-
readonly from: string | null;
|
|
887
|
-
readonly to: ReadonlyArray<string>;
|
|
888
|
-
readonly subject: string | null;
|
|
889
|
-
readonly waitReason: "rate" | "daily-quota" | "domain-health" | "sending-paused" | "upstream-unavailable" | "retry" | "campaign-paused" | "domain-warming" | "onboarding-review" | "content-review" | "screening-unavailable" | null;
|
|
890
|
-
readonly createdAt: string;
|
|
891
|
-
};
|
|
892
|
-
export declare const MessageSummary: Schema.Struct<{
|
|
893
|
-
readonly id: Schema.brand<Schema.String, "MessageId">;
|
|
894
|
-
readonly channel: Schema.Literal<"email">;
|
|
895
|
-
readonly direction: Schema.Union<readonly [Schema.Literal<"outbound">, Schema.Literal<"inbound">]>;
|
|
896
|
-
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"scheduled">, Schema.Literal<"queued">, Schema.Literal<"processing">, Schema.Literal<"sent">, Schema.Literal<"delivered">, Schema.Literal<"read">, Schema.Literal<"failed">, Schema.Literal<"bounced">, Schema.Literal<"complained">]>;
|
|
897
|
-
readonly from: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
898
|
-
readonly to: Schema.$Array<Schema.String>;
|
|
899
|
-
readonly subject: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
900
|
-
readonly waitReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"rate">, Schema.Literal<"daily-quota">, Schema.Literal<"domain-health">, Schema.Literal<"sending-paused">, Schema.Literal<"upstream-unavailable">, Schema.Literal<"retry">, Schema.Literal<"campaign-paused">, Schema.Literal<"domain-warming">, Schema.Literal<"onboarding-review">, Schema.Literal<"content-review">, Schema.Literal<"screening-unavailable">]>, Schema.Null]>;
|
|
901
|
-
readonly createdAt: Schema.String;
|
|
902
|
-
}>;
|
|
903
964
|
export type BrandFooter = {
|
|
904
965
|
readonly companyName?: string | null;
|
|
966
|
+
readonly websiteUrl?: string | null;
|
|
905
967
|
readonly address?: BrandAddress | null;
|
|
906
968
|
readonly socialLinks?: ReadonlyArray<BrandSocialLink> | null;
|
|
907
969
|
};
|
|
908
970
|
export declare const BrandFooter: Schema.Struct<{
|
|
909
971
|
readonly companyName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
972
|
+
readonly websiteUrl: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
910
973
|
readonly address: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
911
974
|
readonly street1: Schema.String;
|
|
912
975
|
readonly street2: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -990,14 +1053,38 @@ export declare const RenderTemplatePublicationPayload: Schema.Struct<{
|
|
|
990
1053
|
}>;
|
|
991
1054
|
export type SkippedRecipient = {
|
|
992
1055
|
readonly address: string;
|
|
993
|
-
readonly reason: "bounce" | "complaint" | "unsubscribe" | "manual" | "
|
|
994
|
-
readonly
|
|
1056
|
+
readonly reason: "bounce" | "complaint" | "unsubscribe" | "manual" | "topic-unsubscribe";
|
|
1057
|
+
readonly topicId?: TopicId | null;
|
|
995
1058
|
};
|
|
996
1059
|
export declare const SkippedRecipient: Schema.Struct<{
|
|
997
1060
|
readonly address: Schema.String;
|
|
998
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"
|
|
999
|
-
readonly
|
|
1061
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
|
|
1062
|
+
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
|
|
1000
1063
|
}>;
|
|
1064
|
+
export type SubscribePayload = {
|
|
1065
|
+
readonly email: string;
|
|
1066
|
+
readonly topicId: TopicId;
|
|
1067
|
+
readonly from: {
|
|
1068
|
+
readonly email: string;
|
|
1069
|
+
readonly name?: string | null;
|
|
1070
|
+
};
|
|
1071
|
+
readonly templateSlug?: string | null;
|
|
1072
|
+
readonly consentIp?: string | null;
|
|
1073
|
+
readonly consentSource?: string | null;
|
|
1074
|
+
};
|
|
1075
|
+
export declare const SubscribePayload: Schema.Struct<{
|
|
1076
|
+
readonly email: Schema.String;
|
|
1077
|
+
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
1078
|
+
readonly from: Schema.Struct<{
|
|
1079
|
+
readonly email: Schema.String;
|
|
1080
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1081
|
+
}>;
|
|
1082
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1083
|
+
readonly consentIp: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1084
|
+
readonly consentSource: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1085
|
+
}>;
|
|
1086
|
+
export type CampaignConversationRef = ConversationId | null | null;
|
|
1087
|
+
export declare const CampaignConversationRef: Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>, Schema.Null]>;
|
|
1001
1088
|
export type ContactEvent = {
|
|
1002
1089
|
readonly id: string;
|
|
1003
1090
|
readonly contactId: ContactId;
|
|
@@ -1056,12 +1143,32 @@ export declare const EmailRecipient: Schema.Union<readonly [Schema.Struct<{
|
|
|
1056
1143
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1057
1144
|
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Null]>, Schema.Null]>>;
|
|
1058
1145
|
}>]>;
|
|
1146
|
+
export type TopicContactById = {
|
|
1147
|
+
readonly contactId: ContactId;
|
|
1148
|
+
};
|
|
1149
|
+
export declare const TopicContactById: Schema.Struct<{
|
|
1150
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
1151
|
+
}>;
|
|
1059
1152
|
export type ConversationContacts = {
|
|
1060
1153
|
readonly contactIds: readonly [ContactId, ...Array<ContactId>];
|
|
1061
1154
|
};
|
|
1062
1155
|
export declare const ConversationContacts: Schema.Struct<{
|
|
1063
1156
|
readonly contactIds: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "ContactId">]>, readonly [Schema.brand<Schema.String, "ContactId">]>;
|
|
1064
1157
|
}>;
|
|
1158
|
+
export type CampaignAudience = {
|
|
1159
|
+
readonly topicId: TopicId;
|
|
1160
|
+
readonly includeTags?: ReadonlyArray<string> | null;
|
|
1161
|
+
readonly excludeTags?: ReadonlyArray<string> | null;
|
|
1162
|
+
readonly contactIds?: ReadonlyArray<ContactId> | null;
|
|
1163
|
+
readonly groupIds?: ReadonlyArray<ContactGroupId> | null;
|
|
1164
|
+
};
|
|
1165
|
+
export declare const CampaignAudience: Schema.Struct<{
|
|
1166
|
+
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
1167
|
+
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
1168
|
+
readonly excludeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
1169
|
+
readonly contactIds: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "ContactId">>, Schema.Null]>>;
|
|
1170
|
+
readonly groupIds: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "ContactGroupId">>, Schema.Null]>>;
|
|
1171
|
+
}>;
|
|
1065
1172
|
export type JourneyGroupJoinedTrigger = {
|
|
1066
1173
|
readonly type: "contact.joined_group";
|
|
1067
1174
|
readonly groupId: ContactGroupId;
|
|
@@ -1070,29 +1177,35 @@ export declare const JourneyGroupJoinedTrigger: Schema.Struct<{
|
|
|
1070
1177
|
readonly type: Schema.Literal<"contact.joined_group">;
|
|
1071
1178
|
readonly groupId: Schema.brand<Schema.String, "ContactGroupId">;
|
|
1072
1179
|
}>;
|
|
1073
|
-
export type
|
|
1074
|
-
readonly
|
|
1075
|
-
readonly
|
|
1076
|
-
|
|
1077
|
-
readonly
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
readonly
|
|
1081
|
-
readonly
|
|
1082
|
-
readonly
|
|
1083
|
-
readonly
|
|
1180
|
+
export type MessageSummary = {
|
|
1181
|
+
readonly id: MessageId;
|
|
1182
|
+
readonly campaign?: {
|
|
1183
|
+
readonly campaignId: CampaignId;
|
|
1184
|
+
readonly runId: CampaignRunId;
|
|
1185
|
+
} | null;
|
|
1186
|
+
readonly channel: "email";
|
|
1187
|
+
readonly direction: "outbound" | "inbound";
|
|
1188
|
+
readonly status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
|
|
1189
|
+
readonly from: string | null;
|
|
1190
|
+
readonly to: ReadonlyArray<string>;
|
|
1191
|
+
readonly subject: string | null;
|
|
1192
|
+
readonly waitReason: "rate" | "daily-quota" | "domain-health" | "sending-paused" | "upstream-unavailable" | "retry" | "campaign-paused" | "domain-warming" | "onboarding-review" | "content-review" | "screening-unavailable" | null;
|
|
1193
|
+
readonly createdAt: string;
|
|
1084
1194
|
};
|
|
1085
|
-
export declare const
|
|
1086
|
-
readonly
|
|
1087
|
-
readonly
|
|
1088
|
-
|
|
1089
|
-
readonly
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
readonly
|
|
1093
|
-
readonly
|
|
1094
|
-
readonly
|
|
1095
|
-
readonly
|
|
1195
|
+
export declare const MessageSummary: Schema.Struct<{
|
|
1196
|
+
readonly id: Schema.brand<Schema.String, "MessageId">;
|
|
1197
|
+
readonly campaign: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1198
|
+
readonly campaignId: Schema.brand<Schema.String, "CampaignId">;
|
|
1199
|
+
readonly runId: Schema.brand<Schema.String, "CampaignRunId">;
|
|
1200
|
+
}>, Schema.Null]>>;
|
|
1201
|
+
readonly channel: Schema.Literal<"email">;
|
|
1202
|
+
readonly direction: Schema.Union<readonly [Schema.Literal<"outbound">, Schema.Literal<"inbound">]>;
|
|
1203
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"scheduled">, Schema.Literal<"queued">, Schema.Literal<"processing">, Schema.Literal<"sent">, Schema.Literal<"delivered">, Schema.Literal<"read">, Schema.Literal<"failed">, Schema.Literal<"bounced">, Schema.Literal<"complained">]>;
|
|
1204
|
+
readonly from: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1205
|
+
readonly to: Schema.$Array<Schema.String>;
|
|
1206
|
+
readonly subject: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1207
|
+
readonly waitReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"rate">, Schema.Literal<"daily-quota">, Schema.Literal<"domain-health">, Schema.Literal<"sending-paused">, Schema.Literal<"upstream-unavailable">, Schema.Literal<"retry">, Schema.Literal<"campaign-paused">, Schema.Literal<"domain-warming">, Schema.Literal<"onboarding-review">, Schema.Literal<"content-review">, Schema.Literal<"screening-unavailable">]>, Schema.Null]>;
|
|
1208
|
+
readonly createdAt: Schema.String;
|
|
1096
1209
|
}>;
|
|
1097
1210
|
export type JourneySendEmailConfig = {
|
|
1098
1211
|
readonly template: TemplateId | string;
|
|
@@ -1104,6 +1217,40 @@ export declare const JourneySendEmailConfig: Schema.Struct<{
|
|
|
1104
1217
|
readonly senderId: Schema.optionalKey<Schema.brand<Schema.String, "EmailSenderId">>;
|
|
1105
1218
|
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
|
|
1106
1219
|
}>;
|
|
1220
|
+
export type TopicCreatePayload = {
|
|
1221
|
+
readonly name: string;
|
|
1222
|
+
readonly description?: string | null | null;
|
|
1223
|
+
readonly namespaceId?: NamespaceId | null | null;
|
|
1224
|
+
readonly default?: "opt_out" | "opt_in" | null;
|
|
1225
|
+
readonly defaultSenderId?: EmailSenderId | null | null;
|
|
1226
|
+
readonly replyMailboxId?: MailboxId | null | null;
|
|
1227
|
+
readonly templateId?: TemplateId | null | null;
|
|
1228
|
+
};
|
|
1229
|
+
export declare const TopicCreatePayload: Schema.Struct<{
|
|
1230
|
+
readonly name: Schema.String;
|
|
1231
|
+
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Null]>, Schema.Null]>>;
|
|
1232
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>, Schema.Null]>>;
|
|
1233
|
+
readonly default: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"opt_out">, Schema.Literal<"opt_in">]>, Schema.Null]>>;
|
|
1234
|
+
readonly defaultSenderId: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "EmailSenderId">, Schema.Null]>, Schema.Null]>>;
|
|
1235
|
+
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>, Schema.Null]>>;
|
|
1236
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>, Schema.Null]>>;
|
|
1237
|
+
}>;
|
|
1238
|
+
export type TopicUpdatePayload = {
|
|
1239
|
+
readonly name?: string | null;
|
|
1240
|
+
readonly description?: string | null | null;
|
|
1241
|
+
readonly default?: "opt_out" | "opt_in" | null;
|
|
1242
|
+
readonly defaultSenderId?: EmailSenderId | null | null;
|
|
1243
|
+
readonly replyMailboxId?: MailboxId | null | null;
|
|
1244
|
+
readonly templateId?: TemplateId | null | null;
|
|
1245
|
+
};
|
|
1246
|
+
export declare const TopicUpdatePayload: Schema.Struct<{
|
|
1247
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1248
|
+
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Null]>, Schema.Null]>>;
|
|
1249
|
+
readonly default: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"opt_out">, Schema.Literal<"opt_in">]>, Schema.Null]>>;
|
|
1250
|
+
readonly defaultSenderId: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "EmailSenderId">, Schema.Null]>, Schema.Null]>>;
|
|
1251
|
+
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>, Schema.Null]>>;
|
|
1252
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>, Schema.Null]>>;
|
|
1253
|
+
}>;
|
|
1107
1254
|
export type ExtensionVersionRef = {
|
|
1108
1255
|
readonly id: ExtensionVersionId;
|
|
1109
1256
|
readonly version: string;
|
|
@@ -1228,38 +1375,31 @@ export type MailboxSendOutcome = {
|
|
|
1228
1375
|
export declare const MailboxSendOutcome: Schema.Struct<{
|
|
1229
1376
|
readonly code: Schema.String;
|
|
1230
1377
|
readonly message: Schema.String;
|
|
1231
|
-
readonly error: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.
|
|
1232
|
-
readonly _tag: Schema.Literal<"SenderNotReadyError">;
|
|
1378
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.TaggedStruct<"SenderNotReadyError", {
|
|
1233
1379
|
readonly message: Schema.String;
|
|
1234
1380
|
readonly sender: Schema.String;
|
|
1235
1381
|
readonly retryAfterSeconds: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
1236
|
-
}>, Schema.
|
|
1237
|
-
readonly _tag: Schema.Literal<"RateLimitedError">;
|
|
1382
|
+
}>, Schema.TaggedStruct<"RateLimitedError", {
|
|
1238
1383
|
readonly message: Schema.String;
|
|
1239
1384
|
readonly retryAfterSeconds: Schema.Finite;
|
|
1240
|
-
}>, Schema.
|
|
1241
|
-
readonly _tag: Schema.Literal<"OnboardingReviewRequiredError">;
|
|
1385
|
+
}>, Schema.TaggedStruct<"OnboardingReviewRequiredError", {
|
|
1242
1386
|
readonly message: Schema.String;
|
|
1243
1387
|
readonly code: Schema.Union<readonly [Schema.Literal<"review_required">, Schema.Literal<"review_in_progress">, Schema.Literal<"information_required">, Schema.Literal<"review_rejected">, Schema.Literal<"identity_review_required">, Schema.Literal<"identity_review_rejected">, Schema.Literal<"identity_changed">]>;
|
|
1244
1388
|
readonly decision: Schema.Union<readonly [Schema.Literal<"undecided">, Schema.Literal<"approved">, Schema.Literal<"rejected">]>;
|
|
1245
1389
|
readonly stage: Schema.Union<readonly [Schema.Literal<"collecting">, Schema.Literal<"automated_review">, Schema.Literal<"manual_review">, Schema.Literal<"information_requested">, Schema.Literal<"complete">]>;
|
|
1246
1390
|
readonly nextAction: Schema.Union<readonly [Schema.Literal<"wait_for_review">, Schema.Literal<"provide_information">, Schema.Literal<"verify_sending_identity">, Schema.Literal<"reapply">, Schema.Literal<"contact_support">]>;
|
|
1247
1391
|
readonly identityId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1248
|
-
}>, Schema.
|
|
1249
|
-
readonly _tag: Schema.Literal<"PaymentRequiredError">;
|
|
1392
|
+
}>, Schema.TaggedStruct<"PaymentRequiredError", {
|
|
1250
1393
|
readonly message: Schema.String;
|
|
1251
1394
|
readonly resource: Schema.String;
|
|
1252
1395
|
readonly currentUsage: Schema.Finite;
|
|
1253
1396
|
readonly limit: Schema.Finite;
|
|
1254
|
-
}>, Schema.
|
|
1255
|
-
readonly _tag: Schema.Literal<"ValidationError">;
|
|
1397
|
+
}>, Schema.TaggedStruct<"ValidationError", {
|
|
1256
1398
|
readonly message: Schema.String;
|
|
1257
1399
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1258
|
-
}>, Schema.
|
|
1259
|
-
readonly _tag: Schema.Literal<"ForbiddenError">;
|
|
1400
|
+
}>, Schema.TaggedStruct<"ForbiddenError", {
|
|
1260
1401
|
readonly message: Schema.String;
|
|
1261
|
-
}>, Schema.
|
|
1262
|
-
readonly _tag: Schema.Literal<"ResourceNotFoundError">;
|
|
1402
|
+
}>, Schema.TaggedStruct<"ResourceNotFoundError", {
|
|
1263
1403
|
readonly resource: Schema.String;
|
|
1264
1404
|
readonly id: Schema.String;
|
|
1265
1405
|
readonly message: Schema.String;
|
|
@@ -1477,24 +1617,6 @@ export declare const ApiKeyAccess: Schema.Union<readonly [Schema.Struct<{
|
|
|
1477
1617
|
}>, Schema.Null]>>;
|
|
1478
1618
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1479
1619
|
}>]>;
|
|
1480
|
-
export type MessagePage = {
|
|
1481
|
-
readonly items: ReadonlyArray<MessageSummary>;
|
|
1482
|
-
readonly nextCursor: string | null;
|
|
1483
|
-
};
|
|
1484
|
-
export declare const MessagePage: Schema.Struct<{
|
|
1485
|
-
readonly items: Schema.$Array<Schema.Struct<{
|
|
1486
|
-
readonly id: Schema.brand<Schema.String, "MessageId">;
|
|
1487
|
-
readonly channel: Schema.Literal<"email">;
|
|
1488
|
-
readonly direction: Schema.Union<readonly [Schema.Literal<"outbound">, Schema.Literal<"inbound">]>;
|
|
1489
|
-
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"scheduled">, Schema.Literal<"queued">, Schema.Literal<"processing">, Schema.Literal<"sent">, Schema.Literal<"delivered">, Schema.Literal<"read">, Schema.Literal<"failed">, Schema.Literal<"bounced">, Schema.Literal<"complained">]>;
|
|
1490
|
-
readonly from: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1491
|
-
readonly to: Schema.$Array<Schema.String>;
|
|
1492
|
-
readonly subject: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1493
|
-
readonly waitReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"rate">, Schema.Literal<"daily-quota">, Schema.Literal<"domain-health">, Schema.Literal<"sending-paused">, Schema.Literal<"upstream-unavailable">, Schema.Literal<"retry">, Schema.Literal<"campaign-paused">, Schema.Literal<"domain-warming">, Schema.Literal<"onboarding-review">, Schema.Literal<"content-review">, Schema.Literal<"screening-unavailable">]>, Schema.Null]>;
|
|
1494
|
-
readonly createdAt: Schema.String;
|
|
1495
|
-
}>>;
|
|
1496
|
-
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1497
|
-
}>;
|
|
1498
1620
|
export type CreateBrand = {
|
|
1499
1621
|
readonly slug: string;
|
|
1500
1622
|
readonly name: string;
|
|
@@ -1514,6 +1636,7 @@ export declare const CreateBrand: Schema.Struct<{
|
|
|
1514
1636
|
}>, Schema.Null]>>;
|
|
1515
1637
|
readonly footer: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1516
1638
|
readonly companyName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1639
|
+
readonly websiteUrl: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1517
1640
|
readonly address: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1518
1641
|
readonly street1: Schema.String;
|
|
1519
1642
|
readonly street2: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -1547,6 +1670,7 @@ export declare const UpdateBrand: Schema.Struct<{
|
|
|
1547
1670
|
}>, Schema.Null]>>;
|
|
1548
1671
|
readonly footer: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1549
1672
|
readonly companyName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1673
|
+
readonly websiteUrl: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1550
1674
|
readonly address: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1551
1675
|
readonly street1: Schema.String;
|
|
1552
1676
|
readonly street2: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -1764,6 +1888,36 @@ export declare const EmailBccRecipients: Schema.Union<readonly [Schema.Union<rea
|
|
|
1764
1888
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1765
1889
|
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.String, Schema.Null]>, Schema.Null]>>;
|
|
1766
1890
|
}>]>>, Schema.Null]>, Schema.Null]>;
|
|
1891
|
+
export type TopicContactRef = TopicContactById | TopicContactByEmail | TopicContactByPhone;
|
|
1892
|
+
export declare const TopicContactRef: Schema.Union<readonly [Schema.Struct<{
|
|
1893
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
1894
|
+
}>, Schema.Struct<{
|
|
1895
|
+
readonly email: Schema.String;
|
|
1896
|
+
}>, Schema.Struct<{
|
|
1897
|
+
readonly phone: Schema.String;
|
|
1898
|
+
}>]>;
|
|
1899
|
+
export type MessagePage = {
|
|
1900
|
+
readonly items: ReadonlyArray<MessageSummary>;
|
|
1901
|
+
readonly nextCursor: string | null;
|
|
1902
|
+
};
|
|
1903
|
+
export declare const MessagePage: Schema.Struct<{
|
|
1904
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
1905
|
+
readonly id: Schema.brand<Schema.String, "MessageId">;
|
|
1906
|
+
readonly campaign: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1907
|
+
readonly campaignId: Schema.brand<Schema.String, "CampaignId">;
|
|
1908
|
+
readonly runId: Schema.brand<Schema.String, "CampaignRunId">;
|
|
1909
|
+
}>, Schema.Null]>>;
|
|
1910
|
+
readonly channel: Schema.Literal<"email">;
|
|
1911
|
+
readonly direction: Schema.Union<readonly [Schema.Literal<"outbound">, Schema.Literal<"inbound">]>;
|
|
1912
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"scheduled">, Schema.Literal<"queued">, Schema.Literal<"processing">, Schema.Literal<"sent">, Schema.Literal<"delivered">, Schema.Literal<"read">, Schema.Literal<"failed">, Schema.Literal<"bounced">, Schema.Literal<"complained">]>;
|
|
1913
|
+
readonly from: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1914
|
+
readonly to: Schema.$Array<Schema.String>;
|
|
1915
|
+
readonly subject: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1916
|
+
readonly waitReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"rate">, Schema.Literal<"daily-quota">, Schema.Literal<"domain-health">, Schema.Literal<"sending-paused">, Schema.Literal<"upstream-unavailable">, Schema.Literal<"retry">, Schema.Literal<"campaign-paused">, Schema.Literal<"domain-warming">, Schema.Literal<"onboarding-review">, Schema.Literal<"content-review">, Schema.Literal<"screening-unavailable">]>, Schema.Null]>;
|
|
1917
|
+
readonly createdAt: Schema.String;
|
|
1918
|
+
}>>;
|
|
1919
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1920
|
+
}>;
|
|
1767
1921
|
export type JourneyTrigger = JourneyCustomEventTrigger | JourneyContactCreatedTrigger | JourneyTagAddedTrigger | JourneyGroupJoinedTrigger;
|
|
1768
1922
|
export declare const JourneyTrigger: Schema.Union<readonly [Schema.Struct<{
|
|
1769
1923
|
readonly type: Schema.Literal<"event">;
|
|
@@ -1949,46 +2103,39 @@ export declare const MailboxSendReceipt: Schema.Struct<{
|
|
|
1949
2103
|
readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1950
2104
|
readonly skippedRecipients: Schema.$Array<Schema.Struct<{
|
|
1951
2105
|
readonly address: Schema.String;
|
|
1952
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"
|
|
1953
|
-
readonly
|
|
2106
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
|
|
2107
|
+
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
|
|
1954
2108
|
}>>;
|
|
1955
2109
|
readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1956
2110
|
readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1957
2111
|
readonly problem: Schema.Union<readonly [Schema.Struct<{
|
|
1958
2112
|
readonly code: Schema.String;
|
|
1959
2113
|
readonly message: Schema.String;
|
|
1960
|
-
readonly error: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.
|
|
1961
|
-
readonly _tag: Schema.Literal<"SenderNotReadyError">;
|
|
2114
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.TaggedStruct<"SenderNotReadyError", {
|
|
1962
2115
|
readonly message: Schema.String;
|
|
1963
2116
|
readonly sender: Schema.String;
|
|
1964
2117
|
readonly retryAfterSeconds: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
1965
|
-
}>, Schema.
|
|
1966
|
-
readonly _tag: Schema.Literal<"RateLimitedError">;
|
|
2118
|
+
}>, Schema.TaggedStruct<"RateLimitedError", {
|
|
1967
2119
|
readonly message: Schema.String;
|
|
1968
2120
|
readonly retryAfterSeconds: Schema.Finite;
|
|
1969
|
-
}>, Schema.
|
|
1970
|
-
readonly _tag: Schema.Literal<"OnboardingReviewRequiredError">;
|
|
2121
|
+
}>, Schema.TaggedStruct<"OnboardingReviewRequiredError", {
|
|
1971
2122
|
readonly message: Schema.String;
|
|
1972
2123
|
readonly code: Schema.Union<readonly [Schema.Literal<"review_required">, Schema.Literal<"review_in_progress">, Schema.Literal<"information_required">, Schema.Literal<"review_rejected">, Schema.Literal<"identity_review_required">, Schema.Literal<"identity_review_rejected">, Schema.Literal<"identity_changed">]>;
|
|
1973
2124
|
readonly decision: Schema.Union<readonly [Schema.Literal<"undecided">, Schema.Literal<"approved">, Schema.Literal<"rejected">]>;
|
|
1974
2125
|
readonly stage: Schema.Union<readonly [Schema.Literal<"collecting">, Schema.Literal<"automated_review">, Schema.Literal<"manual_review">, Schema.Literal<"information_requested">, Schema.Literal<"complete">]>;
|
|
1975
2126
|
readonly nextAction: Schema.Union<readonly [Schema.Literal<"wait_for_review">, Schema.Literal<"provide_information">, Schema.Literal<"verify_sending_identity">, Schema.Literal<"reapply">, Schema.Literal<"contact_support">]>;
|
|
1976
2127
|
readonly identityId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1977
|
-
}>, Schema.
|
|
1978
|
-
readonly _tag: Schema.Literal<"PaymentRequiredError">;
|
|
2128
|
+
}>, Schema.TaggedStruct<"PaymentRequiredError", {
|
|
1979
2129
|
readonly message: Schema.String;
|
|
1980
2130
|
readonly resource: Schema.String;
|
|
1981
2131
|
readonly currentUsage: Schema.Finite;
|
|
1982
2132
|
readonly limit: Schema.Finite;
|
|
1983
|
-
}>, Schema.
|
|
1984
|
-
readonly _tag: Schema.Literal<"ValidationError">;
|
|
2133
|
+
}>, Schema.TaggedStruct<"ValidationError", {
|
|
1985
2134
|
readonly message: Schema.String;
|
|
1986
2135
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1987
|
-
}>, Schema.
|
|
1988
|
-
readonly _tag: Schema.Literal<"ForbiddenError">;
|
|
2136
|
+
}>, Schema.TaggedStruct<"ForbiddenError", {
|
|
1989
2137
|
readonly message: Schema.String;
|
|
1990
|
-
}>, Schema.
|
|
1991
|
-
readonly _tag: Schema.Literal<"ResourceNotFoundError">;
|
|
2138
|
+
}>, Schema.TaggedStruct<"ResourceNotFoundError", {
|
|
1992
2139
|
readonly resource: Schema.String;
|
|
1993
2140
|
readonly id: Schema.String;
|
|
1994
2141
|
readonly message: Schema.String;
|
|
@@ -2054,7 +2201,6 @@ export type AgentDefinition = {
|
|
|
2054
2201
|
readonly integrationIds: ReadonlyArray<AgentIntegrationReference>;
|
|
2055
2202
|
readonly mode: AgentMode;
|
|
2056
2203
|
readonly model: AgentModel;
|
|
2057
|
-
readonly approvalPolicy: AgentApprovalPolicy;
|
|
2058
2204
|
readonly workingHours: WorkingHours | null;
|
|
2059
2205
|
readonly takeoverTimeoutMinutes: number;
|
|
2060
2206
|
};
|
|
@@ -2065,7 +2211,6 @@ export declare const AgentDefinition: Schema.Struct<{
|
|
|
2065
2211
|
readonly integrationIds: Schema.$Array<Schema.String>;
|
|
2066
2212
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
2067
2213
|
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
2068
|
-
readonly approvalPolicy: Schema.Union<readonly [Schema.Literal<"toolActions">, Schema.Literal<"none">]>;
|
|
2069
2214
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
2070
2215
|
readonly timeZone: Schema.String;
|
|
2071
2216
|
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
@@ -2076,7 +2221,7 @@ export declare const AgentDefinition: Schema.Struct<{
|
|
|
2076
2221
|
}>, Schema.Null]>;
|
|
2077
2222
|
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
2078
2223
|
}>;
|
|
2079
|
-
export type
|
|
2224
|
+
export type CampaignEmailInput = {
|
|
2080
2225
|
readonly subject?: string | null;
|
|
2081
2226
|
readonly html?: string | null;
|
|
2082
2227
|
readonly text?: string | null;
|
|
@@ -2090,12 +2235,13 @@ export type EmailContent = {
|
|
|
2090
2235
|
readonly timeZone?: RenderTimeZone;
|
|
2091
2236
|
readonly inReplyToMessageId?: MessageId | null;
|
|
2092
2237
|
readonly replyTo?: ReplyToAddresses;
|
|
2093
|
-
readonly
|
|
2238
|
+
readonly topicId?: TopicId | null | null;
|
|
2094
2239
|
readonly tracking?: EmailTrackingOverrideV1;
|
|
2095
2240
|
readonly footer?: EmailFooterOverride;
|
|
2096
2241
|
readonly headers?: EmailCustomHeaders | null;
|
|
2242
|
+
readonly preheader?: string | null;
|
|
2097
2243
|
};
|
|
2098
|
-
export declare const
|
|
2244
|
+
export declare const CampaignEmailInput: Schema.Struct<{
|
|
2099
2245
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2100
2246
|
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2101
2247
|
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -2115,7 +2261,7 @@ export declare const EmailContent: Schema.Struct<{
|
|
|
2115
2261
|
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
2116
2262
|
readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
|
|
2117
2263
|
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>, Schema.Null]>>;
|
|
2118
|
-
readonly
|
|
2264
|
+
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>, Schema.Null]>>;
|
|
2119
2265
|
readonly tracking: Schema.optionalKey<Schema.Struct<{
|
|
2120
2266
|
readonly opens: Schema.optionalKey<Schema.Boolean>;
|
|
2121
2267
|
readonly clicks: Schema.optionalKey<Schema.Boolean>;
|
|
@@ -2124,8 +2270,9 @@ export declare const EmailContent: Schema.Struct<{
|
|
|
2124
2270
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2125
2271
|
}>>;
|
|
2126
2272
|
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
2273
|
+
readonly preheader: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2127
2274
|
}>;
|
|
2128
|
-
export type
|
|
2275
|
+
export type EmailContent = {
|
|
2129
2276
|
readonly subject?: string | null;
|
|
2130
2277
|
readonly html?: string | null;
|
|
2131
2278
|
readonly text?: string | null;
|
|
@@ -2139,12 +2286,12 @@ export type EmailDispatchContent = {
|
|
|
2139
2286
|
readonly timeZone?: RenderTimeZone;
|
|
2140
2287
|
readonly inReplyToMessageId?: MessageId | null;
|
|
2141
2288
|
readonly replyTo?: ReplyToAddresses;
|
|
2142
|
-
readonly
|
|
2289
|
+
readonly topicId?: TopicId | null | null;
|
|
2143
2290
|
readonly tracking?: EmailTrackingOverrideV1;
|
|
2144
2291
|
readonly footer?: EmailFooterOverride;
|
|
2145
2292
|
readonly headers?: EmailCustomHeaders | null;
|
|
2146
2293
|
};
|
|
2147
|
-
export declare const
|
|
2294
|
+
export declare const EmailContent: Schema.Struct<{
|
|
2148
2295
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2149
2296
|
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2150
2297
|
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -2164,7 +2311,7 @@ export declare const EmailDispatchContent: Schema.Struct<{
|
|
|
2164
2311
|
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
2165
2312
|
readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
|
|
2166
2313
|
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>, Schema.Null]>>;
|
|
2167
|
-
readonly
|
|
2314
|
+
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>, Schema.Null]>>;
|
|
2168
2315
|
readonly tracking: Schema.optionalKey<Schema.Struct<{
|
|
2169
2316
|
readonly opens: Schema.optionalKey<Schema.Boolean>;
|
|
2170
2317
|
readonly clicks: Schema.optionalKey<Schema.Boolean>;
|
|
@@ -2239,6 +2386,24 @@ export declare const BatchEventsPayload: Schema.Struct<{
|
|
|
2239
2386
|
readonly idempotencyKey: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2240
2387
|
}>]>;
|
|
2241
2388
|
}>;
|
|
2389
|
+
export type TopicSetSubscriptionsPayload = {
|
|
2390
|
+
readonly contacts: ReadonlyArray<TopicContactRef>;
|
|
2391
|
+
readonly channel: "email";
|
|
2392
|
+
readonly status: "subscribed" | "unsubscribed";
|
|
2393
|
+
readonly source?: string | null;
|
|
2394
|
+
};
|
|
2395
|
+
export declare const TopicSetSubscriptionsPayload: Schema.Struct<{
|
|
2396
|
+
readonly contacts: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2397
|
+
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
2398
|
+
}>, Schema.Struct<{
|
|
2399
|
+
readonly email: Schema.String;
|
|
2400
|
+
}>, Schema.Struct<{
|
|
2401
|
+
readonly phone: Schema.String;
|
|
2402
|
+
}>]>>;
|
|
2403
|
+
readonly channel: Schema.Literal<"email">;
|
|
2404
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"subscribed">, Schema.Literal<"unsubscribed">]>;
|
|
2405
|
+
readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2406
|
+
}>;
|
|
2242
2407
|
export type JourneyWaitForEventNode = {
|
|
2243
2408
|
readonly type: "wait_for_event";
|
|
2244
2409
|
readonly config: JourneyWaitForEventConfig;
|
|
@@ -2312,46 +2477,39 @@ declare const MailboxSendRefusedError_base: Schema.Class<MailboxSendRefusedError
|
|
|
2312
2477
|
readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2313
2478
|
readonly skippedRecipients: Schema.$Array<Schema.Struct<{
|
|
2314
2479
|
readonly address: Schema.String;
|
|
2315
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"
|
|
2316
|
-
readonly
|
|
2480
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
|
|
2481
|
+
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
|
|
2317
2482
|
}>>;
|
|
2318
2483
|
readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2319
2484
|
readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2320
2485
|
readonly problem: Schema.Union<readonly [Schema.Struct<{
|
|
2321
2486
|
readonly code: Schema.String;
|
|
2322
2487
|
readonly message: Schema.String;
|
|
2323
|
-
readonly error: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.
|
|
2324
|
-
readonly _tag: Schema.Literal<"SenderNotReadyError">;
|
|
2488
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.TaggedStruct<"SenderNotReadyError", {
|
|
2325
2489
|
readonly message: Schema.String;
|
|
2326
2490
|
readonly sender: Schema.String;
|
|
2327
2491
|
readonly retryAfterSeconds: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
2328
|
-
}>, Schema.
|
|
2329
|
-
readonly _tag: Schema.Literal<"RateLimitedError">;
|
|
2492
|
+
}>, Schema.TaggedStruct<"RateLimitedError", {
|
|
2330
2493
|
readonly message: Schema.String;
|
|
2331
2494
|
readonly retryAfterSeconds: Schema.Finite;
|
|
2332
|
-
}>, Schema.
|
|
2333
|
-
readonly _tag: Schema.Literal<"OnboardingReviewRequiredError">;
|
|
2495
|
+
}>, Schema.TaggedStruct<"OnboardingReviewRequiredError", {
|
|
2334
2496
|
readonly message: Schema.String;
|
|
2335
2497
|
readonly code: Schema.Union<readonly [Schema.Literal<"review_required">, Schema.Literal<"review_in_progress">, Schema.Literal<"information_required">, Schema.Literal<"review_rejected">, Schema.Literal<"identity_review_required">, Schema.Literal<"identity_review_rejected">, Schema.Literal<"identity_changed">]>;
|
|
2336
2498
|
readonly decision: Schema.Union<readonly [Schema.Literal<"undecided">, Schema.Literal<"approved">, Schema.Literal<"rejected">]>;
|
|
2337
2499
|
readonly stage: Schema.Union<readonly [Schema.Literal<"collecting">, Schema.Literal<"automated_review">, Schema.Literal<"manual_review">, Schema.Literal<"information_requested">, Schema.Literal<"complete">]>;
|
|
2338
2500
|
readonly nextAction: Schema.Union<readonly [Schema.Literal<"wait_for_review">, Schema.Literal<"provide_information">, Schema.Literal<"verify_sending_identity">, Schema.Literal<"reapply">, Schema.Literal<"contact_support">]>;
|
|
2339
2501
|
readonly identityId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2340
|
-
}>, Schema.
|
|
2341
|
-
readonly _tag: Schema.Literal<"PaymentRequiredError">;
|
|
2502
|
+
}>, Schema.TaggedStruct<"PaymentRequiredError", {
|
|
2342
2503
|
readonly message: Schema.String;
|
|
2343
2504
|
readonly resource: Schema.String;
|
|
2344
2505
|
readonly currentUsage: Schema.Finite;
|
|
2345
2506
|
readonly limit: Schema.Finite;
|
|
2346
|
-
}>, Schema.
|
|
2347
|
-
readonly _tag: Schema.Literal<"ValidationError">;
|
|
2507
|
+
}>, Schema.TaggedStruct<"ValidationError", {
|
|
2348
2508
|
readonly message: Schema.String;
|
|
2349
2509
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
2350
|
-
}>, Schema.
|
|
2351
|
-
readonly _tag: Schema.Literal<"ForbiddenError">;
|
|
2510
|
+
}>, Schema.TaggedStruct<"ForbiddenError", {
|
|
2352
2511
|
readonly message: Schema.String;
|
|
2353
|
-
}>, Schema.
|
|
2354
|
-
readonly _tag: Schema.Literal<"ResourceNotFoundError">;
|
|
2512
|
+
}>, Schema.TaggedStruct<"ResourceNotFoundError", {
|
|
2355
2513
|
readonly resource: Schema.String;
|
|
2356
2514
|
readonly id: Schema.String;
|
|
2357
2515
|
readonly message: Schema.String;
|
|
@@ -2387,46 +2545,39 @@ declare const MailboxSendConflictError_base: Schema.Class<MailboxSendConflictErr
|
|
|
2387
2545
|
readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2388
2546
|
readonly skippedRecipients: Schema.$Array<Schema.Struct<{
|
|
2389
2547
|
readonly address: Schema.String;
|
|
2390
|
-
readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"
|
|
2391
|
-
readonly
|
|
2548
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
|
|
2549
|
+
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
|
|
2392
2550
|
}>>;
|
|
2393
2551
|
readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2394
2552
|
readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2395
2553
|
readonly problem: Schema.Union<readonly [Schema.Struct<{
|
|
2396
2554
|
readonly code: Schema.String;
|
|
2397
2555
|
readonly message: Schema.String;
|
|
2398
|
-
readonly error: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.
|
|
2399
|
-
readonly _tag: Schema.Literal<"SenderNotReadyError">;
|
|
2556
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.TaggedStruct<"SenderNotReadyError", {
|
|
2400
2557
|
readonly message: Schema.String;
|
|
2401
2558
|
readonly sender: Schema.String;
|
|
2402
2559
|
readonly retryAfterSeconds: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
2403
|
-
}>, Schema.
|
|
2404
|
-
readonly _tag: Schema.Literal<"RateLimitedError">;
|
|
2560
|
+
}>, Schema.TaggedStruct<"RateLimitedError", {
|
|
2405
2561
|
readonly message: Schema.String;
|
|
2406
2562
|
readonly retryAfterSeconds: Schema.Finite;
|
|
2407
|
-
}>, Schema.
|
|
2408
|
-
readonly _tag: Schema.Literal<"OnboardingReviewRequiredError">;
|
|
2563
|
+
}>, Schema.TaggedStruct<"OnboardingReviewRequiredError", {
|
|
2409
2564
|
readonly message: Schema.String;
|
|
2410
2565
|
readonly code: Schema.Union<readonly [Schema.Literal<"review_required">, Schema.Literal<"review_in_progress">, Schema.Literal<"information_required">, Schema.Literal<"review_rejected">, Schema.Literal<"identity_review_required">, Schema.Literal<"identity_review_rejected">, Schema.Literal<"identity_changed">]>;
|
|
2411
2566
|
readonly decision: Schema.Union<readonly [Schema.Literal<"undecided">, Schema.Literal<"approved">, Schema.Literal<"rejected">]>;
|
|
2412
2567
|
readonly stage: Schema.Union<readonly [Schema.Literal<"collecting">, Schema.Literal<"automated_review">, Schema.Literal<"manual_review">, Schema.Literal<"information_requested">, Schema.Literal<"complete">]>;
|
|
2413
2568
|
readonly nextAction: Schema.Union<readonly [Schema.Literal<"wait_for_review">, Schema.Literal<"provide_information">, Schema.Literal<"verify_sending_identity">, Schema.Literal<"reapply">, Schema.Literal<"contact_support">]>;
|
|
2414
2569
|
readonly identityId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2415
|
-
}>, Schema.
|
|
2416
|
-
readonly _tag: Schema.Literal<"PaymentRequiredError">;
|
|
2570
|
+
}>, Schema.TaggedStruct<"PaymentRequiredError", {
|
|
2417
2571
|
readonly message: Schema.String;
|
|
2418
2572
|
readonly resource: Schema.String;
|
|
2419
2573
|
readonly currentUsage: Schema.Finite;
|
|
2420
2574
|
readonly limit: Schema.Finite;
|
|
2421
|
-
}>, Schema.
|
|
2422
|
-
readonly _tag: Schema.Literal<"ValidationError">;
|
|
2575
|
+
}>, Schema.TaggedStruct<"ValidationError", {
|
|
2423
2576
|
readonly message: Schema.String;
|
|
2424
2577
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
2425
|
-
}>, Schema.
|
|
2426
|
-
readonly _tag: Schema.Literal<"ForbiddenError">;
|
|
2578
|
+
}>, Schema.TaggedStruct<"ForbiddenError", {
|
|
2427
2579
|
readonly message: Schema.String;
|
|
2428
|
-
}>, Schema.
|
|
2429
|
-
readonly _tag: Schema.Literal<"ResourceNotFoundError">;
|
|
2580
|
+
}>, Schema.TaggedStruct<"ResourceNotFoundError", {
|
|
2430
2581
|
readonly resource: Schema.String;
|
|
2431
2582
|
readonly id: Schema.String;
|
|
2432
2583
|
readonly message: Schema.String;
|
|
@@ -2461,7 +2612,6 @@ export declare const CreateAgentPayload: Schema.Struct<{
|
|
|
2461
2612
|
readonly integrationIds: Schema.$Array<Schema.String>;
|
|
2462
2613
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
2463
2614
|
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
2464
|
-
readonly approvalPolicy: Schema.Union<readonly [Schema.Literal<"toolActions">, Schema.Literal<"none">]>;
|
|
2465
2615
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
2466
2616
|
readonly timeZone: Schema.String;
|
|
2467
2617
|
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
@@ -2486,7 +2636,6 @@ export declare const ReplaceAgentDraftPayload: Schema.Struct<{
|
|
|
2486
2636
|
readonly integrationIds: Schema.$Array<Schema.String>;
|
|
2487
2637
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
2488
2638
|
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
2489
|
-
readonly approvalPolicy: Schema.Union<readonly [Schema.Literal<"toolActions">, Schema.Literal<"none">]>;
|
|
2490
2639
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
2491
2640
|
readonly timeZone: Schema.String;
|
|
2492
2641
|
readonly ranges: Schema.$Array<Schema.Struct<{
|
|
@@ -2498,6 +2647,55 @@ export declare const ReplaceAgentDraftPayload: Schema.Struct<{
|
|
|
2498
2647
|
readonly takeoverTimeoutMinutes: Schema.Finite;
|
|
2499
2648
|
}>;
|
|
2500
2649
|
}>;
|
|
2650
|
+
export type CampaignContentInput = {
|
|
2651
|
+
readonly channel: "email";
|
|
2652
|
+
readonly email: CampaignEmailInput;
|
|
2653
|
+
readonly from?: CampaignFrom;
|
|
2654
|
+
readonly replyMailboxId?: CampaignReplyMailbox;
|
|
2655
|
+
readonly conversationId?: CampaignConversationRef;
|
|
2656
|
+
readonly metadata?: CampaignContentMetadata;
|
|
2657
|
+
};
|
|
2658
|
+
export declare const CampaignContentInput: Schema.Struct<{
|
|
2659
|
+
readonly channel: Schema.Literal<"email">;
|
|
2660
|
+
readonly email: Schema.Struct<{
|
|
2661
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2662
|
+
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2663
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2664
|
+
readonly attachments: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
2665
|
+
readonly filename: Schema.String;
|
|
2666
|
+
readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2667
|
+
readonly mediaId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MediaId">, Schema.Null]>>;
|
|
2668
|
+
readonly contentType: Schema.String;
|
|
2669
|
+
readonly size: Schema.Finite;
|
|
2670
|
+
}>>, Schema.Null]>>;
|
|
2671
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
2672
|
+
readonly inputContractId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateInputContractId">>;
|
|
2673
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
2674
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2675
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
2676
|
+
readonly locale: Schema.optionalKey<Schema.String>;
|
|
2677
|
+
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
2678
|
+
readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
|
|
2679
|
+
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>, Schema.Null]>>;
|
|
2680
|
+
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>, Schema.Null]>>;
|
|
2681
|
+
readonly tracking: Schema.optionalKey<Schema.Struct<{
|
|
2682
|
+
readonly opens: Schema.optionalKey<Schema.Boolean>;
|
|
2683
|
+
readonly clicks: Schema.optionalKey<Schema.Boolean>;
|
|
2684
|
+
}>>;
|
|
2685
|
+
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
2686
|
+
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2687
|
+
}>>;
|
|
2688
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
2689
|
+
readonly preheader: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2690
|
+
}>;
|
|
2691
|
+
readonly from: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2692
|
+
readonly email: Schema.String;
|
|
2693
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2694
|
+
}>, Schema.Null]>>;
|
|
2695
|
+
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>, Schema.Null]>>;
|
|
2696
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>, Schema.Null]>>;
|
|
2697
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
2698
|
+
}>;
|
|
2501
2699
|
export type EmailSendMessagePayload = {
|
|
2502
2700
|
readonly conversationId?: ConversationId | null | null;
|
|
2503
2701
|
readonly metadata?: MessageMetadata;
|
|
@@ -2557,7 +2755,7 @@ export declare const EmailSendMessagePayload: Schema.Struct<{
|
|
|
2557
2755
|
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
2558
2756
|
readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
|
|
2559
2757
|
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>, Schema.Null]>>;
|
|
2560
|
-
readonly
|
|
2758
|
+
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>, Schema.Null]>>;
|
|
2561
2759
|
readonly tracking: Schema.optionalKey<Schema.Struct<{
|
|
2562
2760
|
readonly opens: Schema.optionalKey<Schema.Boolean>;
|
|
2563
2761
|
readonly clicks: Schema.optionalKey<Schema.Boolean>;
|
|
@@ -2652,6 +2850,62 @@ export declare const JourneyCondition: Schema.Struct<{
|
|
|
2652
2850
|
readonly occurred: Schema.Boolean;
|
|
2653
2851
|
}>]>]>;
|
|
2654
2852
|
}>;
|
|
2853
|
+
export type CampaignComposition = {
|
|
2854
|
+
readonly content: CampaignContentInput;
|
|
2855
|
+
readonly audience: CampaignAudience;
|
|
2856
|
+
readonly contactId?: ContactId | null;
|
|
2857
|
+
};
|
|
2858
|
+
export declare const CampaignComposition: Schema.Struct<{
|
|
2859
|
+
readonly content: Schema.Struct<{
|
|
2860
|
+
readonly channel: Schema.Literal<"email">;
|
|
2861
|
+
readonly email: Schema.Struct<{
|
|
2862
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2863
|
+
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2864
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2865
|
+
readonly attachments: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
2866
|
+
readonly filename: Schema.String;
|
|
2867
|
+
readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2868
|
+
readonly mediaId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MediaId">, Schema.Null]>>;
|
|
2869
|
+
readonly contentType: Schema.String;
|
|
2870
|
+
readonly size: Schema.Finite;
|
|
2871
|
+
}>>, Schema.Null]>>;
|
|
2872
|
+
readonly publicationId: Schema.optionalKey<Schema.brand<Schema.String, "TemplatePublicationId">>;
|
|
2873
|
+
readonly inputContractId: Schema.optionalKey<Schema.brand<Schema.String, "TemplateInputContractId">>;
|
|
2874
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
2875
|
+
readonly templateSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2876
|
+
readonly templateData: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
2877
|
+
readonly locale: Schema.optionalKey<Schema.String>;
|
|
2878
|
+
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
2879
|
+
readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
|
|
2880
|
+
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>, Schema.Null]>>;
|
|
2881
|
+
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>, Schema.Null]>>;
|
|
2882
|
+
readonly tracking: Schema.optionalKey<Schema.Struct<{
|
|
2883
|
+
readonly opens: Schema.optionalKey<Schema.Boolean>;
|
|
2884
|
+
readonly clicks: Schema.optionalKey<Schema.Boolean>;
|
|
2885
|
+
}>>;
|
|
2886
|
+
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
2887
|
+
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2888
|
+
}>>;
|
|
2889
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
2890
|
+
readonly preheader: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2891
|
+
}>;
|
|
2892
|
+
readonly from: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2893
|
+
readonly email: Schema.String;
|
|
2894
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2895
|
+
}>, Schema.Null]>>;
|
|
2896
|
+
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>, Schema.Null]>>;
|
|
2897
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>, Schema.Null]>>;
|
|
2898
|
+
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
2899
|
+
}>;
|
|
2900
|
+
readonly audience: Schema.Struct<{
|
|
2901
|
+
readonly topicId: Schema.brand<Schema.String, "TopicId">;
|
|
2902
|
+
readonly includeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
2903
|
+
readonly excludeTags: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
2904
|
+
readonly contactIds: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "ContactId">>, Schema.Null]>>;
|
|
2905
|
+
readonly groupIds: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.brand<Schema.String, "ContactGroupId">>, Schema.Null]>>;
|
|
2906
|
+
}>;
|
|
2907
|
+
readonly contactId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ContactId">, Schema.Null]>>;
|
|
2908
|
+
}>;
|
|
2655
2909
|
export type JourneyBranchEdge = {
|
|
2656
2910
|
readonly nodeId: JourneyNodeId;
|
|
2657
2911
|
readonly condition?: JourneyCondition;
|