@workwae/sdk 0.1.0-alpha.2 → 0.1.0-alpha.4
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/contract/accounts/models.d.ts +21 -0
- package/contract/accounts/routes.d.ts +39 -0
- package/contract/audit-log/models.d.ts +3 -0
- package/contract/audit-log/routes.d.ts +1 -0
- package/contract/connect/models.d.ts +17 -0
- package/contract/connect/routes.d.ts +23 -0
- package/contract/connect-domain/models.d.ts +41 -0
- package/contract/connect-domain/routes.d.ts +197 -0
- package/contract/custom-domain.d.ts +12 -0
- package/contract/errors.d.ts +6 -0
- package/contract/limits.d.ts +6 -0
- package/contract/mail/models.d.ts +139 -2
- package/contract/mail/routes.d.ts +211 -41
- package/contract/meetings/models.d.ts +11 -0
- package/contract/meetings/routes.d.ts +79 -0
- package/contract/oauth-apps/models.d.ts +6 -0
- package/contract/oauth-apps/routes.d.ts +26 -4
- package/contract/org-connections/models.d.ts +10 -0
- package/contract/org-connections/routes.d.ts +42 -0
- package/contract/public.d.ts +1 -0
- package/contract/reasons.d.ts +33 -0
- package/contract/router.d.ts +723 -89
- package/contract/send/models.d.ts +58 -0
- package/contract/send/routes.d.ts +54 -0
- package/contract/threads/routes.d.ts +8 -0
- package/index.js +1 -1
- package/package.json +1 -1
|
@@ -118,6 +118,8 @@ export declare const OutboxEntry: z.ZodObject<{
|
|
|
118
118
|
providerMessageId: z.ZodNullable<z.ZodString>;
|
|
119
119
|
internetMessageId: z.ZodNullable<z.ZodString>;
|
|
120
120
|
sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
121
|
+
sentMessageId: z.ZodNullable<z.ZodUUID>;
|
|
122
|
+
threadId: z.ZodNullable<z.ZodString>;
|
|
121
123
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
122
124
|
trackOpens: z.ZodBoolean;
|
|
123
125
|
trackClicks: z.ZodBoolean;
|
|
@@ -148,6 +150,8 @@ export declare const QueuedSend: z.ZodObject<{
|
|
|
148
150
|
providerMessageId: z.ZodNullable<z.ZodString>;
|
|
149
151
|
internetMessageId: z.ZodNullable<z.ZodString>;
|
|
150
152
|
sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
153
|
+
sentMessageId: z.ZodNullable<z.ZodUUID>;
|
|
154
|
+
threadId: z.ZodNullable<z.ZodString>;
|
|
151
155
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
152
156
|
trackOpens: z.ZodBoolean;
|
|
153
157
|
trackClicks: z.ZodBoolean;
|
|
@@ -178,6 +182,42 @@ export declare const SendOptions: z.ZodObject<{
|
|
|
178
182
|
}, z.core.$strip>>;
|
|
179
183
|
}, z.core.$strip>;
|
|
180
184
|
export type SendOptions = z.infer<typeof SendOptions>;
|
|
185
|
+
export declare const MESSAGE_ID_PATTERN: RegExp;
|
|
186
|
+
export declare const SEND_HEADER_NAMES: readonly [
|
|
187
|
+
"List-Unsubscribe",
|
|
188
|
+
"List-Unsubscribe-Post",
|
|
189
|
+
"List-Id",
|
|
190
|
+
"List-Help",
|
|
191
|
+
"List-Subscribe",
|
|
192
|
+
"List-Post",
|
|
193
|
+
"List-Owner",
|
|
194
|
+
"List-Archive",
|
|
195
|
+
"Auto-Submitted",
|
|
196
|
+
"Precedence",
|
|
197
|
+
"In-Reply-To",
|
|
198
|
+
"References",
|
|
199
|
+
"Feedback-ID",
|
|
200
|
+
"Keywords",
|
|
201
|
+
"Disposition-Notification-To"
|
|
202
|
+
];
|
|
203
|
+
export declare function isSendHeaderAllowed(name: string): boolean;
|
|
204
|
+
export declare function hasControlCharacters(value: string): boolean;
|
|
205
|
+
export declare const SendHeaders: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
206
|
+
export type SendHeaders = z.infer<typeof SendHeaders>;
|
|
207
|
+
export declare const CalendarInvite: z.ZodObject<{
|
|
208
|
+
method: z.ZodEnum<{
|
|
209
|
+
PUBLISH: "PUBLISH";
|
|
210
|
+
REQUEST: "REQUEST";
|
|
211
|
+
REPLY: "REPLY";
|
|
212
|
+
ADD: "ADD";
|
|
213
|
+
CANCEL: "CANCEL";
|
|
214
|
+
REFRESH: "REFRESH";
|
|
215
|
+
COUNTER: "COUNTER";
|
|
216
|
+
DECLINECOUNTER: "DECLINECOUNTER";
|
|
217
|
+
}>;
|
|
218
|
+
content: z.ZodString;
|
|
219
|
+
}, z.core.$strip>;
|
|
220
|
+
export type CalendarInvite = z.infer<typeof CalendarInvite>;
|
|
181
221
|
export declare const MailMergeEntry: z.ZodObject<{
|
|
182
222
|
to: z.ZodObject<{
|
|
183
223
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -242,6 +282,22 @@ export declare const SendMessageRequest: z.ZodObject<{
|
|
|
242
282
|
honeypot: z.ZodOptional<z.ZodBoolean>;
|
|
243
283
|
}, z.core.$strip>>;
|
|
244
284
|
listId: z.ZodOptional<z.ZodString>;
|
|
285
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
286
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
287
|
+
calendar: z.ZodOptional<z.ZodObject<{
|
|
288
|
+
method: z.ZodEnum<{
|
|
289
|
+
PUBLISH: "PUBLISH";
|
|
290
|
+
REQUEST: "REQUEST";
|
|
291
|
+
REPLY: "REPLY";
|
|
292
|
+
ADD: "ADD";
|
|
293
|
+
CANCEL: "CANCEL";
|
|
294
|
+
REFRESH: "REFRESH";
|
|
295
|
+
COUNTER: "COUNTER";
|
|
296
|
+
DECLINECOUNTER: "DECLINECOUNTER";
|
|
297
|
+
}>;
|
|
298
|
+
content: z.ZodString;
|
|
299
|
+
}, z.core.$strip>>;
|
|
300
|
+
wait: z.ZodOptional<z.ZodNumber>;
|
|
245
301
|
}, z.core.$strip>;
|
|
246
302
|
export type SendMessageRequest = z.infer<typeof SendMessageRequest>;
|
|
247
303
|
export declare const MailMergeRequest: z.ZodObject<{
|
|
@@ -438,6 +494,8 @@ export declare const OutboxEntryPage: z.ZodObject<{
|
|
|
438
494
|
providerMessageId: z.ZodNullable<z.ZodString>;
|
|
439
495
|
internetMessageId: z.ZodNullable<z.ZodString>;
|
|
440
496
|
sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
497
|
+
sentMessageId: z.ZodNullable<z.ZodUUID>;
|
|
498
|
+
threadId: z.ZodNullable<z.ZodString>;
|
|
441
499
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
442
500
|
trackOpens: z.ZodBoolean;
|
|
443
501
|
trackClicks: z.ZodBoolean;
|
|
@@ -106,6 +106,10 @@ export declare const drafts: {
|
|
|
106
106
|
status: 502;
|
|
107
107
|
message: string;
|
|
108
108
|
};
|
|
109
|
+
mail_permission_missing: {
|
|
110
|
+
status: 409;
|
|
111
|
+
message: string;
|
|
112
|
+
};
|
|
109
113
|
provider_not_found: {
|
|
110
114
|
status: 404;
|
|
111
115
|
message: string;
|
|
@@ -300,6 +304,10 @@ export declare const drafts: {
|
|
|
300
304
|
status: 404;
|
|
301
305
|
message: string;
|
|
302
306
|
};
|
|
307
|
+
mail_permission_missing: {
|
|
308
|
+
status: 409;
|
|
309
|
+
message: string;
|
|
310
|
+
};
|
|
303
311
|
provider_not_found: {
|
|
304
312
|
status: 404;
|
|
305
313
|
message: string;
|
|
@@ -456,6 +464,10 @@ export declare const drafts: {
|
|
|
456
464
|
status: 404;
|
|
457
465
|
message: string;
|
|
458
466
|
};
|
|
467
|
+
mail_permission_missing: {
|
|
468
|
+
status: 409;
|
|
469
|
+
message: string;
|
|
470
|
+
};
|
|
459
471
|
mail_disabled: {
|
|
460
472
|
status: 409;
|
|
461
473
|
message: string;
|
|
@@ -496,6 +508,8 @@ export declare const drafts: {
|
|
|
496
508
|
providerMessageId: z.ZodNullable<z.ZodString>;
|
|
497
509
|
internetMessageId: z.ZodNullable<z.ZodString>;
|
|
498
510
|
sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
511
|
+
sentMessageId: z.ZodNullable<z.ZodUUID>;
|
|
512
|
+
threadId: z.ZodNullable<z.ZodString>;
|
|
499
513
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
500
514
|
trackOpens: z.ZodBoolean;
|
|
501
515
|
trackClicks: z.ZodBoolean;
|
|
@@ -574,6 +588,10 @@ export declare const drafts: {
|
|
|
574
588
|
status: 404;
|
|
575
589
|
message: string;
|
|
576
590
|
};
|
|
591
|
+
mail_permission_missing: {
|
|
592
|
+
status: 409;
|
|
593
|
+
message: string;
|
|
594
|
+
};
|
|
577
595
|
mail_disabled: {
|
|
578
596
|
status: 409;
|
|
579
597
|
message: string;
|
|
@@ -640,6 +658,22 @@ export declare const outbox: {
|
|
|
640
658
|
honeypot: z.ZodOptional<z.ZodBoolean>;
|
|
641
659
|
}, z.core.$strip>>;
|
|
642
660
|
listId: z.ZodOptional<z.ZodString>;
|
|
661
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
662
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
663
|
+
calendar: z.ZodOptional<z.ZodObject<{
|
|
664
|
+
method: z.ZodEnum<{
|
|
665
|
+
PUBLISH: "PUBLISH";
|
|
666
|
+
REQUEST: "REQUEST";
|
|
667
|
+
REPLY: "REPLY";
|
|
668
|
+
ADD: "ADD";
|
|
669
|
+
CANCEL: "CANCEL";
|
|
670
|
+
REFRESH: "REFRESH";
|
|
671
|
+
COUNTER: "COUNTER";
|
|
672
|
+
DECLINECOUNTER: "DECLINECOUNTER";
|
|
673
|
+
}>;
|
|
674
|
+
content: z.ZodString;
|
|
675
|
+
}, z.core.$strip>>;
|
|
676
|
+
wait: z.ZodOptional<z.ZodNumber>;
|
|
643
677
|
}, z.core.$strict>, z.ZodObject<{
|
|
644
678
|
id: z.ZodUUID;
|
|
645
679
|
accountId: z.ZodUUID;
|
|
@@ -657,6 +691,8 @@ export declare const outbox: {
|
|
|
657
691
|
providerMessageId: z.ZodNullable<z.ZodString>;
|
|
658
692
|
internetMessageId: z.ZodNullable<z.ZodString>;
|
|
659
693
|
sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
694
|
+
sentMessageId: z.ZodNullable<z.ZodUUID>;
|
|
695
|
+
threadId: z.ZodNullable<z.ZodString>;
|
|
660
696
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
661
697
|
trackOpens: z.ZodBoolean;
|
|
662
698
|
trackClicks: z.ZodBoolean;
|
|
@@ -715,6 +751,14 @@ export declare const outbox: {
|
|
|
715
751
|
status: 400;
|
|
716
752
|
message: string;
|
|
717
753
|
};
|
|
754
|
+
duplicate_message_id: {
|
|
755
|
+
status: 409;
|
|
756
|
+
message: string;
|
|
757
|
+
};
|
|
758
|
+
mail_permission_missing: {
|
|
759
|
+
status: 409;
|
|
760
|
+
message: string;
|
|
761
|
+
};
|
|
718
762
|
template_and_inline_fields: {
|
|
719
763
|
status: 400;
|
|
720
764
|
message: string;
|
|
@@ -807,6 +851,8 @@ export declare const outbox: {
|
|
|
807
851
|
providerMessageId: z.ZodNullable<z.ZodString>;
|
|
808
852
|
internetMessageId: z.ZodNullable<z.ZodString>;
|
|
809
853
|
sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
854
|
+
sentMessageId: z.ZodNullable<z.ZodUUID>;
|
|
855
|
+
threadId: z.ZodNullable<z.ZodString>;
|
|
810
856
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
811
857
|
trackOpens: z.ZodBoolean;
|
|
812
858
|
trackClicks: z.ZodBoolean;
|
|
@@ -875,6 +921,8 @@ export declare const outbox: {
|
|
|
875
921
|
providerMessageId: z.ZodNullable<z.ZodString>;
|
|
876
922
|
internetMessageId: z.ZodNullable<z.ZodString>;
|
|
877
923
|
sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
924
|
+
sentMessageId: z.ZodNullable<z.ZodUUID>;
|
|
925
|
+
threadId: z.ZodNullable<z.ZodString>;
|
|
878
926
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
879
927
|
trackOpens: z.ZodBoolean;
|
|
880
928
|
trackClicks: z.ZodBoolean;
|
|
@@ -984,6 +1032,8 @@ export declare const outbox: {
|
|
|
984
1032
|
providerMessageId: z.ZodNullable<z.ZodString>;
|
|
985
1033
|
internetMessageId: z.ZodNullable<z.ZodString>;
|
|
986
1034
|
sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
|
|
1035
|
+
sentMessageId: z.ZodNullable<z.ZodUUID>;
|
|
1036
|
+
threadId: z.ZodNullable<z.ZodString>;
|
|
987
1037
|
createdAt: z.ZodPreprocess<z.ZodDate, Date>;
|
|
988
1038
|
trackOpens: z.ZodBoolean;
|
|
989
1039
|
trackClicks: z.ZodBoolean;
|
|
@@ -1280,6 +1330,10 @@ export declare const mailMerges: {
|
|
|
1280
1330
|
status: 400;
|
|
1281
1331
|
message: string;
|
|
1282
1332
|
};
|
|
1333
|
+
mail_permission_missing: {
|
|
1334
|
+
status: 409;
|
|
1335
|
+
message: string;
|
|
1336
|
+
};
|
|
1283
1337
|
template_and_inline_fields: {
|
|
1284
1338
|
status: 400;
|
|
1285
1339
|
message: string;
|
|
@@ -278,6 +278,10 @@ export declare const threads: {
|
|
|
278
278
|
status: 404;
|
|
279
279
|
message: string;
|
|
280
280
|
};
|
|
281
|
+
mail_permission_missing: {
|
|
282
|
+
status: 409;
|
|
283
|
+
message: string;
|
|
284
|
+
};
|
|
281
285
|
mail_disabled: {
|
|
282
286
|
status: 409;
|
|
283
287
|
message: string;
|
|
@@ -360,6 +364,10 @@ export declare const threads: {
|
|
|
360
364
|
status: 404;
|
|
361
365
|
message: string;
|
|
362
366
|
};
|
|
367
|
+
mail_permission_missing: {
|
|
368
|
+
status: 409;
|
|
369
|
+
message: string;
|
|
370
|
+
};
|
|
363
371
|
mail_disabled: {
|
|
364
372
|
status: 409;
|
|
365
373
|
message: string;
|