@komputer-ai/sdk 0.14.0 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +0 -2
- package/dist/apis/SquadsApi.d.ts +24 -10
- package/dist/apis/SquadsApi.js +55 -15
- package/dist/client.d.ts +7 -1
- package/dist/client.js +3 -3
- package/dist/esm/apis/SquadsApi.d.ts +24 -10
- package/dist/esm/apis/SquadsApi.js +55 -15
- package/dist/esm/client.d.ts +7 -1
- package/dist/esm/client.js +3 -3
- package/dist/esm/models/AddSquadMemberRequest.d.ts +6 -0
- package/dist/esm/models/AddSquadMemberRequest.js +2 -0
- package/dist/esm/models/AgentResponse.d.ts +26 -0
- package/dist/esm/models/AgentResponse.js +8 -0
- package/dist/esm/models/CreateAgentRequest.d.ts +10 -0
- package/dist/esm/models/CreateAgentRequest.js +2 -0
- package/dist/esm/models/PatchAgentRequest.d.ts +8 -0
- package/dist/esm/models/PatchAgentRequest.js +2 -0
- package/dist/esm/models/SquadResponse.d.ts +6 -0
- package/dist/esm/models/SquadResponse.js +2 -0
- package/dist/esm/models/V1EmptyDirVolumeSource.d.ts +2 -3
- package/dist/esm/models/V1EmptyDirVolumeSource.js +2 -3
- package/dist/esm/models/V1PodSpec.d.ts +2 -3
- package/dist/esm/models/V1PodSpec.js +2 -4
- package/dist/esm/models/V1ResourceFieldSelector.d.ts +2 -3
- package/dist/esm/models/V1ResourceFieldSelector.js +2 -3
- package/dist/esm/models/V1ResourceRequirements.d.ts +4 -5
- package/dist/esm/models/V1ResourceRequirements.js +4 -6
- package/dist/esm/models/V1VolumeResourceRequirements.d.ts +4 -5
- package/dist/esm/models/V1VolumeResourceRequirements.js +4 -6
- package/dist/esm/models/V1alpha1KomputerAgentSpec.d.ts +12 -0
- package/dist/esm/models/V1alpha1KomputerAgentSpec.js +2 -0
- package/dist/esm/models/V1alpha1KomputerSquadMember.d.ts +8 -0
- package/dist/esm/models/V1alpha1KomputerSquadMember.js +2 -0
- package/dist/esm/models/index.d.ts +0 -1
- package/dist/esm/models/index.js +0 -1
- package/dist/models/AddSquadMemberRequest.d.ts +6 -0
- package/dist/models/AddSquadMemberRequest.js +2 -0
- package/dist/models/AgentResponse.d.ts +26 -0
- package/dist/models/AgentResponse.js +8 -0
- package/dist/models/CreateAgentRequest.d.ts +10 -0
- package/dist/models/CreateAgentRequest.js +2 -0
- package/dist/models/PatchAgentRequest.d.ts +8 -0
- package/dist/models/PatchAgentRequest.js +2 -0
- package/dist/models/SquadResponse.d.ts +6 -0
- package/dist/models/SquadResponse.js +2 -0
- package/dist/models/V1EmptyDirVolumeSource.d.ts +2 -3
- package/dist/models/V1EmptyDirVolumeSource.js +2 -3
- package/dist/models/V1PodSpec.d.ts +2 -3
- package/dist/models/V1PodSpec.js +2 -4
- package/dist/models/V1ResourceFieldSelector.d.ts +2 -3
- package/dist/models/V1ResourceFieldSelector.js +2 -3
- package/dist/models/V1ResourceRequirements.d.ts +4 -5
- package/dist/models/V1ResourceRequirements.js +4 -6
- package/dist/models/V1VolumeResourceRequirements.d.ts +4 -5
- package/dist/models/V1VolumeResourceRequirements.js +4 -6
- package/dist/models/V1alpha1KomputerAgentSpec.d.ts +12 -0
- package/dist/models/V1alpha1KomputerAgentSpec.js +2 -0
- package/dist/models/V1alpha1KomputerSquadMember.d.ts +8 -0
- package/dist/models/V1alpha1KomputerSquadMember.js +2 -0
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/package.json +1 -1
- package/dist/esm/models/ResourceQuantity.d.ts +0 -41
- package/dist/esm/models/ResourceQuantity.js +0 -49
- package/dist/models/ResourceQuantity.d.ts +0 -41
- package/dist/models/ResourceQuantity.js +0 -57
|
@@ -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 {
|
|
37
|
+
* @type {string}
|
|
39
38
|
* @memberof V1EmptyDirVolumeSource
|
|
40
39
|
*/
|
|
41
|
-
sizeLimit?:
|
|
40
|
+
sizeLimit?: string;
|
|
42
41
|
}
|
|
43
42
|
/**
|
|
44
43
|
* Check if a given object implements the V1EmptyDirVolumeSource interface.
|
|
@@ -19,7 +19,6 @@ exports.V1EmptyDirVolumeSourceFromJSONTyped = V1EmptyDirVolumeSourceFromJSONType
|
|
|
19
19
|
exports.V1EmptyDirVolumeSourceToJSON = V1EmptyDirVolumeSourceToJSON;
|
|
20
20
|
exports.V1EmptyDirVolumeSourceToJSONTyped = V1EmptyDirVolumeSourceToJSONTyped;
|
|
21
21
|
const V1StorageMedium_1 = require("./V1StorageMedium");
|
|
22
|
-
const ResourceQuantity_1 = require("./ResourceQuantity");
|
|
23
22
|
/**
|
|
24
23
|
* Check if a given object implements the V1EmptyDirVolumeSource interface.
|
|
25
24
|
*/
|
|
@@ -35,7 +34,7 @@ function V1EmptyDirVolumeSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
34
|
}
|
|
36
35
|
return {
|
|
37
36
|
'medium': json['medium'] == null ? undefined : (0, V1StorageMedium_1.V1StorageMediumFromJSON)(json['medium']),
|
|
38
|
-
'sizeLimit': json['sizeLimit'] == null ? undefined :
|
|
37
|
+
'sizeLimit': json['sizeLimit'] == null ? undefined : json['sizeLimit'],
|
|
39
38
|
};
|
|
40
39
|
}
|
|
41
40
|
function V1EmptyDirVolumeSourceToJSON(json) {
|
|
@@ -47,6 +46,6 @@ function V1EmptyDirVolumeSourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
47
46
|
}
|
|
48
47
|
return {
|
|
49
48
|
'medium': (0, V1StorageMedium_1.V1StorageMediumToJSON)(value['medium']),
|
|
50
|
-
'sizeLimit':
|
|
49
|
+
'sizeLimit': value['sizeLimit'],
|
|
51
50
|
};
|
|
52
51
|
}
|
|
@@ -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]:
|
|
306
|
+
* @type {{ [key: string]: string; }}
|
|
308
307
|
* @memberof V1PodSpec
|
|
309
308
|
*/
|
|
310
309
|
overhead?: {
|
|
311
|
-
[key: string]:
|
|
310
|
+
[key: string]: string;
|
|
312
311
|
};
|
|
313
312
|
/**
|
|
314
313
|
* PreemptionPolicy is the Policy for preempting pods with lower priority.
|
package/dist/models/V1PodSpec.js
CHANGED
|
@@ -18,7 +18,6 @@ exports.V1PodSpecFromJSON = V1PodSpecFromJSON;
|
|
|
18
18
|
exports.V1PodSpecFromJSONTyped = V1PodSpecFromJSONTyped;
|
|
19
19
|
exports.V1PodSpecToJSON = V1PodSpecToJSON;
|
|
20
20
|
exports.V1PodSpecToJSONTyped = V1PodSpecToJSONTyped;
|
|
21
|
-
const runtime_1 = require("../runtime");
|
|
22
21
|
const V1DNSPolicy_1 = require("./V1DNSPolicy");
|
|
23
22
|
const V1TopologySpreadConstraint_1 = require("./V1TopologySpreadConstraint");
|
|
24
23
|
const V1HostAlias_1 = require("./V1HostAlias");
|
|
@@ -32,7 +31,6 @@ const V1PodResourceClaim_1 = require("./V1PodResourceClaim");
|
|
|
32
31
|
const V1Toleration_1 = require("./V1Toleration");
|
|
33
32
|
const V1RestartPolicy_1 = require("./V1RestartPolicy");
|
|
34
33
|
const V1Volume_1 = require("./V1Volume");
|
|
35
|
-
const ResourceQuantity_1 = require("./ResourceQuantity");
|
|
36
34
|
const V1Affinity_1 = require("./V1Affinity");
|
|
37
35
|
const V1LocalObjectReference_1 = require("./V1LocalObjectReference");
|
|
38
36
|
const V1PodSchedulingGate_1 = require("./V1PodSchedulingGate");
|
|
@@ -73,7 +71,7 @@ function V1PodSpecFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
73
71
|
'nodeName': json['nodeName'] == null ? undefined : json['nodeName'],
|
|
74
72
|
'nodeSelector': json['nodeSelector'] == null ? undefined : json['nodeSelector'],
|
|
75
73
|
'os': json['os'] == null ? undefined : (0, V1PodOS_1.V1PodOSFromJSON)(json['os']),
|
|
76
|
-
'overhead': json['overhead'] == null ? undefined :
|
|
74
|
+
'overhead': json['overhead'] == null ? undefined : json['overhead'],
|
|
77
75
|
'preemptionPolicy': json['preemptionPolicy'] == null ? undefined : (0, V1PreemptionPolicy_1.V1PreemptionPolicyFromJSON)(json['preemptionPolicy']),
|
|
78
76
|
'priority': json['priority'] == null ? undefined : json['priority'],
|
|
79
77
|
'priorityClassName': json['priorityClassName'] == null ? undefined : json['priorityClassName'],
|
|
@@ -125,7 +123,7 @@ function V1PodSpecToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
125
123
|
'nodeName': value['nodeName'],
|
|
126
124
|
'nodeSelector': value['nodeSelector'],
|
|
127
125
|
'os': (0, V1PodOS_1.V1PodOSToJSON)(value['os']),
|
|
128
|
-
'overhead': value['overhead']
|
|
126
|
+
'overhead': value['overhead'],
|
|
129
127
|
'preemptionPolicy': (0, V1PreemptionPolicy_1.V1PreemptionPolicyToJSON)(value['preemptionPolicy']),
|
|
130
128
|
'priority': value['priority'],
|
|
131
129
|
'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 {
|
|
28
|
+
* @type {string}
|
|
30
29
|
* @memberof V1ResourceFieldSelector
|
|
31
30
|
*/
|
|
32
|
-
divisor?:
|
|
31
|
+
divisor?: string;
|
|
33
32
|
/**
|
|
34
33
|
* Required: resource to select
|
|
35
34
|
* @type {string}
|
|
@@ -18,7 +18,6 @@ exports.V1ResourceFieldSelectorFromJSON = V1ResourceFieldSelectorFromJSON;
|
|
|
18
18
|
exports.V1ResourceFieldSelectorFromJSONTyped = V1ResourceFieldSelectorFromJSONTyped;
|
|
19
19
|
exports.V1ResourceFieldSelectorToJSON = V1ResourceFieldSelectorToJSON;
|
|
20
20
|
exports.V1ResourceFieldSelectorToJSONTyped = V1ResourceFieldSelectorToJSONTyped;
|
|
21
|
-
const ResourceQuantity_1 = require("./ResourceQuantity");
|
|
22
21
|
/**
|
|
23
22
|
* Check if a given object implements the V1ResourceFieldSelector interface.
|
|
24
23
|
*/
|
|
@@ -34,7 +33,7 @@ function V1ResourceFieldSelectorFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
33
|
}
|
|
35
34
|
return {
|
|
36
35
|
'containerName': json['containerName'] == null ? undefined : json['containerName'],
|
|
37
|
-
'divisor': json['divisor'] == null ? undefined :
|
|
36
|
+
'divisor': json['divisor'] == null ? undefined : json['divisor'],
|
|
38
37
|
'resource': json['resource'] == null ? undefined : json['resource'],
|
|
39
38
|
};
|
|
40
39
|
}
|
|
@@ -47,7 +46,7 @@ function V1ResourceFieldSelectorToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
47
46
|
}
|
|
48
47
|
return {
|
|
49
48
|
'containerName': value['containerName'],
|
|
50
|
-
'divisor':
|
|
49
|
+
'divisor': value['divisor'],
|
|
51
50
|
'resource': value['resource'],
|
|
52
51
|
};
|
|
53
52
|
}
|
|
@@ -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]:
|
|
40
|
+
* @type {{ [key: string]: string; }}
|
|
42
41
|
* @memberof V1ResourceRequirements
|
|
43
42
|
*/
|
|
44
43
|
limits?: {
|
|
45
|
-
[key: string]:
|
|
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]:
|
|
52
|
+
* @type {{ [key: string]: string; }}
|
|
54
53
|
* @memberof V1ResourceRequirements
|
|
55
54
|
*/
|
|
56
55
|
requests?: {
|
|
57
|
-
[key: string]:
|
|
56
|
+
[key: string]: string;
|
|
58
57
|
};
|
|
59
58
|
}
|
|
60
59
|
/**
|
|
@@ -18,8 +18,6 @@ exports.V1ResourceRequirementsFromJSON = V1ResourceRequirementsFromJSON;
|
|
|
18
18
|
exports.V1ResourceRequirementsFromJSONTyped = V1ResourceRequirementsFromJSONTyped;
|
|
19
19
|
exports.V1ResourceRequirementsToJSON = V1ResourceRequirementsToJSON;
|
|
20
20
|
exports.V1ResourceRequirementsToJSONTyped = V1ResourceRequirementsToJSONTyped;
|
|
21
|
-
const runtime_1 = require("../runtime");
|
|
22
|
-
const ResourceQuantity_1 = require("./ResourceQuantity");
|
|
23
21
|
const K8sIoApiCoreV1ResourceClaim_1 = require("./K8sIoApiCoreV1ResourceClaim");
|
|
24
22
|
/**
|
|
25
23
|
* Check if a given object implements the V1ResourceRequirements interface.
|
|
@@ -36,8 +34,8 @@ function V1ResourceRequirementsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
34
|
}
|
|
37
35
|
return {
|
|
38
36
|
'claims': json['claims'] == null ? undefined : (json['claims'].map(K8sIoApiCoreV1ResourceClaim_1.K8sIoApiCoreV1ResourceClaimFromJSON)),
|
|
39
|
-
'limits': json['limits'] == null ? undefined :
|
|
40
|
-
'requests': json['requests'] == null ? undefined :
|
|
37
|
+
'limits': json['limits'] == null ? undefined : json['limits'],
|
|
38
|
+
'requests': json['requests'] == null ? undefined : json['requests'],
|
|
41
39
|
};
|
|
42
40
|
}
|
|
43
41
|
function V1ResourceRequirementsToJSON(json) {
|
|
@@ -49,7 +47,7 @@ function V1ResourceRequirementsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
49
47
|
}
|
|
50
48
|
return {
|
|
51
49
|
'claims': value['claims'] == null ? undefined : (value['claims'].map(K8sIoApiCoreV1ResourceClaim_1.K8sIoApiCoreV1ResourceClaimToJSON)),
|
|
52
|
-
'limits': value['limits']
|
|
53
|
-
'requests': value['requests']
|
|
50
|
+
'limits': value['limits'],
|
|
51
|
+
'requests': value['requests'],
|
|
54
52
|
};
|
|
55
53
|
}
|
|
@@ -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]:
|
|
22
|
+
* @type {{ [key: string]: string; }}
|
|
24
23
|
* @memberof V1VolumeResourceRequirements
|
|
25
24
|
*/
|
|
26
25
|
limits?: {
|
|
27
|
-
[key: string]:
|
|
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]:
|
|
34
|
+
* @type {{ [key: string]: string; }}
|
|
36
35
|
* @memberof V1VolumeResourceRequirements
|
|
37
36
|
*/
|
|
38
37
|
requests?: {
|
|
39
|
-
[key: string]:
|
|
38
|
+
[key: string]: string;
|
|
40
39
|
};
|
|
41
40
|
}
|
|
42
41
|
/**
|
|
@@ -18,8 +18,6 @@ exports.V1VolumeResourceRequirementsFromJSON = V1VolumeResourceRequirementsFromJ
|
|
|
18
18
|
exports.V1VolumeResourceRequirementsFromJSONTyped = V1VolumeResourceRequirementsFromJSONTyped;
|
|
19
19
|
exports.V1VolumeResourceRequirementsToJSON = V1VolumeResourceRequirementsToJSON;
|
|
20
20
|
exports.V1VolumeResourceRequirementsToJSONTyped = V1VolumeResourceRequirementsToJSONTyped;
|
|
21
|
-
const runtime_1 = require("../runtime");
|
|
22
|
-
const ResourceQuantity_1 = require("./ResourceQuantity");
|
|
23
21
|
/**
|
|
24
22
|
* Check if a given object implements the V1VolumeResourceRequirements interface.
|
|
25
23
|
*/
|
|
@@ -34,8 +32,8 @@ function V1VolumeResourceRequirementsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
32
|
return json;
|
|
35
33
|
}
|
|
36
34
|
return {
|
|
37
|
-
'limits': json['limits'] == null ? undefined :
|
|
38
|
-
'requests': json['requests'] == null ? undefined :
|
|
35
|
+
'limits': json['limits'] == null ? undefined : json['limits'],
|
|
36
|
+
'requests': json['requests'] == null ? undefined : json['requests'],
|
|
39
37
|
};
|
|
40
38
|
}
|
|
41
39
|
function V1VolumeResourceRequirementsToJSON(json) {
|
|
@@ -46,7 +44,7 @@ function V1VolumeResourceRequirementsToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
46
44
|
return value;
|
|
47
45
|
}
|
|
48
46
|
return {
|
|
49
|
-
'limits': value['limits']
|
|
50
|
-
'requests': value['requests']
|
|
47
|
+
'limits': value['limits'],
|
|
48
|
+
'requests': value['requests'],
|
|
51
49
|
};
|
|
52
50
|
}
|
|
@@ -39,6 +39,18 @@ export interface V1alpha1KomputerAgentSpec {
|
|
|
39
39
|
* @memberof V1alpha1KomputerAgentSpec
|
|
40
40
|
*/
|
|
41
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
|
+
};
|
|
42
54
|
/**
|
|
43
55
|
* Lifecycle controls what happens after task completion.
|
|
44
56
|
* Empty (default) keeps the pod running, "Sleep" deletes the pod but keeps the PVC,
|
|
@@ -38,6 +38,7 @@ function V1alpha1KomputerAgentSpecFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
'connectors': json['connectors'] == null ? undefined : json['connectors'],
|
|
39
39
|
'instructions': json['instructions'] == null ? undefined : json['instructions'],
|
|
40
40
|
'internalSystemPrompt': json['internalSystemPrompt'] == null ? undefined : json['internalSystemPrompt'],
|
|
41
|
+
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
41
42
|
'lifecycle': json['lifecycle'] == null ? undefined : (0, V1alpha1AgentLifecycle_1.V1alpha1AgentLifecycleFromJSON)(json['lifecycle']),
|
|
42
43
|
'memories': json['memories'] == null ? undefined : json['memories'],
|
|
43
44
|
'model': json['model'] == null ? undefined : json['model'],
|
|
@@ -63,6 +64,7 @@ function V1alpha1KomputerAgentSpecToJSONTyped(value, ignoreDiscriminator = false
|
|
|
63
64
|
'connectors': value['connectors'],
|
|
64
65
|
'instructions': value['instructions'],
|
|
65
66
|
'internalSystemPrompt': value['internalSystemPrompt'],
|
|
67
|
+
'labels': value['labels'],
|
|
66
68
|
'lifecycle': (0, V1alpha1AgentLifecycle_1.V1alpha1AgentLifecycleToJSON)(value['lifecycle']),
|
|
67
69
|
'memories': value['memories'],
|
|
68
70
|
'model': value['model'],
|
|
@@ -17,6 +17,14 @@ import type { V1alpha1KomputerSquadMemberRef } from './V1alpha1KomputerSquadMemb
|
|
|
17
17
|
* @interface V1alpha1KomputerSquadMember
|
|
18
18
|
*/
|
|
19
19
|
export interface V1alpha1KomputerSquadMember {
|
|
20
|
+
/**
|
|
21
|
+
* Name is the desired KomputerAgent name when Spec is provided. When empty, the
|
|
22
|
+
* operator generates "<squad>-member-<index>". Ignored when Ref is set.
|
|
23
|
+
* +optional
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof V1alpha1KomputerSquadMember
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
20
28
|
/**
|
|
21
29
|
* Exactly one of Ref or Spec must be set.
|
|
22
30
|
* @type {V1alpha1KomputerSquadMemberRef}
|
|
@@ -34,6 +34,7 @@ function V1alpha1KomputerSquadMemberFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
37
38
|
'ref': json['ref'] == null ? undefined : (0, V1alpha1KomputerSquadMemberRef_1.V1alpha1KomputerSquadMemberRefFromJSON)(json['ref']),
|
|
38
39
|
'spec': json['spec'] == null ? undefined : (0, V1alpha1KomputerAgentSpec_1.V1alpha1KomputerAgentSpecFromJSON)(json['spec']),
|
|
39
40
|
};
|
|
@@ -46,6 +47,7 @@ function V1alpha1KomputerSquadMemberToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
46
47
|
return value;
|
|
47
48
|
}
|
|
48
49
|
return {
|
|
50
|
+
'name': value['name'],
|
|
49
51
|
'ref': (0, V1alpha1KomputerSquadMemberRef_1.V1alpha1KomputerSquadMemberRefToJSON)(value['ref']),
|
|
50
52
|
'spec': (0, V1alpha1KomputerAgentSpec_1.V1alpha1KomputerAgentSpecToJSON)(value['spec']),
|
|
51
53
|
};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -22,7 +22,6 @@ export * from './PatchMemoryRequest';
|
|
|
22
22
|
export * from './PatchScheduleRequest';
|
|
23
23
|
export * from './PatchSkillRequest';
|
|
24
24
|
export * from './PatchSquadRequest';
|
|
25
|
-
export * from './ResourceQuantity';
|
|
26
25
|
export * from './ScheduleListResponse';
|
|
27
26
|
export * from './ScheduleResponse';
|
|
28
27
|
export * from './SecretListResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -40,7 +40,6 @@ __exportStar(require("./PatchMemoryRequest"), exports);
|
|
|
40
40
|
__exportStar(require("./PatchScheduleRequest"), exports);
|
|
41
41
|
__exportStar(require("./PatchSkillRequest"), exports);
|
|
42
42
|
__exportStar(require("./PatchSquadRequest"), exports);
|
|
43
|
-
__exportStar(require("./ResourceQuantity"), exports);
|
|
44
43
|
__exportStar(require("./ScheduleListResponse"), exports);
|
|
45
44
|
__exportStar(require("./ScheduleResponse"), exports);
|
|
46
45
|
__exportStar(require("./SecretListResponse"), exports);
|
package/package.json
CHANGED
|
@@ -1,41 +0,0 @@
|
|
|
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 ResourceQuantity
|
|
16
|
-
*/
|
|
17
|
-
export interface ResourceQuantity {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {ResourceQuantityFormatEnum}
|
|
21
|
-
* @memberof ResourceQuantity
|
|
22
|
-
*/
|
|
23
|
-
format?: ResourceQuantityFormatEnum;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* @export
|
|
27
|
-
*/
|
|
28
|
-
export declare const ResourceQuantityFormatEnum: {
|
|
29
|
-
readonly DecimalExponent: "DecimalExponent";
|
|
30
|
-
readonly BinarySI: "BinarySI";
|
|
31
|
-
readonly DecimalSI: "DecimalSI";
|
|
32
|
-
};
|
|
33
|
-
export type ResourceQuantityFormatEnum = typeof ResourceQuantityFormatEnum[keyof typeof ResourceQuantityFormatEnum];
|
|
34
|
-
/**
|
|
35
|
-
* Check if a given object implements the ResourceQuantity interface.
|
|
36
|
-
*/
|
|
37
|
-
export declare function instanceOfResourceQuantity(value: object): value is ResourceQuantity;
|
|
38
|
-
export declare function ResourceQuantityFromJSON(json: any): ResourceQuantity;
|
|
39
|
-
export declare function ResourceQuantityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceQuantity;
|
|
40
|
-
export declare function ResourceQuantityToJSON(json: any): ResourceQuantity;
|
|
41
|
-
export declare function ResourceQuantityToJSONTyped(value?: ResourceQuantity | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,49 +0,0 @@
|
|
|
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
|
-
* @export
|
|
16
|
-
*/
|
|
17
|
-
export const ResourceQuantityFormatEnum = {
|
|
18
|
-
DecimalExponent: 'DecimalExponent',
|
|
19
|
-
BinarySI: 'BinarySI',
|
|
20
|
-
DecimalSI: 'DecimalSI'
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the ResourceQuantity interface.
|
|
24
|
-
*/
|
|
25
|
-
export function instanceOfResourceQuantity(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
export function ResourceQuantityFromJSON(json) {
|
|
29
|
-
return ResourceQuantityFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
export function ResourceQuantityFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'format': json['Format'] == null ? undefined : json['Format'],
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
export function ResourceQuantityToJSON(json) {
|
|
40
|
-
return ResourceQuantityToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
export function ResourceQuantityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
-
if (value == null) {
|
|
44
|
-
return value;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
'Format': value['format'],
|
|
48
|
-
};
|
|
49
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
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 ResourceQuantity
|
|
16
|
-
*/
|
|
17
|
-
export interface ResourceQuantity {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {ResourceQuantityFormatEnum}
|
|
21
|
-
* @memberof ResourceQuantity
|
|
22
|
-
*/
|
|
23
|
-
format?: ResourceQuantityFormatEnum;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* @export
|
|
27
|
-
*/
|
|
28
|
-
export declare const ResourceQuantityFormatEnum: {
|
|
29
|
-
readonly DecimalExponent: "DecimalExponent";
|
|
30
|
-
readonly BinarySI: "BinarySI";
|
|
31
|
-
readonly DecimalSI: "DecimalSI";
|
|
32
|
-
};
|
|
33
|
-
export type ResourceQuantityFormatEnum = typeof ResourceQuantityFormatEnum[keyof typeof ResourceQuantityFormatEnum];
|
|
34
|
-
/**
|
|
35
|
-
* Check if a given object implements the ResourceQuantity interface.
|
|
36
|
-
*/
|
|
37
|
-
export declare function instanceOfResourceQuantity(value: object): value is ResourceQuantity;
|
|
38
|
-
export declare function ResourceQuantityFromJSON(json: any): ResourceQuantity;
|
|
39
|
-
export declare function ResourceQuantityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceQuantity;
|
|
40
|
-
export declare function ResourceQuantityToJSON(json: any): ResourceQuantity;
|
|
41
|
-
export declare function ResourceQuantityToJSONTyped(value?: ResourceQuantity | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,57 +0,0 @@
|
|
|
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.ResourceQuantityFormatEnum = void 0;
|
|
17
|
-
exports.instanceOfResourceQuantity = instanceOfResourceQuantity;
|
|
18
|
-
exports.ResourceQuantityFromJSON = ResourceQuantityFromJSON;
|
|
19
|
-
exports.ResourceQuantityFromJSONTyped = ResourceQuantityFromJSONTyped;
|
|
20
|
-
exports.ResourceQuantityToJSON = ResourceQuantityToJSON;
|
|
21
|
-
exports.ResourceQuantityToJSONTyped = ResourceQuantityToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
exports.ResourceQuantityFormatEnum = {
|
|
26
|
-
DecimalExponent: 'DecimalExponent',
|
|
27
|
-
BinarySI: 'BinarySI',
|
|
28
|
-
DecimalSI: 'DecimalSI'
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the ResourceQuantity interface.
|
|
32
|
-
*/
|
|
33
|
-
function instanceOfResourceQuantity(value) {
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
function ResourceQuantityFromJSON(json) {
|
|
37
|
-
return ResourceQuantityFromJSONTyped(json, false);
|
|
38
|
-
}
|
|
39
|
-
function ResourceQuantityFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
-
if (json == null) {
|
|
41
|
-
return json;
|
|
42
|
-
}
|
|
43
|
-
return {
|
|
44
|
-
'format': json['Format'] == null ? undefined : json['Format'],
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
function ResourceQuantityToJSON(json) {
|
|
48
|
-
return ResourceQuantityToJSONTyped(json, false);
|
|
49
|
-
}
|
|
50
|
-
function ResourceQuantityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
-
if (value == null) {
|
|
52
|
-
return value;
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
'Format': value['format'],
|
|
56
|
-
};
|
|
57
|
-
}
|