@workwae/sdk 0.1.0-alpha.2 → 0.1.0-alpha.3

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.
@@ -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;
@@ -496,6 +496,8 @@ export declare const drafts: {
496
496
  providerMessageId: z.ZodNullable<z.ZodString>;
497
497
  internetMessageId: z.ZodNullable<z.ZodString>;
498
498
  sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
499
+ sentMessageId: z.ZodNullable<z.ZodUUID>;
500
+ threadId: z.ZodNullable<z.ZodString>;
499
501
  createdAt: z.ZodPreprocess<z.ZodDate, Date>;
500
502
  trackOpens: z.ZodBoolean;
501
503
  trackClicks: z.ZodBoolean;
@@ -640,6 +642,22 @@ export declare const outbox: {
640
642
  honeypot: z.ZodOptional<z.ZodBoolean>;
641
643
  }, z.core.$strip>>;
642
644
  listId: z.ZodOptional<z.ZodString>;
645
+ messageId: z.ZodOptional<z.ZodString>;
646
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
647
+ calendar: z.ZodOptional<z.ZodObject<{
648
+ method: z.ZodEnum<{
649
+ PUBLISH: "PUBLISH";
650
+ REQUEST: "REQUEST";
651
+ REPLY: "REPLY";
652
+ ADD: "ADD";
653
+ CANCEL: "CANCEL";
654
+ REFRESH: "REFRESH";
655
+ COUNTER: "COUNTER";
656
+ DECLINECOUNTER: "DECLINECOUNTER";
657
+ }>;
658
+ content: z.ZodString;
659
+ }, z.core.$strip>>;
660
+ wait: z.ZodOptional<z.ZodNumber>;
643
661
  }, z.core.$strict>, z.ZodObject<{
644
662
  id: z.ZodUUID;
645
663
  accountId: z.ZodUUID;
@@ -657,6 +675,8 @@ export declare const outbox: {
657
675
  providerMessageId: z.ZodNullable<z.ZodString>;
658
676
  internetMessageId: z.ZodNullable<z.ZodString>;
659
677
  sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
678
+ sentMessageId: z.ZodNullable<z.ZodUUID>;
679
+ threadId: z.ZodNullable<z.ZodString>;
660
680
  createdAt: z.ZodPreprocess<z.ZodDate, Date>;
661
681
  trackOpens: z.ZodBoolean;
662
682
  trackClicks: z.ZodBoolean;
@@ -715,6 +735,10 @@ export declare const outbox: {
715
735
  status: 400;
716
736
  message: string;
717
737
  };
738
+ duplicate_message_id: {
739
+ status: 409;
740
+ message: string;
741
+ };
718
742
  template_and_inline_fields: {
719
743
  status: 400;
720
744
  message: string;
@@ -807,6 +831,8 @@ export declare const outbox: {
807
831
  providerMessageId: z.ZodNullable<z.ZodString>;
808
832
  internetMessageId: z.ZodNullable<z.ZodString>;
809
833
  sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
834
+ sentMessageId: z.ZodNullable<z.ZodUUID>;
835
+ threadId: z.ZodNullable<z.ZodString>;
810
836
  createdAt: z.ZodPreprocess<z.ZodDate, Date>;
811
837
  trackOpens: z.ZodBoolean;
812
838
  trackClicks: z.ZodBoolean;
@@ -875,6 +901,8 @@ export declare const outbox: {
875
901
  providerMessageId: z.ZodNullable<z.ZodString>;
876
902
  internetMessageId: z.ZodNullable<z.ZodString>;
877
903
  sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
904
+ sentMessageId: z.ZodNullable<z.ZodUUID>;
905
+ threadId: z.ZodNullable<z.ZodString>;
878
906
  createdAt: z.ZodPreprocess<z.ZodDate, Date>;
879
907
  trackOpens: z.ZodBoolean;
880
908
  trackClicks: z.ZodBoolean;
@@ -984,6 +1012,8 @@ export declare const outbox: {
984
1012
  providerMessageId: z.ZodNullable<z.ZodString>;
985
1013
  internetMessageId: z.ZodNullable<z.ZodString>;
986
1014
  sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
1015
+ sentMessageId: z.ZodNullable<z.ZodUUID>;
1016
+ threadId: z.ZodNullable<z.ZodString>;
987
1017
  createdAt: z.ZodPreprocess<z.ZodDate, Date>;
988
1018
  trackOpens: z.ZodBoolean;
989
1019
  trackClicks: z.ZodBoolean;