@crestal/nation-sdk 0.7.12 → 0.7.14
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 +8 -2
- package/api.ts +390 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +233 -1
- package/dist/api.js +361 -1
- 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/Agent.md +6 -0
- package/docs/AgentApi.md +110 -0
- package/docs/AgentPublicInfo.md +37 -0
- package/docs/AgentResponse.md +6 -0
- package/docs/FeePercentage.md +19 -0
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/docs/MetadataApi.md +90 -0
- package/index.ts +1 -1
- package/package.json +1 -1
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.14
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -67,6 +67,12 @@ export interface Agent {
|
|
|
67
67
|
* @memberof Agent
|
|
68
68
|
*/
|
|
69
69
|
'examples'?: Array<AgentExample> | null;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {object}
|
|
73
|
+
* @memberof Agent
|
|
74
|
+
*/
|
|
75
|
+
'public_extra'?: object | null;
|
|
70
76
|
/**
|
|
71
77
|
*
|
|
72
78
|
* @type {string}
|
|
@@ -253,6 +259,18 @@ export interface Agent {
|
|
|
253
259
|
* @memberof Agent
|
|
254
260
|
*/
|
|
255
261
|
'extra'?: object | null;
|
|
262
|
+
/**
|
|
263
|
+
*
|
|
264
|
+
* @type {string}
|
|
265
|
+
* @memberof Agent
|
|
266
|
+
*/
|
|
267
|
+
'deployed_at'?: string | null;
|
|
268
|
+
/**
|
|
269
|
+
*
|
|
270
|
+
* @type {string}
|
|
271
|
+
* @memberof Agent
|
|
272
|
+
*/
|
|
273
|
+
'public_info_updated_at'?: string | null;
|
|
256
274
|
/**
|
|
257
275
|
* Timestamp when the agent was created, will ignore when importing
|
|
258
276
|
* @type {string}
|
|
@@ -974,6 +992,67 @@ export interface AgentListResponse {
|
|
|
974
992
|
*/
|
|
975
993
|
'next_cursor'?: string | null;
|
|
976
994
|
}
|
|
995
|
+
/**
|
|
996
|
+
* Public information of the agent.
|
|
997
|
+
* @export
|
|
998
|
+
* @interface AgentPublicInfo
|
|
999
|
+
*/
|
|
1000
|
+
export interface AgentPublicInfo {
|
|
1001
|
+
/**
|
|
1002
|
+
*
|
|
1003
|
+
* @type {string}
|
|
1004
|
+
* @memberof AgentPublicInfo
|
|
1005
|
+
*/
|
|
1006
|
+
'description'?: string | null;
|
|
1007
|
+
/**
|
|
1008
|
+
*
|
|
1009
|
+
* @type {string}
|
|
1010
|
+
* @memberof AgentPublicInfo
|
|
1011
|
+
*/
|
|
1012
|
+
'external_website'?: string | null;
|
|
1013
|
+
/**
|
|
1014
|
+
*
|
|
1015
|
+
* @type {string}
|
|
1016
|
+
* @memberof AgentPublicInfo
|
|
1017
|
+
*/
|
|
1018
|
+
'ticker'?: string | null;
|
|
1019
|
+
/**
|
|
1020
|
+
*
|
|
1021
|
+
* @type {string}
|
|
1022
|
+
* @memberof AgentPublicInfo
|
|
1023
|
+
*/
|
|
1024
|
+
'token_address'?: string | null;
|
|
1025
|
+
/**
|
|
1026
|
+
*
|
|
1027
|
+
* @type {string}
|
|
1028
|
+
* @memberof AgentPublicInfo
|
|
1029
|
+
*/
|
|
1030
|
+
'token_pool'?: string | null;
|
|
1031
|
+
/**
|
|
1032
|
+
*
|
|
1033
|
+
* @type {FeePercentage}
|
|
1034
|
+
* @memberof AgentPublicInfo
|
|
1035
|
+
*/
|
|
1036
|
+
'fee_percentage'?: FeePercentage | null;
|
|
1037
|
+
/**
|
|
1038
|
+
*
|
|
1039
|
+
* @type {string}
|
|
1040
|
+
* @memberof AgentPublicInfo
|
|
1041
|
+
*/
|
|
1042
|
+
'example_intro'?: string | null;
|
|
1043
|
+
/**
|
|
1044
|
+
*
|
|
1045
|
+
* @type {Array<AgentExample>}
|
|
1046
|
+
* @memberof AgentPublicInfo
|
|
1047
|
+
*/
|
|
1048
|
+
'examples'?: Array<AgentExample> | null;
|
|
1049
|
+
/**
|
|
1050
|
+
*
|
|
1051
|
+
* @type {object}
|
|
1052
|
+
* @memberof AgentPublicInfo
|
|
1053
|
+
*/
|
|
1054
|
+
'public_extra'?: object | null;
|
|
1055
|
+
}
|
|
977
1056
|
/**
|
|
978
1057
|
* Agent response model that excludes sensitive fields from JSON output and schema.
|
|
979
1058
|
* @export
|
|
@@ -1028,6 +1107,12 @@ export interface AgentResponse {
|
|
|
1028
1107
|
* @memberof AgentResponse
|
|
1029
1108
|
*/
|
|
1030
1109
|
'examples'?: Array<AgentExample> | null;
|
|
1110
|
+
/**
|
|
1111
|
+
*
|
|
1112
|
+
* @type {object}
|
|
1113
|
+
* @memberof AgentResponse
|
|
1114
|
+
*/
|
|
1115
|
+
'public_extra'?: object | null;
|
|
1031
1116
|
/**
|
|
1032
1117
|
*
|
|
1033
1118
|
* @type {string}
|
|
@@ -1154,6 +1239,18 @@ export interface AgentResponse {
|
|
|
1154
1239
|
* @memberof AgentResponse
|
|
1155
1240
|
*/
|
|
1156
1241
|
'extra'?: object | null;
|
|
1242
|
+
/**
|
|
1243
|
+
*
|
|
1244
|
+
* @type {string}
|
|
1245
|
+
* @memberof AgentResponse
|
|
1246
|
+
*/
|
|
1247
|
+
'deployed_at'?: string | null;
|
|
1248
|
+
/**
|
|
1249
|
+
*
|
|
1250
|
+
* @type {string}
|
|
1251
|
+
* @memberof AgentResponse
|
|
1252
|
+
*/
|
|
1253
|
+
'public_info_updated_at'?: string | null;
|
|
1157
1254
|
/**
|
|
1158
1255
|
* Timestamp when the agent was created, will ignore when importing
|
|
1159
1256
|
* @type {string}
|
|
@@ -2985,6 +3082,13 @@ export declare const EventType: {
|
|
|
2985
3082
|
readonly RechargeBonus: "recharge_bonus";
|
|
2986
3083
|
};
|
|
2987
3084
|
export type EventType = typeof EventType[keyof typeof EventType];
|
|
3085
|
+
/**
|
|
3086
|
+
* Fee percentage of the agent
|
|
3087
|
+
* @export
|
|
3088
|
+
* @interface FeePercentage
|
|
3089
|
+
*/
|
|
3090
|
+
export interface FeePercentage {
|
|
3091
|
+
}
|
|
2988
3092
|
/**
|
|
2989
3093
|
* Response model for file upload.
|
|
2990
3094
|
* @export
|
|
@@ -3559,6 +3663,23 @@ export declare const AgentApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
3559
3663
|
* @throws {RequiredError}
|
|
3560
3664
|
*/
|
|
3561
3665
|
overrideAgent: (agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3666
|
+
/**
|
|
3667
|
+
* Override agent public information with the provided values.
|
|
3668
|
+
* @summary Override Agent Public Information
|
|
3669
|
+
* @param {string} agentId ID of the agent to update
|
|
3670
|
+
* @param {AgentPublicInfo} [agentPublicInfo]
|
|
3671
|
+
* @param {*} [options] Override http request option.
|
|
3672
|
+
* @throws {RequiredError}
|
|
3673
|
+
*/
|
|
3674
|
+
overrideAgentPublicInfo: (agentId: string, agentPublicInfo?: AgentPublicInfo, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3675
|
+
/**
|
|
3676
|
+
* Publish an agent if its public information passes strict validation.
|
|
3677
|
+
* @summary Publish Agent
|
|
3678
|
+
* @param {string} agentId ID of the agent to publish
|
|
3679
|
+
* @param {*} [options] Override http request option.
|
|
3680
|
+
* @throws {RequiredError}
|
|
3681
|
+
*/
|
|
3682
|
+
publishAgent: (agentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3562
3683
|
/**
|
|
3563
3684
|
* Reset (regenerate) the API keys for an agent. Generates new private (sk-) and public (pk-) API keys for the agent, revoking any existing keys. Private API key can access all skills (public and owner-only). Public API key can only access public skills. **Path Parameters:** * `agent_id` - ID of the agent **Returns:** * `AgentApiKeyResponse` - New API key information including private key, public key, and API documentation URLs **Raises:** * `HTTPException`: - 403: Not authorized to access this agent - 404: Agent not found - 500: Database error
|
|
3564
3685
|
* @summary Reset Agent API Key
|
|
@@ -3677,6 +3798,23 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
|
|
|
3677
3798
|
* @throws {RequiredError}
|
|
3678
3799
|
*/
|
|
3679
3800
|
overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentResponse>>;
|
|
3801
|
+
/**
|
|
3802
|
+
* Override agent public information with the provided values.
|
|
3803
|
+
* @summary Override Agent Public Information
|
|
3804
|
+
* @param {string} agentId ID of the agent to update
|
|
3805
|
+
* @param {AgentPublicInfo} [agentPublicInfo]
|
|
3806
|
+
* @param {*} [options] Override http request option.
|
|
3807
|
+
* @throws {RequiredError}
|
|
3808
|
+
*/
|
|
3809
|
+
overrideAgentPublicInfo(agentId: string, agentPublicInfo?: AgentPublicInfo, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Agent>>;
|
|
3810
|
+
/**
|
|
3811
|
+
* Publish an agent if its public information passes strict validation.
|
|
3812
|
+
* @summary Publish Agent
|
|
3813
|
+
* @param {string} agentId ID of the agent to publish
|
|
3814
|
+
* @param {*} [options] Override http request option.
|
|
3815
|
+
* @throws {RequiredError}
|
|
3816
|
+
*/
|
|
3817
|
+
publishAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Agent>>;
|
|
3680
3818
|
/**
|
|
3681
3819
|
* Reset (regenerate) the API keys for an agent. Generates new private (sk-) and public (pk-) API keys for the agent, revoking any existing keys. Private API key can access all skills (public and owner-only). Public API key can only access public skills. **Path Parameters:** * `agent_id` - ID of the agent **Returns:** * `AgentApiKeyResponse` - New API key information including private key, public key, and API documentation URLs **Raises:** * `HTTPException`: - 403: Not authorized to access this agent - 404: Agent not found - 500: Database error
|
|
3682
3820
|
* @summary Reset Agent API Key
|
|
@@ -3795,6 +3933,23 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
|
|
|
3795
3933
|
* @throws {RequiredError}
|
|
3796
3934
|
*/
|
|
3797
3935
|
overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<AgentResponse>;
|
|
3936
|
+
/**
|
|
3937
|
+
* Override agent public information with the provided values.
|
|
3938
|
+
* @summary Override Agent Public Information
|
|
3939
|
+
* @param {string} agentId ID of the agent to update
|
|
3940
|
+
* @param {AgentPublicInfo} [agentPublicInfo]
|
|
3941
|
+
* @param {*} [options] Override http request option.
|
|
3942
|
+
* @throws {RequiredError}
|
|
3943
|
+
*/
|
|
3944
|
+
overrideAgentPublicInfo(agentId: string, agentPublicInfo?: AgentPublicInfo, options?: RawAxiosRequestConfig): AxiosPromise<Agent>;
|
|
3945
|
+
/**
|
|
3946
|
+
* Publish an agent if its public information passes strict validation.
|
|
3947
|
+
* @summary Publish Agent
|
|
3948
|
+
* @param {string} agentId ID of the agent to publish
|
|
3949
|
+
* @param {*} [options] Override http request option.
|
|
3950
|
+
* @throws {RequiredError}
|
|
3951
|
+
*/
|
|
3952
|
+
publishAgent(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<Agent>;
|
|
3798
3953
|
/**
|
|
3799
3954
|
* Reset (regenerate) the API keys for an agent. Generates new private (sk-) and public (pk-) API keys for the agent, revoking any existing keys. Private API key can access all skills (public and owner-only). Public API key can only access public skills. **Path Parameters:** * `agent_id` - ID of the agent **Returns:** * `AgentApiKeyResponse` - New API key information including private key, public key, and API documentation URLs **Raises:** * `HTTPException`: - 403: Not authorized to access this agent - 404: Agent not found - 500: Database error
|
|
3800
3955
|
* @summary Reset Agent API Key
|
|
@@ -3925,6 +4080,25 @@ export declare class AgentApi extends BaseAPI {
|
|
|
3925
4080
|
* @memberof AgentApi
|
|
3926
4081
|
*/
|
|
3927
4082
|
overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentResponse, any, {}>>;
|
|
4083
|
+
/**
|
|
4084
|
+
* Override agent public information with the provided values.
|
|
4085
|
+
* @summary Override Agent Public Information
|
|
4086
|
+
* @param {string} agentId ID of the agent to update
|
|
4087
|
+
* @param {AgentPublicInfo} [agentPublicInfo]
|
|
4088
|
+
* @param {*} [options] Override http request option.
|
|
4089
|
+
* @throws {RequiredError}
|
|
4090
|
+
* @memberof AgentApi
|
|
4091
|
+
*/
|
|
4092
|
+
overrideAgentPublicInfo(agentId: string, agentPublicInfo?: AgentPublicInfo, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Agent, any, {}>>;
|
|
4093
|
+
/**
|
|
4094
|
+
* Publish an agent if its public information passes strict validation.
|
|
4095
|
+
* @summary Publish Agent
|
|
4096
|
+
* @param {string} agentId ID of the agent to publish
|
|
4097
|
+
* @param {*} [options] Override http request option.
|
|
4098
|
+
* @throws {RequiredError}
|
|
4099
|
+
* @memberof AgentApi
|
|
4100
|
+
*/
|
|
4101
|
+
publishAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Agent, any, {}>>;
|
|
3928
4102
|
/**
|
|
3929
4103
|
* Reset (regenerate) the API keys for an agent. Generates new private (sk-) and public (pk-) API keys for the agent, revoking any existing keys. Private API key can access all skills (public and owner-only). Public API key can only access public skills. **Path Parameters:** * `agent_id` - ID of the agent **Returns:** * `AgentApiKeyResponse` - New API key information including private key, public key, and API documentation URLs **Raises:** * `HTTPException`: - 403: Not authorized to access this agent - 404: Agent not found - 500: Database error
|
|
3930
4104
|
* @summary Reset Agent API Key
|
|
@@ -5060,6 +5234,20 @@ export declare class HealthApi extends BaseAPI {
|
|
|
5060
5234
|
* @export
|
|
5061
5235
|
*/
|
|
5062
5236
|
export declare const MetadataApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
5237
|
+
/**
|
|
5238
|
+
* Get the JSON schema for AgentPublicInfo with custom adjustments
|
|
5239
|
+
* @summary Get public agent schema
|
|
5240
|
+
* @param {*} [options] Override http request option.
|
|
5241
|
+
* @throws {RequiredError}
|
|
5242
|
+
*/
|
|
5243
|
+
getAgentPublicSchema: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5244
|
+
/**
|
|
5245
|
+
* Get the JSON schema for AgentPublicInfo with strict field requirements
|
|
5246
|
+
* @summary Get strict public agent schema
|
|
5247
|
+
* @param {*} [options] Override http request option.
|
|
5248
|
+
* @throws {RequiredError}
|
|
5249
|
+
*/
|
|
5250
|
+
getAgentPublicStrictSchema: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5063
5251
|
/**
|
|
5064
5252
|
* Get the JSON schema for Agent model with all $ref references resolved
|
|
5065
5253
|
* @summary Get agent schema
|
|
@@ -5105,6 +5293,20 @@ export declare const MetadataApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
5105
5293
|
* @export
|
|
5106
5294
|
*/
|
|
5107
5295
|
export declare const MetadataApiFp: (configuration?: Configuration) => {
|
|
5296
|
+
/**
|
|
5297
|
+
* Get the JSON schema for AgentPublicInfo with custom adjustments
|
|
5298
|
+
* @summary Get public agent schema
|
|
5299
|
+
* @param {*} [options] Override http request option.
|
|
5300
|
+
* @throws {RequiredError}
|
|
5301
|
+
*/
|
|
5302
|
+
getAgentPublicSchema(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
5303
|
+
/**
|
|
5304
|
+
* Get the JSON schema for AgentPublicInfo with strict field requirements
|
|
5305
|
+
* @summary Get strict public agent schema
|
|
5306
|
+
* @param {*} [options] Override http request option.
|
|
5307
|
+
* @throws {RequiredError}
|
|
5308
|
+
*/
|
|
5309
|
+
getAgentPublicStrictSchema(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
5108
5310
|
/**
|
|
5109
5311
|
* Get the JSON schema for Agent model with all $ref references resolved
|
|
5110
5312
|
* @summary Get agent schema
|
|
@@ -5150,6 +5352,20 @@ export declare const MetadataApiFp: (configuration?: Configuration) => {
|
|
|
5150
5352
|
* @export
|
|
5151
5353
|
*/
|
|
5152
5354
|
export declare const MetadataApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
5355
|
+
/**
|
|
5356
|
+
* Get the JSON schema for AgentPublicInfo with custom adjustments
|
|
5357
|
+
* @summary Get public agent schema
|
|
5358
|
+
* @param {*} [options] Override http request option.
|
|
5359
|
+
* @throws {RequiredError}
|
|
5360
|
+
*/
|
|
5361
|
+
getAgentPublicSchema(options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
5362
|
+
/**
|
|
5363
|
+
* Get the JSON schema for AgentPublicInfo with strict field requirements
|
|
5364
|
+
* @summary Get strict public agent schema
|
|
5365
|
+
* @param {*} [options] Override http request option.
|
|
5366
|
+
* @throws {RequiredError}
|
|
5367
|
+
*/
|
|
5368
|
+
getAgentPublicStrictSchema(options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
5153
5369
|
/**
|
|
5154
5370
|
* Get the JSON schema for Agent model with all $ref references resolved
|
|
5155
5371
|
* @summary Get agent schema
|
|
@@ -5197,6 +5413,22 @@ export declare const MetadataApiFactory: (configuration?: Configuration, basePat
|
|
|
5197
5413
|
* @extends {BaseAPI}
|
|
5198
5414
|
*/
|
|
5199
5415
|
export declare class MetadataApi extends BaseAPI {
|
|
5416
|
+
/**
|
|
5417
|
+
* Get the JSON schema for AgentPublicInfo with custom adjustments
|
|
5418
|
+
* @summary Get public agent schema
|
|
5419
|
+
* @param {*} [options] Override http request option.
|
|
5420
|
+
* @throws {RequiredError}
|
|
5421
|
+
* @memberof MetadataApi
|
|
5422
|
+
*/
|
|
5423
|
+
getAgentPublicSchema(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
5424
|
+
/**
|
|
5425
|
+
* Get the JSON schema for AgentPublicInfo with strict field requirements
|
|
5426
|
+
* @summary Get strict public agent schema
|
|
5427
|
+
* @param {*} [options] Override http request option.
|
|
5428
|
+
* @throws {RequiredError}
|
|
5429
|
+
* @memberof MetadataApi
|
|
5430
|
+
*/
|
|
5431
|
+
getAgentPublicStrictSchema(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
5200
5432
|
/**
|
|
5201
5433
|
* Get the JSON schema for Agent model with all $ref references resolved
|
|
5202
5434
|
* @summary Get agent schema
|