@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,614 @@
1
+ import { z } from "zod";
2
+ export * from "./api.js";
3
+ export * from "./schemas.js";
4
+ export declare const WHATSAPP_TRIGGER_CONFIG_SCHEMA: z.ZodObject<{}, z.core.$strip>;
5
+ export declare const whatsappTriggerContracts: {
6
+ readonly "whatsapp.message.delivered": {
7
+ readonly configSchema: z.ZodObject<{}, z.core.$strip>;
8
+ readonly eventSchema: z.ZodObject<{
9
+ businessAccountId: z.ZodString;
10
+ callbackData: z.ZodOptional<z.ZodString>;
11
+ conversation: z.ZodOptional<z.ZodObject<{
12
+ expirationTimestamp: z.ZodOptional<z.ZodString>;
13
+ id: z.ZodString;
14
+ originType: z.ZodString;
15
+ }, z.core.$strip>>;
16
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
17
+ code: z.ZodNumber;
18
+ details: z.ZodOptional<z.ZodString>;
19
+ message: z.ZodString;
20
+ subcode: z.ZodOptional<z.ZodNumber>;
21
+ title: z.ZodOptional<z.ZodString>;
22
+ traceId: z.ZodOptional<z.ZodString>;
23
+ }, z.core.$strip>>>;
24
+ messageId: z.ZodString;
25
+ phoneNumberId: z.ZodString;
26
+ pricing: z.ZodOptional<z.ZodObject<{
27
+ billable: z.ZodOptional<z.ZodBoolean>;
28
+ category: z.ZodString;
29
+ model: z.ZodEnum<{
30
+ CBP: "CBP";
31
+ PMP: "PMP";
32
+ }>;
33
+ type: z.ZodOptional<z.ZodEnum<{
34
+ regular: "regular";
35
+ free_customer_service: "free_customer_service";
36
+ free_entry_point: "free_entry_point";
37
+ }>>;
38
+ }, z.core.$strip>>;
39
+ recipientId: z.ZodString;
40
+ timestamp: z.ZodString;
41
+ providerEvent: z.ZodObject<{
42
+ biz_opaque_callback_data: z.ZodOptional<z.ZodString>;
43
+ conversation: z.ZodOptional<z.ZodObject<{
44
+ expiration_timestamp: z.ZodOptional<z.ZodString>;
45
+ id: z.ZodString;
46
+ origin: z.ZodObject<{
47
+ type: z.ZodString;
48
+ }, z.core.$strip>;
49
+ }, z.core.$strip>>;
50
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
51
+ code: z.ZodNumber;
52
+ error_data: z.ZodOptional<z.ZodObject<{
53
+ details: z.ZodOptional<z.ZodString>;
54
+ messaging_product: z.ZodOptional<z.ZodString>;
55
+ }, z.core.$strip>>;
56
+ error_subcode: z.ZodOptional<z.ZodNumber>;
57
+ fbtrace_id: z.ZodOptional<z.ZodString>;
58
+ message: z.ZodString;
59
+ title: z.ZodOptional<z.ZodString>;
60
+ }, z.core.$strip>>>;
61
+ id: z.ZodString;
62
+ pricing: z.ZodOptional<z.ZodObject<{
63
+ billable: z.ZodOptional<z.ZodBoolean>;
64
+ category: z.ZodString;
65
+ pricing_model: z.ZodEnum<{
66
+ CBP: "CBP";
67
+ PMP: "PMP";
68
+ }>;
69
+ type: z.ZodOptional<z.ZodEnum<{
70
+ regular: "regular";
71
+ free_customer_service: "free_customer_service";
72
+ free_entry_point: "free_entry_point";
73
+ }>>;
74
+ }, z.core.$strip>>;
75
+ recipient_id: z.ZodString;
76
+ timestamp: z.ZodString;
77
+ status: z.ZodLiteral<"delivered">;
78
+ }, z.core.$strip>;
79
+ status: z.ZodLiteral<"delivered">;
80
+ }, z.core.$strip>;
81
+ };
82
+ readonly "whatsapp.message.failed": {
83
+ readonly configSchema: z.ZodObject<{}, z.core.$strip>;
84
+ readonly eventSchema: z.ZodObject<{
85
+ businessAccountId: z.ZodString;
86
+ callbackData: z.ZodOptional<z.ZodString>;
87
+ conversation: z.ZodOptional<z.ZodObject<{
88
+ expirationTimestamp: z.ZodOptional<z.ZodString>;
89
+ id: z.ZodString;
90
+ originType: z.ZodString;
91
+ }, z.core.$strip>>;
92
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
93
+ code: z.ZodNumber;
94
+ details: z.ZodOptional<z.ZodString>;
95
+ message: z.ZodString;
96
+ subcode: z.ZodOptional<z.ZodNumber>;
97
+ title: z.ZodOptional<z.ZodString>;
98
+ traceId: z.ZodOptional<z.ZodString>;
99
+ }, z.core.$strip>>>;
100
+ messageId: z.ZodString;
101
+ phoneNumberId: z.ZodString;
102
+ pricing: z.ZodOptional<z.ZodObject<{
103
+ billable: z.ZodOptional<z.ZodBoolean>;
104
+ category: z.ZodString;
105
+ model: z.ZodEnum<{
106
+ CBP: "CBP";
107
+ PMP: "PMP";
108
+ }>;
109
+ type: z.ZodOptional<z.ZodEnum<{
110
+ regular: "regular";
111
+ free_customer_service: "free_customer_service";
112
+ free_entry_point: "free_entry_point";
113
+ }>>;
114
+ }, z.core.$strip>>;
115
+ recipientId: z.ZodString;
116
+ timestamp: z.ZodString;
117
+ providerEvent: z.ZodObject<{
118
+ biz_opaque_callback_data: z.ZodOptional<z.ZodString>;
119
+ conversation: z.ZodOptional<z.ZodObject<{
120
+ expiration_timestamp: z.ZodOptional<z.ZodString>;
121
+ id: z.ZodString;
122
+ origin: z.ZodObject<{
123
+ type: z.ZodString;
124
+ }, z.core.$strip>;
125
+ }, z.core.$strip>>;
126
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
127
+ code: z.ZodNumber;
128
+ error_data: z.ZodOptional<z.ZodObject<{
129
+ details: z.ZodOptional<z.ZodString>;
130
+ messaging_product: z.ZodOptional<z.ZodString>;
131
+ }, z.core.$strip>>;
132
+ error_subcode: z.ZodOptional<z.ZodNumber>;
133
+ fbtrace_id: z.ZodOptional<z.ZodString>;
134
+ message: z.ZodString;
135
+ title: z.ZodOptional<z.ZodString>;
136
+ }, z.core.$strip>>>;
137
+ id: z.ZodString;
138
+ pricing: z.ZodOptional<z.ZodObject<{
139
+ billable: z.ZodOptional<z.ZodBoolean>;
140
+ category: z.ZodString;
141
+ pricing_model: z.ZodEnum<{
142
+ CBP: "CBP";
143
+ PMP: "PMP";
144
+ }>;
145
+ type: z.ZodOptional<z.ZodEnum<{
146
+ regular: "regular";
147
+ free_customer_service: "free_customer_service";
148
+ free_entry_point: "free_entry_point";
149
+ }>>;
150
+ }, z.core.$strip>>;
151
+ recipient_id: z.ZodString;
152
+ timestamp: z.ZodString;
153
+ status: z.ZodLiteral<"failed">;
154
+ }, z.core.$strip>;
155
+ status: z.ZodLiteral<"failed">;
156
+ }, z.core.$strip>;
157
+ };
158
+ readonly "whatsapp.message.played": {
159
+ readonly configSchema: z.ZodObject<{}, z.core.$strip>;
160
+ readonly eventSchema: z.ZodObject<{
161
+ businessAccountId: z.ZodString;
162
+ callbackData: z.ZodOptional<z.ZodString>;
163
+ conversation: z.ZodOptional<z.ZodObject<{
164
+ expirationTimestamp: z.ZodOptional<z.ZodString>;
165
+ id: z.ZodString;
166
+ originType: z.ZodString;
167
+ }, z.core.$strip>>;
168
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
169
+ code: z.ZodNumber;
170
+ details: z.ZodOptional<z.ZodString>;
171
+ message: z.ZodString;
172
+ subcode: z.ZodOptional<z.ZodNumber>;
173
+ title: z.ZodOptional<z.ZodString>;
174
+ traceId: z.ZodOptional<z.ZodString>;
175
+ }, z.core.$strip>>>;
176
+ messageId: z.ZodString;
177
+ phoneNumberId: z.ZodString;
178
+ pricing: z.ZodOptional<z.ZodObject<{
179
+ billable: z.ZodOptional<z.ZodBoolean>;
180
+ category: z.ZodString;
181
+ model: z.ZodEnum<{
182
+ CBP: "CBP";
183
+ PMP: "PMP";
184
+ }>;
185
+ type: z.ZodOptional<z.ZodEnum<{
186
+ regular: "regular";
187
+ free_customer_service: "free_customer_service";
188
+ free_entry_point: "free_entry_point";
189
+ }>>;
190
+ }, z.core.$strip>>;
191
+ recipientId: z.ZodString;
192
+ timestamp: z.ZodString;
193
+ providerEvent: z.ZodObject<{
194
+ biz_opaque_callback_data: z.ZodOptional<z.ZodString>;
195
+ conversation: z.ZodOptional<z.ZodObject<{
196
+ expiration_timestamp: z.ZodOptional<z.ZodString>;
197
+ id: z.ZodString;
198
+ origin: z.ZodObject<{
199
+ type: z.ZodString;
200
+ }, z.core.$strip>;
201
+ }, z.core.$strip>>;
202
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
203
+ code: z.ZodNumber;
204
+ error_data: z.ZodOptional<z.ZodObject<{
205
+ details: z.ZodOptional<z.ZodString>;
206
+ messaging_product: z.ZodOptional<z.ZodString>;
207
+ }, z.core.$strip>>;
208
+ error_subcode: z.ZodOptional<z.ZodNumber>;
209
+ fbtrace_id: z.ZodOptional<z.ZodString>;
210
+ message: z.ZodString;
211
+ title: z.ZodOptional<z.ZodString>;
212
+ }, z.core.$strip>>>;
213
+ id: z.ZodString;
214
+ pricing: z.ZodOptional<z.ZodObject<{
215
+ billable: z.ZodOptional<z.ZodBoolean>;
216
+ category: z.ZodString;
217
+ pricing_model: z.ZodEnum<{
218
+ CBP: "CBP";
219
+ PMP: "PMP";
220
+ }>;
221
+ type: z.ZodOptional<z.ZodEnum<{
222
+ regular: "regular";
223
+ free_customer_service: "free_customer_service";
224
+ free_entry_point: "free_entry_point";
225
+ }>>;
226
+ }, z.core.$strip>>;
227
+ recipient_id: z.ZodString;
228
+ timestamp: z.ZodString;
229
+ status: z.ZodLiteral<"played">;
230
+ }, z.core.$strip>;
231
+ status: z.ZodLiteral<"played">;
232
+ }, z.core.$strip>;
233
+ };
234
+ readonly "whatsapp.message.read": {
235
+ readonly configSchema: z.ZodObject<{}, z.core.$strip>;
236
+ readonly eventSchema: z.ZodObject<{
237
+ businessAccountId: z.ZodString;
238
+ callbackData: z.ZodOptional<z.ZodString>;
239
+ conversation: z.ZodOptional<z.ZodObject<{
240
+ expirationTimestamp: z.ZodOptional<z.ZodString>;
241
+ id: z.ZodString;
242
+ originType: z.ZodString;
243
+ }, z.core.$strip>>;
244
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
245
+ code: z.ZodNumber;
246
+ details: z.ZodOptional<z.ZodString>;
247
+ message: z.ZodString;
248
+ subcode: z.ZodOptional<z.ZodNumber>;
249
+ title: z.ZodOptional<z.ZodString>;
250
+ traceId: z.ZodOptional<z.ZodString>;
251
+ }, z.core.$strip>>>;
252
+ messageId: z.ZodString;
253
+ phoneNumberId: z.ZodString;
254
+ pricing: z.ZodOptional<z.ZodObject<{
255
+ billable: z.ZodOptional<z.ZodBoolean>;
256
+ category: z.ZodString;
257
+ model: z.ZodEnum<{
258
+ CBP: "CBP";
259
+ PMP: "PMP";
260
+ }>;
261
+ type: z.ZodOptional<z.ZodEnum<{
262
+ regular: "regular";
263
+ free_customer_service: "free_customer_service";
264
+ free_entry_point: "free_entry_point";
265
+ }>>;
266
+ }, z.core.$strip>>;
267
+ recipientId: z.ZodString;
268
+ timestamp: z.ZodString;
269
+ providerEvent: z.ZodObject<{
270
+ biz_opaque_callback_data: z.ZodOptional<z.ZodString>;
271
+ conversation: z.ZodOptional<z.ZodObject<{
272
+ expiration_timestamp: z.ZodOptional<z.ZodString>;
273
+ id: z.ZodString;
274
+ origin: z.ZodObject<{
275
+ type: z.ZodString;
276
+ }, z.core.$strip>;
277
+ }, z.core.$strip>>;
278
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
279
+ code: z.ZodNumber;
280
+ error_data: z.ZodOptional<z.ZodObject<{
281
+ details: z.ZodOptional<z.ZodString>;
282
+ messaging_product: z.ZodOptional<z.ZodString>;
283
+ }, z.core.$strip>>;
284
+ error_subcode: z.ZodOptional<z.ZodNumber>;
285
+ fbtrace_id: z.ZodOptional<z.ZodString>;
286
+ message: z.ZodString;
287
+ title: z.ZodOptional<z.ZodString>;
288
+ }, z.core.$strip>>>;
289
+ id: z.ZodString;
290
+ pricing: z.ZodOptional<z.ZodObject<{
291
+ billable: z.ZodOptional<z.ZodBoolean>;
292
+ category: z.ZodString;
293
+ pricing_model: z.ZodEnum<{
294
+ CBP: "CBP";
295
+ PMP: "PMP";
296
+ }>;
297
+ type: z.ZodOptional<z.ZodEnum<{
298
+ regular: "regular";
299
+ free_customer_service: "free_customer_service";
300
+ free_entry_point: "free_entry_point";
301
+ }>>;
302
+ }, z.core.$strip>>;
303
+ recipient_id: z.ZodString;
304
+ timestamp: z.ZodString;
305
+ status: z.ZodLiteral<"read">;
306
+ }, z.core.$strip>;
307
+ status: z.ZodLiteral<"read">;
308
+ }, z.core.$strip>;
309
+ };
310
+ readonly "whatsapp.message.received": {
311
+ readonly configSchema: z.ZodObject<{}, z.core.$strip>;
312
+ readonly eventSchema: z.ZodObject<{
313
+ businessAccountId: z.ZodString;
314
+ displayPhoneNumber: z.ZodString;
315
+ message: z.ZodObject<{
316
+ content: z.ZodOptional<z.ZodJSONSchema>;
317
+ context: z.ZodOptional<z.ZodObject<{
318
+ forwarded: z.ZodOptional<z.ZodBoolean>;
319
+ from: z.ZodOptional<z.ZodString>;
320
+ messageId: z.ZodString;
321
+ }, z.core.$strip>>;
322
+ id: z.ZodString;
323
+ timestamp: z.ZodString;
324
+ type: z.ZodEnum<{
325
+ unknown: "unknown";
326
+ text: "text";
327
+ system: "system";
328
+ location: "location";
329
+ image: "image";
330
+ video: "video";
331
+ reaction: "reaction";
332
+ audio: "audio";
333
+ button: "button";
334
+ contacts: "contacts";
335
+ document: "document";
336
+ interactive: "interactive";
337
+ order: "order";
338
+ sticker: "sticker";
339
+ unsupported: "unsupported";
340
+ }>;
341
+ }, z.core.$strip>;
342
+ phoneNumberId: z.ZodString;
343
+ providerEvent: z.ZodObject<{
344
+ audio: z.ZodOptional<z.ZodObject<{
345
+ id: z.ZodString;
346
+ mime_type: z.ZodOptional<z.ZodString>;
347
+ }, z.core.$strip>>;
348
+ button: z.ZodOptional<z.ZodObject<{
349
+ payload: z.ZodString;
350
+ text: z.ZodString;
351
+ }, z.core.$strip>>;
352
+ contacts: z.ZodOptional<z.ZodArray<z.ZodJSONSchema>>;
353
+ context: z.ZodOptional<z.ZodObject<{
354
+ forwarded: z.ZodOptional<z.ZodBoolean>;
355
+ from: z.ZodOptional<z.ZodString>;
356
+ id: z.ZodString;
357
+ }, z.core.$strip>>;
358
+ document: z.ZodOptional<z.ZodObject<{
359
+ caption: z.ZodOptional<z.ZodString>;
360
+ filename: z.ZodOptional<z.ZodString>;
361
+ id: z.ZodString;
362
+ mime_type: z.ZodOptional<z.ZodString>;
363
+ }, z.core.$strip>>;
364
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
365
+ code: z.ZodNumber;
366
+ error_data: z.ZodOptional<z.ZodObject<{
367
+ details: z.ZodOptional<z.ZodString>;
368
+ messaging_product: z.ZodOptional<z.ZodString>;
369
+ }, z.core.$strip>>;
370
+ error_subcode: z.ZodOptional<z.ZodNumber>;
371
+ fbtrace_id: z.ZodOptional<z.ZodString>;
372
+ message: z.ZodString;
373
+ title: z.ZodOptional<z.ZodString>;
374
+ }, z.core.$strip>>>;
375
+ from: z.ZodString;
376
+ id: z.ZodString;
377
+ image: z.ZodOptional<z.ZodObject<{
378
+ caption: z.ZodOptional<z.ZodString>;
379
+ id: z.ZodString;
380
+ mime_type: z.ZodOptional<z.ZodString>;
381
+ }, z.core.$strip>>;
382
+ interactive: z.ZodOptional<z.ZodObject<{
383
+ button_reply: z.ZodOptional<z.ZodObject<{
384
+ id: z.ZodString;
385
+ title: z.ZodString;
386
+ }, z.core.$strip>>;
387
+ list_reply: z.ZodOptional<z.ZodObject<{
388
+ description: z.ZodOptional<z.ZodString>;
389
+ id: z.ZodString;
390
+ title: z.ZodString;
391
+ }, z.core.$strip>>;
392
+ type: z.ZodEnum<{
393
+ button_reply: "button_reply";
394
+ list_reply: "list_reply";
395
+ }>;
396
+ }, z.core.$strip>>;
397
+ location: z.ZodOptional<z.ZodObject<{
398
+ address: z.ZodOptional<z.ZodString>;
399
+ latitude: z.ZodNumber;
400
+ longitude: z.ZodNumber;
401
+ name: z.ZodOptional<z.ZodString>;
402
+ url: z.ZodOptional<z.ZodString>;
403
+ }, z.core.$strip>>;
404
+ order: z.ZodOptional<z.ZodJSONSchema>;
405
+ reaction: z.ZodOptional<z.ZodObject<{
406
+ emoji: z.ZodString;
407
+ message_id: z.ZodString;
408
+ }, z.core.$strip>>;
409
+ referral: z.ZodOptional<z.ZodJSONSchema>;
410
+ sticker: z.ZodOptional<z.ZodObject<{
411
+ id: z.ZodString;
412
+ mime_type: z.ZodOptional<z.ZodString>;
413
+ }, z.core.$strip>>;
414
+ system: z.ZodOptional<z.ZodJSONSchema>;
415
+ text: z.ZodOptional<z.ZodObject<{
416
+ body: z.ZodString;
417
+ }, z.core.$strip>>;
418
+ timestamp: z.ZodString;
419
+ type: z.ZodEnum<{
420
+ unknown: "unknown";
421
+ text: "text";
422
+ system: "system";
423
+ location: "location";
424
+ image: "image";
425
+ video: "video";
426
+ reaction: "reaction";
427
+ audio: "audio";
428
+ button: "button";
429
+ contacts: "contacts";
430
+ document: "document";
431
+ interactive: "interactive";
432
+ order: "order";
433
+ sticker: "sticker";
434
+ unsupported: "unsupported";
435
+ }>;
436
+ unknown: z.ZodOptional<z.ZodJSONSchema>;
437
+ unsupported: z.ZodOptional<z.ZodJSONSchema>;
438
+ video: z.ZodOptional<z.ZodObject<{
439
+ caption: z.ZodOptional<z.ZodString>;
440
+ id: z.ZodString;
441
+ mime_type: z.ZodOptional<z.ZodString>;
442
+ }, z.core.$strip>>;
443
+ }, z.core.$strip>;
444
+ sender: z.ZodObject<{
445
+ id: z.ZodString;
446
+ name: z.ZodOptional<z.ZodString>;
447
+ }, z.core.$strip>;
448
+ }, z.core.$strip>;
449
+ };
450
+ readonly "whatsapp.message.sent": {
451
+ readonly configSchema: z.ZodObject<{}, z.core.$strip>;
452
+ readonly eventSchema: z.ZodObject<{
453
+ businessAccountId: z.ZodString;
454
+ callbackData: z.ZodOptional<z.ZodString>;
455
+ conversation: z.ZodOptional<z.ZodObject<{
456
+ expirationTimestamp: z.ZodOptional<z.ZodString>;
457
+ id: z.ZodString;
458
+ originType: z.ZodString;
459
+ }, z.core.$strip>>;
460
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
461
+ code: z.ZodNumber;
462
+ details: z.ZodOptional<z.ZodString>;
463
+ message: z.ZodString;
464
+ subcode: z.ZodOptional<z.ZodNumber>;
465
+ title: z.ZodOptional<z.ZodString>;
466
+ traceId: z.ZodOptional<z.ZodString>;
467
+ }, z.core.$strip>>>;
468
+ messageId: z.ZodString;
469
+ phoneNumberId: z.ZodString;
470
+ pricing: z.ZodOptional<z.ZodObject<{
471
+ billable: z.ZodOptional<z.ZodBoolean>;
472
+ category: z.ZodString;
473
+ model: z.ZodEnum<{
474
+ CBP: "CBP";
475
+ PMP: "PMP";
476
+ }>;
477
+ type: z.ZodOptional<z.ZodEnum<{
478
+ regular: "regular";
479
+ free_customer_service: "free_customer_service";
480
+ free_entry_point: "free_entry_point";
481
+ }>>;
482
+ }, z.core.$strip>>;
483
+ recipientId: z.ZodString;
484
+ timestamp: z.ZodString;
485
+ providerEvent: z.ZodObject<{
486
+ biz_opaque_callback_data: z.ZodOptional<z.ZodString>;
487
+ conversation: z.ZodOptional<z.ZodObject<{
488
+ expiration_timestamp: z.ZodOptional<z.ZodString>;
489
+ id: z.ZodString;
490
+ origin: z.ZodObject<{
491
+ type: z.ZodString;
492
+ }, z.core.$strip>;
493
+ }, z.core.$strip>>;
494
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
495
+ code: z.ZodNumber;
496
+ error_data: z.ZodOptional<z.ZodObject<{
497
+ details: z.ZodOptional<z.ZodString>;
498
+ messaging_product: z.ZodOptional<z.ZodString>;
499
+ }, z.core.$strip>>;
500
+ error_subcode: z.ZodOptional<z.ZodNumber>;
501
+ fbtrace_id: z.ZodOptional<z.ZodString>;
502
+ message: z.ZodString;
503
+ title: z.ZodOptional<z.ZodString>;
504
+ }, z.core.$strip>>>;
505
+ id: z.ZodString;
506
+ pricing: z.ZodOptional<z.ZodObject<{
507
+ billable: z.ZodOptional<z.ZodBoolean>;
508
+ category: z.ZodString;
509
+ pricing_model: z.ZodEnum<{
510
+ CBP: "CBP";
511
+ PMP: "PMP";
512
+ }>;
513
+ type: z.ZodOptional<z.ZodEnum<{
514
+ regular: "regular";
515
+ free_customer_service: "free_customer_service";
516
+ free_entry_point: "free_entry_point";
517
+ }>>;
518
+ }, z.core.$strip>>;
519
+ recipient_id: z.ZodString;
520
+ timestamp: z.ZodString;
521
+ status: z.ZodLiteral<"sent">;
522
+ }, z.core.$strip>;
523
+ status: z.ZodLiteral<"sent">;
524
+ }, z.core.$strip>;
525
+ };
526
+ readonly "whatsapp.message.statusEvent": {
527
+ readonly configSchema: z.ZodObject<{}, z.core.$strip>;
528
+ readonly eventSchema: z.ZodObject<{
529
+ businessAccountId: z.ZodString;
530
+ callbackData: z.ZodOptional<z.ZodString>;
531
+ conversation: z.ZodOptional<z.ZodObject<{
532
+ expirationTimestamp: z.ZodOptional<z.ZodString>;
533
+ id: z.ZodString;
534
+ originType: z.ZodString;
535
+ }, z.core.$strip>>;
536
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
537
+ code: z.ZodNumber;
538
+ details: z.ZodOptional<z.ZodString>;
539
+ message: z.ZodString;
540
+ subcode: z.ZodOptional<z.ZodNumber>;
541
+ title: z.ZodOptional<z.ZodString>;
542
+ traceId: z.ZodOptional<z.ZodString>;
543
+ }, z.core.$strip>>>;
544
+ messageId: z.ZodString;
545
+ phoneNumberId: z.ZodString;
546
+ pricing: z.ZodOptional<z.ZodObject<{
547
+ billable: z.ZodOptional<z.ZodBoolean>;
548
+ category: z.ZodString;
549
+ model: z.ZodEnum<{
550
+ CBP: "CBP";
551
+ PMP: "PMP";
552
+ }>;
553
+ type: z.ZodOptional<z.ZodEnum<{
554
+ regular: "regular";
555
+ free_customer_service: "free_customer_service";
556
+ free_entry_point: "free_entry_point";
557
+ }>>;
558
+ }, z.core.$strip>>;
559
+ providerEvent: z.ZodObject<{
560
+ biz_opaque_callback_data: z.ZodOptional<z.ZodString>;
561
+ conversation: z.ZodOptional<z.ZodObject<{
562
+ expiration_timestamp: z.ZodOptional<z.ZodString>;
563
+ id: z.ZodString;
564
+ origin: z.ZodObject<{
565
+ type: z.ZodString;
566
+ }, z.core.$strip>;
567
+ }, z.core.$strip>>;
568
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
569
+ code: z.ZodNumber;
570
+ error_data: z.ZodOptional<z.ZodObject<{
571
+ details: z.ZodOptional<z.ZodString>;
572
+ messaging_product: z.ZodOptional<z.ZodString>;
573
+ }, z.core.$strip>>;
574
+ error_subcode: z.ZodOptional<z.ZodNumber>;
575
+ fbtrace_id: z.ZodOptional<z.ZodString>;
576
+ message: z.ZodString;
577
+ title: z.ZodOptional<z.ZodString>;
578
+ }, z.core.$strip>>>;
579
+ id: z.ZodString;
580
+ pricing: z.ZodOptional<z.ZodObject<{
581
+ billable: z.ZodOptional<z.ZodBoolean>;
582
+ category: z.ZodString;
583
+ pricing_model: z.ZodEnum<{
584
+ CBP: "CBP";
585
+ PMP: "PMP";
586
+ }>;
587
+ type: z.ZodOptional<z.ZodEnum<{
588
+ regular: "regular";
589
+ free_customer_service: "free_customer_service";
590
+ free_entry_point: "free_entry_point";
591
+ }>>;
592
+ }, z.core.$strip>>;
593
+ recipient_id: z.ZodString;
594
+ status: z.ZodEnum<{
595
+ delivered: "delivered";
596
+ failed: "failed";
597
+ sent: "sent";
598
+ read: "read";
599
+ played: "played";
600
+ }>;
601
+ timestamp: z.ZodString;
602
+ }, z.core.$strip>;
603
+ recipientId: z.ZodString;
604
+ status: z.ZodEnum<{
605
+ delivered: "delivered";
606
+ failed: "failed";
607
+ sent: "sent";
608
+ read: "read";
609
+ played: "played";
610
+ }>;
611
+ timestamp: z.ZodString;
612
+ }, z.core.$strip>;
613
+ };
614
+ };
@@ -0,0 +1,35 @@
1
+ import { z } from "zod";
2
+ import { WHATSAPP_MESSAGE_DELIVERED_EVENT_SCHEMA, WHATSAPP_MESSAGE_FAILED_EVENT_SCHEMA, WHATSAPP_MESSAGE_PLAYED_EVENT_SCHEMA, WHATSAPP_MESSAGE_READ_EVENT_SCHEMA, WHATSAPP_MESSAGE_RECEIVED_EVENT_SCHEMA, WHATSAPP_MESSAGE_SENT_EVENT_SCHEMA, WHATSAPP_MESSAGE_STATUS_EVENT_SCHEMA, } from "./schemas.js";
3
+ export * from "./api.js";
4
+ export * from "./schemas.js";
5
+ export const WHATSAPP_TRIGGER_CONFIG_SCHEMA = z.object({});
6
+ export const whatsappTriggerContracts = {
7
+ "whatsapp.message.delivered": {
8
+ configSchema: WHATSAPP_TRIGGER_CONFIG_SCHEMA,
9
+ eventSchema: WHATSAPP_MESSAGE_DELIVERED_EVENT_SCHEMA,
10
+ },
11
+ "whatsapp.message.failed": {
12
+ configSchema: WHATSAPP_TRIGGER_CONFIG_SCHEMA,
13
+ eventSchema: WHATSAPP_MESSAGE_FAILED_EVENT_SCHEMA,
14
+ },
15
+ "whatsapp.message.played": {
16
+ configSchema: WHATSAPP_TRIGGER_CONFIG_SCHEMA,
17
+ eventSchema: WHATSAPP_MESSAGE_PLAYED_EVENT_SCHEMA,
18
+ },
19
+ "whatsapp.message.read": {
20
+ configSchema: WHATSAPP_TRIGGER_CONFIG_SCHEMA,
21
+ eventSchema: WHATSAPP_MESSAGE_READ_EVENT_SCHEMA,
22
+ },
23
+ "whatsapp.message.received": {
24
+ configSchema: WHATSAPP_TRIGGER_CONFIG_SCHEMA,
25
+ eventSchema: WHATSAPP_MESSAGE_RECEIVED_EVENT_SCHEMA,
26
+ },
27
+ "whatsapp.message.sent": {
28
+ configSchema: WHATSAPP_TRIGGER_CONFIG_SCHEMA,
29
+ eventSchema: WHATSAPP_MESSAGE_SENT_EVENT_SCHEMA,
30
+ },
31
+ "whatsapp.message.statusEvent": {
32
+ configSchema: WHATSAPP_TRIGGER_CONFIG_SCHEMA,
33
+ eventSchema: WHATSAPP_MESSAGE_STATUS_EVENT_SCHEMA,
34
+ },
35
+ };