@komputer-ai/sdk 0.13.1 → 0.14.0

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 (54) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/dist/apis/SquadsApi.d.ts +149 -0
  3. package/dist/apis/SquadsApi.js +349 -0
  4. package/dist/apis/index.d.ts +1 -0
  5. package/dist/apis/index.js +1 -0
  6. package/dist/esm/apis/SquadsApi.d.ts +149 -0
  7. package/dist/esm/apis/SquadsApi.js +345 -0
  8. package/dist/esm/apis/index.d.ts +1 -0
  9. package/dist/esm/apis/index.js +1 -0
  10. package/dist/esm/models/AddSquadMemberRequest.d.ts +40 -0
  11. package/dist/esm/models/AddSquadMemberRequest.js +45 -0
  12. package/dist/esm/models/CreateSquadRequest.d.ts +51 -0
  13. package/dist/esm/models/CreateSquadRequest.js +52 -0
  14. package/dist/esm/models/PatchSquadRequest.d.ts +39 -0
  15. package/dist/esm/models/PatchSquadRequest.js +44 -0
  16. package/dist/esm/models/SquadListResponse.d.ts +33 -0
  17. package/dist/esm/models/SquadListResponse.js +42 -0
  18. package/dist/esm/models/SquadMemberResponse.d.ts +44 -0
  19. package/dist/esm/models/SquadMemberResponse.js +45 -0
  20. package/dist/esm/models/SquadResponse.d.ts +81 -0
  21. package/dist/esm/models/SquadResponse.js +58 -0
  22. package/dist/esm/models/V1alpha1AgentLifecycle.d.ts +26 -0
  23. package/dist/esm/models/V1alpha1AgentLifecycle.js +44 -0
  24. package/dist/esm/models/V1alpha1KomputerAgentSpec.d.ts +152 -0
  25. package/dist/esm/models/V1alpha1KomputerAgentSpec.js +72 -0
  26. package/dist/esm/models/V1alpha1KomputerSquadMember.d.ts +40 -0
  27. package/dist/esm/models/V1alpha1KomputerSquadMember.js +45 -0
  28. package/dist/esm/models/V1alpha1KomputerSquadMemberRef.d.ts +38 -0
  29. package/dist/esm/models/V1alpha1KomputerSquadMemberRef.js +43 -0
  30. package/dist/esm/models/index.d.ts +10 -0
  31. package/dist/esm/models/index.js +10 -0
  32. package/dist/models/AddSquadMemberRequest.d.ts +40 -0
  33. package/dist/models/AddSquadMemberRequest.js +52 -0
  34. package/dist/models/CreateSquadRequest.d.ts +51 -0
  35. package/dist/models/CreateSquadRequest.js +59 -0
  36. package/dist/models/PatchSquadRequest.d.ts +39 -0
  37. package/dist/models/PatchSquadRequest.js +51 -0
  38. package/dist/models/SquadListResponse.d.ts +33 -0
  39. package/dist/models/SquadListResponse.js +49 -0
  40. package/dist/models/SquadMemberResponse.d.ts +44 -0
  41. package/dist/models/SquadMemberResponse.js +52 -0
  42. package/dist/models/SquadResponse.d.ts +81 -0
  43. package/dist/models/SquadResponse.js +65 -0
  44. package/dist/models/V1alpha1AgentLifecycle.d.ts +26 -0
  45. package/dist/models/V1alpha1AgentLifecycle.js +52 -0
  46. package/dist/models/V1alpha1KomputerAgentSpec.d.ts +152 -0
  47. package/dist/models/V1alpha1KomputerAgentSpec.js +79 -0
  48. package/dist/models/V1alpha1KomputerSquadMember.d.ts +40 -0
  49. package/dist/models/V1alpha1KomputerSquadMember.js +52 -0
  50. package/dist/models/V1alpha1KomputerSquadMemberRef.d.ts +38 -0
  51. package/dist/models/V1alpha1KomputerSquadMemberRef.js +50 -0
  52. package/dist/models/index.d.ts +10 -0
  53. package/dist/models/index.js +10 -0
  54. package/package.json +1 -1
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * komputer.ai API
6
+ * API-first platform for running persistent Claude AI agents on Kubernetes. Designed to be driven by external systems — create agents, send tasks, and stream real-time results via REST + WebSocket.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfSquadListResponse = instanceOfSquadListResponse;
17
+ exports.SquadListResponseFromJSON = SquadListResponseFromJSON;
18
+ exports.SquadListResponseFromJSONTyped = SquadListResponseFromJSONTyped;
19
+ exports.SquadListResponseToJSON = SquadListResponseToJSON;
20
+ exports.SquadListResponseToJSONTyped = SquadListResponseToJSONTyped;
21
+ const SquadResponse_1 = require("./SquadResponse");
22
+ /**
23
+ * Check if a given object implements the SquadListResponse interface.
24
+ */
25
+ function instanceOfSquadListResponse(value) {
26
+ return true;
27
+ }
28
+ function SquadListResponseFromJSON(json) {
29
+ return SquadListResponseFromJSONTyped(json, false);
30
+ }
31
+ function SquadListResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'squads': json['squads'] == null ? undefined : (json['squads'].map(SquadResponse_1.SquadResponseFromJSON)),
37
+ };
38
+ }
39
+ function SquadListResponseToJSON(json) {
40
+ return SquadListResponseToJSONTyped(json, false);
41
+ }
42
+ function SquadListResponseToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'squads': value['squads'] == null ? undefined : (value['squads'].map(SquadResponse_1.SquadResponseToJSON)),
48
+ };
49
+ }
@@ -0,0 +1,44 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface SquadMemberResponse
16
+ */
17
+ export interface SquadMemberResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SquadMemberResponse
22
+ */
23
+ name?: string;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof SquadMemberResponse
28
+ */
29
+ ready?: boolean;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SquadMemberResponse
34
+ */
35
+ taskStatus?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the SquadMemberResponse interface.
39
+ */
40
+ export declare function instanceOfSquadMemberResponse(value: object): value is SquadMemberResponse;
41
+ export declare function SquadMemberResponseFromJSON(json: any): SquadMemberResponse;
42
+ export declare function SquadMemberResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SquadMemberResponse;
43
+ export declare function SquadMemberResponseToJSON(json: any): SquadMemberResponse;
44
+ export declare function SquadMemberResponseToJSONTyped(value?: SquadMemberResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * komputer.ai API
6
+ * API-first platform for running persistent Claude AI agents on Kubernetes. Designed to be driven by external systems — create agents, send tasks, and stream real-time results via REST + WebSocket.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfSquadMemberResponse = instanceOfSquadMemberResponse;
17
+ exports.SquadMemberResponseFromJSON = SquadMemberResponseFromJSON;
18
+ exports.SquadMemberResponseFromJSONTyped = SquadMemberResponseFromJSONTyped;
19
+ exports.SquadMemberResponseToJSON = SquadMemberResponseToJSON;
20
+ exports.SquadMemberResponseToJSONTyped = SquadMemberResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SquadMemberResponse interface.
23
+ */
24
+ function instanceOfSquadMemberResponse(value) {
25
+ return true;
26
+ }
27
+ function SquadMemberResponseFromJSON(json) {
28
+ return SquadMemberResponseFromJSONTyped(json, false);
29
+ }
30
+ function SquadMemberResponseFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'name': json['name'] == null ? undefined : json['name'],
36
+ 'ready': json['ready'] == null ? undefined : json['ready'],
37
+ 'taskStatus': json['taskStatus'] == null ? undefined : json['taskStatus'],
38
+ };
39
+ }
40
+ function SquadMemberResponseToJSON(json) {
41
+ return SquadMemberResponseToJSONTyped(json, false);
42
+ }
43
+ function SquadMemberResponseToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'name': value['name'],
49
+ 'ready': value['ready'],
50
+ 'taskStatus': value['taskStatus'],
51
+ };
52
+ }
@@ -0,0 +1,81 @@
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 { SquadMemberResponse } from './SquadMemberResponse';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SquadResponse
17
+ */
18
+ export interface SquadResponse {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof SquadResponse
23
+ */
24
+ createdAt?: string;
25
+ /**
26
+ *
27
+ * @type {Array<SquadMemberResponse>}
28
+ * @memberof SquadResponse
29
+ */
30
+ members?: Array<SquadMemberResponse>;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof SquadResponse
35
+ */
36
+ message?: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof SquadResponse
41
+ */
42
+ name?: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof SquadResponse
47
+ */
48
+ namespace?: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof SquadResponse
53
+ */
54
+ orphanTTL?: string;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof SquadResponse
59
+ */
60
+ orphanedSince?: string;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof SquadResponse
65
+ */
66
+ phase?: string;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof SquadResponse
71
+ */
72
+ podName?: string;
73
+ }
74
+ /**
75
+ * Check if a given object implements the SquadResponse interface.
76
+ */
77
+ export declare function instanceOfSquadResponse(value: object): value is SquadResponse;
78
+ export declare function SquadResponseFromJSON(json: any): SquadResponse;
79
+ export declare function SquadResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SquadResponse;
80
+ export declare function SquadResponseToJSON(json: any): SquadResponse;
81
+ export declare function SquadResponseToJSONTyped(value?: SquadResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * komputer.ai API
6
+ * API-first platform for running persistent Claude AI agents on Kubernetes. Designed to be driven by external systems — create agents, send tasks, and stream real-time results via REST + WebSocket.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfSquadResponse = instanceOfSquadResponse;
17
+ exports.SquadResponseFromJSON = SquadResponseFromJSON;
18
+ exports.SquadResponseFromJSONTyped = SquadResponseFromJSONTyped;
19
+ exports.SquadResponseToJSON = SquadResponseToJSON;
20
+ exports.SquadResponseToJSONTyped = SquadResponseToJSONTyped;
21
+ const SquadMemberResponse_1 = require("./SquadMemberResponse");
22
+ /**
23
+ * Check if a given object implements the SquadResponse interface.
24
+ */
25
+ function instanceOfSquadResponse(value) {
26
+ return true;
27
+ }
28
+ function SquadResponseFromJSON(json) {
29
+ return SquadResponseFromJSONTyped(json, false);
30
+ }
31
+ function SquadResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
37
+ 'members': json['members'] == null ? undefined : (json['members'].map(SquadMemberResponse_1.SquadMemberResponseFromJSON)),
38
+ 'message': json['message'] == null ? undefined : json['message'],
39
+ 'name': json['name'] == null ? undefined : json['name'],
40
+ 'namespace': json['namespace'] == null ? undefined : json['namespace'],
41
+ 'orphanTTL': json['orphanTTL'] == null ? undefined : json['orphanTTL'],
42
+ 'orphanedSince': json['orphanedSince'] == null ? undefined : json['orphanedSince'],
43
+ 'phase': json['phase'] == null ? undefined : json['phase'],
44
+ 'podName': json['podName'] == null ? undefined : json['podName'],
45
+ };
46
+ }
47
+ function SquadResponseToJSON(json) {
48
+ return SquadResponseToJSONTyped(json, false);
49
+ }
50
+ function SquadResponseToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'createdAt': value['createdAt'],
56
+ 'members': value['members'] == null ? undefined : (value['members'].map(SquadMemberResponse_1.SquadMemberResponseToJSON)),
57
+ 'message': value['message'],
58
+ 'name': value['name'],
59
+ 'namespace': value['namespace'],
60
+ 'orphanTTL': value['orphanTTL'],
61
+ 'orphanedSince': value['orphanedSince'],
62
+ 'phase': value['phase'],
63
+ 'podName': value['podName'],
64
+ };
65
+ }
@@ -0,0 +1,26 @@
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
+ /**
13
+ *
14
+ * @export
15
+ */
16
+ export declare const V1alpha1AgentLifecycle: {
17
+ readonly AgentLifecycleDefault: "";
18
+ readonly AgentLifecycleSleep: "Sleep";
19
+ readonly AgentLifecycleAutoDelete: "AutoDelete";
20
+ };
21
+ export type V1alpha1AgentLifecycle = typeof V1alpha1AgentLifecycle[keyof typeof V1alpha1AgentLifecycle];
22
+ export declare function instanceOfV1alpha1AgentLifecycle(value: any): boolean;
23
+ export declare function V1alpha1AgentLifecycleFromJSON(json: any): V1alpha1AgentLifecycle;
24
+ export declare function V1alpha1AgentLifecycleFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1AgentLifecycle;
25
+ export declare function V1alpha1AgentLifecycleToJSON(value?: V1alpha1AgentLifecycle | null): any;
26
+ export declare function V1alpha1AgentLifecycleToJSONTyped(value: any, ignoreDiscriminator: boolean): V1alpha1AgentLifecycle;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * komputer.ai API
6
+ * API-first platform for running persistent Claude AI agents on Kubernetes. Designed to be driven by external systems — create agents, send tasks, and stream real-time results via REST + WebSocket.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.V1alpha1AgentLifecycle = void 0;
17
+ exports.instanceOfV1alpha1AgentLifecycle = instanceOfV1alpha1AgentLifecycle;
18
+ exports.V1alpha1AgentLifecycleFromJSON = V1alpha1AgentLifecycleFromJSON;
19
+ exports.V1alpha1AgentLifecycleFromJSONTyped = V1alpha1AgentLifecycleFromJSONTyped;
20
+ exports.V1alpha1AgentLifecycleToJSON = V1alpha1AgentLifecycleToJSON;
21
+ exports.V1alpha1AgentLifecycleToJSONTyped = V1alpha1AgentLifecycleToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.V1alpha1AgentLifecycle = {
27
+ AgentLifecycleDefault: '',
28
+ AgentLifecycleSleep: 'Sleep',
29
+ AgentLifecycleAutoDelete: 'AutoDelete'
30
+ };
31
+ function instanceOfV1alpha1AgentLifecycle(value) {
32
+ for (const key in exports.V1alpha1AgentLifecycle) {
33
+ if (Object.prototype.hasOwnProperty.call(exports.V1alpha1AgentLifecycle, key)) {
34
+ if (exports.V1alpha1AgentLifecycle[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+ function V1alpha1AgentLifecycleFromJSON(json) {
42
+ return V1alpha1AgentLifecycleFromJSONTyped(json, false);
43
+ }
44
+ function V1alpha1AgentLifecycleFromJSONTyped(json, ignoreDiscriminator) {
45
+ return json;
46
+ }
47
+ function V1alpha1AgentLifecycleToJSON(value) {
48
+ return value;
49
+ }
50
+ function V1alpha1AgentLifecycleToJSONTyped(value, ignoreDiscriminator) {
51
+ return value;
52
+ }
@@ -0,0 +1,152 @@
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 { V1alpha1AgentLifecycle } from './V1alpha1AgentLifecycle';
13
+ import type { V1alpha1StorageSpec } from './V1alpha1StorageSpec';
14
+ import type { V1PodSpec } from './V1PodSpec';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface V1alpha1KomputerAgentSpec
19
+ */
20
+ export interface V1alpha1KomputerAgentSpec {
21
+ /**
22
+ * Connectors is a list of KomputerConnector names to attach to this agent.
23
+ * Names can be "name" (same namespace) or "namespace/name" (cross-namespace).
24
+ * +optional
25
+ * @type {Array<string>}
26
+ * @memberof V1alpha1KomputerAgentSpec
27
+ */
28
+ connectors?: Array<string>;
29
+ /**
30
+ * Instructions is the user's task for the Claude agent.
31
+ * @type {string}
32
+ * @memberof V1alpha1KomputerAgentSpec
33
+ */
34
+ instructions?: string;
35
+ /**
36
+ * InternalSystemPrompt is the built-in system prompt set by the API (role prompt + memories).
37
+ * +optional
38
+ * @type {string}
39
+ * @memberof V1alpha1KomputerAgentSpec
40
+ */
41
+ internalSystemPrompt?: string;
42
+ /**
43
+ * Lifecycle controls what happens after task completion.
44
+ * Empty (default) keeps the pod running, "Sleep" deletes the pod but keeps the PVC,
45
+ * "AutoDelete" deletes the entire agent after task completion.
46
+ * +kubebuilder:validation:Enum="";Sleep;AutoDelete
47
+ * +optional
48
+ * @type {V1alpha1AgentLifecycle}
49
+ * @memberof V1alpha1KomputerAgentSpec
50
+ */
51
+ lifecycle?: V1alpha1AgentLifecycle;
52
+ /**
53
+ * Memories is a list of KomputerMemory names to attach to this agent.
54
+ * Names can be "name" (same namespace) or "namespace/name" (cross-namespace).
55
+ * +optional
56
+ * @type {Array<string>}
57
+ * @memberof V1alpha1KomputerAgentSpec
58
+ */
59
+ memories?: Array<string>;
60
+ /**
61
+ * Model is the Claude model to use.
62
+ * +kubebuilder:default="claude-sonnet-4-6"
63
+ * @type {string}
64
+ * @memberof V1alpha1KomputerAgentSpec
65
+ */
66
+ model?: string;
67
+ /**
68
+ * OfficeManager is the name of the manager agent that created this sub-agent.
69
+ * When set, the operator creates/joins a KomputerOffice for the group.
70
+ * +optional
71
+ * @type {string}
72
+ * @memberof V1alpha1KomputerAgentSpec
73
+ */
74
+ officeManager?: string;
75
+ /**
76
+ * PodSpec, when set, overrides the template's PodSpec for this agent.
77
+ * Container fields are merged by name; non-zero fields from this PodSpec
78
+ * override the template's container fields. Takes effect on next pod start
79
+ * (existing pods are not mutated).
80
+ * +optional
81
+ * @type {V1PodSpec}
82
+ * @memberof V1alpha1KomputerAgentSpec
83
+ */
84
+ podSpec?: V1PodSpec;
85
+ /**
86
+ * Priority controls admission order when the template's maxConcurrentAgents
87
+ * limit is reached. Higher number = admitted first (matches K8s PodPriority).
88
+ * Ties broken by creationTimestamp (older first). Defaults to 0.
89
+ * +kubebuilder:default=0
90
+ * +optional
91
+ * @type {number}
92
+ * @memberof V1alpha1KomputerAgentSpec
93
+ */
94
+ priority?: number;
95
+ /**
96
+ * Role is "manager" or "worker". Managers get orchestration tools.
97
+ * Role is "manager" or "worker". Defaults to "manager" for top-level agents.
98
+ * Sub-agents created by managers are explicitly set to "worker".
99
+ * +kubebuilder:default="manager"
100
+ * +kubebuilder:validation:Enum=worker;manager
101
+ * +optional
102
+ * @type {string}
103
+ * @memberof V1alpha1KomputerAgentSpec
104
+ */
105
+ role?: string;
106
+ /**
107
+ * Secrets is a list of K8s Secret names containing agent-specific secrets.
108
+ * Each key in each secret is injected as an env var into the agent pod.
109
+ * +optional
110
+ * @type {Array<string>}
111
+ * @memberof V1alpha1KomputerAgentSpec
112
+ */
113
+ secrets?: Array<string>;
114
+ /**
115
+ * Skills is a list of KomputerSkill names to attach to this agent.
116
+ * Names can be "name" (same namespace) or "namespace/name" (cross-namespace).
117
+ * +optional
118
+ * @type {Array<string>}
119
+ * @memberof V1alpha1KomputerAgentSpec
120
+ */
121
+ skills?: Array<string>;
122
+ /**
123
+ * Storage, when set, overrides the template's storage settings for this agent.
124
+ * Existing PVCs are expanded in place when the storage class supports it.
125
+ * +optional
126
+ * @type {V1alpha1StorageSpec}
127
+ * @memberof V1alpha1KomputerAgentSpec
128
+ */
129
+ storage?: V1alpha1StorageSpec;
130
+ /**
131
+ * SystemPrompt is a custom system prompt provided by the user, appended to the internal prompt.
132
+ * +optional
133
+ * @type {string}
134
+ * @memberof V1alpha1KomputerAgentSpec
135
+ */
136
+ systemPrompt?: string;
137
+ /**
138
+ * TemplateRef is the name of the KomputerAgentTemplate to use.
139
+ * +kubebuilder:default="default"
140
+ * @type {string}
141
+ * @memberof V1alpha1KomputerAgentSpec
142
+ */
143
+ templateRef?: string;
144
+ }
145
+ /**
146
+ * Check if a given object implements the V1alpha1KomputerAgentSpec interface.
147
+ */
148
+ export declare function instanceOfV1alpha1KomputerAgentSpec(value: object): value is V1alpha1KomputerAgentSpec;
149
+ export declare function V1alpha1KomputerAgentSpecFromJSON(json: any): V1alpha1KomputerAgentSpec;
150
+ export declare function V1alpha1KomputerAgentSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1KomputerAgentSpec;
151
+ export declare function V1alpha1KomputerAgentSpecToJSON(json: any): V1alpha1KomputerAgentSpec;
152
+ export declare function V1alpha1KomputerAgentSpecToJSONTyped(value?: V1alpha1KomputerAgentSpec | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * komputer.ai API
6
+ * API-first platform for running persistent Claude AI agents on Kubernetes. Designed to be driven by external systems — create agents, send tasks, and stream real-time results via REST + WebSocket.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfV1alpha1KomputerAgentSpec = instanceOfV1alpha1KomputerAgentSpec;
17
+ exports.V1alpha1KomputerAgentSpecFromJSON = V1alpha1KomputerAgentSpecFromJSON;
18
+ exports.V1alpha1KomputerAgentSpecFromJSONTyped = V1alpha1KomputerAgentSpecFromJSONTyped;
19
+ exports.V1alpha1KomputerAgentSpecToJSON = V1alpha1KomputerAgentSpecToJSON;
20
+ exports.V1alpha1KomputerAgentSpecToJSONTyped = V1alpha1KomputerAgentSpecToJSONTyped;
21
+ const V1alpha1AgentLifecycle_1 = require("./V1alpha1AgentLifecycle");
22
+ const V1alpha1StorageSpec_1 = require("./V1alpha1StorageSpec");
23
+ const V1PodSpec_1 = require("./V1PodSpec");
24
+ /**
25
+ * Check if a given object implements the V1alpha1KomputerAgentSpec interface.
26
+ */
27
+ function instanceOfV1alpha1KomputerAgentSpec(value) {
28
+ return true;
29
+ }
30
+ function V1alpha1KomputerAgentSpecFromJSON(json) {
31
+ return V1alpha1KomputerAgentSpecFromJSONTyped(json, false);
32
+ }
33
+ function V1alpha1KomputerAgentSpecFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'connectors': json['connectors'] == null ? undefined : json['connectors'],
39
+ 'instructions': json['instructions'] == null ? undefined : json['instructions'],
40
+ 'internalSystemPrompt': json['internalSystemPrompt'] == null ? undefined : json['internalSystemPrompt'],
41
+ 'lifecycle': json['lifecycle'] == null ? undefined : (0, V1alpha1AgentLifecycle_1.V1alpha1AgentLifecycleFromJSON)(json['lifecycle']),
42
+ 'memories': json['memories'] == null ? undefined : json['memories'],
43
+ 'model': json['model'] == null ? undefined : json['model'],
44
+ 'officeManager': json['officeManager'] == null ? undefined : json['officeManager'],
45
+ 'podSpec': json['podSpec'] == null ? undefined : (0, V1PodSpec_1.V1PodSpecFromJSON)(json['podSpec']),
46
+ 'priority': json['priority'] == null ? undefined : json['priority'],
47
+ 'role': json['role'] == null ? undefined : json['role'],
48
+ 'secrets': json['secrets'] == null ? undefined : json['secrets'],
49
+ 'skills': json['skills'] == null ? undefined : json['skills'],
50
+ 'storage': json['storage'] == null ? undefined : (0, V1alpha1StorageSpec_1.V1alpha1StorageSpecFromJSON)(json['storage']),
51
+ 'systemPrompt': json['systemPrompt'] == null ? undefined : json['systemPrompt'],
52
+ 'templateRef': json['templateRef'] == null ? undefined : json['templateRef'],
53
+ };
54
+ }
55
+ function V1alpha1KomputerAgentSpecToJSON(json) {
56
+ return V1alpha1KomputerAgentSpecToJSONTyped(json, false);
57
+ }
58
+ function V1alpha1KomputerAgentSpecToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'connectors': value['connectors'],
64
+ 'instructions': value['instructions'],
65
+ 'internalSystemPrompt': value['internalSystemPrompt'],
66
+ 'lifecycle': (0, V1alpha1AgentLifecycle_1.V1alpha1AgentLifecycleToJSON)(value['lifecycle']),
67
+ 'memories': value['memories'],
68
+ 'model': value['model'],
69
+ 'officeManager': value['officeManager'],
70
+ 'podSpec': (0, V1PodSpec_1.V1PodSpecToJSON)(value['podSpec']),
71
+ 'priority': value['priority'],
72
+ 'role': value['role'],
73
+ 'secrets': value['secrets'],
74
+ 'skills': value['skills'],
75
+ 'storage': (0, V1alpha1StorageSpec_1.V1alpha1StorageSpecToJSON)(value['storage']),
76
+ 'systemPrompt': value['systemPrompt'],
77
+ 'templateRef': value['templateRef'],
78
+ };
79
+ }
@@ -0,0 +1,40 @@
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 { V1alpha1KomputerAgentSpec } from './V1alpha1KomputerAgentSpec';
13
+ import type { V1alpha1KomputerSquadMemberRef } from './V1alpha1KomputerSquadMemberRef';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface V1alpha1KomputerSquadMember
18
+ */
19
+ export interface V1alpha1KomputerSquadMember {
20
+ /**
21
+ * Exactly one of Ref or Spec must be set.
22
+ * @type {V1alpha1KomputerSquadMemberRef}
23
+ * @memberof V1alpha1KomputerSquadMember
24
+ */
25
+ ref?: V1alpha1KomputerSquadMemberRef;
26
+ /**
27
+ *
28
+ * @type {V1alpha1KomputerAgentSpec}
29
+ * @memberof V1alpha1KomputerSquadMember
30
+ */
31
+ spec?: V1alpha1KomputerAgentSpec;
32
+ }
33
+ /**
34
+ * Check if a given object implements the V1alpha1KomputerSquadMember interface.
35
+ */
36
+ export declare function instanceOfV1alpha1KomputerSquadMember(value: object): value is V1alpha1KomputerSquadMember;
37
+ export declare function V1alpha1KomputerSquadMemberFromJSON(json: any): V1alpha1KomputerSquadMember;
38
+ export declare function V1alpha1KomputerSquadMemberFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1KomputerSquadMember;
39
+ export declare function V1alpha1KomputerSquadMemberToJSON(json: any): V1alpha1KomputerSquadMember;
40
+ export declare function V1alpha1KomputerSquadMemberToJSONTyped(value?: V1alpha1KomputerSquadMember | null, ignoreDiscriminator?: boolean): any;