synology-dsm-sdk 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +2469 -0
- package/dist/index.mjs +1837 -0
- package/package.json +19 -0
- package/tsconfig.json +26 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,2469 @@
|
|
|
1
|
+
//#region src/client.d.ts
|
|
2
|
+
declare class Client {
|
|
3
|
+
private readonly baseUrl;
|
|
4
|
+
private sid;
|
|
5
|
+
private synoToken;
|
|
6
|
+
constructor(baseUrl: string, options?: {
|
|
7
|
+
sid?: string | null;
|
|
8
|
+
synoToken?: string | null;
|
|
9
|
+
});
|
|
10
|
+
get<T>(api: string, method: string, version: number, params?: Record<string, string | number | boolean | object>, path?: string): Promise<T>;
|
|
11
|
+
setSession(sid: string | null, synoToken: string | null): void;
|
|
12
|
+
hasSession(): boolean;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/services/SYNO/ActiveInsight/CompleteCollection/index.d.ts
|
|
16
|
+
declare class SYNO_ActiveInsight_CompleteCollection {
|
|
17
|
+
private client;
|
|
18
|
+
constructor(client: Client);
|
|
19
|
+
get(): Promise<SYNO_ActiveInsight_CompleteCollection_get_Response>;
|
|
20
|
+
}
|
|
21
|
+
type SYNO_ActiveInsight_CompleteCollection_get_Response = {
|
|
22
|
+
enabled: boolean;
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/services/SYNO/ActiveInsight/index.d.ts
|
|
26
|
+
declare class SYNO_ActiveInsight {
|
|
27
|
+
private client;
|
|
28
|
+
constructor(client: Client);
|
|
29
|
+
get CompleteCollection(): SYNO_ActiveInsight_CompleteCollection;
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/services/SYNO/API/Auth/Type/index.d.ts
|
|
33
|
+
declare class SYNO_API_Auth_Type {
|
|
34
|
+
private client;
|
|
35
|
+
constructor(client: Client);
|
|
36
|
+
get(params?: SYNO_API_Auth_Type_get_Params): Promise<SYNO_API_Auth_Type_get_Response>;
|
|
37
|
+
}
|
|
38
|
+
type SYNO_API_Auth_Type_get_Response = {
|
|
39
|
+
type: string;
|
|
40
|
+
}[];
|
|
41
|
+
type SYNO_API_Auth_Type_get_Params = {
|
|
42
|
+
account?: string;
|
|
43
|
+
};
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region src/services/SYNO/API/Auth/UIConfig/index.d.ts
|
|
46
|
+
declare class SYNO_API_Auth_UIConfig {
|
|
47
|
+
private client;
|
|
48
|
+
constructor(client: Client);
|
|
49
|
+
get(): Promise<SYNO_API_Auth_UIConfig_get_Response>;
|
|
50
|
+
}
|
|
51
|
+
type SYNO_API_Auth_UIConfig_get_Response = {
|
|
52
|
+
cssPath?: string;
|
|
53
|
+
jsPath: string;
|
|
54
|
+
texts: Record<string, {
|
|
55
|
+
app: {
|
|
56
|
+
description: string;
|
|
57
|
+
displayname: string;
|
|
58
|
+
warning_remove_2fa_device: string;
|
|
59
|
+
warning_remove_2step_device: string;
|
|
60
|
+
warning_remove_the_last_2fa_device: string;
|
|
61
|
+
warning_remove_the_last_2step_device: string;
|
|
62
|
+
};
|
|
63
|
+
authenticator: {
|
|
64
|
+
"2fa_authenticator_desc": string;
|
|
65
|
+
"2fa_desc": string;
|
|
66
|
+
"2fa_login_flow": string;
|
|
67
|
+
"2fa_note_scan_qr_code": string;
|
|
68
|
+
"2fa_setup_finish_desc": string;
|
|
69
|
+
"2fa_with_authenticator": string;
|
|
70
|
+
app_version: string;
|
|
71
|
+
approve_sign_in: string;
|
|
72
|
+
authenticator_desc: string;
|
|
73
|
+
enforce_2fa_authenticator_desc: string;
|
|
74
|
+
install_authenticator: string;
|
|
75
|
+
install_authenticator_desc: string;
|
|
76
|
+
login_desc: string;
|
|
77
|
+
login_flow: string;
|
|
78
|
+
login_page_desc: string;
|
|
79
|
+
login_request_resend: string;
|
|
80
|
+
login_request_resend_button: string;
|
|
81
|
+
management_empty_text: string;
|
|
82
|
+
mobile_wait_too_long_info: string;
|
|
83
|
+
model: string;
|
|
84
|
+
note_scan_qr_code: string;
|
|
85
|
+
os_version: string;
|
|
86
|
+
private_ip_error_msg_admin: string;
|
|
87
|
+
private_ip_error_msg_admin_with_params: string;
|
|
88
|
+
private_ip_error_msg_user: string;
|
|
89
|
+
receive_sign_in_request: string;
|
|
90
|
+
recv_sign_in_requests: string;
|
|
91
|
+
register_unavailable_title: string;
|
|
92
|
+
request_denied: string;
|
|
93
|
+
request_denied_desc: string;
|
|
94
|
+
request_sent_desc: string;
|
|
95
|
+
request_sent_num_desc: string;
|
|
96
|
+
request_timeout: string;
|
|
97
|
+
request_timeout_desc: string;
|
|
98
|
+
scan_qr_code: string;
|
|
99
|
+
setup_authenticator: string;
|
|
100
|
+
setup_authenticator_desc: string;
|
|
101
|
+
sign_in_method: string;
|
|
102
|
+
sign_in_with_authenticator: string;
|
|
103
|
+
tap_to_continue: string;
|
|
104
|
+
try_again: string;
|
|
105
|
+
};
|
|
106
|
+
common: {
|
|
107
|
+
"2fa_off": string;
|
|
108
|
+
"2fa_on": string;
|
|
109
|
+
"2fa_package_broken_msg": string;
|
|
110
|
+
add_time: string;
|
|
111
|
+
continue: string;
|
|
112
|
+
last_used_time: string;
|
|
113
|
+
package_broken_msg: string;
|
|
114
|
+
passwordless_off: string;
|
|
115
|
+
passwordless_on: string;
|
|
116
|
+
passwordless_signin: string;
|
|
117
|
+
setup_success: string;
|
|
118
|
+
turn_off: string;
|
|
119
|
+
};
|
|
120
|
+
error: {
|
|
121
|
+
invalid_device_name: string;
|
|
122
|
+
invalid_domain: string;
|
|
123
|
+
invalid_domain_user: string;
|
|
124
|
+
other_ways_desc: string;
|
|
125
|
+
register_again: string;
|
|
126
|
+
something_wrong: string;
|
|
127
|
+
};
|
|
128
|
+
fido: {
|
|
129
|
+
complete_login: string;
|
|
130
|
+
follow_steps: string;
|
|
131
|
+
hardware_security_key: string;
|
|
132
|
+
keyname_collision: string;
|
|
133
|
+
login_page_desc: string;
|
|
134
|
+
mac_touch_id_setup_desc: string;
|
|
135
|
+
management_empty_text: string;
|
|
136
|
+
method_touch_id: string;
|
|
137
|
+
method_usb_key: string;
|
|
138
|
+
method_windows_hello: string;
|
|
139
|
+
name_your_key: string;
|
|
140
|
+
platform_key_not_setup_desc: string;
|
|
141
|
+
reg_wizard_usb_key_title: string;
|
|
142
|
+
register_duplicate_key: string;
|
|
143
|
+
security_key_registered: string;
|
|
144
|
+
security_key_registered_desc: string;
|
|
145
|
+
securiy_key_registered: string;
|
|
146
|
+
select_type: string;
|
|
147
|
+
set_up_ddns: string;
|
|
148
|
+
set_up_ddns_desc: string;
|
|
149
|
+
touch_id_2fa_desc: string;
|
|
150
|
+
touch_id_desc: string;
|
|
151
|
+
touch_id_disabled: string;
|
|
152
|
+
touch_id_login_desc: string;
|
|
153
|
+
touch_id_login_desc_with_otp: string;
|
|
154
|
+
touch_id_not_set_up_desc: string;
|
|
155
|
+
touch_id_not_set_up_title: string;
|
|
156
|
+
touch_id_reg: string;
|
|
157
|
+
touch_id_setup_desc: string;
|
|
158
|
+
type_touch_id: string;
|
|
159
|
+
type_usb_key: string;
|
|
160
|
+
type_windows_hello: string;
|
|
161
|
+
usb_key_2fa_desc: string;
|
|
162
|
+
usb_key_desc: string;
|
|
163
|
+
usb_key_login_desc: string;
|
|
164
|
+
usb_key_login_desc_with_otp: string;
|
|
165
|
+
usb_key_name: string;
|
|
166
|
+
usb_key_name_desc: string;
|
|
167
|
+
usb_key_reg: string;
|
|
168
|
+
usb_key_reg_desc: string;
|
|
169
|
+
use_registered_hostname_desc: string;
|
|
170
|
+
use_registered_hostname_desc_with_params: string;
|
|
171
|
+
use_valid_domain_title: string;
|
|
172
|
+
verifying: string;
|
|
173
|
+
windows_hello_2fa_desc: string;
|
|
174
|
+
windows_hello_desc: string;
|
|
175
|
+
windows_hello_disabled: string;
|
|
176
|
+
windows_hello_login_desc: string;
|
|
177
|
+
windows_hello_login_desc_with_otp: string;
|
|
178
|
+
windows_hello_not_set_up_desc: string;
|
|
179
|
+
windows_hello_not_set_up_title: string;
|
|
180
|
+
windows_hello_reg: string;
|
|
181
|
+
windows_hello_setup_desc: string;
|
|
182
|
+
};
|
|
183
|
+
inherit: {
|
|
184
|
+
"2fa_desc": string;
|
|
185
|
+
"2fa_no": string;
|
|
186
|
+
"2fa_note": string;
|
|
187
|
+
"2fa_title": string;
|
|
188
|
+
"2fa_yes": string;
|
|
189
|
+
inherit_to_2fa_desc: string;
|
|
190
|
+
inherit_to_2fa_title: string;
|
|
191
|
+
inherit_to_passwordless_desc: string;
|
|
192
|
+
inherit_to_passwordless_title: string;
|
|
193
|
+
passwordless_desc: string;
|
|
194
|
+
passwordless_no: string;
|
|
195
|
+
passwordless_note: string;
|
|
196
|
+
passwordless_title: string;
|
|
197
|
+
passwordless_yes: string;
|
|
198
|
+
};
|
|
199
|
+
management: {
|
|
200
|
+
"2fa_desc": string;
|
|
201
|
+
"2fa_settings_activated_time": string;
|
|
202
|
+
"2fa_settings_general_desc": string;
|
|
203
|
+
alert_disable_2fa: string;
|
|
204
|
+
alert_disable_2fa_title: string;
|
|
205
|
+
alert_disable_passwordless: string;
|
|
206
|
+
alert_disable_passwordless_title: string;
|
|
207
|
+
chagne_mobile_device_title: string;
|
|
208
|
+
change_mobile_device_desc: string;
|
|
209
|
+
change_mobile_device_title: string;
|
|
210
|
+
device_name: string;
|
|
211
|
+
edit_device_name: string;
|
|
212
|
+
enforce_2fa_by_admin: string;
|
|
213
|
+
enforce_2fa_remove_last_signin: string;
|
|
214
|
+
passwordless_desc: string;
|
|
215
|
+
passwordless_settings_activated_time: string;
|
|
216
|
+
passwordless_settings_general_desc: string;
|
|
217
|
+
remove_a_2fa_signin: string;
|
|
218
|
+
remove_a_passwordless_signin: string;
|
|
219
|
+
remove_last_2fa_signin: string;
|
|
220
|
+
remove_last_2fa_signin_and_otp_disabled: string;
|
|
221
|
+
remove_last_passwordless_signin: string;
|
|
222
|
+
reset_current_mobile_device: string;
|
|
223
|
+
trusted_device_desc: string;
|
|
224
|
+
unavailable_sa_desc_admin: string;
|
|
225
|
+
unavailable_sa_desc_user: string;
|
|
226
|
+
};
|
|
227
|
+
otp: {
|
|
228
|
+
"2fa_summary_desc": string;
|
|
229
|
+
"2fa_summary_note": string;
|
|
230
|
+
backup_email_admin_tip: string;
|
|
231
|
+
backup_email_desc: string;
|
|
232
|
+
backup_email_note_desc: string;
|
|
233
|
+
backup_email_user_tip: string;
|
|
234
|
+
download_qrcode_note: string;
|
|
235
|
+
email_service_provider: string;
|
|
236
|
+
management_empty_text: string;
|
|
237
|
+
no_service_provider_or_backup_email: string;
|
|
238
|
+
note_desc: string;
|
|
239
|
+
otp_backup_mail_settings_desc: string;
|
|
240
|
+
otp_wizard_backup_method_welcome_desc: string;
|
|
241
|
+
otp_wizard_backup_method_welcome_note: string;
|
|
242
|
+
otp_wizard_welcome_desc: string;
|
|
243
|
+
otp_wizard_welcome_note: string;
|
|
244
|
+
reomte_admin_email_update_info: string;
|
|
245
|
+
reomte_user_email_update_info: string;
|
|
246
|
+
skip_backup_email_warning_msg: string;
|
|
247
|
+
skip_warning_msg: string;
|
|
248
|
+
wizard_mail_step_no_sender_desc: string;
|
|
249
|
+
};
|
|
250
|
+
personal_setting: {
|
|
251
|
+
"2fa_desc": string;
|
|
252
|
+
first_signin_step: string;
|
|
253
|
+
first_signin_step_desc: string;
|
|
254
|
+
no_sa_signin_method_desc: string;
|
|
255
|
+
passwordless_signin_desc: string;
|
|
256
|
+
second_signin_step: string;
|
|
257
|
+
signin_method_desc: string;
|
|
258
|
+
};
|
|
259
|
+
wizard: {
|
|
260
|
+
"2fa_desc": string;
|
|
261
|
+
"2fa_has_been_turned_on": string;
|
|
262
|
+
"2fa_title": string;
|
|
263
|
+
add_alternative_signin_method: string;
|
|
264
|
+
add_new_signin_methods: string;
|
|
265
|
+
confirm_rollback: string;
|
|
266
|
+
confirm_rollback_title: string;
|
|
267
|
+
enforce_2fa_headline: string;
|
|
268
|
+
enforce_2fa_welcome_desc1: string;
|
|
269
|
+
enforce_2fa_welcome_desc2: string;
|
|
270
|
+
hardware_security_key_desc: string;
|
|
271
|
+
leave_desc: string;
|
|
272
|
+
passwordless_desc: string;
|
|
273
|
+
passwordless_title: string;
|
|
274
|
+
set_backup_2fa_content: string;
|
|
275
|
+
set_backup_2fa_desc: string;
|
|
276
|
+
};
|
|
277
|
+
}>;
|
|
278
|
+
version: string;
|
|
279
|
+
};
|
|
280
|
+
//#endregion
|
|
281
|
+
//#region src/services/SYNO/API/Auth/index.d.ts
|
|
282
|
+
declare class SYNO_API_Auth {
|
|
283
|
+
private client;
|
|
284
|
+
constructor(client: Client);
|
|
285
|
+
login(params: SYNO_API_Auth_login_Params): Promise<SYNO_API_Auth_login_Response>;
|
|
286
|
+
logout(): Promise<void>;
|
|
287
|
+
get Type(): SYNO_API_Auth_Type;
|
|
288
|
+
get UIConfig(): SYNO_API_Auth_UIConfig;
|
|
289
|
+
}
|
|
290
|
+
type SYNO_API_Auth_login_Response = {
|
|
291
|
+
account: string;
|
|
292
|
+
device_id: string;
|
|
293
|
+
sid: string;
|
|
294
|
+
is_portal_port: boolean;
|
|
295
|
+
synotoken: string;
|
|
296
|
+
};
|
|
297
|
+
type SYNO_API_Auth_login_Params = {
|
|
298
|
+
account: string;
|
|
299
|
+
passwd: string;
|
|
300
|
+
otp_code?: string;
|
|
301
|
+
};
|
|
302
|
+
//#endregion
|
|
303
|
+
//#region src/services/SYNO/API/Encryption/index.d.ts
|
|
304
|
+
declare class SYNO_API_Encryption {
|
|
305
|
+
private client;
|
|
306
|
+
constructor(client: Client);
|
|
307
|
+
getinfo(): Promise<SYNO_API_Encryption_getinfo_Response>;
|
|
308
|
+
}
|
|
309
|
+
type SYNO_API_Encryption_getinfo_Response = {
|
|
310
|
+
cipherkey: string;
|
|
311
|
+
ciphertoken: string;
|
|
312
|
+
public_key: string;
|
|
313
|
+
server_time: number;
|
|
314
|
+
};
|
|
315
|
+
//#endregion
|
|
316
|
+
//#region src/services/SYNO/API/Info/index.d.ts
|
|
317
|
+
declare class SYNO_API_Info {
|
|
318
|
+
private client;
|
|
319
|
+
constructor(client: Client);
|
|
320
|
+
query(params?: SYNO_API_Info_query_Params): Promise<SYNO_API_Info_query_Response>;
|
|
321
|
+
}
|
|
322
|
+
type SYNO_API_Info_query_Response = Record<string, {
|
|
323
|
+
path: string;
|
|
324
|
+
minVersion: number;
|
|
325
|
+
maxVersion: number;
|
|
326
|
+
requestFormat: string;
|
|
327
|
+
}>;
|
|
328
|
+
type SYNO_API_Info_query_Params = {
|
|
329
|
+
query?: string;
|
|
330
|
+
};
|
|
331
|
+
//#endregion
|
|
332
|
+
//#region src/services/SYNO/API/index.d.ts
|
|
333
|
+
declare class SYNO_API {
|
|
334
|
+
private client;
|
|
335
|
+
constructor(client: Client);
|
|
336
|
+
get Auth(): SYNO_API_Auth;
|
|
337
|
+
get Encryption(): SYNO_API_Encryption;
|
|
338
|
+
get Info(): SYNO_API_Info;
|
|
339
|
+
}
|
|
340
|
+
//#endregion
|
|
341
|
+
//#region src/services/SYNO/Auth/RescueEmail/index.d.ts
|
|
342
|
+
declare class SYNO_Auth_RescueEmail {
|
|
343
|
+
private client;
|
|
344
|
+
constructor(client: Client);
|
|
345
|
+
get(): Promise<SYNO_Auth_RescueEmail_get_Response>;
|
|
346
|
+
set(): Promise<void>;
|
|
347
|
+
}
|
|
348
|
+
type SYNO_Auth_RescueEmail_get_Response = {
|
|
349
|
+
verified: boolean;
|
|
350
|
+
};
|
|
351
|
+
//#endregion
|
|
352
|
+
//#region src/services/SYNO/Auth/index.d.ts
|
|
353
|
+
declare class SYNO_Auth {
|
|
354
|
+
private client;
|
|
355
|
+
constructor(client: Client);
|
|
356
|
+
get RescueEmail(): SYNO_Auth_RescueEmail;
|
|
357
|
+
}
|
|
358
|
+
//#endregion
|
|
359
|
+
//#region src/services/SYNO/Backup/Config/AutoBackup/index.d.ts
|
|
360
|
+
declare class SYNO_Backup_Config_AutoBackup {
|
|
361
|
+
private client;
|
|
362
|
+
constructor(client: Client);
|
|
363
|
+
get(): Promise<SYNO_Backup_Config_AutoBackup_get_Response>;
|
|
364
|
+
status(): Promise<SYNO_Backup_Config_AutoBackup_status_Response>;
|
|
365
|
+
}
|
|
366
|
+
type SYNO_Backup_Config_AutoBackup_get_Response = {
|
|
367
|
+
enable: boolean;
|
|
368
|
+
enc_method: string;
|
|
369
|
+
last_status: string;
|
|
370
|
+
myds_account: string;
|
|
371
|
+
pwd: string;
|
|
372
|
+
};
|
|
373
|
+
type SYNO_Backup_Config_AutoBackup_status_Response = {
|
|
374
|
+
last_status: string;
|
|
375
|
+
};
|
|
376
|
+
//#endregion
|
|
377
|
+
//#region src/services/SYNO/Backup/Config/Backup/index.d.ts
|
|
378
|
+
declare class SYNO_Backup_Config_Backup {
|
|
379
|
+
private client;
|
|
380
|
+
constructor(client: Client);
|
|
381
|
+
list(): Promise<SYNO_Backup_Config_Backup_list_Response>;
|
|
382
|
+
start(): Promise<SYNO_Backup_Config_Backup_start_Response>;
|
|
383
|
+
status(params: SYNO_Backup_Config_Backup_status_Params): Promise<SYNO_Backup_Config_Backup_status_Response>;
|
|
384
|
+
}
|
|
385
|
+
type SYNO_Backup_Config_Backup_list_Response = {
|
|
386
|
+
services: {
|
|
387
|
+
field: string;
|
|
388
|
+
id: string;
|
|
389
|
+
text: string;
|
|
390
|
+
}[];
|
|
391
|
+
};
|
|
392
|
+
type SYNO_Backup_Config_Backup_start_Response = {
|
|
393
|
+
task_id: string;
|
|
394
|
+
};
|
|
395
|
+
type SYNO_Backup_Config_Backup_status_Response = {
|
|
396
|
+
finish: boolean;
|
|
397
|
+
task_id: string;
|
|
398
|
+
};
|
|
399
|
+
type SYNO_Backup_Config_Backup_status_Params = {
|
|
400
|
+
task_id: string;
|
|
401
|
+
};
|
|
402
|
+
//#endregion
|
|
403
|
+
//#region src/services/SYNO/Backup/Config/index.d.ts
|
|
404
|
+
declare class SYNO_Backup_Config {
|
|
405
|
+
private client;
|
|
406
|
+
constructor(client: Client);
|
|
407
|
+
get AutoBackup(): SYNO_Backup_Config_AutoBackup;
|
|
408
|
+
get Backup(): SYNO_Backup_Config_Backup;
|
|
409
|
+
}
|
|
410
|
+
//#endregion
|
|
411
|
+
//#region src/services/SYNO/Backup/index.d.ts
|
|
412
|
+
declare class SYNO_Backup {
|
|
413
|
+
private client;
|
|
414
|
+
constructor(client: Client);
|
|
415
|
+
get Config(): SYNO_Backup_Config;
|
|
416
|
+
}
|
|
417
|
+
//#endregion
|
|
418
|
+
//#region src/services/SYNO/CloudSync/index.d.ts
|
|
419
|
+
declare class SYNO_CloudSync {
|
|
420
|
+
private client;
|
|
421
|
+
constructor(client: Client);
|
|
422
|
+
list_conn(params?: SYNO_CloudSync_list_conn_Params): Promise<SYNO_CloudSync_list_conn_Response>;
|
|
423
|
+
get_available_clouds(): Promise<SYNO_CloudSync_get_available_clouds_Response>;
|
|
424
|
+
get_config(): Promise<SYNO_CloudSync_get_config_Response>;
|
|
425
|
+
}
|
|
426
|
+
type SYNO_CloudSync_list_conn_Response = {
|
|
427
|
+
conn: unknown[];
|
|
428
|
+
is_admin_mode: boolean;
|
|
429
|
+
is_pause: boolean;
|
|
430
|
+
notification: {
|
|
431
|
+
file_count: number;
|
|
432
|
+
} | null;
|
|
433
|
+
total: number;
|
|
434
|
+
tray_status: "suspended";
|
|
435
|
+
};
|
|
436
|
+
type SYNO_CloudSync_list_conn_Params = {
|
|
437
|
+
is_tray?: boolean;
|
|
438
|
+
group_by?: "group_by_user";
|
|
439
|
+
};
|
|
440
|
+
type SYNO_CloudSync_get_available_clouds_Response = {
|
|
441
|
+
available_clouds: unknown[];
|
|
442
|
+
};
|
|
443
|
+
type SYNO_CloudSync_get_config_Response = {
|
|
444
|
+
admin_mode: "enable";
|
|
445
|
+
log_count: number;
|
|
446
|
+
repo_vol_path: string;
|
|
447
|
+
sync_mode: boolean;
|
|
448
|
+
volume_count: number;
|
|
449
|
+
volume_list: {
|
|
450
|
+
desc: string;
|
|
451
|
+
display: string;
|
|
452
|
+
mount_point: string;
|
|
453
|
+
size_free: string;
|
|
454
|
+
size_total: string;
|
|
455
|
+
value: string;
|
|
456
|
+
vol_desc: string;
|
|
457
|
+
}[];
|
|
458
|
+
worker_count: number;
|
|
459
|
+
};
|
|
460
|
+
//#endregion
|
|
461
|
+
//#region src/services/SYNO/Core/AppNotify/index.d.ts
|
|
462
|
+
declare class SYNO_Core_AppNotify {
|
|
463
|
+
private client;
|
|
464
|
+
constructor(client: Client);
|
|
465
|
+
view(params?: SYNO_Core_AppNotify_view_Params): Promise<void>;
|
|
466
|
+
}
|
|
467
|
+
type SYNO_Core_AppNotify_view_Params = {
|
|
468
|
+
app?: string;
|
|
469
|
+
};
|
|
470
|
+
//#endregion
|
|
471
|
+
//#region src/services/SYNO/Core/AppPortal/AccessControl/index.d.ts
|
|
472
|
+
declare class SYNO_Core_AppPortal_AccessControl {
|
|
473
|
+
private client;
|
|
474
|
+
constructor(client: Client);
|
|
475
|
+
list(): Promise<SYNO_Core_AppPortal_AccessControl_list_Response>;
|
|
476
|
+
}
|
|
477
|
+
type SYNO_Core_AppPortal_AccessControl_list_Response = {
|
|
478
|
+
entries: unknown[];
|
|
479
|
+
};
|
|
480
|
+
//#endregion
|
|
481
|
+
//#region src/services/SYNO/Core/AppPortal/Config/index.d.ts
|
|
482
|
+
declare class SYNO_Core_AppPortal_Config {
|
|
483
|
+
private client;
|
|
484
|
+
constructor(client: Client);
|
|
485
|
+
get(): Promise<SYNO_Core_AppPortal_Config_get_Response>;
|
|
486
|
+
set(params?: SYNO_Core_AppPortal_Config_set_Params): Promise<void>;
|
|
487
|
+
}
|
|
488
|
+
type SYNO_Core_AppPortal_Config_get_Response = {
|
|
489
|
+
show_titlebar: boolean;
|
|
490
|
+
};
|
|
491
|
+
type SYNO_Core_AppPortal_Config_set_Params = {
|
|
492
|
+
show_titlebar?: boolean;
|
|
493
|
+
};
|
|
494
|
+
//#endregion
|
|
495
|
+
//#region src/services/SYNO/Core/AppPortal/ReverseProxy/index.d.ts
|
|
496
|
+
declare class SYNO_Core_AppPortal_ReverseProxy {
|
|
497
|
+
private client;
|
|
498
|
+
constructor(client: Client);
|
|
499
|
+
list(): Promise<SYNO_Core_AppPortal_ReverseProxy_list_Response>;
|
|
500
|
+
}
|
|
501
|
+
type SYNO_Core_AppPortal_ReverseProxy_list_Response = {
|
|
502
|
+
entries: unknown[];
|
|
503
|
+
};
|
|
504
|
+
//#endregion
|
|
505
|
+
//#region src/services/SYNO/Core/AppPortal/index.d.ts
|
|
506
|
+
declare class SYNO_Core_AppPortal {
|
|
507
|
+
private client;
|
|
508
|
+
constructor(client: Client);
|
|
509
|
+
list(params?: SYNO_Core_AppPortal_list_Params): Promise<SYNO_Core_AppPortal_list_Response>;
|
|
510
|
+
get AccessControl(): SYNO_Core_AppPortal_AccessControl;
|
|
511
|
+
get Config(): SYNO_Core_AppPortal_Config;
|
|
512
|
+
get ReverseProxy(): SYNO_Core_AppPortal_ReverseProxy;
|
|
513
|
+
}
|
|
514
|
+
type SYNO_Core_AppPortal_list_Response = {
|
|
515
|
+
portal: {
|
|
516
|
+
additional?: {
|
|
517
|
+
default_setting?: {
|
|
518
|
+
alias: string;
|
|
519
|
+
fqdn: string;
|
|
520
|
+
hsts: boolean;
|
|
521
|
+
http_port: number;
|
|
522
|
+
https_port: number;
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
display_name: string;
|
|
526
|
+
enable_redirect: boolean;
|
|
527
|
+
id: string;
|
|
528
|
+
}[];
|
|
529
|
+
};
|
|
530
|
+
type SYNO_Core_AppPortal_list_Params = {
|
|
531
|
+
additional?: "default_setting"[];
|
|
532
|
+
};
|
|
533
|
+
//#endregion
|
|
534
|
+
//#region src/services/SYNO/Core/BackgroundTask/index.d.ts
|
|
535
|
+
declare class SYNO_Core_BackgroundTask {
|
|
536
|
+
private client;
|
|
537
|
+
constructor(client: Client);
|
|
538
|
+
get(): Promise<SYNO_Core_BackgroundTask_get_Response>;
|
|
539
|
+
}
|
|
540
|
+
type SYNO_Core_BackgroundTask_get_Response = {
|
|
541
|
+
task_conf_time: {
|
|
542
|
+
nsec: number;
|
|
543
|
+
sec: number;
|
|
544
|
+
};
|
|
545
|
+
task_data_time: {
|
|
546
|
+
nsec: number;
|
|
547
|
+
sec: number;
|
|
548
|
+
};
|
|
549
|
+
task_groups: Record<string, {
|
|
550
|
+
belong_tray: string;
|
|
551
|
+
custom_tray_tooltip: string;
|
|
552
|
+
enable_tray_tooltip: boolean;
|
|
553
|
+
functions: Record<string, {
|
|
554
|
+
action_privileges: string[];
|
|
555
|
+
allow_users: unknown[];
|
|
556
|
+
application_privileges: unknown[];
|
|
557
|
+
i18n: string;
|
|
558
|
+
read_only_config: boolean;
|
|
559
|
+
system_slice: string;
|
|
560
|
+
tasks: Record<string, unknown>;
|
|
561
|
+
ui_component: string;
|
|
562
|
+
}>;
|
|
563
|
+
i18n: string;
|
|
564
|
+
icon_class: string;
|
|
565
|
+
icon_path: string;
|
|
566
|
+
is_tray: boolean;
|
|
567
|
+
read_only_config: boolean;
|
|
568
|
+
tray_groups: unknown[];
|
|
569
|
+
tray_icon_class: string;
|
|
570
|
+
}>;
|
|
571
|
+
};
|
|
572
|
+
//#endregion
|
|
573
|
+
//#region src/services/SYNO/Core/Certificate/CRT/index.d.ts
|
|
574
|
+
declare class SYNO_Core_Certificate_CRT {
|
|
575
|
+
private client;
|
|
576
|
+
constructor(client: Client);
|
|
577
|
+
list(): Promise<SYNO_Core_Certificate_CRT_list_Response>;
|
|
578
|
+
}
|
|
579
|
+
type SYNO_Core_Certificate_CRT_list_Response = {
|
|
580
|
+
certificates: {
|
|
581
|
+
desc: string;
|
|
582
|
+
id: string;
|
|
583
|
+
is_broken: boolean;
|
|
584
|
+
is_default: boolean;
|
|
585
|
+
issuer: {
|
|
586
|
+
city: string;
|
|
587
|
+
common_name: string;
|
|
588
|
+
country: string;
|
|
589
|
+
organization: string;
|
|
590
|
+
};
|
|
591
|
+
key_types: string;
|
|
592
|
+
renewable: boolean;
|
|
593
|
+
self_signed_cacrt_info: {
|
|
594
|
+
issuer: {
|
|
595
|
+
city: string;
|
|
596
|
+
common_name: string;
|
|
597
|
+
country: string;
|
|
598
|
+
organization: string;
|
|
599
|
+
};
|
|
600
|
+
subject: {
|
|
601
|
+
city: string;
|
|
602
|
+
common_name: string;
|
|
603
|
+
country: string;
|
|
604
|
+
organization: string;
|
|
605
|
+
};
|
|
606
|
+
};
|
|
607
|
+
services: {
|
|
608
|
+
display_name: string;
|
|
609
|
+
display_name_i18n?: string;
|
|
610
|
+
isPkg: boolean;
|
|
611
|
+
multiple_cert?: boolean;
|
|
612
|
+
owner: string;
|
|
613
|
+
service: string;
|
|
614
|
+
subscriber: string;
|
|
615
|
+
user_setable?: boolean;
|
|
616
|
+
}[];
|
|
617
|
+
signature_algorithm: string;
|
|
618
|
+
subject: {
|
|
619
|
+
city: string;
|
|
620
|
+
common_name: string;
|
|
621
|
+
country: string;
|
|
622
|
+
organization: string;
|
|
623
|
+
sub_alt_name: string[];
|
|
624
|
+
};
|
|
625
|
+
user_deletable: boolean;
|
|
626
|
+
valid_from: string;
|
|
627
|
+
valid_to: string;
|
|
628
|
+
}[];
|
|
629
|
+
};
|
|
630
|
+
//#endregion
|
|
631
|
+
//#region src/services/SYNO/Core/Certificate/index.d.ts
|
|
632
|
+
declare class SYNO_Core_Certificate {
|
|
633
|
+
private client;
|
|
634
|
+
constructor(client: Client);
|
|
635
|
+
get CRT(): SYNO_Core_Certificate_CRT;
|
|
636
|
+
}
|
|
637
|
+
//#endregion
|
|
638
|
+
//#region src/services/SYNO/Core/CMS/Info/index.d.ts
|
|
639
|
+
declare class SYNO_Core_CMS_Info {
|
|
640
|
+
private client;
|
|
641
|
+
constructor(client: Client);
|
|
642
|
+
get(params?: SYNO_Core_CMS_Info_get_Params): Promise<SYNO_Core_CMS_Info_get_Response>;
|
|
643
|
+
}
|
|
644
|
+
type SYNO_Core_CMS_Info_get_Response = {
|
|
645
|
+
joined: boolean;
|
|
646
|
+
additional?: {
|
|
647
|
+
gluster_role?: number;
|
|
648
|
+
};
|
|
649
|
+
};
|
|
650
|
+
type SYNO_Core_CMS_Info_get_Params = {
|
|
651
|
+
additional?: "gluster_role"[];
|
|
652
|
+
};
|
|
653
|
+
//#endregion
|
|
654
|
+
//#region src/services/SYNO/Core/CMS/index.d.ts
|
|
655
|
+
declare class SYNO_Core_CMS {
|
|
656
|
+
private client;
|
|
657
|
+
constructor(client: Client);
|
|
658
|
+
get Info(): SYNO_Core_CMS_Info;
|
|
659
|
+
}
|
|
660
|
+
//#endregion
|
|
661
|
+
//#region src/services/SYNO/Core/CurrentConnection/index.d.ts
|
|
662
|
+
declare class SYNO_Core_CurrentConnection {
|
|
663
|
+
private client;
|
|
664
|
+
constructor(client: Client);
|
|
665
|
+
get(params?: SYNO_Core_CurrentConnection_get_Params): Promise<SYNO_Core_CurrentConnection_get_Response>;
|
|
666
|
+
}
|
|
667
|
+
type SYNO_Core_CurrentConnection_get_Response = {
|
|
668
|
+
items: {
|
|
669
|
+
can_be_kicked: boolean;
|
|
670
|
+
descr: string;
|
|
671
|
+
did: string;
|
|
672
|
+
first_login_time: string;
|
|
673
|
+
from: string;
|
|
674
|
+
is_amfa: boolean;
|
|
675
|
+
is_current_connected: boolean;
|
|
676
|
+
is_otp_trusted: boolean;
|
|
677
|
+
location: string;
|
|
678
|
+
pid: number;
|
|
679
|
+
protocol: string;
|
|
680
|
+
time: string;
|
|
681
|
+
type: string;
|
|
682
|
+
user_agent: string;
|
|
683
|
+
user_can_be_disabled: boolean;
|
|
684
|
+
who: string;
|
|
685
|
+
}[];
|
|
686
|
+
systime: string;
|
|
687
|
+
total: number;
|
|
688
|
+
};
|
|
689
|
+
type SYNO_Core_CurrentConnection_get_Params = {
|
|
690
|
+
start?: number;
|
|
691
|
+
limit?: number;
|
|
692
|
+
sort_by?: "time";
|
|
693
|
+
sort_direction?: "DESC" | "ASC";
|
|
694
|
+
offset?: number;
|
|
695
|
+
action?: "enum";
|
|
696
|
+
};
|
|
697
|
+
//#endregion
|
|
698
|
+
//#region src/services/SYNO/Core/DataCollect/Application/index.d.ts
|
|
699
|
+
declare class SYNO_Core_DataCollect_Application {
|
|
700
|
+
private client;
|
|
701
|
+
constructor(client: Client);
|
|
702
|
+
record(params: SYNO_Core_DataCollect_Application_record_Params): Promise<void>;
|
|
703
|
+
}
|
|
704
|
+
type SYNO_Core_DataCollect_Application_record_Params = {
|
|
705
|
+
app: string;
|
|
706
|
+
};
|
|
707
|
+
//#endregion
|
|
708
|
+
//#region src/services/SYNO/Core/DataCollect/index.d.ts
|
|
709
|
+
declare class SYNO_Core_DataCollect {
|
|
710
|
+
private client;
|
|
711
|
+
constructor(client: Client);
|
|
712
|
+
get Application(): SYNO_Core_DataCollect_Application;
|
|
713
|
+
}
|
|
714
|
+
//#endregion
|
|
715
|
+
//#region src/services/SYNO/Core/DDNS/Ethernet/index.d.ts
|
|
716
|
+
declare class SYNO_Core_DDNS_Ethernet {
|
|
717
|
+
private client;
|
|
718
|
+
constructor(client: Client);
|
|
719
|
+
list(): Promise<SYNO_Core_DDNS_Ethernet_list_Response>;
|
|
720
|
+
}
|
|
721
|
+
type SYNO_Core_DDNS_Ethernet_list_Response = {
|
|
722
|
+
ifname: string;
|
|
723
|
+
ip: string;
|
|
724
|
+
ipv6: unknown[];
|
|
725
|
+
}[];
|
|
726
|
+
//#endregion
|
|
727
|
+
//#region src/services/SYNO/Core/DDNS/ExtIP/index.d.ts
|
|
728
|
+
declare class SYNO_Core_DDNS_ExtIP {
|
|
729
|
+
private client;
|
|
730
|
+
constructor(client: Client);
|
|
731
|
+
list(params?: SYNO_Core_DDNS_ExtIP_list_Params): Promise<SYNO_Core_DDNS_ExtIP_list_Response>;
|
|
732
|
+
}
|
|
733
|
+
type SYNO_Core_DDNS_ExtIP_list_Response = {
|
|
734
|
+
ip: string;
|
|
735
|
+
ipv6: string;
|
|
736
|
+
type: "WAN";
|
|
737
|
+
}[];
|
|
738
|
+
type SYNO_Core_DDNS_ExtIP_list_Params = {
|
|
739
|
+
retry?: boolean;
|
|
740
|
+
};
|
|
741
|
+
//#endregion
|
|
742
|
+
//#region src/services/SYNO/Core/DDNS/Provider/index.d.ts
|
|
743
|
+
declare class SYNO_Core_DDNS_Provider {
|
|
744
|
+
private client;
|
|
745
|
+
constructor(client: Client);
|
|
746
|
+
list(): Promise<SYNO_Core_DDNS_Provider_list_Response>;
|
|
747
|
+
}
|
|
748
|
+
type SYNO_Core_DDNS_Provider_list_Response = {
|
|
749
|
+
providers: {
|
|
750
|
+
id: string;
|
|
751
|
+
provider: string;
|
|
752
|
+
website: string;
|
|
753
|
+
}[];
|
|
754
|
+
};
|
|
755
|
+
//#endregion
|
|
756
|
+
//#region src/services/SYNO/Core/DDNS/Record/index.d.ts
|
|
757
|
+
declare class SYNO_Core_DDNS_Record {
|
|
758
|
+
private client;
|
|
759
|
+
constructor(client: Client);
|
|
760
|
+
list(): Promise<SYNO_Core_DDNS_Record_list_Response>;
|
|
761
|
+
}
|
|
762
|
+
type SYNO_Core_DDNS_Record_list_Response = {
|
|
763
|
+
next_update_time: string;
|
|
764
|
+
records: unknown[];
|
|
765
|
+
};
|
|
766
|
+
//#endregion
|
|
767
|
+
//#region src/services/SYNO/Core/DDNS/Synology/index.d.ts
|
|
768
|
+
declare class SYNO_Core_DDNS_Synology {
|
|
769
|
+
private client;
|
|
770
|
+
constructor(client: Client);
|
|
771
|
+
get_myds_account(): Promise<SYNO_Core_DDNS_Synology_get_myds_account_Response>;
|
|
772
|
+
}
|
|
773
|
+
type SYNO_Core_DDNS_Synology_get_myds_account_Response = {
|
|
774
|
+
email: string;
|
|
775
|
+
};
|
|
776
|
+
//#endregion
|
|
777
|
+
//#region src/services/SYNO/Core/DDNS/index.d.ts
|
|
778
|
+
declare class SYNO_Core_DDNS {
|
|
779
|
+
private client;
|
|
780
|
+
constructor(client: Client);
|
|
781
|
+
get Ethernet(): SYNO_Core_DDNS_Ethernet;
|
|
782
|
+
get ExtIP(): SYNO_Core_DDNS_ExtIP;
|
|
783
|
+
get Provider(): SYNO_Core_DDNS_Provider;
|
|
784
|
+
get Record(): SYNO_Core_DDNS_Record;
|
|
785
|
+
get Synology(): SYNO_Core_DDNS_Synology;
|
|
786
|
+
}
|
|
787
|
+
//#endregion
|
|
788
|
+
//#region src/services/SYNO/Core/Desktop/PersonalUpdater/index.d.ts
|
|
789
|
+
declare class SYNO_Core_Desktop_PersonalUpdater {
|
|
790
|
+
private client;
|
|
791
|
+
constructor(client: Client);
|
|
792
|
+
need_update(): Promise<SYNO_Core_Desktop_PersonalUpdater_need_update_Response>;
|
|
793
|
+
}
|
|
794
|
+
type SYNO_Core_Desktop_PersonalUpdater_need_update_Response = {
|
|
795
|
+
need_update: boolean;
|
|
796
|
+
};
|
|
797
|
+
//#endregion
|
|
798
|
+
//#region src/services/SYNO/Core/Desktop/Timeout/index.d.ts
|
|
799
|
+
declare class SYNO_Core_Desktop_Timeout {
|
|
800
|
+
private client;
|
|
801
|
+
constructor(client: Client);
|
|
802
|
+
check(): Promise<void>;
|
|
803
|
+
}
|
|
804
|
+
//#endregion
|
|
805
|
+
//#region src/services/SYNO/Core/Desktop/index.d.ts
|
|
806
|
+
declare class SYNO_Core_Desktop {
|
|
807
|
+
private client;
|
|
808
|
+
constructor(client: Client);
|
|
809
|
+
get PersonalUpdater(): SYNO_Core_Desktop_PersonalUpdater;
|
|
810
|
+
get Timeout(): SYNO_Core_Desktop_Timeout;
|
|
811
|
+
}
|
|
812
|
+
//#endregion
|
|
813
|
+
//#region src/services/SYNO/Core/DisableAdmin/index.d.ts
|
|
814
|
+
declare class SYNO_Core_DisableAdmin {
|
|
815
|
+
private client;
|
|
816
|
+
constructor(client: Client);
|
|
817
|
+
get(): Promise<SYNO_Core_DisableAdmin_get_Response>;
|
|
818
|
+
}
|
|
819
|
+
type SYNO_Core_DisableAdmin_get_Response = {
|
|
820
|
+
notify_disable_admin: boolean;
|
|
821
|
+
};
|
|
822
|
+
//#endregion
|
|
823
|
+
//#region src/services/SYNO/Core/DSMNotify/Strings/index.d.ts
|
|
824
|
+
declare class SYNO_Core_DSMNotify_Strings {
|
|
825
|
+
private client;
|
|
826
|
+
constructor(client: Client);
|
|
827
|
+
get(params: SYNO_Core_DSMNotify_Strings_get_Params): Promise<unknown>;
|
|
828
|
+
}
|
|
829
|
+
type SYNO_Core_DSMNotify_Strings_get_Params = {
|
|
830
|
+
lang: string;
|
|
831
|
+
};
|
|
832
|
+
//#endregion
|
|
833
|
+
//#region src/services/SYNO/Core/DSMNotify/index.d.ts
|
|
834
|
+
declare class SYNO_Core_DSMNotify {
|
|
835
|
+
private client;
|
|
836
|
+
constructor(client: Client);
|
|
837
|
+
notify(params: SYNO_Core_DSMNotify_notify_Params): Promise<void>;
|
|
838
|
+
get Strings(): SYNO_Core_DSMNotify_Strings;
|
|
839
|
+
}
|
|
840
|
+
type SYNO_Core_DSMNotify_notify_Params = {
|
|
841
|
+
action: "apply";
|
|
842
|
+
clean?: "all";
|
|
843
|
+
};
|
|
844
|
+
//#endregion
|
|
845
|
+
//#region src/services/SYNO/Core/EW/Info/index.d.ts
|
|
846
|
+
declare class SYNO_Core_EW_Info {
|
|
847
|
+
private client;
|
|
848
|
+
constructor(client: Client);
|
|
849
|
+
get(): Promise<SYNO_Core_EW_Info_get_Response>;
|
|
850
|
+
}
|
|
851
|
+
type SYNO_Core_EW_Info_get_Response = {
|
|
852
|
+
have_applied_eunit: boolean;
|
|
853
|
+
info: {
|
|
854
|
+
sn: string;
|
|
855
|
+
status: string;
|
|
856
|
+
};
|
|
857
|
+
mail: string;
|
|
858
|
+
show_welcome_page: boolean;
|
|
859
|
+
};
|
|
860
|
+
//#endregion
|
|
861
|
+
//#region src/services/SYNO/Core/EW/index.d.ts
|
|
862
|
+
declare class SYNO_Core_EW {
|
|
863
|
+
private client;
|
|
864
|
+
constructor(client: Client);
|
|
865
|
+
get Info(): SYNO_Core_EW_Info;
|
|
866
|
+
}
|
|
867
|
+
//#endregion
|
|
868
|
+
//#region src/services/SYNO/Core/ExternalDevice/Storage/eSATA/index.d.ts
|
|
869
|
+
declare class SYNO_Core_ExternalDevice_Storage_eSATA {
|
|
870
|
+
private client;
|
|
871
|
+
constructor(client: Client);
|
|
872
|
+
list(): Promise<SYNO_Core_ExternalDevice_Storage_eSATA_list_Response>;
|
|
873
|
+
}
|
|
874
|
+
type SYNO_Core_ExternalDevice_Storage_eSATA_list_Response = {
|
|
875
|
+
devices: unknown[];
|
|
876
|
+
};
|
|
877
|
+
//#endregion
|
|
878
|
+
//#region src/services/SYNO/Core/ExternalDevice/Storage/USB/index.d.ts
|
|
879
|
+
declare class SYNO_Core_ExternalDevice_Storage_USB {
|
|
880
|
+
private client;
|
|
881
|
+
constructor(client: Client);
|
|
882
|
+
list(): Promise<SYNO_Core_ExternalDevice_Storage_USB_list_Response>;
|
|
883
|
+
}
|
|
884
|
+
type SYNO_Core_ExternalDevice_Storage_USB_list_Response = {
|
|
885
|
+
devices: unknown[];
|
|
886
|
+
};
|
|
887
|
+
//#endregion
|
|
888
|
+
//#region src/services/SYNO/Core/ExternalDevice/Storage/index.d.ts
|
|
889
|
+
declare class SYNO_Core_ExternalDevice_Storage {
|
|
890
|
+
private client;
|
|
891
|
+
constructor(client: Client);
|
|
892
|
+
get eSATA(): SYNO_Core_ExternalDevice_Storage_eSATA;
|
|
893
|
+
get USB(): SYNO_Core_ExternalDevice_Storage_USB;
|
|
894
|
+
}
|
|
895
|
+
//#endregion
|
|
896
|
+
//#region src/services/SYNO/Core/ExternalDevice/index.d.ts
|
|
897
|
+
declare class SYNO_Core_ExternalDevice {
|
|
898
|
+
private client;
|
|
899
|
+
constructor(client: Client);
|
|
900
|
+
get Storage(): SYNO_Core_ExternalDevice_Storage;
|
|
901
|
+
}
|
|
902
|
+
//#endregion
|
|
903
|
+
//#region src/services/SYNO/Core/FileServ/AFP/index.d.ts
|
|
904
|
+
declare class SYNO_Core_FileServ_AFP {
|
|
905
|
+
private client;
|
|
906
|
+
constructor(client: Client);
|
|
907
|
+
get(): Promise<SYNO_Core_FileServ_AFP_get_Response>;
|
|
908
|
+
}
|
|
909
|
+
type SYNO_Core_FileServ_AFP_get_Response = {
|
|
910
|
+
enable_afp: boolean;
|
|
911
|
+
enable_disconnect_quick: boolean;
|
|
912
|
+
enable_umask: boolean;
|
|
913
|
+
time_machine: string;
|
|
914
|
+
};
|
|
915
|
+
//#endregion
|
|
916
|
+
//#region src/services/SYNO/Core/FileServ/NFS/index.d.ts
|
|
917
|
+
declare class SYNO_Core_FileServ_NFS {
|
|
918
|
+
private client;
|
|
919
|
+
constructor(client: Client);
|
|
920
|
+
get(): Promise<SYNO_Core_FileServ_NFS_get_Response>;
|
|
921
|
+
}
|
|
922
|
+
type SYNO_Core_FileServ_NFS_get_Response = {
|
|
923
|
+
enable_nfs: boolean;
|
|
924
|
+
enable_nfs_v4: boolean;
|
|
925
|
+
enabled_minor_ver: number;
|
|
926
|
+
nfs_v4_domain: string;
|
|
927
|
+
read_size: number;
|
|
928
|
+
support_encrypt_share: number;
|
|
929
|
+
support_major_ver: number;
|
|
930
|
+
support_minor_ver: number;
|
|
931
|
+
unix_pri_enable: boolean;
|
|
932
|
+
write_size: number;
|
|
933
|
+
};
|
|
934
|
+
//#endregion
|
|
935
|
+
//#region src/services/SYNO/Core/FileServ/SMB/index.d.ts
|
|
936
|
+
declare class SYNO_Core_FileServ_SMB {
|
|
937
|
+
private client;
|
|
938
|
+
constructor(client: Client);
|
|
939
|
+
get(): Promise<SYNO_Core_FileServ_SMB_get_Response>;
|
|
940
|
+
}
|
|
941
|
+
type SYNO_Core_FileServ_SMB_get_Response = {
|
|
942
|
+
disable_shadow_copy: boolean;
|
|
943
|
+
disable_strict_allocate: boolean;
|
|
944
|
+
enable_access_based_share_enum: boolean;
|
|
945
|
+
enable_adserver: unknown | null;
|
|
946
|
+
enable_aio_read: boolean;
|
|
947
|
+
enable_delete_vetofiles: boolean;
|
|
948
|
+
enable_dirsort: boolean;
|
|
949
|
+
enable_durable_handles: boolean;
|
|
950
|
+
enable_enhance_log: boolean;
|
|
951
|
+
enable_fruit_locking: boolean;
|
|
952
|
+
enable_local_master_browser: boolean;
|
|
953
|
+
enable_mask: boolean;
|
|
954
|
+
enable_msdfs: boolean;
|
|
955
|
+
enable_multichannel: boolean;
|
|
956
|
+
enable_ntlmv1_auth: boolean;
|
|
957
|
+
enable_op_lock: boolean;
|
|
958
|
+
enable_perf_chart: boolean;
|
|
959
|
+
enable_reset_on_zero_vc: boolean;
|
|
960
|
+
enable_samba: boolean;
|
|
961
|
+
enable_server_signing: number;
|
|
962
|
+
enable_smb2_leases: boolean;
|
|
963
|
+
enable_smb3_directory_leasing: boolean;
|
|
964
|
+
enable_strict_sync: boolean;
|
|
965
|
+
enable_symlink: boolean;
|
|
966
|
+
enable_syno_catia: boolean;
|
|
967
|
+
enable_synotify: boolean;
|
|
968
|
+
enable_vetofile: boolean;
|
|
969
|
+
enable_widelink: boolean;
|
|
970
|
+
offline_files_support: boolean;
|
|
971
|
+
smb3_directory_leasing_scope: "home_only";
|
|
972
|
+
smb_encrypt_transport: number;
|
|
973
|
+
smb_max_protocol: number;
|
|
974
|
+
smb_min_protocol: number;
|
|
975
|
+
syno_wildcard_search: boolean;
|
|
976
|
+
vetofile: string;
|
|
977
|
+
wins: string;
|
|
978
|
+
workgroup: string;
|
|
979
|
+
};
|
|
980
|
+
//#endregion
|
|
981
|
+
//#region src/services/SYNO/Core/FileServ/index.d.ts
|
|
982
|
+
declare class SYNO_Core_FileServ {
|
|
983
|
+
private client;
|
|
984
|
+
constructor(client: Client);
|
|
985
|
+
get AFP(): SYNO_Core_FileServ_AFP;
|
|
986
|
+
get NFS(): SYNO_Core_FileServ_NFS;
|
|
987
|
+
get SMB(): SYNO_Core_FileServ_SMB;
|
|
988
|
+
}
|
|
989
|
+
//#endregion
|
|
990
|
+
//#region src/services/SYNO/Core/Hardware/FanSpeed/index.d.ts
|
|
991
|
+
declare class SYNO_Core_Hardware_FanSpeed {
|
|
992
|
+
private client;
|
|
993
|
+
constructor(client: Client);
|
|
994
|
+
get(): Promise<unknown>;
|
|
995
|
+
}
|
|
996
|
+
//#endregion
|
|
997
|
+
//#region src/services/SYNO/Core/Hardware/SpectreMeltdown/index.d.ts
|
|
998
|
+
declare class SYNO_Core_Hardware_SpectreMeltdown {
|
|
999
|
+
private client;
|
|
1000
|
+
constructor(client: Client);
|
|
1001
|
+
get(): Promise<SYNO_Core_Hardware_SpectreMeltdown_get_Response>;
|
|
1002
|
+
}
|
|
1003
|
+
type SYNO_Core_Hardware_SpectreMeltdown_get_Response = {
|
|
1004
|
+
enable_spectre_meltdown_mitigation: boolean;
|
|
1005
|
+
};
|
|
1006
|
+
//#endregion
|
|
1007
|
+
//#region src/services/SYNO/Core/Hardware/index.d.ts
|
|
1008
|
+
declare class SYNO_Core_Hardware {
|
|
1009
|
+
private client;
|
|
1010
|
+
constructor(client: Client);
|
|
1011
|
+
get FanSpeed(): SYNO_Core_Hardware_FanSpeed;
|
|
1012
|
+
get SpectreMeltdown(): SYNO_Core_Hardware_SpectreMeltdown;
|
|
1013
|
+
}
|
|
1014
|
+
//#endregion
|
|
1015
|
+
//#region src/services/SYNO/Core/MyDSCenter/index.d.ts
|
|
1016
|
+
declare class SYNO_Core_MyDSCenter {
|
|
1017
|
+
private client;
|
|
1018
|
+
constructor(client: Client);
|
|
1019
|
+
query(): Promise<SYNO_Core_MyDSCenter_query_Response>;
|
|
1020
|
+
}
|
|
1021
|
+
type SYNO_Core_MyDSCenter_query_Response = {
|
|
1022
|
+
is_logged_in: boolean;
|
|
1023
|
+
};
|
|
1024
|
+
//#endregion
|
|
1025
|
+
//#region src/services/SYNO/Core/Network/Bond/index.d.ts
|
|
1026
|
+
declare class SYNO_Core_Network_Bond {
|
|
1027
|
+
private client;
|
|
1028
|
+
constructor(client: Client);
|
|
1029
|
+
list(): Promise<SYNO_Core_Network_Bond_list_Response>;
|
|
1030
|
+
}
|
|
1031
|
+
type SYNO_Core_Network_Bond_list_Response = unknown[];
|
|
1032
|
+
//#endregion
|
|
1033
|
+
//#region src/services/SYNO/Core/Network/Ethernet/External/index.d.ts
|
|
1034
|
+
declare class SYNO_Core_Network_Ethernet_External {
|
|
1035
|
+
private client;
|
|
1036
|
+
constructor(client: Client);
|
|
1037
|
+
check(): Promise<SYNO_Core_Network_Ethernet_External_check_Response>;
|
|
1038
|
+
}
|
|
1039
|
+
type SYNO_Core_Network_Ethernet_External_check_Response = unknown[];
|
|
1040
|
+
//#endregion
|
|
1041
|
+
//#region src/services/SYNO/Core/Network/Ethernet/index.d.ts
|
|
1042
|
+
declare class SYNO_Core_Network_Ethernet {
|
|
1043
|
+
private client;
|
|
1044
|
+
constructor(client: Client);
|
|
1045
|
+
list(): Promise<SYNO_Core_Network_Ethernet_list_Response>;
|
|
1046
|
+
get External(): SYNO_Core_Network_Ethernet_External;
|
|
1047
|
+
}
|
|
1048
|
+
type SYNO_Core_Network_Ethernet_list_Response = {
|
|
1049
|
+
block: number;
|
|
1050
|
+
dns: string;
|
|
1051
|
+
duplex: boolean;
|
|
1052
|
+
enable_ha_ip: boolean;
|
|
1053
|
+
enable_vlan: boolean;
|
|
1054
|
+
gateway: string;
|
|
1055
|
+
ha_local_ip: string;
|
|
1056
|
+
ha_local_mask: string;
|
|
1057
|
+
ifname: string;
|
|
1058
|
+
ip: string;
|
|
1059
|
+
ipv6: unknown[];
|
|
1060
|
+
is_default_gateway: boolean;
|
|
1061
|
+
is_main_ha_ip: boolean;
|
|
1062
|
+
mask: string;
|
|
1063
|
+
max_supported_speed: number;
|
|
1064
|
+
mtu: number;
|
|
1065
|
+
mtu_config: number;
|
|
1066
|
+
nat: boolean;
|
|
1067
|
+
speed: number;
|
|
1068
|
+
status: string;
|
|
1069
|
+
type: string;
|
|
1070
|
+
use_dhcp: boolean;
|
|
1071
|
+
vlan_id: number;
|
|
1072
|
+
}[];
|
|
1073
|
+
//#endregion
|
|
1074
|
+
//#region src/services/SYNO/Core/Network/Interface/index.d.ts
|
|
1075
|
+
declare class SYNO_Core_Network_Interface {
|
|
1076
|
+
private client;
|
|
1077
|
+
constructor(client: Client);
|
|
1078
|
+
list(): Promise<SYNO_Core_Network_Interface_list_Response>;
|
|
1079
|
+
}
|
|
1080
|
+
type SYNO_Core_Network_Interface_list_Response = {
|
|
1081
|
+
ifname: string;
|
|
1082
|
+
ip: string;
|
|
1083
|
+
mask: string;
|
|
1084
|
+
speed: number;
|
|
1085
|
+
status: string;
|
|
1086
|
+
type: string;
|
|
1087
|
+
use_dhcp: boolean;
|
|
1088
|
+
}[];
|
|
1089
|
+
//#endregion
|
|
1090
|
+
//#region src/services/SYNO/Core/Network/OVS/index.d.ts
|
|
1091
|
+
declare class SYNO_Core_Network_OVS {
|
|
1092
|
+
private client;
|
|
1093
|
+
constructor(client: Client);
|
|
1094
|
+
get(): Promise<SYNO_Core_Network_OVS_get_Response>;
|
|
1095
|
+
}
|
|
1096
|
+
type SYNO_Core_Network_OVS_get_Response = {
|
|
1097
|
+
enable_ovs: boolean;
|
|
1098
|
+
};
|
|
1099
|
+
//#endregion
|
|
1100
|
+
//#region src/services/SYNO/Core/Network/PPPoE/index.d.ts
|
|
1101
|
+
declare class SYNO_Core_Network_PPPoE {
|
|
1102
|
+
private client;
|
|
1103
|
+
constructor(client: Client);
|
|
1104
|
+
list(): Promise<SYNO_Core_Network_PPPoE_list_Response>;
|
|
1105
|
+
}
|
|
1106
|
+
type SYNO_Core_Network_PPPoE_list_Response = {
|
|
1107
|
+
devs: string[];
|
|
1108
|
+
guest_enabled: boolean;
|
|
1109
|
+
ifname: string;
|
|
1110
|
+
ip: string;
|
|
1111
|
+
is_default_gateway: number;
|
|
1112
|
+
mask: string;
|
|
1113
|
+
mtu_config: string;
|
|
1114
|
+
password: string;
|
|
1115
|
+
real_ifname: string;
|
|
1116
|
+
status: string;
|
|
1117
|
+
type: string;
|
|
1118
|
+
use_dhcp: boolean;
|
|
1119
|
+
username: string;
|
|
1120
|
+
}[];
|
|
1121
|
+
//#endregion
|
|
1122
|
+
//#region src/services/SYNO/Core/Network/Proxy/index.d.ts
|
|
1123
|
+
declare class SYNO_Core_Network_Proxy {
|
|
1124
|
+
private client;
|
|
1125
|
+
constructor(client: Client);
|
|
1126
|
+
get(): Promise<SYNO_Core_Network_Proxy_get_Response>;
|
|
1127
|
+
}
|
|
1128
|
+
type SYNO_Core_Network_Proxy_get_Response = {
|
|
1129
|
+
enable: boolean;
|
|
1130
|
+
enable_auth: boolean;
|
|
1131
|
+
enable_bypass: boolean;
|
|
1132
|
+
enable_different_host: boolean;
|
|
1133
|
+
http_host: string;
|
|
1134
|
+
http_port: string;
|
|
1135
|
+
https_host: string;
|
|
1136
|
+
https_port: string;
|
|
1137
|
+
password: string;
|
|
1138
|
+
username: string;
|
|
1139
|
+
};
|
|
1140
|
+
//#endregion
|
|
1141
|
+
//#region src/services/SYNO/Core/Network/Router/Gateway/List/index.d.ts
|
|
1142
|
+
declare class SYNO_Core_Network_Router_Gateway_List {
|
|
1143
|
+
private client;
|
|
1144
|
+
constructor(client: Client);
|
|
1145
|
+
get(params: SYNO_Core_Network_Router_Gateway_List_get_Params): Promise<SYNO_Core_Network_Router_Gateway_List_get_Response>;
|
|
1146
|
+
}
|
|
1147
|
+
type SYNO_Core_Network_Router_Gateway_List_get_Response = {
|
|
1148
|
+
configs: {
|
|
1149
|
+
class: string;
|
|
1150
|
+
dns: string;
|
|
1151
|
+
gateway: string;
|
|
1152
|
+
ifname: string;
|
|
1153
|
+
priority: number;
|
|
1154
|
+
slave: boolean;
|
|
1155
|
+
}[];
|
|
1156
|
+
};
|
|
1157
|
+
type SYNO_Core_Network_Router_Gateway_List_get_Params = {
|
|
1158
|
+
iptype: "ipv4";
|
|
1159
|
+
type: "wan";
|
|
1160
|
+
};
|
|
1161
|
+
//#endregion
|
|
1162
|
+
//#region src/services/SYNO/Core/Network/Router/Gateway/index.d.ts
|
|
1163
|
+
declare class SYNO_Core_Network_Router_Gateway {
|
|
1164
|
+
private client;
|
|
1165
|
+
constructor(client: Client);
|
|
1166
|
+
get List(): SYNO_Core_Network_Router_Gateway_List;
|
|
1167
|
+
}
|
|
1168
|
+
//#endregion
|
|
1169
|
+
//#region src/services/SYNO/Core/Network/Router/index.d.ts
|
|
1170
|
+
declare class SYNO_Core_Network_Router {
|
|
1171
|
+
private client;
|
|
1172
|
+
constructor(client: Client);
|
|
1173
|
+
get Gateway(): SYNO_Core_Network_Router_Gateway;
|
|
1174
|
+
}
|
|
1175
|
+
//#endregion
|
|
1176
|
+
//#region src/services/SYNO/Core/Network/TrafficControl/Rules/index.d.ts
|
|
1177
|
+
declare class SYNO_Core_Network_TrafficControl_Rules {
|
|
1178
|
+
private client;
|
|
1179
|
+
constructor(client: Client);
|
|
1180
|
+
load(params: SYNO_Core_Network_TrafficControl_Rules_load_Params): Promise<SYNO_Core_Network_TrafficControl_Rules_load_Response>;
|
|
1181
|
+
}
|
|
1182
|
+
type SYNO_Core_Network_TrafficControl_Rules_load_Response = {
|
|
1183
|
+
rules: unknown[];
|
|
1184
|
+
total: number;
|
|
1185
|
+
};
|
|
1186
|
+
type SYNO_Core_Network_TrafficControl_Rules_load_Params = {
|
|
1187
|
+
adapter: string;
|
|
1188
|
+
};
|
|
1189
|
+
//#endregion
|
|
1190
|
+
//#region src/services/SYNO/Core/Network/TrafficControl/index.d.ts
|
|
1191
|
+
declare class SYNO_Core_Network_TrafficControl {
|
|
1192
|
+
private client;
|
|
1193
|
+
constructor(client: Client);
|
|
1194
|
+
get Rules(): SYNO_Core_Network_TrafficControl_Rules;
|
|
1195
|
+
}
|
|
1196
|
+
//#endregion
|
|
1197
|
+
//#region src/services/SYNO/Core/Network/VPN/L2TP/index.d.ts
|
|
1198
|
+
declare class SYNO_Core_Network_VPN_L2TP {
|
|
1199
|
+
private client;
|
|
1200
|
+
constructor(client: Client);
|
|
1201
|
+
list(params?: SYNO_Core_Network_VPN_L2TP_list_Params): Promise<SYNO_Core_Network_VPN_L2TP_list_Response>;
|
|
1202
|
+
}
|
|
1203
|
+
type SYNO_Core_Network_VPN_L2TP_list_Response = unknown[];
|
|
1204
|
+
type SYNO_Core_Network_VPN_L2TP_list_Params = {
|
|
1205
|
+
additional?: "status"[];
|
|
1206
|
+
};
|
|
1207
|
+
//#endregion
|
|
1208
|
+
//#region src/services/SYNO/Core/Network/VPN/OpenVPN/index.d.ts
|
|
1209
|
+
declare class SYNO_Core_Network_VPN_OpenVPN {
|
|
1210
|
+
private client;
|
|
1211
|
+
constructor(client: Client);
|
|
1212
|
+
list(params: SYNO_Core_Network_VPN_OpenVPN_list_Params): Promise<SYNO_Core_Network_VPN_OpenVPN_list_Response>;
|
|
1213
|
+
}
|
|
1214
|
+
type SYNO_Core_Network_VPN_OpenVPN_list_Response = unknown[];
|
|
1215
|
+
type SYNO_Core_Network_VPN_OpenVPN_list_Params = {
|
|
1216
|
+
additional?: "status"[];
|
|
1217
|
+
};
|
|
1218
|
+
//#endregion
|
|
1219
|
+
//#region src/services/SYNO/Core/Network/VPN/OpenVPNWithConf/index.d.ts
|
|
1220
|
+
declare class SYNO_Core_Network_VPN_OpenVPNWithConf {
|
|
1221
|
+
private client;
|
|
1222
|
+
constructor(client: Client);
|
|
1223
|
+
list(params?: SYNO_Core_Network_VPN_OpenVPNWithConf_list_Params): Promise<SYNO_Core_Network_VPN_OpenVPNWithConf_list_Response>;
|
|
1224
|
+
}
|
|
1225
|
+
type SYNO_Core_Network_VPN_OpenVPNWithConf_list_Response = unknown[];
|
|
1226
|
+
type SYNO_Core_Network_VPN_OpenVPNWithConf_list_Params = {
|
|
1227
|
+
additional?: "status"[];
|
|
1228
|
+
};
|
|
1229
|
+
//#endregion
|
|
1230
|
+
//#region src/services/SYNO/Core/Network/VPN/PPTP/index.d.ts
|
|
1231
|
+
declare class SYNO_Core_Network_VPN_PPTP {
|
|
1232
|
+
private client;
|
|
1233
|
+
constructor(client: Client);
|
|
1234
|
+
list(params?: SYNO_Core_Network_VPN_PPTP_list_Params): Promise<SYNO_Core_Network_VPN_PPTP_list_Response>;
|
|
1235
|
+
}
|
|
1236
|
+
type SYNO_Core_Network_VPN_PPTP_list_Response = unknown[];
|
|
1237
|
+
type SYNO_Core_Network_VPN_PPTP_list_Params = {
|
|
1238
|
+
additional?: "status"[];
|
|
1239
|
+
};
|
|
1240
|
+
//#endregion
|
|
1241
|
+
//#region src/services/SYNO/Core/Network/VPN/index.d.ts
|
|
1242
|
+
declare class SYNO_Core_Network_VPN {
|
|
1243
|
+
private client;
|
|
1244
|
+
constructor(client: Client);
|
|
1245
|
+
get L2TP(): SYNO_Core_Network_VPN_L2TP;
|
|
1246
|
+
get OpenVPN(): SYNO_Core_Network_VPN_OpenVPN;
|
|
1247
|
+
get OpenVPNWithConf(): SYNO_Core_Network_VPN_OpenVPNWithConf;
|
|
1248
|
+
get PPTP(): SYNO_Core_Network_VPN_PPTP;
|
|
1249
|
+
}
|
|
1250
|
+
//#endregion
|
|
1251
|
+
//#region src/services/SYNO/Core/Network/index.d.ts
|
|
1252
|
+
declare class SYNO_Core_Network {
|
|
1253
|
+
private client;
|
|
1254
|
+
constructor(client: Client);
|
|
1255
|
+
get(): Promise<SYNO_Core_Network_get_Response>;
|
|
1256
|
+
get Bond(): SYNO_Core_Network_Bond;
|
|
1257
|
+
get Ethernet(): SYNO_Core_Network_Ethernet;
|
|
1258
|
+
get Interface(): SYNO_Core_Network_Interface;
|
|
1259
|
+
get OVS(): SYNO_Core_Network_OVS;
|
|
1260
|
+
get PPPoE(): SYNO_Core_Network_PPPoE;
|
|
1261
|
+
get Proxy(): SYNO_Core_Network_Proxy;
|
|
1262
|
+
get Router(): SYNO_Core_Network_Router;
|
|
1263
|
+
get TrafficControl(): SYNO_Core_Network_TrafficControl;
|
|
1264
|
+
get VPN(): SYNO_Core_Network_VPN;
|
|
1265
|
+
}
|
|
1266
|
+
type SYNO_Core_Network_get_Response = {
|
|
1267
|
+
arp_ignore: boolean;
|
|
1268
|
+
dns_manual: boolean;
|
|
1269
|
+
dns_primary: string;
|
|
1270
|
+
dns_secondary: string;
|
|
1271
|
+
enable_spectre_meltdown_mitigation: boolean;
|
|
1272
|
+
enable_windomain: boolean;
|
|
1273
|
+
gateway: string;
|
|
1274
|
+
gateway_info: {
|
|
1275
|
+
ifname: string;
|
|
1276
|
+
ip: string;
|
|
1277
|
+
mask: string;
|
|
1278
|
+
status: string;
|
|
1279
|
+
type: string;
|
|
1280
|
+
use_dhcp: boolean;
|
|
1281
|
+
};
|
|
1282
|
+
ipv4_first: boolean;
|
|
1283
|
+
multi_gateway: boolean;
|
|
1284
|
+
server_name: string;
|
|
1285
|
+
use_dhcp_domain: boolean;
|
|
1286
|
+
v6gateway: string;
|
|
1287
|
+
};
|
|
1288
|
+
//#endregion
|
|
1289
|
+
//#region src/services/SYNO/Core/NormalUser/LoginNotify/index.d.ts
|
|
1290
|
+
declare class SYNO_Core_NormalUser_LoginNotify {
|
|
1291
|
+
private client;
|
|
1292
|
+
constructor(client: Client);
|
|
1293
|
+
check(): Promise<SYNO_Core_NormalUser_LoginNotify_check_Response>;
|
|
1294
|
+
}
|
|
1295
|
+
type SYNO_Core_NormalUser_LoginNotify_check_Response = {
|
|
1296
|
+
need_notify: boolean;
|
|
1297
|
+
};
|
|
1298
|
+
//#endregion
|
|
1299
|
+
//#region src/services/SYNO/Core/NormalUser/index.d.ts
|
|
1300
|
+
declare class SYNO_Core_NormalUser {
|
|
1301
|
+
private client;
|
|
1302
|
+
constructor(client: Client);
|
|
1303
|
+
get(): Promise<SYNO_Core_NormalUser_get_Response>;
|
|
1304
|
+
set(): Promise<void>;
|
|
1305
|
+
get LoginNotify(): SYNO_Core_NormalUser_LoginNotify;
|
|
1306
|
+
}
|
|
1307
|
+
type SYNO_Core_NormalUser_get_Response = {
|
|
1308
|
+
OTP_response: boolean;
|
|
1309
|
+
OTP_enforced: boolean;
|
|
1310
|
+
disallowchpasswd: boolean;
|
|
1311
|
+
editable: boolean;
|
|
1312
|
+
email: string;
|
|
1313
|
+
fullname: string;
|
|
1314
|
+
password_last_change: number;
|
|
1315
|
+
username: string;
|
|
1316
|
+
};
|
|
1317
|
+
//#endregion
|
|
1318
|
+
//#region src/services/SYNO/Core/Notification/Advance/FilterSettings/Profile/index.d.ts
|
|
1319
|
+
declare class SYNO_Core_Notification_Advance_FilterSettings_Profile {
|
|
1320
|
+
private client;
|
|
1321
|
+
constructor(client: Client);
|
|
1322
|
+
list(): Promise<SYNO_Core_Notification_Advance_FilterSettings_Profile_list_Response>;
|
|
1323
|
+
}
|
|
1324
|
+
type SYNO_Core_Notification_Advance_FilterSettings_Profile_list_Response = {
|
|
1325
|
+
profiles: unknown[];
|
|
1326
|
+
};
|
|
1327
|
+
//#endregion
|
|
1328
|
+
//#region src/services/SYNO/Core/Notification/Advance/FilterSettings/Template/index.d.ts
|
|
1329
|
+
declare class SYNO_Core_Notification_Advance_FilterSettings_Template {
|
|
1330
|
+
private client;
|
|
1331
|
+
constructor(client: Client);
|
|
1332
|
+
get(): Promise<SYNO_Core_Notification_Advance_FilterSettings_Template_get_Response>;
|
|
1333
|
+
}
|
|
1334
|
+
type SYNO_Core_Notification_Advance_FilterSettings_Template_get_Response = {
|
|
1335
|
+
templates: {
|
|
1336
|
+
config: {
|
|
1337
|
+
default_enabled_rule_level: string;
|
|
1338
|
+
default_type: string;
|
|
1339
|
+
is_default: boolean;
|
|
1340
|
+
};
|
|
1341
|
+
name: string;
|
|
1342
|
+
template_id: number;
|
|
1343
|
+
used_by: unknown[];
|
|
1344
|
+
}[];
|
|
1345
|
+
};
|
|
1346
|
+
//#endregion
|
|
1347
|
+
//#region src/services/SYNO/Core/Notification/Advance/FilterSettings/index.d.ts
|
|
1348
|
+
declare class SYNO_Core_Notification_Advance_FilterSettings {
|
|
1349
|
+
private client;
|
|
1350
|
+
constructor(client: Client);
|
|
1351
|
+
get Profile(): SYNO_Core_Notification_Advance_FilterSettings_Profile;
|
|
1352
|
+
get Template(): SYNO_Core_Notification_Advance_FilterSettings_Template;
|
|
1353
|
+
}
|
|
1354
|
+
//#endregion
|
|
1355
|
+
//#region src/services/SYNO/Core/Notification/Advance/index.d.ts
|
|
1356
|
+
declare class SYNO_Core_Notification_Advance {
|
|
1357
|
+
private client;
|
|
1358
|
+
constructor(client: Client);
|
|
1359
|
+
get FilterSettings(): SYNO_Core_Notification_Advance_FilterSettings;
|
|
1360
|
+
}
|
|
1361
|
+
//#endregion
|
|
1362
|
+
//#region src/services/SYNO/Core/Notification/Mail/Conf/index.d.ts
|
|
1363
|
+
declare class SYNO_Core_Notification_Mail_Conf {
|
|
1364
|
+
private client;
|
|
1365
|
+
constructor(client: Client);
|
|
1366
|
+
get(): Promise<SYNO_Core_Notification_Mail_Conf_get_Response>;
|
|
1367
|
+
}
|
|
1368
|
+
type SYNO_Core_Notification_Mail_Conf_get_Response = {
|
|
1369
|
+
enable_mail: boolean;
|
|
1370
|
+
enable_oauth: boolean;
|
|
1371
|
+
in_use: unknown[];
|
|
1372
|
+
mail: unknown[];
|
|
1373
|
+
send_welcome_mail: boolean;
|
|
1374
|
+
sender_mail: string;
|
|
1375
|
+
sender_name: string;
|
|
1376
|
+
smtp_auth: {
|
|
1377
|
+
enable: boolean;
|
|
1378
|
+
user: string;
|
|
1379
|
+
};
|
|
1380
|
+
smtp_info: {
|
|
1381
|
+
port: number;
|
|
1382
|
+
server: string;
|
|
1383
|
+
ssl: boolean;
|
|
1384
|
+
verifyCert: boolean;
|
|
1385
|
+
};
|
|
1386
|
+
subject_prefix: string;
|
|
1387
|
+
};
|
|
1388
|
+
//#endregion
|
|
1389
|
+
//#region src/services/SYNO/Core/Notification/Mail/index.d.ts
|
|
1390
|
+
declare class SYNO_Core_Notification_Mail {
|
|
1391
|
+
private client;
|
|
1392
|
+
constructor(client: Client);
|
|
1393
|
+
get Conf(): SYNO_Core_Notification_Mail_Conf;
|
|
1394
|
+
}
|
|
1395
|
+
//#endregion
|
|
1396
|
+
//#region src/services/SYNO/Core/Notification/Push/Mail/index.d.ts
|
|
1397
|
+
declare class SYNO_Core_Notification_Push_Mail {
|
|
1398
|
+
private client;
|
|
1399
|
+
constructor(client: Client);
|
|
1400
|
+
get(): Promise<SYNO_Core_Notification_Push_Mail_get_Response>;
|
|
1401
|
+
}
|
|
1402
|
+
type SYNO_Core_Notification_Push_Mail_get_Response = {
|
|
1403
|
+
enable_mail: boolean;
|
|
1404
|
+
mail: unknown[];
|
|
1405
|
+
subject_prefix: string;
|
|
1406
|
+
template_id: number;
|
|
1407
|
+
};
|
|
1408
|
+
//#endregion
|
|
1409
|
+
//#region src/services/SYNO/Core/Notification/Push/Webhook/Provider/index.d.ts
|
|
1410
|
+
declare class SYNO_Core_Notification_Push_Webhook_Provider {
|
|
1411
|
+
private client;
|
|
1412
|
+
constructor(client: Client);
|
|
1413
|
+
list(): Promise<SYNO_Core_Notification_Push_Webhook_Provider_list_Response>;
|
|
1414
|
+
delete(params: SYNO_Core_Notification_Push_Webhook_Provider_delete_Params): Promise<void>;
|
|
1415
|
+
}
|
|
1416
|
+
type SYNO_Core_Notification_Push_Webhook_Provider_list_Response = {
|
|
1417
|
+
count: number;
|
|
1418
|
+
list: unknown[];
|
|
1419
|
+
};
|
|
1420
|
+
type SYNO_Core_Notification_Push_Webhook_Provider_delete_Params = {
|
|
1421
|
+
profile_id: number;
|
|
1422
|
+
};
|
|
1423
|
+
//#endregion
|
|
1424
|
+
//#region src/services/SYNO/Core/Notification/Push/Webhook/index.d.ts
|
|
1425
|
+
declare class SYNO_Core_Notification_Push_Webhook {
|
|
1426
|
+
private client;
|
|
1427
|
+
constructor(client: Client);
|
|
1428
|
+
get Provider(): SYNO_Core_Notification_Push_Webhook_Provider;
|
|
1429
|
+
}
|
|
1430
|
+
//#endregion
|
|
1431
|
+
//#region src/services/SYNO/Core/Notification/Push/index.d.ts
|
|
1432
|
+
declare class SYNO_Core_Notification_Push {
|
|
1433
|
+
private client;
|
|
1434
|
+
constructor(client: Client);
|
|
1435
|
+
get Mail(): SYNO_Core_Notification_Push_Mail;
|
|
1436
|
+
get Webhook(): SYNO_Core_Notification_Push_Webhook;
|
|
1437
|
+
}
|
|
1438
|
+
//#endregion
|
|
1439
|
+
//#region src/services/SYNO/Core/Notification/index.d.ts
|
|
1440
|
+
declare class SYNO_Core_Notification {
|
|
1441
|
+
private client;
|
|
1442
|
+
constructor(client: Client);
|
|
1443
|
+
get Advance(): SYNO_Core_Notification_Advance;
|
|
1444
|
+
get Mail(): SYNO_Core_Notification_Mail;
|
|
1445
|
+
get Push(): SYNO_Core_Notification_Push;
|
|
1446
|
+
}
|
|
1447
|
+
//#endregion
|
|
1448
|
+
//#region src/services/SYNO/Core/OTP/EnforcePolicy/index.d.ts
|
|
1449
|
+
declare class SYNO_Core_OTP_EnforcePolicy {
|
|
1450
|
+
private client;
|
|
1451
|
+
constructor(client: Client);
|
|
1452
|
+
get(): Promise<SYNO_Core_OTP_EnforcePolicy_get_Response>;
|
|
1453
|
+
}
|
|
1454
|
+
type SYNO_Core_OTP_EnforcePolicy_get_Response = {
|
|
1455
|
+
otp_enforce_option: string;
|
|
1456
|
+
};
|
|
1457
|
+
//#endregion
|
|
1458
|
+
//#region src/services/SYNO/Core/OTP/index.d.ts
|
|
1459
|
+
declare class SYNO_Core_OTP {
|
|
1460
|
+
private client;
|
|
1461
|
+
constructor(client: Client);
|
|
1462
|
+
get_one(): Promise<SYNO_Core_OTP_get_one_Response>;
|
|
1463
|
+
get_qrcode(params: SYNO_Core_OTP_get_qrcode_Params): Promise<SYNO_Core_OTP_get_qrcode_Response>;
|
|
1464
|
+
get EnforcePolicy(): SYNO_Core_OTP_EnforcePolicy;
|
|
1465
|
+
}
|
|
1466
|
+
type SYNO_Core_OTP_get_one_Response = {
|
|
1467
|
+
otp_set: boolean;
|
|
1468
|
+
};
|
|
1469
|
+
type SYNO_Core_OTP_get_qrcode_Response = {
|
|
1470
|
+
appAccount: string;
|
|
1471
|
+
img: string;
|
|
1472
|
+
key: string;
|
|
1473
|
+
};
|
|
1474
|
+
type SYNO_Core_OTP_get_qrcode_Params = {
|
|
1475
|
+
enable_margin?: boolean;
|
|
1476
|
+
account: string;
|
|
1477
|
+
};
|
|
1478
|
+
//#endregion
|
|
1479
|
+
//#region src/services/SYNO/Core/Package/Feed/index.d.ts
|
|
1480
|
+
declare class SYNO_Core_Package_Feed {
|
|
1481
|
+
private client;
|
|
1482
|
+
constructor(client: Client);
|
|
1483
|
+
list(): Promise<SYNO_Core_Package_Feed_list_Response>;
|
|
1484
|
+
}
|
|
1485
|
+
type SYNO_Core_Package_Feed_list_Response = {
|
|
1486
|
+
items: unknown[];
|
|
1487
|
+
total: number;
|
|
1488
|
+
};
|
|
1489
|
+
//#endregion
|
|
1490
|
+
//#region src/services/SYNO/Core/Package/Installation/index.d.ts
|
|
1491
|
+
declare class SYNO_Core_Package_Installation {
|
|
1492
|
+
private client;
|
|
1493
|
+
constructor(client: Client);
|
|
1494
|
+
get_queue(params: SYNO_Core_Package_Installation_get_queue_Params): Promise<SYNO_Core_Package_Installation_get_queue_Response>;
|
|
1495
|
+
}
|
|
1496
|
+
type SYNO_Core_Package_Installation_get_queue_Response = {
|
|
1497
|
+
broken_pkgs: unknown[];
|
|
1498
|
+
cause_pausing_pkgs: unknown[];
|
|
1499
|
+
conflicted_pkgs: unknown[];
|
|
1500
|
+
non_exist_pkgs: unknown[];
|
|
1501
|
+
paused_pkgs: unknown[];
|
|
1502
|
+
queue: {
|
|
1503
|
+
beta: boolean;
|
|
1504
|
+
pkg: string;
|
|
1505
|
+
volume: string;
|
|
1506
|
+
}[];
|
|
1507
|
+
replaced_pkgs: unknown[];
|
|
1508
|
+
};
|
|
1509
|
+
type SYNO_Core_Package_Installation_get_queue_Params = {
|
|
1510
|
+
pkgs: {
|
|
1511
|
+
pkg: string;
|
|
1512
|
+
operation: "install";
|
|
1513
|
+
version: string;
|
|
1514
|
+
beta: boolean;
|
|
1515
|
+
}[];
|
|
1516
|
+
};
|
|
1517
|
+
//#endregion
|
|
1518
|
+
//#region src/services/SYNO/Core/Package/Server/index.d.ts
|
|
1519
|
+
declare class SYNO_Core_Package_Server {
|
|
1520
|
+
private client;
|
|
1521
|
+
constructor(client: Client);
|
|
1522
|
+
check(): Promise<SYNO_Core_Package_Server_check_Response>;
|
|
1523
|
+
}
|
|
1524
|
+
type SYNO_Core_Package_Server_check_Response = {
|
|
1525
|
+
action: string;
|
|
1526
|
+
error: {
|
|
1527
|
+
code: number;
|
|
1528
|
+
};
|
|
1529
|
+
stage: string;
|
|
1530
|
+
success: boolean;
|
|
1531
|
+
};
|
|
1532
|
+
//#endregion
|
|
1533
|
+
//#region src/services/SYNO/Core/Package/Setting/index.d.ts
|
|
1534
|
+
declare class SYNO_Core_Package_Setting {
|
|
1535
|
+
private client;
|
|
1536
|
+
constructor(client: Client);
|
|
1537
|
+
get(): Promise<SYNO_Core_Package_Setting_get_Response>;
|
|
1538
|
+
set(params?: SYNO_Core_Package_Setting_set_Params): Promise<SYNO_Core_Package_Setting_set_Response>;
|
|
1539
|
+
}
|
|
1540
|
+
type SYNO_Core_Package_Setting_get_Response = {
|
|
1541
|
+
autoupdateall: boolean;
|
|
1542
|
+
autoupdateimportant: boolean;
|
|
1543
|
+
enable_autoupdate: boolean;
|
|
1544
|
+
enable_dsm: boolean;
|
|
1545
|
+
enable_email: boolean;
|
|
1546
|
+
mailset: boolean;
|
|
1547
|
+
show_disable_autoupdate: boolean;
|
|
1548
|
+
trust_level: number;
|
|
1549
|
+
update_channel: boolean;
|
|
1550
|
+
volume_count: number;
|
|
1551
|
+
volume_list: {
|
|
1552
|
+
desc: string;
|
|
1553
|
+
display: string;
|
|
1554
|
+
mount_point: string;
|
|
1555
|
+
size_free: string;
|
|
1556
|
+
size_total: string;
|
|
1557
|
+
vol_desc: string;
|
|
1558
|
+
volume_features: unknown[];
|
|
1559
|
+
}[];
|
|
1560
|
+
volume_status: string;
|
|
1561
|
+
};
|
|
1562
|
+
type SYNO_Core_Package_Setting_set_Response = {
|
|
1563
|
+
enable_dsm: boolean;
|
|
1564
|
+
enable_email: boolean;
|
|
1565
|
+
update_channel: "stable" | "beta";
|
|
1566
|
+
};
|
|
1567
|
+
type SYNO_Core_Package_Setting_set_Params = {
|
|
1568
|
+
update_channel: "stable" | "beta";
|
|
1569
|
+
enable_email: boolean;
|
|
1570
|
+
enable_dsm: boolean;
|
|
1571
|
+
enable_autoupdate: boolean;
|
|
1572
|
+
autoupdateall: boolean;
|
|
1573
|
+
autoupdateimportant: boolean;
|
|
1574
|
+
};
|
|
1575
|
+
//#endregion
|
|
1576
|
+
//#region src/services/SYNO/Core/Package/index.d.ts
|
|
1577
|
+
declare class SYNO_Core_Package {
|
|
1578
|
+
private client;
|
|
1579
|
+
constructor(client: Client);
|
|
1580
|
+
list(params?: SYNO_Core_Package_list_Params): Promise<SYNO_Core_Package_list_Response>;
|
|
1581
|
+
feasibility_check(params: SYNO_Core_Package_feasibility_check_Params): Promise<void>;
|
|
1582
|
+
get Feed(): SYNO_Core_Package_Feed;
|
|
1583
|
+
get Installation(): SYNO_Core_Package_Installation;
|
|
1584
|
+
get Server(): SYNO_Core_Package_Server;
|
|
1585
|
+
get Setting(): SYNO_Core_Package_Setting;
|
|
1586
|
+
}
|
|
1587
|
+
type SYNO_Core_Package_list_Response = {
|
|
1588
|
+
packages: {
|
|
1589
|
+
additional?: {
|
|
1590
|
+
status_sketch?: string;
|
|
1591
|
+
dsm_apps?: string;
|
|
1592
|
+
install_type?: string;
|
|
1593
|
+
};
|
|
1594
|
+
id: string;
|
|
1595
|
+
name: string;
|
|
1596
|
+
timestamp: number;
|
|
1597
|
+
version: string;
|
|
1598
|
+
}[];
|
|
1599
|
+
total: number;
|
|
1600
|
+
};
|
|
1601
|
+
type SYNO_Core_Package_list_Params = {
|
|
1602
|
+
additional?: ("status_sketch" | "dsm_apps" | "install_type")[];
|
|
1603
|
+
ignore_hidden?: boolean;
|
|
1604
|
+
};
|
|
1605
|
+
type SYNO_Core_Package_feasibility_check_Params = {
|
|
1606
|
+
type: "install_check";
|
|
1607
|
+
packages: string[];
|
|
1608
|
+
};
|
|
1609
|
+
//#endregion
|
|
1610
|
+
//#region src/services/SYNO/Core/PersonalSettings/index.d.ts
|
|
1611
|
+
declare class SYNO_Core_PersonalSettings {
|
|
1612
|
+
private client;
|
|
1613
|
+
constructor(client: Client);
|
|
1614
|
+
quota(params?: SYNO_Core_PersonalSettings_quota_Params): Promise<SYNO_Core_PersonalSettings_quota_Response>;
|
|
1615
|
+
}
|
|
1616
|
+
type SYNO_Core_PersonalSettings_quota_Response = {
|
|
1617
|
+
items: {
|
|
1618
|
+
children: {
|
|
1619
|
+
expanded: boolean;
|
|
1620
|
+
leaf: boolean;
|
|
1621
|
+
name: string;
|
|
1622
|
+
quota: string | number;
|
|
1623
|
+
share_quota: string | number;
|
|
1624
|
+
share_used: string | number;
|
|
1625
|
+
used: string | number;
|
|
1626
|
+
}[];
|
|
1627
|
+
expanded: boolean;
|
|
1628
|
+
leaf: boolean;
|
|
1629
|
+
name: string;
|
|
1630
|
+
quota: string | number;
|
|
1631
|
+
share_quota: string | number;
|
|
1632
|
+
share_used: string | number;
|
|
1633
|
+
used: string | number;
|
|
1634
|
+
}[];
|
|
1635
|
+
total: number;
|
|
1636
|
+
};
|
|
1637
|
+
type SYNO_Core_PersonalSettings_quota_Params = {
|
|
1638
|
+
start?: number;
|
|
1639
|
+
offset?: number;
|
|
1640
|
+
limit?: number;
|
|
1641
|
+
};
|
|
1642
|
+
//#endregion
|
|
1643
|
+
//#region src/services/SYNO/Core/Polling/Data/index.d.ts
|
|
1644
|
+
declare class SYNO_Core_Polling_Data {
|
|
1645
|
+
private client;
|
|
1646
|
+
constructor(client: Client);
|
|
1647
|
+
get(): Promise<SYNO_Core_Polling_Data_get_Response>;
|
|
1648
|
+
}
|
|
1649
|
+
type SYNO_Core_Polling_Data_get_Response = {
|
|
1650
|
+
diskList: unknown[];
|
|
1651
|
+
};
|
|
1652
|
+
//#endregion
|
|
1653
|
+
//#region src/services/SYNO/Core/Polling/index.d.ts
|
|
1654
|
+
declare class SYNO_Core_Polling {
|
|
1655
|
+
private client;
|
|
1656
|
+
constructor(client: Client);
|
|
1657
|
+
get Data(): SYNO_Core_Polling_Data;
|
|
1658
|
+
}
|
|
1659
|
+
//#endregion
|
|
1660
|
+
//#region src/services/SYNO/Core/Promotion/Info/index.d.ts
|
|
1661
|
+
declare class SYNO_Core_Promotion_Info {
|
|
1662
|
+
private client;
|
|
1663
|
+
constructor(client: Client);
|
|
1664
|
+
is_2FA_enabled(): Promise<number>;
|
|
1665
|
+
}
|
|
1666
|
+
//#endregion
|
|
1667
|
+
//#region src/services/SYNO/Core/Promotion/PreInstall/index.d.ts
|
|
1668
|
+
declare class SYNO_Core_Promotion_PreInstall {
|
|
1669
|
+
private client;
|
|
1670
|
+
constructor(client: Client);
|
|
1671
|
+
get_never_show(): Promise<SYNO_Core_Promotion_PreInstall_get_never_show_Response>;
|
|
1672
|
+
}
|
|
1673
|
+
type SYNO_Core_Promotion_PreInstall_get_never_show_Response = {
|
|
1674
|
+
never_show: string;
|
|
1675
|
+
};
|
|
1676
|
+
//#endregion
|
|
1677
|
+
//#region src/services/SYNO/Core/Promotion/index.d.ts
|
|
1678
|
+
declare class SYNO_Core_Promotion {
|
|
1679
|
+
private client;
|
|
1680
|
+
constructor(client: Client);
|
|
1681
|
+
get Info(): SYNO_Core_Promotion_Info;
|
|
1682
|
+
get PreInstall(): SYNO_Core_Promotion_PreInstall;
|
|
1683
|
+
}
|
|
1684
|
+
//#endregion
|
|
1685
|
+
//#region src/services/SYNO/Core/QuickConnect/Permission/index.d.ts
|
|
1686
|
+
declare class SYNO_Core_QuickConnect_Permission {
|
|
1687
|
+
private client;
|
|
1688
|
+
constructor(client: Client);
|
|
1689
|
+
get(): Promise<SYNO_Core_QuickConnect_Permission_get_Response>;
|
|
1690
|
+
}
|
|
1691
|
+
type SYNO_Core_QuickConnect_Permission_get_Response = {
|
|
1692
|
+
services: {
|
|
1693
|
+
enabled: boolean;
|
|
1694
|
+
id: string;
|
|
1695
|
+
}[];
|
|
1696
|
+
};
|
|
1697
|
+
//#endregion
|
|
1698
|
+
//#region src/services/SYNO/Core/QuickConnect/index.d.ts
|
|
1699
|
+
declare class SYNO_Core_QuickConnect {
|
|
1700
|
+
private client;
|
|
1701
|
+
constructor(client: Client);
|
|
1702
|
+
check_availability(): Promise<SYNO_Core_QuickConnect_check_availability_Response>;
|
|
1703
|
+
get(): Promise<SYNO_Core_QuickConnect_get_Response>;
|
|
1704
|
+
status(): Promise<SYNO_Core_QuickConnect_status_Response>;
|
|
1705
|
+
get Permission(): SYNO_Core_QuickConnect_Permission;
|
|
1706
|
+
}
|
|
1707
|
+
type SYNO_Core_QuickConnect_check_availability_Response = {
|
|
1708
|
+
available: boolean;
|
|
1709
|
+
code: number;
|
|
1710
|
+
country: string;
|
|
1711
|
+
};
|
|
1712
|
+
type SYNO_Core_QuickConnect_get_Response = {
|
|
1713
|
+
ddns_domain: string;
|
|
1714
|
+
domain: string;
|
|
1715
|
+
enabled: boolean;
|
|
1716
|
+
myds_account: string;
|
|
1717
|
+
region: string;
|
|
1718
|
+
server_alias: string;
|
|
1719
|
+
server_id: string;
|
|
1720
|
+
};
|
|
1721
|
+
type SYNO_Core_QuickConnect_status_Response = {
|
|
1722
|
+
alias_status: string;
|
|
1723
|
+
status: string;
|
|
1724
|
+
};
|
|
1725
|
+
//#endregion
|
|
1726
|
+
//#region src/services/SYNO/Core/QuickStart/Info/index.d.ts
|
|
1727
|
+
declare class SYNO_Core_QuickStart_Info {
|
|
1728
|
+
private client;
|
|
1729
|
+
constructor(client: Client);
|
|
1730
|
+
load_ds_info(): Promise<SYNO_Core_QuickStart_Info_load_ds_info_Response>;
|
|
1731
|
+
}
|
|
1732
|
+
type SYNO_Core_QuickStart_Info_load_ds_info_Response = {
|
|
1733
|
+
admin_configured: boolean;
|
|
1734
|
+
ew20_website_url: string;
|
|
1735
|
+
first_admin_login: boolean;
|
|
1736
|
+
privacy_agreement: string;
|
|
1737
|
+
promote_ew: boolean;
|
|
1738
|
+
udc_check_state: string;
|
|
1739
|
+
udc_enabled: string;
|
|
1740
|
+
welcome_hide: boolean;
|
|
1741
|
+
welcome_upgrade_step: boolean;
|
|
1742
|
+
};
|
|
1743
|
+
//#endregion
|
|
1744
|
+
//#region src/services/SYNO/Core/QuickStart/index.d.ts
|
|
1745
|
+
declare class SYNO_Core_QuickStart {
|
|
1746
|
+
private client;
|
|
1747
|
+
constructor(client: Client);
|
|
1748
|
+
get Info(): SYNO_Core_QuickStart_Info;
|
|
1749
|
+
}
|
|
1750
|
+
//#endregion
|
|
1751
|
+
//#region src/services/SYNO/Core/Security/AutoBlock/index.d.ts
|
|
1752
|
+
declare class SYNO_Core_Security_AutoBlock {
|
|
1753
|
+
private client;
|
|
1754
|
+
constructor(client: Client);
|
|
1755
|
+
get(): Promise<SYNO_Core_Security_AutoBlock_get_Response>;
|
|
1756
|
+
}
|
|
1757
|
+
type SYNO_Core_Security_AutoBlock_get_Response = {
|
|
1758
|
+
attempts: number;
|
|
1759
|
+
enable: boolean;
|
|
1760
|
+
expire_day: number;
|
|
1761
|
+
within_mins: number;
|
|
1762
|
+
};
|
|
1763
|
+
//#endregion
|
|
1764
|
+
//#region src/services/SYNO/Core/Security/DoS/index.d.ts
|
|
1765
|
+
declare class SYNO_Core_Security_DoS {
|
|
1766
|
+
private client;
|
|
1767
|
+
constructor(client: Client);
|
|
1768
|
+
get(params?: SYNO_Core_Security_DoS_get_Params): Promise<SYNO_Core_Security_DoS_get_Response>;
|
|
1769
|
+
}
|
|
1770
|
+
type SYNO_Core_Security_DoS_get_Response = {
|
|
1771
|
+
adapter: string;
|
|
1772
|
+
dos_protect_enable: boolean;
|
|
1773
|
+
}[];
|
|
1774
|
+
type SYNO_Core_Security_DoS_get_Params = {
|
|
1775
|
+
configs?: {
|
|
1776
|
+
adapter: string;
|
|
1777
|
+
}[];
|
|
1778
|
+
};
|
|
1779
|
+
//#endregion
|
|
1780
|
+
//#region src/services/SYNO/Core/Security/DSM/Embed/index.d.ts
|
|
1781
|
+
declare class SYNO_Core_Security_DSM_Embed {
|
|
1782
|
+
private client;
|
|
1783
|
+
constructor(client: Client);
|
|
1784
|
+
get(): Promise<SYNO_Core_Security_DSM_Embed_get_Response>;
|
|
1785
|
+
}
|
|
1786
|
+
type SYNO_Core_Security_DSM_Embed_get_Response = {
|
|
1787
|
+
enable_block: boolean;
|
|
1788
|
+
whitelist: string[];
|
|
1789
|
+
};
|
|
1790
|
+
//#endregion
|
|
1791
|
+
//#region src/services/SYNO/Core/Security/DSM/index.d.ts
|
|
1792
|
+
declare class SYNO_Core_Security_DSM {
|
|
1793
|
+
private client;
|
|
1794
|
+
constructor(client: Client);
|
|
1795
|
+
get(): Promise<SYNO_Core_Security_DSM_get_Response>;
|
|
1796
|
+
get Embed(): SYNO_Core_Security_DSM_Embed;
|
|
1797
|
+
}
|
|
1798
|
+
type SYNO_Core_Security_DSM_get_Response = {
|
|
1799
|
+
allow_2fa_device_lost_option: boolean;
|
|
1800
|
+
allow_stay_signed_in_option: boolean;
|
|
1801
|
+
allow_trust_device_2fa_option: boolean;
|
|
1802
|
+
csp_header_option: boolean;
|
|
1803
|
+
enable_csrf_protection: boolean;
|
|
1804
|
+
restart_clean_session: boolean;
|
|
1805
|
+
skip_ip_checking: boolean;
|
|
1806
|
+
timeout: number;
|
|
1807
|
+
};
|
|
1808
|
+
//#endregion
|
|
1809
|
+
//#region src/services/SYNO/Core/Security/Firewall/Conf/index.d.ts
|
|
1810
|
+
declare class SYNO_Core_Security_Firewall_Conf {
|
|
1811
|
+
private client;
|
|
1812
|
+
constructor(client: Client);
|
|
1813
|
+
get(): Promise<SYNO_Core_Security_Firewall_Conf_get_Response>;
|
|
1814
|
+
}
|
|
1815
|
+
type SYNO_Core_Security_Firewall_Conf_get_Response = {
|
|
1816
|
+
enable_port_check: boolean;
|
|
1817
|
+
};
|
|
1818
|
+
//#endregion
|
|
1819
|
+
//#region src/services/SYNO/Core/Security/Firewall/Profile/index.d.ts
|
|
1820
|
+
declare class SYNO_Core_Security_Firewall_Profile {
|
|
1821
|
+
private client;
|
|
1822
|
+
constructor(client: Client);
|
|
1823
|
+
list(): Promise<SYNO_Core_Security_Firewall_Profile_list_Response>;
|
|
1824
|
+
}
|
|
1825
|
+
type SYNO_Core_Security_Firewall_Profile_list_Response = {
|
|
1826
|
+
profile_names: string[];
|
|
1827
|
+
};
|
|
1828
|
+
//#endregion
|
|
1829
|
+
//#region src/services/SYNO/Core/Security/Firewall/index.d.ts
|
|
1830
|
+
declare class SYNO_Core_Security_Firewall {
|
|
1831
|
+
private client;
|
|
1832
|
+
constructor(client: Client);
|
|
1833
|
+
get(): Promise<SYNO_Core_Security_Firewall_get_Response>;
|
|
1834
|
+
get Conf(): SYNO_Core_Security_Firewall_Conf;
|
|
1835
|
+
get Profile(): SYNO_Core_Security_Firewall_Profile;
|
|
1836
|
+
}
|
|
1837
|
+
type SYNO_Core_Security_Firewall_get_Response = {
|
|
1838
|
+
enable_firewall: boolean;
|
|
1839
|
+
profile_name: string;
|
|
1840
|
+
};
|
|
1841
|
+
//#endregion
|
|
1842
|
+
//#region src/services/SYNO/Core/Security/index.d.ts
|
|
1843
|
+
declare class SYNO_Core_Security {
|
|
1844
|
+
private client;
|
|
1845
|
+
constructor(client: Client);
|
|
1846
|
+
get AutoBlock(): SYNO_Core_Security_AutoBlock;
|
|
1847
|
+
get DoS(): SYNO_Core_Security_DoS;
|
|
1848
|
+
get DSM(): SYNO_Core_Security_DSM;
|
|
1849
|
+
get Firewall(): SYNO_Core_Security_Firewall;
|
|
1850
|
+
}
|
|
1851
|
+
//#endregion
|
|
1852
|
+
//#region src/services/SYNO/Core/SecurityScan/Conf/index.d.ts
|
|
1853
|
+
declare class SYNO_Core_SecurityScan_Conf {
|
|
1854
|
+
private client;
|
|
1855
|
+
constructor(client: Client);
|
|
1856
|
+
time_get(): Promise<SYNO_Core_SecurityScan_Conf_time_get_Response>;
|
|
1857
|
+
first_get(): Promise<SYNO_Core_SecurityScan_Conf_first_get_Response>;
|
|
1858
|
+
}
|
|
1859
|
+
type SYNO_Core_SecurityScan_Conf_time_get_Response = {
|
|
1860
|
+
curTime: number;
|
|
1861
|
+
success: boolean;
|
|
1862
|
+
};
|
|
1863
|
+
type SYNO_Core_SecurityScan_Conf_first_get_Response = {
|
|
1864
|
+
firstLogAnalyzer: boolean;
|
|
1865
|
+
firstScan: boolean;
|
|
1866
|
+
iscrack: boolean;
|
|
1867
|
+
success: boolean;
|
|
1868
|
+
};
|
|
1869
|
+
//#endregion
|
|
1870
|
+
//#region src/services/SYNO/Core/SecurityScan/Operation/index.d.ts
|
|
1871
|
+
declare class SYNO_Core_SecurityScan_Operation {
|
|
1872
|
+
private client;
|
|
1873
|
+
constructor(client: Client);
|
|
1874
|
+
update(): Promise<SYNO_Core_SecurityScan_Operation_update_Response>;
|
|
1875
|
+
start(params: SYNO_Core_SecurityScan_Operation_start_Params): Promise<SYNO_Core_SecurityScan_Operation_start_Response>;
|
|
1876
|
+
}
|
|
1877
|
+
type SYNO_Core_SecurityScan_Operation_update_Response = {
|
|
1878
|
+
lang: {
|
|
1879
|
+
rule: Record<string, string>;
|
|
1880
|
+
rules: Record<string, string>;
|
|
1881
|
+
};
|
|
1882
|
+
success: boolean;
|
|
1883
|
+
};
|
|
1884
|
+
type SYNO_Core_SecurityScan_Operation_start_Response = {
|
|
1885
|
+
success: boolean;
|
|
1886
|
+
};
|
|
1887
|
+
type SYNO_Core_SecurityScan_Operation_start_Params = {
|
|
1888
|
+
items: "ALL";
|
|
1889
|
+
};
|
|
1890
|
+
//#endregion
|
|
1891
|
+
//#region src/services/SYNO/Core/SecurityScan/Status/index.d.ts
|
|
1892
|
+
declare class SYNO_Core_SecurityScan_Status {
|
|
1893
|
+
private client;
|
|
1894
|
+
constructor(client: Client);
|
|
1895
|
+
rule_get(params: SYNO_Core_SecurityScan_Status_rule_get_Params): Promise<SYNO_Core_SecurityScan_Status_rule_get_Response>;
|
|
1896
|
+
system_get(): Promise<SYNO_Core_SecurityScan_Status_system_get_Response>;
|
|
1897
|
+
}
|
|
1898
|
+
type SYNO_Core_SecurityScan_Status_rule_get_Response = {
|
|
1899
|
+
isUpdating: boolean;
|
|
1900
|
+
items: Record<string, {
|
|
1901
|
+
action: string;
|
|
1902
|
+
category: string;
|
|
1903
|
+
id: string;
|
|
1904
|
+
method: string;
|
|
1905
|
+
severity: string;
|
|
1906
|
+
status: string;
|
|
1907
|
+
strId: string;
|
|
1908
|
+
update: string;
|
|
1909
|
+
}>;
|
|
1910
|
+
success: boolean;
|
|
1911
|
+
};
|
|
1912
|
+
type SYNO_Core_SecurityScan_Status_rule_get_Params = {
|
|
1913
|
+
items: "ALL";
|
|
1914
|
+
};
|
|
1915
|
+
type SYNO_Core_SecurityScan_Status_system_get_Response = {
|
|
1916
|
+
items: {
|
|
1917
|
+
malware: {
|
|
1918
|
+
category: string;
|
|
1919
|
+
fail: {
|
|
1920
|
+
danger: number;
|
|
1921
|
+
info: number;
|
|
1922
|
+
outOfDate: number;
|
|
1923
|
+
risk: number;
|
|
1924
|
+
warning: number;
|
|
1925
|
+
};
|
|
1926
|
+
failSeverity: string;
|
|
1927
|
+
progress: number;
|
|
1928
|
+
runningItem: string;
|
|
1929
|
+
total: number;
|
|
1930
|
+
waitNum: number;
|
|
1931
|
+
};
|
|
1932
|
+
network: {
|
|
1933
|
+
category: string;
|
|
1934
|
+
fail: {
|
|
1935
|
+
danger: number;
|
|
1936
|
+
info: number;
|
|
1937
|
+
outOfDate: number;
|
|
1938
|
+
risk: number;
|
|
1939
|
+
warning: number;
|
|
1940
|
+
};
|
|
1941
|
+
failSeverity: string;
|
|
1942
|
+
progress: number;
|
|
1943
|
+
runningItem: string;
|
|
1944
|
+
total: number;
|
|
1945
|
+
waitNum: number;
|
|
1946
|
+
};
|
|
1947
|
+
systemCheck: {
|
|
1948
|
+
category: string;
|
|
1949
|
+
fail: {
|
|
1950
|
+
danger: number;
|
|
1951
|
+
info: number;
|
|
1952
|
+
outOfDate: number;
|
|
1953
|
+
risk: number;
|
|
1954
|
+
warning: number;
|
|
1955
|
+
};
|
|
1956
|
+
failSeverity: string;
|
|
1957
|
+
progress: number;
|
|
1958
|
+
runningItem: string;
|
|
1959
|
+
total: number;
|
|
1960
|
+
waitNum: number;
|
|
1961
|
+
};
|
|
1962
|
+
update: {
|
|
1963
|
+
category: string;
|
|
1964
|
+
fail: {
|
|
1965
|
+
danger: number;
|
|
1966
|
+
info: number;
|
|
1967
|
+
outOfDate: number;
|
|
1968
|
+
risk: number;
|
|
1969
|
+
warning: number;
|
|
1970
|
+
};
|
|
1971
|
+
failSeverity: string;
|
|
1972
|
+
progress: number;
|
|
1973
|
+
runningItem: string;
|
|
1974
|
+
total: number;
|
|
1975
|
+
waitNum: number;
|
|
1976
|
+
};
|
|
1977
|
+
userInfo: {
|
|
1978
|
+
category: string;
|
|
1979
|
+
fail: {
|
|
1980
|
+
danger: number;
|
|
1981
|
+
info: number;
|
|
1982
|
+
outOfDate: number;
|
|
1983
|
+
risk: number;
|
|
1984
|
+
warning: number;
|
|
1985
|
+
};
|
|
1986
|
+
failSeverity: string;
|
|
1987
|
+
progress: number;
|
|
1988
|
+
runningItem: string;
|
|
1989
|
+
total: number;
|
|
1990
|
+
waitNum: number;
|
|
1991
|
+
};
|
|
1992
|
+
};
|
|
1993
|
+
lastScanTime: string;
|
|
1994
|
+
startTime: string;
|
|
1995
|
+
success: boolean;
|
|
1996
|
+
sysProgress: number;
|
|
1997
|
+
sysStatus: string;
|
|
1998
|
+
};
|
|
1999
|
+
//#endregion
|
|
2000
|
+
//#region src/services/SYNO/Core/SecurityScan/index.d.ts
|
|
2001
|
+
declare class SYNO_Core_SecurityScan {
|
|
2002
|
+
private client;
|
|
2003
|
+
constructor(client: Client);
|
|
2004
|
+
get Conf(): SYNO_Core_SecurityScan_Conf;
|
|
2005
|
+
get Operation(): SYNO_Core_SecurityScan_Operation;
|
|
2006
|
+
get Status(): SYNO_Core_SecurityScan_Status;
|
|
2007
|
+
}
|
|
2008
|
+
//#endregion
|
|
2009
|
+
//#region src/services/SYNO/Core/SNMP/index.d.ts
|
|
2010
|
+
declare class SYNO_Core_SNMP {
|
|
2011
|
+
private client;
|
|
2012
|
+
constructor(client: Client);
|
|
2013
|
+
get(): Promise<SYNO_Core_SNMP_get_Response>;
|
|
2014
|
+
set(params: SYNO_Core_SNMP_set_Params): Promise<void>;
|
|
2015
|
+
}
|
|
2016
|
+
type SYNO_Core_SNMP_get_Response = {
|
|
2017
|
+
contact: string;
|
|
2018
|
+
enable_snmp: boolean;
|
|
2019
|
+
enable_snmp_v1v2: boolean;
|
|
2020
|
+
enable_snmp_v3: boolean;
|
|
2021
|
+
location: string;
|
|
2022
|
+
name: string;
|
|
2023
|
+
node0_name: string;
|
|
2024
|
+
node1_name: string;
|
|
2025
|
+
rocommunity: string;
|
|
2026
|
+
rouser: string;
|
|
2027
|
+
};
|
|
2028
|
+
type SYNO_Core_SNMP_set_Params = {
|
|
2029
|
+
enable_snmp: false;
|
|
2030
|
+
} | {
|
|
2031
|
+
enable_snmp: true;
|
|
2032
|
+
enable_snmp_v1v2: true;
|
|
2033
|
+
enable_snmp_v3: false;
|
|
2034
|
+
rocommunity: string;
|
|
2035
|
+
name?: string;
|
|
2036
|
+
location?: string;
|
|
2037
|
+
contact?: string;
|
|
2038
|
+
} | {
|
|
2039
|
+
enable_snmp: true;
|
|
2040
|
+
enable_snmp_v1v2: false;
|
|
2041
|
+
enable_snmp_v3: true;
|
|
2042
|
+
enable_privacy?: false;
|
|
2043
|
+
rouser: string;
|
|
2044
|
+
auth_type: "MD5" | "SHA";
|
|
2045
|
+
password: string;
|
|
2046
|
+
name?: string;
|
|
2047
|
+
location?: string;
|
|
2048
|
+
contact?: string;
|
|
2049
|
+
} | {
|
|
2050
|
+
enable_snmp: true;
|
|
2051
|
+
enable_snmp_v1v2: false;
|
|
2052
|
+
enable_snmp_v3: true;
|
|
2053
|
+
enable_snmp_privacy: true;
|
|
2054
|
+
rouser: string;
|
|
2055
|
+
auth_type: "MD5" | "SHA";
|
|
2056
|
+
password: string;
|
|
2057
|
+
privacy_type: "DES" | "AES";
|
|
2058
|
+
privacy_key: string;
|
|
2059
|
+
name?: string;
|
|
2060
|
+
location?: string;
|
|
2061
|
+
contact?: string;
|
|
2062
|
+
} | {
|
|
2063
|
+
enable_snmp: true;
|
|
2064
|
+
enable_snmp_v1v2: true;
|
|
2065
|
+
enable_snmp_v3: true;
|
|
2066
|
+
enable_privacy?: false;
|
|
2067
|
+
rocommunity: string;
|
|
2068
|
+
rouser: string;
|
|
2069
|
+
auth_type: "MD5" | "SHA";
|
|
2070
|
+
password: string;
|
|
2071
|
+
name?: string;
|
|
2072
|
+
location?: string;
|
|
2073
|
+
contact?: string;
|
|
2074
|
+
} | {
|
|
2075
|
+
enable_snmp: true;
|
|
2076
|
+
enable_snmp_v1v2: true;
|
|
2077
|
+
enable_snmp_v3: true;
|
|
2078
|
+
enable_privacy: true;
|
|
2079
|
+
rocommunity: string;
|
|
2080
|
+
rouser: string;
|
|
2081
|
+
auth_type: "MD5" | "SHA";
|
|
2082
|
+
password: string;
|
|
2083
|
+
privacy_type: "DES" | "AES";
|
|
2084
|
+
privacy_key: string;
|
|
2085
|
+
name?: string;
|
|
2086
|
+
location?: string;
|
|
2087
|
+
contact?: string;
|
|
2088
|
+
};
|
|
2089
|
+
//#endregion
|
|
2090
|
+
//#region src/services/SYNO/Core/index.d.ts
|
|
2091
|
+
declare class SYNO_Core {
|
|
2092
|
+
private client;
|
|
2093
|
+
constructor(client: Client);
|
|
2094
|
+
get AppNotify(): SYNO_Core_AppNotify;
|
|
2095
|
+
get AppPortal(): SYNO_Core_AppPortal;
|
|
2096
|
+
get BackgroundTask(): SYNO_Core_BackgroundTask;
|
|
2097
|
+
get Certificate(): SYNO_Core_Certificate;
|
|
2098
|
+
get CMS(): SYNO_Core_CMS;
|
|
2099
|
+
get CurrentConnection(): SYNO_Core_CurrentConnection;
|
|
2100
|
+
get DataCollect(): SYNO_Core_DataCollect;
|
|
2101
|
+
get DDNS(): SYNO_Core_DDNS;
|
|
2102
|
+
get Desktop(): SYNO_Core_Desktop;
|
|
2103
|
+
get DisableAdmin(): SYNO_Core_DisableAdmin;
|
|
2104
|
+
get DSMNotify(): SYNO_Core_DSMNotify;
|
|
2105
|
+
get EW(): SYNO_Core_EW;
|
|
2106
|
+
get ExternalDevice(): SYNO_Core_ExternalDevice;
|
|
2107
|
+
get FileServ(): SYNO_Core_FileServ;
|
|
2108
|
+
get Hardware(): SYNO_Core_Hardware;
|
|
2109
|
+
get MyDSCenter(): SYNO_Core_MyDSCenter;
|
|
2110
|
+
get Network(): SYNO_Core_Network;
|
|
2111
|
+
get NormalUser(): SYNO_Core_NormalUser;
|
|
2112
|
+
get Notification(): SYNO_Core_Notification;
|
|
2113
|
+
get OTP(): SYNO_Core_OTP;
|
|
2114
|
+
get Package(): SYNO_Core_Package;
|
|
2115
|
+
get PersonalSettings(): SYNO_Core_PersonalSettings;
|
|
2116
|
+
get Polling(): SYNO_Core_Polling;
|
|
2117
|
+
get Promotion(): SYNO_Core_Promotion;
|
|
2118
|
+
get QuickConnect(): SYNO_Core_QuickConnect;
|
|
2119
|
+
get QuickStart(): SYNO_Core_QuickStart;
|
|
2120
|
+
get Security(): SYNO_Core_Security;
|
|
2121
|
+
get SecurityScan(): SYNO_Core_SecurityScan;
|
|
2122
|
+
get SNMP(): SYNO_Core_SNMP;
|
|
2123
|
+
}
|
|
2124
|
+
//#endregion
|
|
2125
|
+
//#region src/services/SYNO/Entry/Request/index.d.ts
|
|
2126
|
+
declare class SYNO_Entry_Request {
|
|
2127
|
+
private client;
|
|
2128
|
+
constructor(client: Client);
|
|
2129
|
+
request(params: SYNO_Entry_Request_request_Params): Promise<unknown>;
|
|
2130
|
+
}
|
|
2131
|
+
type SYNO_Entry_Request_request_Params = {
|
|
2132
|
+
stop_when_error: boolean;
|
|
2133
|
+
mode: "sequential";
|
|
2134
|
+
compound: ({
|
|
2135
|
+
api: string;
|
|
2136
|
+
method: string;
|
|
2137
|
+
version: number;
|
|
2138
|
+
} & Record<string, string | number | boolean>)[];
|
|
2139
|
+
};
|
|
2140
|
+
//#endregion
|
|
2141
|
+
//#region src/services/SYNO/Entry/index.d.ts
|
|
2142
|
+
declare class SYNO_Entry {
|
|
2143
|
+
private client;
|
|
2144
|
+
constructor(client: Client);
|
|
2145
|
+
get Request(): SYNO_Entry_Request;
|
|
2146
|
+
}
|
|
2147
|
+
//#endregion
|
|
2148
|
+
//#region src/services/SYNO/FileStation/Favorite/index.d.ts
|
|
2149
|
+
declare class SYNO_FileStation_Favorite {
|
|
2150
|
+
private client;
|
|
2151
|
+
constructor(client: Client);
|
|
2152
|
+
list(params?: SYNO_FileStation_Favorite_list_Params): Promise<SYNO_FileStation_Favorite_list_Response>;
|
|
2153
|
+
}
|
|
2154
|
+
type SYNO_FileStation_Favorite_list_Response = {
|
|
2155
|
+
favorites: {
|
|
2156
|
+
path: string;
|
|
2157
|
+
name: string;
|
|
2158
|
+
status: "valid" | "broken";
|
|
2159
|
+
}[];
|
|
2160
|
+
offset: number;
|
|
2161
|
+
total: number;
|
|
2162
|
+
};
|
|
2163
|
+
type SYNO_FileStation_Favorite_list_Params = {
|
|
2164
|
+
filetype?: "dir";
|
|
2165
|
+
sort_by?: "name";
|
|
2166
|
+
check_dir?: boolean;
|
|
2167
|
+
additional?: ("real_path" | "owner" | "time" | "perm" | "mount_point_type" | "sync_share" | "volume_status" | "indexed" | "hybrid_share" | "worm_share" | "tiering_xattr")[];
|
|
2168
|
+
enum_cluster?: boolean;
|
|
2169
|
+
node?: string;
|
|
2170
|
+
};
|
|
2171
|
+
//#endregion
|
|
2172
|
+
//#region src/services/SYNO/FileStation/Info/index.d.ts
|
|
2173
|
+
declare class SYNO_FileStation_Info {
|
|
2174
|
+
private client;
|
|
2175
|
+
constructor(client: Client);
|
|
2176
|
+
get(): Promise<SYNO_FileStation_Info_get_Response>;
|
|
2177
|
+
}
|
|
2178
|
+
type SYNO_FileStation_Info_get_Response = {
|
|
2179
|
+
allow_heic_original: boolean;
|
|
2180
|
+
allow_normal_disable_html: boolean;
|
|
2181
|
+
enable_list_usergrp: boolean;
|
|
2182
|
+
enable_send_email_attachment: boolean;
|
|
2183
|
+
enable_view_google: boolean;
|
|
2184
|
+
enable_view_microsoft: boolean;
|
|
2185
|
+
hostname: string;
|
|
2186
|
+
is_manager: boolean;
|
|
2187
|
+
items: {
|
|
2188
|
+
gid: number;
|
|
2189
|
+
}[];
|
|
2190
|
+
support_file_request: boolean;
|
|
2191
|
+
support_sharing: boolean;
|
|
2192
|
+
support_vfs: boolean;
|
|
2193
|
+
support_virtual: {
|
|
2194
|
+
enable_iso_mount: boolean;
|
|
2195
|
+
enable_remote_mount: boolean;
|
|
2196
|
+
};
|
|
2197
|
+
support_virtual_protocol: string;
|
|
2198
|
+
system_codepage: string;
|
|
2199
|
+
uid: number;
|
|
2200
|
+
};
|
|
2201
|
+
//#endregion
|
|
2202
|
+
//#region src/services/SYNO/FileStation/List/index.d.ts
|
|
2203
|
+
declare class SYNO_FileStation_List {
|
|
2204
|
+
private client;
|
|
2205
|
+
constructor(client: Client);
|
|
2206
|
+
list_share(params?: SYNO_FileStation_List_list_share_Params): Promise<SYNO_FileStation_List_list_share_Response>;
|
|
2207
|
+
}
|
|
2208
|
+
type SYNO_FileStation_List_list_share_Response = {
|
|
2209
|
+
offset: number;
|
|
2210
|
+
shares: {
|
|
2211
|
+
isdir: boolean;
|
|
2212
|
+
name: string;
|
|
2213
|
+
path: string;
|
|
2214
|
+
}[];
|
|
2215
|
+
total: number;
|
|
2216
|
+
};
|
|
2217
|
+
type SYNO_FileStation_List_list_share_Params = {
|
|
2218
|
+
filetype?: "dir";
|
|
2219
|
+
sort_by?: "name";
|
|
2220
|
+
check_dir?: boolean;
|
|
2221
|
+
additional: ("real_path" | "owner" | "time" | "perm" | "mount_point_type" | "sync_share" | "volume_status" | "indexed" | "hybrid_share" | "worm_share" | "tiering_xattr")[];
|
|
2222
|
+
enum_cluster?: boolean;
|
|
2223
|
+
node?: string;
|
|
2224
|
+
};
|
|
2225
|
+
//#endregion
|
|
2226
|
+
//#region src/services/SYNO/FileStation/Mount/List/index.d.ts
|
|
2227
|
+
declare class SYNO_FileStation_Mount_List {
|
|
2228
|
+
private client;
|
|
2229
|
+
constructor(client: Client);
|
|
2230
|
+
get(): Promise<SYNO_FileStation_Mount_List_get_Response>;
|
|
2231
|
+
}
|
|
2232
|
+
type SYNO_FileStation_Mount_List_get_Response = {
|
|
2233
|
+
isoList: unknown[];
|
|
2234
|
+
mountConfig: {
|
|
2235
|
+
enable_iso_mount: boolean;
|
|
2236
|
+
enable_remote_mount: boolean;
|
|
2237
|
+
};
|
|
2238
|
+
remoteList: unknown[];
|
|
2239
|
+
};
|
|
2240
|
+
//#endregion
|
|
2241
|
+
//#region src/services/SYNO/FileStation/Mount/index.d.ts
|
|
2242
|
+
declare class SYNO_FileStation_Mount {
|
|
2243
|
+
private client;
|
|
2244
|
+
constructor(client: Client);
|
|
2245
|
+
get List(): SYNO_FileStation_Mount_List;
|
|
2246
|
+
}
|
|
2247
|
+
//#endregion
|
|
2248
|
+
//#region src/services/SYNO/FileStation/index.d.ts
|
|
2249
|
+
declare class SYNO_FileStation {
|
|
2250
|
+
private client;
|
|
2251
|
+
constructor(client: Client);
|
|
2252
|
+
get Favorite(): SYNO_FileStation_Favorite;
|
|
2253
|
+
get Info(): SYNO_FileStation_Info;
|
|
2254
|
+
get List(): SYNO_FileStation_List;
|
|
2255
|
+
get Mount(): SYNO_FileStation_Mount;
|
|
2256
|
+
}
|
|
2257
|
+
//#endregion
|
|
2258
|
+
//#region src/services/SYNO/Finder/Bookmark/index.d.ts
|
|
2259
|
+
declare class SYNO_Finder_Bookmark {
|
|
2260
|
+
private client;
|
|
2261
|
+
constructor(client: Client);
|
|
2262
|
+
get(): Promise<SYNO_Finder_Bookmark_get_Response>;
|
|
2263
|
+
}
|
|
2264
|
+
type SYNO_Finder_Bookmark_get_Response = {
|
|
2265
|
+
bookmarks: unknown[];
|
|
2266
|
+
total: number;
|
|
2267
|
+
};
|
|
2268
|
+
//#endregion
|
|
2269
|
+
//#region src/services/SYNO/Finder/FileIndexing/Folder/index.d.ts
|
|
2270
|
+
declare class SYNO_Finder_FileIndexing_Folder {
|
|
2271
|
+
private client;
|
|
2272
|
+
constructor(client: Client);
|
|
2273
|
+
list(params?: SYNO_Finder_FileIndexing_Folder_list_Params): Promise<SYNO_Finder_FileIndexing_Folder_list_Response>;
|
|
2274
|
+
}
|
|
2275
|
+
type SYNO_Finder_FileIndexing_Folder_list_Response = {
|
|
2276
|
+
folder: unknown[];
|
|
2277
|
+
offset: number;
|
|
2278
|
+
total: number;
|
|
2279
|
+
};
|
|
2280
|
+
type SYNO_Finder_FileIndexing_Folder_list_Params = {
|
|
2281
|
+
direction?: "asc" | "desc";
|
|
2282
|
+
sort_by?: "path";
|
|
2283
|
+
offset?: number;
|
|
2284
|
+
additional?: unknown[];
|
|
2285
|
+
};
|
|
2286
|
+
//#endregion
|
|
2287
|
+
//#region src/services/SYNO/Finder/FileIndexing/index.d.ts
|
|
2288
|
+
declare class SYNO_Finder_FileIndexing {
|
|
2289
|
+
private client;
|
|
2290
|
+
constructor(client: Client);
|
|
2291
|
+
get Folder(): SYNO_Finder_FileIndexing_Folder;
|
|
2292
|
+
}
|
|
2293
|
+
//#endregion
|
|
2294
|
+
//#region src/services/SYNO/Finder/Preference/index.d.ts
|
|
2295
|
+
declare class SYNO_Finder_Preference {
|
|
2296
|
+
private client;
|
|
2297
|
+
constructor(client: Client);
|
|
2298
|
+
get(): Promise<SYNO_Finder_Preference_get_Response>;
|
|
2299
|
+
}
|
|
2300
|
+
type SYNO_Finder_Preference_get_Response = {
|
|
2301
|
+
enable_history: boolean;
|
|
2302
|
+
max_fragment_num: number;
|
|
2303
|
+
max_history_num: number;
|
|
2304
|
+
};
|
|
2305
|
+
//#endregion
|
|
2306
|
+
//#region src/services/SYNO/Finder/Settings/index.d.ts
|
|
2307
|
+
declare class SYNO_Finder_Settings {
|
|
2308
|
+
private client;
|
|
2309
|
+
constructor(client: Client);
|
|
2310
|
+
get(): Promise<SYNO_Finder_Settings_get_Response>;
|
|
2311
|
+
}
|
|
2312
|
+
type SYNO_Finder_Settings_get_Response = {
|
|
2313
|
+
db_reading_method: "fs_directory";
|
|
2314
|
+
display_vmtouch_option: boolean;
|
|
2315
|
+
enable_cppjieba_dict: boolean;
|
|
2316
|
+
enable_mlock: boolean;
|
|
2317
|
+
enable_preload_indices: boolean;
|
|
2318
|
+
enable_vmtouch: boolean;
|
|
2319
|
+
max_alive_db_count: number;
|
|
2320
|
+
max_search_hit_count: number;
|
|
2321
|
+
reader_alive_timeout: number;
|
|
2322
|
+
synotifyd_event_mask: number;
|
|
2323
|
+
vmtouch_reserve_mem: number;
|
|
2324
|
+
};
|
|
2325
|
+
//#endregion
|
|
2326
|
+
//#region src/services/SYNO/Finder/index.d.ts
|
|
2327
|
+
declare class SYNO_Finder {
|
|
2328
|
+
private client;
|
|
2329
|
+
constructor(client: Client);
|
|
2330
|
+
get Bookmark(): SYNO_Finder_Bookmark;
|
|
2331
|
+
get FileIndexing(): SYNO_Finder_FileIndexing;
|
|
2332
|
+
get Preference(): SYNO_Finder_Preference;
|
|
2333
|
+
get Settings(): SYNO_Finder_Settings;
|
|
2334
|
+
}
|
|
2335
|
+
//#endregion
|
|
2336
|
+
//#region src/services/SYNO/ResourceMonitor/Setting/index.d.ts
|
|
2337
|
+
declare class SYNO_ResourceMonitor_Setting {
|
|
2338
|
+
private client;
|
|
2339
|
+
constructor(client: Client);
|
|
2340
|
+
get(): Promise<SYNO_ResourceMonitor_Setting_get_Response>;
|
|
2341
|
+
set(params: SYNO_ResourceMonitor_Setting_set_Params): Promise<void>;
|
|
2342
|
+
}
|
|
2343
|
+
type SYNO_ResourceMonitor_Setting_get_Response = {
|
|
2344
|
+
enable_history: boolean;
|
|
2345
|
+
};
|
|
2346
|
+
type SYNO_ResourceMonitor_Setting_set_Params = {
|
|
2347
|
+
enable_history: boolean;
|
|
2348
|
+
};
|
|
2349
|
+
//#endregion
|
|
2350
|
+
//#region src/services/SYNO/ResourceMonitor/index.d.ts
|
|
2351
|
+
declare class SYNO_ResourceMonitor {
|
|
2352
|
+
private client;
|
|
2353
|
+
constructor(client: Client);
|
|
2354
|
+
get Setting(): SYNO_ResourceMonitor_Setting;
|
|
2355
|
+
}
|
|
2356
|
+
//#endregion
|
|
2357
|
+
//#region src/services/SYNO/SecureSignIn/AMFA/Policy/index.d.ts
|
|
2358
|
+
declare class SYNO_SecureSignIn_AMFA_Policy {
|
|
2359
|
+
private client;
|
|
2360
|
+
constructor(client: Client);
|
|
2361
|
+
get(): Promise<SYNO_SecureSignIn_AMFA_Policy_get_Response>;
|
|
2362
|
+
}
|
|
2363
|
+
type SYNO_SecureSignIn_AMFA_Policy_get_Response = {
|
|
2364
|
+
type: string;
|
|
2365
|
+
group_list: string;
|
|
2366
|
+
user_list: string;
|
|
2367
|
+
};
|
|
2368
|
+
//#endregion
|
|
2369
|
+
//#region src/services/SYNO/SecureSignIn/AMFA/index.d.ts
|
|
2370
|
+
declare class SYNO_SecureSignIn_AMFA {
|
|
2371
|
+
private client;
|
|
2372
|
+
constructor(client: Client);
|
|
2373
|
+
get Policy(): SYNO_SecureSignIn_AMFA_Policy;
|
|
2374
|
+
}
|
|
2375
|
+
//#endregion
|
|
2376
|
+
//#region src/services/SYNO/SecureSignIn/Method/index.d.ts
|
|
2377
|
+
declare class SYNO_SecureSignIn_Method {
|
|
2378
|
+
private client;
|
|
2379
|
+
constructor(client: Client);
|
|
2380
|
+
get(): Promise<SYNO_SecureSignIn_Method_get_Response>;
|
|
2381
|
+
}
|
|
2382
|
+
type SYNO_SecureSignIn_Method_get_Response = {
|
|
2383
|
+
auth_type: unknown[];
|
|
2384
|
+
mode: string;
|
|
2385
|
+
status: string;
|
|
2386
|
+
time: number;
|
|
2387
|
+
};
|
|
2388
|
+
//#endregion
|
|
2389
|
+
//#region src/services/SYNO/SecureSignIn/Package/index.d.ts
|
|
2390
|
+
declare class SYNO_SecureSignIn_Package {
|
|
2391
|
+
private client;
|
|
2392
|
+
constructor(client: Client);
|
|
2393
|
+
get(): Promise<SYNO_SecureSignIn_Package_get_Response>;
|
|
2394
|
+
}
|
|
2395
|
+
type SYNO_SecureSignIn_Package_get_Response = {
|
|
2396
|
+
account_status: boolean;
|
|
2397
|
+
enabled: boolean;
|
|
2398
|
+
};
|
|
2399
|
+
//#endregion
|
|
2400
|
+
//#region src/services/SYNO/SecureSignIn/index.d.ts
|
|
2401
|
+
declare class SYNO_SecureSignIn {
|
|
2402
|
+
private client;
|
|
2403
|
+
constructor(client: Client);
|
|
2404
|
+
get AMFA(): SYNO_SecureSignIn_AMFA;
|
|
2405
|
+
get Method(): SYNO_SecureSignIn_Method;
|
|
2406
|
+
get Package(): SYNO_SecureSignIn_Package;
|
|
2407
|
+
}
|
|
2408
|
+
//#endregion
|
|
2409
|
+
//#region src/services/SYNO/SecurityAdvisor/Conf/Location/index.d.ts
|
|
2410
|
+
declare class SYNO_SecurityAdvisor_Conf_Location {
|
|
2411
|
+
private client;
|
|
2412
|
+
constructor(client: Client);
|
|
2413
|
+
get(): Promise<unknown>;
|
|
2414
|
+
}
|
|
2415
|
+
//#endregion
|
|
2416
|
+
//#region src/services/SYNO/SecurityAdvisor/Conf/index.d.ts
|
|
2417
|
+
declare class SYNO_SecurityAdvisor_Conf {
|
|
2418
|
+
private client;
|
|
2419
|
+
constructor(client: Client);
|
|
2420
|
+
get Location(): SYNO_SecurityAdvisor_Conf_Location;
|
|
2421
|
+
}
|
|
2422
|
+
//#endregion
|
|
2423
|
+
//#region src/services/SYNO/SecurityAdvisor/index.d.ts
|
|
2424
|
+
declare class SYNO_SecurityAdvisor {
|
|
2425
|
+
private client;
|
|
2426
|
+
constructor(client: Client);
|
|
2427
|
+
get Conf(): SYNO_SecurityAdvisor_Conf;
|
|
2428
|
+
}
|
|
2429
|
+
//#endregion
|
|
2430
|
+
//#region src/services/SYNO/index.d.ts
|
|
2431
|
+
declare class SYNO {
|
|
2432
|
+
private client;
|
|
2433
|
+
constructor(client: Client);
|
|
2434
|
+
get API(): SYNO_API;
|
|
2435
|
+
get ActiveInsight(): SYNO_ActiveInsight;
|
|
2436
|
+
get Auth(): SYNO_Auth;
|
|
2437
|
+
get Backup(): SYNO_Backup;
|
|
2438
|
+
get CloudSync(): SYNO_CloudSync;
|
|
2439
|
+
get Core(): SYNO_Core;
|
|
2440
|
+
get Entry(): SYNO_Entry;
|
|
2441
|
+
get FileStation(): SYNO_FileStation;
|
|
2442
|
+
get Finder(): SYNO_Finder;
|
|
2443
|
+
get ResourceMonitor(): SYNO_ResourceMonitor;
|
|
2444
|
+
get SecureSignIn(): SYNO_SecureSignIn;
|
|
2445
|
+
get SecurityAdvisor(): SYNO_SecurityAdvisor;
|
|
2446
|
+
}
|
|
2447
|
+
//#endregion
|
|
2448
|
+
//#region src/types.d.ts
|
|
2449
|
+
type Options = ({
|
|
2450
|
+
quickconnect: string;
|
|
2451
|
+
} | {
|
|
2452
|
+
server: {
|
|
2453
|
+
scheme?: "http" | "https";
|
|
2454
|
+
host: string;
|
|
2455
|
+
port: number;
|
|
2456
|
+
};
|
|
2457
|
+
}) & {
|
|
2458
|
+
sid?: string;
|
|
2459
|
+
synoToken?: string;
|
|
2460
|
+
};
|
|
2461
|
+
//#endregion
|
|
2462
|
+
//#region src/api.d.ts
|
|
2463
|
+
declare class API {
|
|
2464
|
+
readonly client: Client;
|
|
2465
|
+
constructor(options: Options);
|
|
2466
|
+
get SYNO(): SYNO;
|
|
2467
|
+
}
|
|
2468
|
+
//#endregion
|
|
2469
|
+
export { API };
|