samva 0.31.0 → 0.33.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/dist/client/sdk.gen.d.ts +77 -10
- package/dist/client/sdk.gen.js +244 -16
- package/dist/client/types.gen.d.ts +607 -34
- package/dist/effect/email.d.ts +3 -0
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/generated/campaigns.d.ts +131 -57
- package/dist/effect/generated/campaigns.js +27 -9
- package/dist/effect/generated/contact-groups.js +2 -2
- package/dist/effect/generated/contacts.js +6 -6
- package/dist/effect/generated/email.d.ts +17 -1
- package/dist/effect/generated/email.js +12 -8
- package/dist/effect/generated/mailboxes.d.ts +969 -16
- package/dist/effect/generated/mailboxes.js +264 -12
- package/dist/effect/generated/newsletter-issues.d.ts +199 -1
- package/dist/effect/generated/newsletter-issues.js +24 -2
- package/dist/effect/generated/newsletters.js +1 -1
- package/dist/effect/generated/organizations.d.ts +345 -2
- package/dist/effect/generated/organizations.js +65 -5
- package/dist/effect/generated/scheduled-messages.d.ts +25 -8
- package/dist/effect/generated/scheduled-messages.js +17 -9
- package/dist/effect/generated/shared.d.ts +90 -9
- package/dist/effect/generated/shared.js +14 -10
- package/dist/effect/generated/subscriptions.js +1 -1
- package/dist/effect/generated/templates.d.ts +307 -1
- package/dist/effect/generated/templates.js +38 -4
- package/dist/effect/generated/topics.js +2 -2
- package/dist/effect/generated/whoami.d.ts +5 -5
- package/dist/effect/generated/whoami.js +1 -0
- package/dist/effect/generated-metadata.d.ts +40 -0
- package/dist/effect/generated-metadata.js +10 -0
- package/dist/effect/index.js +2 -2
- package/dist/effect/internal/send.d.ts +1 -1
- package/dist/effect/mailboxes.d.ts +273 -0
- package/dist/effect/mailboxes.js +7 -1
- package/dist/effect/organizations.d.ts +6 -0
- package/dist/effect/organizations.js +7 -1
- package/dist/index.js +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/client.js +2 -2
- package/dist/promises/errors.gen.d.ts +12 -2
- package/dist/promises/errors.gen.js +28 -1
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +25 -0
- package/dist/service-map.js +9 -0
- package/package.json +8 -8
|
@@ -802,6 +802,13 @@ export type MailboxThreadState = {
|
|
|
802
802
|
read: boolean;
|
|
803
803
|
starred: boolean;
|
|
804
804
|
snoozedUntil: string | null;
|
|
805
|
+
doneAt: string | null;
|
|
806
|
+
closedAt: string | null;
|
|
807
|
+
closedBy: {
|
|
808
|
+
kind: "user" | "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system";
|
|
809
|
+
id: string;
|
|
810
|
+
displayName?: string | null | undefined;
|
|
811
|
+
} | null;
|
|
805
812
|
};
|
|
806
813
|
export type MailboxLabelId = string;
|
|
807
814
|
export type MailboxThreadPriority = "low" | "normal" | "high" | "urgent";
|
|
@@ -812,6 +819,8 @@ export type MailboxThreadLabels = {
|
|
|
812
819
|
export type UpdateMailboxThreadPayload = {
|
|
813
820
|
folder?: MailboxThreadFolder | null | undefined;
|
|
814
821
|
priority?: MailboxThreadPriority | null | undefined;
|
|
822
|
+
done?: boolean | null | undefined;
|
|
823
|
+
closed?: boolean | null | undefined;
|
|
815
824
|
read?: boolean | null | undefined;
|
|
816
825
|
starred?: boolean | null | undefined;
|
|
817
826
|
snoozedUntil?: string | null | undefined;
|
|
@@ -832,6 +841,13 @@ export type MailboxThread = {
|
|
|
832
841
|
read: boolean;
|
|
833
842
|
starred: boolean;
|
|
834
843
|
snoozedUntil: string | null;
|
|
844
|
+
doneAt: string | null;
|
|
845
|
+
closedAt: string | null;
|
|
846
|
+
closedBy: {
|
|
847
|
+
kind: "user" | "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system";
|
|
848
|
+
id: string;
|
|
849
|
+
displayName?: string | null | undefined;
|
|
850
|
+
} | null;
|
|
835
851
|
lastActivityAt: string;
|
|
836
852
|
conversationId: ConversationId;
|
|
837
853
|
participants: Array<MailboxThreadParticipant>;
|
|
@@ -870,8 +886,100 @@ export type MailboxThreadSummary = {
|
|
|
870
886
|
read: boolean;
|
|
871
887
|
starred: boolean;
|
|
872
888
|
snoozedUntil: string | null;
|
|
889
|
+
doneAt: string | null;
|
|
890
|
+
closedAt: string | null;
|
|
891
|
+
closedBy: {
|
|
892
|
+
kind: "user" | "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system";
|
|
893
|
+
id: string;
|
|
894
|
+
displayName?: string | null | undefined;
|
|
895
|
+
} | null;
|
|
873
896
|
lastActivityAt: string;
|
|
874
897
|
};
|
|
898
|
+
export type OrganizationMailboxThreadPage = {
|
|
899
|
+
items: Array<OrganizationMailboxThreadSummary>;
|
|
900
|
+
nextCursor: string | null;
|
|
901
|
+
};
|
|
902
|
+
export type OrganizationMailboxThreadSummary = {
|
|
903
|
+
id: MailboxThreadId;
|
|
904
|
+
channel: MailboxChannel;
|
|
905
|
+
endpointId: MailboxEndpointId | null;
|
|
906
|
+
subject: string | null;
|
|
907
|
+
preview: string | null;
|
|
908
|
+
from: MailboxThreadSender | null;
|
|
909
|
+
messageCount: number;
|
|
910
|
+
hasAttachments: boolean;
|
|
911
|
+
hasDraft: boolean;
|
|
912
|
+
folder: MailboxThreadFolder;
|
|
913
|
+
priority: MailboxThreadPriority;
|
|
914
|
+
labels: Array<MailboxLabelId>;
|
|
915
|
+
read: boolean;
|
|
916
|
+
starred: boolean;
|
|
917
|
+
snoozedUntil: string | null;
|
|
918
|
+
doneAt: string | null;
|
|
919
|
+
closedAt: string | null;
|
|
920
|
+
closedBy: {
|
|
921
|
+
kind: "user" | "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system";
|
|
922
|
+
id: string;
|
|
923
|
+
displayName?: string | null | undefined;
|
|
924
|
+
} | null;
|
|
925
|
+
lastActivityAt: string;
|
|
926
|
+
mailbox: MailboxThreadMailbox;
|
|
927
|
+
};
|
|
928
|
+
export type MailboxThreadMailbox = {
|
|
929
|
+
id: MailboxId;
|
|
930
|
+
address: string | null;
|
|
931
|
+
kind: "personal" | "shared";
|
|
932
|
+
};
|
|
933
|
+
export type OrganizationMailboxDraftPage = {
|
|
934
|
+
items: Array<OrganizationMailboxDraftSummary>;
|
|
935
|
+
nextCursor: string | null;
|
|
936
|
+
};
|
|
937
|
+
export type OrganizationMailboxDraftSummary = {
|
|
938
|
+
id: MailboxDraftId;
|
|
939
|
+
channel: MailboxChannel;
|
|
940
|
+
threadId: MailboxThreadId | null;
|
|
941
|
+
inReplyToMessageId: MessageId | null;
|
|
942
|
+
state: MailboxDraftState;
|
|
943
|
+
lockedByActionId: MailboxActionId | null;
|
|
944
|
+
to: Array<string>;
|
|
945
|
+
subject: string | null;
|
|
946
|
+
createdAt: string;
|
|
947
|
+
updatedAt: string;
|
|
948
|
+
mailbox: MailboxThreadMailbox;
|
|
949
|
+
};
|
|
950
|
+
export type MailboxNeedsYou = {
|
|
951
|
+
items: Array<MailboxNeedsYouItem>;
|
|
952
|
+
nextCursor: string | null;
|
|
953
|
+
/**
|
|
954
|
+
* All items this caller may decide, independent of the current page.
|
|
955
|
+
*/
|
|
956
|
+
counts: {
|
|
957
|
+
heldSends: number;
|
|
958
|
+
quarantinedMessages: number;
|
|
959
|
+
total: number;
|
|
960
|
+
};
|
|
961
|
+
};
|
|
962
|
+
export type MailboxNeedsYouItem = {
|
|
963
|
+
type: "heldSend";
|
|
964
|
+
id: MailboxActionId;
|
|
965
|
+
mailbox: MailboxThreadMailbox;
|
|
966
|
+
threadId: MailboxThreadId | null;
|
|
967
|
+
draftId: MailboxDraftId | null;
|
|
968
|
+
proposedBy: {
|
|
969
|
+
kind: "user" | "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system";
|
|
970
|
+
id: string;
|
|
971
|
+
displayName?: string | null | undefined;
|
|
972
|
+
};
|
|
973
|
+
source: "humanUi" | "externalApi" | "aiSdkTool" | "extension" | "externalAgent" | "samvaManagedAgent" | "system";
|
|
974
|
+
createdAt: string;
|
|
975
|
+
} | {
|
|
976
|
+
type: "quarantinedMessage";
|
|
977
|
+
id: MessageId;
|
|
978
|
+
mailbox: MailboxThreadMailbox;
|
|
979
|
+
reason: "spam" | "dmarc" | "virus" | "virus_unscanned" | "phishing" | "fraud" | "prompt_injection";
|
|
980
|
+
source: "receipt" | "classifier";
|
|
981
|
+
heldAt: string;
|
|
982
|
+
};
|
|
875
983
|
export type MailboxLabel = {
|
|
876
984
|
id: MailboxLabelId;
|
|
877
985
|
slug: string;
|
|
@@ -976,6 +1084,8 @@ export type MailboxAgentActivity = {
|
|
|
976
1084
|
};
|
|
977
1085
|
export type Mailbox = {
|
|
978
1086
|
id: MailboxId;
|
|
1087
|
+
kind: MailboxKind;
|
|
1088
|
+
owner: UserId | null;
|
|
979
1089
|
namespaceId: NamespaceId | null;
|
|
980
1090
|
slug: string;
|
|
981
1091
|
name: string;
|
|
@@ -1003,6 +1113,10 @@ export type MailboxMetadataWritable = {
|
|
|
1003
1113
|
[key: string]: string | undefined;
|
|
1004
1114
|
};
|
|
1005
1115
|
export type MailboxStatus = "active" | "paused";
|
|
1116
|
+
/**
|
|
1117
|
+
* Whether a mailbox belongs to one person or is shared with a team.
|
|
1118
|
+
*/
|
|
1119
|
+
export type MailboxKind = "personal" | "shared";
|
|
1006
1120
|
export type UpdateMailboxEndpointPayload = {
|
|
1007
1121
|
displayName?: string | null | undefined;
|
|
1008
1122
|
default?: true | null | undefined;
|
|
@@ -1032,6 +1146,8 @@ export type MailboxPage = {
|
|
|
1032
1146
|
};
|
|
1033
1147
|
export type MailboxSummary = {
|
|
1034
1148
|
id: MailboxId;
|
|
1149
|
+
kind: MailboxKind;
|
|
1150
|
+
owner: UserId | null;
|
|
1035
1151
|
namespaceId: NamespaceId | null;
|
|
1036
1152
|
slug: string;
|
|
1037
1153
|
name: string;
|
|
@@ -1046,7 +1162,7 @@ export type Whoami = {
|
|
|
1046
1162
|
export type WhoamiUserCredential = {
|
|
1047
1163
|
type: "user";
|
|
1048
1164
|
user: WhoamiUser;
|
|
1049
|
-
role: "member" | "admin" | "owner";
|
|
1165
|
+
role: "mail_user" | "member" | "admin" | "owner";
|
|
1050
1166
|
};
|
|
1051
1167
|
export type WhoamiUser = {
|
|
1052
1168
|
id: string;
|
|
@@ -1439,6 +1555,11 @@ export type CreateBrand = {
|
|
|
1439
1555
|
export type BrandList = {
|
|
1440
1556
|
items: Array<Brand>;
|
|
1441
1557
|
};
|
|
1558
|
+
export type ServiceUnavailableError = {
|
|
1559
|
+
_tag: "ServiceUnavailableError";
|
|
1560
|
+
message: string;
|
|
1561
|
+
retryAfterSeconds: number;
|
|
1562
|
+
};
|
|
1442
1563
|
export type TemplateSourceError = {
|
|
1443
1564
|
_tag: "TemplateSourceError";
|
|
1444
1565
|
message: string;
|
|
@@ -3203,6 +3324,10 @@ export type DomainConnectCompleteResult = {
|
|
|
3203
3324
|
status: "applied" | "cancelled" | "failed" | "invalid";
|
|
3204
3325
|
};
|
|
3205
3326
|
export type EmailDomainDetailed = {
|
|
3327
|
+
/**
|
|
3328
|
+
* The active mailbox on this domain that receives unknown addresses when catch-all has no webhook endpoint, or null to drop them without a bounce.
|
|
3329
|
+
*/
|
|
3330
|
+
unknownRecipientMailboxId: MailboxId | null;
|
|
3206
3331
|
id: EmailDomainId;
|
|
3207
3332
|
domain: string;
|
|
3208
3333
|
phase: "dns-setup" | "provisioning" | "verifying" | "ready" | "degraded" | "failed";
|
|
@@ -3349,6 +3474,10 @@ export type EmailDomainProvisioningExecution = {
|
|
|
3349
3474
|
};
|
|
3350
3475
|
export type EmailDomainPage = {
|
|
3351
3476
|
items: Array<{
|
|
3477
|
+
/**
|
|
3478
|
+
* The active mailbox on this domain that receives unknown addresses when catch-all has no webhook endpoint, or null to drop them without a bounce.
|
|
3479
|
+
*/
|
|
3480
|
+
unknownRecipientMailboxId: MailboxId | null;
|
|
3352
3481
|
id: EmailDomainId;
|
|
3353
3482
|
domain: string;
|
|
3354
3483
|
phase: "dns-setup" | "provisioning" | "verifying" | "ready" | "degraded" | "failed";
|
|
@@ -3629,11 +3758,15 @@ export type CampaignContentInput = {
|
|
|
3629
3758
|
path: string;
|
|
3630
3759
|
commit: string;
|
|
3631
3760
|
} | null | undefined;
|
|
3632
|
-
from?:
|
|
3761
|
+
from?: CampaignFromInput | undefined;
|
|
3633
3762
|
replyMailboxId?: CampaignReplyMailbox | undefined;
|
|
3634
3763
|
conversationId?: CampaignConversationRef | undefined;
|
|
3635
3764
|
metadata?: CampaignContentMetadataWritable | undefined;
|
|
3636
3765
|
};
|
|
3766
|
+
export type CampaignFromInput = {
|
|
3767
|
+
email: string;
|
|
3768
|
+
name?: string | null | undefined;
|
|
3769
|
+
} | null;
|
|
3637
3770
|
export type CampaignEmailInput = {
|
|
3638
3771
|
subject?: string | null | undefined;
|
|
3639
3772
|
html?: string | null | undefined;
|
|
@@ -3696,7 +3829,7 @@ export type ScheduledMessage = {
|
|
|
3696
3829
|
status: "pending" | "dispatching" | "paused" | "dispatched" | "cancelled" | "failed";
|
|
3697
3830
|
scheduledFor: string;
|
|
3698
3831
|
timezone: string;
|
|
3699
|
-
send:
|
|
3832
|
+
send: StoredSendMessagePayload;
|
|
3700
3833
|
messageId: MessageId | null;
|
|
3701
3834
|
idempotencyKey: string | null;
|
|
3702
3835
|
referenceId: string | null;
|
|
@@ -3708,14 +3841,17 @@ export type ScheduledMessage = {
|
|
|
3708
3841
|
createdAt: string;
|
|
3709
3842
|
updatedAt: string;
|
|
3710
3843
|
};
|
|
3711
|
-
export type
|
|
3844
|
+
export type StoredSendMessagePayload = {
|
|
3712
3845
|
conversationId?: ConversationId | null | undefined;
|
|
3713
3846
|
metadata?: MessageMetadata | undefined;
|
|
3714
3847
|
channel: "email";
|
|
3715
|
-
to:
|
|
3716
|
-
cc?:
|
|
3717
|
-
bcc?:
|
|
3718
|
-
from?:
|
|
3848
|
+
to: Array<SavedEmailRecipient>;
|
|
3849
|
+
cc?: Array<SavedEmailRecipient> | null | undefined;
|
|
3850
|
+
bcc?: Array<SavedEmailRecipient> | null | undefined;
|
|
3851
|
+
from?: {
|
|
3852
|
+
email: string;
|
|
3853
|
+
name?: string | null | undefined;
|
|
3854
|
+
} | null | undefined;
|
|
3719
3855
|
email: EmailContent;
|
|
3720
3856
|
};
|
|
3721
3857
|
export type MessageMetadata = {
|
|
@@ -3724,16 +3860,6 @@ export type MessageMetadata = {
|
|
|
3724
3860
|
export type MessageMetadataWritable = {
|
|
3725
3861
|
[key: string]: JsonValueWritable | undefined;
|
|
3726
3862
|
} | null;
|
|
3727
|
-
export type EmailSendMessagePayload = {
|
|
3728
|
-
conversationId?: ConversationId | null | undefined;
|
|
3729
|
-
metadata?: MessageMetadata | undefined;
|
|
3730
|
-
channel: "email";
|
|
3731
|
-
to: EmailRecipients;
|
|
3732
|
-
cc?: EmailCcRecipients | undefined;
|
|
3733
|
-
bcc?: EmailBccRecipients | undefined;
|
|
3734
|
-
from?: EmailSender | undefined;
|
|
3735
|
-
email: EmailContent;
|
|
3736
|
-
};
|
|
3737
3863
|
export type EmailContent = {
|
|
3738
3864
|
subject?: string | null | undefined;
|
|
3739
3865
|
html?: string | null | undefined;
|
|
@@ -3778,20 +3904,13 @@ export type EmailContentWritable = {
|
|
|
3778
3904
|
footer?: EmailFooterOverride | undefined;
|
|
3779
3905
|
headers?: EmailCustomHeadersWritable | null | undefined;
|
|
3780
3906
|
};
|
|
3781
|
-
export type
|
|
3782
|
-
email: string;
|
|
3783
|
-
name?: string | null | undefined;
|
|
3784
|
-
} | null;
|
|
3785
|
-
export type EmailBccRecipients = Array<EmailRecipient> | null;
|
|
3786
|
-
export type EmailRecipient = {
|
|
3907
|
+
export type SavedEmailRecipient = {
|
|
3787
3908
|
contactId: ContactId;
|
|
3788
3909
|
} | {
|
|
3789
3910
|
email: string;
|
|
3790
3911
|
name?: string | null | undefined;
|
|
3791
3912
|
displayName?: string | null | undefined;
|
|
3792
3913
|
};
|
|
3793
|
-
export type EmailCcRecipients = Array<EmailRecipient> | null;
|
|
3794
|
-
export type EmailRecipients = Array<EmailRecipient>;
|
|
3795
3914
|
export type ScheduledMessageId = string;
|
|
3796
3915
|
export type ScheduledMessagePage = {
|
|
3797
3916
|
items: Array<ScheduledMessage>;
|
|
@@ -3829,6 +3948,20 @@ export type EmailDispatchContent = {
|
|
|
3829
3948
|
footer?: EmailFooterOverride | undefined;
|
|
3830
3949
|
headers?: EmailCustomHeadersWritable | null | undefined;
|
|
3831
3950
|
};
|
|
3951
|
+
export type EmailSender = {
|
|
3952
|
+
email: string;
|
|
3953
|
+
name?: string | null | undefined;
|
|
3954
|
+
} | null;
|
|
3955
|
+
export type EmailBccRecipients = Array<EmailRecipient> | null;
|
|
3956
|
+
export type EmailRecipient = {
|
|
3957
|
+
contactId: ContactId;
|
|
3958
|
+
} | {
|
|
3959
|
+
email: string;
|
|
3960
|
+
name?: string | null | undefined;
|
|
3961
|
+
displayName?: string | null | undefined;
|
|
3962
|
+
};
|
|
3963
|
+
export type EmailCcRecipients = Array<EmailRecipient> | null;
|
|
3964
|
+
export type EmailRecipients = Array<EmailRecipient>;
|
|
3832
3965
|
export type OperationPage = {
|
|
3833
3966
|
items: Array<Operation>;
|
|
3834
3967
|
nextCursor: string | null;
|
|
@@ -3861,6 +3994,16 @@ export type ValidateEmailResponse = {
|
|
|
3861
3994
|
hasText: boolean;
|
|
3862
3995
|
};
|
|
3863
3996
|
};
|
|
3997
|
+
export type EmailSendMessagePayload = {
|
|
3998
|
+
conversationId?: ConversationId | null | undefined;
|
|
3999
|
+
metadata?: MessageMetadata | undefined;
|
|
4000
|
+
channel: "email";
|
|
4001
|
+
to: EmailRecipients;
|
|
4002
|
+
cc?: EmailCcRecipients | undefined;
|
|
4003
|
+
bcc?: EmailBccRecipients | undefined;
|
|
4004
|
+
from?: EmailSender | undefined;
|
|
4005
|
+
email: EmailContent;
|
|
4006
|
+
};
|
|
3864
4007
|
export type MessageReceipt = {
|
|
3865
4008
|
id: MessageId;
|
|
3866
4009
|
status: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained";
|
|
@@ -3869,6 +4012,16 @@ export type MessageReceipt = {
|
|
|
3869
4012
|
skippedRecipients: Array<SkippedRecipient>;
|
|
3870
4013
|
createdAt: string;
|
|
3871
4014
|
};
|
|
4015
|
+
export type SendMessagePayload = {
|
|
4016
|
+
conversationId?: ConversationId | null | undefined;
|
|
4017
|
+
metadata?: MessageMetadata | undefined;
|
|
4018
|
+
channel: "email";
|
|
4019
|
+
to: EmailRecipients;
|
|
4020
|
+
cc?: EmailCcRecipients | undefined;
|
|
4021
|
+
bcc?: EmailBccRecipients | undefined;
|
|
4022
|
+
from?: EmailSender | undefined;
|
|
4023
|
+
email: EmailContent;
|
|
4024
|
+
};
|
|
3872
4025
|
export type EmailAddress = {
|
|
3873
4026
|
email: string;
|
|
3874
4027
|
name: string | null;
|
|
@@ -4980,6 +5133,10 @@ export type CampaignsPreviewErrors = {
|
|
|
4980
5133
|
* InternalError
|
|
4981
5134
|
*/
|
|
4982
5135
|
500: InternalError;
|
|
5136
|
+
/**
|
|
5137
|
+
* ServiceUnavailableError
|
|
5138
|
+
*/
|
|
5139
|
+
503: ServiceUnavailableError;
|
|
4983
5140
|
/**
|
|
4984
5141
|
* GatewayTimeoutError
|
|
4985
5142
|
*/
|
|
@@ -5041,9 +5198,9 @@ export type CampaignsSendTestErrors = {
|
|
|
5041
5198
|
*/
|
|
5042
5199
|
502: BillingProviderError | ExternalServiceError;
|
|
5043
5200
|
/**
|
|
5044
|
-
* SenderNotReadyError | DeliveryUnavailableError
|
|
5201
|
+
* ServiceUnavailableError | SenderNotReadyError | DeliveryUnavailableError
|
|
5045
5202
|
*/
|
|
5046
|
-
503: SenderNotReadyError | DeliveryUnavailableError;
|
|
5203
|
+
503: ServiceUnavailableError | SenderNotReadyError | DeliveryUnavailableError;
|
|
5047
5204
|
/**
|
|
5048
5205
|
* GatewayTimeoutError
|
|
5049
5206
|
*/
|
|
@@ -5114,6 +5271,10 @@ export type CampaignsCreateErrors = {
|
|
|
5114
5271
|
* UnauthorizedError
|
|
5115
5272
|
*/
|
|
5116
5273
|
401: UnauthorizedError;
|
|
5274
|
+
/**
|
|
5275
|
+
* PaymentRequiredError
|
|
5276
|
+
*/
|
|
5277
|
+
402: PaymentRequiredError;
|
|
5117
5278
|
/**
|
|
5118
5279
|
* FlagDisabledError | ForbiddenError
|
|
5119
5280
|
*/
|
|
@@ -5126,6 +5287,10 @@ export type CampaignsCreateErrors = {
|
|
|
5126
5287
|
* InternalError
|
|
5127
5288
|
*/
|
|
5128
5289
|
500: InternalError;
|
|
5290
|
+
/**
|
|
5291
|
+
* BillingProviderError
|
|
5292
|
+
*/
|
|
5293
|
+
502: BillingProviderError;
|
|
5129
5294
|
/**
|
|
5130
5295
|
* GatewayTimeoutError
|
|
5131
5296
|
*/
|
|
@@ -5342,6 +5507,10 @@ export type CampaignsScheduleRunErrors = {
|
|
|
5342
5507
|
* UnauthorizedError
|
|
5343
5508
|
*/
|
|
5344
5509
|
401: UnauthorizedError;
|
|
5510
|
+
/**
|
|
5511
|
+
* PaymentRequiredError
|
|
5512
|
+
*/
|
|
5513
|
+
402: PaymentRequiredError;
|
|
5345
5514
|
/**
|
|
5346
5515
|
* FlagDisabledError | ForbiddenError
|
|
5347
5516
|
*/
|
|
@@ -5363,13 +5532,13 @@ export type CampaignsScheduleRunErrors = {
|
|
|
5363
5532
|
*/
|
|
5364
5533
|
500: InternalError;
|
|
5365
5534
|
/**
|
|
5366
|
-
* ExternalServiceError
|
|
5535
|
+
* ExternalServiceError | BillingProviderError
|
|
5367
5536
|
*/
|
|
5368
|
-
502: ExternalServiceError;
|
|
5537
|
+
502: ExternalServiceError | BillingProviderError;
|
|
5369
5538
|
/**
|
|
5370
|
-
* SenderNotReadyError
|
|
5539
|
+
* SenderNotReadyError | ServiceUnavailableError
|
|
5371
5540
|
*/
|
|
5372
|
-
503: SenderNotReadyError;
|
|
5541
|
+
503: SenderNotReadyError | ServiceUnavailableError;
|
|
5373
5542
|
/**
|
|
5374
5543
|
* GatewayTimeoutError
|
|
5375
5544
|
*/
|
|
@@ -5534,6 +5703,10 @@ export type CampaignsResumeRunErrors = {
|
|
|
5534
5703
|
* UnauthorizedError
|
|
5535
5704
|
*/
|
|
5536
5705
|
401: UnauthorizedError;
|
|
5706
|
+
/**
|
|
5707
|
+
* PaymentRequiredError
|
|
5708
|
+
*/
|
|
5709
|
+
402: PaymentRequiredError;
|
|
5537
5710
|
/**
|
|
5538
5711
|
* ForbiddenError
|
|
5539
5712
|
*/
|
|
@@ -5555,9 +5728,9 @@ export type CampaignsResumeRunErrors = {
|
|
|
5555
5728
|
*/
|
|
5556
5729
|
500: InternalError;
|
|
5557
5730
|
/**
|
|
5558
|
-
* ExternalServiceError
|
|
5731
|
+
* ExternalServiceError | BillingProviderError
|
|
5559
5732
|
*/
|
|
5560
|
-
502: ExternalServiceError;
|
|
5733
|
+
502: ExternalServiceError | BillingProviderError;
|
|
5561
5734
|
/**
|
|
5562
5735
|
* GatewayTimeoutError
|
|
5563
5736
|
*/
|
|
@@ -7502,6 +7675,10 @@ export type EmailGetCatchAllConfigResponses = {
|
|
|
7502
7675
|
* Success
|
|
7503
7676
|
*/
|
|
7504
7677
|
200: {
|
|
7678
|
+
/**
|
|
7679
|
+
* The active mailbox on this domain that receives unknown addresses when catch-all has no webhook endpoint, or null to drop them without a bounce.
|
|
7680
|
+
*/
|
|
7681
|
+
unknownRecipientMailboxId: MailboxId | null;
|
|
7505
7682
|
enabled: boolean;
|
|
7506
7683
|
endpointId: WebhookEndpointId | null;
|
|
7507
7684
|
emailCount: number;
|
|
@@ -7513,6 +7690,10 @@ export type EmailUpdateCatchAllConfigData = {
|
|
|
7513
7690
|
body: {
|
|
7514
7691
|
domainId: EmailDomainId;
|
|
7515
7692
|
endpointId?: WebhookEndpointId | null | undefined;
|
|
7693
|
+
/**
|
|
7694
|
+
* An active mailbox in this organization with an email address on this domain. Receives unknown addresses only when catch-all has no webhook endpoint. Null drops unknown addresses without a bounce; omission leaves the setting unchanged.
|
|
7695
|
+
*/
|
|
7696
|
+
unknownRecipientMailboxId?: MailboxId | null | undefined;
|
|
7516
7697
|
};
|
|
7517
7698
|
path?: never;
|
|
7518
7699
|
query?: never;
|
|
@@ -13796,6 +13977,10 @@ export type NewsletterIssuesListErrors = {
|
|
|
13796
13977
|
* InternalError
|
|
13797
13978
|
*/
|
|
13798
13979
|
500: InternalError;
|
|
13980
|
+
/**
|
|
13981
|
+
* ServiceUnavailableError
|
|
13982
|
+
*/
|
|
13983
|
+
503: ServiceUnavailableError;
|
|
13799
13984
|
/**
|
|
13800
13985
|
* GatewayTimeoutError
|
|
13801
13986
|
*/
|
|
@@ -13849,6 +14034,10 @@ export type NewsletterIssuesUpdateErrors = {
|
|
|
13849
14034
|
* InternalError
|
|
13850
14035
|
*/
|
|
13851
14036
|
500: InternalError;
|
|
14037
|
+
/**
|
|
14038
|
+
* ServiceUnavailableError
|
|
14039
|
+
*/
|
|
14040
|
+
503: ServiceUnavailableError;
|
|
13852
14041
|
/**
|
|
13853
14042
|
* GatewayTimeoutError
|
|
13854
14043
|
*/
|
|
@@ -13982,6 +14171,10 @@ export type NewsletterIssuesCreateErrors = {
|
|
|
13982
14171
|
* InternalError
|
|
13983
14172
|
*/
|
|
13984
14173
|
500: InternalError;
|
|
14174
|
+
/**
|
|
14175
|
+
* ServiceUnavailableError
|
|
14176
|
+
*/
|
|
14177
|
+
503: ServiceUnavailableError;
|
|
13985
14178
|
/**
|
|
13986
14179
|
* GatewayTimeoutError
|
|
13987
14180
|
*/
|
|
@@ -14108,6 +14301,10 @@ export type NewsletterIssuesOpenErrors = {
|
|
|
14108
14301
|
* InternalError
|
|
14109
14302
|
*/
|
|
14110
14303
|
500: InternalError;
|
|
14304
|
+
/**
|
|
14305
|
+
* ServiceUnavailableError
|
|
14306
|
+
*/
|
|
14307
|
+
503: ServiceUnavailableError;
|
|
14111
14308
|
/**
|
|
14112
14309
|
* GatewayTimeoutError
|
|
14113
14310
|
*/
|
|
@@ -14237,6 +14434,10 @@ export type NewsletterIssuesGetErrors = {
|
|
|
14237
14434
|
* InternalError
|
|
14238
14435
|
*/
|
|
14239
14436
|
500: InternalError;
|
|
14437
|
+
/**
|
|
14438
|
+
* ServiceUnavailableError
|
|
14439
|
+
*/
|
|
14440
|
+
503: ServiceUnavailableError;
|
|
14240
14441
|
/**
|
|
14241
14442
|
* GatewayTimeoutError
|
|
14242
14443
|
*/
|
|
@@ -14289,6 +14490,10 @@ export type NewsletterIssuesRemoveErrors = {
|
|
|
14289
14490
|
* InternalError
|
|
14290
14491
|
*/
|
|
14291
14492
|
500: InternalError;
|
|
14493
|
+
/**
|
|
14494
|
+
* ServiceUnavailableError
|
|
14495
|
+
*/
|
|
14496
|
+
503: ServiceUnavailableError;
|
|
14292
14497
|
/**
|
|
14293
14498
|
* GatewayTimeoutError
|
|
14294
14499
|
*/
|
|
@@ -14422,6 +14627,10 @@ export type NewsletterIssuesSaveErrors = {
|
|
|
14422
14627
|
* InternalError
|
|
14423
14628
|
*/
|
|
14424
14629
|
500: InternalError;
|
|
14630
|
+
/**
|
|
14631
|
+
* ServiceUnavailableError
|
|
14632
|
+
*/
|
|
14633
|
+
503: ServiceUnavailableError;
|
|
14425
14634
|
/**
|
|
14426
14635
|
* GatewayTimeoutError
|
|
14427
14636
|
*/
|
|
@@ -14528,6 +14737,10 @@ export type NewsletterIssuesCheckErrors = {
|
|
|
14528
14737
|
* InternalError
|
|
14529
14738
|
*/
|
|
14530
14739
|
500: InternalError;
|
|
14740
|
+
/**
|
|
14741
|
+
* ServiceUnavailableError
|
|
14742
|
+
*/
|
|
14743
|
+
503: ServiceUnavailableError;
|
|
14531
14744
|
/**
|
|
14532
14745
|
* GatewayTimeoutError
|
|
14533
14746
|
*/
|
|
@@ -14662,6 +14875,10 @@ export type NewsletterIssuesRenderErrors = {
|
|
|
14662
14875
|
* InternalError
|
|
14663
14876
|
*/
|
|
14664
14877
|
500: InternalError;
|
|
14878
|
+
/**
|
|
14879
|
+
* ServiceUnavailableError
|
|
14880
|
+
*/
|
|
14881
|
+
503: ServiceUnavailableError;
|
|
14665
14882
|
/**
|
|
14666
14883
|
* GatewayTimeoutError
|
|
14667
14884
|
*/
|
|
@@ -14831,6 +15048,10 @@ export type NewsletterIssuesHeadErrors = {
|
|
|
14831
15048
|
* InternalError
|
|
14832
15049
|
*/
|
|
14833
15050
|
500: InternalError;
|
|
15051
|
+
/**
|
|
15052
|
+
* ServiceUnavailableError
|
|
15053
|
+
*/
|
|
15054
|
+
503: ServiceUnavailableError;
|
|
14834
15055
|
/**
|
|
14835
15056
|
* GatewayTimeoutError
|
|
14836
15057
|
*/
|
|
@@ -14883,6 +15104,10 @@ export type NewsletterIssuesHistoryErrors = {
|
|
|
14883
15104
|
* InternalError
|
|
14884
15105
|
*/
|
|
14885
15106
|
500: InternalError;
|
|
15107
|
+
/**
|
|
15108
|
+
* ServiceUnavailableError
|
|
15109
|
+
*/
|
|
15110
|
+
503: ServiceUnavailableError;
|
|
14886
15111
|
/**
|
|
14887
15112
|
* GatewayTimeoutError
|
|
14888
15113
|
*/
|
|
@@ -15566,6 +15791,10 @@ export type TemplatesCreateErrors = {
|
|
|
15566
15791
|
* InternalError
|
|
15567
15792
|
*/
|
|
15568
15793
|
500: InternalError;
|
|
15794
|
+
/**
|
|
15795
|
+
* ServiceUnavailableError
|
|
15796
|
+
*/
|
|
15797
|
+
503: ServiceUnavailableError;
|
|
15569
15798
|
/**
|
|
15570
15799
|
* GatewayTimeoutError
|
|
15571
15800
|
*/
|
|
@@ -16119,6 +16348,10 @@ export type TemplatesCreateFromWebsiteErrors = {
|
|
|
16119
16348
|
* InternalError
|
|
16120
16349
|
*/
|
|
16121
16350
|
500: InternalError;
|
|
16351
|
+
/**
|
|
16352
|
+
* ServiceUnavailableError
|
|
16353
|
+
*/
|
|
16354
|
+
503: ServiceUnavailableError;
|
|
16122
16355
|
/**
|
|
16123
16356
|
* GatewayTimeoutError
|
|
16124
16357
|
*/
|
|
@@ -16226,6 +16459,10 @@ export type TemplatesPatchWorkspaceErrors = {
|
|
|
16226
16459
|
* InternalError
|
|
16227
16460
|
*/
|
|
16228
16461
|
500: InternalError;
|
|
16462
|
+
/**
|
|
16463
|
+
* ServiceUnavailableError
|
|
16464
|
+
*/
|
|
16465
|
+
503: ServiceUnavailableError;
|
|
16229
16466
|
/**
|
|
16230
16467
|
* GatewayTimeoutError
|
|
16231
16468
|
*/
|
|
@@ -16352,6 +16589,10 @@ export type TemplatesOpenWorkspaceErrors = {
|
|
|
16352
16589
|
* InternalError
|
|
16353
16590
|
*/
|
|
16354
16591
|
500: InternalError;
|
|
16592
|
+
/**
|
|
16593
|
+
* ServiceUnavailableError
|
|
16594
|
+
*/
|
|
16595
|
+
503: ServiceUnavailableError;
|
|
16355
16596
|
/**
|
|
16356
16597
|
* GatewayTimeoutError
|
|
16357
16598
|
*/
|
|
@@ -16480,6 +16721,10 @@ export type TemplatesDiffWorkspaceErrors = {
|
|
|
16480
16721
|
* InternalError
|
|
16481
16722
|
*/
|
|
16482
16723
|
500: InternalError;
|
|
16724
|
+
/**
|
|
16725
|
+
* ServiceUnavailableError
|
|
16726
|
+
*/
|
|
16727
|
+
503: ServiceUnavailableError;
|
|
16483
16728
|
/**
|
|
16484
16729
|
* GatewayTimeoutError
|
|
16485
16730
|
*/
|
|
@@ -16549,6 +16794,10 @@ export type TemplatesPutWorkspaceAssetErrors = {
|
|
|
16549
16794
|
* InternalError
|
|
16550
16795
|
*/
|
|
16551
16796
|
500: InternalError;
|
|
16797
|
+
/**
|
|
16798
|
+
* ServiceUnavailableError
|
|
16799
|
+
*/
|
|
16800
|
+
503: ServiceUnavailableError;
|
|
16552
16801
|
/**
|
|
16553
16802
|
* GatewayTimeoutError
|
|
16554
16803
|
*/
|
|
@@ -16684,6 +16933,10 @@ export type TemplatesResolveWorkspaceConflictErrors = {
|
|
|
16684
16933
|
* InternalError
|
|
16685
16934
|
*/
|
|
16686
16935
|
500: InternalError;
|
|
16936
|
+
/**
|
|
16937
|
+
* ServiceUnavailableError
|
|
16938
|
+
*/
|
|
16939
|
+
503: ServiceUnavailableError;
|
|
16687
16940
|
/**
|
|
16688
16941
|
* GatewayTimeoutError
|
|
16689
16942
|
*/
|
|
@@ -16817,6 +17070,10 @@ export type TemplatesSaveWorkspaceErrors = {
|
|
|
16817
17070
|
* InternalError
|
|
16818
17071
|
*/
|
|
16819
17072
|
500: InternalError;
|
|
17073
|
+
/**
|
|
17074
|
+
* ServiceUnavailableError
|
|
17075
|
+
*/
|
|
17076
|
+
503: ServiceUnavailableError;
|
|
16820
17077
|
/**
|
|
16821
17078
|
* GatewayTimeoutError
|
|
16822
17079
|
*/
|
|
@@ -16923,6 +17180,10 @@ export type TemplatesRestoreWorkspaceErrors = {
|
|
|
16923
17180
|
* InternalError
|
|
16924
17181
|
*/
|
|
16925
17182
|
500: InternalError;
|
|
17183
|
+
/**
|
|
17184
|
+
* ServiceUnavailableError
|
|
17185
|
+
*/
|
|
17186
|
+
503: ServiceUnavailableError;
|
|
16926
17187
|
/**
|
|
16927
17188
|
* GatewayTimeoutError
|
|
16928
17189
|
*/
|
|
@@ -17057,6 +17318,10 @@ export type TemplatesWorkspaceHistoryErrors = {
|
|
|
17057
17318
|
* InternalError
|
|
17058
17319
|
*/
|
|
17059
17320
|
500: InternalError;
|
|
17321
|
+
/**
|
|
17322
|
+
* ServiceUnavailableError
|
|
17323
|
+
*/
|
|
17324
|
+
503: ServiceUnavailableError;
|
|
17060
17325
|
/**
|
|
17061
17326
|
* GatewayTimeoutError
|
|
17062
17327
|
*/
|
|
@@ -17119,6 +17384,10 @@ export type TemplatesCheckWorkspaceErrors = {
|
|
|
17119
17384
|
* InternalError
|
|
17120
17385
|
*/
|
|
17121
17386
|
500: InternalError;
|
|
17387
|
+
/**
|
|
17388
|
+
* ServiceUnavailableError
|
|
17389
|
+
*/
|
|
17390
|
+
503: ServiceUnavailableError;
|
|
17122
17391
|
/**
|
|
17123
17392
|
* GatewayTimeoutError
|
|
17124
17393
|
*/
|
|
@@ -17248,6 +17517,10 @@ export type TemplatesRenderWorkspaceFixtureErrors = {
|
|
|
17248
17517
|
* InternalError
|
|
17249
17518
|
*/
|
|
17250
17519
|
500: InternalError;
|
|
17520
|
+
/**
|
|
17521
|
+
* ServiceUnavailableError
|
|
17522
|
+
*/
|
|
17523
|
+
503: ServiceUnavailableError;
|
|
17251
17524
|
/**
|
|
17252
17525
|
* GatewayTimeoutError
|
|
17253
17526
|
*/
|
|
@@ -17423,6 +17696,10 @@ export type TemplatesPublishErrors = {
|
|
|
17423
17696
|
* InternalError
|
|
17424
17697
|
*/
|
|
17425
17698
|
500: InternalError;
|
|
17699
|
+
/**
|
|
17700
|
+
* ServiceUnavailableError
|
|
17701
|
+
*/
|
|
17702
|
+
503: ServiceUnavailableError;
|
|
17426
17703
|
/**
|
|
17427
17704
|
* GatewayTimeoutError
|
|
17428
17705
|
*/
|
|
@@ -17888,6 +18165,10 @@ export type TemplatesGetGitRepositoryErrors = {
|
|
|
17888
18165
|
* InternalError
|
|
17889
18166
|
*/
|
|
17890
18167
|
500: InternalError;
|
|
18168
|
+
/**
|
|
18169
|
+
* ServiceUnavailableError
|
|
18170
|
+
*/
|
|
18171
|
+
503: ServiceUnavailableError;
|
|
17891
18172
|
/**
|
|
17892
18173
|
* GatewayTimeoutError
|
|
17893
18174
|
*/
|
|
@@ -17939,6 +18220,10 @@ export type TemplatesIssueGitCredentialErrors = {
|
|
|
17939
18220
|
* InternalError
|
|
17940
18221
|
*/
|
|
17941
18222
|
500: InternalError;
|
|
18223
|
+
/**
|
|
18224
|
+
* ServiceUnavailableError
|
|
18225
|
+
*/
|
|
18226
|
+
503: ServiceUnavailableError;
|
|
17942
18227
|
/**
|
|
17943
18228
|
* GatewayTimeoutError
|
|
17944
18229
|
*/
|
|
@@ -18004,6 +18289,10 @@ export type TemplatesAttachWorkspaceResourceErrors = {
|
|
|
18004
18289
|
* InternalError
|
|
18005
18290
|
*/
|
|
18006
18291
|
500: InternalError;
|
|
18292
|
+
/**
|
|
18293
|
+
* ServiceUnavailableError
|
|
18294
|
+
*/
|
|
18295
|
+
503: ServiceUnavailableError;
|
|
18007
18296
|
/**
|
|
18008
18297
|
* GatewayTimeoutError
|
|
18009
18298
|
*/
|
|
@@ -18131,6 +18420,10 @@ export type TemplatesRemoveWorkspaceResourceErrors = {
|
|
|
18131
18420
|
* InternalError
|
|
18132
18421
|
*/
|
|
18133
18422
|
500: InternalError;
|
|
18423
|
+
/**
|
|
18424
|
+
* ServiceUnavailableError
|
|
18425
|
+
*/
|
|
18426
|
+
503: ServiceUnavailableError;
|
|
18134
18427
|
/**
|
|
18135
18428
|
* GatewayTimeoutError
|
|
18136
18429
|
*/
|
|
@@ -19201,6 +19494,143 @@ export type OrganizationsGetProfileResponses = {
|
|
|
19201
19494
|
};
|
|
19202
19495
|
};
|
|
19203
19496
|
export type OrganizationsGetProfileResponse = OrganizationsGetProfileResponses[keyof OrganizationsGetProfileResponses];
|
|
19497
|
+
export type OrganizationsAssignPersonalMailboxData = {
|
|
19498
|
+
body: {
|
|
19499
|
+
mailboxAddress: string;
|
|
19500
|
+
};
|
|
19501
|
+
path: {
|
|
19502
|
+
userId: UserId;
|
|
19503
|
+
};
|
|
19504
|
+
query?: never;
|
|
19505
|
+
url: "/v1/organizations/members/{userId}/personal-mailbox";
|
|
19506
|
+
};
|
|
19507
|
+
export type OrganizationsAssignPersonalMailboxErrors = {
|
|
19508
|
+
/**
|
|
19509
|
+
* UnauthorizedError
|
|
19510
|
+
*/
|
|
19511
|
+
401: UnauthorizedError;
|
|
19512
|
+
/**
|
|
19513
|
+
* PaymentRequiredError
|
|
19514
|
+
*/
|
|
19515
|
+
402: PaymentRequiredError;
|
|
19516
|
+
/**
|
|
19517
|
+
* ForbiddenError
|
|
19518
|
+
*/
|
|
19519
|
+
403: ForbiddenError;
|
|
19520
|
+
/**
|
|
19521
|
+
* ResourceNotFoundError
|
|
19522
|
+
*/
|
|
19523
|
+
404: ResourceNotFoundError;
|
|
19524
|
+
/**
|
|
19525
|
+
* ConflictError
|
|
19526
|
+
*/
|
|
19527
|
+
409: ConflictError;
|
|
19528
|
+
/**
|
|
19529
|
+
* ValidationError
|
|
19530
|
+
*/
|
|
19531
|
+
422: ValidationError;
|
|
19532
|
+
/**
|
|
19533
|
+
* InternalError
|
|
19534
|
+
*/
|
|
19535
|
+
500: InternalError;
|
|
19536
|
+
/**
|
|
19537
|
+
* BillingProviderError
|
|
19538
|
+
*/
|
|
19539
|
+
502: BillingProviderError;
|
|
19540
|
+
/**
|
|
19541
|
+
* GatewayTimeoutError
|
|
19542
|
+
*/
|
|
19543
|
+
504: GatewayTimeoutError;
|
|
19544
|
+
};
|
|
19545
|
+
export type OrganizationsAssignPersonalMailboxError = OrganizationsAssignPersonalMailboxErrors[keyof OrganizationsAssignPersonalMailboxErrors];
|
|
19546
|
+
export type OrganizationsAssignPersonalMailboxResponses = {
|
|
19547
|
+
/**
|
|
19548
|
+
* Success
|
|
19549
|
+
*/
|
|
19550
|
+
200: {
|
|
19551
|
+
mailboxId: MailboxId;
|
|
19552
|
+
};
|
|
19553
|
+
};
|
|
19554
|
+
export type OrganizationsAssignPersonalMailboxResponse = OrganizationsAssignPersonalMailboxResponses[keyof OrganizationsAssignPersonalMailboxResponses];
|
|
19555
|
+
export type OrganizationsListPersonalMailboxAssignmentsData = {
|
|
19556
|
+
body?: never;
|
|
19557
|
+
path?: never;
|
|
19558
|
+
query?: never;
|
|
19559
|
+
url: "/v1/organizations/personal-mailboxes/assignments";
|
|
19560
|
+
};
|
|
19561
|
+
export type OrganizationsListPersonalMailboxAssignmentsErrors = {
|
|
19562
|
+
/**
|
|
19563
|
+
* UnauthorizedError
|
|
19564
|
+
*/
|
|
19565
|
+
401: UnauthorizedError;
|
|
19566
|
+
/**
|
|
19567
|
+
* ForbiddenError
|
|
19568
|
+
*/
|
|
19569
|
+
403: ForbiddenError;
|
|
19570
|
+
/**
|
|
19571
|
+
* ValidationError
|
|
19572
|
+
*/
|
|
19573
|
+
422: ValidationError;
|
|
19574
|
+
/**
|
|
19575
|
+
* InternalError
|
|
19576
|
+
*/
|
|
19577
|
+
500: InternalError;
|
|
19578
|
+
/**
|
|
19579
|
+
* GatewayTimeoutError
|
|
19580
|
+
*/
|
|
19581
|
+
504: GatewayTimeoutError;
|
|
19582
|
+
};
|
|
19583
|
+
export type OrganizationsListPersonalMailboxAssignmentsError = OrganizationsListPersonalMailboxAssignmentsErrors[keyof OrganizationsListPersonalMailboxAssignmentsErrors];
|
|
19584
|
+
export type OrganizationsListPersonalMailboxAssignmentsResponses = {
|
|
19585
|
+
/**
|
|
19586
|
+
* Success
|
|
19587
|
+
*/
|
|
19588
|
+
200: {
|
|
19589
|
+
items: Array<{
|
|
19590
|
+
userId: UserId;
|
|
19591
|
+
}>;
|
|
19592
|
+
};
|
|
19593
|
+
};
|
|
19594
|
+
export type OrganizationsListPersonalMailboxAssignmentsResponse = OrganizationsListPersonalMailboxAssignmentsResponses[keyof OrganizationsListPersonalMailboxAssignmentsResponses];
|
|
19595
|
+
export type OrganizationsGetPersonalMailboxAddressOptionsData = {
|
|
19596
|
+
body?: never;
|
|
19597
|
+
path?: never;
|
|
19598
|
+
query?: never;
|
|
19599
|
+
url: "/v1/organizations/personal-mailboxes/address-options";
|
|
19600
|
+
};
|
|
19601
|
+
export type OrganizationsGetPersonalMailboxAddressOptionsErrors = {
|
|
19602
|
+
/**
|
|
19603
|
+
* UnauthorizedError
|
|
19604
|
+
*/
|
|
19605
|
+
401: UnauthorizedError;
|
|
19606
|
+
/**
|
|
19607
|
+
* ForbiddenError
|
|
19608
|
+
*/
|
|
19609
|
+
403: ForbiddenError;
|
|
19610
|
+
/**
|
|
19611
|
+
* ValidationError
|
|
19612
|
+
*/
|
|
19613
|
+
422: ValidationError;
|
|
19614
|
+
/**
|
|
19615
|
+
* InternalError
|
|
19616
|
+
*/
|
|
19617
|
+
500: InternalError;
|
|
19618
|
+
/**
|
|
19619
|
+
* GatewayTimeoutError
|
|
19620
|
+
*/
|
|
19621
|
+
504: GatewayTimeoutError;
|
|
19622
|
+
};
|
|
19623
|
+
export type OrganizationsGetPersonalMailboxAddressOptionsError = OrganizationsGetPersonalMailboxAddressOptionsErrors[keyof OrganizationsGetPersonalMailboxAddressOptionsErrors];
|
|
19624
|
+
export type OrganizationsGetPersonalMailboxAddressOptionsResponses = {
|
|
19625
|
+
/**
|
|
19626
|
+
* Success
|
|
19627
|
+
*/
|
|
19628
|
+
200: {
|
|
19629
|
+
domains: Array<string>;
|
|
19630
|
+
defaultDomain: string;
|
|
19631
|
+
};
|
|
19632
|
+
};
|
|
19633
|
+
export type OrganizationsGetPersonalMailboxAddressOptionsResponse = OrganizationsGetPersonalMailboxAddressOptionsResponses[keyof OrganizationsGetPersonalMailboxAddressOptionsResponses];
|
|
19204
19634
|
export type OrganizationsGetTrustTierData = {
|
|
19205
19635
|
body?: never;
|
|
19206
19636
|
path?: never;
|
|
@@ -21028,6 +21458,146 @@ export type MailboxesUpdateLabelResponses = {
|
|
|
21028
21458
|
200: MailboxLabel;
|
|
21029
21459
|
};
|
|
21030
21460
|
export type MailboxesUpdateLabelResponse = MailboxesUpdateLabelResponses[keyof MailboxesUpdateLabelResponses];
|
|
21461
|
+
export type MailboxesGetNeedsYouData = {
|
|
21462
|
+
body?: never;
|
|
21463
|
+
path?: never;
|
|
21464
|
+
query?: {
|
|
21465
|
+
limit?: number | null | undefined;
|
|
21466
|
+
cursor?: Cursor | null | undefined;
|
|
21467
|
+
};
|
|
21468
|
+
url: "/v1/mailboxes/needs-you";
|
|
21469
|
+
};
|
|
21470
|
+
export type MailboxesGetNeedsYouErrors = {
|
|
21471
|
+
/**
|
|
21472
|
+
* UnauthorizedError
|
|
21473
|
+
*/
|
|
21474
|
+
401: UnauthorizedError;
|
|
21475
|
+
/**
|
|
21476
|
+
* ForbiddenError
|
|
21477
|
+
*/
|
|
21478
|
+
403: ForbiddenError;
|
|
21479
|
+
/**
|
|
21480
|
+
* ValidationError
|
|
21481
|
+
*/
|
|
21482
|
+
422: ValidationError;
|
|
21483
|
+
/**
|
|
21484
|
+
* InternalError
|
|
21485
|
+
*/
|
|
21486
|
+
500: InternalError;
|
|
21487
|
+
/**
|
|
21488
|
+
* GatewayTimeoutError
|
|
21489
|
+
*/
|
|
21490
|
+
504: GatewayTimeoutError;
|
|
21491
|
+
};
|
|
21492
|
+
export type MailboxesGetNeedsYouError = MailboxesGetNeedsYouErrors[keyof MailboxesGetNeedsYouErrors];
|
|
21493
|
+
export type MailboxesGetNeedsYouResponses = {
|
|
21494
|
+
/**
|
|
21495
|
+
* MailboxNeedsYou
|
|
21496
|
+
*/
|
|
21497
|
+
200: MailboxNeedsYou;
|
|
21498
|
+
};
|
|
21499
|
+
export type MailboxesGetNeedsYouResponse = MailboxesGetNeedsYouResponses[keyof MailboxesGetNeedsYouResponses];
|
|
21500
|
+
export type MailboxesListOrganizationDraftsData = {
|
|
21501
|
+
body?: never;
|
|
21502
|
+
path?: never;
|
|
21503
|
+
query?: {
|
|
21504
|
+
limit?: number | null | undefined;
|
|
21505
|
+
cursor?: Cursor | null | undefined;
|
|
21506
|
+
mailboxId?: MailboxId | Array<MailboxId> | null | undefined;
|
|
21507
|
+
kind?: "personal" | "shared" | null | undefined;
|
|
21508
|
+
threadId?: MailboxThreadId | null | undefined;
|
|
21509
|
+
};
|
|
21510
|
+
url: "/v1/mailboxes/drafts";
|
|
21511
|
+
};
|
|
21512
|
+
export type MailboxesListOrganizationDraftsErrors = {
|
|
21513
|
+
/**
|
|
21514
|
+
* UnauthorizedError
|
|
21515
|
+
*/
|
|
21516
|
+
401: UnauthorizedError;
|
|
21517
|
+
/**
|
|
21518
|
+
* ForbiddenError
|
|
21519
|
+
*/
|
|
21520
|
+
403: ForbiddenError;
|
|
21521
|
+
/**
|
|
21522
|
+
* ResourceNotFoundError
|
|
21523
|
+
*/
|
|
21524
|
+
404: ResourceNotFoundError;
|
|
21525
|
+
/**
|
|
21526
|
+
* ValidationError
|
|
21527
|
+
*/
|
|
21528
|
+
422: ValidationError;
|
|
21529
|
+
/**
|
|
21530
|
+
* InternalError
|
|
21531
|
+
*/
|
|
21532
|
+
500: InternalError;
|
|
21533
|
+
/**
|
|
21534
|
+
* GatewayTimeoutError
|
|
21535
|
+
*/
|
|
21536
|
+
504: GatewayTimeoutError;
|
|
21537
|
+
};
|
|
21538
|
+
export type MailboxesListOrganizationDraftsError = MailboxesListOrganizationDraftsErrors[keyof MailboxesListOrganizationDraftsErrors];
|
|
21539
|
+
export type MailboxesListOrganizationDraftsResponses = {
|
|
21540
|
+
/**
|
|
21541
|
+
* OrganizationMailboxDraftPage
|
|
21542
|
+
*/
|
|
21543
|
+
200: OrganizationMailboxDraftPage;
|
|
21544
|
+
};
|
|
21545
|
+
export type MailboxesListOrganizationDraftsResponse = MailboxesListOrganizationDraftsResponses[keyof MailboxesListOrganizationDraftsResponses];
|
|
21546
|
+
export type MailboxesListOrganizationThreadsData = {
|
|
21547
|
+
body?: never;
|
|
21548
|
+
path?: never;
|
|
21549
|
+
query?: {
|
|
21550
|
+
limit?: number | null | undefined;
|
|
21551
|
+
cursor?: Cursor | null | undefined;
|
|
21552
|
+
after?: string | null | undefined;
|
|
21553
|
+
before?: string | null | undefined;
|
|
21554
|
+
q?: string | null | undefined;
|
|
21555
|
+
state?: "active" | "done" | null | undefined;
|
|
21556
|
+
folder?: MailboxThreadFolder | null | undefined;
|
|
21557
|
+
label?: MailboxLabelId | null | undefined;
|
|
21558
|
+
unread?: boolean | null | undefined;
|
|
21559
|
+
starred?: boolean | null | undefined;
|
|
21560
|
+
snoozed?: boolean | null | undefined;
|
|
21561
|
+
mailboxId?: MailboxId | Array<MailboxId> | null | undefined;
|
|
21562
|
+
kind?: "personal" | "shared" | null | undefined;
|
|
21563
|
+
conversation?: ConversationId | null | undefined;
|
|
21564
|
+
};
|
|
21565
|
+
url: "/v1/mailboxes/threads";
|
|
21566
|
+
};
|
|
21567
|
+
export type MailboxesListOrganizationThreadsErrors = {
|
|
21568
|
+
/**
|
|
21569
|
+
* UnauthorizedError
|
|
21570
|
+
*/
|
|
21571
|
+
401: UnauthorizedError;
|
|
21572
|
+
/**
|
|
21573
|
+
* ForbiddenError
|
|
21574
|
+
*/
|
|
21575
|
+
403: ForbiddenError;
|
|
21576
|
+
/**
|
|
21577
|
+
* ResourceNotFoundError
|
|
21578
|
+
*/
|
|
21579
|
+
404: ResourceNotFoundError;
|
|
21580
|
+
/**
|
|
21581
|
+
* ValidationError
|
|
21582
|
+
*/
|
|
21583
|
+
422: ValidationError;
|
|
21584
|
+
/**
|
|
21585
|
+
* InternalError
|
|
21586
|
+
*/
|
|
21587
|
+
500: InternalError;
|
|
21588
|
+
/**
|
|
21589
|
+
* GatewayTimeoutError
|
|
21590
|
+
*/
|
|
21591
|
+
504: GatewayTimeoutError;
|
|
21592
|
+
};
|
|
21593
|
+
export type MailboxesListOrganizationThreadsError = MailboxesListOrganizationThreadsErrors[keyof MailboxesListOrganizationThreadsErrors];
|
|
21594
|
+
export type MailboxesListOrganizationThreadsResponses = {
|
|
21595
|
+
/**
|
|
21596
|
+
* OrganizationMailboxThreadPage
|
|
21597
|
+
*/
|
|
21598
|
+
200: OrganizationMailboxThreadPage;
|
|
21599
|
+
};
|
|
21600
|
+
export type MailboxesListOrganizationThreadsResponse = MailboxesListOrganizationThreadsResponses[keyof MailboxesListOrganizationThreadsResponses];
|
|
21031
21601
|
export type MailboxesListThreadsData = {
|
|
21032
21602
|
body?: never;
|
|
21033
21603
|
path: {
|
|
@@ -21039,6 +21609,7 @@ export type MailboxesListThreadsData = {
|
|
|
21039
21609
|
after?: string | null | undefined;
|
|
21040
21610
|
before?: string | null | undefined;
|
|
21041
21611
|
q?: string | null | undefined;
|
|
21612
|
+
state?: "active" | "done" | null | undefined;
|
|
21042
21613
|
folder?: MailboxThreadFolder | null | undefined;
|
|
21043
21614
|
label?: MailboxLabelId | null | undefined;
|
|
21044
21615
|
unread?: boolean | null | undefined;
|
|
@@ -21128,6 +21699,8 @@ export type MailboxesUpdateThreadData = {
|
|
|
21128
21699
|
body: {
|
|
21129
21700
|
folder?: MailboxThreadFolder | null | undefined;
|
|
21130
21701
|
priority?: MailboxThreadPriority | null | undefined;
|
|
21702
|
+
done?: boolean | null | undefined;
|
|
21703
|
+
closed?: boolean | null | undefined;
|
|
21131
21704
|
read?: boolean | null | undefined;
|
|
21132
21705
|
starred?: boolean | null | undefined;
|
|
21133
21706
|
snoozedUntil?: string | null | undefined;
|