terse-types 0.0.3 → 0.0.5

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.
@@ -0,0 +1,4065 @@
1
+ import { z } from "zod";
2
+ import { IntegrationType } from "./Integrations.js";
3
+ import { SlackAttachments, SlackBlocks, SlackChannelType, SlackFiles } from "./SlackTypes.js";
4
+ export declare const slackMessageTriggerSchema: z.ZodObject<{
5
+ integrationType: z.ZodLiteral<IntegrationType.SLACK>;
6
+ channelId: z.ZodString;
7
+ channelName: z.ZodNullable<z.ZodString>;
8
+ userId: z.ZodString;
9
+ userName: z.ZodNullable<z.ZodString>;
10
+ text: z.ZodString;
11
+ timestamp: z.ZodString;
12
+ threadTs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ threadTimestamp: z.ZodNullable<z.ZodString>;
14
+ teamId: z.ZodString;
15
+ permalink: z.ZodNullable<z.ZodString>;
16
+ channelType: z.ZodNullable<z.ZodEnum<typeof SlackChannelType>>;
17
+ blocks: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
18
+ attachments: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
19
+ files: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
20
+ eventType: z.ZodLiteral<"message">;
21
+ }, z.core.$strip>;
22
+ type SlackMessageTriggerSchemaShape = z.infer<typeof slackMessageTriggerSchema>;
23
+ export type SlackMessageTrigger = Omit<SlackMessageTriggerSchemaShape, "blocks" | "attachments" | "files"> & {
24
+ blocks: SlackBlocks | null;
25
+ attachments: SlackAttachments | null;
26
+ files: SlackFiles | null;
27
+ };
28
+ export declare const slackAppMentionTriggerSchema: z.ZodObject<{
29
+ integrationType: z.ZodLiteral<IntegrationType.SLACK>;
30
+ channelId: z.ZodString;
31
+ channelName: z.ZodNullable<z.ZodString>;
32
+ userId: z.ZodString;
33
+ userName: z.ZodNullable<z.ZodString>;
34
+ text: z.ZodString;
35
+ timestamp: z.ZodString;
36
+ threadTs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ threadTimestamp: z.ZodNullable<z.ZodString>;
38
+ teamId: z.ZodString;
39
+ permalink: z.ZodNullable<z.ZodString>;
40
+ channelType: z.ZodNullable<z.ZodEnum<typeof SlackChannelType>>;
41
+ blocks: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
42
+ attachments: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
43
+ files: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
44
+ eventType: z.ZodLiteral<"app_mention">;
45
+ }, z.core.$strip>;
46
+ type SlackAppMentionTriggerSchemaShape = z.infer<typeof slackAppMentionTriggerSchema>;
47
+ export type SlackAppMentionTrigger = Omit<SlackAppMentionTriggerSchemaShape, "blocks" | "attachments" | "files"> & {
48
+ blocks: SlackBlocks | null;
49
+ attachments: SlackAttachments | null;
50
+ files: SlackFiles | null;
51
+ };
52
+ export declare const slackReactionAddedTriggerSchema: z.ZodObject<{
53
+ integrationType: z.ZodLiteral<IntegrationType.SLACK>;
54
+ channelId: z.ZodString;
55
+ channelName: z.ZodNullable<z.ZodString>;
56
+ userId: z.ZodString;
57
+ userName: z.ZodNullable<z.ZodString>;
58
+ text: z.ZodString;
59
+ timestamp: z.ZodString;
60
+ threadTs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
+ threadTimestamp: z.ZodNullable<z.ZodString>;
62
+ teamId: z.ZodString;
63
+ permalink: z.ZodNullable<z.ZodString>;
64
+ channelType: z.ZodNullable<z.ZodEnum<typeof SlackChannelType>>;
65
+ blocks: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
66
+ attachments: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
67
+ files: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
68
+ eventType: z.ZodLiteral<"reaction_added">;
69
+ reaction: z.ZodString;
70
+ itemType: z.ZodNullable<z.ZodString>;
71
+ itemUserId: z.ZodNullable<z.ZodString>;
72
+ itemChannelId: z.ZodNullable<z.ZodString>;
73
+ itemTimestamp: z.ZodNullable<z.ZodString>;
74
+ }, z.core.$strip>;
75
+ type SlackReactionAddedTriggerSchemaShape = z.infer<typeof slackReactionAddedTriggerSchema>;
76
+ export type SlackReactionAddedTrigger = Omit<SlackReactionAddedTriggerSchemaShape, "blocks" | "attachments" | "files"> & {
77
+ blocks: SlackBlocks | null;
78
+ attachments: SlackAttachments | null;
79
+ files: SlackFiles | null;
80
+ };
81
+ export declare const slackTriggerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
82
+ integrationType: z.ZodLiteral<IntegrationType.SLACK>;
83
+ channelId: z.ZodString;
84
+ channelName: z.ZodNullable<z.ZodString>;
85
+ userId: z.ZodString;
86
+ userName: z.ZodNullable<z.ZodString>;
87
+ text: z.ZodString;
88
+ timestamp: z.ZodString;
89
+ threadTs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
+ threadTimestamp: z.ZodNullable<z.ZodString>;
91
+ teamId: z.ZodString;
92
+ permalink: z.ZodNullable<z.ZodString>;
93
+ channelType: z.ZodNullable<z.ZodEnum<typeof SlackChannelType>>;
94
+ blocks: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
95
+ attachments: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
96
+ files: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
97
+ eventType: z.ZodLiteral<"message">;
98
+ }, z.core.$strip>, z.ZodObject<{
99
+ integrationType: z.ZodLiteral<IntegrationType.SLACK>;
100
+ channelId: z.ZodString;
101
+ channelName: z.ZodNullable<z.ZodString>;
102
+ userId: z.ZodString;
103
+ userName: z.ZodNullable<z.ZodString>;
104
+ text: z.ZodString;
105
+ timestamp: z.ZodString;
106
+ threadTs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
+ threadTimestamp: z.ZodNullable<z.ZodString>;
108
+ teamId: z.ZodString;
109
+ permalink: z.ZodNullable<z.ZodString>;
110
+ channelType: z.ZodNullable<z.ZodEnum<typeof SlackChannelType>>;
111
+ blocks: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
112
+ attachments: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
113
+ files: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
114
+ eventType: z.ZodLiteral<"app_mention">;
115
+ }, z.core.$strip>, z.ZodObject<{
116
+ integrationType: z.ZodLiteral<IntegrationType.SLACK>;
117
+ channelId: z.ZodString;
118
+ channelName: z.ZodNullable<z.ZodString>;
119
+ userId: z.ZodString;
120
+ userName: z.ZodNullable<z.ZodString>;
121
+ text: z.ZodString;
122
+ timestamp: z.ZodString;
123
+ threadTs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
124
+ threadTimestamp: z.ZodNullable<z.ZodString>;
125
+ teamId: z.ZodString;
126
+ permalink: z.ZodNullable<z.ZodString>;
127
+ channelType: z.ZodNullable<z.ZodEnum<typeof SlackChannelType>>;
128
+ blocks: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
129
+ attachments: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
130
+ files: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
131
+ eventType: z.ZodLiteral<"reaction_added">;
132
+ reaction: z.ZodString;
133
+ itemType: z.ZodNullable<z.ZodString>;
134
+ itemUserId: z.ZodNullable<z.ZodString>;
135
+ itemChannelId: z.ZodNullable<z.ZodString>;
136
+ itemTimestamp: z.ZodNullable<z.ZodString>;
137
+ }, z.core.$strip>], "eventType">;
138
+ export type SlackTrigger = SlackMessageTrigger | SlackAppMentionTrigger | SlackReactionAddedTrigger;
139
+ export declare const fileDiffSchema: z.ZodObject<{
140
+ filename: z.ZodString;
141
+ diff: z.ZodString;
142
+ }, z.core.$strip>;
143
+ export declare const commitSchema: z.ZodObject<{
144
+ sha: z.ZodString;
145
+ message: z.ZodOptional<z.ZodString>;
146
+ name: z.ZodString;
147
+ fileDiffs: z.ZodArray<z.ZodObject<{
148
+ filename: z.ZodString;
149
+ diff: z.ZodString;
150
+ }, z.core.$strip>>;
151
+ }, z.core.$strip>;
152
+ export declare const pullRequestUserSchema: z.ZodObject<{
153
+ login: z.ZodString;
154
+ email: z.ZodOptional<z.ZodString>;
155
+ }, z.core.$strip>;
156
+ export declare const pullRequestRefSchema: z.ZodObject<{
157
+ ref: z.ZodString;
158
+ sha: z.ZodString;
159
+ }, z.core.$strip>;
160
+ export declare const pullRequestSchema: z.ZodObject<{
161
+ id: z.ZodString;
162
+ number: z.ZodNumber;
163
+ title: z.ZodString;
164
+ body: z.ZodOptional<z.ZodString>;
165
+ state: z.ZodEnum<{
166
+ open: "open";
167
+ closed: "closed";
168
+ }>;
169
+ merged: z.ZodBoolean;
170
+ head: z.ZodObject<{
171
+ ref: z.ZodString;
172
+ sha: z.ZodString;
173
+ }, z.core.$strip>;
174
+ base: z.ZodObject<{
175
+ ref: z.ZodString;
176
+ sha: z.ZodString;
177
+ }, z.core.$strip>;
178
+ user: z.ZodObject<{
179
+ login: z.ZodString;
180
+ email: z.ZodOptional<z.ZodString>;
181
+ }, z.core.$strip>;
182
+ author: z.ZodOptional<z.ZodObject<{
183
+ login: z.ZodString;
184
+ email: z.ZodOptional<z.ZodString>;
185
+ }, z.core.$strip>>;
186
+ url: z.ZodOptional<z.ZodString>;
187
+ }, z.core.$strip>;
188
+ export declare const githubRepositorySchema: z.ZodObject<{
189
+ id: z.ZodNumber;
190
+ name: z.ZodString;
191
+ owner: z.ZodString;
192
+ defaultBranch: z.ZodString;
193
+ }, z.core.$strip>;
194
+ export declare const senderSchema: z.ZodObject<{
195
+ login: z.ZodString;
196
+ email: z.ZodOptional<z.ZodString>;
197
+ }, z.core.$strip>;
198
+ export declare const GithubPushTriggerSchema: z.ZodObject<{
199
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
200
+ username: z.ZodString;
201
+ installationId: z.ZodNumber;
202
+ repositoryName: z.ZodString;
203
+ repository: z.ZodObject<{
204
+ id: z.ZodNumber;
205
+ name: z.ZodString;
206
+ owner: z.ZodString;
207
+ defaultBranch: z.ZodString;
208
+ }, z.core.$strip>;
209
+ sender: z.ZodObject<{
210
+ login: z.ZodString;
211
+ email: z.ZodOptional<z.ZodString>;
212
+ }, z.core.$strip>;
213
+ eventType: z.ZodLiteral<"push">;
214
+ branch: z.ZodString;
215
+ commits: z.ZodArray<z.ZodObject<{
216
+ sha: z.ZodString;
217
+ message: z.ZodOptional<z.ZodString>;
218
+ name: z.ZodString;
219
+ fileDiffs: z.ZodArray<z.ZodObject<{
220
+ filename: z.ZodString;
221
+ diff: z.ZodString;
222
+ }, z.core.$strip>>;
223
+ }, z.core.$strip>>;
224
+ pullRequest: z.ZodOptional<z.ZodUndefined>;
225
+ }, z.core.$strip>;
226
+ export type GithubPushTrigger = z.infer<typeof GithubPushTriggerSchema>;
227
+ export declare const GithubPROpenedTriggerSchema: z.ZodObject<{
228
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
229
+ username: z.ZodString;
230
+ installationId: z.ZodNumber;
231
+ repositoryName: z.ZodString;
232
+ repository: z.ZodObject<{
233
+ id: z.ZodNumber;
234
+ name: z.ZodString;
235
+ owner: z.ZodString;
236
+ defaultBranch: z.ZodString;
237
+ }, z.core.$strip>;
238
+ sender: z.ZodObject<{
239
+ login: z.ZodString;
240
+ email: z.ZodOptional<z.ZodString>;
241
+ }, z.core.$strip>;
242
+ pullRequest: z.ZodObject<{
243
+ id: z.ZodString;
244
+ number: z.ZodNumber;
245
+ title: z.ZodString;
246
+ body: z.ZodOptional<z.ZodString>;
247
+ state: z.ZodEnum<{
248
+ open: "open";
249
+ closed: "closed";
250
+ }>;
251
+ merged: z.ZodBoolean;
252
+ head: z.ZodObject<{
253
+ ref: z.ZodString;
254
+ sha: z.ZodString;
255
+ }, z.core.$strip>;
256
+ base: z.ZodObject<{
257
+ ref: z.ZodString;
258
+ sha: z.ZodString;
259
+ }, z.core.$strip>;
260
+ user: z.ZodObject<{
261
+ login: z.ZodString;
262
+ email: z.ZodOptional<z.ZodString>;
263
+ }, z.core.$strip>;
264
+ author: z.ZodOptional<z.ZodObject<{
265
+ login: z.ZodString;
266
+ email: z.ZodOptional<z.ZodString>;
267
+ }, z.core.$strip>>;
268
+ url: z.ZodOptional<z.ZodString>;
269
+ }, z.core.$strip>;
270
+ branch: z.ZodOptional<z.ZodString>;
271
+ commits: z.ZodArray<z.ZodObject<{
272
+ sha: z.ZodString;
273
+ message: z.ZodOptional<z.ZodString>;
274
+ name: z.ZodString;
275
+ fileDiffs: z.ZodArray<z.ZodObject<{
276
+ filename: z.ZodString;
277
+ diff: z.ZodString;
278
+ }, z.core.$strip>>;
279
+ }, z.core.$strip>>;
280
+ eventType: z.ZodLiteral<"pull_request.opened">;
281
+ }, z.core.$strip>;
282
+ export type GithubPROpenedTrigger = z.infer<typeof GithubPRMergedTriggerSchema>;
283
+ export declare const GithubPRSynchronizedTriggerSchema: z.ZodObject<{
284
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
285
+ username: z.ZodString;
286
+ installationId: z.ZodNumber;
287
+ repositoryName: z.ZodString;
288
+ repository: z.ZodObject<{
289
+ id: z.ZodNumber;
290
+ name: z.ZodString;
291
+ owner: z.ZodString;
292
+ defaultBranch: z.ZodString;
293
+ }, z.core.$strip>;
294
+ sender: z.ZodObject<{
295
+ login: z.ZodString;
296
+ email: z.ZodOptional<z.ZodString>;
297
+ }, z.core.$strip>;
298
+ pullRequest: z.ZodObject<{
299
+ id: z.ZodString;
300
+ number: z.ZodNumber;
301
+ title: z.ZodString;
302
+ body: z.ZodOptional<z.ZodString>;
303
+ state: z.ZodEnum<{
304
+ open: "open";
305
+ closed: "closed";
306
+ }>;
307
+ merged: z.ZodBoolean;
308
+ head: z.ZodObject<{
309
+ ref: z.ZodString;
310
+ sha: z.ZodString;
311
+ }, z.core.$strip>;
312
+ base: z.ZodObject<{
313
+ ref: z.ZodString;
314
+ sha: z.ZodString;
315
+ }, z.core.$strip>;
316
+ user: z.ZodObject<{
317
+ login: z.ZodString;
318
+ email: z.ZodOptional<z.ZodString>;
319
+ }, z.core.$strip>;
320
+ author: z.ZodOptional<z.ZodObject<{
321
+ login: z.ZodString;
322
+ email: z.ZodOptional<z.ZodString>;
323
+ }, z.core.$strip>>;
324
+ url: z.ZodOptional<z.ZodString>;
325
+ }, z.core.$strip>;
326
+ branch: z.ZodOptional<z.ZodString>;
327
+ commits: z.ZodArray<z.ZodObject<{
328
+ sha: z.ZodString;
329
+ message: z.ZodOptional<z.ZodString>;
330
+ name: z.ZodString;
331
+ fileDiffs: z.ZodArray<z.ZodObject<{
332
+ filename: z.ZodString;
333
+ diff: z.ZodString;
334
+ }, z.core.$strip>>;
335
+ }, z.core.$strip>>;
336
+ eventType: z.ZodLiteral<"pull_request.synchronize">;
337
+ }, z.core.$strip>;
338
+ export type GithubPRSynchronizedTrigger = z.infer<typeof GithubPRSynchronizedTriggerSchema>;
339
+ export declare const GithubPRClosedTriggerSchema: z.ZodObject<{
340
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
341
+ username: z.ZodString;
342
+ installationId: z.ZodNumber;
343
+ repositoryName: z.ZodString;
344
+ repository: z.ZodObject<{
345
+ id: z.ZodNumber;
346
+ name: z.ZodString;
347
+ owner: z.ZodString;
348
+ defaultBranch: z.ZodString;
349
+ }, z.core.$strip>;
350
+ sender: z.ZodObject<{
351
+ login: z.ZodString;
352
+ email: z.ZodOptional<z.ZodString>;
353
+ }, z.core.$strip>;
354
+ pullRequest: z.ZodObject<{
355
+ id: z.ZodString;
356
+ number: z.ZodNumber;
357
+ title: z.ZodString;
358
+ body: z.ZodOptional<z.ZodString>;
359
+ state: z.ZodEnum<{
360
+ open: "open";
361
+ closed: "closed";
362
+ }>;
363
+ merged: z.ZodBoolean;
364
+ head: z.ZodObject<{
365
+ ref: z.ZodString;
366
+ sha: z.ZodString;
367
+ }, z.core.$strip>;
368
+ base: z.ZodObject<{
369
+ ref: z.ZodString;
370
+ sha: z.ZodString;
371
+ }, z.core.$strip>;
372
+ user: z.ZodObject<{
373
+ login: z.ZodString;
374
+ email: z.ZodOptional<z.ZodString>;
375
+ }, z.core.$strip>;
376
+ author: z.ZodOptional<z.ZodObject<{
377
+ login: z.ZodString;
378
+ email: z.ZodOptional<z.ZodString>;
379
+ }, z.core.$strip>>;
380
+ url: z.ZodOptional<z.ZodString>;
381
+ }, z.core.$strip>;
382
+ branch: z.ZodOptional<z.ZodString>;
383
+ commits: z.ZodArray<z.ZodObject<{
384
+ sha: z.ZodString;
385
+ message: z.ZodOptional<z.ZodString>;
386
+ name: z.ZodString;
387
+ fileDiffs: z.ZodArray<z.ZodObject<{
388
+ filename: z.ZodString;
389
+ diff: z.ZodString;
390
+ }, z.core.$strip>>;
391
+ }, z.core.$strip>>;
392
+ eventType: z.ZodLiteral<"pull_request.closed">;
393
+ }, z.core.$strip>;
394
+ export type GithubPRClosedTrigger = z.infer<typeof GithubPRClosedTriggerSchema>;
395
+ export declare const GithubPRMergedTriggerSchema: z.ZodObject<{
396
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
397
+ username: z.ZodString;
398
+ installationId: z.ZodNumber;
399
+ repositoryName: z.ZodString;
400
+ repository: z.ZodObject<{
401
+ id: z.ZodNumber;
402
+ name: z.ZodString;
403
+ owner: z.ZodString;
404
+ defaultBranch: z.ZodString;
405
+ }, z.core.$strip>;
406
+ sender: z.ZodObject<{
407
+ login: z.ZodString;
408
+ email: z.ZodOptional<z.ZodString>;
409
+ }, z.core.$strip>;
410
+ pullRequest: z.ZodObject<{
411
+ id: z.ZodString;
412
+ number: z.ZodNumber;
413
+ title: z.ZodString;
414
+ body: z.ZodOptional<z.ZodString>;
415
+ state: z.ZodEnum<{
416
+ open: "open";
417
+ closed: "closed";
418
+ }>;
419
+ merged: z.ZodBoolean;
420
+ head: z.ZodObject<{
421
+ ref: z.ZodString;
422
+ sha: z.ZodString;
423
+ }, z.core.$strip>;
424
+ base: z.ZodObject<{
425
+ ref: z.ZodString;
426
+ sha: z.ZodString;
427
+ }, z.core.$strip>;
428
+ user: z.ZodObject<{
429
+ login: z.ZodString;
430
+ email: z.ZodOptional<z.ZodString>;
431
+ }, z.core.$strip>;
432
+ author: z.ZodOptional<z.ZodObject<{
433
+ login: z.ZodString;
434
+ email: z.ZodOptional<z.ZodString>;
435
+ }, z.core.$strip>>;
436
+ url: z.ZodOptional<z.ZodString>;
437
+ }, z.core.$strip>;
438
+ branch: z.ZodOptional<z.ZodString>;
439
+ commits: z.ZodArray<z.ZodObject<{
440
+ sha: z.ZodString;
441
+ message: z.ZodOptional<z.ZodString>;
442
+ name: z.ZodString;
443
+ fileDiffs: z.ZodArray<z.ZodObject<{
444
+ filename: z.ZodString;
445
+ diff: z.ZodString;
446
+ }, z.core.$strip>>;
447
+ }, z.core.$strip>>;
448
+ eventType: z.ZodLiteral<"pull_request.merged">;
449
+ }, z.core.$strip>;
450
+ export type GithubPRMergedTrigger = z.infer<typeof GithubPRMergedTriggerSchema>;
451
+ export declare const GithubPRTriggerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
452
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
453
+ username: z.ZodString;
454
+ installationId: z.ZodNumber;
455
+ repositoryName: z.ZodString;
456
+ repository: z.ZodObject<{
457
+ id: z.ZodNumber;
458
+ name: z.ZodString;
459
+ owner: z.ZodString;
460
+ defaultBranch: z.ZodString;
461
+ }, z.core.$strip>;
462
+ sender: z.ZodObject<{
463
+ login: z.ZodString;
464
+ email: z.ZodOptional<z.ZodString>;
465
+ }, z.core.$strip>;
466
+ pullRequest: z.ZodObject<{
467
+ id: z.ZodString;
468
+ number: z.ZodNumber;
469
+ title: z.ZodString;
470
+ body: z.ZodOptional<z.ZodString>;
471
+ state: z.ZodEnum<{
472
+ open: "open";
473
+ closed: "closed";
474
+ }>;
475
+ merged: z.ZodBoolean;
476
+ head: z.ZodObject<{
477
+ ref: z.ZodString;
478
+ sha: z.ZodString;
479
+ }, z.core.$strip>;
480
+ base: z.ZodObject<{
481
+ ref: z.ZodString;
482
+ sha: z.ZodString;
483
+ }, z.core.$strip>;
484
+ user: z.ZodObject<{
485
+ login: z.ZodString;
486
+ email: z.ZodOptional<z.ZodString>;
487
+ }, z.core.$strip>;
488
+ author: z.ZodOptional<z.ZodObject<{
489
+ login: z.ZodString;
490
+ email: z.ZodOptional<z.ZodString>;
491
+ }, z.core.$strip>>;
492
+ url: z.ZodOptional<z.ZodString>;
493
+ }, z.core.$strip>;
494
+ branch: z.ZodOptional<z.ZodString>;
495
+ commits: z.ZodArray<z.ZodObject<{
496
+ sha: z.ZodString;
497
+ message: z.ZodOptional<z.ZodString>;
498
+ name: z.ZodString;
499
+ fileDiffs: z.ZodArray<z.ZodObject<{
500
+ filename: z.ZodString;
501
+ diff: z.ZodString;
502
+ }, z.core.$strip>>;
503
+ }, z.core.$strip>>;
504
+ eventType: z.ZodLiteral<"pull_request.opened">;
505
+ }, z.core.$strip>, z.ZodObject<{
506
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
507
+ username: z.ZodString;
508
+ installationId: z.ZodNumber;
509
+ repositoryName: z.ZodString;
510
+ repository: z.ZodObject<{
511
+ id: z.ZodNumber;
512
+ name: z.ZodString;
513
+ owner: z.ZodString;
514
+ defaultBranch: z.ZodString;
515
+ }, z.core.$strip>;
516
+ sender: z.ZodObject<{
517
+ login: z.ZodString;
518
+ email: z.ZodOptional<z.ZodString>;
519
+ }, z.core.$strip>;
520
+ pullRequest: z.ZodObject<{
521
+ id: z.ZodString;
522
+ number: z.ZodNumber;
523
+ title: z.ZodString;
524
+ body: z.ZodOptional<z.ZodString>;
525
+ state: z.ZodEnum<{
526
+ open: "open";
527
+ closed: "closed";
528
+ }>;
529
+ merged: z.ZodBoolean;
530
+ head: z.ZodObject<{
531
+ ref: z.ZodString;
532
+ sha: z.ZodString;
533
+ }, z.core.$strip>;
534
+ base: z.ZodObject<{
535
+ ref: z.ZodString;
536
+ sha: z.ZodString;
537
+ }, z.core.$strip>;
538
+ user: z.ZodObject<{
539
+ login: z.ZodString;
540
+ email: z.ZodOptional<z.ZodString>;
541
+ }, z.core.$strip>;
542
+ author: z.ZodOptional<z.ZodObject<{
543
+ login: z.ZodString;
544
+ email: z.ZodOptional<z.ZodString>;
545
+ }, z.core.$strip>>;
546
+ url: z.ZodOptional<z.ZodString>;
547
+ }, z.core.$strip>;
548
+ branch: z.ZodOptional<z.ZodString>;
549
+ commits: z.ZodArray<z.ZodObject<{
550
+ sha: z.ZodString;
551
+ message: z.ZodOptional<z.ZodString>;
552
+ name: z.ZodString;
553
+ fileDiffs: z.ZodArray<z.ZodObject<{
554
+ filename: z.ZodString;
555
+ diff: z.ZodString;
556
+ }, z.core.$strip>>;
557
+ }, z.core.$strip>>;
558
+ eventType: z.ZodLiteral<"pull_request.synchronize">;
559
+ }, z.core.$strip>, z.ZodObject<{
560
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
561
+ username: z.ZodString;
562
+ installationId: z.ZodNumber;
563
+ repositoryName: z.ZodString;
564
+ repository: z.ZodObject<{
565
+ id: z.ZodNumber;
566
+ name: z.ZodString;
567
+ owner: z.ZodString;
568
+ defaultBranch: z.ZodString;
569
+ }, z.core.$strip>;
570
+ sender: z.ZodObject<{
571
+ login: z.ZodString;
572
+ email: z.ZodOptional<z.ZodString>;
573
+ }, z.core.$strip>;
574
+ pullRequest: z.ZodObject<{
575
+ id: z.ZodString;
576
+ number: z.ZodNumber;
577
+ title: z.ZodString;
578
+ body: z.ZodOptional<z.ZodString>;
579
+ state: z.ZodEnum<{
580
+ open: "open";
581
+ closed: "closed";
582
+ }>;
583
+ merged: z.ZodBoolean;
584
+ head: z.ZodObject<{
585
+ ref: z.ZodString;
586
+ sha: z.ZodString;
587
+ }, z.core.$strip>;
588
+ base: z.ZodObject<{
589
+ ref: z.ZodString;
590
+ sha: z.ZodString;
591
+ }, z.core.$strip>;
592
+ user: z.ZodObject<{
593
+ login: z.ZodString;
594
+ email: z.ZodOptional<z.ZodString>;
595
+ }, z.core.$strip>;
596
+ author: z.ZodOptional<z.ZodObject<{
597
+ login: z.ZodString;
598
+ email: z.ZodOptional<z.ZodString>;
599
+ }, z.core.$strip>>;
600
+ url: z.ZodOptional<z.ZodString>;
601
+ }, z.core.$strip>;
602
+ branch: z.ZodOptional<z.ZodString>;
603
+ commits: z.ZodArray<z.ZodObject<{
604
+ sha: z.ZodString;
605
+ message: z.ZodOptional<z.ZodString>;
606
+ name: z.ZodString;
607
+ fileDiffs: z.ZodArray<z.ZodObject<{
608
+ filename: z.ZodString;
609
+ diff: z.ZodString;
610
+ }, z.core.$strip>>;
611
+ }, z.core.$strip>>;
612
+ eventType: z.ZodLiteral<"pull_request.closed">;
613
+ }, z.core.$strip>, z.ZodObject<{
614
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
615
+ username: z.ZodString;
616
+ installationId: z.ZodNumber;
617
+ repositoryName: z.ZodString;
618
+ repository: z.ZodObject<{
619
+ id: z.ZodNumber;
620
+ name: z.ZodString;
621
+ owner: z.ZodString;
622
+ defaultBranch: z.ZodString;
623
+ }, z.core.$strip>;
624
+ sender: z.ZodObject<{
625
+ login: z.ZodString;
626
+ email: z.ZodOptional<z.ZodString>;
627
+ }, z.core.$strip>;
628
+ pullRequest: z.ZodObject<{
629
+ id: z.ZodString;
630
+ number: z.ZodNumber;
631
+ title: z.ZodString;
632
+ body: z.ZodOptional<z.ZodString>;
633
+ state: z.ZodEnum<{
634
+ open: "open";
635
+ closed: "closed";
636
+ }>;
637
+ merged: z.ZodBoolean;
638
+ head: z.ZodObject<{
639
+ ref: z.ZodString;
640
+ sha: z.ZodString;
641
+ }, z.core.$strip>;
642
+ base: z.ZodObject<{
643
+ ref: z.ZodString;
644
+ sha: z.ZodString;
645
+ }, z.core.$strip>;
646
+ user: z.ZodObject<{
647
+ login: z.ZodString;
648
+ email: z.ZodOptional<z.ZodString>;
649
+ }, z.core.$strip>;
650
+ author: z.ZodOptional<z.ZodObject<{
651
+ login: z.ZodString;
652
+ email: z.ZodOptional<z.ZodString>;
653
+ }, z.core.$strip>>;
654
+ url: z.ZodOptional<z.ZodString>;
655
+ }, z.core.$strip>;
656
+ branch: z.ZodOptional<z.ZodString>;
657
+ commits: z.ZodArray<z.ZodObject<{
658
+ sha: z.ZodString;
659
+ message: z.ZodOptional<z.ZodString>;
660
+ name: z.ZodString;
661
+ fileDiffs: z.ZodArray<z.ZodObject<{
662
+ filename: z.ZodString;
663
+ diff: z.ZodString;
664
+ }, z.core.$strip>>;
665
+ }, z.core.$strip>>;
666
+ eventType: z.ZodLiteral<"pull_request.merged">;
667
+ }, z.core.$strip>], "eventType">;
668
+ export type GithubPRTrigger = z.infer<typeof GithubPRTriggerSchema>;
669
+ export declare const GithubTriggerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
670
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
671
+ username: z.ZodString;
672
+ installationId: z.ZodNumber;
673
+ repositoryName: z.ZodString;
674
+ repository: z.ZodObject<{
675
+ id: z.ZodNumber;
676
+ name: z.ZodString;
677
+ owner: z.ZodString;
678
+ defaultBranch: z.ZodString;
679
+ }, z.core.$strip>;
680
+ sender: z.ZodObject<{
681
+ login: z.ZodString;
682
+ email: z.ZodOptional<z.ZodString>;
683
+ }, z.core.$strip>;
684
+ eventType: z.ZodLiteral<"push">;
685
+ branch: z.ZodString;
686
+ commits: z.ZodArray<z.ZodObject<{
687
+ sha: z.ZodString;
688
+ message: z.ZodOptional<z.ZodString>;
689
+ name: z.ZodString;
690
+ fileDiffs: z.ZodArray<z.ZodObject<{
691
+ filename: z.ZodString;
692
+ diff: z.ZodString;
693
+ }, z.core.$strip>>;
694
+ }, z.core.$strip>>;
695
+ pullRequest: z.ZodOptional<z.ZodUndefined>;
696
+ }, z.core.$strip>, z.ZodObject<{
697
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
698
+ username: z.ZodString;
699
+ installationId: z.ZodNumber;
700
+ repositoryName: z.ZodString;
701
+ repository: z.ZodObject<{
702
+ id: z.ZodNumber;
703
+ name: z.ZodString;
704
+ owner: z.ZodString;
705
+ defaultBranch: z.ZodString;
706
+ }, z.core.$strip>;
707
+ sender: z.ZodObject<{
708
+ login: z.ZodString;
709
+ email: z.ZodOptional<z.ZodString>;
710
+ }, z.core.$strip>;
711
+ pullRequest: z.ZodObject<{
712
+ id: z.ZodString;
713
+ number: z.ZodNumber;
714
+ title: z.ZodString;
715
+ body: z.ZodOptional<z.ZodString>;
716
+ state: z.ZodEnum<{
717
+ open: "open";
718
+ closed: "closed";
719
+ }>;
720
+ merged: z.ZodBoolean;
721
+ head: z.ZodObject<{
722
+ ref: z.ZodString;
723
+ sha: z.ZodString;
724
+ }, z.core.$strip>;
725
+ base: z.ZodObject<{
726
+ ref: z.ZodString;
727
+ sha: z.ZodString;
728
+ }, z.core.$strip>;
729
+ user: z.ZodObject<{
730
+ login: z.ZodString;
731
+ email: z.ZodOptional<z.ZodString>;
732
+ }, z.core.$strip>;
733
+ author: z.ZodOptional<z.ZodObject<{
734
+ login: z.ZodString;
735
+ email: z.ZodOptional<z.ZodString>;
736
+ }, z.core.$strip>>;
737
+ url: z.ZodOptional<z.ZodString>;
738
+ }, z.core.$strip>;
739
+ branch: z.ZodOptional<z.ZodString>;
740
+ commits: z.ZodArray<z.ZodObject<{
741
+ sha: z.ZodString;
742
+ message: z.ZodOptional<z.ZodString>;
743
+ name: z.ZodString;
744
+ fileDiffs: z.ZodArray<z.ZodObject<{
745
+ filename: z.ZodString;
746
+ diff: z.ZodString;
747
+ }, z.core.$strip>>;
748
+ }, z.core.$strip>>;
749
+ eventType: z.ZodLiteral<"pull_request.opened">;
750
+ }, z.core.$strip>, z.ZodObject<{
751
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
752
+ username: z.ZodString;
753
+ installationId: z.ZodNumber;
754
+ repositoryName: z.ZodString;
755
+ repository: z.ZodObject<{
756
+ id: z.ZodNumber;
757
+ name: z.ZodString;
758
+ owner: z.ZodString;
759
+ defaultBranch: z.ZodString;
760
+ }, z.core.$strip>;
761
+ sender: z.ZodObject<{
762
+ login: z.ZodString;
763
+ email: z.ZodOptional<z.ZodString>;
764
+ }, z.core.$strip>;
765
+ pullRequest: z.ZodObject<{
766
+ id: z.ZodString;
767
+ number: z.ZodNumber;
768
+ title: z.ZodString;
769
+ body: z.ZodOptional<z.ZodString>;
770
+ state: z.ZodEnum<{
771
+ open: "open";
772
+ closed: "closed";
773
+ }>;
774
+ merged: z.ZodBoolean;
775
+ head: z.ZodObject<{
776
+ ref: z.ZodString;
777
+ sha: z.ZodString;
778
+ }, z.core.$strip>;
779
+ base: z.ZodObject<{
780
+ ref: z.ZodString;
781
+ sha: z.ZodString;
782
+ }, z.core.$strip>;
783
+ user: z.ZodObject<{
784
+ login: z.ZodString;
785
+ email: z.ZodOptional<z.ZodString>;
786
+ }, z.core.$strip>;
787
+ author: z.ZodOptional<z.ZodObject<{
788
+ login: z.ZodString;
789
+ email: z.ZodOptional<z.ZodString>;
790
+ }, z.core.$strip>>;
791
+ url: z.ZodOptional<z.ZodString>;
792
+ }, z.core.$strip>;
793
+ branch: z.ZodOptional<z.ZodString>;
794
+ commits: z.ZodArray<z.ZodObject<{
795
+ sha: z.ZodString;
796
+ message: z.ZodOptional<z.ZodString>;
797
+ name: z.ZodString;
798
+ fileDiffs: z.ZodArray<z.ZodObject<{
799
+ filename: z.ZodString;
800
+ diff: z.ZodString;
801
+ }, z.core.$strip>>;
802
+ }, z.core.$strip>>;
803
+ eventType: z.ZodLiteral<"pull_request.synchronize">;
804
+ }, z.core.$strip>, z.ZodObject<{
805
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
806
+ username: z.ZodString;
807
+ installationId: z.ZodNumber;
808
+ repositoryName: z.ZodString;
809
+ repository: z.ZodObject<{
810
+ id: z.ZodNumber;
811
+ name: z.ZodString;
812
+ owner: z.ZodString;
813
+ defaultBranch: z.ZodString;
814
+ }, z.core.$strip>;
815
+ sender: z.ZodObject<{
816
+ login: z.ZodString;
817
+ email: z.ZodOptional<z.ZodString>;
818
+ }, z.core.$strip>;
819
+ pullRequest: z.ZodObject<{
820
+ id: z.ZodString;
821
+ number: z.ZodNumber;
822
+ title: z.ZodString;
823
+ body: z.ZodOptional<z.ZodString>;
824
+ state: z.ZodEnum<{
825
+ open: "open";
826
+ closed: "closed";
827
+ }>;
828
+ merged: z.ZodBoolean;
829
+ head: z.ZodObject<{
830
+ ref: z.ZodString;
831
+ sha: z.ZodString;
832
+ }, z.core.$strip>;
833
+ base: z.ZodObject<{
834
+ ref: z.ZodString;
835
+ sha: z.ZodString;
836
+ }, z.core.$strip>;
837
+ user: z.ZodObject<{
838
+ login: z.ZodString;
839
+ email: z.ZodOptional<z.ZodString>;
840
+ }, z.core.$strip>;
841
+ author: z.ZodOptional<z.ZodObject<{
842
+ login: z.ZodString;
843
+ email: z.ZodOptional<z.ZodString>;
844
+ }, z.core.$strip>>;
845
+ url: z.ZodOptional<z.ZodString>;
846
+ }, z.core.$strip>;
847
+ branch: z.ZodOptional<z.ZodString>;
848
+ commits: z.ZodArray<z.ZodObject<{
849
+ sha: z.ZodString;
850
+ message: z.ZodOptional<z.ZodString>;
851
+ name: z.ZodString;
852
+ fileDiffs: z.ZodArray<z.ZodObject<{
853
+ filename: z.ZodString;
854
+ diff: z.ZodString;
855
+ }, z.core.$strip>>;
856
+ }, z.core.$strip>>;
857
+ eventType: z.ZodLiteral<"pull_request.closed">;
858
+ }, z.core.$strip>, z.ZodObject<{
859
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
860
+ username: z.ZodString;
861
+ installationId: z.ZodNumber;
862
+ repositoryName: z.ZodString;
863
+ repository: z.ZodObject<{
864
+ id: z.ZodNumber;
865
+ name: z.ZodString;
866
+ owner: z.ZodString;
867
+ defaultBranch: z.ZodString;
868
+ }, z.core.$strip>;
869
+ sender: z.ZodObject<{
870
+ login: z.ZodString;
871
+ email: z.ZodOptional<z.ZodString>;
872
+ }, z.core.$strip>;
873
+ pullRequest: z.ZodObject<{
874
+ id: z.ZodString;
875
+ number: z.ZodNumber;
876
+ title: z.ZodString;
877
+ body: z.ZodOptional<z.ZodString>;
878
+ state: z.ZodEnum<{
879
+ open: "open";
880
+ closed: "closed";
881
+ }>;
882
+ merged: z.ZodBoolean;
883
+ head: z.ZodObject<{
884
+ ref: z.ZodString;
885
+ sha: z.ZodString;
886
+ }, z.core.$strip>;
887
+ base: z.ZodObject<{
888
+ ref: z.ZodString;
889
+ sha: z.ZodString;
890
+ }, z.core.$strip>;
891
+ user: z.ZodObject<{
892
+ login: z.ZodString;
893
+ email: z.ZodOptional<z.ZodString>;
894
+ }, z.core.$strip>;
895
+ author: z.ZodOptional<z.ZodObject<{
896
+ login: z.ZodString;
897
+ email: z.ZodOptional<z.ZodString>;
898
+ }, z.core.$strip>>;
899
+ url: z.ZodOptional<z.ZodString>;
900
+ }, z.core.$strip>;
901
+ branch: z.ZodOptional<z.ZodString>;
902
+ commits: z.ZodArray<z.ZodObject<{
903
+ sha: z.ZodString;
904
+ message: z.ZodOptional<z.ZodString>;
905
+ name: z.ZodString;
906
+ fileDiffs: z.ZodArray<z.ZodObject<{
907
+ filename: z.ZodString;
908
+ diff: z.ZodString;
909
+ }, z.core.$strip>>;
910
+ }, z.core.$strip>>;
911
+ eventType: z.ZodLiteral<"pull_request.merged">;
912
+ }, z.core.$strip>], "eventType">;
913
+ export type GithubTrigger = z.infer<typeof GithubTriggerSchema>;
914
+ export declare const GmailParsedAttachmentSchema: z.ZodObject<{
915
+ attachmentId: z.ZodString;
916
+ filename: z.ZodString;
917
+ mimeType: z.ZodString;
918
+ contentId: z.ZodOptional<z.ZodString>;
919
+ isInline: z.ZodBoolean;
920
+ }, z.core.$strip>;
921
+ export type GmailParsedAttachment = z.infer<typeof GmailParsedAttachmentSchema>;
922
+ declare const gmailMessagePayloadSchema: z.ZodObject<{
923
+ id: z.ZodString;
924
+ threadId: z.ZodString;
925
+ subject: z.ZodString;
926
+ from: z.ZodString;
927
+ to: z.ZodString;
928
+ date: z.ZodString;
929
+ internalDate: z.ZodString;
930
+ messageId: z.ZodString;
931
+ body: z.ZodString;
932
+ snippet: z.ZodString;
933
+ labelIds: z.ZodArray<z.ZodString>;
934
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
935
+ attachmentId: z.ZodString;
936
+ filename: z.ZodString;
937
+ mimeType: z.ZodString;
938
+ contentId: z.ZodOptional<z.ZodString>;
939
+ isInline: z.ZodBoolean;
940
+ }, z.core.$strip>>>;
941
+ }, z.core.$strip>;
942
+ export type GmailMessagePayload = z.infer<typeof gmailMessagePayloadSchema>;
943
+ export declare const LinearWebhookActionSchema: z.ZodEnum<{
944
+ create: "create";
945
+ update: "update";
946
+ remove: "remove";
947
+ }>;
948
+ export declare const LinearWebhookTypeSchema: z.ZodUnion<readonly [z.ZodLiteral<"Issue">, z.ZodLiteral<"Comment">, z.ZodLiteral<"Project">, z.ZodString]>;
949
+ export declare const LinearWebhookActorSchema: z.ZodObject<{
950
+ id: z.ZodString;
951
+ name: z.ZodString;
952
+ email: z.ZodString;
953
+ url: z.ZodString;
954
+ type: z.ZodString;
955
+ }, z.core.$strip>;
956
+ export declare const LinearWebhookStateSchema: z.ZodObject<{
957
+ id: z.ZodString;
958
+ color: z.ZodString;
959
+ name: z.ZodString;
960
+ type: z.ZodString;
961
+ }, z.core.$strip>;
962
+ export declare const LinearWebhookTeamSchema: z.ZodObject<{
963
+ id: z.ZodString;
964
+ key: z.ZodString;
965
+ name: z.ZodString;
966
+ }, z.core.$strip>;
967
+ export declare const LinearWebhookAssigneeSchema: z.ZodObject<{
968
+ id: z.ZodString;
969
+ name: z.ZodString;
970
+ }, z.core.$strip>;
971
+ export declare const LinearWebhookDataSchema: z.ZodObject<{
972
+ id: z.ZodString;
973
+ createdAt: z.ZodString;
974
+ updatedAt: z.ZodString;
975
+ number: z.ZodNumber;
976
+ title: z.ZodString;
977
+ priority: z.ZodNumber;
978
+ sortOrder: z.ZodNumber;
979
+ prioritySortOrder: z.ZodNumber;
980
+ slaType: z.ZodString;
981
+ addedToTeamAt: z.ZodString;
982
+ trashed: z.ZodBoolean;
983
+ labelIds: z.ZodArray<z.ZodString>;
984
+ teamId: z.ZodString;
985
+ previousIdentifiers: z.ZodArray<z.ZodString>;
986
+ stateId: z.ZodString;
987
+ reactionData: z.ZodArray<z.ZodAny>;
988
+ priorityLabel: z.ZodString;
989
+ botActor: z.ZodOptional<z.ZodString>;
990
+ identifier: z.ZodString;
991
+ url: z.ZodString;
992
+ subscriberIds: z.ZodArray<z.ZodString>;
993
+ state: z.ZodObject<{
994
+ id: z.ZodString;
995
+ color: z.ZodString;
996
+ name: z.ZodString;
997
+ type: z.ZodString;
998
+ }, z.core.$strip>;
999
+ team: z.ZodObject<{
1000
+ id: z.ZodString;
1001
+ key: z.ZodString;
1002
+ name: z.ZodString;
1003
+ }, z.core.$strip>;
1004
+ labels: z.ZodArray<z.ZodAny>;
1005
+ description: z.ZodOptional<z.ZodString>;
1006
+ descriptionData: z.ZodOptional<z.ZodString>;
1007
+ assignee: z.ZodOptional<z.ZodObject<{
1008
+ id: z.ZodString;
1009
+ name: z.ZodString;
1010
+ }, z.core.$strip>>;
1011
+ projectId: z.ZodOptional<z.ZodString>;
1012
+ }, z.core.$strip>;
1013
+ export declare const LinearWebhookCommentDataSchema: z.ZodObject<{
1014
+ id: z.ZodString;
1015
+ body: z.ZodOptional<z.ZodString>;
1016
+ issueId: z.ZodOptional<z.ZodString>;
1017
+ }, z.core.$loose>;
1018
+ export declare const linearWebhookPayloadSchema: z.ZodObject<{
1019
+ action: z.ZodEnum<{
1020
+ create: "create";
1021
+ update: "update";
1022
+ remove: "remove";
1023
+ }>;
1024
+ actor: z.ZodObject<{
1025
+ id: z.ZodString;
1026
+ name: z.ZodString;
1027
+ email: z.ZodString;
1028
+ url: z.ZodString;
1029
+ type: z.ZodString;
1030
+ }, z.core.$strip>;
1031
+ createdAt: z.ZodString;
1032
+ data: z.ZodObject<{
1033
+ id: z.ZodString;
1034
+ createdAt: z.ZodString;
1035
+ updatedAt: z.ZodString;
1036
+ number: z.ZodNumber;
1037
+ title: z.ZodString;
1038
+ priority: z.ZodNumber;
1039
+ sortOrder: z.ZodNumber;
1040
+ prioritySortOrder: z.ZodNumber;
1041
+ slaType: z.ZodString;
1042
+ addedToTeamAt: z.ZodString;
1043
+ trashed: z.ZodBoolean;
1044
+ labelIds: z.ZodArray<z.ZodString>;
1045
+ teamId: z.ZodString;
1046
+ previousIdentifiers: z.ZodArray<z.ZodString>;
1047
+ stateId: z.ZodString;
1048
+ reactionData: z.ZodArray<z.ZodAny>;
1049
+ priorityLabel: z.ZodString;
1050
+ botActor: z.ZodOptional<z.ZodString>;
1051
+ identifier: z.ZodString;
1052
+ url: z.ZodString;
1053
+ subscriberIds: z.ZodArray<z.ZodString>;
1054
+ state: z.ZodObject<{
1055
+ id: z.ZodString;
1056
+ color: z.ZodString;
1057
+ name: z.ZodString;
1058
+ type: z.ZodString;
1059
+ }, z.core.$strip>;
1060
+ team: z.ZodObject<{
1061
+ id: z.ZodString;
1062
+ key: z.ZodString;
1063
+ name: z.ZodString;
1064
+ }, z.core.$strip>;
1065
+ labels: z.ZodArray<z.ZodAny>;
1066
+ description: z.ZodOptional<z.ZodString>;
1067
+ descriptionData: z.ZodOptional<z.ZodString>;
1068
+ assignee: z.ZodOptional<z.ZodObject<{
1069
+ id: z.ZodString;
1070
+ name: z.ZodString;
1071
+ }, z.core.$strip>>;
1072
+ projectId: z.ZodOptional<z.ZodString>;
1073
+ }, z.core.$strip>;
1074
+ type: z.ZodUnion<readonly [z.ZodLiteral<"Issue">, z.ZodLiteral<"Comment">, z.ZodLiteral<"Project">, z.ZodString]>;
1075
+ url: z.ZodOptional<z.ZodString>;
1076
+ organizationId: z.ZodString;
1077
+ webhookTimestamp: z.ZodNumber;
1078
+ webhookId: z.ZodString;
1079
+ }, z.core.$strip>;
1080
+ export type LinearWebhookPayload = z.infer<typeof linearWebhookPayloadSchema>;
1081
+ export declare const WorkOSWebhookDataSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
1082
+ export declare const workOSWebhookPayloadSchema: z.ZodObject<{
1083
+ id: z.ZodString;
1084
+ event: z.ZodString;
1085
+ data: z.ZodRecord<z.ZodString, z.ZodAny>;
1086
+ created_at: z.ZodString;
1087
+ }, z.core.$strip>;
1088
+ export type WorkOSWebhookPayload = z.infer<typeof workOSWebhookPayloadSchema>;
1089
+ export declare const webhookTriggerTypeSchema: z.ZodLiteral<"webhook">;
1090
+ export type WebhookTriggerType = z.infer<typeof webhookTriggerTypeSchema>;
1091
+ export declare const cronTriggerTypeSchema: z.ZodLiteral<"cron">;
1092
+ export type CronTriggerType = z.infer<typeof cronTriggerTypeSchema>;
1093
+ export declare const manualSampleTriggerTypeSchema: z.ZodLiteral<"manual_sample">;
1094
+ export type ManualSampleTriggerType = z.infer<typeof manualSampleTriggerTypeSchema>;
1095
+ export declare const TriggerTypeSchema: z.ZodUnion<readonly [z.ZodEnum<{
1096
+ readonly MESSAGE: "message";
1097
+ readonly APP_MENTION: "app_mention";
1098
+ readonly REACTION_ADDED: "reaction_added";
1099
+ }>, z.ZodEnum<{
1100
+ readonly PUSH: "push";
1101
+ readonly PR_OPENED: "pull_request.opened";
1102
+ readonly PR_MERGED: "pull_request.merged";
1103
+ readonly PR_CLOSED: "pull_request.closed";
1104
+ readonly PR_SYNCHRONIZE: "pull_request.synchronize";
1105
+ }>, z.ZodEnum<{
1106
+ readonly ISSUE_CREATED: "issue.created";
1107
+ readonly ISSUE_UPDATED: "issue.updated";
1108
+ readonly COMMENT_CREATED: "comment.created";
1109
+ }>, z.ZodEnum<{
1110
+ readonly EMAIL_RECEIVED: "email.received";
1111
+ }>, z.ZodEnum<{
1112
+ readonly USER_CREATED: "user.created";
1113
+ readonly USER_UPDATED: "user.updated";
1114
+ readonly USER_DELETED: "user.deleted";
1115
+ readonly ORGANIZATION_CREATED: "organization.created";
1116
+ readonly ORGANIZATION_MEMBERSHIP_CREATED: "organization_membership.created";
1117
+ readonly ORGANIZATION_MEMBERSHIP_UPDATED: "organization_membership.updated";
1118
+ readonly ORGANIZATION_MEMBERSHIP_DELETED: "organization_membership.deleted";
1119
+ readonly INVITATION_CREATED: "invitation.created";
1120
+ readonly INVITATION_ACCEPTED: "invitation.accepted";
1121
+ readonly INVITATION_RESENT: "invitation.resent";
1122
+ readonly INVITATION_REVOKED: "invitation.revoked";
1123
+ }>, z.ZodLiteral<"webhook">, z.ZodLiteral<"cron">, z.ZodLiteral<"manual_sample">]>;
1124
+ export type TriggerType = z.infer<typeof TriggerTypeSchema>;
1125
+ export declare const baseTriggerSchema: z.ZodObject<{
1126
+ integrationType: z.ZodEnum<typeof IntegrationType>;
1127
+ eventType: z.ZodUnion<readonly [z.ZodEnum<{
1128
+ readonly MESSAGE: "message";
1129
+ readonly APP_MENTION: "app_mention";
1130
+ readonly REACTION_ADDED: "reaction_added";
1131
+ }>, z.ZodEnum<{
1132
+ readonly PUSH: "push";
1133
+ readonly PR_OPENED: "pull_request.opened";
1134
+ readonly PR_MERGED: "pull_request.merged";
1135
+ readonly PR_CLOSED: "pull_request.closed";
1136
+ readonly PR_SYNCHRONIZE: "pull_request.synchronize";
1137
+ }>, z.ZodEnum<{
1138
+ readonly ISSUE_CREATED: "issue.created";
1139
+ readonly ISSUE_UPDATED: "issue.updated";
1140
+ readonly COMMENT_CREATED: "comment.created";
1141
+ }>, z.ZodEnum<{
1142
+ readonly EMAIL_RECEIVED: "email.received";
1143
+ }>, z.ZodEnum<{
1144
+ readonly USER_CREATED: "user.created";
1145
+ readonly USER_UPDATED: "user.updated";
1146
+ readonly USER_DELETED: "user.deleted";
1147
+ readonly ORGANIZATION_CREATED: "organization.created";
1148
+ readonly ORGANIZATION_MEMBERSHIP_CREATED: "organization_membership.created";
1149
+ readonly ORGANIZATION_MEMBERSHIP_UPDATED: "organization_membership.updated";
1150
+ readonly ORGANIZATION_MEMBERSHIP_DELETED: "organization_membership.deleted";
1151
+ readonly INVITATION_CREATED: "invitation.created";
1152
+ readonly INVITATION_ACCEPTED: "invitation.accepted";
1153
+ readonly INVITATION_RESENT: "invitation.resent";
1154
+ readonly INVITATION_REVOKED: "invitation.revoked";
1155
+ }>, z.ZodLiteral<"webhook">, z.ZodLiteral<"cron">, z.ZodLiteral<"manual_sample">]>;
1156
+ }, z.core.$strip>;
1157
+ export type BaseTrigger = z.infer<typeof baseTriggerSchema>;
1158
+ export declare const gmailTriggerSchema: z.ZodObject<{
1159
+ integrationType: z.ZodLiteral<IntegrationType.GMAIL>;
1160
+ eventType: z.ZodEnum<{
1161
+ readonly EMAIL_RECEIVED: "email.received";
1162
+ }>;
1163
+ id: z.ZodString;
1164
+ threadId: z.ZodString;
1165
+ subject: z.ZodString;
1166
+ from: z.ZodString;
1167
+ to: z.ZodString;
1168
+ date: z.ZodString;
1169
+ internalDate: z.ZodString;
1170
+ messageId: z.ZodString;
1171
+ body: z.ZodString;
1172
+ snippet: z.ZodString;
1173
+ labelIds: z.ZodArray<z.ZodString>;
1174
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1175
+ attachmentId: z.ZodString;
1176
+ filename: z.ZodString;
1177
+ mimeType: z.ZodString;
1178
+ contentId: z.ZodOptional<z.ZodString>;
1179
+ isInline: z.ZodBoolean;
1180
+ }, z.core.$strip>>>;
1181
+ }, z.core.$strip>;
1182
+ export type GmailTrigger = z.infer<typeof gmailTriggerSchema>;
1183
+ export declare const linearIssueCreatedTriggerSchema: z.ZodObject<{
1184
+ integrationType: z.ZodLiteral<IntegrationType.LINEAR>;
1185
+ actor: z.ZodObject<{
1186
+ id: z.ZodString;
1187
+ name: z.ZodString;
1188
+ email: z.ZodString;
1189
+ url: z.ZodString;
1190
+ type: z.ZodString;
1191
+ }, z.core.$strip>;
1192
+ createdAt: z.ZodString;
1193
+ url: z.ZodOptional<z.ZodString>;
1194
+ organizationId: z.ZodString;
1195
+ webhookTimestamp: z.ZodNumber;
1196
+ webhookId: z.ZodString;
1197
+ eventType: z.ZodLiteral<"issue.created">;
1198
+ action: z.ZodLiteral<"create">;
1199
+ type: z.ZodLiteral<"Issue">;
1200
+ data: z.ZodObject<{
1201
+ id: z.ZodString;
1202
+ createdAt: z.ZodString;
1203
+ updatedAt: z.ZodString;
1204
+ number: z.ZodNumber;
1205
+ title: z.ZodString;
1206
+ priority: z.ZodNumber;
1207
+ sortOrder: z.ZodNumber;
1208
+ prioritySortOrder: z.ZodNumber;
1209
+ slaType: z.ZodString;
1210
+ addedToTeamAt: z.ZodString;
1211
+ trashed: z.ZodBoolean;
1212
+ labelIds: z.ZodArray<z.ZodString>;
1213
+ teamId: z.ZodString;
1214
+ previousIdentifiers: z.ZodArray<z.ZodString>;
1215
+ stateId: z.ZodString;
1216
+ reactionData: z.ZodArray<z.ZodAny>;
1217
+ priorityLabel: z.ZodString;
1218
+ botActor: z.ZodOptional<z.ZodString>;
1219
+ identifier: z.ZodString;
1220
+ url: z.ZodString;
1221
+ subscriberIds: z.ZodArray<z.ZodString>;
1222
+ state: z.ZodObject<{
1223
+ id: z.ZodString;
1224
+ color: z.ZodString;
1225
+ name: z.ZodString;
1226
+ type: z.ZodString;
1227
+ }, z.core.$strip>;
1228
+ team: z.ZodObject<{
1229
+ id: z.ZodString;
1230
+ key: z.ZodString;
1231
+ name: z.ZodString;
1232
+ }, z.core.$strip>;
1233
+ labels: z.ZodArray<z.ZodAny>;
1234
+ description: z.ZodOptional<z.ZodString>;
1235
+ descriptionData: z.ZodOptional<z.ZodString>;
1236
+ assignee: z.ZodOptional<z.ZodObject<{
1237
+ id: z.ZodString;
1238
+ name: z.ZodString;
1239
+ }, z.core.$strip>>;
1240
+ projectId: z.ZodOptional<z.ZodString>;
1241
+ }, z.core.$strip>;
1242
+ }, z.core.$strip>;
1243
+ export type LinearIssueCreatedTrigger = z.infer<typeof linearIssueCreatedTriggerSchema>;
1244
+ export declare const linearIssueUpdatedTriggerSchema: z.ZodObject<{
1245
+ integrationType: z.ZodLiteral<IntegrationType.LINEAR>;
1246
+ actor: z.ZodObject<{
1247
+ id: z.ZodString;
1248
+ name: z.ZodString;
1249
+ email: z.ZodString;
1250
+ url: z.ZodString;
1251
+ type: z.ZodString;
1252
+ }, z.core.$strip>;
1253
+ createdAt: z.ZodString;
1254
+ url: z.ZodOptional<z.ZodString>;
1255
+ organizationId: z.ZodString;
1256
+ webhookTimestamp: z.ZodNumber;
1257
+ webhookId: z.ZodString;
1258
+ eventType: z.ZodLiteral<"issue.updated">;
1259
+ action: z.ZodLiteral<"update">;
1260
+ type: z.ZodLiteral<"Issue">;
1261
+ data: z.ZodObject<{
1262
+ id: z.ZodString;
1263
+ createdAt: z.ZodString;
1264
+ updatedAt: z.ZodString;
1265
+ number: z.ZodNumber;
1266
+ title: z.ZodString;
1267
+ priority: z.ZodNumber;
1268
+ sortOrder: z.ZodNumber;
1269
+ prioritySortOrder: z.ZodNumber;
1270
+ slaType: z.ZodString;
1271
+ addedToTeamAt: z.ZodString;
1272
+ trashed: z.ZodBoolean;
1273
+ labelIds: z.ZodArray<z.ZodString>;
1274
+ teamId: z.ZodString;
1275
+ previousIdentifiers: z.ZodArray<z.ZodString>;
1276
+ stateId: z.ZodString;
1277
+ reactionData: z.ZodArray<z.ZodAny>;
1278
+ priorityLabel: z.ZodString;
1279
+ botActor: z.ZodOptional<z.ZodString>;
1280
+ identifier: z.ZodString;
1281
+ url: z.ZodString;
1282
+ subscriberIds: z.ZodArray<z.ZodString>;
1283
+ state: z.ZodObject<{
1284
+ id: z.ZodString;
1285
+ color: z.ZodString;
1286
+ name: z.ZodString;
1287
+ type: z.ZodString;
1288
+ }, z.core.$strip>;
1289
+ team: z.ZodObject<{
1290
+ id: z.ZodString;
1291
+ key: z.ZodString;
1292
+ name: z.ZodString;
1293
+ }, z.core.$strip>;
1294
+ labels: z.ZodArray<z.ZodAny>;
1295
+ description: z.ZodOptional<z.ZodString>;
1296
+ descriptionData: z.ZodOptional<z.ZodString>;
1297
+ assignee: z.ZodOptional<z.ZodObject<{
1298
+ id: z.ZodString;
1299
+ name: z.ZodString;
1300
+ }, z.core.$strip>>;
1301
+ projectId: z.ZodOptional<z.ZodString>;
1302
+ }, z.core.$strip>;
1303
+ }, z.core.$strip>;
1304
+ export type LinearIssueUpdatedTrigger = z.infer<typeof linearIssueUpdatedTriggerSchema>;
1305
+ export declare const linearCommentCreatedTriggerSchema: z.ZodObject<{
1306
+ integrationType: z.ZodLiteral<IntegrationType.LINEAR>;
1307
+ actor: z.ZodObject<{
1308
+ id: z.ZodString;
1309
+ name: z.ZodString;
1310
+ email: z.ZodString;
1311
+ url: z.ZodString;
1312
+ type: z.ZodString;
1313
+ }, z.core.$strip>;
1314
+ createdAt: z.ZodString;
1315
+ url: z.ZodOptional<z.ZodString>;
1316
+ organizationId: z.ZodString;
1317
+ webhookTimestamp: z.ZodNumber;
1318
+ webhookId: z.ZodString;
1319
+ eventType: z.ZodLiteral<"comment.created">;
1320
+ action: z.ZodLiteral<"create">;
1321
+ type: z.ZodLiteral<"Comment">;
1322
+ data: z.ZodObject<{
1323
+ id: z.ZodString;
1324
+ body: z.ZodOptional<z.ZodString>;
1325
+ issueId: z.ZodOptional<z.ZodString>;
1326
+ }, z.core.$loose>;
1327
+ }, z.core.$strip>;
1328
+ export type LinearCommentCreatedTrigger = z.infer<typeof linearCommentCreatedTriggerSchema>;
1329
+ export declare const linearTriggerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1330
+ integrationType: z.ZodLiteral<IntegrationType.LINEAR>;
1331
+ actor: z.ZodObject<{
1332
+ id: z.ZodString;
1333
+ name: z.ZodString;
1334
+ email: z.ZodString;
1335
+ url: z.ZodString;
1336
+ type: z.ZodString;
1337
+ }, z.core.$strip>;
1338
+ createdAt: z.ZodString;
1339
+ url: z.ZodOptional<z.ZodString>;
1340
+ organizationId: z.ZodString;
1341
+ webhookTimestamp: z.ZodNumber;
1342
+ webhookId: z.ZodString;
1343
+ eventType: z.ZodLiteral<"issue.created">;
1344
+ action: z.ZodLiteral<"create">;
1345
+ type: z.ZodLiteral<"Issue">;
1346
+ data: z.ZodObject<{
1347
+ id: z.ZodString;
1348
+ createdAt: z.ZodString;
1349
+ updatedAt: z.ZodString;
1350
+ number: z.ZodNumber;
1351
+ title: z.ZodString;
1352
+ priority: z.ZodNumber;
1353
+ sortOrder: z.ZodNumber;
1354
+ prioritySortOrder: z.ZodNumber;
1355
+ slaType: z.ZodString;
1356
+ addedToTeamAt: z.ZodString;
1357
+ trashed: z.ZodBoolean;
1358
+ labelIds: z.ZodArray<z.ZodString>;
1359
+ teamId: z.ZodString;
1360
+ previousIdentifiers: z.ZodArray<z.ZodString>;
1361
+ stateId: z.ZodString;
1362
+ reactionData: z.ZodArray<z.ZodAny>;
1363
+ priorityLabel: z.ZodString;
1364
+ botActor: z.ZodOptional<z.ZodString>;
1365
+ identifier: z.ZodString;
1366
+ url: z.ZodString;
1367
+ subscriberIds: z.ZodArray<z.ZodString>;
1368
+ state: z.ZodObject<{
1369
+ id: z.ZodString;
1370
+ color: z.ZodString;
1371
+ name: z.ZodString;
1372
+ type: z.ZodString;
1373
+ }, z.core.$strip>;
1374
+ team: z.ZodObject<{
1375
+ id: z.ZodString;
1376
+ key: z.ZodString;
1377
+ name: z.ZodString;
1378
+ }, z.core.$strip>;
1379
+ labels: z.ZodArray<z.ZodAny>;
1380
+ description: z.ZodOptional<z.ZodString>;
1381
+ descriptionData: z.ZodOptional<z.ZodString>;
1382
+ assignee: z.ZodOptional<z.ZodObject<{
1383
+ id: z.ZodString;
1384
+ name: z.ZodString;
1385
+ }, z.core.$strip>>;
1386
+ projectId: z.ZodOptional<z.ZodString>;
1387
+ }, z.core.$strip>;
1388
+ }, z.core.$strip>, z.ZodObject<{
1389
+ integrationType: z.ZodLiteral<IntegrationType.LINEAR>;
1390
+ actor: z.ZodObject<{
1391
+ id: z.ZodString;
1392
+ name: z.ZodString;
1393
+ email: z.ZodString;
1394
+ url: z.ZodString;
1395
+ type: z.ZodString;
1396
+ }, z.core.$strip>;
1397
+ createdAt: z.ZodString;
1398
+ url: z.ZodOptional<z.ZodString>;
1399
+ organizationId: z.ZodString;
1400
+ webhookTimestamp: z.ZodNumber;
1401
+ webhookId: z.ZodString;
1402
+ eventType: z.ZodLiteral<"issue.updated">;
1403
+ action: z.ZodLiteral<"update">;
1404
+ type: z.ZodLiteral<"Issue">;
1405
+ data: z.ZodObject<{
1406
+ id: z.ZodString;
1407
+ createdAt: z.ZodString;
1408
+ updatedAt: z.ZodString;
1409
+ number: z.ZodNumber;
1410
+ title: z.ZodString;
1411
+ priority: z.ZodNumber;
1412
+ sortOrder: z.ZodNumber;
1413
+ prioritySortOrder: z.ZodNumber;
1414
+ slaType: z.ZodString;
1415
+ addedToTeamAt: z.ZodString;
1416
+ trashed: z.ZodBoolean;
1417
+ labelIds: z.ZodArray<z.ZodString>;
1418
+ teamId: z.ZodString;
1419
+ previousIdentifiers: z.ZodArray<z.ZodString>;
1420
+ stateId: z.ZodString;
1421
+ reactionData: z.ZodArray<z.ZodAny>;
1422
+ priorityLabel: z.ZodString;
1423
+ botActor: z.ZodOptional<z.ZodString>;
1424
+ identifier: z.ZodString;
1425
+ url: z.ZodString;
1426
+ subscriberIds: z.ZodArray<z.ZodString>;
1427
+ state: z.ZodObject<{
1428
+ id: z.ZodString;
1429
+ color: z.ZodString;
1430
+ name: z.ZodString;
1431
+ type: z.ZodString;
1432
+ }, z.core.$strip>;
1433
+ team: z.ZodObject<{
1434
+ id: z.ZodString;
1435
+ key: z.ZodString;
1436
+ name: z.ZodString;
1437
+ }, z.core.$strip>;
1438
+ labels: z.ZodArray<z.ZodAny>;
1439
+ description: z.ZodOptional<z.ZodString>;
1440
+ descriptionData: z.ZodOptional<z.ZodString>;
1441
+ assignee: z.ZodOptional<z.ZodObject<{
1442
+ id: z.ZodString;
1443
+ name: z.ZodString;
1444
+ }, z.core.$strip>>;
1445
+ projectId: z.ZodOptional<z.ZodString>;
1446
+ }, z.core.$strip>;
1447
+ }, z.core.$strip>, z.ZodObject<{
1448
+ integrationType: z.ZodLiteral<IntegrationType.LINEAR>;
1449
+ actor: z.ZodObject<{
1450
+ id: z.ZodString;
1451
+ name: z.ZodString;
1452
+ email: z.ZodString;
1453
+ url: z.ZodString;
1454
+ type: z.ZodString;
1455
+ }, z.core.$strip>;
1456
+ createdAt: z.ZodString;
1457
+ url: z.ZodOptional<z.ZodString>;
1458
+ organizationId: z.ZodString;
1459
+ webhookTimestamp: z.ZodNumber;
1460
+ webhookId: z.ZodString;
1461
+ eventType: z.ZodLiteral<"comment.created">;
1462
+ action: z.ZodLiteral<"create">;
1463
+ type: z.ZodLiteral<"Comment">;
1464
+ data: z.ZodObject<{
1465
+ id: z.ZodString;
1466
+ body: z.ZodOptional<z.ZodString>;
1467
+ issueId: z.ZodOptional<z.ZodString>;
1468
+ }, z.core.$loose>;
1469
+ }, z.core.$strip>], "eventType">;
1470
+ export type LinearTrigger = z.infer<typeof linearTriggerSchema>;
1471
+ export declare const workOSTriggerUserSchema: z.ZodObject<{
1472
+ id: z.ZodString;
1473
+ email: z.ZodString;
1474
+ firstName: z.ZodOptional<z.ZodString>;
1475
+ lastName: z.ZodOptional<z.ZodString>;
1476
+ emailVerified: z.ZodBoolean;
1477
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
1478
+ }, z.core.$strip>;
1479
+ export type WorkOSTriggerUser = z.infer<typeof workOSTriggerUserSchema>;
1480
+ export declare const workOSTriggerMembershipSchema: z.ZodObject<{
1481
+ id: z.ZodString;
1482
+ userId: z.ZodString;
1483
+ organizationId: z.ZodString;
1484
+ role: z.ZodObject<{
1485
+ slug: z.ZodString;
1486
+ }, z.core.$strip>;
1487
+ status: z.ZodString;
1488
+ }, z.core.$strip>;
1489
+ export type WorkOSTriggerMembership = z.infer<typeof workOSTriggerMembershipSchema>;
1490
+ export declare const workOSTriggerInvitationSchema: z.ZodObject<{
1491
+ id: z.ZodString;
1492
+ email: z.ZodString;
1493
+ organizationId: z.ZodString;
1494
+ inviterEmail: z.ZodOptional<z.ZodString>;
1495
+ state: z.ZodString;
1496
+ acceptedAt: z.ZodOptional<z.ZodString>;
1497
+ }, z.core.$strip>;
1498
+ export type WorkOSTriggerInvitation = z.infer<typeof workOSTriggerInvitationSchema>;
1499
+ export declare const workOSTriggerOrganizationSchema: z.ZodObject<{
1500
+ id: z.ZodString;
1501
+ name: z.ZodString;
1502
+ }, z.core.$strip>;
1503
+ export type WorkOSTriggerOrganization = z.infer<typeof workOSTriggerOrganizationSchema>;
1504
+ export declare const workOSUserCreatedTriggerSchema: z.ZodObject<{
1505
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1506
+ eventId: z.ZodString;
1507
+ createdAt: z.ZodString;
1508
+ eventType: z.ZodLiteral<"user.created">;
1509
+ user: z.ZodObject<{
1510
+ id: z.ZodString;
1511
+ email: z.ZodString;
1512
+ firstName: z.ZodOptional<z.ZodString>;
1513
+ lastName: z.ZodOptional<z.ZodString>;
1514
+ emailVerified: z.ZodBoolean;
1515
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
1516
+ }, z.core.$strip>;
1517
+ }, z.core.$strip>;
1518
+ export type WorkOSUserCreatedTrigger = z.infer<typeof workOSUserCreatedTriggerSchema>;
1519
+ export declare const workOSUserUpdatedTriggerSchema: z.ZodObject<{
1520
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1521
+ eventId: z.ZodString;
1522
+ createdAt: z.ZodString;
1523
+ eventType: z.ZodLiteral<"user.updated">;
1524
+ user: z.ZodObject<{
1525
+ id: z.ZodString;
1526
+ email: z.ZodString;
1527
+ firstName: z.ZodOptional<z.ZodString>;
1528
+ lastName: z.ZodOptional<z.ZodString>;
1529
+ emailVerified: z.ZodBoolean;
1530
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
1531
+ }, z.core.$strip>;
1532
+ }, z.core.$strip>;
1533
+ export type WorkOSUserUpdatedTrigger = z.infer<typeof workOSUserUpdatedTriggerSchema>;
1534
+ export declare const workOSUserDeletedTriggerSchema: z.ZodObject<{
1535
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1536
+ eventId: z.ZodString;
1537
+ createdAt: z.ZodString;
1538
+ eventType: z.ZodLiteral<"user.deleted">;
1539
+ user: z.ZodObject<{
1540
+ id: z.ZodString;
1541
+ email: z.ZodString;
1542
+ firstName: z.ZodOptional<z.ZodString>;
1543
+ lastName: z.ZodOptional<z.ZodString>;
1544
+ emailVerified: z.ZodBoolean;
1545
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
1546
+ }, z.core.$strip>;
1547
+ }, z.core.$strip>;
1548
+ export type WorkOSUserDeletedTrigger = z.infer<typeof workOSUserDeletedTriggerSchema>;
1549
+ export declare const workOSUserTriggerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1550
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1551
+ eventId: z.ZodString;
1552
+ createdAt: z.ZodString;
1553
+ eventType: z.ZodLiteral<"user.created">;
1554
+ user: z.ZodObject<{
1555
+ id: z.ZodString;
1556
+ email: z.ZodString;
1557
+ firstName: z.ZodOptional<z.ZodString>;
1558
+ lastName: z.ZodOptional<z.ZodString>;
1559
+ emailVerified: z.ZodBoolean;
1560
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
1561
+ }, z.core.$strip>;
1562
+ }, z.core.$strip>, z.ZodObject<{
1563
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1564
+ eventId: z.ZodString;
1565
+ createdAt: z.ZodString;
1566
+ eventType: z.ZodLiteral<"user.updated">;
1567
+ user: z.ZodObject<{
1568
+ id: z.ZodString;
1569
+ email: z.ZodString;
1570
+ firstName: z.ZodOptional<z.ZodString>;
1571
+ lastName: z.ZodOptional<z.ZodString>;
1572
+ emailVerified: z.ZodBoolean;
1573
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
1574
+ }, z.core.$strip>;
1575
+ }, z.core.$strip>, z.ZodObject<{
1576
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1577
+ eventId: z.ZodString;
1578
+ createdAt: z.ZodString;
1579
+ eventType: z.ZodLiteral<"user.deleted">;
1580
+ user: z.ZodObject<{
1581
+ id: z.ZodString;
1582
+ email: z.ZodString;
1583
+ firstName: z.ZodOptional<z.ZodString>;
1584
+ lastName: z.ZodOptional<z.ZodString>;
1585
+ emailVerified: z.ZodBoolean;
1586
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
1587
+ }, z.core.$strip>;
1588
+ }, z.core.$strip>], "eventType">;
1589
+ export type WorkOSUserTrigger = z.infer<typeof workOSUserTriggerSchema>;
1590
+ export declare const workOSOrganizationMembershipCreatedTriggerSchema: z.ZodObject<{
1591
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1592
+ eventId: z.ZodString;
1593
+ createdAt: z.ZodString;
1594
+ eventType: z.ZodLiteral<"organization_membership.created">;
1595
+ membership: z.ZodObject<{
1596
+ id: z.ZodString;
1597
+ userId: z.ZodString;
1598
+ organizationId: z.ZodString;
1599
+ role: z.ZodObject<{
1600
+ slug: z.ZodString;
1601
+ }, z.core.$strip>;
1602
+ status: z.ZodString;
1603
+ }, z.core.$strip>;
1604
+ }, z.core.$strip>;
1605
+ export type WorkOSOrganizationMembershipCreatedTrigger = z.infer<typeof workOSOrganizationMembershipCreatedTriggerSchema>;
1606
+ export declare const workOSOrganizationMembershipUpdatedTriggerSchema: z.ZodObject<{
1607
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1608
+ eventId: z.ZodString;
1609
+ createdAt: z.ZodString;
1610
+ eventType: z.ZodLiteral<"organization_membership.updated">;
1611
+ membership: z.ZodObject<{
1612
+ id: z.ZodString;
1613
+ userId: z.ZodString;
1614
+ organizationId: z.ZodString;
1615
+ role: z.ZodObject<{
1616
+ slug: z.ZodString;
1617
+ }, z.core.$strip>;
1618
+ status: z.ZodString;
1619
+ }, z.core.$strip>;
1620
+ }, z.core.$strip>;
1621
+ export type WorkOSOrganizationMembershipUpdatedTrigger = z.infer<typeof workOSOrganizationMembershipUpdatedTriggerSchema>;
1622
+ export declare const workOSOrganizationMembershipDeletedTriggerSchema: z.ZodObject<{
1623
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1624
+ eventId: z.ZodString;
1625
+ createdAt: z.ZodString;
1626
+ eventType: z.ZodLiteral<"organization_membership.deleted">;
1627
+ membership: z.ZodObject<{
1628
+ id: z.ZodString;
1629
+ userId: z.ZodString;
1630
+ organizationId: z.ZodString;
1631
+ role: z.ZodObject<{
1632
+ slug: z.ZodString;
1633
+ }, z.core.$strip>;
1634
+ status: z.ZodString;
1635
+ }, z.core.$strip>;
1636
+ }, z.core.$strip>;
1637
+ export type WorkOSOrganizationMembershipDeletedTrigger = z.infer<typeof workOSOrganizationMembershipDeletedTriggerSchema>;
1638
+ export declare const workOSMembershipTriggerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1639
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1640
+ eventId: z.ZodString;
1641
+ createdAt: z.ZodString;
1642
+ eventType: z.ZodLiteral<"organization_membership.created">;
1643
+ membership: z.ZodObject<{
1644
+ id: z.ZodString;
1645
+ userId: z.ZodString;
1646
+ organizationId: z.ZodString;
1647
+ role: z.ZodObject<{
1648
+ slug: z.ZodString;
1649
+ }, z.core.$strip>;
1650
+ status: z.ZodString;
1651
+ }, z.core.$strip>;
1652
+ }, z.core.$strip>, z.ZodObject<{
1653
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1654
+ eventId: z.ZodString;
1655
+ createdAt: z.ZodString;
1656
+ eventType: z.ZodLiteral<"organization_membership.updated">;
1657
+ membership: z.ZodObject<{
1658
+ id: z.ZodString;
1659
+ userId: z.ZodString;
1660
+ organizationId: z.ZodString;
1661
+ role: z.ZodObject<{
1662
+ slug: z.ZodString;
1663
+ }, z.core.$strip>;
1664
+ status: z.ZodString;
1665
+ }, z.core.$strip>;
1666
+ }, z.core.$strip>, z.ZodObject<{
1667
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1668
+ eventId: z.ZodString;
1669
+ createdAt: z.ZodString;
1670
+ eventType: z.ZodLiteral<"organization_membership.deleted">;
1671
+ membership: z.ZodObject<{
1672
+ id: z.ZodString;
1673
+ userId: z.ZodString;
1674
+ organizationId: z.ZodString;
1675
+ role: z.ZodObject<{
1676
+ slug: z.ZodString;
1677
+ }, z.core.$strip>;
1678
+ status: z.ZodString;
1679
+ }, z.core.$strip>;
1680
+ }, z.core.$strip>], "eventType">;
1681
+ export type WorkOSMembershipTrigger = z.infer<typeof workOSMembershipTriggerSchema>;
1682
+ export declare const workOSInvitationCreatedTriggerSchema: z.ZodObject<{
1683
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1684
+ eventId: z.ZodString;
1685
+ createdAt: z.ZodString;
1686
+ eventType: z.ZodLiteral<"invitation.created">;
1687
+ invitation: z.ZodObject<{
1688
+ id: z.ZodString;
1689
+ email: z.ZodString;
1690
+ organizationId: z.ZodString;
1691
+ inviterEmail: z.ZodOptional<z.ZodString>;
1692
+ state: z.ZodString;
1693
+ acceptedAt: z.ZodOptional<z.ZodString>;
1694
+ }, z.core.$strip>;
1695
+ user: z.ZodOptional<z.ZodObject<{
1696
+ id: z.ZodString;
1697
+ email: z.ZodString;
1698
+ firstName: z.ZodOptional<z.ZodString>;
1699
+ lastName: z.ZodOptional<z.ZodString>;
1700
+ emailVerified: z.ZodBoolean;
1701
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
1702
+ }, z.core.$strip>>;
1703
+ }, z.core.$strip>;
1704
+ export type WorkOSInvitationCreatedTrigger = z.infer<typeof workOSInvitationCreatedTriggerSchema>;
1705
+ export declare const workOSInvitationAcceptedTriggerSchema: z.ZodObject<{
1706
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1707
+ eventId: z.ZodString;
1708
+ createdAt: z.ZodString;
1709
+ eventType: z.ZodLiteral<"invitation.accepted">;
1710
+ invitation: z.ZodObject<{
1711
+ id: z.ZodString;
1712
+ email: z.ZodString;
1713
+ organizationId: z.ZodString;
1714
+ inviterEmail: z.ZodOptional<z.ZodString>;
1715
+ state: z.ZodString;
1716
+ acceptedAt: z.ZodOptional<z.ZodString>;
1717
+ }, z.core.$strip>;
1718
+ user: z.ZodOptional<z.ZodObject<{
1719
+ id: z.ZodString;
1720
+ email: z.ZodString;
1721
+ firstName: z.ZodOptional<z.ZodString>;
1722
+ lastName: z.ZodOptional<z.ZodString>;
1723
+ emailVerified: z.ZodBoolean;
1724
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
1725
+ }, z.core.$strip>>;
1726
+ }, z.core.$strip>;
1727
+ export type WorkOSInvitationAcceptedTrigger = z.infer<typeof workOSInvitationAcceptedTriggerSchema>;
1728
+ export declare const workOSInvitationResentTriggerSchema: z.ZodObject<{
1729
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1730
+ eventId: z.ZodString;
1731
+ createdAt: z.ZodString;
1732
+ eventType: z.ZodLiteral<"invitation.resent">;
1733
+ invitation: z.ZodObject<{
1734
+ id: z.ZodString;
1735
+ email: z.ZodString;
1736
+ organizationId: z.ZodString;
1737
+ inviterEmail: z.ZodOptional<z.ZodString>;
1738
+ state: z.ZodString;
1739
+ acceptedAt: z.ZodOptional<z.ZodString>;
1740
+ }, z.core.$strip>;
1741
+ user: z.ZodOptional<z.ZodObject<{
1742
+ id: z.ZodString;
1743
+ email: z.ZodString;
1744
+ firstName: z.ZodOptional<z.ZodString>;
1745
+ lastName: z.ZodOptional<z.ZodString>;
1746
+ emailVerified: z.ZodBoolean;
1747
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
1748
+ }, z.core.$strip>>;
1749
+ }, z.core.$strip>;
1750
+ export type WorkOSInvitationResentTrigger = z.infer<typeof workOSInvitationResentTriggerSchema>;
1751
+ export declare const workOSInvitationRevokedTriggerSchema: z.ZodObject<{
1752
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1753
+ eventId: z.ZodString;
1754
+ createdAt: z.ZodString;
1755
+ eventType: z.ZodLiteral<"invitation.revoked">;
1756
+ invitation: z.ZodObject<{
1757
+ id: z.ZodString;
1758
+ email: z.ZodString;
1759
+ organizationId: z.ZodString;
1760
+ inviterEmail: z.ZodOptional<z.ZodString>;
1761
+ state: z.ZodString;
1762
+ acceptedAt: z.ZodOptional<z.ZodString>;
1763
+ }, z.core.$strip>;
1764
+ user: z.ZodOptional<z.ZodObject<{
1765
+ id: z.ZodString;
1766
+ email: z.ZodString;
1767
+ firstName: z.ZodOptional<z.ZodString>;
1768
+ lastName: z.ZodOptional<z.ZodString>;
1769
+ emailVerified: z.ZodBoolean;
1770
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
1771
+ }, z.core.$strip>>;
1772
+ }, z.core.$strip>;
1773
+ export type WorkOSInvitationRevokedTrigger = z.infer<typeof workOSInvitationRevokedTriggerSchema>;
1774
+ export declare const workOSInvitationTriggerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1775
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1776
+ eventId: z.ZodString;
1777
+ createdAt: z.ZodString;
1778
+ eventType: z.ZodLiteral<"invitation.created">;
1779
+ invitation: z.ZodObject<{
1780
+ id: z.ZodString;
1781
+ email: z.ZodString;
1782
+ organizationId: z.ZodString;
1783
+ inviterEmail: z.ZodOptional<z.ZodString>;
1784
+ state: z.ZodString;
1785
+ acceptedAt: z.ZodOptional<z.ZodString>;
1786
+ }, z.core.$strip>;
1787
+ user: z.ZodOptional<z.ZodObject<{
1788
+ id: z.ZodString;
1789
+ email: z.ZodString;
1790
+ firstName: z.ZodOptional<z.ZodString>;
1791
+ lastName: z.ZodOptional<z.ZodString>;
1792
+ emailVerified: z.ZodBoolean;
1793
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
1794
+ }, z.core.$strip>>;
1795
+ }, z.core.$strip>, z.ZodObject<{
1796
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1797
+ eventId: z.ZodString;
1798
+ createdAt: z.ZodString;
1799
+ eventType: z.ZodLiteral<"invitation.accepted">;
1800
+ invitation: z.ZodObject<{
1801
+ id: z.ZodString;
1802
+ email: z.ZodString;
1803
+ organizationId: z.ZodString;
1804
+ inviterEmail: z.ZodOptional<z.ZodString>;
1805
+ state: z.ZodString;
1806
+ acceptedAt: z.ZodOptional<z.ZodString>;
1807
+ }, z.core.$strip>;
1808
+ user: z.ZodOptional<z.ZodObject<{
1809
+ id: z.ZodString;
1810
+ email: z.ZodString;
1811
+ firstName: z.ZodOptional<z.ZodString>;
1812
+ lastName: z.ZodOptional<z.ZodString>;
1813
+ emailVerified: z.ZodBoolean;
1814
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
1815
+ }, z.core.$strip>>;
1816
+ }, z.core.$strip>, z.ZodObject<{
1817
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1818
+ eventId: z.ZodString;
1819
+ createdAt: z.ZodString;
1820
+ eventType: z.ZodLiteral<"invitation.resent">;
1821
+ invitation: z.ZodObject<{
1822
+ id: z.ZodString;
1823
+ email: z.ZodString;
1824
+ organizationId: z.ZodString;
1825
+ inviterEmail: z.ZodOptional<z.ZodString>;
1826
+ state: z.ZodString;
1827
+ acceptedAt: z.ZodOptional<z.ZodString>;
1828
+ }, z.core.$strip>;
1829
+ user: z.ZodOptional<z.ZodObject<{
1830
+ id: z.ZodString;
1831
+ email: z.ZodString;
1832
+ firstName: z.ZodOptional<z.ZodString>;
1833
+ lastName: z.ZodOptional<z.ZodString>;
1834
+ emailVerified: z.ZodBoolean;
1835
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
1836
+ }, z.core.$strip>>;
1837
+ }, z.core.$strip>, z.ZodObject<{
1838
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1839
+ eventId: z.ZodString;
1840
+ createdAt: z.ZodString;
1841
+ eventType: z.ZodLiteral<"invitation.revoked">;
1842
+ invitation: z.ZodObject<{
1843
+ id: z.ZodString;
1844
+ email: z.ZodString;
1845
+ organizationId: z.ZodString;
1846
+ inviterEmail: z.ZodOptional<z.ZodString>;
1847
+ state: z.ZodString;
1848
+ acceptedAt: z.ZodOptional<z.ZodString>;
1849
+ }, z.core.$strip>;
1850
+ user: z.ZodOptional<z.ZodObject<{
1851
+ id: z.ZodString;
1852
+ email: z.ZodString;
1853
+ firstName: z.ZodOptional<z.ZodString>;
1854
+ lastName: z.ZodOptional<z.ZodString>;
1855
+ emailVerified: z.ZodBoolean;
1856
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
1857
+ }, z.core.$strip>>;
1858
+ }, z.core.$strip>], "eventType">;
1859
+ export type WorkOSInvitationTrigger = z.infer<typeof workOSInvitationTriggerSchema>;
1860
+ export declare const workOSOrganizationTriggerSchema: z.ZodObject<{
1861
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1862
+ eventId: z.ZodString;
1863
+ createdAt: z.ZodString;
1864
+ eventType: z.ZodLiteral<"organization.created">;
1865
+ organization: z.ZodObject<{
1866
+ id: z.ZodString;
1867
+ name: z.ZodString;
1868
+ }, z.core.$strip>;
1869
+ }, z.core.$strip>;
1870
+ export type WorkOSOrganizationTrigger = z.infer<typeof workOSOrganizationTriggerSchema>;
1871
+ export declare const workOSTriggerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1872
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1873
+ eventId: z.ZodString;
1874
+ createdAt: z.ZodString;
1875
+ eventType: z.ZodLiteral<"user.created">;
1876
+ user: z.ZodObject<{
1877
+ id: z.ZodString;
1878
+ email: z.ZodString;
1879
+ firstName: z.ZodOptional<z.ZodString>;
1880
+ lastName: z.ZodOptional<z.ZodString>;
1881
+ emailVerified: z.ZodBoolean;
1882
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
1883
+ }, z.core.$strip>;
1884
+ }, z.core.$strip>, z.ZodObject<{
1885
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1886
+ eventId: z.ZodString;
1887
+ createdAt: z.ZodString;
1888
+ eventType: z.ZodLiteral<"user.updated">;
1889
+ user: z.ZodObject<{
1890
+ id: z.ZodString;
1891
+ email: z.ZodString;
1892
+ firstName: z.ZodOptional<z.ZodString>;
1893
+ lastName: z.ZodOptional<z.ZodString>;
1894
+ emailVerified: z.ZodBoolean;
1895
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
1896
+ }, z.core.$strip>;
1897
+ }, z.core.$strip>, z.ZodObject<{
1898
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1899
+ eventId: z.ZodString;
1900
+ createdAt: z.ZodString;
1901
+ eventType: z.ZodLiteral<"user.deleted">;
1902
+ user: z.ZodObject<{
1903
+ id: z.ZodString;
1904
+ email: z.ZodString;
1905
+ firstName: z.ZodOptional<z.ZodString>;
1906
+ lastName: z.ZodOptional<z.ZodString>;
1907
+ emailVerified: z.ZodBoolean;
1908
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
1909
+ }, z.core.$strip>;
1910
+ }, z.core.$strip>, z.ZodObject<{
1911
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1912
+ eventId: z.ZodString;
1913
+ createdAt: z.ZodString;
1914
+ eventType: z.ZodLiteral<"organization_membership.created">;
1915
+ membership: z.ZodObject<{
1916
+ id: z.ZodString;
1917
+ userId: z.ZodString;
1918
+ organizationId: z.ZodString;
1919
+ role: z.ZodObject<{
1920
+ slug: z.ZodString;
1921
+ }, z.core.$strip>;
1922
+ status: z.ZodString;
1923
+ }, z.core.$strip>;
1924
+ }, z.core.$strip>, z.ZodObject<{
1925
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1926
+ eventId: z.ZodString;
1927
+ createdAt: z.ZodString;
1928
+ eventType: z.ZodLiteral<"organization_membership.updated">;
1929
+ membership: z.ZodObject<{
1930
+ id: z.ZodString;
1931
+ userId: z.ZodString;
1932
+ organizationId: z.ZodString;
1933
+ role: z.ZodObject<{
1934
+ slug: z.ZodString;
1935
+ }, z.core.$strip>;
1936
+ status: z.ZodString;
1937
+ }, z.core.$strip>;
1938
+ }, z.core.$strip>, z.ZodObject<{
1939
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1940
+ eventId: z.ZodString;
1941
+ createdAt: z.ZodString;
1942
+ eventType: z.ZodLiteral<"organization_membership.deleted">;
1943
+ membership: z.ZodObject<{
1944
+ id: z.ZodString;
1945
+ userId: z.ZodString;
1946
+ organizationId: z.ZodString;
1947
+ role: z.ZodObject<{
1948
+ slug: z.ZodString;
1949
+ }, z.core.$strip>;
1950
+ status: z.ZodString;
1951
+ }, z.core.$strip>;
1952
+ }, z.core.$strip>, z.ZodObject<{
1953
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1954
+ eventId: z.ZodString;
1955
+ createdAt: z.ZodString;
1956
+ eventType: z.ZodLiteral<"invitation.created">;
1957
+ invitation: z.ZodObject<{
1958
+ id: z.ZodString;
1959
+ email: z.ZodString;
1960
+ organizationId: z.ZodString;
1961
+ inviterEmail: z.ZodOptional<z.ZodString>;
1962
+ state: z.ZodString;
1963
+ acceptedAt: z.ZodOptional<z.ZodString>;
1964
+ }, z.core.$strip>;
1965
+ user: z.ZodOptional<z.ZodObject<{
1966
+ id: z.ZodString;
1967
+ email: z.ZodString;
1968
+ firstName: z.ZodOptional<z.ZodString>;
1969
+ lastName: z.ZodOptional<z.ZodString>;
1970
+ emailVerified: z.ZodBoolean;
1971
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
1972
+ }, z.core.$strip>>;
1973
+ }, z.core.$strip>, z.ZodObject<{
1974
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1975
+ eventId: z.ZodString;
1976
+ createdAt: z.ZodString;
1977
+ eventType: z.ZodLiteral<"invitation.accepted">;
1978
+ invitation: z.ZodObject<{
1979
+ id: z.ZodString;
1980
+ email: z.ZodString;
1981
+ organizationId: z.ZodString;
1982
+ inviterEmail: z.ZodOptional<z.ZodString>;
1983
+ state: z.ZodString;
1984
+ acceptedAt: z.ZodOptional<z.ZodString>;
1985
+ }, z.core.$strip>;
1986
+ user: z.ZodOptional<z.ZodObject<{
1987
+ id: z.ZodString;
1988
+ email: z.ZodString;
1989
+ firstName: z.ZodOptional<z.ZodString>;
1990
+ lastName: z.ZodOptional<z.ZodString>;
1991
+ emailVerified: z.ZodBoolean;
1992
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
1993
+ }, z.core.$strip>>;
1994
+ }, z.core.$strip>, z.ZodObject<{
1995
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
1996
+ eventId: z.ZodString;
1997
+ createdAt: z.ZodString;
1998
+ eventType: z.ZodLiteral<"invitation.resent">;
1999
+ invitation: z.ZodObject<{
2000
+ id: z.ZodString;
2001
+ email: z.ZodString;
2002
+ organizationId: z.ZodString;
2003
+ inviterEmail: z.ZodOptional<z.ZodString>;
2004
+ state: z.ZodString;
2005
+ acceptedAt: z.ZodOptional<z.ZodString>;
2006
+ }, z.core.$strip>;
2007
+ user: z.ZodOptional<z.ZodObject<{
2008
+ id: z.ZodString;
2009
+ email: z.ZodString;
2010
+ firstName: z.ZodOptional<z.ZodString>;
2011
+ lastName: z.ZodOptional<z.ZodString>;
2012
+ emailVerified: z.ZodBoolean;
2013
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
2014
+ }, z.core.$strip>>;
2015
+ }, z.core.$strip>, z.ZodObject<{
2016
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
2017
+ eventId: z.ZodString;
2018
+ createdAt: z.ZodString;
2019
+ eventType: z.ZodLiteral<"invitation.revoked">;
2020
+ invitation: z.ZodObject<{
2021
+ id: z.ZodString;
2022
+ email: z.ZodString;
2023
+ organizationId: z.ZodString;
2024
+ inviterEmail: z.ZodOptional<z.ZodString>;
2025
+ state: z.ZodString;
2026
+ acceptedAt: z.ZodOptional<z.ZodString>;
2027
+ }, z.core.$strip>;
2028
+ user: z.ZodOptional<z.ZodObject<{
2029
+ id: z.ZodString;
2030
+ email: z.ZodString;
2031
+ firstName: z.ZodOptional<z.ZodString>;
2032
+ lastName: z.ZodOptional<z.ZodString>;
2033
+ emailVerified: z.ZodBoolean;
2034
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
2035
+ }, z.core.$strip>>;
2036
+ }, z.core.$strip>, z.ZodObject<{
2037
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
2038
+ eventId: z.ZodString;
2039
+ createdAt: z.ZodString;
2040
+ eventType: z.ZodLiteral<"organization.created">;
2041
+ organization: z.ZodObject<{
2042
+ id: z.ZodString;
2043
+ name: z.ZodString;
2044
+ }, z.core.$strip>;
2045
+ }, z.core.$strip>], "eventType">;
2046
+ export type WorkOSTrigger = z.infer<typeof workOSTriggerSchema>;
2047
+ export declare const webhookTriggerSchema: z.ZodObject<{
2048
+ integrationType: z.ZodLiteral<IntegrationType.WEBHOOK>;
2049
+ eventType: z.ZodLiteral<"webhook">;
2050
+ body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2051
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
2052
+ method: z.ZodString;
2053
+ }, z.core.$strip>;
2054
+ export type WebhookTrigger = z.infer<typeof webhookTriggerSchema>;
2055
+ export declare const cronTriggerSchema: z.ZodObject<{
2056
+ integrationType: z.ZodLiteral<IntegrationType.CRON_JOB>;
2057
+ eventType: z.ZodLiteral<"cron">;
2058
+ inputId: z.ZodString;
2059
+ isManualTrigger: z.ZodOptional<z.ZodBoolean>;
2060
+ manualContext: z.ZodOptional<z.ZodString>;
2061
+ }, z.core.$strip>;
2062
+ export type CronTrigger = z.infer<typeof cronTriggerSchema>;
2063
+ export declare const manualSampleTriggerSchema: z.ZodObject<{
2064
+ integrationType: z.ZodEnum<typeof IntegrationType>;
2065
+ eventType: z.ZodLiteral<"manual_sample">;
2066
+ }, z.core.$strip>;
2067
+ export type ManualSampleTrigger = z.infer<typeof manualSampleTriggerSchema>;
2068
+ export declare const TriggerSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
2069
+ integrationType: z.ZodLiteral<IntegrationType.SLACK>;
2070
+ channelId: z.ZodString;
2071
+ channelName: z.ZodNullable<z.ZodString>;
2072
+ userId: z.ZodString;
2073
+ userName: z.ZodNullable<z.ZodString>;
2074
+ text: z.ZodString;
2075
+ timestamp: z.ZodString;
2076
+ threadTs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2077
+ threadTimestamp: z.ZodNullable<z.ZodString>;
2078
+ teamId: z.ZodString;
2079
+ permalink: z.ZodNullable<z.ZodString>;
2080
+ channelType: z.ZodNullable<z.ZodEnum<typeof SlackChannelType>>;
2081
+ blocks: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
2082
+ attachments: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
2083
+ files: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
2084
+ eventType: z.ZodLiteral<"message">;
2085
+ }, z.core.$strip>, z.ZodObject<{
2086
+ integrationType: z.ZodLiteral<IntegrationType.SLACK>;
2087
+ channelId: z.ZodString;
2088
+ channelName: z.ZodNullable<z.ZodString>;
2089
+ userId: z.ZodString;
2090
+ userName: z.ZodNullable<z.ZodString>;
2091
+ text: z.ZodString;
2092
+ timestamp: z.ZodString;
2093
+ threadTs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2094
+ threadTimestamp: z.ZodNullable<z.ZodString>;
2095
+ teamId: z.ZodString;
2096
+ permalink: z.ZodNullable<z.ZodString>;
2097
+ channelType: z.ZodNullable<z.ZodEnum<typeof SlackChannelType>>;
2098
+ blocks: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
2099
+ attachments: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
2100
+ files: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
2101
+ eventType: z.ZodLiteral<"app_mention">;
2102
+ }, z.core.$strip>, z.ZodObject<{
2103
+ integrationType: z.ZodLiteral<IntegrationType.SLACK>;
2104
+ channelId: z.ZodString;
2105
+ channelName: z.ZodNullable<z.ZodString>;
2106
+ userId: z.ZodString;
2107
+ userName: z.ZodNullable<z.ZodString>;
2108
+ text: z.ZodString;
2109
+ timestamp: z.ZodString;
2110
+ threadTs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2111
+ threadTimestamp: z.ZodNullable<z.ZodString>;
2112
+ teamId: z.ZodString;
2113
+ permalink: z.ZodNullable<z.ZodString>;
2114
+ channelType: z.ZodNullable<z.ZodEnum<typeof SlackChannelType>>;
2115
+ blocks: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
2116
+ attachments: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
2117
+ files: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
2118
+ eventType: z.ZodLiteral<"reaction_added">;
2119
+ reaction: z.ZodString;
2120
+ itemType: z.ZodNullable<z.ZodString>;
2121
+ itemUserId: z.ZodNullable<z.ZodString>;
2122
+ itemChannelId: z.ZodNullable<z.ZodString>;
2123
+ itemTimestamp: z.ZodNullable<z.ZodString>;
2124
+ }, z.core.$strip>], "eventType">, z.ZodDiscriminatedUnion<[z.ZodObject<{
2125
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
2126
+ username: z.ZodString;
2127
+ installationId: z.ZodNumber;
2128
+ repositoryName: z.ZodString;
2129
+ repository: z.ZodObject<{
2130
+ id: z.ZodNumber;
2131
+ name: z.ZodString;
2132
+ owner: z.ZodString;
2133
+ defaultBranch: z.ZodString;
2134
+ }, z.core.$strip>;
2135
+ sender: z.ZodObject<{
2136
+ login: z.ZodString;
2137
+ email: z.ZodOptional<z.ZodString>;
2138
+ }, z.core.$strip>;
2139
+ eventType: z.ZodLiteral<"push">;
2140
+ branch: z.ZodString;
2141
+ commits: z.ZodArray<z.ZodObject<{
2142
+ sha: z.ZodString;
2143
+ message: z.ZodOptional<z.ZodString>;
2144
+ name: z.ZodString;
2145
+ fileDiffs: z.ZodArray<z.ZodObject<{
2146
+ filename: z.ZodString;
2147
+ diff: z.ZodString;
2148
+ }, z.core.$strip>>;
2149
+ }, z.core.$strip>>;
2150
+ pullRequest: z.ZodOptional<z.ZodUndefined>;
2151
+ }, z.core.$strip>, z.ZodObject<{
2152
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
2153
+ username: z.ZodString;
2154
+ installationId: z.ZodNumber;
2155
+ repositoryName: z.ZodString;
2156
+ repository: z.ZodObject<{
2157
+ id: z.ZodNumber;
2158
+ name: z.ZodString;
2159
+ owner: z.ZodString;
2160
+ defaultBranch: z.ZodString;
2161
+ }, z.core.$strip>;
2162
+ sender: z.ZodObject<{
2163
+ login: z.ZodString;
2164
+ email: z.ZodOptional<z.ZodString>;
2165
+ }, z.core.$strip>;
2166
+ pullRequest: z.ZodObject<{
2167
+ id: z.ZodString;
2168
+ number: z.ZodNumber;
2169
+ title: z.ZodString;
2170
+ body: z.ZodOptional<z.ZodString>;
2171
+ state: z.ZodEnum<{
2172
+ open: "open";
2173
+ closed: "closed";
2174
+ }>;
2175
+ merged: z.ZodBoolean;
2176
+ head: z.ZodObject<{
2177
+ ref: z.ZodString;
2178
+ sha: z.ZodString;
2179
+ }, z.core.$strip>;
2180
+ base: z.ZodObject<{
2181
+ ref: z.ZodString;
2182
+ sha: z.ZodString;
2183
+ }, z.core.$strip>;
2184
+ user: z.ZodObject<{
2185
+ login: z.ZodString;
2186
+ email: z.ZodOptional<z.ZodString>;
2187
+ }, z.core.$strip>;
2188
+ author: z.ZodOptional<z.ZodObject<{
2189
+ login: z.ZodString;
2190
+ email: z.ZodOptional<z.ZodString>;
2191
+ }, z.core.$strip>>;
2192
+ url: z.ZodOptional<z.ZodString>;
2193
+ }, z.core.$strip>;
2194
+ branch: z.ZodOptional<z.ZodString>;
2195
+ commits: z.ZodArray<z.ZodObject<{
2196
+ sha: z.ZodString;
2197
+ message: z.ZodOptional<z.ZodString>;
2198
+ name: z.ZodString;
2199
+ fileDiffs: z.ZodArray<z.ZodObject<{
2200
+ filename: z.ZodString;
2201
+ diff: z.ZodString;
2202
+ }, z.core.$strip>>;
2203
+ }, z.core.$strip>>;
2204
+ eventType: z.ZodLiteral<"pull_request.opened">;
2205
+ }, z.core.$strip>, z.ZodObject<{
2206
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
2207
+ username: z.ZodString;
2208
+ installationId: z.ZodNumber;
2209
+ repositoryName: z.ZodString;
2210
+ repository: z.ZodObject<{
2211
+ id: z.ZodNumber;
2212
+ name: z.ZodString;
2213
+ owner: z.ZodString;
2214
+ defaultBranch: z.ZodString;
2215
+ }, z.core.$strip>;
2216
+ sender: z.ZodObject<{
2217
+ login: z.ZodString;
2218
+ email: z.ZodOptional<z.ZodString>;
2219
+ }, z.core.$strip>;
2220
+ pullRequest: z.ZodObject<{
2221
+ id: z.ZodString;
2222
+ number: z.ZodNumber;
2223
+ title: z.ZodString;
2224
+ body: z.ZodOptional<z.ZodString>;
2225
+ state: z.ZodEnum<{
2226
+ open: "open";
2227
+ closed: "closed";
2228
+ }>;
2229
+ merged: z.ZodBoolean;
2230
+ head: z.ZodObject<{
2231
+ ref: z.ZodString;
2232
+ sha: z.ZodString;
2233
+ }, z.core.$strip>;
2234
+ base: z.ZodObject<{
2235
+ ref: z.ZodString;
2236
+ sha: z.ZodString;
2237
+ }, z.core.$strip>;
2238
+ user: z.ZodObject<{
2239
+ login: z.ZodString;
2240
+ email: z.ZodOptional<z.ZodString>;
2241
+ }, z.core.$strip>;
2242
+ author: z.ZodOptional<z.ZodObject<{
2243
+ login: z.ZodString;
2244
+ email: z.ZodOptional<z.ZodString>;
2245
+ }, z.core.$strip>>;
2246
+ url: z.ZodOptional<z.ZodString>;
2247
+ }, z.core.$strip>;
2248
+ branch: z.ZodOptional<z.ZodString>;
2249
+ commits: z.ZodArray<z.ZodObject<{
2250
+ sha: z.ZodString;
2251
+ message: z.ZodOptional<z.ZodString>;
2252
+ name: z.ZodString;
2253
+ fileDiffs: z.ZodArray<z.ZodObject<{
2254
+ filename: z.ZodString;
2255
+ diff: z.ZodString;
2256
+ }, z.core.$strip>>;
2257
+ }, z.core.$strip>>;
2258
+ eventType: z.ZodLiteral<"pull_request.synchronize">;
2259
+ }, z.core.$strip>, z.ZodObject<{
2260
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
2261
+ username: z.ZodString;
2262
+ installationId: z.ZodNumber;
2263
+ repositoryName: z.ZodString;
2264
+ repository: z.ZodObject<{
2265
+ id: z.ZodNumber;
2266
+ name: z.ZodString;
2267
+ owner: z.ZodString;
2268
+ defaultBranch: z.ZodString;
2269
+ }, z.core.$strip>;
2270
+ sender: z.ZodObject<{
2271
+ login: z.ZodString;
2272
+ email: z.ZodOptional<z.ZodString>;
2273
+ }, z.core.$strip>;
2274
+ pullRequest: z.ZodObject<{
2275
+ id: z.ZodString;
2276
+ number: z.ZodNumber;
2277
+ title: z.ZodString;
2278
+ body: z.ZodOptional<z.ZodString>;
2279
+ state: z.ZodEnum<{
2280
+ open: "open";
2281
+ closed: "closed";
2282
+ }>;
2283
+ merged: z.ZodBoolean;
2284
+ head: z.ZodObject<{
2285
+ ref: z.ZodString;
2286
+ sha: z.ZodString;
2287
+ }, z.core.$strip>;
2288
+ base: z.ZodObject<{
2289
+ ref: z.ZodString;
2290
+ sha: z.ZodString;
2291
+ }, z.core.$strip>;
2292
+ user: z.ZodObject<{
2293
+ login: z.ZodString;
2294
+ email: z.ZodOptional<z.ZodString>;
2295
+ }, z.core.$strip>;
2296
+ author: z.ZodOptional<z.ZodObject<{
2297
+ login: z.ZodString;
2298
+ email: z.ZodOptional<z.ZodString>;
2299
+ }, z.core.$strip>>;
2300
+ url: z.ZodOptional<z.ZodString>;
2301
+ }, z.core.$strip>;
2302
+ branch: z.ZodOptional<z.ZodString>;
2303
+ commits: z.ZodArray<z.ZodObject<{
2304
+ sha: z.ZodString;
2305
+ message: z.ZodOptional<z.ZodString>;
2306
+ name: z.ZodString;
2307
+ fileDiffs: z.ZodArray<z.ZodObject<{
2308
+ filename: z.ZodString;
2309
+ diff: z.ZodString;
2310
+ }, z.core.$strip>>;
2311
+ }, z.core.$strip>>;
2312
+ eventType: z.ZodLiteral<"pull_request.closed">;
2313
+ }, z.core.$strip>, z.ZodObject<{
2314
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
2315
+ username: z.ZodString;
2316
+ installationId: z.ZodNumber;
2317
+ repositoryName: z.ZodString;
2318
+ repository: z.ZodObject<{
2319
+ id: z.ZodNumber;
2320
+ name: z.ZodString;
2321
+ owner: z.ZodString;
2322
+ defaultBranch: z.ZodString;
2323
+ }, z.core.$strip>;
2324
+ sender: z.ZodObject<{
2325
+ login: z.ZodString;
2326
+ email: z.ZodOptional<z.ZodString>;
2327
+ }, z.core.$strip>;
2328
+ pullRequest: z.ZodObject<{
2329
+ id: z.ZodString;
2330
+ number: z.ZodNumber;
2331
+ title: z.ZodString;
2332
+ body: z.ZodOptional<z.ZodString>;
2333
+ state: z.ZodEnum<{
2334
+ open: "open";
2335
+ closed: "closed";
2336
+ }>;
2337
+ merged: z.ZodBoolean;
2338
+ head: z.ZodObject<{
2339
+ ref: z.ZodString;
2340
+ sha: z.ZodString;
2341
+ }, z.core.$strip>;
2342
+ base: z.ZodObject<{
2343
+ ref: z.ZodString;
2344
+ sha: z.ZodString;
2345
+ }, z.core.$strip>;
2346
+ user: z.ZodObject<{
2347
+ login: z.ZodString;
2348
+ email: z.ZodOptional<z.ZodString>;
2349
+ }, z.core.$strip>;
2350
+ author: z.ZodOptional<z.ZodObject<{
2351
+ login: z.ZodString;
2352
+ email: z.ZodOptional<z.ZodString>;
2353
+ }, z.core.$strip>>;
2354
+ url: z.ZodOptional<z.ZodString>;
2355
+ }, z.core.$strip>;
2356
+ branch: z.ZodOptional<z.ZodString>;
2357
+ commits: z.ZodArray<z.ZodObject<{
2358
+ sha: z.ZodString;
2359
+ message: z.ZodOptional<z.ZodString>;
2360
+ name: z.ZodString;
2361
+ fileDiffs: z.ZodArray<z.ZodObject<{
2362
+ filename: z.ZodString;
2363
+ diff: z.ZodString;
2364
+ }, z.core.$strip>>;
2365
+ }, z.core.$strip>>;
2366
+ eventType: z.ZodLiteral<"pull_request.merged">;
2367
+ }, z.core.$strip>], "eventType">, z.ZodObject<{
2368
+ integrationType: z.ZodLiteral<IntegrationType.GMAIL>;
2369
+ eventType: z.ZodEnum<{
2370
+ readonly EMAIL_RECEIVED: "email.received";
2371
+ }>;
2372
+ id: z.ZodString;
2373
+ threadId: z.ZodString;
2374
+ subject: z.ZodString;
2375
+ from: z.ZodString;
2376
+ to: z.ZodString;
2377
+ date: z.ZodString;
2378
+ internalDate: z.ZodString;
2379
+ messageId: z.ZodString;
2380
+ body: z.ZodString;
2381
+ snippet: z.ZodString;
2382
+ labelIds: z.ZodArray<z.ZodString>;
2383
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2384
+ attachmentId: z.ZodString;
2385
+ filename: z.ZodString;
2386
+ mimeType: z.ZodString;
2387
+ contentId: z.ZodOptional<z.ZodString>;
2388
+ isInline: z.ZodBoolean;
2389
+ }, z.core.$strip>>>;
2390
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
2391
+ integrationType: z.ZodLiteral<IntegrationType.LINEAR>;
2392
+ actor: z.ZodObject<{
2393
+ id: z.ZodString;
2394
+ name: z.ZodString;
2395
+ email: z.ZodString;
2396
+ url: z.ZodString;
2397
+ type: z.ZodString;
2398
+ }, z.core.$strip>;
2399
+ createdAt: z.ZodString;
2400
+ url: z.ZodOptional<z.ZodString>;
2401
+ organizationId: z.ZodString;
2402
+ webhookTimestamp: z.ZodNumber;
2403
+ webhookId: z.ZodString;
2404
+ eventType: z.ZodLiteral<"issue.created">;
2405
+ action: z.ZodLiteral<"create">;
2406
+ type: z.ZodLiteral<"Issue">;
2407
+ data: z.ZodObject<{
2408
+ id: z.ZodString;
2409
+ createdAt: z.ZodString;
2410
+ updatedAt: z.ZodString;
2411
+ number: z.ZodNumber;
2412
+ title: z.ZodString;
2413
+ priority: z.ZodNumber;
2414
+ sortOrder: z.ZodNumber;
2415
+ prioritySortOrder: z.ZodNumber;
2416
+ slaType: z.ZodString;
2417
+ addedToTeamAt: z.ZodString;
2418
+ trashed: z.ZodBoolean;
2419
+ labelIds: z.ZodArray<z.ZodString>;
2420
+ teamId: z.ZodString;
2421
+ previousIdentifiers: z.ZodArray<z.ZodString>;
2422
+ stateId: z.ZodString;
2423
+ reactionData: z.ZodArray<z.ZodAny>;
2424
+ priorityLabel: z.ZodString;
2425
+ botActor: z.ZodOptional<z.ZodString>;
2426
+ identifier: z.ZodString;
2427
+ url: z.ZodString;
2428
+ subscriberIds: z.ZodArray<z.ZodString>;
2429
+ state: z.ZodObject<{
2430
+ id: z.ZodString;
2431
+ color: z.ZodString;
2432
+ name: z.ZodString;
2433
+ type: z.ZodString;
2434
+ }, z.core.$strip>;
2435
+ team: z.ZodObject<{
2436
+ id: z.ZodString;
2437
+ key: z.ZodString;
2438
+ name: z.ZodString;
2439
+ }, z.core.$strip>;
2440
+ labels: z.ZodArray<z.ZodAny>;
2441
+ description: z.ZodOptional<z.ZodString>;
2442
+ descriptionData: z.ZodOptional<z.ZodString>;
2443
+ assignee: z.ZodOptional<z.ZodObject<{
2444
+ id: z.ZodString;
2445
+ name: z.ZodString;
2446
+ }, z.core.$strip>>;
2447
+ projectId: z.ZodOptional<z.ZodString>;
2448
+ }, z.core.$strip>;
2449
+ }, z.core.$strip>, z.ZodObject<{
2450
+ integrationType: z.ZodLiteral<IntegrationType.LINEAR>;
2451
+ actor: z.ZodObject<{
2452
+ id: z.ZodString;
2453
+ name: z.ZodString;
2454
+ email: z.ZodString;
2455
+ url: z.ZodString;
2456
+ type: z.ZodString;
2457
+ }, z.core.$strip>;
2458
+ createdAt: z.ZodString;
2459
+ url: z.ZodOptional<z.ZodString>;
2460
+ organizationId: z.ZodString;
2461
+ webhookTimestamp: z.ZodNumber;
2462
+ webhookId: z.ZodString;
2463
+ eventType: z.ZodLiteral<"issue.updated">;
2464
+ action: z.ZodLiteral<"update">;
2465
+ type: z.ZodLiteral<"Issue">;
2466
+ data: z.ZodObject<{
2467
+ id: z.ZodString;
2468
+ createdAt: z.ZodString;
2469
+ updatedAt: z.ZodString;
2470
+ number: z.ZodNumber;
2471
+ title: z.ZodString;
2472
+ priority: z.ZodNumber;
2473
+ sortOrder: z.ZodNumber;
2474
+ prioritySortOrder: z.ZodNumber;
2475
+ slaType: z.ZodString;
2476
+ addedToTeamAt: z.ZodString;
2477
+ trashed: z.ZodBoolean;
2478
+ labelIds: z.ZodArray<z.ZodString>;
2479
+ teamId: z.ZodString;
2480
+ previousIdentifiers: z.ZodArray<z.ZodString>;
2481
+ stateId: z.ZodString;
2482
+ reactionData: z.ZodArray<z.ZodAny>;
2483
+ priorityLabel: z.ZodString;
2484
+ botActor: z.ZodOptional<z.ZodString>;
2485
+ identifier: z.ZodString;
2486
+ url: z.ZodString;
2487
+ subscriberIds: z.ZodArray<z.ZodString>;
2488
+ state: z.ZodObject<{
2489
+ id: z.ZodString;
2490
+ color: z.ZodString;
2491
+ name: z.ZodString;
2492
+ type: z.ZodString;
2493
+ }, z.core.$strip>;
2494
+ team: z.ZodObject<{
2495
+ id: z.ZodString;
2496
+ key: z.ZodString;
2497
+ name: z.ZodString;
2498
+ }, z.core.$strip>;
2499
+ labels: z.ZodArray<z.ZodAny>;
2500
+ description: z.ZodOptional<z.ZodString>;
2501
+ descriptionData: z.ZodOptional<z.ZodString>;
2502
+ assignee: z.ZodOptional<z.ZodObject<{
2503
+ id: z.ZodString;
2504
+ name: z.ZodString;
2505
+ }, z.core.$strip>>;
2506
+ projectId: z.ZodOptional<z.ZodString>;
2507
+ }, z.core.$strip>;
2508
+ }, z.core.$strip>, z.ZodObject<{
2509
+ integrationType: z.ZodLiteral<IntegrationType.LINEAR>;
2510
+ actor: z.ZodObject<{
2511
+ id: z.ZodString;
2512
+ name: z.ZodString;
2513
+ email: z.ZodString;
2514
+ url: z.ZodString;
2515
+ type: z.ZodString;
2516
+ }, z.core.$strip>;
2517
+ createdAt: z.ZodString;
2518
+ url: z.ZodOptional<z.ZodString>;
2519
+ organizationId: z.ZodString;
2520
+ webhookTimestamp: z.ZodNumber;
2521
+ webhookId: z.ZodString;
2522
+ eventType: z.ZodLiteral<"comment.created">;
2523
+ action: z.ZodLiteral<"create">;
2524
+ type: z.ZodLiteral<"Comment">;
2525
+ data: z.ZodObject<{
2526
+ id: z.ZodString;
2527
+ body: z.ZodOptional<z.ZodString>;
2528
+ issueId: z.ZodOptional<z.ZodString>;
2529
+ }, z.core.$loose>;
2530
+ }, z.core.$strip>], "eventType">, z.ZodDiscriminatedUnion<[z.ZodObject<{
2531
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
2532
+ eventId: z.ZodString;
2533
+ createdAt: z.ZodString;
2534
+ eventType: z.ZodLiteral<"user.created">;
2535
+ user: z.ZodObject<{
2536
+ id: z.ZodString;
2537
+ email: z.ZodString;
2538
+ firstName: z.ZodOptional<z.ZodString>;
2539
+ lastName: z.ZodOptional<z.ZodString>;
2540
+ emailVerified: z.ZodBoolean;
2541
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
2542
+ }, z.core.$strip>;
2543
+ }, z.core.$strip>, z.ZodObject<{
2544
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
2545
+ eventId: z.ZodString;
2546
+ createdAt: z.ZodString;
2547
+ eventType: z.ZodLiteral<"user.updated">;
2548
+ user: z.ZodObject<{
2549
+ id: z.ZodString;
2550
+ email: z.ZodString;
2551
+ firstName: z.ZodOptional<z.ZodString>;
2552
+ lastName: z.ZodOptional<z.ZodString>;
2553
+ emailVerified: z.ZodBoolean;
2554
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
2555
+ }, z.core.$strip>;
2556
+ }, z.core.$strip>, z.ZodObject<{
2557
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
2558
+ eventId: z.ZodString;
2559
+ createdAt: z.ZodString;
2560
+ eventType: z.ZodLiteral<"user.deleted">;
2561
+ user: z.ZodObject<{
2562
+ id: z.ZodString;
2563
+ email: z.ZodString;
2564
+ firstName: z.ZodOptional<z.ZodString>;
2565
+ lastName: z.ZodOptional<z.ZodString>;
2566
+ emailVerified: z.ZodBoolean;
2567
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
2568
+ }, z.core.$strip>;
2569
+ }, z.core.$strip>, z.ZodObject<{
2570
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
2571
+ eventId: z.ZodString;
2572
+ createdAt: z.ZodString;
2573
+ eventType: z.ZodLiteral<"organization_membership.created">;
2574
+ membership: z.ZodObject<{
2575
+ id: z.ZodString;
2576
+ userId: z.ZodString;
2577
+ organizationId: z.ZodString;
2578
+ role: z.ZodObject<{
2579
+ slug: z.ZodString;
2580
+ }, z.core.$strip>;
2581
+ status: z.ZodString;
2582
+ }, z.core.$strip>;
2583
+ }, z.core.$strip>, z.ZodObject<{
2584
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
2585
+ eventId: z.ZodString;
2586
+ createdAt: z.ZodString;
2587
+ eventType: z.ZodLiteral<"organization_membership.updated">;
2588
+ membership: z.ZodObject<{
2589
+ id: z.ZodString;
2590
+ userId: z.ZodString;
2591
+ organizationId: z.ZodString;
2592
+ role: z.ZodObject<{
2593
+ slug: z.ZodString;
2594
+ }, z.core.$strip>;
2595
+ status: z.ZodString;
2596
+ }, z.core.$strip>;
2597
+ }, z.core.$strip>, z.ZodObject<{
2598
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
2599
+ eventId: z.ZodString;
2600
+ createdAt: z.ZodString;
2601
+ eventType: z.ZodLiteral<"organization_membership.deleted">;
2602
+ membership: z.ZodObject<{
2603
+ id: z.ZodString;
2604
+ userId: z.ZodString;
2605
+ organizationId: z.ZodString;
2606
+ role: z.ZodObject<{
2607
+ slug: z.ZodString;
2608
+ }, z.core.$strip>;
2609
+ status: z.ZodString;
2610
+ }, z.core.$strip>;
2611
+ }, z.core.$strip>, z.ZodObject<{
2612
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
2613
+ eventId: z.ZodString;
2614
+ createdAt: z.ZodString;
2615
+ eventType: z.ZodLiteral<"invitation.created">;
2616
+ invitation: z.ZodObject<{
2617
+ id: z.ZodString;
2618
+ email: z.ZodString;
2619
+ organizationId: z.ZodString;
2620
+ inviterEmail: z.ZodOptional<z.ZodString>;
2621
+ state: z.ZodString;
2622
+ acceptedAt: z.ZodOptional<z.ZodString>;
2623
+ }, z.core.$strip>;
2624
+ user: z.ZodOptional<z.ZodObject<{
2625
+ id: z.ZodString;
2626
+ email: z.ZodString;
2627
+ firstName: z.ZodOptional<z.ZodString>;
2628
+ lastName: z.ZodOptional<z.ZodString>;
2629
+ emailVerified: z.ZodBoolean;
2630
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
2631
+ }, z.core.$strip>>;
2632
+ }, z.core.$strip>, z.ZodObject<{
2633
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
2634
+ eventId: z.ZodString;
2635
+ createdAt: z.ZodString;
2636
+ eventType: z.ZodLiteral<"invitation.accepted">;
2637
+ invitation: z.ZodObject<{
2638
+ id: z.ZodString;
2639
+ email: z.ZodString;
2640
+ organizationId: z.ZodString;
2641
+ inviterEmail: z.ZodOptional<z.ZodString>;
2642
+ state: z.ZodString;
2643
+ acceptedAt: z.ZodOptional<z.ZodString>;
2644
+ }, z.core.$strip>;
2645
+ user: z.ZodOptional<z.ZodObject<{
2646
+ id: z.ZodString;
2647
+ email: z.ZodString;
2648
+ firstName: z.ZodOptional<z.ZodString>;
2649
+ lastName: z.ZodOptional<z.ZodString>;
2650
+ emailVerified: z.ZodBoolean;
2651
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
2652
+ }, z.core.$strip>>;
2653
+ }, z.core.$strip>, z.ZodObject<{
2654
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
2655
+ eventId: z.ZodString;
2656
+ createdAt: z.ZodString;
2657
+ eventType: z.ZodLiteral<"invitation.resent">;
2658
+ invitation: z.ZodObject<{
2659
+ id: z.ZodString;
2660
+ email: z.ZodString;
2661
+ organizationId: z.ZodString;
2662
+ inviterEmail: z.ZodOptional<z.ZodString>;
2663
+ state: z.ZodString;
2664
+ acceptedAt: z.ZodOptional<z.ZodString>;
2665
+ }, z.core.$strip>;
2666
+ user: z.ZodOptional<z.ZodObject<{
2667
+ id: z.ZodString;
2668
+ email: z.ZodString;
2669
+ firstName: z.ZodOptional<z.ZodString>;
2670
+ lastName: z.ZodOptional<z.ZodString>;
2671
+ emailVerified: z.ZodBoolean;
2672
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
2673
+ }, z.core.$strip>>;
2674
+ }, z.core.$strip>, z.ZodObject<{
2675
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
2676
+ eventId: z.ZodString;
2677
+ createdAt: z.ZodString;
2678
+ eventType: z.ZodLiteral<"invitation.revoked">;
2679
+ invitation: z.ZodObject<{
2680
+ id: z.ZodString;
2681
+ email: z.ZodString;
2682
+ organizationId: z.ZodString;
2683
+ inviterEmail: z.ZodOptional<z.ZodString>;
2684
+ state: z.ZodString;
2685
+ acceptedAt: z.ZodOptional<z.ZodString>;
2686
+ }, z.core.$strip>;
2687
+ user: z.ZodOptional<z.ZodObject<{
2688
+ id: z.ZodString;
2689
+ email: z.ZodString;
2690
+ firstName: z.ZodOptional<z.ZodString>;
2691
+ lastName: z.ZodOptional<z.ZodString>;
2692
+ emailVerified: z.ZodBoolean;
2693
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
2694
+ }, z.core.$strip>>;
2695
+ }, z.core.$strip>, z.ZodObject<{
2696
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
2697
+ eventId: z.ZodString;
2698
+ createdAt: z.ZodString;
2699
+ eventType: z.ZodLiteral<"organization.created">;
2700
+ organization: z.ZodObject<{
2701
+ id: z.ZodString;
2702
+ name: z.ZodString;
2703
+ }, z.core.$strip>;
2704
+ }, z.core.$strip>], "eventType">, z.ZodObject<{
2705
+ integrationType: z.ZodLiteral<IntegrationType.WEBHOOK>;
2706
+ eventType: z.ZodLiteral<"webhook">;
2707
+ body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2708
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
2709
+ method: z.ZodString;
2710
+ }, z.core.$strip>, z.ZodObject<{
2711
+ integrationType: z.ZodLiteral<IntegrationType.CRON_JOB>;
2712
+ eventType: z.ZodLiteral<"cron">;
2713
+ inputId: z.ZodString;
2714
+ isManualTrigger: z.ZodOptional<z.ZodBoolean>;
2715
+ manualContext: z.ZodOptional<z.ZodString>;
2716
+ }, z.core.$strip>, z.ZodObject<{
2717
+ integrationType: z.ZodEnum<typeof IntegrationType>;
2718
+ eventType: z.ZodLiteral<"manual_sample">;
2719
+ }, z.core.$strip>]>;
2720
+ export type Trigger = z.infer<typeof TriggerSchema>;
2721
+ export declare function createManualTrigger(params?: {
2722
+ integrationType?: IntegrationType;
2723
+ }): Trigger;
2724
+ export declare function formatTriggerForAgent(event: Trigger): string;
2725
+ export declare function debugTrigger(event: Trigger): string;
2726
+ export declare const TriggerArraySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
2727
+ integrationType: z.ZodLiteral<IntegrationType.SLACK>;
2728
+ channelId: z.ZodString;
2729
+ channelName: z.ZodNullable<z.ZodString>;
2730
+ userId: z.ZodString;
2731
+ userName: z.ZodNullable<z.ZodString>;
2732
+ text: z.ZodString;
2733
+ timestamp: z.ZodString;
2734
+ threadTs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2735
+ threadTimestamp: z.ZodNullable<z.ZodString>;
2736
+ teamId: z.ZodString;
2737
+ permalink: z.ZodNullable<z.ZodString>;
2738
+ channelType: z.ZodNullable<z.ZodEnum<typeof SlackChannelType>>;
2739
+ blocks: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
2740
+ attachments: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
2741
+ files: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
2742
+ eventType: z.ZodLiteral<"message">;
2743
+ }, z.core.$strip>, z.ZodObject<{
2744
+ integrationType: z.ZodLiteral<IntegrationType.SLACK>;
2745
+ channelId: z.ZodString;
2746
+ channelName: z.ZodNullable<z.ZodString>;
2747
+ userId: z.ZodString;
2748
+ userName: z.ZodNullable<z.ZodString>;
2749
+ text: z.ZodString;
2750
+ timestamp: z.ZodString;
2751
+ threadTs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2752
+ threadTimestamp: z.ZodNullable<z.ZodString>;
2753
+ teamId: z.ZodString;
2754
+ permalink: z.ZodNullable<z.ZodString>;
2755
+ channelType: z.ZodNullable<z.ZodEnum<typeof SlackChannelType>>;
2756
+ blocks: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
2757
+ attachments: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
2758
+ files: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
2759
+ eventType: z.ZodLiteral<"app_mention">;
2760
+ }, z.core.$strip>, z.ZodObject<{
2761
+ integrationType: z.ZodLiteral<IntegrationType.SLACK>;
2762
+ channelId: z.ZodString;
2763
+ channelName: z.ZodNullable<z.ZodString>;
2764
+ userId: z.ZodString;
2765
+ userName: z.ZodNullable<z.ZodString>;
2766
+ text: z.ZodString;
2767
+ timestamp: z.ZodString;
2768
+ threadTs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2769
+ threadTimestamp: z.ZodNullable<z.ZodString>;
2770
+ teamId: z.ZodString;
2771
+ permalink: z.ZodNullable<z.ZodString>;
2772
+ channelType: z.ZodNullable<z.ZodEnum<typeof SlackChannelType>>;
2773
+ blocks: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
2774
+ attachments: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
2775
+ files: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
2776
+ eventType: z.ZodLiteral<"reaction_added">;
2777
+ reaction: z.ZodString;
2778
+ itemType: z.ZodNullable<z.ZodString>;
2779
+ itemUserId: z.ZodNullable<z.ZodString>;
2780
+ itemChannelId: z.ZodNullable<z.ZodString>;
2781
+ itemTimestamp: z.ZodNullable<z.ZodString>;
2782
+ }, z.core.$strip>], "eventType">, z.ZodDiscriminatedUnion<[z.ZodObject<{
2783
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
2784
+ username: z.ZodString;
2785
+ installationId: z.ZodNumber;
2786
+ repositoryName: z.ZodString;
2787
+ repository: z.ZodObject<{
2788
+ id: z.ZodNumber;
2789
+ name: z.ZodString;
2790
+ owner: z.ZodString;
2791
+ defaultBranch: z.ZodString;
2792
+ }, z.core.$strip>;
2793
+ sender: z.ZodObject<{
2794
+ login: z.ZodString;
2795
+ email: z.ZodOptional<z.ZodString>;
2796
+ }, z.core.$strip>;
2797
+ eventType: z.ZodLiteral<"push">;
2798
+ branch: z.ZodString;
2799
+ commits: z.ZodArray<z.ZodObject<{
2800
+ sha: z.ZodString;
2801
+ message: z.ZodOptional<z.ZodString>;
2802
+ name: z.ZodString;
2803
+ fileDiffs: z.ZodArray<z.ZodObject<{
2804
+ filename: z.ZodString;
2805
+ diff: z.ZodString;
2806
+ }, z.core.$strip>>;
2807
+ }, z.core.$strip>>;
2808
+ pullRequest: z.ZodOptional<z.ZodUndefined>;
2809
+ }, z.core.$strip>, z.ZodObject<{
2810
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
2811
+ username: z.ZodString;
2812
+ installationId: z.ZodNumber;
2813
+ repositoryName: z.ZodString;
2814
+ repository: z.ZodObject<{
2815
+ id: z.ZodNumber;
2816
+ name: z.ZodString;
2817
+ owner: z.ZodString;
2818
+ defaultBranch: z.ZodString;
2819
+ }, z.core.$strip>;
2820
+ sender: z.ZodObject<{
2821
+ login: z.ZodString;
2822
+ email: z.ZodOptional<z.ZodString>;
2823
+ }, z.core.$strip>;
2824
+ pullRequest: z.ZodObject<{
2825
+ id: z.ZodString;
2826
+ number: z.ZodNumber;
2827
+ title: z.ZodString;
2828
+ body: z.ZodOptional<z.ZodString>;
2829
+ state: z.ZodEnum<{
2830
+ open: "open";
2831
+ closed: "closed";
2832
+ }>;
2833
+ merged: z.ZodBoolean;
2834
+ head: z.ZodObject<{
2835
+ ref: z.ZodString;
2836
+ sha: z.ZodString;
2837
+ }, z.core.$strip>;
2838
+ base: z.ZodObject<{
2839
+ ref: z.ZodString;
2840
+ sha: z.ZodString;
2841
+ }, z.core.$strip>;
2842
+ user: z.ZodObject<{
2843
+ login: z.ZodString;
2844
+ email: z.ZodOptional<z.ZodString>;
2845
+ }, z.core.$strip>;
2846
+ author: z.ZodOptional<z.ZodObject<{
2847
+ login: z.ZodString;
2848
+ email: z.ZodOptional<z.ZodString>;
2849
+ }, z.core.$strip>>;
2850
+ url: z.ZodOptional<z.ZodString>;
2851
+ }, z.core.$strip>;
2852
+ branch: z.ZodOptional<z.ZodString>;
2853
+ commits: z.ZodArray<z.ZodObject<{
2854
+ sha: z.ZodString;
2855
+ message: z.ZodOptional<z.ZodString>;
2856
+ name: z.ZodString;
2857
+ fileDiffs: z.ZodArray<z.ZodObject<{
2858
+ filename: z.ZodString;
2859
+ diff: z.ZodString;
2860
+ }, z.core.$strip>>;
2861
+ }, z.core.$strip>>;
2862
+ eventType: z.ZodLiteral<"pull_request.opened">;
2863
+ }, z.core.$strip>, z.ZodObject<{
2864
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
2865
+ username: z.ZodString;
2866
+ installationId: z.ZodNumber;
2867
+ repositoryName: z.ZodString;
2868
+ repository: z.ZodObject<{
2869
+ id: z.ZodNumber;
2870
+ name: z.ZodString;
2871
+ owner: z.ZodString;
2872
+ defaultBranch: z.ZodString;
2873
+ }, z.core.$strip>;
2874
+ sender: z.ZodObject<{
2875
+ login: z.ZodString;
2876
+ email: z.ZodOptional<z.ZodString>;
2877
+ }, z.core.$strip>;
2878
+ pullRequest: z.ZodObject<{
2879
+ id: z.ZodString;
2880
+ number: z.ZodNumber;
2881
+ title: z.ZodString;
2882
+ body: z.ZodOptional<z.ZodString>;
2883
+ state: z.ZodEnum<{
2884
+ open: "open";
2885
+ closed: "closed";
2886
+ }>;
2887
+ merged: z.ZodBoolean;
2888
+ head: z.ZodObject<{
2889
+ ref: z.ZodString;
2890
+ sha: z.ZodString;
2891
+ }, z.core.$strip>;
2892
+ base: z.ZodObject<{
2893
+ ref: z.ZodString;
2894
+ sha: z.ZodString;
2895
+ }, z.core.$strip>;
2896
+ user: z.ZodObject<{
2897
+ login: z.ZodString;
2898
+ email: z.ZodOptional<z.ZodString>;
2899
+ }, z.core.$strip>;
2900
+ author: z.ZodOptional<z.ZodObject<{
2901
+ login: z.ZodString;
2902
+ email: z.ZodOptional<z.ZodString>;
2903
+ }, z.core.$strip>>;
2904
+ url: z.ZodOptional<z.ZodString>;
2905
+ }, z.core.$strip>;
2906
+ branch: z.ZodOptional<z.ZodString>;
2907
+ commits: z.ZodArray<z.ZodObject<{
2908
+ sha: z.ZodString;
2909
+ message: z.ZodOptional<z.ZodString>;
2910
+ name: z.ZodString;
2911
+ fileDiffs: z.ZodArray<z.ZodObject<{
2912
+ filename: z.ZodString;
2913
+ diff: z.ZodString;
2914
+ }, z.core.$strip>>;
2915
+ }, z.core.$strip>>;
2916
+ eventType: z.ZodLiteral<"pull_request.synchronize">;
2917
+ }, z.core.$strip>, z.ZodObject<{
2918
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
2919
+ username: z.ZodString;
2920
+ installationId: z.ZodNumber;
2921
+ repositoryName: z.ZodString;
2922
+ repository: z.ZodObject<{
2923
+ id: z.ZodNumber;
2924
+ name: z.ZodString;
2925
+ owner: z.ZodString;
2926
+ defaultBranch: z.ZodString;
2927
+ }, z.core.$strip>;
2928
+ sender: z.ZodObject<{
2929
+ login: z.ZodString;
2930
+ email: z.ZodOptional<z.ZodString>;
2931
+ }, z.core.$strip>;
2932
+ pullRequest: z.ZodObject<{
2933
+ id: z.ZodString;
2934
+ number: z.ZodNumber;
2935
+ title: z.ZodString;
2936
+ body: z.ZodOptional<z.ZodString>;
2937
+ state: z.ZodEnum<{
2938
+ open: "open";
2939
+ closed: "closed";
2940
+ }>;
2941
+ merged: z.ZodBoolean;
2942
+ head: z.ZodObject<{
2943
+ ref: z.ZodString;
2944
+ sha: z.ZodString;
2945
+ }, z.core.$strip>;
2946
+ base: z.ZodObject<{
2947
+ ref: z.ZodString;
2948
+ sha: z.ZodString;
2949
+ }, z.core.$strip>;
2950
+ user: z.ZodObject<{
2951
+ login: z.ZodString;
2952
+ email: z.ZodOptional<z.ZodString>;
2953
+ }, z.core.$strip>;
2954
+ author: z.ZodOptional<z.ZodObject<{
2955
+ login: z.ZodString;
2956
+ email: z.ZodOptional<z.ZodString>;
2957
+ }, z.core.$strip>>;
2958
+ url: z.ZodOptional<z.ZodString>;
2959
+ }, z.core.$strip>;
2960
+ branch: z.ZodOptional<z.ZodString>;
2961
+ commits: z.ZodArray<z.ZodObject<{
2962
+ sha: z.ZodString;
2963
+ message: z.ZodOptional<z.ZodString>;
2964
+ name: z.ZodString;
2965
+ fileDiffs: z.ZodArray<z.ZodObject<{
2966
+ filename: z.ZodString;
2967
+ diff: z.ZodString;
2968
+ }, z.core.$strip>>;
2969
+ }, z.core.$strip>>;
2970
+ eventType: z.ZodLiteral<"pull_request.closed">;
2971
+ }, z.core.$strip>, z.ZodObject<{
2972
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
2973
+ username: z.ZodString;
2974
+ installationId: z.ZodNumber;
2975
+ repositoryName: z.ZodString;
2976
+ repository: z.ZodObject<{
2977
+ id: z.ZodNumber;
2978
+ name: z.ZodString;
2979
+ owner: z.ZodString;
2980
+ defaultBranch: z.ZodString;
2981
+ }, z.core.$strip>;
2982
+ sender: z.ZodObject<{
2983
+ login: z.ZodString;
2984
+ email: z.ZodOptional<z.ZodString>;
2985
+ }, z.core.$strip>;
2986
+ pullRequest: z.ZodObject<{
2987
+ id: z.ZodString;
2988
+ number: z.ZodNumber;
2989
+ title: z.ZodString;
2990
+ body: z.ZodOptional<z.ZodString>;
2991
+ state: z.ZodEnum<{
2992
+ open: "open";
2993
+ closed: "closed";
2994
+ }>;
2995
+ merged: z.ZodBoolean;
2996
+ head: z.ZodObject<{
2997
+ ref: z.ZodString;
2998
+ sha: z.ZodString;
2999
+ }, z.core.$strip>;
3000
+ base: z.ZodObject<{
3001
+ ref: z.ZodString;
3002
+ sha: z.ZodString;
3003
+ }, z.core.$strip>;
3004
+ user: z.ZodObject<{
3005
+ login: z.ZodString;
3006
+ email: z.ZodOptional<z.ZodString>;
3007
+ }, z.core.$strip>;
3008
+ author: z.ZodOptional<z.ZodObject<{
3009
+ login: z.ZodString;
3010
+ email: z.ZodOptional<z.ZodString>;
3011
+ }, z.core.$strip>>;
3012
+ url: z.ZodOptional<z.ZodString>;
3013
+ }, z.core.$strip>;
3014
+ branch: z.ZodOptional<z.ZodString>;
3015
+ commits: z.ZodArray<z.ZodObject<{
3016
+ sha: z.ZodString;
3017
+ message: z.ZodOptional<z.ZodString>;
3018
+ name: z.ZodString;
3019
+ fileDiffs: z.ZodArray<z.ZodObject<{
3020
+ filename: z.ZodString;
3021
+ diff: z.ZodString;
3022
+ }, z.core.$strip>>;
3023
+ }, z.core.$strip>>;
3024
+ eventType: z.ZodLiteral<"pull_request.merged">;
3025
+ }, z.core.$strip>], "eventType">, z.ZodObject<{
3026
+ integrationType: z.ZodLiteral<IntegrationType.GMAIL>;
3027
+ eventType: z.ZodEnum<{
3028
+ readonly EMAIL_RECEIVED: "email.received";
3029
+ }>;
3030
+ id: z.ZodString;
3031
+ threadId: z.ZodString;
3032
+ subject: z.ZodString;
3033
+ from: z.ZodString;
3034
+ to: z.ZodString;
3035
+ date: z.ZodString;
3036
+ internalDate: z.ZodString;
3037
+ messageId: z.ZodString;
3038
+ body: z.ZodString;
3039
+ snippet: z.ZodString;
3040
+ labelIds: z.ZodArray<z.ZodString>;
3041
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
3042
+ attachmentId: z.ZodString;
3043
+ filename: z.ZodString;
3044
+ mimeType: z.ZodString;
3045
+ contentId: z.ZodOptional<z.ZodString>;
3046
+ isInline: z.ZodBoolean;
3047
+ }, z.core.$strip>>>;
3048
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
3049
+ integrationType: z.ZodLiteral<IntegrationType.LINEAR>;
3050
+ actor: z.ZodObject<{
3051
+ id: z.ZodString;
3052
+ name: z.ZodString;
3053
+ email: z.ZodString;
3054
+ url: z.ZodString;
3055
+ type: z.ZodString;
3056
+ }, z.core.$strip>;
3057
+ createdAt: z.ZodString;
3058
+ url: z.ZodOptional<z.ZodString>;
3059
+ organizationId: z.ZodString;
3060
+ webhookTimestamp: z.ZodNumber;
3061
+ webhookId: z.ZodString;
3062
+ eventType: z.ZodLiteral<"issue.created">;
3063
+ action: z.ZodLiteral<"create">;
3064
+ type: z.ZodLiteral<"Issue">;
3065
+ data: z.ZodObject<{
3066
+ id: z.ZodString;
3067
+ createdAt: z.ZodString;
3068
+ updatedAt: z.ZodString;
3069
+ number: z.ZodNumber;
3070
+ title: z.ZodString;
3071
+ priority: z.ZodNumber;
3072
+ sortOrder: z.ZodNumber;
3073
+ prioritySortOrder: z.ZodNumber;
3074
+ slaType: z.ZodString;
3075
+ addedToTeamAt: z.ZodString;
3076
+ trashed: z.ZodBoolean;
3077
+ labelIds: z.ZodArray<z.ZodString>;
3078
+ teamId: z.ZodString;
3079
+ previousIdentifiers: z.ZodArray<z.ZodString>;
3080
+ stateId: z.ZodString;
3081
+ reactionData: z.ZodArray<z.ZodAny>;
3082
+ priorityLabel: z.ZodString;
3083
+ botActor: z.ZodOptional<z.ZodString>;
3084
+ identifier: z.ZodString;
3085
+ url: z.ZodString;
3086
+ subscriberIds: z.ZodArray<z.ZodString>;
3087
+ state: z.ZodObject<{
3088
+ id: z.ZodString;
3089
+ color: z.ZodString;
3090
+ name: z.ZodString;
3091
+ type: z.ZodString;
3092
+ }, z.core.$strip>;
3093
+ team: z.ZodObject<{
3094
+ id: z.ZodString;
3095
+ key: z.ZodString;
3096
+ name: z.ZodString;
3097
+ }, z.core.$strip>;
3098
+ labels: z.ZodArray<z.ZodAny>;
3099
+ description: z.ZodOptional<z.ZodString>;
3100
+ descriptionData: z.ZodOptional<z.ZodString>;
3101
+ assignee: z.ZodOptional<z.ZodObject<{
3102
+ id: z.ZodString;
3103
+ name: z.ZodString;
3104
+ }, z.core.$strip>>;
3105
+ projectId: z.ZodOptional<z.ZodString>;
3106
+ }, z.core.$strip>;
3107
+ }, z.core.$strip>, z.ZodObject<{
3108
+ integrationType: z.ZodLiteral<IntegrationType.LINEAR>;
3109
+ actor: z.ZodObject<{
3110
+ id: z.ZodString;
3111
+ name: z.ZodString;
3112
+ email: z.ZodString;
3113
+ url: z.ZodString;
3114
+ type: z.ZodString;
3115
+ }, z.core.$strip>;
3116
+ createdAt: z.ZodString;
3117
+ url: z.ZodOptional<z.ZodString>;
3118
+ organizationId: z.ZodString;
3119
+ webhookTimestamp: z.ZodNumber;
3120
+ webhookId: z.ZodString;
3121
+ eventType: z.ZodLiteral<"issue.updated">;
3122
+ action: z.ZodLiteral<"update">;
3123
+ type: z.ZodLiteral<"Issue">;
3124
+ data: z.ZodObject<{
3125
+ id: z.ZodString;
3126
+ createdAt: z.ZodString;
3127
+ updatedAt: z.ZodString;
3128
+ number: z.ZodNumber;
3129
+ title: z.ZodString;
3130
+ priority: z.ZodNumber;
3131
+ sortOrder: z.ZodNumber;
3132
+ prioritySortOrder: z.ZodNumber;
3133
+ slaType: z.ZodString;
3134
+ addedToTeamAt: z.ZodString;
3135
+ trashed: z.ZodBoolean;
3136
+ labelIds: z.ZodArray<z.ZodString>;
3137
+ teamId: z.ZodString;
3138
+ previousIdentifiers: z.ZodArray<z.ZodString>;
3139
+ stateId: z.ZodString;
3140
+ reactionData: z.ZodArray<z.ZodAny>;
3141
+ priorityLabel: z.ZodString;
3142
+ botActor: z.ZodOptional<z.ZodString>;
3143
+ identifier: z.ZodString;
3144
+ url: z.ZodString;
3145
+ subscriberIds: z.ZodArray<z.ZodString>;
3146
+ state: z.ZodObject<{
3147
+ id: z.ZodString;
3148
+ color: z.ZodString;
3149
+ name: z.ZodString;
3150
+ type: z.ZodString;
3151
+ }, z.core.$strip>;
3152
+ team: z.ZodObject<{
3153
+ id: z.ZodString;
3154
+ key: z.ZodString;
3155
+ name: z.ZodString;
3156
+ }, z.core.$strip>;
3157
+ labels: z.ZodArray<z.ZodAny>;
3158
+ description: z.ZodOptional<z.ZodString>;
3159
+ descriptionData: z.ZodOptional<z.ZodString>;
3160
+ assignee: z.ZodOptional<z.ZodObject<{
3161
+ id: z.ZodString;
3162
+ name: z.ZodString;
3163
+ }, z.core.$strip>>;
3164
+ projectId: z.ZodOptional<z.ZodString>;
3165
+ }, z.core.$strip>;
3166
+ }, z.core.$strip>, z.ZodObject<{
3167
+ integrationType: z.ZodLiteral<IntegrationType.LINEAR>;
3168
+ actor: z.ZodObject<{
3169
+ id: z.ZodString;
3170
+ name: z.ZodString;
3171
+ email: z.ZodString;
3172
+ url: z.ZodString;
3173
+ type: z.ZodString;
3174
+ }, z.core.$strip>;
3175
+ createdAt: z.ZodString;
3176
+ url: z.ZodOptional<z.ZodString>;
3177
+ organizationId: z.ZodString;
3178
+ webhookTimestamp: z.ZodNumber;
3179
+ webhookId: z.ZodString;
3180
+ eventType: z.ZodLiteral<"comment.created">;
3181
+ action: z.ZodLiteral<"create">;
3182
+ type: z.ZodLiteral<"Comment">;
3183
+ data: z.ZodObject<{
3184
+ id: z.ZodString;
3185
+ body: z.ZodOptional<z.ZodString>;
3186
+ issueId: z.ZodOptional<z.ZodString>;
3187
+ }, z.core.$loose>;
3188
+ }, z.core.$strip>], "eventType">, z.ZodDiscriminatedUnion<[z.ZodObject<{
3189
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
3190
+ eventId: z.ZodString;
3191
+ createdAt: z.ZodString;
3192
+ eventType: z.ZodLiteral<"user.created">;
3193
+ user: z.ZodObject<{
3194
+ id: z.ZodString;
3195
+ email: z.ZodString;
3196
+ firstName: z.ZodOptional<z.ZodString>;
3197
+ lastName: z.ZodOptional<z.ZodString>;
3198
+ emailVerified: z.ZodBoolean;
3199
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
3200
+ }, z.core.$strip>;
3201
+ }, z.core.$strip>, z.ZodObject<{
3202
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
3203
+ eventId: z.ZodString;
3204
+ createdAt: z.ZodString;
3205
+ eventType: z.ZodLiteral<"user.updated">;
3206
+ user: z.ZodObject<{
3207
+ id: z.ZodString;
3208
+ email: z.ZodString;
3209
+ firstName: z.ZodOptional<z.ZodString>;
3210
+ lastName: z.ZodOptional<z.ZodString>;
3211
+ emailVerified: z.ZodBoolean;
3212
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
3213
+ }, z.core.$strip>;
3214
+ }, z.core.$strip>, z.ZodObject<{
3215
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
3216
+ eventId: z.ZodString;
3217
+ createdAt: z.ZodString;
3218
+ eventType: z.ZodLiteral<"user.deleted">;
3219
+ user: z.ZodObject<{
3220
+ id: z.ZodString;
3221
+ email: z.ZodString;
3222
+ firstName: z.ZodOptional<z.ZodString>;
3223
+ lastName: z.ZodOptional<z.ZodString>;
3224
+ emailVerified: z.ZodBoolean;
3225
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
3226
+ }, z.core.$strip>;
3227
+ }, z.core.$strip>, z.ZodObject<{
3228
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
3229
+ eventId: z.ZodString;
3230
+ createdAt: z.ZodString;
3231
+ eventType: z.ZodLiteral<"organization_membership.created">;
3232
+ membership: z.ZodObject<{
3233
+ id: z.ZodString;
3234
+ userId: z.ZodString;
3235
+ organizationId: z.ZodString;
3236
+ role: z.ZodObject<{
3237
+ slug: z.ZodString;
3238
+ }, z.core.$strip>;
3239
+ status: z.ZodString;
3240
+ }, z.core.$strip>;
3241
+ }, z.core.$strip>, z.ZodObject<{
3242
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
3243
+ eventId: z.ZodString;
3244
+ createdAt: z.ZodString;
3245
+ eventType: z.ZodLiteral<"organization_membership.updated">;
3246
+ membership: z.ZodObject<{
3247
+ id: z.ZodString;
3248
+ userId: z.ZodString;
3249
+ organizationId: z.ZodString;
3250
+ role: z.ZodObject<{
3251
+ slug: z.ZodString;
3252
+ }, z.core.$strip>;
3253
+ status: z.ZodString;
3254
+ }, z.core.$strip>;
3255
+ }, z.core.$strip>, z.ZodObject<{
3256
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
3257
+ eventId: z.ZodString;
3258
+ createdAt: z.ZodString;
3259
+ eventType: z.ZodLiteral<"organization_membership.deleted">;
3260
+ membership: z.ZodObject<{
3261
+ id: z.ZodString;
3262
+ userId: z.ZodString;
3263
+ organizationId: z.ZodString;
3264
+ role: z.ZodObject<{
3265
+ slug: z.ZodString;
3266
+ }, z.core.$strip>;
3267
+ status: z.ZodString;
3268
+ }, z.core.$strip>;
3269
+ }, z.core.$strip>, z.ZodObject<{
3270
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
3271
+ eventId: z.ZodString;
3272
+ createdAt: z.ZodString;
3273
+ eventType: z.ZodLiteral<"invitation.created">;
3274
+ invitation: z.ZodObject<{
3275
+ id: z.ZodString;
3276
+ email: z.ZodString;
3277
+ organizationId: z.ZodString;
3278
+ inviterEmail: z.ZodOptional<z.ZodString>;
3279
+ state: z.ZodString;
3280
+ acceptedAt: z.ZodOptional<z.ZodString>;
3281
+ }, z.core.$strip>;
3282
+ user: z.ZodOptional<z.ZodObject<{
3283
+ id: z.ZodString;
3284
+ email: z.ZodString;
3285
+ firstName: z.ZodOptional<z.ZodString>;
3286
+ lastName: z.ZodOptional<z.ZodString>;
3287
+ emailVerified: z.ZodBoolean;
3288
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
3289
+ }, z.core.$strip>>;
3290
+ }, z.core.$strip>, z.ZodObject<{
3291
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
3292
+ eventId: z.ZodString;
3293
+ createdAt: z.ZodString;
3294
+ eventType: z.ZodLiteral<"invitation.accepted">;
3295
+ invitation: z.ZodObject<{
3296
+ id: z.ZodString;
3297
+ email: z.ZodString;
3298
+ organizationId: z.ZodString;
3299
+ inviterEmail: z.ZodOptional<z.ZodString>;
3300
+ state: z.ZodString;
3301
+ acceptedAt: z.ZodOptional<z.ZodString>;
3302
+ }, z.core.$strip>;
3303
+ user: z.ZodOptional<z.ZodObject<{
3304
+ id: z.ZodString;
3305
+ email: z.ZodString;
3306
+ firstName: z.ZodOptional<z.ZodString>;
3307
+ lastName: z.ZodOptional<z.ZodString>;
3308
+ emailVerified: z.ZodBoolean;
3309
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
3310
+ }, z.core.$strip>>;
3311
+ }, z.core.$strip>, z.ZodObject<{
3312
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
3313
+ eventId: z.ZodString;
3314
+ createdAt: z.ZodString;
3315
+ eventType: z.ZodLiteral<"invitation.resent">;
3316
+ invitation: z.ZodObject<{
3317
+ id: z.ZodString;
3318
+ email: z.ZodString;
3319
+ organizationId: z.ZodString;
3320
+ inviterEmail: z.ZodOptional<z.ZodString>;
3321
+ state: z.ZodString;
3322
+ acceptedAt: z.ZodOptional<z.ZodString>;
3323
+ }, z.core.$strip>;
3324
+ user: z.ZodOptional<z.ZodObject<{
3325
+ id: z.ZodString;
3326
+ email: z.ZodString;
3327
+ firstName: z.ZodOptional<z.ZodString>;
3328
+ lastName: z.ZodOptional<z.ZodString>;
3329
+ emailVerified: z.ZodBoolean;
3330
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
3331
+ }, z.core.$strip>>;
3332
+ }, z.core.$strip>, z.ZodObject<{
3333
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
3334
+ eventId: z.ZodString;
3335
+ createdAt: z.ZodString;
3336
+ eventType: z.ZodLiteral<"invitation.revoked">;
3337
+ invitation: z.ZodObject<{
3338
+ id: z.ZodString;
3339
+ email: z.ZodString;
3340
+ organizationId: z.ZodString;
3341
+ inviterEmail: z.ZodOptional<z.ZodString>;
3342
+ state: z.ZodString;
3343
+ acceptedAt: z.ZodOptional<z.ZodString>;
3344
+ }, z.core.$strip>;
3345
+ user: z.ZodOptional<z.ZodObject<{
3346
+ id: z.ZodString;
3347
+ email: z.ZodString;
3348
+ firstName: z.ZodOptional<z.ZodString>;
3349
+ lastName: z.ZodOptional<z.ZodString>;
3350
+ emailVerified: z.ZodBoolean;
3351
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
3352
+ }, z.core.$strip>>;
3353
+ }, z.core.$strip>, z.ZodObject<{
3354
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
3355
+ eventId: z.ZodString;
3356
+ createdAt: z.ZodString;
3357
+ eventType: z.ZodLiteral<"organization.created">;
3358
+ organization: z.ZodObject<{
3359
+ id: z.ZodString;
3360
+ name: z.ZodString;
3361
+ }, z.core.$strip>;
3362
+ }, z.core.$strip>], "eventType">, z.ZodObject<{
3363
+ integrationType: z.ZodLiteral<IntegrationType.WEBHOOK>;
3364
+ eventType: z.ZodLiteral<"webhook">;
3365
+ body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3366
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
3367
+ method: z.ZodString;
3368
+ }, z.core.$strip>, z.ZodObject<{
3369
+ integrationType: z.ZodLiteral<IntegrationType.CRON_JOB>;
3370
+ eventType: z.ZodLiteral<"cron">;
3371
+ inputId: z.ZodString;
3372
+ isManualTrigger: z.ZodOptional<z.ZodBoolean>;
3373
+ manualContext: z.ZodOptional<z.ZodString>;
3374
+ }, z.core.$strip>, z.ZodObject<{
3375
+ integrationType: z.ZodEnum<typeof IntegrationType>;
3376
+ eventType: z.ZodLiteral<"manual_sample">;
3377
+ }, z.core.$strip>]>>;
3378
+ export declare const serializedEventSchema: z.ZodObject<{
3379
+ integrationType: z.ZodEnum<typeof IntegrationType>;
3380
+ eventType: z.ZodUnion<readonly [z.ZodEnum<{
3381
+ readonly MESSAGE: "message";
3382
+ readonly APP_MENTION: "app_mention";
3383
+ readonly REACTION_ADDED: "reaction_added";
3384
+ }>, z.ZodEnum<{
3385
+ readonly PUSH: "push";
3386
+ readonly PR_OPENED: "pull_request.opened";
3387
+ readonly PR_MERGED: "pull_request.merged";
3388
+ readonly PR_CLOSED: "pull_request.closed";
3389
+ readonly PR_SYNCHRONIZE: "pull_request.synchronize";
3390
+ }>, z.ZodEnum<{
3391
+ readonly ISSUE_CREATED: "issue.created";
3392
+ readonly ISSUE_UPDATED: "issue.updated";
3393
+ readonly COMMENT_CREATED: "comment.created";
3394
+ }>, z.ZodEnum<{
3395
+ readonly EMAIL_RECEIVED: "email.received";
3396
+ }>, z.ZodEnum<{
3397
+ readonly USER_CREATED: "user.created";
3398
+ readonly USER_UPDATED: "user.updated";
3399
+ readonly USER_DELETED: "user.deleted";
3400
+ readonly ORGANIZATION_CREATED: "organization.created";
3401
+ readonly ORGANIZATION_MEMBERSHIP_CREATED: "organization_membership.created";
3402
+ readonly ORGANIZATION_MEMBERSHIP_UPDATED: "organization_membership.updated";
3403
+ readonly ORGANIZATION_MEMBERSHIP_DELETED: "organization_membership.deleted";
3404
+ readonly INVITATION_CREATED: "invitation.created";
3405
+ readonly INVITATION_ACCEPTED: "invitation.accepted";
3406
+ readonly INVITATION_RESENT: "invitation.resent";
3407
+ readonly INVITATION_REVOKED: "invitation.revoked";
3408
+ }>, z.ZodLiteral<"webhook">, z.ZodLiteral<"cron">, z.ZodLiteral<"manual_sample">]>;
3409
+ formattedContent: z.ZodString;
3410
+ debugLog: z.ZodString;
3411
+ data: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
3412
+ integrationType: z.ZodLiteral<IntegrationType.SLACK>;
3413
+ channelId: z.ZodString;
3414
+ channelName: z.ZodNullable<z.ZodString>;
3415
+ userId: z.ZodString;
3416
+ userName: z.ZodNullable<z.ZodString>;
3417
+ text: z.ZodString;
3418
+ timestamp: z.ZodString;
3419
+ threadTs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3420
+ threadTimestamp: z.ZodNullable<z.ZodString>;
3421
+ teamId: z.ZodString;
3422
+ permalink: z.ZodNullable<z.ZodString>;
3423
+ channelType: z.ZodNullable<z.ZodEnum<typeof SlackChannelType>>;
3424
+ blocks: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
3425
+ attachments: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
3426
+ files: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
3427
+ eventType: z.ZodLiteral<"message">;
3428
+ }, z.core.$strip>, z.ZodObject<{
3429
+ integrationType: z.ZodLiteral<IntegrationType.SLACK>;
3430
+ channelId: z.ZodString;
3431
+ channelName: z.ZodNullable<z.ZodString>;
3432
+ userId: z.ZodString;
3433
+ userName: z.ZodNullable<z.ZodString>;
3434
+ text: z.ZodString;
3435
+ timestamp: z.ZodString;
3436
+ threadTs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3437
+ threadTimestamp: z.ZodNullable<z.ZodString>;
3438
+ teamId: z.ZodString;
3439
+ permalink: z.ZodNullable<z.ZodString>;
3440
+ channelType: z.ZodNullable<z.ZodEnum<typeof SlackChannelType>>;
3441
+ blocks: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
3442
+ attachments: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
3443
+ files: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
3444
+ eventType: z.ZodLiteral<"app_mention">;
3445
+ }, z.core.$strip>, z.ZodObject<{
3446
+ integrationType: z.ZodLiteral<IntegrationType.SLACK>;
3447
+ channelId: z.ZodString;
3448
+ channelName: z.ZodNullable<z.ZodString>;
3449
+ userId: z.ZodString;
3450
+ userName: z.ZodNullable<z.ZodString>;
3451
+ text: z.ZodString;
3452
+ timestamp: z.ZodString;
3453
+ threadTs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3454
+ threadTimestamp: z.ZodNullable<z.ZodString>;
3455
+ teamId: z.ZodString;
3456
+ permalink: z.ZodNullable<z.ZodString>;
3457
+ channelType: z.ZodNullable<z.ZodEnum<typeof SlackChannelType>>;
3458
+ blocks: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
3459
+ attachments: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
3460
+ files: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
3461
+ eventType: z.ZodLiteral<"reaction_added">;
3462
+ reaction: z.ZodString;
3463
+ itemType: z.ZodNullable<z.ZodString>;
3464
+ itemUserId: z.ZodNullable<z.ZodString>;
3465
+ itemChannelId: z.ZodNullable<z.ZodString>;
3466
+ itemTimestamp: z.ZodNullable<z.ZodString>;
3467
+ }, z.core.$strip>], "eventType">, z.ZodDiscriminatedUnion<[z.ZodObject<{
3468
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
3469
+ username: z.ZodString;
3470
+ installationId: z.ZodNumber;
3471
+ repositoryName: z.ZodString;
3472
+ repository: z.ZodObject<{
3473
+ id: z.ZodNumber;
3474
+ name: z.ZodString;
3475
+ owner: z.ZodString;
3476
+ defaultBranch: z.ZodString;
3477
+ }, z.core.$strip>;
3478
+ sender: z.ZodObject<{
3479
+ login: z.ZodString;
3480
+ email: z.ZodOptional<z.ZodString>;
3481
+ }, z.core.$strip>;
3482
+ eventType: z.ZodLiteral<"push">;
3483
+ branch: z.ZodString;
3484
+ commits: z.ZodArray<z.ZodObject<{
3485
+ sha: z.ZodString;
3486
+ message: z.ZodOptional<z.ZodString>;
3487
+ name: z.ZodString;
3488
+ fileDiffs: z.ZodArray<z.ZodObject<{
3489
+ filename: z.ZodString;
3490
+ diff: z.ZodString;
3491
+ }, z.core.$strip>>;
3492
+ }, z.core.$strip>>;
3493
+ pullRequest: z.ZodOptional<z.ZodUndefined>;
3494
+ }, z.core.$strip>, z.ZodObject<{
3495
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
3496
+ username: z.ZodString;
3497
+ installationId: z.ZodNumber;
3498
+ repositoryName: z.ZodString;
3499
+ repository: z.ZodObject<{
3500
+ id: z.ZodNumber;
3501
+ name: z.ZodString;
3502
+ owner: z.ZodString;
3503
+ defaultBranch: z.ZodString;
3504
+ }, z.core.$strip>;
3505
+ sender: z.ZodObject<{
3506
+ login: z.ZodString;
3507
+ email: z.ZodOptional<z.ZodString>;
3508
+ }, z.core.$strip>;
3509
+ pullRequest: z.ZodObject<{
3510
+ id: z.ZodString;
3511
+ number: z.ZodNumber;
3512
+ title: z.ZodString;
3513
+ body: z.ZodOptional<z.ZodString>;
3514
+ state: z.ZodEnum<{
3515
+ open: "open";
3516
+ closed: "closed";
3517
+ }>;
3518
+ merged: z.ZodBoolean;
3519
+ head: z.ZodObject<{
3520
+ ref: z.ZodString;
3521
+ sha: z.ZodString;
3522
+ }, z.core.$strip>;
3523
+ base: z.ZodObject<{
3524
+ ref: z.ZodString;
3525
+ sha: z.ZodString;
3526
+ }, z.core.$strip>;
3527
+ user: z.ZodObject<{
3528
+ login: z.ZodString;
3529
+ email: z.ZodOptional<z.ZodString>;
3530
+ }, z.core.$strip>;
3531
+ author: z.ZodOptional<z.ZodObject<{
3532
+ login: z.ZodString;
3533
+ email: z.ZodOptional<z.ZodString>;
3534
+ }, z.core.$strip>>;
3535
+ url: z.ZodOptional<z.ZodString>;
3536
+ }, z.core.$strip>;
3537
+ branch: z.ZodOptional<z.ZodString>;
3538
+ commits: z.ZodArray<z.ZodObject<{
3539
+ sha: z.ZodString;
3540
+ message: z.ZodOptional<z.ZodString>;
3541
+ name: z.ZodString;
3542
+ fileDiffs: z.ZodArray<z.ZodObject<{
3543
+ filename: z.ZodString;
3544
+ diff: z.ZodString;
3545
+ }, z.core.$strip>>;
3546
+ }, z.core.$strip>>;
3547
+ eventType: z.ZodLiteral<"pull_request.opened">;
3548
+ }, z.core.$strip>, z.ZodObject<{
3549
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
3550
+ username: z.ZodString;
3551
+ installationId: z.ZodNumber;
3552
+ repositoryName: z.ZodString;
3553
+ repository: z.ZodObject<{
3554
+ id: z.ZodNumber;
3555
+ name: z.ZodString;
3556
+ owner: z.ZodString;
3557
+ defaultBranch: z.ZodString;
3558
+ }, z.core.$strip>;
3559
+ sender: z.ZodObject<{
3560
+ login: z.ZodString;
3561
+ email: z.ZodOptional<z.ZodString>;
3562
+ }, z.core.$strip>;
3563
+ pullRequest: z.ZodObject<{
3564
+ id: z.ZodString;
3565
+ number: z.ZodNumber;
3566
+ title: z.ZodString;
3567
+ body: z.ZodOptional<z.ZodString>;
3568
+ state: z.ZodEnum<{
3569
+ open: "open";
3570
+ closed: "closed";
3571
+ }>;
3572
+ merged: z.ZodBoolean;
3573
+ head: z.ZodObject<{
3574
+ ref: z.ZodString;
3575
+ sha: z.ZodString;
3576
+ }, z.core.$strip>;
3577
+ base: z.ZodObject<{
3578
+ ref: z.ZodString;
3579
+ sha: z.ZodString;
3580
+ }, z.core.$strip>;
3581
+ user: z.ZodObject<{
3582
+ login: z.ZodString;
3583
+ email: z.ZodOptional<z.ZodString>;
3584
+ }, z.core.$strip>;
3585
+ author: z.ZodOptional<z.ZodObject<{
3586
+ login: z.ZodString;
3587
+ email: z.ZodOptional<z.ZodString>;
3588
+ }, z.core.$strip>>;
3589
+ url: z.ZodOptional<z.ZodString>;
3590
+ }, z.core.$strip>;
3591
+ branch: z.ZodOptional<z.ZodString>;
3592
+ commits: z.ZodArray<z.ZodObject<{
3593
+ sha: z.ZodString;
3594
+ message: z.ZodOptional<z.ZodString>;
3595
+ name: z.ZodString;
3596
+ fileDiffs: z.ZodArray<z.ZodObject<{
3597
+ filename: z.ZodString;
3598
+ diff: z.ZodString;
3599
+ }, z.core.$strip>>;
3600
+ }, z.core.$strip>>;
3601
+ eventType: z.ZodLiteral<"pull_request.synchronize">;
3602
+ }, z.core.$strip>, z.ZodObject<{
3603
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
3604
+ username: z.ZodString;
3605
+ installationId: z.ZodNumber;
3606
+ repositoryName: z.ZodString;
3607
+ repository: z.ZodObject<{
3608
+ id: z.ZodNumber;
3609
+ name: z.ZodString;
3610
+ owner: z.ZodString;
3611
+ defaultBranch: z.ZodString;
3612
+ }, z.core.$strip>;
3613
+ sender: z.ZodObject<{
3614
+ login: z.ZodString;
3615
+ email: z.ZodOptional<z.ZodString>;
3616
+ }, z.core.$strip>;
3617
+ pullRequest: z.ZodObject<{
3618
+ id: z.ZodString;
3619
+ number: z.ZodNumber;
3620
+ title: z.ZodString;
3621
+ body: z.ZodOptional<z.ZodString>;
3622
+ state: z.ZodEnum<{
3623
+ open: "open";
3624
+ closed: "closed";
3625
+ }>;
3626
+ merged: z.ZodBoolean;
3627
+ head: z.ZodObject<{
3628
+ ref: z.ZodString;
3629
+ sha: z.ZodString;
3630
+ }, z.core.$strip>;
3631
+ base: z.ZodObject<{
3632
+ ref: z.ZodString;
3633
+ sha: z.ZodString;
3634
+ }, z.core.$strip>;
3635
+ user: z.ZodObject<{
3636
+ login: z.ZodString;
3637
+ email: z.ZodOptional<z.ZodString>;
3638
+ }, z.core.$strip>;
3639
+ author: z.ZodOptional<z.ZodObject<{
3640
+ login: z.ZodString;
3641
+ email: z.ZodOptional<z.ZodString>;
3642
+ }, z.core.$strip>>;
3643
+ url: z.ZodOptional<z.ZodString>;
3644
+ }, z.core.$strip>;
3645
+ branch: z.ZodOptional<z.ZodString>;
3646
+ commits: z.ZodArray<z.ZodObject<{
3647
+ sha: z.ZodString;
3648
+ message: z.ZodOptional<z.ZodString>;
3649
+ name: z.ZodString;
3650
+ fileDiffs: z.ZodArray<z.ZodObject<{
3651
+ filename: z.ZodString;
3652
+ diff: z.ZodString;
3653
+ }, z.core.$strip>>;
3654
+ }, z.core.$strip>>;
3655
+ eventType: z.ZodLiteral<"pull_request.closed">;
3656
+ }, z.core.$strip>, z.ZodObject<{
3657
+ integrationType: z.ZodLiteral<IntegrationType.GITHUB>;
3658
+ username: z.ZodString;
3659
+ installationId: z.ZodNumber;
3660
+ repositoryName: z.ZodString;
3661
+ repository: z.ZodObject<{
3662
+ id: z.ZodNumber;
3663
+ name: z.ZodString;
3664
+ owner: z.ZodString;
3665
+ defaultBranch: z.ZodString;
3666
+ }, z.core.$strip>;
3667
+ sender: z.ZodObject<{
3668
+ login: z.ZodString;
3669
+ email: z.ZodOptional<z.ZodString>;
3670
+ }, z.core.$strip>;
3671
+ pullRequest: z.ZodObject<{
3672
+ id: z.ZodString;
3673
+ number: z.ZodNumber;
3674
+ title: z.ZodString;
3675
+ body: z.ZodOptional<z.ZodString>;
3676
+ state: z.ZodEnum<{
3677
+ open: "open";
3678
+ closed: "closed";
3679
+ }>;
3680
+ merged: z.ZodBoolean;
3681
+ head: z.ZodObject<{
3682
+ ref: z.ZodString;
3683
+ sha: z.ZodString;
3684
+ }, z.core.$strip>;
3685
+ base: z.ZodObject<{
3686
+ ref: z.ZodString;
3687
+ sha: z.ZodString;
3688
+ }, z.core.$strip>;
3689
+ user: z.ZodObject<{
3690
+ login: z.ZodString;
3691
+ email: z.ZodOptional<z.ZodString>;
3692
+ }, z.core.$strip>;
3693
+ author: z.ZodOptional<z.ZodObject<{
3694
+ login: z.ZodString;
3695
+ email: z.ZodOptional<z.ZodString>;
3696
+ }, z.core.$strip>>;
3697
+ url: z.ZodOptional<z.ZodString>;
3698
+ }, z.core.$strip>;
3699
+ branch: z.ZodOptional<z.ZodString>;
3700
+ commits: z.ZodArray<z.ZodObject<{
3701
+ sha: z.ZodString;
3702
+ message: z.ZodOptional<z.ZodString>;
3703
+ name: z.ZodString;
3704
+ fileDiffs: z.ZodArray<z.ZodObject<{
3705
+ filename: z.ZodString;
3706
+ diff: z.ZodString;
3707
+ }, z.core.$strip>>;
3708
+ }, z.core.$strip>>;
3709
+ eventType: z.ZodLiteral<"pull_request.merged">;
3710
+ }, z.core.$strip>], "eventType">, z.ZodObject<{
3711
+ integrationType: z.ZodLiteral<IntegrationType.GMAIL>;
3712
+ eventType: z.ZodEnum<{
3713
+ readonly EMAIL_RECEIVED: "email.received";
3714
+ }>;
3715
+ id: z.ZodString;
3716
+ threadId: z.ZodString;
3717
+ subject: z.ZodString;
3718
+ from: z.ZodString;
3719
+ to: z.ZodString;
3720
+ date: z.ZodString;
3721
+ internalDate: z.ZodString;
3722
+ messageId: z.ZodString;
3723
+ body: z.ZodString;
3724
+ snippet: z.ZodString;
3725
+ labelIds: z.ZodArray<z.ZodString>;
3726
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
3727
+ attachmentId: z.ZodString;
3728
+ filename: z.ZodString;
3729
+ mimeType: z.ZodString;
3730
+ contentId: z.ZodOptional<z.ZodString>;
3731
+ isInline: z.ZodBoolean;
3732
+ }, z.core.$strip>>>;
3733
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
3734
+ integrationType: z.ZodLiteral<IntegrationType.LINEAR>;
3735
+ actor: z.ZodObject<{
3736
+ id: z.ZodString;
3737
+ name: z.ZodString;
3738
+ email: z.ZodString;
3739
+ url: z.ZodString;
3740
+ type: z.ZodString;
3741
+ }, z.core.$strip>;
3742
+ createdAt: z.ZodString;
3743
+ url: z.ZodOptional<z.ZodString>;
3744
+ organizationId: z.ZodString;
3745
+ webhookTimestamp: z.ZodNumber;
3746
+ webhookId: z.ZodString;
3747
+ eventType: z.ZodLiteral<"issue.created">;
3748
+ action: z.ZodLiteral<"create">;
3749
+ type: z.ZodLiteral<"Issue">;
3750
+ data: z.ZodObject<{
3751
+ id: z.ZodString;
3752
+ createdAt: z.ZodString;
3753
+ updatedAt: z.ZodString;
3754
+ number: z.ZodNumber;
3755
+ title: z.ZodString;
3756
+ priority: z.ZodNumber;
3757
+ sortOrder: z.ZodNumber;
3758
+ prioritySortOrder: z.ZodNumber;
3759
+ slaType: z.ZodString;
3760
+ addedToTeamAt: z.ZodString;
3761
+ trashed: z.ZodBoolean;
3762
+ labelIds: z.ZodArray<z.ZodString>;
3763
+ teamId: z.ZodString;
3764
+ previousIdentifiers: z.ZodArray<z.ZodString>;
3765
+ stateId: z.ZodString;
3766
+ reactionData: z.ZodArray<z.ZodAny>;
3767
+ priorityLabel: z.ZodString;
3768
+ botActor: z.ZodOptional<z.ZodString>;
3769
+ identifier: z.ZodString;
3770
+ url: z.ZodString;
3771
+ subscriberIds: z.ZodArray<z.ZodString>;
3772
+ state: z.ZodObject<{
3773
+ id: z.ZodString;
3774
+ color: z.ZodString;
3775
+ name: z.ZodString;
3776
+ type: z.ZodString;
3777
+ }, z.core.$strip>;
3778
+ team: z.ZodObject<{
3779
+ id: z.ZodString;
3780
+ key: z.ZodString;
3781
+ name: z.ZodString;
3782
+ }, z.core.$strip>;
3783
+ labels: z.ZodArray<z.ZodAny>;
3784
+ description: z.ZodOptional<z.ZodString>;
3785
+ descriptionData: z.ZodOptional<z.ZodString>;
3786
+ assignee: z.ZodOptional<z.ZodObject<{
3787
+ id: z.ZodString;
3788
+ name: z.ZodString;
3789
+ }, z.core.$strip>>;
3790
+ projectId: z.ZodOptional<z.ZodString>;
3791
+ }, z.core.$strip>;
3792
+ }, z.core.$strip>, z.ZodObject<{
3793
+ integrationType: z.ZodLiteral<IntegrationType.LINEAR>;
3794
+ actor: z.ZodObject<{
3795
+ id: z.ZodString;
3796
+ name: z.ZodString;
3797
+ email: z.ZodString;
3798
+ url: z.ZodString;
3799
+ type: z.ZodString;
3800
+ }, z.core.$strip>;
3801
+ createdAt: z.ZodString;
3802
+ url: z.ZodOptional<z.ZodString>;
3803
+ organizationId: z.ZodString;
3804
+ webhookTimestamp: z.ZodNumber;
3805
+ webhookId: z.ZodString;
3806
+ eventType: z.ZodLiteral<"issue.updated">;
3807
+ action: z.ZodLiteral<"update">;
3808
+ type: z.ZodLiteral<"Issue">;
3809
+ data: z.ZodObject<{
3810
+ id: z.ZodString;
3811
+ createdAt: z.ZodString;
3812
+ updatedAt: z.ZodString;
3813
+ number: z.ZodNumber;
3814
+ title: z.ZodString;
3815
+ priority: z.ZodNumber;
3816
+ sortOrder: z.ZodNumber;
3817
+ prioritySortOrder: z.ZodNumber;
3818
+ slaType: z.ZodString;
3819
+ addedToTeamAt: z.ZodString;
3820
+ trashed: z.ZodBoolean;
3821
+ labelIds: z.ZodArray<z.ZodString>;
3822
+ teamId: z.ZodString;
3823
+ previousIdentifiers: z.ZodArray<z.ZodString>;
3824
+ stateId: z.ZodString;
3825
+ reactionData: z.ZodArray<z.ZodAny>;
3826
+ priorityLabel: z.ZodString;
3827
+ botActor: z.ZodOptional<z.ZodString>;
3828
+ identifier: z.ZodString;
3829
+ url: z.ZodString;
3830
+ subscriberIds: z.ZodArray<z.ZodString>;
3831
+ state: z.ZodObject<{
3832
+ id: z.ZodString;
3833
+ color: z.ZodString;
3834
+ name: z.ZodString;
3835
+ type: z.ZodString;
3836
+ }, z.core.$strip>;
3837
+ team: z.ZodObject<{
3838
+ id: z.ZodString;
3839
+ key: z.ZodString;
3840
+ name: z.ZodString;
3841
+ }, z.core.$strip>;
3842
+ labels: z.ZodArray<z.ZodAny>;
3843
+ description: z.ZodOptional<z.ZodString>;
3844
+ descriptionData: z.ZodOptional<z.ZodString>;
3845
+ assignee: z.ZodOptional<z.ZodObject<{
3846
+ id: z.ZodString;
3847
+ name: z.ZodString;
3848
+ }, z.core.$strip>>;
3849
+ projectId: z.ZodOptional<z.ZodString>;
3850
+ }, z.core.$strip>;
3851
+ }, z.core.$strip>, z.ZodObject<{
3852
+ integrationType: z.ZodLiteral<IntegrationType.LINEAR>;
3853
+ actor: z.ZodObject<{
3854
+ id: z.ZodString;
3855
+ name: z.ZodString;
3856
+ email: z.ZodString;
3857
+ url: z.ZodString;
3858
+ type: z.ZodString;
3859
+ }, z.core.$strip>;
3860
+ createdAt: z.ZodString;
3861
+ url: z.ZodOptional<z.ZodString>;
3862
+ organizationId: z.ZodString;
3863
+ webhookTimestamp: z.ZodNumber;
3864
+ webhookId: z.ZodString;
3865
+ eventType: z.ZodLiteral<"comment.created">;
3866
+ action: z.ZodLiteral<"create">;
3867
+ type: z.ZodLiteral<"Comment">;
3868
+ data: z.ZodObject<{
3869
+ id: z.ZodString;
3870
+ body: z.ZodOptional<z.ZodString>;
3871
+ issueId: z.ZodOptional<z.ZodString>;
3872
+ }, z.core.$loose>;
3873
+ }, z.core.$strip>], "eventType">, z.ZodDiscriminatedUnion<[z.ZodObject<{
3874
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
3875
+ eventId: z.ZodString;
3876
+ createdAt: z.ZodString;
3877
+ eventType: z.ZodLiteral<"user.created">;
3878
+ user: z.ZodObject<{
3879
+ id: z.ZodString;
3880
+ email: z.ZodString;
3881
+ firstName: z.ZodOptional<z.ZodString>;
3882
+ lastName: z.ZodOptional<z.ZodString>;
3883
+ emailVerified: z.ZodBoolean;
3884
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
3885
+ }, z.core.$strip>;
3886
+ }, z.core.$strip>, z.ZodObject<{
3887
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
3888
+ eventId: z.ZodString;
3889
+ createdAt: z.ZodString;
3890
+ eventType: z.ZodLiteral<"user.updated">;
3891
+ user: z.ZodObject<{
3892
+ id: z.ZodString;
3893
+ email: z.ZodString;
3894
+ firstName: z.ZodOptional<z.ZodString>;
3895
+ lastName: z.ZodOptional<z.ZodString>;
3896
+ emailVerified: z.ZodBoolean;
3897
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
3898
+ }, z.core.$strip>;
3899
+ }, z.core.$strip>, z.ZodObject<{
3900
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
3901
+ eventId: z.ZodString;
3902
+ createdAt: z.ZodString;
3903
+ eventType: z.ZodLiteral<"user.deleted">;
3904
+ user: z.ZodObject<{
3905
+ id: z.ZodString;
3906
+ email: z.ZodString;
3907
+ firstName: z.ZodOptional<z.ZodString>;
3908
+ lastName: z.ZodOptional<z.ZodString>;
3909
+ emailVerified: z.ZodBoolean;
3910
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
3911
+ }, z.core.$strip>;
3912
+ }, z.core.$strip>, z.ZodObject<{
3913
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
3914
+ eventId: z.ZodString;
3915
+ createdAt: z.ZodString;
3916
+ eventType: z.ZodLiteral<"organization_membership.created">;
3917
+ membership: z.ZodObject<{
3918
+ id: z.ZodString;
3919
+ userId: z.ZodString;
3920
+ organizationId: z.ZodString;
3921
+ role: z.ZodObject<{
3922
+ slug: z.ZodString;
3923
+ }, z.core.$strip>;
3924
+ status: z.ZodString;
3925
+ }, z.core.$strip>;
3926
+ }, z.core.$strip>, z.ZodObject<{
3927
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
3928
+ eventId: z.ZodString;
3929
+ createdAt: z.ZodString;
3930
+ eventType: z.ZodLiteral<"organization_membership.updated">;
3931
+ membership: z.ZodObject<{
3932
+ id: z.ZodString;
3933
+ userId: z.ZodString;
3934
+ organizationId: z.ZodString;
3935
+ role: z.ZodObject<{
3936
+ slug: z.ZodString;
3937
+ }, z.core.$strip>;
3938
+ status: z.ZodString;
3939
+ }, z.core.$strip>;
3940
+ }, z.core.$strip>, z.ZodObject<{
3941
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
3942
+ eventId: z.ZodString;
3943
+ createdAt: z.ZodString;
3944
+ eventType: z.ZodLiteral<"organization_membership.deleted">;
3945
+ membership: z.ZodObject<{
3946
+ id: z.ZodString;
3947
+ userId: z.ZodString;
3948
+ organizationId: z.ZodString;
3949
+ role: z.ZodObject<{
3950
+ slug: z.ZodString;
3951
+ }, z.core.$strip>;
3952
+ status: z.ZodString;
3953
+ }, z.core.$strip>;
3954
+ }, z.core.$strip>, z.ZodObject<{
3955
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
3956
+ eventId: z.ZodString;
3957
+ createdAt: z.ZodString;
3958
+ eventType: z.ZodLiteral<"invitation.created">;
3959
+ invitation: z.ZodObject<{
3960
+ id: z.ZodString;
3961
+ email: z.ZodString;
3962
+ organizationId: z.ZodString;
3963
+ inviterEmail: z.ZodOptional<z.ZodString>;
3964
+ state: z.ZodString;
3965
+ acceptedAt: z.ZodOptional<z.ZodString>;
3966
+ }, z.core.$strip>;
3967
+ user: z.ZodOptional<z.ZodObject<{
3968
+ id: z.ZodString;
3969
+ email: z.ZodString;
3970
+ firstName: z.ZodOptional<z.ZodString>;
3971
+ lastName: z.ZodOptional<z.ZodString>;
3972
+ emailVerified: z.ZodBoolean;
3973
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
3974
+ }, z.core.$strip>>;
3975
+ }, z.core.$strip>, z.ZodObject<{
3976
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
3977
+ eventId: z.ZodString;
3978
+ createdAt: z.ZodString;
3979
+ eventType: z.ZodLiteral<"invitation.accepted">;
3980
+ invitation: z.ZodObject<{
3981
+ id: z.ZodString;
3982
+ email: z.ZodString;
3983
+ organizationId: z.ZodString;
3984
+ inviterEmail: z.ZodOptional<z.ZodString>;
3985
+ state: z.ZodString;
3986
+ acceptedAt: z.ZodOptional<z.ZodString>;
3987
+ }, z.core.$strip>;
3988
+ user: z.ZodOptional<z.ZodObject<{
3989
+ id: z.ZodString;
3990
+ email: z.ZodString;
3991
+ firstName: z.ZodOptional<z.ZodString>;
3992
+ lastName: z.ZodOptional<z.ZodString>;
3993
+ emailVerified: z.ZodBoolean;
3994
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
3995
+ }, z.core.$strip>>;
3996
+ }, z.core.$strip>, z.ZodObject<{
3997
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
3998
+ eventId: z.ZodString;
3999
+ createdAt: z.ZodString;
4000
+ eventType: z.ZodLiteral<"invitation.resent">;
4001
+ invitation: z.ZodObject<{
4002
+ id: z.ZodString;
4003
+ email: z.ZodString;
4004
+ organizationId: z.ZodString;
4005
+ inviterEmail: z.ZodOptional<z.ZodString>;
4006
+ state: z.ZodString;
4007
+ acceptedAt: z.ZodOptional<z.ZodString>;
4008
+ }, z.core.$strip>;
4009
+ user: z.ZodOptional<z.ZodObject<{
4010
+ id: z.ZodString;
4011
+ email: z.ZodString;
4012
+ firstName: z.ZodOptional<z.ZodString>;
4013
+ lastName: z.ZodOptional<z.ZodString>;
4014
+ emailVerified: z.ZodBoolean;
4015
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
4016
+ }, z.core.$strip>>;
4017
+ }, z.core.$strip>, z.ZodObject<{
4018
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
4019
+ eventId: z.ZodString;
4020
+ createdAt: z.ZodString;
4021
+ eventType: z.ZodLiteral<"invitation.revoked">;
4022
+ invitation: z.ZodObject<{
4023
+ id: z.ZodString;
4024
+ email: z.ZodString;
4025
+ organizationId: z.ZodString;
4026
+ inviterEmail: z.ZodOptional<z.ZodString>;
4027
+ state: z.ZodString;
4028
+ acceptedAt: z.ZodOptional<z.ZodString>;
4029
+ }, z.core.$strip>;
4030
+ user: z.ZodOptional<z.ZodObject<{
4031
+ id: z.ZodString;
4032
+ email: z.ZodString;
4033
+ firstName: z.ZodOptional<z.ZodString>;
4034
+ lastName: z.ZodOptional<z.ZodString>;
4035
+ emailVerified: z.ZodBoolean;
4036
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
4037
+ }, z.core.$strip>>;
4038
+ }, z.core.$strip>, z.ZodObject<{
4039
+ integrationType: z.ZodLiteral<IntegrationType.WORKOS>;
4040
+ eventId: z.ZodString;
4041
+ createdAt: z.ZodString;
4042
+ eventType: z.ZodLiteral<"organization.created">;
4043
+ organization: z.ZodObject<{
4044
+ id: z.ZodString;
4045
+ name: z.ZodString;
4046
+ }, z.core.$strip>;
4047
+ }, z.core.$strip>], "eventType">, z.ZodObject<{
4048
+ integrationType: z.ZodLiteral<IntegrationType.WEBHOOK>;
4049
+ eventType: z.ZodLiteral<"webhook">;
4050
+ body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4051
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
4052
+ method: z.ZodString;
4053
+ }, z.core.$strip>, z.ZodObject<{
4054
+ integrationType: z.ZodLiteral<IntegrationType.CRON_JOB>;
4055
+ eventType: z.ZodLiteral<"cron">;
4056
+ inputId: z.ZodString;
4057
+ isManualTrigger: z.ZodOptional<z.ZodBoolean>;
4058
+ manualContext: z.ZodOptional<z.ZodString>;
4059
+ }, z.core.$strip>, z.ZodObject<{
4060
+ integrationType: z.ZodEnum<typeof IntegrationType>;
4061
+ eventType: z.ZodLiteral<"manual_sample">;
4062
+ }, z.core.$strip>]>;
4063
+ }, z.core.$strip>;
4064
+ export type SerializedEvent = z.infer<typeof serializedEventSchema>;
4065
+ export {};