@komputer-ai/sdk 0.11.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-ignore +31 -0
- package/README.md +147 -0
- package/docs/AgentListResponse.md +34 -0
- package/docs/AgentResponse.md +68 -0
- package/docs/AgentsApi.md +584 -0
- package/docs/ConnectorResponse.md +58 -0
- package/docs/ConnectorsApi.md +366 -0
- package/docs/CreateAgentRequest.md +58 -0
- package/docs/CreateConnectorRequest.md +54 -0
- package/docs/CreateMemoryRequest.md +40 -0
- package/docs/CreateScheduleAgentSpec.md +42 -0
- package/docs/CreateScheduleRequest.md +50 -0
- package/docs/CreateSecretRequest.md +38 -0
- package/docs/CreateSkillRequest.md +40 -0
- package/docs/MemoriesApi.md +368 -0
- package/docs/MemoryResponse.md +46 -0
- package/docs/OfficeListResponse.md +34 -0
- package/docs/OfficeMemberResponse.md +40 -0
- package/docs/OfficeResponse.md +54 -0
- package/docs/OfficesApi.md +300 -0
- package/docs/PatchAgentRequest.md +50 -0
- package/docs/PatchMemoryRequest.md +36 -0
- package/docs/PatchScheduleRequest.md +34 -0
- package/docs/PatchSkillRequest.md +36 -0
- package/docs/ScheduleListResponse.md +34 -0
- package/docs/ScheduleResponse.md +70 -0
- package/docs/SchedulesApi.md +369 -0
- package/docs/SecretListResponse.md +34 -0
- package/docs/SecretResponse.md +48 -0
- package/docs/SecretsApi.md +298 -0
- package/docs/SkillResponse.md +48 -0
- package/docs/SkillsApi.md +368 -0
- package/docs/TemplatesApi.md +138 -0
- package/docs/UpdateSecretRequest.md +36 -0
- package/package.json +27 -0
- package/src/apis/AgentsApi.ts +485 -0
- package/src/apis/ConnectorsApi.ts +301 -0
- package/src/apis/MemoriesApi.ts +315 -0
- package/src/apis/OfficesApi.ts +253 -0
- package/src/apis/SchedulesApi.ts +318 -0
- package/src/apis/SecretsApi.ts +267 -0
- package/src/apis/SkillsApi.ts +315 -0
- package/src/apis/TemplatesApi.ts +109 -0
- package/src/apis/index.ts +10 -0
- package/src/client.test.ts +88 -0
- package/src/client.ts +212 -0
- package/src/index.ts +7 -0
- package/src/models/AgentListResponse.ts +73 -0
- package/src/models/AgentResponse.ts +201 -0
- package/src/models/ConnectorResponse.ts +161 -0
- package/src/models/CreateAgentRequest.ts +163 -0
- package/src/models/CreateConnectorRequest.ts +148 -0
- package/src/models/CreateMemoryRequest.ts +91 -0
- package/src/models/CreateScheduleAgentSpec.ts +97 -0
- package/src/models/CreateScheduleRequest.ts +140 -0
- package/src/models/CreateSecretRequest.ts +83 -0
- package/src/models/CreateSkillRequest.ts +92 -0
- package/src/models/MemoryResponse.ts +113 -0
- package/src/models/OfficeListResponse.ts +73 -0
- package/src/models/OfficeMemberResponse.ts +89 -0
- package/src/models/OfficeResponse.ts +153 -0
- package/src/models/PatchAgentRequest.ts +129 -0
- package/src/models/PatchMemoryRequest.ts +73 -0
- package/src/models/PatchScheduleRequest.ts +65 -0
- package/src/models/PatchSkillRequest.ts +73 -0
- package/src/models/ScheduleListResponse.ts +73 -0
- package/src/models/ScheduleResponse.ts +209 -0
- package/src/models/SecretListResponse.ts +73 -0
- package/src/models/SecretResponse.ts +121 -0
- package/src/models/SkillResponse.ts +121 -0
- package/src/models/UpdateSecretRequest.ts +74 -0
- package/src/models/index.ts +26 -0
- package/src/runtime.ts +450 -0
- package/src/watch.ts +89 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,161 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ConnectorResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface ConnectorResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof ConnectorResponse
|
|
26
|
+
*/
|
|
27
|
+
agentNames?: Array<string>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ConnectorResponse
|
|
32
|
+
*/
|
|
33
|
+
attachedAgents?: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ConnectorResponse
|
|
38
|
+
*/
|
|
39
|
+
authSecretKey?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ConnectorResponse
|
|
44
|
+
*/
|
|
45
|
+
authSecretName?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ConnectorResponse
|
|
50
|
+
*/
|
|
51
|
+
authType?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof ConnectorResponse
|
|
56
|
+
*/
|
|
57
|
+
createdAt?: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof ConnectorResponse
|
|
62
|
+
*/
|
|
63
|
+
displayName?: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof ConnectorResponse
|
|
68
|
+
*/
|
|
69
|
+
name?: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof ConnectorResponse
|
|
74
|
+
*/
|
|
75
|
+
namespace?: string;
|
|
76
|
+
/**
|
|
77
|
+
* "pending", "connected", ""
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof ConnectorResponse
|
|
80
|
+
*/
|
|
81
|
+
oauthStatus?: string;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof ConnectorResponse
|
|
86
|
+
*/
|
|
87
|
+
service?: string;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof ConnectorResponse
|
|
92
|
+
*/
|
|
93
|
+
type?: string;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof ConnectorResponse
|
|
98
|
+
*/
|
|
99
|
+
url?: string;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Check if a given object implements the ConnectorResponse interface.
|
|
104
|
+
*/
|
|
105
|
+
export function instanceOfConnectorResponse(value: object): value is ConnectorResponse {
|
|
106
|
+
return true;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function ConnectorResponseFromJSON(json: any): ConnectorResponse {
|
|
110
|
+
return ConnectorResponseFromJSONTyped(json, false);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function ConnectorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConnectorResponse {
|
|
114
|
+
if (json == null) {
|
|
115
|
+
return json;
|
|
116
|
+
}
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'agentNames': json['agentNames'] == null ? undefined : json['agentNames'],
|
|
120
|
+
'attachedAgents': json['attachedAgents'] == null ? undefined : json['attachedAgents'],
|
|
121
|
+
'authSecretKey': json['authSecretKey'] == null ? undefined : json['authSecretKey'],
|
|
122
|
+
'authSecretName': json['authSecretName'] == null ? undefined : json['authSecretName'],
|
|
123
|
+
'authType': json['authType'] == null ? undefined : json['authType'],
|
|
124
|
+
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
125
|
+
'displayName': json['displayName'] == null ? undefined : json['displayName'],
|
|
126
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
127
|
+
'namespace': json['namespace'] == null ? undefined : json['namespace'],
|
|
128
|
+
'oauthStatus': json['oauthStatus'] == null ? undefined : json['oauthStatus'],
|
|
129
|
+
'service': json['service'] == null ? undefined : json['service'],
|
|
130
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
131
|
+
'url': json['url'] == null ? undefined : json['url'],
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function ConnectorResponseToJSON(json: any): ConnectorResponse {
|
|
136
|
+
return ConnectorResponseToJSONTyped(json, false);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function ConnectorResponseToJSONTyped(value?: ConnectorResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
140
|
+
if (value == null) {
|
|
141
|
+
return value;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
return {
|
|
145
|
+
|
|
146
|
+
'agentNames': value['agentNames'],
|
|
147
|
+
'attachedAgents': value['attachedAgents'],
|
|
148
|
+
'authSecretKey': value['authSecretKey'],
|
|
149
|
+
'authSecretName': value['authSecretName'],
|
|
150
|
+
'authType': value['authType'],
|
|
151
|
+
'createdAt': value['createdAt'],
|
|
152
|
+
'displayName': value['displayName'],
|
|
153
|
+
'name': value['name'],
|
|
154
|
+
'namespace': value['namespace'],
|
|
155
|
+
'oauthStatus': value['oauthStatus'],
|
|
156
|
+
'service': value['service'],
|
|
157
|
+
'type': value['type'],
|
|
158
|
+
'url': value['url'],
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
|
|
@@ -0,0 +1,163 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CreateAgentRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateAgentRequest {
|
|
22
|
+
/**
|
|
23
|
+
* optional KomputerConnector names to attach
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof CreateAgentRequest
|
|
26
|
+
*/
|
|
27
|
+
connectors?: Array<string>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CreateAgentRequest
|
|
32
|
+
*/
|
|
33
|
+
instructions: string;
|
|
34
|
+
/**
|
|
35
|
+
* "", "Sleep", or "AutoDelete"
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CreateAgentRequest
|
|
38
|
+
*/
|
|
39
|
+
lifecycle?: string;
|
|
40
|
+
/**
|
|
41
|
+
* optional KomputerMemory names to attach
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof CreateAgentRequest
|
|
44
|
+
*/
|
|
45
|
+
memories?: Array<string>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof CreateAgentRequest
|
|
50
|
+
*/
|
|
51
|
+
model?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof CreateAgentRequest
|
|
56
|
+
*/
|
|
57
|
+
name: string;
|
|
58
|
+
/**
|
|
59
|
+
* optional, defaults to server default
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof CreateAgentRequest
|
|
62
|
+
*/
|
|
63
|
+
namespace?: string;
|
|
64
|
+
/**
|
|
65
|
+
* set by manager MCP tool
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof CreateAgentRequest
|
|
68
|
+
*/
|
|
69
|
+
officeManager?: string;
|
|
70
|
+
/**
|
|
71
|
+
* "manager" or "" (default manager)
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof CreateAgentRequest
|
|
74
|
+
*/
|
|
75
|
+
role?: string;
|
|
76
|
+
/**
|
|
77
|
+
* names of existing K8s Secrets to attach
|
|
78
|
+
* @type {Array<string>}
|
|
79
|
+
* @memberof CreateAgentRequest
|
|
80
|
+
*/
|
|
81
|
+
secretRefs?: Array<string>;
|
|
82
|
+
/**
|
|
83
|
+
* optional KomputerSkill names to attach
|
|
84
|
+
* @type {Array<string>}
|
|
85
|
+
* @memberof CreateAgentRequest
|
|
86
|
+
*/
|
|
87
|
+
skills?: Array<string>;
|
|
88
|
+
/**
|
|
89
|
+
* optional custom system prompt
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof CreateAgentRequest
|
|
92
|
+
*/
|
|
93
|
+
systemPrompt?: string;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof CreateAgentRequest
|
|
98
|
+
*/
|
|
99
|
+
templateRef?: string;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Check if a given object implements the CreateAgentRequest interface.
|
|
104
|
+
*/
|
|
105
|
+
export function instanceOfCreateAgentRequest(value: object): value is CreateAgentRequest {
|
|
106
|
+
if (!('instructions' in value) || value['instructions'] === undefined) return false;
|
|
107
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
108
|
+
return true;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function CreateAgentRequestFromJSON(json: any): CreateAgentRequest {
|
|
112
|
+
return CreateAgentRequestFromJSONTyped(json, false);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function CreateAgentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAgentRequest {
|
|
116
|
+
if (json == null) {
|
|
117
|
+
return json;
|
|
118
|
+
}
|
|
119
|
+
return {
|
|
120
|
+
|
|
121
|
+
'connectors': json['connectors'] == null ? undefined : json['connectors'],
|
|
122
|
+
'instructions': json['instructions'],
|
|
123
|
+
'lifecycle': json['lifecycle'] == null ? undefined : json['lifecycle'],
|
|
124
|
+
'memories': json['memories'] == null ? undefined : json['memories'],
|
|
125
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
126
|
+
'name': json['name'],
|
|
127
|
+
'namespace': json['namespace'] == null ? undefined : json['namespace'],
|
|
128
|
+
'officeManager': json['officeManager'] == null ? undefined : json['officeManager'],
|
|
129
|
+
'role': json['role'] == null ? undefined : json['role'],
|
|
130
|
+
'secretRefs': json['secretRefs'] == null ? undefined : json['secretRefs'],
|
|
131
|
+
'skills': json['skills'] == null ? undefined : json['skills'],
|
|
132
|
+
'systemPrompt': json['systemPrompt'] == null ? undefined : json['systemPrompt'],
|
|
133
|
+
'templateRef': json['templateRef'] == null ? undefined : json['templateRef'],
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export function CreateAgentRequestToJSON(json: any): CreateAgentRequest {
|
|
138
|
+
return CreateAgentRequestToJSONTyped(json, false);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export function CreateAgentRequestToJSONTyped(value?: CreateAgentRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
142
|
+
if (value == null) {
|
|
143
|
+
return value;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
return {
|
|
147
|
+
|
|
148
|
+
'connectors': value['connectors'],
|
|
149
|
+
'instructions': value['instructions'],
|
|
150
|
+
'lifecycle': value['lifecycle'],
|
|
151
|
+
'memories': value['memories'],
|
|
152
|
+
'model': value['model'],
|
|
153
|
+
'name': value['name'],
|
|
154
|
+
'namespace': value['namespace'],
|
|
155
|
+
'officeManager': value['officeManager'],
|
|
156
|
+
'role': value['role'],
|
|
157
|
+
'secretRefs': value['secretRefs'],
|
|
158
|
+
'skills': value['skills'],
|
|
159
|
+
'systemPrompt': value['systemPrompt'],
|
|
160
|
+
'templateRef': value['templateRef'],
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
|
|
@@ -0,0 +1,148 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CreateConnectorRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateConnectorRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateConnectorRequest
|
|
26
|
+
*/
|
|
27
|
+
authSecretKey?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CreateConnectorRequest
|
|
32
|
+
*/
|
|
33
|
+
authSecretName?: string;
|
|
34
|
+
/**
|
|
35
|
+
* "token" or "oauth"
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CreateConnectorRequest
|
|
38
|
+
*/
|
|
39
|
+
authType?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CreateConnectorRequest
|
|
44
|
+
*/
|
|
45
|
+
displayName?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof CreateConnectorRequest
|
|
50
|
+
*/
|
|
51
|
+
name: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof CreateConnectorRequest
|
|
56
|
+
*/
|
|
57
|
+
namespace?: string;
|
|
58
|
+
/**
|
|
59
|
+
* OAuth client ID (stored in secret)
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof CreateConnectorRequest
|
|
62
|
+
*/
|
|
63
|
+
oauthClientId?: string;
|
|
64
|
+
/**
|
|
65
|
+
* OAuth client secret (stored in secret)
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof CreateConnectorRequest
|
|
68
|
+
*/
|
|
69
|
+
oauthClientSecret?: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof CreateConnectorRequest
|
|
74
|
+
*/
|
|
75
|
+
service: string;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof CreateConnectorRequest
|
|
80
|
+
*/
|
|
81
|
+
type?: string;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof CreateConnectorRequest
|
|
86
|
+
*/
|
|
87
|
+
url: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Check if a given object implements the CreateConnectorRequest interface.
|
|
92
|
+
*/
|
|
93
|
+
export function instanceOfCreateConnectorRequest(value: object): value is CreateConnectorRequest {
|
|
94
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
95
|
+
if (!('service' in value) || value['service'] === undefined) return false;
|
|
96
|
+
if (!('url' in value) || value['url'] === undefined) return false;
|
|
97
|
+
return true;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function CreateConnectorRequestFromJSON(json: any): CreateConnectorRequest {
|
|
101
|
+
return CreateConnectorRequestFromJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function CreateConnectorRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateConnectorRequest {
|
|
105
|
+
if (json == null) {
|
|
106
|
+
return json;
|
|
107
|
+
}
|
|
108
|
+
return {
|
|
109
|
+
|
|
110
|
+
'authSecretKey': json['authSecretKey'] == null ? undefined : json['authSecretKey'],
|
|
111
|
+
'authSecretName': json['authSecretName'] == null ? undefined : json['authSecretName'],
|
|
112
|
+
'authType': json['authType'] == null ? undefined : json['authType'],
|
|
113
|
+
'displayName': json['displayName'] == null ? undefined : json['displayName'],
|
|
114
|
+
'name': json['name'],
|
|
115
|
+
'namespace': json['namespace'] == null ? undefined : json['namespace'],
|
|
116
|
+
'oauthClientId': json['oauthClientId'] == null ? undefined : json['oauthClientId'],
|
|
117
|
+
'oauthClientSecret': json['oauthClientSecret'] == null ? undefined : json['oauthClientSecret'],
|
|
118
|
+
'service': json['service'],
|
|
119
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
120
|
+
'url': json['url'],
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function CreateConnectorRequestToJSON(json: any): CreateConnectorRequest {
|
|
125
|
+
return CreateConnectorRequestToJSONTyped(json, false);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function CreateConnectorRequestToJSONTyped(value?: CreateConnectorRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
129
|
+
if (value == null) {
|
|
130
|
+
return value;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
return {
|
|
134
|
+
|
|
135
|
+
'authSecretKey': value['authSecretKey'],
|
|
136
|
+
'authSecretName': value['authSecretName'],
|
|
137
|
+
'authType': value['authType'],
|
|
138
|
+
'displayName': value['displayName'],
|
|
139
|
+
'name': value['name'],
|
|
140
|
+
'namespace': value['namespace'],
|
|
141
|
+
'oauthClientId': value['oauthClientId'],
|
|
142
|
+
'oauthClientSecret': value['oauthClientSecret'],
|
|
143
|
+
'service': value['service'],
|
|
144
|
+
'type': value['type'],
|
|
145
|
+
'url': value['url'],
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CreateMemoryRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateMemoryRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateMemoryRequest
|
|
26
|
+
*/
|
|
27
|
+
content: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CreateMemoryRequest
|
|
32
|
+
*/
|
|
33
|
+
description?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CreateMemoryRequest
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CreateMemoryRequest
|
|
44
|
+
*/
|
|
45
|
+
namespace?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the CreateMemoryRequest interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfCreateMemoryRequest(value: object): value is CreateMemoryRequest {
|
|
52
|
+
if (!('content' in value) || value['content'] === undefined) return false;
|
|
53
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function CreateMemoryRequestFromJSON(json: any): CreateMemoryRequest {
|
|
58
|
+
return CreateMemoryRequestFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function CreateMemoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMemoryRequest {
|
|
62
|
+
if (json == null) {
|
|
63
|
+
return json;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'content': json['content'],
|
|
68
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
69
|
+
'name': json['name'],
|
|
70
|
+
'namespace': json['namespace'] == null ? undefined : json['namespace'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function CreateMemoryRequestToJSON(json: any): CreateMemoryRequest {
|
|
75
|
+
return CreateMemoryRequestToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function CreateMemoryRequestToJSONTyped(value?: CreateMemoryRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'content': value['content'],
|
|
86
|
+
'description': value['description'],
|
|
87
|
+
'name': value['name'],
|
|
88
|
+
'namespace': value['namespace'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -0,0 +1,97 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CreateScheduleAgentSpec
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateScheduleAgentSpec {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateScheduleAgentSpec
|
|
26
|
+
*/
|
|
27
|
+
lifecycle?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CreateScheduleAgentSpec
|
|
32
|
+
*/
|
|
33
|
+
model?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CreateScheduleAgentSpec
|
|
38
|
+
*/
|
|
39
|
+
role?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof CreateScheduleAgentSpec
|
|
44
|
+
*/
|
|
45
|
+
secretRefs?: Array<string>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof CreateScheduleAgentSpec
|
|
50
|
+
*/
|
|
51
|
+
templateRef?: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the CreateScheduleAgentSpec interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfCreateScheduleAgentSpec(value: object): value is CreateScheduleAgentSpec {
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function CreateScheduleAgentSpecFromJSON(json: any): CreateScheduleAgentSpec {
|
|
62
|
+
return CreateScheduleAgentSpecFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function CreateScheduleAgentSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateScheduleAgentSpec {
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'lifecycle': json['lifecycle'] == null ? undefined : json['lifecycle'],
|
|
72
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
73
|
+
'role': json['role'] == null ? undefined : json['role'],
|
|
74
|
+
'secretRefs': json['secretRefs'] == null ? undefined : json['secretRefs'],
|
|
75
|
+
'templateRef': json['templateRef'] == null ? undefined : json['templateRef'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function CreateScheduleAgentSpecToJSON(json: any): CreateScheduleAgentSpec {
|
|
80
|
+
return CreateScheduleAgentSpecToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function CreateScheduleAgentSpecToJSONTyped(value?: CreateScheduleAgentSpec | null, ignoreDiscriminator: boolean = false): any {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'lifecycle': value['lifecycle'],
|
|
91
|
+
'model': value['model'],
|
|
92
|
+
'role': value['role'],
|
|
93
|
+
'secretRefs': value['secretRefs'],
|
|
94
|
+
'templateRef': value['templateRef'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|