@crestal/nation-sdk 0.1.30 → 0.1.32

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.30
7
+ * The version of the OpenAPI document: 0.1.32
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2725,7 +2725,7 @@ export interface ValidationErrorLocInner {
2725
2725
  export const AgentApiAxiosParamCreator = function (configuration?: Configuration) {
2726
2726
  return {
2727
2727
  /**
2728
- * 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
2728
+ * 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 - 422: Invalid agent configuration from JSON schema validation - 500: Database error
2729
2729
  * @summary Create Agent
2730
2730
  * @param {AgentUpdate} [agentUpdate]
2731
2731
  * @param {*} [options] Override http request option.
@@ -2904,6 +2904,44 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
2904
2904
 
2905
2905
 
2906
2906
 
2907
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2908
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2909
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2910
+
2911
+ return {
2912
+ url: toPathString(localVarUrlObj),
2913
+ options: localVarRequestOptions,
2914
+ };
2915
+ },
2916
+ /**
2917
+ * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
2918
+ * @summary Skill History
2919
+ * @param {string} aid Agent ID
2920
+ * @param {*} [options] Override http request option.
2921
+ * @throws {RequiredError}
2922
+ */
2923
+ getSkillHistory: async (aid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2924
+ // verify required parameter 'aid' is not null or undefined
2925
+ assertParamExists('getSkillHistory', 'aid', aid)
2926
+ const localVarPath = `/agents/{aid}/skill/history`
2927
+ .replace(`{${"aid"}}`, encodeURIComponent(String(aid)));
2928
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2929
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2930
+ let baseOptions;
2931
+ if (configuration) {
2932
+ baseOptions = configuration.baseOptions;
2933
+ }
2934
+
2935
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2936
+ const localVarHeaderParameter = {} as any;
2937
+ const localVarQueryParameter = {} as any;
2938
+
2939
+ // authentication HTTPBearer required
2940
+ // http bearer authentication required
2941
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2942
+
2943
+
2944
+
2907
2945
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2908
2946
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2909
2947
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -2963,7 +3001,7 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
2963
3001
  };
2964
3002
  },
2965
3003
  /**
2966
- * 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
3004
+ * 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) - 422: Invalid agent configuration from JSON schema validation - 500: Database error
2967
3005
  * @summary Override Agent
2968
3006
  * @param {string} agentId ID of the agent to update
2969
3007
  * @param {AgentUpdate} [agentUpdate]
@@ -3047,7 +3085,7 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
3047
3085
  };
3048
3086
  },
3049
3087
  /**
3050
- * 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
3088
+ * 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 or JSON schema validation - 500: Server error
3051
3089
  * @summary Validate Agent Create
3052
3090
  * @param {AgentUpdate} [agentUpdate]
3053
3091
  * @param {*} [options] Override http request option.
@@ -3137,7 +3175,7 @@ export const AgentApiFp = function(configuration?: Configuration) {
3137
3175
  const localVarAxiosParamCreator = AgentApiAxiosParamCreator(configuration)
3138
3176
  return {
3139
3177
  /**
3140
- * 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
3178
+ * 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 - 422: Invalid agent configuration from JSON schema validation - 500: Database error
3141
3179
  * @summary Create Agent
3142
3180
  * @param {AgentUpdate} [agentUpdate]
3143
3181
  * @param {*} [options] Override http request option.
@@ -3203,6 +3241,19 @@ export const AgentApiFp = function(configuration?: Configuration) {
3203
3241
  const localVarOperationServerBasePath = operationServerMap['AgentApi.getAgents']?.[localVarOperationServerIndex]?.url;
3204
3242
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3205
3243
  },
3244
+ /**
3245
+ * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
3246
+ * @summary Skill History
3247
+ * @param {string} aid Agent ID
3248
+ * @param {*} [options] Override http request option.
3249
+ * @throws {RequiredError}
3250
+ */
3251
+ async getSkillHistory(aid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ChatMessageSkillCall>>> {
3252
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSkillHistory(aid, options);
3253
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3254
+ const localVarOperationServerBasePath = operationServerMap['AgentApi.getSkillHistory']?.[localVarOperationServerIndex]?.url;
3255
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3256
+ },
3206
3257
  /**
3207
3258
  * 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
3208
3259
  * @summary Import Agent
@@ -3218,7 +3269,7 @@ export const AgentApiFp = function(configuration?: Configuration) {
3218
3269
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3219
3270
  },
3220
3271
  /**
3221
- * 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
3272
+ * 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) - 422: Invalid agent configuration from JSON schema validation - 500: Database error
3222
3273
  * @summary Override Agent
3223
3274
  * @param {string} agentId ID of the agent to update
3224
3275
  * @param {AgentUpdate} [agentUpdate]
@@ -3246,7 +3297,7 @@ export const AgentApiFp = function(configuration?: Configuration) {
3246
3297
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3247
3298
  },
3248
3299
  /**
3249
- * 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
3300
+ * 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 or JSON schema validation - 500: Server error
3250
3301
  * @summary Validate Agent Create
3251
3302
  * @param {AgentUpdate} [agentUpdate]
3252
3303
  * @param {*} [options] Override http request option.
@@ -3283,7 +3334,7 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
3283
3334
  const localVarFp = AgentApiFp(configuration)
3284
3335
  return {
3285
3336
  /**
3286
- * 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
3337
+ * 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 - 422: Invalid agent configuration from JSON schema validation - 500: Database error
3287
3338
  * @summary Create Agent
3288
3339
  * @param {AgentUpdate} [agentUpdate]
3289
3340
  * @param {*} [options] Override http request option.
@@ -3334,6 +3385,16 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
3334
3385
  getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse> {
3335
3386
  return localVarFp.getAgents(sort, cursor, limit, options).then((request) => request(axios, basePath));
3336
3387
  },
3388
+ /**
3389
+ * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
3390
+ * @summary Skill History
3391
+ * @param {string} aid Agent ID
3392
+ * @param {*} [options] Override http request option.
3393
+ * @throws {RequiredError}
3394
+ */
3395
+ getSkillHistory(aid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ChatMessageSkillCall>> {
3396
+ return localVarFp.getSkillHistory(aid, options).then((request) => request(axios, basePath));
3397
+ },
3337
3398
  /**
3338
3399
  * 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
3339
3400
  * @summary Import Agent
@@ -3346,7 +3407,7 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
3346
3407
  return localVarFp.importAgent(agentId, file, options).then((request) => request(axios, basePath));
3347
3408
  },
3348
3409
  /**
3349
- * 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
3410
+ * 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) - 422: Invalid agent configuration from JSON schema validation - 500: Database error
3350
3411
  * @summary Override Agent
3351
3412
  * @param {string} agentId ID of the agent to update
3352
3413
  * @param {AgentUpdate} [agentUpdate]
@@ -3368,7 +3429,7 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
3368
3429
  return localVarFp.updateAgent(agentId, agentUpdate, options).then((request) => request(axios, basePath));
3369
3430
  },
3370
3431
  /**
3371
- * 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
3432
+ * 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 or JSON schema validation - 500: Server error
3372
3433
  * @summary Validate Agent Create
3373
3434
  * @param {AgentUpdate} [agentUpdate]
3374
3435
  * @param {*} [options] Override http request option.
@@ -3399,7 +3460,7 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
3399
3460
  */
3400
3461
  export class AgentApi extends BaseAPI {
3401
3462
  /**
3402
- * 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
3463
+ * 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 - 422: Invalid agent configuration from JSON schema validation - 500: Database error
3403
3464
  * @summary Create Agent
3404
3465
  * @param {AgentUpdate} [agentUpdate]
3405
3466
  * @param {*} [options] Override http request option.
@@ -3460,6 +3521,18 @@ export class AgentApi extends BaseAPI {
3460
3521
  return AgentApiFp(this.configuration).getAgents(sort, cursor, limit, options).then((request) => request(this.axios, this.basePath));
3461
3522
  }
3462
3523
 
3524
+ /**
3525
+ * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
3526
+ * @summary Skill History
3527
+ * @param {string} aid Agent ID
3528
+ * @param {*} [options] Override http request option.
3529
+ * @throws {RequiredError}
3530
+ * @memberof AgentApi
3531
+ */
3532
+ public getSkillHistory(aid: string, options?: RawAxiosRequestConfig) {
3533
+ return AgentApiFp(this.configuration).getSkillHistory(aid, options).then((request) => request(this.axios, this.basePath));
3534
+ }
3535
+
3463
3536
  /**
3464
3537
  * 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
3465
3538
  * @summary Import Agent
@@ -3474,7 +3547,7 @@ export class AgentApi extends BaseAPI {
3474
3547
  }
3475
3548
 
3476
3549
  /**
3477
- * 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
3550
+ * 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) - 422: Invalid agent configuration from JSON schema validation - 500: Database error
3478
3551
  * @summary Override Agent
3479
3552
  * @param {string} agentId ID of the agent to update
3480
3553
  * @param {AgentUpdate} [agentUpdate]
@@ -3500,7 +3573,7 @@ export class AgentApi extends BaseAPI {
3500
3573
  }
3501
3574
 
3502
3575
  /**
3503
- * 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
3576
+ * 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 or JSON schema validation - 500: Server error
3504
3577
  * @summary Validate Agent Create
3505
3578
  * @param {AgentUpdate} [agentUpdate]
3506
3579
  * @param {*} [options] Override http request option.
@@ -3684,6 +3757,44 @@ export const ChatApiAxiosParamCreator = function (configuration?: Configuration)
3684
3757
 
3685
3758
 
3686
3759
 
3760
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3761
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3762
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3763
+
3764
+ return {
3765
+ url: toPathString(localVarUrlObj),
3766
+ options: localVarRequestOptions,
3767
+ };
3768
+ },
3769
+ /**
3770
+ * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
3771
+ * @summary Skill History
3772
+ * @param {string} aid Agent ID
3773
+ * @param {*} [options] Override http request option.
3774
+ * @throws {RequiredError}
3775
+ */
3776
+ getSkillHistory: async (aid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3777
+ // verify required parameter 'aid' is not null or undefined
3778
+ assertParamExists('getSkillHistory', 'aid', aid)
3779
+ const localVarPath = `/agents/{aid}/skill/history`
3780
+ .replace(`{${"aid"}}`, encodeURIComponent(String(aid)));
3781
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3782
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3783
+ let baseOptions;
3784
+ if (configuration) {
3785
+ baseOptions = configuration.baseOptions;
3786
+ }
3787
+
3788
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3789
+ const localVarHeaderParameter = {} as any;
3790
+ const localVarQueryParameter = {} as any;
3791
+
3792
+ // authentication HTTPBearer required
3793
+ // http bearer authentication required
3794
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3795
+
3796
+
3797
+
3687
3798
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3688
3799
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3689
3800
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -3826,7 +3937,7 @@ export const ChatApiAxiosParamCreator = function (configuration?: Configuration)
3826
3937
  };
3827
3938
  },
3828
3939
  /**
3829
- * Send a new message to a specific chat thread. Supports streaming responses if requested.
3940
+ * Send a new message to a specific chat thread. The response is a list of messages generated by the agent.The response not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be HTTP2 streaming response.
3830
3941
  * @summary Send a message to a chat thread
3831
3942
  * @param {string} aid Agent ID
3832
3943
  * @param {string} chatId Chat ID
@@ -3985,6 +4096,19 @@ export const ChatApiFp = function(configuration?: Configuration) {
3985
4096
  const localVarOperationServerBasePath = operationServerMap['ChatApi.getMessageById']?.[localVarOperationServerIndex]?.url;
3986
4097
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3987
4098
  },
4099
+ /**
4100
+ * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
4101
+ * @summary Skill History
4102
+ * @param {string} aid Agent ID
4103
+ * @param {*} [options] Override http request option.
4104
+ * @throws {RequiredError}
4105
+ */
4106
+ async getSkillHistory(aid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ChatMessageSkillCall>>> {
4107
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSkillHistory(aid, options);
4108
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4109
+ const localVarOperationServerBasePath = operationServerMap['ChatApi.getSkillHistory']?.[localVarOperationServerIndex]?.url;
4110
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4111
+ },
3988
4112
  /**
3989
4113
  * Retrieve all chat threads associated with a specific agent for the current user.
3990
4114
  * @summary List chat threads for an agent
@@ -4029,7 +4153,7 @@ export const ChatApiFp = function(configuration?: Configuration) {
4029
4153
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4030
4154
  },
4031
4155
  /**
4032
- * Send a new message to a specific chat thread. Supports streaming responses if requested.
4156
+ * Send a new message to a specific chat thread. The response is a list of messages generated by the agent.The response not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be HTTP2 streaming response.
4033
4157
  * @summary Send a message to a chat thread
4034
4158
  * @param {string} aid Agent ID
4035
4159
  * @param {string} chatId Chat ID
@@ -4110,6 +4234,16 @@ export const ChatApiFactory = function (configuration?: Configuration, basePath?
4110
4234
  getMessageById(messageId: string, options?: RawAxiosRequestConfig): AxiosPromise<ChatMessage> {
4111
4235
  return localVarFp.getMessageById(messageId, options).then((request) => request(axios, basePath));
4112
4236
  },
4237
+ /**
4238
+ * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
4239
+ * @summary Skill History
4240
+ * @param {string} aid Agent ID
4241
+ * @param {*} [options] Override http request option.
4242
+ * @throws {RequiredError}
4243
+ */
4244
+ getSkillHistory(aid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ChatMessageSkillCall>> {
4245
+ return localVarFp.getSkillHistory(aid, options).then((request) => request(axios, basePath));
4246
+ },
4113
4247
  /**
4114
4248
  * Retrieve all chat threads associated with a specific agent for the current user.
4115
4249
  * @summary List chat threads for an agent
@@ -4145,7 +4279,7 @@ export const ChatApiFactory = function (configuration?: Configuration, basePath?
4145
4279
  return localVarFp.retryMessageInChat(aid, chatId, options).then((request) => request(axios, basePath));
4146
4280
  },
4147
4281
  /**
4148
- * Send a new message to a specific chat thread. Supports streaming responses if requested.
4282
+ * Send a new message to a specific chat thread. The response is a list of messages generated by the agent.The response not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be HTTP2 streaming response.
4149
4283
  * @summary Send a message to a chat thread
4150
4284
  * @param {string} aid Agent ID
4151
4285
  * @param {string} chatId Chat ID
@@ -4228,6 +4362,18 @@ export class ChatApi extends BaseAPI {
4228
4362
  return ChatApiFp(this.configuration).getMessageById(messageId, options).then((request) => request(this.axios, this.basePath));
4229
4363
  }
4230
4364
 
4365
+ /**
4366
+ * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
4367
+ * @summary Skill History
4368
+ * @param {string} aid Agent ID
4369
+ * @param {*} [options] Override http request option.
4370
+ * @throws {RequiredError}
4371
+ * @memberof ChatApi
4372
+ */
4373
+ public getSkillHistory(aid: string, options?: RawAxiosRequestConfig) {
4374
+ return ChatApiFp(this.configuration).getSkillHistory(aid, options).then((request) => request(this.axios, this.basePath));
4375
+ }
4376
+
4231
4377
  /**
4232
4378
  * Retrieve all chat threads associated with a specific agent for the current user.
4233
4379
  * @summary List chat threads for an agent
@@ -4269,7 +4415,7 @@ export class ChatApi extends BaseAPI {
4269
4415
  }
4270
4416
 
4271
4417
  /**
4272
- * Send a new message to a specific chat thread. Supports streaming responses if requested.
4418
+ * Send a new message to a specific chat thread. The response is a list of messages generated by the agent.The response not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be HTTP2 streaming response.
4273
4419
  * @summary Send a message to a chat thread
4274
4420
  * @param {string} aid Agent ID
4275
4421
  * @param {string} chatId Chat ID
@@ -4775,9 +4921,9 @@ export const GeneratorApiAxiosParamCreator = function (configuration?: Configura
4775
4921
  * @param {*} [options] Override http request option.
4776
4922
  * @throws {RequiredError}
4777
4923
  */
4778
- generateAgentGeneratorAgentGeneratePost: async (agentGenerateRequest: AgentGenerateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4924
+ generateAgent: async (agentGenerateRequest: AgentGenerateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4779
4925
  // verify required parameter 'agentGenerateRequest' is not null or undefined
4780
- assertParamExists('generateAgentGeneratorAgentGeneratePost', 'agentGenerateRequest', agentGenerateRequest)
4926
+ assertParamExists('generateAgent', 'agentGenerateRequest', agentGenerateRequest)
4781
4927
  const localVarPath = `/generator/agent/generate`;
4782
4928
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4783
4929
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -4815,9 +4961,9 @@ export const GeneratorApiAxiosParamCreator = function (configuration?: Configura
4815
4961
  * @param {*} [options] Override http request option.
4816
4962
  * @throws {RequiredError}
4817
4963
  */
4818
- getGenerationDetailGeneratorAgentGenerationsProjectIdGet: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4964
+ getGenerationHistory: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4819
4965
  // verify required parameter 'projectId' is not null or undefined
4820
- assertParamExists('getGenerationDetailGeneratorAgentGenerationsProjectIdGet', 'projectId', projectId)
4966
+ assertParamExists('getGenerationHistory', 'projectId', projectId)
4821
4967
  const localVarPath = `/generator/agent/generations/{project_id}`
4822
4968
  .replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)));
4823
4969
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -4853,7 +4999,7 @@ export const GeneratorApiAxiosParamCreator = function (configuration?: Configura
4853
4999
  * @param {*} [options] Override http request option.
4854
5000
  * @throws {RequiredError}
4855
5001
  */
4856
- getGenerationsGeneratorAgentGenerationsGet: async (limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5002
+ getGenerations: async (limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4857
5003
  const localVarPath = `/generator/agent/generations`;
4858
5004
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4859
5005
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -4902,10 +5048,10 @@ export const GeneratorApiFp = function(configuration?: Configuration) {
4902
5048
  * @param {*} [options] Override http request option.
4903
5049
  * @throws {RequiredError}
4904
5050
  */
4905
- async generateAgentGeneratorAgentGeneratePost(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentGenerateResponse>> {
4906
- const localVarAxiosArgs = await localVarAxiosParamCreator.generateAgentGeneratorAgentGeneratePost(agentGenerateRequest, options);
5051
+ async generateAgent(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentGenerateResponse>> {
5052
+ const localVarAxiosArgs = await localVarAxiosParamCreator.generateAgent(agentGenerateRequest, options);
4907
5053
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4908
- const localVarOperationServerBasePath = operationServerMap['GeneratorApi.generateAgentGeneratorAgentGeneratePost']?.[localVarOperationServerIndex]?.url;
5054
+ const localVarOperationServerBasePath = operationServerMap['GeneratorApi.generateAgent']?.[localVarOperationServerIndex]?.url;
4909
5055
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4910
5056
  },
4911
5057
  /**
@@ -4915,10 +5061,10 @@ export const GeneratorApiFp = function(configuration?: Configuration) {
4915
5061
  * @param {*} [options] Override http request option.
4916
5062
  * @throws {RequiredError}
4917
5063
  */
4918
- async getGenerationDetailGeneratorAgentGenerationsProjectIdGet(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenerationDetailResponse>> {
4919
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGenerationDetailGeneratorAgentGenerationsProjectIdGet(projectId, options);
5064
+ async getGenerationHistory(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenerationDetailResponse>> {
5065
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGenerationHistory(projectId, options);
4920
5066
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4921
- const localVarOperationServerBasePath = operationServerMap['GeneratorApi.getGenerationDetailGeneratorAgentGenerationsProjectIdGet']?.[localVarOperationServerIndex]?.url;
5067
+ const localVarOperationServerBasePath = operationServerMap['GeneratorApi.getGenerationHistory']?.[localVarOperationServerIndex]?.url;
4922
5068
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4923
5069
  },
4924
5070
  /**
@@ -4928,10 +5074,10 @@ export const GeneratorApiFp = function(configuration?: Configuration) {
4928
5074
  * @param {*} [options] Override http request option.
4929
5075
  * @throws {RequiredError}
4930
5076
  */
4931
- async getGenerationsGeneratorAgentGenerationsGet(limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenerationsListResponse>> {
4932
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGenerationsGeneratorAgentGenerationsGet(limit, options);
5077
+ async getGenerations(limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenerationsListResponse>> {
5078
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGenerations(limit, options);
4933
5079
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4934
- const localVarOperationServerBasePath = operationServerMap['GeneratorApi.getGenerationsGeneratorAgentGenerationsGet']?.[localVarOperationServerIndex]?.url;
5080
+ const localVarOperationServerBasePath = operationServerMap['GeneratorApi.getGenerations']?.[localVarOperationServerIndex]?.url;
4935
5081
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4936
5082
  },
4937
5083
  }
@@ -4951,8 +5097,8 @@ export const GeneratorApiFactory = function (configuration?: Configuration, base
4951
5097
  * @param {*} [options] Override http request option.
4952
5098
  * @throws {RequiredError}
4953
5099
  */
4954
- generateAgentGeneratorAgentGeneratePost(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig): AxiosPromise<AgentGenerateResponse> {
4955
- return localVarFp.generateAgentGeneratorAgentGeneratePost(agentGenerateRequest, options).then((request) => request(axios, basePath));
5100
+ generateAgent(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig): AxiosPromise<AgentGenerateResponse> {
5101
+ return localVarFp.generateAgent(agentGenerateRequest, options).then((request) => request(axios, basePath));
4956
5102
  },
4957
5103
  /**
4958
5104
  * Get specific project conversation history. **Path Parameters:** * `project_id` - Project ID to get conversation history for **Query Parameters:** * `user_id` - Optional user ID for access validation **Returns:** * `GenerationDetailResponse` - Contains full conversation history for the project **Raises:** * `HTTPException`: - 404: Project not found or access denied - 500: Failed to retrieve generation detail
@@ -4961,8 +5107,8 @@ export const GeneratorApiFactory = function (configuration?: Configuration, base
4961
5107
  * @param {*} [options] Override http request option.
4962
5108
  * @throws {RequiredError}
4963
5109
  */
4964
- getGenerationDetailGeneratorAgentGenerationsProjectIdGet(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise<GenerationDetailResponse> {
4965
- return localVarFp.getGenerationDetailGeneratorAgentGenerationsProjectIdGet(projectId, options).then((request) => request(axios, basePath));
5110
+ getGenerationHistory(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise<GenerationDetailResponse> {
5111
+ return localVarFp.getGenerationHistory(projectId, options).then((request) => request(axios, basePath));
4966
5112
  },
4967
5113
  /**
4968
5114
  * Get all projects/generations for a user. **Query Parameters:** * `user_id` - Optional user ID to filter projects * `limit` - Maximum number of recent projects to return (default: 50, max: 100) **Returns:** * `GenerationsListResponse` - Contains list of projects with their conversation history **Raises:** * `HTTPException`: - 400: Invalid parameters - 500: Failed to retrieve generations
@@ -4971,8 +5117,8 @@ export const GeneratorApiFactory = function (configuration?: Configuration, base
4971
5117
  * @param {*} [options] Override http request option.
4972
5118
  * @throws {RequiredError}
4973
5119
  */
4974
- getGenerationsGeneratorAgentGenerationsGet(limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<GenerationsListResponse> {
4975
- return localVarFp.getGenerationsGeneratorAgentGenerationsGet(limit, options).then((request) => request(axios, basePath));
5120
+ getGenerations(limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<GenerationsListResponse> {
5121
+ return localVarFp.getGenerations(limit, options).then((request) => request(axios, basePath));
4976
5122
  },
4977
5123
  };
4978
5124
  };
@@ -4992,8 +5138,8 @@ export class GeneratorApi extends BaseAPI {
4992
5138
  * @throws {RequiredError}
4993
5139
  * @memberof GeneratorApi
4994
5140
  */
4995
- public generateAgentGeneratorAgentGeneratePost(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig) {
4996
- return GeneratorApiFp(this.configuration).generateAgentGeneratorAgentGeneratePost(agentGenerateRequest, options).then((request) => request(this.axios, this.basePath));
5141
+ public generateAgent(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig) {
5142
+ return GeneratorApiFp(this.configuration).generateAgent(agentGenerateRequest, options).then((request) => request(this.axios, this.basePath));
4997
5143
  }
4998
5144
 
4999
5145
  /**
@@ -5004,8 +5150,8 @@ export class GeneratorApi extends BaseAPI {
5004
5150
  * @throws {RequiredError}
5005
5151
  * @memberof GeneratorApi
5006
5152
  */
5007
- public getGenerationDetailGeneratorAgentGenerationsProjectIdGet(projectId: string, options?: RawAxiosRequestConfig) {
5008
- return GeneratorApiFp(this.configuration).getGenerationDetailGeneratorAgentGenerationsProjectIdGet(projectId, options).then((request) => request(this.axios, this.basePath));
5153
+ public getGenerationHistory(projectId: string, options?: RawAxiosRequestConfig) {
5154
+ return GeneratorApiFp(this.configuration).getGenerationHistory(projectId, options).then((request) => request(this.axios, this.basePath));
5009
5155
  }
5010
5156
 
5011
5157
  /**
@@ -5016,8 +5162,8 @@ export class GeneratorApi extends BaseAPI {
5016
5162
  * @throws {RequiredError}
5017
5163
  * @memberof GeneratorApi
5018
5164
  */
5019
- public getGenerationsGeneratorAgentGenerationsGet(limit?: number, options?: RawAxiosRequestConfig) {
5020
- return GeneratorApiFp(this.configuration).getGenerationsGeneratorAgentGenerationsGet(limit, options).then((request) => request(this.axios, this.basePath));
5165
+ public getGenerations(limit?: number, options?: RawAxiosRequestConfig) {
5166
+ return GeneratorApiFp(this.configuration).getGenerations(limit, options).then((request) => request(this.axios, this.basePath));
5021
5167
  }
5022
5168
  }
5023
5169
 
@@ -5035,7 +5181,7 @@ export const HealthApiAxiosParamCreator = function (configuration?: Configuratio
5035
5181
  * @param {*} [options] Override http request option.
5036
5182
  * @throws {RequiredError}
5037
5183
  */
5038
- healthCheckHealthGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5184
+ healthCheck: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5039
5185
  const localVarPath = `/health`;
5040
5186
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5041
5187
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5075,10 +5221,10 @@ export const HealthApiFp = function(configuration?: Configuration) {
5075
5221
  * @param {*} [options] Override http request option.
5076
5222
  * @throws {RequiredError}
5077
5223
  */
5078
- async healthCheckHealthGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
5079
- const localVarAxiosArgs = await localVarAxiosParamCreator.healthCheckHealthGet(options);
5224
+ async healthCheck(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
5225
+ const localVarAxiosArgs = await localVarAxiosParamCreator.healthCheck(options);
5080
5226
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5081
- const localVarOperationServerBasePath = operationServerMap['HealthApi.healthCheckHealthGet']?.[localVarOperationServerIndex]?.url;
5227
+ const localVarOperationServerBasePath = operationServerMap['HealthApi.healthCheck']?.[localVarOperationServerIndex]?.url;
5082
5228
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5083
5229
  },
5084
5230
  }
@@ -5097,8 +5243,8 @@ export const HealthApiFactory = function (configuration?: Configuration, basePat
5097
5243
  * @param {*} [options] Override http request option.
5098
5244
  * @throws {RequiredError}
5099
5245
  */
5100
- healthCheckHealthGet(options?: RawAxiosRequestConfig): AxiosPromise<any> {
5101
- return localVarFp.healthCheckHealthGet(options).then((request) => request(axios, basePath));
5246
+ healthCheck(options?: RawAxiosRequestConfig): AxiosPromise<any> {
5247
+ return localVarFp.healthCheck(options).then((request) => request(axios, basePath));
5102
5248
  },
5103
5249
  };
5104
5250
  };
@@ -5117,8 +5263,8 @@ export class HealthApi extends BaseAPI {
5117
5263
  * @throws {RequiredError}
5118
5264
  * @memberof HealthApi
5119
5265
  */
5120
- public healthCheckHealthGet(options?: RawAxiosRequestConfig) {
5121
- return HealthApiFp(this.configuration).healthCheckHealthGet(options).then((request) => request(this.axios, this.basePath));
5266
+ public healthCheck(options?: RawAxiosRequestConfig) {
5267
+ return HealthApiFp(this.configuration).healthCheck(options).then((request) => request(this.axios, this.basePath));
5122
5268
  }
5123
5269
  }
5124
5270
 
@@ -5166,7 +5312,7 @@ export const MetadataApiAxiosParamCreator = function (configuration?: Configurat
5166
5312
  * @param {*} [options] Override http request option.
5167
5313
  * @throws {RequiredError}
5168
5314
  */
5169
- getLlmsMetadataLlmsGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5315
+ getLlms: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5170
5316
  const localVarPath = `/metadata/llms`;
5171
5317
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5172
5318
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5272,7 +5418,7 @@ export const MetadataApiAxiosParamCreator = function (configuration?: Configurat
5272
5418
  * @param {*} [options] Override http request option.
5273
5419
  * @throws {RequiredError}
5274
5420
  */
5275
- getSkillsMetadataSkillsGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5421
+ getSkills: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5276
5422
  const localVarPath = `/metadata/skills`;
5277
5423
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5278
5424
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5324,10 +5470,10 @@ export const MetadataApiFp = function(configuration?: Configuration) {
5324
5470
  * @param {*} [options] Override http request option.
5325
5471
  * @throws {RequiredError}
5326
5472
  */
5327
- async getLlmsMetadataLlmsGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LLMModelInfoWithProviderName>>> {
5328
- const localVarAxiosArgs = await localVarAxiosParamCreator.getLlmsMetadataLlmsGet(options);
5473
+ async getLlms(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LLMModelInfoWithProviderName>>> {
5474
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getLlms(options);
5329
5475
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5330
- const localVarOperationServerBasePath = operationServerMap['MetadataApi.getLlmsMetadataLlmsGet']?.[localVarOperationServerIndex]?.url;
5476
+ const localVarOperationServerBasePath = operationServerMap['MetadataApi.getLlms']?.[localVarOperationServerIndex]?.url;
5331
5477
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5332
5478
  },
5333
5479
  /**
@@ -5364,10 +5510,10 @@ export const MetadataApiFp = function(configuration?: Configuration) {
5364
5510
  * @param {*} [options] Override http request option.
5365
5511
  * @throws {RequiredError}
5366
5512
  */
5367
- async getSkillsMetadataSkillsGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Skill>>> {
5368
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSkillsMetadataSkillsGet(options);
5513
+ async getSkills(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Skill>>> {
5514
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSkills(options);
5369
5515
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5370
- const localVarOperationServerBasePath = operationServerMap['MetadataApi.getSkillsMetadataSkillsGet']?.[localVarOperationServerIndex]?.url;
5516
+ const localVarOperationServerBasePath = operationServerMap['MetadataApi.getSkills']?.[localVarOperationServerIndex]?.url;
5371
5517
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5372
5518
  },
5373
5519
  }
@@ -5395,8 +5541,8 @@ export const MetadataApiFactory = function (configuration?: Configuration, baseP
5395
5541
  * @param {*} [options] Override http request option.
5396
5542
  * @throws {RequiredError}
5397
5543
  */
5398
- getLlmsMetadataLlmsGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<LLMModelInfoWithProviderName>> {
5399
- return localVarFp.getLlmsMetadataLlmsGet(options).then((request) => request(axios, basePath));
5544
+ getLlms(options?: RawAxiosRequestConfig): AxiosPromise<Array<LLMModelInfoWithProviderName>> {
5545
+ return localVarFp.getLlms(options).then((request) => request(axios, basePath));
5400
5546
  },
5401
5547
  /**
5402
5548
  * Get the icon for a specific skill
@@ -5426,8 +5572,8 @@ export const MetadataApiFactory = function (configuration?: Configuration, baseP
5426
5572
  * @param {*} [options] Override http request option.
5427
5573
  * @throws {RequiredError}
5428
5574
  */
5429
- getSkillsMetadataSkillsGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<Skill>> {
5430
- return localVarFp.getSkillsMetadataSkillsGet(options).then((request) => request(axios, basePath));
5575
+ getSkills(options?: RawAxiosRequestConfig): AxiosPromise<Array<Skill>> {
5576
+ return localVarFp.getSkills(options).then((request) => request(axios, basePath));
5431
5577
  },
5432
5578
  };
5433
5579
  };
@@ -5457,8 +5603,8 @@ export class MetadataApi extends BaseAPI {
5457
5603
  * @throws {RequiredError}
5458
5604
  * @memberof MetadataApi
5459
5605
  */
5460
- public getLlmsMetadataLlmsGet(options?: RawAxiosRequestConfig) {
5461
- return MetadataApiFp(this.configuration).getLlmsMetadataLlmsGet(options).then((request) => request(this.axios, this.basePath));
5606
+ public getLlms(options?: RawAxiosRequestConfig) {
5607
+ return MetadataApiFp(this.configuration).getLlms(options).then((request) => request(this.axios, this.basePath));
5462
5608
  }
5463
5609
 
5464
5610
  /**
@@ -5494,8 +5640,8 @@ export class MetadataApi extends BaseAPI {
5494
5640
  * @throws {RequiredError}
5495
5641
  * @memberof MetadataApi
5496
5642
  */
5497
- public getSkillsMetadataSkillsGet(options?: RawAxiosRequestConfig) {
5498
- return MetadataApiFp(this.configuration).getSkillsMetadataSkillsGet(options).then((request) => request(this.axios, this.basePath));
5643
+ public getSkills(options?: RawAxiosRequestConfig) {
5644
+ return MetadataApiFp(this.configuration).getSkills(options).then((request) => request(this.axios, this.basePath));
5499
5645
  }
5500
5646
  }
5501
5647
 
@@ -5515,11 +5661,11 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
5515
5661
  * @param {*} [options] Override http request option.
5516
5662
  * @throws {RequiredError}
5517
5663
  */
5518
- getTwitterAuthUrlOauthTwitterGet: async (agentId: string, redirectUri: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5664
+ getTwitterAuthUrl: async (agentId: string, redirectUri: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5519
5665
  // verify required parameter 'agentId' is not null or undefined
5520
- assertParamExists('getTwitterAuthUrlOauthTwitterGet', 'agentId', agentId)
5666
+ assertParamExists('getTwitterAuthUrl', 'agentId', agentId)
5521
5667
  // verify required parameter 'redirectUri' is not null or undefined
5522
- assertParamExists('getTwitterAuthUrlOauthTwitterGet', 'redirectUri', redirectUri)
5668
+ assertParamExists('getTwitterAuthUrl', 'redirectUri', redirectUri)
5523
5669
  const localVarPath = `/oauth/twitter`;
5524
5670
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5525
5671
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5564,9 +5710,9 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
5564
5710
  * @param {*} [options] Override http request option.
5565
5711
  * @throws {RequiredError}
5566
5712
  */
5567
- twitterOauthCallbackOauthTwitterCallbackGet: async (state: string, code?: string | null, error?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5713
+ twitterOauthCallback: async (state: string, code?: string | null, error?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5568
5714
  // verify required parameter 'state' is not null or undefined
5569
- assertParamExists('twitterOauthCallbackOauthTwitterCallbackGet', 'state', state)
5715
+ assertParamExists('twitterOauthCallback', 'state', state)
5570
5716
  const localVarPath = `/oauth/twitter/callback`;
5571
5717
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5572
5718
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5593,6 +5739,47 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
5593
5739
 
5594
5740
 
5595
5741
 
5742
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5743
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5744
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5745
+
5746
+ return {
5747
+ url: toPathString(localVarUrlObj),
5748
+ options: localVarRequestOptions,
5749
+ };
5750
+ },
5751
+ /**
5752
+ * Unlink X from an agent. **Path Parameters:** * `agent_id` - ID of the agent to unlink from X **Raises:** * `HTTPException`: - 404: Agent not found
5753
+ * @summary Unlink Twitter Endpoint
5754
+ * @param {string} agentId ID of the agent to unlink from X
5755
+ * @param {*} [options] Override http request option.
5756
+ * @throws {RequiredError}
5757
+ */
5758
+ unlinkTwitter: async (agentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5759
+ // verify required parameter 'agentId' is not null or undefined
5760
+ assertParamExists('unlinkTwitter', 'agentId', agentId)
5761
+ const localVarPath = `/oauth/twitter/unlink`;
5762
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5763
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5764
+ let baseOptions;
5765
+ if (configuration) {
5766
+ baseOptions = configuration.baseOptions;
5767
+ }
5768
+
5769
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
5770
+ const localVarHeaderParameter = {} as any;
5771
+ const localVarQueryParameter = {} as any;
5772
+
5773
+ // authentication HTTPBearer required
5774
+ // http bearer authentication required
5775
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5776
+
5777
+ if (agentId !== undefined) {
5778
+ localVarQueryParameter['agent_id'] = agentId;
5779
+ }
5780
+
5781
+
5782
+
5596
5783
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5597
5784
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5598
5785
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -5620,10 +5807,10 @@ export const OAuthApiFp = function(configuration?: Configuration) {
5620
5807
  * @param {*} [options] Override http request option.
5621
5808
  * @throws {RequiredError}
5622
5809
  */
5623
- async getTwitterAuthUrlOauthTwitterGet(agentId: string, redirectUri: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TwitterAuthResponse>> {
5624
- const localVarAxiosArgs = await localVarAxiosParamCreator.getTwitterAuthUrlOauthTwitterGet(agentId, redirectUri, options);
5810
+ async getTwitterAuthUrl(agentId: string, redirectUri: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TwitterAuthResponse>> {
5811
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTwitterAuthUrl(agentId, redirectUri, options);
5625
5812
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5626
- const localVarOperationServerBasePath = operationServerMap['OAuthApi.getTwitterAuthUrlOauthTwitterGet']?.[localVarOperationServerIndex]?.url;
5813
+ const localVarOperationServerBasePath = operationServerMap['OAuthApi.getTwitterAuthUrl']?.[localVarOperationServerIndex]?.url;
5627
5814
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5628
5815
  },
5629
5816
  /**
@@ -5635,10 +5822,23 @@ export const OAuthApiFp = function(configuration?: Configuration) {
5635
5822
  * @param {*} [options] Override http request option.
5636
5823
  * @throws {RequiredError}
5637
5824
  */
5638
- async twitterOauthCallbackOauthTwitterCallbackGet(state: string, code?: string | null, error?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
5639
- const localVarAxiosArgs = await localVarAxiosParamCreator.twitterOauthCallbackOauthTwitterCallbackGet(state, code, error, options);
5825
+ async twitterOauthCallback(state: string, code?: string | null, error?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
5826
+ const localVarAxiosArgs = await localVarAxiosParamCreator.twitterOauthCallback(state, code, error, options);
5640
5827
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5641
- const localVarOperationServerBasePath = operationServerMap['OAuthApi.twitterOauthCallbackOauthTwitterCallbackGet']?.[localVarOperationServerIndex]?.url;
5828
+ const localVarOperationServerBasePath = operationServerMap['OAuthApi.twitterOauthCallback']?.[localVarOperationServerIndex]?.url;
5829
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5830
+ },
5831
+ /**
5832
+ * Unlink X from an agent. **Path Parameters:** * `agent_id` - ID of the agent to unlink from X **Raises:** * `HTTPException`: - 404: Agent not found
5833
+ * @summary Unlink Twitter Endpoint
5834
+ * @param {string} agentId ID of the agent to unlink from X
5835
+ * @param {*} [options] Override http request option.
5836
+ * @throws {RequiredError}
5837
+ */
5838
+ async unlinkTwitter(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
5839
+ const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkTwitter(agentId, options);
5840
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5841
+ const localVarOperationServerBasePath = operationServerMap['OAuthApi.unlinkTwitter']?.[localVarOperationServerIndex]?.url;
5642
5842
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5643
5843
  },
5644
5844
  }
@@ -5659,8 +5859,8 @@ export const OAuthApiFactory = function (configuration?: Configuration, basePath
5659
5859
  * @param {*} [options] Override http request option.
5660
5860
  * @throws {RequiredError}
5661
5861
  */
5662
- getTwitterAuthUrlOauthTwitterGet(agentId: string, redirectUri: string, options?: RawAxiosRequestConfig): AxiosPromise<TwitterAuthResponse> {
5663
- return localVarFp.getTwitterAuthUrlOauthTwitterGet(agentId, redirectUri, options).then((request) => request(axios, basePath));
5862
+ getTwitterAuthUrl(agentId: string, redirectUri: string, options?: RawAxiosRequestConfig): AxiosPromise<TwitterAuthResponse> {
5863
+ return localVarFp.getTwitterAuthUrl(agentId, redirectUri, options).then((request) => request(axios, basePath));
5664
5864
  },
5665
5865
  /**
5666
5866
  * Handle Twitter OAuth2 callback. This endpoint is called by Twitter after the user authorizes the application. It exchanges the authorization code for access and refresh tokens, then stores them in the database. **Query Parameters:** * `state` - URL-encoded state containing agent_id and redirect_uri * `code` - Authorization code from Twitter * `error` - Error message from Twitter (optional) **Returns:** * JSONResponse or RedirectResponse depending on redirect_uri
@@ -5671,8 +5871,18 @@ export const OAuthApiFactory = function (configuration?: Configuration, basePath
5671
5871
  * @param {*} [options] Override http request option.
5672
5872
  * @throws {RequiredError}
5673
5873
  */
5674
- twitterOauthCallbackOauthTwitterCallbackGet(state: string, code?: string | null, error?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<any> {
5675
- return localVarFp.twitterOauthCallbackOauthTwitterCallbackGet(state, code, error, options).then((request) => request(axios, basePath));
5874
+ twitterOauthCallback(state: string, code?: string | null, error?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<any> {
5875
+ return localVarFp.twitterOauthCallback(state, code, error, options).then((request) => request(axios, basePath));
5876
+ },
5877
+ /**
5878
+ * Unlink X from an agent. **Path Parameters:** * `agent_id` - ID of the agent to unlink from X **Raises:** * `HTTPException`: - 404: Agent not found
5879
+ * @summary Unlink Twitter Endpoint
5880
+ * @param {string} agentId ID of the agent to unlink from X
5881
+ * @param {*} [options] Override http request option.
5882
+ * @throws {RequiredError}
5883
+ */
5884
+ unlinkTwitter(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
5885
+ return localVarFp.unlinkTwitter(agentId, options).then((request) => request(axios, basePath));
5676
5886
  },
5677
5887
  };
5678
5888
  };
@@ -5693,8 +5903,8 @@ export class OAuthApi extends BaseAPI {
5693
5903
  * @throws {RequiredError}
5694
5904
  * @memberof OAuthApi
5695
5905
  */
5696
- public getTwitterAuthUrlOauthTwitterGet(agentId: string, redirectUri: string, options?: RawAxiosRequestConfig) {
5697
- return OAuthApiFp(this.configuration).getTwitterAuthUrlOauthTwitterGet(agentId, redirectUri, options).then((request) => request(this.axios, this.basePath));
5906
+ public getTwitterAuthUrl(agentId: string, redirectUri: string, options?: RawAxiosRequestConfig) {
5907
+ return OAuthApiFp(this.configuration).getTwitterAuthUrl(agentId, redirectUri, options).then((request) => request(this.axios, this.basePath));
5698
5908
  }
5699
5909
 
5700
5910
  /**
@@ -5707,8 +5917,20 @@ export class OAuthApi extends BaseAPI {
5707
5917
  * @throws {RequiredError}
5708
5918
  * @memberof OAuthApi
5709
5919
  */
5710
- public twitterOauthCallbackOauthTwitterCallbackGet(state: string, code?: string | null, error?: string | null, options?: RawAxiosRequestConfig) {
5711
- return OAuthApiFp(this.configuration).twitterOauthCallbackOauthTwitterCallbackGet(state, code, error, options).then((request) => request(this.axios, this.basePath));
5920
+ public twitterOauthCallback(state: string, code?: string | null, error?: string | null, options?: RawAxiosRequestConfig) {
5921
+ return OAuthApiFp(this.configuration).twitterOauthCallback(state, code, error, options).then((request) => request(this.axios, this.basePath));
5922
+ }
5923
+
5924
+ /**
5925
+ * Unlink X from an agent. **Path Parameters:** * `agent_id` - ID of the agent to unlink from X **Raises:** * `HTTPException`: - 404: Agent not found
5926
+ * @summary Unlink Twitter Endpoint
5927
+ * @param {string} agentId ID of the agent to unlink from X
5928
+ * @param {*} [options] Override http request option.
5929
+ * @throws {RequiredError}
5930
+ * @memberof OAuthApi
5931
+ */
5932
+ public unlinkTwitter(agentId: string, options?: RawAxiosRequestConfig) {
5933
+ return OAuthApiFp(this.configuration).unlinkTwitter(agentId, options).then((request) => request(this.axios, this.basePath));
5712
5934
  }
5713
5935
  }
5714
5936