@crestal/nation-sdk 0.1.19 → 0.1.21

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/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Nation IntentKit API
5
5
  * API for Nation IntentKit services
6
6
  *
7
- * The version of the OpenAPI document: 0.1.19
7
+ * The version of the OpenAPI document: 0.1.21
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -97,6 +97,31 @@ export interface AgentExample {
97
97
  */
98
98
  'prompt': string;
99
99
  }
100
+ /**
101
+ * Paginated response model for agents list. Contains a list of agents, a flag indicating if more items are available, and a cursor for pagination.
102
+ * @export
103
+ * @interface AgentListResponse
104
+ */
105
+ export interface AgentListResponse {
106
+ /**
107
+ * List of agents
108
+ * @type {Array<AgentResponse>}
109
+ * @memberof AgentListResponse
110
+ */
111
+ 'data': Array<AgentResponse>;
112
+ /**
113
+ * Indicates if there are more items
114
+ * @type {boolean}
115
+ * @memberof AgentListResponse
116
+ */
117
+ 'has_more': boolean;
118
+ /**
119
+ *
120
+ * @type {string}
121
+ * @memberof AgentListResponse
122
+ */
123
+ 'next_cursor'?: string | null;
124
+ }
100
125
  /**
101
126
  * Response model for Agent API.
102
127
  * @export
@@ -333,6 +358,21 @@ export const AgentResponseWalletProviderEnum = {
333
358
 
334
359
  export type AgentResponseWalletProviderEnum = typeof AgentResponseWalletProviderEnum[keyof typeof AgentResponseWalletProviderEnum];
335
360
 
361
+ /**
362
+ * Sort options for agents list.
363
+ * @export
364
+ * @enum {string}
365
+ */
366
+
367
+ export const AgentSortOption = {
368
+ CreatedAtDesc: 'created_at desc',
369
+ CreatedAtAsc: 'created_at asc',
370
+ UpdatedAtDesc: 'updated_at desc'
371
+ } as const;
372
+
373
+ export type AgentSortOption = typeof AgentSortOption[keyof typeof AgentSortOption];
374
+
375
+
336
376
  /**
337
377
  * Response model for agent statistics.
338
378
  * @export
@@ -1232,6 +1272,12 @@ export interface CreditEvent {
1232
1272
  * @memberof CreditEvent
1233
1273
  */
1234
1274
  'agent_id'?: string | null;
1275
+ /**
1276
+ *
1277
+ * @type {string}
1278
+ * @memberof CreditEvent
1279
+ */
1280
+ 'agent_wallet_address'?: string | null;
1235
1281
  /**
1236
1282
  *
1237
1283
  * @type {string}
@@ -1487,6 +1533,12 @@ export interface CreditEventWithAgent {
1487
1533
  * @memberof CreditEventWithAgent
1488
1534
  */
1489
1535
  'agent_id'?: string | null;
1536
+ /**
1537
+ *
1538
+ * @type {string}
1539
+ * @memberof CreditEventWithAgent
1540
+ */
1541
+ 'agent_wallet_address'?: string | null;
1490
1542
  /**
1491
1543
  *
1492
1544
  * @type {string}
@@ -2235,15 +2287,13 @@ export interface ValidationErrorLocInner {
2235
2287
  export const AgentApiAxiosParamCreator = function (configuration?: Configuration) {
2236
2288
  return {
2237
2289
  /**
2238
- * Create a new agent owned by the current user. The agent will be initialized with the provided details.
2239
- * @summary Create a new agent
2240
- * @param {AgentUpdate} agentUpdate
2290
+ * 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
2291
+ * @summary Create Agent
2292
+ * @param {AgentUpdate} [agentUpdate]
2241
2293
  * @param {*} [options] Override http request option.
2242
2294
  * @throws {RequiredError}
2243
2295
  */
2244
- createAgent: async (agentUpdate: AgentUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2245
- // verify required parameter 'agentUpdate' is not null or undefined
2246
- assertParamExists('createAgent', 'agentUpdate', agentUpdate)
2296
+ createAgent: async (agentUpdate?: AgentUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2247
2297
  const localVarPath = `/agents`;
2248
2298
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2249
2299
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2275,17 +2325,55 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
2275
2325
  };
2276
2326
  },
2277
2327
  /**
2278
- * Retrieve a specific agent by its ID. Returns 404 if not found.
2279
- * @summary Get agent by ID
2280
- * @param {string} aid Agent ID
2328
+ * 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
2329
+ * @summary Export Agent
2330
+ * @param {string} agentId ID of the agent to export
2281
2331
  * @param {*} [options] Override http request option.
2282
2332
  * @throws {RequiredError}
2283
2333
  */
2284
- getAgentById: async (aid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2285
- // verify required parameter 'aid' is not null or undefined
2286
- assertParamExists('getAgentById', 'aid', aid)
2287
- const localVarPath = `/agents/{aid}`
2288
- .replace(`{${"aid"}}`, encodeURIComponent(String(aid)));
2334
+ exportAgent: async (agentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2335
+ // verify required parameter 'agentId' is not null or undefined
2336
+ assertParamExists('exportAgent', 'agentId', agentId)
2337
+ const localVarPath = `/agents/{agent_id}/export`
2338
+ .replace(`{${"agent_id"}}`, encodeURIComponent(String(agentId)));
2339
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2340
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2341
+ let baseOptions;
2342
+ if (configuration) {
2343
+ baseOptions = configuration.baseOptions;
2344
+ }
2345
+
2346
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2347
+ const localVarHeaderParameter = {} as any;
2348
+ const localVarQueryParameter = {} as any;
2349
+
2350
+ // authentication HTTPBearer required
2351
+ // http bearer authentication required
2352
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2353
+
2354
+
2355
+
2356
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2357
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2358
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2359
+
2360
+ return {
2361
+ url: toPathString(localVarUrlObj),
2362
+ options: localVarRequestOptions,
2363
+ };
2364
+ },
2365
+ /**
2366
+ * 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
2367
+ * @summary Get Agent
2368
+ * @param {string} agentId ID of the agent to retrieve
2369
+ * @param {*} [options] Override http request option.
2370
+ * @throws {RequiredError}
2371
+ */
2372
+ getAgent: async (agentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2373
+ // verify required parameter 'agentId' is not null or undefined
2374
+ assertParamExists('getAgent', 'agentId', agentId)
2375
+ const localVarPath = `/agents/{agent_id}`
2376
+ .replace(`{${"agent_id"}}`, encodeURIComponent(String(agentId)));
2289
2377
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2290
2378
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2291
2379
  let baseOptions;
@@ -2337,6 +2425,264 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
2337
2425
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2338
2426
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2339
2427
 
2428
+ return {
2429
+ url: toPathString(localVarUrlObj),
2430
+ options: localVarRequestOptions,
2431
+ };
2432
+ },
2433
+ /**
2434
+ * 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
2435
+ * @summary Get Agents
2436
+ * @param {AgentSortOption} [sort] Sort order for agents list
2437
+ * @param {string | null} [cursor] Cursor for pagination
2438
+ * @param {number} [limit] Maximum number of agents to return
2439
+ * @param {*} [options] Override http request option.
2440
+ * @throws {RequiredError}
2441
+ */
2442
+ getAgents: async (sort?: AgentSortOption, cursor?: string | null, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2443
+ const localVarPath = `/agents`;
2444
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2445
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2446
+ let baseOptions;
2447
+ if (configuration) {
2448
+ baseOptions = configuration.baseOptions;
2449
+ }
2450
+
2451
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2452
+ const localVarHeaderParameter = {} as any;
2453
+ const localVarQueryParameter = {} as any;
2454
+
2455
+ if (sort !== undefined) {
2456
+ localVarQueryParameter['sort'] = sort;
2457
+ }
2458
+
2459
+ if (cursor !== undefined) {
2460
+ localVarQueryParameter['cursor'] = cursor;
2461
+ }
2462
+
2463
+ if (limit !== undefined) {
2464
+ localVarQueryParameter['limit'] = limit;
2465
+ }
2466
+
2467
+
2468
+
2469
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2470
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2471
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2472
+
2473
+ return {
2474
+ url: toPathString(localVarUrlObj),
2475
+ options: localVarRequestOptions,
2476
+ };
2477
+ },
2478
+ /**
2479
+ * 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
2480
+ * @summary Import Agent
2481
+ * @param {string} agentId
2482
+ * @param {File} file YAML file containing agent configuration
2483
+ * @param {*} [options] Override http request option.
2484
+ * @throws {RequiredError}
2485
+ */
2486
+ importAgent: async (agentId: string, file: File, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2487
+ // verify required parameter 'agentId' is not null or undefined
2488
+ assertParamExists('importAgent', 'agentId', agentId)
2489
+ // verify required parameter 'file' is not null or undefined
2490
+ assertParamExists('importAgent', 'file', file)
2491
+ const localVarPath = `/agents/{agent_id}/import`
2492
+ .replace(`{${"agent_id"}}`, encodeURIComponent(String(agentId)));
2493
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2494
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2495
+ let baseOptions;
2496
+ if (configuration) {
2497
+ baseOptions = configuration.baseOptions;
2498
+ }
2499
+
2500
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2501
+ const localVarHeaderParameter = {} as any;
2502
+ const localVarQueryParameter = {} as any;
2503
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
2504
+
2505
+ // authentication HTTPBearer required
2506
+ // http bearer authentication required
2507
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2508
+
2509
+
2510
+ if (file !== undefined) {
2511
+ localVarFormParams.append('file', file as any);
2512
+ }
2513
+
2514
+
2515
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
2516
+
2517
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2518
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2519
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2520
+ localVarRequestOptions.data = localVarFormParams;
2521
+
2522
+ return {
2523
+ url: toPathString(localVarUrlObj),
2524
+ options: localVarRequestOptions,
2525
+ };
2526
+ },
2527
+ /**
2528
+ * 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
2529
+ * @summary Override Agent
2530
+ * @param {string} agentId ID of the agent to update
2531
+ * @param {AgentUpdate} [agentUpdate]
2532
+ * @param {*} [options] Override http request option.
2533
+ * @throws {RequiredError}
2534
+ */
2535
+ overrideAgent: async (agentId: string, agentUpdate?: AgentUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2536
+ // verify required parameter 'agentId' is not null or undefined
2537
+ assertParamExists('overrideAgent', 'agentId', agentId)
2538
+ const localVarPath = `/agents/{agent_id}`
2539
+ .replace(`{${"agent_id"}}`, encodeURIComponent(String(agentId)));
2540
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2541
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2542
+ let baseOptions;
2543
+ if (configuration) {
2544
+ baseOptions = configuration.baseOptions;
2545
+ }
2546
+
2547
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2548
+ const localVarHeaderParameter = {} as any;
2549
+ const localVarQueryParameter = {} as any;
2550
+
2551
+ // authentication HTTPBearer required
2552
+ // http bearer authentication required
2553
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2554
+
2555
+
2556
+
2557
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2558
+
2559
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2560
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2561
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2562
+ localVarRequestOptions.data = serializeDataIfNeeded(agentUpdate, localVarRequestOptions, configuration)
2563
+
2564
+ return {
2565
+ url: toPathString(localVarUrlObj),
2566
+ options: localVarRequestOptions,
2567
+ };
2568
+ },
2569
+ /**
2570
+ * 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
2571
+ * @summary Update Agent
2572
+ * @param {string} agentId ID of the agent to update
2573
+ * @param {AgentUpdate} [agentUpdate]
2574
+ * @param {*} [options] Override http request option.
2575
+ * @throws {RequiredError}
2576
+ */
2577
+ updateAgent: async (agentId: string, agentUpdate?: AgentUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2578
+ // verify required parameter 'agentId' is not null or undefined
2579
+ assertParamExists('updateAgent', 'agentId', agentId)
2580
+ const localVarPath = `/agents/{agent_id}`
2581
+ .replace(`{${"agent_id"}}`, encodeURIComponent(String(agentId)));
2582
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2583
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2584
+ let baseOptions;
2585
+ if (configuration) {
2586
+ baseOptions = configuration.baseOptions;
2587
+ }
2588
+
2589
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
2590
+ const localVarHeaderParameter = {} as any;
2591
+ const localVarQueryParameter = {} as any;
2592
+
2593
+ // authentication HTTPBearer required
2594
+ // http bearer authentication required
2595
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2596
+
2597
+
2598
+
2599
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2600
+
2601
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2602
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2603
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2604
+ localVarRequestOptions.data = serializeDataIfNeeded(agentUpdate, localVarRequestOptions, configuration)
2605
+
2606
+ return {
2607
+ url: toPathString(localVarUrlObj),
2608
+ options: localVarRequestOptions,
2609
+ };
2610
+ },
2611
+ /**
2612
+ * 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
2613
+ * @summary Validate Agent Create
2614
+ * @param {AgentUpdate} [agentUpdate]
2615
+ * @param {*} [options] Override http request option.
2616
+ * @throws {RequiredError}
2617
+ */
2618
+ validateAgentCreate: async (agentUpdate?: AgentUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2619
+ const localVarPath = `/agent/validate`;
2620
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2621
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2622
+ let baseOptions;
2623
+ if (configuration) {
2624
+ baseOptions = configuration.baseOptions;
2625
+ }
2626
+
2627
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2628
+ const localVarHeaderParameter = {} as any;
2629
+ const localVarQueryParameter = {} as any;
2630
+
2631
+ // authentication HTTPBearer required
2632
+ // http bearer authentication required
2633
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2634
+
2635
+
2636
+
2637
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2638
+
2639
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2640
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2641
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2642
+ localVarRequestOptions.data = serializeDataIfNeeded(agentUpdate, localVarRequestOptions, configuration)
2643
+
2644
+ return {
2645
+ url: toPathString(localVarUrlObj),
2646
+ options: localVarRequestOptions,
2647
+ };
2648
+ },
2649
+ /**
2650
+ * 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
2651
+ * @summary Validate Agent Update
2652
+ * @param {string} agentId Agent ID
2653
+ * @param {AgentUpdate} [agentUpdate]
2654
+ * @param {*} [options] Override http request option.
2655
+ * @throws {RequiredError}
2656
+ */
2657
+ validateAgentUpdate: async (agentId: string, agentUpdate?: AgentUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2658
+ // verify required parameter 'agentId' is not null or undefined
2659
+ assertParamExists('validateAgentUpdate', 'agentId', agentId)
2660
+ const localVarPath = `/agents/{agent_id}/validate`
2661
+ .replace(`{${"agent_id"}}`, encodeURIComponent(String(agentId)));
2662
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2663
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2664
+ let baseOptions;
2665
+ if (configuration) {
2666
+ baseOptions = configuration.baseOptions;
2667
+ }
2668
+
2669
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2670
+ const localVarHeaderParameter = {} as any;
2671
+ const localVarQueryParameter = {} as any;
2672
+
2673
+ // authentication HTTPBearer required
2674
+ // http bearer authentication required
2675
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2676
+
2677
+
2678
+
2679
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2680
+
2681
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2682
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2683
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2684
+ localVarRequestOptions.data = serializeDataIfNeeded(agentUpdate, localVarRequestOptions, configuration)
2685
+
2340
2686
  return {
2341
2687
  url: toPathString(localVarUrlObj),
2342
2688
  options: localVarRequestOptions,
@@ -2353,29 +2699,42 @@ export const AgentApiFp = function(configuration?: Configuration) {
2353
2699
  const localVarAxiosParamCreator = AgentApiAxiosParamCreator(configuration)
2354
2700
  return {
2355
2701
  /**
2356
- * Create a new agent owned by the current user. The agent will be initialized with the provided details.
2357
- * @summary Create a new agent
2358
- * @param {AgentUpdate} agentUpdate
2702
+ * 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
2703
+ * @summary Create Agent
2704
+ * @param {AgentUpdate} [agentUpdate]
2359
2705
  * @param {*} [options] Override http request option.
2360
2706
  * @throws {RequiredError}
2361
2707
  */
2362
- async createAgent(agentUpdate: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentResponse>> {
2708
+ async createAgent(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentResponse>> {
2363
2709
  const localVarAxiosArgs = await localVarAxiosParamCreator.createAgent(agentUpdate, options);
2364
2710
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2365
2711
  const localVarOperationServerBasePath = operationServerMap['AgentApi.createAgent']?.[localVarOperationServerIndex]?.url;
2366
2712
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2367
2713
  },
2368
2714
  /**
2369
- * Retrieve a specific agent by its ID. Returns 404 if not found.
2370
- * @summary Get agent by ID
2371
- * @param {string} aid Agent ID
2715
+ * 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
2716
+ * @summary Export Agent
2717
+ * @param {string} agentId ID of the agent to export
2372
2718
  * @param {*} [options] Override http request option.
2373
2719
  * @throws {RequiredError}
2374
2720
  */
2375
- async getAgentById(aid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentResponse>> {
2376
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAgentById(aid, options);
2721
+ async exportAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
2722
+ const localVarAxiosArgs = await localVarAxiosParamCreator.exportAgent(agentId, options);
2377
2723
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2378
- const localVarOperationServerBasePath = operationServerMap['AgentApi.getAgentById']?.[localVarOperationServerIndex]?.url;
2724
+ const localVarOperationServerBasePath = operationServerMap['AgentApi.exportAgent']?.[localVarOperationServerIndex]?.url;
2725
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2726
+ },
2727
+ /**
2728
+ * 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
2729
+ * @summary Get Agent
2730
+ * @param {string} agentId ID of the agent to retrieve
2731
+ * @param {*} [options] Override http request option.
2732
+ * @throws {RequiredError}
2733
+ */
2734
+ async getAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
2735
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAgent(agentId, options);
2736
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2737
+ const localVarOperationServerBasePath = operationServerMap['AgentApi.getAgent']?.[localVarOperationServerIndex]?.url;
2379
2738
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2380
2739
  },
2381
2740
  /**
@@ -2391,6 +2750,90 @@ export const AgentApiFp = function(configuration?: Configuration) {
2391
2750
  const localVarOperationServerBasePath = operationServerMap['AgentApi.getAgentStatistics']?.[localVarOperationServerIndex]?.url;
2392
2751
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2393
2752
  },
2753
+ /**
2754
+ * 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
2755
+ * @summary Get Agents
2756
+ * @param {AgentSortOption} [sort] Sort order for agents list
2757
+ * @param {string | null} [cursor] Cursor for pagination
2758
+ * @param {number} [limit] Maximum number of agents to return
2759
+ * @param {*} [options] Override http request option.
2760
+ * @throws {RequiredError}
2761
+ */
2762
+ async getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentListResponse>> {
2763
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAgents(sort, cursor, limit, options);
2764
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2765
+ const localVarOperationServerBasePath = operationServerMap['AgentApi.getAgents']?.[localVarOperationServerIndex]?.url;
2766
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2767
+ },
2768
+ /**
2769
+ * 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
2770
+ * @summary Import Agent
2771
+ * @param {string} agentId
2772
+ * @param {File} file YAML file containing agent configuration
2773
+ * @param {*} [options] Override http request option.
2774
+ * @throws {RequiredError}
2775
+ */
2776
+ async importAgent(agentId: string, file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
2777
+ const localVarAxiosArgs = await localVarAxiosParamCreator.importAgent(agentId, file, options);
2778
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2779
+ const localVarOperationServerBasePath = operationServerMap['AgentApi.importAgent']?.[localVarOperationServerIndex]?.url;
2780
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2781
+ },
2782
+ /**
2783
+ * 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
2784
+ * @summary Override Agent
2785
+ * @param {string} agentId ID of the agent to update
2786
+ * @param {AgentUpdate} [agentUpdate]
2787
+ * @param {*} [options] Override http request option.
2788
+ * @throws {RequiredError}
2789
+ */
2790
+ async overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
2791
+ const localVarAxiosArgs = await localVarAxiosParamCreator.overrideAgent(agentId, agentUpdate, options);
2792
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2793
+ const localVarOperationServerBasePath = operationServerMap['AgentApi.overrideAgent']?.[localVarOperationServerIndex]?.url;
2794
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2795
+ },
2796
+ /**
2797
+ * 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
2798
+ * @summary Update Agent
2799
+ * @param {string} agentId ID of the agent to update
2800
+ * @param {AgentUpdate} [agentUpdate]
2801
+ * @param {*} [options] Override http request option.
2802
+ * @throws {RequiredError}
2803
+ */
2804
+ async updateAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
2805
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateAgent(agentId, agentUpdate, options);
2806
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2807
+ const localVarOperationServerBasePath = operationServerMap['AgentApi.updateAgent']?.[localVarOperationServerIndex]?.url;
2808
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2809
+ },
2810
+ /**
2811
+ * 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
2812
+ * @summary Validate Agent Create
2813
+ * @param {AgentUpdate} [agentUpdate]
2814
+ * @param {*} [options] Override http request option.
2815
+ * @throws {RequiredError}
2816
+ */
2817
+ async validateAgentCreate(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2818
+ const localVarAxiosArgs = await localVarAxiosParamCreator.validateAgentCreate(agentUpdate, options);
2819
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2820
+ const localVarOperationServerBasePath = operationServerMap['AgentApi.validateAgentCreate']?.[localVarOperationServerIndex]?.url;
2821
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2822
+ },
2823
+ /**
2824
+ * 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
2825
+ * @summary Validate Agent Update
2826
+ * @param {string} agentId Agent ID
2827
+ * @param {AgentUpdate} [agentUpdate]
2828
+ * @param {*} [options] Override http request option.
2829
+ * @throws {RequiredError}
2830
+ */
2831
+ async validateAgentUpdate(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2832
+ const localVarAxiosArgs = await localVarAxiosParamCreator.validateAgentUpdate(agentId, agentUpdate, options);
2833
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2834
+ const localVarOperationServerBasePath = operationServerMap['AgentApi.validateAgentUpdate']?.[localVarOperationServerIndex]?.url;
2835
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2836
+ },
2394
2837
  }
2395
2838
  };
2396
2839
 
@@ -2402,24 +2845,34 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
2402
2845
  const localVarFp = AgentApiFp(configuration)
2403
2846
  return {
2404
2847
  /**
2405
- * Create a new agent owned by the current user. The agent will be initialized with the provided details.
2406
- * @summary Create a new agent
2407
- * @param {AgentUpdate} agentUpdate
2848
+ * 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
2849
+ * @summary Create Agent
2850
+ * @param {AgentUpdate} [agentUpdate]
2408
2851
  * @param {*} [options] Override http request option.
2409
2852
  * @throws {RequiredError}
2410
2853
  */
2411
- createAgent(agentUpdate: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<AgentResponse> {
2854
+ createAgent(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<AgentResponse> {
2412
2855
  return localVarFp.createAgent(agentUpdate, options).then((request) => request(axios, basePath));
2413
2856
  },
2414
2857
  /**
2415
- * Retrieve a specific agent by its ID. Returns 404 if not found.
2416
- * @summary Get agent by ID
2417
- * @param {string} aid Agent ID
2858
+ * 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
2859
+ * @summary Export Agent
2860
+ * @param {string} agentId ID of the agent to export
2418
2861
  * @param {*} [options] Override http request option.
2419
2862
  * @throws {RequiredError}
2420
2863
  */
2421
- getAgentById(aid: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentResponse> {
2422
- return localVarFp.getAgentById(aid, options).then((request) => request(axios, basePath));
2864
+ exportAgent(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<any> {
2865
+ return localVarFp.exportAgent(agentId, options).then((request) => request(axios, basePath));
2866
+ },
2867
+ /**
2868
+ * 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
2869
+ * @summary Get Agent
2870
+ * @param {string} agentId ID of the agent to retrieve
2871
+ * @param {*} [options] Override http request option.
2872
+ * @throws {RequiredError}
2873
+ */
2874
+ getAgent(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<any> {
2875
+ return localVarFp.getAgent(agentId, options).then((request) => request(axios, basePath));
2423
2876
  },
2424
2877
  /**
2425
2878
  * Get statistics for an agent account. This endpoint is not in readonly router, because it may create a new account.
@@ -2431,6 +2884,72 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
2431
2884
  getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentStatisticsResponse> {
2432
2885
  return localVarFp.getAgentStatistics(aid, options).then((request) => request(axios, basePath));
2433
2886
  },
2887
+ /**
2888
+ * 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
2889
+ * @summary Get Agents
2890
+ * @param {AgentSortOption} [sort] Sort order for agents list
2891
+ * @param {string | null} [cursor] Cursor for pagination
2892
+ * @param {number} [limit] Maximum number of agents to return
2893
+ * @param {*} [options] Override http request option.
2894
+ * @throws {RequiredError}
2895
+ */
2896
+ getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse> {
2897
+ return localVarFp.getAgents(sort, cursor, limit, options).then((request) => request(axios, basePath));
2898
+ },
2899
+ /**
2900
+ * 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
2901
+ * @summary Import Agent
2902
+ * @param {string} agentId
2903
+ * @param {File} file YAML file containing agent configuration
2904
+ * @param {*} [options] Override http request option.
2905
+ * @throws {RequiredError}
2906
+ */
2907
+ importAgent(agentId: string, file: File, options?: RawAxiosRequestConfig): AxiosPromise<string> {
2908
+ return localVarFp.importAgent(agentId, file, options).then((request) => request(axios, basePath));
2909
+ },
2910
+ /**
2911
+ * 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
2912
+ * @summary Override Agent
2913
+ * @param {string} agentId ID of the agent to update
2914
+ * @param {AgentUpdate} [agentUpdate]
2915
+ * @param {*} [options] Override http request option.
2916
+ * @throws {RequiredError}
2917
+ */
2918
+ overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<any> {
2919
+ return localVarFp.overrideAgent(agentId, agentUpdate, options).then((request) => request(axios, basePath));
2920
+ },
2921
+ /**
2922
+ * 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
2923
+ * @summary Update Agent
2924
+ * @param {string} agentId ID of the agent to update
2925
+ * @param {AgentUpdate} [agentUpdate]
2926
+ * @param {*} [options] Override http request option.
2927
+ * @throws {RequiredError}
2928
+ */
2929
+ updateAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<any> {
2930
+ return localVarFp.updateAgent(agentId, agentUpdate, options).then((request) => request(axios, basePath));
2931
+ },
2932
+ /**
2933
+ * 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
2934
+ * @summary Validate Agent Create
2935
+ * @param {AgentUpdate} [agentUpdate]
2936
+ * @param {*} [options] Override http request option.
2937
+ * @throws {RequiredError}
2938
+ */
2939
+ validateAgentCreate(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<void> {
2940
+ return localVarFp.validateAgentCreate(agentUpdate, options).then((request) => request(axios, basePath));
2941
+ },
2942
+ /**
2943
+ * 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
2944
+ * @summary Validate Agent Update
2945
+ * @param {string} agentId Agent ID
2946
+ * @param {AgentUpdate} [agentUpdate]
2947
+ * @param {*} [options] Override http request option.
2948
+ * @throws {RequiredError}
2949
+ */
2950
+ validateAgentUpdate(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<void> {
2951
+ return localVarFp.validateAgentUpdate(agentId, agentUpdate, options).then((request) => request(axios, basePath));
2952
+ },
2434
2953
  };
2435
2954
  };
2436
2955
 
@@ -2442,27 +2961,39 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
2442
2961
  */
2443
2962
  export class AgentApi extends BaseAPI {
2444
2963
  /**
2445
- * Create a new agent owned by the current user. The agent will be initialized with the provided details.
2446
- * @summary Create a new agent
2447
- * @param {AgentUpdate} agentUpdate
2964
+ * 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
2965
+ * @summary Create Agent
2966
+ * @param {AgentUpdate} [agentUpdate]
2448
2967
  * @param {*} [options] Override http request option.
2449
2968
  * @throws {RequiredError}
2450
2969
  * @memberof AgentApi
2451
2970
  */
2452
- public createAgent(agentUpdate: AgentUpdate, options?: RawAxiosRequestConfig) {
2971
+ public createAgent(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
2453
2972
  return AgentApiFp(this.configuration).createAgent(agentUpdate, options).then((request) => request(this.axios, this.basePath));
2454
2973
  }
2455
2974
 
2456
2975
  /**
2457
- * Retrieve a specific agent by its ID. Returns 404 if not found.
2458
- * @summary Get agent by ID
2459
- * @param {string} aid Agent ID
2976
+ * 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
2977
+ * @summary Export Agent
2978
+ * @param {string} agentId ID of the agent to export
2979
+ * @param {*} [options] Override http request option.
2980
+ * @throws {RequiredError}
2981
+ * @memberof AgentApi
2982
+ */
2983
+ public exportAgent(agentId: string, options?: RawAxiosRequestConfig) {
2984
+ return AgentApiFp(this.configuration).exportAgent(agentId, options).then((request) => request(this.axios, this.basePath));
2985
+ }
2986
+
2987
+ /**
2988
+ * 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
2989
+ * @summary Get Agent
2990
+ * @param {string} agentId ID of the agent to retrieve
2460
2991
  * @param {*} [options] Override http request option.
2461
2992
  * @throws {RequiredError}
2462
2993
  * @memberof AgentApi
2463
2994
  */
2464
- public getAgentById(aid: string, options?: RawAxiosRequestConfig) {
2465
- return AgentApiFp(this.configuration).getAgentById(aid, options).then((request) => request(this.axios, this.basePath));
2995
+ public getAgent(agentId: string, options?: RawAxiosRequestConfig) {
2996
+ return AgentApiFp(this.configuration).getAgent(agentId, options).then((request) => request(this.axios, this.basePath));
2466
2997
  }
2467
2998
 
2468
2999
  /**
@@ -2476,6 +3007,84 @@ export class AgentApi extends BaseAPI {
2476
3007
  public getAgentStatistics(aid: string, options?: RawAxiosRequestConfig) {
2477
3008
  return AgentApiFp(this.configuration).getAgentStatistics(aid, options).then((request) => request(this.axios, this.basePath));
2478
3009
  }
3010
+
3011
+ /**
3012
+ * 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
3013
+ * @summary Get Agents
3014
+ * @param {AgentSortOption} [sort] Sort order for agents list
3015
+ * @param {string | null} [cursor] Cursor for pagination
3016
+ * @param {number} [limit] Maximum number of agents to return
3017
+ * @param {*} [options] Override http request option.
3018
+ * @throws {RequiredError}
3019
+ * @memberof AgentApi
3020
+ */
3021
+ public getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
3022
+ return AgentApiFp(this.configuration).getAgents(sort, cursor, limit, options).then((request) => request(this.axios, this.basePath));
3023
+ }
3024
+
3025
+ /**
3026
+ * 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
3027
+ * @summary Import Agent
3028
+ * @param {string} agentId
3029
+ * @param {File} file YAML file containing agent configuration
3030
+ * @param {*} [options] Override http request option.
3031
+ * @throws {RequiredError}
3032
+ * @memberof AgentApi
3033
+ */
3034
+ public importAgent(agentId: string, file: File, options?: RawAxiosRequestConfig) {
3035
+ return AgentApiFp(this.configuration).importAgent(agentId, file, options).then((request) => request(this.axios, this.basePath));
3036
+ }
3037
+
3038
+ /**
3039
+ * 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
3040
+ * @summary Override Agent
3041
+ * @param {string} agentId ID of the agent to update
3042
+ * @param {AgentUpdate} [agentUpdate]
3043
+ * @param {*} [options] Override http request option.
3044
+ * @throws {RequiredError}
3045
+ * @memberof AgentApi
3046
+ */
3047
+ public overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
3048
+ return AgentApiFp(this.configuration).overrideAgent(agentId, agentUpdate, options).then((request) => request(this.axios, this.basePath));
3049
+ }
3050
+
3051
+ /**
3052
+ * 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
3053
+ * @summary Update Agent
3054
+ * @param {string} agentId ID of the agent to update
3055
+ * @param {AgentUpdate} [agentUpdate]
3056
+ * @param {*} [options] Override http request option.
3057
+ * @throws {RequiredError}
3058
+ * @memberof AgentApi
3059
+ */
3060
+ public updateAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
3061
+ return AgentApiFp(this.configuration).updateAgent(agentId, agentUpdate, options).then((request) => request(this.axios, this.basePath));
3062
+ }
3063
+
3064
+ /**
3065
+ * 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
3066
+ * @summary Validate Agent Create
3067
+ * @param {AgentUpdate} [agentUpdate]
3068
+ * @param {*} [options] Override http request option.
3069
+ * @throws {RequiredError}
3070
+ * @memberof AgentApi
3071
+ */
3072
+ public validateAgentCreate(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
3073
+ return AgentApiFp(this.configuration).validateAgentCreate(agentUpdate, options).then((request) => request(this.axios, this.basePath));
3074
+ }
3075
+
3076
+ /**
3077
+ * 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
3078
+ * @summary Validate Agent Update
3079
+ * @param {string} agentId Agent ID
3080
+ * @param {AgentUpdate} [agentUpdate]
3081
+ * @param {*} [options] Override http request option.
3082
+ * @throws {RequiredError}
3083
+ * @memberof AgentApi
3084
+ */
3085
+ public validateAgentUpdate(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
3086
+ return AgentApiFp(this.configuration).validateAgentUpdate(agentId, agentUpdate, options).then((request) => request(this.axios, this.basePath));
3087
+ }
2479
3088
  }
2480
3089
 
2481
3090