@vicinae/api 0.3.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/README.md +37 -0
- package/bin/run.js +9 -0
- package/dist/api/ai.d.ts +110 -0
- package/dist/api/ai.js +120 -0
- package/dist/api/alert.d.ts +22 -0
- package/dist/api/alert.js +61 -0
- package/dist/api/bus.d.ts +95 -0
- package/dist/api/bus.js +211 -0
- package/dist/api/cache.d.ts +117 -0
- package/dist/api/cache.js +52 -0
- package/dist/api/clipboard.d.ts +34 -0
- package/dist/api/clipboard.js +52 -0
- package/dist/api/color.d.ts +24 -0
- package/dist/api/color.js +24 -0
- package/dist/api/components/action-pannel.d.ts +23 -0
- package/dist/api/components/action-pannel.js +30 -0
- package/dist/api/components/actions.d.ts +52 -0
- package/dist/api/components/actions.js +81 -0
- package/dist/api/components/detail.d.ts +21 -0
- package/dist/api/components/detail.js +12 -0
- package/dist/api/components/dropdown.d.ts +36 -0
- package/dist/api/components/dropdown.js +21 -0
- package/dist/api/components/empty-view.d.ts +9 -0
- package/dist/api/components/empty-view.js +12 -0
- package/dist/api/components/form.d.ts +81 -0
- package/dist/api/components/form.js +53 -0
- package/dist/api/components/grid.d.ts +117 -0
- package/dist/api/components/grid.js +80 -0
- package/dist/api/components/index.d.ts +7 -0
- package/dist/api/components/index.js +23 -0
- package/dist/api/components/list.d.ts +109 -0
- package/dist/api/components/list.js +53 -0
- package/dist/api/components/menu-bar.d.ts +26 -0
- package/dist/api/components/menu-bar.js +25 -0
- package/dist/api/components/metadata.d.ts +23 -0
- package/dist/api/components/metadata.js +27 -0
- package/dist/api/components/tag.d.ts +16 -0
- package/dist/api/components/tag.js +28 -0
- package/dist/api/context/index.d.ts +1 -0
- package/dist/api/context/index.js +17 -0
- package/dist/api/context/navigation-context.d.ts +7 -0
- package/dist/api/context/navigation-context.js +8 -0
- package/dist/api/context/navigation-provider.d.ts +4 -0
- package/dist/api/context/navigation-provider.js +40 -0
- package/dist/api/controls.d.ts +3 -0
- package/dist/api/controls.js +20 -0
- package/dist/api/environment.d.ts +118 -0
- package/dist/api/environment.js +17 -0
- package/dist/api/hooks/index.d.ts +2 -0
- package/dist/api/hooks/index.js +18 -0
- package/dist/api/hooks/use-applications.d.ts +2 -0
- package/dist/api/hooks/use-applications.js +19 -0
- package/dist/api/hooks/use-imperative-form-handle.d.ts +3 -0
- package/dist/api/hooks/use-imperative-form-handle.js +25 -0
- package/dist/api/hooks/use-navigation.d.ts +4 -0
- package/dist/api/hooks/use-navigation.js +13 -0
- package/dist/api/hooks.d.ts +1 -0
- package/dist/api/hooks.js +24 -0
- package/dist/api/icon.d.ts +444 -0
- package/dist/api/icon.js +448 -0
- package/dist/api/image.d.ts +35 -0
- package/dist/api/image.js +84 -0
- package/dist/api/index.d.ts +19 -0
- package/dist/api/index.js +35 -0
- package/dist/api/keyboard.d.ts +16 -0
- package/dist/api/keyboard.js +12 -0
- package/dist/api/lib/result.d.ts +9 -0
- package/dist/api/lib/result.js +11 -0
- package/dist/api/local-storage.d.ts +13 -0
- package/dist/api/local-storage.js +31 -0
- package/dist/api/oauth.d.ts +319 -0
- package/dist/api/oauth.js +166 -0
- package/dist/api/preference.d.ts +5 -0
- package/dist/api/preference.js +18 -0
- package/dist/api/proto/application.d.ts +48 -0
- package/dist/api/proto/application.js +378 -0
- package/dist/api/proto/clipboard.d.ts +65 -0
- package/dist/api/proto/clipboard.js +614 -0
- package/dist/api/proto/common.d.ts +28 -0
- package/dist/api/proto/common.js +102 -0
- package/dist/api/proto/extension.d.ts +68 -0
- package/dist/api/proto/extension.js +604 -0
- package/dist/api/proto/google/protobuf/struct.d.ts +107 -0
- package/dist/api/proto/google/protobuf/struct.js +456 -0
- package/dist/api/proto/ipc.d.ts +64 -0
- package/dist/api/proto/ipc.js +604 -0
- package/dist/api/proto/manager.d.ts +82 -0
- package/dist/api/proto/manager.js +689 -0
- package/dist/api/proto/oauth.d.ts +55 -0
- package/dist/api/proto/oauth.js +379 -0
- package/dist/api/proto/storage.d.ts +80 -0
- package/dist/api/proto/storage.js +804 -0
- package/dist/api/proto/ui.d.ts +186 -0
- package/dist/api/proto/ui.js +1993 -0
- package/dist/api/toast.d.ts +168 -0
- package/dist/api/toast.js +152 -0
- package/dist/api/utils.d.ts +15 -0
- package/dist/api/utils.js +64 -0
- package/dist/commands/build/index.d.ts +11 -0
- package/dist/commands/build/index.js +123 -0
- package/dist/commands/develop/index.d.ts +10 -0
- package/dist/commands/develop/index.js +193 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +17 -0
- package/dist/schemas/manifest.d.ts +75 -0
- package/dist/schemas/manifest.js +4 -0
- package/dist/utils/logger.d.ts +13 -0
- package/dist/utils/logger.js +38 -0
- package/dist/utils/utils.d.ts +2 -0
- package/dist/utils/utils.js +19 -0
- package/dist/utils/vicinae.d.ts +12 -0
- package/dist/utils/vicinae.js +33 -0
- package/package.json +73 -0
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.7.5
|
|
5
|
+
// protoc v6.31.1
|
|
6
|
+
// source: application.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.Application = exports.Response = exports.Request = exports.ListApplicationResponse = exports.ListApplicationRequest = exports.OpenApplicationRequest = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
+
exports.protobufPackage = "proto.ext.application";
|
|
12
|
+
function createBaseOpenApplicationRequest() {
|
|
13
|
+
return { target: "", appId: undefined };
|
|
14
|
+
}
|
|
15
|
+
exports.OpenApplicationRequest = {
|
|
16
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
17
|
+
if (message.target !== "") {
|
|
18
|
+
writer.uint32(10).string(message.target);
|
|
19
|
+
}
|
|
20
|
+
if (message.appId !== undefined) {
|
|
21
|
+
writer.uint32(18).string(message.appId);
|
|
22
|
+
}
|
|
23
|
+
return writer;
|
|
24
|
+
},
|
|
25
|
+
decode(input, length) {
|
|
26
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
27
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
+
const message = createBaseOpenApplicationRequest();
|
|
29
|
+
while (reader.pos < end) {
|
|
30
|
+
const tag = reader.uint32();
|
|
31
|
+
switch (tag >>> 3) {
|
|
32
|
+
case 1: {
|
|
33
|
+
if (tag !== 10) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
message.target = reader.string();
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
case 2: {
|
|
40
|
+
if (tag !== 18) {
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
message.appId = reader.string();
|
|
44
|
+
continue;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
reader.skip(tag & 7);
|
|
51
|
+
}
|
|
52
|
+
return message;
|
|
53
|
+
},
|
|
54
|
+
fromJSON(object) {
|
|
55
|
+
return {
|
|
56
|
+
target: isSet(object.target) ? globalThis.String(object.target) : "",
|
|
57
|
+
appId: isSet(object.appId) ? globalThis.String(object.appId) : undefined,
|
|
58
|
+
};
|
|
59
|
+
},
|
|
60
|
+
toJSON(message) {
|
|
61
|
+
const obj = {};
|
|
62
|
+
if (message.target !== "") {
|
|
63
|
+
obj.target = message.target;
|
|
64
|
+
}
|
|
65
|
+
if (message.appId !== undefined) {
|
|
66
|
+
obj.appId = message.appId;
|
|
67
|
+
}
|
|
68
|
+
return obj;
|
|
69
|
+
},
|
|
70
|
+
create(base) {
|
|
71
|
+
return exports.OpenApplicationRequest.fromPartial(base ?? {});
|
|
72
|
+
},
|
|
73
|
+
fromPartial(object) {
|
|
74
|
+
const message = createBaseOpenApplicationRequest();
|
|
75
|
+
message.target = object.target ?? "";
|
|
76
|
+
message.appId = object.appId ?? undefined;
|
|
77
|
+
return message;
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
function createBaseListApplicationRequest() {
|
|
81
|
+
return {};
|
|
82
|
+
}
|
|
83
|
+
exports.ListApplicationRequest = {
|
|
84
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
85
|
+
return writer;
|
|
86
|
+
},
|
|
87
|
+
decode(input, length) {
|
|
88
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
89
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
90
|
+
const message = createBaseListApplicationRequest();
|
|
91
|
+
while (reader.pos < end) {
|
|
92
|
+
const tag = reader.uint32();
|
|
93
|
+
switch (tag >>> 3) {
|
|
94
|
+
}
|
|
95
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
reader.skip(tag & 7);
|
|
99
|
+
}
|
|
100
|
+
return message;
|
|
101
|
+
},
|
|
102
|
+
fromJSON(_) {
|
|
103
|
+
return {};
|
|
104
|
+
},
|
|
105
|
+
toJSON(_) {
|
|
106
|
+
const obj = {};
|
|
107
|
+
return obj;
|
|
108
|
+
},
|
|
109
|
+
create(base) {
|
|
110
|
+
return exports.ListApplicationRequest.fromPartial(base ?? {});
|
|
111
|
+
},
|
|
112
|
+
fromPartial(_) {
|
|
113
|
+
const message = createBaseListApplicationRequest();
|
|
114
|
+
return message;
|
|
115
|
+
},
|
|
116
|
+
};
|
|
117
|
+
function createBaseListApplicationResponse() {
|
|
118
|
+
return { apps: [] };
|
|
119
|
+
}
|
|
120
|
+
exports.ListApplicationResponse = {
|
|
121
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
122
|
+
for (const v of message.apps) {
|
|
123
|
+
exports.Application.encode(v, writer.uint32(10).fork()).join();
|
|
124
|
+
}
|
|
125
|
+
return writer;
|
|
126
|
+
},
|
|
127
|
+
decode(input, length) {
|
|
128
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
129
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
130
|
+
const message = createBaseListApplicationResponse();
|
|
131
|
+
while (reader.pos < end) {
|
|
132
|
+
const tag = reader.uint32();
|
|
133
|
+
switch (tag >>> 3) {
|
|
134
|
+
case 1: {
|
|
135
|
+
if (tag !== 10) {
|
|
136
|
+
break;
|
|
137
|
+
}
|
|
138
|
+
message.apps.push(exports.Application.decode(reader, reader.uint32()));
|
|
139
|
+
continue;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
145
|
+
reader.skip(tag & 7);
|
|
146
|
+
}
|
|
147
|
+
return message;
|
|
148
|
+
},
|
|
149
|
+
fromJSON(object) {
|
|
150
|
+
return { apps: globalThis.Array.isArray(object?.apps) ? object.apps.map((e) => exports.Application.fromJSON(e)) : [] };
|
|
151
|
+
},
|
|
152
|
+
toJSON(message) {
|
|
153
|
+
const obj = {};
|
|
154
|
+
if (message.apps?.length) {
|
|
155
|
+
obj.apps = message.apps.map((e) => exports.Application.toJSON(e));
|
|
156
|
+
}
|
|
157
|
+
return obj;
|
|
158
|
+
},
|
|
159
|
+
create(base) {
|
|
160
|
+
return exports.ListApplicationResponse.fromPartial(base ?? {});
|
|
161
|
+
},
|
|
162
|
+
fromPartial(object) {
|
|
163
|
+
const message = createBaseListApplicationResponse();
|
|
164
|
+
message.apps = object.apps?.map((e) => exports.Application.fromPartial(e)) || [];
|
|
165
|
+
return message;
|
|
166
|
+
},
|
|
167
|
+
};
|
|
168
|
+
function createBaseRequest() {
|
|
169
|
+
return { list: undefined, open: undefined };
|
|
170
|
+
}
|
|
171
|
+
exports.Request = {
|
|
172
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
173
|
+
if (message.list !== undefined) {
|
|
174
|
+
exports.ListApplicationRequest.encode(message.list, writer.uint32(10).fork()).join();
|
|
175
|
+
}
|
|
176
|
+
if (message.open !== undefined) {
|
|
177
|
+
exports.OpenApplicationRequest.encode(message.open, writer.uint32(18).fork()).join();
|
|
178
|
+
}
|
|
179
|
+
return writer;
|
|
180
|
+
},
|
|
181
|
+
decode(input, length) {
|
|
182
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
183
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
184
|
+
const message = createBaseRequest();
|
|
185
|
+
while (reader.pos < end) {
|
|
186
|
+
const tag = reader.uint32();
|
|
187
|
+
switch (tag >>> 3) {
|
|
188
|
+
case 1: {
|
|
189
|
+
if (tag !== 10) {
|
|
190
|
+
break;
|
|
191
|
+
}
|
|
192
|
+
message.list = exports.ListApplicationRequest.decode(reader, reader.uint32());
|
|
193
|
+
continue;
|
|
194
|
+
}
|
|
195
|
+
case 2: {
|
|
196
|
+
if (tag !== 18) {
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
message.open = exports.OpenApplicationRequest.decode(reader, reader.uint32());
|
|
200
|
+
continue;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
204
|
+
break;
|
|
205
|
+
}
|
|
206
|
+
reader.skip(tag & 7);
|
|
207
|
+
}
|
|
208
|
+
return message;
|
|
209
|
+
},
|
|
210
|
+
fromJSON(object) {
|
|
211
|
+
return {
|
|
212
|
+
list: isSet(object.list) ? exports.ListApplicationRequest.fromJSON(object.list) : undefined,
|
|
213
|
+
open: isSet(object.open) ? exports.OpenApplicationRequest.fromJSON(object.open) : undefined,
|
|
214
|
+
};
|
|
215
|
+
},
|
|
216
|
+
toJSON(message) {
|
|
217
|
+
const obj = {};
|
|
218
|
+
if (message.list !== undefined) {
|
|
219
|
+
obj.list = exports.ListApplicationRequest.toJSON(message.list);
|
|
220
|
+
}
|
|
221
|
+
if (message.open !== undefined) {
|
|
222
|
+
obj.open = exports.OpenApplicationRequest.toJSON(message.open);
|
|
223
|
+
}
|
|
224
|
+
return obj;
|
|
225
|
+
},
|
|
226
|
+
create(base) {
|
|
227
|
+
return exports.Request.fromPartial(base ?? {});
|
|
228
|
+
},
|
|
229
|
+
fromPartial(object) {
|
|
230
|
+
const message = createBaseRequest();
|
|
231
|
+
message.list = (object.list !== undefined && object.list !== null)
|
|
232
|
+
? exports.ListApplicationRequest.fromPartial(object.list)
|
|
233
|
+
: undefined;
|
|
234
|
+
message.open = (object.open !== undefined && object.open !== null)
|
|
235
|
+
? exports.OpenApplicationRequest.fromPartial(object.open)
|
|
236
|
+
: undefined;
|
|
237
|
+
return message;
|
|
238
|
+
},
|
|
239
|
+
};
|
|
240
|
+
function createBaseResponse() {
|
|
241
|
+
return { list: undefined };
|
|
242
|
+
}
|
|
243
|
+
exports.Response = {
|
|
244
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
245
|
+
if (message.list !== undefined) {
|
|
246
|
+
exports.ListApplicationResponse.encode(message.list, writer.uint32(10).fork()).join();
|
|
247
|
+
}
|
|
248
|
+
return writer;
|
|
249
|
+
},
|
|
250
|
+
decode(input, length) {
|
|
251
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
252
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
253
|
+
const message = createBaseResponse();
|
|
254
|
+
while (reader.pos < end) {
|
|
255
|
+
const tag = reader.uint32();
|
|
256
|
+
switch (tag >>> 3) {
|
|
257
|
+
case 1: {
|
|
258
|
+
if (tag !== 10) {
|
|
259
|
+
break;
|
|
260
|
+
}
|
|
261
|
+
message.list = exports.ListApplicationResponse.decode(reader, reader.uint32());
|
|
262
|
+
continue;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
266
|
+
break;
|
|
267
|
+
}
|
|
268
|
+
reader.skip(tag & 7);
|
|
269
|
+
}
|
|
270
|
+
return message;
|
|
271
|
+
},
|
|
272
|
+
fromJSON(object) {
|
|
273
|
+
return { list: isSet(object.list) ? exports.ListApplicationResponse.fromJSON(object.list) : undefined };
|
|
274
|
+
},
|
|
275
|
+
toJSON(message) {
|
|
276
|
+
const obj = {};
|
|
277
|
+
if (message.list !== undefined) {
|
|
278
|
+
obj.list = exports.ListApplicationResponse.toJSON(message.list);
|
|
279
|
+
}
|
|
280
|
+
return obj;
|
|
281
|
+
},
|
|
282
|
+
create(base) {
|
|
283
|
+
return exports.Response.fromPartial(base ?? {});
|
|
284
|
+
},
|
|
285
|
+
fromPartial(object) {
|
|
286
|
+
const message = createBaseResponse();
|
|
287
|
+
message.list = (object.list !== undefined && object.list !== null)
|
|
288
|
+
? exports.ListApplicationResponse.fromPartial(object.list)
|
|
289
|
+
: undefined;
|
|
290
|
+
return message;
|
|
291
|
+
},
|
|
292
|
+
};
|
|
293
|
+
function createBaseApplication() {
|
|
294
|
+
return { id: "", name: "", icon: "" };
|
|
295
|
+
}
|
|
296
|
+
exports.Application = {
|
|
297
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
298
|
+
if (message.id !== "") {
|
|
299
|
+
writer.uint32(10).string(message.id);
|
|
300
|
+
}
|
|
301
|
+
if (message.name !== "") {
|
|
302
|
+
writer.uint32(18).string(message.name);
|
|
303
|
+
}
|
|
304
|
+
if (message.icon !== "") {
|
|
305
|
+
writer.uint32(26).string(message.icon);
|
|
306
|
+
}
|
|
307
|
+
return writer;
|
|
308
|
+
},
|
|
309
|
+
decode(input, length) {
|
|
310
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
311
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
312
|
+
const message = createBaseApplication();
|
|
313
|
+
while (reader.pos < end) {
|
|
314
|
+
const tag = reader.uint32();
|
|
315
|
+
switch (tag >>> 3) {
|
|
316
|
+
case 1: {
|
|
317
|
+
if (tag !== 10) {
|
|
318
|
+
break;
|
|
319
|
+
}
|
|
320
|
+
message.id = reader.string();
|
|
321
|
+
continue;
|
|
322
|
+
}
|
|
323
|
+
case 2: {
|
|
324
|
+
if (tag !== 18) {
|
|
325
|
+
break;
|
|
326
|
+
}
|
|
327
|
+
message.name = reader.string();
|
|
328
|
+
continue;
|
|
329
|
+
}
|
|
330
|
+
case 3: {
|
|
331
|
+
if (tag !== 26) {
|
|
332
|
+
break;
|
|
333
|
+
}
|
|
334
|
+
message.icon = reader.string();
|
|
335
|
+
continue;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
339
|
+
break;
|
|
340
|
+
}
|
|
341
|
+
reader.skip(tag & 7);
|
|
342
|
+
}
|
|
343
|
+
return message;
|
|
344
|
+
},
|
|
345
|
+
fromJSON(object) {
|
|
346
|
+
return {
|
|
347
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
348
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
349
|
+
icon: isSet(object.icon) ? globalThis.String(object.icon) : "",
|
|
350
|
+
};
|
|
351
|
+
},
|
|
352
|
+
toJSON(message) {
|
|
353
|
+
const obj = {};
|
|
354
|
+
if (message.id !== "") {
|
|
355
|
+
obj.id = message.id;
|
|
356
|
+
}
|
|
357
|
+
if (message.name !== "") {
|
|
358
|
+
obj.name = message.name;
|
|
359
|
+
}
|
|
360
|
+
if (message.icon !== "") {
|
|
361
|
+
obj.icon = message.icon;
|
|
362
|
+
}
|
|
363
|
+
return obj;
|
|
364
|
+
},
|
|
365
|
+
create(base) {
|
|
366
|
+
return exports.Application.fromPartial(base ?? {});
|
|
367
|
+
},
|
|
368
|
+
fromPartial(object) {
|
|
369
|
+
const message = createBaseApplication();
|
|
370
|
+
message.id = object.id ?? "";
|
|
371
|
+
message.name = object.name ?? "";
|
|
372
|
+
message.icon = object.icon ?? "";
|
|
373
|
+
return message;
|
|
374
|
+
},
|
|
375
|
+
};
|
|
376
|
+
function isSet(value) {
|
|
377
|
+
return value !== null && value !== undefined;
|
|
378
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "proto.ext.clipboard";
|
|
3
|
+
export interface ClipboardHtmlContent {
|
|
4
|
+
html: string;
|
|
5
|
+
text: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ClipboardPathContent {
|
|
8
|
+
path: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ClipboardOptions {
|
|
11
|
+
concealed: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface CopyToClipboardRequest {
|
|
14
|
+
content: ClipboardContent | undefined;
|
|
15
|
+
options: ClipboardOptions | undefined;
|
|
16
|
+
}
|
|
17
|
+
export interface PasteToClipboardRequest {
|
|
18
|
+
content: ClipboardContent | undefined;
|
|
19
|
+
}
|
|
20
|
+
export interface ClipboardContent {
|
|
21
|
+
text?: string | undefined;
|
|
22
|
+
html?: ClipboardHtmlContent | undefined;
|
|
23
|
+
path?: ClipboardPathContent | undefined;
|
|
24
|
+
}
|
|
25
|
+
export interface CopyToClipboardResponse {
|
|
26
|
+
}
|
|
27
|
+
export interface PasteToClipboardResponse {
|
|
28
|
+
}
|
|
29
|
+
export interface Request {
|
|
30
|
+
copy?: CopyToClipboardRequest | undefined;
|
|
31
|
+
paste?: PasteToClipboardRequest | undefined;
|
|
32
|
+
}
|
|
33
|
+
export interface Response {
|
|
34
|
+
copy?: CopyToClipboardResponse | undefined;
|
|
35
|
+
paste?: PasteToClipboardResponse | undefined;
|
|
36
|
+
}
|
|
37
|
+
export declare const ClipboardHtmlContent: MessageFns<ClipboardHtmlContent>;
|
|
38
|
+
export declare const ClipboardPathContent: MessageFns<ClipboardPathContent>;
|
|
39
|
+
export declare const ClipboardOptions: MessageFns<ClipboardOptions>;
|
|
40
|
+
export declare const CopyToClipboardRequest: MessageFns<CopyToClipboardRequest>;
|
|
41
|
+
export declare const PasteToClipboardRequest: MessageFns<PasteToClipboardRequest>;
|
|
42
|
+
export declare const ClipboardContent: MessageFns<ClipboardContent>;
|
|
43
|
+
export declare const CopyToClipboardResponse: MessageFns<CopyToClipboardResponse>;
|
|
44
|
+
export declare const PasteToClipboardResponse: MessageFns<PasteToClipboardResponse>;
|
|
45
|
+
export declare const Request: MessageFns<Request>;
|
|
46
|
+
export declare const Response: MessageFns<Response>;
|
|
47
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
48
|
+
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 {} ? {
|
|
49
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
50
|
+
} : Partial<T>;
|
|
51
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
52
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
53
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
54
|
+
} & {
|
|
55
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
56
|
+
};
|
|
57
|
+
export interface MessageFns<T> {
|
|
58
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
59
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
60
|
+
fromJSON(object: any): T;
|
|
61
|
+
toJSON(message: T): unknown;
|
|
62
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
63
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
64
|
+
}
|
|
65
|
+
export {};
|