@crestal/nation-sdk 0.2.29 → 0.2.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +33 -41
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +29 -37
- package/dist/api.js +13 -9
- 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 +5 -7
- package/docs/AgentUpdate.md +5 -7
- package/docs/AuthorType.md +2 -0
- package/docs/ChatApi.md +1 -1
- package/docs/LLMModelInfoWithProviderName.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.2.
|
|
1
|
+
## @crestal/nation-sdk@0.2.30
|
|
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.2.
|
|
39
|
+
npm install @crestal/nation-sdk@0.2.30 --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.2.
|
|
7
|
+
* The version of the OpenAPI document: 0.2.30
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -126,7 +126,7 @@ export interface Agent {
|
|
|
126
126
|
*/
|
|
127
127
|
'upstream_extra'?: object | null;
|
|
128
128
|
/**
|
|
129
|
-
* AI model identifier to be used by this agent for processing requests.
|
|
129
|
+
* AI model identifier to be used by this agent for processing requests.
|
|
130
130
|
* @type {string}
|
|
131
131
|
* @memberof Agent
|
|
132
132
|
*/
|
|
@@ -202,31 +202,19 @@ export interface Agent {
|
|
|
202
202
|
* @type {string}
|
|
203
203
|
* @memberof Agent
|
|
204
204
|
*/
|
|
205
|
-
'
|
|
205
|
+
'readonly_wallet_address'?: string | null;
|
|
206
206
|
/**
|
|
207
207
|
*
|
|
208
208
|
* @type {string}
|
|
209
209
|
* @memberof Agent
|
|
210
210
|
*/
|
|
211
|
-
'
|
|
212
|
-
/**
|
|
213
|
-
*
|
|
214
|
-
* @type {boolean}
|
|
215
|
-
* @memberof Agent
|
|
216
|
-
*/
|
|
217
|
-
'twitter_entrypoint_enabled'?: boolean | null;
|
|
211
|
+
'network_id'?: AgentNetworkIdEnum | null;
|
|
218
212
|
/**
|
|
219
213
|
*
|
|
220
214
|
* @type {string}
|
|
221
215
|
* @memberof Agent
|
|
222
216
|
*/
|
|
223
|
-
'
|
|
224
|
-
/**
|
|
225
|
-
*
|
|
226
|
-
* @type {object}
|
|
227
|
-
* @memberof Agent
|
|
228
|
-
*/
|
|
229
|
-
'twitter_config'?: object | null;
|
|
217
|
+
'cdp_network_id'?: AgentCdpNetworkIdEnum | null;
|
|
230
218
|
/**
|
|
231
219
|
*
|
|
232
220
|
* @type {boolean}
|
|
@@ -245,6 +233,12 @@ export interface Agent {
|
|
|
245
233
|
* @memberof Agent
|
|
246
234
|
*/
|
|
247
235
|
'telegram_config'?: object | null;
|
|
236
|
+
/**
|
|
237
|
+
*
|
|
238
|
+
* @type {string}
|
|
239
|
+
* @memberof Agent
|
|
240
|
+
*/
|
|
241
|
+
'xmtp_entrypoint_prompt'?: string | null;
|
|
248
242
|
/**
|
|
249
243
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
250
244
|
* @type {string}
|
|
@@ -278,7 +272,8 @@ export const AgentShortTermMemoryStrategyEnum = {
|
|
|
278
272
|
|
|
279
273
|
export type AgentShortTermMemoryStrategyEnum = typeof AgentShortTermMemoryStrategyEnum[keyof typeof AgentShortTermMemoryStrategyEnum];
|
|
280
274
|
export const AgentWalletProviderEnum = {
|
|
281
|
-
Cdp: 'cdp'
|
|
275
|
+
Cdp: 'cdp',
|
|
276
|
+
Readonly: 'readonly'
|
|
282
277
|
} as const;
|
|
283
278
|
|
|
284
279
|
export type AgentWalletProviderEnum = typeof AgentWalletProviderEnum[keyof typeof AgentWalletProviderEnum];
|
|
@@ -753,7 +748,8 @@ export const AgentResponseModeEnum = {
|
|
|
753
748
|
|
|
754
749
|
export type AgentResponseModeEnum = typeof AgentResponseModeEnum[keyof typeof AgentResponseModeEnum];
|
|
755
750
|
export const AgentResponseWalletProviderEnum = {
|
|
756
|
-
Cdp: 'cdp'
|
|
751
|
+
Cdp: 'cdp',
|
|
752
|
+
Readonly: 'readonly'
|
|
757
753
|
} as const;
|
|
758
754
|
|
|
759
755
|
export type AgentResponseWalletProviderEnum = typeof AgentResponseWalletProviderEnum[keyof typeof AgentResponseWalletProviderEnum];
|
|
@@ -973,7 +969,7 @@ export interface AgentUpdate {
|
|
|
973
969
|
*/
|
|
974
970
|
'upstream_extra'?: object | null;
|
|
975
971
|
/**
|
|
976
|
-
* AI model identifier to be used by this agent for processing requests.
|
|
972
|
+
* AI model identifier to be used by this agent for processing requests.
|
|
977
973
|
* @type {string}
|
|
978
974
|
* @memberof AgentUpdate
|
|
979
975
|
*/
|
|
@@ -1049,31 +1045,19 @@ export interface AgentUpdate {
|
|
|
1049
1045
|
* @type {string}
|
|
1050
1046
|
* @memberof AgentUpdate
|
|
1051
1047
|
*/
|
|
1052
|
-
'
|
|
1048
|
+
'readonly_wallet_address'?: string | null;
|
|
1053
1049
|
/**
|
|
1054
1050
|
*
|
|
1055
1051
|
* @type {string}
|
|
1056
1052
|
* @memberof AgentUpdate
|
|
1057
1053
|
*/
|
|
1058
|
-
'
|
|
1059
|
-
/**
|
|
1060
|
-
*
|
|
1061
|
-
* @type {boolean}
|
|
1062
|
-
* @memberof AgentUpdate
|
|
1063
|
-
*/
|
|
1064
|
-
'twitter_entrypoint_enabled'?: boolean | null;
|
|
1054
|
+
'network_id'?: AgentUpdateNetworkIdEnum | null;
|
|
1065
1055
|
/**
|
|
1066
1056
|
*
|
|
1067
1057
|
* @type {string}
|
|
1068
1058
|
* @memberof AgentUpdate
|
|
1069
1059
|
*/
|
|
1070
|
-
'
|
|
1071
|
-
/**
|
|
1072
|
-
*
|
|
1073
|
-
* @type {object}
|
|
1074
|
-
* @memberof AgentUpdate
|
|
1075
|
-
*/
|
|
1076
|
-
'twitter_config'?: object | null;
|
|
1060
|
+
'cdp_network_id'?: AgentUpdateCdpNetworkIdEnum | null;
|
|
1077
1061
|
/**
|
|
1078
1062
|
*
|
|
1079
1063
|
* @type {boolean}
|
|
@@ -1092,6 +1076,12 @@ export interface AgentUpdate {
|
|
|
1092
1076
|
* @memberof AgentUpdate
|
|
1093
1077
|
*/
|
|
1094
1078
|
'telegram_config'?: object | null;
|
|
1079
|
+
/**
|
|
1080
|
+
*
|
|
1081
|
+
* @type {string}
|
|
1082
|
+
* @memberof AgentUpdate
|
|
1083
|
+
*/
|
|
1084
|
+
'xmtp_entrypoint_prompt'?: string | null;
|
|
1095
1085
|
}
|
|
1096
1086
|
|
|
1097
1087
|
export const AgentUpdateModeEnum = {
|
|
@@ -1107,7 +1097,8 @@ export const AgentUpdateShortTermMemoryStrategyEnum = {
|
|
|
1107
1097
|
|
|
1108
1098
|
export type AgentUpdateShortTermMemoryStrategyEnum = typeof AgentUpdateShortTermMemoryStrategyEnum[keyof typeof AgentUpdateShortTermMemoryStrategyEnum];
|
|
1109
1099
|
export const AgentUpdateWalletProviderEnum = {
|
|
1110
|
-
Cdp: 'cdp'
|
|
1100
|
+
Cdp: 'cdp',
|
|
1101
|
+
Readonly: 'readonly'
|
|
1111
1102
|
} as const;
|
|
1112
1103
|
|
|
1113
1104
|
export type AgentUpdateWalletProviderEnum = typeof AgentUpdateWalletProviderEnum[keyof typeof AgentUpdateWalletProviderEnum];
|
|
@@ -1155,7 +1146,8 @@ export const AuthorType = {
|
|
|
1155
1146
|
Twitter: 'twitter',
|
|
1156
1147
|
Web: 'web',
|
|
1157
1148
|
System: 'system',
|
|
1158
|
-
Api: 'api'
|
|
1149
|
+
Api: 'api',
|
|
1150
|
+
Xmtp: 'xmtp'
|
|
1159
1151
|
} as const;
|
|
1160
1152
|
|
|
1161
1153
|
export type AuthorType = typeof AuthorType[keyof typeof AuthorType];
|
|
@@ -4165,7 +4157,7 @@ export const ChatApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
4165
4157
|
};
|
|
4166
4158
|
},
|
|
4167
4159
|
/**
|
|
4168
|
-
* Send a new message to a specific chat thread. The response is a list of messages generated by the agent.The response not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be
|
|
4160
|
+
* Send a new message to a specific chat thread. The response is a list of messages generated by the agent. The response does not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be a Server-Sent Events (SSE) stream with event type \'message\'.
|
|
4169
4161
|
* @summary Send a message to a chat thread
|
|
4170
4162
|
* @param {string} aid Agent ID
|
|
4171
4163
|
* @param {string} chatId Chat ID
|
|
@@ -4383,7 +4375,7 @@ export const ChatApiFp = function(configuration?: Configuration) {
|
|
|
4383
4375
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4384
4376
|
},
|
|
4385
4377
|
/**
|
|
4386
|
-
* Send a new message to a specific chat thread. The response is a list of messages generated by the agent.The response not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be
|
|
4378
|
+
* Send a new message to a specific chat thread. The response is a list of messages generated by the agent. The response does not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be a Server-Sent Events (SSE) stream with event type \'message\'.
|
|
4387
4379
|
* @summary Send a message to a chat thread
|
|
4388
4380
|
* @param {string} aid Agent ID
|
|
4389
4381
|
* @param {string} chatId Chat ID
|
|
@@ -4511,7 +4503,7 @@ export const ChatApiFactory = function (configuration?: Configuration, basePath?
|
|
|
4511
4503
|
return localVarFp.retryMessageInChat(aid, chatId, options).then((request) => request(axios, basePath));
|
|
4512
4504
|
},
|
|
4513
4505
|
/**
|
|
4514
|
-
* Send a new message to a specific chat thread. The response is a list of messages generated by the agent.The response not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be
|
|
4506
|
+
* Send a new message to a specific chat thread. The response is a list of messages generated by the agent. The response does not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be a Server-Sent Events (SSE) stream with event type \'message\'.
|
|
4515
4507
|
* @summary Send a message to a chat thread
|
|
4516
4508
|
* @param {string} aid Agent ID
|
|
4517
4509
|
* @param {string} chatId Chat ID
|
|
@@ -4649,7 +4641,7 @@ export class ChatApi extends BaseAPI {
|
|
|
4649
4641
|
}
|
|
4650
4642
|
|
|
4651
4643
|
/**
|
|
4652
|
-
* Send a new message to a specific chat thread. The response is a list of messages generated by the agent.The response not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be
|
|
4644
|
+
* Send a new message to a specific chat thread. The response is a list of messages generated by the agent. The response does not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be a Server-Sent Events (SSE) stream with event type \'message\'.
|
|
4653
4645
|
* @summary Send a message to a chat thread
|
|
4654
4646
|
* @param {string} aid Agent ID
|
|
4655
4647
|
* @param {string} chatId Chat ID
|
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.2.
|
|
5
|
+
* The version of the OpenAPI document: 0.2.30
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -116,7 +116,7 @@ export interface Agent {
|
|
|
116
116
|
*/
|
|
117
117
|
'upstream_extra'?: object | null;
|
|
118
118
|
/**
|
|
119
|
-
* AI model identifier to be used by this agent for processing requests.
|
|
119
|
+
* AI model identifier to be used by this agent for processing requests.
|
|
120
120
|
* @type {string}
|
|
121
121
|
* @memberof Agent
|
|
122
122
|
*/
|
|
@@ -192,31 +192,19 @@ export interface Agent {
|
|
|
192
192
|
* @type {string}
|
|
193
193
|
* @memberof Agent
|
|
194
194
|
*/
|
|
195
|
-
'
|
|
195
|
+
'readonly_wallet_address'?: string | null;
|
|
196
196
|
/**
|
|
197
197
|
*
|
|
198
198
|
* @type {string}
|
|
199
199
|
* @memberof Agent
|
|
200
200
|
*/
|
|
201
|
-
'
|
|
202
|
-
/**
|
|
203
|
-
*
|
|
204
|
-
* @type {boolean}
|
|
205
|
-
* @memberof Agent
|
|
206
|
-
*/
|
|
207
|
-
'twitter_entrypoint_enabled'?: boolean | null;
|
|
201
|
+
'network_id'?: AgentNetworkIdEnum | null;
|
|
208
202
|
/**
|
|
209
203
|
*
|
|
210
204
|
* @type {string}
|
|
211
205
|
* @memberof Agent
|
|
212
206
|
*/
|
|
213
|
-
'
|
|
214
|
-
/**
|
|
215
|
-
*
|
|
216
|
-
* @type {object}
|
|
217
|
-
* @memberof Agent
|
|
218
|
-
*/
|
|
219
|
-
'twitter_config'?: object | null;
|
|
207
|
+
'cdp_network_id'?: AgentCdpNetworkIdEnum | null;
|
|
220
208
|
/**
|
|
221
209
|
*
|
|
222
210
|
* @type {boolean}
|
|
@@ -235,6 +223,12 @@ export interface Agent {
|
|
|
235
223
|
* @memberof Agent
|
|
236
224
|
*/
|
|
237
225
|
'telegram_config'?: object | null;
|
|
226
|
+
/**
|
|
227
|
+
*
|
|
228
|
+
* @type {string}
|
|
229
|
+
* @memberof Agent
|
|
230
|
+
*/
|
|
231
|
+
'xmtp_entrypoint_prompt'?: string | null;
|
|
238
232
|
/**
|
|
239
233
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
240
234
|
* @type {string}
|
|
@@ -266,6 +260,7 @@ export declare const AgentShortTermMemoryStrategyEnum: {
|
|
|
266
260
|
export type AgentShortTermMemoryStrategyEnum = typeof AgentShortTermMemoryStrategyEnum[keyof typeof AgentShortTermMemoryStrategyEnum];
|
|
267
261
|
export declare const AgentWalletProviderEnum: {
|
|
268
262
|
readonly Cdp: "cdp";
|
|
263
|
+
readonly Readonly: "readonly";
|
|
269
264
|
};
|
|
270
265
|
export type AgentWalletProviderEnum = typeof AgentWalletProviderEnum[keyof typeof AgentWalletProviderEnum];
|
|
271
266
|
export declare const AgentNetworkIdEnum: {
|
|
@@ -737,6 +732,7 @@ export declare const AgentResponseModeEnum: {
|
|
|
737
732
|
export type AgentResponseModeEnum = typeof AgentResponseModeEnum[keyof typeof AgentResponseModeEnum];
|
|
738
733
|
export declare const AgentResponseWalletProviderEnum: {
|
|
739
734
|
readonly Cdp: "cdp";
|
|
735
|
+
readonly Readonly: "readonly";
|
|
740
736
|
};
|
|
741
737
|
export type AgentResponseWalletProviderEnum = typeof AgentResponseWalletProviderEnum[keyof typeof AgentResponseWalletProviderEnum];
|
|
742
738
|
/**
|
|
@@ -950,7 +946,7 @@ export interface AgentUpdate {
|
|
|
950
946
|
*/
|
|
951
947
|
'upstream_extra'?: object | null;
|
|
952
948
|
/**
|
|
953
|
-
* AI model identifier to be used by this agent for processing requests.
|
|
949
|
+
* AI model identifier to be used by this agent for processing requests.
|
|
954
950
|
* @type {string}
|
|
955
951
|
* @memberof AgentUpdate
|
|
956
952
|
*/
|
|
@@ -1026,31 +1022,19 @@ export interface AgentUpdate {
|
|
|
1026
1022
|
* @type {string}
|
|
1027
1023
|
* @memberof AgentUpdate
|
|
1028
1024
|
*/
|
|
1029
|
-
'
|
|
1025
|
+
'readonly_wallet_address'?: string | null;
|
|
1030
1026
|
/**
|
|
1031
1027
|
*
|
|
1032
1028
|
* @type {string}
|
|
1033
1029
|
* @memberof AgentUpdate
|
|
1034
1030
|
*/
|
|
1035
|
-
'
|
|
1036
|
-
/**
|
|
1037
|
-
*
|
|
1038
|
-
* @type {boolean}
|
|
1039
|
-
* @memberof AgentUpdate
|
|
1040
|
-
*/
|
|
1041
|
-
'twitter_entrypoint_enabled'?: boolean | null;
|
|
1031
|
+
'network_id'?: AgentUpdateNetworkIdEnum | null;
|
|
1042
1032
|
/**
|
|
1043
1033
|
*
|
|
1044
1034
|
* @type {string}
|
|
1045
1035
|
* @memberof AgentUpdate
|
|
1046
1036
|
*/
|
|
1047
|
-
'
|
|
1048
|
-
/**
|
|
1049
|
-
*
|
|
1050
|
-
* @type {object}
|
|
1051
|
-
* @memberof AgentUpdate
|
|
1052
|
-
*/
|
|
1053
|
-
'twitter_config'?: object | null;
|
|
1037
|
+
'cdp_network_id'?: AgentUpdateCdpNetworkIdEnum | null;
|
|
1054
1038
|
/**
|
|
1055
1039
|
*
|
|
1056
1040
|
* @type {boolean}
|
|
@@ -1069,6 +1053,12 @@ export interface AgentUpdate {
|
|
|
1069
1053
|
* @memberof AgentUpdate
|
|
1070
1054
|
*/
|
|
1071
1055
|
'telegram_config'?: object | null;
|
|
1056
|
+
/**
|
|
1057
|
+
*
|
|
1058
|
+
* @type {string}
|
|
1059
|
+
* @memberof AgentUpdate
|
|
1060
|
+
*/
|
|
1061
|
+
'xmtp_entrypoint_prompt'?: string | null;
|
|
1072
1062
|
}
|
|
1073
1063
|
export declare const AgentUpdateModeEnum: {
|
|
1074
1064
|
readonly Public: "public";
|
|
@@ -1082,6 +1072,7 @@ export declare const AgentUpdateShortTermMemoryStrategyEnum: {
|
|
|
1082
1072
|
export type AgentUpdateShortTermMemoryStrategyEnum = typeof AgentUpdateShortTermMemoryStrategyEnum[keyof typeof AgentUpdateShortTermMemoryStrategyEnum];
|
|
1083
1073
|
export declare const AgentUpdateWalletProviderEnum: {
|
|
1084
1074
|
readonly Cdp: "cdp";
|
|
1075
|
+
readonly Readonly: "readonly";
|
|
1085
1076
|
};
|
|
1086
1077
|
export type AgentUpdateWalletProviderEnum = typeof AgentUpdateWalletProviderEnum[keyof typeof AgentUpdateWalletProviderEnum];
|
|
1087
1078
|
export declare const AgentUpdateNetworkIdEnum: {
|
|
@@ -1125,6 +1116,7 @@ export declare const AuthorType: {
|
|
|
1125
1116
|
readonly Web: "web";
|
|
1126
1117
|
readonly System: "system";
|
|
1127
1118
|
readonly Api: "api";
|
|
1119
|
+
readonly Xmtp: "xmtp";
|
|
1128
1120
|
};
|
|
1129
1121
|
export type AuthorType = typeof AuthorType[keyof typeof AuthorType];
|
|
1130
1122
|
/**
|
|
@@ -3254,7 +3246,7 @@ export declare const ChatApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
3254
3246
|
*/
|
|
3255
3247
|
retryMessageInChat: (aid: string, chatId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3256
3248
|
/**
|
|
3257
|
-
* Send a new message to a specific chat thread. The response is a list of messages generated by the agent.The response not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be
|
|
3249
|
+
* Send a new message to a specific chat thread. The response is a list of messages generated by the agent. The response does not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be a Server-Sent Events (SSE) stream with event type \'message\'.
|
|
3258
3250
|
* @summary Send a message to a chat thread
|
|
3259
3251
|
* @param {string} aid Agent ID
|
|
3260
3252
|
* @param {string} chatId Chat ID
|
|
@@ -3352,7 +3344,7 @@ export declare const ChatApiFp: (configuration?: Configuration) => {
|
|
|
3352
3344
|
*/
|
|
3353
3345
|
retryMessageInChat(aid: string, chatId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ChatMessage>>>;
|
|
3354
3346
|
/**
|
|
3355
|
-
* Send a new message to a specific chat thread. The response is a list of messages generated by the agent.The response not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be
|
|
3347
|
+
* Send a new message to a specific chat thread. The response is a list of messages generated by the agent. The response does not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be a Server-Sent Events (SSE) stream with event type \'message\'.
|
|
3356
3348
|
* @summary Send a message to a chat thread
|
|
3357
3349
|
* @param {string} aid Agent ID
|
|
3358
3350
|
* @param {string} chatId Chat ID
|
|
@@ -3450,7 +3442,7 @@ export declare const ChatApiFactory: (configuration?: Configuration, basePath?:
|
|
|
3450
3442
|
*/
|
|
3451
3443
|
retryMessageInChat(aid: string, chatId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ChatMessage>>;
|
|
3452
3444
|
/**
|
|
3453
|
-
* Send a new message to a specific chat thread. The response is a list of messages generated by the agent.The response not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be
|
|
3445
|
+
* Send a new message to a specific chat thread. The response is a list of messages generated by the agent. The response does not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be a Server-Sent Events (SSE) stream with event type \'message\'.
|
|
3454
3446
|
* @summary Send a message to a chat thread
|
|
3455
3447
|
* @param {string} aid Agent ID
|
|
3456
3448
|
* @param {string} chatId Chat ID
|
|
@@ -3558,7 +3550,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
3558
3550
|
*/
|
|
3559
3551
|
retryMessageInChat(aid: string, chatId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessage[], any>>;
|
|
3560
3552
|
/**
|
|
3561
|
-
* Send a new message to a specific chat thread. The response is a list of messages generated by the agent.The response not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be
|
|
3553
|
+
* Send a new message to a specific chat thread. The response is a list of messages generated by the agent. The response does not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be a Server-Sent Events (SSE) stream with event type \'message\'.
|
|
3562
3554
|
* @summary Send a message to a chat thread
|
|
3563
3555
|
* @param {string} aid Agent ID
|
|
3564
3556
|
* @param {string} chatId Chat ID
|
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.2.
|
|
8
|
+
* The version of the OpenAPI document: 0.2.30
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -101,7 +101,8 @@ exports.AgentShortTermMemoryStrategyEnum = {
|
|
|
101
101
|
Summarize: 'summarize'
|
|
102
102
|
};
|
|
103
103
|
exports.AgentWalletProviderEnum = {
|
|
104
|
-
Cdp: 'cdp'
|
|
104
|
+
Cdp: 'cdp',
|
|
105
|
+
Readonly: 'readonly'
|
|
105
106
|
};
|
|
106
107
|
exports.AgentNetworkIdEnum = {
|
|
107
108
|
EthereumMainnet: 'ethereum-mainnet',
|
|
@@ -133,7 +134,8 @@ exports.AgentResponseModeEnum = {
|
|
|
133
134
|
Private: 'private'
|
|
134
135
|
};
|
|
135
136
|
exports.AgentResponseWalletProviderEnum = {
|
|
136
|
-
Cdp: 'cdp'
|
|
137
|
+
Cdp: 'cdp',
|
|
138
|
+
Readonly: 'readonly'
|
|
137
139
|
};
|
|
138
140
|
/**
|
|
139
141
|
* Sort options for agents list.
|
|
@@ -154,7 +156,8 @@ exports.AgentUpdateShortTermMemoryStrategyEnum = {
|
|
|
154
156
|
Summarize: 'summarize'
|
|
155
157
|
};
|
|
156
158
|
exports.AgentUpdateWalletProviderEnum = {
|
|
157
|
-
Cdp: 'cdp'
|
|
159
|
+
Cdp: 'cdp',
|
|
160
|
+
Readonly: 'readonly'
|
|
158
161
|
};
|
|
159
162
|
exports.AgentUpdateNetworkIdEnum = {
|
|
160
163
|
EthereumMainnet: 'ethereum-mainnet',
|
|
@@ -194,7 +197,8 @@ exports.AuthorType = {
|
|
|
194
197
|
Twitter: 'twitter',
|
|
195
198
|
Web: 'web',
|
|
196
199
|
System: 'system',
|
|
197
|
-
Api: 'api'
|
|
200
|
+
Api: 'api',
|
|
201
|
+
Xmtp: 'xmtp'
|
|
198
202
|
};
|
|
199
203
|
/**
|
|
200
204
|
* Type of chat message attachment.
|
|
@@ -1993,7 +1997,7 @@ var ChatApiAxiosParamCreator = function (configuration) {
|
|
|
1993
1997
|
});
|
|
1994
1998
|
},
|
|
1995
1999
|
/**
|
|
1996
|
-
* Send a new message to a specific chat thread. The response is a list of messages generated by the agent.The response not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be
|
|
2000
|
+
* Send a new message to a specific chat thread. The response is a list of messages generated by the agent. The response does not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be a Server-Sent Events (SSE) stream with event type \'message\'.
|
|
1997
2001
|
* @summary Send a message to a chat thread
|
|
1998
2002
|
* @param {string} aid Agent ID
|
|
1999
2003
|
* @param {string} chatId Chat ID
|
|
@@ -2307,7 +2311,7 @@ var ChatApiFp = function (configuration) {
|
|
|
2307
2311
|
});
|
|
2308
2312
|
},
|
|
2309
2313
|
/**
|
|
2310
|
-
* Send a new message to a specific chat thread. The response is a list of messages generated by the agent.The response not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be
|
|
2314
|
+
* Send a new message to a specific chat thread. The response is a list of messages generated by the agent. The response does not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be a Server-Sent Events (SSE) stream with event type \'message\'.
|
|
2311
2315
|
* @summary Send a message to a chat thread
|
|
2312
2316
|
* @param {string} aid Agent ID
|
|
2313
2317
|
* @param {string} chatId Chat ID
|
|
@@ -2455,7 +2459,7 @@ var ChatApiFactory = function (configuration, basePath, axios) {
|
|
|
2455
2459
|
return localVarFp.retryMessageInChat(aid, chatId, options).then(function (request) { return request(axios, basePath); });
|
|
2456
2460
|
},
|
|
2457
2461
|
/**
|
|
2458
|
-
* Send a new message to a specific chat thread. The response is a list of messages generated by the agent.The response not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be
|
|
2462
|
+
* Send a new message to a specific chat thread. The response is a list of messages generated by the agent. The response does not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be a Server-Sent Events (SSE) stream with event type \'message\'.
|
|
2459
2463
|
* @summary Send a message to a chat thread
|
|
2460
2464
|
* @param {string} aid Agent ID
|
|
2461
2465
|
* @param {string} chatId Chat ID
|
|
@@ -2597,7 +2601,7 @@ var ChatApi = /** @class */ (function (_super) {
|
|
|
2597
2601
|
return (0, exports.ChatApiFp)(this.configuration).retryMessageInChat(aid, chatId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2598
2602
|
};
|
|
2599
2603
|
/**
|
|
2600
|
-
* Send a new message to a specific chat thread. The response is a list of messages generated by the agent.The response not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be
|
|
2604
|
+
* Send a new message to a specific chat thread. The response is a list of messages generated by the agent. The response does not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be a Server-Sent Events (SSE) stream with event type \'message\'.
|
|
2601
2605
|
* @summary Send a message to a chat thread
|
|
2602
2606
|
* @param {string} aid Agent ID
|
|
2603
2607
|
* @param {string} chatId Chat ID
|
package/dist/base.d.ts
CHANGED
package/dist/base.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.2.
|
|
8
|
+
* The version of the OpenAPI document: 0.2.30
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.d.ts
CHANGED
package/dist/common.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.2.
|
|
8
|
+
* The version of the OpenAPI document: 0.2.30
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.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.2.
|
|
8
|
+
* The version of the OpenAPI document: 0.2.30
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.d.ts
CHANGED
package/dist/index.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.2.
|
|
8
|
+
* The version of the OpenAPI document: 0.2.30
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/docs/Agent.md
CHANGED
|
@@ -22,7 +22,7 @@ Name | Type | Description | Notes
|
|
|
22
22
|
**owner** | **string** | | [optional] [default to undefined]
|
|
23
23
|
**upstream_id** | **string** | | [optional] [default to undefined]
|
|
24
24
|
**upstream_extra** | **object** | | [optional] [default to undefined]
|
|
25
|
-
**model** | **string** | AI model identifier to be used by this agent for processing requests.
|
|
25
|
+
**model** | **string** | AI model identifier to be used by this agent for processing requests. | [optional] [default to 'gpt-5-mini']
|
|
26
26
|
**prompt** | **string** | | [optional] [default to undefined]
|
|
27
27
|
**prompt_append** | **string** | | [optional] [default to undefined]
|
|
28
28
|
**temperature** | **number** | | [optional] [default to undefined]
|
|
@@ -34,14 +34,13 @@ Name | Type | Description | Notes
|
|
|
34
34
|
**examples** | [**Array<AgentExample>**](AgentExample.md) | | [optional] [default to undefined]
|
|
35
35
|
**skills** | **object** | | [optional] [default to undefined]
|
|
36
36
|
**wallet_provider** | **string** | | [optional] [default to undefined]
|
|
37
|
+
**readonly_wallet_address** | **string** | | [optional] [default to undefined]
|
|
37
38
|
**network_id** | **string** | | [optional] [default to undefined]
|
|
38
39
|
**cdp_network_id** | **string** | | [optional] [default to undefined]
|
|
39
|
-
**twitter_entrypoint_enabled** | **boolean** | | [optional] [default to undefined]
|
|
40
|
-
**twitter_entrypoint_prompt** | **string** | | [optional] [default to undefined]
|
|
41
|
-
**twitter_config** | **object** | | [optional] [default to undefined]
|
|
42
40
|
**telegram_entrypoint_enabled** | **boolean** | | [optional] [default to undefined]
|
|
43
41
|
**telegram_entrypoint_prompt** | **string** | | [optional] [default to undefined]
|
|
44
42
|
**telegram_config** | **object** | | [optional] [default to undefined]
|
|
43
|
+
**xmtp_entrypoint_prompt** | **string** | | [optional] [default to undefined]
|
|
45
44
|
**id** | **string** | Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens | [optional] [default to undefined]
|
|
46
45
|
**created_at** | **string** | Timestamp when the agent was created, will ignore when importing | [optional] [default to undefined]
|
|
47
46
|
**updated_at** | **string** | Timestamp when the agent was last updated, will ignore when importing | [optional] [default to undefined]
|
|
@@ -80,14 +79,13 @@ const instance: Agent = {
|
|
|
80
79
|
examples,
|
|
81
80
|
skills,
|
|
82
81
|
wallet_provider,
|
|
82
|
+
readonly_wallet_address,
|
|
83
83
|
network_id,
|
|
84
84
|
cdp_network_id,
|
|
85
|
-
twitter_entrypoint_enabled,
|
|
86
|
-
twitter_entrypoint_prompt,
|
|
87
|
-
twitter_config,
|
|
88
85
|
telegram_entrypoint_enabled,
|
|
89
86
|
telegram_entrypoint_prompt,
|
|
90
87
|
telegram_config,
|
|
88
|
+
xmtp_entrypoint_prompt,
|
|
91
89
|
id,
|
|
92
90
|
created_at,
|
|
93
91
|
updated_at,
|
package/docs/AgentUpdate.md
CHANGED
|
@@ -22,7 +22,7 @@ Name | Type | Description | Notes
|
|
|
22
22
|
**owner** | **string** | | [optional] [default to undefined]
|
|
23
23
|
**upstream_id** | **string** | | [optional] [default to undefined]
|
|
24
24
|
**upstream_extra** | **object** | | [optional] [default to undefined]
|
|
25
|
-
**model** | **string** | AI model identifier to be used by this agent for processing requests.
|
|
25
|
+
**model** | **string** | AI model identifier to be used by this agent for processing requests. | [optional] [default to 'gpt-5-mini']
|
|
26
26
|
**prompt** | **string** | | [optional] [default to undefined]
|
|
27
27
|
**prompt_append** | **string** | | [optional] [default to undefined]
|
|
28
28
|
**temperature** | **number** | | [optional] [default to undefined]
|
|
@@ -34,14 +34,13 @@ Name | Type | Description | Notes
|
|
|
34
34
|
**examples** | [**Array<AgentExample>**](AgentExample.md) | | [optional] [default to undefined]
|
|
35
35
|
**skills** | **object** | | [optional] [default to undefined]
|
|
36
36
|
**wallet_provider** | **string** | | [optional] [default to undefined]
|
|
37
|
+
**readonly_wallet_address** | **string** | | [optional] [default to undefined]
|
|
37
38
|
**network_id** | **string** | | [optional] [default to undefined]
|
|
38
39
|
**cdp_network_id** | **string** | | [optional] [default to undefined]
|
|
39
|
-
**twitter_entrypoint_enabled** | **boolean** | | [optional] [default to undefined]
|
|
40
|
-
**twitter_entrypoint_prompt** | **string** | | [optional] [default to undefined]
|
|
41
|
-
**twitter_config** | **object** | | [optional] [default to undefined]
|
|
42
40
|
**telegram_entrypoint_enabled** | **boolean** | | [optional] [default to undefined]
|
|
43
41
|
**telegram_entrypoint_prompt** | **string** | | [optional] [default to undefined]
|
|
44
42
|
**telegram_config** | **object** | | [optional] [default to undefined]
|
|
43
|
+
**xmtp_entrypoint_prompt** | **string** | | [optional] [default to undefined]
|
|
45
44
|
|
|
46
45
|
## Example
|
|
47
46
|
|
|
@@ -77,14 +76,13 @@ const instance: AgentUpdate = {
|
|
|
77
76
|
examples,
|
|
78
77
|
skills,
|
|
79
78
|
wallet_provider,
|
|
79
|
+
readonly_wallet_address,
|
|
80
80
|
network_id,
|
|
81
81
|
cdp_network_id,
|
|
82
|
-
twitter_entrypoint_enabled,
|
|
83
|
-
twitter_entrypoint_prompt,
|
|
84
|
-
twitter_config,
|
|
85
82
|
telegram_entrypoint_enabled,
|
|
86
83
|
telegram_entrypoint_prompt,
|
|
87
84
|
telegram_config,
|
|
85
|
+
xmtp_entrypoint_prompt,
|
|
88
86
|
};
|
|
89
87
|
```
|
|
90
88
|
|
package/docs/AuthorType.md
CHANGED
package/docs/ChatApi.md
CHANGED
|
@@ -458,7 +458,7 @@ const { status, data } = await apiInstance.retryMessageInChat(
|
|
|
458
458
|
# **sendMessageToChat**
|
|
459
459
|
> Array<ChatMessage> sendMessageToChat(chatMessageRequest)
|
|
460
460
|
|
|
461
|
-
Send a new message to a specific chat thread. The response is a list of messages generated by the agent.The response not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be
|
|
461
|
+
Send a new message to a specific chat thread. The response is a list of messages generated by the agent. The response does not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be a Server-Sent Events (SSE) stream with event type \'message\'.
|
|
462
462
|
|
|
463
463
|
### Example
|
|
464
464
|
|
|
@@ -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-08-
|
|
31
|
-
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-08-
|
|
30
|
+
**created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-08-20T03:24:11.680+00:00]
|
|
31
|
+
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-08-20T03:24:11.680+00:00]
|
|
32
32
|
**provider_name** | **string** | | [default to undefined]
|
|
33
33
|
|
|
34
34
|
## Example
|
package/index.ts
CHANGED