@vicinae/api 0.20.9 → 0.20.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/alert.d.ts +1 -1
- package/dist/api/alert.js +9 -14
- package/dist/api/client.d.ts +7 -0
- package/dist/api/client.js +11 -0
- package/dist/api/clipboard.d.ts +4 -8
- package/dist/api/clipboard.js +13 -18
- package/dist/api/color.d.ts +4 -10
- package/dist/api/color.js +8 -47
- package/dist/api/command.js +4 -6
- package/dist/api/controls.js +9 -56
- package/dist/api/environment.d.ts +0 -11
- package/dist/api/environment.js +2 -1
- package/dist/api/file-search.d.ts +3 -4
- package/dist/api/file-search.js +6 -4
- package/dist/api/globals.d.ts +9 -0
- package/dist/api/globals.js +5 -0
- package/dist/api/hooks/use-imperative-form-handle.d.ts +1 -1
- package/dist/api/hooks/use-imperative-form-handle.js +6 -3
- package/dist/api/hooks/use-navigation.d.ts +2 -2
- package/dist/api/hooks/use-navigation.js +2 -5
- package/dist/api/image.d.ts +4 -4
- package/dist/api/image.js +12 -51
- package/dist/api/index.d.ts +0 -2
- package/dist/api/index.js +0 -2
- package/dist/api/local-storage.js +7 -14
- package/dist/api/oauth.d.ts +1 -1
- package/dist/api/oauth.js +7 -15
- package/dist/api/preference.d.ts +2 -4
- package/dist/api/preference.js +10 -6
- package/dist/api/proto/api.d.ts +240 -0
- package/dist/api/proto/api.js +271 -0
- package/dist/api/toast.js +7 -77
- package/dist/api/utils.d.ts +6 -2
- package/dist/api/utils.js +9 -26
- package/dist/api/window-management.d.ts +3 -5
- package/dist/api/window-management.js +14 -27
- package/dist/schemas/manifest.d.ts +3 -3
- package/package.json +1 -4
- package/dist/api/bus.d.ts +0 -125
- package/dist/api/bus.js +0 -201
- package/dist/api/context/index.d.ts +0 -1
- package/dist/api/context/index.js +0 -17
- package/dist/api/context/navigation-context.d.ts +0 -7
- package/dist/api/context/navigation-context.js +0 -12
- package/dist/api/context/navigation-provider.d.ts +0 -7
- package/dist/api/context/navigation-provider.js +0 -58
- package/dist/api/hooks.d.ts +0 -1
- package/dist/api/hooks.js +0 -30
- package/dist/api/proto/application.d.ts +0 -79
- package/dist/api/proto/application.js +0 -826
- package/dist/api/proto/clipboard.d.ts +0 -88
- package/dist/api/proto/clipboard.js +0 -929
- package/dist/api/proto/command.d.ts +0 -35
- package/dist/api/proto/command.js +0 -182
- package/dist/api/proto/common.d.ts +0 -28
- package/dist/api/proto/common.js +0 -102
- package/dist/api/proto/extension.d.ts +0 -106
- package/dist/api/proto/extension.js +0 -1122
- package/dist/api/proto/file-search.d.ts +0 -42
- package/dist/api/proto/file-search.js +0 -290
- package/dist/api/proto/google/protobuf/struct.d.ts +0 -107
- package/dist/api/proto/google/protobuf/struct.js +0 -456
- package/dist/api/proto/ipc.d.ts +0 -64
- package/dist/api/proto/ipc.js +0 -604
- package/dist/api/proto/manager.d.ts +0 -87
- package/dist/api/proto/manager.js +0 -776
- package/dist/api/proto/oauth.d.ts +0 -97
- package/dist/api/proto/oauth.js +0 -994
- package/dist/api/proto/storage.d.ts +0 -80
- package/dist/api/proto/storage.js +0 -804
- package/dist/api/proto/ui.d.ts +0 -208
- package/dist/api/proto/ui.js +0 -2316
- package/dist/api/proto/wlr-clipboard.d.ts +0 -30
- package/dist/api/proto/wlr-clipboard.js +0 -158
- package/dist/api/proto/wm.d.ts +0 -142
- package/dist/api/proto/wm.js +0 -1714
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
export declare const protobufPackage = "proto.ext.file_search";
|
|
3
|
-
export interface SearchRequest {
|
|
4
|
-
query: string;
|
|
5
|
-
}
|
|
6
|
-
export interface FileInfo {
|
|
7
|
-
path: string;
|
|
8
|
-
mimeType: string;
|
|
9
|
-
}
|
|
10
|
-
export interface SearchResponse {
|
|
11
|
-
files: FileInfo[];
|
|
12
|
-
}
|
|
13
|
-
export interface Request {
|
|
14
|
-
search?: SearchRequest | undefined;
|
|
15
|
-
}
|
|
16
|
-
export interface Response {
|
|
17
|
-
search?: SearchResponse | undefined;
|
|
18
|
-
}
|
|
19
|
-
export declare const SearchRequest: MessageFns<SearchRequest>;
|
|
20
|
-
export declare const FileInfo: MessageFns<FileInfo>;
|
|
21
|
-
export declare const SearchResponse: MessageFns<SearchResponse>;
|
|
22
|
-
export declare const Request: MessageFns<Request>;
|
|
23
|
-
export declare const Response: MessageFns<Response>;
|
|
24
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
25
|
-
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 {} ? {
|
|
26
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
27
|
-
} : Partial<T>;
|
|
28
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
29
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
30
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
31
|
-
} & {
|
|
32
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
33
|
-
};
|
|
34
|
-
export interface MessageFns<T> {
|
|
35
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
36
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
37
|
-
fromJSON(object: any): T;
|
|
38
|
-
toJSON(message: T): unknown;
|
|
39
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
40
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
41
|
-
}
|
|
42
|
-
export {};
|
|
@@ -1,290 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
-
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.7.7
|
|
5
|
-
// protoc v6.33.1
|
|
6
|
-
// source: file-search.proto
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.Response = exports.Request = exports.SearchResponse = exports.FileInfo = exports.SearchRequest = exports.protobufPackage = void 0;
|
|
9
|
-
/* eslint-disable */
|
|
10
|
-
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
-
exports.protobufPackage = "proto.ext.file_search";
|
|
12
|
-
function createBaseSearchRequest() {
|
|
13
|
-
return { query: "" };
|
|
14
|
-
}
|
|
15
|
-
exports.SearchRequest = {
|
|
16
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
17
|
-
if (message.query !== "") {
|
|
18
|
-
writer.uint32(10).string(message.query);
|
|
19
|
-
}
|
|
20
|
-
return writer;
|
|
21
|
-
},
|
|
22
|
-
decode(input, length) {
|
|
23
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
24
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
25
|
-
const message = createBaseSearchRequest();
|
|
26
|
-
while (reader.pos < end) {
|
|
27
|
-
const tag = reader.uint32();
|
|
28
|
-
switch (tag >>> 3) {
|
|
29
|
-
case 1: {
|
|
30
|
-
if (tag !== 10) {
|
|
31
|
-
break;
|
|
32
|
-
}
|
|
33
|
-
message.query = reader.string();
|
|
34
|
-
continue;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
38
|
-
break;
|
|
39
|
-
}
|
|
40
|
-
reader.skip(tag & 7);
|
|
41
|
-
}
|
|
42
|
-
return message;
|
|
43
|
-
},
|
|
44
|
-
fromJSON(object) {
|
|
45
|
-
return { query: isSet(object.query) ? globalThis.String(object.query) : "" };
|
|
46
|
-
},
|
|
47
|
-
toJSON(message) {
|
|
48
|
-
const obj = {};
|
|
49
|
-
if (message.query !== "") {
|
|
50
|
-
obj.query = message.query;
|
|
51
|
-
}
|
|
52
|
-
return obj;
|
|
53
|
-
},
|
|
54
|
-
create(base) {
|
|
55
|
-
return exports.SearchRequest.fromPartial(base ?? {});
|
|
56
|
-
},
|
|
57
|
-
fromPartial(object) {
|
|
58
|
-
const message = createBaseSearchRequest();
|
|
59
|
-
message.query = object.query ?? "";
|
|
60
|
-
return message;
|
|
61
|
-
},
|
|
62
|
-
};
|
|
63
|
-
function createBaseFileInfo() {
|
|
64
|
-
return { path: "", mimeType: "" };
|
|
65
|
-
}
|
|
66
|
-
exports.FileInfo = {
|
|
67
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
68
|
-
if (message.path !== "") {
|
|
69
|
-
writer.uint32(10).string(message.path);
|
|
70
|
-
}
|
|
71
|
-
if (message.mimeType !== "") {
|
|
72
|
-
writer.uint32(18).string(message.mimeType);
|
|
73
|
-
}
|
|
74
|
-
return writer;
|
|
75
|
-
},
|
|
76
|
-
decode(input, length) {
|
|
77
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
78
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
79
|
-
const message = createBaseFileInfo();
|
|
80
|
-
while (reader.pos < end) {
|
|
81
|
-
const tag = reader.uint32();
|
|
82
|
-
switch (tag >>> 3) {
|
|
83
|
-
case 1: {
|
|
84
|
-
if (tag !== 10) {
|
|
85
|
-
break;
|
|
86
|
-
}
|
|
87
|
-
message.path = reader.string();
|
|
88
|
-
continue;
|
|
89
|
-
}
|
|
90
|
-
case 2: {
|
|
91
|
-
if (tag !== 18) {
|
|
92
|
-
break;
|
|
93
|
-
}
|
|
94
|
-
message.mimeType = reader.string();
|
|
95
|
-
continue;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
99
|
-
break;
|
|
100
|
-
}
|
|
101
|
-
reader.skip(tag & 7);
|
|
102
|
-
}
|
|
103
|
-
return message;
|
|
104
|
-
},
|
|
105
|
-
fromJSON(object) {
|
|
106
|
-
return {
|
|
107
|
-
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
108
|
-
mimeType: isSet(object.mimeType) ? globalThis.String(object.mimeType) : "",
|
|
109
|
-
};
|
|
110
|
-
},
|
|
111
|
-
toJSON(message) {
|
|
112
|
-
const obj = {};
|
|
113
|
-
if (message.path !== "") {
|
|
114
|
-
obj.path = message.path;
|
|
115
|
-
}
|
|
116
|
-
if (message.mimeType !== "") {
|
|
117
|
-
obj.mimeType = message.mimeType;
|
|
118
|
-
}
|
|
119
|
-
return obj;
|
|
120
|
-
},
|
|
121
|
-
create(base) {
|
|
122
|
-
return exports.FileInfo.fromPartial(base ?? {});
|
|
123
|
-
},
|
|
124
|
-
fromPartial(object) {
|
|
125
|
-
const message = createBaseFileInfo();
|
|
126
|
-
message.path = object.path ?? "";
|
|
127
|
-
message.mimeType = object.mimeType ?? "";
|
|
128
|
-
return message;
|
|
129
|
-
},
|
|
130
|
-
};
|
|
131
|
-
function createBaseSearchResponse() {
|
|
132
|
-
return { files: [] };
|
|
133
|
-
}
|
|
134
|
-
exports.SearchResponse = {
|
|
135
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
136
|
-
for (const v of message.files) {
|
|
137
|
-
exports.FileInfo.encode(v, writer.uint32(10).fork()).join();
|
|
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 = createBaseSearchResponse();
|
|
145
|
-
while (reader.pos < end) {
|
|
146
|
-
const tag = reader.uint32();
|
|
147
|
-
switch (tag >>> 3) {
|
|
148
|
-
case 1: {
|
|
149
|
-
if (tag !== 10) {
|
|
150
|
-
break;
|
|
151
|
-
}
|
|
152
|
-
message.files.push(exports.FileInfo.decode(reader, reader.uint32()));
|
|
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 { files: globalThis.Array.isArray(object?.files) ? object.files.map((e) => exports.FileInfo.fromJSON(e)) : [] };
|
|
165
|
-
},
|
|
166
|
-
toJSON(message) {
|
|
167
|
-
const obj = {};
|
|
168
|
-
if (message.files?.length) {
|
|
169
|
-
obj.files = message.files.map((e) => exports.FileInfo.toJSON(e));
|
|
170
|
-
}
|
|
171
|
-
return obj;
|
|
172
|
-
},
|
|
173
|
-
create(base) {
|
|
174
|
-
return exports.SearchResponse.fromPartial(base ?? {});
|
|
175
|
-
},
|
|
176
|
-
fromPartial(object) {
|
|
177
|
-
const message = createBaseSearchResponse();
|
|
178
|
-
message.files = object.files?.map((e) => exports.FileInfo.fromPartial(e)) || [];
|
|
179
|
-
return message;
|
|
180
|
-
},
|
|
181
|
-
};
|
|
182
|
-
function createBaseRequest() {
|
|
183
|
-
return { search: undefined };
|
|
184
|
-
}
|
|
185
|
-
exports.Request = {
|
|
186
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
187
|
-
if (message.search !== undefined) {
|
|
188
|
-
exports.SearchRequest.encode(message.search, writer.uint32(10).fork()).join();
|
|
189
|
-
}
|
|
190
|
-
return writer;
|
|
191
|
-
},
|
|
192
|
-
decode(input, length) {
|
|
193
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
194
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
195
|
-
const message = createBaseRequest();
|
|
196
|
-
while (reader.pos < end) {
|
|
197
|
-
const tag = reader.uint32();
|
|
198
|
-
switch (tag >>> 3) {
|
|
199
|
-
case 1: {
|
|
200
|
-
if (tag !== 10) {
|
|
201
|
-
break;
|
|
202
|
-
}
|
|
203
|
-
message.search = exports.SearchRequest.decode(reader, reader.uint32());
|
|
204
|
-
continue;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
208
|
-
break;
|
|
209
|
-
}
|
|
210
|
-
reader.skip(tag & 7);
|
|
211
|
-
}
|
|
212
|
-
return message;
|
|
213
|
-
},
|
|
214
|
-
fromJSON(object) {
|
|
215
|
-
return { search: isSet(object.search) ? exports.SearchRequest.fromJSON(object.search) : undefined };
|
|
216
|
-
},
|
|
217
|
-
toJSON(message) {
|
|
218
|
-
const obj = {};
|
|
219
|
-
if (message.search !== undefined) {
|
|
220
|
-
obj.search = exports.SearchRequest.toJSON(message.search);
|
|
221
|
-
}
|
|
222
|
-
return obj;
|
|
223
|
-
},
|
|
224
|
-
create(base) {
|
|
225
|
-
return exports.Request.fromPartial(base ?? {});
|
|
226
|
-
},
|
|
227
|
-
fromPartial(object) {
|
|
228
|
-
const message = createBaseRequest();
|
|
229
|
-
message.search = (object.search !== undefined && object.search !== null)
|
|
230
|
-
? exports.SearchRequest.fromPartial(object.search)
|
|
231
|
-
: undefined;
|
|
232
|
-
return message;
|
|
233
|
-
},
|
|
234
|
-
};
|
|
235
|
-
function createBaseResponse() {
|
|
236
|
-
return { search: undefined };
|
|
237
|
-
}
|
|
238
|
-
exports.Response = {
|
|
239
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
240
|
-
if (message.search !== undefined) {
|
|
241
|
-
exports.SearchResponse.encode(message.search, writer.uint32(10).fork()).join();
|
|
242
|
-
}
|
|
243
|
-
return writer;
|
|
244
|
-
},
|
|
245
|
-
decode(input, length) {
|
|
246
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
247
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
248
|
-
const message = createBaseResponse();
|
|
249
|
-
while (reader.pos < end) {
|
|
250
|
-
const tag = reader.uint32();
|
|
251
|
-
switch (tag >>> 3) {
|
|
252
|
-
case 1: {
|
|
253
|
-
if (tag !== 10) {
|
|
254
|
-
break;
|
|
255
|
-
}
|
|
256
|
-
message.search = exports.SearchResponse.decode(reader, reader.uint32());
|
|
257
|
-
continue;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
261
|
-
break;
|
|
262
|
-
}
|
|
263
|
-
reader.skip(tag & 7);
|
|
264
|
-
}
|
|
265
|
-
return message;
|
|
266
|
-
},
|
|
267
|
-
fromJSON(object) {
|
|
268
|
-
return { search: isSet(object.search) ? exports.SearchResponse.fromJSON(object.search) : undefined };
|
|
269
|
-
},
|
|
270
|
-
toJSON(message) {
|
|
271
|
-
const obj = {};
|
|
272
|
-
if (message.search !== undefined) {
|
|
273
|
-
obj.search = exports.SearchResponse.toJSON(message.search);
|
|
274
|
-
}
|
|
275
|
-
return obj;
|
|
276
|
-
},
|
|
277
|
-
create(base) {
|
|
278
|
-
return exports.Response.fromPartial(base ?? {});
|
|
279
|
-
},
|
|
280
|
-
fromPartial(object) {
|
|
281
|
-
const message = createBaseResponse();
|
|
282
|
-
message.search = (object.search !== undefined && object.search !== null)
|
|
283
|
-
? exports.SearchResponse.fromPartial(object.search)
|
|
284
|
-
: undefined;
|
|
285
|
-
return message;
|
|
286
|
-
},
|
|
287
|
-
};
|
|
288
|
-
function isSet(value) {
|
|
289
|
-
return value !== null && value !== undefined;
|
|
290
|
-
}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
export declare const protobufPackage = "google.protobuf";
|
|
3
|
-
/**
|
|
4
|
-
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
5
|
-
* `Value` type union.
|
|
6
|
-
*
|
|
7
|
-
* The JSON representation for `NullValue` is JSON `null`.
|
|
8
|
-
*/
|
|
9
|
-
export declare enum NullValue {
|
|
10
|
-
/** NULL_VALUE - Null value. */
|
|
11
|
-
NULL_VALUE = 0,
|
|
12
|
-
UNRECOGNIZED = -1
|
|
13
|
-
}
|
|
14
|
-
export declare function nullValueFromJSON(object: any): NullValue;
|
|
15
|
-
export declare function nullValueToJSON(object: NullValue): string;
|
|
16
|
-
/**
|
|
17
|
-
* `Struct` represents a structured data value, consisting of fields
|
|
18
|
-
* which map to dynamically typed values. In some languages, `Struct`
|
|
19
|
-
* might be supported by a native representation. For example, in
|
|
20
|
-
* scripting languages like JS a struct is represented as an
|
|
21
|
-
* object. The details of that representation are described together
|
|
22
|
-
* with the proto support for the language.
|
|
23
|
-
*
|
|
24
|
-
* The JSON representation for `Struct` is JSON object.
|
|
25
|
-
*/
|
|
26
|
-
export interface Struct {
|
|
27
|
-
/** Unordered map of dynamically typed values. */
|
|
28
|
-
fields: {
|
|
29
|
-
[key: string]: any | undefined;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
export interface Struct_FieldsEntry {
|
|
33
|
-
key: string;
|
|
34
|
-
value: any | undefined;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* `Value` represents a dynamically typed value which can be either
|
|
38
|
-
* null, a number, a string, a boolean, a recursive struct value, or a
|
|
39
|
-
* list of values. A producer of value is expected to set one of these
|
|
40
|
-
* variants. Absence of any variant indicates an error.
|
|
41
|
-
*
|
|
42
|
-
* The JSON representation for `Value` is JSON value.
|
|
43
|
-
*/
|
|
44
|
-
export interface Value {
|
|
45
|
-
/** Represents a null value. */
|
|
46
|
-
nullValue?: NullValue | undefined;
|
|
47
|
-
/** Represents a double value. */
|
|
48
|
-
numberValue?: number | undefined;
|
|
49
|
-
/** Represents a string value. */
|
|
50
|
-
stringValue?: string | undefined;
|
|
51
|
-
/** Represents a boolean value. */
|
|
52
|
-
boolValue?: boolean | undefined;
|
|
53
|
-
/** Represents a structured value. */
|
|
54
|
-
structValue?: {
|
|
55
|
-
[key: string]: any;
|
|
56
|
-
} | undefined;
|
|
57
|
-
/** Represents a repeated `Value`. */
|
|
58
|
-
listValue?: Array<any> | undefined;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* `ListValue` is a wrapper around a repeated field of values.
|
|
62
|
-
*
|
|
63
|
-
* The JSON representation for `ListValue` is JSON array.
|
|
64
|
-
*/
|
|
65
|
-
export interface ListValue {
|
|
66
|
-
/** Repeated field of dynamically typed values. */
|
|
67
|
-
values: any[];
|
|
68
|
-
}
|
|
69
|
-
export declare const Struct: MessageFns<Struct> & StructWrapperFns;
|
|
70
|
-
export declare const Struct_FieldsEntry: MessageFns<Struct_FieldsEntry>;
|
|
71
|
-
export declare const Value: MessageFns<Value> & AnyValueWrapperFns;
|
|
72
|
-
export declare const ListValue: MessageFns<ListValue> & ListValueWrapperFns;
|
|
73
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
74
|
-
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 {} ? {
|
|
75
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
76
|
-
} : Partial<T>;
|
|
77
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
78
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
79
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
80
|
-
} & {
|
|
81
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
82
|
-
};
|
|
83
|
-
export interface MessageFns<T> {
|
|
84
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
85
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
86
|
-
fromJSON(object: any): T;
|
|
87
|
-
toJSON(message: T): unknown;
|
|
88
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
89
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
90
|
-
}
|
|
91
|
-
export interface StructWrapperFns {
|
|
92
|
-
wrap(object: {
|
|
93
|
-
[key: string]: any;
|
|
94
|
-
} | undefined): Struct;
|
|
95
|
-
unwrap(message: Struct): {
|
|
96
|
-
[key: string]: any;
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
export interface AnyValueWrapperFns {
|
|
100
|
-
wrap(value: any): Value;
|
|
101
|
-
unwrap(message: any): string | number | boolean | Object | null | Array<any> | undefined;
|
|
102
|
-
}
|
|
103
|
-
export interface ListValueWrapperFns {
|
|
104
|
-
wrap(array: Array<any> | undefined): ListValue;
|
|
105
|
-
unwrap(message: ListValue): Array<any>;
|
|
106
|
-
}
|
|
107
|
-
export {};
|