@channel.io/app-sdk-core 0.28.0 → 0.29.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.
@@ -0,0 +1,1568 @@
1
+ import type { IssueExecuteIssueTransitionOutput as ProtoIssueExecuteIssueTransitionOutput, IssueExecuteIssueTransitionInput as ProtoIssueExecuteIssueTransitionInput, ExternalIssue as ProtoExternalIssue, IssueError as ProtoIssueError, IssueTransition as ProtoIssueTransition, IssueSearchIssuesInput as ProtoIssueSearchIssuesInput, IssueSearchIssuesOutput as ProtoIssueSearchIssuesOutput, IssueGetIssueInput as ProtoIssueGetIssueInput, IssueGetIssueOutput as ProtoIssueGetIssueOutput, IssueGetIssuesInput as ProtoIssueGetIssuesInput, IssueGetIssuesOutput as ProtoIssueGetIssuesOutput, IssueGetIssueTransitionsInput as ProtoIssueGetIssueTransitionsInput, IssueGetIssueTransitionsOutput as ProtoIssueGetIssueTransitionsOutput } from "../gen/channel/app/sdk/v1/extension.js";
2
+ type ProtoBacked<T, Proto> = T & Omit<Proto, keyof T>;
3
+ import { z } from "zod";
4
+ export declare const ExternalIssueStateSchema: z.ZodEnum<["open", "unstarted", "started", "completed", "canceled"]>;
5
+ export declare const IssueProviderStateSchema: z.ZodObject<{
6
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ name: z.ZodString;
9
+ }, "strict", z.ZodTypeAny, {
10
+ name: string;
11
+ id?: string | null | undefined;
12
+ category?: string | null | undefined;
13
+ }, {
14
+ name: string;
15
+ id?: string | null | undefined;
16
+ category?: string | null | undefined;
17
+ }>;
18
+ export declare const ExternalIssueSchema: z.ZodObject<{
19
+ issueId: z.ZodString;
20
+ identifier: z.ZodString;
21
+ title: z.ZodString;
22
+ url: z.ZodString;
23
+ state: z.ZodEnum<["open", "unstarted", "started", "completed", "canceled"]>;
24
+ providerState: z.ZodObject<{
25
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ name: z.ZodString;
28
+ }, "strict", z.ZodTypeAny, {
29
+ name: string;
30
+ id?: string | null | undefined;
31
+ category?: string | null | undefined;
32
+ }, {
33
+ name: string;
34
+ id?: string | null | undefined;
35
+ category?: string | null | undefined;
36
+ }>;
37
+ createdAt: z.ZodString;
38
+ container: z.ZodOptional<z.ZodObject<{
39
+ id: z.ZodString;
40
+ name: z.ZodString;
41
+ }, "strict", z.ZodTypeAny, {
42
+ name: string;
43
+ id: string;
44
+ }, {
45
+ name: string;
46
+ id: string;
47
+ }>>;
48
+ description: z.ZodOptional<z.ZodString>;
49
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ closedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ closedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
52
+ name: z.ZodString;
53
+ id: z.ZodOptional<z.ZodString>;
54
+ url: z.ZodOptional<z.ZodString>;
55
+ type: z.ZodOptional<z.ZodEnum<["user", "bot"]>>;
56
+ }, "strict", z.ZodTypeAny, {
57
+ name: string;
58
+ type?: "user" | "bot" | undefined;
59
+ id?: string | undefined;
60
+ url?: string | undefined;
61
+ }, {
62
+ name: string;
63
+ type?: "user" | "bot" | undefined;
64
+ id?: string | undefined;
65
+ url?: string | undefined;
66
+ }>>>;
67
+ }, "strict", z.ZodTypeAny, {
68
+ title: string;
69
+ url: string;
70
+ state: "completed" | "canceled" | "open" | "unstarted" | "started";
71
+ createdAt: string;
72
+ identifier: string;
73
+ issueId: string;
74
+ providerState: {
75
+ name: string;
76
+ id?: string | null | undefined;
77
+ category?: string | null | undefined;
78
+ };
79
+ description?: string | undefined;
80
+ updatedAt?: string | null | undefined;
81
+ closedAt?: string | null | undefined;
82
+ container?: {
83
+ name: string;
84
+ id: string;
85
+ } | undefined;
86
+ closedBy?: {
87
+ name: string;
88
+ type?: "user" | "bot" | undefined;
89
+ id?: string | undefined;
90
+ url?: string | undefined;
91
+ } | null | undefined;
92
+ }, {
93
+ title: string;
94
+ url: string;
95
+ state: "completed" | "canceled" | "open" | "unstarted" | "started";
96
+ createdAt: string;
97
+ identifier: string;
98
+ issueId: string;
99
+ providerState: {
100
+ name: string;
101
+ id?: string | null | undefined;
102
+ category?: string | null | undefined;
103
+ };
104
+ description?: string | undefined;
105
+ updatedAt?: string | null | undefined;
106
+ closedAt?: string | null | undefined;
107
+ container?: {
108
+ name: string;
109
+ id: string;
110
+ } | undefined;
111
+ closedBy?: {
112
+ name: string;
113
+ type?: "user" | "bot" | undefined;
114
+ id?: string | undefined;
115
+ url?: string | undefined;
116
+ } | null | undefined;
117
+ }>;
118
+ export declare const IssueErrorSchema: z.ZodObject<{
119
+ type: z.ZodEnum<["invalidArgument", "validationFailed", "invalidCursor", "unsupported", "unsupportedFilter", "forbidden", "notFound", "connectionUnavailable", "rateLimited", "temporaryFailure", "conflict", "invalidTransition", "outcomeUnknown"]>;
120
+ message: z.ZodString;
121
+ retryAfterMs: z.ZodOptional<z.ZodNumber>;
122
+ }, "strict", z.ZodTypeAny, {
123
+ message: string;
124
+ type: "unsupported" | "invalidArgument" | "validationFailed" | "invalidCursor" | "unsupportedFilter" | "forbidden" | "notFound" | "connectionUnavailable" | "rateLimited" | "temporaryFailure" | "conflict" | "invalidTransition" | "outcomeUnknown";
125
+ retryAfterMs?: number | undefined;
126
+ }, {
127
+ message: string;
128
+ type: "unsupported" | "invalidArgument" | "validationFailed" | "invalidCursor" | "unsupportedFilter" | "forbidden" | "notFound" | "connectionUnavailable" | "rateLimited" | "temporaryFailure" | "conflict" | "invalidTransition" | "outcomeUnknown";
129
+ retryAfterMs?: number | undefined;
130
+ }>;
131
+ export declare const IssueTransitionInputSchema: z.ZodObject<{
132
+ type: z.ZodLiteral<"object">;
133
+ properties: z.ZodRecord<z.ZodString, z.ZodObject<{
134
+ type: z.ZodEnum<["string", "number", "integer", "boolean"]>;
135
+ title: z.ZodOptional<z.ZodString>;
136
+ description: z.ZodOptional<z.ZodString>;
137
+ enum: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, (string | number | boolean)[], (string | number | boolean)[]>>;
138
+ }, "strict", z.ZodTypeAny, {
139
+ type: "string" | "number" | "boolean" | "integer";
140
+ description?: string | undefined;
141
+ title?: string | undefined;
142
+ enum?: (string | number | boolean)[] | undefined;
143
+ }, {
144
+ type: "string" | "number" | "boolean" | "integer";
145
+ description?: string | undefined;
146
+ title?: string | undefined;
147
+ enum?: (string | number | boolean)[] | undefined;
148
+ }>>;
149
+ required: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
150
+ additionalProperties: z.ZodLiteral<false>;
151
+ }, "strict", z.ZodTypeAny, {
152
+ type: "object";
153
+ properties: Record<string, {
154
+ type: "string" | "number" | "boolean" | "integer";
155
+ description?: string | undefined;
156
+ title?: string | undefined;
157
+ enum?: (string | number | boolean)[] | undefined;
158
+ }>;
159
+ additionalProperties: false;
160
+ required?: string[] | undefined;
161
+ }, {
162
+ type: "object";
163
+ properties: Record<string, {
164
+ type: "string" | "number" | "boolean" | "integer";
165
+ description?: string | undefined;
166
+ title?: string | undefined;
167
+ enum?: (string | number | boolean)[] | undefined;
168
+ }>;
169
+ additionalProperties: false;
170
+ required?: string[] | undefined;
171
+ }>;
172
+ export declare const IssueTransitionSchema: z.ZodDiscriminatedUnion<"availability", [z.ZodObject<{
173
+ id: z.ZodString;
174
+ name: z.ZodString;
175
+ targetState: z.ZodEnum<["open", "unstarted", "started", "completed", "canceled"]>;
176
+ targetProviderState: z.ZodOptional<z.ZodObject<{
177
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
178
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
179
+ name: z.ZodString;
180
+ }, "strict", z.ZodTypeAny, {
181
+ name: string;
182
+ id?: string | null | undefined;
183
+ category?: string | null | undefined;
184
+ }, {
185
+ name: string;
186
+ id?: string | null | undefined;
187
+ category?: string | null | undefined;
188
+ }>>;
189
+ reason: z.ZodOptional<z.ZodString>;
190
+ externalUrl: z.ZodOptional<z.ZodString>;
191
+ } & {
192
+ availability: z.ZodLiteral<"available">;
193
+ inputSchema: z.ZodObject<{
194
+ type: z.ZodLiteral<"object">;
195
+ properties: z.ZodRecord<z.ZodString, z.ZodObject<{
196
+ type: z.ZodEnum<["string", "number", "integer", "boolean"]>;
197
+ title: z.ZodOptional<z.ZodString>;
198
+ description: z.ZodOptional<z.ZodString>;
199
+ enum: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, (string | number | boolean)[], (string | number | boolean)[]>>;
200
+ }, "strict", z.ZodTypeAny, {
201
+ type: "string" | "number" | "boolean" | "integer";
202
+ description?: string | undefined;
203
+ title?: string | undefined;
204
+ enum?: (string | number | boolean)[] | undefined;
205
+ }, {
206
+ type: "string" | "number" | "boolean" | "integer";
207
+ description?: string | undefined;
208
+ title?: string | undefined;
209
+ enum?: (string | number | boolean)[] | undefined;
210
+ }>>;
211
+ required: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
212
+ additionalProperties: z.ZodLiteral<false>;
213
+ }, "strict", z.ZodTypeAny, {
214
+ type: "object";
215
+ properties: Record<string, {
216
+ type: "string" | "number" | "boolean" | "integer";
217
+ description?: string | undefined;
218
+ title?: string | undefined;
219
+ enum?: (string | number | boolean)[] | undefined;
220
+ }>;
221
+ additionalProperties: false;
222
+ required?: string[] | undefined;
223
+ }, {
224
+ type: "object";
225
+ properties: Record<string, {
226
+ type: "string" | "number" | "boolean" | "integer";
227
+ description?: string | undefined;
228
+ title?: string | undefined;
229
+ enum?: (string | number | boolean)[] | undefined;
230
+ }>;
231
+ additionalProperties: false;
232
+ required?: string[] | undefined;
233
+ }>;
234
+ }, "strict", z.ZodTypeAny, {
235
+ name: string;
236
+ inputSchema: {
237
+ type: "object";
238
+ properties: Record<string, {
239
+ type: "string" | "number" | "boolean" | "integer";
240
+ description?: string | undefined;
241
+ title?: string | undefined;
242
+ enum?: (string | number | boolean)[] | undefined;
243
+ }>;
244
+ additionalProperties: false;
245
+ required?: string[] | undefined;
246
+ };
247
+ id: string;
248
+ targetState: "completed" | "canceled" | "open" | "unstarted" | "started";
249
+ availability: "available";
250
+ reason?: string | undefined;
251
+ targetProviderState?: {
252
+ name: string;
253
+ id?: string | null | undefined;
254
+ category?: string | null | undefined;
255
+ } | undefined;
256
+ externalUrl?: string | undefined;
257
+ }, {
258
+ name: string;
259
+ inputSchema: {
260
+ type: "object";
261
+ properties: Record<string, {
262
+ type: "string" | "number" | "boolean" | "integer";
263
+ description?: string | undefined;
264
+ title?: string | undefined;
265
+ enum?: (string | number | boolean)[] | undefined;
266
+ }>;
267
+ additionalProperties: false;
268
+ required?: string[] | undefined;
269
+ };
270
+ id: string;
271
+ targetState: "completed" | "canceled" | "open" | "unstarted" | "started";
272
+ availability: "available";
273
+ reason?: string | undefined;
274
+ targetProviderState?: {
275
+ name: string;
276
+ id?: string | null | undefined;
277
+ category?: string | null | undefined;
278
+ } | undefined;
279
+ externalUrl?: string | undefined;
280
+ }>, z.ZodObject<{
281
+ id: z.ZodString;
282
+ name: z.ZodString;
283
+ targetState: z.ZodEnum<["open", "unstarted", "started", "completed", "canceled"]>;
284
+ targetProviderState: z.ZodOptional<z.ZodObject<{
285
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
286
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
287
+ name: z.ZodString;
288
+ }, "strict", z.ZodTypeAny, {
289
+ name: string;
290
+ id?: string | null | undefined;
291
+ category?: string | null | undefined;
292
+ }, {
293
+ name: string;
294
+ id?: string | null | undefined;
295
+ category?: string | null | undefined;
296
+ }>>;
297
+ inputSchema: z.ZodOptional<z.ZodObject<{
298
+ type: z.ZodLiteral<"object">;
299
+ properties: z.ZodRecord<z.ZodString, z.ZodObject<{
300
+ type: z.ZodEnum<["string", "number", "integer", "boolean"]>;
301
+ title: z.ZodOptional<z.ZodString>;
302
+ description: z.ZodOptional<z.ZodString>;
303
+ enum: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, (string | number | boolean)[], (string | number | boolean)[]>>;
304
+ }, "strict", z.ZodTypeAny, {
305
+ type: "string" | "number" | "boolean" | "integer";
306
+ description?: string | undefined;
307
+ title?: string | undefined;
308
+ enum?: (string | number | boolean)[] | undefined;
309
+ }, {
310
+ type: "string" | "number" | "boolean" | "integer";
311
+ description?: string | undefined;
312
+ title?: string | undefined;
313
+ enum?: (string | number | boolean)[] | undefined;
314
+ }>>;
315
+ required: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
316
+ additionalProperties: z.ZodLiteral<false>;
317
+ }, "strict", z.ZodTypeAny, {
318
+ type: "object";
319
+ properties: Record<string, {
320
+ type: "string" | "number" | "boolean" | "integer";
321
+ description?: string | undefined;
322
+ title?: string | undefined;
323
+ enum?: (string | number | boolean)[] | undefined;
324
+ }>;
325
+ additionalProperties: false;
326
+ required?: string[] | undefined;
327
+ }, {
328
+ type: "object";
329
+ properties: Record<string, {
330
+ type: "string" | "number" | "boolean" | "integer";
331
+ description?: string | undefined;
332
+ title?: string | undefined;
333
+ enum?: (string | number | boolean)[] | undefined;
334
+ }>;
335
+ additionalProperties: false;
336
+ required?: string[] | undefined;
337
+ }>>;
338
+ } & {
339
+ availability: z.ZodLiteral<"externalOnly">;
340
+ reason: z.ZodString;
341
+ externalUrl: z.ZodString;
342
+ }, "strict", z.ZodTypeAny, {
343
+ name: string;
344
+ id: string;
345
+ reason: string;
346
+ targetState: "completed" | "canceled" | "open" | "unstarted" | "started";
347
+ externalUrl: string;
348
+ availability: "externalOnly";
349
+ inputSchema?: {
350
+ type: "object";
351
+ properties: Record<string, {
352
+ type: "string" | "number" | "boolean" | "integer";
353
+ description?: string | undefined;
354
+ title?: string | undefined;
355
+ enum?: (string | number | boolean)[] | undefined;
356
+ }>;
357
+ additionalProperties: false;
358
+ required?: string[] | undefined;
359
+ } | undefined;
360
+ targetProviderState?: {
361
+ name: string;
362
+ id?: string | null | undefined;
363
+ category?: string | null | undefined;
364
+ } | undefined;
365
+ }, {
366
+ name: string;
367
+ id: string;
368
+ reason: string;
369
+ targetState: "completed" | "canceled" | "open" | "unstarted" | "started";
370
+ externalUrl: string;
371
+ availability: "externalOnly";
372
+ inputSchema?: {
373
+ type: "object";
374
+ properties: Record<string, {
375
+ type: "string" | "number" | "boolean" | "integer";
376
+ description?: string | undefined;
377
+ title?: string | undefined;
378
+ enum?: (string | number | boolean)[] | undefined;
379
+ }>;
380
+ additionalProperties: false;
381
+ required?: string[] | undefined;
382
+ } | undefined;
383
+ targetProviderState?: {
384
+ name: string;
385
+ id?: string | null | undefined;
386
+ category?: string | null | undefined;
387
+ } | undefined;
388
+ }>]>;
389
+ export declare const IssueSearchIssuesInputSchema: z.ZodEffects<z.ZodObject<{
390
+ query: z.ZodOptional<z.ZodString>;
391
+ containerId: z.ZodOptional<z.ZodString>;
392
+ since: z.ZodOptional<z.ZodString>;
393
+ limit: z.ZodOptional<z.ZodNumber>;
394
+ orderBy: z.ZodOptional<z.ZodLiteral<"createdAt">>;
395
+ orderDirection: z.ZodOptional<z.ZodLiteral<"desc">>;
396
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
397
+ query: z.ZodOptional<z.ZodString>;
398
+ containerId: z.ZodOptional<z.ZodString>;
399
+ since: z.ZodOptional<z.ZodString>;
400
+ limit: z.ZodOptional<z.ZodNumber>;
401
+ orderBy: z.ZodOptional<z.ZodLiteral<"createdAt">>;
402
+ orderDirection: z.ZodOptional<z.ZodLiteral<"desc">>;
403
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
404
+ query: z.ZodOptional<z.ZodString>;
405
+ containerId: z.ZodOptional<z.ZodString>;
406
+ since: z.ZodOptional<z.ZodString>;
407
+ limit: z.ZodOptional<z.ZodNumber>;
408
+ orderBy: z.ZodOptional<z.ZodLiteral<"createdAt">>;
409
+ orderDirection: z.ZodOptional<z.ZodLiteral<"desc">>;
410
+ }, z.ZodTypeAny, "passthrough">>, {
411
+ orderDirection?: "desc";
412
+ orderBy?: "createdAt";
413
+ limit?: number;
414
+ since?: string;
415
+ containerId?: string;
416
+ query?: string;
417
+ }, z.objectInputType<{
418
+ query: z.ZodOptional<z.ZodString>;
419
+ containerId: z.ZodOptional<z.ZodString>;
420
+ since: z.ZodOptional<z.ZodString>;
421
+ limit: z.ZodOptional<z.ZodNumber>;
422
+ orderBy: z.ZodOptional<z.ZodLiteral<"createdAt">>;
423
+ orderDirection: z.ZodOptional<z.ZodLiteral<"desc">>;
424
+ }, z.ZodTypeAny, "passthrough">>;
425
+ export declare const IssueSearchIssuesOutputSchema: z.ZodObject<{
426
+ issues: z.ZodArray<z.ZodObject<{
427
+ issueId: z.ZodString;
428
+ identifier: z.ZodString;
429
+ title: z.ZodString;
430
+ url: z.ZodString;
431
+ state: z.ZodEnum<["open", "unstarted", "started", "completed", "canceled"]>;
432
+ providerState: z.ZodObject<{
433
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
434
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
435
+ name: z.ZodString;
436
+ }, "strict", z.ZodTypeAny, {
437
+ name: string;
438
+ id?: string | null | undefined;
439
+ category?: string | null | undefined;
440
+ }, {
441
+ name: string;
442
+ id?: string | null | undefined;
443
+ category?: string | null | undefined;
444
+ }>;
445
+ createdAt: z.ZodString;
446
+ container: z.ZodOptional<z.ZodObject<{
447
+ id: z.ZodString;
448
+ name: z.ZodString;
449
+ }, "strict", z.ZodTypeAny, {
450
+ name: string;
451
+ id: string;
452
+ }, {
453
+ name: string;
454
+ id: string;
455
+ }>>;
456
+ description: z.ZodOptional<z.ZodString>;
457
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
458
+ closedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
459
+ closedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
460
+ name: z.ZodString;
461
+ id: z.ZodOptional<z.ZodString>;
462
+ url: z.ZodOptional<z.ZodString>;
463
+ type: z.ZodOptional<z.ZodEnum<["user", "bot"]>>;
464
+ }, "strict", z.ZodTypeAny, {
465
+ name: string;
466
+ type?: "user" | "bot" | undefined;
467
+ id?: string | undefined;
468
+ url?: string | undefined;
469
+ }, {
470
+ name: string;
471
+ type?: "user" | "bot" | undefined;
472
+ id?: string | undefined;
473
+ url?: string | undefined;
474
+ }>>>;
475
+ }, "strict", z.ZodTypeAny, {
476
+ title: string;
477
+ url: string;
478
+ state: "completed" | "canceled" | "open" | "unstarted" | "started";
479
+ createdAt: string;
480
+ identifier: string;
481
+ issueId: string;
482
+ providerState: {
483
+ name: string;
484
+ id?: string | null | undefined;
485
+ category?: string | null | undefined;
486
+ };
487
+ description?: string | undefined;
488
+ updatedAt?: string | null | undefined;
489
+ closedAt?: string | null | undefined;
490
+ container?: {
491
+ name: string;
492
+ id: string;
493
+ } | undefined;
494
+ closedBy?: {
495
+ name: string;
496
+ type?: "user" | "bot" | undefined;
497
+ id?: string | undefined;
498
+ url?: string | undefined;
499
+ } | null | undefined;
500
+ }, {
501
+ title: string;
502
+ url: string;
503
+ state: "completed" | "canceled" | "open" | "unstarted" | "started";
504
+ createdAt: string;
505
+ identifier: string;
506
+ issueId: string;
507
+ providerState: {
508
+ name: string;
509
+ id?: string | null | undefined;
510
+ category?: string | null | undefined;
511
+ };
512
+ description?: string | undefined;
513
+ updatedAt?: string | null | undefined;
514
+ closedAt?: string | null | undefined;
515
+ container?: {
516
+ name: string;
517
+ id: string;
518
+ } | undefined;
519
+ closedBy?: {
520
+ name: string;
521
+ type?: "user" | "bot" | undefined;
522
+ id?: string | undefined;
523
+ url?: string | undefined;
524
+ } | null | undefined;
525
+ }>, "many">;
526
+ next: z.ZodOptional<z.ZodString>;
527
+ }, "strict", z.ZodTypeAny, {
528
+ issues: {
529
+ title: string;
530
+ url: string;
531
+ state: "completed" | "canceled" | "open" | "unstarted" | "started";
532
+ createdAt: string;
533
+ identifier: string;
534
+ issueId: string;
535
+ providerState: {
536
+ name: string;
537
+ id?: string | null | undefined;
538
+ category?: string | null | undefined;
539
+ };
540
+ description?: string | undefined;
541
+ updatedAt?: string | null | undefined;
542
+ closedAt?: string | null | undefined;
543
+ container?: {
544
+ name: string;
545
+ id: string;
546
+ } | undefined;
547
+ closedBy?: {
548
+ name: string;
549
+ type?: "user" | "bot" | undefined;
550
+ id?: string | undefined;
551
+ url?: string | undefined;
552
+ } | null | undefined;
553
+ }[];
554
+ next?: string | undefined;
555
+ }, {
556
+ issues: {
557
+ title: string;
558
+ url: string;
559
+ state: "completed" | "canceled" | "open" | "unstarted" | "started";
560
+ createdAt: string;
561
+ identifier: string;
562
+ issueId: string;
563
+ providerState: {
564
+ name: string;
565
+ id?: string | null | undefined;
566
+ category?: string | null | undefined;
567
+ };
568
+ description?: string | undefined;
569
+ updatedAt?: string | null | undefined;
570
+ closedAt?: string | null | undefined;
571
+ container?: {
572
+ name: string;
573
+ id: string;
574
+ } | undefined;
575
+ closedBy?: {
576
+ name: string;
577
+ type?: "user" | "bot" | undefined;
578
+ id?: string | undefined;
579
+ url?: string | undefined;
580
+ } | null | undefined;
581
+ }[];
582
+ next?: string | undefined;
583
+ }>;
584
+ export declare const IssueGetIssueInputSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
585
+ issueId: z.ZodOptional<z.ZodString>;
586
+ url: z.ZodOptional<z.ZodString>;
587
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
588
+ issueId: z.ZodOptional<z.ZodString>;
589
+ url: z.ZodOptional<z.ZodString>;
590
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
591
+ issueId: z.ZodOptional<z.ZodString>;
592
+ url: z.ZodOptional<z.ZodString>;
593
+ }, z.ZodTypeAny, "passthrough">>, {
594
+ url?: string;
595
+ issueId?: string;
596
+ }, z.objectInputType<{
597
+ issueId: z.ZodOptional<z.ZodString>;
598
+ url: z.ZodOptional<z.ZodString>;
599
+ }, z.ZodTypeAny, "passthrough">>, {
600
+ url?: string;
601
+ issueId?: string;
602
+ }, z.objectInputType<{
603
+ issueId: z.ZodOptional<z.ZodString>;
604
+ url: z.ZodOptional<z.ZodString>;
605
+ }, z.ZodTypeAny, "passthrough">>;
606
+ export declare const IssueGetIssueOutputSchema: z.ZodObject<{
607
+ issue: z.ZodObject<{
608
+ issueId: z.ZodString;
609
+ identifier: z.ZodString;
610
+ title: z.ZodString;
611
+ url: z.ZodString;
612
+ state: z.ZodEnum<["open", "unstarted", "started", "completed", "canceled"]>;
613
+ providerState: z.ZodObject<{
614
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
615
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
616
+ name: z.ZodString;
617
+ }, "strict", z.ZodTypeAny, {
618
+ name: string;
619
+ id?: string | null | undefined;
620
+ category?: string | null | undefined;
621
+ }, {
622
+ name: string;
623
+ id?: string | null | undefined;
624
+ category?: string | null | undefined;
625
+ }>;
626
+ createdAt: z.ZodString;
627
+ container: z.ZodOptional<z.ZodObject<{
628
+ id: z.ZodString;
629
+ name: z.ZodString;
630
+ }, "strict", z.ZodTypeAny, {
631
+ name: string;
632
+ id: string;
633
+ }, {
634
+ name: string;
635
+ id: string;
636
+ }>>;
637
+ description: z.ZodOptional<z.ZodString>;
638
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
639
+ closedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
640
+ closedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
641
+ name: z.ZodString;
642
+ id: z.ZodOptional<z.ZodString>;
643
+ url: z.ZodOptional<z.ZodString>;
644
+ type: z.ZodOptional<z.ZodEnum<["user", "bot"]>>;
645
+ }, "strict", z.ZodTypeAny, {
646
+ name: string;
647
+ type?: "user" | "bot" | undefined;
648
+ id?: string | undefined;
649
+ url?: string | undefined;
650
+ }, {
651
+ name: string;
652
+ type?: "user" | "bot" | undefined;
653
+ id?: string | undefined;
654
+ url?: string | undefined;
655
+ }>>>;
656
+ }, "strict", z.ZodTypeAny, {
657
+ title: string;
658
+ url: string;
659
+ state: "completed" | "canceled" | "open" | "unstarted" | "started";
660
+ createdAt: string;
661
+ identifier: string;
662
+ issueId: string;
663
+ providerState: {
664
+ name: string;
665
+ id?: string | null | undefined;
666
+ category?: string | null | undefined;
667
+ };
668
+ description?: string | undefined;
669
+ updatedAt?: string | null | undefined;
670
+ closedAt?: string | null | undefined;
671
+ container?: {
672
+ name: string;
673
+ id: string;
674
+ } | undefined;
675
+ closedBy?: {
676
+ name: string;
677
+ type?: "user" | "bot" | undefined;
678
+ id?: string | undefined;
679
+ url?: string | undefined;
680
+ } | null | undefined;
681
+ }, {
682
+ title: string;
683
+ url: string;
684
+ state: "completed" | "canceled" | "open" | "unstarted" | "started";
685
+ createdAt: string;
686
+ identifier: string;
687
+ issueId: string;
688
+ providerState: {
689
+ name: string;
690
+ id?: string | null | undefined;
691
+ category?: string | null | undefined;
692
+ };
693
+ description?: string | undefined;
694
+ updatedAt?: string | null | undefined;
695
+ closedAt?: string | null | undefined;
696
+ container?: {
697
+ name: string;
698
+ id: string;
699
+ } | undefined;
700
+ closedBy?: {
701
+ name: string;
702
+ type?: "user" | "bot" | undefined;
703
+ id?: string | undefined;
704
+ url?: string | undefined;
705
+ } | null | undefined;
706
+ }>;
707
+ }, "strict", z.ZodTypeAny, {
708
+ issue: {
709
+ title: string;
710
+ url: string;
711
+ state: "completed" | "canceled" | "open" | "unstarted" | "started";
712
+ createdAt: string;
713
+ identifier: string;
714
+ issueId: string;
715
+ providerState: {
716
+ name: string;
717
+ id?: string | null | undefined;
718
+ category?: string | null | undefined;
719
+ };
720
+ description?: string | undefined;
721
+ updatedAt?: string | null | undefined;
722
+ closedAt?: string | null | undefined;
723
+ container?: {
724
+ name: string;
725
+ id: string;
726
+ } | undefined;
727
+ closedBy?: {
728
+ name: string;
729
+ type?: "user" | "bot" | undefined;
730
+ id?: string | undefined;
731
+ url?: string | undefined;
732
+ } | null | undefined;
733
+ };
734
+ }, {
735
+ issue: {
736
+ title: string;
737
+ url: string;
738
+ state: "completed" | "canceled" | "open" | "unstarted" | "started";
739
+ createdAt: string;
740
+ identifier: string;
741
+ issueId: string;
742
+ providerState: {
743
+ name: string;
744
+ id?: string | null | undefined;
745
+ category?: string | null | undefined;
746
+ };
747
+ description?: string | undefined;
748
+ updatedAt?: string | null | undefined;
749
+ closedAt?: string | null | undefined;
750
+ container?: {
751
+ name: string;
752
+ id: string;
753
+ } | undefined;
754
+ closedBy?: {
755
+ name: string;
756
+ type?: "user" | "bot" | undefined;
757
+ id?: string | undefined;
758
+ url?: string | undefined;
759
+ } | null | undefined;
760
+ };
761
+ }>;
762
+ export declare const IssueGetIssuesInputSchema: z.ZodEffects<z.ZodObject<{
763
+ issueIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
764
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
765
+ issueIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
766
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
767
+ issueIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
768
+ }, z.ZodTypeAny, "passthrough">>, {
769
+ issueIds: string[];
770
+ }, z.objectInputType<{
771
+ issueIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
772
+ }, z.ZodTypeAny, "passthrough">>;
773
+ export declare const IssueGetIssuesOutputSchema: z.ZodObject<{
774
+ results: z.ZodArray<z.ZodUnion<[z.ZodObject<{
775
+ issueId: z.ZodString;
776
+ issue: z.ZodObject<{
777
+ issueId: z.ZodString;
778
+ identifier: z.ZodString;
779
+ title: z.ZodString;
780
+ url: z.ZodString;
781
+ state: z.ZodEnum<["open", "unstarted", "started", "completed", "canceled"]>;
782
+ providerState: z.ZodObject<{
783
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
784
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
785
+ name: z.ZodString;
786
+ }, "strict", z.ZodTypeAny, {
787
+ name: string;
788
+ id?: string | null | undefined;
789
+ category?: string | null | undefined;
790
+ }, {
791
+ name: string;
792
+ id?: string | null | undefined;
793
+ category?: string | null | undefined;
794
+ }>;
795
+ createdAt: z.ZodString;
796
+ container: z.ZodOptional<z.ZodObject<{
797
+ id: z.ZodString;
798
+ name: z.ZodString;
799
+ }, "strict", z.ZodTypeAny, {
800
+ name: string;
801
+ id: string;
802
+ }, {
803
+ name: string;
804
+ id: string;
805
+ }>>;
806
+ description: z.ZodOptional<z.ZodString>;
807
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
808
+ closedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
809
+ closedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
810
+ name: z.ZodString;
811
+ id: z.ZodOptional<z.ZodString>;
812
+ url: z.ZodOptional<z.ZodString>;
813
+ type: z.ZodOptional<z.ZodEnum<["user", "bot"]>>;
814
+ }, "strict", z.ZodTypeAny, {
815
+ name: string;
816
+ type?: "user" | "bot" | undefined;
817
+ id?: string | undefined;
818
+ url?: string | undefined;
819
+ }, {
820
+ name: string;
821
+ type?: "user" | "bot" | undefined;
822
+ id?: string | undefined;
823
+ url?: string | undefined;
824
+ }>>>;
825
+ }, "strict", z.ZodTypeAny, {
826
+ title: string;
827
+ url: string;
828
+ state: "completed" | "canceled" | "open" | "unstarted" | "started";
829
+ createdAt: string;
830
+ identifier: string;
831
+ issueId: string;
832
+ providerState: {
833
+ name: string;
834
+ id?: string | null | undefined;
835
+ category?: string | null | undefined;
836
+ };
837
+ description?: string | undefined;
838
+ updatedAt?: string | null | undefined;
839
+ closedAt?: string | null | undefined;
840
+ container?: {
841
+ name: string;
842
+ id: string;
843
+ } | undefined;
844
+ closedBy?: {
845
+ name: string;
846
+ type?: "user" | "bot" | undefined;
847
+ id?: string | undefined;
848
+ url?: string | undefined;
849
+ } | null | undefined;
850
+ }, {
851
+ title: string;
852
+ url: string;
853
+ state: "completed" | "canceled" | "open" | "unstarted" | "started";
854
+ createdAt: string;
855
+ identifier: string;
856
+ issueId: string;
857
+ providerState: {
858
+ name: string;
859
+ id?: string | null | undefined;
860
+ category?: string | null | undefined;
861
+ };
862
+ description?: string | undefined;
863
+ updatedAt?: string | null | undefined;
864
+ closedAt?: string | null | undefined;
865
+ container?: {
866
+ name: string;
867
+ id: string;
868
+ } | undefined;
869
+ closedBy?: {
870
+ name: string;
871
+ type?: "user" | "bot" | undefined;
872
+ id?: string | undefined;
873
+ url?: string | undefined;
874
+ } | null | undefined;
875
+ }>;
876
+ }, "strict", z.ZodTypeAny, {
877
+ issueId: string;
878
+ issue: {
879
+ title: string;
880
+ url: string;
881
+ state: "completed" | "canceled" | "open" | "unstarted" | "started";
882
+ createdAt: string;
883
+ identifier: string;
884
+ issueId: string;
885
+ providerState: {
886
+ name: string;
887
+ id?: string | null | undefined;
888
+ category?: string | null | undefined;
889
+ };
890
+ description?: string | undefined;
891
+ updatedAt?: string | null | undefined;
892
+ closedAt?: string | null | undefined;
893
+ container?: {
894
+ name: string;
895
+ id: string;
896
+ } | undefined;
897
+ closedBy?: {
898
+ name: string;
899
+ type?: "user" | "bot" | undefined;
900
+ id?: string | undefined;
901
+ url?: string | undefined;
902
+ } | null | undefined;
903
+ };
904
+ }, {
905
+ issueId: string;
906
+ issue: {
907
+ title: string;
908
+ url: string;
909
+ state: "completed" | "canceled" | "open" | "unstarted" | "started";
910
+ createdAt: string;
911
+ identifier: string;
912
+ issueId: string;
913
+ providerState: {
914
+ name: string;
915
+ id?: string | null | undefined;
916
+ category?: string | null | undefined;
917
+ };
918
+ description?: string | undefined;
919
+ updatedAt?: string | null | undefined;
920
+ closedAt?: string | null | undefined;
921
+ container?: {
922
+ name: string;
923
+ id: string;
924
+ } | undefined;
925
+ closedBy?: {
926
+ name: string;
927
+ type?: "user" | "bot" | undefined;
928
+ id?: string | undefined;
929
+ url?: string | undefined;
930
+ } | null | undefined;
931
+ };
932
+ }>, z.ZodObject<{
933
+ issueId: z.ZodString;
934
+ error: z.ZodObject<{
935
+ type: z.ZodEnum<["invalidArgument", "validationFailed", "invalidCursor", "unsupported", "unsupportedFilter", "forbidden", "notFound", "connectionUnavailable", "rateLimited", "temporaryFailure", "conflict", "invalidTransition", "outcomeUnknown"]>;
936
+ message: z.ZodString;
937
+ retryAfterMs: z.ZodOptional<z.ZodNumber>;
938
+ }, "strict", z.ZodTypeAny, {
939
+ message: string;
940
+ type: "unsupported" | "invalidArgument" | "validationFailed" | "invalidCursor" | "unsupportedFilter" | "forbidden" | "notFound" | "connectionUnavailable" | "rateLimited" | "temporaryFailure" | "conflict" | "invalidTransition" | "outcomeUnknown";
941
+ retryAfterMs?: number | undefined;
942
+ }, {
943
+ message: string;
944
+ type: "unsupported" | "invalidArgument" | "validationFailed" | "invalidCursor" | "unsupportedFilter" | "forbidden" | "notFound" | "connectionUnavailable" | "rateLimited" | "temporaryFailure" | "conflict" | "invalidTransition" | "outcomeUnknown";
945
+ retryAfterMs?: number | undefined;
946
+ }>;
947
+ }, "strict", z.ZodTypeAny, {
948
+ error: {
949
+ message: string;
950
+ type: "unsupported" | "invalidArgument" | "validationFailed" | "invalidCursor" | "unsupportedFilter" | "forbidden" | "notFound" | "connectionUnavailable" | "rateLimited" | "temporaryFailure" | "conflict" | "invalidTransition" | "outcomeUnknown";
951
+ retryAfterMs?: number | undefined;
952
+ };
953
+ issueId: string;
954
+ }, {
955
+ error: {
956
+ message: string;
957
+ type: "unsupported" | "invalidArgument" | "validationFailed" | "invalidCursor" | "unsupportedFilter" | "forbidden" | "notFound" | "connectionUnavailable" | "rateLimited" | "temporaryFailure" | "conflict" | "invalidTransition" | "outcomeUnknown";
958
+ retryAfterMs?: number | undefined;
959
+ };
960
+ issueId: string;
961
+ }>]>, "many">;
962
+ }, "strict", z.ZodTypeAny, {
963
+ results: ({
964
+ issueId: string;
965
+ issue: {
966
+ title: string;
967
+ url: string;
968
+ state: "completed" | "canceled" | "open" | "unstarted" | "started";
969
+ createdAt: string;
970
+ identifier: string;
971
+ issueId: string;
972
+ providerState: {
973
+ name: string;
974
+ id?: string | null | undefined;
975
+ category?: string | null | undefined;
976
+ };
977
+ description?: string | undefined;
978
+ updatedAt?: string | null | undefined;
979
+ closedAt?: string | null | undefined;
980
+ container?: {
981
+ name: string;
982
+ id: string;
983
+ } | undefined;
984
+ closedBy?: {
985
+ name: string;
986
+ type?: "user" | "bot" | undefined;
987
+ id?: string | undefined;
988
+ url?: string | undefined;
989
+ } | null | undefined;
990
+ };
991
+ } | {
992
+ error: {
993
+ message: string;
994
+ type: "unsupported" | "invalidArgument" | "validationFailed" | "invalidCursor" | "unsupportedFilter" | "forbidden" | "notFound" | "connectionUnavailable" | "rateLimited" | "temporaryFailure" | "conflict" | "invalidTransition" | "outcomeUnknown";
995
+ retryAfterMs?: number | undefined;
996
+ };
997
+ issueId: string;
998
+ })[];
999
+ }, {
1000
+ results: ({
1001
+ issueId: string;
1002
+ issue: {
1003
+ title: string;
1004
+ url: string;
1005
+ state: "completed" | "canceled" | "open" | "unstarted" | "started";
1006
+ createdAt: string;
1007
+ identifier: string;
1008
+ issueId: string;
1009
+ providerState: {
1010
+ name: string;
1011
+ id?: string | null | undefined;
1012
+ category?: string | null | undefined;
1013
+ };
1014
+ description?: string | undefined;
1015
+ updatedAt?: string | null | undefined;
1016
+ closedAt?: string | null | undefined;
1017
+ container?: {
1018
+ name: string;
1019
+ id: string;
1020
+ } | undefined;
1021
+ closedBy?: {
1022
+ name: string;
1023
+ type?: "user" | "bot" | undefined;
1024
+ id?: string | undefined;
1025
+ url?: string | undefined;
1026
+ } | null | undefined;
1027
+ };
1028
+ } | {
1029
+ error: {
1030
+ message: string;
1031
+ type: "unsupported" | "invalidArgument" | "validationFailed" | "invalidCursor" | "unsupportedFilter" | "forbidden" | "notFound" | "connectionUnavailable" | "rateLimited" | "temporaryFailure" | "conflict" | "invalidTransition" | "outcomeUnknown";
1032
+ retryAfterMs?: number | undefined;
1033
+ };
1034
+ issueId: string;
1035
+ })[];
1036
+ }>;
1037
+ export declare const IssueGetIssueTransitionsInputSchema: z.ZodEffects<z.ZodObject<{
1038
+ issueId: z.ZodString;
1039
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1040
+ issueId: z.ZodString;
1041
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1042
+ issueId: z.ZodString;
1043
+ }, z.ZodTypeAny, "passthrough">>, {
1044
+ issueId: string;
1045
+ }, z.objectInputType<{
1046
+ issueId: z.ZodString;
1047
+ }, z.ZodTypeAny, "passthrough">>;
1048
+ export declare const IssueGetIssueTransitionsOutputSchema: z.ZodObject<{
1049
+ stateToken: z.ZodString;
1050
+ transitions: z.ZodArray<z.ZodDiscriminatedUnion<"availability", [z.ZodObject<{
1051
+ id: z.ZodString;
1052
+ name: z.ZodString;
1053
+ targetState: z.ZodEnum<["open", "unstarted", "started", "completed", "canceled"]>;
1054
+ targetProviderState: z.ZodOptional<z.ZodObject<{
1055
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1056
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1057
+ name: z.ZodString;
1058
+ }, "strict", z.ZodTypeAny, {
1059
+ name: string;
1060
+ id?: string | null | undefined;
1061
+ category?: string | null | undefined;
1062
+ }, {
1063
+ name: string;
1064
+ id?: string | null | undefined;
1065
+ category?: string | null | undefined;
1066
+ }>>;
1067
+ reason: z.ZodOptional<z.ZodString>;
1068
+ externalUrl: z.ZodOptional<z.ZodString>;
1069
+ } & {
1070
+ availability: z.ZodLiteral<"available">;
1071
+ inputSchema: z.ZodObject<{
1072
+ type: z.ZodLiteral<"object">;
1073
+ properties: z.ZodRecord<z.ZodString, z.ZodObject<{
1074
+ type: z.ZodEnum<["string", "number", "integer", "boolean"]>;
1075
+ title: z.ZodOptional<z.ZodString>;
1076
+ description: z.ZodOptional<z.ZodString>;
1077
+ enum: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, (string | number | boolean)[], (string | number | boolean)[]>>;
1078
+ }, "strict", z.ZodTypeAny, {
1079
+ type: "string" | "number" | "boolean" | "integer";
1080
+ description?: string | undefined;
1081
+ title?: string | undefined;
1082
+ enum?: (string | number | boolean)[] | undefined;
1083
+ }, {
1084
+ type: "string" | "number" | "boolean" | "integer";
1085
+ description?: string | undefined;
1086
+ title?: string | undefined;
1087
+ enum?: (string | number | boolean)[] | undefined;
1088
+ }>>;
1089
+ required: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
1090
+ additionalProperties: z.ZodLiteral<false>;
1091
+ }, "strict", z.ZodTypeAny, {
1092
+ type: "object";
1093
+ properties: Record<string, {
1094
+ type: "string" | "number" | "boolean" | "integer";
1095
+ description?: string | undefined;
1096
+ title?: string | undefined;
1097
+ enum?: (string | number | boolean)[] | undefined;
1098
+ }>;
1099
+ additionalProperties: false;
1100
+ required?: string[] | undefined;
1101
+ }, {
1102
+ type: "object";
1103
+ properties: Record<string, {
1104
+ type: "string" | "number" | "boolean" | "integer";
1105
+ description?: string | undefined;
1106
+ title?: string | undefined;
1107
+ enum?: (string | number | boolean)[] | undefined;
1108
+ }>;
1109
+ additionalProperties: false;
1110
+ required?: string[] | undefined;
1111
+ }>;
1112
+ }, "strict", z.ZodTypeAny, {
1113
+ name: string;
1114
+ inputSchema: {
1115
+ type: "object";
1116
+ properties: Record<string, {
1117
+ type: "string" | "number" | "boolean" | "integer";
1118
+ description?: string | undefined;
1119
+ title?: string | undefined;
1120
+ enum?: (string | number | boolean)[] | undefined;
1121
+ }>;
1122
+ additionalProperties: false;
1123
+ required?: string[] | undefined;
1124
+ };
1125
+ id: string;
1126
+ targetState: "completed" | "canceled" | "open" | "unstarted" | "started";
1127
+ availability: "available";
1128
+ reason?: string | undefined;
1129
+ targetProviderState?: {
1130
+ name: string;
1131
+ id?: string | null | undefined;
1132
+ category?: string | null | undefined;
1133
+ } | undefined;
1134
+ externalUrl?: string | undefined;
1135
+ }, {
1136
+ name: string;
1137
+ inputSchema: {
1138
+ type: "object";
1139
+ properties: Record<string, {
1140
+ type: "string" | "number" | "boolean" | "integer";
1141
+ description?: string | undefined;
1142
+ title?: string | undefined;
1143
+ enum?: (string | number | boolean)[] | undefined;
1144
+ }>;
1145
+ additionalProperties: false;
1146
+ required?: string[] | undefined;
1147
+ };
1148
+ id: string;
1149
+ targetState: "completed" | "canceled" | "open" | "unstarted" | "started";
1150
+ availability: "available";
1151
+ reason?: string | undefined;
1152
+ targetProviderState?: {
1153
+ name: string;
1154
+ id?: string | null | undefined;
1155
+ category?: string | null | undefined;
1156
+ } | undefined;
1157
+ externalUrl?: string | undefined;
1158
+ }>, z.ZodObject<{
1159
+ id: z.ZodString;
1160
+ name: z.ZodString;
1161
+ targetState: z.ZodEnum<["open", "unstarted", "started", "completed", "canceled"]>;
1162
+ targetProviderState: z.ZodOptional<z.ZodObject<{
1163
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1164
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1165
+ name: z.ZodString;
1166
+ }, "strict", z.ZodTypeAny, {
1167
+ name: string;
1168
+ id?: string | null | undefined;
1169
+ category?: string | null | undefined;
1170
+ }, {
1171
+ name: string;
1172
+ id?: string | null | undefined;
1173
+ category?: string | null | undefined;
1174
+ }>>;
1175
+ inputSchema: z.ZodOptional<z.ZodObject<{
1176
+ type: z.ZodLiteral<"object">;
1177
+ properties: z.ZodRecord<z.ZodString, z.ZodObject<{
1178
+ type: z.ZodEnum<["string", "number", "integer", "boolean"]>;
1179
+ title: z.ZodOptional<z.ZodString>;
1180
+ description: z.ZodOptional<z.ZodString>;
1181
+ enum: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">, (string | number | boolean)[], (string | number | boolean)[]>>;
1182
+ }, "strict", z.ZodTypeAny, {
1183
+ type: "string" | "number" | "boolean" | "integer";
1184
+ description?: string | undefined;
1185
+ title?: string | undefined;
1186
+ enum?: (string | number | boolean)[] | undefined;
1187
+ }, {
1188
+ type: "string" | "number" | "boolean" | "integer";
1189
+ description?: string | undefined;
1190
+ title?: string | undefined;
1191
+ enum?: (string | number | boolean)[] | undefined;
1192
+ }>>;
1193
+ required: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
1194
+ additionalProperties: z.ZodLiteral<false>;
1195
+ }, "strict", z.ZodTypeAny, {
1196
+ type: "object";
1197
+ properties: Record<string, {
1198
+ type: "string" | "number" | "boolean" | "integer";
1199
+ description?: string | undefined;
1200
+ title?: string | undefined;
1201
+ enum?: (string | number | boolean)[] | undefined;
1202
+ }>;
1203
+ additionalProperties: false;
1204
+ required?: string[] | undefined;
1205
+ }, {
1206
+ type: "object";
1207
+ properties: Record<string, {
1208
+ type: "string" | "number" | "boolean" | "integer";
1209
+ description?: string | undefined;
1210
+ title?: string | undefined;
1211
+ enum?: (string | number | boolean)[] | undefined;
1212
+ }>;
1213
+ additionalProperties: false;
1214
+ required?: string[] | undefined;
1215
+ }>>;
1216
+ } & {
1217
+ availability: z.ZodLiteral<"externalOnly">;
1218
+ reason: z.ZodString;
1219
+ externalUrl: z.ZodString;
1220
+ }, "strict", z.ZodTypeAny, {
1221
+ name: string;
1222
+ id: string;
1223
+ reason: string;
1224
+ targetState: "completed" | "canceled" | "open" | "unstarted" | "started";
1225
+ externalUrl: string;
1226
+ availability: "externalOnly";
1227
+ inputSchema?: {
1228
+ type: "object";
1229
+ properties: Record<string, {
1230
+ type: "string" | "number" | "boolean" | "integer";
1231
+ description?: string | undefined;
1232
+ title?: string | undefined;
1233
+ enum?: (string | number | boolean)[] | undefined;
1234
+ }>;
1235
+ additionalProperties: false;
1236
+ required?: string[] | undefined;
1237
+ } | undefined;
1238
+ targetProviderState?: {
1239
+ name: string;
1240
+ id?: string | null | undefined;
1241
+ category?: string | null | undefined;
1242
+ } | undefined;
1243
+ }, {
1244
+ name: string;
1245
+ id: string;
1246
+ reason: string;
1247
+ targetState: "completed" | "canceled" | "open" | "unstarted" | "started";
1248
+ externalUrl: string;
1249
+ availability: "externalOnly";
1250
+ inputSchema?: {
1251
+ type: "object";
1252
+ properties: Record<string, {
1253
+ type: "string" | "number" | "boolean" | "integer";
1254
+ description?: string | undefined;
1255
+ title?: string | undefined;
1256
+ enum?: (string | number | boolean)[] | undefined;
1257
+ }>;
1258
+ additionalProperties: false;
1259
+ required?: string[] | undefined;
1260
+ } | undefined;
1261
+ targetProviderState?: {
1262
+ name: string;
1263
+ id?: string | null | undefined;
1264
+ category?: string | null | undefined;
1265
+ } | undefined;
1266
+ }>]>, "many">;
1267
+ }, "strict", z.ZodTypeAny, {
1268
+ stateToken: string;
1269
+ transitions: ({
1270
+ name: string;
1271
+ inputSchema: {
1272
+ type: "object";
1273
+ properties: Record<string, {
1274
+ type: "string" | "number" | "boolean" | "integer";
1275
+ description?: string | undefined;
1276
+ title?: string | undefined;
1277
+ enum?: (string | number | boolean)[] | undefined;
1278
+ }>;
1279
+ additionalProperties: false;
1280
+ required?: string[] | undefined;
1281
+ };
1282
+ id: string;
1283
+ targetState: "completed" | "canceled" | "open" | "unstarted" | "started";
1284
+ availability: "available";
1285
+ reason?: string | undefined;
1286
+ targetProviderState?: {
1287
+ name: string;
1288
+ id?: string | null | undefined;
1289
+ category?: string | null | undefined;
1290
+ } | undefined;
1291
+ externalUrl?: string | undefined;
1292
+ } | {
1293
+ name: string;
1294
+ id: string;
1295
+ reason: string;
1296
+ targetState: "completed" | "canceled" | "open" | "unstarted" | "started";
1297
+ externalUrl: string;
1298
+ availability: "externalOnly";
1299
+ inputSchema?: {
1300
+ type: "object";
1301
+ properties: Record<string, {
1302
+ type: "string" | "number" | "boolean" | "integer";
1303
+ description?: string | undefined;
1304
+ title?: string | undefined;
1305
+ enum?: (string | number | boolean)[] | undefined;
1306
+ }>;
1307
+ additionalProperties: false;
1308
+ required?: string[] | undefined;
1309
+ } | undefined;
1310
+ targetProviderState?: {
1311
+ name: string;
1312
+ id?: string | null | undefined;
1313
+ category?: string | null | undefined;
1314
+ } | undefined;
1315
+ })[];
1316
+ }, {
1317
+ stateToken: string;
1318
+ transitions: ({
1319
+ name: string;
1320
+ inputSchema: {
1321
+ type: "object";
1322
+ properties: Record<string, {
1323
+ type: "string" | "number" | "boolean" | "integer";
1324
+ description?: string | undefined;
1325
+ title?: string | undefined;
1326
+ enum?: (string | number | boolean)[] | undefined;
1327
+ }>;
1328
+ additionalProperties: false;
1329
+ required?: string[] | undefined;
1330
+ };
1331
+ id: string;
1332
+ targetState: "completed" | "canceled" | "open" | "unstarted" | "started";
1333
+ availability: "available";
1334
+ reason?: string | undefined;
1335
+ targetProviderState?: {
1336
+ name: string;
1337
+ id?: string | null | undefined;
1338
+ category?: string | null | undefined;
1339
+ } | undefined;
1340
+ externalUrl?: string | undefined;
1341
+ } | {
1342
+ name: string;
1343
+ id: string;
1344
+ reason: string;
1345
+ targetState: "completed" | "canceled" | "open" | "unstarted" | "started";
1346
+ externalUrl: string;
1347
+ availability: "externalOnly";
1348
+ inputSchema?: {
1349
+ type: "object";
1350
+ properties: Record<string, {
1351
+ type: "string" | "number" | "boolean" | "integer";
1352
+ description?: string | undefined;
1353
+ title?: string | undefined;
1354
+ enum?: (string | number | boolean)[] | undefined;
1355
+ }>;
1356
+ additionalProperties: false;
1357
+ required?: string[] | undefined;
1358
+ } | undefined;
1359
+ targetProviderState?: {
1360
+ name: string;
1361
+ id?: string | null | undefined;
1362
+ category?: string | null | undefined;
1363
+ } | undefined;
1364
+ })[];
1365
+ }>;
1366
+ export declare const IssueExecuteIssueTransitionInputSchema: z.ZodEffects<z.ZodObject<{
1367
+ issueId: z.ZodString;
1368
+ transitionId: z.ZodString;
1369
+ stateToken: z.ZodString;
1370
+ requestId: z.ZodString;
1371
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
1372
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1373
+ issueId: z.ZodString;
1374
+ transitionId: z.ZodString;
1375
+ stateToken: z.ZodString;
1376
+ requestId: z.ZodString;
1377
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
1378
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1379
+ issueId: z.ZodString;
1380
+ transitionId: z.ZodString;
1381
+ stateToken: z.ZodString;
1382
+ requestId: z.ZodString;
1383
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
1384
+ }, z.ZodTypeAny, "passthrough">>, {
1385
+ fields?: Record<string, string | number | boolean>;
1386
+ issueId: string;
1387
+ transitionId: string;
1388
+ stateToken: string;
1389
+ requestId: string;
1390
+ }, z.objectInputType<{
1391
+ issueId: z.ZodString;
1392
+ transitionId: z.ZodString;
1393
+ stateToken: z.ZodString;
1394
+ requestId: z.ZodString;
1395
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
1396
+ }, z.ZodTypeAny, "passthrough">>;
1397
+ export declare const IssueExecuteIssueTransitionOutputSchema: z.ZodObject<{
1398
+ issue: z.ZodObject<{
1399
+ issueId: z.ZodString;
1400
+ identifier: z.ZodString;
1401
+ title: z.ZodString;
1402
+ url: z.ZodString;
1403
+ state: z.ZodEnum<["open", "unstarted", "started", "completed", "canceled"]>;
1404
+ providerState: z.ZodObject<{
1405
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1406
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1407
+ name: z.ZodString;
1408
+ }, "strict", z.ZodTypeAny, {
1409
+ name: string;
1410
+ id?: string | null | undefined;
1411
+ category?: string | null | undefined;
1412
+ }, {
1413
+ name: string;
1414
+ id?: string | null | undefined;
1415
+ category?: string | null | undefined;
1416
+ }>;
1417
+ createdAt: z.ZodString;
1418
+ container: z.ZodOptional<z.ZodObject<{
1419
+ id: z.ZodString;
1420
+ name: z.ZodString;
1421
+ }, "strict", z.ZodTypeAny, {
1422
+ name: string;
1423
+ id: string;
1424
+ }, {
1425
+ name: string;
1426
+ id: string;
1427
+ }>>;
1428
+ description: z.ZodOptional<z.ZodString>;
1429
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1430
+ closedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1431
+ closedBy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1432
+ name: z.ZodString;
1433
+ id: z.ZodOptional<z.ZodString>;
1434
+ url: z.ZodOptional<z.ZodString>;
1435
+ type: z.ZodOptional<z.ZodEnum<["user", "bot"]>>;
1436
+ }, "strict", z.ZodTypeAny, {
1437
+ name: string;
1438
+ type?: "user" | "bot" | undefined;
1439
+ id?: string | undefined;
1440
+ url?: string | undefined;
1441
+ }, {
1442
+ name: string;
1443
+ type?: "user" | "bot" | undefined;
1444
+ id?: string | undefined;
1445
+ url?: string | undefined;
1446
+ }>>>;
1447
+ }, "strict", z.ZodTypeAny, {
1448
+ title: string;
1449
+ url: string;
1450
+ state: "completed" | "canceled" | "open" | "unstarted" | "started";
1451
+ createdAt: string;
1452
+ identifier: string;
1453
+ issueId: string;
1454
+ providerState: {
1455
+ name: string;
1456
+ id?: string | null | undefined;
1457
+ category?: string | null | undefined;
1458
+ };
1459
+ description?: string | undefined;
1460
+ updatedAt?: string | null | undefined;
1461
+ closedAt?: string | null | undefined;
1462
+ container?: {
1463
+ name: string;
1464
+ id: string;
1465
+ } | undefined;
1466
+ closedBy?: {
1467
+ name: string;
1468
+ type?: "user" | "bot" | undefined;
1469
+ id?: string | undefined;
1470
+ url?: string | undefined;
1471
+ } | null | undefined;
1472
+ }, {
1473
+ title: string;
1474
+ url: string;
1475
+ state: "completed" | "canceled" | "open" | "unstarted" | "started";
1476
+ createdAt: string;
1477
+ identifier: string;
1478
+ issueId: string;
1479
+ providerState: {
1480
+ name: string;
1481
+ id?: string | null | undefined;
1482
+ category?: string | null | undefined;
1483
+ };
1484
+ description?: string | undefined;
1485
+ updatedAt?: string | null | undefined;
1486
+ closedAt?: string | null | undefined;
1487
+ container?: {
1488
+ name: string;
1489
+ id: string;
1490
+ } | undefined;
1491
+ closedBy?: {
1492
+ name: string;
1493
+ type?: "user" | "bot" | undefined;
1494
+ id?: string | undefined;
1495
+ url?: string | undefined;
1496
+ } | null | undefined;
1497
+ }>;
1498
+ }, "strict", z.ZodTypeAny, {
1499
+ issue: {
1500
+ title: string;
1501
+ url: string;
1502
+ state: "completed" | "canceled" | "open" | "unstarted" | "started";
1503
+ createdAt: string;
1504
+ identifier: string;
1505
+ issueId: string;
1506
+ providerState: {
1507
+ name: string;
1508
+ id?: string | null | undefined;
1509
+ category?: string | null | undefined;
1510
+ };
1511
+ description?: string | undefined;
1512
+ updatedAt?: string | null | undefined;
1513
+ closedAt?: string | null | undefined;
1514
+ container?: {
1515
+ name: string;
1516
+ id: string;
1517
+ } | undefined;
1518
+ closedBy?: {
1519
+ name: string;
1520
+ type?: "user" | "bot" | undefined;
1521
+ id?: string | undefined;
1522
+ url?: string | undefined;
1523
+ } | null | undefined;
1524
+ };
1525
+ }, {
1526
+ issue: {
1527
+ title: string;
1528
+ url: string;
1529
+ state: "completed" | "canceled" | "open" | "unstarted" | "started";
1530
+ createdAt: string;
1531
+ identifier: string;
1532
+ issueId: string;
1533
+ providerState: {
1534
+ name: string;
1535
+ id?: string | null | undefined;
1536
+ category?: string | null | undefined;
1537
+ };
1538
+ description?: string | undefined;
1539
+ updatedAt?: string | null | undefined;
1540
+ closedAt?: string | null | undefined;
1541
+ container?: {
1542
+ name: string;
1543
+ id: string;
1544
+ } | undefined;
1545
+ closedBy?: {
1546
+ name: string;
1547
+ type?: "user" | "bot" | undefined;
1548
+ id?: string | undefined;
1549
+ url?: string | undefined;
1550
+ } | null | undefined;
1551
+ };
1552
+ }>;
1553
+ export type ExternalIssueState = z.infer<typeof ExternalIssueStateSchema>;
1554
+ export type ExternalIssue = ProtoBacked<z.infer<typeof ExternalIssueSchema>, ProtoExternalIssue>;
1555
+ export type IssueError = ProtoBacked<z.infer<typeof IssueErrorSchema>, ProtoIssueError>;
1556
+ export type IssueTransition = ProtoBacked<z.infer<typeof IssueTransitionSchema>, ProtoIssueTransition>;
1557
+ export type IssueSearchIssuesInput = ProtoBacked<z.infer<typeof IssueSearchIssuesInputSchema>, ProtoIssueSearchIssuesInput>;
1558
+ export type IssueSearchIssuesOutput = ProtoBacked<z.infer<typeof IssueSearchIssuesOutputSchema>, ProtoIssueSearchIssuesOutput>;
1559
+ export type IssueGetIssueInput = ProtoBacked<z.infer<typeof IssueGetIssueInputSchema>, ProtoIssueGetIssueInput>;
1560
+ export type IssueGetIssueOutput = ProtoBacked<z.infer<typeof IssueGetIssueOutputSchema>, ProtoIssueGetIssueOutput>;
1561
+ export type IssueGetIssuesInput = ProtoBacked<z.infer<typeof IssueGetIssuesInputSchema>, ProtoIssueGetIssuesInput>;
1562
+ export type IssueGetIssuesOutput = ProtoBacked<z.infer<typeof IssueGetIssuesOutputSchema>, ProtoIssueGetIssuesOutput>;
1563
+ export type IssueGetIssueTransitionsInput = ProtoBacked<z.infer<typeof IssueGetIssueTransitionsInputSchema>, ProtoIssueGetIssueTransitionsInput>;
1564
+ export type IssueGetIssueTransitionsOutput = ProtoBacked<z.infer<typeof IssueGetIssueTransitionsOutputSchema>, ProtoIssueGetIssueTransitionsOutput>;
1565
+ export type IssueExecuteIssueTransitionInput = ProtoBacked<z.infer<typeof IssueExecuteIssueTransitionInputSchema>, ProtoIssueExecuteIssueTransitionInput>;
1566
+ export type IssueExecuteIssueTransitionOutput = ProtoBacked<z.infer<typeof IssueExecuteIssueTransitionOutputSchema>, ProtoIssueExecuteIssueTransitionOutput>;
1567
+ export {};
1568
+ //# sourceMappingURL=issue.d.ts.map