@vidra-dev/sdk 0.5.1 → 0.6.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/README.md +43 -0
- package/dist/bridge.d.ts +15 -0
- package/dist/bridge.d.ts.map +1 -0
- package/dist/bridge.js +16 -0
- package/dist/bridge.js.map +1 -0
- package/dist/client.d.ts +60 -52
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +133 -161
- package/dist/client.js.map +1 -1
- package/dist/generated/app.d.ts +6 -7
- package/dist/generated/app.d.ts.map +1 -1
- package/dist/generated/app.js +4 -11
- package/dist/generated/app.js.map +1 -1
- package/dist/generated/appWindow.d.ts +16 -17
- package/dist/generated/appWindow.d.ts.map +1 -1
- package/dist/generated/appWindow.js +14 -41
- package/dist/generated/appWindow.js.map +1 -1
- package/dist/generated/battery.d.ts +6 -7
- package/dist/generated/battery.d.ts.map +1 -1
- package/dist/generated/battery.js +4 -11
- package/dist/generated/battery.js.map +1 -1
- package/dist/generated/browser.d.ts +5 -6
- package/dist/generated/browser.d.ts.map +1 -1
- package/dist/generated/browser.js +3 -8
- package/dist/generated/browser.js.map +1 -1
- package/dist/generated/clipboard.d.ts +7 -8
- package/dist/generated/clipboard.d.ts.map +1 -1
- package/dist/generated/clipboard.js +5 -14
- package/dist/generated/clipboard.js.map +1 -1
- package/dist/generated/connectivity.d.ts +6 -7
- package/dist/generated/connectivity.d.ts.map +1 -1
- package/dist/generated/connectivity.js +4 -11
- package/dist/generated/connectivity.js.map +1 -1
- package/dist/generated/device.d.ts +6 -7
- package/dist/generated/device.d.ts.map +1 -1
- package/dist/generated/device.js +4 -11
- package/dist/generated/device.js.map +1 -1
- package/dist/generated/dialogs.d.ts +7 -8
- package/dist/generated/dialogs.d.ts.map +1 -1
- package/dist/generated/dialogs.js +5 -14
- package/dist/generated/dialogs.js.map +1 -1
- package/dist/generated/email.d.ts +5 -6
- package/dist/generated/email.d.ts.map +1 -1
- package/dist/generated/email.js +3 -8
- package/dist/generated/email.js.map +1 -1
- package/dist/generated/essentials.d.ts +5 -6
- package/dist/generated/essentials.d.ts.map +1 -1
- package/dist/generated/essentials.js +3 -8
- package/dist/generated/essentials.js.map +1 -1
- package/dist/generated/filePicker.d.ts +6 -7
- package/dist/generated/filePicker.d.ts.map +1 -1
- package/dist/generated/filePicker.js +4 -11
- package/dist/generated/filePicker.js.map +1 -1
- package/dist/generated/filesystem.d.ts +9 -10
- package/dist/generated/filesystem.d.ts.map +1 -1
- package/dist/generated/filesystem.js +7 -20
- package/dist/generated/filesystem.js.map +1 -1
- package/dist/generated/index.d.ts +90 -38
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +40 -40
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/launcher.d.ts +6 -7
- package/dist/generated/launcher.d.ts.map +1 -1
- package/dist/generated/launcher.js +4 -11
- package/dist/generated/launcher.js.map +1 -1
- package/dist/generated/notifications.d.ts +6 -7
- package/dist/generated/notifications.d.ts.map +1 -1
- package/dist/generated/notifications.js +4 -11
- package/dist/generated/notifications.js.map +1 -1
- package/dist/generated/preferences.d.ts +9 -10
- package/dist/generated/preferences.d.ts.map +1 -1
- package/dist/generated/preferences.js +7 -20
- package/dist/generated/preferences.js.map +1 -1
- package/dist/generated/runtime.d.ts +5 -6
- package/dist/generated/runtime.d.ts.map +1 -1
- package/dist/generated/runtime.js +3 -8
- package/dist/generated/runtime.js.map +1 -1
- package/dist/generated/secureStorage.d.ts +8 -9
- package/dist/generated/secureStorage.d.ts.map +1 -1
- package/dist/generated/secureStorage.js +6 -17
- package/dist/generated/secureStorage.js.map +1 -1
- package/dist/generated/share.d.ts +5 -6
- package/dist/generated/share.d.ts.map +1 -1
- package/dist/generated/share.js +3 -8
- package/dist/generated/share.js.map +1 -1
- package/dist/generated/textToSpeech.d.ts +5 -6
- package/dist/generated/textToSpeech.d.ts.map +1 -1
- package/dist/generated/textToSpeech.js +3 -8
- package/dist/generated/textToSpeech.js.map +1 -1
- package/dist/index.d.ts +6 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/transport.d.ts +43 -23
- package/dist/transport.d.ts.map +1 -1
- package/dist/transport.js +71 -54
- package/dist/transport.js.map +1 -1
- package/package.json +1 -1
- package/dist/singleton.d.ts +0 -9
- package/dist/singleton.d.ts.map +0 -1
- package/dist/singleton.js +0 -8
- package/dist/singleton.js.map +0 -1
package/dist/generated/email.js
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
compose(args) {
|
|
6
|
-
return this.client.unsafe.invoke("email", "compose", args);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
1
|
+
export const createEmail = (bridge) => ({
|
|
2
|
+
compose: (args) => bridge.unsafe.invoke("email", "compose", args),
|
|
3
|
+
});
|
|
9
4
|
//# sourceMappingURL=email.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email.js","sourceRoot":"","sources":["../../src/generated/email.ts"],"names":[],"mappings":"AAeA,MAAM,
|
|
1
|
+
{"version":3,"file":"email.js","sourceRoot":"","sources":["../../src/generated/email.ts"],"names":[],"mappings":"AAeA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,MAAmB,EAAE,EAAE,CAAC,CAAC;IACnD,OAAO,EAAE,CAAC,IAAsB,EAA+B,EAAE,CAC/D,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,SAAS,EAAE,IAAI,CAAC;CACjD,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { VidraBridge } from "../bridge.js";
|
|
2
2
|
export interface EssentialsSupport {
|
|
3
3
|
platform: string;
|
|
4
4
|
secureStorage: boolean;
|
|
@@ -13,9 +13,8 @@ export interface EssentialsSupport {
|
|
|
13
13
|
connectivity: boolean;
|
|
14
14
|
battery: boolean;
|
|
15
15
|
}
|
|
16
|
-
export declare
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
16
|
+
export declare const createEssentials: (bridge: VidraBridge) => {
|
|
17
|
+
getSupport: () => Promise<EssentialsSupport>;
|
|
18
|
+
};
|
|
19
|
+
export type Essentials = ReturnType<typeof createEssentials>;
|
|
21
20
|
//# sourceMappingURL=essentials.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"essentials.d.ts","sourceRoot":"","sources":["../../src/generated/essentials.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"essentials.d.ts","sourceRoot":"","sources":["../../src/generated/essentials.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,gBAAgB,WAAY,WAAW;IAClD,UAAU,QAAM,OAAO,CAAC,iBAAiB,CAAC;CAE1C,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
getSupport() {
|
|
6
|
-
return this.client.unsafe.invoke("essentials", "getSupport");
|
|
7
|
-
}
|
|
8
|
-
}
|
|
1
|
+
export const createEssentials = (bridge) => ({
|
|
2
|
+
getSupport: () => bridge.unsafe.invoke("essentials", "getSupport"),
|
|
3
|
+
});
|
|
9
4
|
//# sourceMappingURL=essentials.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"essentials.js","sourceRoot":"","sources":["../../src/generated/essentials.ts"],"names":[],"mappings":"AAkBA,MAAM,
|
|
1
|
+
{"version":3,"file":"essentials.js","sourceRoot":"","sources":["../../src/generated/essentials.ts"],"names":[],"mappings":"AAkBA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,MAAmB,EAAE,EAAE,CAAC,CAAC;IACxD,UAAU,EAAE,GAA+B,EAAE,CAC3C,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,YAAY,CAAC;CACnD,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { VidraBridge } from "../bridge.js";
|
|
2
2
|
export interface FilePickerPickArgs {
|
|
3
3
|
title?: string | null;
|
|
4
4
|
}
|
|
@@ -13,10 +13,9 @@ export interface PickedFile {
|
|
|
13
13
|
fullPath: string;
|
|
14
14
|
contentType?: string | null;
|
|
15
15
|
}
|
|
16
|
-
export declare
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
16
|
+
export declare const createFilePicker: (bridge: VidraBridge) => {
|
|
17
|
+
pickOne: (args: FilePickerPickArgs) => Promise<FilePickerPickOneResult>;
|
|
18
|
+
pickMultiple: (args: FilePickerPickArgs) => Promise<FilePickerPickMultipleResult>;
|
|
19
|
+
};
|
|
20
|
+
export type FilePicker = ReturnType<typeof createFilePicker>;
|
|
22
21
|
//# sourceMappingURL=filePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filePicker.d.ts","sourceRoot":"","sources":["../../src/generated/filePicker.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"filePicker.d.ts","sourceRoot":"","sources":["../../src/generated/filePicker.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,4BAA4B;IAC3C,KAAK,EAAE,UAAU,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,eAAO,MAAM,gBAAgB,WAAY,WAAW;IAClD,OAAO,SAAS,kBAAkB,KAAG,OAAO,CAAC,uBAAuB,CAAC;IAErE,YAAY,SAAS,kBAAkB,KAAG,OAAO,CAAC,4BAA4B,CAAC;CAE/E,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
pickOne(args) {
|
|
6
|
-
return this.client.unsafe.invoke("filePicker", "pickOne", args);
|
|
7
|
-
}
|
|
8
|
-
pickMultiple(args) {
|
|
9
|
-
return this.client.unsafe.invoke("filePicker", "pickMultiple", args);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
1
|
+
export const createFilePicker = (bridge) => ({
|
|
2
|
+
pickOne: (args) => bridge.unsafe.invoke("filePicker", "pickOne", args),
|
|
3
|
+
pickMultiple: (args) => bridge.unsafe.invoke("filePicker", "pickMultiple", args),
|
|
4
|
+
});
|
|
12
5
|
//# sourceMappingURL=filePicker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filePicker.js","sourceRoot":"","sources":["../../src/generated/filePicker.ts"],"names":[],"mappings":"AAqBA,MAAM,
|
|
1
|
+
{"version":3,"file":"filePicker.js","sourceRoot":"","sources":["../../src/generated/filePicker.ts"],"names":[],"mappings":"AAqBA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,MAAmB,EAAE,EAAE,CAAC,CAAC;IACxD,OAAO,EAAE,CAAC,IAAwB,EAAoC,EAAE,CACtE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,SAAS,EAAE,IAAI,CAAC;IACrD,YAAY,EAAE,CAAC,IAAwB,EAAyC,EAAE,CAChF,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,cAAc,EAAE,IAAI,CAAC;CAC3D,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { VidraBridge } from "../bridge.js";
|
|
2
2
|
export interface DeleteArgs {
|
|
3
3
|
path: string;
|
|
4
4
|
}
|
|
@@ -34,13 +34,12 @@ export interface WriteTextArgs {
|
|
|
34
34
|
export interface WriteTextResult {
|
|
35
35
|
success: boolean;
|
|
36
36
|
}
|
|
37
|
-
export declare
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
37
|
+
export declare const createFilesystem: (bridge: VidraBridge) => {
|
|
38
|
+
readText: (args: ReadTextArgs) => Promise<ReadTextResult>;
|
|
39
|
+
writeText: (args: WriteTextArgs) => Promise<WriteTextResult>;
|
|
40
|
+
exists: (args: ExistsArgs) => Promise<ExistsResult>;
|
|
41
|
+
delete: (args: DeleteArgs) => Promise<DeleteResult>;
|
|
42
|
+
listDirectory: (args: ListDirectoryArgs) => Promise<ListDirectoryResult>;
|
|
43
|
+
};
|
|
44
|
+
export type Filesystem = ReturnType<typeof createFilesystem>;
|
|
46
45
|
//# sourceMappingURL=filesystem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filesystem.d.ts","sourceRoot":"","sources":["../../src/generated/filesystem.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"filesystem.d.ts","sourceRoot":"","sources":["../../src/generated/filesystem.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,cAAc,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,gBAAgB,WAAY,WAAW;IAClD,QAAQ,SAAS,YAAY,KAAG,OAAO,CAAC,cAAc,CAAC;IAEvD,SAAS,SAAS,aAAa,KAAG,OAAO,CAAC,eAAe,CAAC;IAE1D,MAAM,SAAS,UAAU,KAAG,OAAO,CAAC,YAAY,CAAC;IAEjD,MAAM,SAAS,UAAU,KAAG,OAAO,CAAC,YAAY,CAAC;IAEjD,aAAa,SAAS,iBAAiB,KAAG,OAAO,CAAC,mBAAmB,CAAC;CAEtE,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -1,21 +1,8 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
writeText(args) {
|
|
9
|
-
return this.client.unsafe.invoke("filesystem", "writeText", args);
|
|
10
|
-
}
|
|
11
|
-
exists(args) {
|
|
12
|
-
return this.client.unsafe.invoke("filesystem", "exists", args);
|
|
13
|
-
}
|
|
14
|
-
delete(args) {
|
|
15
|
-
return this.client.unsafe.invoke("filesystem", "delete", args);
|
|
16
|
-
}
|
|
17
|
-
listDirectory(args) {
|
|
18
|
-
return this.client.unsafe.invoke("filesystem", "listDirectory", args);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
1
|
+
export const createFilesystem = (bridge) => ({
|
|
2
|
+
readText: (args) => bridge.unsafe.invoke("filesystem", "readText", args),
|
|
3
|
+
writeText: (args) => bridge.unsafe.invoke("filesystem", "writeText", args),
|
|
4
|
+
exists: (args) => bridge.unsafe.invoke("filesystem", "exists", args),
|
|
5
|
+
delete: (args) => bridge.unsafe.invoke("filesystem", "delete", args),
|
|
6
|
+
listDirectory: (args) => bridge.unsafe.invoke("filesystem", "listDirectory", args),
|
|
7
|
+
});
|
|
21
8
|
//# sourceMappingURL=filesystem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filesystem.js","sourceRoot":"","sources":["../../src/generated/filesystem.ts"],"names":[],"mappings":"AAiDA,MAAM,
|
|
1
|
+
{"version":3,"file":"filesystem.js","sourceRoot":"","sources":["../../src/generated/filesystem.ts"],"names":[],"mappings":"AAiDA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,MAAmB,EAAE,EAAE,CAAC,CAAC;IACxD,QAAQ,EAAE,CAAC,IAAkB,EAA2B,EAAE,CACxD,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;IACtD,SAAS,EAAE,CAAC,IAAmB,EAA4B,EAAE,CAC3D,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,WAAW,EAAE,IAAI,CAAC;IACvD,MAAM,EAAE,CAAC,IAAgB,EAAyB,EAAE,CAClD,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC;IACpD,MAAM,EAAE,CAAC,IAAgB,EAAyB,EAAE,CAClD,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC;IACpD,aAAa,EAAE,CAAC,IAAuB,EAAgC,EAAE,CACvE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,eAAe,EAAE,IAAI,CAAC;CAC5D,CAAC,CAAC"}
|
|
@@ -1,41 +1,93 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export declare const browser:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
export declare const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
export declare const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
export declare const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
1
|
+
export declare const app: {
|
|
2
|
+
getInfo: () => Promise<import("./app.js").AppInfoResult>;
|
|
3
|
+
getTheme: () => Promise<import("./app.js").ThemeResult>;
|
|
4
|
+
};
|
|
5
|
+
export declare const appWindow: {
|
|
6
|
+
getSupport: () => Promise<import("./appWindow.js").WindowSupport>;
|
|
7
|
+
getCurrent: () => Promise<import("./appWindow.js").WindowInfo>;
|
|
8
|
+
configure: (args: import("./appWindow.js").ConfigureWindowArgs) => Promise<import("./appWindow.js").WindowInfo>;
|
|
9
|
+
setTitle: (args: import("./appWindow.js").SetTitleArgs) => Promise<import("./appWindow.js").WindowInfo>;
|
|
10
|
+
setSize: (args: import("./appWindow.js").SetSizeArgs) => Promise<import("./appWindow.js").WindowInfo>;
|
|
11
|
+
center: () => Promise<import("./appWindow.js").WindowInfo>;
|
|
12
|
+
maximize: () => Promise<import("./appWindow.js").WindowInfo>;
|
|
13
|
+
minimize: () => Promise<import("./appWindow.js").WindowInfo>;
|
|
14
|
+
restore: () => Promise<import("./appWindow.js").WindowInfo>;
|
|
15
|
+
setFullscreen: (args: import("./appWindow.js").SetFullscreenArgs) => Promise<import("./appWindow.js").WindowInfo>;
|
|
16
|
+
onResized: (handler: (payload: import("./appWindow.js").WindowInfo) => void) => (() => void);
|
|
17
|
+
onStateChanged: (handler: (payload: import("./appWindow.js").WindowInfo) => void) => (() => void);
|
|
18
|
+
};
|
|
19
|
+
export declare const battery: {
|
|
20
|
+
getStatus: () => Promise<import("./battery.js").BatteryStatus>;
|
|
21
|
+
onChanged: (handler: (payload: import("./battery.js").BatteryStatus) => void) => (() => void);
|
|
22
|
+
};
|
|
23
|
+
export declare const browser: {
|
|
24
|
+
open: (args: import("./browser.js").BrowserOpenArgs) => Promise<import("./browser.js").BrowserOpenResult>;
|
|
25
|
+
};
|
|
26
|
+
export declare const clipboard: {
|
|
27
|
+
getText: () => Promise<import("./clipboard.js").GetTextResult>;
|
|
28
|
+
setText: (args: import("./clipboard.js").SetTextArgs) => Promise<import("./clipboard.js").SetTextResult>;
|
|
29
|
+
hasText: () => Promise<import("./clipboard.js").HasTextResult>;
|
|
30
|
+
};
|
|
31
|
+
export declare const connectivity: {
|
|
32
|
+
getStatus: () => Promise<import("./connectivity.js").ConnectivityStatus>;
|
|
33
|
+
onChanged: (handler: (payload: import("./connectivity.js").ConnectivityStatus) => void) => (() => void);
|
|
34
|
+
};
|
|
35
|
+
export declare const device: {
|
|
36
|
+
getInfo: () => Promise<import("./device.js").DeviceInfoResult>;
|
|
37
|
+
getDisplay: () => Promise<import("./device.js").DisplayInfoResult>;
|
|
38
|
+
};
|
|
39
|
+
export declare const dialogs: {
|
|
40
|
+
alert: (args: import("./dialogs.js").AlertArgs) => Promise<import("./dialogs.js").AlertResult>;
|
|
41
|
+
confirm: (args: import("./dialogs.js").ConfirmArgs) => Promise<import("./dialogs.js").ConfirmResult>;
|
|
42
|
+
prompt: (args: import("./dialogs.js").PromptArgs) => Promise<import("./dialogs.js").PromptResult>;
|
|
43
|
+
};
|
|
44
|
+
export declare const email: {
|
|
45
|
+
compose: (args: import("./email.js").EmailComposeArgs) => Promise<import("./email.js").EmailComposeResult>;
|
|
46
|
+
};
|
|
47
|
+
export declare const essentials: {
|
|
48
|
+
getSupport: () => Promise<import("./essentials.js").EssentialsSupport>;
|
|
49
|
+
};
|
|
50
|
+
export declare const filePicker: {
|
|
51
|
+
pickOne: (args: import("./filePicker.js").FilePickerPickArgs) => Promise<import("./filePicker.js").FilePickerPickOneResult>;
|
|
52
|
+
pickMultiple: (args: import("./filePicker.js").FilePickerPickArgs) => Promise<import("./filePicker.js").FilePickerPickMultipleResult>;
|
|
53
|
+
};
|
|
54
|
+
export declare const filesystem: {
|
|
55
|
+
readText: (args: import("./filesystem.js").ReadTextArgs) => Promise<import("./filesystem.js").ReadTextResult>;
|
|
56
|
+
writeText: (args: import("./filesystem.js").WriteTextArgs) => Promise<import("./filesystem.js").WriteTextResult>;
|
|
57
|
+
exists: (args: import("./filesystem.js").ExistsArgs) => Promise<import("./filesystem.js").ExistsResult>;
|
|
58
|
+
delete: (args: import("./filesystem.js").DeleteArgs) => Promise<import("./filesystem.js").DeleteResult>;
|
|
59
|
+
listDirectory: (args: import("./filesystem.js").ListDirectoryArgs) => Promise<import("./filesystem.js").ListDirectoryResult>;
|
|
60
|
+
};
|
|
61
|
+
export declare const launcher: {
|
|
62
|
+
open: (args: import("./launcher.js").LauncherOpenArgs) => Promise<import("./launcher.js").LauncherOpenResult>;
|
|
63
|
+
canOpen: (args: import("./launcher.js").LauncherCanOpenArgs) => Promise<import("./launcher.js").LauncherCanOpenResult>;
|
|
64
|
+
};
|
|
65
|
+
export declare const notifications: {
|
|
66
|
+
show: (args: import("./notifications.js").ShowArgs) => Promise<import("./notifications.js").ShowResult>;
|
|
67
|
+
requestPermission: () => Promise<import("./notifications.js").RequestPermissionResult>;
|
|
68
|
+
};
|
|
69
|
+
export declare const preferences: {
|
|
70
|
+
get: (args: import("./preferences.js").PreferencesGetArgs) => Promise<import("./preferences.js").PreferencesGetResult>;
|
|
71
|
+
set: (args: import("./preferences.js").PreferencesSetArgs) => Promise<import("./preferences.js").PreferencesSetResult>;
|
|
72
|
+
remove: (args: import("./preferences.js").PreferencesRemoveArgs) => Promise<import("./preferences.js").PreferencesRemoveResult>;
|
|
73
|
+
containsKey: (args: import("./preferences.js").PreferencesContainsArgs) => Promise<import("./preferences.js").PreferencesContainsResult>;
|
|
74
|
+
clear: () => Promise<import("./preferences.js").PreferencesClearResult>;
|
|
75
|
+
};
|
|
76
|
+
export declare const runtime: {
|
|
77
|
+
onHotReloaded: (handler: (payload: import("./runtime.js").HotReloadedPayload) => void) => (() => void);
|
|
78
|
+
};
|
|
79
|
+
export declare const secureStorage: {
|
|
80
|
+
get: (args: import("./secureStorage.js").SecureStorageGetArgs) => Promise<import("./secureStorage.js").SecureStorageGetResult>;
|
|
81
|
+
set: (args: import("./secureStorage.js").SecureStorageSetArgs) => Promise<import("./secureStorage.js").SecureStorageSetResult>;
|
|
82
|
+
remove: (args: import("./secureStorage.js").SecureStorageRemoveArgs) => Promise<import("./secureStorage.js").SecureStorageRemoveResult>;
|
|
83
|
+
removeAll: () => Promise<import("./secureStorage.js").SecureStorageRemoveAllResult>;
|
|
84
|
+
};
|
|
85
|
+
export declare const share: {
|
|
86
|
+
shareText: (args: import("./share.js").ShareTextArgs) => Promise<import("./share.js").ShareResult>;
|
|
87
|
+
};
|
|
88
|
+
export declare const textToSpeech: {
|
|
89
|
+
speak: (args: import("./textToSpeech.js").SpeakArgs) => Promise<import("./textToSpeech.js").SpeakResult>;
|
|
90
|
+
};
|
|
39
91
|
export * from "./app.js";
|
|
40
92
|
export * from "./appWindow.js";
|
|
41
93
|
export * from "./battery.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,GAAG;;;CAAoB,CAAC;AACrC,eAAO,MAAM,SAAS;;;;;;;;;;;;;CAA0B,CAAC;AACjD,eAAO,MAAM,OAAO;;;CAAwB,CAAC;AAC7C,eAAO,MAAM,OAAO;;CAAwB,CAAC;AAC7C,eAAO,MAAM,SAAS;;;;CAA0B,CAAC;AACjD,eAAO,MAAM,YAAY;;;CAA6B,CAAC;AACvD,eAAO,MAAM,MAAM;;;CAAuB,CAAC;AAC3C,eAAO,MAAM,OAAO;;;;CAAwB,CAAC;AAC7C,eAAO,MAAM,KAAK;;CAAsB,CAAC;AACzC,eAAO,MAAM,UAAU;;CAA2B,CAAC;AACnD,eAAO,MAAM,UAAU;;;CAA2B,CAAC;AACnD,eAAO,MAAM,UAAU;;;;;;CAA2B,CAAC;AACnD,eAAO,MAAM,QAAQ;;;CAAyB,CAAC;AAC/C,eAAO,MAAM,aAAa;;;CAA8B,CAAC;AACzD,eAAO,MAAM,WAAW;;;;;;CAA4B,CAAC;AACrD,eAAO,MAAM,OAAO;;CAAwB,CAAC;AAC7C,eAAO,MAAM,aAAa;;;;;CAA8B,CAAC;AACzD,eAAO,MAAM,KAAK;;CAAsB,CAAC;AACzC,eAAO,MAAM,YAAY;;CAA6B,CAAC;AAEvD,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/generated/index.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
// Auto-generated by vidra-codegen. Do not edit.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
|
|
23
|
-
export const app =
|
|
24
|
-
export const appWindow =
|
|
25
|
-
export const battery =
|
|
26
|
-
export const browser =
|
|
27
|
-
export const clipboard =
|
|
28
|
-
export const connectivity =
|
|
29
|
-
export const device =
|
|
30
|
-
export const dialogs =
|
|
31
|
-
export const email =
|
|
32
|
-
export const essentials =
|
|
33
|
-
export const filePicker =
|
|
34
|
-
export const filesystem =
|
|
35
|
-
export const launcher =
|
|
36
|
-
export const notifications =
|
|
37
|
-
export const preferences =
|
|
38
|
-
export const runtime =
|
|
39
|
-
export const secureStorage =
|
|
40
|
-
export const share =
|
|
41
|
-
export const textToSpeech =
|
|
2
|
+
import { bridge, expectations } from "../bridge.js";
|
|
3
|
+
import { createApp } from "./app.js";
|
|
4
|
+
import { createAppWindow } from "./appWindow.js";
|
|
5
|
+
import { createBattery } from "./battery.js";
|
|
6
|
+
import { createBrowser } from "./browser.js";
|
|
7
|
+
import { createClipboard } from "./clipboard.js";
|
|
8
|
+
import { createConnectivity } from "./connectivity.js";
|
|
9
|
+
import { createDevice } from "./device.js";
|
|
10
|
+
import { createDialogs } from "./dialogs.js";
|
|
11
|
+
import { createEmail } from "./email.js";
|
|
12
|
+
import { createEssentials } from "./essentials.js";
|
|
13
|
+
import { createFilePicker } from "./filePicker.js";
|
|
14
|
+
import { createFilesystem } from "./filesystem.js";
|
|
15
|
+
import { createLauncher } from "./launcher.js";
|
|
16
|
+
import { createNotifications } from "./notifications.js";
|
|
17
|
+
import { createPreferences } from "./preferences.js";
|
|
18
|
+
import { createRuntime } from "./runtime.js";
|
|
19
|
+
import { createSecureStorage } from "./secureStorage.js";
|
|
20
|
+
import { createShare } from "./share.js";
|
|
21
|
+
import { createTextToSpeech } from "./textToSpeech.js";
|
|
22
|
+
expectations.declare("core", "a4d6e4856749f06fd3c84be9bb5a468c5219e71797777a977a2d0772dc6214db");
|
|
23
|
+
export const app = createApp(bridge);
|
|
24
|
+
export const appWindow = createAppWindow(bridge);
|
|
25
|
+
export const battery = createBattery(bridge);
|
|
26
|
+
export const browser = createBrowser(bridge);
|
|
27
|
+
export const clipboard = createClipboard(bridge);
|
|
28
|
+
export const connectivity = createConnectivity(bridge);
|
|
29
|
+
export const device = createDevice(bridge);
|
|
30
|
+
export const dialogs = createDialogs(bridge);
|
|
31
|
+
export const email = createEmail(bridge);
|
|
32
|
+
export const essentials = createEssentials(bridge);
|
|
33
|
+
export const filePicker = createFilePicker(bridge);
|
|
34
|
+
export const filesystem = createFilesystem(bridge);
|
|
35
|
+
export const launcher = createLauncher(bridge);
|
|
36
|
+
export const notifications = createNotifications(bridge);
|
|
37
|
+
export const preferences = createPreferences(bridge);
|
|
38
|
+
export const runtime = createRuntime(bridge);
|
|
39
|
+
export const secureStorage = createSecureStorage(bridge);
|
|
40
|
+
export const share = createShare(bridge);
|
|
41
|
+
export const textToSpeech = createTextToSpeech(bridge);
|
|
42
42
|
export * from "./app.js";
|
|
43
43
|
export * from "./appWindow.js";
|
|
44
44
|
export * from "./battery.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { VidraBridge } from "../bridge.js";
|
|
2
2
|
export interface LauncherCanOpenArgs {
|
|
3
3
|
uri: string;
|
|
4
4
|
}
|
|
@@ -11,10 +11,9 @@ export interface LauncherOpenArgs {
|
|
|
11
11
|
export interface LauncherOpenResult {
|
|
12
12
|
success: boolean;
|
|
13
13
|
}
|
|
14
|
-
export declare
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
14
|
+
export declare const createLauncher: (bridge: VidraBridge) => {
|
|
15
|
+
open: (args: LauncherOpenArgs) => Promise<LauncherOpenResult>;
|
|
16
|
+
canOpen: (args: LauncherCanOpenArgs) => Promise<LauncherCanOpenResult>;
|
|
17
|
+
};
|
|
18
|
+
export type Launcher = ReturnType<typeof createLauncher>;
|
|
20
19
|
//# sourceMappingURL=launcher.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"launcher.d.ts","sourceRoot":"","sources":["../../src/generated/launcher.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"launcher.d.ts","sourceRoot":"","sources":["../../src/generated/launcher.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,cAAc,WAAY,WAAW;IAChD,IAAI,SAAS,gBAAgB,KAAG,OAAO,CAAC,kBAAkB,CAAC;IAE3D,OAAO,SAAS,mBAAmB,KAAG,OAAO,CAAC,qBAAqB,CAAC;CAEpE,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
open(args) {
|
|
6
|
-
return this.client.unsafe.invoke("launcher", "open", args);
|
|
7
|
-
}
|
|
8
|
-
canOpen(args) {
|
|
9
|
-
return this.client.unsafe.invoke("launcher", "canOpen", args);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
1
|
+
export const createLauncher = (bridge) => ({
|
|
2
|
+
open: (args) => bridge.unsafe.invoke("launcher", "open", args),
|
|
3
|
+
canOpen: (args) => bridge.unsafe.invoke("launcher", "canOpen", args),
|
|
4
|
+
});
|
|
12
5
|
//# sourceMappingURL=launcher.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"launcher.js","sourceRoot":"","sources":["../../src/generated/launcher.ts"],"names":[],"mappings":"AAmBA,MAAM,
|
|
1
|
+
{"version":3,"file":"launcher.js","sourceRoot":"","sources":["../../src/generated/launcher.ts"],"names":[],"mappings":"AAmBA,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,MAAmB,EAAE,EAAE,CAAC,CAAC;IACtD,IAAI,EAAE,CAAC,IAAsB,EAA+B,EAAE,CAC5D,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC;IAChD,OAAO,EAAE,CAAC,IAAyB,EAAkC,EAAE,CACrE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,SAAS,EAAE,IAAI,CAAC;CACpD,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { VidraBridge } from "../bridge.js";
|
|
2
2
|
export interface RequestPermissionResult {
|
|
3
3
|
granted: boolean;
|
|
4
4
|
}
|
|
@@ -9,10 +9,9 @@ export interface ShowArgs {
|
|
|
9
9
|
export interface ShowResult {
|
|
10
10
|
scheduled: boolean;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
12
|
+
export declare const createNotifications: (bridge: VidraBridge) => {
|
|
13
|
+
show: (args: ShowArgs) => Promise<ShowResult>;
|
|
14
|
+
requestPermission: () => Promise<RequestPermissionResult>;
|
|
15
|
+
};
|
|
16
|
+
export type Notifications = ReturnType<typeof createNotifications>;
|
|
18
17
|
//# sourceMappingURL=notifications.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../src/generated/notifications.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../src/generated/notifications.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,mBAAmB,WAAY,WAAW;IACrD,IAAI,SAAS,QAAQ,KAAG,OAAO,CAAC,UAAU,CAAC;IAE3C,iBAAiB,QAAM,OAAO,CAAC,uBAAuB,CAAC;CAEvD,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
show(args) {
|
|
6
|
-
return this.client.unsafe.invoke("notifications", "show", args);
|
|
7
|
-
}
|
|
8
|
-
requestPermission() {
|
|
9
|
-
return this.client.unsafe.invoke("notifications", "requestPermission");
|
|
10
|
-
}
|
|
11
|
-
}
|
|
1
|
+
export const createNotifications = (bridge) => ({
|
|
2
|
+
show: (args) => bridge.unsafe.invoke("notifications", "show", args),
|
|
3
|
+
requestPermission: () => bridge.unsafe.invoke("notifications", "requestPermission"),
|
|
4
|
+
});
|
|
12
5
|
//# sourceMappingURL=notifications.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../src/generated/notifications.ts"],"names":[],"mappings":"AAgBA,MAAM,
|
|
1
|
+
{"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../src/generated/notifications.ts"],"names":[],"mappings":"AAgBA,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,MAAmB,EAAE,EAAE,CAAC,CAAC;IAC3D,IAAI,EAAE,CAAC,IAAc,EAAuB,EAAE,CAC5C,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,EAAE,IAAI,CAAC;IACrD,iBAAiB,EAAE,GAAqC,EAAE,CACxD,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,eAAe,EAAE,mBAAmB,CAAC;CAC7D,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { VidraBridge } from "../bridge.js";
|
|
2
2
|
export interface PreferencesClearResult {
|
|
3
3
|
success: boolean;
|
|
4
4
|
}
|
|
@@ -27,13 +27,12 @@ export interface PreferencesSetArgs {
|
|
|
27
27
|
export interface PreferencesSetResult {
|
|
28
28
|
success: boolean;
|
|
29
29
|
}
|
|
30
|
-
export declare
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
30
|
+
export declare const createPreferences: (bridge: VidraBridge) => {
|
|
31
|
+
get: (args: PreferencesGetArgs) => Promise<PreferencesGetResult>;
|
|
32
|
+
set: (args: PreferencesSetArgs) => Promise<PreferencesSetResult>;
|
|
33
|
+
remove: (args: PreferencesRemoveArgs) => Promise<PreferencesRemoveResult>;
|
|
34
|
+
containsKey: (args: PreferencesContainsArgs) => Promise<PreferencesContainsResult>;
|
|
35
|
+
clear: () => Promise<PreferencesClearResult>;
|
|
36
|
+
};
|
|
37
|
+
export type Preferences = ReturnType<typeof createPreferences>;
|
|
39
38
|
//# sourceMappingURL=preferences.d.ts.map
|