@komputer-ai/sdk 0.11.1 → 0.11.2

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 (208) hide show
  1. package/dist/apis/AgentsApi.d.ts +173 -0
  2. package/dist/apis/AgentsApi.js +383 -0
  3. package/dist/apis/ConnectorsApi.d.ts +118 -0
  4. package/dist/apis/ConnectorsApi.js +247 -0
  5. package/dist/apis/MemoriesApi.d.ts +115 -0
  6. package/dist/apis/MemoriesApi.js +252 -0
  7. package/dist/apis/OfficesApi.d.ts +98 -0
  8. package/dist/apis/OfficesApi.js +208 -0
  9. package/dist/apis/SchedulesApi.d.ts +111 -0
  10. package/dist/apis/SchedulesApi.js +252 -0
  11. package/dist/apis/SecretsApi.d.ts +98 -0
  12. package/dist/apis/SecretsApi.js +211 -0
  13. package/dist/apis/SkillsApi.d.ts +115 -0
  14. package/dist/apis/SkillsApi.js +252 -0
  15. package/dist/apis/TemplatesApi.d.ts +56 -0
  16. package/dist/apis/TemplatesApi.js +109 -0
  17. package/dist/apis/index.d.ts +8 -0
  18. package/dist/apis/index.js +26 -0
  19. package/dist/client.d.ts +173 -0
  20. package/dist/client.js +236 -0
  21. package/dist/esm/apis/AgentsApi.d.ts +173 -0
  22. package/dist/esm/apis/AgentsApi.js +379 -0
  23. package/dist/esm/apis/ConnectorsApi.d.ts +118 -0
  24. package/dist/esm/apis/ConnectorsApi.js +243 -0
  25. package/dist/esm/apis/MemoriesApi.d.ts +115 -0
  26. package/dist/esm/apis/MemoriesApi.js +248 -0
  27. package/dist/esm/apis/OfficesApi.d.ts +98 -0
  28. package/dist/esm/apis/OfficesApi.js +204 -0
  29. package/dist/esm/apis/SchedulesApi.d.ts +111 -0
  30. package/dist/esm/apis/SchedulesApi.js +248 -0
  31. package/dist/esm/apis/SecretsApi.d.ts +98 -0
  32. package/dist/esm/apis/SecretsApi.js +207 -0
  33. package/dist/esm/apis/SkillsApi.d.ts +115 -0
  34. package/dist/esm/apis/SkillsApi.js +248 -0
  35. package/dist/esm/apis/TemplatesApi.d.ts +56 -0
  36. package/dist/esm/apis/TemplatesApi.js +105 -0
  37. package/dist/esm/apis/index.d.ts +8 -0
  38. package/dist/esm/client.d.ts +173 -0
  39. package/dist/esm/client.js +232 -0
  40. package/{src/index.ts → dist/esm/index.d.ts} +0 -2
  41. package/dist/esm/index.js +6 -0
  42. package/dist/esm/models/AgentListResponse.d.ts +33 -0
  43. package/dist/esm/models/AgentListResponse.js +42 -0
  44. package/dist/esm/models/AgentResponse.d.ts +134 -0
  45. package/dist/esm/models/AgentResponse.js +75 -0
  46. package/dist/esm/models/ConnectorResponse.d.ts +104 -0
  47. package/{src/models/ConnectorResponse.ts → dist/esm/models/ConnectorResponse.js} +6 -102
  48. package/dist/esm/models/CreateAgentRequest.d.ts +104 -0
  49. package/dist/esm/models/CreateAgentRequest.js +69 -0
  50. package/dist/esm/models/CreateConnectorRequest.d.ts +92 -0
  51. package/{src/models/CreateConnectorRequest.ts → dist/esm/models/CreateConnectorRequest.js} +12 -93
  52. package/dist/esm/models/CreateMemoryRequest.d.ts +50 -0
  53. package/{src/models/CreateMemoryRequest.ts → dist/esm/models/CreateMemoryRequest.js} +10 -50
  54. package/dist/esm/models/CreateScheduleAgentSpec.d.ts +56 -0
  55. package/{src/models/CreateScheduleAgentSpec.ts → dist/esm/models/CreateScheduleAgentSpec.js} +6 -54
  56. package/dist/esm/models/CreateScheduleRequest.d.ts +81 -0
  57. package/dist/esm/models/CreateScheduleRequest.js +64 -0
  58. package/dist/esm/models/CreateSecretRequest.d.ts +46 -0
  59. package/dist/esm/models/CreateSecretRequest.js +49 -0
  60. package/dist/esm/models/CreateSkillRequest.d.ts +50 -0
  61. package/dist/esm/models/CreateSkillRequest.js +53 -0
  62. package/dist/esm/models/MemoryResponse.d.ts +68 -0
  63. package/dist/esm/models/MemoryResponse.js +53 -0
  64. package/dist/esm/models/OfficeListResponse.d.ts +33 -0
  65. package/dist/esm/models/OfficeListResponse.js +42 -0
  66. package/dist/esm/models/OfficeMemberResponse.d.ts +50 -0
  67. package/dist/esm/models/OfficeMemberResponse.js +47 -0
  68. package/dist/esm/models/OfficeResponse.d.ts +93 -0
  69. package/dist/esm/models/OfficeResponse.js +62 -0
  70. package/dist/esm/models/PatchAgentRequest.d.ts +80 -0
  71. package/{src/models/PatchAgentRequest.ts → dist/esm/models/PatchAgentRequest.js} +6 -78
  72. package/dist/esm/models/PatchMemoryRequest.d.ts +38 -0
  73. package/dist/esm/models/PatchMemoryRequest.js +43 -0
  74. package/dist/esm/models/PatchScheduleRequest.d.ts +32 -0
  75. package/dist/esm/models/PatchScheduleRequest.js +41 -0
  76. package/dist/esm/models/PatchSkillRequest.d.ts +38 -0
  77. package/{src/models/PatchSkillRequest.ts → dist/esm/models/PatchSkillRequest.js} +6 -36
  78. package/dist/esm/models/ScheduleListResponse.d.ts +33 -0
  79. package/dist/esm/models/ScheduleListResponse.js +42 -0
  80. package/dist/esm/models/ScheduleResponse.d.ts +140 -0
  81. package/dist/esm/models/ScheduleResponse.js +77 -0
  82. package/dist/esm/models/SecretListResponse.d.ts +33 -0
  83. package/dist/esm/models/SecretListResponse.js +42 -0
  84. package/dist/esm/models/SecretResponse.d.ts +74 -0
  85. package/dist/esm/models/SecretResponse.js +55 -0
  86. package/dist/esm/models/SkillResponse.d.ts +74 -0
  87. package/dist/esm/models/SkillResponse.js +55 -0
  88. package/dist/esm/models/UpdateSecretRequest.d.ts +40 -0
  89. package/{src/models/UpdateSecretRequest.ts → dist/esm/models/UpdateSecretRequest.js} +8 -37
  90. package/dist/esm/models/index.d.ts +24 -0
  91. package/dist/esm/runtime.d.ts +184 -0
  92. package/dist/esm/runtime.js +349 -0
  93. package/dist/esm/watch.d.ts +28 -0
  94. package/dist/esm/watch.js +77 -0
  95. package/dist/index.d.ts +5 -0
  96. package/dist/index.js +24 -0
  97. package/dist/models/AgentListResponse.d.ts +33 -0
  98. package/dist/models/AgentListResponse.js +49 -0
  99. package/dist/models/AgentResponse.d.ts +134 -0
  100. package/{src/models/AgentResponse.ts → dist/models/AgentResponse.js} +13 -132
  101. package/dist/models/ConnectorResponse.d.ts +104 -0
  102. package/dist/models/ConnectorResponse.js +72 -0
  103. package/dist/models/CreateAgentRequest.d.ts +104 -0
  104. package/dist/models/CreateAgentRequest.js +76 -0
  105. package/dist/models/CreateConnectorRequest.d.ts +92 -0
  106. package/dist/models/CreateConnectorRequest.js +74 -0
  107. package/dist/models/CreateMemoryRequest.d.ts +50 -0
  108. package/dist/models/CreateMemoryRequest.js +58 -0
  109. package/dist/models/CreateScheduleAgentSpec.d.ts +56 -0
  110. package/dist/models/CreateScheduleAgentSpec.js +56 -0
  111. package/dist/models/CreateScheduleRequest.d.ts +81 -0
  112. package/dist/models/CreateScheduleRequest.js +71 -0
  113. package/dist/models/CreateSecretRequest.d.ts +46 -0
  114. package/dist/models/CreateSecretRequest.js +56 -0
  115. package/dist/models/CreateSkillRequest.d.ts +50 -0
  116. package/{src/models/CreateSkillRequest.ts → dist/models/CreateSkillRequest.js} +19 -51
  117. package/dist/models/MemoryResponse.d.ts +68 -0
  118. package/{src/models/MemoryResponse.ts → dist/models/MemoryResponse.js} +13 -66
  119. package/dist/models/OfficeListResponse.d.ts +33 -0
  120. package/dist/models/OfficeListResponse.js +49 -0
  121. package/dist/models/OfficeMemberResponse.d.ts +50 -0
  122. package/{src/models/OfficeMemberResponse.ts → dist/models/OfficeMemberResponse.js} +13 -48
  123. package/dist/models/OfficeResponse.d.ts +93 -0
  124. package/dist/models/OfficeResponse.js +69 -0
  125. package/dist/models/PatchAgentRequest.d.ts +80 -0
  126. package/dist/models/PatchAgentRequest.js +64 -0
  127. package/dist/models/PatchMemoryRequest.d.ts +38 -0
  128. package/{src/models/PatchMemoryRequest.ts → dist/models/PatchMemoryRequest.js} +13 -36
  129. package/dist/models/PatchScheduleRequest.d.ts +32 -0
  130. package/{src/models/PatchScheduleRequest.ts → dist/models/PatchScheduleRequest.js} +13 -30
  131. package/dist/models/PatchSkillRequest.d.ts +38 -0
  132. package/dist/models/PatchSkillRequest.js +50 -0
  133. package/dist/models/ScheduleListResponse.d.ts +33 -0
  134. package/dist/models/ScheduleListResponse.js +49 -0
  135. package/dist/models/ScheduleResponse.d.ts +140 -0
  136. package/{src/models/ScheduleResponse.ts → dist/models/ScheduleResponse.js} +13 -138
  137. package/dist/models/SecretListResponse.d.ts +33 -0
  138. package/dist/models/SecretListResponse.js +49 -0
  139. package/dist/models/SecretResponse.d.ts +74 -0
  140. package/{src/models/SecretResponse.ts → dist/models/SecretResponse.js} +13 -72
  141. package/dist/models/SkillResponse.d.ts +74 -0
  142. package/{src/models/SkillResponse.ts → dist/models/SkillResponse.js} +13 -72
  143. package/dist/models/UpdateSecretRequest.d.ts +40 -0
  144. package/dist/models/UpdateSecretRequest.js +52 -0
  145. package/dist/models/index.d.ts +24 -0
  146. package/dist/models/index.js +42 -0
  147. package/dist/runtime.d.ts +184 -0
  148. package/dist/runtime.js +365 -0
  149. package/dist/watch.d.ts +28 -0
  150. package/dist/watch.js +81 -0
  151. package/package.json +2 -3
  152. package/.openapi-generator-ignore +0 -31
  153. package/docs/AgentListResponse.md +0 -34
  154. package/docs/AgentResponse.md +0 -68
  155. package/docs/AgentsApi.md +0 -584
  156. package/docs/ConnectorResponse.md +0 -58
  157. package/docs/ConnectorsApi.md +0 -366
  158. package/docs/CreateAgentRequest.md +0 -58
  159. package/docs/CreateConnectorRequest.md +0 -54
  160. package/docs/CreateMemoryRequest.md +0 -40
  161. package/docs/CreateScheduleAgentSpec.md +0 -42
  162. package/docs/CreateScheduleRequest.md +0 -50
  163. package/docs/CreateSecretRequest.md +0 -38
  164. package/docs/CreateSkillRequest.md +0 -40
  165. package/docs/MemoriesApi.md +0 -368
  166. package/docs/MemoryResponse.md +0 -46
  167. package/docs/OfficeListResponse.md +0 -34
  168. package/docs/OfficeMemberResponse.md +0 -40
  169. package/docs/OfficeResponse.md +0 -54
  170. package/docs/OfficesApi.md +0 -300
  171. package/docs/PatchAgentRequest.md +0 -50
  172. package/docs/PatchMemoryRequest.md +0 -36
  173. package/docs/PatchScheduleRequest.md +0 -34
  174. package/docs/PatchSkillRequest.md +0 -36
  175. package/docs/ScheduleListResponse.md +0 -34
  176. package/docs/ScheduleResponse.md +0 -70
  177. package/docs/SchedulesApi.md +0 -369
  178. package/docs/SecretListResponse.md +0 -34
  179. package/docs/SecretResponse.md +0 -48
  180. package/docs/SecretsApi.md +0 -298
  181. package/docs/SkillResponse.md +0 -48
  182. package/docs/SkillsApi.md +0 -368
  183. package/docs/TemplatesApi.md +0 -138
  184. package/docs/UpdateSecretRequest.md +0 -36
  185. package/src/apis/AgentsApi.ts +0 -485
  186. package/src/apis/ConnectorsApi.ts +0 -301
  187. package/src/apis/MemoriesApi.ts +0 -315
  188. package/src/apis/OfficesApi.ts +0 -253
  189. package/src/apis/SchedulesApi.ts +0 -318
  190. package/src/apis/SecretsApi.ts +0 -267
  191. package/src/apis/SkillsApi.ts +0 -315
  192. package/src/apis/TemplatesApi.ts +0 -109
  193. package/src/client.test.ts +0 -88
  194. package/src/client.ts +0 -212
  195. package/src/models/AgentListResponse.ts +0 -73
  196. package/src/models/CreateAgentRequest.ts +0 -163
  197. package/src/models/CreateScheduleRequest.ts +0 -140
  198. package/src/models/CreateSecretRequest.ts +0 -83
  199. package/src/models/OfficeListResponse.ts +0 -73
  200. package/src/models/OfficeResponse.ts +0 -153
  201. package/src/models/ScheduleListResponse.ts +0 -73
  202. package/src/models/SecretListResponse.ts +0 -73
  203. package/src/runtime.ts +0 -450
  204. package/src/watch.ts +0 -89
  205. package/tsconfig.esm.json +0 -7
  206. package/tsconfig.json +0 -18
  207. /package/{src/apis/index.ts → dist/esm/apis/index.js} +0 -0
  208. /package/{src/models/index.ts → dist/esm/models/index.js} +0 -0
@@ -0,0 +1,247 @@
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.ConnectorsApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const index_1 = require("../models/index");
28
+ /**
29
+ *
30
+ */
31
+ class ConnectorsApi extends runtime.BaseAPI {
32
+ /**
33
+ * Creates request options for createConnector without sending the request
34
+ */
35
+ createConnectorRequestOpts(requestParameters) {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ if (requestParameters['request'] == null) {
38
+ throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling createConnector().');
39
+ }
40
+ const queryParameters = {};
41
+ const headerParameters = {};
42
+ headerParameters['Content-Type'] = 'application/json';
43
+ let urlPath = `/connectors`;
44
+ return {
45
+ path: urlPath,
46
+ method: 'POST',
47
+ headers: headerParameters,
48
+ query: queryParameters,
49
+ body: (0, index_1.CreateConnectorRequestToJSON)(requestParameters['request']),
50
+ };
51
+ });
52
+ }
53
+ /**
54
+ * Creates a new KomputerConnector CR pointing to an MCP server that can be attached to agents.
55
+ * Create connector
56
+ */
57
+ createConnectorRaw(requestParameters, initOverrides) {
58
+ return __awaiter(this, void 0, void 0, function* () {
59
+ const requestOptions = yield this.createConnectorRequestOpts(requestParameters);
60
+ const response = yield this.request(requestOptions, initOverrides);
61
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ConnectorResponseFromJSON)(jsonValue));
62
+ });
63
+ }
64
+ /**
65
+ * Creates a new KomputerConnector CR pointing to an MCP server that can be attached to agents.
66
+ * Create connector
67
+ */
68
+ createConnector(requestParameters, initOverrides) {
69
+ return __awaiter(this, void 0, void 0, function* () {
70
+ const response = yield this.createConnectorRaw(requestParameters, initOverrides);
71
+ return yield response.value();
72
+ });
73
+ }
74
+ /**
75
+ * Creates request options for deleteConnector without sending the request
76
+ */
77
+ deleteConnectorRequestOpts(requestParameters) {
78
+ return __awaiter(this, void 0, void 0, function* () {
79
+ if (requestParameters['name'] == null) {
80
+ throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling deleteConnector().');
81
+ }
82
+ const queryParameters = {};
83
+ if (requestParameters['namespace'] != null) {
84
+ queryParameters['namespace'] = requestParameters['namespace'];
85
+ }
86
+ const headerParameters = {};
87
+ let urlPath = `/connectors/{name}`;
88
+ urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name'])));
89
+ return {
90
+ path: urlPath,
91
+ method: 'DELETE',
92
+ headers: headerParameters,
93
+ query: queryParameters,
94
+ };
95
+ });
96
+ }
97
+ /**
98
+ * Deletes the connector CR.
99
+ * Delete connector
100
+ */
101
+ deleteConnectorRaw(requestParameters, initOverrides) {
102
+ return __awaiter(this, void 0, void 0, function* () {
103
+ const requestOptions = yield this.deleteConnectorRequestOpts(requestParameters);
104
+ const response = yield this.request(requestOptions, initOverrides);
105
+ return new runtime.JSONApiResponse(response);
106
+ });
107
+ }
108
+ /**
109
+ * Deletes the connector CR.
110
+ * Delete connector
111
+ */
112
+ deleteConnector(requestParameters, initOverrides) {
113
+ return __awaiter(this, void 0, void 0, function* () {
114
+ const response = yield this.deleteConnectorRaw(requestParameters, initOverrides);
115
+ return yield response.value();
116
+ });
117
+ }
118
+ /**
119
+ * Creates request options for getConnector without sending the request
120
+ */
121
+ getConnectorRequestOpts(requestParameters) {
122
+ return __awaiter(this, void 0, void 0, function* () {
123
+ if (requestParameters['name'] == null) {
124
+ throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling getConnector().');
125
+ }
126
+ const queryParameters = {};
127
+ if (requestParameters['namespace'] != null) {
128
+ queryParameters['namespace'] = requestParameters['namespace'];
129
+ }
130
+ const headerParameters = {};
131
+ let urlPath = `/connectors/{name}`;
132
+ urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name'])));
133
+ return {
134
+ path: urlPath,
135
+ method: 'GET',
136
+ headers: headerParameters,
137
+ query: queryParameters,
138
+ };
139
+ });
140
+ }
141
+ /**
142
+ * Returns the URL, service, type, and auth config for a single connector.
143
+ * Get connector details
144
+ */
145
+ getConnectorRaw(requestParameters, initOverrides) {
146
+ return __awaiter(this, void 0, void 0, function* () {
147
+ const requestOptions = yield this.getConnectorRequestOpts(requestParameters);
148
+ const response = yield this.request(requestOptions, initOverrides);
149
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ConnectorResponseFromJSON)(jsonValue));
150
+ });
151
+ }
152
+ /**
153
+ * Returns the URL, service, type, and auth config for a single connector.
154
+ * Get connector details
155
+ */
156
+ getConnector(requestParameters, initOverrides) {
157
+ return __awaiter(this, void 0, void 0, function* () {
158
+ const response = yield this.getConnectorRaw(requestParameters, initOverrides);
159
+ return yield response.value();
160
+ });
161
+ }
162
+ /**
163
+ * Creates request options for listConnectorTools without sending the request
164
+ */
165
+ listConnectorToolsRequestOpts(requestParameters) {
166
+ return __awaiter(this, void 0, void 0, function* () {
167
+ if (requestParameters['name'] == null) {
168
+ throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling listConnectorTools().');
169
+ }
170
+ const queryParameters = {};
171
+ if (requestParameters['namespace'] != null) {
172
+ queryParameters['namespace'] = requestParameters['namespace'];
173
+ }
174
+ const headerParameters = {};
175
+ let urlPath = `/connectors/{name}/tools`;
176
+ urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name'])));
177
+ return {
178
+ path: urlPath,
179
+ method: 'GET',
180
+ headers: headerParameters,
181
+ query: queryParameters,
182
+ };
183
+ });
184
+ }
185
+ /**
186
+ * Calls the MCP server\'s tools/list endpoint and returns the available tools.
187
+ * List connector tools
188
+ */
189
+ listConnectorToolsRaw(requestParameters, initOverrides) {
190
+ return __awaiter(this, void 0, void 0, function* () {
191
+ const requestOptions = yield this.listConnectorToolsRequestOpts(requestParameters);
192
+ const response = yield this.request(requestOptions, initOverrides);
193
+ return new runtime.JSONApiResponse(response);
194
+ });
195
+ }
196
+ /**
197
+ * Calls the MCP server\'s tools/list endpoint and returns the available tools.
198
+ * List connector tools
199
+ */
200
+ listConnectorTools(requestParameters, initOverrides) {
201
+ return __awaiter(this, void 0, void 0, function* () {
202
+ const response = yield this.listConnectorToolsRaw(requestParameters, initOverrides);
203
+ return yield response.value();
204
+ });
205
+ }
206
+ /**
207
+ * Creates request options for listConnectors without sending the request
208
+ */
209
+ listConnectorsRequestOpts(requestParameters) {
210
+ return __awaiter(this, void 0, void 0, function* () {
211
+ const queryParameters = {};
212
+ if (requestParameters['namespace'] != null) {
213
+ queryParameters['namespace'] = requestParameters['namespace'];
214
+ }
215
+ const headerParameters = {};
216
+ let urlPath = `/connectors`;
217
+ return {
218
+ path: urlPath,
219
+ method: 'GET',
220
+ headers: headerParameters,
221
+ query: queryParameters,
222
+ };
223
+ });
224
+ }
225
+ /**
226
+ * Returns all connectors with attached agent counts in the specified namespace.
227
+ * List connectors
228
+ */
229
+ listConnectorsRaw(requestParameters, initOverrides) {
230
+ return __awaiter(this, void 0, void 0, function* () {
231
+ const requestOptions = yield this.listConnectorsRequestOpts(requestParameters);
232
+ const response = yield this.request(requestOptions, initOverrides);
233
+ return new runtime.JSONApiResponse(response);
234
+ });
235
+ }
236
+ /**
237
+ * Returns all connectors with attached agent counts in the specified namespace.
238
+ * List connectors
239
+ */
240
+ listConnectors() {
241
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
242
+ const response = yield this.listConnectorsRaw(requestParameters, initOverrides);
243
+ return yield response.value();
244
+ });
245
+ }
246
+ }
247
+ exports.ConnectorsApi = ConnectorsApi;
@@ -0,0 +1,115 @@
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 { CreateMemoryRequest, MemoryResponse, PatchMemoryRequest } from '../models/index';
14
+ export interface CreateMemoryOperationRequest {
15
+ request: CreateMemoryRequest;
16
+ }
17
+ export interface DeleteMemoryRequest {
18
+ name: string;
19
+ namespace?: string;
20
+ }
21
+ export interface GetMemoryRequest {
22
+ name: string;
23
+ namespace?: string;
24
+ }
25
+ export interface ListMemoriesRequest {
26
+ namespace?: string;
27
+ }
28
+ export interface PatchMemoryOperationRequest {
29
+ name: string;
30
+ request: PatchMemoryRequest;
31
+ namespace?: string;
32
+ }
33
+ /**
34
+ *
35
+ */
36
+ export declare class MemoriesApi extends runtime.BaseAPI {
37
+ /**
38
+ * Creates request options for createMemory without sending the request
39
+ */
40
+ createMemoryRequestOpts(requestParameters: CreateMemoryOperationRequest): Promise<runtime.RequestOpts>;
41
+ /**
42
+ * Creates a new KomputerMemory CR that can be attached to agents as persistent context.
43
+ * Create memory
44
+ */
45
+ createMemoryRaw(requestParameters: CreateMemoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MemoryResponse>>;
46
+ /**
47
+ * Creates a new KomputerMemory CR that can be attached to agents as persistent context.
48
+ * Create memory
49
+ */
50
+ createMemory(requestParameters: CreateMemoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MemoryResponse>;
51
+ /**
52
+ * Creates request options for deleteMemory without sending the request
53
+ */
54
+ deleteMemoryRequestOpts(requestParameters: DeleteMemoryRequest): Promise<runtime.RequestOpts>;
55
+ /**
56
+ * Deletes the memory CR.
57
+ * Delete memory
58
+ */
59
+ deleteMemoryRaw(requestParameters: DeleteMemoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
60
+ [key: string]: string;
61
+ }>>;
62
+ /**
63
+ * Deletes the memory CR.
64
+ * Delete memory
65
+ */
66
+ deleteMemory(requestParameters: DeleteMemoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
67
+ [key: string]: string;
68
+ }>;
69
+ /**
70
+ * Creates request options for getMemory without sending the request
71
+ */
72
+ getMemoryRequestOpts(requestParameters: GetMemoryRequest): Promise<runtime.RequestOpts>;
73
+ /**
74
+ * Returns the content and attached agent count for a single memory.
75
+ * Get memory details
76
+ */
77
+ getMemoryRaw(requestParameters: GetMemoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MemoryResponse>>;
78
+ /**
79
+ * Returns the content and attached agent count for a single memory.
80
+ * Get memory details
81
+ */
82
+ getMemory(requestParameters: GetMemoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MemoryResponse>;
83
+ /**
84
+ * Creates request options for listMemories without sending the request
85
+ */
86
+ listMemoriesRequestOpts(requestParameters: ListMemoriesRequest): Promise<runtime.RequestOpts>;
87
+ /**
88
+ * Returns all memories with content and attached agent counts in the specified namespace.
89
+ * List memories
90
+ */
91
+ listMemoriesRaw(requestParameters: ListMemoriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
92
+ [key: string]: any;
93
+ }>>;
94
+ /**
95
+ * Returns all memories with content and attached agent counts in the specified namespace.
96
+ * List memories
97
+ */
98
+ listMemories(requestParameters?: ListMemoriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
99
+ [key: string]: any;
100
+ }>;
101
+ /**
102
+ * Creates request options for patchMemory without sending the request
103
+ */
104
+ patchMemoryRequestOpts(requestParameters: PatchMemoryOperationRequest): Promise<runtime.RequestOpts>;
105
+ /**
106
+ * Updates the content or description of an existing memory.
107
+ * Patch memory
108
+ */
109
+ patchMemoryRaw(requestParameters: PatchMemoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MemoryResponse>>;
110
+ /**
111
+ * Updates the content or description of an existing memory.
112
+ * Patch memory
113
+ */
114
+ patchMemory(requestParameters: PatchMemoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MemoryResponse>;
115
+ }
@@ -0,0 +1,252 @@
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.MemoriesApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const index_1 = require("../models/index");
28
+ /**
29
+ *
30
+ */
31
+ class MemoriesApi extends runtime.BaseAPI {
32
+ /**
33
+ * Creates request options for createMemory without sending the request
34
+ */
35
+ createMemoryRequestOpts(requestParameters) {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ if (requestParameters['request'] == null) {
38
+ throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling createMemory().');
39
+ }
40
+ const queryParameters = {};
41
+ const headerParameters = {};
42
+ headerParameters['Content-Type'] = 'application/json';
43
+ let urlPath = `/memories`;
44
+ return {
45
+ path: urlPath,
46
+ method: 'POST',
47
+ headers: headerParameters,
48
+ query: queryParameters,
49
+ body: (0, index_1.CreateMemoryRequestToJSON)(requestParameters['request']),
50
+ };
51
+ });
52
+ }
53
+ /**
54
+ * Creates a new KomputerMemory CR that can be attached to agents as persistent context.
55
+ * Create memory
56
+ */
57
+ createMemoryRaw(requestParameters, initOverrides) {
58
+ return __awaiter(this, void 0, void 0, function* () {
59
+ const requestOptions = yield this.createMemoryRequestOpts(requestParameters);
60
+ const response = yield this.request(requestOptions, initOverrides);
61
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.MemoryResponseFromJSON)(jsonValue));
62
+ });
63
+ }
64
+ /**
65
+ * Creates a new KomputerMemory CR that can be attached to agents as persistent context.
66
+ * Create memory
67
+ */
68
+ createMemory(requestParameters, initOverrides) {
69
+ return __awaiter(this, void 0, void 0, function* () {
70
+ const response = yield this.createMemoryRaw(requestParameters, initOverrides);
71
+ return yield response.value();
72
+ });
73
+ }
74
+ /**
75
+ * Creates request options for deleteMemory without sending the request
76
+ */
77
+ deleteMemoryRequestOpts(requestParameters) {
78
+ return __awaiter(this, void 0, void 0, function* () {
79
+ if (requestParameters['name'] == null) {
80
+ throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling deleteMemory().');
81
+ }
82
+ const queryParameters = {};
83
+ if (requestParameters['namespace'] != null) {
84
+ queryParameters['namespace'] = requestParameters['namespace'];
85
+ }
86
+ const headerParameters = {};
87
+ let urlPath = `/memories/{name}`;
88
+ urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name'])));
89
+ return {
90
+ path: urlPath,
91
+ method: 'DELETE',
92
+ headers: headerParameters,
93
+ query: queryParameters,
94
+ };
95
+ });
96
+ }
97
+ /**
98
+ * Deletes the memory CR.
99
+ * Delete memory
100
+ */
101
+ deleteMemoryRaw(requestParameters, initOverrides) {
102
+ return __awaiter(this, void 0, void 0, function* () {
103
+ const requestOptions = yield this.deleteMemoryRequestOpts(requestParameters);
104
+ const response = yield this.request(requestOptions, initOverrides);
105
+ return new runtime.JSONApiResponse(response);
106
+ });
107
+ }
108
+ /**
109
+ * Deletes the memory CR.
110
+ * Delete memory
111
+ */
112
+ deleteMemory(requestParameters, initOverrides) {
113
+ return __awaiter(this, void 0, void 0, function* () {
114
+ const response = yield this.deleteMemoryRaw(requestParameters, initOverrides);
115
+ return yield response.value();
116
+ });
117
+ }
118
+ /**
119
+ * Creates request options for getMemory without sending the request
120
+ */
121
+ getMemoryRequestOpts(requestParameters) {
122
+ return __awaiter(this, void 0, void 0, function* () {
123
+ if (requestParameters['name'] == null) {
124
+ throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling getMemory().');
125
+ }
126
+ const queryParameters = {};
127
+ if (requestParameters['namespace'] != null) {
128
+ queryParameters['namespace'] = requestParameters['namespace'];
129
+ }
130
+ const headerParameters = {};
131
+ let urlPath = `/memories/{name}`;
132
+ urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name'])));
133
+ return {
134
+ path: urlPath,
135
+ method: 'GET',
136
+ headers: headerParameters,
137
+ query: queryParameters,
138
+ };
139
+ });
140
+ }
141
+ /**
142
+ * Returns the content and attached agent count for a single memory.
143
+ * Get memory details
144
+ */
145
+ getMemoryRaw(requestParameters, initOverrides) {
146
+ return __awaiter(this, void 0, void 0, function* () {
147
+ const requestOptions = yield this.getMemoryRequestOpts(requestParameters);
148
+ const response = yield this.request(requestOptions, initOverrides);
149
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.MemoryResponseFromJSON)(jsonValue));
150
+ });
151
+ }
152
+ /**
153
+ * Returns the content and attached agent count for a single memory.
154
+ * Get memory details
155
+ */
156
+ getMemory(requestParameters, initOverrides) {
157
+ return __awaiter(this, void 0, void 0, function* () {
158
+ const response = yield this.getMemoryRaw(requestParameters, initOverrides);
159
+ return yield response.value();
160
+ });
161
+ }
162
+ /**
163
+ * Creates request options for listMemories without sending the request
164
+ */
165
+ listMemoriesRequestOpts(requestParameters) {
166
+ return __awaiter(this, void 0, void 0, function* () {
167
+ const queryParameters = {};
168
+ if (requestParameters['namespace'] != null) {
169
+ queryParameters['namespace'] = requestParameters['namespace'];
170
+ }
171
+ const headerParameters = {};
172
+ let urlPath = `/memories`;
173
+ return {
174
+ path: urlPath,
175
+ method: 'GET',
176
+ headers: headerParameters,
177
+ query: queryParameters,
178
+ };
179
+ });
180
+ }
181
+ /**
182
+ * Returns all memories with content and attached agent counts in the specified namespace.
183
+ * List memories
184
+ */
185
+ listMemoriesRaw(requestParameters, initOverrides) {
186
+ return __awaiter(this, void 0, void 0, function* () {
187
+ const requestOptions = yield this.listMemoriesRequestOpts(requestParameters);
188
+ const response = yield this.request(requestOptions, initOverrides);
189
+ return new runtime.JSONApiResponse(response);
190
+ });
191
+ }
192
+ /**
193
+ * Returns all memories with content and attached agent counts in the specified namespace.
194
+ * List memories
195
+ */
196
+ listMemories() {
197
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
198
+ const response = yield this.listMemoriesRaw(requestParameters, initOverrides);
199
+ return yield response.value();
200
+ });
201
+ }
202
+ /**
203
+ * Creates request options for patchMemory without sending the request
204
+ */
205
+ patchMemoryRequestOpts(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 patchMemory().');
209
+ }
210
+ if (requestParameters['request'] == null) {
211
+ throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling patchMemory().');
212
+ }
213
+ const queryParameters = {};
214
+ if (requestParameters['namespace'] != null) {
215
+ queryParameters['namespace'] = requestParameters['namespace'];
216
+ }
217
+ const headerParameters = {};
218
+ headerParameters['Content-Type'] = 'application/json';
219
+ let urlPath = `/memories/{name}`;
220
+ urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name'])));
221
+ return {
222
+ path: urlPath,
223
+ method: 'PATCH',
224
+ headers: headerParameters,
225
+ query: queryParameters,
226
+ body: (0, index_1.PatchMemoryRequestToJSON)(requestParameters['request']),
227
+ };
228
+ });
229
+ }
230
+ /**
231
+ * Updates the content or description of an existing memory.
232
+ * Patch memory
233
+ */
234
+ patchMemoryRaw(requestParameters, initOverrides) {
235
+ return __awaiter(this, void 0, void 0, function* () {
236
+ const requestOptions = yield this.patchMemoryRequestOpts(requestParameters);
237
+ const response = yield this.request(requestOptions, initOverrides);
238
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.MemoryResponseFromJSON)(jsonValue));
239
+ });
240
+ }
241
+ /**
242
+ * Updates the content or description of an existing memory.
243
+ * Patch memory
244
+ */
245
+ patchMemory(requestParameters, initOverrides) {
246
+ return __awaiter(this, void 0, void 0, function* () {
247
+ const response = yield this.patchMemoryRaw(requestParameters, initOverrides);
248
+ return yield response.value();
249
+ });
250
+ }
251
+ }
252
+ exports.MemoriesApi = MemoriesApi;