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.
- package/CHANGELOG.md +252 -3
- package/LICENSE +1 -1
- package/README.md +7 -5
- package/agent/index.d.ts +1 -1
- package/api/chia/consensus/block_record.d.ts +1 -32
- package/api/chia/consensus/blockchain.d.ts +2 -1
- package/api/chia/consensus/cost_calculator.d.ts +1 -1
- package/api/chia/data_layer/data_layer_util.d.ts +16 -16
- package/api/chia/data_layer/data_layer_wallet.d.ts +4 -3
- package/api/chia/farmer/farmer.d.ts +1 -1
- package/api/chia/full_node/signage_point.d.ts +1 -1
- package/api/chia/harvester/harvester.d.ts +1 -1
- package/api/chia/plot-sync/receiver.d.ts +2 -2
- package/api/chia/plotters/bladebit.d.ts +1 -1
- package/api/chia/plotters/chiapos.d.ts +1 -1
- package/api/chia/plotters/maxmax.d.ts +1 -1
- package/api/chia/plotting/util.d.ts +3 -3
- package/api/chia/pools/pool_config.d.ts +1 -1
- package/api/chia/pools/pool_wallet_info.d.ts +2 -4
- package/api/chia/protocols/farmer_protocol.d.ts +8 -8
- package/api/chia/protocols/harvester_protocol.d.ts +1 -1
- package/api/chia/protocols/pool_protocol.d.ts +13 -13
- package/api/chia/rpc/util.d.ts +14 -0
- package/api/chia/rpc/wallet_request_types.d.ts +46 -3
- package/api/chia/server/outbound_message.d.ts +1 -1
- package/api/chia/timelord/types.d.ts +1 -1
- package/api/chia/types/_python_types_.d.ts +22 -22
- package/api/chia/types/blockchain_format/classgroup.d.ts +1 -4
- package/api/chia/types/blockchain_format/coin.d.ts +1 -11
- package/api/chia/types/blockchain_format/foliage.d.ts +1 -35
- package/api/chia/types/blockchain_format/pool_target.d.ts +1 -6
- package/api/chia/types/blockchain_format/program.d.ts +1 -1
- package/api/chia/types/blockchain_format/proof_of_space.d.ts +1 -10
- package/api/chia/types/blockchain_format/reward_chain_block.d.ts +1 -30
- package/api/chia/types/blockchain_format/sized_bytes.d.ts +7 -7
- package/api/chia/types/blockchain_format/slots.d.ts +1 -24
- package/api/chia/types/blockchain_format/sub_epoch_summary.d.ts +1 -9
- package/api/chia/types/blockchain_format/vdf.d.ts +1 -13
- package/api/chia/types/clvm_cost.d.ts +1 -1
- package/api/chia/types/coin_record.d.ts +2 -2
- package/api/chia/types/coin_spend.d.ts +3 -8
- package/api/chia/types/condition_opcode.d.ts +1 -1
- package/api/chia/types/condition_with_args.d.ts +1 -1
- package/api/chia/types/end_of_slot_bundle.d.ts +1 -8
- package/api/chia/types/full_block.d.ts +1 -20
- package/api/chia/types/mempool_item.d.ts +3 -3
- package/api/chia/types/mojos.d.ts +1 -1
- package/api/chia/types/signing_mode.d.ts +6 -6
- package/api/chia/types/spend_bundle.d.ts +1 -1
- package/api/chia/types/spend_bundle_condition.d.ts +1 -26
- package/api/chia/types/unfinished_block.d.ts +1 -0
- package/api/chia/types/unfinished_header_block.d.ts +1 -1
- package/api/chia/util/keychain.d.ts +2 -2
- package/api/chia/util/misc.d.ts +1 -1
- package/api/chia/wallet/cat_wallet/cat_constants.d.ts +1 -1
- package/api/chia/wallet/conditions.d.ts +2 -2
- package/api/chia/wallet/dao_wallet/dao_info.d.ts +5 -5
- package/api/chia/wallet/dao_wallet/dao_wallet.d.ts +3 -3
- package/api/chia/wallet/lineage_proof.d.ts +1 -1
- package/api/chia/wallet/nft_wallet/nft_info.d.ts +1 -1
- package/api/chia/wallet/notification_store.d.ts +1 -1
- package/api/chia/wallet/puzzle_drivers.d.ts +2 -2
- package/api/chia/wallet/puzzles/clawback/metadata.d.ts +2 -2
- package/api/chia/wallet/signer_protocol.d.ts +54 -0
- package/api/chia/wallet/signer_protocol.js +2 -0
- package/api/chia/wallet/trade_record.d.ts +3 -3
- package/api/chia/wallet/transaction_record.d.ts +4 -4
- package/api/chia/wallet/util/quality_filter.d.ts +5 -5
- package/api/chia/wallet/util/tx_config.d.ts +4 -11
- package/api/chia/wallet/util/wallet_types.d.ts +1 -1
- package/api/chia/wallet/vc_wallet/vc_drivers.d.ts +2 -2
- package/api/chia/wallet/vc_wallet/vc_store.d.ts +1 -1
- package/api/chia/wallet/wallet_coin_record.d.ts +2 -2
- package/api/chia/wallet/wallet_coin_store.d.ts +1 -1
- package/api/chia/wallet/wallet_info.d.ts +2 -2
- package/api/chia/wallet/wallet_node.d.ts +1 -1
- package/api/chia_rs/chia-bls/public_key.d.ts +2 -0
- package/api/chia_rs/chia-bls/public_key.js +2 -0
- package/api/chia_rs/chia-consensus/gen/owned_conditions.d.ts +36 -0
- package/api/chia_rs/chia-consensus/gen/owned_conditions.js +2 -0
- package/api/chia_rs/chia-protocol/block_record.d.ts +32 -0
- package/api/chia_rs/chia-protocol/block_record.js +2 -0
- package/api/chia_rs/chia-protocol/classgroup.d.ts +4 -0
- package/api/chia_rs/chia-protocol/classgroup.js +2 -0
- package/api/chia_rs/chia-protocol/coin.d.ts +7 -0
- package/api/chia_rs/chia-protocol/coin.js +2 -0
- package/api/chia_rs/chia-protocol/coin_spend.d.ts +7 -0
- package/api/chia_rs/chia-protocol/coin_spend.js +2 -0
- package/api/chia_rs/chia-protocol/end_of_sub_slot_bundle.d.ts +8 -0
- package/api/chia_rs/chia-protocol/end_of_sub_slot_bundle.js +2 -0
- package/api/chia_rs/chia-protocol/foliage.d.ts +35 -0
- package/api/chia_rs/chia-protocol/foliage.js +2 -0
- package/api/chia_rs/chia-protocol/fullblock.d.ts +20 -0
- package/api/chia_rs/chia-protocol/fullblock.js +2 -0
- package/api/chia_rs/chia-protocol/pool_target.d.ts +6 -0
- package/api/chia_rs/chia-protocol/pool_target.js +2 -0
- package/api/chia_rs/chia-protocol/program.d.ts +2 -0
- package/api/chia_rs/chia-protocol/program.js +2 -0
- package/api/chia_rs/chia-protocol/proof_of_space.d.ts +10 -0
- package/api/chia_rs/chia-protocol/proof_of_space.js +2 -0
- package/api/chia_rs/chia-protocol/reward_chain_block.d.ts +30 -0
- package/api/chia_rs/chia-protocol/reward_chain_block.js +2 -0
- package/api/chia_rs/chia-protocol/slots.d.ts +24 -0
- package/api/chia_rs/chia-protocol/slots.js +2 -0
- package/api/chia_rs/chia-protocol/sub_epoch_summary.d.ts +9 -0
- package/api/chia_rs/chia-protocol/sub_epoch_summary.js +2 -0
- package/api/chia_rs/chia-protocol/unfinished_block.d.ts +17 -0
- package/api/chia_rs/chia-protocol/unfinished_block.js +2 -0
- package/api/chia_rs/chia-protocol/vdf.d.ts +13 -0
- package/api/chia_rs/chia-protocol/vdf.js +2 -0
- package/api/{chia/pool/store.d.ts → pool-reference/pool/record.d.ts} +5 -5
- package/api/pool-reference/pool/record.js +2 -0
- package/api/rpc/common/index.d.ts +34 -24
- package/api/rpc/common/index.js +8 -1
- package/api/rpc/crawler/index.d.ts +10 -10
- package/api/rpc/data_layer/index.d.ts +208 -134
- package/api/rpc/data_layer/index.js +23 -2
- package/api/rpc/farmer/index.d.ts +52 -55
- package/api/rpc/full_node/index.d.ts +140 -154
- package/api/rpc/full_node/index.js +2 -9
- package/api/rpc/harvester/index.d.ts +31 -34
- package/api/rpc/index.d.ts +7 -7
- package/api/rpc/index.js +13 -9
- package/api/rpc/pool/index.d.ts +13 -13
- package/api/rpc/wallet/index.d.ts +747 -641
- package/api/rpc/wallet/index.js +27 -20
- package/api/types.d.ts +4 -3
- package/api/types.js +2 -1
- package/api/ws/chia_plots_create/index.d.ts +7 -7
- package/api/ws/crawler/index.d.ts +9 -9
- package/api/ws/daemon/index.d.ts +198 -166
- package/api/ws/daemon/index.js +17 -3
- package/api/ws/farmer/index.d.ts +34 -34
- package/api/ws/full_node/index.d.ts +28 -17
- package/api/ws/full_node/index.js +14 -1
- package/api/ws/harvester/index.d.ts +19 -19
- package/api/ws/index.d.ts +3 -3
- package/api/ws/index.js +5 -2
- package/api/ws/timelord/index.d.ts +14 -14
- package/api/ws/wallet/index.d.ts +22 -22
- package/bin/cli.js +3 -3
- package/config/index.d.ts +1 -1
- package/config/index.js +3 -3
- package/daemon/connection.js +9 -10
- package/daemon/index.d.ts +6 -6
- package/daemon/index.js +21 -21
- package/index.js +5 -1
- package/logger.d.ts +3 -3
- package/package.json +3 -3
- package/rpc/index.d.ts +6 -4
- package/rpc/index.js +29 -29
- package/api/chia/types/blockchain_format/serialized_program.d.ts +0 -2
- /package/api/chia/{pool/store.js → rpc/util.js} +0 -0
- /package/api/chia/types/{blockchain_format/serialized_program.js → unfinished_block.js} +0 -0
package/api/ws/daemon/index.d.ts
CHANGED
|
@@ -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
|
|
9
|
+
export type daemon_service = typeof daemon_service;
|
|
10
10
|
export declare const ping_command = "ping";
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
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
|
|
17
|
+
export type WsPingMessage = GetMessageType<daemon_service, ping_command, TPingResponse>;
|
|
18
18
|
export declare function ping(daemon: TDaemon): Promise<WsPingMessage>;
|
|
19
|
-
export
|
|
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
|
|
22
|
-
export
|
|
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
|
|
26
|
+
export type TStartServiceResponse = {
|
|
27
27
|
success: bool;
|
|
28
28
|
service: TService;
|
|
29
29
|
error: Optional<str>;
|
|
30
30
|
};
|
|
31
|
-
export
|
|
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
|
|
35
|
-
export
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
110
|
-
export
|
|
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
|
|
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
|
|
119
|
-
export
|
|
118
|
+
export type stop_plotting_command = typeof stop_plotting_command;
|
|
119
|
+
export type TStopPlottingRequest = {
|
|
120
120
|
id: str;
|
|
121
121
|
};
|
|
122
|
-
export
|
|
122
|
+
export type TStopPlottingResponse = {
|
|
123
123
|
success: bool;
|
|
124
124
|
};
|
|
125
|
-
export
|
|
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
|
|
129
|
-
export
|
|
128
|
+
export type stop_service_command = typeof stop_service_command;
|
|
129
|
+
export type TStopServiceRequest = {
|
|
130
130
|
service: str;
|
|
131
131
|
};
|
|
132
|
-
export
|
|
132
|
+
export type TStopServiceResponse = {
|
|
133
133
|
success: bool;
|
|
134
134
|
service_name: str;
|
|
135
135
|
};
|
|
136
|
-
export
|
|
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
|
|
140
|
-
export
|
|
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
|
|
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
|
|
148
|
-
export
|
|
147
|
+
export type is_running_command = typeof is_running_command;
|
|
148
|
+
export type TIsRunningRequest = {
|
|
149
149
|
service: str;
|
|
150
150
|
};
|
|
151
|
-
export
|
|
151
|
+
export type TIsRunningResponse = {
|
|
152
152
|
success: bool;
|
|
153
153
|
service_name: str;
|
|
154
154
|
is_running: bool;
|
|
155
155
|
};
|
|
156
|
-
export
|
|
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
|
|
160
|
-
export
|
|
159
|
+
export type add_private_key_command = typeof add_private_key_command;
|
|
160
|
+
export type TAddPrivateKeyRequest = {
|
|
161
161
|
kc_user?: str;
|
|
162
|
-
|
|
162
|
+
kc_service?: str;
|
|
163
163
|
mnemonic?: str;
|
|
164
164
|
label?: str;
|
|
165
165
|
};
|
|
166
|
-
export
|
|
167
|
-
success:
|
|
168
|
-
|
|
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
|
|
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
|
|
177
|
-
export
|
|
200
|
+
export type check_keys_command = typeof check_keys_command;
|
|
201
|
+
export type TCheckKeysRequest = {
|
|
178
202
|
kc_user?: str;
|
|
179
|
-
|
|
203
|
+
kc_service?: str;
|
|
180
204
|
root_path: str;
|
|
181
205
|
};
|
|
182
|
-
export
|
|
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
|
|
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
|
|
193
|
-
export
|
|
216
|
+
export type delete_all_keys_command = typeof delete_all_keys_command;
|
|
217
|
+
export type TDeleteAllKeysRequest = {
|
|
194
218
|
kc_user?: str;
|
|
195
|
-
|
|
219
|
+
kc_service?: str;
|
|
196
220
|
};
|
|
197
|
-
export
|
|
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
|
|
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
|
|
208
|
-
export
|
|
231
|
+
export type delete_key_by_fingerprint_command = typeof delete_key_by_fingerprint_command;
|
|
232
|
+
export type TDeleteKeyByFingerprintRequest = {
|
|
209
233
|
kc_user?: str;
|
|
210
|
-
|
|
234
|
+
kc_service?: str;
|
|
211
235
|
fingerprint: int;
|
|
212
236
|
};
|
|
213
|
-
export
|
|
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
|
|
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
|
|
224
|
-
export
|
|
247
|
+
export type get_all_private_keys_command = typeof get_all_private_keys_command;
|
|
248
|
+
export type TGetAllPrivateKeysRequest = {
|
|
225
249
|
kc_user?: str;
|
|
226
|
-
|
|
250
|
+
kc_service?: str;
|
|
227
251
|
};
|
|
228
|
-
export
|
|
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
|
|
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
|
|
240
|
-
export
|
|
263
|
+
export type get_first_private_key_command = typeof get_first_private_key_command;
|
|
264
|
+
export type TGetFirstPrivateKeyRequest = {
|
|
241
265
|
kc_user?: str;
|
|
242
|
-
|
|
266
|
+
kc_service?: str;
|
|
243
267
|
};
|
|
244
|
-
export
|
|
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
|
|
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
|
|
256
|
-
export
|
|
279
|
+
export type get_key_for_fingerprint_command = typeof get_key_for_fingerprint_command;
|
|
280
|
+
export type TGetKeyForFingerprintRequest = {
|
|
257
281
|
kc_user?: str;
|
|
258
|
-
|
|
282
|
+
kc_service?: str;
|
|
283
|
+
private?: bool;
|
|
259
284
|
fingerprint?: int;
|
|
260
285
|
};
|
|
261
|
-
export
|
|
262
|
-
success:
|
|
263
|
-
error
|
|
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
|
|
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
|
|
271
|
-
export
|
|
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
|
|
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
|
|
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
|
|
293
|
-
export
|
|
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
|
|
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
|
|
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
|
|
314
|
-
export
|
|
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
|
|
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
|
|
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
|
|
335
|
-
export
|
|
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
|
|
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
|
|
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
|
|
355
|
-
export
|
|
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
|
|
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
|
|
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
|
|
376
|
-
export
|
|
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
|
|
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
|
|
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
|
|
396
|
-
export
|
|
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
|
|
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
|
|
404
|
-
export
|
|
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
|
|
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
|
|
421
|
-
export
|
|
447
|
+
export type unlock_keyring_command = typeof unlock_keyring_command;
|
|
448
|
+
export type TUnlockKeyringRequest = {
|
|
422
449
|
key: string;
|
|
423
450
|
};
|
|
424
|
-
export
|
|
451
|
+
export type TUnlockKeyringResponse = {
|
|
425
452
|
success: bool;
|
|
426
453
|
error: str | None;
|
|
427
454
|
};
|
|
428
|
-
export
|
|
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
|
|
432
|
-
export
|
|
458
|
+
export type validate_keyring_passphrase_command = typeof validate_keyring_passphrase_command;
|
|
459
|
+
export type TValidateKeyringPassphraseRequest = {
|
|
433
460
|
key: string;
|
|
434
461
|
};
|
|
435
|
-
export
|
|
462
|
+
export type TValidateKeyringPassphraseResponse = {
|
|
436
463
|
success: bool;
|
|
437
464
|
error: str | None;
|
|
438
465
|
};
|
|
439
|
-
export
|
|
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
|
|
443
|
-
export
|
|
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
|
|
476
|
+
export type TMigrateKeyringResponse = {
|
|
450
477
|
success: bool;
|
|
451
478
|
error: str | None;
|
|
452
479
|
};
|
|
453
|
-
export
|
|
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
|
|
457
|
-
export
|
|
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
|
|
490
|
+
export type TSetKeyringPassphraseResponse = {
|
|
464
491
|
success: bool;
|
|
465
492
|
error: str;
|
|
466
493
|
};
|
|
467
|
-
export
|
|
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
|
|
471
|
-
export
|
|
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
|
|
501
|
+
export type TRemoveKeyringPassphraseResponse = {
|
|
475
502
|
success: bool;
|
|
476
503
|
error: str;
|
|
477
504
|
};
|
|
478
|
-
export
|
|
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
|
|
482
|
-
export
|
|
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
|
|
512
|
+
export type TNotifyKeyringMigrationCompletedResponse = {
|
|
486
513
|
success: bool;
|
|
487
514
|
error: str;
|
|
488
515
|
};
|
|
489
|
-
export
|
|
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
|
|
493
|
-
export
|
|
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
|
|
523
|
+
export type WsExitMessage = GetMessageType<daemon_service, exit_command, TExitResponse>;
|
|
498
524
|
export declare function exit(daemon: TDaemon): Promise<WsExitMessage>;
|
|
499
|
-
export
|
|
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
|
|
513
|
-
export
|
|
538
|
+
export type register_service_command = typeof register_service_command;
|
|
539
|
+
export type TRegisterServiceRequest = {
|
|
514
540
|
service: str;
|
|
515
541
|
};
|
|
516
|
-
export
|
|
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
|
|
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
|
|
527
|
-
export
|
|
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
|
|
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
|
|
536
|
-
export
|
|
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
|
|
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
|
|
545
|
-
export
|
|
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
|
|
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
|
|
558
|
-
export
|
|
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
|
|
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
|
|
566
|
-
export
|
|
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
|
|
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
|
|
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
|
|
586
|
-
export
|
|
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
|
|
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
|
|
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
|
|
603
|
-
export
|
|
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
|
|
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
|
|
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;
|