@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,55 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { Image } from "./ui";
3
+ export declare const protobufPackage = "proto.ext.oauth";
4
+ export declare enum RedirectMethod {
5
+ Web = 0,
6
+ App = 1,
7
+ AppURI = 2,
8
+ UNRECOGNIZED = -1
9
+ }
10
+ export declare function redirectMethodFromJSON(object: any): RedirectMethod;
11
+ export declare function redirectMethodToJSON(object: RedirectMethod): string;
12
+ export interface PKCEClientOptions {
13
+ id?: string | undefined;
14
+ name: string;
15
+ /** we need to implement image like schema */
16
+ description: string;
17
+ icon?: Image | undefined;
18
+ }
19
+ export interface AuthorizeRequest {
20
+ client: PKCEClientOptions | undefined;
21
+ url: string;
22
+ }
23
+ export interface AuthorizeResponse {
24
+ code: string;
25
+ }
26
+ export interface Request {
27
+ authorize?: AuthorizeRequest | undefined;
28
+ }
29
+ export interface Response {
30
+ authorize?: AuthorizeResponse | undefined;
31
+ }
32
+ export declare const PKCEClientOptions: MessageFns<PKCEClientOptions>;
33
+ export declare const AuthorizeRequest: MessageFns<AuthorizeRequest>;
34
+ export declare const AuthorizeResponse: MessageFns<AuthorizeResponse>;
35
+ export declare const Request: MessageFns<Request>;
36
+ export declare const Response: MessageFns<Response>;
37
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
38
+ 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 {} ? {
39
+ [K in keyof T]?: DeepPartial<T[K]>;
40
+ } : Partial<T>;
41
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
42
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
43
+ [K in keyof P]: Exact<P[K], I[K]>;
44
+ } & {
45
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
46
+ };
47
+ export interface MessageFns<T> {
48
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
49
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
50
+ fromJSON(object: any): T;
51
+ toJSON(message: T): unknown;
52
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
53
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
54
+ }
55
+ export {};
@@ -0,0 +1,379 @@
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: oauth.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.Response = exports.Request = exports.AuthorizeResponse = exports.AuthorizeRequest = exports.PKCEClientOptions = exports.RedirectMethod = exports.protobufPackage = void 0;
9
+ exports.redirectMethodFromJSON = redirectMethodFromJSON;
10
+ exports.redirectMethodToJSON = redirectMethodToJSON;
11
+ /* eslint-disable */
12
+ const wire_1 = require("@bufbuild/protobuf/wire");
13
+ const ui_1 = require("./ui");
14
+ exports.protobufPackage = "proto.ext.oauth";
15
+ var RedirectMethod;
16
+ (function (RedirectMethod) {
17
+ RedirectMethod[RedirectMethod["Web"] = 0] = "Web";
18
+ RedirectMethod[RedirectMethod["App"] = 1] = "App";
19
+ RedirectMethod[RedirectMethod["AppURI"] = 2] = "AppURI";
20
+ RedirectMethod[RedirectMethod["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
21
+ })(RedirectMethod || (exports.RedirectMethod = RedirectMethod = {}));
22
+ function redirectMethodFromJSON(object) {
23
+ switch (object) {
24
+ case 0:
25
+ case "Web":
26
+ return RedirectMethod.Web;
27
+ case 1:
28
+ case "App":
29
+ return RedirectMethod.App;
30
+ case 2:
31
+ case "AppURI":
32
+ return RedirectMethod.AppURI;
33
+ case -1:
34
+ case "UNRECOGNIZED":
35
+ default:
36
+ return RedirectMethod.UNRECOGNIZED;
37
+ }
38
+ }
39
+ function redirectMethodToJSON(object) {
40
+ switch (object) {
41
+ case RedirectMethod.Web:
42
+ return "Web";
43
+ case RedirectMethod.App:
44
+ return "App";
45
+ case RedirectMethod.AppURI:
46
+ return "AppURI";
47
+ case RedirectMethod.UNRECOGNIZED:
48
+ default:
49
+ return "UNRECOGNIZED";
50
+ }
51
+ }
52
+ function createBasePKCEClientOptions() {
53
+ return { id: undefined, name: "", description: "", icon: undefined };
54
+ }
55
+ exports.PKCEClientOptions = {
56
+ encode(message, writer = new wire_1.BinaryWriter()) {
57
+ if (message.id !== undefined) {
58
+ writer.uint32(10).string(message.id);
59
+ }
60
+ if (message.name !== "") {
61
+ writer.uint32(18).string(message.name);
62
+ }
63
+ if (message.description !== "") {
64
+ writer.uint32(26).string(message.description);
65
+ }
66
+ if (message.icon !== undefined) {
67
+ ui_1.Image.encode(message.icon, writer.uint32(34).fork()).join();
68
+ }
69
+ return writer;
70
+ },
71
+ decode(input, length) {
72
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
73
+ const end = length === undefined ? reader.len : reader.pos + length;
74
+ const message = createBasePKCEClientOptions();
75
+ while (reader.pos < end) {
76
+ const tag = reader.uint32();
77
+ switch (tag >>> 3) {
78
+ case 1: {
79
+ if (tag !== 10) {
80
+ break;
81
+ }
82
+ message.id = reader.string();
83
+ continue;
84
+ }
85
+ case 2: {
86
+ if (tag !== 18) {
87
+ break;
88
+ }
89
+ message.name = reader.string();
90
+ continue;
91
+ }
92
+ case 3: {
93
+ if (tag !== 26) {
94
+ break;
95
+ }
96
+ message.description = reader.string();
97
+ continue;
98
+ }
99
+ case 4: {
100
+ if (tag !== 34) {
101
+ break;
102
+ }
103
+ message.icon = ui_1.Image.decode(reader, reader.uint32());
104
+ continue;
105
+ }
106
+ }
107
+ if ((tag & 7) === 4 || tag === 0) {
108
+ break;
109
+ }
110
+ reader.skip(tag & 7);
111
+ }
112
+ return message;
113
+ },
114
+ fromJSON(object) {
115
+ return {
116
+ id: isSet(object.id) ? globalThis.String(object.id) : undefined,
117
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
118
+ description: isSet(object.description) ? globalThis.String(object.description) : "",
119
+ icon: isSet(object.icon) ? ui_1.Image.fromJSON(object.icon) : undefined,
120
+ };
121
+ },
122
+ toJSON(message) {
123
+ const obj = {};
124
+ if (message.id !== undefined) {
125
+ obj.id = message.id;
126
+ }
127
+ if (message.name !== "") {
128
+ obj.name = message.name;
129
+ }
130
+ if (message.description !== "") {
131
+ obj.description = message.description;
132
+ }
133
+ if (message.icon !== undefined) {
134
+ obj.icon = ui_1.Image.toJSON(message.icon);
135
+ }
136
+ return obj;
137
+ },
138
+ create(base) {
139
+ return exports.PKCEClientOptions.fromPartial(base ?? {});
140
+ },
141
+ fromPartial(object) {
142
+ const message = createBasePKCEClientOptions();
143
+ message.id = object.id ?? undefined;
144
+ message.name = object.name ?? "";
145
+ message.description = object.description ?? "";
146
+ message.icon = (object.icon !== undefined && object.icon !== null) ? ui_1.Image.fromPartial(object.icon) : undefined;
147
+ return message;
148
+ },
149
+ };
150
+ function createBaseAuthorizeRequest() {
151
+ return { client: undefined, url: "" };
152
+ }
153
+ exports.AuthorizeRequest = {
154
+ encode(message, writer = new wire_1.BinaryWriter()) {
155
+ if (message.client !== undefined) {
156
+ exports.PKCEClientOptions.encode(message.client, writer.uint32(10).fork()).join();
157
+ }
158
+ if (message.url !== "") {
159
+ writer.uint32(18).string(message.url);
160
+ }
161
+ return writer;
162
+ },
163
+ decode(input, length) {
164
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
165
+ const end = length === undefined ? reader.len : reader.pos + length;
166
+ const message = createBaseAuthorizeRequest();
167
+ while (reader.pos < end) {
168
+ const tag = reader.uint32();
169
+ switch (tag >>> 3) {
170
+ case 1: {
171
+ if (tag !== 10) {
172
+ break;
173
+ }
174
+ message.client = exports.PKCEClientOptions.decode(reader, reader.uint32());
175
+ continue;
176
+ }
177
+ case 2: {
178
+ if (tag !== 18) {
179
+ break;
180
+ }
181
+ message.url = reader.string();
182
+ continue;
183
+ }
184
+ }
185
+ if ((tag & 7) === 4 || tag === 0) {
186
+ break;
187
+ }
188
+ reader.skip(tag & 7);
189
+ }
190
+ return message;
191
+ },
192
+ fromJSON(object) {
193
+ return {
194
+ client: isSet(object.client) ? exports.PKCEClientOptions.fromJSON(object.client) : undefined,
195
+ url: isSet(object.url) ? globalThis.String(object.url) : "",
196
+ };
197
+ },
198
+ toJSON(message) {
199
+ const obj = {};
200
+ if (message.client !== undefined) {
201
+ obj.client = exports.PKCEClientOptions.toJSON(message.client);
202
+ }
203
+ if (message.url !== "") {
204
+ obj.url = message.url;
205
+ }
206
+ return obj;
207
+ },
208
+ create(base) {
209
+ return exports.AuthorizeRequest.fromPartial(base ?? {});
210
+ },
211
+ fromPartial(object) {
212
+ const message = createBaseAuthorizeRequest();
213
+ message.client = (object.client !== undefined && object.client !== null)
214
+ ? exports.PKCEClientOptions.fromPartial(object.client)
215
+ : undefined;
216
+ message.url = object.url ?? "";
217
+ return message;
218
+ },
219
+ };
220
+ function createBaseAuthorizeResponse() {
221
+ return { code: "" };
222
+ }
223
+ exports.AuthorizeResponse = {
224
+ encode(message, writer = new wire_1.BinaryWriter()) {
225
+ if (message.code !== "") {
226
+ writer.uint32(10).string(message.code);
227
+ }
228
+ return writer;
229
+ },
230
+ decode(input, length) {
231
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
232
+ const end = length === undefined ? reader.len : reader.pos + length;
233
+ const message = createBaseAuthorizeResponse();
234
+ while (reader.pos < end) {
235
+ const tag = reader.uint32();
236
+ switch (tag >>> 3) {
237
+ case 1: {
238
+ if (tag !== 10) {
239
+ break;
240
+ }
241
+ message.code = reader.string();
242
+ continue;
243
+ }
244
+ }
245
+ if ((tag & 7) === 4 || tag === 0) {
246
+ break;
247
+ }
248
+ reader.skip(tag & 7);
249
+ }
250
+ return message;
251
+ },
252
+ fromJSON(object) {
253
+ return { code: isSet(object.code) ? globalThis.String(object.code) : "" };
254
+ },
255
+ toJSON(message) {
256
+ const obj = {};
257
+ if (message.code !== "") {
258
+ obj.code = message.code;
259
+ }
260
+ return obj;
261
+ },
262
+ create(base) {
263
+ return exports.AuthorizeResponse.fromPartial(base ?? {});
264
+ },
265
+ fromPartial(object) {
266
+ const message = createBaseAuthorizeResponse();
267
+ message.code = object.code ?? "";
268
+ return message;
269
+ },
270
+ };
271
+ function createBaseRequest() {
272
+ return { authorize: undefined };
273
+ }
274
+ exports.Request = {
275
+ encode(message, writer = new wire_1.BinaryWriter()) {
276
+ if (message.authorize !== undefined) {
277
+ exports.AuthorizeRequest.encode(message.authorize, writer.uint32(10).fork()).join();
278
+ }
279
+ return writer;
280
+ },
281
+ decode(input, length) {
282
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
283
+ const end = length === undefined ? reader.len : reader.pos + length;
284
+ const message = createBaseRequest();
285
+ while (reader.pos < end) {
286
+ const tag = reader.uint32();
287
+ switch (tag >>> 3) {
288
+ case 1: {
289
+ if (tag !== 10) {
290
+ break;
291
+ }
292
+ message.authorize = exports.AuthorizeRequest.decode(reader, reader.uint32());
293
+ continue;
294
+ }
295
+ }
296
+ if ((tag & 7) === 4 || tag === 0) {
297
+ break;
298
+ }
299
+ reader.skip(tag & 7);
300
+ }
301
+ return message;
302
+ },
303
+ fromJSON(object) {
304
+ return { authorize: isSet(object.authorize) ? exports.AuthorizeRequest.fromJSON(object.authorize) : undefined };
305
+ },
306
+ toJSON(message) {
307
+ const obj = {};
308
+ if (message.authorize !== undefined) {
309
+ obj.authorize = exports.AuthorizeRequest.toJSON(message.authorize);
310
+ }
311
+ return obj;
312
+ },
313
+ create(base) {
314
+ return exports.Request.fromPartial(base ?? {});
315
+ },
316
+ fromPartial(object) {
317
+ const message = createBaseRequest();
318
+ message.authorize = (object.authorize !== undefined && object.authorize !== null)
319
+ ? exports.AuthorizeRequest.fromPartial(object.authorize)
320
+ : undefined;
321
+ return message;
322
+ },
323
+ };
324
+ function createBaseResponse() {
325
+ return { authorize: undefined };
326
+ }
327
+ exports.Response = {
328
+ encode(message, writer = new wire_1.BinaryWriter()) {
329
+ if (message.authorize !== undefined) {
330
+ exports.AuthorizeResponse.encode(message.authorize, writer.uint32(10).fork()).join();
331
+ }
332
+ return writer;
333
+ },
334
+ decode(input, length) {
335
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
336
+ const end = length === undefined ? reader.len : reader.pos + length;
337
+ const message = createBaseResponse();
338
+ while (reader.pos < end) {
339
+ const tag = reader.uint32();
340
+ switch (tag >>> 3) {
341
+ case 1: {
342
+ if (tag !== 10) {
343
+ break;
344
+ }
345
+ message.authorize = exports.AuthorizeResponse.decode(reader, reader.uint32());
346
+ continue;
347
+ }
348
+ }
349
+ if ((tag & 7) === 4 || tag === 0) {
350
+ break;
351
+ }
352
+ reader.skip(tag & 7);
353
+ }
354
+ return message;
355
+ },
356
+ fromJSON(object) {
357
+ return { authorize: isSet(object.authorize) ? exports.AuthorizeResponse.fromJSON(object.authorize) : undefined };
358
+ },
359
+ toJSON(message) {
360
+ const obj = {};
361
+ if (message.authorize !== undefined) {
362
+ obj.authorize = exports.AuthorizeResponse.toJSON(message.authorize);
363
+ }
364
+ return obj;
365
+ },
366
+ create(base) {
367
+ return exports.Response.fromPartial(base ?? {});
368
+ },
369
+ fromPartial(object) {
370
+ const message = createBaseResponse();
371
+ message.authorize = (object.authorize !== undefined && object.authorize !== null)
372
+ ? exports.AuthorizeResponse.fromPartial(object.authorize)
373
+ : undefined;
374
+ return message;
375
+ },
376
+ };
377
+ function isSet(value) {
378
+ return value !== null && value !== undefined;
379
+ }
@@ -0,0 +1,80 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ export declare const protobufPackage = "proto.ext.storage";
3
+ export interface ClearRequest {
4
+ }
5
+ export interface GetRequest {
6
+ key: string;
7
+ }
8
+ export interface GetResponse {
9
+ value: any | undefined;
10
+ }
11
+ export interface SetResponse {
12
+ }
13
+ export interface SetRequest {
14
+ key: string;
15
+ value: any | undefined;
16
+ }
17
+ export interface RemoveRequest {
18
+ key: string;
19
+ }
20
+ export interface RemoveResponse {
21
+ }
22
+ export interface ClearResponse {
23
+ }
24
+ export interface ListRequest {
25
+ }
26
+ export interface ListResponse {
27
+ values: {
28
+ [key: string]: any | undefined;
29
+ };
30
+ }
31
+ export interface ListResponse_ValuesEntry {
32
+ key: string;
33
+ value: any | undefined;
34
+ }
35
+ export interface Request {
36
+ get?: GetRequest | undefined;
37
+ set?: SetRequest | undefined;
38
+ remove?: RemoveRequest | undefined;
39
+ clear?: ClearRequest | undefined;
40
+ list?: ListRequest | undefined;
41
+ }
42
+ export interface Response {
43
+ get?: GetResponse | undefined;
44
+ set?: SetResponse | undefined;
45
+ remove?: RemoveResponse | undefined;
46
+ clear?: ClearResponse | undefined;
47
+ list?: ListResponse | undefined;
48
+ }
49
+ export declare const ClearRequest: MessageFns<ClearRequest>;
50
+ export declare const GetRequest: MessageFns<GetRequest>;
51
+ export declare const GetResponse: MessageFns<GetResponse>;
52
+ export declare const SetResponse: MessageFns<SetResponse>;
53
+ export declare const SetRequest: MessageFns<SetRequest>;
54
+ export declare const RemoveRequest: MessageFns<RemoveRequest>;
55
+ export declare const RemoveResponse: MessageFns<RemoveResponse>;
56
+ export declare const ClearResponse: MessageFns<ClearResponse>;
57
+ export declare const ListRequest: MessageFns<ListRequest>;
58
+ export declare const ListResponse: MessageFns<ListResponse>;
59
+ export declare const ListResponse_ValuesEntry: MessageFns<ListResponse_ValuesEntry>;
60
+ export declare const Request: MessageFns<Request>;
61
+ export declare const Response: MessageFns<Response>;
62
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
63
+ 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 {} ? {
64
+ [K in keyof T]?: DeepPartial<T[K]>;
65
+ } : Partial<T>;
66
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
67
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
68
+ [K in keyof P]: Exact<P[K], I[K]>;
69
+ } & {
70
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
71
+ };
72
+ export interface MessageFns<T> {
73
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
74
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
75
+ fromJSON(object: any): T;
76
+ toJSON(message: T): unknown;
77
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
78
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
79
+ }
80
+ export {};