@crestal/nation-sdk 0.8.33 → 0.8.35
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 +7 -51
- package/.openapi-generator/VERSION +1 -1
- package/README.md +9 -53
- package/api.ts +19 -511
- package/base.ts +1 -1
- package/common.ts +2 -2
- package/configuration.ts +25 -2
- package/dist/api.d.ts +22 -506
- package/dist/api.js +1 -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 +25 -1
- package/dist/configuration.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AgentAssetsResponse.md +1 -1
- package/docs/{AssetOutput.md → Asset.md} +3 -3
- package/docs/CreditApi.md +2 -2
- package/docs/{CreditEventOutput.md → CreditEvent.md} +3 -3
- package/docs/{CreditEventWithAgentOutput.md → CreditEventWithAgent.md} +3 -3
- package/docs/CreditEventsResponse.md +1 -1
- package/docs/{CreditTransactionRespOutput.md → CreditTransactionResp.md} +4 -4
- package/docs/CreditTransactionsResponse.md +1 -1
- package/docs/{LLMModelInfoWithProviderNameOutput.md → LLMModelInfoWithProviderName.md} +5 -5
- package/docs/MetadataApi.md +4 -4
- package/docs/{SkillOutput.md → Skill.md} +3 -3
- package/docs/{TopupRecordOutput.md → TopupRecord.md} +3 -3
- package/docs/TopupRecordsResponse.md +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/Amount.md +0 -19
- package/docs/AssetInput.md +0 -23
- package/docs/Balance.md +0 -19
- package/docs/BalanceAfter.md +0 -19
- package/docs/BaseAmount.md +0 -19
- package/docs/BaseDiscountAmount.md +0 -19
- package/docs/BaseFreeAmount.md +0 -19
- package/docs/BaseLlmAmount.md +0 -19
- package/docs/BaseOriginalAmount.md +0 -19
- package/docs/BasePermanentAmount.md +0 -19
- package/docs/BaseRewardAmount.md +0 -19
- package/docs/BaseSkillAmount.md +0 -19
- package/docs/ChangeAmount.md +0 -19
- package/docs/CreditAmount.md +0 -19
- package/docs/CreditEventInput.md +0 -109
- package/docs/CreditEventWithAgentInput.md +0 -111
- package/docs/CreditTransactionRespInput.md +0 -43
- package/docs/FeeAgentAmount.md +0 -19
- package/docs/FeeAgentFreeAmount.md +0 -19
- package/docs/FeeAgentPermanentAmount.md +0 -19
- package/docs/FeeAgentRewardAmount.md +0 -19
- package/docs/FeeDevAmount.md +0 -19
- package/docs/FeeDevFreeAmount.md +0 -19
- package/docs/FeeDevPermanentAmount.md +0 -19
- package/docs/FeeDevRewardAmount.md +0 -19
- package/docs/FeePlatformAmount.md +0 -19
- package/docs/FeePlatformFreeAmount.md +0 -19
- package/docs/FeePlatformPermanentAmount.md +0 -19
- package/docs/FeePlatformRewardAmount.md +0 -19
- package/docs/FreeAmount.md +0 -19
- package/docs/FreeAmount1.md +0 -19
- package/docs/InputPrice.md +0 -18
- package/docs/LLMModelInfoWithProviderNameInput.md +0 -67
- package/docs/OutputPrice.md +0 -18
- package/docs/PermanentAmount.md +0 -19
- package/docs/PermanentAmount1.md +0 -19
- package/docs/Price.md +0 -19
- package/docs/PriceSelfKey.md +0 -19
- package/docs/RewardAmount.md +0 -19
- package/docs/RewardAmount1.md +0 -19
- package/docs/SkillInput.md +0 -43
- package/docs/TokenAmount.md +0 -19
- package/docs/TopupRecordInput.md +0 -49
- package/docs/TotalAmount.md +0 -19
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.35
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -153,7 +153,7 @@ export interface AgentAssetsResponse {
|
|
|
153
153
|
/**
|
|
154
154
|
* List of assets with symbol and balance
|
|
155
155
|
*/
|
|
156
|
-
'assets': Array<
|
|
156
|
+
'assets': Array<Asset>;
|
|
157
157
|
/**
|
|
158
158
|
* Credit account information
|
|
159
159
|
*/
|
|
@@ -749,11 +749,6 @@ export declare const AgentUserInputShortTermMemoryStrategyEnum: {
|
|
|
749
749
|
readonly Summarize: "summarize";
|
|
750
750
|
};
|
|
751
751
|
export type AgentUserInputShortTermMemoryStrategyEnum = typeof AgentUserInputShortTermMemoryStrategyEnum[keyof typeof AgentUserInputShortTermMemoryStrategyEnum];
|
|
752
|
-
/**
|
|
753
|
-
* Token amount in raw units
|
|
754
|
-
*/
|
|
755
|
-
export interface Amount {
|
|
756
|
-
}
|
|
757
752
|
/**
|
|
758
753
|
* Response model for chat messages with pagination.
|
|
759
754
|
*/
|
|
@@ -765,17 +760,7 @@ export interface AppManagerRouterChatMessagesResponse {
|
|
|
765
760
|
/**
|
|
766
761
|
* Model for individual asset with symbol and balance.
|
|
767
762
|
*/
|
|
768
|
-
export interface
|
|
769
|
-
/**
|
|
770
|
-
* Asset symbol (e.g., ETH, USDC, NATION)
|
|
771
|
-
*/
|
|
772
|
-
'symbol': string;
|
|
773
|
-
'balance': Balance;
|
|
774
|
-
}
|
|
775
|
-
/**
|
|
776
|
-
* Model for individual asset with symbol and balance.
|
|
777
|
-
*/
|
|
778
|
-
export interface AssetOutput {
|
|
763
|
+
export interface Asset {
|
|
779
764
|
/**
|
|
780
765
|
* Asset symbol (e.g., ETH, USDC, NATION)
|
|
781
766
|
*/
|
|
@@ -801,61 +786,6 @@ export declare const AuthorType: {
|
|
|
801
786
|
readonly X402: "x402";
|
|
802
787
|
};
|
|
803
788
|
export type AuthorType = typeof AuthorType[keyof typeof AuthorType];
|
|
804
|
-
/**
|
|
805
|
-
* Asset balance as decimal
|
|
806
|
-
*/
|
|
807
|
-
export interface Balance {
|
|
808
|
-
}
|
|
809
|
-
/**
|
|
810
|
-
* Account total balance after the transaction
|
|
811
|
-
*/
|
|
812
|
-
export interface BalanceAfter {
|
|
813
|
-
}
|
|
814
|
-
/**
|
|
815
|
-
* Base amount of credits involved
|
|
816
|
-
*/
|
|
817
|
-
export interface BaseAmount {
|
|
818
|
-
}
|
|
819
|
-
/**
|
|
820
|
-
* Base discount amount
|
|
821
|
-
*/
|
|
822
|
-
export interface BaseDiscountAmount {
|
|
823
|
-
}
|
|
824
|
-
/**
|
|
825
|
-
* Base free credit amount
|
|
826
|
-
*/
|
|
827
|
-
export interface BaseFreeAmount {
|
|
828
|
-
}
|
|
829
|
-
/**
|
|
830
|
-
* Base LLM cost amount
|
|
831
|
-
*/
|
|
832
|
-
export interface BaseLlmAmount {
|
|
833
|
-
}
|
|
834
|
-
/**
|
|
835
|
-
* Base original amount
|
|
836
|
-
*/
|
|
837
|
-
export interface BaseOriginalAmount {
|
|
838
|
-
}
|
|
839
|
-
/**
|
|
840
|
-
* Base permanent credit amount
|
|
841
|
-
*/
|
|
842
|
-
export interface BasePermanentAmount {
|
|
843
|
-
}
|
|
844
|
-
/**
|
|
845
|
-
* Base reward credit amount
|
|
846
|
-
*/
|
|
847
|
-
export interface BaseRewardAmount {
|
|
848
|
-
}
|
|
849
|
-
/**
|
|
850
|
-
* Base skill cost amount
|
|
851
|
-
*/
|
|
852
|
-
export interface BaseSkillAmount {
|
|
853
|
-
}
|
|
854
|
-
/**
|
|
855
|
-
* Amount of credits changed
|
|
856
|
-
*/
|
|
857
|
-
export interface ChangeAmount {
|
|
858
|
-
}
|
|
859
789
|
/**
|
|
860
790
|
* Chat model with all fields including server-generated ones.
|
|
861
791
|
*/
|
|
@@ -1091,11 +1021,6 @@ export interface CreditAccount {
|
|
|
1091
1021
|
*/
|
|
1092
1022
|
'updated_at': string;
|
|
1093
1023
|
}
|
|
1094
|
-
/**
|
|
1095
|
-
* Credits applied after conversion
|
|
1096
|
-
*/
|
|
1097
|
-
export interface CreditAmount {
|
|
1098
|
-
}
|
|
1099
1024
|
/**
|
|
1100
1025
|
* Credit or debit transaction.
|
|
1101
1026
|
*/
|
|
@@ -1107,81 +1032,7 @@ export type CreditDebit = typeof CreditDebit[keyof typeof CreditDebit];
|
|
|
1107
1032
|
/**
|
|
1108
1033
|
* Credit event model with all fields.
|
|
1109
1034
|
*/
|
|
1110
|
-
export interface
|
|
1111
|
-
/**
|
|
1112
|
-
* Unique identifier for the credit event
|
|
1113
|
-
*/
|
|
1114
|
-
'id'?: string;
|
|
1115
|
-
/**
|
|
1116
|
-
* Account ID from which credits flow
|
|
1117
|
-
*/
|
|
1118
|
-
'account_id'?: string;
|
|
1119
|
-
/**
|
|
1120
|
-
* Type of the event
|
|
1121
|
-
*/
|
|
1122
|
-
'event_type': EventType;
|
|
1123
|
-
'user_id'?: string | null;
|
|
1124
|
-
/**
|
|
1125
|
-
* Type of upstream transaction
|
|
1126
|
-
*/
|
|
1127
|
-
'upstream_type': UpstreamType;
|
|
1128
|
-
/**
|
|
1129
|
-
* Upstream transaction ID if any
|
|
1130
|
-
*/
|
|
1131
|
-
'upstream_tx_id': string;
|
|
1132
|
-
'agent_id'?: string | null;
|
|
1133
|
-
'agent_wallet_address'?: string | null;
|
|
1134
|
-
'start_message_id'?: string | null;
|
|
1135
|
-
'message_id'?: string | null;
|
|
1136
|
-
'model'?: string | null;
|
|
1137
|
-
'skill_call_id'?: string | null;
|
|
1138
|
-
'skill_name'?: string | null;
|
|
1139
|
-
/**
|
|
1140
|
-
* Direction of the credit flow
|
|
1141
|
-
*/
|
|
1142
|
-
'direction': Direction;
|
|
1143
|
-
'total_amount'?: TotalAmount;
|
|
1144
|
-
/**
|
|
1145
|
-
* Type of credits involved
|
|
1146
|
-
*/
|
|
1147
|
-
'credit_type': CreditType;
|
|
1148
|
-
'credit_types'?: Array<CreditType> | null;
|
|
1149
|
-
'balance_after'?: BalanceAfter | null;
|
|
1150
|
-
'base_amount'?: BaseAmount;
|
|
1151
|
-
'base_discount_amount'?: BaseDiscountAmount | null;
|
|
1152
|
-
'base_original_amount'?: BaseOriginalAmount | null;
|
|
1153
|
-
'base_llm_amount'?: BaseLlmAmount | null;
|
|
1154
|
-
'base_skill_amount'?: BaseSkillAmount | null;
|
|
1155
|
-
'base_free_amount'?: BaseFreeAmount | null;
|
|
1156
|
-
'base_reward_amount'?: BaseRewardAmount | null;
|
|
1157
|
-
'base_permanent_amount'?: BasePermanentAmount | null;
|
|
1158
|
-
'fee_platform_amount'?: FeePlatformAmount | null;
|
|
1159
|
-
'fee_platform_free_amount'?: FeePlatformFreeAmount | null;
|
|
1160
|
-
'fee_platform_reward_amount'?: FeePlatformRewardAmount | null;
|
|
1161
|
-
'fee_platform_permanent_amount'?: FeePlatformPermanentAmount | null;
|
|
1162
|
-
'fee_dev_account'?: string | null;
|
|
1163
|
-
'fee_dev_amount'?: FeeDevAmount | null;
|
|
1164
|
-
'fee_dev_free_amount'?: FeeDevFreeAmount | null;
|
|
1165
|
-
'fee_dev_reward_amount'?: FeeDevRewardAmount | null;
|
|
1166
|
-
'fee_dev_permanent_amount'?: FeeDevPermanentAmount | null;
|
|
1167
|
-
'fee_agent_account'?: string | null;
|
|
1168
|
-
'fee_agent_amount'?: FeeAgentAmount | null;
|
|
1169
|
-
'fee_agent_free_amount'?: FeeAgentFreeAmount | null;
|
|
1170
|
-
'fee_agent_reward_amount'?: FeeAgentRewardAmount | null;
|
|
1171
|
-
'fee_agent_permanent_amount'?: FeeAgentPermanentAmount | null;
|
|
1172
|
-
'free_amount'?: FreeAmount | null;
|
|
1173
|
-
'reward_amount'?: RewardAmount | null;
|
|
1174
|
-
'permanent_amount'?: PermanentAmount | null;
|
|
1175
|
-
'note'?: string | null;
|
|
1176
|
-
/**
|
|
1177
|
-
* Timestamp when this event was created
|
|
1178
|
-
*/
|
|
1179
|
-
'created_at': string;
|
|
1180
|
-
}
|
|
1181
|
-
/**
|
|
1182
|
-
* Credit event model with all fields.
|
|
1183
|
-
*/
|
|
1184
|
-
export interface CreditEventOutput {
|
|
1035
|
+
export interface CreditEvent {
|
|
1185
1036
|
/**
|
|
1186
1037
|
* Unique identifier for the credit event
|
|
1187
1038
|
*/
|
|
@@ -1261,82 +1112,7 @@ export interface CreditEventOutput {
|
|
|
1261
1112
|
/**
|
|
1262
1113
|
* Credit event response model with agent name. Extends CreditEvent to include the agent name for better user experience.
|
|
1263
1114
|
*/
|
|
1264
|
-
export interface
|
|
1265
|
-
/**
|
|
1266
|
-
* Unique identifier for the credit event
|
|
1267
|
-
*/
|
|
1268
|
-
'id'?: string;
|
|
1269
|
-
/**
|
|
1270
|
-
* Account ID from which credits flow
|
|
1271
|
-
*/
|
|
1272
|
-
'account_id'?: string;
|
|
1273
|
-
/**
|
|
1274
|
-
* Type of the event
|
|
1275
|
-
*/
|
|
1276
|
-
'event_type': EventType;
|
|
1277
|
-
'user_id'?: string | null;
|
|
1278
|
-
/**
|
|
1279
|
-
* Type of upstream transaction
|
|
1280
|
-
*/
|
|
1281
|
-
'upstream_type': UpstreamType;
|
|
1282
|
-
/**
|
|
1283
|
-
* Upstream transaction ID if any
|
|
1284
|
-
*/
|
|
1285
|
-
'upstream_tx_id': string;
|
|
1286
|
-
'agent_id'?: string | null;
|
|
1287
|
-
'agent_wallet_address'?: string | null;
|
|
1288
|
-
'start_message_id'?: string | null;
|
|
1289
|
-
'message_id'?: string | null;
|
|
1290
|
-
'model'?: string | null;
|
|
1291
|
-
'skill_call_id'?: string | null;
|
|
1292
|
-
'skill_name'?: string | null;
|
|
1293
|
-
/**
|
|
1294
|
-
* Direction of the credit flow
|
|
1295
|
-
*/
|
|
1296
|
-
'direction': Direction;
|
|
1297
|
-
'total_amount'?: TotalAmount;
|
|
1298
|
-
/**
|
|
1299
|
-
* Type of credits involved
|
|
1300
|
-
*/
|
|
1301
|
-
'credit_type': CreditType;
|
|
1302
|
-
'credit_types'?: Array<CreditType> | null;
|
|
1303
|
-
'balance_after'?: BalanceAfter | null;
|
|
1304
|
-
'base_amount'?: BaseAmount;
|
|
1305
|
-
'base_discount_amount'?: BaseDiscountAmount | null;
|
|
1306
|
-
'base_original_amount'?: BaseOriginalAmount | null;
|
|
1307
|
-
'base_llm_amount'?: BaseLlmAmount | null;
|
|
1308
|
-
'base_skill_amount'?: BaseSkillAmount | null;
|
|
1309
|
-
'base_free_amount'?: BaseFreeAmount | null;
|
|
1310
|
-
'base_reward_amount'?: BaseRewardAmount | null;
|
|
1311
|
-
'base_permanent_amount'?: BasePermanentAmount | null;
|
|
1312
|
-
'fee_platform_amount'?: FeePlatformAmount | null;
|
|
1313
|
-
'fee_platform_free_amount'?: FeePlatformFreeAmount | null;
|
|
1314
|
-
'fee_platform_reward_amount'?: FeePlatformRewardAmount | null;
|
|
1315
|
-
'fee_platform_permanent_amount'?: FeePlatformPermanentAmount | null;
|
|
1316
|
-
'fee_dev_account'?: string | null;
|
|
1317
|
-
'fee_dev_amount'?: FeeDevAmount | null;
|
|
1318
|
-
'fee_dev_free_amount'?: FeeDevFreeAmount | null;
|
|
1319
|
-
'fee_dev_reward_amount'?: FeeDevRewardAmount | null;
|
|
1320
|
-
'fee_dev_permanent_amount'?: FeeDevPermanentAmount | null;
|
|
1321
|
-
'fee_agent_account'?: string | null;
|
|
1322
|
-
'fee_agent_amount'?: FeeAgentAmount | null;
|
|
1323
|
-
'fee_agent_free_amount'?: FeeAgentFreeAmount | null;
|
|
1324
|
-
'fee_agent_reward_amount'?: FeeAgentRewardAmount | null;
|
|
1325
|
-
'fee_agent_permanent_amount'?: FeeAgentPermanentAmount | null;
|
|
1326
|
-
'free_amount'?: FreeAmount | null;
|
|
1327
|
-
'reward_amount'?: RewardAmount | null;
|
|
1328
|
-
'permanent_amount'?: PermanentAmount | null;
|
|
1329
|
-
'note'?: string | null;
|
|
1330
|
-
/**
|
|
1331
|
-
* Timestamp when this event was created
|
|
1332
|
-
*/
|
|
1333
|
-
'created_at': string;
|
|
1334
|
-
'agent_name'?: string | null;
|
|
1335
|
-
}
|
|
1336
|
-
/**
|
|
1337
|
-
* Credit event response model with agent name. Extends CreditEvent to include the agent name for better user experience.
|
|
1338
|
-
*/
|
|
1339
|
-
export interface CreditEventWithAgentOutput {
|
|
1115
|
+
export interface CreditEventWithAgent {
|
|
1340
1116
|
/**
|
|
1341
1117
|
* Unique identifier for the credit event
|
|
1342
1118
|
*/
|
|
@@ -1421,7 +1197,7 @@ export interface CreditEventsResponse {
|
|
|
1421
1197
|
/**
|
|
1422
1198
|
* List of credit events with agent names
|
|
1423
1199
|
*/
|
|
1424
|
-
'data': Array<
|
|
1200
|
+
'data': Array<CreditEventWithAgent>;
|
|
1425
1201
|
/**
|
|
1426
1202
|
* Indicates if there are more items
|
|
1427
1203
|
*/
|
|
@@ -1431,45 +1207,7 @@ export interface CreditEventsResponse {
|
|
|
1431
1207
|
/**
|
|
1432
1208
|
* Credit transaction response model with associated event data. Extends CreditTransaction to include the related CreditEvent if available.
|
|
1433
1209
|
*/
|
|
1434
|
-
export interface
|
|
1435
|
-
/**
|
|
1436
|
-
* Unique identifier for the credit transaction
|
|
1437
|
-
*/
|
|
1438
|
-
'id'?: string;
|
|
1439
|
-
/**
|
|
1440
|
-
* ID of the account this transaction belongs to
|
|
1441
|
-
*/
|
|
1442
|
-
'account_id': string;
|
|
1443
|
-
/**
|
|
1444
|
-
* ID of the event that triggered this transaction
|
|
1445
|
-
*/
|
|
1446
|
-
'event_id': string;
|
|
1447
|
-
/**
|
|
1448
|
-
* Type of the transaction
|
|
1449
|
-
*/
|
|
1450
|
-
'tx_type': TransactionType;
|
|
1451
|
-
/**
|
|
1452
|
-
* Whether this is a credit or debit transaction
|
|
1453
|
-
*/
|
|
1454
|
-
'credit_debit': CreditDebit;
|
|
1455
|
-
'change_amount'?: ChangeAmount;
|
|
1456
|
-
'free_amount'?: FreeAmount1;
|
|
1457
|
-
'reward_amount'?: RewardAmount1;
|
|
1458
|
-
'permanent_amount'?: PermanentAmount1;
|
|
1459
|
-
/**
|
|
1460
|
-
* Type of credits involved
|
|
1461
|
-
*/
|
|
1462
|
-
'credit_type': CreditType;
|
|
1463
|
-
/**
|
|
1464
|
-
* Timestamp when this transaction was created
|
|
1465
|
-
*/
|
|
1466
|
-
'created_at': string;
|
|
1467
|
-
'event'?: CreditEventInput | null;
|
|
1468
|
-
}
|
|
1469
|
-
/**
|
|
1470
|
-
* Credit transaction response model with associated event data. Extends CreditTransaction to include the related CreditEvent if available.
|
|
1471
|
-
*/
|
|
1472
|
-
export interface CreditTransactionRespOutput {
|
|
1210
|
+
export interface CreditTransactionResp {
|
|
1473
1211
|
/**
|
|
1474
1212
|
* Unique identifier for the credit transaction
|
|
1475
1213
|
*/
|
|
@@ -1514,7 +1252,7 @@ export interface CreditTransactionRespOutput {
|
|
|
1514
1252
|
* Timestamp when this transaction was created
|
|
1515
1253
|
*/
|
|
1516
1254
|
'created_at': string;
|
|
1517
|
-
'event'?:
|
|
1255
|
+
'event'?: CreditEvent | null;
|
|
1518
1256
|
}
|
|
1519
1257
|
/**
|
|
1520
1258
|
* Paginated response model for credit transactions. Contains a list of credit transactions (with event data), a flag for more items, and a pagination cursor.
|
|
@@ -1523,7 +1261,7 @@ export interface CreditTransactionsResponse {
|
|
|
1523
1261
|
/**
|
|
1524
1262
|
* List of credit transactions
|
|
1525
1263
|
*/
|
|
1526
|
-
'data': Array<
|
|
1264
|
+
'data': Array<CreditTransactionResp>;
|
|
1527
1265
|
/**
|
|
1528
1266
|
* Indicates if there are more items
|
|
1529
1267
|
*/
|
|
@@ -1566,71 +1304,11 @@ export declare const EventType: {
|
|
|
1566
1304
|
readonly RechargeBonus: "recharge_bonus";
|
|
1567
1305
|
};
|
|
1568
1306
|
export type EventType = typeof EventType[keyof typeof EventType];
|
|
1569
|
-
/**
|
|
1570
|
-
* Agent fee amount
|
|
1571
|
-
*/
|
|
1572
|
-
export interface FeeAgentAmount {
|
|
1573
|
-
}
|
|
1574
|
-
/**
|
|
1575
|
-
* Agent fee amount from free credits
|
|
1576
|
-
*/
|
|
1577
|
-
export interface FeeAgentFreeAmount {
|
|
1578
|
-
}
|
|
1579
|
-
/**
|
|
1580
|
-
* Agent fee amount from permanent credits
|
|
1581
|
-
*/
|
|
1582
|
-
export interface FeeAgentPermanentAmount {
|
|
1583
|
-
}
|
|
1584
|
-
/**
|
|
1585
|
-
* Agent fee amount from reward credits
|
|
1586
|
-
*/
|
|
1587
|
-
export interface FeeAgentRewardAmount {
|
|
1588
|
-
}
|
|
1589
|
-
/**
|
|
1590
|
-
* Developer fee amount
|
|
1591
|
-
*/
|
|
1592
|
-
export interface FeeDevAmount {
|
|
1593
|
-
}
|
|
1594
|
-
/**
|
|
1595
|
-
* Developer fee amount from free credits
|
|
1596
|
-
*/
|
|
1597
|
-
export interface FeeDevFreeAmount {
|
|
1598
|
-
}
|
|
1599
|
-
/**
|
|
1600
|
-
* Developer fee amount from permanent credits
|
|
1601
|
-
*/
|
|
1602
|
-
export interface FeeDevPermanentAmount {
|
|
1603
|
-
}
|
|
1604
|
-
/**
|
|
1605
|
-
* Developer fee amount from reward credits
|
|
1606
|
-
*/
|
|
1607
|
-
export interface FeeDevRewardAmount {
|
|
1608
|
-
}
|
|
1609
1307
|
/**
|
|
1610
1308
|
* Fee percentage of the agent
|
|
1611
1309
|
*/
|
|
1612
1310
|
export interface FeePercentage {
|
|
1613
1311
|
}
|
|
1614
|
-
/**
|
|
1615
|
-
* Platform fee amount
|
|
1616
|
-
*/
|
|
1617
|
-
export interface FeePlatformAmount {
|
|
1618
|
-
}
|
|
1619
|
-
/**
|
|
1620
|
-
* Platform fee amount from free credits
|
|
1621
|
-
*/
|
|
1622
|
-
export interface FeePlatformFreeAmount {
|
|
1623
|
-
}
|
|
1624
|
-
/**
|
|
1625
|
-
* Platform fee amount from permanent credits
|
|
1626
|
-
*/
|
|
1627
|
-
export interface FeePlatformPermanentAmount {
|
|
1628
|
-
}
|
|
1629
|
-
/**
|
|
1630
|
-
* Platform fee amount from reward credits
|
|
1631
|
-
*/
|
|
1632
|
-
export interface FeePlatformRewardAmount {
|
|
1633
|
-
}
|
|
1634
1312
|
/**
|
|
1635
1313
|
* Response model for file upload.
|
|
1636
1314
|
*/
|
|
@@ -1644,16 +1322,6 @@ export interface FileUploadResponse {
|
|
|
1644
1322
|
*/
|
|
1645
1323
|
'file_id': string;
|
|
1646
1324
|
}
|
|
1647
|
-
/**
|
|
1648
|
-
* Free credit amount involved
|
|
1649
|
-
*/
|
|
1650
|
-
export interface FreeAmount {
|
|
1651
|
-
}
|
|
1652
|
-
/**
|
|
1653
|
-
* Amount of free credits changed
|
|
1654
|
-
*/
|
|
1655
|
-
export interface FreeAmount1 {
|
|
1656
|
-
}
|
|
1657
1325
|
/**
|
|
1658
1326
|
* Response model for single generation detail.
|
|
1659
1327
|
*/
|
|
@@ -1696,47 +1364,10 @@ export interface GenerationsListResponse {
|
|
|
1696
1364
|
export interface HTTPValidationError {
|
|
1697
1365
|
'detail'?: Array<ValidationError>;
|
|
1698
1366
|
}
|
|
1699
|
-
export interface InputPrice {
|
|
1700
|
-
}
|
|
1701
1367
|
/**
|
|
1702
1368
|
* LLM model information with provider display name.
|
|
1703
1369
|
*/
|
|
1704
|
-
export interface
|
|
1705
|
-
'id': string;
|
|
1706
|
-
'name': string;
|
|
1707
|
-
'provider': LLMProvider;
|
|
1708
|
-
'enabled'?: boolean;
|
|
1709
|
-
'input_price': InputPrice;
|
|
1710
|
-
'output_price': OutputPrice;
|
|
1711
|
-
'price_level'?: number | null;
|
|
1712
|
-
'context_length': number;
|
|
1713
|
-
'output_length': number;
|
|
1714
|
-
'intelligence': number;
|
|
1715
|
-
'speed': number;
|
|
1716
|
-
'supports_image_input'?: boolean;
|
|
1717
|
-
'supports_skill_calls'?: boolean;
|
|
1718
|
-
'supports_structured_output'?: boolean;
|
|
1719
|
-
'has_reasoning'?: boolean;
|
|
1720
|
-
'supports_search'?: boolean;
|
|
1721
|
-
'supports_temperature'?: boolean;
|
|
1722
|
-
'supports_frequency_penalty'?: boolean;
|
|
1723
|
-
'supports_presence_penalty'?: boolean;
|
|
1724
|
-
'api_base'?: string | null;
|
|
1725
|
-
'timeout'?: number;
|
|
1726
|
-
/**
|
|
1727
|
-
* Timestamp when this data was created
|
|
1728
|
-
*/
|
|
1729
|
-
'created_at'?: string;
|
|
1730
|
-
/**
|
|
1731
|
-
* Timestamp when this data was updated
|
|
1732
|
-
*/
|
|
1733
|
-
'updated_at'?: string;
|
|
1734
|
-
'provider_name': string;
|
|
1735
|
-
}
|
|
1736
|
-
/**
|
|
1737
|
-
* LLM model information with provider display name.
|
|
1738
|
-
*/
|
|
1739
|
-
export interface LLMModelInfoWithProviderNameOutput {
|
|
1370
|
+
export interface LLMModelInfoWithProviderName {
|
|
1740
1371
|
'id': string;
|
|
1741
1372
|
'name': string;
|
|
1742
1373
|
'provider': LLMProvider;
|
|
@@ -1789,8 +1420,6 @@ export interface ManagerMessageRequest {
|
|
|
1789
1420
|
'stream'?: boolean | null;
|
|
1790
1421
|
'attachments'?: Array<ChatMessageAttachment> | null;
|
|
1791
1422
|
}
|
|
1792
|
-
export interface OutputPrice {
|
|
1793
|
-
}
|
|
1794
1423
|
/**
|
|
1795
1424
|
* Type of credit account owner.
|
|
1796
1425
|
*/
|
|
@@ -1800,72 +1429,10 @@ export declare const OwnerType: {
|
|
|
1800
1429
|
readonly Platform: "platform";
|
|
1801
1430
|
};
|
|
1802
1431
|
export type OwnerType = typeof OwnerType[keyof typeof OwnerType];
|
|
1803
|
-
/**
|
|
1804
|
-
* Permanent credit amount involved
|
|
1805
|
-
*/
|
|
1806
|
-
export interface PermanentAmount {
|
|
1807
|
-
}
|
|
1808
|
-
/**
|
|
1809
|
-
* Amount of permanent credits changed
|
|
1810
|
-
*/
|
|
1811
|
-
export interface PermanentAmount1 {
|
|
1812
|
-
}
|
|
1813
|
-
/**
|
|
1814
|
-
* Price for this skill
|
|
1815
|
-
*/
|
|
1816
|
-
export interface Price {
|
|
1817
|
-
}
|
|
1818
|
-
/**
|
|
1819
|
-
* Price for this skill with self key
|
|
1820
|
-
*/
|
|
1821
|
-
export interface PriceSelfKey {
|
|
1822
|
-
}
|
|
1823
|
-
/**
|
|
1824
|
-
* Reward credit amount involved
|
|
1825
|
-
*/
|
|
1826
|
-
export interface RewardAmount {
|
|
1827
|
-
}
|
|
1828
|
-
/**
|
|
1829
|
-
* Amount of reward credits changed
|
|
1830
|
-
*/
|
|
1831
|
-
export interface RewardAmount1 {
|
|
1832
|
-
}
|
|
1833
1432
|
/**
|
|
1834
1433
|
* Pydantic model for Skill.
|
|
1835
1434
|
*/
|
|
1836
|
-
export interface
|
|
1837
|
-
/**
|
|
1838
|
-
* Name of the skill
|
|
1839
|
-
*/
|
|
1840
|
-
'name': string;
|
|
1841
|
-
/**
|
|
1842
|
-
* Is this skill enabled?
|
|
1843
|
-
*/
|
|
1844
|
-
'enabled': boolean;
|
|
1845
|
-
/**
|
|
1846
|
-
* Category of the skill
|
|
1847
|
-
*/
|
|
1848
|
-
'category': string;
|
|
1849
|
-
'config_name': string | null;
|
|
1850
|
-
'price_level': number | null;
|
|
1851
|
-
'price'?: Price;
|
|
1852
|
-
'price_self_key'?: PriceSelfKey;
|
|
1853
|
-
'rate_limit_count': number | null;
|
|
1854
|
-
'rate_limit_minutes': number | null;
|
|
1855
|
-
'author': string | null;
|
|
1856
|
-
/**
|
|
1857
|
-
* Timestamp when this record was created
|
|
1858
|
-
*/
|
|
1859
|
-
'created_at': string;
|
|
1860
|
-
/**
|
|
1861
|
-
* Timestamp when this record was last updated
|
|
1862
|
-
*/
|
|
1863
|
-
'updated_at': string;
|
|
1864
|
-
}
|
|
1865
|
-
/**
|
|
1866
|
-
* Pydantic model for Skill.
|
|
1867
|
-
*/
|
|
1868
|
-
export interface SkillOutput {
|
|
1435
|
+
export interface Skill {
|
|
1869
1436
|
/**
|
|
1870
1437
|
* Name of the skill
|
|
1871
1438
|
*/
|
|
@@ -1925,56 +1492,10 @@ export interface Tag {
|
|
|
1925
1492
|
'created_at'?: string | null;
|
|
1926
1493
|
'category'?: string | null;
|
|
1927
1494
|
}
|
|
1928
|
-
/**
|
|
1929
|
-
* Token amount converted to token units
|
|
1930
|
-
*/
|
|
1931
|
-
export interface TokenAmount {
|
|
1932
|
-
}
|
|
1933
|
-
/**
|
|
1934
|
-
* Top-up record fetched from Supabase.
|
|
1935
|
-
*/
|
|
1936
|
-
export interface TopupRecordInput {
|
|
1937
|
-
/**
|
|
1938
|
-
* Transaction hash of the top-up
|
|
1939
|
-
*/
|
|
1940
|
-
'tx_hash': string;
|
|
1941
|
-
/**
|
|
1942
|
-
* Log index within the transaction
|
|
1943
|
-
*/
|
|
1944
|
-
'log_index': number;
|
|
1945
|
-
/**
|
|
1946
|
-
* Blockchain network identifier
|
|
1947
|
-
*/
|
|
1948
|
-
'chain_id': number;
|
|
1949
|
-
/**
|
|
1950
|
-
* Block number containing the top-up
|
|
1951
|
-
*/
|
|
1952
|
-
'block_number': number;
|
|
1953
|
-
'block_time'?: string | null;
|
|
1954
|
-
/**
|
|
1955
|
-
* Address that initiated the top-up
|
|
1956
|
-
*/
|
|
1957
|
-
'payer_address': string;
|
|
1958
|
-
/**
|
|
1959
|
-
* Beneficiary address for the top-up
|
|
1960
|
-
*/
|
|
1961
|
-
'to_address': string;
|
|
1962
|
-
/**
|
|
1963
|
-
* Token contract used for the top-up
|
|
1964
|
-
*/
|
|
1965
|
-
'token_address': string;
|
|
1966
|
-
'amount': Amount;
|
|
1967
|
-
'token_amount'?: TokenAmount | null;
|
|
1968
|
-
'contract_address'?: string | null;
|
|
1969
|
-
'inserted_at'?: string | null;
|
|
1970
|
-
'credit_event_id'?: string | null;
|
|
1971
|
-
'credit_event_at'?: string | null;
|
|
1972
|
-
'credit_amount'?: CreditAmount | null;
|
|
1973
|
-
}
|
|
1974
1495
|
/**
|
|
1975
1496
|
* Top-up record fetched from Supabase.
|
|
1976
1497
|
*/
|
|
1977
|
-
export interface
|
|
1498
|
+
export interface TopupRecord {
|
|
1978
1499
|
/**
|
|
1979
1500
|
* Transaction hash of the top-up
|
|
1980
1501
|
*/
|
|
@@ -2022,18 +1543,13 @@ export interface TopupRecordsResponse {
|
|
|
2022
1543
|
/**
|
|
2023
1544
|
* List of top-up records
|
|
2024
1545
|
*/
|
|
2025
|
-
'data': Array<
|
|
1546
|
+
'data': Array<TopupRecord>;
|
|
2026
1547
|
/**
|
|
2027
1548
|
* Indicates if there are more records available
|
|
2028
1549
|
*/
|
|
2029
1550
|
'has_more': boolean;
|
|
2030
1551
|
'next_cursor'?: string | null;
|
|
2031
1552
|
}
|
|
2032
|
-
/**
|
|
2033
|
-
* Total amount (after discount) of credits involved
|
|
2034
|
-
*/
|
|
2035
|
-
export interface TotalAmount {
|
|
2036
|
-
}
|
|
2037
1553
|
/**
|
|
2038
1554
|
* Type of credit transaction.
|
|
2039
1555
|
*/
|
|
@@ -3309,7 +2825,7 @@ export declare const CreditApiFp: (configuration?: Configuration) => {
|
|
|
3309
2825
|
* @param {*} [options] Override http request option.
|
|
3310
2826
|
* @throws {RequiredError}
|
|
3311
2827
|
*/
|
|
3312
|
-
fetchCreditEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2828
|
+
fetchCreditEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreditEvent>>;
|
|
3313
2829
|
/**
|
|
3314
2830
|
* Get or create a user\'s credit account. This endpoint will create a new account if it does not exist. Not in the readonly router because it may create a new account.
|
|
3315
2831
|
* @summary Get User Account
|
|
@@ -3370,7 +2886,7 @@ export declare const CreditApiFactory: (configuration?: Configuration, basePath?
|
|
|
3370
2886
|
* @param {*} [options] Override http request option.
|
|
3371
2887
|
* @throws {RequiredError}
|
|
3372
2888
|
*/
|
|
3373
|
-
fetchCreditEvent(eventId: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2889
|
+
fetchCreditEvent(eventId: string, options?: RawAxiosRequestConfig): AxiosPromise<CreditEvent>;
|
|
3374
2890
|
/**
|
|
3375
2891
|
* Get or create a user\'s credit account. This endpoint will create a new account if it does not exist. Not in the readonly router because it may create a new account.
|
|
3376
2892
|
* @summary Get User Account
|
|
@@ -3431,7 +2947,7 @@ export declare class CreditApi extends BaseAPI {
|
|
|
3431
2947
|
* @param {*} [options] Override http request option.
|
|
3432
2948
|
* @throws {RequiredError}
|
|
3433
2949
|
*/
|
|
3434
|
-
fetchCreditEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
2950
|
+
fetchCreditEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditEvent, any, {}>>;
|
|
3435
2951
|
/**
|
|
3436
2952
|
* Get or create a user\'s credit account. This endpoint will create a new account if it does not exist. Not in the readonly router because it may create a new account.
|
|
3437
2953
|
* @summary Get User Account
|
|
@@ -4121,7 +3637,7 @@ export declare const MetadataApiFp: (configuration?: Configuration) => {
|
|
|
4121
3637
|
* @param {*} [options] Override http request option.
|
|
4122
3638
|
* @throws {RequiredError}
|
|
4123
3639
|
*/
|
|
4124
|
-
getLlms(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
3640
|
+
getLlms(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LLMModelInfoWithProviderName>>>;
|
|
4125
3641
|
/**
|
|
4126
3642
|
* Returns a list of all metadata tags configured in the system.
|
|
4127
3643
|
* @summary Get metadata tags
|
|
@@ -4153,7 +3669,7 @@ export declare const MetadataApiFp: (configuration?: Configuration) => {
|
|
|
4153
3669
|
* @param {*} [options] Override http request option.
|
|
4154
3670
|
* @throws {RequiredError}
|
|
4155
3671
|
*/
|
|
4156
|
-
getSkills(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
3672
|
+
getSkills(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Skill>>>;
|
|
4157
3673
|
};
|
|
4158
3674
|
/**
|
|
4159
3675
|
* MetadataApi - factory interface
|
|
@@ -4186,7 +3702,7 @@ export declare const MetadataApiFactory: (configuration?: Configuration, basePat
|
|
|
4186
3702
|
* @param {*} [options] Override http request option.
|
|
4187
3703
|
* @throws {RequiredError}
|
|
4188
3704
|
*/
|
|
4189
|
-
getLlms(options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
3705
|
+
getLlms(options?: RawAxiosRequestConfig): AxiosPromise<Array<LLMModelInfoWithProviderName>>;
|
|
4190
3706
|
/**
|
|
4191
3707
|
* Returns a list of all metadata tags configured in the system.
|
|
4192
3708
|
* @summary Get metadata tags
|
|
@@ -4218,7 +3734,7 @@ export declare const MetadataApiFactory: (configuration?: Configuration, basePat
|
|
|
4218
3734
|
* @param {*} [options] Override http request option.
|
|
4219
3735
|
* @throws {RequiredError}
|
|
4220
3736
|
*/
|
|
4221
|
-
getSkills(options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
3737
|
+
getSkills(options?: RawAxiosRequestConfig): AxiosPromise<Array<Skill>>;
|
|
4222
3738
|
};
|
|
4223
3739
|
/**
|
|
4224
3740
|
* MetadataApi - object-oriented interface
|
|
@@ -4251,7 +3767,7 @@ export declare class MetadataApi extends BaseAPI {
|
|
|
4251
3767
|
* @param {*} [options] Override http request option.
|
|
4252
3768
|
* @throws {RequiredError}
|
|
4253
3769
|
*/
|
|
4254
|
-
getLlms(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
3770
|
+
getLlms(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LLMModelInfoWithProviderName[], any, {}>>;
|
|
4255
3771
|
/**
|
|
4256
3772
|
* Returns a list of all metadata tags configured in the system.
|
|
4257
3773
|
* @summary Get metadata tags
|
|
@@ -4283,7 +3799,7 @@ export declare class MetadataApi extends BaseAPI {
|
|
|
4283
3799
|
* @param {*} [options] Override http request option.
|
|
4284
3800
|
* @throws {RequiredError}
|
|
4285
3801
|
*/
|
|
4286
|
-
getSkills(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
3802
|
+
getSkills(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Skill[], any, {}>>;
|
|
4287
3803
|
}
|
|
4288
3804
|
/**
|
|
4289
3805
|
* OAuthApi - axios parameter creator
|