wallaby-cash 3.7.0 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +52 -9
- package/dist/base.d.ts +1 -0
- package/dist/generated/api.d.ts +1451 -305
- package/dist/generated/validators.d.ts +17 -0
- package/dist/helpers/api-validation.d.ts +23 -0
- package/dist/index.cjs.js +9 -12722
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +9 -12656
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +9 -12776
- package/dist/index.js.map +1 -1
- package/dist/lib/wallet/wallet-handlers.service.d.ts +5 -5
- package/dist/package.json +8 -10
- package/dist/types/base.d.ts +8 -0
- package/dist/types/common.d.ts +35 -2
- package/dist/types/error-response-codes.d.ts +1 -0
- package/dist/types/wallet.d.ts +3 -3
- package/package.json +8 -10
package/dist/generated/api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type AddAssetToUserData =
|
|
1
|
+
export type AddAssetToUserData = AddUserAssetResponseDto;
|
|
2
2
|
export interface AddMerchantApiKeyOriginBodyDto {
|
|
3
3
|
/**
|
|
4
4
|
* @format uuid
|
|
@@ -16,16 +16,11 @@ export interface AddMerchantApiKeyOriginBodyDto {
|
|
|
16
16
|
* @example "180b0a0f-6935-4047-a32d-b2a4d50acfc9"
|
|
17
17
|
*/
|
|
18
18
|
merchantId: string;
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
-
* @maxLength 256
|
|
22
|
-
* @pattern ^(https?|ftp)://[^s/$.?#].[^s]*$
|
|
23
|
-
* @example "https://example.com"
|
|
24
|
-
*/
|
|
25
|
-
origin: string;
|
|
19
|
+
/** @example ["https://example.com","https://example2.com"] */
|
|
20
|
+
origins: string[];
|
|
26
21
|
}
|
|
27
22
|
export interface AddMerchantApiKeyOriginResponseDto {
|
|
28
|
-
|
|
23
|
+
apiKeyOrigins: ApiKeyOrigin[];
|
|
29
24
|
/**
|
|
30
25
|
* @minLength 2
|
|
31
26
|
* @maxLength 256
|
|
@@ -110,7 +105,7 @@ export interface AddMerchantWalletAssetsBodyDto {
|
|
|
110
105
|
/** @example true */
|
|
111
106
|
updateExistingWallets?: boolean;
|
|
112
107
|
}
|
|
113
|
-
export type
|
|
108
|
+
export type AddMerchantWalletAssetsData = AddMerchantWalletAssetsResponseDto;
|
|
114
109
|
export interface AddMerchantWalletAssetsResponseDto {
|
|
115
110
|
/**
|
|
116
111
|
* @minLength 2
|
|
@@ -128,7 +123,7 @@ export interface AddNewDeviceRequestDto {
|
|
|
128
123
|
*/
|
|
129
124
|
clientAuthPubKey: string;
|
|
130
125
|
/** Backup share encrypted with the KEK: symmetric as returned during wallet creation, or Legacy backup share ECIES-encrypted with the legacy wallet auth public key */
|
|
131
|
-
encryptedBackupShare: SymmetricEncryptedDto;
|
|
126
|
+
encryptedBackupShare: SymmetricEncryptedDto | AsymmetricEncryptedDto;
|
|
132
127
|
/**
|
|
133
128
|
* The ID of the wallet to add a new device to
|
|
134
129
|
* @format uuid
|
|
@@ -151,15 +146,47 @@ export interface AddNewDeviceResponseDto {
|
|
|
151
146
|
/** Backup share encrypted by the backup device pub key */
|
|
152
147
|
share: KeyShareDto;
|
|
153
148
|
}
|
|
149
|
+
export interface AddUserAssetConfigDto {
|
|
150
|
+
/**
|
|
151
|
+
* Chain ID. Either chainId or chainName must be provided.
|
|
152
|
+
* @format uuid
|
|
153
|
+
*/
|
|
154
|
+
chainId?: string;
|
|
155
|
+
/** Chain name. Either chainId or chainName must be provided. */
|
|
156
|
+
chainName?: "BITCOIN" | "ETHEREUM" | "ALGORAND" | "AVALANCHE" | "POLYGON" | "BASE" | "BSC" | "SUI" | "INJECTIVE" | "SEI" | "APTOS" | "SOLANA" | "POLYMESH" | "HEDERA" | "CANTON";
|
|
157
|
+
/** Token contract address */
|
|
158
|
+
contractAddress: string;
|
|
159
|
+
/**
|
|
160
|
+
* Number of decimals
|
|
161
|
+
* @example 18
|
|
162
|
+
*/
|
|
163
|
+
decimals: number;
|
|
164
|
+
/** Icon URL */
|
|
165
|
+
iconUrl?: string;
|
|
166
|
+
/**
|
|
167
|
+
* Asset display name
|
|
168
|
+
* @example "Algorand"
|
|
169
|
+
*/
|
|
170
|
+
name: string;
|
|
171
|
+
/**
|
|
172
|
+
* Asset symbol
|
|
173
|
+
* @example "ALGO"
|
|
174
|
+
*/
|
|
175
|
+
symbol: string;
|
|
176
|
+
/** Ticker; defaults to symbol when omitted */
|
|
177
|
+
ticker?: string;
|
|
178
|
+
tokenStandard?: "ERC_20" | "ERC_1404" | "BEP_20" | "ARC_20" | "ARC_1404" | "MRC_20" | "BRC_20" | "ALGO_STANDARD" | "ALGO_APP" | "SUI_COIN" | "SUI_MOVE_COIN" | "SUI_SECURITY_TOKEN" | "TOKEN_FACTORY" | "SEI_ERC_20" | "APT_FUNGIBLE_ASSET" | "SPL_TOKEN" | "SPL_TOKEN_2022" | "POLYMESH_ASSET" | "HBAR_ERC_20";
|
|
179
|
+
}
|
|
154
180
|
export interface AddUserAssetDto {
|
|
155
181
|
/** Asset Config ID */
|
|
156
|
-
assetConfigId
|
|
182
|
+
assetConfigId?: string;
|
|
157
183
|
/**
|
|
158
184
|
* Client auth public key associated with the signed message. Required when adding a Canton asset whose party is not yet registered.
|
|
159
185
|
* @example "e3421d7f9d6888ea83bef6b28ce0a2ab6eb6fe8a8fbfa3743240992590816b08f9a62edcc63296d056c552054d583fec36d23ef11dffb24c95aaf4a47d50dccc"
|
|
160
186
|
*/
|
|
161
187
|
clientAuthPubKey?: string;
|
|
162
|
-
config
|
|
188
|
+
/** Asset config for the config-only add path (used when assetConfigId is not provided). */
|
|
189
|
+
config?: AddUserAssetConfigDto;
|
|
163
190
|
/** Seed encrypted asymmetrically by the current user corresponding wallaby auth public key. Used by the enclave to register the Canton party. */
|
|
164
191
|
encryptedSeed?: EncryptedDataInterface;
|
|
165
192
|
/**
|
|
@@ -182,6 +209,10 @@ export interface AddUserAssetDto {
|
|
|
182
209
|
/** User Wallet ID */
|
|
183
210
|
walletId: string;
|
|
184
211
|
}
|
|
212
|
+
export interface AddUserAssetResponseDto {
|
|
213
|
+
/** User Asset */
|
|
214
|
+
asset: UserAsset;
|
|
215
|
+
}
|
|
185
216
|
export interface AdminBurnRequestDto {
|
|
186
217
|
/**
|
|
187
218
|
* Asset symbol
|
|
@@ -504,19 +535,19 @@ export interface AdminSetIdentityRequestDto {
|
|
|
504
535
|
}
|
|
505
536
|
export interface AdminTransaction {
|
|
506
537
|
/** The message returned from the Relayer API */
|
|
507
|
-
message: string;
|
|
538
|
+
message: string | null;
|
|
508
539
|
/** The reason returned from the Relayer API (SOL format) */
|
|
509
|
-
reason: string;
|
|
540
|
+
reason: string | null;
|
|
510
541
|
/** The signature of the request sent to the Relayer API */
|
|
511
542
|
reqSignature: string;
|
|
512
543
|
/** The request ID returned from the Relayer API (SOL format) */
|
|
513
|
-
requestId: string;
|
|
544
|
+
requestId: string | null;
|
|
514
545
|
/** Flag denoting if the signature was used */
|
|
515
546
|
signatureUsed: boolean;
|
|
516
547
|
/** The logs of the transaction returned from the Relayer API */
|
|
517
|
-
txLogs:
|
|
548
|
+
txLogs: AdminTransactionTxLog[] | null;
|
|
518
549
|
/** The decoded logs of the transaction */
|
|
519
|
-
txLogsDecoded:
|
|
550
|
+
txLogsDecoded: AdminTransactionTxLogDecoded[] | null;
|
|
520
551
|
}
|
|
521
552
|
export interface AdminTransactionTxLog {
|
|
522
553
|
address: string;
|
|
@@ -526,7 +557,11 @@ export interface AdminTransactionTxLog {
|
|
|
526
557
|
transactionIndex: number;
|
|
527
558
|
}
|
|
528
559
|
export interface AdminTransactionTxLogDecoded {
|
|
529
|
-
|
|
560
|
+
/**
|
|
561
|
+
* Decoded event arguments keyed by argument name
|
|
562
|
+
* @example {"from":"0x1234567890abcdef1234567890abcdef12345678","value":1000,"approved":true}
|
|
563
|
+
*/
|
|
564
|
+
args: Record<string, string | number | boolean>;
|
|
530
565
|
event: string;
|
|
531
566
|
}
|
|
532
567
|
export interface AdminTxResponse {
|
|
@@ -565,10 +600,10 @@ export interface AdminWalletCreationRequest {
|
|
|
565
600
|
}
|
|
566
601
|
export interface AllowanceTransactionRequestDto {
|
|
567
602
|
/**
|
|
568
|
-
* The amount the owner wishes to allow the spender to spend
|
|
569
|
-
* @example 10
|
|
603
|
+
* The amount the owner wishes to allow the spender to spend, in human-readable units. Sent as a string to preserve precision.
|
|
604
|
+
* @example "10"
|
|
570
605
|
*/
|
|
571
|
-
amount:
|
|
606
|
+
amount: string;
|
|
572
607
|
/**
|
|
573
608
|
* The asset ID for which you wish to specify an allowance
|
|
574
609
|
* @minLength 36
|
|
@@ -604,12 +639,12 @@ export interface AllowanceTransactionRequestDto {
|
|
|
604
639
|
* Seed encrypted asymmetrically by current user corresponding wallaby auth public key, to be decrypted inside the secure code execution environment
|
|
605
640
|
* @example "{"iv":"b7b643ebccf35c262aa2d5c2729c5f3d","ephemPublicKey":"040cff71ed16f1105c45c2214c9e72d3eabde48efe3759c6f150352b19aa8054c302dc1fd8b4f3927bd7d74ae0186854b3a13de7673be4f8424a6ba3702c239729","ciphertext":"736bc1881a02fa08df4a3f1e35d426660e3c35471facba2866e960f8a19b783bac30d037b07dc9e6406e258d09a4a7e4a7cf58d20cf7b8b7201db0f80849a48d20389039e3fc196f42796fe6d501f47afb030f9946ecbc148d8da1e46c3793a4","mac":"b6cbbdbbc3a311d919340fc3ec9ee1911d9ead6d989efa73e0ac3303c51a353e"}"
|
|
606
641
|
*/
|
|
607
|
-
encryptedSeed
|
|
642
|
+
encryptedSeed?: EncryptedDataInterface;
|
|
608
643
|
/**
|
|
609
644
|
* Array of encrypted shares which will be utilized to reconstruct seed and sign
|
|
610
645
|
* @maxItems 100
|
|
611
646
|
*/
|
|
612
|
-
encryptedShares
|
|
647
|
+
encryptedShares?: EncryptedDataInterface[];
|
|
613
648
|
/**
|
|
614
649
|
* Transaction memo or note
|
|
615
650
|
* @minLength 1
|
|
@@ -666,21 +701,110 @@ export interface AllowanceTransactionResponseDto {
|
|
|
666
701
|
transaction: Transaction;
|
|
667
702
|
}
|
|
668
703
|
export interface ApiKey {
|
|
704
|
+
/** Whether the API key allows mobile access */
|
|
705
|
+
allowMobileAccess: boolean;
|
|
706
|
+
/** Application name for the API key */
|
|
707
|
+
appName: string;
|
|
708
|
+
/** PEM-encoded public key used to verify client JWTs */
|
|
709
|
+
clientJWTPubKey: string;
|
|
710
|
+
/**
|
|
711
|
+
* Created at
|
|
712
|
+
* @format date-time
|
|
713
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
714
|
+
*/
|
|
715
|
+
createdAt: string;
|
|
716
|
+
/** Whitelisted domain names */
|
|
717
|
+
domainNames: string[];
|
|
718
|
+
/**
|
|
719
|
+
* API key ID
|
|
720
|
+
* @format uuid
|
|
721
|
+
*/
|
|
722
|
+
id: string;
|
|
723
|
+
/** Whitelisted IP addresses */
|
|
724
|
+
ipAddresses: string[];
|
|
725
|
+
/**
|
|
726
|
+
* Last request at
|
|
727
|
+
* @format date-time
|
|
728
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
729
|
+
*/
|
|
730
|
+
lastRequestAt: string | null;
|
|
669
731
|
merchant: Merchant;
|
|
670
732
|
/** Merchant ID */
|
|
671
733
|
merchantId: string;
|
|
734
|
+
/** Whether the API key only allows dashboard access */
|
|
735
|
+
onlyDashboardAccess: boolean;
|
|
672
736
|
/** @maxItems 100 */
|
|
673
737
|
origins: ApiKeyOrigin[];
|
|
738
|
+
/** Number of requests made with the API key */
|
|
739
|
+
requestsCount: number;
|
|
740
|
+
/** API key status */
|
|
741
|
+
status: "active" | "inactive";
|
|
742
|
+
/** Total request size in KB */
|
|
743
|
+
totalRequestSizeInKb: number;
|
|
744
|
+
/** Total response size in KB */
|
|
745
|
+
totalResponseSizeInKb: number;
|
|
746
|
+
/** Total response time */
|
|
747
|
+
totalResponseTimeInKb: number;
|
|
748
|
+
/**
|
|
749
|
+
* Updated at
|
|
750
|
+
* @format date-time
|
|
751
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
752
|
+
*/
|
|
753
|
+
updatedAt: string;
|
|
754
|
+
/** Number of users associated with the API key */
|
|
755
|
+
usersCount: number;
|
|
756
|
+
}
|
|
757
|
+
export interface ApiKeyDto {
|
|
758
|
+
/** @default false */
|
|
759
|
+
allowMobileAccess: boolean;
|
|
760
|
+
apiKey: AsymmetricEncryptedDto;
|
|
761
|
+
appName: string;
|
|
762
|
+
clientJWTPubKey: string;
|
|
763
|
+
/**
|
|
764
|
+
* Created at
|
|
765
|
+
* @format date-time
|
|
766
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
767
|
+
*/
|
|
768
|
+
createdAt: string;
|
|
769
|
+
/** @format uuid */
|
|
770
|
+
id: string;
|
|
771
|
+
/** @format uuid */
|
|
772
|
+
merchantId: string;
|
|
773
|
+
origins?: ApiKeyOrigin[];
|
|
774
|
+
status: "active" | "inactive";
|
|
775
|
+
/**
|
|
776
|
+
* Updated at
|
|
777
|
+
* @format date-time
|
|
778
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
779
|
+
*/
|
|
780
|
+
updatedAt: string;
|
|
674
781
|
}
|
|
675
782
|
export interface ApiKeyOrigin {
|
|
676
|
-
apiKey:
|
|
677
|
-
/**
|
|
783
|
+
apiKey: ApiKey;
|
|
784
|
+
/** API key ID */
|
|
678
785
|
apiKeyId: string;
|
|
786
|
+
/**
|
|
787
|
+
* Created at
|
|
788
|
+
* @format date-time
|
|
789
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
790
|
+
*/
|
|
791
|
+
createdAt: string;
|
|
792
|
+
/**
|
|
793
|
+
* API key origin ID
|
|
794
|
+
* @format uuid
|
|
795
|
+
*/
|
|
796
|
+
id: string;
|
|
679
797
|
merchant: Merchant;
|
|
680
798
|
/** Merchant ID */
|
|
681
799
|
merchantId: string;
|
|
682
800
|
/** Origin or IP Address */
|
|
683
801
|
origin: string;
|
|
802
|
+
/**
|
|
803
|
+
* Updated at
|
|
804
|
+
* @format date-time
|
|
805
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
806
|
+
*/
|
|
807
|
+
updatedAt: string;
|
|
684
808
|
}
|
|
685
809
|
export interface AppOptInRequestDto {
|
|
686
810
|
/**
|
|
@@ -752,9 +876,10 @@ export interface ArchiveAssetParams {
|
|
|
752
876
|
assetConfigId: string;
|
|
753
877
|
}
|
|
754
878
|
export interface AssetConfig {
|
|
879
|
+
assetContracts?: AssetContract[];
|
|
755
880
|
/** @example 1 */
|
|
756
|
-
assetIndex?: number;
|
|
757
|
-
chain
|
|
881
|
+
assetIndex?: number | null;
|
|
882
|
+
chain?: Chain;
|
|
758
883
|
/**
|
|
759
884
|
* @format uuid
|
|
760
885
|
* @example "b1d4b3b0-1b1b-4b3b-8b1b-1b1b4b3b8b1b"
|
|
@@ -762,52 +887,99 @@ export interface AssetConfig {
|
|
|
762
887
|
chainId: string;
|
|
763
888
|
/** @example "ALGORAND" */
|
|
764
889
|
chainName?: "BITCOIN" | "ETHEREUM" | "ALGORAND" | "AVALANCHE" | "POLYGON" | "BASE" | "BSC" | "SUI" | "INJECTIVE" | "SEI" | "APTOS" | "SOLANA" | "POLYMESH" | "HEDERA" | "CANTON";
|
|
765
|
-
contractAddress: string;
|
|
890
|
+
contractAddress: string | null;
|
|
766
891
|
/** The version of the RestrictedLockupToken contract */
|
|
767
892
|
contractVersion?: string;
|
|
768
|
-
|
|
893
|
+
/** The merchant who created the asset */
|
|
894
|
+
createdByMerchant?: AssetConfigMerchantDto;
|
|
769
895
|
/** The merchant id who created the asset */
|
|
770
|
-
createdByMerchantId?: string;
|
|
771
|
-
createdByUser
|
|
896
|
+
createdByMerchantId?: string | null;
|
|
897
|
+
createdByUser?: User;
|
|
772
898
|
/** The user id who created the asset */
|
|
773
|
-
createdByUserId?: string;
|
|
899
|
+
createdByUserId?: string | null;
|
|
774
900
|
/** @example 18 */
|
|
775
901
|
decimals: number;
|
|
776
|
-
description?: string;
|
|
902
|
+
description?: string | null;
|
|
903
|
+
/** Chain-specific extended configuration for the asset (arbitrary key-value pairs) */
|
|
904
|
+
extendedConfiguration?: Record<string, any>;
|
|
777
905
|
iconUrl?: string;
|
|
778
906
|
/** Asset ID */
|
|
779
907
|
id: string;
|
|
908
|
+
/**
|
|
909
|
+
* Whether the asset is ready to be used
|
|
910
|
+
* @example true
|
|
911
|
+
*/
|
|
912
|
+
isAssetReady?: boolean;
|
|
780
913
|
isOffChain?: boolean;
|
|
914
|
+
merchantAssets?: MerchantAsset[];
|
|
781
915
|
/**
|
|
782
916
|
* @format uuid
|
|
783
917
|
* @example "b1d4b3b0-1b1b-4b3b-8b1b-1b1b4b3b8b1b"
|
|
784
918
|
*/
|
|
785
|
-
merchantId?: string;
|
|
919
|
+
merchantId?: string | null;
|
|
786
920
|
/** @example "Algorand" */
|
|
787
921
|
name: string;
|
|
788
|
-
ownerAddresses?: string[];
|
|
922
|
+
ownerAddresses?: string[] | null;
|
|
789
923
|
/** This field specify if an asset owned by a single wallet or requires multiple signatures to broadcast a transaction */
|
|
790
924
|
ownershipType?: "SINGLE_OWNER" | "MULTI_SIG";
|
|
791
925
|
/** The address of the forwarder contract to use with this token */
|
|
792
926
|
relayerAddress?: string;
|
|
927
|
+
/**
|
|
928
|
+
* Whether the asset requires KYC verification
|
|
929
|
+
* @example false
|
|
930
|
+
*/
|
|
931
|
+
requiresKyc?: boolean;
|
|
793
932
|
/** The status of the asset configuration */
|
|
794
933
|
status?: "active" | "inactive" | "archived";
|
|
934
|
+
suiConfig?: SuiConfig;
|
|
795
935
|
/** Swap provider assets */
|
|
796
|
-
swapProviderAssets
|
|
936
|
+
swapProviderAssets?: SwapProviderAsset[];
|
|
797
937
|
/** @example "ALGO" */
|
|
798
938
|
symbol: string;
|
|
799
|
-
ticker?: string;
|
|
939
|
+
ticker?: string | null;
|
|
800
940
|
/** Distributions associated with this token (for Upside v5 RestrictedLockupTokens) */
|
|
801
|
-
tokenDistributions
|
|
941
|
+
tokenDistributions?: TokenDistribution[];
|
|
802
942
|
/**
|
|
803
943
|
* Optional value only used when dealing with non native assets (aka tokens), it can be ERC_20, BEP_20, ALGO_STANDARD, ALGO_APP. Use null for native assets (coins).
|
|
804
944
|
* @example "ERC_20"
|
|
805
945
|
*/
|
|
806
|
-
tokenStandard
|
|
946
|
+
tokenStandard?: "ERC_20" | "ERC_1404" | "BEP_20" | "ARC_20" | "ARC_1404" | "MRC_20" | "BRC_20" | "ALGO_STANDARD" | "ALGO_APP" | "SUI_COIN" | "SUI_MOVE_COIN" | "SUI_SECURITY_TOKEN" | "TOKEN_FACTORY" | "SEI_ERC_20" | "APT_FUNGIBLE_ASSET" | "SPL_TOKEN" | "SPL_TOKEN_2022" | "POLYMESH_ASSET" | "HBAR_ERC_20" | null;
|
|
947
|
+
transactions?: Transaction[];
|
|
807
948
|
/** @example "TOKEN" */
|
|
808
949
|
type?: "COIN" | "TOKEN" | "OBJECT";
|
|
950
|
+
usersAssets?: UserAsset[];
|
|
809
951
|
verified?: boolean;
|
|
810
952
|
}
|
|
953
|
+
export interface AssetConfigMerchantDto {
|
|
954
|
+
/** Merchant ID */
|
|
955
|
+
id: string;
|
|
956
|
+
/** Merchant name */
|
|
957
|
+
name: string;
|
|
958
|
+
/** Merchant name slug */
|
|
959
|
+
nameSlugify: string;
|
|
960
|
+
}
|
|
961
|
+
export interface AssetContract {
|
|
962
|
+
/** The asset configuration associated with this contract */
|
|
963
|
+
assetConfig: AssetConfig;
|
|
964
|
+
/**
|
|
965
|
+
* The ID of the asset configuration associated with this contract
|
|
966
|
+
* @format uuid
|
|
967
|
+
* @example "a4dedb83-4d59-41ca-84b5-4b24a98878d8"
|
|
968
|
+
*/
|
|
969
|
+
configId: string;
|
|
970
|
+
/**
|
|
971
|
+
* The address of the contract
|
|
972
|
+
* @example "0x1234567890abcdef1234567890abcdef12345678"
|
|
973
|
+
*/
|
|
974
|
+
contractAddress: string;
|
|
975
|
+
/** The contract type associated with this contract */
|
|
976
|
+
contractType: ContractType;
|
|
977
|
+
/**
|
|
978
|
+
* The ID of the contract type associated with this contract
|
|
979
|
+
* @example 1
|
|
980
|
+
*/
|
|
981
|
+
contractTypeId: number;
|
|
982
|
+
}
|
|
811
983
|
export interface AssetOptInRequestDto {
|
|
812
984
|
/**
|
|
813
985
|
* Asset Index value is the asset id on the chain
|
|
@@ -929,6 +1101,16 @@ export interface AssetTokenInfoResponseDto {
|
|
|
929
1101
|
*/
|
|
930
1102
|
tokenContractAddress: string;
|
|
931
1103
|
}
|
|
1104
|
+
export interface AsymmetricEncryptedDto {
|
|
1105
|
+
/** Ciphertext of the encrypted data */
|
|
1106
|
+
ciphertext: string;
|
|
1107
|
+
/** Ephemeral public key used for encryption */
|
|
1108
|
+
ephemPublicKey: string;
|
|
1109
|
+
/** Initialization vector used for encryption */
|
|
1110
|
+
iv: string;
|
|
1111
|
+
/** Message authentication code */
|
|
1112
|
+
mac: string;
|
|
1113
|
+
}
|
|
932
1114
|
export interface AuthChangePublicKeyDto {
|
|
933
1115
|
/** @example "e3421d7f9d6888ea83bef6b28ce0a2ab6eb6fe8a8fbfa3743240992590816b08f9a62edcc63296d056c552054d583fec36d23ef11dffb24c95aaf4a47d50dccc" */
|
|
934
1116
|
clientAuthPubKey: string;
|
|
@@ -974,6 +1156,37 @@ export interface AuthLogoutResponseDto {
|
|
|
974
1156
|
*/
|
|
975
1157
|
message: string;
|
|
976
1158
|
}
|
|
1159
|
+
export interface AuthPublicKey {
|
|
1160
|
+
/**
|
|
1161
|
+
* Created at
|
|
1162
|
+
* @format date-time
|
|
1163
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
1164
|
+
*/
|
|
1165
|
+
createdAt: string;
|
|
1166
|
+
/**
|
|
1167
|
+
* Auth public key ID
|
|
1168
|
+
* @format uuid
|
|
1169
|
+
*/
|
|
1170
|
+
id: string;
|
|
1171
|
+
/** Client auth public key */
|
|
1172
|
+
publicKey: string;
|
|
1173
|
+
/**
|
|
1174
|
+
* Auth public key status
|
|
1175
|
+
* @example "active"
|
|
1176
|
+
*/
|
|
1177
|
+
status: "active" | "invalidated";
|
|
1178
|
+
/**
|
|
1179
|
+
* Updated at
|
|
1180
|
+
* @format date-time
|
|
1181
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
1182
|
+
*/
|
|
1183
|
+
updatedAt: string;
|
|
1184
|
+
/**
|
|
1185
|
+
* User ID
|
|
1186
|
+
* @format uuid
|
|
1187
|
+
*/
|
|
1188
|
+
userId: string;
|
|
1189
|
+
}
|
|
977
1190
|
export interface AuthRefreshAccessTokenRequestDto {
|
|
978
1191
|
/** Refresh token for the user */
|
|
979
1192
|
refreshToken: string;
|
|
@@ -1012,7 +1225,7 @@ export interface AuthSignatureMessageRequestDto {
|
|
|
1012
1225
|
*/
|
|
1013
1226
|
clientAuthPubKey: string;
|
|
1014
1227
|
/** The passkey challenge type, i.e. "webauthn.create" or "webauthn.get" */
|
|
1015
|
-
passkeyChallengeType
|
|
1228
|
+
passkeyChallengeType?: "webauthn.create" | "webauthn.get";
|
|
1016
1229
|
/**
|
|
1017
1230
|
* The id of the wallet the encrypted shares belong to
|
|
1018
1231
|
* @minLength 36
|
|
@@ -1023,8 +1236,8 @@ export interface AuthSignatureMessageRequestDto {
|
|
|
1023
1236
|
walletId?: string;
|
|
1024
1237
|
}
|
|
1025
1238
|
export interface AuthSignatureMessageResponseDto {
|
|
1026
|
-
/** Passkey public key authentication options */
|
|
1027
|
-
authenticationOptions
|
|
1239
|
+
/** Passkey public key authentication options (WebAuthn PublicKeyCredentialRequestOptionsJSON) */
|
|
1240
|
+
authenticationOptions?: Record<string, any>;
|
|
1028
1241
|
/**
|
|
1029
1242
|
* Randomly generated base64 challenge string for passkey creation or authentication
|
|
1030
1243
|
* @minLength 32
|
|
@@ -1042,8 +1255,8 @@ export interface AuthSignatureMessageResponseDto {
|
|
|
1042
1255
|
* @example "Please sign this message to authenticate"
|
|
1043
1256
|
*/
|
|
1044
1257
|
message: string;
|
|
1045
|
-
/** Passkey public key registration options */
|
|
1046
|
-
registrationOptions
|
|
1258
|
+
/** Passkey public key registration options (WebAuthn PublicKeyCredentialCreationOptionsJSON) */
|
|
1259
|
+
registrationOptions?: Record<string, any>;
|
|
1047
1260
|
/**
|
|
1048
1261
|
* Wallaby Auth Public Key
|
|
1049
1262
|
* @minLength 128
|
|
@@ -1068,7 +1281,7 @@ export interface AuthUserResponseDto {
|
|
|
1068
1281
|
* @maxLength 256
|
|
1069
1282
|
* @pattern ^[a-zA-Z0-9]+$
|
|
1070
1283
|
*/
|
|
1071
|
-
clientSalt
|
|
1284
|
+
clientSalt?: string;
|
|
1072
1285
|
/**
|
|
1073
1286
|
* External user ID (UUID) provided on sign up
|
|
1074
1287
|
* @minLength 36
|
|
@@ -1084,7 +1297,7 @@ export interface AuthUserResponseDto {
|
|
|
1084
1297
|
* @pattern ^[a-zA-Z0-9-]+$
|
|
1085
1298
|
* @example "First Name"
|
|
1086
1299
|
*/
|
|
1087
|
-
firstName
|
|
1300
|
+
firstName?: string;
|
|
1088
1301
|
/**
|
|
1089
1302
|
* User ID (UUID)
|
|
1090
1303
|
* @minLength 36
|
|
@@ -1094,23 +1307,7 @@ export interface AuthUserResponseDto {
|
|
|
1094
1307
|
*/
|
|
1095
1308
|
id: string;
|
|
1096
1309
|
/** @example "wallet_user" */
|
|
1097
|
-
role
|
|
1098
|
-
/**
|
|
1099
|
-
* Wallaby Auth Public Key
|
|
1100
|
-
* @minLength 128
|
|
1101
|
-
* @maxLength 256
|
|
1102
|
-
* @pattern ^(0x)?[0-9a-fA-F]+$
|
|
1103
|
-
* @example "4ecb720b1392468c75803d6252ac987c113206955070b96df1208c1c480338168e1407cec4b5af2f91d12af9b725cbd85af994b29c6364971a7ef8d955be83dc"
|
|
1104
|
-
*/
|
|
1105
|
-
wallabyAuthPubKey: string;
|
|
1106
|
-
/**
|
|
1107
|
-
* Wallaby Auth Public Version
|
|
1108
|
-
* @minLength 1
|
|
1109
|
-
* @maxLength 10
|
|
1110
|
-
* @pattern ^[a-zA-Z0-9]+$
|
|
1111
|
-
* @example "1"
|
|
1112
|
-
*/
|
|
1113
|
-
wallabyAuthPubKeyVersion: string;
|
|
1310
|
+
role?: "super_admin" | "merchant_admin" | "merchant_user" | "wallet_user" | "contract_admin" | "reserve_admin" | "wallets_admin" | "transfer_admin" | "soft_burn_admin" | "mint_admin" | "automation_admin";
|
|
1114
1311
|
}
|
|
1115
1312
|
export interface BalanceQueryDto {
|
|
1116
1313
|
/**
|
|
@@ -1181,8 +1378,12 @@ export interface BalanceResponseDto {
|
|
|
1181
1378
|
* @example "181.2939"
|
|
1182
1379
|
*/
|
|
1183
1380
|
balance: string;
|
|
1184
|
-
/**
|
|
1185
|
-
|
|
1381
|
+
/**
|
|
1382
|
+
* The last time the balance was updated
|
|
1383
|
+
* @format date-time
|
|
1384
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
1385
|
+
*/
|
|
1386
|
+
balanceUpdatedAt?: string;
|
|
1186
1387
|
chainName?: "BITCOIN" | "ETHEREUM" | "ALGORAND" | "AVALANCHE" | "POLYGON" | "BASE" | "BSC" | "SUI" | "INJECTIVE" | "SEI" | "APTOS" | "SOLANA" | "POLYMESH" | "HEDERA" | "CANTON";
|
|
1187
1388
|
/** The claimable balance of the payment token for this asset */
|
|
1188
1389
|
claimable: ClaimableBalance;
|
|
@@ -1293,26 +1494,34 @@ export interface Chain {
|
|
|
1293
1494
|
* @pattern /^0x[a-fA-F0-9]{40}$/
|
|
1294
1495
|
* @example "/^0x[a-fA-F0-9]{40}$/"
|
|
1295
1496
|
*/
|
|
1296
|
-
addressRegex
|
|
1497
|
+
addressRegex?: string | null;
|
|
1297
1498
|
/**
|
|
1298
1499
|
* Chain ID
|
|
1299
1500
|
* @example 1
|
|
1300
1501
|
*/
|
|
1301
|
-
chainId
|
|
1502
|
+
chainId?: string;
|
|
1503
|
+
/**
|
|
1504
|
+
* Created at
|
|
1505
|
+
* @format date-time
|
|
1506
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
1507
|
+
*/
|
|
1508
|
+
createdAt: string;
|
|
1302
1509
|
/**
|
|
1303
1510
|
* Derivation path
|
|
1304
1511
|
* @example "m/84'/0'/0'/0/0"
|
|
1305
1512
|
*/
|
|
1306
|
-
derivationPath
|
|
1513
|
+
derivationPath?: string | null;
|
|
1307
1514
|
/** Icon URL */
|
|
1308
|
-
iconUrl
|
|
1515
|
+
iconUrl?: string | null;
|
|
1309
1516
|
/**
|
|
1310
1517
|
* @format uuid
|
|
1311
1518
|
* @example "6e464058-67c1-4273-a6a4-8aae522e34be"
|
|
1312
1519
|
*/
|
|
1313
1520
|
id: string;
|
|
1314
1521
|
/** Index URL */
|
|
1315
|
-
indexUrl
|
|
1522
|
+
indexUrl?: string | null;
|
|
1523
|
+
/** Whether the chain is ready for use */
|
|
1524
|
+
isChainReady?: boolean;
|
|
1316
1525
|
/** Whether the chain is an EVM chain */
|
|
1317
1526
|
isEvm: boolean;
|
|
1318
1527
|
/**
|
|
@@ -1320,33 +1529,53 @@ export interface Chain {
|
|
|
1320
1529
|
* @format url
|
|
1321
1530
|
* @example "https://etherscan.io"
|
|
1322
1531
|
*/
|
|
1323
|
-
mainnetExplorerUrl
|
|
1532
|
+
mainnetExplorerUrl?: string;
|
|
1324
1533
|
/** Mainnet ID */
|
|
1325
|
-
mainnetId
|
|
1534
|
+
mainnetId?: string;
|
|
1535
|
+
/**
|
|
1536
|
+
* Mainnet Index URL
|
|
1537
|
+
* @format url
|
|
1538
|
+
* @example "https://mainnet.etherscan.io"
|
|
1539
|
+
*/
|
|
1540
|
+
mainnetIndexUrl?: string | null;
|
|
1326
1541
|
/** @example "ALGORAND" */
|
|
1327
1542
|
name: "BITCOIN" | "ETHEREUM" | "ALGORAND" | "AVALANCHE" | "POLYGON" | "BASE" | "BSC" | "SUI" | "INJECTIVE" | "SEI" | "APTOS" | "SOLANA" | "POLYMESH" | "HEDERA" | "CANTON";
|
|
1328
1543
|
/** Search */
|
|
1329
|
-
search
|
|
1544
|
+
search?: string;
|
|
1330
1545
|
/**
|
|
1331
1546
|
* Signature scheme for key derivation (secp256k1, ed25519, sr25519)
|
|
1332
1547
|
* @example "secp256k1"
|
|
1333
1548
|
*/
|
|
1334
|
-
signatureScheme
|
|
1549
|
+
signatureScheme?: "secp256k1" | "ed25519" | "sr25519";
|
|
1335
1550
|
/**
|
|
1336
1551
|
* Status
|
|
1337
1552
|
* @example "UP"
|
|
1338
1553
|
*/
|
|
1339
|
-
status
|
|
1554
|
+
status?: "UP" | "DOWN";
|
|
1340
1555
|
/**
|
|
1341
1556
|
* Whether this chain supports swap functionality
|
|
1342
1557
|
* @example false
|
|
1343
1558
|
*/
|
|
1344
|
-
supportsSwaps
|
|
1559
|
+
supportsSwaps?: boolean;
|
|
1345
1560
|
/** Swap chain provider mappings */
|
|
1346
|
-
swapChainMappings
|
|
1561
|
+
swapChainMappings?: SwapChainProviderMapping[];
|
|
1347
1562
|
/** Testnet Explorer URL */
|
|
1348
|
-
testnetExplorerUrl
|
|
1349
|
-
|
|
1563
|
+
testnetExplorerUrl?: string | null;
|
|
1564
|
+
/** Testnet ID */
|
|
1565
|
+
testnetId?: string;
|
|
1566
|
+
/**
|
|
1567
|
+
* Testnet Index URL
|
|
1568
|
+
* @format url
|
|
1569
|
+
* @example "https://testnet.etherscan.io"
|
|
1570
|
+
*/
|
|
1571
|
+
testnetIndexUrl?: string | null;
|
|
1572
|
+
/**
|
|
1573
|
+
* Updated at
|
|
1574
|
+
* @format date-time
|
|
1575
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
1576
|
+
*/
|
|
1577
|
+
updatedAt: string;
|
|
1578
|
+
walletAddresses?: WalletAddress[];
|
|
1350
1579
|
}
|
|
1351
1580
|
export type ChangeAuthPublicKeyData = AuthChangePublicKeyResponseDto;
|
|
1352
1581
|
export interface ChangeMerchantAssetDefaultStatusBodyDto {
|
|
@@ -1379,7 +1608,7 @@ export interface ChangeMerchantAssetDefaultStatusResponseDto {
|
|
|
1379
1608
|
*/
|
|
1380
1609
|
message?: string;
|
|
1381
1610
|
}
|
|
1382
|
-
export type CheckAppOptinForAddressData = any;
|
|
1611
|
+
export type CheckAppOptinForAddressData = Record<string, any>[];
|
|
1383
1612
|
export interface CheckAppOptinForAddressParams {
|
|
1384
1613
|
/**
|
|
1385
1614
|
* The address of the account that is being checked for optin status on particular assets or apps
|
|
@@ -1390,7 +1619,7 @@ export interface CheckAppOptinForAddressParams {
|
|
|
1390
1619
|
*/
|
|
1391
1620
|
address: string;
|
|
1392
1621
|
}
|
|
1393
|
-
export type CheckAssetOptinForAddressData = any;
|
|
1622
|
+
export type CheckAssetOptinForAddressData = Record<string, any>[];
|
|
1394
1623
|
export interface CheckAssetOptinForAddressParams {
|
|
1395
1624
|
/**
|
|
1396
1625
|
* The address of the account that is being checked for optin status on particular assets or apps
|
|
@@ -1426,9 +1655,33 @@ export interface ClaimableBalance {
|
|
|
1426
1655
|
*/
|
|
1427
1656
|
paymentTokenContractAddress: string;
|
|
1428
1657
|
}
|
|
1658
|
+
export interface ContractType {
|
|
1659
|
+
/** The asset contracts associated with this contract type */
|
|
1660
|
+
assetContracts: AssetContract[];
|
|
1661
|
+
/**
|
|
1662
|
+
* The name of the contract type
|
|
1663
|
+
* @example "ERC20"
|
|
1664
|
+
*/
|
|
1665
|
+
contractTypeName: string;
|
|
1666
|
+
/**
|
|
1667
|
+
* The unique identifier for the contract type
|
|
1668
|
+
* @example 1
|
|
1669
|
+
*/
|
|
1670
|
+
id: number;
|
|
1671
|
+
}
|
|
1429
1672
|
export type CreateAdminWalletData = WalletCreatedDto;
|
|
1430
1673
|
export type CreateAllowanceTransactionData = AllowanceTransactionResponseDto;
|
|
1431
1674
|
export type CreateApiKeyData = CreateMerchantApiKeyResponseDto;
|
|
1675
|
+
export interface CreateApiKeyParams {
|
|
1676
|
+
/**
|
|
1677
|
+
* @format uuid
|
|
1678
|
+
* @minLength 36
|
|
1679
|
+
* @maxLength 36
|
|
1680
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
|
|
1681
|
+
* @example "180b0a0f-6935-4047-a32d-b2a4d50acfc9"
|
|
1682
|
+
*/
|
|
1683
|
+
merchantId: string;
|
|
1684
|
+
}
|
|
1432
1685
|
export type CreateAssetConfigData = CreateAssetConfigResponseDto;
|
|
1433
1686
|
export interface CreateAssetConfigDto {
|
|
1434
1687
|
/** @example 1 */
|
|
@@ -1523,14 +1776,6 @@ export interface CreateChainDto {
|
|
|
1523
1776
|
* @example "/^0x[a-fA-F0-9]{40}$/"
|
|
1524
1777
|
*/
|
|
1525
1778
|
addressRegex?: string;
|
|
1526
|
-
/**
|
|
1527
|
-
* Name of the chain
|
|
1528
|
-
* @minLength 2
|
|
1529
|
-
* @maxLength 256
|
|
1530
|
-
* @pattern ^[a-zA-Z0-9-]+$
|
|
1531
|
-
* @example "Chain Name"
|
|
1532
|
-
*/
|
|
1533
|
-
chainName: "BITCOIN" | "ETHEREUM" | "ALGORAND" | "AVALANCHE" | "POLYGON" | "BASE" | "BSC" | "SUI" | "INJECTIVE" | "SEI" | "APTOS" | "SOLANA" | "POLYMESH" | "HEDERA" | "CANTON";
|
|
1534
1779
|
/**
|
|
1535
1780
|
* @maxLength 256
|
|
1536
1781
|
* @pattern ^m(\/\d+'?){3}(\/\d+'?){0,2}(\/\d+)?$
|
|
@@ -1563,7 +1808,7 @@ export interface CreateChainDto {
|
|
|
1563
1808
|
* @pattern ^[a-zA-Z0-9-]+$
|
|
1564
1809
|
* @example "Chain Name"
|
|
1565
1810
|
*/
|
|
1566
|
-
name:
|
|
1811
|
+
name: string;
|
|
1567
1812
|
/**
|
|
1568
1813
|
* Signature scheme for key derivation
|
|
1569
1814
|
* @example "secp256k1"
|
|
@@ -1593,32 +1838,32 @@ export interface CreateChainResponseDto {
|
|
|
1593
1838
|
chain: Chain;
|
|
1594
1839
|
}
|
|
1595
1840
|
export interface CreateMerchantApiKeyBodyDto {
|
|
1841
|
+
/** @example true */
|
|
1842
|
+
allowMobileAccess?: boolean;
|
|
1843
|
+
/** @example "Space X API Key" */
|
|
1844
|
+
appName: string;
|
|
1596
1845
|
/**
|
|
1597
|
-
* @
|
|
1598
|
-
* @
|
|
1599
|
-
* @
|
|
1600
|
-
*
|
|
1601
|
-
*
|
|
1846
|
+
* @minLength 128
|
|
1847
|
+
* @maxLength 256
|
|
1848
|
+
* @example "-----BEGIN PUBLIC KEY-----
|
|
1849
|
+
* MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQ...
|
|
1850
|
+
* -----END PUBLIC KEY-----"
|
|
1602
1851
|
*/
|
|
1603
|
-
|
|
1852
|
+
clientJWTPubKey?: string;
|
|
1604
1853
|
/**
|
|
1605
|
-
* @
|
|
1606
|
-
* @
|
|
1607
|
-
* @maxLength 36
|
|
1608
|
-
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
|
|
1609
|
-
* @example "180b0a0f-6935-4047-a32d-b2a4d50acfc9"
|
|
1854
|
+
* @minLength 128
|
|
1855
|
+
* @maxLength 256
|
|
1610
1856
|
*/
|
|
1611
|
-
|
|
1857
|
+
wrappingPublicKey?: string;
|
|
1612
1858
|
}
|
|
1613
1859
|
export interface CreateMerchantApiKeyResponseDto {
|
|
1614
|
-
apiKey:
|
|
1860
|
+
apiKey: ApiKeyDto;
|
|
1615
1861
|
/**
|
|
1616
1862
|
* @minLength 128
|
|
1617
1863
|
* @maxLength 256
|
|
1618
|
-
* @pattern ^(0x)?[0-9a-fA-F]+$
|
|
1619
1864
|
* @example "Private key to be returned once"
|
|
1620
1865
|
*/
|
|
1621
|
-
clientJWTPrivKey
|
|
1866
|
+
clientJWTPrivKey?: AsymmetricEncryptedDto;
|
|
1622
1867
|
/**
|
|
1623
1868
|
* @minLength 2
|
|
1624
1869
|
* @maxLength 256
|
|
@@ -1711,7 +1956,7 @@ export type CreateWalletData = WalletCreatedDto;
|
|
|
1711
1956
|
export type CreateWalletV2Data = WalletCreatedDto;
|
|
1712
1957
|
export interface CreateWalletV2RequestDto {
|
|
1713
1958
|
/** The public key of the backup device. If not specified, both shares will be wrapped by the clientAuthPubKey. */
|
|
1714
|
-
backupDevicePublicKey
|
|
1959
|
+
backupDevicePublicKey?: string;
|
|
1715
1960
|
/** @example "e3421d7f9d6888ea83bef6b28ce0a2ab6eb6fe8a8fbfa3743240992590816b08f9a62edcc63296d056c552054d583fec36d23ef11dffb24c95aaf4a47d50dccc" */
|
|
1716
1961
|
clientAuthPubKey: string;
|
|
1717
1962
|
/**
|
|
@@ -1909,7 +2154,7 @@ export interface EncryptedDataInterface {
|
|
|
1909
2154
|
}
|
|
1910
2155
|
export type ExecutePurchaseData = AdminTxResponse;
|
|
1911
2156
|
export type ExecutePurchaseWithInterestData = AdminTxResponse;
|
|
1912
|
-
export type ExecuteSwapData =
|
|
2157
|
+
export type ExecuteSwapData = ExecuteSwapResponseDto;
|
|
1913
2158
|
export interface ExecuteSwapRequestDto {
|
|
1914
2159
|
/** @example "e3421d7f9d6888ea83bef6b28ce0a2ab6eb6fe8a8fbfa3743240992590816b08f9a62edcc63296d056c552054d583fec36d23ef11dffb24c95aaf4a47d50dccc" */
|
|
1915
2160
|
clientAuthPubKey: string;
|
|
@@ -1917,12 +2162,12 @@ export interface ExecuteSwapRequestDto {
|
|
|
1917
2162
|
* Seed encrypted asymmetrically by current user corresponding wallaby auth public key, to be decrypted inside the secure code execution environment
|
|
1918
2163
|
* @example "{"iv":"b7b643ebccf35c262aa2d5c2729c5f3d","ephemPublicKey":"040cff71ed16f1105c45c2214c9e72d3eabde48efe3759c6f150352b19aa8054c302dc1fd8b4f3927bd7d74ae0186854b3a13de7673be4f8424a6ba3702c239729","ciphertext":"736bc1881a02fa08df4a3f1e35d426660e3c35471facba2866e960f8a19b783bac30d037b07dc9e6406e258d09a4a7e4a7cf58d20cf7b8b7201db0f80849a48d20389039e3fc196f42796fe6d501f47afb030f9946ecbc148d8da1e46c3793a4","mac":"b6cbbdbbc3a311d919340fc3ec9ee1911d9ead6d989efa73e0ac3303c51a353e"}"
|
|
1919
2164
|
*/
|
|
1920
|
-
encryptedSeed
|
|
2165
|
+
encryptedSeed?: EncryptedDataInterface;
|
|
1921
2166
|
/**
|
|
1922
2167
|
* Array of encrypted shares which will be utilized to reconstruct seed and sign
|
|
1923
2168
|
* @maxItems 100
|
|
1924
2169
|
*/
|
|
1925
|
-
encryptedShares
|
|
2170
|
+
encryptedShares?: EncryptedDataInterface[];
|
|
1926
2171
|
/**
|
|
1927
2172
|
* Message retrieved from the backend
|
|
1928
2173
|
* @example "717ea458b62a430cb37ced7c22ebec97"
|
|
@@ -1950,6 +2195,28 @@ export interface ExecuteSwapRequestDto {
|
|
|
1950
2195
|
*/
|
|
1951
2196
|
walletId: string;
|
|
1952
2197
|
}
|
|
2198
|
+
export interface ExecuteSwapResponseDto {
|
|
2199
|
+
/**
|
|
2200
|
+
* The link to view the transaction on the blockchain explorer
|
|
2201
|
+
* @example "provider.scan/txn_abc123"
|
|
2202
|
+
*/
|
|
2203
|
+
explorerLink: string;
|
|
2204
|
+
/**
|
|
2205
|
+
* The status of the swap execution
|
|
2206
|
+
* @example "in_progress"
|
|
2207
|
+
*/
|
|
2208
|
+
status: string;
|
|
2209
|
+
/**
|
|
2210
|
+
* The reference ID for the swap execution request
|
|
2211
|
+
* @example "805ea051-af5a-4dbd-867d-143c678dc4e6"
|
|
2212
|
+
*/
|
|
2213
|
+
swapQuoteId: string;
|
|
2214
|
+
/**
|
|
2215
|
+
* The hash of the broadcasted swap transaction
|
|
2216
|
+
* @example "0x2767143ab32e685e9f6b44e9b539ac0b8396f83b2505419e0056e501a193f19d"
|
|
2217
|
+
*/
|
|
2218
|
+
transactionHash: string;
|
|
2219
|
+
}
|
|
1953
2220
|
export interface FeeEstimatesResponseDto {
|
|
1954
2221
|
/**
|
|
1955
2222
|
* The fee value
|
|
@@ -2178,19 +2445,19 @@ export interface GenerateMissingAddressRequestDto {
|
|
|
2178
2445
|
* @deprecated
|
|
2179
2446
|
* @example "CANTON"
|
|
2180
2447
|
*/
|
|
2181
|
-
chainName
|
|
2448
|
+
chainName?: "BITCOIN" | "ETHEREUM" | "ALGORAND" | "AVALANCHE" | "POLYGON" | "BASE" | "BSC" | "SUI" | "INJECTIVE" | "SEI" | "APTOS" | "SOLANA" | "POLYMESH" | "HEDERA" | "CANTON";
|
|
2182
2449
|
/** @example "e3421d7f9d6888ea83bef6b28ce0a2ab6eb6fe8a8fbfa3743240992590816b08f9a62edcc63296d056c552054d583fec36d23ef11dffb24c95aaf4a47d50dccc" */
|
|
2183
2450
|
clientAuthPubKey: string;
|
|
2184
2451
|
/**
|
|
2185
2452
|
* Seed encrypted asymmetrically by current user corresponding wallaby auth public key, to be decrypted inside the secure code execution environment
|
|
2186
2453
|
* @example "{"iv":"b7b643ebccf35c262aa2d5c2729c5f3d","ephemPublicKey":"040cff71ed16f1105c45c2214c9e72d3eabde48efe3759c6f150352b19aa8054c302dc1fd8b4f3927bd7d74ae0186854b3a13de7673be4f8424a6ba3702c239729","ciphertext":"736bc1881a02fa08df4a3f1e35d426660e3c35471facba2866e960f8a19b783bac30d037b07dc9e6406e258d09a4a7e4a7cf58d20cf7b8b7201db0f80849a48d20389039e3fc196f42796fe6d501f47afb030f9946ecbc148d8da1e46c3793a4","mac":"b6cbbdbbc3a311d919340fc3ec9ee1911d9ead6d989efa73e0ac3303c51a353e"}"
|
|
2187
2454
|
*/
|
|
2188
|
-
encryptedSeed
|
|
2455
|
+
encryptedSeed?: EncryptedDataInterface;
|
|
2189
2456
|
/**
|
|
2190
2457
|
* Array of encrypted shares which will be utilized to reconstruct the seed to generate the missing addresses
|
|
2191
2458
|
* @maxItems 100
|
|
2192
2459
|
*/
|
|
2193
|
-
encryptedShares
|
|
2460
|
+
encryptedShares?: EncryptedDataInterface[];
|
|
2194
2461
|
/**
|
|
2195
2462
|
* Message retrieved from the backend
|
|
2196
2463
|
* @example "717ea458b62a430cb37ced7c22ebec97"
|
|
@@ -2206,17 +2473,17 @@ export interface GenerateMissingAddressRequestDto {
|
|
|
2206
2473
|
}
|
|
2207
2474
|
export interface GenerateMissingAddressResponseDto {
|
|
2208
2475
|
/**
|
|
2209
|
-
*
|
|
2476
|
+
* Wallet addresses (with their type) that were generated or already existed for the wallet
|
|
2210
2477
|
* @maxItems 100
|
|
2211
2478
|
*/
|
|
2212
|
-
walletAddresses:
|
|
2479
|
+
walletAddresses: WalletAddressResponseDto[];
|
|
2213
2480
|
/** Typed list of wallet addresses. */
|
|
2214
2481
|
walletAddressesInfo: WalletAddressesInfoEntry[];
|
|
2215
2482
|
}
|
|
2216
2483
|
export type GenerateMissingAddressesData = GenerateMissingAddressResponseDto;
|
|
2217
2484
|
export type GenerateSignatureMessageData = AuthSignatureMessageResponseDto;
|
|
2218
|
-
export type
|
|
2219
|
-
export interface
|
|
2485
|
+
export type GetActivitiesData = GetActivitiesResponseDto;
|
|
2486
|
+
export interface GetActivitiesParams {
|
|
2220
2487
|
/**
|
|
2221
2488
|
* Filter by date range from
|
|
2222
2489
|
* @format date-time
|
|
@@ -2723,6 +2990,7 @@ export interface GetCurrentUserMerchantAssetsUsersMerchantAssetsParams {
|
|
|
2723
2990
|
toDate?: string;
|
|
2724
2991
|
}
|
|
2725
2992
|
export type GetCurrentUserSaltData = UserSaltResponseDto;
|
|
2993
|
+
export type GetDashboardDataData = GetDashboardDataDto;
|
|
2726
2994
|
export interface GetDashboardDataDto {
|
|
2727
2995
|
adminsCount: number;
|
|
2728
2996
|
assetsCount: number;
|
|
@@ -2740,7 +3008,6 @@ export interface GetDashboardDataDto {
|
|
|
2740
3008
|
usersCount: number;
|
|
2741
3009
|
walletsCount: number;
|
|
2742
3010
|
}
|
|
2743
|
-
export type GetDashboardDataError = GetDashboardDataDto;
|
|
2744
3011
|
export type GetDetailedRawTransactionDataByReferenceData = Transaction;
|
|
2745
3012
|
export interface GetDetailedRawTransactionDataByReferenceParams {
|
|
2746
3013
|
/**
|
|
@@ -2846,6 +3113,132 @@ export interface GetMerchantAdminsParams {
|
|
|
2846
3113
|
*/
|
|
2847
3114
|
toDate?: string;
|
|
2848
3115
|
}
|
|
3116
|
+
export type GetMerchantApiKeyOriginsData = GetMerchantApiKeyOriginsResponseDto;
|
|
3117
|
+
export interface GetMerchantApiKeyOriginsParams {
|
|
3118
|
+
/**
|
|
3119
|
+
* @format uuid
|
|
3120
|
+
* @minLength 36
|
|
3121
|
+
* @maxLength 36
|
|
3122
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
|
|
3123
|
+
* @example "180b0a0f-6935-4047-a32d-b2a4d50acfc9"
|
|
3124
|
+
*/
|
|
3125
|
+
apiKeyId: string;
|
|
3126
|
+
/**
|
|
3127
|
+
* Filter by date range from
|
|
3128
|
+
* @format date-time
|
|
3129
|
+
*/
|
|
3130
|
+
fromDate?: string;
|
|
3131
|
+
/**
|
|
3132
|
+
* Limit per page
|
|
3133
|
+
* @default 50
|
|
3134
|
+
*/
|
|
3135
|
+
limit: number;
|
|
3136
|
+
/**
|
|
3137
|
+
* @format uuid
|
|
3138
|
+
* @minLength 36
|
|
3139
|
+
* @maxLength 36
|
|
3140
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
|
|
3141
|
+
* @example "180b0a0f-6935-4047-a32d-b2a4d50acfc9"
|
|
3142
|
+
*/
|
|
3143
|
+
merchantId: string;
|
|
3144
|
+
/**
|
|
3145
|
+
* Page number
|
|
3146
|
+
* @default 1
|
|
3147
|
+
*/
|
|
3148
|
+
page: number;
|
|
3149
|
+
/**
|
|
3150
|
+
* Search
|
|
3151
|
+
* @minLength 3
|
|
3152
|
+
* @maxLength 100
|
|
3153
|
+
* @pattern ^[a-zA-Z0-9_ ]+$
|
|
3154
|
+
*/
|
|
3155
|
+
search?: string;
|
|
3156
|
+
/**
|
|
3157
|
+
* Sort by
|
|
3158
|
+
* @default "updatedAt"
|
|
3159
|
+
*/
|
|
3160
|
+
sortBy?: "createdAt" | "updatedAt";
|
|
3161
|
+
/**
|
|
3162
|
+
* Sort order
|
|
3163
|
+
* @default "DESC"
|
|
3164
|
+
*/
|
|
3165
|
+
sortOrder?: "ASC" | "DESC";
|
|
3166
|
+
/**
|
|
3167
|
+
* Filter by date range from
|
|
3168
|
+
* @format date-time
|
|
3169
|
+
*/
|
|
3170
|
+
toDate?: string;
|
|
3171
|
+
}
|
|
3172
|
+
export interface GetMerchantApiKeyOriginsResponseDto {
|
|
3173
|
+
/** @maxItems 1000 */
|
|
3174
|
+
apiKeyOrigins: ApiKeyOrigin[];
|
|
3175
|
+
/** Pagination data */
|
|
3176
|
+
pagination: PaginationDto;
|
|
3177
|
+
}
|
|
3178
|
+
export type GetMerchantApiKeysData = GetMerchantApiKeysResponseDto;
|
|
3179
|
+
export interface GetMerchantApiKeysParams {
|
|
3180
|
+
/**
|
|
3181
|
+
* Filter by date range from
|
|
3182
|
+
* @format date-time
|
|
3183
|
+
*/
|
|
3184
|
+
fromDate?: string;
|
|
3185
|
+
/**
|
|
3186
|
+
* Include whitelisted origins for each API key
|
|
3187
|
+
* @default false
|
|
3188
|
+
*/
|
|
3189
|
+
includeOrigins?: boolean;
|
|
3190
|
+
/**
|
|
3191
|
+
* Limit per page
|
|
3192
|
+
* @default 50
|
|
3193
|
+
*/
|
|
3194
|
+
limit: number;
|
|
3195
|
+
/**
|
|
3196
|
+
* @format uuid
|
|
3197
|
+
* @minLength 36
|
|
3198
|
+
* @maxLength 36
|
|
3199
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
|
|
3200
|
+
* @example "180b0a0f-6935-4047-a32d-b2a4d50acfc9"
|
|
3201
|
+
*/
|
|
3202
|
+
merchantId: string;
|
|
3203
|
+
/**
|
|
3204
|
+
* Page number
|
|
3205
|
+
* @default 1
|
|
3206
|
+
*/
|
|
3207
|
+
page: number;
|
|
3208
|
+
/**
|
|
3209
|
+
* Search
|
|
3210
|
+
* @minLength 3
|
|
3211
|
+
* @maxLength 100
|
|
3212
|
+
* @pattern ^[a-zA-Z0-9_ ]+$
|
|
3213
|
+
*/
|
|
3214
|
+
search?: string;
|
|
3215
|
+
/**
|
|
3216
|
+
* Sort by
|
|
3217
|
+
* @default "updatedAt"
|
|
3218
|
+
*/
|
|
3219
|
+
sortBy?: "createdAt" | "updatedAt";
|
|
3220
|
+
/**
|
|
3221
|
+
* Sort order
|
|
3222
|
+
* @default "DESC"
|
|
3223
|
+
*/
|
|
3224
|
+
sortOrder?: "ASC" | "DESC";
|
|
3225
|
+
/**
|
|
3226
|
+
* Filter by date range from
|
|
3227
|
+
* @format date-time
|
|
3228
|
+
*/
|
|
3229
|
+
toDate?: string;
|
|
3230
|
+
/**
|
|
3231
|
+
* Asymmetric encryption public key used to encrypt the API key for secure transmission
|
|
3232
|
+
* @example ""
|
|
3233
|
+
*/
|
|
3234
|
+
wrappingPublicKey?: string;
|
|
3235
|
+
}
|
|
3236
|
+
export interface GetMerchantApiKeysResponseDto {
|
|
3237
|
+
/** @maxItems 1000 */
|
|
3238
|
+
apiKeys: ApiKeyDto[];
|
|
3239
|
+
/** Pagination data */
|
|
3240
|
+
pagination: PaginationDto;
|
|
3241
|
+
}
|
|
2849
3242
|
export type GetMerchantAssetsData = GetMerchantAssetsResponseDto;
|
|
2850
3243
|
export interface GetMerchantAssetsParams {
|
|
2851
3244
|
chainName?: "BITCOIN" | "ETHEREUM" | "ALGORAND" | "AVALANCHE" | "POLYGON" | "BASE" | "BSC" | "SUI" | "INJECTIVE" | "SEI" | "APTOS" | "SOLANA" | "POLYMESH" | "HEDERA" | "CANTON";
|
|
@@ -2973,7 +3366,7 @@ export interface GetMerchantUsersResponseDto {
|
|
|
2973
3366
|
/** @maxItems 5000 */
|
|
2974
3367
|
users: UserDto[];
|
|
2975
3368
|
}
|
|
2976
|
-
export type GetMerchantWalletsData =
|
|
3369
|
+
export type GetMerchantWalletsData = GetMerchantWalletsResponseDto;
|
|
2977
3370
|
export interface GetMerchantWalletsParams {
|
|
2978
3371
|
/**
|
|
2979
3372
|
* Filter by date range from
|
|
@@ -3021,6 +3414,13 @@ export interface GetMerchantWalletsParams {
|
|
|
3021
3414
|
*/
|
|
3022
3415
|
toDate?: string;
|
|
3023
3416
|
}
|
|
3417
|
+
export interface GetMerchantWalletsResponseDto {
|
|
3418
|
+
merchant: Merchant;
|
|
3419
|
+
/** Pagination data */
|
|
3420
|
+
pagination: PaginationDto;
|
|
3421
|
+
/** @maxItems 5000 */
|
|
3422
|
+
wallets: Wallet[];
|
|
3423
|
+
}
|
|
3024
3424
|
export type GetOneMerchantData = GetOneMerchantResponseDto;
|
|
3025
3425
|
export interface GetOneMerchantParams {
|
|
3026
3426
|
/**
|
|
@@ -3113,7 +3513,7 @@ export interface GetRestrictionParams {
|
|
|
3113
3513
|
* Optional blockchain name to check transfer restrictions for, required when using contract address in the request
|
|
3114
3514
|
* @example "ETHEREUM"
|
|
3115
3515
|
*/
|
|
3116
|
-
blockchainName?:
|
|
3516
|
+
blockchainName?: "BITCOIN" | "ETHEREUM" | "ALGORAND" | "AVALANCHE" | "POLYGON" | "BASE" | "BSC" | "SUI" | "INJECTIVE" | "SEI" | "APTOS" | "SOLANA" | "POLYMESH" | "HEDERA" | "CANTON";
|
|
3117
3517
|
/**
|
|
3118
3518
|
* Optional token contract address on chain. When both contractAddress and blockchainName are supplied, assetId is ignored.
|
|
3119
3519
|
* @minLength 1
|
|
@@ -3342,11 +3742,8 @@ export interface GetUserAssetResponseDto {
|
|
|
3342
3742
|
* @maxItems 1000
|
|
3343
3743
|
*/
|
|
3344
3744
|
assets: UserAssetDto[];
|
|
3345
|
-
/**
|
|
3346
|
-
|
|
3347
|
-
* @maxItems 1000
|
|
3348
|
-
*/
|
|
3349
|
-
groupedAssets: object[];
|
|
3745
|
+
/** Grouped User assets, keyed by the groupBy query param value, returned if that param is provided */
|
|
3746
|
+
groupedAssets?: Record<string, UserAssetDto[]>;
|
|
3350
3747
|
/** Pagination data */
|
|
3351
3748
|
pagination: PaginationDto;
|
|
3352
3749
|
/** Typed list of wallet addresses. */
|
|
@@ -3358,8 +3755,8 @@ export interface GetUserAssetsByUserIdResponseDto {
|
|
|
3358
3755
|
* @maxItems 200
|
|
3359
3756
|
*/
|
|
3360
3757
|
assets: UserAsset[];
|
|
3361
|
-
/** Grouped assets
|
|
3362
|
-
groupedAssets
|
|
3758
|
+
/** Grouped assets, keyed by the groupBy query param value, returned if that param is provided */
|
|
3759
|
+
groupedAssets?: Record<string, UserAsset[]>;
|
|
3363
3760
|
/** Pagination data */
|
|
3364
3761
|
pagination: PaginationDto;
|
|
3365
3762
|
}
|
|
@@ -3519,7 +3916,7 @@ export interface GetWalletAddressesResponseDto {
|
|
|
3519
3916
|
}
|
|
3520
3917
|
export interface ImportSeedPhraseV2RequestDto {
|
|
3521
3918
|
/** The public key of the backup device. If not specified, both shares will be wrapped by the clientAuthPubKey. */
|
|
3522
|
-
backupDevicePublicKey
|
|
3919
|
+
backupDevicePublicKey?: string;
|
|
3523
3920
|
/** @example "e3421d7f9d6888ea83bef6b28ce0a2ab6eb6fe8a8fbfa3743240992590816b08f9a62edcc63296d056c552054d583fec36d23ef11dffb24c95aaf4a47d50dccc" */
|
|
3524
3921
|
clientAuthPubKey: string;
|
|
3525
3922
|
/**
|
|
@@ -3564,14 +3961,14 @@ export interface ImportSeedPhraseV2RequestDto {
|
|
|
3564
3961
|
*/
|
|
3565
3962
|
wallabyKeepsOne: boolean;
|
|
3566
3963
|
/**
|
|
3567
|
-
*
|
|
3964
|
+
* Existing wallet ID. Can be omitted for brand-new wallet imports.
|
|
3568
3965
|
* @format uuid
|
|
3569
3966
|
* @minLength 36
|
|
3570
3967
|
* @maxLength 36
|
|
3571
3968
|
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
|
|
3572
3969
|
* @example "73d642c9-6762-421b-8f7b-5393cb220791"
|
|
3573
3970
|
*/
|
|
3574
|
-
walletId
|
|
3971
|
+
walletId?: string;
|
|
3575
3972
|
/**
|
|
3576
3973
|
* Specifies the ownership model of the wallet, ie, whether it is single-owner or multi-owner
|
|
3577
3974
|
* @default "SINGLE_OWNER"
|
|
@@ -3630,7 +4027,16 @@ export interface InviteMerchantAdminDto {
|
|
|
3630
4027
|
/** @example "merchant_user" */
|
|
3631
4028
|
role: string;
|
|
3632
4029
|
}
|
|
3633
|
-
export
|
|
4030
|
+
export interface InviteMerchantAdminResponseDto {
|
|
4031
|
+
/**
|
|
4032
|
+
* @minLength 2
|
|
4033
|
+
* @pattern ^.*$
|
|
4034
|
+
* @example "Invitation sent successfully"
|
|
4035
|
+
*/
|
|
4036
|
+
message?: string;
|
|
4037
|
+
user: UserDto;
|
|
4038
|
+
}
|
|
4039
|
+
export type InviteMerchantAdminsData = InviteMerchantAdminResponseDto;
|
|
3634
4040
|
export interface IssueJWTTokenResponseDto {
|
|
3635
4041
|
/**
|
|
3636
4042
|
* Access token for the user
|
|
@@ -3673,8 +4079,12 @@ export interface IssueJWTTokenUserDto {
|
|
|
3673
4079
|
}
|
|
3674
4080
|
export type IssueJwtTokenData = IssueJWTTokenResponseDto;
|
|
3675
4081
|
export interface KeyShare {
|
|
3676
|
-
/**
|
|
3677
|
-
|
|
4082
|
+
/**
|
|
4083
|
+
* Key creation time
|
|
4084
|
+
* @format date-time
|
|
4085
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
4086
|
+
*/
|
|
4087
|
+
createdAt: string;
|
|
3678
4088
|
/** The encrypted key material wrapped by the wrappingPublicKey */
|
|
3679
4089
|
encryptedKey: string;
|
|
3680
4090
|
/** Key ID */
|
|
@@ -3682,6 +4092,7 @@ export interface KeyShare {
|
|
|
3682
4092
|
/**
|
|
3683
4093
|
* Timestamp indicating this key share has been re-encrypted under enclave master key
|
|
3684
4094
|
* @format date-time
|
|
4095
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
3685
4096
|
*/
|
|
3686
4097
|
migratedWallabyShareAt?: string | null;
|
|
3687
4098
|
/** Reason this key share failed migration, when migrationStatus = failed */
|
|
@@ -3692,8 +4103,12 @@ export interface KeyShare {
|
|
|
3692
4103
|
*/
|
|
3693
4104
|
migrationStatus: "not_required" | "pending" | "migrated" | "failed";
|
|
3694
4105
|
type: KeyType;
|
|
3695
|
-
/**
|
|
3696
|
-
|
|
4106
|
+
/**
|
|
4107
|
+
* Key update time
|
|
4108
|
+
* @format date-time
|
|
4109
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
4110
|
+
*/
|
|
4111
|
+
updatedAt: string;
|
|
3697
4112
|
user: User;
|
|
3698
4113
|
wallet: Wallet;
|
|
3699
4114
|
/** The public key used to wrap the encryptedKey. Wallaby share is now encrypted by the enclave, so this is not longer require for WALLABY_SHARE type. */
|
|
@@ -3725,7 +4140,15 @@ export interface KeyType {
|
|
|
3725
4140
|
}
|
|
3726
4141
|
export type LogoutData = AuthLogoutResponseDto;
|
|
3727
4142
|
export interface Merchant {
|
|
4143
|
+
/**
|
|
4144
|
+
* Number of assets associated with the merchant
|
|
4145
|
+
* @example 0
|
|
4146
|
+
*/
|
|
3728
4147
|
assetsCount: number;
|
|
4148
|
+
/**
|
|
4149
|
+
* Number of coins associated with the merchant
|
|
4150
|
+
* @example 0
|
|
4151
|
+
*/
|
|
3729
4152
|
coinsCount: number;
|
|
3730
4153
|
/**
|
|
3731
4154
|
* Email contact
|
|
@@ -3735,8 +4158,16 @@ export interface Merchant {
|
|
|
3735
4158
|
/** Phone number */
|
|
3736
4159
|
contactPhoneNumber: string;
|
|
3737
4160
|
createdAssets: AssetConfig[];
|
|
3738
|
-
/**
|
|
4161
|
+
/**
|
|
4162
|
+
* Created at
|
|
4163
|
+
* @format date-time
|
|
4164
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
4165
|
+
*/
|
|
3739
4166
|
createdAt: string;
|
|
4167
|
+
/** Merchant ID */
|
|
4168
|
+
id: string;
|
|
4169
|
+
/** Assets enabled for the merchant */
|
|
4170
|
+
merchantAssets?: MerchantAsset[];
|
|
3740
4171
|
/**
|
|
3741
4172
|
* Name of the merchant
|
|
3742
4173
|
* @example "Republic"
|
|
@@ -3748,11 +4179,31 @@ export interface Merchant {
|
|
|
3748
4179
|
*/
|
|
3749
4180
|
nameSlugify: string;
|
|
3750
4181
|
status: "active" | "inactive" | "invalidated";
|
|
4182
|
+
/**
|
|
4183
|
+
* Number of tokens associated with the merchant
|
|
4184
|
+
* @example 0
|
|
4185
|
+
*/
|
|
3751
4186
|
tokensCount: number;
|
|
3752
|
-
/**
|
|
4187
|
+
/**
|
|
4188
|
+
* Updated at
|
|
4189
|
+
* @format date-time
|
|
4190
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
4191
|
+
*/
|
|
3753
4192
|
updatedAt: string;
|
|
4193
|
+
/**
|
|
4194
|
+
* Number of users associated with the merchant
|
|
4195
|
+
* @example 0
|
|
4196
|
+
*/
|
|
3754
4197
|
usersCount: number;
|
|
4198
|
+
/**
|
|
4199
|
+
* Whether the merchant is verified
|
|
4200
|
+
* @example true
|
|
4201
|
+
*/
|
|
3755
4202
|
verified: boolean;
|
|
4203
|
+
/**
|
|
4204
|
+
* Number of wallets associated with the merchant
|
|
4205
|
+
* @example 0
|
|
4206
|
+
*/
|
|
3756
4207
|
walletsCount: number;
|
|
3757
4208
|
}
|
|
3758
4209
|
export interface MerchantAsset {
|
|
@@ -3760,18 +4211,38 @@ export interface MerchantAsset {
|
|
|
3760
4211
|
assetName: string;
|
|
3761
4212
|
/** Asset Symbol */
|
|
3762
4213
|
assetSymbol: string;
|
|
4214
|
+
/** Chain associated with asset */
|
|
4215
|
+
chain: Chain;
|
|
3763
4216
|
/** Chain ID */
|
|
3764
4217
|
chainId: string;
|
|
3765
4218
|
/** Asset Name */
|
|
3766
4219
|
chainName: string;
|
|
4220
|
+
/** Asset configuration */
|
|
4221
|
+
config: AssetConfig;
|
|
3767
4222
|
/** Asset ID */
|
|
3768
4223
|
configId: string;
|
|
4224
|
+
/**
|
|
4225
|
+
* Created at
|
|
4226
|
+
* @format date-time
|
|
4227
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
4228
|
+
*/
|
|
4229
|
+
createdAt: string;
|
|
4230
|
+
/** Merchant asset ID */
|
|
4231
|
+
id: string;
|
|
3769
4232
|
/** Asset Default */
|
|
3770
4233
|
isDefault: boolean;
|
|
3771
4234
|
/** Asset Visibility */
|
|
3772
4235
|
isVisible: boolean;
|
|
4236
|
+
/** Merchant associated with asset */
|
|
4237
|
+
merchant: Merchant;
|
|
3773
4238
|
/** Merchant ID */
|
|
3774
4239
|
merchantId: string;
|
|
4240
|
+
/**
|
|
4241
|
+
* Updated at
|
|
4242
|
+
* @format date-time
|
|
4243
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
4244
|
+
*/
|
|
4245
|
+
updatedAt: string;
|
|
3775
4246
|
}
|
|
3776
4247
|
export interface MessageForTransferRestrictionResponseDto {
|
|
3777
4248
|
/**
|
|
@@ -3822,11 +4293,34 @@ export interface MintRequestItemDto {
|
|
|
3822
4293
|
*/
|
|
3823
4294
|
scheduleId: number;
|
|
3824
4295
|
}
|
|
4296
|
+
export interface ObjectType {
|
|
4297
|
+
/**
|
|
4298
|
+
* The timestamp when the object type was created
|
|
4299
|
+
* @format date-time
|
|
4300
|
+
*/
|
|
4301
|
+
createdAt: string;
|
|
4302
|
+
/**
|
|
4303
|
+
* Object Type ID
|
|
4304
|
+
* @format uuid
|
|
4305
|
+
* @example "a4dedb83-4d59-41ca-84b5-4b24a98878d8"
|
|
4306
|
+
*/
|
|
4307
|
+
id: string;
|
|
4308
|
+
/**
|
|
4309
|
+
* The name of the object type
|
|
4310
|
+
* @example "Coin"
|
|
4311
|
+
*/
|
|
4312
|
+
typeName: string;
|
|
4313
|
+
/**
|
|
4314
|
+
* The timestamp when the object type was last updated
|
|
4315
|
+
* @format date-time
|
|
4316
|
+
*/
|
|
4317
|
+
updatedAt: string;
|
|
4318
|
+
}
|
|
3825
4319
|
export interface PaginationDto {
|
|
3826
4320
|
currentPage: number;
|
|
3827
|
-
nextPage: number;
|
|
4321
|
+
nextPage: number | null;
|
|
3828
4322
|
pageSize: number;
|
|
3829
|
-
previousPage: number;
|
|
4323
|
+
previousPage: number | null;
|
|
3830
4324
|
totalPages: number;
|
|
3831
4325
|
totalRecords: number;
|
|
3832
4326
|
}
|
|
@@ -3834,7 +4328,7 @@ export interface PasskeyCredential {
|
|
|
3834
4328
|
/** Auth public key ID */
|
|
3835
4329
|
authPublicKeyId: string;
|
|
3836
4330
|
/** Auth public keys associated with the device that has this passkey credential */
|
|
3837
|
-
authPublicKeys:
|
|
4331
|
+
authPublicKeys: AuthPublicKey[];
|
|
3838
4332
|
/**
|
|
3839
4333
|
* Authenticator global ID
|
|
3840
4334
|
* @format uuid
|
|
@@ -3844,7 +4338,11 @@ export interface PasskeyCredential {
|
|
|
3844
4338
|
authenticatorName: string;
|
|
3845
4339
|
/** Counter to prevent cloned authenticators */
|
|
3846
4340
|
counter: number;
|
|
3847
|
-
/**
|
|
4341
|
+
/**
|
|
4342
|
+
* Creation timestamp of the record
|
|
4343
|
+
* @format date-time
|
|
4344
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
4345
|
+
*/
|
|
3848
4346
|
createdAt: string;
|
|
3849
4347
|
/** Whether the credential is backed up */
|
|
3850
4348
|
credentialBackedUp: boolean;
|
|
@@ -3866,7 +4364,11 @@ export interface PasskeyCredential {
|
|
|
3866
4364
|
publicKey: string;
|
|
3867
4365
|
/** Optional transports the client might use */
|
|
3868
4366
|
transports: string;
|
|
3869
|
-
/**
|
|
4367
|
+
/**
|
|
4368
|
+
* Last update timestamp of the record
|
|
4369
|
+
* @format date-time
|
|
4370
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
4371
|
+
*/
|
|
3870
4372
|
updatedAt: string;
|
|
3871
4373
|
/** User associated with this passkey credential */
|
|
3872
4374
|
user: User;
|
|
@@ -4019,12 +4521,12 @@ export interface ResolvePendingTransactionRequestDto {
|
|
|
4019
4521
|
* Seed encrypted asymmetrically by current user corresponding wallaby auth public key, to be decrypted inside the secure code execution environment
|
|
4020
4522
|
* @example "{"iv":"b7b643ebccf35c262aa2d5c2729c5f3d","ephemPublicKey":"040cff71ed16f1105c45c2214c9e72d3eabde48efe3759c6f150352b19aa8054c302dc1fd8b4f3927bd7d74ae0186854b3a13de7673be4f8424a6ba3702c239729","ciphertext":"736bc1881a02fa08df4a3f1e35d426660e3c35471facba2866e960f8a19b783bac30d037b07dc9e6406e258d09a4a7e4a7cf58d20cf7b8b7201db0f80849a48d20389039e3fc196f42796fe6d501f47afb030f9946ecbc148d8da1e46c3793a4","mac":"b6cbbdbbc3a311d919340fc3ec9ee1911d9ead6d989efa73e0ac3303c51a353e"}"
|
|
4021
4523
|
*/
|
|
4022
|
-
encryptedSeed
|
|
4524
|
+
encryptedSeed?: EncryptedDataInterface;
|
|
4023
4525
|
/**
|
|
4024
4526
|
* Array of encrypted shares which will be utilized to reconstruct seed and sign
|
|
4025
4527
|
* @maxItems 100
|
|
4026
4528
|
*/
|
|
4027
|
-
encryptedShares
|
|
4529
|
+
encryptedShares?: EncryptedDataInterface[];
|
|
4028
4530
|
/**
|
|
4029
4531
|
* Unique identifier for pending transaction
|
|
4030
4532
|
* @minLength 64
|
|
@@ -4082,7 +4584,16 @@ export interface ResolvePendingTransactionResponseDto {
|
|
|
4082
4584
|
*/
|
|
4083
4585
|
status: "confirmed" | "denied";
|
|
4084
4586
|
}
|
|
4085
|
-
export
|
|
4587
|
+
export interface RevokeMerchantAdminResponseDto {
|
|
4588
|
+
/**
|
|
4589
|
+
* @minLength 2
|
|
4590
|
+
* @pattern ^.*$
|
|
4591
|
+
* @example "Merchant admin revoked successfully"
|
|
4592
|
+
*/
|
|
4593
|
+
message?: string;
|
|
4594
|
+
user: UserDto;
|
|
4595
|
+
}
|
|
4596
|
+
export type RevokeMerchantAdminsData = RevokeMerchantAdminResponseDto;
|
|
4086
4597
|
export interface RevokeMerchantAdminsParams {
|
|
4087
4598
|
/**
|
|
4088
4599
|
* @format uuid
|
|
@@ -4188,10 +4699,10 @@ export interface SigninRequestDto {
|
|
|
4188
4699
|
* @example "717ea458b62a430cb37ced7c22ebec97"
|
|
4189
4700
|
*/
|
|
4190
4701
|
message: string;
|
|
4191
|
-
/** Passkey authentication challenge response */
|
|
4192
|
-
passkeyAuthenticationResponse?:
|
|
4193
|
-
/** Passkey registration challenge response */
|
|
4194
|
-
passkeyRegistrationResponse?:
|
|
4702
|
+
/** Passkey authentication challenge response (WebAuthn AuthenticationResponseJSON) */
|
|
4703
|
+
passkeyAuthenticationResponse?: Record<string, any>;
|
|
4704
|
+
/** Passkey registration challenge response (WebAuthn RegistrationResponseJSON) */
|
|
4705
|
+
passkeyRegistrationResponse?: Record<string, any>;
|
|
4195
4706
|
/**
|
|
4196
4707
|
* Signature generated after signing the provided data field
|
|
4197
4708
|
* @example "0xb44e88ff3c67de6e6548a6caf006bf6e1cb841119d0b9ea1b7e9b2d36a5e0ed42fd9f5e543243d1d73dc4b7800cc2026f74961f4edc769699678a316abb34e661c"
|
|
@@ -4234,8 +4745,8 @@ export interface SignupExternalRequestDto {
|
|
|
4234
4745
|
* @example "717ea458b62a430cb37ced7c22ebec97"
|
|
4235
4746
|
*/
|
|
4236
4747
|
message: string;
|
|
4237
|
-
/** Passkey challenge response */
|
|
4238
|
-
passkeyRegistrationResponse
|
|
4748
|
+
/** Passkey registration challenge response (WebAuthn RegistrationResponseJSON) */
|
|
4749
|
+
passkeyRegistrationResponse?: Record<string, any>;
|
|
4239
4750
|
/**
|
|
4240
4751
|
* Signature generated after signing the provided data field
|
|
4241
4752
|
* @example "0xb44e88ff3c67de6e6548a6caf006bf6e1cb841119d0b9ea1b7e9b2d36a5e0ed42fd9f5e543243d1d73dc4b7800cc2026f74961f4edc769699678a316abb34e661c"
|
|
@@ -4278,14 +4789,42 @@ export interface SignupRequestDto {
|
|
|
4278
4789
|
* @example "717ea458b62a430cb37ced7c22ebec97"
|
|
4279
4790
|
*/
|
|
4280
4791
|
message: string;
|
|
4281
|
-
/** Passkey challenge response */
|
|
4282
|
-
passkeyRegistrationResponse
|
|
4792
|
+
/** Passkey registration challenge response (WebAuthn RegistrationResponseJSON) */
|
|
4793
|
+
passkeyRegistrationResponse?: Record<string, any>;
|
|
4283
4794
|
/**
|
|
4284
4795
|
* Signature generated after signing the provided data field
|
|
4285
4796
|
* @example "0xb44e88ff3c67de6e6548a6caf006bf6e1cb841119d0b9ea1b7e9b2d36a5e0ed42fd9f5e543243d1d73dc4b7800cc2026f74961f4edc769699678a316abb34e661c"
|
|
4286
4797
|
*/
|
|
4287
4798
|
signature: string;
|
|
4288
4799
|
}
|
|
4800
|
+
export interface SuiConfig {
|
|
4801
|
+
/** The coin type associated with this Sui config for move tokens */
|
|
4802
|
+
coinType: string;
|
|
4803
|
+
/**
|
|
4804
|
+
* The object type associated with this Sui config
|
|
4805
|
+
* @format date-time
|
|
4806
|
+
*/
|
|
4807
|
+
createdAt: ObjectType;
|
|
4808
|
+
/**
|
|
4809
|
+
* Sui Config ID
|
|
4810
|
+
* @format uuid
|
|
4811
|
+
* @example "a4dedb83-4d59-41ca-84b5-4b24a98878d8"
|
|
4812
|
+
*/
|
|
4813
|
+
id: string;
|
|
4814
|
+
/** The module name associated with this Sui config */
|
|
4815
|
+
moduleName: string;
|
|
4816
|
+
/** The ID of the object type associated with this Sui config */
|
|
4817
|
+
objectId: string;
|
|
4818
|
+
/** The package ID associated with this Sui config */
|
|
4819
|
+
packageId: string;
|
|
4820
|
+
/** The struct name associated with this Sui config */
|
|
4821
|
+
structName: string;
|
|
4822
|
+
/**
|
|
4823
|
+
* The last updated timestamp of this Sui config
|
|
4824
|
+
* @format date-time
|
|
4825
|
+
*/
|
|
4826
|
+
updatedAt: string;
|
|
4827
|
+
}
|
|
4289
4828
|
export interface SwapChainProviderMapping {
|
|
4290
4829
|
/** Associated chain */
|
|
4291
4830
|
chain: Chain;
|
|
@@ -4621,8 +5160,12 @@ export interface TokenDistribution {
|
|
|
4621
5160
|
export interface Transaction {
|
|
4622
5161
|
/** Chain Slip 44 Number */
|
|
4623
5162
|
chainSlip44: number;
|
|
5163
|
+
/** The admin transactions associated with the transaction */
|
|
5164
|
+
adminTransactions: AdminTransaction[];
|
|
4624
5165
|
/** Transaction Amount */
|
|
4625
5166
|
amount: string;
|
|
5167
|
+
/** The transaction asset configuration */
|
|
5168
|
+
asset: AssetConfig;
|
|
4626
5169
|
/**
|
|
4627
5170
|
* Wallaby Asset ID
|
|
4628
5171
|
* @format uuid
|
|
@@ -4638,6 +5181,12 @@ export interface Transaction {
|
|
|
4638
5181
|
chainId: string;
|
|
4639
5182
|
/** Chain Name */
|
|
4640
5183
|
chainName: "BITCOIN" | "ETHEREUM" | "ALGORAND" | "AVALANCHE" | "POLYGON" | "BASE" | "BSC" | "SUI" | "INJECTIVE" | "SEI" | "APTOS" | "SOLANA" | "POLYMESH" | "HEDERA" | "CANTON";
|
|
5184
|
+
/**
|
|
5185
|
+
* Created at
|
|
5186
|
+
* @format date-time
|
|
5187
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
5188
|
+
*/
|
|
5189
|
+
createdAt: string;
|
|
4641
5190
|
/** Transaction Processing Fee */
|
|
4642
5191
|
fee: string;
|
|
4643
5192
|
/** Originator Wallet Address */
|
|
@@ -4651,6 +5200,12 @@ export interface Transaction {
|
|
|
4651
5200
|
gasPrice: number;
|
|
4652
5201
|
/** Transaction hash after broadcasting */
|
|
4653
5202
|
hash?: string | null;
|
|
5203
|
+
/**
|
|
5204
|
+
* Transaction ID
|
|
5205
|
+
* @format uuid
|
|
5206
|
+
*/
|
|
5207
|
+
id: string;
|
|
5208
|
+
/** The merchant associated with the transaction */
|
|
4654
5209
|
merchant: Merchant;
|
|
4655
5210
|
/**
|
|
4656
5211
|
* Merchant ID
|
|
@@ -4658,26 +5213,30 @@ export interface Transaction {
|
|
|
4658
5213
|
*/
|
|
4659
5214
|
merchantId: string;
|
|
4660
5215
|
/** The network environment to be used for the transaction */
|
|
4661
|
-
networkEnvironment:
|
|
5216
|
+
networkEnvironment: "mainnet" | "testnet" | null;
|
|
4662
5217
|
/** Transaction Nonce */
|
|
4663
5218
|
nonce: number;
|
|
4664
5219
|
/** Transaction Memo or Note */
|
|
4665
5220
|
note: string;
|
|
4666
5221
|
/** The field differentiate multisig transaction */
|
|
4667
|
-
ownershipType:
|
|
5222
|
+
ownershipType: "SINGLE_OWNER" | "MULTI_SIG";
|
|
4668
5223
|
/** Unique Reference */
|
|
4669
|
-
reference: string;
|
|
5224
|
+
reference: string | null;
|
|
4670
5225
|
/** Split coins data */
|
|
4671
5226
|
splitCoins: string;
|
|
4672
|
-
/**
|
|
4673
|
-
|
|
5227
|
+
/**
|
|
5228
|
+
* Transaction status
|
|
5229
|
+
* @example "PENDING"
|
|
5230
|
+
*/
|
|
5231
|
+
status: "PENDING-APPROVAL" | "PENDING" | "FAILED" | "SUCCESSFUL" | "ABANDONED";
|
|
4674
5232
|
/** The number of times the transaction status has been checked */
|
|
4675
5233
|
statusCheckAttempts: number;
|
|
4676
5234
|
/**
|
|
4677
5235
|
* The last time the transaction status was checked on chain
|
|
4678
5236
|
* @format date-time
|
|
5237
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
4679
5238
|
*/
|
|
4680
|
-
statusCheckedAt: string;
|
|
5239
|
+
statusCheckedAt: string | null;
|
|
4681
5240
|
/** The API caller, internal or external for third party uses */
|
|
4682
5241
|
submitter: string;
|
|
4683
5242
|
/** Receipent Wallet Address */
|
|
@@ -4689,12 +5248,18 @@ export interface Transaction {
|
|
|
4689
5248
|
toWalletId: string;
|
|
4690
5249
|
/** Asset Type that can be ERC_20, BEP_20, ALGO_STANDARDs */
|
|
4691
5250
|
tokenType: "ERC_20" | "ERC_1404" | "BEP_20" | "ARC_20" | "ARC_1404" | "MRC_20" | "BRC_20" | "ALGO_STANDARD" | "ALGO_APP" | "SUI_COIN" | "SUI_MOVE_COIN" | "SUI_SECURITY_TOKEN" | "TOKEN_FACTORY" | "SEI_ERC_20" | "APT_FUNGIBLE_ASSET" | "SPL_TOKEN" | "SPL_TOKEN_2022" | "POLYMESH_ASSET" | "HBAR_ERC_20";
|
|
4692
|
-
/** The
|
|
4693
|
-
transactionFailedReason:
|
|
5251
|
+
/** The reason the transaction failed */
|
|
5252
|
+
transactionFailedReason: "INSUFFICIENT_FUNDS" | "GAS_PRICE_TOO_LOW" | "NONCE_TOO_LOW" | "REPLACEMENT_UNDERPRICED" | "UNKNOWN" | null;
|
|
4694
5253
|
/** Transfer objects data */
|
|
4695
5254
|
transferObjects: string;
|
|
4696
5255
|
/** The transaction signed blob data */
|
|
4697
5256
|
txBlob: string;
|
|
5257
|
+
/**
|
|
5258
|
+
* Updated at
|
|
5259
|
+
* @format date-time
|
|
5260
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
5261
|
+
*/
|
|
5262
|
+
updatedAt: string;
|
|
4698
5263
|
user: User;
|
|
4699
5264
|
/** User email to be used for notification */
|
|
4700
5265
|
userEmail: string;
|
|
@@ -4716,8 +5281,12 @@ export interface TransactionHistoryResponse {
|
|
|
4716
5281
|
export interface TransactionResponse {
|
|
4717
5282
|
/** Chain Slip 44 Number */
|
|
4718
5283
|
chainSlip44: number;
|
|
5284
|
+
/** The admin transactions associated with the transaction */
|
|
5285
|
+
adminTransactions: AdminTransaction[];
|
|
4719
5286
|
/** Transaction Amount */
|
|
4720
5287
|
amount: string;
|
|
5288
|
+
/** The transaction asset configuration */
|
|
5289
|
+
asset: AssetConfig;
|
|
4721
5290
|
/**
|
|
4722
5291
|
* Wallaby Asset ID
|
|
4723
5292
|
* @format uuid
|
|
@@ -4733,6 +5302,12 @@ export interface TransactionResponse {
|
|
|
4733
5302
|
chainId: string;
|
|
4734
5303
|
/** Chain Name */
|
|
4735
5304
|
chainName: "BITCOIN" | "ETHEREUM" | "ALGORAND" | "AVALANCHE" | "POLYGON" | "BASE" | "BSC" | "SUI" | "INJECTIVE" | "SEI" | "APTOS" | "SOLANA" | "POLYMESH" | "HEDERA" | "CANTON";
|
|
5305
|
+
/**
|
|
5306
|
+
* Created at
|
|
5307
|
+
* @format date-time
|
|
5308
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
5309
|
+
*/
|
|
5310
|
+
createdAt: string;
|
|
4736
5311
|
/** Transaction asset symbol */
|
|
4737
5312
|
entryType?: "INCOMING" | "OUTGOING" | "SWAP" | "UNKNOWN";
|
|
4738
5313
|
/** Transaction Processing Fee */
|
|
@@ -4748,6 +5323,12 @@ export interface TransactionResponse {
|
|
|
4748
5323
|
gasPrice: number;
|
|
4749
5324
|
/** Transaction hash after broadcasting */
|
|
4750
5325
|
hash?: string | null;
|
|
5326
|
+
/**
|
|
5327
|
+
* Transaction ID
|
|
5328
|
+
* @format uuid
|
|
5329
|
+
*/
|
|
5330
|
+
id: string;
|
|
5331
|
+
/** The merchant associated with the transaction */
|
|
4751
5332
|
merchant: Merchant;
|
|
4752
5333
|
/**
|
|
4753
5334
|
* Merchant ID
|
|
@@ -4755,26 +5336,30 @@ export interface TransactionResponse {
|
|
|
4755
5336
|
*/
|
|
4756
5337
|
merchantId: string;
|
|
4757
5338
|
/** The network environment to be used for the transaction */
|
|
4758
|
-
networkEnvironment:
|
|
5339
|
+
networkEnvironment: "mainnet" | "testnet" | null;
|
|
4759
5340
|
/** Transaction Nonce */
|
|
4760
5341
|
nonce: number;
|
|
4761
5342
|
/** Transaction Memo or Note */
|
|
4762
5343
|
note: string;
|
|
4763
5344
|
/** The field differentiate multisig transaction */
|
|
4764
|
-
ownershipType:
|
|
5345
|
+
ownershipType: "SINGLE_OWNER" | "MULTI_SIG";
|
|
4765
5346
|
/** Unique Reference */
|
|
4766
|
-
reference: string;
|
|
5347
|
+
reference: string | null;
|
|
4767
5348
|
/** Split coins data */
|
|
4768
5349
|
splitCoins: string;
|
|
4769
|
-
/**
|
|
4770
|
-
|
|
5350
|
+
/**
|
|
5351
|
+
* Transaction status
|
|
5352
|
+
* @example "PENDING"
|
|
5353
|
+
*/
|
|
5354
|
+
status: "PENDING-APPROVAL" | "PENDING" | "FAILED" | "SUCCESSFUL" | "ABANDONED";
|
|
4771
5355
|
/** The number of times the transaction status has been checked */
|
|
4772
5356
|
statusCheckAttempts: number;
|
|
4773
5357
|
/**
|
|
4774
5358
|
* The last time the transaction status was checked on chain
|
|
4775
5359
|
* @format date-time
|
|
5360
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
4776
5361
|
*/
|
|
4777
|
-
statusCheckedAt: string;
|
|
5362
|
+
statusCheckedAt: string | null;
|
|
4778
5363
|
/** The API caller, internal or external for third party uses */
|
|
4779
5364
|
submitter: string;
|
|
4780
5365
|
/** Receipent Wallet Address */
|
|
@@ -4786,14 +5371,20 @@ export interface TransactionResponse {
|
|
|
4786
5371
|
toWalletId: string;
|
|
4787
5372
|
/** Asset Type that can be ERC_20, BEP_20, ALGO_STANDARDs */
|
|
4788
5373
|
tokenType: "ERC_20" | "ERC_1404" | "BEP_20" | "ARC_20" | "ARC_1404" | "MRC_20" | "BRC_20" | "ALGO_STANDARD" | "ALGO_APP" | "SUI_COIN" | "SUI_MOVE_COIN" | "SUI_SECURITY_TOKEN" | "TOKEN_FACTORY" | "SEI_ERC_20" | "APT_FUNGIBLE_ASSET" | "SPL_TOKEN" | "SPL_TOKEN_2022" | "POLYMESH_ASSET" | "HBAR_ERC_20";
|
|
4789
|
-
/** The
|
|
4790
|
-
transactionFailedReason:
|
|
5374
|
+
/** The reason the transaction failed */
|
|
5375
|
+
transactionFailedReason: "INSUFFICIENT_FUNDS" | "GAS_PRICE_TOO_LOW" | "NONCE_TOO_LOW" | "REPLACEMENT_UNDERPRICED" | "UNKNOWN" | null;
|
|
4791
5376
|
/** Transfer objects data */
|
|
4792
5377
|
transferObjects: string;
|
|
4793
5378
|
/** The transaction signed blob data */
|
|
4794
5379
|
txBlob: string;
|
|
4795
5380
|
/** Transaction asset symbol. Deprecated, use entryType instead */
|
|
4796
5381
|
type?: "INCOMING" | "OUTGOING" | "SWAP" | "UNKNOWN";
|
|
5382
|
+
/**
|
|
5383
|
+
* Updated at
|
|
5384
|
+
* @format date-time
|
|
5385
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
5386
|
+
*/
|
|
5387
|
+
updatedAt: string;
|
|
4797
5388
|
user: User;
|
|
4798
5389
|
/** User email to be used for notification */
|
|
4799
5390
|
userEmail: string;
|
|
@@ -4823,7 +5414,7 @@ export interface TransactionStatusDataResponseDto {
|
|
|
4823
5414
|
* Transaction block number
|
|
4824
5415
|
* @example 1663653810
|
|
4825
5416
|
*/
|
|
4826
|
-
blockNumber
|
|
5417
|
+
blockNumber?: number;
|
|
4827
5418
|
/**
|
|
4828
5419
|
* The chain on which the transaction happened on
|
|
4829
5420
|
* @example "ETHEREUM"
|
|
@@ -4852,24 +5443,24 @@ export interface TransactionStatusDataResponseDto {
|
|
|
4852
5443
|
* @pattern ^.*$
|
|
4853
5444
|
* @example "Hello 0192"
|
|
4854
5445
|
*/
|
|
4855
|
-
memo
|
|
5446
|
+
memo?: string;
|
|
4856
5447
|
/**
|
|
4857
5448
|
* Transaction nonce
|
|
4858
5449
|
* @example 11
|
|
4859
5450
|
*/
|
|
4860
|
-
nonce
|
|
5451
|
+
nonce?: number;
|
|
4861
5452
|
/**
|
|
4862
5453
|
* Optional, only relevant for UTXO chains like BTC which have more than one sender/receiver
|
|
4863
5454
|
* @maxItems 5000
|
|
4864
5455
|
* @example []
|
|
4865
5456
|
*/
|
|
4866
|
-
origins
|
|
5457
|
+
origins?: UTXOFundsMove[];
|
|
4867
5458
|
/**
|
|
4868
5459
|
* Optional, only relevant for UTXO chains like BTC which have more than one sender/receiver
|
|
4869
5460
|
* @maxItems 5000
|
|
4870
5461
|
* @example []
|
|
4871
5462
|
*/
|
|
4872
|
-
recipients
|
|
5463
|
+
recipients?: UTXOFundsMove[];
|
|
4873
5464
|
/**
|
|
4874
5465
|
* Transaction reference
|
|
4875
5466
|
* @minLength 36
|
|
@@ -4887,7 +5478,7 @@ export interface TransactionStatusDataResponseDto {
|
|
|
4887
5478
|
* Transaction time in UNIX timestamp, seconds since EPOCH
|
|
4888
5479
|
* @example 1663653810
|
|
4889
5480
|
*/
|
|
4890
|
-
timestamp
|
|
5481
|
+
timestamp?: number;
|
|
4891
5482
|
/**
|
|
4892
5483
|
* Recipient address
|
|
4893
5484
|
* @minLength 1
|
|
@@ -4915,10 +5506,10 @@ export interface TransactionStatusDataResponseDto {
|
|
|
4915
5506
|
}
|
|
4916
5507
|
export interface TransferRequestDto {
|
|
4917
5508
|
/**
|
|
4918
|
-
* Transfer amount
|
|
4919
|
-
* @example 100
|
|
5509
|
+
* Transfer amount in human-readable units (decimal string, e.g. "1.5"). Sent as a string to preserve precision.
|
|
5510
|
+
* @example "100"
|
|
4920
5511
|
*/
|
|
4921
|
-
amount:
|
|
5512
|
+
amount: string;
|
|
4922
5513
|
/**
|
|
4923
5514
|
* Asset Wallaby UUID
|
|
4924
5515
|
* @format uuid
|
|
@@ -5035,6 +5626,25 @@ export interface UnverifyAssetParams {
|
|
|
5035
5626
|
*/
|
|
5036
5627
|
assetConfigId: string;
|
|
5037
5628
|
}
|
|
5629
|
+
export type UpdateApiKeyPublicKeyData = UpdateMerchantApiKeyPublicKeyResponseDto;
|
|
5630
|
+
export interface UpdateApiKeyPublicKeyParams {
|
|
5631
|
+
/**
|
|
5632
|
+
* @format uuid
|
|
5633
|
+
* @minLength 36
|
|
5634
|
+
* @maxLength 36
|
|
5635
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
|
|
5636
|
+
* @example "180b0a0f-6935-4047-a32d-b2a4d50acfc9"
|
|
5637
|
+
*/
|
|
5638
|
+
apiKeyId: string;
|
|
5639
|
+
/**
|
|
5640
|
+
* @format uuid
|
|
5641
|
+
* @minLength 36
|
|
5642
|
+
* @maxLength 36
|
|
5643
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
|
|
5644
|
+
* @example "180b0a0f-6935-4047-a32d-b2a4d50acfc9"
|
|
5645
|
+
*/
|
|
5646
|
+
merchantId: string;
|
|
5647
|
+
}
|
|
5038
5648
|
export type UpdateAssetConfigData = UpdateAssetConfigResponseDto;
|
|
5039
5649
|
export interface UpdateAssetConfigDto {
|
|
5040
5650
|
/** @example 1 */
|
|
@@ -5067,6 +5677,11 @@ export interface UpdateAssetConfigDto {
|
|
|
5067
5677
|
* @example "ALGORAND"
|
|
5068
5678
|
*/
|
|
5069
5679
|
name?: string;
|
|
5680
|
+
/**
|
|
5681
|
+
* Upsides relayer address for the asset
|
|
5682
|
+
* @maxLength 256
|
|
5683
|
+
*/
|
|
5684
|
+
relayerAddress?: string;
|
|
5070
5685
|
/**
|
|
5071
5686
|
* The object ID of the asset (used for Sui tokens)
|
|
5072
5687
|
* @pattern ^(0x)?[0-9a-fA-F]+$
|
|
@@ -5106,7 +5721,7 @@ export interface UpdateAssetConfigParams {
|
|
|
5106
5721
|
export interface UpdateAssetConfigResponseDto {
|
|
5107
5722
|
asset: AssetConfig;
|
|
5108
5723
|
}
|
|
5109
|
-
export type UpdateChainData =
|
|
5724
|
+
export type UpdateChainData = UpdateChainResponseDto;
|
|
5110
5725
|
export interface UpdateChainDto {
|
|
5111
5726
|
/** @example 60 */
|
|
5112
5727
|
slip44: 0 | 60 | 283 | 9000 | 966 | 519 | 8453 | 784 | 2525 | 19000118 | 637 | 501 | 595 | 3030 | 6767;
|
|
@@ -5160,6 +5775,8 @@ export interface UpdateChainDto {
|
|
|
5160
5775
|
* @example "secp256k1"
|
|
5161
5776
|
*/
|
|
5162
5777
|
signatureScheme?: "secp256k1" | "ed25519" | "sr25519";
|
|
5778
|
+
/** Whether the chain supports swaps */
|
|
5779
|
+
supportSwaps?: boolean;
|
|
5163
5780
|
/**
|
|
5164
5781
|
* Testnet ID
|
|
5165
5782
|
* @example "1"
|
|
@@ -5191,6 +5808,48 @@ export interface UpdateChainParams {
|
|
|
5191
5808
|
*/
|
|
5192
5809
|
chainId: string;
|
|
5193
5810
|
}
|
|
5811
|
+
export interface UpdateChainResponseDto {
|
|
5812
|
+
chain: Chain;
|
|
5813
|
+
}
|
|
5814
|
+
export interface UpdateMerchantApiKeyPublicKeyBodyDto {
|
|
5815
|
+
/** Allow mobile access for the API key */
|
|
5816
|
+
allowMobileAccess?: boolean;
|
|
5817
|
+
/**
|
|
5818
|
+
* Api key name
|
|
5819
|
+
* @minLength 2
|
|
5820
|
+
* @maxLength 256
|
|
5821
|
+
* @pattern ^[a-zA-Z0-9-]+$
|
|
5822
|
+
*/
|
|
5823
|
+
appName?: string;
|
|
5824
|
+
/**
|
|
5825
|
+
* PEM-encoded SPKI RSA public key used to verify client JWTs
|
|
5826
|
+
* @minLength 64
|
|
5827
|
+
* @maxLength 4096
|
|
5828
|
+
* @example "-----BEGIN PUBLIC KEY-----
|
|
5829
|
+
* ...
|
|
5830
|
+
* -----END PUBLIC KEY-----"
|
|
5831
|
+
*/
|
|
5832
|
+
clientJWTPubKey?: string;
|
|
5833
|
+
/**
|
|
5834
|
+
* Api key status
|
|
5835
|
+
* @minLength 2
|
|
5836
|
+
* @maxLength 256
|
|
5837
|
+
* @pattern ^[a-zA-Z0-9-]+$
|
|
5838
|
+
*/
|
|
5839
|
+
status?: "active" | "inactive";
|
|
5840
|
+
/** Asymmetric encryption public key used to encrypt the API key for secure transmission */
|
|
5841
|
+
wrappingPublicKey: string;
|
|
5842
|
+
}
|
|
5843
|
+
export interface UpdateMerchantApiKeyPublicKeyResponseDto {
|
|
5844
|
+
apiKey: ApiKeyDto;
|
|
5845
|
+
/**
|
|
5846
|
+
* @minLength 2
|
|
5847
|
+
* @maxLength 256
|
|
5848
|
+
* @pattern ^.*$
|
|
5849
|
+
* @example "Public key updated successfully"
|
|
5850
|
+
*/
|
|
5851
|
+
message?: string;
|
|
5852
|
+
}
|
|
5194
5853
|
export type UpdateMerchantData = UpdateMerchantMerchantResponseDto;
|
|
5195
5854
|
export interface UpdateMerchantMerchantDto {
|
|
5196
5855
|
/**
|
|
@@ -5256,7 +5915,7 @@ export interface UpdateProfileResponseDto {
|
|
|
5256
5915
|
/** User's updated data */
|
|
5257
5916
|
user: User;
|
|
5258
5917
|
}
|
|
5259
|
-
export type UpdateUserAssetData =
|
|
5918
|
+
export type UpdateUserAssetData = UpdateUserAssetResponseDto;
|
|
5260
5919
|
export interface UpdateUserAssetParams {
|
|
5261
5920
|
/**
|
|
5262
5921
|
* Asset name
|
|
@@ -5286,12 +5945,12 @@ export interface UpdateUserAssetRequestDto {
|
|
|
5286
5945
|
* Asset name
|
|
5287
5946
|
* @example "Ethereum"
|
|
5288
5947
|
*/
|
|
5289
|
-
assetName
|
|
5948
|
+
assetName?: string;
|
|
5290
5949
|
/**
|
|
5291
5950
|
* Asset symbol
|
|
5292
5951
|
* @example "ETH"
|
|
5293
5952
|
*/
|
|
5294
|
-
assetSymbol
|
|
5953
|
+
assetSymbol?: string;
|
|
5295
5954
|
/**
|
|
5296
5955
|
* Config ID
|
|
5297
5956
|
* @example "6e464058-67c1-4273-a6a4-8aae522e34be"
|
|
@@ -5301,13 +5960,19 @@ export interface UpdateUserAssetRequestDto {
|
|
|
5301
5960
|
* Visibility
|
|
5302
5961
|
* @example true
|
|
5303
5962
|
*/
|
|
5304
|
-
isVisible
|
|
5963
|
+
isVisible?: boolean;
|
|
5305
5964
|
/**
|
|
5306
5965
|
* Wallet ID
|
|
5307
5966
|
* @example "6e464058-67c1-4273-a6a4-8aae522e34be"
|
|
5308
5967
|
*/
|
|
5309
5968
|
walletId: string;
|
|
5310
5969
|
}
|
|
5970
|
+
export interface UpdateUserAssetResponseDto {
|
|
5971
|
+
/** @example "Asset was updated successfully" */
|
|
5972
|
+
message: string;
|
|
5973
|
+
/** Updated User Asset */
|
|
5974
|
+
userAsset: UserAssetDto;
|
|
5975
|
+
}
|
|
5311
5976
|
export interface UpsideCallbackBodyDto {
|
|
5312
5977
|
/**
|
|
5313
5978
|
* The request signature for verification (SOL format)
|
|
@@ -5368,6 +6033,12 @@ export interface UpsideCallbackResponseDto {
|
|
|
5368
6033
|
message: string;
|
|
5369
6034
|
}
|
|
5370
6035
|
export interface User {
|
|
6036
|
+
/**
|
|
6037
|
+
* Created at
|
|
6038
|
+
* @format date-time
|
|
6039
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6040
|
+
*/
|
|
6041
|
+
createdAt: string;
|
|
5371
6042
|
/**
|
|
5372
6043
|
* External User ID for Reference
|
|
5373
6044
|
* @example "6e464058-67c1-4273-a6a4-8aae522e34be"
|
|
@@ -5400,11 +6071,19 @@ export interface User {
|
|
|
5400
6071
|
* @example "6e464058-67c1-4273-a6a4-8aae522e34be"
|
|
5401
6072
|
*/
|
|
5402
6073
|
merchantId: string;
|
|
6074
|
+
/** Portal invitation status */
|
|
6075
|
+
portalInvitationStatus?: "pending" | "accepted" | "rejected" | null;
|
|
5403
6076
|
/**
|
|
5404
6077
|
* User Role ID
|
|
5405
6078
|
* @example "merchant_admin"
|
|
5406
6079
|
*/
|
|
5407
6080
|
role: "super_admin" | "merchant_admin" | "merchant_user" | "wallet_user" | "contract_admin" | "reserve_admin" | "wallets_admin" | "transfer_admin" | "soft_burn_admin" | "mint_admin" | "automation_admin";
|
|
6081
|
+
/**
|
|
6082
|
+
* Updated at
|
|
6083
|
+
* @format date-time
|
|
6084
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6085
|
+
*/
|
|
6086
|
+
updatedAt: string;
|
|
5408
6087
|
/**
|
|
5409
6088
|
* User wallets count
|
|
5410
6089
|
* @example 2
|
|
@@ -5412,57 +6091,112 @@ export interface User {
|
|
|
5412
6091
|
walletsCount: number;
|
|
5413
6092
|
}
|
|
5414
6093
|
export interface UserActivity {
|
|
5415
|
-
action
|
|
5416
|
-
|
|
6094
|
+
/** User activity action */
|
|
6095
|
+
action?: "logged_in" | "logged_out" | "created_wallet" | "updated_wallet" | "deleted_wallet" | "created_merchant" | "updated_merchant" | "deleted_merchant" | null;
|
|
6096
|
+
/**
|
|
6097
|
+
* Created at
|
|
6098
|
+
* @format date-time
|
|
6099
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6100
|
+
*/
|
|
6101
|
+
createdAt: string;
|
|
6102
|
+
/**
|
|
6103
|
+
* User activity ID
|
|
6104
|
+
* @format uuid
|
|
6105
|
+
*/
|
|
5417
6106
|
id: string;
|
|
5418
6107
|
merchant: Merchant;
|
|
6108
|
+
/**
|
|
6109
|
+
* Merchant ID
|
|
6110
|
+
* @format uuid
|
|
6111
|
+
*/
|
|
5419
6112
|
merchantId: string;
|
|
6113
|
+
/** Request method */
|
|
5420
6114
|
requestMethod: string;
|
|
6115
|
+
/** Request URL */
|
|
5421
6116
|
requestUrl: string;
|
|
5422
|
-
/**
|
|
6117
|
+
/**
|
|
6118
|
+
* Updated at
|
|
6119
|
+
* @format date-time
|
|
6120
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6121
|
+
*/
|
|
6122
|
+
updatedAt: string;
|
|
6123
|
+
/**
|
|
6124
|
+
* User ID
|
|
6125
|
+
* @format uuid
|
|
6126
|
+
*/
|
|
5423
6127
|
userId: string;
|
|
5424
6128
|
}
|
|
5425
6129
|
export interface UserAsset {
|
|
5426
6130
|
/** The percentage change in the price of the asset in the last 24 hours */
|
|
5427
6131
|
changePercentageLast24h?: string;
|
|
5428
6132
|
/** Addresses */
|
|
5429
|
-
addresses:
|
|
6133
|
+
addresses: UserAssetAddress[];
|
|
5430
6134
|
/** Asset Name */
|
|
5431
6135
|
assetName: string;
|
|
5432
6136
|
/** Asset Symbol */
|
|
5433
6137
|
assetSymbol: string;
|
|
5434
6138
|
/** Asset Persisted Balance */
|
|
5435
|
-
balance: string;
|
|
5436
|
-
/**
|
|
5437
|
-
|
|
6139
|
+
balance: string | null;
|
|
6140
|
+
/**
|
|
6141
|
+
* Asset Persisted Balance Updated At
|
|
6142
|
+
* @format date-time
|
|
6143
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6144
|
+
*/
|
|
6145
|
+
balanceUpdatedAt: string | null;
|
|
5438
6146
|
/** Chain ID */
|
|
5439
6147
|
chainId: string;
|
|
5440
6148
|
/** Asset Persisted Claimable Balance */
|
|
5441
|
-
claimableBalance
|
|
5442
|
-
/**
|
|
5443
|
-
|
|
6149
|
+
claimableBalance?: string | null;
|
|
6150
|
+
/**
|
|
6151
|
+
* Asset Persisted Claimable Balance Updated At
|
|
6152
|
+
* @format date-time
|
|
6153
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6154
|
+
*/
|
|
6155
|
+
claimableBalanceUpdatedAt?: string | null;
|
|
5444
6156
|
/** Asset Payment Token Config ID */
|
|
5445
|
-
claimablePaymentTokenAssetConfigId
|
|
6157
|
+
claimablePaymentTokenAssetConfigId?: string | null;
|
|
5446
6158
|
/** Asset Payment Token Contract Address */
|
|
5447
|
-
claimablePaymentTokenContractAddress
|
|
6159
|
+
claimablePaymentTokenContractAddress?: string | null;
|
|
5448
6160
|
/** Asset ID */
|
|
5449
6161
|
configId: string;
|
|
6162
|
+
/**
|
|
6163
|
+
* Created at
|
|
6164
|
+
* @format date-time
|
|
6165
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6166
|
+
*/
|
|
6167
|
+
createdAt: string;
|
|
5450
6168
|
/** Asset Default Address */
|
|
5451
6169
|
defaultAddress: string;
|
|
6170
|
+
/** User asset ID */
|
|
6171
|
+
id: string;
|
|
5452
6172
|
/** Asset Visibility */
|
|
5453
6173
|
isVisible: boolean;
|
|
5454
6174
|
/** Asset Persisted Locked Balance */
|
|
5455
|
-
lockedTokenBalance: string;
|
|
5456
|
-
/**
|
|
5457
|
-
|
|
6175
|
+
lockedTokenBalance: string | null;
|
|
6176
|
+
/**
|
|
6177
|
+
* Asset Persisted Locked Balance Updated At
|
|
6178
|
+
* @format date-time
|
|
6179
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6180
|
+
*/
|
|
6181
|
+
lockedTokenBalanceUpdatedAt: string | null;
|
|
5458
6182
|
/** Asset Persisted Mainnet Balance */
|
|
5459
|
-
mainnetBalance: string;
|
|
5460
|
-
/**
|
|
5461
|
-
|
|
6183
|
+
mainnetBalance: string | null;
|
|
6184
|
+
/**
|
|
6185
|
+
* Asset Persisted Mainnet Balance Updated At
|
|
6186
|
+
* @format date-time
|
|
6187
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6188
|
+
*/
|
|
6189
|
+
mainnetBalanceUpdatedAt: string | null;
|
|
5462
6190
|
/** Asset Persisted Mainnet Locked Balance */
|
|
5463
|
-
mainnetLockedBalance: string;
|
|
5464
|
-
/**
|
|
5465
|
-
|
|
6191
|
+
mainnetLockedBalance: string | null;
|
|
6192
|
+
/**
|
|
6193
|
+
* Asset Persisted Mainnet Locked Balance Updated At
|
|
6194
|
+
* @format date-time
|
|
6195
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6196
|
+
*/
|
|
6197
|
+
mainnetLockedBalanceUpdatedAt: string | null;
|
|
6198
|
+
/** Merchant public data */
|
|
6199
|
+
merchant: UserAssetMerchantDto;
|
|
5466
6200
|
/** Merchant ID */
|
|
5467
6201
|
merchantId: string;
|
|
5468
6202
|
/** The field differentiate multisig transaction */
|
|
@@ -5472,13 +6206,27 @@ export interface UserAsset {
|
|
|
5472
6206
|
/** Asset Import Source */
|
|
5473
6207
|
source: "merchant" | "user" | "republic";
|
|
5474
6208
|
/** Asset Persisted Testnet Balance */
|
|
5475
|
-
testnetBalance: string;
|
|
5476
|
-
/**
|
|
5477
|
-
|
|
6209
|
+
testnetBalance: string | null;
|
|
6210
|
+
/**
|
|
6211
|
+
* Asset Persisted Testnet Balance Updated At
|
|
6212
|
+
* @format date-time
|
|
6213
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6214
|
+
*/
|
|
6215
|
+
testnetBalanceUpdatedAt: string | null;
|
|
5478
6216
|
/** Asset Persisted Testnet Locked Balance */
|
|
5479
|
-
testnetLockedBalance: string;
|
|
5480
|
-
/**
|
|
5481
|
-
|
|
6217
|
+
testnetLockedBalance: string | null;
|
|
6218
|
+
/**
|
|
6219
|
+
* Asset Persisted Testnet Locked Balance Updated At
|
|
6220
|
+
* @format date-time
|
|
6221
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6222
|
+
*/
|
|
6223
|
+
testnetLockedBalanceUpdatedAt: string | null;
|
|
6224
|
+
/**
|
|
6225
|
+
* Updated at
|
|
6226
|
+
* @format date-time
|
|
6227
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6228
|
+
*/
|
|
6229
|
+
updatedAt: string;
|
|
5482
6230
|
/** User asset address */
|
|
5483
6231
|
userAssetAddress: string;
|
|
5484
6232
|
/** Wallet user ID */
|
|
@@ -5486,48 +6234,86 @@ export interface UserAsset {
|
|
|
5486
6234
|
/** Wallet ID */
|
|
5487
6235
|
walletId: string;
|
|
5488
6236
|
}
|
|
6237
|
+
export interface UserAssetAddress {
|
|
6238
|
+
/** Address */
|
|
6239
|
+
address: string;
|
|
6240
|
+
/** Public key used to derive the address */
|
|
6241
|
+
publicKey?: string;
|
|
6242
|
+
/** @example "SEGWIT" */
|
|
6243
|
+
type?: "SEGWIT" | "LEGACY" | "DEFAULT";
|
|
6244
|
+
}
|
|
5489
6245
|
export interface UserAssetDto {
|
|
5490
6246
|
/** The percentage change in the price of the asset in the last 24 hours */
|
|
5491
6247
|
changePercentageLast24h?: string;
|
|
5492
6248
|
/** Addresses */
|
|
5493
|
-
addresses:
|
|
6249
|
+
addresses: UserAssetAddress[];
|
|
5494
6250
|
/** Asset Name */
|
|
5495
6251
|
assetName: string;
|
|
5496
6252
|
/** Asset Symbol */
|
|
5497
6253
|
assetSymbol: string;
|
|
5498
6254
|
/** Asset Persisted Balance */
|
|
5499
|
-
balance: string;
|
|
5500
|
-
/**
|
|
5501
|
-
|
|
6255
|
+
balance: string | null;
|
|
6256
|
+
/**
|
|
6257
|
+
* Asset Persisted Balance Updated At
|
|
6258
|
+
* @format date-time
|
|
6259
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6260
|
+
*/
|
|
6261
|
+
balanceUpdatedAt: string | null;
|
|
5502
6262
|
/** Chain ID */
|
|
5503
6263
|
chainId: string;
|
|
5504
6264
|
/** Asset Persisted Claimable Balance */
|
|
5505
|
-
claimableBalance
|
|
5506
|
-
/**
|
|
5507
|
-
|
|
6265
|
+
claimableBalance?: string | null;
|
|
6266
|
+
/**
|
|
6267
|
+
* Asset Persisted Claimable Balance Updated At
|
|
6268
|
+
* @format date-time
|
|
6269
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6270
|
+
*/
|
|
6271
|
+
claimableBalanceUpdatedAt?: string | null;
|
|
5508
6272
|
/** Asset Payment Token Config ID */
|
|
5509
|
-
claimablePaymentTokenAssetConfigId
|
|
6273
|
+
claimablePaymentTokenAssetConfigId?: string | null;
|
|
5510
6274
|
/** Asset Payment Token Contract Address */
|
|
5511
|
-
claimablePaymentTokenContractAddress
|
|
6275
|
+
claimablePaymentTokenContractAddress?: string | null;
|
|
5512
6276
|
config: AssetConfig;
|
|
5513
6277
|
/** Asset ID */
|
|
5514
6278
|
configId: string;
|
|
6279
|
+
/**
|
|
6280
|
+
* Created at
|
|
6281
|
+
* @format date-time
|
|
6282
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6283
|
+
*/
|
|
6284
|
+
createdAt: string;
|
|
5515
6285
|
/** Asset Default Address */
|
|
5516
6286
|
defaultAddress: string;
|
|
6287
|
+
/** User asset ID */
|
|
6288
|
+
id: string;
|
|
5517
6289
|
/** Asset Visibility */
|
|
5518
6290
|
isVisible: boolean;
|
|
5519
6291
|
/** Asset Persisted Locked Balance */
|
|
5520
|
-
lockedTokenBalance: string;
|
|
5521
|
-
/**
|
|
5522
|
-
|
|
6292
|
+
lockedTokenBalance: string | null;
|
|
6293
|
+
/**
|
|
6294
|
+
* Asset Persisted Locked Balance Updated At
|
|
6295
|
+
* @format date-time
|
|
6296
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6297
|
+
*/
|
|
6298
|
+
lockedTokenBalanceUpdatedAt: string | null;
|
|
5523
6299
|
/** Asset Persisted Mainnet Balance */
|
|
5524
|
-
mainnetBalance: string;
|
|
5525
|
-
/**
|
|
5526
|
-
|
|
6300
|
+
mainnetBalance: string | null;
|
|
6301
|
+
/**
|
|
6302
|
+
* Asset Persisted Mainnet Balance Updated At
|
|
6303
|
+
* @format date-time
|
|
6304
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6305
|
+
*/
|
|
6306
|
+
mainnetBalanceUpdatedAt: string | null;
|
|
5527
6307
|
/** Asset Persisted Mainnet Locked Balance */
|
|
5528
|
-
mainnetLockedBalance: string;
|
|
5529
|
-
/**
|
|
5530
|
-
|
|
6308
|
+
mainnetLockedBalance: string | null;
|
|
6309
|
+
/**
|
|
6310
|
+
* Asset Persisted Mainnet Locked Balance Updated At
|
|
6311
|
+
* @format date-time
|
|
6312
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6313
|
+
*/
|
|
6314
|
+
mainnetLockedBalanceUpdatedAt: string | null;
|
|
6315
|
+
/** Merchant public data */
|
|
6316
|
+
merchant: UserAssetMerchantDto;
|
|
5531
6317
|
/** Merchant ID */
|
|
5532
6318
|
merchantId: string;
|
|
5533
6319
|
/** The field differentiate multisig transaction */
|
|
@@ -5537,13 +6323,27 @@ export interface UserAssetDto {
|
|
|
5537
6323
|
/** Asset Import Source */
|
|
5538
6324
|
source: "merchant" | "user" | "republic";
|
|
5539
6325
|
/** Asset Persisted Testnet Balance */
|
|
5540
|
-
testnetBalance: string;
|
|
5541
|
-
/**
|
|
5542
|
-
|
|
6326
|
+
testnetBalance: string | null;
|
|
6327
|
+
/**
|
|
6328
|
+
* Asset Persisted Testnet Balance Updated At
|
|
6329
|
+
* @format date-time
|
|
6330
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6331
|
+
*/
|
|
6332
|
+
testnetBalanceUpdatedAt: string | null;
|
|
5543
6333
|
/** Asset Persisted Testnet Locked Balance */
|
|
5544
|
-
testnetLockedBalance: string;
|
|
5545
|
-
/**
|
|
5546
|
-
|
|
6334
|
+
testnetLockedBalance: string | null;
|
|
6335
|
+
/**
|
|
6336
|
+
* Asset Persisted Testnet Locked Balance Updated At
|
|
6337
|
+
* @format date-time
|
|
6338
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6339
|
+
*/
|
|
6340
|
+
testnetLockedBalanceUpdatedAt: string | null;
|
|
6341
|
+
/**
|
|
6342
|
+
* Updated at
|
|
6343
|
+
* @format date-time
|
|
6344
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6345
|
+
*/
|
|
6346
|
+
updatedAt: string;
|
|
5547
6347
|
/** User asset address */
|
|
5548
6348
|
userAssetAddress: string;
|
|
5549
6349
|
/** Wallet user ID */
|
|
@@ -5551,7 +6351,30 @@ export interface UserAssetDto {
|
|
|
5551
6351
|
/** Wallet ID */
|
|
5552
6352
|
walletId: string;
|
|
5553
6353
|
}
|
|
6354
|
+
export interface UserAssetMerchantDto {
|
|
6355
|
+
/** Merchant ID */
|
|
6356
|
+
id: string;
|
|
6357
|
+
/** Merchant name */
|
|
6358
|
+
name: string;
|
|
6359
|
+
/** Merchant name slug */
|
|
6360
|
+
nameSlugify: string;
|
|
6361
|
+
/** Merchant status */
|
|
6362
|
+
status: "active" | "inactive" | "invalidated";
|
|
6363
|
+
/** Whether the merchant is verified */
|
|
6364
|
+
verified: boolean;
|
|
6365
|
+
}
|
|
5554
6366
|
export interface UserDto {
|
|
6367
|
+
/**
|
|
6368
|
+
* Created at
|
|
6369
|
+
* @format date-time
|
|
6370
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6371
|
+
*/
|
|
6372
|
+
createdAt: string;
|
|
6373
|
+
/**
|
|
6374
|
+
* User email address
|
|
6375
|
+
* @example "john@example.com"
|
|
6376
|
+
*/
|
|
6377
|
+
email?: string;
|
|
5555
6378
|
/**
|
|
5556
6379
|
* External User ID for Reference
|
|
5557
6380
|
* @example "6e464058-67c1-4273-a6a4-8aae522e34be"
|
|
@@ -5561,19 +6384,9 @@ export interface UserDto {
|
|
|
5561
6384
|
* User first name
|
|
5562
6385
|
* @example "Bryan"
|
|
5563
6386
|
*/
|
|
5564
|
-
firstName
|
|
6387
|
+
firstName?: string;
|
|
5565
6388
|
/** User primary key */
|
|
5566
6389
|
id: string;
|
|
5567
|
-
/**
|
|
5568
|
-
* Latest generated wallaby auth pub key
|
|
5569
|
-
* @example "4ecb720b1392468c75803d6252ac987c113206955070b96df1208c1c480338168e1407cec4b5af2f91d12af9b725cbd85af994b29c6364971a7ef8d955be83dc"
|
|
5570
|
-
*/
|
|
5571
|
-
latestWallabyAuthPubKey: string;
|
|
5572
|
-
/**
|
|
5573
|
-
* Latest generated wallaby auth pub key version
|
|
5574
|
-
* @example "1"
|
|
5575
|
-
*/
|
|
5576
|
-
latestWallabyAuthPubKeyVersion: string;
|
|
5577
6390
|
/**
|
|
5578
6391
|
* Merchant ID
|
|
5579
6392
|
* @example "6e464058-67c1-4273-a6a4-8aae522e34be"
|
|
@@ -5583,9 +6396,15 @@ export interface UserDto {
|
|
|
5583
6396
|
* User's Polymesh identity
|
|
5584
6397
|
* @example "0x73ecca5cf1ecaa365a7d1f1e5dbc91737c73fe0a96b41386f574dfb915a913a7"
|
|
5585
6398
|
*/
|
|
5586
|
-
polymeshDID
|
|
6399
|
+
polymeshDID?: string;
|
|
5587
6400
|
/** @example "wallet_user" */
|
|
5588
|
-
role
|
|
6401
|
+
role?: "super_admin" | "merchant_admin" | "merchant_user" | "wallet_user" | "contract_admin" | "reserve_admin" | "wallets_admin" | "transfer_admin" | "soft_burn_admin" | "mint_admin" | "automation_admin";
|
|
6402
|
+
/**
|
|
6403
|
+
* Updated at
|
|
6404
|
+
* @format date-time
|
|
6405
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6406
|
+
*/
|
|
6407
|
+
updatedAt: string;
|
|
5589
6408
|
/**
|
|
5590
6409
|
* User's wallets count
|
|
5591
6410
|
* @example 1
|
|
@@ -5610,10 +6429,10 @@ export interface UserWalletsResponseDto {
|
|
|
5610
6429
|
}
|
|
5611
6430
|
export interface V2TransferRequestDto {
|
|
5612
6431
|
/**
|
|
5613
|
-
* Transfer amount
|
|
5614
|
-
* @example 100
|
|
6432
|
+
* Transfer amount in human-readable units (decimal string, e.g. "1.5"). Sent as a string to preserve precision.
|
|
6433
|
+
* @example "100"
|
|
5615
6434
|
*/
|
|
5616
|
-
amount:
|
|
6435
|
+
amount: string;
|
|
5617
6436
|
/**
|
|
5618
6437
|
* Asset Wallaby UUID
|
|
5619
6438
|
* @format uuid
|
|
@@ -5625,11 +6444,6 @@ export interface V2TransferRequestDto {
|
|
|
5625
6444
|
assetId: string;
|
|
5626
6445
|
/** @example "e3421d7f9d6888ea83bef6b28ce0a2ab6eb6fe8a8fbfa3743240992590816b08f9a62edcc63296d056c552054d583fec36d23ef11dffb24c95aaf4a47d50dccc" */
|
|
5627
6446
|
clientAuthPubKey: string;
|
|
5628
|
-
/**
|
|
5629
|
-
* Seed encrypted asymmetrically by current user corresponding wallaby auth public key, to be decrypted inside the secure code execution environment
|
|
5630
|
-
* @example "{"iv":"b7b643ebccf35c262aa2d5c2729c5f3d","ephemPublicKey":"040cff71ed16f1105c45c2214c9e72d3eabde48efe3759c6f150352b19aa8054c302dc1fd8b4f3927bd7d74ae0186854b3a13de7673be4f8424a6ba3702c239729","ciphertext":"736bc1881a02fa08df4a3f1e35d426660e3c35471facba2866e960f8a19b783bac30d037b07dc9e6406e258d09a4a7e4a7cf58d20cf7b8b7201db0f80849a48d20389039e3fc196f42796fe6d501f47afb030f9946ecbc148d8da1e46c3793a4","mac":"b6cbbdbbc3a311d919340fc3ec9ee1911d9ead6d989efa73e0ac3303c51a353e"}"
|
|
5631
|
-
*/
|
|
5632
|
-
encryptedSeed: EncryptedDataInterface;
|
|
5633
6447
|
/**
|
|
5634
6448
|
* Array of encrypted shares which will be utilized to reconstruct seed and sign
|
|
5635
6449
|
* @maxItems 100
|
|
@@ -5838,6 +6652,12 @@ export interface WallabyAuthPubKeyResponseDto {
|
|
|
5838
6652
|
export interface Wallet {
|
|
5839
6653
|
/** Total number of assets in the wallet */
|
|
5840
6654
|
assetsCount: number;
|
|
6655
|
+
/**
|
|
6656
|
+
* Created at
|
|
6657
|
+
* @format date-time
|
|
6658
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6659
|
+
*/
|
|
6660
|
+
createdAt: string;
|
|
5841
6661
|
/**
|
|
5842
6662
|
* How the wallet was created
|
|
5843
6663
|
* @example "user_created"
|
|
@@ -5857,27 +6677,67 @@ export interface Wallet {
|
|
|
5857
6677
|
* @example "not_required"
|
|
5858
6678
|
*/
|
|
5859
6679
|
keyMigrationStatus: "not_required" | "pending" | "migrated" | "failed";
|
|
5860
|
-
keyShares: KeyShare;
|
|
6680
|
+
keyShares: KeyShare[];
|
|
6681
|
+
/**
|
|
6682
|
+
* When wallet access was last verified
|
|
6683
|
+
* @format date-time
|
|
6684
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6685
|
+
*/
|
|
6686
|
+
lastVerifiedAt: string | null;
|
|
5861
6687
|
merchant: Merchant;
|
|
5862
6688
|
/** Merchant ID */
|
|
5863
6689
|
merchantId: string;
|
|
5864
6690
|
/** Reason this wallet failed key migration, when keyMigrationStatus = failed */
|
|
5865
6691
|
migrationErrorMessage?: string | null;
|
|
6692
|
+
/** Number of times the wallet has been recovered */
|
|
6693
|
+
recoveryCount: number;
|
|
5866
6694
|
/** Wallet revision number */
|
|
5867
6695
|
revisionId: string;
|
|
5868
6696
|
/** Wallet revision name */
|
|
5869
6697
|
revisionName: string;
|
|
5870
6698
|
type: WalletType;
|
|
5871
|
-
|
|
6699
|
+
/**
|
|
6700
|
+
* Updated at
|
|
6701
|
+
* @format date-time
|
|
6702
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6703
|
+
*/
|
|
6704
|
+
updatedAt: string;
|
|
6705
|
+
userAssets: UserAsset[];
|
|
5872
6706
|
/** Wallet user ID */
|
|
5873
6707
|
userId: string;
|
|
5874
|
-
walletAddresses: WalletAddress;
|
|
5875
|
-
walletKeks: WalletKek;
|
|
6708
|
+
walletAddresses: WalletAddress[];
|
|
6709
|
+
walletKeks: WalletKek[];
|
|
6710
|
+
}
|
|
6711
|
+
export interface WalletAddress {
|
|
6712
|
+
/** Wallet Address */
|
|
6713
|
+
address: string;
|
|
6714
|
+
chain: Chain;
|
|
6715
|
+
/**
|
|
6716
|
+
* Created at
|
|
6717
|
+
* @format date-time
|
|
6718
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6719
|
+
*/
|
|
6720
|
+
createdAt: string;
|
|
6721
|
+
/** Wallet Address ID */
|
|
6722
|
+
id: string;
|
|
6723
|
+
/** Public Key */
|
|
6724
|
+
publicKey: string;
|
|
6725
|
+
type: WalletAddressType;
|
|
6726
|
+
/** Type ID */
|
|
6727
|
+
typeId: number;
|
|
6728
|
+
/**
|
|
6729
|
+
* Updated at
|
|
6730
|
+
* @format date-time
|
|
6731
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6732
|
+
*/
|
|
6733
|
+
updatedAt: string;
|
|
6734
|
+
wallet: Wallet;
|
|
6735
|
+
/** Wallet ID */
|
|
6736
|
+
walletId: string;
|
|
5876
6737
|
}
|
|
5877
|
-
export interface
|
|
6738
|
+
export interface WalletAddressResponseDto {
|
|
5878
6739
|
/** Wallet Address */
|
|
5879
6740
|
address: string;
|
|
5880
|
-
chain: Chain;
|
|
5881
6741
|
/** Wallet Address ID */
|
|
5882
6742
|
id: string;
|
|
5883
6743
|
/** Public Key */
|
|
@@ -5885,7 +6745,6 @@ export interface WalletAddress {
|
|
|
5885
6745
|
type: WalletAddressType;
|
|
5886
6746
|
/** Type ID */
|
|
5887
6747
|
typeId: number;
|
|
5888
|
-
wallet: Wallet;
|
|
5889
6748
|
/** Wallet ID */
|
|
5890
6749
|
walletId: string;
|
|
5891
6750
|
}
|
|
@@ -5940,11 +6799,8 @@ export interface WalletCompleteRecoveryCodeDto {
|
|
|
5940
6799
|
walletId?: string;
|
|
5941
6800
|
}
|
|
5942
6801
|
export interface WalletCompleteRecoveryCodeResponseDto {
|
|
5943
|
-
/**
|
|
5944
|
-
|
|
5945
|
-
* @example {"userId":"a4dedb83-4d59-41ca-84b5-4b24a98878d8","externalUserId":"de86cbd2-aef6-45b1-9f9e-f75013a13381"}
|
|
5946
|
-
*/
|
|
5947
|
-
user: object;
|
|
6802
|
+
/** Wallaby user */
|
|
6803
|
+
user: WalletRecoveryUserDto;
|
|
5948
6804
|
/** Recovered wallet */
|
|
5949
6805
|
wallet: Wallet;
|
|
5950
6806
|
}
|
|
@@ -5957,8 +6813,8 @@ export interface WalletCreatedDto {
|
|
|
5957
6813
|
/** Backup share encrypted symmetrically with a random KEK. Present when wallabyKeepsOne=true and totalShares>=3. */
|
|
5958
6814
|
encryptedBackupShare?: SymmetricEncryptedDto;
|
|
5959
6815
|
/** Encrypted seed phrase. For standard wallets: ECIES-encrypted with the clientAuthPubKey. For admin wallets: AES-GCM encrypted blob (opaque to the caller). */
|
|
5960
|
-
encryptedSeed
|
|
5961
|
-
encryptedSeedForSharesSplit
|
|
6816
|
+
encryptedSeed?: EncryptedDataInterface | SymmetricEncryptedDto;
|
|
6817
|
+
encryptedSeedForSharesSplit?: EncryptedDataInterface;
|
|
5962
6818
|
/**
|
|
5963
6819
|
* Split request reference, unique value to uniquely reference a split operation
|
|
5964
6820
|
* @example "a4dedb83-4d59-41ca-84b5-4b24a98878d8"
|
|
@@ -5968,9 +6824,9 @@ export interface WalletCreatedDto {
|
|
|
5968
6824
|
* A list of encrypted shares split from a seed phrase. One of these shares is encrypted with the user public key. The other is encrypted with wallaby public key. This is returned only if the user selected the option to get shares back
|
|
5969
6825
|
* @maxItems 100
|
|
5970
6826
|
* @default []
|
|
5971
|
-
* @example [{"iv":"b7b643ebccf35c262aa2d5c2729c5f3d","ephemPublicKey":"040cff71ed16f1105c45c2214c9e72d3eabde48efe3759c6f150352b19aa8054c302dc1fd8b4f3927bd7d74ae0186854b3a13de7673be4f8424a6ba3702c239729","ciphertext":"736bc1881a02fa08df4a3f1e35d426660e3c35471facba2866e960f8a19b783bac30d037b07dc9e6406e258d09a4a7e4a7cf58d20cf7b8b7201db0f80849a48d20389039e3fc196f42796fe6d501f47afb030f9946ecbc148d8da1e46c3793a4","mac":"b6cbbdbbc3a311d919340fc3ec9ee1911d9ead6d989efa73e0ac3303c51a353e"},
|
|
6827
|
+
* @example [{"encrypted":{"iv":"b7b643ebccf35c262aa2d5c2729c5f3d","ephemPublicKey":"040cff71ed16f1105c45c2214c9e72d3eabde48efe3759c6f150352b19aa8054c302dc1fd8b4f3927bd7d74ae0186854b3a13de7673be4f8424a6ba3702c239729","ciphertext":"736bc1881a02fa08df4a3f1e35d426660e3c35471facba2866e960f8a19b783bac30d037b07dc9e6406e258d09a4a7e4a7cf58d20cf7b8b7201db0f80849a48d20389039e3fc196f42796fe6d501f47afb030f9946ecbc148d8da1e46c3793a4","mac":"b6cbbdbbc3a311d919340fc3ec9ee1911d9ead6d989efa73e0ac3303c51a353e"},"wrappingPublicKey":"e3421d7f9d6888ea83bef6b28ce0a2ab6eb6fe8a8fbfa3743240992590816b08f9a62edcc63296d056c552054d583fec36d23ef11dffb24c95aaf4a47d50dccc","type":"owner_main_device_share"}]
|
|
5972
6828
|
*/
|
|
5973
|
-
shares
|
|
6829
|
+
shares?: KeyShareDto[];
|
|
5974
6830
|
/**
|
|
5975
6831
|
* Wallaby Auth Pub Key
|
|
5976
6832
|
* @deprecated
|
|
@@ -5999,7 +6855,40 @@ export interface WalletDto {
|
|
|
5999
6855
|
*/
|
|
6000
6856
|
userId: string;
|
|
6001
6857
|
}
|
|
6002
|
-
export
|
|
6858
|
+
export interface WalletKek {
|
|
6859
|
+
/**
|
|
6860
|
+
* Created at
|
|
6861
|
+
* @format date-time
|
|
6862
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6863
|
+
*/
|
|
6864
|
+
createdAt: string;
|
|
6865
|
+
/** Wallet KEK ID */
|
|
6866
|
+
id: string;
|
|
6867
|
+
/** Number of shares this KEK covers */
|
|
6868
|
+
shareCount: number;
|
|
6869
|
+
/**
|
|
6870
|
+
* Updated at
|
|
6871
|
+
* @format date-time
|
|
6872
|
+
* @example "2024-01-20T14:45:00.000Z"
|
|
6873
|
+
*/
|
|
6874
|
+
updatedAt: string;
|
|
6875
|
+
/** User ID */
|
|
6876
|
+
userId: string;
|
|
6877
|
+
/** Wallet ID */
|
|
6878
|
+
walletId: string;
|
|
6879
|
+
}
|
|
6880
|
+
export interface WalletRecoveryUserDto {
|
|
6881
|
+
/**
|
|
6882
|
+
* External User ID for Reference
|
|
6883
|
+
* @example "de86cbd2-aef6-45b1-9f9e-f75013a13381"
|
|
6884
|
+
*/
|
|
6885
|
+
externalUserId: string;
|
|
6886
|
+
/**
|
|
6887
|
+
* Wallaby user ID
|
|
6888
|
+
* @example "a4dedb83-4d59-41ca-84b5-4b24a98878d8"
|
|
6889
|
+
*/
|
|
6890
|
+
id: string;
|
|
6891
|
+
}
|
|
6003
6892
|
export interface WalletSeedImportRequestDto {
|
|
6004
6893
|
/** @example "e3421d7f9d6888ea83bef6b28ce0a2ab6eb6fe8a8fbfa3743240992590816b08f9a62edcc63296d056c552054d583fec36d23ef11dffb24c95aaf4a47d50dccc" */
|
|
6005
6894
|
clientAuthPubKey: string;
|
|
@@ -6032,6 +6921,24 @@ export interface WalletType {
|
|
|
6032
6921
|
wallets: Wallet[];
|
|
6033
6922
|
}
|
|
6034
6923
|
export type WhitelistApiKeyOriginsData = AddMerchantApiKeyOriginResponseDto;
|
|
6924
|
+
export interface WhitelistApiKeyOriginsParams {
|
|
6925
|
+
/**
|
|
6926
|
+
* @format uuid
|
|
6927
|
+
* @minLength 36
|
|
6928
|
+
* @maxLength 36
|
|
6929
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
|
|
6930
|
+
* @example "180b0a0f-6935-4047-a32d-b2a4d50acfc9"
|
|
6931
|
+
*/
|
|
6932
|
+
apiKeyId: string;
|
|
6933
|
+
/**
|
|
6934
|
+
* @format uuid
|
|
6935
|
+
* @minLength 36
|
|
6936
|
+
* @maxLength 36
|
|
6937
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
|
|
6938
|
+
* @example "180b0a0f-6935-4047-a32d-b2a4d50acfc9"
|
|
6939
|
+
*/
|
|
6940
|
+
merchantId: string;
|
|
6941
|
+
}
|
|
6035
6942
|
export declare namespace Health {
|
|
6036
6943
|
/**
|
|
6037
6944
|
* No description
|
|
@@ -6993,7 +7900,7 @@ export declare namespace Merchants {
|
|
|
6993
7900
|
* No description
|
|
6994
7901
|
* @tags Merchants
|
|
6995
7902
|
* @name RevokeMerchantAdmins
|
|
6996
|
-
* @summary
|
|
7903
|
+
* @summary Revoke merchant admins by merchant id
|
|
6997
7904
|
* @request DELETE:/api/v1/merchants/{merchantId}/admins/{userId}
|
|
6998
7905
|
* @secure
|
|
6999
7906
|
*/
|
|
@@ -7105,7 +8012,7 @@ export declare namespace Merchants {
|
|
|
7105
8012
|
/** A unique identifier for the request, used for tracing and debugging */
|
|
7106
8013
|
"x-client-request-id"?: string;
|
|
7107
8014
|
};
|
|
7108
|
-
type ResponseBody =
|
|
8015
|
+
type ResponseBody = AddMerchantWalletAssetsData;
|
|
7109
8016
|
}
|
|
7110
8017
|
/**
|
|
7111
8018
|
* No description
|
|
@@ -7179,16 +8086,100 @@ export declare namespace Merchants {
|
|
|
7179
8086
|
};
|
|
7180
8087
|
type ResponseBody = ChangeMerchantAssetDefaultStatusData;
|
|
7181
8088
|
}
|
|
8089
|
+
/**
|
|
8090
|
+
* No description
|
|
8091
|
+
* @tags Merchants
|
|
8092
|
+
* @name GetMerchantApiKeys
|
|
8093
|
+
* @summary Get merchant API keys by merchant id
|
|
8094
|
+
* @request GET:/api/v1/merchants/{merchantId}/api-keys
|
|
8095
|
+
* @secure
|
|
8096
|
+
*/
|
|
8097
|
+
namespace GetMerchantApiKeys {
|
|
8098
|
+
type RequestParams = {
|
|
8099
|
+
/**
|
|
8100
|
+
* @format uuid
|
|
8101
|
+
* @minLength 36
|
|
8102
|
+
* @maxLength 36
|
|
8103
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
|
|
8104
|
+
* @example "180b0a0f-6935-4047-a32d-b2a4d50acfc9"
|
|
8105
|
+
*/
|
|
8106
|
+
merchantId: string;
|
|
8107
|
+
};
|
|
8108
|
+
type RequestQuery = {
|
|
8109
|
+
/**
|
|
8110
|
+
* Filter by date range from
|
|
8111
|
+
* @format date-time
|
|
8112
|
+
*/
|
|
8113
|
+
fromDate?: string;
|
|
8114
|
+
/**
|
|
8115
|
+
* Include whitelisted origins for each API key
|
|
8116
|
+
* @default false
|
|
8117
|
+
*/
|
|
8118
|
+
includeOrigins?: boolean;
|
|
8119
|
+
/**
|
|
8120
|
+
* Limit per page
|
|
8121
|
+
* @default 50
|
|
8122
|
+
*/
|
|
8123
|
+
limit: number;
|
|
8124
|
+
/**
|
|
8125
|
+
* Page number
|
|
8126
|
+
* @default 1
|
|
8127
|
+
*/
|
|
8128
|
+
page: number;
|
|
8129
|
+
/**
|
|
8130
|
+
* Search
|
|
8131
|
+
* @minLength 3
|
|
8132
|
+
* @maxLength 100
|
|
8133
|
+
* @pattern ^[a-zA-Z0-9_ ]+$
|
|
8134
|
+
*/
|
|
8135
|
+
search?: string;
|
|
8136
|
+
/**
|
|
8137
|
+
* Sort by
|
|
8138
|
+
* @default "updatedAt"
|
|
8139
|
+
*/
|
|
8140
|
+
sortBy?: "createdAt" | "updatedAt";
|
|
8141
|
+
/**
|
|
8142
|
+
* Sort order
|
|
8143
|
+
* @default "DESC"
|
|
8144
|
+
*/
|
|
8145
|
+
sortOrder?: "ASC" | "DESC";
|
|
8146
|
+
/**
|
|
8147
|
+
* Filter by date range from
|
|
8148
|
+
* @format date-time
|
|
8149
|
+
*/
|
|
8150
|
+
toDate?: string;
|
|
8151
|
+
/**
|
|
8152
|
+
* Asymmetric encryption public key used to encrypt the API key for secure transmission
|
|
8153
|
+
* @example ""
|
|
8154
|
+
*/
|
|
8155
|
+
wrappingPublicKey?: string;
|
|
8156
|
+
};
|
|
8157
|
+
type RequestBody = never;
|
|
8158
|
+
type RequestHeaders = {
|
|
8159
|
+
/** A unique identifier for the request, used for tracing and debugging */
|
|
8160
|
+
"x-client-request-id"?: string;
|
|
8161
|
+
};
|
|
8162
|
+
type ResponseBody = GetMerchantApiKeysData;
|
|
8163
|
+
}
|
|
7182
8164
|
/**
|
|
7183
8165
|
* No description
|
|
7184
8166
|
* @tags Merchants
|
|
7185
8167
|
* @name CreateApiKey
|
|
7186
8168
|
* @summary Create new API Key
|
|
7187
|
-
* @request POST:/api/v1/merchants/api-keys
|
|
8169
|
+
* @request POST:/api/v1/merchants/{merchantId}/api-keys
|
|
7188
8170
|
* @secure
|
|
7189
8171
|
*/
|
|
7190
8172
|
namespace CreateApiKey {
|
|
7191
|
-
type RequestParams = {
|
|
8173
|
+
type RequestParams = {
|
|
8174
|
+
/**
|
|
8175
|
+
* @format uuid
|
|
8176
|
+
* @minLength 36
|
|
8177
|
+
* @maxLength 36
|
|
8178
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
|
|
8179
|
+
* @example "180b0a0f-6935-4047-a32d-b2a4d50acfc9"
|
|
8180
|
+
*/
|
|
8181
|
+
merchantId: string;
|
|
8182
|
+
};
|
|
7192
8183
|
type RequestQuery = {};
|
|
7193
8184
|
type RequestBody = CreateMerchantApiKeyBodyDto;
|
|
7194
8185
|
type RequestHeaders = {
|
|
@@ -7197,16 +8188,106 @@ export declare namespace Merchants {
|
|
|
7197
8188
|
};
|
|
7198
8189
|
type ResponseBody = CreateApiKeyData;
|
|
7199
8190
|
}
|
|
8191
|
+
/**
|
|
8192
|
+
* No description
|
|
8193
|
+
* @tags Merchants
|
|
8194
|
+
* @name GetMerchantApiKeyOrigins
|
|
8195
|
+
* @summary Get an API key's whitelisted origins
|
|
8196
|
+
* @request GET:/api/v1/merchants/{merchantId}/api-keys/{apiKeyId}/origins
|
|
8197
|
+
* @secure
|
|
8198
|
+
*/
|
|
8199
|
+
namespace GetMerchantApiKeyOrigins {
|
|
8200
|
+
type RequestParams = {
|
|
8201
|
+
/**
|
|
8202
|
+
* @format uuid
|
|
8203
|
+
* @minLength 36
|
|
8204
|
+
* @maxLength 36
|
|
8205
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
|
|
8206
|
+
* @example "180b0a0f-6935-4047-a32d-b2a4d50acfc9"
|
|
8207
|
+
*/
|
|
8208
|
+
apiKeyId: string;
|
|
8209
|
+
/**
|
|
8210
|
+
* @format uuid
|
|
8211
|
+
* @minLength 36
|
|
8212
|
+
* @maxLength 36
|
|
8213
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
|
|
8214
|
+
* @example "180b0a0f-6935-4047-a32d-b2a4d50acfc9"
|
|
8215
|
+
*/
|
|
8216
|
+
merchantId: string;
|
|
8217
|
+
};
|
|
8218
|
+
type RequestQuery = {
|
|
8219
|
+
/**
|
|
8220
|
+
* Filter by date range from
|
|
8221
|
+
* @format date-time
|
|
8222
|
+
*/
|
|
8223
|
+
fromDate?: string;
|
|
8224
|
+
/**
|
|
8225
|
+
* Limit per page
|
|
8226
|
+
* @default 50
|
|
8227
|
+
*/
|
|
8228
|
+
limit: number;
|
|
8229
|
+
/**
|
|
8230
|
+
* Page number
|
|
8231
|
+
* @default 1
|
|
8232
|
+
*/
|
|
8233
|
+
page: number;
|
|
8234
|
+
/**
|
|
8235
|
+
* Search
|
|
8236
|
+
* @minLength 3
|
|
8237
|
+
* @maxLength 100
|
|
8238
|
+
* @pattern ^[a-zA-Z0-9_ ]+$
|
|
8239
|
+
*/
|
|
8240
|
+
search?: string;
|
|
8241
|
+
/**
|
|
8242
|
+
* Sort by
|
|
8243
|
+
* @default "updatedAt"
|
|
8244
|
+
*/
|
|
8245
|
+
sortBy?: "createdAt" | "updatedAt";
|
|
8246
|
+
/**
|
|
8247
|
+
* Sort order
|
|
8248
|
+
* @default "DESC"
|
|
8249
|
+
*/
|
|
8250
|
+
sortOrder?: "ASC" | "DESC";
|
|
8251
|
+
/**
|
|
8252
|
+
* Filter by date range from
|
|
8253
|
+
* @format date-time
|
|
8254
|
+
*/
|
|
8255
|
+
toDate?: string;
|
|
8256
|
+
};
|
|
8257
|
+
type RequestBody = never;
|
|
8258
|
+
type RequestHeaders = {
|
|
8259
|
+
/** A unique identifier for the request, used for tracing and debugging */
|
|
8260
|
+
"x-client-request-id"?: string;
|
|
8261
|
+
};
|
|
8262
|
+
type ResponseBody = GetMerchantApiKeyOriginsData;
|
|
8263
|
+
}
|
|
7200
8264
|
/**
|
|
7201
8265
|
* No description
|
|
7202
8266
|
* @tags Merchants
|
|
7203
8267
|
* @name WhitelistApiKeyOrigins
|
|
7204
8268
|
* @summary Whitelist API Key's origins
|
|
7205
|
-
* @request POST:/api/v1/merchants/api-keys/whitelist-origins
|
|
8269
|
+
* @request POST:/api/v1/merchants/{merchantId}/api-keys/{apiKeyId}/whitelist-origins
|
|
7206
8270
|
* @secure
|
|
7207
8271
|
*/
|
|
7208
8272
|
namespace WhitelistApiKeyOrigins {
|
|
7209
|
-
type RequestParams = {
|
|
8273
|
+
type RequestParams = {
|
|
8274
|
+
/**
|
|
8275
|
+
* @format uuid
|
|
8276
|
+
* @minLength 36
|
|
8277
|
+
* @maxLength 36
|
|
8278
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
|
|
8279
|
+
* @example "180b0a0f-6935-4047-a32d-b2a4d50acfc9"
|
|
8280
|
+
*/
|
|
8281
|
+
apiKeyId: string;
|
|
8282
|
+
/**
|
|
8283
|
+
* @format uuid
|
|
8284
|
+
* @minLength 36
|
|
8285
|
+
* @maxLength 36
|
|
8286
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
|
|
8287
|
+
* @example "180b0a0f-6935-4047-a32d-b2a4d50acfc9"
|
|
8288
|
+
*/
|
|
8289
|
+
merchantId: string;
|
|
8290
|
+
};
|
|
7210
8291
|
type RequestQuery = {};
|
|
7211
8292
|
type RequestBody = AddMerchantApiKeyOriginBodyDto;
|
|
7212
8293
|
type RequestHeaders = {
|
|
@@ -7215,6 +8296,41 @@ export declare namespace Merchants {
|
|
|
7215
8296
|
};
|
|
7216
8297
|
type ResponseBody = WhitelistApiKeyOriginsData;
|
|
7217
8298
|
}
|
|
8299
|
+
/**
|
|
8300
|
+
* No description
|
|
8301
|
+
* @tags Merchants
|
|
8302
|
+
* @name UpdateApiKeyPublicKey
|
|
8303
|
+
* @summary Update an API key's client JWT public key
|
|
8304
|
+
* @request PUT:/api/v1/merchants/{merchantId}/api-keys/{apiKeyId}
|
|
8305
|
+
* @secure
|
|
8306
|
+
*/
|
|
8307
|
+
namespace UpdateApiKeyPublicKey {
|
|
8308
|
+
type RequestParams = {
|
|
8309
|
+
/**
|
|
8310
|
+
* @format uuid
|
|
8311
|
+
* @minLength 36
|
|
8312
|
+
* @maxLength 36
|
|
8313
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
|
|
8314
|
+
* @example "180b0a0f-6935-4047-a32d-b2a4d50acfc9"
|
|
8315
|
+
*/
|
|
8316
|
+
apiKeyId: string;
|
|
8317
|
+
/**
|
|
8318
|
+
* @format uuid
|
|
8319
|
+
* @minLength 36
|
|
8320
|
+
* @maxLength 36
|
|
8321
|
+
* @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
|
|
8322
|
+
* @example "180b0a0f-6935-4047-a32d-b2a4d50acfc9"
|
|
8323
|
+
*/
|
|
8324
|
+
merchantId: string;
|
|
8325
|
+
};
|
|
8326
|
+
type RequestQuery = {};
|
|
8327
|
+
type RequestBody = UpdateMerchantApiKeyPublicKeyBodyDto;
|
|
8328
|
+
type RequestHeaders = {
|
|
8329
|
+
/** A unique identifier for the request, used for tracing and debugging */
|
|
8330
|
+
"x-client-request-id"?: string;
|
|
8331
|
+
};
|
|
8332
|
+
type ResponseBody = UpdateApiKeyPublicKeyData;
|
|
8333
|
+
}
|
|
7218
8334
|
}
|
|
7219
8335
|
export declare namespace Wallets {
|
|
7220
8336
|
/**
|
|
@@ -8338,7 +9454,7 @@ export declare namespace Transactions {
|
|
|
8338
9454
|
* Optional blockchain name to check transfer restrictions for, required when using contract address in the request
|
|
8339
9455
|
* @example "ETHEREUM"
|
|
8340
9456
|
*/
|
|
8341
|
-
blockchainName?:
|
|
9457
|
+
blockchainName?: "BITCOIN" | "ETHEREUM" | "ALGORAND" | "AVALANCHE" | "POLYGON" | "BASE" | "BSC" | "SUI" | "INJECTIVE" | "SEI" | "APTOS" | "SOLANA" | "POLYMESH" | "HEDERA" | "CANTON";
|
|
8342
9458
|
/**
|
|
8343
9459
|
* Optional token contract address on chain. When both contractAddress and blockchainName are supplied, assetId is ignored.
|
|
8344
9460
|
* @minLength 1
|
|
@@ -9438,7 +10554,7 @@ export declare namespace Dashboard {
|
|
|
9438
10554
|
* No description
|
|
9439
10555
|
* @tags Dashboard
|
|
9440
10556
|
* @name GetDashboardData
|
|
9441
|
-
* @summary
|
|
10557
|
+
* @summary Get dashboard data. This endpoint is only available for super admin, merchant admin and merchant user
|
|
9442
10558
|
* @request GET:/api/v1/dashboard
|
|
9443
10559
|
* @secure
|
|
9444
10560
|
*/
|
|
@@ -9450,19 +10566,19 @@ export declare namespace Dashboard {
|
|
|
9450
10566
|
/** A unique identifier for the request, used for tracing and debugging */
|
|
9451
10567
|
"x-client-request-id"?: string;
|
|
9452
10568
|
};
|
|
9453
|
-
type ResponseBody =
|
|
10569
|
+
type ResponseBody = GetDashboardDataData;
|
|
9454
10570
|
}
|
|
9455
10571
|
}
|
|
9456
10572
|
export declare namespace UserActivity {
|
|
9457
10573
|
/**
|
|
9458
10574
|
* No description
|
|
9459
10575
|
* @tags UserActivity
|
|
9460
|
-
* @name
|
|
9461
|
-
* @summary Get all activities. This endpoint is only available for super admin and
|
|
10576
|
+
* @name GetActivities
|
|
10577
|
+
* @summary Get all activities. This endpoint is only available for super admin and merchant admin
|
|
9462
10578
|
* @request GET:/api/v1/users-activities
|
|
9463
10579
|
* @secure
|
|
9464
10580
|
*/
|
|
9465
|
-
namespace
|
|
10581
|
+
namespace GetActivities {
|
|
9466
10582
|
type RequestParams = {};
|
|
9467
10583
|
type RequestQuery = {
|
|
9468
10584
|
/**
|
|
@@ -9508,7 +10624,7 @@ export declare namespace UserActivity {
|
|
|
9508
10624
|
/** A unique identifier for the request, used for tracing and debugging */
|
|
9509
10625
|
"x-client-request-id"?: string;
|
|
9510
10626
|
};
|
|
9511
|
-
type ResponseBody =
|
|
10627
|
+
type ResponseBody = GetActivitiesData;
|
|
9512
10628
|
}
|
|
9513
10629
|
}
|
|
9514
10630
|
export type QueryParamsType = Record<string | number, any>;
|
|
@@ -9745,7 +10861,7 @@ export declare class Api<SecurityDataType extends unknown> {
|
|
|
9745
10861
|
* @request PUT:/api/v1/chains/{chainId}
|
|
9746
10862
|
* @secure
|
|
9747
10863
|
*/
|
|
9748
|
-
updateChain: ({ chainId, ...query }: UpdateChainParams, data: UpdateChainDto, params?: RequestParams) => Promise<
|
|
10864
|
+
updateChain: ({ chainId, ...query }: UpdateChainParams, data: UpdateChainDto, params?: RequestParams) => Promise<UpdateChainResponseDto>;
|
|
9749
10865
|
};
|
|
9750
10866
|
assets: {
|
|
9751
10867
|
/**
|
|
@@ -9909,17 +11025,17 @@ export declare class Api<SecurityDataType extends unknown> {
|
|
|
9909
11025
|
* @request POST:/api/v1/merchants/admins/invite
|
|
9910
11026
|
* @secure
|
|
9911
11027
|
*/
|
|
9912
|
-
inviteMerchantAdmins: (data: InviteMerchantAdminDto, params?: RequestParams) => Promise<
|
|
11028
|
+
inviteMerchantAdmins: (data: InviteMerchantAdminDto, params?: RequestParams) => Promise<InviteMerchantAdminResponseDto>;
|
|
9913
11029
|
/**
|
|
9914
11030
|
* No description
|
|
9915
11031
|
*
|
|
9916
11032
|
* @tags Merchants
|
|
9917
11033
|
* @name RevokeMerchantAdmins
|
|
9918
|
-
* @summary
|
|
11034
|
+
* @summary Revoke merchant admins by merchant id
|
|
9919
11035
|
* @request DELETE:/api/v1/merchants/{merchantId}/admins/{userId}
|
|
9920
11036
|
* @secure
|
|
9921
11037
|
*/
|
|
9922
|
-
revokeMerchantAdmins: ({ merchantId, userId, ...query }: RevokeMerchantAdminsParams, params?: RequestParams) => Promise<
|
|
11038
|
+
revokeMerchantAdmins: ({ merchantId, userId, ...query }: RevokeMerchantAdminsParams, params?: RequestParams) => Promise<RevokeMerchantAdminResponseDto>;
|
|
9923
11039
|
/**
|
|
9924
11040
|
* No description
|
|
9925
11041
|
*
|
|
@@ -9929,7 +11045,7 @@ export declare class Api<SecurityDataType extends unknown> {
|
|
|
9929
11045
|
* @request GET:/api/v1/merchants/{merchantId}/wallets
|
|
9930
11046
|
* @secure
|
|
9931
11047
|
*/
|
|
9932
|
-
getMerchantWallets: ({ merchantId, ...query }: GetMerchantWalletsParams, params?: RequestParams) => Promise<
|
|
11048
|
+
getMerchantWallets: ({ merchantId, ...query }: GetMerchantWalletsParams, params?: RequestParams) => Promise<GetMerchantWalletsResponseDto>;
|
|
9933
11049
|
/**
|
|
9934
11050
|
* No description
|
|
9935
11051
|
*
|
|
@@ -9939,7 +11055,7 @@ export declare class Api<SecurityDataType extends unknown> {
|
|
|
9939
11055
|
* @request POST:/api/v1/merchants/wallets/add-assets
|
|
9940
11056
|
* @secure
|
|
9941
11057
|
*/
|
|
9942
|
-
addMerchantWalletAssets: (data: AddMerchantWalletAssetsBodyDto, params?: RequestParams) => Promise<
|
|
11058
|
+
addMerchantWalletAssets: (data: AddMerchantWalletAssetsBodyDto, params?: RequestParams) => Promise<AddMerchantWalletAssetsResponseDto>;
|
|
9943
11059
|
/**
|
|
9944
11060
|
* No description
|
|
9945
11061
|
*
|
|
@@ -9980,26 +11096,56 @@ export declare class Api<SecurityDataType extends unknown> {
|
|
|
9980
11096
|
* @secure
|
|
9981
11097
|
*/
|
|
9982
11098
|
changeMerchantAssetDefaultStatus: (data: ChangeMerchantAssetDefaultStatusBodyDto, params?: RequestParams) => Promise<ChangeMerchantAssetDefaultStatusResponseDto>;
|
|
11099
|
+
/**
|
|
11100
|
+
* No description
|
|
11101
|
+
*
|
|
11102
|
+
* @tags Merchants
|
|
11103
|
+
* @name GetMerchantApiKeys
|
|
11104
|
+
* @summary Get merchant API keys by merchant id
|
|
11105
|
+
* @request GET:/api/v1/merchants/{merchantId}/api-keys
|
|
11106
|
+
* @secure
|
|
11107
|
+
*/
|
|
11108
|
+
getMerchantApiKeys: ({ merchantId, ...query }: GetMerchantApiKeysParams, params?: RequestParams) => Promise<GetMerchantApiKeysResponseDto>;
|
|
9983
11109
|
/**
|
|
9984
11110
|
* No description
|
|
9985
11111
|
*
|
|
9986
11112
|
* @tags Merchants
|
|
9987
11113
|
* @name CreateApiKey
|
|
9988
11114
|
* @summary Create new API Key
|
|
9989
|
-
* @request POST:/api/v1/merchants/api-keys
|
|
11115
|
+
* @request POST:/api/v1/merchants/{merchantId}/api-keys
|
|
11116
|
+
* @secure
|
|
11117
|
+
*/
|
|
11118
|
+
createApiKey: ({ merchantId, ...query }: CreateApiKeyParams, data: CreateMerchantApiKeyBodyDto, params?: RequestParams) => Promise<CreateMerchantApiKeyResponseDto>;
|
|
11119
|
+
/**
|
|
11120
|
+
* No description
|
|
11121
|
+
*
|
|
11122
|
+
* @tags Merchants
|
|
11123
|
+
* @name GetMerchantApiKeyOrigins
|
|
11124
|
+
* @summary Get an API key's whitelisted origins
|
|
11125
|
+
* @request GET:/api/v1/merchants/{merchantId}/api-keys/{apiKeyId}/origins
|
|
9990
11126
|
* @secure
|
|
9991
11127
|
*/
|
|
9992
|
-
|
|
11128
|
+
getMerchantApiKeyOrigins: ({ merchantId, apiKeyId, ...query }: GetMerchantApiKeyOriginsParams, params?: RequestParams) => Promise<GetMerchantApiKeyOriginsResponseDto>;
|
|
9993
11129
|
/**
|
|
9994
11130
|
* No description
|
|
9995
11131
|
*
|
|
9996
11132
|
* @tags Merchants
|
|
9997
11133
|
* @name WhitelistApiKeyOrigins
|
|
9998
11134
|
* @summary Whitelist API Key's origins
|
|
9999
|
-
* @request POST:/api/v1/merchants/api-keys/whitelist-origins
|
|
11135
|
+
* @request POST:/api/v1/merchants/{merchantId}/api-keys/{apiKeyId}/whitelist-origins
|
|
11136
|
+
* @secure
|
|
11137
|
+
*/
|
|
11138
|
+
whitelistApiKeyOrigins: ({ merchantId, apiKeyId, ...query }: WhitelistApiKeyOriginsParams, data: AddMerchantApiKeyOriginBodyDto, params?: RequestParams) => Promise<AddMerchantApiKeyOriginResponseDto>;
|
|
11139
|
+
/**
|
|
11140
|
+
* No description
|
|
11141
|
+
*
|
|
11142
|
+
* @tags Merchants
|
|
11143
|
+
* @name UpdateApiKeyPublicKey
|
|
11144
|
+
* @summary Update an API key's client JWT public key
|
|
11145
|
+
* @request PUT:/api/v1/merchants/{merchantId}/api-keys/{apiKeyId}
|
|
10000
11146
|
* @secure
|
|
10001
11147
|
*/
|
|
10002
|
-
|
|
11148
|
+
updateApiKeyPublicKey: ({ merchantId, apiKeyId, ...query }: UpdateApiKeyPublicKeyParams, data: UpdateMerchantApiKeyPublicKeyBodyDto, params?: RequestParams) => Promise<UpdateMerchantApiKeyPublicKeyResponseDto>;
|
|
10003
11149
|
};
|
|
10004
11150
|
wallets: {
|
|
10005
11151
|
/**
|
|
@@ -10131,7 +11277,7 @@ export declare class Api<SecurityDataType extends unknown> {
|
|
|
10131
11277
|
* @request PUT:/api/v1/wallets/asset/update
|
|
10132
11278
|
* @secure
|
|
10133
11279
|
*/
|
|
10134
|
-
updateUserAsset: (query: UpdateUserAssetParams, data: UpdateUserAssetRequestDto, params?: RequestParams) => Promise<
|
|
11280
|
+
updateUserAsset: (query: UpdateUserAssetParams, data: UpdateUserAssetRequestDto, params?: RequestParams) => Promise<UpdateUserAssetResponseDto>;
|
|
10135
11281
|
/**
|
|
10136
11282
|
* No description
|
|
10137
11283
|
*
|
|
@@ -10193,7 +11339,7 @@ export declare class Api<SecurityDataType extends unknown> {
|
|
|
10193
11339
|
* @request POST:/api/v1/wallets/execute-swap
|
|
10194
11340
|
* @secure
|
|
10195
11341
|
*/
|
|
10196
|
-
executeSwap: (data: ExecuteSwapRequestDto, params?: RequestParams) => Promise<
|
|
11342
|
+
executeSwap: (data: ExecuteSwapRequestDto, params?: RequestParams) => Promise<ExecuteSwapResponseDto>;
|
|
10197
11343
|
};
|
|
10198
11344
|
transactions: {
|
|
10199
11345
|
/**
|
|
@@ -10337,7 +11483,7 @@ export declare class Api<SecurityDataType extends unknown> {
|
|
|
10337
11483
|
* @request GET:/api/v1/transactions/check-asset-optin
|
|
10338
11484
|
* @secure
|
|
10339
11485
|
*/
|
|
10340
|
-
checkAssetOptinForAddress: (query: CheckAssetOptinForAddressParams, params?: RequestParams) => Promise<
|
|
11486
|
+
checkAssetOptinForAddress: (query: CheckAssetOptinForAddressParams, params?: RequestParams) => Promise<CheckAssetOptinForAddressData>;
|
|
10341
11487
|
/**
|
|
10342
11488
|
* No description
|
|
10343
11489
|
*
|
|
@@ -10347,7 +11493,7 @@ export declare class Api<SecurityDataType extends unknown> {
|
|
|
10347
11493
|
* @request GET:/api/v1/transactions/check-app-optin
|
|
10348
11494
|
* @secure
|
|
10349
11495
|
*/
|
|
10350
|
-
checkAppOptinForAddress: (query: CheckAppOptinForAddressParams, params?: RequestParams) => Promise<
|
|
11496
|
+
checkAppOptinForAddress: (query: CheckAppOptinForAddressParams, params?: RequestParams) => Promise<CheckAppOptinForAddressData>;
|
|
10351
11497
|
/**
|
|
10352
11498
|
* No description
|
|
10353
11499
|
*
|
|
@@ -10533,7 +11679,7 @@ export declare class Api<SecurityDataType extends unknown> {
|
|
|
10533
11679
|
* @request POST:/api/v1/users/assets/add
|
|
10534
11680
|
* @secure
|
|
10535
11681
|
*/
|
|
10536
|
-
addAssetToUser: (data: AddUserAssetDto, params?: RequestParams) => Promise<
|
|
11682
|
+
addAssetToUser: (data: AddUserAssetDto, params?: RequestParams) => Promise<AddUserAssetResponseDto>;
|
|
10537
11683
|
/**
|
|
10538
11684
|
* No description
|
|
10539
11685
|
*
|
|
@@ -10693,23 +11839,23 @@ export declare class Api<SecurityDataType extends unknown> {
|
|
|
10693
11839
|
*
|
|
10694
11840
|
* @tags Dashboard
|
|
10695
11841
|
* @name GetDashboardData
|
|
10696
|
-
* @summary
|
|
11842
|
+
* @summary Get dashboard data. This endpoint is only available for super admin, merchant admin and merchant user
|
|
10697
11843
|
* @request GET:/api/v1/dashboard
|
|
10698
11844
|
* @secure
|
|
10699
11845
|
*/
|
|
10700
|
-
getDashboardData: (params?: RequestParams) => Promise<
|
|
11846
|
+
getDashboardData: (params?: RequestParams) => Promise<GetDashboardDataDto>;
|
|
10701
11847
|
};
|
|
10702
11848
|
userActivity: {
|
|
10703
11849
|
/**
|
|
10704
11850
|
* No description
|
|
10705
11851
|
*
|
|
10706
11852
|
* @tags UserActivity
|
|
10707
|
-
* @name
|
|
10708
|
-
* @summary Get all activities. This endpoint is only available for super admin and
|
|
11853
|
+
* @name GetActivities
|
|
11854
|
+
* @summary Get all activities. This endpoint is only available for super admin and merchant admin
|
|
10709
11855
|
* @request GET:/api/v1/users-activities
|
|
10710
11856
|
* @secure
|
|
10711
11857
|
*/
|
|
10712
|
-
|
|
11858
|
+
getActivities: (query: GetActivitiesParams, params?: RequestParams) => Promise<GetActivitiesResponseDto>;
|
|
10713
11859
|
};
|
|
10714
11860
|
}
|
|
10715
11861
|
export {};
|