wapi-client 0.9.0 → 0.9.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 (67) hide show
  1. package/dist/api/base-client.browser.cjs +12 -0
  2. package/dist/api/base-client.browser.js +13 -4
  3. package/dist/api/base-client.cjs +12 -0
  4. package/dist/api/base-client.d.ts +8 -0
  5. package/dist/api/base-client.js +13 -4
  6. package/dist/api/ws-client.cjs +1 -1
  7. package/dist/api/ws-client.d.ts +0 -1
  8. package/dist/api/ws-client.js +1 -1
  9. package/dist/client.browser.cjs +27 -0
  10. package/dist/client.browser.js +27 -0
  11. package/dist/client.cjs +28 -1
  12. package/dist/client.d.ts +26 -0
  13. package/dist/client.js +28 -1
  14. package/dist/fns/healthcheck/healthcheck.browser.cjs +56 -0
  15. package/dist/fns/healthcheck/healthcheck.browser.js +38 -0
  16. package/dist/fns/healthcheck/healthcheck.cjs +60 -0
  17. package/dist/fns/healthcheck/healthcheck.d.ts +9 -0
  18. package/dist/fns/healthcheck/healthcheck.enums.browser.cjs +17 -0
  19. package/dist/fns/healthcheck/healthcheck.enums.browser.js +0 -0
  20. package/dist/fns/healthcheck/healthcheck.enums.cjs +17 -0
  21. package/dist/fns/healthcheck/healthcheck.enums.d.ts +20 -0
  22. package/dist/fns/healthcheck/healthcheck.enums.js +0 -0
  23. package/dist/fns/healthcheck/healthcheck.guards.browser.cjs +36 -0
  24. package/dist/fns/healthcheck/healthcheck.guards.browser.js +16 -0
  25. package/dist/fns/healthcheck/healthcheck.guards.cjs +41 -0
  26. package/dist/fns/healthcheck/healthcheck.guards.d.ts +4 -0
  27. package/dist/fns/healthcheck/healthcheck.guards.js +16 -0
  28. package/dist/fns/healthcheck/healthcheck.js +38 -0
  29. package/dist/fns/healthcheck/healthcheck.schema.input.json +25 -0
  30. package/dist/fns/healthcheck/healthcheck.schema.output.json +8 -0
  31. package/dist/fns/import-data/import-data.cjs +22 -0
  32. package/dist/fns/import-data/import-data.js +22 -0
  33. package/dist/fns/import-data/import-data.node.browser.cjs +22 -0
  34. package/dist/fns/import-data/import-data.node.browser.js +22 -0
  35. package/dist/fns/import-data/import-data.node.cjs +22 -0
  36. package/dist/fns/import-data/import-data.node.js +22 -0
  37. package/dist/fns/index.browser.cjs +9 -0
  38. package/dist/fns/index.browser.js +9 -0
  39. package/dist/fns/index.cjs +12 -0
  40. package/dist/fns/index.d.ts +7 -1
  41. package/dist/fns/index.js +9 -0
  42. package/dist/lib/errors.d.ts +1 -1
  43. package/dist/lib/isomorphic/node/fetch.cjs +20 -17
  44. package/dist/lib/isomorphic/node/fetch.js +20 -17
  45. package/dist/lib/isomorphic/node/streams.d.ts +0 -2
  46. package/dist/lib/validator.browser.cjs +651 -960
  47. package/dist/lib/validator.browser.js +651 -960
  48. package/dist/lib/validator.cjs +41 -1
  49. package/dist/lib/validator.d.ts +5 -1
  50. package/dist/lib/validator.js +41 -1
  51. package/dist/lib/ws-types.d.ts +0 -1
  52. package/dist/txs/healthcheck/healthcheck.enums.browser.cjs +17 -0
  53. package/dist/txs/healthcheck/healthcheck.enums.browser.js +0 -0
  54. package/dist/txs/healthcheck/healthcheck.enums.cjs +17 -0
  55. package/dist/txs/healthcheck/healthcheck.enums.d.ts +22 -0
  56. package/dist/txs/healthcheck/healthcheck.enums.js +0 -0
  57. package/dist/txs/healthcheck/healthcheck.schema.input.json +23 -0
  58. package/dist/txs/healthcheck/healthcheck.schema.output.json +32 -0
  59. package/dist/txs/index.browser.cjs +7 -0
  60. package/dist/txs/index.browser.js +7 -0
  61. package/dist/txs/index.cjs +9 -0
  62. package/dist/txs/index.d.ts +5 -0
  63. package/dist/txs/index.js +7 -0
  64. package/dist/types/index.d.ts +119 -6
  65. package/dist/wapi-client-web.iife.js +6 -11
  66. package/dist/wapi-client.iife.js +6 -11
  67. package/package.json +7 -7
@@ -1,6 +1,3 @@
1
-
2
- /// <reference types="node" />
3
- /// <reference types="node" />
4
1
  declare module 'wapi-client/lib/ws-types' {
5
2
  import WebSocket from 'modern-isomorphic-ws';
6
3
  export interface ErrorEvent {
@@ -1498,7 +1495,7 @@ declare module 'wapi-client/lib/errors' {
1498
1495
  toJSON(): IJSONRPCError;
1499
1496
  }
1500
1497
  export const ERROR_CODE_TO_TYPE: {
1501
- [key: number]: 'AUTHORIZATION_ERROR' | 'CONNECTION_LOST' | 'INPUT_STREAM_INVALID' | 'INVALID_RESPONSE_STREAM_CHUNK' | 'INVALID_INPUT_STREAM_CHUNK' | 'INPUT_STREAM_TIMEOUT' | 'INPUT_STREAM_ERROR' | 'INPUT_STREAM_NOT_ALLOWED' | 'HTTP_BODY_SIZE' | 'DATABASE_EXPORT_CONFLICT' | 'DATABASE_IMPORT_CONFLICT' | 'DATABASE_EXPORT_PROGRESS_NOT_FOUND' | 'DATABASE_IMPORT_PROGRESS_NOT_FOUND' | 'DATABASE_IMPORT_NOT_FOUND' | 'TR_CANT_UPDATE_TO_PENDING' | 'TR_CANT_UPDATE_TIMESTAMP' | 'TR_CANT_INSERT_TIMESTAMP' | 'TR_EMPTY_UPDATE_REQUEST' | 'TR_MISSING_FILTER' | 'TR_TO_WALLET_WITHDRAWAL' | 'TR_FROM_WALLET_DEPOSIT' | 'TR_FROM_TO_CONFLICT' | 'TR_UNABLE_TO_RESOLVE_INPUT' | 'TRG_MISSING_FILTER' | 'INVALID_FIELD_AGR_COMB' | 'INVALID_FIELD_FOR_MODEL' | 'NO_METADATA_ON_MODEL' | 'INVALID_MODEL' | 'INVALID_COMPLEX_FILTER' | 'UNCLEAR_AGGREGATOR' | 'CONTRACT_OWNER_NOT_FOUND' | 'DISTRIBUTION_MISSING_TARGETS' | 'TOKEN_INVALID_WALLET' | 'BAL_FUTURE_DATETIME' | 'INPUT_NEEDS_IDENTIFIER' | 'RESET_INVALID_CONFIRMATION' | 'INPUT_NEEDS_TOKEN' | 'CONFLICTING_OPTIONS_FOR_BALANCE' | 'CONFLICTING_OPTIONS_FOR_SIGNED_AMOUNT' | 'RUNNING_BALANCE_WITHOUT_WALLET' | 'SIGNED_AMOUNT_WITHOUT_WALLET' | 'REQUIRED_INPUT_MISSING' | 'TRX_NOT_ALLOWED' | 'TRANSACTION_NOT_FOUND' | 'ONLY_SELECT_ALLOWED' | 'INVALID_LATEST_HASH' | 'TOKEN_LIMIT_REACHED' | 'TR_INVALID_BALANCE' | 'TR_AMOUNT_NOT_DIVISIBLE' | 'TR_TOKEN_DISABLED' | 'TR_TOKEN_DWONLY' | 'TR_TRG_STATUS_MISMATCH' | 'TR_TRG_CLOSED' | 'TR_TIMESTAMP_IN_PAST' | 'TR_TIMESTAMP_MUST_BE_LATEST' | 'TR_INVALID_CANCELLED' | 'TR_FROM_WALLET_STATUS_CONSTRAINT' | 'TR_TO_WALLET_STATUS_CONSTRAINT' | 'TR_CANCELLED_CANT_RV' | 'TR_DEPOSIT_CANT_RV_WITHOUT_FLAG' | 'TR_WITHDRAWAL_CANT_RV_WITHOUT_FLAG' | 'TRG_SINGLE_PENDING_TR_CANT_RV' | 'TRG_CANCELLED_CANT_RV' | 'TRG_DEPOSIT_CANT_RV_WITHOUT_FLAG' | 'TRG_WITHDRAWAL_CANT_RV_WITHOUT_FLAG' | 'METHOD_DISABLED' | 'FLAG_PRODUCTION_ON' | 'FLAG_PRODUCTION_LOCKED' | 'TRANSACTION_TIMEOUT' | 'AUTHENTICATION_ERROR' | 'PARSE_ERROR' | 'INVALID_REQUEST' | 'METHOD_NOT_FOUND' | 'INVALID_PARAMS' | 'INTERNAL_SERVER_ERROR';
1498
+ [key: number]: ERROR_TYPES;
1502
1499
  };
1503
1500
  export function getError({ code, message, data }: IJSONRPCError): WAPIError;
1504
1501
  export const ERROR_MESSAGES: {
@@ -1757,7 +1754,7 @@ declare module 'wapi-client/lib/validator' {
1757
1754
  inputCopy: M;
1758
1755
  error?: ValidationError;
1759
1756
  }
1760
- export type SchemaName = 'JSONRPCRequest' | 'JSONRPCResponse' | 'ClientOptions' | 'Consts' | 'TokenTableInput' | 'TokenTable' | 'TokenTableOptional' | 'TransferTableInput' | 'TransferTable' | 'TransferTableOptional' | 'TransferGroupTableInput' | 'TransferGroupTable' | 'TransferGroupTableOptional' | 'TransferLogTableInput' | 'TransferLogTable' | 'TransferLogTableOptional' | 'WalletTableInput' | 'WalletTable' | 'WalletTableOptional' | 'WalletTokenSettingTableInput' | 'WalletTokenSettingTable' | 'WalletTokenSettingTableOptional' | 'WapiSettingTableInput' | 'WapiSettingTable' | 'WapiSettingTableOptional' | 'AggregateTransfersFnInput' | 'AggregateTransfersFnOutput' | 'CreateAccessTokenFnInput' | 'CreateAccessTokenFnOutput' | 'CreateContractFnInput' | 'CreateContractFnOutput' | 'CreateDepositFnInput' | 'CreateDepositFnOutput' | 'CreateExchangeFnInput' | 'CreateExchangeFnOutput' | 'CreateTokenFnInput' | 'CreateTokenFnOutput' | 'CreateTransferFnInput' | 'CreateTransferFnOutput' | 'CreateTransferGroupFnInput' | 'CreateTransferGroupFnOutput' | 'CreateTransfersFnInput' | 'CreateTransfersFnOutput' | 'CreateWalletFnInput' | 'CreateWalletFnOutput' | 'CreateWithdrawalFnInput' | 'CreateWithdrawalFnOutput' | 'FindBalancesFnInput' | 'FindBalancesFnOutput' | 'FindTokensFnInput' | 'FindTokensFnOutput' | 'FindTransferGroupsFnInput' | 'FindTransferGroupsFnOutput' | 'FindTransfersFnInput' | 'FindTransfersFnOutput' | 'FindWalletsFnInput' | 'FindWalletsFnOutput' | 'FnConsts' | 'GetBalanceFnInput' | 'GetBalanceFnOutput' | 'GetBalanceHistoryFnInput' | 'GetBalanceHistoryFnOutput' | 'GetFlagsFnInput' | 'GetFlagsFnOutput' | 'GetStatisticsFnInput' | 'GetStatisticsFnOutput' | 'GetTokenFnInput' | 'GetTokenFnOutput' | 'GetTransferFnInput' | 'GetTransferFnOutput' | 'GetTransferGroupFnInput' | 'GetTransferGroupFnOutput' | 'GetWalletFnInput' | 'GetWalletFnOutput' | 'ImportDataFnInput' | 'ImportDataFnOptions' | 'ImportDataFnStreamChunk' | 'ImportDataFnOutput' | 'ReverseTransferFnInput' | 'ReverseTransferFnOutput' | 'ReverseTransferGroupFnInput' | 'ReverseTransferGroupFnOutput' | 'ReverseTransfersFnInput' | 'ReverseTransfersFnOutput' | 'SetFlagsFnInput' | 'SetFlagsFnOutput' | 'UpdateTokenFnInput' | 'UpdateTokenFnOutput' | 'UpdateTransferFnInput' | 'UpdateTransferFnOutput' | 'UpdateTransferGroupFnInput' | 'UpdateTransferGroupFnOutput' | 'UpdateTransferGroupsFnInput' | 'UpdateTransferGroupsFnOutput' | 'UpdateTransfersFnInput' | 'UpdateTransfersFnOutput' | 'UpdateWalletFnInput' | 'UpdateWalletFnOutput' | 'AggregateTransferManyTxInput' | 'AggregateTransferManyTxOutput' | 'AuthenticationCheckTxInput' | 'AuthenticationCheckTxOutput' | 'CreateAccessTokenTxInput' | 'CreateAccessTokenTxOutput' | 'CreateContractTxInput' | 'CreateContractTxOutput' | 'CreateDepositTxInput' | 'CreateDepositTxOutput' | 'CreateDistributionTxInput' | 'CreateDistributionTxOutput' | 'CreateTokenTxInput' | 'CreateTokenTxOutput' | 'CreateTransferTxInput' | 'CreateTransferTxOutput' | 'CreateTransferGroupTxInput' | 'CreateTransferGroupTxOutput' | 'CreateTransferManyTxInput' | 'CreateTransferManyTxOutput' | 'CreateWalletTxInput' | 'CreateWalletTxOutput' | 'CreateWithdrawalTxInput' | 'CreateWithdrawalTxOutput' | 'ExportDatabaseTxInput' | 'ExportDatabaseTxOutput' | 'FindBalanceManyTxInput' | 'FindBalanceManyTxOutput' | 'FindTokenManyTxInput' | 'FindTokenManyTxOutput' | 'FindTransferGroupManyTxInput' | 'FindTransferGroupManyTxOutput' | 'FindTransferManyTxInput' | 'FindTransferManyTxOutput' | 'FindWalletManyTxInput' | 'FindWalletManyTxOutput' | 'FinishTransactionTxInput' | 'FinishTransactionTxOutput' | 'GetBalanceTxInput' | 'GetBalanceTxOutput' | 'GetBalanceHistoryTxInput' | 'GetBalanceHistoryTxOutput' | 'GetDatabaseExportProgressTxInput' | 'GetDatabaseExportProgressTxOutput' | 'GetDatabaseImportProgressTxInput' | 'GetDatabaseImportProgressTxOutput' | 'GetFlagsTxInput' | 'GetFlagsTxOutput' | 'GetStatisticsTxInput' | 'GetStatisticsTxOutput' | 'GetTokenTxInput' | 'GetTokenTxOutput' | 'GetTokenManyTxInput' | 'GetTokenManyTxOutput' | 'GetTransferTxInput' | 'GetTransferTxOutput' | 'GetTransferGroupTxInput' | 'GetTransferGroupTxOutput' | 'GetWalletTxInput' | 'GetWalletTxOutput' | 'GetWalletManyTxInput' | 'GetWalletManyTxOutput' | 'ImportActionsTxInput' | 'ImportActionsTxOptions' | 'ImportActionsTxStreamChunk' | 'ImportActionsTxOutput' | 'ImportDatabaseTxInput' | 'ImportDatabaseTxOutput' | 'ListDatabaseExportsTxInput' | 'ListDatabaseExportsTxOutput' | 'QueryTxInput' | 'QueryTxOutput' | 'QueryLogsTxInput' | 'QueryLogsTxOutput' | 'ResetDatabaseTxInput' | 'ResetDatabaseTxOutput' | 'ReverseTransferTxInput' | 'ReverseTransferTxOutput' | 'ReverseTransferGroupTxInput' | 'ReverseTransferGroupTxOutput' | 'ReverseTransferGroupManyTxInput' | 'ReverseTransferGroupManyTxOutput' | 'ReverseTransferManyTxInput' | 'ReverseTransferManyTxOutput' | 'SetFlagsTxInput' | 'SetFlagsTxOutput' | 'StartTransactionTxInput' | 'StartTransactionTxOutput' | 'TxConsts' | 'UpdateTokenTxInput' | 'UpdateTokenTxOutput' | 'UpdateTransferTxInput' | 'UpdateTransferTxOutput' | 'UpdateTransferGroupTxInput' | 'UpdateTransferGroupTxOutput' | 'UpdateTransferGroupManyTxInput' | 'UpdateTransferGroupManyTxOutput' | 'UpdateTransferManyTxInput' | 'UpdateTransferManyTxOutput' | 'UpdateWalletTxInput' | 'UpdateWalletTxOutput';
1757
+ export type SchemaName = 'JSONRPCRequest' | 'JSONRPCResponse' | 'ClientOptions' | 'Consts' | 'TokenTableInput' | 'TokenTable' | 'TokenTableOptional' | 'TransferTableInput' | 'TransferTable' | 'TransferTableOptional' | 'TransferGroupTableInput' | 'TransferGroupTable' | 'TransferGroupTableOptional' | 'TransferLogTableInput' | 'TransferLogTable' | 'TransferLogTableOptional' | 'WalletTableInput' | 'WalletTable' | 'WalletTableOptional' | 'WalletTokenSettingTableInput' | 'WalletTokenSettingTable' | 'WalletTokenSettingTableOptional' | 'WapiSettingTableInput' | 'WapiSettingTable' | 'WapiSettingTableOptional' | 'AggregateTransfersFnInput' | 'AggregateTransfersFnOutput' | 'CreateAccessTokenFnInput' | 'CreateAccessTokenFnOutput' | 'CreateContractFnInput' | 'CreateContractFnOutput' | 'CreateDepositFnInput' | 'CreateDepositFnOutput' | 'CreateExchangeFnInput' | 'CreateExchangeFnOutput' | 'CreateTokenFnInput' | 'CreateTokenFnOutput' | 'CreateTransferFnInput' | 'CreateTransferFnOutput' | 'CreateTransferGroupFnInput' | 'CreateTransferGroupFnOutput' | 'CreateTransfersFnInput' | 'CreateTransfersFnOutput' | 'CreateWalletFnInput' | 'CreateWalletFnOutput' | 'CreateWithdrawalFnInput' | 'CreateWithdrawalFnOutput' | 'FindBalancesFnInput' | 'FindBalancesFnOutput' | 'FindTokensFnInput' | 'FindTokensFnOutput' | 'FindTransferGroupsFnInput' | 'FindTransferGroupsFnOutput' | 'FindTransfersFnInput' | 'FindTransfersFnOutput' | 'FindWalletsFnInput' | 'FindWalletsFnOutput' | 'FnConsts' | 'GetBalanceFnInput' | 'GetBalanceFnOutput' | 'GetBalanceHistoryFnInput' | 'GetBalanceHistoryFnOutput' | 'GetFlagsFnInput' | 'GetFlagsFnOutput' | 'GetStatisticsFnInput' | 'GetStatisticsFnOutput' | 'GetTokenFnInput' | 'GetTokenFnOutput' | 'GetTransferFnInput' | 'GetTransferFnOutput' | 'GetTransferGroupFnInput' | 'GetTransferGroupFnOutput' | 'GetWalletFnInput' | 'GetWalletFnOutput' | 'HealthcheckFnInput' | 'HealthcheckFnOutput' | 'ImportDataFnInput' | 'ImportDataFnOptions' | 'ImportDataFnStreamChunk' | 'ImportDataFnOutput' | 'ReverseTransferFnInput' | 'ReverseTransferFnOutput' | 'ReverseTransferGroupFnInput' | 'ReverseTransferGroupFnOutput' | 'ReverseTransfersFnInput' | 'ReverseTransfersFnOutput' | 'SetFlagsFnInput' | 'SetFlagsFnOutput' | 'UpdateTokenFnInput' | 'UpdateTokenFnOutput' | 'UpdateTransferFnInput' | 'UpdateTransferFnOutput' | 'UpdateTransferGroupFnInput' | 'UpdateTransferGroupFnOutput' | 'UpdateTransferGroupsFnInput' | 'UpdateTransferGroupsFnOutput' | 'UpdateTransfersFnInput' | 'UpdateTransfersFnOutput' | 'UpdateWalletFnInput' | 'UpdateWalletFnOutput' | 'AggregateTransferManyTxInput' | 'AggregateTransferManyTxOutput' | 'AuthenticationCheckTxInput' | 'AuthenticationCheckTxOutput' | 'CreateAccessTokenTxInput' | 'CreateAccessTokenTxOutput' | 'CreateContractTxInput' | 'CreateContractTxOutput' | 'CreateDepositTxInput' | 'CreateDepositTxOutput' | 'CreateDistributionTxInput' | 'CreateDistributionTxOutput' | 'CreateTokenTxInput' | 'CreateTokenTxOutput' | 'CreateTransferTxInput' | 'CreateTransferTxOutput' | 'CreateTransferGroupTxInput' | 'CreateTransferGroupTxOutput' | 'CreateTransferManyTxInput' | 'CreateTransferManyTxOutput' | 'CreateWalletTxInput' | 'CreateWalletTxOutput' | 'CreateWithdrawalTxInput' | 'CreateWithdrawalTxOutput' | 'ExportDatabaseTxInput' | 'ExportDatabaseTxOutput' | 'FindBalanceManyTxInput' | 'FindBalanceManyTxOutput' | 'FindTokenManyTxInput' | 'FindTokenManyTxOutput' | 'FindTransferGroupManyTxInput' | 'FindTransferGroupManyTxOutput' | 'FindTransferManyTxInput' | 'FindTransferManyTxOutput' | 'FindWalletManyTxInput' | 'FindWalletManyTxOutput' | 'FinishTransactionTxInput' | 'FinishTransactionTxOutput' | 'GetBalanceTxInput' | 'GetBalanceTxOutput' | 'GetBalanceHistoryTxInput' | 'GetBalanceHistoryTxOutput' | 'GetDatabaseExportProgressTxInput' | 'GetDatabaseExportProgressTxOutput' | 'GetDatabaseImportProgressTxInput' | 'GetDatabaseImportProgressTxOutput' | 'GetFlagsTxInput' | 'GetFlagsTxOutput' | 'GetStatisticsTxInput' | 'GetStatisticsTxOutput' | 'GetTokenTxInput' | 'GetTokenTxOutput' | 'GetTokenManyTxInput' | 'GetTokenManyTxOutput' | 'GetTransferTxInput' | 'GetTransferTxOutput' | 'GetTransferGroupTxInput' | 'GetTransferGroupTxOutput' | 'GetWalletTxInput' | 'GetWalletTxOutput' | 'GetWalletManyTxInput' | 'GetWalletManyTxOutput' | 'HealthcheckTxInput' | 'HealthcheckTxOutput' | 'ImportActionsTxInput' | 'ImportActionsTxOptions' | 'ImportActionsTxStreamChunk' | 'ImportActionsTxOutput' | 'ImportDatabaseTxInput' | 'ImportDatabaseTxOutput' | 'ListDatabaseExportsTxInput' | 'ListDatabaseExportsTxOutput' | 'QueryTxInput' | 'QueryTxOutput' | 'QueryLogsTxInput' | 'QueryLogsTxOutput' | 'ResetDatabaseTxInput' | 'ResetDatabaseTxOutput' | 'ReverseTransferTxInput' | 'ReverseTransferTxOutput' | 'ReverseTransferGroupTxInput' | 'ReverseTransferGroupTxOutput' | 'ReverseTransferGroupManyTxInput' | 'ReverseTransferGroupManyTxOutput' | 'ReverseTransferManyTxInput' | 'ReverseTransferManyTxOutput' | 'SetFlagsTxInput' | 'SetFlagsTxOutput' | 'StartTransactionTxInput' | 'StartTransactionTxOutput' | 'TxConsts' | 'UpdateTokenTxInput' | 'UpdateTokenTxOutput' | 'UpdateTransferTxInput' | 'UpdateTransferTxOutput' | 'UpdateTransferGroupTxInput' | 'UpdateTransferGroupTxOutput' | 'UpdateTransferGroupManyTxInput' | 'UpdateTransferGroupManyTxOutput' | 'UpdateTransferManyTxInput' | 'UpdateTransferManyTxOutput' | 'UpdateWalletTxInput' | 'UpdateWalletTxOutput';
1761
1758
  /**
1762
1759
  * @internal
1763
1760
  */
@@ -1836,6 +1833,8 @@ declare module 'wapi-client/lib/validator' {
1836
1833
  GetTransferGroupFnOutput = 'GetTransferGroupFnOutput',
1837
1834
  GetWalletFnInput = 'GetWalletFnInput',
1838
1835
  GetWalletFnOutput = 'GetWalletFnOutput',
1836
+ HealthcheckFnInput = 'HealthcheckFnInput',
1837
+ HealthcheckFnOutput = 'HealthcheckFnOutput',
1839
1838
  ImportDataFnInput = 'ImportDataFnInput',
1840
1839
  ImportDataFnOptions = 'ImportDataFnOptions',
1841
1840
  ImportDataFnStreamChunk = 'ImportDataFnStreamChunk',
@@ -1922,6 +1921,8 @@ declare module 'wapi-client/lib/validator' {
1922
1921
  GetWalletTxOutput = 'GetWalletTxOutput',
1923
1922
  GetWalletManyTxInput = 'GetWalletManyTxInput',
1924
1923
  GetWalletManyTxOutput = 'GetWalletManyTxOutput',
1924
+ HealthcheckTxInput = 'HealthcheckTxInput',
1925
+ HealthcheckTxOutput = 'HealthcheckTxOutput',
1925
1926
  ImportActionsTxInput = 'ImportActionsTxInput',
1926
1927
  ImportActionsTxOptions = 'ImportActionsTxOptions',
1927
1928
  ImportActionsTxStreamChunk = 'ImportActionsTxStreamChunk',
@@ -7602,6 +7603,63 @@ declare module 'wapi-client/fns/get-wallet/get-wallet' {
7602
7603
  */
7603
7604
  export function getWallet(options: ClientFunctionOptions, input: GetWalletFnInput, fnOptions?: GetWalletFnOptions): StreamPromise<GetWalletFnOutput>;
7604
7605
  }
7606
+ declare module 'wapi-client/txs/healthcheck/healthcheck.enums' {
7607
+ import { ITxGeneralOptionsWithoutTx } from 'wapi-client/txs/tx-consts.enums';
7608
+ export type HealthcheckTxOptions = ITxGeneralOptionsWithoutTx;
7609
+ /**
7610
+ * Input for healthcheck
7611
+ *
7612
+ * @category Input
7613
+ */
7614
+ export interface HealthcheckTxInput {
7615
+ options?: HealthcheckTxOptions;
7616
+ }
7617
+ /**
7618
+ * Output of healthcheck
7619
+ *
7620
+ * @category Output
7621
+ */
7622
+ export interface HealthcheckTxOutput {
7623
+ status: 'green' | 'yellow' | 'red';
7624
+ message?: string;
7625
+ database_size?: string;
7626
+ indexes_size?: string;
7627
+ connection_count?: number;
7628
+ }
7629
+ }
7630
+ declare module 'wapi-client/fns/healthcheck/healthcheck.enums' {
7631
+ import { HealthcheckTxOptions, HealthcheckTxOutput } from 'wapi-client/txs/healthcheck/healthcheck.enums';
7632
+ /**
7633
+ * Optional flags for input
7634
+ */
7635
+ export type HealthcheckFnOptions = HealthcheckTxOptions;
7636
+ /**
7637
+ * Input for healthcheck
7638
+ *
7639
+ * @category Input
7640
+ */
7641
+ export interface HealthcheckFnInput {
7642
+ options?: HealthcheckFnOptions;
7643
+ }
7644
+ /**
7645
+ * Output of healthcheck
7646
+ *
7647
+ * @category Output
7648
+ */
7649
+ export interface HealthcheckFnOutput extends HealthcheckTxOutput {
7650
+ }
7651
+ }
7652
+ declare module 'wapi-client/fns/healthcheck/healthcheck' {
7653
+ import { ClientFunctionOptions } from 'wapi-client/fns/fn-consts.enums';
7654
+ import { StreamPromise } from 'wapi-client/lib/stream-promise';
7655
+ import { HealthcheckFnInput, HealthcheckFnOptions, HealthcheckFnOutput } from 'wapi-client/fns/healthcheck/healthcheck.enums';
7656
+ /**
7657
+ * @internal
7658
+ *
7659
+ * Get information about wallet
7660
+ */
7661
+ export function healthcheck(options: ClientFunctionOptions, input: HealthcheckFnInput, fnOptions?: HealthcheckFnOptions): StreamPromise<HealthcheckFnOutput>;
7662
+ }
7605
7663
  declare module 'wapi-client/txs/import-actions/import-actions.enums' {
7606
7664
  import { ITxGeneralOptions } from 'wapi-client/txs/tx-consts.enums';
7607
7665
  import { WalletTableInput } from 'wapi-client/db/wallet/wallet.enums';
@@ -9351,6 +9409,7 @@ declare module 'wapi-client/fns/index' {
9351
9409
  import { getTransfer } from 'wapi-client/fns/get-transfer/get-transfer';
9352
9410
  import { getTransferGroup } from 'wapi-client/fns/get-transfer-group/get-transfer-group';
9353
9411
  import { getWallet } from 'wapi-client/fns/get-wallet/get-wallet';
9412
+ import { healthcheck } from 'wapi-client/fns/healthcheck/healthcheck';
9354
9413
  import { importData } from 'wapi-client/fns/import-data/import-data';
9355
9414
  import { reverseTransfer } from 'wapi-client/fns/reverse-transfer/reverse-transfer';
9356
9415
  import { reverseTransferGroup } from 'wapi-client/fns/reverse-transfer-group/reverse-transfer-group';
@@ -9410,6 +9469,8 @@ declare module 'wapi-client/fns/index' {
9410
9469
  interface GetTransferGroupFnOutputSchema { [key: string]: any; }
9411
9470
  interface GetWalletFnInputSchema { [key: string]: any; }
9412
9471
  interface GetWalletFnOutputSchema { [key: string]: any; }
9472
+ interface HealthcheckFnInputSchema { [key: string]: any; }
9473
+ interface HealthcheckFnOutputSchema { [key: string]: any; }
9413
9474
  interface ImportDataFnInputSchema { [key: string]: any; }
9414
9475
  interface ImportDataFnOutputSchema { [key: string]: any; }
9415
9476
  interface ReverseTransferFnInputSchema { [key: string]: any; }
@@ -9435,7 +9496,7 @@ declare module 'wapi-client/fns/index' {
9435
9496
  /**
9436
9497
  * @internal
9437
9498
  */
9438
- 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, };
9499
+ 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, };
9439
9500
  /**
9440
9501
  * @internal
9441
9502
  */
@@ -9464,6 +9525,7 @@ declare module 'wapi-client/fns/index' {
9464
9525
  getTransfer: import("wapi-client/lib/validator").ValidationFunction;
9465
9526
  getTransferGroup: import("wapi-client/lib/validator").ValidationFunction;
9466
9527
  getWallet: import("wapi-client/lib/validator").ValidationFunction;
9528
+ healthcheck: import("wapi-client/lib/validator").ValidationFunction;
9467
9529
  importData: import("wapi-client/lib/validator").ValidationFunction;
9468
9530
  reverseTransfer: import("wapi-client/lib/validator").ValidationFunction;
9469
9531
  reverseTransferGroup: import("wapi-client/lib/validator").ValidationFunction;
@@ -9504,6 +9566,7 @@ declare module 'wapi-client/fns/index' {
9504
9566
  getTransfer: typeof getTransfer;
9505
9567
  getTransferGroup: typeof getTransferGroup;
9506
9568
  getWallet: typeof getWallet;
9569
+ healthcheck: typeof healthcheck;
9507
9570
  importData: typeof importData;
9508
9571
  reverseTransfer: typeof reverseTransfer;
9509
9572
  reverseTransferGroup: typeof reverseTransferGroup;
@@ -9544,6 +9607,7 @@ declare module 'wapi-client/fns/index' {
9544
9607
  getTransfer = 'getTransfer',
9545
9608
  getTransferGroup = 'getTransferGroup',
9546
9609
  getWallet = 'getWallet',
9610
+ healthcheck = 'healthcheck',
9547
9611
  importData = 'importData',
9548
9612
  reverseTransfer = 'reverseTransfer',
9549
9613
  reverseTransferGroup = 'reverseTransferGroup',
@@ -9661,6 +9725,9 @@ declare module 'wapi-client/txs/index' {
9661
9725
  interface GetWalletManyTxInputSchema { [key: string]: any; }
9662
9726
  interface GetWalletManyTxOutputSchema { [key: string]: any; }
9663
9727
  export { GetWalletManyTxInputSchema, GetWalletManyTxOutputSchema };
9728
+ interface HealthcheckTxInputSchema { [key: string]: any; }
9729
+ interface HealthcheckTxOutputSchema { [key: string]: any; }
9730
+ export { HealthcheckTxInputSchema, HealthcheckTxOutputSchema };
9664
9731
  interface ImportActionsTxInputSchema { [key: string]: any; }
9665
9732
  interface ImportActionsTxOutputSchema { [key: string]: any; }
9666
9733
  export { ImportActionsTxInputSchema, ImportActionsTxOutputSchema };
@@ -9747,6 +9814,7 @@ declare module 'wapi-client/txs/index' {
9747
9814
  getTransferGroup: import("wapi-client/lib/validator").ValidationFunction;
9748
9815
  getWallet: import("wapi-client/lib/validator").ValidationFunction;
9749
9816
  getWalletMany: import("wapi-client/lib/validator").ValidationFunction;
9817
+ healthcheck: import("wapi-client/lib/validator").ValidationFunction;
9750
9818
  importActions: import("wapi-client/lib/validator").ValidationFunction;
9751
9819
  importDatabase: import("wapi-client/lib/validator").ValidationFunction;
9752
9820
  listDatabaseExports: import("wapi-client/lib/validator").ValidationFunction;
@@ -9798,6 +9866,7 @@ declare module 'wapi-client/txs/index' {
9798
9866
  getTransferGroup = 'getTransferGroup',
9799
9867
  getWallet = 'getWallet',
9800
9868
  getWalletMany = 'getWalletMany',
9869
+ healthcheck = 'healthcheck',
9801
9870
  importActions = 'importActions',
9802
9871
  importDatabase = 'importDatabase',
9803
9872
  listDatabaseExports = 'listDatabaseExports',
@@ -9909,6 +9978,9 @@ export * from 'wapi-client/fns/get-transfer-group/get-transfer-group.enums';
9909
9978
  export * from 'wapi-client/fns/get-transfer-group/get-transfer-group';
9910
9979
  export * from 'wapi-client/fns/get-wallet/get-wallet.enums';
9911
9980
  export * from 'wapi-client/fns/get-wallet/get-wallet';
9981
+ export * from 'wapi-client/txs/healthcheck/healthcheck.enums';
9982
+ export * from 'wapi-client/fns/healthcheck/healthcheck.enums';
9983
+ export * from 'wapi-client/fns/healthcheck/healthcheck';
9912
9984
  export * from 'wapi-client/txs/import-actions/import-actions.enums';
9913
9985
  export * from 'wapi-client/txs/update-transfer/update-transfer.enums';
9914
9986
  export * from 'wapi-client/txs/reverse-transfer/reverse-transfer.enums';
@@ -9993,6 +10065,7 @@ export * from 'wapi-client/fns/get-token/get-token.guards';
9993
10065
  export * from 'wapi-client/fns/get-transfer/get-transfer.guards';
9994
10066
  export * from 'wapi-client/fns/get-transfer-group/get-transfer-group.guards';
9995
10067
  export * from 'wapi-client/fns/get-wallet/get-wallet.guards';
10068
+ export * from 'wapi-client/fns/healthcheck/healthcheck.guards';
9996
10069
  export * from 'wapi-client/fns/reverse-transfer/reverse-transfer.guards';
9997
10070
  export * from 'wapi-client/fns/reverse-transfer-group/reverse-transfer-group.guards';
9998
10071
  export * from 'wapi-client/fns/reverse-transfers/reverse-transfers.guards';
@@ -10769,6 +10842,7 @@ declare module 'wapi-client/api/base-client' {
10769
10842
  import { GetTransferTxInput, GetTransferTxOutput } from 'wapi-client/txs/get-transfer/get-transfer.enums';
10770
10843
  import { GetWalletManyTxInput, GetWalletManyTxOutput } from 'wapi-client/txs/get-wallet-many/get-wallet-many.enums';
10771
10844
  import { GetWalletTxInput, GetWalletTxOutput } from 'wapi-client/txs/get-wallet/get-wallet.enums';
10845
+ import { HealthcheckTxInput, HealthcheckTxOutput } from 'wapi-client/txs/healthcheck/healthcheck.enums';
10772
10846
  import { ImportActionsTxInput, ImportActionsTxOutput, ImportActionsTxOptions } from 'wapi-client/txs/import-actions/import-actions.enums';
10773
10847
  import { ImportDatabaseTxInput, ImportDatabaseTxOutput } from 'wapi-client/txs/import-database/import-database.enums';
10774
10848
  import { ListDatabaseExportsTxInput, ListDatabaseExportsTxOutput } from 'wapi-client/txs/list-database-exports/list-database-exports.enums';
@@ -11035,6 +11109,13 @@ declare module 'wapi-client/api/base-client' {
11035
11109
  *
11036
11110
  */
11037
11111
  getWalletMany(input: GetWalletManyTxInput): StreamPromise<GetWalletManyTxOutput>;
11112
+ /**
11113
+ *
11114
+ * @param {HealthcheckTxInput} input
11115
+ * @returns {StreamPromise<HealthcheckTxOutput>}
11116
+ *
11117
+ */
11118
+ healthcheck(input?: HealthcheckTxInput): StreamPromise<HealthcheckTxOutput>;
11038
11119
  /**
11039
11120
  *
11040
11121
  * @param {ImportActionsTxInput} input
@@ -11279,6 +11360,7 @@ declare module 'wapi-client/client' {
11279
11360
  import { GetTransferGroupFnInput, GetTransferGroupFnOptions, GetTransferGroupFnOutput } from 'wapi-client/fns/get-transfer-group/get-transfer-group.enums';
11280
11361
  import { GetTransferFnInput, GetTransferFnOptions, GetTransferFnOutput } from 'wapi-client/fns/get-transfer/get-transfer.enums';
11281
11362
  import { GetWalletFnInput, GetWalletFnOptions, GetWalletFnOutput } from 'wapi-client/fns/get-wallet/get-wallet.enums';
11363
+ import { HealthcheckFnInput, HealthcheckFnOptions, HealthcheckFnOutput } from 'wapi-client/fns/healthcheck/healthcheck.enums';
11282
11364
  import { ImportDataFnOptions, ImportDataFnOutput, ImportDataFnStreamChunk, ImportDataFnInput } from 'wapi-client/fns/import-data/import-data.enums';
11283
11365
  import { ReverseTransferGroupFnInput, ReverseTransferGroupFnOptions, ReverseTransferGroupFnOutput } from 'wapi-client/fns/reverse-transfer-group/reverse-transfer-group.enums';
11284
11366
  import { ReverseTransferFnInput, ReverseTransferFnOptions, ReverseTransferFnOutput } from 'wapi-client/fns/reverse-transfer/reverse-transfer.enums';
@@ -12518,6 +12600,31 @@ declare module 'wapi-client/client' {
12518
12600
  *
12519
12601
  */
12520
12602
  getWallet(input: GetWalletFnInput, options?: GetWalletFnOptions): StreamPromise<GetWalletFnOutput>;
12603
+ /**
12604
+ *
12605
+ * Get health information about service
12606
+ *
12607
+ * ```javascript
12608
+ *
12609
+ * const result = await wapiClient.healthcheck({
12610
+ * }, {
12611
+ * tracking_id: 'mylogId',
12612
+ * });
12613
+ * expect(result).toEqual({
12614
+ * status: 'green',
12615
+ * database_size: '3240MB',
12616
+ * indexes_size: '1234MB',
12617
+ * connection_count: 1,
12618
+ * });
12619
+ *
12620
+ * ```
12621
+ *
12622
+ * @param {HealthcheckFnInput} input
12623
+ * @param {HealthcheckFnOptions} [options]
12624
+ * @returns {StreamPromise<HealthcheckFnOutput>}
12625
+ *
12626
+ */
12627
+ healthcheck(input?: HealthcheckFnInput, options?: HealthcheckFnOptions): StreamPromise<HealthcheckFnOutput>;
12521
12628
  /**
12522
12629
  *
12523
12630
  *
@@ -13366,6 +13473,12 @@ declare module 'wapi-client/fns/get-wallet/get-wallet.guards' {
13366
13473
  import { GetWalletFnOutput } from 'wapi-client/fns/get-wallet/get-wallet.enums';
13367
13474
  export function isGetWalletFnOutput(input: unknown): input is GetWalletFnOutput;
13368
13475
  }
13476
+ declare module 'wapi-client/fns/healthcheck/healthcheck.guards' {
13477
+ import { HealthcheckFnInput } from 'wapi-client/fns/healthcheck/healthcheck.enums';
13478
+ export function isHealthcheckFnInput(input: unknown): input is HealthcheckFnInput;
13479
+ import { HealthcheckFnOutput } from 'wapi-client/fns/healthcheck/healthcheck.enums';
13480
+ export function isHealthcheckFnOutput(input: unknown): input is HealthcheckFnOutput;
13481
+ }
13369
13482
 
13370
13483
  declare module 'wapi-client/fns/reverse-transfer/reverse-transfer.guards' {
13371
13484
  import { ReverseTransferFnInput } from 'wapi-client/fns/reverse-transfer/reverse-transfer.enums';