@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.
Files changed (76) hide show
  1. package/.openapi-generator/FILES +7 -51
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +9 -53
  4. package/api.ts +19 -511
  5. package/base.ts +1 -1
  6. package/common.ts +2 -2
  7. package/configuration.ts +25 -2
  8. package/dist/api.d.ts +22 -506
  9. package/dist/api.js +1 -1
  10. package/dist/base.d.ts +1 -1
  11. package/dist/base.js +1 -1
  12. package/dist/common.d.ts +1 -1
  13. package/dist/common.js +1 -1
  14. package/dist/configuration.d.ts +25 -1
  15. package/dist/configuration.js +2 -2
  16. package/dist/index.d.ts +1 -1
  17. package/dist/index.js +1 -1
  18. package/docs/AgentAssetsResponse.md +1 -1
  19. package/docs/{AssetOutput.md → Asset.md} +3 -3
  20. package/docs/CreditApi.md +2 -2
  21. package/docs/{CreditEventOutput.md → CreditEvent.md} +3 -3
  22. package/docs/{CreditEventWithAgentOutput.md → CreditEventWithAgent.md} +3 -3
  23. package/docs/CreditEventsResponse.md +1 -1
  24. package/docs/{CreditTransactionRespOutput.md → CreditTransactionResp.md} +4 -4
  25. package/docs/CreditTransactionsResponse.md +1 -1
  26. package/docs/{LLMModelInfoWithProviderNameOutput.md → LLMModelInfoWithProviderName.md} +5 -5
  27. package/docs/MetadataApi.md +4 -4
  28. package/docs/{SkillOutput.md → Skill.md} +3 -3
  29. package/docs/{TopupRecordOutput.md → TopupRecord.md} +3 -3
  30. package/docs/TopupRecordsResponse.md +1 -1
  31. package/index.ts +1 -1
  32. package/package.json +1 -1
  33. package/docs/Amount.md +0 -19
  34. package/docs/AssetInput.md +0 -23
  35. package/docs/Balance.md +0 -19
  36. package/docs/BalanceAfter.md +0 -19
  37. package/docs/BaseAmount.md +0 -19
  38. package/docs/BaseDiscountAmount.md +0 -19
  39. package/docs/BaseFreeAmount.md +0 -19
  40. package/docs/BaseLlmAmount.md +0 -19
  41. package/docs/BaseOriginalAmount.md +0 -19
  42. package/docs/BasePermanentAmount.md +0 -19
  43. package/docs/BaseRewardAmount.md +0 -19
  44. package/docs/BaseSkillAmount.md +0 -19
  45. package/docs/ChangeAmount.md +0 -19
  46. package/docs/CreditAmount.md +0 -19
  47. package/docs/CreditEventInput.md +0 -109
  48. package/docs/CreditEventWithAgentInput.md +0 -111
  49. package/docs/CreditTransactionRespInput.md +0 -43
  50. package/docs/FeeAgentAmount.md +0 -19
  51. package/docs/FeeAgentFreeAmount.md +0 -19
  52. package/docs/FeeAgentPermanentAmount.md +0 -19
  53. package/docs/FeeAgentRewardAmount.md +0 -19
  54. package/docs/FeeDevAmount.md +0 -19
  55. package/docs/FeeDevFreeAmount.md +0 -19
  56. package/docs/FeeDevPermanentAmount.md +0 -19
  57. package/docs/FeeDevRewardAmount.md +0 -19
  58. package/docs/FeePlatformAmount.md +0 -19
  59. package/docs/FeePlatformFreeAmount.md +0 -19
  60. package/docs/FeePlatformPermanentAmount.md +0 -19
  61. package/docs/FeePlatformRewardAmount.md +0 -19
  62. package/docs/FreeAmount.md +0 -19
  63. package/docs/FreeAmount1.md +0 -19
  64. package/docs/InputPrice.md +0 -18
  65. package/docs/LLMModelInfoWithProviderNameInput.md +0 -67
  66. package/docs/OutputPrice.md +0 -18
  67. package/docs/PermanentAmount.md +0 -19
  68. package/docs/PermanentAmount1.md +0 -19
  69. package/docs/Price.md +0 -19
  70. package/docs/PriceSelfKey.md +0 -19
  71. package/docs/RewardAmount.md +0 -19
  72. package/docs/RewardAmount1.md +0 -19
  73. package/docs/SkillInput.md +0 -43
  74. package/docs/TokenAmount.md +0 -19
  75. package/docs/TopupRecordInput.md +0 -49
  76. package/docs/TotalAmount.md +0 -19
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.33
7
+ * The version of the OpenAPI document: 0.8.35
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -154,7 +154,7 @@ export interface AgentAssetsResponse {
154
154
  /**
155
155
  * List of assets with symbol and balance
156
156
  */
157
- 'assets': Array<AssetOutput>;
157
+ 'assets': Array<Asset>;
158
158
  /**
159
159
  * Credit account information
160
160
  */
@@ -743,11 +743,6 @@ export const AgentUserInputShortTermMemoryStrategyEnum = {
743
743
 
744
744
  export type AgentUserInputShortTermMemoryStrategyEnum = typeof AgentUserInputShortTermMemoryStrategyEnum[keyof typeof AgentUserInputShortTermMemoryStrategyEnum];
745
745
 
746
- /**
747
- * Token amount in raw units
748
- */
749
- export interface Amount {
750
- }
751
746
  /**
752
747
  * Response model for chat messages with pagination.
753
748
  */
@@ -759,17 +754,7 @@ export interface AppManagerRouterChatMessagesResponse {
759
754
  /**
760
755
  * Model for individual asset with symbol and balance.
761
756
  */
762
- export interface AssetInput {
763
- /**
764
- * Asset symbol (e.g., ETH, USDC, NATION)
765
- */
766
- 'symbol': string;
767
- 'balance': Balance;
768
- }
769
- /**
770
- * Model for individual asset with symbol and balance.
771
- */
772
- export interface AssetOutput {
757
+ export interface Asset {
773
758
  /**
774
759
  * Asset symbol (e.g., ETH, USDC, NATION)
775
760
  */
@@ -799,61 +784,6 @@ export const AuthorType = {
799
784
  export type AuthorType = typeof AuthorType[keyof typeof AuthorType];
800
785
 
801
786
 
802
- /**
803
- * Asset balance as decimal
804
- */
805
- export interface Balance {
806
- }
807
- /**
808
- * Account total balance after the transaction
809
- */
810
- export interface BalanceAfter {
811
- }
812
- /**
813
- * Base amount of credits involved
814
- */
815
- export interface BaseAmount {
816
- }
817
- /**
818
- * Base discount amount
819
- */
820
- export interface BaseDiscountAmount {
821
- }
822
- /**
823
- * Base free credit amount
824
- */
825
- export interface BaseFreeAmount {
826
- }
827
- /**
828
- * Base LLM cost amount
829
- */
830
- export interface BaseLlmAmount {
831
- }
832
- /**
833
- * Base original amount
834
- */
835
- export interface BaseOriginalAmount {
836
- }
837
- /**
838
- * Base permanent credit amount
839
- */
840
- export interface BasePermanentAmount {
841
- }
842
- /**
843
- * Base reward credit amount
844
- */
845
- export interface BaseRewardAmount {
846
- }
847
- /**
848
- * Base skill cost amount
849
- */
850
- export interface BaseSkillAmount {
851
- }
852
- /**
853
- * Amount of credits changed
854
- */
855
- export interface ChangeAmount {
856
- }
857
787
  /**
858
788
  * Chat model with all fields including server-generated ones.
859
789
  */
@@ -1095,11 +1025,6 @@ export interface CreditAccount {
1095
1025
  }
1096
1026
 
1097
1027
 
1098
- /**
1099
- * Credits applied after conversion
1100
- */
1101
- export interface CreditAmount {
1102
- }
1103
1028
  /**
1104
1029
  * Credit or debit transaction.
1105
1030
  */
@@ -1115,83 +1040,7 @@ export type CreditDebit = typeof CreditDebit[keyof typeof CreditDebit];
1115
1040
  /**
1116
1041
  * Credit event model with all fields.
1117
1042
  */
1118
- export interface CreditEventInput {
1119
- /**
1120
- * Unique identifier for the credit event
1121
- */
1122
- 'id'?: string;
1123
- /**
1124
- * Account ID from which credits flow
1125
- */
1126
- 'account_id'?: string;
1127
- /**
1128
- * Type of the event
1129
- */
1130
- 'event_type': EventType;
1131
- 'user_id'?: string | null;
1132
- /**
1133
- * Type of upstream transaction
1134
- */
1135
- 'upstream_type': UpstreamType;
1136
- /**
1137
- * Upstream transaction ID if any
1138
- */
1139
- 'upstream_tx_id': string;
1140
- 'agent_id'?: string | null;
1141
- 'agent_wallet_address'?: string | null;
1142
- 'start_message_id'?: string | null;
1143
- 'message_id'?: string | null;
1144
- 'model'?: string | null;
1145
- 'skill_call_id'?: string | null;
1146
- 'skill_name'?: string | null;
1147
- /**
1148
- * Direction of the credit flow
1149
- */
1150
- 'direction': Direction;
1151
- 'total_amount'?: TotalAmount;
1152
- /**
1153
- * Type of credits involved
1154
- */
1155
- 'credit_type': CreditType;
1156
- 'credit_types'?: Array<CreditType> | null;
1157
- 'balance_after'?: BalanceAfter | null;
1158
- 'base_amount'?: BaseAmount;
1159
- 'base_discount_amount'?: BaseDiscountAmount | null;
1160
- 'base_original_amount'?: BaseOriginalAmount | null;
1161
- 'base_llm_amount'?: BaseLlmAmount | null;
1162
- 'base_skill_amount'?: BaseSkillAmount | null;
1163
- 'base_free_amount'?: BaseFreeAmount | null;
1164
- 'base_reward_amount'?: BaseRewardAmount | null;
1165
- 'base_permanent_amount'?: BasePermanentAmount | null;
1166
- 'fee_platform_amount'?: FeePlatformAmount | null;
1167
- 'fee_platform_free_amount'?: FeePlatformFreeAmount | null;
1168
- 'fee_platform_reward_amount'?: FeePlatformRewardAmount | null;
1169
- 'fee_platform_permanent_amount'?: FeePlatformPermanentAmount | null;
1170
- 'fee_dev_account'?: string | null;
1171
- 'fee_dev_amount'?: FeeDevAmount | null;
1172
- 'fee_dev_free_amount'?: FeeDevFreeAmount | null;
1173
- 'fee_dev_reward_amount'?: FeeDevRewardAmount | null;
1174
- 'fee_dev_permanent_amount'?: FeeDevPermanentAmount | null;
1175
- 'fee_agent_account'?: string | null;
1176
- 'fee_agent_amount'?: FeeAgentAmount | null;
1177
- 'fee_agent_free_amount'?: FeeAgentFreeAmount | null;
1178
- 'fee_agent_reward_amount'?: FeeAgentRewardAmount | null;
1179
- 'fee_agent_permanent_amount'?: FeeAgentPermanentAmount | null;
1180
- 'free_amount'?: FreeAmount | null;
1181
- 'reward_amount'?: RewardAmount | null;
1182
- 'permanent_amount'?: PermanentAmount | null;
1183
- 'note'?: string | null;
1184
- /**
1185
- * Timestamp when this event was created
1186
- */
1187
- 'created_at': string;
1188
- }
1189
-
1190
-
1191
- /**
1192
- * Credit event model with all fields.
1193
- */
1194
- export interface CreditEventOutput {
1043
+ export interface CreditEvent {
1195
1044
  /**
1196
1045
  * Unique identifier for the credit event
1197
1046
  */
@@ -1273,84 +1122,7 @@ export interface CreditEventOutput {
1273
1122
  /**
1274
1123
  * Credit event response model with agent name. Extends CreditEvent to include the agent name for better user experience.
1275
1124
  */
1276
- export interface CreditEventWithAgentInput {
1277
- /**
1278
- * Unique identifier for the credit event
1279
- */
1280
- 'id'?: string;
1281
- /**
1282
- * Account ID from which credits flow
1283
- */
1284
- 'account_id'?: string;
1285
- /**
1286
- * Type of the event
1287
- */
1288
- 'event_type': EventType;
1289
- 'user_id'?: string | null;
1290
- /**
1291
- * Type of upstream transaction
1292
- */
1293
- 'upstream_type': UpstreamType;
1294
- /**
1295
- * Upstream transaction ID if any
1296
- */
1297
- 'upstream_tx_id': string;
1298
- 'agent_id'?: string | null;
1299
- 'agent_wallet_address'?: string | null;
1300
- 'start_message_id'?: string | null;
1301
- 'message_id'?: string | null;
1302
- 'model'?: string | null;
1303
- 'skill_call_id'?: string | null;
1304
- 'skill_name'?: string | null;
1305
- /**
1306
- * Direction of the credit flow
1307
- */
1308
- 'direction': Direction;
1309
- 'total_amount'?: TotalAmount;
1310
- /**
1311
- * Type of credits involved
1312
- */
1313
- 'credit_type': CreditType;
1314
- 'credit_types'?: Array<CreditType> | null;
1315
- 'balance_after'?: BalanceAfter | null;
1316
- 'base_amount'?: BaseAmount;
1317
- 'base_discount_amount'?: BaseDiscountAmount | null;
1318
- 'base_original_amount'?: BaseOriginalAmount | null;
1319
- 'base_llm_amount'?: BaseLlmAmount | null;
1320
- 'base_skill_amount'?: BaseSkillAmount | null;
1321
- 'base_free_amount'?: BaseFreeAmount | null;
1322
- 'base_reward_amount'?: BaseRewardAmount | null;
1323
- 'base_permanent_amount'?: BasePermanentAmount | null;
1324
- 'fee_platform_amount'?: FeePlatformAmount | null;
1325
- 'fee_platform_free_amount'?: FeePlatformFreeAmount | null;
1326
- 'fee_platform_reward_amount'?: FeePlatformRewardAmount | null;
1327
- 'fee_platform_permanent_amount'?: FeePlatformPermanentAmount | null;
1328
- 'fee_dev_account'?: string | null;
1329
- 'fee_dev_amount'?: FeeDevAmount | null;
1330
- 'fee_dev_free_amount'?: FeeDevFreeAmount | null;
1331
- 'fee_dev_reward_amount'?: FeeDevRewardAmount | null;
1332
- 'fee_dev_permanent_amount'?: FeeDevPermanentAmount | null;
1333
- 'fee_agent_account'?: string | null;
1334
- 'fee_agent_amount'?: FeeAgentAmount | null;
1335
- 'fee_agent_free_amount'?: FeeAgentFreeAmount | null;
1336
- 'fee_agent_reward_amount'?: FeeAgentRewardAmount | null;
1337
- 'fee_agent_permanent_amount'?: FeeAgentPermanentAmount | null;
1338
- 'free_amount'?: FreeAmount | null;
1339
- 'reward_amount'?: RewardAmount | null;
1340
- 'permanent_amount'?: PermanentAmount | null;
1341
- 'note'?: string | null;
1342
- /**
1343
- * Timestamp when this event was created
1344
- */
1345
- 'created_at': string;
1346
- 'agent_name'?: string | null;
1347
- }
1348
-
1349
-
1350
- /**
1351
- * Credit event response model with agent name. Extends CreditEvent to include the agent name for better user experience.
1352
- */
1353
- export interface CreditEventWithAgentOutput {
1125
+ export interface CreditEventWithAgent {
1354
1126
  /**
1355
1127
  * Unique identifier for the credit event
1356
1128
  */
@@ -1437,7 +1209,7 @@ export interface CreditEventsResponse {
1437
1209
  /**
1438
1210
  * List of credit events with agent names
1439
1211
  */
1440
- 'data': Array<CreditEventWithAgentOutput>;
1212
+ 'data': Array<CreditEventWithAgent>;
1441
1213
  /**
1442
1214
  * Indicates if there are more items
1443
1215
  */
@@ -1447,47 +1219,7 @@ export interface CreditEventsResponse {
1447
1219
  /**
1448
1220
  * Credit transaction response model with associated event data. Extends CreditTransaction to include the related CreditEvent if available.
1449
1221
  */
1450
- export interface CreditTransactionRespInput {
1451
- /**
1452
- * Unique identifier for the credit transaction
1453
- */
1454
- 'id'?: string;
1455
- /**
1456
- * ID of the account this transaction belongs to
1457
- */
1458
- 'account_id': string;
1459
- /**
1460
- * ID of the event that triggered this transaction
1461
- */
1462
- 'event_id': string;
1463
- /**
1464
- * Type of the transaction
1465
- */
1466
- 'tx_type': TransactionType;
1467
- /**
1468
- * Whether this is a credit or debit transaction
1469
- */
1470
- 'credit_debit': CreditDebit;
1471
- 'change_amount'?: ChangeAmount;
1472
- 'free_amount'?: FreeAmount1;
1473
- 'reward_amount'?: RewardAmount1;
1474
- 'permanent_amount'?: PermanentAmount1;
1475
- /**
1476
- * Type of credits involved
1477
- */
1478
- 'credit_type': CreditType;
1479
- /**
1480
- * Timestamp when this transaction was created
1481
- */
1482
- 'created_at': string;
1483
- 'event'?: CreditEventInput | null;
1484
- }
1485
-
1486
-
1487
- /**
1488
- * Credit transaction response model with associated event data. Extends CreditTransaction to include the related CreditEvent if available.
1489
- */
1490
- export interface CreditTransactionRespOutput {
1222
+ export interface CreditTransactionResp {
1491
1223
  /**
1492
1224
  * Unique identifier for the credit transaction
1493
1225
  */
@@ -1532,7 +1264,7 @@ export interface CreditTransactionRespOutput {
1532
1264
  * Timestamp when this transaction was created
1533
1265
  */
1534
1266
  'created_at': string;
1535
- 'event'?: CreditEventOutput | null;
1267
+ 'event'?: CreditEvent | null;
1536
1268
  }
1537
1269
 
1538
1270
 
@@ -1543,7 +1275,7 @@ export interface CreditTransactionsResponse {
1543
1275
  /**
1544
1276
  * List of credit transactions
1545
1277
  */
1546
- 'data': Array<CreditTransactionRespOutput>;
1278
+ 'data': Array<CreditTransactionResp>;
1547
1279
  /**
1548
1280
  * Indicates if there are more items
1549
1281
  */
@@ -1598,71 +1330,11 @@ export const EventType = {
1598
1330
  export type EventType = typeof EventType[keyof typeof EventType];
1599
1331
 
1600
1332
 
1601
- /**
1602
- * Agent fee amount
1603
- */
1604
- export interface FeeAgentAmount {
1605
- }
1606
- /**
1607
- * Agent fee amount from free credits
1608
- */
1609
- export interface FeeAgentFreeAmount {
1610
- }
1611
- /**
1612
- * Agent fee amount from permanent credits
1613
- */
1614
- export interface FeeAgentPermanentAmount {
1615
- }
1616
- /**
1617
- * Agent fee amount from reward credits
1618
- */
1619
- export interface FeeAgentRewardAmount {
1620
- }
1621
- /**
1622
- * Developer fee amount
1623
- */
1624
- export interface FeeDevAmount {
1625
- }
1626
- /**
1627
- * Developer fee amount from free credits
1628
- */
1629
- export interface FeeDevFreeAmount {
1630
- }
1631
- /**
1632
- * Developer fee amount from permanent credits
1633
- */
1634
- export interface FeeDevPermanentAmount {
1635
- }
1636
- /**
1637
- * Developer fee amount from reward credits
1638
- */
1639
- export interface FeeDevRewardAmount {
1640
- }
1641
1333
  /**
1642
1334
  * Fee percentage of the agent
1643
1335
  */
1644
1336
  export interface FeePercentage {
1645
1337
  }
1646
- /**
1647
- * Platform fee amount
1648
- */
1649
- export interface FeePlatformAmount {
1650
- }
1651
- /**
1652
- * Platform fee amount from free credits
1653
- */
1654
- export interface FeePlatformFreeAmount {
1655
- }
1656
- /**
1657
- * Platform fee amount from permanent credits
1658
- */
1659
- export interface FeePlatformPermanentAmount {
1660
- }
1661
- /**
1662
- * Platform fee amount from reward credits
1663
- */
1664
- export interface FeePlatformRewardAmount {
1665
- }
1666
1338
  /**
1667
1339
  * Response model for file upload.
1668
1340
  */
@@ -1676,16 +1348,6 @@ export interface FileUploadResponse {
1676
1348
  */
1677
1349
  'file_id': string;
1678
1350
  }
1679
- /**
1680
- * Free credit amount involved
1681
- */
1682
- export interface FreeAmount {
1683
- }
1684
- /**
1685
- * Amount of free credits changed
1686
- */
1687
- export interface FreeAmount1 {
1688
- }
1689
1351
  /**
1690
1352
  * Response model for single generation detail.
1691
1353
  */
@@ -1720,49 +1382,10 @@ export interface GenerationsListResponse {
1720
1382
  export interface HTTPValidationError {
1721
1383
  'detail'?: Array<ValidationError>;
1722
1384
  }
1723
- export interface InputPrice {
1724
- }
1725
- /**
1726
- * LLM model information with provider display name.
1727
- */
1728
- export interface LLMModelInfoWithProviderNameInput {
1729
- 'id': string;
1730
- 'name': string;
1731
- 'provider': LLMProvider;
1732
- 'enabled'?: boolean;
1733
- 'input_price': InputPrice;
1734
- 'output_price': OutputPrice;
1735
- 'price_level'?: number | null;
1736
- 'context_length': number;
1737
- 'output_length': number;
1738
- 'intelligence': number;
1739
- 'speed': number;
1740
- 'supports_image_input'?: boolean;
1741
- 'supports_skill_calls'?: boolean;
1742
- 'supports_structured_output'?: boolean;
1743
- 'has_reasoning'?: boolean;
1744
- 'supports_search'?: boolean;
1745
- 'supports_temperature'?: boolean;
1746
- 'supports_frequency_penalty'?: boolean;
1747
- 'supports_presence_penalty'?: boolean;
1748
- 'api_base'?: string | null;
1749
- 'timeout'?: number;
1750
- /**
1751
- * Timestamp when this data was created
1752
- */
1753
- 'created_at'?: string;
1754
- /**
1755
- * Timestamp when this data was updated
1756
- */
1757
- 'updated_at'?: string;
1758
- 'provider_name': string;
1759
- }
1760
-
1761
-
1762
1385
  /**
1763
1386
  * LLM model information with provider display name.
1764
1387
  */
1765
- export interface LLMModelInfoWithProviderNameOutput {
1388
+ export interface LLMModelInfoWithProviderName {
1766
1389
  'id': string;
1767
1390
  'name': string;
1768
1391
  'provider': LLMProvider;
@@ -1821,8 +1444,6 @@ export interface ManagerMessageRequest {
1821
1444
  'stream'?: boolean | null;
1822
1445
  'attachments'?: Array<ChatMessageAttachment> | null;
1823
1446
  }
1824
- export interface OutputPrice {
1825
- }
1826
1447
  /**
1827
1448
  * Type of credit account owner.
1828
1449
  */
@@ -1836,72 +1457,10 @@ export const OwnerType = {
1836
1457
  export type OwnerType = typeof OwnerType[keyof typeof OwnerType];
1837
1458
 
1838
1459
 
1839
- /**
1840
- * Permanent credit amount involved
1841
- */
1842
- export interface PermanentAmount {
1843
- }
1844
- /**
1845
- * Amount of permanent credits changed
1846
- */
1847
- export interface PermanentAmount1 {
1848
- }
1849
- /**
1850
- * Price for this skill
1851
- */
1852
- export interface Price {
1853
- }
1854
- /**
1855
- * Price for this skill with self key
1856
- */
1857
- export interface PriceSelfKey {
1858
- }
1859
- /**
1860
- * Reward credit amount involved
1861
- */
1862
- export interface RewardAmount {
1863
- }
1864
- /**
1865
- * Amount of reward credits changed
1866
- */
1867
- export interface RewardAmount1 {
1868
- }
1869
- /**
1870
- * Pydantic model for Skill.
1871
- */
1872
- export interface SkillInput {
1873
- /**
1874
- * Name of the skill
1875
- */
1876
- 'name': string;
1877
- /**
1878
- * Is this skill enabled?
1879
- */
1880
- 'enabled': boolean;
1881
- /**
1882
- * Category of the skill
1883
- */
1884
- 'category': string;
1885
- 'config_name': string | null;
1886
- 'price_level': number | null;
1887
- 'price'?: Price;
1888
- 'price_self_key'?: PriceSelfKey;
1889
- 'rate_limit_count': number | null;
1890
- 'rate_limit_minutes': number | null;
1891
- 'author': string | null;
1892
- /**
1893
- * Timestamp when this record was created
1894
- */
1895
- 'created_at': string;
1896
- /**
1897
- * Timestamp when this record was last updated
1898
- */
1899
- 'updated_at': string;
1900
- }
1901
1460
  /**
1902
1461
  * Pydantic model for Skill.
1903
1462
  */
1904
- export interface SkillOutput {
1463
+ export interface Skill {
1905
1464
  /**
1906
1465
  * Name of the skill
1907
1466
  */
@@ -1965,56 +1524,10 @@ export interface Tag {
1965
1524
  'created_at'?: string | null;
1966
1525
  'category'?: string | null;
1967
1526
  }
1968
- /**
1969
- * Token amount converted to token units
1970
- */
1971
- export interface TokenAmount {
1972
- }
1973
1527
  /**
1974
1528
  * Top-up record fetched from Supabase.
1975
1529
  */
1976
- export interface TopupRecordInput {
1977
- /**
1978
- * Transaction hash of the top-up
1979
- */
1980
- 'tx_hash': string;
1981
- /**
1982
- * Log index within the transaction
1983
- */
1984
- 'log_index': number;
1985
- /**
1986
- * Blockchain network identifier
1987
- */
1988
- 'chain_id': number;
1989
- /**
1990
- * Block number containing the top-up
1991
- */
1992
- 'block_number': number;
1993
- 'block_time'?: string | null;
1994
- /**
1995
- * Address that initiated the top-up
1996
- */
1997
- 'payer_address': string;
1998
- /**
1999
- * Beneficiary address for the top-up
2000
- */
2001
- 'to_address': string;
2002
- /**
2003
- * Token contract used for the top-up
2004
- */
2005
- 'token_address': string;
2006
- 'amount': Amount;
2007
- 'token_amount'?: TokenAmount | null;
2008
- 'contract_address'?: string | null;
2009
- 'inserted_at'?: string | null;
2010
- 'credit_event_id'?: string | null;
2011
- 'credit_event_at'?: string | null;
2012
- 'credit_amount'?: CreditAmount | null;
2013
- }
2014
- /**
2015
- * Top-up record fetched from Supabase.
2016
- */
2017
- export interface TopupRecordOutput {
1530
+ export interface TopupRecord {
2018
1531
  /**
2019
1532
  * Transaction hash of the top-up
2020
1533
  */
@@ -2062,18 +1575,13 @@ export interface TopupRecordsResponse {
2062
1575
  /**
2063
1576
  * List of top-up records
2064
1577
  */
2065
- 'data': Array<TopupRecordOutput>;
1578
+ 'data': Array<TopupRecord>;
2066
1579
  /**
2067
1580
  * Indicates if there are more records available
2068
1581
  */
2069
1582
  'has_more': boolean;
2070
1583
  'next_cursor'?: string | null;
2071
1584
  }
2072
- /**
2073
- * Total amount (after discount) of credits involved
2074
- */
2075
- export interface TotalAmount {
2076
- }
2077
1585
  /**
2078
1586
  * Type of credit transaction.
2079
1587
  */
@@ -4901,7 +4409,7 @@ export const CreditApiFp = function(configuration?: Configuration) {
4901
4409
  * @param {*} [options] Override http request option.
4902
4410
  * @throws {RequiredError}
4903
4411
  */
4904
- async fetchCreditEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreditEventOutput>> {
4412
+ async fetchCreditEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreditEvent>> {
4905
4413
  const localVarAxiosArgs = await localVarAxiosParamCreator.fetchCreditEvent(eventId, options);
4906
4414
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4907
4415
  const localVarOperationServerBasePath = operationServerMap['CreditApi.fetchCreditEvent']?.[localVarOperationServerIndex]?.url;
@@ -4996,7 +4504,7 @@ export const CreditApiFactory = function (configuration?: Configuration, basePat
4996
4504
  * @param {*} [options] Override http request option.
4997
4505
  * @throws {RequiredError}
4998
4506
  */
4999
- fetchCreditEvent(eventId: string, options?: RawAxiosRequestConfig): AxiosPromise<CreditEventOutput> {
4507
+ fetchCreditEvent(eventId: string, options?: RawAxiosRequestConfig): AxiosPromise<CreditEvent> {
5000
4508
  return localVarFp.fetchCreditEvent(eventId, options).then((request) => request(axios, basePath));
5001
4509
  },
5002
4510
  /**
@@ -6639,7 +6147,7 @@ export const MetadataApiFp = function(configuration?: Configuration) {
6639
6147
  * @param {*} [options] Override http request option.
6640
6148
  * @throws {RequiredError}
6641
6149
  */
6642
- async getLlms(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LLMModelInfoWithProviderNameOutput>>> {
6150
+ async getLlms(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LLMModelInfoWithProviderName>>> {
6643
6151
  const localVarAxiosArgs = await localVarAxiosParamCreator.getLlms(options);
6644
6152
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6645
6153
  const localVarOperationServerBasePath = operationServerMap['MetadataApi.getLlms']?.[localVarOperationServerIndex]?.url;
@@ -6691,7 +6199,7 @@ export const MetadataApiFp = function(configuration?: Configuration) {
6691
6199
  * @param {*} [options] Override http request option.
6692
6200
  * @throws {RequiredError}
6693
6201
  */
6694
- async getSkills(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SkillOutput>>> {
6202
+ async getSkills(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Skill>>> {
6695
6203
  const localVarAxiosArgs = await localVarAxiosParamCreator.getSkills(options);
6696
6204
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6697
6205
  const localVarOperationServerBasePath = operationServerMap['MetadataApi.getSkills']?.[localVarOperationServerIndex]?.url;
@@ -6739,7 +6247,7 @@ export const MetadataApiFactory = function (configuration?: Configuration, baseP
6739
6247
  * @param {*} [options] Override http request option.
6740
6248
  * @throws {RequiredError}
6741
6249
  */
6742
- getLlms(options?: RawAxiosRequestConfig): AxiosPromise<Array<LLMModelInfoWithProviderNameOutput>> {
6250
+ getLlms(options?: RawAxiosRequestConfig): AxiosPromise<Array<LLMModelInfoWithProviderName>> {
6743
6251
  return localVarFp.getLlms(options).then((request) => request(axios, basePath));
6744
6252
  },
6745
6253
  /**
@@ -6779,7 +6287,7 @@ export const MetadataApiFactory = function (configuration?: Configuration, baseP
6779
6287
  * @param {*} [options] Override http request option.
6780
6288
  * @throws {RequiredError}
6781
6289
  */
6782
- getSkills(options?: RawAxiosRequestConfig): AxiosPromise<Array<SkillOutput>> {
6290
+ getSkills(options?: RawAxiosRequestConfig): AxiosPromise<Array<Skill>> {
6783
6291
  return localVarFp.getSkills(options).then((request) => request(axios, basePath));
6784
6292
  },
6785
6293
  };