@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.
Files changed (50) hide show
  1. package/dist/api/ai.js +2 -41
  2. package/dist/api/alert.js +8 -21
  3. package/dist/api/bus.d.ts +10 -7
  4. package/dist/api/bus.js +0 -33
  5. package/dist/api/cache.d.ts +64 -73
  6. package/dist/api/cache.js +163 -14
  7. package/dist/api/clipboard.d.ts +1 -1
  8. package/dist/api/clipboard.js +3 -9
  9. package/dist/api/controls.d.ts +3 -0
  10. package/dist/api/controls.js +5 -1
  11. package/dist/api/environment.d.ts +5 -0
  12. package/dist/api/file-search.d.ts +49 -0
  13. package/dist/api/file-search.js +49 -0
  14. package/dist/api/index.d.ts +2 -1
  15. package/dist/api/index.js +2 -1
  16. package/dist/api/lib/result.d.ts +3 -1
  17. package/dist/api/lib/result.js +2 -2
  18. package/dist/api/preference.js +2 -3
  19. package/dist/api/proto/application.d.ts +14 -0
  20. package/dist/api/proto/application.js +207 -37
  21. package/dist/api/proto/clipboard.js +38 -71
  22. package/dist/api/proto/common.js +2 -6
  23. package/dist/api/proto/daemon.js +5 -15
  24. package/dist/api/proto/extension.d.ts +16 -10
  25. package/dist/api/proto/extension.js +118 -91
  26. package/dist/api/proto/file-search.d.ts +42 -0
  27. package/dist/api/proto/file-search.js +290 -0
  28. package/dist/api/proto/google/protobuf/struct.js +9 -26
  29. package/dist/api/proto/ipc.js +53 -100
  30. package/dist/api/proto/manager.d.ts +2 -0
  31. package/dist/api/proto/manager.js +54 -49
  32. package/dist/api/proto/oauth.js +15 -33
  33. package/dist/api/proto/storage.js +29 -67
  34. package/dist/api/proto/ui.d.ts +11 -2
  35. package/dist/api/proto/ui.js +267 -254
  36. package/dist/api/proto/wlr-clipboard.js +4 -12
  37. package/dist/api/proto/wm.d.ts +111 -0
  38. package/dist/api/proto/wm.js +1266 -0
  39. package/dist/api/raycast/index.d.ts +24 -0
  40. package/dist/api/raycast/index.js +40 -0
  41. package/dist/api/raycast/system.d.ts +20 -0
  42. package/dist/api/raycast/system.js +73 -0
  43. package/dist/api/raycast/window-management.d.ts +42 -0
  44. package/dist/api/raycast/window-management.js +82 -0
  45. package/dist/api/toast.js +47 -5
  46. package/dist/api/utils.d.ts +5 -11
  47. package/dist/api/utils.js +20 -31
  48. package/dist/api/window-management.d.ts +39 -0
  49. package/dist/api/window-management.js +55 -0
  50. 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.5
4
+ // protoc-gen-ts_proto v2.7.7
5
5
  // protoc v6.31.1
6
6
  // source: clipboard.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -161,11 +161,7 @@ exports.ClipboardOptions = {
161
161
  return message;
162
162
  },
163
163
  fromJSON(object) {
164
- return {
165
- concealed: isSet(object.concealed)
166
- ? globalThis.Boolean(object.concealed)
167
- : false,
168
- };
164
+ return { concealed: isSet(object.concealed) ? globalThis.Boolean(object.concealed) : false };
169
165
  },
170
166
  toJSON(message) {
171
167
  const obj = {};
@@ -227,12 +223,8 @@ exports.CopyToClipboardRequest = {
227
223
  },
228
224
  fromJSON(object) {
229
225
  return {
230
- content: isSet(object.content)
231
- ? exports.ClipboardContent.fromJSON(object.content)
232
- : undefined,
233
- options: isSet(object.options)
234
- ? exports.ClipboardOptions.fromJSON(object.options)
235
- : undefined,
226
+ content: isSet(object.content) ? exports.ClipboardContent.fromJSON(object.content) : undefined,
227
+ options: isSet(object.options) ? exports.ClipboardOptions.fromJSON(object.options) : undefined,
236
228
  };
237
229
  },
238
230
  toJSON(message) {
@@ -250,14 +242,12 @@ exports.CopyToClipboardRequest = {
250
242
  },
251
243
  fromPartial(object) {
252
244
  const message = createBaseCopyToClipboardRequest();
253
- message.content =
254
- object.content !== undefined && object.content !== null
255
- ? exports.ClipboardContent.fromPartial(object.content)
256
- : undefined;
257
- message.options =
258
- object.options !== undefined && object.options !== null
259
- ? exports.ClipboardOptions.fromPartial(object.options)
260
- : undefined;
245
+ message.content = (object.content !== undefined && object.content !== null)
246
+ ? exports.ClipboardContent.fromPartial(object.content)
247
+ : undefined;
248
+ message.options = (object.options !== undefined && object.options !== null)
249
+ ? exports.ClipboardOptions.fromPartial(object.options)
250
+ : undefined;
261
251
  return message;
262
252
  },
263
253
  };
@@ -294,11 +284,7 @@ exports.PasteToClipboardRequest = {
294
284
  return message;
295
285
  },
296
286
  fromJSON(object) {
297
- return {
298
- content: isSet(object.content)
299
- ? exports.ClipboardContent.fromJSON(object.content)
300
- : undefined,
301
- };
287
+ return { content: isSet(object.content) ? exports.ClipboardContent.fromJSON(object.content) : undefined };
302
288
  },
303
289
  toJSON(message) {
304
290
  const obj = {};
@@ -312,10 +298,9 @@ exports.PasteToClipboardRequest = {
312
298
  },
313
299
  fromPartial(object) {
314
300
  const message = createBasePasteToClipboardRequest();
315
- message.content =
316
- object.content !== undefined && object.content !== null
317
- ? exports.ClipboardContent.fromPartial(object.content)
318
- : undefined;
301
+ message.content = (object.content !== undefined && object.content !== null)
302
+ ? exports.ClipboardContent.fromPartial(object.content)
303
+ : undefined;
319
304
  return message;
320
305
  },
321
306
  };
@@ -374,12 +359,8 @@ exports.ClipboardContent = {
374
359
  fromJSON(object) {
375
360
  return {
376
361
  text: isSet(object.text) ? globalThis.String(object.text) : undefined,
377
- html: isSet(object.html)
378
- ? exports.ClipboardHtmlContent.fromJSON(object.html)
379
- : undefined,
380
- path: isSet(object.path)
381
- ? exports.ClipboardPathContent.fromJSON(object.path)
382
- : undefined,
362
+ html: isSet(object.html) ? exports.ClipboardHtmlContent.fromJSON(object.html) : undefined,
363
+ path: isSet(object.path) ? exports.ClipboardPathContent.fromJSON(object.path) : undefined,
383
364
  };
384
365
  },
385
366
  toJSON(message) {
@@ -401,14 +382,12 @@ exports.ClipboardContent = {
401
382
  fromPartial(object) {
402
383
  const message = createBaseClipboardContent();
403
384
  message.text = object.text ?? undefined;
404
- message.html =
405
- object.html !== undefined && object.html !== null
406
- ? exports.ClipboardHtmlContent.fromPartial(object.html)
407
- : undefined;
408
- message.path =
409
- object.path !== undefined && object.path !== null
410
- ? exports.ClipboardPathContent.fromPartial(object.path)
411
- : undefined;
385
+ message.html = (object.html !== undefined && object.html !== null)
386
+ ? exports.ClipboardHtmlContent.fromPartial(object.html)
387
+ : undefined;
388
+ message.path = (object.path !== undefined && object.path !== null)
389
+ ? exports.ClipboardPathContent.fromPartial(object.path)
390
+ : undefined;
412
391
  return message;
413
392
  },
414
393
  };
@@ -530,12 +509,8 @@ exports.Request = {
530
509
  },
531
510
  fromJSON(object) {
532
511
  return {
533
- copy: isSet(object.copy)
534
- ? exports.CopyToClipboardRequest.fromJSON(object.copy)
535
- : undefined,
536
- paste: isSet(object.paste)
537
- ? exports.PasteToClipboardRequest.fromJSON(object.paste)
538
- : undefined,
512
+ copy: isSet(object.copy) ? exports.CopyToClipboardRequest.fromJSON(object.copy) : undefined,
513
+ paste: isSet(object.paste) ? exports.PasteToClipboardRequest.fromJSON(object.paste) : undefined,
539
514
  };
540
515
  },
541
516
  toJSON(message) {
@@ -553,14 +528,12 @@ exports.Request = {
553
528
  },
554
529
  fromPartial(object) {
555
530
  const message = createBaseRequest();
556
- message.copy =
557
- object.copy !== undefined && object.copy !== null
558
- ? exports.CopyToClipboardRequest.fromPartial(object.copy)
559
- : undefined;
560
- message.paste =
561
- object.paste !== undefined && object.paste !== null
562
- ? exports.PasteToClipboardRequest.fromPartial(object.paste)
563
- : undefined;
531
+ message.copy = (object.copy !== undefined && object.copy !== null)
532
+ ? exports.CopyToClipboardRequest.fromPartial(object.copy)
533
+ : undefined;
534
+ message.paste = (object.paste !== undefined && object.paste !== null)
535
+ ? exports.PasteToClipboardRequest.fromPartial(object.paste)
536
+ : undefined;
564
537
  return message;
565
538
  },
566
539
  };
@@ -608,12 +581,8 @@ exports.Response = {
608
581
  },
609
582
  fromJSON(object) {
610
583
  return {
611
- copy: isSet(object.copy)
612
- ? exports.CopyToClipboardResponse.fromJSON(object.copy)
613
- : undefined,
614
- paste: isSet(object.paste)
615
- ? exports.PasteToClipboardResponse.fromJSON(object.paste)
616
- : undefined,
584
+ copy: isSet(object.copy) ? exports.CopyToClipboardResponse.fromJSON(object.copy) : undefined,
585
+ paste: isSet(object.paste) ? exports.PasteToClipboardResponse.fromJSON(object.paste) : undefined,
617
586
  };
618
587
  },
619
588
  toJSON(message) {
@@ -631,14 +600,12 @@ exports.Response = {
631
600
  },
632
601
  fromPartial(object) {
633
602
  const message = createBaseResponse();
634
- message.copy =
635
- object.copy !== undefined && object.copy !== null
636
- ? exports.CopyToClipboardResponse.fromPartial(object.copy)
637
- : undefined;
638
- message.paste =
639
- object.paste !== undefined && object.paste !== null
640
- ? exports.PasteToClipboardResponse.fromPartial(object.paste)
641
- : undefined;
603
+ message.copy = (object.copy !== undefined && object.copy !== null)
604
+ ? exports.CopyToClipboardResponse.fromPartial(object.copy)
605
+ : undefined;
606
+ message.paste = (object.paste !== undefined && object.paste !== null)
607
+ ? exports.PasteToClipboardResponse.fromPartial(object.paste)
608
+ : undefined;
642
609
  return message;
643
610
  },
644
611
  };
@@ -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.5
4
+ // protoc-gen-ts_proto v2.7.7
5
5
  // protoc v6.31.1
6
6
  // source: common.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -79,11 +79,7 @@ exports.ErrorResponse = {
79
79
  return message;
80
80
  },
81
81
  fromJSON(object) {
82
- return {
83
- errorText: isSet(object.errorText)
84
- ? globalThis.String(object.errorText)
85
- : "",
86
- };
82
+ return { errorText: isSet(object.errorText) ? globalThis.String(object.errorText) : "" };
87
83
  },
88
84
  toJSON(message) {
89
85
  const obj = {};
@@ -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.5
4
+ // protoc-gen-ts_proto v2.7.7
5
5
  // protoc v6.31.1
6
6
  // source: daemon.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -130,9 +130,7 @@ exports.Request = {
130
130
  return message;
131
131
  },
132
132
  fromJSON(object) {
133
- return {
134
- url: isSet(object.url) ? exports.UrlRequest.fromJSON(object.url) : undefined,
135
- };
133
+ return { url: isSet(object.url) ? exports.UrlRequest.fromJSON(object.url) : undefined };
136
134
  },
137
135
  toJSON(message) {
138
136
  const obj = {};
@@ -146,10 +144,7 @@ exports.Request = {
146
144
  },
147
145
  fromPartial(object) {
148
146
  const message = createBaseRequest();
149
- message.url =
150
- object.url !== undefined && object.url !== null
151
- ? exports.UrlRequest.fromPartial(object.url)
152
- : undefined;
147
+ message.url = (object.url !== undefined && object.url !== null) ? exports.UrlRequest.fromPartial(object.url) : undefined;
153
148
  return message;
154
149
  },
155
150
  };
@@ -186,9 +181,7 @@ exports.Response = {
186
181
  return message;
187
182
  },
188
183
  fromJSON(object) {
189
- return {
190
- url: isSet(object.url) ? exports.UrlResponse.fromJSON(object.url) : undefined,
191
- };
184
+ return { url: isSet(object.url) ? exports.UrlResponse.fromJSON(object.url) : undefined };
192
185
  },
193
186
  toJSON(message) {
194
187
  const obj = {};
@@ -202,10 +195,7 @@ exports.Response = {
202
195
  },
203
196
  fromPartial(object) {
204
197
  const message = createBaseResponse();
205
- message.url =
206
- object.url !== undefined && object.url !== null
207
- ? exports.UrlResponse.fromPartial(object.url)
208
- : undefined;
198
+ message.url = (object.url !== undefined && object.url !== null) ? exports.UrlResponse.fromPartial(object.url) : undefined;
209
199
  return message;
210
200
  },
211
201
  };
@@ -1,10 +1,12 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- import { Request as Request2, Response as Response7 } from "./application";
3
- import { Request as Request3, Response as Response8 } from "./clipboard";
2
+ import { Request as Request2, Response as Response9 } from "./application";
3
+ import { Request as Request3, Response as Response10 } from "./clipboard";
4
4
  import { ErrorResponse } from "./common";
5
- import { Request as Request5, Response as Response10 } from "./oauth";
6
- import { Request as Request4, Response as Response9 } from "./storage";
7
- import { Request as Request1, Response as Response6 } from "./ui";
5
+ import { Request as Request6, Response as Response13 } from "./file-search";
6
+ import { Request as Request5, Response as Response12 } from "./oauth";
7
+ import { Request as Request4, Response as Response11 } from "./storage";
8
+ import { Request as Request1, Response as Response8 } from "./ui";
9
+ import { Request as Request7, Response as Response14 } from "./wm";
8
10
  export declare const protobufPackage = "proto.ext.extension";
9
11
  export interface Request {
10
12
  requestId: string;
@@ -16,6 +18,8 @@ export interface RequestData {
16
18
  clipboard?: Request3 | undefined;
17
19
  storage?: Request4 | undefined;
18
20
  oauth?: Request5 | undefined;
21
+ fileSearch?: Request6 | undefined;
22
+ wm?: Request7 | undefined;
19
23
  }
20
24
  export interface Response {
21
25
  requestId: string;
@@ -23,11 +27,13 @@ export interface Response {
23
27
  error?: ErrorResponse | undefined;
24
28
  }
25
29
  export interface ResponseData {
26
- ui?: Response6 | undefined;
27
- app?: Response7 | undefined;
28
- clipboard?: Response8 | undefined;
29
- storage?: Response9 | undefined;
30
- oauth?: Response10 | undefined;
30
+ ui?: Response8 | undefined;
31
+ app?: Response9 | undefined;
32
+ clipboard?: Response10 | undefined;
33
+ storage?: Response11 | undefined;
34
+ oauth?: Response12 | undefined;
35
+ fileSearch?: Response13 | undefined;
36
+ wm?: Response14 | undefined;
31
37
  }
32
38
  export interface Event {
33
39
  id: string;
@@ -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.5
4
+ // protoc-gen-ts_proto v2.7.7
5
5
  // protoc v6.31.1
6
6
  // source: extension.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -11,9 +11,11 @@ const wire_1 = require("@bufbuild/protobuf/wire");
11
11
  const application_1 = require("./application");
12
12
  const clipboard_1 = require("./clipboard");
13
13
  const common_1 = require("./common");
14
+ const file_search_1 = require("./file-search");
14
15
  const oauth_1 = require("./oauth");
15
16
  const storage_1 = require("./storage");
16
17
  const ui_1 = require("./ui");
18
+ const wm_1 = require("./wm");
17
19
  exports.protobufPackage = "proto.ext.extension";
18
20
  function createBaseRequest() {
19
21
  return { requestId: "", data: undefined };
@@ -59,9 +61,7 @@ exports.Request = {
59
61
  },
60
62
  fromJSON(object) {
61
63
  return {
62
- requestId: isSet(object.requestId)
63
- ? globalThis.String(object.requestId)
64
- : "",
64
+ requestId: isSet(object.requestId) ? globalThis.String(object.requestId) : "",
65
65
  data: isSet(object.data) ? exports.RequestData.fromJSON(object.data) : undefined,
66
66
  };
67
67
  },
@@ -81,10 +81,9 @@ exports.Request = {
81
81
  fromPartial(object) {
82
82
  const message = createBaseRequest();
83
83
  message.requestId = object.requestId ?? "";
84
- message.data =
85
- object.data !== undefined && object.data !== null
86
- ? exports.RequestData.fromPartial(object.data)
87
- : undefined;
84
+ message.data = (object.data !== undefined && object.data !== null)
85
+ ? exports.RequestData.fromPartial(object.data)
86
+ : undefined;
88
87
  return message;
89
88
  },
90
89
  };
@@ -95,6 +94,8 @@ function createBaseRequestData() {
95
94
  clipboard: undefined,
96
95
  storage: undefined,
97
96
  oauth: undefined,
97
+ fileSearch: undefined,
98
+ wm: undefined,
98
99
  };
99
100
  }
100
101
  exports.RequestData = {
@@ -114,6 +115,12 @@ exports.RequestData = {
114
115
  if (message.oauth !== undefined) {
115
116
  oauth_1.Request.encode(message.oauth, writer.uint32(42).fork()).join();
116
117
  }
118
+ if (message.fileSearch !== undefined) {
119
+ file_search_1.Request.encode(message.fileSearch, writer.uint32(50).fork()).join();
120
+ }
121
+ if (message.wm !== undefined) {
122
+ wm_1.Request.encode(message.wm, writer.uint32(58).fork()).join();
123
+ }
117
124
  return writer;
118
125
  },
119
126
  decode(input, length) {
@@ -158,6 +165,20 @@ exports.RequestData = {
158
165
  message.oauth = oauth_1.Request.decode(reader, reader.uint32());
159
166
  continue;
160
167
  }
168
+ case 6: {
169
+ if (tag !== 50) {
170
+ break;
171
+ }
172
+ message.fileSearch = file_search_1.Request.decode(reader, reader.uint32());
173
+ continue;
174
+ }
175
+ case 7: {
176
+ if (tag !== 58) {
177
+ break;
178
+ }
179
+ message.wm = wm_1.Request.decode(reader, reader.uint32());
180
+ continue;
181
+ }
161
182
  }
162
183
  if ((tag & 7) === 4 || tag === 0) {
163
184
  break;
@@ -170,13 +191,11 @@ exports.RequestData = {
170
191
  return {
171
192
  ui: isSet(object.ui) ? ui_1.Request.fromJSON(object.ui) : undefined,
172
193
  app: isSet(object.app) ? application_1.Request.fromJSON(object.app) : undefined,
173
- clipboard: isSet(object.clipboard)
174
- ? clipboard_1.Request.fromJSON(object.clipboard)
175
- : undefined,
176
- storage: isSet(object.storage)
177
- ? storage_1.Request.fromJSON(object.storage)
178
- : undefined,
194
+ clipboard: isSet(object.clipboard) ? clipboard_1.Request.fromJSON(object.clipboard) : undefined,
195
+ storage: isSet(object.storage) ? storage_1.Request.fromJSON(object.storage) : undefined,
179
196
  oauth: isSet(object.oauth) ? oauth_1.Request.fromJSON(object.oauth) : undefined,
197
+ fileSearch: isSet(object.fileSearch) ? file_search_1.Request.fromJSON(object.fileSearch) : undefined,
198
+ wm: isSet(object.wm) ? wm_1.Request.fromJSON(object.wm) : undefined,
180
199
  };
181
200
  },
182
201
  toJSON(message) {
@@ -196,6 +215,12 @@ exports.RequestData = {
196
215
  if (message.oauth !== undefined) {
197
216
  obj.oauth = oauth_1.Request.toJSON(message.oauth);
198
217
  }
218
+ if (message.fileSearch !== undefined) {
219
+ obj.fileSearch = file_search_1.Request.toJSON(message.fileSearch);
220
+ }
221
+ if (message.wm !== undefined) {
222
+ obj.wm = wm_1.Request.toJSON(message.wm);
223
+ }
199
224
  return obj;
200
225
  },
201
226
  create(base) {
@@ -203,26 +228,21 @@ exports.RequestData = {
203
228
  },
204
229
  fromPartial(object) {
205
230
  const message = createBaseRequestData();
206
- message.ui =
207
- object.ui !== undefined && object.ui !== null
208
- ? ui_1.Request.fromPartial(object.ui)
209
- : undefined;
210
- message.app =
211
- object.app !== undefined && object.app !== null
212
- ? application_1.Request.fromPartial(object.app)
213
- : undefined;
214
- message.clipboard =
215
- object.clipboard !== undefined && object.clipboard !== null
216
- ? clipboard_1.Request.fromPartial(object.clipboard)
217
- : undefined;
218
- message.storage =
219
- object.storage !== undefined && object.storage !== null
220
- ? storage_1.Request.fromPartial(object.storage)
221
- : undefined;
222
- message.oauth =
223
- object.oauth !== undefined && object.oauth !== null
224
- ? oauth_1.Request.fromPartial(object.oauth)
225
- : undefined;
231
+ message.ui = (object.ui !== undefined && object.ui !== null) ? ui_1.Request.fromPartial(object.ui) : undefined;
232
+ message.app = (object.app !== undefined && object.app !== null) ? application_1.Request.fromPartial(object.app) : undefined;
233
+ message.clipboard = (object.clipboard !== undefined && object.clipboard !== null)
234
+ ? clipboard_1.Request.fromPartial(object.clipboard)
235
+ : undefined;
236
+ message.storage = (object.storage !== undefined && object.storage !== null)
237
+ ? storage_1.Request.fromPartial(object.storage)
238
+ : undefined;
239
+ message.oauth = (object.oauth !== undefined && object.oauth !== null)
240
+ ? oauth_1.Request.fromPartial(object.oauth)
241
+ : undefined;
242
+ message.fileSearch = (object.fileSearch !== undefined && object.fileSearch !== null)
243
+ ? file_search_1.Request.fromPartial(object.fileSearch)
244
+ : undefined;
245
+ message.wm = (object.wm !== undefined && object.wm !== null) ? wm_1.Request.fromPartial(object.wm) : undefined;
226
246
  return message;
227
247
  },
228
248
  };
@@ -280,13 +300,9 @@ exports.Response = {
280
300
  },
281
301
  fromJSON(object) {
282
302
  return {
283
- requestId: isSet(object.requestId)
284
- ? globalThis.String(object.requestId)
285
- : "",
303
+ requestId: isSet(object.requestId) ? globalThis.String(object.requestId) : "",
286
304
  data: isSet(object.data) ? exports.ResponseData.fromJSON(object.data) : undefined,
287
- error: isSet(object.error)
288
- ? common_1.ErrorResponse.fromJSON(object.error)
289
- : undefined,
305
+ error: isSet(object.error) ? common_1.ErrorResponse.fromJSON(object.error) : undefined,
290
306
  };
291
307
  },
292
308
  toJSON(message) {
@@ -308,14 +324,12 @@ exports.Response = {
308
324
  fromPartial(object) {
309
325
  const message = createBaseResponse();
310
326
  message.requestId = object.requestId ?? "";
311
- message.data =
312
- object.data !== undefined && object.data !== null
313
- ? exports.ResponseData.fromPartial(object.data)
314
- : undefined;
315
- message.error =
316
- object.error !== undefined && object.error !== null
317
- ? common_1.ErrorResponse.fromPartial(object.error)
318
- : undefined;
327
+ message.data = (object.data !== undefined && object.data !== null)
328
+ ? exports.ResponseData.fromPartial(object.data)
329
+ : undefined;
330
+ message.error = (object.error !== undefined && object.error !== null)
331
+ ? common_1.ErrorResponse.fromPartial(object.error)
332
+ : undefined;
319
333
  return message;
320
334
  },
321
335
  };
@@ -326,6 +340,8 @@ function createBaseResponseData() {
326
340
  clipboard: undefined,
327
341
  storage: undefined,
328
342
  oauth: undefined,
343
+ fileSearch: undefined,
344
+ wm: undefined,
329
345
  };
330
346
  }
331
347
  exports.ResponseData = {
@@ -345,6 +361,12 @@ exports.ResponseData = {
345
361
  if (message.oauth !== undefined) {
346
362
  oauth_1.Response.encode(message.oauth, writer.uint32(42).fork()).join();
347
363
  }
364
+ if (message.fileSearch !== undefined) {
365
+ file_search_1.Response.encode(message.fileSearch, writer.uint32(50).fork()).join();
366
+ }
367
+ if (message.wm !== undefined) {
368
+ wm_1.Response.encode(message.wm, writer.uint32(58).fork()).join();
369
+ }
348
370
  return writer;
349
371
  },
350
372
  decode(input, length) {
@@ -389,6 +411,20 @@ exports.ResponseData = {
389
411
  message.oauth = oauth_1.Response.decode(reader, reader.uint32());
390
412
  continue;
391
413
  }
414
+ case 6: {
415
+ if (tag !== 50) {
416
+ break;
417
+ }
418
+ message.fileSearch = file_search_1.Response.decode(reader, reader.uint32());
419
+ continue;
420
+ }
421
+ case 7: {
422
+ if (tag !== 58) {
423
+ break;
424
+ }
425
+ message.wm = wm_1.Response.decode(reader, reader.uint32());
426
+ continue;
427
+ }
392
428
  }
393
429
  if ((tag & 7) === 4 || tag === 0) {
394
430
  break;
@@ -401,15 +437,11 @@ exports.ResponseData = {
401
437
  return {
402
438
  ui: isSet(object.ui) ? ui_1.Response.fromJSON(object.ui) : undefined,
403
439
  app: isSet(object.app) ? application_1.Response.fromJSON(object.app) : undefined,
404
- clipboard: isSet(object.clipboard)
405
- ? clipboard_1.Response.fromJSON(object.clipboard)
406
- : undefined,
407
- storage: isSet(object.storage)
408
- ? storage_1.Response.fromJSON(object.storage)
409
- : undefined,
410
- oauth: isSet(object.oauth)
411
- ? oauth_1.Response.fromJSON(object.oauth)
412
- : undefined,
440
+ clipboard: isSet(object.clipboard) ? clipboard_1.Response.fromJSON(object.clipboard) : undefined,
441
+ storage: isSet(object.storage) ? storage_1.Response.fromJSON(object.storage) : undefined,
442
+ oauth: isSet(object.oauth) ? oauth_1.Response.fromJSON(object.oauth) : undefined,
443
+ fileSearch: isSet(object.fileSearch) ? file_search_1.Response.fromJSON(object.fileSearch) : undefined,
444
+ wm: isSet(object.wm) ? wm_1.Response.fromJSON(object.wm) : undefined,
413
445
  };
414
446
  },
415
447
  toJSON(message) {
@@ -429,6 +461,12 @@ exports.ResponseData = {
429
461
  if (message.oauth !== undefined) {
430
462
  obj.oauth = oauth_1.Response.toJSON(message.oauth);
431
463
  }
464
+ if (message.fileSearch !== undefined) {
465
+ obj.fileSearch = file_search_1.Response.toJSON(message.fileSearch);
466
+ }
467
+ if (message.wm !== undefined) {
468
+ obj.wm = wm_1.Response.toJSON(message.wm);
469
+ }
432
470
  return obj;
433
471
  },
434
472
  create(base) {
@@ -436,26 +474,21 @@ exports.ResponseData = {
436
474
  },
437
475
  fromPartial(object) {
438
476
  const message = createBaseResponseData();
439
- message.ui =
440
- object.ui !== undefined && object.ui !== null
441
- ? ui_1.Response.fromPartial(object.ui)
442
- : undefined;
443
- message.app =
444
- object.app !== undefined && object.app !== null
445
- ? application_1.Response.fromPartial(object.app)
446
- : undefined;
447
- message.clipboard =
448
- object.clipboard !== undefined && object.clipboard !== null
449
- ? clipboard_1.Response.fromPartial(object.clipboard)
450
- : undefined;
451
- message.storage =
452
- object.storage !== undefined && object.storage !== null
453
- ? storage_1.Response.fromPartial(object.storage)
454
- : undefined;
455
- message.oauth =
456
- object.oauth !== undefined && object.oauth !== null
457
- ? oauth_1.Response.fromPartial(object.oauth)
458
- : undefined;
477
+ message.ui = (object.ui !== undefined && object.ui !== null) ? ui_1.Response.fromPartial(object.ui) : undefined;
478
+ message.app = (object.app !== undefined && object.app !== null) ? application_1.Response.fromPartial(object.app) : undefined;
479
+ message.clipboard = (object.clipboard !== undefined && object.clipboard !== null)
480
+ ? clipboard_1.Response.fromPartial(object.clipboard)
481
+ : undefined;
482
+ message.storage = (object.storage !== undefined && object.storage !== null)
483
+ ? storage_1.Response.fromPartial(object.storage)
484
+ : undefined;
485
+ message.oauth = (object.oauth !== undefined && object.oauth !== null)
486
+ ? oauth_1.Response.fromPartial(object.oauth)
487
+ : undefined;
488
+ message.fileSearch = (object.fileSearch !== undefined && object.fileSearch !== null)
489
+ ? file_search_1.Response.fromPartial(object.fileSearch)
490
+ : undefined;
491
+ message.wm = (object.wm !== undefined && object.wm !== null) ? wm_1.Response.fromPartial(object.wm) : undefined;
459
492
  return message;
460
493
  },
461
494
  };
@@ -514,12 +547,8 @@ exports.Event = {
514
547
  fromJSON(object) {
515
548
  return {
516
549
  id: isSet(object.id) ? globalThis.String(object.id) : "",
517
- generic: isSet(object.generic)
518
- ? exports.GenericEventData.fromJSON(object.generic)
519
- : undefined,
520
- crash: isSet(object.crash)
521
- ? exports.CrashEventData.fromJSON(object.crash)
522
- : undefined,
550
+ generic: isSet(object.generic) ? exports.GenericEventData.fromJSON(object.generic) : undefined,
551
+ crash: isSet(object.crash) ? exports.CrashEventData.fromJSON(object.crash) : undefined,
523
552
  };
524
553
  },
525
554
  toJSON(message) {
@@ -541,14 +570,12 @@ exports.Event = {
541
570
  fromPartial(object) {
542
571
  const message = createBaseEvent();
543
572
  message.id = object.id ?? "";
544
- message.generic =
545
- object.generic !== undefined && object.generic !== null
546
- ? exports.GenericEventData.fromPartial(object.generic)
547
- : undefined;
548
- message.crash =
549
- object.crash !== undefined && object.crash !== null
550
- ? exports.CrashEventData.fromPartial(object.crash)
551
- : undefined;
573
+ message.generic = (object.generic !== undefined && object.generic !== null)
574
+ ? exports.GenericEventData.fromPartial(object.generic)
575
+ : undefined;
576
+ message.crash = (object.crash !== undefined && object.crash !== null)
577
+ ? exports.CrashEventData.fromPartial(object.crash)
578
+ : undefined;
552
579
  return message;
553
580
  },
554
581
  };