@corsair-dev/jira 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/LICENSE +191 -0
  2. package/dist/client.d.ts +41 -0
  3. package/dist/client.d.ts.map +1 -0
  4. package/dist/endpoints/comments.d.ts +7 -0
  5. package/dist/endpoints/comments.d.ts.map +1 -0
  6. package/dist/endpoints/index.d.ts +582 -0
  7. package/dist/endpoints/index.d.ts.map +1 -0
  8. package/dist/endpoints/issues.d.ts +16 -0
  9. package/dist/endpoints/issues.d.ts.map +1 -0
  10. package/dist/endpoints/projects.d.ts +6 -0
  11. package/dist/endpoints/projects.d.ts.map +1 -0
  12. package/dist/endpoints/sprints.d.ts +6 -0
  13. package/dist/endpoints/sprints.d.ts.map +1 -0
  14. package/dist/endpoints/types.d.ts +5540 -0
  15. package/dist/endpoints/types.d.ts.map +1 -0
  16. package/dist/endpoints/users.d.ts +7 -0
  17. package/dist/endpoints/users.d.ts.map +1 -0
  18. package/dist/error-handlers.d.ts +28 -0
  19. package/dist/error-handlers.d.ts.map +1 -0
  20. package/dist/index.d.ts +3028 -0
  21. package/dist/index.d.ts.map +1 -0
  22. package/dist/index.js +1 -0
  23. package/dist/schema/database.d.ts +197 -0
  24. package/dist/schema/database.d.ts.map +1 -0
  25. package/dist/schema/index.d.ts +196 -0
  26. package/dist/schema/index.d.ts.map +1 -0
  27. package/dist/tsup.config.d.ts +3 -0
  28. package/dist/tsup.config.d.ts.map +1 -0
  29. package/dist/webhooks/index.d.ts +274 -0
  30. package/dist/webhooks/index.d.ts.map +1 -0
  31. package/dist/webhooks/newIssue.d.ts +3 -0
  32. package/dist/webhooks/newIssue.d.ts.map +1 -0
  33. package/dist/webhooks/newProject.d.ts +3 -0
  34. package/dist/webhooks/newProject.d.ts.map +1 -0
  35. package/dist/webhooks/types.d.ts +1818 -0
  36. package/dist/webhooks/types.d.ts.map +1 -0
  37. package/dist/webhooks/updatedIssue.d.ts +3 -0
  38. package/dist/webhooks/updatedIssue.d.ts.map +1 -0
  39. package/package.json +40 -0
@@ -0,0 +1,1818 @@
1
+ import { z } from 'zod';
2
+ import type { CorsairWebhookMatcher, WebhookRequest } from 'corsair/core';
3
+ export interface JiraWebhookPayload {
4
+ webhookEvent: string;
5
+ timestamp?: number;
6
+ }
7
+ export declare const NewIssueEventSchema: z.ZodObject<{
8
+ webhookEvent: z.ZodLiteral<"jira:issue_created">;
9
+ timestamp: z.ZodOptional<z.ZodNumber>;
10
+ issue: z.ZodOptional<z.ZodObject<{
11
+ id: z.ZodOptional<z.ZodString>;
12
+ key: z.ZodOptional<z.ZodString>;
13
+ self: z.ZodOptional<z.ZodString>;
14
+ fields: z.ZodOptional<z.ZodObject<{
15
+ summary: z.ZodOptional<z.ZodString>;
16
+ status: z.ZodOptional<z.ZodObject<{
17
+ id: z.ZodOptional<z.ZodString>;
18
+ name: z.ZodOptional<z.ZodString>;
19
+ statusCategory: z.ZodOptional<z.ZodObject<{
20
+ key: z.ZodOptional<z.ZodString>;
21
+ name: z.ZodOptional<z.ZodString>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ key?: string | undefined;
24
+ name?: string | undefined;
25
+ }, {
26
+ key?: string | undefined;
27
+ name?: string | undefined;
28
+ }>>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ id?: string | undefined;
31
+ name?: string | undefined;
32
+ statusCategory?: {
33
+ key?: string | undefined;
34
+ name?: string | undefined;
35
+ } | undefined;
36
+ }, {
37
+ id?: string | undefined;
38
+ name?: string | undefined;
39
+ statusCategory?: {
40
+ key?: string | undefined;
41
+ name?: string | undefined;
42
+ } | undefined;
43
+ }>>;
44
+ assignee: z.ZodOptional<z.ZodNullable<z.ZodObject<{
45
+ accountId: z.ZodOptional<z.ZodString>;
46
+ displayName: z.ZodOptional<z.ZodString>;
47
+ emailAddress: z.ZodOptional<z.ZodString>;
48
+ }, "strip", z.ZodTypeAny, {
49
+ accountId?: string | undefined;
50
+ displayName?: string | undefined;
51
+ emailAddress?: string | undefined;
52
+ }, {
53
+ accountId?: string | undefined;
54
+ displayName?: string | undefined;
55
+ emailAddress?: string | undefined;
56
+ }>>>;
57
+ reporter: z.ZodOptional<z.ZodObject<{
58
+ accountId: z.ZodOptional<z.ZodString>;
59
+ displayName: z.ZodOptional<z.ZodString>;
60
+ emailAddress: z.ZodOptional<z.ZodString>;
61
+ }, "strip", z.ZodTypeAny, {
62
+ accountId?: string | undefined;
63
+ displayName?: string | undefined;
64
+ emailAddress?: string | undefined;
65
+ }, {
66
+ accountId?: string | undefined;
67
+ displayName?: string | undefined;
68
+ emailAddress?: string | undefined;
69
+ }>>;
70
+ priority: z.ZodOptional<z.ZodNullable<z.ZodObject<{
71
+ id: z.ZodOptional<z.ZodString>;
72
+ name: z.ZodOptional<z.ZodString>;
73
+ }, "strip", z.ZodTypeAny, {
74
+ id?: string | undefined;
75
+ name?: string | undefined;
76
+ }, {
77
+ id?: string | undefined;
78
+ name?: string | undefined;
79
+ }>>>;
80
+ issuetype: z.ZodOptional<z.ZodObject<{
81
+ id: z.ZodOptional<z.ZodString>;
82
+ name: z.ZodOptional<z.ZodString>;
83
+ subtask: z.ZodOptional<z.ZodBoolean>;
84
+ }, "strip", z.ZodTypeAny, {
85
+ id?: string | undefined;
86
+ name?: string | undefined;
87
+ subtask?: boolean | undefined;
88
+ }, {
89
+ id?: string | undefined;
90
+ name?: string | undefined;
91
+ subtask?: boolean | undefined;
92
+ }>>;
93
+ project: z.ZodOptional<z.ZodObject<{
94
+ id: z.ZodOptional<z.ZodString>;
95
+ key: z.ZodOptional<z.ZodString>;
96
+ name: z.ZodOptional<z.ZodString>;
97
+ }, "strip", z.ZodTypeAny, {
98
+ key?: string | undefined;
99
+ id?: string | undefined;
100
+ name?: string | undefined;
101
+ }, {
102
+ key?: string | undefined;
103
+ id?: string | undefined;
104
+ name?: string | undefined;
105
+ }>>;
106
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
107
+ created: z.ZodOptional<z.ZodString>;
108
+ updated: z.ZodOptional<z.ZodString>;
109
+ }, "strip", z.ZodTypeAny, {
110
+ priority?: {
111
+ id?: string | undefined;
112
+ name?: string | undefined;
113
+ } | null | undefined;
114
+ status?: {
115
+ id?: string | undefined;
116
+ name?: string | undefined;
117
+ statusCategory?: {
118
+ key?: string | undefined;
119
+ name?: string | undefined;
120
+ } | undefined;
121
+ } | undefined;
122
+ summary?: string | undefined;
123
+ assignee?: {
124
+ accountId?: string | undefined;
125
+ displayName?: string | undefined;
126
+ emailAddress?: string | undefined;
127
+ } | null | undefined;
128
+ reporter?: {
129
+ accountId?: string | undefined;
130
+ displayName?: string | undefined;
131
+ emailAddress?: string | undefined;
132
+ } | undefined;
133
+ issuetype?: {
134
+ id?: string | undefined;
135
+ name?: string | undefined;
136
+ subtask?: boolean | undefined;
137
+ } | undefined;
138
+ project?: {
139
+ key?: string | undefined;
140
+ id?: string | undefined;
141
+ name?: string | undefined;
142
+ } | undefined;
143
+ labels?: string[] | undefined;
144
+ created?: string | undefined;
145
+ updated?: string | undefined;
146
+ }, {
147
+ priority?: {
148
+ id?: string | undefined;
149
+ name?: string | undefined;
150
+ } | null | undefined;
151
+ status?: {
152
+ id?: string | undefined;
153
+ name?: string | undefined;
154
+ statusCategory?: {
155
+ key?: string | undefined;
156
+ name?: string | undefined;
157
+ } | undefined;
158
+ } | undefined;
159
+ summary?: string | undefined;
160
+ assignee?: {
161
+ accountId?: string | undefined;
162
+ displayName?: string | undefined;
163
+ emailAddress?: string | undefined;
164
+ } | null | undefined;
165
+ reporter?: {
166
+ accountId?: string | undefined;
167
+ displayName?: string | undefined;
168
+ emailAddress?: string | undefined;
169
+ } | undefined;
170
+ issuetype?: {
171
+ id?: string | undefined;
172
+ name?: string | undefined;
173
+ subtask?: boolean | undefined;
174
+ } | undefined;
175
+ project?: {
176
+ key?: string | undefined;
177
+ id?: string | undefined;
178
+ name?: string | undefined;
179
+ } | undefined;
180
+ labels?: string[] | undefined;
181
+ created?: string | undefined;
182
+ updated?: string | undefined;
183
+ }>>;
184
+ }, "strip", z.ZodTypeAny, {
185
+ key?: string | undefined;
186
+ id?: string | undefined;
187
+ self?: string | undefined;
188
+ fields?: {
189
+ priority?: {
190
+ id?: string | undefined;
191
+ name?: string | undefined;
192
+ } | null | undefined;
193
+ status?: {
194
+ id?: string | undefined;
195
+ name?: string | undefined;
196
+ statusCategory?: {
197
+ key?: string | undefined;
198
+ name?: string | undefined;
199
+ } | undefined;
200
+ } | undefined;
201
+ summary?: string | undefined;
202
+ assignee?: {
203
+ accountId?: string | undefined;
204
+ displayName?: string | undefined;
205
+ emailAddress?: string | undefined;
206
+ } | null | undefined;
207
+ reporter?: {
208
+ accountId?: string | undefined;
209
+ displayName?: string | undefined;
210
+ emailAddress?: string | undefined;
211
+ } | undefined;
212
+ issuetype?: {
213
+ id?: string | undefined;
214
+ name?: string | undefined;
215
+ subtask?: boolean | undefined;
216
+ } | undefined;
217
+ project?: {
218
+ key?: string | undefined;
219
+ id?: string | undefined;
220
+ name?: string | undefined;
221
+ } | undefined;
222
+ labels?: string[] | undefined;
223
+ created?: string | undefined;
224
+ updated?: string | undefined;
225
+ } | undefined;
226
+ }, {
227
+ key?: string | undefined;
228
+ id?: string | undefined;
229
+ self?: string | undefined;
230
+ fields?: {
231
+ priority?: {
232
+ id?: string | undefined;
233
+ name?: string | undefined;
234
+ } | null | undefined;
235
+ status?: {
236
+ id?: string | undefined;
237
+ name?: string | undefined;
238
+ statusCategory?: {
239
+ key?: string | undefined;
240
+ name?: string | undefined;
241
+ } | undefined;
242
+ } | undefined;
243
+ summary?: string | undefined;
244
+ assignee?: {
245
+ accountId?: string | undefined;
246
+ displayName?: string | undefined;
247
+ emailAddress?: string | undefined;
248
+ } | null | undefined;
249
+ reporter?: {
250
+ accountId?: string | undefined;
251
+ displayName?: string | undefined;
252
+ emailAddress?: string | undefined;
253
+ } | undefined;
254
+ issuetype?: {
255
+ id?: string | undefined;
256
+ name?: string | undefined;
257
+ subtask?: boolean | undefined;
258
+ } | undefined;
259
+ project?: {
260
+ key?: string | undefined;
261
+ id?: string | undefined;
262
+ name?: string | undefined;
263
+ } | undefined;
264
+ labels?: string[] | undefined;
265
+ created?: string | undefined;
266
+ updated?: string | undefined;
267
+ } | undefined;
268
+ }>>;
269
+ user: z.ZodOptional<z.ZodObject<{
270
+ accountId: z.ZodOptional<z.ZodString>;
271
+ displayName: z.ZodOptional<z.ZodString>;
272
+ emailAddress: z.ZodOptional<z.ZodString>;
273
+ }, "strip", z.ZodTypeAny, {
274
+ accountId?: string | undefined;
275
+ displayName?: string | undefined;
276
+ emailAddress?: string | undefined;
277
+ }, {
278
+ accountId?: string | undefined;
279
+ displayName?: string | undefined;
280
+ emailAddress?: string | undefined;
281
+ }>>;
282
+ }, "strip", z.ZodTypeAny, {
283
+ webhookEvent: "jira:issue_created";
284
+ timestamp?: number | undefined;
285
+ issue?: {
286
+ key?: string | undefined;
287
+ id?: string | undefined;
288
+ self?: string | undefined;
289
+ fields?: {
290
+ priority?: {
291
+ id?: string | undefined;
292
+ name?: string | undefined;
293
+ } | null | undefined;
294
+ status?: {
295
+ id?: string | undefined;
296
+ name?: string | undefined;
297
+ statusCategory?: {
298
+ key?: string | undefined;
299
+ name?: string | undefined;
300
+ } | undefined;
301
+ } | undefined;
302
+ summary?: string | undefined;
303
+ assignee?: {
304
+ accountId?: string | undefined;
305
+ displayName?: string | undefined;
306
+ emailAddress?: string | undefined;
307
+ } | null | undefined;
308
+ reporter?: {
309
+ accountId?: string | undefined;
310
+ displayName?: string | undefined;
311
+ emailAddress?: string | undefined;
312
+ } | undefined;
313
+ issuetype?: {
314
+ id?: string | undefined;
315
+ name?: string | undefined;
316
+ subtask?: boolean | undefined;
317
+ } | undefined;
318
+ project?: {
319
+ key?: string | undefined;
320
+ id?: string | undefined;
321
+ name?: string | undefined;
322
+ } | undefined;
323
+ labels?: string[] | undefined;
324
+ created?: string | undefined;
325
+ updated?: string | undefined;
326
+ } | undefined;
327
+ } | undefined;
328
+ user?: {
329
+ accountId?: string | undefined;
330
+ displayName?: string | undefined;
331
+ emailAddress?: string | undefined;
332
+ } | undefined;
333
+ }, {
334
+ webhookEvent: "jira:issue_created";
335
+ timestamp?: number | undefined;
336
+ issue?: {
337
+ key?: string | undefined;
338
+ id?: string | undefined;
339
+ self?: string | undefined;
340
+ fields?: {
341
+ priority?: {
342
+ id?: string | undefined;
343
+ name?: string | undefined;
344
+ } | null | undefined;
345
+ status?: {
346
+ id?: string | undefined;
347
+ name?: string | undefined;
348
+ statusCategory?: {
349
+ key?: string | undefined;
350
+ name?: string | undefined;
351
+ } | undefined;
352
+ } | undefined;
353
+ summary?: string | undefined;
354
+ assignee?: {
355
+ accountId?: string | undefined;
356
+ displayName?: string | undefined;
357
+ emailAddress?: string | undefined;
358
+ } | null | undefined;
359
+ reporter?: {
360
+ accountId?: string | undefined;
361
+ displayName?: string | undefined;
362
+ emailAddress?: string | undefined;
363
+ } | undefined;
364
+ issuetype?: {
365
+ id?: string | undefined;
366
+ name?: string | undefined;
367
+ subtask?: boolean | undefined;
368
+ } | undefined;
369
+ project?: {
370
+ key?: string | undefined;
371
+ id?: string | undefined;
372
+ name?: string | undefined;
373
+ } | undefined;
374
+ labels?: string[] | undefined;
375
+ created?: string | undefined;
376
+ updated?: string | undefined;
377
+ } | undefined;
378
+ } | undefined;
379
+ user?: {
380
+ accountId?: string | undefined;
381
+ displayName?: string | undefined;
382
+ emailAddress?: string | undefined;
383
+ } | undefined;
384
+ }>;
385
+ export type NewIssueEvent = z.infer<typeof NewIssueEventSchema>;
386
+ export declare const UpdatedIssueEventSchema: z.ZodObject<{
387
+ webhookEvent: z.ZodLiteral<"jira:issue_updated">;
388
+ timestamp: z.ZodOptional<z.ZodNumber>;
389
+ issue: z.ZodOptional<z.ZodObject<{
390
+ id: z.ZodOptional<z.ZodString>;
391
+ key: z.ZodOptional<z.ZodString>;
392
+ self: z.ZodOptional<z.ZodString>;
393
+ fields: z.ZodOptional<z.ZodObject<{
394
+ summary: z.ZodOptional<z.ZodString>;
395
+ status: z.ZodOptional<z.ZodObject<{
396
+ id: z.ZodOptional<z.ZodString>;
397
+ name: z.ZodOptional<z.ZodString>;
398
+ statusCategory: z.ZodOptional<z.ZodObject<{
399
+ key: z.ZodOptional<z.ZodString>;
400
+ name: z.ZodOptional<z.ZodString>;
401
+ }, "strip", z.ZodTypeAny, {
402
+ key?: string | undefined;
403
+ name?: string | undefined;
404
+ }, {
405
+ key?: string | undefined;
406
+ name?: string | undefined;
407
+ }>>;
408
+ }, "strip", z.ZodTypeAny, {
409
+ id?: string | undefined;
410
+ name?: string | undefined;
411
+ statusCategory?: {
412
+ key?: string | undefined;
413
+ name?: string | undefined;
414
+ } | undefined;
415
+ }, {
416
+ id?: string | undefined;
417
+ name?: string | undefined;
418
+ statusCategory?: {
419
+ key?: string | undefined;
420
+ name?: string | undefined;
421
+ } | undefined;
422
+ }>>;
423
+ assignee: z.ZodOptional<z.ZodNullable<z.ZodObject<{
424
+ accountId: z.ZodOptional<z.ZodString>;
425
+ displayName: z.ZodOptional<z.ZodString>;
426
+ emailAddress: z.ZodOptional<z.ZodString>;
427
+ }, "strip", z.ZodTypeAny, {
428
+ accountId?: string | undefined;
429
+ displayName?: string | undefined;
430
+ emailAddress?: string | undefined;
431
+ }, {
432
+ accountId?: string | undefined;
433
+ displayName?: string | undefined;
434
+ emailAddress?: string | undefined;
435
+ }>>>;
436
+ reporter: z.ZodOptional<z.ZodObject<{
437
+ accountId: z.ZodOptional<z.ZodString>;
438
+ displayName: z.ZodOptional<z.ZodString>;
439
+ emailAddress: z.ZodOptional<z.ZodString>;
440
+ }, "strip", z.ZodTypeAny, {
441
+ accountId?: string | undefined;
442
+ displayName?: string | undefined;
443
+ emailAddress?: string | undefined;
444
+ }, {
445
+ accountId?: string | undefined;
446
+ displayName?: string | undefined;
447
+ emailAddress?: string | undefined;
448
+ }>>;
449
+ priority: z.ZodOptional<z.ZodNullable<z.ZodObject<{
450
+ id: z.ZodOptional<z.ZodString>;
451
+ name: z.ZodOptional<z.ZodString>;
452
+ }, "strip", z.ZodTypeAny, {
453
+ id?: string | undefined;
454
+ name?: string | undefined;
455
+ }, {
456
+ id?: string | undefined;
457
+ name?: string | undefined;
458
+ }>>>;
459
+ issuetype: z.ZodOptional<z.ZodObject<{
460
+ id: z.ZodOptional<z.ZodString>;
461
+ name: z.ZodOptional<z.ZodString>;
462
+ subtask: z.ZodOptional<z.ZodBoolean>;
463
+ }, "strip", z.ZodTypeAny, {
464
+ id?: string | undefined;
465
+ name?: string | undefined;
466
+ subtask?: boolean | undefined;
467
+ }, {
468
+ id?: string | undefined;
469
+ name?: string | undefined;
470
+ subtask?: boolean | undefined;
471
+ }>>;
472
+ project: z.ZodOptional<z.ZodObject<{
473
+ id: z.ZodOptional<z.ZodString>;
474
+ key: z.ZodOptional<z.ZodString>;
475
+ name: z.ZodOptional<z.ZodString>;
476
+ }, "strip", z.ZodTypeAny, {
477
+ key?: string | undefined;
478
+ id?: string | undefined;
479
+ name?: string | undefined;
480
+ }, {
481
+ key?: string | undefined;
482
+ id?: string | undefined;
483
+ name?: string | undefined;
484
+ }>>;
485
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
486
+ updated: z.ZodOptional<z.ZodString>;
487
+ }, "strip", z.ZodTypeAny, {
488
+ priority?: {
489
+ id?: string | undefined;
490
+ name?: string | undefined;
491
+ } | null | undefined;
492
+ status?: {
493
+ id?: string | undefined;
494
+ name?: string | undefined;
495
+ statusCategory?: {
496
+ key?: string | undefined;
497
+ name?: string | undefined;
498
+ } | undefined;
499
+ } | undefined;
500
+ summary?: string | undefined;
501
+ assignee?: {
502
+ accountId?: string | undefined;
503
+ displayName?: string | undefined;
504
+ emailAddress?: string | undefined;
505
+ } | null | undefined;
506
+ reporter?: {
507
+ accountId?: string | undefined;
508
+ displayName?: string | undefined;
509
+ emailAddress?: string | undefined;
510
+ } | undefined;
511
+ issuetype?: {
512
+ id?: string | undefined;
513
+ name?: string | undefined;
514
+ subtask?: boolean | undefined;
515
+ } | undefined;
516
+ project?: {
517
+ key?: string | undefined;
518
+ id?: string | undefined;
519
+ name?: string | undefined;
520
+ } | undefined;
521
+ labels?: string[] | undefined;
522
+ updated?: string | undefined;
523
+ }, {
524
+ priority?: {
525
+ id?: string | undefined;
526
+ name?: string | undefined;
527
+ } | null | undefined;
528
+ status?: {
529
+ id?: string | undefined;
530
+ name?: string | undefined;
531
+ statusCategory?: {
532
+ key?: string | undefined;
533
+ name?: string | undefined;
534
+ } | undefined;
535
+ } | undefined;
536
+ summary?: string | undefined;
537
+ assignee?: {
538
+ accountId?: string | undefined;
539
+ displayName?: string | undefined;
540
+ emailAddress?: string | undefined;
541
+ } | null | undefined;
542
+ reporter?: {
543
+ accountId?: string | undefined;
544
+ displayName?: string | undefined;
545
+ emailAddress?: string | undefined;
546
+ } | undefined;
547
+ issuetype?: {
548
+ id?: string | undefined;
549
+ name?: string | undefined;
550
+ subtask?: boolean | undefined;
551
+ } | undefined;
552
+ project?: {
553
+ key?: string | undefined;
554
+ id?: string | undefined;
555
+ name?: string | undefined;
556
+ } | undefined;
557
+ labels?: string[] | undefined;
558
+ updated?: string | undefined;
559
+ }>>;
560
+ }, "strip", z.ZodTypeAny, {
561
+ key?: string | undefined;
562
+ id?: string | undefined;
563
+ self?: string | undefined;
564
+ fields?: {
565
+ priority?: {
566
+ id?: string | undefined;
567
+ name?: string | undefined;
568
+ } | null | undefined;
569
+ status?: {
570
+ id?: string | undefined;
571
+ name?: string | undefined;
572
+ statusCategory?: {
573
+ key?: string | undefined;
574
+ name?: string | undefined;
575
+ } | undefined;
576
+ } | undefined;
577
+ summary?: string | undefined;
578
+ assignee?: {
579
+ accountId?: string | undefined;
580
+ displayName?: string | undefined;
581
+ emailAddress?: string | undefined;
582
+ } | null | undefined;
583
+ reporter?: {
584
+ accountId?: string | undefined;
585
+ displayName?: string | undefined;
586
+ emailAddress?: string | undefined;
587
+ } | undefined;
588
+ issuetype?: {
589
+ id?: string | undefined;
590
+ name?: string | undefined;
591
+ subtask?: boolean | undefined;
592
+ } | undefined;
593
+ project?: {
594
+ key?: string | undefined;
595
+ id?: string | undefined;
596
+ name?: string | undefined;
597
+ } | undefined;
598
+ labels?: string[] | undefined;
599
+ updated?: string | undefined;
600
+ } | undefined;
601
+ }, {
602
+ key?: string | undefined;
603
+ id?: string | undefined;
604
+ self?: string | undefined;
605
+ fields?: {
606
+ priority?: {
607
+ id?: string | undefined;
608
+ name?: string | undefined;
609
+ } | null | undefined;
610
+ status?: {
611
+ id?: string | undefined;
612
+ name?: string | undefined;
613
+ statusCategory?: {
614
+ key?: string | undefined;
615
+ name?: string | undefined;
616
+ } | undefined;
617
+ } | undefined;
618
+ summary?: string | undefined;
619
+ assignee?: {
620
+ accountId?: string | undefined;
621
+ displayName?: string | undefined;
622
+ emailAddress?: string | undefined;
623
+ } | null | undefined;
624
+ reporter?: {
625
+ accountId?: string | undefined;
626
+ displayName?: string | undefined;
627
+ emailAddress?: string | undefined;
628
+ } | undefined;
629
+ issuetype?: {
630
+ id?: string | undefined;
631
+ name?: string | undefined;
632
+ subtask?: boolean | undefined;
633
+ } | undefined;
634
+ project?: {
635
+ key?: string | undefined;
636
+ id?: string | undefined;
637
+ name?: string | undefined;
638
+ } | undefined;
639
+ labels?: string[] | undefined;
640
+ updated?: string | undefined;
641
+ } | undefined;
642
+ }>>;
643
+ user: z.ZodOptional<z.ZodObject<{
644
+ accountId: z.ZodOptional<z.ZodString>;
645
+ displayName: z.ZodOptional<z.ZodString>;
646
+ emailAddress: z.ZodOptional<z.ZodString>;
647
+ }, "strip", z.ZodTypeAny, {
648
+ accountId?: string | undefined;
649
+ displayName?: string | undefined;
650
+ emailAddress?: string | undefined;
651
+ }, {
652
+ accountId?: string | undefined;
653
+ displayName?: string | undefined;
654
+ emailAddress?: string | undefined;
655
+ }>>;
656
+ changelog: z.ZodOptional<z.ZodObject<{
657
+ id: z.ZodOptional<z.ZodString>;
658
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
659
+ field: z.ZodOptional<z.ZodString>;
660
+ fieldtype: z.ZodOptional<z.ZodString>;
661
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
662
+ fromString: z.ZodOptional<z.ZodNullable<z.ZodString>>;
663
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
664
+ toString: z.ZodOptional<z.ZodNullable<z.ZodString>>;
665
+ }, "strip", z.ZodTypeAny, {
666
+ from?: string | null | undefined;
667
+ toString?: string | null | undefined;
668
+ to?: string | null | undefined;
669
+ field?: string | undefined;
670
+ fieldtype?: string | undefined;
671
+ fromString?: string | null | undefined;
672
+ }, {
673
+ from?: string | null | undefined;
674
+ toString?: string | null | undefined;
675
+ to?: string | null | undefined;
676
+ field?: string | undefined;
677
+ fieldtype?: string | undefined;
678
+ fromString?: string | null | undefined;
679
+ }>, "many">>;
680
+ }, "strip", z.ZodTypeAny, {
681
+ id?: string | undefined;
682
+ items?: {
683
+ from?: string | null | undefined;
684
+ toString?: string | null | undefined;
685
+ to?: string | null | undefined;
686
+ field?: string | undefined;
687
+ fieldtype?: string | undefined;
688
+ fromString?: string | null | undefined;
689
+ }[] | undefined;
690
+ }, {
691
+ id?: string | undefined;
692
+ items?: {
693
+ from?: string | null | undefined;
694
+ toString?: string | null | undefined;
695
+ to?: string | null | undefined;
696
+ field?: string | undefined;
697
+ fieldtype?: string | undefined;
698
+ fromString?: string | null | undefined;
699
+ }[] | undefined;
700
+ }>>;
701
+ }, "strip", z.ZodTypeAny, {
702
+ webhookEvent: "jira:issue_updated";
703
+ timestamp?: number | undefined;
704
+ issue?: {
705
+ key?: string | undefined;
706
+ id?: string | undefined;
707
+ self?: string | undefined;
708
+ fields?: {
709
+ priority?: {
710
+ id?: string | undefined;
711
+ name?: string | undefined;
712
+ } | null | undefined;
713
+ status?: {
714
+ id?: string | undefined;
715
+ name?: string | undefined;
716
+ statusCategory?: {
717
+ key?: string | undefined;
718
+ name?: string | undefined;
719
+ } | undefined;
720
+ } | undefined;
721
+ summary?: string | undefined;
722
+ assignee?: {
723
+ accountId?: string | undefined;
724
+ displayName?: string | undefined;
725
+ emailAddress?: string | undefined;
726
+ } | null | undefined;
727
+ reporter?: {
728
+ accountId?: string | undefined;
729
+ displayName?: string | undefined;
730
+ emailAddress?: string | undefined;
731
+ } | undefined;
732
+ issuetype?: {
733
+ id?: string | undefined;
734
+ name?: string | undefined;
735
+ subtask?: boolean | undefined;
736
+ } | undefined;
737
+ project?: {
738
+ key?: string | undefined;
739
+ id?: string | undefined;
740
+ name?: string | undefined;
741
+ } | undefined;
742
+ labels?: string[] | undefined;
743
+ updated?: string | undefined;
744
+ } | undefined;
745
+ } | undefined;
746
+ user?: {
747
+ accountId?: string | undefined;
748
+ displayName?: string | undefined;
749
+ emailAddress?: string | undefined;
750
+ } | undefined;
751
+ changelog?: {
752
+ id?: string | undefined;
753
+ items?: {
754
+ from?: string | null | undefined;
755
+ toString?: string | null | undefined;
756
+ to?: string | null | undefined;
757
+ field?: string | undefined;
758
+ fieldtype?: string | undefined;
759
+ fromString?: string | null | undefined;
760
+ }[] | undefined;
761
+ } | undefined;
762
+ }, {
763
+ webhookEvent: "jira:issue_updated";
764
+ timestamp?: number | undefined;
765
+ issue?: {
766
+ key?: string | undefined;
767
+ id?: string | undefined;
768
+ self?: string | undefined;
769
+ fields?: {
770
+ priority?: {
771
+ id?: string | undefined;
772
+ name?: string | undefined;
773
+ } | null | undefined;
774
+ status?: {
775
+ id?: string | undefined;
776
+ name?: string | undefined;
777
+ statusCategory?: {
778
+ key?: string | undefined;
779
+ name?: string | undefined;
780
+ } | undefined;
781
+ } | undefined;
782
+ summary?: string | undefined;
783
+ assignee?: {
784
+ accountId?: string | undefined;
785
+ displayName?: string | undefined;
786
+ emailAddress?: string | undefined;
787
+ } | null | undefined;
788
+ reporter?: {
789
+ accountId?: string | undefined;
790
+ displayName?: string | undefined;
791
+ emailAddress?: string | undefined;
792
+ } | undefined;
793
+ issuetype?: {
794
+ id?: string | undefined;
795
+ name?: string | undefined;
796
+ subtask?: boolean | undefined;
797
+ } | undefined;
798
+ project?: {
799
+ key?: string | undefined;
800
+ id?: string | undefined;
801
+ name?: string | undefined;
802
+ } | undefined;
803
+ labels?: string[] | undefined;
804
+ updated?: string | undefined;
805
+ } | undefined;
806
+ } | undefined;
807
+ user?: {
808
+ accountId?: string | undefined;
809
+ displayName?: string | undefined;
810
+ emailAddress?: string | undefined;
811
+ } | undefined;
812
+ changelog?: {
813
+ id?: string | undefined;
814
+ items?: {
815
+ from?: string | null | undefined;
816
+ toString?: string | null | undefined;
817
+ to?: string | null | undefined;
818
+ field?: string | undefined;
819
+ fieldtype?: string | undefined;
820
+ fromString?: string | null | undefined;
821
+ }[] | undefined;
822
+ } | undefined;
823
+ }>;
824
+ export type UpdatedIssueEvent = z.infer<typeof UpdatedIssueEventSchema>;
825
+ export declare const NewProjectEventSchema: z.ZodObject<{
826
+ webhookEvent: z.ZodLiteral<"project_created">;
827
+ timestamp: z.ZodOptional<z.ZodNumber>;
828
+ project: z.ZodOptional<z.ZodObject<{
829
+ id: z.ZodOptional<z.ZodString>;
830
+ key: z.ZodOptional<z.ZodString>;
831
+ name: z.ZodOptional<z.ZodString>;
832
+ description: z.ZodOptional<z.ZodString>;
833
+ projectTypeKey: z.ZodOptional<z.ZodString>;
834
+ lead: z.ZodOptional<z.ZodObject<{
835
+ accountId: z.ZodOptional<z.ZodString>;
836
+ displayName: z.ZodOptional<z.ZodString>;
837
+ emailAddress: z.ZodOptional<z.ZodString>;
838
+ }, "strip", z.ZodTypeAny, {
839
+ accountId?: string | undefined;
840
+ displayName?: string | undefined;
841
+ emailAddress?: string | undefined;
842
+ }, {
843
+ accountId?: string | undefined;
844
+ displayName?: string | undefined;
845
+ emailAddress?: string | undefined;
846
+ }>>;
847
+ self: z.ZodOptional<z.ZodString>;
848
+ }, "strip", z.ZodTypeAny, {
849
+ key?: string | undefined;
850
+ id?: string | undefined;
851
+ name?: string | undefined;
852
+ description?: string | undefined;
853
+ self?: string | undefined;
854
+ projectTypeKey?: string | undefined;
855
+ lead?: {
856
+ accountId?: string | undefined;
857
+ displayName?: string | undefined;
858
+ emailAddress?: string | undefined;
859
+ } | undefined;
860
+ }, {
861
+ key?: string | undefined;
862
+ id?: string | undefined;
863
+ name?: string | undefined;
864
+ description?: string | undefined;
865
+ self?: string | undefined;
866
+ projectTypeKey?: string | undefined;
867
+ lead?: {
868
+ accountId?: string | undefined;
869
+ displayName?: string | undefined;
870
+ emailAddress?: string | undefined;
871
+ } | undefined;
872
+ }>>;
873
+ }, "strip", z.ZodTypeAny, {
874
+ webhookEvent: "project_created";
875
+ project?: {
876
+ key?: string | undefined;
877
+ id?: string | undefined;
878
+ name?: string | undefined;
879
+ description?: string | undefined;
880
+ self?: string | undefined;
881
+ projectTypeKey?: string | undefined;
882
+ lead?: {
883
+ accountId?: string | undefined;
884
+ displayName?: string | undefined;
885
+ emailAddress?: string | undefined;
886
+ } | undefined;
887
+ } | undefined;
888
+ timestamp?: number | undefined;
889
+ }, {
890
+ webhookEvent: "project_created";
891
+ project?: {
892
+ key?: string | undefined;
893
+ id?: string | undefined;
894
+ name?: string | undefined;
895
+ description?: string | undefined;
896
+ self?: string | undefined;
897
+ projectTypeKey?: string | undefined;
898
+ lead?: {
899
+ accountId?: string | undefined;
900
+ displayName?: string | undefined;
901
+ emailAddress?: string | undefined;
902
+ } | undefined;
903
+ } | undefined;
904
+ timestamp?: number | undefined;
905
+ }>;
906
+ export type NewProjectEvent = z.infer<typeof NewProjectEventSchema>;
907
+ export declare const JiraNewIssuePayloadSchema: z.ZodObject<{
908
+ webhookEvent: z.ZodLiteral<"jira:issue_created">;
909
+ timestamp: z.ZodOptional<z.ZodNumber>;
910
+ issue: z.ZodOptional<z.ZodObject<{
911
+ id: z.ZodOptional<z.ZodString>;
912
+ key: z.ZodOptional<z.ZodString>;
913
+ self: z.ZodOptional<z.ZodString>;
914
+ fields: z.ZodOptional<z.ZodObject<{
915
+ summary: z.ZodOptional<z.ZodString>;
916
+ status: z.ZodOptional<z.ZodObject<{
917
+ id: z.ZodOptional<z.ZodString>;
918
+ name: z.ZodOptional<z.ZodString>;
919
+ statusCategory: z.ZodOptional<z.ZodObject<{
920
+ key: z.ZodOptional<z.ZodString>;
921
+ name: z.ZodOptional<z.ZodString>;
922
+ }, "strip", z.ZodTypeAny, {
923
+ key?: string | undefined;
924
+ name?: string | undefined;
925
+ }, {
926
+ key?: string | undefined;
927
+ name?: string | undefined;
928
+ }>>;
929
+ }, "strip", z.ZodTypeAny, {
930
+ id?: string | undefined;
931
+ name?: string | undefined;
932
+ statusCategory?: {
933
+ key?: string | undefined;
934
+ name?: string | undefined;
935
+ } | undefined;
936
+ }, {
937
+ id?: string | undefined;
938
+ name?: string | undefined;
939
+ statusCategory?: {
940
+ key?: string | undefined;
941
+ name?: string | undefined;
942
+ } | undefined;
943
+ }>>;
944
+ assignee: z.ZodOptional<z.ZodNullable<z.ZodObject<{
945
+ accountId: z.ZodOptional<z.ZodString>;
946
+ displayName: z.ZodOptional<z.ZodString>;
947
+ emailAddress: z.ZodOptional<z.ZodString>;
948
+ }, "strip", z.ZodTypeAny, {
949
+ accountId?: string | undefined;
950
+ displayName?: string | undefined;
951
+ emailAddress?: string | undefined;
952
+ }, {
953
+ accountId?: string | undefined;
954
+ displayName?: string | undefined;
955
+ emailAddress?: string | undefined;
956
+ }>>>;
957
+ reporter: z.ZodOptional<z.ZodObject<{
958
+ accountId: z.ZodOptional<z.ZodString>;
959
+ displayName: z.ZodOptional<z.ZodString>;
960
+ emailAddress: z.ZodOptional<z.ZodString>;
961
+ }, "strip", z.ZodTypeAny, {
962
+ accountId?: string | undefined;
963
+ displayName?: string | undefined;
964
+ emailAddress?: string | undefined;
965
+ }, {
966
+ accountId?: string | undefined;
967
+ displayName?: string | undefined;
968
+ emailAddress?: string | undefined;
969
+ }>>;
970
+ priority: z.ZodOptional<z.ZodNullable<z.ZodObject<{
971
+ id: z.ZodOptional<z.ZodString>;
972
+ name: z.ZodOptional<z.ZodString>;
973
+ }, "strip", z.ZodTypeAny, {
974
+ id?: string | undefined;
975
+ name?: string | undefined;
976
+ }, {
977
+ id?: string | undefined;
978
+ name?: string | undefined;
979
+ }>>>;
980
+ issuetype: z.ZodOptional<z.ZodObject<{
981
+ id: z.ZodOptional<z.ZodString>;
982
+ name: z.ZodOptional<z.ZodString>;
983
+ subtask: z.ZodOptional<z.ZodBoolean>;
984
+ }, "strip", z.ZodTypeAny, {
985
+ id?: string | undefined;
986
+ name?: string | undefined;
987
+ subtask?: boolean | undefined;
988
+ }, {
989
+ id?: string | undefined;
990
+ name?: string | undefined;
991
+ subtask?: boolean | undefined;
992
+ }>>;
993
+ project: z.ZodOptional<z.ZodObject<{
994
+ id: z.ZodOptional<z.ZodString>;
995
+ key: z.ZodOptional<z.ZodString>;
996
+ name: z.ZodOptional<z.ZodString>;
997
+ }, "strip", z.ZodTypeAny, {
998
+ key?: string | undefined;
999
+ id?: string | undefined;
1000
+ name?: string | undefined;
1001
+ }, {
1002
+ key?: string | undefined;
1003
+ id?: string | undefined;
1004
+ name?: string | undefined;
1005
+ }>>;
1006
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1007
+ created: z.ZodOptional<z.ZodString>;
1008
+ updated: z.ZodOptional<z.ZodString>;
1009
+ }, "strip", z.ZodTypeAny, {
1010
+ priority?: {
1011
+ id?: string | undefined;
1012
+ name?: string | undefined;
1013
+ } | null | undefined;
1014
+ status?: {
1015
+ id?: string | undefined;
1016
+ name?: string | undefined;
1017
+ statusCategory?: {
1018
+ key?: string | undefined;
1019
+ name?: string | undefined;
1020
+ } | undefined;
1021
+ } | undefined;
1022
+ summary?: string | undefined;
1023
+ assignee?: {
1024
+ accountId?: string | undefined;
1025
+ displayName?: string | undefined;
1026
+ emailAddress?: string | undefined;
1027
+ } | null | undefined;
1028
+ reporter?: {
1029
+ accountId?: string | undefined;
1030
+ displayName?: string | undefined;
1031
+ emailAddress?: string | undefined;
1032
+ } | undefined;
1033
+ issuetype?: {
1034
+ id?: string | undefined;
1035
+ name?: string | undefined;
1036
+ subtask?: boolean | undefined;
1037
+ } | undefined;
1038
+ project?: {
1039
+ key?: string | undefined;
1040
+ id?: string | undefined;
1041
+ name?: string | undefined;
1042
+ } | undefined;
1043
+ labels?: string[] | undefined;
1044
+ created?: string | undefined;
1045
+ updated?: string | undefined;
1046
+ }, {
1047
+ priority?: {
1048
+ id?: string | undefined;
1049
+ name?: string | undefined;
1050
+ } | null | undefined;
1051
+ status?: {
1052
+ id?: string | undefined;
1053
+ name?: string | undefined;
1054
+ statusCategory?: {
1055
+ key?: string | undefined;
1056
+ name?: string | undefined;
1057
+ } | undefined;
1058
+ } | undefined;
1059
+ summary?: string | undefined;
1060
+ assignee?: {
1061
+ accountId?: string | undefined;
1062
+ displayName?: string | undefined;
1063
+ emailAddress?: string | undefined;
1064
+ } | null | undefined;
1065
+ reporter?: {
1066
+ accountId?: string | undefined;
1067
+ displayName?: string | undefined;
1068
+ emailAddress?: string | undefined;
1069
+ } | undefined;
1070
+ issuetype?: {
1071
+ id?: string | undefined;
1072
+ name?: string | undefined;
1073
+ subtask?: boolean | undefined;
1074
+ } | undefined;
1075
+ project?: {
1076
+ key?: string | undefined;
1077
+ id?: string | undefined;
1078
+ name?: string | undefined;
1079
+ } | undefined;
1080
+ labels?: string[] | undefined;
1081
+ created?: string | undefined;
1082
+ updated?: string | undefined;
1083
+ }>>;
1084
+ }, "strip", z.ZodTypeAny, {
1085
+ key?: string | undefined;
1086
+ id?: string | undefined;
1087
+ self?: string | undefined;
1088
+ fields?: {
1089
+ priority?: {
1090
+ id?: string | undefined;
1091
+ name?: string | undefined;
1092
+ } | null | undefined;
1093
+ status?: {
1094
+ id?: string | undefined;
1095
+ name?: string | undefined;
1096
+ statusCategory?: {
1097
+ key?: string | undefined;
1098
+ name?: string | undefined;
1099
+ } | undefined;
1100
+ } | undefined;
1101
+ summary?: string | undefined;
1102
+ assignee?: {
1103
+ accountId?: string | undefined;
1104
+ displayName?: string | undefined;
1105
+ emailAddress?: string | undefined;
1106
+ } | null | undefined;
1107
+ reporter?: {
1108
+ accountId?: string | undefined;
1109
+ displayName?: string | undefined;
1110
+ emailAddress?: string | undefined;
1111
+ } | undefined;
1112
+ issuetype?: {
1113
+ id?: string | undefined;
1114
+ name?: string | undefined;
1115
+ subtask?: boolean | undefined;
1116
+ } | undefined;
1117
+ project?: {
1118
+ key?: string | undefined;
1119
+ id?: string | undefined;
1120
+ name?: string | undefined;
1121
+ } | undefined;
1122
+ labels?: string[] | undefined;
1123
+ created?: string | undefined;
1124
+ updated?: string | undefined;
1125
+ } | undefined;
1126
+ }, {
1127
+ key?: string | undefined;
1128
+ id?: string | undefined;
1129
+ self?: string | undefined;
1130
+ fields?: {
1131
+ priority?: {
1132
+ id?: string | undefined;
1133
+ name?: string | undefined;
1134
+ } | null | undefined;
1135
+ status?: {
1136
+ id?: string | undefined;
1137
+ name?: string | undefined;
1138
+ statusCategory?: {
1139
+ key?: string | undefined;
1140
+ name?: string | undefined;
1141
+ } | undefined;
1142
+ } | undefined;
1143
+ summary?: string | undefined;
1144
+ assignee?: {
1145
+ accountId?: string | undefined;
1146
+ displayName?: string | undefined;
1147
+ emailAddress?: string | undefined;
1148
+ } | null | undefined;
1149
+ reporter?: {
1150
+ accountId?: string | undefined;
1151
+ displayName?: string | undefined;
1152
+ emailAddress?: string | undefined;
1153
+ } | undefined;
1154
+ issuetype?: {
1155
+ id?: string | undefined;
1156
+ name?: string | undefined;
1157
+ subtask?: boolean | undefined;
1158
+ } | undefined;
1159
+ project?: {
1160
+ key?: string | undefined;
1161
+ id?: string | undefined;
1162
+ name?: string | undefined;
1163
+ } | undefined;
1164
+ labels?: string[] | undefined;
1165
+ created?: string | undefined;
1166
+ updated?: string | undefined;
1167
+ } | undefined;
1168
+ }>>;
1169
+ user: z.ZodOptional<z.ZodObject<{
1170
+ accountId: z.ZodOptional<z.ZodString>;
1171
+ displayName: z.ZodOptional<z.ZodString>;
1172
+ emailAddress: z.ZodOptional<z.ZodString>;
1173
+ }, "strip", z.ZodTypeAny, {
1174
+ accountId?: string | undefined;
1175
+ displayName?: string | undefined;
1176
+ emailAddress?: string | undefined;
1177
+ }, {
1178
+ accountId?: string | undefined;
1179
+ displayName?: string | undefined;
1180
+ emailAddress?: string | undefined;
1181
+ }>>;
1182
+ }, "strip", z.ZodTypeAny, {
1183
+ webhookEvent: "jira:issue_created";
1184
+ timestamp?: number | undefined;
1185
+ issue?: {
1186
+ key?: string | undefined;
1187
+ id?: string | undefined;
1188
+ self?: string | undefined;
1189
+ fields?: {
1190
+ priority?: {
1191
+ id?: string | undefined;
1192
+ name?: string | undefined;
1193
+ } | null | undefined;
1194
+ status?: {
1195
+ id?: string | undefined;
1196
+ name?: string | undefined;
1197
+ statusCategory?: {
1198
+ key?: string | undefined;
1199
+ name?: string | undefined;
1200
+ } | undefined;
1201
+ } | undefined;
1202
+ summary?: string | undefined;
1203
+ assignee?: {
1204
+ accountId?: string | undefined;
1205
+ displayName?: string | undefined;
1206
+ emailAddress?: string | undefined;
1207
+ } | null | undefined;
1208
+ reporter?: {
1209
+ accountId?: string | undefined;
1210
+ displayName?: string | undefined;
1211
+ emailAddress?: string | undefined;
1212
+ } | undefined;
1213
+ issuetype?: {
1214
+ id?: string | undefined;
1215
+ name?: string | undefined;
1216
+ subtask?: boolean | undefined;
1217
+ } | undefined;
1218
+ project?: {
1219
+ key?: string | undefined;
1220
+ id?: string | undefined;
1221
+ name?: string | undefined;
1222
+ } | undefined;
1223
+ labels?: string[] | undefined;
1224
+ created?: string | undefined;
1225
+ updated?: string | undefined;
1226
+ } | undefined;
1227
+ } | undefined;
1228
+ user?: {
1229
+ accountId?: string | undefined;
1230
+ displayName?: string | undefined;
1231
+ emailAddress?: string | undefined;
1232
+ } | undefined;
1233
+ }, {
1234
+ webhookEvent: "jira:issue_created";
1235
+ timestamp?: number | undefined;
1236
+ issue?: {
1237
+ key?: string | undefined;
1238
+ id?: string | undefined;
1239
+ self?: string | undefined;
1240
+ fields?: {
1241
+ priority?: {
1242
+ id?: string | undefined;
1243
+ name?: string | undefined;
1244
+ } | null | undefined;
1245
+ status?: {
1246
+ id?: string | undefined;
1247
+ name?: string | undefined;
1248
+ statusCategory?: {
1249
+ key?: string | undefined;
1250
+ name?: string | undefined;
1251
+ } | undefined;
1252
+ } | undefined;
1253
+ summary?: string | undefined;
1254
+ assignee?: {
1255
+ accountId?: string | undefined;
1256
+ displayName?: string | undefined;
1257
+ emailAddress?: string | undefined;
1258
+ } | null | undefined;
1259
+ reporter?: {
1260
+ accountId?: string | undefined;
1261
+ displayName?: string | undefined;
1262
+ emailAddress?: string | undefined;
1263
+ } | undefined;
1264
+ issuetype?: {
1265
+ id?: string | undefined;
1266
+ name?: string | undefined;
1267
+ subtask?: boolean | undefined;
1268
+ } | undefined;
1269
+ project?: {
1270
+ key?: string | undefined;
1271
+ id?: string | undefined;
1272
+ name?: string | undefined;
1273
+ } | undefined;
1274
+ labels?: string[] | undefined;
1275
+ created?: string | undefined;
1276
+ updated?: string | undefined;
1277
+ } | undefined;
1278
+ } | undefined;
1279
+ user?: {
1280
+ accountId?: string | undefined;
1281
+ displayName?: string | undefined;
1282
+ emailAddress?: string | undefined;
1283
+ } | undefined;
1284
+ }>;
1285
+ export declare const JiraUpdatedIssuePayloadSchema: z.ZodObject<{
1286
+ webhookEvent: z.ZodLiteral<"jira:issue_updated">;
1287
+ timestamp: z.ZodOptional<z.ZodNumber>;
1288
+ issue: z.ZodOptional<z.ZodObject<{
1289
+ id: z.ZodOptional<z.ZodString>;
1290
+ key: z.ZodOptional<z.ZodString>;
1291
+ self: z.ZodOptional<z.ZodString>;
1292
+ fields: z.ZodOptional<z.ZodObject<{
1293
+ summary: z.ZodOptional<z.ZodString>;
1294
+ status: z.ZodOptional<z.ZodObject<{
1295
+ id: z.ZodOptional<z.ZodString>;
1296
+ name: z.ZodOptional<z.ZodString>;
1297
+ statusCategory: z.ZodOptional<z.ZodObject<{
1298
+ key: z.ZodOptional<z.ZodString>;
1299
+ name: z.ZodOptional<z.ZodString>;
1300
+ }, "strip", z.ZodTypeAny, {
1301
+ key?: string | undefined;
1302
+ name?: string | undefined;
1303
+ }, {
1304
+ key?: string | undefined;
1305
+ name?: string | undefined;
1306
+ }>>;
1307
+ }, "strip", z.ZodTypeAny, {
1308
+ id?: string | undefined;
1309
+ name?: string | undefined;
1310
+ statusCategory?: {
1311
+ key?: string | undefined;
1312
+ name?: string | undefined;
1313
+ } | undefined;
1314
+ }, {
1315
+ id?: string | undefined;
1316
+ name?: string | undefined;
1317
+ statusCategory?: {
1318
+ key?: string | undefined;
1319
+ name?: string | undefined;
1320
+ } | undefined;
1321
+ }>>;
1322
+ assignee: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1323
+ accountId: z.ZodOptional<z.ZodString>;
1324
+ displayName: z.ZodOptional<z.ZodString>;
1325
+ emailAddress: z.ZodOptional<z.ZodString>;
1326
+ }, "strip", z.ZodTypeAny, {
1327
+ accountId?: string | undefined;
1328
+ displayName?: string | undefined;
1329
+ emailAddress?: string | undefined;
1330
+ }, {
1331
+ accountId?: string | undefined;
1332
+ displayName?: string | undefined;
1333
+ emailAddress?: string | undefined;
1334
+ }>>>;
1335
+ reporter: z.ZodOptional<z.ZodObject<{
1336
+ accountId: z.ZodOptional<z.ZodString>;
1337
+ displayName: z.ZodOptional<z.ZodString>;
1338
+ emailAddress: z.ZodOptional<z.ZodString>;
1339
+ }, "strip", z.ZodTypeAny, {
1340
+ accountId?: string | undefined;
1341
+ displayName?: string | undefined;
1342
+ emailAddress?: string | undefined;
1343
+ }, {
1344
+ accountId?: string | undefined;
1345
+ displayName?: string | undefined;
1346
+ emailAddress?: string | undefined;
1347
+ }>>;
1348
+ priority: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1349
+ id: z.ZodOptional<z.ZodString>;
1350
+ name: z.ZodOptional<z.ZodString>;
1351
+ }, "strip", z.ZodTypeAny, {
1352
+ id?: string | undefined;
1353
+ name?: string | undefined;
1354
+ }, {
1355
+ id?: string | undefined;
1356
+ name?: string | undefined;
1357
+ }>>>;
1358
+ issuetype: z.ZodOptional<z.ZodObject<{
1359
+ id: z.ZodOptional<z.ZodString>;
1360
+ name: z.ZodOptional<z.ZodString>;
1361
+ subtask: z.ZodOptional<z.ZodBoolean>;
1362
+ }, "strip", z.ZodTypeAny, {
1363
+ id?: string | undefined;
1364
+ name?: string | undefined;
1365
+ subtask?: boolean | undefined;
1366
+ }, {
1367
+ id?: string | undefined;
1368
+ name?: string | undefined;
1369
+ subtask?: boolean | undefined;
1370
+ }>>;
1371
+ project: z.ZodOptional<z.ZodObject<{
1372
+ id: z.ZodOptional<z.ZodString>;
1373
+ key: z.ZodOptional<z.ZodString>;
1374
+ name: z.ZodOptional<z.ZodString>;
1375
+ }, "strip", z.ZodTypeAny, {
1376
+ key?: string | undefined;
1377
+ id?: string | undefined;
1378
+ name?: string | undefined;
1379
+ }, {
1380
+ key?: string | undefined;
1381
+ id?: string | undefined;
1382
+ name?: string | undefined;
1383
+ }>>;
1384
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1385
+ updated: z.ZodOptional<z.ZodString>;
1386
+ }, "strip", z.ZodTypeAny, {
1387
+ priority?: {
1388
+ id?: string | undefined;
1389
+ name?: string | undefined;
1390
+ } | null | undefined;
1391
+ status?: {
1392
+ id?: string | undefined;
1393
+ name?: string | undefined;
1394
+ statusCategory?: {
1395
+ key?: string | undefined;
1396
+ name?: string | undefined;
1397
+ } | undefined;
1398
+ } | undefined;
1399
+ summary?: string | undefined;
1400
+ assignee?: {
1401
+ accountId?: string | undefined;
1402
+ displayName?: string | undefined;
1403
+ emailAddress?: string | undefined;
1404
+ } | null | undefined;
1405
+ reporter?: {
1406
+ accountId?: string | undefined;
1407
+ displayName?: string | undefined;
1408
+ emailAddress?: string | undefined;
1409
+ } | undefined;
1410
+ issuetype?: {
1411
+ id?: string | undefined;
1412
+ name?: string | undefined;
1413
+ subtask?: boolean | undefined;
1414
+ } | undefined;
1415
+ project?: {
1416
+ key?: string | undefined;
1417
+ id?: string | undefined;
1418
+ name?: string | undefined;
1419
+ } | undefined;
1420
+ labels?: string[] | undefined;
1421
+ updated?: string | undefined;
1422
+ }, {
1423
+ priority?: {
1424
+ id?: string | undefined;
1425
+ name?: string | undefined;
1426
+ } | null | undefined;
1427
+ status?: {
1428
+ id?: string | undefined;
1429
+ name?: string | undefined;
1430
+ statusCategory?: {
1431
+ key?: string | undefined;
1432
+ name?: string | undefined;
1433
+ } | undefined;
1434
+ } | undefined;
1435
+ summary?: string | undefined;
1436
+ assignee?: {
1437
+ accountId?: string | undefined;
1438
+ displayName?: string | undefined;
1439
+ emailAddress?: string | undefined;
1440
+ } | null | undefined;
1441
+ reporter?: {
1442
+ accountId?: string | undefined;
1443
+ displayName?: string | undefined;
1444
+ emailAddress?: string | undefined;
1445
+ } | undefined;
1446
+ issuetype?: {
1447
+ id?: string | undefined;
1448
+ name?: string | undefined;
1449
+ subtask?: boolean | undefined;
1450
+ } | undefined;
1451
+ project?: {
1452
+ key?: string | undefined;
1453
+ id?: string | undefined;
1454
+ name?: string | undefined;
1455
+ } | undefined;
1456
+ labels?: string[] | undefined;
1457
+ updated?: string | undefined;
1458
+ }>>;
1459
+ }, "strip", z.ZodTypeAny, {
1460
+ key?: string | undefined;
1461
+ id?: string | undefined;
1462
+ self?: string | undefined;
1463
+ fields?: {
1464
+ priority?: {
1465
+ id?: string | undefined;
1466
+ name?: string | undefined;
1467
+ } | null | undefined;
1468
+ status?: {
1469
+ id?: string | undefined;
1470
+ name?: string | undefined;
1471
+ statusCategory?: {
1472
+ key?: string | undefined;
1473
+ name?: string | undefined;
1474
+ } | undefined;
1475
+ } | undefined;
1476
+ summary?: string | undefined;
1477
+ assignee?: {
1478
+ accountId?: string | undefined;
1479
+ displayName?: string | undefined;
1480
+ emailAddress?: string | undefined;
1481
+ } | null | undefined;
1482
+ reporter?: {
1483
+ accountId?: string | undefined;
1484
+ displayName?: string | undefined;
1485
+ emailAddress?: string | undefined;
1486
+ } | undefined;
1487
+ issuetype?: {
1488
+ id?: string | undefined;
1489
+ name?: string | undefined;
1490
+ subtask?: boolean | undefined;
1491
+ } | undefined;
1492
+ project?: {
1493
+ key?: string | undefined;
1494
+ id?: string | undefined;
1495
+ name?: string | undefined;
1496
+ } | undefined;
1497
+ labels?: string[] | undefined;
1498
+ updated?: string | undefined;
1499
+ } | undefined;
1500
+ }, {
1501
+ key?: string | undefined;
1502
+ id?: string | undefined;
1503
+ self?: string | undefined;
1504
+ fields?: {
1505
+ priority?: {
1506
+ id?: string | undefined;
1507
+ name?: string | undefined;
1508
+ } | null | undefined;
1509
+ status?: {
1510
+ id?: string | undefined;
1511
+ name?: string | undefined;
1512
+ statusCategory?: {
1513
+ key?: string | undefined;
1514
+ name?: string | undefined;
1515
+ } | undefined;
1516
+ } | undefined;
1517
+ summary?: string | undefined;
1518
+ assignee?: {
1519
+ accountId?: string | undefined;
1520
+ displayName?: string | undefined;
1521
+ emailAddress?: string | undefined;
1522
+ } | null | undefined;
1523
+ reporter?: {
1524
+ accountId?: string | undefined;
1525
+ displayName?: string | undefined;
1526
+ emailAddress?: string | undefined;
1527
+ } | undefined;
1528
+ issuetype?: {
1529
+ id?: string | undefined;
1530
+ name?: string | undefined;
1531
+ subtask?: boolean | undefined;
1532
+ } | undefined;
1533
+ project?: {
1534
+ key?: string | undefined;
1535
+ id?: string | undefined;
1536
+ name?: string | undefined;
1537
+ } | undefined;
1538
+ labels?: string[] | undefined;
1539
+ updated?: string | undefined;
1540
+ } | undefined;
1541
+ }>>;
1542
+ user: z.ZodOptional<z.ZodObject<{
1543
+ accountId: z.ZodOptional<z.ZodString>;
1544
+ displayName: z.ZodOptional<z.ZodString>;
1545
+ emailAddress: z.ZodOptional<z.ZodString>;
1546
+ }, "strip", z.ZodTypeAny, {
1547
+ accountId?: string | undefined;
1548
+ displayName?: string | undefined;
1549
+ emailAddress?: string | undefined;
1550
+ }, {
1551
+ accountId?: string | undefined;
1552
+ displayName?: string | undefined;
1553
+ emailAddress?: string | undefined;
1554
+ }>>;
1555
+ changelog: z.ZodOptional<z.ZodObject<{
1556
+ id: z.ZodOptional<z.ZodString>;
1557
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
1558
+ field: z.ZodOptional<z.ZodString>;
1559
+ fieldtype: z.ZodOptional<z.ZodString>;
1560
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1561
+ fromString: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1562
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1563
+ toString: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1564
+ }, "strip", z.ZodTypeAny, {
1565
+ from?: string | null | undefined;
1566
+ toString?: string | null | undefined;
1567
+ to?: string | null | undefined;
1568
+ field?: string | undefined;
1569
+ fieldtype?: string | undefined;
1570
+ fromString?: string | null | undefined;
1571
+ }, {
1572
+ from?: string | null | undefined;
1573
+ toString?: string | null | undefined;
1574
+ to?: string | null | undefined;
1575
+ field?: string | undefined;
1576
+ fieldtype?: string | undefined;
1577
+ fromString?: string | null | undefined;
1578
+ }>, "many">>;
1579
+ }, "strip", z.ZodTypeAny, {
1580
+ id?: string | undefined;
1581
+ items?: {
1582
+ from?: string | null | undefined;
1583
+ toString?: string | null | undefined;
1584
+ to?: string | null | undefined;
1585
+ field?: string | undefined;
1586
+ fieldtype?: string | undefined;
1587
+ fromString?: string | null | undefined;
1588
+ }[] | undefined;
1589
+ }, {
1590
+ id?: string | undefined;
1591
+ items?: {
1592
+ from?: string | null | undefined;
1593
+ toString?: string | null | undefined;
1594
+ to?: string | null | undefined;
1595
+ field?: string | undefined;
1596
+ fieldtype?: string | undefined;
1597
+ fromString?: string | null | undefined;
1598
+ }[] | undefined;
1599
+ }>>;
1600
+ }, "strip", z.ZodTypeAny, {
1601
+ webhookEvent: "jira:issue_updated";
1602
+ timestamp?: number | undefined;
1603
+ issue?: {
1604
+ key?: string | undefined;
1605
+ id?: string | undefined;
1606
+ self?: string | undefined;
1607
+ fields?: {
1608
+ priority?: {
1609
+ id?: string | undefined;
1610
+ name?: string | undefined;
1611
+ } | null | undefined;
1612
+ status?: {
1613
+ id?: string | undefined;
1614
+ name?: string | undefined;
1615
+ statusCategory?: {
1616
+ key?: string | undefined;
1617
+ name?: string | undefined;
1618
+ } | undefined;
1619
+ } | undefined;
1620
+ summary?: string | undefined;
1621
+ assignee?: {
1622
+ accountId?: string | undefined;
1623
+ displayName?: string | undefined;
1624
+ emailAddress?: string | undefined;
1625
+ } | null | undefined;
1626
+ reporter?: {
1627
+ accountId?: string | undefined;
1628
+ displayName?: string | undefined;
1629
+ emailAddress?: string | undefined;
1630
+ } | undefined;
1631
+ issuetype?: {
1632
+ id?: string | undefined;
1633
+ name?: string | undefined;
1634
+ subtask?: boolean | undefined;
1635
+ } | undefined;
1636
+ project?: {
1637
+ key?: string | undefined;
1638
+ id?: string | undefined;
1639
+ name?: string | undefined;
1640
+ } | undefined;
1641
+ labels?: string[] | undefined;
1642
+ updated?: string | undefined;
1643
+ } | undefined;
1644
+ } | undefined;
1645
+ user?: {
1646
+ accountId?: string | undefined;
1647
+ displayName?: string | undefined;
1648
+ emailAddress?: string | undefined;
1649
+ } | undefined;
1650
+ changelog?: {
1651
+ id?: string | undefined;
1652
+ items?: {
1653
+ from?: string | null | undefined;
1654
+ toString?: string | null | undefined;
1655
+ to?: string | null | undefined;
1656
+ field?: string | undefined;
1657
+ fieldtype?: string | undefined;
1658
+ fromString?: string | null | undefined;
1659
+ }[] | undefined;
1660
+ } | undefined;
1661
+ }, {
1662
+ webhookEvent: "jira:issue_updated";
1663
+ timestamp?: number | undefined;
1664
+ issue?: {
1665
+ key?: string | undefined;
1666
+ id?: string | undefined;
1667
+ self?: string | undefined;
1668
+ fields?: {
1669
+ priority?: {
1670
+ id?: string | undefined;
1671
+ name?: string | undefined;
1672
+ } | null | undefined;
1673
+ status?: {
1674
+ id?: string | undefined;
1675
+ name?: string | undefined;
1676
+ statusCategory?: {
1677
+ key?: string | undefined;
1678
+ name?: string | undefined;
1679
+ } | undefined;
1680
+ } | undefined;
1681
+ summary?: string | undefined;
1682
+ assignee?: {
1683
+ accountId?: string | undefined;
1684
+ displayName?: string | undefined;
1685
+ emailAddress?: string | undefined;
1686
+ } | null | undefined;
1687
+ reporter?: {
1688
+ accountId?: string | undefined;
1689
+ displayName?: string | undefined;
1690
+ emailAddress?: string | undefined;
1691
+ } | undefined;
1692
+ issuetype?: {
1693
+ id?: string | undefined;
1694
+ name?: string | undefined;
1695
+ subtask?: boolean | undefined;
1696
+ } | undefined;
1697
+ project?: {
1698
+ key?: string | undefined;
1699
+ id?: string | undefined;
1700
+ name?: string | undefined;
1701
+ } | undefined;
1702
+ labels?: string[] | undefined;
1703
+ updated?: string | undefined;
1704
+ } | undefined;
1705
+ } | undefined;
1706
+ user?: {
1707
+ accountId?: string | undefined;
1708
+ displayName?: string | undefined;
1709
+ emailAddress?: string | undefined;
1710
+ } | undefined;
1711
+ changelog?: {
1712
+ id?: string | undefined;
1713
+ items?: {
1714
+ from?: string | null | undefined;
1715
+ toString?: string | null | undefined;
1716
+ to?: string | null | undefined;
1717
+ field?: string | undefined;
1718
+ fieldtype?: string | undefined;
1719
+ fromString?: string | null | undefined;
1720
+ }[] | undefined;
1721
+ } | undefined;
1722
+ }>;
1723
+ export declare const JiraNewProjectPayloadSchema: z.ZodObject<{
1724
+ webhookEvent: z.ZodLiteral<"project_created">;
1725
+ timestamp: z.ZodOptional<z.ZodNumber>;
1726
+ project: z.ZodOptional<z.ZodObject<{
1727
+ id: z.ZodOptional<z.ZodString>;
1728
+ key: z.ZodOptional<z.ZodString>;
1729
+ name: z.ZodOptional<z.ZodString>;
1730
+ description: z.ZodOptional<z.ZodString>;
1731
+ projectTypeKey: z.ZodOptional<z.ZodString>;
1732
+ lead: z.ZodOptional<z.ZodObject<{
1733
+ accountId: z.ZodOptional<z.ZodString>;
1734
+ displayName: z.ZodOptional<z.ZodString>;
1735
+ emailAddress: z.ZodOptional<z.ZodString>;
1736
+ }, "strip", z.ZodTypeAny, {
1737
+ accountId?: string | undefined;
1738
+ displayName?: string | undefined;
1739
+ emailAddress?: string | undefined;
1740
+ }, {
1741
+ accountId?: string | undefined;
1742
+ displayName?: string | undefined;
1743
+ emailAddress?: string | undefined;
1744
+ }>>;
1745
+ self: z.ZodOptional<z.ZodString>;
1746
+ }, "strip", z.ZodTypeAny, {
1747
+ key?: string | undefined;
1748
+ id?: string | undefined;
1749
+ name?: string | undefined;
1750
+ description?: string | undefined;
1751
+ self?: string | undefined;
1752
+ projectTypeKey?: string | undefined;
1753
+ lead?: {
1754
+ accountId?: string | undefined;
1755
+ displayName?: string | undefined;
1756
+ emailAddress?: string | undefined;
1757
+ } | undefined;
1758
+ }, {
1759
+ key?: string | undefined;
1760
+ id?: string | undefined;
1761
+ name?: string | undefined;
1762
+ description?: string | undefined;
1763
+ self?: string | undefined;
1764
+ projectTypeKey?: string | undefined;
1765
+ lead?: {
1766
+ accountId?: string | undefined;
1767
+ displayName?: string | undefined;
1768
+ emailAddress?: string | undefined;
1769
+ } | undefined;
1770
+ }>>;
1771
+ }, "strip", z.ZodTypeAny, {
1772
+ webhookEvent: "project_created";
1773
+ project?: {
1774
+ key?: string | undefined;
1775
+ id?: string | undefined;
1776
+ name?: string | undefined;
1777
+ description?: string | undefined;
1778
+ self?: string | undefined;
1779
+ projectTypeKey?: string | undefined;
1780
+ lead?: {
1781
+ accountId?: string | undefined;
1782
+ displayName?: string | undefined;
1783
+ emailAddress?: string | undefined;
1784
+ } | undefined;
1785
+ } | undefined;
1786
+ timestamp?: number | undefined;
1787
+ }, {
1788
+ webhookEvent: "project_created";
1789
+ project?: {
1790
+ key?: string | undefined;
1791
+ id?: string | undefined;
1792
+ name?: string | undefined;
1793
+ description?: string | undefined;
1794
+ self?: string | undefined;
1795
+ projectTypeKey?: string | undefined;
1796
+ lead?: {
1797
+ accountId?: string | undefined;
1798
+ displayName?: string | undefined;
1799
+ emailAddress?: string | undefined;
1800
+ } | undefined;
1801
+ } | undefined;
1802
+ timestamp?: number | undefined;
1803
+ }>;
1804
+ export type JiraWebhookOutputs = {
1805
+ newIssue: NewIssueEvent;
1806
+ updatedIssue: UpdatedIssueEvent;
1807
+ newProject: NewProjectEvent;
1808
+ };
1809
+ export declare function createJiraMatch(webhookEvent: string): CorsairWebhookMatcher;
1810
+ /**
1811
+ * Verifies a Jira webhook signature using HMAC SHA256.
1812
+ * Jira sends the signature in the 'x-hub-signature' header as 'sha256={hash}'.
1813
+ */
1814
+ export declare function verifyJiraWebhookSignature(request: WebhookRequest<unknown>, secret: string): {
1815
+ valid: boolean;
1816
+ error?: string;
1817
+ };
1818
+ //# sourceMappingURL=types.d.ts.map