@crestal/nation-sdk 0.1.29 → 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/.openapi-generator/FILES +2 -0
- package/README.md +9 -5
- package/api.ts +347 -39
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +181 -25
- package/dist/api.js +380 -41
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AgentApi.md +3 -3
- package/docs/GeneratorApi.md +12 -12
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/docs/OAuthApi.md +175 -0
- package/docs/TwitterAuthResponse.md +22 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Nation IntentKit API
|
|
3
3
|
* API for Nation IntentKit services
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.
|
|
5
|
+
* The version of the OpenAPI document: 0.1.31
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2570,6 +2570,25 @@ export declare const TransactionType: {
|
|
|
2570
2570
|
readonly RechargeBonus: "recharge_bonus";
|
|
2571
2571
|
};
|
|
2572
2572
|
export type TransactionType = typeof TransactionType[keyof typeof TransactionType];
|
|
2573
|
+
/**
|
|
2574
|
+
*
|
|
2575
|
+
* @export
|
|
2576
|
+
* @interface TwitterAuthResponse
|
|
2577
|
+
*/
|
|
2578
|
+
export interface TwitterAuthResponse {
|
|
2579
|
+
/**
|
|
2580
|
+
*
|
|
2581
|
+
* @type {string}
|
|
2582
|
+
* @memberof TwitterAuthResponse
|
|
2583
|
+
*/
|
|
2584
|
+
'agent_id': string;
|
|
2585
|
+
/**
|
|
2586
|
+
*
|
|
2587
|
+
* @type {string}
|
|
2588
|
+
* @memberof TwitterAuthResponse
|
|
2589
|
+
*/
|
|
2590
|
+
'url': string;
|
|
2591
|
+
}
|
|
2573
2592
|
/**
|
|
2574
2593
|
* Type of upstream transaction.
|
|
2575
2594
|
* @export
|
|
@@ -2620,7 +2639,7 @@ export interface ValidationErrorLocInner {
|
|
|
2620
2639
|
*/
|
|
2621
2640
|
export declare const AgentApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2622
2641
|
/**
|
|
2623
|
-
* 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
|
|
2642
|
+
* 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
|
|
2624
2643
|
* @summary Create Agent
|
|
2625
2644
|
* @param {AgentUpdate} [agentUpdate]
|
|
2626
2645
|
* @param {*} [options] Override http request option.
|
|
@@ -2671,7 +2690,7 @@ export declare const AgentApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
2671
2690
|
*/
|
|
2672
2691
|
importAgent: (agentId: string, file: File, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2673
2692
|
/**
|
|
2674
|
-
* 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
|
|
2693
|
+
* 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
|
|
2675
2694
|
* @summary Override Agent
|
|
2676
2695
|
* @param {string} agentId ID of the agent to update
|
|
2677
2696
|
* @param {AgentUpdate} [agentUpdate]
|
|
@@ -2689,7 +2708,7 @@ export declare const AgentApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
2689
2708
|
*/
|
|
2690
2709
|
updateAgent: (agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2691
2710
|
/**
|
|
2692
|
-
* 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
|
|
2711
|
+
* 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
|
|
2693
2712
|
* @summary Validate Agent Create
|
|
2694
2713
|
* @param {AgentUpdate} [agentUpdate]
|
|
2695
2714
|
* @param {*} [options] Override http request option.
|
|
@@ -2712,7 +2731,7 @@ export declare const AgentApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
2712
2731
|
*/
|
|
2713
2732
|
export declare const AgentApiFp: (configuration?: Configuration) => {
|
|
2714
2733
|
/**
|
|
2715
|
-
* 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
|
|
2734
|
+
* 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
|
|
2716
2735
|
* @summary Create Agent
|
|
2717
2736
|
* @param {AgentUpdate} [agentUpdate]
|
|
2718
2737
|
* @param {*} [options] Override http request option.
|
|
@@ -2763,7 +2782,7 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
|
|
|
2763
2782
|
*/
|
|
2764
2783
|
importAgent(agentId: string, file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
|
|
2765
2784
|
/**
|
|
2766
|
-
* 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
|
|
2785
|
+
* 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
|
|
2767
2786
|
* @summary Override Agent
|
|
2768
2787
|
* @param {string} agentId ID of the agent to update
|
|
2769
2788
|
* @param {AgentUpdate} [agentUpdate]
|
|
@@ -2781,7 +2800,7 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
|
|
|
2781
2800
|
*/
|
|
2782
2801
|
updateAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
2783
2802
|
/**
|
|
2784
|
-
* 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
|
|
2803
|
+
* 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
|
|
2785
2804
|
* @summary Validate Agent Create
|
|
2786
2805
|
* @param {AgentUpdate} [agentUpdate]
|
|
2787
2806
|
* @param {*} [options] Override http request option.
|
|
@@ -2804,7 +2823,7 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
|
|
|
2804
2823
|
*/
|
|
2805
2824
|
export declare const AgentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2806
2825
|
/**
|
|
2807
|
-
* 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
|
|
2826
|
+
* 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
|
|
2808
2827
|
* @summary Create Agent
|
|
2809
2828
|
* @param {AgentUpdate} [agentUpdate]
|
|
2810
2829
|
* @param {*} [options] Override http request option.
|
|
@@ -2855,7 +2874,7 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
|
|
|
2855
2874
|
*/
|
|
2856
2875
|
importAgent(agentId: string, file: File, options?: RawAxiosRequestConfig): AxiosPromise<string>;
|
|
2857
2876
|
/**
|
|
2858
|
-
* 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
|
|
2877
|
+
* 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
|
|
2859
2878
|
* @summary Override Agent
|
|
2860
2879
|
* @param {string} agentId ID of the agent to update
|
|
2861
2880
|
* @param {AgentUpdate} [agentUpdate]
|
|
@@ -2873,7 +2892,7 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
|
|
|
2873
2892
|
*/
|
|
2874
2893
|
updateAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
2875
2894
|
/**
|
|
2876
|
-
* Validate agent configuration. **Request Body:** * `agent` - Agent configuration **Returns:** * `204 No Content` - Agent configuration is valid **Raises:** * `HTTPException`: - 400: Invalid agent configuration - 422: Invalid agent configuration from intentkit core - 500: Server error
|
|
2895
|
+
* 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
|
|
2877
2896
|
* @summary Validate Agent Create
|
|
2878
2897
|
* @param {AgentUpdate} [agentUpdate]
|
|
2879
2898
|
* @param {*} [options] Override http request option.
|
|
@@ -2898,7 +2917,7 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
|
|
|
2898
2917
|
*/
|
|
2899
2918
|
export declare class AgentApi extends BaseAPI {
|
|
2900
2919
|
/**
|
|
2901
|
-
* 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
|
|
2920
|
+
* 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
|
|
2902
2921
|
* @summary Create Agent
|
|
2903
2922
|
* @param {AgentUpdate} [agentUpdate]
|
|
2904
2923
|
* @param {*} [options] Override http request option.
|
|
@@ -2955,7 +2974,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
2955
2974
|
*/
|
|
2956
2975
|
importAgent(agentId: string, file: File, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
|
|
2957
2976
|
/**
|
|
2958
|
-
* 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
|
|
2977
|
+
* 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
|
|
2959
2978
|
* @summary Override Agent
|
|
2960
2979
|
* @param {string} agentId ID of the agent to update
|
|
2961
2980
|
* @param {AgentUpdate} [agentUpdate]
|
|
@@ -2975,7 +2994,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
2975
2994
|
*/
|
|
2976
2995
|
updateAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
2977
2996
|
/**
|
|
2978
|
-
* 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
|
|
2997
|
+
* 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
|
|
2979
2998
|
* @summary Validate Agent Create
|
|
2980
2999
|
* @param {AgentUpdate} [agentUpdate]
|
|
2981
3000
|
* @param {*} [options] Override http request option.
|
|
@@ -3588,7 +3607,7 @@ export declare const GeneratorApiAxiosParamCreator: (configuration?: Configurati
|
|
|
3588
3607
|
* @param {*} [options] Override http request option.
|
|
3589
3608
|
* @throws {RequiredError}
|
|
3590
3609
|
*/
|
|
3591
|
-
|
|
3610
|
+
generateAgent: (agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3592
3611
|
/**
|
|
3593
3612
|
* 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
|
|
3594
3613
|
* @summary Get Generation Detail by Project ID
|
|
@@ -3596,7 +3615,7 @@ export declare const GeneratorApiAxiosParamCreator: (configuration?: Configurati
|
|
|
3596
3615
|
* @param {*} [options] Override http request option.
|
|
3597
3616
|
* @throws {RequiredError}
|
|
3598
3617
|
*/
|
|
3599
|
-
|
|
3618
|
+
getGenerationHistory: (projectId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3600
3619
|
/**
|
|
3601
3620
|
* 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
|
|
3602
3621
|
* @summary Get Generations List by User
|
|
@@ -3604,7 +3623,7 @@ export declare const GeneratorApiAxiosParamCreator: (configuration?: Configurati
|
|
|
3604
3623
|
* @param {*} [options] Override http request option.
|
|
3605
3624
|
* @throws {RequiredError}
|
|
3606
3625
|
*/
|
|
3607
|
-
|
|
3626
|
+
getGenerations: (limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3608
3627
|
};
|
|
3609
3628
|
/**
|
|
3610
3629
|
* GeneratorApi - functional programming interface
|
|
@@ -3618,7 +3637,7 @@ export declare const GeneratorApiFp: (configuration?: Configuration) => {
|
|
|
3618
3637
|
* @param {*} [options] Override http request option.
|
|
3619
3638
|
* @throws {RequiredError}
|
|
3620
3639
|
*/
|
|
3621
|
-
|
|
3640
|
+
generateAgent(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentGenerateResponse>>;
|
|
3622
3641
|
/**
|
|
3623
3642
|
* 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
|
|
3624
3643
|
* @summary Get Generation Detail by Project ID
|
|
@@ -3626,7 +3645,7 @@ export declare const GeneratorApiFp: (configuration?: Configuration) => {
|
|
|
3626
3645
|
* @param {*} [options] Override http request option.
|
|
3627
3646
|
* @throws {RequiredError}
|
|
3628
3647
|
*/
|
|
3629
|
-
|
|
3648
|
+
getGenerationHistory(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenerationDetailResponse>>;
|
|
3630
3649
|
/**
|
|
3631
3650
|
* 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
|
|
3632
3651
|
* @summary Get Generations List by User
|
|
@@ -3634,7 +3653,7 @@ export declare const GeneratorApiFp: (configuration?: Configuration) => {
|
|
|
3634
3653
|
* @param {*} [options] Override http request option.
|
|
3635
3654
|
* @throws {RequiredError}
|
|
3636
3655
|
*/
|
|
3637
|
-
|
|
3656
|
+
getGenerations(limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenerationsListResponse>>;
|
|
3638
3657
|
};
|
|
3639
3658
|
/**
|
|
3640
3659
|
* GeneratorApi - factory interface
|
|
@@ -3648,7 +3667,7 @@ export declare const GeneratorApiFactory: (configuration?: Configuration, basePa
|
|
|
3648
3667
|
* @param {*} [options] Override http request option.
|
|
3649
3668
|
* @throws {RequiredError}
|
|
3650
3669
|
*/
|
|
3651
|
-
|
|
3670
|
+
generateAgent(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig): AxiosPromise<AgentGenerateResponse>;
|
|
3652
3671
|
/**
|
|
3653
3672
|
* 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
|
|
3654
3673
|
* @summary Get Generation Detail by Project ID
|
|
@@ -3656,7 +3675,7 @@ export declare const GeneratorApiFactory: (configuration?: Configuration, basePa
|
|
|
3656
3675
|
* @param {*} [options] Override http request option.
|
|
3657
3676
|
* @throws {RequiredError}
|
|
3658
3677
|
*/
|
|
3659
|
-
|
|
3678
|
+
getGenerationHistory(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise<GenerationDetailResponse>;
|
|
3660
3679
|
/**
|
|
3661
3680
|
* 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
|
|
3662
3681
|
* @summary Get Generations List by User
|
|
@@ -3664,7 +3683,7 @@ export declare const GeneratorApiFactory: (configuration?: Configuration, basePa
|
|
|
3664
3683
|
* @param {*} [options] Override http request option.
|
|
3665
3684
|
* @throws {RequiredError}
|
|
3666
3685
|
*/
|
|
3667
|
-
|
|
3686
|
+
getGenerations(limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<GenerationsListResponse>;
|
|
3668
3687
|
};
|
|
3669
3688
|
/**
|
|
3670
3689
|
* GeneratorApi - object-oriented interface
|
|
@@ -3681,7 +3700,7 @@ export declare class GeneratorApi extends BaseAPI {
|
|
|
3681
3700
|
* @throws {RequiredError}
|
|
3682
3701
|
* @memberof GeneratorApi
|
|
3683
3702
|
*/
|
|
3684
|
-
|
|
3703
|
+
generateAgent(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentGenerateResponse, any>>;
|
|
3685
3704
|
/**
|
|
3686
3705
|
* 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
|
|
3687
3706
|
* @summary Get Generation Detail by Project ID
|
|
@@ -3690,7 +3709,7 @@ export declare class GeneratorApi extends BaseAPI {
|
|
|
3690
3709
|
* @throws {RequiredError}
|
|
3691
3710
|
* @memberof GeneratorApi
|
|
3692
3711
|
*/
|
|
3693
|
-
|
|
3712
|
+
getGenerationHistory(projectId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenerationDetailResponse, any>>;
|
|
3694
3713
|
/**
|
|
3695
3714
|
* 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
|
|
3696
3715
|
* @summary Get Generations List by User
|
|
@@ -3699,7 +3718,7 @@ export declare class GeneratorApi extends BaseAPI {
|
|
|
3699
3718
|
* @throws {RequiredError}
|
|
3700
3719
|
* @memberof GeneratorApi
|
|
3701
3720
|
*/
|
|
3702
|
-
|
|
3721
|
+
getGenerations(limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenerationsListResponse, any>>;
|
|
3703
3722
|
}
|
|
3704
3723
|
/**
|
|
3705
3724
|
* HealthApi - axios parameter creator
|
|
@@ -3943,6 +3962,143 @@ export declare class MetadataApi extends BaseAPI {
|
|
|
3943
3962
|
*/
|
|
3944
3963
|
getSkillsMetadataSkillsGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Skill[], any>>;
|
|
3945
3964
|
}
|
|
3965
|
+
/**
|
|
3966
|
+
* OAuthApi - axios parameter creator
|
|
3967
|
+
* @export
|
|
3968
|
+
*/
|
|
3969
|
+
export declare const OAuthApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3970
|
+
/**
|
|
3971
|
+
* Get Twitter OAuth2 authorization URL. **Query Parameters:** * `agent_id` - ID of the agent to authenticate * `redirect_uri` - DApp URI to redirect to after authorization from agentkit to DApp **Returns:** * Object containing agent_id and authorization URL
|
|
3972
|
+
* @summary Get Twitter Auth Url
|
|
3973
|
+
* @param {string} agentId
|
|
3974
|
+
* @param {string} redirectUri
|
|
3975
|
+
* @param {*} [options] Override http request option.
|
|
3976
|
+
* @throws {RequiredError}
|
|
3977
|
+
*/
|
|
3978
|
+
getTwitterAuthUrl: (agentId: string, redirectUri: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3979
|
+
/**
|
|
3980
|
+
* 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
|
|
3981
|
+
* @summary Twitter Oauth Callback
|
|
3982
|
+
* @param {string} state
|
|
3983
|
+
* @param {string | null} [code]
|
|
3984
|
+
* @param {string | null} [error]
|
|
3985
|
+
* @param {*} [options] Override http request option.
|
|
3986
|
+
* @throws {RequiredError}
|
|
3987
|
+
*/
|
|
3988
|
+
twitterOauthCallback: (state: string, code?: string | null, error?: string | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3989
|
+
/**
|
|
3990
|
+
* Unlink X from an agent. **Path Parameters:** * `agent_id` - ID of the agent to unlink from X **Raises:** * `HTTPException`: - 404: Agent not found
|
|
3991
|
+
* @summary Unlink Twitter Endpoint
|
|
3992
|
+
* @param {string} agentId ID of the agent to unlink from X
|
|
3993
|
+
* @param {*} [options] Override http request option.
|
|
3994
|
+
* @throws {RequiredError}
|
|
3995
|
+
*/
|
|
3996
|
+
unlinkTwitter: (agentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3997
|
+
};
|
|
3998
|
+
/**
|
|
3999
|
+
* OAuthApi - functional programming interface
|
|
4000
|
+
* @export
|
|
4001
|
+
*/
|
|
4002
|
+
export declare const OAuthApiFp: (configuration?: Configuration) => {
|
|
4003
|
+
/**
|
|
4004
|
+
* Get Twitter OAuth2 authorization URL. **Query Parameters:** * `agent_id` - ID of the agent to authenticate * `redirect_uri` - DApp URI to redirect to after authorization from agentkit to DApp **Returns:** * Object containing agent_id and authorization URL
|
|
4005
|
+
* @summary Get Twitter Auth Url
|
|
4006
|
+
* @param {string} agentId
|
|
4007
|
+
* @param {string} redirectUri
|
|
4008
|
+
* @param {*} [options] Override http request option.
|
|
4009
|
+
* @throws {RequiredError}
|
|
4010
|
+
*/
|
|
4011
|
+
getTwitterAuthUrl(agentId: string, redirectUri: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TwitterAuthResponse>>;
|
|
4012
|
+
/**
|
|
4013
|
+
* 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
|
|
4014
|
+
* @summary Twitter Oauth Callback
|
|
4015
|
+
* @param {string} state
|
|
4016
|
+
* @param {string | null} [code]
|
|
4017
|
+
* @param {string | null} [error]
|
|
4018
|
+
* @param {*} [options] Override http request option.
|
|
4019
|
+
* @throws {RequiredError}
|
|
4020
|
+
*/
|
|
4021
|
+
twitterOauthCallback(state: string, code?: string | null, error?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
4022
|
+
/**
|
|
4023
|
+
* Unlink X from an agent. **Path Parameters:** * `agent_id` - ID of the agent to unlink from X **Raises:** * `HTTPException`: - 404: Agent not found
|
|
4024
|
+
* @summary Unlink Twitter Endpoint
|
|
4025
|
+
* @param {string} agentId ID of the agent to unlink from X
|
|
4026
|
+
* @param {*} [options] Override http request option.
|
|
4027
|
+
* @throws {RequiredError}
|
|
4028
|
+
*/
|
|
4029
|
+
unlinkTwitter(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
4030
|
+
};
|
|
4031
|
+
/**
|
|
4032
|
+
* OAuthApi - factory interface
|
|
4033
|
+
* @export
|
|
4034
|
+
*/
|
|
4035
|
+
export declare const OAuthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
4036
|
+
/**
|
|
4037
|
+
* Get Twitter OAuth2 authorization URL. **Query Parameters:** * `agent_id` - ID of the agent to authenticate * `redirect_uri` - DApp URI to redirect to after authorization from agentkit to DApp **Returns:** * Object containing agent_id and authorization URL
|
|
4038
|
+
* @summary Get Twitter Auth Url
|
|
4039
|
+
* @param {string} agentId
|
|
4040
|
+
* @param {string} redirectUri
|
|
4041
|
+
* @param {*} [options] Override http request option.
|
|
4042
|
+
* @throws {RequiredError}
|
|
4043
|
+
*/
|
|
4044
|
+
getTwitterAuthUrl(agentId: string, redirectUri: string, options?: RawAxiosRequestConfig): AxiosPromise<TwitterAuthResponse>;
|
|
4045
|
+
/**
|
|
4046
|
+
* 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
|
|
4047
|
+
* @summary Twitter Oauth Callback
|
|
4048
|
+
* @param {string} state
|
|
4049
|
+
* @param {string | null} [code]
|
|
4050
|
+
* @param {string | null} [error]
|
|
4051
|
+
* @param {*} [options] Override http request option.
|
|
4052
|
+
* @throws {RequiredError}
|
|
4053
|
+
*/
|
|
4054
|
+
twitterOauthCallback(state: string, code?: string | null, error?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
4055
|
+
/**
|
|
4056
|
+
* Unlink X from an agent. **Path Parameters:** * `agent_id` - ID of the agent to unlink from X **Raises:** * `HTTPException`: - 404: Agent not found
|
|
4057
|
+
* @summary Unlink Twitter Endpoint
|
|
4058
|
+
* @param {string} agentId ID of the agent to unlink from X
|
|
4059
|
+
* @param {*} [options] Override http request option.
|
|
4060
|
+
* @throws {RequiredError}
|
|
4061
|
+
*/
|
|
4062
|
+
unlinkTwitter(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
4063
|
+
};
|
|
4064
|
+
/**
|
|
4065
|
+
* OAuthApi - object-oriented interface
|
|
4066
|
+
* @export
|
|
4067
|
+
* @class OAuthApi
|
|
4068
|
+
* @extends {BaseAPI}
|
|
4069
|
+
*/
|
|
4070
|
+
export declare class OAuthApi extends BaseAPI {
|
|
4071
|
+
/**
|
|
4072
|
+
* Get Twitter OAuth2 authorization URL. **Query Parameters:** * `agent_id` - ID of the agent to authenticate * `redirect_uri` - DApp URI to redirect to after authorization from agentkit to DApp **Returns:** * Object containing agent_id and authorization URL
|
|
4073
|
+
* @summary Get Twitter Auth Url
|
|
4074
|
+
* @param {string} agentId
|
|
4075
|
+
* @param {string} redirectUri
|
|
4076
|
+
* @param {*} [options] Override http request option.
|
|
4077
|
+
* @throws {RequiredError}
|
|
4078
|
+
* @memberof OAuthApi
|
|
4079
|
+
*/
|
|
4080
|
+
getTwitterAuthUrl(agentId: string, redirectUri: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TwitterAuthResponse, any>>;
|
|
4081
|
+
/**
|
|
4082
|
+
* 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
|
|
4083
|
+
* @summary Twitter Oauth Callback
|
|
4084
|
+
* @param {string} state
|
|
4085
|
+
* @param {string | null} [code]
|
|
4086
|
+
* @param {string | null} [error]
|
|
4087
|
+
* @param {*} [options] Override http request option.
|
|
4088
|
+
* @throws {RequiredError}
|
|
4089
|
+
* @memberof OAuthApi
|
|
4090
|
+
*/
|
|
4091
|
+
twitterOauthCallback(state: string, code?: string | null, error?: string | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
4092
|
+
/**
|
|
4093
|
+
* Unlink X from an agent. **Path Parameters:** * `agent_id` - ID of the agent to unlink from X **Raises:** * `HTTPException`: - 404: Agent not found
|
|
4094
|
+
* @summary Unlink Twitter Endpoint
|
|
4095
|
+
* @param {string} agentId ID of the agent to unlink from X
|
|
4096
|
+
* @param {*} [options] Override http request option.
|
|
4097
|
+
* @throws {RequiredError}
|
|
4098
|
+
* @memberof OAuthApi
|
|
4099
|
+
*/
|
|
4100
|
+
unlinkTwitter(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
4101
|
+
}
|
|
3946
4102
|
/**
|
|
3947
4103
|
* UserApi - axios parameter creator
|
|
3948
4104
|
* @export
|