wapi-client 0.15.5 → 0.16.0-beta.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 (44) hide show
  1. package/dist/api/base-client.browser.cjs +62 -41
  2. package/dist/api/base-client.browser.js +62 -41
  3. package/dist/api/base-client.cjs +62 -41
  4. package/dist/api/base-client.js +62 -41
  5. package/dist/api/http-client.browser.cjs +13 -13
  6. package/dist/api/http-client.browser.js +14 -14
  7. package/dist/api/http-client.cjs +13 -13
  8. package/dist/api/http-client.js +14 -14
  9. package/dist/api/ws-client.browser.cjs +2 -2
  10. package/dist/api/ws-client.browser.js +2 -2
  11. package/dist/api/ws-client.cjs +2 -2
  12. package/dist/api/ws-client.js +2 -2
  13. package/dist/client-options.schema.zod.browser.cjs +12 -17
  14. package/dist/client-options.schema.zod.browser.js +12 -17
  15. package/dist/client-options.schema.zod.cjs +15 -21
  16. package/dist/client-options.schema.zod.js +12 -17
  17. package/dist/client.browser.cjs +19 -5
  18. package/dist/client.browser.js +19 -5
  19. package/dist/client.cjs +19 -5
  20. package/dist/client.js +19 -5
  21. package/dist/lib/env.browser.cjs +1 -1
  22. package/dist/lib/env.browser.js +1 -1
  23. package/dist/lib/env.cjs +1 -1
  24. package/dist/lib/env.js +1 -1
  25. package/dist/lib/errors.browser.cjs +5 -0
  26. package/dist/lib/errors.browser.js +5 -0
  27. package/dist/lib/errors.cjs +5 -0
  28. package/dist/lib/errors.js +5 -0
  29. package/dist/lib/utils.browser.cjs +10 -4
  30. package/dist/lib/utils.browser.js +10 -4
  31. package/dist/lib/utils.cjs +11 -4
  32. package/dist/lib/utils.js +10 -4
  33. package/dist/txs/get-transfer-group/get-transfer-group.schema.zod.browser.cjs +8 -1
  34. package/dist/txs/get-transfer-group/get-transfer-group.schema.zod.browser.js +8 -1
  35. package/dist/txs/get-transfer-group/get-transfer-group.schema.zod.cjs +8 -1
  36. package/dist/txs/get-transfer-group/get-transfer-group.schema.zod.js +8 -1
  37. package/dist/types/wapi-client.d.ts +667 -52
  38. package/dist/wapi-client-web.iife.js +7 -7
  39. package/dist/wapi-client.browser.cjs +4 -6
  40. package/dist/wapi-client.browser.js +5 -10
  41. package/dist/wapi-client.cjs +4 -6
  42. package/dist/wapi-client.iife.js +7 -7
  43. package/dist/wapi-client.js +5 -10
  44. package/package.json +2 -2
@@ -224,6 +224,7 @@ declare module "wapi-client/lib/errors" {
224
224
  TRANSACTION_TIMEOUT: ErrorSpec;
225
225
  CONNECTION_TIMEOUT: ErrorSpec;
226
226
  SENDING_TIMEOUT: ErrorSpec;
227
+ REQUEST_TIMEOUT: ErrorSpec;
227
228
  CONFIG_INVALID: ErrorSpec;
228
229
  };
229
230
  };
@@ -322,6 +323,7 @@ declare module "wapi-client/lib/errors" {
322
323
  TRANSACTION_TIMEOUT: ErrorSpec;
323
324
  CONNECTION_TIMEOUT: ErrorSpec;
324
325
  SENDING_TIMEOUT: ErrorSpec;
326
+ REQUEST_TIMEOUT: ErrorSpec;
325
327
  CONFIG_INVALID: ErrorSpec;
326
328
  AUTHENTICATION_ERROR: ErrorSpec;
327
329
  AUTHORIZATION_ERROR: ErrorSpec;
@@ -418,6 +420,7 @@ declare module "wapi-client/lib/errors" {
418
420
  TRANSACTION_TIMEOUT: "TRANSACTION_TIMEOUT";
419
421
  CONNECTION_TIMEOUT: "CONNECTION_TIMEOUT";
420
422
  SENDING_TIMEOUT: "SENDING_TIMEOUT";
423
+ REQUEST_TIMEOUT: "REQUEST_TIMEOUT";
421
424
  CONFIG_INVALID: "CONFIG_INVALID";
422
425
  AUTHENTICATION_ERROR: "AUTHENTICATION_ERROR";
423
426
  AUTHORIZATION_ERROR: "AUTHORIZATION_ERROR";
@@ -1566,6 +1569,11 @@ declare module "wapi-client/lib/utils" {
1566
1569
  [key: string]: string | undefined;
1567
1570
  }): string;
1568
1571
  export function getConnectionUrl(config: EWapiConnectionOptions): string;
1572
+ export function getBasicAuth({ apikey, apisecret, database, }: {
1573
+ apikey: string;
1574
+ apisecret: string;
1575
+ database?: string;
1576
+ }): string;
1569
1577
  export function getConnectionParams(config: EWapiConnectionOptions): [string, {
1570
1578
  rejectUnauthorized: boolean;
1571
1579
  }?];
@@ -1666,18 +1674,18 @@ declare module "wapi-client/lib/stream-promise" {
1666
1674
  }
1667
1675
  }
1668
1676
  declare module "wapi-client/api/http-client" {
1669
- import { ConnectionConfig, WapiHttpConnectionOptions } from "wapi-client/api/index";
1677
+ import { ConnectionConfig, WapiConnectionOptions } from "wapi-client/api/index";
1670
1678
  import { JSONRPCRequest, JSONRPCResponse } from "wapi-client/api/jsonrpc/jsonrpc.enums";
1671
1679
  import { BaseClient } from "wapi-client/api/base-client";
1672
1680
  export interface HttpConnectionClient {
1673
- send: (data: string, jwt: string) => void;
1681
+ send: (data: string) => void;
1674
1682
  onmessage: (response: JSONRPCResponse) => void;
1675
1683
  $connect: Promise<undefined>;
1676
1684
  }
1677
- export function createHttpClient(opts: WapiHttpConnectionOptions, config?: ConnectionConfig): HttpClient;
1685
+ export function createHttpClient(opts: WapiConnectionOptions, config?: ConnectionConfig): HttpClient;
1678
1686
  export class HttpClient extends BaseClient {
1679
1687
  protected _connection: HttpConnectionClient;
1680
- constructor(connection: HttpConnectionClient, opts: WapiHttpConnectionOptions);
1688
+ constructor(connection: HttpConnectionClient, opts: WapiConnectionOptions);
1681
1689
  protected _send(input: JSONRPCRequest | JSONRPCResponse): void;
1682
1690
  private _ready;
1683
1691
  close(): Promise<void>;
@@ -2561,6 +2569,8 @@ declare module "wapi-client/txs/get-transfer-group/get-transfer-group.schema.zod
2561
2569
  transaction_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2562
2570
  create_if_not_exists: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2563
2571
  return_only_id: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2572
+ return_transfers: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2573
+ return_reversed_by: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2564
2574
  }, z.core.$strip>;
2565
2575
  export const getTransferGroupTxInputSchema: z.ZodObject<{
2566
2576
  transfer_group: z.ZodNonOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
@@ -2587,6 +2597,8 @@ declare module "wapi-client/txs/get-transfer-group/get-transfer-group.schema.zod
2587
2597
  transaction_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2588
2598
  create_if_not_exists: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2589
2599
  return_only_id: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2600
+ return_transfers: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2601
+ return_reversed_by: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2590
2602
  }, z.core.$strip>>;
2591
2603
  }, z.core.$strict>;
2592
2604
  export const transferGroupOutputSchema: z.ZodObject<{
@@ -2615,6 +2627,40 @@ declare module "wapi-client/txs/get-transfer-group/get-transfer-group.schema.zod
2615
2627
  distribution: "distribution";
2616
2628
  }>>;
2617
2629
  reverses_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2630
+ transfers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2631
+ id: z.ZodNumber;
2632
+ identifier: z.ZodString;
2633
+ control_hash: z.ZodNullable<z.ZodString>;
2634
+ from_wallet_id: z.ZodNumber;
2635
+ to_wallet_id: z.ZodNumber;
2636
+ token_id: z.ZodNumber;
2637
+ amount: z.ZodNumber;
2638
+ type: z.ZodEnum<{
2639
+ transfer: "transfer";
2640
+ deposit: "deposit";
2641
+ withdrawal: "withdrawal";
2642
+ }>;
2643
+ status: z.ZodEnum<{
2644
+ pending: "pending";
2645
+ finished: "finished";
2646
+ cancelled: "cancelled";
2647
+ }>;
2648
+ force: z.ZodDefault<z.ZodBoolean>;
2649
+ auto_hash: z.ZodDefault<z.ZodBoolean>;
2650
+ created_at: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>;
2651
+ updated_at: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>;
2652
+ metadata: z.ZodOptional<z.ZodType<import("wapi-client/db/consts").Metadata, unknown, z.core.$ZodTypeInternals<import("wapi-client/db/consts").Metadata, unknown>>>;
2653
+ transfer_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2654
+ reverses_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2655
+ status_finalized_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>>;
2656
+ group_validate: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2657
+ from_wallet_foreign: z.ZodString;
2658
+ to_wallet_foreign: z.ZodString;
2659
+ token_foreign: z.ZodString;
2660
+ transfer_group_identifier: z.ZodNullable<z.ZodString>;
2661
+ reverses_identifier: z.ZodNullable<z.ZodString>;
2662
+ }, z.core.$strict>>>>;
2663
+ reversed_by_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2618
2664
  }, z.core.$strict>;
2619
2665
  export const getTransferGroupTxOutputSchema: z.ZodObject<{
2620
2666
  transfer_group: z.ZodOptional<z.ZodObject<{
@@ -2643,6 +2689,40 @@ declare module "wapi-client/txs/get-transfer-group/get-transfer-group.schema.zod
2643
2689
  distribution: "distribution";
2644
2690
  }>>;
2645
2691
  reverses_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2692
+ transfers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2693
+ id: z.ZodNumber;
2694
+ identifier: z.ZodString;
2695
+ control_hash: z.ZodNullable<z.ZodString>;
2696
+ from_wallet_id: z.ZodNumber;
2697
+ to_wallet_id: z.ZodNumber;
2698
+ token_id: z.ZodNumber;
2699
+ amount: z.ZodNumber;
2700
+ type: z.ZodEnum<{
2701
+ transfer: "transfer";
2702
+ deposit: "deposit";
2703
+ withdrawal: "withdrawal";
2704
+ }>;
2705
+ status: z.ZodEnum<{
2706
+ pending: "pending";
2707
+ finished: "finished";
2708
+ cancelled: "cancelled";
2709
+ }>;
2710
+ force: z.ZodDefault<z.ZodBoolean>;
2711
+ auto_hash: z.ZodDefault<z.ZodBoolean>;
2712
+ created_at: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>;
2713
+ updated_at: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>;
2714
+ metadata: z.ZodOptional<z.ZodType<import("wapi-client/db/consts").Metadata, unknown, z.core.$ZodTypeInternals<import("wapi-client/db/consts").Metadata, unknown>>>;
2715
+ transfer_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2716
+ reverses_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2717
+ status_finalized_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>>;
2718
+ group_validate: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2719
+ from_wallet_foreign: z.ZodString;
2720
+ to_wallet_foreign: z.ZodString;
2721
+ token_foreign: z.ZodString;
2722
+ transfer_group_identifier: z.ZodNullable<z.ZodString>;
2723
+ reverses_identifier: z.ZodNullable<z.ZodString>;
2724
+ }, z.core.$strict>>>>;
2725
+ reversed_by_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2646
2726
  }, z.core.$strict>>;
2647
2727
  }, z.core.$strip>;
2648
2728
  }
@@ -14669,6 +14749,40 @@ declare module "wapi-client/txs/find-transfer-group-many/find-transfer-group-man
14669
14749
  distribution: "distribution";
14670
14750
  }>>;
14671
14751
  reverses_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14752
+ transfers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
14753
+ id: z.ZodNumber;
14754
+ identifier: z.ZodString;
14755
+ control_hash: z.ZodNullable<z.ZodString>;
14756
+ from_wallet_id: z.ZodNumber;
14757
+ to_wallet_id: z.ZodNumber;
14758
+ token_id: z.ZodNumber;
14759
+ amount: z.ZodNumber;
14760
+ type: z.ZodEnum<{
14761
+ transfer: "transfer";
14762
+ deposit: "deposit";
14763
+ withdrawal: "withdrawal";
14764
+ }>;
14765
+ status: z.ZodEnum<{
14766
+ pending: "pending";
14767
+ finished: "finished";
14768
+ cancelled: "cancelled";
14769
+ }>;
14770
+ force: z.ZodDefault<z.ZodBoolean>;
14771
+ auto_hash: z.ZodDefault<z.ZodBoolean>;
14772
+ created_at: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>;
14773
+ updated_at: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>;
14774
+ metadata: z.ZodOptional<z.ZodType<import("wapi-client/db/consts").Metadata, unknown, z.core.$ZodTypeInternals<import("wapi-client/db/consts").Metadata, unknown>>>;
14775
+ transfer_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14776
+ reverses_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14777
+ status_finalized_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>>;
14778
+ group_validate: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
14779
+ from_wallet_foreign: z.ZodString;
14780
+ to_wallet_foreign: z.ZodString;
14781
+ token_foreign: z.ZodString;
14782
+ transfer_group_identifier: z.ZodNullable<z.ZodString>;
14783
+ reverses_identifier: z.ZodNullable<z.ZodString>;
14784
+ }, z.core.$strict>>>>;
14785
+ reversed_by_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14672
14786
  transfers_count: z.ZodOptional<z.ZodNumber>;
14673
14787
  }, z.core.$strict>;
14674
14788
  export const findTransferGroupManyTxInputOptionsSchema: z.ZodObject<{
@@ -14718,6 +14832,8 @@ declare module "wapi-client/txs/find-transfer-group-many/find-transfer-group-man
14718
14832
  validate_final_balance_only: "validate_final_balance_only";
14719
14833
  transfer_status: "transfer_status";
14720
14834
  reverses_identifier: "reverses_identifier";
14835
+ transfers: "transfers";
14836
+ reversed_by_identifier: "reversed_by_identifier";
14721
14837
  transfers_count: "transfers_count";
14722
14838
  }>>>;
14723
14839
  deselect: z.ZodOptional<z.ZodArray<z.ZodEnum<{
@@ -14735,6 +14851,8 @@ declare module "wapi-client/txs/find-transfer-group-many/find-transfer-group-man
14735
14851
  validate_final_balance_only: "validate_final_balance_only";
14736
14852
  transfer_status: "transfer_status";
14737
14853
  reverses_identifier: "reverses_identifier";
14854
+ transfers: "transfers";
14855
+ reversed_by_identifier: "reversed_by_identifier";
14738
14856
  transfers_count: "transfers_count";
14739
14857
  }>>>;
14740
14858
  }, z.core.$strip>;
@@ -15278,6 +15396,8 @@ declare module "wapi-client/txs/find-transfer-group-many/find-transfer-group-man
15278
15396
  validate_final_balance_only: "validate_final_balance_only";
15279
15397
  transfer_status: "transfer_status";
15280
15398
  reverses_identifier: "reverses_identifier";
15399
+ transfers: "transfers";
15400
+ reversed_by_identifier: "reversed_by_identifier";
15281
15401
  transfers_count: "transfers_count";
15282
15402
  }>>>;
15283
15403
  deselect: z.ZodOptional<z.ZodArray<z.ZodEnum<{
@@ -15295,6 +15415,8 @@ declare module "wapi-client/txs/find-transfer-group-many/find-transfer-group-man
15295
15415
  validate_final_balance_only: "validate_final_balance_only";
15296
15416
  transfer_status: "transfer_status";
15297
15417
  reverses_identifier: "reverses_identifier";
15418
+ transfers: "transfers";
15419
+ reversed_by_identifier: "reversed_by_identifier";
15298
15420
  transfers_count: "transfers_count";
15299
15421
  }>>>;
15300
15422
  }, z.core.$strip>>;
@@ -15326,6 +15448,40 @@ declare module "wapi-client/txs/find-transfer-group-many/find-transfer-group-man
15326
15448
  distribution: "distribution";
15327
15449
  }>>>;
15328
15450
  reverses_identifier: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
15451
+ transfers: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
15452
+ id: z.ZodNumber;
15453
+ identifier: z.ZodString;
15454
+ control_hash: z.ZodNullable<z.ZodString>;
15455
+ from_wallet_id: z.ZodNumber;
15456
+ to_wallet_id: z.ZodNumber;
15457
+ token_id: z.ZodNumber;
15458
+ amount: z.ZodNumber;
15459
+ type: z.ZodEnum<{
15460
+ transfer: "transfer";
15461
+ deposit: "deposit";
15462
+ withdrawal: "withdrawal";
15463
+ }>;
15464
+ status: z.ZodEnum<{
15465
+ pending: "pending";
15466
+ finished: "finished";
15467
+ cancelled: "cancelled";
15468
+ }>;
15469
+ force: z.ZodDefault<z.ZodBoolean>;
15470
+ auto_hash: z.ZodDefault<z.ZodBoolean>;
15471
+ created_at: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>;
15472
+ updated_at: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>;
15473
+ metadata: z.ZodOptional<z.ZodType<import("wapi-client/db/consts").Metadata, unknown, z.core.$ZodTypeInternals<import("wapi-client/db/consts").Metadata, unknown>>>;
15474
+ transfer_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15475
+ reverses_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15476
+ status_finalized_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>>;
15477
+ group_validate: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
15478
+ from_wallet_foreign: z.ZodString;
15479
+ to_wallet_foreign: z.ZodString;
15480
+ token_foreign: z.ZodString;
15481
+ transfer_group_identifier: z.ZodNullable<z.ZodString>;
15482
+ reverses_identifier: z.ZodNullable<z.ZodString>;
15483
+ }, z.core.$strict>>>>>;
15484
+ reversed_by_identifier: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
15329
15485
  transfers_count: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
15330
15486
  }, z.core.$strict>>>>;
15331
15487
  metadata: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
@@ -15395,6 +15551,8 @@ declare module "wapi-client/txs/export-transfer-group-many/export-transfer-group
15395
15551
  validate_final_balance_only: "validate_final_balance_only";
15396
15552
  transfer_status: "transfer_status";
15397
15553
  reverses_identifier: "reverses_identifier";
15554
+ transfers: "transfers";
15555
+ reversed_by_identifier: "reversed_by_identifier";
15398
15556
  transfers_count: "transfers_count";
15399
15557
  }>>>;
15400
15558
  deselect: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
@@ -15412,6 +15570,8 @@ declare module "wapi-client/txs/export-transfer-group-many/export-transfer-group
15412
15570
  validate_final_balance_only: "validate_final_balance_only";
15413
15571
  transfer_status: "transfer_status";
15414
15572
  reverses_identifier: "reverses_identifier";
15573
+ transfers: "transfers";
15574
+ reversed_by_identifier: "reversed_by_identifier";
15415
15575
  transfers_count: "transfers_count";
15416
15576
  }>>>;
15417
15577
  }, import("zod/v4/core").$strip>;
@@ -15612,6 +15772,8 @@ declare module "wapi-client/txs/export-transfer-group-many/export-transfer-group
15612
15772
  validate_final_balance_only: "validate_final_balance_only";
15613
15773
  transfer_status: "transfer_status";
15614
15774
  reverses_identifier: "reverses_identifier";
15775
+ transfers: "transfers";
15776
+ reversed_by_identifier: "reversed_by_identifier";
15615
15777
  transfers_count: "transfers_count";
15616
15778
  }>>>;
15617
15779
  deselect: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
@@ -15629,6 +15791,8 @@ declare module "wapi-client/txs/export-transfer-group-many/export-transfer-group
15629
15791
  validate_final_balance_only: "validate_final_balance_only";
15630
15792
  transfer_status: "transfer_status";
15631
15793
  reverses_identifier: "reverses_identifier";
15794
+ transfers: "transfers";
15795
+ reversed_by_identifier: "reversed_by_identifier";
15632
15796
  transfers_count: "transfers_count";
15633
15797
  }>>>;
15634
15798
  }, import("zod/v4/core").$strip>>>;
@@ -15682,6 +15846,8 @@ declare module "wapi-client/fns/find-transfer-groups/find-transfer-groups.schema
15682
15846
  validate_final_balance_only: "validate_final_balance_only";
15683
15847
  transfer_status: "transfer_status";
15684
15848
  reverses_identifier: "reverses_identifier";
15849
+ transfers: "transfers";
15850
+ reversed_by_identifier: "reversed_by_identifier";
15685
15851
  transfers_count: "transfers_count";
15686
15852
  }>>>>;
15687
15853
  deselect: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
@@ -15699,6 +15865,8 @@ declare module "wapi-client/fns/find-transfer-groups/find-transfer-groups.schema
15699
15865
  validate_final_balance_only: "validate_final_balance_only";
15700
15866
  transfer_status: "transfer_status";
15701
15867
  reverses_identifier: "reverses_identifier";
15868
+ transfers: "transfers";
15869
+ reversed_by_identifier: "reversed_by_identifier";
15702
15870
  transfers_count: "transfers_count";
15703
15871
  }>>>>;
15704
15872
  limit: z.ZodOptional<z.ZodNumber>;
@@ -15777,6 +15945,8 @@ declare module "wapi-client/fns/find-transfer-groups/find-transfer-groups.schema
15777
15945
  validate_final_balance_only: "validate_final_balance_only";
15778
15946
  transfer_status: "transfer_status";
15779
15947
  reverses_identifier: "reverses_identifier";
15948
+ transfers: "transfers";
15949
+ reversed_by_identifier: "reversed_by_identifier";
15780
15950
  transfers_count: "transfers_count";
15781
15951
  }>>>>;
15782
15952
  deselect: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
@@ -15794,6 +15964,8 @@ declare module "wapi-client/fns/find-transfer-groups/find-transfer-groups.schema
15794
15964
  validate_final_balance_only: "validate_final_balance_only";
15795
15965
  transfer_status: "transfer_status";
15796
15966
  reverses_identifier: "reverses_identifier";
15967
+ transfers: "transfers";
15968
+ reversed_by_identifier: "reversed_by_identifier";
15797
15969
  transfers_count: "transfers_count";
15798
15970
  }>>>>;
15799
15971
  limit: z.ZodOptional<z.ZodNumber>;
@@ -15839,6 +16011,40 @@ declare module "wapi-client/fns/find-transfer-groups/find-transfer-groups.schema
15839
16011
  distribution: "distribution";
15840
16012
  }>>>;
15841
16013
  reverses_identifier: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
16014
+ transfers: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
16015
+ id: z.ZodNumber;
16016
+ identifier: z.ZodString;
16017
+ control_hash: z.ZodNullable<z.ZodString>;
16018
+ from_wallet_id: z.ZodNumber;
16019
+ to_wallet_id: z.ZodNumber;
16020
+ token_id: z.ZodNumber;
16021
+ amount: z.ZodNumber;
16022
+ type: z.ZodEnum<{
16023
+ transfer: "transfer";
16024
+ deposit: "deposit";
16025
+ withdrawal: "withdrawal";
16026
+ }>;
16027
+ status: z.ZodEnum<{
16028
+ pending: "pending";
16029
+ finished: "finished";
16030
+ cancelled: "cancelled";
16031
+ }>;
16032
+ force: z.ZodDefault<z.ZodBoolean>;
16033
+ auto_hash: z.ZodDefault<z.ZodBoolean>;
16034
+ created_at: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>;
16035
+ updated_at: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>;
16036
+ metadata: z.ZodOptional<z.ZodType<import("wapi-client/db/consts").Metadata, unknown, z.core.$ZodTypeInternals<import("wapi-client/db/consts").Metadata, unknown>>>;
16037
+ transfer_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16038
+ reverses_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16039
+ status_finalized_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>>;
16040
+ group_validate: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
16041
+ from_wallet_foreign: z.ZodString;
16042
+ to_wallet_foreign: z.ZodString;
16043
+ token_foreign: z.ZodString;
16044
+ transfer_group_identifier: z.ZodNullable<z.ZodString>;
16045
+ reverses_identifier: z.ZodNullable<z.ZodString>;
16046
+ }, z.core.$strict>>>>>;
16047
+ reversed_by_identifier: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
15842
16048
  transfers_count: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
15843
16049
  }, z.core.$strict>>>>;
15844
16050
  metadata: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
@@ -15884,6 +16090,8 @@ declare module "wapi-client/fns/export-transfer-groups/export-transfer-groups.sc
15884
16090
  validate_final_balance_only: "validate_final_balance_only";
15885
16091
  transfer_status: "transfer_status";
15886
16092
  reverses_identifier: "reverses_identifier";
16093
+ transfers: "transfers";
16094
+ reversed_by_identifier: "reversed_by_identifier";
15887
16095
  transfers_count: "transfers_count";
15888
16096
  }>>>>>;
15889
16097
  deselect: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
@@ -15901,6 +16109,8 @@ declare module "wapi-client/fns/export-transfer-groups/export-transfer-groups.sc
15901
16109
  validate_final_balance_only: "validate_final_balance_only";
15902
16110
  transfer_status: "transfer_status";
15903
16111
  reverses_identifier: "reverses_identifier";
16112
+ transfers: "transfers";
16113
+ reversed_by_identifier: "reversed_by_identifier";
15904
16114
  transfers_count: "transfers_count";
15905
16115
  }>>>>>;
15906
16116
  limit: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNumber>>;
@@ -15979,6 +16189,8 @@ declare module "wapi-client/fns/export-transfer-groups/export-transfer-groups.sc
15979
16189
  validate_final_balance_only: "validate_final_balance_only";
15980
16190
  transfer_status: "transfer_status";
15981
16191
  reverses_identifier: "reverses_identifier";
16192
+ transfers: "transfers";
16193
+ reversed_by_identifier: "reversed_by_identifier";
15982
16194
  transfers_count: "transfers_count";
15983
16195
  }>>>>>;
15984
16196
  deselect: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
@@ -15996,6 +16208,8 @@ declare module "wapi-client/fns/export-transfer-groups/export-transfer-groups.sc
15996
16208
  validate_final_balance_only: "validate_final_balance_only";
15997
16209
  transfer_status: "transfer_status";
15998
16210
  reverses_identifier: "reverses_identifier";
16211
+ transfers: "transfers";
16212
+ reversed_by_identifier: "reversed_by_identifier";
15999
16213
  transfers_count: "transfers_count";
16000
16214
  }>>>>>;
16001
16215
  limit: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNumber>>;
@@ -19211,6 +19425,8 @@ declare module "wapi-client/fns/get-transfer-group/get-transfer-group.schema.zod
19211
19425
  transaction_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
19212
19426
  create_if_not_exists: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
19213
19427
  return_only_id: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
19428
+ return_transfers: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
19429
+ return_reversed_by: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
19214
19430
  }, z.core.$strip>;
19215
19431
  export const getTransferGroupInputSchema: z.ZodObject<{
19216
19432
  transfer_group: z.ZodNonOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
@@ -19222,6 +19438,8 @@ declare module "wapi-client/fns/get-transfer-group/get-transfer-group.schema.zod
19222
19438
  transaction_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
19223
19439
  create_if_not_exists: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
19224
19440
  return_only_id: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
19441
+ return_transfers: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
19442
+ return_reversed_by: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
19225
19443
  }, z.core.$strip>>;
19226
19444
  }, z.core.$strict>;
19227
19445
  export const getTransferGroupFnOutputSchema: z.ZodObject<{
@@ -19251,6 +19469,40 @@ declare module "wapi-client/fns/get-transfer-group/get-transfer-group.schema.zod
19251
19469
  distribution: "distribution";
19252
19470
  }>>;
19253
19471
  reverses_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19472
+ transfers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
19473
+ id: z.ZodNumber;
19474
+ identifier: z.ZodString;
19475
+ control_hash: z.ZodNullable<z.ZodString>;
19476
+ from_wallet_id: z.ZodNumber;
19477
+ to_wallet_id: z.ZodNumber;
19478
+ token_id: z.ZodNumber;
19479
+ amount: z.ZodNumber;
19480
+ type: z.ZodEnum<{
19481
+ transfer: "transfer";
19482
+ deposit: "deposit";
19483
+ withdrawal: "withdrawal";
19484
+ }>;
19485
+ status: z.ZodEnum<{
19486
+ pending: "pending";
19487
+ finished: "finished";
19488
+ cancelled: "cancelled";
19489
+ }>;
19490
+ force: z.ZodDefault<z.ZodBoolean>;
19491
+ auto_hash: z.ZodDefault<z.ZodBoolean>;
19492
+ created_at: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>;
19493
+ updated_at: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>;
19494
+ metadata: z.ZodOptional<z.ZodType<import("wapi-client/db/consts").Metadata, unknown, z.core.$ZodTypeInternals<import("wapi-client/db/consts").Metadata, unknown>>>;
19495
+ transfer_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19496
+ reverses_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19497
+ status_finalized_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>>;
19498
+ group_validate: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
19499
+ from_wallet_foreign: z.ZodString;
19500
+ to_wallet_foreign: z.ZodString;
19501
+ token_foreign: z.ZodString;
19502
+ transfer_group_identifier: z.ZodNullable<z.ZodString>;
19503
+ reverses_identifier: z.ZodNullable<z.ZodString>;
19504
+ }, z.core.$strict>>>>;
19505
+ reversed_by_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19254
19506
  }, z.core.$strict>>;
19255
19507
  }, z.core.$strip>;
19256
19508
  export const config: {};
@@ -21947,6 +22199,40 @@ declare module "wapi-client/txs/update-transfer-group-many/update-transfer-group
21947
22199
  distribution: "distribution";
21948
22200
  }>>;
21949
22201
  reverses_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22202
+ transfers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
22203
+ id: z.ZodNumber;
22204
+ identifier: z.ZodString;
22205
+ control_hash: z.ZodNullable<z.ZodString>;
22206
+ from_wallet_id: z.ZodNumber;
22207
+ to_wallet_id: z.ZodNumber;
22208
+ token_id: z.ZodNumber;
22209
+ amount: z.ZodNumber;
22210
+ type: z.ZodEnum<{
22211
+ transfer: "transfer";
22212
+ deposit: "deposit";
22213
+ withdrawal: "withdrawal";
22214
+ }>;
22215
+ status: z.ZodEnum<{
22216
+ pending: "pending";
22217
+ finished: "finished";
22218
+ cancelled: "cancelled";
22219
+ }>;
22220
+ force: z.ZodDefault<z.ZodBoolean>;
22221
+ auto_hash: z.ZodDefault<z.ZodBoolean>;
22222
+ created_at: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>;
22223
+ updated_at: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>;
22224
+ metadata: z.ZodOptional<z.ZodType<import("wapi-client/db/consts").Metadata, unknown, z.core.$ZodTypeInternals<import("wapi-client/db/consts").Metadata, unknown>>>;
22225
+ transfer_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22226
+ reverses_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22227
+ status_finalized_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>>;
22228
+ group_validate: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
22229
+ from_wallet_foreign: z.ZodString;
22230
+ to_wallet_foreign: z.ZodString;
22231
+ token_foreign: z.ZodString;
22232
+ transfer_group_identifier: z.ZodNullable<z.ZodString>;
22233
+ reverses_identifier: z.ZodNullable<z.ZodString>;
22234
+ }, z.core.$strict>>>>;
22235
+ reversed_by_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21950
22236
  }, z.core.$strict>>;
21951
22237
  transfers: z.ZodArray<z.ZodObject<{
21952
22238
  id: z.ZodNumber;
@@ -22140,6 +22426,40 @@ declare module "wapi-client/fns/update-transfer-groups/update-transfer-groups.sc
22140
22426
  distribution: "distribution";
22141
22427
  }>>;
22142
22428
  reverses_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22429
+ transfers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
22430
+ id: z.ZodNumber;
22431
+ identifier: z.ZodString;
22432
+ control_hash: z.ZodNullable<z.ZodString>;
22433
+ from_wallet_id: z.ZodNumber;
22434
+ to_wallet_id: z.ZodNumber;
22435
+ token_id: z.ZodNumber;
22436
+ amount: z.ZodNumber;
22437
+ type: z.ZodEnum<{
22438
+ transfer: "transfer";
22439
+ deposit: "deposit";
22440
+ withdrawal: "withdrawal";
22441
+ }>;
22442
+ status: z.ZodEnum<{
22443
+ pending: "pending";
22444
+ finished: "finished";
22445
+ cancelled: "cancelled";
22446
+ }>;
22447
+ force: z.ZodDefault<z.ZodBoolean>;
22448
+ auto_hash: z.ZodDefault<z.ZodBoolean>;
22449
+ created_at: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>;
22450
+ updated_at: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>;
22451
+ metadata: z.ZodOptional<z.ZodType<import("wapi-client/db/consts").Metadata, unknown, z.core.$ZodTypeInternals<import("wapi-client/db/consts").Metadata, unknown>>>;
22452
+ transfer_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22453
+ reverses_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22454
+ status_finalized_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>>;
22455
+ group_validate: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
22456
+ from_wallet_foreign: z.ZodString;
22457
+ to_wallet_foreign: z.ZodString;
22458
+ token_foreign: z.ZodString;
22459
+ transfer_group_identifier: z.ZodNullable<z.ZodString>;
22460
+ reverses_identifier: z.ZodNullable<z.ZodString>;
22461
+ }, z.core.$strict>>>>;
22462
+ reversed_by_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22143
22463
  }, z.core.$strict>>;
22144
22464
  transfers: z.ZodArray<z.ZodObject<{
22145
22465
  id: z.ZodNumber;
@@ -25763,9 +26083,11 @@ declare module "wapi-client/txs/update-wallet/update-wallet.enums" {
25763
26083
  export type UpdateWalletTxOutput = z.infer<typeof updateWalletTxOutputSchema>;
25764
26084
  }
25765
26085
  declare module "wapi-client/api/base-client" {
26086
+ import { WAPIError } from "wapi-client/lib/errors";
25766
26087
  import WebSocket from 'modern-isomorphic-ws';
25767
26088
  import { StreamPromise } from "wapi-client/lib/stream-promise";
25768
- import { JSONRPCRequest, JSONRPCResponse } from "wapi-client/api/jsonrpc/jsonrpc.enums";
26089
+ import { ReadStream } from "wapi-client/lib/streams";
26090
+ import { IJSONRPCError, JSONRPCRequest, JSONRPCResponse } from "wapi-client/api/jsonrpc/jsonrpc.enums";
25769
26091
  import { WapiClientType } from "wapi-client";
25770
26092
  import { HttpConnectionClient } from "wapi-client/api/http-client";
25771
26093
  import { ValuesOf } from "wapi-client/lib/ts-utils";
@@ -25832,6 +26154,19 @@ declare module "wapi-client/api/base-client" {
25832
26154
  message?: (msg: JSONRPCResponse) => void;
25833
26155
  }
25834
26156
  export type ISocketId = string | undefined;
26157
+ type BaseRequest = {
26158
+ stream: ReadStream;
26159
+ start: number;
26160
+ message: JSONRPCRequest;
26161
+ sendingTimeout?: ReturnType<typeof setTimeout>;
26162
+ requestTimeout?: ReturnType<typeof setTimeout>;
26163
+ };
26164
+ type OutboundRequest = BaseRequest | (BaseRequest & {
26165
+ handle?: (result: JSONRPCResponse) => void;
26166
+ error: (err: IJSONRPCError) => void;
26167
+ pause: () => void;
26168
+ resume: () => void;
26169
+ });
25835
26170
  export class BaseClient {
25836
26171
  type: ValuesOf<typeof WapiClientType>;
25837
26172
  protected _connection: WebSocket | HttpConnectionClient;
@@ -25848,6 +26183,7 @@ declare module "wapi-client/api/base-client" {
25848
26183
  timeout?: ReturnType<typeof setTimeout>;
25849
26184
  }>;
25850
26185
  sendingTimeout: number | undefined;
26186
+ requestTimeout: number | undefined;
25851
26187
  constructor(connection: WebSocket | HttpConnectionClient, connectionType: ValuesOf<typeof WapiClientType>, $connect?: Promise<ISocketId>);
25852
26188
  protected _setConnected(value: boolean): void;
25853
26189
  protected _setErrored(err: Error): void;
@@ -25856,8 +26192,11 @@ declare module "wapi-client/api/base-client" {
25856
26192
  protected _reconnect(nrOfAttempts?: number | undefined): void;
25857
26193
  close(): Promise<void>;
25858
26194
  protected _connectionLost(): void;
26195
+ protected _completeRequest(request: OutboundRequest, error?: WAPIError): void;
26196
+ protected _fireConnectionLost(requestInfo: OutboundRequest): void;
26197
+ protected _fireSendingTimeout(requestInfo: OutboundRequest): void;
26198
+ protected _fireRequestTimeout(requestInfo: OutboundRequest): void;
25859
26199
  protected _handleMessage(incoming: JSONRPCResponse | JSONRPCRequest): void;
25860
- private _setSending;
25861
26200
  _sendRaw<Input, Output>(method: string, params: Input): StreamPromise<Output>;
25862
26201
  /**
25863
26202
  *
@@ -26259,11 +26598,11 @@ declare module "wapi-client/api/ws-client" {
26259
26598
  ws: WebSocket;
26260
26599
  $connect: Promise<ISocketId>;
26261
26600
  }
26262
- export interface EWapiConnectionOptions extends WapiConnectionOptions {
26601
+ export type EWapiConnectionOptions = WapiConnectionOptions & {
26263
26602
  rejectUnauthorized: boolean;
26264
26603
  clientVersion: string;
26265
26604
  connectionName?: string;
26266
- }
26605
+ };
26267
26606
  export class WsClient extends BaseClient {
26268
26607
  private _pingTimeout;
26269
26608
  private _opts;
@@ -26285,16 +26624,19 @@ declare module "wapi-client/api/index" {
26285
26624
  import { BaseClient } from "wapi-client/api/base-client";
26286
26625
  import { WsClient } from "wapi-client/api/ws-client";
26287
26626
  import { HttpClient } from "wapi-client/api/http-client";
26288
- export interface WapiConnectionOptions {
26289
- host: string;
26290
- database?: string;
26627
+ export type WapiConnectionOptions = WapiCredsConnectionOptions | WapiJWTConnectionOptions;
26628
+ export interface WapiCredsConnectionOptions {
26291
26629
  apikey: string;
26292
26630
  apisecret: string;
26631
+ host: string;
26632
+ database?: string;
26293
26633
  rejectUnauthorized?: boolean;
26294
26634
  }
26295
- export interface WapiHttpConnectionOptions {
26296
- host: string;
26635
+ export interface WapiJWTConnectionOptions {
26297
26636
  jwt: string;
26637
+ host: string;
26638
+ database?: string;
26639
+ rejectUnauthorized?: boolean;
26298
26640
  }
26299
26641
  export interface ConnectionConfig {
26300
26642
  connectingTimeout?: number;
@@ -28289,6 +28631,8 @@ declare module "wapi-client/fns/export-transfer-groups/export-transfer-groups" {
28289
28631
  validate_final_balance_only: "validate_final_balance_only";
28290
28632
  transfer_status: "transfer_status";
28291
28633
  reverses_identifier: "reverses_identifier";
28634
+ transfers: "transfers";
28635
+ reversed_by_identifier: "reversed_by_identifier";
28292
28636
  transfers_count: "transfers_count";
28293
28637
  }>>>>;
28294
28638
  deselect: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
@@ -28306,6 +28650,8 @@ declare module "wapi-client/fns/export-transfer-groups/export-transfer-groups" {
28306
28650
  validate_final_balance_only: "validate_final_balance_only";
28307
28651
  transfer_status: "transfer_status";
28308
28652
  reverses_identifier: "reverses_identifier";
28653
+ transfers: "transfers";
28654
+ reversed_by_identifier: "reversed_by_identifier";
28309
28655
  transfers_count: "transfers_count";
28310
28656
  }>>>>;
28311
28657
  limit: import("zod").ZodOptional<import("zod").ZodNumber>;
@@ -28350,6 +28696,32 @@ declare module "wapi-client/fns/export-transfer-groups/export-transfer-groups" {
28350
28696
  status?: "open" | "closed" | undefined;
28351
28697
  type?: "regular" | "exchange" | "distribution" | undefined;
28352
28698
  reverses_identifier?: string | null | undefined;
28699
+ transfers?: {
28700
+ id: number;
28701
+ identifier: string;
28702
+ control_hash: string | null;
28703
+ from_wallet_id: number;
28704
+ to_wallet_id: number;
28705
+ token_id: number;
28706
+ amount: number;
28707
+ type: "transfer" | "deposit" | "withdrawal";
28708
+ status: "pending" | "finished" | "cancelled";
28709
+ force: boolean;
28710
+ auto_hash: boolean;
28711
+ created_at: string;
28712
+ updated_at: string;
28713
+ from_wallet_foreign: string;
28714
+ to_wallet_foreign: string;
28715
+ token_foreign: string;
28716
+ transfer_group_identifier: string | null;
28717
+ reverses_identifier: string | null;
28718
+ metadata?: import("wapi-client/db/consts").Metadata | undefined;
28719
+ transfer_group_id?: number | null | undefined;
28720
+ reverses_id?: number | null | undefined;
28721
+ status_finalized_at?: string | null | undefined;
28722
+ group_validate?: boolean | null | undefined;
28723
+ }[] | null | undefined;
28724
+ reversed_by_identifier?: string | null | undefined;
28353
28725
  transfers_count?: number | undefined;
28354
28726
  }, AllTrue<{
28355
28727
  id: number;
@@ -28366,6 +28738,32 @@ declare module "wapi-client/fns/export-transfer-groups/export-transfer-groups" {
28366
28738
  status?: "open" | "closed" | undefined;
28367
28739
  type?: "regular" | "exchange" | "distribution" | undefined;
28368
28740
  reverses_identifier?: string | null | undefined;
28741
+ transfers?: {
28742
+ id: number;
28743
+ identifier: string;
28744
+ control_hash: string | null;
28745
+ from_wallet_id: number;
28746
+ to_wallet_id: number;
28747
+ token_id: number;
28748
+ amount: number;
28749
+ type: "transfer" | "deposit" | "withdrawal";
28750
+ status: "pending" | "finished" | "cancelled";
28751
+ force: boolean;
28752
+ auto_hash: boolean;
28753
+ created_at: string;
28754
+ updated_at: string;
28755
+ from_wallet_foreign: string;
28756
+ to_wallet_foreign: string;
28757
+ token_foreign: string;
28758
+ transfer_group_identifier: string | null;
28759
+ reverses_identifier: string | null;
28760
+ metadata?: import("wapi-client/db/consts").Metadata | undefined;
28761
+ transfer_group_id?: number | null | undefined;
28762
+ reverses_id?: number | null | undefined;
28763
+ status_finalized_at?: string | null | undefined;
28764
+ group_validate?: boolean | null | undefined;
28765
+ }[] | null | undefined;
28766
+ reversed_by_identifier?: string | null | undefined;
28369
28767
  }>, {}, true>;
28370
28768
  }
28371
28769
  declare module "wapi-client/fns/export-transfers/export-transfers.enums" {
@@ -29355,6 +29753,8 @@ declare module "wapi-client/fns/find-transfer-groups/find-transfer-groups" {
29355
29753
  validate_final_balance_only: "validate_final_balance_only";
29356
29754
  transfer_status: "transfer_status";
29357
29755
  reverses_identifier: "reverses_identifier";
29756
+ transfers: "transfers";
29757
+ reversed_by_identifier: "reversed_by_identifier";
29358
29758
  transfers_count: "transfers_count";
29359
29759
  }>>>>;
29360
29760
  deselect: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
@@ -29372,6 +29772,8 @@ declare module "wapi-client/fns/find-transfer-groups/find-transfer-groups" {
29372
29772
  validate_final_balance_only: "validate_final_balance_only";
29373
29773
  transfer_status: "transfer_status";
29374
29774
  reverses_identifier: "reverses_identifier";
29775
+ transfers: "transfers";
29776
+ reversed_by_identifier: "reversed_by_identifier";
29375
29777
  transfers_count: "transfers_count";
29376
29778
  }>>>>;
29377
29779
  limit: import("zod").ZodOptional<import("zod").ZodNumber>;
@@ -29403,6 +29805,32 @@ declare module "wapi-client/fns/find-transfer-groups/find-transfer-groups" {
29403
29805
  status?: "open" | "closed" | undefined;
29404
29806
  type?: "regular" | "exchange" | "distribution" | undefined;
29405
29807
  reverses_identifier?: string | null | undefined;
29808
+ transfers?: {
29809
+ id: number;
29810
+ identifier: string;
29811
+ control_hash: string | null;
29812
+ from_wallet_id: number;
29813
+ to_wallet_id: number;
29814
+ token_id: number;
29815
+ amount: number;
29816
+ type: "transfer" | "deposit" | "withdrawal";
29817
+ status: "pending" | "finished" | "cancelled";
29818
+ force: boolean;
29819
+ auto_hash: boolean;
29820
+ created_at: string;
29821
+ updated_at: string;
29822
+ from_wallet_foreign: string;
29823
+ to_wallet_foreign: string;
29824
+ token_foreign: string;
29825
+ transfer_group_identifier: string | null;
29826
+ reverses_identifier: string | null;
29827
+ metadata?: import("wapi-client/db/consts").Metadata | undefined;
29828
+ transfer_group_id?: number | null | undefined;
29829
+ reverses_id?: number | null | undefined;
29830
+ status_finalized_at?: string | null | undefined;
29831
+ group_validate?: boolean | null | undefined;
29832
+ }[] | null | undefined;
29833
+ reversed_by_identifier?: string | null | undefined;
29406
29834
  transfers_count?: number | undefined;
29407
29835
  }, AllTrue<{
29408
29836
  id: number;
@@ -29419,6 +29847,32 @@ declare module "wapi-client/fns/find-transfer-groups/find-transfer-groups" {
29419
29847
  status?: "open" | "closed" | undefined;
29420
29848
  type?: "regular" | "exchange" | "distribution" | undefined;
29421
29849
  reverses_identifier?: string | null | undefined;
29850
+ transfers?: {
29851
+ id: number;
29852
+ identifier: string;
29853
+ control_hash: string | null;
29854
+ from_wallet_id: number;
29855
+ to_wallet_id: number;
29856
+ token_id: number;
29857
+ amount: number;
29858
+ type: "transfer" | "deposit" | "withdrawal";
29859
+ status: "pending" | "finished" | "cancelled";
29860
+ force: boolean;
29861
+ auto_hash: boolean;
29862
+ created_at: string;
29863
+ updated_at: string;
29864
+ from_wallet_foreign: string;
29865
+ to_wallet_foreign: string;
29866
+ token_foreign: string;
29867
+ transfer_group_identifier: string | null;
29868
+ reverses_identifier: string | null;
29869
+ metadata?: import("wapi-client/db/consts").Metadata | undefined;
29870
+ transfer_group_id?: number | null | undefined;
29871
+ reverses_id?: number | null | undefined;
29872
+ status_finalized_at?: string | null | undefined;
29873
+ group_validate?: boolean | null | undefined;
29874
+ }[] | null | undefined;
29875
+ reversed_by_identifier?: string | null | undefined;
29422
29876
  }>, {}, true>;
29423
29877
  }
29424
29878
  declare module "wapi-client/fns/find-transfers/find-transfers.enums" {
@@ -31052,6 +31506,32 @@ declare module "wapi-client/fns/update-transfer-groups/update-transfer-groups" {
31052
31506
  status?: "open" | "closed" | undefined;
31053
31507
  type?: "regular" | "exchange" | "distribution" | undefined;
31054
31508
  reverses_identifier?: string | null | undefined;
31509
+ transfers?: {
31510
+ id: number;
31511
+ identifier: string;
31512
+ control_hash: string | null;
31513
+ from_wallet_id: number;
31514
+ to_wallet_id: number;
31515
+ token_id: number;
31516
+ amount: number;
31517
+ type: "transfer" | "deposit" | "withdrawal";
31518
+ status: "pending" | "finished" | "cancelled";
31519
+ force: boolean;
31520
+ auto_hash: boolean;
31521
+ created_at: string;
31522
+ updated_at: string;
31523
+ from_wallet_foreign: string;
31524
+ to_wallet_foreign: string;
31525
+ token_foreign: string;
31526
+ transfer_group_identifier: string | null;
31527
+ reverses_identifier: string | null;
31528
+ metadata?: import("wapi-client/db/consts").Metadata | undefined;
31529
+ transfer_group_id?: number | null | undefined;
31530
+ reverses_id?: number | null | undefined;
31531
+ status_finalized_at?: string | null | undefined;
31532
+ group_validate?: boolean | null | undefined;
31533
+ }[] | null | undefined;
31534
+ reversed_by_identifier?: string | null | undefined;
31055
31535
  }[];
31056
31536
  transfers: {
31057
31537
  id: number;
@@ -31324,7 +31804,7 @@ declare module "wapi-client/fns/update-wallet/update-wallet" {
31324
31804
  export function updateWallet(options: ClientFunctionOptions, input: UpdateWalletFnInput, fnOptions?: UpdateWalletFnOptions): StreamPromise<UpdateWalletFnOutput>;
31325
31805
  }
31326
31806
  declare module "client.js" {
31327
- import { WapiConnectionOptions, WapiHttpConnectionOptions, WsClient, HttpClient, ConnectionConfig } from "wapi-client/api/index";
31807
+ import { WapiConnectionOptions, WsClient, HttpClient, ConnectionConfig } from "wapi-client/api/index";
31328
31808
  import { ClientHooks, ISocketId } from "wapi-client/api/base-client";
31329
31809
  import { StreamPromise } from "wapi-client/lib/stream-promise";
31330
31810
  import { AggregateTransfersFnInput, AggregateTransfersFnOptions } from "wapi-client/fns/aggregate-transfers/aggregate-transfers.enums";
@@ -31374,6 +31854,7 @@ declare module "client.js" {
31374
31854
  token?: number | string;
31375
31855
  hooks?: ClientHooks;
31376
31856
  sendingTimeout?: number;
31857
+ requestTimeout?: number;
31377
31858
  }
31378
31859
  export class Client {
31379
31860
  /**
@@ -31431,7 +31912,10 @@ declare module "client.js" {
31431
31912
  *
31432
31913
  * wapiClient.configure({
31433
31914
  * token: 'EURO',
31434
- * timeout: 45000,
31915
+ * connectingTimeout: 45000,
31916
+ * reconnectingTimeout: 45000,
31917
+ * sendingTimeout: 10000,
31918
+ * requestTimeout: 120000,
31435
31919
  * hooks: {
31436
31920
  * disconnect: () => {}
31437
31921
  * },
@@ -31450,7 +31934,8 @@ declare module "client.js" {
31450
31934
  * ```
31451
31935
  */
31452
31936
  getConfig(key: 'httpSkipInitialAuthConnection'): boolean | undefined;
31453
- getConfig(key: keyof Omit<ClientConfig, 'hooks' | 'httpSkipInitialAuthConnection'>): number | string | undefined;
31937
+ getConfig(key: 'connectingTimeout' | 'reconnectingTimeout' | 'sendingTimeout' | 'requestTimeout'): number | undefined;
31938
+ getConfig(key: 'token'): number | string | undefined;
31454
31939
  /**
31455
31940
  *
31456
31941
  * Aggregate Transfers using either a simple filter or queryBuilder
@@ -32930,6 +33415,8 @@ declare module "client.js" {
32930
33415
  validate_final_balance_only: "validate_final_balance_only";
32931
33416
  transfer_status: "transfer_status";
32932
33417
  reverses_identifier: "reverses_identifier";
33418
+ transfers: "transfers";
33419
+ reversed_by_identifier: "reversed_by_identifier";
32933
33420
  transfers_count: "transfers_count";
32934
33421
  }>>>>;
32935
33422
  deselect: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
@@ -32947,6 +33434,8 @@ declare module "client.js" {
32947
33434
  validate_final_balance_only: "validate_final_balance_only";
32948
33435
  transfer_status: "transfer_status";
32949
33436
  reverses_identifier: "reverses_identifier";
33437
+ transfers: "transfers";
33438
+ reversed_by_identifier: "reversed_by_identifier";
32950
33439
  transfers_count: "transfers_count";
32951
33440
  }>>>>;
32952
33441
  limit: import("zod").ZodOptional<import("zod").ZodNumber>;
@@ -32991,6 +33480,32 @@ declare module "client.js" {
32991
33480
  status?: "open" | "closed" | undefined;
32992
33481
  type?: "regular" | "exchange" | "distribution" | undefined;
32993
33482
  reverses_identifier?: string | null | undefined;
33483
+ transfers?: {
33484
+ id: number;
33485
+ identifier: string;
33486
+ control_hash: string | null;
33487
+ from_wallet_id: number;
33488
+ to_wallet_id: number;
33489
+ token_id: number;
33490
+ amount: number;
33491
+ type: "transfer" | "deposit" | "withdrawal";
33492
+ status: "pending" | "finished" | "cancelled";
33493
+ force: boolean;
33494
+ auto_hash: boolean;
33495
+ created_at: string;
33496
+ updated_at: string;
33497
+ from_wallet_foreign: string;
33498
+ to_wallet_foreign: string;
33499
+ token_foreign: string;
33500
+ transfer_group_identifier: string | null;
33501
+ reverses_identifier: string | null;
33502
+ metadata?: import("wapi-client/db/consts").Metadata | undefined;
33503
+ transfer_group_id?: number | null | undefined;
33504
+ reverses_id?: number | null | undefined;
33505
+ status_finalized_at?: string | null | undefined;
33506
+ group_validate?: boolean | null | undefined;
33507
+ }[] | null | undefined;
33508
+ reversed_by_identifier?: string | null | undefined;
32994
33509
  transfers_count?: number | undefined;
32995
33510
  }, import("wapi-client/lib/query-builder/find-query-builder").AllTrue<{
32996
33511
  id: number;
@@ -33007,6 +33522,32 @@ declare module "client.js" {
33007
33522
  status?: "open" | "closed" | undefined;
33008
33523
  type?: "regular" | "exchange" | "distribution" | undefined;
33009
33524
  reverses_identifier?: string | null | undefined;
33525
+ transfers?: {
33526
+ id: number;
33527
+ identifier: string;
33528
+ control_hash: string | null;
33529
+ from_wallet_id: number;
33530
+ to_wallet_id: number;
33531
+ token_id: number;
33532
+ amount: number;
33533
+ type: "transfer" | "deposit" | "withdrawal";
33534
+ status: "pending" | "finished" | "cancelled";
33535
+ force: boolean;
33536
+ auto_hash: boolean;
33537
+ created_at: string;
33538
+ updated_at: string;
33539
+ from_wallet_foreign: string;
33540
+ to_wallet_foreign: string;
33541
+ token_foreign: string;
33542
+ transfer_group_identifier: string | null;
33543
+ reverses_identifier: string | null;
33544
+ metadata?: import("wapi-client/db/consts").Metadata | undefined;
33545
+ transfer_group_id?: number | null | undefined;
33546
+ reverses_id?: number | null | undefined;
33547
+ status_finalized_at?: string | null | undefined;
33548
+ group_validate?: boolean | null | undefined;
33549
+ }[] | null | undefined;
33550
+ reversed_by_identifier?: string | null | undefined;
33010
33551
  }>, {}, true>;
33011
33552
  /**
33012
33553
  *
@@ -34046,6 +34587,8 @@ declare module "client.js" {
34046
34587
  validate_final_balance_only: "validate_final_balance_only";
34047
34588
  transfer_status: "transfer_status";
34048
34589
  reverses_identifier: "reverses_identifier";
34590
+ transfers: "transfers";
34591
+ reversed_by_identifier: "reversed_by_identifier";
34049
34592
  transfers_count: "transfers_count";
34050
34593
  }>>>>;
34051
34594
  deselect: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
@@ -34063,6 +34606,8 @@ declare module "client.js" {
34063
34606
  validate_final_balance_only: "validate_final_balance_only";
34064
34607
  transfer_status: "transfer_status";
34065
34608
  reverses_identifier: "reverses_identifier";
34609
+ transfers: "transfers";
34610
+ reversed_by_identifier: "reversed_by_identifier";
34066
34611
  transfers_count: "transfers_count";
34067
34612
  }>>>>;
34068
34613
  limit: import("zod").ZodOptional<import("zod").ZodNumber>;
@@ -34094,6 +34639,32 @@ declare module "client.js" {
34094
34639
  status?: "open" | "closed" | undefined;
34095
34640
  type?: "regular" | "exchange" | "distribution" | undefined;
34096
34641
  reverses_identifier?: string | null | undefined;
34642
+ transfers?: {
34643
+ id: number;
34644
+ identifier: string;
34645
+ control_hash: string | null;
34646
+ from_wallet_id: number;
34647
+ to_wallet_id: number;
34648
+ token_id: number;
34649
+ amount: number;
34650
+ type: "transfer" | "deposit" | "withdrawal";
34651
+ status: "pending" | "finished" | "cancelled";
34652
+ force: boolean;
34653
+ auto_hash: boolean;
34654
+ created_at: string;
34655
+ updated_at: string;
34656
+ from_wallet_foreign: string;
34657
+ to_wallet_foreign: string;
34658
+ token_foreign: string;
34659
+ transfer_group_identifier: string | null;
34660
+ reverses_identifier: string | null;
34661
+ metadata?: import("wapi-client/db/consts").Metadata | undefined;
34662
+ transfer_group_id?: number | null | undefined;
34663
+ reverses_id?: number | null | undefined;
34664
+ status_finalized_at?: string | null | undefined;
34665
+ group_validate?: boolean | null | undefined;
34666
+ }[] | null | undefined;
34667
+ reversed_by_identifier?: string | null | undefined;
34097
34668
  transfers_count?: number | undefined;
34098
34669
  }, import("wapi-client/lib/query-builder/find-query-builder").AllTrue<{
34099
34670
  id: number;
@@ -34110,6 +34681,32 @@ declare module "client.js" {
34110
34681
  status?: "open" | "closed" | undefined;
34111
34682
  type?: "regular" | "exchange" | "distribution" | undefined;
34112
34683
  reverses_identifier?: string | null | undefined;
34684
+ transfers?: {
34685
+ id: number;
34686
+ identifier: string;
34687
+ control_hash: string | null;
34688
+ from_wallet_id: number;
34689
+ to_wallet_id: number;
34690
+ token_id: number;
34691
+ amount: number;
34692
+ type: "transfer" | "deposit" | "withdrawal";
34693
+ status: "pending" | "finished" | "cancelled";
34694
+ force: boolean;
34695
+ auto_hash: boolean;
34696
+ created_at: string;
34697
+ updated_at: string;
34698
+ from_wallet_foreign: string;
34699
+ to_wallet_foreign: string;
34700
+ token_foreign: string;
34701
+ transfer_group_identifier: string | null;
34702
+ reverses_identifier: string | null;
34703
+ metadata?: import("wapi-client/db/consts").Metadata | undefined;
34704
+ transfer_group_id?: number | null | undefined;
34705
+ reverses_id?: number | null | undefined;
34706
+ status_finalized_at?: string | null | undefined;
34707
+ group_validate?: boolean | null | undefined;
34708
+ }[] | null | undefined;
34709
+ reversed_by_identifier?: string | null | undefined;
34113
34710
  }>, {}, true>;
34114
34711
  /**
34115
34712
  *
@@ -35730,6 +36327,32 @@ declare module "client.js" {
35730
36327
  status?: "open" | "closed" | undefined;
35731
36328
  type?: "regular" | "exchange" | "distribution" | undefined;
35732
36329
  reverses_identifier?: string | null | undefined;
36330
+ transfers?: {
36331
+ id: number;
36332
+ identifier: string;
36333
+ control_hash: string | null;
36334
+ from_wallet_id: number;
36335
+ to_wallet_id: number;
36336
+ token_id: number;
36337
+ amount: number;
36338
+ type: "transfer" | "deposit" | "withdrawal";
36339
+ status: "pending" | "finished" | "cancelled";
36340
+ force: boolean;
36341
+ auto_hash: boolean;
36342
+ created_at: string;
36343
+ updated_at: string;
36344
+ from_wallet_foreign: string;
36345
+ to_wallet_foreign: string;
36346
+ token_foreign: string;
36347
+ transfer_group_identifier: string | null;
36348
+ reverses_identifier: string | null;
36349
+ metadata?: import("wapi-client/db/consts").Metadata | undefined;
36350
+ transfer_group_id?: number | null | undefined;
36351
+ reverses_id?: number | null | undefined;
36352
+ status_finalized_at?: string | null | undefined;
36353
+ group_validate?: boolean | null | undefined;
36354
+ }[] | null | undefined;
36355
+ reversed_by_identifier?: string | null | undefined;
35733
36356
  }[];
35734
36357
  transfers: {
35735
36358
  id: number;
@@ -36022,7 +36645,7 @@ declare module "client.js" {
36022
36645
  updateWallet(input: UpdateWalletFnInput, options?: UpdateWalletFnOptions): StreamPromise<UpdateWalletFnOutput>;
36023
36646
  }
36024
36647
  export function createClientWithWS(opts: WapiConnectionOptions, config?: ClientConfig): Client;
36025
- export function createClientWithHttp(opts: WapiHttpConnectionOptions, config?: ClientConfig): Client;
36648
+ export function createClientWithHttp(opts: WapiConnectionOptions, config?: ClientConfig): Client;
36026
36649
  }
36027
36650
  declare module "client-options.schema.zod.js" {
36028
36651
  import { z } from "wapi-client/lib/zod";
@@ -36030,44 +36653,37 @@ declare module "client-options.schema.zod.js" {
36030
36653
  ws: "ws";
36031
36654
  https: "https";
36032
36655
  }>;
36033
- export const wsConnectionSchema: z.ZodObject<{
36656
+ export const credsConnectionSchema: z.ZodObject<{
36034
36657
  host: z.ZodString;
36035
36658
  apikey: z.ZodString;
36036
36659
  apisecret: z.ZodString;
36037
36660
  }, z.core.$loose>;
36038
- export const wsClientOptionsSchema: z.ZodObject<{
36039
- client: z.ZodLiteral<"ws">;
36040
- connection: z.ZodObject<{
36041
- host: z.ZodString;
36042
- apikey: z.ZodString;
36043
- apisecret: z.ZodString;
36044
- }, z.core.$loose>;
36045
- }, z.core.$strip>;
36046
- export const httpsConnectionSchema: z.ZodObject<{
36661
+ export const jwtConnectionSchema: z.ZodObject<{
36047
36662
  host: z.ZodString;
36048
36663
  jwt: z.ZodString;
36049
36664
  }, z.core.$loose>;
36050
- export const httpsClientOptionsSchema: z.ZodObject<{
36051
- client: z.ZodLiteral<"https">;
36052
- connection: z.ZodObject<{
36665
+ export const connectionSchema: z.ZodUnion<readonly [z.ZodObject<{
36666
+ host: z.ZodString;
36667
+ jwt: z.ZodString;
36668
+ }, z.core.$loose>, z.ZodObject<{
36669
+ host: z.ZodString;
36670
+ apikey: z.ZodString;
36671
+ apisecret: z.ZodString;
36672
+ }, z.core.$loose>]>;
36673
+ export const clientOptionsSchema: z.ZodObject<{
36674
+ client: z.ZodEnum<{
36675
+ ws: "ws";
36676
+ https: "https";
36677
+ }>;
36678
+ connection: z.ZodUnion<readonly [z.ZodObject<{
36053
36679
  host: z.ZodString;
36054
36680
  jwt: z.ZodString;
36055
- }, z.core.$loose>;
36056
- }, z.core.$strip>;
36057
- export const clientOptionsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
36058
- client: z.ZodLiteral<"ws">;
36059
- connection: z.ZodObject<{
36681
+ }, z.core.$loose>, z.ZodObject<{
36060
36682
  host: z.ZodString;
36061
36683
  apikey: z.ZodString;
36062
36684
  apisecret: z.ZodString;
36063
- }, z.core.$loose>;
36064
- }, z.core.$strip>, z.ZodObject<{
36065
- client: z.ZodLiteral<"https">;
36066
- connection: z.ZodObject<{
36067
- host: z.ZodString;
36068
- jwt: z.ZodString;
36069
- }, z.core.$loose>;
36070
- }, z.core.$strip>], "client">;
36685
+ }, z.core.$loose>]>;
36686
+ }, z.core.$strip>;
36071
36687
  }
36072
36688
  declare module "wapi-client/lib/polyfill" {
36073
36689
  export function initPolyfills(): void;
@@ -36298,7 +36914,7 @@ declare module "wapi-client/fns/fn-types" {
36298
36914
  export * from "wapi-client/fns/update-wallet/update-wallet.enums";
36299
36915
  }
36300
36916
  declare module "wapi-client" {
36301
- import { WapiConnectionOptions, WapiHttpConnectionOptions } from "wapi-client/api/index";
36917
+ import { WapiConnectionOptions } from "wapi-client/api/index";
36302
36918
  import { Client, ClientConfig } from "client.js";
36303
36919
  import { ERROR_MESSAGES as ErrorMessage, ERROR_TYPES as ErrorType, ERROR_DESCRIPTIONS as ErrorDescription, ERRORS as Errors } from "wapi-client/lib/errors";
36304
36920
  import { getIdentifier } from "wapi-client/lib/utils";
@@ -36307,17 +36923,11 @@ declare module "wapi-client" {
36307
36923
  readonly ws: "ws";
36308
36924
  readonly https: "https";
36309
36925
  };
36310
- export interface WapiClientWsOptions {
36311
- client?: 'ws';
36926
+ export interface WapiClientOptions {
36927
+ client?: 'ws' | 'https';
36312
36928
  connection: WapiConnectionOptions;
36313
36929
  config?: ClientConfig;
36314
36930
  }
36315
- export interface WapiClientHttpOptions {
36316
- client: 'https';
36317
- connection: WapiHttpConnectionOptions;
36318
- config?: ClientConfig;
36319
- }
36320
- export type WapiClientOptions = WapiClientWsOptions | WapiClientHttpOptions;
36321
36931
  /**
36322
36932
  *
36323
36933
  * Create a WAPI Client
@@ -36374,6 +36984,9 @@ declare module "wapi-client" {
36374
36984
  * // NB! erroring on this timeout does not mean the command is not executed
36375
36985
  * // as the command might have gotten through, but return ACK did not
36376
36986
  * sendingTimeout: 60000;
36987
+ * // how long to wait for a request to finish
36988
+ * // NB! erroring on this timeout does not mean the command is not executed
36989
+ * requestTimeout: 120000;
36377
36990
  * }
36378
36991
  * });
36379
36992
  * // this direct wait for connect is not required
@@ -36489,6 +37102,7 @@ declare module "wapi-client" {
36489
37102
  TRANSACTION_TIMEOUT: "TRANSACTION_TIMEOUT";
36490
37103
  CONNECTION_TIMEOUT: "CONNECTION_TIMEOUT";
36491
37104
  SENDING_TIMEOUT: "SENDING_TIMEOUT";
37105
+ REQUEST_TIMEOUT: "REQUEST_TIMEOUT";
36492
37106
  CONFIG_INVALID: "CONFIG_INVALID";
36493
37107
  AUTHENTICATION_ERROR: "AUTHENTICATION_ERROR";
36494
37108
  AUTHORIZATION_ERROR: "AUTHORIZATION_ERROR";
@@ -36592,6 +37206,7 @@ declare module "wapi-client" {
36592
37206
  TRANSACTION_TIMEOUT: import("wapi-client/lib/errors").ErrorSpec;
36593
37207
  CONNECTION_TIMEOUT: import("wapi-client/lib/errors").ErrorSpec;
36594
37208
  SENDING_TIMEOUT: import("wapi-client/lib/errors").ErrorSpec;
37209
+ REQUEST_TIMEOUT: import("wapi-client/lib/errors").ErrorSpec;
36595
37210
  CONFIG_INVALID: import("wapi-client/lib/errors").ErrorSpec;
36596
37211
  AUTHENTICATION_ERROR: import("wapi-client/lib/errors").ErrorSpec;
36597
37212
  AUTHORIZATION_ERROR: import("wapi-client/lib/errors").ErrorSpec;