@automate.ax/integration-contracts 0.99.4 → 0.101.1
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/automate/index.d.ts +451 -0
- package/dist/automate/index.js +108 -0
- package/dist/close/events.d.ts +63 -63
- package/dist/close/events.js +18 -8
- package/dist/close/schemas.d.ts +21 -21
- package/dist/close/schemas.js +1 -1
- package/dist/google-calendar/event-schemas.d.ts +2 -2
- package/dist/google-calendar/index.d.ts +6 -6
- package/dist/google-calendar/schemas.d.ts +6 -6
- package/dist/linear/schemas.d.ts +11 -11
- package/dist/resend/action-schemas.d.ts +22 -22
- package/dist/resend/action-schemas.js +5 -4
- package/dist/triggers.d.ts +2 -1
- package/dist/whatsapp/index.d.ts +2 -2
- package/dist/whatsapp/schemas.d.ts +5 -5
- package/package.json +8 -2
- package/src/automate/index.ts +129 -0
- package/src/close/events.ts +34 -8
- package/src/close/schemas.ts +1 -1
- package/src/resend/action-schemas.ts +5 -3
- package/src/triggers.ts +2 -0
package/dist/close/schemas.d.ts
CHANGED
|
@@ -395,11 +395,11 @@ export declare const CLOSE_TASK_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
395
395
|
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
|
|
396
396
|
updatedBy: z.ZodNullable<z.ZodString>;
|
|
397
397
|
updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
398
|
-
view: z.ZodOptional<z.ZodEnum<{
|
|
398
|
+
view: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
399
399
|
archive: "archive";
|
|
400
400
|
future: "future";
|
|
401
401
|
inbox: "inbox";
|
|
402
|
-
}
|
|
402
|
+
}>>>;
|
|
403
403
|
}, z.core.$strip>, z.ZodObject<{
|
|
404
404
|
type: z.ZodLiteral<"missed_call">;
|
|
405
405
|
localPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -431,11 +431,11 @@ export declare const CLOSE_TASK_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
431
431
|
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
|
|
432
432
|
updatedBy: z.ZodNullable<z.ZodString>;
|
|
433
433
|
updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
434
|
-
view: z.ZodOptional<z.ZodEnum<{
|
|
434
|
+
view: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
435
435
|
archive: "archive";
|
|
436
436
|
future: "future";
|
|
437
437
|
inbox: "inbox";
|
|
438
|
-
}
|
|
438
|
+
}>>>;
|
|
439
439
|
}, z.core.$strip>, z.ZodObject<{
|
|
440
440
|
type: z.ZodLiteral<"voicemail">;
|
|
441
441
|
voicemailDuration: z.ZodOptional<z.ZodNumber>;
|
|
@@ -469,11 +469,11 @@ export declare const CLOSE_TASK_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
469
469
|
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
|
|
470
470
|
updatedBy: z.ZodNullable<z.ZodString>;
|
|
471
471
|
updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
472
|
-
view: z.ZodOptional<z.ZodEnum<{
|
|
472
|
+
view: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
473
473
|
archive: "archive";
|
|
474
474
|
future: "future";
|
|
475
475
|
inbox: "inbox";
|
|
476
|
-
}
|
|
476
|
+
}>>>;
|
|
477
477
|
}, z.core.$strip>, z.ZodObject<{
|
|
478
478
|
bodyPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
479
479
|
emails: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -504,11 +504,11 @@ export declare const CLOSE_TASK_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
504
504
|
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
|
|
505
505
|
updatedBy: z.ZodNullable<z.ZodString>;
|
|
506
506
|
updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
507
|
-
view: z.ZodOptional<z.ZodEnum<{
|
|
507
|
+
view: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
508
508
|
archive: "archive";
|
|
509
509
|
future: "future";
|
|
510
510
|
inbox: "inbox";
|
|
511
|
-
}
|
|
511
|
+
}>>>;
|
|
512
512
|
}, z.core.$strip>, z.ZodObject<{
|
|
513
513
|
bodyPreview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
514
514
|
emailId: z.ZodOptional<z.ZodString>;
|
|
@@ -539,11 +539,11 @@ export declare const CLOSE_TASK_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
539
539
|
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
|
|
540
540
|
updatedBy: z.ZodNullable<z.ZodString>;
|
|
541
541
|
updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
542
|
-
view: z.ZodOptional<z.ZodEnum<{
|
|
542
|
+
view: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
543
543
|
archive: "archive";
|
|
544
544
|
future: "future";
|
|
545
545
|
inbox: "inbox";
|
|
546
|
-
}
|
|
546
|
+
}>>>;
|
|
547
547
|
}, z.core.$strip>, z.ZodObject<{
|
|
548
548
|
recordingUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
549
549
|
type: z.ZodLiteral<"answered_detached_call">;
|
|
@@ -576,11 +576,11 @@ export declare const CLOSE_TASK_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
576
576
|
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
|
|
577
577
|
updatedBy: z.ZodNullable<z.ZodString>;
|
|
578
578
|
updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
579
|
-
view: z.ZodOptional<z.ZodEnum<{
|
|
579
|
+
view: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
580
580
|
archive: "archive";
|
|
581
581
|
future: "future";
|
|
582
582
|
inbox: "inbox";
|
|
583
|
-
}
|
|
583
|
+
}>>>;
|
|
584
584
|
}, z.core.$strip>, z.ZodObject<{
|
|
585
585
|
opportunityNote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
586
586
|
opportunityValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -617,11 +617,11 @@ export declare const CLOSE_TASK_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
617
617
|
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
|
|
618
618
|
updatedBy: z.ZodNullable<z.ZodString>;
|
|
619
619
|
updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
620
|
-
view: z.ZodOptional<z.ZodEnum<{
|
|
620
|
+
view: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
621
621
|
archive: "archive";
|
|
622
622
|
future: "future";
|
|
623
623
|
inbox: "inbox";
|
|
624
|
-
}
|
|
624
|
+
}>>>;
|
|
625
625
|
}, z.core.$strip>, z.ZodObject<{
|
|
626
626
|
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
627
627
|
contentType: z.ZodString;
|
|
@@ -661,11 +661,11 @@ export declare const CLOSE_TASK_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
661
661
|
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
|
|
662
662
|
updatedBy: z.ZodNullable<z.ZodString>;
|
|
663
663
|
updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
664
|
-
view: z.ZodOptional<z.ZodEnum<{
|
|
664
|
+
view: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
665
665
|
archive: "archive";
|
|
666
666
|
future: "future";
|
|
667
667
|
inbox: "inbox";
|
|
668
|
-
}
|
|
668
|
+
}>>>;
|
|
669
669
|
}, z.core.$strip>, z.ZodObject<{
|
|
670
670
|
agentConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
671
671
|
deduplicationKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -700,11 +700,11 @@ export declare const CLOSE_TASK_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
700
700
|
updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>;
|
|
701
701
|
updatedBy: z.ZodNullable<z.ZodString>;
|
|
702
702
|
updatedByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
703
|
-
view: z.ZodOptional<z.ZodEnum<{
|
|
703
|
+
view: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
704
704
|
archive: "archive";
|
|
705
705
|
future: "future";
|
|
706
706
|
inbox: "inbox";
|
|
707
|
-
}
|
|
707
|
+
}>>>;
|
|
708
708
|
}, z.core.$strip>], "type">;
|
|
709
709
|
export declare const CLOSE_NOTE_SCHEMA: z.ZodObject<{
|
|
710
710
|
activityAt: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
|
|
@@ -776,11 +776,11 @@ export declare const CLOSE_CALL_SCHEMA: z.ZodObject<{
|
|
|
776
776
|
External: "External";
|
|
777
777
|
}>;
|
|
778
778
|
status: z.ZodEnum<{
|
|
779
|
+
failed: "failed";
|
|
779
780
|
completed: "completed";
|
|
780
781
|
created: "created";
|
|
781
782
|
busy: "busy";
|
|
782
783
|
cancel: "cancel";
|
|
783
|
-
failed: "failed";
|
|
784
784
|
"in-progress": "in-progress";
|
|
785
785
|
"no-answer": "no-answer";
|
|
786
786
|
timeout: "timeout";
|
|
@@ -1006,11 +1006,11 @@ export declare const CLOSE_ACTIVITY_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1006
1006
|
External: "External";
|
|
1007
1007
|
}>;
|
|
1008
1008
|
status: z.ZodEnum<{
|
|
1009
|
+
failed: "failed";
|
|
1009
1010
|
completed: "completed";
|
|
1010
1011
|
created: "created";
|
|
1011
1012
|
busy: "busy";
|
|
1012
1013
|
cancel: "cancel";
|
|
1013
|
-
failed: "failed";
|
|
1014
1014
|
"in-progress": "in-progress";
|
|
1015
1015
|
"no-answer": "no-answer";
|
|
1016
1016
|
timeout: "timeout";
|
|
@@ -1475,8 +1475,8 @@ export declare const CLOSE_ACTIVITY_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1475
1475
|
generatedAt: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodString]>, z.ZodTransform<Date, string | Date>>>;
|
|
1476
1476
|
status: z.ZodEnum<{
|
|
1477
1477
|
success: "success";
|
|
1478
|
-
pending: "pending";
|
|
1479
1478
|
failure: "failure";
|
|
1479
|
+
pending: "pending";
|
|
1480
1480
|
expired: "expired";
|
|
1481
1481
|
}>;
|
|
1482
1482
|
summaryHtml: z.ZodNullable<z.ZodString>;
|
package/dist/close/schemas.js
CHANGED
|
@@ -235,7 +235,7 @@ const CLOSE_TASK_FIELDS = {
|
|
|
235
235
|
updatedAt: DATE_SCHEMA,
|
|
236
236
|
updatedBy: z.string().nullable(),
|
|
237
237
|
updatedByName: z.string().nullable().optional(),
|
|
238
|
-
view: z.enum(["archive", "future", "inbox"]).optional(),
|
|
238
|
+
view: z.enum(["archive", "future", "inbox"]).nullable().optional(),
|
|
239
239
|
};
|
|
240
240
|
const CLOSE_TASK_PHONE_FIELDS = {
|
|
241
241
|
localPhone: z.string().nullable().optional(),
|
|
@@ -31,8 +31,8 @@ export declare const GOOGLE_CALENDAR_EVENT_DELETED_SCHEMA: z.ZodObject<{
|
|
|
31
31
|
conferenceId: z.ZodOptional<z.ZodString>;
|
|
32
32
|
creationStatus: z.ZodOptional<z.ZodEnum<{
|
|
33
33
|
success: "success";
|
|
34
|
-
pending: "pending";
|
|
35
34
|
failure: "failure";
|
|
35
|
+
pending: "pending";
|
|
36
36
|
}>>;
|
|
37
37
|
entryPoints: z.ZodArray<z.ZodObject<{
|
|
38
38
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -95,9 +95,9 @@ export declare const GOOGLE_CALENDAR_EVENT_DELETED_SCHEMA: z.ZodObject<{
|
|
|
95
95
|
timeZone: z.ZodOptional<z.ZodString>;
|
|
96
96
|
}, z.core.$strip>>;
|
|
97
97
|
status: z.ZodEnum<{
|
|
98
|
+
cancelled: "cancelled";
|
|
98
99
|
confirmed: "confirmed";
|
|
99
100
|
tentative: "tentative";
|
|
100
|
-
cancelled: "cancelled";
|
|
101
101
|
}>;
|
|
102
102
|
summary: z.ZodString;
|
|
103
103
|
transparency: z.ZodEnum<{
|
|
@@ -41,8 +41,8 @@ export declare const googleCalendarTriggerContracts: {
|
|
|
41
41
|
conferenceId: z.ZodOptional<z.ZodString>;
|
|
42
42
|
creationStatus: z.ZodOptional<z.ZodEnum<{
|
|
43
43
|
success: "success";
|
|
44
|
-
pending: "pending";
|
|
45
44
|
failure: "failure";
|
|
45
|
+
pending: "pending";
|
|
46
46
|
}>>;
|
|
47
47
|
entryPoints: z.ZodArray<z.ZodObject<{
|
|
48
48
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -105,9 +105,9 @@ export declare const googleCalendarTriggerContracts: {
|
|
|
105
105
|
timeZone: z.ZodOptional<z.ZodString>;
|
|
106
106
|
}, z.core.$strip>>;
|
|
107
107
|
status: z.ZodEnum<{
|
|
108
|
+
cancelled: "cancelled";
|
|
108
109
|
confirmed: "confirmed";
|
|
109
110
|
tentative: "tentative";
|
|
110
|
-
cancelled: "cancelled";
|
|
111
111
|
}>;
|
|
112
112
|
summary: z.ZodString;
|
|
113
113
|
transparency: z.ZodEnum<{
|
|
@@ -160,8 +160,8 @@ export declare const googleCalendarTriggerContracts: {
|
|
|
160
160
|
conferenceId: z.ZodOptional<z.ZodString>;
|
|
161
161
|
creationStatus: z.ZodOptional<z.ZodEnum<{
|
|
162
162
|
success: "success";
|
|
163
|
-
pending: "pending";
|
|
164
163
|
failure: "failure";
|
|
164
|
+
pending: "pending";
|
|
165
165
|
}>>;
|
|
166
166
|
entryPoints: z.ZodArray<z.ZodObject<{
|
|
167
167
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -224,9 +224,9 @@ export declare const googleCalendarTriggerContracts: {
|
|
|
224
224
|
timeZone: z.ZodOptional<z.ZodString>;
|
|
225
225
|
}, z.core.$strip>>;
|
|
226
226
|
status: z.ZodEnum<{
|
|
227
|
+
cancelled: "cancelled";
|
|
227
228
|
confirmed: "confirmed";
|
|
228
229
|
tentative: "tentative";
|
|
229
|
-
cancelled: "cancelled";
|
|
230
230
|
}>;
|
|
231
231
|
summary: z.ZodString;
|
|
232
232
|
transparency: z.ZodEnum<{
|
|
@@ -279,8 +279,8 @@ export declare const googleCalendarTriggerContracts: {
|
|
|
279
279
|
conferenceId: z.ZodOptional<z.ZodString>;
|
|
280
280
|
creationStatus: z.ZodOptional<z.ZodEnum<{
|
|
281
281
|
success: "success";
|
|
282
|
-
pending: "pending";
|
|
283
282
|
failure: "failure";
|
|
283
|
+
pending: "pending";
|
|
284
284
|
}>>;
|
|
285
285
|
entryPoints: z.ZodArray<z.ZodObject<{
|
|
286
286
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -343,9 +343,9 @@ export declare const googleCalendarTriggerContracts: {
|
|
|
343
343
|
timeZone: z.ZodOptional<z.ZodString>;
|
|
344
344
|
}, z.core.$strip>>;
|
|
345
345
|
status: z.ZodEnum<{
|
|
346
|
+
cancelled: "cancelled";
|
|
346
347
|
confirmed: "confirmed";
|
|
347
348
|
tentative: "tentative";
|
|
348
|
-
cancelled: "cancelled";
|
|
349
349
|
}>;
|
|
350
350
|
summary: z.ZodString;
|
|
351
351
|
transparency: z.ZodEnum<{
|
|
@@ -9,9 +9,9 @@ export declare const SEND_UPDATES_SCHEMA: z.ZodEnum<{
|
|
|
9
9
|
none: "none";
|
|
10
10
|
}>;
|
|
11
11
|
export declare const EVENT_STATUS_SCHEMA: z.ZodEnum<{
|
|
12
|
+
cancelled: "cancelled";
|
|
12
13
|
confirmed: "confirmed";
|
|
13
14
|
tentative: "tentative";
|
|
14
|
-
cancelled: "cancelled";
|
|
15
15
|
}>;
|
|
16
16
|
export declare const RESPONSE_STATUS_SCHEMA: z.ZodEnum<{
|
|
17
17
|
tentative: "tentative";
|
|
@@ -167,8 +167,8 @@ export declare const EVENT_CONFERENCE_SCHEMA: z.ZodObject<{
|
|
|
167
167
|
conferenceId: z.ZodOptional<z.ZodString>;
|
|
168
168
|
creationStatus: z.ZodOptional<z.ZodEnum<{
|
|
169
169
|
success: "success";
|
|
170
|
-
pending: "pending";
|
|
171
170
|
failure: "failure";
|
|
171
|
+
pending: "pending";
|
|
172
172
|
}>>;
|
|
173
173
|
entryPoints: z.ZodArray<z.ZodObject<{
|
|
174
174
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -212,8 +212,8 @@ export declare const CALENDAR_EVENT_SCHEMA: z.ZodObject<{
|
|
|
212
212
|
conferenceId: z.ZodOptional<z.ZodString>;
|
|
213
213
|
creationStatus: z.ZodOptional<z.ZodEnum<{
|
|
214
214
|
success: "success";
|
|
215
|
-
pending: "pending";
|
|
216
215
|
failure: "failure";
|
|
216
|
+
pending: "pending";
|
|
217
217
|
}>>;
|
|
218
218
|
entryPoints: z.ZodArray<z.ZodObject<{
|
|
219
219
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -276,9 +276,9 @@ export declare const CALENDAR_EVENT_SCHEMA: z.ZodObject<{
|
|
|
276
276
|
timeZone: z.ZodOptional<z.ZodString>;
|
|
277
277
|
}, z.core.$strip>>;
|
|
278
278
|
status: z.ZodEnum<{
|
|
279
|
+
cancelled: "cancelled";
|
|
279
280
|
confirmed: "confirmed";
|
|
280
281
|
tentative: "tentative";
|
|
281
|
-
cancelled: "cancelled";
|
|
282
282
|
}>;
|
|
283
283
|
summary: z.ZodString;
|
|
284
284
|
transparency: z.ZodEnum<{
|
|
@@ -325,8 +325,8 @@ export declare const EVENT_PAGE_SCHEMA: z.ZodObject<{
|
|
|
325
325
|
conferenceId: z.ZodOptional<z.ZodString>;
|
|
326
326
|
creationStatus: z.ZodOptional<z.ZodEnum<{
|
|
327
327
|
success: "success";
|
|
328
|
-
pending: "pending";
|
|
329
328
|
failure: "failure";
|
|
329
|
+
pending: "pending";
|
|
330
330
|
}>>;
|
|
331
331
|
entryPoints: z.ZodArray<z.ZodObject<{
|
|
332
332
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -389,9 +389,9 @@ export declare const EVENT_PAGE_SCHEMA: z.ZodObject<{
|
|
|
389
389
|
timeZone: z.ZodOptional<z.ZodString>;
|
|
390
390
|
}, z.core.$strip>>;
|
|
391
391
|
status: z.ZodEnum<{
|
|
392
|
+
cancelled: "cancelled";
|
|
392
393
|
confirmed: "confirmed";
|
|
393
394
|
tentative: "tentative";
|
|
394
|
-
cancelled: "cancelled";
|
|
395
395
|
}>;
|
|
396
396
|
summary: z.ZodString;
|
|
397
397
|
transparency: z.ZodEnum<{
|
package/dist/linear/schemas.d.ts
CHANGED
|
@@ -1702,10 +1702,7 @@ export declare const LINEAR_PROVIDER_PROJECT_SCHEMA: z.ZodObject<{
|
|
|
1702
1702
|
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
1703
1703
|
id: z.ZodString;
|
|
1704
1704
|
name: z.ZodString;
|
|
1705
|
-
color: z.ZodString;
|
|
1706
|
-
completedAt: z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>>;
|
|
1707
1705
|
description: z.ZodString;
|
|
1708
|
-
url: z.ZodString;
|
|
1709
1706
|
status: z.ZodObject<{
|
|
1710
1707
|
color: z.ZodString;
|
|
1711
1708
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -1713,6 +1710,9 @@ export declare const LINEAR_PROVIDER_PROJECT_SCHEMA: z.ZodObject<{
|
|
|
1713
1710
|
name: z.ZodString;
|
|
1714
1711
|
type: z.ZodString;
|
|
1715
1712
|
}, z.core.$strip>;
|
|
1713
|
+
completedAt: z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>>;
|
|
1714
|
+
color: z.ZodString;
|
|
1715
|
+
url: z.ZodString;
|
|
1716
1716
|
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
1717
1717
|
state: z.ZodString;
|
|
1718
1718
|
lead: z.ZodNullable<z.ZodObject<{
|
|
@@ -1780,18 +1780,20 @@ export declare const LINEAR_PROVIDER_ISSUE_SCHEMA: z.ZodObject<{
|
|
|
1780
1780
|
number: z.ZodNumber;
|
|
1781
1781
|
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
1782
1782
|
id: z.ZodString;
|
|
1783
|
-
team: z.ZodObject<{
|
|
1784
|
-
displayName: z.ZodString;
|
|
1785
|
-
id: z.ZodString;
|
|
1786
|
-
key: z.ZodString;
|
|
1787
|
-
name: z.ZodString;
|
|
1788
|
-
}, z.core.$strip>;
|
|
1789
1783
|
project: z.ZodNullable<z.ZodObject<{
|
|
1790
1784
|
id: z.ZodString;
|
|
1791
1785
|
name: z.ZodString;
|
|
1792
1786
|
slugId: z.ZodString;
|
|
1793
1787
|
url: z.ZodString;
|
|
1794
1788
|
}, z.core.$strip>>;
|
|
1789
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1790
|
+
completedAt: z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>>;
|
|
1791
|
+
team: z.ZodObject<{
|
|
1792
|
+
displayName: z.ZodString;
|
|
1793
|
+
id: z.ZodString;
|
|
1794
|
+
key: z.ZodString;
|
|
1795
|
+
name: z.ZodString;
|
|
1796
|
+
}, z.core.$strip>;
|
|
1795
1797
|
assignee: z.ZodNullable<z.ZodObject<{
|
|
1796
1798
|
active: z.ZodBoolean;
|
|
1797
1799
|
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -1800,7 +1802,6 @@ export declare const LINEAR_PROVIDER_ISSUE_SCHEMA: z.ZodObject<{
|
|
|
1800
1802
|
id: z.ZodString;
|
|
1801
1803
|
name: z.ZodString;
|
|
1802
1804
|
}, z.core.$strip>>;
|
|
1803
|
-
completedAt: z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>>;
|
|
1804
1805
|
parent: z.ZodNullable<z.ZodObject<{
|
|
1805
1806
|
id: z.ZodString;
|
|
1806
1807
|
identifier: z.ZodString;
|
|
@@ -1808,7 +1809,6 @@ export declare const LINEAR_PROVIDER_ISSUE_SCHEMA: z.ZodObject<{
|
|
|
1808
1809
|
url: z.ZodString;
|
|
1809
1810
|
}, z.core.$strip>>;
|
|
1810
1811
|
title: z.ZodString;
|
|
1811
|
-
description: z.ZodNullable<z.ZodString>;
|
|
1812
1812
|
url: z.ZodString;
|
|
1813
1813
|
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
1814
1814
|
state: z.ZodObject<{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
export declare const RESEND_EMAIL_STATUS_SCHEMA: z.ZodEnum<{
|
|
3
|
+
failed: "failed";
|
|
3
4
|
delivered: "delivered";
|
|
4
5
|
opened: "opened";
|
|
5
|
-
failed: "failed";
|
|
6
6
|
scheduled: "scheduled";
|
|
7
7
|
sent: "sent";
|
|
8
8
|
canceled: "canceled";
|
|
@@ -75,9 +75,9 @@ export declare const RESEND_EMAIL_SUMMARY_WIRE_SCHEMA: z.ZodObject<{
|
|
|
75
75
|
from: z.ZodString;
|
|
76
76
|
id: z.ZodString;
|
|
77
77
|
last_event: z.ZodEnum<{
|
|
78
|
+
failed: "failed";
|
|
78
79
|
delivered: "delivered";
|
|
79
80
|
opened: "opened";
|
|
80
|
-
failed: "failed";
|
|
81
81
|
scheduled: "scheduled";
|
|
82
82
|
sent: "sent";
|
|
83
83
|
canceled: "canceled";
|
|
@@ -102,9 +102,9 @@ export declare const RESEND_EMAIL_SUMMARY_SCHEMA: z.ZodPipe<z.ZodObject<{
|
|
|
102
102
|
from: z.ZodString;
|
|
103
103
|
id: z.ZodString;
|
|
104
104
|
last_event: z.ZodEnum<{
|
|
105
|
+
failed: "failed";
|
|
105
106
|
delivered: "delivered";
|
|
106
107
|
opened: "opened";
|
|
107
|
-
failed: "failed";
|
|
108
108
|
scheduled: "scheduled";
|
|
109
109
|
sent: "sent";
|
|
110
110
|
canceled: "canceled";
|
|
@@ -123,7 +123,7 @@ export declare const RESEND_EMAIL_SUMMARY_SCHEMA: z.ZodPipe<z.ZodObject<{
|
|
|
123
123
|
topic_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
124
124
|
}, z.core.$strip>, z.ZodTransform<{
|
|
125
125
|
createdAt: string;
|
|
126
|
-
lastEvent: "
|
|
126
|
+
lastEvent: "failed" | "delivered" | "opened" | "scheduled" | "sent" | "canceled" | "queued" | "suppressed" | "bounced" | "clicked" | "complained" | "delivery_delayed";
|
|
127
127
|
messageId: string | null | undefined;
|
|
128
128
|
replyTo: string[] | null | undefined;
|
|
129
129
|
scheduledAt: string | null | undefined;
|
|
@@ -138,7 +138,7 @@ export declare const RESEND_EMAIL_SUMMARY_SCHEMA: z.ZodPipe<z.ZodObject<{
|
|
|
138
138
|
created_at: string;
|
|
139
139
|
from: string;
|
|
140
140
|
id: string;
|
|
141
|
-
last_event: "
|
|
141
|
+
last_event: "failed" | "delivered" | "opened" | "scheduled" | "sent" | "canceled" | "queued" | "suppressed" | "bounced" | "clicked" | "complained" | "delivery_delayed";
|
|
142
142
|
subject: string;
|
|
143
143
|
to: string[];
|
|
144
144
|
bcc?: string[] | null | undefined;
|
|
@@ -153,9 +153,9 @@ export declare const RESEND_EMAIL_WIRE_SCHEMA: z.ZodObject<{
|
|
|
153
153
|
from: z.ZodString;
|
|
154
154
|
id: z.ZodString;
|
|
155
155
|
last_event: z.ZodEnum<{
|
|
156
|
+
failed: "failed";
|
|
156
157
|
delivered: "delivered";
|
|
157
158
|
opened: "opened";
|
|
158
|
-
failed: "failed";
|
|
159
159
|
scheduled: "scheduled";
|
|
160
160
|
sent: "sent";
|
|
161
161
|
canceled: "canceled";
|
|
@@ -187,9 +187,9 @@ export declare const RESEND_EMAIL_SCHEMA: z.ZodPipe<z.ZodObject<{
|
|
|
187
187
|
from: z.ZodString;
|
|
188
188
|
id: z.ZodString;
|
|
189
189
|
last_event: z.ZodEnum<{
|
|
190
|
+
failed: "failed";
|
|
190
191
|
delivered: "delivered";
|
|
191
192
|
opened: "opened";
|
|
192
|
-
failed: "failed";
|
|
193
193
|
scheduled: "scheduled";
|
|
194
194
|
sent: "sent";
|
|
195
195
|
canceled: "canceled";
|
|
@@ -217,7 +217,7 @@ export declare const RESEND_EMAIL_SCHEMA: z.ZodPipe<z.ZodObject<{
|
|
|
217
217
|
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
218
218
|
}, z.core.$strip>, z.ZodTransform<{
|
|
219
219
|
createdAt: string;
|
|
220
|
-
lastEvent: "
|
|
220
|
+
lastEvent: "failed" | "delivered" | "opened" | "scheduled" | "sent" | "canceled" | "queued" | "suppressed" | "bounced" | "clicked" | "complained" | "delivery_delayed";
|
|
221
221
|
messageId: string | null | undefined;
|
|
222
222
|
replyTo: string[] | null | undefined;
|
|
223
223
|
scheduledAt: string | null | undefined;
|
|
@@ -239,7 +239,7 @@ export declare const RESEND_EMAIL_SCHEMA: z.ZodPipe<z.ZodObject<{
|
|
|
239
239
|
created_at: string;
|
|
240
240
|
from: string;
|
|
241
241
|
id: string;
|
|
242
|
-
last_event: "
|
|
242
|
+
last_event: "failed" | "delivered" | "opened" | "scheduled" | "sent" | "canceled" | "queued" | "suppressed" | "bounced" | "clicked" | "complained" | "delivery_delayed";
|
|
243
243
|
subject: string;
|
|
244
244
|
to: string[];
|
|
245
245
|
object: "email";
|
|
@@ -261,11 +261,11 @@ export declare const RESEND_ATTACHMENT_WIRE_SCHEMA: z.ZodObject<{
|
|
|
261
261
|
attachment: "attachment";
|
|
262
262
|
inline: "inline";
|
|
263
263
|
}>>;
|
|
264
|
-
content_id: z.ZodString
|
|
264
|
+
content_id: z.ZodOptional<z.ZodString>;
|
|
265
265
|
content_type: z.ZodString;
|
|
266
266
|
download_url: z.ZodURL;
|
|
267
267
|
expires_at: z.ZodString;
|
|
268
|
-
filename: z.ZodNullable<z.ZodString
|
|
268
|
+
filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
269
269
|
id: z.ZodString;
|
|
270
270
|
size: z.ZodNumber;
|
|
271
271
|
}, z.core.$strip>;
|
|
@@ -274,31 +274,31 @@ export declare const RESEND_ATTACHMENT_SCHEMA: z.ZodPipe<z.ZodObject<{
|
|
|
274
274
|
attachment: "attachment";
|
|
275
275
|
inline: "inline";
|
|
276
276
|
}>>;
|
|
277
|
-
content_id: z.ZodString
|
|
277
|
+
content_id: z.ZodOptional<z.ZodString>;
|
|
278
278
|
content_type: z.ZodString;
|
|
279
279
|
download_url: z.ZodURL;
|
|
280
280
|
expires_at: z.ZodString;
|
|
281
|
-
filename: z.ZodNullable<z.ZodString
|
|
281
|
+
filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
282
282
|
id: z.ZodString;
|
|
283
283
|
size: z.ZodNumber;
|
|
284
284
|
}, z.core.$strip>, z.ZodTransform<{
|
|
285
|
-
|
|
286
|
-
contentId: string;
|
|
285
|
+
filename?: string | null | undefined;
|
|
287
286
|
contentType: string;
|
|
288
287
|
downloadUrl: string;
|
|
289
288
|
expiresAt: string;
|
|
290
|
-
|
|
289
|
+
contentId?: string | undefined;
|
|
290
|
+
contentDisposition: "attachment" | "inline" | null;
|
|
291
291
|
id: string;
|
|
292
292
|
size: number;
|
|
293
293
|
}, {
|
|
294
294
|
content_disposition: "attachment" | "inline" | null;
|
|
295
|
-
content_id: string;
|
|
296
295
|
content_type: string;
|
|
297
296
|
download_url: string;
|
|
298
297
|
expires_at: string;
|
|
299
|
-
filename: string | null;
|
|
300
298
|
id: string;
|
|
301
299
|
size: number;
|
|
300
|
+
content_id?: string | undefined;
|
|
301
|
+
filename?: string | null | undefined;
|
|
302
302
|
}>>;
|
|
303
303
|
export declare const RESEND_RECEIVED_EMAIL_SUMMARY_WIRE_SCHEMA: z.ZodObject<{
|
|
304
304
|
attachments: z.ZodArray<z.ZodObject<{
|
|
@@ -614,8 +614,8 @@ export declare const RESEND_CONTACT_IMPORT_WIRE_SCHEMA: z.ZodObject<{
|
|
|
614
614
|
id: z.ZodString;
|
|
615
615
|
object: z.ZodLiteral<"contact_import">;
|
|
616
616
|
status: z.ZodEnum<{
|
|
617
|
-
completed: "completed";
|
|
618
617
|
failed: "failed";
|
|
618
|
+
completed: "completed";
|
|
619
619
|
in_progress: "in_progress";
|
|
620
620
|
queued: "queued";
|
|
621
621
|
}>;
|
|
@@ -633,8 +633,8 @@ export declare const RESEND_CONTACT_IMPORT_SCHEMA: z.ZodPipe<z.ZodObject<{
|
|
|
633
633
|
id: z.ZodString;
|
|
634
634
|
object: z.ZodLiteral<"contact_import">;
|
|
635
635
|
status: z.ZodEnum<{
|
|
636
|
-
completed: "completed";
|
|
637
636
|
failed: "failed";
|
|
637
|
+
completed: "completed";
|
|
638
638
|
in_progress: "in_progress";
|
|
639
639
|
queued: "queued";
|
|
640
640
|
}>;
|
|
@@ -643,7 +643,7 @@ export declare const RESEND_CONTACT_IMPORT_SCHEMA: z.ZodPipe<z.ZodObject<{
|
|
|
643
643
|
createdAt: string;
|
|
644
644
|
id: string;
|
|
645
645
|
object: "contact_import";
|
|
646
|
-
status: "
|
|
646
|
+
status: "failed" | "completed" | "in_progress" | "queued";
|
|
647
647
|
counts?: {
|
|
648
648
|
created: number;
|
|
649
649
|
failed: number;
|
|
@@ -655,7 +655,7 @@ export declare const RESEND_CONTACT_IMPORT_SCHEMA: z.ZodPipe<z.ZodObject<{
|
|
|
655
655
|
created_at: string;
|
|
656
656
|
id: string;
|
|
657
657
|
object: "contact_import";
|
|
658
|
-
status: "
|
|
658
|
+
status: "failed" | "completed" | "in_progress" | "queued";
|
|
659
659
|
completed_at?: string | null | undefined;
|
|
660
660
|
counts?: {
|
|
661
661
|
created: number;
|
|
@@ -92,21 +92,22 @@ export const RESEND_EMAIL_SCHEMA = RESEND_EMAIL_WIRE_SCHEMA.transform(({ created
|
|
|
92
92
|
}));
|
|
93
93
|
export const RESEND_ATTACHMENT_WIRE_SCHEMA = z.object({
|
|
94
94
|
content_disposition: z.enum(["attachment", "inline"]).nullable(),
|
|
95
|
-
content_id: z.string(),
|
|
95
|
+
content_id: z.string().optional(),
|
|
96
96
|
content_type: z.string(),
|
|
97
97
|
download_url: z.url(),
|
|
98
98
|
expires_at: z.string(),
|
|
99
|
-
filename: z.string().nullable(),
|
|
99
|
+
filename: z.string().nullable().optional(),
|
|
100
100
|
id: z.string(),
|
|
101
101
|
size: z.number().int().nonnegative(),
|
|
102
102
|
});
|
|
103
|
-
export const RESEND_ATTACHMENT_SCHEMA = RESEND_ATTACHMENT_WIRE_SCHEMA.transform(({ content_disposition: contentDisposition, content_id: contentId, content_type: contentType, download_url: downloadUrl, expires_at: expiresAt, ...attachment }) => ({
|
|
103
|
+
export const RESEND_ATTACHMENT_SCHEMA = RESEND_ATTACHMENT_WIRE_SCHEMA.transform(({ content_disposition: contentDisposition, content_id: contentId, content_type: contentType, download_url: downloadUrl, expires_at: expiresAt, filename, ...attachment }) => ({
|
|
104
104
|
...attachment,
|
|
105
105
|
contentDisposition,
|
|
106
|
-
contentId,
|
|
106
|
+
...(contentId === undefined ? {} : { contentId }),
|
|
107
107
|
contentType,
|
|
108
108
|
downloadUrl,
|
|
109
109
|
expiresAt,
|
|
110
|
+
...(filename === undefined ? {} : { filename }),
|
|
110
111
|
}));
|
|
111
112
|
const RESEND_RECEIVED_ATTACHMENT_WIRE_SCHEMA = z.object({
|
|
112
113
|
content_disposition: z.string().nullable(),
|
package/dist/triggers.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { airtableTriggerContracts } from "./airtable/index.js";
|
|
2
|
+
import type { automateTriggerContracts } from "./automate/index.js";
|
|
2
3
|
import type { asanaTriggerContracts } from "./asana/index.js";
|
|
3
4
|
import type { brevoTriggerContracts } from "./brevo/index.js";
|
|
4
5
|
import type { convexTriggerContracts } from "./convex/index.js";
|
|
@@ -20,7 +21,7 @@ import type { vercelTriggerContracts } from "./vercel/index.js";
|
|
|
20
21
|
import type { webflowTriggerContracts } from "./webflow/index.js";
|
|
21
22
|
import type { whatsappTriggerContracts } from "./whatsapp/index.js";
|
|
22
23
|
import type { z } from "zod";
|
|
23
|
-
export type TriggerContractMap = typeof airtableTriggerContracts & typeof asanaTriggerContracts & typeof brevoTriggerContracts & typeof convexTriggerContracts & typeof closeTriggerContracts & typeof githubTriggerContracts & typeof gmailTriggerContracts & typeof googleCalendarTriggerContracts & typeof googleFormsTriggerContracts & typeof googleMeetTriggerContracts & typeof linearTriggerContracts & typeof notionTriggerContracts & typeof outlookTriggerContracts & typeof resendTriggerContracts & typeof slackTriggerContracts & typeof stripeTriggerContracts & typeof teamsTriggerContracts & typeof trelloTriggerContracts & typeof vercelTriggerContracts & typeof webflowTriggerContracts & typeof whatsappTriggerContracts;
|
|
24
|
+
export type TriggerContractMap = typeof airtableTriggerContracts & typeof automateTriggerContracts & typeof asanaTriggerContracts & typeof brevoTriggerContracts & typeof convexTriggerContracts & typeof closeTriggerContracts & typeof githubTriggerContracts & typeof gmailTriggerContracts & typeof googleCalendarTriggerContracts & typeof googleFormsTriggerContracts & typeof googleMeetTriggerContracts & typeof linearTriggerContracts & typeof notionTriggerContracts & typeof outlookTriggerContracts & typeof resendTriggerContracts & typeof slackTriggerContracts & typeof stripeTriggerContracts & typeof teamsTriggerContracts & typeof trelloTriggerContracts & typeof vercelTriggerContracts & typeof webflowTriggerContracts & typeof whatsappTriggerContracts;
|
|
24
25
|
export type IntegrationTriggerType = keyof TriggerContractMap;
|
|
25
26
|
/** Canonical authoring configuration for one integration trigger type. */
|
|
26
27
|
export type TriggerConfig<TType extends IntegrationTriggerType> = z.input<TriggerContractMap[TType]["configSchema"]> extends Record<string, never> ? object : z.input<TriggerContractMap[TType]["configSchema"]>;
|
package/dist/whatsapp/index.d.ts
CHANGED
|
@@ -592,8 +592,8 @@ export declare const whatsappTriggerContracts: {
|
|
|
592
592
|
}, z.core.$strip>>;
|
|
593
593
|
recipient_id: z.ZodString;
|
|
594
594
|
status: z.ZodEnum<{
|
|
595
|
-
delivered: "delivered";
|
|
596
595
|
failed: "failed";
|
|
596
|
+
delivered: "delivered";
|
|
597
597
|
sent: "sent";
|
|
598
598
|
read: "read";
|
|
599
599
|
played: "played";
|
|
@@ -602,8 +602,8 @@ export declare const whatsappTriggerContracts: {
|
|
|
602
602
|
}, z.core.$strip>;
|
|
603
603
|
recipientId: z.ZodString;
|
|
604
604
|
status: z.ZodEnum<{
|
|
605
|
-
delivered: "delivered";
|
|
606
605
|
failed: "failed";
|
|
606
|
+
delivered: "delivered";
|
|
607
607
|
sent: "sent";
|
|
608
608
|
read: "read";
|
|
609
609
|
played: "played";
|