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