@aptre/protobuf-es-lite 0.4.9 → 0.5.1
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/LICENSE +2 -1
- package/dist/create-descriptor-set.js +3 -2
- package/dist/enum.d.ts +1 -1
- package/dist/enum.js +1 -3
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/json.js +2 -1
- package/dist/protoc-gen-es-lite/typescript.js +2 -2
- package/dist/protoplugin/ecmascript/generated-file.d.ts +0 -4
- package/dist/protoplugin/ecmascript/generated-file.js +0 -3
- package/dist/protoplugin/ecmascript/import-path.js +1 -1
- package/dist/util.js +4 -8
- package/example/example.pb.ts +2 -6
- package/example/tsconfig.json +3 -0
- package/package.json +64 -9
- package/tsconfig.base.json +1 -1
- package/tsconfig.json +8 -1
- package/dist/google/index.d.ts +0 -9
- package/dist/google/index.js +0 -9
- package/dist/google/protobuf/any.pb.d.ts +0 -148
- package/dist/google/protobuf/any.pb.js +0 -120
- package/dist/google/protobuf/api.pb.d.ts +0 -232
- package/dist/google/protobuf/api.pb.js +0 -88
- package/dist/google/protobuf/duration.pb.d.ts +0 -93
- package/dist/google/protobuf/duration.pb.js +0 -89
- package/dist/google/protobuf/empty.pb.d.ts +0 -17
- package/dist/google/protobuf/empty.pb.js +0 -37
- package/dist/google/protobuf/source_context.pb.d.ts +0 -18
- package/dist/google/protobuf/source_context.pb.js +0 -39
- package/dist/google/protobuf/struct.pb.d.ts +0 -141
- package/dist/google/protobuf/struct.pb.js +0 -228
- package/dist/google/protobuf/timestamp.pb.d.ts +0 -125
- package/dist/google/protobuf/timestamp.pb.js +0 -137
- package/dist/google/protobuf/type.pb.d.ts +0 -401
- package/dist/google/protobuf/type.pb.js +0 -347
- package/dist/google/protobuf/wrappers.pb.d.ts +0 -201
- package/dist/google/protobuf/wrappers.pb.js +0 -365
|
@@ -1,401 +0,0 @@
|
|
|
1
|
-
import type { MessageType } from "../../index.js";
|
|
2
|
-
import { Any } from "./any.pb.js";
|
|
3
|
-
import { SourceContext } from "./source_context.pb.js";
|
|
4
|
-
export declare const protobufPackage = "google.protobuf";
|
|
5
|
-
/**
|
|
6
|
-
* The syntax in which a protocol buffer element is defined.
|
|
7
|
-
*
|
|
8
|
-
* @generated from enum google.protobuf.Syntax
|
|
9
|
-
*/
|
|
10
|
-
export declare enum Syntax {
|
|
11
|
-
/**
|
|
12
|
-
* Syntax `proto2`.
|
|
13
|
-
*
|
|
14
|
-
* @generated from enum value: SYNTAX_PROTO2 = 0;
|
|
15
|
-
*/
|
|
16
|
-
PROTO2 = 0,
|
|
17
|
-
/**
|
|
18
|
-
* Syntax `proto3`.
|
|
19
|
-
*
|
|
20
|
-
* @generated from enum value: SYNTAX_PROTO3 = 1;
|
|
21
|
-
*/
|
|
22
|
-
PROTO3 = 1,
|
|
23
|
-
/**
|
|
24
|
-
* Syntax `editions`.
|
|
25
|
-
*
|
|
26
|
-
* @generated from enum value: SYNTAX_EDITIONS = 2;
|
|
27
|
-
*/
|
|
28
|
-
EDITIONS = 2
|
|
29
|
-
}
|
|
30
|
-
export declare const Syntax_Enum: import("../../enum.js").EnumType;
|
|
31
|
-
/**
|
|
32
|
-
* Basic field types.
|
|
33
|
-
*
|
|
34
|
-
* @generated from enum google.protobuf.Field.Kind
|
|
35
|
-
*/
|
|
36
|
-
export declare enum Field_Kind {
|
|
37
|
-
/**
|
|
38
|
-
* Field type unknown.
|
|
39
|
-
*
|
|
40
|
-
* @generated from enum value: TYPE_UNKNOWN = 0;
|
|
41
|
-
*/
|
|
42
|
-
TYPE_UNKNOWN = 0,
|
|
43
|
-
/**
|
|
44
|
-
* Field type double.
|
|
45
|
-
*
|
|
46
|
-
* @generated from enum value: TYPE_DOUBLE = 1;
|
|
47
|
-
*/
|
|
48
|
-
TYPE_DOUBLE = 1,
|
|
49
|
-
/**
|
|
50
|
-
* Field type float.
|
|
51
|
-
*
|
|
52
|
-
* @generated from enum value: TYPE_FLOAT = 2;
|
|
53
|
-
*/
|
|
54
|
-
TYPE_FLOAT = 2,
|
|
55
|
-
/**
|
|
56
|
-
* Field type int64.
|
|
57
|
-
*
|
|
58
|
-
* @generated from enum value: TYPE_INT64 = 3;
|
|
59
|
-
*/
|
|
60
|
-
TYPE_INT64 = 3,
|
|
61
|
-
/**
|
|
62
|
-
* Field type uint64.
|
|
63
|
-
*
|
|
64
|
-
* @generated from enum value: TYPE_UINT64 = 4;
|
|
65
|
-
*/
|
|
66
|
-
TYPE_UINT64 = 4,
|
|
67
|
-
/**
|
|
68
|
-
* Field type int32.
|
|
69
|
-
*
|
|
70
|
-
* @generated from enum value: TYPE_INT32 = 5;
|
|
71
|
-
*/
|
|
72
|
-
TYPE_INT32 = 5,
|
|
73
|
-
/**
|
|
74
|
-
* Field type fixed64.
|
|
75
|
-
*
|
|
76
|
-
* @generated from enum value: TYPE_FIXED64 = 6;
|
|
77
|
-
*/
|
|
78
|
-
TYPE_FIXED64 = 6,
|
|
79
|
-
/**
|
|
80
|
-
* Field type fixed32.
|
|
81
|
-
*
|
|
82
|
-
* @generated from enum value: TYPE_FIXED32 = 7;
|
|
83
|
-
*/
|
|
84
|
-
TYPE_FIXED32 = 7,
|
|
85
|
-
/**
|
|
86
|
-
* Field type bool.
|
|
87
|
-
*
|
|
88
|
-
* @generated from enum value: TYPE_BOOL = 8;
|
|
89
|
-
*/
|
|
90
|
-
TYPE_BOOL = 8,
|
|
91
|
-
/**
|
|
92
|
-
* Field type string.
|
|
93
|
-
*
|
|
94
|
-
* @generated from enum value: TYPE_STRING = 9;
|
|
95
|
-
*/
|
|
96
|
-
TYPE_STRING = 9,
|
|
97
|
-
/**
|
|
98
|
-
* Field type group. Proto2 syntax only, and deprecated.
|
|
99
|
-
*
|
|
100
|
-
* @generated from enum value: TYPE_GROUP = 10;
|
|
101
|
-
*/
|
|
102
|
-
TYPE_GROUP = 10,
|
|
103
|
-
/**
|
|
104
|
-
* Field type message.
|
|
105
|
-
*
|
|
106
|
-
* @generated from enum value: TYPE_MESSAGE = 11;
|
|
107
|
-
*/
|
|
108
|
-
TYPE_MESSAGE = 11,
|
|
109
|
-
/**
|
|
110
|
-
* Field type bytes.
|
|
111
|
-
*
|
|
112
|
-
* @generated from enum value: TYPE_BYTES = 12;
|
|
113
|
-
*/
|
|
114
|
-
TYPE_BYTES = 12,
|
|
115
|
-
/**
|
|
116
|
-
* Field type uint32.
|
|
117
|
-
*
|
|
118
|
-
* @generated from enum value: TYPE_UINT32 = 13;
|
|
119
|
-
*/
|
|
120
|
-
TYPE_UINT32 = 13,
|
|
121
|
-
/**
|
|
122
|
-
* Field type enum.
|
|
123
|
-
*
|
|
124
|
-
* @generated from enum value: TYPE_ENUM = 14;
|
|
125
|
-
*/
|
|
126
|
-
TYPE_ENUM = 14,
|
|
127
|
-
/**
|
|
128
|
-
* Field type sfixed32.
|
|
129
|
-
*
|
|
130
|
-
* @generated from enum value: TYPE_SFIXED32 = 15;
|
|
131
|
-
*/
|
|
132
|
-
TYPE_SFIXED32 = 15,
|
|
133
|
-
/**
|
|
134
|
-
* Field type sfixed64.
|
|
135
|
-
*
|
|
136
|
-
* @generated from enum value: TYPE_SFIXED64 = 16;
|
|
137
|
-
*/
|
|
138
|
-
TYPE_SFIXED64 = 16,
|
|
139
|
-
/**
|
|
140
|
-
* Field type sint32.
|
|
141
|
-
*
|
|
142
|
-
* @generated from enum value: TYPE_SINT32 = 17;
|
|
143
|
-
*/
|
|
144
|
-
TYPE_SINT32 = 17,
|
|
145
|
-
/**
|
|
146
|
-
* Field type sint64.
|
|
147
|
-
*
|
|
148
|
-
* @generated from enum value: TYPE_SINT64 = 18;
|
|
149
|
-
*/
|
|
150
|
-
TYPE_SINT64 = 18
|
|
151
|
-
}
|
|
152
|
-
export declare const Field_Kind_Enum: import("../../enum.js").EnumType;
|
|
153
|
-
/**
|
|
154
|
-
* Whether a field is optional, required, or repeated.
|
|
155
|
-
*
|
|
156
|
-
* @generated from enum google.protobuf.Field.Cardinality
|
|
157
|
-
*/
|
|
158
|
-
export declare enum Field_Cardinality {
|
|
159
|
-
/**
|
|
160
|
-
* For fields with unknown cardinality.
|
|
161
|
-
*
|
|
162
|
-
* @generated from enum value: CARDINALITY_UNKNOWN = 0;
|
|
163
|
-
*/
|
|
164
|
-
UNKNOWN = 0,
|
|
165
|
-
/**
|
|
166
|
-
* For optional fields.
|
|
167
|
-
*
|
|
168
|
-
* @generated from enum value: CARDINALITY_OPTIONAL = 1;
|
|
169
|
-
*/
|
|
170
|
-
OPTIONAL = 1,
|
|
171
|
-
/**
|
|
172
|
-
* For required fields. Proto2 syntax only.
|
|
173
|
-
*
|
|
174
|
-
* @generated from enum value: CARDINALITY_REQUIRED = 2;
|
|
175
|
-
*/
|
|
176
|
-
REQUIRED = 2,
|
|
177
|
-
/**
|
|
178
|
-
* For repeated fields.
|
|
179
|
-
*
|
|
180
|
-
* @generated from enum value: CARDINALITY_REPEATED = 3;
|
|
181
|
-
*/
|
|
182
|
-
REPEATED = 3
|
|
183
|
-
}
|
|
184
|
-
export declare const Field_Cardinality_Enum: import("../../enum.js").EnumType;
|
|
185
|
-
/**
|
|
186
|
-
* A protocol buffer option, which can be attached to a message, field,
|
|
187
|
-
* enumeration, etc.
|
|
188
|
-
*
|
|
189
|
-
* @generated from message google.protobuf.Option
|
|
190
|
-
*/
|
|
191
|
-
export interface Option {
|
|
192
|
-
/**
|
|
193
|
-
* The option's name. For protobuf built-in options (options defined in
|
|
194
|
-
* descriptor.proto), this is the short name. For example, `"map_entry"`.
|
|
195
|
-
* For custom options, it should be the fully-qualified name. For example,
|
|
196
|
-
* `"google.api.http"`.
|
|
197
|
-
*
|
|
198
|
-
* @generated from field: string name = 1;
|
|
199
|
-
*/
|
|
200
|
-
name?: string;
|
|
201
|
-
/**
|
|
202
|
-
* The option's value packed in an Any message. If the value is a primitive,
|
|
203
|
-
* the corresponding wrapper type defined in google/protobuf/wrappers.proto
|
|
204
|
-
* should be used. If the value is an enum, it should be stored as an int32
|
|
205
|
-
* value using the google.protobuf.Int32Value type.
|
|
206
|
-
*
|
|
207
|
-
* @generated from field: google.protobuf.Any value = 2;
|
|
208
|
-
*/
|
|
209
|
-
value?: Any;
|
|
210
|
-
}
|
|
211
|
-
export declare const Option: MessageType<Option>;
|
|
212
|
-
/**
|
|
213
|
-
* A single field of a message type.
|
|
214
|
-
*
|
|
215
|
-
* @generated from message google.protobuf.Field
|
|
216
|
-
*/
|
|
217
|
-
export interface Field {
|
|
218
|
-
/**
|
|
219
|
-
* The field type.
|
|
220
|
-
*
|
|
221
|
-
* @generated from field: google.protobuf.Field.Kind kind = 1;
|
|
222
|
-
*/
|
|
223
|
-
kind?: Field_Kind;
|
|
224
|
-
/**
|
|
225
|
-
* The field cardinality.
|
|
226
|
-
*
|
|
227
|
-
* @generated from field: google.protobuf.Field.Cardinality cardinality = 2;
|
|
228
|
-
*/
|
|
229
|
-
cardinality?: Field_Cardinality;
|
|
230
|
-
/**
|
|
231
|
-
* The field number.
|
|
232
|
-
*
|
|
233
|
-
* @generated from field: int32 number = 3;
|
|
234
|
-
*/
|
|
235
|
-
number?: number;
|
|
236
|
-
/**
|
|
237
|
-
* The field name.
|
|
238
|
-
*
|
|
239
|
-
* @generated from field: string name = 4;
|
|
240
|
-
*/
|
|
241
|
-
name?: string;
|
|
242
|
-
/**
|
|
243
|
-
* The field type URL, without the scheme, for message or enumeration
|
|
244
|
-
* types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
|
|
245
|
-
*
|
|
246
|
-
* @generated from field: string type_url = 6;
|
|
247
|
-
*/
|
|
248
|
-
typeUrl?: string;
|
|
249
|
-
/**
|
|
250
|
-
* The index of the field type in `Type.oneofs`, for message or enumeration
|
|
251
|
-
* types. The first type has index 1; zero means the type is not in the list.
|
|
252
|
-
*
|
|
253
|
-
* @generated from field: int32 oneof_index = 7;
|
|
254
|
-
*/
|
|
255
|
-
oneofIndex?: number;
|
|
256
|
-
/**
|
|
257
|
-
* Whether to use alternative packed wire representation.
|
|
258
|
-
*
|
|
259
|
-
* @generated from field: bool packed = 8;
|
|
260
|
-
*/
|
|
261
|
-
packed?: boolean;
|
|
262
|
-
/**
|
|
263
|
-
* The protocol buffer options.
|
|
264
|
-
*
|
|
265
|
-
* @generated from field: repeated google.protobuf.Option options = 9;
|
|
266
|
-
*/
|
|
267
|
-
options?: Option[];
|
|
268
|
-
/**
|
|
269
|
-
* The field JSON name.
|
|
270
|
-
*
|
|
271
|
-
* @generated from field: string json_name = 10;
|
|
272
|
-
*/
|
|
273
|
-
jsonName?: string;
|
|
274
|
-
/**
|
|
275
|
-
* The string value of the default value of this field. Proto2 syntax only.
|
|
276
|
-
*
|
|
277
|
-
* @generated from field: string default_value = 11;
|
|
278
|
-
*/
|
|
279
|
-
defaultValue?: string;
|
|
280
|
-
}
|
|
281
|
-
export declare const Field: MessageType<Field>;
|
|
282
|
-
/**
|
|
283
|
-
* A protocol buffer message type.
|
|
284
|
-
*
|
|
285
|
-
* @generated from message google.protobuf.Type
|
|
286
|
-
*/
|
|
287
|
-
export interface Type {
|
|
288
|
-
/**
|
|
289
|
-
* The fully qualified message name.
|
|
290
|
-
*
|
|
291
|
-
* @generated from field: string name = 1;
|
|
292
|
-
*/
|
|
293
|
-
name?: string;
|
|
294
|
-
/**
|
|
295
|
-
* The list of fields.
|
|
296
|
-
*
|
|
297
|
-
* @generated from field: repeated google.protobuf.Field fields = 2;
|
|
298
|
-
*/
|
|
299
|
-
fields?: Field[];
|
|
300
|
-
/**
|
|
301
|
-
* The list of types appearing in `oneof` definitions in this type.
|
|
302
|
-
*
|
|
303
|
-
* @generated from field: repeated string oneofs = 3;
|
|
304
|
-
*/
|
|
305
|
-
oneofs?: string[];
|
|
306
|
-
/**
|
|
307
|
-
* The protocol buffer options.
|
|
308
|
-
*
|
|
309
|
-
* @generated from field: repeated google.protobuf.Option options = 4;
|
|
310
|
-
*/
|
|
311
|
-
options?: Option[];
|
|
312
|
-
/**
|
|
313
|
-
* The source context.
|
|
314
|
-
*
|
|
315
|
-
* @generated from field: google.protobuf.SourceContext source_context = 5;
|
|
316
|
-
*/
|
|
317
|
-
sourceContext?: SourceContext;
|
|
318
|
-
/**
|
|
319
|
-
* The source syntax.
|
|
320
|
-
*
|
|
321
|
-
* @generated from field: google.protobuf.Syntax syntax = 6;
|
|
322
|
-
*/
|
|
323
|
-
syntax?: Syntax;
|
|
324
|
-
/**
|
|
325
|
-
* The source edition string, only valid when syntax is SYNTAX_EDITIONS.
|
|
326
|
-
*
|
|
327
|
-
* @generated from field: string edition = 7;
|
|
328
|
-
*/
|
|
329
|
-
edition?: string;
|
|
330
|
-
}
|
|
331
|
-
export declare const Type: MessageType<Type>;
|
|
332
|
-
/**
|
|
333
|
-
* Enum value definition.
|
|
334
|
-
*
|
|
335
|
-
* @generated from message google.protobuf.EnumValue
|
|
336
|
-
*/
|
|
337
|
-
export interface EnumValue {
|
|
338
|
-
/**
|
|
339
|
-
* Enum value name.
|
|
340
|
-
*
|
|
341
|
-
* @generated from field: string name = 1;
|
|
342
|
-
*/
|
|
343
|
-
name?: string;
|
|
344
|
-
/**
|
|
345
|
-
* Enum value number.
|
|
346
|
-
*
|
|
347
|
-
* @generated from field: int32 number = 2;
|
|
348
|
-
*/
|
|
349
|
-
number?: number;
|
|
350
|
-
/**
|
|
351
|
-
* Protocol buffer options.
|
|
352
|
-
*
|
|
353
|
-
* @generated from field: repeated google.protobuf.Option options = 3;
|
|
354
|
-
*/
|
|
355
|
-
options?: Option[];
|
|
356
|
-
}
|
|
357
|
-
export declare const EnumValue: MessageType<EnumValue>;
|
|
358
|
-
/**
|
|
359
|
-
* Enum type definition.
|
|
360
|
-
*
|
|
361
|
-
* @generated from message google.protobuf.Enum
|
|
362
|
-
*/
|
|
363
|
-
export interface Enum {
|
|
364
|
-
/**
|
|
365
|
-
* Enum type name.
|
|
366
|
-
*
|
|
367
|
-
* @generated from field: string name = 1;
|
|
368
|
-
*/
|
|
369
|
-
name?: string;
|
|
370
|
-
/**
|
|
371
|
-
* Enum value definitions.
|
|
372
|
-
*
|
|
373
|
-
* @generated from field: repeated google.protobuf.EnumValue enumvalue = 2;
|
|
374
|
-
*/
|
|
375
|
-
enumvalue?: EnumValue[];
|
|
376
|
-
/**
|
|
377
|
-
* Protocol buffer options.
|
|
378
|
-
*
|
|
379
|
-
* @generated from field: repeated google.protobuf.Option options = 3;
|
|
380
|
-
*/
|
|
381
|
-
options?: Option[];
|
|
382
|
-
/**
|
|
383
|
-
* The source context.
|
|
384
|
-
*
|
|
385
|
-
* @generated from field: google.protobuf.SourceContext source_context = 4;
|
|
386
|
-
*/
|
|
387
|
-
sourceContext?: SourceContext;
|
|
388
|
-
/**
|
|
389
|
-
* The source syntax.
|
|
390
|
-
*
|
|
391
|
-
* @generated from field: google.protobuf.Syntax syntax = 5;
|
|
392
|
-
*/
|
|
393
|
-
syntax?: Syntax;
|
|
394
|
-
/**
|
|
395
|
-
* The source edition string, only valid when syntax is SYNTAX_EDITIONS.
|
|
396
|
-
*
|
|
397
|
-
* @generated from field: string edition = 6;
|
|
398
|
-
*/
|
|
399
|
-
edition?: string;
|
|
400
|
-
}
|
|
401
|
-
export declare const Enum: MessageType<Enum>;
|