@nathapp/koda-cli 0.2.4 → 0.3.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 (91) hide show
  1. package/dist/commands/agent.d.ts.map +1 -1
  2. package/dist/commands/agent.js +14 -20
  3. package/dist/commands/agent.js.map +1 -1
  4. package/dist/commands/comment.d.ts.map +1 -1
  5. package/dist/commands/comment.js +10 -6
  6. package/dist/commands/comment.js.map +1 -1
  7. package/dist/commands/init.d.ts +1 -0
  8. package/dist/commands/init.d.ts.map +1 -1
  9. package/dist/commands/init.js +9 -7
  10. package/dist/commands/init.js.map +1 -1
  11. package/dist/commands/kb.d.ts.map +1 -1
  12. package/dist/commands/kb.js +25 -9
  13. package/dist/commands/kb.js.map +1 -1
  14. package/dist/commands/label.d.ts.map +1 -1
  15. package/dist/commands/label.js +22 -29
  16. package/dist/commands/label.js.map +1 -1
  17. package/dist/commands/login.d.ts.map +1 -1
  18. package/dist/commands/login.js +7 -5
  19. package/dist/commands/login.js.map +1 -1
  20. package/dist/commands/project.d.ts.map +1 -1
  21. package/dist/commands/project.js +34 -26
  22. package/dist/commands/project.js.map +1 -1
  23. package/dist/commands/ticket.d.ts.map +1 -1
  24. package/dist/commands/ticket.js +166 -201
  25. package/dist/commands/ticket.js.map +1 -1
  26. package/dist/config.d.ts +1 -0
  27. package/dist/config.d.ts.map +1 -1
  28. package/dist/config.js +2 -2
  29. package/dist/config.js.map +1 -1
  30. package/dist/generated/core/ApiError.d.ts +11 -0
  31. package/dist/generated/core/ApiError.d.ts.map +1 -0
  32. package/dist/generated/core/ApiError.js +21 -0
  33. package/dist/generated/core/ApiError.js.map +1 -0
  34. package/dist/generated/core/ApiRequestOptions.d.ts +14 -0
  35. package/dist/generated/core/ApiRequestOptions.d.ts.map +1 -0
  36. package/dist/generated/core/ApiRequestOptions.js +3 -0
  37. package/dist/generated/core/ApiRequestOptions.js.map +1 -0
  38. package/dist/generated/core/ApiResult.d.ts +8 -0
  39. package/dist/generated/core/ApiResult.d.ts.map +1 -0
  40. package/dist/generated/core/ApiResult.js +3 -0
  41. package/dist/generated/core/ApiResult.js.map +1 -0
  42. package/dist/generated/core/CancelablePromise.d.ts +27 -0
  43. package/dist/generated/core/CancelablePromise.d.ts.map +1 -0
  44. package/dist/generated/core/CancelablePromise.js +101 -0
  45. package/dist/generated/core/CancelablePromise.js.map +1 -0
  46. package/dist/generated/core/OpenAPI.d.ts +29 -0
  47. package/dist/generated/core/OpenAPI.d.ts.map +1 -0
  48. package/dist/generated/core/OpenAPI.js +35 -0
  49. package/dist/generated/core/OpenAPI.js.map +1 -0
  50. package/dist/generated/core/request.d.ts +33 -0
  51. package/dist/generated/core/request.d.ts.map +1 -0
  52. package/dist/generated/core/request.js +310 -0
  53. package/dist/generated/core/request.js.map +1 -0
  54. package/dist/generated/index.d.ts +7 -0
  55. package/dist/generated/index.d.ts.map +1 -0
  56. package/dist/generated/index.js +29 -0
  57. package/dist/generated/index.js.map +1 -0
  58. package/dist/generated/schemas.gen.d.ts +723 -0
  59. package/dist/generated/schemas.gen.d.ts.map +1 -0
  60. package/dist/generated/schemas.gen.js +731 -0
  61. package/dist/generated/schemas.gen.js.map +1 -0
  62. package/dist/generated/services.gen.d.ts +474 -0
  63. package/dist/generated/services.gen.d.ts.map +1 -0
  64. package/dist/generated/services.gen.js +1218 -0
  65. package/dist/generated/services.gen.js.map +1 -0
  66. package/dist/generated/types.gen.d.ts +1586 -0
  67. package/dist/generated/types.gen.d.ts.map +1 -0
  68. package/dist/generated/types.gen.js +4 -0
  69. package/dist/generated/types.gen.js.map +1 -0
  70. package/dist/index.js +20 -4
  71. package/dist/index.js.map +1 -1
  72. package/dist/utils/api.d.ts +1 -9
  73. package/dist/utils/api.d.ts.map +1 -1
  74. package/dist/utils/api.js +5 -4
  75. package/dist/utils/api.js.map +1 -1
  76. package/dist/utils/error.d.ts +5 -3
  77. package/dist/utils/error.d.ts.map +1 -1
  78. package/dist/utils/error.js +31 -16
  79. package/dist/utils/error.js.map +1 -1
  80. package/dist/utils/output.d.ts +1 -1
  81. package/dist/utils/output.js +2 -2
  82. package/dist/utils/output.js.map +1 -1
  83. package/package.json +10 -5
  84. package/dist/client.d.ts +0 -9
  85. package/dist/client.d.ts.map +0 -1
  86. package/dist/client.js +0 -23
  87. package/dist/client.js.map +0 -1
  88. package/dist/generated.d.ts +0 -200
  89. package/dist/generated.d.ts.map +0 -1
  90. package/dist/generated.js +0 -131
  91. package/dist/generated.js.map +0 -1
@@ -0,0 +1,731 @@
1
+ "use strict";
2
+ // This file is auto-generated by @hey-api/openapi-ts
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.$CiWebhookResponseDto = exports.$CiWebhookPayloadDto = exports.$CiFailureDto = exports.$CiCommitDto = exports.$CiPipelineDto = exports.$CreateTicketLinkDto = exports.$AssignLabelDto = exports.$UpdateLabelDto = exports.$CreateLabelDto = exports.$UpdateCommentDto = exports.$CreateCommentDto = exports.$CreateWebhookDto = exports.$SearchKbDto = exports.$AddDocumentDto = exports.$TransitionWithCommentDto = exports.$UpdateTicketDto = exports.$TicketResponseDto = exports.$TicketLinkResponseDto = exports.$CreateTicketDto = exports.$UpdateProjectDto = exports.$CreateProjectDto = exports.$UpdateCapabilitiesDto = exports.$UpdateRolesDto = exports.$UpdateAgentDto = exports.$CreateAgentDto = exports.$LoginDto = exports.$AuthResponseDto = exports.$UserResponseDto = exports.$RegisterDto = void 0;
5
+ exports.$RegisterDto = {
6
+ type: 'object',
7
+ properties: {
8
+ email: {
9
+ type: 'string',
10
+ format: 'email',
11
+ example: 'user@example.com'
12
+ },
13
+ name: {
14
+ type: 'string',
15
+ minLength: 1,
16
+ example: 'John Doe'
17
+ },
18
+ password: {
19
+ type: 'string',
20
+ minLength: 8,
21
+ example: 'password123'
22
+ }
23
+ },
24
+ required: ['email', 'name', 'password']
25
+ };
26
+ exports.$UserResponseDto = {
27
+ type: 'object',
28
+ properties: {
29
+ id: {
30
+ type: 'string'
31
+ },
32
+ email: {
33
+ type: 'string'
34
+ },
35
+ name: {
36
+ type: 'string'
37
+ },
38
+ role: {
39
+ type: 'string'
40
+ },
41
+ createdAt: {
42
+ format: 'date-time',
43
+ type: 'string'
44
+ },
45
+ updatedAt: {
46
+ format: 'date-time',
47
+ type: 'string'
48
+ }
49
+ },
50
+ required: ['id', 'email', 'name', 'role', 'createdAt', 'updatedAt']
51
+ };
52
+ exports.$AuthResponseDto = {
53
+ type: 'object',
54
+ properties: {
55
+ accessToken: {
56
+ type: 'string'
57
+ },
58
+ refreshToken: {
59
+ type: 'string'
60
+ },
61
+ user: {
62
+ '$ref': '#/components/schemas/UserResponseDto'
63
+ }
64
+ },
65
+ required: ['accessToken', 'refreshToken', 'user']
66
+ };
67
+ exports.$LoginDto = {
68
+ type: 'object',
69
+ properties: {
70
+ email: {
71
+ type: 'string',
72
+ format: 'email',
73
+ example: 'user@example.com'
74
+ },
75
+ password: {
76
+ type: 'string',
77
+ example: 'password123'
78
+ }
79
+ },
80
+ required: ['email', 'password']
81
+ };
82
+ exports.$CreateAgentDto = {
83
+ type: 'object',
84
+ properties: {
85
+ name: {
86
+ type: 'string',
87
+ example: 'Subrina Coder'
88
+ },
89
+ slug: {
90
+ type: 'string',
91
+ example: 'subrina-coder'
92
+ },
93
+ maxConcurrentTickets: {
94
+ type: 'number',
95
+ minimum: 1
96
+ },
97
+ roles: {
98
+ example: ['DEVELOPER', 'REVIEWER'],
99
+ type: 'array',
100
+ items: {
101
+ type: 'string'
102
+ }
103
+ },
104
+ capabilities: {
105
+ example: ['typescript', 'nestjs'],
106
+ type: 'array',
107
+ items: {
108
+ type: 'string'
109
+ }
110
+ }
111
+ },
112
+ required: ['name', 'slug']
113
+ };
114
+ exports.$UpdateAgentDto = {
115
+ type: 'object',
116
+ properties: {
117
+ name: {
118
+ type: 'string',
119
+ description: 'Agent name'
120
+ },
121
+ status: {
122
+ type: 'string',
123
+ enum: ['ACTIVE', 'PAUSED', 'OFFLINE'],
124
+ description: 'Agent status (ACTIVE, PAUSED, OFFLINE)'
125
+ },
126
+ maxConcurrentTickets: {
127
+ type: 'number',
128
+ description: 'Max concurrent tickets agent can handle'
129
+ }
130
+ }
131
+ };
132
+ exports.$UpdateRolesDto = {
133
+ type: 'object',
134
+ properties: {
135
+ roles: {
136
+ description: 'Agent roles (TRIAGER, DEVELOPER, REVIEWER)',
137
+ example: ['DEVELOPER', 'REVIEWER'],
138
+ type: 'array',
139
+ items: {
140
+ type: 'string'
141
+ }
142
+ }
143
+ },
144
+ required: ['roles']
145
+ };
146
+ exports.$UpdateCapabilitiesDto = {
147
+ type: 'object',
148
+ properties: {
149
+ capabilities: {
150
+ description: 'Agent capabilities (e.g. typescript, react, nodejs)',
151
+ example: ['typescript', 'nestjs', 'react'],
152
+ type: 'array',
153
+ items: {
154
+ type: 'string'
155
+ }
156
+ }
157
+ },
158
+ required: ['capabilities']
159
+ };
160
+ exports.$CreateProjectDto = {
161
+ type: 'object',
162
+ properties: {
163
+ name: {
164
+ type: 'string',
165
+ minLength: 2,
166
+ description: 'Project name',
167
+ example: 'Koda'
168
+ },
169
+ slug: {
170
+ type: 'string',
171
+ pattern: '^[a-z0-9]+(-[a-z0-9]+)*$',
172
+ description: 'Project slug - lowercase alphanumeric with hyphens',
173
+ example: 'koda'
174
+ },
175
+ key: {
176
+ type: 'string',
177
+ pattern: '^[A-Z]{2,6}$',
178
+ description: 'Project key - 2-6 uppercase letters for ticket references',
179
+ example: 'KODA'
180
+ },
181
+ description: {
182
+ type: 'string',
183
+ description: 'Project description',
184
+ example: 'Dev ticket tracker'
185
+ },
186
+ gitRemoteUrl: {
187
+ type: 'string',
188
+ format: 'uri',
189
+ description: 'Git remote repository URL',
190
+ example: 'https://github.com/nathapp-io/koda'
191
+ },
192
+ autoIndexOnClose: {
193
+ type: 'boolean',
194
+ description: 'Automatically index commits on ticket close',
195
+ example: true,
196
+ default: true
197
+ },
198
+ autoAssign: {
199
+ type: 'string',
200
+ enum: ['OFF', 'SUGGEST', 'AUTO'],
201
+ description: 'Auto-assign mode for tickets: OFF, SUGGEST, or AUTO',
202
+ example: 'OFF',
203
+ default: 'OFF'
204
+ }
205
+ },
206
+ required: ['name', 'slug', 'key']
207
+ };
208
+ exports.$UpdateProjectDto = {
209
+ type: 'object',
210
+ properties: {
211
+ name: {
212
+ type: 'string',
213
+ minLength: 2,
214
+ description: 'Project name',
215
+ example: 'Updated Project Name'
216
+ },
217
+ slug: {
218
+ type: 'string',
219
+ pattern: '^[a-z0-9]+(-[a-z0-9]+)*$',
220
+ description: 'Project slug - lowercase alphanumeric with hyphens',
221
+ example: 'updated-project'
222
+ },
223
+ key: {
224
+ type: 'string',
225
+ pattern: '^[A-Z]{2,6}$',
226
+ description: 'Project key - 2-6 uppercase letters',
227
+ example: 'UPDATED'
228
+ },
229
+ description: {
230
+ type: 'string',
231
+ description: 'Project description',
232
+ example: 'Updated description'
233
+ },
234
+ gitRemoteUrl: {
235
+ type: 'string',
236
+ format: 'uri',
237
+ description: 'Git remote repository URL',
238
+ example: 'https://github.com/nathapp-io/updated-repo'
239
+ },
240
+ autoIndexOnClose: {
241
+ type: 'boolean',
242
+ description: 'Automatically index commits on ticket close',
243
+ example: false
244
+ },
245
+ autoAssign: {
246
+ type: 'string',
247
+ enum: ['OFF', 'SUGGEST', 'AUTO'],
248
+ description: 'Auto-assign mode for tickets: OFF, SUGGEST, or AUTO',
249
+ example: 'SUGGEST'
250
+ },
251
+ ciWebhookToken: {
252
+ type: 'string',
253
+ description: 'CI webhook token for authentication',
254
+ example: 'ci_webhook_token_123'
255
+ }
256
+ }
257
+ };
258
+ exports.$CreateTicketDto = {
259
+ type: 'object',
260
+ properties: {
261
+ type: {
262
+ type: 'string',
263
+ description: 'Ticket type',
264
+ enum: ['BUG', 'ENHANCEMENT', 'TASK', 'QUESTION'],
265
+ example: 'BUG'
266
+ },
267
+ title: {
268
+ type: 'string',
269
+ minLength: 1,
270
+ description: 'Ticket title',
271
+ example: 'Fix login bug'
272
+ },
273
+ description: {
274
+ type: 'string',
275
+ description: 'Ticket description',
276
+ example: 'Users cannot login with email'
277
+ },
278
+ priority: {
279
+ type: 'string',
280
+ description: 'Ticket priority',
281
+ enum: ['LOW', 'MEDIUM', 'HIGH', 'CRITICAL'],
282
+ example: 'MEDIUM',
283
+ default: 'MEDIUM'
284
+ }
285
+ },
286
+ required: ['type', 'title']
287
+ };
288
+ exports.$TicketLinkResponseDto = {
289
+ type: 'object',
290
+ properties: {
291
+ id: {
292
+ type: 'string'
293
+ },
294
+ ticketId: {
295
+ type: 'string'
296
+ },
297
+ url: {
298
+ type: 'string'
299
+ },
300
+ provider: {
301
+ type: 'string'
302
+ },
303
+ externalRef: {
304
+ type: 'string',
305
+ nullable: true
306
+ },
307
+ createdAt: {
308
+ format: 'date-time',
309
+ type: 'string'
310
+ }
311
+ },
312
+ required: ['id', 'ticketId', 'url', 'provider', 'externalRef', 'createdAt']
313
+ };
314
+ exports.$TicketResponseDto = {
315
+ type: 'object',
316
+ properties: {
317
+ id: {
318
+ type: 'string',
319
+ description: 'Ticket ID (CUID)'
320
+ },
321
+ projectId: {
322
+ type: 'string',
323
+ description: 'Project ID'
324
+ },
325
+ number: {
326
+ type: 'number',
327
+ description: 'Sequential ticket number within project'
328
+ },
329
+ ref: {
330
+ type: 'string',
331
+ description: 'Project-scoped ticket reference, e.g. NAX-1'
332
+ },
333
+ type: {
334
+ type: 'string',
335
+ description: 'Ticket type',
336
+ enum: ['BUG', 'ENHANCEMENT', 'TASK', 'QUESTION']
337
+ },
338
+ title: {
339
+ type: 'string',
340
+ description: 'Ticket title'
341
+ },
342
+ description: {
343
+ type: 'string',
344
+ nullable: true,
345
+ description: 'Ticket description'
346
+ },
347
+ status: {
348
+ type: 'string',
349
+ description: 'Ticket status',
350
+ enum: ['CREATED', 'VERIFIED', 'IN_PROGRESS', 'VERIFY_FIX', 'CLOSED', 'REJECTED']
351
+ },
352
+ priority: {
353
+ type: 'string',
354
+ description: 'Ticket priority',
355
+ enum: ['LOW', 'MEDIUM', 'HIGH', 'CRITICAL']
356
+ },
357
+ assignedToUserId: {
358
+ type: 'string',
359
+ nullable: true,
360
+ description: 'Assigned to user ID'
361
+ },
362
+ assignedToAgentId: {
363
+ type: 'string',
364
+ nullable: true,
365
+ description: 'Assigned to agent ID'
366
+ },
367
+ createdByUserId: {
368
+ type: 'string',
369
+ nullable: true,
370
+ description: 'Created by user ID'
371
+ },
372
+ createdByAgentId: {
373
+ type: 'string',
374
+ nullable: true,
375
+ description: 'Created by agent ID'
376
+ },
377
+ gitRefVersion: {
378
+ type: 'string',
379
+ nullable: true,
380
+ description: 'Git reference version'
381
+ },
382
+ gitRefFile: {
383
+ type: 'string',
384
+ nullable: true,
385
+ description: 'Git reference file'
386
+ },
387
+ gitRefLine: {
388
+ type: 'number',
389
+ nullable: true,
390
+ description: 'Git reference line'
391
+ },
392
+ gitRefUrl: {
393
+ type: 'string',
394
+ nullable: true,
395
+ description: 'Git reference URL'
396
+ },
397
+ createdAt: {
398
+ format: 'date-time',
399
+ type: 'string',
400
+ description: 'Created at timestamp'
401
+ },
402
+ updatedAt: {
403
+ format: 'date-time',
404
+ type: 'string',
405
+ description: 'Updated at timestamp'
406
+ },
407
+ deletedAt: {
408
+ format: 'date-time',
409
+ type: 'string',
410
+ nullable: true,
411
+ description: 'Soft delete timestamp'
412
+ },
413
+ links: {
414
+ description: 'Related ticket links',
415
+ type: 'array',
416
+ items: {
417
+ '$ref': '#/components/schemas/TicketLinkResponseDto'
418
+ }
419
+ },
420
+ labels: {
421
+ type: 'array',
422
+ items: {
423
+ type: 'array',
424
+ items: {
425
+ type: 'object',
426
+ properties: {
427
+ id: {
428
+ type: 'string'
429
+ },
430
+ projectId: {
431
+ type: 'string'
432
+ },
433
+ name: {
434
+ type: 'string'
435
+ },
436
+ color: {
437
+ type: 'string',
438
+ nullable: true
439
+ }
440
+ },
441
+ required: ['id', 'projectId', 'name', 'color']
442
+ },
443
+ selfRequired: true
444
+ }
445
+ }
446
+ },
447
+ required: ['id', 'projectId', 'number', 'ref', 'type', 'title', 'status', 'priority', 'createdAt', 'updatedAt', 'links', 'labels']
448
+ };
449
+ exports.$UpdateTicketDto = {
450
+ type: 'object',
451
+ properties: {
452
+ title: {
453
+ type: 'string',
454
+ minLength: 1,
455
+ description: 'Ticket title',
456
+ example: 'Updated ticket title'
457
+ },
458
+ description: {
459
+ type: 'string',
460
+ description: 'Ticket description',
461
+ example: 'Updated description'
462
+ },
463
+ priority: {
464
+ type: 'string',
465
+ description: 'Ticket priority',
466
+ enum: ['LOW', 'MEDIUM', 'HIGH', 'CRITICAL'],
467
+ example: 'HIGH'
468
+ },
469
+ status: {
470
+ type: 'string',
471
+ description: 'Ticket status',
472
+ enum: ['CREATED', 'VERIFIED', 'IN_PROGRESS', 'VERIFY_FIX', 'CLOSED', 'REJECTED'],
473
+ example: 'IN_PROGRESS'
474
+ }
475
+ }
476
+ };
477
+ exports.$TransitionWithCommentDto = {
478
+ type: 'object',
479
+ properties: {
480
+ body: {
481
+ type: 'string',
482
+ description: 'Comment body explaining the transition',
483
+ example: 'This ticket has been verified and is ready to work on'
484
+ }
485
+ }
486
+ };
487
+ exports.$AddDocumentDto = {
488
+ type: 'object',
489
+ properties: {
490
+ source: {
491
+ type: 'string',
492
+ enum: ['ticket', 'doc', 'manual'],
493
+ description: 'Source type'
494
+ },
495
+ sourceId: {
496
+ type: 'string',
497
+ minLength: 1,
498
+ description: 'Source record ID (e.g. ticket CUID)'
499
+ },
500
+ content: {
501
+ type: 'string',
502
+ minLength: 1,
503
+ description: 'Full text content to embed and index'
504
+ },
505
+ metadata: {
506
+ type: 'object',
507
+ description: 'Arbitrary metadata stored with the document'
508
+ }
509
+ },
510
+ required: ['source', 'sourceId', 'content']
511
+ };
512
+ exports.$SearchKbDto = {
513
+ type: 'object',
514
+ properties: {
515
+ query: {
516
+ type: 'string',
517
+ minLength: 1,
518
+ description: 'Natural language search query'
519
+ },
520
+ limit: {
521
+ type: 'number',
522
+ default: 5,
523
+ minimum: 1,
524
+ maximum: 50
525
+ }
526
+ },
527
+ required: ['query']
528
+ };
529
+ exports.$CreateWebhookDto = {
530
+ type: 'object',
531
+ properties: {
532
+ url: {
533
+ type: 'string',
534
+ format: 'uri'
535
+ },
536
+ secret: {
537
+ type: 'string'
538
+ },
539
+ events: {
540
+ type: 'array',
541
+ items: {
542
+ type: 'string'
543
+ }
544
+ }
545
+ },
546
+ required: ['url', 'secret', 'events']
547
+ };
548
+ exports.$CreateCommentDto = {
549
+ type: 'object',
550
+ properties: {
551
+ body: {
552
+ type: 'string',
553
+ minLength: 1,
554
+ description: 'Comment body',
555
+ example: 'This is a comment'
556
+ },
557
+ type: {
558
+ type: 'string',
559
+ enum: ['GENERAL', 'VERIFICATION', 'FIX_REPORT', 'REVIEW', 'STATUS_CHANGE'],
560
+ description: 'Comment type',
561
+ example: 'GENERAL'
562
+ }
563
+ }
564
+ };
565
+ exports.$UpdateCommentDto = {
566
+ type: 'object',
567
+ properties: {
568
+ body: {
569
+ type: 'string',
570
+ minLength: 1,
571
+ description: 'Comment body',
572
+ example: 'Updated comment body'
573
+ }
574
+ }
575
+ };
576
+ exports.$CreateLabelDto = {
577
+ type: 'object',
578
+ properties: {
579
+ name: {
580
+ type: 'string',
581
+ example: 'typescript'
582
+ },
583
+ color: {
584
+ type: 'string',
585
+ example: '#0066CC'
586
+ }
587
+ },
588
+ required: ['name']
589
+ };
590
+ exports.$UpdateLabelDto = {
591
+ type: 'object',
592
+ properties: {
593
+ name: {
594
+ type: 'string',
595
+ example: 'typescript'
596
+ },
597
+ color: {
598
+ type: 'string',
599
+ example: '#0066CC'
600
+ }
601
+ }
602
+ };
603
+ exports.$AssignLabelDto = {
604
+ type: 'object',
605
+ properties: {
606
+ labelId: {
607
+ type: 'string',
608
+ example: 'label-123'
609
+ }
610
+ },
611
+ required: ['labelId']
612
+ };
613
+ exports.$CreateTicketLinkDto = {
614
+ type: 'object',
615
+ properties: {
616
+ url: {
617
+ type: 'string',
618
+ format: 'uri',
619
+ example: 'https://github.com/owner/repo/pull/1'
620
+ }
621
+ },
622
+ required: ['url']
623
+ };
624
+ exports.$CiPipelineDto = {
625
+ type: 'object',
626
+ properties: {
627
+ id: {
628
+ type: 'string',
629
+ description: 'Pipeline ID',
630
+ example: '12345'
631
+ },
632
+ url: {
633
+ type: 'string',
634
+ description: 'Pipeline URL',
635
+ example: 'https://github.com/org/repo/actions/runs/12345'
636
+ }
637
+ },
638
+ required: ['id']
639
+ };
640
+ exports.$CiCommitDto = {
641
+ type: 'object',
642
+ properties: {
643
+ sha: {
644
+ type: 'string',
645
+ description: 'Commit SHA',
646
+ example: 'abc123def456'
647
+ },
648
+ message: {
649
+ type: 'string',
650
+ description: 'Commit message',
651
+ example: 'feat: add dark mode'
652
+ }
653
+ },
654
+ required: ['sha']
655
+ };
656
+ exports.$CiFailureDto = {
657
+ type: 'object',
658
+ properties: {
659
+ test: {
660
+ type: 'string',
661
+ description: 'Failed test or step name',
662
+ example: 'AuthService.validateToken'
663
+ },
664
+ file: {
665
+ type: 'string',
666
+ description: 'File path where failure occurred',
667
+ example: 'apps/api/src/auth/auth.service.ts'
668
+ },
669
+ line: {
670
+ type: 'number',
671
+ description: 'Line number where failure occurred',
672
+ example: 87
673
+ }
674
+ },
675
+ required: ['test']
676
+ };
677
+ exports.$CiWebhookPayloadDto = {
678
+ type: 'object',
679
+ properties: {
680
+ event: {
681
+ type: 'string',
682
+ enum: ['pipeline_failed', 'pipeline_success'],
683
+ description: 'CI event type',
684
+ example: 'pipeline_failed'
685
+ },
686
+ pipeline: {
687
+ description: 'Pipeline information',
688
+ allOf: [
689
+ {
690
+ '$ref': '#/components/schemas/CiPipelineDto'
691
+ }
692
+ ]
693
+ },
694
+ commit: {
695
+ description: 'Commit information',
696
+ allOf: [
697
+ {
698
+ '$ref': '#/components/schemas/CiCommitDto'
699
+ }
700
+ ]
701
+ },
702
+ failures: {
703
+ description: 'List of failures',
704
+ type: 'array',
705
+ items: {
706
+ '$ref': '#/components/schemas/CiFailureDto'
707
+ }
708
+ }
709
+ },
710
+ required: ['event', 'pipeline', 'commit', 'failures']
711
+ };
712
+ exports.$CiWebhookResponseDto = {
713
+ type: 'object',
714
+ properties: {
715
+ success: {
716
+ type: 'boolean',
717
+ description: 'Whether the webhook was processed successfully'
718
+ },
719
+ ticketRef: {
720
+ type: 'string',
721
+ description: 'Created ticket reference',
722
+ example: 'KODA-42'
723
+ },
724
+ message: {
725
+ type: 'string',
726
+ description: 'Message describing the result'
727
+ }
728
+ },
729
+ required: ['success', 'message']
730
+ };
731
+ //# sourceMappingURL=schemas.gen.js.map