@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,56 @@
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
+ export interface ListTemplatesRequest {
14
+ namespace?: string;
15
+ }
16
+ /**
17
+ *
18
+ */
19
+ export declare class TemplatesApi extends runtime.BaseAPI {
20
+ /**
21
+ * Creates request options for listTemplates without sending the request
22
+ */
23
+ listTemplatesRequestOpts(requestParameters: ListTemplatesRequest): Promise<runtime.RequestOpts>;
24
+ /**
25
+ * Returns all agent templates (both namespace-scoped and cluster-scoped) available in the specified namespace.
26
+ * List agent templates
27
+ */
28
+ listTemplatesRaw(requestParameters: ListTemplatesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
29
+ [key: string]: any;
30
+ }>>;
31
+ /**
32
+ * Returns all agent templates (both namespace-scoped and cluster-scoped) available in the specified namespace.
33
+ * List agent templates
34
+ */
35
+ listTemplates(requestParameters?: ListTemplatesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
36
+ [key: string]: any;
37
+ }>;
38
+ /**
39
+ * Creates request options for namespacesGet without sending the request
40
+ */
41
+ namespacesGetRequestOpts(): Promise<runtime.RequestOpts>;
42
+ /**
43
+ * Returns all Kubernetes namespaces the API has access to.
44
+ * List namespaces
45
+ */
46
+ namespacesGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
47
+ [key: string]: any;
48
+ }>>;
49
+ /**
50
+ * Returns all Kubernetes namespaces the API has access to.
51
+ * List namespaces
52
+ */
53
+ namespacesGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
54
+ [key: string]: any;
55
+ }>;
56
+ }
@@ -0,0 +1,105 @@
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
+ /**
25
+ *
26
+ */
27
+ export class TemplatesApi extends runtime.BaseAPI {
28
+ /**
29
+ * Creates request options for listTemplates without sending the request
30
+ */
31
+ listTemplatesRequestOpts(requestParameters) {
32
+ return __awaiter(this, void 0, void 0, function* () {
33
+ const queryParameters = {};
34
+ if (requestParameters['namespace'] != null) {
35
+ queryParameters['namespace'] = requestParameters['namespace'];
36
+ }
37
+ const headerParameters = {};
38
+ let urlPath = `/templates`;
39
+ return {
40
+ path: urlPath,
41
+ method: 'GET',
42
+ headers: headerParameters,
43
+ query: queryParameters,
44
+ };
45
+ });
46
+ }
47
+ /**
48
+ * Returns all agent templates (both namespace-scoped and cluster-scoped) available in the specified namespace.
49
+ * List agent templates
50
+ */
51
+ listTemplatesRaw(requestParameters, initOverrides) {
52
+ return __awaiter(this, void 0, void 0, function* () {
53
+ const requestOptions = yield this.listTemplatesRequestOpts(requestParameters);
54
+ const response = yield this.request(requestOptions, initOverrides);
55
+ return new runtime.JSONApiResponse(response);
56
+ });
57
+ }
58
+ /**
59
+ * Returns all agent templates (both namespace-scoped and cluster-scoped) available in the specified namespace.
60
+ * List agent templates
61
+ */
62
+ listTemplates() {
63
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
64
+ const response = yield this.listTemplatesRaw(requestParameters, initOverrides);
65
+ return yield response.value();
66
+ });
67
+ }
68
+ /**
69
+ * Creates request options for namespacesGet without sending the request
70
+ */
71
+ namespacesGetRequestOpts() {
72
+ return __awaiter(this, void 0, void 0, function* () {
73
+ const queryParameters = {};
74
+ const headerParameters = {};
75
+ let urlPath = `/namespaces`;
76
+ return {
77
+ path: urlPath,
78
+ method: 'GET',
79
+ headers: headerParameters,
80
+ query: queryParameters,
81
+ };
82
+ });
83
+ }
84
+ /**
85
+ * Returns all Kubernetes namespaces the API has access to.
86
+ * List namespaces
87
+ */
88
+ namespacesGetRaw(initOverrides) {
89
+ return __awaiter(this, void 0, void 0, function* () {
90
+ const requestOptions = yield this.namespacesGetRequestOpts();
91
+ const response = yield this.request(requestOptions, initOverrides);
92
+ return new runtime.JSONApiResponse(response);
93
+ });
94
+ }
95
+ /**
96
+ * Returns all Kubernetes namespaces the API has access to.
97
+ * List namespaces
98
+ */
99
+ namespacesGet(initOverrides) {
100
+ return __awaiter(this, void 0, void 0, function* () {
101
+ const response = yield this.namespacesGetRaw(initOverrides);
102
+ return yield response.value();
103
+ });
104
+ }
105
+ }
@@ -0,0 +1,8 @@
1
+ export * from './AgentsApi';
2
+ export * from './ConnectorsApi';
3
+ export * from './MemoriesApi';
4
+ export * from './OfficesApi';
5
+ export * from './SchedulesApi';
6
+ export * from './SecretsApi';
7
+ export * from './SkillsApi';
8
+ export * from './TemplatesApi';
@@ -0,0 +1,173 @@
1
+ /**
2
+ * High-level convenience client for the komputer.ai API.
3
+ *
4
+ * Auto-generated by generate_client.py — do not edit manually.
5
+ *
6
+ * @example
7
+ * const client = new KomputerClient("http://localhost:8080");
8
+ * const agent = await client.createAgent({
9
+ * name: "my-agent",
10
+ * instructions: "Say hello",
11
+ * model: "claude-sonnet-4-6",
12
+ * });
13
+ */
14
+ import type { CreateScheduleAgentSpec } from "./models";
15
+ import { AgentEventStream } from "./watch";
16
+ export type { AgentEvent } from "./watch";
17
+ export declare class KomputerClient {
18
+ private _agents;
19
+ private _connectors;
20
+ private _memories;
21
+ private _offices;
22
+ private _schedules;
23
+ private _secrets;
24
+ private _skills;
25
+ private _templates;
26
+ private _baseUrl;
27
+ constructor(baseUrl?: string);
28
+ listAgents(): Promise<import("./models").AgentListResponse>;
29
+ createAgent(params: {
30
+ name: string;
31
+ instructions: string;
32
+ connectors?: string[];
33
+ lifecycle?: string;
34
+ memories?: string[];
35
+ model?: string;
36
+ namespace?: string;
37
+ officeManager?: string;
38
+ role?: string;
39
+ secretRefs?: string[];
40
+ skills?: string[];
41
+ systemPrompt?: string;
42
+ templateRef?: string;
43
+ }): Promise<import("./models").AgentResponse>;
44
+ getAgent(name: string): Promise<import("./models").AgentResponse>;
45
+ patchAgent(params: {
46
+ name: string;
47
+ connectors?: string[];
48
+ instructions?: string;
49
+ lifecycle?: string;
50
+ memories?: string[];
51
+ model?: string;
52
+ secretRefs?: string[];
53
+ skills?: string[];
54
+ systemPrompt?: string;
55
+ templateRef?: string;
56
+ }): Promise<import("./models").AgentResponse>;
57
+ deleteAgent(name: string): Promise<{
58
+ [key: string]: string;
59
+ }>;
60
+ cancelAgentTask(name: string): Promise<{
61
+ [key: string]: string;
62
+ }>;
63
+ getAgentEvents(name: string): Promise<{
64
+ [key: string]: any;
65
+ }>;
66
+ listMemories(): Promise<{
67
+ [key: string]: any;
68
+ }>;
69
+ createMemory(params: {
70
+ name: string;
71
+ content: string;
72
+ description?: string;
73
+ namespace?: string;
74
+ }): Promise<import("./models").MemoryResponse>;
75
+ getMemory(name: string): Promise<import("./models").MemoryResponse>;
76
+ patchMemory(params: {
77
+ name: string;
78
+ content?: string;
79
+ description?: string;
80
+ }): Promise<import("./models").MemoryResponse>;
81
+ deleteMemory(name: string): Promise<{
82
+ [key: string]: string;
83
+ }>;
84
+ listSkills(): Promise<{
85
+ [key: string]: any;
86
+ }>;
87
+ createSkill(params: {
88
+ name: string;
89
+ content: string;
90
+ description: string;
91
+ namespace?: string;
92
+ }): Promise<import("./models").SkillResponse>;
93
+ getSkill(name: string): Promise<import("./models").SkillResponse>;
94
+ patchSkill(params: {
95
+ name: string;
96
+ content?: string;
97
+ description?: string;
98
+ }): Promise<import("./models").SkillResponse>;
99
+ deleteSkill(name: string): Promise<{
100
+ [key: string]: string;
101
+ }>;
102
+ listSchedules(): Promise<import("./models").ScheduleListResponse>;
103
+ createSchedule(params: {
104
+ name: string;
105
+ instructions: string;
106
+ schedule: string;
107
+ agent?: CreateScheduleAgentSpec;
108
+ agentName?: string;
109
+ autoDelete?: boolean;
110
+ keepAgents?: boolean;
111
+ namespace?: string;
112
+ timezone?: string;
113
+ }): Promise<import("./models").ScheduleResponse>;
114
+ getSchedule(name: string): Promise<import("./models").ScheduleResponse>;
115
+ patchSchedule(params: {
116
+ name: string;
117
+ schedule?: string;
118
+ }): Promise<import("./models").ScheduleResponse>;
119
+ deleteSchedule(name: string): Promise<{
120
+ [key: string]: string;
121
+ }>;
122
+ listSecrets(): Promise<import("./models").SecretListResponse>;
123
+ createSecret(params: {
124
+ name: string;
125
+ data: Record<string, string>;
126
+ namespace?: string;
127
+ }): Promise<import("./models").SecretResponse>;
128
+ updateSecret(params: {
129
+ name: string;
130
+ data: Record<string, string>;
131
+ namespace?: string;
132
+ }): Promise<{
133
+ [key: string]: string;
134
+ }>;
135
+ deleteSecret(name: string): Promise<{
136
+ [key: string]: string;
137
+ }>;
138
+ listConnectors(): Promise<{
139
+ [key: string]: any;
140
+ }>;
141
+ createConnector(params: {
142
+ name: string;
143
+ service: string;
144
+ url: string;
145
+ authSecretKey?: string;
146
+ authSecretName?: string;
147
+ authType?: string;
148
+ displayName?: string;
149
+ namespace?: string;
150
+ oauthClientId?: string;
151
+ oauthClientSecret?: string;
152
+ type?: string;
153
+ }): Promise<import("./models").ConnectorResponse>;
154
+ getConnector(name: string): Promise<import("./models").ConnectorResponse>;
155
+ deleteConnector(name: string): Promise<{
156
+ [key: string]: string;
157
+ }>;
158
+ listConnectorTools(name: string): Promise<{
159
+ [key: string]: any;
160
+ }>;
161
+ listOffices(): Promise<import("./models").OfficeListResponse>;
162
+ getOffice(name: string): Promise<import("./models").OfficeResponse>;
163
+ deleteOffice(name: string): Promise<{
164
+ [key: string]: string;
165
+ }>;
166
+ getOfficeEvents(name: string): Promise<{
167
+ [key: string]: any;
168
+ }>;
169
+ listTemplates(): Promise<{
170
+ [key: string]: any;
171
+ }>;
172
+ watchAgent(name: string): AgentEventStream;
173
+ }
@@ -0,0 +1,232 @@
1
+ /**
2
+ * High-level convenience client for the komputer.ai API.
3
+ *
4
+ * Auto-generated by generate_client.py — do not edit manually.
5
+ *
6
+ * @example
7
+ * const client = new KomputerClient("http://localhost:8080");
8
+ * const agent = await client.createAgent({
9
+ * name: "my-agent",
10
+ * instructions: "Say hello",
11
+ * model: "claude-sonnet-4-6",
12
+ * });
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 { Configuration } from "./runtime";
24
+ import { AgentsApi, ConnectorsApi, MemoriesApi, OfficesApi, SchedulesApi, SecretsApi, SkillsApi, TemplatesApi } from "./apis";
25
+ import { AgentEventStream } from "./watch";
26
+ export class KomputerClient {
27
+ constructor(baseUrl = "http://localhost:8080") {
28
+ this._baseUrl = baseUrl.replace(/\/$/, "");
29
+ const config = new Configuration({ basePath: this._baseUrl + "/api/v1" });
30
+ this._agents = new AgentsApi(config);
31
+ this._connectors = new ConnectorsApi(config);
32
+ this._memories = new MemoriesApi(config);
33
+ this._offices = new OfficesApi(config);
34
+ this._schedules = new SchedulesApi(config);
35
+ this._secrets = new SecretsApi(config);
36
+ this._skills = new SkillsApi(config);
37
+ this._templates = new TemplatesApi(config);
38
+ }
39
+ // --- Agents ---
40
+ listAgents() {
41
+ return __awaiter(this, void 0, void 0, function* () {
42
+ return this._agents.listAgents({});
43
+ });
44
+ }
45
+ createAgent(params) {
46
+ return __awaiter(this, void 0, void 0, function* () {
47
+ return this._agents.createAgent({ request: { connectors: params.connectors, instructions: params.instructions, lifecycle: params.lifecycle, memories: params.memories, model: params.model, name: params.name, namespace: params.namespace, officeManager: params.officeManager, role: params.role, secretRefs: params.secretRefs, skills: params.skills, systemPrompt: params.systemPrompt, templateRef: params.templateRef } });
48
+ });
49
+ }
50
+ getAgent(name) {
51
+ return __awaiter(this, void 0, void 0, function* () {
52
+ return this._agents.getAgent({ name });
53
+ });
54
+ }
55
+ patchAgent(params) {
56
+ return __awaiter(this, void 0, void 0, function* () {
57
+ return this._agents.patchAgent({ name: params.name, request: { connectors: params.connectors, instructions: params.instructions, lifecycle: params.lifecycle, memories: params.memories, model: params.model, secretRefs: params.secretRefs, skills: params.skills, systemPrompt: params.systemPrompt, templateRef: params.templateRef } });
58
+ });
59
+ }
60
+ deleteAgent(name) {
61
+ return __awaiter(this, void 0, void 0, function* () {
62
+ return this._agents.deleteAgent({ name });
63
+ });
64
+ }
65
+ cancelAgentTask(name) {
66
+ return __awaiter(this, void 0, void 0, function* () {
67
+ return this._agents.cancelAgentTask({ name });
68
+ });
69
+ }
70
+ getAgentEvents(name) {
71
+ return __awaiter(this, void 0, void 0, function* () {
72
+ return this._agents.getAgentEvents({ name });
73
+ });
74
+ }
75
+ // --- Memories ---
76
+ listMemories() {
77
+ return __awaiter(this, void 0, void 0, function* () {
78
+ return this._memories.listMemories({});
79
+ });
80
+ }
81
+ createMemory(params) {
82
+ return __awaiter(this, void 0, void 0, function* () {
83
+ return this._memories.createMemory({ request: { content: params.content, description: params.description, name: params.name, namespace: params.namespace } });
84
+ });
85
+ }
86
+ getMemory(name) {
87
+ return __awaiter(this, void 0, void 0, function* () {
88
+ return this._memories.getMemory({ name });
89
+ });
90
+ }
91
+ patchMemory(params) {
92
+ return __awaiter(this, void 0, void 0, function* () {
93
+ return this._memories.patchMemory({ name: params.name, request: { content: params.content, description: params.description } });
94
+ });
95
+ }
96
+ deleteMemory(name) {
97
+ return __awaiter(this, void 0, void 0, function* () {
98
+ return this._memories.deleteMemory({ name });
99
+ });
100
+ }
101
+ // --- Skills ---
102
+ listSkills() {
103
+ return __awaiter(this, void 0, void 0, function* () {
104
+ return this._skills.listSkills({});
105
+ });
106
+ }
107
+ createSkill(params) {
108
+ return __awaiter(this, void 0, void 0, function* () {
109
+ return this._skills.createSkill({ request: { content: params.content, description: params.description, name: params.name, namespace: params.namespace } });
110
+ });
111
+ }
112
+ getSkill(name) {
113
+ return __awaiter(this, void 0, void 0, function* () {
114
+ return this._skills.getSkill({ name });
115
+ });
116
+ }
117
+ patchSkill(params) {
118
+ return __awaiter(this, void 0, void 0, function* () {
119
+ return this._skills.patchSkill({ name: params.name, request: { content: params.content, description: params.description } });
120
+ });
121
+ }
122
+ deleteSkill(name) {
123
+ return __awaiter(this, void 0, void 0, function* () {
124
+ return this._skills.deleteSkill({ name });
125
+ });
126
+ }
127
+ // --- Schedules ---
128
+ listSchedules() {
129
+ return __awaiter(this, void 0, void 0, function* () {
130
+ return this._schedules.listSchedules({});
131
+ });
132
+ }
133
+ createSchedule(params) {
134
+ return __awaiter(this, void 0, void 0, function* () {
135
+ return this._schedules.createSchedule({ request: { agent: params.agent, agentName: params.agentName, autoDelete: params.autoDelete, instructions: params.instructions, keepAgents: params.keepAgents, name: params.name, namespace: params.namespace, schedule: params.schedule, timezone: params.timezone } });
136
+ });
137
+ }
138
+ getSchedule(name) {
139
+ return __awaiter(this, void 0, void 0, function* () {
140
+ return this._schedules.getSchedule({ name });
141
+ });
142
+ }
143
+ patchSchedule(params) {
144
+ return __awaiter(this, void 0, void 0, function* () {
145
+ return this._schedules.patchSchedule({ name: params.name, request: { schedule: params.schedule } });
146
+ });
147
+ }
148
+ deleteSchedule(name) {
149
+ return __awaiter(this, void 0, void 0, function* () {
150
+ return this._schedules.deleteSchedule({ name });
151
+ });
152
+ }
153
+ // --- Secrets ---
154
+ listSecrets() {
155
+ return __awaiter(this, void 0, void 0, function* () {
156
+ return this._secrets.listSecrets({});
157
+ });
158
+ }
159
+ createSecret(params) {
160
+ return __awaiter(this, void 0, void 0, function* () {
161
+ return this._secrets.createSecret({ request: { data: params.data, name: params.name, namespace: params.namespace } });
162
+ });
163
+ }
164
+ updateSecret(params) {
165
+ return __awaiter(this, void 0, void 0, function* () {
166
+ return this._secrets.updateSecret({ name: params.name, request: { data: params.data, namespace: params.namespace } });
167
+ });
168
+ }
169
+ deleteSecret(name) {
170
+ return __awaiter(this, void 0, void 0, function* () {
171
+ return this._secrets.deleteSecret({ name });
172
+ });
173
+ }
174
+ // --- Connectors ---
175
+ listConnectors() {
176
+ return __awaiter(this, void 0, void 0, function* () {
177
+ return this._connectors.listConnectors({});
178
+ });
179
+ }
180
+ createConnector(params) {
181
+ return __awaiter(this, void 0, void 0, function* () {
182
+ return this._connectors.createConnector({ request: { authSecretKey: params.authSecretKey, authSecretName: params.authSecretName, authType: params.authType, displayName: params.displayName, name: params.name, namespace: params.namespace, oauthClientId: params.oauthClientId, oauthClientSecret: params.oauthClientSecret, service: params.service, type: params.type, url: params.url } });
183
+ });
184
+ }
185
+ getConnector(name) {
186
+ return __awaiter(this, void 0, void 0, function* () {
187
+ return this._connectors.getConnector({ name });
188
+ });
189
+ }
190
+ deleteConnector(name) {
191
+ return __awaiter(this, void 0, void 0, function* () {
192
+ return this._connectors.deleteConnector({ name });
193
+ });
194
+ }
195
+ listConnectorTools(name) {
196
+ return __awaiter(this, void 0, void 0, function* () {
197
+ return this._connectors.listConnectorTools({ name });
198
+ });
199
+ }
200
+ // --- Offices ---
201
+ listOffices() {
202
+ return __awaiter(this, void 0, void 0, function* () {
203
+ return this._offices.listOffices({});
204
+ });
205
+ }
206
+ getOffice(name) {
207
+ return __awaiter(this, void 0, void 0, function* () {
208
+ return this._offices.getOffice({ name });
209
+ });
210
+ }
211
+ deleteOffice(name) {
212
+ return __awaiter(this, void 0, void 0, function* () {
213
+ return this._offices.deleteOffice({ name });
214
+ });
215
+ }
216
+ getOfficeEvents(name) {
217
+ return __awaiter(this, void 0, void 0, function* () {
218
+ return this._offices.getOfficeEvents({ name });
219
+ });
220
+ }
221
+ // --- Templates ---
222
+ listTemplates() {
223
+ return __awaiter(this, void 0, void 0, function* () {
224
+ return this._templates.listTemplates({});
225
+ });
226
+ }
227
+ // --- WebSocket ---
228
+ watchAgent(name) {
229
+ const wsUrl = this._baseUrl.replace("http://", "ws://").replace("https://", "wss://");
230
+ return new AgentEventStream(wsUrl, name);
231
+ }
232
+ }
@@ -1,5 +1,3 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
1
  export * from './runtime';
4
2
  export * from './apis/index';
5
3
  export * from './models/index';
@@ -0,0 +1,6 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './runtime';
4
+ export * from './apis/index';
5
+ export * from './models/index';
6
+ export { KomputerClient } from './client';
@@ -0,0 +1,33 @@
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 type { AgentResponse } from './AgentResponse';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AgentListResponse
17
+ */
18
+ export interface AgentListResponse {
19
+ /**
20
+ *
21
+ * @type {Array<AgentResponse>}
22
+ * @memberof AgentListResponse
23
+ */
24
+ agents?: Array<AgentResponse>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the AgentListResponse interface.
28
+ */
29
+ export declare function instanceOfAgentListResponse(value: object): value is AgentListResponse;
30
+ export declare function AgentListResponseFromJSON(json: any): AgentListResponse;
31
+ export declare function AgentListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentListResponse;
32
+ export declare function AgentListResponseToJSON(json: any): AgentListResponse;
33
+ export declare function AgentListResponseToJSONTyped(value?: AgentListResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,42 @@
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
+ import { AgentResponseFromJSON, AgentResponseToJSON, } from './AgentResponse';
15
+ /**
16
+ * Check if a given object implements the AgentListResponse interface.
17
+ */
18
+ export function instanceOfAgentListResponse(value) {
19
+ return true;
20
+ }
21
+ export function AgentListResponseFromJSON(json) {
22
+ return AgentListResponseFromJSONTyped(json, false);
23
+ }
24
+ export function AgentListResponseFromJSONTyped(json, ignoreDiscriminator) {
25
+ if (json == null) {
26
+ return json;
27
+ }
28
+ return {
29
+ 'agents': json['agents'] == null ? undefined : (json['agents'].map(AgentResponseFromJSON)),
30
+ };
31
+ }
32
+ export function AgentListResponseToJSON(json) {
33
+ return AgentListResponseToJSONTyped(json, false);
34
+ }
35
+ export function AgentListResponseToJSONTyped(value, ignoreDiscriminator = false) {
36
+ if (value == null) {
37
+ return value;
38
+ }
39
+ return {
40
+ 'agents': value['agents'] == null ? undefined : (value['agents'].map(AgentResponseToJSON)),
41
+ };
42
+ }