wapi-client 0.9.0 → 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 (55) 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.js +1 -1
  8. package/dist/client.browser.cjs +27 -0
  9. package/dist/client.browser.js +27 -0
  10. package/dist/client.cjs +28 -1
  11. package/dist/client.d.ts +26 -0
  12. package/dist/client.js +28 -1
  13. package/dist/fns/healthcheck/healthcheck.browser.cjs +56 -0
  14. package/dist/fns/healthcheck/healthcheck.browser.js +38 -0
  15. package/dist/fns/healthcheck/healthcheck.cjs +60 -0
  16. package/dist/fns/healthcheck/healthcheck.d.ts +9 -0
  17. package/dist/fns/healthcheck/healthcheck.enums.browser.cjs +17 -0
  18. package/dist/fns/healthcheck/healthcheck.enums.browser.js +0 -0
  19. package/dist/fns/healthcheck/healthcheck.enums.cjs +17 -0
  20. package/dist/fns/healthcheck/healthcheck.enums.d.ts +20 -0
  21. package/dist/fns/healthcheck/healthcheck.enums.js +0 -0
  22. package/dist/fns/healthcheck/healthcheck.guards.browser.cjs +36 -0
  23. package/dist/fns/healthcheck/healthcheck.guards.browser.js +16 -0
  24. package/dist/fns/healthcheck/healthcheck.guards.cjs +41 -0
  25. package/dist/fns/healthcheck/healthcheck.guards.d.ts +4 -0
  26. package/dist/fns/healthcheck/healthcheck.guards.js +16 -0
  27. package/dist/fns/healthcheck/healthcheck.js +38 -0
  28. package/dist/fns/healthcheck/healthcheck.schema.input.json +25 -0
  29. package/dist/fns/healthcheck/healthcheck.schema.output.json +8 -0
  30. package/dist/fns/index.browser.cjs +9 -0
  31. package/dist/fns/index.browser.js +9 -0
  32. package/dist/fns/index.cjs +12 -0
  33. package/dist/fns/index.d.ts +7 -1
  34. package/dist/fns/index.js +9 -0
  35. package/dist/lib/validator.browser.cjs +40 -0
  36. package/dist/lib/validator.browser.js +40 -0
  37. package/dist/lib/validator.cjs +40 -0
  38. package/dist/lib/validator.d.ts +5 -1
  39. package/dist/lib/validator.js +40 -0
  40. package/dist/txs/healthcheck/healthcheck.enums.browser.cjs +17 -0
  41. package/dist/txs/healthcheck/healthcheck.enums.browser.js +0 -0
  42. package/dist/txs/healthcheck/healthcheck.enums.cjs +17 -0
  43. package/dist/txs/healthcheck/healthcheck.enums.d.ts +22 -0
  44. package/dist/txs/healthcheck/healthcheck.enums.js +0 -0
  45. package/dist/txs/healthcheck/healthcheck.schema.input.json +23 -0
  46. package/dist/txs/healthcheck/healthcheck.schema.output.json +32 -0
  47. package/dist/txs/index.browser.cjs +7 -0
  48. package/dist/txs/index.browser.js +7 -0
  49. package/dist/txs/index.cjs +9 -0
  50. package/dist/txs/index.d.ts +5 -0
  51. package/dist/txs/index.js +7 -0
  52. package/dist/types/index.d.ts +118 -2
  53. package/dist/wapi-client-web.iife.js +6 -6
  54. package/dist/wapi-client.iife.js +6 -6
  55. package/package.json +1 -1
@@ -1757,7 +1757,7 @@ declare module 'wapi-client/lib/validator' {
1757
1757
  inputCopy: M;
1758
1758
  error?: ValidationError;
1759
1759
  }
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';
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' | '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
1761
  /**
1762
1762
  * @internal
1763
1763
  */
@@ -1836,6 +1836,8 @@ declare module 'wapi-client/lib/validator' {
1836
1836
  GetTransferGroupFnOutput = 'GetTransferGroupFnOutput',
1837
1837
  GetWalletFnInput = 'GetWalletFnInput',
1838
1838
  GetWalletFnOutput = 'GetWalletFnOutput',
1839
+ HealthcheckFnInput = 'HealthcheckFnInput',
1840
+ HealthcheckFnOutput = 'HealthcheckFnOutput',
1839
1841
  ImportDataFnInput = 'ImportDataFnInput',
1840
1842
  ImportDataFnOptions = 'ImportDataFnOptions',
1841
1843
  ImportDataFnStreamChunk = 'ImportDataFnStreamChunk',
@@ -1922,6 +1924,8 @@ declare module 'wapi-client/lib/validator' {
1922
1924
  GetWalletTxOutput = 'GetWalletTxOutput',
1923
1925
  GetWalletManyTxInput = 'GetWalletManyTxInput',
1924
1926
  GetWalletManyTxOutput = 'GetWalletManyTxOutput',
1927
+ HealthcheckTxInput = 'HealthcheckTxInput',
1928
+ HealthcheckTxOutput = 'HealthcheckTxOutput',
1925
1929
  ImportActionsTxInput = 'ImportActionsTxInput',
1926
1930
  ImportActionsTxOptions = 'ImportActionsTxOptions',
1927
1931
  ImportActionsTxStreamChunk = 'ImportActionsTxStreamChunk',
@@ -7602,6 +7606,63 @@ declare module 'wapi-client/fns/get-wallet/get-wallet' {
7602
7606
  */
7603
7607
  export function getWallet(options: ClientFunctionOptions, input: GetWalletFnInput, fnOptions?: GetWalletFnOptions): StreamPromise<GetWalletFnOutput>;
7604
7608
  }
7609
+ declare module 'wapi-client/txs/healthcheck/healthcheck.enums' {
7610
+ import { ITxGeneralOptionsWithoutTx } from 'wapi-client/txs/tx-consts.enums';
7611
+ export type HealthcheckTxOptions = ITxGeneralOptionsWithoutTx;
7612
+ /**
7613
+ * Input for healthcheck
7614
+ *
7615
+ * @category Input
7616
+ */
7617
+ export interface HealthcheckTxInput {
7618
+ options?: HealthcheckTxOptions;
7619
+ }
7620
+ /**
7621
+ * Output of healthcheck
7622
+ *
7623
+ * @category Output
7624
+ */
7625
+ export interface HealthcheckTxOutput {
7626
+ status: 'green' | 'yellow' | 'red';
7627
+ message?: string;
7628
+ database_size?: string;
7629
+ indexes_size?: string;
7630
+ connection_count?: number;
7631
+ }
7632
+ }
7633
+ declare module 'wapi-client/fns/healthcheck/healthcheck.enums' {
7634
+ import { HealthcheckTxOptions, HealthcheckTxOutput } from 'wapi-client/txs/healthcheck/healthcheck.enums';
7635
+ /**
7636
+ * Optional flags for input
7637
+ */
7638
+ export type HealthcheckFnOptions = HealthcheckTxOptions;
7639
+ /**
7640
+ * Input for healthcheck
7641
+ *
7642
+ * @category Input
7643
+ */
7644
+ export interface HealthcheckFnInput {
7645
+ options?: HealthcheckFnOptions;
7646
+ }
7647
+ /**
7648
+ * Output of healthcheck
7649
+ *
7650
+ * @category Output
7651
+ */
7652
+ export interface HealthcheckFnOutput extends HealthcheckTxOutput {
7653
+ }
7654
+ }
7655
+ declare module 'wapi-client/fns/healthcheck/healthcheck' {
7656
+ import { ClientFunctionOptions } from 'wapi-client/fns/fn-consts.enums';
7657
+ import { StreamPromise } from 'wapi-client/lib/stream-promise';
7658
+ import { HealthcheckFnInput, HealthcheckFnOptions, HealthcheckFnOutput } from 'wapi-client/fns/healthcheck/healthcheck.enums';
7659
+ /**
7660
+ * @internal
7661
+ *
7662
+ * Get information about wallet
7663
+ */
7664
+ export function healthcheck(options: ClientFunctionOptions, input: HealthcheckFnInput, fnOptions?: HealthcheckFnOptions): StreamPromise<HealthcheckFnOutput>;
7665
+ }
7605
7666
  declare module 'wapi-client/txs/import-actions/import-actions.enums' {
7606
7667
  import { ITxGeneralOptions } from 'wapi-client/txs/tx-consts.enums';
7607
7668
  import { WalletTableInput } from 'wapi-client/db/wallet/wallet.enums';
@@ -9351,6 +9412,7 @@ declare module 'wapi-client/fns/index' {
9351
9412
  import { getTransfer } from 'wapi-client/fns/get-transfer/get-transfer';
9352
9413
  import { getTransferGroup } from 'wapi-client/fns/get-transfer-group/get-transfer-group';
9353
9414
  import { getWallet } from 'wapi-client/fns/get-wallet/get-wallet';
9415
+ import { healthcheck } from 'wapi-client/fns/healthcheck/healthcheck';
9354
9416
  import { importData } from 'wapi-client/fns/import-data/import-data';
9355
9417
  import { reverseTransfer } from 'wapi-client/fns/reverse-transfer/reverse-transfer';
9356
9418
  import { reverseTransferGroup } from 'wapi-client/fns/reverse-transfer-group/reverse-transfer-group';
@@ -9410,6 +9472,8 @@ declare module 'wapi-client/fns/index' {
9410
9472
  interface GetTransferGroupFnOutputSchema { [key: string]: any; }
9411
9473
  interface GetWalletFnInputSchema { [key: string]: any; }
9412
9474
  interface GetWalletFnOutputSchema { [key: string]: any; }
9475
+ interface HealthcheckFnInputSchema { [key: string]: any; }
9476
+ interface HealthcheckFnOutputSchema { [key: string]: any; }
9413
9477
  interface ImportDataFnInputSchema { [key: string]: any; }
9414
9478
  interface ImportDataFnOutputSchema { [key: string]: any; }
9415
9479
  interface ReverseTransferFnInputSchema { [key: string]: any; }
@@ -9435,7 +9499,7 @@ declare module 'wapi-client/fns/index' {
9435
9499
  /**
9436
9500
  * @internal
9437
9501
  */
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, };
9502
+ 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
9503
  /**
9440
9504
  * @internal
9441
9505
  */
@@ -9464,6 +9528,7 @@ declare module 'wapi-client/fns/index' {
9464
9528
  getTransfer: import("wapi-client/lib/validator").ValidationFunction;
9465
9529
  getTransferGroup: import("wapi-client/lib/validator").ValidationFunction;
9466
9530
  getWallet: import("wapi-client/lib/validator").ValidationFunction;
9531
+ healthcheck: import("wapi-client/lib/validator").ValidationFunction;
9467
9532
  importData: import("wapi-client/lib/validator").ValidationFunction;
9468
9533
  reverseTransfer: import("wapi-client/lib/validator").ValidationFunction;
9469
9534
  reverseTransferGroup: import("wapi-client/lib/validator").ValidationFunction;
@@ -9504,6 +9569,7 @@ declare module 'wapi-client/fns/index' {
9504
9569
  getTransfer: typeof getTransfer;
9505
9570
  getTransferGroup: typeof getTransferGroup;
9506
9571
  getWallet: typeof getWallet;
9572
+ healthcheck: typeof healthcheck;
9507
9573
  importData: typeof importData;
9508
9574
  reverseTransfer: typeof reverseTransfer;
9509
9575
  reverseTransferGroup: typeof reverseTransferGroup;
@@ -9544,6 +9610,7 @@ declare module 'wapi-client/fns/index' {
9544
9610
  getTransfer = 'getTransfer',
9545
9611
  getTransferGroup = 'getTransferGroup',
9546
9612
  getWallet = 'getWallet',
9613
+ healthcheck = 'healthcheck',
9547
9614
  importData = 'importData',
9548
9615
  reverseTransfer = 'reverseTransfer',
9549
9616
  reverseTransferGroup = 'reverseTransferGroup',
@@ -9661,6 +9728,9 @@ declare module 'wapi-client/txs/index' {
9661
9728
  interface GetWalletManyTxInputSchema { [key: string]: any; }
9662
9729
  interface GetWalletManyTxOutputSchema { [key: string]: any; }
9663
9730
  export { GetWalletManyTxInputSchema, GetWalletManyTxOutputSchema };
9731
+ interface HealthcheckTxInputSchema { [key: string]: any; }
9732
+ interface HealthcheckTxOutputSchema { [key: string]: any; }
9733
+ export { HealthcheckTxInputSchema, HealthcheckTxOutputSchema };
9664
9734
  interface ImportActionsTxInputSchema { [key: string]: any; }
9665
9735
  interface ImportActionsTxOutputSchema { [key: string]: any; }
9666
9736
  export { ImportActionsTxInputSchema, ImportActionsTxOutputSchema };
@@ -9747,6 +9817,7 @@ declare module 'wapi-client/txs/index' {
9747
9817
  getTransferGroup: import("wapi-client/lib/validator").ValidationFunction;
9748
9818
  getWallet: import("wapi-client/lib/validator").ValidationFunction;
9749
9819
  getWalletMany: import("wapi-client/lib/validator").ValidationFunction;
9820
+ healthcheck: import("wapi-client/lib/validator").ValidationFunction;
9750
9821
  importActions: import("wapi-client/lib/validator").ValidationFunction;
9751
9822
  importDatabase: import("wapi-client/lib/validator").ValidationFunction;
9752
9823
  listDatabaseExports: import("wapi-client/lib/validator").ValidationFunction;
@@ -9798,6 +9869,7 @@ declare module 'wapi-client/txs/index' {
9798
9869
  getTransferGroup = 'getTransferGroup',
9799
9870
  getWallet = 'getWallet',
9800
9871
  getWalletMany = 'getWalletMany',
9872
+ healthcheck = 'healthcheck',
9801
9873
  importActions = 'importActions',
9802
9874
  importDatabase = 'importDatabase',
9803
9875
  listDatabaseExports = 'listDatabaseExports',
@@ -9909,6 +9981,9 @@ export * from 'wapi-client/fns/get-transfer-group/get-transfer-group.enums';
9909
9981
  export * from 'wapi-client/fns/get-transfer-group/get-transfer-group';
9910
9982
  export * from 'wapi-client/fns/get-wallet/get-wallet.enums';
9911
9983
  export * from 'wapi-client/fns/get-wallet/get-wallet';
9984
+ export * from 'wapi-client/txs/healthcheck/healthcheck.enums';
9985
+ export * from 'wapi-client/fns/healthcheck/healthcheck.enums';
9986
+ export * from 'wapi-client/fns/healthcheck/healthcheck';
9912
9987
  export * from 'wapi-client/txs/import-actions/import-actions.enums';
9913
9988
  export * from 'wapi-client/txs/update-transfer/update-transfer.enums';
9914
9989
  export * from 'wapi-client/txs/reverse-transfer/reverse-transfer.enums';
@@ -9993,6 +10068,7 @@ export * from 'wapi-client/fns/get-token/get-token.guards';
9993
10068
  export * from 'wapi-client/fns/get-transfer/get-transfer.guards';
9994
10069
  export * from 'wapi-client/fns/get-transfer-group/get-transfer-group.guards';
9995
10070
  export * from 'wapi-client/fns/get-wallet/get-wallet.guards';
10071
+ export * from 'wapi-client/fns/healthcheck/healthcheck.guards';
9996
10072
  export * from 'wapi-client/fns/reverse-transfer/reverse-transfer.guards';
9997
10073
  export * from 'wapi-client/fns/reverse-transfer-group/reverse-transfer-group.guards';
9998
10074
  export * from 'wapi-client/fns/reverse-transfers/reverse-transfers.guards';
@@ -10769,6 +10845,7 @@ declare module 'wapi-client/api/base-client' {
10769
10845
  import { GetTransferTxInput, GetTransferTxOutput } from 'wapi-client/txs/get-transfer/get-transfer.enums';
10770
10846
  import { GetWalletManyTxInput, GetWalletManyTxOutput } from 'wapi-client/txs/get-wallet-many/get-wallet-many.enums';
10771
10847
  import { GetWalletTxInput, GetWalletTxOutput } from 'wapi-client/txs/get-wallet/get-wallet.enums';
10848
+ import { HealthcheckTxInput, HealthcheckTxOutput } from 'wapi-client/txs/healthcheck/healthcheck.enums';
10772
10849
  import { ImportActionsTxInput, ImportActionsTxOutput, ImportActionsTxOptions } from 'wapi-client/txs/import-actions/import-actions.enums';
10773
10850
  import { ImportDatabaseTxInput, ImportDatabaseTxOutput } from 'wapi-client/txs/import-database/import-database.enums';
10774
10851
  import { ListDatabaseExportsTxInput, ListDatabaseExportsTxOutput } from 'wapi-client/txs/list-database-exports/list-database-exports.enums';
@@ -11035,6 +11112,13 @@ declare module 'wapi-client/api/base-client' {
11035
11112
  *
11036
11113
  */
11037
11114
  getWalletMany(input: GetWalletManyTxInput): StreamPromise<GetWalletManyTxOutput>;
11115
+ /**
11116
+ *
11117
+ * @param {HealthcheckTxInput} input
11118
+ * @returns {StreamPromise<HealthcheckTxOutput>}
11119
+ *
11120
+ */
11121
+ healthcheck(input?: HealthcheckTxInput): StreamPromise<HealthcheckTxOutput>;
11038
11122
  /**
11039
11123
  *
11040
11124
  * @param {ImportActionsTxInput} input
@@ -11279,6 +11363,7 @@ declare module 'wapi-client/client' {
11279
11363
  import { GetTransferGroupFnInput, GetTransferGroupFnOptions, GetTransferGroupFnOutput } from 'wapi-client/fns/get-transfer-group/get-transfer-group.enums';
11280
11364
  import { GetTransferFnInput, GetTransferFnOptions, GetTransferFnOutput } from 'wapi-client/fns/get-transfer/get-transfer.enums';
11281
11365
  import { GetWalletFnInput, GetWalletFnOptions, GetWalletFnOutput } from 'wapi-client/fns/get-wallet/get-wallet.enums';
11366
+ import { HealthcheckFnInput, HealthcheckFnOptions, HealthcheckFnOutput } from 'wapi-client/fns/healthcheck/healthcheck.enums';
11282
11367
  import { ImportDataFnOptions, ImportDataFnOutput, ImportDataFnStreamChunk, ImportDataFnInput } from 'wapi-client/fns/import-data/import-data.enums';
11283
11368
  import { ReverseTransferGroupFnInput, ReverseTransferGroupFnOptions, ReverseTransferGroupFnOutput } from 'wapi-client/fns/reverse-transfer-group/reverse-transfer-group.enums';
11284
11369
  import { ReverseTransferFnInput, ReverseTransferFnOptions, ReverseTransferFnOutput } from 'wapi-client/fns/reverse-transfer/reverse-transfer.enums';
@@ -12518,6 +12603,31 @@ declare module 'wapi-client/client' {
12518
12603
  *
12519
12604
  */
12520
12605
  getWallet(input: GetWalletFnInput, options?: GetWalletFnOptions): StreamPromise<GetWalletFnOutput>;
12606
+ /**
12607
+ *
12608
+ * Get health information about service
12609
+ *
12610
+ * ```javascript
12611
+ *
12612
+ * const result = await wapiClient.healthcheck({
12613
+ * }, {
12614
+ * tracking_id: 'mylogId',
12615
+ * });
12616
+ * expect(result).toEqual({
12617
+ * status: 'green',
12618
+ * database_size: '3240MB',
12619
+ * indexes_size: '1234MB',
12620
+ * connection_count: 1,
12621
+ * });
12622
+ *
12623
+ * ```
12624
+ *
12625
+ * @param {HealthcheckFnInput} input
12626
+ * @param {HealthcheckFnOptions} [options]
12627
+ * @returns {StreamPromise<HealthcheckFnOutput>}
12628
+ *
12629
+ */
12630
+ healthcheck(input?: HealthcheckFnInput, options?: HealthcheckFnOptions): StreamPromise<HealthcheckFnOutput>;
12521
12631
  /**
12522
12632
  *
12523
12633
  *
@@ -13366,6 +13476,12 @@ declare module 'wapi-client/fns/get-wallet/get-wallet.guards' {
13366
13476
  import { GetWalletFnOutput } from 'wapi-client/fns/get-wallet/get-wallet.enums';
13367
13477
  export function isGetWalletFnOutput(input: unknown): input is GetWalletFnOutput;
13368
13478
  }
13479
+ declare module 'wapi-client/fns/healthcheck/healthcheck.guards' {
13480
+ import { HealthcheckFnInput } from 'wapi-client/fns/healthcheck/healthcheck.enums';
13481
+ export function isHealthcheckFnInput(input: unknown): input is HealthcheckFnInput;
13482
+ import { HealthcheckFnOutput } from 'wapi-client/fns/healthcheck/healthcheck.enums';
13483
+ export function isHealthcheckFnOutput(input: unknown): input is HealthcheckFnOutput;
13484
+ }
13369
13485
 
13370
13486
  declare module 'wapi-client/fns/reverse-transfer/reverse-transfer.guards' {
13371
13487
  import { ReverseTransferFnInput } from 'wapi-client/fns/reverse-transfer/reverse-transfer.enums';