@dfns/sdk 0.4.3 → 0.5.2-rc.1

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 (103) 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 +2329 -526
  12. package/generated/wallets/types.d.ts +111 -24
  13. package/generated/webhooks/types.d.ts +9 -9
  14. package/package.json +1 -1
  15. package/store.d.ts +3 -32
  16. package/codegen/Assets/AssetsClient.d.ts +0 -13
  17. package/codegen/Assets/AssetsClient.js +0 -93
  18. package/codegen/Assets/DelegatedAssetsClient.d.ts +0 -16
  19. package/codegen/Assets/DelegatedAssetsClient.js +0 -124
  20. package/codegen/Assets/index.d.ts +0 -3
  21. package/codegen/Assets/index.js +0 -19
  22. package/codegen/Assets/types.d.ts +0 -37
  23. package/codegen/Assets/types.js +0 -2
  24. package/codegen/Auth/AuthClient.d.ts +0 -50
  25. package/codegen/Auth/AuthClient.js +0 -518
  26. package/codegen/Auth/DelegatedAuthClient.d.ts +0 -78
  27. package/codegen/Auth/DelegatedAuthClient.js +0 -936
  28. package/codegen/Auth/index.d.ts +0 -3
  29. package/codegen/Auth/index.js +0 -19
  30. package/codegen/Auth/types.d.ts +0 -177
  31. package/codegen/Auth/types.js +0 -2
  32. package/codegen/Callbacks/CallbacksClient.d.ts +0 -12
  33. package/codegen/Callbacks/CallbacksClient.js +0 -78
  34. package/codegen/Callbacks/DelegatedCallbacksClient.d.ts +0 -15
  35. package/codegen/Callbacks/DelegatedCallbacksClient.js +0 -110
  36. package/codegen/Callbacks/index.d.ts +0 -3
  37. package/codegen/Callbacks/index.js +0 -19
  38. package/codegen/Callbacks/types.d.ts +0 -23
  39. package/codegen/Callbacks/types.js +0 -2
  40. package/codegen/PublicKeys/DelegatedPublicKeysClient.d.ts +0 -21
  41. package/codegen/PublicKeys/DelegatedPublicKeysClient.js +0 -189
  42. package/codegen/PublicKeys/PublicKeysClient.d.ts +0 -16
  43. package/codegen/PublicKeys/PublicKeysClient.js +0 -128
  44. package/codegen/PublicKeys/index.d.ts +0 -3
  45. package/codegen/PublicKeys/index.js +0 -19
  46. package/codegen/PublicKeys/types.d.ts +0 -51
  47. package/codegen/PublicKeys/types.js +0 -2
  48. package/codegen/Wallets/DelegatedWalletsClient.d.ts +0 -32
  49. package/codegen/Wallets/DelegatedWalletsClient.js +0 -325
  50. package/codegen/Wallets/WalletsClient.d.ts +0 -24
  51. package/codegen/Wallets/WalletsClient.js +0 -219
  52. package/codegen/Wallets/index.d.ts +0 -3
  53. package/codegen/Wallets/index.js +0 -19
  54. package/codegen/Wallets/types.d.ts +0 -101
  55. package/codegen/Wallets/types.js +0 -2
  56. package/codegen/datamodel/Assets/errors.d.ts +0 -11
  57. package/codegen/datamodel/Assets/errors.js +0 -17
  58. package/codegen/datamodel/Assets/index.d.ts +0 -3
  59. package/codegen/datamodel/Assets/index.js +0 -19
  60. package/codegen/datamodel/Assets/responses.d.ts +0 -47
  61. package/codegen/datamodel/Assets/responses.js +0 -2
  62. package/codegen/datamodel/Assets/types.d.ts +0 -219
  63. package/codegen/datamodel/Assets/types.js +0 -75
  64. package/codegen/datamodel/Auth/errors.d.ts +0 -0
  65. package/codegen/datamodel/Auth/errors.js +0 -1
  66. package/codegen/datamodel/Auth/index.d.ts +0 -2
  67. package/codegen/datamodel/Auth/index.js +0 -18
  68. package/codegen/datamodel/Auth/responses.d.ts +0 -358
  69. package/codegen/datamodel/Auth/responses.js +0 -2
  70. package/codegen/datamodel/Auth/types.d.ts +0 -933
  71. package/codegen/datamodel/Auth/types.js +0 -149
  72. package/codegen/datamodel/Callbacks/errors.d.ts +0 -0
  73. package/codegen/datamodel/Callbacks/errors.js +0 -1
  74. package/codegen/datamodel/Callbacks/index.d.ts +0 -2
  75. package/codegen/datamodel/Callbacks/index.js +0 -18
  76. package/codegen/datamodel/Callbacks/responses.d.ts +0 -36
  77. package/codegen/datamodel/Callbacks/responses.js +0 -2
  78. package/codegen/datamodel/Callbacks/types.d.ts +0 -43
  79. package/codegen/datamodel/Callbacks/types.js +0 -39
  80. package/codegen/datamodel/Foundations/errors.d.ts +0 -131
  81. package/codegen/datamodel/Foundations/errors.js +0 -182
  82. package/codegen/datamodel/Foundations/index.d.ts +0 -2
  83. package/codegen/datamodel/Foundations/index.js +0 -18
  84. package/codegen/datamodel/Foundations/responses.d.ts +0 -0
  85. package/codegen/datamodel/Foundations/responses.js +0 -1
  86. package/codegen/datamodel/Foundations/types.d.ts +0 -9795
  87. package/codegen/datamodel/Foundations/types.js +0 -57763
  88. package/codegen/datamodel/PublicKeys/errors.d.ts +0 -0
  89. package/codegen/datamodel/PublicKeys/errors.js +0 -1
  90. package/codegen/datamodel/PublicKeys/index.d.ts +0 -2
  91. package/codegen/datamodel/PublicKeys/index.js +0 -18
  92. package/codegen/datamodel/PublicKeys/responses.d.ts +0 -56
  93. package/codegen/datamodel/PublicKeys/responses.js +0 -2
  94. package/codegen/datamodel/PublicKeys/types.d.ts +0 -223
  95. package/codegen/datamodel/PublicKeys/types.js +0 -59
  96. package/codegen/datamodel/Wallets/errors.d.ts +0 -0
  97. package/codegen/datamodel/Wallets/errors.js +0 -1
  98. package/codegen/datamodel/Wallets/index.d.ts +0 -2
  99. package/codegen/datamodel/Wallets/index.js +0 -18
  100. package/codegen/datamodel/Wallets/responses.d.ts +0 -92
  101. package/codegen/datamodel/Wallets/responses.js +0 -2
  102. package/codegen/datamodel/Wallets/types.d.ts +0 -790
  103. package/codegen/datamodel/Wallets/types.js +0 -293
@@ -126,6 +126,28 @@ export type ArchivePolicyResponse = {
126
126
  limit: number;
127
127
  timeframe: number;
128
128
  };
129
+ } | {
130
+ kind: "ChainalysisTransactionPrescreening";
131
+ configuration: {
132
+ alerts: {
133
+ alertLevel: "LOW" | "MEDIUM" | "HIGH" | "SEVERE";
134
+ categoryIds: number[];
135
+ };
136
+ exposures: {
137
+ direct: {
138
+ categoryIds: number[];
139
+ };
140
+ };
141
+ addresses: {
142
+ categoryIds: number[];
143
+ };
144
+ fallbackBehaviours: {
145
+ skipUnscreenableTransaction: boolean;
146
+ skipUnsupportedNetwork: boolean;
147
+ skipUnsupportedAsset: boolean;
148
+ skipChainalysisFailure: boolean;
149
+ };
150
+ };
129
151
  };
130
152
  action: {
131
153
  kind: "RequestApproval";
@@ -141,6 +163,47 @@ export type ArchivePolicyResponse = {
141
163
  autoRejectTimeout?: (number | undefined) | null;
142
164
  } | {
143
165
  kind: "Block";
166
+ } | {
167
+ kind: "NoAction";
168
+ };
169
+ filters?: {
170
+ walletId?: {
171
+ in: string[];
172
+ } | undefined;
173
+ walletTags?: {
174
+ hasAny?: string[] | undefined;
175
+ hasAll?: string[] | undefined;
176
+ } | undefined;
177
+ } | undefined;
178
+ } | {
179
+ id: string;
180
+ name: string;
181
+ status: "Active" | "Archived";
182
+ dateCreated?: string | undefined;
183
+ dateUpdated?: string | undefined;
184
+ activityKind: "Wallets:IncomingTransaction";
185
+ rule: {
186
+ kind: "ChainalysisTransactionScreening";
187
+ configuration: {
188
+ alerts: {
189
+ alertLevel: "LOW" | "MEDIUM" | "HIGH" | "SEVERE";
190
+ categoryIds: number[];
191
+ };
192
+ exposures: {
193
+ direct: {
194
+ categoryIds: number[];
195
+ };
196
+ };
197
+ fallbackBehaviours: {
198
+ skipUnscreenableTransaction: boolean;
199
+ skipUnsupportedNetwork: boolean;
200
+ skipUnsupportedAsset: boolean;
201
+ skipChainalysisFailure: boolean;
202
+ };
203
+ };
204
+ };
205
+ action: {
206
+ kind: "NoAction";
144
207
  };
145
208
  filters?: {
146
209
  walletId?: {
@@ -219,6 +282,11 @@ export type CreateApprovalDecisionResponse = {
219
282
  to: string;
220
283
  amount: string;
221
284
  memo?: string | undefined;
285
+ } | {
286
+ kind: "Spl" | "Spl2022";
287
+ to: string;
288
+ amount: string;
289
+ mint: string;
222
290
  };
223
291
  metadata: {
224
292
  asset: {
@@ -353,6 +421,353 @@ export type CreateApprovalDecisionResponse = {
353
421
  dateSigned?: string | undefined;
354
422
  dateConfirmed?: string | undefined;
355
423
  } | undefined;
424
+ } | {
425
+ kind: "Wallets:IncomingTransaction";
426
+ blockchainEvent: {
427
+ walletId: string;
428
+ direction: "In" | "Out";
429
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
430
+ blockNumber: number;
431
+ txHash: string;
432
+ index?: string | undefined;
433
+ timestamp: string;
434
+ metadata: {
435
+ asset: {
436
+ symbol?: string | undefined;
437
+ decimals?: number | undefined;
438
+ verified?: boolean | undefined;
439
+ quotes?: {
440
+ [x: string]: number;
441
+ } | undefined;
442
+ };
443
+ fee?: {
444
+ symbol?: string | undefined;
445
+ decimals?: number | undefined;
446
+ verified?: boolean | undefined;
447
+ quotes?: {
448
+ [x: string]: number;
449
+ } | undefined;
450
+ } | undefined;
451
+ };
452
+ kind: "NativeTransfer";
453
+ from: string;
454
+ to: string;
455
+ value: string;
456
+ fee?: string | undefined;
457
+ memo?: string | undefined;
458
+ liquidityPool?: string | undefined;
459
+ balanceId?: string | undefined;
460
+ /** @deprecated use metadata.asset.symbol instead */
461
+ symbol: string;
462
+ /** @deprecated use metadata.asset.decimals instead */
463
+ decimals: number;
464
+ /** @deprecated use metadata.asset.verified instead */
465
+ verified?: boolean | undefined;
466
+ } | {
467
+ walletId: string;
468
+ direction: "In" | "Out";
469
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
470
+ blockNumber: number;
471
+ txHash: string;
472
+ index?: string | undefined;
473
+ timestamp: string;
474
+ metadata: {
475
+ asset: {
476
+ symbol?: string | undefined;
477
+ decimals?: number | undefined;
478
+ verified?: boolean | undefined;
479
+ quotes?: {
480
+ [x: string]: number;
481
+ } | undefined;
482
+ };
483
+ fee?: {
484
+ symbol?: string | undefined;
485
+ decimals?: number | undefined;
486
+ verified?: boolean | undefined;
487
+ quotes?: {
488
+ [x: string]: number;
489
+ } | undefined;
490
+ } | undefined;
491
+ };
492
+ kind: "AsaTransfer";
493
+ assetId: string;
494
+ from: string;
495
+ to: string;
496
+ value: string;
497
+ fee?: string | undefined;
498
+ optIn?: boolean | undefined;
499
+ optOut?: boolean | undefined;
500
+ clawback?: boolean | undefined;
501
+ } | {
502
+ walletId: string;
503
+ direction: "In" | "Out";
504
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
505
+ blockNumber: number;
506
+ txHash: string;
507
+ index?: string | undefined;
508
+ timestamp: string;
509
+ metadata: {
510
+ asset: {
511
+ symbol?: string | undefined;
512
+ decimals?: number | undefined;
513
+ verified?: boolean | undefined;
514
+ quotes?: {
515
+ [x: string]: number;
516
+ } | undefined;
517
+ };
518
+ fee?: {
519
+ symbol?: string | undefined;
520
+ decimals?: number | undefined;
521
+ verified?: boolean | undefined;
522
+ quotes?: {
523
+ [x: string]: number;
524
+ } | undefined;
525
+ } | undefined;
526
+ };
527
+ kind: "Erc20Transfer";
528
+ contract: string;
529
+ from: string;
530
+ to: string;
531
+ value: string;
532
+ fee?: string | undefined;
533
+ /** @deprecated use metadata.asset.symbol instead */
534
+ symbol?: string | undefined;
535
+ /** @deprecated use metadata.asset.decimals instead */
536
+ decimals: number;
537
+ /** @deprecated use metadata.asset.verified instead */
538
+ verified?: boolean | undefined;
539
+ } | {
540
+ walletId: string;
541
+ direction: "In" | "Out";
542
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
543
+ blockNumber: number;
544
+ txHash: string;
545
+ index?: string | undefined;
546
+ timestamp: string;
547
+ metadata: {
548
+ asset: {
549
+ symbol?: string | undefined;
550
+ decimals?: number | undefined;
551
+ verified?: boolean | undefined;
552
+ quotes?: {
553
+ [x: string]: number;
554
+ } | undefined;
555
+ };
556
+ fee?: {
557
+ symbol?: string | undefined;
558
+ decimals?: number | undefined;
559
+ verified?: boolean | undefined;
560
+ quotes?: {
561
+ [x: string]: number;
562
+ } | undefined;
563
+ } | undefined;
564
+ };
565
+ kind: "Erc721Transfer";
566
+ contract: string;
567
+ from: string;
568
+ to: string;
569
+ tokenId: string;
570
+ fee?: string | undefined;
571
+ /** @deprecated use metadata.asset.symbol instead */
572
+ symbol?: string | undefined;
573
+ /** @deprecated use metadata.asset.verified instead */
574
+ verified?: boolean | undefined;
575
+ } | {
576
+ walletId: string;
577
+ direction: "In" | "Out";
578
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
579
+ blockNumber: number;
580
+ txHash: string;
581
+ index?: string | undefined;
582
+ timestamp: string;
583
+ metadata: {
584
+ asset: {
585
+ symbol?: string | undefined;
586
+ decimals?: number | undefined;
587
+ verified?: boolean | undefined;
588
+ quotes?: {
589
+ [x: string]: number;
590
+ } | undefined;
591
+ };
592
+ fee?: {
593
+ symbol?: string | undefined;
594
+ decimals?: number | undefined;
595
+ verified?: boolean | undefined;
596
+ quotes?: {
597
+ [x: string]: number;
598
+ } | undefined;
599
+ } | undefined;
600
+ };
601
+ kind: "Sep41Transfer";
602
+ issuer: string;
603
+ assetCode: string;
604
+ from: string;
605
+ to: string;
606
+ value: string;
607
+ fee?: string | undefined;
608
+ memo?: string | undefined;
609
+ liquidityPool?: string | undefined;
610
+ balanceId?: string | undefined;
611
+ } | {
612
+ walletId: string;
613
+ direction: "In" | "Out";
614
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
615
+ blockNumber: number;
616
+ txHash: string;
617
+ index?: string | undefined;
618
+ timestamp: string;
619
+ metadata: {
620
+ asset: {
621
+ symbol?: string | undefined;
622
+ decimals?: number | undefined;
623
+ verified?: boolean | undefined;
624
+ quotes?: {
625
+ [x: string]: number;
626
+ } | undefined;
627
+ };
628
+ fee?: {
629
+ symbol?: string | undefined;
630
+ decimals?: number | undefined;
631
+ verified?: boolean | undefined;
632
+ quotes?: {
633
+ [x: string]: number;
634
+ } | undefined;
635
+ } | undefined;
636
+ };
637
+ kind: "SplTransfer" | "Spl2022Transfer";
638
+ from?: string | undefined;
639
+ to?: string | undefined;
640
+ mint: string;
641
+ value: string;
642
+ fee?: string | undefined;
643
+ } | {
644
+ walletId: string;
645
+ direction: "In" | "Out";
646
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
647
+ blockNumber: number;
648
+ txHash: string;
649
+ index?: string | undefined;
650
+ timestamp: string;
651
+ metadata: {
652
+ asset: {
653
+ symbol?: string | undefined;
654
+ decimals?: number | undefined;
655
+ verified?: boolean | undefined;
656
+ quotes?: {
657
+ [x: string]: number;
658
+ } | undefined;
659
+ };
660
+ fee?: {
661
+ symbol?: string | undefined;
662
+ decimals?: number | undefined;
663
+ verified?: boolean | undefined;
664
+ quotes?: {
665
+ [x: string]: number;
666
+ } | undefined;
667
+ } | undefined;
668
+ };
669
+ kind: "Trc10Transfer";
670
+ tokenId: string;
671
+ from: string;
672
+ to: string;
673
+ value: string;
674
+ fee?: string | undefined;
675
+ } | {
676
+ walletId: string;
677
+ direction: "In" | "Out";
678
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
679
+ blockNumber: number;
680
+ txHash: string;
681
+ index?: string | undefined;
682
+ timestamp: string;
683
+ metadata: {
684
+ asset: {
685
+ symbol?: string | undefined;
686
+ decimals?: number | undefined;
687
+ verified?: boolean | undefined;
688
+ quotes?: {
689
+ [x: string]: number;
690
+ } | undefined;
691
+ };
692
+ fee?: {
693
+ symbol?: string | undefined;
694
+ decimals?: number | undefined;
695
+ verified?: boolean | undefined;
696
+ quotes?: {
697
+ [x: string]: number;
698
+ } | undefined;
699
+ } | undefined;
700
+ };
701
+ kind: "Trc20Transfer";
702
+ contract: string;
703
+ from: string;
704
+ to: string;
705
+ value: string;
706
+ fee?: string | undefined;
707
+ } | {
708
+ walletId: string;
709
+ direction: "In" | "Out";
710
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
711
+ blockNumber: number;
712
+ txHash: string;
713
+ index?: string | undefined;
714
+ timestamp: string;
715
+ metadata: {
716
+ asset: {
717
+ symbol?: string | undefined;
718
+ decimals?: number | undefined;
719
+ verified?: boolean | undefined;
720
+ quotes?: {
721
+ [x: string]: number;
722
+ } | undefined;
723
+ };
724
+ fee?: {
725
+ symbol?: string | undefined;
726
+ decimals?: number | undefined;
727
+ verified?: boolean | undefined;
728
+ quotes?: {
729
+ [x: string]: number;
730
+ } | undefined;
731
+ } | undefined;
732
+ };
733
+ kind: "Trc721Transfer";
734
+ contract: string;
735
+ from: string;
736
+ to: string;
737
+ tokenId: string;
738
+ fee?: string | undefined;
739
+ } | {
740
+ walletId: string;
741
+ direction: "In" | "Out";
742
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
743
+ blockNumber: number;
744
+ txHash: string;
745
+ index?: string | undefined;
746
+ timestamp: string;
747
+ metadata: {
748
+ asset: {
749
+ symbol?: string | undefined;
750
+ decimals?: number | undefined;
751
+ verified?: boolean | undefined;
752
+ quotes?: {
753
+ [x: string]: number;
754
+ } | undefined;
755
+ };
756
+ fee?: {
757
+ symbol?: string | undefined;
758
+ decimals?: number | undefined;
759
+ verified?: boolean | undefined;
760
+ quotes?: {
761
+ [x: string]: number;
762
+ } | undefined;
763
+ } | undefined;
764
+ };
765
+ kind: "UtxoTransfer";
766
+ froms: string[];
767
+ tos: string[];
768
+ value: string;
769
+ fee?: string | undefined;
770
+ };
356
771
  } | {
357
772
  kind: "Policies:Modify";
358
773
  changeRequest: {
@@ -494,6 +909,28 @@ export type CreateApprovalDecisionResponse = {
494
909
  limit: number;
495
910
  timeframe: number;
496
911
  };
912
+ } | {
913
+ kind: "ChainalysisTransactionPrescreening";
914
+ configuration: {
915
+ alerts: {
916
+ alertLevel: "LOW" | "MEDIUM" | "HIGH" | "SEVERE";
917
+ categoryIds: number[];
918
+ };
919
+ exposures: {
920
+ direct: {
921
+ categoryIds: number[];
922
+ };
923
+ };
924
+ addresses: {
925
+ categoryIds: number[];
926
+ };
927
+ fallbackBehaviours: {
928
+ skipUnscreenableTransaction: boolean;
929
+ skipUnsupportedNetwork: boolean;
930
+ skipUnsupportedAsset: boolean;
931
+ skipChainalysisFailure: boolean;
932
+ };
933
+ };
497
934
  };
498
935
  action: {
499
936
  kind: "RequestApproval";
@@ -509,6 +946,47 @@ export type CreateApprovalDecisionResponse = {
509
946
  autoRejectTimeout?: (number | undefined) | null;
510
947
  } | {
511
948
  kind: "Block";
949
+ } | {
950
+ kind: "NoAction";
951
+ };
952
+ filters?: {
953
+ walletId?: {
954
+ in: string[];
955
+ } | undefined;
956
+ walletTags?: {
957
+ hasAny?: string[] | undefined;
958
+ hasAll?: string[] | undefined;
959
+ } | undefined;
960
+ } | undefined;
961
+ } | {
962
+ id: string;
963
+ name: string;
964
+ status: "Active" | "Archived";
965
+ dateCreated?: string | undefined;
966
+ dateUpdated?: string | undefined;
967
+ activityKind: "Wallets:IncomingTransaction";
968
+ rule: {
969
+ kind: "ChainalysisTransactionScreening";
970
+ configuration: {
971
+ alerts: {
972
+ alertLevel: "LOW" | "MEDIUM" | "HIGH" | "SEVERE";
973
+ categoryIds: number[];
974
+ };
975
+ exposures: {
976
+ direct: {
977
+ categoryIds: number[];
978
+ };
979
+ };
980
+ fallbackBehaviours: {
981
+ skipUnscreenableTransaction: boolean;
982
+ skipUnsupportedNetwork: boolean;
983
+ skipUnsupportedAsset: boolean;
984
+ skipChainalysisFailure: boolean;
985
+ };
986
+ };
987
+ };
988
+ action: {
989
+ kind: "NoAction";
512
990
  };
513
991
  filters?: {
514
992
  walletId?: {
@@ -570,14 +1048,14 @@ export type CreateApprovalDecisionResponse = {
570
1048
  };
571
1049
  };
572
1050
  };
573
- status: "Pending" | "Approved" | "Denied" | "AutoApproved" | "AutoDenied" | "Expired";
1051
+ status: "Pending" | "Approved" | "Denied" | "Expired";
574
1052
  expirationDate?: string | undefined;
575
1053
  dateCreated?: string | undefined;
576
1054
  dateUpdated: string;
577
1055
  dateResolved?: string | undefined;
578
- evaluatedPolicies: {
1056
+ policyEvaluations: {
579
1057
  policyId: string;
580
- triggerStatus: "Triggered" | "Skipped";
1058
+ triggered: boolean;
581
1059
  reason: string;
582
1060
  }[];
583
1061
  decisions: {
@@ -699,6 +1177,28 @@ export type CreatePolicyBody = {
699
1177
  limit: number;
700
1178
  timeframe: number;
701
1179
  };
1180
+ } | {
1181
+ kind: "ChainalysisTransactionPrescreening";
1182
+ configuration: {
1183
+ alerts: {
1184
+ alertLevel: "LOW" | "MEDIUM" | "HIGH" | "SEVERE";
1185
+ categoryIds: number[];
1186
+ };
1187
+ exposures: {
1188
+ direct: {
1189
+ categoryIds: number[];
1190
+ };
1191
+ };
1192
+ addresses: {
1193
+ categoryIds: number[];
1194
+ };
1195
+ fallbackBehaviours: {
1196
+ skipUnscreenableTransaction: boolean;
1197
+ skipUnsupportedNetwork: boolean;
1198
+ skipUnsupportedAsset: boolean;
1199
+ skipChainalysisFailure: boolean;
1200
+ };
1201
+ };
702
1202
  };
703
1203
  action: {
704
1204
  kind: "RequestApproval";
@@ -714,6 +1214,43 @@ export type CreatePolicyBody = {
714
1214
  autoRejectTimeout?: (number | undefined) | null;
715
1215
  } | {
716
1216
  kind: "Block";
1217
+ } | {
1218
+ kind: "NoAction";
1219
+ };
1220
+ filters?: {
1221
+ walletId?: {
1222
+ in: string[];
1223
+ } | undefined;
1224
+ walletTags?: {
1225
+ hasAny?: string[] | undefined;
1226
+ hasAll?: string[] | undefined;
1227
+ } | undefined;
1228
+ } | undefined;
1229
+ } | {
1230
+ name: string;
1231
+ activityKind: "Wallets:IncomingTransaction";
1232
+ rule: {
1233
+ kind: "ChainalysisTransactionScreening";
1234
+ configuration: {
1235
+ alerts: {
1236
+ alertLevel: "LOW" | "MEDIUM" | "HIGH" | "SEVERE";
1237
+ categoryIds: number[];
1238
+ };
1239
+ exposures: {
1240
+ direct: {
1241
+ categoryIds: number[];
1242
+ };
1243
+ };
1244
+ fallbackBehaviours: {
1245
+ skipUnscreenableTransaction: boolean;
1246
+ skipUnsupportedNetwork: boolean;
1247
+ skipUnsupportedAsset: boolean;
1248
+ skipChainalysisFailure: boolean;
1249
+ };
1250
+ };
1251
+ };
1252
+ action: {
1253
+ kind: "NoAction";
717
1254
  };
718
1255
  filters?: {
719
1256
  walletId?: {
@@ -850,6 +1387,28 @@ export type CreatePolicyResponse = {
850
1387
  limit: number;
851
1388
  timeframe: number;
852
1389
  };
1390
+ } | {
1391
+ kind: "ChainalysisTransactionPrescreening";
1392
+ configuration: {
1393
+ alerts: {
1394
+ alertLevel: "LOW" | "MEDIUM" | "HIGH" | "SEVERE";
1395
+ categoryIds: number[];
1396
+ };
1397
+ exposures: {
1398
+ direct: {
1399
+ categoryIds: number[];
1400
+ };
1401
+ };
1402
+ addresses: {
1403
+ categoryIds: number[];
1404
+ };
1405
+ fallbackBehaviours: {
1406
+ skipUnscreenableTransaction: boolean;
1407
+ skipUnsupportedNetwork: boolean;
1408
+ skipUnsupportedAsset: boolean;
1409
+ skipChainalysisFailure: boolean;
1410
+ };
1411
+ };
853
1412
  };
854
1413
  action: {
855
1414
  kind: "RequestApproval";
@@ -865,6 +1424,47 @@ export type CreatePolicyResponse = {
865
1424
  autoRejectTimeout?: (number | undefined) | null;
866
1425
  } | {
867
1426
  kind: "Block";
1427
+ } | {
1428
+ kind: "NoAction";
1429
+ };
1430
+ filters?: {
1431
+ walletId?: {
1432
+ in: string[];
1433
+ } | undefined;
1434
+ walletTags?: {
1435
+ hasAny?: string[] | undefined;
1436
+ hasAll?: string[] | undefined;
1437
+ } | undefined;
1438
+ } | undefined;
1439
+ } | {
1440
+ id: string;
1441
+ name: string;
1442
+ status: "Active" | "Archived";
1443
+ dateCreated?: string | undefined;
1444
+ dateUpdated?: string | undefined;
1445
+ activityKind: "Wallets:IncomingTransaction";
1446
+ rule: {
1447
+ kind: "ChainalysisTransactionScreening";
1448
+ configuration: {
1449
+ alerts: {
1450
+ alertLevel: "LOW" | "MEDIUM" | "HIGH" | "SEVERE";
1451
+ categoryIds: number[];
1452
+ };
1453
+ exposures: {
1454
+ direct: {
1455
+ categoryIds: number[];
1456
+ };
1457
+ };
1458
+ fallbackBehaviours: {
1459
+ skipUnscreenableTransaction: boolean;
1460
+ skipUnsupportedNetwork: boolean;
1461
+ skipUnsupportedAsset: boolean;
1462
+ skipChainalysisFailure: boolean;
1463
+ };
1464
+ };
1465
+ };
1466
+ action: {
1467
+ kind: "NoAction";
868
1468
  };
869
1469
  filters?: {
870
1470
  walletId?: {
@@ -941,6 +1541,11 @@ export type GetApprovalResponse = {
941
1541
  to: string;
942
1542
  amount: string;
943
1543
  memo?: string | undefined;
1544
+ } | {
1545
+ kind: "Spl" | "Spl2022";
1546
+ to: string;
1547
+ amount: string;
1548
+ mint: string;
944
1549
  };
945
1550
  metadata: {
946
1551
  asset: {
@@ -1076,200 +1681,354 @@ export type GetApprovalResponse = {
1076
1681
  dateConfirmed?: string | undefined;
1077
1682
  } | undefined;
1078
1683
  } | {
1079
- kind: "Policies:Modify";
1080
- changeRequest: {
1081
- id: string;
1082
- requester: {
1083
- userId: string;
1084
- tokenId?: string | undefined;
1085
- appId?: string | undefined;
1086
- };
1087
- kind: "Policy";
1088
- operationKind: "Update";
1089
- status: "Applied" | "Failed" | "Pending" | "Rejected";
1090
- entityId: string;
1091
- dateCreated: string;
1092
- dateResolved?: string | undefined;
1093
- approvalId?: string | undefined;
1094
- body: {
1095
- id: string;
1096
- name: string;
1097
- status: "Active" | "Archived";
1098
- dateCreated?: string | undefined;
1099
- dateUpdated?: string | undefined;
1100
- activityKind: "Permissions:Assign";
1101
- rule: {
1102
- kind: "AlwaysTrigger";
1103
- configuration?: {} | undefined;
1104
- };
1105
- action: {
1106
- kind: "RequestApproval";
1107
- approvalGroups: {
1108
- name?: string | undefined;
1109
- quorum: number;
1110
- approvers: {
1111
- userId?: {
1112
- in: string[];
1113
- } | undefined;
1114
- };
1115
- }[];
1116
- autoRejectTimeout?: (number | undefined) | null;
1117
- } | {
1118
- kind: "Block";
1684
+ kind: "Wallets:IncomingTransaction";
1685
+ blockchainEvent: {
1686
+ walletId: string;
1687
+ direction: "In" | "Out";
1688
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
1689
+ blockNumber: number;
1690
+ txHash: string;
1691
+ index?: string | undefined;
1692
+ timestamp: string;
1693
+ metadata: {
1694
+ asset: {
1695
+ symbol?: string | undefined;
1696
+ decimals?: number | undefined;
1697
+ verified?: boolean | undefined;
1698
+ quotes?: {
1699
+ [x: string]: number;
1700
+ } | undefined;
1119
1701
  };
1120
- filters?: {
1121
- permissionId: {
1122
- in: string[];
1123
- };
1702
+ fee?: {
1703
+ symbol?: string | undefined;
1704
+ decimals?: number | undefined;
1705
+ verified?: boolean | undefined;
1706
+ quotes?: {
1707
+ [x: string]: number;
1708
+ } | undefined;
1124
1709
  } | undefined;
1125
- } | {
1126
- id: string;
1127
- name: string;
1128
- status: "Active" | "Archived";
1129
- dateCreated?: string | undefined;
1130
- dateUpdated?: string | undefined;
1131
- activityKind: "Permissions:Modify";
1132
- rule: {
1133
- kind: "AlwaysTrigger";
1134
- configuration?: {} | undefined;
1135
- };
1136
- action: {
1137
- kind: "RequestApproval";
1138
- approvalGroups: {
1139
- name?: string | undefined;
1140
- quorum: number;
1141
- approvers: {
1142
- userId?: {
1143
- in: string[];
1144
- } | undefined;
1145
- };
1146
- }[];
1147
- autoRejectTimeout?: (number | undefined) | null;
1148
- } | {
1149
- kind: "Block";
1710
+ };
1711
+ kind: "NativeTransfer";
1712
+ from: string;
1713
+ to: string;
1714
+ value: string;
1715
+ fee?: string | undefined;
1716
+ memo?: string | undefined;
1717
+ liquidityPool?: string | undefined;
1718
+ balanceId?: string | undefined;
1719
+ /** @deprecated use metadata.asset.symbol instead */
1720
+ symbol: string;
1721
+ /** @deprecated use metadata.asset.decimals instead */
1722
+ decimals: number;
1723
+ /** @deprecated use metadata.asset.verified instead */
1724
+ verified?: boolean | undefined;
1725
+ } | {
1726
+ walletId: string;
1727
+ direction: "In" | "Out";
1728
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
1729
+ blockNumber: number;
1730
+ txHash: string;
1731
+ index?: string | undefined;
1732
+ timestamp: string;
1733
+ metadata: {
1734
+ asset: {
1735
+ symbol?: string | undefined;
1736
+ decimals?: number | undefined;
1737
+ verified?: boolean | undefined;
1738
+ quotes?: {
1739
+ [x: string]: number;
1740
+ } | undefined;
1150
1741
  };
1151
- filters?: {
1152
- permissionId: {
1153
- in: string[];
1154
- };
1742
+ fee?: {
1743
+ symbol?: string | undefined;
1744
+ decimals?: number | undefined;
1745
+ verified?: boolean | undefined;
1746
+ quotes?: {
1747
+ [x: string]: number;
1748
+ } | undefined;
1155
1749
  } | undefined;
1156
- } | {
1157
- id: string;
1158
- name: string;
1159
- status: "Active" | "Archived";
1160
- dateCreated?: string | undefined;
1161
- dateUpdated?: string | undefined;
1162
- activityKind: "Policies:Modify";
1163
- rule: {
1164
- kind: "AlwaysTrigger";
1165
- configuration?: {} | undefined;
1166
- };
1167
- action: {
1168
- kind: "RequestApproval";
1169
- approvalGroups: {
1170
- name?: string | undefined;
1171
- quorum: number;
1172
- approvers: {
1173
- userId?: {
1174
- in: string[];
1175
- } | undefined;
1176
- };
1177
- }[];
1178
- autoRejectTimeout?: (number | undefined) | null;
1750
+ };
1751
+ kind: "AsaTransfer";
1752
+ assetId: string;
1753
+ from: string;
1754
+ to: string;
1755
+ value: string;
1756
+ fee?: string | undefined;
1757
+ optIn?: boolean | undefined;
1758
+ optOut?: boolean | undefined;
1759
+ clawback?: boolean | undefined;
1760
+ } | {
1761
+ walletId: string;
1762
+ direction: "In" | "Out";
1763
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
1764
+ blockNumber: number;
1765
+ txHash: string;
1766
+ index?: string | undefined;
1767
+ timestamp: string;
1768
+ metadata: {
1769
+ asset: {
1770
+ symbol?: string | undefined;
1771
+ decimals?: number | undefined;
1772
+ verified?: boolean | undefined;
1773
+ quotes?: {
1774
+ [x: string]: number;
1775
+ } | undefined;
1179
1776
  };
1180
- filters?: {
1181
- policyId: {
1182
- in: string[];
1183
- };
1777
+ fee?: {
1778
+ symbol?: string | undefined;
1779
+ decimals?: number | undefined;
1780
+ verified?: boolean | undefined;
1781
+ quotes?: {
1782
+ [x: string]: number;
1783
+ } | undefined;
1184
1784
  } | undefined;
1185
- } | {
1186
- id: string;
1187
- name: string;
1188
- status: "Active" | "Archived";
1189
- dateCreated?: string | undefined;
1190
- dateUpdated?: string | undefined;
1191
- activityKind: "Wallets:Sign";
1192
- rule: {
1193
- kind: "AlwaysTrigger";
1194
- configuration?: {} | undefined;
1195
- } | {
1196
- kind: "TransactionRecipientWhitelist";
1197
- configuration: {
1198
- addresses: string[];
1199
- };
1200
- } | {
1201
- kind: "TransactionAmountLimit";
1202
- configuration: {
1203
- limit: number;
1204
- currency: "EUR" | "USD";
1205
- };
1206
- } | {
1207
- kind: "TransactionAmountVelocity";
1208
- configuration: {
1209
- limit: number;
1210
- currency: "EUR" | "USD";
1211
- timeframe: number;
1212
- };
1213
- } | {
1214
- kind: "TransactionCountVelocity";
1215
- configuration: {
1216
- limit: number;
1217
- timeframe: number;
1218
- };
1785
+ };
1786
+ kind: "Erc20Transfer";
1787
+ contract: string;
1788
+ from: string;
1789
+ to: string;
1790
+ value: string;
1791
+ fee?: string | undefined;
1792
+ /** @deprecated use metadata.asset.symbol instead */
1793
+ symbol?: string | undefined;
1794
+ /** @deprecated use metadata.asset.decimals instead */
1795
+ decimals: number;
1796
+ /** @deprecated use metadata.asset.verified instead */
1797
+ verified?: boolean | undefined;
1798
+ } | {
1799
+ walletId: string;
1800
+ direction: "In" | "Out";
1801
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
1802
+ blockNumber: number;
1803
+ txHash: string;
1804
+ index?: string | undefined;
1805
+ timestamp: string;
1806
+ metadata: {
1807
+ asset: {
1808
+ symbol?: string | undefined;
1809
+ decimals?: number | undefined;
1810
+ verified?: boolean | undefined;
1811
+ quotes?: {
1812
+ [x: string]: number;
1813
+ } | undefined;
1219
1814
  };
1220
- action: {
1221
- kind: "RequestApproval";
1222
- approvalGroups: {
1223
- name?: string | undefined;
1224
- quorum: number;
1225
- approvers: {
1226
- userId?: {
1227
- in: string[];
1228
- } | undefined;
1229
- };
1230
- }[];
1231
- autoRejectTimeout?: (number | undefined) | null;
1232
- } | {
1233
- kind: "Block";
1815
+ fee?: {
1816
+ symbol?: string | undefined;
1817
+ decimals?: number | undefined;
1818
+ verified?: boolean | undefined;
1819
+ quotes?: {
1820
+ [x: string]: number;
1821
+ } | undefined;
1822
+ } | undefined;
1823
+ };
1824
+ kind: "Erc721Transfer";
1825
+ contract: string;
1826
+ from: string;
1827
+ to: string;
1828
+ tokenId: string;
1829
+ fee?: string | undefined;
1830
+ /** @deprecated use metadata.asset.symbol instead */
1831
+ symbol?: string | undefined;
1832
+ /** @deprecated use metadata.asset.verified instead */
1833
+ verified?: boolean | undefined;
1834
+ } | {
1835
+ walletId: string;
1836
+ direction: "In" | "Out";
1837
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
1838
+ blockNumber: number;
1839
+ txHash: string;
1840
+ index?: string | undefined;
1841
+ timestamp: string;
1842
+ metadata: {
1843
+ asset: {
1844
+ symbol?: string | undefined;
1845
+ decimals?: number | undefined;
1846
+ verified?: boolean | undefined;
1847
+ quotes?: {
1848
+ [x: string]: number;
1849
+ } | undefined;
1234
1850
  };
1235
- filters?: {
1236
- walletId?: {
1237
- in: string[];
1851
+ fee?: {
1852
+ symbol?: string | undefined;
1853
+ decimals?: number | undefined;
1854
+ verified?: boolean | undefined;
1855
+ quotes?: {
1856
+ [x: string]: number;
1238
1857
  } | undefined;
1239
- walletTags?: {
1240
- hasAny?: string[] | undefined;
1241
- hasAll?: string[] | undefined;
1858
+ } | undefined;
1859
+ };
1860
+ kind: "Sep41Transfer";
1861
+ issuer: string;
1862
+ assetCode: string;
1863
+ from: string;
1864
+ to: string;
1865
+ value: string;
1866
+ fee?: string | undefined;
1867
+ memo?: string | undefined;
1868
+ liquidityPool?: string | undefined;
1869
+ balanceId?: string | undefined;
1870
+ } | {
1871
+ walletId: string;
1872
+ direction: "In" | "Out";
1873
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
1874
+ blockNumber: number;
1875
+ txHash: string;
1876
+ index?: string | undefined;
1877
+ timestamp: string;
1878
+ metadata: {
1879
+ asset: {
1880
+ symbol?: string | undefined;
1881
+ decimals?: number | undefined;
1882
+ verified?: boolean | undefined;
1883
+ quotes?: {
1884
+ [x: string]: number;
1885
+ } | undefined;
1886
+ };
1887
+ fee?: {
1888
+ symbol?: string | undefined;
1889
+ decimals?: number | undefined;
1890
+ verified?: boolean | undefined;
1891
+ quotes?: {
1892
+ [x: string]: number;
1242
1893
  } | undefined;
1243
1894
  } | undefined;
1244
1895
  };
1245
- };
1246
- } | {
1247
- kind: "Permissions:Modify";
1248
- changeRequest: {
1249
- id: string;
1250
- requester: {
1251
- userId: string;
1252
- tokenId?: string | undefined;
1253
- appId?: string | undefined;
1896
+ kind: "SplTransfer" | "Spl2022Transfer";
1897
+ from?: string | undefined;
1898
+ to?: string | undefined;
1899
+ mint: string;
1900
+ value: string;
1901
+ fee?: string | undefined;
1902
+ } | {
1903
+ walletId: string;
1904
+ direction: "In" | "Out";
1905
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
1906
+ blockNumber: number;
1907
+ txHash: string;
1908
+ index?: string | undefined;
1909
+ timestamp: string;
1910
+ metadata: {
1911
+ asset: {
1912
+ symbol?: string | undefined;
1913
+ decimals?: number | undefined;
1914
+ verified?: boolean | undefined;
1915
+ quotes?: {
1916
+ [x: string]: number;
1917
+ } | undefined;
1918
+ };
1919
+ fee?: {
1920
+ symbol?: string | undefined;
1921
+ decimals?: number | undefined;
1922
+ verified?: boolean | undefined;
1923
+ quotes?: {
1924
+ [x: string]: number;
1925
+ } | undefined;
1926
+ } | undefined;
1254
1927
  };
1255
- status: "Applied" | "Failed" | "Pending" | "Rejected";
1256
- entityId: string;
1257
- dateCreated: string;
1258
- dateResolved?: string | undefined;
1259
- approvalId?: string | undefined;
1260
- kind: "Permission";
1261
- operationKind: "Update";
1262
- body: {
1263
- id: string;
1264
- name: string;
1265
- status: "Active";
1266
- operations: string[];
1267
- isImmutable: boolean;
1268
- isArchived: boolean;
1928
+ kind: "Trc10Transfer";
1929
+ tokenId: string;
1930
+ from: string;
1931
+ to: string;
1932
+ value: string;
1933
+ fee?: string | undefined;
1934
+ } | {
1935
+ walletId: string;
1936
+ direction: "In" | "Out";
1937
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
1938
+ blockNumber: number;
1939
+ txHash: string;
1940
+ index?: string | undefined;
1941
+ timestamp: string;
1942
+ metadata: {
1943
+ asset: {
1944
+ symbol?: string | undefined;
1945
+ decimals?: number | undefined;
1946
+ verified?: boolean | undefined;
1947
+ quotes?: {
1948
+ [x: string]: number;
1949
+ } | undefined;
1950
+ };
1951
+ fee?: {
1952
+ symbol?: string | undefined;
1953
+ decimals?: number | undefined;
1954
+ verified?: boolean | undefined;
1955
+ quotes?: {
1956
+ [x: string]: number;
1957
+ } | undefined;
1958
+ } | undefined;
1959
+ };
1960
+ kind: "Trc20Transfer";
1961
+ contract: string;
1962
+ from: string;
1963
+ to: string;
1964
+ value: string;
1965
+ fee?: string | undefined;
1966
+ } | {
1967
+ walletId: string;
1968
+ direction: "In" | "Out";
1969
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
1970
+ blockNumber: number;
1971
+ txHash: string;
1972
+ index?: string | undefined;
1973
+ timestamp: string;
1974
+ metadata: {
1975
+ asset: {
1976
+ symbol?: string | undefined;
1977
+ decimals?: number | undefined;
1978
+ verified?: boolean | undefined;
1979
+ quotes?: {
1980
+ [x: string]: number;
1981
+ } | undefined;
1982
+ };
1983
+ fee?: {
1984
+ symbol?: string | undefined;
1985
+ decimals?: number | undefined;
1986
+ verified?: boolean | undefined;
1987
+ quotes?: {
1988
+ [x: string]: number;
1989
+ } | undefined;
1990
+ } | undefined;
1991
+ };
1992
+ kind: "Trc721Transfer";
1993
+ contract: string;
1994
+ from: string;
1995
+ to: string;
1996
+ tokenId: string;
1997
+ fee?: string | undefined;
1998
+ } | {
1999
+ walletId: string;
2000
+ direction: "In" | "Out";
2001
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
2002
+ blockNumber: number;
2003
+ txHash: string;
2004
+ index?: string | undefined;
2005
+ timestamp: string;
2006
+ metadata: {
2007
+ asset: {
2008
+ symbol?: string | undefined;
2009
+ decimals?: number | undefined;
2010
+ verified?: boolean | undefined;
2011
+ quotes?: {
2012
+ [x: string]: number;
2013
+ } | undefined;
2014
+ };
2015
+ fee?: {
2016
+ symbol?: string | undefined;
2017
+ decimals?: number | undefined;
2018
+ verified?: boolean | undefined;
2019
+ quotes?: {
2020
+ [x: string]: number;
2021
+ } | undefined;
2022
+ } | undefined;
1269
2023
  };
2024
+ kind: "UtxoTransfer";
2025
+ froms: string[];
2026
+ tos: string[];
2027
+ value: string;
2028
+ fee?: string | undefined;
1270
2029
  };
1271
2030
  } | {
1272
- kind: "Permissions:Assign";
2031
+ kind: "Policies:Modify";
1273
2032
  changeRequest: {
1274
2033
  id: string;
1275
2034
  requester: {
@@ -1277,59 +2036,315 @@ export type GetApprovalResponse = {
1277
2036
  tokenId?: string | undefined;
1278
2037
  appId?: string | undefined;
1279
2038
  };
2039
+ kind: "Policy";
2040
+ operationKind: "Update";
1280
2041
  status: "Applied" | "Failed" | "Pending" | "Rejected";
1281
2042
  entityId: string;
1282
2043
  dateCreated: string;
1283
2044
  dateResolved?: string | undefined;
1284
2045
  approvalId?: string | undefined;
1285
- kind: "Assignment";
1286
- operationKind: "Create" | "Delete";
1287
2046
  body: {
1288
2047
  id: string;
1289
- permissionId: string;
1290
- identityId: string;
1291
- isImmutable: boolean;
1292
- };
1293
- };
1294
- };
1295
- status: "Pending" | "Approved" | "Denied" | "AutoApproved" | "AutoDenied" | "Expired";
1296
- expirationDate?: string | undefined;
1297
- dateCreated?: string | undefined;
1298
- dateUpdated: string;
1299
- dateResolved?: string | undefined;
1300
- evaluatedPolicies: {
1301
- policyId: string;
1302
- triggerStatus: "Triggered" | "Skipped";
1303
- reason: string;
1304
- }[];
1305
- decisions: {
1306
- userId: string;
1307
- date: string;
1308
- reason: string | null;
1309
- value: "Approved" | "Denied";
1310
- }[];
1311
- };
1312
- export type GetApprovalRequest = GetApprovalParams;
1313
- export type GetPolicyParams = {
1314
- policyId: string;
1315
- };
1316
- export type GetPolicyResponse = ({
1317
- id: string;
1318
- name: string;
1319
- status: "Active" | "Archived";
1320
- dateCreated?: string | undefined;
1321
- dateUpdated?: string | undefined;
1322
- activityKind: "Permissions:Assign";
1323
- rule: {
1324
- kind: "AlwaysTrigger";
1325
- configuration?: {} | undefined;
1326
- };
1327
- action: {
1328
- kind: "RequestApproval";
1329
- approvalGroups: {
1330
- name?: string | undefined;
1331
- quorum: number;
1332
- approvers: {
2048
+ name: string;
2049
+ status: "Active" | "Archived";
2050
+ dateCreated?: string | undefined;
2051
+ dateUpdated?: string | undefined;
2052
+ activityKind: "Permissions:Assign";
2053
+ rule: {
2054
+ kind: "AlwaysTrigger";
2055
+ configuration?: {} | undefined;
2056
+ };
2057
+ action: {
2058
+ kind: "RequestApproval";
2059
+ approvalGroups: {
2060
+ name?: string | undefined;
2061
+ quorum: number;
2062
+ approvers: {
2063
+ userId?: {
2064
+ in: string[];
2065
+ } | undefined;
2066
+ };
2067
+ }[];
2068
+ autoRejectTimeout?: (number | undefined) | null;
2069
+ } | {
2070
+ kind: "Block";
2071
+ };
2072
+ filters?: {
2073
+ permissionId: {
2074
+ in: string[];
2075
+ };
2076
+ } | undefined;
2077
+ } | {
2078
+ id: string;
2079
+ name: string;
2080
+ status: "Active" | "Archived";
2081
+ dateCreated?: string | undefined;
2082
+ dateUpdated?: string | undefined;
2083
+ activityKind: "Permissions:Modify";
2084
+ rule: {
2085
+ kind: "AlwaysTrigger";
2086
+ configuration?: {} | undefined;
2087
+ };
2088
+ action: {
2089
+ kind: "RequestApproval";
2090
+ approvalGroups: {
2091
+ name?: string | undefined;
2092
+ quorum: number;
2093
+ approvers: {
2094
+ userId?: {
2095
+ in: string[];
2096
+ } | undefined;
2097
+ };
2098
+ }[];
2099
+ autoRejectTimeout?: (number | undefined) | null;
2100
+ } | {
2101
+ kind: "Block";
2102
+ };
2103
+ filters?: {
2104
+ permissionId: {
2105
+ in: string[];
2106
+ };
2107
+ } | undefined;
2108
+ } | {
2109
+ id: string;
2110
+ name: string;
2111
+ status: "Active" | "Archived";
2112
+ dateCreated?: string | undefined;
2113
+ dateUpdated?: string | undefined;
2114
+ activityKind: "Policies:Modify";
2115
+ rule: {
2116
+ kind: "AlwaysTrigger";
2117
+ configuration?: {} | undefined;
2118
+ };
2119
+ action: {
2120
+ kind: "RequestApproval";
2121
+ approvalGroups: {
2122
+ name?: string | undefined;
2123
+ quorum: number;
2124
+ approvers: {
2125
+ userId?: {
2126
+ in: string[];
2127
+ } | undefined;
2128
+ };
2129
+ }[];
2130
+ autoRejectTimeout?: (number | undefined) | null;
2131
+ };
2132
+ filters?: {
2133
+ policyId: {
2134
+ in: string[];
2135
+ };
2136
+ } | undefined;
2137
+ } | {
2138
+ id: string;
2139
+ name: string;
2140
+ status: "Active" | "Archived";
2141
+ dateCreated?: string | undefined;
2142
+ dateUpdated?: string | undefined;
2143
+ activityKind: "Wallets:Sign";
2144
+ rule: {
2145
+ kind: "AlwaysTrigger";
2146
+ configuration?: {} | undefined;
2147
+ } | {
2148
+ kind: "TransactionRecipientWhitelist";
2149
+ configuration: {
2150
+ addresses: string[];
2151
+ };
2152
+ } | {
2153
+ kind: "TransactionAmountLimit";
2154
+ configuration: {
2155
+ limit: number;
2156
+ currency: "EUR" | "USD";
2157
+ };
2158
+ } | {
2159
+ kind: "TransactionAmountVelocity";
2160
+ configuration: {
2161
+ limit: number;
2162
+ currency: "EUR" | "USD";
2163
+ timeframe: number;
2164
+ };
2165
+ } | {
2166
+ kind: "TransactionCountVelocity";
2167
+ configuration: {
2168
+ limit: number;
2169
+ timeframe: number;
2170
+ };
2171
+ } | {
2172
+ kind: "ChainalysisTransactionPrescreening";
2173
+ configuration: {
2174
+ alerts: {
2175
+ alertLevel: "LOW" | "MEDIUM" | "HIGH" | "SEVERE";
2176
+ categoryIds: number[];
2177
+ };
2178
+ exposures: {
2179
+ direct: {
2180
+ categoryIds: number[];
2181
+ };
2182
+ };
2183
+ addresses: {
2184
+ categoryIds: number[];
2185
+ };
2186
+ fallbackBehaviours: {
2187
+ skipUnscreenableTransaction: boolean;
2188
+ skipUnsupportedNetwork: boolean;
2189
+ skipUnsupportedAsset: boolean;
2190
+ skipChainalysisFailure: boolean;
2191
+ };
2192
+ };
2193
+ };
2194
+ action: {
2195
+ kind: "RequestApproval";
2196
+ approvalGroups: {
2197
+ name?: string | undefined;
2198
+ quorum: number;
2199
+ approvers: {
2200
+ userId?: {
2201
+ in: string[];
2202
+ } | undefined;
2203
+ };
2204
+ }[];
2205
+ autoRejectTimeout?: (number | undefined) | null;
2206
+ } | {
2207
+ kind: "Block";
2208
+ } | {
2209
+ kind: "NoAction";
2210
+ };
2211
+ filters?: {
2212
+ walletId?: {
2213
+ in: string[];
2214
+ } | undefined;
2215
+ walletTags?: {
2216
+ hasAny?: string[] | undefined;
2217
+ hasAll?: string[] | undefined;
2218
+ } | undefined;
2219
+ } | undefined;
2220
+ } | {
2221
+ id: string;
2222
+ name: string;
2223
+ status: "Active" | "Archived";
2224
+ dateCreated?: string | undefined;
2225
+ dateUpdated?: string | undefined;
2226
+ activityKind: "Wallets:IncomingTransaction";
2227
+ rule: {
2228
+ kind: "ChainalysisTransactionScreening";
2229
+ configuration: {
2230
+ alerts: {
2231
+ alertLevel: "LOW" | "MEDIUM" | "HIGH" | "SEVERE";
2232
+ categoryIds: number[];
2233
+ };
2234
+ exposures: {
2235
+ direct: {
2236
+ categoryIds: number[];
2237
+ };
2238
+ };
2239
+ fallbackBehaviours: {
2240
+ skipUnscreenableTransaction: boolean;
2241
+ skipUnsupportedNetwork: boolean;
2242
+ skipUnsupportedAsset: boolean;
2243
+ skipChainalysisFailure: boolean;
2244
+ };
2245
+ };
2246
+ };
2247
+ action: {
2248
+ kind: "NoAction";
2249
+ };
2250
+ filters?: {
2251
+ walletId?: {
2252
+ in: string[];
2253
+ } | undefined;
2254
+ walletTags?: {
2255
+ hasAny?: string[] | undefined;
2256
+ hasAll?: string[] | undefined;
2257
+ } | undefined;
2258
+ } | undefined;
2259
+ };
2260
+ };
2261
+ } | {
2262
+ kind: "Permissions:Modify";
2263
+ changeRequest: {
2264
+ id: string;
2265
+ requester: {
2266
+ userId: string;
2267
+ tokenId?: string | undefined;
2268
+ appId?: string | undefined;
2269
+ };
2270
+ status: "Applied" | "Failed" | "Pending" | "Rejected";
2271
+ entityId: string;
2272
+ dateCreated: string;
2273
+ dateResolved?: string | undefined;
2274
+ approvalId?: string | undefined;
2275
+ kind: "Permission";
2276
+ operationKind: "Update";
2277
+ body: {
2278
+ id: string;
2279
+ name: string;
2280
+ status: "Active";
2281
+ operations: string[];
2282
+ isImmutable: boolean;
2283
+ isArchived: boolean;
2284
+ };
2285
+ };
2286
+ } | {
2287
+ kind: "Permissions:Assign";
2288
+ changeRequest: {
2289
+ id: string;
2290
+ requester: {
2291
+ userId: string;
2292
+ tokenId?: string | undefined;
2293
+ appId?: string | undefined;
2294
+ };
2295
+ status: "Applied" | "Failed" | "Pending" | "Rejected";
2296
+ entityId: string;
2297
+ dateCreated: string;
2298
+ dateResolved?: string | undefined;
2299
+ approvalId?: string | undefined;
2300
+ kind: "Assignment";
2301
+ operationKind: "Create" | "Delete";
2302
+ body: {
2303
+ id: string;
2304
+ permissionId: string;
2305
+ identityId: string;
2306
+ isImmutable: boolean;
2307
+ };
2308
+ };
2309
+ };
2310
+ status: "Pending" | "Approved" | "Denied" | "Expired";
2311
+ expirationDate?: string | undefined;
2312
+ dateCreated?: string | undefined;
2313
+ dateUpdated: string;
2314
+ dateResolved?: string | undefined;
2315
+ policyEvaluations: {
2316
+ policyId: string;
2317
+ triggered: boolean;
2318
+ reason: string;
2319
+ }[];
2320
+ decisions: {
2321
+ userId: string;
2322
+ date: string;
2323
+ reason: string | null;
2324
+ value: "Approved" | "Denied";
2325
+ }[];
2326
+ };
2327
+ export type GetApprovalRequest = GetApprovalParams;
2328
+ export type GetPolicyParams = {
2329
+ policyId: string;
2330
+ };
2331
+ export type GetPolicyResponse = ({
2332
+ id: string;
2333
+ name: string;
2334
+ status: "Active" | "Archived";
2335
+ dateCreated?: string | undefined;
2336
+ dateUpdated?: string | undefined;
2337
+ activityKind: "Permissions:Assign";
2338
+ rule: {
2339
+ kind: "AlwaysTrigger";
2340
+ configuration?: {} | undefined;
2341
+ };
2342
+ action: {
2343
+ kind: "RequestApproval";
2344
+ approvalGroups: {
2345
+ name?: string | undefined;
2346
+ quorum: number;
2347
+ approvers: {
1333
2348
  userId?: {
1334
2349
  in: string[];
1335
2350
  } | undefined;
@@ -1438,6 +2453,28 @@ export type GetPolicyResponse = ({
1438
2453
  limit: number;
1439
2454
  timeframe: number;
1440
2455
  };
2456
+ } | {
2457
+ kind: "ChainalysisTransactionPrescreening";
2458
+ configuration: {
2459
+ alerts: {
2460
+ alertLevel: "LOW" | "MEDIUM" | "HIGH" | "SEVERE";
2461
+ categoryIds: number[];
2462
+ };
2463
+ exposures: {
2464
+ direct: {
2465
+ categoryIds: number[];
2466
+ };
2467
+ };
2468
+ addresses: {
2469
+ categoryIds: number[];
2470
+ };
2471
+ fallbackBehaviours: {
2472
+ skipUnscreenableTransaction: boolean;
2473
+ skipUnsupportedNetwork: boolean;
2474
+ skipUnsupportedAsset: boolean;
2475
+ skipChainalysisFailure: boolean;
2476
+ };
2477
+ };
1441
2478
  };
1442
2479
  action: {
1443
2480
  kind: "RequestApproval";
@@ -1449,10 +2486,51 @@ export type GetPolicyResponse = ({
1449
2486
  in: string[];
1450
2487
  } | undefined;
1451
2488
  };
1452
- }[];
1453
- autoRejectTimeout?: (number | undefined) | null;
1454
- } | {
1455
- kind: "Block";
2489
+ }[];
2490
+ autoRejectTimeout?: (number | undefined) | null;
2491
+ } | {
2492
+ kind: "Block";
2493
+ } | {
2494
+ kind: "NoAction";
2495
+ };
2496
+ filters?: {
2497
+ walletId?: {
2498
+ in: string[];
2499
+ } | undefined;
2500
+ walletTags?: {
2501
+ hasAny?: string[] | undefined;
2502
+ hasAll?: string[] | undefined;
2503
+ } | undefined;
2504
+ } | undefined;
2505
+ } | {
2506
+ id: string;
2507
+ name: string;
2508
+ status: "Active" | "Archived";
2509
+ dateCreated?: string | undefined;
2510
+ dateUpdated?: string | undefined;
2511
+ activityKind: "Wallets:IncomingTransaction";
2512
+ rule: {
2513
+ kind: "ChainalysisTransactionScreening";
2514
+ configuration: {
2515
+ alerts: {
2516
+ alertLevel: "LOW" | "MEDIUM" | "HIGH" | "SEVERE";
2517
+ categoryIds: number[];
2518
+ };
2519
+ exposures: {
2520
+ direct: {
2521
+ categoryIds: number[];
2522
+ };
2523
+ };
2524
+ fallbackBehaviours: {
2525
+ skipUnscreenableTransaction: boolean;
2526
+ skipUnsupportedNetwork: boolean;
2527
+ skipUnsupportedAsset: boolean;
2528
+ skipChainalysisFailure: boolean;
2529
+ };
2530
+ };
2531
+ };
2532
+ action: {
2533
+ kind: "NoAction";
1456
2534
  };
1457
2535
  filters?: {
1458
2536
  walletId?: {
@@ -1499,208 +2577,635 @@ export type GetPolicyResponse = ({
1499
2577
  in: string[];
1500
2578
  } | undefined;
1501
2579
  };
1502
- }[];
1503
- autoRejectTimeout?: (number | undefined) | null;
1504
- } | {
1505
- kind: "Block";
1506
- };
1507
- filters?: {
1508
- permissionId: {
1509
- in: string[];
2580
+ }[];
2581
+ autoRejectTimeout?: (number | undefined) | null;
2582
+ } | {
2583
+ kind: "Block";
2584
+ };
2585
+ filters?: {
2586
+ permissionId: {
2587
+ in: string[];
2588
+ };
2589
+ } | undefined;
2590
+ } | {
2591
+ id: string;
2592
+ name: string;
2593
+ status: "Active" | "Archived";
2594
+ dateCreated?: string | undefined;
2595
+ dateUpdated?: string | undefined;
2596
+ activityKind: "Permissions:Modify";
2597
+ rule: {
2598
+ kind: "AlwaysTrigger";
2599
+ configuration?: {} | undefined;
2600
+ };
2601
+ action: {
2602
+ kind: "RequestApproval";
2603
+ approvalGroups: {
2604
+ name?: string | undefined;
2605
+ quorum: number;
2606
+ approvers: {
2607
+ userId?: {
2608
+ in: string[];
2609
+ } | undefined;
2610
+ };
2611
+ }[];
2612
+ autoRejectTimeout?: (number | undefined) | null;
2613
+ } | {
2614
+ kind: "Block";
2615
+ };
2616
+ filters?: {
2617
+ permissionId: {
2618
+ in: string[];
2619
+ };
2620
+ } | undefined;
2621
+ } | {
2622
+ id: string;
2623
+ name: string;
2624
+ status: "Active" | "Archived";
2625
+ dateCreated?: string | undefined;
2626
+ dateUpdated?: string | undefined;
2627
+ activityKind: "Policies:Modify";
2628
+ rule: {
2629
+ kind: "AlwaysTrigger";
2630
+ configuration?: {} | undefined;
2631
+ };
2632
+ action: {
2633
+ kind: "RequestApproval";
2634
+ approvalGroups: {
2635
+ name?: string | undefined;
2636
+ quorum: number;
2637
+ approvers: {
2638
+ userId?: {
2639
+ in: string[];
2640
+ } | undefined;
2641
+ };
2642
+ }[];
2643
+ autoRejectTimeout?: (number | undefined) | null;
2644
+ };
2645
+ filters?: {
2646
+ policyId: {
2647
+ in: string[];
2648
+ };
2649
+ } | undefined;
2650
+ } | {
2651
+ id: string;
2652
+ name: string;
2653
+ status: "Active" | "Archived";
2654
+ dateCreated?: string | undefined;
2655
+ dateUpdated?: string | undefined;
2656
+ activityKind: "Wallets:Sign";
2657
+ rule: {
2658
+ kind: "AlwaysTrigger";
2659
+ configuration?: {} | undefined;
2660
+ } | {
2661
+ kind: "TransactionRecipientWhitelist";
2662
+ configuration: {
2663
+ addresses: string[];
2664
+ };
2665
+ } | {
2666
+ kind: "TransactionAmountLimit";
2667
+ configuration: {
2668
+ limit: number;
2669
+ currency: "EUR" | "USD";
2670
+ };
2671
+ } | {
2672
+ kind: "TransactionAmountVelocity";
2673
+ configuration: {
2674
+ limit: number;
2675
+ currency: "EUR" | "USD";
2676
+ timeframe: number;
2677
+ };
2678
+ } | {
2679
+ kind: "TransactionCountVelocity";
2680
+ configuration: {
2681
+ limit: number;
2682
+ timeframe: number;
2683
+ };
2684
+ } | {
2685
+ kind: "ChainalysisTransactionPrescreening";
2686
+ configuration: {
2687
+ alerts: {
2688
+ alertLevel: "LOW" | "MEDIUM" | "HIGH" | "SEVERE";
2689
+ categoryIds: number[];
2690
+ };
2691
+ exposures: {
2692
+ direct: {
2693
+ categoryIds: number[];
2694
+ };
2695
+ };
2696
+ addresses: {
2697
+ categoryIds: number[];
2698
+ };
2699
+ fallbackBehaviours: {
2700
+ skipUnscreenableTransaction: boolean;
2701
+ skipUnsupportedNetwork: boolean;
2702
+ skipUnsupportedAsset: boolean;
2703
+ skipChainalysisFailure: boolean;
2704
+ };
2705
+ };
2706
+ };
2707
+ action: {
2708
+ kind: "RequestApproval";
2709
+ approvalGroups: {
2710
+ name?: string | undefined;
2711
+ quorum: number;
2712
+ approvers: {
2713
+ userId?: {
2714
+ in: string[];
2715
+ } | undefined;
2716
+ };
2717
+ }[];
2718
+ autoRejectTimeout?: (number | undefined) | null;
2719
+ } | {
2720
+ kind: "Block";
2721
+ } | {
2722
+ kind: "NoAction";
2723
+ };
2724
+ filters?: {
2725
+ walletId?: {
2726
+ in: string[];
2727
+ } | undefined;
2728
+ walletTags?: {
2729
+ hasAny?: string[] | undefined;
2730
+ hasAll?: string[] | undefined;
2731
+ } | undefined;
2732
+ } | undefined;
2733
+ } | {
2734
+ id: string;
2735
+ name: string;
2736
+ status: "Active" | "Archived";
2737
+ dateCreated?: string | undefined;
2738
+ dateUpdated?: string | undefined;
2739
+ activityKind: "Wallets:IncomingTransaction";
2740
+ rule: {
2741
+ kind: "ChainalysisTransactionScreening";
2742
+ configuration: {
2743
+ alerts: {
2744
+ alertLevel: "LOW" | "MEDIUM" | "HIGH" | "SEVERE";
2745
+ categoryIds: number[];
2746
+ };
2747
+ exposures: {
2748
+ direct: {
2749
+ categoryIds: number[];
2750
+ };
2751
+ };
2752
+ fallbackBehaviours: {
2753
+ skipUnscreenableTransaction: boolean;
2754
+ skipUnsupportedNetwork: boolean;
2755
+ skipUnsupportedAsset: boolean;
2756
+ skipChainalysisFailure: boolean;
2757
+ };
2758
+ };
2759
+ };
2760
+ action: {
2761
+ kind: "NoAction";
2762
+ };
2763
+ filters?: {
2764
+ walletId?: {
2765
+ in: string[];
2766
+ } | undefined;
2767
+ walletTags?: {
2768
+ hasAny?: string[] | undefined;
2769
+ hasAll?: string[] | undefined;
2770
+ } | undefined;
2771
+ } | undefined;
2772
+ };
2773
+ } | undefined;
2774
+ };
2775
+ export type GetPolicyRequest = GetPolicyParams;
2776
+ export type ListApprovalsQuery = {
2777
+ limit?: string | undefined;
2778
+ paginationToken?: string | undefined;
2779
+ status?: ("Pending" | "Approved" | "Denied" | "Expired") | undefined;
2780
+ initiatorId?: string | undefined;
2781
+ approverId?: string | undefined;
2782
+ };
2783
+ export type ListApprovalsResponse = {
2784
+ items: {
2785
+ id: string;
2786
+ initiatorId: string;
2787
+ activity: {
2788
+ kind: "Wallets:Sign";
2789
+ transferRequest?: {
2790
+ id: string;
2791
+ walletId: string;
2792
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
2793
+ requester: {
2794
+ userId: string;
2795
+ tokenId?: string | undefined;
2796
+ appId?: string | undefined;
2797
+ };
2798
+ requestBody: {
2799
+ kind: "Native";
2800
+ to: string | string | string | string | string | string | string | string | string | string | string;
2801
+ amount: string;
2802
+ memo?: string | undefined;
2803
+ priority?: ("Slow" | "Standard" | "Fast") | undefined;
2804
+ } | {
2805
+ kind: "Erc20";
2806
+ contract: string;
2807
+ to: string;
2808
+ amount: string;
2809
+ priority?: ("Slow" | "Standard" | "Fast") | undefined;
2810
+ } | {
2811
+ kind: "Erc721";
2812
+ contract: string;
2813
+ to: string;
2814
+ tokenId: string;
2815
+ priority?: ("Slow" | "Standard" | "Fast") | undefined;
2816
+ } | {
2817
+ kind: "Trc10";
2818
+ tokenId: string;
2819
+ to: string;
2820
+ amount: string;
2821
+ } | {
2822
+ kind: "Trc20";
2823
+ contract: string;
2824
+ to: string;
2825
+ amount: string;
2826
+ } | {
2827
+ kind: "Trc721";
2828
+ contract: string;
2829
+ to: string;
2830
+ tokenId: string;
2831
+ } | {
2832
+ kind: "Asa";
2833
+ assetId: string;
2834
+ to: string;
2835
+ amount: string;
2836
+ } | {
2837
+ kind: "Sep41";
2838
+ issuer: string;
2839
+ assetCode: string;
2840
+ to: string;
2841
+ amount: string;
2842
+ memo?: string | undefined;
2843
+ } | {
2844
+ kind: "Spl" | "Spl2022";
2845
+ to: string;
2846
+ amount: string;
2847
+ mint: string;
2848
+ };
2849
+ metadata: {
2850
+ asset: {
2851
+ symbol?: string | undefined;
2852
+ decimals?: number | undefined;
2853
+ verified?: boolean | undefined;
2854
+ quotes?: {
2855
+ [x: string]: number;
2856
+ } | undefined;
2857
+ };
1510
2858
  };
2859
+ status: "Pending" | "Executing" | "Broadcasted" | "Confirmed" | "Failed" | "Rejected";
2860
+ reason?: string | undefined;
2861
+ txHash?: string | undefined;
2862
+ fee?: string | undefined;
2863
+ dateRequested: string;
2864
+ datePolicyResolved?: string | undefined;
2865
+ dateBroadcasted?: string | undefined;
2866
+ dateConfirmed?: string | undefined;
2867
+ approvalId?: string | undefined;
1511
2868
  } | undefined;
1512
- } | {
1513
- id: string;
1514
- name: string;
1515
- status: "Active" | "Archived";
1516
- dateCreated?: string | undefined;
1517
- dateUpdated?: string | undefined;
1518
- activityKind: "Permissions:Modify";
1519
- rule: {
1520
- kind: "AlwaysTrigger";
1521
- configuration?: {} | undefined;
1522
- };
1523
- action: {
1524
- kind: "RequestApproval";
1525
- approvalGroups: {
1526
- name?: string | undefined;
1527
- quorum: number;
1528
- approvers: {
1529
- userId?: {
1530
- in: string[];
1531
- } | undefined;
2869
+ transactionRequest?: {
2870
+ id: string;
2871
+ walletId: string;
2872
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
2873
+ requester: {
2874
+ userId: string;
2875
+ tokenId?: string | undefined;
2876
+ appId?: string | undefined;
2877
+ };
2878
+ requestBody: {
2879
+ kind: "Transaction";
2880
+ transaction: string;
2881
+ } | {
2882
+ kind: "Evm";
2883
+ to?: string | undefined;
2884
+ value?: (string | string) | undefined;
2885
+ data?: string | undefined;
2886
+ nonce?: (number | string | string) | undefined;
2887
+ gasLimit?: (string | string) | undefined;
2888
+ } | {
2889
+ kind: "Eip1559";
2890
+ to?: string | undefined;
2891
+ value?: (string | string) | undefined;
2892
+ data?: string | undefined;
2893
+ nonce?: (number | string | string) | undefined;
2894
+ gasLimit?: (string | string) | undefined;
2895
+ maxFeePerGas?: (string | string) | undefined;
2896
+ maxPriorityFeePerGas?: (string | string) | undefined;
2897
+ } | {
2898
+ kind: "EvmLegacy";
2899
+ to?: string | undefined;
2900
+ value?: (string | string) | undefined;
2901
+ data?: string | undefined;
2902
+ nonce?: (number | string | string) | undefined;
2903
+ gasLimit?: (string | string) | undefined;
2904
+ gasPrice?: (string | string) | undefined;
2905
+ } | {
2906
+ kind: "Psbt";
2907
+ psbt: string;
2908
+ };
2909
+ status: "Pending" | "Executing" | "Broadcasted" | "Confirmed" | "Failed" | "Rejected";
2910
+ reason?: string | undefined;
2911
+ txHash?: string | undefined;
2912
+ fee?: string | undefined;
2913
+ approvalId?: string | undefined;
2914
+ dateRequested: string;
2915
+ datePolicyResolved?: string | undefined;
2916
+ dateBroadcasted?: string | undefined;
2917
+ dateConfirmed?: string | undefined;
2918
+ } | undefined;
2919
+ signatureRequest?: {
2920
+ id: string;
2921
+ walletId: string;
2922
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
2923
+ requester: {
2924
+ userId: string;
2925
+ tokenId?: string | undefined;
2926
+ appId?: string | undefined;
2927
+ };
2928
+ requestBody: {
2929
+ kind: "Hash";
2930
+ hash: string;
2931
+ } | {
2932
+ kind: "Message";
2933
+ message: string;
2934
+ } | {
2935
+ kind: "Transaction";
2936
+ transaction: string;
2937
+ } | {
2938
+ kind: "Eip712";
2939
+ types: {
2940
+ [x: string]: {
2941
+ name: string;
2942
+ type: string;
2943
+ }[];
1532
2944
  };
1533
- }[];
1534
- autoRejectTimeout?: (number | undefined) | null;
1535
- } | {
1536
- kind: "Block";
1537
- };
1538
- filters?: {
1539
- permissionId: {
1540
- in: string[];
2945
+ domain: {
2946
+ name?: string | undefined;
2947
+ version?: string | undefined;
2948
+ chainId?: number | undefined;
2949
+ verifyingContract?: string | undefined;
2950
+ salt?: string | undefined;
2951
+ };
2952
+ message: {
2953
+ [x: string]: unknown;
2954
+ };
2955
+ } | {
2956
+ kind: "Psbt";
2957
+ psbt: string;
1541
2958
  };
2959
+ status: "Pending" | "Executing" | "Signed" | "Confirmed" | "Failed" | "Rejected";
2960
+ reason?: string | undefined;
2961
+ signature?: {
2962
+ r: string;
2963
+ s: string;
2964
+ recid?: number | undefined;
2965
+ encoded?: string | undefined;
2966
+ } | undefined;
2967
+ signatures?: {
2968
+ r: string;
2969
+ s: string;
2970
+ recid?: number | undefined;
2971
+ encoded?: string | undefined;
2972
+ }[] | undefined;
2973
+ signedData?: string | undefined;
2974
+ txHash?: string | undefined;
2975
+ fee?: string | undefined;
2976
+ approvalId?: string | undefined;
2977
+ dateRequested: string;
2978
+ datePolicyResolved?: string | undefined;
2979
+ dateSigned?: string | undefined;
2980
+ dateConfirmed?: string | undefined;
1542
2981
  } | undefined;
1543
2982
  } | {
1544
- id: string;
1545
- name: string;
1546
- status: "Active" | "Archived";
1547
- dateCreated?: string | undefined;
1548
- dateUpdated?: string | undefined;
1549
- activityKind: "Policies:Modify";
1550
- rule: {
1551
- kind: "AlwaysTrigger";
1552
- configuration?: {} | undefined;
1553
- };
1554
- action: {
1555
- kind: "RequestApproval";
1556
- approvalGroups: {
1557
- name?: string | undefined;
1558
- quorum: number;
1559
- approvers: {
1560
- userId?: {
1561
- in: string[];
2983
+ kind: "Wallets:IncomingTransaction";
2984
+ blockchainEvent: {
2985
+ walletId: string;
2986
+ direction: "In" | "Out";
2987
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
2988
+ blockNumber: number;
2989
+ txHash: string;
2990
+ index?: string | undefined;
2991
+ timestamp: string;
2992
+ metadata: {
2993
+ asset: {
2994
+ symbol?: string | undefined;
2995
+ decimals?: number | undefined;
2996
+ verified?: boolean | undefined;
2997
+ quotes?: {
2998
+ [x: string]: number;
1562
2999
  } | undefined;
1563
3000
  };
1564
- }[];
1565
- autoRejectTimeout?: (number | undefined) | null;
1566
- };
1567
- filters?: {
1568
- policyId: {
1569
- in: string[];
3001
+ fee?: {
3002
+ symbol?: string | undefined;
3003
+ decimals?: number | undefined;
3004
+ verified?: boolean | undefined;
3005
+ quotes?: {
3006
+ [x: string]: number;
3007
+ } | undefined;
3008
+ } | undefined;
1570
3009
  };
1571
- } | undefined;
1572
- } | {
1573
- id: string;
1574
- name: string;
1575
- status: "Active" | "Archived";
1576
- dateCreated?: string | undefined;
1577
- dateUpdated?: string | undefined;
1578
- activityKind: "Wallets:Sign";
1579
- rule: {
1580
- kind: "AlwaysTrigger";
1581
- configuration?: {} | undefined;
3010
+ kind: "NativeTransfer";
3011
+ from: string;
3012
+ to: string;
3013
+ value: string;
3014
+ fee?: string | undefined;
3015
+ memo?: string | undefined;
3016
+ liquidityPool?: string | undefined;
3017
+ balanceId?: string | undefined;
3018
+ /** @deprecated use metadata.asset.symbol instead */
3019
+ symbol: string;
3020
+ /** @deprecated use metadata.asset.decimals instead */
3021
+ decimals: number;
3022
+ /** @deprecated use metadata.asset.verified instead */
3023
+ verified?: boolean | undefined;
1582
3024
  } | {
1583
- kind: "TransactionRecipientWhitelist";
1584
- configuration: {
1585
- addresses: string[];
3025
+ walletId: string;
3026
+ direction: "In" | "Out";
3027
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
3028
+ blockNumber: number;
3029
+ txHash: string;
3030
+ index?: string | undefined;
3031
+ timestamp: string;
3032
+ metadata: {
3033
+ asset: {
3034
+ symbol?: string | undefined;
3035
+ decimals?: number | undefined;
3036
+ verified?: boolean | undefined;
3037
+ quotes?: {
3038
+ [x: string]: number;
3039
+ } | undefined;
3040
+ };
3041
+ fee?: {
3042
+ symbol?: string | undefined;
3043
+ decimals?: number | undefined;
3044
+ verified?: boolean | undefined;
3045
+ quotes?: {
3046
+ [x: string]: number;
3047
+ } | undefined;
3048
+ } | undefined;
1586
3049
  };
3050
+ kind: "AsaTransfer";
3051
+ assetId: string;
3052
+ from: string;
3053
+ to: string;
3054
+ value: string;
3055
+ fee?: string | undefined;
3056
+ optIn?: boolean | undefined;
3057
+ optOut?: boolean | undefined;
3058
+ clawback?: boolean | undefined;
1587
3059
  } | {
1588
- kind: "TransactionAmountLimit";
1589
- configuration: {
1590
- limit: number;
1591
- currency: "EUR" | "USD";
3060
+ walletId: string;
3061
+ direction: "In" | "Out";
3062
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
3063
+ blockNumber: number;
3064
+ txHash: string;
3065
+ index?: string | undefined;
3066
+ timestamp: string;
3067
+ metadata: {
3068
+ asset: {
3069
+ symbol?: string | undefined;
3070
+ decimals?: number | undefined;
3071
+ verified?: boolean | undefined;
3072
+ quotes?: {
3073
+ [x: string]: number;
3074
+ } | undefined;
3075
+ };
3076
+ fee?: {
3077
+ symbol?: string | undefined;
3078
+ decimals?: number | undefined;
3079
+ verified?: boolean | undefined;
3080
+ quotes?: {
3081
+ [x: string]: number;
3082
+ } | undefined;
3083
+ } | undefined;
1592
3084
  };
3085
+ kind: "Erc20Transfer";
3086
+ contract: string;
3087
+ from: string;
3088
+ to: string;
3089
+ value: string;
3090
+ fee?: string | undefined;
3091
+ /** @deprecated use metadata.asset.symbol instead */
3092
+ symbol?: string | undefined;
3093
+ /** @deprecated use metadata.asset.decimals instead */
3094
+ decimals: number;
3095
+ /** @deprecated use metadata.asset.verified instead */
3096
+ verified?: boolean | undefined;
1593
3097
  } | {
1594
- kind: "TransactionAmountVelocity";
1595
- configuration: {
1596
- limit: number;
1597
- currency: "EUR" | "USD";
1598
- timeframe: number;
3098
+ walletId: string;
3099
+ direction: "In" | "Out";
3100
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
3101
+ blockNumber: number;
3102
+ txHash: string;
3103
+ index?: string | undefined;
3104
+ timestamp: string;
3105
+ metadata: {
3106
+ asset: {
3107
+ symbol?: string | undefined;
3108
+ decimals?: number | undefined;
3109
+ verified?: boolean | undefined;
3110
+ quotes?: {
3111
+ [x: string]: number;
3112
+ } | undefined;
3113
+ };
3114
+ fee?: {
3115
+ symbol?: string | undefined;
3116
+ decimals?: number | undefined;
3117
+ verified?: boolean | undefined;
3118
+ quotes?: {
3119
+ [x: string]: number;
3120
+ } | undefined;
3121
+ } | undefined;
1599
3122
  };
3123
+ kind: "Erc721Transfer";
3124
+ contract: string;
3125
+ from: string;
3126
+ to: string;
3127
+ tokenId: string;
3128
+ fee?: string | undefined;
3129
+ /** @deprecated use metadata.asset.symbol instead */
3130
+ symbol?: string | undefined;
3131
+ /** @deprecated use metadata.asset.verified instead */
3132
+ verified?: boolean | undefined;
1600
3133
  } | {
1601
- kind: "TransactionCountVelocity";
1602
- configuration: {
1603
- limit: number;
1604
- timeframe: number;
1605
- };
1606
- };
1607
- action: {
1608
- kind: "RequestApproval";
1609
- approvalGroups: {
1610
- name?: string | undefined;
1611
- quorum: number;
1612
- approvers: {
1613
- userId?: {
1614
- in: string[];
3134
+ walletId: string;
3135
+ direction: "In" | "Out";
3136
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
3137
+ blockNumber: number;
3138
+ txHash: string;
3139
+ index?: string | undefined;
3140
+ timestamp: string;
3141
+ metadata: {
3142
+ asset: {
3143
+ symbol?: string | undefined;
3144
+ decimals?: number | undefined;
3145
+ verified?: boolean | undefined;
3146
+ quotes?: {
3147
+ [x: string]: number;
1615
3148
  } | undefined;
1616
3149
  };
1617
- }[];
1618
- autoRejectTimeout?: (number | undefined) | null;
3150
+ fee?: {
3151
+ symbol?: string | undefined;
3152
+ decimals?: number | undefined;
3153
+ verified?: boolean | undefined;
3154
+ quotes?: {
3155
+ [x: string]: number;
3156
+ } | undefined;
3157
+ } | undefined;
3158
+ };
3159
+ kind: "Sep41Transfer";
3160
+ issuer: string;
3161
+ assetCode: string;
3162
+ from: string;
3163
+ to: string;
3164
+ value: string;
3165
+ fee?: string | undefined;
3166
+ memo?: string | undefined;
3167
+ liquidityPool?: string | undefined;
3168
+ balanceId?: string | undefined;
1619
3169
  } | {
1620
- kind: "Block";
1621
- };
1622
- filters?: {
1623
- walletId?: {
1624
- in: string[];
1625
- } | undefined;
1626
- walletTags?: {
1627
- hasAny?: string[] | undefined;
1628
- hasAll?: string[] | undefined;
1629
- } | undefined;
1630
- } | undefined;
1631
- };
1632
- } | undefined;
1633
- };
1634
- export type GetPolicyRequest = GetPolicyParams;
1635
- export type ListApprovalsQuery = {
1636
- limit?: string | undefined;
1637
- paginationToken?: string | undefined;
1638
- status?: ("Pending" | "Approved" | "Denied" | "AutoApproved" | "AutoDenied" | "Expired") | undefined;
1639
- triggerStatus?: ("Triggered" | "Skipped") | undefined;
1640
- initiatorId?: string | undefined;
1641
- approverId?: string | undefined;
1642
- };
1643
- export type ListApprovalsResponse = {
1644
- items: {
1645
- id: string;
1646
- initiatorId: string;
1647
- activity: {
1648
- kind: "Wallets:Sign";
1649
- transferRequest?: {
1650
- id: string;
1651
3170
  walletId: string;
3171
+ direction: "In" | "Out";
1652
3172
  network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
1653
- requester: {
1654
- userId: string;
1655
- tokenId?: string | undefined;
1656
- appId?: string | undefined;
1657
- };
1658
- requestBody: {
1659
- kind: "Native";
1660
- to: string | string | string | string | string | string | string | string | string | string | string;
1661
- amount: string;
1662
- memo?: string | undefined;
1663
- priority?: ("Slow" | "Standard" | "Fast") | undefined;
1664
- } | {
1665
- kind: "Erc20";
1666
- contract: string;
1667
- to: string;
1668
- amount: string;
1669
- priority?: ("Slow" | "Standard" | "Fast") | undefined;
1670
- } | {
1671
- kind: "Erc721";
1672
- contract: string;
1673
- to: string;
1674
- tokenId: string;
1675
- priority?: ("Slow" | "Standard" | "Fast") | undefined;
1676
- } | {
1677
- kind: "Trc10";
1678
- tokenId: string;
1679
- to: string;
1680
- amount: string;
1681
- } | {
1682
- kind: "Trc20";
1683
- contract: string;
1684
- to: string;
1685
- amount: string;
1686
- } | {
1687
- kind: "Trc721";
1688
- contract: string;
1689
- to: string;
1690
- tokenId: string;
1691
- } | {
1692
- kind: "Asa";
1693
- assetId: string;
1694
- to: string;
1695
- amount: string;
1696
- } | {
1697
- kind: "Sep41";
1698
- issuer: string;
1699
- assetCode: string;
1700
- to: string;
1701
- amount: string;
1702
- memo?: string | undefined;
3173
+ blockNumber: number;
3174
+ txHash: string;
3175
+ index?: string | undefined;
3176
+ timestamp: string;
3177
+ metadata: {
3178
+ asset: {
3179
+ symbol?: string | undefined;
3180
+ decimals?: number | undefined;
3181
+ verified?: boolean | undefined;
3182
+ quotes?: {
3183
+ [x: string]: number;
3184
+ } | undefined;
3185
+ };
3186
+ fee?: {
3187
+ symbol?: string | undefined;
3188
+ decimals?: number | undefined;
3189
+ verified?: boolean | undefined;
3190
+ quotes?: {
3191
+ [x: string]: number;
3192
+ } | undefined;
3193
+ } | undefined;
1703
3194
  };
3195
+ kind: "SplTransfer" | "Spl2022Transfer";
3196
+ from?: string | undefined;
3197
+ to?: string | undefined;
3198
+ mint: string;
3199
+ value: string;
3200
+ fee?: string | undefined;
3201
+ } | {
3202
+ walletId: string;
3203
+ direction: "In" | "Out";
3204
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
3205
+ blockNumber: number;
3206
+ txHash: string;
3207
+ index?: string | undefined;
3208
+ timestamp: string;
1704
3209
  metadata: {
1705
3210
  asset: {
1706
3211
  symbol?: string | undefined;
@@ -1710,130 +3215,117 @@ export type ListApprovalsResponse = {
1710
3215
  [x: string]: number;
1711
3216
  } | undefined;
1712
3217
  };
3218
+ fee?: {
3219
+ symbol?: string | undefined;
3220
+ decimals?: number | undefined;
3221
+ verified?: boolean | undefined;
3222
+ quotes?: {
3223
+ [x: string]: number;
3224
+ } | undefined;
3225
+ } | undefined;
1713
3226
  };
1714
- status: "Pending" | "Executing" | "Broadcasted" | "Confirmed" | "Failed" | "Rejected";
1715
- reason?: string | undefined;
1716
- txHash?: string | undefined;
3227
+ kind: "Trc10Transfer";
3228
+ tokenId: string;
3229
+ from: string;
3230
+ to: string;
3231
+ value: string;
1717
3232
  fee?: string | undefined;
1718
- dateRequested: string;
1719
- datePolicyResolved?: string | undefined;
1720
- dateBroadcasted?: string | undefined;
1721
- dateConfirmed?: string | undefined;
1722
- approvalId?: string | undefined;
1723
- } | undefined;
1724
- transactionRequest?: {
1725
- id: string;
3233
+ } | {
1726
3234
  walletId: string;
3235
+ direction: "In" | "Out";
1727
3236
  network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
1728
- requester: {
1729
- userId: string;
1730
- tokenId?: string | undefined;
1731
- appId?: string | undefined;
3237
+ blockNumber: number;
3238
+ txHash: string;
3239
+ index?: string | undefined;
3240
+ timestamp: string;
3241
+ metadata: {
3242
+ asset: {
3243
+ symbol?: string | undefined;
3244
+ decimals?: number | undefined;
3245
+ verified?: boolean | undefined;
3246
+ quotes?: {
3247
+ [x: string]: number;
3248
+ } | undefined;
3249
+ };
3250
+ fee?: {
3251
+ symbol?: string | undefined;
3252
+ decimals?: number | undefined;
3253
+ verified?: boolean | undefined;
3254
+ quotes?: {
3255
+ [x: string]: number;
3256
+ } | undefined;
3257
+ } | undefined;
1732
3258
  };
1733
- requestBody: {
1734
- kind: "Transaction";
1735
- transaction: string;
1736
- } | {
1737
- kind: "Evm";
1738
- to?: string | undefined;
1739
- value?: (string | string) | undefined;
1740
- data?: string | undefined;
1741
- nonce?: (number | string | string) | undefined;
1742
- gasLimit?: (string | string) | undefined;
1743
- } | {
1744
- kind: "Eip1559";
1745
- to?: string | undefined;
1746
- value?: (string | string) | undefined;
1747
- data?: string | undefined;
1748
- nonce?: (number | string | string) | undefined;
1749
- gasLimit?: (string | string) | undefined;
1750
- maxFeePerGas?: (string | string) | undefined;
1751
- maxPriorityFeePerGas?: (string | string) | undefined;
1752
- } | {
1753
- kind: "EvmLegacy";
1754
- to?: string | undefined;
1755
- value?: (string | string) | undefined;
1756
- data?: string | undefined;
1757
- nonce?: (number | string | string) | undefined;
1758
- gasLimit?: (string | string) | undefined;
1759
- gasPrice?: (string | string) | undefined;
1760
- } | {
1761
- kind: "Psbt";
1762
- psbt: string;
3259
+ kind: "Trc20Transfer";
3260
+ contract: string;
3261
+ from: string;
3262
+ to: string;
3263
+ value: string;
3264
+ fee?: string | undefined;
3265
+ } | {
3266
+ walletId: string;
3267
+ direction: "In" | "Out";
3268
+ network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
3269
+ blockNumber: number;
3270
+ txHash: string;
3271
+ index?: string | undefined;
3272
+ timestamp: string;
3273
+ metadata: {
3274
+ asset: {
3275
+ symbol?: string | undefined;
3276
+ decimals?: number | undefined;
3277
+ verified?: boolean | undefined;
3278
+ quotes?: {
3279
+ [x: string]: number;
3280
+ } | undefined;
3281
+ };
3282
+ fee?: {
3283
+ symbol?: string | undefined;
3284
+ decimals?: number | undefined;
3285
+ verified?: boolean | undefined;
3286
+ quotes?: {
3287
+ [x: string]: number;
3288
+ } | undefined;
3289
+ } | undefined;
1763
3290
  };
1764
- status: "Pending" | "Executing" | "Broadcasted" | "Confirmed" | "Failed" | "Rejected";
1765
- reason?: string | undefined;
1766
- txHash?: string | undefined;
3291
+ kind: "Trc721Transfer";
3292
+ contract: string;
3293
+ from: string;
3294
+ to: string;
3295
+ tokenId: string;
1767
3296
  fee?: string | undefined;
1768
- approvalId?: string | undefined;
1769
- dateRequested: string;
1770
- datePolicyResolved?: string | undefined;
1771
- dateBroadcasted?: string | undefined;
1772
- dateConfirmed?: string | undefined;
1773
- } | undefined;
1774
- signatureRequest?: {
1775
- id: string;
3297
+ } | {
1776
3298
  walletId: string;
3299
+ direction: "In" | "Out";
1777
3300
  network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
1778
- requester: {
1779
- userId: string;
1780
- tokenId?: string | undefined;
1781
- appId?: string | undefined;
1782
- };
1783
- requestBody: {
1784
- kind: "Hash";
1785
- hash: string;
1786
- } | {
1787
- kind: "Message";
1788
- message: string;
1789
- } | {
1790
- kind: "Transaction";
1791
- transaction: string;
1792
- } | {
1793
- kind: "Eip712";
1794
- types: {
1795
- [x: string]: {
1796
- name: string;
1797
- type: string;
1798
- }[];
1799
- };
1800
- domain: {
1801
- name?: string | undefined;
1802
- version?: string | undefined;
1803
- chainId?: number | undefined;
1804
- verifyingContract?: string | undefined;
1805
- salt?: string | undefined;
1806
- };
1807
- message: {
1808
- [x: string]: unknown;
3301
+ blockNumber: number;
3302
+ txHash: string;
3303
+ index?: string | undefined;
3304
+ timestamp: string;
3305
+ metadata: {
3306
+ asset: {
3307
+ symbol?: string | undefined;
3308
+ decimals?: number | undefined;
3309
+ verified?: boolean | undefined;
3310
+ quotes?: {
3311
+ [x: string]: number;
3312
+ } | undefined;
1809
3313
  };
1810
- } | {
1811
- kind: "Psbt";
1812
- psbt: string;
3314
+ fee?: {
3315
+ symbol?: string | undefined;
3316
+ decimals?: number | undefined;
3317
+ verified?: boolean | undefined;
3318
+ quotes?: {
3319
+ [x: string]: number;
3320
+ } | undefined;
3321
+ } | undefined;
1813
3322
  };
1814
- status: "Pending" | "Executing" | "Signed" | "Confirmed" | "Failed" | "Rejected";
1815
- reason?: string | undefined;
1816
- signature?: {
1817
- r: string;
1818
- s: string;
1819
- recid?: number | undefined;
1820
- encoded?: string | undefined;
1821
- } | undefined;
1822
- signatures?: {
1823
- r: string;
1824
- s: string;
1825
- recid?: number | undefined;
1826
- encoded?: string | undefined;
1827
- }[] | undefined;
1828
- signedData?: string | undefined;
1829
- txHash?: string | undefined;
3323
+ kind: "UtxoTransfer";
3324
+ froms: string[];
3325
+ tos: string[];
3326
+ value: string;
1830
3327
  fee?: string | undefined;
1831
- approvalId?: string | undefined;
1832
- dateRequested: string;
1833
- datePolicyResolved?: string | undefined;
1834
- dateSigned?: string | undefined;
1835
- dateConfirmed?: string | undefined;
1836
- } | undefined;
3328
+ };
1837
3329
  } | {
1838
3330
  kind: "Policies:Modify";
1839
3331
  changeRequest: {
@@ -1975,6 +3467,28 @@ export type ListApprovalsResponse = {
1975
3467
  limit: number;
1976
3468
  timeframe: number;
1977
3469
  };
3470
+ } | {
3471
+ kind: "ChainalysisTransactionPrescreening";
3472
+ configuration: {
3473
+ alerts: {
3474
+ alertLevel: "LOW" | "MEDIUM" | "HIGH" | "SEVERE";
3475
+ categoryIds: number[];
3476
+ };
3477
+ exposures: {
3478
+ direct: {
3479
+ categoryIds: number[];
3480
+ };
3481
+ };
3482
+ addresses: {
3483
+ categoryIds: number[];
3484
+ };
3485
+ fallbackBehaviours: {
3486
+ skipUnscreenableTransaction: boolean;
3487
+ skipUnsupportedNetwork: boolean;
3488
+ skipUnsupportedAsset: boolean;
3489
+ skipChainalysisFailure: boolean;
3490
+ };
3491
+ };
1978
3492
  };
1979
3493
  action: {
1980
3494
  kind: "RequestApproval";
@@ -1990,6 +3504,47 @@ export type ListApprovalsResponse = {
1990
3504
  autoRejectTimeout?: (number | undefined) | null;
1991
3505
  } | {
1992
3506
  kind: "Block";
3507
+ } | {
3508
+ kind: "NoAction";
3509
+ };
3510
+ filters?: {
3511
+ walletId?: {
3512
+ in: string[];
3513
+ } | undefined;
3514
+ walletTags?: {
3515
+ hasAny?: string[] | undefined;
3516
+ hasAll?: string[] | undefined;
3517
+ } | undefined;
3518
+ } | undefined;
3519
+ } | {
3520
+ id: string;
3521
+ name: string;
3522
+ status: "Active" | "Archived";
3523
+ dateCreated?: string | undefined;
3524
+ dateUpdated?: string | undefined;
3525
+ activityKind: "Wallets:IncomingTransaction";
3526
+ rule: {
3527
+ kind: "ChainalysisTransactionScreening";
3528
+ configuration: {
3529
+ alerts: {
3530
+ alertLevel: "LOW" | "MEDIUM" | "HIGH" | "SEVERE";
3531
+ categoryIds: number[];
3532
+ };
3533
+ exposures: {
3534
+ direct: {
3535
+ categoryIds: number[];
3536
+ };
3537
+ };
3538
+ fallbackBehaviours: {
3539
+ skipUnscreenableTransaction: boolean;
3540
+ skipUnsupportedNetwork: boolean;
3541
+ skipUnsupportedAsset: boolean;
3542
+ skipChainalysisFailure: boolean;
3543
+ };
3544
+ };
3545
+ };
3546
+ action: {
3547
+ kind: "NoAction";
1993
3548
  };
1994
3549
  filters?: {
1995
3550
  walletId?: {
@@ -2051,14 +3606,14 @@ export type ListApprovalsResponse = {
2051
3606
  };
2052
3607
  };
2053
3608
  };
2054
- status: "Pending" | "Approved" | "Denied" | "AutoApproved" | "AutoDenied" | "Expired";
3609
+ status: "Pending" | "Approved" | "Denied" | "Expired";
2055
3610
  expirationDate?: string | undefined;
2056
3611
  dateCreated?: string | undefined;
2057
3612
  dateUpdated: string;
2058
3613
  dateResolved?: string | undefined;
2059
- evaluatedPolicies: {
3614
+ policyEvaluations: {
2060
3615
  policyId: string;
2061
- triggerStatus: "Triggered" | "Skipped";
3616
+ triggered: boolean;
2062
3617
  reason: string;
2063
3618
  }[];
2064
3619
  decisions: {
@@ -2204,6 +3759,28 @@ export type ListPoliciesResponse = {
2204
3759
  limit: number;
2205
3760
  timeframe: number;
2206
3761
  };
3762
+ } | {
3763
+ kind: "ChainalysisTransactionPrescreening";
3764
+ configuration: {
3765
+ alerts: {
3766
+ alertLevel: "LOW" | "MEDIUM" | "HIGH" | "SEVERE";
3767
+ categoryIds: number[];
3768
+ };
3769
+ exposures: {
3770
+ direct: {
3771
+ categoryIds: number[];
3772
+ };
3773
+ };
3774
+ addresses: {
3775
+ categoryIds: number[];
3776
+ };
3777
+ fallbackBehaviours: {
3778
+ skipUnscreenableTransaction: boolean;
3779
+ skipUnsupportedNetwork: boolean;
3780
+ skipUnsupportedAsset: boolean;
3781
+ skipChainalysisFailure: boolean;
3782
+ };
3783
+ };
2207
3784
  };
2208
3785
  action: {
2209
3786
  kind: "RequestApproval";
@@ -2219,6 +3796,47 @@ export type ListPoliciesResponse = {
2219
3796
  autoRejectTimeout?: (number | undefined) | null;
2220
3797
  } | {
2221
3798
  kind: "Block";
3799
+ } | {
3800
+ kind: "NoAction";
3801
+ };
3802
+ filters?: {
3803
+ walletId?: {
3804
+ in: string[];
3805
+ } | undefined;
3806
+ walletTags?: {
3807
+ hasAny?: string[] | undefined;
3808
+ hasAll?: string[] | undefined;
3809
+ } | undefined;
3810
+ } | undefined;
3811
+ } | {
3812
+ id: string;
3813
+ name: string;
3814
+ status: "Active" | "Archived";
3815
+ dateCreated?: string | undefined;
3816
+ dateUpdated?: string | undefined;
3817
+ activityKind: "Wallets:IncomingTransaction";
3818
+ rule: {
3819
+ kind: "ChainalysisTransactionScreening";
3820
+ configuration: {
3821
+ alerts: {
3822
+ alertLevel: "LOW" | "MEDIUM" | "HIGH" | "SEVERE";
3823
+ categoryIds: number[];
3824
+ };
3825
+ exposures: {
3826
+ direct: {
3827
+ categoryIds: number[];
3828
+ };
3829
+ };
3830
+ fallbackBehaviours: {
3831
+ skipUnscreenableTransaction: boolean;
3832
+ skipUnsupportedNetwork: boolean;
3833
+ skipUnsupportedAsset: boolean;
3834
+ skipChainalysisFailure: boolean;
3835
+ };
3836
+ };
3837
+ };
3838
+ action: {
3839
+ kind: "NoAction";
2222
3840
  };
2223
3841
  filters?: {
2224
3842
  walletId?: {
@@ -2369,6 +3987,28 @@ export type ListPoliciesResponse = {
2369
3987
  limit: number;
2370
3988
  timeframe: number;
2371
3989
  };
3990
+ } | {
3991
+ kind: "ChainalysisTransactionPrescreening";
3992
+ configuration: {
3993
+ alerts: {
3994
+ alertLevel: "LOW" | "MEDIUM" | "HIGH" | "SEVERE";
3995
+ categoryIds: number[];
3996
+ };
3997
+ exposures: {
3998
+ direct: {
3999
+ categoryIds: number[];
4000
+ };
4001
+ };
4002
+ addresses: {
4003
+ categoryIds: number[];
4004
+ };
4005
+ fallbackBehaviours: {
4006
+ skipUnscreenableTransaction: boolean;
4007
+ skipUnsupportedNetwork: boolean;
4008
+ skipUnsupportedAsset: boolean;
4009
+ skipChainalysisFailure: boolean;
4010
+ };
4011
+ };
2372
4012
  };
2373
4013
  action: {
2374
4014
  kind: "RequestApproval";
@@ -2384,6 +4024,47 @@ export type ListPoliciesResponse = {
2384
4024
  autoRejectTimeout?: (number | undefined) | null;
2385
4025
  } | {
2386
4026
  kind: "Block";
4027
+ } | {
4028
+ kind: "NoAction";
4029
+ };
4030
+ filters?: {
4031
+ walletId?: {
4032
+ in: string[];
4033
+ } | undefined;
4034
+ walletTags?: {
4035
+ hasAny?: string[] | undefined;
4036
+ hasAll?: string[] | undefined;
4037
+ } | undefined;
4038
+ } | undefined;
4039
+ } | {
4040
+ id: string;
4041
+ name: string;
4042
+ status: "Active" | "Archived";
4043
+ dateCreated?: string | undefined;
4044
+ dateUpdated?: string | undefined;
4045
+ activityKind: "Wallets:IncomingTransaction";
4046
+ rule: {
4047
+ kind: "ChainalysisTransactionScreening";
4048
+ configuration: {
4049
+ alerts: {
4050
+ alertLevel: "LOW" | "MEDIUM" | "HIGH" | "SEVERE";
4051
+ categoryIds: number[];
4052
+ };
4053
+ exposures: {
4054
+ direct: {
4055
+ categoryIds: number[];
4056
+ };
4057
+ };
4058
+ fallbackBehaviours: {
4059
+ skipUnscreenableTransaction: boolean;
4060
+ skipUnsupportedNetwork: boolean;
4061
+ skipUnsupportedAsset: boolean;
4062
+ skipChainalysisFailure: boolean;
4063
+ };
4064
+ };
4065
+ };
4066
+ action: {
4067
+ kind: "NoAction";
2387
4068
  };
2388
4069
  filters?: {
2389
4070
  walletId?: {
@@ -2511,6 +4192,28 @@ export type UpdatePolicyBody = {
2511
4192
  limit: number;
2512
4193
  timeframe: number;
2513
4194
  };
4195
+ } | {
4196
+ kind: "ChainalysisTransactionPrescreening";
4197
+ configuration: {
4198
+ alerts: {
4199
+ alertLevel: "LOW" | "MEDIUM" | "HIGH" | "SEVERE";
4200
+ categoryIds: number[];
4201
+ };
4202
+ exposures: {
4203
+ direct: {
4204
+ categoryIds: number[];
4205
+ };
4206
+ };
4207
+ addresses: {
4208
+ categoryIds: number[];
4209
+ };
4210
+ fallbackBehaviours: {
4211
+ skipUnscreenableTransaction: boolean;
4212
+ skipUnsupportedNetwork: boolean;
4213
+ skipUnsupportedAsset: boolean;
4214
+ skipChainalysisFailure: boolean;
4215
+ };
4216
+ };
2514
4217
  };
2515
4218
  action: {
2516
4219
  kind: "RequestApproval";
@@ -2526,6 +4229,43 @@ export type UpdatePolicyBody = {
2526
4229
  autoRejectTimeout?: (number | undefined) | null;
2527
4230
  } | {
2528
4231
  kind: "Block";
4232
+ } | {
4233
+ kind: "NoAction";
4234
+ };
4235
+ filters?: {
4236
+ walletId?: {
4237
+ in: string[];
4238
+ } | undefined;
4239
+ walletTags?: {
4240
+ hasAny?: string[] | undefined;
4241
+ hasAll?: string[] | undefined;
4242
+ } | undefined;
4243
+ } | undefined;
4244
+ } | {
4245
+ name: string;
4246
+ activityKind: "Wallets:IncomingTransaction";
4247
+ rule: {
4248
+ kind: "ChainalysisTransactionScreening";
4249
+ configuration: {
4250
+ alerts: {
4251
+ alertLevel: "LOW" | "MEDIUM" | "HIGH" | "SEVERE";
4252
+ categoryIds: number[];
4253
+ };
4254
+ exposures: {
4255
+ direct: {
4256
+ categoryIds: number[];
4257
+ };
4258
+ };
4259
+ fallbackBehaviours: {
4260
+ skipUnscreenableTransaction: boolean;
4261
+ skipUnsupportedNetwork: boolean;
4262
+ skipUnsupportedAsset: boolean;
4263
+ skipChainalysisFailure: boolean;
4264
+ };
4265
+ };
4266
+ };
4267
+ action: {
4268
+ kind: "NoAction";
2529
4269
  };
2530
4270
  filters?: {
2531
4271
  walletId?: {
@@ -2665,6 +4405,28 @@ export type UpdatePolicyResponse = {
2665
4405
  limit: number;
2666
4406
  timeframe: number;
2667
4407
  };
4408
+ } | {
4409
+ kind: "ChainalysisTransactionPrescreening";
4410
+ configuration: {
4411
+ alerts: {
4412
+ alertLevel: "LOW" | "MEDIUM" | "HIGH" | "SEVERE";
4413
+ categoryIds: number[];
4414
+ };
4415
+ exposures: {
4416
+ direct: {
4417
+ categoryIds: number[];
4418
+ };
4419
+ };
4420
+ addresses: {
4421
+ categoryIds: number[];
4422
+ };
4423
+ fallbackBehaviours: {
4424
+ skipUnscreenableTransaction: boolean;
4425
+ skipUnsupportedNetwork: boolean;
4426
+ skipUnsupportedAsset: boolean;
4427
+ skipChainalysisFailure: boolean;
4428
+ };
4429
+ };
2668
4430
  };
2669
4431
  action: {
2670
4432
  kind: "RequestApproval";
@@ -2680,6 +4442,47 @@ export type UpdatePolicyResponse = {
2680
4442
  autoRejectTimeout?: (number | undefined) | null;
2681
4443
  } | {
2682
4444
  kind: "Block";
4445
+ } | {
4446
+ kind: "NoAction";
4447
+ };
4448
+ filters?: {
4449
+ walletId?: {
4450
+ in: string[];
4451
+ } | undefined;
4452
+ walletTags?: {
4453
+ hasAny?: string[] | undefined;
4454
+ hasAll?: string[] | undefined;
4455
+ } | undefined;
4456
+ } | undefined;
4457
+ } | {
4458
+ id: string;
4459
+ name: string;
4460
+ status: "Active" | "Archived";
4461
+ dateCreated?: string | undefined;
4462
+ dateUpdated?: string | undefined;
4463
+ activityKind: "Wallets:IncomingTransaction";
4464
+ rule: {
4465
+ kind: "ChainalysisTransactionScreening";
4466
+ configuration: {
4467
+ alerts: {
4468
+ alertLevel: "LOW" | "MEDIUM" | "HIGH" | "SEVERE";
4469
+ categoryIds: number[];
4470
+ };
4471
+ exposures: {
4472
+ direct: {
4473
+ categoryIds: number[];
4474
+ };
4475
+ };
4476
+ fallbackBehaviours: {
4477
+ skipUnscreenableTransaction: boolean;
4478
+ skipUnsupportedNetwork: boolean;
4479
+ skipUnsupportedAsset: boolean;
4480
+ skipChainalysisFailure: boolean;
4481
+ };
4482
+ };
4483
+ };
4484
+ action: {
4485
+ kind: "NoAction";
2683
4486
  };
2684
4487
  filters?: {
2685
4488
  walletId?: {