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