@komputer-ai/sdk 0.13.1 → 0.15.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 (94) hide show
  1. package/.openapi-generator/FILES +22 -2
  2. package/dist/apis/SquadsApi.d.ts +163 -0
  3. package/dist/apis/SquadsApi.js +389 -0
  4. package/dist/apis/index.d.ts +1 -0
  5. package/dist/apis/index.js +1 -0
  6. package/dist/client.d.ts +7 -1
  7. package/dist/client.js +3 -3
  8. package/dist/esm/apis/SquadsApi.d.ts +163 -0
  9. package/dist/esm/apis/SquadsApi.js +385 -0
  10. package/dist/esm/apis/index.d.ts +1 -0
  11. package/dist/esm/apis/index.js +1 -0
  12. package/dist/esm/client.d.ts +7 -1
  13. package/dist/esm/client.js +3 -3
  14. package/dist/esm/models/AddSquadMemberRequest.d.ts +46 -0
  15. package/dist/esm/models/AddSquadMemberRequest.js +47 -0
  16. package/dist/esm/models/AgentResponse.d.ts +26 -0
  17. package/dist/esm/models/AgentResponse.js +8 -0
  18. package/dist/esm/models/CreateAgentRequest.d.ts +10 -0
  19. package/dist/esm/models/CreateAgentRequest.js +2 -0
  20. package/dist/esm/models/CreateSquadRequest.d.ts +51 -0
  21. package/dist/esm/models/CreateSquadRequest.js +52 -0
  22. package/dist/esm/models/PatchAgentRequest.d.ts +8 -0
  23. package/dist/esm/models/PatchAgentRequest.js +2 -0
  24. package/dist/esm/models/PatchSquadRequest.d.ts +39 -0
  25. package/dist/esm/models/PatchSquadRequest.js +44 -0
  26. package/dist/esm/models/SquadListResponse.d.ts +33 -0
  27. package/dist/esm/models/SquadListResponse.js +42 -0
  28. package/dist/esm/models/SquadMemberResponse.d.ts +44 -0
  29. package/dist/esm/models/SquadMemberResponse.js +45 -0
  30. package/dist/esm/models/SquadResponse.d.ts +87 -0
  31. package/dist/esm/models/SquadResponse.js +60 -0
  32. package/dist/esm/models/V1EmptyDirVolumeSource.d.ts +2 -3
  33. package/dist/esm/models/V1EmptyDirVolumeSource.js +2 -3
  34. package/dist/esm/models/V1PodSpec.d.ts +2 -3
  35. package/dist/esm/models/V1PodSpec.js +2 -4
  36. package/dist/esm/models/V1ResourceFieldSelector.d.ts +2 -3
  37. package/dist/esm/models/V1ResourceFieldSelector.js +2 -3
  38. package/dist/esm/models/V1ResourceRequirements.d.ts +4 -5
  39. package/dist/esm/models/V1ResourceRequirements.js +4 -6
  40. package/dist/esm/models/V1VolumeResourceRequirements.d.ts +4 -5
  41. package/dist/esm/models/V1VolumeResourceRequirements.js +4 -6
  42. package/dist/esm/models/V1alpha1AgentLifecycle.d.ts +26 -0
  43. package/dist/esm/models/V1alpha1AgentLifecycle.js +44 -0
  44. package/dist/esm/models/V1alpha1KomputerAgentSpec.d.ts +164 -0
  45. package/dist/esm/models/V1alpha1KomputerAgentSpec.js +74 -0
  46. package/dist/esm/models/V1alpha1KomputerSquadMember.d.ts +48 -0
  47. package/dist/esm/models/V1alpha1KomputerSquadMember.js +47 -0
  48. package/dist/esm/models/V1alpha1KomputerSquadMemberRef.d.ts +38 -0
  49. package/dist/esm/models/V1alpha1KomputerSquadMemberRef.js +43 -0
  50. package/dist/esm/models/index.d.ts +10 -1
  51. package/dist/esm/models/index.js +10 -1
  52. package/dist/models/AddSquadMemberRequest.d.ts +46 -0
  53. package/dist/models/AddSquadMemberRequest.js +54 -0
  54. package/dist/models/AgentResponse.d.ts +26 -0
  55. package/dist/models/AgentResponse.js +8 -0
  56. package/dist/models/CreateAgentRequest.d.ts +10 -0
  57. package/dist/models/CreateAgentRequest.js +2 -0
  58. package/dist/models/CreateSquadRequest.d.ts +51 -0
  59. package/dist/models/CreateSquadRequest.js +59 -0
  60. package/dist/models/PatchAgentRequest.d.ts +8 -0
  61. package/dist/models/PatchAgentRequest.js +2 -0
  62. package/dist/models/PatchSquadRequest.d.ts +39 -0
  63. package/dist/models/PatchSquadRequest.js +51 -0
  64. package/dist/models/SquadListResponse.d.ts +33 -0
  65. package/dist/models/SquadListResponse.js +49 -0
  66. package/dist/models/SquadMemberResponse.d.ts +44 -0
  67. package/dist/models/SquadMemberResponse.js +52 -0
  68. package/dist/models/SquadResponse.d.ts +87 -0
  69. package/dist/models/SquadResponse.js +67 -0
  70. package/dist/models/V1EmptyDirVolumeSource.d.ts +2 -3
  71. package/dist/models/V1EmptyDirVolumeSource.js +2 -3
  72. package/dist/models/V1PodSpec.d.ts +2 -3
  73. package/dist/models/V1PodSpec.js +2 -4
  74. package/dist/models/V1ResourceFieldSelector.d.ts +2 -3
  75. package/dist/models/V1ResourceFieldSelector.js +2 -3
  76. package/dist/models/V1ResourceRequirements.d.ts +4 -5
  77. package/dist/models/V1ResourceRequirements.js +4 -6
  78. package/dist/models/V1VolumeResourceRequirements.d.ts +4 -5
  79. package/dist/models/V1VolumeResourceRequirements.js +4 -6
  80. package/dist/models/V1alpha1AgentLifecycle.d.ts +26 -0
  81. package/dist/models/V1alpha1AgentLifecycle.js +52 -0
  82. package/dist/models/V1alpha1KomputerAgentSpec.d.ts +164 -0
  83. package/dist/models/V1alpha1KomputerAgentSpec.js +81 -0
  84. package/dist/models/V1alpha1KomputerSquadMember.d.ts +48 -0
  85. package/dist/models/V1alpha1KomputerSquadMember.js +54 -0
  86. package/dist/models/V1alpha1KomputerSquadMemberRef.d.ts +38 -0
  87. package/dist/models/V1alpha1KomputerSquadMemberRef.js +50 -0
  88. package/dist/models/index.d.ts +10 -1
  89. package/dist/models/index.js +10 -1
  90. package/package.json +1 -1
  91. package/dist/esm/models/ResourceQuantity.d.ts +0 -41
  92. package/dist/esm/models/ResourceQuantity.js +0 -49
  93. package/dist/models/ResourceQuantity.d.ts +0 -41
  94. package/dist/models/ResourceQuantity.js +0 -57
@@ -0,0 +1,87 @@
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 {boolean}
22
+ * @memberof SquadResponse
23
+ */
24
+ breakUpRequested?: boolean;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof SquadResponse
29
+ */
30
+ createdAt?: string;
31
+ /**
32
+ *
33
+ * @type {Array<SquadMemberResponse>}
34
+ * @memberof SquadResponse
35
+ */
36
+ members?: Array<SquadMemberResponse>;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof SquadResponse
41
+ */
42
+ message?: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof SquadResponse
47
+ */
48
+ name?: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof SquadResponse
53
+ */
54
+ namespace?: string;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof SquadResponse
59
+ */
60
+ orphanTTL?: string;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof SquadResponse
65
+ */
66
+ orphanedSince?: string;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof SquadResponse
71
+ */
72
+ phase?: string;
73
+ /**
74
+ *
75
+ * @type {string}
76
+ * @memberof SquadResponse
77
+ */
78
+ podName?: string;
79
+ }
80
+ /**
81
+ * Check if a given object implements the SquadResponse interface.
82
+ */
83
+ export declare function instanceOfSquadResponse(value: object): value is SquadResponse;
84
+ export declare function SquadResponseFromJSON(json: any): SquadResponse;
85
+ export declare function SquadResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SquadResponse;
86
+ export declare function SquadResponseToJSON(json: any): SquadResponse;
87
+ export declare function SquadResponseToJSONTyped(value?: SquadResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
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 { SquadMemberResponseFromJSON, SquadMemberResponseToJSON, } from './SquadMemberResponse';
15
+ /**
16
+ * Check if a given object implements the SquadResponse interface.
17
+ */
18
+ export function instanceOfSquadResponse(value) {
19
+ return true;
20
+ }
21
+ export function SquadResponseFromJSON(json) {
22
+ return SquadResponseFromJSONTyped(json, false);
23
+ }
24
+ export function SquadResponseFromJSONTyped(json, ignoreDiscriminator) {
25
+ if (json == null) {
26
+ return json;
27
+ }
28
+ return {
29
+ 'breakUpRequested': json['breakUpRequested'] == null ? undefined : json['breakUpRequested'],
30
+ 'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
31
+ 'members': json['members'] == null ? undefined : (json['members'].map(SquadMemberResponseFromJSON)),
32
+ 'message': json['message'] == null ? undefined : json['message'],
33
+ 'name': json['name'] == null ? undefined : json['name'],
34
+ 'namespace': json['namespace'] == null ? undefined : json['namespace'],
35
+ 'orphanTTL': json['orphanTTL'] == null ? undefined : json['orphanTTL'],
36
+ 'orphanedSince': json['orphanedSince'] == null ? undefined : json['orphanedSince'],
37
+ 'phase': json['phase'] == null ? undefined : json['phase'],
38
+ 'podName': json['podName'] == null ? undefined : json['podName'],
39
+ };
40
+ }
41
+ export function SquadResponseToJSON(json) {
42
+ return SquadResponseToJSONTyped(json, false);
43
+ }
44
+ export function SquadResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'breakUpRequested': value['breakUpRequested'],
50
+ 'createdAt': value['createdAt'],
51
+ 'members': value['members'] == null ? undefined : (value['members'].map(SquadMemberResponseToJSON)),
52
+ 'message': value['message'],
53
+ 'name': value['name'],
54
+ 'namespace': value['namespace'],
55
+ 'orphanTTL': value['orphanTTL'],
56
+ 'orphanedSince': value['orphanedSince'],
57
+ 'phase': value['phase'],
58
+ 'podName': value['podName'],
59
+ };
60
+ }
@@ -10,7 +10,6 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { V1StorageMedium } from './V1StorageMedium';
13
- import type { ResourceQuantity } from './ResourceQuantity';
14
13
  /**
15
14
  *
16
15
  * @export
@@ -35,10 +34,10 @@ export interface V1EmptyDirVolumeSource {
35
34
  * The default is nil which means that the limit is undefined.
36
35
  * More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
37
36
  * +optional
38
- * @type {ResourceQuantity}
37
+ * @type {string}
39
38
  * @memberof V1EmptyDirVolumeSource
40
39
  */
41
- sizeLimit?: ResourceQuantity;
40
+ sizeLimit?: string;
42
41
  }
43
42
  /**
44
43
  * Check if a given object implements the V1EmptyDirVolumeSource interface.
@@ -12,7 +12,6 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { V1StorageMediumFromJSON, V1StorageMediumToJSON, } from './V1StorageMedium';
15
- import { ResourceQuantityFromJSON, ResourceQuantityToJSON, } from './ResourceQuantity';
16
15
  /**
17
16
  * Check if a given object implements the V1EmptyDirVolumeSource interface.
18
17
  */
@@ -28,7 +27,7 @@ export function V1EmptyDirVolumeSourceFromJSONTyped(json, ignoreDiscriminator) {
28
27
  }
29
28
  return {
30
29
  'medium': json['medium'] == null ? undefined : V1StorageMediumFromJSON(json['medium']),
31
- 'sizeLimit': json['sizeLimit'] == null ? undefined : ResourceQuantityFromJSON(json['sizeLimit']),
30
+ 'sizeLimit': json['sizeLimit'] == null ? undefined : json['sizeLimit'],
32
31
  };
33
32
  }
34
33
  export function V1EmptyDirVolumeSourceToJSON(json) {
@@ -40,6 +39,6 @@ export function V1EmptyDirVolumeSourceToJSONTyped(value, ignoreDiscriminator = f
40
39
  }
41
40
  return {
42
41
  'medium': V1StorageMediumToJSON(value['medium']),
43
- 'sizeLimit': ResourceQuantityToJSON(value['sizeLimit']),
42
+ 'sizeLimit': value['sizeLimit'],
44
43
  };
45
44
  }
@@ -22,7 +22,6 @@ import type { V1PodResourceClaim } from './V1PodResourceClaim';
22
22
  import type { V1Toleration } from './V1Toleration';
23
23
  import type { V1RestartPolicy } from './V1RestartPolicy';
24
24
  import type { V1Volume } from './V1Volume';
25
- import type { ResourceQuantity } from './ResourceQuantity';
26
25
  import type { V1Affinity } from './V1Affinity';
27
26
  import type { V1LocalObjectReference } from './V1LocalObjectReference';
28
27
  import type { V1PodSchedulingGate } from './V1PodSchedulingGate';
@@ -304,11 +303,11 @@ export interface V1PodSpec {
304
303
  * defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero.
305
304
  * More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md
306
305
  * +optional
307
- * @type {{ [key: string]: ResourceQuantity; }}
306
+ * @type {{ [key: string]: string; }}
308
307
  * @memberof V1PodSpec
309
308
  */
310
309
  overhead?: {
311
- [key: string]: ResourceQuantity;
310
+ [key: string]: string;
312
311
  };
313
312
  /**
314
313
  * PreemptionPolicy is the Policy for preempting pods with lower priority.
@@ -11,7 +11,6 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { mapValues } from '../runtime';
15
14
  import { V1DNSPolicyFromJSON, V1DNSPolicyToJSON, } from './V1DNSPolicy';
16
15
  import { V1TopologySpreadConstraintFromJSON, V1TopologySpreadConstraintToJSON, } from './V1TopologySpreadConstraint';
17
16
  import { V1HostAliasFromJSON, V1HostAliasToJSON, } from './V1HostAlias';
@@ -25,7 +24,6 @@ import { V1PodResourceClaimFromJSON, V1PodResourceClaimToJSON, } from './V1PodRe
25
24
  import { V1TolerationFromJSON, V1TolerationToJSON, } from './V1Toleration';
26
25
  import { V1RestartPolicyFromJSON, V1RestartPolicyToJSON, } from './V1RestartPolicy';
27
26
  import { V1VolumeFromJSON, V1VolumeToJSON, } from './V1Volume';
28
- import { ResourceQuantityFromJSON, ResourceQuantityToJSON, } from './ResourceQuantity';
29
27
  import { V1AffinityFromJSON, V1AffinityToJSON, } from './V1Affinity';
30
28
  import { V1LocalObjectReferenceFromJSON, V1LocalObjectReferenceToJSON, } from './V1LocalObjectReference';
31
29
  import { V1PodSchedulingGateFromJSON, V1PodSchedulingGateToJSON, } from './V1PodSchedulingGate';
@@ -66,7 +64,7 @@ export function V1PodSpecFromJSONTyped(json, ignoreDiscriminator) {
66
64
  'nodeName': json['nodeName'] == null ? undefined : json['nodeName'],
67
65
  'nodeSelector': json['nodeSelector'] == null ? undefined : json['nodeSelector'],
68
66
  'os': json['os'] == null ? undefined : V1PodOSFromJSON(json['os']),
69
- 'overhead': json['overhead'] == null ? undefined : (mapValues(json['overhead'], ResourceQuantityFromJSON)),
67
+ 'overhead': json['overhead'] == null ? undefined : json['overhead'],
70
68
  'preemptionPolicy': json['preemptionPolicy'] == null ? undefined : V1PreemptionPolicyFromJSON(json['preemptionPolicy']),
71
69
  'priority': json['priority'] == null ? undefined : json['priority'],
72
70
  'priorityClassName': json['priorityClassName'] == null ? undefined : json['priorityClassName'],
@@ -118,7 +116,7 @@ export function V1PodSpecToJSONTyped(value, ignoreDiscriminator = false) {
118
116
  'nodeName': value['nodeName'],
119
117
  'nodeSelector': value['nodeSelector'],
120
118
  'os': V1PodOSToJSON(value['os']),
121
- 'overhead': value['overhead'] == null ? undefined : (mapValues(value['overhead'], ResourceQuantityToJSON)),
119
+ 'overhead': value['overhead'],
122
120
  'preemptionPolicy': V1PreemptionPolicyToJSON(value['preemptionPolicy']),
123
121
  'priority': value['priority'],
124
122
  'priorityClassName': value['priorityClassName'],
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ResourceQuantity } from './ResourceQuantity';
13
12
  /**
14
13
  *
15
14
  * @export
@@ -26,10 +25,10 @@ export interface V1ResourceFieldSelector {
26
25
  /**
27
26
  * Specifies the output format of the exposed resources, defaults to "1"
28
27
  * +optional
29
- * @type {ResourceQuantity}
28
+ * @type {string}
30
29
  * @memberof V1ResourceFieldSelector
31
30
  */
32
- divisor?: ResourceQuantity;
31
+ divisor?: string;
33
32
  /**
34
33
  * Required: resource to select
35
34
  * @type {string}
@@ -11,7 +11,6 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { ResourceQuantityFromJSON, ResourceQuantityToJSON, } from './ResourceQuantity';
15
14
  /**
16
15
  * Check if a given object implements the V1ResourceFieldSelector interface.
17
16
  */
@@ -27,7 +26,7 @@ export function V1ResourceFieldSelectorFromJSONTyped(json, ignoreDiscriminator)
27
26
  }
28
27
  return {
29
28
  'containerName': json['containerName'] == null ? undefined : json['containerName'],
30
- 'divisor': json['divisor'] == null ? undefined : ResourceQuantityFromJSON(json['divisor']),
29
+ 'divisor': json['divisor'] == null ? undefined : json['divisor'],
31
30
  'resource': json['resource'] == null ? undefined : json['resource'],
32
31
  };
33
32
  }
@@ -40,7 +39,7 @@ export function V1ResourceFieldSelectorToJSONTyped(value, ignoreDiscriminator =
40
39
  }
41
40
  return {
42
41
  'containerName': value['containerName'],
43
- 'divisor': ResourceQuantityToJSON(value['divisor']),
42
+ 'divisor': value['divisor'],
44
43
  'resource': value['resource'],
45
44
  };
46
45
  }
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ResourceQuantity } from './ResourceQuantity';
13
12
  import type { K8sIoApiCoreV1ResourceClaim } from './K8sIoApiCoreV1ResourceClaim';
14
13
  /**
15
14
  *
@@ -38,11 +37,11 @@ export interface V1ResourceRequirements {
38
37
  * Limits describes the maximum amount of compute resources allowed.
39
38
  * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
40
39
  * +optional
41
- * @type {{ [key: string]: ResourceQuantity; }}
40
+ * @type {{ [key: string]: string; }}
42
41
  * @memberof V1ResourceRequirements
43
42
  */
44
43
  limits?: {
45
- [key: string]: ResourceQuantity;
44
+ [key: string]: string;
46
45
  };
47
46
  /**
48
47
  * Requests describes the minimum amount of compute resources required.
@@ -50,11 +49,11 @@ export interface V1ResourceRequirements {
50
49
  * otherwise to an implementation-defined value. Requests cannot exceed Limits.
51
50
  * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
52
51
  * +optional
53
- * @type {{ [key: string]: ResourceQuantity; }}
52
+ * @type {{ [key: string]: string; }}
54
53
  * @memberof V1ResourceRequirements
55
54
  */
56
55
  requests?: {
57
- [key: string]: ResourceQuantity;
56
+ [key: string]: string;
58
57
  };
59
58
  }
60
59
  /**
@@ -11,8 +11,6 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { mapValues } from '../runtime';
15
- import { ResourceQuantityFromJSON, ResourceQuantityToJSON, } from './ResourceQuantity';
16
14
  import { K8sIoApiCoreV1ResourceClaimFromJSON, K8sIoApiCoreV1ResourceClaimToJSON, } from './K8sIoApiCoreV1ResourceClaim';
17
15
  /**
18
16
  * Check if a given object implements the V1ResourceRequirements interface.
@@ -29,8 +27,8 @@ export function V1ResourceRequirementsFromJSONTyped(json, ignoreDiscriminator) {
29
27
  }
30
28
  return {
31
29
  'claims': json['claims'] == null ? undefined : (json['claims'].map(K8sIoApiCoreV1ResourceClaimFromJSON)),
32
- 'limits': json['limits'] == null ? undefined : (mapValues(json['limits'], ResourceQuantityFromJSON)),
33
- 'requests': json['requests'] == null ? undefined : (mapValues(json['requests'], ResourceQuantityFromJSON)),
30
+ 'limits': json['limits'] == null ? undefined : json['limits'],
31
+ 'requests': json['requests'] == null ? undefined : json['requests'],
34
32
  };
35
33
  }
36
34
  export function V1ResourceRequirementsToJSON(json) {
@@ -42,7 +40,7 @@ export function V1ResourceRequirementsToJSONTyped(value, ignoreDiscriminator = f
42
40
  }
43
41
  return {
44
42
  'claims': value['claims'] == null ? undefined : (value['claims'].map(K8sIoApiCoreV1ResourceClaimToJSON)),
45
- 'limits': value['limits'] == null ? undefined : (mapValues(value['limits'], ResourceQuantityToJSON)),
46
- 'requests': value['requests'] == null ? undefined : (mapValues(value['requests'], ResourceQuantityToJSON)),
43
+ 'limits': value['limits'],
44
+ 'requests': value['requests'],
47
45
  };
48
46
  }
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ResourceQuantity } from './ResourceQuantity';
13
12
  /**
14
13
  *
15
14
  * @export
@@ -20,11 +19,11 @@ export interface V1VolumeResourceRequirements {
20
19
  * Limits describes the maximum amount of compute resources allowed.
21
20
  * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
22
21
  * +optional
23
- * @type {{ [key: string]: ResourceQuantity; }}
22
+ * @type {{ [key: string]: string; }}
24
23
  * @memberof V1VolumeResourceRequirements
25
24
  */
26
25
  limits?: {
27
- [key: string]: ResourceQuantity;
26
+ [key: string]: string;
28
27
  };
29
28
  /**
30
29
  * Requests describes the minimum amount of compute resources required.
@@ -32,11 +31,11 @@ export interface V1VolumeResourceRequirements {
32
31
  * otherwise to an implementation-defined value. Requests cannot exceed Limits.
33
32
  * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
34
33
  * +optional
35
- * @type {{ [key: string]: ResourceQuantity; }}
34
+ * @type {{ [key: string]: string; }}
36
35
  * @memberof V1VolumeResourceRequirements
37
36
  */
38
37
  requests?: {
39
- [key: string]: ResourceQuantity;
38
+ [key: string]: string;
40
39
  };
41
40
  }
42
41
  /**
@@ -11,8 +11,6 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { mapValues } from '../runtime';
15
- import { ResourceQuantityFromJSON, ResourceQuantityToJSON, } from './ResourceQuantity';
16
14
  /**
17
15
  * Check if a given object implements the V1VolumeResourceRequirements interface.
18
16
  */
@@ -27,8 +25,8 @@ export function V1VolumeResourceRequirementsFromJSONTyped(json, ignoreDiscrimina
27
25
  return json;
28
26
  }
29
27
  return {
30
- 'limits': json['limits'] == null ? undefined : (mapValues(json['limits'], ResourceQuantityFromJSON)),
31
- 'requests': json['requests'] == null ? undefined : (mapValues(json['requests'], ResourceQuantityFromJSON)),
28
+ 'limits': json['limits'] == null ? undefined : json['limits'],
29
+ 'requests': json['requests'] == null ? undefined : json['requests'],
32
30
  };
33
31
  }
34
32
  export function V1VolumeResourceRequirementsToJSON(json) {
@@ -39,7 +37,7 @@ export function V1VolumeResourceRequirementsToJSONTyped(value, ignoreDiscriminat
39
37
  return value;
40
38
  }
41
39
  return {
42
- 'limits': value['limits'] == null ? undefined : (mapValues(value['limits'], ResourceQuantityToJSON)),
43
- 'requests': value['requests'] == null ? undefined : (mapValues(value['requests'], ResourceQuantityToJSON)),
40
+ 'limits': value['limits'],
41
+ 'requests': value['requests'],
44
42
  };
45
43
  }
@@ -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,44 @@
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
+ /**
15
+ *
16
+ * @export
17
+ */
18
+ export const V1alpha1AgentLifecycle = {
19
+ AgentLifecycleDefault: '',
20
+ AgentLifecycleSleep: 'Sleep',
21
+ AgentLifecycleAutoDelete: 'AutoDelete'
22
+ };
23
+ export function instanceOfV1alpha1AgentLifecycle(value) {
24
+ for (const key in V1alpha1AgentLifecycle) {
25
+ if (Object.prototype.hasOwnProperty.call(V1alpha1AgentLifecycle, key)) {
26
+ if (V1alpha1AgentLifecycle[key] === value) {
27
+ return true;
28
+ }
29
+ }
30
+ }
31
+ return false;
32
+ }
33
+ export function V1alpha1AgentLifecycleFromJSON(json) {
34
+ return V1alpha1AgentLifecycleFromJSONTyped(json, false);
35
+ }
36
+ export function V1alpha1AgentLifecycleFromJSONTyped(json, ignoreDiscriminator) {
37
+ return json;
38
+ }
39
+ export function V1alpha1AgentLifecycleToJSON(value) {
40
+ return value;
41
+ }
42
+ export function V1alpha1AgentLifecycleToJSONTyped(value, ignoreDiscriminator) {
43
+ return value;
44
+ }
@@ -0,0 +1,164 @@
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
+ * Labels are user-defined key=value labels attached to this agent and
44
+ * propagated to all child resources (Pod, PVC, ConfigMap, Service).
45
+ * Keys starting with "komputer.ai/" are reserved for system labels and
46
+ * should not be set directly through the API.
47
+ * +optional
48
+ * @type {{ [key: string]: string; }}
49
+ * @memberof V1alpha1KomputerAgentSpec
50
+ */
51
+ labels?: {
52
+ [key: string]: string;
53
+ };
54
+ /**
55
+ * Lifecycle controls what happens after task completion.
56
+ * Empty (default) keeps the pod running, "Sleep" deletes the pod but keeps the PVC,
57
+ * "AutoDelete" deletes the entire agent after task completion.
58
+ * +kubebuilder:validation:Enum="";Sleep;AutoDelete
59
+ * +optional
60
+ * @type {V1alpha1AgentLifecycle}
61
+ * @memberof V1alpha1KomputerAgentSpec
62
+ */
63
+ lifecycle?: V1alpha1AgentLifecycle;
64
+ /**
65
+ * Memories is a list of KomputerMemory names to attach to this agent.
66
+ * Names can be "name" (same namespace) or "namespace/name" (cross-namespace).
67
+ * +optional
68
+ * @type {Array<string>}
69
+ * @memberof V1alpha1KomputerAgentSpec
70
+ */
71
+ memories?: Array<string>;
72
+ /**
73
+ * Model is the Claude model to use.
74
+ * +kubebuilder:default="claude-sonnet-4-6"
75
+ * @type {string}
76
+ * @memberof V1alpha1KomputerAgentSpec
77
+ */
78
+ model?: string;
79
+ /**
80
+ * OfficeManager is the name of the manager agent that created this sub-agent.
81
+ * When set, the operator creates/joins a KomputerOffice for the group.
82
+ * +optional
83
+ * @type {string}
84
+ * @memberof V1alpha1KomputerAgentSpec
85
+ */
86
+ officeManager?: string;
87
+ /**
88
+ * PodSpec, when set, overrides the template's PodSpec for this agent.
89
+ * Container fields are merged by name; non-zero fields from this PodSpec
90
+ * override the template's container fields. Takes effect on next pod start
91
+ * (existing pods are not mutated).
92
+ * +optional
93
+ * @type {V1PodSpec}
94
+ * @memberof V1alpha1KomputerAgentSpec
95
+ */
96
+ podSpec?: V1PodSpec;
97
+ /**
98
+ * Priority controls admission order when the template's maxConcurrentAgents
99
+ * limit is reached. Higher number = admitted first (matches K8s PodPriority).
100
+ * Ties broken by creationTimestamp (older first). Defaults to 0.
101
+ * +kubebuilder:default=0
102
+ * +optional
103
+ * @type {number}
104
+ * @memberof V1alpha1KomputerAgentSpec
105
+ */
106
+ priority?: number;
107
+ /**
108
+ * Role is "manager" or "worker". Managers get orchestration tools.
109
+ * Role is "manager" or "worker". Defaults to "manager" for top-level agents.
110
+ * Sub-agents created by managers are explicitly set to "worker".
111
+ * +kubebuilder:default="manager"
112
+ * +kubebuilder:validation:Enum=worker;manager
113
+ * +optional
114
+ * @type {string}
115
+ * @memberof V1alpha1KomputerAgentSpec
116
+ */
117
+ role?: string;
118
+ /**
119
+ * Secrets is a list of K8s Secret names containing agent-specific secrets.
120
+ * Each key in each secret is injected as an env var into the agent pod.
121
+ * +optional
122
+ * @type {Array<string>}
123
+ * @memberof V1alpha1KomputerAgentSpec
124
+ */
125
+ secrets?: Array<string>;
126
+ /**
127
+ * Skills is a list of KomputerSkill names to attach to this agent.
128
+ * Names can be "name" (same namespace) or "namespace/name" (cross-namespace).
129
+ * +optional
130
+ * @type {Array<string>}
131
+ * @memberof V1alpha1KomputerAgentSpec
132
+ */
133
+ skills?: Array<string>;
134
+ /**
135
+ * Storage, when set, overrides the template's storage settings for this agent.
136
+ * Existing PVCs are expanded in place when the storage class supports it.
137
+ * +optional
138
+ * @type {V1alpha1StorageSpec}
139
+ * @memberof V1alpha1KomputerAgentSpec
140
+ */
141
+ storage?: V1alpha1StorageSpec;
142
+ /**
143
+ * SystemPrompt is a custom system prompt provided by the user, appended to the internal prompt.
144
+ * +optional
145
+ * @type {string}
146
+ * @memberof V1alpha1KomputerAgentSpec
147
+ */
148
+ systemPrompt?: string;
149
+ /**
150
+ * TemplateRef is the name of the KomputerAgentTemplate to use.
151
+ * +kubebuilder:default="default"
152
+ * @type {string}
153
+ * @memberof V1alpha1KomputerAgentSpec
154
+ */
155
+ templateRef?: string;
156
+ }
157
+ /**
158
+ * Check if a given object implements the V1alpha1KomputerAgentSpec interface.
159
+ */
160
+ export declare function instanceOfV1alpha1KomputerAgentSpec(value: object): value is V1alpha1KomputerAgentSpec;
161
+ export declare function V1alpha1KomputerAgentSpecFromJSON(json: any): V1alpha1KomputerAgentSpec;
162
+ export declare function V1alpha1KomputerAgentSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1KomputerAgentSpec;
163
+ export declare function V1alpha1KomputerAgentSpecToJSON(json: any): V1alpha1KomputerAgentSpec;
164
+ export declare function V1alpha1KomputerAgentSpecToJSONTyped(value?: V1alpha1KomputerAgentSpec | null, ignoreDiscriminator?: boolean): any;