wallaby-cash 3.7.0 → 3.9.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.
@@ -1,4 +1,4 @@
1
- export type AddAssetToUserData = GetUserAssetsByUserIdResponseDto;
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
- * @minLength 5
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
- apiKeyOrigin: ApiKeyOrigin;
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 AddMerchantWalletAssetsError = AddMerchantWalletAssetsResponseDto;
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: string;
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?: AssetConfig;
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: string[];
548
+ txLogs: AdminTransactionTxLog[] | null;
518
549
  /** The decoded logs of the transaction */
519
- txLogsDecoded: string[];
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
- args: object;
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: number;
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: EncryptedDataInterface;
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: EncryptedDataInterface[];
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: Merchant;
677
- /** Merchant ID */
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: 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
- createdByMerchant: Merchant;
893
+ /** The merchant who created the asset */
894
+ createdByMerchant?: AssetConfigMerchantDto;
769
895
  /** The merchant id who created the asset */
770
- createdByMerchantId?: string;
771
- createdByUser: User;
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: SwapProviderAsset[];
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: TokenDistribution[];
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: "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";
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: "webauthn.create" | "webauthn.get";
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: object;
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: object;
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
@@ -1051,7 +1264,7 @@ export interface AuthSignatureMessageResponseDto {
1051
1264
  * @pattern ^(0x)?[0-9a-fA-F]+$
1052
1265
  * @example "4ecb720b1392468c75803d6252ac987c113206955070b96df1208c1c480338168e1407cec4b5af2f91d12af9b725cbd85af994b29c6364971a7ef8d955be83dc"
1053
1266
  */
1054
- wallabyAuthPubKey: string;
1267
+ wallabyAuthPubKey?: string;
1055
1268
  }
1056
1269
  export interface AuthUserResponseDto {
1057
1270
  /**
@@ -1068,7 +1281,7 @@ export interface AuthUserResponseDto {
1068
1281
  * @maxLength 256
1069
1282
  * @pattern ^[a-zA-Z0-9]+$
1070
1283
  */
1071
- clientSalt: string;
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: string;
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: "super_admin" | "merchant_admin" | "merchant_user" | "wallet_user" | "contract_admin" | "reserve_admin" | "wallets_admin" | "transfer_admin" | "soft_burn_admin" | "mint_admin" | "automation_admin";
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
- /** The last time the balance was updated */
1185
- balanceUpdatedAt: object;
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: string | null;
1497
+ addressRegex?: string | null;
1297
1498
  /**
1298
1499
  * Chain ID
1299
1500
  * @example 1
1300
1501
  */
1301
- chainId: string;
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: string | null;
1513
+ derivationPath?: string | null;
1307
1514
  /** Icon URL */
1308
- iconUrl: string;
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: string;
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: string;
1532
+ mainnetExplorerUrl?: string;
1324
1533
  /** Mainnet ID */
1325
- mainnetId: string;
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: string;
1544
+ search?: string;
1330
1545
  /**
1331
1546
  * Signature scheme for key derivation (secp256k1, ed25519, sr25519)
1332
1547
  * @example "secp256k1"
1333
1548
  */
1334
- signatureScheme: "secp256k1" | "ed25519" | "sr25519";
1549
+ signatureScheme?: "secp256k1" | "ed25519" | "sr25519";
1335
1550
  /**
1336
1551
  * Status
1337
1552
  * @example "UP"
1338
1553
  */
1339
- status: "UP" | "DOWN";
1554
+ status?: "UP" | "DOWN";
1340
1555
  /**
1341
1556
  * Whether this chain supports swap functionality
1342
1557
  * @example false
1343
1558
  */
1344
- supportsSwaps: boolean;
1559
+ supportsSwaps?: boolean;
1345
1560
  /** Swap chain provider mappings */
1346
- swapChainMappings: SwapChainProviderMapping[];
1561
+ swapChainMappings?: SwapChainProviderMapping[];
1347
1562
  /** Testnet Explorer URL */
1348
- testnetExplorerUrl: string | null;
1349
- walletAddresses: WalletAddress[];
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: "BITCOIN" | "ETHEREUM" | "ALGORAND" | "AVALANCHE" | "POLYGON" | "BASE" | "BSC" | "SUI" | "INJECTIVE" | "SEI" | "APTOS" | "SOLANA" | "POLYMESH" | "HEDERA" | "CANTON";
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
- * @format uuid
1598
- * @minLength 36
1599
- * @maxLength 36
1600
- * @pattern ^[a-zA-Z0-9 ]+$
1601
- * @example "180b0a0f-6935-4047-a32d-b2a4d50acfc9"
1846
+ * @minLength 128
1847
+ * @maxLength 256
1848
+ * @example "-----BEGIN PUBLIC KEY-----
1849
+ * MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQ...
1850
+ * -----END PUBLIC KEY-----"
1602
1851
  */
1603
- appName: string;
1852
+ clientJWTPubKey?: string;
1604
1853
  /**
1605
- * @format uuid
1606
- * @minLength 36
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
- merchantId: string;
1857
+ wrappingPublicKey?: string;
1612
1858
  }
1613
1859
  export interface CreateMerchantApiKeyResponseDto {
1614
- apiKey: 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: string;
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: string;
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 = any;
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: EncryptedDataInterface;
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: EncryptedDataInterface[];
2170
+ encryptedShares?: EncryptedDataInterface[];
1926
2171
  /**
1927
2172
  * Message retrieved from the backend
1928
2173
  * @example "717ea458b62a430cb37ced7c22ebec97"
@@ -1950,21 +2195,43 @@ export interface ExecuteSwapRequestDto {
1950
2195
  */
1951
2196
  walletId: string;
1952
2197
  }
1953
- export interface FeeEstimatesResponseDto {
2198
+ export interface ExecuteSwapResponseDto {
1954
2199
  /**
1955
- * The fee value
1956
- * @minLength 1
1957
- * @maxLength 100
1958
- * @pattern ^-?\d*\.?\d+$
1959
- * @example 0.000121
2200
+ * The link to view the transaction on the blockchain explorer
2201
+ * @example "provider.scan/txn_abc123"
1960
2202
  */
1961
- fee: string;
2203
+ explorerLink: string;
1962
2204
  /**
1963
- * Asset symbol in which the fee is paid in
1964
- * @minLength 1
1965
- * @maxLength 100
1966
- * @pattern ^[a-zA-Z0-9-]+$
1967
- * @example "ETH"
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
+ }
2220
+ export interface FeeEstimatesResponseDto {
2221
+ /**
2222
+ * The fee value
2223
+ * @minLength 1
2224
+ * @maxLength 100
2225
+ * @pattern ^-?\d*\.?\d+$
2226
+ * @example 0.000121
2227
+ */
2228
+ fee: string;
2229
+ /**
2230
+ * Asset symbol in which the fee is paid in
2231
+ * @minLength 1
2232
+ * @maxLength 100
2233
+ * @pattern ^[a-zA-Z0-9-]+$
2234
+ * @example "ETH"
1968
2235
  */
1969
2236
  feePaymentSymbol: string;
1970
2237
  /**
@@ -2178,19 +2445,19 @@ export interface GenerateMissingAddressRequestDto {
2178
2445
  * @deprecated
2179
2446
  * @example "CANTON"
2180
2447
  */
2181
- chainName: "BITCOIN" | "ETHEREUM" | "ALGORAND" | "AVALANCHE" | "POLYGON" | "BASE" | "BSC" | "SUI" | "INJECTIVE" | "SEI" | "APTOS" | "SOLANA" | "POLYMESH" | "HEDERA" | "CANTON";
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: EncryptedDataInterface;
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: EncryptedDataInterface[];
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
- * Array of encrypted shares which will be utilized to reconstruct the seed to generate the missing addresses
2476
+ * Wallet addresses (with their type) that were generated or already existed for the wallet
2210
2477
  * @maxItems 100
2211
2478
  */
2212
- walletAddresses: WalletAddress[];
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 GetActivitieesError = GetActivitiesResponseDto;
2219
- export interface GetActivitieesParams {
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 = GetMerchantUsersResponseDto;
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?: string;
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
- * Grouped User assets, will be returned if groupBy query param is provided
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 list */
3362
- groupedAssets: string[];
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: string;
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
- * The wallet ID associated with the wallet, it can be undefined for new wallets
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: string;
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 type InviteMerchantAdminsData = GetMerchantUsersResponseDto;
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
- /** Key creation time */
3677
- createdAt: object;
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
- /** Key update time */
3696
- updatedAt: object;
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
- /** @format date-time */
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
- /** @format date-time */
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: any[][];
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
- /** Creation timestamp of the record */
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
- /** Creation timestamp of the record */
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: EncryptedDataInterface;
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: EncryptedDataInterface[];
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 type RevokeMerchantAdminsData = GetMerchantUsersResponseDto;
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?: object;
4193
- /** Passkey registration challenge response */
4194
- passkeyRegistrationResponse?: object;
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: object;
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,27 +4789,55 @@ export interface SignupRequestDto {
4278
4789
  * @example "717ea458b62a430cb37ced7c22ebec97"
4279
4790
  */
4280
4791
  message: string;
4281
- /** Passkey challenge response */
4282
- passkeyRegistrationResponse: object;
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
  }
4289
- export interface SwapChainProviderMapping {
4290
- /** Associated chain */
4291
- chain: Chain;
4292
- /**
4293
- * Chain ID
4294
- * @example "b1d4b3b0-1b1b-4b3b-8b1b-1b1b4b3b8b1b"
4295
- */
4296
- chainId: string;
4800
+ export interface SuiConfig {
4801
+ /** The coin type associated with this Sui config for move tokens */
4802
+ coinType: string;
4297
4803
  /**
4298
- * Creation timestamp
4804
+ * The object type associated with this Sui config
4299
4805
  * @format date-time
4300
4806
  */
4301
- createdAt: string;
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
+ }
4828
+ export interface SwapChainProviderMapping {
4829
+ /** Associated chain */
4830
+ chain: Chain;
4831
+ /**
4832
+ * Chain ID
4833
+ * @example "b1d4b3b0-1b1b-4b3b-8b1b-1b1b4b3b8b1b"
4834
+ */
4835
+ chainId: string;
4836
+ /**
4837
+ * Creation timestamp
4838
+ * @format date-time
4839
+ */
4840
+ createdAt: string;
4302
4841
  /**
4303
4842
  * Chain Provider Mapping ID
4304
4843
  * @example "b1d4b3b0-1b1b-4b3b-8b1b-1b1b4b3b8b1b"
@@ -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: string;
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: string;
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
- /** The API caller, internal or external for third party uses */
4673
- status: string;
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 API caller, internal or external for third party uses */
4693
- transactionFailedReason: string;
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: string;
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: string;
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
- /** The API caller, internal or external for third party uses */
4770
- status: string;
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 API caller, internal or external for third party uses */
4790
- transactionFailedReason: string;
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: number;
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: string;
5446
+ memo?: string;
4856
5447
  /**
4857
5448
  * Transaction nonce
4858
5449
  * @example 11
4859
5450
  */
4860
- nonce: number;
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: UTXOFundsMove[];
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: UTXOFundsMove[];
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: number;
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: number;
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 = GetChainsResponseDto;
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 = UserAssetDto;
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: string;
5948
+ assetName?: string;
5290
5949
  /**
5291
5950
  * Asset symbol
5292
5951
  * @example "ETH"
5293
5952
  */
5294
- assetSymbol: string;
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: boolean;
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,115 @@ export interface User {
5412
6091
  walletsCount: number;
5413
6092
  }
5414
6093
  export interface UserActivity {
5415
- action?: string;
5416
- /** Wallet ID */
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
- /** Wallet user ID */
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
- /** Addresses */
5429
- addresses: string[];
6132
+ /**
6133
+ * Deprecated, do not rely on this. Use the wallet_address or defaultAddress instead.
6134
+ * @deprecated
6135
+ */
6136
+ addresses: UserAssetAddress[];
5430
6137
  /** Asset Name */
5431
6138
  assetName: string;
5432
6139
  /** Asset Symbol */
5433
6140
  assetSymbol: string;
5434
6141
  /** Asset Persisted Balance */
5435
- balance: string;
5436
- /** Asset Persisted Balance */
5437
- balanceUpdatedAt: object;
6142
+ balance: string | null;
6143
+ /**
6144
+ * Asset Persisted Balance Updated At
6145
+ * @format date-time
6146
+ * @example "2024-01-20T14:45:00.000Z"
6147
+ */
6148
+ balanceUpdatedAt: string | null;
5438
6149
  /** Chain ID */
5439
6150
  chainId: string;
5440
6151
  /** Asset Persisted Claimable Balance */
5441
- claimableBalance: string;
5442
- /** Asset Persisted Claimable Balance Updated At */
5443
- claimableBalanceUpdatedAt: object;
6152
+ claimableBalance?: string | null;
6153
+ /**
6154
+ * Asset Persisted Claimable Balance Updated At
6155
+ * @format date-time
6156
+ * @example "2024-01-20T14:45:00.000Z"
6157
+ */
6158
+ claimableBalanceUpdatedAt?: string | null;
5444
6159
  /** Asset Payment Token Config ID */
5445
- claimablePaymentTokenAssetConfigId: string;
6160
+ claimablePaymentTokenAssetConfigId?: string | null;
5446
6161
  /** Asset Payment Token Contract Address */
5447
- claimablePaymentTokenContractAddress: string;
6162
+ claimablePaymentTokenContractAddress?: string | null;
5448
6163
  /** Asset ID */
5449
6164
  configId: string;
6165
+ /**
6166
+ * Created at
6167
+ * @format date-time
6168
+ * @example "2024-01-20T14:45:00.000Z"
6169
+ */
6170
+ createdAt: string;
5450
6171
  /** Asset Default Address */
5451
6172
  defaultAddress: string;
6173
+ /** User asset ID */
6174
+ id: string;
5452
6175
  /** Asset Visibility */
5453
6176
  isVisible: boolean;
5454
6177
  /** Asset Persisted Locked Balance */
5455
- lockedTokenBalance: string;
5456
- /** Asset Persisted Balance Updated At */
5457
- lockedTokenBalanceUpdatedAt: object;
6178
+ lockedTokenBalance: string | null;
6179
+ /**
6180
+ * Asset Persisted Locked Balance Updated At
6181
+ * @format date-time
6182
+ * @example "2024-01-20T14:45:00.000Z"
6183
+ */
6184
+ lockedTokenBalanceUpdatedAt: string | null;
5458
6185
  /** Asset Persisted Mainnet Balance */
5459
- mainnetBalance: string;
5460
- /** Asset Persisted Mainnet Balance Updated At */
5461
- mainnetBalanceUpdatedAt: object;
6186
+ mainnetBalance: string | null;
6187
+ /**
6188
+ * Asset Persisted Mainnet Balance Updated At
6189
+ * @format date-time
6190
+ * @example "2024-01-20T14:45:00.000Z"
6191
+ */
6192
+ mainnetBalanceUpdatedAt: string | null;
5462
6193
  /** Asset Persisted Mainnet Locked Balance */
5463
- mainnetLockedBalance: string;
5464
- /** Asset Persisted Mainnet Locked Balance Updated At */
5465
- mainnetLockedBalanceUpdatedAt: object;
6194
+ mainnetLockedBalance: string | null;
6195
+ /**
6196
+ * Asset Persisted Mainnet Locked Balance Updated At
6197
+ * @format date-time
6198
+ * @example "2024-01-20T14:45:00.000Z"
6199
+ */
6200
+ mainnetLockedBalanceUpdatedAt: string | null;
6201
+ /** Merchant public data */
6202
+ merchant: UserAssetMerchantDto;
5466
6203
  /** Merchant ID */
5467
6204
  merchantId: string;
5468
6205
  /** The field differentiate multisig transaction */
@@ -5472,13 +6209,27 @@ export interface UserAsset {
5472
6209
  /** Asset Import Source */
5473
6210
  source: "merchant" | "user" | "republic";
5474
6211
  /** Asset Persisted Testnet Balance */
5475
- testnetBalance: string;
5476
- /** Asset Persisted Testnet Locked Balance Updated At */
5477
- testnetBalanceUpdatedAt: object;
6212
+ testnetBalance: string | null;
6213
+ /**
6214
+ * Asset Persisted Testnet Balance Updated At
6215
+ * @format date-time
6216
+ * @example "2024-01-20T14:45:00.000Z"
6217
+ */
6218
+ testnetBalanceUpdatedAt: string | null;
5478
6219
  /** Asset Persisted Testnet Locked Balance */
5479
- testnetLockedBalance: string;
5480
- /** Asset Persisted Testnet Locked Balance Updated At */
5481
- testnetLockedBalanceUpdatedAt: object;
6220
+ testnetLockedBalance: string | null;
6221
+ /**
6222
+ * Asset Persisted Testnet Locked Balance Updated At
6223
+ * @format date-time
6224
+ * @example "2024-01-20T14:45:00.000Z"
6225
+ */
6226
+ testnetLockedBalanceUpdatedAt: string | null;
6227
+ /**
6228
+ * Updated at
6229
+ * @format date-time
6230
+ * @example "2024-01-20T14:45:00.000Z"
6231
+ */
6232
+ updatedAt: string;
5482
6233
  /** User asset address */
5483
6234
  userAssetAddress: string;
5484
6235
  /** Wallet user ID */
@@ -5486,48 +6237,89 @@ export interface UserAsset {
5486
6237
  /** Wallet ID */
5487
6238
  walletId: string;
5488
6239
  }
6240
+ export interface UserAssetAddress {
6241
+ /** Address */
6242
+ address: string;
6243
+ /** Public key used to derive the address */
6244
+ publicKey?: string;
6245
+ /** @example "SEGWIT" */
6246
+ type?: "SEGWIT" | "LEGACY" | "DEFAULT";
6247
+ }
5489
6248
  export interface UserAssetDto {
5490
6249
  /** The percentage change in the price of the asset in the last 24 hours */
5491
6250
  changePercentageLast24h?: string;
5492
- /** Addresses */
5493
- addresses: string[];
6251
+ /**
6252
+ * Deprecated, do not rely on this. Use the wallet_address or defaultAddress instead.
6253
+ * @deprecated
6254
+ */
6255
+ addresses: UserAssetAddress[];
5494
6256
  /** Asset Name */
5495
6257
  assetName: string;
5496
6258
  /** Asset Symbol */
5497
6259
  assetSymbol: string;
5498
6260
  /** Asset Persisted Balance */
5499
- balance: string;
5500
- /** Asset Persisted Balance */
5501
- balanceUpdatedAt: object;
6261
+ balance: string | null;
6262
+ /**
6263
+ * Asset Persisted Balance Updated At
6264
+ * @format date-time
6265
+ * @example "2024-01-20T14:45:00.000Z"
6266
+ */
6267
+ balanceUpdatedAt: string | null;
5502
6268
  /** Chain ID */
5503
6269
  chainId: string;
5504
6270
  /** Asset Persisted Claimable Balance */
5505
- claimableBalance: string;
5506
- /** Asset Persisted Claimable Balance Updated At */
5507
- claimableBalanceUpdatedAt: object;
6271
+ claimableBalance?: string | null;
6272
+ /**
6273
+ * Asset Persisted Claimable Balance Updated At
6274
+ * @format date-time
6275
+ * @example "2024-01-20T14:45:00.000Z"
6276
+ */
6277
+ claimableBalanceUpdatedAt?: string | null;
5508
6278
  /** Asset Payment Token Config ID */
5509
- claimablePaymentTokenAssetConfigId: string;
6279
+ claimablePaymentTokenAssetConfigId?: string | null;
5510
6280
  /** Asset Payment Token Contract Address */
5511
- claimablePaymentTokenContractAddress: string;
6281
+ claimablePaymentTokenContractAddress?: string | null;
5512
6282
  config: AssetConfig;
5513
6283
  /** Asset ID */
5514
6284
  configId: string;
6285
+ /**
6286
+ * Created at
6287
+ * @format date-time
6288
+ * @example "2024-01-20T14:45:00.000Z"
6289
+ */
6290
+ createdAt: string;
5515
6291
  /** Asset Default Address */
5516
6292
  defaultAddress: string;
6293
+ /** User asset ID */
6294
+ id: string;
5517
6295
  /** Asset Visibility */
5518
6296
  isVisible: boolean;
5519
6297
  /** Asset Persisted Locked Balance */
5520
- lockedTokenBalance: string;
5521
- /** Asset Persisted Balance Updated At */
5522
- lockedTokenBalanceUpdatedAt: object;
6298
+ lockedTokenBalance: string | null;
6299
+ /**
6300
+ * Asset Persisted Locked Balance Updated At
6301
+ * @format date-time
6302
+ * @example "2024-01-20T14:45:00.000Z"
6303
+ */
6304
+ lockedTokenBalanceUpdatedAt: string | null;
5523
6305
  /** Asset Persisted Mainnet Balance */
5524
- mainnetBalance: string;
5525
- /** Asset Persisted Mainnet Balance Updated At */
5526
- mainnetBalanceUpdatedAt: object;
6306
+ mainnetBalance: string | null;
6307
+ /**
6308
+ * Asset Persisted Mainnet Balance Updated At
6309
+ * @format date-time
6310
+ * @example "2024-01-20T14:45:00.000Z"
6311
+ */
6312
+ mainnetBalanceUpdatedAt: string | null;
5527
6313
  /** Asset Persisted Mainnet Locked Balance */
5528
- mainnetLockedBalance: string;
5529
- /** Asset Persisted Mainnet Locked Balance Updated At */
5530
- mainnetLockedBalanceUpdatedAt: object;
6314
+ mainnetLockedBalance: string | null;
6315
+ /**
6316
+ * Asset Persisted Mainnet Locked Balance Updated At
6317
+ * @format date-time
6318
+ * @example "2024-01-20T14:45:00.000Z"
6319
+ */
6320
+ mainnetLockedBalanceUpdatedAt: string | null;
6321
+ /** Merchant public data */
6322
+ merchant: UserAssetMerchantDto;
5531
6323
  /** Merchant ID */
5532
6324
  merchantId: string;
5533
6325
  /** The field differentiate multisig transaction */
@@ -5537,13 +6329,27 @@ export interface UserAssetDto {
5537
6329
  /** Asset Import Source */
5538
6330
  source: "merchant" | "user" | "republic";
5539
6331
  /** Asset Persisted Testnet Balance */
5540
- testnetBalance: string;
5541
- /** Asset Persisted Testnet Locked Balance Updated At */
5542
- testnetBalanceUpdatedAt: object;
6332
+ testnetBalance: string | null;
6333
+ /**
6334
+ * Asset Persisted Testnet Balance Updated At
6335
+ * @format date-time
6336
+ * @example "2024-01-20T14:45:00.000Z"
6337
+ */
6338
+ testnetBalanceUpdatedAt: string | null;
5543
6339
  /** Asset Persisted Testnet Locked Balance */
5544
- testnetLockedBalance: string;
5545
- /** Asset Persisted Testnet Locked Balance Updated At */
5546
- testnetLockedBalanceUpdatedAt: object;
6340
+ testnetLockedBalance: string | null;
6341
+ /**
6342
+ * Asset Persisted Testnet Locked Balance Updated At
6343
+ * @format date-time
6344
+ * @example "2024-01-20T14:45:00.000Z"
6345
+ */
6346
+ testnetLockedBalanceUpdatedAt: string | null;
6347
+ /**
6348
+ * Updated at
6349
+ * @format date-time
6350
+ * @example "2024-01-20T14:45:00.000Z"
6351
+ */
6352
+ updatedAt: string;
5547
6353
  /** User asset address */
5548
6354
  userAssetAddress: string;
5549
6355
  /** Wallet user ID */
@@ -5551,7 +6357,30 @@ export interface UserAssetDto {
5551
6357
  /** Wallet ID */
5552
6358
  walletId: string;
5553
6359
  }
6360
+ export interface UserAssetMerchantDto {
6361
+ /** Merchant ID */
6362
+ id: string;
6363
+ /** Merchant name */
6364
+ name: string;
6365
+ /** Merchant name slug */
6366
+ nameSlugify: string;
6367
+ /** Merchant status */
6368
+ status: "active" | "inactive" | "invalidated";
6369
+ /** Whether the merchant is verified */
6370
+ verified: boolean;
6371
+ }
5554
6372
  export interface UserDto {
6373
+ /**
6374
+ * Created at
6375
+ * @format date-time
6376
+ * @example "2024-01-20T14:45:00.000Z"
6377
+ */
6378
+ createdAt: string;
6379
+ /**
6380
+ * User email address
6381
+ * @example "john@example.com"
6382
+ */
6383
+ email?: string;
5555
6384
  /**
5556
6385
  * External User ID for Reference
5557
6386
  * @example "6e464058-67c1-4273-a6a4-8aae522e34be"
@@ -5561,19 +6390,9 @@ export interface UserDto {
5561
6390
  * User first name
5562
6391
  * @example "Bryan"
5563
6392
  */
5564
- firstName: string;
6393
+ firstName?: string;
5565
6394
  /** User primary key */
5566
6395
  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
6396
  /**
5578
6397
  * Merchant ID
5579
6398
  * @example "6e464058-67c1-4273-a6a4-8aae522e34be"
@@ -5583,9 +6402,15 @@ export interface UserDto {
5583
6402
  * User's Polymesh identity
5584
6403
  * @example "0x73ecca5cf1ecaa365a7d1f1e5dbc91737c73fe0a96b41386f574dfb915a913a7"
5585
6404
  */
5586
- polymeshDID: string;
6405
+ polymeshDID?: string;
5587
6406
  /** @example "wallet_user" */
5588
- role: "super_admin" | "merchant_admin" | "merchant_user" | "wallet_user" | "contract_admin" | "reserve_admin" | "wallets_admin" | "transfer_admin" | "soft_burn_admin" | "mint_admin" | "automation_admin";
6407
+ role?: "super_admin" | "merchant_admin" | "merchant_user" | "wallet_user" | "contract_admin" | "reserve_admin" | "wallets_admin" | "transfer_admin" | "soft_burn_admin" | "mint_admin" | "automation_admin";
6408
+ /**
6409
+ * Updated at
6410
+ * @format date-time
6411
+ * @example "2024-01-20T14:45:00.000Z"
6412
+ */
6413
+ updatedAt: string;
5589
6414
  /**
5590
6415
  * User's wallets count
5591
6416
  * @example 1
@@ -5610,10 +6435,10 @@ export interface UserWalletsResponseDto {
5610
6435
  }
5611
6436
  export interface V2TransferRequestDto {
5612
6437
  /**
5613
- * Transfer amount
5614
- * @example 100
6438
+ * Transfer amount in human-readable units (decimal string, e.g. "1.5"). Sent as a string to preserve precision.
6439
+ * @example "100"
5615
6440
  */
5616
- amount: number;
6441
+ amount: string;
5617
6442
  /**
5618
6443
  * Asset Wallaby UUID
5619
6444
  * @format uuid
@@ -5625,11 +6450,6 @@ export interface V2TransferRequestDto {
5625
6450
  assetId: string;
5626
6451
  /** @example "e3421d7f9d6888ea83bef6b28ce0a2ab6eb6fe8a8fbfa3743240992590816b08f9a62edcc63296d056c552054d583fec36d23ef11dffb24c95aaf4a47d50dccc" */
5627
6452
  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
6453
  /**
5634
6454
  * Array of encrypted shares which will be utilized to reconstruct seed and sign
5635
6455
  * @maxItems 100
@@ -5838,6 +6658,12 @@ export interface WallabyAuthPubKeyResponseDto {
5838
6658
  export interface Wallet {
5839
6659
  /** Total number of assets in the wallet */
5840
6660
  assetsCount: number;
6661
+ /**
6662
+ * Created at
6663
+ * @format date-time
6664
+ * @example "2024-01-20T14:45:00.000Z"
6665
+ */
6666
+ createdAt: string;
5841
6667
  /**
5842
6668
  * How the wallet was created
5843
6669
  * @example "user_created"
@@ -5857,27 +6683,67 @@ export interface Wallet {
5857
6683
  * @example "not_required"
5858
6684
  */
5859
6685
  keyMigrationStatus: "not_required" | "pending" | "migrated" | "failed";
5860
- keyShares: KeyShare;
6686
+ keyShares: KeyShare[];
6687
+ /**
6688
+ * When wallet access was last verified
6689
+ * @format date-time
6690
+ * @example "2024-01-20T14:45:00.000Z"
6691
+ */
6692
+ lastVerifiedAt: string | null;
5861
6693
  merchant: Merchant;
5862
6694
  /** Merchant ID */
5863
6695
  merchantId: string;
5864
6696
  /** Reason this wallet failed key migration, when keyMigrationStatus = failed */
5865
6697
  migrationErrorMessage?: string | null;
6698
+ /** Number of times the wallet has been recovered */
6699
+ recoveryCount: number;
5866
6700
  /** Wallet revision number */
5867
6701
  revisionId: string;
5868
6702
  /** Wallet revision name */
5869
6703
  revisionName: string;
5870
6704
  type: WalletType;
5871
- userAssets: UserAsset;
6705
+ /**
6706
+ * Updated at
6707
+ * @format date-time
6708
+ * @example "2024-01-20T14:45:00.000Z"
6709
+ */
6710
+ updatedAt: string;
6711
+ userAssets: UserAsset[];
5872
6712
  /** Wallet user ID */
5873
6713
  userId: string;
5874
- walletAddresses: WalletAddress;
5875
- walletKeks: WalletKek;
6714
+ walletAddresses: WalletAddress[];
6715
+ walletKeks: WalletKek[];
6716
+ }
6717
+ export interface WalletAddress {
6718
+ /** Wallet Address */
6719
+ address: string;
6720
+ chain: Chain;
6721
+ /**
6722
+ * Created at
6723
+ * @format date-time
6724
+ * @example "2024-01-20T14:45:00.000Z"
6725
+ */
6726
+ createdAt: string;
6727
+ /** Wallet Address ID */
6728
+ id: string;
6729
+ /** Public Key */
6730
+ publicKey: string;
6731
+ type: WalletAddressType;
6732
+ /** Type ID */
6733
+ typeId: number;
6734
+ /**
6735
+ * Updated at
6736
+ * @format date-time
6737
+ * @example "2024-01-20T14:45:00.000Z"
6738
+ */
6739
+ updatedAt: string;
6740
+ wallet: Wallet;
6741
+ /** Wallet ID */
6742
+ walletId: string;
5876
6743
  }
5877
- export interface WalletAddress {
6744
+ export interface WalletAddressResponseDto {
5878
6745
  /** Wallet Address */
5879
6746
  address: string;
5880
- chain: Chain;
5881
6747
  /** Wallet Address ID */
5882
6748
  id: string;
5883
6749
  /** Public Key */
@@ -5885,7 +6751,6 @@ export interface WalletAddress {
5885
6751
  type: WalletAddressType;
5886
6752
  /** Type ID */
5887
6753
  typeId: number;
5888
- wallet: Wallet;
5889
6754
  /** Wallet ID */
5890
6755
  walletId: string;
5891
6756
  }
@@ -5940,11 +6805,8 @@ export interface WalletCompleteRecoveryCodeDto {
5940
6805
  walletId?: string;
5941
6806
  }
5942
6807
  export interface WalletCompleteRecoveryCodeResponseDto {
5943
- /**
5944
- * Wallaby user
5945
- * @example {"userId":"a4dedb83-4d59-41ca-84b5-4b24a98878d8","externalUserId":"de86cbd2-aef6-45b1-9f9e-f75013a13381"}
5946
- */
5947
- user: object;
6808
+ /** Wallaby user */
6809
+ user: WalletRecoveryUserDto;
5948
6810
  /** Recovered wallet */
5949
6811
  wallet: Wallet;
5950
6812
  }
@@ -5957,8 +6819,8 @@ export interface WalletCreatedDto {
5957
6819
  /** Backup share encrypted symmetrically with a random KEK. Present when wallabyKeepsOne=true and totalShares>=3. */
5958
6820
  encryptedBackupShare?: SymmetricEncryptedDto;
5959
6821
  /** Encrypted seed phrase. For standard wallets: ECIES-encrypted with the clientAuthPubKey. For admin wallets: AES-GCM encrypted blob (opaque to the caller). */
5960
- encryptedSeed: EncryptedDataInterface | SymmetricEncryptedDto;
5961
- encryptedSeedForSharesSplit: EncryptedDataInterface;
6822
+ encryptedSeed?: EncryptedDataInterface | SymmetricEncryptedDto;
6823
+ encryptedSeedForSharesSplit?: EncryptedDataInterface;
5962
6824
  /**
5963
6825
  * Split request reference, unique value to uniquely reference a split operation
5964
6826
  * @example "a4dedb83-4d59-41ca-84b5-4b24a98878d8"
@@ -5968,9 +6830,9 @@ export interface WalletCreatedDto {
5968
6830
  * 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
6831
  * @maxItems 100
5970
6832
  * @default []
5971
- * @example [{"iv":"b7b643ebccf35c262aa2d5c2729c5f3d","ephemPublicKey":"040cff71ed16f1105c45c2214c9e72d3eabde48efe3759c6f150352b19aa8054c302dc1fd8b4f3927bd7d74ae0186854b3a13de7673be4f8424a6ba3702c239729","ciphertext":"736bc1881a02fa08df4a3f1e35d426660e3c35471facba2866e960f8a19b783bac30d037b07dc9e6406e258d09a4a7e4a7cf58d20cf7b8b7201db0f80849a48d20389039e3fc196f42796fe6d501f47afb030f9946ecbc148d8da1e46c3793a4","mac":"b6cbbdbbc3a311d919340fc3ec9ee1911d9ead6d989efa73e0ac3303c51a353e"},{"iv":"b7b643ebccf35c262aa2d5c2729c5f3d","ephemPublicKey":"040cff71ed16f1105c45c2214c9e72d3eabde48efe3759c6f150352b19aa8054c302dc1fd8b4f3927bd7d74ae0186854b3a13de7673be4f8424a6ba3702c239729","ciphertext":"736bc1881a02fa08df4a3f1e35d426660e3c35471facba2866e960f8a19b783bac30d037b07dc9e6406e258d09a4a7e4a7cf58d20cf7b8b7201db0f80849a48d20389039e3fc196f42796fe6d501f47afb030f9946ecbc148d8da1e46c3793a4","mac":"b6cbbdbbc3a311d919340fc3ec9ee1911d9ead6d989efa73e0ac3303c51a353e"}]
6833
+ * @example [{"encrypted":{"iv":"b7b643ebccf35c262aa2d5c2729c5f3d","ephemPublicKey":"040cff71ed16f1105c45c2214c9e72d3eabde48efe3759c6f150352b19aa8054c302dc1fd8b4f3927bd7d74ae0186854b3a13de7673be4f8424a6ba3702c239729","ciphertext":"736bc1881a02fa08df4a3f1e35d426660e3c35471facba2866e960f8a19b783bac30d037b07dc9e6406e258d09a4a7e4a7cf58d20cf7b8b7201db0f80849a48d20389039e3fc196f42796fe6d501f47afb030f9946ecbc148d8da1e46c3793a4","mac":"b6cbbdbbc3a311d919340fc3ec9ee1911d9ead6d989efa73e0ac3303c51a353e"},"wrappingPublicKey":"e3421d7f9d6888ea83bef6b28ce0a2ab6eb6fe8a8fbfa3743240992590816b08f9a62edcc63296d056c552054d583fec36d23ef11dffb24c95aaf4a47d50dccc","type":"owner_main_device_share"}]
5972
6834
  */
5973
- shares: EncryptedDataInterface[];
6835
+ shares?: KeyShareDto[];
5974
6836
  /**
5975
6837
  * Wallaby Auth Pub Key
5976
6838
  * @deprecated
@@ -5999,7 +6861,40 @@ export interface WalletDto {
5999
6861
  */
6000
6862
  userId: string;
6001
6863
  }
6002
- export type WalletKek = object;
6864
+ export interface WalletKek {
6865
+ /**
6866
+ * Created at
6867
+ * @format date-time
6868
+ * @example "2024-01-20T14:45:00.000Z"
6869
+ */
6870
+ createdAt: string;
6871
+ /** Wallet KEK ID */
6872
+ id: string;
6873
+ /** Number of shares this KEK covers */
6874
+ shareCount: number;
6875
+ /**
6876
+ * Updated at
6877
+ * @format date-time
6878
+ * @example "2024-01-20T14:45:00.000Z"
6879
+ */
6880
+ updatedAt: string;
6881
+ /** User ID */
6882
+ userId: string;
6883
+ /** Wallet ID */
6884
+ walletId: string;
6885
+ }
6886
+ export interface WalletRecoveryUserDto {
6887
+ /**
6888
+ * External User ID for Reference
6889
+ * @example "de86cbd2-aef6-45b1-9f9e-f75013a13381"
6890
+ */
6891
+ externalUserId: string;
6892
+ /**
6893
+ * Wallaby user ID
6894
+ * @example "a4dedb83-4d59-41ca-84b5-4b24a98878d8"
6895
+ */
6896
+ id: string;
6897
+ }
6003
6898
  export interface WalletSeedImportRequestDto {
6004
6899
  /** @example "e3421d7f9d6888ea83bef6b28ce0a2ab6eb6fe8a8fbfa3743240992590816b08f9a62edcc63296d056c552054d583fec36d23ef11dffb24c95aaf4a47d50dccc" */
6005
6900
  clientAuthPubKey: string;
@@ -6032,6 +6927,24 @@ export interface WalletType {
6032
6927
  wallets: Wallet[];
6033
6928
  }
6034
6929
  export type WhitelistApiKeyOriginsData = AddMerchantApiKeyOriginResponseDto;
6930
+ export interface WhitelistApiKeyOriginsParams {
6931
+ /**
6932
+ * @format uuid
6933
+ * @minLength 36
6934
+ * @maxLength 36
6935
+ * @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
6936
+ * @example "180b0a0f-6935-4047-a32d-b2a4d50acfc9"
6937
+ */
6938
+ apiKeyId: string;
6939
+ /**
6940
+ * @format uuid
6941
+ * @minLength 36
6942
+ * @maxLength 36
6943
+ * @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
6944
+ * @example "180b0a0f-6935-4047-a32d-b2a4d50acfc9"
6945
+ */
6946
+ merchantId: string;
6947
+ }
6035
6948
  export declare namespace Health {
6036
6949
  /**
6037
6950
  * No description
@@ -6993,7 +7906,7 @@ export declare namespace Merchants {
6993
7906
  * No description
6994
7907
  * @tags Merchants
6995
7908
  * @name RevokeMerchantAdmins
6996
- * @summary Invite merchant admins by merchant id
7909
+ * @summary Revoke merchant admins by merchant id
6997
7910
  * @request DELETE:/api/v1/merchants/{merchantId}/admins/{userId}
6998
7911
  * @secure
6999
7912
  */
@@ -7105,7 +8018,7 @@ export declare namespace Merchants {
7105
8018
  /** A unique identifier for the request, used for tracing and debugging */
7106
8019
  "x-client-request-id"?: string;
7107
8020
  };
7108
- type ResponseBody = any;
8021
+ type ResponseBody = AddMerchantWalletAssetsData;
7109
8022
  }
7110
8023
  /**
7111
8024
  * No description
@@ -7179,16 +8092,100 @@ export declare namespace Merchants {
7179
8092
  };
7180
8093
  type ResponseBody = ChangeMerchantAssetDefaultStatusData;
7181
8094
  }
8095
+ /**
8096
+ * No description
8097
+ * @tags Merchants
8098
+ * @name GetMerchantApiKeys
8099
+ * @summary Get merchant API keys by merchant id
8100
+ * @request GET:/api/v1/merchants/{merchantId}/api-keys
8101
+ * @secure
8102
+ */
8103
+ namespace GetMerchantApiKeys {
8104
+ type RequestParams = {
8105
+ /**
8106
+ * @format uuid
8107
+ * @minLength 36
8108
+ * @maxLength 36
8109
+ * @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
8110
+ * @example "180b0a0f-6935-4047-a32d-b2a4d50acfc9"
8111
+ */
8112
+ merchantId: string;
8113
+ };
8114
+ type RequestQuery = {
8115
+ /**
8116
+ * Filter by date range from
8117
+ * @format date-time
8118
+ */
8119
+ fromDate?: string;
8120
+ /**
8121
+ * Include whitelisted origins for each API key
8122
+ * @default false
8123
+ */
8124
+ includeOrigins?: boolean;
8125
+ /**
8126
+ * Limit per page
8127
+ * @default 50
8128
+ */
8129
+ limit: number;
8130
+ /**
8131
+ * Page number
8132
+ * @default 1
8133
+ */
8134
+ page: number;
8135
+ /**
8136
+ * Search
8137
+ * @minLength 3
8138
+ * @maxLength 100
8139
+ * @pattern ^[a-zA-Z0-9_ ]+$
8140
+ */
8141
+ search?: string;
8142
+ /**
8143
+ * Sort by
8144
+ * @default "updatedAt"
8145
+ */
8146
+ sortBy?: "createdAt" | "updatedAt";
8147
+ /**
8148
+ * Sort order
8149
+ * @default "DESC"
8150
+ */
8151
+ sortOrder?: "ASC" | "DESC";
8152
+ /**
8153
+ * Filter by date range from
8154
+ * @format date-time
8155
+ */
8156
+ toDate?: string;
8157
+ /**
8158
+ * Asymmetric encryption public key used to encrypt the API key for secure transmission
8159
+ * @example ""
8160
+ */
8161
+ wrappingPublicKey?: string;
8162
+ };
8163
+ type RequestBody = never;
8164
+ type RequestHeaders = {
8165
+ /** A unique identifier for the request, used for tracing and debugging */
8166
+ "x-client-request-id"?: string;
8167
+ };
8168
+ type ResponseBody = GetMerchantApiKeysData;
8169
+ }
7182
8170
  /**
7183
8171
  * No description
7184
8172
  * @tags Merchants
7185
8173
  * @name CreateApiKey
7186
8174
  * @summary Create new API Key
7187
- * @request POST:/api/v1/merchants/api-keys/new
8175
+ * @request POST:/api/v1/merchants/{merchantId}/api-keys
7188
8176
  * @secure
7189
8177
  */
7190
8178
  namespace CreateApiKey {
7191
- type RequestParams = {};
8179
+ type RequestParams = {
8180
+ /**
8181
+ * @format uuid
8182
+ * @minLength 36
8183
+ * @maxLength 36
8184
+ * @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
8185
+ * @example "180b0a0f-6935-4047-a32d-b2a4d50acfc9"
8186
+ */
8187
+ merchantId: string;
8188
+ };
7192
8189
  type RequestQuery = {};
7193
8190
  type RequestBody = CreateMerchantApiKeyBodyDto;
7194
8191
  type RequestHeaders = {
@@ -7197,16 +8194,106 @@ export declare namespace Merchants {
7197
8194
  };
7198
8195
  type ResponseBody = CreateApiKeyData;
7199
8196
  }
8197
+ /**
8198
+ * No description
8199
+ * @tags Merchants
8200
+ * @name GetMerchantApiKeyOrigins
8201
+ * @summary Get an API key's whitelisted origins
8202
+ * @request GET:/api/v1/merchants/{merchantId}/api-keys/{apiKeyId}/origins
8203
+ * @secure
8204
+ */
8205
+ namespace GetMerchantApiKeyOrigins {
8206
+ type RequestParams = {
8207
+ /**
8208
+ * @format uuid
8209
+ * @minLength 36
8210
+ * @maxLength 36
8211
+ * @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
8212
+ * @example "180b0a0f-6935-4047-a32d-b2a4d50acfc9"
8213
+ */
8214
+ apiKeyId: string;
8215
+ /**
8216
+ * @format uuid
8217
+ * @minLength 36
8218
+ * @maxLength 36
8219
+ * @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
8220
+ * @example "180b0a0f-6935-4047-a32d-b2a4d50acfc9"
8221
+ */
8222
+ merchantId: string;
8223
+ };
8224
+ type RequestQuery = {
8225
+ /**
8226
+ * Filter by date range from
8227
+ * @format date-time
8228
+ */
8229
+ fromDate?: string;
8230
+ /**
8231
+ * Limit per page
8232
+ * @default 50
8233
+ */
8234
+ limit: number;
8235
+ /**
8236
+ * Page number
8237
+ * @default 1
8238
+ */
8239
+ page: number;
8240
+ /**
8241
+ * Search
8242
+ * @minLength 3
8243
+ * @maxLength 100
8244
+ * @pattern ^[a-zA-Z0-9_ ]+$
8245
+ */
8246
+ search?: string;
8247
+ /**
8248
+ * Sort by
8249
+ * @default "updatedAt"
8250
+ */
8251
+ sortBy?: "createdAt" | "updatedAt";
8252
+ /**
8253
+ * Sort order
8254
+ * @default "DESC"
8255
+ */
8256
+ sortOrder?: "ASC" | "DESC";
8257
+ /**
8258
+ * Filter by date range from
8259
+ * @format date-time
8260
+ */
8261
+ toDate?: string;
8262
+ };
8263
+ type RequestBody = never;
8264
+ type RequestHeaders = {
8265
+ /** A unique identifier for the request, used for tracing and debugging */
8266
+ "x-client-request-id"?: string;
8267
+ };
8268
+ type ResponseBody = GetMerchantApiKeyOriginsData;
8269
+ }
7200
8270
  /**
7201
8271
  * No description
7202
8272
  * @tags Merchants
7203
8273
  * @name WhitelistApiKeyOrigins
7204
8274
  * @summary Whitelist API Key's origins
7205
- * @request POST:/api/v1/merchants/api-keys/whitelist-origins
8275
+ * @request POST:/api/v1/merchants/{merchantId}/api-keys/{apiKeyId}/whitelist-origins
7206
8276
  * @secure
7207
8277
  */
7208
8278
  namespace WhitelistApiKeyOrigins {
7209
- type RequestParams = {};
8279
+ type RequestParams = {
8280
+ /**
8281
+ * @format uuid
8282
+ * @minLength 36
8283
+ * @maxLength 36
8284
+ * @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
8285
+ * @example "180b0a0f-6935-4047-a32d-b2a4d50acfc9"
8286
+ */
8287
+ apiKeyId: string;
8288
+ /**
8289
+ * @format uuid
8290
+ * @minLength 36
8291
+ * @maxLength 36
8292
+ * @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
8293
+ * @example "180b0a0f-6935-4047-a32d-b2a4d50acfc9"
8294
+ */
8295
+ merchantId: string;
8296
+ };
7210
8297
  type RequestQuery = {};
7211
8298
  type RequestBody = AddMerchantApiKeyOriginBodyDto;
7212
8299
  type RequestHeaders = {
@@ -7215,6 +8302,41 @@ export declare namespace Merchants {
7215
8302
  };
7216
8303
  type ResponseBody = WhitelistApiKeyOriginsData;
7217
8304
  }
8305
+ /**
8306
+ * No description
8307
+ * @tags Merchants
8308
+ * @name UpdateApiKeyPublicKey
8309
+ * @summary Update an API key's client JWT public key
8310
+ * @request PUT:/api/v1/merchants/{merchantId}/api-keys/{apiKeyId}
8311
+ * @secure
8312
+ */
8313
+ namespace UpdateApiKeyPublicKey {
8314
+ type RequestParams = {
8315
+ /**
8316
+ * @format uuid
8317
+ * @minLength 36
8318
+ * @maxLength 36
8319
+ * @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
8320
+ * @example "180b0a0f-6935-4047-a32d-b2a4d50acfc9"
8321
+ */
8322
+ apiKeyId: string;
8323
+ /**
8324
+ * @format uuid
8325
+ * @minLength 36
8326
+ * @maxLength 36
8327
+ * @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
8328
+ * @example "180b0a0f-6935-4047-a32d-b2a4d50acfc9"
8329
+ */
8330
+ merchantId: string;
8331
+ };
8332
+ type RequestQuery = {};
8333
+ type RequestBody = UpdateMerchantApiKeyPublicKeyBodyDto;
8334
+ type RequestHeaders = {
8335
+ /** A unique identifier for the request, used for tracing and debugging */
8336
+ "x-client-request-id"?: string;
8337
+ };
8338
+ type ResponseBody = UpdateApiKeyPublicKeyData;
8339
+ }
7218
8340
  }
7219
8341
  export declare namespace Wallets {
7220
8342
  /**
@@ -8338,7 +9460,7 @@ export declare namespace Transactions {
8338
9460
  * Optional blockchain name to check transfer restrictions for, required when using contract address in the request
8339
9461
  * @example "ETHEREUM"
8340
9462
  */
8341
- blockchainName?: string;
9463
+ blockchainName?: "BITCOIN" | "ETHEREUM" | "ALGORAND" | "AVALANCHE" | "POLYGON" | "BASE" | "BSC" | "SUI" | "INJECTIVE" | "SEI" | "APTOS" | "SOLANA" | "POLYMESH" | "HEDERA" | "CANTON";
8342
9464
  /**
8343
9465
  * Optional token contract address on chain. When both contractAddress and blockchainName are supplied, assetId is ignored.
8344
9466
  * @minLength 1
@@ -9438,7 +10560,7 @@ export declare namespace Dashboard {
9438
10560
  * No description
9439
10561
  * @tags Dashboard
9440
10562
  * @name GetDashboardData
9441
- * @summary Create new merchant. This endpoint is only available for super admin and republic admin
10563
+ * @summary Get dashboard data. This endpoint is only available for super admin, merchant admin and merchant user
9442
10564
  * @request GET:/api/v1/dashboard
9443
10565
  * @secure
9444
10566
  */
@@ -9450,19 +10572,19 @@ export declare namespace Dashboard {
9450
10572
  /** A unique identifier for the request, used for tracing and debugging */
9451
10573
  "x-client-request-id"?: string;
9452
10574
  };
9453
- type ResponseBody = any;
10575
+ type ResponseBody = GetDashboardDataData;
9454
10576
  }
9455
10577
  }
9456
10578
  export declare namespace UserActivity {
9457
10579
  /**
9458
10580
  * No description
9459
10581
  * @tags UserActivity
9460
- * @name GetActivitiees
9461
- * @summary Get all activities. This endpoint is only available for super admin and republic admin
10582
+ * @name GetActivities
10583
+ * @summary Get all activities. This endpoint is only available for super admin and merchant admin
9462
10584
  * @request GET:/api/v1/users-activities
9463
10585
  * @secure
9464
10586
  */
9465
- namespace GetActivitiees {
10587
+ namespace GetActivities {
9466
10588
  type RequestParams = {};
9467
10589
  type RequestQuery = {
9468
10590
  /**
@@ -9508,7 +10630,7 @@ export declare namespace UserActivity {
9508
10630
  /** A unique identifier for the request, used for tracing and debugging */
9509
10631
  "x-client-request-id"?: string;
9510
10632
  };
9511
- type ResponseBody = any;
10633
+ type ResponseBody = GetActivitiesData;
9512
10634
  }
9513
10635
  }
9514
10636
  export type QueryParamsType = Record<string | number, any>;
@@ -9571,12 +10693,12 @@ export declare class HttpClient<SecurityDataType = unknown> {
9571
10693
  request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<T>;
9572
10694
  }
9573
10695
  /**
9574
- * @title STAGING
9575
- * @version 1.0
10696
+ * @title NCW Wallets Service
10697
+ * @version 0.0.1
9576
10698
  * @baseUrl https://dev-testnet.wallaby.cash
9577
10699
  * @contact
9578
10700
  *
9579
- * The STAGING is an API that manages the wallets of the Republic Crypto
10701
+ * The NCW Wallets Service is an API that manages the wallets of the Republic Crypto
9580
10702
  */
9581
10703
  export declare class Api<SecurityDataType extends unknown> {
9582
10704
  http: HttpClient<SecurityDataType>;
@@ -9745,7 +10867,7 @@ export declare class Api<SecurityDataType extends unknown> {
9745
10867
  * @request PUT:/api/v1/chains/{chainId}
9746
10868
  * @secure
9747
10869
  */
9748
- updateChain: ({ chainId, ...query }: UpdateChainParams, data: UpdateChainDto, params?: RequestParams) => Promise<GetChainsResponseDto>;
10870
+ updateChain: ({ chainId, ...query }: UpdateChainParams, data: UpdateChainDto, params?: RequestParams) => Promise<UpdateChainResponseDto>;
9749
10871
  };
9750
10872
  assets: {
9751
10873
  /**
@@ -9909,17 +11031,17 @@ export declare class Api<SecurityDataType extends unknown> {
9909
11031
  * @request POST:/api/v1/merchants/admins/invite
9910
11032
  * @secure
9911
11033
  */
9912
- inviteMerchantAdmins: (data: InviteMerchantAdminDto, params?: RequestParams) => Promise<GetMerchantUsersResponseDto>;
11034
+ inviteMerchantAdmins: (data: InviteMerchantAdminDto, params?: RequestParams) => Promise<InviteMerchantAdminResponseDto>;
9913
11035
  /**
9914
11036
  * No description
9915
11037
  *
9916
11038
  * @tags Merchants
9917
11039
  * @name RevokeMerchantAdmins
9918
- * @summary Invite merchant admins by merchant id
11040
+ * @summary Revoke merchant admins by merchant id
9919
11041
  * @request DELETE:/api/v1/merchants/{merchantId}/admins/{userId}
9920
11042
  * @secure
9921
11043
  */
9922
- revokeMerchantAdmins: ({ merchantId, userId, ...query }: RevokeMerchantAdminsParams, params?: RequestParams) => Promise<GetMerchantUsersResponseDto>;
11044
+ revokeMerchantAdmins: ({ merchantId, userId, ...query }: RevokeMerchantAdminsParams, params?: RequestParams) => Promise<RevokeMerchantAdminResponseDto>;
9923
11045
  /**
9924
11046
  * No description
9925
11047
  *
@@ -9929,7 +11051,7 @@ export declare class Api<SecurityDataType extends unknown> {
9929
11051
  * @request GET:/api/v1/merchants/{merchantId}/wallets
9930
11052
  * @secure
9931
11053
  */
9932
- getMerchantWallets: ({ merchantId, ...query }: GetMerchantWalletsParams, params?: RequestParams) => Promise<GetMerchantUsersResponseDto>;
11054
+ getMerchantWallets: ({ merchantId, ...query }: GetMerchantWalletsParams, params?: RequestParams) => Promise<GetMerchantWalletsResponseDto>;
9933
11055
  /**
9934
11056
  * No description
9935
11057
  *
@@ -9939,7 +11061,7 @@ export declare class Api<SecurityDataType extends unknown> {
9939
11061
  * @request POST:/api/v1/merchants/wallets/add-assets
9940
11062
  * @secure
9941
11063
  */
9942
- addMerchantWalletAssets: (data: AddMerchantWalletAssetsBodyDto, params?: RequestParams) => Promise<any>;
11064
+ addMerchantWalletAssets: (data: AddMerchantWalletAssetsBodyDto, params?: RequestParams) => Promise<AddMerchantWalletAssetsResponseDto>;
9943
11065
  /**
9944
11066
  * No description
9945
11067
  *
@@ -9980,26 +11102,56 @@ export declare class Api<SecurityDataType extends unknown> {
9980
11102
  * @secure
9981
11103
  */
9982
11104
  changeMerchantAssetDefaultStatus: (data: ChangeMerchantAssetDefaultStatusBodyDto, params?: RequestParams) => Promise<ChangeMerchantAssetDefaultStatusResponseDto>;
11105
+ /**
11106
+ * No description
11107
+ *
11108
+ * @tags Merchants
11109
+ * @name GetMerchantApiKeys
11110
+ * @summary Get merchant API keys by merchant id
11111
+ * @request GET:/api/v1/merchants/{merchantId}/api-keys
11112
+ * @secure
11113
+ */
11114
+ getMerchantApiKeys: ({ merchantId, ...query }: GetMerchantApiKeysParams, params?: RequestParams) => Promise<GetMerchantApiKeysResponseDto>;
9983
11115
  /**
9984
11116
  * No description
9985
11117
  *
9986
11118
  * @tags Merchants
9987
11119
  * @name CreateApiKey
9988
11120
  * @summary Create new API Key
9989
- * @request POST:/api/v1/merchants/api-keys/new
11121
+ * @request POST:/api/v1/merchants/{merchantId}/api-keys
11122
+ * @secure
11123
+ */
11124
+ createApiKey: ({ merchantId, ...query }: CreateApiKeyParams, data: CreateMerchantApiKeyBodyDto, params?: RequestParams) => Promise<CreateMerchantApiKeyResponseDto>;
11125
+ /**
11126
+ * No description
11127
+ *
11128
+ * @tags Merchants
11129
+ * @name GetMerchantApiKeyOrigins
11130
+ * @summary Get an API key's whitelisted origins
11131
+ * @request GET:/api/v1/merchants/{merchantId}/api-keys/{apiKeyId}/origins
9990
11132
  * @secure
9991
11133
  */
9992
- createApiKey: (data: CreateMerchantApiKeyBodyDto, params?: RequestParams) => Promise<CreateMerchantApiKeyResponseDto>;
11134
+ getMerchantApiKeyOrigins: ({ merchantId, apiKeyId, ...query }: GetMerchantApiKeyOriginsParams, params?: RequestParams) => Promise<GetMerchantApiKeyOriginsResponseDto>;
9993
11135
  /**
9994
11136
  * No description
9995
11137
  *
9996
11138
  * @tags Merchants
9997
11139
  * @name WhitelistApiKeyOrigins
9998
11140
  * @summary Whitelist API Key's origins
9999
- * @request POST:/api/v1/merchants/api-keys/whitelist-origins
11141
+ * @request POST:/api/v1/merchants/{merchantId}/api-keys/{apiKeyId}/whitelist-origins
11142
+ * @secure
11143
+ */
11144
+ whitelistApiKeyOrigins: ({ merchantId, apiKeyId, ...query }: WhitelistApiKeyOriginsParams, data: AddMerchantApiKeyOriginBodyDto, params?: RequestParams) => Promise<AddMerchantApiKeyOriginResponseDto>;
11145
+ /**
11146
+ * No description
11147
+ *
11148
+ * @tags Merchants
11149
+ * @name UpdateApiKeyPublicKey
11150
+ * @summary Update an API key's client JWT public key
11151
+ * @request PUT:/api/v1/merchants/{merchantId}/api-keys/{apiKeyId}
10000
11152
  * @secure
10001
11153
  */
10002
- whitelistApiKeyOrigins: (data: AddMerchantApiKeyOriginBodyDto, params?: RequestParams) => Promise<AddMerchantApiKeyOriginResponseDto>;
11154
+ updateApiKeyPublicKey: ({ merchantId, apiKeyId, ...query }: UpdateApiKeyPublicKeyParams, data: UpdateMerchantApiKeyPublicKeyBodyDto, params?: RequestParams) => Promise<UpdateMerchantApiKeyPublicKeyResponseDto>;
10003
11155
  };
10004
11156
  wallets: {
10005
11157
  /**
@@ -10131,7 +11283,7 @@ export declare class Api<SecurityDataType extends unknown> {
10131
11283
  * @request PUT:/api/v1/wallets/asset/update
10132
11284
  * @secure
10133
11285
  */
10134
- updateUserAsset: (query: UpdateUserAssetParams, data: UpdateUserAssetRequestDto, params?: RequestParams) => Promise<UserAssetDto>;
11286
+ updateUserAsset: (query: UpdateUserAssetParams, data: UpdateUserAssetRequestDto, params?: RequestParams) => Promise<UpdateUserAssetResponseDto>;
10135
11287
  /**
10136
11288
  * No description
10137
11289
  *
@@ -10193,7 +11345,7 @@ export declare class Api<SecurityDataType extends unknown> {
10193
11345
  * @request POST:/api/v1/wallets/execute-swap
10194
11346
  * @secure
10195
11347
  */
10196
- executeSwap: (data: ExecuteSwapRequestDto, params?: RequestParams) => Promise<any>;
11348
+ executeSwap: (data: ExecuteSwapRequestDto, params?: RequestParams) => Promise<ExecuteSwapResponseDto>;
10197
11349
  };
10198
11350
  transactions: {
10199
11351
  /**
@@ -10337,7 +11489,7 @@ export declare class Api<SecurityDataType extends unknown> {
10337
11489
  * @request GET:/api/v1/transactions/check-asset-optin
10338
11490
  * @secure
10339
11491
  */
10340
- checkAssetOptinForAddress: (query: CheckAssetOptinForAddressParams, params?: RequestParams) => Promise<any>;
11492
+ checkAssetOptinForAddress: (query: CheckAssetOptinForAddressParams, params?: RequestParams) => Promise<CheckAssetOptinForAddressData>;
10341
11493
  /**
10342
11494
  * No description
10343
11495
  *
@@ -10347,7 +11499,7 @@ export declare class Api<SecurityDataType extends unknown> {
10347
11499
  * @request GET:/api/v1/transactions/check-app-optin
10348
11500
  * @secure
10349
11501
  */
10350
- checkAppOptinForAddress: (query: CheckAppOptinForAddressParams, params?: RequestParams) => Promise<any>;
11502
+ checkAppOptinForAddress: (query: CheckAppOptinForAddressParams, params?: RequestParams) => Promise<CheckAppOptinForAddressData>;
10351
11503
  /**
10352
11504
  * No description
10353
11505
  *
@@ -10533,7 +11685,7 @@ export declare class Api<SecurityDataType extends unknown> {
10533
11685
  * @request POST:/api/v1/users/assets/add
10534
11686
  * @secure
10535
11687
  */
10536
- addAssetToUser: (data: AddUserAssetDto, params?: RequestParams) => Promise<GetUserAssetsByUserIdResponseDto>;
11688
+ addAssetToUser: (data: AddUserAssetDto, params?: RequestParams) => Promise<AddUserAssetResponseDto>;
10537
11689
  /**
10538
11690
  * No description
10539
11691
  *
@@ -10693,23 +11845,23 @@ export declare class Api<SecurityDataType extends unknown> {
10693
11845
  *
10694
11846
  * @tags Dashboard
10695
11847
  * @name GetDashboardData
10696
- * @summary Create new merchant. This endpoint is only available for super admin and republic admin
11848
+ * @summary Get dashboard data. This endpoint is only available for super admin, merchant admin and merchant user
10697
11849
  * @request GET:/api/v1/dashboard
10698
11850
  * @secure
10699
11851
  */
10700
- getDashboardData: (params?: RequestParams) => Promise<any>;
11852
+ getDashboardData: (params?: RequestParams) => Promise<GetDashboardDataDto>;
10701
11853
  };
10702
11854
  userActivity: {
10703
11855
  /**
10704
11856
  * No description
10705
11857
  *
10706
11858
  * @tags UserActivity
10707
- * @name GetActivitiees
10708
- * @summary Get all activities. This endpoint is only available for super admin and republic admin
11859
+ * @name GetActivities
11860
+ * @summary Get all activities. This endpoint is only available for super admin and merchant admin
10709
11861
  * @request GET:/api/v1/users-activities
10710
11862
  * @secure
10711
11863
  */
10712
- getActivitiees: (query: GetActivitieesParams, params?: RequestParams) => Promise<any>;
11864
+ getActivities: (query: GetActivitiesParams, params?: RequestParams) => Promise<GetActivitiesResponseDto>;
10713
11865
  };
10714
11866
  }
10715
11867
  export {};