@corsair-dev/linear 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 +32 -0
  3. package/dist/client.d.ts.map +1 -0
  4. package/dist/endpoints/comments.d.ts +6 -0
  5. package/dist/endpoints/comments.d.ts.map +1 -0
  6. package/dist/endpoints/index.d.ts +1515 -0
  7. package/dist/endpoints/index.d.ts.map +1 -0
  8. package/dist/endpoints/issues.d.ts +7 -0
  9. package/dist/endpoints/issues.d.ts.map +1 -0
  10. package/dist/endpoints/projects.d.ts +7 -0
  11. package/dist/endpoints/projects.d.ts.map +1 -0
  12. package/dist/endpoints/teams.d.ts +4 -0
  13. package/dist/endpoints/teams.d.ts.map +1 -0
  14. package/dist/endpoints/types.d.ts +8804 -0
  15. package/dist/endpoints/types.d.ts.map +1 -0
  16. package/dist/endpoints/users.d.ts +4 -0
  17. package/dist/endpoints/users.d.ts.map +1 -0
  18. package/dist/error-handlers.d.ts +46 -0
  19. package/dist/error-handlers.d.ts.map +1 -0
  20. package/dist/index.d.ts +6195 -0
  21. package/dist/index.d.ts.map +1 -0
  22. package/dist/index.js +548 -0
  23. package/dist/schema/database.d.ts +234 -0
  24. package/dist/schema/database.d.ts.map +1 -0
  25. package/dist/schema/index.d.ts +233 -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/comments.d.ts +5 -0
  30. package/dist/webhooks/comments.d.ts.map +1 -0
  31. package/dist/webhooks/index.d.ts +654 -0
  32. package/dist/webhooks/index.d.ts.map +1 -0
  33. package/dist/webhooks/issues.d.ts +5 -0
  34. package/dist/webhooks/issues.d.ts.map +1 -0
  35. package/dist/webhooks/projects.d.ts +5 -0
  36. package/dist/webhooks/projects.d.ts.map +1 -0
  37. package/dist/webhooks/types.d.ts +2880 -0
  38. package/dist/webhooks/types.d.ts.map +1 -0
  39. package/package.json +40 -0
@@ -0,0 +1,654 @@
1
+ export declare const CommentWebhooks: {
2
+ create: {
3
+ match: import("corsair/core").CorsairWebhookMatcher;
4
+ handler: import("corsair/core").CorsairWebhookHandler<import("..").LinearContext, {
5
+ type: "Comment";
6
+ data: {
7
+ id: string;
8
+ body: string;
9
+ createdAt: string;
10
+ updatedAt: string;
11
+ issueId: string;
12
+ userId: string;
13
+ editedAt?: string | undefined;
14
+ } & {
15
+ [k: string]: any;
16
+ };
17
+ createdAt: string;
18
+ url: string;
19
+ action: "create";
20
+ organizationId: string;
21
+ webhookId: string;
22
+ }, {
23
+ type: "Comment";
24
+ data: {
25
+ id: string;
26
+ body: string;
27
+ createdAt: string;
28
+ updatedAt: string;
29
+ issueId: string;
30
+ userId: string;
31
+ editedAt?: string | undefined;
32
+ } & {
33
+ [k: string]: any;
34
+ };
35
+ createdAt: string;
36
+ url: string;
37
+ action: "create";
38
+ organizationId: string;
39
+ webhookId: string;
40
+ }>;
41
+ };
42
+ update: {
43
+ match: import("corsair/core").CorsairWebhookMatcher;
44
+ handler: import("corsair/core").CorsairWebhookHandler<import("..").LinearContext, {
45
+ type: "Comment";
46
+ data: {
47
+ id: string;
48
+ body: string;
49
+ createdAt: string;
50
+ updatedAt: string;
51
+ issueId: string;
52
+ userId: string;
53
+ editedAt?: string | undefined;
54
+ } & {
55
+ [k: string]: any;
56
+ };
57
+ createdAt: string;
58
+ url: string;
59
+ action: "update";
60
+ organizationId: string;
61
+ webhookId: string;
62
+ updatedFrom?: import("zod").objectOutputType<{
63
+ id: import("zod").ZodOptional<import("zod").ZodString>;
64
+ body: import("zod").ZodOptional<import("zod").ZodString>;
65
+ editedAt: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
66
+ createdAt: import("zod").ZodOptional<import("zod").ZodString>;
67
+ updatedAt: import("zod").ZodOptional<import("zod").ZodString>;
68
+ issueId: import("zod").ZodOptional<import("zod").ZodString>;
69
+ userId: import("zod").ZodOptional<import("zod").ZodString>;
70
+ }, import("zod").ZodAny, "strip"> | undefined;
71
+ }, {
72
+ type: "Comment";
73
+ data: {
74
+ id: string;
75
+ body: string;
76
+ createdAt: string;
77
+ updatedAt: string;
78
+ issueId: string;
79
+ userId: string;
80
+ editedAt?: string | undefined;
81
+ } & {
82
+ [k: string]: any;
83
+ };
84
+ createdAt: string;
85
+ url: string;
86
+ action: "update";
87
+ organizationId: string;
88
+ webhookId: string;
89
+ updatedFrom?: import("zod").objectOutputType<{
90
+ id: import("zod").ZodOptional<import("zod").ZodString>;
91
+ body: import("zod").ZodOptional<import("zod").ZodString>;
92
+ editedAt: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
93
+ createdAt: import("zod").ZodOptional<import("zod").ZodString>;
94
+ updatedAt: import("zod").ZodOptional<import("zod").ZodString>;
95
+ issueId: import("zod").ZodOptional<import("zod").ZodString>;
96
+ userId: import("zod").ZodOptional<import("zod").ZodString>;
97
+ }, import("zod").ZodAny, "strip"> | undefined;
98
+ }>;
99
+ };
100
+ remove: {
101
+ match: import("corsair/core").CorsairWebhookMatcher;
102
+ handler: import("corsair/core").CorsairWebhookHandler<import("..").LinearContext, {
103
+ type: "Comment";
104
+ data: {
105
+ id: string;
106
+ body: string;
107
+ createdAt: string;
108
+ updatedAt: string;
109
+ issueId: string;
110
+ userId: string;
111
+ editedAt?: string | undefined;
112
+ } & {
113
+ [k: string]: any;
114
+ };
115
+ createdAt: string;
116
+ url: string;
117
+ action: "remove";
118
+ organizationId: string;
119
+ webhookId: string;
120
+ }, {
121
+ type: "Comment";
122
+ data: {
123
+ id: string;
124
+ body: string;
125
+ createdAt: string;
126
+ updatedAt: string;
127
+ issueId: string;
128
+ userId: string;
129
+ editedAt?: string | undefined;
130
+ } & {
131
+ [k: string]: any;
132
+ };
133
+ createdAt: string;
134
+ url: string;
135
+ action: "remove";
136
+ organizationId: string;
137
+ webhookId: string;
138
+ }>;
139
+ };
140
+ };
141
+ export declare const IssueWebhooks: {
142
+ create: {
143
+ match: import("corsair/core").CorsairWebhookMatcher;
144
+ handler: import("corsair/core").CorsairWebhookHandler<import("..").LinearContext, {
145
+ type: "Issue";
146
+ data: {
147
+ priority: 0 | 3 | 2 | 1 | 4;
148
+ id: string;
149
+ createdAt: string;
150
+ updatedAt: string;
151
+ identifier: string;
152
+ title: string;
153
+ sortOrder: number;
154
+ previousIdentifiers: string[];
155
+ branchName: string;
156
+ customerTicketCount: number;
157
+ stateId: string;
158
+ teamId: string;
159
+ creatorId: string;
160
+ description?: string | undefined;
161
+ estimate?: number | undefined;
162
+ startedAt?: string | undefined;
163
+ completedAt?: string | undefined;
164
+ canceledAt?: string | undefined;
165
+ autoArchivedAt?: string | undefined;
166
+ autoClosedAt?: string | undefined;
167
+ dueDate?: string | undefined;
168
+ trashed?: boolean | undefined;
169
+ snoozedUntilAt?: string | undefined;
170
+ } & {
171
+ [k: string]: any;
172
+ };
173
+ createdAt: string;
174
+ url: string;
175
+ action: "create";
176
+ organizationId: string;
177
+ webhookId: string;
178
+ }, {
179
+ type: "Issue";
180
+ data: {
181
+ priority: 0 | 3 | 2 | 1 | 4;
182
+ id: string;
183
+ createdAt: string;
184
+ updatedAt: string;
185
+ identifier: string;
186
+ title: string;
187
+ sortOrder: number;
188
+ previousIdentifiers: string[];
189
+ branchName: string;
190
+ customerTicketCount: number;
191
+ stateId: string;
192
+ teamId: string;
193
+ creatorId: string;
194
+ description?: string | undefined;
195
+ estimate?: number | undefined;
196
+ startedAt?: string | undefined;
197
+ completedAt?: string | undefined;
198
+ canceledAt?: string | undefined;
199
+ autoArchivedAt?: string | undefined;
200
+ autoClosedAt?: string | undefined;
201
+ dueDate?: string | undefined;
202
+ trashed?: boolean | undefined;
203
+ snoozedUntilAt?: string | undefined;
204
+ } & {
205
+ [k: string]: any;
206
+ };
207
+ createdAt: string;
208
+ url: string;
209
+ action: "create";
210
+ organizationId: string;
211
+ webhookId: string;
212
+ }>;
213
+ };
214
+ update: {
215
+ match: import("corsair/core").CorsairWebhookMatcher;
216
+ handler: import("corsair/core").CorsairWebhookHandler<import("..").LinearContext, {
217
+ type: "Issue";
218
+ data: {
219
+ priority: 0 | 3 | 2 | 1 | 4;
220
+ id: string;
221
+ createdAt: string;
222
+ updatedAt: string;
223
+ identifier: string;
224
+ title: string;
225
+ sortOrder: number;
226
+ previousIdentifiers: string[];
227
+ branchName: string;
228
+ customerTicketCount: number;
229
+ stateId: string;
230
+ teamId: string;
231
+ creatorId: string;
232
+ description?: string | undefined;
233
+ estimate?: number | undefined;
234
+ startedAt?: string | undefined;
235
+ completedAt?: string | undefined;
236
+ canceledAt?: string | undefined;
237
+ autoArchivedAt?: string | undefined;
238
+ autoClosedAt?: string | undefined;
239
+ dueDate?: string | undefined;
240
+ trashed?: boolean | undefined;
241
+ snoozedUntilAt?: string | undefined;
242
+ } & {
243
+ [k: string]: any;
244
+ };
245
+ createdAt: string;
246
+ url: string;
247
+ action: "update";
248
+ organizationId: string;
249
+ webhookId: string;
250
+ updatedFrom?: import("zod").objectOutputType<{
251
+ id: import("zod").ZodOptional<import("zod").ZodString>;
252
+ identifier: import("zod").ZodOptional<import("zod").ZodString>;
253
+ title: import("zod").ZodOptional<import("zod").ZodString>;
254
+ description: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
255
+ priority: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<0>, import("zod").ZodLiteral<1>, import("zod").ZodLiteral<2>, import("zod").ZodLiteral<3>, import("zod").ZodLiteral<4>]>>;
256
+ estimate: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNumber>>;
257
+ sortOrder: import("zod").ZodOptional<import("zod").ZodNumber>;
258
+ startedAt: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
259
+ completedAt: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
260
+ canceledAt: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
261
+ autoArchivedAt: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
262
+ autoClosedAt: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
263
+ dueDate: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
264
+ trashed: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodBoolean>>;
265
+ snoozedUntilAt: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
266
+ previousIdentifiers: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
267
+ createdAt: import("zod").ZodOptional<import("zod").ZodString>;
268
+ updatedAt: import("zod").ZodOptional<import("zod").ZodString>;
269
+ branchName: import("zod").ZodOptional<import("zod").ZodString>;
270
+ customerTicketCount: import("zod").ZodOptional<import("zod").ZodNumber>;
271
+ stateId: import("zod").ZodOptional<import("zod").ZodString>;
272
+ teamId: import("zod").ZodOptional<import("zod").ZodString>;
273
+ creatorId: import("zod").ZodOptional<import("zod").ZodString>;
274
+ }, import("zod").ZodAny, "strip"> | undefined;
275
+ }, {
276
+ type: "Issue";
277
+ data: {
278
+ priority: 0 | 3 | 2 | 1 | 4;
279
+ id: string;
280
+ createdAt: string;
281
+ updatedAt: string;
282
+ identifier: string;
283
+ title: string;
284
+ sortOrder: number;
285
+ previousIdentifiers: string[];
286
+ branchName: string;
287
+ customerTicketCount: number;
288
+ stateId: string;
289
+ teamId: string;
290
+ creatorId: string;
291
+ description?: string | undefined;
292
+ estimate?: number | undefined;
293
+ startedAt?: string | undefined;
294
+ completedAt?: string | undefined;
295
+ canceledAt?: string | undefined;
296
+ autoArchivedAt?: string | undefined;
297
+ autoClosedAt?: string | undefined;
298
+ dueDate?: string | undefined;
299
+ trashed?: boolean | undefined;
300
+ snoozedUntilAt?: string | undefined;
301
+ } & {
302
+ [k: string]: any;
303
+ };
304
+ createdAt: string;
305
+ url: string;
306
+ action: "update";
307
+ organizationId: string;
308
+ webhookId: string;
309
+ updatedFrom?: import("zod").objectOutputType<{
310
+ id: import("zod").ZodOptional<import("zod").ZodString>;
311
+ identifier: import("zod").ZodOptional<import("zod").ZodString>;
312
+ title: import("zod").ZodOptional<import("zod").ZodString>;
313
+ description: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
314
+ priority: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<0>, import("zod").ZodLiteral<1>, import("zod").ZodLiteral<2>, import("zod").ZodLiteral<3>, import("zod").ZodLiteral<4>]>>;
315
+ estimate: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNumber>>;
316
+ sortOrder: import("zod").ZodOptional<import("zod").ZodNumber>;
317
+ startedAt: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
318
+ completedAt: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
319
+ canceledAt: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
320
+ autoArchivedAt: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
321
+ autoClosedAt: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
322
+ dueDate: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
323
+ trashed: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodBoolean>>;
324
+ snoozedUntilAt: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
325
+ previousIdentifiers: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
326
+ createdAt: import("zod").ZodOptional<import("zod").ZodString>;
327
+ updatedAt: import("zod").ZodOptional<import("zod").ZodString>;
328
+ branchName: import("zod").ZodOptional<import("zod").ZodString>;
329
+ customerTicketCount: import("zod").ZodOptional<import("zod").ZodNumber>;
330
+ stateId: import("zod").ZodOptional<import("zod").ZodString>;
331
+ teamId: import("zod").ZodOptional<import("zod").ZodString>;
332
+ creatorId: import("zod").ZodOptional<import("zod").ZodString>;
333
+ }, import("zod").ZodAny, "strip"> | undefined;
334
+ }>;
335
+ };
336
+ remove: {
337
+ match: import("corsair/core").CorsairWebhookMatcher;
338
+ handler: import("corsair/core").CorsairWebhookHandler<import("..").LinearContext, {
339
+ type: "Issue";
340
+ data: {
341
+ priority: 0 | 3 | 2 | 1 | 4;
342
+ id: string;
343
+ createdAt: string;
344
+ updatedAt: string;
345
+ identifier: string;
346
+ title: string;
347
+ sortOrder: number;
348
+ previousIdentifiers: string[];
349
+ branchName: string;
350
+ customerTicketCount: number;
351
+ stateId: string;
352
+ teamId: string;
353
+ creatorId: string;
354
+ description?: string | undefined;
355
+ estimate?: number | undefined;
356
+ startedAt?: string | undefined;
357
+ completedAt?: string | undefined;
358
+ canceledAt?: string | undefined;
359
+ autoArchivedAt?: string | undefined;
360
+ autoClosedAt?: string | undefined;
361
+ dueDate?: string | undefined;
362
+ trashed?: boolean | undefined;
363
+ snoozedUntilAt?: string | undefined;
364
+ } & {
365
+ [k: string]: any;
366
+ };
367
+ createdAt: string;
368
+ url: string;
369
+ action: "remove";
370
+ organizationId: string;
371
+ webhookId: string;
372
+ }, {
373
+ type: "Issue";
374
+ data: {
375
+ priority: 0 | 3 | 2 | 1 | 4;
376
+ id: string;
377
+ createdAt: string;
378
+ updatedAt: string;
379
+ identifier: string;
380
+ title: string;
381
+ sortOrder: number;
382
+ previousIdentifiers: string[];
383
+ branchName: string;
384
+ customerTicketCount: number;
385
+ stateId: string;
386
+ teamId: string;
387
+ creatorId: string;
388
+ description?: string | undefined;
389
+ estimate?: number | undefined;
390
+ startedAt?: string | undefined;
391
+ completedAt?: string | undefined;
392
+ canceledAt?: string | undefined;
393
+ autoArchivedAt?: string | undefined;
394
+ autoClosedAt?: string | undefined;
395
+ dueDate?: string | undefined;
396
+ trashed?: boolean | undefined;
397
+ snoozedUntilAt?: string | undefined;
398
+ } & {
399
+ [k: string]: any;
400
+ };
401
+ createdAt: string;
402
+ url: string;
403
+ action: "remove";
404
+ organizationId: string;
405
+ webhookId: string;
406
+ }>;
407
+ };
408
+ };
409
+ export declare const ProjectWebhooks: {
410
+ create: {
411
+ match: import("corsair/core").CorsairWebhookMatcher;
412
+ handler: import("corsair/core").CorsairWebhookHandler<import("..").LinearContext, {
413
+ type: "Project";
414
+ data: {
415
+ priority: 0 | 3 | 2 | 1 | 4;
416
+ id: string;
417
+ name: string;
418
+ scope: number;
419
+ createdAt: string;
420
+ updatedAt: string;
421
+ sortOrder: number;
422
+ state: "completed" | "planned" | "started" | "paused" | "canceled";
423
+ progress: number;
424
+ url: string;
425
+ completedScopeHistory: number[];
426
+ inProgressScopeHistory: number[];
427
+ description?: string | undefined;
428
+ startedAt?: string | undefined;
429
+ completedAt?: string | undefined;
430
+ canceledAt?: string | undefined;
431
+ icon?: string | undefined;
432
+ color?: string | undefined;
433
+ startDate?: string | undefined;
434
+ targetDate?: string | undefined;
435
+ } & {
436
+ [k: string]: any;
437
+ };
438
+ createdAt: string;
439
+ url: string;
440
+ action: "create";
441
+ organizationId: string;
442
+ webhookId: string;
443
+ }, {
444
+ type: "Project";
445
+ data: {
446
+ priority: 0 | 3 | 2 | 1 | 4;
447
+ id: string;
448
+ name: string;
449
+ scope: number;
450
+ createdAt: string;
451
+ updatedAt: string;
452
+ sortOrder: number;
453
+ state: "completed" | "planned" | "started" | "paused" | "canceled";
454
+ progress: number;
455
+ url: string;
456
+ completedScopeHistory: number[];
457
+ inProgressScopeHistory: number[];
458
+ description?: string | undefined;
459
+ startedAt?: string | undefined;
460
+ completedAt?: string | undefined;
461
+ canceledAt?: string | undefined;
462
+ icon?: string | undefined;
463
+ color?: string | undefined;
464
+ startDate?: string | undefined;
465
+ targetDate?: string | undefined;
466
+ } & {
467
+ [k: string]: any;
468
+ };
469
+ createdAt: string;
470
+ url: string;
471
+ action: "create";
472
+ organizationId: string;
473
+ webhookId: string;
474
+ }>;
475
+ };
476
+ update: {
477
+ match: import("corsair/core").CorsairWebhookMatcher;
478
+ handler: import("corsair/core").CorsairWebhookHandler<import("..").LinearContext, {
479
+ type: "Project";
480
+ data: {
481
+ priority: 0 | 3 | 2 | 1 | 4;
482
+ id: string;
483
+ name: string;
484
+ scope: number;
485
+ createdAt: string;
486
+ updatedAt: string;
487
+ sortOrder: number;
488
+ state: "completed" | "planned" | "started" | "paused" | "canceled";
489
+ progress: number;
490
+ url: string;
491
+ completedScopeHistory: number[];
492
+ inProgressScopeHistory: number[];
493
+ description?: string | undefined;
494
+ startedAt?: string | undefined;
495
+ completedAt?: string | undefined;
496
+ canceledAt?: string | undefined;
497
+ icon?: string | undefined;
498
+ color?: string | undefined;
499
+ startDate?: string | undefined;
500
+ targetDate?: string | undefined;
501
+ } & {
502
+ [k: string]: any;
503
+ };
504
+ createdAt: string;
505
+ url: string;
506
+ action: "update";
507
+ organizationId: string;
508
+ webhookId: string;
509
+ updatedFrom?: import("zod").objectOutputType<{
510
+ id: import("zod").ZodOptional<import("zod").ZodString>;
511
+ name: import("zod").ZodOptional<import("zod").ZodString>;
512
+ description: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
513
+ icon: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
514
+ color: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
515
+ priority: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<0>, import("zod").ZodLiteral<1>, import("zod").ZodLiteral<2>, import("zod").ZodLiteral<3>, import("zod").ZodLiteral<4>]>>;
516
+ sortOrder: import("zod").ZodOptional<import("zod").ZodNumber>;
517
+ state: import("zod").ZodOptional<import("zod").ZodEnum<["planned", "started", "paused", "completed", "canceled"]>>;
518
+ progress: import("zod").ZodOptional<import("zod").ZodNumber>;
519
+ url: import("zod").ZodOptional<import("zod").ZodString>;
520
+ startDate: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
521
+ targetDate: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
522
+ completedAt: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
523
+ canceledAt: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
524
+ startedAt: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
525
+ completedScopeHistory: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
526
+ inProgressScopeHistory: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
527
+ scope: import("zod").ZodOptional<import("zod").ZodNumber>;
528
+ createdAt: import("zod").ZodOptional<import("zod").ZodString>;
529
+ updatedAt: import("zod").ZodOptional<import("zod").ZodString>;
530
+ }, import("zod").ZodAny, "strip"> | undefined;
531
+ }, {
532
+ type: "Project";
533
+ data: {
534
+ priority: 0 | 3 | 2 | 1 | 4;
535
+ id: string;
536
+ name: string;
537
+ scope: number;
538
+ createdAt: string;
539
+ updatedAt: string;
540
+ sortOrder: number;
541
+ state: "completed" | "planned" | "started" | "paused" | "canceled";
542
+ progress: number;
543
+ url: string;
544
+ completedScopeHistory: number[];
545
+ inProgressScopeHistory: number[];
546
+ description?: string | undefined;
547
+ startedAt?: string | undefined;
548
+ completedAt?: string | undefined;
549
+ canceledAt?: string | undefined;
550
+ icon?: string | undefined;
551
+ color?: string | undefined;
552
+ startDate?: string | undefined;
553
+ targetDate?: string | undefined;
554
+ } & {
555
+ [k: string]: any;
556
+ };
557
+ createdAt: string;
558
+ url: string;
559
+ action: "update";
560
+ organizationId: string;
561
+ webhookId: string;
562
+ updatedFrom?: import("zod").objectOutputType<{
563
+ id: import("zod").ZodOptional<import("zod").ZodString>;
564
+ name: import("zod").ZodOptional<import("zod").ZodString>;
565
+ description: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
566
+ icon: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
567
+ color: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
568
+ priority: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<0>, import("zod").ZodLiteral<1>, import("zod").ZodLiteral<2>, import("zod").ZodLiteral<3>, import("zod").ZodLiteral<4>]>>;
569
+ sortOrder: import("zod").ZodOptional<import("zod").ZodNumber>;
570
+ state: import("zod").ZodOptional<import("zod").ZodEnum<["planned", "started", "paused", "completed", "canceled"]>>;
571
+ progress: import("zod").ZodOptional<import("zod").ZodNumber>;
572
+ url: import("zod").ZodOptional<import("zod").ZodString>;
573
+ startDate: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
574
+ targetDate: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
575
+ completedAt: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
576
+ canceledAt: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
577
+ startedAt: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
578
+ completedScopeHistory: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
579
+ inProgressScopeHistory: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
580
+ scope: import("zod").ZodOptional<import("zod").ZodNumber>;
581
+ createdAt: import("zod").ZodOptional<import("zod").ZodString>;
582
+ updatedAt: import("zod").ZodOptional<import("zod").ZodString>;
583
+ }, import("zod").ZodAny, "strip"> | undefined;
584
+ }>;
585
+ };
586
+ remove: {
587
+ match: import("corsair/core").CorsairWebhookMatcher;
588
+ handler: import("corsair/core").CorsairWebhookHandler<import("..").LinearContext, {
589
+ type: "Project";
590
+ data: {
591
+ priority: 0 | 3 | 2 | 1 | 4;
592
+ id: string;
593
+ name: string;
594
+ scope: number;
595
+ createdAt: string;
596
+ updatedAt: string;
597
+ sortOrder: number;
598
+ state: "completed" | "planned" | "started" | "paused" | "canceled";
599
+ progress: number;
600
+ url: string;
601
+ completedScopeHistory: number[];
602
+ inProgressScopeHistory: number[];
603
+ description?: string | undefined;
604
+ startedAt?: string | undefined;
605
+ completedAt?: string | undefined;
606
+ canceledAt?: string | undefined;
607
+ icon?: string | undefined;
608
+ color?: string | undefined;
609
+ startDate?: string | undefined;
610
+ targetDate?: string | undefined;
611
+ } & {
612
+ [k: string]: any;
613
+ };
614
+ createdAt: string;
615
+ url: string;
616
+ action: "remove";
617
+ organizationId: string;
618
+ webhookId: string;
619
+ }, {
620
+ type: "Project";
621
+ data: {
622
+ priority: 0 | 3 | 2 | 1 | 4;
623
+ id: string;
624
+ name: string;
625
+ scope: number;
626
+ createdAt: string;
627
+ updatedAt: string;
628
+ sortOrder: number;
629
+ state: "completed" | "planned" | "started" | "paused" | "canceled";
630
+ progress: number;
631
+ url: string;
632
+ completedScopeHistory: number[];
633
+ inProgressScopeHistory: number[];
634
+ description?: string | undefined;
635
+ startedAt?: string | undefined;
636
+ completedAt?: string | undefined;
637
+ canceledAt?: string | undefined;
638
+ icon?: string | undefined;
639
+ color?: string | undefined;
640
+ startDate?: string | undefined;
641
+ targetDate?: string | undefined;
642
+ } & {
643
+ [k: string]: any;
644
+ };
645
+ createdAt: string;
646
+ url: string;
647
+ action: "remove";
648
+ organizationId: string;
649
+ webhookId: string;
650
+ }>;
651
+ };
652
+ };
653
+ export * from './types';
654
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../webhooks/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI3B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIzB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI3B,CAAC;AAEF,cAAc,SAAS,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { LinearWebhooks } from '..';
2
+ export declare const issueCreate: LinearWebhooks['issueCreate'];
3
+ export declare const issueUpdate: LinearWebhooks['issueUpdate'];
4
+ export declare const issueRemove: LinearWebhooks['issueRemove'];
5
+ //# sourceMappingURL=issues.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"issues.d.ts","sourceRoot":"","sources":["../../webhooks/issues.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAGzC,eAAO,MAAM,WAAW,EAAE,cAAc,CAAC,aAAa,CAwErD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,cAAc,CAAC,aAAa,CAyErD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,cAAc,CAAC,aAAa,CAuDrD,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { LinearWebhooks } from '..';
2
+ export declare const projectCreate: LinearWebhooks['projectCreate'];
3
+ export declare const projectUpdate: LinearWebhooks['projectUpdate'];
4
+ export declare const projectRemove: LinearWebhooks['projectRemove'];
5
+ //# sourceMappingURL=projects.d.ts.map