@crestal/nation-sdk 0.8.38 → 0.8.41

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.
@@ -11,12 +11,9 @@ docs/AgentApi.md
11
11
  docs/AgentApiKeyResponse.md
12
12
  docs/AgentAssetsResponse.md
13
13
  docs/AgentAutonomous.md
14
- docs/AgentCreate.md
15
14
  docs/AgentDeployRequest.md
16
15
  docs/AgentDraft.md
17
16
  docs/AgentExample.md
18
- docs/AgentGenerateRequest.md
19
- docs/AgentGenerateResponse.md
20
17
  docs/AgentLinkedAccountsResponse.md
21
18
  docs/AgentListResponse.md
22
19
  docs/AgentPublicInfo.md
@@ -51,9 +48,6 @@ docs/DraftApi.md
51
48
  docs/EventType.md
52
49
  docs/FeePercentage.md
53
50
  docs/FileUploadResponse.md
54
- docs/GenerationDetailResponse.md
55
- docs/GenerationsListResponse.md
56
- docs/GeneratorApi.md
57
51
  docs/HTTPValidationError.md
58
52
  docs/HealthApi.md
59
53
  docs/LLMModelInfoWithProviderName.md
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @crestal/nation-sdk@0.8.38
1
+ ## @crestal/nation-sdk@0.8.41
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.8.38 --save
39
+ npm install @crestal/nation-sdk@0.8.41 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -95,9 +95,6 @@ Class | Method | HTTP request | Description
95
95
  *DraftApi* | [**getAgentLatestDraft**](docs/DraftApi.md#getagentlatestdraft) | **GET** /agents/{agent_id}/draft/latest | Get Agent Latest Draft
96
96
  *DraftApi* | [**getUserUnpublishedDrafts**](docs/DraftApi.md#getuserunpublisheddrafts) | **GET** /agent/drafts | Get User Unpublished Drafts
97
97
  *DraftApi* | [**updateAgentDraft**](docs/DraftApi.md#updateagentdraft) | **PUT** /agents/{agent_id}/draft | Update Agent Draft
98
- *GeneratorApi* | [**generateAgent**](docs/GeneratorApi.md#generateagent) | **POST** /generator/agent/generate | Generate Agent from Natural Language Prompt
99
- *GeneratorApi* | [**getGenerationHistory**](docs/GeneratorApi.md#getgenerationhistory) | **GET** /generator/agent/generations/{project_id} | Get Generation Detail by Project ID
100
- *GeneratorApi* | [**getGenerations**](docs/GeneratorApi.md#getgenerations) | **GET** /generator/agent/generations | Get Generations List by User
101
98
  *HealthApi* | [**healthCheck**](docs/HealthApi.md#healthcheck) | **GET** /health | Health check endpoint
102
99
  *ManagerApi* | [**getManagerMessages**](docs/ManagerApi.md#getmanagermessages) | **GET** /agents/{aid}/manager/messages | Get manager chat messages
103
100
  *ManagerApi* | [**sendManagerMessage**](docs/ManagerApi.md#sendmanagermessage) | **POST** /agents/{aid}/manager/messages | Chat with Agent Manager
@@ -124,12 +121,9 @@ Class | Method | HTTP request | Description
124
121
  - [AgentApiKeyResponse](docs/AgentApiKeyResponse.md)
125
122
  - [AgentAssetsResponse](docs/AgentAssetsResponse.md)
126
123
  - [AgentAutonomous](docs/AgentAutonomous.md)
127
- - [AgentCreate](docs/AgentCreate.md)
128
124
  - [AgentDeployRequest](docs/AgentDeployRequest.md)
129
125
  - [AgentDraft](docs/AgentDraft.md)
130
126
  - [AgentExample](docs/AgentExample.md)
131
- - [AgentGenerateRequest](docs/AgentGenerateRequest.md)
132
- - [AgentGenerateResponse](docs/AgentGenerateResponse.md)
133
127
  - [AgentLinkedAccountsResponse](docs/AgentLinkedAccountsResponse.md)
134
128
  - [AgentListResponse](docs/AgentListResponse.md)
135
129
  - [AgentPublicInfo](docs/AgentPublicInfo.md)
@@ -161,8 +155,6 @@ Class | Method | HTTP request | Description
161
155
  - [EventType](docs/EventType.md)
162
156
  - [FeePercentage](docs/FeePercentage.md)
163
157
  - [FileUploadResponse](docs/FileUploadResponse.md)
164
- - [GenerationDetailResponse](docs/GenerationDetailResponse.md)
165
- - [GenerationsListResponse](docs/GenerationsListResponse.md)
166
158
  - [HTTPValidationError](docs/HTTPValidationError.md)
167
159
  - [LLMModelInfoWithProviderName](docs/LLMModelInfoWithProviderName.md)
168
160
  - [LLMProvider](docs/LLMProvider.md)
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.8.38
7
+ * The version of the OpenAPI document: 0.8.41
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -59,6 +59,8 @@ export interface Agent {
59
59
  'telegram_entrypoint_enabled'?: boolean | null;
60
60
  'telegram_entrypoint_prompt'?: string | null;
61
61
  'telegram_config'?: { [key: string]: any; } | null;
62
+ 'discord_entrypoint_enabled'?: boolean | null;
63
+ 'discord_config'?: { [key: string]: any; } | null;
62
64
  'xmtp_entrypoint_prompt'?: string | null;
63
65
  'upstream_id'?: string | null;
64
66
  'upstream_extra'?: { [key: string]: any; } | null;
@@ -178,67 +180,6 @@ export interface AgentAutonomous {
178
180
  'prompt': string;
179
181
  'enabled'?: boolean | null;
180
182
  }
181
- /**
182
- * Agent create model.
183
- */
184
- export interface AgentCreate {
185
- 'name': string | null;
186
- 'picture'?: string | null;
187
- 'purpose'?: string | null;
188
- 'personality'?: string | null;
189
- 'principles'?: string | null;
190
- /**
191
- * LLM of the agent
192
- */
193
- 'model'?: string;
194
- 'prompt'?: string | null;
195
- 'prompt_append'?: string | null;
196
- 'temperature'?: number | null;
197
- 'frequency_penalty'?: number | null;
198
- 'presence_penalty'?: number | null;
199
- 'wallet_provider'?: AgentCreateWalletProviderEnum | null;
200
- 'readonly_wallet_address'?: string | null;
201
- 'network_id'?: AgentCreateNetworkIdEnum | null;
202
- 'skills'?: { [key: string]: any; } | null;
203
- 'short_term_memory_strategy'?: AgentCreateShortTermMemoryStrategyEnum | null;
204
- 'autonomous'?: Array<AgentAutonomous> | null;
205
- 'telegram_entrypoint_enabled'?: boolean | null;
206
- 'telegram_entrypoint_prompt'?: string | null;
207
- 'telegram_config'?: { [key: string]: any; } | null;
208
- 'xmtp_entrypoint_prompt'?: string | null;
209
- 'upstream_id'?: string | null;
210
- 'upstream_extra'?: { [key: string]: any; } | null;
211
- /**
212
- * Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
213
- */
214
- 'id'?: string;
215
- 'owner'?: string | null;
216
- }
217
-
218
- export const AgentCreateWalletProviderEnum = {
219
- Cdp: 'cdp',
220
- Readonly: 'readonly',
221
- None: 'none'
222
- } as const;
223
-
224
- export type AgentCreateWalletProviderEnum = typeof AgentCreateWalletProviderEnum[keyof typeof AgentCreateWalletProviderEnum];
225
- export const AgentCreateNetworkIdEnum = {
226
- BaseMainnet: 'base-mainnet',
227
- EthereumMainnet: 'ethereum-mainnet',
228
- PolygonMainnet: 'polygon-mainnet',
229
- ArbitrumMainnet: 'arbitrum-mainnet',
230
- OptimismMainnet: 'optimism-mainnet',
231
- Solana: 'solana'
232
- } as const;
233
-
234
- export type AgentCreateNetworkIdEnum = typeof AgentCreateNetworkIdEnum[keyof typeof AgentCreateNetworkIdEnum];
235
- export const AgentCreateShortTermMemoryStrategyEnum = {
236
- Trim: 'trim',
237
- Summarize: 'summarize'
238
- } as const;
239
-
240
- export type AgentCreateShortTermMemoryStrategyEnum = typeof AgentCreateShortTermMemoryStrategyEnum[keyof typeof AgentCreateShortTermMemoryStrategyEnum];
241
-
242
183
  /**
243
184
  * Request model for agent deployment.
244
185
  */
@@ -280,6 +221,8 @@ export interface AgentDraft {
280
221
  'telegram_entrypoint_enabled'?: boolean | null;
281
222
  'telegram_entrypoint_prompt'?: string | null;
282
223
  'telegram_config'?: { [key: string]: any; } | null;
224
+ 'discord_entrypoint_enabled'?: boolean | null;
225
+ 'discord_config'?: { [key: string]: any; } | null;
283
226
  'xmtp_entrypoint_prompt'?: string | null;
284
227
  /**
285
228
  * Unique identifier for the draft
@@ -345,41 +288,6 @@ export interface AgentExample {
345
288
  */
346
289
  'prompt': string;
347
290
  }
348
- /**
349
- * Request model for agent generation.
350
- */
351
- export interface AgentGenerateRequest {
352
- /**
353
- * Natural language description of the agent\'s desired capabilities
354
- */
355
- 'prompt': string;
356
- 'existing_agent'?: AgentCreate | null;
357
- 'project_id'?: string | null;
358
- 'deploy'?: boolean | null;
359
- }
360
- /**
361
- * Response model for agent generation.
362
- */
363
- export interface AgentGenerateResponse {
364
- /**
365
- * The generated agent schema
366
- */
367
- 'agent': { [key: string]: any; };
368
- /**
369
- * Project ID for this conversation session
370
- */
371
- 'project_id': string;
372
- /**
373
- * Human-readable summary of the generated agent
374
- */
375
- 'summary': string;
376
- /**
377
- * Generated tags for the agent as ID objects: [{\'id\': 1}, {\'id\': 2}]
378
- */
379
- 'tags'?: Array<{ [key: string]: number; }>;
380
- 'autonomous_tasks'?: Array<{ [key: string]: any; }> | null;
381
- 'activated_skills'?: Array<string> | null;
382
- }
383
291
  /**
384
292
  * Response model for agent linked account information.
385
293
  */
@@ -462,6 +370,7 @@ export interface AgentResponse {
462
370
  'short_term_memory_strategy'?: AgentResponseShortTermMemoryStrategyEnum | null;
463
371
  'autonomous'?: Array<AgentAutonomous> | null;
464
372
  'telegram_entrypoint_enabled'?: boolean | null;
373
+ 'discord_entrypoint_enabled'?: boolean | null;
465
374
  'upstream_id'?: string | null;
466
375
  'upstream_extra'?: { [key: string]: any; } | null;
467
376
  /**
@@ -660,6 +569,8 @@ export interface AgentUpdate {
660
569
  'telegram_entrypoint_enabled'?: boolean | null;
661
570
  'telegram_entrypoint_prompt'?: string | null;
662
571
  'telegram_config'?: { [key: string]: any; } | null;
572
+ 'discord_entrypoint_enabled'?: boolean | null;
573
+ 'discord_config'?: { [key: string]: any; } | null;
663
574
  'xmtp_entrypoint_prompt'?: string | null;
664
575
  'upstream_id'?: string | null;
665
576
  'upstream_extra'?: { [key: string]: any; } | null;
@@ -716,6 +627,8 @@ export interface AgentUserInput {
716
627
  'telegram_entrypoint_enabled'?: boolean | null;
717
628
  'telegram_entrypoint_prompt'?: string | null;
718
629
  'telegram_config'?: { [key: string]: any; } | null;
630
+ 'discord_entrypoint_enabled'?: boolean | null;
631
+ 'discord_config'?: { [key: string]: any; } | null;
719
632
  'xmtp_entrypoint_prompt'?: string | null;
720
633
  }
721
634
 
@@ -774,6 +687,7 @@ export const AuthorType = {
774
687
  Skill: 'skill',
775
688
  Telegram: 'telegram',
776
689
  Twitter: 'twitter',
690
+ Discord: 'discord',
777
691
  Web: 'web',
778
692
  System: 'system',
779
693
  Api: 'api',
@@ -1348,37 +1262,6 @@ export interface FileUploadResponse {
1348
1262
  */
1349
1263
  'file_id': string;
1350
1264
  }
1351
- /**
1352
- * Response model for single generation detail.
1353
- */
1354
- export interface GenerationDetailResponse {
1355
- /**
1356
- * Project ID
1357
- */
1358
- 'project_id': string;
1359
- 'user_id'?: string | null;
1360
- 'created_at'?: string | null;
1361
- 'last_activity'?: string | null;
1362
- /**
1363
- * Number of messages in conversation
1364
- */
1365
- 'message_count': number;
1366
- 'last_message'?: { [key: string]: any; } | null;
1367
- 'first_message'?: { [key: string]: any; } | null;
1368
- /**
1369
- * Full conversation history
1370
- */
1371
- 'conversation_history': Array<{ [key: string]: any; }>;
1372
- }
1373
- /**
1374
- * Response model for generations list.
1375
- */
1376
- export interface GenerationsListResponse {
1377
- /**
1378
- * List of recent projects with their conversation history
1379
- */
1380
- 'projects': Array<{ [key: string]: any; }>;
1381
- }
1382
1265
  export interface HTTPValidationError {
1383
1266
  'detail'?: Array<ValidationError>;
1384
1267
  }
@@ -5279,258 +5162,6 @@ export class DraftApi extends BaseAPI {
5279
5162
 
5280
5163
 
5281
5164
 
5282
- /**
5283
- * GeneratorApi - axios parameter creator
5284
- */
5285
- export const GeneratorApiAxiosParamCreator = function (configuration?: Configuration) {
5286
- return {
5287
- /**
5288
- * 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
5289
- * @summary Generate Agent from Natural Language Prompt
5290
- * @param {AgentGenerateRequest} agentGenerateRequest
5291
- * @param {*} [options] Override http request option.
5292
- * @throws {RequiredError}
5293
- */
5294
- generateAgent: async (agentGenerateRequest: AgentGenerateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5295
- // verify required parameter 'agentGenerateRequest' is not null or undefined
5296
- assertParamExists('generateAgent', 'agentGenerateRequest', agentGenerateRequest)
5297
- const localVarPath = `/generator/agent/generate`;
5298
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5299
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5300
- let baseOptions;
5301
- if (configuration) {
5302
- baseOptions = configuration.baseOptions;
5303
- }
5304
-
5305
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5306
- const localVarHeaderParameter = {} as any;
5307
- const localVarQueryParameter = {} as any;
5308
-
5309
- // authentication HTTPBearer required
5310
- // http bearer authentication required
5311
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
5312
-
5313
-
5314
-
5315
- localVarHeaderParameter['Content-Type'] = 'application/json';
5316
-
5317
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5318
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5319
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5320
- localVarRequestOptions.data = serializeDataIfNeeded(agentGenerateRequest, localVarRequestOptions, configuration)
5321
-
5322
- return {
5323
- url: toPathString(localVarUrlObj),
5324
- options: localVarRequestOptions,
5325
- };
5326
- },
5327
- /**
5328
- * 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
5329
- * @summary Get Generation Detail by Project ID
5330
- * @param {string} projectId
5331
- * @param {*} [options] Override http request option.
5332
- * @throws {RequiredError}
5333
- */
5334
- getGenerationHistory: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5335
- // verify required parameter 'projectId' is not null or undefined
5336
- assertParamExists('getGenerationHistory', 'projectId', projectId)
5337
- const localVarPath = `/generator/agent/generations/{project_id}`
5338
- .replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)));
5339
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5340
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5341
- let baseOptions;
5342
- if (configuration) {
5343
- baseOptions = configuration.baseOptions;
5344
- }
5345
-
5346
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5347
- const localVarHeaderParameter = {} as any;
5348
- const localVarQueryParameter = {} as any;
5349
-
5350
- // authentication HTTPBearer required
5351
- // http bearer authentication required
5352
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
5353
-
5354
-
5355
-
5356
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5357
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5358
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5359
-
5360
- return {
5361
- url: toPathString(localVarUrlObj),
5362
- options: localVarRequestOptions,
5363
- };
5364
- },
5365
- /**
5366
- * 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
5367
- * @summary Get Generations List by User
5368
- * @param {number} [limit]
5369
- * @param {*} [options] Override http request option.
5370
- * @throws {RequiredError}
5371
- */
5372
- getGenerations: async (limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5373
- const localVarPath = `/generator/agent/generations`;
5374
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5375
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5376
- let baseOptions;
5377
- if (configuration) {
5378
- baseOptions = configuration.baseOptions;
5379
- }
5380
-
5381
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5382
- const localVarHeaderParameter = {} as any;
5383
- const localVarQueryParameter = {} as any;
5384
-
5385
- // authentication HTTPBearer required
5386
- // http bearer authentication required
5387
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
5388
-
5389
- if (limit !== undefined) {
5390
- localVarQueryParameter['limit'] = limit;
5391
- }
5392
-
5393
-
5394
-
5395
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5396
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5397
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5398
-
5399
- return {
5400
- url: toPathString(localVarUrlObj),
5401
- options: localVarRequestOptions,
5402
- };
5403
- },
5404
- }
5405
- };
5406
-
5407
- /**
5408
- * GeneratorApi - functional programming interface
5409
- */
5410
- export const GeneratorApiFp = function(configuration?: Configuration) {
5411
- const localVarAxiosParamCreator = GeneratorApiAxiosParamCreator(configuration)
5412
- return {
5413
- /**
5414
- * 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
5415
- * @summary Generate Agent from Natural Language Prompt
5416
- * @param {AgentGenerateRequest} agentGenerateRequest
5417
- * @param {*} [options] Override http request option.
5418
- * @throws {RequiredError}
5419
- */
5420
- async generateAgent(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentGenerateResponse>> {
5421
- const localVarAxiosArgs = await localVarAxiosParamCreator.generateAgent(agentGenerateRequest, options);
5422
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5423
- const localVarOperationServerBasePath = operationServerMap['GeneratorApi.generateAgent']?.[localVarOperationServerIndex]?.url;
5424
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5425
- },
5426
- /**
5427
- * 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
5428
- * @summary Get Generation Detail by Project ID
5429
- * @param {string} projectId
5430
- * @param {*} [options] Override http request option.
5431
- * @throws {RequiredError}
5432
- */
5433
- async getGenerationHistory(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenerationDetailResponse>> {
5434
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGenerationHistory(projectId, options);
5435
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5436
- const localVarOperationServerBasePath = operationServerMap['GeneratorApi.getGenerationHistory']?.[localVarOperationServerIndex]?.url;
5437
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5438
- },
5439
- /**
5440
- * 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
5441
- * @summary Get Generations List by User
5442
- * @param {number} [limit]
5443
- * @param {*} [options] Override http request option.
5444
- * @throws {RequiredError}
5445
- */
5446
- async getGenerations(limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenerationsListResponse>> {
5447
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGenerations(limit, options);
5448
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5449
- const localVarOperationServerBasePath = operationServerMap['GeneratorApi.getGenerations']?.[localVarOperationServerIndex]?.url;
5450
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5451
- },
5452
- }
5453
- };
5454
-
5455
- /**
5456
- * GeneratorApi - factory interface
5457
- */
5458
- export const GeneratorApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
5459
- const localVarFp = GeneratorApiFp(configuration)
5460
- return {
5461
- /**
5462
- * 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
5463
- * @summary Generate Agent from Natural Language Prompt
5464
- * @param {AgentGenerateRequest} agentGenerateRequest
5465
- * @param {*} [options] Override http request option.
5466
- * @throws {RequiredError}
5467
- */
5468
- generateAgent(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig): AxiosPromise<AgentGenerateResponse> {
5469
- return localVarFp.generateAgent(agentGenerateRequest, options).then((request) => request(axios, basePath));
5470
- },
5471
- /**
5472
- * 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
5473
- * @summary Get Generation Detail by Project ID
5474
- * @param {string} projectId
5475
- * @param {*} [options] Override http request option.
5476
- * @throws {RequiredError}
5477
- */
5478
- getGenerationHistory(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise<GenerationDetailResponse> {
5479
- return localVarFp.getGenerationHistory(projectId, options).then((request) => request(axios, basePath));
5480
- },
5481
- /**
5482
- * 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
5483
- * @summary Get Generations List by User
5484
- * @param {number} [limit]
5485
- * @param {*} [options] Override http request option.
5486
- * @throws {RequiredError}
5487
- */
5488
- getGenerations(limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<GenerationsListResponse> {
5489
- return localVarFp.getGenerations(limit, options).then((request) => request(axios, basePath));
5490
- },
5491
- };
5492
- };
5493
-
5494
- /**
5495
- * GeneratorApi - object-oriented interface
5496
- */
5497
- export class GeneratorApi extends BaseAPI {
5498
- /**
5499
- * 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
5500
- * @summary Generate Agent from Natural Language Prompt
5501
- * @param {AgentGenerateRequest} agentGenerateRequest
5502
- * @param {*} [options] Override http request option.
5503
- * @throws {RequiredError}
5504
- */
5505
- public generateAgent(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig) {
5506
- return GeneratorApiFp(this.configuration).generateAgent(agentGenerateRequest, options).then((request) => request(this.axios, this.basePath));
5507
- }
5508
-
5509
- /**
5510
- * 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
5511
- * @summary Get Generation Detail by Project ID
5512
- * @param {string} projectId
5513
- * @param {*} [options] Override http request option.
5514
- * @throws {RequiredError}
5515
- */
5516
- public getGenerationHistory(projectId: string, options?: RawAxiosRequestConfig) {
5517
- return GeneratorApiFp(this.configuration).getGenerationHistory(projectId, options).then((request) => request(this.axios, this.basePath));
5518
- }
5519
-
5520
- /**
5521
- * 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
5522
- * @summary Get Generations List by User
5523
- * @param {number} [limit]
5524
- * @param {*} [options] Override http request option.
5525
- * @throws {RequiredError}
5526
- */
5527
- public getGenerations(limit?: number, options?: RawAxiosRequestConfig) {
5528
- return GeneratorApiFp(this.configuration).getGenerations(limit, options).then((request) => request(this.axios, this.basePath));
5529
- }
5530
- }
5531
-
5532
-
5533
-
5534
5165
  /**
5535
5166
  * HealthApi - axios parameter creator
5536
5167
  */
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.8.38
7
+ * The version of the OpenAPI document: 0.8.41
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.8.38
7
+ * The version of the OpenAPI document: 0.8.41
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * Nation IntentKit API
4
4
  * API for Nation IntentKit services
5
5
  *
6
- * The version of the OpenAPI document: 0.8.38
6
+ * The version of the OpenAPI document: 0.8.41
7
7
  *
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).