@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: manager.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -131,15 +131,9 @@ exports.RequestData = {
|
|
|
131
131
|
},
|
|
132
132
|
fromJSON(object) {
|
|
133
133
|
return {
|
|
134
|
-
ping: isSet(object.ping)
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
load: isSet(object.load)
|
|
138
|
-
? exports.ManagerLoadCommand.fromJSON(object.load)
|
|
139
|
-
: undefined,
|
|
140
|
-
unload: isSet(object.unload)
|
|
141
|
-
? exports.ManagerUnloadCommand.fromJSON(object.unload)
|
|
142
|
-
: undefined,
|
|
134
|
+
ping: isSet(object.ping) ? exports.ManagerPingRequestData.fromJSON(object.ping) : undefined,
|
|
135
|
+
load: isSet(object.load) ? exports.ManagerLoadCommand.fromJSON(object.load) : undefined,
|
|
136
|
+
unload: isSet(object.unload) ? exports.ManagerUnloadCommand.fromJSON(object.unload) : undefined,
|
|
143
137
|
};
|
|
144
138
|
},
|
|
145
139
|
toJSON(message) {
|
|
@@ -160,18 +154,15 @@ exports.RequestData = {
|
|
|
160
154
|
},
|
|
161
155
|
fromPartial(object) {
|
|
162
156
|
const message = createBaseRequestData();
|
|
163
|
-
message.ping =
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
object.unload !== undefined && object.unload !== null
|
|
173
|
-
? exports.ManagerUnloadCommand.fromPartial(object.unload)
|
|
174
|
-
: undefined;
|
|
157
|
+
message.ping = (object.ping !== undefined && object.ping !== null)
|
|
158
|
+
? exports.ManagerPingRequestData.fromPartial(object.ping)
|
|
159
|
+
: undefined;
|
|
160
|
+
message.load = (object.load !== undefined && object.load !== null)
|
|
161
|
+
? exports.ManagerLoadCommand.fromPartial(object.load)
|
|
162
|
+
: undefined;
|
|
163
|
+
message.unload = (object.unload !== undefined && object.unload !== null)
|
|
164
|
+
? exports.ManagerUnloadCommand.fromPartial(object.unload)
|
|
165
|
+
: undefined;
|
|
175
166
|
return message;
|
|
176
167
|
},
|
|
177
168
|
};
|
|
@@ -257,9 +248,7 @@ exports.ResponseData = {
|
|
|
257
248
|
fromJSON(object) {
|
|
258
249
|
return {
|
|
259
250
|
ack: isSet(object.ack) ? common_1.AckResponse.fromJSON(object.ack) : undefined,
|
|
260
|
-
load: isSet(object.load)
|
|
261
|
-
? exports.ManagerLoadResponseData.fromJSON(object.load)
|
|
262
|
-
: undefined,
|
|
251
|
+
load: isSet(object.load) ? exports.ManagerLoadResponseData.fromJSON(object.load) : undefined,
|
|
263
252
|
};
|
|
264
253
|
},
|
|
265
254
|
toJSON(message) {
|
|
@@ -277,14 +266,10 @@ exports.ResponseData = {
|
|
|
277
266
|
},
|
|
278
267
|
fromPartial(object) {
|
|
279
268
|
const message = createBaseResponseData();
|
|
280
|
-
message.ack =
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
message.load =
|
|
285
|
-
object.load !== undefined && object.load !== null
|
|
286
|
-
? exports.ManagerLoadResponseData.fromPartial(object.load)
|
|
287
|
-
: undefined;
|
|
269
|
+
message.ack = (object.ack !== undefined && object.ack !== null) ? common_1.AckResponse.fromPartial(object.ack) : undefined;
|
|
270
|
+
message.load = (object.load !== undefined && object.load !== null)
|
|
271
|
+
? exports.ManagerLoadResponseData.fromPartial(object.load)
|
|
272
|
+
: undefined;
|
|
288
273
|
return message;
|
|
289
274
|
},
|
|
290
275
|
};
|
|
@@ -296,6 +281,8 @@ function createBaseManagerLoadCommand() {
|
|
|
296
281
|
entrypoint: "",
|
|
297
282
|
preferenceValues: {},
|
|
298
283
|
argumentValues: {},
|
|
284
|
+
isRaycast: false,
|
|
285
|
+
commandName: "",
|
|
299
286
|
};
|
|
300
287
|
}
|
|
301
288
|
exports.ManagerLoadCommand = {
|
|
@@ -322,6 +309,12 @@ exports.ManagerLoadCommand = {
|
|
|
322
309
|
exports.ManagerLoadCommand_ArgumentValuesEntry.encode({ key: key, value }, writer.uint32(50).fork()).join();
|
|
323
310
|
}
|
|
324
311
|
});
|
|
312
|
+
if (message.isRaycast !== false) {
|
|
313
|
+
writer.uint32(56).bool(message.isRaycast);
|
|
314
|
+
}
|
|
315
|
+
if (message.commandName !== "") {
|
|
316
|
+
writer.uint32(66).string(message.commandName);
|
|
317
|
+
}
|
|
325
318
|
return writer;
|
|
326
319
|
},
|
|
327
320
|
decode(input, length) {
|
|
@@ -379,6 +372,20 @@ exports.ManagerLoadCommand = {
|
|
|
379
372
|
}
|
|
380
373
|
continue;
|
|
381
374
|
}
|
|
375
|
+
case 7: {
|
|
376
|
+
if (tag !== 56) {
|
|
377
|
+
break;
|
|
378
|
+
}
|
|
379
|
+
message.isRaycast = reader.bool();
|
|
380
|
+
continue;
|
|
381
|
+
}
|
|
382
|
+
case 8: {
|
|
383
|
+
if (tag !== 66) {
|
|
384
|
+
break;
|
|
385
|
+
}
|
|
386
|
+
message.commandName = reader.string();
|
|
387
|
+
continue;
|
|
388
|
+
}
|
|
382
389
|
}
|
|
383
390
|
if ((tag & 7) === 4 || tag === 0) {
|
|
384
391
|
break;
|
|
@@ -391,12 +398,8 @@ exports.ManagerLoadCommand = {
|
|
|
391
398
|
return {
|
|
392
399
|
mode: isSet(object.mode) ? commandModeFromJSON(object.mode) : 0,
|
|
393
400
|
env: isSet(object.env) ? commandEnvFromJSON(object.env) : 0,
|
|
394
|
-
extensionPath: isSet(object.extensionPath)
|
|
395
|
-
|
|
396
|
-
: "",
|
|
397
|
-
entrypoint: isSet(object.entrypoint)
|
|
398
|
-
? globalThis.String(object.entrypoint)
|
|
399
|
-
: "",
|
|
401
|
+
extensionPath: isSet(object.extensionPath) ? globalThis.String(object.extensionPath) : "",
|
|
402
|
+
entrypoint: isSet(object.entrypoint) ? globalThis.String(object.entrypoint) : "",
|
|
400
403
|
preferenceValues: isObject(object.preferenceValues)
|
|
401
404
|
? Object.entries(object.preferenceValues).reduce((acc, [key, value]) => {
|
|
402
405
|
acc[key] = value;
|
|
@@ -409,6 +412,8 @@ exports.ManagerLoadCommand = {
|
|
|
409
412
|
return acc;
|
|
410
413
|
}, {})
|
|
411
414
|
: {},
|
|
415
|
+
isRaycast: isSet(object.isRaycast) ? globalThis.Boolean(object.isRaycast) : false,
|
|
416
|
+
commandName: isSet(object.commandName) ? globalThis.String(object.commandName) : "",
|
|
412
417
|
};
|
|
413
418
|
},
|
|
414
419
|
toJSON(message) {
|
|
@@ -443,6 +448,12 @@ exports.ManagerLoadCommand = {
|
|
|
443
448
|
});
|
|
444
449
|
}
|
|
445
450
|
}
|
|
451
|
+
if (message.isRaycast !== false) {
|
|
452
|
+
obj.isRaycast = message.isRaycast;
|
|
453
|
+
}
|
|
454
|
+
if (message.commandName !== "") {
|
|
455
|
+
obj.commandName = message.commandName;
|
|
456
|
+
}
|
|
446
457
|
return obj;
|
|
447
458
|
},
|
|
448
459
|
create(base) {
|
|
@@ -466,6 +477,8 @@ exports.ManagerLoadCommand = {
|
|
|
466
477
|
}
|
|
467
478
|
return acc;
|
|
468
479
|
}, {});
|
|
480
|
+
message.isRaycast = object.isRaycast ?? false;
|
|
481
|
+
message.commandName = object.commandName ?? "";
|
|
469
482
|
return message;
|
|
470
483
|
},
|
|
471
484
|
};
|
|
@@ -638,11 +651,7 @@ exports.ManagerUnloadCommand = {
|
|
|
638
651
|
return message;
|
|
639
652
|
},
|
|
640
653
|
fromJSON(object) {
|
|
641
|
-
return {
|
|
642
|
-
sessionId: isSet(object.sessionId)
|
|
643
|
-
? globalThis.String(object.sessionId)
|
|
644
|
-
: "",
|
|
645
|
-
};
|
|
654
|
+
return { sessionId: isSet(object.sessionId) ? globalThis.String(object.sessionId) : "" };
|
|
646
655
|
},
|
|
647
656
|
toJSON(message) {
|
|
648
657
|
const obj = {};
|
|
@@ -693,11 +702,7 @@ exports.ManagerLoadResponseData = {
|
|
|
693
702
|
return message;
|
|
694
703
|
},
|
|
695
704
|
fromJSON(object) {
|
|
696
|
-
return {
|
|
697
|
-
sessionId: isSet(object.sessionId)
|
|
698
|
-
? globalThis.String(object.sessionId)
|
|
699
|
-
: "",
|
|
700
|
-
};
|
|
705
|
+
return { sessionId: isSet(object.sessionId) ? globalThis.String(object.sessionId) : "" };
|
|
701
706
|
},
|
|
702
707
|
toJSON(message) {
|
|
703
708
|
const obj = {};
|
package/dist/api/proto/oauth.js
CHANGED
|
@@ -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: oauth.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -115,9 +115,7 @@ exports.PKCEClientOptions = {
|
|
|
115
115
|
return {
|
|
116
116
|
id: isSet(object.id) ? globalThis.String(object.id) : undefined,
|
|
117
117
|
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
118
|
-
description: isSet(object.description)
|
|
119
|
-
? globalThis.String(object.description)
|
|
120
|
-
: "",
|
|
118
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
121
119
|
icon: isSet(object.icon) ? ui_1.Image.fromJSON(object.icon) : undefined,
|
|
122
120
|
};
|
|
123
121
|
},
|
|
@@ -145,10 +143,7 @@ exports.PKCEClientOptions = {
|
|
|
145
143
|
message.id = object.id ?? undefined;
|
|
146
144
|
message.name = object.name ?? "";
|
|
147
145
|
message.description = object.description ?? "";
|
|
148
|
-
message.icon =
|
|
149
|
-
object.icon !== undefined && object.icon !== null
|
|
150
|
-
? ui_1.Image.fromPartial(object.icon)
|
|
151
|
-
: undefined;
|
|
146
|
+
message.icon = (object.icon !== undefined && object.icon !== null) ? ui_1.Image.fromPartial(object.icon) : undefined;
|
|
152
147
|
return message;
|
|
153
148
|
},
|
|
154
149
|
};
|
|
@@ -196,9 +191,7 @@ exports.AuthorizeRequest = {
|
|
|
196
191
|
},
|
|
197
192
|
fromJSON(object) {
|
|
198
193
|
return {
|
|
199
|
-
client: isSet(object.client)
|
|
200
|
-
? exports.PKCEClientOptions.fromJSON(object.client)
|
|
201
|
-
: undefined,
|
|
194
|
+
client: isSet(object.client) ? exports.PKCEClientOptions.fromJSON(object.client) : undefined,
|
|
202
195
|
url: isSet(object.url) ? globalThis.String(object.url) : "",
|
|
203
196
|
};
|
|
204
197
|
},
|
|
@@ -217,10 +210,9 @@ exports.AuthorizeRequest = {
|
|
|
217
210
|
},
|
|
218
211
|
fromPartial(object) {
|
|
219
212
|
const message = createBaseAuthorizeRequest();
|
|
220
|
-
message.client =
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
: undefined;
|
|
213
|
+
message.client = (object.client !== undefined && object.client !== null)
|
|
214
|
+
? exports.PKCEClientOptions.fromPartial(object.client)
|
|
215
|
+
: undefined;
|
|
224
216
|
message.url = object.url ?? "";
|
|
225
217
|
return message;
|
|
226
218
|
},
|
|
@@ -309,11 +301,7 @@ exports.Request = {
|
|
|
309
301
|
return message;
|
|
310
302
|
},
|
|
311
303
|
fromJSON(object) {
|
|
312
|
-
return {
|
|
313
|
-
authorize: isSet(object.authorize)
|
|
314
|
-
? exports.AuthorizeRequest.fromJSON(object.authorize)
|
|
315
|
-
: undefined,
|
|
316
|
-
};
|
|
304
|
+
return { authorize: isSet(object.authorize) ? exports.AuthorizeRequest.fromJSON(object.authorize) : undefined };
|
|
317
305
|
},
|
|
318
306
|
toJSON(message) {
|
|
319
307
|
const obj = {};
|
|
@@ -327,10 +315,9 @@ exports.Request = {
|
|
|
327
315
|
},
|
|
328
316
|
fromPartial(object) {
|
|
329
317
|
const message = createBaseRequest();
|
|
330
|
-
message.authorize =
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
: undefined;
|
|
318
|
+
message.authorize = (object.authorize !== undefined && object.authorize !== null)
|
|
319
|
+
? exports.AuthorizeRequest.fromPartial(object.authorize)
|
|
320
|
+
: undefined;
|
|
334
321
|
return message;
|
|
335
322
|
},
|
|
336
323
|
};
|
|
@@ -367,11 +354,7 @@ exports.Response = {
|
|
|
367
354
|
return message;
|
|
368
355
|
},
|
|
369
356
|
fromJSON(object) {
|
|
370
|
-
return {
|
|
371
|
-
authorize: isSet(object.authorize)
|
|
372
|
-
? exports.AuthorizeResponse.fromJSON(object.authorize)
|
|
373
|
-
: undefined,
|
|
374
|
-
};
|
|
357
|
+
return { authorize: isSet(object.authorize) ? exports.AuthorizeResponse.fromJSON(object.authorize) : undefined };
|
|
375
358
|
},
|
|
376
359
|
toJSON(message) {
|
|
377
360
|
const obj = {};
|
|
@@ -385,10 +368,9 @@ exports.Response = {
|
|
|
385
368
|
},
|
|
386
369
|
fromPartial(object) {
|
|
387
370
|
const message = createBaseResponse();
|
|
388
|
-
message.authorize =
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
: undefined;
|
|
371
|
+
message.authorize = (object.authorize !== undefined && object.authorize !== null)
|
|
372
|
+
? exports.AuthorizeResponse.fromPartial(object.authorize)
|
|
373
|
+
: undefined;
|
|
392
374
|
return message;
|
|
393
375
|
},
|
|
394
376
|
};
|
|
@@ -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: storage.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -559,13 +559,7 @@ exports.ListResponse_ValuesEntry = {
|
|
|
559
559
|
},
|
|
560
560
|
};
|
|
561
561
|
function createBaseRequest() {
|
|
562
|
-
return {
|
|
563
|
-
get: undefined,
|
|
564
|
-
set: undefined,
|
|
565
|
-
remove: undefined,
|
|
566
|
-
clear: undefined,
|
|
567
|
-
list: undefined,
|
|
568
|
-
};
|
|
562
|
+
return { get: undefined, set: undefined, remove: undefined, clear: undefined, list: undefined };
|
|
569
563
|
}
|
|
570
564
|
exports.Request = {
|
|
571
565
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -640,12 +634,8 @@ exports.Request = {
|
|
|
640
634
|
return {
|
|
641
635
|
get: isSet(object.get) ? exports.GetRequest.fromJSON(object.get) : undefined,
|
|
642
636
|
set: isSet(object.set) ? exports.SetRequest.fromJSON(object.set) : undefined,
|
|
643
|
-
remove: isSet(object.remove)
|
|
644
|
-
|
|
645
|
-
: undefined,
|
|
646
|
-
clear: isSet(object.clear)
|
|
647
|
-
? exports.ClearRequest.fromJSON(object.clear)
|
|
648
|
-
: undefined,
|
|
637
|
+
remove: isSet(object.remove) ? exports.RemoveRequest.fromJSON(object.remove) : undefined,
|
|
638
|
+
clear: isSet(object.clear) ? exports.ClearRequest.fromJSON(object.clear) : undefined,
|
|
649
639
|
list: isSet(object.list) ? exports.ListRequest.fromJSON(object.list) : undefined,
|
|
650
640
|
};
|
|
651
641
|
},
|
|
@@ -673,37 +663,22 @@ exports.Request = {
|
|
|
673
663
|
},
|
|
674
664
|
fromPartial(object) {
|
|
675
665
|
const message = createBaseRequest();
|
|
676
|
-
message.get =
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
message.
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
: undefined;
|
|
688
|
-
message.clear =
|
|
689
|
-
object.clear !== undefined && object.clear !== null
|
|
690
|
-
? exports.ClearRequest.fromPartial(object.clear)
|
|
691
|
-
: undefined;
|
|
692
|
-
message.list =
|
|
693
|
-
object.list !== undefined && object.list !== null
|
|
694
|
-
? exports.ListRequest.fromPartial(object.list)
|
|
695
|
-
: undefined;
|
|
666
|
+
message.get = (object.get !== undefined && object.get !== null) ? exports.GetRequest.fromPartial(object.get) : undefined;
|
|
667
|
+
message.set = (object.set !== undefined && object.set !== null) ? exports.SetRequest.fromPartial(object.set) : undefined;
|
|
668
|
+
message.remove = (object.remove !== undefined && object.remove !== null)
|
|
669
|
+
? exports.RemoveRequest.fromPartial(object.remove)
|
|
670
|
+
: undefined;
|
|
671
|
+
message.clear = (object.clear !== undefined && object.clear !== null)
|
|
672
|
+
? exports.ClearRequest.fromPartial(object.clear)
|
|
673
|
+
: undefined;
|
|
674
|
+
message.list = (object.list !== undefined && object.list !== null)
|
|
675
|
+
? exports.ListRequest.fromPartial(object.list)
|
|
676
|
+
: undefined;
|
|
696
677
|
return message;
|
|
697
678
|
},
|
|
698
679
|
};
|
|
699
680
|
function createBaseResponse() {
|
|
700
|
-
return {
|
|
701
|
-
get: undefined,
|
|
702
|
-
set: undefined,
|
|
703
|
-
remove: undefined,
|
|
704
|
-
clear: undefined,
|
|
705
|
-
list: undefined,
|
|
706
|
-
};
|
|
681
|
+
return { get: undefined, set: undefined, remove: undefined, clear: undefined, list: undefined };
|
|
707
682
|
}
|
|
708
683
|
exports.Response = {
|
|
709
684
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -778,12 +753,8 @@ exports.Response = {
|
|
|
778
753
|
return {
|
|
779
754
|
get: isSet(object.get) ? exports.GetResponse.fromJSON(object.get) : undefined,
|
|
780
755
|
set: isSet(object.set) ? exports.SetResponse.fromJSON(object.set) : undefined,
|
|
781
|
-
remove: isSet(object.remove)
|
|
782
|
-
|
|
783
|
-
: undefined,
|
|
784
|
-
clear: isSet(object.clear)
|
|
785
|
-
? exports.ClearResponse.fromJSON(object.clear)
|
|
786
|
-
: undefined,
|
|
756
|
+
remove: isSet(object.remove) ? exports.RemoveResponse.fromJSON(object.remove) : undefined,
|
|
757
|
+
clear: isSet(object.clear) ? exports.ClearResponse.fromJSON(object.clear) : undefined,
|
|
787
758
|
list: isSet(object.list) ? exports.ListResponse.fromJSON(object.list) : undefined,
|
|
788
759
|
};
|
|
789
760
|
},
|
|
@@ -811,26 +782,17 @@ exports.Response = {
|
|
|
811
782
|
},
|
|
812
783
|
fromPartial(object) {
|
|
813
784
|
const message = createBaseResponse();
|
|
814
|
-
message.get =
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
message.
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
: undefined;
|
|
826
|
-
message.clear =
|
|
827
|
-
object.clear !== undefined && object.clear !== null
|
|
828
|
-
? exports.ClearResponse.fromPartial(object.clear)
|
|
829
|
-
: undefined;
|
|
830
|
-
message.list =
|
|
831
|
-
object.list !== undefined && object.list !== null
|
|
832
|
-
? exports.ListResponse.fromPartial(object.list)
|
|
833
|
-
: undefined;
|
|
785
|
+
message.get = (object.get !== undefined && object.get !== null) ? exports.GetResponse.fromPartial(object.get) : undefined;
|
|
786
|
+
message.set = (object.set !== undefined && object.set !== null) ? exports.SetResponse.fromPartial(object.set) : undefined;
|
|
787
|
+
message.remove = (object.remove !== undefined && object.remove !== null)
|
|
788
|
+
? exports.RemoveResponse.fromPartial(object.remove)
|
|
789
|
+
: undefined;
|
|
790
|
+
message.clear = (object.clear !== undefined && object.clear !== null)
|
|
791
|
+
? exports.ClearResponse.fromPartial(object.clear)
|
|
792
|
+
: undefined;
|
|
793
|
+
message.list = (object.list !== undefined && object.list !== null)
|
|
794
|
+
? exports.ListResponse.fromPartial(object.list)
|
|
795
|
+
: undefined;
|
|
834
796
|
return message;
|
|
835
797
|
},
|
|
836
798
|
};
|
package/dist/api/proto/ui.d.ts
CHANGED
|
@@ -83,12 +83,17 @@ export interface ConfirmAlertRequest {
|
|
|
83
83
|
dismissAction?: ConfirmAlertAction | undefined;
|
|
84
84
|
primaryAction?: ConfirmAlertAction | undefined;
|
|
85
85
|
rememberUserChoice: boolean;
|
|
86
|
-
|
|
86
|
+
}
|
|
87
|
+
export interface ConfirmAlertResponse {
|
|
88
|
+
confirmed: boolean;
|
|
87
89
|
}
|
|
88
90
|
export interface ConfirmAlertAction {
|
|
89
91
|
title: string;
|
|
90
92
|
style: ConfirmAlertActionStyle;
|
|
91
93
|
}
|
|
94
|
+
export interface PopToRootRequest {
|
|
95
|
+
clearSearchBar: boolean;
|
|
96
|
+
}
|
|
92
97
|
export interface Request {
|
|
93
98
|
render?: RenderRequest | undefined;
|
|
94
99
|
showToast?: ShowToastRequest | undefined;
|
|
@@ -102,6 +107,7 @@ export interface Request {
|
|
|
102
107
|
setSearchText?: SetSearchTextRequest | undefined;
|
|
103
108
|
confirmAlert?: ConfirmAlertRequest | undefined;
|
|
104
109
|
getSelectedText?: GetSelectedTextRequest | undefined;
|
|
110
|
+
popToRoot?: PopToRootRequest | undefined;
|
|
105
111
|
}
|
|
106
112
|
export interface Response {
|
|
107
113
|
render?: AckResponse | undefined;
|
|
@@ -114,8 +120,9 @@ export interface Response {
|
|
|
114
120
|
closeMainWindow?: AckResponse | undefined;
|
|
115
121
|
showHud?: AckResponse | undefined;
|
|
116
122
|
setSearchText?: AckResponse | undefined;
|
|
117
|
-
confirmAlert?:
|
|
123
|
+
confirmAlert?: ConfirmAlertResponse | undefined;
|
|
118
124
|
getSelectedText?: GetSelectedTextResponse | undefined;
|
|
125
|
+
popToRoot?: AckResponse | undefined;
|
|
119
126
|
}
|
|
120
127
|
export interface RenderNode {
|
|
121
128
|
type: string;
|
|
@@ -157,7 +164,9 @@ export declare const GetSelectedTextResponse: MessageFns<GetSelectedTextResponse
|
|
|
157
164
|
export declare const ShowHudRequest: MessageFns<ShowHudRequest>;
|
|
158
165
|
export declare const RenderRequest: MessageFns<RenderRequest>;
|
|
159
166
|
export declare const ConfirmAlertRequest: MessageFns<ConfirmAlertRequest>;
|
|
167
|
+
export declare const ConfirmAlertResponse: MessageFns<ConfirmAlertResponse>;
|
|
160
168
|
export declare const ConfirmAlertAction: MessageFns<ConfirmAlertAction>;
|
|
169
|
+
export declare const PopToRootRequest: MessageFns<PopToRootRequest>;
|
|
161
170
|
export declare const Request: MessageFns<Request>;
|
|
162
171
|
export declare const Response: MessageFns<Response>;
|
|
163
172
|
export declare const RenderNode: MessageFns<RenderNode>;
|