chia-agent 14.0.0 → 14.2.0

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 (154) hide show
  1. package/CHANGELOG.md +252 -3
  2. package/LICENSE +1 -1
  3. package/README.md +7 -5
  4. package/agent/index.d.ts +1 -1
  5. package/api/chia/consensus/block_record.d.ts +1 -32
  6. package/api/chia/consensus/blockchain.d.ts +2 -1
  7. package/api/chia/consensus/cost_calculator.d.ts +1 -1
  8. package/api/chia/data_layer/data_layer_util.d.ts +16 -16
  9. package/api/chia/data_layer/data_layer_wallet.d.ts +4 -3
  10. package/api/chia/farmer/farmer.d.ts +1 -1
  11. package/api/chia/full_node/signage_point.d.ts +1 -1
  12. package/api/chia/harvester/harvester.d.ts +1 -1
  13. package/api/chia/plot-sync/receiver.d.ts +2 -2
  14. package/api/chia/plotters/bladebit.d.ts +1 -1
  15. package/api/chia/plotters/chiapos.d.ts +1 -1
  16. package/api/chia/plotters/maxmax.d.ts +1 -1
  17. package/api/chia/plotting/util.d.ts +3 -3
  18. package/api/chia/pools/pool_config.d.ts +1 -1
  19. package/api/chia/pools/pool_wallet_info.d.ts +2 -4
  20. package/api/chia/protocols/farmer_protocol.d.ts +8 -8
  21. package/api/chia/protocols/harvester_protocol.d.ts +1 -1
  22. package/api/chia/protocols/pool_protocol.d.ts +13 -13
  23. package/api/chia/rpc/util.d.ts +14 -0
  24. package/api/chia/rpc/wallet_request_types.d.ts +46 -3
  25. package/api/chia/server/outbound_message.d.ts +1 -1
  26. package/api/chia/timelord/types.d.ts +1 -1
  27. package/api/chia/types/_python_types_.d.ts +22 -22
  28. package/api/chia/types/blockchain_format/classgroup.d.ts +1 -4
  29. package/api/chia/types/blockchain_format/coin.d.ts +1 -11
  30. package/api/chia/types/blockchain_format/foliage.d.ts +1 -35
  31. package/api/chia/types/blockchain_format/pool_target.d.ts +1 -6
  32. package/api/chia/types/blockchain_format/program.d.ts +1 -1
  33. package/api/chia/types/blockchain_format/proof_of_space.d.ts +1 -10
  34. package/api/chia/types/blockchain_format/reward_chain_block.d.ts +1 -30
  35. package/api/chia/types/blockchain_format/sized_bytes.d.ts +7 -7
  36. package/api/chia/types/blockchain_format/slots.d.ts +1 -24
  37. package/api/chia/types/blockchain_format/sub_epoch_summary.d.ts +1 -9
  38. package/api/chia/types/blockchain_format/vdf.d.ts +1 -13
  39. package/api/chia/types/clvm_cost.d.ts +1 -1
  40. package/api/chia/types/coin_record.d.ts +2 -2
  41. package/api/chia/types/coin_spend.d.ts +3 -8
  42. package/api/chia/types/condition_opcode.d.ts +1 -1
  43. package/api/chia/types/condition_with_args.d.ts +1 -1
  44. package/api/chia/types/end_of_slot_bundle.d.ts +1 -8
  45. package/api/chia/types/full_block.d.ts +1 -20
  46. package/api/chia/types/mempool_item.d.ts +3 -3
  47. package/api/chia/types/mojos.d.ts +1 -1
  48. package/api/chia/types/signing_mode.d.ts +6 -6
  49. package/api/chia/types/spend_bundle.d.ts +1 -1
  50. package/api/chia/types/spend_bundle_condition.d.ts +1 -26
  51. package/api/chia/types/unfinished_block.d.ts +1 -0
  52. package/api/chia/types/unfinished_header_block.d.ts +1 -1
  53. package/api/chia/util/keychain.d.ts +2 -2
  54. package/api/chia/util/misc.d.ts +1 -1
  55. package/api/chia/wallet/cat_wallet/cat_constants.d.ts +1 -1
  56. package/api/chia/wallet/conditions.d.ts +2 -2
  57. package/api/chia/wallet/dao_wallet/dao_info.d.ts +5 -5
  58. package/api/chia/wallet/dao_wallet/dao_wallet.d.ts +3 -3
  59. package/api/chia/wallet/lineage_proof.d.ts +1 -1
  60. package/api/chia/wallet/nft_wallet/nft_info.d.ts +1 -1
  61. package/api/chia/wallet/notification_store.d.ts +1 -1
  62. package/api/chia/wallet/puzzle_drivers.d.ts +2 -2
  63. package/api/chia/wallet/puzzles/clawback/metadata.d.ts +2 -2
  64. package/api/chia/wallet/signer_protocol.d.ts +54 -0
  65. package/api/chia/wallet/signer_protocol.js +2 -0
  66. package/api/chia/wallet/trade_record.d.ts +3 -3
  67. package/api/chia/wallet/transaction_record.d.ts +4 -4
  68. package/api/chia/wallet/util/quality_filter.d.ts +5 -5
  69. package/api/chia/wallet/util/tx_config.d.ts +4 -11
  70. package/api/chia/wallet/util/wallet_types.d.ts +1 -1
  71. package/api/chia/wallet/vc_wallet/vc_drivers.d.ts +2 -2
  72. package/api/chia/wallet/vc_wallet/vc_store.d.ts +1 -1
  73. package/api/chia/wallet/wallet_coin_record.d.ts +2 -2
  74. package/api/chia/wallet/wallet_coin_store.d.ts +1 -1
  75. package/api/chia/wallet/wallet_info.d.ts +2 -2
  76. package/api/chia/wallet/wallet_node.d.ts +1 -1
  77. package/api/chia_rs/chia-bls/public_key.d.ts +2 -0
  78. package/api/chia_rs/chia-bls/public_key.js +2 -0
  79. package/api/chia_rs/chia-consensus/gen/owned_conditions.d.ts +36 -0
  80. package/api/chia_rs/chia-consensus/gen/owned_conditions.js +2 -0
  81. package/api/chia_rs/chia-protocol/block_record.d.ts +32 -0
  82. package/api/chia_rs/chia-protocol/block_record.js +2 -0
  83. package/api/chia_rs/chia-protocol/classgroup.d.ts +4 -0
  84. package/api/chia_rs/chia-protocol/classgroup.js +2 -0
  85. package/api/chia_rs/chia-protocol/coin.d.ts +7 -0
  86. package/api/chia_rs/chia-protocol/coin.js +2 -0
  87. package/api/chia_rs/chia-protocol/coin_spend.d.ts +7 -0
  88. package/api/chia_rs/chia-protocol/coin_spend.js +2 -0
  89. package/api/chia_rs/chia-protocol/end_of_sub_slot_bundle.d.ts +8 -0
  90. package/api/chia_rs/chia-protocol/end_of_sub_slot_bundle.js +2 -0
  91. package/api/chia_rs/chia-protocol/foliage.d.ts +35 -0
  92. package/api/chia_rs/chia-protocol/foliage.js +2 -0
  93. package/api/chia_rs/chia-protocol/fullblock.d.ts +20 -0
  94. package/api/chia_rs/chia-protocol/fullblock.js +2 -0
  95. package/api/chia_rs/chia-protocol/pool_target.d.ts +6 -0
  96. package/api/chia_rs/chia-protocol/pool_target.js +2 -0
  97. package/api/chia_rs/chia-protocol/program.d.ts +2 -0
  98. package/api/chia_rs/chia-protocol/program.js +2 -0
  99. package/api/chia_rs/chia-protocol/proof_of_space.d.ts +10 -0
  100. package/api/chia_rs/chia-protocol/proof_of_space.js +2 -0
  101. package/api/chia_rs/chia-protocol/reward_chain_block.d.ts +30 -0
  102. package/api/chia_rs/chia-protocol/reward_chain_block.js +2 -0
  103. package/api/chia_rs/chia-protocol/slots.d.ts +24 -0
  104. package/api/chia_rs/chia-protocol/slots.js +2 -0
  105. package/api/chia_rs/chia-protocol/sub_epoch_summary.d.ts +9 -0
  106. package/api/chia_rs/chia-protocol/sub_epoch_summary.js +2 -0
  107. package/api/chia_rs/chia-protocol/unfinished_block.d.ts +17 -0
  108. package/api/chia_rs/chia-protocol/unfinished_block.js +2 -0
  109. package/api/chia_rs/chia-protocol/vdf.d.ts +13 -0
  110. package/api/chia_rs/chia-protocol/vdf.js +2 -0
  111. package/api/{chia/pool/store.d.ts → pool-reference/pool/record.d.ts} +5 -5
  112. package/api/pool-reference/pool/record.js +2 -0
  113. package/api/rpc/common/index.d.ts +34 -24
  114. package/api/rpc/common/index.js +8 -1
  115. package/api/rpc/crawler/index.d.ts +10 -10
  116. package/api/rpc/data_layer/index.d.ts +208 -134
  117. package/api/rpc/data_layer/index.js +23 -2
  118. package/api/rpc/farmer/index.d.ts +52 -55
  119. package/api/rpc/full_node/index.d.ts +140 -154
  120. package/api/rpc/full_node/index.js +2 -9
  121. package/api/rpc/harvester/index.d.ts +31 -34
  122. package/api/rpc/index.d.ts +7 -7
  123. package/api/rpc/index.js +13 -9
  124. package/api/rpc/pool/index.d.ts +13 -13
  125. package/api/rpc/wallet/index.d.ts +747 -641
  126. package/api/rpc/wallet/index.js +27 -20
  127. package/api/types.d.ts +4 -3
  128. package/api/types.js +2 -1
  129. package/api/ws/chia_plots_create/index.d.ts +7 -7
  130. package/api/ws/crawler/index.d.ts +9 -9
  131. package/api/ws/daemon/index.d.ts +198 -166
  132. package/api/ws/daemon/index.js +17 -3
  133. package/api/ws/farmer/index.d.ts +34 -34
  134. package/api/ws/full_node/index.d.ts +28 -17
  135. package/api/ws/full_node/index.js +14 -1
  136. package/api/ws/harvester/index.d.ts +19 -19
  137. package/api/ws/index.d.ts +3 -3
  138. package/api/ws/index.js +5 -2
  139. package/api/ws/timelord/index.d.ts +14 -14
  140. package/api/ws/wallet/index.d.ts +22 -22
  141. package/bin/cli.js +3 -3
  142. package/config/index.d.ts +1 -1
  143. package/config/index.js +3 -3
  144. package/daemon/connection.js +9 -10
  145. package/daemon/index.d.ts +6 -6
  146. package/daemon/index.js +21 -21
  147. package/index.js +5 -1
  148. package/logger.d.ts +3 -3
  149. package/package.json +3 -3
  150. package/rpc/index.d.ts +6 -4
  151. package/rpc/index.js +29 -29
  152. package/api/chia/types/blockchain_format/serialized_program.d.ts +0 -2
  153. /package/api/chia/{pool/store.js → rpc/util.js} +0 -0
  154. /package/api/chia/types/{blockchain_format/serialized_program.js → unfinished_block.js} +0 -0
@@ -1,38 +1,38 @@
1
1
  import { GetMessageType } from "../../types";
2
2
  import { TDaemon } from "../../../daemon/index";
3
- import { bool, False, int, None, Optional, str, True, uint32 } from "../../chia/types/_python_types_";
3
+ import { bool, False, G1Element, int, None, Optional, str, True, uint32 } from "../../chia/types/_python_types_";
4
4
  import { chiapos_install_info } from "../../chia/plotters/chiapos";
5
5
  import { bladebit_install_info } from "../../chia/plotters/bladebit";
6
6
  import { madmax_install_info } from "../../chia/plotters/maxmax";
7
7
  import { KeyData } from "../../chia/util/keychain";
8
8
  export declare const daemon_service = "daemon";
9
- export declare type daemon_service = typeof daemon_service;
9
+ export type daemon_service = typeof daemon_service;
10
10
  export declare const ping_command = "ping";
11
- export declare type ping_command = typeof ping_command;
12
- export declare type TPingRequest = {};
13
- export declare type TPingResponse = {
11
+ export type ping_command = typeof ping_command;
12
+ export type TPingRequest = Record<string, never>;
13
+ export type TPingResponse = {
14
14
  success: True;
15
15
  value: str;
16
16
  };
17
- export declare type WsPingMessage = GetMessageType<daemon_service, ping_command, TPingResponse>;
17
+ export type WsPingMessage = GetMessageType<daemon_service, ping_command, TPingResponse>;
18
18
  export declare function ping(daemon: TDaemon): Promise<WsPingMessage>;
19
- export declare type TService = "chia" | "chia_wallet" | "chia_full_node" | "chia_harvester" | "chia_farmer" | "chia_introducer" | "chia_timelord" | "chia_timelord_launcher" | "chia_full_node_simulator";
19
+ export type TService = "chia" | "chia_wallet" | "chia_full_node" | "chia_harvester" | "chia_farmer" | "chia_introducer" | "chia_timelord" | "chia_timelord_launcher" | "chia_full_node_simulator";
20
20
  export declare const start_service_command = "start_service";
21
- export declare type start_service_command = typeof start_service_command;
22
- export declare type TStartServiceRequest = {
21
+ export type start_service_command = typeof start_service_command;
22
+ export type TStartServiceRequest = {
23
23
  service: TService;
24
24
  testing?: bool;
25
25
  };
26
- export declare type TStartServiceResponse = {
26
+ export type TStartServiceResponse = {
27
27
  success: bool;
28
28
  service: TService;
29
29
  error: Optional<str>;
30
30
  };
31
- export declare type WsStartServiceMessage = GetMessageType<daemon_service, start_service_command, TStartServiceResponse>;
31
+ export type WsStartServiceMessage = GetMessageType<daemon_service, start_service_command, TStartServiceResponse>;
32
32
  export declare function start_service(daemon: TDaemon, data: TStartServiceRequest): Promise<WsStartServiceMessage>;
33
33
  export declare const start_plotting_command = "start_plotting";
34
- export declare type start_plotting_command = typeof start_plotting_command;
35
- export declare type TCommonPlottingParams = {
34
+ export type start_plotting_command = typeof start_plotting_command;
35
+ export type TCommonPlottingParams = {
36
36
  service: "chia_plotter";
37
37
  delay?: int;
38
38
  parallel?: bool;
@@ -47,7 +47,7 @@ export declare type TCommonPlottingParams = {
47
47
  p?: str;
48
48
  c?: str;
49
49
  };
50
- export declare type TChiaPosParams = {
50
+ export type TChiaPosParams = {
51
51
  plotter: "chiapos";
52
52
  t2?: str;
53
53
  b: int;
@@ -56,7 +56,7 @@ export declare type TChiaPosParams = {
56
56
  e: bool;
57
57
  overrideK: bool;
58
58
  };
59
- export declare type TBladeBitRamParams = {
59
+ export type TBladeBitRamParams = {
60
60
  plotter: "bladebit";
61
61
  plot_type: "ramplot";
62
62
  w?: bool;
@@ -64,7 +64,7 @@ export declare type TBladeBitRamParams = {
64
64
  no_cpu_affinity?: bool;
65
65
  compress?: int;
66
66
  };
67
- export declare type TBladeBitDiskParams = {
67
+ export type TBladeBitDiskParams = {
68
68
  plotter: "bladebit";
69
69
  plot_type: "diskplot";
70
70
  w?: bool;
@@ -84,7 +84,7 @@ export declare type TBladeBitDiskParams = {
84
84
  no_t1_direct?: bool;
85
85
  no_t2_direct?: bool;
86
86
  };
87
- export declare type TBladeBitCudaParams = {
87
+ export type TBladeBitCudaParams = {
88
88
  plotter: "bladebit";
89
89
  plot_type: "cudaplot";
90
90
  w?: bool;
@@ -97,7 +97,7 @@ export declare type TBladeBitCudaParams = {
97
97
  disk_128?: bool;
98
98
  disk_16?: bool;
99
99
  };
100
- export declare type TMadMaxParams = {
100
+ export type TMadMaxParams = {
101
101
  plotter: "madmax";
102
102
  t2: str;
103
103
  b: int;
@@ -106,126 +106,150 @@ export declare type TMadMaxParams = {
106
106
  K?: int;
107
107
  G?: bool;
108
108
  };
109
- export declare type TStartPlottingRequest = TCommonPlottingParams & (TChiaPosParams | TBladeBitRamParams | TBladeBitDiskParams | TBladeBitCudaParams | TMadMaxParams);
110
- export declare type TStartPlottingResponse = {
109
+ export type TStartPlottingRequest = TCommonPlottingParams & (TChiaPosParams | TBladeBitRamParams | TBladeBitDiskParams | TBladeBitCudaParams | TMadMaxParams);
110
+ export type TStartPlottingResponse = {
111
111
  success: bool;
112
112
  ids: str[];
113
113
  service_name: str;
114
114
  };
115
- export declare type WsStartPlottingMessage = GetMessageType<daemon_service, start_plotting_command, TStartPlottingResponse>;
115
+ export type WsStartPlottingMessage = GetMessageType<daemon_service, start_plotting_command, TStartPlottingResponse>;
116
116
  export declare function start_plotting(daemon: TDaemon, data: TStartPlottingRequest): Promise<WsStartPlottingMessage>;
117
117
  export declare const stop_plotting_command = "stop_plotting";
118
- export declare type stop_plotting_command = typeof stop_plotting_command;
119
- export declare type TStopPlottingRequest = {
118
+ export type stop_plotting_command = typeof stop_plotting_command;
119
+ export type TStopPlottingRequest = {
120
120
  id: str;
121
121
  };
122
- export declare type TStopPlottingResponse = {
122
+ export type TStopPlottingResponse = {
123
123
  success: bool;
124
124
  };
125
- export declare type WsStopPlottingMessage = GetMessageType<daemon_service, stop_plotting_command, TStopPlottingResponse>;
125
+ export type WsStopPlottingMessage = GetMessageType<daemon_service, stop_plotting_command, TStopPlottingResponse>;
126
126
  export declare function stop_plotting(daemon: TDaemon, data: TStopPlottingRequest): Promise<WsStopPlottingMessage>;
127
127
  export declare const stop_service_command = "stop_service";
128
- export declare type stop_service_command = typeof stop_service_command;
129
- export declare type TStopServiceRequest = {
128
+ export type stop_service_command = typeof stop_service_command;
129
+ export type TStopServiceRequest = {
130
130
  service: str;
131
131
  };
132
- export declare type TStopServiceResponse = {
132
+ export type TStopServiceResponse = {
133
133
  success: bool;
134
134
  service_name: str;
135
135
  };
136
- export declare type WsStopServiceMessage = GetMessageType<daemon_service, stop_service_command, TStopServiceResponse>;
136
+ export type WsStopServiceMessage = GetMessageType<daemon_service, stop_service_command, TStopServiceResponse>;
137
137
  export declare function stop_service(daemon: TDaemon, data: TStopServiceRequest): Promise<WsStopServiceMessage>;
138
138
  export declare const running_services_command = "running_services";
139
- export declare type running_services_command = typeof running_services_command;
140
- export declare type TRunningServicesResponse = {
139
+ export type running_services_command = typeof running_services_command;
140
+ export type TRunningServicesResponse = {
141
141
  success: bool;
142
142
  running_services: str[];
143
143
  };
144
- export declare type WsRunningServicesMessage = GetMessageType<daemon_service, running_services_command, TRunningServicesResponse>;
144
+ export type WsRunningServicesMessage = GetMessageType<daemon_service, running_services_command, TRunningServicesResponse>;
145
145
  export declare function running_services(daemon: TDaemon): Promise<WsRunningServicesMessage>;
146
146
  export declare const is_running_command = "is_running";
147
- export declare type is_running_command = typeof is_running_command;
148
- export declare type TIsRunningRequest = {
147
+ export type is_running_command = typeof is_running_command;
148
+ export type TIsRunningRequest = {
149
149
  service: str;
150
150
  };
151
- export declare type TIsRunningResponse = {
151
+ export type TIsRunningResponse = {
152
152
  success: bool;
153
153
  service_name: str;
154
154
  is_running: bool;
155
155
  };
156
- export declare type WsIsRunningMessage = GetMessageType<daemon_service, is_running_command, TIsRunningResponse>;
156
+ export type WsIsRunningMessage = GetMessageType<daemon_service, is_running_command, TIsRunningResponse>;
157
157
  export declare function is_running(daemon: TDaemon, data: TIsRunningRequest): Promise<WsIsRunningMessage>;
158
158
  export declare const add_private_key_command = "add_private_key";
159
- export declare type add_private_key_command = typeof add_private_key_command;
160
- export declare type TAddPrivateKeyRequest = {
159
+ export type add_private_key_command = typeof add_private_key_command;
160
+ export type TAddPrivateKeyRequest = {
161
161
  kc_user?: str;
162
- kc_testing?: bool;
162
+ kc_service?: str;
163
163
  mnemonic?: str;
164
164
  label?: str;
165
165
  };
166
- export declare type TAddPrivateKeyResponse = {
167
- success: bool;
168
- error?: str;
166
+ export type TAddPrivateKeyResponse = {
167
+ success: True;
168
+ fingerprint: G1Element;
169
+ } | {
170
+ success: False;
171
+ error: str;
169
172
  error_details?: {
170
173
  message: str;
171
174
  };
172
175
  };
173
- export declare type WsAddPrivateKeyMessage = GetMessageType<daemon_service, add_private_key_command, TAddPrivateKeyResponse>;
176
+ export type WsAddPrivateKeyMessage = GetMessageType<daemon_service, add_private_key_command, TAddPrivateKeyResponse>;
174
177
  export declare function add_private_key(daemon: TDaemon, data: TAddPrivateKeyRequest): Promise<WsAddPrivateKeyMessage>;
178
+ export declare const add_key_command = "add_key";
179
+ export type add_key_command = typeof add_key_command;
180
+ export type TAddKeyRequest = {
181
+ kc_user?: str;
182
+ kc_service?: str;
183
+ mnemonic_or_pk?: str;
184
+ label?: str;
185
+ private?: bool;
186
+ };
187
+ export type TAddKeyResponse = {
188
+ success: True;
189
+ fingerprint: G1Element;
190
+ } | {
191
+ success: False;
192
+ error: str;
193
+ error_details?: {
194
+ message: str;
195
+ };
196
+ };
197
+ export type WsAddKeyMessage = GetMessageType<daemon_service, add_key_command, TAddKeyResponse>;
198
+ export declare function add_key(daemon: TDaemon, data: TAddKeyRequest): Promise<WsAddKeyMessage>;
175
199
  export declare const check_keys_command = "check_keys";
176
- export declare type check_keys_command = typeof check_keys_command;
177
- export declare type TCheckKeysRequest = {
200
+ export type check_keys_command = typeof check_keys_command;
201
+ export type TCheckKeysRequest = {
178
202
  kc_user?: str;
179
- kc_testing?: bool;
203
+ kc_service?: str;
180
204
  root_path: str;
181
205
  };
182
- export declare type TCheckKeysResponse = {
206
+ export type TCheckKeysResponse = {
183
207
  success: bool;
184
208
  error?: str;
185
209
  error_details?: {
186
210
  message: str;
187
211
  };
188
212
  };
189
- export declare type WsCheckKeysMessage = GetMessageType<daemon_service, check_keys_command, TCheckKeysResponse>;
213
+ export type WsCheckKeysMessage = GetMessageType<daemon_service, check_keys_command, TCheckKeysResponse>;
190
214
  export declare function check_keys(daemon: TDaemon, data: TCheckKeysRequest): Promise<WsCheckKeysMessage>;
191
215
  export declare const delete_all_keys_command = "delete_all_keys";
192
- export declare type delete_all_keys_command = typeof delete_all_keys_command;
193
- export declare type TDeleteAllKeysRequest = {
216
+ export type delete_all_keys_command = typeof delete_all_keys_command;
217
+ export type TDeleteAllKeysRequest = {
194
218
  kc_user?: str;
195
- kc_testing?: bool;
219
+ kc_service?: str;
196
220
  };
197
- export declare type TDeleteAllKeysResponse = {
221
+ export type TDeleteAllKeysResponse = {
198
222
  success: bool;
199
223
  error?: str;
200
224
  error_details?: {
201
225
  message: str;
202
226
  };
203
227
  };
204
- export declare type WsDeleteAllKeysMessage = GetMessageType<daemon_service, delete_all_keys_command, TDeleteAllKeysResponse>;
228
+ export type WsDeleteAllKeysMessage = GetMessageType<daemon_service, delete_all_keys_command, TDeleteAllKeysResponse>;
205
229
  export declare function delete_all_keys(daemon: TDaemon, data: TDeleteAllKeysRequest): Promise<WsDeleteAllKeysMessage>;
206
230
  export declare const delete_key_by_fingerprint_command = "delete_key_by_fingerprint";
207
- export declare type delete_key_by_fingerprint_command = typeof delete_key_by_fingerprint_command;
208
- export declare type TDeleteKeyByFingerprintRequest = {
231
+ export type delete_key_by_fingerprint_command = typeof delete_key_by_fingerprint_command;
232
+ export type TDeleteKeyByFingerprintRequest = {
209
233
  kc_user?: str;
210
- kc_testing?: bool;
234
+ kc_service?: str;
211
235
  fingerprint: int;
212
236
  };
213
- export declare type TDeleteKeyByFingerprintResponse = {
237
+ export type TDeleteKeyByFingerprintResponse = {
214
238
  success: bool;
215
239
  error?: str;
216
240
  error_details?: {
217
241
  message: str;
218
242
  };
219
243
  };
220
- export declare type WsDeleteKeyByFingerprintMessage = GetMessageType<daemon_service, delete_key_by_fingerprint_command, TDeleteKeyByFingerprintResponse>;
244
+ export type WsDeleteKeyByFingerprintMessage = GetMessageType<daemon_service, delete_key_by_fingerprint_command, TDeleteKeyByFingerprintResponse>;
221
245
  export declare function delete_key_by_fingerprint(daemon: TDaemon, data: TDeleteKeyByFingerprintRequest): Promise<WsDeleteKeyByFingerprintMessage>;
222
246
  export declare const get_all_private_keys_command = "get_all_private_keys";
223
- export declare type get_all_private_keys_command = typeof get_all_private_keys_command;
224
- export declare type TGetAllPrivateKeysRequest = {
247
+ export type get_all_private_keys_command = typeof get_all_private_keys_command;
248
+ export type TGetAllPrivateKeysRequest = {
225
249
  kc_user?: str;
226
- kc_testing?: bool;
250
+ kc_service?: str;
227
251
  };
228
- export declare type TGetAllPrivateKeysResponse = {
252
+ export type TGetAllPrivateKeysResponse = {
229
253
  success: bool;
230
254
  error?: str;
231
255
  private_keys: Array<{
@@ -233,15 +257,15 @@ export declare type TGetAllPrivateKeysResponse = {
233
257
  entropy: str;
234
258
  }>;
235
259
  };
236
- export declare type WsGetAllPrivateKeysMessage = GetMessageType<daemon_service, get_all_private_keys_command, TGetAllPrivateKeysResponse>;
260
+ export type WsGetAllPrivateKeysMessage = GetMessageType<daemon_service, get_all_private_keys_command, TGetAllPrivateKeysResponse>;
237
261
  export declare function get_all_private_keys(daemon: TDaemon, data: TGetAllPrivateKeysRequest): Promise<WsGetAllPrivateKeysMessage>;
238
262
  export declare const get_first_private_key_command = "get_first_private_key";
239
- export declare type get_first_private_key_command = typeof get_first_private_key_command;
240
- export declare type TGetFirstPrivateKeyRequest = {
263
+ export type get_first_private_key_command = typeof get_first_private_key_command;
264
+ export type TGetFirstPrivateKeyRequest = {
241
265
  kc_user?: str;
242
- kc_testing?: bool;
266
+ kc_service?: str;
243
267
  };
244
- export declare type TGetFirstPrivateKeyResponse = {
268
+ export type TGetFirstPrivateKeyResponse = {
245
269
  success: bool;
246
270
  error?: str;
247
271
  private_key: {
@@ -249,32 +273,35 @@ export declare type TGetFirstPrivateKeyResponse = {
249
273
  entropy: str;
250
274
  };
251
275
  };
252
- export declare type WsGetFirstPrivateKeyMessage = GetMessageType<daemon_service, get_first_private_key_command, TGetFirstPrivateKeyResponse>;
276
+ export type WsGetFirstPrivateKeyMessage = GetMessageType<daemon_service, get_first_private_key_command, TGetFirstPrivateKeyResponse>;
253
277
  export declare function get_first_private_key(daemon: TDaemon, data: TGetFirstPrivateKeyRequest): Promise<WsGetFirstPrivateKeyMessage>;
254
278
  export declare const get_key_for_fingerprint_command = "get_key_for_fingerprint";
255
- export declare type get_key_for_fingerprint_command = typeof get_key_for_fingerprint_command;
256
- export declare type TGetKeyForFingerprintRequest = {
279
+ export type get_key_for_fingerprint_command = typeof get_key_for_fingerprint_command;
280
+ export type TGetKeyForFingerprintRequest = {
257
281
  kc_user?: str;
258
- kc_testing?: bool;
282
+ kc_service?: str;
283
+ private?: bool;
259
284
  fingerprint?: int;
260
285
  };
261
- export declare type TGetKeyForFingerprintResponse = {
262
- success: bool;
263
- error?: str;
286
+ export type TGetKeyForFingerprintResponse = {
287
+ success: False;
288
+ error: str;
289
+ } | {
290
+ success: True;
264
291
  pk: str;
265
292
  entropy: str;
266
293
  };
267
- export declare type WsGetKeyForFingerprintMessage = GetMessageType<daemon_service, get_key_for_fingerprint_command, TGetKeyForFingerprintResponse>;
294
+ export type WsGetKeyForFingerprintMessage = GetMessageType<daemon_service, get_key_for_fingerprint_command, TGetKeyForFingerprintResponse>;
268
295
  export declare function get_key_for_fingerprint(daemon: TDaemon, data: TGetKeyForFingerprintRequest): Promise<WsGetKeyForFingerprintMessage>;
269
296
  export declare const get_key_command = "get_key";
270
- export declare type get_key_command = typeof get_key_command;
271
- export declare type TGetKeyRequest = {
297
+ export type get_key_command = typeof get_key_command;
298
+ export type TGetKeyRequest = {
272
299
  fingerprint: uint32;
273
300
  include_secrets?: bool;
274
301
  kc_user?: str;
275
302
  kc_service?: str;
276
303
  };
277
- export declare type TGetKeyResponse = {
304
+ export type TGetKeyResponse = {
278
305
  success: True;
279
306
  key: KeyData;
280
307
  } | {
@@ -286,16 +313,16 @@ export declare type TGetKeyResponse = {
286
313
  fingerprint: int;
287
314
  };
288
315
  };
289
- export declare type WsGetKeyMessage = GetMessageType<daemon_service, get_key_command, TGetKeyResponse>;
316
+ export type WsGetKeyMessage = GetMessageType<daemon_service, get_key_command, TGetKeyResponse>;
290
317
  export declare function get_key(daemon: TDaemon, data: TGetKeyRequest): Promise<WsGetKeyMessage>;
291
318
  export declare const get_keys_command = "get_keys";
292
- export declare type get_keys_command = typeof get_keys_command;
293
- export declare type TGetKeysRequest = {
319
+ export type get_keys_command = typeof get_keys_command;
320
+ export type TGetKeysRequest = {
294
321
  include_secrets?: bool;
295
322
  kc_user?: str;
296
323
  kc_service?: str;
297
324
  };
298
- export declare type TGetKeysResponse = {
325
+ export type TGetKeysResponse = {
299
326
  success: True;
300
327
  keys: KeyData[];
301
328
  } | {
@@ -307,16 +334,16 @@ export declare type TGetKeysResponse = {
307
334
  fingerprint: int;
308
335
  };
309
336
  };
310
- export declare type WsGetKeysMessage = GetMessageType<daemon_service, get_keys_command, TGetKeysResponse>;
337
+ export type WsGetKeysMessage = GetMessageType<daemon_service, get_keys_command, TGetKeysResponse>;
311
338
  export declare function get_keys(daemon: TDaemon, data: TGetKeysRequest): Promise<WsGetKeysMessage>;
312
339
  export declare const get_public_key_command = "get_public_key";
313
- export declare type get_public_key_command = typeof get_public_key_command;
314
- export declare type TGetPublicKeyRequest = {
340
+ export type get_public_key_command = typeof get_public_key_command;
341
+ export type TGetPublicKeyRequest = {
315
342
  fingerprint: uint32;
316
343
  kc_user?: str;
317
344
  kc_service?: str;
318
345
  };
319
- export declare type TGetPublicKeyResponse = {
346
+ export type TGetPublicKeyResponse = {
320
347
  success: True;
321
348
  key: Omit<KeyData, "secrets">;
322
349
  } | {
@@ -328,15 +355,15 @@ export declare type TGetPublicKeyResponse = {
328
355
  fingerprint: int;
329
356
  };
330
357
  };
331
- export declare type WsGetPublicKeyMessage = GetMessageType<daemon_service, get_public_key_command, TGetPublicKeyResponse>;
358
+ export type WsGetPublicKeyMessage = GetMessageType<daemon_service, get_public_key_command, TGetPublicKeyResponse>;
332
359
  export declare function get_public_key(daemon: TDaemon, data: TGetPublicKeyRequest): Promise<WsGetPublicKeyMessage>;
333
360
  export declare const get_public_keys_command = "get_public_keys";
334
- export declare type get_public_keys_command = typeof get_public_keys_command;
335
- export declare type TGetPublicKeysRequest = {
361
+ export type get_public_keys_command = typeof get_public_keys_command;
362
+ export type TGetPublicKeysRequest = {
336
363
  kc_user?: str;
337
364
  kc_service?: str;
338
365
  };
339
- export declare type TGetPublicKeysResponse = {
366
+ export type TGetPublicKeysResponse = {
340
367
  success: True;
341
368
  keys: Array<Omit<KeyData, "secrets">>;
342
369
  } | {
@@ -348,17 +375,17 @@ export declare type TGetPublicKeysResponse = {
348
375
  fingerprint: int;
349
376
  };
350
377
  };
351
- export declare type WsGetPublicKeysMessage = GetMessageType<daemon_service, get_public_keys_command, TGetPublicKeysResponse>;
378
+ export type WsGetPublicKeysMessage = GetMessageType<daemon_service, get_public_keys_command, TGetPublicKeysResponse>;
352
379
  export declare function get_public_keys(daemon: TDaemon, data: TGetPublicKeysRequest): Promise<WsGetPublicKeysMessage>;
353
380
  export declare const set_label_command = "set_label";
354
- export declare type set_label_command = typeof set_label_command;
355
- export declare type TSetLabelRequest = {
381
+ export type set_label_command = typeof set_label_command;
382
+ export type TSetLabelRequest = {
356
383
  fingerprint: uint32;
357
384
  label: str;
358
385
  kc_user?: str;
359
386
  kc_service?: str;
360
387
  };
361
- export declare type TSetLabelResponse = {
388
+ export type TSetLabelResponse = {
362
389
  success: True;
363
390
  } | {
364
391
  success: False;
@@ -369,16 +396,16 @@ export declare type TSetLabelResponse = {
369
396
  fingerprint: int;
370
397
  };
371
398
  };
372
- export declare type WsSetLabelMessage = GetMessageType<daemon_service, set_label_command, TSetLabelResponse>;
399
+ export type WsSetLabelMessage = GetMessageType<daemon_service, set_label_command, TSetLabelResponse>;
373
400
  export declare function set_label(daemon: TDaemon, data: TSetLabelRequest): Promise<WsSetLabelMessage>;
374
401
  export declare const delete_label_command = "delete_label";
375
- export declare type delete_label_command = typeof delete_label_command;
376
- export declare type TDeleteLabelRequest = {
402
+ export type delete_label_command = typeof delete_label_command;
403
+ export type TDeleteLabelRequest = {
377
404
  fingerprint: uint32;
378
405
  kc_user?: str;
379
406
  kc_service?: str;
380
407
  };
381
- export declare type TDeleteLabelResponse = {
408
+ export type TDeleteLabelResponse = {
382
409
  success: True;
383
410
  } | {
384
411
  success: False;
@@ -389,19 +416,19 @@ export declare type TDeleteLabelResponse = {
389
416
  fingerprint: int;
390
417
  };
391
418
  };
392
- export declare type WsDeleteLabelMessage = GetMessageType<daemon_service, delete_label_command, TDeleteLabelResponse>;
419
+ export type WsDeleteLabelMessage = GetMessageType<daemon_service, delete_label_command, TDeleteLabelResponse>;
393
420
  export declare function delete_label(daemon: TDaemon, data: TDeleteLabelRequest): Promise<WsDeleteLabelMessage>;
394
421
  export declare const is_keyring_locked_command = "is_keyring_locked";
395
- export declare type is_keyring_locked_command = typeof is_keyring_locked_command;
396
- export declare type TIsKeyringLockedResponse = {
422
+ export type is_keyring_locked_command = typeof is_keyring_locked_command;
423
+ export type TIsKeyringLockedResponse = {
397
424
  success: bool;
398
425
  is_keyring_locked: bool;
399
426
  };
400
- export declare type WsIsKeyringLockedMessage = GetMessageType<daemon_service, is_keyring_locked_command, TIsKeyringLockedResponse>;
427
+ export type WsIsKeyringLockedMessage = GetMessageType<daemon_service, is_keyring_locked_command, TIsKeyringLockedResponse>;
401
428
  export declare function is_keyring_locked(daemon: TDaemon): Promise<WsIsKeyringLockedMessage>;
402
429
  export declare const keyring_status_command = "keyring_status";
403
- export declare type keyring_status_command = typeof keyring_status_command;
404
- export declare type TKeyringStatusResponse = {
430
+ export type keyring_status_command = typeof keyring_status_command;
431
+ export type TKeyringStatusResponse = {
405
432
  success: bool;
406
433
  is_keyring_locked: bool;
407
434
  passphrase_support_enabled: bool;
@@ -409,94 +436,93 @@ export declare type TKeyringStatusResponse = {
409
436
  user_passphrase_is_set: bool;
410
437
  can_set_passphrase_hint: bool;
411
438
  passphrase_hint: str;
412
- passphrase_requirements: {} | {
439
+ passphrase_requirements: Record<string, never> | {
413
440
  is_optional: True;
414
441
  min_length: int;
415
442
  };
416
443
  };
417
- export declare type WsKeyringStateMessage = GetMessageType<daemon_service, keyring_status_command, TKeyringStatusResponse>;
444
+ export type WsKeyringStateMessage = GetMessageType<daemon_service, keyring_status_command, TKeyringStatusResponse>;
418
445
  export declare function keyring_status(daemon: TDaemon): Promise<WsKeyringStateMessage>;
419
446
  export declare const unlock_keyring_command = "unlock_keyring";
420
- export declare type unlock_keyring_command = typeof unlock_keyring_command;
421
- export declare type TUnlockKeyringRequest = {
447
+ export type unlock_keyring_command = typeof unlock_keyring_command;
448
+ export type TUnlockKeyringRequest = {
422
449
  key: string;
423
450
  };
424
- export declare type TUnlockKeyringResponse = {
451
+ export type TUnlockKeyringResponse = {
425
452
  success: bool;
426
453
  error: str | None;
427
454
  };
428
- export declare type WsUnlockKeyringMessage = GetMessageType<daemon_service, unlock_keyring_command, TUnlockKeyringResponse>;
455
+ export type WsUnlockKeyringMessage = GetMessageType<daemon_service, unlock_keyring_command, TUnlockKeyringResponse>;
429
456
  export declare function unlock_keyring(daemon: TDaemon, data: TUnlockKeyringRequest): Promise<WsUnlockKeyringMessage>;
430
457
  export declare const validate_keyring_passphrase_command = "validate_keyring_passphrase";
431
- export declare type validate_keyring_passphrase_command = typeof validate_keyring_passphrase_command;
432
- export declare type TValidateKeyringPassphraseRequest = {
458
+ export type validate_keyring_passphrase_command = typeof validate_keyring_passphrase_command;
459
+ export type TValidateKeyringPassphraseRequest = {
433
460
  key: string;
434
461
  };
435
- export declare type TValidateKeyringPassphraseResponse = {
462
+ export type TValidateKeyringPassphraseResponse = {
436
463
  success: bool;
437
464
  error: str | None;
438
465
  };
439
- export declare type WsValidateKeyringPassphraseMessage = GetMessageType<daemon_service, validate_keyring_passphrase_command, TValidateKeyringPassphraseResponse>;
466
+ export type WsValidateKeyringPassphraseMessage = GetMessageType<daemon_service, validate_keyring_passphrase_command, TValidateKeyringPassphraseResponse>;
440
467
  export declare function validate_keyring_passphrase(daemon: TDaemon, data: TValidateKeyringPassphraseRequest): Promise<WsValidateKeyringPassphraseMessage>;
441
468
  export declare const migrate_keyring_command = "migrate_keyring";
442
- export declare type migrate_keyring_command = typeof migrate_keyring_command;
443
- export declare type TMigrateKeyringRequest = {
469
+ export type migrate_keyring_command = typeof migrate_keyring_command;
470
+ export type TMigrateKeyringRequest = {
444
471
  passphrase?: str;
445
472
  passphrase_hint?: str;
446
473
  save_passphrase?: bool;
447
474
  cleanup_legacy_keyring?: bool;
448
475
  };
449
- export declare type TMigrateKeyringResponse = {
476
+ export type TMigrateKeyringResponse = {
450
477
  success: bool;
451
478
  error: str | None;
452
479
  };
453
- export declare type WsMigrateKeyringMessage = GetMessageType<daemon_service, migrate_keyring_command, TMigrateKeyringResponse>;
480
+ export type WsMigrateKeyringMessage = GetMessageType<daemon_service, migrate_keyring_command, TMigrateKeyringResponse>;
454
481
  export declare function migrate_keyring(daemon: TDaemon, data: TMigrateKeyringRequest): Promise<WsMigrateKeyringMessage>;
455
482
  export declare const set_keyring_passphrase_command = "set_keyring_passphrase";
456
- export declare type set_keyring_passphrase_command = typeof set_keyring_passphrase_command;
457
- export declare type TSetKeyringPassphraseRequest = {
483
+ export type set_keyring_passphrase_command = typeof set_keyring_passphrase_command;
484
+ export type TSetKeyringPassphraseRequest = {
458
485
  current_passphrase: str;
459
486
  new_passphrase: str;
460
487
  passphrase_hint?: str;
461
488
  save_passphrase?: bool;
462
489
  };
463
- export declare type TSetKeyringPassphraseResponse = {
490
+ export type TSetKeyringPassphraseResponse = {
464
491
  success: bool;
465
492
  error: str;
466
493
  };
467
- export declare type WsSetKeyringPassphraseMessage = GetMessageType<daemon_service, set_keyring_passphrase_command, TSetKeyringPassphraseResponse>;
494
+ export type WsSetKeyringPassphraseMessage = GetMessageType<daemon_service, set_keyring_passphrase_command, TSetKeyringPassphraseResponse>;
468
495
  export declare function set_keyring_passphrase(daemon: TDaemon, data: TSetKeyringPassphraseRequest): Promise<WsSetKeyringPassphraseMessage>;
469
496
  export declare const remove_keyring_passphrase_command = "remove_keyring_passphrase";
470
- export declare type remove_keyring_passphrase_command = typeof remove_keyring_passphrase_command;
471
- export declare type TRemoveKeyringPassphraseRequest = {
497
+ export type remove_keyring_passphrase_command = typeof remove_keyring_passphrase_command;
498
+ export type TRemoveKeyringPassphraseRequest = {
472
499
  current_passphrase: str;
473
500
  };
474
- export declare type TRemoveKeyringPassphraseResponse = {
501
+ export type TRemoveKeyringPassphraseResponse = {
475
502
  success: bool;
476
503
  error: str;
477
504
  };
478
- export declare type WsRemoveKeyringPassphraseMessage = GetMessageType<daemon_service, remove_keyring_passphrase_command, TRemoveKeyringPassphraseResponse>;
505
+ export type WsRemoveKeyringPassphraseMessage = GetMessageType<daemon_service, remove_keyring_passphrase_command, TRemoveKeyringPassphraseResponse>;
479
506
  export declare function remove_keyring_passphrase(daemon: TDaemon, data: TRemoveKeyringPassphraseRequest): Promise<WsRemoveKeyringPassphraseMessage>;
480
507
  export declare const notify_keyring_migration_completed_command = "notify_keyring_migration_completed";
481
- export declare type notify_keyring_migration_completed_command = typeof notify_keyring_migration_completed_command;
482
- export declare type TNotifyKeyringMigrationCompletedRequest = {
508
+ export type notify_keyring_migration_completed_command = typeof notify_keyring_migration_completed_command;
509
+ export type TNotifyKeyringMigrationCompletedRequest = {
483
510
  key: str;
484
511
  };
485
- export declare type TNotifyKeyringMigrationCompletedResponse = {
512
+ export type TNotifyKeyringMigrationCompletedResponse = {
486
513
  success: bool;
487
514
  error: str;
488
515
  };
489
- export declare type WsNotifyKeyringMigrationCompletedMessage = GetMessageType<daemon_service, notify_keyring_migration_completed_command, TNotifyKeyringMigrationCompletedResponse>;
516
+ export type WsNotifyKeyringMigrationCompletedMessage = GetMessageType<daemon_service, notify_keyring_migration_completed_command, TNotifyKeyringMigrationCompletedResponse>;
490
517
  export declare function notify_keyring_migration_completed(daemon: TDaemon, data: TNotifyKeyringMigrationCompletedRequest): Promise<WsNotifyKeyringMigrationCompletedMessage>;
491
518
  export declare const exit_command = "exit";
492
- export declare type exit_command = typeof exit_command;
493
- export declare type TExitRequest = {};
494
- export declare type TExitResponse = {
519
+ export type exit_command = typeof exit_command;
520
+ export type TExitResponse = {
495
521
  success: bool;
496
522
  };
497
- export declare type WsExitMessage = GetMessageType<daemon_service, exit_command, TExitResponse>;
523
+ export type WsExitMessage = GetMessageType<daemon_service, exit_command, TExitResponse>;
498
524
  export declare function exit(daemon: TDaemon): Promise<WsExitMessage>;
499
- export declare type TPlotQueue = {
525
+ export type TPlotQueue = {
500
526
  id: str;
501
527
  queue: str;
502
528
  size: int;
@@ -509,41 +535,38 @@ export declare type TPlotQueue = {
509
535
  log?: str;
510
536
  };
511
537
  export declare const register_service_command = "register_service";
512
- export declare type register_service_command = typeof register_service_command;
513
- export declare type TRegisterServiceRequest = {
538
+ export type register_service_command = typeof register_service_command;
539
+ export type TRegisterServiceRequest = {
514
540
  service: str;
515
541
  };
516
- export declare type TRegisterServiceResponse = {
542
+ export type TRegisterServiceResponse = {
517
543
  success: bool;
518
544
  } | {
519
545
  success: bool;
520
546
  service: str;
521
547
  queue: TPlotQueue[];
522
548
  };
523
- export declare type WsRegisterServiceMessage = GetMessageType<daemon_service, register_service_command, TRegisterServiceResponse>;
549
+ export type WsRegisterServiceMessage = GetMessageType<daemon_service, register_service_command, TRegisterServiceResponse>;
524
550
  export declare function register_service(daemon: TDaemon, data: TRegisterServiceRequest): Promise<WsRegisterServiceMessage>;
525
551
  export declare const get_status_command = "get_status";
526
- export declare type get_status_command = typeof get_status_command;
527
- export declare type TGetStatusRequest = {};
528
- export declare type TGetStatusResponse = {
552
+ export type get_status_command = typeof get_status_command;
553
+ export type TGetStatusResponse = {
529
554
  success: True;
530
555
  genesis_initialized: True;
531
556
  };
532
- export declare type WsGetStatusMessage = GetMessageType<daemon_service, get_status_command, TGetStatusResponse>;
557
+ export type WsGetStatusMessage = GetMessageType<daemon_service, get_status_command, TGetStatusResponse>;
533
558
  export declare function get_status(daemon: TDaemon): Promise<WsGetStatusMessage>;
534
559
  export declare const get_version_command = "get_version";
535
- export declare type get_version_command = typeof get_version_command;
536
- export declare type TGetVersionRequest = {};
537
- export declare type TGetVersionResponse = {
560
+ export type get_version_command = typeof get_version_command;
561
+ export type TGetVersionResponse = {
538
562
  success: bool;
539
563
  version: string;
540
564
  };
541
- export declare type WsGetVersionMessage = GetMessageType<daemon_service, get_version_command, TGetVersionResponse>;
565
+ export type WsGetVersionMessage = GetMessageType<daemon_service, get_version_command, TGetVersionResponse>;
542
566
  export declare function get_version(daemon: TDaemon): Promise<WsGetVersionMessage>;
543
567
  export declare const get_plotters_command = "get_plotters";
544
- export declare type get_plotters_command = typeof get_plotters_command;
545
- export declare type TGetPlottersRequest = {};
546
- export declare type TGetPlottersResponse = {
568
+ export type get_plotters_command = typeof get_plotters_command;
569
+ export type TGetPlottersResponse = {
547
570
  success: True;
548
571
  plotters: {
549
572
  chiapos?: chiapos_install_info;
@@ -551,25 +574,25 @@ export declare type TGetPlottersResponse = {
551
574
  madmax?: madmax_install_info;
552
575
  };
553
576
  };
554
- export declare type WsGetPlottersMessage = GetMessageType<daemon_service, get_plotters_command, TGetPlottersResponse>;
577
+ export type WsGetPlottersMessage = GetMessageType<daemon_service, get_plotters_command, TGetPlottersResponse>;
555
578
  export declare function get_plotters(daemon: TDaemon): Promise<WsGetPlottersMessage>;
556
579
  export declare const get_routes_command = "get_routes";
557
- export declare type get_routes_command = typeof get_routes_command;
558
- export declare type TGetRoutesResponse = {
580
+ export type get_routes_command = typeof get_routes_command;
581
+ export type TGetRoutesResponse = {
559
582
  success: True;
560
583
  routes: str[];
561
584
  };
562
- export declare type WsGetRoutesMessage = GetMessageType<daemon_service, get_routes_command, TGetRoutesResponse>;
585
+ export type WsGetRoutesMessage = GetMessageType<daemon_service, get_routes_command, TGetRoutesResponse>;
563
586
  export declare function get_routes(daemon: TDaemon): Promise<WsGetRoutesMessage>;
564
587
  export declare const get_wallet_addresses_command = "get_wallet_addresses";
565
- export declare type get_wallet_addresses_command = typeof get_wallet_addresses_command;
566
- export declare type TGetWalletAddressesRequest = {
588
+ export type get_wallet_addresses_command = typeof get_wallet_addresses_command;
589
+ export type TGetWalletAddressesRequest = {
567
590
  fingerprints?: uint32[];
568
591
  index?: int;
569
592
  count?: int;
570
593
  non_observer_derivation?: bool;
571
594
  };
572
- export declare type TGetWalletAddressesResponse = {
595
+ export type TGetWalletAddressesResponse = {
573
596
  success: False;
574
597
  error: str;
575
598
  } | {
@@ -579,14 +602,14 @@ export declare type TGetWalletAddressesResponse = {
579
602
  hd_path: str;
580
603
  }>>;
581
604
  };
582
- export declare type WsGetWalletAddressesMessage = GetMessageType<daemon_service, get_wallet_addresses_command, TGetWalletAddressesResponse>;
605
+ export type WsGetWalletAddressesMessage = GetMessageType<daemon_service, get_wallet_addresses_command, TGetWalletAddressesResponse>;
583
606
  export declare function get_wallet_addresses(daemon: TDaemon, data: TGetWalletAddressesRequest): Promise<WsGetWalletAddressesMessage>;
584
607
  export declare const get_keys_for_plotting_command = "get_keys_for_plotting";
585
- export declare type get_keys_for_plotting_command = typeof get_keys_for_plotting_command;
586
- export declare type TGetKeysForPlottingRequest = {
608
+ export type get_keys_for_plotting_command = typeof get_keys_for_plotting_command;
609
+ export type TGetKeysForPlottingRequest = {
587
610
  fingerprints?: uint32[];
588
611
  };
589
- export declare type TGetKeysForPlottingResponse = {
612
+ export type TGetKeysForPlottingResponse = {
590
613
  success: False;
591
614
  error: str;
592
615
  } | {
@@ -596,13 +619,22 @@ export declare type TGetKeysForPlottingResponse = {
596
619
  pool_public_key: str;
597
620
  }>;
598
621
  };
599
- export declare type WsGetKeysForPlottingMessage = GetMessageType<daemon_service, get_keys_for_plotting_command, TGetKeysForPlottingResponse>;
622
+ export type WsGetKeysForPlottingMessage = GetMessageType<daemon_service, get_keys_for_plotting_command, TGetKeysForPlottingResponse>;
600
623
  export declare function get_keys_for_plotting(daemon: TDaemon, data: TGetKeysForPlottingRequest): Promise<WsGetKeysForPlottingMessage>;
624
+ export declare const get_network_info_command = "get_network_info";
625
+ export type get_network_info_command = typeof get_network_info_command;
626
+ export type TGetNetworkInfoResponse = {
627
+ success: True;
628
+ network_name: str;
629
+ network_prefix: str;
630
+ };
631
+ export type WsGetNetworkInfoMessage = GetMessageType<daemon_service, get_network_info_command, TGetNetworkInfoResponse>;
632
+ export declare function get_network_info(daemon: TDaemon): Promise<WsGetNetworkInfoMessage>;
601
633
  export declare const keyring_status_changed_command = "keyring_status_changed";
602
- export declare type keyring_status_changed_command = typeof keyring_status_changed_command;
603
- export declare type TKeyringStatusChangedBroadCast = {
634
+ export type keyring_status_changed_command = typeof keyring_status_changed_command;
635
+ export type TKeyringStatusChangedBroadCast = {
604
636
  keyring_status_changed: TKeyringStatusResponse;
605
637
  };
606
- export declare type WsKeyringStatusChangedMessage = GetMessageType<daemon_service, keyring_status_changed_command, TKeyringStatusChangedBroadCast>;
638
+ export type WsKeyringStatusChangedMessage = GetMessageType<daemon_service, keyring_status_changed_command, TKeyringStatusChangedBroadCast>;
607
639
  export declare function on_keyring_status_changed(daemon: TDaemon, callback: (e: WsKeyringStatusChangedMessage) => unknown): Promise<() => void>;
608
- export declare type WsDaemonMessage = WsExitMessage | WsGetStatusMessage | WsGetVersionMessage | WsGetPlottersMessage | WsRunningServicesMessage | WsIsRunningMessage | WsPingMessage | WsRegisterServiceMessage | WsStartPlottingMessage | WsStartServiceMessage | WsStopPlottingMessage | WsStopServiceMessage | WsAddPrivateKeyMessage | WsCheckKeysMessage | WsDeleteAllKeysMessage | WsDeleteKeyByFingerprintMessage | WsGetAllPrivateKeysMessage | WsGetFirstPrivateKeyMessage | WsGetKeyForFingerprintMessage | WsGetKeyMessage | WsGetKeysMessage | WsGetPublicKeyMessage | WsGetPublicKeysMessage | WsSetLabelMessage | WsDeleteLabelMessage | WsIsKeyringLockedMessage | WsKeyringStateMessage | WsUnlockKeyringMessage | WsValidateKeyringPassphraseMessage | WsMigrateKeyringMessage | WsSetKeyringPassphraseMessage | WsRemoveKeyringPassphraseMessage | WsNotifyKeyringMigrationCompletedMessage | WsGetRoutesMessage | WsGetWalletAddressesMessage | WsGetKeysForPlottingMessage | WsKeyringStatusChangedMessage;
640
+ export type WsDaemonMessage = WsExitMessage | WsGetStatusMessage | WsGetVersionMessage | WsGetPlottersMessage | WsRunningServicesMessage | WsIsRunningMessage | WsPingMessage | WsRegisterServiceMessage | WsStartPlottingMessage | WsStartServiceMessage | WsStopPlottingMessage | WsStopServiceMessage | WsAddPrivateKeyMessage | WsAddKeyMessage | WsCheckKeysMessage | WsDeleteAllKeysMessage | WsDeleteKeyByFingerprintMessage | WsGetAllPrivateKeysMessage | WsGetFirstPrivateKeyMessage | WsGetKeyForFingerprintMessage | WsGetKeyMessage | WsGetKeysMessage | WsGetPublicKeyMessage | WsGetPublicKeysMessage | WsSetLabelMessage | WsDeleteLabelMessage | WsIsKeyringLockedMessage | WsKeyringStateMessage | WsUnlockKeyringMessage | WsValidateKeyringPassphraseMessage | WsMigrateKeyringMessage | WsSetKeyringPassphraseMessage | WsRemoveKeyringPassphraseMessage | WsNotifyKeyringMigrationCompletedMessage | WsGetRoutesMessage | WsGetWalletAddressesMessage | WsGetKeysForPlottingMessage | WsGetNetworkInfoMessage | WsKeyringStatusChangedMessage;