@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,1790 @@
1
+ export type RegisterDto = {
2
+ email: string;
3
+ name: string;
4
+ password: string;
5
+ };
6
+ export type UserResponseDto = {
7
+ id: string;
8
+ email: string;
9
+ name: string;
10
+ role: string;
11
+ createdAt: string;
12
+ updatedAt: string;
13
+ };
14
+ export type AuthResponseDto = {
15
+ accessToken: string;
16
+ refreshToken: string;
17
+ user: UserResponseDto;
18
+ };
19
+ export type LoginDto = {
20
+ email: string;
21
+ password: string;
22
+ };
23
+ export type CreateAgentDto = {
24
+ name: string;
25
+ slug: string;
26
+ maxConcurrentTickets?: number;
27
+ roles?: Array<(string)>;
28
+ capabilities?: Array<(string)>;
29
+ };
30
+ export type UpdateAgentDto = {
31
+ /**
32
+ * Agent name
33
+ */
34
+ name?: string;
35
+ /**
36
+ * Agent status (ACTIVE, PAUSED, OFFLINE)
37
+ */
38
+ status?: 'ACTIVE' | 'PAUSED' | 'OFFLINE';
39
+ /**
40
+ * Max concurrent tickets agent can handle
41
+ */
42
+ maxConcurrentTickets?: number;
43
+ };
44
+ /**
45
+ * Agent status (ACTIVE, PAUSED, OFFLINE)
46
+ */
47
+ export type status = 'ACTIVE' | 'PAUSED' | 'OFFLINE';
48
+ export type UpdateRolesDto = {
49
+ /**
50
+ * Agent roles (TRIAGER, DEVELOPER, REVIEWER)
51
+ */
52
+ roles: Array<(string)>;
53
+ };
54
+ export type UpdateCapabilitiesDto = {
55
+ /**
56
+ * Agent capabilities (e.g. typescript, react, nodejs)
57
+ */
58
+ capabilities: Array<(string)>;
59
+ };
60
+ export type CreateProjectDto = {
61
+ /**
62
+ * Project name
63
+ */
64
+ name: string;
65
+ /**
66
+ * Project slug - lowercase alphanumeric with hyphens
67
+ */
68
+ slug: string;
69
+ /**
70
+ * Project key - 2-6 uppercase letters for ticket references
71
+ */
72
+ key: string;
73
+ /**
74
+ * Project description
75
+ */
76
+ description?: string;
77
+ /**
78
+ * Git remote repository URL
79
+ */
80
+ gitRemoteUrl?: string;
81
+ /**
82
+ * Automatically index commits on ticket close
83
+ */
84
+ autoIndexOnClose?: boolean;
85
+ /**
86
+ * Auto-assign mode for tickets: OFF, SUGGEST, or AUTO
87
+ */
88
+ autoAssign?: 'OFF' | 'SUGGEST' | 'AUTO';
89
+ };
90
+ /**
91
+ * Auto-assign mode for tickets: OFF, SUGGEST, or AUTO
92
+ */
93
+ export type autoAssign = 'OFF' | 'SUGGEST' | 'AUTO';
94
+ export type UpdateProjectDto = {
95
+ /**
96
+ * Project name
97
+ */
98
+ name?: string;
99
+ /**
100
+ * Project slug - lowercase alphanumeric with hyphens
101
+ */
102
+ slug?: string;
103
+ /**
104
+ * Project key - 2-6 uppercase letters
105
+ */
106
+ key?: string;
107
+ /**
108
+ * Project description
109
+ */
110
+ description?: string;
111
+ /**
112
+ * Git remote repository URL
113
+ */
114
+ gitRemoteUrl?: string;
115
+ /**
116
+ * Automatically index commits on ticket close
117
+ */
118
+ autoIndexOnClose?: boolean;
119
+ /**
120
+ * Auto-assign mode for tickets: OFF, SUGGEST, or AUTO
121
+ */
122
+ autoAssign?: 'OFF' | 'SUGGEST' | 'AUTO';
123
+ /**
124
+ * CI webhook token for authentication
125
+ */
126
+ ciWebhookToken?: string;
127
+ };
128
+ export type CreateTicketDto = {
129
+ /**
130
+ * Ticket type
131
+ */
132
+ type: 'BUG' | 'ENHANCEMENT' | 'TASK' | 'QUESTION';
133
+ /**
134
+ * Ticket title
135
+ */
136
+ title: string;
137
+ /**
138
+ * Ticket description
139
+ */
140
+ description?: string;
141
+ /**
142
+ * Ticket priority
143
+ */
144
+ priority?: 'LOW' | 'MEDIUM' | 'HIGH' | 'CRITICAL';
145
+ };
146
+ /**
147
+ * Ticket type
148
+ */
149
+ export type type = 'BUG' | 'ENHANCEMENT' | 'TASK' | 'QUESTION';
150
+ /**
151
+ * Ticket priority
152
+ */
153
+ export type priority = 'LOW' | 'MEDIUM' | 'HIGH' | 'CRITICAL';
154
+ export type TicketLinkResponseDto = {
155
+ id: string;
156
+ ticketId: string;
157
+ url: string;
158
+ provider: string;
159
+ externalRef: string | null;
160
+ prState: string | null;
161
+ prNumber: number | null;
162
+ prUpdatedAt: string | null;
163
+ linkType: string;
164
+ title: string | null;
165
+ createdAt: string;
166
+ };
167
+ export type TicketResponseDto = {
168
+ /**
169
+ * Ticket ID (CUID)
170
+ */
171
+ id: string;
172
+ /**
173
+ * Project ID
174
+ */
175
+ projectId: string;
176
+ /**
177
+ * Sequential ticket number within project
178
+ */
179
+ number: number;
180
+ /**
181
+ * Project-scoped ticket reference, e.g. NAX-1
182
+ */
183
+ ref: string;
184
+ /**
185
+ * Ticket type
186
+ */
187
+ type: 'BUG' | 'ENHANCEMENT' | 'TASK' | 'QUESTION';
188
+ /**
189
+ * Ticket title
190
+ */
191
+ title: string;
192
+ /**
193
+ * Ticket description
194
+ */
195
+ description?: string | null;
196
+ /**
197
+ * Ticket status
198
+ */
199
+ status: 'CREATED' | 'VERIFIED' | 'IN_PROGRESS' | 'VERIFY_FIX' | 'CLOSED' | 'REJECTED';
200
+ /**
201
+ * Ticket priority
202
+ */
203
+ priority: 'LOW' | 'MEDIUM' | 'HIGH' | 'CRITICAL';
204
+ /**
205
+ * Assigned to user ID
206
+ */
207
+ assignedToUserId?: string | null;
208
+ /**
209
+ * Assigned to agent ID
210
+ */
211
+ assignedToAgentId?: string | null;
212
+ /**
213
+ * Created by user ID
214
+ */
215
+ createdByUserId?: string | null;
216
+ /**
217
+ * Created by agent ID
218
+ */
219
+ createdByAgentId?: string | null;
220
+ /**
221
+ * Git reference version
222
+ */
223
+ gitRefVersion?: string | null;
224
+ /**
225
+ * Git reference file
226
+ */
227
+ gitRefFile?: string | null;
228
+ /**
229
+ * Git reference line
230
+ */
231
+ gitRefLine?: number | null;
232
+ /**
233
+ * Git reference URL
234
+ */
235
+ gitRefUrl?: string | null;
236
+ /**
237
+ * Created at timestamp
238
+ */
239
+ createdAt: string;
240
+ /**
241
+ * Updated at timestamp
242
+ */
243
+ updatedAt: string;
244
+ /**
245
+ * Soft delete timestamp
246
+ */
247
+ deletedAt?: string | null;
248
+ /**
249
+ * Related ticket links
250
+ */
251
+ links: Array<TicketLinkResponseDto>;
252
+ labels: Array<Array<{
253
+ id: string;
254
+ projectId: string;
255
+ name: string;
256
+ color: string | null;
257
+ }>>;
258
+ };
259
+ /**
260
+ * Ticket status
261
+ */
262
+ export type status2 = 'CREATED' | 'VERIFIED' | 'IN_PROGRESS' | 'VERIFY_FIX' | 'CLOSED' | 'REJECTED';
263
+ export type UpdateTicketDto = {
264
+ /**
265
+ * Ticket title
266
+ */
267
+ title?: string;
268
+ /**
269
+ * Ticket description
270
+ */
271
+ description?: string;
272
+ /**
273
+ * Ticket priority
274
+ */
275
+ priority?: 'LOW' | 'MEDIUM' | 'HIGH' | 'CRITICAL';
276
+ /**
277
+ * Ticket status
278
+ */
279
+ status?: 'CREATED' | 'VERIFIED' | 'IN_PROGRESS' | 'VERIFY_FIX' | 'CLOSED' | 'REJECTED';
280
+ };
281
+ export type TransitionWithCommentDto = {
282
+ /**
283
+ * Comment body explaining the transition
284
+ */
285
+ body?: string;
286
+ };
287
+ export type AddDocumentDto = {
288
+ /**
289
+ * Source type
290
+ */
291
+ source: 'ticket' | 'doc' | 'manual';
292
+ /**
293
+ * Source record ID (e.g. ticket CUID)
294
+ */
295
+ sourceId: string;
296
+ /**
297
+ * Full text content to embed and index
298
+ */
299
+ content: string;
300
+ /**
301
+ * Arbitrary metadata stored with the document
302
+ */
303
+ metadata?: {
304
+ [key: string]: unknown;
305
+ };
306
+ };
307
+ /**
308
+ * Source type
309
+ */
310
+ export type source = 'ticket' | 'doc' | 'manual';
311
+ export type SearchKbDto = {
312
+ /**
313
+ * Natural language search query
314
+ */
315
+ query: string;
316
+ limit?: number;
317
+ };
318
+ export type CreateWebhookDto = {
319
+ url: string;
320
+ secret: string;
321
+ events: Array<(string)>;
322
+ };
323
+ export type CreateVcsConnectionDto = {
324
+ provider: 'github';
325
+ repoOwner: string;
326
+ repoName: string;
327
+ token: string;
328
+ syncMode?: 'off' | 'polling' | 'webhook';
329
+ allowedAuthors?: Array<(string)>;
330
+ pollingIntervalMs?: number;
331
+ };
332
+ export type provider = 'github';
333
+ export type syncMode = 'off' | 'polling' | 'webhook';
334
+ export type VcsConnectionResponseDto = {
335
+ id: string;
336
+ provider: string;
337
+ repoOwner: string;
338
+ repoName: string;
339
+ syncMode: string;
340
+ allowedAuthors: Array<(string)>;
341
+ pollingIntervalMs: number;
342
+ lastSyncedAt: string | null;
343
+ isActive: boolean;
344
+ createdAt: string;
345
+ updatedAt: string;
346
+ };
347
+ export type UpdateVcsConnectionDto = {
348
+ token?: string;
349
+ syncMode?: 'off' | 'polling' | 'webhook';
350
+ allowedAuthors?: Array<(string)>;
351
+ pollingIntervalMs?: number;
352
+ };
353
+ export type TestConnectionResultDto = {
354
+ ok: boolean;
355
+ error?: string;
356
+ };
357
+ export type SyncResultDto = {
358
+ /**
359
+ * How this sync was triggered
360
+ */
361
+ syncType: string;
362
+ /**
363
+ * Number of issues successfully synced
364
+ */
365
+ issuesSynced: number;
366
+ /**
367
+ * Number of issues skipped (already synced or filtered)
368
+ */
369
+ issuesSkipped: number;
370
+ /**
371
+ * List of created ticket refs
372
+ */
373
+ tickets: Array<{
374
+ ref?: string;
375
+ title?: string;
376
+ }>;
377
+ };
378
+ export type CreateTicketLinkDto = {
379
+ url: string;
380
+ linkType?: string;
381
+ };
382
+ export type CreateCommentDto = {
383
+ /**
384
+ * Comment body
385
+ */
386
+ body?: string;
387
+ /**
388
+ * Comment type
389
+ */
390
+ type?: 'GENERAL' | 'VERIFICATION' | 'FIX_REPORT' | 'REVIEW' | 'STATUS_CHANGE';
391
+ };
392
+ /**
393
+ * Comment type
394
+ */
395
+ export type type2 = 'GENERAL' | 'VERIFICATION' | 'FIX_REPORT' | 'REVIEW' | 'STATUS_CHANGE';
396
+ export type UpdateCommentDto = {
397
+ /**
398
+ * Comment body
399
+ */
400
+ body?: string;
401
+ };
402
+ export type CreateLabelDto = {
403
+ name: string;
404
+ color?: string;
405
+ };
406
+ export type UpdateLabelDto = {
407
+ name?: string;
408
+ color?: string;
409
+ };
410
+ export type AssignLabelDto = {
411
+ labelId: string;
412
+ };
413
+ export type CiPipelineDto = {
414
+ /**
415
+ * Pipeline ID
416
+ */
417
+ id: string;
418
+ /**
419
+ * Pipeline URL
420
+ */
421
+ url?: string;
422
+ };
423
+ export type CiCommitDto = {
424
+ /**
425
+ * Commit SHA
426
+ */
427
+ sha: string;
428
+ /**
429
+ * Commit message
430
+ */
431
+ message?: string;
432
+ };
433
+ export type CiFailureDto = {
434
+ /**
435
+ * Failed test or step name
436
+ */
437
+ test: string;
438
+ /**
439
+ * File path where failure occurred
440
+ */
441
+ file?: string;
442
+ /**
443
+ * Line number where failure occurred
444
+ */
445
+ line?: number;
446
+ };
447
+ export type CiWebhookPayloadDto = {
448
+ /**
449
+ * CI event type
450
+ */
451
+ event: 'pipeline_failed' | 'pipeline_success';
452
+ /**
453
+ * Pipeline information
454
+ */
455
+ pipeline: CiPipelineDto;
456
+ /**
457
+ * Commit information
458
+ */
459
+ commit: CiCommitDto;
460
+ /**
461
+ * List of failures
462
+ */
463
+ failures: Array<CiFailureDto>;
464
+ };
465
+ /**
466
+ * CI event type
467
+ */
468
+ export type event = 'pipeline_failed' | 'pipeline_success';
469
+ export type CiWebhookResponseDto = {
470
+ /**
471
+ * Whether the webhook was processed successfully
472
+ */
473
+ success: boolean;
474
+ /**
475
+ * Created ticket reference
476
+ */
477
+ ticketRef?: string;
478
+ /**
479
+ * Message describing the result
480
+ */
481
+ message: string;
482
+ };
483
+ export type AuthControllerRegisterData = {
484
+ requestBody: RegisterDto;
485
+ };
486
+ export type AuthControllerRegisterResponse = AuthResponseDto;
487
+ export type AuthControllerLoginData = {
488
+ requestBody: LoginDto;
489
+ };
490
+ export type AuthControllerLoginResponse = AuthResponseDto;
491
+ export type AuthControllerRefreshResponse = AuthResponseDto;
492
+ export type AuthControllerMeResponse = UserResponseDto;
493
+ export type AgentsControllerGenerateApiKeyData = {
494
+ requestBody: CreateAgentDto;
495
+ };
496
+ export type AgentsControllerGenerateApiKeyResponse = unknown;
497
+ export type AgentsControllerFindAllResponse = unknown;
498
+ export type AgentsControllerFindMeResponse = unknown;
499
+ export type AgentsControllerFindBySlugData = {
500
+ slug: string;
501
+ };
502
+ export type AgentsControllerFindBySlugResponse = unknown;
503
+ export type AgentsControllerUpdateData = {
504
+ requestBody: UpdateAgentDto;
505
+ slug: string;
506
+ };
507
+ export type AgentsControllerUpdateResponse = unknown;
508
+ export type AgentsControllerRemoveData = {
509
+ slug: string;
510
+ };
511
+ export type AgentsControllerRemoveResponse = unknown;
512
+ export type AgentsControllerSuggestTicketData = {
513
+ /**
514
+ * Project slug
515
+ */
516
+ project: string;
517
+ slug: string;
518
+ };
519
+ export type AgentsControllerSuggestTicketResponse = unknown;
520
+ export type AgentsControllerUpdateRolesData = {
521
+ requestBody: UpdateRolesDto;
522
+ slug: string;
523
+ };
524
+ export type AgentsControllerUpdateRolesResponse = unknown;
525
+ export type AgentsControllerUpdateCapabilitiesData = {
526
+ requestBody: UpdateCapabilitiesDto;
527
+ slug: string;
528
+ };
529
+ export type AgentsControllerUpdateCapabilitiesResponse = unknown;
530
+ export type AgentsControllerRotateApiKeyData = {
531
+ slug: string;
532
+ };
533
+ export type AgentsControllerRotateApiKeyResponse = unknown;
534
+ export type ProjectsControllerCreateData = {
535
+ requestBody: CreateProjectDto;
536
+ };
537
+ export type ProjectsControllerCreateResponse = unknown;
538
+ export type ProjectsControllerFindAllResponse = unknown;
539
+ export type ProjectsControllerFindBySlugData = {
540
+ slug: string;
541
+ };
542
+ export type ProjectsControllerFindBySlugResponse = unknown;
543
+ export type ProjectsControllerUpdateData = {
544
+ requestBody: UpdateProjectDto;
545
+ slug: string;
546
+ };
547
+ export type ProjectsControllerUpdateResponse = unknown;
548
+ export type ProjectsControllerRemoveData = {
549
+ slug: string;
550
+ };
551
+ export type ProjectsControllerRemoveResponse = unknown;
552
+ export type TicketsControllerCreateData = {
553
+ requestBody: CreateTicketDto;
554
+ slug: string;
555
+ };
556
+ export type TicketsControllerCreateResponse = TicketResponseDto;
557
+ export type TicketsControllerFindAllData = {
558
+ /**
559
+ * User ID to filter by
560
+ */
561
+ assignedTo?: unknown;
562
+ limit?: number;
563
+ page?: number;
564
+ priority?: 'LOW' | 'MEDIUM' | 'HIGH' | 'CRITICAL';
565
+ slug: string;
566
+ status?: 'CREATED' | 'VERIFIED' | 'IN_PROGRESS' | 'VERIFY_FIX' | 'CLOSED' | 'REJECTED';
567
+ type?: 'BUG' | 'ENHANCEMENT' | 'TASK' | 'QUESTION';
568
+ unassigned?: boolean;
569
+ };
570
+ export type TicketsControllerFindAllResponse = unknown;
571
+ export type TicketsControllerFindByRefData = {
572
+ ref: string;
573
+ slug: string;
574
+ };
575
+ export type TicketsControllerFindByRefResponse = TicketResponseDto;
576
+ export type TicketsControllerUpdateData = {
577
+ ref: string;
578
+ requestBody: UpdateTicketDto;
579
+ slug: string;
580
+ };
581
+ export type TicketsControllerUpdateResponse = TicketResponseDto;
582
+ export type TicketsControllerSoftDeleteData = {
583
+ ref: string;
584
+ slug: string;
585
+ };
586
+ export type TicketsControllerSoftDeleteResponse = TicketResponseDto;
587
+ export type TicketsControllerAssignData = {
588
+ ref: string;
589
+ slug: string;
590
+ };
591
+ export type TicketsControllerAssignResponse = TicketResponseDto;
592
+ export type TicketsControllerVerifyData = {
593
+ ref: string;
594
+ requestBody: TransitionWithCommentDto;
595
+ slug: string;
596
+ };
597
+ export type TicketsControllerVerifyResponse = unknown;
598
+ export type TicketsControllerStartData = {
599
+ ref: string;
600
+ slug: string;
601
+ };
602
+ export type TicketsControllerStartResponse = unknown;
603
+ export type TicketsControllerFixData = {
604
+ ref: string;
605
+ requestBody: TransitionWithCommentDto;
606
+ slug: string;
607
+ };
608
+ export type TicketsControllerFixResponse = unknown;
609
+ export type TicketsControllerVerifyFixData = {
610
+ ref: string;
611
+ requestBody: TransitionWithCommentDto;
612
+ slug: string;
613
+ };
614
+ export type TicketsControllerVerifyFixResponse = unknown;
615
+ export type TicketsControllerCloseData = {
616
+ ref: string;
617
+ slug: string;
618
+ };
619
+ export type TicketsControllerCloseResponse = unknown;
620
+ export type TicketsControllerRejectData = {
621
+ ref: string;
622
+ requestBody: TransitionWithCommentDto;
623
+ slug: string;
624
+ };
625
+ export type TicketsControllerRejectResponse = unknown;
626
+ export type RagControllerAddDocumentData = {
627
+ requestBody: AddDocumentDto;
628
+ slug: string;
629
+ };
630
+ export type RagControllerAddDocumentResponse = unknown;
631
+ export type RagControllerListDocumentsData = {
632
+ limit: string;
633
+ slug: string;
634
+ };
635
+ export type RagControllerListDocumentsResponse = unknown;
636
+ export type RagControllerDeleteDocumentData = {
637
+ slug: string;
638
+ sourceId: string;
639
+ };
640
+ export type RagControllerDeleteDocumentResponse = unknown;
641
+ export type RagControllerSearchData = {
642
+ requestBody: SearchKbDto;
643
+ slug: string;
644
+ };
645
+ export type RagControllerSearchResponse = unknown;
646
+ export type RagControllerOptimizeTableData = {
647
+ slug: string;
648
+ };
649
+ export type RagControllerOptimizeTableResponse = unknown;
650
+ export type WebhookControllerRegisterData = {
651
+ requestBody: CreateWebhookDto;
652
+ slug: string;
653
+ };
654
+ export type WebhookControllerRegisterResponse = unknown;
655
+ export type WebhookControllerListData = {
656
+ slug: string;
657
+ };
658
+ export type WebhookControllerListResponse = unknown;
659
+ export type WebhookControllerRemoveData = {
660
+ id: string;
661
+ };
662
+ export type WebhookControllerRemoveResponse = void;
663
+ export type VcsControllerCreateConnectionData = {
664
+ requestBody: CreateVcsConnectionDto;
665
+ slug: string;
666
+ };
667
+ export type VcsControllerCreateConnectionResponse = VcsConnectionResponseDto;
668
+ export type VcsControllerGetConnectionData = {
669
+ slug: string;
670
+ };
671
+ export type VcsControllerGetConnectionResponse = VcsConnectionResponseDto;
672
+ export type VcsControllerUpdateConnectionData = {
673
+ requestBody: UpdateVcsConnectionDto;
674
+ slug: string;
675
+ };
676
+ export type VcsControllerUpdateConnectionResponse = VcsConnectionResponseDto;
677
+ export type VcsControllerDeleteConnectionData = {
678
+ slug: string;
679
+ };
680
+ export type VcsControllerDeleteConnectionResponse = void;
681
+ export type VcsControllerTestConnectionData = {
682
+ slug: string;
683
+ };
684
+ export type VcsControllerTestConnectionResponse = TestConnectionResultDto;
685
+ export type VcsControllerSyncIssueData = {
686
+ issueNumber: string;
687
+ slug: string;
688
+ };
689
+ export type VcsControllerSyncIssueResponse = SyncResultDto;
690
+ export type VcsControllerSyncAllData = {
691
+ slug: string;
692
+ };
693
+ export type VcsControllerSyncAllResponse = SyncResultDto;
694
+ export type VcsControllerSyncPrData = {
695
+ slug: string;
696
+ };
697
+ export type VcsControllerSyncPrResponse = {
698
+ [key: string]: unknown;
699
+ };
700
+ export type VcsWebhookControllerHandleWebhookData = {
701
+ slug: string;
702
+ xGithubEvent: string;
703
+ xHubSignature256: string;
704
+ };
705
+ export type VcsWebhookControllerHandleWebhookResponse = unknown;
706
+ export type TicketLinksControllerCreateData = {
707
+ ref: string;
708
+ requestBody: CreateTicketLinkDto;
709
+ slug: string;
710
+ };
711
+ export type TicketLinksControllerCreateResponse = TicketLinkResponseDto;
712
+ export type TicketLinksControllerFindAllData = {
713
+ ref: string;
714
+ slug: string;
715
+ };
716
+ export type TicketLinksControllerFindAllResponse = Array<TicketLinkResponseDto>;
717
+ export type TicketLinksControllerRemoveData = {
718
+ linkId: string;
719
+ ref: string;
720
+ slug: string;
721
+ };
722
+ export type TicketLinksControllerRemoveResponse = void;
723
+ export type CommentsControllerCreateFromHttpData = {
724
+ ref: string;
725
+ requestBody: CreateCommentDto;
726
+ slug: string;
727
+ };
728
+ export type CommentsControllerCreateFromHttpResponse = unknown;
729
+ export type CommentsControllerListByTicketFromHttpData = {
730
+ ref: string;
731
+ slug: string;
732
+ };
733
+ export type CommentsControllerListByTicketFromHttpResponse = unknown;
734
+ export type CommentsControllerUpdateFromHttpData = {
735
+ id: string;
736
+ requestBody: UpdateCommentDto;
737
+ };
738
+ export type CommentsControllerUpdateFromHttpResponse = unknown;
739
+ export type CommentsControllerDeleteFromHttpData = {
740
+ id: string;
741
+ };
742
+ export type CommentsControllerDeleteFromHttpResponse = unknown;
743
+ export type LabelsControllerCreateFromHttpData = {
744
+ requestBody: CreateLabelDto;
745
+ slug: string;
746
+ };
747
+ export type LabelsControllerCreateFromHttpResponse = unknown;
748
+ export type LabelsControllerFindByProjectFromHttpData = {
749
+ slug: string;
750
+ };
751
+ export type LabelsControllerFindByProjectFromHttpResponse = unknown;
752
+ export type LabelsControllerUpdateFromHttpData = {
753
+ id: string;
754
+ requestBody: UpdateLabelDto;
755
+ slug: string;
756
+ };
757
+ export type LabelsControllerUpdateFromHttpResponse = unknown;
758
+ export type LabelsControllerDeleteFromHttpData = {
759
+ id: string;
760
+ slug: string;
761
+ };
762
+ export type LabelsControllerDeleteFromHttpResponse = void;
763
+ export type LabelsControllerAssignLabelFromHttpData = {
764
+ ref: string;
765
+ requestBody: AssignLabelDto;
766
+ slug: string;
767
+ };
768
+ export type LabelsControllerAssignLabelFromHttpResponse = unknown;
769
+ export type LabelsControllerRemoveLabelFromHttpData = {
770
+ labelId: string;
771
+ ref: string;
772
+ slug: string;
773
+ };
774
+ export type LabelsControllerRemoveLabelFromHttpResponse = void;
775
+ export type HealthControllerCheckResponse = unknown;
776
+ export type CiWebhookControllerHandleCiWebhookData = {
777
+ requestBody: CiWebhookPayloadDto;
778
+ slug: string;
779
+ };
780
+ export type CiWebhookControllerHandleCiWebhookResponse = CiWebhookResponseDto;
781
+ export type $OpenApiTs = {
782
+ '/api/auth/register': {
783
+ post: {
784
+ req: AuthControllerRegisterData;
785
+ res: {
786
+ 201: AuthResponseDto;
787
+ /**
788
+ * Invalid input
789
+ */
790
+ 400: unknown;
791
+ };
792
+ };
793
+ };
794
+ '/api/auth/login': {
795
+ post: {
796
+ req: AuthControllerLoginData;
797
+ res: {
798
+ 200: AuthResponseDto;
799
+ /**
800
+ * Invalid credentials
801
+ */
802
+ 401: unknown;
803
+ };
804
+ };
805
+ };
806
+ '/api/auth/refresh': {
807
+ post: {
808
+ res: {
809
+ 200: AuthResponseDto;
810
+ /**
811
+ * Invalid or missing token
812
+ */
813
+ 401: unknown;
814
+ };
815
+ };
816
+ };
817
+ '/api/auth/me': {
818
+ get: {
819
+ res: {
820
+ 200: UserResponseDto;
821
+ /**
822
+ * Missing or invalid token
823
+ */
824
+ 401: unknown;
825
+ };
826
+ };
827
+ };
828
+ '/api/agents': {
829
+ post: {
830
+ req: AgentsControllerGenerateApiKeyData;
831
+ res: {
832
+ /**
833
+ * Agent created with API key
834
+ */
835
+ 201: unknown;
836
+ /**
837
+ * Unauthorized
838
+ */
839
+ 401: unknown;
840
+ /**
841
+ * Forbidden - admin role required
842
+ */
843
+ 403: unknown;
844
+ };
845
+ };
846
+ get: {
847
+ res: {
848
+ /**
849
+ * Agents retrieved successfully
850
+ */
851
+ 200: unknown;
852
+ };
853
+ };
854
+ };
855
+ '/api/agents/me': {
856
+ get: {
857
+ res: {
858
+ /**
859
+ * Agent profile retrieved
860
+ */
861
+ 200: unknown;
862
+ /**
863
+ * Unauthorized
864
+ */
865
+ 401: unknown;
866
+ };
867
+ };
868
+ };
869
+ '/api/agents/{slug}': {
870
+ get: {
871
+ req: AgentsControllerFindBySlugData;
872
+ res: {
873
+ /**
874
+ * Agent retrieved successfully
875
+ */
876
+ 200: unknown;
877
+ /**
878
+ * Agent not found
879
+ */
880
+ 404: unknown;
881
+ };
882
+ };
883
+ patch: {
884
+ req: AgentsControllerUpdateData;
885
+ res: {
886
+ /**
887
+ * Agent updated successfully
888
+ */
889
+ 200: unknown;
890
+ /**
891
+ * Unauthorized
892
+ */
893
+ 401: unknown;
894
+ /**
895
+ * Forbidden - admin role required
896
+ */
897
+ 403: unknown;
898
+ /**
899
+ * Agent not found
900
+ */
901
+ 404: unknown;
902
+ };
903
+ };
904
+ delete: {
905
+ req: AgentsControllerRemoveData;
906
+ res: {
907
+ /**
908
+ * Agent deleted successfully
909
+ */
910
+ 200: unknown;
911
+ /**
912
+ * Unauthorized
913
+ */
914
+ 401: unknown;
915
+ /**
916
+ * Forbidden - admin role required
917
+ */
918
+ 403: unknown;
919
+ /**
920
+ * Agent not found
921
+ */
922
+ 404: unknown;
923
+ };
924
+ };
925
+ };
926
+ '/api/agents/{slug}/pickup': {
927
+ get: {
928
+ req: AgentsControllerSuggestTicketData;
929
+ res: {
930
+ /**
931
+ * Suggested ticket or null
932
+ */
933
+ 200: unknown;
934
+ /**
935
+ * Missing project query param
936
+ */
937
+ 400: unknown;
938
+ /**
939
+ * Agent not found
940
+ */
941
+ 404: unknown;
942
+ };
943
+ };
944
+ };
945
+ '/api/agents/{slug}/update-roles': {
946
+ patch: {
947
+ req: AgentsControllerUpdateRolesData;
948
+ res: {
949
+ /**
950
+ * Roles updated successfully
951
+ */
952
+ 200: unknown;
953
+ /**
954
+ * Unauthorized
955
+ */
956
+ 401: unknown;
957
+ /**
958
+ * Forbidden - admin role required
959
+ */
960
+ 403: unknown;
961
+ /**
962
+ * Agent not found
963
+ */
964
+ 404: unknown;
965
+ };
966
+ };
967
+ };
968
+ '/api/agents/{slug}/update-capabilities': {
969
+ patch: {
970
+ req: AgentsControllerUpdateCapabilitiesData;
971
+ res: {
972
+ /**
973
+ * Capabilities updated successfully
974
+ */
975
+ 200: unknown;
976
+ /**
977
+ * Unauthorized
978
+ */
979
+ 401: unknown;
980
+ /**
981
+ * Forbidden - admin role required
982
+ */
983
+ 403: unknown;
984
+ /**
985
+ * Agent not found
986
+ */
987
+ 404: unknown;
988
+ };
989
+ };
990
+ };
991
+ '/api/agents/{slug}/rotate-key': {
992
+ post: {
993
+ req: AgentsControllerRotateApiKeyData;
994
+ res: {
995
+ /**
996
+ * API key rotated successfully
997
+ */
998
+ 200: unknown;
999
+ /**
1000
+ * Unauthorized
1001
+ */
1002
+ 401: unknown;
1003
+ /**
1004
+ * Forbidden - admin role required
1005
+ */
1006
+ 403: unknown;
1007
+ /**
1008
+ * Agent not found
1009
+ */
1010
+ 404: unknown;
1011
+ };
1012
+ };
1013
+ };
1014
+ '/api/projects': {
1015
+ post: {
1016
+ req: ProjectsControllerCreateData;
1017
+ res: {
1018
+ /**
1019
+ * Project created successfully
1020
+ */
1021
+ 201: unknown;
1022
+ /**
1023
+ * Invalid request data
1024
+ */
1025
+ 400: unknown;
1026
+ /**
1027
+ * Unauthorized
1028
+ */
1029
+ 401: unknown;
1030
+ /**
1031
+ * Forbidden - admin role required
1032
+ */
1033
+ 403: unknown;
1034
+ /**
1035
+ * Conflict - duplicate slug or key
1036
+ */
1037
+ 409: unknown;
1038
+ };
1039
+ };
1040
+ get: {
1041
+ res: {
1042
+ /**
1043
+ * List of projects
1044
+ */
1045
+ 200: unknown;
1046
+ };
1047
+ };
1048
+ };
1049
+ '/api/projects/{slug}': {
1050
+ get: {
1051
+ req: ProjectsControllerFindBySlugData;
1052
+ res: {
1053
+ /**
1054
+ * Project found
1055
+ */
1056
+ 200: unknown;
1057
+ /**
1058
+ * Project not found
1059
+ */
1060
+ 404: unknown;
1061
+ };
1062
+ };
1063
+ patch: {
1064
+ req: ProjectsControllerUpdateData;
1065
+ res: {
1066
+ /**
1067
+ * Project updated successfully
1068
+ */
1069
+ 200: unknown;
1070
+ /**
1071
+ * Invalid request data
1072
+ */
1073
+ 400: unknown;
1074
+ /**
1075
+ * Unauthorized
1076
+ */
1077
+ 401: unknown;
1078
+ /**
1079
+ * Forbidden - admin role required
1080
+ */
1081
+ 403: unknown;
1082
+ /**
1083
+ * Project not found
1084
+ */
1085
+ 404: unknown;
1086
+ /**
1087
+ * Conflict - duplicate slug or key
1088
+ */
1089
+ 409: unknown;
1090
+ };
1091
+ };
1092
+ delete: {
1093
+ req: ProjectsControllerRemoveData;
1094
+ res: {
1095
+ /**
1096
+ * Project soft deleted successfully
1097
+ */
1098
+ 200: unknown;
1099
+ /**
1100
+ * Unauthorized
1101
+ */
1102
+ 401: unknown;
1103
+ /**
1104
+ * Forbidden - admin role required
1105
+ */
1106
+ 403: unknown;
1107
+ /**
1108
+ * Project not found
1109
+ */
1110
+ 404: unknown;
1111
+ };
1112
+ };
1113
+ };
1114
+ '/api/projects/{slug}/tickets': {
1115
+ post: {
1116
+ req: TicketsControllerCreateData;
1117
+ res: {
1118
+ 201: TicketResponseDto;
1119
+ /**
1120
+ * Invalid request data
1121
+ */
1122
+ 400: unknown;
1123
+ /**
1124
+ * Project not found
1125
+ */
1126
+ 404: unknown;
1127
+ };
1128
+ };
1129
+ get: {
1130
+ req: TicketsControllerFindAllData;
1131
+ res: {
1132
+ /**
1133
+ * List of tickets
1134
+ */
1135
+ 200: unknown;
1136
+ /**
1137
+ * Project not found
1138
+ */
1139
+ 404: unknown;
1140
+ };
1141
+ };
1142
+ };
1143
+ '/api/projects/{slug}/tickets/{ref}': {
1144
+ get: {
1145
+ req: TicketsControllerFindByRefData;
1146
+ res: {
1147
+ 200: TicketResponseDto;
1148
+ /**
1149
+ * Ticket or project not found
1150
+ */
1151
+ 404: unknown;
1152
+ };
1153
+ };
1154
+ patch: {
1155
+ req: TicketsControllerUpdateData;
1156
+ res: {
1157
+ 200: TicketResponseDto;
1158
+ /**
1159
+ * Invalid request data
1160
+ */
1161
+ 400: unknown;
1162
+ /**
1163
+ * Ticket or project not found
1164
+ */
1165
+ 404: unknown;
1166
+ };
1167
+ };
1168
+ delete: {
1169
+ req: TicketsControllerSoftDeleteData;
1170
+ res: {
1171
+ 200: TicketResponseDto;
1172
+ /**
1173
+ * Forbidden - admin role required
1174
+ */
1175
+ 403: unknown;
1176
+ /**
1177
+ * Ticket or project not found
1178
+ */
1179
+ 404: unknown;
1180
+ };
1181
+ };
1182
+ };
1183
+ '/api/projects/{slug}/tickets/{ref}/assign': {
1184
+ post: {
1185
+ req: TicketsControllerAssignData;
1186
+ res: {
1187
+ 200: TicketResponseDto;
1188
+ /**
1189
+ * Cannot assign to both user and agent
1190
+ */
1191
+ 400: unknown;
1192
+ /**
1193
+ * Ticket or project not found
1194
+ */
1195
+ 404: unknown;
1196
+ };
1197
+ };
1198
+ };
1199
+ '/api/projects/{slug}/tickets/{ref}/verify': {
1200
+ post: {
1201
+ req: TicketsControllerVerifyData;
1202
+ res: {
1203
+ /**
1204
+ * Ticket verified
1205
+ */
1206
+ 200: unknown;
1207
+ /**
1208
+ * Invalid transition
1209
+ */
1210
+ 400: unknown;
1211
+ /**
1212
+ * Ticket or project not found
1213
+ */
1214
+ 404: unknown;
1215
+ };
1216
+ };
1217
+ };
1218
+ '/api/projects/{slug}/tickets/{ref}/start': {
1219
+ post: {
1220
+ req: TicketsControllerStartData;
1221
+ res: {
1222
+ /**
1223
+ * Ticket started
1224
+ */
1225
+ 200: unknown;
1226
+ /**
1227
+ * Invalid transition
1228
+ */
1229
+ 400: unknown;
1230
+ /**
1231
+ * Ticket or project not found
1232
+ */
1233
+ 404: unknown;
1234
+ };
1235
+ };
1236
+ };
1237
+ '/api/projects/{slug}/tickets/{ref}/fix': {
1238
+ post: {
1239
+ req: TicketsControllerFixData;
1240
+ res: {
1241
+ /**
1242
+ * Fix submitted
1243
+ */
1244
+ 200: unknown;
1245
+ /**
1246
+ * Invalid transition
1247
+ */
1248
+ 400: unknown;
1249
+ /**
1250
+ * Ticket or project not found
1251
+ */
1252
+ 404: unknown;
1253
+ };
1254
+ };
1255
+ };
1256
+ '/api/projects/{slug}/tickets/{ref}/verify-fix': {
1257
+ post: {
1258
+ req: TicketsControllerVerifyFixData;
1259
+ res: {
1260
+ /**
1261
+ * Fix reviewed
1262
+ */
1263
+ 200: unknown;
1264
+ /**
1265
+ * Invalid transition
1266
+ */
1267
+ 400: unknown;
1268
+ /**
1269
+ * Ticket or project not found
1270
+ */
1271
+ 404: unknown;
1272
+ };
1273
+ };
1274
+ };
1275
+ '/api/projects/{slug}/tickets/{ref}/close': {
1276
+ post: {
1277
+ req: TicketsControllerCloseData;
1278
+ res: {
1279
+ /**
1280
+ * Ticket closed
1281
+ */
1282
+ 200: unknown;
1283
+ /**
1284
+ * Invalid transition
1285
+ */
1286
+ 400: unknown;
1287
+ /**
1288
+ * Ticket or project not found
1289
+ */
1290
+ 404: unknown;
1291
+ };
1292
+ };
1293
+ };
1294
+ '/api/projects/{slug}/tickets/{ref}/reject': {
1295
+ post: {
1296
+ req: TicketsControllerRejectData;
1297
+ res: {
1298
+ /**
1299
+ * Ticket rejected
1300
+ */
1301
+ 200: unknown;
1302
+ /**
1303
+ * Invalid transition
1304
+ */
1305
+ 400: unknown;
1306
+ /**
1307
+ * Ticket or project not found
1308
+ */
1309
+ 404: unknown;
1310
+ };
1311
+ };
1312
+ };
1313
+ '/api/projects/{slug}/kb/documents': {
1314
+ post: {
1315
+ req: RagControllerAddDocumentData;
1316
+ res: {
1317
+ /**
1318
+ * Document indexed
1319
+ */
1320
+ 201: unknown;
1321
+ /**
1322
+ * Project not found
1323
+ */
1324
+ 404: unknown;
1325
+ };
1326
+ };
1327
+ get: {
1328
+ req: RagControllerListDocumentsData;
1329
+ res: {
1330
+ /**
1331
+ * Documents listed
1332
+ */
1333
+ 200: unknown;
1334
+ /**
1335
+ * Project not found
1336
+ */
1337
+ 404: unknown;
1338
+ };
1339
+ };
1340
+ };
1341
+ '/api/projects/{slug}/kb/documents/{sourceId}': {
1342
+ delete: {
1343
+ req: RagControllerDeleteDocumentData;
1344
+ res: {
1345
+ /**
1346
+ * Delete documents by sourceId
1347
+ */
1348
+ 200: unknown;
1349
+ /**
1350
+ * Forbidden - admin role required
1351
+ */
1352
+ 403: unknown;
1353
+ /**
1354
+ * Project not found
1355
+ */
1356
+ 404: unknown;
1357
+ };
1358
+ };
1359
+ };
1360
+ '/api/projects/{slug}/kb/search': {
1361
+ post: {
1362
+ req: RagControllerSearchData;
1363
+ res: {
1364
+ /**
1365
+ * Search results with RRF merge and similarity tiers
1366
+ */
1367
+ 200: unknown;
1368
+ /**
1369
+ * Project not found
1370
+ */
1371
+ 404: unknown;
1372
+ };
1373
+ };
1374
+ };
1375
+ '/api/projects/{slug}/kb/optimize': {
1376
+ post: {
1377
+ req: RagControllerOptimizeTableData;
1378
+ res: {
1379
+ /**
1380
+ * Table optimized
1381
+ */
1382
+ 200: unknown;
1383
+ /**
1384
+ * Forbidden - admin role required
1385
+ */
1386
+ 403: unknown;
1387
+ /**
1388
+ * Project not found
1389
+ */
1390
+ 404: unknown;
1391
+ };
1392
+ };
1393
+ };
1394
+ '/api/projects/{slug}/webhooks': {
1395
+ post: {
1396
+ req: WebhookControllerRegisterData;
1397
+ res: {
1398
+ /**
1399
+ * Webhook registered
1400
+ */
1401
+ 201: unknown;
1402
+ /**
1403
+ * Invalid request data
1404
+ */
1405
+ 400: unknown;
1406
+ /**
1407
+ * Project not found
1408
+ */
1409
+ 404: unknown;
1410
+ };
1411
+ };
1412
+ get: {
1413
+ req: WebhookControllerListData;
1414
+ res: {
1415
+ /**
1416
+ * List of webhooks
1417
+ */
1418
+ 200: unknown;
1419
+ /**
1420
+ * Project not found
1421
+ */
1422
+ 404: unknown;
1423
+ };
1424
+ };
1425
+ };
1426
+ '/api/api/webhooks/{id}': {
1427
+ delete: {
1428
+ req: WebhookControllerRemoveData;
1429
+ res: {
1430
+ /**
1431
+ * Webhook deleted
1432
+ */
1433
+ 204: void;
1434
+ /**
1435
+ * Webhook not found
1436
+ */
1437
+ 404: unknown;
1438
+ };
1439
+ };
1440
+ };
1441
+ '/api/projects/{slug}/vcs': {
1442
+ post: {
1443
+ req: VcsControllerCreateConnectionData;
1444
+ res: {
1445
+ 201: VcsConnectionResponseDto;
1446
+ };
1447
+ };
1448
+ get: {
1449
+ req: VcsControllerGetConnectionData;
1450
+ res: {
1451
+ 200: VcsConnectionResponseDto;
1452
+ };
1453
+ };
1454
+ patch: {
1455
+ req: VcsControllerUpdateConnectionData;
1456
+ res: {
1457
+ 200: VcsConnectionResponseDto;
1458
+ };
1459
+ };
1460
+ delete: {
1461
+ req: VcsControllerDeleteConnectionData;
1462
+ res: {
1463
+ 204: void;
1464
+ };
1465
+ };
1466
+ };
1467
+ '/api/projects/{slug}/vcs/test': {
1468
+ post: {
1469
+ req: VcsControllerTestConnectionData;
1470
+ res: {
1471
+ 201: TestConnectionResultDto;
1472
+ };
1473
+ };
1474
+ };
1475
+ '/api/projects/{slug}/vcs/sync/{issueNumber}': {
1476
+ post: {
1477
+ req: VcsControllerSyncIssueData;
1478
+ res: {
1479
+ /**
1480
+ * Issue synced successfully
1481
+ */
1482
+ 200: SyncResultDto;
1483
+ /**
1484
+ * Project or VCS connection not found
1485
+ */
1486
+ 404: unknown;
1487
+ /**
1488
+ * Issue already synced (externalVcsId exists)
1489
+ */
1490
+ 409: unknown;
1491
+ };
1492
+ };
1493
+ };
1494
+ '/api/projects/{slug}/vcs/sync': {
1495
+ post: {
1496
+ req: VcsControllerSyncAllData;
1497
+ res: {
1498
+ /**
1499
+ * Full sync completed
1500
+ */
1501
+ 200: SyncResultDto;
1502
+ /**
1503
+ * Project or VCS connection not found
1504
+ */
1505
+ 404: unknown;
1506
+ };
1507
+ };
1508
+ };
1509
+ '/api/projects/{slug}/vcs/sync-pr': {
1510
+ post: {
1511
+ req: VcsControllerSyncPrData;
1512
+ res: {
1513
+ /**
1514
+ * PR sync completed
1515
+ */
1516
+ 200: {
1517
+ [key: string]: unknown;
1518
+ };
1519
+ /**
1520
+ * Project or VCS connection not found
1521
+ */
1522
+ 404: unknown;
1523
+ };
1524
+ };
1525
+ };
1526
+ '/api/projects/{slug}/vcs-webhook': {
1527
+ post: {
1528
+ req: VcsWebhookControllerHandleWebhookData;
1529
+ res: {
1530
+ /**
1531
+ * Webhook processed
1532
+ */
1533
+ 200: unknown;
1534
+ /**
1535
+ * Invalid webhook signature
1536
+ */
1537
+ 401: unknown;
1538
+ };
1539
+ };
1540
+ };
1541
+ '/api/projects/{slug}/tickets/{ref}/links': {
1542
+ post: {
1543
+ req: TicketLinksControllerCreateData;
1544
+ res: {
1545
+ 200: TicketLinkResponseDto;
1546
+ /**
1547
+ * Invalid URL
1548
+ */
1549
+ 400: unknown;
1550
+ /**
1551
+ * Ticket not found
1552
+ */
1553
+ 404: unknown;
1554
+ };
1555
+ };
1556
+ get: {
1557
+ req: TicketLinksControllerFindAllData;
1558
+ res: {
1559
+ 200: Array<TicketLinkResponseDto>;
1560
+ /**
1561
+ * Ticket not found
1562
+ */
1563
+ 404: unknown;
1564
+ };
1565
+ };
1566
+ };
1567
+ '/api/projects/{slug}/tickets/{ref}/links/{linkId}': {
1568
+ delete: {
1569
+ req: TicketLinksControllerRemoveData;
1570
+ res: {
1571
+ /**
1572
+ * Link deleted
1573
+ */
1574
+ 204: void;
1575
+ /**
1576
+ * Link not found
1577
+ */
1578
+ 404: unknown;
1579
+ };
1580
+ };
1581
+ };
1582
+ '/api/projects/{slug}/tickets/{ref}/comments': {
1583
+ post: {
1584
+ req: CommentsControllerCreateFromHttpData;
1585
+ res: {
1586
+ /**
1587
+ * Comment created
1588
+ */
1589
+ 201: unknown;
1590
+ /**
1591
+ * Invalid request data
1592
+ */
1593
+ 400: unknown;
1594
+ /**
1595
+ * Project or ticket not found
1596
+ */
1597
+ 404: unknown;
1598
+ };
1599
+ };
1600
+ get: {
1601
+ req: CommentsControllerListByTicketFromHttpData;
1602
+ res: {
1603
+ /**
1604
+ * List of comments
1605
+ */
1606
+ 200: unknown;
1607
+ /**
1608
+ * Project or ticket not found
1609
+ */
1610
+ 404: unknown;
1611
+ };
1612
+ };
1613
+ };
1614
+ '/api/comments/{id}': {
1615
+ patch: {
1616
+ req: CommentsControllerUpdateFromHttpData;
1617
+ res: {
1618
+ /**
1619
+ * Comment updated
1620
+ */
1621
+ 200: unknown;
1622
+ /**
1623
+ * Not authorized to edit this comment
1624
+ */
1625
+ 403: unknown;
1626
+ /**
1627
+ * Comment not found
1628
+ */
1629
+ 404: unknown;
1630
+ };
1631
+ };
1632
+ delete: {
1633
+ req: CommentsControllerDeleteFromHttpData;
1634
+ res: {
1635
+ /**
1636
+ * Comment deleted
1637
+ */
1638
+ 200: unknown;
1639
+ /**
1640
+ * Not authorized to delete this comment
1641
+ */
1642
+ 403: unknown;
1643
+ /**
1644
+ * Comment not found
1645
+ */
1646
+ 404: unknown;
1647
+ };
1648
+ };
1649
+ };
1650
+ '/api/projects/{slug}/labels': {
1651
+ post: {
1652
+ req: LabelsControllerCreateFromHttpData;
1653
+ res: {
1654
+ /**
1655
+ * Label created
1656
+ */
1657
+ 201: unknown;
1658
+ /**
1659
+ * Invalid request data
1660
+ */
1661
+ 400: unknown;
1662
+ /**
1663
+ * Unauthorized - admin only
1664
+ */
1665
+ 403: unknown;
1666
+ /**
1667
+ * Project not found
1668
+ */
1669
+ 404: unknown;
1670
+ };
1671
+ };
1672
+ get: {
1673
+ req: LabelsControllerFindByProjectFromHttpData;
1674
+ res: {
1675
+ /**
1676
+ * List of labels
1677
+ */
1678
+ 200: unknown;
1679
+ /**
1680
+ * Project not found
1681
+ */
1682
+ 404: unknown;
1683
+ };
1684
+ };
1685
+ };
1686
+ '/api/projects/{slug}/labels/{id}': {
1687
+ patch: {
1688
+ req: LabelsControllerUpdateFromHttpData;
1689
+ res: {
1690
+ /**
1691
+ * Label updated
1692
+ */
1693
+ 200: unknown;
1694
+ /**
1695
+ * Invalid request data
1696
+ */
1697
+ 400: unknown;
1698
+ /**
1699
+ * Unauthorized - admin only
1700
+ */
1701
+ 403: unknown;
1702
+ /**
1703
+ * Label or project not found
1704
+ */
1705
+ 404: unknown;
1706
+ };
1707
+ };
1708
+ delete: {
1709
+ req: LabelsControllerDeleteFromHttpData;
1710
+ res: {
1711
+ /**
1712
+ * Label deleted
1713
+ */
1714
+ 204: void;
1715
+ /**
1716
+ * Unauthorized - admin only
1717
+ */
1718
+ 403: unknown;
1719
+ /**
1720
+ * Label or project not found
1721
+ */
1722
+ 404: unknown;
1723
+ };
1724
+ };
1725
+ };
1726
+ '/api/projects/{slug}/tickets/{ref}/labels': {
1727
+ post: {
1728
+ req: LabelsControllerAssignLabelFromHttpData;
1729
+ res: {
1730
+ /**
1731
+ * Label assigned to ticket
1732
+ */
1733
+ 201: unknown;
1734
+ /**
1735
+ * Invalid request data or label already assigned
1736
+ */
1737
+ 400: unknown;
1738
+ /**
1739
+ * Ticket or label not found
1740
+ */
1741
+ 404: unknown;
1742
+ };
1743
+ };
1744
+ };
1745
+ '/api/projects/{slug}/tickets/{ref}/labels/{labelId}': {
1746
+ delete: {
1747
+ req: LabelsControllerRemoveLabelFromHttpData;
1748
+ res: {
1749
+ /**
1750
+ * Label removed from ticket
1751
+ */
1752
+ 204: void;
1753
+ /**
1754
+ * Ticket or label assignment not found
1755
+ */
1756
+ 404: unknown;
1757
+ };
1758
+ };
1759
+ };
1760
+ '/api/health': {
1761
+ get: {
1762
+ res: {
1763
+ /**
1764
+ * Service is healthy
1765
+ */
1766
+ 200: unknown;
1767
+ };
1768
+ };
1769
+ };
1770
+ '/api/projects/{slug}/ci-webhook': {
1771
+ post: {
1772
+ req: CiWebhookControllerHandleCiWebhookData;
1773
+ res: {
1774
+ /**
1775
+ * Webhook processed
1776
+ */
1777
+ 200: CiWebhookResponseDto;
1778
+ /**
1779
+ * Invalid request data
1780
+ */
1781
+ 400: unknown;
1782
+ /**
1783
+ * Project not found
1784
+ */
1785
+ 404: unknown;
1786
+ };
1787
+ };
1788
+ };
1789
+ };
1790
+ //# sourceMappingURL=types.gen.d.ts.map