@crestal/nation-sdk 0.1.28 → 0.1.30
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 +7 -0
- package/README.md +12 -2
- package/api.ts +630 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +387 -1
- package/dist/api.js +569 -2
- 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/AgentGenerateRequest.md +25 -0
- package/docs/AgentGenerateResponse.md +31 -0
- package/docs/GenerationDetailResponse.md +35 -0
- package/docs/GenerationsListResponse.md +21 -0
- package/docs/GeneratorApi.md +167 -0
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/docs/OAuthApi.md +122 -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.30
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -369,6 +369,76 @@ export interface AgentExample {
|
|
|
369
369
|
*/
|
|
370
370
|
'prompt': string;
|
|
371
371
|
}
|
|
372
|
+
/**
|
|
373
|
+
* Request model for agent generation.
|
|
374
|
+
* @export
|
|
375
|
+
* @interface AgentGenerateRequest
|
|
376
|
+
*/
|
|
377
|
+
export interface AgentGenerateRequest {
|
|
378
|
+
/**
|
|
379
|
+
* Natural language description of the agent\'s desired capabilities
|
|
380
|
+
* @type {string}
|
|
381
|
+
* @memberof AgentGenerateRequest
|
|
382
|
+
*/
|
|
383
|
+
'prompt': string;
|
|
384
|
+
/**
|
|
385
|
+
*
|
|
386
|
+
* @type {AgentUpdate}
|
|
387
|
+
* @memberof AgentGenerateRequest
|
|
388
|
+
*/
|
|
389
|
+
'existing_agent'?: AgentUpdate | null;
|
|
390
|
+
/**
|
|
391
|
+
*
|
|
392
|
+
* @type {string}
|
|
393
|
+
* @memberof AgentGenerateRequest
|
|
394
|
+
*/
|
|
395
|
+
'project_id'?: string | null;
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* Response model for agent generation.
|
|
399
|
+
* @export
|
|
400
|
+
* @interface AgentGenerateResponse
|
|
401
|
+
*/
|
|
402
|
+
export interface AgentGenerateResponse {
|
|
403
|
+
/**
|
|
404
|
+
* The generated agent schema
|
|
405
|
+
* @type {object}
|
|
406
|
+
* @memberof AgentGenerateResponse
|
|
407
|
+
*/
|
|
408
|
+
'agent': object;
|
|
409
|
+
/**
|
|
410
|
+
* Project ID for this conversation session
|
|
411
|
+
* @type {string}
|
|
412
|
+
* @memberof AgentGenerateResponse
|
|
413
|
+
*/
|
|
414
|
+
'project_id': string;
|
|
415
|
+
/**
|
|
416
|
+
* Human-readable summary of the generated agent
|
|
417
|
+
* @type {string}
|
|
418
|
+
* @memberof AgentGenerateResponse
|
|
419
|
+
*/
|
|
420
|
+
'summary': string;
|
|
421
|
+
/**
|
|
422
|
+
* Generated tags for the agent as ID objects: [{\'id\': 1}, {\'id\': 2}]
|
|
423
|
+
* @type {Array<{ [key: string]: number; }>}
|
|
424
|
+
* @memberof AgentGenerateResponse
|
|
425
|
+
*/
|
|
426
|
+
'tags'?: Array<{
|
|
427
|
+
[key: string]: number;
|
|
428
|
+
}>;
|
|
429
|
+
/**
|
|
430
|
+
* List of autonomous tasks generated for the agent
|
|
431
|
+
* @type {Array<object>}
|
|
432
|
+
* @memberof AgentGenerateResponse
|
|
433
|
+
*/
|
|
434
|
+
'autonomous_tasks'?: Array<object>;
|
|
435
|
+
/**
|
|
436
|
+
* List of skills that were activated based on the prompt
|
|
437
|
+
* @type {Array<string>}
|
|
438
|
+
* @memberof AgentGenerateResponse
|
|
439
|
+
*/
|
|
440
|
+
'activated_skills'?: Array<string>;
|
|
441
|
+
}
|
|
372
442
|
/**
|
|
373
443
|
* Paginated response model for agents list. Contains a list of agents, a flag indicating if more items are available, and a cursor for pagination.
|
|
374
444
|
* @export
|
|
@@ -2140,6 +2210,74 @@ export type EventType = typeof EventType[keyof typeof EventType];
|
|
|
2140
2210
|
*/
|
|
2141
2211
|
export interface FeePercentage {
|
|
2142
2212
|
}
|
|
2213
|
+
/**
|
|
2214
|
+
* Response model for single generation detail.
|
|
2215
|
+
* @export
|
|
2216
|
+
* @interface GenerationDetailResponse
|
|
2217
|
+
*/
|
|
2218
|
+
export interface GenerationDetailResponse {
|
|
2219
|
+
/**
|
|
2220
|
+
* Project ID
|
|
2221
|
+
* @type {string}
|
|
2222
|
+
* @memberof GenerationDetailResponse
|
|
2223
|
+
*/
|
|
2224
|
+
'project_id': string;
|
|
2225
|
+
/**
|
|
2226
|
+
*
|
|
2227
|
+
* @type {string}
|
|
2228
|
+
* @memberof GenerationDetailResponse
|
|
2229
|
+
*/
|
|
2230
|
+
'user_id'?: string | null;
|
|
2231
|
+
/**
|
|
2232
|
+
*
|
|
2233
|
+
* @type {string}
|
|
2234
|
+
* @memberof GenerationDetailResponse
|
|
2235
|
+
*/
|
|
2236
|
+
'created_at'?: string | null;
|
|
2237
|
+
/**
|
|
2238
|
+
*
|
|
2239
|
+
* @type {string}
|
|
2240
|
+
* @memberof GenerationDetailResponse
|
|
2241
|
+
*/
|
|
2242
|
+
'last_activity'?: string | null;
|
|
2243
|
+
/**
|
|
2244
|
+
* Number of messages in conversation
|
|
2245
|
+
* @type {number}
|
|
2246
|
+
* @memberof GenerationDetailResponse
|
|
2247
|
+
*/
|
|
2248
|
+
'message_count': number;
|
|
2249
|
+
/**
|
|
2250
|
+
*
|
|
2251
|
+
* @type {object}
|
|
2252
|
+
* @memberof GenerationDetailResponse
|
|
2253
|
+
*/
|
|
2254
|
+
'last_message'?: object | null;
|
|
2255
|
+
/**
|
|
2256
|
+
*
|
|
2257
|
+
* @type {object}
|
|
2258
|
+
* @memberof GenerationDetailResponse
|
|
2259
|
+
*/
|
|
2260
|
+
'first_message'?: object | null;
|
|
2261
|
+
/**
|
|
2262
|
+
* Full conversation history
|
|
2263
|
+
* @type {Array<object>}
|
|
2264
|
+
* @memberof GenerationDetailResponse
|
|
2265
|
+
*/
|
|
2266
|
+
'conversation_history': Array<object>;
|
|
2267
|
+
}
|
|
2268
|
+
/**
|
|
2269
|
+
* Response model for generations list.
|
|
2270
|
+
* @export
|
|
2271
|
+
* @interface GenerationsListResponse
|
|
2272
|
+
*/
|
|
2273
|
+
export interface GenerationsListResponse {
|
|
2274
|
+
/**
|
|
2275
|
+
* List of recent projects with their conversation history
|
|
2276
|
+
* @type {Array<object>}
|
|
2277
|
+
* @memberof GenerationsListResponse
|
|
2278
|
+
*/
|
|
2279
|
+
'projects': Array<object>;
|
|
2280
|
+
}
|
|
2143
2281
|
/**
|
|
2144
2282
|
*
|
|
2145
2283
|
* @export
|
|
@@ -2432,6 +2570,25 @@ export declare const TransactionType: {
|
|
|
2432
2570
|
readonly RechargeBonus: "recharge_bonus";
|
|
2433
2571
|
};
|
|
2434
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
|
+
}
|
|
2435
2592
|
/**
|
|
2436
2593
|
* Type of upstream transaction.
|
|
2437
2594
|
* @export
|
|
@@ -3438,6 +3595,131 @@ export declare class CreditApi extends BaseAPI {
|
|
|
3438
3595
|
*/
|
|
3439
3596
|
listUserTransactions(txType?: Array<TransactionType> | null, creditDebit?: CreditDebit | null, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditTransactionsResponse, any>>;
|
|
3440
3597
|
}
|
|
3598
|
+
/**
|
|
3599
|
+
* GeneratorApi - axios parameter creator
|
|
3600
|
+
* @export
|
|
3601
|
+
*/
|
|
3602
|
+
export declare const GeneratorApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3603
|
+
/**
|
|
3604
|
+
* Generate an agent schema from a natural language prompt. Converts plain English descriptions into complete, validated agent configurations. Automatically identifies required skills, sets up configurations, detects autonomous task patterns, and ensures everything works correctly with intelligent error correction. **Autonomous Task Detection:** The API can automatically detect scheduling patterns in prompts like: - \"Buy 0.1 ETH every hour\" → Creates 60-minute autonomous task with CDP trade skill - \"Check portfolio daily\" → Creates 24-hour autonomous task with portfolio skills - \"Post tweet every 30 minutes\" → Creates 30-minute autonomous task with Twitter skill **Request Body:** * `prompt` - Natural language description of the agent\'s desired capabilities and schedule * `existing_agent` - Optional existing agent to update (preserves current setup while adding capabilities) * `user_id` - Required user ID for logging and rate limiting * `project_id` - Optional project ID for conversation history **Returns:** * `AgentGenerateResponse` - Contains agent schema, autonomous tasks, activated skills, project ID, and summary **Response Fields:** * `agent` - Complete agent schema with skills and autonomous configurations * `autonomous_tasks` - List of autonomous tasks detected and configured * `activated_skills` - List of skills that were activated based on the prompt * `project_id` - Project ID for conversation tracking * `summary` - Human-readable summary of the generated agent * `tags` - Generated tags for categorization **Raises:** * `HTTPException`: - 400: Invalid request (missing user_id, invalid prompt format or length) - 500: Agent generation failed after retries
|
|
3605
|
+
* @summary Generate Agent from Natural Language Prompt
|
|
3606
|
+
* @param {AgentGenerateRequest} agentGenerateRequest
|
|
3607
|
+
* @param {*} [options] Override http request option.
|
|
3608
|
+
* @throws {RequiredError}
|
|
3609
|
+
*/
|
|
3610
|
+
generateAgentGeneratorAgentGeneratePost: (agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3611
|
+
/**
|
|
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
|
|
3613
|
+
* @summary Get Generation Detail by Project ID
|
|
3614
|
+
* @param {string} projectId
|
|
3615
|
+
* @param {*} [options] Override http request option.
|
|
3616
|
+
* @throws {RequiredError}
|
|
3617
|
+
*/
|
|
3618
|
+
getGenerationDetailGeneratorAgentGenerationsProjectIdGet: (projectId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3619
|
+
/**
|
|
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
|
|
3621
|
+
* @summary Get Generations List by User
|
|
3622
|
+
* @param {number} [limit]
|
|
3623
|
+
* @param {*} [options] Override http request option.
|
|
3624
|
+
* @throws {RequiredError}
|
|
3625
|
+
*/
|
|
3626
|
+
getGenerationsGeneratorAgentGenerationsGet: (limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3627
|
+
};
|
|
3628
|
+
/**
|
|
3629
|
+
* GeneratorApi - functional programming interface
|
|
3630
|
+
* @export
|
|
3631
|
+
*/
|
|
3632
|
+
export declare const GeneratorApiFp: (configuration?: Configuration) => {
|
|
3633
|
+
/**
|
|
3634
|
+
* Generate an agent schema from a natural language prompt. Converts plain English descriptions into complete, validated agent configurations. Automatically identifies required skills, sets up configurations, detects autonomous task patterns, and ensures everything works correctly with intelligent error correction. **Autonomous Task Detection:** The API can automatically detect scheduling patterns in prompts like: - \"Buy 0.1 ETH every hour\" → Creates 60-minute autonomous task with CDP trade skill - \"Check portfolio daily\" → Creates 24-hour autonomous task with portfolio skills - \"Post tweet every 30 minutes\" → Creates 30-minute autonomous task with Twitter skill **Request Body:** * `prompt` - Natural language description of the agent\'s desired capabilities and schedule * `existing_agent` - Optional existing agent to update (preserves current setup while adding capabilities) * `user_id` - Required user ID for logging and rate limiting * `project_id` - Optional project ID for conversation history **Returns:** * `AgentGenerateResponse` - Contains agent schema, autonomous tasks, activated skills, project ID, and summary **Response Fields:** * `agent` - Complete agent schema with skills and autonomous configurations * `autonomous_tasks` - List of autonomous tasks detected and configured * `activated_skills` - List of skills that were activated based on the prompt * `project_id` - Project ID for conversation tracking * `summary` - Human-readable summary of the generated agent * `tags` - Generated tags for categorization **Raises:** * `HTTPException`: - 400: Invalid request (missing user_id, invalid prompt format or length) - 500: Agent generation failed after retries
|
|
3635
|
+
* @summary Generate Agent from Natural Language Prompt
|
|
3636
|
+
* @param {AgentGenerateRequest} agentGenerateRequest
|
|
3637
|
+
* @param {*} [options] Override http request option.
|
|
3638
|
+
* @throws {RequiredError}
|
|
3639
|
+
*/
|
|
3640
|
+
generateAgentGeneratorAgentGeneratePost(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentGenerateResponse>>;
|
|
3641
|
+
/**
|
|
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
|
|
3643
|
+
* @summary Get Generation Detail by Project ID
|
|
3644
|
+
* @param {string} projectId
|
|
3645
|
+
* @param {*} [options] Override http request option.
|
|
3646
|
+
* @throws {RequiredError}
|
|
3647
|
+
*/
|
|
3648
|
+
getGenerationDetailGeneratorAgentGenerationsProjectIdGet(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenerationDetailResponse>>;
|
|
3649
|
+
/**
|
|
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
|
|
3651
|
+
* @summary Get Generations List by User
|
|
3652
|
+
* @param {number} [limit]
|
|
3653
|
+
* @param {*} [options] Override http request option.
|
|
3654
|
+
* @throws {RequiredError}
|
|
3655
|
+
*/
|
|
3656
|
+
getGenerationsGeneratorAgentGenerationsGet(limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenerationsListResponse>>;
|
|
3657
|
+
};
|
|
3658
|
+
/**
|
|
3659
|
+
* GeneratorApi - factory interface
|
|
3660
|
+
* @export
|
|
3661
|
+
*/
|
|
3662
|
+
export declare const GeneratorApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3663
|
+
/**
|
|
3664
|
+
* Generate an agent schema from a natural language prompt. Converts plain English descriptions into complete, validated agent configurations. Automatically identifies required skills, sets up configurations, detects autonomous task patterns, and ensures everything works correctly with intelligent error correction. **Autonomous Task Detection:** The API can automatically detect scheduling patterns in prompts like: - \"Buy 0.1 ETH every hour\" → Creates 60-minute autonomous task with CDP trade skill - \"Check portfolio daily\" → Creates 24-hour autonomous task with portfolio skills - \"Post tweet every 30 minutes\" → Creates 30-minute autonomous task with Twitter skill **Request Body:** * `prompt` - Natural language description of the agent\'s desired capabilities and schedule * `existing_agent` - Optional existing agent to update (preserves current setup while adding capabilities) * `user_id` - Required user ID for logging and rate limiting * `project_id` - Optional project ID for conversation history **Returns:** * `AgentGenerateResponse` - Contains agent schema, autonomous tasks, activated skills, project ID, and summary **Response Fields:** * `agent` - Complete agent schema with skills and autonomous configurations * `autonomous_tasks` - List of autonomous tasks detected and configured * `activated_skills` - List of skills that were activated based on the prompt * `project_id` - Project ID for conversation tracking * `summary` - Human-readable summary of the generated agent * `tags` - Generated tags for categorization **Raises:** * `HTTPException`: - 400: Invalid request (missing user_id, invalid prompt format or length) - 500: Agent generation failed after retries
|
|
3665
|
+
* @summary Generate Agent from Natural Language Prompt
|
|
3666
|
+
* @param {AgentGenerateRequest} agentGenerateRequest
|
|
3667
|
+
* @param {*} [options] Override http request option.
|
|
3668
|
+
* @throws {RequiredError}
|
|
3669
|
+
*/
|
|
3670
|
+
generateAgentGeneratorAgentGeneratePost(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig): AxiosPromise<AgentGenerateResponse>;
|
|
3671
|
+
/**
|
|
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
|
|
3673
|
+
* @summary Get Generation Detail by Project ID
|
|
3674
|
+
* @param {string} projectId
|
|
3675
|
+
* @param {*} [options] Override http request option.
|
|
3676
|
+
* @throws {RequiredError}
|
|
3677
|
+
*/
|
|
3678
|
+
getGenerationDetailGeneratorAgentGenerationsProjectIdGet(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise<GenerationDetailResponse>;
|
|
3679
|
+
/**
|
|
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
|
|
3681
|
+
* @summary Get Generations List by User
|
|
3682
|
+
* @param {number} [limit]
|
|
3683
|
+
* @param {*} [options] Override http request option.
|
|
3684
|
+
* @throws {RequiredError}
|
|
3685
|
+
*/
|
|
3686
|
+
getGenerationsGeneratorAgentGenerationsGet(limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<GenerationsListResponse>;
|
|
3687
|
+
};
|
|
3688
|
+
/**
|
|
3689
|
+
* GeneratorApi - object-oriented interface
|
|
3690
|
+
* @export
|
|
3691
|
+
* @class GeneratorApi
|
|
3692
|
+
* @extends {BaseAPI}
|
|
3693
|
+
*/
|
|
3694
|
+
export declare class GeneratorApi extends BaseAPI {
|
|
3695
|
+
/**
|
|
3696
|
+
* Generate an agent schema from a natural language prompt. Converts plain English descriptions into complete, validated agent configurations. Automatically identifies required skills, sets up configurations, detects autonomous task patterns, and ensures everything works correctly with intelligent error correction. **Autonomous Task Detection:** The API can automatically detect scheduling patterns in prompts like: - \"Buy 0.1 ETH every hour\" → Creates 60-minute autonomous task with CDP trade skill - \"Check portfolio daily\" → Creates 24-hour autonomous task with portfolio skills - \"Post tweet every 30 minutes\" → Creates 30-minute autonomous task with Twitter skill **Request Body:** * `prompt` - Natural language description of the agent\'s desired capabilities and schedule * `existing_agent` - Optional existing agent to update (preserves current setup while adding capabilities) * `user_id` - Required user ID for logging and rate limiting * `project_id` - Optional project ID for conversation history **Returns:** * `AgentGenerateResponse` - Contains agent schema, autonomous tasks, activated skills, project ID, and summary **Response Fields:** * `agent` - Complete agent schema with skills and autonomous configurations * `autonomous_tasks` - List of autonomous tasks detected and configured * `activated_skills` - List of skills that were activated based on the prompt * `project_id` - Project ID for conversation tracking * `summary` - Human-readable summary of the generated agent * `tags` - Generated tags for categorization **Raises:** * `HTTPException`: - 400: Invalid request (missing user_id, invalid prompt format or length) - 500: Agent generation failed after retries
|
|
3697
|
+
* @summary Generate Agent from Natural Language Prompt
|
|
3698
|
+
* @param {AgentGenerateRequest} agentGenerateRequest
|
|
3699
|
+
* @param {*} [options] Override http request option.
|
|
3700
|
+
* @throws {RequiredError}
|
|
3701
|
+
* @memberof GeneratorApi
|
|
3702
|
+
*/
|
|
3703
|
+
generateAgentGeneratorAgentGeneratePost(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentGenerateResponse, any>>;
|
|
3704
|
+
/**
|
|
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
|
|
3706
|
+
* @summary Get Generation Detail by Project ID
|
|
3707
|
+
* @param {string} projectId
|
|
3708
|
+
* @param {*} [options] Override http request option.
|
|
3709
|
+
* @throws {RequiredError}
|
|
3710
|
+
* @memberof GeneratorApi
|
|
3711
|
+
*/
|
|
3712
|
+
getGenerationDetailGeneratorAgentGenerationsProjectIdGet(projectId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenerationDetailResponse, any>>;
|
|
3713
|
+
/**
|
|
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
|
|
3715
|
+
* @summary Get Generations List by User
|
|
3716
|
+
* @param {number} [limit]
|
|
3717
|
+
* @param {*} [options] Override http request option.
|
|
3718
|
+
* @throws {RequiredError}
|
|
3719
|
+
* @memberof GeneratorApi
|
|
3720
|
+
*/
|
|
3721
|
+
getGenerationsGeneratorAgentGenerationsGet(limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenerationsListResponse, any>>;
|
|
3722
|
+
}
|
|
3441
3723
|
/**
|
|
3442
3724
|
* HealthApi - axios parameter creator
|
|
3443
3725
|
* @export
|
|
@@ -3680,6 +3962,110 @@ export declare class MetadataApi extends BaseAPI {
|
|
|
3680
3962
|
*/
|
|
3681
3963
|
getSkillsMetadataSkillsGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Skill[], any>>;
|
|
3682
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
|
+
getTwitterAuthUrlOauthTwitterGet: (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
|
+
twitterOauthCallbackOauthTwitterCallbackGet: (state: string, code?: string | null, error?: string | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3989
|
+
};
|
|
3990
|
+
/**
|
|
3991
|
+
* OAuthApi - functional programming interface
|
|
3992
|
+
* @export
|
|
3993
|
+
*/
|
|
3994
|
+
export declare const OAuthApiFp: (configuration?: Configuration) => {
|
|
3995
|
+
/**
|
|
3996
|
+
* 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
|
|
3997
|
+
* @summary Get Twitter Auth Url
|
|
3998
|
+
* @param {string} agentId
|
|
3999
|
+
* @param {string} redirectUri
|
|
4000
|
+
* @param {*} [options] Override http request option.
|
|
4001
|
+
* @throws {RequiredError}
|
|
4002
|
+
*/
|
|
4003
|
+
getTwitterAuthUrlOauthTwitterGet(agentId: string, redirectUri: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TwitterAuthResponse>>;
|
|
4004
|
+
/**
|
|
4005
|
+
* 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
|
|
4006
|
+
* @summary Twitter Oauth Callback
|
|
4007
|
+
* @param {string} state
|
|
4008
|
+
* @param {string | null} [code]
|
|
4009
|
+
* @param {string | null} [error]
|
|
4010
|
+
* @param {*} [options] Override http request option.
|
|
4011
|
+
* @throws {RequiredError}
|
|
4012
|
+
*/
|
|
4013
|
+
twitterOauthCallbackOauthTwitterCallbackGet(state: string, code?: string | null, error?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
4014
|
+
};
|
|
4015
|
+
/**
|
|
4016
|
+
* OAuthApi - factory interface
|
|
4017
|
+
* @export
|
|
4018
|
+
*/
|
|
4019
|
+
export declare const OAuthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
4020
|
+
/**
|
|
4021
|
+
* 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
|
|
4022
|
+
* @summary Get Twitter Auth Url
|
|
4023
|
+
* @param {string} agentId
|
|
4024
|
+
* @param {string} redirectUri
|
|
4025
|
+
* @param {*} [options] Override http request option.
|
|
4026
|
+
* @throws {RequiredError}
|
|
4027
|
+
*/
|
|
4028
|
+
getTwitterAuthUrlOauthTwitterGet(agentId: string, redirectUri: string, options?: RawAxiosRequestConfig): AxiosPromise<TwitterAuthResponse>;
|
|
4029
|
+
/**
|
|
4030
|
+
* 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
|
|
4031
|
+
* @summary Twitter Oauth Callback
|
|
4032
|
+
* @param {string} state
|
|
4033
|
+
* @param {string | null} [code]
|
|
4034
|
+
* @param {string | null} [error]
|
|
4035
|
+
* @param {*} [options] Override http request option.
|
|
4036
|
+
* @throws {RequiredError}
|
|
4037
|
+
*/
|
|
4038
|
+
twitterOauthCallbackOauthTwitterCallbackGet(state: string, code?: string | null, error?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
4039
|
+
};
|
|
4040
|
+
/**
|
|
4041
|
+
* OAuthApi - object-oriented interface
|
|
4042
|
+
* @export
|
|
4043
|
+
* @class OAuthApi
|
|
4044
|
+
* @extends {BaseAPI}
|
|
4045
|
+
*/
|
|
4046
|
+
export declare class OAuthApi extends BaseAPI {
|
|
4047
|
+
/**
|
|
4048
|
+
* 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
|
|
4049
|
+
* @summary Get Twitter Auth Url
|
|
4050
|
+
* @param {string} agentId
|
|
4051
|
+
* @param {string} redirectUri
|
|
4052
|
+
* @param {*} [options] Override http request option.
|
|
4053
|
+
* @throws {RequiredError}
|
|
4054
|
+
* @memberof OAuthApi
|
|
4055
|
+
*/
|
|
4056
|
+
getTwitterAuthUrlOauthTwitterGet(agentId: string, redirectUri: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TwitterAuthResponse, any>>;
|
|
4057
|
+
/**
|
|
4058
|
+
* 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
|
|
4059
|
+
* @summary Twitter Oauth Callback
|
|
4060
|
+
* @param {string} state
|
|
4061
|
+
* @param {string | null} [code]
|
|
4062
|
+
* @param {string | null} [error]
|
|
4063
|
+
* @param {*} [options] Override http request option.
|
|
4064
|
+
* @throws {RequiredError}
|
|
4065
|
+
* @memberof OAuthApi
|
|
4066
|
+
*/
|
|
4067
|
+
twitterOauthCallbackOauthTwitterCallbackGet(state: string, code?: string | null, error?: string | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
4068
|
+
}
|
|
3683
4069
|
/**
|
|
3684
4070
|
* UserApi - axios parameter creator
|
|
3685
4071
|
* @export
|