@vicinae/api 0.9.0 → 0.9.2
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/api/ai.js +2 -41
- package/dist/api/alert.js +8 -21
- package/dist/api/bus.d.ts +10 -7
- package/dist/api/bus.js +0 -33
- package/dist/api/cache.d.ts +64 -73
- package/dist/api/cache.js +163 -14
- package/dist/api/clipboard.d.ts +1 -1
- package/dist/api/clipboard.js +3 -9
- package/dist/api/controls.d.ts +3 -0
- package/dist/api/controls.js +5 -1
- package/dist/api/environment.d.ts +5 -0
- package/dist/api/file-search.d.ts +49 -0
- package/dist/api/file-search.js +49 -0
- package/dist/api/index.d.ts +2 -1
- package/dist/api/index.js +2 -1
- package/dist/api/lib/result.d.ts +3 -1
- package/dist/api/lib/result.js +2 -2
- package/dist/api/preference.js +2 -3
- package/dist/api/proto/application.d.ts +14 -0
- package/dist/api/proto/application.js +207 -37
- package/dist/api/proto/clipboard.js +38 -71
- package/dist/api/proto/common.js +2 -6
- package/dist/api/proto/daemon.js +5 -15
- package/dist/api/proto/extension.d.ts +16 -10
- package/dist/api/proto/extension.js +118 -91
- package/dist/api/proto/file-search.d.ts +42 -0
- package/dist/api/proto/file-search.js +290 -0
- package/dist/api/proto/google/protobuf/struct.js +9 -26
- package/dist/api/proto/ipc.js +53 -100
- package/dist/api/proto/manager.d.ts +2 -0
- package/dist/api/proto/manager.js +54 -49
- package/dist/api/proto/oauth.js +15 -33
- package/dist/api/proto/storage.js +29 -67
- package/dist/api/proto/ui.d.ts +11 -2
- package/dist/api/proto/ui.js +267 -254
- package/dist/api/proto/wlr-clipboard.js +4 -12
- package/dist/api/proto/wm.d.ts +111 -0
- package/dist/api/proto/wm.js +1266 -0
- package/dist/api/raycast/index.d.ts +24 -0
- package/dist/api/raycast/index.js +40 -0
- package/dist/api/raycast/system.d.ts +20 -0
- package/dist/api/raycast/system.js +73 -0
- package/dist/api/raycast/window-management.d.ts +42 -0
- package/dist/api/raycast/window-management.js +82 -0
- package/dist/api/toast.js +47 -5
- package/dist/api/utils.d.ts +5 -11
- package/dist/api/utils.js +20 -31
- package/dist/api/window-management.d.ts +39 -0
- package/dist/api/window-management.js +55 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.7.
|
|
4
|
+
// protoc-gen-ts_proto v2.7.7
|
|
5
5
|
// protoc v6.31.1
|
|
6
6
|
// source: wlr-clipboard.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -53,12 +53,8 @@ exports.Offer = {
|
|
|
53
53
|
},
|
|
54
54
|
fromJSON(object) {
|
|
55
55
|
return {
|
|
56
|
-
data: isSet(object.data)
|
|
57
|
-
|
|
58
|
-
: new Uint8Array(0),
|
|
59
|
-
mimeType: isSet(object.mimeType)
|
|
60
|
-
? globalThis.String(object.mimeType)
|
|
61
|
-
: "",
|
|
56
|
+
data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(0),
|
|
57
|
+
mimeType: isSet(object.mimeType) ? globalThis.String(object.mimeType) : "",
|
|
62
58
|
};
|
|
63
59
|
},
|
|
64
60
|
toJSON(message) {
|
|
@@ -114,11 +110,7 @@ exports.Selection = {
|
|
|
114
110
|
return message;
|
|
115
111
|
},
|
|
116
112
|
fromJSON(object) {
|
|
117
|
-
return {
|
|
118
|
-
offers: globalThis.Array.isArray(object?.offers)
|
|
119
|
-
? object.offers.map((e) => exports.Offer.fromJSON(e))
|
|
120
|
-
: [],
|
|
121
|
-
};
|
|
113
|
+
return { offers: globalThis.Array.isArray(object?.offers) ? object.offers.map((e) => exports.Offer.fromJSON(e)) : [] };
|
|
122
114
|
},
|
|
123
115
|
toJSON(message) {
|
|
124
116
|
const obj = {};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { Application } from "./application";
|
|
3
|
+
export declare const protobufPackage = "proto.ext.wm";
|
|
4
|
+
export interface Window {
|
|
5
|
+
id: string;
|
|
6
|
+
workspaceId: string;
|
|
7
|
+
active: boolean;
|
|
8
|
+
fullscreen: boolean;
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
app?: Application | undefined;
|
|
14
|
+
}
|
|
15
|
+
export interface Workspace {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
active: boolean;
|
|
19
|
+
fullscreen: boolean;
|
|
20
|
+
monitor: string;
|
|
21
|
+
}
|
|
22
|
+
export interface PingRequest {
|
|
23
|
+
}
|
|
24
|
+
export interface PingResponse {
|
|
25
|
+
ok: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface GetActiveWindowRequest {
|
|
28
|
+
}
|
|
29
|
+
export interface GetActiveWindowResponse {
|
|
30
|
+
window: Window | undefined;
|
|
31
|
+
}
|
|
32
|
+
export interface GetWorkspacesRequest {
|
|
33
|
+
}
|
|
34
|
+
export interface GetWorkspacesResponse {
|
|
35
|
+
workspaces: Workspace[];
|
|
36
|
+
}
|
|
37
|
+
export interface GetActiveWorkspaceRequest {
|
|
38
|
+
}
|
|
39
|
+
export interface GetActiveWorkspaceResponse {
|
|
40
|
+
workspace: Workspace | undefined;
|
|
41
|
+
}
|
|
42
|
+
export interface GetActiveWorkspaceWindowsRequest {
|
|
43
|
+
}
|
|
44
|
+
export interface GetActiveWorkspaceWindowsResponse {
|
|
45
|
+
windows: Window[];
|
|
46
|
+
}
|
|
47
|
+
export interface GetWindowsRequest {
|
|
48
|
+
workspaceId?: string | undefined;
|
|
49
|
+
}
|
|
50
|
+
export interface GetWindowsResponse {
|
|
51
|
+
windows: Window[];
|
|
52
|
+
}
|
|
53
|
+
export interface SetWindowBoundsRequest {
|
|
54
|
+
id: string;
|
|
55
|
+
workspaceId?: string | undefined;
|
|
56
|
+
}
|
|
57
|
+
export interface SetWindowBoundsResponse {
|
|
58
|
+
}
|
|
59
|
+
export interface Request {
|
|
60
|
+
ping?: PingRequest | undefined;
|
|
61
|
+
getActiveWindow?: GetActiveWindowRequest | undefined;
|
|
62
|
+
getActiveWorkspace?: GetActiveWorkspaceRequest | undefined;
|
|
63
|
+
getWindows?: GetWindowsRequest | undefined;
|
|
64
|
+
getWorkspaces?: GetWorkspacesRequest | undefined;
|
|
65
|
+
setWindowBounds?: SetWindowBoundsRequest | undefined;
|
|
66
|
+
}
|
|
67
|
+
export interface Response {
|
|
68
|
+
ping?: PingResponse | undefined;
|
|
69
|
+
getActiveWindow?: GetActiveWindowResponse | undefined;
|
|
70
|
+
getActiveWorkspace?: GetActiveWorkspaceResponse | undefined;
|
|
71
|
+
getWindows?: GetWindowsResponse | undefined;
|
|
72
|
+
getWorkspaces?: GetWorkspacesResponse | undefined;
|
|
73
|
+
setWindowBounds?: SetWindowBoundsResponse | undefined;
|
|
74
|
+
}
|
|
75
|
+
export declare const Window: MessageFns<Window>;
|
|
76
|
+
export declare const Workspace: MessageFns<Workspace>;
|
|
77
|
+
export declare const PingRequest: MessageFns<PingRequest>;
|
|
78
|
+
export declare const PingResponse: MessageFns<PingResponse>;
|
|
79
|
+
export declare const GetActiveWindowRequest: MessageFns<GetActiveWindowRequest>;
|
|
80
|
+
export declare const GetActiveWindowResponse: MessageFns<GetActiveWindowResponse>;
|
|
81
|
+
export declare const GetWorkspacesRequest: MessageFns<GetWorkspacesRequest>;
|
|
82
|
+
export declare const GetWorkspacesResponse: MessageFns<GetWorkspacesResponse>;
|
|
83
|
+
export declare const GetActiveWorkspaceRequest: MessageFns<GetActiveWorkspaceRequest>;
|
|
84
|
+
export declare const GetActiveWorkspaceResponse: MessageFns<GetActiveWorkspaceResponse>;
|
|
85
|
+
export declare const GetActiveWorkspaceWindowsRequest: MessageFns<GetActiveWorkspaceWindowsRequest>;
|
|
86
|
+
export declare const GetActiveWorkspaceWindowsResponse: MessageFns<GetActiveWorkspaceWindowsResponse>;
|
|
87
|
+
export declare const GetWindowsRequest: MessageFns<GetWindowsRequest>;
|
|
88
|
+
export declare const GetWindowsResponse: MessageFns<GetWindowsResponse>;
|
|
89
|
+
export declare const SetWindowBoundsRequest: MessageFns<SetWindowBoundsRequest>;
|
|
90
|
+
export declare const SetWindowBoundsResponse: MessageFns<SetWindowBoundsResponse>;
|
|
91
|
+
export declare const Request: MessageFns<Request>;
|
|
92
|
+
export declare const Response: MessageFns<Response>;
|
|
93
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
94
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
95
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
96
|
+
} : Partial<T>;
|
|
97
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
98
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
99
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
100
|
+
} & {
|
|
101
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
102
|
+
};
|
|
103
|
+
export interface MessageFns<T> {
|
|
104
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
105
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
106
|
+
fromJSON(object: any): T;
|
|
107
|
+
toJSON(message: T): unknown;
|
|
108
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
109
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
110
|
+
}
|
|
111
|
+
export {};
|