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