samva 0.29.1 → 0.31.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 +23 -5
- package/README.md +166 -133
- package/dist/_virtual/_rolldown/runtime.js +1 -2
- package/dist/client/client/client.gen.js +1 -2
- package/dist/client/client/utils.gen.js +1 -2
- package/dist/client/client.gen.js +1 -2
- package/dist/client/core/auth.gen.js +1 -2
- package/dist/client/core/bodySerializer.gen.js +1 -2
- package/dist/client/core/params.gen.js +1 -2
- package/dist/client/core/pathSerializer.gen.js +1 -2
- package/dist/client/core/serverSentEvents.gen.js +1 -2
- package/dist/client/core/utils.gen.js +1 -2
- package/dist/client/sdk.gen.d.ts +218 -192
- package/dist/client/sdk.gen.js +2397 -1154
- package/dist/client/types.gen.d.ts +767 -376
- package/dist/client-attribution.js +1 -2
- package/dist/effect/agents.d.ts +33 -11
- package/dist/effect/agents.js +1 -2
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +1 -2
- package/dist/effect/api-keys.d.ts +8 -8
- package/dist/effect/api-keys.js +1 -2
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/attachments.js +1 -2
- package/dist/effect/brands.d.ts +6 -6
- package/dist/effect/brands.js +1 -2
- package/dist/effect/campaigns.d.ts +15 -16
- package/dist/effect/campaigns.js +1 -2
- package/dist/effect/categories.js +1 -2
- package/dist/effect/client.js +1 -2
- package/dist/effect/contact-groups.d.ts +10 -10
- package/dist/effect/contact-groups.js +1 -2
- package/dist/effect/contacts.d.ts +23 -24
- package/dist/effect/contacts.js +1 -2
- package/dist/effect/conversations.d.ts +16 -13
- package/dist/effect/conversations.js +1 -2
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/custom-fields.js +1 -2
- package/dist/effect/email.d.ts +61 -63
- package/dist/effect/email.js +1 -2
- package/dist/effect/events.d.ts +2 -4
- package/dist/effect/events.js +1 -2
- package/dist/effect/extension-installations.d.ts +9 -9
- package/dist/effect/extension-installations.js +1 -2
- package/dist/effect/extensions.d.ts +5 -5
- package/dist/effect/extensions.js +1 -2
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/feedback.js +1 -2
- package/dist/effect/generated/agents.d.ts +264 -22
- package/dist/effect/generated/agents.js +2 -3
- package/dist/effect/generated/analytics.js +1 -2
- package/dist/effect/generated/api-keys.js +1 -2
- package/dist/effect/generated/attachments.js +1 -2
- package/dist/effect/generated/brands.js +1 -2
- package/dist/effect/generated/campaigns.d.ts +160 -155
- package/dist/effect/generated/campaigns.js +7 -9
- package/dist/effect/generated/contact-events.js +1 -2
- package/dist/effect/generated/contact-groups.d.ts +26 -26
- package/dist/effect/generated/contact-groups.js +22 -19
- package/dist/effect/generated/contacts.d.ts +119 -90
- package/dist/effect/generated/contacts.js +32 -32
- package/dist/effect/generated/conversations.d.ts +26 -23
- package/dist/effect/generated/conversations.js +10 -10
- package/dist/effect/generated/custom-fields.d.ts +6 -6
- package/dist/effect/generated/custom-fields.js +3 -4
- package/dist/effect/generated/email.d.ts +38 -38
- package/dist/effect/generated/email.js +13 -14
- package/dist/effect/generated/events.d.ts +18 -9
- package/dist/effect/generated/events.js +8 -6
- package/dist/effect/generated/extension-installations.d.ts +2 -2
- package/dist/effect/generated/extension-installations.js +6 -3
- package/dist/effect/generated/extensions.js +1 -2
- package/dist/effect/generated/feedback.js +1 -2
- package/dist/effect/generated/index.d.ts +7 -5
- package/dist/effect/generated/journeys.js +1 -2
- package/dist/effect/generated/mailboxes.d.ts +44 -44
- package/dist/effect/generated/mailboxes.js +17 -18
- package/dist/effect/generated/media.js +1 -2
- package/dist/effect/generated/messages.d.ts +42 -42
- package/dist/effect/generated/messages.js +3 -4
- package/dist/effect/generated/namespaces.js +1 -2
- package/dist/effect/generated/{publication-domains.d.ts → newsletter-domains.d.ts} +304 -80
- package/dist/effect/generated/newsletter-domains.js +218 -0
- package/dist/effect/generated/{topic-issues.d.ts → newsletter-issues.d.ts} +330 -288
- package/dist/effect/generated/{topic-issues.js → newsletter-issues.js} +255 -246
- package/dist/effect/generated/newsletters.d.ts +741 -0
- package/dist/effect/generated/newsletters.js +143 -0
- package/dist/effect/generated/operations.js +1 -2
- package/dist/effect/generated/organizations.d.ts +9 -9
- package/dist/effect/generated/organizations.js +4 -5
- package/dist/effect/generated/scheduled-messages.d.ts +174 -169
- package/dist/effect/generated/scheduled-messages.js +7 -7
- package/dist/effect/generated/shared.d.ts +276 -208
- package/dist/effect/generated/shared.js +50 -36
- package/dist/effect/generated/subscriptions.js +1 -2
- package/dist/effect/generated/templates.d.ts +118 -67
- package/dist/effect/generated/templates.js +43 -35
- package/dist/effect/generated/topic-forms.d.ts +79 -19
- package/dist/effect/generated/topic-forms.js +13 -14
- package/dist/effect/generated/topics.d.ts +27 -65
- package/dist/effect/generated/topics.js +13 -20
- package/dist/effect/generated/webhooks.d.ts +9 -9
- package/dist/effect/generated/webhooks.js +4 -5
- package/dist/effect/generated/whoami.js +1 -2
- package/dist/effect/generated-metadata.d.ts +475 -70
- package/dist/effect/generated-metadata.js +642 -432
- package/dist/effect/index.d.ts +3 -2
- package/dist/effect/index.js +4 -3
- package/dist/effect/internal/client.d.ts +5 -0
- package/dist/effect/internal/client.js +9 -5
- package/dist/effect/internal/email-sender.d.ts +1 -1
- package/dist/effect/internal/email-sender.js +4 -3
- package/dist/effect/internal/mailbox-events.js +1 -2
- package/dist/effect/internal/operation.d.ts +4 -15
- package/dist/effect/internal/operation.js +21 -33
- package/dist/effect/internal/send.js +2 -3
- package/dist/effect/journeys.d.ts +14 -14
- package/dist/effect/journeys.js +1 -2
- package/dist/effect/mailboxes.d.ts +60 -70
- package/dist/effect/mailboxes.js +1 -2
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +1 -2
- package/dist/effect/messages.d.ts +9 -9
- package/dist/effect/messages.js +1 -2
- package/dist/effect/namespaces.d.ts +8 -8
- package/dist/effect/namespaces.js +1 -2
- package/dist/effect/newsletter-domains.d.ts +71 -0
- package/dist/effect/newsletter-domains.js +18 -0
- package/dist/effect/{topic-issues.d.ts → newsletter-issues.d.ts} +11 -15
- package/dist/effect/newsletter-issues.js +32 -0
- package/dist/effect/newsletters.d.ts +22 -0
- package/dist/effect/newsletters.js +20 -0
- package/dist/effect/operations.d.ts +3 -3
- package/dist/effect/operations.js +1 -2
- package/dist/effect/organizations.d.ts +8 -10
- package/dist/effect/organizations.js +1 -2
- package/dist/effect/pagination.js +1 -2
- package/dist/effect/retry.d.ts +4 -4
- package/dist/effect/retry.js +5 -6
- package/dist/effect/runtime.js +1 -2
- package/dist/effect/scheduled-messages.d.ts +5 -6
- package/dist/effect/scheduled-messages.js +1 -2
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/subscriptions.js +1 -2
- package/dist/effect/templates.d.ts +34 -43
- package/dist/effect/templates.js +1 -2
- package/dist/effect/topic-forms.d.ts +5 -5
- package/dist/effect/topic-forms.js +1 -2
- package/dist/effect/topics.d.ts +9 -13
- package/dist/effect/topics.js +1 -2
- package/dist/effect/webhooks.d.ts +11 -11
- package/dist/effect/webhooks.js +1 -2
- package/dist/effect/whoami.d.ts +1 -1
- package/dist/effect/whoami.js +1 -2
- package/dist/index.js +2 -2
- package/dist/inline-attachments.js +1 -2
- package/dist/mailbox/dispatch.d.ts +10 -0
- package/dist/mailbox/dispatch.js +66 -0
- package/dist/mailbox/index.d.ts +17 -0
- package/dist/mailbox/index.js +30 -0
- package/dist/mailbox/test.d.ts +25 -0
- package/dist/mailbox/test.js +174 -0
- package/dist/mailbox/types.d.ts +184 -0
- package/dist/mailbox/webhook.d.ts +10 -0
- package/dist/mailbox/webhook.js +41 -0
- package/dist/mailbox-events.js +1 -2
- package/dist/normalize.js +1 -2
- package/dist/package.js +2 -3
- package/dist/promises/client.d.ts +215 -0
- package/dist/promises/client.js +324 -0
- package/dist/promises/errors.gen.js +1 -2
- package/dist/promises/index.d.ts +2 -196
- package/dist/promises/index.js +3 -295
- package/dist/promises/request.d.ts +15 -0
- package/dist/promises/request.js +75 -0
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-policy.d.ts +3 -0
- package/dist/request-policy.js +16 -0
- package/dist/service-map.d.ts +78 -47
- package/dist/service-map.js +52 -32
- package/package.json +34 -18
- package/dist/effect/generated/publication-domains.js +0 -163
- package/dist/effect/publication-domains.d.ts +0 -14
- package/dist/effect/publication-domains.js +0 -17
- package/dist/effect/topic-issues.js +0 -33
|
@@ -46,8 +46,24 @@ export type AgentName = string;
|
|
|
46
46
|
export declare const AgentName: Schema.String;
|
|
47
47
|
export type MailboxEndpointId = string & EffectBrand.Brand<"MailboxEndpointId">;
|
|
48
48
|
export declare const MailboxEndpointId: Schema.brand<Schema.String, "MailboxEndpointId">;
|
|
49
|
-
export type
|
|
50
|
-
export declare const
|
|
49
|
+
export type IntegrationId = string & EffectBrand.Brand<"IntegrationId">;
|
|
50
|
+
export declare const IntegrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
51
|
+
export type AgentToolScope = {
|
|
52
|
+
readonly kind: "all";
|
|
53
|
+
} | {
|
|
54
|
+
readonly kind: "readOnly";
|
|
55
|
+
} | {
|
|
56
|
+
readonly kind: "selected";
|
|
57
|
+
readonly names: ReadonlyArray<string>;
|
|
58
|
+
};
|
|
59
|
+
export declare const AgentToolScope: Schema.Union<readonly [Schema.Struct<{
|
|
60
|
+
readonly kind: Schema.Literal<"all">;
|
|
61
|
+
}>, Schema.Struct<{
|
|
62
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
63
|
+
}>, Schema.Struct<{
|
|
64
|
+
readonly kind: Schema.Literal<"selected">;
|
|
65
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
66
|
+
}>]>;
|
|
51
67
|
export type AgentMode = "live" | "supervised";
|
|
52
68
|
export declare const AgentMode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
53
69
|
export type AgentModel = "standard" | "max";
|
|
@@ -204,8 +220,8 @@ export type RenderLocale = string;
|
|
|
204
220
|
export declare const RenderLocale: Schema.String;
|
|
205
221
|
export type RenderTimeZone = string;
|
|
206
222
|
export declare const RenderTimeZone: Schema.String;
|
|
207
|
-
export type ReplyToAddresses = ReadonlyArray<string> | null
|
|
208
|
-
export declare const ReplyToAddresses: Schema.Union<readonly [Schema
|
|
223
|
+
export type ReplyToAddresses = ReadonlyArray<string> | null;
|
|
224
|
+
export declare const ReplyToAddresses: Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>;
|
|
209
225
|
export type TopicId = string & EffectBrand.Brand<"TopicId">;
|
|
210
226
|
export declare const TopicId: Schema.brand<Schema.String, "TopicId">;
|
|
211
227
|
export type EmailTrackingOverrideV1 = {
|
|
@@ -564,6 +580,10 @@ export type NamespaceMetadata = {
|
|
|
564
580
|
export declare const NamespaceMetadata: Schema.$Record<Schema.String, Schema.String>;
|
|
565
581
|
export type NamespaceResourceType = "domain" | "sender" | "contact" | "template";
|
|
566
582
|
export declare const NamespaceResourceType: Schema.Union<readonly [Schema.Literal<"domain">, Schema.Literal<"sender">, Schema.Literal<"contact">, Schema.Literal<"template">]>;
|
|
583
|
+
export type NewsletterId = string & EffectBrand.Brand<"NewsletterId">;
|
|
584
|
+
export declare const NewsletterId: Schema.brand<Schema.String, "NewsletterId">;
|
|
585
|
+
export type TemplateProjectId = string & EffectBrand.Brand<"TemplateProjectId">;
|
|
586
|
+
export declare const TemplateProjectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
567
587
|
export type OperationResource = {
|
|
568
588
|
readonly type: string;
|
|
569
589
|
readonly id: string;
|
|
@@ -572,8 +592,6 @@ export declare const OperationResource: Schema.Struct<{
|
|
|
572
592
|
readonly type: Schema.String;
|
|
573
593
|
readonly id: Schema.String;
|
|
574
594
|
}>;
|
|
575
|
-
export type TemplateProjectId = string & EffectBrand.Brand<"TemplateProjectId">;
|
|
576
|
-
export declare const TemplateProjectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
577
595
|
export type TemplateFromDefault = {
|
|
578
596
|
readonly email: string;
|
|
579
597
|
readonly name?: string | null;
|
|
@@ -606,15 +624,15 @@ export type AddTemplateEntryPayload = {
|
|
|
606
624
|
readonly entryPath: string;
|
|
607
625
|
readonly name: string;
|
|
608
626
|
readonly slug: string;
|
|
609
|
-
readonly description?: string | null
|
|
610
|
-
readonly category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null
|
|
627
|
+
readonly description?: string | null;
|
|
628
|
+
readonly category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
|
|
611
629
|
};
|
|
612
630
|
export declare const AddTemplateEntryPayload: Schema.Struct<{
|
|
613
631
|
readonly entryPath: Schema.String;
|
|
614
632
|
readonly name: Schema.String;
|
|
615
633
|
readonly slug: Schema.String;
|
|
616
|
-
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
617
|
-
readonly category: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.
|
|
634
|
+
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
635
|
+
readonly category: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"transactional">, Schema.Literal<"marketing">, Schema.Literal<"support">, Schema.Literal<"notification">, Schema.Literal<"verification">, Schema.Literal<"reminder">, Schema.Literal<"alert">]>, Schema.Null]>>;
|
|
618
636
|
}>;
|
|
619
637
|
export type ContactTags = {
|
|
620
638
|
readonly tags: readonly [string, ...Array<string>];
|
|
@@ -655,21 +673,21 @@ export declare const CreateDomainWarmingPlanPayload: Schema.Struct<{
|
|
|
655
673
|
export type CreateMailboxLabelPayload = {
|
|
656
674
|
readonly slug: string;
|
|
657
675
|
readonly displayName: string;
|
|
658
|
-
readonly color?: "billing" | "domain" | "agent" | "routing" | "important" | "neutral" | null
|
|
676
|
+
readonly color?: "billing" | "domain" | "agent" | "routing" | "important" | "neutral" | null;
|
|
659
677
|
};
|
|
660
678
|
export declare const CreateMailboxLabelPayload: Schema.Struct<{
|
|
661
679
|
readonly slug: Schema.String;
|
|
662
680
|
readonly displayName: Schema.String;
|
|
663
|
-
readonly color: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.
|
|
681
|
+
readonly color: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"billing">, Schema.Literal<"domain">, Schema.Literal<"agent">, Schema.Literal<"routing">, Schema.Literal<"important">, Schema.Literal<"neutral">]>, Schema.Null]>>;
|
|
664
682
|
}>;
|
|
665
683
|
export type CreateMailboxNotePayload = {
|
|
666
684
|
readonly body: string;
|
|
667
|
-
readonly color?: string | null
|
|
685
|
+
readonly color?: string | null;
|
|
668
686
|
readonly pinned?: boolean | null;
|
|
669
687
|
};
|
|
670
688
|
export declare const CreateMailboxNotePayload: Schema.Struct<{
|
|
671
689
|
readonly body: Schema.String;
|
|
672
|
-
readonly color: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
690
|
+
readonly color: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
673
691
|
readonly pinned: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
674
692
|
}>;
|
|
675
693
|
export type CreateMediaPayload = {
|
|
@@ -698,6 +716,72 @@ export type DomainWarmingNotePayload = {
|
|
|
698
716
|
export declare const DomainWarmingNotePayload: Schema.Struct<{
|
|
699
717
|
readonly note: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
700
718
|
}>;
|
|
719
|
+
export type NewsletterIssueCheckPayload = {
|
|
720
|
+
readonly path: string;
|
|
721
|
+
readonly expectedRevision: string;
|
|
722
|
+
};
|
|
723
|
+
export declare const NewsletterIssueCheckPayload: Schema.Struct<{
|
|
724
|
+
readonly path: Schema.String;
|
|
725
|
+
readonly expectedRevision: Schema.String;
|
|
726
|
+
}>;
|
|
727
|
+
export type NewsletterIssueCreatePayload = {
|
|
728
|
+
readonly path: string;
|
|
729
|
+
readonly content: string;
|
|
730
|
+
readonly expectedRevision?: string | null;
|
|
731
|
+
};
|
|
732
|
+
export declare const NewsletterIssueCreatePayload: Schema.Struct<{
|
|
733
|
+
readonly path: Schema.String;
|
|
734
|
+
readonly content: Schema.String;
|
|
735
|
+
readonly expectedRevision: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
736
|
+
}>;
|
|
737
|
+
export type NewsletterIssueRemovePayload = {
|
|
738
|
+
readonly path: string;
|
|
739
|
+
readonly expectedRevision: string;
|
|
740
|
+
};
|
|
741
|
+
export declare const NewsletterIssueRemovePayload: Schema.Struct<{
|
|
742
|
+
readonly path: Schema.String;
|
|
743
|
+
readonly expectedRevision: Schema.String;
|
|
744
|
+
}>;
|
|
745
|
+
export type NewsletterIssueRenderPayload = {
|
|
746
|
+
readonly path: string;
|
|
747
|
+
readonly expectedRevision: string;
|
|
748
|
+
readonly fixture: string;
|
|
749
|
+
readonly target: "email" | "web";
|
|
750
|
+
};
|
|
751
|
+
export declare const NewsletterIssueRenderPayload: Schema.Struct<{
|
|
752
|
+
readonly path: Schema.String;
|
|
753
|
+
readonly expectedRevision: Schema.String;
|
|
754
|
+
readonly fixture: Schema.String;
|
|
755
|
+
readonly target: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"web">]>;
|
|
756
|
+
}>;
|
|
757
|
+
export type NewsletterIssueSavePayload = {
|
|
758
|
+
readonly expectedRevision: string;
|
|
759
|
+
readonly expectedHead: string;
|
|
760
|
+
readonly message: string;
|
|
761
|
+
};
|
|
762
|
+
export declare const NewsletterIssueSavePayload: Schema.Struct<{
|
|
763
|
+
readonly expectedRevision: Schema.String;
|
|
764
|
+
readonly expectedHead: Schema.String;
|
|
765
|
+
readonly message: Schema.String;
|
|
766
|
+
}>;
|
|
767
|
+
export type NewsletterIssueUpdatePayload = {
|
|
768
|
+
readonly path: string;
|
|
769
|
+
readonly content: string;
|
|
770
|
+
readonly expectedRevision: string;
|
|
771
|
+
};
|
|
772
|
+
export declare const NewsletterIssueUpdatePayload: Schema.Struct<{
|
|
773
|
+
readonly path: Schema.String;
|
|
774
|
+
readonly content: Schema.String;
|
|
775
|
+
readonly expectedRevision: Schema.String;
|
|
776
|
+
}>;
|
|
777
|
+
export type NewsletterUpdatePayload = {
|
|
778
|
+
readonly archiveEnabled?: boolean | null;
|
|
779
|
+
readonly publicationSlug?: string | null;
|
|
780
|
+
};
|
|
781
|
+
export declare const NewsletterUpdatePayload: Schema.Struct<{
|
|
782
|
+
readonly archiveEnabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
783
|
+
readonly publicationSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
784
|
+
}>;
|
|
701
785
|
export type PublishAgentPayload = {
|
|
702
786
|
readonly revision: string;
|
|
703
787
|
};
|
|
@@ -776,7 +860,7 @@ export type TopicFormUpdatePayload = {
|
|
|
776
860
|
readonly confirmationMessage?: string | null;
|
|
777
861
|
readonly successTitle?: string | null;
|
|
778
862
|
readonly successMessage?: string | null;
|
|
779
|
-
readonly redirectUrl?: string | null
|
|
863
|
+
readonly redirectUrl?: string | null;
|
|
780
864
|
};
|
|
781
865
|
export declare const TopicFormUpdatePayload: Schema.Struct<{
|
|
782
866
|
readonly allowedOrigins: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -784,73 +868,7 @@ export declare const TopicFormUpdatePayload: Schema.Struct<{
|
|
|
784
868
|
readonly confirmationMessage: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
785
869
|
readonly successTitle: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
786
870
|
readonly successMessage: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
787
|
-
readonly redirectUrl: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
788
|
-
}>;
|
|
789
|
-
export type TopicIssueCheckPayload = {
|
|
790
|
-
readonly path: string;
|
|
791
|
-
readonly expectedRevision: string;
|
|
792
|
-
};
|
|
793
|
-
export declare const TopicIssueCheckPayload: Schema.Struct<{
|
|
794
|
-
readonly path: Schema.String;
|
|
795
|
-
readonly expectedRevision: Schema.String;
|
|
796
|
-
}>;
|
|
797
|
-
export type TopicIssueCreatePayload = {
|
|
798
|
-
readonly path: string;
|
|
799
|
-
readonly content: string;
|
|
800
|
-
readonly idempotencyKey: string;
|
|
801
|
-
readonly expectedRevision?: string | null;
|
|
802
|
-
};
|
|
803
|
-
export declare const TopicIssueCreatePayload: Schema.Struct<{
|
|
804
|
-
readonly path: Schema.String;
|
|
805
|
-
readonly content: Schema.String;
|
|
806
|
-
readonly idempotencyKey: Schema.String;
|
|
807
|
-
readonly expectedRevision: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
808
|
-
}>;
|
|
809
|
-
export type TopicIssueRemovePayload = {
|
|
810
|
-
readonly path: string;
|
|
811
|
-
readonly idempotencyKey: string;
|
|
812
|
-
readonly expectedRevision: string;
|
|
813
|
-
};
|
|
814
|
-
export declare const TopicIssueRemovePayload: Schema.Struct<{
|
|
815
|
-
readonly path: Schema.String;
|
|
816
|
-
readonly idempotencyKey: Schema.String;
|
|
817
|
-
readonly expectedRevision: Schema.String;
|
|
818
|
-
}>;
|
|
819
|
-
export type TopicIssueRenderPayload = {
|
|
820
|
-
readonly path: string;
|
|
821
|
-
readonly expectedRevision: string;
|
|
822
|
-
readonly fixture: string;
|
|
823
|
-
readonly target: "email" | "web";
|
|
824
|
-
};
|
|
825
|
-
export declare const TopicIssueRenderPayload: Schema.Struct<{
|
|
826
|
-
readonly path: Schema.String;
|
|
827
|
-
readonly expectedRevision: Schema.String;
|
|
828
|
-
readonly fixture: Schema.String;
|
|
829
|
-
readonly target: Schema.Union<readonly [Schema.Literal<"email">, Schema.Literal<"web">]>;
|
|
830
|
-
}>;
|
|
831
|
-
export type TopicIssueSavePayload = {
|
|
832
|
-
readonly expectedRevision: string;
|
|
833
|
-
readonly expectedHead: string;
|
|
834
|
-
readonly message: string;
|
|
835
|
-
readonly idempotencyKey: string;
|
|
836
|
-
};
|
|
837
|
-
export declare const TopicIssueSavePayload: Schema.Struct<{
|
|
838
|
-
readonly expectedRevision: Schema.String;
|
|
839
|
-
readonly expectedHead: Schema.String;
|
|
840
|
-
readonly message: Schema.String;
|
|
841
|
-
readonly idempotencyKey: Schema.String;
|
|
842
|
-
}>;
|
|
843
|
-
export type TopicIssueUpdatePayload = {
|
|
844
|
-
readonly path: string;
|
|
845
|
-
readonly content: string;
|
|
846
|
-
readonly idempotencyKey: string;
|
|
847
|
-
readonly expectedRevision: string;
|
|
848
|
-
};
|
|
849
|
-
export declare const TopicIssueUpdatePayload: Schema.Struct<{
|
|
850
|
-
readonly path: Schema.String;
|
|
851
|
-
readonly content: Schema.String;
|
|
852
|
-
readonly idempotencyKey: Schema.String;
|
|
853
|
-
readonly expectedRevision: Schema.String;
|
|
871
|
+
readonly redirectUrl: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
854
872
|
}>;
|
|
855
873
|
export type UpdateDomainWarmingPolicyPayload = {
|
|
856
874
|
readonly dailyGrowthPercent: number;
|
|
@@ -863,29 +881,29 @@ export declare const UpdateDomainWarmingPolicyPayload: Schema.Struct<{
|
|
|
863
881
|
readonly note: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
864
882
|
}>;
|
|
865
883
|
export type UpdateMailboxEndpointPayload = {
|
|
866
|
-
readonly displayName?: string | null
|
|
884
|
+
readonly displayName?: string | null;
|
|
867
885
|
readonly default?: true | null;
|
|
868
886
|
};
|
|
869
887
|
export declare const UpdateMailboxEndpointPayload: Schema.Struct<{
|
|
870
|
-
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
888
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
871
889
|
readonly default: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<true>, Schema.Null]>>;
|
|
872
890
|
}>;
|
|
873
891
|
export type UpdateMailboxLabelPayload = {
|
|
874
892
|
readonly displayName?: string | null;
|
|
875
|
-
readonly color?: "billing" | "domain" | "agent" | "routing" | "important" | "neutral" | null
|
|
893
|
+
readonly color?: "billing" | "domain" | "agent" | "routing" | "important" | "neutral" | null;
|
|
876
894
|
};
|
|
877
895
|
export declare const UpdateMailboxLabelPayload: Schema.Struct<{
|
|
878
896
|
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
879
|
-
readonly color: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.
|
|
897
|
+
readonly color: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"billing">, Schema.Literal<"domain">, Schema.Literal<"agent">, Schema.Literal<"routing">, Schema.Literal<"important">, Schema.Literal<"neutral">]>, Schema.Null]>>;
|
|
880
898
|
}>;
|
|
881
899
|
export type UpdateMailboxNotePayload = {
|
|
882
900
|
readonly body?: string | null;
|
|
883
|
-
readonly color?: string | null
|
|
901
|
+
readonly color?: string | null;
|
|
884
902
|
readonly pinned?: boolean | null;
|
|
885
903
|
};
|
|
886
904
|
export declare const UpdateMailboxNotePayload: Schema.Struct<{
|
|
887
905
|
readonly body: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
888
|
-
readonly color: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
906
|
+
readonly color: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
889
907
|
readonly pinned: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
890
908
|
}>;
|
|
891
909
|
export type UpdateNamespacePayload = {
|
|
@@ -902,13 +920,11 @@ export type CreateTemplateFromWebsitePayload = {
|
|
|
902
920
|
readonly url: string;
|
|
903
921
|
readonly name?: string | null;
|
|
904
922
|
readonly namespaceId?: NamespaceId | null;
|
|
905
|
-
readonly idempotencyKey: string;
|
|
906
923
|
};
|
|
907
924
|
export declare const CreateTemplateFromWebsitePayload: Schema.Struct<{
|
|
908
925
|
readonly url: Schema.String;
|
|
909
926
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
910
927
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
911
|
-
readonly idempotencyKey: Schema.String;
|
|
912
928
|
}>;
|
|
913
929
|
export type CreateTemplatePayload = {
|
|
914
930
|
readonly name: string;
|
|
@@ -916,12 +932,11 @@ export type CreateTemplatePayload = {
|
|
|
916
932
|
readonly slug?: string | null;
|
|
917
933
|
readonly galleryTemplateId?: string | null;
|
|
918
934
|
readonly useBrand?: boolean | null;
|
|
919
|
-
readonly description?: string | null
|
|
920
|
-
readonly category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null
|
|
935
|
+
readonly description?: string | null;
|
|
936
|
+
readonly category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
|
|
921
937
|
readonly isActive?: boolean | null;
|
|
922
938
|
readonly namespaceId?: NamespaceId | null;
|
|
923
939
|
readonly shared?: boolean | null;
|
|
924
|
-
readonly idempotencyKey: string;
|
|
925
940
|
};
|
|
926
941
|
export declare const CreateTemplatePayload: Schema.Struct<{
|
|
927
942
|
readonly name: Schema.String;
|
|
@@ -929,12 +944,11 @@ export declare const CreateTemplatePayload: Schema.Struct<{
|
|
|
929
944
|
readonly slug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
930
945
|
readonly galleryTemplateId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
931
946
|
readonly useBrand: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
932
|
-
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
933
|
-
readonly category: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.
|
|
947
|
+
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
948
|
+
readonly category: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"transactional">, Schema.Literal<"marketing">, Schema.Literal<"support">, Schema.Literal<"notification">, Schema.Literal<"verification">, Schema.Literal<"reminder">, Schema.Literal<"alert">]>, Schema.Null]>>;
|
|
934
949
|
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
935
950
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
936
951
|
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
937
|
-
readonly idempotencyKey: Schema.String;
|
|
938
952
|
}>;
|
|
939
953
|
export type UpdateAgentPayload = {
|
|
940
954
|
readonly name: AgentName;
|
|
@@ -942,6 +956,23 @@ export type UpdateAgentPayload = {
|
|
|
942
956
|
export declare const UpdateAgentPayload: Schema.Struct<{
|
|
943
957
|
readonly name: Schema.String;
|
|
944
958
|
}>;
|
|
959
|
+
export type AgentIntegrationGrant = {
|
|
960
|
+
readonly integrationId: IntegrationId;
|
|
961
|
+
readonly tools: AgentToolScope;
|
|
962
|
+
readonly requireApproval: ReadonlyArray<string>;
|
|
963
|
+
};
|
|
964
|
+
export declare const AgentIntegrationGrant: Schema.Struct<{
|
|
965
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
966
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
967
|
+
readonly kind: Schema.Literal<"all">;
|
|
968
|
+
}>, Schema.Struct<{
|
|
969
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
970
|
+
}>, Schema.Struct<{
|
|
971
|
+
readonly kind: Schema.Literal<"selected">;
|
|
972
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
973
|
+
}>]>;
|
|
974
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
975
|
+
}>;
|
|
945
976
|
export type WorkingHoursRange = {
|
|
946
977
|
readonly day: Weekday;
|
|
947
978
|
readonly opens: ClockTime;
|
|
@@ -952,8 +983,8 @@ export declare const WorkingHoursRange: Schema.Struct<{
|
|
|
952
983
|
readonly opens: Schema.String;
|
|
953
984
|
readonly closes: Schema.String;
|
|
954
985
|
}>;
|
|
955
|
-
export type CampaignReplyMailbox = MailboxId | null
|
|
956
|
-
export declare const CampaignReplyMailbox: Schema.Union<readonly [Schema.
|
|
986
|
+
export type CampaignReplyMailbox = MailboxId | null;
|
|
987
|
+
export declare const CampaignReplyMailbox: Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>;
|
|
957
988
|
export type CreateWebhookPayload = {
|
|
958
989
|
readonly name: string;
|
|
959
990
|
readonly url: string;
|
|
@@ -998,9 +1029,9 @@ export type UpdateWebhookPayload = {
|
|
|
998
1029
|
readonly name?: string | null;
|
|
999
1030
|
readonly url?: string | null;
|
|
1000
1031
|
readonly eventTypes?: ReadonlyArray<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook"> | null;
|
|
1001
|
-
readonly channels?: ReadonlyArray<"email"> | null
|
|
1002
|
-
readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null
|
|
1003
|
-
readonly namespaceId?: NamespaceId | null
|
|
1032
|
+
readonly channels?: ReadonlyArray<"email"> | null;
|
|
1033
|
+
readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null;
|
|
1034
|
+
readonly namespaceId?: NamespaceId | null;
|
|
1004
1035
|
readonly headers?: {
|
|
1005
1036
|
readonly [x: string]: string;
|
|
1006
1037
|
} | null;
|
|
@@ -1010,9 +1041,9 @@ export declare const UpdateWebhookPayload: Schema.Struct<{
|
|
|
1010
1041
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1011
1042
|
readonly url: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1012
1043
|
readonly eventTypes: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"mailbox.message.delivered">, Schema.Literal<"mailbox.message.read">, Schema.Literal<"mailbox.message.failed">, Schema.Literal<"journey.webhook">]>>, Schema.Null]>>;
|
|
1013
|
-
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema
|
|
1014
|
-
readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
1015
|
-
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
1044
|
+
readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
|
|
1045
|
+
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]>>;
|
|
1046
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1016
1047
|
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
1017
1048
|
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>, Schema.Null]>>;
|
|
1018
1049
|
}>;
|
|
@@ -1129,6 +1160,22 @@ export declare const SkippedRecipient: Schema.Struct<{
|
|
|
1129
1160
|
readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
|
|
1130
1161
|
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
|
|
1131
1162
|
}>;
|
|
1163
|
+
export type NewsletterCreatePayload = {
|
|
1164
|
+
readonly topicId?: TopicId | null;
|
|
1165
|
+
readonly name?: string | null;
|
|
1166
|
+
readonly description?: string | null;
|
|
1167
|
+
readonly namespaceId?: NamespaceId | null;
|
|
1168
|
+
readonly archiveEnabled?: boolean | null;
|
|
1169
|
+
readonly publicationSlug?: string | null;
|
|
1170
|
+
};
|
|
1171
|
+
export declare const NewsletterCreatePayload: Schema.Struct<{
|
|
1172
|
+
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
|
|
1173
|
+
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1174
|
+
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1175
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1176
|
+
readonly archiveEnabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1177
|
+
readonly publicationSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1178
|
+
}>;
|
|
1132
1179
|
export type SubscribePayload = {
|
|
1133
1180
|
readonly email: string;
|
|
1134
1181
|
readonly topicId: TopicId;
|
|
@@ -1151,8 +1198,8 @@ export declare const SubscribePayload: Schema.Struct<{
|
|
|
1151
1198
|
readonly consentIp: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1152
1199
|
readonly consentSource: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1153
1200
|
}>;
|
|
1154
|
-
export type CampaignConversationRef = ConversationId | null
|
|
1155
|
-
export declare const CampaignConversationRef: Schema.Union<readonly [Schema.
|
|
1201
|
+
export type CampaignConversationRef = ConversationId | null;
|
|
1202
|
+
export declare const CampaignConversationRef: Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>;
|
|
1156
1203
|
export type ContactEvent = {
|
|
1157
1204
|
readonly id: string;
|
|
1158
1205
|
readonly contactId: ContactId;
|
|
@@ -1202,14 +1249,14 @@ export type EmailRecipient = {
|
|
|
1202
1249
|
} | {
|
|
1203
1250
|
readonly email: string;
|
|
1204
1251
|
readonly name?: string | null;
|
|
1205
|
-
readonly displayName?: string | null
|
|
1252
|
+
readonly displayName?: string | null;
|
|
1206
1253
|
};
|
|
1207
1254
|
export declare const EmailRecipient: Schema.Union<readonly [Schema.Struct<{
|
|
1208
1255
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
1209
1256
|
}>, Schema.Struct<{
|
|
1210
1257
|
readonly email: Schema.String;
|
|
1211
1258
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1212
|
-
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
1259
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1213
1260
|
}>]>;
|
|
1214
1261
|
export type TopicContactById = {
|
|
1215
1262
|
readonly contactId: ContactId;
|
|
@@ -1311,45 +1358,37 @@ export declare const JourneySendEmailConfig: Schema.Struct<{
|
|
|
1311
1358
|
}>;
|
|
1312
1359
|
export type TopicCreatePayload = {
|
|
1313
1360
|
readonly name: string;
|
|
1314
|
-
readonly description?: string | null
|
|
1315
|
-
readonly namespaceId?: NamespaceId | null
|
|
1361
|
+
readonly description?: string | null;
|
|
1362
|
+
readonly namespaceId?: NamespaceId | null;
|
|
1316
1363
|
readonly default?: "opt_out" | "opt_in" | null;
|
|
1317
|
-
readonly
|
|
1318
|
-
readonly
|
|
1319
|
-
readonly
|
|
1320
|
-
readonly replyMailboxId?: MailboxId | null | null;
|
|
1321
|
-
readonly templateId?: TemplateId | null | null;
|
|
1364
|
+
readonly defaultSenderId?: EmailSenderId | null;
|
|
1365
|
+
readonly replyMailboxId?: MailboxId | null;
|
|
1366
|
+
readonly templateId?: TemplateId | null;
|
|
1322
1367
|
};
|
|
1323
1368
|
export declare const TopicCreatePayload: Schema.Struct<{
|
|
1324
1369
|
readonly name: Schema.String;
|
|
1325
|
-
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
1326
|
-
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
1370
|
+
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1371
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1327
1372
|
readonly default: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"opt_out">, Schema.Literal<"opt_in">]>, Schema.Null]>>;
|
|
1328
|
-
readonly
|
|
1329
|
-
readonly
|
|
1330
|
-
readonly
|
|
1331
|
-
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>, Schema.Null]>>;
|
|
1332
|
-
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>, Schema.Null]>>;
|
|
1373
|
+
readonly defaultSenderId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "EmailSenderId">, Schema.Null]>>;
|
|
1374
|
+
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
1375
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
1333
1376
|
}>;
|
|
1334
1377
|
export type TopicUpdatePayload = {
|
|
1335
1378
|
readonly name?: string | null;
|
|
1336
|
-
readonly description?: string | null
|
|
1379
|
+
readonly description?: string | null;
|
|
1337
1380
|
readonly default?: "opt_out" | "opt_in" | null;
|
|
1338
|
-
readonly
|
|
1339
|
-
readonly
|
|
1340
|
-
readonly
|
|
1341
|
-
readonly replyMailboxId?: MailboxId | null | null;
|
|
1342
|
-
readonly templateId?: TemplateId | null | null;
|
|
1381
|
+
readonly defaultSenderId?: EmailSenderId | null;
|
|
1382
|
+
readonly replyMailboxId?: MailboxId | null;
|
|
1383
|
+
readonly templateId?: TemplateId | null;
|
|
1343
1384
|
};
|
|
1344
1385
|
export declare const TopicUpdatePayload: Schema.Struct<{
|
|
1345
1386
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1346
|
-
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
1387
|
+
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1347
1388
|
readonly default: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"opt_out">, Schema.Literal<"opt_in">]>, Schema.Null]>>;
|
|
1348
|
-
readonly
|
|
1349
|
-
readonly
|
|
1350
|
-
readonly
|
|
1351
|
-
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>, Schema.Null]>>;
|
|
1352
|
-
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>, Schema.Null]>>;
|
|
1389
|
+
readonly defaultSenderId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "EmailSenderId">, Schema.Null]>>;
|
|
1390
|
+
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
1391
|
+
readonly templateId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.Null]>>;
|
|
1353
1392
|
}>;
|
|
1354
1393
|
export type ExtensionVersionRef = {
|
|
1355
1394
|
readonly id: ExtensionVersionId;
|
|
@@ -1365,7 +1404,7 @@ export type UpgradeExtensionPayload = {
|
|
|
1365
1404
|
readonly dryRun?: boolean | null;
|
|
1366
1405
|
};
|
|
1367
1406
|
export declare const UpgradeExtensionPayload: Schema.Struct<{
|
|
1368
|
-
readonly version: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
1407
|
+
readonly version: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.brand<Schema.String, "ExtensionVersionId">, Schema.Null]>>;
|
|
1369
1408
|
readonly acceptPermissions: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"permission:read">, Schema.Literal<"permission:update">, Schema.Literal<"permission:send">, Schema.Literal<"permission:quarantine.read">, Schema.Literal<"event:mailbox.message.received">, Schema.Literal<"event:mailbox.message.sent">, Schema.Literal<"event:mailbox.action.pending_approval">, Schema.Literal<"event:mailbox.action.resolved">, Schema.Literal<"event:mailbox.message.quarantined">, Schema.Literal<"event:mailbox.message.released">, Schema.Literal<"event:mailbox.message.discarded">]>>, Schema.Null]>>;
|
|
1370
1409
|
readonly dryRun: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1371
1410
|
}>;
|
|
@@ -1544,13 +1583,13 @@ export declare const CreateMailboxPolicyPayload: Schema.Struct<{
|
|
|
1544
1583
|
export type UpdateMailboxPolicyPayload = {
|
|
1545
1584
|
readonly name?: string | null;
|
|
1546
1585
|
readonly outcome?: MailboxPolicyOutcomeKind | null;
|
|
1547
|
-
readonly reason?: string | null
|
|
1586
|
+
readonly reason?: string | null;
|
|
1548
1587
|
readonly enabled?: boolean | null;
|
|
1549
1588
|
};
|
|
1550
1589
|
export declare const UpdateMailboxPolicyPayload: Schema.Struct<{
|
|
1551
1590
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1552
1591
|
readonly outcome: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"requireApproval">, Schema.Literal<"deny">]>, Schema.Null]>>;
|
|
1553
|
-
readonly reason: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
1592
|
+
readonly reason: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1554
1593
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1555
1594
|
}>;
|
|
1556
1595
|
export type UpdateMailboxThreadPayload = {
|
|
@@ -1558,14 +1597,14 @@ export type UpdateMailboxThreadPayload = {
|
|
|
1558
1597
|
readonly priority?: MailboxThreadPriority | null;
|
|
1559
1598
|
readonly read?: boolean | null;
|
|
1560
1599
|
readonly starred?: boolean | null;
|
|
1561
|
-
readonly snoozedUntil?: string | null
|
|
1600
|
+
readonly snoozedUntil?: string | null;
|
|
1562
1601
|
};
|
|
1563
1602
|
export declare const UpdateMailboxThreadPayload: Schema.Struct<{
|
|
1564
1603
|
readonly folder: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"inbox">, Schema.Literal<"assigned">, Schema.Literal<"pending">, Schema.Literal<"sent">, Schema.Literal<"archived">, Schema.Literal<"trash">]>, Schema.Null]>>;
|
|
1565
1604
|
readonly priority: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"low">, Schema.Literal<"normal">, Schema.Literal<"high">, Schema.Literal<"urgent">]>, Schema.Null]>>;
|
|
1566
1605
|
readonly read: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1567
1606
|
readonly starred: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1568
|
-
readonly snoozedUntil: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
1607
|
+
readonly snoozedUntil: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1569
1608
|
}>;
|
|
1570
1609
|
export type CreateNamespacePayload = {
|
|
1571
1610
|
readonly name: string;
|
|
@@ -1642,11 +1681,11 @@ export type UpdateTemplatePayload = {
|
|
|
1642
1681
|
readonly name?: string | null;
|
|
1643
1682
|
readonly slug?: string | null;
|
|
1644
1683
|
readonly entryPath?: string | null;
|
|
1645
|
-
readonly description?: string | null
|
|
1646
|
-
readonly category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null
|
|
1647
|
-
readonly fromDefault?: TemplateFromDefault | null
|
|
1648
|
-
readonly replyToDefault?: ReadonlyArray<string> | null
|
|
1649
|
-
readonly trackingDefault?: TemplateTrackingDefault | null
|
|
1684
|
+
readonly description?: string | null;
|
|
1685
|
+
readonly category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null;
|
|
1686
|
+
readonly fromDefault?: TemplateFromDefault | null;
|
|
1687
|
+
readonly replyToDefault?: ReadonlyArray<string> | null;
|
|
1688
|
+
readonly trackingDefault?: TemplateTrackingDefault | null;
|
|
1650
1689
|
readonly isActive?: boolean | null;
|
|
1651
1690
|
readonly shared?: boolean | null;
|
|
1652
1691
|
};
|
|
@@ -1656,17 +1695,17 @@ export declare const UpdateTemplatePayload: Schema.Struct<{
|
|
|
1656
1695
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1657
1696
|
readonly slug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1658
1697
|
readonly entryPath: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1659
|
-
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
1660
|
-
readonly category: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.
|
|
1661
|
-
readonly fromDefault: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
1698
|
+
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1699
|
+
readonly category: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"transactional">, Schema.Literal<"marketing">, Schema.Literal<"support">, Schema.Literal<"notification">, Schema.Literal<"verification">, Schema.Literal<"reminder">, Schema.Literal<"alert">]>, Schema.Null]>>;
|
|
1700
|
+
readonly fromDefault: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1662
1701
|
readonly email: Schema.String;
|
|
1663
1702
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1664
|
-
}>, Schema.Null]
|
|
1665
|
-
readonly replyToDefault: Schema.optionalKey<Schema.Union<readonly [Schema
|
|
1666
|
-
readonly trackingDefault: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
1703
|
+
}>, Schema.Null]>>;
|
|
1704
|
+
readonly replyToDefault: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
1705
|
+
readonly trackingDefault: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1667
1706
|
readonly opens: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1668
1707
|
readonly clicks: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1669
|
-
}>, Schema.Null]
|
|
1708
|
+
}>, Schema.Null]>>;
|
|
1670
1709
|
readonly isActive: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1671
1710
|
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1672
1711
|
}>;
|
|
@@ -1899,29 +1938,29 @@ export declare const SendMailboxMessagePayload: Schema.Struct<{
|
|
|
1899
1938
|
}>;
|
|
1900
1939
|
export type UpdateMailboxDraftPayload = {
|
|
1901
1940
|
readonly to?: ReadonlyArray<string> | null;
|
|
1902
|
-
readonly cc?: ReadonlyArray<string> | null
|
|
1903
|
-
readonly bcc?: ReadonlyArray<string> | null
|
|
1904
|
-
readonly replyTo?: ReadonlyArray<string> | null
|
|
1905
|
-
readonly subject?: string | null
|
|
1906
|
-
readonly text?: string | null
|
|
1907
|
-
readonly html?: string | null
|
|
1908
|
-
readonly attachments?: ReadonlyArray<EmailAttachment> | null
|
|
1941
|
+
readonly cc?: ReadonlyArray<string> | null;
|
|
1942
|
+
readonly bcc?: ReadonlyArray<string> | null;
|
|
1943
|
+
readonly replyTo?: ReadonlyArray<string> | null;
|
|
1944
|
+
readonly subject?: string | null;
|
|
1945
|
+
readonly text?: string | null;
|
|
1946
|
+
readonly html?: string | null;
|
|
1947
|
+
readonly attachments?: ReadonlyArray<EmailAttachment> | null;
|
|
1909
1948
|
};
|
|
1910
1949
|
export declare const UpdateMailboxDraftPayload: Schema.Struct<{
|
|
1911
1950
|
readonly to: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
1912
|
-
readonly cc: Schema.optionalKey<Schema.Union<readonly [Schema
|
|
1913
|
-
readonly bcc: Schema.optionalKey<Schema.Union<readonly [Schema
|
|
1914
|
-
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema
|
|
1915
|
-
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
1916
|
-
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
1917
|
-
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
1918
|
-
readonly attachments: Schema.optionalKey<Schema.Union<readonly [Schema
|
|
1951
|
+
readonly cc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
1952
|
+
readonly bcc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
1953
|
+
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
1954
|
+
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1955
|
+
readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1956
|
+
readonly html: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1957
|
+
readonly attachments: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
|
|
1919
1958
|
readonly filename: Schema.String;
|
|
1920
1959
|
readonly content: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1921
1960
|
readonly mediaId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MediaId">, Schema.Null]>>;
|
|
1922
1961
|
readonly contentType: Schema.String;
|
|
1923
1962
|
readonly size: Schema.Finite;
|
|
1924
|
-
}>>, Schema.Null]
|
|
1963
|
+
}>>, Schema.Null]>>;
|
|
1925
1964
|
}>;
|
|
1926
1965
|
export type ContactIdentityChannel = {
|
|
1927
1966
|
readonly channel: "email";
|
|
@@ -1943,7 +1982,6 @@ export type CreateEventPayload = {
|
|
|
1943
1982
|
readonly name: string;
|
|
1944
1983
|
readonly properties?: JsonObject | null;
|
|
1945
1984
|
readonly occurredAt?: string | null;
|
|
1946
|
-
readonly idempotencyKey?: string | null;
|
|
1947
1985
|
};
|
|
1948
1986
|
export declare const CreateEventPayload: Schema.Struct<{
|
|
1949
1987
|
readonly contact: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -1962,7 +2000,6 @@ export declare const CreateEventPayload: Schema.Struct<{
|
|
|
1962
2000
|
readonly name: Schema.String;
|
|
1963
2001
|
readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
1964
2002
|
readonly occurredAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1965
|
-
readonly idempotencyKey: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1966
2003
|
}>;
|
|
1967
2004
|
export type EmailRecipients = ReadonlyArray<EmailRecipient>;
|
|
1968
2005
|
export declare const EmailRecipients: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -1970,24 +2007,24 @@ export declare const EmailRecipients: Schema.$Array<Schema.Union<readonly [Schem
|
|
|
1970
2007
|
}>, Schema.Struct<{
|
|
1971
2008
|
readonly email: Schema.String;
|
|
1972
2009
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1973
|
-
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
2010
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1974
2011
|
}>]>>;
|
|
1975
|
-
export type EmailCcRecipients = ReadonlyArray<EmailRecipient> | null
|
|
1976
|
-
export declare const EmailCcRecipients: Schema.Union<readonly [Schema
|
|
2012
|
+
export type EmailCcRecipients = ReadonlyArray<EmailRecipient> | null;
|
|
2013
|
+
export declare const EmailCcRecipients: Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1977
2014
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
1978
2015
|
}>, Schema.Struct<{
|
|
1979
2016
|
readonly email: Schema.String;
|
|
1980
2017
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1981
|
-
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
1982
|
-
}>]>>, Schema.Null]
|
|
1983
|
-
export type EmailBccRecipients = ReadonlyArray<EmailRecipient> | null
|
|
1984
|
-
export declare const EmailBccRecipients: Schema.Union<readonly [Schema
|
|
2018
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2019
|
+
}>]>>, Schema.Null]>;
|
|
2020
|
+
export type EmailBccRecipients = ReadonlyArray<EmailRecipient> | null;
|
|
2021
|
+
export declare const EmailBccRecipients: Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1985
2022
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
1986
2023
|
}>, Schema.Struct<{
|
|
1987
2024
|
readonly email: Schema.String;
|
|
1988
2025
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1989
|
-
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
1990
|
-
}>]>>, Schema.Null]
|
|
2026
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2027
|
+
}>]>>, Schema.Null]>;
|
|
1991
2028
|
export type TopicContactRef = TopicContactById | TopicContactByEmail | TopicContactByPhone;
|
|
1992
2029
|
export declare const TopicContactRef: Schema.Union<readonly [Schema.Struct<{
|
|
1993
2030
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
@@ -2298,7 +2335,7 @@ export type AgentDefinition = {
|
|
|
2298
2335
|
readonly instructions: string;
|
|
2299
2336
|
readonly knowledge: string;
|
|
2300
2337
|
readonly endpointIds: ReadonlyArray<MailboxEndpointId>;
|
|
2301
|
-
readonly
|
|
2338
|
+
readonly integrations: ReadonlyArray<AgentIntegrationGrant>;
|
|
2302
2339
|
readonly mode: AgentMode;
|
|
2303
2340
|
readonly model: AgentModel;
|
|
2304
2341
|
readonly workingHours: WorkingHours | null;
|
|
@@ -2308,7 +2345,18 @@ export declare const AgentDefinition: Schema.Struct<{
|
|
|
2308
2345
|
readonly instructions: Schema.String;
|
|
2309
2346
|
readonly knowledge: Schema.String;
|
|
2310
2347
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
2311
|
-
readonly
|
|
2348
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
2349
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
2350
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
2351
|
+
readonly kind: Schema.Literal<"all">;
|
|
2352
|
+
}>, Schema.Struct<{
|
|
2353
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
2354
|
+
}>, Schema.Struct<{
|
|
2355
|
+
readonly kind: Schema.Literal<"selected">;
|
|
2356
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
2357
|
+
}>]>;
|
|
2358
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
2359
|
+
}>>;
|
|
2312
2360
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
2313
2361
|
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
2314
2362
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -2335,7 +2383,7 @@ export type CampaignEmailInput = {
|
|
|
2335
2383
|
readonly timeZone?: RenderTimeZone;
|
|
2336
2384
|
readonly inReplyToMessageId?: MessageId | null;
|
|
2337
2385
|
readonly replyTo?: ReplyToAddresses;
|
|
2338
|
-
readonly topicId?: TopicId | null
|
|
2386
|
+
readonly topicId?: TopicId | null;
|
|
2339
2387
|
readonly tracking?: EmailTrackingOverrideV1;
|
|
2340
2388
|
readonly footer?: EmailFooterOverride;
|
|
2341
2389
|
readonly headers?: EmailCustomHeaders | null;
|
|
@@ -2360,8 +2408,8 @@ export declare const CampaignEmailInput: Schema.Struct<{
|
|
|
2360
2408
|
readonly locale: Schema.optionalKey<Schema.String>;
|
|
2361
2409
|
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
2362
2410
|
readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
|
|
2363
|
-
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema
|
|
2364
|
-
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
2411
|
+
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
2412
|
+
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
|
|
2365
2413
|
readonly tracking: Schema.optionalKey<Schema.Struct<{
|
|
2366
2414
|
readonly opens: Schema.optionalKey<Schema.Boolean>;
|
|
2367
2415
|
readonly clicks: Schema.optionalKey<Schema.Boolean>;
|
|
@@ -2386,7 +2434,7 @@ export type EmailContent = {
|
|
|
2386
2434
|
readonly timeZone?: RenderTimeZone;
|
|
2387
2435
|
readonly inReplyToMessageId?: MessageId | null;
|
|
2388
2436
|
readonly replyTo?: ReplyToAddresses;
|
|
2389
|
-
readonly topicId?: TopicId | null
|
|
2437
|
+
readonly topicId?: TopicId | null;
|
|
2390
2438
|
readonly tracking?: EmailTrackingOverrideV1;
|
|
2391
2439
|
readonly footer?: EmailFooterOverride;
|
|
2392
2440
|
readonly headers?: EmailCustomHeaders | null;
|
|
@@ -2410,8 +2458,8 @@ export declare const EmailContent: Schema.Struct<{
|
|
|
2410
2458
|
readonly locale: Schema.optionalKey<Schema.String>;
|
|
2411
2459
|
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
2412
2460
|
readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
|
|
2413
|
-
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema
|
|
2414
|
-
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
2461
|
+
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
2462
|
+
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
|
|
2415
2463
|
readonly tracking: Schema.optionalKey<Schema.Struct<{
|
|
2416
2464
|
readonly opens: Schema.optionalKey<Schema.Boolean>;
|
|
2417
2465
|
readonly clicks: Schema.optionalKey<Schema.Boolean>;
|
|
@@ -2465,7 +2513,6 @@ export declare const BatchEventsPayload: Schema.Struct<{
|
|
|
2465
2513
|
readonly name: Schema.String;
|
|
2466
2514
|
readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
2467
2515
|
readonly occurredAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2468
|
-
readonly idempotencyKey: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2469
2516
|
}>]>, readonly [Schema.Struct<{
|
|
2470
2517
|
readonly contact: Schema.Union<readonly [Schema.Struct<{
|
|
2471
2518
|
readonly id: Schema.brand<Schema.String, "ContactId">;
|
|
@@ -2483,7 +2530,6 @@ export declare const BatchEventsPayload: Schema.Struct<{
|
|
|
2483
2530
|
readonly name: Schema.String;
|
|
2484
2531
|
readonly properties: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
2485
2532
|
readonly occurredAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2486
|
-
readonly idempotencyKey: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2487
2533
|
}>]>;
|
|
2488
2534
|
}>;
|
|
2489
2535
|
export type TopicSetSubscriptionsPayload = {
|
|
@@ -2709,7 +2755,18 @@ export declare const CreateAgentPayload: Schema.Struct<{
|
|
|
2709
2755
|
readonly instructions: Schema.String;
|
|
2710
2756
|
readonly knowledge: Schema.String;
|
|
2711
2757
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
2712
|
-
readonly
|
|
2758
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
2759
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
2760
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
2761
|
+
readonly kind: Schema.Literal<"all">;
|
|
2762
|
+
}>, Schema.Struct<{
|
|
2763
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
2764
|
+
}>, Schema.Struct<{
|
|
2765
|
+
readonly kind: Schema.Literal<"selected">;
|
|
2766
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
2767
|
+
}>]>;
|
|
2768
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
2769
|
+
}>>;
|
|
2713
2770
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
2714
2771
|
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
2715
2772
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -2733,7 +2790,18 @@ export declare const ReplaceAgentDraftPayload: Schema.Struct<{
|
|
|
2733
2790
|
readonly instructions: Schema.String;
|
|
2734
2791
|
readonly knowledge: Schema.String;
|
|
2735
2792
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
2736
|
-
readonly
|
|
2793
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
2794
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
2795
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
2796
|
+
readonly kind: Schema.Literal<"all">;
|
|
2797
|
+
}>, Schema.Struct<{
|
|
2798
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
2799
|
+
}>, Schema.Struct<{
|
|
2800
|
+
readonly kind: Schema.Literal<"selected">;
|
|
2801
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
2802
|
+
}>]>;
|
|
2803
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
2804
|
+
}>>;
|
|
2737
2805
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
2738
2806
|
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
2739
2807
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -2780,8 +2848,8 @@ export declare const CampaignContentInput: Schema.Struct<{
|
|
|
2780
2848
|
readonly locale: Schema.optionalKey<Schema.String>;
|
|
2781
2849
|
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
2782
2850
|
readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
|
|
2783
|
-
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema
|
|
2784
|
-
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
2851
|
+
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
2852
|
+
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
|
|
2785
2853
|
readonly tracking: Schema.optionalKey<Schema.Struct<{
|
|
2786
2854
|
readonly opens: Schema.optionalKey<Schema.Boolean>;
|
|
2787
2855
|
readonly clicks: Schema.optionalKey<Schema.Boolean>;
|
|
@@ -2800,12 +2868,12 @@ export declare const CampaignContentInput: Schema.Struct<{
|
|
|
2800
2868
|
readonly email: Schema.String;
|
|
2801
2869
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2802
2870
|
}>, Schema.Null]>>;
|
|
2803
|
-
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
2804
|
-
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
2871
|
+
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
2872
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2805
2873
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
2806
2874
|
}>;
|
|
2807
2875
|
export type EmailSendMessagePayload = {
|
|
2808
|
-
readonly conversationId?: ConversationId | null
|
|
2876
|
+
readonly conversationId?: ConversationId | null;
|
|
2809
2877
|
readonly metadata?: MessageMetadata;
|
|
2810
2878
|
readonly channel: "email";
|
|
2811
2879
|
readonly to: EmailRecipients;
|
|
@@ -2815,7 +2883,7 @@ export type EmailSendMessagePayload = {
|
|
|
2815
2883
|
readonly email: EmailContent;
|
|
2816
2884
|
};
|
|
2817
2885
|
export declare const EmailSendMessagePayload: Schema.Struct<{
|
|
2818
|
-
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
2886
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
2819
2887
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
2820
2888
|
readonly channel: Schema.Literal<"email">;
|
|
2821
2889
|
readonly to: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -2823,22 +2891,22 @@ export declare const EmailSendMessagePayload: Schema.Struct<{
|
|
|
2823
2891
|
}>, Schema.Struct<{
|
|
2824
2892
|
readonly email: Schema.String;
|
|
2825
2893
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2826
|
-
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
2894
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2827
2895
|
}>]>>;
|
|
2828
|
-
readonly cc: Schema.optionalKey<Schema.Union<readonly [Schema
|
|
2896
|
+
readonly cc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2829
2897
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
2830
2898
|
}>, Schema.Struct<{
|
|
2831
2899
|
readonly email: Schema.String;
|
|
2832
2900
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2833
|
-
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
2834
|
-
}>]>>, Schema.Null]
|
|
2835
|
-
readonly bcc: Schema.optionalKey<Schema.Union<readonly [Schema
|
|
2901
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2902
|
+
}>]>>, Schema.Null]>>;
|
|
2903
|
+
readonly bcc: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2836
2904
|
readonly contactId: Schema.brand<Schema.String, "ContactId">;
|
|
2837
2905
|
}>, Schema.Struct<{
|
|
2838
2906
|
readonly email: Schema.String;
|
|
2839
2907
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2840
|
-
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
2841
|
-
}>]>>, Schema.Null]
|
|
2908
|
+
readonly displayName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2909
|
+
}>]>>, Schema.Null]>>;
|
|
2842
2910
|
readonly from: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
2843
2911
|
readonly email: Schema.String;
|
|
2844
2912
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -2862,8 +2930,8 @@ export declare const EmailSendMessagePayload: Schema.Struct<{
|
|
|
2862
2930
|
readonly locale: Schema.optionalKey<Schema.String>;
|
|
2863
2931
|
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
2864
2932
|
readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
|
|
2865
|
-
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema
|
|
2866
|
-
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
2933
|
+
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
2934
|
+
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
|
|
2867
2935
|
readonly tracking: Schema.optionalKey<Schema.Struct<{
|
|
2868
2936
|
readonly opens: Schema.optionalKey<Schema.Boolean>;
|
|
2869
2937
|
readonly clicks: Schema.optionalKey<Schema.Boolean>;
|
|
@@ -2985,8 +3053,8 @@ export declare const CampaignComposition: Schema.Struct<{
|
|
|
2985
3053
|
readonly locale: Schema.optionalKey<Schema.String>;
|
|
2986
3054
|
readonly timeZone: Schema.optionalKey<Schema.String>;
|
|
2987
3055
|
readonly inReplyToMessageId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>>;
|
|
2988
|
-
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema
|
|
2989
|
-
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
3056
|
+
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
3057
|
+
readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
|
|
2990
3058
|
readonly tracking: Schema.optionalKey<Schema.Struct<{
|
|
2991
3059
|
readonly opens: Schema.optionalKey<Schema.Boolean>;
|
|
2992
3060
|
readonly clicks: Schema.optionalKey<Schema.Boolean>;
|
|
@@ -3005,8 +3073,8 @@ export declare const CampaignComposition: Schema.Struct<{
|
|
|
3005
3073
|
readonly email: Schema.String;
|
|
3006
3074
|
readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
3007
3075
|
}>, Schema.Null]>>;
|
|
3008
|
-
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
3009
|
-
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
3076
|
+
readonly replyMailboxId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>>;
|
|
3077
|
+
readonly conversationId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ConversationId">, Schema.Null]>>;
|
|
3010
3078
|
readonly metadata: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>, Schema.Null]>>;
|
|
3011
3079
|
}>;
|
|
3012
3080
|
readonly audience: Schema.Struct<{
|