@komputer-ai/sdk 0.11.1

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 (76) hide show
  1. package/.openapi-generator-ignore +31 -0
  2. package/README.md +147 -0
  3. package/docs/AgentListResponse.md +34 -0
  4. package/docs/AgentResponse.md +68 -0
  5. package/docs/AgentsApi.md +584 -0
  6. package/docs/ConnectorResponse.md +58 -0
  7. package/docs/ConnectorsApi.md +366 -0
  8. package/docs/CreateAgentRequest.md +58 -0
  9. package/docs/CreateConnectorRequest.md +54 -0
  10. package/docs/CreateMemoryRequest.md +40 -0
  11. package/docs/CreateScheduleAgentSpec.md +42 -0
  12. package/docs/CreateScheduleRequest.md +50 -0
  13. package/docs/CreateSecretRequest.md +38 -0
  14. package/docs/CreateSkillRequest.md +40 -0
  15. package/docs/MemoriesApi.md +368 -0
  16. package/docs/MemoryResponse.md +46 -0
  17. package/docs/OfficeListResponse.md +34 -0
  18. package/docs/OfficeMemberResponse.md +40 -0
  19. package/docs/OfficeResponse.md +54 -0
  20. package/docs/OfficesApi.md +300 -0
  21. package/docs/PatchAgentRequest.md +50 -0
  22. package/docs/PatchMemoryRequest.md +36 -0
  23. package/docs/PatchScheduleRequest.md +34 -0
  24. package/docs/PatchSkillRequest.md +36 -0
  25. package/docs/ScheduleListResponse.md +34 -0
  26. package/docs/ScheduleResponse.md +70 -0
  27. package/docs/SchedulesApi.md +369 -0
  28. package/docs/SecretListResponse.md +34 -0
  29. package/docs/SecretResponse.md +48 -0
  30. package/docs/SecretsApi.md +298 -0
  31. package/docs/SkillResponse.md +48 -0
  32. package/docs/SkillsApi.md +368 -0
  33. package/docs/TemplatesApi.md +138 -0
  34. package/docs/UpdateSecretRequest.md +36 -0
  35. package/package.json +27 -0
  36. package/src/apis/AgentsApi.ts +485 -0
  37. package/src/apis/ConnectorsApi.ts +301 -0
  38. package/src/apis/MemoriesApi.ts +315 -0
  39. package/src/apis/OfficesApi.ts +253 -0
  40. package/src/apis/SchedulesApi.ts +318 -0
  41. package/src/apis/SecretsApi.ts +267 -0
  42. package/src/apis/SkillsApi.ts +315 -0
  43. package/src/apis/TemplatesApi.ts +109 -0
  44. package/src/apis/index.ts +10 -0
  45. package/src/client.test.ts +88 -0
  46. package/src/client.ts +212 -0
  47. package/src/index.ts +7 -0
  48. package/src/models/AgentListResponse.ts +73 -0
  49. package/src/models/AgentResponse.ts +201 -0
  50. package/src/models/ConnectorResponse.ts +161 -0
  51. package/src/models/CreateAgentRequest.ts +163 -0
  52. package/src/models/CreateConnectorRequest.ts +148 -0
  53. package/src/models/CreateMemoryRequest.ts +91 -0
  54. package/src/models/CreateScheduleAgentSpec.ts +97 -0
  55. package/src/models/CreateScheduleRequest.ts +140 -0
  56. package/src/models/CreateSecretRequest.ts +83 -0
  57. package/src/models/CreateSkillRequest.ts +92 -0
  58. package/src/models/MemoryResponse.ts +113 -0
  59. package/src/models/OfficeListResponse.ts +73 -0
  60. package/src/models/OfficeMemberResponse.ts +89 -0
  61. package/src/models/OfficeResponse.ts +153 -0
  62. package/src/models/PatchAgentRequest.ts +129 -0
  63. package/src/models/PatchMemoryRequest.ts +73 -0
  64. package/src/models/PatchScheduleRequest.ts +65 -0
  65. package/src/models/PatchSkillRequest.ts +73 -0
  66. package/src/models/ScheduleListResponse.ts +73 -0
  67. package/src/models/ScheduleResponse.ts +209 -0
  68. package/src/models/SecretListResponse.ts +73 -0
  69. package/src/models/SecretResponse.ts +121 -0
  70. package/src/models/SkillResponse.ts +121 -0
  71. package/src/models/UpdateSecretRequest.ts +74 -0
  72. package/src/models/index.ts +26 -0
  73. package/src/runtime.ts +450 -0
  74. package/src/watch.ts +89 -0
  75. package/tsconfig.esm.json +7 -0
  76. package/tsconfig.json +18 -0
@@ -0,0 +1,368 @@
1
+ # MemoriesApi
2
+
3
+ All URIs are relative to *http://localhost:8080/api/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**createMemory**](MemoriesApi.md#creatememoryoperation) | **POST** /memories | Create memory |
8
+ | [**deleteMemory**](MemoriesApi.md#deletememory) | **DELETE** /memories/{name} | Delete memory |
9
+ | [**getMemory**](MemoriesApi.md#getmemory) | **GET** /memories/{name} | Get memory details |
10
+ | [**listMemories**](MemoriesApi.md#listmemories) | **GET** /memories | List memories |
11
+ | [**patchMemory**](MemoriesApi.md#patchmemoryoperation) | **PATCH** /memories/{name} | Patch memory |
12
+
13
+
14
+
15
+ ## createMemory
16
+
17
+ > MemoryResponse createMemory(request)
18
+
19
+ Create memory
20
+
21
+ Creates a new KomputerMemory CR that can be attached to agents as persistent context.
22
+
23
+ ### Example
24
+
25
+ ```ts
26
+ import {
27
+ Configuration,
28
+ MemoriesApi,
29
+ } from 'komputer-ai';
30
+ import type { CreateMemoryOperationRequest } from 'komputer-ai';
31
+
32
+ async function example() {
33
+ console.log("🚀 Testing komputer-ai SDK...");
34
+ const api = new MemoriesApi();
35
+
36
+ const body = {
37
+ // CreateMemoryRequest | Memory creation request
38
+ request: ...,
39
+ } satisfies CreateMemoryOperationRequest;
40
+
41
+ try {
42
+ const data = await api.createMemory(body);
43
+ console.log(data);
44
+ } catch (error) {
45
+ console.error(error);
46
+ }
47
+ }
48
+
49
+ // Run the test
50
+ example().catch(console.error);
51
+ ```
52
+
53
+ ### Parameters
54
+
55
+
56
+ | Name | Type | Description | Notes |
57
+ |------------- | ------------- | ------------- | -------------|
58
+ | **request** | [CreateMemoryRequest](CreateMemoryRequest.md) | Memory creation request | |
59
+
60
+ ### Return type
61
+
62
+ [**MemoryResponse**](MemoryResponse.md)
63
+
64
+ ### Authorization
65
+
66
+ No authorization required
67
+
68
+ ### HTTP request headers
69
+
70
+ - **Content-Type**: `application/json`
71
+ - **Accept**: `application/json`
72
+
73
+
74
+ ### HTTP response details
75
+ | Status code | Description | Response headers |
76
+ |-------------|-------------|------------------|
77
+ | **201** | Memory created | - |
78
+ | **400** | Bad request | - |
79
+ | **500** | Internal error | - |
80
+
81
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
82
+
83
+
84
+ ## deleteMemory
85
+
86
+ > { [key: string]: string; } deleteMemory(name, namespace)
87
+
88
+ Delete memory
89
+
90
+ Deletes the memory CR.
91
+
92
+ ### Example
93
+
94
+ ```ts
95
+ import {
96
+ Configuration,
97
+ MemoriesApi,
98
+ } from 'komputer-ai';
99
+ import type { DeleteMemoryRequest } from 'komputer-ai';
100
+
101
+ async function example() {
102
+ console.log("🚀 Testing komputer-ai SDK...");
103
+ const api = new MemoriesApi();
104
+
105
+ const body = {
106
+ // string | Memory name
107
+ name: name_example,
108
+ // string | Kubernetes namespace (optional)
109
+ namespace: namespace_example,
110
+ } satisfies DeleteMemoryRequest;
111
+
112
+ try {
113
+ const data = await api.deleteMemory(body);
114
+ console.log(data);
115
+ } catch (error) {
116
+ console.error(error);
117
+ }
118
+ }
119
+
120
+ // Run the test
121
+ example().catch(console.error);
122
+ ```
123
+
124
+ ### Parameters
125
+
126
+
127
+ | Name | Type | Description | Notes |
128
+ |------------- | ------------- | ------------- | -------------|
129
+ | **name** | `string` | Memory name | [Defaults to `undefined`] |
130
+ | **namespace** | `string` | Kubernetes namespace | [Optional] [Defaults to `undefined`] |
131
+
132
+ ### Return type
133
+
134
+ **{ [key: string]: string; }**
135
+
136
+ ### Authorization
137
+
138
+ No authorization required
139
+
140
+ ### HTTP request headers
141
+
142
+ - **Content-Type**: Not defined
143
+ - **Accept**: `application/json`
144
+
145
+
146
+ ### HTTP response details
147
+ | Status code | Description | Response headers |
148
+ |-------------|-------------|------------------|
149
+ | **200** | Memory deleted | - |
150
+ | **500** | Internal error | - |
151
+
152
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
153
+
154
+
155
+ ## getMemory
156
+
157
+ > MemoryResponse getMemory(name, namespace)
158
+
159
+ Get memory details
160
+
161
+ Returns the content and attached agent count for a single memory.
162
+
163
+ ### Example
164
+
165
+ ```ts
166
+ import {
167
+ Configuration,
168
+ MemoriesApi,
169
+ } from 'komputer-ai';
170
+ import type { GetMemoryRequest } from 'komputer-ai';
171
+
172
+ async function example() {
173
+ console.log("🚀 Testing komputer-ai SDK...");
174
+ const api = new MemoriesApi();
175
+
176
+ const body = {
177
+ // string | Memory name
178
+ name: name_example,
179
+ // string | Kubernetes namespace (optional)
180
+ namespace: namespace_example,
181
+ } satisfies GetMemoryRequest;
182
+
183
+ try {
184
+ const data = await api.getMemory(body);
185
+ console.log(data);
186
+ } catch (error) {
187
+ console.error(error);
188
+ }
189
+ }
190
+
191
+ // Run the test
192
+ example().catch(console.error);
193
+ ```
194
+
195
+ ### Parameters
196
+
197
+
198
+ | Name | Type | Description | Notes |
199
+ |------------- | ------------- | ------------- | -------------|
200
+ | **name** | `string` | Memory name | [Defaults to `undefined`] |
201
+ | **namespace** | `string` | Kubernetes namespace | [Optional] [Defaults to `undefined`] |
202
+
203
+ ### Return type
204
+
205
+ [**MemoryResponse**](MemoryResponse.md)
206
+
207
+ ### Authorization
208
+
209
+ No authorization required
210
+
211
+ ### HTTP request headers
212
+
213
+ - **Content-Type**: Not defined
214
+ - **Accept**: `application/json`
215
+
216
+
217
+ ### HTTP response details
218
+ | Status code | Description | Response headers |
219
+ |-------------|-------------|------------------|
220
+ | **200** | Memory details | - |
221
+ | **404** | Memory not found | - |
222
+ | **500** | Internal error | - |
223
+
224
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
225
+
226
+
227
+ ## listMemories
228
+
229
+ > { [key: string]: any; } listMemories(namespace)
230
+
231
+ List memories
232
+
233
+ Returns all memories with content and attached agent counts in the specified namespace.
234
+
235
+ ### Example
236
+
237
+ ```ts
238
+ import {
239
+ Configuration,
240
+ MemoriesApi,
241
+ } from 'komputer-ai';
242
+ import type { ListMemoriesRequest } from 'komputer-ai';
243
+
244
+ async function example() {
245
+ console.log("🚀 Testing komputer-ai SDK...");
246
+ const api = new MemoriesApi();
247
+
248
+ const body = {
249
+ // string | Kubernetes namespace (optional)
250
+ namespace: namespace_example,
251
+ } satisfies ListMemoriesRequest;
252
+
253
+ try {
254
+ const data = await api.listMemories(body);
255
+ console.log(data);
256
+ } catch (error) {
257
+ console.error(error);
258
+ }
259
+ }
260
+
261
+ // Run the test
262
+ example().catch(console.error);
263
+ ```
264
+
265
+ ### Parameters
266
+
267
+
268
+ | Name | Type | Description | Notes |
269
+ |------------- | ------------- | ------------- | -------------|
270
+ | **namespace** | `string` | Kubernetes namespace | [Optional] [Defaults to `undefined`] |
271
+
272
+ ### Return type
273
+
274
+ **{ [key: string]: any; }**
275
+
276
+ ### Authorization
277
+
278
+ No authorization required
279
+
280
+ ### HTTP request headers
281
+
282
+ - **Content-Type**: Not defined
283
+ - **Accept**: `application/json`
284
+
285
+
286
+ ### HTTP response details
287
+ | Status code | Description | Response headers |
288
+ |-------------|-------------|------------------|
289
+ | **200** | List of memories | - |
290
+ | **500** | Internal error | - |
291
+
292
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
293
+
294
+
295
+ ## patchMemory
296
+
297
+ > MemoryResponse patchMemory(name, request, namespace)
298
+
299
+ Patch memory
300
+
301
+ Updates the content or description of an existing memory.
302
+
303
+ ### Example
304
+
305
+ ```ts
306
+ import {
307
+ Configuration,
308
+ MemoriesApi,
309
+ } from 'komputer-ai';
310
+ import type { PatchMemoryOperationRequest } from 'komputer-ai';
311
+
312
+ async function example() {
313
+ console.log("🚀 Testing komputer-ai SDK...");
314
+ const api = new MemoriesApi();
315
+
316
+ const body = {
317
+ // string | Memory name
318
+ name: name_example,
319
+ // PatchMemoryRequest | Fields to update
320
+ request: ...,
321
+ // string | Kubernetes namespace (optional)
322
+ namespace: namespace_example,
323
+ } satisfies PatchMemoryOperationRequest;
324
+
325
+ try {
326
+ const data = await api.patchMemory(body);
327
+ console.log(data);
328
+ } catch (error) {
329
+ console.error(error);
330
+ }
331
+ }
332
+
333
+ // Run the test
334
+ example().catch(console.error);
335
+ ```
336
+
337
+ ### Parameters
338
+
339
+
340
+ | Name | Type | Description | Notes |
341
+ |------------- | ------------- | ------------- | -------------|
342
+ | **name** | `string` | Memory name | [Defaults to `undefined`] |
343
+ | **request** | [PatchMemoryRequest](PatchMemoryRequest.md) | Fields to update | |
344
+ | **namespace** | `string` | Kubernetes namespace | [Optional] [Defaults to `undefined`] |
345
+
346
+ ### Return type
347
+
348
+ [**MemoryResponse**](MemoryResponse.md)
349
+
350
+ ### Authorization
351
+
352
+ No authorization required
353
+
354
+ ### HTTP request headers
355
+
356
+ - **Content-Type**: `application/json`
357
+ - **Accept**: `application/json`
358
+
359
+
360
+ ### HTTP response details
361
+ | Status code | Description | Response headers |
362
+ |-------------|-------------|------------------|
363
+ | **200** | Updated memory | - |
364
+ | **400** | Bad request | - |
365
+ | **500** | Internal error | - |
366
+
367
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
368
+
@@ -0,0 +1,46 @@
1
+
2
+ # MemoryResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `agentNames` | Array<string>
10
+ `attachedAgents` | number
11
+ `content` | string
12
+ `createdAt` | string
13
+ `description` | string
14
+ `name` | string
15
+ `namespace` | string
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { MemoryResponse } from 'komputer-ai'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "agentNames": null,
25
+ "attachedAgents": null,
26
+ "content": null,
27
+ "createdAt": null,
28
+ "description": null,
29
+ "name": null,
30
+ "namespace": null,
31
+ } satisfies MemoryResponse
32
+
33
+ console.log(example)
34
+
35
+ // Convert the instance to a JSON string
36
+ const exampleJSON: string = JSON.stringify(example)
37
+ console.log(exampleJSON)
38
+
39
+ // Parse the JSON string back to an object
40
+ const exampleParsed = JSON.parse(exampleJSON) as MemoryResponse
41
+ console.log(exampleParsed)
42
+ ```
43
+
44
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
45
+
46
+
@@ -0,0 +1,34 @@
1
+
2
+ # OfficeListResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `offices` | [Array<OfficeResponse>](OfficeResponse.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { OfficeListResponse } from 'komputer-ai'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "offices": null,
19
+ } satisfies OfficeListResponse
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as OfficeListResponse
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,40 @@
1
+
2
+ # OfficeMemberResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `lastTaskCostUSD` | string
10
+ `name` | string
11
+ `role` | string
12
+ `taskStatus` | string
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { OfficeMemberResponse } from 'komputer-ai'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "lastTaskCostUSD": null,
22
+ "name": null,
23
+ "role": null,
24
+ "taskStatus": null,
25
+ } satisfies OfficeMemberResponse
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as OfficeMemberResponse
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
@@ -0,0 +1,54 @@
1
+
2
+ # OfficeResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `activeAgents` | number
10
+ `completedAgents` | number
11
+ `createdAt` | string
12
+ `manager` | string
13
+ `members` | [Array<OfficeMemberResponse>](OfficeMemberResponse.md)
14
+ `name` | string
15
+ `namespace` | string
16
+ `phase` | string
17
+ `totalAgents` | number
18
+ `totalCostUSD` | string
19
+ `totalTokens` | number
20
+
21
+ ## Example
22
+
23
+ ```typescript
24
+ import type { OfficeResponse } from 'komputer-ai'
25
+
26
+ // TODO: Update the object below with actual values
27
+ const example = {
28
+ "activeAgents": null,
29
+ "completedAgents": null,
30
+ "createdAt": null,
31
+ "manager": null,
32
+ "members": null,
33
+ "name": null,
34
+ "namespace": null,
35
+ "phase": null,
36
+ "totalAgents": null,
37
+ "totalCostUSD": null,
38
+ "totalTokens": null,
39
+ } satisfies OfficeResponse
40
+
41
+ console.log(example)
42
+
43
+ // Convert the instance to a JSON string
44
+ const exampleJSON: string = JSON.stringify(example)
45
+ console.log(exampleJSON)
46
+
47
+ // Parse the JSON string back to an object
48
+ const exampleParsed = JSON.parse(exampleJSON) as OfficeResponse
49
+ console.log(exampleParsed)
50
+ ```
51
+
52
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
53
+
54
+