@automate.ax/integration-contracts 0.87.7 → 0.88.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/close/api.d.ts +54 -0
- package/dist/close/api.js +191 -0
- package/dist/close/events.d.ts +3216 -0
- package/dist/close/events.js +575 -0
- package/dist/close/index.d.ts +3 -0
- package/dist/close/index.js +3 -0
- package/dist/close/schemas.d.ts +1900 -0
- package/dist/close/schemas.js +950 -0
- package/dist/github/resources.d.ts +242 -242
- package/dist/google-calendar/schemas.d.ts +3 -3
- package/dist/google-forms/event-schemas.d.ts +4 -4
- package/dist/google-forms/google-forms.d.ts +4 -4
- package/dist/google-forms/index.d.ts +4 -4
- package/dist/google-forms/schemas.d.ts +14 -14
- package/dist/linear/schemas.d.ts +24 -24
- package/dist/triggers.d.ts +2 -1
- package/dist/whatsapp/index.d.ts +6 -6
- package/dist/whatsapp/schemas.d.ts +11 -11
- package/package.json +8 -2
- package/src/close/api.ts +240 -0
- package/src/close/events.ts +755 -0
- package/src/close/index.ts +3 -0
- package/src/close/schemas.ts +995 -0
- package/src/triggers.ts +2 -0
|
@@ -543,8 +543,8 @@ export declare const ACL_SCOPE_SCHEMA: z.ZodObject<{
|
|
|
543
543
|
type: z.ZodEnum<{
|
|
544
544
|
default: "default";
|
|
545
545
|
user: "user";
|
|
546
|
-
domain: "domain";
|
|
547
546
|
group: "group";
|
|
547
|
+
domain: "domain";
|
|
548
548
|
}>;
|
|
549
549
|
value: z.ZodOptional<z.ZodString>;
|
|
550
550
|
}, z.core.$strip>;
|
|
@@ -561,8 +561,8 @@ export declare const ACL_RULE_SCHEMA: z.ZodObject<{
|
|
|
561
561
|
type: z.ZodEnum<{
|
|
562
562
|
default: "default";
|
|
563
563
|
user: "user";
|
|
564
|
-
domain: "domain";
|
|
565
564
|
group: "group";
|
|
565
|
+
domain: "domain";
|
|
566
566
|
}>;
|
|
567
567
|
value: z.ZodOptional<z.ZodString>;
|
|
568
568
|
}, z.core.$strip>;
|
|
@@ -581,8 +581,8 @@ export declare const ACL_PAGE_SCHEMA: z.ZodObject<{
|
|
|
581
581
|
type: z.ZodEnum<{
|
|
582
582
|
default: "default";
|
|
583
583
|
user: "user";
|
|
584
|
-
domain: "domain";
|
|
585
584
|
group: "group";
|
|
585
|
+
domain: "domain";
|
|
586
586
|
}>;
|
|
587
587
|
value: z.ZodOptional<z.ZodString>;
|
|
588
588
|
}, z.core.$strip>;
|
|
@@ -53,6 +53,8 @@ export declare const GOOGLE_FORMS_FORM_CHANGED_EVENT_SCHEMA: z.ZodObject<{
|
|
|
53
53
|
type: z.ZodEnum<{
|
|
54
54
|
unknown: "unknown";
|
|
55
55
|
date: "date";
|
|
56
|
+
duration: "duration";
|
|
57
|
+
rating: "rating";
|
|
56
58
|
shortText: "shortText";
|
|
57
59
|
paragraph: "paragraph";
|
|
58
60
|
multipleChoice: "multipleChoice";
|
|
@@ -60,8 +62,6 @@ export declare const GOOGLE_FORMS_FORM_CHANGED_EVENT_SCHEMA: z.ZodObject<{
|
|
|
60
62
|
dropdown: "dropdown";
|
|
61
63
|
scale: "scale";
|
|
62
64
|
time: "time";
|
|
63
|
-
duration: "duration";
|
|
64
|
-
rating: "rating";
|
|
65
65
|
fileUpload: "fileUpload";
|
|
66
66
|
gridRow: "gridRow";
|
|
67
67
|
}>;
|
|
@@ -70,11 +70,11 @@ export declare const GOOGLE_FORMS_FORM_CHANGED_EVENT_SCHEMA: z.ZodObject<{
|
|
|
70
70
|
type: z.ZodEnum<{
|
|
71
71
|
unknown: "unknown";
|
|
72
72
|
text: "text";
|
|
73
|
+
image: "image";
|
|
74
|
+
video: "video";
|
|
73
75
|
question: "question";
|
|
74
76
|
grid: "grid";
|
|
75
77
|
pageBreak: "pageBreak";
|
|
76
|
-
image: "image";
|
|
77
|
-
video: "video";
|
|
78
78
|
}>;
|
|
79
79
|
}, z.core.$strip>>;
|
|
80
80
|
linkedSheetId: z.ZodOptional<z.ZodString>;
|
|
@@ -40,7 +40,7 @@ export declare function normalizeForm(form: forms_v1.Schema$Form): {
|
|
|
40
40
|
choices: string[];
|
|
41
41
|
questionId: string;
|
|
42
42
|
required: boolean;
|
|
43
|
-
type: "unknown" | "date" | "
|
|
43
|
+
type: "unknown" | "date" | "duration" | "rating" | "shortText" | "paragraph" | "multipleChoice" | "checkbox" | "dropdown" | "scale" | "time" | "fileUpload" | "gridRow";
|
|
44
44
|
date?: {
|
|
45
45
|
includeTime: boolean;
|
|
46
46
|
includeYear: boolean;
|
|
@@ -73,7 +73,7 @@ export declare function normalizeForm(form: forms_v1.Schema$Form): {
|
|
|
73
73
|
} | undefined;
|
|
74
74
|
}[];
|
|
75
75
|
title: string;
|
|
76
|
-
type: "unknown" | "text" | "
|
|
76
|
+
type: "unknown" | "text" | "image" | "video" | "question" | "grid" | "pageBreak";
|
|
77
77
|
description?: string | undefined;
|
|
78
78
|
}[];
|
|
79
79
|
settings: {
|
|
@@ -104,7 +104,7 @@ export declare function normalizeFormItem(item: forms_v1.Schema$Item, index: num
|
|
|
104
104
|
choices: string[];
|
|
105
105
|
questionId: string;
|
|
106
106
|
required: boolean;
|
|
107
|
-
type: "unknown" | "date" | "
|
|
107
|
+
type: "unknown" | "date" | "duration" | "rating" | "shortText" | "paragraph" | "multipleChoice" | "checkbox" | "dropdown" | "scale" | "time" | "fileUpload" | "gridRow";
|
|
108
108
|
date?: {
|
|
109
109
|
includeTime: boolean;
|
|
110
110
|
includeYear: boolean;
|
|
@@ -137,7 +137,7 @@ export declare function normalizeFormItem(item: forms_v1.Schema$Item, index: num
|
|
|
137
137
|
} | undefined;
|
|
138
138
|
}[];
|
|
139
139
|
title: string;
|
|
140
|
-
type: "unknown" | "text" | "
|
|
140
|
+
type: "unknown" | "text" | "image" | "video" | "question" | "grid" | "pageBreak";
|
|
141
141
|
description?: string | undefined;
|
|
142
142
|
};
|
|
143
143
|
/**
|
|
@@ -55,6 +55,8 @@ export declare const googleFormsTriggerContracts: {
|
|
|
55
55
|
type: z.ZodEnum<{
|
|
56
56
|
unknown: "unknown";
|
|
57
57
|
date: "date";
|
|
58
|
+
duration: "duration";
|
|
59
|
+
rating: "rating";
|
|
58
60
|
shortText: "shortText";
|
|
59
61
|
paragraph: "paragraph";
|
|
60
62
|
multipleChoice: "multipleChoice";
|
|
@@ -62,8 +64,6 @@ export declare const googleFormsTriggerContracts: {
|
|
|
62
64
|
dropdown: "dropdown";
|
|
63
65
|
scale: "scale";
|
|
64
66
|
time: "time";
|
|
65
|
-
duration: "duration";
|
|
66
|
-
rating: "rating";
|
|
67
67
|
fileUpload: "fileUpload";
|
|
68
68
|
gridRow: "gridRow";
|
|
69
69
|
}>;
|
|
@@ -72,11 +72,11 @@ export declare const googleFormsTriggerContracts: {
|
|
|
72
72
|
type: z.ZodEnum<{
|
|
73
73
|
unknown: "unknown";
|
|
74
74
|
text: "text";
|
|
75
|
+
image: "image";
|
|
76
|
+
video: "video";
|
|
75
77
|
question: "question";
|
|
76
78
|
grid: "grid";
|
|
77
79
|
pageBreak: "pageBreak";
|
|
78
|
-
image: "image";
|
|
79
|
-
video: "video";
|
|
80
80
|
}>;
|
|
81
81
|
}, z.core.$strip>>;
|
|
82
82
|
linkedSheetId: z.ZodOptional<z.ZodString>;
|
|
@@ -275,6 +275,8 @@ export declare const NORMALIZED_QUESTION_SCHEMA: z.ZodObject<{
|
|
|
275
275
|
type: z.ZodEnum<{
|
|
276
276
|
unknown: "unknown";
|
|
277
277
|
date: "date";
|
|
278
|
+
duration: "duration";
|
|
279
|
+
rating: "rating";
|
|
278
280
|
shortText: "shortText";
|
|
279
281
|
paragraph: "paragraph";
|
|
280
282
|
multipleChoice: "multipleChoice";
|
|
@@ -282,8 +284,6 @@ export declare const NORMALIZED_QUESTION_SCHEMA: z.ZodObject<{
|
|
|
282
284
|
dropdown: "dropdown";
|
|
283
285
|
scale: "scale";
|
|
284
286
|
time: "time";
|
|
285
|
-
duration: "duration";
|
|
286
|
-
rating: "rating";
|
|
287
287
|
fileUpload: "fileUpload";
|
|
288
288
|
gridRow: "gridRow";
|
|
289
289
|
}>;
|
|
@@ -329,6 +329,8 @@ export declare const FORM_ITEM_SCHEMA: z.ZodObject<{
|
|
|
329
329
|
type: z.ZodEnum<{
|
|
330
330
|
unknown: "unknown";
|
|
331
331
|
date: "date";
|
|
332
|
+
duration: "duration";
|
|
333
|
+
rating: "rating";
|
|
332
334
|
shortText: "shortText";
|
|
333
335
|
paragraph: "paragraph";
|
|
334
336
|
multipleChoice: "multipleChoice";
|
|
@@ -336,8 +338,6 @@ export declare const FORM_ITEM_SCHEMA: z.ZodObject<{
|
|
|
336
338
|
dropdown: "dropdown";
|
|
337
339
|
scale: "scale";
|
|
338
340
|
time: "time";
|
|
339
|
-
duration: "duration";
|
|
340
|
-
rating: "rating";
|
|
341
341
|
fileUpload: "fileUpload";
|
|
342
342
|
gridRow: "gridRow";
|
|
343
343
|
}>;
|
|
@@ -346,11 +346,11 @@ export declare const FORM_ITEM_SCHEMA: z.ZodObject<{
|
|
|
346
346
|
type: z.ZodEnum<{
|
|
347
347
|
unknown: "unknown";
|
|
348
348
|
text: "text";
|
|
349
|
+
image: "image";
|
|
350
|
+
video: "video";
|
|
349
351
|
question: "question";
|
|
350
352
|
grid: "grid";
|
|
351
353
|
pageBreak: "pageBreak";
|
|
352
|
-
image: "image";
|
|
353
|
-
video: "video";
|
|
354
354
|
}>;
|
|
355
355
|
}, z.core.$strip>;
|
|
356
356
|
export declare const FORM_SCHEMA: z.ZodObject<{
|
|
@@ -397,6 +397,8 @@ export declare const FORM_SCHEMA: z.ZodObject<{
|
|
|
397
397
|
type: z.ZodEnum<{
|
|
398
398
|
unknown: "unknown";
|
|
399
399
|
date: "date";
|
|
400
|
+
duration: "duration";
|
|
401
|
+
rating: "rating";
|
|
400
402
|
shortText: "shortText";
|
|
401
403
|
paragraph: "paragraph";
|
|
402
404
|
multipleChoice: "multipleChoice";
|
|
@@ -404,8 +406,6 @@ export declare const FORM_SCHEMA: z.ZodObject<{
|
|
|
404
406
|
dropdown: "dropdown";
|
|
405
407
|
scale: "scale";
|
|
406
408
|
time: "time";
|
|
407
|
-
duration: "duration";
|
|
408
|
-
rating: "rating";
|
|
409
409
|
fileUpload: "fileUpload";
|
|
410
410
|
gridRow: "gridRow";
|
|
411
411
|
}>;
|
|
@@ -414,11 +414,11 @@ export declare const FORM_SCHEMA: z.ZodObject<{
|
|
|
414
414
|
type: z.ZodEnum<{
|
|
415
415
|
unknown: "unknown";
|
|
416
416
|
text: "text";
|
|
417
|
+
image: "image";
|
|
418
|
+
video: "video";
|
|
417
419
|
question: "question";
|
|
418
420
|
grid: "grid";
|
|
419
421
|
pageBreak: "pageBreak";
|
|
420
|
-
image: "image";
|
|
421
|
-
video: "video";
|
|
422
422
|
}>;
|
|
423
423
|
}, z.core.$strip>>;
|
|
424
424
|
linkedSheetId: z.ZodOptional<z.ZodString>;
|
|
@@ -566,6 +566,8 @@ export declare const FORM_BATCH_UPDATE_SCHEMA: z.ZodObject<{
|
|
|
566
566
|
type: z.ZodEnum<{
|
|
567
567
|
unknown: "unknown";
|
|
568
568
|
date: "date";
|
|
569
|
+
duration: "duration";
|
|
570
|
+
rating: "rating";
|
|
569
571
|
shortText: "shortText";
|
|
570
572
|
paragraph: "paragraph";
|
|
571
573
|
multipleChoice: "multipleChoice";
|
|
@@ -573,8 +575,6 @@ export declare const FORM_BATCH_UPDATE_SCHEMA: z.ZodObject<{
|
|
|
573
575
|
dropdown: "dropdown";
|
|
574
576
|
scale: "scale";
|
|
575
577
|
time: "time";
|
|
576
|
-
duration: "duration";
|
|
577
|
-
rating: "rating";
|
|
578
578
|
fileUpload: "fileUpload";
|
|
579
579
|
gridRow: "gridRow";
|
|
580
580
|
}>;
|
|
@@ -583,11 +583,11 @@ export declare const FORM_BATCH_UPDATE_SCHEMA: z.ZodObject<{
|
|
|
583
583
|
type: z.ZodEnum<{
|
|
584
584
|
unknown: "unknown";
|
|
585
585
|
text: "text";
|
|
586
|
+
image: "image";
|
|
587
|
+
video: "video";
|
|
586
588
|
question: "question";
|
|
587
589
|
grid: "grid";
|
|
588
590
|
pageBreak: "pageBreak";
|
|
589
|
-
image: "image";
|
|
590
|
-
video: "video";
|
|
591
591
|
}>;
|
|
592
592
|
}, z.core.$strip>>;
|
|
593
593
|
linkedSheetId: z.ZodOptional<z.ZodString>;
|
package/dist/linear/schemas.d.ts
CHANGED
|
@@ -1421,8 +1421,8 @@ export declare const LINEAR_ISSUE_REFERENCE_SCHEMA: z.ZodObject<{
|
|
|
1421
1421
|
/** Lifecycle states returned for Linear agent sessions. */
|
|
1422
1422
|
export declare const LINEAR_AGENT_SESSION_STATUS_SCHEMA: z.ZodEnum<{
|
|
1423
1423
|
error: "error";
|
|
1424
|
-
pending: "pending";
|
|
1425
1424
|
active: "active";
|
|
1425
|
+
pending: "pending";
|
|
1426
1426
|
stale: "stale";
|
|
1427
1427
|
awaitingInput: "awaitingInput";
|
|
1428
1428
|
complete: "complete";
|
|
@@ -1430,18 +1430,18 @@ export declare const LINEAR_AGENT_SESSION_STATUS_SCHEMA: z.ZodEnum<{
|
|
|
1430
1430
|
/** Lifecycle states returned for one Linear agent-session plan step. */
|
|
1431
1431
|
export declare const LINEAR_AGENT_SESSION_PLAN_ITEM_STATUS_SCHEMA: z.ZodEnum<{
|
|
1432
1432
|
completed: "completed";
|
|
1433
|
+
canceled: "canceled";
|
|
1433
1434
|
pending: "pending";
|
|
1434
1435
|
inProgress: "inProgress";
|
|
1435
|
-
canceled: "canceled";
|
|
1436
1436
|
}>;
|
|
1437
1437
|
/** One step in a Linear agent session's execution plan. */
|
|
1438
1438
|
export declare const LINEAR_AGENT_SESSION_PLAN_ITEM_SCHEMA: z.ZodObject<{
|
|
1439
1439
|
content: z.ZodString;
|
|
1440
1440
|
status: z.ZodEnum<{
|
|
1441
1441
|
completed: "completed";
|
|
1442
|
+
canceled: "canceled";
|
|
1442
1443
|
pending: "pending";
|
|
1443
1444
|
inProgress: "inProgress";
|
|
1444
|
-
canceled: "canceled";
|
|
1445
1445
|
}>;
|
|
1446
1446
|
}, z.core.$strip>;
|
|
1447
1447
|
/** One coding or other agent session attached to a Linear issue. */
|
|
@@ -1472,17 +1472,17 @@ export declare const LINEAR_AGENT_SESSION_SCHEMA: z.ZodObject<{
|
|
|
1472
1472
|
content: z.ZodString;
|
|
1473
1473
|
status: z.ZodEnum<{
|
|
1474
1474
|
completed: "completed";
|
|
1475
|
+
canceled: "canceled";
|
|
1475
1476
|
pending: "pending";
|
|
1476
1477
|
inProgress: "inProgress";
|
|
1477
|
-
canceled: "canceled";
|
|
1478
1478
|
}>;
|
|
1479
1479
|
}, z.core.$strip>>>;
|
|
1480
1480
|
slugId: z.ZodString;
|
|
1481
1481
|
startedAt: z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>>;
|
|
1482
1482
|
status: z.ZodEnum<{
|
|
1483
1483
|
error: "error";
|
|
1484
|
-
pending: "pending";
|
|
1485
1484
|
active: "active";
|
|
1485
|
+
pending: "pending";
|
|
1486
1486
|
stale: "stale";
|
|
1487
1487
|
awaitingInput: "awaitingInput";
|
|
1488
1488
|
complete: "complete";
|
|
@@ -1713,9 +1713,19 @@ export declare const LINEAR_PROVIDER_PROJECT_SCHEMA: z.ZodObject<{
|
|
|
1713
1713
|
name: z.ZodString;
|
|
1714
1714
|
type: z.ZodString;
|
|
1715
1715
|
}, z.core.$strip>;
|
|
1716
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
1717
|
+
state: z.ZodString;
|
|
1718
|
+
lead: z.ZodNullable<z.ZodObject<{
|
|
1719
|
+
active: z.ZodBoolean;
|
|
1720
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
1721
|
+
displayName: z.ZodString;
|
|
1722
|
+
email: z.ZodString;
|
|
1723
|
+
id: z.ZodString;
|
|
1724
|
+
name: z.ZodString;
|
|
1725
|
+
}, z.core.$strip>>;
|
|
1716
1726
|
priority: z.ZodNumber;
|
|
1717
|
-
content: z.ZodNullable<z.ZodString>;
|
|
1718
1727
|
startDate: z.ZodNullable<z.ZodISODate>;
|
|
1728
|
+
content: z.ZodNullable<z.ZodString>;
|
|
1719
1729
|
creator: z.ZodNullable<z.ZodObject<{
|
|
1720
1730
|
active: z.ZodBoolean;
|
|
1721
1731
|
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -1724,23 +1734,13 @@ export declare const LINEAR_PROVIDER_PROJECT_SCHEMA: z.ZodObject<{
|
|
|
1724
1734
|
id: z.ZodString;
|
|
1725
1735
|
name: z.ZodString;
|
|
1726
1736
|
}, z.core.$strip>>;
|
|
1727
|
-
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
1728
1737
|
scope: z.ZodNumber;
|
|
1729
1738
|
icon: z.ZodNullable<z.ZodString>;
|
|
1730
|
-
state: z.ZodString;
|
|
1731
1739
|
identifier: z.ZodNullable<z.ZodString>;
|
|
1732
1740
|
archivedAt: z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>>;
|
|
1733
1741
|
canceledAt: z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>>;
|
|
1734
1742
|
priorityLabel: z.ZodString;
|
|
1735
1743
|
startedAt: z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>>;
|
|
1736
|
-
lead: z.ZodNullable<z.ZodObject<{
|
|
1737
|
-
active: z.ZodBoolean;
|
|
1738
|
-
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
1739
|
-
displayName: z.ZodString;
|
|
1740
|
-
email: z.ZodString;
|
|
1741
|
-
id: z.ZodString;
|
|
1742
|
-
name: z.ZodString;
|
|
1743
|
-
}, z.core.$strip>>;
|
|
1744
1744
|
slugId: z.ZodString;
|
|
1745
1745
|
targetDate: z.ZodNullable<z.ZodISODate>;
|
|
1746
1746
|
progress: z.ZodNumber;
|
|
@@ -1810,6 +1810,14 @@ export declare const LINEAR_PROVIDER_ISSUE_SCHEMA: z.ZodObject<{
|
|
|
1810
1810
|
title: z.ZodString;
|
|
1811
1811
|
description: z.ZodNullable<z.ZodString>;
|
|
1812
1812
|
url: z.ZodString;
|
|
1813
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
1814
|
+
state: z.ZodObject<{
|
|
1815
|
+
color: z.ZodString;
|
|
1816
|
+
id: z.ZodString;
|
|
1817
|
+
name: z.ZodString;
|
|
1818
|
+
type: z.ZodString;
|
|
1819
|
+
}, z.core.$strip>;
|
|
1820
|
+
dueDate: z.ZodNullable<z.ZodISODate>;
|
|
1813
1821
|
priority: z.ZodNumber;
|
|
1814
1822
|
creator: z.ZodNullable<z.ZodObject<{
|
|
1815
1823
|
active: z.ZodBoolean;
|
|
@@ -1819,17 +1827,9 @@ export declare const LINEAR_PROVIDER_ISSUE_SCHEMA: z.ZodObject<{
|
|
|
1819
1827
|
id: z.ZodString;
|
|
1820
1828
|
name: z.ZodString;
|
|
1821
1829
|
}, z.core.$strip>>;
|
|
1822
|
-
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
1823
|
-
state: z.ZodObject<{
|
|
1824
|
-
color: z.ZodString;
|
|
1825
|
-
id: z.ZodString;
|
|
1826
|
-
name: z.ZodString;
|
|
1827
|
-
type: z.ZodString;
|
|
1828
|
-
}, z.core.$strip>;
|
|
1829
1830
|
identifier: z.ZodString;
|
|
1830
1831
|
archivedAt: z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>>;
|
|
1831
1832
|
canceledAt: z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>>;
|
|
1832
|
-
dueDate: z.ZodNullable<z.ZodISODate>;
|
|
1833
1833
|
estimate: z.ZodNullable<z.ZodNumber>;
|
|
1834
1834
|
priorityLabel: z.ZodString;
|
|
1835
1835
|
startedAt: z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>>;
|
package/dist/triggers.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { airtableTriggerContracts } from "./airtable/index.js";
|
|
|
2
2
|
import type { asanaTriggerContracts } from "./asana/index.js";
|
|
3
3
|
import type { brevoTriggerContracts } from "./brevo/index.js";
|
|
4
4
|
import type { convexTriggerContracts } from "./convex/index.js";
|
|
5
|
+
import type { closeTriggerContracts } from "./close/index.js";
|
|
5
6
|
import type { githubTriggerContracts } from "./github/index.js";
|
|
6
7
|
import type { gmailTriggerContracts } from "./gmail/index.js";
|
|
7
8
|
import type { googleCalendarTriggerContracts } from "./google-calendar/index.js";
|
|
@@ -18,7 +19,7 @@ import type { vercelTriggerContracts } from "./vercel/index.js";
|
|
|
18
19
|
import type { webflowTriggerContracts } from "./webflow/index.js";
|
|
19
20
|
import type { whatsappTriggerContracts } from "./whatsapp/index.js";
|
|
20
21
|
import type { z } from "zod";
|
|
21
|
-
export type TriggerContractMap = typeof airtableTriggerContracts & typeof asanaTriggerContracts & typeof brevoTriggerContracts & typeof convexTriggerContracts & typeof githubTriggerContracts & typeof gmailTriggerContracts & typeof googleCalendarTriggerContracts & typeof googleFormsTriggerContracts & typeof googleMeetTriggerContracts & typeof linearTriggerContracts & typeof outlookTriggerContracts & typeof resendTriggerContracts & typeof slackTriggerContracts & typeof stripeTriggerContracts & typeof teamsTriggerContracts & typeof trelloTriggerContracts & typeof vercelTriggerContracts & typeof webflowTriggerContracts & typeof whatsappTriggerContracts;
|
|
22
|
+
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 outlookTriggerContracts & typeof resendTriggerContracts & typeof slackTriggerContracts & typeof stripeTriggerContracts & typeof teamsTriggerContracts & typeof trelloTriggerContracts & typeof vercelTriggerContracts & typeof webflowTriggerContracts & typeof whatsappTriggerContracts;
|
|
22
23
|
export type IntegrationTriggerType = keyof TriggerContractMap;
|
|
23
24
|
/** Canonical authoring configuration for one integration trigger type. */
|
|
24
25
|
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
|
@@ -325,12 +325,12 @@ export declare const whatsappTriggerContracts: {
|
|
|
325
325
|
unknown: "unknown";
|
|
326
326
|
text: "text";
|
|
327
327
|
document: "document";
|
|
328
|
-
|
|
329
|
-
location: "location";
|
|
328
|
+
audio: "audio";
|
|
330
329
|
image: "image";
|
|
331
330
|
video: "video";
|
|
331
|
+
location: "location";
|
|
332
|
+
system: "system";
|
|
332
333
|
reaction: "reaction";
|
|
333
|
-
audio: "audio";
|
|
334
334
|
button: "button";
|
|
335
335
|
contacts: "contacts";
|
|
336
336
|
interactive: "interactive";
|
|
@@ -420,12 +420,12 @@ export declare const whatsappTriggerContracts: {
|
|
|
420
420
|
unknown: "unknown";
|
|
421
421
|
text: "text";
|
|
422
422
|
document: "document";
|
|
423
|
-
|
|
424
|
-
location: "location";
|
|
423
|
+
audio: "audio";
|
|
425
424
|
image: "image";
|
|
426
425
|
video: "video";
|
|
426
|
+
location: "location";
|
|
427
|
+
system: "system";
|
|
427
428
|
reaction: "reaction";
|
|
428
|
-
audio: "audio";
|
|
429
429
|
button: "button";
|
|
430
430
|
contacts: "contacts";
|
|
431
431
|
interactive: "interactive";
|
|
@@ -91,12 +91,12 @@ export declare const WHATSAPP_WEBHOOK_SCHEMA: z.ZodObject<{
|
|
|
91
91
|
unknown: "unknown";
|
|
92
92
|
text: "text";
|
|
93
93
|
document: "document";
|
|
94
|
-
|
|
95
|
-
location: "location";
|
|
94
|
+
audio: "audio";
|
|
96
95
|
image: "image";
|
|
97
96
|
video: "video";
|
|
97
|
+
location: "location";
|
|
98
|
+
system: "system";
|
|
98
99
|
reaction: "reaction";
|
|
99
|
-
audio: "audio";
|
|
100
100
|
button: "button";
|
|
101
101
|
contacts: "contacts";
|
|
102
102
|
interactive: "interactive";
|
|
@@ -184,12 +184,12 @@ export declare const WHATSAPP_MESSAGE_RECEIVED_EVENT_SCHEMA: z.ZodObject<{
|
|
|
184
184
|
unknown: "unknown";
|
|
185
185
|
text: "text";
|
|
186
186
|
document: "document";
|
|
187
|
-
|
|
188
|
-
location: "location";
|
|
187
|
+
audio: "audio";
|
|
189
188
|
image: "image";
|
|
190
189
|
video: "video";
|
|
190
|
+
location: "location";
|
|
191
|
+
system: "system";
|
|
191
192
|
reaction: "reaction";
|
|
192
|
-
audio: "audio";
|
|
193
193
|
button: "button";
|
|
194
194
|
contacts: "contacts";
|
|
195
195
|
interactive: "interactive";
|
|
@@ -279,12 +279,12 @@ export declare const WHATSAPP_MESSAGE_RECEIVED_EVENT_SCHEMA: z.ZodObject<{
|
|
|
279
279
|
unknown: "unknown";
|
|
280
280
|
text: "text";
|
|
281
281
|
document: "document";
|
|
282
|
-
|
|
283
|
-
location: "location";
|
|
282
|
+
audio: "audio";
|
|
284
283
|
image: "image";
|
|
285
284
|
video: "video";
|
|
285
|
+
location: "location";
|
|
286
|
+
system: "system";
|
|
286
287
|
reaction: "reaction";
|
|
287
|
-
audio: "audio";
|
|
288
288
|
button: "button";
|
|
289
289
|
contacts: "contacts";
|
|
290
290
|
interactive: "interactive";
|
|
@@ -768,7 +768,7 @@ export declare function normalizeWhatsAppWebhook(input: unknown): {
|
|
|
768
768
|
message: {
|
|
769
769
|
id: string;
|
|
770
770
|
timestamp: string;
|
|
771
|
-
type: "unknown" | "text" | "document" | "
|
|
771
|
+
type: "unknown" | "text" | "document" | "audio" | "image" | "video" | "location" | "system" | "reaction" | "button" | "contacts" | "interactive" | "order" | "sticker" | "unsupported";
|
|
772
772
|
content?: z.core.util.JSONType | undefined;
|
|
773
773
|
context?: {
|
|
774
774
|
messageId: string;
|
|
@@ -781,7 +781,7 @@ export declare function normalizeWhatsAppWebhook(input: unknown): {
|
|
|
781
781
|
from: string;
|
|
782
782
|
id: string;
|
|
783
783
|
timestamp: string;
|
|
784
|
-
type: "unknown" | "text" | "document" | "
|
|
784
|
+
type: "unknown" | "text" | "document" | "audio" | "image" | "video" | "location" | "system" | "reaction" | "button" | "contacts" | "interactive" | "order" | "sticker" | "unsupported";
|
|
785
785
|
audio?: {
|
|
786
786
|
id: string;
|
|
787
787
|
mime_type?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/integration-contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.88.0",
|
|
4
4
|
"description": "Shared integration payload contracts and provider primitives for Automate.ax.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"./asana": "./src/asana/index.ts",
|
|
23
23
|
"./brevo": "./src/brevo/index.ts",
|
|
24
24
|
"./convex": "./src/convex/index.ts",
|
|
25
|
+
"./close": "./src/close/index.ts",
|
|
25
26
|
"./gmail": "./src/gmail/index.ts",
|
|
26
27
|
"./google-calendar": "./src/google-calendar/index.ts",
|
|
27
28
|
"./google-forms": "./src/google-forms/index.ts",
|
|
@@ -45,7 +46,7 @@
|
|
|
45
46
|
}
|
|
46
47
|
},
|
|
47
48
|
"dependencies": {
|
|
48
|
-
"@automate.ax/codec": "0.
|
|
49
|
+
"@automate.ax/codec": "0.88.0",
|
|
49
50
|
"@googleapis/calendar": "^15.0.0",
|
|
50
51
|
"@googleapis/forms": "^6.0.1",
|
|
51
52
|
"@googleapis/gmail": "^12.0.0",
|
|
@@ -112,6 +113,11 @@
|
|
|
112
113
|
"types": "./dist/convex/index.d.ts",
|
|
113
114
|
"default": "./dist/convex/index.js"
|
|
114
115
|
},
|
|
116
|
+
"./close": {
|
|
117
|
+
"bun": "./src/close/index.ts",
|
|
118
|
+
"types": "./dist/close/index.d.ts",
|
|
119
|
+
"default": "./dist/close/index.js"
|
|
120
|
+
},
|
|
115
121
|
"./gmail": {
|
|
116
122
|
"bun": "./src/gmail/index.ts",
|
|
117
123
|
"types": "./dist/gmail/index.d.ts",
|