@nathapp/koda-cli 0.2.3 → 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,1586 @@
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
+ createdAt: string;
161
+ };
162
+ export type TicketResponseDto = {
163
+ /**
164
+ * Ticket ID (CUID)
165
+ */
166
+ id: string;
167
+ /**
168
+ * Project ID
169
+ */
170
+ projectId: string;
171
+ /**
172
+ * Sequential ticket number within project
173
+ */
174
+ number: number;
175
+ /**
176
+ * Project-scoped ticket reference, e.g. NAX-1
177
+ */
178
+ ref: string;
179
+ /**
180
+ * Ticket type
181
+ */
182
+ type: 'BUG' | 'ENHANCEMENT' | 'TASK' | 'QUESTION';
183
+ /**
184
+ * Ticket title
185
+ */
186
+ title: string;
187
+ /**
188
+ * Ticket description
189
+ */
190
+ description?: string | null;
191
+ /**
192
+ * Ticket status
193
+ */
194
+ status: 'CREATED' | 'VERIFIED' | 'IN_PROGRESS' | 'VERIFY_FIX' | 'CLOSED' | 'REJECTED';
195
+ /**
196
+ * Ticket priority
197
+ */
198
+ priority: 'LOW' | 'MEDIUM' | 'HIGH' | 'CRITICAL';
199
+ /**
200
+ * Assigned to user ID
201
+ */
202
+ assignedToUserId?: string | null;
203
+ /**
204
+ * Assigned to agent ID
205
+ */
206
+ assignedToAgentId?: string | null;
207
+ /**
208
+ * Created by user ID
209
+ */
210
+ createdByUserId?: string | null;
211
+ /**
212
+ * Created by agent ID
213
+ */
214
+ createdByAgentId?: string | null;
215
+ /**
216
+ * Git reference version
217
+ */
218
+ gitRefVersion?: string | null;
219
+ /**
220
+ * Git reference file
221
+ */
222
+ gitRefFile?: string | null;
223
+ /**
224
+ * Git reference line
225
+ */
226
+ gitRefLine?: number | null;
227
+ /**
228
+ * Git reference URL
229
+ */
230
+ gitRefUrl?: string | null;
231
+ /**
232
+ * Created at timestamp
233
+ */
234
+ createdAt: string;
235
+ /**
236
+ * Updated at timestamp
237
+ */
238
+ updatedAt: string;
239
+ /**
240
+ * Soft delete timestamp
241
+ */
242
+ deletedAt?: string | null;
243
+ /**
244
+ * Related ticket links
245
+ */
246
+ links: Array<TicketLinkResponseDto>;
247
+ labels: Array<Array<{
248
+ id: string;
249
+ projectId: string;
250
+ name: string;
251
+ color: string | null;
252
+ }>>;
253
+ };
254
+ /**
255
+ * Ticket status
256
+ */
257
+ export type status2 = 'CREATED' | 'VERIFIED' | 'IN_PROGRESS' | 'VERIFY_FIX' | 'CLOSED' | 'REJECTED';
258
+ export type UpdateTicketDto = {
259
+ /**
260
+ * Ticket title
261
+ */
262
+ title?: string;
263
+ /**
264
+ * Ticket description
265
+ */
266
+ description?: string;
267
+ /**
268
+ * Ticket priority
269
+ */
270
+ priority?: 'LOW' | 'MEDIUM' | 'HIGH' | 'CRITICAL';
271
+ /**
272
+ * Ticket status
273
+ */
274
+ status?: 'CREATED' | 'VERIFIED' | 'IN_PROGRESS' | 'VERIFY_FIX' | 'CLOSED' | 'REJECTED';
275
+ };
276
+ export type TransitionWithCommentDto = {
277
+ /**
278
+ * Comment body explaining the transition
279
+ */
280
+ body?: string;
281
+ };
282
+ export type AddDocumentDto = {
283
+ /**
284
+ * Source type
285
+ */
286
+ source: 'ticket' | 'doc' | 'manual';
287
+ /**
288
+ * Source record ID (e.g. ticket CUID)
289
+ */
290
+ sourceId: string;
291
+ /**
292
+ * Full text content to embed and index
293
+ */
294
+ content: string;
295
+ /**
296
+ * Arbitrary metadata stored with the document
297
+ */
298
+ metadata?: {
299
+ [key: string]: unknown;
300
+ };
301
+ };
302
+ /**
303
+ * Source type
304
+ */
305
+ export type source = 'ticket' | 'doc' | 'manual';
306
+ export type SearchKbDto = {
307
+ /**
308
+ * Natural language search query
309
+ */
310
+ query: string;
311
+ limit?: number;
312
+ };
313
+ export type CreateWebhookDto = {
314
+ url: string;
315
+ secret: string;
316
+ events: Array<(string)>;
317
+ };
318
+ export type CreateCommentDto = {
319
+ /**
320
+ * Comment body
321
+ */
322
+ body?: string;
323
+ /**
324
+ * Comment type
325
+ */
326
+ type?: 'GENERAL' | 'VERIFICATION' | 'FIX_REPORT' | 'REVIEW' | 'STATUS_CHANGE';
327
+ };
328
+ /**
329
+ * Comment type
330
+ */
331
+ export type type2 = 'GENERAL' | 'VERIFICATION' | 'FIX_REPORT' | 'REVIEW' | 'STATUS_CHANGE';
332
+ export type UpdateCommentDto = {
333
+ /**
334
+ * Comment body
335
+ */
336
+ body?: string;
337
+ };
338
+ export type CreateLabelDto = {
339
+ name: string;
340
+ color?: string;
341
+ };
342
+ export type UpdateLabelDto = {
343
+ name?: string;
344
+ color?: string;
345
+ };
346
+ export type AssignLabelDto = {
347
+ labelId: string;
348
+ };
349
+ export type CreateTicketLinkDto = {
350
+ url: string;
351
+ };
352
+ export type CiPipelineDto = {
353
+ /**
354
+ * Pipeline ID
355
+ */
356
+ id: string;
357
+ /**
358
+ * Pipeline URL
359
+ */
360
+ url?: string;
361
+ };
362
+ export type CiCommitDto = {
363
+ /**
364
+ * Commit SHA
365
+ */
366
+ sha: string;
367
+ /**
368
+ * Commit message
369
+ */
370
+ message?: string;
371
+ };
372
+ export type CiFailureDto = {
373
+ /**
374
+ * Failed test or step name
375
+ */
376
+ test: string;
377
+ /**
378
+ * File path where failure occurred
379
+ */
380
+ file?: string;
381
+ /**
382
+ * Line number where failure occurred
383
+ */
384
+ line?: number;
385
+ };
386
+ export type CiWebhookPayloadDto = {
387
+ /**
388
+ * CI event type
389
+ */
390
+ event: 'pipeline_failed' | 'pipeline_success';
391
+ /**
392
+ * Pipeline information
393
+ */
394
+ pipeline: CiPipelineDto;
395
+ /**
396
+ * Commit information
397
+ */
398
+ commit: CiCommitDto;
399
+ /**
400
+ * List of failures
401
+ */
402
+ failures: Array<CiFailureDto>;
403
+ };
404
+ /**
405
+ * CI event type
406
+ */
407
+ export type event = 'pipeline_failed' | 'pipeline_success';
408
+ export type CiWebhookResponseDto = {
409
+ /**
410
+ * Whether the webhook was processed successfully
411
+ */
412
+ success: boolean;
413
+ /**
414
+ * Created ticket reference
415
+ */
416
+ ticketRef?: string;
417
+ /**
418
+ * Message describing the result
419
+ */
420
+ message: string;
421
+ };
422
+ export type AuthControllerRegisterData = {
423
+ requestBody: RegisterDto;
424
+ };
425
+ export type AuthControllerRegisterResponse = AuthResponseDto;
426
+ export type AuthControllerLoginData = {
427
+ requestBody: LoginDto;
428
+ };
429
+ export type AuthControllerLoginResponse = AuthResponseDto;
430
+ export type AuthControllerRefreshResponse = AuthResponseDto;
431
+ export type AuthControllerMeResponse = UserResponseDto;
432
+ export type AgentsControllerGenerateApiKeyData = {
433
+ requestBody: CreateAgentDto;
434
+ };
435
+ export type AgentsControllerGenerateApiKeyResponse = unknown;
436
+ export type AgentsControllerFindAllResponse = unknown;
437
+ export type AgentsControllerFindMeResponse = unknown;
438
+ export type AgentsControllerFindBySlugData = {
439
+ slug: string;
440
+ };
441
+ export type AgentsControllerFindBySlugResponse = unknown;
442
+ export type AgentsControllerUpdateData = {
443
+ requestBody: UpdateAgentDto;
444
+ slug: string;
445
+ };
446
+ export type AgentsControllerUpdateResponse = unknown;
447
+ export type AgentsControllerRemoveData = {
448
+ slug: string;
449
+ };
450
+ export type AgentsControllerRemoveResponse = unknown;
451
+ export type AgentsControllerSuggestTicketData = {
452
+ /**
453
+ * Project slug
454
+ */
455
+ project: string;
456
+ slug: string;
457
+ };
458
+ export type AgentsControllerSuggestTicketResponse = unknown;
459
+ export type AgentsControllerUpdateRolesData = {
460
+ requestBody: UpdateRolesDto;
461
+ slug: string;
462
+ };
463
+ export type AgentsControllerUpdateRolesResponse = unknown;
464
+ export type AgentsControllerUpdateCapabilitiesData = {
465
+ requestBody: UpdateCapabilitiesDto;
466
+ slug: string;
467
+ };
468
+ export type AgentsControllerUpdateCapabilitiesResponse = unknown;
469
+ export type AgentsControllerRotateApiKeyData = {
470
+ slug: string;
471
+ };
472
+ export type AgentsControllerRotateApiKeyResponse = unknown;
473
+ export type ProjectsControllerCreateData = {
474
+ requestBody: CreateProjectDto;
475
+ };
476
+ export type ProjectsControllerCreateResponse = unknown;
477
+ export type ProjectsControllerFindAllResponse = unknown;
478
+ export type ProjectsControllerFindBySlugData = {
479
+ slug: string;
480
+ };
481
+ export type ProjectsControllerFindBySlugResponse = unknown;
482
+ export type ProjectsControllerUpdateData = {
483
+ requestBody: UpdateProjectDto;
484
+ slug: string;
485
+ };
486
+ export type ProjectsControllerUpdateResponse = unknown;
487
+ export type ProjectsControllerRemoveData = {
488
+ slug: string;
489
+ };
490
+ export type ProjectsControllerRemoveResponse = unknown;
491
+ export type TicketsControllerCreateData = {
492
+ requestBody: CreateTicketDto;
493
+ slug: string;
494
+ };
495
+ export type TicketsControllerCreateResponse = TicketResponseDto;
496
+ export type TicketsControllerFindAllData = {
497
+ /**
498
+ * User ID to filter by
499
+ */
500
+ assignedTo?: unknown;
501
+ limit?: number;
502
+ page?: number;
503
+ priority?: 'LOW' | 'MEDIUM' | 'HIGH' | 'CRITICAL';
504
+ slug: string;
505
+ status?: 'CREATED' | 'VERIFIED' | 'IN_PROGRESS' | 'VERIFY_FIX' | 'CLOSED' | 'REJECTED';
506
+ type?: 'BUG' | 'ENHANCEMENT' | 'TASK' | 'QUESTION';
507
+ unassigned?: boolean;
508
+ };
509
+ export type TicketsControllerFindAllResponse = unknown;
510
+ export type TicketsControllerFindByRefData = {
511
+ ref: string;
512
+ slug: string;
513
+ };
514
+ export type TicketsControllerFindByRefResponse = TicketResponseDto;
515
+ export type TicketsControllerUpdateData = {
516
+ ref: string;
517
+ requestBody: UpdateTicketDto;
518
+ slug: string;
519
+ };
520
+ export type TicketsControllerUpdateResponse = TicketResponseDto;
521
+ export type TicketsControllerSoftDeleteData = {
522
+ ref: string;
523
+ slug: string;
524
+ };
525
+ export type TicketsControllerSoftDeleteResponse = TicketResponseDto;
526
+ export type TicketsControllerAssignData = {
527
+ ref: string;
528
+ slug: string;
529
+ };
530
+ export type TicketsControllerAssignResponse = TicketResponseDto;
531
+ export type TicketsControllerVerifyData = {
532
+ ref: string;
533
+ requestBody: TransitionWithCommentDto;
534
+ slug: string;
535
+ };
536
+ export type TicketsControllerVerifyResponse = unknown;
537
+ export type TicketsControllerStartData = {
538
+ ref: string;
539
+ slug: string;
540
+ };
541
+ export type TicketsControllerStartResponse = unknown;
542
+ export type TicketsControllerFixData = {
543
+ ref: string;
544
+ requestBody: TransitionWithCommentDto;
545
+ slug: string;
546
+ };
547
+ export type TicketsControllerFixResponse = unknown;
548
+ export type TicketsControllerVerifyFixData = {
549
+ ref: string;
550
+ requestBody: TransitionWithCommentDto;
551
+ slug: string;
552
+ };
553
+ export type TicketsControllerVerifyFixResponse = unknown;
554
+ export type TicketsControllerCloseData = {
555
+ ref: string;
556
+ slug: string;
557
+ };
558
+ export type TicketsControllerCloseResponse = unknown;
559
+ export type TicketsControllerRejectData = {
560
+ ref: string;
561
+ requestBody: TransitionWithCommentDto;
562
+ slug: string;
563
+ };
564
+ export type TicketsControllerRejectResponse = unknown;
565
+ export type RagControllerAddDocumentData = {
566
+ requestBody: AddDocumentDto;
567
+ slug: string;
568
+ };
569
+ export type RagControllerAddDocumentResponse = unknown;
570
+ export type RagControllerListDocumentsData = {
571
+ limit: string;
572
+ slug: string;
573
+ };
574
+ export type RagControllerListDocumentsResponse = unknown;
575
+ export type RagControllerDeleteDocumentData = {
576
+ slug: string;
577
+ sourceId: string;
578
+ };
579
+ export type RagControllerDeleteDocumentResponse = unknown;
580
+ export type RagControllerSearchData = {
581
+ requestBody: SearchKbDto;
582
+ slug: string;
583
+ };
584
+ export type RagControllerSearchResponse = unknown;
585
+ export type RagControllerOptimizeTableData = {
586
+ slug: string;
587
+ };
588
+ export type RagControllerOptimizeTableResponse = unknown;
589
+ export type WebhookControllerRegisterData = {
590
+ requestBody: CreateWebhookDto;
591
+ slug: string;
592
+ };
593
+ export type WebhookControllerRegisterResponse = unknown;
594
+ export type WebhookControllerListData = {
595
+ slug: string;
596
+ };
597
+ export type WebhookControllerListResponse = unknown;
598
+ export type WebhookControllerRemoveData = {
599
+ id: string;
600
+ };
601
+ export type WebhookControllerRemoveResponse = void;
602
+ export type CommentsControllerCreateFromHttpData = {
603
+ ref: string;
604
+ requestBody: CreateCommentDto;
605
+ slug: string;
606
+ };
607
+ export type CommentsControllerCreateFromHttpResponse = unknown;
608
+ export type CommentsControllerListByTicketFromHttpData = {
609
+ ref: string;
610
+ slug: string;
611
+ };
612
+ export type CommentsControllerListByTicketFromHttpResponse = unknown;
613
+ export type CommentsControllerUpdateFromHttpData = {
614
+ id: string;
615
+ requestBody: UpdateCommentDto;
616
+ };
617
+ export type CommentsControllerUpdateFromHttpResponse = unknown;
618
+ export type CommentsControllerDeleteFromHttpData = {
619
+ id: string;
620
+ };
621
+ export type CommentsControllerDeleteFromHttpResponse = unknown;
622
+ export type LabelsControllerCreateFromHttpData = {
623
+ requestBody: CreateLabelDto;
624
+ slug: string;
625
+ };
626
+ export type LabelsControllerCreateFromHttpResponse = unknown;
627
+ export type LabelsControllerFindByProjectFromHttpData = {
628
+ slug: string;
629
+ };
630
+ export type LabelsControllerFindByProjectFromHttpResponse = unknown;
631
+ export type LabelsControllerUpdateFromHttpData = {
632
+ id: string;
633
+ requestBody: UpdateLabelDto;
634
+ slug: string;
635
+ };
636
+ export type LabelsControllerUpdateFromHttpResponse = unknown;
637
+ export type LabelsControllerDeleteFromHttpData = {
638
+ id: string;
639
+ slug: string;
640
+ };
641
+ export type LabelsControllerDeleteFromHttpResponse = void;
642
+ export type LabelsControllerAssignLabelFromHttpData = {
643
+ ref: string;
644
+ requestBody: AssignLabelDto;
645
+ slug: string;
646
+ };
647
+ export type LabelsControllerAssignLabelFromHttpResponse = unknown;
648
+ export type LabelsControllerRemoveLabelFromHttpData = {
649
+ labelId: string;
650
+ ref: string;
651
+ slug: string;
652
+ };
653
+ export type LabelsControllerRemoveLabelFromHttpResponse = void;
654
+ export type TicketLinksControllerCreateData = {
655
+ ref: string;
656
+ requestBody: CreateTicketLinkDto;
657
+ slug: string;
658
+ };
659
+ export type TicketLinksControllerCreateResponse = TicketLinkResponseDto;
660
+ export type TicketLinksControllerFindAllData = {
661
+ ref: string;
662
+ slug: string;
663
+ };
664
+ export type TicketLinksControllerFindAllResponse = Array<TicketLinkResponseDto>;
665
+ export type TicketLinksControllerRemoveData = {
666
+ linkId: string;
667
+ ref: string;
668
+ slug: string;
669
+ };
670
+ export type TicketLinksControllerRemoveResponse = void;
671
+ export type HealthControllerCheckResponse = unknown;
672
+ export type CiWebhookControllerHandleCiWebhookData = {
673
+ requestBody: CiWebhookPayloadDto;
674
+ slug: string;
675
+ };
676
+ export type CiWebhookControllerHandleCiWebhookResponse = CiWebhookResponseDto;
677
+ export type $OpenApiTs = {
678
+ '/api/auth/register': {
679
+ post: {
680
+ req: AuthControllerRegisterData;
681
+ res: {
682
+ 201: AuthResponseDto;
683
+ /**
684
+ * Invalid input
685
+ */
686
+ 400: unknown;
687
+ };
688
+ };
689
+ };
690
+ '/api/auth/login': {
691
+ post: {
692
+ req: AuthControllerLoginData;
693
+ res: {
694
+ 200: AuthResponseDto;
695
+ /**
696
+ * Invalid credentials
697
+ */
698
+ 401: unknown;
699
+ };
700
+ };
701
+ };
702
+ '/api/auth/refresh': {
703
+ post: {
704
+ res: {
705
+ 200: AuthResponseDto;
706
+ /**
707
+ * Invalid or missing token
708
+ */
709
+ 401: unknown;
710
+ };
711
+ };
712
+ };
713
+ '/api/auth/me': {
714
+ get: {
715
+ res: {
716
+ 200: UserResponseDto;
717
+ /**
718
+ * Missing or invalid token
719
+ */
720
+ 401: unknown;
721
+ };
722
+ };
723
+ };
724
+ '/api/agents': {
725
+ post: {
726
+ req: AgentsControllerGenerateApiKeyData;
727
+ res: {
728
+ /**
729
+ * Agent created with API key
730
+ */
731
+ 201: unknown;
732
+ /**
733
+ * Unauthorized
734
+ */
735
+ 401: unknown;
736
+ /**
737
+ * Forbidden - admin role required
738
+ */
739
+ 403: unknown;
740
+ };
741
+ };
742
+ get: {
743
+ res: {
744
+ /**
745
+ * Agents retrieved successfully
746
+ */
747
+ 200: unknown;
748
+ };
749
+ };
750
+ };
751
+ '/api/agents/me': {
752
+ get: {
753
+ res: {
754
+ /**
755
+ * Agent profile retrieved
756
+ */
757
+ 200: unknown;
758
+ /**
759
+ * Unauthorized
760
+ */
761
+ 401: unknown;
762
+ };
763
+ };
764
+ };
765
+ '/api/agents/{slug}': {
766
+ get: {
767
+ req: AgentsControllerFindBySlugData;
768
+ res: {
769
+ /**
770
+ * Agent retrieved successfully
771
+ */
772
+ 200: unknown;
773
+ /**
774
+ * Agent not found
775
+ */
776
+ 404: unknown;
777
+ };
778
+ };
779
+ patch: {
780
+ req: AgentsControllerUpdateData;
781
+ res: {
782
+ /**
783
+ * Agent updated successfully
784
+ */
785
+ 200: unknown;
786
+ /**
787
+ * Unauthorized
788
+ */
789
+ 401: unknown;
790
+ /**
791
+ * Forbidden - admin role required
792
+ */
793
+ 403: unknown;
794
+ /**
795
+ * Agent not found
796
+ */
797
+ 404: unknown;
798
+ };
799
+ };
800
+ delete: {
801
+ req: AgentsControllerRemoveData;
802
+ res: {
803
+ /**
804
+ * Agent deleted successfully
805
+ */
806
+ 200: unknown;
807
+ /**
808
+ * Unauthorized
809
+ */
810
+ 401: unknown;
811
+ /**
812
+ * Forbidden - admin role required
813
+ */
814
+ 403: unknown;
815
+ /**
816
+ * Agent not found
817
+ */
818
+ 404: unknown;
819
+ };
820
+ };
821
+ };
822
+ '/api/agents/{slug}/pickup': {
823
+ get: {
824
+ req: AgentsControllerSuggestTicketData;
825
+ res: {
826
+ /**
827
+ * Suggested ticket or null
828
+ */
829
+ 200: unknown;
830
+ /**
831
+ * Missing project query param
832
+ */
833
+ 400: unknown;
834
+ /**
835
+ * Agent not found
836
+ */
837
+ 404: unknown;
838
+ };
839
+ };
840
+ };
841
+ '/api/agents/{slug}/update-roles': {
842
+ patch: {
843
+ req: AgentsControllerUpdateRolesData;
844
+ res: {
845
+ /**
846
+ * Roles updated successfully
847
+ */
848
+ 200: unknown;
849
+ /**
850
+ * Unauthorized
851
+ */
852
+ 401: unknown;
853
+ /**
854
+ * Forbidden - admin role required
855
+ */
856
+ 403: unknown;
857
+ /**
858
+ * Agent not found
859
+ */
860
+ 404: unknown;
861
+ };
862
+ };
863
+ };
864
+ '/api/agents/{slug}/update-capabilities': {
865
+ patch: {
866
+ req: AgentsControllerUpdateCapabilitiesData;
867
+ res: {
868
+ /**
869
+ * Capabilities updated successfully
870
+ */
871
+ 200: unknown;
872
+ /**
873
+ * Unauthorized
874
+ */
875
+ 401: unknown;
876
+ /**
877
+ * Forbidden - admin role required
878
+ */
879
+ 403: unknown;
880
+ /**
881
+ * Agent not found
882
+ */
883
+ 404: unknown;
884
+ };
885
+ };
886
+ };
887
+ '/api/agents/{slug}/rotate-key': {
888
+ post: {
889
+ req: AgentsControllerRotateApiKeyData;
890
+ res: {
891
+ /**
892
+ * API key rotated successfully
893
+ */
894
+ 200: unknown;
895
+ /**
896
+ * Unauthorized
897
+ */
898
+ 401: unknown;
899
+ /**
900
+ * Forbidden - admin role required
901
+ */
902
+ 403: unknown;
903
+ /**
904
+ * Agent not found
905
+ */
906
+ 404: unknown;
907
+ };
908
+ };
909
+ };
910
+ '/api/projects': {
911
+ post: {
912
+ req: ProjectsControllerCreateData;
913
+ res: {
914
+ /**
915
+ * Project created successfully
916
+ */
917
+ 201: unknown;
918
+ /**
919
+ * Invalid request data
920
+ */
921
+ 400: unknown;
922
+ /**
923
+ * Unauthorized
924
+ */
925
+ 401: unknown;
926
+ /**
927
+ * Forbidden - admin role required
928
+ */
929
+ 403: unknown;
930
+ /**
931
+ * Conflict - duplicate slug or key
932
+ */
933
+ 409: unknown;
934
+ };
935
+ };
936
+ get: {
937
+ res: {
938
+ /**
939
+ * List of projects
940
+ */
941
+ 200: unknown;
942
+ };
943
+ };
944
+ };
945
+ '/api/projects/{slug}': {
946
+ get: {
947
+ req: ProjectsControllerFindBySlugData;
948
+ res: {
949
+ /**
950
+ * Project found
951
+ */
952
+ 200: unknown;
953
+ /**
954
+ * Project not found
955
+ */
956
+ 404: unknown;
957
+ };
958
+ };
959
+ patch: {
960
+ req: ProjectsControllerUpdateData;
961
+ res: {
962
+ /**
963
+ * Project updated successfully
964
+ */
965
+ 200: unknown;
966
+ /**
967
+ * Invalid request data
968
+ */
969
+ 400: unknown;
970
+ /**
971
+ * Unauthorized
972
+ */
973
+ 401: unknown;
974
+ /**
975
+ * Forbidden - admin role required
976
+ */
977
+ 403: unknown;
978
+ /**
979
+ * Project not found
980
+ */
981
+ 404: unknown;
982
+ /**
983
+ * Conflict - duplicate slug or key
984
+ */
985
+ 409: unknown;
986
+ };
987
+ };
988
+ delete: {
989
+ req: ProjectsControllerRemoveData;
990
+ res: {
991
+ /**
992
+ * Project soft deleted successfully
993
+ */
994
+ 200: unknown;
995
+ /**
996
+ * Unauthorized
997
+ */
998
+ 401: unknown;
999
+ /**
1000
+ * Forbidden - admin role required
1001
+ */
1002
+ 403: unknown;
1003
+ /**
1004
+ * Project not found
1005
+ */
1006
+ 404: unknown;
1007
+ };
1008
+ };
1009
+ };
1010
+ '/api/projects/{slug}/tickets': {
1011
+ post: {
1012
+ req: TicketsControllerCreateData;
1013
+ res: {
1014
+ 201: TicketResponseDto;
1015
+ /**
1016
+ * Invalid request data
1017
+ */
1018
+ 400: unknown;
1019
+ /**
1020
+ * Project not found
1021
+ */
1022
+ 404: unknown;
1023
+ };
1024
+ };
1025
+ get: {
1026
+ req: TicketsControllerFindAllData;
1027
+ res: {
1028
+ /**
1029
+ * List of tickets
1030
+ */
1031
+ 200: unknown;
1032
+ /**
1033
+ * Project not found
1034
+ */
1035
+ 404: unknown;
1036
+ };
1037
+ };
1038
+ };
1039
+ '/api/projects/{slug}/tickets/{ref}': {
1040
+ get: {
1041
+ req: TicketsControllerFindByRefData;
1042
+ res: {
1043
+ 200: TicketResponseDto;
1044
+ /**
1045
+ * Ticket or project not found
1046
+ */
1047
+ 404: unknown;
1048
+ };
1049
+ };
1050
+ patch: {
1051
+ req: TicketsControllerUpdateData;
1052
+ res: {
1053
+ 200: TicketResponseDto;
1054
+ /**
1055
+ * Invalid request data
1056
+ */
1057
+ 400: unknown;
1058
+ /**
1059
+ * Ticket or project not found
1060
+ */
1061
+ 404: unknown;
1062
+ };
1063
+ };
1064
+ delete: {
1065
+ req: TicketsControllerSoftDeleteData;
1066
+ res: {
1067
+ 200: TicketResponseDto;
1068
+ /**
1069
+ * Forbidden - admin role required
1070
+ */
1071
+ 403: unknown;
1072
+ /**
1073
+ * Ticket or project not found
1074
+ */
1075
+ 404: unknown;
1076
+ };
1077
+ };
1078
+ };
1079
+ '/api/projects/{slug}/tickets/{ref}/assign': {
1080
+ post: {
1081
+ req: TicketsControllerAssignData;
1082
+ res: {
1083
+ 200: TicketResponseDto;
1084
+ /**
1085
+ * Cannot assign to both user and agent
1086
+ */
1087
+ 400: unknown;
1088
+ /**
1089
+ * Ticket or project not found
1090
+ */
1091
+ 404: unknown;
1092
+ };
1093
+ };
1094
+ };
1095
+ '/api/projects/{slug}/tickets/{ref}/verify': {
1096
+ post: {
1097
+ req: TicketsControllerVerifyData;
1098
+ res: {
1099
+ /**
1100
+ * Ticket verified
1101
+ */
1102
+ 200: unknown;
1103
+ /**
1104
+ * Invalid transition
1105
+ */
1106
+ 400: unknown;
1107
+ /**
1108
+ * Ticket or project not found
1109
+ */
1110
+ 404: unknown;
1111
+ };
1112
+ };
1113
+ };
1114
+ '/api/projects/{slug}/tickets/{ref}/start': {
1115
+ post: {
1116
+ req: TicketsControllerStartData;
1117
+ res: {
1118
+ /**
1119
+ * Ticket started
1120
+ */
1121
+ 200: unknown;
1122
+ /**
1123
+ * Invalid transition
1124
+ */
1125
+ 400: unknown;
1126
+ /**
1127
+ * Ticket or project not found
1128
+ */
1129
+ 404: unknown;
1130
+ };
1131
+ };
1132
+ };
1133
+ '/api/projects/{slug}/tickets/{ref}/fix': {
1134
+ post: {
1135
+ req: TicketsControllerFixData;
1136
+ res: {
1137
+ /**
1138
+ * Fix submitted
1139
+ */
1140
+ 200: unknown;
1141
+ /**
1142
+ * Invalid transition
1143
+ */
1144
+ 400: unknown;
1145
+ /**
1146
+ * Ticket or project not found
1147
+ */
1148
+ 404: unknown;
1149
+ };
1150
+ };
1151
+ };
1152
+ '/api/projects/{slug}/tickets/{ref}/verify-fix': {
1153
+ post: {
1154
+ req: TicketsControllerVerifyFixData;
1155
+ res: {
1156
+ /**
1157
+ * Fix reviewed
1158
+ */
1159
+ 200: unknown;
1160
+ /**
1161
+ * Invalid transition
1162
+ */
1163
+ 400: unknown;
1164
+ /**
1165
+ * Ticket or project not found
1166
+ */
1167
+ 404: unknown;
1168
+ };
1169
+ };
1170
+ };
1171
+ '/api/projects/{slug}/tickets/{ref}/close': {
1172
+ post: {
1173
+ req: TicketsControllerCloseData;
1174
+ res: {
1175
+ /**
1176
+ * Ticket closed
1177
+ */
1178
+ 200: unknown;
1179
+ /**
1180
+ * Invalid transition
1181
+ */
1182
+ 400: unknown;
1183
+ /**
1184
+ * Ticket or project not found
1185
+ */
1186
+ 404: unknown;
1187
+ };
1188
+ };
1189
+ };
1190
+ '/api/projects/{slug}/tickets/{ref}/reject': {
1191
+ post: {
1192
+ req: TicketsControllerRejectData;
1193
+ res: {
1194
+ /**
1195
+ * Ticket rejected
1196
+ */
1197
+ 200: unknown;
1198
+ /**
1199
+ * Invalid transition
1200
+ */
1201
+ 400: unknown;
1202
+ /**
1203
+ * Ticket or project not found
1204
+ */
1205
+ 404: unknown;
1206
+ };
1207
+ };
1208
+ };
1209
+ '/api/projects/{slug}/kb/documents': {
1210
+ post: {
1211
+ req: RagControllerAddDocumentData;
1212
+ res: {
1213
+ /**
1214
+ * Document indexed
1215
+ */
1216
+ 201: unknown;
1217
+ /**
1218
+ * Project not found
1219
+ */
1220
+ 404: unknown;
1221
+ };
1222
+ };
1223
+ get: {
1224
+ req: RagControllerListDocumentsData;
1225
+ res: {
1226
+ /**
1227
+ * Documents listed
1228
+ */
1229
+ 200: unknown;
1230
+ /**
1231
+ * Project not found
1232
+ */
1233
+ 404: unknown;
1234
+ };
1235
+ };
1236
+ };
1237
+ '/api/projects/{slug}/kb/documents/{sourceId}': {
1238
+ delete: {
1239
+ req: RagControllerDeleteDocumentData;
1240
+ res: {
1241
+ /**
1242
+ * Delete documents by sourceId
1243
+ */
1244
+ 200: unknown;
1245
+ /**
1246
+ * Forbidden - admin role required
1247
+ */
1248
+ 403: unknown;
1249
+ /**
1250
+ * Project not found
1251
+ */
1252
+ 404: unknown;
1253
+ };
1254
+ };
1255
+ };
1256
+ '/api/projects/{slug}/kb/search': {
1257
+ post: {
1258
+ req: RagControllerSearchData;
1259
+ res: {
1260
+ /**
1261
+ * Search results with RRF merge and similarity tiers
1262
+ */
1263
+ 200: unknown;
1264
+ /**
1265
+ * Project not found
1266
+ */
1267
+ 404: unknown;
1268
+ };
1269
+ };
1270
+ };
1271
+ '/api/projects/{slug}/kb/optimize': {
1272
+ post: {
1273
+ req: RagControllerOptimizeTableData;
1274
+ res: {
1275
+ /**
1276
+ * Table optimized
1277
+ */
1278
+ 200: unknown;
1279
+ /**
1280
+ * Forbidden - admin role required
1281
+ */
1282
+ 403: unknown;
1283
+ /**
1284
+ * Project not found
1285
+ */
1286
+ 404: unknown;
1287
+ };
1288
+ };
1289
+ };
1290
+ '/api/projects/{slug}/webhooks': {
1291
+ post: {
1292
+ req: WebhookControllerRegisterData;
1293
+ res: {
1294
+ /**
1295
+ * Webhook registered
1296
+ */
1297
+ 201: unknown;
1298
+ /**
1299
+ * Invalid request data
1300
+ */
1301
+ 400: unknown;
1302
+ /**
1303
+ * Project not found
1304
+ */
1305
+ 404: unknown;
1306
+ };
1307
+ };
1308
+ get: {
1309
+ req: WebhookControllerListData;
1310
+ res: {
1311
+ /**
1312
+ * List of webhooks
1313
+ */
1314
+ 200: unknown;
1315
+ /**
1316
+ * Project not found
1317
+ */
1318
+ 404: unknown;
1319
+ };
1320
+ };
1321
+ };
1322
+ '/api/api/webhooks/{id}': {
1323
+ delete: {
1324
+ req: WebhookControllerRemoveData;
1325
+ res: {
1326
+ /**
1327
+ * Webhook deleted
1328
+ */
1329
+ 204: void;
1330
+ /**
1331
+ * Webhook not found
1332
+ */
1333
+ 404: unknown;
1334
+ };
1335
+ };
1336
+ };
1337
+ '/api/projects/{slug}/tickets/{ref}/comments': {
1338
+ post: {
1339
+ req: CommentsControllerCreateFromHttpData;
1340
+ res: {
1341
+ /**
1342
+ * Comment created
1343
+ */
1344
+ 201: unknown;
1345
+ /**
1346
+ * Invalid request data
1347
+ */
1348
+ 400: unknown;
1349
+ /**
1350
+ * Project or ticket not found
1351
+ */
1352
+ 404: unknown;
1353
+ };
1354
+ };
1355
+ get: {
1356
+ req: CommentsControllerListByTicketFromHttpData;
1357
+ res: {
1358
+ /**
1359
+ * List of comments
1360
+ */
1361
+ 200: unknown;
1362
+ /**
1363
+ * Project or ticket not found
1364
+ */
1365
+ 404: unknown;
1366
+ };
1367
+ };
1368
+ };
1369
+ '/api/comments/{id}': {
1370
+ patch: {
1371
+ req: CommentsControllerUpdateFromHttpData;
1372
+ res: {
1373
+ /**
1374
+ * Comment updated
1375
+ */
1376
+ 200: unknown;
1377
+ /**
1378
+ * Not authorized to edit this comment
1379
+ */
1380
+ 403: unknown;
1381
+ /**
1382
+ * Comment not found
1383
+ */
1384
+ 404: unknown;
1385
+ };
1386
+ };
1387
+ delete: {
1388
+ req: CommentsControllerDeleteFromHttpData;
1389
+ res: {
1390
+ /**
1391
+ * Comment deleted
1392
+ */
1393
+ 200: unknown;
1394
+ /**
1395
+ * Not authorized to delete this comment
1396
+ */
1397
+ 403: unknown;
1398
+ /**
1399
+ * Comment not found
1400
+ */
1401
+ 404: unknown;
1402
+ };
1403
+ };
1404
+ };
1405
+ '/api/projects/{slug}/labels': {
1406
+ post: {
1407
+ req: LabelsControllerCreateFromHttpData;
1408
+ res: {
1409
+ /**
1410
+ * Label created
1411
+ */
1412
+ 201: unknown;
1413
+ /**
1414
+ * Invalid request data
1415
+ */
1416
+ 400: unknown;
1417
+ /**
1418
+ * Unauthorized - admin only
1419
+ */
1420
+ 403: unknown;
1421
+ /**
1422
+ * Project not found
1423
+ */
1424
+ 404: unknown;
1425
+ };
1426
+ };
1427
+ get: {
1428
+ req: LabelsControllerFindByProjectFromHttpData;
1429
+ res: {
1430
+ /**
1431
+ * List of labels
1432
+ */
1433
+ 200: unknown;
1434
+ /**
1435
+ * Project not found
1436
+ */
1437
+ 404: unknown;
1438
+ };
1439
+ };
1440
+ };
1441
+ '/api/projects/{slug}/labels/{id}': {
1442
+ patch: {
1443
+ req: LabelsControllerUpdateFromHttpData;
1444
+ res: {
1445
+ /**
1446
+ * Label updated
1447
+ */
1448
+ 200: unknown;
1449
+ /**
1450
+ * Invalid request data
1451
+ */
1452
+ 400: unknown;
1453
+ /**
1454
+ * Unauthorized - admin only
1455
+ */
1456
+ 403: unknown;
1457
+ /**
1458
+ * Label or project not found
1459
+ */
1460
+ 404: unknown;
1461
+ };
1462
+ };
1463
+ delete: {
1464
+ req: LabelsControllerDeleteFromHttpData;
1465
+ res: {
1466
+ /**
1467
+ * Label deleted
1468
+ */
1469
+ 204: void;
1470
+ /**
1471
+ * Unauthorized - admin only
1472
+ */
1473
+ 403: unknown;
1474
+ /**
1475
+ * Label or project not found
1476
+ */
1477
+ 404: unknown;
1478
+ };
1479
+ };
1480
+ };
1481
+ '/api/projects/{slug}/tickets/{ref}/labels': {
1482
+ post: {
1483
+ req: LabelsControllerAssignLabelFromHttpData;
1484
+ res: {
1485
+ /**
1486
+ * Label assigned to ticket
1487
+ */
1488
+ 201: unknown;
1489
+ /**
1490
+ * Invalid request data or label already assigned
1491
+ */
1492
+ 400: unknown;
1493
+ /**
1494
+ * Ticket or label not found
1495
+ */
1496
+ 404: unknown;
1497
+ };
1498
+ };
1499
+ };
1500
+ '/api/projects/{slug}/tickets/{ref}/labels/{labelId}': {
1501
+ delete: {
1502
+ req: LabelsControllerRemoveLabelFromHttpData;
1503
+ res: {
1504
+ /**
1505
+ * Label removed from ticket
1506
+ */
1507
+ 204: void;
1508
+ /**
1509
+ * Ticket or label assignment not found
1510
+ */
1511
+ 404: unknown;
1512
+ };
1513
+ };
1514
+ };
1515
+ '/api/projects/{slug}/tickets/{ref}/links': {
1516
+ post: {
1517
+ req: TicketLinksControllerCreateData;
1518
+ res: {
1519
+ 200: TicketLinkResponseDto;
1520
+ /**
1521
+ * Invalid URL
1522
+ */
1523
+ 400: unknown;
1524
+ /**
1525
+ * Ticket not found
1526
+ */
1527
+ 404: unknown;
1528
+ };
1529
+ };
1530
+ get: {
1531
+ req: TicketLinksControllerFindAllData;
1532
+ res: {
1533
+ 200: Array<TicketLinkResponseDto>;
1534
+ /**
1535
+ * Ticket not found
1536
+ */
1537
+ 404: unknown;
1538
+ };
1539
+ };
1540
+ };
1541
+ '/api/projects/{slug}/tickets/{ref}/links/{linkId}': {
1542
+ delete: {
1543
+ req: TicketLinksControllerRemoveData;
1544
+ res: {
1545
+ /**
1546
+ * Link deleted
1547
+ */
1548
+ 204: void;
1549
+ /**
1550
+ * Link not found
1551
+ */
1552
+ 404: unknown;
1553
+ };
1554
+ };
1555
+ };
1556
+ '/api/health': {
1557
+ get: {
1558
+ res: {
1559
+ /**
1560
+ * Service is healthy
1561
+ */
1562
+ 200: unknown;
1563
+ };
1564
+ };
1565
+ };
1566
+ '/api/projects/{slug}/ci-webhook': {
1567
+ post: {
1568
+ req: CiWebhookControllerHandleCiWebhookData;
1569
+ res: {
1570
+ /**
1571
+ * Webhook processed
1572
+ */
1573
+ 200: CiWebhookResponseDto;
1574
+ /**
1575
+ * Invalid request data
1576
+ */
1577
+ 400: unknown;
1578
+ /**
1579
+ * Project not found
1580
+ */
1581
+ 404: unknown;
1582
+ };
1583
+ };
1584
+ };
1585
+ };
1586
+ //# sourceMappingURL=types.gen.d.ts.map