@crestal/nation-sdk 0.7.7 → 0.7.9
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 +4 -2
- package/api.ts +81 -25
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +64 -20
- package/dist/api.js +55 -31
- 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 +5 -2
- package/docs/AgentState.md +13 -0
- package/docs/DraftApi.md +2 -2
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/docs/UserAgentListResponse.md +25 -0
- package/docs/UserApi.md +7 -4
- package/index.ts +1 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -20,6 +20,7 @@ docs/AgentGenerateResponse.md
|
|
|
20
20
|
docs/AgentListResponse.md
|
|
21
21
|
docs/AgentResponse.md
|
|
22
22
|
docs/AgentSortOption.md
|
|
23
|
+
docs/AgentState.md
|
|
23
24
|
docs/AgentStatisticsResponse.md
|
|
24
25
|
docs/AgentUpdate.md
|
|
25
26
|
docs/AgentUserInput.md
|
|
@@ -62,6 +63,7 @@ docs/SystemMessageType.md
|
|
|
62
63
|
docs/TransactionType.md
|
|
63
64
|
docs/TwitterAuthResponse.md
|
|
64
65
|
docs/UpstreamType.md
|
|
66
|
+
docs/UserAgentListResponse.md
|
|
65
67
|
docs/UserApi.md
|
|
66
68
|
docs/ValidationError.md
|
|
67
69
|
docs/ValidationErrorLocInner.md
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @crestal/nation-sdk@0.7.
|
|
1
|
+
## @crestal/nation-sdk@0.7.9
|
|
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.7.
|
|
39
|
+
npm install @crestal/nation-sdk@0.7.9 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -119,6 +119,7 @@ Class | Method | HTTP request | Description
|
|
|
119
119
|
- [AgentListResponse](docs/AgentListResponse.md)
|
|
120
120
|
- [AgentResponse](docs/AgentResponse.md)
|
|
121
121
|
- [AgentSortOption](docs/AgentSortOption.md)
|
|
122
|
+
- [AgentState](docs/AgentState.md)
|
|
122
123
|
- [AgentStatisticsResponse](docs/AgentStatisticsResponse.md)
|
|
123
124
|
- [AgentUpdate](docs/AgentUpdate.md)
|
|
124
125
|
- [AgentUserInput](docs/AgentUserInput.md)
|
|
@@ -154,6 +155,7 @@ Class | Method | HTTP request | Description
|
|
|
154
155
|
- [TransactionType](docs/TransactionType.md)
|
|
155
156
|
- [TwitterAuthResponse](docs/TwitterAuthResponse.md)
|
|
156
157
|
- [UpstreamType](docs/UpstreamType.md)
|
|
158
|
+
- [UserAgentListResponse](docs/UserAgentListResponse.md)
|
|
157
159
|
- [ValidationError](docs/ValidationError.md)
|
|
158
160
|
- [ValidationErrorLocInner](docs/ValidationErrorLocInner.md)
|
|
159
161
|
|
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.7.
|
|
7
|
+
* The version of the OpenAPI document: 0.7.9
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1306,6 +1306,21 @@ export const AgentSortOption = {
|
|
|
1306
1306
|
export type AgentSortOption = typeof AgentSortOption[keyof typeof AgentSortOption];
|
|
1307
1307
|
|
|
1308
1308
|
|
|
1309
|
+
/**
|
|
1310
|
+
* Agent state.
|
|
1311
|
+
* @export
|
|
1312
|
+
* @enum {string}
|
|
1313
|
+
*/
|
|
1314
|
+
|
|
1315
|
+
export const AgentState = {
|
|
1316
|
+
Private: 'private',
|
|
1317
|
+
Public: 'public',
|
|
1318
|
+
Citizen: 'citizen'
|
|
1319
|
+
} as const;
|
|
1320
|
+
|
|
1321
|
+
export type AgentState = typeof AgentState[keyof typeof AgentState];
|
|
1322
|
+
|
|
1323
|
+
|
|
1309
1324
|
/**
|
|
1310
1325
|
* Response model for agent statistics.
|
|
1311
1326
|
* @export
|
|
@@ -3499,6 +3514,31 @@ export const UpstreamType = {
|
|
|
3499
3514
|
export type UpstreamType = typeof UpstreamType[keyof typeof UpstreamType];
|
|
3500
3515
|
|
|
3501
3516
|
|
|
3517
|
+
/**
|
|
3518
|
+
* Paginated response model for user agents list. Contains a list of Agent objects, a flag indicating if more items are available, and a cursor for pagination.
|
|
3519
|
+
* @export
|
|
3520
|
+
* @interface UserAgentListResponse
|
|
3521
|
+
*/
|
|
3522
|
+
export interface UserAgentListResponse {
|
|
3523
|
+
/**
|
|
3524
|
+
* List of agents
|
|
3525
|
+
* @type {Array<Agent>}
|
|
3526
|
+
* @memberof UserAgentListResponse
|
|
3527
|
+
*/
|
|
3528
|
+
'data': Array<Agent>;
|
|
3529
|
+
/**
|
|
3530
|
+
* Indicates if there are more items
|
|
3531
|
+
* @type {boolean}
|
|
3532
|
+
* @memberof UserAgentListResponse
|
|
3533
|
+
*/
|
|
3534
|
+
'has_more': boolean;
|
|
3535
|
+
/**
|
|
3536
|
+
*
|
|
3537
|
+
* @type {string}
|
|
3538
|
+
* @memberof UserAgentListResponse
|
|
3539
|
+
*/
|
|
3540
|
+
'next_cursor'?: string | null;
|
|
3541
|
+
}
|
|
3502
3542
|
/**
|
|
3503
3543
|
*
|
|
3504
3544
|
* @export
|
|
@@ -3755,15 +3795,16 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
3755
3795
|
};
|
|
3756
3796
|
},
|
|
3757
3797
|
/**
|
|
3758
|
-
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
3798
|
+
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
3759
3799
|
* @summary Get Agents
|
|
3760
3800
|
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
3761
3801
|
* @param {string | null} [cursor] Cursor for pagination
|
|
3762
3802
|
* @param {number} [limit] Maximum number of agents to return
|
|
3803
|
+
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
3763
3804
|
* @param {*} [options] Override http request option.
|
|
3764
3805
|
* @throws {RequiredError}
|
|
3765
3806
|
*/
|
|
3766
|
-
getAgents: async (sort?: AgentSortOption, cursor?: string | null, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3807
|
+
getAgents: async (sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3767
3808
|
const localVarPath = `/agents`;
|
|
3768
3809
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3769
3810
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3788,6 +3829,10 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
3788
3829
|
localVarQueryParameter['limit'] = limit;
|
|
3789
3830
|
}
|
|
3790
3831
|
|
|
3832
|
+
if (state !== undefined) {
|
|
3833
|
+
localVarQueryParameter['state'] = state;
|
|
3834
|
+
}
|
|
3835
|
+
|
|
3791
3836
|
|
|
3792
3837
|
|
|
3793
3838
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -4145,16 +4190,17 @@ export const AgentApiFp = function(configuration?: Configuration) {
|
|
|
4145
4190
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4146
4191
|
},
|
|
4147
4192
|
/**
|
|
4148
|
-
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
4193
|
+
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
4149
4194
|
* @summary Get Agents
|
|
4150
4195
|
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
4151
4196
|
* @param {string | null} [cursor] Cursor for pagination
|
|
4152
4197
|
* @param {number} [limit] Maximum number of agents to return
|
|
4198
|
+
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
4153
4199
|
* @param {*} [options] Override http request option.
|
|
4154
4200
|
* @throws {RequiredError}
|
|
4155
4201
|
*/
|
|
4156
|
-
async getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentListResponse>> {
|
|
4157
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAgents(sort, cursor, limit, options);
|
|
4202
|
+
async getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentListResponse>> {
|
|
4203
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAgents(sort, cursor, limit, state, options);
|
|
4158
4204
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4159
4205
|
const localVarOperationServerBasePath = operationServerMap['AgentApi.getAgents']?.[localVarOperationServerIndex]?.url;
|
|
4160
4206
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4313,16 +4359,17 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
|
|
|
4313
4359
|
return localVarFp.getAgentStatistics(aid, options).then((request) => request(axios, basePath));
|
|
4314
4360
|
},
|
|
4315
4361
|
/**
|
|
4316
|
-
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
4362
|
+
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
4317
4363
|
* @summary Get Agents
|
|
4318
4364
|
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
4319
4365
|
* @param {string | null} [cursor] Cursor for pagination
|
|
4320
4366
|
* @param {number} [limit] Maximum number of agents to return
|
|
4367
|
+
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
4321
4368
|
* @param {*} [options] Override http request option.
|
|
4322
4369
|
* @throws {RequiredError}
|
|
4323
4370
|
*/
|
|
4324
|
-
getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse> {
|
|
4325
|
-
return localVarFp.getAgents(sort, cursor, limit, options).then((request) => request(axios, basePath));
|
|
4371
|
+
getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse> {
|
|
4372
|
+
return localVarFp.getAgents(sort, cursor, limit, state, options).then((request) => request(axios, basePath));
|
|
4326
4373
|
},
|
|
4327
4374
|
/**
|
|
4328
4375
|
* Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
|
|
@@ -4472,17 +4519,18 @@ export class AgentApi extends BaseAPI {
|
|
|
4472
4519
|
}
|
|
4473
4520
|
|
|
4474
4521
|
/**
|
|
4475
|
-
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
4522
|
+
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
4476
4523
|
* @summary Get Agents
|
|
4477
4524
|
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
4478
4525
|
* @param {string | null} [cursor] Cursor for pagination
|
|
4479
4526
|
* @param {number} [limit] Maximum number of agents to return
|
|
4527
|
+
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
4480
4528
|
* @param {*} [options] Override http request option.
|
|
4481
4529
|
* @throws {RequiredError}
|
|
4482
4530
|
* @memberof AgentApi
|
|
4483
4531
|
*/
|
|
4484
|
-
public getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
4485
|
-
return AgentApiFp(this.configuration).getAgents(sort, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
4532
|
+
public getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, options?: RawAxiosRequestConfig) {
|
|
4533
|
+
return AgentApiFp(this.configuration).getAgents(sort, cursor, limit, state, options).then((request) => request(this.axios, this.basePath));
|
|
4486
4534
|
}
|
|
4487
4535
|
|
|
4488
4536
|
/**
|
|
@@ -6257,7 +6305,7 @@ export const DraftApiFp = function(configuration?: Configuration) {
|
|
|
6257
6305
|
* @param {*} [options] Override http request option.
|
|
6258
6306
|
* @throws {RequiredError}
|
|
6259
6307
|
*/
|
|
6260
|
-
async deployAgentFromDraft(agentDeployRequest: AgentDeployRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
6308
|
+
async deployAgentFromDraft(agentDeployRequest: AgentDeployRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Agent>> {
|
|
6261
6309
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deployAgentFromDraft(agentDeployRequest, options);
|
|
6262
6310
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6263
6311
|
const localVarOperationServerBasePath = operationServerMap['DraftApi.deployAgentFromDraft']?.[localVarOperationServerIndex]?.url;
|
|
@@ -6367,7 +6415,7 @@ export const DraftApiFactory = function (configuration?: Configuration, basePath
|
|
|
6367
6415
|
* @param {*} [options] Override http request option.
|
|
6368
6416
|
* @throws {RequiredError}
|
|
6369
6417
|
*/
|
|
6370
|
-
deployAgentFromDraft(agentDeployRequest: AgentDeployRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
6418
|
+
deployAgentFromDraft(agentDeployRequest: AgentDeployRequest, options?: RawAxiosRequestConfig): AxiosPromise<Agent> {
|
|
6371
6419
|
return localVarFp.deployAgentFromDraft(agentDeployRequest, options).then((request) => request(axios, basePath));
|
|
6372
6420
|
},
|
|
6373
6421
|
/**
|
|
@@ -7606,14 +7654,15 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
7606
7654
|
};
|
|
7607
7655
|
},
|
|
7608
7656
|
/**
|
|
7609
|
-
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `
|
|
7657
|
+
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `UserAgentListResponse` - Paginated list of user\'s agents as Agent objects
|
|
7610
7658
|
* @summary Get User Agents
|
|
7611
7659
|
* @param {string | null} [cursor] Cursor for pagination
|
|
7612
7660
|
* @param {number} [limit] Maximum number of agents to return
|
|
7661
|
+
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
7613
7662
|
* @param {*} [options] Override http request option.
|
|
7614
7663
|
* @throws {RequiredError}
|
|
7615
7664
|
*/
|
|
7616
|
-
getUserAgents: async (cursor?: string | null, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7665
|
+
getUserAgents: async (cursor?: string | null, limit?: number, state?: AgentState | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7617
7666
|
const localVarPath = `/user/agents`;
|
|
7618
7667
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7619
7668
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7638,6 +7687,10 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
7638
7687
|
localVarQueryParameter['limit'] = limit;
|
|
7639
7688
|
}
|
|
7640
7689
|
|
|
7690
|
+
if (state !== undefined) {
|
|
7691
|
+
localVarQueryParameter['state'] = state;
|
|
7692
|
+
}
|
|
7693
|
+
|
|
7641
7694
|
|
|
7642
7695
|
|
|
7643
7696
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -7718,15 +7771,16 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
|
7718
7771
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7719
7772
|
},
|
|
7720
7773
|
/**
|
|
7721
|
-
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `
|
|
7774
|
+
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `UserAgentListResponse` - Paginated list of user\'s agents as Agent objects
|
|
7722
7775
|
* @summary Get User Agents
|
|
7723
7776
|
* @param {string | null} [cursor] Cursor for pagination
|
|
7724
7777
|
* @param {number} [limit] Maximum number of agents to return
|
|
7778
|
+
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
7725
7779
|
* @param {*} [options] Override http request option.
|
|
7726
7780
|
* @throws {RequiredError}
|
|
7727
7781
|
*/
|
|
7728
|
-
async getUserAgents(cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
7729
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAgents(cursor, limit, options);
|
|
7782
|
+
async getUserAgents(cursor?: string | null, limit?: number, state?: AgentState | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserAgentListResponse>> {
|
|
7783
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAgents(cursor, limit, state, options);
|
|
7730
7784
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7731
7785
|
const localVarOperationServerBasePath = operationServerMap['UserApi.getUserAgents']?.[localVarOperationServerIndex]?.url;
|
|
7732
7786
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7765,15 +7819,16 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
|
|
7765
7819
|
return localVarFp.getUserAgentById(agentId, options).then((request) => request(axios, basePath));
|
|
7766
7820
|
},
|
|
7767
7821
|
/**
|
|
7768
|
-
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `
|
|
7822
|
+
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `UserAgentListResponse` - Paginated list of user\'s agents as Agent objects
|
|
7769
7823
|
* @summary Get User Agents
|
|
7770
7824
|
* @param {string | null} [cursor] Cursor for pagination
|
|
7771
7825
|
* @param {number} [limit] Maximum number of agents to return
|
|
7826
|
+
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
7772
7827
|
* @param {*} [options] Override http request option.
|
|
7773
7828
|
* @throws {RequiredError}
|
|
7774
7829
|
*/
|
|
7775
|
-
getUserAgents(cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
7776
|
-
return localVarFp.getUserAgents(cursor, limit, options).then((request) => request(axios, basePath));
|
|
7830
|
+
getUserAgents(cursor?: string | null, limit?: number, state?: AgentState | null, options?: RawAxiosRequestConfig): AxiosPromise<UserAgentListResponse> {
|
|
7831
|
+
return localVarFp.getUserAgents(cursor, limit, state, options).then((request) => request(axios, basePath));
|
|
7777
7832
|
},
|
|
7778
7833
|
/**
|
|
7779
7834
|
* Upload a file for the authenticated user. **Form Data:** * `file` - File to upload (supports images, videos, audio, and PDF files) **Returns:** * `FileUploadResponse` - Contains the CDN URL and unique identifier of the uploaded file **Raises:** * `400` - Invalid file type or file too large * `500` - Upload failed
|
|
@@ -7808,16 +7863,17 @@ export class UserApi extends BaseAPI {
|
|
|
7808
7863
|
}
|
|
7809
7864
|
|
|
7810
7865
|
/**
|
|
7811
|
-
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `
|
|
7866
|
+
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `UserAgentListResponse` - Paginated list of user\'s agents as Agent objects
|
|
7812
7867
|
* @summary Get User Agents
|
|
7813
7868
|
* @param {string | null} [cursor] Cursor for pagination
|
|
7814
7869
|
* @param {number} [limit] Maximum number of agents to return
|
|
7870
|
+
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
7815
7871
|
* @param {*} [options] Override http request option.
|
|
7816
7872
|
* @throws {RequiredError}
|
|
7817
7873
|
* @memberof UserApi
|
|
7818
7874
|
*/
|
|
7819
|
-
public getUserAgents(cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
7820
|
-
return UserApiFp(this.configuration).getUserAgents(cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
7875
|
+
public getUserAgents(cursor?: string | null, limit?: number, state?: AgentState | null, options?: RawAxiosRequestConfig) {
|
|
7876
|
+
return UserApiFp(this.configuration).getUserAgents(cursor, limit, state, options).then((request) => request(this.axios, this.basePath));
|
|
7821
7877
|
}
|
|
7822
7878
|
|
|
7823
7879
|
/**
|
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.7.
|
|
5
|
+
* The version of the OpenAPI document: 0.7.9
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1274,6 +1274,17 @@ export declare const AgentSortOption: {
|
|
|
1274
1274
|
readonly UpdatedAtDesc: "updated_at desc";
|
|
1275
1275
|
};
|
|
1276
1276
|
export type AgentSortOption = typeof AgentSortOption[keyof typeof AgentSortOption];
|
|
1277
|
+
/**
|
|
1278
|
+
* Agent state.
|
|
1279
|
+
* @export
|
|
1280
|
+
* @enum {string}
|
|
1281
|
+
*/
|
|
1282
|
+
export declare const AgentState: {
|
|
1283
|
+
readonly Private: "private";
|
|
1284
|
+
readonly Public: "public";
|
|
1285
|
+
readonly Citizen: "citizen";
|
|
1286
|
+
};
|
|
1287
|
+
export type AgentState = typeof AgentState[keyof typeof AgentState];
|
|
1277
1288
|
/**
|
|
1278
1289
|
* Response model for agent statistics.
|
|
1279
1290
|
* @export
|
|
@@ -3399,6 +3410,31 @@ export declare const UpstreamType: {
|
|
|
3399
3410
|
readonly Initializer: "initializer";
|
|
3400
3411
|
};
|
|
3401
3412
|
export type UpstreamType = typeof UpstreamType[keyof typeof UpstreamType];
|
|
3413
|
+
/**
|
|
3414
|
+
* Paginated response model for user agents list. Contains a list of Agent objects, a flag indicating if more items are available, and a cursor for pagination.
|
|
3415
|
+
* @export
|
|
3416
|
+
* @interface UserAgentListResponse
|
|
3417
|
+
*/
|
|
3418
|
+
export interface UserAgentListResponse {
|
|
3419
|
+
/**
|
|
3420
|
+
* List of agents
|
|
3421
|
+
* @type {Array<Agent>}
|
|
3422
|
+
* @memberof UserAgentListResponse
|
|
3423
|
+
*/
|
|
3424
|
+
'data': Array<Agent>;
|
|
3425
|
+
/**
|
|
3426
|
+
* Indicates if there are more items
|
|
3427
|
+
* @type {boolean}
|
|
3428
|
+
* @memberof UserAgentListResponse
|
|
3429
|
+
*/
|
|
3430
|
+
'has_more': boolean;
|
|
3431
|
+
/**
|
|
3432
|
+
*
|
|
3433
|
+
* @type {string}
|
|
3434
|
+
* @memberof UserAgentListResponse
|
|
3435
|
+
*/
|
|
3436
|
+
'next_cursor'?: string | null;
|
|
3437
|
+
}
|
|
3402
3438
|
/**
|
|
3403
3439
|
*
|
|
3404
3440
|
* @export
|
|
@@ -3485,15 +3521,16 @@ export declare const AgentApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
3485
3521
|
*/
|
|
3486
3522
|
getAgentStatistics: (aid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3487
3523
|
/**
|
|
3488
|
-
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
3524
|
+
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
3489
3525
|
* @summary Get Agents
|
|
3490
3526
|
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
3491
3527
|
* @param {string | null} [cursor] Cursor for pagination
|
|
3492
3528
|
* @param {number} [limit] Maximum number of agents to return
|
|
3529
|
+
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
3493
3530
|
* @param {*} [options] Override http request option.
|
|
3494
3531
|
* @throws {RequiredError}
|
|
3495
3532
|
*/
|
|
3496
|
-
getAgents: (sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3533
|
+
getAgents: (sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3497
3534
|
/**
|
|
3498
3535
|
* Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
|
|
3499
3536
|
* @summary Skill History
|
|
@@ -3602,15 +3639,16 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
|
|
|
3602
3639
|
*/
|
|
3603
3640
|
getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentStatisticsResponse>>;
|
|
3604
3641
|
/**
|
|
3605
|
-
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
3642
|
+
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
3606
3643
|
* @summary Get Agents
|
|
3607
3644
|
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
3608
3645
|
* @param {string | null} [cursor] Cursor for pagination
|
|
3609
3646
|
* @param {number} [limit] Maximum number of agents to return
|
|
3647
|
+
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
3610
3648
|
* @param {*} [options] Override http request option.
|
|
3611
3649
|
* @throws {RequiredError}
|
|
3612
3650
|
*/
|
|
3613
|
-
getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentListResponse>>;
|
|
3651
|
+
getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentListResponse>>;
|
|
3614
3652
|
/**
|
|
3615
3653
|
* Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
|
|
3616
3654
|
* @summary Skill History
|
|
@@ -3719,15 +3757,16 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
|
|
|
3719
3757
|
*/
|
|
3720
3758
|
getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentStatisticsResponse>;
|
|
3721
3759
|
/**
|
|
3722
|
-
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
3760
|
+
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
3723
3761
|
* @summary Get Agents
|
|
3724
3762
|
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
3725
3763
|
* @param {string | null} [cursor] Cursor for pagination
|
|
3726
3764
|
* @param {number} [limit] Maximum number of agents to return
|
|
3765
|
+
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
3727
3766
|
* @param {*} [options] Override http request option.
|
|
3728
3767
|
* @throws {RequiredError}
|
|
3729
3768
|
*/
|
|
3730
|
-
getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse>;
|
|
3769
|
+
getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse>;
|
|
3731
3770
|
/**
|
|
3732
3771
|
* Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
|
|
3733
3772
|
* @summary Skill History
|
|
@@ -3844,16 +3883,17 @@ export declare class AgentApi extends BaseAPI {
|
|
|
3844
3883
|
*/
|
|
3845
3884
|
getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentStatisticsResponse, any, {}>>;
|
|
3846
3885
|
/**
|
|
3847
|
-
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
3886
|
+
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
3848
3887
|
* @summary Get Agents
|
|
3849
3888
|
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
3850
3889
|
* @param {string | null} [cursor] Cursor for pagination
|
|
3851
3890
|
* @param {number} [limit] Maximum number of agents to return
|
|
3891
|
+
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
3852
3892
|
* @param {*} [options] Override http request option.
|
|
3853
3893
|
* @throws {RequiredError}
|
|
3854
3894
|
* @memberof AgentApi
|
|
3855
3895
|
*/
|
|
3856
|
-
getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentListResponse, any, {}>>;
|
|
3896
|
+
getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentListResponse, any, {}>>;
|
|
3857
3897
|
/**
|
|
3858
3898
|
* Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
|
|
3859
3899
|
* @summary Skill History
|
|
@@ -4637,7 +4677,7 @@ export declare const DraftApiFp: (configuration?: Configuration) => {
|
|
|
4637
4677
|
* @param {*} [options] Override http request option.
|
|
4638
4678
|
* @throws {RequiredError}
|
|
4639
4679
|
*/
|
|
4640
|
-
deployAgentFromDraft(agentDeployRequest: AgentDeployRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
4680
|
+
deployAgentFromDraft(agentDeployRequest: AgentDeployRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Agent>>;
|
|
4641
4681
|
/**
|
|
4642
4682
|
* Get a specific draft by ID. Retrieves a specific draft for the given agent and draft ID. This endpoint is useful for viewing detailed information about a particular draft version. Possible HTTP errors: - 401: Unauthorized (invalid or missing authentication) - 404: Draft not found or user doesn\'t have access to this draft - 500: Internal server error
|
|
4643
4683
|
* @summary Get Agent Draft By Id
|
|
@@ -4709,7 +4749,7 @@ export declare const DraftApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4709
4749
|
* @param {*} [options] Override http request option.
|
|
4710
4750
|
* @throws {RequiredError}
|
|
4711
4751
|
*/
|
|
4712
|
-
deployAgentFromDraft(agentDeployRequest: AgentDeployRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
4752
|
+
deployAgentFromDraft(agentDeployRequest: AgentDeployRequest, options?: RawAxiosRequestConfig): AxiosPromise<Agent>;
|
|
4713
4753
|
/**
|
|
4714
4754
|
* Get a specific draft by ID. Retrieves a specific draft for the given agent and draft ID. This endpoint is useful for viewing detailed information about a particular draft version. Possible HTTP errors: - 401: Unauthorized (invalid or missing authentication) - 404: Draft not found or user doesn\'t have access to this draft - 500: Internal server error
|
|
4715
4755
|
* @summary Get Agent Draft By Id
|
|
@@ -4786,7 +4826,7 @@ export declare class DraftApi extends BaseAPI {
|
|
|
4786
4826
|
* @throws {RequiredError}
|
|
4787
4827
|
* @memberof DraftApi
|
|
4788
4828
|
*/
|
|
4789
|
-
deployAgentFromDraft(agentDeployRequest: AgentDeployRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
4829
|
+
deployAgentFromDraft(agentDeployRequest: AgentDeployRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Agent, any, {}>>;
|
|
4790
4830
|
/**
|
|
4791
4831
|
* Get a specific draft by ID. Retrieves a specific draft for the given agent and draft ID. This endpoint is useful for viewing detailed information about a particular draft version. Possible HTTP errors: - 401: Unauthorized (invalid or missing authentication) - 404: Draft not found or user doesn\'t have access to this draft - 500: Internal server error
|
|
4792
4832
|
* @summary Get Agent Draft By Id
|
|
@@ -5353,14 +5393,15 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
5353
5393
|
*/
|
|
5354
5394
|
getUserAgentById: (agentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5355
5395
|
/**
|
|
5356
|
-
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `
|
|
5396
|
+
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `UserAgentListResponse` - Paginated list of user\'s agents as Agent objects
|
|
5357
5397
|
* @summary Get User Agents
|
|
5358
5398
|
* @param {string | null} [cursor] Cursor for pagination
|
|
5359
5399
|
* @param {number} [limit] Maximum number of agents to return
|
|
5400
|
+
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
5360
5401
|
* @param {*} [options] Override http request option.
|
|
5361
5402
|
* @throws {RequiredError}
|
|
5362
5403
|
*/
|
|
5363
|
-
getUserAgents: (cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5404
|
+
getUserAgents: (cursor?: string | null, limit?: number, state?: AgentState | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5364
5405
|
/**
|
|
5365
5406
|
* Upload a file for the authenticated user. **Form Data:** * `file` - File to upload (supports images, videos, audio, and PDF files) **Returns:** * `FileUploadResponse` - Contains the CDN URL and unique identifier of the uploaded file **Raises:** * `400` - Invalid file type or file too large * `500` - Upload failed
|
|
5366
5407
|
* @summary Upload User File
|
|
@@ -5384,14 +5425,15 @@ export declare const UserApiFp: (configuration?: Configuration) => {
|
|
|
5384
5425
|
*/
|
|
5385
5426
|
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Agent>>;
|
|
5386
5427
|
/**
|
|
5387
|
-
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `
|
|
5428
|
+
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `UserAgentListResponse` - Paginated list of user\'s agents as Agent objects
|
|
5388
5429
|
* @summary Get User Agents
|
|
5389
5430
|
* @param {string | null} [cursor] Cursor for pagination
|
|
5390
5431
|
* @param {number} [limit] Maximum number of agents to return
|
|
5432
|
+
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
5391
5433
|
* @param {*} [options] Override http request option.
|
|
5392
5434
|
* @throws {RequiredError}
|
|
5393
5435
|
*/
|
|
5394
|
-
getUserAgents(cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
5436
|
+
getUserAgents(cursor?: string | null, limit?: number, state?: AgentState | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserAgentListResponse>>;
|
|
5395
5437
|
/**
|
|
5396
5438
|
* Upload a file for the authenticated user. **Form Data:** * `file` - File to upload (supports images, videos, audio, and PDF files) **Returns:** * `FileUploadResponse` - Contains the CDN URL and unique identifier of the uploaded file **Raises:** * `400` - Invalid file type or file too large * `500` - Upload failed
|
|
5397
5439
|
* @summary Upload User File
|
|
@@ -5415,14 +5457,15 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
|
|
|
5415
5457
|
*/
|
|
5416
5458
|
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<Agent>;
|
|
5417
5459
|
/**
|
|
5418
|
-
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `
|
|
5460
|
+
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `UserAgentListResponse` - Paginated list of user\'s agents as Agent objects
|
|
5419
5461
|
* @summary Get User Agents
|
|
5420
5462
|
* @param {string | null} [cursor] Cursor for pagination
|
|
5421
5463
|
* @param {number} [limit] Maximum number of agents to return
|
|
5464
|
+
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
5422
5465
|
* @param {*} [options] Override http request option.
|
|
5423
5466
|
* @throws {RequiredError}
|
|
5424
5467
|
*/
|
|
5425
|
-
getUserAgents(cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
5468
|
+
getUserAgents(cursor?: string | null, limit?: number, state?: AgentState | null, options?: RawAxiosRequestConfig): AxiosPromise<UserAgentListResponse>;
|
|
5426
5469
|
/**
|
|
5427
5470
|
* Upload a file for the authenticated user. **Form Data:** * `file` - File to upload (supports images, videos, audio, and PDF files) **Returns:** * `FileUploadResponse` - Contains the CDN URL and unique identifier of the uploaded file **Raises:** * `400` - Invalid file type or file too large * `500` - Upload failed
|
|
5428
5471
|
* @summary Upload User File
|
|
@@ -5449,15 +5492,16 @@ export declare class UserApi extends BaseAPI {
|
|
|
5449
5492
|
*/
|
|
5450
5493
|
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Agent, any, {}>>;
|
|
5451
5494
|
/**
|
|
5452
|
-
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `
|
|
5495
|
+
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `UserAgentListResponse` - Paginated list of user\'s agents as Agent objects
|
|
5453
5496
|
* @summary Get User Agents
|
|
5454
5497
|
* @param {string | null} [cursor] Cursor for pagination
|
|
5455
5498
|
* @param {number} [limit] Maximum number of agents to return
|
|
5499
|
+
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
5456
5500
|
* @param {*} [options] Override http request option.
|
|
5457
5501
|
* @throws {RequiredError}
|
|
5458
5502
|
* @memberof UserApi
|
|
5459
5503
|
*/
|
|
5460
|
-
getUserAgents(cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
5504
|
+
getUserAgents(cursor?: string | null, limit?: number, state?: AgentState | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserAgentListResponse, any, {}>>;
|
|
5461
5505
|
/**
|
|
5462
5506
|
* Upload a file for the authenticated user. **Form Data:** * `file` - File to upload (supports images, videos, audio, and PDF files) **Returns:** * `FileUploadResponse` - Contains the CDN URL and unique identifier of the uploaded file **Raises:** * `400` - Invalid file type or file too large * `500` - Upload failed
|
|
5463
5507
|
* @summary Upload User File
|
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Nation IntentKit API
|
|
6
6
|
* API for Nation IntentKit services
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.7.
|
|
8
|
+
* The version of the OpenAPI document: 0.7.9
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -84,8 +84,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
84
84
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
85
|
};
|
|
86
86
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
|
-
exports.
|
|
88
|
-
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.OAuthApi = exports.OAuthApiFactory = exports.OAuthApiFp = exports.OAuthApiAxiosParamCreator = exports.MetadataApi = exports.MetadataApiFactory = exports.MetadataApiFp = exports.MetadataApiAxiosParamCreator = exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = void 0;
|
|
87
|
+
exports.GeneratorApiFactory = exports.GeneratorApiFp = exports.GeneratorApiAxiosParamCreator = exports.DraftApi = exports.DraftApiFactory = exports.DraftApiFp = exports.DraftApiAxiosParamCreator = exports.CreditApi = exports.CreditApiFactory = exports.CreditApiFp = exports.CreditApiAxiosParamCreator = exports.ChatApi = exports.ChatApiFactory = exports.ChatApiFp = exports.ChatApiAxiosParamCreator = exports.AgentApi = exports.AgentApiFactory = exports.AgentApiFp = exports.AgentApiAxiosParamCreator = exports.UpstreamType = exports.TransactionType = exports.SystemMessageType = exports.OwnerType = exports.LLMProvider = exports.EventType = exports.Direction = exports.CreditType = exports.CreditDebit = exports.ChatMessageAttachmentType = exports.AuthorType = exports.AgentUserInputShortTermMemoryStrategyEnum = exports.AgentUserInputNetworkIdEnum = exports.AgentUserInputWalletProviderEnum = exports.AgentUpdateShortTermMemoryStrategyEnum = exports.AgentUpdateNetworkIdEnum = exports.AgentUpdateWalletProviderEnum = exports.AgentState = exports.AgentSortOption = exports.AgentResponseShortTermMemoryStrategyEnum = exports.AgentResponseNetworkIdEnum = exports.AgentResponseWalletProviderEnum = exports.AgentDraftShortTermMemoryStrategyEnum = exports.AgentDraftNetworkIdEnum = exports.AgentDraftWalletProviderEnum = exports.AgentCreateShortTermMemoryStrategyEnum = exports.AgentCreateNetworkIdEnum = exports.AgentCreateWalletProviderEnum = exports.AgentShortTermMemoryStrategyEnum = exports.AgentNetworkIdEnum = exports.AgentWalletProviderEnum = void 0;
|
|
88
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.OAuthApi = exports.OAuthApiFactory = exports.OAuthApiFp = exports.OAuthApiAxiosParamCreator = exports.MetadataApi = exports.MetadataApiFactory = exports.MetadataApiFp = exports.MetadataApiAxiosParamCreator = exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = exports.GeneratorApi = void 0;
|
|
89
89
|
var axios_1 = require("axios");
|
|
90
90
|
// Some imports not used depending on template conditions
|
|
91
91
|
// @ts-ignore
|
|
@@ -186,6 +186,16 @@ exports.AgentSortOption = {
|
|
|
186
186
|
CreatedAtAsc: 'created_at asc',
|
|
187
187
|
UpdatedAtDesc: 'updated_at desc'
|
|
188
188
|
};
|
|
189
|
+
/**
|
|
190
|
+
* Agent state.
|
|
191
|
+
* @export
|
|
192
|
+
* @enum {string}
|
|
193
|
+
*/
|
|
194
|
+
exports.AgentState = {
|
|
195
|
+
Private: 'private',
|
|
196
|
+
Public: 'public',
|
|
197
|
+
Citizen: 'citizen'
|
|
198
|
+
};
|
|
189
199
|
exports.AgentUpdateWalletProviderEnum = {
|
|
190
200
|
Cdp: 'cdp',
|
|
191
201
|
Readonly: 'readonly'
|
|
@@ -633,20 +643,21 @@ var AgentApiAxiosParamCreator = function (configuration) {
|
|
|
633
643
|
});
|
|
634
644
|
},
|
|
635
645
|
/**
|
|
636
|
-
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
646
|
+
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
637
647
|
* @summary Get Agents
|
|
638
648
|
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
639
649
|
* @param {string | null} [cursor] Cursor for pagination
|
|
640
650
|
* @param {number} [limit] Maximum number of agents to return
|
|
651
|
+
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
641
652
|
* @param {*} [options] Override http request option.
|
|
642
653
|
* @throws {RequiredError}
|
|
643
654
|
*/
|
|
644
|
-
getAgents: function (sort_1, cursor_1, limit_1) {
|
|
655
|
+
getAgents: function (sort_1, cursor_1, limit_1, state_1) {
|
|
645
656
|
var args_1 = [];
|
|
646
|
-
for (var _i =
|
|
647
|
-
args_1[_i -
|
|
657
|
+
for (var _i = 4; _i < arguments.length; _i++) {
|
|
658
|
+
args_1[_i - 4] = arguments[_i];
|
|
648
659
|
}
|
|
649
|
-
return __awaiter(_this, __spreadArray([sort_1, cursor_1, limit_1], args_1, true), void 0, function (sort, cursor, limit, options) {
|
|
660
|
+
return __awaiter(_this, __spreadArray([sort_1, cursor_1, limit_1, state_1], args_1, true), void 0, function (sort, cursor, limit, state, options) {
|
|
650
661
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
651
662
|
if (options === void 0) { options = {}; }
|
|
652
663
|
return __generator(this, function (_a) {
|
|
@@ -667,6 +678,9 @@ var AgentApiAxiosParamCreator = function (configuration) {
|
|
|
667
678
|
if (limit !== undefined) {
|
|
668
679
|
localVarQueryParameter['limit'] = limit;
|
|
669
680
|
}
|
|
681
|
+
if (state !== undefined) {
|
|
682
|
+
localVarQueryParameter['state'] = state;
|
|
683
|
+
}
|
|
670
684
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
671
685
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
672
686
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1130,21 +1144,22 @@ var AgentApiFp = function (configuration) {
|
|
|
1130
1144
|
});
|
|
1131
1145
|
},
|
|
1132
1146
|
/**
|
|
1133
|
-
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
1147
|
+
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
1134
1148
|
* @summary Get Agents
|
|
1135
1149
|
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
1136
1150
|
* @param {string | null} [cursor] Cursor for pagination
|
|
1137
1151
|
* @param {number} [limit] Maximum number of agents to return
|
|
1152
|
+
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
1138
1153
|
* @param {*} [options] Override http request option.
|
|
1139
1154
|
* @throws {RequiredError}
|
|
1140
1155
|
*/
|
|
1141
|
-
getAgents: function (sort, cursor, limit, options) {
|
|
1156
|
+
getAgents: function (sort, cursor, limit, state, options) {
|
|
1142
1157
|
return __awaiter(this, void 0, void 0, function () {
|
|
1143
1158
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1144
1159
|
var _a, _b, _c;
|
|
1145
1160
|
return __generator(this, function (_d) {
|
|
1146
1161
|
switch (_d.label) {
|
|
1147
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAgents(sort, cursor, limit, options)];
|
|
1162
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAgents(sort, cursor, limit, state, options)];
|
|
1148
1163
|
case 1:
|
|
1149
1164
|
localVarAxiosArgs = _d.sent();
|
|
1150
1165
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -1368,16 +1383,17 @@ var AgentApiFactory = function (configuration, basePath, axios) {
|
|
|
1368
1383
|
return localVarFp.getAgentStatistics(aid, options).then(function (request) { return request(axios, basePath); });
|
|
1369
1384
|
},
|
|
1370
1385
|
/**
|
|
1371
|
-
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
1386
|
+
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
1372
1387
|
* @summary Get Agents
|
|
1373
1388
|
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
1374
1389
|
* @param {string | null} [cursor] Cursor for pagination
|
|
1375
1390
|
* @param {number} [limit] Maximum number of agents to return
|
|
1391
|
+
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
1376
1392
|
* @param {*} [options] Override http request option.
|
|
1377
1393
|
* @throws {RequiredError}
|
|
1378
1394
|
*/
|
|
1379
|
-
getAgents: function (sort, cursor, limit, options) {
|
|
1380
|
-
return localVarFp.getAgents(sort, cursor, limit, options).then(function (request) { return request(axios, basePath); });
|
|
1395
|
+
getAgents: function (sort, cursor, limit, state, options) {
|
|
1396
|
+
return localVarFp.getAgents(sort, cursor, limit, state, options).then(function (request) { return request(axios, basePath); });
|
|
1381
1397
|
},
|
|
1382
1398
|
/**
|
|
1383
1399
|
* Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
|
|
@@ -1531,18 +1547,19 @@ var AgentApi = /** @class */ (function (_super) {
|
|
|
1531
1547
|
return (0, exports.AgentApiFp)(this.configuration).getAgentStatistics(aid, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1532
1548
|
};
|
|
1533
1549
|
/**
|
|
1534
|
-
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
1550
|
+
* Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
1535
1551
|
* @summary Get Agents
|
|
1536
1552
|
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
1537
1553
|
* @param {string | null} [cursor] Cursor for pagination
|
|
1538
1554
|
* @param {number} [limit] Maximum number of agents to return
|
|
1555
|
+
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
1539
1556
|
* @param {*} [options] Override http request option.
|
|
1540
1557
|
* @throws {RequiredError}
|
|
1541
1558
|
* @memberof AgentApi
|
|
1542
1559
|
*/
|
|
1543
|
-
AgentApi.prototype.getAgents = function (sort, cursor, limit, options) {
|
|
1560
|
+
AgentApi.prototype.getAgents = function (sort, cursor, limit, state, options) {
|
|
1544
1561
|
var _this = this;
|
|
1545
|
-
return (0, exports.AgentApiFp)(this.configuration).getAgents(sort, cursor, limit, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1562
|
+
return (0, exports.AgentApiFp)(this.configuration).getAgents(sort, cursor, limit, state, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1546
1563
|
};
|
|
1547
1564
|
/**
|
|
1548
1565
|
* Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
|
|
@@ -5305,19 +5322,20 @@ var UserApiAxiosParamCreator = function (configuration) {
|
|
|
5305
5322
|
});
|
|
5306
5323
|
},
|
|
5307
5324
|
/**
|
|
5308
|
-
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `
|
|
5325
|
+
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `UserAgentListResponse` - Paginated list of user\'s agents as Agent objects
|
|
5309
5326
|
* @summary Get User Agents
|
|
5310
5327
|
* @param {string | null} [cursor] Cursor for pagination
|
|
5311
5328
|
* @param {number} [limit] Maximum number of agents to return
|
|
5329
|
+
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
5312
5330
|
* @param {*} [options] Override http request option.
|
|
5313
5331
|
* @throws {RequiredError}
|
|
5314
5332
|
*/
|
|
5315
|
-
getUserAgents: function (cursor_1, limit_1) {
|
|
5333
|
+
getUserAgents: function (cursor_1, limit_1, state_1) {
|
|
5316
5334
|
var args_1 = [];
|
|
5317
|
-
for (var _i =
|
|
5318
|
-
args_1[_i -
|
|
5335
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
5336
|
+
args_1[_i - 3] = arguments[_i];
|
|
5319
5337
|
}
|
|
5320
|
-
return __awaiter(_this, __spreadArray([cursor_1, limit_1], args_1, true), void 0, function (cursor, limit, options) {
|
|
5338
|
+
return __awaiter(_this, __spreadArray([cursor_1, limit_1, state_1], args_1, true), void 0, function (cursor, limit, state, options) {
|
|
5321
5339
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
5322
5340
|
if (options === void 0) { options = {}; }
|
|
5323
5341
|
return __generator(this, function (_a) {
|
|
@@ -5344,6 +5362,9 @@ var UserApiAxiosParamCreator = function (configuration) {
|
|
|
5344
5362
|
if (limit !== undefined) {
|
|
5345
5363
|
localVarQueryParameter['limit'] = limit;
|
|
5346
5364
|
}
|
|
5365
|
+
if (state !== undefined) {
|
|
5366
|
+
localVarQueryParameter['state'] = state;
|
|
5367
|
+
}
|
|
5347
5368
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5348
5369
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5349
5370
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -5441,20 +5462,21 @@ var UserApiFp = function (configuration) {
|
|
|
5441
5462
|
});
|
|
5442
5463
|
},
|
|
5443
5464
|
/**
|
|
5444
|
-
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `
|
|
5465
|
+
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `UserAgentListResponse` - Paginated list of user\'s agents as Agent objects
|
|
5445
5466
|
* @summary Get User Agents
|
|
5446
5467
|
* @param {string | null} [cursor] Cursor for pagination
|
|
5447
5468
|
* @param {number} [limit] Maximum number of agents to return
|
|
5469
|
+
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
5448
5470
|
* @param {*} [options] Override http request option.
|
|
5449
5471
|
* @throws {RequiredError}
|
|
5450
5472
|
*/
|
|
5451
|
-
getUserAgents: function (cursor, limit, options) {
|
|
5473
|
+
getUserAgents: function (cursor, limit, state, options) {
|
|
5452
5474
|
return __awaiter(this, void 0, void 0, function () {
|
|
5453
5475
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
5454
5476
|
var _a, _b, _c;
|
|
5455
5477
|
return __generator(this, function (_d) {
|
|
5456
5478
|
switch (_d.label) {
|
|
5457
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getUserAgents(cursor, limit, options)];
|
|
5479
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getUserAgents(cursor, limit, state, options)];
|
|
5458
5480
|
case 1:
|
|
5459
5481
|
localVarAxiosArgs = _d.sent();
|
|
5460
5482
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -5508,15 +5530,16 @@ var UserApiFactory = function (configuration, basePath, axios) {
|
|
|
5508
5530
|
return localVarFp.getUserAgentById(agentId, options).then(function (request) { return request(axios, basePath); });
|
|
5509
5531
|
},
|
|
5510
5532
|
/**
|
|
5511
|
-
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `
|
|
5533
|
+
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `UserAgentListResponse` - Paginated list of user\'s agents as Agent objects
|
|
5512
5534
|
* @summary Get User Agents
|
|
5513
5535
|
* @param {string | null} [cursor] Cursor for pagination
|
|
5514
5536
|
* @param {number} [limit] Maximum number of agents to return
|
|
5537
|
+
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
5515
5538
|
* @param {*} [options] Override http request option.
|
|
5516
5539
|
* @throws {RequiredError}
|
|
5517
5540
|
*/
|
|
5518
|
-
getUserAgents: function (cursor, limit, options) {
|
|
5519
|
-
return localVarFp.getUserAgents(cursor, limit, options).then(function (request) { return request(axios, basePath); });
|
|
5541
|
+
getUserAgents: function (cursor, limit, state, options) {
|
|
5542
|
+
return localVarFp.getUserAgents(cursor, limit, state, options).then(function (request) { return request(axios, basePath); });
|
|
5520
5543
|
},
|
|
5521
5544
|
/**
|
|
5522
5545
|
* Upload a file for the authenticated user. **Form Data:** * `file` - File to upload (supports images, videos, audio, and PDF files) **Returns:** * `FileUploadResponse` - Contains the CDN URL and unique identifier of the uploaded file **Raises:** * `400` - Invalid file type or file too large * `500` - Upload failed
|
|
@@ -5555,17 +5578,18 @@ var UserApi = /** @class */ (function (_super) {
|
|
|
5555
5578
|
return (0, exports.UserApiFp)(this.configuration).getUserAgentById(agentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5556
5579
|
};
|
|
5557
5580
|
/**
|
|
5558
|
-
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `
|
|
5581
|
+
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `UserAgentListResponse` - Paginated list of user\'s agents as Agent objects
|
|
5559
5582
|
* @summary Get User Agents
|
|
5560
5583
|
* @param {string | null} [cursor] Cursor for pagination
|
|
5561
5584
|
* @param {number} [limit] Maximum number of agents to return
|
|
5585
|
+
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
5562
5586
|
* @param {*} [options] Override http request option.
|
|
5563
5587
|
* @throws {RequiredError}
|
|
5564
5588
|
* @memberof UserApi
|
|
5565
5589
|
*/
|
|
5566
|
-
UserApi.prototype.getUserAgents = function (cursor, limit, options) {
|
|
5590
|
+
UserApi.prototype.getUserAgents = function (cursor, limit, state, options) {
|
|
5567
5591
|
var _this = this;
|
|
5568
|
-
return (0, exports.UserApiFp)(this.configuration).getUserAgents(cursor, limit, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5592
|
+
return (0, exports.UserApiFp)(this.configuration).getUserAgents(cursor, limit, state, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5569
5593
|
};
|
|
5570
5594
|
/**
|
|
5571
5595
|
* Upload a file for the authenticated user. **Form Data:** * `file` - File to upload (supports images, videos, audio, and PDF files) **Returns:** * `FileUploadResponse` - Contains the CDN URL and unique identifier of the uploaded file **Raises:** * `400` - Invalid file type or file too large * `500` - Upload failed
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/docs/AgentApi.md
CHANGED
|
@@ -340,7 +340,7 @@ No authorization required
|
|
|
340
340
|
# **getAgents**
|
|
341
341
|
> AgentListResponse getAgents()
|
|
342
342
|
|
|
343
|
-
Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
343
|
+
Get all agents with their quota information. **Query Parameters:** * `sort` - Sort order for the agents list * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
344
344
|
|
|
345
345
|
### Example
|
|
346
346
|
|
|
@@ -356,11 +356,13 @@ const apiInstance = new AgentApi(configuration);
|
|
|
356
356
|
let sort: AgentSortOption; //Sort order for agents list (optional) (default to undefined)
|
|
357
357
|
let cursor: string; //Cursor for pagination (optional) (default to undefined)
|
|
358
358
|
let limit: number; //Maximum number of agents to return (optional) (default to 20)
|
|
359
|
+
let state: AgentState; //Filter agents by state in upstream_extra JSON field (optional) (default to undefined)
|
|
359
360
|
|
|
360
361
|
const { status, data } = await apiInstance.getAgents(
|
|
361
362
|
sort,
|
|
362
363
|
cursor,
|
|
363
|
-
limit
|
|
364
|
+
limit,
|
|
365
|
+
state
|
|
364
366
|
);
|
|
365
367
|
```
|
|
366
368
|
|
|
@@ -371,6 +373,7 @@ const { status, data } = await apiInstance.getAgents(
|
|
|
371
373
|
| **sort** | **AgentSortOption** | Sort order for agents list | (optional) defaults to undefined|
|
|
372
374
|
| **cursor** | [**string**] | Cursor for pagination | (optional) defaults to undefined|
|
|
373
375
|
| **limit** | [**number**] | Maximum number of agents to return | (optional) defaults to 20|
|
|
376
|
+
| **state** | **AgentState** | Filter agents by state in upstream_extra JSON field | (optional) defaults to undefined|
|
|
374
377
|
|
|
375
378
|
|
|
376
379
|
### Return type
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# AgentState
|
|
2
|
+
|
|
3
|
+
Agent state.
|
|
4
|
+
|
|
5
|
+
## Enum
|
|
6
|
+
|
|
7
|
+
* `Private` (value: `'private'`)
|
|
8
|
+
|
|
9
|
+
* `Public` (value: `'public'`)
|
|
10
|
+
|
|
11
|
+
* `Citizen` (value: `'citizen'`)
|
|
12
|
+
|
|
13
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/DraftApi.md
CHANGED
|
@@ -119,7 +119,7 @@ void (empty response body)
|
|
|
119
119
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
120
120
|
|
|
121
121
|
# **deployAgentFromDraft**
|
|
122
|
-
>
|
|
122
|
+
> Agent deployAgentFromDraft(agentDeployRequest)
|
|
123
123
|
|
|
124
124
|
Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration. The upstream_id is set to the provided tx_id. Possible HTTP errors: - 400: Draft is not the latest version or already deployed - 401: Unauthorized (invalid or missing authentication) - 404: Agent or draft not found - 403: Permission denied (not your agent) - 500: Internal server error
|
|
125
125
|
|
|
@@ -151,7 +151,7 @@ const { status, data } = await apiInstance.deployAgentFromDraft(
|
|
|
151
151
|
|
|
152
152
|
### Return type
|
|
153
153
|
|
|
154
|
-
**
|
|
154
|
+
**Agent**
|
|
155
155
|
|
|
156
156
|
### Authorization
|
|
157
157
|
|
|
@@ -27,8 +27,8 @@ Name | Type | Description | Notes
|
|
|
27
27
|
**supports_presence_penalty** | **boolean** | | [optional] [default to true]
|
|
28
28
|
**api_base** | **string** | | [optional] [default to undefined]
|
|
29
29
|
**timeout** | **number** | | [optional] [default to 180]
|
|
30
|
-
**created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-09-
|
|
31
|
-
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-09-
|
|
30
|
+
**created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-09-22T17:51:48.323+00:00]
|
|
31
|
+
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-09-22T17:51:48.323+00:00]
|
|
32
32
|
**provider_name** | **string** | | [default to undefined]
|
|
33
33
|
|
|
34
34
|
## Example
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# UserAgentListResponse
|
|
2
|
+
|
|
3
|
+
Paginated response model for user agents list. Contains a list of Agent objects, a flag indicating if more items are available, and a cursor for pagination.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**data** | [**Array<Agent>**](Agent.md) | List of agents | [default to undefined]
|
|
10
|
+
**has_more** | **boolean** | Indicates if there are more items | [default to undefined]
|
|
11
|
+
**next_cursor** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { UserAgentListResponse } from '@crestal/nation-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: UserAgentListResponse = {
|
|
19
|
+
data,
|
|
20
|
+
has_more,
|
|
21
|
+
next_cursor,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/UserApi.md
CHANGED
|
@@ -61,9 +61,9 @@ const { status, data } = await apiInstance.getUserAgentById(
|
|
|
61
61
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
62
62
|
|
|
63
63
|
# **getUserAgents**
|
|
64
|
-
>
|
|
64
|
+
> UserAgentListResponse getUserAgents()
|
|
65
65
|
|
|
66
|
-
Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `
|
|
66
|
+
Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) * `state` - Filter agents by state in upstream_extra JSON field **Returns:** * `UserAgentListResponse` - Paginated list of user\'s agents as Agent objects
|
|
67
67
|
|
|
68
68
|
### Example
|
|
69
69
|
|
|
@@ -78,10 +78,12 @@ const apiInstance = new UserApi(configuration);
|
|
|
78
78
|
|
|
79
79
|
let cursor: string; //Cursor for pagination (optional) (default to undefined)
|
|
80
80
|
let limit: number; //Maximum number of agents to return (optional) (default to 20)
|
|
81
|
+
let state: AgentState; //Filter agents by state in upstream_extra JSON field (optional) (default to undefined)
|
|
81
82
|
|
|
82
83
|
const { status, data } = await apiInstance.getUserAgents(
|
|
83
84
|
cursor,
|
|
84
|
-
limit
|
|
85
|
+
limit,
|
|
86
|
+
state
|
|
85
87
|
);
|
|
86
88
|
```
|
|
87
89
|
|
|
@@ -91,11 +93,12 @@ const { status, data } = await apiInstance.getUserAgents(
|
|
|
91
93
|
|------------- | ------------- | ------------- | -------------|
|
|
92
94
|
| **cursor** | [**string**] | Cursor for pagination | (optional) defaults to undefined|
|
|
93
95
|
| **limit** | [**number**] | Maximum number of agents to return | (optional) defaults to 20|
|
|
96
|
+
| **state** | **AgentState** | Filter agents by state in upstream_extra JSON field | (optional) defaults to undefined|
|
|
94
97
|
|
|
95
98
|
|
|
96
99
|
### Return type
|
|
97
100
|
|
|
98
|
-
**
|
|
101
|
+
**UserAgentListResponse**
|
|
99
102
|
|
|
100
103
|
### Authorization
|
|
101
104
|
|
package/index.ts
CHANGED