@automate.ax/integration-contracts 0.104.0 → 0.107.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 (41) hide show
  1. package/dist/close/events.d.ts +13 -13
  2. package/dist/close/schemas.d.ts +9 -9
  3. package/dist/cloudflare/api.d.ts +93 -0
  4. package/dist/cloudflare/api.js +250 -0
  5. package/dist/cloudflare/events.d.ts +1340 -0
  6. package/dist/cloudflare/events.js +178 -0
  7. package/dist/cloudflare/index.d.ts +3 -0
  8. package/dist/cloudflare/index.js +3 -0
  9. package/dist/cloudflare/schemas.d.ts +608 -0
  10. package/dist/cloudflare/schemas.js +340 -0
  11. package/dist/linear/api.d.ts +1 -1
  12. package/dist/linear/api.js +9 -6
  13. package/dist/linear/index.d.ts +3479 -782
  14. package/dist/linear/index.js +249 -13
  15. package/dist/linear/schemas.d.ts +2721 -28
  16. package/dist/linear/schemas.js +515 -2
  17. package/dist/notion/index.js +2 -2
  18. package/dist/notion/schemas.d.ts +2140 -58
  19. package/dist/notion/schemas.js +41 -2
  20. package/dist/outlook/schemas.d.ts +2 -2
  21. package/dist/resend/action-schemas.d.ts +9 -9
  22. package/dist/resend/index.d.ts +36 -36
  23. package/dist/resend/schemas.d.ts +40 -40
  24. package/dist/slack/event-schemas.d.ts +583 -583
  25. package/dist/slack/index.d.ts +303 -303
  26. package/dist/slack/schemas.d.ts +1 -1
  27. package/dist/teams/schemas.d.ts +5 -5
  28. package/dist/triggers.d.ts +2 -1
  29. package/dist/whatsapp/index.d.ts +2 -2
  30. package/dist/whatsapp/schemas.d.ts +5 -5
  31. package/package.json +8 -2
  32. package/src/cloudflare/api.ts +340 -0
  33. package/src/cloudflare/events.ts +212 -0
  34. package/src/cloudflare/index.ts +3 -0
  35. package/src/cloudflare/schemas.ts +359 -0
  36. package/src/linear/api.ts +10 -6
  37. package/src/linear/index.ts +249 -26
  38. package/src/linear/schemas.ts +688 -2
  39. package/src/notion/index.ts +2 -2
  40. package/src/notion/schemas.ts +58 -4
  41. package/src/triggers.ts +2 -0
@@ -1,18 +1,5 @@
1
1
  import * as z from "zod"
2
- import {
3
- LINEAR_COMMENT_CREATED_EVENT_SCHEMA,
4
- LINEAR_COMMENT_EVENT_SCHEMA,
5
- LINEAR_COMMENT_REMOVED_EVENT_SCHEMA,
6
- LINEAR_COMMENT_UPDATED_EVENT_SCHEMA,
7
- LINEAR_ISSUE_CREATED_EVENT_SCHEMA,
8
- LINEAR_ISSUE_EVENT_SCHEMA,
9
- LINEAR_ISSUE_REMOVED_EVENT_SCHEMA,
10
- LINEAR_ISSUE_UPDATED_EVENT_SCHEMA,
11
- LINEAR_PROJECT_CREATED_EVENT_SCHEMA,
12
- LINEAR_PROJECT_EVENT_SCHEMA,
13
- LINEAR_PROJECT_REMOVED_EVENT_SCHEMA,
14
- LINEAR_PROJECT_UPDATED_EVENT_SCHEMA,
15
- } from "./schemas"
2
+ import * as schemas from "./schemas"
16
3
 
17
4
  export * from "./api"
18
5
  export * from "./schemas"
@@ -20,52 +7,288 @@ export * from "./schemas"
20
7
  export const LINEAR_TRIGGER_CONFIG_SCHEMA = z.object({})
21
8
 
22
9
  export const linearTriggerContracts = {
10
+ "linear.attachment.created": {
11
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
12
+ eventSchema: schemas.LINEAR_ATTACHMENT_CREATED_EVENT_SCHEMA,
13
+ },
14
+ "linear.attachment.event": {
15
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
16
+ eventSchema: schemas.LINEAR_ATTACHMENT_EVENT_SCHEMA,
17
+ },
18
+ "linear.attachment.removed": {
19
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
20
+ eventSchema: schemas.LINEAR_ATTACHMENT_REMOVED_EVENT_SCHEMA,
21
+ },
22
+ "linear.attachment.updated": {
23
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
24
+ eventSchema: schemas.LINEAR_ATTACHMENT_UPDATED_EVENT_SCHEMA,
25
+ },
23
26
  "linear.comment.created": {
24
27
  configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
25
- eventSchema: LINEAR_COMMENT_CREATED_EVENT_SCHEMA,
28
+ eventSchema: schemas.LINEAR_COMMENT_CREATED_EVENT_SCHEMA,
26
29
  },
27
30
  "linear.comment.event": {
28
31
  configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
29
- eventSchema: LINEAR_COMMENT_EVENT_SCHEMA,
32
+ eventSchema: schemas.LINEAR_COMMENT_EVENT_SCHEMA,
30
33
  },
31
34
  "linear.comment.removed": {
32
35
  configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
33
- eventSchema: LINEAR_COMMENT_REMOVED_EVENT_SCHEMA,
36
+ eventSchema: schemas.LINEAR_COMMENT_REMOVED_EVENT_SCHEMA,
34
37
  },
35
38
  "linear.comment.updated": {
36
39
  configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
37
- eventSchema: LINEAR_COMMENT_UPDATED_EVENT_SCHEMA,
40
+ eventSchema: schemas.LINEAR_COMMENT_UPDATED_EVENT_SCHEMA,
41
+ },
42
+ "linear.customer-need.created": {
43
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
44
+ eventSchema: schemas.LINEAR_CUSTOMER_NEED_CREATED_EVENT_SCHEMA,
45
+ },
46
+ "linear.customer-need.event": {
47
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
48
+ eventSchema: schemas.LINEAR_CUSTOMER_NEED_EVENT_SCHEMA,
49
+ },
50
+ "linear.customer-need.removed": {
51
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
52
+ eventSchema: schemas.LINEAR_CUSTOMER_NEED_REMOVED_EVENT_SCHEMA,
53
+ },
54
+ "linear.customer-need.updated": {
55
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
56
+ eventSchema: schemas.LINEAR_CUSTOMER_NEED_UPDATED_EVENT_SCHEMA,
57
+ },
58
+ "linear.customer.created": {
59
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
60
+ eventSchema: schemas.LINEAR_CUSTOMER_CREATED_EVENT_SCHEMA,
61
+ },
62
+ "linear.customer.event": {
63
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
64
+ eventSchema: schemas.LINEAR_CUSTOMER_EVENT_SCHEMA,
65
+ },
66
+ "linear.customer.removed": {
67
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
68
+ eventSchema: schemas.LINEAR_CUSTOMER_REMOVED_EVENT_SCHEMA,
69
+ },
70
+ "linear.customer.updated": {
71
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
72
+ eventSchema: schemas.LINEAR_CUSTOMER_UPDATED_EVENT_SCHEMA,
73
+ },
74
+ "linear.cycle.created": {
75
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
76
+ eventSchema: schemas.LINEAR_CYCLE_CREATED_EVENT_SCHEMA,
77
+ },
78
+ "linear.cycle.event": {
79
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
80
+ eventSchema: schemas.LINEAR_CYCLE_EVENT_SCHEMA,
81
+ },
82
+ "linear.cycle.removed": {
83
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
84
+ eventSchema: schemas.LINEAR_CYCLE_REMOVED_EVENT_SCHEMA,
85
+ },
86
+ "linear.cycle.updated": {
87
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
88
+ eventSchema: schemas.LINEAR_CYCLE_UPDATED_EVENT_SCHEMA,
89
+ },
90
+ "linear.document.created": {
91
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
92
+ eventSchema: schemas.LINEAR_DOCUMENT_CREATED_EVENT_SCHEMA,
93
+ },
94
+ "linear.document.event": {
95
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
96
+ eventSchema: schemas.LINEAR_DOCUMENT_EVENT_SCHEMA,
97
+ },
98
+ "linear.document.removed": {
99
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
100
+ eventSchema: schemas.LINEAR_DOCUMENT_REMOVED_EVENT_SCHEMA,
101
+ },
102
+ "linear.document.updated": {
103
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
104
+ eventSchema: schemas.LINEAR_DOCUMENT_UPDATED_EVENT_SCHEMA,
105
+ },
106
+ "linear.initiative-update.created": {
107
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
108
+ eventSchema: schemas.LINEAR_INITIATIVE_UPDATE_CREATED_EVENT_SCHEMA,
109
+ },
110
+ "linear.initiative-update.event": {
111
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
112
+ eventSchema: schemas.LINEAR_INITIATIVE_UPDATE_EVENT_SCHEMA,
113
+ },
114
+ "linear.initiative-update.removed": {
115
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
116
+ eventSchema: schemas.LINEAR_INITIATIVE_UPDATE_REMOVED_EVENT_SCHEMA,
117
+ },
118
+ "linear.initiative-update.updated": {
119
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
120
+ eventSchema: schemas.LINEAR_INITIATIVE_UPDATE_UPDATED_EVENT_SCHEMA,
121
+ },
122
+ "linear.initiative.created": {
123
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
124
+ eventSchema: schemas.LINEAR_INITIATIVE_CREATED_EVENT_SCHEMA,
125
+ },
126
+ "linear.initiative.event": {
127
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
128
+ eventSchema: schemas.LINEAR_INITIATIVE_EVENT_SCHEMA,
129
+ },
130
+ "linear.initiative.removed": {
131
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
132
+ eventSchema: schemas.LINEAR_INITIATIVE_REMOVED_EVENT_SCHEMA,
133
+ },
134
+ "linear.initiative.updated": {
135
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
136
+ eventSchema: schemas.LINEAR_INITIATIVE_UPDATED_EVENT_SCHEMA,
137
+ },
138
+ "linear.issue-label.created": {
139
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
140
+ eventSchema: schemas.LINEAR_ISSUE_LABEL_CREATED_EVENT_SCHEMA,
141
+ },
142
+ "linear.issue-label.event": {
143
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
144
+ eventSchema: schemas.LINEAR_ISSUE_LABEL_EVENT_SCHEMA,
145
+ },
146
+ "linear.issue-label.removed": {
147
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
148
+ eventSchema: schemas.LINEAR_ISSUE_LABEL_REMOVED_EVENT_SCHEMA,
149
+ },
150
+ "linear.issue-label.updated": {
151
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
152
+ eventSchema: schemas.LINEAR_ISSUE_LABEL_UPDATED_EVENT_SCHEMA,
153
+ },
154
+ "linear.issue-sla.breached": {
155
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
156
+ eventSchema: schemas.LINEAR_ISSUE_SLA_BREACHED_EVENT_SCHEMA,
157
+ },
158
+ "linear.issue-sla.event": {
159
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
160
+ eventSchema: schemas.LINEAR_ISSUE_SLA_EVENT_SCHEMA,
161
+ },
162
+ "linear.issue-sla.high-risk": {
163
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
164
+ eventSchema: schemas.LINEAR_ISSUE_SLA_HIGH_RISK_EVENT_SCHEMA,
165
+ },
166
+ "linear.issue-sla.set": {
167
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
168
+ eventSchema: schemas.LINEAR_ISSUE_SLA_SET_EVENT_SCHEMA,
38
169
  },
39
170
  "linear.issue.created": {
40
171
  configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
41
- eventSchema: LINEAR_ISSUE_CREATED_EVENT_SCHEMA,
172
+ eventSchema: schemas.LINEAR_ISSUE_CREATED_EVENT_SCHEMA,
42
173
  },
43
174
  "linear.issue.event": {
44
175
  configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
45
- eventSchema: LINEAR_ISSUE_EVENT_SCHEMA,
176
+ eventSchema: schemas.LINEAR_ISSUE_EVENT_SCHEMA,
46
177
  },
47
178
  "linear.issue.removed": {
48
179
  configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
49
- eventSchema: LINEAR_ISSUE_REMOVED_EVENT_SCHEMA,
180
+ eventSchema: schemas.LINEAR_ISSUE_REMOVED_EVENT_SCHEMA,
50
181
  },
51
182
  "linear.issue.updated": {
52
183
  configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
53
- eventSchema: LINEAR_ISSUE_UPDATED_EVENT_SCHEMA,
184
+ eventSchema: schemas.LINEAR_ISSUE_UPDATED_EVENT_SCHEMA,
185
+ },
186
+ "linear.project-label.created": {
187
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
188
+ eventSchema: schemas.LINEAR_PROJECT_LABEL_CREATED_EVENT_SCHEMA,
189
+ },
190
+ "linear.project-label.event": {
191
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
192
+ eventSchema: schemas.LINEAR_PROJECT_LABEL_EVENT_SCHEMA,
193
+ },
194
+ "linear.project-label.removed": {
195
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
196
+ eventSchema: schemas.LINEAR_PROJECT_LABEL_REMOVED_EVENT_SCHEMA,
197
+ },
198
+ "linear.project-label.updated": {
199
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
200
+ eventSchema: schemas.LINEAR_PROJECT_LABEL_UPDATED_EVENT_SCHEMA,
201
+ },
202
+ "linear.project-update.created": {
203
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
204
+ eventSchema: schemas.LINEAR_PROJECT_UPDATE_CREATED_EVENT_SCHEMA,
205
+ },
206
+ "linear.project-update.event": {
207
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
208
+ eventSchema: schemas.LINEAR_PROJECT_UPDATE_EVENT_SCHEMA,
209
+ },
210
+ "linear.project-update.removed": {
211
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
212
+ eventSchema: schemas.LINEAR_PROJECT_UPDATE_REMOVED_EVENT_SCHEMA,
213
+ },
214
+ "linear.project-update.updated": {
215
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
216
+ eventSchema: schemas.LINEAR_PROJECT_UPDATE_UPDATED_EVENT_SCHEMA,
54
217
  },
55
218
  "linear.project.created": {
56
219
  configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
57
- eventSchema: LINEAR_PROJECT_CREATED_EVENT_SCHEMA,
220
+ eventSchema: schemas.LINEAR_PROJECT_CREATED_EVENT_SCHEMA,
58
221
  },
59
222
  "linear.project.event": {
60
223
  configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
61
- eventSchema: LINEAR_PROJECT_EVENT_SCHEMA,
224
+ eventSchema: schemas.LINEAR_PROJECT_EVENT_SCHEMA,
62
225
  },
63
226
  "linear.project.removed": {
64
227
  configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
65
- eventSchema: LINEAR_PROJECT_REMOVED_EVENT_SCHEMA,
228
+ eventSchema: schemas.LINEAR_PROJECT_REMOVED_EVENT_SCHEMA,
66
229
  },
67
230
  "linear.project.updated": {
68
231
  configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
69
- eventSchema: LINEAR_PROJECT_UPDATED_EVENT_SCHEMA,
232
+ eventSchema: schemas.LINEAR_PROJECT_UPDATED_EVENT_SCHEMA,
233
+ },
234
+ "linear.reaction.created": {
235
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
236
+ eventSchema: schemas.LINEAR_REACTION_CREATED_EVENT_SCHEMA,
237
+ },
238
+ "linear.reaction.event": {
239
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
240
+ eventSchema: schemas.LINEAR_REACTION_EVENT_SCHEMA,
241
+ },
242
+ "linear.reaction.removed": {
243
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
244
+ eventSchema: schemas.LINEAR_REACTION_REMOVED_EVENT_SCHEMA,
245
+ },
246
+ "linear.release-note.created": {
247
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
248
+ eventSchema: schemas.LINEAR_RELEASE_NOTE_CREATED_EVENT_SCHEMA,
249
+ },
250
+ "linear.release-note.event": {
251
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
252
+ eventSchema: schemas.LINEAR_RELEASE_NOTE_EVENT_SCHEMA,
253
+ },
254
+ "linear.release-note.removed": {
255
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
256
+ eventSchema: schemas.LINEAR_RELEASE_NOTE_REMOVED_EVENT_SCHEMA,
257
+ },
258
+ "linear.release-note.updated": {
259
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
260
+ eventSchema: schemas.LINEAR_RELEASE_NOTE_UPDATED_EVENT_SCHEMA,
261
+ },
262
+ "linear.release.created": {
263
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
264
+ eventSchema: schemas.LINEAR_RELEASE_CREATED_EVENT_SCHEMA,
265
+ },
266
+ "linear.release.event": {
267
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
268
+ eventSchema: schemas.LINEAR_RELEASE_EVENT_SCHEMA,
269
+ },
270
+ "linear.release.removed": {
271
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
272
+ eventSchema: schemas.LINEAR_RELEASE_REMOVED_EVENT_SCHEMA,
273
+ },
274
+ "linear.release.updated": {
275
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
276
+ eventSchema: schemas.LINEAR_RELEASE_UPDATED_EVENT_SCHEMA,
277
+ },
278
+ "linear.user.created": {
279
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
280
+ eventSchema: schemas.LINEAR_USER_CREATED_EVENT_SCHEMA,
281
+ },
282
+ "linear.user.event": {
283
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
284
+ eventSchema: schemas.LINEAR_USER_EVENT_SCHEMA,
285
+ },
286
+ "linear.user.removed": {
287
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
288
+ eventSchema: schemas.LINEAR_USER_REMOVED_EVENT_SCHEMA,
289
+ },
290
+ "linear.user.updated": {
291
+ configSchema: LINEAR_TRIGGER_CONFIG_SCHEMA,
292
+ eventSchema: schemas.LINEAR_USER_UPDATED_EVENT_SCHEMA,
70
293
  },
71
294
  } as const