@vicinae/api 0.13.3 → 0.14.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/api/bus.d.ts +2 -0
- package/dist/api/clipboard.d.ts +34 -4
- package/dist/api/clipboard.js +38 -4
- package/dist/api/components/action-pannel.js +2 -6
- package/dist/api/components/actions.js +3 -13
- package/dist/api/components/dropdown.js +1 -2
- package/dist/api/components/empty-view.js +2 -6
- package/dist/api/components/form.js +1 -2
- package/dist/api/components/grid.d.ts +36 -40
- package/dist/api/components/grid.js +4 -35
- package/dist/api/components/list.d.ts +48 -47
- package/dist/api/components/list.js +3 -17
- package/dist/api/components/metadata.js +1 -5
- package/dist/api/components/tag.js +1 -5
- package/dist/api/controls.js +1 -0
- package/dist/api/image.d.ts +0 -7
- package/dist/api/image.js +1 -11
- package/dist/api/proto/clipboard.d.ts +23 -0
- package/dist/api/proto/clipboard.js +318 -3
- package/dist/api/proto/daemon.d.ts +23 -0
- package/dist/api/proto/daemon.js +332 -7
- package/package.json +2 -2
- package/types/jsx.d.ts +13 -11
- package/dist/api/raycast/components/action-panel.d.ts +0 -18
- package/dist/api/raycast/components/action-panel.js +0 -41
- package/dist/api/raycast/index.d.ts +0 -26
- package/dist/api/raycast/index.js +0 -50
- package/dist/api/raycast/local-storage.d.ts +0 -9
- package/dist/api/raycast/local-storage.js +0 -13
- package/dist/api/raycast/system.d.ts +0 -20
- package/dist/api/raycast/system.js +0 -73
- package/dist/api/raycast/utils.d.ts +0 -2
- package/dist/api/raycast/utils.js +0 -6
- package/dist/api/raycast/window-management.d.ts +0 -42
- package/dist/api/raycast/window-management.js +0 -82
package/dist/api/image.js
CHANGED
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.serializeProtoImage = exports.
|
|
36
|
+
exports.serializeProtoImage = exports.Image = void 0;
|
|
37
37
|
const ui = __importStar(require("./proto/ui"));
|
|
38
38
|
var Image;
|
|
39
39
|
(function (Image) {
|
|
@@ -47,16 +47,6 @@ const maskMap = {
|
|
|
47
47
|
[Image.Mask.Circle]: ui.ImageMask.Circle,
|
|
48
48
|
[Image.Mask.RoundedRectangle]: ui.ImageMask.RoundedRectangle,
|
|
49
49
|
};
|
|
50
|
-
const serializeImageLike = (image) => {
|
|
51
|
-
if (image instanceof URL) {
|
|
52
|
-
return { source: image.toString() };
|
|
53
|
-
}
|
|
54
|
-
if (typeof image == "string") {
|
|
55
|
-
return { source: image };
|
|
56
|
-
}
|
|
57
|
-
return image;
|
|
58
|
-
};
|
|
59
|
-
exports.serializeImageLike = serializeImageLike;
|
|
60
50
|
const serializeProtoImage = (image) => {
|
|
61
51
|
const serializeSource = (payload) => {
|
|
62
52
|
if (typeof payload === "object") {
|
|
@@ -10,6 +10,15 @@ export interface ClipboardPathContent {
|
|
|
10
10
|
export interface ClipboardOptions {
|
|
11
11
|
concealed: boolean;
|
|
12
12
|
}
|
|
13
|
+
export interface ClearRequest {
|
|
14
|
+
}
|
|
15
|
+
export interface ClearResponse {
|
|
16
|
+
}
|
|
17
|
+
export interface ReadContentRequest {
|
|
18
|
+
}
|
|
19
|
+
export interface ReadContentResponse {
|
|
20
|
+
content: ClipboardReadContent | undefined;
|
|
21
|
+
}
|
|
13
22
|
export interface CopyToClipboardRequest {
|
|
14
23
|
content: ClipboardContent | undefined;
|
|
15
24
|
options: ClipboardOptions | undefined;
|
|
@@ -22,6 +31,11 @@ export interface ClipboardContent {
|
|
|
22
31
|
html?: ClipboardHtmlContent | undefined;
|
|
23
32
|
path?: ClipboardPathContent | undefined;
|
|
24
33
|
}
|
|
34
|
+
export interface ClipboardReadContent {
|
|
35
|
+
text: string;
|
|
36
|
+
file?: string | undefined;
|
|
37
|
+
html?: string | undefined;
|
|
38
|
+
}
|
|
25
39
|
export interface CopyToClipboardResponse {
|
|
26
40
|
}
|
|
27
41
|
export interface PasteToClipboardResponse {
|
|
@@ -29,17 +43,26 @@ export interface PasteToClipboardResponse {
|
|
|
29
43
|
export interface Request {
|
|
30
44
|
copy?: CopyToClipboardRequest | undefined;
|
|
31
45
|
paste?: PasteToClipboardRequest | undefined;
|
|
46
|
+
readContent?: ReadContentRequest | undefined;
|
|
47
|
+
clear?: ClearRequest | undefined;
|
|
32
48
|
}
|
|
33
49
|
export interface Response {
|
|
34
50
|
copy?: CopyToClipboardResponse | undefined;
|
|
35
51
|
paste?: PasteToClipboardResponse | undefined;
|
|
52
|
+
readContent?: ReadContentResponse | undefined;
|
|
53
|
+
clear?: ClearResponse | undefined;
|
|
36
54
|
}
|
|
37
55
|
export declare const ClipboardHtmlContent: MessageFns<ClipboardHtmlContent>;
|
|
38
56
|
export declare const ClipboardPathContent: MessageFns<ClipboardPathContent>;
|
|
39
57
|
export declare const ClipboardOptions: MessageFns<ClipboardOptions>;
|
|
58
|
+
export declare const ClearRequest: MessageFns<ClearRequest>;
|
|
59
|
+
export declare const ClearResponse: MessageFns<ClearResponse>;
|
|
60
|
+
export declare const ReadContentRequest: MessageFns<ReadContentRequest>;
|
|
61
|
+
export declare const ReadContentResponse: MessageFns<ReadContentResponse>;
|
|
40
62
|
export declare const CopyToClipboardRequest: MessageFns<CopyToClipboardRequest>;
|
|
41
63
|
export declare const PasteToClipboardRequest: MessageFns<PasteToClipboardRequest>;
|
|
42
64
|
export declare const ClipboardContent: MessageFns<ClipboardContent>;
|
|
65
|
+
export declare const ClipboardReadContent: MessageFns<ClipboardReadContent>;
|
|
43
66
|
export declare const CopyToClipboardResponse: MessageFns<CopyToClipboardResponse>;
|
|
44
67
|
export declare const PasteToClipboardResponse: MessageFns<PasteToClipboardResponse>;
|
|
45
68
|
export declare const Request: MessageFns<Request>;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v6.32.0
|
|
6
6
|
// source: clipboard.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.Response = exports.Request = exports.PasteToClipboardResponse = exports.CopyToClipboardResponse = exports.ClipboardContent = exports.PasteToClipboardRequest = exports.CopyToClipboardRequest = exports.ClipboardOptions = exports.ClipboardPathContent = exports.ClipboardHtmlContent = exports.protobufPackage = void 0;
|
|
8
|
+
exports.Response = exports.Request = exports.PasteToClipboardResponse = exports.CopyToClipboardResponse = exports.ClipboardReadContent = exports.ClipboardContent = exports.PasteToClipboardRequest = exports.CopyToClipboardRequest = exports.ReadContentResponse = exports.ReadContentRequest = exports.ClearResponse = exports.ClearRequest = exports.ClipboardOptions = exports.ClipboardPathContent = exports.ClipboardHtmlContent = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
exports.protobufPackage = "proto.ext.clipboard";
|
|
@@ -179,6 +179,170 @@ exports.ClipboardOptions = {
|
|
|
179
179
|
return message;
|
|
180
180
|
},
|
|
181
181
|
};
|
|
182
|
+
function createBaseClearRequest() {
|
|
183
|
+
return {};
|
|
184
|
+
}
|
|
185
|
+
exports.ClearRequest = {
|
|
186
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
187
|
+
return writer;
|
|
188
|
+
},
|
|
189
|
+
decode(input, length) {
|
|
190
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
191
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
192
|
+
const message = createBaseClearRequest();
|
|
193
|
+
while (reader.pos < end) {
|
|
194
|
+
const tag = reader.uint32();
|
|
195
|
+
switch (tag >>> 3) {
|
|
196
|
+
}
|
|
197
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
198
|
+
break;
|
|
199
|
+
}
|
|
200
|
+
reader.skip(tag & 7);
|
|
201
|
+
}
|
|
202
|
+
return message;
|
|
203
|
+
},
|
|
204
|
+
fromJSON(_) {
|
|
205
|
+
return {};
|
|
206
|
+
},
|
|
207
|
+
toJSON(_) {
|
|
208
|
+
const obj = {};
|
|
209
|
+
return obj;
|
|
210
|
+
},
|
|
211
|
+
create(base) {
|
|
212
|
+
return exports.ClearRequest.fromPartial(base ?? {});
|
|
213
|
+
},
|
|
214
|
+
fromPartial(_) {
|
|
215
|
+
const message = createBaseClearRequest();
|
|
216
|
+
return message;
|
|
217
|
+
},
|
|
218
|
+
};
|
|
219
|
+
function createBaseClearResponse() {
|
|
220
|
+
return {};
|
|
221
|
+
}
|
|
222
|
+
exports.ClearResponse = {
|
|
223
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
224
|
+
return writer;
|
|
225
|
+
},
|
|
226
|
+
decode(input, length) {
|
|
227
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
228
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
229
|
+
const message = createBaseClearResponse();
|
|
230
|
+
while (reader.pos < end) {
|
|
231
|
+
const tag = reader.uint32();
|
|
232
|
+
switch (tag >>> 3) {
|
|
233
|
+
}
|
|
234
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
235
|
+
break;
|
|
236
|
+
}
|
|
237
|
+
reader.skip(tag & 7);
|
|
238
|
+
}
|
|
239
|
+
return message;
|
|
240
|
+
},
|
|
241
|
+
fromJSON(_) {
|
|
242
|
+
return {};
|
|
243
|
+
},
|
|
244
|
+
toJSON(_) {
|
|
245
|
+
const obj = {};
|
|
246
|
+
return obj;
|
|
247
|
+
},
|
|
248
|
+
create(base) {
|
|
249
|
+
return exports.ClearResponse.fromPartial(base ?? {});
|
|
250
|
+
},
|
|
251
|
+
fromPartial(_) {
|
|
252
|
+
const message = createBaseClearResponse();
|
|
253
|
+
return message;
|
|
254
|
+
},
|
|
255
|
+
};
|
|
256
|
+
function createBaseReadContentRequest() {
|
|
257
|
+
return {};
|
|
258
|
+
}
|
|
259
|
+
exports.ReadContentRequest = {
|
|
260
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
261
|
+
return writer;
|
|
262
|
+
},
|
|
263
|
+
decode(input, length) {
|
|
264
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
265
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
266
|
+
const message = createBaseReadContentRequest();
|
|
267
|
+
while (reader.pos < end) {
|
|
268
|
+
const tag = reader.uint32();
|
|
269
|
+
switch (tag >>> 3) {
|
|
270
|
+
}
|
|
271
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
272
|
+
break;
|
|
273
|
+
}
|
|
274
|
+
reader.skip(tag & 7);
|
|
275
|
+
}
|
|
276
|
+
return message;
|
|
277
|
+
},
|
|
278
|
+
fromJSON(_) {
|
|
279
|
+
return {};
|
|
280
|
+
},
|
|
281
|
+
toJSON(_) {
|
|
282
|
+
const obj = {};
|
|
283
|
+
return obj;
|
|
284
|
+
},
|
|
285
|
+
create(base) {
|
|
286
|
+
return exports.ReadContentRequest.fromPartial(base ?? {});
|
|
287
|
+
},
|
|
288
|
+
fromPartial(_) {
|
|
289
|
+
const message = createBaseReadContentRequest();
|
|
290
|
+
return message;
|
|
291
|
+
},
|
|
292
|
+
};
|
|
293
|
+
function createBaseReadContentResponse() {
|
|
294
|
+
return { content: undefined };
|
|
295
|
+
}
|
|
296
|
+
exports.ReadContentResponse = {
|
|
297
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
298
|
+
if (message.content !== undefined) {
|
|
299
|
+
exports.ClipboardReadContent.encode(message.content, writer.uint32(10).fork()).join();
|
|
300
|
+
}
|
|
301
|
+
return writer;
|
|
302
|
+
},
|
|
303
|
+
decode(input, length) {
|
|
304
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
305
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
306
|
+
const message = createBaseReadContentResponse();
|
|
307
|
+
while (reader.pos < end) {
|
|
308
|
+
const tag = reader.uint32();
|
|
309
|
+
switch (tag >>> 3) {
|
|
310
|
+
case 1: {
|
|
311
|
+
if (tag !== 10) {
|
|
312
|
+
break;
|
|
313
|
+
}
|
|
314
|
+
message.content = exports.ClipboardReadContent.decode(reader, reader.uint32());
|
|
315
|
+
continue;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
319
|
+
break;
|
|
320
|
+
}
|
|
321
|
+
reader.skip(tag & 7);
|
|
322
|
+
}
|
|
323
|
+
return message;
|
|
324
|
+
},
|
|
325
|
+
fromJSON(object) {
|
|
326
|
+
return { content: isSet(object.content) ? exports.ClipboardReadContent.fromJSON(object.content) : undefined };
|
|
327
|
+
},
|
|
328
|
+
toJSON(message) {
|
|
329
|
+
const obj = {};
|
|
330
|
+
if (message.content !== undefined) {
|
|
331
|
+
obj.content = exports.ClipboardReadContent.toJSON(message.content);
|
|
332
|
+
}
|
|
333
|
+
return obj;
|
|
334
|
+
},
|
|
335
|
+
create(base) {
|
|
336
|
+
return exports.ReadContentResponse.fromPartial(base ?? {});
|
|
337
|
+
},
|
|
338
|
+
fromPartial(object) {
|
|
339
|
+
const message = createBaseReadContentResponse();
|
|
340
|
+
message.content = (object.content !== undefined && object.content !== null)
|
|
341
|
+
? exports.ClipboardReadContent.fromPartial(object.content)
|
|
342
|
+
: undefined;
|
|
343
|
+
return message;
|
|
344
|
+
},
|
|
345
|
+
};
|
|
182
346
|
function createBaseCopyToClipboardRequest() {
|
|
183
347
|
return { content: undefined, options: undefined };
|
|
184
348
|
}
|
|
@@ -391,6 +555,89 @@ exports.ClipboardContent = {
|
|
|
391
555
|
return message;
|
|
392
556
|
},
|
|
393
557
|
};
|
|
558
|
+
function createBaseClipboardReadContent() {
|
|
559
|
+
return { text: "", file: undefined, html: undefined };
|
|
560
|
+
}
|
|
561
|
+
exports.ClipboardReadContent = {
|
|
562
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
563
|
+
if (message.text !== "") {
|
|
564
|
+
writer.uint32(10).string(message.text);
|
|
565
|
+
}
|
|
566
|
+
if (message.file !== undefined) {
|
|
567
|
+
writer.uint32(18).string(message.file);
|
|
568
|
+
}
|
|
569
|
+
if (message.html !== undefined) {
|
|
570
|
+
writer.uint32(26).string(message.html);
|
|
571
|
+
}
|
|
572
|
+
return writer;
|
|
573
|
+
},
|
|
574
|
+
decode(input, length) {
|
|
575
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
576
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
577
|
+
const message = createBaseClipboardReadContent();
|
|
578
|
+
while (reader.pos < end) {
|
|
579
|
+
const tag = reader.uint32();
|
|
580
|
+
switch (tag >>> 3) {
|
|
581
|
+
case 1: {
|
|
582
|
+
if (tag !== 10) {
|
|
583
|
+
break;
|
|
584
|
+
}
|
|
585
|
+
message.text = reader.string();
|
|
586
|
+
continue;
|
|
587
|
+
}
|
|
588
|
+
case 2: {
|
|
589
|
+
if (tag !== 18) {
|
|
590
|
+
break;
|
|
591
|
+
}
|
|
592
|
+
message.file = reader.string();
|
|
593
|
+
continue;
|
|
594
|
+
}
|
|
595
|
+
case 3: {
|
|
596
|
+
if (tag !== 26) {
|
|
597
|
+
break;
|
|
598
|
+
}
|
|
599
|
+
message.html = reader.string();
|
|
600
|
+
continue;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
604
|
+
break;
|
|
605
|
+
}
|
|
606
|
+
reader.skip(tag & 7);
|
|
607
|
+
}
|
|
608
|
+
return message;
|
|
609
|
+
},
|
|
610
|
+
fromJSON(object) {
|
|
611
|
+
return {
|
|
612
|
+
text: isSet(object.text) ? globalThis.String(object.text) : "",
|
|
613
|
+
file: isSet(object.file) ? globalThis.String(object.file) : undefined,
|
|
614
|
+
html: isSet(object.html) ? globalThis.String(object.html) : undefined,
|
|
615
|
+
};
|
|
616
|
+
},
|
|
617
|
+
toJSON(message) {
|
|
618
|
+
const obj = {};
|
|
619
|
+
if (message.text !== "") {
|
|
620
|
+
obj.text = message.text;
|
|
621
|
+
}
|
|
622
|
+
if (message.file !== undefined) {
|
|
623
|
+
obj.file = message.file;
|
|
624
|
+
}
|
|
625
|
+
if (message.html !== undefined) {
|
|
626
|
+
obj.html = message.html;
|
|
627
|
+
}
|
|
628
|
+
return obj;
|
|
629
|
+
},
|
|
630
|
+
create(base) {
|
|
631
|
+
return exports.ClipboardReadContent.fromPartial(base ?? {});
|
|
632
|
+
},
|
|
633
|
+
fromPartial(object) {
|
|
634
|
+
const message = createBaseClipboardReadContent();
|
|
635
|
+
message.text = object.text ?? "";
|
|
636
|
+
message.file = object.file ?? undefined;
|
|
637
|
+
message.html = object.html ?? undefined;
|
|
638
|
+
return message;
|
|
639
|
+
},
|
|
640
|
+
};
|
|
394
641
|
function createBaseCopyToClipboardResponse() {
|
|
395
642
|
return {};
|
|
396
643
|
}
|
|
@@ -466,7 +713,7 @@ exports.PasteToClipboardResponse = {
|
|
|
466
713
|
},
|
|
467
714
|
};
|
|
468
715
|
function createBaseRequest() {
|
|
469
|
-
return { copy: undefined, paste: undefined };
|
|
716
|
+
return { copy: undefined, paste: undefined, readContent: undefined, clear: undefined };
|
|
470
717
|
}
|
|
471
718
|
exports.Request = {
|
|
472
719
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -476,6 +723,12 @@ exports.Request = {
|
|
|
476
723
|
if (message.paste !== undefined) {
|
|
477
724
|
exports.PasteToClipboardRequest.encode(message.paste, writer.uint32(18).fork()).join();
|
|
478
725
|
}
|
|
726
|
+
if (message.readContent !== undefined) {
|
|
727
|
+
exports.ReadContentRequest.encode(message.readContent, writer.uint32(26).fork()).join();
|
|
728
|
+
}
|
|
729
|
+
if (message.clear !== undefined) {
|
|
730
|
+
exports.ClearRequest.encode(message.clear, writer.uint32(34).fork()).join();
|
|
731
|
+
}
|
|
479
732
|
return writer;
|
|
480
733
|
},
|
|
481
734
|
decode(input, length) {
|
|
@@ -499,6 +752,20 @@ exports.Request = {
|
|
|
499
752
|
message.paste = exports.PasteToClipboardRequest.decode(reader, reader.uint32());
|
|
500
753
|
continue;
|
|
501
754
|
}
|
|
755
|
+
case 3: {
|
|
756
|
+
if (tag !== 26) {
|
|
757
|
+
break;
|
|
758
|
+
}
|
|
759
|
+
message.readContent = exports.ReadContentRequest.decode(reader, reader.uint32());
|
|
760
|
+
continue;
|
|
761
|
+
}
|
|
762
|
+
case 4: {
|
|
763
|
+
if (tag !== 34) {
|
|
764
|
+
break;
|
|
765
|
+
}
|
|
766
|
+
message.clear = exports.ClearRequest.decode(reader, reader.uint32());
|
|
767
|
+
continue;
|
|
768
|
+
}
|
|
502
769
|
}
|
|
503
770
|
if ((tag & 7) === 4 || tag === 0) {
|
|
504
771
|
break;
|
|
@@ -511,6 +778,8 @@ exports.Request = {
|
|
|
511
778
|
return {
|
|
512
779
|
copy: isSet(object.copy) ? exports.CopyToClipboardRequest.fromJSON(object.copy) : undefined,
|
|
513
780
|
paste: isSet(object.paste) ? exports.PasteToClipboardRequest.fromJSON(object.paste) : undefined,
|
|
781
|
+
readContent: isSet(object.readContent) ? exports.ReadContentRequest.fromJSON(object.readContent) : undefined,
|
|
782
|
+
clear: isSet(object.clear) ? exports.ClearRequest.fromJSON(object.clear) : undefined,
|
|
514
783
|
};
|
|
515
784
|
},
|
|
516
785
|
toJSON(message) {
|
|
@@ -521,6 +790,12 @@ exports.Request = {
|
|
|
521
790
|
if (message.paste !== undefined) {
|
|
522
791
|
obj.paste = exports.PasteToClipboardRequest.toJSON(message.paste);
|
|
523
792
|
}
|
|
793
|
+
if (message.readContent !== undefined) {
|
|
794
|
+
obj.readContent = exports.ReadContentRequest.toJSON(message.readContent);
|
|
795
|
+
}
|
|
796
|
+
if (message.clear !== undefined) {
|
|
797
|
+
obj.clear = exports.ClearRequest.toJSON(message.clear);
|
|
798
|
+
}
|
|
524
799
|
return obj;
|
|
525
800
|
},
|
|
526
801
|
create(base) {
|
|
@@ -534,11 +809,17 @@ exports.Request = {
|
|
|
534
809
|
message.paste = (object.paste !== undefined && object.paste !== null)
|
|
535
810
|
? exports.PasteToClipboardRequest.fromPartial(object.paste)
|
|
536
811
|
: undefined;
|
|
812
|
+
message.readContent = (object.readContent !== undefined && object.readContent !== null)
|
|
813
|
+
? exports.ReadContentRequest.fromPartial(object.readContent)
|
|
814
|
+
: undefined;
|
|
815
|
+
message.clear = (object.clear !== undefined && object.clear !== null)
|
|
816
|
+
? exports.ClearRequest.fromPartial(object.clear)
|
|
817
|
+
: undefined;
|
|
537
818
|
return message;
|
|
538
819
|
},
|
|
539
820
|
};
|
|
540
821
|
function createBaseResponse() {
|
|
541
|
-
return { copy: undefined, paste: undefined };
|
|
822
|
+
return { copy: undefined, paste: undefined, readContent: undefined, clear: undefined };
|
|
542
823
|
}
|
|
543
824
|
exports.Response = {
|
|
544
825
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -548,6 +829,12 @@ exports.Response = {
|
|
|
548
829
|
if (message.paste !== undefined) {
|
|
549
830
|
exports.PasteToClipboardResponse.encode(message.paste, writer.uint32(18).fork()).join();
|
|
550
831
|
}
|
|
832
|
+
if (message.readContent !== undefined) {
|
|
833
|
+
exports.ReadContentResponse.encode(message.readContent, writer.uint32(26).fork()).join();
|
|
834
|
+
}
|
|
835
|
+
if (message.clear !== undefined) {
|
|
836
|
+
exports.ClearResponse.encode(message.clear, writer.uint32(34).fork()).join();
|
|
837
|
+
}
|
|
551
838
|
return writer;
|
|
552
839
|
},
|
|
553
840
|
decode(input, length) {
|
|
@@ -571,6 +858,20 @@ exports.Response = {
|
|
|
571
858
|
message.paste = exports.PasteToClipboardResponse.decode(reader, reader.uint32());
|
|
572
859
|
continue;
|
|
573
860
|
}
|
|
861
|
+
case 3: {
|
|
862
|
+
if (tag !== 26) {
|
|
863
|
+
break;
|
|
864
|
+
}
|
|
865
|
+
message.readContent = exports.ReadContentResponse.decode(reader, reader.uint32());
|
|
866
|
+
continue;
|
|
867
|
+
}
|
|
868
|
+
case 4: {
|
|
869
|
+
if (tag !== 34) {
|
|
870
|
+
break;
|
|
871
|
+
}
|
|
872
|
+
message.clear = exports.ClearResponse.decode(reader, reader.uint32());
|
|
873
|
+
continue;
|
|
874
|
+
}
|
|
574
875
|
}
|
|
575
876
|
if ((tag & 7) === 4 || tag === 0) {
|
|
576
877
|
break;
|
|
@@ -583,6 +884,8 @@ exports.Response = {
|
|
|
583
884
|
return {
|
|
584
885
|
copy: isSet(object.copy) ? exports.CopyToClipboardResponse.fromJSON(object.copy) : undefined,
|
|
585
886
|
paste: isSet(object.paste) ? exports.PasteToClipboardResponse.fromJSON(object.paste) : undefined,
|
|
887
|
+
readContent: isSet(object.readContent) ? exports.ReadContentResponse.fromJSON(object.readContent) : undefined,
|
|
888
|
+
clear: isSet(object.clear) ? exports.ClearResponse.fromJSON(object.clear) : undefined,
|
|
586
889
|
};
|
|
587
890
|
},
|
|
588
891
|
toJSON(message) {
|
|
@@ -593,6 +896,12 @@ exports.Response = {
|
|
|
593
896
|
if (message.paste !== undefined) {
|
|
594
897
|
obj.paste = exports.PasteToClipboardResponse.toJSON(message.paste);
|
|
595
898
|
}
|
|
899
|
+
if (message.readContent !== undefined) {
|
|
900
|
+
obj.readContent = exports.ReadContentResponse.toJSON(message.readContent);
|
|
901
|
+
}
|
|
902
|
+
if (message.clear !== undefined) {
|
|
903
|
+
obj.clear = exports.ClearResponse.toJSON(message.clear);
|
|
904
|
+
}
|
|
596
905
|
return obj;
|
|
597
906
|
},
|
|
598
907
|
create(base) {
|
|
@@ -606,6 +915,12 @@ exports.Response = {
|
|
|
606
915
|
message.paste = (object.paste !== undefined && object.paste !== null)
|
|
607
916
|
? exports.PasteToClipboardResponse.fromPartial(object.paste)
|
|
608
917
|
: undefined;
|
|
918
|
+
message.readContent = (object.readContent !== undefined && object.readContent !== null)
|
|
919
|
+
? exports.ReadContentResponse.fromPartial(object.readContent)
|
|
920
|
+
: undefined;
|
|
921
|
+
message.clear = (object.clear !== undefined && object.clear !== null)
|
|
922
|
+
? exports.ClearResponse.fromPartial(object.clear)
|
|
923
|
+
: undefined;
|
|
609
924
|
return message;
|
|
610
925
|
},
|
|
611
926
|
};
|
|
@@ -5,14 +5,37 @@ export interface UrlResponse {
|
|
|
5
5
|
export interface UrlRequest {
|
|
6
6
|
url: string;
|
|
7
7
|
}
|
|
8
|
+
export interface PingRequest {
|
|
9
|
+
}
|
|
10
|
+
export interface PingResponse {
|
|
11
|
+
}
|
|
12
|
+
export interface DmenuRequest {
|
|
13
|
+
rawContent: string;
|
|
14
|
+
navigationTitle: string;
|
|
15
|
+
placeholder: string;
|
|
16
|
+
noIcon: boolean;
|
|
17
|
+
sectionTitle: string;
|
|
18
|
+
noSection: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface DmenuResponse {
|
|
21
|
+
output: string;
|
|
22
|
+
}
|
|
8
23
|
export interface Request {
|
|
24
|
+
ping?: PingRequest | undefined;
|
|
9
25
|
url?: UrlRequest | undefined;
|
|
26
|
+
dmenu?: DmenuRequest | undefined;
|
|
10
27
|
}
|
|
11
28
|
export interface Response {
|
|
29
|
+
ping?: PingResponse | undefined;
|
|
12
30
|
url?: UrlResponse | undefined;
|
|
31
|
+
dmenu?: DmenuResponse | undefined;
|
|
13
32
|
}
|
|
14
33
|
export declare const UrlResponse: MessageFns<UrlResponse>;
|
|
15
34
|
export declare const UrlRequest: MessageFns<UrlRequest>;
|
|
35
|
+
export declare const PingRequest: MessageFns<PingRequest>;
|
|
36
|
+
export declare const PingResponse: MessageFns<PingResponse>;
|
|
37
|
+
export declare const DmenuRequest: MessageFns<DmenuRequest>;
|
|
38
|
+
export declare const DmenuResponse: MessageFns<DmenuResponse>;
|
|
16
39
|
export declare const Request: MessageFns<Request>;
|
|
17
40
|
export declare const Response: MessageFns<Response>;
|
|
18
41
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|