@nathapp/koda-cli 0.2.4 → 0.4.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 (103) 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 +118 -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 +105 -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 +72 -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 +86 -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 +199 -201
  25. package/dist/commands/ticket.js.map +1 -1
  26. package/dist/commands/vcs-messages.d.ts +22 -0
  27. package/dist/commands/vcs-messages.d.ts.map +1 -0
  28. package/dist/commands/vcs-messages.js +25 -0
  29. package/dist/commands/vcs-messages.js.map +1 -0
  30. package/dist/commands/vcs.d.ts +10 -0
  31. package/dist/commands/vcs.d.ts.map +1 -0
  32. package/dist/commands/vcs.js +376 -0
  33. package/dist/commands/vcs.js.map +1 -0
  34. package/dist/config.d.ts +1 -0
  35. package/dist/config.d.ts.map +1 -1
  36. package/dist/config.js +2 -2
  37. package/dist/config.js.map +1 -1
  38. package/dist/generated/core/ApiError.d.ts +11 -0
  39. package/dist/generated/core/ApiError.d.ts.map +1 -0
  40. package/dist/generated/core/ApiError.js +21 -0
  41. package/dist/generated/core/ApiError.js.map +1 -0
  42. package/dist/generated/core/ApiRequestOptions.d.ts +14 -0
  43. package/dist/generated/core/ApiRequestOptions.d.ts.map +1 -0
  44. package/dist/generated/core/ApiRequestOptions.js +3 -0
  45. package/dist/generated/core/ApiRequestOptions.js.map +1 -0
  46. package/dist/generated/core/ApiResult.d.ts +8 -0
  47. package/dist/generated/core/ApiResult.d.ts.map +1 -0
  48. package/dist/generated/core/ApiResult.js +3 -0
  49. package/dist/generated/core/ApiResult.js.map +1 -0
  50. package/dist/generated/core/CancelablePromise.d.ts +27 -0
  51. package/dist/generated/core/CancelablePromise.d.ts.map +1 -0
  52. package/dist/generated/core/CancelablePromise.js +101 -0
  53. package/dist/generated/core/CancelablePromise.js.map +1 -0
  54. package/dist/generated/core/OpenAPI.d.ts +29 -0
  55. package/dist/generated/core/OpenAPI.d.ts.map +1 -0
  56. package/dist/generated/core/OpenAPI.js +35 -0
  57. package/dist/generated/core/OpenAPI.js.map +1 -0
  58. package/dist/generated/core/request.d.ts +33 -0
  59. package/dist/generated/core/request.d.ts.map +1 -0
  60. package/dist/generated/core/request.js +310 -0
  61. package/dist/generated/core/request.js.map +1 -0
  62. package/dist/generated/index.d.ts +7 -0
  63. package/dist/generated/index.d.ts.map +1 -0
  64. package/dist/generated/index.js +29 -0
  65. package/dist/generated/index.js.map +1 -0
  66. package/dist/generated/schemas.gen.d.ts +895 -0
  67. package/dist/generated/schemas.gen.d.ts.map +1 -0
  68. package/dist/generated/schemas.gen.js +903 -0
  69. package/dist/generated/schemas.gen.js.map +1 -0
  70. package/dist/generated/services.gen.d.ts +546 -0
  71. package/dist/generated/services.gen.d.ts.map +1 -0
  72. package/dist/generated/services.gen.js +1393 -0
  73. package/dist/generated/services.gen.js.map +1 -0
  74. package/dist/generated/types.gen.d.ts +1790 -0
  75. package/dist/generated/types.gen.d.ts.map +1 -0
  76. package/dist/generated/types.gen.js +4 -0
  77. package/dist/generated/types.gen.js.map +1 -0
  78. package/dist/index.js +23 -4
  79. package/dist/index.js.map +1 -1
  80. package/dist/utils/api.d.ts +1 -9
  81. package/dist/utils/api.d.ts.map +1 -1
  82. package/dist/utils/api.js +5 -4
  83. package/dist/utils/api.js.map +1 -1
  84. package/dist/utils/error.d.ts +5 -3
  85. package/dist/utils/error.d.ts.map +1 -1
  86. package/dist/utils/error.js +31 -16
  87. package/dist/utils/error.js.map +1 -1
  88. package/dist/utils/output.d.ts +1 -1
  89. package/dist/utils/output.js +2 -2
  90. package/dist/utils/output.js.map +1 -1
  91. package/dist/vcs-client.stub.d.ts +74 -0
  92. package/dist/vcs-client.stub.d.ts.map +1 -0
  93. package/dist/vcs-client.stub.js +40 -0
  94. package/dist/vcs-client.stub.js.map +1 -0
  95. package/package.json +10 -5
  96. package/dist/client.d.ts +0 -9
  97. package/dist/client.d.ts.map +0 -1
  98. package/dist/client.js +0 -23
  99. package/dist/client.js.map +0 -1
  100. package/dist/generated.d.ts +0 -200
  101. package/dist/generated.d.ts.map +0 -1
  102. package/dist/generated.js +0 -131
  103. package/dist/generated.js.map +0 -1
@@ -0,0 +1,903 @@
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.$AssignLabelDto = exports.$UpdateLabelDto = exports.$CreateLabelDto = exports.$UpdateCommentDto = exports.$CreateCommentDto = exports.$CreateTicketLinkDto = exports.$SyncResultDto = exports.$TestConnectionResultDto = exports.$UpdateVcsConnectionDto = exports.$VcsConnectionResponseDto = exports.$CreateVcsConnectionDto = 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
+ prState: {
308
+ type: 'string',
309
+ nullable: true
310
+ },
311
+ prNumber: {
312
+ type: 'number',
313
+ nullable: true
314
+ },
315
+ prUpdatedAt: {
316
+ format: 'date-time',
317
+ type: 'string',
318
+ nullable: true
319
+ },
320
+ linkType: {
321
+ type: 'string'
322
+ },
323
+ title: {
324
+ type: 'string',
325
+ nullable: true
326
+ },
327
+ createdAt: {
328
+ format: 'date-time',
329
+ type: 'string'
330
+ }
331
+ },
332
+ required: ['id', 'ticketId', 'url', 'provider', 'externalRef', 'prState', 'prNumber', 'prUpdatedAt', 'linkType', 'title', 'createdAt']
333
+ };
334
+ exports.$TicketResponseDto = {
335
+ type: 'object',
336
+ properties: {
337
+ id: {
338
+ type: 'string',
339
+ description: 'Ticket ID (CUID)'
340
+ },
341
+ projectId: {
342
+ type: 'string',
343
+ description: 'Project ID'
344
+ },
345
+ number: {
346
+ type: 'number',
347
+ description: 'Sequential ticket number within project'
348
+ },
349
+ ref: {
350
+ type: 'string',
351
+ description: 'Project-scoped ticket reference, e.g. NAX-1'
352
+ },
353
+ type: {
354
+ type: 'string',
355
+ description: 'Ticket type',
356
+ enum: ['BUG', 'ENHANCEMENT', 'TASK', 'QUESTION']
357
+ },
358
+ title: {
359
+ type: 'string',
360
+ description: 'Ticket title'
361
+ },
362
+ description: {
363
+ type: 'string',
364
+ nullable: true,
365
+ description: 'Ticket description'
366
+ },
367
+ status: {
368
+ type: 'string',
369
+ description: 'Ticket status',
370
+ enum: ['CREATED', 'VERIFIED', 'IN_PROGRESS', 'VERIFY_FIX', 'CLOSED', 'REJECTED']
371
+ },
372
+ priority: {
373
+ type: 'string',
374
+ description: 'Ticket priority',
375
+ enum: ['LOW', 'MEDIUM', 'HIGH', 'CRITICAL']
376
+ },
377
+ assignedToUserId: {
378
+ type: 'string',
379
+ nullable: true,
380
+ description: 'Assigned to user ID'
381
+ },
382
+ assignedToAgentId: {
383
+ type: 'string',
384
+ nullable: true,
385
+ description: 'Assigned to agent ID'
386
+ },
387
+ createdByUserId: {
388
+ type: 'string',
389
+ nullable: true,
390
+ description: 'Created by user ID'
391
+ },
392
+ createdByAgentId: {
393
+ type: 'string',
394
+ nullable: true,
395
+ description: 'Created by agent ID'
396
+ },
397
+ gitRefVersion: {
398
+ type: 'string',
399
+ nullable: true,
400
+ description: 'Git reference version'
401
+ },
402
+ gitRefFile: {
403
+ type: 'string',
404
+ nullable: true,
405
+ description: 'Git reference file'
406
+ },
407
+ gitRefLine: {
408
+ type: 'number',
409
+ nullable: true,
410
+ description: 'Git reference line'
411
+ },
412
+ gitRefUrl: {
413
+ type: 'string',
414
+ nullable: true,
415
+ description: 'Git reference URL'
416
+ },
417
+ createdAt: {
418
+ format: 'date-time',
419
+ type: 'string',
420
+ description: 'Created at timestamp'
421
+ },
422
+ updatedAt: {
423
+ format: 'date-time',
424
+ type: 'string',
425
+ description: 'Updated at timestamp'
426
+ },
427
+ deletedAt: {
428
+ format: 'date-time',
429
+ type: 'string',
430
+ nullable: true,
431
+ description: 'Soft delete timestamp'
432
+ },
433
+ links: {
434
+ description: 'Related ticket links',
435
+ type: 'array',
436
+ items: {
437
+ '$ref': '#/components/schemas/TicketLinkResponseDto'
438
+ }
439
+ },
440
+ labels: {
441
+ type: 'array',
442
+ items: {
443
+ type: 'array',
444
+ items: {
445
+ type: 'object',
446
+ properties: {
447
+ id: {
448
+ type: 'string'
449
+ },
450
+ projectId: {
451
+ type: 'string'
452
+ },
453
+ name: {
454
+ type: 'string'
455
+ },
456
+ color: {
457
+ type: 'string',
458
+ nullable: true
459
+ }
460
+ },
461
+ required: ['id', 'projectId', 'name', 'color']
462
+ },
463
+ selfRequired: true
464
+ }
465
+ }
466
+ },
467
+ required: ['id', 'projectId', 'number', 'ref', 'type', 'title', 'status', 'priority', 'createdAt', 'updatedAt', 'links', 'labels']
468
+ };
469
+ exports.$UpdateTicketDto = {
470
+ type: 'object',
471
+ properties: {
472
+ title: {
473
+ type: 'string',
474
+ minLength: 1,
475
+ description: 'Ticket title',
476
+ example: 'Updated ticket title'
477
+ },
478
+ description: {
479
+ type: 'string',
480
+ description: 'Ticket description',
481
+ example: 'Updated description'
482
+ },
483
+ priority: {
484
+ type: 'string',
485
+ description: 'Ticket priority',
486
+ enum: ['LOW', 'MEDIUM', 'HIGH', 'CRITICAL'],
487
+ example: 'HIGH'
488
+ },
489
+ status: {
490
+ type: 'string',
491
+ description: 'Ticket status',
492
+ enum: ['CREATED', 'VERIFIED', 'IN_PROGRESS', 'VERIFY_FIX', 'CLOSED', 'REJECTED'],
493
+ example: 'IN_PROGRESS'
494
+ }
495
+ }
496
+ };
497
+ exports.$TransitionWithCommentDto = {
498
+ type: 'object',
499
+ properties: {
500
+ body: {
501
+ type: 'string',
502
+ description: 'Comment body explaining the transition',
503
+ example: 'This ticket has been verified and is ready to work on'
504
+ }
505
+ }
506
+ };
507
+ exports.$AddDocumentDto = {
508
+ type: 'object',
509
+ properties: {
510
+ source: {
511
+ type: 'string',
512
+ enum: ['ticket', 'doc', 'manual'],
513
+ description: 'Source type'
514
+ },
515
+ sourceId: {
516
+ type: 'string',
517
+ minLength: 1,
518
+ description: 'Source record ID (e.g. ticket CUID)'
519
+ },
520
+ content: {
521
+ type: 'string',
522
+ minLength: 1,
523
+ description: 'Full text content to embed and index'
524
+ },
525
+ metadata: {
526
+ type: 'object',
527
+ description: 'Arbitrary metadata stored with the document'
528
+ }
529
+ },
530
+ required: ['source', 'sourceId', 'content']
531
+ };
532
+ exports.$SearchKbDto = {
533
+ type: 'object',
534
+ properties: {
535
+ query: {
536
+ type: 'string',
537
+ minLength: 1,
538
+ description: 'Natural language search query'
539
+ },
540
+ limit: {
541
+ type: 'number',
542
+ default: 5,
543
+ minimum: 1,
544
+ maximum: 50
545
+ }
546
+ },
547
+ required: ['query']
548
+ };
549
+ exports.$CreateWebhookDto = {
550
+ type: 'object',
551
+ properties: {
552
+ url: {
553
+ type: 'string',
554
+ format: 'uri'
555
+ },
556
+ secret: {
557
+ type: 'string'
558
+ },
559
+ events: {
560
+ type: 'array',
561
+ items: {
562
+ type: 'string'
563
+ }
564
+ }
565
+ },
566
+ required: ['url', 'secret', 'events']
567
+ };
568
+ exports.$CreateVcsConnectionDto = {
569
+ type: 'object',
570
+ properties: {
571
+ provider: {
572
+ type: 'string',
573
+ enum: ['github']
574
+ },
575
+ repoOwner: {
576
+ type: 'string'
577
+ },
578
+ repoName: {
579
+ type: 'string'
580
+ },
581
+ token: {
582
+ type: 'string'
583
+ },
584
+ syncMode: {
585
+ type: 'string',
586
+ enum: ['off', 'polling', 'webhook']
587
+ },
588
+ allowedAuthors: {
589
+ type: 'array',
590
+ items: {
591
+ type: 'string'
592
+ }
593
+ },
594
+ pollingIntervalMs: {
595
+ type: 'number',
596
+ minimum: 60000
597
+ }
598
+ },
599
+ required: ['provider', 'repoOwner', 'repoName', 'token']
600
+ };
601
+ exports.$VcsConnectionResponseDto = {
602
+ type: 'object',
603
+ properties: {
604
+ id: {
605
+ type: 'string'
606
+ },
607
+ provider: {
608
+ type: 'string'
609
+ },
610
+ repoOwner: {
611
+ type: 'string'
612
+ },
613
+ repoName: {
614
+ type: 'string'
615
+ },
616
+ syncMode: {
617
+ type: 'string'
618
+ },
619
+ allowedAuthors: {
620
+ type: 'array',
621
+ items: {
622
+ type: 'string'
623
+ }
624
+ },
625
+ pollingIntervalMs: {
626
+ type: 'number'
627
+ },
628
+ lastSyncedAt: {
629
+ type: 'string',
630
+ nullable: true
631
+ },
632
+ isActive: {
633
+ type: 'boolean'
634
+ },
635
+ createdAt: {
636
+ type: 'string'
637
+ },
638
+ updatedAt: {
639
+ type: 'string'
640
+ }
641
+ },
642
+ required: ['id', 'provider', 'repoOwner', 'repoName', 'syncMode', 'allowedAuthors', 'pollingIntervalMs', 'lastSyncedAt', 'isActive', 'createdAt', 'updatedAt']
643
+ };
644
+ exports.$UpdateVcsConnectionDto = {
645
+ type: 'object',
646
+ properties: {
647
+ token: {
648
+ type: 'string'
649
+ },
650
+ syncMode: {
651
+ type: 'string',
652
+ enum: ['off', 'polling', 'webhook']
653
+ },
654
+ allowedAuthors: {
655
+ type: 'array',
656
+ items: {
657
+ type: 'string'
658
+ }
659
+ },
660
+ pollingIntervalMs: {
661
+ type: 'number',
662
+ minimum: 60000
663
+ }
664
+ }
665
+ };
666
+ exports.$TestConnectionResultDto = {
667
+ type: 'object',
668
+ properties: {
669
+ ok: {
670
+ type: 'boolean'
671
+ },
672
+ error: {
673
+ type: 'string'
674
+ }
675
+ },
676
+ required: ['ok']
677
+ };
678
+ exports.$SyncResultDto = {
679
+ type: 'object',
680
+ properties: {
681
+ syncType: {
682
+ type: 'string',
683
+ description: 'How this sync was triggered',
684
+ example: 'manual'
685
+ },
686
+ issuesSynced: {
687
+ type: 'number',
688
+ description: 'Number of issues successfully synced',
689
+ example: 3
690
+ },
691
+ issuesSkipped: {
692
+ type: 'number',
693
+ description: 'Number of issues skipped (already synced or filtered)',
694
+ example: 2
695
+ },
696
+ tickets: {
697
+ type: 'array',
698
+ description: 'List of created ticket refs',
699
+ items: {
700
+ type: 'object',
701
+ properties: {
702
+ ref: {
703
+ type: 'string',
704
+ example: 'PROJ-1'
705
+ },
706
+ title: {
707
+ type: 'string',
708
+ example: 'Imported GitHub issue'
709
+ }
710
+ }
711
+ }
712
+ }
713
+ },
714
+ required: ['syncType', 'issuesSynced', 'issuesSkipped', 'tickets']
715
+ };
716
+ exports.$CreateTicketLinkDto = {
717
+ type: 'object',
718
+ properties: {
719
+ url: {
720
+ type: 'string',
721
+ format: 'uri',
722
+ example: 'https://github.com/owner/repo/pull/1'
723
+ },
724
+ linkType: {
725
+ type: 'string',
726
+ example: 'url'
727
+ }
728
+ },
729
+ required: ['url']
730
+ };
731
+ exports.$CreateCommentDto = {
732
+ type: 'object',
733
+ properties: {
734
+ body: {
735
+ type: 'string',
736
+ minLength: 1,
737
+ description: 'Comment body',
738
+ example: 'This is a comment'
739
+ },
740
+ type: {
741
+ type: 'string',
742
+ enum: ['GENERAL', 'VERIFICATION', 'FIX_REPORT', 'REVIEW', 'STATUS_CHANGE'],
743
+ description: 'Comment type',
744
+ example: 'GENERAL'
745
+ }
746
+ }
747
+ };
748
+ exports.$UpdateCommentDto = {
749
+ type: 'object',
750
+ properties: {
751
+ body: {
752
+ type: 'string',
753
+ minLength: 1,
754
+ description: 'Comment body',
755
+ example: 'Updated comment body'
756
+ }
757
+ }
758
+ };
759
+ exports.$CreateLabelDto = {
760
+ type: 'object',
761
+ properties: {
762
+ name: {
763
+ type: 'string',
764
+ example: 'typescript'
765
+ },
766
+ color: {
767
+ type: 'string',
768
+ example: '#0066CC'
769
+ }
770
+ },
771
+ required: ['name']
772
+ };
773
+ exports.$UpdateLabelDto = {
774
+ type: 'object',
775
+ properties: {
776
+ name: {
777
+ type: 'string',
778
+ example: 'typescript'
779
+ },
780
+ color: {
781
+ type: 'string',
782
+ example: '#0066CC'
783
+ }
784
+ }
785
+ };
786
+ exports.$AssignLabelDto = {
787
+ type: 'object',
788
+ properties: {
789
+ labelId: {
790
+ type: 'string',
791
+ example: 'label-123'
792
+ }
793
+ },
794
+ required: ['labelId']
795
+ };
796
+ exports.$CiPipelineDto = {
797
+ type: 'object',
798
+ properties: {
799
+ id: {
800
+ type: 'string',
801
+ description: 'Pipeline ID',
802
+ example: '12345'
803
+ },
804
+ url: {
805
+ type: 'string',
806
+ description: 'Pipeline URL',
807
+ example: 'https://github.com/org/repo/actions/runs/12345'
808
+ }
809
+ },
810
+ required: ['id']
811
+ };
812
+ exports.$CiCommitDto = {
813
+ type: 'object',
814
+ properties: {
815
+ sha: {
816
+ type: 'string',
817
+ description: 'Commit SHA',
818
+ example: 'abc123def456'
819
+ },
820
+ message: {
821
+ type: 'string',
822
+ description: 'Commit message',
823
+ example: 'feat: add dark mode'
824
+ }
825
+ },
826
+ required: ['sha']
827
+ };
828
+ exports.$CiFailureDto = {
829
+ type: 'object',
830
+ properties: {
831
+ test: {
832
+ type: 'string',
833
+ description: 'Failed test or step name',
834
+ example: 'AuthService.validateToken'
835
+ },
836
+ file: {
837
+ type: 'string',
838
+ description: 'File path where failure occurred',
839
+ example: 'apps/api/src/auth/auth.service.ts'
840
+ },
841
+ line: {
842
+ type: 'number',
843
+ description: 'Line number where failure occurred',
844
+ example: 87
845
+ }
846
+ },
847
+ required: ['test']
848
+ };
849
+ exports.$CiWebhookPayloadDto = {
850
+ type: 'object',
851
+ properties: {
852
+ event: {
853
+ type: 'string',
854
+ enum: ['pipeline_failed', 'pipeline_success'],
855
+ description: 'CI event type',
856
+ example: 'pipeline_failed'
857
+ },
858
+ pipeline: {
859
+ description: 'Pipeline information',
860
+ allOf: [
861
+ {
862
+ '$ref': '#/components/schemas/CiPipelineDto'
863
+ }
864
+ ]
865
+ },
866
+ commit: {
867
+ description: 'Commit information',
868
+ allOf: [
869
+ {
870
+ '$ref': '#/components/schemas/CiCommitDto'
871
+ }
872
+ ]
873
+ },
874
+ failures: {
875
+ description: 'List of failures',
876
+ type: 'array',
877
+ items: {
878
+ '$ref': '#/components/schemas/CiFailureDto'
879
+ }
880
+ }
881
+ },
882
+ required: ['event', 'pipeline', 'commit', 'failures']
883
+ };
884
+ exports.$CiWebhookResponseDto = {
885
+ type: 'object',
886
+ properties: {
887
+ success: {
888
+ type: 'boolean',
889
+ description: 'Whether the webhook was processed successfully'
890
+ },
891
+ ticketRef: {
892
+ type: 'string',
893
+ description: 'Created ticket reference',
894
+ example: 'KODA-42'
895
+ },
896
+ message: {
897
+ type: 'string',
898
+ description: 'Message describing the result'
899
+ }
900
+ },
901
+ required: ['success', 'message']
902
+ };
903
+ //# sourceMappingURL=schemas.gen.js.map