wapi-client 0.8.13 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/dist/api/base-client.browser.cjs +21 -14
  2. package/dist/api/base-client.browser.js +22 -20
  3. package/dist/api/base-client.cjs +21 -14
  4. package/dist/api/base-client.d.ts +8 -0
  5. package/dist/api/base-client.js +22 -20
  6. package/dist/api/jsonrpc/jsonrpc.enums.d.ts +5 -4
  7. package/dist/api/ws-client.browser.cjs +3 -11
  8. package/dist/api/ws-client.browser.js +4 -16
  9. package/dist/api/ws-client.cjs +4 -12
  10. package/dist/api/ws-client.js +5 -17
  11. package/dist/client.browser.cjs +29 -5
  12. package/dist/client.browser.js +30 -6
  13. package/dist/client.cjs +30 -6
  14. package/dist/client.d.ts +26 -0
  15. package/dist/client.js +31 -7
  16. package/dist/fns/create-deposit/create-deposit.browser.cjs +1 -4
  17. package/dist/fns/create-deposit/create-deposit.browser.js +2 -5
  18. package/dist/fns/create-deposit/create-deposit.cjs +1 -4
  19. package/dist/fns/create-deposit/create-deposit.js +2 -5
  20. package/dist/fns/create-withdrawal/create-withdrawal.browser.cjs +1 -4
  21. package/dist/fns/create-withdrawal/create-withdrawal.browser.js +2 -5
  22. package/dist/fns/create-withdrawal/create-withdrawal.cjs +1 -4
  23. package/dist/fns/create-withdrawal/create-withdrawal.js +2 -5
  24. package/dist/fns/find-transfers/find-transfers.browser.cjs +8 -20
  25. package/dist/fns/find-transfers/find-transfers.browser.js +9 -21
  26. package/dist/fns/find-transfers/find-transfers.cjs +8 -20
  27. package/dist/fns/find-transfers/find-transfers.js +9 -21
  28. package/dist/fns/get-balance/get-balance.browser.cjs +2 -8
  29. package/dist/fns/get-balance/get-balance.browser.js +3 -9
  30. package/dist/fns/get-balance/get-balance.cjs +2 -8
  31. package/dist/fns/get-balance/get-balance.js +3 -9
  32. package/dist/fns/get-balance-history/get-balance-history.browser.cjs +1 -4
  33. package/dist/fns/get-balance-history/get-balance-history.browser.js +2 -5
  34. package/dist/fns/get-balance-history/get-balance-history.cjs +1 -4
  35. package/dist/fns/get-balance-history/get-balance-history.js +2 -5
  36. package/dist/fns/get-token/get-token.browser.cjs +1 -4
  37. package/dist/fns/get-token/get-token.browser.js +2 -5
  38. package/dist/fns/get-token/get-token.cjs +1 -4
  39. package/dist/fns/get-token/get-token.js +2 -5
  40. package/dist/fns/healthcheck/healthcheck.browser.cjs +56 -0
  41. package/dist/fns/healthcheck/healthcheck.browser.js +38 -0
  42. package/dist/fns/healthcheck/healthcheck.cjs +60 -0
  43. package/dist/fns/healthcheck/healthcheck.d.ts +9 -0
  44. package/dist/fns/healthcheck/healthcheck.enums.browser.cjs +17 -0
  45. package/dist/fns/healthcheck/healthcheck.enums.browser.js +0 -0
  46. package/dist/fns/healthcheck/healthcheck.enums.cjs +17 -0
  47. package/dist/fns/healthcheck/healthcheck.enums.d.ts +20 -0
  48. package/dist/fns/healthcheck/healthcheck.enums.js +0 -0
  49. package/dist/fns/healthcheck/healthcheck.guards.browser.cjs +36 -0
  50. package/dist/fns/healthcheck/healthcheck.guards.browser.js +16 -0
  51. package/dist/fns/healthcheck/healthcheck.guards.cjs +41 -0
  52. package/dist/fns/healthcheck/healthcheck.guards.d.ts +4 -0
  53. package/dist/fns/healthcheck/healthcheck.guards.js +16 -0
  54. package/dist/fns/healthcheck/healthcheck.js +38 -0
  55. package/dist/fns/healthcheck/healthcheck.schema.input.json +25 -0
  56. package/dist/fns/healthcheck/healthcheck.schema.output.json +8 -0
  57. package/dist/fns/import-data/import-data.cjs +2 -5
  58. package/dist/fns/import-data/import-data.js +3 -6
  59. package/dist/fns/import-data/import-data.node.browser.cjs +2 -5
  60. package/dist/fns/import-data/import-data.node.browser.js +3 -6
  61. package/dist/fns/import-data/import-data.node.cjs +2 -5
  62. package/dist/fns/import-data/import-data.node.js +3 -6
  63. package/dist/fns/index.browser.cjs +9 -0
  64. package/dist/fns/index.browser.js +9 -0
  65. package/dist/fns/index.cjs +12 -0
  66. package/dist/fns/index.d.ts +7 -1
  67. package/dist/fns/index.js +9 -0
  68. package/dist/fns/set-flags/set-flags.browser.cjs +3 -3
  69. package/dist/fns/set-flags/set-flags.browser.js +3 -3
  70. package/dist/fns/set-flags/set-flags.cjs +3 -3
  71. package/dist/fns/set-flags/set-flags.js +3 -3
  72. package/dist/index.browser.cjs +13 -1
  73. package/dist/index.browser.js +25 -1
  74. package/dist/index.cjs +25 -1
  75. package/dist/index.d.ts +2 -2
  76. package/dist/index.js +25 -1
  77. package/dist/lib/errors.browser.cjs +642 -214
  78. package/dist/lib/errors.browser.js +645 -214
  79. package/dist/lib/errors.cjs +652 -218
  80. package/dist/lib/errors.d.ts +1411 -342
  81. package/dist/lib/errors.js +645 -214
  82. package/dist/lib/query-builder.browser.cjs +2 -2
  83. package/dist/lib/query-builder.browser.js +2 -2
  84. package/dist/lib/query-builder.cjs +2 -2
  85. package/dist/lib/query-builder.js +2 -2
  86. package/dist/lib/stream-promise.browser.cjs +3 -4
  87. package/dist/lib/stream-promise.browser.js +4 -5
  88. package/dist/lib/stream-promise.cjs +3 -4
  89. package/dist/lib/stream-promise.js +4 -5
  90. package/dist/lib/utils.browser.cjs +9 -13
  91. package/dist/lib/utils.browser.js +9 -13
  92. package/dist/lib/utils.cjs +9 -13
  93. package/dist/lib/utils.js +9 -13
  94. package/dist/lib/validator.browser.cjs +46 -4
  95. package/dist/lib/validator.browser.js +46 -4
  96. package/dist/lib/validator.cjs +46 -4
  97. package/dist/lib/validator.d.ts +5 -1
  98. package/dist/lib/validator.js +46 -4
  99. package/dist/txs/healthcheck/healthcheck.enums.browser.cjs +17 -0
  100. package/dist/txs/healthcheck/healthcheck.enums.browser.js +0 -0
  101. package/dist/txs/healthcheck/healthcheck.enums.cjs +17 -0
  102. package/dist/txs/healthcheck/healthcheck.enums.d.ts +22 -0
  103. package/dist/txs/healthcheck/healthcheck.enums.js +0 -0
  104. package/dist/txs/healthcheck/healthcheck.schema.input.json +23 -0
  105. package/dist/txs/healthcheck/healthcheck.schema.output.json +32 -0
  106. package/dist/txs/index.browser.cjs +7 -0
  107. package/dist/txs/index.browser.js +7 -0
  108. package/dist/txs/index.cjs +9 -0
  109. package/dist/txs/index.d.ts +5 -0
  110. package/dist/txs/index.js +7 -0
  111. package/dist/types/index.d.ts +2425 -1239
  112. package/dist/wapi-client-web.iife.js +4 -4
  113. package/dist/wapi-client.iife.js +4 -4
  114. package/package.json +1 -1
@@ -82,6 +82,8 @@ __export(fns_exports, {
82
82
  GetTransferGroupFnOutputSchema: () => import_get_transfer_group_schema_output.default,
83
83
  GetWalletFnInputSchema: () => import_get_wallet_schema_input.default,
84
84
  GetWalletFnOutputSchema: () => import_get_wallet_schema_output.default,
85
+ HealthcheckFnInputSchema: () => import_healthcheck_schema_input.default,
86
+ HealthcheckFnOutputSchema: () => import_healthcheck_schema_output.default,
85
87
  ImportDataFnInputSchema: () => import_import_data_schema_input.default,
86
88
  ImportDataFnOutputSchema: () => import_import_data_schema_output.default,
87
89
  ReverseTransferFnInputSchema: () => import_reverse_transfer_schema_input.default,
@@ -128,6 +130,7 @@ __export(fns_exports, {
128
130
  getTransfer: () => import_get_transfer.getTransfer,
129
131
  getTransferGroup: () => import_get_transfer_group.getTransferGroup,
130
132
  getWallet: () => import_get_wallet.getWallet,
133
+ healthcheck: () => import_healthcheck.healthcheck,
131
134
  importData: () => import_import_data.importData,
132
135
  reverseTransfer: () => import_reverse_transfer.reverseTransfer,
133
136
  reverseTransferGroup: () => import_reverse_transfer_group.reverseTransferGroup,
@@ -167,6 +170,7 @@ var import_get_token = require('./get-token/get-token.cjs');
167
170
  var import_get_transfer = require('./get-transfer/get-transfer.cjs');
168
171
  var import_get_transfer_group = require('./get-transfer-group/get-transfer-group.cjs');
169
172
  var import_get_wallet = require('./get-wallet/get-wallet.cjs');
173
+ var import_healthcheck = require('./healthcheck/healthcheck.cjs');
170
174
  var import_import_data = require('./import-data/import-data.cjs');
171
175
  var import_reverse_transfer = require('./reverse-transfer/reverse-transfer.cjs');
172
176
  var import_reverse_transfer_group = require('./reverse-transfer-group/reverse-transfer-group.cjs');
@@ -226,6 +230,8 @@ var import_get_transfer_group_schema_input = __toESM(require('./get-transfer-gro
226
230
  var import_get_transfer_group_schema_output = __toESM(require('./get-transfer-group/get-transfer-group.schema.output.json'), 1);
227
231
  var import_get_wallet_schema_input = __toESM(require('./get-wallet/get-wallet.schema.input.json'), 1);
228
232
  var import_get_wallet_schema_output = __toESM(require('./get-wallet/get-wallet.schema.output.json'), 1);
233
+ var import_healthcheck_schema_input = __toESM(require('./healthcheck/healthcheck.schema.input.json'), 1);
234
+ var import_healthcheck_schema_output = __toESM(require('./healthcheck/healthcheck.schema.output.json'), 1);
229
235
  var import_import_data_schema_input = __toESM(require('./import-data/import-data.schema.input.json'), 1);
230
236
  var import_import_data_schema_output = __toESM(require('./import-data/import-data.schema.output.json'), 1);
231
237
  var import_reverse_transfer_schema_input = __toESM(require('./reverse-transfer/reverse-transfer.schema.input.json'), 1);
@@ -278,6 +284,7 @@ var ClientValidators = {
278
284
  getTransfer: (0, import_validator.getValidator)(import_validator.SchemaNames.GetTransferFnInput),
279
285
  getTransferGroup: (0, import_validator.getValidator)(import_validator.SchemaNames.GetTransferGroupFnInput),
280
286
  getWallet: (0, import_validator.getValidator)(import_validator.SchemaNames.GetWalletFnInput),
287
+ healthcheck: (0, import_validator.getValidator)(import_validator.SchemaNames.HealthcheckFnInput),
281
288
  importData: (0, import_validator.getValidator)(import_validator.SchemaNames.ImportDataFnInput),
282
289
  reverseTransfer: (0, import_validator.getValidator)(import_validator.SchemaNames.ReverseTransferFnInput),
283
290
  reverseTransferGroup: (0, import_validator.getValidator)(import_validator.SchemaNames.ReverseTransferGroupFnInput),
@@ -321,6 +328,7 @@ var ClientFunctions = {
321
328
  getTransfer: import_get_transfer.getTransfer,
322
329
  getTransferGroup: import_get_transfer_group.getTransferGroup,
323
330
  getWallet: import_get_wallet.getWallet,
331
+ healthcheck: import_healthcheck.healthcheck,
324
332
  importData: import_import_data.importData,
325
333
  reverseTransfer: import_reverse_transfer.reverseTransfer,
326
334
  reverseTransferGroup: import_reverse_transfer_group.reverseTransferGroup,
@@ -359,6 +367,7 @@ var ClientFunctionsEnum = /* @__PURE__ */ ((ClientFunctionsEnum2) => {
359
367
  ClientFunctionsEnum2["getTransfer"] = "getTransfer";
360
368
  ClientFunctionsEnum2["getTransferGroup"] = "getTransferGroup";
361
369
  ClientFunctionsEnum2["getWallet"] = "getWallet";
370
+ ClientFunctionsEnum2["healthcheck"] = "healthcheck";
362
371
  ClientFunctionsEnum2["importData"] = "importData";
363
372
  ClientFunctionsEnum2["reverseTransfer"] = "reverseTransfer";
364
373
  ClientFunctionsEnum2["reverseTransferGroup"] = "reverseTransferGroup";
@@ -25,6 +25,7 @@ import { getToken } from "./get-token/get-token.browser.js";
25
25
  import { getTransfer } from "./get-transfer/get-transfer.browser.js";
26
26
  import { getTransferGroup } from "./get-transfer-group/get-transfer-group.browser.js";
27
27
  import { getWallet } from "./get-wallet/get-wallet.browser.js";
28
+ import { healthcheck } from "./healthcheck/healthcheck.browser.js";
28
29
  import { importData } from "./import-data/import-data.browser.js";
29
30
  import { reverseTransfer } from "./reverse-transfer/reverse-transfer.browser.js";
30
31
  import { reverseTransferGroup } from "./reverse-transfer-group/reverse-transfer-group.browser.js";
@@ -84,6 +85,8 @@ import GetTransferGroupFnInputSchema from "./get-transfer-group/get-transfer-gro
84
85
  import GetTransferGroupFnOutputSchema from "./get-transfer-group/get-transfer-group.schema.output.json";
85
86
  import GetWalletFnInputSchema from "./get-wallet/get-wallet.schema.input.json";
86
87
  import GetWalletFnOutputSchema from "./get-wallet/get-wallet.schema.output.json";
88
+ import HealthcheckFnInputSchema from "./healthcheck/healthcheck.schema.input.json";
89
+ import HealthcheckFnOutputSchema from "./healthcheck/healthcheck.schema.output.json";
87
90
  import ImportDataFnInputSchema from "./import-data/import-data.schema.input.json";
88
91
  import ImportDataFnOutputSchema from "./import-data/import-data.schema.output.json";
89
92
  import ReverseTransferFnInputSchema from "./reverse-transfer/reverse-transfer.schema.input.json";
@@ -136,6 +139,7 @@ var ClientValidators = {
136
139
  getTransfer: getValidator(SchemaNames.GetTransferFnInput),
137
140
  getTransferGroup: getValidator(SchemaNames.GetTransferGroupFnInput),
138
141
  getWallet: getValidator(SchemaNames.GetWalletFnInput),
142
+ healthcheck: getValidator(SchemaNames.HealthcheckFnInput),
139
143
  importData: getValidator(SchemaNames.ImportDataFnInput),
140
144
  reverseTransfer: getValidator(SchemaNames.ReverseTransferFnInput),
141
145
  reverseTransferGroup: getValidator(SchemaNames.ReverseTransferGroupFnInput),
@@ -179,6 +183,7 @@ var ClientFunctions = {
179
183
  getTransfer,
180
184
  getTransferGroup,
181
185
  getWallet,
186
+ healthcheck,
182
187
  importData,
183
188
  reverseTransfer,
184
189
  reverseTransferGroup,
@@ -217,6 +222,7 @@ var ClientFunctionsEnum = /* @__PURE__ */ ((ClientFunctionsEnum2) => {
217
222
  ClientFunctionsEnum2["getTransfer"] = "getTransfer";
218
223
  ClientFunctionsEnum2["getTransferGroup"] = "getTransferGroup";
219
224
  ClientFunctionsEnum2["getWallet"] = "getWallet";
225
+ ClientFunctionsEnum2["healthcheck"] = "healthcheck";
220
226
  ClientFunctionsEnum2["importData"] = "importData";
221
227
  ClientFunctionsEnum2["reverseTransfer"] = "reverseTransfer";
222
228
  ClientFunctionsEnum2["reverseTransferGroup"] = "reverseTransferGroup";
@@ -289,6 +295,8 @@ export {
289
295
  GetTransferGroupFnOutputSchema,
290
296
  GetWalletFnInputSchema,
291
297
  GetWalletFnOutputSchema,
298
+ HealthcheckFnInputSchema,
299
+ HealthcheckFnOutputSchema,
292
300
  ImportDataFnInputSchema,
293
301
  ImportDataFnOutputSchema,
294
302
  ReverseTransferFnInputSchema,
@@ -335,6 +343,7 @@ export {
335
343
  getTransfer,
336
344
  getTransferGroup,
337
345
  getWallet,
346
+ healthcheck,
338
347
  importData,
339
348
  reverseTransfer,
340
349
  reverseTransferGroup,
@@ -82,6 +82,8 @@ __export(fns_exports, {
82
82
  GetTransferGroupFnOutputSchema: () => import_get_transfer_group_schema_output.default,
83
83
  GetWalletFnInputSchema: () => import_get_wallet_schema_input.default,
84
84
  GetWalletFnOutputSchema: () => import_get_wallet_schema_output.default,
85
+ HealthcheckFnInputSchema: () => import_healthcheck_schema_input.default,
86
+ HealthcheckFnOutputSchema: () => import_healthcheck_schema_output.default,
85
87
  ImportDataFnInputSchema: () => import_import_data_schema_input.default,
86
88
  ImportDataFnOutputSchema: () => import_import_data_schema_output.default,
87
89
  ReverseTransferFnInputSchema: () => import_reverse_transfer_schema_input.default,
@@ -128,6 +130,7 @@ __export(fns_exports, {
128
130
  getTransfer: () => import_get_transfer.getTransfer,
129
131
  getTransferGroup: () => import_get_transfer_group.getTransferGroup,
130
132
  getWallet: () => import_get_wallet.getWallet,
133
+ healthcheck: () => import_healthcheck.healthcheck,
131
134
  importData: () => import_import_data.importData,
132
135
  reverseTransfer: () => import_reverse_transfer.reverseTransfer,
133
136
  reverseTransferGroup: () => import_reverse_transfer_group.reverseTransferGroup,
@@ -167,6 +170,7 @@ var import_get_token = require('./get-token/get-token.cjs');
167
170
  var import_get_transfer = require('./get-transfer/get-transfer.cjs');
168
171
  var import_get_transfer_group = require('./get-transfer-group/get-transfer-group.cjs');
169
172
  var import_get_wallet = require('./get-wallet/get-wallet.cjs');
173
+ var import_healthcheck = require('./healthcheck/healthcheck.cjs');
170
174
  var import_import_data = require('./import-data/import-data.cjs');
171
175
  var import_reverse_transfer = require('./reverse-transfer/reverse-transfer.cjs');
172
176
  var import_reverse_transfer_group = require('./reverse-transfer-group/reverse-transfer-group.cjs');
@@ -226,6 +230,8 @@ var import_get_transfer_group_schema_input = __toESM(require('./get-transfer-gro
226
230
  var import_get_transfer_group_schema_output = __toESM(require('./get-transfer-group/get-transfer-group.schema.output.json'), 1);
227
231
  var import_get_wallet_schema_input = __toESM(require('./get-wallet/get-wallet.schema.input.json'), 1);
228
232
  var import_get_wallet_schema_output = __toESM(require('./get-wallet/get-wallet.schema.output.json'), 1);
233
+ var import_healthcheck_schema_input = __toESM(require('./healthcheck/healthcheck.schema.input.json'), 1);
234
+ var import_healthcheck_schema_output = __toESM(require('./healthcheck/healthcheck.schema.output.json'), 1);
229
235
  var import_import_data_schema_input = __toESM(require('./import-data/import-data.schema.input.json'), 1);
230
236
  var import_import_data_schema_output = __toESM(require('./import-data/import-data.schema.output.json'), 1);
231
237
  var import_reverse_transfer_schema_input = __toESM(require('./reverse-transfer/reverse-transfer.schema.input.json'), 1);
@@ -278,6 +284,7 @@ var ClientValidators = {
278
284
  getTransfer: (0, import_validator.getValidator)(import_validator.SchemaNames.GetTransferFnInput),
279
285
  getTransferGroup: (0, import_validator.getValidator)(import_validator.SchemaNames.GetTransferGroupFnInput),
280
286
  getWallet: (0, import_validator.getValidator)(import_validator.SchemaNames.GetWalletFnInput),
287
+ healthcheck: (0, import_validator.getValidator)(import_validator.SchemaNames.HealthcheckFnInput),
281
288
  importData: (0, import_validator.getValidator)(import_validator.SchemaNames.ImportDataFnInput),
282
289
  reverseTransfer: (0, import_validator.getValidator)(import_validator.SchemaNames.ReverseTransferFnInput),
283
290
  reverseTransferGroup: (0, import_validator.getValidator)(import_validator.SchemaNames.ReverseTransferGroupFnInput),
@@ -321,6 +328,7 @@ var ClientFunctions = {
321
328
  getTransfer: import_get_transfer.getTransfer,
322
329
  getTransferGroup: import_get_transfer_group.getTransferGroup,
323
330
  getWallet: import_get_wallet.getWallet,
331
+ healthcheck: import_healthcheck.healthcheck,
324
332
  importData: import_import_data.importData,
325
333
  reverseTransfer: import_reverse_transfer.reverseTransfer,
326
334
  reverseTransferGroup: import_reverse_transfer_group.reverseTransferGroup,
@@ -359,6 +367,7 @@ var ClientFunctionsEnum = /* @__PURE__ */ ((ClientFunctionsEnum2) => {
359
367
  ClientFunctionsEnum2["getTransfer"] = "getTransfer";
360
368
  ClientFunctionsEnum2["getTransferGroup"] = "getTransferGroup";
361
369
  ClientFunctionsEnum2["getWallet"] = "getWallet";
370
+ ClientFunctionsEnum2["healthcheck"] = "healthcheck";
362
371
  ClientFunctionsEnum2["importData"] = "importData";
363
372
  ClientFunctionsEnum2["reverseTransfer"] = "reverseTransfer";
364
373
  ClientFunctionsEnum2["reverseTransferGroup"] = "reverseTransferGroup";
@@ -432,6 +441,8 @@ var ClientQueryBuilderFunctionsEnum = /* @__PURE__ */ ((ClientQueryBuilderFuncti
432
441
  GetTransferGroupFnOutputSchema,
433
442
  GetWalletFnInputSchema,
434
443
  GetWalletFnOutputSchema,
444
+ HealthcheckFnInputSchema,
445
+ HealthcheckFnOutputSchema,
435
446
  ImportDataFnInputSchema,
436
447
  ImportDataFnOutputSchema,
437
448
  ReverseTransferFnInputSchema,
@@ -478,6 +489,7 @@ var ClientQueryBuilderFunctionsEnum = /* @__PURE__ */ ((ClientQueryBuilderFuncti
478
489
  getTransfer,
479
490
  getTransferGroup,
480
491
  getWallet,
492
+ healthcheck,
481
493
  importData,
482
494
  reverseTransfer,
483
495
  reverseTransferGroup,
@@ -26,6 +26,7 @@ import { getToken } from './get-token/get-token';
26
26
  import { getTransfer } from './get-transfer/get-transfer';
27
27
  import { getTransferGroup } from './get-transfer-group/get-transfer-group';
28
28
  import { getWallet } from './get-wallet/get-wallet';
29
+ import { healthcheck } from './healthcheck/healthcheck';
29
30
  import { importData } from './import-data/import-data';
30
31
  import { reverseTransfer } from './reverse-transfer/reverse-transfer';
31
32
  import { reverseTransferGroup } from './reverse-transfer-group/reverse-transfer-group';
@@ -85,6 +86,8 @@ import GetTransferGroupFnInputSchema from './get-transfer-group/get-transfer-gro
85
86
  import GetTransferGroupFnOutputSchema from './get-transfer-group/get-transfer-group.schema.output.json';
86
87
  import GetWalletFnInputSchema from './get-wallet/get-wallet.schema.input.json';
87
88
  import GetWalletFnOutputSchema from './get-wallet/get-wallet.schema.output.json';
89
+ import HealthcheckFnInputSchema from './healthcheck/healthcheck.schema.input.json';
90
+ import HealthcheckFnOutputSchema from './healthcheck/healthcheck.schema.output.json';
88
91
  import ImportDataFnInputSchema from './import-data/import-data.schema.input.json';
89
92
  import ImportDataFnOutputSchema from './import-data/import-data.schema.output.json';
90
93
  import ReverseTransferFnInputSchema from './reverse-transfer/reverse-transfer.schema.input.json';
@@ -110,7 +113,7 @@ import UpdateWalletFnOutputSchema from './update-wallet/update-wallet.schema.out
110
113
  /**
111
114
  * @internal
112
115
  */
113
- export { FnConstsSchema, aggregateTransfers, createAccessToken, createContract, createDeposit, createExchange, createToken, createTransfer, createTransferGroup, createTransfers, createWallet, createWithdrawal, findBalances, findTokens, findTransferGroups, findTransfers, findWallets, getBalance, getBalanceHistory, getFlags, getStatistics, getToken, getTransfer, getTransferGroup, getWallet, importData, reverseTransfer, reverseTransferGroup, reverseTransfers, setFlags, updateToken, updateTransfer, updateTransferGroup, updateTransferGroups, updateTransfers, updateWallet, AggregateTransfersFnInputSchema, AggregateTransfersFnOutputSchema, CreateAccessTokenFnInputSchema, CreateAccessTokenFnOutputSchema, CreateContractFnInputSchema, CreateContractFnOutputSchema, CreateDepositFnInputSchema, CreateDepositFnOutputSchema, CreateExchangeFnInputSchema, CreateExchangeFnOutputSchema, CreateTokenFnInputSchema, CreateTokenFnOutputSchema, CreateTransferFnInputSchema, CreateTransferFnOutputSchema, CreateTransferGroupFnInputSchema, CreateTransferGroupFnOutputSchema, CreateTransfersFnInputSchema, CreateTransfersFnOutputSchema, CreateWalletFnInputSchema, CreateWalletFnOutputSchema, CreateWithdrawalFnInputSchema, CreateWithdrawalFnOutputSchema, FindBalancesFnInputSchema, FindBalancesFnOutputSchema, FindTokensFnInputSchema, FindTokensFnOutputSchema, FindTransferGroupsFnInputSchema, FindTransferGroupsFnOutputSchema, FindTransfersFnInputSchema, FindTransfersFnOutputSchema, FindWalletsFnInputSchema, FindWalletsFnOutputSchema, GetBalanceFnInputSchema, GetBalanceFnOutputSchema, GetBalanceHistoryFnInputSchema, GetBalanceHistoryFnOutputSchema, GetFlagsFnInputSchema, GetFlagsFnOutputSchema, GetStatisticsFnInputSchema, GetStatisticsFnOutputSchema, GetTokenFnInputSchema, GetTokenFnOutputSchema, GetTransferFnInputSchema, GetTransferFnOutputSchema, GetTransferGroupFnInputSchema, GetTransferGroupFnOutputSchema, GetWalletFnInputSchema, GetWalletFnOutputSchema, ImportDataFnInputSchema, ImportDataFnOutputSchema, ReverseTransferFnInputSchema, ReverseTransferFnOutputSchema, ReverseTransferGroupFnInputSchema, ReverseTransferGroupFnOutputSchema, ReverseTransfersFnInputSchema, ReverseTransfersFnOutputSchema, SetFlagsFnInputSchema, SetFlagsFnOutputSchema, UpdateTokenFnInputSchema, UpdateTokenFnOutputSchema, UpdateTransferFnInputSchema, UpdateTransferFnOutputSchema, UpdateTransferGroupFnInputSchema, UpdateTransferGroupFnOutputSchema, UpdateTransferGroupsFnInputSchema, UpdateTransferGroupsFnOutputSchema, UpdateTransfersFnInputSchema, UpdateTransfersFnOutputSchema, UpdateWalletFnInputSchema, UpdateWalletFnOutputSchema, };
116
+ export { FnConstsSchema, aggregateTransfers, createAccessToken, createContract, createDeposit, createExchange, createToken, createTransfer, createTransferGroup, createTransfers, createWallet, createWithdrawal, findBalances, findTokens, findTransferGroups, findTransfers, findWallets, getBalance, getBalanceHistory, getFlags, getStatistics, getToken, getTransfer, getTransferGroup, getWallet, healthcheck, importData, reverseTransfer, reverseTransferGroup, reverseTransfers, setFlags, updateToken, updateTransfer, updateTransferGroup, updateTransferGroups, updateTransfers, updateWallet, AggregateTransfersFnInputSchema, AggregateTransfersFnOutputSchema, CreateAccessTokenFnInputSchema, CreateAccessTokenFnOutputSchema, CreateContractFnInputSchema, CreateContractFnOutputSchema, CreateDepositFnInputSchema, CreateDepositFnOutputSchema, CreateExchangeFnInputSchema, CreateExchangeFnOutputSchema, CreateTokenFnInputSchema, CreateTokenFnOutputSchema, CreateTransferFnInputSchema, CreateTransferFnOutputSchema, CreateTransferGroupFnInputSchema, CreateTransferGroupFnOutputSchema, CreateTransfersFnInputSchema, CreateTransfersFnOutputSchema, CreateWalletFnInputSchema, CreateWalletFnOutputSchema, CreateWithdrawalFnInputSchema, CreateWithdrawalFnOutputSchema, FindBalancesFnInputSchema, FindBalancesFnOutputSchema, FindTokensFnInputSchema, FindTokensFnOutputSchema, FindTransferGroupsFnInputSchema, FindTransferGroupsFnOutputSchema, FindTransfersFnInputSchema, FindTransfersFnOutputSchema, FindWalletsFnInputSchema, FindWalletsFnOutputSchema, GetBalanceFnInputSchema, GetBalanceFnOutputSchema, GetBalanceHistoryFnInputSchema, GetBalanceHistoryFnOutputSchema, GetFlagsFnInputSchema, GetFlagsFnOutputSchema, GetStatisticsFnInputSchema, GetStatisticsFnOutputSchema, GetTokenFnInputSchema, GetTokenFnOutputSchema, GetTransferFnInputSchema, GetTransferFnOutputSchema, GetTransferGroupFnInputSchema, GetTransferGroupFnOutputSchema, GetWalletFnInputSchema, GetWalletFnOutputSchema, HealthcheckFnInputSchema, HealthcheckFnOutputSchema, ImportDataFnInputSchema, ImportDataFnOutputSchema, ReverseTransferFnInputSchema, ReverseTransferFnOutputSchema, ReverseTransferGroupFnInputSchema, ReverseTransferGroupFnOutputSchema, ReverseTransfersFnInputSchema, ReverseTransfersFnOutputSchema, SetFlagsFnInputSchema, SetFlagsFnOutputSchema, UpdateTokenFnInputSchema, UpdateTokenFnOutputSchema, UpdateTransferFnInputSchema, UpdateTransferFnOutputSchema, UpdateTransferGroupFnInputSchema, UpdateTransferGroupFnOutputSchema, UpdateTransferGroupsFnInputSchema, UpdateTransferGroupsFnOutputSchema, UpdateTransfersFnInputSchema, UpdateTransfersFnOutputSchema, UpdateWalletFnInputSchema, UpdateWalletFnOutputSchema, };
114
117
  /**
115
118
  * @internal
116
119
  */
@@ -139,6 +142,7 @@ export declare const ClientValidators: {
139
142
  getTransfer: import("../lib/validator").ValidationFunction;
140
143
  getTransferGroup: import("../lib/validator").ValidationFunction;
141
144
  getWallet: import("../lib/validator").ValidationFunction;
145
+ healthcheck: import("../lib/validator").ValidationFunction;
142
146
  importData: import("../lib/validator").ValidationFunction;
143
147
  reverseTransfer: import("../lib/validator").ValidationFunction;
144
148
  reverseTransferGroup: import("../lib/validator").ValidationFunction;
@@ -179,6 +183,7 @@ export declare const ClientFunctions: {
179
183
  getTransfer: typeof getTransfer;
180
184
  getTransferGroup: typeof getTransferGroup;
181
185
  getWallet: typeof getWallet;
186
+ healthcheck: typeof healthcheck;
182
187
  importData: typeof importData;
183
188
  reverseTransfer: typeof reverseTransfer;
184
189
  reverseTransferGroup: typeof reverseTransferGroup;
@@ -219,6 +224,7 @@ export declare enum ClientFunctionsEnum {
219
224
  getTransfer = "getTransfer",
220
225
  getTransferGroup = "getTransferGroup",
221
226
  getWallet = "getWallet",
227
+ healthcheck = "healthcheck",
222
228
  importData = "importData",
223
229
  reverseTransfer = "reverseTransfer",
224
230
  reverseTransferGroup = "reverseTransferGroup",
package/dist/fns/index.js CHANGED
@@ -25,6 +25,7 @@ import { getToken } from "./get-token/get-token";
25
25
  import { getTransfer } from "./get-transfer/get-transfer";
26
26
  import { getTransferGroup } from "./get-transfer-group/get-transfer-group";
27
27
  import { getWallet } from "./get-wallet/get-wallet";
28
+ import { healthcheck } from "./healthcheck/healthcheck";
28
29
  import { importData } from "./import-data/import-data";
29
30
  import { reverseTransfer } from "./reverse-transfer/reverse-transfer";
30
31
  import { reverseTransferGroup } from "./reverse-transfer-group/reverse-transfer-group";
@@ -84,6 +85,8 @@ import GetTransferGroupFnInputSchema from "./get-transfer-group/get-transfer-gro
84
85
  import GetTransferGroupFnOutputSchema from "./get-transfer-group/get-transfer-group.schema.output.json";
85
86
  import GetWalletFnInputSchema from "./get-wallet/get-wallet.schema.input.json";
86
87
  import GetWalletFnOutputSchema from "./get-wallet/get-wallet.schema.output.json";
88
+ import HealthcheckFnInputSchema from "./healthcheck/healthcheck.schema.input.json";
89
+ import HealthcheckFnOutputSchema from "./healthcheck/healthcheck.schema.output.json";
87
90
  import ImportDataFnInputSchema from "./import-data/import-data.schema.input.json";
88
91
  import ImportDataFnOutputSchema from "./import-data/import-data.schema.output.json";
89
92
  import ReverseTransferFnInputSchema from "./reverse-transfer/reverse-transfer.schema.input.json";
@@ -136,6 +139,7 @@ var ClientValidators = {
136
139
  getTransfer: getValidator(SchemaNames.GetTransferFnInput),
137
140
  getTransferGroup: getValidator(SchemaNames.GetTransferGroupFnInput),
138
141
  getWallet: getValidator(SchemaNames.GetWalletFnInput),
142
+ healthcheck: getValidator(SchemaNames.HealthcheckFnInput),
139
143
  importData: getValidator(SchemaNames.ImportDataFnInput),
140
144
  reverseTransfer: getValidator(SchemaNames.ReverseTransferFnInput),
141
145
  reverseTransferGroup: getValidator(SchemaNames.ReverseTransferGroupFnInput),
@@ -179,6 +183,7 @@ var ClientFunctions = {
179
183
  getTransfer,
180
184
  getTransferGroup,
181
185
  getWallet,
186
+ healthcheck,
182
187
  importData,
183
188
  reverseTransfer,
184
189
  reverseTransferGroup,
@@ -217,6 +222,7 @@ var ClientFunctionsEnum = /* @__PURE__ */ ((ClientFunctionsEnum2) => {
217
222
  ClientFunctionsEnum2["getTransfer"] = "getTransfer";
218
223
  ClientFunctionsEnum2["getTransferGroup"] = "getTransferGroup";
219
224
  ClientFunctionsEnum2["getWallet"] = "getWallet";
225
+ ClientFunctionsEnum2["healthcheck"] = "healthcheck";
220
226
  ClientFunctionsEnum2["importData"] = "importData";
221
227
  ClientFunctionsEnum2["reverseTransfer"] = "reverseTransfer";
222
228
  ClientFunctionsEnum2["reverseTransferGroup"] = "reverseTransferGroup";
@@ -289,6 +295,8 @@ export {
289
295
  GetTransferGroupFnOutputSchema,
290
296
  GetWalletFnInputSchema,
291
297
  GetWalletFnOutputSchema,
298
+ HealthcheckFnInputSchema,
299
+ HealthcheckFnOutputSchema,
292
300
  ImportDataFnInputSchema,
293
301
  ImportDataFnOutputSchema,
294
302
  ReverseTransferFnInputSchema,
@@ -335,6 +343,7 @@ export {
335
343
  getTransfer,
336
344
  getTransferGroup,
337
345
  getWallet,
346
+ healthcheck,
338
347
  importData,
339
348
  reverseTransfer,
340
349
  reverseTransferGroup,
@@ -46,9 +46,9 @@ function setFlags(options, input, fnOptions) {
46
46
  }
47
47
  });
48
48
  if (Object.keys(flags).length < 1) {
49
- throw new import_errors.InputError({
50
- message: `One of [${flagKeys.join()}] is required`,
51
- data: input
49
+ throw new import_errors.InputError("REQUIRED_INPUT_MISSING", {
50
+ requiredOneOf: flagKeys,
51
+ input
52
52
  });
53
53
  }
54
54
  return client.api.setFlags({
@@ -22,9 +22,9 @@ function setFlags(options, input, fnOptions) {
22
22
  }
23
23
  });
24
24
  if (Object.keys(flags).length < 1) {
25
- throw new InputError({
26
- message: `One of [${flagKeys.join()}] is required`,
27
- data: input
25
+ throw new InputError("REQUIRED_INPUT_MISSING", {
26
+ requiredOneOf: flagKeys,
27
+ input
28
28
  });
29
29
  }
30
30
  return client.api.setFlags({
@@ -46,9 +46,9 @@ function setFlags(options, input, fnOptions) {
46
46
  }
47
47
  });
48
48
  if (Object.keys(flags).length < 1) {
49
- throw new import_errors.InputError({
50
- message: `One of [${flagKeys.join()}] is required`,
51
- data: input
49
+ throw new import_errors.InputError("REQUIRED_INPUT_MISSING", {
50
+ requiredOneOf: flagKeys,
51
+ input
52
52
  });
53
53
  }
54
54
  return client.api.setFlags({
@@ -22,9 +22,9 @@ function setFlags(options, input, fnOptions) {
22
22
  }
23
23
  });
24
24
  if (Object.keys(flags).length < 1) {
25
- throw new InputError({
26
- message: `One of [${flagKeys.join()}] is required`,
27
- data: input
25
+ throw new InputError("REQUIRED_INPUT_MISSING", {
26
+ requiredOneOf: flagKeys,
27
+ input
28
28
  });
29
29
  }
30
30
  return client.api.setFlags({
@@ -20,12 +20,24 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var src_exports = {};
22
22
  __export(src_exports, {
23
+ AuthError: () => import_errors.AuthError,
24
+ AuthenticationError: () => import_errors.AuthenticationError,
25
+ AuthorizationError: () => import_errors.AuthorizationError,
23
26
  Client: () => import_client.Client,
27
+ ConfigError: () => import_errors.ConfigError,
28
+ ConstraintError: () => import_errors.ConstraintError,
29
+ ErrorDescription: () => import_errors.ERROR_DESCRIPTIONS,
24
30
  ErrorMessage: () => import_errors.ERROR_MESSAGES,
25
- Errors: () => import_errors.ERROR_TYPES,
31
+ ErrorType: () => import_errors.ERROR_TYPES,
32
+ Errors: () => import_errors.ERRORS,
33
+ InputError: () => import_errors.InputError,
34
+ JSONRPCError: () => import_errors.JSONRPCError,
26
35
  QueryBuilder: () => import_query_builder.QueryBuilder,
36
+ StreamError: () => import_errors.StreamError,
27
37
  StreamPromise: () => import_stream_promise.StreamPromise,
38
+ ValidationError: () => import_errors.ValidationError,
28
39
  Validator: () => import_validator.Validator,
40
+ WAPIError: () => import_errors.WAPIError,
29
41
  WapiClientType: () => WapiClientType,
30
42
  create: () => create,
31
43
  utils: () => utils
@@ -6,7 +6,19 @@ import {
6
6
  } from "./client.browser.js";
7
7
  import {
8
8
  ERROR_MESSAGES as ErrorMessage,
9
- ERROR_TYPES as Errors
9
+ ERROR_TYPES as ErrorType,
10
+ ERROR_DESCRIPTIONS as ErrorDescription,
11
+ ERRORS as Errors,
12
+ AuthError,
13
+ InputError,
14
+ ConfigError,
15
+ ConstraintError,
16
+ StreamError,
17
+ JSONRPCError,
18
+ WAPIError,
19
+ ValidationError,
20
+ AuthenticationError,
21
+ AuthorizationError
10
22
  } from "./lib/errors.browser.js";
11
23
  import { QueryBuilder } from "./lib/query-builder.browser.js";
12
24
  import { StreamPromise } from "./lib/stream-promise.browser.js";
@@ -48,12 +60,24 @@ var utils = {
48
60
  getIdentifier
49
61
  };
50
62
  export {
63
+ AuthError,
64
+ AuthenticationError,
65
+ AuthorizationError,
51
66
  Client,
67
+ ConfigError,
68
+ ConstraintError,
69
+ ErrorDescription,
52
70
  ErrorMessage,
71
+ ErrorType,
53
72
  Errors,
73
+ InputError,
74
+ JSONRPCError,
54
75
  QueryBuilder,
76
+ StreamError,
55
77
  StreamPromise,
78
+ ValidationError,
56
79
  Validator,
80
+ WAPIError,
57
81
  WapiClientType,
58
82
  create,
59
83
  utils
package/dist/index.cjs CHANGED
@@ -20,12 +20,24 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var src_exports = {};
22
22
  __export(src_exports, {
23
+ AuthError: () => import_errors.AuthError,
24
+ AuthenticationError: () => import_errors.AuthenticationError,
25
+ AuthorizationError: () => import_errors.AuthorizationError,
23
26
  Client: () => import_client.Client,
27
+ ConfigError: () => import_errors.ConfigError,
28
+ ConstraintError: () => import_errors.ConstraintError,
29
+ ErrorDescription: () => import_errors.ERROR_DESCRIPTIONS,
24
30
  ErrorMessage: () => import_errors.ERROR_MESSAGES,
25
- Errors: () => import_errors.ERROR_TYPES,
31
+ ErrorType: () => import_errors.ERROR_TYPES,
32
+ Errors: () => import_errors.ERRORS,
33
+ InputError: () => import_errors.InputError,
34
+ JSONRPCError: () => import_errors.JSONRPCError,
26
35
  QueryBuilder: () => import_query_builder.QueryBuilder,
36
+ StreamError: () => import_errors.StreamError,
27
37
  StreamPromise: () => import_stream_promise.StreamPromise,
38
+ ValidationError: () => import_errors.ValidationError,
28
39
  Validator: () => import_validator.Validator,
40
+ WAPIError: () => import_errors.WAPIError,
29
41
  WapiClientType: () => WapiClientType,
30
42
  create: () => create,
31
43
  utils: () => utils
@@ -74,12 +86,24 @@ var utils = {
74
86
  };
75
87
  // Annotate the CommonJS export names for ESM import in node:
76
88
  0 && (module.exports = {
89
+ AuthError,
90
+ AuthenticationError,
91
+ AuthorizationError,
77
92
  Client,
93
+ ConfigError,
94
+ ConstraintError,
95
+ ErrorDescription,
78
96
  ErrorMessage,
97
+ ErrorType,
79
98
  Errors,
99
+ InputError,
100
+ JSONRPCError,
80
101
  QueryBuilder,
102
+ StreamError,
81
103
  StreamPromise,
104
+ ValidationError,
82
105
  Validator,
106
+ WAPIError,
83
107
  WapiClientType,
84
108
  create,
85
109
  utils,
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { WapiConnectionOptions, WapiHttpConnectionOptions } from './api';
2
2
  import { Client, ClientConfig } from './client';
3
- import { ERROR_MESSAGES as ErrorMessage, ERROR_TYPES as Errors } from './lib/errors';
3
+ import { ERROR_MESSAGES as ErrorMessage, ERROR_TYPES as ErrorType, ERROR_DESCRIPTIONS as ErrorDescription, ERRORS as Errors, AuthError, InputError, ConfigError, ConstraintError, StreamError, JSONRPCError, WAPIError, ValidationError, AuthenticationError, AuthorizationError } from './lib/errors';
4
4
  import { QueryBuilder } from './lib/query-builder';
5
5
  import { StreamPromise } from './lib/stream-promise';
6
6
  import { getIdentifier } from './lib/utils';
@@ -74,7 +74,7 @@ export declare const utils: {
74
74
  */
75
75
  getIdentifier: typeof getIdentifier;
76
76
  };
77
- export { Validator, Client, Errors, ErrorMessage, QueryBuilder, StreamPromise };
77
+ export { Validator, Client, Errors, ErrorType, ErrorMessage, ErrorDescription, AuthError, InputError, ConfigError, ConstraintError, StreamError, JSONRPCError, WAPIError, ValidationError, AuthenticationError, AuthorizationError, QueryBuilder, StreamPromise, };
78
78
  export * from './db';
79
79
  export * from './fns';
80
80
  export * from './txs';
package/dist/index.js CHANGED
@@ -6,7 +6,19 @@ import {
6
6
  } from "./client";
7
7
  import {
8
8
  ERROR_MESSAGES as ErrorMessage,
9
- ERROR_TYPES as Errors
9
+ ERROR_TYPES as ErrorType,
10
+ ERROR_DESCRIPTIONS as ErrorDescription,
11
+ ERRORS as Errors,
12
+ AuthError,
13
+ InputError,
14
+ ConfigError,
15
+ ConstraintError,
16
+ StreamError,
17
+ JSONRPCError,
18
+ WAPIError,
19
+ ValidationError,
20
+ AuthenticationError,
21
+ AuthorizationError
10
22
  } from "./lib/errors";
11
23
  import { QueryBuilder } from "./lib/query-builder";
12
24
  import { StreamPromise } from "./lib/stream-promise";
@@ -48,12 +60,24 @@ var utils = {
48
60
  getIdentifier
49
61
  };
50
62
  export {
63
+ AuthError,
64
+ AuthenticationError,
65
+ AuthorizationError,
51
66
  Client,
67
+ ConfigError,
68
+ ConstraintError,
69
+ ErrorDescription,
52
70
  ErrorMessage,
71
+ ErrorType,
53
72
  Errors,
73
+ InputError,
74
+ JSONRPCError,
54
75
  QueryBuilder,
76
+ StreamError,
55
77
  StreamPromise,
78
+ ValidationError,
56
79
  Validator,
80
+ WAPIError,
57
81
  WapiClientType,
58
82
  create,
59
83
  utils