@komputer-ai/sdk 0.11.1 → 0.11.3

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 (211) hide show
  1. package/.openapi-generator/FILES +69 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/README.md +147 -122
  4. package/dist/apis/AgentsApi.d.ts +173 -0
  5. package/dist/apis/AgentsApi.js +383 -0
  6. package/dist/apis/ConnectorsApi.d.ts +118 -0
  7. package/dist/apis/ConnectorsApi.js +247 -0
  8. package/dist/apis/MemoriesApi.d.ts +115 -0
  9. package/dist/apis/MemoriesApi.js +252 -0
  10. package/dist/apis/OfficesApi.d.ts +98 -0
  11. package/dist/apis/OfficesApi.js +208 -0
  12. package/dist/apis/SchedulesApi.d.ts +111 -0
  13. package/dist/apis/SchedulesApi.js +252 -0
  14. package/dist/apis/SecretsApi.d.ts +98 -0
  15. package/dist/apis/SecretsApi.js +211 -0
  16. package/dist/apis/SkillsApi.d.ts +115 -0
  17. package/dist/apis/SkillsApi.js +252 -0
  18. package/dist/apis/TemplatesApi.d.ts +56 -0
  19. package/dist/apis/TemplatesApi.js +109 -0
  20. package/dist/apis/index.d.ts +8 -0
  21. package/dist/apis/index.js +26 -0
  22. package/dist/client.d.ts +175 -0
  23. package/dist/client.js +293 -0
  24. package/dist/esm/apis/AgentsApi.d.ts +173 -0
  25. package/dist/esm/apis/AgentsApi.js +379 -0
  26. package/dist/esm/apis/ConnectorsApi.d.ts +118 -0
  27. package/dist/esm/apis/ConnectorsApi.js +243 -0
  28. package/dist/esm/apis/MemoriesApi.d.ts +115 -0
  29. package/dist/esm/apis/MemoriesApi.js +248 -0
  30. package/dist/esm/apis/OfficesApi.d.ts +98 -0
  31. package/dist/esm/apis/OfficesApi.js +204 -0
  32. package/dist/esm/apis/SchedulesApi.d.ts +111 -0
  33. package/dist/esm/apis/SchedulesApi.js +248 -0
  34. package/dist/esm/apis/SecretsApi.d.ts +98 -0
  35. package/dist/esm/apis/SecretsApi.js +207 -0
  36. package/dist/esm/apis/SkillsApi.d.ts +115 -0
  37. package/dist/esm/apis/SkillsApi.js +248 -0
  38. package/dist/esm/apis/TemplatesApi.d.ts +56 -0
  39. package/dist/esm/apis/TemplatesApi.js +105 -0
  40. package/dist/esm/apis/index.d.ts +8 -0
  41. package/dist/esm/client.d.ts +175 -0
  42. package/dist/esm/client.js +289 -0
  43. package/{src/index.ts → dist/esm/index.d.ts} +0 -2
  44. package/dist/esm/index.js +6 -0
  45. package/dist/esm/models/AgentListResponse.d.ts +33 -0
  46. package/dist/esm/models/AgentListResponse.js +42 -0
  47. package/dist/esm/models/AgentResponse.d.ts +134 -0
  48. package/dist/esm/models/AgentResponse.js +75 -0
  49. package/dist/esm/models/ConnectorResponse.d.ts +104 -0
  50. package/{src/models/ConnectorResponse.ts → dist/esm/models/ConnectorResponse.js} +6 -102
  51. package/dist/esm/models/CreateAgentRequest.d.ts +104 -0
  52. package/dist/esm/models/CreateAgentRequest.js +69 -0
  53. package/dist/esm/models/CreateConnectorRequest.d.ts +92 -0
  54. package/{src/models/CreateConnectorRequest.ts → dist/esm/models/CreateConnectorRequest.js} +12 -93
  55. package/dist/esm/models/CreateMemoryRequest.d.ts +50 -0
  56. package/{src/models/CreateMemoryRequest.ts → dist/esm/models/CreateMemoryRequest.js} +10 -50
  57. package/dist/esm/models/CreateScheduleAgentSpec.d.ts +56 -0
  58. package/{src/models/CreateScheduleAgentSpec.ts → dist/esm/models/CreateScheduleAgentSpec.js} +6 -54
  59. package/dist/esm/models/CreateScheduleRequest.d.ts +81 -0
  60. package/dist/esm/models/CreateScheduleRequest.js +64 -0
  61. package/dist/esm/models/CreateSecretRequest.d.ts +46 -0
  62. package/dist/esm/models/CreateSecretRequest.js +49 -0
  63. package/dist/esm/models/CreateSkillRequest.d.ts +50 -0
  64. package/dist/esm/models/CreateSkillRequest.js +53 -0
  65. package/dist/esm/models/MemoryResponse.d.ts +68 -0
  66. package/dist/esm/models/MemoryResponse.js +53 -0
  67. package/dist/esm/models/OfficeListResponse.d.ts +33 -0
  68. package/dist/esm/models/OfficeListResponse.js +42 -0
  69. package/dist/esm/models/OfficeMemberResponse.d.ts +50 -0
  70. package/dist/esm/models/OfficeMemberResponse.js +47 -0
  71. package/dist/esm/models/OfficeResponse.d.ts +93 -0
  72. package/dist/esm/models/OfficeResponse.js +62 -0
  73. package/dist/esm/models/PatchAgentRequest.d.ts +80 -0
  74. package/{src/models/PatchAgentRequest.ts → dist/esm/models/PatchAgentRequest.js} +6 -78
  75. package/dist/esm/models/PatchMemoryRequest.d.ts +38 -0
  76. package/dist/esm/models/PatchMemoryRequest.js +43 -0
  77. package/dist/esm/models/PatchScheduleRequest.d.ts +32 -0
  78. package/dist/esm/models/PatchScheduleRequest.js +41 -0
  79. package/dist/esm/models/PatchSkillRequest.d.ts +38 -0
  80. package/{src/models/PatchSkillRequest.ts → dist/esm/models/PatchSkillRequest.js} +6 -36
  81. package/dist/esm/models/ScheduleListResponse.d.ts +33 -0
  82. package/dist/esm/models/ScheduleListResponse.js +42 -0
  83. package/dist/esm/models/ScheduleResponse.d.ts +140 -0
  84. package/dist/esm/models/ScheduleResponse.js +77 -0
  85. package/dist/esm/models/SecretListResponse.d.ts +33 -0
  86. package/dist/esm/models/SecretListResponse.js +42 -0
  87. package/dist/esm/models/SecretResponse.d.ts +74 -0
  88. package/dist/esm/models/SecretResponse.js +55 -0
  89. package/dist/esm/models/SkillResponse.d.ts +74 -0
  90. package/dist/esm/models/SkillResponse.js +55 -0
  91. package/dist/esm/models/UpdateSecretRequest.d.ts +40 -0
  92. package/{src/models/UpdateSecretRequest.ts → dist/esm/models/UpdateSecretRequest.js} +8 -37
  93. package/dist/esm/models/index.d.ts +24 -0
  94. package/dist/esm/runtime.d.ts +184 -0
  95. package/dist/esm/runtime.js +349 -0
  96. package/dist/esm/watch.d.ts +32 -0
  97. package/dist/esm/watch.js +96 -0
  98. package/dist/index.d.ts +5 -0
  99. package/dist/index.js +24 -0
  100. package/dist/models/AgentListResponse.d.ts +33 -0
  101. package/dist/models/AgentListResponse.js +49 -0
  102. package/dist/models/AgentResponse.d.ts +134 -0
  103. package/{src/models/AgentResponse.ts → dist/models/AgentResponse.js} +13 -132
  104. package/dist/models/ConnectorResponse.d.ts +104 -0
  105. package/dist/models/ConnectorResponse.js +72 -0
  106. package/dist/models/CreateAgentRequest.d.ts +104 -0
  107. package/dist/models/CreateAgentRequest.js +76 -0
  108. package/dist/models/CreateConnectorRequest.d.ts +92 -0
  109. package/dist/models/CreateConnectorRequest.js +74 -0
  110. package/dist/models/CreateMemoryRequest.d.ts +50 -0
  111. package/dist/models/CreateMemoryRequest.js +58 -0
  112. package/dist/models/CreateScheduleAgentSpec.d.ts +56 -0
  113. package/dist/models/CreateScheduleAgentSpec.js +56 -0
  114. package/dist/models/CreateScheduleRequest.d.ts +81 -0
  115. package/dist/models/CreateScheduleRequest.js +71 -0
  116. package/dist/models/CreateSecretRequest.d.ts +46 -0
  117. package/dist/models/CreateSecretRequest.js +56 -0
  118. package/dist/models/CreateSkillRequest.d.ts +50 -0
  119. package/{src/models/CreateSkillRequest.ts → dist/models/CreateSkillRequest.js} +19 -51
  120. package/dist/models/MemoryResponse.d.ts +68 -0
  121. package/{src/models/MemoryResponse.ts → dist/models/MemoryResponse.js} +13 -66
  122. package/dist/models/OfficeListResponse.d.ts +33 -0
  123. package/dist/models/OfficeListResponse.js +49 -0
  124. package/dist/models/OfficeMemberResponse.d.ts +50 -0
  125. package/{src/models/OfficeMemberResponse.ts → dist/models/OfficeMemberResponse.js} +13 -48
  126. package/dist/models/OfficeResponse.d.ts +93 -0
  127. package/dist/models/OfficeResponse.js +69 -0
  128. package/dist/models/PatchAgentRequest.d.ts +80 -0
  129. package/dist/models/PatchAgentRequest.js +64 -0
  130. package/dist/models/PatchMemoryRequest.d.ts +38 -0
  131. package/{src/models/PatchMemoryRequest.ts → dist/models/PatchMemoryRequest.js} +13 -36
  132. package/dist/models/PatchScheduleRequest.d.ts +32 -0
  133. package/{src/models/PatchScheduleRequest.ts → dist/models/PatchScheduleRequest.js} +13 -30
  134. package/dist/models/PatchSkillRequest.d.ts +38 -0
  135. package/dist/models/PatchSkillRequest.js +50 -0
  136. package/dist/models/ScheduleListResponse.d.ts +33 -0
  137. package/dist/models/ScheduleListResponse.js +49 -0
  138. package/dist/models/ScheduleResponse.d.ts +140 -0
  139. package/{src/models/ScheduleResponse.ts → dist/models/ScheduleResponse.js} +13 -138
  140. package/dist/models/SecretListResponse.d.ts +33 -0
  141. package/dist/models/SecretListResponse.js +49 -0
  142. package/dist/models/SecretResponse.d.ts +74 -0
  143. package/{src/models/SecretResponse.ts → dist/models/SecretResponse.js} +13 -72
  144. package/dist/models/SkillResponse.d.ts +74 -0
  145. package/{src/models/SkillResponse.ts → dist/models/SkillResponse.js} +13 -72
  146. package/dist/models/UpdateSecretRequest.d.ts +40 -0
  147. package/dist/models/UpdateSecretRequest.js +52 -0
  148. package/dist/models/index.d.ts +24 -0
  149. package/dist/models/index.js +42 -0
  150. package/dist/runtime.d.ts +184 -0
  151. package/dist/runtime.js +365 -0
  152. package/dist/watch.d.ts +32 -0
  153. package/dist/watch.js +100 -0
  154. package/package.json +6 -3
  155. package/.openapi-generator-ignore +0 -31
  156. package/docs/AgentListResponse.md +0 -34
  157. package/docs/AgentResponse.md +0 -68
  158. package/docs/AgentsApi.md +0 -584
  159. package/docs/ConnectorResponse.md +0 -58
  160. package/docs/ConnectorsApi.md +0 -366
  161. package/docs/CreateAgentRequest.md +0 -58
  162. package/docs/CreateConnectorRequest.md +0 -54
  163. package/docs/CreateMemoryRequest.md +0 -40
  164. package/docs/CreateScheduleAgentSpec.md +0 -42
  165. package/docs/CreateScheduleRequest.md +0 -50
  166. package/docs/CreateSecretRequest.md +0 -38
  167. package/docs/CreateSkillRequest.md +0 -40
  168. package/docs/MemoriesApi.md +0 -368
  169. package/docs/MemoryResponse.md +0 -46
  170. package/docs/OfficeListResponse.md +0 -34
  171. package/docs/OfficeMemberResponse.md +0 -40
  172. package/docs/OfficeResponse.md +0 -54
  173. package/docs/OfficesApi.md +0 -300
  174. package/docs/PatchAgentRequest.md +0 -50
  175. package/docs/PatchMemoryRequest.md +0 -36
  176. package/docs/PatchScheduleRequest.md +0 -34
  177. package/docs/PatchSkillRequest.md +0 -36
  178. package/docs/ScheduleListResponse.md +0 -34
  179. package/docs/ScheduleResponse.md +0 -70
  180. package/docs/SchedulesApi.md +0 -369
  181. package/docs/SecretListResponse.md +0 -34
  182. package/docs/SecretResponse.md +0 -48
  183. package/docs/SecretsApi.md +0 -298
  184. package/docs/SkillResponse.md +0 -48
  185. package/docs/SkillsApi.md +0 -368
  186. package/docs/TemplatesApi.md +0 -138
  187. package/docs/UpdateSecretRequest.md +0 -36
  188. package/src/apis/AgentsApi.ts +0 -485
  189. package/src/apis/ConnectorsApi.ts +0 -301
  190. package/src/apis/MemoriesApi.ts +0 -315
  191. package/src/apis/OfficesApi.ts +0 -253
  192. package/src/apis/SchedulesApi.ts +0 -318
  193. package/src/apis/SecretsApi.ts +0 -267
  194. package/src/apis/SkillsApi.ts +0 -315
  195. package/src/apis/TemplatesApi.ts +0 -109
  196. package/src/client.test.ts +0 -88
  197. package/src/client.ts +0 -212
  198. package/src/models/AgentListResponse.ts +0 -73
  199. package/src/models/CreateAgentRequest.ts +0 -163
  200. package/src/models/CreateScheduleRequest.ts +0 -140
  201. package/src/models/CreateSecretRequest.ts +0 -83
  202. package/src/models/OfficeListResponse.ts +0 -73
  203. package/src/models/OfficeResponse.ts +0 -153
  204. package/src/models/ScheduleListResponse.ts +0 -73
  205. package/src/models/SecretListResponse.ts +0 -73
  206. package/src/runtime.ts +0 -450
  207. package/src/watch.ts +0 -89
  208. package/tsconfig.esm.json +0 -7
  209. package/tsconfig.json +0 -18
  210. /package/{src/apis/index.ts → dist/esm/apis/index.js} +0 -0
  211. /package/{src/models/index.ts → dist/esm/models/index.js} +0 -0
@@ -0,0 +1,383 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * komputer.ai API
6
+ * API-first platform for running persistent Claude AI agents on Kubernetes. Designed to be driven by external systems — create agents, send tasks, and stream real-time results via REST + WebSocket.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.AgentsApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const index_1 = require("../models/index");
28
+ /**
29
+ *
30
+ */
31
+ class AgentsApi extends runtime.BaseAPI {
32
+ /**
33
+ * Creates request options for agentsNameWsGet without sending the request
34
+ */
35
+ agentsNameWsGetRequestOpts(requestParameters) {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ if (requestParameters['name'] == null) {
38
+ throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling agentsNameWsGet().');
39
+ }
40
+ const queryParameters = {};
41
+ const headerParameters = {};
42
+ let urlPath = `/agents/{name}/ws`;
43
+ urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name'])));
44
+ return {
45
+ path: urlPath,
46
+ method: 'GET',
47
+ headers: headerParameters,
48
+ query: queryParameters,
49
+ };
50
+ });
51
+ }
52
+ /**
53
+ * Upgrades to a WebSocket connection to stream real-time agent events. Events include task_started, thinking, tool_call, tool_result, text, task_completed, task_cancelled, and error.
54
+ * Stream agent events (WebSocket)
55
+ */
56
+ agentsNameWsGetRaw(requestParameters, initOverrides) {
57
+ return __awaiter(this, void 0, void 0, function* () {
58
+ const requestOptions = yield this.agentsNameWsGetRequestOpts(requestParameters);
59
+ const response = yield this.request(requestOptions, initOverrides);
60
+ return new runtime.VoidApiResponse(response);
61
+ });
62
+ }
63
+ /**
64
+ * Upgrades to a WebSocket connection to stream real-time agent events. Events include task_started, thinking, tool_call, tool_result, text, task_completed, task_cancelled, and error.
65
+ * Stream agent events (WebSocket)
66
+ */
67
+ agentsNameWsGet(requestParameters, initOverrides) {
68
+ return __awaiter(this, void 0, void 0, function* () {
69
+ yield this.agentsNameWsGetRaw(requestParameters, initOverrides);
70
+ });
71
+ }
72
+ /**
73
+ * Creates request options for cancelAgentTask without sending the request
74
+ */
75
+ cancelAgentTaskRequestOpts(requestParameters) {
76
+ return __awaiter(this, void 0, void 0, function* () {
77
+ if (requestParameters['name'] == null) {
78
+ throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling cancelAgentTask().');
79
+ }
80
+ const queryParameters = {};
81
+ if (requestParameters['namespace'] != null) {
82
+ queryParameters['namespace'] = requestParameters['namespace'];
83
+ }
84
+ const headerParameters = {};
85
+ let urlPath = `/agents/{name}/cancel`;
86
+ urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name'])));
87
+ return {
88
+ path: urlPath,
89
+ method: 'POST',
90
+ headers: headerParameters,
91
+ query: queryParameters,
92
+ };
93
+ });
94
+ }
95
+ /**
96
+ * Gracefully cancels the currently running task. The agent pod stays alive for future tasks.
97
+ * Cancel agent task
98
+ */
99
+ cancelAgentTaskRaw(requestParameters, initOverrides) {
100
+ return __awaiter(this, void 0, void 0, function* () {
101
+ const requestOptions = yield this.cancelAgentTaskRequestOpts(requestParameters);
102
+ const response = yield this.request(requestOptions, initOverrides);
103
+ return new runtime.JSONApiResponse(response);
104
+ });
105
+ }
106
+ /**
107
+ * Gracefully cancels the currently running task. The agent pod stays alive for future tasks.
108
+ * Cancel agent task
109
+ */
110
+ cancelAgentTask(requestParameters, initOverrides) {
111
+ return __awaiter(this, void 0, void 0, function* () {
112
+ const response = yield this.cancelAgentTaskRaw(requestParameters, initOverrides);
113
+ return yield response.value();
114
+ });
115
+ }
116
+ /**
117
+ * Creates request options for createAgent without sending the request
118
+ */
119
+ createAgentRequestOpts(requestParameters) {
120
+ return __awaiter(this, void 0, void 0, function* () {
121
+ if (requestParameters['request'] == null) {
122
+ throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling createAgent().');
123
+ }
124
+ const queryParameters = {};
125
+ const headerParameters = {};
126
+ headerParameters['Content-Type'] = 'application/json';
127
+ let urlPath = `/agents`;
128
+ return {
129
+ path: urlPath,
130
+ method: 'POST',
131
+ headers: headerParameters,
132
+ query: queryParameters,
133
+ body: (0, index_1.CreateAgentRequestToJSON)(requestParameters['request']),
134
+ };
135
+ });
136
+ }
137
+ /**
138
+ * Creates a new agent or sends a task to an existing idle agent (upsert by name). If the agent doesn\'t exist, it is created. If it exists and is idle, the task is forwarded.
139
+ * Create agent or send task
140
+ */
141
+ createAgentRaw(requestParameters, initOverrides) {
142
+ return __awaiter(this, void 0, void 0, function* () {
143
+ const requestOptions = yield this.createAgentRequestOpts(requestParameters);
144
+ const response = yield this.request(requestOptions, initOverrides);
145
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AgentResponseFromJSON)(jsonValue));
146
+ });
147
+ }
148
+ /**
149
+ * Creates a new agent or sends a task to an existing idle agent (upsert by name). If the agent doesn\'t exist, it is created. If it exists and is idle, the task is forwarded.
150
+ * Create agent or send task
151
+ */
152
+ createAgent(requestParameters, initOverrides) {
153
+ return __awaiter(this, void 0, void 0, function* () {
154
+ const response = yield this.createAgentRaw(requestParameters, initOverrides);
155
+ return yield response.value();
156
+ });
157
+ }
158
+ /**
159
+ * Creates request options for deleteAgent without sending the request
160
+ */
161
+ deleteAgentRequestOpts(requestParameters) {
162
+ return __awaiter(this, void 0, void 0, function* () {
163
+ if (requestParameters['name'] == null) {
164
+ throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling deleteAgent().');
165
+ }
166
+ const queryParameters = {};
167
+ if (requestParameters['namespace'] != null) {
168
+ queryParameters['namespace'] = requestParameters['namespace'];
169
+ }
170
+ const headerParameters = {};
171
+ let urlPath = `/agents/{name}`;
172
+ urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name'])));
173
+ return {
174
+ path: urlPath,
175
+ method: 'DELETE',
176
+ headers: headerParameters,
177
+ query: queryParameters,
178
+ };
179
+ });
180
+ }
181
+ /**
182
+ * Deletes the agent CR, pod, PVC, secrets, and Redis event stream.
183
+ * Delete agent
184
+ */
185
+ deleteAgentRaw(requestParameters, initOverrides) {
186
+ return __awaiter(this, void 0, void 0, function* () {
187
+ const requestOptions = yield this.deleteAgentRequestOpts(requestParameters);
188
+ const response = yield this.request(requestOptions, initOverrides);
189
+ return new runtime.JSONApiResponse(response);
190
+ });
191
+ }
192
+ /**
193
+ * Deletes the agent CR, pod, PVC, secrets, and Redis event stream.
194
+ * Delete agent
195
+ */
196
+ deleteAgent(requestParameters, initOverrides) {
197
+ return __awaiter(this, void 0, void 0, function* () {
198
+ const response = yield this.deleteAgentRaw(requestParameters, initOverrides);
199
+ return yield response.value();
200
+ });
201
+ }
202
+ /**
203
+ * Creates request options for getAgent without sending the request
204
+ */
205
+ getAgentRequestOpts(requestParameters) {
206
+ return __awaiter(this, void 0, void 0, function* () {
207
+ if (requestParameters['name'] == null) {
208
+ throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling getAgent().');
209
+ }
210
+ const queryParameters = {};
211
+ if (requestParameters['namespace'] != null) {
212
+ queryParameters['namespace'] = requestParameters['namespace'];
213
+ }
214
+ const headerParameters = {};
215
+ let urlPath = `/agents/{name}`;
216
+ urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name'])));
217
+ return {
218
+ path: urlPath,
219
+ method: 'GET',
220
+ headers: headerParameters,
221
+ query: queryParameters,
222
+ };
223
+ });
224
+ }
225
+ /**
226
+ * Returns the current status and metadata for a single agent.
227
+ * Get agent details
228
+ */
229
+ getAgentRaw(requestParameters, initOverrides) {
230
+ return __awaiter(this, void 0, void 0, function* () {
231
+ const requestOptions = yield this.getAgentRequestOpts(requestParameters);
232
+ const response = yield this.request(requestOptions, initOverrides);
233
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AgentResponseFromJSON)(jsonValue));
234
+ });
235
+ }
236
+ /**
237
+ * Returns the current status and metadata for a single agent.
238
+ * Get agent details
239
+ */
240
+ getAgent(requestParameters, initOverrides) {
241
+ return __awaiter(this, void 0, void 0, function* () {
242
+ const response = yield this.getAgentRaw(requestParameters, initOverrides);
243
+ return yield response.value();
244
+ });
245
+ }
246
+ /**
247
+ * Creates request options for getAgentEvents without sending the request
248
+ */
249
+ getAgentEventsRequestOpts(requestParameters) {
250
+ return __awaiter(this, void 0, void 0, function* () {
251
+ if (requestParameters['name'] == null) {
252
+ throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling getAgentEvents().');
253
+ }
254
+ const queryParameters = {};
255
+ if (requestParameters['namespace'] != null) {
256
+ queryParameters['namespace'] = requestParameters['namespace'];
257
+ }
258
+ if (requestParameters['limit'] != null) {
259
+ queryParameters['limit'] = requestParameters['limit'];
260
+ }
261
+ const headerParameters = {};
262
+ let urlPath = `/agents/{name}/events`;
263
+ urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name'])));
264
+ return {
265
+ path: urlPath,
266
+ method: 'GET',
267
+ headers: headerParameters,
268
+ query: queryParameters,
269
+ };
270
+ });
271
+ }
272
+ /**
273
+ * Returns recent events from the agent\'s Redis stream in chronological order.
274
+ * Get agent events
275
+ */
276
+ getAgentEventsRaw(requestParameters, initOverrides) {
277
+ return __awaiter(this, void 0, void 0, function* () {
278
+ const requestOptions = yield this.getAgentEventsRequestOpts(requestParameters);
279
+ const response = yield this.request(requestOptions, initOverrides);
280
+ return new runtime.JSONApiResponse(response);
281
+ });
282
+ }
283
+ /**
284
+ * Returns recent events from the agent\'s Redis stream in chronological order.
285
+ * Get agent events
286
+ */
287
+ getAgentEvents(requestParameters, initOverrides) {
288
+ return __awaiter(this, void 0, void 0, function* () {
289
+ const response = yield this.getAgentEventsRaw(requestParameters, initOverrides);
290
+ return yield response.value();
291
+ });
292
+ }
293
+ /**
294
+ * Creates request options for listAgents without sending the request
295
+ */
296
+ listAgentsRequestOpts(requestParameters) {
297
+ return __awaiter(this, void 0, void 0, function* () {
298
+ const queryParameters = {};
299
+ if (requestParameters['namespace'] != null) {
300
+ queryParameters['namespace'] = requestParameters['namespace'];
301
+ }
302
+ const headerParameters = {};
303
+ let urlPath = `/agents`;
304
+ return {
305
+ path: urlPath,
306
+ method: 'GET',
307
+ headers: headerParameters,
308
+ query: queryParameters,
309
+ };
310
+ });
311
+ }
312
+ /**
313
+ * Returns all agents with their current status in the specified namespace.
314
+ * List agents
315
+ */
316
+ listAgentsRaw(requestParameters, initOverrides) {
317
+ return __awaiter(this, void 0, void 0, function* () {
318
+ const requestOptions = yield this.listAgentsRequestOpts(requestParameters);
319
+ const response = yield this.request(requestOptions, initOverrides);
320
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AgentListResponseFromJSON)(jsonValue));
321
+ });
322
+ }
323
+ /**
324
+ * Returns all agents with their current status in the specified namespace.
325
+ * List agents
326
+ */
327
+ listAgents() {
328
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
329
+ const response = yield this.listAgentsRaw(requestParameters, initOverrides);
330
+ return yield response.value();
331
+ });
332
+ }
333
+ /**
334
+ * Creates request options for patchAgent without sending the request
335
+ */
336
+ patchAgentRequestOpts(requestParameters) {
337
+ return __awaiter(this, void 0, void 0, function* () {
338
+ if (requestParameters['name'] == null) {
339
+ throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling patchAgent().');
340
+ }
341
+ if (requestParameters['request'] == null) {
342
+ throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling patchAgent().');
343
+ }
344
+ const queryParameters = {};
345
+ if (requestParameters['namespace'] != null) {
346
+ queryParameters['namespace'] = requestParameters['namespace'];
347
+ }
348
+ const headerParameters = {};
349
+ headerParameters['Content-Type'] = 'application/json';
350
+ let urlPath = `/agents/{name}`;
351
+ urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name'])));
352
+ return {
353
+ path: urlPath,
354
+ method: 'PATCH',
355
+ headers: headerParameters,
356
+ query: queryParameters,
357
+ body: (0, index_1.PatchAgentRequestToJSON)(requestParameters['request']),
358
+ };
359
+ });
360
+ }
361
+ /**
362
+ * Updates model, lifecycle, instructions, secretRefs, memories, skills, or connectors on an existing agent.
363
+ * Patch agent
364
+ */
365
+ patchAgentRaw(requestParameters, initOverrides) {
366
+ return __awaiter(this, void 0, void 0, function* () {
367
+ const requestOptions = yield this.patchAgentRequestOpts(requestParameters);
368
+ const response = yield this.request(requestOptions, initOverrides);
369
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AgentResponseFromJSON)(jsonValue));
370
+ });
371
+ }
372
+ /**
373
+ * Updates model, lifecycle, instructions, secretRefs, memories, skills, or connectors on an existing agent.
374
+ * Patch agent
375
+ */
376
+ patchAgent(requestParameters, initOverrides) {
377
+ return __awaiter(this, void 0, void 0, function* () {
378
+ const response = yield this.patchAgentRaw(requestParameters, initOverrides);
379
+ return yield response.value();
380
+ });
381
+ }
382
+ }
383
+ exports.AgentsApi = AgentsApi;
@@ -0,0 +1,118 @@
1
+ /**
2
+ * komputer.ai API
3
+ * API-first platform for running persistent Claude AI agents on Kubernetes. Designed to be driven by external systems — create agents, send tasks, and stream real-time results via REST + WebSocket.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { ConnectorResponse, CreateConnectorRequest } from '../models/index';
14
+ export interface CreateConnectorOperationRequest {
15
+ request: CreateConnectorRequest;
16
+ }
17
+ export interface DeleteConnectorRequest {
18
+ name: string;
19
+ namespace?: string;
20
+ }
21
+ export interface GetConnectorRequest {
22
+ name: string;
23
+ namespace?: string;
24
+ }
25
+ export interface ListConnectorToolsRequest {
26
+ name: string;
27
+ namespace?: string;
28
+ }
29
+ export interface ListConnectorsRequest {
30
+ namespace?: string;
31
+ }
32
+ /**
33
+ *
34
+ */
35
+ export declare class ConnectorsApi extends runtime.BaseAPI {
36
+ /**
37
+ * Creates request options for createConnector without sending the request
38
+ */
39
+ createConnectorRequestOpts(requestParameters: CreateConnectorOperationRequest): Promise<runtime.RequestOpts>;
40
+ /**
41
+ * Creates a new KomputerConnector CR pointing to an MCP server that can be attached to agents.
42
+ * Create connector
43
+ */
44
+ createConnectorRaw(requestParameters: CreateConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConnectorResponse>>;
45
+ /**
46
+ * Creates a new KomputerConnector CR pointing to an MCP server that can be attached to agents.
47
+ * Create connector
48
+ */
49
+ createConnector(requestParameters: CreateConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConnectorResponse>;
50
+ /**
51
+ * Creates request options for deleteConnector without sending the request
52
+ */
53
+ deleteConnectorRequestOpts(requestParameters: DeleteConnectorRequest): Promise<runtime.RequestOpts>;
54
+ /**
55
+ * Deletes the connector CR.
56
+ * Delete connector
57
+ */
58
+ deleteConnectorRaw(requestParameters: DeleteConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
59
+ [key: string]: string;
60
+ }>>;
61
+ /**
62
+ * Deletes the connector CR.
63
+ * Delete connector
64
+ */
65
+ deleteConnector(requestParameters: DeleteConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
66
+ [key: string]: string;
67
+ }>;
68
+ /**
69
+ * Creates request options for getConnector without sending the request
70
+ */
71
+ getConnectorRequestOpts(requestParameters: GetConnectorRequest): Promise<runtime.RequestOpts>;
72
+ /**
73
+ * Returns the URL, service, type, and auth config for a single connector.
74
+ * Get connector details
75
+ */
76
+ getConnectorRaw(requestParameters: GetConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConnectorResponse>>;
77
+ /**
78
+ * Returns the URL, service, type, and auth config for a single connector.
79
+ * Get connector details
80
+ */
81
+ getConnector(requestParameters: GetConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConnectorResponse>;
82
+ /**
83
+ * Creates request options for listConnectorTools without sending the request
84
+ */
85
+ listConnectorToolsRequestOpts(requestParameters: ListConnectorToolsRequest): Promise<runtime.RequestOpts>;
86
+ /**
87
+ * Calls the MCP server\'s tools/list endpoint and returns the available tools.
88
+ * List connector tools
89
+ */
90
+ listConnectorToolsRaw(requestParameters: ListConnectorToolsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
91
+ [key: string]: any;
92
+ }>>;
93
+ /**
94
+ * Calls the MCP server\'s tools/list endpoint and returns the available tools.
95
+ * List connector tools
96
+ */
97
+ listConnectorTools(requestParameters: ListConnectorToolsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
98
+ [key: string]: any;
99
+ }>;
100
+ /**
101
+ * Creates request options for listConnectors without sending the request
102
+ */
103
+ listConnectorsRequestOpts(requestParameters: ListConnectorsRequest): Promise<runtime.RequestOpts>;
104
+ /**
105
+ * Returns all connectors with attached agent counts in the specified namespace.
106
+ * List connectors
107
+ */
108
+ listConnectorsRaw(requestParameters: ListConnectorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
109
+ [key: string]: any;
110
+ }>>;
111
+ /**
112
+ * Returns all connectors with attached agent counts in the specified namespace.
113
+ * List connectors
114
+ */
115
+ listConnectors(requestParameters?: ListConnectorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
116
+ [key: string]: any;
117
+ }>;
118
+ }