@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.
Files changed (113) hide show
  1. package/README.md +37 -0
  2. package/bin/run.js +9 -0
  3. package/dist/api/ai.d.ts +110 -0
  4. package/dist/api/ai.js +120 -0
  5. package/dist/api/alert.d.ts +22 -0
  6. package/dist/api/alert.js +61 -0
  7. package/dist/api/bus.d.ts +95 -0
  8. package/dist/api/bus.js +211 -0
  9. package/dist/api/cache.d.ts +117 -0
  10. package/dist/api/cache.js +52 -0
  11. package/dist/api/clipboard.d.ts +34 -0
  12. package/dist/api/clipboard.js +52 -0
  13. package/dist/api/color.d.ts +24 -0
  14. package/dist/api/color.js +24 -0
  15. package/dist/api/components/action-pannel.d.ts +23 -0
  16. package/dist/api/components/action-pannel.js +30 -0
  17. package/dist/api/components/actions.d.ts +52 -0
  18. package/dist/api/components/actions.js +81 -0
  19. package/dist/api/components/detail.d.ts +21 -0
  20. package/dist/api/components/detail.js +12 -0
  21. package/dist/api/components/dropdown.d.ts +36 -0
  22. package/dist/api/components/dropdown.js +21 -0
  23. package/dist/api/components/empty-view.d.ts +9 -0
  24. package/dist/api/components/empty-view.js +12 -0
  25. package/dist/api/components/form.d.ts +81 -0
  26. package/dist/api/components/form.js +53 -0
  27. package/dist/api/components/grid.d.ts +117 -0
  28. package/dist/api/components/grid.js +80 -0
  29. package/dist/api/components/index.d.ts +7 -0
  30. package/dist/api/components/index.js +23 -0
  31. package/dist/api/components/list.d.ts +109 -0
  32. package/dist/api/components/list.js +53 -0
  33. package/dist/api/components/menu-bar.d.ts +26 -0
  34. package/dist/api/components/menu-bar.js +25 -0
  35. package/dist/api/components/metadata.d.ts +23 -0
  36. package/dist/api/components/metadata.js +27 -0
  37. package/dist/api/components/tag.d.ts +16 -0
  38. package/dist/api/components/tag.js +28 -0
  39. package/dist/api/context/index.d.ts +1 -0
  40. package/dist/api/context/index.js +17 -0
  41. package/dist/api/context/navigation-context.d.ts +7 -0
  42. package/dist/api/context/navigation-context.js +8 -0
  43. package/dist/api/context/navigation-provider.d.ts +4 -0
  44. package/dist/api/context/navigation-provider.js +40 -0
  45. package/dist/api/controls.d.ts +3 -0
  46. package/dist/api/controls.js +20 -0
  47. package/dist/api/environment.d.ts +118 -0
  48. package/dist/api/environment.js +17 -0
  49. package/dist/api/hooks/index.d.ts +2 -0
  50. package/dist/api/hooks/index.js +18 -0
  51. package/dist/api/hooks/use-applications.d.ts +2 -0
  52. package/dist/api/hooks/use-applications.js +19 -0
  53. package/dist/api/hooks/use-imperative-form-handle.d.ts +3 -0
  54. package/dist/api/hooks/use-imperative-form-handle.js +25 -0
  55. package/dist/api/hooks/use-navigation.d.ts +4 -0
  56. package/dist/api/hooks/use-navigation.js +13 -0
  57. package/dist/api/hooks.d.ts +1 -0
  58. package/dist/api/hooks.js +24 -0
  59. package/dist/api/icon.d.ts +444 -0
  60. package/dist/api/icon.js +448 -0
  61. package/dist/api/image.d.ts +35 -0
  62. package/dist/api/image.js +84 -0
  63. package/dist/api/index.d.ts +19 -0
  64. package/dist/api/index.js +35 -0
  65. package/dist/api/keyboard.d.ts +16 -0
  66. package/dist/api/keyboard.js +12 -0
  67. package/dist/api/lib/result.d.ts +9 -0
  68. package/dist/api/lib/result.js +11 -0
  69. package/dist/api/local-storage.d.ts +13 -0
  70. package/dist/api/local-storage.js +31 -0
  71. package/dist/api/oauth.d.ts +319 -0
  72. package/dist/api/oauth.js +166 -0
  73. package/dist/api/preference.d.ts +5 -0
  74. package/dist/api/preference.js +18 -0
  75. package/dist/api/proto/application.d.ts +48 -0
  76. package/dist/api/proto/application.js +378 -0
  77. package/dist/api/proto/clipboard.d.ts +65 -0
  78. package/dist/api/proto/clipboard.js +614 -0
  79. package/dist/api/proto/common.d.ts +28 -0
  80. package/dist/api/proto/common.js +102 -0
  81. package/dist/api/proto/extension.d.ts +68 -0
  82. package/dist/api/proto/extension.js +604 -0
  83. package/dist/api/proto/google/protobuf/struct.d.ts +107 -0
  84. package/dist/api/proto/google/protobuf/struct.js +456 -0
  85. package/dist/api/proto/ipc.d.ts +64 -0
  86. package/dist/api/proto/ipc.js +604 -0
  87. package/dist/api/proto/manager.d.ts +82 -0
  88. package/dist/api/proto/manager.js +689 -0
  89. package/dist/api/proto/oauth.d.ts +55 -0
  90. package/dist/api/proto/oauth.js +379 -0
  91. package/dist/api/proto/storage.d.ts +80 -0
  92. package/dist/api/proto/storage.js +804 -0
  93. package/dist/api/proto/ui.d.ts +186 -0
  94. package/dist/api/proto/ui.js +1993 -0
  95. package/dist/api/toast.d.ts +168 -0
  96. package/dist/api/toast.js +152 -0
  97. package/dist/api/utils.d.ts +15 -0
  98. package/dist/api/utils.js +64 -0
  99. package/dist/commands/build/index.d.ts +11 -0
  100. package/dist/commands/build/index.js +123 -0
  101. package/dist/commands/develop/index.d.ts +10 -0
  102. package/dist/commands/develop/index.js +193 -0
  103. package/dist/index.d.ts +1 -0
  104. package/dist/index.js +17 -0
  105. package/dist/schemas/manifest.d.ts +75 -0
  106. package/dist/schemas/manifest.js +4 -0
  107. package/dist/utils/logger.d.ts +13 -0
  108. package/dist/utils/logger.js +38 -0
  109. package/dist/utils/utils.d.ts +2 -0
  110. package/dist/utils/utils.js +19 -0
  111. package/dist/utils/vicinae.d.ts +12 -0
  112. package/dist/utils/vicinae.js +33 -0
  113. package/package.json +73 -0
@@ -0,0 +1,614 @@
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: clipboard.proto
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;
9
+ /* eslint-disable */
10
+ const wire_1 = require("@bufbuild/protobuf/wire");
11
+ exports.protobufPackage = "proto.ext.clipboard";
12
+ function createBaseClipboardHtmlContent() {
13
+ return { html: "", text: "" };
14
+ }
15
+ exports.ClipboardHtmlContent = {
16
+ encode(message, writer = new wire_1.BinaryWriter()) {
17
+ if (message.html !== "") {
18
+ writer.uint32(10).string(message.html);
19
+ }
20
+ if (message.text !== "") {
21
+ writer.uint32(18).string(message.text);
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 = createBaseClipboardHtmlContent();
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.html = reader.string();
37
+ continue;
38
+ }
39
+ case 2: {
40
+ if (tag !== 18) {
41
+ break;
42
+ }
43
+ message.text = 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
+ html: isSet(object.html) ? globalThis.String(object.html) : "",
57
+ text: isSet(object.text) ? globalThis.String(object.text) : "",
58
+ };
59
+ },
60
+ toJSON(message) {
61
+ const obj = {};
62
+ if (message.html !== "") {
63
+ obj.html = message.html;
64
+ }
65
+ if (message.text !== "") {
66
+ obj.text = message.text;
67
+ }
68
+ return obj;
69
+ },
70
+ create(base) {
71
+ return exports.ClipboardHtmlContent.fromPartial(base ?? {});
72
+ },
73
+ fromPartial(object) {
74
+ const message = createBaseClipboardHtmlContent();
75
+ message.html = object.html ?? "";
76
+ message.text = object.text ?? "";
77
+ return message;
78
+ },
79
+ };
80
+ function createBaseClipboardPathContent() {
81
+ return { path: "" };
82
+ }
83
+ exports.ClipboardPathContent = {
84
+ encode(message, writer = new wire_1.BinaryWriter()) {
85
+ if (message.path !== "") {
86
+ writer.uint32(10).string(message.path);
87
+ }
88
+ return writer;
89
+ },
90
+ decode(input, length) {
91
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
92
+ const end = length === undefined ? reader.len : reader.pos + length;
93
+ const message = createBaseClipboardPathContent();
94
+ while (reader.pos < end) {
95
+ const tag = reader.uint32();
96
+ switch (tag >>> 3) {
97
+ case 1: {
98
+ if (tag !== 10) {
99
+ break;
100
+ }
101
+ message.path = reader.string();
102
+ continue;
103
+ }
104
+ }
105
+ if ((tag & 7) === 4 || tag === 0) {
106
+ break;
107
+ }
108
+ reader.skip(tag & 7);
109
+ }
110
+ return message;
111
+ },
112
+ fromJSON(object) {
113
+ return { path: isSet(object.path) ? globalThis.String(object.path) : "" };
114
+ },
115
+ toJSON(message) {
116
+ const obj = {};
117
+ if (message.path !== "") {
118
+ obj.path = message.path;
119
+ }
120
+ return obj;
121
+ },
122
+ create(base) {
123
+ return exports.ClipboardPathContent.fromPartial(base ?? {});
124
+ },
125
+ fromPartial(object) {
126
+ const message = createBaseClipboardPathContent();
127
+ message.path = object.path ?? "";
128
+ return message;
129
+ },
130
+ };
131
+ function createBaseClipboardOptions() {
132
+ return { concealed: false };
133
+ }
134
+ exports.ClipboardOptions = {
135
+ encode(message, writer = new wire_1.BinaryWriter()) {
136
+ if (message.concealed !== false) {
137
+ writer.uint32(8).bool(message.concealed);
138
+ }
139
+ return writer;
140
+ },
141
+ decode(input, length) {
142
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
143
+ const end = length === undefined ? reader.len : reader.pos + length;
144
+ const message = createBaseClipboardOptions();
145
+ while (reader.pos < end) {
146
+ const tag = reader.uint32();
147
+ switch (tag >>> 3) {
148
+ case 1: {
149
+ if (tag !== 8) {
150
+ break;
151
+ }
152
+ message.concealed = reader.bool();
153
+ continue;
154
+ }
155
+ }
156
+ if ((tag & 7) === 4 || tag === 0) {
157
+ break;
158
+ }
159
+ reader.skip(tag & 7);
160
+ }
161
+ return message;
162
+ },
163
+ fromJSON(object) {
164
+ return { concealed: isSet(object.concealed) ? globalThis.Boolean(object.concealed) : false };
165
+ },
166
+ toJSON(message) {
167
+ const obj = {};
168
+ if (message.concealed !== false) {
169
+ obj.concealed = message.concealed;
170
+ }
171
+ return obj;
172
+ },
173
+ create(base) {
174
+ return exports.ClipboardOptions.fromPartial(base ?? {});
175
+ },
176
+ fromPartial(object) {
177
+ const message = createBaseClipboardOptions();
178
+ message.concealed = object.concealed ?? false;
179
+ return message;
180
+ },
181
+ };
182
+ function createBaseCopyToClipboardRequest() {
183
+ return { content: undefined, options: undefined };
184
+ }
185
+ exports.CopyToClipboardRequest = {
186
+ encode(message, writer = new wire_1.BinaryWriter()) {
187
+ if (message.content !== undefined) {
188
+ exports.ClipboardContent.encode(message.content, writer.uint32(10).fork()).join();
189
+ }
190
+ if (message.options !== undefined) {
191
+ exports.ClipboardOptions.encode(message.options, writer.uint32(18).fork()).join();
192
+ }
193
+ return writer;
194
+ },
195
+ decode(input, length) {
196
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
197
+ const end = length === undefined ? reader.len : reader.pos + length;
198
+ const message = createBaseCopyToClipboardRequest();
199
+ while (reader.pos < end) {
200
+ const tag = reader.uint32();
201
+ switch (tag >>> 3) {
202
+ case 1: {
203
+ if (tag !== 10) {
204
+ break;
205
+ }
206
+ message.content = exports.ClipboardContent.decode(reader, reader.uint32());
207
+ continue;
208
+ }
209
+ case 2: {
210
+ if (tag !== 18) {
211
+ break;
212
+ }
213
+ message.options = exports.ClipboardOptions.decode(reader, reader.uint32());
214
+ continue;
215
+ }
216
+ }
217
+ if ((tag & 7) === 4 || tag === 0) {
218
+ break;
219
+ }
220
+ reader.skip(tag & 7);
221
+ }
222
+ return message;
223
+ },
224
+ fromJSON(object) {
225
+ return {
226
+ content: isSet(object.content) ? exports.ClipboardContent.fromJSON(object.content) : undefined,
227
+ options: isSet(object.options) ? exports.ClipboardOptions.fromJSON(object.options) : undefined,
228
+ };
229
+ },
230
+ toJSON(message) {
231
+ const obj = {};
232
+ if (message.content !== undefined) {
233
+ obj.content = exports.ClipboardContent.toJSON(message.content);
234
+ }
235
+ if (message.options !== undefined) {
236
+ obj.options = exports.ClipboardOptions.toJSON(message.options);
237
+ }
238
+ return obj;
239
+ },
240
+ create(base) {
241
+ return exports.CopyToClipboardRequest.fromPartial(base ?? {});
242
+ },
243
+ fromPartial(object) {
244
+ const message = createBaseCopyToClipboardRequest();
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;
251
+ return message;
252
+ },
253
+ };
254
+ function createBasePasteToClipboardRequest() {
255
+ return { content: undefined };
256
+ }
257
+ exports.PasteToClipboardRequest = {
258
+ encode(message, writer = new wire_1.BinaryWriter()) {
259
+ if (message.content !== undefined) {
260
+ exports.ClipboardContent.encode(message.content, writer.uint32(10).fork()).join();
261
+ }
262
+ return writer;
263
+ },
264
+ decode(input, length) {
265
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
266
+ const end = length === undefined ? reader.len : reader.pos + length;
267
+ const message = createBasePasteToClipboardRequest();
268
+ while (reader.pos < end) {
269
+ const tag = reader.uint32();
270
+ switch (tag >>> 3) {
271
+ case 1: {
272
+ if (tag !== 10) {
273
+ break;
274
+ }
275
+ message.content = exports.ClipboardContent.decode(reader, reader.uint32());
276
+ continue;
277
+ }
278
+ }
279
+ if ((tag & 7) === 4 || tag === 0) {
280
+ break;
281
+ }
282
+ reader.skip(tag & 7);
283
+ }
284
+ return message;
285
+ },
286
+ fromJSON(object) {
287
+ return { content: isSet(object.content) ? exports.ClipboardContent.fromJSON(object.content) : undefined };
288
+ },
289
+ toJSON(message) {
290
+ const obj = {};
291
+ if (message.content !== undefined) {
292
+ obj.content = exports.ClipboardContent.toJSON(message.content);
293
+ }
294
+ return obj;
295
+ },
296
+ create(base) {
297
+ return exports.PasteToClipboardRequest.fromPartial(base ?? {});
298
+ },
299
+ fromPartial(object) {
300
+ const message = createBasePasteToClipboardRequest();
301
+ message.content = (object.content !== undefined && object.content !== null)
302
+ ? exports.ClipboardContent.fromPartial(object.content)
303
+ : undefined;
304
+ return message;
305
+ },
306
+ };
307
+ function createBaseClipboardContent() {
308
+ return { text: undefined, html: undefined, path: undefined };
309
+ }
310
+ exports.ClipboardContent = {
311
+ encode(message, writer = new wire_1.BinaryWriter()) {
312
+ if (message.text !== undefined) {
313
+ writer.uint32(10).string(message.text);
314
+ }
315
+ if (message.html !== undefined) {
316
+ exports.ClipboardHtmlContent.encode(message.html, writer.uint32(18).fork()).join();
317
+ }
318
+ if (message.path !== undefined) {
319
+ exports.ClipboardPathContent.encode(message.path, writer.uint32(26).fork()).join();
320
+ }
321
+ return writer;
322
+ },
323
+ decode(input, length) {
324
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
325
+ const end = length === undefined ? reader.len : reader.pos + length;
326
+ const message = createBaseClipboardContent();
327
+ while (reader.pos < end) {
328
+ const tag = reader.uint32();
329
+ switch (tag >>> 3) {
330
+ case 1: {
331
+ if (tag !== 10) {
332
+ break;
333
+ }
334
+ message.text = reader.string();
335
+ continue;
336
+ }
337
+ case 2: {
338
+ if (tag !== 18) {
339
+ break;
340
+ }
341
+ message.html = exports.ClipboardHtmlContent.decode(reader, reader.uint32());
342
+ continue;
343
+ }
344
+ case 3: {
345
+ if (tag !== 26) {
346
+ break;
347
+ }
348
+ message.path = exports.ClipboardPathContent.decode(reader, reader.uint32());
349
+ continue;
350
+ }
351
+ }
352
+ if ((tag & 7) === 4 || tag === 0) {
353
+ break;
354
+ }
355
+ reader.skip(tag & 7);
356
+ }
357
+ return message;
358
+ },
359
+ fromJSON(object) {
360
+ return {
361
+ text: isSet(object.text) ? globalThis.String(object.text) : undefined,
362
+ html: isSet(object.html) ? exports.ClipboardHtmlContent.fromJSON(object.html) : undefined,
363
+ path: isSet(object.path) ? exports.ClipboardPathContent.fromJSON(object.path) : undefined,
364
+ };
365
+ },
366
+ toJSON(message) {
367
+ const obj = {};
368
+ if (message.text !== undefined) {
369
+ obj.text = message.text;
370
+ }
371
+ if (message.html !== undefined) {
372
+ obj.html = exports.ClipboardHtmlContent.toJSON(message.html);
373
+ }
374
+ if (message.path !== undefined) {
375
+ obj.path = exports.ClipboardPathContent.toJSON(message.path);
376
+ }
377
+ return obj;
378
+ },
379
+ create(base) {
380
+ return exports.ClipboardContent.fromPartial(base ?? {});
381
+ },
382
+ fromPartial(object) {
383
+ const message = createBaseClipboardContent();
384
+ message.text = object.text ?? 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;
391
+ return message;
392
+ },
393
+ };
394
+ function createBaseCopyToClipboardResponse() {
395
+ return {};
396
+ }
397
+ exports.CopyToClipboardResponse = {
398
+ encode(_, writer = new wire_1.BinaryWriter()) {
399
+ return writer;
400
+ },
401
+ decode(input, length) {
402
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
403
+ const end = length === undefined ? reader.len : reader.pos + length;
404
+ const message = createBaseCopyToClipboardResponse();
405
+ while (reader.pos < end) {
406
+ const tag = reader.uint32();
407
+ switch (tag >>> 3) {
408
+ }
409
+ if ((tag & 7) === 4 || tag === 0) {
410
+ break;
411
+ }
412
+ reader.skip(tag & 7);
413
+ }
414
+ return message;
415
+ },
416
+ fromJSON(_) {
417
+ return {};
418
+ },
419
+ toJSON(_) {
420
+ const obj = {};
421
+ return obj;
422
+ },
423
+ create(base) {
424
+ return exports.CopyToClipboardResponse.fromPartial(base ?? {});
425
+ },
426
+ fromPartial(_) {
427
+ const message = createBaseCopyToClipboardResponse();
428
+ return message;
429
+ },
430
+ };
431
+ function createBasePasteToClipboardResponse() {
432
+ return {};
433
+ }
434
+ exports.PasteToClipboardResponse = {
435
+ encode(_, writer = new wire_1.BinaryWriter()) {
436
+ return writer;
437
+ },
438
+ decode(input, length) {
439
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
440
+ const end = length === undefined ? reader.len : reader.pos + length;
441
+ const message = createBasePasteToClipboardResponse();
442
+ while (reader.pos < end) {
443
+ const tag = reader.uint32();
444
+ switch (tag >>> 3) {
445
+ }
446
+ if ((tag & 7) === 4 || tag === 0) {
447
+ break;
448
+ }
449
+ reader.skip(tag & 7);
450
+ }
451
+ return message;
452
+ },
453
+ fromJSON(_) {
454
+ return {};
455
+ },
456
+ toJSON(_) {
457
+ const obj = {};
458
+ return obj;
459
+ },
460
+ create(base) {
461
+ return exports.PasteToClipboardResponse.fromPartial(base ?? {});
462
+ },
463
+ fromPartial(_) {
464
+ const message = createBasePasteToClipboardResponse();
465
+ return message;
466
+ },
467
+ };
468
+ function createBaseRequest() {
469
+ return { copy: undefined, paste: undefined };
470
+ }
471
+ exports.Request = {
472
+ encode(message, writer = new wire_1.BinaryWriter()) {
473
+ if (message.copy !== undefined) {
474
+ exports.CopyToClipboardRequest.encode(message.copy, writer.uint32(10).fork()).join();
475
+ }
476
+ if (message.paste !== undefined) {
477
+ exports.PasteToClipboardRequest.encode(message.paste, writer.uint32(18).fork()).join();
478
+ }
479
+ return writer;
480
+ },
481
+ decode(input, length) {
482
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
483
+ const end = length === undefined ? reader.len : reader.pos + length;
484
+ const message = createBaseRequest();
485
+ while (reader.pos < end) {
486
+ const tag = reader.uint32();
487
+ switch (tag >>> 3) {
488
+ case 1: {
489
+ if (tag !== 10) {
490
+ break;
491
+ }
492
+ message.copy = exports.CopyToClipboardRequest.decode(reader, reader.uint32());
493
+ continue;
494
+ }
495
+ case 2: {
496
+ if (tag !== 18) {
497
+ break;
498
+ }
499
+ message.paste = exports.PasteToClipboardRequest.decode(reader, reader.uint32());
500
+ continue;
501
+ }
502
+ }
503
+ if ((tag & 7) === 4 || tag === 0) {
504
+ break;
505
+ }
506
+ reader.skip(tag & 7);
507
+ }
508
+ return message;
509
+ },
510
+ fromJSON(object) {
511
+ return {
512
+ copy: isSet(object.copy) ? exports.CopyToClipboardRequest.fromJSON(object.copy) : undefined,
513
+ paste: isSet(object.paste) ? exports.PasteToClipboardRequest.fromJSON(object.paste) : undefined,
514
+ };
515
+ },
516
+ toJSON(message) {
517
+ const obj = {};
518
+ if (message.copy !== undefined) {
519
+ obj.copy = exports.CopyToClipboardRequest.toJSON(message.copy);
520
+ }
521
+ if (message.paste !== undefined) {
522
+ obj.paste = exports.PasteToClipboardRequest.toJSON(message.paste);
523
+ }
524
+ return obj;
525
+ },
526
+ create(base) {
527
+ return exports.Request.fromPartial(base ?? {});
528
+ },
529
+ fromPartial(object) {
530
+ const message = createBaseRequest();
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;
537
+ return message;
538
+ },
539
+ };
540
+ function createBaseResponse() {
541
+ return { copy: undefined, paste: undefined };
542
+ }
543
+ exports.Response = {
544
+ encode(message, writer = new wire_1.BinaryWriter()) {
545
+ if (message.copy !== undefined) {
546
+ exports.CopyToClipboardResponse.encode(message.copy, writer.uint32(10).fork()).join();
547
+ }
548
+ if (message.paste !== undefined) {
549
+ exports.PasteToClipboardResponse.encode(message.paste, writer.uint32(18).fork()).join();
550
+ }
551
+ return writer;
552
+ },
553
+ decode(input, length) {
554
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
555
+ const end = length === undefined ? reader.len : reader.pos + length;
556
+ const message = createBaseResponse();
557
+ while (reader.pos < end) {
558
+ const tag = reader.uint32();
559
+ switch (tag >>> 3) {
560
+ case 1: {
561
+ if (tag !== 10) {
562
+ break;
563
+ }
564
+ message.copy = exports.CopyToClipboardResponse.decode(reader, reader.uint32());
565
+ continue;
566
+ }
567
+ case 2: {
568
+ if (tag !== 18) {
569
+ break;
570
+ }
571
+ message.paste = exports.PasteToClipboardResponse.decode(reader, reader.uint32());
572
+ continue;
573
+ }
574
+ }
575
+ if ((tag & 7) === 4 || tag === 0) {
576
+ break;
577
+ }
578
+ reader.skip(tag & 7);
579
+ }
580
+ return message;
581
+ },
582
+ fromJSON(object) {
583
+ return {
584
+ copy: isSet(object.copy) ? exports.CopyToClipboardResponse.fromJSON(object.copy) : undefined,
585
+ paste: isSet(object.paste) ? exports.PasteToClipboardResponse.fromJSON(object.paste) : undefined,
586
+ };
587
+ },
588
+ toJSON(message) {
589
+ const obj = {};
590
+ if (message.copy !== undefined) {
591
+ obj.copy = exports.CopyToClipboardResponse.toJSON(message.copy);
592
+ }
593
+ if (message.paste !== undefined) {
594
+ obj.paste = exports.PasteToClipboardResponse.toJSON(message.paste);
595
+ }
596
+ return obj;
597
+ },
598
+ create(base) {
599
+ return exports.Response.fromPartial(base ?? {});
600
+ },
601
+ fromPartial(object) {
602
+ const message = createBaseResponse();
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;
609
+ return message;
610
+ },
611
+ };
612
+ function isSet(value) {
613
+ return value !== null && value !== undefined;
614
+ }
@@ -0,0 +1,28 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ export declare const protobufPackage = "proto.ext.common";
3
+ export interface AckResponse {
4
+ }
5
+ export interface ErrorResponse {
6
+ errorText: string;
7
+ }
8
+ export declare const AckResponse: MessageFns<AckResponse>;
9
+ export declare const ErrorResponse: MessageFns<ErrorResponse>;
10
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
11
+ 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 {} ? {
12
+ [K in keyof T]?: DeepPartial<T[K]>;
13
+ } : Partial<T>;
14
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
15
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
16
+ [K in keyof P]: Exact<P[K], I[K]>;
17
+ } & {
18
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
19
+ };
20
+ export interface MessageFns<T> {
21
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
22
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
23
+ fromJSON(object: any): T;
24
+ toJSON(message: T): unknown;
25
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
26
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
27
+ }
28
+ export {};