@crestal/nation-sdk 0.1.19 → 0.1.20
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 +2 -0
- package/README.md +22 -4
- package/api.ts +1414 -104
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +657 -33
- package/dist/api.js +1632 -97
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AgentApi.md +912 -13
- package/docs/AgentListResponse.md +25 -0
- package/docs/AgentSortOption.md +13 -0
- package/docs/CreditEvent.md +2 -0
- package/docs/CreditEventWithAgent.md +2 -0
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Nation IntentKit API
|
|
3
3
|
* API for Nation IntentKit services
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.
|
|
5
|
+
* The version of the OpenAPI document: 0.1.20
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -87,6 +87,31 @@ export interface AgentExample {
|
|
|
87
87
|
*/
|
|
88
88
|
'prompt': string;
|
|
89
89
|
}
|
|
90
|
+
/**
|
|
91
|
+
* Paginated response model for agents list. Contains a list of agents, a flag indicating if more items are available, and a cursor for pagination.
|
|
92
|
+
* @export
|
|
93
|
+
* @interface AgentListResponse
|
|
94
|
+
*/
|
|
95
|
+
export interface AgentListResponse {
|
|
96
|
+
/**
|
|
97
|
+
* List of agents
|
|
98
|
+
* @type {Array<AgentResponse>}
|
|
99
|
+
* @memberof AgentListResponse
|
|
100
|
+
*/
|
|
101
|
+
'data': Array<AgentResponse>;
|
|
102
|
+
/**
|
|
103
|
+
* Indicates if there are more items
|
|
104
|
+
* @type {boolean}
|
|
105
|
+
* @memberof AgentListResponse
|
|
106
|
+
*/
|
|
107
|
+
'has_more': boolean;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof AgentListResponse
|
|
112
|
+
*/
|
|
113
|
+
'next_cursor'?: string | null;
|
|
114
|
+
}
|
|
90
115
|
/**
|
|
91
116
|
* Response model for Agent API.
|
|
92
117
|
* @export
|
|
@@ -319,6 +344,17 @@ export declare const AgentResponseWalletProviderEnum: {
|
|
|
319
344
|
readonly Cdp: "cdp";
|
|
320
345
|
};
|
|
321
346
|
export type AgentResponseWalletProviderEnum = typeof AgentResponseWalletProviderEnum[keyof typeof AgentResponseWalletProviderEnum];
|
|
347
|
+
/**
|
|
348
|
+
* Sort options for agents list.
|
|
349
|
+
* @export
|
|
350
|
+
* @enum {string}
|
|
351
|
+
*/
|
|
352
|
+
export declare const AgentSortOption: {
|
|
353
|
+
readonly CreatedAtDesc: "created_at desc";
|
|
354
|
+
readonly CreatedAtAsc: "created_at asc";
|
|
355
|
+
readonly UpdatedAtDesc: "updated_at desc";
|
|
356
|
+
};
|
|
357
|
+
export type AgentSortOption = typeof AgentSortOption[keyof typeof AgentSortOption];
|
|
322
358
|
/**
|
|
323
359
|
* Response model for agent statistics.
|
|
324
360
|
* @export
|
|
@@ -1193,6 +1229,12 @@ export interface CreditEvent {
|
|
|
1193
1229
|
* @memberof CreditEvent
|
|
1194
1230
|
*/
|
|
1195
1231
|
'agent_id'?: string | null;
|
|
1232
|
+
/**
|
|
1233
|
+
*
|
|
1234
|
+
* @type {string}
|
|
1235
|
+
* @memberof CreditEvent
|
|
1236
|
+
*/
|
|
1237
|
+
'agent_wallet_address'?: string | null;
|
|
1196
1238
|
/**
|
|
1197
1239
|
*
|
|
1198
1240
|
* @type {string}
|
|
@@ -1446,6 +1488,12 @@ export interface CreditEventWithAgent {
|
|
|
1446
1488
|
* @memberof CreditEventWithAgent
|
|
1447
1489
|
*/
|
|
1448
1490
|
'agent_id'?: string | null;
|
|
1491
|
+
/**
|
|
1492
|
+
*
|
|
1493
|
+
* @type {string}
|
|
1494
|
+
* @memberof CreditEventWithAgent
|
|
1495
|
+
*/
|
|
1496
|
+
'agent_wallet_address'?: string | null;
|
|
1449
1497
|
/**
|
|
1450
1498
|
*
|
|
1451
1499
|
* @type {string}
|
|
@@ -2158,21 +2206,45 @@ export interface ValidationErrorLocInner {
|
|
|
2158
2206
|
*/
|
|
2159
2207
|
export declare const AgentApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2160
2208
|
/**
|
|
2161
|
-
* Create a new agent
|
|
2162
|
-
* @summary Create
|
|
2163
|
-
* @param {AgentUpdate} agentUpdate
|
|
2209
|
+
* Create a new agent. **Request Body:** * `agent` - Agent configuration **Returns:** * `AgentResponse` - Created agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format or agent ID already exists - 500: Database error
|
|
2210
|
+
* @summary Create Agent
|
|
2211
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2164
2212
|
* @param {*} [options] Override http request option.
|
|
2165
2213
|
* @throws {RequiredError}
|
|
2166
2214
|
*/
|
|
2167
|
-
createAgent: (agentUpdate
|
|
2215
|
+
createAgent: (agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2168
2216
|
/**
|
|
2169
|
-
*
|
|
2170
|
-
* @summary
|
|
2171
|
-
* @param {
|
|
2217
|
+
* Create a new agent. **Request Body:** * `agent` - Agent configuration **Returns:** * `AgentResponse` - Created agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format or agent ID already exists - 500: Database error
|
|
2218
|
+
* @summary Create Agent
|
|
2219
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2220
|
+
* @param {*} [options] Override http request option.
|
|
2221
|
+
* @throws {RequiredError}
|
|
2222
|
+
*/
|
|
2223
|
+
createAgent_1: (agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2224
|
+
/**
|
|
2225
|
+
* Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found
|
|
2226
|
+
* @summary Export Agent
|
|
2227
|
+
* @param {string} agentId ID of the agent to export
|
|
2172
2228
|
* @param {*} [options] Override http request option.
|
|
2173
2229
|
* @throws {RequiredError}
|
|
2174
2230
|
*/
|
|
2175
|
-
|
|
2231
|
+
exportAgent: (agentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2232
|
+
/**
|
|
2233
|
+
* Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found
|
|
2234
|
+
* @summary Export Agent
|
|
2235
|
+
* @param {string} agentId ID of the agent to export
|
|
2236
|
+
* @param {*} [options] Override http request option.
|
|
2237
|
+
* @throws {RequiredError}
|
|
2238
|
+
*/
|
|
2239
|
+
exportAgent_2: (agentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2240
|
+
/**
|
|
2241
|
+
* Get a single agent by ID. **Path Parameters:** * `agent_id` - ID of the agent to retrieve **Returns:** * `AgentResponse` - Agent configuration with additional processed data **Raises:** * `HTTPException`: - 404: Agent not found
|
|
2242
|
+
* @summary Get Agent
|
|
2243
|
+
* @param {string} agentId ID of the agent to retrieve
|
|
2244
|
+
* @param {*} [options] Override http request option.
|
|
2245
|
+
* @throws {RequiredError}
|
|
2246
|
+
*/
|
|
2247
|
+
getAgent: (agentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2176
2248
|
/**
|
|
2177
2249
|
* Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
|
|
2178
2250
|
* @summary Get Agent Statistics
|
|
@@ -2181,6 +2253,122 @@ export declare const AgentApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
2181
2253
|
* @throws {RequiredError}
|
|
2182
2254
|
*/
|
|
2183
2255
|
getAgentStatistics: (aid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2256
|
+
/**
|
|
2257
|
+
* Get a single agent by ID. **Path Parameters:** * `agent_id` - ID of the agent to retrieve **Returns:** * `AgentResponse` - Agent configuration with additional processed data **Raises:** * `HTTPException`: - 404: Agent not found
|
|
2258
|
+
* @summary Get Agent
|
|
2259
|
+
* @param {string} agentId ID of the agent to retrieve
|
|
2260
|
+
* @param {*} [options] Override http request option.
|
|
2261
|
+
* @throws {RequiredError}
|
|
2262
|
+
*/
|
|
2263
|
+
getAgent_3: (agentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2264
|
+
/**
|
|
2265
|
+
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
2266
|
+
* @summary Get Agents
|
|
2267
|
+
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
2268
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
2269
|
+
* @param {number} [limit] Maximum number of agents to return
|
|
2270
|
+
* @param {*} [options] Override http request option.
|
|
2271
|
+
* @throws {RequiredError}
|
|
2272
|
+
*/
|
|
2273
|
+
getAgents: (sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2274
|
+
/**
|
|
2275
|
+
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
2276
|
+
* @summary Get Agents
|
|
2277
|
+
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
2278
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
2279
|
+
* @param {number} [limit] Maximum number of agents to return
|
|
2280
|
+
* @param {*} [options] Override http request option.
|
|
2281
|
+
* @throws {RequiredError}
|
|
2282
|
+
*/
|
|
2283
|
+
getAgents_4: (sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2284
|
+
/**
|
|
2285
|
+
* Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
|
|
2286
|
+
* @summary Import Agent
|
|
2287
|
+
* @param {string} agentId
|
|
2288
|
+
* @param {File} file YAML file containing agent configuration
|
|
2289
|
+
* @param {*} [options] Override http request option.
|
|
2290
|
+
* @throws {RequiredError}
|
|
2291
|
+
*/
|
|
2292
|
+
importAgent: (agentId: string, file: File, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2293
|
+
/**
|
|
2294
|
+
* Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
|
|
2295
|
+
* @summary Import Agent
|
|
2296
|
+
* @param {string} agentId
|
|
2297
|
+
* @param {File} file YAML file containing agent configuration
|
|
2298
|
+
* @param {*} [options] Override http request option.
|
|
2299
|
+
* @throws {RequiredError}
|
|
2300
|
+
*/
|
|
2301
|
+
importAgent_5: (agentId: string, file: File, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2302
|
+
/**
|
|
2303
|
+
* Override an existing agent. Use input to override agent configuration. If some fields are not provided, they will be reset to default values. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
2304
|
+
* @summary Override Agent
|
|
2305
|
+
* @param {string} agentId ID of the agent to update
|
|
2306
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2307
|
+
* @param {*} [options] Override http request option.
|
|
2308
|
+
* @throws {RequiredError}
|
|
2309
|
+
*/
|
|
2310
|
+
overrideAgent: (agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2311
|
+
/**
|
|
2312
|
+
* Override an existing agent. Use input to override agent configuration. If some fields are not provided, they will be reset to default values. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
2313
|
+
* @summary Override Agent
|
|
2314
|
+
* @param {string} agentId ID of the agent to update
|
|
2315
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2316
|
+
* @param {*} [options] Override http request option.
|
|
2317
|
+
* @throws {RequiredError}
|
|
2318
|
+
*/
|
|
2319
|
+
overrideAgent_6: (agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2320
|
+
/**
|
|
2321
|
+
* Update an existing agent. Use input to update agent configuration. If some fields are not provided, they will not be changed. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
2322
|
+
* @summary Update Agent
|
|
2323
|
+
* @param {string} agentId ID of the agent to update
|
|
2324
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2325
|
+
* @param {*} [options] Override http request option.
|
|
2326
|
+
* @throws {RequiredError}
|
|
2327
|
+
*/
|
|
2328
|
+
updateAgent: (agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2329
|
+
/**
|
|
2330
|
+
* Update an existing agent. Use input to update agent configuration. If some fields are not provided, they will not be changed. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
2331
|
+
* @summary Update Agent
|
|
2332
|
+
* @param {string} agentId ID of the agent to update
|
|
2333
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2334
|
+
* @param {*} [options] Override http request option.
|
|
2335
|
+
* @throws {RequiredError}
|
|
2336
|
+
*/
|
|
2337
|
+
updateAgent_7: (agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2338
|
+
/**
|
|
2339
|
+
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
2340
|
+
* @summary Validate Agent Create
|
|
2341
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2342
|
+
* @param {*} [options] Override http request option.
|
|
2343
|
+
* @throws {RequiredError}
|
|
2344
|
+
*/
|
|
2345
|
+
validateAgentCreate: (agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2346
|
+
/**
|
|
2347
|
+
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
2348
|
+
* @summary Validate Agent Create
|
|
2349
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2350
|
+
* @param {*} [options] Override http request option.
|
|
2351
|
+
* @throws {RequiredError}
|
|
2352
|
+
*/
|
|
2353
|
+
validateAgentCreate_8: (agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2354
|
+
/**
|
|
2355
|
+
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
2356
|
+
* @summary Validate Agent Update
|
|
2357
|
+
* @param {string} agentId Agent ID
|
|
2358
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2359
|
+
* @param {*} [options] Override http request option.
|
|
2360
|
+
* @throws {RequiredError}
|
|
2361
|
+
*/
|
|
2362
|
+
validateAgentUpdate: (agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2363
|
+
/**
|
|
2364
|
+
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
2365
|
+
* @summary Validate Agent Update
|
|
2366
|
+
* @param {string} agentId Agent ID
|
|
2367
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2368
|
+
* @param {*} [options] Override http request option.
|
|
2369
|
+
* @throws {RequiredError}
|
|
2370
|
+
*/
|
|
2371
|
+
validateAgentUpdate_9: (agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2184
2372
|
};
|
|
2185
2373
|
/**
|
|
2186
2374
|
* AgentApi - functional programming interface
|
|
@@ -2188,21 +2376,45 @@ export declare const AgentApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
2188
2376
|
*/
|
|
2189
2377
|
export declare const AgentApiFp: (configuration?: Configuration) => {
|
|
2190
2378
|
/**
|
|
2191
|
-
* Create a new agent
|
|
2192
|
-
* @summary Create
|
|
2193
|
-
* @param {AgentUpdate} agentUpdate
|
|
2379
|
+
* Create a new agent. **Request Body:** * `agent` - Agent configuration **Returns:** * `AgentResponse` - Created agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format or agent ID already exists - 500: Database error
|
|
2380
|
+
* @summary Create Agent
|
|
2381
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2194
2382
|
* @param {*} [options] Override http request option.
|
|
2195
2383
|
* @throws {RequiredError}
|
|
2196
2384
|
*/
|
|
2197
|
-
createAgent(agentUpdate
|
|
2385
|
+
createAgent(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentResponse>>;
|
|
2198
2386
|
/**
|
|
2199
|
-
*
|
|
2200
|
-
* @summary
|
|
2201
|
-
* @param {
|
|
2387
|
+
* Create a new agent. **Request Body:** * `agent` - Agent configuration **Returns:** * `AgentResponse` - Created agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format or agent ID already exists - 500: Database error
|
|
2388
|
+
* @summary Create Agent
|
|
2389
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2202
2390
|
* @param {*} [options] Override http request option.
|
|
2203
2391
|
* @throws {RequiredError}
|
|
2204
2392
|
*/
|
|
2205
|
-
|
|
2393
|
+
createAgent_1(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentResponse>>;
|
|
2394
|
+
/**
|
|
2395
|
+
* Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found
|
|
2396
|
+
* @summary Export Agent
|
|
2397
|
+
* @param {string} agentId ID of the agent to export
|
|
2398
|
+
* @param {*} [options] Override http request option.
|
|
2399
|
+
* @throws {RequiredError}
|
|
2400
|
+
*/
|
|
2401
|
+
exportAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
2402
|
+
/**
|
|
2403
|
+
* Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found
|
|
2404
|
+
* @summary Export Agent
|
|
2405
|
+
* @param {string} agentId ID of the agent to export
|
|
2406
|
+
* @param {*} [options] Override http request option.
|
|
2407
|
+
* @throws {RequiredError}
|
|
2408
|
+
*/
|
|
2409
|
+
exportAgent_2(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
2410
|
+
/**
|
|
2411
|
+
* Get a single agent by ID. **Path Parameters:** * `agent_id` - ID of the agent to retrieve **Returns:** * `AgentResponse` - Agent configuration with additional processed data **Raises:** * `HTTPException`: - 404: Agent not found
|
|
2412
|
+
* @summary Get Agent
|
|
2413
|
+
* @param {string} agentId ID of the agent to retrieve
|
|
2414
|
+
* @param {*} [options] Override http request option.
|
|
2415
|
+
* @throws {RequiredError}
|
|
2416
|
+
*/
|
|
2417
|
+
getAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
2206
2418
|
/**
|
|
2207
2419
|
* Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
|
|
2208
2420
|
* @summary Get Agent Statistics
|
|
@@ -2211,6 +2423,122 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
|
|
|
2211
2423
|
* @throws {RequiredError}
|
|
2212
2424
|
*/
|
|
2213
2425
|
getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentStatisticsResponse>>;
|
|
2426
|
+
/**
|
|
2427
|
+
* Get a single agent by ID. **Path Parameters:** * `agent_id` - ID of the agent to retrieve **Returns:** * `AgentResponse` - Agent configuration with additional processed data **Raises:** * `HTTPException`: - 404: Agent not found
|
|
2428
|
+
* @summary Get Agent
|
|
2429
|
+
* @param {string} agentId ID of the agent to retrieve
|
|
2430
|
+
* @param {*} [options] Override http request option.
|
|
2431
|
+
* @throws {RequiredError}
|
|
2432
|
+
*/
|
|
2433
|
+
getAgent_3(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
2434
|
+
/**
|
|
2435
|
+
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
2436
|
+
* @summary Get Agents
|
|
2437
|
+
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
2438
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
2439
|
+
* @param {number} [limit] Maximum number of agents to return
|
|
2440
|
+
* @param {*} [options] Override http request option.
|
|
2441
|
+
* @throws {RequiredError}
|
|
2442
|
+
*/
|
|
2443
|
+
getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentListResponse>>;
|
|
2444
|
+
/**
|
|
2445
|
+
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
2446
|
+
* @summary Get Agents
|
|
2447
|
+
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
2448
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
2449
|
+
* @param {number} [limit] Maximum number of agents to return
|
|
2450
|
+
* @param {*} [options] Override http request option.
|
|
2451
|
+
* @throws {RequiredError}
|
|
2452
|
+
*/
|
|
2453
|
+
getAgents_4(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentListResponse>>;
|
|
2454
|
+
/**
|
|
2455
|
+
* Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
|
|
2456
|
+
* @summary Import Agent
|
|
2457
|
+
* @param {string} agentId
|
|
2458
|
+
* @param {File} file YAML file containing agent configuration
|
|
2459
|
+
* @param {*} [options] Override http request option.
|
|
2460
|
+
* @throws {RequiredError}
|
|
2461
|
+
*/
|
|
2462
|
+
importAgent(agentId: string, file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
|
|
2463
|
+
/**
|
|
2464
|
+
* Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
|
|
2465
|
+
* @summary Import Agent
|
|
2466
|
+
* @param {string} agentId
|
|
2467
|
+
* @param {File} file YAML file containing agent configuration
|
|
2468
|
+
* @param {*} [options] Override http request option.
|
|
2469
|
+
* @throws {RequiredError}
|
|
2470
|
+
*/
|
|
2471
|
+
importAgent_5(agentId: string, file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
|
|
2472
|
+
/**
|
|
2473
|
+
* Override an existing agent. Use input to override agent configuration. If some fields are not provided, they will be reset to default values. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
2474
|
+
* @summary Override Agent
|
|
2475
|
+
* @param {string} agentId ID of the agent to update
|
|
2476
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2477
|
+
* @param {*} [options] Override http request option.
|
|
2478
|
+
* @throws {RequiredError}
|
|
2479
|
+
*/
|
|
2480
|
+
overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
2481
|
+
/**
|
|
2482
|
+
* Override an existing agent. Use input to override agent configuration. If some fields are not provided, they will be reset to default values. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
2483
|
+
* @summary Override Agent
|
|
2484
|
+
* @param {string} agentId ID of the agent to update
|
|
2485
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2486
|
+
* @param {*} [options] Override http request option.
|
|
2487
|
+
* @throws {RequiredError}
|
|
2488
|
+
*/
|
|
2489
|
+
overrideAgent_6(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
2490
|
+
/**
|
|
2491
|
+
* Update an existing agent. Use input to update agent configuration. If some fields are not provided, they will not be changed. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
2492
|
+
* @summary Update Agent
|
|
2493
|
+
* @param {string} agentId ID of the agent to update
|
|
2494
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2495
|
+
* @param {*} [options] Override http request option.
|
|
2496
|
+
* @throws {RequiredError}
|
|
2497
|
+
*/
|
|
2498
|
+
updateAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
2499
|
+
/**
|
|
2500
|
+
* Update an existing agent. Use input to update agent configuration. If some fields are not provided, they will not be changed. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
2501
|
+
* @summary Update Agent
|
|
2502
|
+
* @param {string} agentId ID of the agent to update
|
|
2503
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2504
|
+
* @param {*} [options] Override http request option.
|
|
2505
|
+
* @throws {RequiredError}
|
|
2506
|
+
*/
|
|
2507
|
+
updateAgent_7(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
2508
|
+
/**
|
|
2509
|
+
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
2510
|
+
* @summary Validate Agent Create
|
|
2511
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2512
|
+
* @param {*} [options] Override http request option.
|
|
2513
|
+
* @throws {RequiredError}
|
|
2514
|
+
*/
|
|
2515
|
+
validateAgentCreate(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
2516
|
+
/**
|
|
2517
|
+
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
2518
|
+
* @summary Validate Agent Create
|
|
2519
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2520
|
+
* @param {*} [options] Override http request option.
|
|
2521
|
+
* @throws {RequiredError}
|
|
2522
|
+
*/
|
|
2523
|
+
validateAgentCreate_8(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
2524
|
+
/**
|
|
2525
|
+
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
2526
|
+
* @summary Validate Agent Update
|
|
2527
|
+
* @param {string} agentId Agent ID
|
|
2528
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2529
|
+
* @param {*} [options] Override http request option.
|
|
2530
|
+
* @throws {RequiredError}
|
|
2531
|
+
*/
|
|
2532
|
+
validateAgentUpdate(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
2533
|
+
/**
|
|
2534
|
+
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
2535
|
+
* @summary Validate Agent Update
|
|
2536
|
+
* @param {string} agentId Agent ID
|
|
2537
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2538
|
+
* @param {*} [options] Override http request option.
|
|
2539
|
+
* @throws {RequiredError}
|
|
2540
|
+
*/
|
|
2541
|
+
validateAgentUpdate_9(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
2214
2542
|
};
|
|
2215
2543
|
/**
|
|
2216
2544
|
* AgentApi - factory interface
|
|
@@ -2218,21 +2546,45 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
|
|
|
2218
2546
|
*/
|
|
2219
2547
|
export declare const AgentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2220
2548
|
/**
|
|
2221
|
-
* Create a new agent
|
|
2222
|
-
* @summary Create
|
|
2223
|
-
* @param {AgentUpdate} agentUpdate
|
|
2549
|
+
* Create a new agent. **Request Body:** * `agent` - Agent configuration **Returns:** * `AgentResponse` - Created agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format or agent ID already exists - 500: Database error
|
|
2550
|
+
* @summary Create Agent
|
|
2551
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2224
2552
|
* @param {*} [options] Override http request option.
|
|
2225
2553
|
* @throws {RequiredError}
|
|
2226
2554
|
*/
|
|
2227
|
-
createAgent(agentUpdate
|
|
2555
|
+
createAgent(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<AgentResponse>;
|
|
2228
2556
|
/**
|
|
2229
|
-
*
|
|
2230
|
-
* @summary
|
|
2231
|
-
* @param {
|
|
2557
|
+
* Create a new agent. **Request Body:** * `agent` - Agent configuration **Returns:** * `AgentResponse` - Created agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format or agent ID already exists - 500: Database error
|
|
2558
|
+
* @summary Create Agent
|
|
2559
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2232
2560
|
* @param {*} [options] Override http request option.
|
|
2233
2561
|
* @throws {RequiredError}
|
|
2234
2562
|
*/
|
|
2235
|
-
|
|
2563
|
+
createAgent_1(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<AgentResponse>;
|
|
2564
|
+
/**
|
|
2565
|
+
* Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found
|
|
2566
|
+
* @summary Export Agent
|
|
2567
|
+
* @param {string} agentId ID of the agent to export
|
|
2568
|
+
* @param {*} [options] Override http request option.
|
|
2569
|
+
* @throws {RequiredError}
|
|
2570
|
+
*/
|
|
2571
|
+
exportAgent(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
2572
|
+
/**
|
|
2573
|
+
* Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found
|
|
2574
|
+
* @summary Export Agent
|
|
2575
|
+
* @param {string} agentId ID of the agent to export
|
|
2576
|
+
* @param {*} [options] Override http request option.
|
|
2577
|
+
* @throws {RequiredError}
|
|
2578
|
+
*/
|
|
2579
|
+
exportAgent_2(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
2580
|
+
/**
|
|
2581
|
+
* Get a single agent by ID. **Path Parameters:** * `agent_id` - ID of the agent to retrieve **Returns:** * `AgentResponse` - Agent configuration with additional processed data **Raises:** * `HTTPException`: - 404: Agent not found
|
|
2582
|
+
* @summary Get Agent
|
|
2583
|
+
* @param {string} agentId ID of the agent to retrieve
|
|
2584
|
+
* @param {*} [options] Override http request option.
|
|
2585
|
+
* @throws {RequiredError}
|
|
2586
|
+
*/
|
|
2587
|
+
getAgent(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
2236
2588
|
/**
|
|
2237
2589
|
* Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
|
|
2238
2590
|
* @summary Get Agent Statistics
|
|
@@ -2241,6 +2593,122 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
|
|
|
2241
2593
|
* @throws {RequiredError}
|
|
2242
2594
|
*/
|
|
2243
2595
|
getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentStatisticsResponse>;
|
|
2596
|
+
/**
|
|
2597
|
+
* Get a single agent by ID. **Path Parameters:** * `agent_id` - ID of the agent to retrieve **Returns:** * `AgentResponse` - Agent configuration with additional processed data **Raises:** * `HTTPException`: - 404: Agent not found
|
|
2598
|
+
* @summary Get Agent
|
|
2599
|
+
* @param {string} agentId ID of the agent to retrieve
|
|
2600
|
+
* @param {*} [options] Override http request option.
|
|
2601
|
+
* @throws {RequiredError}
|
|
2602
|
+
*/
|
|
2603
|
+
getAgent_3(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
2604
|
+
/**
|
|
2605
|
+
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
2606
|
+
* @summary Get Agents
|
|
2607
|
+
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
2608
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
2609
|
+
* @param {number} [limit] Maximum number of agents to return
|
|
2610
|
+
* @param {*} [options] Override http request option.
|
|
2611
|
+
* @throws {RequiredError}
|
|
2612
|
+
*/
|
|
2613
|
+
getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse>;
|
|
2614
|
+
/**
|
|
2615
|
+
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
2616
|
+
* @summary Get Agents
|
|
2617
|
+
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
2618
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
2619
|
+
* @param {number} [limit] Maximum number of agents to return
|
|
2620
|
+
* @param {*} [options] Override http request option.
|
|
2621
|
+
* @throws {RequiredError}
|
|
2622
|
+
*/
|
|
2623
|
+
getAgents_4(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse>;
|
|
2624
|
+
/**
|
|
2625
|
+
* Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
|
|
2626
|
+
* @summary Import Agent
|
|
2627
|
+
* @param {string} agentId
|
|
2628
|
+
* @param {File} file YAML file containing agent configuration
|
|
2629
|
+
* @param {*} [options] Override http request option.
|
|
2630
|
+
* @throws {RequiredError}
|
|
2631
|
+
*/
|
|
2632
|
+
importAgent(agentId: string, file: File, options?: RawAxiosRequestConfig): AxiosPromise<string>;
|
|
2633
|
+
/**
|
|
2634
|
+
* Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
|
|
2635
|
+
* @summary Import Agent
|
|
2636
|
+
* @param {string} agentId
|
|
2637
|
+
* @param {File} file YAML file containing agent configuration
|
|
2638
|
+
* @param {*} [options] Override http request option.
|
|
2639
|
+
* @throws {RequiredError}
|
|
2640
|
+
*/
|
|
2641
|
+
importAgent_5(agentId: string, file: File, options?: RawAxiosRequestConfig): AxiosPromise<string>;
|
|
2642
|
+
/**
|
|
2643
|
+
* Override an existing agent. Use input to override agent configuration. If some fields are not provided, they will be reset to default values. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
2644
|
+
* @summary Override Agent
|
|
2645
|
+
* @param {string} agentId ID of the agent to update
|
|
2646
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2647
|
+
* @param {*} [options] Override http request option.
|
|
2648
|
+
* @throws {RequiredError}
|
|
2649
|
+
*/
|
|
2650
|
+
overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
2651
|
+
/**
|
|
2652
|
+
* Override an existing agent. Use input to override agent configuration. If some fields are not provided, they will be reset to default values. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
2653
|
+
* @summary Override Agent
|
|
2654
|
+
* @param {string} agentId ID of the agent to update
|
|
2655
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2656
|
+
* @param {*} [options] Override http request option.
|
|
2657
|
+
* @throws {RequiredError}
|
|
2658
|
+
*/
|
|
2659
|
+
overrideAgent_6(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
2660
|
+
/**
|
|
2661
|
+
* Update an existing agent. Use input to update agent configuration. If some fields are not provided, they will not be changed. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
2662
|
+
* @summary Update Agent
|
|
2663
|
+
* @param {string} agentId ID of the agent to update
|
|
2664
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2665
|
+
* @param {*} [options] Override http request option.
|
|
2666
|
+
* @throws {RequiredError}
|
|
2667
|
+
*/
|
|
2668
|
+
updateAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
2669
|
+
/**
|
|
2670
|
+
* Update an existing agent. Use input to update agent configuration. If some fields are not provided, they will not be changed. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
2671
|
+
* @summary Update Agent
|
|
2672
|
+
* @param {string} agentId ID of the agent to update
|
|
2673
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2674
|
+
* @param {*} [options] Override http request option.
|
|
2675
|
+
* @throws {RequiredError}
|
|
2676
|
+
*/
|
|
2677
|
+
updateAgent_7(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
2678
|
+
/**
|
|
2679
|
+
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
2680
|
+
* @summary Validate Agent Create
|
|
2681
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2682
|
+
* @param {*} [options] Override http request option.
|
|
2683
|
+
* @throws {RequiredError}
|
|
2684
|
+
*/
|
|
2685
|
+
validateAgentCreate(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2686
|
+
/**
|
|
2687
|
+
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
2688
|
+
* @summary Validate Agent Create
|
|
2689
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2690
|
+
* @param {*} [options] Override http request option.
|
|
2691
|
+
* @throws {RequiredError}
|
|
2692
|
+
*/
|
|
2693
|
+
validateAgentCreate_8(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2694
|
+
/**
|
|
2695
|
+
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
2696
|
+
* @summary Validate Agent Update
|
|
2697
|
+
* @param {string} agentId Agent ID
|
|
2698
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2699
|
+
* @param {*} [options] Override http request option.
|
|
2700
|
+
* @throws {RequiredError}
|
|
2701
|
+
*/
|
|
2702
|
+
validateAgentUpdate(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2703
|
+
/**
|
|
2704
|
+
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
2705
|
+
* @summary Validate Agent Update
|
|
2706
|
+
* @param {string} agentId Agent ID
|
|
2707
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2708
|
+
* @param {*} [options] Override http request option.
|
|
2709
|
+
* @throws {RequiredError}
|
|
2710
|
+
*/
|
|
2711
|
+
validateAgentUpdate_9(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2244
2712
|
};
|
|
2245
2713
|
/**
|
|
2246
2714
|
* AgentApi - object-oriented interface
|
|
@@ -2250,23 +2718,50 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
|
|
|
2250
2718
|
*/
|
|
2251
2719
|
export declare class AgentApi extends BaseAPI {
|
|
2252
2720
|
/**
|
|
2253
|
-
* Create a new agent
|
|
2254
|
-
* @summary Create
|
|
2255
|
-
* @param {AgentUpdate} agentUpdate
|
|
2721
|
+
* Create a new agent. **Request Body:** * `agent` - Agent configuration **Returns:** * `AgentResponse` - Created agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format or agent ID already exists - 500: Database error
|
|
2722
|
+
* @summary Create Agent
|
|
2723
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2256
2724
|
* @param {*} [options] Override http request option.
|
|
2257
2725
|
* @throws {RequiredError}
|
|
2258
2726
|
* @memberof AgentApi
|
|
2259
2727
|
*/
|
|
2260
|
-
createAgent(agentUpdate
|
|
2728
|
+
createAgent(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentResponse, any>>;
|
|
2261
2729
|
/**
|
|
2262
|
-
*
|
|
2263
|
-
* @summary
|
|
2264
|
-
* @param {
|
|
2730
|
+
* Create a new agent. **Request Body:** * `agent` - Agent configuration **Returns:** * `AgentResponse` - Created agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format or agent ID already exists - 500: Database error
|
|
2731
|
+
* @summary Create Agent
|
|
2732
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2265
2733
|
* @param {*} [options] Override http request option.
|
|
2266
2734
|
* @throws {RequiredError}
|
|
2267
2735
|
* @memberof AgentApi
|
|
2268
2736
|
*/
|
|
2269
|
-
|
|
2737
|
+
createAgent_1(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentResponse, any>>;
|
|
2738
|
+
/**
|
|
2739
|
+
* Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found
|
|
2740
|
+
* @summary Export Agent
|
|
2741
|
+
* @param {string} agentId ID of the agent to export
|
|
2742
|
+
* @param {*} [options] Override http request option.
|
|
2743
|
+
* @throws {RequiredError}
|
|
2744
|
+
* @memberof AgentApi
|
|
2745
|
+
*/
|
|
2746
|
+
exportAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
2747
|
+
/**
|
|
2748
|
+
* Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found
|
|
2749
|
+
* @summary Export Agent
|
|
2750
|
+
* @param {string} agentId ID of the agent to export
|
|
2751
|
+
* @param {*} [options] Override http request option.
|
|
2752
|
+
* @throws {RequiredError}
|
|
2753
|
+
* @memberof AgentApi
|
|
2754
|
+
*/
|
|
2755
|
+
exportAgent_2(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
2756
|
+
/**
|
|
2757
|
+
* Get a single agent by ID. **Path Parameters:** * `agent_id` - ID of the agent to retrieve **Returns:** * `AgentResponse` - Agent configuration with additional processed data **Raises:** * `HTTPException`: - 404: Agent not found
|
|
2758
|
+
* @summary Get Agent
|
|
2759
|
+
* @param {string} agentId ID of the agent to retrieve
|
|
2760
|
+
* @param {*} [options] Override http request option.
|
|
2761
|
+
* @throws {RequiredError}
|
|
2762
|
+
* @memberof AgentApi
|
|
2763
|
+
*/
|
|
2764
|
+
getAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
2270
2765
|
/**
|
|
2271
2766
|
* Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
|
|
2272
2767
|
* @summary Get Agent Statistics
|
|
@@ -2276,6 +2771,135 @@ export declare class AgentApi extends BaseAPI {
|
|
|
2276
2771
|
* @memberof AgentApi
|
|
2277
2772
|
*/
|
|
2278
2773
|
getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentStatisticsResponse, any>>;
|
|
2774
|
+
/**
|
|
2775
|
+
* Get a single agent by ID. **Path Parameters:** * `agent_id` - ID of the agent to retrieve **Returns:** * `AgentResponse` - Agent configuration with additional processed data **Raises:** * `HTTPException`: - 404: Agent not found
|
|
2776
|
+
* @summary Get Agent
|
|
2777
|
+
* @param {string} agentId ID of the agent to retrieve
|
|
2778
|
+
* @param {*} [options] Override http request option.
|
|
2779
|
+
* @throws {RequiredError}
|
|
2780
|
+
* @memberof AgentApi
|
|
2781
|
+
*/
|
|
2782
|
+
getAgent_3(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
2783
|
+
/**
|
|
2784
|
+
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
2785
|
+
* @summary Get Agents
|
|
2786
|
+
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
2787
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
2788
|
+
* @param {number} [limit] Maximum number of agents to return
|
|
2789
|
+
* @param {*} [options] Override http request option.
|
|
2790
|
+
* @throws {RequiredError}
|
|
2791
|
+
* @memberof AgentApi
|
|
2792
|
+
*/
|
|
2793
|
+
getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentListResponse, any>>;
|
|
2794
|
+
/**
|
|
2795
|
+
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
2796
|
+
* @summary Get Agents
|
|
2797
|
+
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
2798
|
+
* @param {string | null} [cursor] Cursor for pagination
|
|
2799
|
+
* @param {number} [limit] Maximum number of agents to return
|
|
2800
|
+
* @param {*} [options] Override http request option.
|
|
2801
|
+
* @throws {RequiredError}
|
|
2802
|
+
* @memberof AgentApi
|
|
2803
|
+
*/
|
|
2804
|
+
getAgents_4(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentListResponse, any>>;
|
|
2805
|
+
/**
|
|
2806
|
+
* Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
|
|
2807
|
+
* @summary Import Agent
|
|
2808
|
+
* @param {string} agentId
|
|
2809
|
+
* @param {File} file YAML file containing agent configuration
|
|
2810
|
+
* @param {*} [options] Override http request option.
|
|
2811
|
+
* @throws {RequiredError}
|
|
2812
|
+
* @memberof AgentApi
|
|
2813
|
+
*/
|
|
2814
|
+
importAgent(agentId: string, file: File, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
|
|
2815
|
+
/**
|
|
2816
|
+
* Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
|
|
2817
|
+
* @summary Import Agent
|
|
2818
|
+
* @param {string} agentId
|
|
2819
|
+
* @param {File} file YAML file containing agent configuration
|
|
2820
|
+
* @param {*} [options] Override http request option.
|
|
2821
|
+
* @throws {RequiredError}
|
|
2822
|
+
* @memberof AgentApi
|
|
2823
|
+
*/
|
|
2824
|
+
importAgent_5(agentId: string, file: File, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
|
|
2825
|
+
/**
|
|
2826
|
+
* Override an existing agent. Use input to override agent configuration. If some fields are not provided, they will be reset to default values. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
2827
|
+
* @summary Override Agent
|
|
2828
|
+
* @param {string} agentId ID of the agent to update
|
|
2829
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2830
|
+
* @param {*} [options] Override http request option.
|
|
2831
|
+
* @throws {RequiredError}
|
|
2832
|
+
* @memberof AgentApi
|
|
2833
|
+
*/
|
|
2834
|
+
overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
2835
|
+
/**
|
|
2836
|
+
* Override an existing agent. Use input to override agent configuration. If some fields are not provided, they will be reset to default values. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
2837
|
+
* @summary Override Agent
|
|
2838
|
+
* @param {string} agentId ID of the agent to update
|
|
2839
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2840
|
+
* @param {*} [options] Override http request option.
|
|
2841
|
+
* @throws {RequiredError}
|
|
2842
|
+
* @memberof AgentApi
|
|
2843
|
+
*/
|
|
2844
|
+
overrideAgent_6(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
2845
|
+
/**
|
|
2846
|
+
* Update an existing agent. Use input to update agent configuration. If some fields are not provided, they will not be changed. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
2847
|
+
* @summary Update Agent
|
|
2848
|
+
* @param {string} agentId ID of the agent to update
|
|
2849
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2850
|
+
* @param {*} [options] Override http request option.
|
|
2851
|
+
* @throws {RequiredError}
|
|
2852
|
+
* @memberof AgentApi
|
|
2853
|
+
*/
|
|
2854
|
+
updateAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
2855
|
+
/**
|
|
2856
|
+
* Update an existing agent. Use input to update agent configuration. If some fields are not provided, they will not be changed. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `agent` - Agent update configuration **Returns:** * `AgentResponse` - Updated agent configuration with additional processed data **Raises:** * `HTTPException`: - 400: Invalid agent ID format - 404: Agent not found - 403: Permission denied (if owner mismatch) - 500: Database error
|
|
2857
|
+
* @summary Update Agent
|
|
2858
|
+
* @param {string} agentId ID of the agent to update
|
|
2859
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2860
|
+
* @param {*} [options] Override http request option.
|
|
2861
|
+
* @throws {RequiredError}
|
|
2862
|
+
* @memberof AgentApi
|
|
2863
|
+
*/
|
|
2864
|
+
updateAgent_7(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
2865
|
+
/**
|
|
2866
|
+
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
2867
|
+
* @summary Validate Agent Create
|
|
2868
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2869
|
+
* @param {*} [options] Override http request option.
|
|
2870
|
+
* @throws {RequiredError}
|
|
2871
|
+
* @memberof AgentApi
|
|
2872
|
+
*/
|
|
2873
|
+
validateAgentCreate(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
2874
|
+
/**
|
|
2875
|
+
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
2876
|
+
* @summary Validate Agent Create
|
|
2877
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2878
|
+
* @param {*} [options] Override http request option.
|
|
2879
|
+
* @throws {RequiredError}
|
|
2880
|
+
* @memberof AgentApi
|
|
2881
|
+
*/
|
|
2882
|
+
validateAgentCreate_8(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
2883
|
+
/**
|
|
2884
|
+
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
2885
|
+
* @summary Validate Agent Update
|
|
2886
|
+
* @param {string} agentId Agent ID
|
|
2887
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2888
|
+
* @param {*} [options] Override http request option.
|
|
2889
|
+
* @throws {RequiredError}
|
|
2890
|
+
* @memberof AgentApi
|
|
2891
|
+
*/
|
|
2892
|
+
validateAgentUpdate(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
2893
|
+
/**
|
|
2894
|
+
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
2895
|
+
* @summary Validate Agent Update
|
|
2896
|
+
* @param {string} agentId Agent ID
|
|
2897
|
+
* @param {AgentUpdate} [agentUpdate]
|
|
2898
|
+
* @param {*} [options] Override http request option.
|
|
2899
|
+
* @throws {RequiredError}
|
|
2900
|
+
* @memberof AgentApi
|
|
2901
|
+
*/
|
|
2902
|
+
validateAgentUpdate_9(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
2279
2903
|
}
|
|
2280
2904
|
/**
|
|
2281
2905
|
* ChatApi - axios parameter creator
|