@dfns/sdk 0.4.3 → 0.5.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 (102) hide show
  1. package/dfnsApiClient.d.ts +0 -6
  2. package/dfnsApiClient.js +0 -12
  3. package/dfnsDelegatedApiClient.d.ts +0 -6
  4. package/dfnsDelegatedApiClient.js +0 -12
  5. package/generated/auth/client.d.ts +2 -0
  6. package/generated/auth/client.js +24 -0
  7. package/generated/auth/delegatedClient.d.ts +2 -0
  8. package/generated/auth/delegatedClient.js +24 -0
  9. package/generated/auth/types.d.ts +66 -12
  10. package/generated/permissions/types.d.ts +2 -2
  11. package/generated/policies/types.d.ts +15 -0
  12. package/generated/wallets/types.d.ts +105 -18
  13. package/package.json +1 -1
  14. package/store.d.ts +3 -32
  15. package/codegen/Assets/AssetsClient.d.ts +0 -13
  16. package/codegen/Assets/AssetsClient.js +0 -93
  17. package/codegen/Assets/DelegatedAssetsClient.d.ts +0 -16
  18. package/codegen/Assets/DelegatedAssetsClient.js +0 -124
  19. package/codegen/Assets/index.d.ts +0 -3
  20. package/codegen/Assets/index.js +0 -19
  21. package/codegen/Assets/types.d.ts +0 -37
  22. package/codegen/Assets/types.js +0 -2
  23. package/codegen/Auth/AuthClient.d.ts +0 -50
  24. package/codegen/Auth/AuthClient.js +0 -518
  25. package/codegen/Auth/DelegatedAuthClient.d.ts +0 -78
  26. package/codegen/Auth/DelegatedAuthClient.js +0 -936
  27. package/codegen/Auth/index.d.ts +0 -3
  28. package/codegen/Auth/index.js +0 -19
  29. package/codegen/Auth/types.d.ts +0 -177
  30. package/codegen/Auth/types.js +0 -2
  31. package/codegen/Callbacks/CallbacksClient.d.ts +0 -12
  32. package/codegen/Callbacks/CallbacksClient.js +0 -78
  33. package/codegen/Callbacks/DelegatedCallbacksClient.d.ts +0 -15
  34. package/codegen/Callbacks/DelegatedCallbacksClient.js +0 -110
  35. package/codegen/Callbacks/index.d.ts +0 -3
  36. package/codegen/Callbacks/index.js +0 -19
  37. package/codegen/Callbacks/types.d.ts +0 -23
  38. package/codegen/Callbacks/types.js +0 -2
  39. package/codegen/PublicKeys/DelegatedPublicKeysClient.d.ts +0 -21
  40. package/codegen/PublicKeys/DelegatedPublicKeysClient.js +0 -189
  41. package/codegen/PublicKeys/PublicKeysClient.d.ts +0 -16
  42. package/codegen/PublicKeys/PublicKeysClient.js +0 -128
  43. package/codegen/PublicKeys/index.d.ts +0 -3
  44. package/codegen/PublicKeys/index.js +0 -19
  45. package/codegen/PublicKeys/types.d.ts +0 -51
  46. package/codegen/PublicKeys/types.js +0 -2
  47. package/codegen/Wallets/DelegatedWalletsClient.d.ts +0 -32
  48. package/codegen/Wallets/DelegatedWalletsClient.js +0 -325
  49. package/codegen/Wallets/WalletsClient.d.ts +0 -24
  50. package/codegen/Wallets/WalletsClient.js +0 -219
  51. package/codegen/Wallets/index.d.ts +0 -3
  52. package/codegen/Wallets/index.js +0 -19
  53. package/codegen/Wallets/types.d.ts +0 -101
  54. package/codegen/Wallets/types.js +0 -2
  55. package/codegen/datamodel/Assets/errors.d.ts +0 -11
  56. package/codegen/datamodel/Assets/errors.js +0 -17
  57. package/codegen/datamodel/Assets/index.d.ts +0 -3
  58. package/codegen/datamodel/Assets/index.js +0 -19
  59. package/codegen/datamodel/Assets/responses.d.ts +0 -47
  60. package/codegen/datamodel/Assets/responses.js +0 -2
  61. package/codegen/datamodel/Assets/types.d.ts +0 -219
  62. package/codegen/datamodel/Assets/types.js +0 -75
  63. package/codegen/datamodel/Auth/errors.d.ts +0 -0
  64. package/codegen/datamodel/Auth/errors.js +0 -1
  65. package/codegen/datamodel/Auth/index.d.ts +0 -2
  66. package/codegen/datamodel/Auth/index.js +0 -18
  67. package/codegen/datamodel/Auth/responses.d.ts +0 -358
  68. package/codegen/datamodel/Auth/responses.js +0 -2
  69. package/codegen/datamodel/Auth/types.d.ts +0 -933
  70. package/codegen/datamodel/Auth/types.js +0 -149
  71. package/codegen/datamodel/Callbacks/errors.d.ts +0 -0
  72. package/codegen/datamodel/Callbacks/errors.js +0 -1
  73. package/codegen/datamodel/Callbacks/index.d.ts +0 -2
  74. package/codegen/datamodel/Callbacks/index.js +0 -18
  75. package/codegen/datamodel/Callbacks/responses.d.ts +0 -36
  76. package/codegen/datamodel/Callbacks/responses.js +0 -2
  77. package/codegen/datamodel/Callbacks/types.d.ts +0 -43
  78. package/codegen/datamodel/Callbacks/types.js +0 -39
  79. package/codegen/datamodel/Foundations/errors.d.ts +0 -131
  80. package/codegen/datamodel/Foundations/errors.js +0 -182
  81. package/codegen/datamodel/Foundations/index.d.ts +0 -2
  82. package/codegen/datamodel/Foundations/index.js +0 -18
  83. package/codegen/datamodel/Foundations/responses.d.ts +0 -0
  84. package/codegen/datamodel/Foundations/responses.js +0 -1
  85. package/codegen/datamodel/Foundations/types.d.ts +0 -9795
  86. package/codegen/datamodel/Foundations/types.js +0 -57763
  87. package/codegen/datamodel/PublicKeys/errors.d.ts +0 -0
  88. package/codegen/datamodel/PublicKeys/errors.js +0 -1
  89. package/codegen/datamodel/PublicKeys/index.d.ts +0 -2
  90. package/codegen/datamodel/PublicKeys/index.js +0 -18
  91. package/codegen/datamodel/PublicKeys/responses.d.ts +0 -56
  92. package/codegen/datamodel/PublicKeys/responses.js +0 -2
  93. package/codegen/datamodel/PublicKeys/types.d.ts +0 -223
  94. package/codegen/datamodel/PublicKeys/types.js +0 -59
  95. package/codegen/datamodel/Wallets/errors.d.ts +0 -0
  96. package/codegen/datamodel/Wallets/errors.js +0 -1
  97. package/codegen/datamodel/Wallets/index.d.ts +0 -2
  98. package/codegen/datamodel/Wallets/index.js +0 -18
  99. package/codegen/datamodel/Wallets/responses.d.ts +0 -92
  100. package/codegen/datamodel/Wallets/responses.js +0 -2
  101. package/codegen/datamodel/Wallets/types.d.ts +0 -790
  102. package/codegen/datamodel/Wallets/types.js +0 -293
@@ -1,790 +0,0 @@
1
- import { Amount, BlockchainAddress, EntityId, IntegerPositiveStrict, IsoDatetime, Tag } from '../Foundations';
2
- /**
3
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
4
- */
5
- export type TransferNativeAsset = {
6
- kind: TransferKind.Native;
7
- to: BlockchainAddress;
8
- amount: Amount;
9
- };
10
- /**
11
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
12
- */
13
- export type TransferAsaAsset = {
14
- kind: TransferKind.Asa;
15
- assetId: string;
16
- to: BlockchainAddress;
17
- amount: Amount;
18
- };
19
- /**
20
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
21
- */
22
- export type TransferErc20Asset = {
23
- kind: TransferKind.Erc20;
24
- contract: BlockchainAddress;
25
- to: BlockchainAddress;
26
- amount: Amount;
27
- };
28
- /**
29
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
30
- */
31
- export type TransferErc721Asset = {
32
- kind: TransferKind.Erc721;
33
- contract: BlockchainAddress;
34
- to: BlockchainAddress;
35
- tokenId: string;
36
- };
37
- /**
38
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
39
- */
40
- export type TransferTrc10Asset = {
41
- kind: TransferKind.Trc10;
42
- tokenId: string;
43
- to: BlockchainAddress;
44
- amount: Amount;
45
- };
46
- /**
47
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
48
- */
49
- export type TransferTrc20Asset = {
50
- kind: TransferKind.Trc20;
51
- contract: BlockchainAddress;
52
- to: BlockchainAddress;
53
- amount: Amount;
54
- };
55
- /**
56
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
57
- */
58
- export type TransferTrc721Asset = {
59
- kind: TransferKind.Trc721;
60
- contract: BlockchainAddress;
61
- to: BlockchainAddress;
62
- tokenId: string;
63
- };
64
- /**
65
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
66
- */
67
- export type BroadcastTransaction = {
68
- kind: TransactionKind.Transaction;
69
- transaction: string;
70
- };
71
- /**
72
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
73
- */
74
- export type BroadcastEvmTransaction = {
75
- kind: TransactionKind.Evm;
76
- to?: BlockchainAddress;
77
- value?: Amount;
78
- data?: string;
79
- nonce?: number;
80
- };
81
- /**
82
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
83
- */
84
- export type BroadcastEip1559Transaction = {
85
- kind: TransactionKind.Eip1559;
86
- to?: BlockchainAddress;
87
- value?: Amount;
88
- data?: string;
89
- nonce?: number;
90
- gasLimit?: Amount;
91
- maxPriorityFeePerGas?: Amount;
92
- maxFeePerGas?: Amount;
93
- };
94
- /**
95
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
96
- */
97
- export type BroadcastEvmLegacyTransaction = {
98
- kind: TransactionKind.EvmLegacy;
99
- to?: BlockchainAddress;
100
- value?: Amount;
101
- data?: string;
102
- nonce?: number;
103
- gasLimit?: Amount;
104
- gasPrice?: Amount;
105
- };
106
- /**
107
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
108
- */
109
- export type BroadcastPsbt = {
110
- kind: TransactionKind.Psbt;
111
- psbt: string;
112
- };
113
- /**
114
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
115
- */
116
- export type SignHash = {
117
- kind: SignatureKind.Hash;
118
- hash: string;
119
- };
120
- /**
121
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
122
- */
123
- export type SignMessage = {
124
- kind: SignatureKind.Message;
125
- message: string;
126
- };
127
- /**
128
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
129
- */
130
- export type SignTransaction = {
131
- kind: SignatureKind.Transaction;
132
- transaction: string;
133
- };
134
- /**
135
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
136
- */
137
- export type Eip712Domain = {
138
- name?: string;
139
- version?: string;
140
- chainId?: number;
141
- verifyingContract?: BlockchainAddress;
142
- salt?: string;
143
- };
144
- /**
145
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
146
- */
147
- export type SignEip712TypedData = {
148
- kind: SignatureKind.Eip712;
149
- types: Record<string, unknown>;
150
- domain: Eip712Domain;
151
- message: Record<string, unknown>;
152
- };
153
- /**
154
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
155
- */
156
- export type SignPsbt = {
157
- kind: SignatureKind.Psbt;
158
- psbt: string;
159
- };
160
- /**
161
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
162
- */
163
- export type EncryptedKeyShare = {
164
- /**
165
- * Base64-encoded ID of the signer where the encrypted key share comes from.
166
- */
167
- signerId: string;
168
- /**
169
- * Base64-encoded key share.
170
- */
171
- encryptedKeyShare: string;
172
- };
173
- /**
174
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
175
- */
176
- export type SupportedExportScheme = {
177
- /**
178
- * Base64-encoded ID of the signer where the encrypted key share comes from.
179
- */
180
- curve: KeyCurve;
181
- /**
182
- * Base64-encoded key share.
183
- */
184
- protocol: KeyProtocol;
185
- };
186
- /**
187
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
188
- */
189
- export type Wallet = {
190
- id: EntityId;
191
- network: BlockchainNetwork;
192
- status: WalletStatus;
193
- signingKey: SigningKey;
194
- address?: string;
195
- name?: string;
196
- externalId?: string;
197
- tags: Tag[];
198
- dateCreated: IsoDatetime;
199
- /**
200
- * If present, represents the moment when the wallet was exported for the first time.
201
- */
202
- dateExported?: IsoDatetime;
203
- /**
204
- * Whether the wallet was imported, or if it was generated on Dfns side.
205
- */
206
- imported?: boolean;
207
- /**
208
- * Whether the wallet was ever exported.
209
- */
210
- exported?: boolean;
211
- };
212
- /**
213
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
214
- */
215
- export type SigningKey = {
216
- scheme: KeyScheme;
217
- curve: KeyCurve;
218
- publicKey: string;
219
- };
220
- /**
221
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
222
- */
223
- export type WalletAssets = {
224
- walletId: EntityId;
225
- network: BlockchainNetwork;
226
- assets: WalletAsset[];
227
- };
228
- /**
229
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
230
- */
231
- export type WalletAsset = {
232
- kind: BalanceKind;
233
- assetId?: string;
234
- contract?: string;
235
- tokenId?: string;
236
- symbol?: string;
237
- decimals: number;
238
- verified?: boolean;
239
- balance: Amount;
240
- };
241
- /**
242
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
243
- */
244
- export type WalletNfts = {
245
- walletId: EntityId;
246
- network: BlockchainNetwork;
247
- nfts: WalletNft[];
248
- };
249
- /**
250
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
251
- */
252
- export type WalletNft = {
253
- kind: BalanceKind;
254
- contract?: string;
255
- symbol?: string;
256
- verified?: boolean;
257
- tokenIds: string[];
258
- count: number;
259
- };
260
- /**
261
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
262
- */
263
- export type PaginatedWalletList = {
264
- items: Wallet[];
265
- nextPageToken?: string;
266
- };
267
- /**
268
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
269
- */
270
- export type NativeTransferEvent = {
271
- kind: EventKind.NativeTransfer;
272
- walletId: EntityId;
273
- network: BlockchainNetwork;
274
- blockNumber: number;
275
- txHash: string;
276
- index?: string;
277
- timestamp: IsoDatetime;
278
- fee?: Amount;
279
- direction: TransferDirection;
280
- from: BlockchainAddress;
281
- to: BlockchainAddress;
282
- value: Amount;
283
- metadata: BlockchainEventMetadata;
284
- };
285
- /**
286
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
287
- */
288
- export type AsaTransferEvent = {
289
- kind: EventKind.AsaTransfer;
290
- walletId: EntityId;
291
- network: BlockchainNetwork;
292
- blockNumber: number;
293
- txHash: string;
294
- index?: string;
295
- timestamp: IsoDatetime;
296
- fee?: Amount;
297
- direction: TransferDirection;
298
- assetId: string;
299
- from: BlockchainAddress;
300
- to: BlockchainAddress;
301
- value: Amount;
302
- metadata: BlockchainEventMetadata;
303
- optIn?: boolean;
304
- optOut?: boolean;
305
- clawback?: boolean;
306
- };
307
- /**
308
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
309
- */
310
- export type Erc20TransferEvent = {
311
- kind: EventKind.Erc20Transfer;
312
- walletId: EntityId;
313
- network: BlockchainNetwork;
314
- blockNumber: number;
315
- txHash: string;
316
- index?: string;
317
- timestamp: IsoDatetime;
318
- fee?: Amount;
319
- direction: TransferDirection;
320
- contract: BlockchainAddress;
321
- from: BlockchainAddress;
322
- to: BlockchainAddress;
323
- value: Amount;
324
- metadata: BlockchainEventMetadata;
325
- };
326
- /**
327
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
328
- */
329
- export type Erc721TransferEvent = {
330
- kind: EventKind.Erc721Transfer;
331
- walletId: EntityId;
332
- network: BlockchainNetwork;
333
- blockNumber: number;
334
- txHash: string;
335
- index?: string;
336
- timestamp: IsoDatetime;
337
- fee?: Amount;
338
- direction: TransferDirection;
339
- contract: BlockchainAddress;
340
- from: BlockchainAddress;
341
- to: BlockchainAddress;
342
- tokenId: string;
343
- metadata: BlockchainEventMetadata;
344
- };
345
- /**
346
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
347
- */
348
- export type Trc10TransferEvent = {
349
- kind: EventKind.Trc10Transfer;
350
- walletId: EntityId;
351
- network: BlockchainNetwork;
352
- blockNumber: number;
353
- txHash: string;
354
- index?: string;
355
- timestamp: IsoDatetime;
356
- fee?: Amount;
357
- direction: TransferDirection;
358
- tokenId: string;
359
- from: BlockchainAddress;
360
- to: BlockchainAddress;
361
- value: Amount;
362
- metadata: BlockchainEventMetadata;
363
- };
364
- /**
365
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
366
- */
367
- export type Trc20TransferEvent = {
368
- kind: EventKind.Trc20Transfer;
369
- walletId: EntityId;
370
- network: BlockchainNetwork;
371
- blockNumber: number;
372
- txHash: string;
373
- index?: string;
374
- timestamp: IsoDatetime;
375
- fee?: Amount;
376
- direction: TransferDirection;
377
- contract: BlockchainAddress;
378
- from: BlockchainAddress;
379
- to: BlockchainAddress;
380
- value: Amount;
381
- metadata: BlockchainEventMetadata;
382
- };
383
- /**
384
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
385
- */
386
- export type Trc721TransferEvent = {
387
- kind: EventKind.Trc721Transfer;
388
- walletId: EntityId;
389
- network: BlockchainNetwork;
390
- blockNumber: number;
391
- txHash: string;
392
- index?: string;
393
- timestamp: IsoDatetime;
394
- fee?: Amount;
395
- direction: TransferDirection;
396
- contract: BlockchainAddress;
397
- from: BlockchainAddress;
398
- to: BlockchainAddress;
399
- tokenId: string;
400
- metadata: BlockchainEventMetadata;
401
- };
402
- /**
403
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
404
- */
405
- export type PaginatedEventHistory = {
406
- walletId: EntityId;
407
- network: BlockchainNetwork;
408
- items: BlockchainEvent[];
409
- nextPageToken?: string;
410
- };
411
- /**
412
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
413
- */
414
- export type TransferRequest = {
415
- id: EntityId;
416
- walletId: EntityId;
417
- network: BlockchainNetwork;
418
- requester: RequesterIdentity;
419
- requestBody: TransferAssetBody;
420
- status: TransferStatus;
421
- txHash?: string;
422
- fee?: Amount;
423
- dateRequested: IsoDatetime;
424
- datePolicyEvaluated?: IsoDatetime;
425
- dateBroadcasted?: IsoDatetime;
426
- dateConfirmed?: IsoDatetime;
427
- reason?: string;
428
- metadata: TransferRequestMetadata;
429
- };
430
- /**
431
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
432
- */
433
- export type PaginatedTransferList = {
434
- walletId: EntityId;
435
- items: TransferRequest[];
436
- nextPageToken?: string;
437
- };
438
- /**
439
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
440
- */
441
- export type TransactionRequest = {
442
- id: EntityId;
443
- walletId: EntityId;
444
- network: BlockchainNetwork;
445
- requester: RequesterIdentity;
446
- requestBody: BroadcastTransactionBody;
447
- status: TransactionStatus;
448
- txHash?: string;
449
- fee?: Amount;
450
- dateRequested: IsoDatetime;
451
- datePolicyEvaluated?: IsoDatetime;
452
- dateBroadcasted?: IsoDatetime;
453
- dateConfirmed?: IsoDatetime;
454
- reason?: string;
455
- };
456
- /**
457
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
458
- */
459
- export type PaginatedTransactionList = {
460
- walletId: EntityId;
461
- items: TransactionRequest[];
462
- nextPageToken?: string;
463
- };
464
- /**
465
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
466
- */
467
- export type Signature = {
468
- r: string;
469
- s: string;
470
- recid?: number;
471
- encoded?: string;
472
- };
473
- /**
474
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
475
- */
476
- export type SignatureRequest = {
477
- id: EntityId;
478
- walletId: EntityId;
479
- network: BlockchainNetwork;
480
- requester: RequesterIdentity;
481
- requestBody: GenerateSignatureBody;
482
- signature?: Signature;
483
- signatures?: Signature[];
484
- signedData?: string;
485
- status: SignatureStatus;
486
- txHash?: string;
487
- fee?: Amount;
488
- dateRequested: IsoDatetime;
489
- datePolicyEvaluated?: IsoDatetime;
490
- dateSigned?: IsoDatetime;
491
- dateConfirmed?: IsoDatetime;
492
- reason?: string;
493
- };
494
- /**
495
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
496
- */
497
- export type PaginatedSignatureList = {
498
- walletId: EntityId;
499
- items: SignatureRequest[];
500
- nextPageToken?: string;
501
- };
502
- /**
503
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
504
- */
505
- export type RequesterIdentity = {
506
- userId: EntityId;
507
- tokenId?: EntityId;
508
- appId?: EntityId;
509
- };
510
- /**
511
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
512
- */
513
- export type AssetMetadata = {
514
- symbol?: string;
515
- decimals?: number;
516
- verified?: boolean;
517
- };
518
- /**
519
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
520
- */
521
- export type TransferRequestMetadata = {
522
- asset: AssetMetadata;
523
- };
524
- /**
525
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
526
- */
527
- export type BlockchainEventMetadata = {
528
- asset: AssetMetadata;
529
- fee?: AssetMetadata;
530
- };
531
- /**
532
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
533
- */
534
- export type ExportedSigningKey = {
535
- publicKey: string;
536
- /**
537
- * The TSS threshold parameter of this wallet private signing key shares.
538
- */
539
- minSigners: IntegerPositiveStrict;
540
- curve: KeyCurve;
541
- protocol: KeyProtocol;
542
- /**
543
- * Key shares of the exported wallet. These key shares are encrypted with the provided encryption key. The wallet private key must then be re-constructed from them.
544
- */
545
- encryptedKeyShares: EncryptedKeyShare[];
546
- };
547
- /**
548
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
549
- */
550
- export type DelegateWalletResult = {
551
- walletId: EntityId;
552
- status: string;
553
- };
554
- /**
555
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
556
- */
557
- export type CreateWalletBody = {
558
- network: BlockchainNetwork;
559
- /**
560
- * If delayDelegation is true, the wallet will be marked as "delegable". Meaning that later, you will be able to "delegate" (transfer) this wallet's ownership to an end-user, by calling the "Delegated Wallet" endpoint .
561
- */
562
- delayDelegation?: string;
563
- externalId?: string;
564
- tags?: Tag[];
565
- name?: string;
566
- };
567
- /**
568
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
569
- */
570
- export type ImportWalletBody = {
571
- network: BlockchainNetwork;
572
- externalId?: string;
573
- tags?: Tag[];
574
- name?: string;
575
- minSigners: IntegerPositiveStrict;
576
- protocol: KeyProtocol;
577
- curve: KeyCurve;
578
- encryptedKeyShares: EncryptedKeyShare[];
579
- };
580
- /**
581
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
582
- */
583
- export type ExportWalletBody = {
584
- /**
585
- * Encryption public key that will be used by signers to encrypt the exported wallet key shares. The purpose of encrypting key shares is to have them extra-safe and not usable in any place in the system until they are safely returned back to the client issuing the export command.
586
- */
587
- encryptionKey: string;
588
- /**
589
- * The schemes supported by the client issuing the export request, for private key reconstruction.
590
- */
591
- supportedSchemes: SupportedExportScheme[];
592
- };
593
- /**
594
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
595
- */
596
- export type DelegateWalletBody = {
597
- /**
598
- * Encryption public key that will be used by signers to encrypt the exported wallet key shares. The purpose of encrypting key shares is to have them extra-safe and not usable in any place in the system until they are safely returned back to the client issuing the export command.
599
- */
600
- userId: EntityId;
601
- };
602
- /**
603
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
604
- */
605
- export type TransferAssetBody = TransferNativeAsset | TransferAsaAsset | TransferErc20Asset | TransferErc721Asset | TransferTrc10Asset | TransferTrc20Asset | TransferTrc721Asset;
606
- /**
607
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
608
- */
609
- export type BroadcastTransactionBody = BroadcastTransaction | BroadcastEvmTransaction | BroadcastEip1559Transaction | BroadcastEvmLegacyTransaction | BroadcastPsbt;
610
- /**
611
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
612
- */
613
- export type GenerateSignatureBody = SignHash | SignMessage | SignTransaction | SignEip712TypedData | SignPsbt;
614
- /**
615
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
616
- */
617
- export type BlockchainEvent = NativeTransferEvent | AsaTransferEvent | Erc20TransferEvent | Erc721TransferEvent | Trc10TransferEvent | Trc20TransferEvent | Trc721TransferEvent;
618
- /**
619
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
620
- */
621
- export declare enum TransferKind {
622
- Native = "Native",
623
- Asa = "Asa",
624
- Erc20 = "Erc20",
625
- Erc721 = "Erc721",
626
- Trc10 = "Trc10",
627
- Trc20 = "Trc20",
628
- Trc721 = "Trc721"
629
- }
630
- /**
631
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
632
- */
633
- export declare enum TransactionKind {
634
- Transaction = "Transaction",
635
- Evm = "Evm",
636
- Eip1559 = "Eip1559",
637
- EvmLegacy = "EvmLegacy",
638
- Psbt = "Psbt"
639
- }
640
- /**
641
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
642
- */
643
- export declare enum SignatureKind {
644
- Hash = "Hash",
645
- Message = "Message",
646
- Transaction = "Transaction",
647
- Eip712 = "Eip712",
648
- Psbt = "Psbt"
649
- }
650
- /**
651
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
652
- */
653
- export declare enum WalletStatus {
654
- Active = "Active",
655
- Archived = "Archived"
656
- }
657
- /**
658
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
659
- */
660
- export declare enum KeyScheme {
661
- ECDSA = "ECDSA",
662
- EdDSA = "EdDSA"
663
- }
664
- /**
665
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
666
- */
667
- export declare enum KeyCurve {
668
- ed25519 = "ed25519",
669
- secp256k1 = "secp256k1",
670
- stark = "stark"
671
- }
672
- /**
673
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
674
- */
675
- export declare enum KeyProtocol {
676
- CGGMP21 = "CGGMP21",
677
- BINANCE_EDDSA = "BINANCE_EDDSA"
678
- }
679
- /**
680
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
681
- */
682
- export declare enum BalanceKind {
683
- Native = "Native",
684
- Asa = "Asa",
685
- Erc20 = "Erc20",
686
- Erc721 = "Erc721",
687
- Trc10 = "Trc10",
688
- Trc20 = "Trc20",
689
- Trc721 = "Trc721"
690
- }
691
- /**
692
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
693
- */
694
- export declare enum EventKind {
695
- NativeTransfer = "NativeTransfer",
696
- AsaTransfer = "AsaTransfer",
697
- Erc20Transfer = "Erc20Transfer",
698
- Erc721Transfer = "Erc721Transfer",
699
- Trc10Transfer = "Trc10Transfer",
700
- Trc20Transfer = "Trc20Transfer",
701
- Trc721Transfer = "Trc721Transfer"
702
- }
703
- /**
704
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
705
- */
706
- export declare enum TransferDirection {
707
- In = "In",
708
- Out = "Out"
709
- }
710
- /**
711
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
712
- */
713
- export declare enum TransferStatus {
714
- Pending = "Pending",
715
- Executing = "Executing",
716
- Broadcasted = "Broadcasted",
717
- Confirmed = "Confirmed",
718
- Failed = "Failed",
719
- Rejected = "Rejected"
720
- }
721
- /**
722
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
723
- */
724
- export declare enum TransactionStatus {
725
- Pending = "Pending",
726
- Executing = "Executing",
727
- Broadcasted = "Broadcasted",
728
- Confirmed = "Confirmed",
729
- Failed = "Failed",
730
- Rejected = "Rejected"
731
- }
732
- /**
733
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
734
- */
735
- export declare enum SignatureStatus {
736
- Pending = "Pending",
737
- Executing = "Executing",
738
- Signed = "Signed",
739
- Confirmed = "Confirmed",
740
- Failed = "Failed",
741
- Rejected = "Rejected"
742
- }
743
- /**
744
- * @deprecated import equivalent type from '@dfns/sdk/types/wallets' instead
745
- */
746
- export declare enum BlockchainNetwork {
747
- Algorand = "Algorand",
748
- AlgorandTestnet = "AlgorandTestnet",
749
- ArbitrumOne = "ArbitrumOne",
750
- ArbitrumGoerli = "ArbitrumGoerli",
751
- ArbitrumSepolia = "ArbitrumSepolia",
752
- AvalancheC = "AvalancheC",
753
- AvalancheCFuji = "AvalancheCFuji",
754
- Base = "Base",
755
- BaseGoerli = "BaseGoerli",
756
- BaseSepolia = "BaseSepolia",
757
- Bitcoin = "Bitcoin",
758
- BitcoinTestnet3 = "BitcoinTestnet3",
759
- Bsc = "Bsc",
760
- BscTestnet = "BscTestnet",
761
- Cardano = "Cardano",
762
- CardanoPreprod = "CardanoPreprod",
763
- Ethereum = "Ethereum",
764
- EthereumGoerli = "EthereumGoerli",
765
- EthereumSepolia = "EthereumSepolia",
766
- FantomOpera = "FantomOpera",
767
- FantomTestnet = "FantomTestnet",
768
- Kusama = "Kusama",
769
- Litecoin = "Litecoin",
770
- LitecoinTestnet = "LitecoinTestnet",
771
- Optimism = "Optimism",
772
- OptimismGoerli = "OptimismGoerli",
773
- OptimismSepolia = "OptimismSepolia",
774
- Polkadot = "Polkadot",
775
- Polygon = "Polygon",
776
- PolygonAmoy = "PolygonAmoy",
777
- PolygonMumbai = "PolygonMumbai",
778
- Solana = "Solana",
779
- SolanaDevnet = "SolanaDevnet",
780
- Tezos = "Tezos",
781
- TezosGhostnet = "TezosGhostnet",
782
- Tron = "Tron",
783
- TronNile = "TronNile",
784
- Westend = "Westend",
785
- XrpLedger = "XrpLedger",
786
- XrpLedgerTestnet = "XrpLedgerTestnet",
787
- KeyECDSA = "KeyECDSA",
788
- KeyEdDSA = "KeyEdDSA",
789
- KeyECDSAStark = "KeyECDSAStark"
790
- }