@bufbuild/protobuf 2.4.0 → 2.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/dist/cjs/codegenv1/enum.d.ts +2 -10
- package/dist/cjs/codegenv1/enum.js +3 -12
- package/dist/cjs/codegenv1/file.d.ts +1 -7
- package/dist/cjs/codegenv1/file.js +3 -20
- package/dist/cjs/codegenv1/index.d.ts +3 -3
- package/dist/cjs/codegenv1/index.js +3 -3
- package/dist/cjs/codegenv1/symbols.d.ts +60 -60
- package/dist/cjs/codegenv1/symbols.js +5 -34
- package/dist/cjs/codegenv1/types.d.ts +2 -1
- package/dist/cjs/codegenv2/enum.d.ts +18 -0
- package/dist/cjs/codegenv2/enum.js +40 -0
- package/dist/cjs/codegenv2/extension.d.ts +9 -0
- package/dist/cjs/codegenv2/extension.js +28 -0
- package/dist/cjs/codegenv2/file.d.ts +7 -0
- package/dist/cjs/codegenv2/file.js +35 -0
- package/dist/cjs/codegenv2/index.d.ts +10 -0
- package/dist/cjs/codegenv2/index.js +39 -0
- package/dist/cjs/codegenv2/message.d.ts +15 -0
- package/dist/cjs/codegenv2/message.js +24 -0
- package/dist/cjs/codegenv2/service.d.ts +8 -0
- package/dist/cjs/codegenv2/service.js +27 -0
- package/dist/cjs/codegenv2/symbols.d.ts +135 -0
- package/dist/cjs/codegenv2/symbols.js +72 -0
- package/dist/cjs/codegenv2/types.d.ts +81 -0
- package/dist/cjs/codegenv2/types.js +22 -0
- package/dist/cjs/types.d.ts +25 -8
- package/dist/cjs/wkt/gen/google/protobuf/any_pb.d.ts +4 -2
- package/dist/cjs/wkt/gen/google/protobuf/any_pb.js +2 -2
- package/dist/cjs/wkt/gen/google/protobuf/api_pb.d.ts +10 -4
- package/dist/cjs/wkt/gen/google/protobuf/api_pb.js +2 -2
- package/dist/cjs/wkt/gen/google/protobuf/compiler/plugin_pb.d.ts +13 -5
- package/dist/cjs/wkt/gen/google/protobuf/compiler/plugin_pb.js +3 -3
- package/dist/cjs/wkt/gen/google/protobuf/cpp_features_pb.d.ts +4 -2
- package/dist/cjs/wkt/gen/google/protobuf/cpp_features_pb.js +4 -4
- package/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.d.ts +100 -34
- package/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.js +3 -3
- package/dist/cjs/wkt/gen/google/protobuf/duration_pb.d.ts +4 -2
- package/dist/cjs/wkt/gen/google/protobuf/duration_pb.js +2 -2
- package/dist/cjs/wkt/gen/google/protobuf/empty_pb.d.ts +4 -2
- package/dist/cjs/wkt/gen/google/protobuf/empty_pb.js +2 -2
- package/dist/cjs/wkt/gen/google/protobuf/field_mask_pb.d.ts +4 -2
- package/dist/cjs/wkt/gen/google/protobuf/field_mask_pb.js +2 -2
- package/dist/cjs/wkt/gen/google/protobuf/go_features_pb.d.ts +4 -2
- package/dist/cjs/wkt/gen/google/protobuf/go_features_pb.js +4 -4
- package/dist/cjs/wkt/gen/google/protobuf/java_features_pb.d.ts +4 -2
- package/dist/cjs/wkt/gen/google/protobuf/java_features_pb.js +4 -4
- package/dist/cjs/wkt/gen/google/protobuf/source_context_pb.d.ts +4 -2
- package/dist/cjs/wkt/gen/google/protobuf/source_context_pb.js +2 -2
- package/dist/cjs/wkt/gen/google/protobuf/struct_pb.d.ts +10 -4
- package/dist/cjs/wkt/gen/google/protobuf/struct_pb.js +3 -3
- package/dist/cjs/wkt/gen/google/protobuf/timestamp_pb.d.ts +4 -2
- package/dist/cjs/wkt/gen/google/protobuf/timestamp_pb.js +2 -2
- package/dist/cjs/wkt/gen/google/protobuf/type_pb.d.ts +16 -6
- package/dist/cjs/wkt/gen/google/protobuf/type_pb.js +3 -3
- package/dist/cjs/wkt/gen/google/protobuf/wrappers_pb.d.ts +28 -10
- package/dist/cjs/wkt/gen/google/protobuf/wrappers_pb.js +2 -2
- package/dist/esm/codegenv1/enum.d.ts +2 -10
- package/dist/esm/codegenv1/enum.js +1 -11
- package/dist/esm/codegenv1/file.d.ts +1 -7
- package/dist/esm/codegenv1/file.js +1 -19
- package/dist/esm/codegenv1/index.d.ts +3 -3
- package/dist/esm/codegenv1/index.js +3 -3
- package/dist/esm/codegenv1/symbols.d.ts +60 -60
- package/dist/esm/codegenv1/symbols.js +5 -34
- package/dist/esm/codegenv1/types.d.ts +2 -1
- package/dist/esm/codegenv2/enum.d.ts +18 -0
- package/dist/esm/codegenv2/enum.js +36 -0
- package/dist/esm/codegenv2/extension.d.ts +9 -0
- package/dist/esm/codegenv2/extension.js +25 -0
- package/dist/esm/codegenv2/file.d.ts +7 -0
- package/dist/esm/codegenv2/file.js +32 -0
- package/dist/esm/codegenv2/index.d.ts +10 -0
- package/dist/esm/codegenv2/index.js +23 -0
- package/dist/esm/codegenv2/message.d.ts +15 -0
- package/dist/esm/codegenv2/message.js +21 -0
- package/dist/esm/codegenv2/service.d.ts +8 -0
- package/dist/esm/codegenv2/service.js +24 -0
- package/dist/esm/codegenv2/symbols.d.ts +135 -0
- package/dist/esm/codegenv2/symbols.js +69 -0
- package/dist/esm/codegenv2/types.d.ts +81 -0
- package/dist/esm/codegenv2/types.js +21 -0
- package/dist/esm/types.d.ts +25 -8
- package/dist/esm/wkt/gen/google/protobuf/any_pb.d.ts +4 -2
- package/dist/esm/wkt/gen/google/protobuf/any_pb.js +2 -2
- package/dist/esm/wkt/gen/google/protobuf/api_pb.d.ts +10 -4
- package/dist/esm/wkt/gen/google/protobuf/api_pb.js +2 -2
- package/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.d.ts +13 -5
- package/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.js +3 -3
- package/dist/esm/wkt/gen/google/protobuf/cpp_features_pb.d.ts +4 -2
- package/dist/esm/wkt/gen/google/protobuf/cpp_features_pb.js +4 -4
- package/dist/esm/wkt/gen/google/protobuf/descriptor_pb.d.ts +100 -34
- package/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +3 -3
- package/dist/esm/wkt/gen/google/protobuf/duration_pb.d.ts +4 -2
- package/dist/esm/wkt/gen/google/protobuf/duration_pb.js +2 -2
- package/dist/esm/wkt/gen/google/protobuf/empty_pb.d.ts +4 -2
- package/dist/esm/wkt/gen/google/protobuf/empty_pb.js +2 -2
- package/dist/esm/wkt/gen/google/protobuf/field_mask_pb.d.ts +4 -2
- package/dist/esm/wkt/gen/google/protobuf/field_mask_pb.js +2 -2
- package/dist/esm/wkt/gen/google/protobuf/go_features_pb.d.ts +4 -2
- package/dist/esm/wkt/gen/google/protobuf/go_features_pb.js +4 -4
- package/dist/esm/wkt/gen/google/protobuf/java_features_pb.d.ts +4 -2
- package/dist/esm/wkt/gen/google/protobuf/java_features_pb.js +4 -4
- package/dist/esm/wkt/gen/google/protobuf/source_context_pb.d.ts +4 -2
- package/dist/esm/wkt/gen/google/protobuf/source_context_pb.js +2 -2
- package/dist/esm/wkt/gen/google/protobuf/struct_pb.d.ts +10 -4
- package/dist/esm/wkt/gen/google/protobuf/struct_pb.js +3 -3
- package/dist/esm/wkt/gen/google/protobuf/timestamp_pb.d.ts +4 -2
- package/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js +2 -2
- package/dist/esm/wkt/gen/google/protobuf/type_pb.d.ts +16 -6
- package/dist/esm/wkt/gen/google/protobuf/type_pb.js +3 -3
- package/dist/esm/wkt/gen/google/protobuf/wrappers_pb.d.ts +28 -10
- package/dist/esm/wkt/gen/google/protobuf/wrappers_pb.js +2 -2
- package/package.json +9 -2
- /package/dist/cjs/{codegenv1 → codegenv2}/boot.d.ts +0 -0
- /package/dist/cjs/{codegenv1 → codegenv2}/boot.js +0 -0
- /package/dist/cjs/{codegenv1 → codegenv2}/embed.d.ts +0 -0
- /package/dist/cjs/{codegenv1 → codegenv2}/embed.js +0 -0
- /package/dist/cjs/{codegenv1 → codegenv2}/restore-json-names.d.ts +0 -0
- /package/dist/cjs/{codegenv1 → codegenv2}/restore-json-names.js +0 -0
- /package/dist/cjs/{codegenv1 → codegenv2}/scalar.d.ts +0 -0
- /package/dist/cjs/{codegenv1 → codegenv2}/scalar.js +0 -0
- /package/dist/esm/{codegenv1 → codegenv2}/boot.d.ts +0 -0
- /package/dist/esm/{codegenv1 → codegenv2}/boot.js +0 -0
- /package/dist/esm/{codegenv1 → codegenv2}/embed.d.ts +0 -0
- /package/dist/esm/{codegenv1 → codegenv2}/embed.js +0 -0
- /package/dist/esm/{codegenv1 → codegenv2}/restore-json-names.d.ts +0 -0
- /package/dist/esm/{codegenv1 → codegenv2}/restore-json-names.js +0 -0
- /package/dist/esm/{codegenv1 → codegenv2}/scalar.d.ts +0 -0
- /package/dist/esm/{codegenv1 → codegenv2}/scalar.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GenEnum, GenFile, GenMessage } from "../../../../
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage } from "../../../../codegenv2/types.js";
|
|
2
2
|
import type { Any, AnyJson } from "./any_pb.js";
|
|
3
3
|
import type { SourceContext, SourceContextJson } from "./source_context_pb.js";
|
|
4
4
|
import type { Message } from "../../../../types.js";
|
|
@@ -108,7 +108,9 @@ export type TypeJson = {
|
|
|
108
108
|
* Describes the message google.protobuf.Type.
|
|
109
109
|
* Use `create(TypeSchema)` to create a new message.
|
|
110
110
|
*/
|
|
111
|
-
export declare const TypeSchema: GenMessage<Type,
|
|
111
|
+
export declare const TypeSchema: GenMessage<Type, {
|
|
112
|
+
jsonType: TypeJson;
|
|
113
|
+
}>;
|
|
112
114
|
/**
|
|
113
115
|
* A single field of a message type.
|
|
114
116
|
*
|
|
@@ -251,7 +253,9 @@ export type FieldJson = {
|
|
|
251
253
|
* Describes the message google.protobuf.Field.
|
|
252
254
|
* Use `create(FieldSchema)` to create a new message.
|
|
253
255
|
*/
|
|
254
|
-
export declare const FieldSchema: GenMessage<Field,
|
|
256
|
+
export declare const FieldSchema: GenMessage<Field, {
|
|
257
|
+
jsonType: FieldJson;
|
|
258
|
+
}>;
|
|
255
259
|
/**
|
|
256
260
|
* Basic field types.
|
|
257
261
|
*
|
|
@@ -514,7 +518,9 @@ export type EnumJson = {
|
|
|
514
518
|
* Describes the message google.protobuf.Enum.
|
|
515
519
|
* Use `create(EnumSchema)` to create a new message.
|
|
516
520
|
*/
|
|
517
|
-
export declare const EnumSchema: GenMessage<Enum,
|
|
521
|
+
export declare const EnumSchema: GenMessage<Enum, {
|
|
522
|
+
jsonType: EnumJson;
|
|
523
|
+
}>;
|
|
518
524
|
/**
|
|
519
525
|
* Enum value definition.
|
|
520
526
|
*
|
|
@@ -569,7 +575,9 @@ export type EnumValueJson = {
|
|
|
569
575
|
* Describes the message google.protobuf.EnumValue.
|
|
570
576
|
* Use `create(EnumValueSchema)` to create a new message.
|
|
571
577
|
*/
|
|
572
|
-
export declare const EnumValueSchema: GenMessage<EnumValue,
|
|
578
|
+
export declare const EnumValueSchema: GenMessage<EnumValue, {
|
|
579
|
+
jsonType: EnumValueJson;
|
|
580
|
+
}>;
|
|
573
581
|
/**
|
|
574
582
|
* A protocol buffer option, which can be attached to a message, field,
|
|
575
583
|
* enumeration, etc.
|
|
@@ -626,7 +634,9 @@ export type OptionJson = {
|
|
|
626
634
|
* Describes the message google.protobuf.Option.
|
|
627
635
|
* Use `create(OptionSchema)` to create a new message.
|
|
628
636
|
*/
|
|
629
|
-
export declare const OptionSchema: GenMessage<Option,
|
|
637
|
+
export declare const OptionSchema: GenMessage<Option, {
|
|
638
|
+
jsonType: OptionJson;
|
|
639
|
+
}>;
|
|
630
640
|
/**
|
|
631
641
|
* The syntax in which a protocol buffer element is defined.
|
|
632
642
|
*
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
// limitations under the License.
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.SyntaxSchema = exports.Syntax = exports.OptionSchema = exports.EnumValueSchema = exports.EnumSchema = exports.Field_CardinalitySchema = exports.Field_Cardinality = exports.Field_KindSchema = exports.Field_Kind = exports.FieldSchema = exports.TypeSchema = exports.file_google_protobuf_type = void 0;
|
|
17
|
-
const file_js_1 = require("../../../../
|
|
17
|
+
const file_js_1 = require("../../../../codegenv2/file.js");
|
|
18
18
|
const any_pb_js_1 = require("./any_pb.js");
|
|
19
19
|
const source_context_pb_js_1 = require("./source_context_pb.js");
|
|
20
|
-
const message_js_1 = require("../../../../
|
|
21
|
-
const enum_js_1 = require("../../../../
|
|
20
|
+
const message_js_1 = require("../../../../codegenv2/message.js");
|
|
21
|
+
const enum_js_1 = require("../../../../codegenv2/enum.js");
|
|
22
22
|
/**
|
|
23
23
|
* Describes the file google/protobuf/type.proto.
|
|
24
24
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GenFile, GenMessage } from "../../../../
|
|
1
|
+
import type { GenFile, GenMessage } from "../../../../codegenv2/types.js";
|
|
2
2
|
import type { Message } from "../../../../types.js";
|
|
3
3
|
/**
|
|
4
4
|
* Describes the file google/protobuf/wrappers.proto.
|
|
@@ -37,7 +37,9 @@ export type DoubleValueJson = number | "NaN" | "Infinity" | "-Infinity";
|
|
|
37
37
|
* Describes the message google.protobuf.DoubleValue.
|
|
38
38
|
* Use `create(DoubleValueSchema)` to create a new message.
|
|
39
39
|
*/
|
|
40
|
-
export declare const DoubleValueSchema: GenMessage<DoubleValue,
|
|
40
|
+
export declare const DoubleValueSchema: GenMessage<DoubleValue, {
|
|
41
|
+
jsonType: DoubleValueJson;
|
|
42
|
+
}>;
|
|
41
43
|
/**
|
|
42
44
|
* Wrapper message for `float`.
|
|
43
45
|
*
|
|
@@ -71,7 +73,9 @@ export type FloatValueJson = number | "NaN" | "Infinity" | "-Infinity";
|
|
|
71
73
|
* Describes the message google.protobuf.FloatValue.
|
|
72
74
|
* Use `create(FloatValueSchema)` to create a new message.
|
|
73
75
|
*/
|
|
74
|
-
export declare const FloatValueSchema: GenMessage<FloatValue,
|
|
76
|
+
export declare const FloatValueSchema: GenMessage<FloatValue, {
|
|
77
|
+
jsonType: FloatValueJson;
|
|
78
|
+
}>;
|
|
75
79
|
/**
|
|
76
80
|
* Wrapper message for `int64`.
|
|
77
81
|
*
|
|
@@ -105,7 +109,9 @@ export type Int64ValueJson = string;
|
|
|
105
109
|
* Describes the message google.protobuf.Int64Value.
|
|
106
110
|
* Use `create(Int64ValueSchema)` to create a new message.
|
|
107
111
|
*/
|
|
108
|
-
export declare const Int64ValueSchema: GenMessage<Int64Value,
|
|
112
|
+
export declare const Int64ValueSchema: GenMessage<Int64Value, {
|
|
113
|
+
jsonType: Int64ValueJson;
|
|
114
|
+
}>;
|
|
109
115
|
/**
|
|
110
116
|
* Wrapper message for `uint64`.
|
|
111
117
|
*
|
|
@@ -139,7 +145,9 @@ export type UInt64ValueJson = string;
|
|
|
139
145
|
* Describes the message google.protobuf.UInt64Value.
|
|
140
146
|
* Use `create(UInt64ValueSchema)` to create a new message.
|
|
141
147
|
*/
|
|
142
|
-
export declare const UInt64ValueSchema: GenMessage<UInt64Value,
|
|
148
|
+
export declare const UInt64ValueSchema: GenMessage<UInt64Value, {
|
|
149
|
+
jsonType: UInt64ValueJson;
|
|
150
|
+
}>;
|
|
143
151
|
/**
|
|
144
152
|
* Wrapper message for `int32`.
|
|
145
153
|
*
|
|
@@ -173,7 +181,9 @@ export type Int32ValueJson = number;
|
|
|
173
181
|
* Describes the message google.protobuf.Int32Value.
|
|
174
182
|
* Use `create(Int32ValueSchema)` to create a new message.
|
|
175
183
|
*/
|
|
176
|
-
export declare const Int32ValueSchema: GenMessage<Int32Value,
|
|
184
|
+
export declare const Int32ValueSchema: GenMessage<Int32Value, {
|
|
185
|
+
jsonType: Int32ValueJson;
|
|
186
|
+
}>;
|
|
177
187
|
/**
|
|
178
188
|
* Wrapper message for `uint32`.
|
|
179
189
|
*
|
|
@@ -207,7 +217,9 @@ export type UInt32ValueJson = number;
|
|
|
207
217
|
* Describes the message google.protobuf.UInt32Value.
|
|
208
218
|
* Use `create(UInt32ValueSchema)` to create a new message.
|
|
209
219
|
*/
|
|
210
|
-
export declare const UInt32ValueSchema: GenMessage<UInt32Value,
|
|
220
|
+
export declare const UInt32ValueSchema: GenMessage<UInt32Value, {
|
|
221
|
+
jsonType: UInt32ValueJson;
|
|
222
|
+
}>;
|
|
211
223
|
/**
|
|
212
224
|
* Wrapper message for `bool`.
|
|
213
225
|
*
|
|
@@ -241,7 +253,9 @@ export type BoolValueJson = boolean;
|
|
|
241
253
|
* Describes the message google.protobuf.BoolValue.
|
|
242
254
|
* Use `create(BoolValueSchema)` to create a new message.
|
|
243
255
|
*/
|
|
244
|
-
export declare const BoolValueSchema: GenMessage<BoolValue,
|
|
256
|
+
export declare const BoolValueSchema: GenMessage<BoolValue, {
|
|
257
|
+
jsonType: BoolValueJson;
|
|
258
|
+
}>;
|
|
245
259
|
/**
|
|
246
260
|
* Wrapper message for `string`.
|
|
247
261
|
*
|
|
@@ -275,7 +289,9 @@ export type StringValueJson = string;
|
|
|
275
289
|
* Describes the message google.protobuf.StringValue.
|
|
276
290
|
* Use `create(StringValueSchema)` to create a new message.
|
|
277
291
|
*/
|
|
278
|
-
export declare const StringValueSchema: GenMessage<StringValue,
|
|
292
|
+
export declare const StringValueSchema: GenMessage<StringValue, {
|
|
293
|
+
jsonType: StringValueJson;
|
|
294
|
+
}>;
|
|
279
295
|
/**
|
|
280
296
|
* Wrapper message for `bytes`.
|
|
281
297
|
*
|
|
@@ -309,4 +325,6 @@ export type BytesValueJson = string;
|
|
|
309
325
|
* Describes the message google.protobuf.BytesValue.
|
|
310
326
|
* Use `create(BytesValueSchema)` to create a new message.
|
|
311
327
|
*/
|
|
312
|
-
export declare const BytesValueSchema: GenMessage<BytesValue,
|
|
328
|
+
export declare const BytesValueSchema: GenMessage<BytesValue, {
|
|
329
|
+
jsonType: BytesValueJson;
|
|
330
|
+
}>;
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
// limitations under the License.
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.BytesValueSchema = exports.StringValueSchema = exports.BoolValueSchema = exports.UInt32ValueSchema = exports.Int32ValueSchema = exports.UInt64ValueSchema = exports.Int64ValueSchema = exports.FloatValueSchema = exports.DoubleValueSchema = exports.file_google_protobuf_wrappers = void 0;
|
|
17
|
-
const file_js_1 = require("../../../../
|
|
18
|
-
const message_js_1 = require("../../../../
|
|
17
|
+
const file_js_1 = require("../../../../codegenv2/file.js");
|
|
18
|
+
const message_js_1 = require("../../../../codegenv2/message.js");
|
|
19
19
|
/**
|
|
20
20
|
* Describes the file google/protobuf/wrappers.proto.
|
|
21
21
|
*/
|
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DescFile } from "../descriptors.js";
|
|
2
2
|
import type { GenEnum } from "./types.js";
|
|
3
3
|
import type { JsonValue } from "../json-value.js";
|
|
4
|
+
export { tsEnum } from "../codegenv2/enum.js";
|
|
4
5
|
/**
|
|
5
6
|
* Hydrate an enum descriptor.
|
|
6
7
|
*
|
|
7
8
|
* @private
|
|
8
9
|
*/
|
|
9
10
|
export declare function enumDesc<Shape extends number, JsonType extends JsonValue = JsonValue>(file: DescFile, path: number, ...paths: number[]): GenEnum<Shape, JsonType>;
|
|
10
|
-
/**
|
|
11
|
-
* Construct a TypeScript enum object at runtime from a descriptor.
|
|
12
|
-
*/
|
|
13
|
-
export declare function tsEnum(desc: DescEnum): enumObject;
|
|
14
|
-
type enumObject = {
|
|
15
|
-
[key: number]: string;
|
|
16
|
-
[k: string]: number | string;
|
|
17
|
-
};
|
|
18
|
-
export {};
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
|
+
export { tsEnum } from "../codegenv2/enum.js";
|
|
14
15
|
/**
|
|
15
16
|
* Hydrate an enum descriptor.
|
|
16
17
|
*
|
|
@@ -23,14 +24,3 @@ export function enumDesc(file, path, ...paths) {
|
|
|
23
24
|
const e = paths.pop(); // we checked length above
|
|
24
25
|
return paths.reduce((acc, cur) => acc.nestedMessages[cur], file.messages[path]).nestedEnums[e];
|
|
25
26
|
}
|
|
26
|
-
/**
|
|
27
|
-
* Construct a TypeScript enum object at runtime from a descriptor.
|
|
28
|
-
*/
|
|
29
|
-
export function tsEnum(desc) {
|
|
30
|
-
const enumObject = {};
|
|
31
|
-
for (const value of desc.values) {
|
|
32
|
-
enumObject[value.localName] = value.number;
|
|
33
|
-
enumObject[value.number] = value.localName;
|
|
34
|
-
}
|
|
35
|
-
return enumObject;
|
|
36
|
-
}
|
|
@@ -11,22 +11,4 @@
|
|
|
11
11
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
|
-
|
|
15
|
-
import { FileDescriptorProtoSchema } from "../wkt/gen/google/protobuf/descriptor_pb.js";
|
|
16
|
-
import { createFileRegistry } from "../registry.js";
|
|
17
|
-
import { restoreJsonNames } from "./restore-json-names.js";
|
|
18
|
-
import { fromBinary } from "../from-binary.js";
|
|
19
|
-
/**
|
|
20
|
-
* Hydrate a file descriptor.
|
|
21
|
-
*
|
|
22
|
-
* @private
|
|
23
|
-
*/
|
|
24
|
-
export function fileDesc(b64, imports) {
|
|
25
|
-
var _a;
|
|
26
|
-
const root = fromBinary(FileDescriptorProtoSchema, base64Decode(b64));
|
|
27
|
-
root.messageType.forEach(restoreJsonNames);
|
|
28
|
-
root.dependency = (_a = imports === null || imports === void 0 ? void 0 : imports.map((f) => f.proto.name)) !== null && _a !== void 0 ? _a : [];
|
|
29
|
-
const reg = createFileRegistry(root, (protoFileName) => imports === null || imports === void 0 ? void 0 : imports.find((f) => f.proto.name === protoFileName));
|
|
30
|
-
// biome-ignore lint/style/noNonNullAssertion: non-null assertion because we just created the registry from the file we look up
|
|
31
|
-
return reg.getFile(root.name);
|
|
32
|
-
}
|
|
14
|
+
export { fileDesc } from "../codegenv2/file.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from "
|
|
2
|
-
export * from "
|
|
1
|
+
export * from "../codegenv2/boot.js";
|
|
2
|
+
export * from "../codegenv2/embed.js";
|
|
3
3
|
export * from "./enum.js";
|
|
4
4
|
export * from "./extension.js";
|
|
5
5
|
export * from "./file.js";
|
|
6
6
|
export * from "./message.js";
|
|
7
7
|
export * from "./service.js";
|
|
8
8
|
export * from "./symbols.js";
|
|
9
|
-
export * from "
|
|
9
|
+
export * from "../codegenv2/scalar.js";
|
|
10
10
|
export * from "./types.js";
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
|
-
export * from "
|
|
15
|
-
export * from "
|
|
14
|
+
export * from "../codegenv2/boot.js";
|
|
15
|
+
export * from "../codegenv2/embed.js";
|
|
16
16
|
export * from "./enum.js";
|
|
17
17
|
export * from "./extension.js";
|
|
18
18
|
export * from "./file.js";
|
|
19
19
|
export * from "./message.js";
|
|
20
20
|
export * from "./service.js";
|
|
21
21
|
export * from "./symbols.js";
|
|
22
|
-
export * from "
|
|
22
|
+
export * from "../codegenv2/scalar.js";
|
|
23
23
|
export * from "./types.js";
|
|
@@ -10,66 +10,6 @@ export declare const wktPublicImportPaths: Readonly<Record<string, string>>;
|
|
|
10
10
|
* @private
|
|
11
11
|
*/
|
|
12
12
|
export declare const symbols: {
|
|
13
|
-
readonly isMessage: {
|
|
14
|
-
readonly typeOnly: false;
|
|
15
|
-
readonly bootstrapWktFrom: "../../is-message.js";
|
|
16
|
-
readonly from: "@bufbuild/protobuf";
|
|
17
|
-
};
|
|
18
|
-
readonly Message: {
|
|
19
|
-
readonly typeOnly: true;
|
|
20
|
-
readonly bootstrapWktFrom: "../../types.js";
|
|
21
|
-
readonly from: "@bufbuild/protobuf";
|
|
22
|
-
};
|
|
23
|
-
readonly create: {
|
|
24
|
-
readonly typeOnly: false;
|
|
25
|
-
readonly bootstrapWktFrom: "../../create.js";
|
|
26
|
-
readonly from: "@bufbuild/protobuf";
|
|
27
|
-
};
|
|
28
|
-
readonly fromJson: {
|
|
29
|
-
readonly typeOnly: false;
|
|
30
|
-
readonly bootstrapWktFrom: "../../from-json.js";
|
|
31
|
-
readonly from: "@bufbuild/protobuf";
|
|
32
|
-
};
|
|
33
|
-
readonly fromJsonString: {
|
|
34
|
-
readonly typeOnly: false;
|
|
35
|
-
readonly bootstrapWktFrom: "../../from-json.js";
|
|
36
|
-
readonly from: "@bufbuild/protobuf";
|
|
37
|
-
};
|
|
38
|
-
readonly fromBinary: {
|
|
39
|
-
readonly typeOnly: false;
|
|
40
|
-
readonly bootstrapWktFrom: "../../from-binary.js";
|
|
41
|
-
readonly from: "@bufbuild/protobuf";
|
|
42
|
-
};
|
|
43
|
-
readonly toBinary: {
|
|
44
|
-
readonly typeOnly: false;
|
|
45
|
-
readonly bootstrapWktFrom: "../../to-binary.js";
|
|
46
|
-
readonly from: "@bufbuild/protobuf";
|
|
47
|
-
};
|
|
48
|
-
readonly toJson: {
|
|
49
|
-
readonly typeOnly: false;
|
|
50
|
-
readonly bootstrapWktFrom: "../../to-json.js";
|
|
51
|
-
readonly from: "@bufbuild/protobuf";
|
|
52
|
-
};
|
|
53
|
-
readonly toJsonString: {
|
|
54
|
-
readonly typeOnly: false;
|
|
55
|
-
readonly bootstrapWktFrom: "../../to-json.js";
|
|
56
|
-
readonly from: "@bufbuild/protobuf";
|
|
57
|
-
};
|
|
58
|
-
readonly protoInt64: {
|
|
59
|
-
readonly typeOnly: false;
|
|
60
|
-
readonly bootstrapWktFrom: "../../proto-int64.js";
|
|
61
|
-
readonly from: "@bufbuild/protobuf";
|
|
62
|
-
};
|
|
63
|
-
readonly JsonValue: {
|
|
64
|
-
readonly typeOnly: true;
|
|
65
|
-
readonly bootstrapWktFrom: "../../json-value.js";
|
|
66
|
-
readonly from: "@bufbuild/protobuf";
|
|
67
|
-
};
|
|
68
|
-
readonly JsonObject: {
|
|
69
|
-
readonly typeOnly: true;
|
|
70
|
-
readonly bootstrapWktFrom: "../../json-value.js";
|
|
71
|
-
readonly from: "@bufbuild/protobuf";
|
|
72
|
-
};
|
|
73
13
|
readonly codegen: {
|
|
74
14
|
readonly boot: {
|
|
75
15
|
readonly typeOnly: false;
|
|
@@ -132,4 +72,64 @@ export declare const symbols: {
|
|
|
132
72
|
readonly from: string;
|
|
133
73
|
};
|
|
134
74
|
};
|
|
75
|
+
readonly isMessage: {
|
|
76
|
+
readonly typeOnly: false;
|
|
77
|
+
readonly bootstrapWktFrom: "../../is-message.js";
|
|
78
|
+
readonly from: "@bufbuild/protobuf";
|
|
79
|
+
};
|
|
80
|
+
readonly Message: {
|
|
81
|
+
readonly typeOnly: true;
|
|
82
|
+
readonly bootstrapWktFrom: "../../types.js";
|
|
83
|
+
readonly from: "@bufbuild/protobuf";
|
|
84
|
+
};
|
|
85
|
+
readonly create: {
|
|
86
|
+
readonly typeOnly: false;
|
|
87
|
+
readonly bootstrapWktFrom: "../../create.js";
|
|
88
|
+
readonly from: "@bufbuild/protobuf";
|
|
89
|
+
};
|
|
90
|
+
readonly fromJson: {
|
|
91
|
+
readonly typeOnly: false;
|
|
92
|
+
readonly bootstrapWktFrom: "../../from-json.js";
|
|
93
|
+
readonly from: "@bufbuild/protobuf";
|
|
94
|
+
};
|
|
95
|
+
readonly fromJsonString: {
|
|
96
|
+
readonly typeOnly: false;
|
|
97
|
+
readonly bootstrapWktFrom: "../../from-json.js";
|
|
98
|
+
readonly from: "@bufbuild/protobuf";
|
|
99
|
+
};
|
|
100
|
+
readonly fromBinary: {
|
|
101
|
+
readonly typeOnly: false;
|
|
102
|
+
readonly bootstrapWktFrom: "../../from-binary.js";
|
|
103
|
+
readonly from: "@bufbuild/protobuf";
|
|
104
|
+
};
|
|
105
|
+
readonly toBinary: {
|
|
106
|
+
readonly typeOnly: false;
|
|
107
|
+
readonly bootstrapWktFrom: "../../to-binary.js";
|
|
108
|
+
readonly from: "@bufbuild/protobuf";
|
|
109
|
+
};
|
|
110
|
+
readonly toJson: {
|
|
111
|
+
readonly typeOnly: false;
|
|
112
|
+
readonly bootstrapWktFrom: "../../to-json.js";
|
|
113
|
+
readonly from: "@bufbuild/protobuf";
|
|
114
|
+
};
|
|
115
|
+
readonly toJsonString: {
|
|
116
|
+
readonly typeOnly: false;
|
|
117
|
+
readonly bootstrapWktFrom: "../../to-json.js";
|
|
118
|
+
readonly from: "@bufbuild/protobuf";
|
|
119
|
+
};
|
|
120
|
+
readonly protoInt64: {
|
|
121
|
+
readonly typeOnly: false;
|
|
122
|
+
readonly bootstrapWktFrom: "../../proto-int64.js";
|
|
123
|
+
readonly from: "@bufbuild/protobuf";
|
|
124
|
+
};
|
|
125
|
+
readonly JsonValue: {
|
|
126
|
+
readonly typeOnly: true;
|
|
127
|
+
readonly bootstrapWktFrom: "../../json-value.js";
|
|
128
|
+
readonly from: "@bufbuild/protobuf";
|
|
129
|
+
};
|
|
130
|
+
readonly JsonObject: {
|
|
131
|
+
readonly typeOnly: true;
|
|
132
|
+
readonly bootstrapWktFrom: "../../json-value.js";
|
|
133
|
+
readonly from: "@bufbuild/protobuf";
|
|
134
|
+
};
|
|
135
135
|
};
|
|
@@ -11,48 +11,20 @@
|
|
|
11
11
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
|
+
import { symbols as symbolsV2, packageName as packageNameV1, wktPublicImportPaths as wktPublicImportPathsV2, } from "../codegenv2/symbols.js";
|
|
14
15
|
/**
|
|
15
16
|
* @private
|
|
16
17
|
*/
|
|
17
|
-
export const packageName =
|
|
18
|
+
export const packageName = packageNameV1;
|
|
18
19
|
/**
|
|
19
20
|
* @private
|
|
20
21
|
*/
|
|
21
|
-
export const wktPublicImportPaths =
|
|
22
|
-
"google/protobuf/compiler/plugin.proto": packageName + "/wkt",
|
|
23
|
-
"google/protobuf/any.proto": packageName + "/wkt",
|
|
24
|
-
"google/protobuf/api.proto": packageName + "/wkt",
|
|
25
|
-
"google/protobuf/cpp_features.proto": packageName + "/wkt",
|
|
26
|
-
"google/protobuf/descriptor.proto": packageName + "/wkt",
|
|
27
|
-
"google/protobuf/duration.proto": packageName + "/wkt",
|
|
28
|
-
"google/protobuf/empty.proto": packageName + "/wkt",
|
|
29
|
-
"google/protobuf/field_mask.proto": packageName + "/wkt",
|
|
30
|
-
"google/protobuf/go_features.proto": packageName + "/wkt",
|
|
31
|
-
"google/protobuf/java_features.proto": packageName + "/wkt",
|
|
32
|
-
"google/protobuf/source_context.proto": packageName + "/wkt",
|
|
33
|
-
"google/protobuf/struct.proto": packageName + "/wkt",
|
|
34
|
-
"google/protobuf/timestamp.proto": packageName + "/wkt",
|
|
35
|
-
"google/protobuf/type.proto": packageName + "/wkt",
|
|
36
|
-
"google/protobuf/wrappers.proto": packageName + "/wkt",
|
|
37
|
-
};
|
|
22
|
+
export const wktPublicImportPaths = wktPublicImportPathsV2;
|
|
38
23
|
/**
|
|
39
24
|
* @private
|
|
40
25
|
*/
|
|
41
26
|
// biome-ignore format: want this to read well
|
|
42
|
-
export const symbols = {
|
|
43
|
-
isMessage: { typeOnly: false, bootstrapWktFrom: "../../is-message.js", from: packageName },
|
|
44
|
-
Message: { typeOnly: true, bootstrapWktFrom: "../../types.js", from: packageName },
|
|
45
|
-
create: { typeOnly: false, bootstrapWktFrom: "../../create.js", from: packageName },
|
|
46
|
-
fromJson: { typeOnly: false, bootstrapWktFrom: "../../from-json.js", from: packageName },
|
|
47
|
-
fromJsonString: { typeOnly: false, bootstrapWktFrom: "../../from-json.js", from: packageName },
|
|
48
|
-
fromBinary: { typeOnly: false, bootstrapWktFrom: "../../from-binary.js", from: packageName },
|
|
49
|
-
toBinary: { typeOnly: false, bootstrapWktFrom: "../../to-binary.js", from: packageName },
|
|
50
|
-
toJson: { typeOnly: false, bootstrapWktFrom: "../../to-json.js", from: packageName },
|
|
51
|
-
toJsonString: { typeOnly: false, bootstrapWktFrom: "../../to-json.js", from: packageName },
|
|
52
|
-
protoInt64: { typeOnly: false, bootstrapWktFrom: "../../proto-int64.js", from: packageName },
|
|
53
|
-
JsonValue: { typeOnly: true, bootstrapWktFrom: "../../json-value.js", from: packageName },
|
|
54
|
-
JsonObject: { typeOnly: true, bootstrapWktFrom: "../../json-value.js", from: packageName },
|
|
55
|
-
codegen: {
|
|
27
|
+
export const symbols = Object.assign(Object.assign({}, symbolsV2), { codegen: {
|
|
56
28
|
boot: { typeOnly: false, bootstrapWktFrom: "../../codegenv1/boot.js", from: packageName + "/codegenv1" },
|
|
57
29
|
fileDesc: { typeOnly: false, bootstrapWktFrom: "../../codegenv1/file.js", from: packageName + "/codegenv1" },
|
|
58
30
|
enumDesc: { typeOnly: false, bootstrapWktFrom: "../../codegenv1/enum.js", from: packageName + "/codegenv1" },
|
|
@@ -65,5 +37,4 @@ export const symbols = {
|
|
|
65
37
|
GenExtension: { typeOnly: true, bootstrapWktFrom: "../../codegenv1/types.js", from: packageName + "/codegenv1" },
|
|
66
38
|
GenMessage: { typeOnly: true, bootstrapWktFrom: "../../codegenv1/types.js", from: packageName + "/codegenv1" },
|
|
67
39
|
GenService: { typeOnly: true, bootstrapWktFrom: "../../codegenv1/types.js", from: packageName + "/codegenv1" },
|
|
68
|
-
}
|
|
69
|
-
};
|
|
40
|
+
} });
|
|
@@ -15,8 +15,9 @@ export type GenFile = DescFile;
|
|
|
15
15
|
*
|
|
16
16
|
* @private
|
|
17
17
|
*/
|
|
18
|
-
export type GenMessage<RuntimeShape extends Message, JsonType = JsonValue> = Omit<DescMessage, "field"> & {
|
|
18
|
+
export type GenMessage<RuntimeShape extends Message, JsonType = JsonValue> = Omit<DescMessage, "field" | "typeName"> & {
|
|
19
19
|
field: Record<MessageFieldNames<RuntimeShape>, DescField>;
|
|
20
|
+
typeName: RuntimeShape["$typeName"];
|
|
20
21
|
} & brandv1<RuntimeShape, JsonType>;
|
|
21
22
|
/**
|
|
22
23
|
* Describes an enumeration in a protobuf source file.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { DescEnum, DescFile } from "../descriptors.js";
|
|
2
|
+
import type { GenEnum } from "./types.js";
|
|
3
|
+
import type { JsonValue } from "../json-value.js";
|
|
4
|
+
/**
|
|
5
|
+
* Hydrate an enum descriptor.
|
|
6
|
+
*
|
|
7
|
+
* @private
|
|
8
|
+
*/
|
|
9
|
+
export declare function enumDesc<Shape extends number, JsonType extends JsonValue = JsonValue>(file: DescFile, path: number, ...paths: number[]): GenEnum<Shape, JsonType>;
|
|
10
|
+
/**
|
|
11
|
+
* Construct a TypeScript enum object at runtime from a descriptor.
|
|
12
|
+
*/
|
|
13
|
+
export declare function tsEnum(desc: DescEnum): enumObject;
|
|
14
|
+
type enumObject = {
|
|
15
|
+
[key: number]: string;
|
|
16
|
+
[k: string]: number | string;
|
|
17
|
+
};
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// Copyright 2021-2025 Buf Technologies, Inc.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
/**
|
|
15
|
+
* Hydrate an enum descriptor.
|
|
16
|
+
*
|
|
17
|
+
* @private
|
|
18
|
+
*/
|
|
19
|
+
export function enumDesc(file, path, ...paths) {
|
|
20
|
+
if (paths.length == 0) {
|
|
21
|
+
return file.enums[path];
|
|
22
|
+
}
|
|
23
|
+
const e = paths.pop(); // we checked length above
|
|
24
|
+
return paths.reduce((acc, cur) => acc.nestedMessages[cur], file.messages[path]).nestedEnums[e];
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Construct a TypeScript enum object at runtime from a descriptor.
|
|
28
|
+
*/
|
|
29
|
+
export function tsEnum(desc) {
|
|
30
|
+
const enumObject = {};
|
|
31
|
+
for (const value of desc.values) {
|
|
32
|
+
enumObject[value.localName] = value.number;
|
|
33
|
+
enumObject[value.number] = value.localName;
|
|
34
|
+
}
|
|
35
|
+
return enumObject;
|
|
36
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Message } from "../types.js";
|
|
2
|
+
import type { DescFile } from "../descriptors.js";
|
|
3
|
+
import type { GenExtension } from "./types.js";
|
|
4
|
+
/**
|
|
5
|
+
* Hydrate an extension descriptor.
|
|
6
|
+
*
|
|
7
|
+
* @private
|
|
8
|
+
*/
|
|
9
|
+
export declare function extDesc<Extendee extends Message, Value>(file: DescFile, path: number, ...paths: number[]): GenExtension<Extendee, Value>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Copyright 2021-2025 Buf Technologies, Inc.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
/**
|
|
15
|
+
* Hydrate an extension descriptor.
|
|
16
|
+
*
|
|
17
|
+
* @private
|
|
18
|
+
*/
|
|
19
|
+
export function extDesc(file, path, ...paths) {
|
|
20
|
+
if (paths.length == 0) {
|
|
21
|
+
return file.extensions[path];
|
|
22
|
+
}
|
|
23
|
+
const e = paths.pop(); // we checked length above
|
|
24
|
+
return paths.reduce((acc, cur) => acc.nestedMessages[cur], file.messages[path]).nestedExtensions[e];
|
|
25
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// Copyright 2021-2025 Buf Technologies, Inc.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
import { base64Decode } from "../wire/base64-encoding.js";
|
|
15
|
+
import { FileDescriptorProtoSchema } from "../wkt/gen/google/protobuf/descriptor_pb.js";
|
|
16
|
+
import { createFileRegistry } from "../registry.js";
|
|
17
|
+
import { restoreJsonNames } from "./restore-json-names.js";
|
|
18
|
+
import { fromBinary } from "../from-binary.js";
|
|
19
|
+
/**
|
|
20
|
+
* Hydrate a file descriptor.
|
|
21
|
+
*
|
|
22
|
+
* @private
|
|
23
|
+
*/
|
|
24
|
+
export function fileDesc(b64, imports) {
|
|
25
|
+
var _a;
|
|
26
|
+
const root = fromBinary(FileDescriptorProtoSchema, base64Decode(b64));
|
|
27
|
+
root.messageType.forEach(restoreJsonNames);
|
|
28
|
+
root.dependency = (_a = imports === null || imports === void 0 ? void 0 : imports.map((f) => f.proto.name)) !== null && _a !== void 0 ? _a : [];
|
|
29
|
+
const reg = createFileRegistry(root, (protoFileName) => imports === null || imports === void 0 ? void 0 : imports.find((f) => f.proto.name === protoFileName));
|
|
30
|
+
// biome-ignore lint/style/noNonNullAssertion: non-null assertion because we just created the registry from the file we look up
|
|
31
|
+
return reg.getFile(root.name);
|
|
32
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./boot.js";
|
|
2
|
+
export * from "./embed.js";
|
|
3
|
+
export * from "./enum.js";
|
|
4
|
+
export * from "./extension.js";
|
|
5
|
+
export * from "./file.js";
|
|
6
|
+
export * from "./message.js";
|
|
7
|
+
export * from "./service.js";
|
|
8
|
+
export * from "./symbols.js";
|
|
9
|
+
export * from "./scalar.js";
|
|
10
|
+
export * from "./types.js";
|