@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,243 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * komputer.ai API
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import * as runtime from '../runtime';
24
+ import { ConnectorResponseFromJSON, CreateConnectorRequestToJSON, } from '../models/index';
25
+ /**
26
+ *
27
+ */
28
+ export class ConnectorsApi extends runtime.BaseAPI {
29
+ /**
30
+ * Creates request options for createConnector without sending the request
31
+ */
32
+ createConnectorRequestOpts(requestParameters) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ if (requestParameters['request'] == null) {
35
+ throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling createConnector().');
36
+ }
37
+ const queryParameters = {};
38
+ const headerParameters = {};
39
+ headerParameters['Content-Type'] = 'application/json';
40
+ let urlPath = `/connectors`;
41
+ return {
42
+ path: urlPath,
43
+ method: 'POST',
44
+ headers: headerParameters,
45
+ query: queryParameters,
46
+ body: CreateConnectorRequestToJSON(requestParameters['request']),
47
+ };
48
+ });
49
+ }
50
+ /**
51
+ * Creates a new KomputerConnector CR pointing to an MCP server that can be attached to agents.
52
+ * Create connector
53
+ */
54
+ createConnectorRaw(requestParameters, initOverrides) {
55
+ return __awaiter(this, void 0, void 0, function* () {
56
+ const requestOptions = yield this.createConnectorRequestOpts(requestParameters);
57
+ const response = yield this.request(requestOptions, initOverrides);
58
+ return new runtime.JSONApiResponse(response, (jsonValue) => ConnectorResponseFromJSON(jsonValue));
59
+ });
60
+ }
61
+ /**
62
+ * Creates a new KomputerConnector CR pointing to an MCP server that can be attached to agents.
63
+ * Create connector
64
+ */
65
+ createConnector(requestParameters, initOverrides) {
66
+ return __awaiter(this, void 0, void 0, function* () {
67
+ const response = yield this.createConnectorRaw(requestParameters, initOverrides);
68
+ return yield response.value();
69
+ });
70
+ }
71
+ /**
72
+ * Creates request options for deleteConnector without sending the request
73
+ */
74
+ deleteConnectorRequestOpts(requestParameters) {
75
+ return __awaiter(this, void 0, void 0, function* () {
76
+ if (requestParameters['name'] == null) {
77
+ throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling deleteConnector().');
78
+ }
79
+ const queryParameters = {};
80
+ if (requestParameters['namespace'] != null) {
81
+ queryParameters['namespace'] = requestParameters['namespace'];
82
+ }
83
+ const headerParameters = {};
84
+ let urlPath = `/connectors/{name}`;
85
+ urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name'])));
86
+ return {
87
+ path: urlPath,
88
+ method: 'DELETE',
89
+ headers: headerParameters,
90
+ query: queryParameters,
91
+ };
92
+ });
93
+ }
94
+ /**
95
+ * Deletes the connector CR.
96
+ * Delete connector
97
+ */
98
+ deleteConnectorRaw(requestParameters, initOverrides) {
99
+ return __awaiter(this, void 0, void 0, function* () {
100
+ const requestOptions = yield this.deleteConnectorRequestOpts(requestParameters);
101
+ const response = yield this.request(requestOptions, initOverrides);
102
+ return new runtime.JSONApiResponse(response);
103
+ });
104
+ }
105
+ /**
106
+ * Deletes the connector CR.
107
+ * Delete connector
108
+ */
109
+ deleteConnector(requestParameters, initOverrides) {
110
+ return __awaiter(this, void 0, void 0, function* () {
111
+ const response = yield this.deleteConnectorRaw(requestParameters, initOverrides);
112
+ return yield response.value();
113
+ });
114
+ }
115
+ /**
116
+ * Creates request options for getConnector without sending the request
117
+ */
118
+ getConnectorRequestOpts(requestParameters) {
119
+ return __awaiter(this, void 0, void 0, function* () {
120
+ if (requestParameters['name'] == null) {
121
+ throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling getConnector().');
122
+ }
123
+ const queryParameters = {};
124
+ if (requestParameters['namespace'] != null) {
125
+ queryParameters['namespace'] = requestParameters['namespace'];
126
+ }
127
+ const headerParameters = {};
128
+ let urlPath = `/connectors/{name}`;
129
+ urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name'])));
130
+ return {
131
+ path: urlPath,
132
+ method: 'GET',
133
+ headers: headerParameters,
134
+ query: queryParameters,
135
+ };
136
+ });
137
+ }
138
+ /**
139
+ * Returns the URL, service, type, and auth config for a single connector.
140
+ * Get connector details
141
+ */
142
+ getConnectorRaw(requestParameters, initOverrides) {
143
+ return __awaiter(this, void 0, void 0, function* () {
144
+ const requestOptions = yield this.getConnectorRequestOpts(requestParameters);
145
+ const response = yield this.request(requestOptions, initOverrides);
146
+ return new runtime.JSONApiResponse(response, (jsonValue) => ConnectorResponseFromJSON(jsonValue));
147
+ });
148
+ }
149
+ /**
150
+ * Returns the URL, service, type, and auth config for a single connector.
151
+ * Get connector details
152
+ */
153
+ getConnector(requestParameters, initOverrides) {
154
+ return __awaiter(this, void 0, void 0, function* () {
155
+ const response = yield this.getConnectorRaw(requestParameters, initOverrides);
156
+ return yield response.value();
157
+ });
158
+ }
159
+ /**
160
+ * Creates request options for listConnectorTools without sending the request
161
+ */
162
+ listConnectorToolsRequestOpts(requestParameters) {
163
+ return __awaiter(this, void 0, void 0, function* () {
164
+ if (requestParameters['name'] == null) {
165
+ throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling listConnectorTools().');
166
+ }
167
+ const queryParameters = {};
168
+ if (requestParameters['namespace'] != null) {
169
+ queryParameters['namespace'] = requestParameters['namespace'];
170
+ }
171
+ const headerParameters = {};
172
+ let urlPath = `/connectors/{name}/tools`;
173
+ urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name'])));
174
+ return {
175
+ path: urlPath,
176
+ method: 'GET',
177
+ headers: headerParameters,
178
+ query: queryParameters,
179
+ };
180
+ });
181
+ }
182
+ /**
183
+ * Calls the MCP server\'s tools/list endpoint and returns the available tools.
184
+ * List connector tools
185
+ */
186
+ listConnectorToolsRaw(requestParameters, initOverrides) {
187
+ return __awaiter(this, void 0, void 0, function* () {
188
+ const requestOptions = yield this.listConnectorToolsRequestOpts(requestParameters);
189
+ const response = yield this.request(requestOptions, initOverrides);
190
+ return new runtime.JSONApiResponse(response);
191
+ });
192
+ }
193
+ /**
194
+ * Calls the MCP server\'s tools/list endpoint and returns the available tools.
195
+ * List connector tools
196
+ */
197
+ listConnectorTools(requestParameters, initOverrides) {
198
+ return __awaiter(this, void 0, void 0, function* () {
199
+ const response = yield this.listConnectorToolsRaw(requestParameters, initOverrides);
200
+ return yield response.value();
201
+ });
202
+ }
203
+ /**
204
+ * Creates request options for listConnectors without sending the request
205
+ */
206
+ listConnectorsRequestOpts(requestParameters) {
207
+ return __awaiter(this, void 0, void 0, function* () {
208
+ const queryParameters = {};
209
+ if (requestParameters['namespace'] != null) {
210
+ queryParameters['namespace'] = requestParameters['namespace'];
211
+ }
212
+ const headerParameters = {};
213
+ let urlPath = `/connectors`;
214
+ return {
215
+ path: urlPath,
216
+ method: 'GET',
217
+ headers: headerParameters,
218
+ query: queryParameters,
219
+ };
220
+ });
221
+ }
222
+ /**
223
+ * Returns all connectors with attached agent counts in the specified namespace.
224
+ * List connectors
225
+ */
226
+ listConnectorsRaw(requestParameters, initOverrides) {
227
+ return __awaiter(this, void 0, void 0, function* () {
228
+ const requestOptions = yield this.listConnectorsRequestOpts(requestParameters);
229
+ const response = yield this.request(requestOptions, initOverrides);
230
+ return new runtime.JSONApiResponse(response);
231
+ });
232
+ }
233
+ /**
234
+ * Returns all connectors with attached agent counts in the specified namespace.
235
+ * List connectors
236
+ */
237
+ listConnectors() {
238
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
239
+ const response = yield this.listConnectorsRaw(requestParameters, initOverrides);
240
+ return yield response.value();
241
+ });
242
+ }
243
+ }
@@ -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,248 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * komputer.ai API
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import * as runtime from '../runtime';
24
+ import { CreateMemoryRequestToJSON, MemoryResponseFromJSON, PatchMemoryRequestToJSON, } from '../models/index';
25
+ /**
26
+ *
27
+ */
28
+ export class MemoriesApi extends runtime.BaseAPI {
29
+ /**
30
+ * Creates request options for createMemory without sending the request
31
+ */
32
+ createMemoryRequestOpts(requestParameters) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ if (requestParameters['request'] == null) {
35
+ throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling createMemory().');
36
+ }
37
+ const queryParameters = {};
38
+ const headerParameters = {};
39
+ headerParameters['Content-Type'] = 'application/json';
40
+ let urlPath = `/memories`;
41
+ return {
42
+ path: urlPath,
43
+ method: 'POST',
44
+ headers: headerParameters,
45
+ query: queryParameters,
46
+ body: CreateMemoryRequestToJSON(requestParameters['request']),
47
+ };
48
+ });
49
+ }
50
+ /**
51
+ * Creates a new KomputerMemory CR that can be attached to agents as persistent context.
52
+ * Create memory
53
+ */
54
+ createMemoryRaw(requestParameters, initOverrides) {
55
+ return __awaiter(this, void 0, void 0, function* () {
56
+ const requestOptions = yield this.createMemoryRequestOpts(requestParameters);
57
+ const response = yield this.request(requestOptions, initOverrides);
58
+ return new runtime.JSONApiResponse(response, (jsonValue) => MemoryResponseFromJSON(jsonValue));
59
+ });
60
+ }
61
+ /**
62
+ * Creates a new KomputerMemory CR that can be attached to agents as persistent context.
63
+ * Create memory
64
+ */
65
+ createMemory(requestParameters, initOverrides) {
66
+ return __awaiter(this, void 0, void 0, function* () {
67
+ const response = yield this.createMemoryRaw(requestParameters, initOverrides);
68
+ return yield response.value();
69
+ });
70
+ }
71
+ /**
72
+ * Creates request options for deleteMemory without sending the request
73
+ */
74
+ deleteMemoryRequestOpts(requestParameters) {
75
+ return __awaiter(this, void 0, void 0, function* () {
76
+ if (requestParameters['name'] == null) {
77
+ throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling deleteMemory().');
78
+ }
79
+ const queryParameters = {};
80
+ if (requestParameters['namespace'] != null) {
81
+ queryParameters['namespace'] = requestParameters['namespace'];
82
+ }
83
+ const headerParameters = {};
84
+ let urlPath = `/memories/{name}`;
85
+ urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name'])));
86
+ return {
87
+ path: urlPath,
88
+ method: 'DELETE',
89
+ headers: headerParameters,
90
+ query: queryParameters,
91
+ };
92
+ });
93
+ }
94
+ /**
95
+ * Deletes the memory CR.
96
+ * Delete memory
97
+ */
98
+ deleteMemoryRaw(requestParameters, initOverrides) {
99
+ return __awaiter(this, void 0, void 0, function* () {
100
+ const requestOptions = yield this.deleteMemoryRequestOpts(requestParameters);
101
+ const response = yield this.request(requestOptions, initOverrides);
102
+ return new runtime.JSONApiResponse(response);
103
+ });
104
+ }
105
+ /**
106
+ * Deletes the memory CR.
107
+ * Delete memory
108
+ */
109
+ deleteMemory(requestParameters, initOverrides) {
110
+ return __awaiter(this, void 0, void 0, function* () {
111
+ const response = yield this.deleteMemoryRaw(requestParameters, initOverrides);
112
+ return yield response.value();
113
+ });
114
+ }
115
+ /**
116
+ * Creates request options for getMemory without sending the request
117
+ */
118
+ getMemoryRequestOpts(requestParameters) {
119
+ return __awaiter(this, void 0, void 0, function* () {
120
+ if (requestParameters['name'] == null) {
121
+ throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling getMemory().');
122
+ }
123
+ const queryParameters = {};
124
+ if (requestParameters['namespace'] != null) {
125
+ queryParameters['namespace'] = requestParameters['namespace'];
126
+ }
127
+ const headerParameters = {};
128
+ let urlPath = `/memories/{name}`;
129
+ urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name'])));
130
+ return {
131
+ path: urlPath,
132
+ method: 'GET',
133
+ headers: headerParameters,
134
+ query: queryParameters,
135
+ };
136
+ });
137
+ }
138
+ /**
139
+ * Returns the content and attached agent count for a single memory.
140
+ * Get memory details
141
+ */
142
+ getMemoryRaw(requestParameters, initOverrides) {
143
+ return __awaiter(this, void 0, void 0, function* () {
144
+ const requestOptions = yield this.getMemoryRequestOpts(requestParameters);
145
+ const response = yield this.request(requestOptions, initOverrides);
146
+ return new runtime.JSONApiResponse(response, (jsonValue) => MemoryResponseFromJSON(jsonValue));
147
+ });
148
+ }
149
+ /**
150
+ * Returns the content and attached agent count for a single memory.
151
+ * Get memory details
152
+ */
153
+ getMemory(requestParameters, initOverrides) {
154
+ return __awaiter(this, void 0, void 0, function* () {
155
+ const response = yield this.getMemoryRaw(requestParameters, initOverrides);
156
+ return yield response.value();
157
+ });
158
+ }
159
+ /**
160
+ * Creates request options for listMemories without sending the request
161
+ */
162
+ listMemoriesRequestOpts(requestParameters) {
163
+ return __awaiter(this, void 0, void 0, function* () {
164
+ const queryParameters = {};
165
+ if (requestParameters['namespace'] != null) {
166
+ queryParameters['namespace'] = requestParameters['namespace'];
167
+ }
168
+ const headerParameters = {};
169
+ let urlPath = `/memories`;
170
+ return {
171
+ path: urlPath,
172
+ method: 'GET',
173
+ headers: headerParameters,
174
+ query: queryParameters,
175
+ };
176
+ });
177
+ }
178
+ /**
179
+ * Returns all memories with content and attached agent counts in the specified namespace.
180
+ * List memories
181
+ */
182
+ listMemoriesRaw(requestParameters, initOverrides) {
183
+ return __awaiter(this, void 0, void 0, function* () {
184
+ const requestOptions = yield this.listMemoriesRequestOpts(requestParameters);
185
+ const response = yield this.request(requestOptions, initOverrides);
186
+ return new runtime.JSONApiResponse(response);
187
+ });
188
+ }
189
+ /**
190
+ * Returns all memories with content and attached agent counts in the specified namespace.
191
+ * List memories
192
+ */
193
+ listMemories() {
194
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
195
+ const response = yield this.listMemoriesRaw(requestParameters, initOverrides);
196
+ return yield response.value();
197
+ });
198
+ }
199
+ /**
200
+ * Creates request options for patchMemory without sending the request
201
+ */
202
+ patchMemoryRequestOpts(requestParameters) {
203
+ return __awaiter(this, void 0, void 0, function* () {
204
+ if (requestParameters['name'] == null) {
205
+ throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling patchMemory().');
206
+ }
207
+ if (requestParameters['request'] == null) {
208
+ throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling patchMemory().');
209
+ }
210
+ const queryParameters = {};
211
+ if (requestParameters['namespace'] != null) {
212
+ queryParameters['namespace'] = requestParameters['namespace'];
213
+ }
214
+ const headerParameters = {};
215
+ headerParameters['Content-Type'] = 'application/json';
216
+ let urlPath = `/memories/{name}`;
217
+ urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name'])));
218
+ return {
219
+ path: urlPath,
220
+ method: 'PATCH',
221
+ headers: headerParameters,
222
+ query: queryParameters,
223
+ body: PatchMemoryRequestToJSON(requestParameters['request']),
224
+ };
225
+ });
226
+ }
227
+ /**
228
+ * Updates the content or description of an existing memory.
229
+ * Patch memory
230
+ */
231
+ patchMemoryRaw(requestParameters, initOverrides) {
232
+ return __awaiter(this, void 0, void 0, function* () {
233
+ const requestOptions = yield this.patchMemoryRequestOpts(requestParameters);
234
+ const response = yield this.request(requestOptions, initOverrides);
235
+ return new runtime.JSONApiResponse(response, (jsonValue) => MemoryResponseFromJSON(jsonValue));
236
+ });
237
+ }
238
+ /**
239
+ * Updates the content or description of an existing memory.
240
+ * Patch memory
241
+ */
242
+ patchMemory(requestParameters, initOverrides) {
243
+ return __awaiter(this, void 0, void 0, function* () {
244
+ const response = yield this.patchMemoryRaw(requestParameters, initOverrides);
245
+ return yield response.value();
246
+ });
247
+ }
248
+ }