@odatano/core 2.0.0-rc.5 → 2.0.0-rc.51

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 (239) hide show
  1. package/@cds-models/CardanoAgentService/index.d.ts +99 -51
  2. package/@cds-models/CardanoAgentService/index.js +15 -0
  3. package/@cds-models/CardanoBackendService/index.d.ts +358 -0
  4. package/@cds-models/CardanoBackendService/index.js +41 -0
  5. package/@cds-models/CardanoIndexerService/index.d.ts +594 -11
  6. package/@cds-models/CardanoIndexerService/index.js +74 -0
  7. package/@cds-models/CardanoODataService/index.d.ts +417 -57
  8. package/@cds-models/CardanoODataService/index.js +42 -0
  9. package/@cds-models/CardanoSignService/index.d.ts +45 -19
  10. package/@cds-models/CardanoSignService/index.js +4 -0
  11. package/@cds-models/CardanoTransactionService/index.d.ts +70 -44
  12. package/@cds-models/CardanoTransactionService/index.js +5 -0
  13. package/@cds-models/CardanoWorkerService/index.d.ts +35 -22
  14. package/@cds-models/CardanoWorkerService/index.js +2 -0
  15. package/@cds-models/index.d.ts +114 -4
  16. package/@cds-models/index.js +20 -4
  17. package/@cds-models/odatano/cardano/index.d.ts +451 -32
  18. package/@cds-models/odatano/cardano/index.js +48 -0
  19. package/README.md +103 -167
  20. package/db/schema.cds +2455 -1705
  21. package/db/types.cds +456 -295
  22. package/package.json +41 -53
  23. package/scripts/deploy-schema.mjs +113 -0
  24. package/scripts/migrate-schema.mjs +528 -0
  25. package/scripts/migrate-slot-leader.mjs +96 -0
  26. package/src/index.d.ts +20 -21
  27. package/src/index.js +45 -31
  28. package/src/plugin.js +17 -35
  29. package/srv/blockchain/asset-decimals.d.ts +7 -0
  30. package/srv/blockchain/asset-decimals.js +91 -0
  31. package/srv/blockchain/backends/blockfrost-backend.d.ts +25 -137
  32. package/srv/blockchain/backends/blockfrost-backend.js +125 -215
  33. package/srv/blockchain/backends/call-signal.d.ts +7 -0
  34. package/srv/blockchain/backends/call-signal.js +22 -0
  35. package/srv/blockchain/backends/cardano-backend.d.ts +100 -189
  36. package/srv/blockchain/backends/cardano-backend.js +29 -5
  37. package/srv/blockchain/backends/koios-backend.d.ts +108 -170
  38. package/srv/blockchain/backends/koios-backend.js +488 -482
  39. package/srv/blockchain/backends/odatano-backend.d.ts +55 -0
  40. package/srv/blockchain/backends/odatano-backend.js +211 -0
  41. package/srv/blockchain/backends/ogmios-backend.d.ts +122 -190
  42. package/srv/blockchain/backends/ogmios-backend.js +683 -327
  43. package/srv/blockchain/backends/ogmios-frame-guard.d.ts +14 -0
  44. package/srv/blockchain/backends/ogmios-frame-guard.js +89 -0
  45. package/srv/blockchain/cardano-client.d.ts +71 -241
  46. package/srv/blockchain/cardano-client.js +354 -322
  47. package/srv/blockchain/cardano-indexer.d.ts +295 -283
  48. package/srv/blockchain/cardano-indexer.js +1690 -502
  49. package/srv/blockchain/cardano-tx-builder.d.ts +25 -89
  50. package/srv/blockchain/cardano-tx-builder.js +164 -140
  51. package/srv/blockchain/circuit-breaker.d.ts +2 -13
  52. package/srv/blockchain/circuit-breaker.js +11 -15
  53. package/srv/blockchain/crawler/account-snapshots.d.ts +29 -0
  54. package/srv/blockchain/crawler/account-snapshots.js +173 -0
  55. package/srv/blockchain/crawler/asset-decimals-backfill.d.ts +17 -0
  56. package/srv/blockchain/crawler/asset-decimals-backfill.js +56 -0
  57. package/srv/blockchain/crawler/asset-registry-backfill.d.ts +46 -0
  58. package/srv/blockchain/crawler/asset-registry-backfill.js +157 -0
  59. package/srv/blockchain/crawler/asset-slice-backfill.d.ts +35 -0
  60. package/srv/blockchain/crawler/asset-slice-backfill.js +149 -0
  61. package/srv/blockchain/crawler/certificate-backfill.d.ts +56 -0
  62. package/srv/blockchain/crawler/certificate-backfill.js +174 -0
  63. package/srv/blockchain/crawler/crawler.d.ts +125 -81
  64. package/srv/blockchain/crawler/crawler.js +738 -167
  65. package/srv/blockchain/crawler/credential-backfill.d.ts +30 -0
  66. package/srv/blockchain/crawler/credential-backfill.js +101 -0
  67. package/srv/blockchain/crawler/hooks.d.ts +2 -17
  68. package/srv/blockchain/crawler/index.d.ts +1 -8
  69. package/srv/blockchain/crawler/index.js +31 -17
  70. package/srv/blockchain/crawler/input-asset-copies.d.ts +34 -0
  71. package/srv/blockchain/crawler/input-asset-copies.js +161 -0
  72. package/srv/blockchain/crawler/key-pages.d.ts +12 -0
  73. package/srv/blockchain/crawler/key-pages.js +48 -0
  74. package/srv/blockchain/crawler/metadata-position-backfill.d.ts +22 -0
  75. package/srv/blockchain/crawler/metadata-position-backfill.js +59 -0
  76. package/srv/blockchain/crawler/output-datum-backfill.d.ts +41 -0
  77. package/srv/blockchain/crawler/output-datum-backfill.js +100 -0
  78. package/srv/blockchain/crawler/sync-state.d.ts +31 -47
  79. package/srv/blockchain/crawler/sync-state.js +135 -128
  80. package/srv/blockchain/crawler/transaction-backfill.d.ts +46 -0
  81. package/srv/blockchain/crawler/transaction-backfill.js +271 -0
  82. package/srv/blockchain/crawler/utxo-set-import.d.ts +66 -0
  83. package/srv/blockchain/crawler/utxo-set-import.js +399 -0
  84. package/srv/blockchain/crawler/window-plan.d.ts +31 -0
  85. package/srv/blockchain/crawler/window-plan.js +59 -0
  86. package/srv/blockchain/ledger-state.d.ts +62 -0
  87. package/srv/blockchain/ledger-state.js +521 -0
  88. package/srv/blockchain/pending-spends.d.ts +16 -0
  89. package/srv/blockchain/pending-spends.js +81 -0
  90. package/srv/blockchain/pool-metadata.d.ts +15 -0
  91. package/srv/blockchain/pool-metadata.js +132 -0
  92. package/srv/blockchain/request-coalescer.d.ts +2 -16
  93. package/srv/blockchain/request-coalescer.js +2 -16
  94. package/srv/blockchain/signing/cose-verifier.d.ts +3 -17
  95. package/srv/blockchain/signing/cose-verifier.js +146 -70
  96. package/srv/blockchain/signing/external-signer.d.ts +15 -115
  97. package/srv/blockchain/signing/external-signer.js +22 -131
  98. package/srv/blockchain/signing/failed-recheck.d.ts +17 -0
  99. package/srv/blockchain/signing/failed-recheck.js +135 -0
  100. package/srv/blockchain/signing/hsm-signer.d.ts +10 -54
  101. package/srv/blockchain/signing/hsm-signer.js +28 -79
  102. package/srv/blockchain/signing/landing-proof.d.ts +60 -0
  103. package/srv/blockchain/signing/landing-proof.js +224 -0
  104. package/srv/blockchain/signing/signature-verifier.d.ts +9 -47
  105. package/srv/blockchain/signing/signature-verifier.js +71 -87
  106. package/srv/blockchain/signing/submission-finalizer.d.ts +37 -45
  107. package/srv/blockchain/signing/submission-finalizer.js +280 -86
  108. package/srv/blockchain/stored-chain.d.ts +19 -0
  109. package/srv/blockchain/stored-chain.js +258 -0
  110. package/srv/blockchain/transaction-building/buildooor-tx.d.ts +31 -229
  111. package/srv/blockchain/transaction-building/buildooor-tx.js +663 -421
  112. package/srv/blockchain/transaction-building/cardano-tx.d.ts +9 -37
  113. package/srv/blockchain/transaction-presence.d.ts +12 -0
  114. package/srv/blockchain/transaction-presence.js +29 -0
  115. package/srv/blockchain/transaction-rows.d.ts +12 -0
  116. package/srv/blockchain/transaction-rows.js +44 -0
  117. package/srv/blockchain/wallet-worker/build-request.d.ts +8 -23
  118. package/srv/blockchain/wallet-worker/build-request.js +40 -353
  119. package/srv/blockchain/wallet-worker/confirmation-tracker.d.ts +27 -47
  120. package/srv/blockchain/wallet-worker/confirmation-tracker.js +158 -61
  121. package/srv/blockchain/wallet-worker/index.d.ts +1 -1
  122. package/srv/blockchain/wallet-worker/index.js +3 -11
  123. package/srv/blockchain/wallet-worker/invalidation.d.ts +35 -0
  124. package/srv/blockchain/wallet-worker/invalidation.js +128 -0
  125. package/srv/blockchain/wallet-worker/job-store.d.ts +58 -150
  126. package/srv/blockchain/wallet-worker/job-store.js +200 -273
  127. package/srv/blockchain/wallet-worker/lease-heartbeat.d.ts +2 -26
  128. package/srv/blockchain/wallet-worker/lease-heartbeat.js +6 -28
  129. package/srv/blockchain/wallet-worker/signers.d.ts +5 -24
  130. package/srv/blockchain/wallet-worker/signers.js +4 -12
  131. package/srv/blockchain/wallet-worker/wallet-worker.d.ts +29 -82
  132. package/srv/blockchain/wallet-worker/wallet-worker.js +334 -198
  133. package/srv/cardano-agent-service.cds +122 -84
  134. package/srv/cardano-agent-service.js +12 -9
  135. package/srv/cardano-backend-service.cds +81 -0
  136. package/srv/cardano-backend-service.d.ts +2 -0
  137. package/srv/cardano-backend-service.js +259 -0
  138. package/srv/cardano-indexer-service.cds +393 -18
  139. package/srv/cardano-indexer-service.d.ts +5 -1
  140. package/srv/cardano-indexer-service.js +477 -16
  141. package/srv/cardano-service.cds +426 -269
  142. package/srv/cardano-service.js +640 -217
  143. package/srv/cardano-sign-service.cds +211 -180
  144. package/srv/cardano-sign-service.js +210 -287
  145. package/srv/cardano-tx-service.cds +462 -370
  146. package/srv/cardano-tx-service.js +283 -800
  147. package/srv/cardano-ui.cds +16 -16
  148. package/srv/cardano-worker-service.cds +141 -125
  149. package/srv/cardano-worker-service.js +104 -61
  150. package/srv/cbor/cip68.d.ts +13 -0
  151. package/srv/cbor/cip68.js +56 -0
  152. package/srv/cbor/index.d.ts +3 -1
  153. package/srv/cbor/index.js +9 -1
  154. package/srv/cbor/parse.d.ts +30 -18
  155. package/srv/cbor/parse.js +44 -9
  156. package/srv/cbor/plutus-data-json.d.ts +20 -0
  157. package/srv/cbor/plutus-data-json.js +32 -0
  158. package/srv/config.d.ts +117 -0
  159. package/srv/config.js +419 -0
  160. package/srv/server.d.ts +15 -110
  161. package/srv/server.js +83 -405
  162. package/srv/utils/agent-access.d.ts +11 -0
  163. package/srv/utils/agent-access.js +86 -0
  164. package/srv/utils/agent-grants-config.d.ts +0 -46
  165. package/srv/utils/agent-grants-config.js +17 -85
  166. package/srv/utils/agent-grants.d.ts +106 -122
  167. package/srv/utils/agent-grants.js +538 -237
  168. package/srv/utils/agent-token-auth.d.ts +4 -99
  169. package/srv/utils/agent-token-auth.js +62 -186
  170. package/srv/utils/backend-request-handler.d.ts +3 -17
  171. package/srv/utils/backend-request-handler.js +3 -18
  172. package/srv/utils/build-request.d.ts +52 -0
  173. package/srv/utils/build-request.js +487 -0
  174. package/srv/utils/collections.d.ts +4 -10
  175. package/srv/utils/collections.js +14 -10
  176. package/srv/utils/const.d.ts +32 -75
  177. package/srv/utils/const.js +40 -80
  178. package/srv/utils/crypto.d.ts +3 -12
  179. package/srv/utils/crypto.js +11 -25
  180. package/srv/utils/db-indexes.d.ts +31 -0
  181. package/srv/utils/db-indexes.js +185 -0
  182. package/srv/utils/db-kind.d.ts +23 -0
  183. package/srv/utils/db-kind.js +42 -0
  184. package/srv/utils/db-sanitize.d.ts +20 -0
  185. package/srv/utils/db-sanitize.js +80 -0
  186. package/srv/utils/deep-json.d.ts +6 -0
  187. package/srv/utils/deep-json.js +240 -0
  188. package/srv/utils/detached-run.d.ts +41 -0
  189. package/srv/utils/detached-run.js +101 -0
  190. package/srv/utils/epoch-slots.d.ts +14 -0
  191. package/srv/utils/epoch-slots.js +45 -0
  192. package/srv/utils/error-codes.d.ts +26 -75
  193. package/srv/utils/error-codes.js +27 -72
  194. package/srv/utils/errors.d.ts +55 -187
  195. package/srv/utils/errors.js +161 -235
  196. package/srv/utils/lease.d.ts +20 -0
  197. package/srv/utils/lease.js +62 -0
  198. package/srv/utils/liveness.d.ts +12 -0
  199. package/srv/utils/liveness.js +35 -0
  200. package/srv/utils/mappers.d.ts +111 -223
  201. package/srv/utils/mappers.js +432 -371
  202. package/srv/utils/navigation.d.ts +17 -0
  203. package/srv/utils/navigation.js +52 -0
  204. package/srv/utils/network-context.d.ts +0 -1
  205. package/srv/utils/network-context.js +9 -15
  206. package/srv/utils/paging.d.ts +31 -0
  207. package/srv/utils/paging.js +43 -0
  208. package/srv/utils/pg-inline-json.d.ts +8 -0
  209. package/srv/utils/pg-inline-json.js +58 -0
  210. package/srv/utils/pg-order-nulls.d.ts +14 -0
  211. package/srv/utils/pg-order-nulls.js +54 -0
  212. package/srv/utils/plutus-placeholders.d.ts +16 -22
  213. package/srv/utils/plutus-placeholders.js +62 -33
  214. package/srv/utils/rate-limiter.d.ts +2 -21
  215. package/srv/utils/rate-limiter.js +5 -17
  216. package/srv/utils/readiness.d.ts +12 -0
  217. package/srv/utils/readiness.js +29 -0
  218. package/srv/utils/reference-script.d.ts +19 -0
  219. package/srv/utils/reference-script.js +84 -0
  220. package/srv/utils/resolution.d.ts +13 -0
  221. package/srv/utils/resolution.js +47 -0
  222. package/srv/utils/result-numbers.d.ts +15 -0
  223. package/srv/utils/result-numbers.js +61 -0
  224. package/srv/utils/row-values.d.ts +7 -0
  225. package/srv/utils/row-values.js +27 -0
  226. package/srv/utils/service-events.d.ts +0 -24
  227. package/srv/utils/service-events.js +3 -25
  228. package/srv/utils/signing-helper.d.ts +3 -20
  229. package/srv/utils/signing-helper.js +35 -64
  230. package/srv/utils/tx-build-helper.d.ts +25 -105
  231. package/srv/utils/tx-build-helper.js +108 -156
  232. package/srv/utils/tx-request-parsers.d.ts +82 -33
  233. package/srv/utils/tx-request-parsers.js +401 -49
  234. package/srv/utils/tx-utils.d.ts +3 -27
  235. package/srv/utils/tx-utils.js +32 -50
  236. package/srv/utils/types.d.ts +294 -232
  237. package/srv/utils/types.js +2 -22
  238. package/srv/utils/validators.d.ts +22 -92
  239. package/srv/utils/validators.js +60 -170
@@ -32,7 +32,7 @@ export class NetworkInformation_ extends Array<NetworkInformation> {
32
32
  export declare function _BlockAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
33
33
  new (...args: any[]): {
34
34
  hash?: __.Key<string>
35
- time?: string | null
35
+ time?: __.CdsTimestamp | null
36
36
  height?: number | null
37
37
  slotLeader?: string | null
38
38
  epochNumber?: number | null
@@ -42,6 +42,8 @@ export declare function _BlockAspect<TBase extends new (...args: any[]) => objec
42
42
  size?: number | null
43
43
  txCount?: number | null
44
44
  fees?: _.Lovelace | null
45
+ previousHash?: string | null
46
+ withdrawalsReported?: boolean | null
45
47
  } & InstanceType<TBase>
46
48
  readonly kind: 'entity';
47
49
  readonly keys: __.KeysOf<Block>;
@@ -67,6 +69,7 @@ export declare function _EpochAspect<TBase extends new (...args: any[]) => objec
67
69
  output?: string | null
68
70
  fees?: _.Lovelace | null
69
71
  activeStake?: _.Lovelace | null
72
+ final?: boolean | null
70
73
  } & InstanceType<TBase>
71
74
  readonly kind: 'entity';
72
75
  readonly keys: __.KeysOf<Epoch>;
@@ -98,6 +101,12 @@ export declare function _PoolAspect<TBase extends new (...args: any[]) => object
98
101
  margin?: (number | string) | null
99
102
  fixedCost?: _.Lovelace | null
100
103
  rewardAccount?: string | null
104
+ metadataUrl?: string | null
105
+ metadataHash?: _.Blake2b256 | null
106
+ name?: string | null
107
+ ticker?: string | null
108
+ homepage?: string | null
109
+ description?: string | null
101
110
  } & InstanceType<ReturnType<typeof _._temporalAspect<TBase>>>
102
111
  readonly kind: 'entity';
103
112
  readonly keys: __.KeysOf<Pool>;
@@ -110,6 +119,120 @@ export class Pools extends Array<Pool> {
110
119
  $count?: number
111
120
  }
112
121
 
122
+ // entity 'PoolEpochSnapshot'
123
+ export declare function _PoolEpochSnapshotAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
124
+ new (...args: any[]): {
125
+ poolId?: __.Key<_.Bech32>
126
+ epoch?: __.Key<number>
127
+ snapshotSlot?: number | null
128
+ snapshotTime?: number | null
129
+ snapshotHash?: _.Blake2b256 | null
130
+ source?: string | null
131
+ blocksMinted?: number | null
132
+ blocksEpoch?: number | null
133
+ liveStake?: _.Lovelace | null
134
+ liveSize?: (number | string) | null
135
+ liveSaturation?: (number | string) | null
136
+ liveDelegators?: number | null
137
+ activeStake?: _.Lovelace | null
138
+ activeSize?: (number | string) | null
139
+ pledge?: _.Lovelace | null
140
+ margin?: (number | string) | null
141
+ fixedCost?: _.Lovelace | null
142
+ } & InstanceType<TBase>
143
+ readonly kind: 'entity';
144
+ readonly keys: __.KeysOf<PoolEpochSnapshot>;
145
+ readonly elements: __.ElementsOf<PoolEpochSnapshot>;
146
+ readonly actions: globalThis.Record<never, never>;
147
+ };
148
+ export class PoolEpochSnapshot extends _PoolEpochSnapshotAspect(__.Entity) {
149
+ }
150
+ export class PoolEpochSnapshots extends Array<PoolEpochSnapshot> {
151
+ $count?: number
152
+ }
153
+
154
+ // entity 'DrepEpochSnapshot'
155
+ export declare function _DrepEpochSnapshotAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
156
+ new (...args: any[]): {
157
+ drepId?: __.Key<_.Bech32>
158
+ epoch?: __.Key<number>
159
+ snapshotSlot?: number | null
160
+ snapshotTime?: number | null
161
+ snapshotHash?: _.Blake2b256 | null
162
+ source?: string | null
163
+ deposit?: _.Lovelace | null
164
+ expiresEpoch?: number | null
165
+ delegatorCount?: number | null
166
+ amount?: _.Lovelace | null
167
+ hasScript?: boolean | null
168
+ lastActiveEpoch?: number | null
169
+ retired?: boolean | null
170
+ expired?: boolean | null
171
+ } & InstanceType<TBase>
172
+ readonly kind: 'entity';
173
+ readonly keys: __.KeysOf<DrepEpochSnapshot>;
174
+ readonly elements: __.ElementsOf<DrepEpochSnapshot>;
175
+ readonly actions: globalThis.Record<never, never>;
176
+ };
177
+ export class DrepEpochSnapshot extends _DrepEpochSnapshotAspect(__.Entity) {
178
+ }
179
+ export class DrepEpochSnapshots extends Array<DrepEpochSnapshot> {
180
+ $count?: number
181
+ }
182
+
183
+ // entity 'EpochLedgerSnapshot'
184
+ export declare function _EpochLedgerSnapshotAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
185
+ new (...args: any[]): {
186
+ epoch?: __.Key<number>
187
+ snapshotSlot?: number | null
188
+ snapshotTime?: number | null
189
+ snapshotHash?: _.Blake2b256 | null
190
+ source?: string | null
191
+ treasury?: _.Lovelace | null
192
+ reserves?: _.Lovelace | null
193
+ totalSupply?: _.Lovelace | null
194
+ liveStake?: _.Lovelace | null
195
+ activeStake?: _.Lovelace | null
196
+ poolCount?: number | null
197
+ drepCount?: number | null
198
+ drepAbstainStake?: _.Lovelace | null
199
+ drepNoConfidenceStake?: _.Lovelace | null
200
+ accountCount?: number | null
201
+ accountSnapshotSlot?: number | null
202
+ } & InstanceType<TBase>
203
+ readonly kind: 'entity';
204
+ readonly keys: __.KeysOf<EpochLedgerSnapshot>;
205
+ readonly elements: __.ElementsOf<EpochLedgerSnapshot>;
206
+ readonly actions: globalThis.Record<never, never>;
207
+ };
208
+ export class EpochLedgerSnapshot extends _EpochLedgerSnapshotAspect(__.Entity) {
209
+ }
210
+ export class EpochLedgerSnapshots extends Array<EpochLedgerSnapshot> {
211
+ $count?: number
212
+ }
213
+
214
+ // entity 'AccountEpochSnapshot'
215
+ export declare function _AccountEpochSnapshotAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
216
+ new (...args: any[]): {
217
+ stakeAddress?: __.Key<_.Bech32>
218
+ epoch?: __.Key<number>
219
+ withdrawableAmount?: _.Lovelace | null
220
+ creditedAmount?: _.Lovelace | null
221
+ deposit?: _.Lovelace | null
222
+ poolId?: _.Bech32 | null
223
+ drepId?: _.Bech32 | null
224
+ } & InstanceType<TBase>
225
+ readonly kind: 'entity';
226
+ readonly keys: __.KeysOf<AccountEpochSnapshot>;
227
+ readonly elements: __.ElementsOf<AccountEpochSnapshot>;
228
+ readonly actions: globalThis.Record<never, never>;
229
+ };
230
+ export class AccountEpochSnapshot extends _AccountEpochSnapshotAspect(__.Entity) {
231
+ }
232
+ export class AccountEpochSnapshots extends Array<AccountEpochSnapshot> {
233
+ $count?: number
234
+ }
235
+
113
236
  // entity 'Asset'
114
237
  export declare function _AssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
115
238
  new (...args: any[]): {
@@ -128,9 +251,11 @@ export declare function _AssetAspect<TBase extends new (...args: any[]) => objec
128
251
  registryName?: string | null
129
252
  registryTicker?: string | null
130
253
  registryDecimals?: number | null
254
+ decimals?: number | null
131
255
  registryDescription?: string | null
132
256
  registryUrl?: string | null
133
257
  registryLogo?: string | null
258
+ firstSeenSlot?: number | null
134
259
  } & InstanceType<ReturnType<typeof _._temporalAspect<TBase>>>
135
260
  readonly kind: 'entity';
136
261
  readonly keys: __.KeysOf<Asset>;
@@ -225,7 +350,7 @@ export declare function _AddressAssetAspect<TBase extends new (...args: any[]) =
225
350
  address?: __.Key<__.Association.to<Address>>
226
351
  address_address?: __.Key<_.Bech32>
227
352
  unit?: __.Key<_.AssetUnit>
228
- asset_quantity?: _.Lovelace | null
353
+ asset_quantity?: _.AssetAmount | null
229
354
  asset_policyId?: _.Blake2b224 | null
230
355
  asset_assetNameHex?: _.HexBytes | null
231
356
  asset_assetName?: string | null
@@ -255,6 +380,9 @@ export declare function _AddressUTxOAspect<TBase extends new (...args: any[]) =>
255
380
  utxodata_dataHash?: _.Blake2b256 | null
256
381
  utxodata_inlineDatum?: string | null
257
382
  utxodata_referenceScriptHash?: _.Blake2b256 | null
383
+ utxodata_referenceScriptSize?: number | null
384
+ utxodata_referenceScriptType?: string | null
385
+ utxodata_paymentCredential?: string | null
258
386
  lovelace?: _.Lovelace | null
259
387
  assets?: __.Composition.of.many<UTxOAssets>
260
388
  hasAssets?: boolean | null
@@ -317,6 +445,8 @@ export declare function _AccountAspect<TBase extends new (...args: any[]) => obj
317
445
  drepId_drepId?: _.Bech32 | null
318
446
  Address?: __.Composition.of.many<Addresses>
319
447
  hasAddresses?: boolean | null
448
+ addressCount?: number | null
449
+ addressList?: string | null
320
450
  } & InstanceType<ReturnType<typeof _._temporalAspect<TBase>>>
321
451
  readonly kind: 'entity';
322
452
  readonly keys: __.KeysOf<Account>;
@@ -333,6 +463,7 @@ export class Accounts extends Array<Account> {
333
463
  export declare function _TransactionAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
334
464
  new (...args: any[]): {
335
465
  hash?: __.Key<_.Blake2b256>
466
+ txSeq?: number | null
336
467
  blockHash?: _.Blake2b256 | null
337
468
  blockHeight?: number | null
338
469
  blockTime?: number | null
@@ -344,6 +475,9 @@ export declare function _TransactionAspect<TBase extends new (...args: any[]) =>
344
475
  metadata?: __.Composition.of.many<TransactionMetadata_>
345
476
  inputs?: __.Composition.of.many<TransactionInputs>
346
477
  outputs?: __.Composition.of.many<TransactionOutputs>
478
+ certificates?: __.Composition.of.many<TransactionCertificates>
479
+ withdrawals?: __.Composition.of.many<TransactionWithdrawals>
480
+ datums?: __.Composition.of.many<TransactionDatums>
347
481
  hasMetadata?: boolean | null
348
482
  hasInputs?: boolean | null
349
483
  hasOutputs?: boolean | null
@@ -362,17 +496,23 @@ export class Transactions extends Array<Transaction> {
362
496
  // entity 'TransactionInput'
363
497
  export declare function _TransactionInputAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
364
498
  new (...args: any[]): {
365
- tx?: __.Key<__.Association.to<Transaction>>
366
- tx_hash?: __.Key<_.Blake2b256>
499
+ txSeq?: __.Key<number>
500
+ tx?: __.Association.to<Transaction> | null
367
501
  inputIndex?: __.Key<number>
368
502
  address?: __.Association.to<Address> | null
369
503
  address_address?: _.Bech32 | null
370
504
  utxoData_dataHash?: _.Blake2b256 | null
371
505
  utxoData_inlineDatum?: string | null
372
506
  utxoData_referenceScriptHash?: _.Blake2b256 | null
507
+ utxoData_referenceScriptSize?: number | null
508
+ utxoData_referenceScriptType?: string | null
509
+ utxoData_paymentCredential?: string | null
510
+ spentTxHash?: _.Blake2b256 | null
511
+ spentOutputIndex?: number | null
512
+ spentTxSeq?: number | null
373
513
  isCollateral?: boolean | null
374
514
  isReference?: boolean | null
375
- assets?: __.Composition.of.many<TransactionInputAssets>
515
+ assets?: __.Association.to.many<TransactionInputAssets>
376
516
  hasAddresses?: boolean | null
377
517
  hasAssets?: boolean | null
378
518
  } & InstanceType<TBase>
@@ -387,12 +527,35 @@ export class TransactionInputs extends Array<TransactionInput> {
387
527
  $count?: number
388
528
  }
389
529
 
530
+ // entity 'TransactionInputAssetCopy'
531
+ export declare function _TransactionInputAssetCopyAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
532
+ new (...args: any[]): {
533
+ input?: __.Key<__.Association.to<TransactionInput>>
534
+ input_txSeq?: __.Key<number>
535
+ input_inputIndex?: __.Key<number>
536
+ unit?: __.Key<_.AssetUnit>
537
+ asset_quantity?: _.Lovelace | null
538
+ asset_policyId?: _.Blake2b224 | null
539
+ asset_assetNameHex?: _.HexBytes | null
540
+ asset_assetName?: string | null
541
+ asset_fingerprint?: string | null
542
+ } & InstanceType<TBase>
543
+ readonly kind: 'entity';
544
+ readonly keys: __.KeysOf<TransactionInputAssetCopy>;
545
+ readonly elements: __.ElementsOf<TransactionInputAssetCopy>;
546
+ readonly actions: globalThis.Record<never, never>;
547
+ };
548
+ export class TransactionInputAssetCopy extends _TransactionInputAssetCopyAspect(__.Entity) {
549
+ }
550
+ export class TransactionInputAssetCopies extends Array<TransactionInputAssetCopy> {
551
+ $count?: number
552
+ }
553
+
390
554
  // entity 'TransactionInputAsset'
391
555
  export declare function _TransactionInputAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
392
556
  new (...args: any[]): {
393
- input?: __.Key<__.Association.to<TransactionInput>>
557
+ input_txSeq?: __.Key<number>
394
558
  input_inputIndex?: __.Key<number>
395
- input_tx_hash?: __.Key<_.Blake2b256>
396
559
  unit?: __.Key<_.AssetUnit>
397
560
  asset_quantity?: _.Lovelace | null
398
561
  asset_policyId?: _.Blake2b224 | null
@@ -411,17 +574,234 @@ export class TransactionInputAssets extends Array<TransactionInputAsset> {
411
574
  $count?: number
412
575
  }
413
576
 
414
- // entity 'TransactionOutput'
415
- export declare function _TransactionOutputAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
577
+ // entity 'LedgerUTxO'
578
+ export declare function _LedgerUTxOAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
579
+ new (...args: any[]): {
580
+ txHash?: __.Key<_.Blake2b256>
581
+ outputIndex?: __.Key<number>
582
+ address?: _.Bech32 | null
583
+ stakeAddress?: _.Bech32 | null
584
+ addressType?: string | null
585
+ isScript?: boolean | null
586
+ lovelace?: _.Lovelace | null
587
+ createdSlot?: number | null
588
+ spentTxHash?: _.Blake2b256 | null
589
+ spentSlot?: number | null
590
+ utxo_dataHash?: _.Blake2b256 | null
591
+ utxo_inlineDatum?: string | null
592
+ utxo_referenceScriptHash?: _.Blake2b256 | null
593
+ utxo_referenceScriptSize?: number | null
594
+ utxo_referenceScriptType?: string | null
595
+ utxo_paymentCredential?: string | null
596
+ hasAssets?: boolean | null
597
+ assets?: __.Composition.of.many<LedgerUTxOAssets>
598
+ } & InstanceType<TBase>
599
+ readonly kind: 'entity';
600
+ readonly keys: __.KeysOf<LedgerUTxO>;
601
+ readonly elements: __.ElementsOf<LedgerUTxO>;
602
+ readonly actions: globalThis.Record<never, never>;
603
+ };
604
+ export class LedgerUTxO extends _LedgerUTxOAspect(__.Entity) {
605
+ }
606
+ export class LedgerUTxOs extends Array<LedgerUTxO> {
607
+ $count?: number
608
+ }
609
+
610
+ // entity 'LedgerUTxOAsset'
611
+ export declare function _LedgerUTxOAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
612
+ new (...args: any[]): {
613
+ utxo?: __.Key<__.Association.to<LedgerUTxO>>
614
+ utxo_txHash?: __.Key<_.Blake2b256>
615
+ utxo_outputIndex?: __.Key<number>
616
+ unit?: __.Key<_.AssetUnit>
617
+ asset_quantity?: _.Lovelace | null
618
+ asset_policyId?: _.Blake2b224 | null
619
+ asset_assetNameHex?: _.HexBytes | null
620
+ asset_assetName?: string | null
621
+ asset_fingerprint?: string | null
622
+ } & InstanceType<TBase>
623
+ readonly kind: 'entity';
624
+ readonly keys: __.KeysOf<LedgerUTxOAsset>;
625
+ readonly elements: __.ElementsOf<LedgerUTxOAsset>;
626
+ readonly actions: globalThis.Record<never, never>;
627
+ };
628
+ export class LedgerUTxOAsset extends _LedgerUTxOAssetAspect(__.Entity) {
629
+ }
630
+ export class LedgerUTxOAssets extends Array<LedgerUTxOAsset> {
631
+ $count?: number
632
+ }
633
+
634
+ // entity 'LedgerAddress'
635
+ export declare function _LedgerAddressAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
636
+ new (...args: any[]): {
637
+ address?: __.Key<_.Bech32>
638
+ stakeAddress?: _.Bech32 | null
639
+ paymentCredential?: string | null
640
+ addressType?: string | null
641
+ isScript?: boolean | null
642
+ totalLovelace?: _.Lovelace | null
643
+ utxoCount?: number | null
644
+ firstSeenSlot?: number | null
645
+ lastActiveSlot?: number | null
646
+ assets?: __.Composition.of.many<LedgerAddressAssets>
647
+ utxos?: __.Association.to.many<LedgerUTxOs>
648
+ } & InstanceType<TBase>
649
+ readonly kind: 'entity';
650
+ readonly keys: __.KeysOf<LedgerAddress>;
651
+ readonly elements: __.ElementsOf<LedgerAddress>;
652
+ readonly actions: globalThis.Record<never, never>;
653
+ };
654
+ export class LedgerAddress extends _LedgerAddressAspect(__.Entity) {
655
+ }
656
+ export class LedgerAddresses extends Array<LedgerAddress> {
657
+ $count?: number
658
+ }
659
+
660
+ // entity 'LedgerAddressAsset'
661
+ export declare function _LedgerAddressAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
662
+ new (...args: any[]): {
663
+ address?: __.Key<__.Association.to<LedgerAddress>>
664
+ address_address?: __.Key<_.Bech32>
665
+ unit?: __.Key<_.AssetUnit>
666
+ asset_quantity?: _.AssetAmount | null
667
+ asset_policyId?: _.Blake2b224 | null
668
+ asset_assetNameHex?: _.HexBytes | null
669
+ asset_assetName?: string | null
670
+ asset_fingerprint?: string | null
671
+ } & InstanceType<TBase>
672
+ readonly kind: 'entity';
673
+ readonly keys: __.KeysOf<LedgerAddressAsset>;
674
+ readonly elements: __.ElementsOf<LedgerAddressAsset>;
675
+ readonly actions: globalThis.Record<never, never>;
676
+ };
677
+ export class LedgerAddressAsset extends _LedgerAddressAssetAspect(__.Entity) {
678
+ }
679
+ export class LedgerAddressAssets extends Array<LedgerAddressAsset> {
680
+ $count?: number
681
+ }
682
+
683
+ // entity 'LedgerAccount'
684
+ export declare function _LedgerAccountAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
685
+ new (...args: any[]): {
686
+ stakeAddress?: __.Key<_.Bech32>
687
+ controlledAmount?: _.Lovelace | null
688
+ addressCount?: number | null
689
+ utxoCount?: number | null
690
+ lastActiveSlot?: number | null
691
+ addresses?: __.Association.to.many<LedgerAddresses>
692
+ } & InstanceType<TBase>
693
+ readonly kind: 'entity';
694
+ readonly keys: __.KeysOf<LedgerAccount>;
695
+ readonly elements: __.ElementsOf<LedgerAccount>;
696
+ readonly actions: globalThis.Record<never, never>;
697
+ };
698
+ export class LedgerAccount extends _LedgerAccountAspect(__.Entity) {
699
+ }
700
+ export class LedgerAccounts extends Array<LedgerAccount> {
701
+ $count?: number
702
+ }
703
+
704
+ // entity 'TransactionCertificate'
705
+ export declare function _TransactionCertificateAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
706
+ new (...args: any[]): {
707
+ tx?: __.Key<__.Association.to<Transaction>>
708
+ tx_hash?: __.Key<_.Blake2b256>
709
+ certIndex?: __.Key<number>
710
+ kind?: __.Key<string>
711
+ stakeAddress?: _.Bech32 | null
712
+ poolId?: _.Bech32 | null
713
+ drepId?: _.Bech32 | null
714
+ deposit?: _.Lovelace | null
715
+ epoch?: number | null
716
+ } & InstanceType<TBase>
717
+ readonly kind: 'entity';
718
+ readonly keys: __.KeysOf<TransactionCertificate>;
719
+ readonly elements: __.ElementsOf<TransactionCertificate>;
720
+ readonly actions: globalThis.Record<never, never>;
721
+ };
722
+ export class TransactionCertificate extends _TransactionCertificateAspect(__.Entity) {
723
+ }
724
+ export class TransactionCertificates extends Array<TransactionCertificate> {
725
+ $count?: number
726
+ }
727
+
728
+ // entity 'TransactionWithdrawal'
729
+ export declare function _TransactionWithdrawalAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
730
+ new (...args: any[]): {
731
+ tx?: __.Key<__.Association.to<Transaction>>
732
+ tx_hash?: __.Key<_.Blake2b256>
733
+ stakeAddress?: __.Key<_.Bech32>
734
+ lovelace?: _.Lovelace | null
735
+ } & InstanceType<TBase>
736
+ readonly kind: 'entity';
737
+ readonly keys: __.KeysOf<TransactionWithdrawal>;
738
+ readonly elements: __.ElementsOf<TransactionWithdrawal>;
739
+ readonly actions: globalThis.Record<never, never>;
740
+ };
741
+ export class TransactionWithdrawal extends _TransactionWithdrawalAspect(__.Entity) {
742
+ }
743
+ export class TransactionWithdrawals extends Array<TransactionWithdrawal> {
744
+ $count?: number
745
+ }
746
+
747
+ // entity 'TransactionRedeemer'
748
+ export declare function _TransactionRedeemerAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
416
749
  new (...args: any[]): {
417
750
  tx?: __.Key<__.Association.to<Transaction>>
418
751
  tx_hash?: __.Key<_.Blake2b256>
752
+ purpose?: __.Key<string>
753
+ redeemerIndex?: __.Key<number>
754
+ data?: string | null
755
+ mem?: number | null
756
+ steps?: number | null
757
+ spentTxHash?: _.Blake2b256 | null
758
+ spentOutputIndex?: number | null
759
+ policyId?: _.Blake2b224 | null
760
+ } & InstanceType<TBase>
761
+ readonly kind: 'entity';
762
+ readonly keys: __.KeysOf<TransactionRedeemer>;
763
+ readonly elements: __.ElementsOf<TransactionRedeemer>;
764
+ readonly actions: globalThis.Record<never, never>;
765
+ };
766
+ export class TransactionRedeemer extends _TransactionRedeemerAspect(__.Entity) {
767
+ }
768
+ export class TransactionRedeemers extends Array<TransactionRedeemer> {
769
+ $count?: number
770
+ }
771
+
772
+ // entity 'TransactionDatum'
773
+ export declare function _TransactionDatumAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
774
+ new (...args: any[]): {
775
+ tx?: __.Key<__.Association.to<Transaction>>
776
+ tx_hash?: __.Key<_.Blake2b256>
777
+ dataHash?: __.Key<_.Blake2b256>
778
+ datum?: string | null
779
+ } & InstanceType<TBase>
780
+ readonly kind: 'entity';
781
+ readonly keys: __.KeysOf<TransactionDatum>;
782
+ readonly elements: __.ElementsOf<TransactionDatum>;
783
+ readonly actions: globalThis.Record<never, never>;
784
+ };
785
+ export class TransactionDatum extends _TransactionDatumAspect(__.Entity) {
786
+ }
787
+ export class TransactionDatums extends Array<TransactionDatum> {
788
+ $count?: number
789
+ }
790
+
791
+ // entity 'TransactionOutput'
792
+ export declare function _TransactionOutputAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
793
+ new (...args: any[]): {
794
+ txSeq?: __.Key<number>
795
+ tx?: __.Association.to<Transaction> | null
419
796
  outputIndex?: __.Key<number>
420
797
  address?: __.Association.to<Address> | null
421
798
  address_address?: _.Bech32 | null
422
799
  utxo_dataHash?: _.Blake2b256 | null
423
800
  utxo_inlineDatum?: string | null
424
801
  utxo_referenceScriptHash?: _.Blake2b256 | null
802
+ utxo_referenceScriptSize?: number | null
803
+ utxo_referenceScriptType?: string | null
804
+ utxo_paymentCredential?: string | null
425
805
  assets?: __.Composition.of.many<TransactionOutputAssets>
426
806
  hasAddresses?: boolean | null
427
807
  hasAssets?: boolean | null
@@ -441,8 +821,8 @@ export class TransactionOutputs extends Array<TransactionOutput> {
441
821
  export declare function _TransactionOutputAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
442
822
  new (...args: any[]): {
443
823
  output?: __.Key<__.Association.to<TransactionOutput>>
824
+ output_txSeq?: __.Key<number>
444
825
  output_outputIndex?: __.Key<number>
445
- output_tx_hash?: __.Key<_.Blake2b256>
446
826
  unit?: __.Key<_.AssetUnit>
447
827
  asset_quantity?: _.Lovelace | null
448
828
  asset_policyId?: _.Blake2b224 | null
@@ -469,6 +849,7 @@ export declare function _TransactionMetadataAspect<TBase extends new (...args: a
469
849
  tx_hash?: __.Key<_.Blake2b256>
470
850
  label?: _.MetadataLabel | null
471
851
  payload?: string | null
852
+ txSeq?: number | null
472
853
  } & InstanceType<TBase>
473
854
  readonly kind: 'entity';
474
855
  readonly keys: __.KeysOf<TransactionMetadata>;
@@ -516,6 +897,7 @@ export declare function _LedgerProtocolParameterAspect<TBase extends new (...arg
516
897
  collateralPercent?: number | null
517
898
  maxCollateralInputs?: number | null
518
899
  coinsPerUtxoSize?: string | null
900
+ minFeeRefScriptCostPerByte?: (number | string) | null
519
901
  coinsPerUtxoWord?: string | null
520
902
  fetchedAt?: __.CdsTimestamp | null
521
903
  source?: string | null
@@ -548,6 +930,7 @@ export declare function _TransactionBuildAspect<TBase extends new (...args: any[
548
930
  createdAt?: number | null
549
931
  inputs?: __.Composition.of.many<TransactionBuildInputs>
550
932
  outputs?: __.Composition.of.many<TransactionBuildOutputs>
933
+ redeemers?: __.Composition.of.many<TransactionBuildRedeemers>
551
934
  submission?: __.Association.to<TransactionSubmission> | null
552
935
  hasInputs?: boolean | null
553
936
  hasOutputs?: boolean | null
@@ -642,6 +1025,27 @@ export class TransactionBuildOutputs extends Array<TransactionBuildOutput> {
642
1025
  $count?: number
643
1026
  }
644
1027
 
1028
+ // entity 'TransactionBuildRedeemer'
1029
+ export declare function _TransactionBuildRedeemerAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
1030
+ new (...args: any[]): {
1031
+ build?: __.Key<__.Association.to<TransactionBuild>>
1032
+ build_id?: __.Key<string>
1033
+ tag?: __.Key<string>
1034
+ redeemerIndex?: __.Key<number>
1035
+ mem?: number | null
1036
+ steps?: number | null
1037
+ } & InstanceType<TBase>
1038
+ readonly kind: 'entity';
1039
+ readonly keys: __.KeysOf<TransactionBuildRedeemer>;
1040
+ readonly elements: __.ElementsOf<TransactionBuildRedeemer>;
1041
+ readonly actions: globalThis.Record<never, never>;
1042
+ };
1043
+ export class TransactionBuildRedeemer extends _TransactionBuildRedeemerAspect(__.Entity) {
1044
+ }
1045
+ export class TransactionBuildRedeemers extends Array<TransactionBuildRedeemer> {
1046
+ $count?: number
1047
+ }
1048
+
645
1049
  // entity 'TransactionBuildOutputAsset'
646
1050
  export declare function _TransactionBuildOutputAssetAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
647
1051
  new (...args: any[]): {
@@ -678,6 +1082,7 @@ export declare function _TransactionSubmissionAspect<TBase extends new (...args:
678
1082
  status?: _.SubmissionStatus | null
679
1083
  errorCode?: string | null
680
1084
  errorMessage?: string | null
1085
+ resolution?: string | null
681
1086
  retryCount?: number | null
682
1087
  errors?: __.Composition.of.many<TransactionSubmissionErrors>
683
1088
  hasErrors?: boolean | null
@@ -802,6 +1207,7 @@ export declare function _SigningRequestAspect<TBase extends new (...args: any[])
802
1207
  submission?: __.Association.to<TransactionSubmission> | null
803
1208
  submission_id?: string | null
804
1209
  errorMessage?: string | null
1210
+ resolution?: string | null
805
1211
  } & InstanceType<TBase>
806
1212
  readonly kind: 'entity';
807
1213
  readonly keys: __.KeysOf<SigningRequest>;
@@ -859,7 +1265,14 @@ export declare function _CardanoSyncStateAspect<TBase extends new (...args: any[
859
1265
  consecutiveErrors?: number | null
860
1266
  desiredRunning?: boolean | null
861
1267
  leaseOwner?: string | null
1268
+ utxoSetStatus?: string | null
1269
+ utxoAnchorSlot?: number | null
1270
+ utxoAnchorHash?: _.Blake2b256 | null
1271
+ utxoSetImportedAt?: __.CdsTimestamp | null
1272
+ utxoAppliedSlot?: number | null
1273
+ utxoSetError?: string | null
862
1274
  leaseUntil?: __.CdsTimestamp | null
1275
+ nodeBehindSince?: __.CdsTimestamp | null
863
1276
  } & InstanceType<TBase>
864
1277
  readonly kind: 'entity';
865
1278
  readonly keys: __.KeysOf<CardanoSyncState>;
@@ -902,6 +1315,7 @@ export declare function _CardanoWorkerWalletAspect<TBase extends new (...args: a
902
1315
  signerType?: _.WorkerSignerType | null
903
1316
  address?: _.Bech32 | null
904
1317
  publicKeyHash?: _.Blake2b224 | null
1318
+ requiresRole?: string | null
905
1319
  enabled?: boolean | null
906
1320
  leaseOwner?: string | null
907
1321
  leaseUntil?: __.CdsTimestamp | null
@@ -947,6 +1361,11 @@ export declare function _CardanoWalletJobAspect<TBase extends new (...args: any[
947
1361
  createdAt?: __.CdsTimestamp | null
948
1362
  createdBy?: string | null
949
1363
  finishedAt?: __.CdsTimestamp | null
1364
+ resolution?: string | null
1365
+ invalidationTxHash?: string | null
1366
+ invalidationTxCbor?: string | null
1367
+ invalidationSentAt?: __.CdsTimestamp | null
1368
+ spendsNoWalletUtxo?: boolean | null
950
1369
  } & InstanceType<TBase>
951
1370
  readonly kind: 'entity';
952
1371
  readonly keys: __.KeysOf<CardanoWalletJob>;
@@ -967,8 +1386,6 @@ export declare function _CardanoAgentGrantAspect<TBase extends new (...args: any
967
1386
  agentLabel?: string | null
968
1387
  tokenHash?: string
969
1388
  allowedActions?: string
970
- walletId?: string | null
971
- allowedJobKinds?: string | null
972
1389
  maxJobsPerDay?: number | null
973
1390
  jobsUsedToday?: number | null
974
1391
  budgetWindow?: string | null
@@ -983,28 +1400,30 @@ export declare function _CardanoAgentGrantAspect<TBase extends new (...args: any
983
1400
  readonly elements: __.ElementsOf<CardanoAgentGrant>;
984
1401
  readonly actions: globalThis.Record<never, never>;
985
1402
  };
986
- /**
987
- * Agent grants (v2.0): scoped bearer capabilities an Admin hands to an agent
988
- * instead of a full user. The token is a capability, not an identity — it is
989
- * stored as SHA-256 only, and a request carrying it runs as the principal
990
- * `agent:<ID>` with the role `agent-grant`, never as the operator. Enforcement
991
- * (allow list, wallet pinning, daily budget) lives in srv/utils/agent-grants.ts;
992
- * the transport lane that admits `x-agent-token` in srv/utils/agent-token-auth.ts.
993
- * Admin-only table: creation and revocation happen through CardanoAgentService
994
- * actions, a token request may read its own row only.
995
- */
996
1403
  export class CardanoAgentGrant extends _CardanoAgentGrantAspect(__.Entity) {
997
1404
  }
998
- /**
999
- * Agent grants (v2.0): scoped bearer capabilities an Admin hands to an agent
1000
- * instead of a full user. The token is a capability, not an identity — it is
1001
- * stored as SHA-256 only, and a request carrying it runs as the principal
1002
- * `agent:<ID>` with the role `agent-grant`, never as the operator. Enforcement
1003
- * (allow list, wallet pinning, daily budget) lives in srv/utils/agent-grants.ts;
1004
- * the transport lane that admits `x-agent-token` in srv/utils/agent-token-auth.ts.
1005
- * Admin-only table: creation and revocation happen through CardanoAgentService
1006
- * actions, a token request may read its own row only.
1007
- */
1008
1405
  export class CardanoAgentGrants extends Array<CardanoAgentGrant> {
1009
1406
  $count?: number
1010
1407
  }
1408
+
1409
+ // entity 'CardanoAgentGrantUsage'
1410
+ export declare function _CardanoAgentGrantUsageAspect<TBase extends new (...args: any[]) => object>(Base: TBase): {
1411
+ new (...args: any[]): {
1412
+ grant?: __.Key<__.Association.to<CardanoAgentGrant>>
1413
+ grant_ID?: __.Key<string>
1414
+ day?: __.Key<string>
1415
+ service?: __.Key<string>
1416
+ action?: __.Key<string>
1417
+ calls?: number | null
1418
+ refunded?: number | null
1419
+ } & InstanceType<TBase>
1420
+ readonly kind: 'entity';
1421
+ readonly keys: __.KeysOf<CardanoAgentGrantUsage>;
1422
+ readonly elements: __.ElementsOf<CardanoAgentGrantUsage>;
1423
+ readonly actions: globalThis.Record<never, never>;
1424
+ };
1425
+ export class CardanoAgentGrantUsage extends _CardanoAgentGrantUsageAspect(__.Entity) {
1426
+ }
1427
+ export class CardanoAgentGrantUsage_ extends Array<CardanoAgentGrantUsage> {
1428
+ $count?: number
1429
+ }