tenzro-sdk 0.1.0

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 (151) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +107 -0
  3. package/dist/agent-payments.d.ts +47 -0
  4. package/dist/agent-payments.d.ts.map +1 -0
  5. package/dist/agent-payments.js +76 -0
  6. package/dist/agent-payments.js.map +1 -0
  7. package/dist/agent.d.ts +177 -0
  8. package/dist/agent.d.ts.map +1 -0
  9. package/dist/agent.js +300 -0
  10. package/dist/agent.js.map +1 -0
  11. package/dist/ap2.d.ts +54 -0
  12. package/dist/ap2.d.ts.map +1 -0
  13. package/dist/ap2.js +88 -0
  14. package/dist/ap2.js.map +1 -0
  15. package/dist/app.d.ts +186 -0
  16. package/dist/app.d.ts.map +1 -0
  17. package/dist/app.js +317 -0
  18. package/dist/app.js.map +1 -0
  19. package/dist/bridge.d.ts +64 -0
  20. package/dist/bridge.d.ts.map +1 -0
  21. package/dist/bridge.js +93 -0
  22. package/dist/bridge.js.map +1 -0
  23. package/dist/canton.d.ts +36 -0
  24. package/dist/canton.d.ts.map +1 -0
  25. package/dist/canton.js +46 -0
  26. package/dist/canton.js.map +1 -0
  27. package/dist/circuit-breaker.d.ts +35 -0
  28. package/dist/circuit-breaker.d.ts.map +1 -0
  29. package/dist/circuit-breaker.js +53 -0
  30. package/dist/circuit-breaker.js.map +1 -0
  31. package/dist/client.d.ts +134 -0
  32. package/dist/client.d.ts.map +1 -0
  33. package/dist/client.js +265 -0
  34. package/dist/client.js.map +1 -0
  35. package/dist/compliance.d.ts +83 -0
  36. package/dist/compliance.d.ts.map +1 -0
  37. package/dist/compliance.js +74 -0
  38. package/dist/compliance.js.map +1 -0
  39. package/dist/config.d.ts +10 -0
  40. package/dist/config.d.ts.map +1 -0
  41. package/dist/config.js +24 -0
  42. package/dist/config.js.map +1 -0
  43. package/dist/contract.d.ts +68 -0
  44. package/dist/contract.d.ts.map +1 -0
  45. package/dist/contract.js +59 -0
  46. package/dist/contract.js.map +1 -0
  47. package/dist/crypto.d.ts +112 -0
  48. package/dist/crypto.d.ts.map +1 -0
  49. package/dist/crypto.js +97 -0
  50. package/dist/crypto.js.map +1 -0
  51. package/dist/custody.d.ts +114 -0
  52. package/dist/custody.d.ts.map +1 -0
  53. package/dist/custody.js +96 -0
  54. package/dist/custody.js.map +1 -0
  55. package/dist/debridge.d.ts +129 -0
  56. package/dist/debridge.d.ts.map +1 -0
  57. package/dist/debridge.js +93 -0
  58. package/dist/debridge.js.map +1 -0
  59. package/dist/erc7802.d.ts +36 -0
  60. package/dist/erc7802.d.ts.map +1 -0
  61. package/dist/erc7802.js +52 -0
  62. package/dist/erc7802.js.map +1 -0
  63. package/dist/events.d.ts +112 -0
  64. package/dist/events.d.ts.map +1 -0
  65. package/dist/events.js +70 -0
  66. package/dist/events.js.map +1 -0
  67. package/dist/governance.d.ts +55 -0
  68. package/dist/governance.d.ts.map +1 -0
  69. package/dist/governance.js +77 -0
  70. package/dist/governance.js.map +1 -0
  71. package/dist/identity.d.ts +102 -0
  72. package/dist/identity.d.ts.map +1 -0
  73. package/dist/identity.js +147 -0
  74. package/dist/identity.js.map +1 -0
  75. package/dist/index.d.ts +67 -0
  76. package/dist/index.d.ts.map +1 -0
  77. package/dist/index.js +85 -0
  78. package/dist/index.js.map +1 -0
  79. package/dist/inference.d.ts +27 -0
  80. package/dist/inference.d.ts.map +1 -0
  81. package/dist/inference.js +43 -0
  82. package/dist/inference.js.map +1 -0
  83. package/dist/marketplace.d.ts +44 -0
  84. package/dist/marketplace.d.ts.map +1 -0
  85. package/dist/marketplace.js +74 -0
  86. package/dist/marketplace.js.map +1 -0
  87. package/dist/nanopayment.d.ts +53 -0
  88. package/dist/nanopayment.d.ts.map +1 -0
  89. package/dist/nanopayment.js +81 -0
  90. package/dist/nanopayment.js.map +1 -0
  91. package/dist/nft.d.ts +127 -0
  92. package/dist/nft.d.ts.map +1 -0
  93. package/dist/nft.js +99 -0
  94. package/dist/nft.js.map +1 -0
  95. package/dist/payment.d.ts +71 -0
  96. package/dist/payment.d.ts.map +1 -0
  97. package/dist/payment.js +105 -0
  98. package/dist/payment.js.map +1 -0
  99. package/dist/provider.d.ts +351 -0
  100. package/dist/provider.d.ts.map +1 -0
  101. package/dist/provider.js +368 -0
  102. package/dist/provider.js.map +1 -0
  103. package/dist/rpc.d.ts +35 -0
  104. package/dist/rpc.d.ts.map +1 -0
  105. package/dist/rpc.js +127 -0
  106. package/dist/rpc.js.map +1 -0
  107. package/dist/settlement.d.ts +52 -0
  108. package/dist/settlement.d.ts.map +1 -0
  109. package/dist/settlement.js +86 -0
  110. package/dist/settlement.js.map +1 -0
  111. package/dist/skill.d.ts +55 -0
  112. package/dist/skill.d.ts.map +1 -0
  113. package/dist/skill.js +79 -0
  114. package/dist/skill.js.map +1 -0
  115. package/dist/staking.d.ts +42 -0
  116. package/dist/staking.d.ts.map +1 -0
  117. package/dist/staking.js +62 -0
  118. package/dist/staking.js.map +1 -0
  119. package/dist/streaming.d.ts +83 -0
  120. package/dist/streaming.d.ts.map +1 -0
  121. package/dist/streaming.js +193 -0
  122. package/dist/streaming.js.map +1 -0
  123. package/dist/task.d.ts +46 -0
  124. package/dist/task.d.ts.map +1 -0
  125. package/dist/task.js +76 -0
  126. package/dist/task.js.map +1 -0
  127. package/dist/tee.d.ts +88 -0
  128. package/dist/tee.d.ts.map +1 -0
  129. package/dist/tee.js +62 -0
  130. package/dist/tee.js.map +1 -0
  131. package/dist/token.d.ts +165 -0
  132. package/dist/token.d.ts.map +1 -0
  133. package/dist/token.js +80 -0
  134. package/dist/token.js.map +1 -0
  135. package/dist/tool.d.ts +55 -0
  136. package/dist/tool.d.ts.map +1 -0
  137. package/dist/tool.js +79 -0
  138. package/dist/tool.js.map +1 -0
  139. package/dist/types.d.ts +1318 -0
  140. package/dist/types.d.ts.map +1 -0
  141. package/dist/types.js +117 -0
  142. package/dist/types.js.map +1 -0
  143. package/dist/wallet.d.ts +44 -0
  144. package/dist/wallet.d.ts.map +1 -0
  145. package/dist/wallet.js +75 -0
  146. package/dist/wallet.js.map +1 -0
  147. package/dist/zk.d.ts +66 -0
  148. package/dist/zk.d.ts.map +1 -0
  149. package/dist/zk.js +58 -0
  150. package/dist/zk.js.map +1 -0
  151. package/package.json +41 -0
@@ -0,0 +1,1318 @@
1
+ export type Hash = string;
2
+ export type Address = string;
3
+ export type Signature = string;
4
+ export type BlockHeight = number;
5
+ export type Nonce = number;
6
+ export type Timestamp = number;
7
+ export type ChainId = number;
8
+ export interface AccountInfo {
9
+ address: Address;
10
+ public_key: string;
11
+ private_key: string;
12
+ key_type: "ed25519" | "secp256k1";
13
+ }
14
+ export interface WalletInfo {
15
+ wallet_id: string;
16
+ address: Address;
17
+ public_key: string;
18
+ key_type: "ed25519" | "secp256k1";
19
+ threshold: number;
20
+ total_shares: number;
21
+ }
22
+ export declare enum WalletType {
23
+ Standard = "Standard",
24
+ MultiSig = "MultiSig",
25
+ Agent = "Agent",
26
+ Contract = "Contract"
27
+ }
28
+ export type ModelAvailability = "local" | "downloaded" | "downloadable" | "network";
29
+ export interface ModelPricing {
30
+ inputPerToken: number;
31
+ outputPerToken: number;
32
+ currency: string;
33
+ }
34
+ export interface ModelInfo {
35
+ id: string;
36
+ name: string;
37
+ version: string;
38
+ modality: ModelModality;
39
+ parameters: ModelParameters;
40
+ provider: string;
41
+ status: ModelStatus;
42
+ availability?: ModelAvailability;
43
+ pricing?: ModelPricing;
44
+ pricingConfig: PricingConfig;
45
+ metadata?: Record<string, string>;
46
+ }
47
+ export interface ModelLoadInfo {
48
+ active_requests: number;
49
+ max_concurrent: number;
50
+ utilization_percent: number;
51
+ load_level: string;
52
+ }
53
+ export interface ModelEndpoint {
54
+ model_name: string;
55
+ model_id: string;
56
+ instance_id: string;
57
+ api_endpoint: string;
58
+ mcp_endpoint: string;
59
+ location: string;
60
+ provider_name: string;
61
+ status: string;
62
+ availability?: ModelAvailability;
63
+ pricing?: ModelPricing;
64
+ load?: ModelLoadInfo;
65
+ }
66
+ export declare enum ModelModality {
67
+ Text = "Text",
68
+ Image = "Image",
69
+ Audio = "Audio",
70
+ Video = "Video",
71
+ Multimodal = "Multimodal"
72
+ }
73
+ export interface ModelParameters {
74
+ maxTokens: number;
75
+ contextWindow: number;
76
+ temperature: number;
77
+ topP: number;
78
+ topK?: number;
79
+ frequencyPenalty?: number;
80
+ presencePenalty?: number;
81
+ }
82
+ export declare enum ModelStatus {
83
+ Active = "Active",
84
+ Inactive = "Inactive",
85
+ Deprecated = "Deprecated",
86
+ Maintenance = "Maintenance"
87
+ }
88
+ export interface InferenceRequest {
89
+ id: string;
90
+ modelId: string;
91
+ input: string;
92
+ parameters: InferenceParameters;
93
+ requester: Address;
94
+ maxPrice: string;
95
+ requireTee: boolean;
96
+ metadata?: InferenceMetadata;
97
+ createdAt: Timestamp;
98
+ }
99
+ export interface InferenceResponse {
100
+ id: string;
101
+ requestId: string;
102
+ output: string;
103
+ provider: string;
104
+ model: string;
105
+ tokensUsed: number;
106
+ cost: string;
107
+ latencyMs: number;
108
+ metadata?: InferenceMetadata;
109
+ completedAt: Timestamp;
110
+ }
111
+ export interface InferenceResult {
112
+ request_id: string;
113
+ output: string;
114
+ model: string;
115
+ tokens_used: number;
116
+ cost: string;
117
+ latency_ms: number;
118
+ }
119
+ export interface InferenceParameters {
120
+ maxTokens?: number;
121
+ temperature?: number;
122
+ topP?: number;
123
+ topK?: number;
124
+ stopSequences?: string[];
125
+ stream?: boolean;
126
+ }
127
+ export interface InferenceMetadata {
128
+ teeAttestation?: string;
129
+ proofOfInference?: string;
130
+ zkProof?: string;
131
+ [key: string]: string | undefined;
132
+ }
133
+ export interface PricingConfig {
134
+ model: PricingModel;
135
+ basePrice: string;
136
+ pricePerToken: string;
137
+ currency: string;
138
+ discounts?: Record<string, string>;
139
+ }
140
+ export declare enum PricingModel {
141
+ PerToken = "PerToken",
142
+ PerRequest = "PerRequest",
143
+ Subscription = "Subscription",
144
+ PayAsYouGo = "PayAsYouGo"
145
+ }
146
+ export interface InferenceProvider {
147
+ id: string;
148
+ address: Address;
149
+ name: string;
150
+ models: string[];
151
+ capacity: ProviderCapacity;
152
+ status: ProviderStatus;
153
+ reputation: number;
154
+ totalInferences: number;
155
+ pricingConfig: PricingConfig;
156
+ teeEnabled: boolean;
157
+ metadata?: Record<string, string>;
158
+ }
159
+ export interface ProviderCapacity {
160
+ totalGpu: number;
161
+ availableGpu: number;
162
+ maxConcurrentRequests: number;
163
+ currentLoad: number;
164
+ }
165
+ export declare enum ProviderStatus {
166
+ Online = "Online",
167
+ Offline = "Offline",
168
+ Busy = "Busy",
169
+ Maintenance = "Maintenance"
170
+ }
171
+ export interface SettlementParams {
172
+ request_id: string;
173
+ provider: Address;
174
+ customer: Address;
175
+ amount: string;
176
+ }
177
+ export interface SettlementRequest {
178
+ id: string;
179
+ serviceType: ServiceType;
180
+ payer: Address;
181
+ payee: Address;
182
+ amount: string;
183
+ assetId: string;
184
+ paymentIntent: PaymentIntent;
185
+ serviceProof?: string;
186
+ escrowId?: string;
187
+ metadata?: Record<string, string>;
188
+ createdAt: Timestamp;
189
+ }
190
+ export interface SettlementReceipt {
191
+ id: string;
192
+ requestId: string;
193
+ status: SettlementStatus;
194
+ txHash?: Hash;
195
+ blockHeight?: BlockHeight;
196
+ finalizedAt?: Timestamp;
197
+ fee: string;
198
+ metadata?: Record<string, string>;
199
+ }
200
+ export declare enum SettlementStatus {
201
+ Pending = "Pending",
202
+ Confirmed = "Confirmed",
203
+ Finalized = "Finalized",
204
+ Failed = "Failed",
205
+ Refunded = "Refunded"
206
+ }
207
+ export declare enum ServiceType {
208
+ Inference = "Inference",
209
+ Storage = "Storage",
210
+ Compute = "Compute",
211
+ DataAccess = "DataAccess",
212
+ AgentService = "AgentService"
213
+ }
214
+ export declare enum PaymentIntent {
215
+ Immediate = "Immediate",
216
+ Escrow = "Escrow",
217
+ Streaming = "Streaming",
218
+ Deferred = "Deferred"
219
+ }
220
+ export interface ServiceProof {
221
+ proofType: string;
222
+ proofData: string;
223
+ signature: Signature;
224
+ timestamp: Timestamp;
225
+ }
226
+ export interface AgentIdentity {
227
+ id: string;
228
+ address: Address;
229
+ name: string;
230
+ agentType: string;
231
+ capabilities: Capability[];
232
+ reputation: number;
233
+ owner: Address;
234
+ config: AgentConfig;
235
+ createdAt: Timestamp;
236
+ }
237
+ export interface AgentConfig {
238
+ maxConcurrentTasks: number;
239
+ allowedServices: ServiceType[];
240
+ budget: string;
241
+ trustThreshold: number;
242
+ metadata?: Record<string, string>;
243
+ }
244
+ export interface AgentMessage {
245
+ id: string;
246
+ from: Address;
247
+ to: Address;
248
+ messageType: AgentMessageType;
249
+ payload: string;
250
+ signature: Signature;
251
+ timestamp: Timestamp;
252
+ }
253
+ export declare enum AgentMessageType {
254
+ Request = "Request",
255
+ Response = "Response",
256
+ Notification = "Notification",
257
+ Command = "Command"
258
+ }
259
+ export interface Capability {
260
+ name: string;
261
+ version: string;
262
+ description: string;
263
+ parameters?: Record<string, string>;
264
+ }
265
+ export interface RegisterAgentResponse {
266
+ agent_id: string;
267
+ status: string;
268
+ }
269
+ export interface AgentMessageResponse {
270
+ payload: string;
271
+ message_id: string;
272
+ }
273
+ export interface DelegateTaskResponse {
274
+ id: string;
275
+ status: string;
276
+ }
277
+ export interface SpawnAgentResponse {
278
+ agent_id: string;
279
+ parent_id: string;
280
+ name: string;
281
+ }
282
+ export interface RunAgentTaskResponse {
283
+ agent_id: string;
284
+ result: string;
285
+ }
286
+ export interface CreateSwarmResponse {
287
+ swarm_id: string;
288
+ orchestrator_id: string;
289
+ }
290
+ export interface SwarmMemberInfo {
291
+ agent_id: string;
292
+ role: string;
293
+ status: string;
294
+ result?: string;
295
+ }
296
+ export interface SwarmStatus {
297
+ swarm_id: string;
298
+ orchestrator_id: string;
299
+ status: string;
300
+ member_count: number;
301
+ members: SwarmMemberInfo[];
302
+ }
303
+ export interface TerminateSwarmResponse {
304
+ swarm_id: string;
305
+ status: string;
306
+ }
307
+ export interface GovernanceProposal {
308
+ id: string;
309
+ proposer: Address;
310
+ title: string;
311
+ description: string;
312
+ proposalType: ProposalType;
313
+ status: ProposalStatus;
314
+ votesFor: string;
315
+ votesAgainst: string;
316
+ votesAbstain: string;
317
+ quorum: string;
318
+ threshold: string;
319
+ executionData?: string;
320
+ createdAt: Timestamp;
321
+ votingEndsAt: Timestamp;
322
+ executedAt?: Timestamp;
323
+ }
324
+ export interface GovernanceVote {
325
+ proposalId: string;
326
+ voter: Address;
327
+ voteType: VoteType;
328
+ votingPower: string;
329
+ justification?: string;
330
+ timestamp: Timestamp;
331
+ }
332
+ export declare enum VoteType {
333
+ For = "For",
334
+ Against = "Against",
335
+ Abstain = "Abstain"
336
+ }
337
+ export declare enum ProposalType {
338
+ ParameterChange = "ParameterChange",
339
+ ProtocolUpgrade = "ProtocolUpgrade",
340
+ TreasurySpend = "TreasurySpend",
341
+ EmergencyAction = "EmergencyAction"
342
+ }
343
+ export declare enum ProposalStatus {
344
+ Active = "Active",
345
+ Passed = "Passed",
346
+ Rejected = "Rejected",
347
+ Executed = "Executed",
348
+ Cancelled = "Cancelled"
349
+ }
350
+ export interface VoteReceipt {
351
+ vote_id: string;
352
+ proposal_id: string;
353
+ status: string;
354
+ }
355
+ export interface VotingPower {
356
+ address: Address;
357
+ power: string;
358
+ delegated_to?: Address;
359
+ }
360
+ export interface BridgeMessage {
361
+ id: string;
362
+ sourceChain: ChainId;
363
+ targetChain: ChainId;
364
+ protocol: BridgeProtocol;
365
+ payload: string;
366
+ sender: Address;
367
+ recipient: Address;
368
+ status: string;
369
+ createdAt: Timestamp;
370
+ }
371
+ export interface BridgeTransfer {
372
+ id: string;
373
+ sourceChain: ChainId;
374
+ targetChain: ChainId;
375
+ assetId: string;
376
+ amount: string;
377
+ sender: Address;
378
+ recipient: Address;
379
+ status: string;
380
+ txHash: Hash;
381
+ bridgeFee: string;
382
+ completedAt?: Timestamp;
383
+ }
384
+ export declare enum BridgeProtocol {
385
+ Native = "Native",
386
+ IBC = "IBC",
387
+ LayerZero = "LayerZero",
388
+ ChainlinkCCIP = "ChainlinkCCIP",
389
+ DeBridge = "DeBridge",
390
+ Canton = "Canton"
391
+ }
392
+ export interface Block {
393
+ header: BlockHeader;
394
+ transactions: Transaction[];
395
+ hash: Hash;
396
+ }
397
+ export interface BlockHeader {
398
+ height: BlockHeight;
399
+ timestamp: Timestamp;
400
+ previousHash: Hash;
401
+ stateRoot: Hash;
402
+ txRoot: Hash;
403
+ proposer: Address;
404
+ signature: Signature;
405
+ chainId: ChainId;
406
+ }
407
+ export interface Transaction {
408
+ hash: Hash;
409
+ txType: TransactionType;
410
+ from: Address;
411
+ to?: Address;
412
+ amount: string;
413
+ fee: string;
414
+ nonce: Nonce;
415
+ data?: string;
416
+ signature: Signature;
417
+ blockHeight?: BlockHeight;
418
+ timestamp: Timestamp;
419
+ }
420
+ export declare enum TransactionType {
421
+ Transfer = "Transfer",
422
+ InferenceRequest = "InferenceRequest",
423
+ Settlement = "Settlement",
424
+ AgentRegistration = "AgentRegistration",
425
+ GovernanceVote = "GovernanceVote",
426
+ ContractDeploy = "ContractDeploy",
427
+ ContractCall = "ContractCall"
428
+ }
429
+ export interface Account {
430
+ address: Address;
431
+ balance: string;
432
+ nonce: Nonce;
433
+ state: AccountState;
434
+ createdAt: Timestamp;
435
+ }
436
+ export interface AccountState {
437
+ storageRoot: Hash;
438
+ codeHash?: Hash;
439
+ metadata?: Record<string, string>;
440
+ }
441
+ export interface NetworkInfo {
442
+ chainId: ChainId;
443
+ blockHeight: BlockHeight;
444
+ peers: number;
445
+ version: string;
446
+ networkName: string;
447
+ genesisHash: Hash;
448
+ }
449
+ export interface PeerInfo {
450
+ id: string;
451
+ address: string;
452
+ version: string;
453
+ connectedAt: Timestamp;
454
+ latency: number;
455
+ }
456
+ export interface NodeInfo {
457
+ nodeId: string;
458
+ version: string;
459
+ networkInfo: NetworkInfo;
460
+ peers: PeerInfo[];
461
+ uptime: number;
462
+ }
463
+ export interface NodeStatus {
464
+ node_state: string;
465
+ role: string;
466
+ health: string;
467
+ block_height: number;
468
+ peer_count: number;
469
+ uptime_secs: number;
470
+ }
471
+ export interface FaucetResponse {
472
+ success: boolean;
473
+ tx_hash?: string;
474
+ amount: string;
475
+ message: string;
476
+ }
477
+ export interface HealthResponse {
478
+ status: string;
479
+ version: string;
480
+ verification_service: string;
481
+ }
482
+ export interface VerificationResponse {
483
+ valid: boolean;
484
+ details?: string;
485
+ verified_at?: Timestamp;
486
+ }
487
+ export declare enum IdentityType {
488
+ Human = "Human",
489
+ Machine = "Machine"
490
+ }
491
+ export interface IdentityInfo {
492
+ did: string;
493
+ identityType: IdentityType;
494
+ displayName: string;
495
+ status: string;
496
+ keyCount: number;
497
+ credentialCount: number;
498
+ serviceCount: number;
499
+ isHuman: boolean;
500
+ isMachine: boolean;
501
+ controllerDid?: string;
502
+ }
503
+ export interface DidDocument {
504
+ "@context": string[];
505
+ id: string;
506
+ controller?: string;
507
+ verificationMethod: VerificationMethod[];
508
+ authentication: string[];
509
+ assertionMethod: string[];
510
+ keyAgreement: string[];
511
+ service: DidService[];
512
+ }
513
+ export interface VerificationMethod {
514
+ id: string;
515
+ type: string;
516
+ controller: string;
517
+ publicKeyMultibase?: string;
518
+ publicKeyJwk?: Record<string, unknown>;
519
+ }
520
+ export interface DidService {
521
+ id: string;
522
+ type: string;
523
+ serviceEndpoint: string;
524
+ }
525
+ export interface MicroNodeCapabilities {
526
+ inference: boolean;
527
+ payments: boolean;
528
+ agent_collaboration: boolean;
529
+ mcp_tools: boolean;
530
+ task_execution: boolean;
531
+ chain_query: boolean;
532
+ smart_contracts: boolean;
533
+ tee_services: boolean;
534
+ bridge: boolean;
535
+ governance: boolean;
536
+ }
537
+ export interface MicroNodeNetworkEndpoints {
538
+ rpc: string;
539
+ mcp: string;
540
+ a2a: string;
541
+ }
542
+ export interface JoinAsMicroNodeResponse {
543
+ identity: {
544
+ did: string;
545
+ identity_type: string;
546
+ display_name: string;
547
+ status: string;
548
+ };
549
+ wallet: {
550
+ wallet_id: string;
551
+ address: string;
552
+ public_key: string;
553
+ };
554
+ capabilities: MicroNodeCapabilities;
555
+ origin: string;
556
+ participant_type: string;
557
+ role: string;
558
+ network: MicroNodeNetworkEndpoints;
559
+ message: string;
560
+ }
561
+ export interface PaymentChallenge {
562
+ challengeId: string;
563
+ protocol: string;
564
+ resource: string;
565
+ amount: number;
566
+ asset: string;
567
+ recipient?: string;
568
+ }
569
+ export interface PaymentReceipt {
570
+ receiptId: string;
571
+ protocol: string;
572
+ amount: number;
573
+ asset: string;
574
+ sessionId?: string;
575
+ payerDid?: string;
576
+ recipientDid?: string;
577
+ timestamp?: Timestamp;
578
+ }
579
+ export interface PaymentSessionInfo {
580
+ sessionId: string;
581
+ protocol: string;
582
+ resource: string;
583
+ totalSpent: number;
584
+ asset: string;
585
+ active: boolean;
586
+ }
587
+ export interface GatewayInfo {
588
+ status: string;
589
+ protocols: string[];
590
+ supportedAssets: string[];
591
+ }
592
+ export type TaskStatus = 'open' | 'assigned' | 'in_progress' | 'completed' | 'cancelled' | 'expired' | 'disputed';
593
+ export type TaskType = 'inference' | 'code_review' | 'data_analysis' | 'content_generation' | 'agent_execution' | 'translation' | 'research' | string;
594
+ export type TaskPriority = 'low' | 'normal' | 'high' | 'urgent';
595
+ export interface TaskInfo {
596
+ task_id: string;
597
+ title: string;
598
+ description: string;
599
+ task_type: TaskType;
600
+ poster: string;
601
+ assignee?: string;
602
+ max_price: string;
603
+ quoted_price?: string;
604
+ status: TaskStatus;
605
+ created_at: number;
606
+ deadline?: number;
607
+ required_model?: string;
608
+ preferred_model_id?: string;
609
+ input: string;
610
+ output?: string;
611
+ priority: TaskPriority;
612
+ metadata: Record<string, string>;
613
+ tx_hash?: string;
614
+ }
615
+ export interface TaskQuote {
616
+ task_id: string;
617
+ provider: string;
618
+ price: string;
619
+ estimated_duration_secs: number;
620
+ model_id: string;
621
+ confidence: number;
622
+ expires_at: number;
623
+ notes?: string;
624
+ }
625
+ export interface TaskFilter {
626
+ task_type?: TaskType;
627
+ status?: TaskStatus;
628
+ poster?: string;
629
+ assignee?: string;
630
+ max_price?: string;
631
+ required_model?: string;
632
+ limit?: number;
633
+ offset?: number;
634
+ }
635
+ export interface PostTaskParams {
636
+ title: string;
637
+ description: string;
638
+ task_type: TaskType;
639
+ max_price: string;
640
+ input: string;
641
+ priority?: TaskPriority;
642
+ deadline?: number;
643
+ required_model?: string;
644
+ }
645
+ export type AgentTemplateStatus = 'published' | 'pending' | 'deprecated' | 'suspended';
646
+ export type AgentTemplateType = 'autonomous' | 'tool_agent' | 'orchestrator' | 'specialist' | 'multi_modal' | string;
647
+ export type AgentPricingModel = {
648
+ type: 'free';
649
+ } | {
650
+ type: 'per_execution';
651
+ price: string;
652
+ } | {
653
+ type: 'per_token';
654
+ price_per_token: string;
655
+ } | {
656
+ type: 'subscription';
657
+ monthly_rate: string;
658
+ } | {
659
+ type: 'revenue_share';
660
+ creator_share_bps: number;
661
+ };
662
+ export interface AgentCapabilityDef {
663
+ id: string;
664
+ name: string;
665
+ description: string;
666
+ input_schema?: string;
667
+ output_schema?: string;
668
+ }
669
+ export interface AgentRuntimeRequirements {
670
+ min_model_size?: string;
671
+ preferred_model_id?: string;
672
+ required_mcp_tools: string[];
673
+ required_permissions: string[];
674
+ estimated_cost_per_run?: string;
675
+ requires_tee: boolean;
676
+ }
677
+ export interface AgentExample {
678
+ description: string;
679
+ user_input: string;
680
+ expected_output: string;
681
+ }
682
+ export interface AgentTemplate {
683
+ template_id: string;
684
+ name: string;
685
+ description: string;
686
+ template_type: AgentTemplateType;
687
+ creator: string;
688
+ version: string;
689
+ status: AgentTemplateStatus;
690
+ created_at: number;
691
+ updated_at: number;
692
+ capabilities: AgentCapabilityDef[];
693
+ runtime_requirements: AgentRuntimeRequirements;
694
+ pricing: AgentPricingModel;
695
+ system_prompt: string;
696
+ examples: AgentExample[];
697
+ tags: string[];
698
+ download_count: number;
699
+ rating: number;
700
+ content_hash?: string;
701
+ docs_url?: string;
702
+ metadata: Record<string, string>;
703
+ }
704
+ export interface AgentTemplateFilter {
705
+ template_type?: AgentTemplateType;
706
+ creator?: string;
707
+ tag?: string;
708
+ required_model?: string;
709
+ free_only?: boolean;
710
+ status?: AgentTemplateStatus;
711
+ limit?: number;
712
+ offset?: number;
713
+ }
714
+ export interface RegisterAgentTemplateParams {
715
+ name: string;
716
+ description: string;
717
+ template_type: AgentTemplateType;
718
+ system_prompt: string;
719
+ tags?: string[];
720
+ pricing?: AgentPricingModel;
721
+ }
722
+ export interface UpdateAgentTemplateParams {
723
+ name?: string;
724
+ description?: string;
725
+ template_type?: AgentTemplateType;
726
+ system_prompt?: string;
727
+ tags?: string[];
728
+ pricing?: AgentPricingModel;
729
+ status?: AgentTemplateStatus;
730
+ }
731
+ export interface SpawnAgentTemplateResponse {
732
+ agent_id: string;
733
+ template_id: string;
734
+ name: string;
735
+ status: string;
736
+ }
737
+ export interface RunAgentTemplateReport {
738
+ agent_id: string;
739
+ template_id: string;
740
+ iterations: number;
741
+ status: string;
742
+ result: string;
743
+ duration_ms: number;
744
+ }
745
+ export interface SkillInfo {
746
+ skill_id: string;
747
+ name: string;
748
+ description: string;
749
+ version: string;
750
+ capabilities: string[];
751
+ input_schema?: string;
752
+ output_schema?: string;
753
+ category?: string;
754
+ creator_did?: string;
755
+ tags?: string[];
756
+ status: string;
757
+ created_at?: number;
758
+ updated_at?: number;
759
+ }
760
+ export interface RegisterSkillParams {
761
+ name: string;
762
+ description: string;
763
+ version: string;
764
+ capabilities: string[];
765
+ input_schema?: string;
766
+ output_schema?: string;
767
+ category?: string;
768
+ tags?: string[];
769
+ }
770
+ export interface UpdateSkillParams {
771
+ name?: string;
772
+ description?: string;
773
+ version?: string;
774
+ capabilities?: string[];
775
+ input_schema?: string;
776
+ output_schema?: string;
777
+ category?: string;
778
+ tags?: string[];
779
+ status?: string;
780
+ }
781
+ export interface SkillFilter {
782
+ category?: string;
783
+ capability?: string;
784
+ creator_did?: string;
785
+ tag?: string;
786
+ status?: string;
787
+ limit?: number;
788
+ offset?: number;
789
+ }
790
+ export interface SkillExecutionResult {
791
+ skill_id: string;
792
+ output: string;
793
+ status: string;
794
+ duration_ms: number;
795
+ metadata?: Record<string, string>;
796
+ }
797
+ export interface ToolInfo {
798
+ tool_id: string;
799
+ name: string;
800
+ description: string;
801
+ version: string;
802
+ tool_type?: string;
803
+ input_schema?: string;
804
+ output_schema?: string;
805
+ category?: string;
806
+ creator_did?: string;
807
+ provider_id?: string;
808
+ tags?: string[];
809
+ status: string;
810
+ created_at?: number;
811
+ updated_at?: number;
812
+ }
813
+ export interface RegisterToolParams {
814
+ name: string;
815
+ description: string;
816
+ version: string;
817
+ tool_type?: string;
818
+ input_schema?: string;
819
+ output_schema?: string;
820
+ category?: string;
821
+ tags?: string[];
822
+ }
823
+ export interface UpdateToolParams {
824
+ name?: string;
825
+ description?: string;
826
+ version?: string;
827
+ tool_type?: string;
828
+ input_schema?: string;
829
+ output_schema?: string;
830
+ category?: string;
831
+ tags?: string[];
832
+ status?: string;
833
+ }
834
+ export interface ToolFilter {
835
+ tool_type?: string;
836
+ category?: string;
837
+ creator_did?: string;
838
+ tag?: string;
839
+ status?: string;
840
+ limit?: number;
841
+ offset?: number;
842
+ }
843
+ export interface ToolExecutionResult {
844
+ tool_id: string;
845
+ output: string;
846
+ status: string;
847
+ duration_ms: number;
848
+ metadata?: Record<string, string>;
849
+ }
850
+ export interface CantonDomain {
851
+ domain_id: string;
852
+ name: string;
853
+ status: string;
854
+ participants: string[];
855
+ sequencer_url?: string;
856
+ }
857
+ export interface DamlContract {
858
+ contract_id: string;
859
+ template_id: string;
860
+ payload: Record<string, unknown>;
861
+ signatories: string[];
862
+ observers: string[];
863
+ created_at?: number;
864
+ }
865
+ export interface ListDamlContractsParams {
866
+ domain_id?: string;
867
+ /** Template ID filter (passed as `identifierFilter` to Canton 3.x API v2) */
868
+ template_id?: string;
869
+ party?: string;
870
+ limit?: number;
871
+ offset?: number;
872
+ }
873
+ export interface DamlCommandParams {
874
+ domain_id: string;
875
+ command_type: 'create' | 'exercise';
876
+ template_id: string;
877
+ payload: Record<string, unknown>;
878
+ contract_id?: string;
879
+ choice?: string;
880
+ }
881
+ export interface DamlCommandResult {
882
+ command_id: string;
883
+ status: string;
884
+ contract_id?: string;
885
+ events: DamlEvent[];
886
+ }
887
+ export interface DamlEvent {
888
+ event_type: string;
889
+ contract_id: string;
890
+ template_id: string;
891
+ payload?: Record<string, unknown>;
892
+ }
893
+ export type StakingRole = 'validator' | 'model_provider' | 'tee_provider';
894
+ export interface StakeResult {
895
+ tx_hash: string;
896
+ amount: string;
897
+ role: StakingRole;
898
+ status: string;
899
+ }
900
+ export interface UnstakeResult {
901
+ tx_hash: string;
902
+ amount: string;
903
+ status: string;
904
+ unbonding_end?: number;
905
+ }
906
+ export interface AssignTaskResult {
907
+ task_id: string;
908
+ agent_id: string;
909
+ status: string;
910
+ }
911
+ export interface CompleteTaskResult {
912
+ task_id: string;
913
+ status: string;
914
+ tx_hash?: string;
915
+ }
916
+ /** An AP2 payment session between an agent and a provider. */
917
+ export interface Ap2Session {
918
+ /** Unique session identifier */
919
+ session_id: string;
920
+ /** DID of the agent initiating payments */
921
+ agent_did: string;
922
+ /** DID of the service provider */
923
+ provider_did: string;
924
+ /** Service identifier */
925
+ service: string;
926
+ /** Maximum authorized amount for this session */
927
+ max_amount: string;
928
+ /** Asset used for payments (default: "TNZO") */
929
+ asset: string;
930
+ /** Total amount spent in this session */
931
+ total_spent: string;
932
+ /** Session status */
933
+ status: 'active' | 'completed' | 'cancelled' | 'expired';
934
+ /** Session creation timestamp */
935
+ created_at: Timestamp;
936
+ /** Session expiry timestamp */
937
+ expires_at?: Timestamp;
938
+ }
939
+ /** An authorization for a specific payment within an AP2 session. */
940
+ export interface Ap2Authorization {
941
+ /** Unique authorization identifier */
942
+ authorization_id: string;
943
+ /** Session this authorization belongs to */
944
+ session_id: string;
945
+ /** Authorized amount */
946
+ amount: string;
947
+ /** Authorization status */
948
+ status: 'pending' | 'approved' | 'executed' | 'rejected';
949
+ /** Timestamp of authorization */
950
+ created_at: Timestamp;
951
+ }
952
+ /** Result of cancelling an AP2 session. */
953
+ export interface CancelResult {
954
+ /** Session that was cancelled */
955
+ session_id: string;
956
+ /** Final status */
957
+ status: string;
958
+ /** Amount refunded, if any */
959
+ refunded_amount?: string;
960
+ }
961
+ /** A route available for cross-chain bridging. */
962
+ export interface BridgeRoute {
963
+ /** Source chain identifier */
964
+ from_chain: string;
965
+ /** Destination chain identifier */
966
+ to_chain: string;
967
+ /** Bridge adapter used */
968
+ adapter: string;
969
+ /** Estimated fee */
970
+ estimated_fee: string;
971
+ /** Estimated time in seconds */
972
+ estimated_time_secs: number;
973
+ /** Supported tokens on this route */
974
+ supported_tokens: string[];
975
+ }
976
+ /** Information about a registered bridge adapter. */
977
+ export interface BridgeAdapter {
978
+ /** Adapter identifier */
979
+ adapter_id: string;
980
+ /** Adapter name (e.g. "LayerZero", "CCIP") */
981
+ name: string;
982
+ /** Supported source chains */
983
+ supported_chains: string[];
984
+ /** Adapter status */
985
+ status: string;
986
+ }
987
+ /** Fee estimate for a bridge transfer. */
988
+ export interface BridgeFee {
989
+ /** Source chain */
990
+ from_chain: string;
991
+ /** Destination chain */
992
+ to_chain: string;
993
+ /** Token being bridged */
994
+ token: string;
995
+ /** Estimated fee in native token */
996
+ native_fee: string;
997
+ /** Estimated fee in USD */
998
+ usd_fee?: string;
999
+ /** Adapter used for the estimate */
1000
+ adapter: string;
1001
+ }
1002
+ /** Status of a bridge transfer. */
1003
+ export interface TransferStatus {
1004
+ /** Transfer identifier */
1005
+ transfer_id: string;
1006
+ /** Current status */
1007
+ status: 'pending' | 'in_transit' | 'delivered' | 'failed';
1008
+ /** Source chain transaction hash */
1009
+ source_tx_hash?: string;
1010
+ /** Destination chain transaction hash */
1011
+ destination_tx_hash?: string;
1012
+ /** Last updated timestamp */
1013
+ updated_at: Timestamp;
1014
+ }
1015
+ /** A spending policy for an agent. */
1016
+ export interface SpendingPolicy {
1017
+ /** Agent DID this policy applies to */
1018
+ agent_did: string;
1019
+ /** Maximum amount per transaction */
1020
+ max_per_transaction: string;
1021
+ /** Maximum daily spend */
1022
+ max_daily_spend: string;
1023
+ /** Allowed service types */
1024
+ allowed_services: string[];
1025
+ /** Whether the policy is active */
1026
+ active: boolean;
1027
+ }
1028
+ /** Result of setting a spending policy. */
1029
+ export interface PolicyResult {
1030
+ /** Agent DID */
1031
+ agent_did: string;
1032
+ /** Operation status */
1033
+ status: string;
1034
+ }
1035
+ /** Receipt for an agent-initiated payment. */
1036
+ export interface AgentPaymentReceipt {
1037
+ /** Receipt identifier */
1038
+ receipt_id: string;
1039
+ /** Agent DID that initiated the payment */
1040
+ agent_did: string;
1041
+ /** Provider address */
1042
+ provider: string;
1043
+ /** Amount paid */
1044
+ amount: string;
1045
+ /** Service type */
1046
+ service_type: string;
1047
+ /** Transaction hash */
1048
+ tx_hash: string;
1049
+ /** Timestamp */
1050
+ timestamp: Timestamp;
1051
+ }
1052
+ /** Daily spend summary for an agent. */
1053
+ export interface DailySpend {
1054
+ /** Agent DID */
1055
+ agent_did: string;
1056
+ /** Total spent today */
1057
+ total_spent: string;
1058
+ /** Daily limit */
1059
+ daily_limit: string;
1060
+ /** Remaining allowance */
1061
+ remaining: string;
1062
+ /** Number of transactions today */
1063
+ transaction_count: number;
1064
+ }
1065
+ /** A single agent transaction record. */
1066
+ export interface AgentTransaction {
1067
+ /** Transaction identifier */
1068
+ tx_id: string;
1069
+ /** Agent DID */
1070
+ agent_did: string;
1071
+ /** Provider or recipient */
1072
+ recipient: string;
1073
+ /** Amount */
1074
+ amount: string;
1075
+ /** Service type */
1076
+ service_type: string;
1077
+ /** Transaction status */
1078
+ status: string;
1079
+ /** Timestamp */
1080
+ timestamp: Timestamp;
1081
+ }
1082
+ /** Health information for a provider. */
1083
+ export interface ProviderHealth {
1084
+ /** Provider identifier */
1085
+ provider_id: string;
1086
+ /** Whether the provider is healthy */
1087
+ healthy: boolean;
1088
+ /** Success rate (0.0 - 1.0) */
1089
+ success_rate: number;
1090
+ /** Average latency in milliseconds */
1091
+ avg_latency_ms: number;
1092
+ /** Total requests served */
1093
+ total_requests: number;
1094
+ /** Number of failures */
1095
+ failure_count: number;
1096
+ /** Circuit breaker state */
1097
+ circuit_state: 'closed' | 'open' | 'half_open';
1098
+ }
1099
+ /** Status of a circuit breaker for a provider. */
1100
+ export interface CircuitBreakerStatus {
1101
+ /** Provider identifier */
1102
+ provider_id: string;
1103
+ /** Current circuit state */
1104
+ state: 'closed' | 'open' | 'half_open';
1105
+ /** Number of consecutive failures */
1106
+ consecutive_failures: number;
1107
+ /** Failure threshold before opening */
1108
+ failure_threshold: number;
1109
+ /** Recovery timeout in seconds */
1110
+ recovery_timeout_secs: number;
1111
+ /** Last state change timestamp */
1112
+ last_state_change: Timestamp;
1113
+ }
1114
+ /** Configuration for a circuit breaker. */
1115
+ export interface CircuitBreakerConfig {
1116
+ /** Number of failures before opening the circuit */
1117
+ failure_threshold: number;
1118
+ /** Seconds to wait before attempting recovery */
1119
+ recovery_timeout_secs: number;
1120
+ /** Success threshold to close from half-open */
1121
+ success_threshold?: number;
1122
+ }
1123
+ /** Result of configuring or resetting a circuit breaker. */
1124
+ export interface ConfigResult {
1125
+ /** Provider identifier */
1126
+ provider_id: string;
1127
+ /** Operation status */
1128
+ status: string;
1129
+ }
1130
+ /** Result of resetting a circuit breaker. */
1131
+ export interface ResetResult {
1132
+ /** Provider identifier */
1133
+ provider_id: string;
1134
+ /** New circuit state after reset */
1135
+ state: string;
1136
+ /** Operation status */
1137
+ status: string;
1138
+ }
1139
+ /** Information about a nanopayment channel. */
1140
+ export interface ChannelInfo {
1141
+ /** Channel identifier */
1142
+ channel_id: string;
1143
+ /** Payer address */
1144
+ payer: string;
1145
+ /** Payee address */
1146
+ payee: string;
1147
+ /** Initial deposit amount */
1148
+ deposit: string;
1149
+ /** Current balance remaining */
1150
+ balance: string;
1151
+ /** Total amount paid through this channel */
1152
+ total_paid: string;
1153
+ /** Asset used (default: "TNZO") */
1154
+ asset: string;
1155
+ /** Number of nanopayments sent */
1156
+ payment_count: number;
1157
+ /** Channel status */
1158
+ status: 'open' | 'closing' | 'closed' | 'disputed';
1159
+ /** Channel creation timestamp */
1160
+ created_at: Timestamp;
1161
+ }
1162
+ /** Receipt for a single nanopayment. */
1163
+ export interface NanopaymentReceipt {
1164
+ /** Payment identifier */
1165
+ payment_id: string;
1166
+ /** Channel this payment was sent through */
1167
+ channel_id: string;
1168
+ /** Amount of this nanopayment */
1169
+ amount: string;
1170
+ /** Optional memo */
1171
+ memo?: string;
1172
+ /** Sequence number within the channel */
1173
+ sequence: number;
1174
+ /** Timestamp */
1175
+ timestamp: Timestamp;
1176
+ }
1177
+ /** Result of flushing a batch of nanopayments to on-chain settlement. */
1178
+ export interface BatchSettlement {
1179
+ /** Channel identifier */
1180
+ channel_id: string;
1181
+ /** Number of payments in this batch */
1182
+ payment_count: number;
1183
+ /** Total amount settled */
1184
+ total_amount: string;
1185
+ /** On-chain transaction hash */
1186
+ tx_hash: string;
1187
+ /** Settlement status */
1188
+ status: string;
1189
+ }
1190
+ /** Result of closing a nanopayment channel. */
1191
+ export interface CloseResult {
1192
+ /** Channel identifier */
1193
+ channel_id: string;
1194
+ /** Final settled amount */
1195
+ final_amount: string;
1196
+ /** Refunded deposit */
1197
+ refunded: string;
1198
+ /** Transaction hash */
1199
+ tx_hash: string;
1200
+ /** Status */
1201
+ status: string;
1202
+ }
1203
+ /** Result of a cross-chain mint operation. */
1204
+ export interface MintResult {
1205
+ /** Transaction hash */
1206
+ tx_hash: string;
1207
+ /** Token address */
1208
+ token: string;
1209
+ /** Recipient address */
1210
+ recipient: string;
1211
+ /** Minted amount */
1212
+ amount: string;
1213
+ /** Source chain that authorized the mint */
1214
+ source_chain: string;
1215
+ /** Status */
1216
+ status: string;
1217
+ }
1218
+ /** Result of a cross-chain burn operation. */
1219
+ export interface BurnResult {
1220
+ /** Transaction hash */
1221
+ tx_hash: string;
1222
+ /** Token address */
1223
+ token: string;
1224
+ /** Address burned from */
1225
+ from: string;
1226
+ /** Burned amount */
1227
+ amount: string;
1228
+ /** Target chain where tokens will be minted */
1229
+ target_chain: string;
1230
+ /** Status */
1231
+ status: string;
1232
+ }
1233
+ /** Cross-chain supply information for a token. */
1234
+ export interface CrossChainSupply {
1235
+ /** Token address */
1236
+ token: string;
1237
+ /** Total supply across all chains */
1238
+ total_supply: string;
1239
+ /** Per-chain supply breakdown */
1240
+ chain_supplies: Record<string, string>;
1241
+ }
1242
+ /** Gas policy for an agent's on-chain operations. */
1243
+ export interface GasPolicy {
1244
+ /** Policy type: "accept_any" or "pay_up_to" */
1245
+ type: 'accept_any' | 'pay_up_to';
1246
+ /** Maximum gas budget (only for "pay_up_to") */
1247
+ max_budget?: string;
1248
+ }
1249
+ /** Result of setting or resolving a username. */
1250
+ export interface UsernameResult {
1251
+ /** The username */
1252
+ username: string;
1253
+ /** The DID associated with the username */
1254
+ did: string;
1255
+ }
1256
+ /** Usage statistics for a skill. */
1257
+ export interface SkillUsage {
1258
+ /** Skill identifier */
1259
+ skill_id: string;
1260
+ /** Total number of invocations */
1261
+ total_invocations: number;
1262
+ /** Timestamp of last usage (ISO 8601), or null if never used */
1263
+ last_used: string | null;
1264
+ }
1265
+ /** Usage statistics for a tool. */
1266
+ export interface ToolUsage {
1267
+ /** Tool identifier */
1268
+ tool_id: string;
1269
+ /** Total number of invocations */
1270
+ total_invocations: number;
1271
+ /** Timestamp of last usage (ISO 8601), or null if never used */
1272
+ last_used: string | null;
1273
+ }
1274
+ /** Statistics for an agent template. */
1275
+ export interface AgentTemplateStats {
1276
+ /** Template identifier */
1277
+ template_id: string;
1278
+ /** Total number of spawns */
1279
+ total_spawns: number;
1280
+ /** Average rating */
1281
+ average_rating: number;
1282
+ /** Total number of reviews */
1283
+ total_reviews: number;
1284
+ /** Total number of downloads */
1285
+ total_downloads: number;
1286
+ }
1287
+ /** Staking balance information. */
1288
+ export interface StakingBalance {
1289
+ /** Address queried */
1290
+ address: Address;
1291
+ /** Total staked amount */
1292
+ staked: string;
1293
+ /** Available (unstaked) balance */
1294
+ available: string;
1295
+ /** Staking role */
1296
+ role?: string;
1297
+ }
1298
+ /** Staking rewards information. */
1299
+ export interface StakingRewards {
1300
+ /** Address queried */
1301
+ address: Address;
1302
+ /** Pending (unclaimed) rewards */
1303
+ pending: string;
1304
+ /** Total claimed rewards to date */
1305
+ total_claimed: string;
1306
+ /** Current epoch */
1307
+ epoch: number;
1308
+ }
1309
+ /** An entry in the unbonding queue. */
1310
+ export interface UnbondingEntry {
1311
+ /** Amount being unbonded */
1312
+ amount: string;
1313
+ /** Timestamp when unbonding completes */
1314
+ completion_time: Timestamp;
1315
+ /** Whether this entry is ready to withdraw */
1316
+ ready: boolean;
1317
+ }
1318
+ //# sourceMappingURL=types.d.ts.map