@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.
- package/.openapi-generator/FILES +22 -2
- package/dist/apis/SquadsApi.d.ts +163 -0
- package/dist/apis/SquadsApi.js +389 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/client.d.ts +7 -1
- package/dist/client.js +3 -3
- package/dist/esm/apis/SquadsApi.d.ts +163 -0
- package/dist/esm/apis/SquadsApi.js +385 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/client.d.ts +7 -1
- package/dist/esm/client.js +3 -3
- package/dist/esm/models/AddSquadMemberRequest.d.ts +46 -0
- package/dist/esm/models/AddSquadMemberRequest.js +47 -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/CreateSquadRequest.d.ts +51 -0
- package/dist/esm/models/CreateSquadRequest.js +52 -0
- package/dist/esm/models/PatchAgentRequest.d.ts +8 -0
- package/dist/esm/models/PatchAgentRequest.js +2 -0
- package/dist/esm/models/PatchSquadRequest.d.ts +39 -0
- package/dist/esm/models/PatchSquadRequest.js +44 -0
- package/dist/esm/models/SquadListResponse.d.ts +33 -0
- package/dist/esm/models/SquadListResponse.js +42 -0
- package/dist/esm/models/SquadMemberResponse.d.ts +44 -0
- package/dist/esm/models/SquadMemberResponse.js +45 -0
- package/dist/esm/models/SquadResponse.d.ts +87 -0
- package/dist/esm/models/SquadResponse.js +60 -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/V1alpha1AgentLifecycle.d.ts +26 -0
- package/dist/esm/models/V1alpha1AgentLifecycle.js +44 -0
- package/dist/esm/models/V1alpha1KomputerAgentSpec.d.ts +164 -0
- package/dist/esm/models/V1alpha1KomputerAgentSpec.js +74 -0
- package/dist/esm/models/V1alpha1KomputerSquadMember.d.ts +48 -0
- package/dist/esm/models/V1alpha1KomputerSquadMember.js +47 -0
- package/dist/esm/models/V1alpha1KomputerSquadMemberRef.d.ts +38 -0
- package/dist/esm/models/V1alpha1KomputerSquadMemberRef.js +43 -0
- package/dist/esm/models/index.d.ts +10 -1
- package/dist/esm/models/index.js +10 -1
- package/dist/models/AddSquadMemberRequest.d.ts +46 -0
- package/dist/models/AddSquadMemberRequest.js +54 -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/CreateSquadRequest.d.ts +51 -0
- package/dist/models/CreateSquadRequest.js +59 -0
- package/dist/models/PatchAgentRequest.d.ts +8 -0
- package/dist/models/PatchAgentRequest.js +2 -0
- package/dist/models/PatchSquadRequest.d.ts +39 -0
- package/dist/models/PatchSquadRequest.js +51 -0
- package/dist/models/SquadListResponse.d.ts +33 -0
- package/dist/models/SquadListResponse.js +49 -0
- package/dist/models/SquadMemberResponse.d.ts +44 -0
- package/dist/models/SquadMemberResponse.js +52 -0
- package/dist/models/SquadResponse.d.ts +87 -0
- package/dist/models/SquadResponse.js +67 -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/V1alpha1AgentLifecycle.d.ts +26 -0
- package/dist/models/V1alpha1AgentLifecycle.js +52 -0
- package/dist/models/V1alpha1KomputerAgentSpec.d.ts +164 -0
- package/dist/models/V1alpha1KomputerAgentSpec.js +81 -0
- package/dist/models/V1alpha1KomputerSquadMember.d.ts +48 -0
- package/dist/models/V1alpha1KomputerSquadMember.js +54 -0
- package/dist/models/V1alpha1KomputerSquadMemberRef.d.ts +38 -0
- package/dist/models/V1alpha1KomputerSquadMemberRef.js +50 -0
- package/dist/models/index.d.ts +10 -1
- package/dist/models/index.js +10 -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
|
@@ -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
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* komputer.ai API
|
|
3
|
+
* API-first platform for running persistent Claude AI agents on Kubernetes. Designed to be driven by external systems — create agents, send tasks, and stream real-time results via REST + WebSocket.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const V1alpha1AgentLifecycle: {
|
|
17
|
+
readonly AgentLifecycleDefault: "";
|
|
18
|
+
readonly AgentLifecycleSleep: "Sleep";
|
|
19
|
+
readonly AgentLifecycleAutoDelete: "AutoDelete";
|
|
20
|
+
};
|
|
21
|
+
export type V1alpha1AgentLifecycle = typeof V1alpha1AgentLifecycle[keyof typeof V1alpha1AgentLifecycle];
|
|
22
|
+
export declare function instanceOfV1alpha1AgentLifecycle(value: any): boolean;
|
|
23
|
+
export declare function V1alpha1AgentLifecycleFromJSON(json: any): V1alpha1AgentLifecycle;
|
|
24
|
+
export declare function V1alpha1AgentLifecycleFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1AgentLifecycle;
|
|
25
|
+
export declare function V1alpha1AgentLifecycleToJSON(value?: V1alpha1AgentLifecycle | null): any;
|
|
26
|
+
export declare function V1alpha1AgentLifecycleToJSONTyped(value: any, ignoreDiscriminator: boolean): V1alpha1AgentLifecycle;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* komputer.ai API
|
|
6
|
+
* API-first platform for running persistent Claude AI agents on Kubernetes. Designed to be driven by external systems — create agents, send tasks, and stream real-time results via REST + WebSocket.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.V1alpha1AgentLifecycle = void 0;
|
|
17
|
+
exports.instanceOfV1alpha1AgentLifecycle = instanceOfV1alpha1AgentLifecycle;
|
|
18
|
+
exports.V1alpha1AgentLifecycleFromJSON = V1alpha1AgentLifecycleFromJSON;
|
|
19
|
+
exports.V1alpha1AgentLifecycleFromJSONTyped = V1alpha1AgentLifecycleFromJSONTyped;
|
|
20
|
+
exports.V1alpha1AgentLifecycleToJSON = V1alpha1AgentLifecycleToJSON;
|
|
21
|
+
exports.V1alpha1AgentLifecycleToJSONTyped = V1alpha1AgentLifecycleToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.V1alpha1AgentLifecycle = {
|
|
27
|
+
AgentLifecycleDefault: '',
|
|
28
|
+
AgentLifecycleSleep: 'Sleep',
|
|
29
|
+
AgentLifecycleAutoDelete: 'AutoDelete'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfV1alpha1AgentLifecycle(value) {
|
|
32
|
+
for (const key in exports.V1alpha1AgentLifecycle) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.V1alpha1AgentLifecycle, key)) {
|
|
34
|
+
if (exports.V1alpha1AgentLifecycle[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function V1alpha1AgentLifecycleFromJSON(json) {
|
|
42
|
+
return V1alpha1AgentLifecycleFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function V1alpha1AgentLifecycleFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function V1alpha1AgentLifecycleToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function V1alpha1AgentLifecycleToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -0,0 +1,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;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* komputer.ai API
|
|
6
|
+
* API-first platform for running persistent Claude AI agents on Kubernetes. Designed to be driven by external systems — create agents, send tasks, and stream real-time results via REST + WebSocket.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfV1alpha1KomputerAgentSpec = instanceOfV1alpha1KomputerAgentSpec;
|
|
17
|
+
exports.V1alpha1KomputerAgentSpecFromJSON = V1alpha1KomputerAgentSpecFromJSON;
|
|
18
|
+
exports.V1alpha1KomputerAgentSpecFromJSONTyped = V1alpha1KomputerAgentSpecFromJSONTyped;
|
|
19
|
+
exports.V1alpha1KomputerAgentSpecToJSON = V1alpha1KomputerAgentSpecToJSON;
|
|
20
|
+
exports.V1alpha1KomputerAgentSpecToJSONTyped = V1alpha1KomputerAgentSpecToJSONTyped;
|
|
21
|
+
const V1alpha1AgentLifecycle_1 = require("./V1alpha1AgentLifecycle");
|
|
22
|
+
const V1alpha1StorageSpec_1 = require("./V1alpha1StorageSpec");
|
|
23
|
+
const V1PodSpec_1 = require("./V1PodSpec");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the V1alpha1KomputerAgentSpec interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfV1alpha1KomputerAgentSpec(value) {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function V1alpha1KomputerAgentSpecFromJSON(json) {
|
|
31
|
+
return V1alpha1KomputerAgentSpecFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function V1alpha1KomputerAgentSpecFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'connectors': json['connectors'] == null ? undefined : json['connectors'],
|
|
39
|
+
'instructions': json['instructions'] == null ? undefined : json['instructions'],
|
|
40
|
+
'internalSystemPrompt': json['internalSystemPrompt'] == null ? undefined : json['internalSystemPrompt'],
|
|
41
|
+
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
42
|
+
'lifecycle': json['lifecycle'] == null ? undefined : (0, V1alpha1AgentLifecycle_1.V1alpha1AgentLifecycleFromJSON)(json['lifecycle']),
|
|
43
|
+
'memories': json['memories'] == null ? undefined : json['memories'],
|
|
44
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
45
|
+
'officeManager': json['officeManager'] == null ? undefined : json['officeManager'],
|
|
46
|
+
'podSpec': json['podSpec'] == null ? undefined : (0, V1PodSpec_1.V1PodSpecFromJSON)(json['podSpec']),
|
|
47
|
+
'priority': json['priority'] == null ? undefined : json['priority'],
|
|
48
|
+
'role': json['role'] == null ? undefined : json['role'],
|
|
49
|
+
'secrets': json['secrets'] == null ? undefined : json['secrets'],
|
|
50
|
+
'skills': json['skills'] == null ? undefined : json['skills'],
|
|
51
|
+
'storage': json['storage'] == null ? undefined : (0, V1alpha1StorageSpec_1.V1alpha1StorageSpecFromJSON)(json['storage']),
|
|
52
|
+
'systemPrompt': json['systemPrompt'] == null ? undefined : json['systemPrompt'],
|
|
53
|
+
'templateRef': json['templateRef'] == null ? undefined : json['templateRef'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function V1alpha1KomputerAgentSpecToJSON(json) {
|
|
57
|
+
return V1alpha1KomputerAgentSpecToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function V1alpha1KomputerAgentSpecToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'connectors': value['connectors'],
|
|
65
|
+
'instructions': value['instructions'],
|
|
66
|
+
'internalSystemPrompt': value['internalSystemPrompt'],
|
|
67
|
+
'labels': value['labels'],
|
|
68
|
+
'lifecycle': (0, V1alpha1AgentLifecycle_1.V1alpha1AgentLifecycleToJSON)(value['lifecycle']),
|
|
69
|
+
'memories': value['memories'],
|
|
70
|
+
'model': value['model'],
|
|
71
|
+
'officeManager': value['officeManager'],
|
|
72
|
+
'podSpec': (0, V1PodSpec_1.V1PodSpecToJSON)(value['podSpec']),
|
|
73
|
+
'priority': value['priority'],
|
|
74
|
+
'role': value['role'],
|
|
75
|
+
'secrets': value['secrets'],
|
|
76
|
+
'skills': value['skills'],
|
|
77
|
+
'storage': (0, V1alpha1StorageSpec_1.V1alpha1StorageSpecToJSON)(value['storage']),
|
|
78
|
+
'systemPrompt': value['systemPrompt'],
|
|
79
|
+
'templateRef': value['templateRef'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* komputer.ai API
|
|
3
|
+
* API-first platform for running persistent Claude AI agents on Kubernetes. Designed to be driven by external systems — create agents, send tasks, and stream real-time results via REST + WebSocket.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { V1alpha1KomputerAgentSpec } from './V1alpha1KomputerAgentSpec';
|
|
13
|
+
import type { V1alpha1KomputerSquadMemberRef } from './V1alpha1KomputerSquadMemberRef';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface V1alpha1KomputerSquadMember
|
|
18
|
+
*/
|
|
19
|
+
export interface V1alpha1KomputerSquadMember {
|
|
20
|
+
/**
|
|
21
|
+
* 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;
|
|
28
|
+
/**
|
|
29
|
+
* Exactly one of Ref or Spec must be set.
|
|
30
|
+
* @type {V1alpha1KomputerSquadMemberRef}
|
|
31
|
+
* @memberof V1alpha1KomputerSquadMember
|
|
32
|
+
*/
|
|
33
|
+
ref?: V1alpha1KomputerSquadMemberRef;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {V1alpha1KomputerAgentSpec}
|
|
37
|
+
* @memberof V1alpha1KomputerSquadMember
|
|
38
|
+
*/
|
|
39
|
+
spec?: V1alpha1KomputerAgentSpec;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Check if a given object implements the V1alpha1KomputerSquadMember interface.
|
|
43
|
+
*/
|
|
44
|
+
export declare function instanceOfV1alpha1KomputerSquadMember(value: object): value is V1alpha1KomputerSquadMember;
|
|
45
|
+
export declare function V1alpha1KomputerSquadMemberFromJSON(json: any): V1alpha1KomputerSquadMember;
|
|
46
|
+
export declare function V1alpha1KomputerSquadMemberFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1KomputerSquadMember;
|
|
47
|
+
export declare function V1alpha1KomputerSquadMemberToJSON(json: any): V1alpha1KomputerSquadMember;
|
|
48
|
+
export declare function V1alpha1KomputerSquadMemberToJSONTyped(value?: V1alpha1KomputerSquadMember | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfV1alpha1KomputerSquadMember = instanceOfV1alpha1KomputerSquadMember;
|
|
17
|
+
exports.V1alpha1KomputerSquadMemberFromJSON = V1alpha1KomputerSquadMemberFromJSON;
|
|
18
|
+
exports.V1alpha1KomputerSquadMemberFromJSONTyped = V1alpha1KomputerSquadMemberFromJSONTyped;
|
|
19
|
+
exports.V1alpha1KomputerSquadMemberToJSON = V1alpha1KomputerSquadMemberToJSON;
|
|
20
|
+
exports.V1alpha1KomputerSquadMemberToJSONTyped = V1alpha1KomputerSquadMemberToJSONTyped;
|
|
21
|
+
const V1alpha1KomputerAgentSpec_1 = require("./V1alpha1KomputerAgentSpec");
|
|
22
|
+
const V1alpha1KomputerSquadMemberRef_1 = require("./V1alpha1KomputerSquadMemberRef");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the V1alpha1KomputerSquadMember interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfV1alpha1KomputerSquadMember(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function V1alpha1KomputerSquadMemberFromJSON(json) {
|
|
30
|
+
return V1alpha1KomputerSquadMemberFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function V1alpha1KomputerSquadMemberFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
38
|
+
'ref': json['ref'] == null ? undefined : (0, V1alpha1KomputerSquadMemberRef_1.V1alpha1KomputerSquadMemberRefFromJSON)(json['ref']),
|
|
39
|
+
'spec': json['spec'] == null ? undefined : (0, V1alpha1KomputerAgentSpec_1.V1alpha1KomputerAgentSpecFromJSON)(json['spec']),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function V1alpha1KomputerSquadMemberToJSON(json) {
|
|
43
|
+
return V1alpha1KomputerSquadMemberToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function V1alpha1KomputerSquadMemberToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'name': value['name'],
|
|
51
|
+
'ref': (0, V1alpha1KomputerSquadMemberRef_1.V1alpha1KomputerSquadMemberRefToJSON)(value['ref']),
|
|
52
|
+
'spec': (0, V1alpha1KomputerAgentSpec_1.V1alpha1KomputerAgentSpecToJSON)(value['spec']),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 V1alpha1KomputerSquadMemberRef
|
|
16
|
+
*/
|
|
17
|
+
export interface V1alpha1KomputerSquadMemberRef {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof V1alpha1KomputerSquadMemberRef
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
* defaults to squad's namespace
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof V1alpha1KomputerSquadMemberRef
|
|
28
|
+
*/
|
|
29
|
+
namespace?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the V1alpha1KomputerSquadMemberRef interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfV1alpha1KomputerSquadMemberRef(value: object): value is V1alpha1KomputerSquadMemberRef;
|
|
35
|
+
export declare function V1alpha1KomputerSquadMemberRefFromJSON(json: any): V1alpha1KomputerSquadMemberRef;
|
|
36
|
+
export declare function V1alpha1KomputerSquadMemberRefFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1alpha1KomputerSquadMemberRef;
|
|
37
|
+
export declare function V1alpha1KomputerSquadMemberRefToJSON(json: any): V1alpha1KomputerSquadMemberRef;
|
|
38
|
+
export declare function V1alpha1KomputerSquadMemberRefToJSONTyped(value?: V1alpha1KomputerSquadMemberRef | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfV1alpha1KomputerSquadMemberRef = instanceOfV1alpha1KomputerSquadMemberRef;
|
|
17
|
+
exports.V1alpha1KomputerSquadMemberRefFromJSON = V1alpha1KomputerSquadMemberRefFromJSON;
|
|
18
|
+
exports.V1alpha1KomputerSquadMemberRefFromJSONTyped = V1alpha1KomputerSquadMemberRefFromJSONTyped;
|
|
19
|
+
exports.V1alpha1KomputerSquadMemberRefToJSON = V1alpha1KomputerSquadMemberRefToJSON;
|
|
20
|
+
exports.V1alpha1KomputerSquadMemberRefToJSONTyped = V1alpha1KomputerSquadMemberRefToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the V1alpha1KomputerSquadMemberRef interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfV1alpha1KomputerSquadMemberRef(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function V1alpha1KomputerSquadMemberRefFromJSON(json) {
|
|
28
|
+
return V1alpha1KomputerSquadMemberRefFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function V1alpha1KomputerSquadMemberRefFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
36
|
+
'namespace': json['namespace'] == null ? undefined : json['namespace'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function V1alpha1KomputerSquadMemberRefToJSON(json) {
|
|
40
|
+
return V1alpha1KomputerSquadMemberRefToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function V1alpha1KomputerSquadMemberRefToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'name': value['name'],
|
|
48
|
+
'namespace': value['namespace'],
|
|
49
|
+
};
|
|
50
|
+
}
|