@automate.ax/integration-contracts 0.55.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.
Files changed (136) hide show
  1. package/dist/airtable/api.d.ts +19 -0
  2. package/dist/airtable/api.js +44 -0
  3. package/dist/airtable/index.d.ts +353 -0
  4. package/dist/airtable/index.js +32 -0
  5. package/dist/airtable/schemas.d.ts +716 -0
  6. package/dist/airtable/schemas.js +184 -0
  7. package/dist/asana/api.d.ts +70 -0
  8. package/dist/asana/api.js +119 -0
  9. package/dist/asana/index.d.ts +384 -0
  10. package/dist/asana/index.js +38 -0
  11. package/dist/asana/schemas.d.ts +1060 -0
  12. package/dist/asana/schemas.js +512 -0
  13. package/dist/brevo/api.d.ts +31 -0
  14. package/dist/brevo/api.js +64 -0
  15. package/dist/brevo/index.d.ts +822 -0
  16. package/dist/brevo/index.js +51 -0
  17. package/dist/brevo/schemas.d.ts +1217 -0
  18. package/dist/brevo/schemas.js +332 -0
  19. package/dist/github/index.d.ts +37 -0
  20. package/dist/github/index.js +106 -0
  21. package/dist/github/schemas.d.ts +8014 -0
  22. package/dist/github/schemas.js +113 -0
  23. package/dist/gmail/gmail.d.ts +172 -0
  24. package/dist/gmail/gmail.js +405 -0
  25. package/dist/gmail/index.d.ts +262 -0
  26. package/dist/gmail/index.js +23 -0
  27. package/dist/gmail/schemas.d.ts +444 -0
  28. package/dist/gmail/schemas.js +242 -0
  29. package/dist/google-calendar/event-schemas.d.ts +117 -0
  30. package/dist/google-calendar/event-schemas.js +13 -0
  31. package/dist/google-calendar/google-calendar.d.ts +147 -0
  32. package/dist/google-calendar/google-calendar.js +583 -0
  33. package/dist/google-calendar/index.d.ts +365 -0
  34. package/dist/google-calendar/index.js +24 -0
  35. package/dist/google-calendar/schemas.d.ts +592 -0
  36. package/dist/google-calendar/schemas.js +379 -0
  37. package/dist/google-forms/event-schemas.d.ts +105 -0
  38. package/dist/google-forms/event-schemas.js +20 -0
  39. package/dist/google-forms/google-forms.d.ts +243 -0
  40. package/dist/google-forms/google-forms.js +581 -0
  41. package/dist/google-forms/index.d.ts +141 -0
  42. package/dist/google-forms/index.js +20 -0
  43. package/dist/google-forms/schemas.d.ts +618 -0
  44. package/dist/google-forms/schemas.js +383 -0
  45. package/dist/linear/api.d.ts +63 -0
  46. package/dist/linear/api.js +88 -0
  47. package/dist/linear/index.d.ts +1338 -0
  48. package/dist/linear/index.js +55 -0
  49. package/dist/linear/schemas.d.ts +1795 -0
  50. package/dist/linear/schemas.js +760 -0
  51. package/dist/outlook/graph.d.ts +34 -0
  52. package/dist/outlook/graph.js +98 -0
  53. package/dist/outlook/index.d.ts +115 -0
  54. package/dist/outlook/index.js +11 -0
  55. package/dist/outlook/schemas.d.ts +529 -0
  56. package/dist/outlook/schemas.js +312 -0
  57. package/dist/resend/index.d.ts +707 -0
  58. package/dist/resend/index.js +54 -0
  59. package/dist/resend/schemas.d.ts +1033 -0
  60. package/dist/resend/schemas.js +377 -0
  61. package/dist/slack/index.d.ts +151 -0
  62. package/dist/slack/index.js +22 -0
  63. package/dist/slack/schemas.d.ts +641 -0
  64. package/dist/slack/schemas.js +581 -0
  65. package/dist/teams/graph.d.ts +33 -0
  66. package/dist/teams/graph.js +95 -0
  67. package/dist/teams/index.d.ts +164 -0
  68. package/dist/teams/index.js +21 -0
  69. package/dist/teams/schemas.d.ts +675 -0
  70. package/dist/teams/schemas.js +365 -0
  71. package/dist/trello/api.d.ts +69 -0
  72. package/dist/trello/api.js +140 -0
  73. package/dist/trello/event-schemas.d.ts +1101 -0
  74. package/dist/trello/event-schemas.js +233 -0
  75. package/dist/trello/index.d.ts +721 -0
  76. package/dist/trello/index.js +35 -0
  77. package/dist/trello/schemas.d.ts +283 -0
  78. package/dist/trello/schemas.js +401 -0
  79. package/dist/triggers.d.ts +26 -0
  80. package/dist/triggers.js +33 -0
  81. package/dist/vercel/index.d.ts +1065 -0
  82. package/dist/vercel/index.js +114 -0
  83. package/dist/vercel/schemas.d.ts +1518 -0
  84. package/dist/vercel/schemas.js +335 -0
  85. package/dist/whatsapp/api.d.ts +62 -0
  86. package/dist/whatsapp/api.js +121 -0
  87. package/dist/whatsapp/index.d.ts +614 -0
  88. package/dist/whatsapp/index.js +35 -0
  89. package/dist/whatsapp/schemas.d.ts +926 -0
  90. package/dist/whatsapp/schemas.js +326 -0
  91. package/package.json +169 -0
  92. package/src/airtable/api.ts +66 -0
  93. package/src/airtable/index.ts +41 -0
  94. package/src/airtable/schemas.ts +231 -0
  95. package/src/asana/api.ts +171 -0
  96. package/src/asana/index.ts +49 -0
  97. package/src/asana/schemas.ts +655 -0
  98. package/src/brevo/api.ts +89 -0
  99. package/src/brevo/index.ts +66 -0
  100. package/src/brevo/schemas.ts +449 -0
  101. package/src/github/index.ts +217 -0
  102. package/src/github/schemas.ts +435 -0
  103. package/src/gmail/gmail.ts +577 -0
  104. package/src/gmail/index.ts +26 -0
  105. package/src/gmail/schemas.ts +327 -0
  106. package/src/google-calendar/event-schemas.ts +16 -0
  107. package/src/google-calendar/google-calendar.ts +727 -0
  108. package/src/google-calendar/index.ts +27 -0
  109. package/src/google-calendar/schemas.ts +529 -0
  110. package/src/google-forms/event-schemas.ts +26 -0
  111. package/src/google-forms/google-forms.ts +683 -0
  112. package/src/google-forms/index.ts +23 -0
  113. package/src/google-forms/schemas.ts +499 -0
  114. package/src/linear/api.ts +141 -0
  115. package/src/linear/index.ts +71 -0
  116. package/src/linear/schemas.ts +1060 -0
  117. package/src/outlook/graph.ts +132 -0
  118. package/src/outlook/index.ts +14 -0
  119. package/src/outlook/schemas.ts +388 -0
  120. package/src/resend/index.ts +70 -0
  121. package/src/resend/schemas.ts +462 -0
  122. package/src/slack/index.ts +29 -0
  123. package/src/slack/schemas.ts +737 -0
  124. package/src/teams/graph.ts +130 -0
  125. package/src/teams/index.ts +27 -0
  126. package/src/teams/schemas.ts +463 -0
  127. package/src/trello/api.ts +190 -0
  128. package/src/trello/event-schemas.ts +290 -0
  129. package/src/trello/index.ts +45 -0
  130. package/src/trello/schemas.ts +507 -0
  131. package/src/triggers.ts +68 -0
  132. package/src/vercel/index.ts +147 -0
  133. package/src/vercel/schemas.ts +594 -0
  134. package/src/whatsapp/api.ts +171 -0
  135. package/src/whatsapp/index.ts +46 -0
  136. package/src/whatsapp/schemas.ts +341 -0
@@ -0,0 +1,262 @@
1
+ import { z } from "zod";
2
+ export * from "./gmail.js";
3
+ export * from "./schemas.js";
4
+ export declare const GMAIL_TRIGGER_CONFIG_SCHEMA: z.ZodObject<{}, z.core.$strip>;
5
+ export declare const gmailTriggerContracts: {
6
+ readonly "gmail.label.added": {
7
+ readonly configSchema: z.ZodObject<{}, z.core.$strip>;
8
+ readonly eventSchema: z.ZodObject<{
9
+ labels: z.ZodArray<z.ZodObject<{
10
+ labelId: z.ZodString;
11
+ name: z.ZodOptional<z.ZodString>;
12
+ }, z.core.$strip>>;
13
+ message: z.ZodObject<{
14
+ messageId: z.ZodString;
15
+ threadId: z.ZodString;
16
+ historyId: z.ZodOptional<z.ZodString>;
17
+ labelIds: z.ZodArray<z.ZodString>;
18
+ attachments: z.ZodArray<z.ZodObject<{
19
+ contentId: z.ZodOptional<z.ZodString>;
20
+ description: z.ZodOptional<z.ZodString>;
21
+ disposition: z.ZodOptional<z.ZodEnum<{
22
+ attachment: "attachment";
23
+ inline: "inline";
24
+ }>>;
25
+ file: z.ZodCustom<File, File>;
26
+ filename: z.ZodString;
27
+ mimeType: z.ZodString;
28
+ related: z.ZodBoolean;
29
+ }, z.core.$strip>>;
30
+ bcc: z.ZodArray<z.ZodObject<{
31
+ address: z.ZodString;
32
+ name: z.ZodOptional<z.ZodString>;
33
+ }, z.core.$strip>>;
34
+ cc: z.ZodArray<z.ZodObject<{
35
+ address: z.ZodString;
36
+ name: z.ZodOptional<z.ZodString>;
37
+ }, z.core.$strip>>;
38
+ deliveredTo: z.ZodOptional<z.ZodString>;
39
+ from: z.ZodOptional<z.ZodObject<{
40
+ address: z.ZodString;
41
+ name: z.ZodOptional<z.ZodString>;
42
+ }, z.core.$strip>>;
43
+ headers: z.ZodArray<z.ZodObject<{
44
+ name: z.ZodString;
45
+ value: z.ZodString;
46
+ }, z.core.$strip>>;
47
+ html: z.ZodOptional<z.ZodString>;
48
+ inReplyTo: z.ZodOptional<z.ZodString>;
49
+ rfc822MessageId: z.ZodOptional<z.ZodString>;
50
+ receivedAt: z.ZodNullable<z.ZodDate>;
51
+ references: z.ZodArray<z.ZodString>;
52
+ replyTo: z.ZodArray<z.ZodObject<{
53
+ address: z.ZodString;
54
+ name: z.ZodOptional<z.ZodString>;
55
+ }, z.core.$strip>>;
56
+ returnPath: z.ZodOptional<z.ZodString>;
57
+ sender: z.ZodOptional<z.ZodObject<{
58
+ address: z.ZodString;
59
+ name: z.ZodOptional<z.ZodString>;
60
+ }, z.core.$strip>>;
61
+ sentAt: z.ZodOptional<z.ZodDate>;
62
+ sizeEstimate: z.ZodOptional<z.ZodNumber>;
63
+ snippet: z.ZodOptional<z.ZodString>;
64
+ subject: z.ZodString;
65
+ text: z.ZodOptional<z.ZodString>;
66
+ to: z.ZodArray<z.ZodObject<{
67
+ address: z.ZodString;
68
+ name: z.ZodOptional<z.ZodString>;
69
+ }, z.core.$strip>>;
70
+ }, z.core.$strip>;
71
+ }, z.core.$strip>;
72
+ };
73
+ readonly "gmail.label.removed": {
74
+ readonly configSchema: z.ZodObject<{}, z.core.$strip>;
75
+ readonly eventSchema: z.ZodObject<{
76
+ labels: z.ZodArray<z.ZodObject<{
77
+ labelId: z.ZodString;
78
+ name: z.ZodOptional<z.ZodString>;
79
+ }, z.core.$strip>>;
80
+ message: z.ZodObject<{
81
+ messageId: z.ZodString;
82
+ threadId: z.ZodString;
83
+ historyId: z.ZodOptional<z.ZodString>;
84
+ labelIds: z.ZodArray<z.ZodString>;
85
+ attachments: z.ZodArray<z.ZodObject<{
86
+ contentId: z.ZodOptional<z.ZodString>;
87
+ description: z.ZodOptional<z.ZodString>;
88
+ disposition: z.ZodOptional<z.ZodEnum<{
89
+ attachment: "attachment";
90
+ inline: "inline";
91
+ }>>;
92
+ file: z.ZodCustom<File, File>;
93
+ filename: z.ZodString;
94
+ mimeType: z.ZodString;
95
+ related: z.ZodBoolean;
96
+ }, z.core.$strip>>;
97
+ bcc: z.ZodArray<z.ZodObject<{
98
+ address: z.ZodString;
99
+ name: z.ZodOptional<z.ZodString>;
100
+ }, z.core.$strip>>;
101
+ cc: z.ZodArray<z.ZodObject<{
102
+ address: z.ZodString;
103
+ name: z.ZodOptional<z.ZodString>;
104
+ }, z.core.$strip>>;
105
+ deliveredTo: z.ZodOptional<z.ZodString>;
106
+ from: z.ZodOptional<z.ZodObject<{
107
+ address: z.ZodString;
108
+ name: z.ZodOptional<z.ZodString>;
109
+ }, z.core.$strip>>;
110
+ headers: z.ZodArray<z.ZodObject<{
111
+ name: z.ZodString;
112
+ value: z.ZodString;
113
+ }, z.core.$strip>>;
114
+ html: z.ZodOptional<z.ZodString>;
115
+ inReplyTo: z.ZodOptional<z.ZodString>;
116
+ rfc822MessageId: z.ZodOptional<z.ZodString>;
117
+ receivedAt: z.ZodNullable<z.ZodDate>;
118
+ references: z.ZodArray<z.ZodString>;
119
+ replyTo: z.ZodArray<z.ZodObject<{
120
+ address: z.ZodString;
121
+ name: z.ZodOptional<z.ZodString>;
122
+ }, z.core.$strip>>;
123
+ returnPath: z.ZodOptional<z.ZodString>;
124
+ sender: z.ZodOptional<z.ZodObject<{
125
+ address: z.ZodString;
126
+ name: z.ZodOptional<z.ZodString>;
127
+ }, z.core.$strip>>;
128
+ sentAt: z.ZodOptional<z.ZodDate>;
129
+ sizeEstimate: z.ZodOptional<z.ZodNumber>;
130
+ snippet: z.ZodOptional<z.ZodString>;
131
+ subject: z.ZodString;
132
+ text: z.ZodOptional<z.ZodString>;
133
+ to: z.ZodArray<z.ZodObject<{
134
+ address: z.ZodString;
135
+ name: z.ZodOptional<z.ZodString>;
136
+ }, z.core.$strip>>;
137
+ }, z.core.$strip>;
138
+ }, z.core.$strip>;
139
+ };
140
+ readonly "gmail.message.received": {
141
+ readonly configSchema: z.ZodObject<{}, z.core.$strip>;
142
+ readonly eventSchema: z.ZodObject<{
143
+ messageId: z.ZodString;
144
+ threadId: z.ZodString;
145
+ historyId: z.ZodOptional<z.ZodString>;
146
+ labelIds: z.ZodArray<z.ZodString>;
147
+ attachments: z.ZodArray<z.ZodObject<{
148
+ contentId: z.ZodOptional<z.ZodString>;
149
+ description: z.ZodOptional<z.ZodString>;
150
+ disposition: z.ZodOptional<z.ZodEnum<{
151
+ attachment: "attachment";
152
+ inline: "inline";
153
+ }>>;
154
+ file: z.ZodCustom<File, File>;
155
+ filename: z.ZodString;
156
+ mimeType: z.ZodString;
157
+ related: z.ZodBoolean;
158
+ }, z.core.$strip>>;
159
+ bcc: z.ZodArray<z.ZodObject<{
160
+ address: z.ZodString;
161
+ name: z.ZodOptional<z.ZodString>;
162
+ }, z.core.$strip>>;
163
+ cc: z.ZodArray<z.ZodObject<{
164
+ address: z.ZodString;
165
+ name: z.ZodOptional<z.ZodString>;
166
+ }, z.core.$strip>>;
167
+ deliveredTo: z.ZodOptional<z.ZodString>;
168
+ from: z.ZodOptional<z.ZodObject<{
169
+ address: z.ZodString;
170
+ name: z.ZodOptional<z.ZodString>;
171
+ }, z.core.$strip>>;
172
+ headers: z.ZodArray<z.ZodObject<{
173
+ name: z.ZodString;
174
+ value: z.ZodString;
175
+ }, z.core.$strip>>;
176
+ html: z.ZodOptional<z.ZodString>;
177
+ inReplyTo: z.ZodOptional<z.ZodString>;
178
+ rfc822MessageId: z.ZodOptional<z.ZodString>;
179
+ receivedAt: z.ZodNullable<z.ZodDate>;
180
+ references: z.ZodArray<z.ZodString>;
181
+ replyTo: z.ZodArray<z.ZodObject<{
182
+ address: z.ZodString;
183
+ name: z.ZodOptional<z.ZodString>;
184
+ }, z.core.$strip>>;
185
+ returnPath: z.ZodOptional<z.ZodString>;
186
+ sender: z.ZodOptional<z.ZodObject<{
187
+ address: z.ZodString;
188
+ name: z.ZodOptional<z.ZodString>;
189
+ }, z.core.$strip>>;
190
+ sentAt: z.ZodOptional<z.ZodDate>;
191
+ sizeEstimate: z.ZodOptional<z.ZodNumber>;
192
+ snippet: z.ZodOptional<z.ZodString>;
193
+ subject: z.ZodString;
194
+ text: z.ZodOptional<z.ZodString>;
195
+ to: z.ZodArray<z.ZodObject<{
196
+ address: z.ZodString;
197
+ name: z.ZodOptional<z.ZodString>;
198
+ }, z.core.$strip>>;
199
+ }, z.core.$strip>;
200
+ };
201
+ readonly "gmail.message.sent": {
202
+ readonly configSchema: z.ZodObject<{}, z.core.$strip>;
203
+ readonly eventSchema: z.ZodObject<{
204
+ messageId: z.ZodString;
205
+ threadId: z.ZodString;
206
+ historyId: z.ZodOptional<z.ZodString>;
207
+ labelIds: z.ZodArray<z.ZodString>;
208
+ attachments: z.ZodArray<z.ZodObject<{
209
+ contentId: z.ZodOptional<z.ZodString>;
210
+ description: z.ZodOptional<z.ZodString>;
211
+ disposition: z.ZodOptional<z.ZodEnum<{
212
+ attachment: "attachment";
213
+ inline: "inline";
214
+ }>>;
215
+ file: z.ZodCustom<File, File>;
216
+ filename: z.ZodString;
217
+ mimeType: z.ZodString;
218
+ related: z.ZodBoolean;
219
+ }, z.core.$strip>>;
220
+ bcc: z.ZodArray<z.ZodObject<{
221
+ address: z.ZodString;
222
+ name: z.ZodOptional<z.ZodString>;
223
+ }, z.core.$strip>>;
224
+ cc: z.ZodArray<z.ZodObject<{
225
+ address: z.ZodString;
226
+ name: z.ZodOptional<z.ZodString>;
227
+ }, z.core.$strip>>;
228
+ deliveredTo: z.ZodOptional<z.ZodString>;
229
+ from: z.ZodOptional<z.ZodObject<{
230
+ address: z.ZodString;
231
+ name: z.ZodOptional<z.ZodString>;
232
+ }, z.core.$strip>>;
233
+ headers: z.ZodArray<z.ZodObject<{
234
+ name: z.ZodString;
235
+ value: z.ZodString;
236
+ }, z.core.$strip>>;
237
+ html: z.ZodOptional<z.ZodString>;
238
+ inReplyTo: z.ZodOptional<z.ZodString>;
239
+ rfc822MessageId: z.ZodOptional<z.ZodString>;
240
+ receivedAt: z.ZodNullable<z.ZodDate>;
241
+ references: z.ZodArray<z.ZodString>;
242
+ replyTo: z.ZodArray<z.ZodObject<{
243
+ address: z.ZodString;
244
+ name: z.ZodOptional<z.ZodString>;
245
+ }, z.core.$strip>>;
246
+ returnPath: z.ZodOptional<z.ZodString>;
247
+ sender: z.ZodOptional<z.ZodObject<{
248
+ address: z.ZodString;
249
+ name: z.ZodOptional<z.ZodString>;
250
+ }, z.core.$strip>>;
251
+ sentAt: z.ZodOptional<z.ZodDate>;
252
+ sizeEstimate: z.ZodOptional<z.ZodNumber>;
253
+ snippet: z.ZodOptional<z.ZodString>;
254
+ subject: z.ZodString;
255
+ text: z.ZodOptional<z.ZodString>;
256
+ to: z.ZodArray<z.ZodObject<{
257
+ address: z.ZodString;
258
+ name: z.ZodOptional<z.ZodString>;
259
+ }, z.core.$strip>>;
260
+ }, z.core.$strip>;
261
+ };
262
+ };
@@ -0,0 +1,23 @@
1
+ import { z } from "zod";
2
+ import { LABEL_CHANGE_SCHEMA, MESSAGE_SCHEMA } from "./schemas.js";
3
+ export * from "./gmail.js";
4
+ export * from "./schemas.js";
5
+ export const GMAIL_TRIGGER_CONFIG_SCHEMA = z.object({});
6
+ export const gmailTriggerContracts = {
7
+ "gmail.label.added": {
8
+ configSchema: GMAIL_TRIGGER_CONFIG_SCHEMA,
9
+ eventSchema: LABEL_CHANGE_SCHEMA,
10
+ },
11
+ "gmail.label.removed": {
12
+ configSchema: GMAIL_TRIGGER_CONFIG_SCHEMA,
13
+ eventSchema: LABEL_CHANGE_SCHEMA,
14
+ },
15
+ "gmail.message.received": {
16
+ configSchema: GMAIL_TRIGGER_CONFIG_SCHEMA,
17
+ eventSchema: MESSAGE_SCHEMA,
18
+ },
19
+ "gmail.message.sent": {
20
+ configSchema: GMAIL_TRIGGER_CONFIG_SCHEMA,
21
+ eventSchema: MESSAGE_SCHEMA,
22
+ },
23
+ };