@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
|
@@ -29,6 +29,7 @@ export function PatchAgentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
return {
|
|
30
30
|
'connectors': json['connectors'] == null ? undefined : json['connectors'],
|
|
31
31
|
'instructions': json['instructions'] == null ? undefined : json['instructions'],
|
|
32
|
+
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
32
33
|
'lifecycle': json['lifecycle'] == null ? undefined : json['lifecycle'],
|
|
33
34
|
'memories': json['memories'] == null ? undefined : json['memories'],
|
|
34
35
|
'model': json['model'] == null ? undefined : json['model'],
|
|
@@ -51,6 +52,7 @@ export function PatchAgentRequestToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
51
52
|
return {
|
|
52
53
|
'connectors': value['connectors'],
|
|
53
54
|
'instructions': value['instructions'],
|
|
55
|
+
'labels': value['labels'],
|
|
54
56
|
'lifecycle': value['lifecycle'],
|
|
55
57
|
'memories': value['memories'],
|
|
56
58
|
'model': value['model'],
|
|
@@ -16,6 +16,12 @@ import type { SquadMemberResponse } from './SquadMemberResponse';
|
|
|
16
16
|
* @interface SquadResponse
|
|
17
17
|
*/
|
|
18
18
|
export interface SquadResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof SquadResponse
|
|
23
|
+
*/
|
|
24
|
+
breakUpRequested?: boolean;
|
|
19
25
|
/**
|
|
20
26
|
*
|
|
21
27
|
* @type {string}
|
|
@@ -26,6 +26,7 @@ export function SquadResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
26
|
return json;
|
|
27
27
|
}
|
|
28
28
|
return {
|
|
29
|
+
'breakUpRequested': json['breakUpRequested'] == null ? undefined : json['breakUpRequested'],
|
|
29
30
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
30
31
|
'members': json['members'] == null ? undefined : (json['members'].map(SquadMemberResponseFromJSON)),
|
|
31
32
|
'message': json['message'] == null ? undefined : json['message'],
|
|
@@ -45,6 +46,7 @@ export function SquadResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
45
46
|
return value;
|
|
46
47
|
}
|
|
47
48
|
return {
|
|
49
|
+
'breakUpRequested': value['breakUpRequested'],
|
|
48
50
|
'createdAt': value['createdAt'],
|
|
49
51
|
'members': value['members'] == null ? undefined : (value['members'].map(SquadMemberResponseToJSON)),
|
|
50
52
|
'message': value['message'],
|
|
@@ -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.
|
|
@@ -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 :
|
|
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':
|
|
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]:
|
|
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.
|
|
@@ -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 :
|
|
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']
|
|
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 {
|
|
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}
|
|
@@ -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 :
|
|
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':
|
|
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]:
|
|
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
|
/**
|
|
@@ -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 :
|
|
33
|
-
'requests': json['requests'] == null ? undefined :
|
|
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']
|
|
46
|
-
'requests': value['requests']
|
|
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]:
|
|
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
|
/**
|
|
@@ -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 :
|
|
31
|
-
'requests': json['requests'] == null ? undefined :
|
|
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']
|
|
43
|
-
'requests': value['requests']
|
|
40
|
+
'limits': value['limits'],
|
|
41
|
+
'requests': value['requests'],
|
|
44
42
|
};
|
|
45
43
|
}
|
|
@@ -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,
|
|
@@ -31,6 +31,7 @@ export function V1alpha1KomputerAgentSpecFromJSONTyped(json, ignoreDiscriminator
|
|
|
31
31
|
'connectors': json['connectors'] == null ? undefined : json['connectors'],
|
|
32
32
|
'instructions': json['instructions'] == null ? undefined : json['instructions'],
|
|
33
33
|
'internalSystemPrompt': json['internalSystemPrompt'] == null ? undefined : json['internalSystemPrompt'],
|
|
34
|
+
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
34
35
|
'lifecycle': json['lifecycle'] == null ? undefined : V1alpha1AgentLifecycleFromJSON(json['lifecycle']),
|
|
35
36
|
'memories': json['memories'] == null ? undefined : json['memories'],
|
|
36
37
|
'model': json['model'] == null ? undefined : json['model'],
|
|
@@ -56,6 +57,7 @@ export function V1alpha1KomputerAgentSpecToJSONTyped(value, ignoreDiscriminator
|
|
|
56
57
|
'connectors': value['connectors'],
|
|
57
58
|
'instructions': value['instructions'],
|
|
58
59
|
'internalSystemPrompt': value['internalSystemPrompt'],
|
|
60
|
+
'labels': value['labels'],
|
|
59
61
|
'lifecycle': V1alpha1AgentLifecycleToJSON(value['lifecycle']),
|
|
60
62
|
'memories': value['memories'],
|
|
61
63
|
'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}
|
|
@@ -27,6 +27,7 @@ export function V1alpha1KomputerSquadMemberFromJSONTyped(json, ignoreDiscriminat
|
|
|
27
27
|
return json;
|
|
28
28
|
}
|
|
29
29
|
return {
|
|
30
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
30
31
|
'ref': json['ref'] == null ? undefined : V1alpha1KomputerSquadMemberRefFromJSON(json['ref']),
|
|
31
32
|
'spec': json['spec'] == null ? undefined : V1alpha1KomputerAgentSpecFromJSON(json['spec']),
|
|
32
33
|
};
|
|
@@ -39,6 +40,7 @@ export function V1alpha1KomputerSquadMemberToJSONTyped(value, ignoreDiscriminato
|
|
|
39
40
|
return value;
|
|
40
41
|
}
|
|
41
42
|
return {
|
|
43
|
+
'name': value['name'],
|
|
42
44
|
'ref': V1alpha1KomputerSquadMemberRefToJSON(value['ref']),
|
|
43
45
|
'spec': V1alpha1KomputerAgentSpecToJSON(value['spec']),
|
|
44
46
|
};
|
|
@@ -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/esm/models/index.js
CHANGED
|
@@ -24,7 +24,6 @@ export * from './PatchMemoryRequest';
|
|
|
24
24
|
export * from './PatchScheduleRequest';
|
|
25
25
|
export * from './PatchSkillRequest';
|
|
26
26
|
export * from './PatchSquadRequest';
|
|
27
|
-
export * from './ResourceQuantity';
|
|
28
27
|
export * from './ScheduleListResponse';
|
|
29
28
|
export * from './ScheduleResponse';
|
|
30
29
|
export * from './SecretListResponse';
|
|
@@ -17,6 +17,12 @@ import type { V1alpha1KomputerSquadMemberRef } from './V1alpha1KomputerSquadMemb
|
|
|
17
17
|
* @interface AddSquadMemberRequest
|
|
18
18
|
*/
|
|
19
19
|
export interface AddSquadMemberRequest {
|
|
20
|
+
/**
|
|
21
|
+
* Name is the desired KomputerAgent name when Spec is set. Optional.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof AddSquadMemberRequest
|
|
24
|
+
*/
|
|
25
|
+
name?: string;
|
|
20
26
|
/**
|
|
21
27
|
*
|
|
22
28
|
* @type {V1alpha1KomputerSquadMemberRef}
|
|
@@ -34,6 +34,7 @@ function AddSquadMemberRequestFromJSONTyped(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 AddSquadMemberRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
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
|
};
|
|
@@ -17,6 +17,12 @@ import type { V1PodSpec } from './V1PodSpec';
|
|
|
17
17
|
* @interface AgentResponse
|
|
18
18
|
*/
|
|
19
19
|
export interface AgentResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof AgentResponse
|
|
24
|
+
*/
|
|
25
|
+
completionTime?: string;
|
|
20
26
|
/**
|
|
21
27
|
* KomputerConnector names attached to this agent
|
|
22
28
|
* @type {Array<string>}
|
|
@@ -43,6 +49,14 @@ export interface AgentResponse {
|
|
|
43
49
|
* @memberof AgentResponse
|
|
44
50
|
*/
|
|
45
51
|
instructions?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {{ [key: string]: string; }}
|
|
55
|
+
* @memberof AgentResponse
|
|
56
|
+
*/
|
|
57
|
+
labels?: {
|
|
58
|
+
[key: string]: string;
|
|
59
|
+
};
|
|
46
60
|
/**
|
|
47
61
|
*
|
|
48
62
|
* @type {string}
|
|
@@ -127,6 +141,18 @@ export interface AgentResponse {
|
|
|
127
141
|
* @memberof AgentResponse
|
|
128
142
|
*/
|
|
129
143
|
skills?: Array<string>;
|
|
144
|
+
/**
|
|
145
|
+
* True when this agent is managed by a KomputerSquad
|
|
146
|
+
* @type {boolean}
|
|
147
|
+
* @memberof AgentResponse
|
|
148
|
+
*/
|
|
149
|
+
squad?: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Name of the squad managing this agent (when Squad=true)
|
|
152
|
+
* @type {string}
|
|
153
|
+
* @memberof AgentResponse
|
|
154
|
+
*/
|
|
155
|
+
squadName?: string;
|
|
130
156
|
/**
|
|
131
157
|
*
|
|
132
158
|
* @type {string}
|
|
@@ -34,10 +34,12 @@ function AgentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
|
+
'completionTime': json['completionTime'] == null ? undefined : json['completionTime'],
|
|
37
38
|
'connectors': json['connectors'] == null ? undefined : json['connectors'],
|
|
38
39
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
39
40
|
'errors': json['errors'] == null ? undefined : json['errors'],
|
|
40
41
|
'instructions': json['instructions'] == null ? undefined : json['instructions'],
|
|
42
|
+
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
41
43
|
'lastTaskCostUSD': json['lastTaskCostUSD'] == null ? undefined : json['lastTaskCostUSD'],
|
|
42
44
|
'lastTaskMessage': json['lastTaskMessage'] == null ? undefined : json['lastTaskMessage'],
|
|
43
45
|
'lifecycle': json['lifecycle'] == null ? undefined : json['lifecycle'],
|
|
@@ -52,6 +54,8 @@ function AgentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
54
|
'queueReason': json['queueReason'] == null ? undefined : json['queueReason'],
|
|
53
55
|
'secrets': json['secrets'] == null ? undefined : json['secrets'],
|
|
54
56
|
'skills': json['skills'] == null ? undefined : json['skills'],
|
|
57
|
+
'squad': json['squad'] == null ? undefined : json['squad'],
|
|
58
|
+
'squadName': json['squadName'] == null ? undefined : json['squadName'],
|
|
55
59
|
'status': json['status'] == null ? undefined : json['status'],
|
|
56
60
|
'storage': json['storage'] == null ? undefined : (0, V1alpha1StorageSpec_1.V1alpha1StorageSpecFromJSON)(json['storage']),
|
|
57
61
|
'systemPrompt': json['systemPrompt'] == null ? undefined : json['systemPrompt'],
|
|
@@ -68,10 +72,12 @@ function AgentResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
68
72
|
return value;
|
|
69
73
|
}
|
|
70
74
|
return {
|
|
75
|
+
'completionTime': value['completionTime'],
|
|
71
76
|
'connectors': value['connectors'],
|
|
72
77
|
'createdAt': value['createdAt'],
|
|
73
78
|
'errors': value['errors'],
|
|
74
79
|
'instructions': value['instructions'],
|
|
80
|
+
'labels': value['labels'],
|
|
75
81
|
'lastTaskCostUSD': value['lastTaskCostUSD'],
|
|
76
82
|
'lastTaskMessage': value['lastTaskMessage'],
|
|
77
83
|
'lifecycle': value['lifecycle'],
|
|
@@ -86,6 +92,8 @@ function AgentResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
86
92
|
'queueReason': value['queueReason'],
|
|
87
93
|
'secrets': value['secrets'],
|
|
88
94
|
'skills': value['skills'],
|
|
95
|
+
'squad': value['squad'],
|
|
96
|
+
'squadName': value['squadName'],
|
|
89
97
|
'status': value['status'],
|
|
90
98
|
'storage': (0, V1alpha1StorageSpec_1.V1alpha1StorageSpecToJSON)(value['storage']),
|
|
91
99
|
'systemPrompt': value['systemPrompt'],
|
|
@@ -29,6 +29,16 @@ export interface CreateAgentRequest {
|
|
|
29
29
|
* @memberof CreateAgentRequest
|
|
30
30
|
*/
|
|
31
31
|
instructions: string;
|
|
32
|
+
/**
|
|
33
|
+
* Labels are user-defined key=value labels passed through to the agent CR.
|
|
34
|
+
* Reserved-prefix keys (komputer.ai/*) are rejected except for
|
|
35
|
+
* "komputer.ai/personal-agent" which is allow-listed.
|
|
36
|
+
* @type {{ [key: string]: string; }}
|
|
37
|
+
* @memberof CreateAgentRequest
|
|
38
|
+
*/
|
|
39
|
+
labels?: {
|
|
40
|
+
[key: string]: string;
|
|
41
|
+
};
|
|
32
42
|
/**
|
|
33
43
|
* "", "Sleep", or "AutoDelete"
|
|
34
44
|
* @type {string}
|
|
@@ -40,6 +40,7 @@ function CreateAgentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
return {
|
|
41
41
|
'connectors': json['connectors'] == null ? undefined : json['connectors'],
|
|
42
42
|
'instructions': json['instructions'],
|
|
43
|
+
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
43
44
|
'lifecycle': json['lifecycle'] == null ? undefined : json['lifecycle'],
|
|
44
45
|
'memories': json['memories'] == null ? undefined : json['memories'],
|
|
45
46
|
'model': json['model'] == null ? undefined : json['model'],
|
|
@@ -66,6 +67,7 @@ function CreateAgentRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
66
67
|
return {
|
|
67
68
|
'connectors': value['connectors'],
|
|
68
69
|
'instructions': value['instructions'],
|
|
70
|
+
'labels': value['labels'],
|
|
69
71
|
'lifecycle': value['lifecycle'],
|
|
70
72
|
'memories': value['memories'],
|
|
71
73
|
'model': value['model'],
|
|
@@ -29,6 +29,14 @@ export interface PatchAgentRequest {
|
|
|
29
29
|
* @memberof PatchAgentRequest
|
|
30
30
|
*/
|
|
31
31
|
instructions?: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {{ [key: string]: string; }}
|
|
35
|
+
* @memberof PatchAgentRequest
|
|
36
|
+
*/
|
|
37
|
+
labels?: {
|
|
38
|
+
[key: string]: string;
|
|
39
|
+
};
|
|
32
40
|
/**
|
|
33
41
|
*
|
|
34
42
|
* @type {string}
|
|
@@ -36,6 +36,7 @@ function PatchAgentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
return {
|
|
37
37
|
'connectors': json['connectors'] == null ? undefined : json['connectors'],
|
|
38
38
|
'instructions': json['instructions'] == null ? undefined : json['instructions'],
|
|
39
|
+
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
39
40
|
'lifecycle': json['lifecycle'] == null ? undefined : json['lifecycle'],
|
|
40
41
|
'memories': json['memories'] == null ? undefined : json['memories'],
|
|
41
42
|
'model': json['model'] == null ? undefined : json['model'],
|
|
@@ -58,6 +59,7 @@ function PatchAgentRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
59
|
return {
|
|
59
60
|
'connectors': value['connectors'],
|
|
60
61
|
'instructions': value['instructions'],
|
|
62
|
+
'labels': value['labels'],
|
|
61
63
|
'lifecycle': value['lifecycle'],
|
|
62
64
|
'memories': value['memories'],
|
|
63
65
|
'model': value['model'],
|
|
@@ -16,6 +16,12 @@ import type { SquadMemberResponse } from './SquadMemberResponse';
|
|
|
16
16
|
* @interface SquadResponse
|
|
17
17
|
*/
|
|
18
18
|
export interface SquadResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof SquadResponse
|
|
23
|
+
*/
|
|
24
|
+
breakUpRequested?: boolean;
|
|
19
25
|
/**
|
|
20
26
|
*
|
|
21
27
|
* @type {string}
|
|
@@ -33,6 +33,7 @@ function SquadResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
36
|
+
'breakUpRequested': json['breakUpRequested'] == null ? undefined : json['breakUpRequested'],
|
|
36
37
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
37
38
|
'members': json['members'] == null ? undefined : (json['members'].map(SquadMemberResponse_1.SquadMemberResponseFromJSON)),
|
|
38
39
|
'message': json['message'] == null ? undefined : json['message'],
|
|
@@ -52,6 +53,7 @@ function SquadResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
52
53
|
return value;
|
|
53
54
|
}
|
|
54
55
|
return {
|
|
56
|
+
'breakUpRequested': value['breakUpRequested'],
|
|
55
57
|
'createdAt': value['createdAt'],
|
|
56
58
|
'members': value['members'] == null ? undefined : (value['members'].map(SquadMemberResponse_1.SquadMemberResponseToJSON)),
|
|
57
59
|
'message': value['message'],
|