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