@crestal/nation-sdk 0.1.30 → 0.1.31

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @crestal/nation-sdk@0.1.30
1
+ ## @crestal/nation-sdk@0.1.31
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @crestal/nation-sdk@0.1.30 --save
39
+ npm install @crestal/nation-sdk@0.1.31 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -75,17 +75,18 @@ Class | Method | HTTP request | Description
75
75
  *CreditApi* | [**listAgentIncomeEvents**](docs/CreditApi.md#listagentincomeevents) | **GET** /credit/agents/{agent_id}/events | List Agent Income
76
76
  *CreditApi* | [**listUserEvents**](docs/CreditApi.md#listuserevents) | **GET** /credit/user/events | List User Events
77
77
  *CreditApi* | [**listUserTransactions**](docs/CreditApi.md#listusertransactions) | **GET** /credit/user/transactions | List User Transactions
78
- *GeneratorApi* | [**generateAgentGeneratorAgentGeneratePost**](docs/GeneratorApi.md#generateagentgeneratoragentgeneratepost) | **POST** /generator/agent/generate | Generate Agent from Natural Language Prompt
79
- *GeneratorApi* | [**getGenerationDetailGeneratorAgentGenerationsProjectIdGet**](docs/GeneratorApi.md#getgenerationdetailgeneratoragentgenerationsprojectidget) | **GET** /generator/agent/generations/{project_id} | Get Generation Detail by Project ID
80
- *GeneratorApi* | [**getGenerationsGeneratorAgentGenerationsGet**](docs/GeneratorApi.md#getgenerationsgeneratoragentgenerationsget) | **GET** /generator/agent/generations | Get Generations List by User
78
+ *GeneratorApi* | [**generateAgent**](docs/GeneratorApi.md#generateagent) | **POST** /generator/agent/generate | Generate Agent from Natural Language Prompt
79
+ *GeneratorApi* | [**getGenerationHistory**](docs/GeneratorApi.md#getgenerationhistory) | **GET** /generator/agent/generations/{project_id} | Get Generation Detail by Project ID
80
+ *GeneratorApi* | [**getGenerations**](docs/GeneratorApi.md#getgenerations) | **GET** /generator/agent/generations | Get Generations List by User
81
81
  *HealthApi* | [**healthCheckHealthGet**](docs/HealthApi.md#healthcheckhealthget) | **GET** /health | Health check endpoint
82
82
  *MetadataApi* | [**getAgentSchema**](docs/MetadataApi.md#getagentschema) | **GET** /metadata/agent/schema.json | Get agent schema
83
83
  *MetadataApi* | [**getLlmsMetadataLlmsGet**](docs/MetadataApi.md#getllmsmetadatallmsget) | **GET** /metadata/llms | Get all LLM models
84
84
  *MetadataApi* | [**getSkillIcon**](docs/MetadataApi.md#getskillicon) | **GET** /metadata/skills/{skill}/{icon_name}.{ext} | Get skill icon
85
85
  *MetadataApi* | [**getSkillSchema**](docs/MetadataApi.md#getskillschema) | **GET** /metadata/skills/{skill}/schema.json | Get skill schema
86
86
  *MetadataApi* | [**getSkillsMetadataSkillsGet**](docs/MetadataApi.md#getskillsmetadataskillsget) | **GET** /metadata/skills | Get all skills
87
- *OAuthApi* | [**getTwitterAuthUrlOauthTwitterGet**](docs/OAuthApi.md#gettwitterauthurloauthtwitterget) | **GET** /oauth/twitter | Get Twitter Auth Url
88
- *OAuthApi* | [**twitterOauthCallbackOauthTwitterCallbackGet**](docs/OAuthApi.md#twitteroauthcallbackoauthtwittercallbackget) | **GET** /oauth/twitter/callback | Twitter Oauth Callback
87
+ *OAuthApi* | [**getTwitterAuthUrl**](docs/OAuthApi.md#gettwitterauthurl) | **GET** /oauth/twitter | Get Twitter Auth Url
88
+ *OAuthApi* | [**twitterOauthCallback**](docs/OAuthApi.md#twitteroauthcallback) | **GET** /oauth/twitter/callback | Twitter Oauth Callback
89
+ *OAuthApi* | [**unlinkTwitter**](docs/OAuthApi.md#unlinktwitter) | **PUT** /oauth/twitter/unlink | Unlink Twitter Endpoint
89
90
  *UserApi* | [**getUserAgentById**](docs/UserApi.md#getuseragentbyid) | **GET** /user/agents/{agent_id} | Get User Agent By Id
90
91
  *UserApi* | [**getUserAgents**](docs/UserApi.md#getuseragents) | **GET** /user/agents | Get User Agents
91
92
 
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.31
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.
@@ -2963,7 +2963,7 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
2963
2963
  };
2964
2964
  },
2965
2965
  /**
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
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) - 422: Invalid agent configuration from JSON schema validation - 500: Database error
2967
2967
  * @summary Override Agent
2968
2968
  * @param {string} agentId ID of the agent to update
2969
2969
  * @param {AgentUpdate} [agentUpdate]
@@ -3047,7 +3047,7 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
3047
3047
  };
3048
3048
  },
3049
3049
  /**
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
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 or JSON schema validation - 500: Server error
3051
3051
  * @summary Validate Agent Create
3052
3052
  * @param {AgentUpdate} [agentUpdate]
3053
3053
  * @param {*} [options] Override http request option.
@@ -3137,7 +3137,7 @@ export const AgentApiFp = function(configuration?: Configuration) {
3137
3137
  const localVarAxiosParamCreator = AgentApiAxiosParamCreator(configuration)
3138
3138
  return {
3139
3139
  /**
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
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 - 422: Invalid agent configuration from JSON schema validation - 500: Database error
3141
3141
  * @summary Create Agent
3142
3142
  * @param {AgentUpdate} [agentUpdate]
3143
3143
  * @param {*} [options] Override http request option.
@@ -3218,7 +3218,7 @@ export const AgentApiFp = function(configuration?: Configuration) {
3218
3218
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3219
3219
  },
3220
3220
  /**
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
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) - 422: Invalid agent configuration from JSON schema validation - 500: Database error
3222
3222
  * @summary Override Agent
3223
3223
  * @param {string} agentId ID of the agent to update
3224
3224
  * @param {AgentUpdate} [agentUpdate]
@@ -3246,7 +3246,7 @@ export const AgentApiFp = function(configuration?: Configuration) {
3246
3246
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3247
3247
  },
3248
3248
  /**
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
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 or JSON schema validation - 500: Server error
3250
3250
  * @summary Validate Agent Create
3251
3251
  * @param {AgentUpdate} [agentUpdate]
3252
3252
  * @param {*} [options] Override http request option.
@@ -3283,7 +3283,7 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
3283
3283
  const localVarFp = AgentApiFp(configuration)
3284
3284
  return {
3285
3285
  /**
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
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 - 422: Invalid agent configuration from JSON schema validation - 500: Database error
3287
3287
  * @summary Create Agent
3288
3288
  * @param {AgentUpdate} [agentUpdate]
3289
3289
  * @param {*} [options] Override http request option.
@@ -3346,7 +3346,7 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
3346
3346
  return localVarFp.importAgent(agentId, file, options).then((request) => request(axios, basePath));
3347
3347
  },
3348
3348
  /**
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
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) - 422: Invalid agent configuration from JSON schema validation - 500: Database error
3350
3350
  * @summary Override Agent
3351
3351
  * @param {string} agentId ID of the agent to update
3352
3352
  * @param {AgentUpdate} [agentUpdate]
@@ -3368,7 +3368,7 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
3368
3368
  return localVarFp.updateAgent(agentId, agentUpdate, options).then((request) => request(axios, basePath));
3369
3369
  },
3370
3370
  /**
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
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 or JSON schema validation - 500: Server error
3372
3372
  * @summary Validate Agent Create
3373
3373
  * @param {AgentUpdate} [agentUpdate]
3374
3374
  * @param {*} [options] Override http request option.
@@ -3399,7 +3399,7 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
3399
3399
  */
3400
3400
  export class AgentApi extends BaseAPI {
3401
3401
  /**
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
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 - 422: Invalid agent configuration from JSON schema validation - 500: Database error
3403
3403
  * @summary Create Agent
3404
3404
  * @param {AgentUpdate} [agentUpdate]
3405
3405
  * @param {*} [options] Override http request option.
@@ -3474,7 +3474,7 @@ export class AgentApi extends BaseAPI {
3474
3474
  }
3475
3475
 
3476
3476
  /**
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
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) - 422: Invalid agent configuration from JSON schema validation - 500: Database error
3478
3478
  * @summary Override Agent
3479
3479
  * @param {string} agentId ID of the agent to update
3480
3480
  * @param {AgentUpdate} [agentUpdate]
@@ -3500,7 +3500,7 @@ export class AgentApi extends BaseAPI {
3500
3500
  }
3501
3501
 
3502
3502
  /**
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
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 or JSON schema validation - 500: Server error
3504
3504
  * @summary Validate Agent Create
3505
3505
  * @param {AgentUpdate} [agentUpdate]
3506
3506
  * @param {*} [options] Override http request option.
@@ -4775,9 +4775,9 @@ export const GeneratorApiAxiosParamCreator = function (configuration?: Configura
4775
4775
  * @param {*} [options] Override http request option.
4776
4776
  * @throws {RequiredError}
4777
4777
  */
4778
- generateAgentGeneratorAgentGeneratePost: async (agentGenerateRequest: AgentGenerateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4778
+ generateAgent: async (agentGenerateRequest: AgentGenerateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4779
4779
  // verify required parameter 'agentGenerateRequest' is not null or undefined
4780
- assertParamExists('generateAgentGeneratorAgentGeneratePost', 'agentGenerateRequest', agentGenerateRequest)
4780
+ assertParamExists('generateAgent', 'agentGenerateRequest', agentGenerateRequest)
4781
4781
  const localVarPath = `/generator/agent/generate`;
4782
4782
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4783
4783
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -4815,9 +4815,9 @@ export const GeneratorApiAxiosParamCreator = function (configuration?: Configura
4815
4815
  * @param {*} [options] Override http request option.
4816
4816
  * @throws {RequiredError}
4817
4817
  */
4818
- getGenerationDetailGeneratorAgentGenerationsProjectIdGet: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4818
+ getGenerationHistory: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4819
4819
  // verify required parameter 'projectId' is not null or undefined
4820
- assertParamExists('getGenerationDetailGeneratorAgentGenerationsProjectIdGet', 'projectId', projectId)
4820
+ assertParamExists('getGenerationHistory', 'projectId', projectId)
4821
4821
  const localVarPath = `/generator/agent/generations/{project_id}`
4822
4822
  .replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)));
4823
4823
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -4853,7 +4853,7 @@ export const GeneratorApiAxiosParamCreator = function (configuration?: Configura
4853
4853
  * @param {*} [options] Override http request option.
4854
4854
  * @throws {RequiredError}
4855
4855
  */
4856
- getGenerationsGeneratorAgentGenerationsGet: async (limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4856
+ getGenerations: async (limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4857
4857
  const localVarPath = `/generator/agent/generations`;
4858
4858
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4859
4859
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -4902,10 +4902,10 @@ export const GeneratorApiFp = function(configuration?: Configuration) {
4902
4902
  * @param {*} [options] Override http request option.
4903
4903
  * @throws {RequiredError}
4904
4904
  */
4905
- async generateAgentGeneratorAgentGeneratePost(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentGenerateResponse>> {
4906
- const localVarAxiosArgs = await localVarAxiosParamCreator.generateAgentGeneratorAgentGeneratePost(agentGenerateRequest, options);
4905
+ async generateAgent(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentGenerateResponse>> {
4906
+ const localVarAxiosArgs = await localVarAxiosParamCreator.generateAgent(agentGenerateRequest, options);
4907
4907
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4908
- const localVarOperationServerBasePath = operationServerMap['GeneratorApi.generateAgentGeneratorAgentGeneratePost']?.[localVarOperationServerIndex]?.url;
4908
+ const localVarOperationServerBasePath = operationServerMap['GeneratorApi.generateAgent']?.[localVarOperationServerIndex]?.url;
4909
4909
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4910
4910
  },
4911
4911
  /**
@@ -4915,10 +4915,10 @@ export const GeneratorApiFp = function(configuration?: Configuration) {
4915
4915
  * @param {*} [options] Override http request option.
4916
4916
  * @throws {RequiredError}
4917
4917
  */
4918
- async getGenerationDetailGeneratorAgentGenerationsProjectIdGet(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenerationDetailResponse>> {
4919
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGenerationDetailGeneratorAgentGenerationsProjectIdGet(projectId, options);
4918
+ async getGenerationHistory(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenerationDetailResponse>> {
4919
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGenerationHistory(projectId, options);
4920
4920
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4921
- const localVarOperationServerBasePath = operationServerMap['GeneratorApi.getGenerationDetailGeneratorAgentGenerationsProjectIdGet']?.[localVarOperationServerIndex]?.url;
4921
+ const localVarOperationServerBasePath = operationServerMap['GeneratorApi.getGenerationHistory']?.[localVarOperationServerIndex]?.url;
4922
4922
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4923
4923
  },
4924
4924
  /**
@@ -4928,10 +4928,10 @@ export const GeneratorApiFp = function(configuration?: Configuration) {
4928
4928
  * @param {*} [options] Override http request option.
4929
4929
  * @throws {RequiredError}
4930
4930
  */
4931
- async getGenerationsGeneratorAgentGenerationsGet(limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenerationsListResponse>> {
4932
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGenerationsGeneratorAgentGenerationsGet(limit, options);
4931
+ async getGenerations(limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenerationsListResponse>> {
4932
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGenerations(limit, options);
4933
4933
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4934
- const localVarOperationServerBasePath = operationServerMap['GeneratorApi.getGenerationsGeneratorAgentGenerationsGet']?.[localVarOperationServerIndex]?.url;
4934
+ const localVarOperationServerBasePath = operationServerMap['GeneratorApi.getGenerations']?.[localVarOperationServerIndex]?.url;
4935
4935
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4936
4936
  },
4937
4937
  }
@@ -4951,8 +4951,8 @@ export const GeneratorApiFactory = function (configuration?: Configuration, base
4951
4951
  * @param {*} [options] Override http request option.
4952
4952
  * @throws {RequiredError}
4953
4953
  */
4954
- generateAgentGeneratorAgentGeneratePost(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig): AxiosPromise<AgentGenerateResponse> {
4955
- return localVarFp.generateAgentGeneratorAgentGeneratePost(agentGenerateRequest, options).then((request) => request(axios, basePath));
4954
+ generateAgent(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig): AxiosPromise<AgentGenerateResponse> {
4955
+ return localVarFp.generateAgent(agentGenerateRequest, options).then((request) => request(axios, basePath));
4956
4956
  },
4957
4957
  /**
4958
4958
  * 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 +4961,8 @@ export const GeneratorApiFactory = function (configuration?: Configuration, base
4961
4961
  * @param {*} [options] Override http request option.
4962
4962
  * @throws {RequiredError}
4963
4963
  */
4964
- getGenerationDetailGeneratorAgentGenerationsProjectIdGet(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise<GenerationDetailResponse> {
4965
- return localVarFp.getGenerationDetailGeneratorAgentGenerationsProjectIdGet(projectId, options).then((request) => request(axios, basePath));
4964
+ getGenerationHistory(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise<GenerationDetailResponse> {
4965
+ return localVarFp.getGenerationHistory(projectId, options).then((request) => request(axios, basePath));
4966
4966
  },
4967
4967
  /**
4968
4968
  * 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 +4971,8 @@ export const GeneratorApiFactory = function (configuration?: Configuration, base
4971
4971
  * @param {*} [options] Override http request option.
4972
4972
  * @throws {RequiredError}
4973
4973
  */
4974
- getGenerationsGeneratorAgentGenerationsGet(limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<GenerationsListResponse> {
4975
- return localVarFp.getGenerationsGeneratorAgentGenerationsGet(limit, options).then((request) => request(axios, basePath));
4974
+ getGenerations(limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<GenerationsListResponse> {
4975
+ return localVarFp.getGenerations(limit, options).then((request) => request(axios, basePath));
4976
4976
  },
4977
4977
  };
4978
4978
  };
@@ -4992,8 +4992,8 @@ export class GeneratorApi extends BaseAPI {
4992
4992
  * @throws {RequiredError}
4993
4993
  * @memberof GeneratorApi
4994
4994
  */
4995
- public generateAgentGeneratorAgentGeneratePost(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig) {
4996
- return GeneratorApiFp(this.configuration).generateAgentGeneratorAgentGeneratePost(agentGenerateRequest, options).then((request) => request(this.axios, this.basePath));
4995
+ public generateAgent(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig) {
4996
+ return GeneratorApiFp(this.configuration).generateAgent(agentGenerateRequest, options).then((request) => request(this.axios, this.basePath));
4997
4997
  }
4998
4998
 
4999
4999
  /**
@@ -5004,8 +5004,8 @@ export class GeneratorApi extends BaseAPI {
5004
5004
  * @throws {RequiredError}
5005
5005
  * @memberof GeneratorApi
5006
5006
  */
5007
- public getGenerationDetailGeneratorAgentGenerationsProjectIdGet(projectId: string, options?: RawAxiosRequestConfig) {
5008
- return GeneratorApiFp(this.configuration).getGenerationDetailGeneratorAgentGenerationsProjectIdGet(projectId, options).then((request) => request(this.axios, this.basePath));
5007
+ public getGenerationHistory(projectId: string, options?: RawAxiosRequestConfig) {
5008
+ return GeneratorApiFp(this.configuration).getGenerationHistory(projectId, options).then((request) => request(this.axios, this.basePath));
5009
5009
  }
5010
5010
 
5011
5011
  /**
@@ -5016,8 +5016,8 @@ export class GeneratorApi extends BaseAPI {
5016
5016
  * @throws {RequiredError}
5017
5017
  * @memberof GeneratorApi
5018
5018
  */
5019
- public getGenerationsGeneratorAgentGenerationsGet(limit?: number, options?: RawAxiosRequestConfig) {
5020
- return GeneratorApiFp(this.configuration).getGenerationsGeneratorAgentGenerationsGet(limit, options).then((request) => request(this.axios, this.basePath));
5019
+ public getGenerations(limit?: number, options?: RawAxiosRequestConfig) {
5020
+ return GeneratorApiFp(this.configuration).getGenerations(limit, options).then((request) => request(this.axios, this.basePath));
5021
5021
  }
5022
5022
  }
5023
5023
 
@@ -5515,11 +5515,11 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
5515
5515
  * @param {*} [options] Override http request option.
5516
5516
  * @throws {RequiredError}
5517
5517
  */
5518
- getTwitterAuthUrlOauthTwitterGet: async (agentId: string, redirectUri: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5518
+ getTwitterAuthUrl: async (agentId: string, redirectUri: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5519
5519
  // verify required parameter 'agentId' is not null or undefined
5520
- assertParamExists('getTwitterAuthUrlOauthTwitterGet', 'agentId', agentId)
5520
+ assertParamExists('getTwitterAuthUrl', 'agentId', agentId)
5521
5521
  // verify required parameter 'redirectUri' is not null or undefined
5522
- assertParamExists('getTwitterAuthUrlOauthTwitterGet', 'redirectUri', redirectUri)
5522
+ assertParamExists('getTwitterAuthUrl', 'redirectUri', redirectUri)
5523
5523
  const localVarPath = `/oauth/twitter`;
5524
5524
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5525
5525
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5564,9 +5564,9 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
5564
5564
  * @param {*} [options] Override http request option.
5565
5565
  * @throws {RequiredError}
5566
5566
  */
5567
- twitterOauthCallbackOauthTwitterCallbackGet: async (state: string, code?: string | null, error?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5567
+ twitterOauthCallback: async (state: string, code?: string | null, error?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5568
5568
  // verify required parameter 'state' is not null or undefined
5569
- assertParamExists('twitterOauthCallbackOauthTwitterCallbackGet', 'state', state)
5569
+ assertParamExists('twitterOauthCallback', 'state', state)
5570
5570
  const localVarPath = `/oauth/twitter/callback`;
5571
5571
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5572
5572
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5593,6 +5593,47 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
5593
5593
 
5594
5594
 
5595
5595
 
5596
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5597
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5598
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5599
+
5600
+ return {
5601
+ url: toPathString(localVarUrlObj),
5602
+ options: localVarRequestOptions,
5603
+ };
5604
+ },
5605
+ /**
5606
+ * Unlink X from an agent. **Path Parameters:** * `agent_id` - ID of the agent to unlink from X **Raises:** * `HTTPException`: - 404: Agent not found
5607
+ * @summary Unlink Twitter Endpoint
5608
+ * @param {string} agentId ID of the agent to unlink from X
5609
+ * @param {*} [options] Override http request option.
5610
+ * @throws {RequiredError}
5611
+ */
5612
+ unlinkTwitter: async (agentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5613
+ // verify required parameter 'agentId' is not null or undefined
5614
+ assertParamExists('unlinkTwitter', 'agentId', agentId)
5615
+ const localVarPath = `/oauth/twitter/unlink`;
5616
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5617
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5618
+ let baseOptions;
5619
+ if (configuration) {
5620
+ baseOptions = configuration.baseOptions;
5621
+ }
5622
+
5623
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
5624
+ const localVarHeaderParameter = {} as any;
5625
+ const localVarQueryParameter = {} as any;
5626
+
5627
+ // authentication HTTPBearer required
5628
+ // http bearer authentication required
5629
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5630
+
5631
+ if (agentId !== undefined) {
5632
+ localVarQueryParameter['agent_id'] = agentId;
5633
+ }
5634
+
5635
+
5636
+
5596
5637
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5597
5638
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5598
5639
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -5620,10 +5661,10 @@ export const OAuthApiFp = function(configuration?: Configuration) {
5620
5661
  * @param {*} [options] Override http request option.
5621
5662
  * @throws {RequiredError}
5622
5663
  */
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);
5664
+ async getTwitterAuthUrl(agentId: string, redirectUri: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TwitterAuthResponse>> {
5665
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTwitterAuthUrl(agentId, redirectUri, options);
5625
5666
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5626
- const localVarOperationServerBasePath = operationServerMap['OAuthApi.getTwitterAuthUrlOauthTwitterGet']?.[localVarOperationServerIndex]?.url;
5667
+ const localVarOperationServerBasePath = operationServerMap['OAuthApi.getTwitterAuthUrl']?.[localVarOperationServerIndex]?.url;
5627
5668
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5628
5669
  },
5629
5670
  /**
@@ -5635,10 +5676,23 @@ export const OAuthApiFp = function(configuration?: Configuration) {
5635
5676
  * @param {*} [options] Override http request option.
5636
5677
  * @throws {RequiredError}
5637
5678
  */
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);
5679
+ async twitterOauthCallback(state: string, code?: string | null, error?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
5680
+ const localVarAxiosArgs = await localVarAxiosParamCreator.twitterOauthCallback(state, code, error, options);
5640
5681
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5641
- const localVarOperationServerBasePath = operationServerMap['OAuthApi.twitterOauthCallbackOauthTwitterCallbackGet']?.[localVarOperationServerIndex]?.url;
5682
+ const localVarOperationServerBasePath = operationServerMap['OAuthApi.twitterOauthCallback']?.[localVarOperationServerIndex]?.url;
5683
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5684
+ },
5685
+ /**
5686
+ * Unlink X from an agent. **Path Parameters:** * `agent_id` - ID of the agent to unlink from X **Raises:** * `HTTPException`: - 404: Agent not found
5687
+ * @summary Unlink Twitter Endpoint
5688
+ * @param {string} agentId ID of the agent to unlink from X
5689
+ * @param {*} [options] Override http request option.
5690
+ * @throws {RequiredError}
5691
+ */
5692
+ async unlinkTwitter(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
5693
+ const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkTwitter(agentId, options);
5694
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5695
+ const localVarOperationServerBasePath = operationServerMap['OAuthApi.unlinkTwitter']?.[localVarOperationServerIndex]?.url;
5642
5696
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5643
5697
  },
5644
5698
  }
@@ -5659,8 +5713,8 @@ export const OAuthApiFactory = function (configuration?: Configuration, basePath
5659
5713
  * @param {*} [options] Override http request option.
5660
5714
  * @throws {RequiredError}
5661
5715
  */
5662
- getTwitterAuthUrlOauthTwitterGet(agentId: string, redirectUri: string, options?: RawAxiosRequestConfig): AxiosPromise<TwitterAuthResponse> {
5663
- return localVarFp.getTwitterAuthUrlOauthTwitterGet(agentId, redirectUri, options).then((request) => request(axios, basePath));
5716
+ getTwitterAuthUrl(agentId: string, redirectUri: string, options?: RawAxiosRequestConfig): AxiosPromise<TwitterAuthResponse> {
5717
+ return localVarFp.getTwitterAuthUrl(agentId, redirectUri, options).then((request) => request(axios, basePath));
5664
5718
  },
5665
5719
  /**
5666
5720
  * 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 +5725,18 @@ export const OAuthApiFactory = function (configuration?: Configuration, basePath
5671
5725
  * @param {*} [options] Override http request option.
5672
5726
  * @throws {RequiredError}
5673
5727
  */
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));
5728
+ twitterOauthCallback(state: string, code?: string | null, error?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<any> {
5729
+ return localVarFp.twitterOauthCallback(state, code, error, options).then((request) => request(axios, basePath));
5730
+ },
5731
+ /**
5732
+ * Unlink X from an agent. **Path Parameters:** * `agent_id` - ID of the agent to unlink from X **Raises:** * `HTTPException`: - 404: Agent not found
5733
+ * @summary Unlink Twitter Endpoint
5734
+ * @param {string} agentId ID of the agent to unlink from X
5735
+ * @param {*} [options] Override http request option.
5736
+ * @throws {RequiredError}
5737
+ */
5738
+ unlinkTwitter(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
5739
+ return localVarFp.unlinkTwitter(agentId, options).then((request) => request(axios, basePath));
5676
5740
  },
5677
5741
  };
5678
5742
  };
@@ -5693,8 +5757,8 @@ export class OAuthApi extends BaseAPI {
5693
5757
  * @throws {RequiredError}
5694
5758
  * @memberof OAuthApi
5695
5759
  */
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));
5760
+ public getTwitterAuthUrl(agentId: string, redirectUri: string, options?: RawAxiosRequestConfig) {
5761
+ return OAuthApiFp(this.configuration).getTwitterAuthUrl(agentId, redirectUri, options).then((request) => request(this.axios, this.basePath));
5698
5762
  }
5699
5763
 
5700
5764
  /**
@@ -5707,8 +5771,20 @@ export class OAuthApi extends BaseAPI {
5707
5771
  * @throws {RequiredError}
5708
5772
  * @memberof OAuthApi
5709
5773
  */
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));
5774
+ public twitterOauthCallback(state: string, code?: string | null, error?: string | null, options?: RawAxiosRequestConfig) {
5775
+ return OAuthApiFp(this.configuration).twitterOauthCallback(state, code, error, options).then((request) => request(this.axios, this.basePath));
5776
+ }
5777
+
5778
+ /**
5779
+ * Unlink X from an agent. **Path Parameters:** * `agent_id` - ID of the agent to unlink from X **Raises:** * `HTTPException`: - 404: Agent not found
5780
+ * @summary Unlink Twitter Endpoint
5781
+ * @param {string} agentId ID of the agent to unlink from X
5782
+ * @param {*} [options] Override http request option.
5783
+ * @throws {RequiredError}
5784
+ * @memberof OAuthApi
5785
+ */
5786
+ public unlinkTwitter(agentId: string, options?: RawAxiosRequestConfig) {
5787
+ return OAuthApiFp(this.configuration).unlinkTwitter(agentId, options).then((request) => request(this.axios, this.basePath));
5712
5788
  }
5713
5789
  }
5714
5790
 
package/base.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.31
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/common.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.31
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.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.31
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).