@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,98 @@
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 { CreateSecretRequest, SecretListResponse, SecretResponse, UpdateSecretRequest } from '../models/index';
14
+ export interface CreateSecretOperationRequest {
15
+ request: CreateSecretRequest;
16
+ }
17
+ export interface DeleteSecretRequest {
18
+ name: string;
19
+ namespace?: string;
20
+ }
21
+ export interface ListSecretsRequest {
22
+ namespace?: string;
23
+ all?: boolean;
24
+ }
25
+ export interface UpdateSecretOperationRequest {
26
+ name: string;
27
+ request: UpdateSecretRequest;
28
+ namespace?: string;
29
+ }
30
+ /**
31
+ *
32
+ */
33
+ export declare class SecretsApi extends runtime.BaseAPI {
34
+ /**
35
+ * Creates request options for createSecret without sending the request
36
+ */
37
+ createSecretRequestOpts(requestParameters: CreateSecretOperationRequest): Promise<runtime.RequestOpts>;
38
+ /**
39
+ * Creates a new Kubernetes secret managed by komputer.ai that can be attached to agents.
40
+ * Create managed secret
41
+ */
42
+ createSecretRaw(requestParameters: CreateSecretOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SecretResponse>>;
43
+ /**
44
+ * Creates a new Kubernetes secret managed by komputer.ai that can be attached to agents.
45
+ * Create managed secret
46
+ */
47
+ createSecret(requestParameters: CreateSecretOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SecretResponse>;
48
+ /**
49
+ * Creates request options for deleteSecret without sending the request
50
+ */
51
+ deleteSecretRequestOpts(requestParameters: DeleteSecretRequest): Promise<runtime.RequestOpts>;
52
+ /**
53
+ * Deletes a managed Kubernetes secret.
54
+ * Delete managed secret
55
+ */
56
+ deleteSecretRaw(requestParameters: DeleteSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
57
+ [key: string]: string;
58
+ }>>;
59
+ /**
60
+ * Deletes a managed Kubernetes secret.
61
+ * Delete managed secret
62
+ */
63
+ deleteSecret(requestParameters: DeleteSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
64
+ [key: string]: string;
65
+ }>;
66
+ /**
67
+ * Creates request options for listSecrets without sending the request
68
+ */
69
+ listSecretsRequestOpts(requestParameters: ListSecretsRequest): Promise<runtime.RequestOpts>;
70
+ /**
71
+ * Returns all secrets with key names (not values) and attached agent counts in the specified namespace.
72
+ * List secrets
73
+ */
74
+ listSecretsRaw(requestParameters: ListSecretsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SecretListResponse>>;
75
+ /**
76
+ * Returns all secrets with key names (not values) and attached agent counts in the specified namespace.
77
+ * List secrets
78
+ */
79
+ listSecrets(requestParameters?: ListSecretsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SecretListResponse>;
80
+ /**
81
+ * Creates request options for updateSecret without sending the request
82
+ */
83
+ updateSecretRequestOpts(requestParameters: UpdateSecretOperationRequest): Promise<runtime.RequestOpts>;
84
+ /**
85
+ * Replaces the key-value pairs in a managed Kubernetes secret.
86
+ * Update managed secret
87
+ */
88
+ updateSecretRaw(requestParameters: UpdateSecretOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
89
+ [key: string]: string;
90
+ }>>;
91
+ /**
92
+ * Replaces the key-value pairs in a managed Kubernetes secret.
93
+ * Update managed secret
94
+ */
95
+ updateSecret(requestParameters: UpdateSecretOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
96
+ [key: string]: string;
97
+ }>;
98
+ }
@@ -0,0 +1,207 @@
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 { CreateSecretRequestToJSON, SecretListResponseFromJSON, SecretResponseFromJSON, UpdateSecretRequestToJSON, } from '../models/index';
25
+ /**
26
+ *
27
+ */
28
+ export class SecretsApi extends runtime.BaseAPI {
29
+ /**
30
+ * Creates request options for createSecret without sending the request
31
+ */
32
+ createSecretRequestOpts(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 createSecret().');
36
+ }
37
+ const queryParameters = {};
38
+ const headerParameters = {};
39
+ headerParameters['Content-Type'] = 'application/json';
40
+ let urlPath = `/secrets`;
41
+ return {
42
+ path: urlPath,
43
+ method: 'POST',
44
+ headers: headerParameters,
45
+ query: queryParameters,
46
+ body: CreateSecretRequestToJSON(requestParameters['request']),
47
+ };
48
+ });
49
+ }
50
+ /**
51
+ * Creates a new Kubernetes secret managed by komputer.ai that can be attached to agents.
52
+ * Create managed secret
53
+ */
54
+ createSecretRaw(requestParameters, initOverrides) {
55
+ return __awaiter(this, void 0, void 0, function* () {
56
+ const requestOptions = yield this.createSecretRequestOpts(requestParameters);
57
+ const response = yield this.request(requestOptions, initOverrides);
58
+ return new runtime.JSONApiResponse(response, (jsonValue) => SecretResponseFromJSON(jsonValue));
59
+ });
60
+ }
61
+ /**
62
+ * Creates a new Kubernetes secret managed by komputer.ai that can be attached to agents.
63
+ * Create managed secret
64
+ */
65
+ createSecret(requestParameters, initOverrides) {
66
+ return __awaiter(this, void 0, void 0, function* () {
67
+ const response = yield this.createSecretRaw(requestParameters, initOverrides);
68
+ return yield response.value();
69
+ });
70
+ }
71
+ /**
72
+ * Creates request options for deleteSecret without sending the request
73
+ */
74
+ deleteSecretRequestOpts(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 deleteSecret().');
78
+ }
79
+ const queryParameters = {};
80
+ if (requestParameters['namespace'] != null) {
81
+ queryParameters['namespace'] = requestParameters['namespace'];
82
+ }
83
+ const headerParameters = {};
84
+ let urlPath = `/secrets/{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 a managed Kubernetes secret.
96
+ * Delete managed secret
97
+ */
98
+ deleteSecretRaw(requestParameters, initOverrides) {
99
+ return __awaiter(this, void 0, void 0, function* () {
100
+ const requestOptions = yield this.deleteSecretRequestOpts(requestParameters);
101
+ const response = yield this.request(requestOptions, initOverrides);
102
+ return new runtime.JSONApiResponse(response);
103
+ });
104
+ }
105
+ /**
106
+ * Deletes a managed Kubernetes secret.
107
+ * Delete managed secret
108
+ */
109
+ deleteSecret(requestParameters, initOverrides) {
110
+ return __awaiter(this, void 0, void 0, function* () {
111
+ const response = yield this.deleteSecretRaw(requestParameters, initOverrides);
112
+ return yield response.value();
113
+ });
114
+ }
115
+ /**
116
+ * Creates request options for listSecrets without sending the request
117
+ */
118
+ listSecretsRequestOpts(requestParameters) {
119
+ return __awaiter(this, void 0, void 0, function* () {
120
+ const queryParameters = {};
121
+ if (requestParameters['namespace'] != null) {
122
+ queryParameters['namespace'] = requestParameters['namespace'];
123
+ }
124
+ if (requestParameters['all'] != null) {
125
+ queryParameters['all'] = requestParameters['all'];
126
+ }
127
+ const headerParameters = {};
128
+ let urlPath = `/secrets`;
129
+ return {
130
+ path: urlPath,
131
+ method: 'GET',
132
+ headers: headerParameters,
133
+ query: queryParameters,
134
+ };
135
+ });
136
+ }
137
+ /**
138
+ * Returns all secrets with key names (not values) and attached agent counts in the specified namespace.
139
+ * List secrets
140
+ */
141
+ listSecretsRaw(requestParameters, initOverrides) {
142
+ return __awaiter(this, void 0, void 0, function* () {
143
+ const requestOptions = yield this.listSecretsRequestOpts(requestParameters);
144
+ const response = yield this.request(requestOptions, initOverrides);
145
+ return new runtime.JSONApiResponse(response, (jsonValue) => SecretListResponseFromJSON(jsonValue));
146
+ });
147
+ }
148
+ /**
149
+ * Returns all secrets with key names (not values) and attached agent counts in the specified namespace.
150
+ * List secrets
151
+ */
152
+ listSecrets() {
153
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
154
+ const response = yield this.listSecretsRaw(requestParameters, initOverrides);
155
+ return yield response.value();
156
+ });
157
+ }
158
+ /**
159
+ * Creates request options for updateSecret without sending the request
160
+ */
161
+ updateSecretRequestOpts(requestParameters) {
162
+ return __awaiter(this, void 0, void 0, function* () {
163
+ if (requestParameters['name'] == null) {
164
+ throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling updateSecret().');
165
+ }
166
+ if (requestParameters['request'] == null) {
167
+ throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling updateSecret().');
168
+ }
169
+ const queryParameters = {};
170
+ if (requestParameters['namespace'] != null) {
171
+ queryParameters['namespace'] = requestParameters['namespace'];
172
+ }
173
+ const headerParameters = {};
174
+ headerParameters['Content-Type'] = 'application/json';
175
+ let urlPath = `/secrets/{name}`;
176
+ urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name'])));
177
+ return {
178
+ path: urlPath,
179
+ method: 'PATCH',
180
+ headers: headerParameters,
181
+ query: queryParameters,
182
+ body: UpdateSecretRequestToJSON(requestParameters['request']),
183
+ };
184
+ });
185
+ }
186
+ /**
187
+ * Replaces the key-value pairs in a managed Kubernetes secret.
188
+ * Update managed secret
189
+ */
190
+ updateSecretRaw(requestParameters, initOverrides) {
191
+ return __awaiter(this, void 0, void 0, function* () {
192
+ const requestOptions = yield this.updateSecretRequestOpts(requestParameters);
193
+ const response = yield this.request(requestOptions, initOverrides);
194
+ return new runtime.JSONApiResponse(response);
195
+ });
196
+ }
197
+ /**
198
+ * Replaces the key-value pairs in a managed Kubernetes secret.
199
+ * Update managed secret
200
+ */
201
+ updateSecret(requestParameters, initOverrides) {
202
+ return __awaiter(this, void 0, void 0, function* () {
203
+ const response = yield this.updateSecretRaw(requestParameters, initOverrides);
204
+ return yield response.value();
205
+ });
206
+ }
207
+ }
@@ -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 { CreateSkillRequest, PatchSkillRequest, SkillResponse } from '../models/index';
14
+ export interface CreateSkillOperationRequest {
15
+ request: CreateSkillRequest;
16
+ }
17
+ export interface DeleteSkillRequest {
18
+ name: string;
19
+ namespace?: string;
20
+ }
21
+ export interface GetSkillRequest {
22
+ name: string;
23
+ namespace?: string;
24
+ }
25
+ export interface ListSkillsRequest {
26
+ namespace?: string;
27
+ }
28
+ export interface PatchSkillOperationRequest {
29
+ name: string;
30
+ request: PatchSkillRequest;
31
+ namespace?: string;
32
+ }
33
+ /**
34
+ *
35
+ */
36
+ export declare class SkillsApi extends runtime.BaseAPI {
37
+ /**
38
+ * Creates request options for createSkill without sending the request
39
+ */
40
+ createSkillRequestOpts(requestParameters: CreateSkillOperationRequest): Promise<runtime.RequestOpts>;
41
+ /**
42
+ * Creates a new KomputerSkill CR with script content that can be attached to agents.
43
+ * Create skill
44
+ */
45
+ createSkillRaw(requestParameters: CreateSkillOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillResponse>>;
46
+ /**
47
+ * Creates a new KomputerSkill CR with script content that can be attached to agents.
48
+ * Create skill
49
+ */
50
+ createSkill(requestParameters: CreateSkillOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillResponse>;
51
+ /**
52
+ * Creates request options for deleteSkill without sending the request
53
+ */
54
+ deleteSkillRequestOpts(requestParameters: DeleteSkillRequest): Promise<runtime.RequestOpts>;
55
+ /**
56
+ * Deletes the skill CR.
57
+ * Delete skill
58
+ */
59
+ deleteSkillRaw(requestParameters: DeleteSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
60
+ [key: string]: string;
61
+ }>>;
62
+ /**
63
+ * Deletes the skill CR.
64
+ * Delete skill
65
+ */
66
+ deleteSkill(requestParameters: DeleteSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
67
+ [key: string]: string;
68
+ }>;
69
+ /**
70
+ * Creates request options for getSkill without sending the request
71
+ */
72
+ getSkillRequestOpts(requestParameters: GetSkillRequest): Promise<runtime.RequestOpts>;
73
+ /**
74
+ * Returns the content, description, and attached agent count for a single skill.
75
+ * Get skill details
76
+ */
77
+ getSkillRaw(requestParameters: GetSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillResponse>>;
78
+ /**
79
+ * Returns the content, description, and attached agent count for a single skill.
80
+ * Get skill details
81
+ */
82
+ getSkill(requestParameters: GetSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillResponse>;
83
+ /**
84
+ * Creates request options for listSkills without sending the request
85
+ */
86
+ listSkillsRequestOpts(requestParameters: ListSkillsRequest): Promise<runtime.RequestOpts>;
87
+ /**
88
+ * Returns all skills with content and attached agent counts in the specified namespace.
89
+ * List skills
90
+ */
91
+ listSkillsRaw(requestParameters: ListSkillsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
92
+ [key: string]: any;
93
+ }>>;
94
+ /**
95
+ * Returns all skills with content and attached agent counts in the specified namespace.
96
+ * List skills
97
+ */
98
+ listSkills(requestParameters?: ListSkillsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
99
+ [key: string]: any;
100
+ }>;
101
+ /**
102
+ * Creates request options for patchSkill without sending the request
103
+ */
104
+ patchSkillRequestOpts(requestParameters: PatchSkillOperationRequest): Promise<runtime.RequestOpts>;
105
+ /**
106
+ * Updates the description or script content of an existing skill.
107
+ * Patch skill
108
+ */
109
+ patchSkillRaw(requestParameters: PatchSkillOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillResponse>>;
110
+ /**
111
+ * Updates the description or script content of an existing skill.
112
+ * Patch skill
113
+ */
114
+ patchSkill(requestParameters: PatchSkillOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillResponse>;
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 { CreateSkillRequestToJSON, PatchSkillRequestToJSON, SkillResponseFromJSON, } from '../models/index';
25
+ /**
26
+ *
27
+ */
28
+ export class SkillsApi extends runtime.BaseAPI {
29
+ /**
30
+ * Creates request options for createSkill without sending the request
31
+ */
32
+ createSkillRequestOpts(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 createSkill().');
36
+ }
37
+ const queryParameters = {};
38
+ const headerParameters = {};
39
+ headerParameters['Content-Type'] = 'application/json';
40
+ let urlPath = `/skills`;
41
+ return {
42
+ path: urlPath,
43
+ method: 'POST',
44
+ headers: headerParameters,
45
+ query: queryParameters,
46
+ body: CreateSkillRequestToJSON(requestParameters['request']),
47
+ };
48
+ });
49
+ }
50
+ /**
51
+ * Creates a new KomputerSkill CR with script content that can be attached to agents.
52
+ * Create skill
53
+ */
54
+ createSkillRaw(requestParameters, initOverrides) {
55
+ return __awaiter(this, void 0, void 0, function* () {
56
+ const requestOptions = yield this.createSkillRequestOpts(requestParameters);
57
+ const response = yield this.request(requestOptions, initOverrides);
58
+ return new runtime.JSONApiResponse(response, (jsonValue) => SkillResponseFromJSON(jsonValue));
59
+ });
60
+ }
61
+ /**
62
+ * Creates a new KomputerSkill CR with script content that can be attached to agents.
63
+ * Create skill
64
+ */
65
+ createSkill(requestParameters, initOverrides) {
66
+ return __awaiter(this, void 0, void 0, function* () {
67
+ const response = yield this.createSkillRaw(requestParameters, initOverrides);
68
+ return yield response.value();
69
+ });
70
+ }
71
+ /**
72
+ * Creates request options for deleteSkill without sending the request
73
+ */
74
+ deleteSkillRequestOpts(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 deleteSkill().');
78
+ }
79
+ const queryParameters = {};
80
+ if (requestParameters['namespace'] != null) {
81
+ queryParameters['namespace'] = requestParameters['namespace'];
82
+ }
83
+ const headerParameters = {};
84
+ let urlPath = `/skills/{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 skill CR.
96
+ * Delete skill
97
+ */
98
+ deleteSkillRaw(requestParameters, initOverrides) {
99
+ return __awaiter(this, void 0, void 0, function* () {
100
+ const requestOptions = yield this.deleteSkillRequestOpts(requestParameters);
101
+ const response = yield this.request(requestOptions, initOverrides);
102
+ return new runtime.JSONApiResponse(response);
103
+ });
104
+ }
105
+ /**
106
+ * Deletes the skill CR.
107
+ * Delete skill
108
+ */
109
+ deleteSkill(requestParameters, initOverrides) {
110
+ return __awaiter(this, void 0, void 0, function* () {
111
+ const response = yield this.deleteSkillRaw(requestParameters, initOverrides);
112
+ return yield response.value();
113
+ });
114
+ }
115
+ /**
116
+ * Creates request options for getSkill without sending the request
117
+ */
118
+ getSkillRequestOpts(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 getSkill().');
122
+ }
123
+ const queryParameters = {};
124
+ if (requestParameters['namespace'] != null) {
125
+ queryParameters['namespace'] = requestParameters['namespace'];
126
+ }
127
+ const headerParameters = {};
128
+ let urlPath = `/skills/{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, description, and attached agent count for a single skill.
140
+ * Get skill details
141
+ */
142
+ getSkillRaw(requestParameters, initOverrides) {
143
+ return __awaiter(this, void 0, void 0, function* () {
144
+ const requestOptions = yield this.getSkillRequestOpts(requestParameters);
145
+ const response = yield this.request(requestOptions, initOverrides);
146
+ return new runtime.JSONApiResponse(response, (jsonValue) => SkillResponseFromJSON(jsonValue));
147
+ });
148
+ }
149
+ /**
150
+ * Returns the content, description, and attached agent count for a single skill.
151
+ * Get skill details
152
+ */
153
+ getSkill(requestParameters, initOverrides) {
154
+ return __awaiter(this, void 0, void 0, function* () {
155
+ const response = yield this.getSkillRaw(requestParameters, initOverrides);
156
+ return yield response.value();
157
+ });
158
+ }
159
+ /**
160
+ * Creates request options for listSkills without sending the request
161
+ */
162
+ listSkillsRequestOpts(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 = `/skills`;
170
+ return {
171
+ path: urlPath,
172
+ method: 'GET',
173
+ headers: headerParameters,
174
+ query: queryParameters,
175
+ };
176
+ });
177
+ }
178
+ /**
179
+ * Returns all skills with content and attached agent counts in the specified namespace.
180
+ * List skills
181
+ */
182
+ listSkillsRaw(requestParameters, initOverrides) {
183
+ return __awaiter(this, void 0, void 0, function* () {
184
+ const requestOptions = yield this.listSkillsRequestOpts(requestParameters);
185
+ const response = yield this.request(requestOptions, initOverrides);
186
+ return new runtime.JSONApiResponse(response);
187
+ });
188
+ }
189
+ /**
190
+ * Returns all skills with content and attached agent counts in the specified namespace.
191
+ * List skills
192
+ */
193
+ listSkills() {
194
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
195
+ const response = yield this.listSkillsRaw(requestParameters, initOverrides);
196
+ return yield response.value();
197
+ });
198
+ }
199
+ /**
200
+ * Creates request options for patchSkill without sending the request
201
+ */
202
+ patchSkillRequestOpts(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 patchSkill().');
206
+ }
207
+ if (requestParameters['request'] == null) {
208
+ throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling patchSkill().');
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 = `/skills/{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: PatchSkillRequestToJSON(requestParameters['request']),
224
+ };
225
+ });
226
+ }
227
+ /**
228
+ * Updates the description or script content of an existing skill.
229
+ * Patch skill
230
+ */
231
+ patchSkillRaw(requestParameters, initOverrides) {
232
+ return __awaiter(this, void 0, void 0, function* () {
233
+ const requestOptions = yield this.patchSkillRequestOpts(requestParameters);
234
+ const response = yield this.request(requestOptions, initOverrides);
235
+ return new runtime.JSONApiResponse(response, (jsonValue) => SkillResponseFromJSON(jsonValue));
236
+ });
237
+ }
238
+ /**
239
+ * Updates the description or script content of an existing skill.
240
+ * Patch skill
241
+ */
242
+ patchSkill(requestParameters, initOverrides) {
243
+ return __awaiter(this, void 0, void 0, function* () {
244
+ const response = yield this.patchSkillRaw(requestParameters, initOverrides);
245
+ return yield response.value();
246
+ });
247
+ }
248
+ }