@console-wallet/dapp-sdk 2.1.0 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +2 -0
  3. package/dist/cjs/api/client.api.d.ts +16 -5
  4. package/dist/cjs/api/generated-wallet-api.d.ts +157 -112
  5. package/dist/cjs/api/generated-wallet-api.js +165 -163
  6. package/dist/cjs/api/generated-wallet-api.js.map +1 -1
  7. package/dist/cjs/helpers/handleResponse.helper.d.ts +1 -1
  8. package/dist/cjs/index.d.ts +1 -0
  9. package/dist/cjs/openapi.json +55 -4
  10. package/dist/cjs/requests/connect.js +1 -1
  11. package/dist/cjs/requests/connect.js.map +1 -1
  12. package/dist/cjs/requests/getContracts.d.ts +17 -0
  13. package/dist/cjs/requests/getContracts.js +88 -0
  14. package/dist/cjs/requests/getContracts.js.map +1 -0
  15. package/dist/cjs/requests/index.d.ts +1 -0
  16. package/dist/cjs/requests/index.js +1 -0
  17. package/dist/cjs/requests/index.js.map +1 -1
  18. package/dist/cjs/types/communication.types.d.ts +2 -1
  19. package/dist/cjs/types/communication.types.js +1 -0
  20. package/dist/cjs/types/communication.types.js.map +1 -1
  21. package/dist/cjs/types/contracts.types.d.ts +8 -0
  22. package/dist/cjs/types/contracts.types.js +3 -0
  23. package/dist/cjs/types/contracts.types.js.map +1 -0
  24. package/dist/cjs/types/index.d.ts +1 -0
  25. package/dist/cjs/types/index.js +1 -0
  26. package/dist/cjs/types/index.js.map +1 -1
  27. package/dist/esm/api/client.api.d.ts +16 -5
  28. package/dist/esm/api/generated-wallet-api.d.ts +157 -112
  29. package/dist/esm/api/generated-wallet-api.js +166 -164
  30. package/dist/esm/api/generated-wallet-api.js.map +1 -1
  31. package/dist/esm/helpers/handleResponse.helper.d.ts +1 -1
  32. package/dist/esm/index.d.ts +1 -0
  33. package/dist/esm/openapi.json +55 -4
  34. package/dist/esm/requests/connect.js +1 -1
  35. package/dist/esm/requests/connect.js.map +1 -1
  36. package/dist/esm/requests/getContracts.d.ts +17 -0
  37. package/dist/esm/requests/getContracts.js +84 -0
  38. package/dist/esm/requests/getContracts.js.map +1 -0
  39. package/dist/esm/requests/index.d.ts +1 -0
  40. package/dist/esm/requests/index.js +1 -0
  41. package/dist/esm/requests/index.js.map +1 -1
  42. package/dist/esm/types/communication.types.d.ts +2 -1
  43. package/dist/esm/types/communication.types.js +1 -0
  44. package/dist/esm/types/communication.types.js.map +1 -1
  45. package/dist/esm/types/contracts.types.d.ts +8 -0
  46. package/dist/esm/types/contracts.types.js +2 -0
  47. package/dist/esm/types/contracts.types.js.map +1 -0
  48. package/dist/esm/types/index.d.ts +1 -0
  49. package/dist/esm/types/index.js +1 -0
  50. package/dist/esm/types/index.js.map +1 -1
  51. package/package.json +1 -3
package/CHANGELOG.md CHANGED
@@ -1,3 +1,31 @@
1
+ # Changelog 2.1.1
2
+
3
+ Human‑readable diff between `2.1.0` and `2.1.1`.
4
+
5
+ ## Update — 2026-02-27
6
+
7
+ ### Features
8
+
9
+ - Added `getContracts(request)` request to fetch active contracts by party and template filters.
10
+
11
+ ### API / SDK
12
+
13
+ - Updated OpenAPI schemas and client metadata to reflect version `2.1.1`.
14
+
15
+ ### Documentation
16
+
17
+ - Documented `getContracts` in README API Methods table.
18
+
19
+ # -
20
+
21
+ # -
22
+
23
+ # -
24
+
25
+ # -
26
+
27
+ # -
28
+
1
29
  # Changelog 2.1.0
2
30
 
3
31
  Human‑readable diff between `2.0.0` and `2.1.0`.
package/README.md CHANGED
@@ -130,6 +130,8 @@ The SDK exposes several high-level request methods that communicate with the Con
130
130
  | `getActiveNetwork()` | Returns the currently selected network metadata. | — | `Network` |
131
131
  | `getWalletVersion()` | Fetches wallet version. | — | `WalletVersion` |
132
132
  | `ledgerApi(request)` | Raw data request to ledger API. | `LedgerApiRequest` | `LedgerApiResponse` |
133
+ | `getContracts(request)` | Fetch active contracts filtered by party and template IDs. | `ContractsRequest` | `ContractsResponse` |
134
+
133
135
 
134
136
  ### Signing & Transactions
135
137
 
@@ -2,12 +2,24 @@ export declare const api: {
2
2
  wallet: {
3
3
  api: {
4
4
  authControllerCreateSessionToken: (data: import("./generated-wallet-api").CreateSessionBodyDTO, params?: import("./generated-wallet-api").RequestParams) => Promise<void>;
5
+ authControllerGetAllDeviceTypes: (query: {
6
+ partyId: string;
7
+ }, params?: import("./generated-wallet-api").RequestParams) => Promise<import("./generated-wallet-api").UserAuthDevicesResponseDTO>;
8
+ authControllerGetIsParticipatedInChainActivities: (query: {
9
+ deviceTypes?: ("extension" | "ios_app" | "android_app")[] | undefined;
10
+ partyId: string;
11
+ }, params?: import("./generated-wallet-api").RequestParams) => Promise<import("./generated-wallet-api").UserInChainActivityResponseDTO>;
5
12
  cbtcBridgeControllerExecuteDeposit: (data: import("./generated-wallet-api").ExecuteDepositBodyDTO, params?: import("./generated-wallet-api").RequestParams) => Promise<import("./generated-wallet-api").ExecuteDepositResponseDTO>;
6
13
  cbtcBridgeControllerExecuteWithdrawInit: (data: import("./generated-wallet-api").ExecuteWithdrawInitBodyDTO, params?: import("./generated-wallet-api").RequestParams) => Promise<import("./generated-wallet-api").ExecuteWithdrawInitResponseDTO>;
7
14
  cbtcBridgeControllerExecuteWithdrawRequest: (data: import("./generated-wallet-api").ExecuteWithdrawRequestBodyDTO, params?: import("./generated-wallet-api").RequestParams) => Promise<import("./generated-wallet-api").ExecuteWithdrawRequestResponseDTO>;
8
15
  cbtcBridgeControllerGetDepositAccounts: (query: {
9
16
  partyId: string;
10
17
  }, params?: import("./generated-wallet-api").RequestParams) => Promise<import("./generated-wallet-api").DepositAccountsResponseDTO>;
18
+ cbtcBridgeControllerGetDepositHistory: (query: {
19
+ limit?: number | undefined;
20
+ offset?: number | undefined;
21
+ partyId: string;
22
+ }, params?: import("./generated-wallet-api").RequestParams) => Promise<import("./generated-wallet-api").DepositListResponseDTO>;
11
23
  cbtcBridgeControllerGetHoldings: (query: {
12
24
  partyId: string;
13
25
  }, params?: import("./generated-wallet-api").RequestParams) => Promise<import("./generated-wallet-api").HoldingsResponseDTO>;
@@ -15,8 +27,10 @@ export declare const api: {
15
27
  partyId: string;
16
28
  }, params?: import("./generated-wallet-api").RequestParams) => Promise<import("./generated-wallet-api").WithdrawAccountsResponseDTO>;
17
29
  cbtcBridgeControllerGetWithdrawalHistory: (query: {
30
+ limit?: number | undefined;
31
+ offset?: number | undefined;
18
32
  partyId: string;
19
- }, params?: import("./generated-wallet-api").RequestParams) => Promise<import("./generated-wallet-api").WithdrawalHistoryResponseDTO>;
33
+ }, params?: import("./generated-wallet-api").RequestParams) => Promise<import("./generated-wallet-api").WithdrawalStatusResponseDTO>;
20
34
  cbtcBridgeControllerGetWithdrawRequests: (query: {
21
35
  partyId: string;
22
36
  }, params?: import("./generated-wallet-api").RequestParams) => Promise<import("./generated-wallet-api").WithdrawRequestsResponseDTO>;
@@ -45,11 +59,8 @@ export declare const api: {
45
59
  proxyPriceApiControllerProxy: (data: import("./generated-wallet-api").CryptoAPIProxyBodyDTO, params?: import("./generated-wallet-api").RequestParams) => Promise<import("./generated-wallet-api").CryptoAPIProxyResponseDTO>;
46
60
  proxyW3AControllerProxy: (data: import("./generated-wallet-api").ProxyBodyDTO, params?: import("./generated-wallet-api").RequestParams) => Promise<import("./generated-wallet-api").ProxyResponseDTO>;
47
61
  sdkLedgerProxyControllerProxyRequest: (data: import("./generated-wallet-api").SdkLedgerProxyBodyDTO, params?: import("./generated-wallet-api").RequestParams) => Promise<import("./generated-wallet-api").SdkLedgerProxyResponseDTO>;
48
- settingControllerCreateSetting: (data: import("./generated-wallet-api").CreateSettingBodyDTO, params?: import("./generated-wallet-api").RequestParams) => Promise<import("./generated-wallet-api").CreateSettingResponseDTO>;
49
- settingControllerDeleteSetting: (id: number, params?: import("./generated-wallet-api").RequestParams) => Promise<void>;
50
- settingControllerGetSettings: (params?: import("./generated-wallet-api").RequestParams) => Promise<import("./generated-wallet-api").GetSettingsResponseDTO>;
51
- settingControllerUpdateSetting: (id: number, data: import("./generated-wallet-api").UpdateSettingBodyDTO, params?: import("./generated-wallet-api").RequestParams) => Promise<import("./generated-wallet-api").UpdateSettingResponseDTO>;
52
62
  tokenStandardControllerCreateTap: (data: import("./generated-wallet-api").CreateTapDTO, params?: import("./generated-wallet-api").RequestParams) => Promise<void>;
63
+ tokenStandardControllerGetActiveContracts: (data: import("./generated-wallet-api").GetActiveContractsBodyDTO, params?: import("./generated-wallet-api").RequestParams) => Promise<import("./generated-wallet-api").GetActiveContractsResponseDTO>;
53
64
  tokenStandardControllerGetBalances: (query: {
54
65
  partyId: string;
55
66
  }, params?: import("./generated-wallet-api").RequestParams) => Promise<import("./generated-wallet-api").CoinsBalancesResponseDTO>;
@@ -1,3 +1,7 @@
1
+ export interface ActiveContractItemDTO {
2
+ contractEntry: object;
3
+ workflowId: string;
4
+ }
1
5
  export interface AllocationSummaryDTO {
2
6
  allocate_before: string;
3
7
  amount: string;
@@ -32,7 +36,7 @@ export interface BatchTransferReceiverItemDTO {
32
36
  }
33
37
  export interface CoinBalanceResponseDTO {
34
38
  balance: string;
35
- coin: 'CC' | 'CBTC' | 'USDCx';
39
+ coin: "CC" | "CBTC" | "USDCx";
36
40
  }
37
41
  export interface CoinsBalancesResponseDTO {
38
42
  balances: CoinBalanceResponseDTO[];
@@ -50,19 +54,6 @@ export interface CreateSessionBodyDTO {
50
54
  /** A public key of a user */
51
55
  publicKey: string;
52
56
  }
53
- export interface CreateSettingBodyDTO {
54
- key: string;
55
- value: string;
56
- }
57
- export interface CreateSettingResponseDTO {
58
- /** @format date-time */
59
- createdAt: string;
60
- id: number;
61
- key: string;
62
- /** @format date-time */
63
- updatedAt: string;
64
- value: string;
65
- }
66
57
  export interface CreateTapDTO {
67
58
  amount: string;
68
59
  partyId: string;
@@ -98,7 +89,7 @@ export interface CryptoAPIProxyBodyDTO {
98
89
  * Method to send a request.
99
90
  * @example "GET"
100
91
  */
101
- method: 'GET' | 'POST' | 'PUT' | 'DELETE';
92
+ method: "GET" | "POST" | "PUT" | "DELETE";
102
93
  /**
103
94
  * An stringified object with query and url parameters
104
95
  * @example "{"queryParam1":42,"urlParam1":"bar"}"
@@ -125,6 +116,24 @@ export interface DepositAccountInfoDTO {
125
116
  export interface DepositAccountsResponseDTO {
126
117
  accounts: DepositAccountInfoDTO[];
127
118
  }
119
+ export interface DepositListItemDTO {
120
+ blockHeight?: number;
121
+ btcAmount?: string;
122
+ btcTxId?: string;
123
+ cbtcMinted?: string;
124
+ completedAt?: string | null;
125
+ confirmations: number;
126
+ createdAt: string;
127
+ depositAddress: string;
128
+ depositId: string;
129
+ fee?: string | null;
130
+ requiredConfirmations: number;
131
+ status: string;
132
+ }
133
+ export interface DepositListResponseDTO {
134
+ deposits: DepositListItemDTO[];
135
+ total: number;
136
+ }
128
137
  export interface ExecuteDepositBodyDTO {
129
138
  partyId: string;
130
139
  preparedSubmission: PreparedSubmissionDTO;
@@ -194,6 +203,13 @@ export interface ExtraPartyInfoDTO {
194
203
  */
195
204
  tags: string[];
196
205
  }
206
+ export interface GetActiveContractsBodyDTO {
207
+ parties: string[];
208
+ templateIds: string[];
209
+ }
210
+ export interface GetActiveContractsResponseDTO {
211
+ items: ActiveContractItemDTO[];
212
+ }
197
213
  export interface GetAnsContextListEntryDTO {
198
214
  /**
199
215
  * Daml contract ID encoded as a 138-character lowercase hexadecimal string
@@ -227,7 +243,7 @@ export interface GetAnsContextListEntryDTO {
227
243
  */
228
244
  reference: string;
229
245
  /** @example "pending" */
230
- status: 'pending' | 'accepted' | 'rejected';
246
+ status: "pending" | "accepted" | "rejected";
231
247
  url: string;
232
248
  /**
233
249
  * Party ID in format `hint::hash`
@@ -362,6 +378,15 @@ export interface GetGeneralSearchResultResponseDTO {
362
378
  updates: GetPagedBoolUpdateEntryAggregateResponseDTO;
363
379
  verdicts: GetPagedBoolResponseVerdictDetailedDTO;
364
380
  }
381
+ export interface GetLeaderboardStatResponseDTO {
382
+ actual_featured_marker_cost_avg: string;
383
+ total_app_rewarded_amount: string;
384
+ total_burn_fee: string;
385
+ total_parties: number;
386
+ total_rewards_amount: string;
387
+ total_sv_rewarded_amount: string;
388
+ total_validator_rewarded_amount: string;
389
+ }
365
390
  export interface GetMergeUtxosStatusResponseDTO {
366
391
  isMergeUtxosEnabled: boolean;
367
392
  }
@@ -701,9 +726,6 @@ export interface GetPricesResponseDTO {
701
726
  one_year_ago?: string | null;
702
727
  start_of_day?: string | null;
703
728
  }
704
- export interface GetSettingsResponseDTO {
705
- items: SettingResponseDTO[];
706
- }
707
729
  export interface GetTokenTransfersByPartyResponseDTO {
708
730
  data: TokenTransferItemDTO[];
709
731
  next_cursor?: string | null;
@@ -873,9 +895,9 @@ export interface ListUtxosResponseDTO {
873
895
  utxos: string[];
874
896
  }
875
897
  export interface MetadataDTO {
876
- 'splice.lfdecentralizedtrust.org/burned'?: string | null;
877
- 'splice.lfdecentralizedtrust.org/sender'?: string | null;
878
- 'splice.lfdecentralizedtrust.org/tx-kind'?: string | null;
898
+ "splice.lfdecentralizedtrust.org/burned"?: string | null;
899
+ "splice.lfdecentralizedtrust.org/sender"?: string | null;
900
+ "splice.lfdecentralizedtrust.org/tx-kind"?: string | null;
879
901
  }
880
902
  export interface OfferDTO {
881
903
  amount: string;
@@ -900,18 +922,18 @@ export interface PayloadResponseDTO {
900
922
  }
901
923
  export interface PendingTransfersResponseDTO {
902
924
  amount: string;
903
- coin: 'CC' | 'CBTC' | 'USDCx';
925
+ coin: "CC" | "CBTC" | "USDCx";
904
926
  /** @format date-time */
905
927
  createdAt: string;
906
928
  /** @format date-time */
907
929
  expiredAt: string;
908
930
  receiver: string;
909
931
  sender: string;
910
- status: 'Pending' | 'SUCCESSFUL' | 'FAILED' | 'Accepted' | 'Rejected';
932
+ status: "Pending" | "SUCCESSFUL" | "FAILED" | "Accepted" | "Rejected";
911
933
  transferCid: string;
912
934
  }
913
935
  export interface PrepareBatchTransferBodyDTO {
914
- coin?: 'CC' | 'CBTC' | 'USDCx';
936
+ coin?: "CC" | "CBTC" | "USDCx";
915
937
  /** @format date-time */
916
938
  expiryDate?: string;
917
939
  receivers: BatchTransferReceiverItemDTO[];
@@ -962,8 +984,8 @@ export interface PrepareMergeDelegationResponseDTO {
962
984
  submissionId: string;
963
985
  }
964
986
  export interface PrepareResolveTransferBodyDTO {
965
- choice: 'Accept' | 'Reject' | 'Withdraw';
966
- coin?: 'CC' | 'CBTC' | 'USDCx';
987
+ choice: "Accept" | "Reject" | "Withdraw";
988
+ coin?: "CC" | "CBTC" | "USDCx";
967
989
  partyId: string;
968
990
  transferCid: string;
969
991
  }
@@ -973,7 +995,7 @@ export interface PrepareResolveTransferResponseDTO {
973
995
  }
974
996
  export interface PrepareTransferBodyDTO {
975
997
  amount: string;
976
- coin?: 'CC' | 'CBTC' | 'USDCx';
998
+ coin?: "CC" | "CBTC" | "USDCx";
977
999
  /** @format date-time */
978
1000
  expiryDate?: string;
979
1001
  memo?: string;
@@ -1060,19 +1082,20 @@ export interface ProxyIndexerResponseDTO {
1060
1082
  general_search?: GetGeneralSearchResultResponseDTO | null;
1061
1083
  offers_search?: GetOffersSearchResponseDTO | null;
1062
1084
  party_details?: GetPartyDetailsResponseDTO | null;
1085
+ reward_leaderboard_stat?: GetLeaderboardStatResponseDTO | null;
1063
1086
  token_transfers_by_party?: GetTokenTransfersByPartyResponseDTO | null;
1064
1087
  token_transfers_event_details?: GetTransferDetailsResponseDTO | null;
1065
1088
  }
1066
1089
  export interface ProxyRequestDTO {
1067
- method: 'GET' | 'POST' | 'PUT' | 'DELETE';
1090
+ method: "GET" | "POST" | "PUT" | "DELETE";
1068
1091
  path: string;
1069
- pathTemplate: '/explore/prices' | '/explore/prices-list' | '/explore/prices-proxy' | '/offers/search' | '/parties/{party_id}' | '/token-transfers/by-party' | '/api/v1/token-transfers/{event_id}' | '/ans/context/list-by-name/{ans}' | '/ans/context/list-by-party/{party_id}' | '/ans/list/{party_id}' | '/general-search';
1092
+ pathTemplate: "/explore/prices" | "/explore/prices-list" | "/explore/prices-proxy" | "/offers/search" | "/parties/{party_id}" | "/token-transfers/by-party" | "/api/v1/token-transfers/{event_id}" | "/ans/context/list-by-name/{ans}" | "/ans/context/list-by-party/{party_id}" | "/ans/list/{party_id}" | "/general-search" | "/rewards/leaderboard/stat";
1070
1093
  payload?: string;
1071
- version?: 'v1' | 'v2';
1094
+ version?: "v1" | "v2";
1072
1095
  }
1073
1096
  export interface ProxyResponseDTO {
1074
1097
  payload: PayloadResponseDTO;
1075
- status: 'suspicous' | 'dangerous' | 'neutral' | 'validated';
1098
+ status: "suspicous" | "dangerous" | "neutral" | "validated";
1076
1099
  whitelistVersion: number;
1077
1100
  }
1078
1101
  export interface RequestInvitationBodyDTO {
@@ -1082,7 +1105,7 @@ export interface RequestInvitationBodyDTO {
1082
1105
  export interface RequestInvitationResponseDTO {
1083
1106
  code?: string;
1084
1107
  deliveryDate?: string;
1085
- status: 'accepted' | 'queued';
1108
+ status: "accepted" | "queued";
1086
1109
  }
1087
1110
  export interface SdkLedgerProxyBodyDTO {
1088
1111
  /**
@@ -1094,7 +1117,7 @@ export interface SdkLedgerProxyBodyDTO {
1094
1117
  * A method to send request to
1095
1118
  * @example "GET"
1096
1119
  */
1097
- requestMethod: 'GET';
1120
+ requestMethod: "GET";
1098
1121
  /**
1099
1122
  * A url resource to call via sdk
1100
1123
  * @example "/v2/version"
@@ -1108,15 +1131,6 @@ export interface SdkLedgerProxyResponseDTO {
1108
1131
  */
1109
1132
  response: string;
1110
1133
  }
1111
- export interface SettingResponseDTO {
1112
- /** @format date-time */
1113
- createdAt: string;
1114
- id: number;
1115
- key: string;
1116
- /** @format date-time */
1117
- updatedAt: string;
1118
- value: string;
1119
- }
1120
1134
  export interface SpentDTO {
1121
1135
  external_cc_price?: string | null;
1122
1136
  internal_cc_price?: string | null;
@@ -1180,7 +1194,7 @@ export interface SubmitMergeDelegationResponseDTO {
1180
1194
  ledgerEnd: number;
1181
1195
  }
1182
1196
  export interface SubmitResolveTransferBodyDTO {
1183
- choice?: 'Accept' | 'Reject' | 'Withdraw';
1197
+ choice?: "Accept" | "Reject" | "Withdraw";
1184
1198
  partyId?: string;
1185
1199
  preparedSubmission: PreparedSubmissionBodyDTO;
1186
1200
  publicKey: string;
@@ -1220,7 +1234,7 @@ export interface SubscribeDeviceDTO {
1220
1234
  * Device platform
1221
1235
  * @example "ios"
1222
1236
  */
1223
- platform: 'ios' | 'android';
1237
+ platform: "ios" | "android";
1224
1238
  }
1225
1239
  export interface SubscribeResponseDTO {
1226
1240
  /**
@@ -1294,10 +1308,10 @@ export interface TransferPreApprovedInstructionDTO {
1294
1308
  summary: InstructionSummaryDTO;
1295
1309
  }
1296
1310
  export interface TransferResponseDTO {
1297
- action: 'create' | 'resolve';
1311
+ action: "create" | "resolve";
1298
1312
  amount: string;
1299
- choice: 'Accept' | 'Reject' | 'Withdraw' | null;
1300
- coin: 'CC' | 'CBTC' | 'USDCx';
1313
+ choice: "Accept" | "Reject" | "Withdraw" | null;
1314
+ coin: "CC" | "CBTC" | "USDCx";
1301
1315
  contractId?: string | null;
1302
1316
  /** @format date-time */
1303
1317
  createdAt: string;
@@ -1309,8 +1323,8 @@ export interface TransferResponseDTO {
1309
1323
  receiver: string;
1310
1324
  sender: string;
1311
1325
  senderFee: string;
1312
- status: 'Pending' | 'SUCCESSFUL' | 'FAILED' | 'Accepted' | 'Rejected';
1313
- type: 'Instruction' | 'Transfer' | 'BATCH_TRANSFER' | 'BATCH_MARKERS' | 'MERGE_UTXOS';
1326
+ status: "Pending" | "SUCCESSFUL" | "FAILED" | "Accepted" | "Rejected";
1327
+ type: "Instruction" | "Transfer" | "BATCH_TRANSFER" | "BATCH_MARKERS" | "MERGE_UTXOS";
1314
1328
  }
1315
1329
  export interface TransferStepDTO {
1316
1330
  event_id: string;
@@ -1338,18 +1352,16 @@ export interface UnsubscribeResponseDTO {
1338
1352
  */
1339
1353
  webhooksDeleted: number;
1340
1354
  }
1341
- export interface UpdateSettingBodyDTO {
1342
- key: string;
1343
- value: string;
1355
+ export interface UserAuthDevicesResponseDTO {
1356
+ /**
1357
+ * An array of all user device types he has been using
1358
+ * @example ["extension","android_app","ios_app"]
1359
+ */
1360
+ devices: ("extension" | "ios_app" | "android_app")[];
1344
1361
  }
1345
- export interface UpdateSettingResponseDTO {
1346
- /** @format date-time */
1347
- createdAt: string;
1348
- id: number;
1349
- key: string;
1350
- /** @format date-time */
1351
- updatedAt: string;
1352
- value: string;
1362
+ export interface UserInChainActivityResponseDTO {
1363
+ /** A boolean value whether user participated in in-chain activities */
1364
+ isParticipated: boolean;
1353
1365
  }
1354
1366
  export declare enum VERDICT_RESULT {
1355
1367
  VERDICT_RESULT_UNSPECIFIED = "VERDICT_RESULT_UNSPECIFIED",
@@ -1509,21 +1521,27 @@ export interface WithdrawRequestItemDTO {
1509
1521
  export interface WithdrawRequestsResponseDTO {
1510
1522
  requests: WithdrawRequestItemDTO[];
1511
1523
  }
1512
- export interface WithdrawalHistoryItemDTO {
1524
+ export interface WithdrawalStatusItemDTO {
1513
1525
  amount: string;
1514
- btcTxId?: string;
1515
- completedAt?: object;
1526
+ blockHeight?: number | null;
1527
+ btcTxId?: string | null;
1528
+ /** @format date-time */
1529
+ completedAt?: string | null;
1530
+ confirmations: number;
1516
1531
  createdAt: object;
1517
1532
  destinationBtcAddress: string;
1533
+ fee?: string | null;
1518
1534
  id: number;
1519
- status: 'pending' | 'completed' | 'failed';
1535
+ requiredConfirmations: number;
1536
+ status: "pending" | "confirming" | "completed" | "failed";
1520
1537
  }
1521
- export interface WithdrawalHistoryResponseDTO {
1522
- withdrawals: WithdrawalHistoryItemDTO[];
1538
+ export interface WithdrawalStatusResponseDTO {
1539
+ total: number;
1540
+ withdrawals: WithdrawalStatusItemDTO[];
1523
1541
  }
1524
- import type { AxiosInstance, AxiosRequestConfig, ResponseType } from 'axios';
1542
+ import type { AxiosInstance, AxiosRequestConfig, ResponseType } from "axios";
1525
1543
  export type QueryParamsType = Record<string | number, any>;
1526
- export interface FullRequestParams extends Omit<AxiosRequestConfig, 'data' | 'params' | 'url' | 'responseType'> {
1544
+ export interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
1527
1545
  /** set parameter to `true` for call `securityWorker` for this request */
1528
1546
  secure?: boolean;
1529
1547
  /** request path */
@@ -1537,8 +1555,8 @@ export interface FullRequestParams extends Omit<AxiosRequestConfig, 'data' | 'pa
1537
1555
  /** request body */
1538
1556
  body?: unknown;
1539
1557
  }
1540
- export type RequestParams = Omit<FullRequestParams, 'body' | 'method' | 'query' | 'path'>;
1541
- export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, 'data' | 'cancelToken'> {
1558
+ export type RequestParams = Omit<FullRequestParams, "body" | "method" | "query" | "path">;
1559
+ export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, "data" | "cancelToken"> {
1542
1560
  securityWorker?: (securityData: SecurityDataType | null) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
1543
1561
  secure?: boolean;
1544
1562
  format?: ResponseType;
@@ -1578,6 +1596,30 @@ export declare class WalletApi<SecurityDataType extends unknown> extends HttpCli
1578
1596
  * @request POST:/api/v1/auth/session
1579
1597
  */
1580
1598
  authControllerCreateSessionToken: (data: CreateSessionBodyDTO, params?: RequestParams) => Promise<void>;
1599
+ /**
1600
+ * No description
1601
+ *
1602
+ * @tags auth
1603
+ * @name AuthControllerGetAllDeviceTypes
1604
+ * @request GET:/api/v1/auth/all-device-types
1605
+ */
1606
+ authControllerGetAllDeviceTypes: (query: {
1607
+ /** A party id of a user */
1608
+ partyId: string;
1609
+ }, params?: RequestParams) => Promise<UserAuthDevicesResponseDTO>;
1610
+ /**
1611
+ * No description
1612
+ *
1613
+ * @tags auth
1614
+ * @name AuthControllerGetIsParticipatedInChainActivities
1615
+ * @request GET:/api/v1/auth/is-participated-in-chain
1616
+ */
1617
+ authControllerGetIsParticipatedInChainActivities: (query: {
1618
+ /** A list of device types to check */
1619
+ deviceTypes?: ("extension" | "ios_app" | "android_app")[];
1620
+ /** A party id of a user */
1621
+ partyId: string;
1622
+ }, params?: RequestParams) => Promise<UserInChainActivityResponseDTO>;
1581
1623
  /**
1582
1624
  * No description
1583
1625
  *
@@ -1612,6 +1654,26 @@ export declare class WalletApi<SecurityDataType extends unknown> extends HttpCli
1612
1654
  cbtcBridgeControllerGetDepositAccounts: (query: {
1613
1655
  partyId: string;
1614
1656
  }, params?: RequestParams) => Promise<DepositAccountsResponseDTO>;
1657
+ /**
1658
+ * No description
1659
+ *
1660
+ * @tags cbtc
1661
+ * @name CbtcBridgeControllerGetDepositHistory
1662
+ * @request GET:/api/v1/cbtc/deposits/history
1663
+ */
1664
+ cbtcBridgeControllerGetDepositHistory: (query: {
1665
+ /**
1666
+ * @min 0
1667
+ * @example 10
1668
+ */
1669
+ limit?: number;
1670
+ /**
1671
+ * @min 0
1672
+ * @example 0
1673
+ */
1674
+ offset?: number;
1675
+ partyId: string;
1676
+ }, params?: RequestParams) => Promise<DepositListResponseDTO>;
1615
1677
  /**
1616
1678
  * No description
1617
1679
  *
@@ -1640,8 +1702,18 @@ export declare class WalletApi<SecurityDataType extends unknown> extends HttpCli
1640
1702
  * @request GET:/api/v1/cbtc/withdrawals/history
1641
1703
  */
1642
1704
  cbtcBridgeControllerGetWithdrawalHistory: (query: {
1705
+ /**
1706
+ * @min 0
1707
+ * @example 10
1708
+ */
1709
+ limit?: number;
1710
+ /**
1711
+ * @min 0
1712
+ * @example 0
1713
+ */
1714
+ offset?: number;
1643
1715
  partyId: string;
1644
- }, params?: RequestParams) => Promise<WithdrawalHistoryResponseDTO>;
1716
+ }, params?: RequestParams) => Promise<WithdrawalStatusResponseDTO>;
1645
1717
  /**
1646
1718
  * No description
1647
1719
  *
@@ -1834,46 +1906,19 @@ export declare class WalletApi<SecurityDataType extends unknown> extends HttpCli
1834
1906
  /**
1835
1907
  * No description
1836
1908
  *
1837
- * @tags settings
1838
- * @name SettingControllerCreateSetting
1839
- * @request POST:/api/v1/settings
1840
- * @secure
1841
- */
1842
- settingControllerCreateSetting: (data: CreateSettingBodyDTO, params?: RequestParams) => Promise<CreateSettingResponseDTO>;
1843
- /**
1844
- * No description
1845
- *
1846
- * @tags settings
1847
- * @name SettingControllerDeleteSetting
1848
- * @request DELETE:/api/v1/settings/{id}
1849
- * @secure
1850
- */
1851
- settingControllerDeleteSetting: (id: number, params?: RequestParams) => Promise<void>;
1852
- /**
1853
- * No description
1854
- *
1855
- * @tags settings
1856
- * @name SettingControllerGetSettings
1857
- * @request GET:/api/v1/settings
1858
- */
1859
- settingControllerGetSettings: (params?: RequestParams) => Promise<GetSettingsResponseDTO>;
1860
- /**
1861
- * No description
1862
- *
1863
- * @tags settings
1864
- * @name SettingControllerUpdateSetting
1865
- * @request PUT:/api/v1/settings/{id}
1866
- * @secure
1909
+ * @tags token-standard
1910
+ * @name TokenStandardControllerCreateTap
1911
+ * @request POST:/api/v1/token-standard/tap
1867
1912
  */
1868
- settingControllerUpdateSetting: (id: number, data: UpdateSettingBodyDTO, params?: RequestParams) => Promise<UpdateSettingResponseDTO>;
1913
+ tokenStandardControllerCreateTap: (data: CreateTapDTO, params?: RequestParams) => Promise<void>;
1869
1914
  /**
1870
1915
  * No description
1871
1916
  *
1872
1917
  * @tags token-standard
1873
- * @name TokenStandardControllerCreateTap
1874
- * @request POST:/api/v1/token-standard/tap
1918
+ * @name TokenStandardControllerGetActiveContracts
1919
+ * @request POST:/api/v1/token-standard/active-contracts/get
1875
1920
  */
1876
- tokenStandardControllerCreateTap: (data: CreateTapDTO, params?: RequestParams) => Promise<void>;
1921
+ tokenStandardControllerGetActiveContracts: (data: GetActiveContractsBodyDTO, params?: RequestParams) => Promise<GetActiveContractsResponseDTO>;
1877
1922
  /**
1878
1923
  * No description
1879
1924
  *
@@ -1892,7 +1937,7 @@ export declare class WalletApi<SecurityDataType extends unknown> extends HttpCli
1892
1937
  * @request GET:/api/v1/token-standard/transactions/pending
1893
1938
  */
1894
1939
  tokenStandardControllerGetPendingTransactions: (query: {
1895
- coin?: 'CC' | 'CBTC' | 'USDCx';
1940
+ coin?: "CC" | "CBTC" | "USDCx";
1896
1941
  /**
1897
1942
  * @min 0
1898
1943
  * @example 10
@@ -1913,7 +1958,7 @@ export declare class WalletApi<SecurityDataType extends unknown> extends HttpCli
1913
1958
  * @request GET:/api/v1/token-standard/transactions/pending/full
1914
1959
  */
1915
1960
  tokenStandardControllerGetPendingTransactionsFull: (query: {
1916
- coin?: 'CC' | 'CBTC' | 'USDCx';
1961
+ coin?: "CC" | "CBTC" | "USDCx";
1917
1962
  /**
1918
1963
  * @min 0
1919
1964
  * @example 10
@@ -2037,8 +2082,8 @@ export declare class WalletApi<SecurityDataType extends unknown> extends HttpCli
2037
2082
  */
2038
2083
  transferHistoryControllerGetTransfers: (query: {
2039
2084
  /** @example "CC" */
2040
- coin?: 'CC' | 'CBTC' | 'USDCx';
2041
- filter?: 'ALL' | 'Pending' | 'Accepted' | 'Rejected';
2085
+ coin?: "CC" | "CBTC" | "USDCx";
2086
+ filter?: "ALL" | "Pending" | "Accepted" | "Rejected";
2042
2087
  /**
2043
2088
  * @min 0
2044
2089
  * @example 10
@@ -2054,8 +2099,8 @@ export declare class WalletApi<SecurityDataType extends unknown> extends HttpCli
2054
2099
  receiver?: string;
2055
2100
  /** A party id of the sender to filter transactions. Optional */
2056
2101
  sender?: string;
2057
- sortBy?: 'createdAt';
2058
- sortDirection?: 'ASC' | 'DESC';
2102
+ sortBy?: "createdAt";
2103
+ sortDirection?: "ASC" | "DESC";
2059
2104
  }, params?: RequestParams) => Promise<GetTransfersHistoryResponseDTO>;
2060
2105
  /**
2061
2106
  * No description