@lingxia/types 0.16.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/automation/index.d.ts +105 -35
- package/dist/automation/index.d.ts.map +1 -1
- package/dist/error.d.ts +19 -0
- package/dist/error.d.ts.map +1 -1
- package/dist/error.js +23 -1
- package/dist/error.js.map +1 -1
- package/dist/esm/error.js +21 -0
- package/dist/esm/error.js.map +1 -1
- package/dist/esm/generated/error.js +1 -0
- package/dist/esm/generated/error.js.map +1 -1
- package/dist/esm/generated/i18n.js +10 -1
- package/dist/esm/generated/i18n.js.map +1 -1
- package/dist/esm/testing/public-api.js +72 -46
- package/dist/esm/testing/public-api.js.map +1 -1
- package/dist/generated/error.d.ts +4 -0
- package/dist/generated/error.d.ts.map +1 -1
- package/dist/generated/error.js +1 -0
- package/dist/generated/error.js.map +1 -1
- package/dist/generated/i18n.d.ts +1 -1
- package/dist/generated/i18n.d.ts.map +1 -1
- package/dist/generated/i18n.js +10 -1
- package/dist/generated/i18n.js.map +1 -1
- package/dist/generated/logic-web.d.ts +24 -3
- package/dist/generated/logic.d.ts +739 -383
- package/dist/generated/logic.d.ts.map +1 -1
- package/dist/index.d.ts +7 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/process.d.ts +15 -4
- package/dist/process.d.ts.map +1 -1
- package/dist/testing/public-api.d.ts +70 -45
- package/dist/testing/public-api.d.ts.map +1 -1
- package/dist/testing/public-api.js +72 -46
- package/dist/testing/public-api.js.map +1 -1
- package/package.json +2 -2
- package/src/automation/index.ts +82 -34
- package/src/error.ts +23 -0
- package/src/generated/error.ts +1 -0
- package/src/generated/i18n.ts +10 -1
- package/src/generated/logic-web.d.ts +24 -3
- package/src/generated/logic.ts +795 -407
- package/src/index.ts +9 -6
- package/src/process.ts +14 -4
- package/src/testing/public-api.ts +80 -47
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { Automation, BrowserCookies, BrowserDriver, DesktopApp, DesktopAx, DesktopClipboard, DesktopDriver, DesktopKey, DesktopPointer, DesktopProcess, DesktopWait, DesktopWindowDriver, DeviceDriver, LxAppDriver, LxAppManager, NavDriver, PageDriver, PageKey, PagePointer, ShellDriver, TerminalDriver } from '../automation/index.js';
|
|
2
|
-
import type { AppearanceApi, AppCacheApi, AutostartApi, CompressVideoTask, ControlApi, ControlAppearanceApi, ControlDisplayLanguageApi, DisplayLanguageApi, DownloadTask, FileSystemApi, HostAppApi, HostAppUpdateInfo, HostAppUpdateTask, LxFile, NavigationBarApi, PageMessagePort, PreviewMediaHandle, TabSurface, PageSurface, ShellApi, Storage, SurfaceApi, TabBarApi, TerminalApi, TerminalColorSchemesApi, TerminalFontsApi, TerminalPreviewController, TerminalSettingsApi, TrayApi, UpdateManager, UploadTask, VideoContext } from '../generated/logic.js';
|
|
3
|
-
export declare const LX_API_NAMES: readonly ["
|
|
4
|
-
declare const HOST_APP_API: readonly ["appearance", "autostart", "cache", "checkUpdate", "control", "displayLanguage", "env", "exit", "getBaseInfo", "screenshot", "setBadge"];
|
|
2
|
+
import type { AppearanceApi, AppCacheApi, AutostartApi, BannerApi, CompressVideoTask, ControlApi, ControlAppearanceApi, ControlDisplayLanguageApi, DisplayLanguageApi, DownloadTask, ClipboardApi, FileSystemApi, HostAppApi, HostAppUpdateInfo, HostAppUpdateTask, LxFile, NavigationBarApi, NotificationApi, PageMessagePort, PreviewMediaHandle, TabSurface, PageSurface, ShellApi, Storage, SurfaceApi, TabBarApi, TerminalApi, TerminalColorSchemesApi, TerminalFontsApi, TerminalPreviewController, TerminalSettingsApi, TrayApi, UpdateManager, UploadTask, VideoContext } from '../generated/logic.js';
|
|
3
|
+
export declare const LX_API_NAMES: readonly ["host", "automation", "alert", "confirm", "pickFile", "pickFiles", "chooseDirectory", "chooseFile", "chooseMedia", "clipboard", "compressImage", "compressVideo", "connectWifi", "createVideoContext", "downloadFile", "env", "extractVideoThumbnail", "fs", "getConnectedWifi", "getDeviceInfo", "getImageInfo", "getLocation", "getLxAppInfo", "getNetworkInfo", "getScreenInfo", "getStorage", "getSystemSetting", "getUpdateManager", "getVideoInfo", "getWifiList", "hideToast", "makePhoneCall", "navigateBack", "navigateBackApp", "navigateTo", "navigateToApp", "navigationBar", "onDeviceOrientationChange", "onKeyDown", "onKeyUp", "onNetworkChange", "onWifiConnected", "openExternal", "openFile", "previewMedia", "reLaunch", "redirectTo", "saveImageToPhotosAlbum", "saveVideoToPhotosAlbum", "scanCode", "setDeviceOrientation", "setMoreActions", "share", "shell", "showActionSheet", "showModal", "showToast", "startPullDownRefresh", "startWifi", "stopPullDownRefresh", "stopWifi", "supports", "surface", "switchTab", "tabBar", "terminal", "tray", "uploadFile", "vibrateLong", "vibrateShort"];
|
|
4
|
+
declare const HOST_APP_API: readonly ["appearance", "autostart", "banner", "cache", "checkUpdate", "claimCustomUpdate", "control", "displayLanguage", "env", "exit", "getBaseInfo", "notification", "screenshot", "setBadge"];
|
|
5
5
|
declare const AUTOSTART_API: readonly ["isEnabled", "setEnabled"];
|
|
6
|
+
declare const BANNER_API: readonly ["dismiss", "show"];
|
|
7
|
+
declare const NOTIFICATION_API: readonly ["cancel", "cancelAll", "getPermission", "requestPermission", "show"];
|
|
6
8
|
declare const APP_CACHE_API: readonly ["clear", "size"];
|
|
7
9
|
declare const DISPLAY_LANGUAGE_API: readonly ["get", "watch"];
|
|
8
10
|
declare const CONTROL_API: readonly ["appearance", "displayLanguage"];
|
|
@@ -17,17 +19,18 @@ declare const TERMINAL_COLOR_SCHEMES_API: readonly ["createPreview", "import", "
|
|
|
17
19
|
declare const TERMINAL_FONTS_API: readonly ["list"];
|
|
18
20
|
declare const TERMINAL_PREVIEW_API: readonly ["clear", "close", "show"];
|
|
19
21
|
declare const ENV_API: readonly ["USER_CACHE_PATH", "USER_DATA_PATH"];
|
|
20
|
-
declare const SURFACE_NAMESPACE_API: readonly ["
|
|
22
|
+
declare const SURFACE_NAMESPACE_API: readonly ["getByKey", "watchContext", "openDeclared", "openPage", "openUrl"];
|
|
21
23
|
declare const SHELL_API: readonly ["openApp", "openBuiltin", "openDeclared", "reconfigure", "sidebarActions"];
|
|
22
24
|
declare const SHELL_SIDEBAR_ACTIONS_API: readonly ["clear", "remove", "replace", "update"];
|
|
23
|
-
declare const TRAY_API: readonly ["hide", "onClick", "
|
|
25
|
+
declare const TRAY_API: readonly ["hide", "onClick", "setIcon", "setMenu", "setTitle", "show"];
|
|
26
|
+
declare const CLIPBOARD_API: readonly ["clear", "read", "readText", "types", "write", "writeText"];
|
|
24
27
|
declare const FILE_SYSTEM_API: readonly ["copy", "exists", "file", "mkdir", "readDir", "remove", "rename", "stat", "write"];
|
|
25
28
|
declare const LX_FILE_API: readonly ["arrayBuffer", "base64", "bytes", "exists", "json", "path", "stat", "text"];
|
|
26
29
|
declare const STORAGE_API: readonly ["clear", "delete", "get", "has", "info", "list", "set"];
|
|
27
30
|
declare const UPDATE_MANAGER_API: readonly ["applyUpdate", "onUpdateFailed", "onUpdateReady"];
|
|
28
31
|
declare const VIDEO_CONTEXT_API: readonly ["exitFullScreen", "pause", "play", "requestFullScreen", "seek", "setStreamSource", "stop"];
|
|
29
32
|
declare const AUTOMATION_API: readonly ["browser", "desktop", "device", "lxapp", "lxapps", "shell", "terminal"];
|
|
30
|
-
declare const SHELL_DRIVER_API: readonly ["pins", "setPin"];
|
|
33
|
+
declare const SHELL_DRIVER_API: readonly ["pins", "setPin", "reorderPins"];
|
|
31
34
|
declare const TERMINAL_DRIVER_API: readonly ["input", "newTab", "setMaximized", "snapshot", "split"];
|
|
32
35
|
declare const LXAPP_DRIVER_API: readonly ["eval", "info", "nav", "page", "pages", "surfaceLayout"];
|
|
33
36
|
declare const LXAPP_MANAGER_API: readonly ["applink", "close", "current", "list", "open", "restart", "screenshot", "uninstall", "windows"];
|
|
@@ -51,54 +54,66 @@ export declare const LX_RUNTIME_SURFACES: readonly [{
|
|
|
51
54
|
readonly name: "lx";
|
|
52
55
|
readonly layer: "logic";
|
|
53
56
|
readonly expression: "lx";
|
|
54
|
-
readonly members: readonly ["
|
|
57
|
+
readonly members: readonly ["host", "automation", "alert", "confirm", "pickFile", "pickFiles", "chooseDirectory", "chooseFile", "chooseMedia", "clipboard", "compressImage", "compressVideo", "connectWifi", "createVideoContext", "downloadFile", "env", "extractVideoThumbnail", "fs", "getConnectedWifi", "getDeviceInfo", "getImageInfo", "getLocation", "getLxAppInfo", "getNetworkInfo", "getScreenInfo", "getStorage", "getSystemSetting", "getUpdateManager", "getVideoInfo", "getWifiList", "hideToast", "makePhoneCall", "navigateBack", "navigateBackApp", "navigateTo", "navigateToApp", "navigationBar", "onDeviceOrientationChange", "onKeyDown", "onKeyUp", "onNetworkChange", "onWifiConnected", "openExternal", "openFile", "previewMedia", "reLaunch", "redirectTo", "saveImageToPhotosAlbum", "saveVideoToPhotosAlbum", "scanCode", "setDeviceOrientation", "setMoreActions", "share", "shell", "showActionSheet", "showModal", "showToast", "startPullDownRefresh", "startWifi", "stopPullDownRefresh", "stopWifi", "supports", "surface", "switchTab", "tabBar", "terminal", "tray", "uploadFile", "vibrateLong", "vibrateShort"];
|
|
55
58
|
readonly optionalMembers: readonly ["terminal"];
|
|
56
|
-
readonly properties: readonly ["
|
|
59
|
+
readonly properties: readonly ["clipboard", "env", "fs", "host", "navigationBar", "shell", "surface", "tabBar", "terminal", "tray"];
|
|
57
60
|
}, {
|
|
58
|
-
readonly name: "lx.
|
|
61
|
+
readonly name: "lx.host";
|
|
59
62
|
readonly layer: "logic";
|
|
60
|
-
readonly expression: "lx.
|
|
61
|
-
readonly members: ("screenshot" | "env" | "appearance" | "checkUpdate" | "displayLanguage" | "exit" | "getBaseInfo" | "setBadge")[];
|
|
63
|
+
readonly expression: "lx.host";
|
|
64
|
+
readonly members: ("screenshot" | "env" | "appearance" | "checkUpdate" | "claimCustomUpdate" | "displayLanguage" | "exit" | "getBaseInfo" | "setBadge")[];
|
|
62
65
|
readonly properties: readonly ["appearance", "displayLanguage", "env"];
|
|
63
66
|
}, {
|
|
64
|
-
readonly name: "lx.
|
|
67
|
+
readonly name: "lx.host.autostart";
|
|
65
68
|
readonly layer: "logic";
|
|
66
|
-
readonly expression: "lx.
|
|
69
|
+
readonly expression: "lx.host.autostart";
|
|
67
70
|
readonly members: readonly ["isEnabled", "setEnabled"];
|
|
68
71
|
readonly optional: true;
|
|
69
72
|
}, {
|
|
70
|
-
readonly name: "lx.
|
|
73
|
+
readonly name: "lx.host.banner";
|
|
71
74
|
readonly layer: "logic";
|
|
72
|
-
readonly expression: "lx.
|
|
75
|
+
readonly expression: "lx.host.banner";
|
|
76
|
+
readonly members: readonly ["dismiss", "show"];
|
|
77
|
+
readonly optional: true;
|
|
78
|
+
}, {
|
|
79
|
+
readonly name: "lx.host.notification";
|
|
80
|
+
readonly layer: "logic";
|
|
81
|
+
readonly expression: "lx.host.notification";
|
|
82
|
+
readonly members: readonly ["cancel", "cancelAll", "getPermission", "requestPermission", "show"];
|
|
83
|
+
readonly optional: true;
|
|
84
|
+
}, {
|
|
85
|
+
readonly name: "lx.host.cache";
|
|
86
|
+
readonly layer: "logic";
|
|
87
|
+
readonly expression: "lx.host.cache";
|
|
73
88
|
readonly members: readonly ["clear", "size"];
|
|
74
89
|
readonly optional: true;
|
|
75
90
|
}, {
|
|
76
|
-
readonly name: "lx.
|
|
91
|
+
readonly name: "lx.host.displayLanguage";
|
|
77
92
|
readonly layer: "logic";
|
|
78
|
-
readonly expression: "lx.
|
|
93
|
+
readonly expression: "lx.host.displayLanguage";
|
|
79
94
|
readonly members: readonly ["get", "watch"];
|
|
80
95
|
}, {
|
|
81
|
-
readonly name: "lx.
|
|
96
|
+
readonly name: "lx.host.control";
|
|
82
97
|
readonly layer: "logic";
|
|
83
|
-
readonly expression: "lx.
|
|
98
|
+
readonly expression: "lx.host.control";
|
|
84
99
|
readonly members: readonly ["appearance", "displayLanguage"];
|
|
85
100
|
readonly properties: readonly ["appearance", "displayLanguage"];
|
|
86
101
|
readonly optional: true;
|
|
87
102
|
}, {
|
|
88
|
-
readonly name: "lx.
|
|
103
|
+
readonly name: "lx.host.control.displayLanguage";
|
|
89
104
|
readonly layer: "logic";
|
|
90
|
-
readonly expression: "lx.
|
|
105
|
+
readonly expression: "lx.host.control?.displayLanguage";
|
|
91
106
|
readonly members: readonly ["getPreference", "setPreference", "watchPreference"];
|
|
92
107
|
readonly optional: true;
|
|
93
108
|
}, {
|
|
94
|
-
readonly name: "lx.
|
|
109
|
+
readonly name: "lx.host.appearance";
|
|
95
110
|
readonly layer: "logic";
|
|
96
|
-
readonly expression: "lx.
|
|
111
|
+
readonly expression: "lx.host.appearance";
|
|
97
112
|
readonly members: readonly ["get", "watch"];
|
|
98
113
|
}, {
|
|
99
|
-
readonly name: "lx.
|
|
114
|
+
readonly name: "lx.host.control.appearance";
|
|
100
115
|
readonly layer: "logic";
|
|
101
|
-
readonly expression: "lx.
|
|
116
|
+
readonly expression: "lx.host.control?.appearance";
|
|
102
117
|
readonly members: readonly ["getPreference", "setPreference", "watchPreference"];
|
|
103
118
|
readonly optional: true;
|
|
104
119
|
}, {
|
|
@@ -153,7 +168,7 @@ export declare const LX_RUNTIME_SURFACES: readonly [{
|
|
|
153
168
|
readonly name: "lx.surface";
|
|
154
169
|
readonly layer: "logic";
|
|
155
170
|
readonly expression: "lx.surface";
|
|
156
|
-
readonly members: readonly ["
|
|
171
|
+
readonly members: readonly ["getByKey", "watchContext", "openDeclared", "openPage", "openUrl"];
|
|
157
172
|
}, {
|
|
158
173
|
readonly name: "lx.shell";
|
|
159
174
|
readonly layer: "logic";
|
|
@@ -169,12 +184,17 @@ export declare const LX_RUNTIME_SURFACES: readonly [{
|
|
|
169
184
|
readonly name: "lx.tray";
|
|
170
185
|
readonly layer: "logic";
|
|
171
186
|
readonly expression: "lx.tray";
|
|
172
|
-
readonly members: readonly ["hide", "onClick", "
|
|
187
|
+
readonly members: readonly ["hide", "onClick", "setIcon", "setMenu", "setTitle", "show"];
|
|
173
188
|
}, {
|
|
174
189
|
readonly name: "lx.fs";
|
|
175
190
|
readonly layer: "logic";
|
|
176
191
|
readonly expression: "lx.fs";
|
|
177
192
|
readonly members: readonly ["copy", "exists", "file", "mkdir", "readDir", "remove", "rename", "stat", "write"];
|
|
193
|
+
}, {
|
|
194
|
+
readonly name: "lx.clipboard";
|
|
195
|
+
readonly layer: "logic";
|
|
196
|
+
readonly expression: "lx.clipboard";
|
|
197
|
+
readonly members: readonly ["clear", "read", "readText", "types", "write", "writeText"];
|
|
178
198
|
}, {
|
|
179
199
|
readonly name: "Storage";
|
|
180
200
|
readonly layer: "logic";
|
|
@@ -196,7 +216,7 @@ export declare const LX_RUNTIME_SURFACES: readonly [{
|
|
|
196
216
|
readonly name: "ShellDriver";
|
|
197
217
|
readonly layer: "automation";
|
|
198
218
|
readonly expression: "lx.automation().shell";
|
|
199
|
-
readonly members: readonly ["pins", "setPin"];
|
|
219
|
+
readonly members: readonly ["pins", "setPin", "reorderPins"];
|
|
200
220
|
}, {
|
|
201
221
|
readonly name: "TerminalDriver";
|
|
202
222
|
readonly layer: "automation";
|
|
@@ -310,11 +330,11 @@ export declare const LX_RUNTIME_SURFACES: readonly [{
|
|
|
310
330
|
export declare const LX_RUNTIME_CAPABILITY_NAMES: string[];
|
|
311
331
|
/** Canonical identifiers used by runtime shape automation coverage. */
|
|
312
332
|
export declare const LX_RUNTIME_SHAPE_NAMES: string[];
|
|
313
|
-
declare const DOWNLOAD_TASK_API: readonly ["
|
|
314
|
-
declare const UPLOAD_TASK_API: readonly ["
|
|
315
|
-
declare const COMPRESS_VIDEO_TASK_API: readonly ["
|
|
316
|
-
declare const HOST_UPDATE_INFO_API: readonly ["apply", "
|
|
317
|
-
declare const HOST_UPDATE_TASK_API: readonly ["
|
|
333
|
+
declare const DOWNLOAD_TASK_API: readonly ["result", "progress", "pause", "resume", "cancel"];
|
|
334
|
+
declare const UPLOAD_TASK_API: readonly ["result", "progress", "cancel"];
|
|
335
|
+
declare const COMPRESS_VIDEO_TASK_API: readonly ["result", "progress", "cancel"];
|
|
336
|
+
declare const HOST_UPDATE_INFO_API: readonly ["apply", "channel", "releaseNotes", "size", "version"];
|
|
337
|
+
declare const HOST_UPDATE_TASK_API: readonly ["result", "progress"];
|
|
318
338
|
declare const PREVIEW_MEDIA_API: readonly ["completed", "current", "onChange", "presented"];
|
|
319
339
|
declare const PAGE_SURFACE_API: readonly ["alive", "close", "hide", "id", "key", "kind", "onClose", "onHide", "onMessage", "onShow", "postMessage", "realized", "show", "visible"];
|
|
320
340
|
declare const TAB_SURFACE_API: readonly ["activate", "alive", "close", "id", "key", "kind", "onClose", "realized", "scope", "visible"];
|
|
@@ -335,36 +355,36 @@ export declare const LX_RETURNED_OBJECT_SURFACES: readonly [{
|
|
|
335
355
|
readonly factory: "lx.createVideoContext";
|
|
336
356
|
}, {
|
|
337
357
|
readonly name: "DownloadTask";
|
|
338
|
-
readonly members: readonly ["
|
|
339
|
-
readonly properties: readonly [];
|
|
358
|
+
readonly members: readonly ["result", "progress", "pause", "resume", "cancel"];
|
|
359
|
+
readonly properties: readonly ["result", "progress"];
|
|
340
360
|
readonly optionalProperties: readonly [];
|
|
341
361
|
readonly fixture: "external-service";
|
|
342
362
|
readonly factory: "lx.downloadFile";
|
|
343
363
|
}, {
|
|
344
364
|
readonly name: "UploadTask";
|
|
345
|
-
readonly members: readonly ["
|
|
346
|
-
readonly properties: readonly [];
|
|
365
|
+
readonly members: readonly ["result", "progress", "cancel"];
|
|
366
|
+
readonly properties: readonly ["result", "progress"];
|
|
347
367
|
readonly optionalProperties: readonly [];
|
|
348
368
|
readonly fixture: "external-service";
|
|
349
369
|
readonly factory: "lx.uploadFile";
|
|
350
370
|
}, {
|
|
351
371
|
readonly name: "CompressVideoTask";
|
|
352
|
-
readonly members: readonly ["
|
|
353
|
-
readonly properties: readonly [];
|
|
372
|
+
readonly members: readonly ["result", "progress", "cancel"];
|
|
373
|
+
readonly properties: readonly ["result", "progress"];
|
|
354
374
|
readonly optionalProperties: readonly [];
|
|
355
375
|
readonly fixture: "external-media";
|
|
356
376
|
readonly factory: "lx.compressVideo";
|
|
357
377
|
}, {
|
|
358
378
|
readonly name: "HostAppUpdateInfo";
|
|
359
|
-
readonly members: readonly ["apply", "
|
|
360
|
-
readonly properties: readonly ["
|
|
379
|
+
readonly members: readonly ["apply", "channel", "releaseNotes", "size", "version"];
|
|
380
|
+
readonly properties: readonly ["channel", "releaseNotes", "size", "version"];
|
|
361
381
|
readonly optionalProperties: readonly ["releaseNotes", "size"];
|
|
362
382
|
readonly fixture: "external-service";
|
|
363
|
-
readonly factory: "lx.
|
|
383
|
+
readonly factory: "lx.host.checkUpdate().update";
|
|
364
384
|
}, {
|
|
365
385
|
readonly name: "HostAppUpdateTask";
|
|
366
|
-
readonly members: readonly ["
|
|
367
|
-
readonly properties: readonly [];
|
|
386
|
+
readonly members: readonly ["result", "progress"];
|
|
387
|
+
readonly properties: readonly ["result", "progress"];
|
|
368
388
|
readonly optionalProperties: readonly [];
|
|
369
389
|
readonly fixture: "external-service";
|
|
370
390
|
readonly factory: "HostAppUpdateInfo.apply";
|
|
@@ -422,6 +442,8 @@ export type LxApiManifestGate = [
|
|
|
422
442
|
AssertTrue<Exact<PublishedLx, typeof LX_API_NAMES>>,
|
|
423
443
|
AssertTrue<Exact<HostAppApi, typeof HOST_APP_API>>,
|
|
424
444
|
AssertTrue<Exact<AutostartApi, typeof AUTOSTART_API>>,
|
|
445
|
+
AssertTrue<Exact<BannerApi, typeof BANNER_API>>,
|
|
446
|
+
AssertTrue<Exact<NotificationApi, typeof NOTIFICATION_API>>,
|
|
425
447
|
AssertTrue<Exact<AppCacheApi, typeof APP_CACHE_API>>,
|
|
426
448
|
AssertTrue<Exact<DisplayLanguageApi, typeof DISPLAY_LANGUAGE_API>>,
|
|
427
449
|
AssertTrue<Exact<ControlApi, typeof CONTROL_API>>,
|
|
@@ -440,6 +462,7 @@ export type LxApiManifestGate = [
|
|
|
440
462
|
AssertTrue<Exact<ShellApi['sidebarActions'], typeof SHELL_SIDEBAR_ACTIONS_API>>,
|
|
441
463
|
AssertTrue<Exact<TrayApi, typeof TRAY_API>>,
|
|
442
464
|
AssertTrue<Exact<FileSystemApi, typeof FILE_SYSTEM_API>>,
|
|
465
|
+
AssertTrue<Exact<ClipboardApi, typeof CLIPBOARD_API>>,
|
|
443
466
|
AssertTrue<Exact<LxFile, typeof LX_FILE_API>>,
|
|
444
467
|
AssertTrue<Exact<Storage, typeof STORAGE_API>>,
|
|
445
468
|
AssertTrue<Exact<UpdateManager, typeof UPDATE_MANAGER_API>>,
|
|
@@ -473,7 +496,9 @@ export type LxApiManifestGate = [
|
|
|
473
496
|
AssertTrue<Exact<PreviewMediaHandle, typeof PREVIEW_MEDIA_API>>,
|
|
474
497
|
AssertTrue<Exact<SurfaceApi, typeof SURFACE_NAMESPACE_API>>,
|
|
475
498
|
AssertTrue<Exact<PageSurface, typeof PAGE_SURFACE_API>>,
|
|
476
|
-
AssertTrue<Exact<TabSurface,
|
|
499
|
+
AssertTrue<Exact<Extract<TabSurface, {
|
|
500
|
+
scope: 'tab';
|
|
501
|
+
}>, typeof TAB_SURFACE_API>>,
|
|
477
502
|
AssertTrue<Exact<PageMessagePort, typeof PAGE_MESSAGE_PORT_API>>
|
|
478
503
|
];
|
|
479
504
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../../src/testing/public-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACd,aAAa,EACb,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,cAAc,EACd,cAAc,EACd,WAAW,EACX,mBAAmB,EACnB,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,SAAS,EACT,UAAU,EACV,OAAO,EACP,WAAW,EACX,WAAW,EACX,cAAc,EACf,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EACV,aAAa,EACb,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,UAAU,EACV,oBAAoB,EACpB,yBAAyB,EACzB,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EACjB,MAAM,EACN,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,UAAU,EACV,WAAW,EACX,QAAQ,EACR,OAAO,EACP,UAAU,EACV,SAAS,EACT,WAAW,EACX,uBAAuB,EACvB,gBAAgB,EAChB,yBAAyB,EACzB,mBAAmB,EACnB,OAAO,EACP,aAAa,EACb,UAAU,EACV,YAAY,EACb,MAAM,uBAAuB,CAAC;AAE/B,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../../src/testing/public-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACd,aAAa,EACb,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,cAAc,EACd,cAAc,EACd,WAAW,EACX,mBAAmB,EACnB,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,SAAS,EACT,UAAU,EACV,OAAO,EACP,WAAW,EACX,WAAW,EACX,cAAc,EACf,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EACV,aAAa,EACb,WAAW,EACX,YAAY,EACZ,SAAS,EACT,iBAAiB,EACjB,UAAU,EACV,oBAAoB,EACpB,yBAAyB,EACzB,kBAAkB,EAClB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EACjB,MAAM,EACN,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,UAAU,EACV,WAAW,EACX,QAAQ,EACR,OAAO,EACP,UAAU,EACV,SAAS,EACT,WAAW,EACX,uBAAuB,EACvB,gBAAgB,EAChB,yBAAyB,EACzB,mBAAmB,EACnB,OAAO,EACP,aAAa,EACb,UAAU,EACV,YAAY,EACb,MAAM,uBAAuB,CA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,oBAAoB,CAAC,CAAC;IACjE,UAAU,CAAC,KAAK,CAAC,iBAAiB,EAAE,OAAO,oBAAoB,CAAC,CAAC;IACjE,UAAU,CAAC,KAAK,CAAC,kBAAkB,EAAE,OAAO,iBAAiB,CAAC,CAAC;IAC/D,UAAU,CAAC,KAAK,CAAC,UAAU,EAAE,OAAO,qBAAqB,CAAC,CAAC;IAC3D,UAAU,CAAC,KAAK,CAAC,WAAW,EAAE,OAAO,gBAAgB,CAAC,CAAC;IACvD,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,EAAE;QAAE,KAAK,EAAE,KAAK,CAAA;KAAE,CAAC,EAAE,OAAO,eAAe,CAAC,CAAC;IAChF,UAAU,CAAC,KAAK,CAAC,eAAe,EAAE,OAAO,qBAAqB,CAAC,CAAC;CACjE,CAAC"}
|
|
@@ -2,11 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LX_REQUIRED_RUNTIME_SHAPE_NAMES = exports.LX_RETURNED_OBJECT_SHAPE_NAMES = exports.LX_RETURNED_OBJECT_CAPABILITY_NAMES = exports.LX_RETURNED_OBJECT_SURFACES = exports.LX_RUNTIME_SHAPE_NAMES = exports.LX_RUNTIME_CAPABILITY_NAMES = exports.LX_RUNTIME_SURFACES = exports.LX_API_NAMES = void 0;
|
|
4
4
|
exports.LX_API_NAMES = [
|
|
5
|
-
'
|
|
5
|
+
'host',
|
|
6
6
|
'automation',
|
|
7
|
+
'alert',
|
|
8
|
+
'confirm',
|
|
9
|
+
'pickFile',
|
|
10
|
+
'pickFiles',
|
|
7
11
|
'chooseDirectory',
|
|
8
12
|
'chooseFile',
|
|
9
13
|
'chooseMedia',
|
|
14
|
+
'clipboard',
|
|
10
15
|
'compressImage',
|
|
11
16
|
'compressVideo',
|
|
12
17
|
'connectWifi',
|
|
@@ -71,20 +76,35 @@ exports.LX_API_NAMES = [
|
|
|
71
76
|
const HOST_APP_API = [
|
|
72
77
|
'appearance',
|
|
73
78
|
'autostart',
|
|
79
|
+
'banner',
|
|
74
80
|
'cache',
|
|
75
81
|
'checkUpdate',
|
|
82
|
+
'claimCustomUpdate',
|
|
76
83
|
'control',
|
|
77
84
|
'displayLanguage',
|
|
78
85
|
'env',
|
|
79
86
|
'exit',
|
|
80
87
|
'getBaseInfo',
|
|
88
|
+
'notification',
|
|
81
89
|
'screenshot',
|
|
82
90
|
'setBadge',
|
|
83
91
|
];
|
|
84
|
-
// `autostart`, `control`, and `
|
|
85
|
-
// runtime walk of `lx.
|
|
86
|
-
const HOST_APP_RUNTIME_API = HOST_APP_API.filter((name) => name !== 'autostart' &&
|
|
92
|
+
// `autostart`, `banner`, `control`, `cache`, and `notification` are injected
|
|
93
|
+
// only where they apply, so a runtime walk of `lx.host` must not require them.
|
|
94
|
+
const HOST_APP_RUNTIME_API = HOST_APP_API.filter((name) => name !== 'autostart' &&
|
|
95
|
+
name !== 'banner' &&
|
|
96
|
+
name !== 'control' &&
|
|
97
|
+
name !== 'cache' &&
|
|
98
|
+
name !== 'notification');
|
|
87
99
|
const AUTOSTART_API = ['isEnabled', 'setEnabled'];
|
|
100
|
+
const BANNER_API = ['dismiss', 'show'];
|
|
101
|
+
const NOTIFICATION_API = [
|
|
102
|
+
'cancel',
|
|
103
|
+
'cancelAll',
|
|
104
|
+
'getPermission',
|
|
105
|
+
'requestPermission',
|
|
106
|
+
'show',
|
|
107
|
+
];
|
|
88
108
|
const APP_CACHE_API = ['clear', 'size'];
|
|
89
109
|
const DISPLAY_LANGUAGE_API = ['get', 'watch'];
|
|
90
110
|
const CONTROL_API = ['appearance', 'displayLanguage'];
|
|
@@ -108,10 +128,11 @@ const TERMINAL_FONTS_API = ['list'];
|
|
|
108
128
|
const TERMINAL_PREVIEW_API = ['clear', 'close', 'show'];
|
|
109
129
|
const WINDOWS_TERMINAL_API = ['install', 'setEnabled', 'status'];
|
|
110
130
|
const ENV_API = ['USER_CACHE_PATH', 'USER_DATA_PATH'];
|
|
111
|
-
const SURFACE_NAMESPACE_API = ['
|
|
131
|
+
const SURFACE_NAMESPACE_API = ['getByKey', 'watchContext', 'openDeclared', 'openPage', 'openUrl'];
|
|
112
132
|
const SHELL_API = ['openApp', 'openBuiltin', 'openDeclared', 'reconfigure', 'sidebarActions'];
|
|
113
133
|
const SHELL_SIDEBAR_ACTIONS_API = ['clear', 'remove', 'replace', 'update'];
|
|
114
|
-
const TRAY_API = ['hide', 'onClick', '
|
|
134
|
+
const TRAY_API = ['hide', 'onClick', 'setIcon', 'setMenu', 'setTitle', 'show'];
|
|
135
|
+
const CLIPBOARD_API = ['clear', 'read', 'readText', 'types', 'write', 'writeText'];
|
|
115
136
|
const FILE_SYSTEM_API = [
|
|
116
137
|
'copy',
|
|
117
138
|
'exists',
|
|
@@ -153,7 +174,7 @@ const AUTOMATION_API = [
|
|
|
153
174
|
'shell',
|
|
154
175
|
'terminal',
|
|
155
176
|
];
|
|
156
|
-
const SHELL_DRIVER_API = ['pins', 'setPin'];
|
|
177
|
+
const SHELL_DRIVER_API = ['pins', 'setPin', 'reorderPins'];
|
|
157
178
|
const TERMINAL_DRIVER_API = ['input', 'newTab', 'setMaximized', 'snapshot', 'split'];
|
|
158
179
|
const LXAPP_DRIVER_API = ['eval', 'info', 'nav', 'page', 'pages', 'surfaceLayout'];
|
|
159
180
|
const LXAPP_MANAGER_API = [
|
|
@@ -273,9 +294,10 @@ exports.LX_RUNTIME_SURFACES = [
|
|
|
273
294
|
members: exports.LX_API_NAMES,
|
|
274
295
|
optionalMembers: ['terminal'],
|
|
275
296
|
properties: [
|
|
276
|
-
'
|
|
297
|
+
'clipboard',
|
|
277
298
|
'env',
|
|
278
299
|
'fs',
|
|
300
|
+
'host',
|
|
279
301
|
'navigationBar',
|
|
280
302
|
'shell',
|
|
281
303
|
'surface',
|
|
@@ -285,57 +307,71 @@ exports.LX_RUNTIME_SURFACES = [
|
|
|
285
307
|
],
|
|
286
308
|
},
|
|
287
309
|
{
|
|
288
|
-
name: 'lx.
|
|
310
|
+
name: 'lx.host',
|
|
289
311
|
layer: 'logic',
|
|
290
|
-
expression: 'lx.
|
|
312
|
+
expression: 'lx.host',
|
|
291
313
|
members: HOST_APP_RUNTIME_API,
|
|
292
314
|
properties: ['appearance', 'displayLanguage', 'env'],
|
|
293
315
|
},
|
|
294
316
|
{
|
|
295
|
-
name: 'lx.
|
|
317
|
+
name: 'lx.host.autostart',
|
|
296
318
|
layer: 'logic',
|
|
297
|
-
expression: 'lx.
|
|
319
|
+
expression: 'lx.host.autostart',
|
|
298
320
|
members: AUTOSTART_API,
|
|
299
321
|
optional: true,
|
|
300
322
|
},
|
|
301
323
|
{
|
|
302
|
-
name: 'lx.
|
|
324
|
+
name: 'lx.host.banner',
|
|
303
325
|
layer: 'logic',
|
|
304
|
-
expression: 'lx.
|
|
326
|
+
expression: 'lx.host.banner',
|
|
327
|
+
members: BANNER_API,
|
|
328
|
+
optional: true,
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
name: 'lx.host.notification',
|
|
332
|
+
layer: 'logic',
|
|
333
|
+
expression: 'lx.host.notification',
|
|
334
|
+
members: NOTIFICATION_API,
|
|
335
|
+
optional: true,
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
name: 'lx.host.cache',
|
|
339
|
+
layer: 'logic',
|
|
340
|
+
expression: 'lx.host.cache',
|
|
305
341
|
members: APP_CACHE_API,
|
|
306
342
|
optional: true,
|
|
307
343
|
},
|
|
308
344
|
{
|
|
309
|
-
name: 'lx.
|
|
345
|
+
name: 'lx.host.displayLanguage',
|
|
310
346
|
layer: 'logic',
|
|
311
|
-
expression: 'lx.
|
|
347
|
+
expression: 'lx.host.displayLanguage',
|
|
312
348
|
members: DISPLAY_LANGUAGE_API,
|
|
313
349
|
},
|
|
314
350
|
{
|
|
315
|
-
name: 'lx.
|
|
351
|
+
name: 'lx.host.control',
|
|
316
352
|
layer: 'logic',
|
|
317
|
-
expression: 'lx.
|
|
353
|
+
expression: 'lx.host.control',
|
|
318
354
|
members: CONTROL_API,
|
|
319
355
|
properties: CONTROL_API,
|
|
320
356
|
optional: true,
|
|
321
357
|
},
|
|
322
358
|
{
|
|
323
|
-
name: 'lx.
|
|
359
|
+
name: 'lx.host.control.displayLanguage',
|
|
324
360
|
layer: 'logic',
|
|
325
|
-
expression: 'lx.
|
|
361
|
+
expression: 'lx.host.control?.displayLanguage',
|
|
326
362
|
members: CONTROL_DISPLAY_LANGUAGE_API,
|
|
327
363
|
optional: true,
|
|
328
364
|
},
|
|
329
365
|
{
|
|
330
|
-
name: 'lx.
|
|
366
|
+
name: 'lx.host.appearance',
|
|
331
367
|
layer: 'logic',
|
|
332
|
-
expression: 'lx.
|
|
368
|
+
expression: 'lx.host.appearance',
|
|
333
369
|
members: APPEARANCE_API,
|
|
334
370
|
},
|
|
335
371
|
{
|
|
336
|
-
name: 'lx.
|
|
372
|
+
name: 'lx.host.control.appearance',
|
|
337
373
|
layer: 'logic',
|
|
338
|
-
expression: 'lx.
|
|
374
|
+
expression: 'lx.host.control?.appearance',
|
|
339
375
|
members: CONTROL_APPEARANCE_API,
|
|
340
376
|
optional: true,
|
|
341
377
|
},
|
|
@@ -416,6 +452,7 @@ exports.LX_RUNTIME_SURFACES = [
|
|
|
416
452
|
},
|
|
417
453
|
{ name: 'lx.tray', layer: 'logic', expression: 'lx.tray', members: TRAY_API },
|
|
418
454
|
{ name: 'lx.fs', layer: 'logic', expression: 'lx.fs', members: FILE_SYSTEM_API },
|
|
455
|
+
{ name: 'lx.clipboard', layer: 'logic', expression: 'lx.clipboard', members: CLIPBOARD_API },
|
|
419
456
|
{ name: 'Storage', layer: 'logic', expression: 'lx.getStorage()', members: STORAGE_API },
|
|
420
457
|
{ name: 'UpdateManager', layer: 'logic', expression: 'lx.getUpdateManager()', members: UPDATE_MANAGER_API },
|
|
421
458
|
{
|
|
@@ -484,22 +521,11 @@ exports.LX_RUNTIME_SURFACES = [
|
|
|
484
521
|
exports.LX_RUNTIME_CAPABILITY_NAMES = exports.LX_RUNTIME_SURFACES.flatMap(({ name, members }) => (members.map((member) => `${name}.${member}`)));
|
|
485
522
|
/** Canonical identifiers used by runtime shape automation coverage. */
|
|
486
523
|
exports.LX_RUNTIME_SHAPE_NAMES = exports.LX_RUNTIME_CAPABILITY_NAMES.map((name) => `shape:${name}`);
|
|
487
|
-
const DOWNLOAD_TASK_API = [
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
'next',
|
|
493
|
-
'pause',
|
|
494
|
-
'resume',
|
|
495
|
-
'return',
|
|
496
|
-
'then',
|
|
497
|
-
'wait',
|
|
498
|
-
];
|
|
499
|
-
const UPLOAD_TASK_API = ['cancel', 'catch', 'finally', 'next', 'return', 'then', 'wait'];
|
|
500
|
-
const COMPRESS_VIDEO_TASK_API = ['cancel', 'catch', 'finally', 'next', 'return', 'then', 'wait'];
|
|
501
|
-
const HOST_UPDATE_INFO_API = ['apply', 'isForceUpdate', 'releaseNotes', 'size', 'version'];
|
|
502
|
-
const HOST_UPDATE_TASK_API = ['catch', 'finally', 'next', 'return', 'then', 'wait'];
|
|
524
|
+
const DOWNLOAD_TASK_API = ["result", "progress", "pause", "resume", "cancel"];
|
|
525
|
+
const UPLOAD_TASK_API = ["result", "progress", "cancel"];
|
|
526
|
+
const COMPRESS_VIDEO_TASK_API = ["result", "progress", "cancel"];
|
|
527
|
+
const HOST_UPDATE_INFO_API = ['apply', 'channel', 'releaseNotes', 'size', 'version'];
|
|
528
|
+
const HOST_UPDATE_TASK_API = ["result", "progress"];
|
|
503
529
|
const PREVIEW_MEDIA_API = ['completed', 'current', 'onChange', 'presented'];
|
|
504
530
|
const PAGE_SURFACE_API = [
|
|
505
531
|
'alive',
|
|
@@ -550,7 +576,7 @@ exports.LX_RETURNED_OBJECT_SURFACES = [
|
|
|
550
576
|
{
|
|
551
577
|
name: 'DownloadTask',
|
|
552
578
|
members: DOWNLOAD_TASK_API,
|
|
553
|
-
properties: [],
|
|
579
|
+
properties: ['result', 'progress'],
|
|
554
580
|
optionalProperties: [],
|
|
555
581
|
fixture: 'external-service',
|
|
556
582
|
factory: 'lx.downloadFile',
|
|
@@ -558,7 +584,7 @@ exports.LX_RETURNED_OBJECT_SURFACES = [
|
|
|
558
584
|
{
|
|
559
585
|
name: 'UploadTask',
|
|
560
586
|
members: UPLOAD_TASK_API,
|
|
561
|
-
properties: [],
|
|
587
|
+
properties: ['result', 'progress'],
|
|
562
588
|
optionalProperties: [],
|
|
563
589
|
fixture: 'external-service',
|
|
564
590
|
factory: 'lx.uploadFile',
|
|
@@ -566,7 +592,7 @@ exports.LX_RETURNED_OBJECT_SURFACES = [
|
|
|
566
592
|
{
|
|
567
593
|
name: 'CompressVideoTask',
|
|
568
594
|
members: COMPRESS_VIDEO_TASK_API,
|
|
569
|
-
properties: [],
|
|
595
|
+
properties: ['result', 'progress'],
|
|
570
596
|
optionalProperties: [],
|
|
571
597
|
fixture: 'external-media',
|
|
572
598
|
factory: 'lx.compressVideo',
|
|
@@ -574,15 +600,15 @@ exports.LX_RETURNED_OBJECT_SURFACES = [
|
|
|
574
600
|
{
|
|
575
601
|
name: 'HostAppUpdateInfo',
|
|
576
602
|
members: HOST_UPDATE_INFO_API,
|
|
577
|
-
properties: ['
|
|
603
|
+
properties: ['channel', 'releaseNotes', 'size', 'version'],
|
|
578
604
|
optionalProperties: ['releaseNotes', 'size'],
|
|
579
605
|
fixture: 'external-service',
|
|
580
|
-
factory: 'lx.
|
|
606
|
+
factory: 'lx.host.checkUpdate().update',
|
|
581
607
|
},
|
|
582
608
|
{
|
|
583
609
|
name: 'HostAppUpdateTask',
|
|
584
610
|
members: HOST_UPDATE_TASK_API,
|
|
585
|
-
properties: [],
|
|
611
|
+
properties: ['result', 'progress'],
|
|
586
612
|
optionalProperties: [],
|
|
587
613
|
fixture: 'external-service',
|
|
588
614
|
factory: 'HostAppUpdateInfo.apply',
|