@komputer-ai/sdk 0.11.1 → 0.11.2
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/dist/apis/AgentsApi.d.ts +173 -0
- package/dist/apis/AgentsApi.js +383 -0
- package/dist/apis/ConnectorsApi.d.ts +118 -0
- package/dist/apis/ConnectorsApi.js +247 -0
- package/dist/apis/MemoriesApi.d.ts +115 -0
- package/dist/apis/MemoriesApi.js +252 -0
- package/dist/apis/OfficesApi.d.ts +98 -0
- package/dist/apis/OfficesApi.js +208 -0
- package/dist/apis/SchedulesApi.d.ts +111 -0
- package/dist/apis/SchedulesApi.js +252 -0
- package/dist/apis/SecretsApi.d.ts +98 -0
- package/dist/apis/SecretsApi.js +211 -0
- package/dist/apis/SkillsApi.d.ts +115 -0
- package/dist/apis/SkillsApi.js +252 -0
- package/dist/apis/TemplatesApi.d.ts +56 -0
- package/dist/apis/TemplatesApi.js +109 -0
- package/dist/apis/index.d.ts +8 -0
- package/dist/apis/index.js +26 -0
- package/dist/client.d.ts +173 -0
- package/dist/client.js +236 -0
- package/dist/esm/apis/AgentsApi.d.ts +173 -0
- package/dist/esm/apis/AgentsApi.js +379 -0
- package/dist/esm/apis/ConnectorsApi.d.ts +118 -0
- package/dist/esm/apis/ConnectorsApi.js +243 -0
- package/dist/esm/apis/MemoriesApi.d.ts +115 -0
- package/dist/esm/apis/MemoriesApi.js +248 -0
- package/dist/esm/apis/OfficesApi.d.ts +98 -0
- package/dist/esm/apis/OfficesApi.js +204 -0
- package/dist/esm/apis/SchedulesApi.d.ts +111 -0
- package/dist/esm/apis/SchedulesApi.js +248 -0
- package/dist/esm/apis/SecretsApi.d.ts +98 -0
- package/dist/esm/apis/SecretsApi.js +207 -0
- package/dist/esm/apis/SkillsApi.d.ts +115 -0
- package/dist/esm/apis/SkillsApi.js +248 -0
- package/dist/esm/apis/TemplatesApi.d.ts +56 -0
- package/dist/esm/apis/TemplatesApi.js +105 -0
- package/dist/esm/apis/index.d.ts +8 -0
- package/dist/esm/client.d.ts +173 -0
- package/dist/esm/client.js +232 -0
- package/{src/index.ts → dist/esm/index.d.ts} +0 -2
- package/dist/esm/index.js +6 -0
- package/dist/esm/models/AgentListResponse.d.ts +33 -0
- package/dist/esm/models/AgentListResponse.js +42 -0
- package/dist/esm/models/AgentResponse.d.ts +134 -0
- package/dist/esm/models/AgentResponse.js +75 -0
- package/dist/esm/models/ConnectorResponse.d.ts +104 -0
- package/{src/models/ConnectorResponse.ts → dist/esm/models/ConnectorResponse.js} +6 -102
- package/dist/esm/models/CreateAgentRequest.d.ts +104 -0
- package/dist/esm/models/CreateAgentRequest.js +69 -0
- package/dist/esm/models/CreateConnectorRequest.d.ts +92 -0
- package/{src/models/CreateConnectorRequest.ts → dist/esm/models/CreateConnectorRequest.js} +12 -93
- package/dist/esm/models/CreateMemoryRequest.d.ts +50 -0
- package/{src/models/CreateMemoryRequest.ts → dist/esm/models/CreateMemoryRequest.js} +10 -50
- package/dist/esm/models/CreateScheduleAgentSpec.d.ts +56 -0
- package/{src/models/CreateScheduleAgentSpec.ts → dist/esm/models/CreateScheduleAgentSpec.js} +6 -54
- package/dist/esm/models/CreateScheduleRequest.d.ts +81 -0
- package/dist/esm/models/CreateScheduleRequest.js +64 -0
- package/dist/esm/models/CreateSecretRequest.d.ts +46 -0
- package/dist/esm/models/CreateSecretRequest.js +49 -0
- package/dist/esm/models/CreateSkillRequest.d.ts +50 -0
- package/dist/esm/models/CreateSkillRequest.js +53 -0
- package/dist/esm/models/MemoryResponse.d.ts +68 -0
- package/dist/esm/models/MemoryResponse.js +53 -0
- package/dist/esm/models/OfficeListResponse.d.ts +33 -0
- package/dist/esm/models/OfficeListResponse.js +42 -0
- package/dist/esm/models/OfficeMemberResponse.d.ts +50 -0
- package/dist/esm/models/OfficeMemberResponse.js +47 -0
- package/dist/esm/models/OfficeResponse.d.ts +93 -0
- package/dist/esm/models/OfficeResponse.js +62 -0
- package/dist/esm/models/PatchAgentRequest.d.ts +80 -0
- package/{src/models/PatchAgentRequest.ts → dist/esm/models/PatchAgentRequest.js} +6 -78
- package/dist/esm/models/PatchMemoryRequest.d.ts +38 -0
- package/dist/esm/models/PatchMemoryRequest.js +43 -0
- package/dist/esm/models/PatchScheduleRequest.d.ts +32 -0
- package/dist/esm/models/PatchScheduleRequest.js +41 -0
- package/dist/esm/models/PatchSkillRequest.d.ts +38 -0
- package/{src/models/PatchSkillRequest.ts → dist/esm/models/PatchSkillRequest.js} +6 -36
- package/dist/esm/models/ScheduleListResponse.d.ts +33 -0
- package/dist/esm/models/ScheduleListResponse.js +42 -0
- package/dist/esm/models/ScheduleResponse.d.ts +140 -0
- package/dist/esm/models/ScheduleResponse.js +77 -0
- package/dist/esm/models/SecretListResponse.d.ts +33 -0
- package/dist/esm/models/SecretListResponse.js +42 -0
- package/dist/esm/models/SecretResponse.d.ts +74 -0
- package/dist/esm/models/SecretResponse.js +55 -0
- package/dist/esm/models/SkillResponse.d.ts +74 -0
- package/dist/esm/models/SkillResponse.js +55 -0
- package/dist/esm/models/UpdateSecretRequest.d.ts +40 -0
- package/{src/models/UpdateSecretRequest.ts → dist/esm/models/UpdateSecretRequest.js} +8 -37
- package/dist/esm/models/index.d.ts +24 -0
- package/dist/esm/runtime.d.ts +184 -0
- package/dist/esm/runtime.js +349 -0
- package/dist/esm/watch.d.ts +28 -0
- package/dist/esm/watch.js +77 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +24 -0
- package/dist/models/AgentListResponse.d.ts +33 -0
- package/dist/models/AgentListResponse.js +49 -0
- package/dist/models/AgentResponse.d.ts +134 -0
- package/{src/models/AgentResponse.ts → dist/models/AgentResponse.js} +13 -132
- package/dist/models/ConnectorResponse.d.ts +104 -0
- package/dist/models/ConnectorResponse.js +72 -0
- package/dist/models/CreateAgentRequest.d.ts +104 -0
- package/dist/models/CreateAgentRequest.js +76 -0
- package/dist/models/CreateConnectorRequest.d.ts +92 -0
- package/dist/models/CreateConnectorRequest.js +74 -0
- package/dist/models/CreateMemoryRequest.d.ts +50 -0
- package/dist/models/CreateMemoryRequest.js +58 -0
- package/dist/models/CreateScheduleAgentSpec.d.ts +56 -0
- package/dist/models/CreateScheduleAgentSpec.js +56 -0
- package/dist/models/CreateScheduleRequest.d.ts +81 -0
- package/dist/models/CreateScheduleRequest.js +71 -0
- package/dist/models/CreateSecretRequest.d.ts +46 -0
- package/dist/models/CreateSecretRequest.js +56 -0
- package/dist/models/CreateSkillRequest.d.ts +50 -0
- package/{src/models/CreateSkillRequest.ts → dist/models/CreateSkillRequest.js} +19 -51
- package/dist/models/MemoryResponse.d.ts +68 -0
- package/{src/models/MemoryResponse.ts → dist/models/MemoryResponse.js} +13 -66
- package/dist/models/OfficeListResponse.d.ts +33 -0
- package/dist/models/OfficeListResponse.js +49 -0
- package/dist/models/OfficeMemberResponse.d.ts +50 -0
- package/{src/models/OfficeMemberResponse.ts → dist/models/OfficeMemberResponse.js} +13 -48
- package/dist/models/OfficeResponse.d.ts +93 -0
- package/dist/models/OfficeResponse.js +69 -0
- package/dist/models/PatchAgentRequest.d.ts +80 -0
- package/dist/models/PatchAgentRequest.js +64 -0
- package/dist/models/PatchMemoryRequest.d.ts +38 -0
- package/{src/models/PatchMemoryRequest.ts → dist/models/PatchMemoryRequest.js} +13 -36
- package/dist/models/PatchScheduleRequest.d.ts +32 -0
- package/{src/models/PatchScheduleRequest.ts → dist/models/PatchScheduleRequest.js} +13 -30
- package/dist/models/PatchSkillRequest.d.ts +38 -0
- package/dist/models/PatchSkillRequest.js +50 -0
- package/dist/models/ScheduleListResponse.d.ts +33 -0
- package/dist/models/ScheduleListResponse.js +49 -0
- package/dist/models/ScheduleResponse.d.ts +140 -0
- package/{src/models/ScheduleResponse.ts → dist/models/ScheduleResponse.js} +13 -138
- package/dist/models/SecretListResponse.d.ts +33 -0
- package/dist/models/SecretListResponse.js +49 -0
- package/dist/models/SecretResponse.d.ts +74 -0
- package/{src/models/SecretResponse.ts → dist/models/SecretResponse.js} +13 -72
- package/dist/models/SkillResponse.d.ts +74 -0
- package/{src/models/SkillResponse.ts → dist/models/SkillResponse.js} +13 -72
- package/dist/models/UpdateSecretRequest.d.ts +40 -0
- package/dist/models/UpdateSecretRequest.js +52 -0
- package/dist/models/index.d.ts +24 -0
- package/dist/models/index.js +42 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +365 -0
- package/dist/watch.d.ts +28 -0
- package/dist/watch.js +81 -0
- package/package.json +2 -3
- package/.openapi-generator-ignore +0 -31
- package/docs/AgentListResponse.md +0 -34
- package/docs/AgentResponse.md +0 -68
- package/docs/AgentsApi.md +0 -584
- package/docs/ConnectorResponse.md +0 -58
- package/docs/ConnectorsApi.md +0 -366
- package/docs/CreateAgentRequest.md +0 -58
- package/docs/CreateConnectorRequest.md +0 -54
- package/docs/CreateMemoryRequest.md +0 -40
- package/docs/CreateScheduleAgentSpec.md +0 -42
- package/docs/CreateScheduleRequest.md +0 -50
- package/docs/CreateSecretRequest.md +0 -38
- package/docs/CreateSkillRequest.md +0 -40
- package/docs/MemoriesApi.md +0 -368
- package/docs/MemoryResponse.md +0 -46
- package/docs/OfficeListResponse.md +0 -34
- package/docs/OfficeMemberResponse.md +0 -40
- package/docs/OfficeResponse.md +0 -54
- package/docs/OfficesApi.md +0 -300
- package/docs/PatchAgentRequest.md +0 -50
- package/docs/PatchMemoryRequest.md +0 -36
- package/docs/PatchScheduleRequest.md +0 -34
- package/docs/PatchSkillRequest.md +0 -36
- package/docs/ScheduleListResponse.md +0 -34
- package/docs/ScheduleResponse.md +0 -70
- package/docs/SchedulesApi.md +0 -369
- package/docs/SecretListResponse.md +0 -34
- package/docs/SecretResponse.md +0 -48
- package/docs/SecretsApi.md +0 -298
- package/docs/SkillResponse.md +0 -48
- package/docs/SkillsApi.md +0 -368
- package/docs/TemplatesApi.md +0 -138
- package/docs/UpdateSecretRequest.md +0 -36
- package/src/apis/AgentsApi.ts +0 -485
- package/src/apis/ConnectorsApi.ts +0 -301
- package/src/apis/MemoriesApi.ts +0 -315
- package/src/apis/OfficesApi.ts +0 -253
- package/src/apis/SchedulesApi.ts +0 -318
- package/src/apis/SecretsApi.ts +0 -267
- package/src/apis/SkillsApi.ts +0 -315
- package/src/apis/TemplatesApi.ts +0 -109
- package/src/client.test.ts +0 -88
- package/src/client.ts +0 -212
- package/src/models/AgentListResponse.ts +0 -73
- package/src/models/CreateAgentRequest.ts +0 -163
- package/src/models/CreateScheduleRequest.ts +0 -140
- package/src/models/CreateSecretRequest.ts +0 -83
- package/src/models/OfficeListResponse.ts +0 -73
- package/src/models/OfficeResponse.ts +0 -153
- package/src/models/ScheduleListResponse.ts +0 -73
- package/src/models/SecretListResponse.ts +0 -73
- package/src/runtime.ts +0 -450
- package/src/watch.ts +0 -89
- package/tsconfig.esm.json +0 -7
- package/tsconfig.json +0 -18
- /package/{src/apis/index.ts → dist/esm/apis/index.js} +0 -0
- /package/{src/models/index.ts → dist/esm/models/index.js} +0 -0
|
@@ -0,0 +1,173 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { AgentListResponse, AgentResponse, CreateAgentRequest, PatchAgentRequest } from '../models/index';
|
|
14
|
+
export interface AgentsNameWsGetRequest {
|
|
15
|
+
name: string;
|
|
16
|
+
}
|
|
17
|
+
export interface CancelAgentTaskRequest {
|
|
18
|
+
name: string;
|
|
19
|
+
namespace?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface CreateAgentOperationRequest {
|
|
22
|
+
request: CreateAgentRequest;
|
|
23
|
+
}
|
|
24
|
+
export interface DeleteAgentRequest {
|
|
25
|
+
name: string;
|
|
26
|
+
namespace?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface GetAgentRequest {
|
|
29
|
+
name: string;
|
|
30
|
+
namespace?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface GetAgentEventsRequest {
|
|
33
|
+
name: string;
|
|
34
|
+
namespace?: string;
|
|
35
|
+
limit?: number;
|
|
36
|
+
}
|
|
37
|
+
export interface ListAgentsRequest {
|
|
38
|
+
namespace?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface PatchAgentOperationRequest {
|
|
41
|
+
name: string;
|
|
42
|
+
request: PatchAgentRequest;
|
|
43
|
+
namespace?: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
export declare class AgentsApi extends runtime.BaseAPI {
|
|
49
|
+
/**
|
|
50
|
+
* Creates request options for agentsNameWsGet without sending the request
|
|
51
|
+
*/
|
|
52
|
+
agentsNameWsGetRequestOpts(requestParameters: AgentsNameWsGetRequest): Promise<runtime.RequestOpts>;
|
|
53
|
+
/**
|
|
54
|
+
* Upgrades to a WebSocket connection to stream real-time agent events. Events include task_started, thinking, tool_call, tool_result, text, task_completed, task_cancelled, and error.
|
|
55
|
+
* Stream agent events (WebSocket)
|
|
56
|
+
*/
|
|
57
|
+
agentsNameWsGetRaw(requestParameters: AgentsNameWsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
58
|
+
/**
|
|
59
|
+
* Upgrades to a WebSocket connection to stream real-time agent events. Events include task_started, thinking, tool_call, tool_result, text, task_completed, task_cancelled, and error.
|
|
60
|
+
* Stream agent events (WebSocket)
|
|
61
|
+
*/
|
|
62
|
+
agentsNameWsGet(requestParameters: AgentsNameWsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
63
|
+
/**
|
|
64
|
+
* Creates request options for cancelAgentTask without sending the request
|
|
65
|
+
*/
|
|
66
|
+
cancelAgentTaskRequestOpts(requestParameters: CancelAgentTaskRequest): Promise<runtime.RequestOpts>;
|
|
67
|
+
/**
|
|
68
|
+
* Gracefully cancels the currently running task. The agent pod stays alive for future tasks.
|
|
69
|
+
* Cancel agent task
|
|
70
|
+
*/
|
|
71
|
+
cancelAgentTaskRaw(requestParameters: CancelAgentTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
72
|
+
[key: string]: string;
|
|
73
|
+
}>>;
|
|
74
|
+
/**
|
|
75
|
+
* Gracefully cancels the currently running task. The agent pod stays alive for future tasks.
|
|
76
|
+
* Cancel agent task
|
|
77
|
+
*/
|
|
78
|
+
cancelAgentTask(requestParameters: CancelAgentTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
79
|
+
[key: string]: string;
|
|
80
|
+
}>;
|
|
81
|
+
/**
|
|
82
|
+
* Creates request options for createAgent without sending the request
|
|
83
|
+
*/
|
|
84
|
+
createAgentRequestOpts(requestParameters: CreateAgentOperationRequest): Promise<runtime.RequestOpts>;
|
|
85
|
+
/**
|
|
86
|
+
* Creates a new agent or sends a task to an existing idle agent (upsert by name). If the agent doesn\'t exist, it is created. If it exists and is idle, the task is forwarded.
|
|
87
|
+
* Create agent or send task
|
|
88
|
+
*/
|
|
89
|
+
createAgentRaw(requestParameters: CreateAgentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentResponse>>;
|
|
90
|
+
/**
|
|
91
|
+
* Creates a new agent or sends a task to an existing idle agent (upsert by name). If the agent doesn\'t exist, it is created. If it exists and is idle, the task is forwarded.
|
|
92
|
+
* Create agent or send task
|
|
93
|
+
*/
|
|
94
|
+
createAgent(requestParameters: CreateAgentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentResponse>;
|
|
95
|
+
/**
|
|
96
|
+
* Creates request options for deleteAgent without sending the request
|
|
97
|
+
*/
|
|
98
|
+
deleteAgentRequestOpts(requestParameters: DeleteAgentRequest): Promise<runtime.RequestOpts>;
|
|
99
|
+
/**
|
|
100
|
+
* Deletes the agent CR, pod, PVC, secrets, and Redis event stream.
|
|
101
|
+
* Delete agent
|
|
102
|
+
*/
|
|
103
|
+
deleteAgentRaw(requestParameters: DeleteAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
104
|
+
[key: string]: string;
|
|
105
|
+
}>>;
|
|
106
|
+
/**
|
|
107
|
+
* Deletes the agent CR, pod, PVC, secrets, and Redis event stream.
|
|
108
|
+
* Delete agent
|
|
109
|
+
*/
|
|
110
|
+
deleteAgent(requestParameters: DeleteAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
111
|
+
[key: string]: string;
|
|
112
|
+
}>;
|
|
113
|
+
/**
|
|
114
|
+
* Creates request options for getAgent without sending the request
|
|
115
|
+
*/
|
|
116
|
+
getAgentRequestOpts(requestParameters: GetAgentRequest): Promise<runtime.RequestOpts>;
|
|
117
|
+
/**
|
|
118
|
+
* Returns the current status and metadata for a single agent.
|
|
119
|
+
* Get agent details
|
|
120
|
+
*/
|
|
121
|
+
getAgentRaw(requestParameters: GetAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentResponse>>;
|
|
122
|
+
/**
|
|
123
|
+
* Returns the current status and metadata for a single agent.
|
|
124
|
+
* Get agent details
|
|
125
|
+
*/
|
|
126
|
+
getAgent(requestParameters: GetAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentResponse>;
|
|
127
|
+
/**
|
|
128
|
+
* Creates request options for getAgentEvents without sending the request
|
|
129
|
+
*/
|
|
130
|
+
getAgentEventsRequestOpts(requestParameters: GetAgentEventsRequest): Promise<runtime.RequestOpts>;
|
|
131
|
+
/**
|
|
132
|
+
* Returns recent events from the agent\'s Redis stream in chronological order.
|
|
133
|
+
* Get agent events
|
|
134
|
+
*/
|
|
135
|
+
getAgentEventsRaw(requestParameters: GetAgentEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
136
|
+
[key: string]: any;
|
|
137
|
+
}>>;
|
|
138
|
+
/**
|
|
139
|
+
* Returns recent events from the agent\'s Redis stream in chronological order.
|
|
140
|
+
* Get agent events
|
|
141
|
+
*/
|
|
142
|
+
getAgentEvents(requestParameters: GetAgentEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
143
|
+
[key: string]: any;
|
|
144
|
+
}>;
|
|
145
|
+
/**
|
|
146
|
+
* Creates request options for listAgents without sending the request
|
|
147
|
+
*/
|
|
148
|
+
listAgentsRequestOpts(requestParameters: ListAgentsRequest): Promise<runtime.RequestOpts>;
|
|
149
|
+
/**
|
|
150
|
+
* Returns all agents with their current status in the specified namespace.
|
|
151
|
+
* List agents
|
|
152
|
+
*/
|
|
153
|
+
listAgentsRaw(requestParameters: ListAgentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentListResponse>>;
|
|
154
|
+
/**
|
|
155
|
+
* Returns all agents with their current status in the specified namespace.
|
|
156
|
+
* List agents
|
|
157
|
+
*/
|
|
158
|
+
listAgents(requestParameters?: ListAgentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentListResponse>;
|
|
159
|
+
/**
|
|
160
|
+
* Creates request options for patchAgent without sending the request
|
|
161
|
+
*/
|
|
162
|
+
patchAgentRequestOpts(requestParameters: PatchAgentOperationRequest): Promise<runtime.RequestOpts>;
|
|
163
|
+
/**
|
|
164
|
+
* Updates model, lifecycle, instructions, secretRefs, memories, skills, or connectors on an existing agent.
|
|
165
|
+
* Patch agent
|
|
166
|
+
*/
|
|
167
|
+
patchAgentRaw(requestParameters: PatchAgentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentResponse>>;
|
|
168
|
+
/**
|
|
169
|
+
* Updates model, lifecycle, instructions, secretRefs, memories, skills, or connectors on an existing agent.
|
|
170
|
+
* Patch agent
|
|
171
|
+
*/
|
|
172
|
+
patchAgent(requestParameters: PatchAgentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentResponse>;
|
|
173
|
+
}
|
|
@@ -0,0 +1,379 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { AgentListResponseFromJSON, AgentResponseFromJSON, CreateAgentRequestToJSON, PatchAgentRequestToJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class AgentsApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Creates request options for agentsNameWsGet without sending the request
|
|
31
|
+
*/
|
|
32
|
+
agentsNameWsGetRequestOpts(requestParameters) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters['name'] == null) {
|
|
35
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling agentsNameWsGet().');
|
|
36
|
+
}
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
let urlPath = `/agents/{name}/ws`;
|
|
40
|
+
urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name'])));
|
|
41
|
+
return {
|
|
42
|
+
path: urlPath,
|
|
43
|
+
method: 'GET',
|
|
44
|
+
headers: headerParameters,
|
|
45
|
+
query: queryParameters,
|
|
46
|
+
};
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Upgrades to a WebSocket connection to stream real-time agent events. Events include task_started, thinking, tool_call, tool_result, text, task_completed, task_cancelled, and error.
|
|
51
|
+
* Stream agent events (WebSocket)
|
|
52
|
+
*/
|
|
53
|
+
agentsNameWsGetRaw(requestParameters, initOverrides) {
|
|
54
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
+
const requestOptions = yield this.agentsNameWsGetRequestOpts(requestParameters);
|
|
56
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
57
|
+
return new runtime.VoidApiResponse(response);
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Upgrades to a WebSocket connection to stream real-time agent events. Events include task_started, thinking, tool_call, tool_result, text, task_completed, task_cancelled, and error.
|
|
62
|
+
* Stream agent events (WebSocket)
|
|
63
|
+
*/
|
|
64
|
+
agentsNameWsGet(requestParameters, initOverrides) {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
yield this.agentsNameWsGetRaw(requestParameters, initOverrides);
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Creates request options for cancelAgentTask without sending the request
|
|
71
|
+
*/
|
|
72
|
+
cancelAgentTaskRequestOpts(requestParameters) {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
if (requestParameters['name'] == null) {
|
|
75
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling cancelAgentTask().');
|
|
76
|
+
}
|
|
77
|
+
const queryParameters = {};
|
|
78
|
+
if (requestParameters['namespace'] != null) {
|
|
79
|
+
queryParameters['namespace'] = requestParameters['namespace'];
|
|
80
|
+
}
|
|
81
|
+
const headerParameters = {};
|
|
82
|
+
let urlPath = `/agents/{name}/cancel`;
|
|
83
|
+
urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name'])));
|
|
84
|
+
return {
|
|
85
|
+
path: urlPath,
|
|
86
|
+
method: 'POST',
|
|
87
|
+
headers: headerParameters,
|
|
88
|
+
query: queryParameters,
|
|
89
|
+
};
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Gracefully cancels the currently running task. The agent pod stays alive for future tasks.
|
|
94
|
+
* Cancel agent task
|
|
95
|
+
*/
|
|
96
|
+
cancelAgentTaskRaw(requestParameters, initOverrides) {
|
|
97
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
+
const requestOptions = yield this.cancelAgentTaskRequestOpts(requestParameters);
|
|
99
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
100
|
+
return new runtime.JSONApiResponse(response);
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Gracefully cancels the currently running task. The agent pod stays alive for future tasks.
|
|
105
|
+
* Cancel agent task
|
|
106
|
+
*/
|
|
107
|
+
cancelAgentTask(requestParameters, initOverrides) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
const response = yield this.cancelAgentTaskRaw(requestParameters, initOverrides);
|
|
110
|
+
return yield response.value();
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Creates request options for createAgent without sending the request
|
|
115
|
+
*/
|
|
116
|
+
createAgentRequestOpts(requestParameters) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
if (requestParameters['request'] == null) {
|
|
119
|
+
throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling createAgent().');
|
|
120
|
+
}
|
|
121
|
+
const queryParameters = {};
|
|
122
|
+
const headerParameters = {};
|
|
123
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
124
|
+
let urlPath = `/agents`;
|
|
125
|
+
return {
|
|
126
|
+
path: urlPath,
|
|
127
|
+
method: 'POST',
|
|
128
|
+
headers: headerParameters,
|
|
129
|
+
query: queryParameters,
|
|
130
|
+
body: CreateAgentRequestToJSON(requestParameters['request']),
|
|
131
|
+
};
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Creates a new agent or sends a task to an existing idle agent (upsert by name). If the agent doesn\'t exist, it is created. If it exists and is idle, the task is forwarded.
|
|
136
|
+
* Create agent or send task
|
|
137
|
+
*/
|
|
138
|
+
createAgentRaw(requestParameters, initOverrides) {
|
|
139
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
140
|
+
const requestOptions = yield this.createAgentRequestOpts(requestParameters);
|
|
141
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
142
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AgentResponseFromJSON(jsonValue));
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Creates a new agent or sends a task to an existing idle agent (upsert by name). If the agent doesn\'t exist, it is created. If it exists and is idle, the task is forwarded.
|
|
147
|
+
* Create agent or send task
|
|
148
|
+
*/
|
|
149
|
+
createAgent(requestParameters, initOverrides) {
|
|
150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
const response = yield this.createAgentRaw(requestParameters, initOverrides);
|
|
152
|
+
return yield response.value();
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Creates request options for deleteAgent without sending the request
|
|
157
|
+
*/
|
|
158
|
+
deleteAgentRequestOpts(requestParameters) {
|
|
159
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
160
|
+
if (requestParameters['name'] == null) {
|
|
161
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling deleteAgent().');
|
|
162
|
+
}
|
|
163
|
+
const queryParameters = {};
|
|
164
|
+
if (requestParameters['namespace'] != null) {
|
|
165
|
+
queryParameters['namespace'] = requestParameters['namespace'];
|
|
166
|
+
}
|
|
167
|
+
const headerParameters = {};
|
|
168
|
+
let urlPath = `/agents/{name}`;
|
|
169
|
+
urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name'])));
|
|
170
|
+
return {
|
|
171
|
+
path: urlPath,
|
|
172
|
+
method: 'DELETE',
|
|
173
|
+
headers: headerParameters,
|
|
174
|
+
query: queryParameters,
|
|
175
|
+
};
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Deletes the agent CR, pod, PVC, secrets, and Redis event stream.
|
|
180
|
+
* Delete agent
|
|
181
|
+
*/
|
|
182
|
+
deleteAgentRaw(requestParameters, initOverrides) {
|
|
183
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
184
|
+
const requestOptions = yield this.deleteAgentRequestOpts(requestParameters);
|
|
185
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
186
|
+
return new runtime.JSONApiResponse(response);
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Deletes the agent CR, pod, PVC, secrets, and Redis event stream.
|
|
191
|
+
* Delete agent
|
|
192
|
+
*/
|
|
193
|
+
deleteAgent(requestParameters, initOverrides) {
|
|
194
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
195
|
+
const response = yield this.deleteAgentRaw(requestParameters, initOverrides);
|
|
196
|
+
return yield response.value();
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Creates request options for getAgent without sending the request
|
|
201
|
+
*/
|
|
202
|
+
getAgentRequestOpts(requestParameters) {
|
|
203
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
204
|
+
if (requestParameters['name'] == null) {
|
|
205
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling getAgent().');
|
|
206
|
+
}
|
|
207
|
+
const queryParameters = {};
|
|
208
|
+
if (requestParameters['namespace'] != null) {
|
|
209
|
+
queryParameters['namespace'] = requestParameters['namespace'];
|
|
210
|
+
}
|
|
211
|
+
const headerParameters = {};
|
|
212
|
+
let urlPath = `/agents/{name}`;
|
|
213
|
+
urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name'])));
|
|
214
|
+
return {
|
|
215
|
+
path: urlPath,
|
|
216
|
+
method: 'GET',
|
|
217
|
+
headers: headerParameters,
|
|
218
|
+
query: queryParameters,
|
|
219
|
+
};
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Returns the current status and metadata for a single agent.
|
|
224
|
+
* Get agent details
|
|
225
|
+
*/
|
|
226
|
+
getAgentRaw(requestParameters, initOverrides) {
|
|
227
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
228
|
+
const requestOptions = yield this.getAgentRequestOpts(requestParameters);
|
|
229
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
230
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AgentResponseFromJSON(jsonValue));
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Returns the current status and metadata for a single agent.
|
|
235
|
+
* Get agent details
|
|
236
|
+
*/
|
|
237
|
+
getAgent(requestParameters, initOverrides) {
|
|
238
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
239
|
+
const response = yield this.getAgentRaw(requestParameters, initOverrides);
|
|
240
|
+
return yield response.value();
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Creates request options for getAgentEvents without sending the request
|
|
245
|
+
*/
|
|
246
|
+
getAgentEventsRequestOpts(requestParameters) {
|
|
247
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
248
|
+
if (requestParameters['name'] == null) {
|
|
249
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling getAgentEvents().');
|
|
250
|
+
}
|
|
251
|
+
const queryParameters = {};
|
|
252
|
+
if (requestParameters['namespace'] != null) {
|
|
253
|
+
queryParameters['namespace'] = requestParameters['namespace'];
|
|
254
|
+
}
|
|
255
|
+
if (requestParameters['limit'] != null) {
|
|
256
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
257
|
+
}
|
|
258
|
+
const headerParameters = {};
|
|
259
|
+
let urlPath = `/agents/{name}/events`;
|
|
260
|
+
urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name'])));
|
|
261
|
+
return {
|
|
262
|
+
path: urlPath,
|
|
263
|
+
method: 'GET',
|
|
264
|
+
headers: headerParameters,
|
|
265
|
+
query: queryParameters,
|
|
266
|
+
};
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Returns recent events from the agent\'s Redis stream in chronological order.
|
|
271
|
+
* Get agent events
|
|
272
|
+
*/
|
|
273
|
+
getAgentEventsRaw(requestParameters, initOverrides) {
|
|
274
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
275
|
+
const requestOptions = yield this.getAgentEventsRequestOpts(requestParameters);
|
|
276
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
277
|
+
return new runtime.JSONApiResponse(response);
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Returns recent events from the agent\'s Redis stream in chronological order.
|
|
282
|
+
* Get agent events
|
|
283
|
+
*/
|
|
284
|
+
getAgentEvents(requestParameters, initOverrides) {
|
|
285
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
286
|
+
const response = yield this.getAgentEventsRaw(requestParameters, initOverrides);
|
|
287
|
+
return yield response.value();
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Creates request options for listAgents without sending the request
|
|
292
|
+
*/
|
|
293
|
+
listAgentsRequestOpts(requestParameters) {
|
|
294
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
295
|
+
const queryParameters = {};
|
|
296
|
+
if (requestParameters['namespace'] != null) {
|
|
297
|
+
queryParameters['namespace'] = requestParameters['namespace'];
|
|
298
|
+
}
|
|
299
|
+
const headerParameters = {};
|
|
300
|
+
let urlPath = `/agents`;
|
|
301
|
+
return {
|
|
302
|
+
path: urlPath,
|
|
303
|
+
method: 'GET',
|
|
304
|
+
headers: headerParameters,
|
|
305
|
+
query: queryParameters,
|
|
306
|
+
};
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Returns all agents with their current status in the specified namespace.
|
|
311
|
+
* List agents
|
|
312
|
+
*/
|
|
313
|
+
listAgentsRaw(requestParameters, initOverrides) {
|
|
314
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
315
|
+
const requestOptions = yield this.listAgentsRequestOpts(requestParameters);
|
|
316
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
317
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AgentListResponseFromJSON(jsonValue));
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Returns all agents with their current status in the specified namespace.
|
|
322
|
+
* List agents
|
|
323
|
+
*/
|
|
324
|
+
listAgents() {
|
|
325
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
326
|
+
const response = yield this.listAgentsRaw(requestParameters, initOverrides);
|
|
327
|
+
return yield response.value();
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Creates request options for patchAgent without sending the request
|
|
332
|
+
*/
|
|
333
|
+
patchAgentRequestOpts(requestParameters) {
|
|
334
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
335
|
+
if (requestParameters['name'] == null) {
|
|
336
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling patchAgent().');
|
|
337
|
+
}
|
|
338
|
+
if (requestParameters['request'] == null) {
|
|
339
|
+
throw new runtime.RequiredError('request', 'Required parameter "request" was null or undefined when calling patchAgent().');
|
|
340
|
+
}
|
|
341
|
+
const queryParameters = {};
|
|
342
|
+
if (requestParameters['namespace'] != null) {
|
|
343
|
+
queryParameters['namespace'] = requestParameters['namespace'];
|
|
344
|
+
}
|
|
345
|
+
const headerParameters = {};
|
|
346
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
347
|
+
let urlPath = `/agents/{name}`;
|
|
348
|
+
urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name'])));
|
|
349
|
+
return {
|
|
350
|
+
path: urlPath,
|
|
351
|
+
method: 'PATCH',
|
|
352
|
+
headers: headerParameters,
|
|
353
|
+
query: queryParameters,
|
|
354
|
+
body: PatchAgentRequestToJSON(requestParameters['request']),
|
|
355
|
+
};
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* Updates model, lifecycle, instructions, secretRefs, memories, skills, or connectors on an existing agent.
|
|
360
|
+
* Patch agent
|
|
361
|
+
*/
|
|
362
|
+
patchAgentRaw(requestParameters, initOverrides) {
|
|
363
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
364
|
+
const requestOptions = yield this.patchAgentRequestOpts(requestParameters);
|
|
365
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
366
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AgentResponseFromJSON(jsonValue));
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* Updates model, lifecycle, instructions, secretRefs, memories, skills, or connectors on an existing agent.
|
|
371
|
+
* Patch agent
|
|
372
|
+
*/
|
|
373
|
+
patchAgent(requestParameters, initOverrides) {
|
|
374
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
375
|
+
const response = yield this.patchAgentRaw(requestParameters, initOverrides);
|
|
376
|
+
return yield response.value();
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { ConnectorResponse, CreateConnectorRequest } from '../models/index';
|
|
14
|
+
export interface CreateConnectorOperationRequest {
|
|
15
|
+
request: CreateConnectorRequest;
|
|
16
|
+
}
|
|
17
|
+
export interface DeleteConnectorRequest {
|
|
18
|
+
name: string;
|
|
19
|
+
namespace?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface GetConnectorRequest {
|
|
22
|
+
name: string;
|
|
23
|
+
namespace?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface ListConnectorToolsRequest {
|
|
26
|
+
name: string;
|
|
27
|
+
namespace?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface ListConnectorsRequest {
|
|
30
|
+
namespace?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
export declare class ConnectorsApi extends runtime.BaseAPI {
|
|
36
|
+
/**
|
|
37
|
+
* Creates request options for createConnector without sending the request
|
|
38
|
+
*/
|
|
39
|
+
createConnectorRequestOpts(requestParameters: CreateConnectorOperationRequest): Promise<runtime.RequestOpts>;
|
|
40
|
+
/**
|
|
41
|
+
* Creates a new KomputerConnector CR pointing to an MCP server that can be attached to agents.
|
|
42
|
+
* Create connector
|
|
43
|
+
*/
|
|
44
|
+
createConnectorRaw(requestParameters: CreateConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConnectorResponse>>;
|
|
45
|
+
/**
|
|
46
|
+
* Creates a new KomputerConnector CR pointing to an MCP server that can be attached to agents.
|
|
47
|
+
* Create connector
|
|
48
|
+
*/
|
|
49
|
+
createConnector(requestParameters: CreateConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConnectorResponse>;
|
|
50
|
+
/**
|
|
51
|
+
* Creates request options for deleteConnector without sending the request
|
|
52
|
+
*/
|
|
53
|
+
deleteConnectorRequestOpts(requestParameters: DeleteConnectorRequest): Promise<runtime.RequestOpts>;
|
|
54
|
+
/**
|
|
55
|
+
* Deletes the connector CR.
|
|
56
|
+
* Delete connector
|
|
57
|
+
*/
|
|
58
|
+
deleteConnectorRaw(requestParameters: DeleteConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
59
|
+
[key: string]: string;
|
|
60
|
+
}>>;
|
|
61
|
+
/**
|
|
62
|
+
* Deletes the connector CR.
|
|
63
|
+
* Delete connector
|
|
64
|
+
*/
|
|
65
|
+
deleteConnector(requestParameters: DeleteConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
66
|
+
[key: string]: string;
|
|
67
|
+
}>;
|
|
68
|
+
/**
|
|
69
|
+
* Creates request options for getConnector without sending the request
|
|
70
|
+
*/
|
|
71
|
+
getConnectorRequestOpts(requestParameters: GetConnectorRequest): Promise<runtime.RequestOpts>;
|
|
72
|
+
/**
|
|
73
|
+
* Returns the URL, service, type, and auth config for a single connector.
|
|
74
|
+
* Get connector details
|
|
75
|
+
*/
|
|
76
|
+
getConnectorRaw(requestParameters: GetConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConnectorResponse>>;
|
|
77
|
+
/**
|
|
78
|
+
* Returns the URL, service, type, and auth config for a single connector.
|
|
79
|
+
* Get connector details
|
|
80
|
+
*/
|
|
81
|
+
getConnector(requestParameters: GetConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConnectorResponse>;
|
|
82
|
+
/**
|
|
83
|
+
* Creates request options for listConnectorTools without sending the request
|
|
84
|
+
*/
|
|
85
|
+
listConnectorToolsRequestOpts(requestParameters: ListConnectorToolsRequest): Promise<runtime.RequestOpts>;
|
|
86
|
+
/**
|
|
87
|
+
* Calls the MCP server\'s tools/list endpoint and returns the available tools.
|
|
88
|
+
* List connector tools
|
|
89
|
+
*/
|
|
90
|
+
listConnectorToolsRaw(requestParameters: ListConnectorToolsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
91
|
+
[key: string]: any;
|
|
92
|
+
}>>;
|
|
93
|
+
/**
|
|
94
|
+
* Calls the MCP server\'s tools/list endpoint and returns the available tools.
|
|
95
|
+
* List connector tools
|
|
96
|
+
*/
|
|
97
|
+
listConnectorTools(requestParameters: ListConnectorToolsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
98
|
+
[key: string]: any;
|
|
99
|
+
}>;
|
|
100
|
+
/**
|
|
101
|
+
* Creates request options for listConnectors without sending the request
|
|
102
|
+
*/
|
|
103
|
+
listConnectorsRequestOpts(requestParameters: ListConnectorsRequest): Promise<runtime.RequestOpts>;
|
|
104
|
+
/**
|
|
105
|
+
* Returns all connectors with attached agent counts in the specified namespace.
|
|
106
|
+
* List connectors
|
|
107
|
+
*/
|
|
108
|
+
listConnectorsRaw(requestParameters: ListConnectorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
109
|
+
[key: string]: any;
|
|
110
|
+
}>>;
|
|
111
|
+
/**
|
|
112
|
+
* Returns all connectors with attached agent counts in the specified namespace.
|
|
113
|
+
* List connectors
|
|
114
|
+
*/
|
|
115
|
+
listConnectors(requestParameters?: ListConnectorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
116
|
+
[key: string]: any;
|
|
117
|
+
}>;
|
|
118
|
+
}
|