@crestal/nation-sdk 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +20 -12
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +13 -9
- package/dist/api.js +22 -15
- 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/LLMModelInfoWithProviderNameInput.md +2 -2
- package/docs/LLMModelInfoWithProviderNameOutput.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @crestal/nation-sdk@0.8.
|
|
1
|
+
## @crestal/nation-sdk@0.8.1
|
|
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.
|
|
39
|
+
npm install @crestal/nation-sdk@0.8.1 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 0.8.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2395,17 +2395,18 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
2395
2395
|
};
|
|
2396
2396
|
},
|
|
2397
2397
|
/**
|
|
2398
|
-
* 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 * `tag` - Filter agents by tag IDs in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
2398
|
+
* 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 * `tag` - Filter agents by tag IDs in public_extra.tags * `keyword` - Case-insensitive keyword search on name, description, slug, or token address **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
2399
2399
|
* @summary Get Agents
|
|
2400
2400
|
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
2401
2401
|
* @param {string | null} [cursor] Cursor for pagination
|
|
2402
2402
|
* @param {number} [limit] Maximum number of agents to return
|
|
2403
2403
|
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
2404
2404
|
* @param {Array<number> | null} [tag] Filter agents by tag IDs in public_extra.tags
|
|
2405
|
+
* @param {string | null} [keyword] Case-insensitive keyword to search agent name, description, slug, or token address
|
|
2405
2406
|
* @param {*} [options] Override http request option.
|
|
2406
2407
|
* @throws {RequiredError}
|
|
2407
2408
|
*/
|
|
2408
|
-
getAgents: async (sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: Array<number> | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2409
|
+
getAgents: async (sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: Array<number> | null, keyword?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2409
2410
|
const localVarPath = `/agents`;
|
|
2410
2411
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2411
2412
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2438,6 +2439,10 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
2438
2439
|
localVarQueryParameter['tag'] = tag;
|
|
2439
2440
|
}
|
|
2440
2441
|
|
|
2442
|
+
if (keyword !== undefined) {
|
|
2443
|
+
localVarQueryParameter['keyword'] = keyword;
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2441
2446
|
|
|
2442
2447
|
|
|
2443
2448
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2912,18 +2917,19 @@ export const AgentApiFp = function(configuration?: Configuration) {
|
|
|
2912
2917
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2913
2918
|
},
|
|
2914
2919
|
/**
|
|
2915
|
-
* 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 * `tag` - Filter agents by tag IDs in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
2920
|
+
* 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 * `tag` - Filter agents by tag IDs in public_extra.tags * `keyword` - Case-insensitive keyword search on name, description, slug, or token address **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
2916
2921
|
* @summary Get Agents
|
|
2917
2922
|
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
2918
2923
|
* @param {string | null} [cursor] Cursor for pagination
|
|
2919
2924
|
* @param {number} [limit] Maximum number of agents to return
|
|
2920
2925
|
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
2921
2926
|
* @param {Array<number> | null} [tag] Filter agents by tag IDs in public_extra.tags
|
|
2927
|
+
* @param {string | null} [keyword] Case-insensitive keyword to search agent name, description, slug, or token address
|
|
2922
2928
|
* @param {*} [options] Override http request option.
|
|
2923
2929
|
* @throws {RequiredError}
|
|
2924
2930
|
*/
|
|
2925
|
-
async getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: Array<number> | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentListResponse>> {
|
|
2926
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAgents(sort, cursor, limit, state, tag, options);
|
|
2931
|
+
async getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: Array<number> | null, keyword?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentListResponse>> {
|
|
2932
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAgents(sort, cursor, limit, state, tag, keyword, options);
|
|
2927
2933
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2928
2934
|
const localVarOperationServerBasePath = operationServerMap['AgentApi.getAgents']?.[localVarOperationServerIndex]?.url;
|
|
2929
2935
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3121,18 +3127,19 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
|
|
|
3121
3127
|
return localVarFp.getAgentStatistics(aid, options).then((request) => request(axios, basePath));
|
|
3122
3128
|
},
|
|
3123
3129
|
/**
|
|
3124
|
-
* 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 * `tag` - Filter agents by tag IDs in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
3130
|
+
* 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 * `tag` - Filter agents by tag IDs in public_extra.tags * `keyword` - Case-insensitive keyword search on name, description, slug, or token address **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
3125
3131
|
* @summary Get Agents
|
|
3126
3132
|
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
3127
3133
|
* @param {string | null} [cursor] Cursor for pagination
|
|
3128
3134
|
* @param {number} [limit] Maximum number of agents to return
|
|
3129
3135
|
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
3130
3136
|
* @param {Array<number> | null} [tag] Filter agents by tag IDs in public_extra.tags
|
|
3137
|
+
* @param {string | null} [keyword] Case-insensitive keyword to search agent name, description, slug, or token address
|
|
3131
3138
|
* @param {*} [options] Override http request option.
|
|
3132
3139
|
* @throws {RequiredError}
|
|
3133
3140
|
*/
|
|
3134
|
-
getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: Array<number> | null, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse> {
|
|
3135
|
-
return localVarFp.getAgents(sort, cursor, limit, state, tag, options).then((request) => request(axios, basePath));
|
|
3141
|
+
getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: Array<number> | null, keyword?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse> {
|
|
3142
|
+
return localVarFp.getAgents(sort, cursor, limit, state, tag, keyword, options).then((request) => request(axios, basePath));
|
|
3136
3143
|
},
|
|
3137
3144
|
/**
|
|
3138
3145
|
* 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
|
|
@@ -3304,18 +3311,19 @@ export class AgentApi extends BaseAPI {
|
|
|
3304
3311
|
}
|
|
3305
3312
|
|
|
3306
3313
|
/**
|
|
3307
|
-
* 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 * `tag` - Filter agents by tag IDs in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
3314
|
+
* 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 * `tag` - Filter agents by tag IDs in public_extra.tags * `keyword` - Case-insensitive keyword search on name, description, slug, or token address **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
3308
3315
|
* @summary Get Agents
|
|
3309
3316
|
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
3310
3317
|
* @param {string | null} [cursor] Cursor for pagination
|
|
3311
3318
|
* @param {number} [limit] Maximum number of agents to return
|
|
3312
3319
|
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
3313
3320
|
* @param {Array<number> | null} [tag] Filter agents by tag IDs in public_extra.tags
|
|
3321
|
+
* @param {string | null} [keyword] Case-insensitive keyword to search agent name, description, slug, or token address
|
|
3314
3322
|
* @param {*} [options] Override http request option.
|
|
3315
3323
|
* @throws {RequiredError}
|
|
3316
3324
|
*/
|
|
3317
|
-
public getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: Array<number> | null, options?: RawAxiosRequestConfig) {
|
|
3318
|
-
return AgentApiFp(this.configuration).getAgents(sort, cursor, limit, state, tag, options).then((request) => request(this.axios, this.basePath));
|
|
3325
|
+
public getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: Array<number> | null, keyword?: string | null, options?: RawAxiosRequestConfig) {
|
|
3326
|
+
return AgentApiFp(this.configuration).getAgents(sort, cursor, limit, state, tag, keyword, options).then((request) => request(this.axios, this.basePath));
|
|
3319
3327
|
}
|
|
3320
3328
|
|
|
3321
3329
|
/**
|
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.8.
|
|
5
|
+
* The version of the OpenAPI document: 0.8.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2171,17 +2171,18 @@ export declare const AgentApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
2171
2171
|
*/
|
|
2172
2172
|
getAgentStatistics: (aid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2173
2173
|
/**
|
|
2174
|
-
* 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 * `tag` - Filter agents by tag IDs in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
2174
|
+
* 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 * `tag` - Filter agents by tag IDs in public_extra.tags * `keyword` - Case-insensitive keyword search on name, description, slug, or token address **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
2175
2175
|
* @summary Get Agents
|
|
2176
2176
|
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
2177
2177
|
* @param {string | null} [cursor] Cursor for pagination
|
|
2178
2178
|
* @param {number} [limit] Maximum number of agents to return
|
|
2179
2179
|
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
2180
2180
|
* @param {Array<number> | null} [tag] Filter agents by tag IDs in public_extra.tags
|
|
2181
|
+
* @param {string | null} [keyword] Case-insensitive keyword to search agent name, description, slug, or token address
|
|
2181
2182
|
* @param {*} [options] Override http request option.
|
|
2182
2183
|
* @throws {RequiredError}
|
|
2183
2184
|
*/
|
|
2184
|
-
getAgents: (sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: Array<number> | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2185
|
+
getAgents: (sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: Array<number> | null, keyword?: string | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2185
2186
|
/**
|
|
2186
2187
|
* 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
|
|
2187
2188
|
* @summary Skill History
|
|
@@ -2314,17 +2315,18 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
|
|
|
2314
2315
|
*/
|
|
2315
2316
|
getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentStatistics>>;
|
|
2316
2317
|
/**
|
|
2317
|
-
* 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 * `tag` - Filter agents by tag IDs in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
2318
|
+
* 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 * `tag` - Filter agents by tag IDs in public_extra.tags * `keyword` - Case-insensitive keyword search on name, description, slug, or token address **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
2318
2319
|
* @summary Get Agents
|
|
2319
2320
|
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
2320
2321
|
* @param {string | null} [cursor] Cursor for pagination
|
|
2321
2322
|
* @param {number} [limit] Maximum number of agents to return
|
|
2322
2323
|
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
2323
2324
|
* @param {Array<number> | null} [tag] Filter agents by tag IDs in public_extra.tags
|
|
2325
|
+
* @param {string | null} [keyword] Case-insensitive keyword to search agent name, description, slug, or token address
|
|
2324
2326
|
* @param {*} [options] Override http request option.
|
|
2325
2327
|
* @throws {RequiredError}
|
|
2326
2328
|
*/
|
|
2327
|
-
getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: Array<number> | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentListResponse>>;
|
|
2329
|
+
getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: Array<number> | null, keyword?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentListResponse>>;
|
|
2328
2330
|
/**
|
|
2329
2331
|
* 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
|
|
2330
2332
|
* @summary Skill History
|
|
@@ -2457,17 +2459,18 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
|
|
|
2457
2459
|
*/
|
|
2458
2460
|
getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentStatistics>;
|
|
2459
2461
|
/**
|
|
2460
|
-
* 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 * `tag` - Filter agents by tag IDs in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
2462
|
+
* 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 * `tag` - Filter agents by tag IDs in public_extra.tags * `keyword` - Case-insensitive keyword search on name, description, slug, or token address **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
2461
2463
|
* @summary Get Agents
|
|
2462
2464
|
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
2463
2465
|
* @param {string | null} [cursor] Cursor for pagination
|
|
2464
2466
|
* @param {number} [limit] Maximum number of agents to return
|
|
2465
2467
|
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
2466
2468
|
* @param {Array<number> | null} [tag] Filter agents by tag IDs in public_extra.tags
|
|
2469
|
+
* @param {string | null} [keyword] Case-insensitive keyword to search agent name, description, slug, or token address
|
|
2467
2470
|
* @param {*} [options] Override http request option.
|
|
2468
2471
|
* @throws {RequiredError}
|
|
2469
2472
|
*/
|
|
2470
|
-
getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: Array<number> | null, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse>;
|
|
2473
|
+
getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: Array<number> | null, keyword?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse>;
|
|
2471
2474
|
/**
|
|
2472
2475
|
* 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
|
|
2473
2476
|
* @summary Skill History
|
|
@@ -2600,17 +2603,18 @@ export declare class AgentApi extends BaseAPI {
|
|
|
2600
2603
|
*/
|
|
2601
2604
|
getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentStatistics, any, {}>>;
|
|
2602
2605
|
/**
|
|
2603
|
-
* 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 * `tag` - Filter agents by tag IDs in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
2606
|
+
* 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 * `tag` - Filter agents by tag IDs in public_extra.tags * `keyword` - Case-insensitive keyword search on name, description, slug, or token address **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
2604
2607
|
* @summary Get Agents
|
|
2605
2608
|
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
2606
2609
|
* @param {string | null} [cursor] Cursor for pagination
|
|
2607
2610
|
* @param {number} [limit] Maximum number of agents to return
|
|
2608
2611
|
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
2609
2612
|
* @param {Array<number> | null} [tag] Filter agents by tag IDs in public_extra.tags
|
|
2613
|
+
* @param {string | null} [keyword] Case-insensitive keyword to search agent name, description, slug, or token address
|
|
2610
2614
|
* @param {*} [options] Override http request option.
|
|
2611
2615
|
* @throws {RequiredError}
|
|
2612
2616
|
*/
|
|
2613
|
-
getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: Array<number> | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentListResponse, any, {}>>;
|
|
2617
|
+
getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: Array<number> | null, keyword?: string | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentListResponse, any, {}>>;
|
|
2614
2618
|
/**
|
|
2615
2619
|
* 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
|
|
2616
2620
|
* @summary Skill History
|
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.8.
|
|
8
|
+
* The version of the OpenAPI document: 0.8.1
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -643,22 +643,23 @@ var AgentApiAxiosParamCreator = function (configuration) {
|
|
|
643
643
|
});
|
|
644
644
|
},
|
|
645
645
|
/**
|
|
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 * `tag` - Filter agents by tag IDs in public_extra.tags **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 * `tag` - Filter agents by tag IDs in public_extra.tags * `keyword` - Case-insensitive keyword search on name, description, slug, or token address **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
647
647
|
* @summary Get Agents
|
|
648
648
|
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
649
649
|
* @param {string | null} [cursor] Cursor for pagination
|
|
650
650
|
* @param {number} [limit] Maximum number of agents to return
|
|
651
651
|
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
652
652
|
* @param {Array<number> | null} [tag] Filter agents by tag IDs in public_extra.tags
|
|
653
|
+
* @param {string | null} [keyword] Case-insensitive keyword to search agent name, description, slug, or token address
|
|
653
654
|
* @param {*} [options] Override http request option.
|
|
654
655
|
* @throws {RequiredError}
|
|
655
656
|
*/
|
|
656
|
-
getAgents: function (sort_1, cursor_1, limit_1, state_1, tag_1) {
|
|
657
|
+
getAgents: function (sort_1, cursor_1, limit_1, state_1, tag_1, keyword_1) {
|
|
657
658
|
var args_1 = [];
|
|
658
|
-
for (var _i =
|
|
659
|
-
args_1[_i -
|
|
659
|
+
for (var _i = 6; _i < arguments.length; _i++) {
|
|
660
|
+
args_1[_i - 6] = arguments[_i];
|
|
660
661
|
}
|
|
661
|
-
return __awaiter(_this, __spreadArray([sort_1, cursor_1, limit_1, state_1, tag_1], args_1, true), void 0, function (sort, cursor, limit, state, tag, options) {
|
|
662
|
+
return __awaiter(_this, __spreadArray([sort_1, cursor_1, limit_1, state_1, tag_1, keyword_1], args_1, true), void 0, function (sort, cursor, limit, state, tag, keyword, options) {
|
|
662
663
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
663
664
|
if (options === void 0) { options = {}; }
|
|
664
665
|
return __generator(this, function (_a) {
|
|
@@ -685,6 +686,9 @@ var AgentApiAxiosParamCreator = function (configuration) {
|
|
|
685
686
|
if (tag) {
|
|
686
687
|
localVarQueryParameter['tag'] = tag;
|
|
687
688
|
}
|
|
689
|
+
if (keyword !== undefined) {
|
|
690
|
+
localVarQueryParameter['keyword'] = keyword;
|
|
691
|
+
}
|
|
688
692
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
689
693
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
690
694
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1291,23 +1295,24 @@ var AgentApiFp = function (configuration) {
|
|
|
1291
1295
|
});
|
|
1292
1296
|
},
|
|
1293
1297
|
/**
|
|
1294
|
-
* 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 * `tag` - Filter agents by tag IDs in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
1298
|
+
* 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 * `tag` - Filter agents by tag IDs in public_extra.tags * `keyword` - Case-insensitive keyword search on name, description, slug, or token address **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
1295
1299
|
* @summary Get Agents
|
|
1296
1300
|
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
1297
1301
|
* @param {string | null} [cursor] Cursor for pagination
|
|
1298
1302
|
* @param {number} [limit] Maximum number of agents to return
|
|
1299
1303
|
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
1300
1304
|
* @param {Array<number> | null} [tag] Filter agents by tag IDs in public_extra.tags
|
|
1305
|
+
* @param {string | null} [keyword] Case-insensitive keyword to search agent name, description, slug, or token address
|
|
1301
1306
|
* @param {*} [options] Override http request option.
|
|
1302
1307
|
* @throws {RequiredError}
|
|
1303
1308
|
*/
|
|
1304
|
-
getAgents: function (sort, cursor, limit, state, tag, options) {
|
|
1309
|
+
getAgents: function (sort, cursor, limit, state, tag, keyword, options) {
|
|
1305
1310
|
return __awaiter(this, void 0, void 0, function () {
|
|
1306
1311
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1307
1312
|
var _a, _b, _c;
|
|
1308
1313
|
return __generator(this, function (_d) {
|
|
1309
1314
|
switch (_d.label) {
|
|
1310
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAgents(sort, cursor, limit, state, tag, options)];
|
|
1315
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAgents(sort, cursor, limit, state, tag, keyword, options)];
|
|
1311
1316
|
case 1:
|
|
1312
1317
|
localVarAxiosArgs = _d.sent();
|
|
1313
1318
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -1600,18 +1605,19 @@ var AgentApiFactory = function (configuration, basePath, axios) {
|
|
|
1600
1605
|
return localVarFp.getAgentStatistics(aid, options).then(function (request) { return request(axios, basePath); });
|
|
1601
1606
|
},
|
|
1602
1607
|
/**
|
|
1603
|
-
* 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 * `tag` - Filter agents by tag IDs in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
1608
|
+
* 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 * `tag` - Filter agents by tag IDs in public_extra.tags * `keyword` - Case-insensitive keyword search on name, description, slug, or token address **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
1604
1609
|
* @summary Get Agents
|
|
1605
1610
|
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
1606
1611
|
* @param {string | null} [cursor] Cursor for pagination
|
|
1607
1612
|
* @param {number} [limit] Maximum number of agents to return
|
|
1608
1613
|
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
1609
1614
|
* @param {Array<number> | null} [tag] Filter agents by tag IDs in public_extra.tags
|
|
1615
|
+
* @param {string | null} [keyword] Case-insensitive keyword to search agent name, description, slug, or token address
|
|
1610
1616
|
* @param {*} [options] Override http request option.
|
|
1611
1617
|
* @throws {RequiredError}
|
|
1612
1618
|
*/
|
|
1613
|
-
getAgents: function (sort, cursor, limit, state, tag, options) {
|
|
1614
|
-
return localVarFp.getAgents(sort, cursor, limit, state, tag, options).then(function (request) { return request(axios, basePath); });
|
|
1619
|
+
getAgents: function (sort, cursor, limit, state, tag, keyword, options) {
|
|
1620
|
+
return localVarFp.getAgents(sort, cursor, limit, state, tag, keyword, options).then(function (request) { return request(axios, basePath); });
|
|
1615
1621
|
},
|
|
1616
1622
|
/**
|
|
1617
1623
|
* 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
|
|
@@ -1787,19 +1793,20 @@ var AgentApi = /** @class */ (function (_super) {
|
|
|
1787
1793
|
return (0, exports.AgentApiFp)(this.configuration).getAgentStatistics(aid, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1788
1794
|
};
|
|
1789
1795
|
/**
|
|
1790
|
-
* 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 * `tag` - Filter agents by tag IDs in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
1796
|
+
* 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 * `tag` - Filter agents by tag IDs in public_extra.tags * `keyword` - Case-insensitive keyword search on name, description, slug, or token address **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
1791
1797
|
* @summary Get Agents
|
|
1792
1798
|
* @param {AgentSortOption} [sort] Sort order for agents list
|
|
1793
1799
|
* @param {string | null} [cursor] Cursor for pagination
|
|
1794
1800
|
* @param {number} [limit] Maximum number of agents to return
|
|
1795
1801
|
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
1796
1802
|
* @param {Array<number> | null} [tag] Filter agents by tag IDs in public_extra.tags
|
|
1803
|
+
* @param {string | null} [keyword] Case-insensitive keyword to search agent name, description, slug, or token address
|
|
1797
1804
|
* @param {*} [options] Override http request option.
|
|
1798
1805
|
* @throws {RequiredError}
|
|
1799
1806
|
*/
|
|
1800
|
-
AgentApi.prototype.getAgents = function (sort, cursor, limit, state, tag, options) {
|
|
1807
|
+
AgentApi.prototype.getAgents = function (sort, cursor, limit, state, tag, keyword, options) {
|
|
1801
1808
|
var _this = this;
|
|
1802
|
-
return (0, exports.AgentApiFp)(this.configuration).getAgents(sort, cursor, limit, state, tag, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1809
|
+
return (0, exports.AgentApiFp)(this.configuration).getAgents(sort, cursor, limit, state, tag, keyword, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1803
1810
|
};
|
|
1804
1811
|
/**
|
|
1805
1812
|
* 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
|
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
|
@@ -343,7 +343,7 @@ No authorization required
|
|
|
343
343
|
# **getAgents**
|
|
344
344
|
> AgentListResponse getAgents()
|
|
345
345
|
|
|
346
|
-
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 * `tag` - Filter agents by tag IDs in public_extra.tags **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
346
|
+
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 * `tag` - Filter agents by tag IDs in public_extra.tags * `keyword` - Case-insensitive keyword search on name, description, slug, or token address **Returns:** * `AgentListResponse` - Paginated list of agents with their quota information and additional processed data
|
|
347
347
|
|
|
348
348
|
### Example
|
|
349
349
|
|
|
@@ -361,13 +361,15 @@ let cursor: string; //Cursor for pagination (optional) (default to undefined)
|
|
|
361
361
|
let limit: number; //Maximum number of agents to return (optional) (default to 20)
|
|
362
362
|
let state: AgentState; //Filter agents by state in upstream_extra JSON field (optional) (default to undefined)
|
|
363
363
|
let tag: Array<number>; //Filter agents by tag IDs in public_extra.tags (optional) (default to undefined)
|
|
364
|
+
let keyword: string; //Case-insensitive keyword to search agent name, description, slug, or token address (optional) (default to undefined)
|
|
364
365
|
|
|
365
366
|
const { status, data } = await apiInstance.getAgents(
|
|
366
367
|
sort,
|
|
367
368
|
cursor,
|
|
368
369
|
limit,
|
|
369
370
|
state,
|
|
370
|
-
tag
|
|
371
|
+
tag,
|
|
372
|
+
keyword
|
|
371
373
|
);
|
|
372
374
|
```
|
|
373
375
|
|
|
@@ -380,6 +382,7 @@ const { status, data } = await apiInstance.getAgents(
|
|
|
380
382
|
| **limit** | [**number**] | Maximum number of agents to return | (optional) defaults to 20|
|
|
381
383
|
| **state** | **AgentState** | Filter agents by state in upstream_extra JSON field | (optional) defaults to undefined|
|
|
382
384
|
| **tag** | **Array<number>** | Filter agents by tag IDs in public_extra.tags | (optional) defaults to undefined|
|
|
385
|
+
| **keyword** | [**string**] | Case-insensitive keyword to search agent name, description, slug, or token address | (optional) defaults to undefined|
|
|
383
386
|
|
|
384
387
|
|
|
385
388
|
### Return type
|
|
@@ -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-10-
|
|
31
|
-
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-
|
|
30
|
+
**created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-10-14T12:10:18.705+00:00]
|
|
31
|
+
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-14T12:10:18.705+00:00]
|
|
32
32
|
**provider_name** | **string** | | [default to undefined]
|
|
33
33
|
|
|
34
34
|
## Example
|
|
@@ -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-10-
|
|
31
|
-
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-
|
|
30
|
+
**created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-10-14T12:10:18.705+00:00]
|
|
31
|
+
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-14T12:10:18.705+00:00]
|
|
32
32
|
**provider_name** | **string** | | [default to undefined]
|
|
33
33
|
|
|
34
34
|
## Example
|
package/index.ts
CHANGED