@dxos/protobuf-compiler 0.6.2 → 0.6.3-main.0308ae2
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/test/proto/gen/example/testing/types.d.ts +1 -1
- package/dist/test/proto/gen/google/protobuf.d.ts +244 -0
- package/dist/test/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/test/proto/gen/google/protobuf.js +55 -0
- package/dist/test/proto/gen/google/protobuf.js.map +1 -1
- package/dist/test/proto/gen/index.d.ts +30 -0
- package/dist/test/proto/gen/index.d.ts.map +1 -1
- package/dist/test/proto/gen/index.js +1 -1
- package/dist/test/proto/gen/index.js.map +1 -1
- package/package.json +6 -6
|
@@ -134,7 +134,7 @@ export interface ComplexFields {
|
|
|
134
134
|
googleAny: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
|
|
135
135
|
/**
|
|
136
136
|
* Options:
|
|
137
|
-
* - preserve_any = true
|
|
137
|
+
* - (preserve_any) = true
|
|
138
138
|
*/
|
|
139
139
|
undecodedAny: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
|
|
140
140
|
importedAny: example_testing_any.Any;
|
|
@@ -4,6 +4,250 @@ export interface Any {
|
|
|
4
4
|
type_url: string;
|
|
5
5
|
value: Uint8Array;
|
|
6
6
|
}
|
|
7
|
+
export interface FileDescriptorSet {
|
|
8
|
+
file?: FileDescriptorProto[];
|
|
9
|
+
}
|
|
10
|
+
export interface FileDescriptorProto {
|
|
11
|
+
name: string;
|
|
12
|
+
package: string;
|
|
13
|
+
dependency?: string[];
|
|
14
|
+
/**
|
|
15
|
+
* Options:
|
|
16
|
+
* - packed = false
|
|
17
|
+
*/
|
|
18
|
+
publicDependency?: number[];
|
|
19
|
+
/**
|
|
20
|
+
* Options:
|
|
21
|
+
* - packed = false
|
|
22
|
+
*/
|
|
23
|
+
weakDependency?: number[];
|
|
24
|
+
messageType?: DescriptorProto[];
|
|
25
|
+
enumType?: EnumDescriptorProto[];
|
|
26
|
+
service?: ServiceDescriptorProto[];
|
|
27
|
+
extension?: FieldDescriptorProto[];
|
|
28
|
+
options: FileOptions;
|
|
29
|
+
sourceCodeInfo: SourceCodeInfo;
|
|
30
|
+
syntax: string;
|
|
31
|
+
}
|
|
32
|
+
export interface DescriptorProto {
|
|
33
|
+
name: string;
|
|
34
|
+
field?: FieldDescriptorProto[];
|
|
35
|
+
extension?: FieldDescriptorProto[];
|
|
36
|
+
nestedType?: DescriptorProto[];
|
|
37
|
+
enumType?: EnumDescriptorProto[];
|
|
38
|
+
extensionRange?: DescriptorProto.ExtensionRange[];
|
|
39
|
+
oneofDecl?: OneofDescriptorProto[];
|
|
40
|
+
options: MessageOptions;
|
|
41
|
+
reservedRange?: DescriptorProto.ReservedRange[];
|
|
42
|
+
reservedName?: string[];
|
|
43
|
+
}
|
|
44
|
+
export declare namespace DescriptorProto {
|
|
45
|
+
interface ExtensionRange {
|
|
46
|
+
start: number;
|
|
47
|
+
end: number;
|
|
48
|
+
}
|
|
49
|
+
interface ReservedRange {
|
|
50
|
+
start: number;
|
|
51
|
+
end: number;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
export interface FieldDescriptorProto {
|
|
55
|
+
name: string;
|
|
56
|
+
number: number;
|
|
57
|
+
label: FieldDescriptorProto.Label;
|
|
58
|
+
type: FieldDescriptorProto.Type;
|
|
59
|
+
typeName: string;
|
|
60
|
+
extendee: string;
|
|
61
|
+
defaultValue: string;
|
|
62
|
+
oneofIndex: number;
|
|
63
|
+
jsonName: string;
|
|
64
|
+
options: FieldOptions;
|
|
65
|
+
}
|
|
66
|
+
export declare namespace FieldDescriptorProto {
|
|
67
|
+
enum Type {
|
|
68
|
+
TYPE_DOUBLE = 1,
|
|
69
|
+
TYPE_FLOAT = 2,
|
|
70
|
+
TYPE_INT64 = 3,
|
|
71
|
+
TYPE_UINT64 = 4,
|
|
72
|
+
TYPE_INT32 = 5,
|
|
73
|
+
TYPE_FIXED64 = 6,
|
|
74
|
+
TYPE_FIXED32 = 7,
|
|
75
|
+
TYPE_BOOL = 8,
|
|
76
|
+
TYPE_STRING = 9,
|
|
77
|
+
TYPE_GROUP = 10,
|
|
78
|
+
TYPE_MESSAGE = 11,
|
|
79
|
+
TYPE_BYTES = 12,
|
|
80
|
+
TYPE_UINT32 = 13,
|
|
81
|
+
TYPE_ENUM = 14,
|
|
82
|
+
TYPE_SFIXED32 = 15,
|
|
83
|
+
TYPE_SFIXED64 = 16,
|
|
84
|
+
TYPE_SINT32 = 17,
|
|
85
|
+
TYPE_SINT64 = 18
|
|
86
|
+
}
|
|
87
|
+
enum Label {
|
|
88
|
+
LABEL_OPTIONAL = 1,
|
|
89
|
+
LABEL_REQUIRED = 2,
|
|
90
|
+
LABEL_REPEATED = 3
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
export interface OneofDescriptorProto {
|
|
94
|
+
name: string;
|
|
95
|
+
options: OneofOptions;
|
|
96
|
+
}
|
|
97
|
+
export interface EnumDescriptorProto {
|
|
98
|
+
name: string;
|
|
99
|
+
value?: EnumValueDescriptorProto[];
|
|
100
|
+
options: EnumOptions;
|
|
101
|
+
}
|
|
102
|
+
export interface EnumValueDescriptorProto {
|
|
103
|
+
name: string;
|
|
104
|
+
number: number;
|
|
105
|
+
options: EnumValueOptions;
|
|
106
|
+
}
|
|
107
|
+
export interface ServiceDescriptorProto {
|
|
108
|
+
name: string;
|
|
109
|
+
method?: MethodDescriptorProto[];
|
|
110
|
+
options: ServiceOptions;
|
|
111
|
+
}
|
|
112
|
+
export interface MethodDescriptorProto {
|
|
113
|
+
name: string;
|
|
114
|
+
inputType: string;
|
|
115
|
+
outputType: string;
|
|
116
|
+
options: MethodOptions;
|
|
117
|
+
clientStreaming: boolean;
|
|
118
|
+
serverStreaming: boolean;
|
|
119
|
+
}
|
|
120
|
+
export interface FileOptions {
|
|
121
|
+
javaPackage: string;
|
|
122
|
+
javaOuterClassname: string;
|
|
123
|
+
javaMultipleFiles: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Options:
|
|
126
|
+
* - deprecated = true
|
|
127
|
+
*/
|
|
128
|
+
javaGenerateEqualsAndHash: boolean;
|
|
129
|
+
javaStringCheckUtf8: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Options:
|
|
132
|
+
* - default = "SPEED"
|
|
133
|
+
*/
|
|
134
|
+
optimizeFor: FileOptions.OptimizeMode;
|
|
135
|
+
goPackage: string;
|
|
136
|
+
ccGenericServices: boolean;
|
|
137
|
+
javaGenericServices: boolean;
|
|
138
|
+
pyGenericServices: boolean;
|
|
139
|
+
deprecated: boolean;
|
|
140
|
+
ccEnableArenas: boolean;
|
|
141
|
+
objcClassPrefix: string;
|
|
142
|
+
csharpNamespace: string;
|
|
143
|
+
uninterpretedOption?: UninterpretedOption[];
|
|
144
|
+
}
|
|
145
|
+
export declare namespace FileOptions {
|
|
146
|
+
enum OptimizeMode {
|
|
147
|
+
SPEED = 1,
|
|
148
|
+
CODE_SIZE = 2,
|
|
149
|
+
LITE_RUNTIME = 3
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
export interface MessageOptions {
|
|
153
|
+
messageSetWireFormat: boolean;
|
|
154
|
+
noStandardDescriptorAccessor: boolean;
|
|
155
|
+
deprecated: boolean;
|
|
156
|
+
mapEntry: boolean;
|
|
157
|
+
uninterpretedOption?: UninterpretedOption[];
|
|
158
|
+
}
|
|
159
|
+
export interface FieldOptions {
|
|
160
|
+
/**
|
|
161
|
+
* Options:
|
|
162
|
+
* - default = "STRING"
|
|
163
|
+
*/
|
|
164
|
+
ctype: FieldOptions.CType;
|
|
165
|
+
packed: boolean;
|
|
166
|
+
/**
|
|
167
|
+
* Options:
|
|
168
|
+
* - default = "JS_NORMAL"
|
|
169
|
+
*/
|
|
170
|
+
jstype: FieldOptions.JSType;
|
|
171
|
+
lazy: boolean;
|
|
172
|
+
deprecated: boolean;
|
|
173
|
+
weak: boolean;
|
|
174
|
+
uninterpretedOption?: UninterpretedOption[];
|
|
175
|
+
/**
|
|
176
|
+
* Options:
|
|
177
|
+
* - proto3_optional = true
|
|
178
|
+
*/
|
|
179
|
+
".example.testing.types.preserveAny"?: boolean;
|
|
180
|
+
}
|
|
181
|
+
export declare namespace FieldOptions {
|
|
182
|
+
enum CType {
|
|
183
|
+
STRING = 0,
|
|
184
|
+
CORD = 1,
|
|
185
|
+
STRING_PIECE = 2
|
|
186
|
+
}
|
|
187
|
+
enum JSType {
|
|
188
|
+
JS_NORMAL = 0,
|
|
189
|
+
JS_STRING = 1,
|
|
190
|
+
JS_NUMBER = 2
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
export interface OneofOptions {
|
|
194
|
+
uninterpretedOption?: UninterpretedOption[];
|
|
195
|
+
}
|
|
196
|
+
export interface EnumOptions {
|
|
197
|
+
allowAlias: boolean;
|
|
198
|
+
deprecated: boolean;
|
|
199
|
+
uninterpretedOption?: UninterpretedOption[];
|
|
200
|
+
}
|
|
201
|
+
export interface EnumValueOptions {
|
|
202
|
+
deprecated: boolean;
|
|
203
|
+
uninterpretedOption?: UninterpretedOption[];
|
|
204
|
+
}
|
|
205
|
+
export interface ServiceOptions {
|
|
206
|
+
deprecated: boolean;
|
|
207
|
+
uninterpretedOption?: UninterpretedOption[];
|
|
208
|
+
}
|
|
209
|
+
export interface MethodOptions {
|
|
210
|
+
deprecated: boolean;
|
|
211
|
+
uninterpretedOption?: UninterpretedOption[];
|
|
212
|
+
}
|
|
213
|
+
export interface UninterpretedOption {
|
|
214
|
+
name?: UninterpretedOption.NamePart[];
|
|
215
|
+
identifierValue: string;
|
|
216
|
+
positiveIntValue: string;
|
|
217
|
+
negativeIntValue: string;
|
|
218
|
+
doubleValue: number;
|
|
219
|
+
stringValue: Uint8Array;
|
|
220
|
+
aggregateValue: string;
|
|
221
|
+
}
|
|
222
|
+
export declare namespace UninterpretedOption {
|
|
223
|
+
interface NamePart {
|
|
224
|
+
namePart: string;
|
|
225
|
+
isExtension: boolean;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
export interface SourceCodeInfo {
|
|
229
|
+
location?: SourceCodeInfo.Location[];
|
|
230
|
+
}
|
|
231
|
+
export declare namespace SourceCodeInfo {
|
|
232
|
+
interface Location {
|
|
233
|
+
path?: number[];
|
|
234
|
+
span?: number[];
|
|
235
|
+
leadingComments: string;
|
|
236
|
+
trailingComments: string;
|
|
237
|
+
leadingDetachedComments?: string[];
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
export interface GeneratedCodeInfo {
|
|
241
|
+
annotation?: GeneratedCodeInfo.Annotation[];
|
|
242
|
+
}
|
|
243
|
+
export declare namespace GeneratedCodeInfo {
|
|
244
|
+
interface Annotation {
|
|
245
|
+
path?: number[];
|
|
246
|
+
sourceFile: string;
|
|
247
|
+
begin: number;
|
|
248
|
+
end: number;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
7
251
|
export interface Timestamp {
|
|
8
252
|
seconds: string;
|
|
9
253
|
nanos: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protobuf.d.ts","sourceRoot":"","sources":["../../../../../test/proto/gen/google/protobuf.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,KAAK;CACrB;AACD,MAAM,WAAW,GAAG;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,UAAU,CAAC;CACrB;AACD,MAAM,WAAW,SAAS;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACjB"}
|
|
1
|
+
{"version":3,"file":"protobuf.d.ts","sourceRoot":"","sources":["../../../../../test/proto/gen/google/protobuf.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,KAAK;CACrB;AACD,MAAM,WAAW,GAAG;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,UAAU,CAAC;CACrB;AACD,MAAM,WAAW,iBAAiB;IAC9B,IAAI,CAAC,EAAE,mBAAmB,EAAE,CAA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yBAAiB,mBAAmB,CAAC;IACjC,UAAiB,QAAQ;QACrB,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,OAAO,CAAC;KACxB;CACJ;AACD,MAAM,WAAW,cAAc;IAC3B,QAAQ,CAAC,EAAE,cAAc,CAAC,QAAQ,EAAE,CAAC;CACxC;AACD,yBAAiB,cAAc,CAAC;IAC5B,UAAiB,QAAQ;QACrB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;QAChB,eAAe,EAAE,MAAM,CAAC;QACxB,gBAAgB,EAAE,MAAM,CAAC;QACzB,uBAAuB,CAAC,EAAE,MAAM,EAAE,CAAC;KACtC;CACJ;AACD,MAAM,WAAW,iBAAiB;IAC9B,UAAU,CAAC,EAAE,iBAAiB,CAAC,UAAU,EAAE,CAAC;CAC/C;AACD,yBAAiB,iBAAiB,CAAC;IAC/B,UAAiB,UAAU;QACvB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,KAAK,EAAE,MAAM,CAAC;QACd,GAAG,EAAE,MAAM,CAAC;KACf;CACJ;AACD,MAAM,WAAW,SAAS;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1,3 +1,58 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FieldOptions = exports.FileOptions = exports.FieldDescriptorProto = void 0;
|
|
4
|
+
var FieldDescriptorProto;
|
|
5
|
+
(function (FieldDescriptorProto) {
|
|
6
|
+
let Type;
|
|
7
|
+
(function (Type) {
|
|
8
|
+
Type[Type["TYPE_DOUBLE"] = 1] = "TYPE_DOUBLE";
|
|
9
|
+
Type[Type["TYPE_FLOAT"] = 2] = "TYPE_FLOAT";
|
|
10
|
+
Type[Type["TYPE_INT64"] = 3] = "TYPE_INT64";
|
|
11
|
+
Type[Type["TYPE_UINT64"] = 4] = "TYPE_UINT64";
|
|
12
|
+
Type[Type["TYPE_INT32"] = 5] = "TYPE_INT32";
|
|
13
|
+
Type[Type["TYPE_FIXED64"] = 6] = "TYPE_FIXED64";
|
|
14
|
+
Type[Type["TYPE_FIXED32"] = 7] = "TYPE_FIXED32";
|
|
15
|
+
Type[Type["TYPE_BOOL"] = 8] = "TYPE_BOOL";
|
|
16
|
+
Type[Type["TYPE_STRING"] = 9] = "TYPE_STRING";
|
|
17
|
+
Type[Type["TYPE_GROUP"] = 10] = "TYPE_GROUP";
|
|
18
|
+
Type[Type["TYPE_MESSAGE"] = 11] = "TYPE_MESSAGE";
|
|
19
|
+
Type[Type["TYPE_BYTES"] = 12] = "TYPE_BYTES";
|
|
20
|
+
Type[Type["TYPE_UINT32"] = 13] = "TYPE_UINT32";
|
|
21
|
+
Type[Type["TYPE_ENUM"] = 14] = "TYPE_ENUM";
|
|
22
|
+
Type[Type["TYPE_SFIXED32"] = 15] = "TYPE_SFIXED32";
|
|
23
|
+
Type[Type["TYPE_SFIXED64"] = 16] = "TYPE_SFIXED64";
|
|
24
|
+
Type[Type["TYPE_SINT32"] = 17] = "TYPE_SINT32";
|
|
25
|
+
Type[Type["TYPE_SINT64"] = 18] = "TYPE_SINT64";
|
|
26
|
+
})(Type = FieldDescriptorProto.Type || (FieldDescriptorProto.Type = {}));
|
|
27
|
+
let Label;
|
|
28
|
+
(function (Label) {
|
|
29
|
+
Label[Label["LABEL_OPTIONAL"] = 1] = "LABEL_OPTIONAL";
|
|
30
|
+
Label[Label["LABEL_REQUIRED"] = 2] = "LABEL_REQUIRED";
|
|
31
|
+
Label[Label["LABEL_REPEATED"] = 3] = "LABEL_REPEATED";
|
|
32
|
+
})(Label = FieldDescriptorProto.Label || (FieldDescriptorProto.Label = {}));
|
|
33
|
+
})(FieldDescriptorProto || (exports.FieldDescriptorProto = FieldDescriptorProto = {}));
|
|
34
|
+
var FileOptions;
|
|
35
|
+
(function (FileOptions) {
|
|
36
|
+
let OptimizeMode;
|
|
37
|
+
(function (OptimizeMode) {
|
|
38
|
+
OptimizeMode[OptimizeMode["SPEED"] = 1] = "SPEED";
|
|
39
|
+
OptimizeMode[OptimizeMode["CODE_SIZE"] = 2] = "CODE_SIZE";
|
|
40
|
+
OptimizeMode[OptimizeMode["LITE_RUNTIME"] = 3] = "LITE_RUNTIME";
|
|
41
|
+
})(OptimizeMode = FileOptions.OptimizeMode || (FileOptions.OptimizeMode = {}));
|
|
42
|
+
})(FileOptions || (exports.FileOptions = FileOptions = {}));
|
|
43
|
+
var FieldOptions;
|
|
44
|
+
(function (FieldOptions) {
|
|
45
|
+
let CType;
|
|
46
|
+
(function (CType) {
|
|
47
|
+
CType[CType["STRING"] = 0] = "STRING";
|
|
48
|
+
CType[CType["CORD"] = 1] = "CORD";
|
|
49
|
+
CType[CType["STRING_PIECE"] = 2] = "STRING_PIECE";
|
|
50
|
+
})(CType = FieldOptions.CType || (FieldOptions.CType = {}));
|
|
51
|
+
let JSType;
|
|
52
|
+
(function (JSType) {
|
|
53
|
+
JSType[JSType["JS_NORMAL"] = 0] = "JS_NORMAL";
|
|
54
|
+
JSType[JSType["JS_STRING"] = 1] = "JS_STRING";
|
|
55
|
+
JSType[JSType["JS_NUMBER"] = 2] = "JS_NUMBER";
|
|
56
|
+
})(JSType = FieldOptions.JSType || (FieldOptions.JSType = {}));
|
|
57
|
+
})(FieldOptions || (exports.FieldOptions = FieldOptions = {}));
|
|
3
58
|
//# sourceMappingURL=protobuf.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protobuf.js","sourceRoot":"","sources":["../../../../../test/proto/gen/google/protobuf.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"protobuf.js","sourceRoot":"","sources":["../../../../../test/proto/gen/google/protobuf.ts"],"names":[],"mappings":";;;AAwEA,IAAiB,oBAAoB,CA0BpC;AA1BD,WAAiB,oBAAoB;IACjC,IAAY,I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EAXgB,YAAY,4BAAZ,YAAY,QAW5B"}
|
|
@@ -26,8 +26,38 @@ export interface TYPES {
|
|
|
26
26
|
"example.testing.types.WithTimestamp": example_testing_types.WithTimestamp;
|
|
27
27
|
"example.testing.util.Test": example_testing_util.Test;
|
|
28
28
|
"google.protobuf.Any": google_protobuf.Any;
|
|
29
|
+
"google.protobuf.DescriptorProto": google_protobuf.DescriptorProto;
|
|
30
|
+
"google.protobuf.DescriptorProto.ExtensionRange": google_protobuf.DescriptorProto.ExtensionRange;
|
|
31
|
+
"google.protobuf.DescriptorProto.ReservedRange": google_protobuf.DescriptorProto.ReservedRange;
|
|
29
32
|
"google.protobuf.Empty": google_protobuf.Empty;
|
|
33
|
+
"google.protobuf.EnumDescriptorProto": google_protobuf.EnumDescriptorProto;
|
|
34
|
+
"google.protobuf.EnumOptions": google_protobuf.EnumOptions;
|
|
35
|
+
"google.protobuf.EnumValueDescriptorProto": google_protobuf.EnumValueDescriptorProto;
|
|
36
|
+
"google.protobuf.EnumValueOptions": google_protobuf.EnumValueOptions;
|
|
37
|
+
"google.protobuf.FieldDescriptorProto": google_protobuf.FieldDescriptorProto;
|
|
38
|
+
"google.protobuf.FieldDescriptorProto.Label": google_protobuf.FieldDescriptorProto.Label;
|
|
39
|
+
"google.protobuf.FieldDescriptorProto.Type": google_protobuf.FieldDescriptorProto.Type;
|
|
40
|
+
"google.protobuf.FieldOptions": google_protobuf.FieldOptions;
|
|
41
|
+
"google.protobuf.FieldOptions.CType": google_protobuf.FieldOptions.CType;
|
|
42
|
+
"google.protobuf.FieldOptions.JSType": google_protobuf.FieldOptions.JSType;
|
|
43
|
+
"google.protobuf.FileDescriptorProto": google_protobuf.FileDescriptorProto;
|
|
44
|
+
"google.protobuf.FileDescriptorSet": google_protobuf.FileDescriptorSet;
|
|
45
|
+
"google.protobuf.FileOptions": google_protobuf.FileOptions;
|
|
46
|
+
"google.protobuf.FileOptions.OptimizeMode": google_protobuf.FileOptions.OptimizeMode;
|
|
47
|
+
"google.protobuf.GeneratedCodeInfo": google_protobuf.GeneratedCodeInfo;
|
|
48
|
+
"google.protobuf.GeneratedCodeInfo.Annotation": google_protobuf.GeneratedCodeInfo.Annotation;
|
|
49
|
+
"google.protobuf.MessageOptions": google_protobuf.MessageOptions;
|
|
50
|
+
"google.protobuf.MethodDescriptorProto": google_protobuf.MethodDescriptorProto;
|
|
51
|
+
"google.protobuf.MethodOptions": google_protobuf.MethodOptions;
|
|
52
|
+
"google.protobuf.OneofDescriptorProto": google_protobuf.OneofDescriptorProto;
|
|
53
|
+
"google.protobuf.OneofOptions": google_protobuf.OneofOptions;
|
|
54
|
+
"google.protobuf.ServiceDescriptorProto": google_protobuf.ServiceDescriptorProto;
|
|
55
|
+
"google.protobuf.ServiceOptions": google_protobuf.ServiceOptions;
|
|
56
|
+
"google.protobuf.SourceCodeInfo": google_protobuf.SourceCodeInfo;
|
|
57
|
+
"google.protobuf.SourceCodeInfo.Location": google_protobuf.SourceCodeInfo.Location;
|
|
30
58
|
"google.protobuf.Timestamp": google_protobuf.Timestamp;
|
|
59
|
+
"google.protobuf.UninterpretedOption": google_protobuf.UninterpretedOption;
|
|
60
|
+
"google.protobuf.UninterpretedOption.NamePart": google_protobuf.UninterpretedOption.NamePart;
|
|
31
61
|
}
|
|
32
62
|
export interface SERVICES {
|
|
33
63
|
"example.testing.service.ServiceWithEmpty": example_testing_service.ServiceWithEmpty;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../test/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,KAAK,uBAAuB,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,mBAAmB,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,uBAAuB,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,qBAAqB,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAA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Ae,CAAC,qBAAqB,CAAC;IAC/E,+BAA+B,EAAE,eAAe,CAAC,aAAa,CAAC;IAC/D,sCAAsC,EAAE,eAAe,CAAC,oBAAoB,CAAC;IAC7E,8BAA8B,EAAE,eAAe,CAAC,YAAY,CAAC;IAC7D,wCAAwC,EAAE,eAAe,CAAC,sBAAsB,CAAC;IACjF,gCAAgC,EAAE,eAAe,CAAC,cAAc,CAAC;IACjE,gCAAgC,EAAE,eAAe,CAAC,cAAc,CAAC;IACjE,yCAAyC,EAAE,eAAe,CAAC,cAAc,CAAC,QAAQ,CAAC;IACnF,2BAA2B,EAAE,eAAe,CAAC,SAAS,CAAC;IACvD,qCAAqC,EAAE,eAAe,CAAC,mBAAmB,CAAC;IAC3E,8CAA8C,EAAE,eAAe,CAAC,mBAAmB,CAAC,QAAQ,CAAC;CAChG;AACD,MAAM,WAAW,QAAQ;IACrB,0CAA0C,EAAE,uBAAuB,CAAC,gBAAgB,CAAC;IACrF,qCAAqC,EAAE,uBAAuB,CAAC,WAAW,CAAC;CAC9E;AACD,eAAO,MAAM,UAAU,KAAqohB,CAAC;AAC7phB,eAAO,MAAM,MAAM,yBAA8D,CAAC"}
|
|
@@ -6,6 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.schema = exports.schemaJson = void 0;
|
|
7
7
|
const codec_protobuf_1 = require("@dxos/codec-protobuf");
|
|
8
8
|
const substitutions_1 = __importDefault(require("../substitutions"));
|
|
9
|
-
exports.schemaJson = JSON.parse("{\"nested\":{\"example\":{\"nested\":{\"testing\":{\"nested\":{\"another\":{\"nested\":{\"AnotherMessage\":{\"fields\":{},\"comment\":\"Defined to test multiple file references in tool.\"}}},\"any\":{\"nested\":{\"Any\":{\"fields\":{\"bar\":{\"type\":\"int32\",\"id\":1,\"comment\":null}},\"comment\":null}}},\"service\":{\"nested\":{\"ServiceWithEmpty\":{\"methods\":{\"EmptyRpc\":{\"requestType\":\"google.protobuf.Empty\",\"responseType\":\"google.protobuf.Empty\",\"comment\":null},\"EmptyStreamRpc\":{\"requestType\":\"google.protobuf.Empty\",\"responseType\":\"google.protobuf.Empty\",\"responseStream\":true,\"comment\":null}},\"comment\":null},\"TestService\":{\"methods\":{\"CountTasks\":{\"requestType\":\"example.testing.types.TaskList\",\"responseType\":\"example.testing.types.TaskCount\",\"comment\":\"Count the tasks in the task list.\"},\"SubscribeTasks\":{\"requestType\":\"example.testing.types.Key\",\"responseType\":\"example.testing.types.Task\",\"responseStream\":true,\"comment\":\"Subscribe to task list updates.\"}},\"comment\":\"Test service definition.\"},\"WithEmptyField\":{\"fields\":{\"emptyField\":{\"type\":\"google.protobuf.Empty\",\"id\":1,\"comment\":null}},\"comment\":null}}},\"types\":{\"nested\":{\"Any\":{\"fields\":{\"foo\":{\"type\":\"string\",\"id\":1,\"comment\":null}},\"comment\":\"NOTE: Clashes with any.proto (requires FQ name below).\"},\"ComplexFields\":{\"oneofs\":{\"_test\":{\"oneof\":[\"test\"]}},\"fields\":{\"repeatedField\":{\"rule\":\"repeated\",\"type\":\"Key\",\"id\":16,\"comment\":null},\"requiredField\":{\"type\":\"Key\",\"id\":17,\"comment\":null},\"mappedField\":{\"keyType\":\"string\",\"type\":\"Key\",\"id\":18,\"comment\":null},\"inner\":{\"type\":\"Inner\",\"id\":19,\"comment\":null},\"myAny\":{\"type\":\"Any\",\"id\":20,\"comment\":null},\"googleAny\":{\"type\":\"google.protobuf.Any\",\"id\":21,\"comment\":null},\"undecodedAny\":{\"type\":\"google.protobuf.Any\",\"id\":22,\"options\":{\"preserve_any\":true},\"comment\":null},\"importedAny\":{\"type\":\"example.testing.any.Any\",\"id\":23,\"comment\":null},\"test\":{\"type\":\"example.testing.util.Test\",\"id\":24,\"options\":{\"proto3_optional\":true},\"comment\":null}},\"nested\":{\"Inner\":{\"fields\":{\"foo\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"bar\":{\"type\":\"InnerEnum\",\"id\":2,\"comment\":null}},\"comment\":null},\"InnerEnum\":{\"values\":{\"FOO\":0,\"BAR\":1},\"comment\":null,\"comments\":{\"FOO\":null,\"BAR\":null}}},\"comment\":null},\"Key\":{\"fields\":{\"data\":{\"type\":\"bytes\",\"id\":1,\"comment\":null}},\"comment\":\"NOTE: Substitution.\"},\"OptionalScalars\":{\"oneofs\":{\"_doubleField\":{\"oneof\":[\"doubleField\"]},\"_floatField\":{\"oneof\":[\"floatField\"]},\"_int32Field\":{\"oneof\":[\"int32Field\"]},\"_int64Field\":{\"oneof\":[\"int64Field\"]},\"_uint32Field\":{\"oneof\":[\"uint32Field\"]},\"_uint64Field\":{\"oneof\":[\"uint64Field\"]},\"_sint32Field\":{\"oneof\":[\"sint32Field\"]},\"_sint64Field\":{\"oneof\":[\"sint64Field\"]},\"_fixed32Field\":{\"oneof\":[\"fixed32Field\"]},\"_fixed64Field\":{\"oneof\":[\"fixed64Field\"]},\"_sfixed32Field\":{\"oneof\":[\"sfixed32Field\"]},\"_sfixed64Field\":{\"oneof\":[\"sfixed64Field\"]},\"_boolField\":{\"oneof\":[\"boolField\"]},\"_stringField\":{\"oneof\":[\"stringField\"]},\"_bytesField\":{\"oneof\":[\"bytesField\"]}},\"fields\":{\"doubleField\":{\"type\":\"double\",\"id\":1,\"options\":{\"proto3_optional\":true},\"comment\":null},\"floatField\":{\"type\":\"float\",\"id\":2,\"options\":{\"proto3_optional\":true},\"comment\":null},\"int32Field\":{\"type\":\"int32\",\"id\":3,\"options\":{\"proto3_optional\":true},\"comment\":null},\"int64Field\":{\"type\":\"int64\",\"id\":4,\"options\":{\"proto3_optional\":true},\"comment\":null},\"uint32Field\":{\"type\":\"uint32\",\"id\":5,\"options\":{\"proto3_optional\":true},\"comment\":null},\"uint64Field\":{\"type\":\"uint64\",\"id\":6,\"options\":{\"proto3_optional\":true},\"comment\":null},\"sint32Field\":{\"type\":\"sint32\",\"id\":7,\"options\":{\"proto3_optional\":true},\"comment\":null},\"sint64Field\":{\"type\":\"sint64\",\"id\":8,\"options\":{\"proto3_optional\":true},\"comment\":null},\"fixed32Field\":{\"type\":\"fixed32\",\"id\":9,\"options\":{\"proto3_optional\":true},\"comment\":null},\"fixed64Field\":{\"type\":\"fixed64\",\"id\":10,\"options\":{\"proto3_optional\":true},\"comment\":null},\"sfixed32Field\":{\"type\":\"sfixed32\",\"id\":11,\"options\":{\"proto3_optional\":true},\"comment\":null},\"sfixed64Field\":{\"type\":\"sfixed64\",\"id\":12,\"options\":{\"proto3_optional\":true},\"comment\":null},\"boolField\":{\"type\":\"bool\",\"id\":13,\"options\":{\"proto3_optional\":true},\"comment\":null},\"stringField\":{\"type\":\"string\",\"id\":14,\"options\":{\"proto3_optional\":true},\"comment\":null},\"bytesField\":{\"type\":\"bytes\",\"id\":15,\"options\":{\"proto3_optional\":true},\"comment\":null}},\"comment\":null},\"Outer\":{\"fields\":{\"inner\":{\"type\":\"Inner\",\"id\":1,\"comment\":null}},\"nested\":{\"Inner\":{\"fields\":{\"num\":{\"type\":\"int32\",\"id\":1,\"comment\":null}},\"comment\":null}},\"comment\":null},\"Scalars\":{\"fields\":{\"doubleField\":{\"type\":\"double\",\"id\":1,\"comment\":null},\"floatField\":{\"type\":\"float\",\"id\":2,\"comment\":null},\"int32Field\":{\"type\":\"int32\",\"id\":3,\"comment\":null},\"int64Field\":{\"type\":\"int64\",\"id\":4,\"comment\":null},\"uint32Field\":{\"type\":\"uint32\",\"id\":5,\"comment\":null},\"uint64Field\":{\"type\":\"uint64\",\"id\":6,\"comment\":null},\"sint32Field\":{\"type\":\"sint32\",\"id\":7,\"comment\":null},\"sint64Field\":{\"type\":\"sint64\",\"id\":8,\"comment\":null},\"fixed32Field\":{\"type\":\"fixed32\",\"id\":9,\"comment\":null},\"fixed64Field\":{\"type\":\"fixed64\",\"id\":10,\"comment\":null},\"sfixed32Field\":{\"type\":\"sfixed32\",\"id\":11,\"comment\":null},\"sfixed64Field\":{\"type\":\"sfixed64\",\"id\":12,\"comment\":null},\"boolField\":{\"type\":\"bool\",\"id\":13,\"comment\":null},\"stringField\":{\"type\":\"string\",\"id\":14,\"comment\":null},\"bytesField\":{\"type\":\"bytes\",\"id\":15,\"comment\":null}},\"comment\":null},\"SubstitutedByInterface\":{\"fields\":{\"data\":{\"type\":\"string\",\"id\":1,\"comment\":null}},\"comment\":null},\"Task\":{\"oneofs\":{\"_title\":{\"oneof\":[\"title\"]},\"_googleAny\":{\"oneof\":[\"googleAny\"]}},\"fields\":{\"id\":{\"type\":\"string\",\"id\":1,\"comment\":\"Task id\"},\"title\":{\"type\":\"string\",\"id\":2,\"options\":{\"proto3_optional\":true},\"comment\":\"Task title\"},\"key\":{\"type\":\"Key\",\"id\":3,\"comment\":\"Task key.\\nMultiline field comment.\"},\"type\":{\"type\":\"TaskType\",\"id\":4,\"comment\":null},\"googleAny\":{\"type\":\"google.protobuf.Any\",\"id\":5,\"options\":{\"proto3_optional\":true},\"comment\":null}},\"comment\":\"Task.\\nComments can be multiline.\"},\"TaskCount\":{\"fields\":{\"count\":{\"type\":\"int32\",\"id\":1,\"comment\":null}},\"comment\":null},\"TaskList\":{\"fields\":{\"tasks\":{\"rule\":\"repeated\",\"type\":\"Task\",\"id\":1,\"comment\":null}},\"comment\":null},\"TaskType\":{\"values\":{\"IN_PROGRESS\":0,\"COMPLETED\":1},\"comment\":null,\"comments\":{\"IN_PROGRESS\":null,\"COMPLETED\":null}},\"WithTimestamp\":{\"fields\":{\"timestamp\":{\"type\":\"google.protobuf.Timestamp\",\"id\":1,\"comment\":null}},\"comment\":null}}},\"util\":{\"nested\":{\"Test\":{\"fields\":{\"foo\":{\"type\":\"uint32\",\"id\":1,\"comment\":null},\"bar\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null}}}}}}},\"google\":{\"nested\":{\"protobuf\":{\"nested\":{\"Any\":{\"fields\":{\"type_url\":{\"type\":\"string\",\"id\":1},\"value\":{\"type\":\"bytes\",\"id\":2}},\"comment\":null},\"Empty\":{\"fields\":{},\"comment\":null},\"Timestamp\":{\"fields\":{\"seconds\":{\"type\":\"int64\",\"id\":1},\"nanos\":{\"type\":\"int32\",\"id\":2}},\"comment\":null}}}}}}}");
|
|
9
|
+
exports.schemaJson = JSON.parse("{\"nested\":{\"example\":{\"nested\":{\"testing\":{\"nested\":{\"another\":{\"nested\":{\"AnotherMessage\":{\"fields\":{},\"comment\":\"Defined to test multiple file references in tool.\"}}},\"any\":{\"nested\":{\"Any\":{\"fields\":{\"bar\":{\"type\":\"int32\",\"id\":1,\"comment\":null}},\"comment\":null}}},\"service\":{\"nested\":{\"ServiceWithEmpty\":{\"methods\":{\"EmptyRpc\":{\"requestType\":\"google.protobuf.Empty\",\"responseType\":\"google.protobuf.Empty\",\"comment\":null},\"EmptyStreamRpc\":{\"requestType\":\"google.protobuf.Empty\",\"responseType\":\"google.protobuf.Empty\",\"responseStream\":true,\"comment\":null}},\"comment\":null},\"TestService\":{\"methods\":{\"CountTasks\":{\"requestType\":\"example.testing.types.TaskList\",\"responseType\":\"example.testing.types.TaskCount\",\"comment\":\"Count the tasks in the task list.\"},\"SubscribeTasks\":{\"requestType\":\"example.testing.types.Key\",\"responseType\":\"example.testing.types.Task\",\"responseStream\":true,\"comment\":\"Subscribe to task list updates.\"}},\"comment\":\"Test service definition.\"},\"WithEmptyField\":{\"fields\":{\"emptyField\":{\"type\":\"google.protobuf.Empty\",\"id\":1,\"comment\":null}},\"comment\":null}}},\"types\":{\"nested\":{\"_preserveAny\":{\"oneof\":[\"preserveAny\"]},\"Any\":{\"fields\":{\"foo\":{\"type\":\"string\",\"id\":1,\"comment\":null}},\"comment\":\"NOTE: Clashes with any.proto (requires FQ name below).\"},\"ComplexFields\":{\"oneofs\":{\"_test\":{\"oneof\":[\"test\"]}},\"fields\":{\"repeatedField\":{\"rule\":\"repeated\",\"type\":\"Key\",\"id\":16,\"comment\":null},\"requiredField\":{\"type\":\"Key\",\"id\":17,\"comment\":null},\"mappedField\":{\"keyType\":\"string\",\"type\":\"Key\",\"id\":18,\"comment\":null},\"inner\":{\"type\":\"Inner\",\"id\":19,\"comment\":null},\"myAny\":{\"type\":\"Any\",\"id\":20,\"comment\":null},\"googleAny\":{\"type\":\"google.protobuf.Any\",\"id\":21,\"comment\":null},\"undecodedAny\":{\"type\":\"google.protobuf.Any\",\"id\":22,\"options\":{\"(preserve_any)\":true},\"comment\":null},\"importedAny\":{\"type\":\"example.testing.any.Any\",\"id\":23,\"comment\":null},\"test\":{\"type\":\"example.testing.util.Test\",\"id\":24,\"options\":{\"proto3_optional\":true},\"comment\":null}},\"nested\":{\"Inner\":{\"fields\":{\"foo\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"bar\":{\"type\":\"InnerEnum\",\"id\":2,\"comment\":null}},\"comment\":null},\"InnerEnum\":{\"values\":{\"FOO\":0,\"BAR\":1},\"comment\":null,\"comments\":{\"FOO\":null,\"BAR\":null}}},\"comment\":null},\"Key\":{\"fields\":{\"data\":{\"type\":\"bytes\",\"id\":1,\"comment\":null}},\"comment\":\"NOTE: Substitution.\"},\"OptionalScalars\":{\"oneofs\":{\"_doubleField\":{\"oneof\":[\"doubleField\"]},\"_floatField\":{\"oneof\":[\"floatField\"]},\"_int32Field\":{\"oneof\":[\"int32Field\"]},\"_int64Field\":{\"oneof\":[\"int64Field\"]},\"_uint32Field\":{\"oneof\":[\"uint32Field\"]},\"_uint64Field\":{\"oneof\":[\"uint64Field\"]},\"_sint32Field\":{\"oneof\":[\"sint32Field\"]},\"_sint64Field\":{\"oneof\":[\"sint64Field\"]},\"_fixed32Field\":{\"oneof\":[\"fixed32Field\"]},\"_fixed64Field\":{\"oneof\":[\"fixed64Field\"]},\"_sfixed32Field\":{\"oneof\":[\"sfixed32Field\"]},\"_sfixed64Field\":{\"oneof\":[\"sfixed64Field\"]},\"_boolField\":{\"oneof\":[\"boolField\"]},\"_stringField\":{\"oneof\":[\"stringField\"]},\"_bytesField\":{\"oneof\":[\"bytesField\"]}},\"fields\":{\"doubleField\":{\"type\":\"double\",\"id\":1,\"options\":{\"proto3_optional\":true},\"comment\":null},\"floatField\":{\"type\":\"float\",\"id\":2,\"options\":{\"proto3_optional\":true},\"comment\":null},\"int32Field\":{\"type\":\"int32\",\"id\":3,\"options\":{\"proto3_optional\":true},\"comment\":null},\"int64Field\":{\"type\":\"int64\",\"id\":4,\"options\":{\"proto3_optional\":true},\"comment\":null},\"uint32Field\":{\"type\":\"uint32\",\"id\":5,\"options\":{\"proto3_optional\":true},\"comment\":null},\"uint64Field\":{\"type\":\"uint64\",\"id\":6,\"options\":{\"proto3_optional\":true},\"comment\":null},\"sint32Field\":{\"type\":\"sint32\",\"id\":7,\"options\":{\"proto3_optional\":true},\"comment\":null},\"sint64Field\":{\"type\":\"sint64\",\"id\":8,\"options\":{\"proto3_optional\":true},\"comment\":null},\"fixed32Field\":{\"type\":\"fixed32\",\"id\":9,\"options\":{\"proto3_optional\":true},\"comment\":null},\"fixed64Field\":{\"type\":\"fixed64\",\"id\":10,\"options\":{\"proto3_optional\":true},\"comment\":null},\"sfixed32Field\":{\"type\":\"sfixed32\",\"id\":11,\"options\":{\"proto3_optional\":true},\"comment\":null},\"sfixed64Field\":{\"type\":\"sfixed64\",\"id\":12,\"options\":{\"proto3_optional\":true},\"comment\":null},\"boolField\":{\"type\":\"bool\",\"id\":13,\"options\":{\"proto3_optional\":true},\"comment\":null},\"stringField\":{\"type\":\"string\",\"id\":14,\"options\":{\"proto3_optional\":true},\"comment\":null},\"bytesField\":{\"type\":\"bytes\",\"id\":15,\"options\":{\"proto3_optional\":true},\"comment\":null}},\"comment\":null},\"Outer\":{\"fields\":{\"inner\":{\"type\":\"Inner\",\"id\":1,\"comment\":null}},\"nested\":{\"Inner\":{\"fields\":{\"num\":{\"type\":\"int32\",\"id\":1,\"comment\":null}},\"comment\":null}},\"comment\":null},\"preserveAny\":{\"type\":\"bool\",\"id\":8000,\"extend\":\"google.protobuf.FieldOptions\",\"options\":{\"proto3_optional\":true},\"comment\":null},\"Scalars\":{\"fields\":{\"doubleField\":{\"type\":\"double\",\"id\":1,\"comment\":null},\"floatField\":{\"type\":\"float\",\"id\":2,\"comment\":null},\"int32Field\":{\"type\":\"int32\",\"id\":3,\"comment\":null},\"int64Field\":{\"type\":\"int64\",\"id\":4,\"comment\":null},\"uint32Field\":{\"type\":\"uint32\",\"id\":5,\"comment\":null},\"uint64Field\":{\"type\":\"uint64\",\"id\":6,\"comment\":null},\"sint32Field\":{\"type\":\"sint32\",\"id\":7,\"comment\":null},\"sint64Field\":{\"type\":\"sint64\",\"id\":8,\"comment\":null},\"fixed32Field\":{\"type\":\"fixed32\",\"id\":9,\"comment\":null},\"fixed64Field\":{\"type\":\"fixed64\",\"id\":10,\"comment\":null},\"sfixed32Field\":{\"type\":\"sfixed32\",\"id\":11,\"comment\":null},\"sfixed64Field\":{\"type\":\"sfixed64\",\"id\":12,\"comment\":null},\"boolField\":{\"type\":\"bool\",\"id\":13,\"comment\":null},\"stringField\":{\"type\":\"string\",\"id\":14,\"comment\":null},\"bytesField\":{\"type\":\"bytes\",\"id\":15,\"comment\":null}},\"comment\":null},\"SubstitutedByInterface\":{\"fields\":{\"data\":{\"type\":\"string\",\"id\":1,\"comment\":null}},\"comment\":null},\"Task\":{\"oneofs\":{\"_title\":{\"oneof\":[\"title\"]},\"_googleAny\":{\"oneof\":[\"googleAny\"]}},\"fields\":{\"id\":{\"type\":\"string\",\"id\":1,\"comment\":\"Task id\"},\"title\":{\"type\":\"string\",\"id\":2,\"options\":{\"proto3_optional\":true},\"comment\":\"Task title\"},\"key\":{\"type\":\"Key\",\"id\":3,\"comment\":\"Task key.\\nMultiline field comment.\"},\"type\":{\"type\":\"TaskType\",\"id\":4,\"comment\":null},\"googleAny\":{\"type\":\"google.protobuf.Any\",\"id\":5,\"options\":{\"proto3_optional\":true},\"comment\":null}},\"comment\":\"Task.\\nComments can be multiline.\"},\"TaskCount\":{\"fields\":{\"count\":{\"type\":\"int32\",\"id\":1,\"comment\":null}},\"comment\":null},\"TaskList\":{\"fields\":{\"tasks\":{\"rule\":\"repeated\",\"type\":\"Task\",\"id\":1,\"comment\":null}},\"comment\":null},\"TaskType\":{\"values\":{\"IN_PROGRESS\":0,\"COMPLETED\":1},\"comment\":null,\"comments\":{\"IN_PROGRESS\":null,\"COMPLETED\":null}},\"WithTimestamp\":{\"fields\":{\"timestamp\":{\"type\":\"google.protobuf.Timestamp\",\"id\":1,\"comment\":null}},\"comment\":null}}},\"util\":{\"nested\":{\"Test\":{\"fields\":{\"foo\":{\"type\":\"uint32\",\"id\":1,\"comment\":null},\"bar\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null}}}}}}},\"google\":{\"nested\":{\"protobuf\":{\"nested\":{\"Any\":{\"fields\":{\"type_url\":{\"type\":\"string\",\"id\":1},\"value\":{\"type\":\"bytes\",\"id\":2}},\"comment\":null},\"DescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"field\":{\"rule\":\"repeated\",\"type\":\"FieldDescriptorProto\",\"id\":2},\"extension\":{\"rule\":\"repeated\",\"type\":\"FieldDescriptorProto\",\"id\":6},\"nestedType\":{\"rule\":\"repeated\",\"type\":\"DescriptorProto\",\"id\":3},\"enumType\":{\"rule\":\"repeated\",\"type\":\"EnumDescriptorProto\",\"id\":4},\"extensionRange\":{\"rule\":\"repeated\",\"type\":\"ExtensionRange\",\"id\":5},\"oneofDecl\":{\"rule\":\"repeated\",\"type\":\"OneofDescriptorProto\",\"id\":8},\"options\":{\"type\":\"MessageOptions\",\"id\":7},\"reservedRange\":{\"rule\":\"repeated\",\"type\":\"ReservedRange\",\"id\":9},\"reservedName\":{\"rule\":\"repeated\",\"type\":\"string\",\"id\":10}},\"nested\":{\"ExtensionRange\":{\"fields\":{\"start\":{\"type\":\"int32\",\"id\":1},\"end\":{\"type\":\"int32\",\"id\":2}},\"comment\":null},\"ReservedRange\":{\"fields\":{\"start\":{\"type\":\"int32\",\"id\":1},\"end\":{\"type\":\"int32\",\"id\":2}},\"comment\":null}},\"comment\":null},\"Empty\":{\"fields\":{},\"comment\":null},\"EnumDescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"value\":{\"rule\":\"repeated\",\"type\":\"EnumValueDescriptorProto\",\"id\":2},\"options\":{\"type\":\"EnumOptions\",\"id\":3}},\"comment\":null},\"EnumOptions\":{\"fields\":{\"allowAlias\":{\"type\":\"bool\",\"id\":2},\"deprecated\":{\"type\":\"bool\",\"id\":3},\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"comment\":null},\"EnumValueDescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"number\":{\"type\":\"int32\",\"id\":2},\"options\":{\"type\":\"EnumValueOptions\",\"id\":3}},\"comment\":null},\"EnumValueOptions\":{\"fields\":{\"deprecated\":{\"type\":\"bool\",\"id\":1},\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"comment\":null},\"FieldDescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"number\":{\"type\":\"int32\",\"id\":3},\"label\":{\"type\":\"Label\",\"id\":4},\"type\":{\"type\":\"Type\",\"id\":5},\"typeName\":{\"type\":\"string\",\"id\":6},\"extendee\":{\"type\":\"string\",\"id\":2},\"defaultValue\":{\"type\":\"string\",\"id\":7},\"oneofIndex\":{\"type\":\"int32\",\"id\":9},\"jsonName\":{\"type\":\"string\",\"id\":10},\"options\":{\"type\":\"FieldOptions\",\"id\":8}},\"nested\":{\"Label\":{\"values\":{\"LABEL_OPTIONAL\":1,\"LABEL_REQUIRED\":2,\"LABEL_REPEATED\":3},\"comments\":{}},\"Type\":{\"values\":{\"TYPE_DOUBLE\":1,\"TYPE_FLOAT\":2,\"TYPE_INT64\":3,\"TYPE_UINT64\":4,\"TYPE_INT32\":5,\"TYPE_FIXED64\":6,\"TYPE_FIXED32\":7,\"TYPE_BOOL\":8,\"TYPE_STRING\":9,\"TYPE_GROUP\":10,\"TYPE_MESSAGE\":11,\"TYPE_BYTES\":12,\"TYPE_UINT32\":13,\"TYPE_ENUM\":14,\"TYPE_SFIXED32\":15,\"TYPE_SFIXED64\":16,\"TYPE_SINT32\":17,\"TYPE_SINT64\":18},\"comments\":{}}},\"comment\":null},\"FieldOptions\":{\"fields\":{\"ctype\":{\"type\":\"CType\",\"id\":1,\"options\":{\"default\":\"STRING\"}},\"packed\":{\"type\":\"bool\",\"id\":2},\"jstype\":{\"type\":\"JSType\",\"id\":6,\"options\":{\"default\":\"JS_NORMAL\"}},\"lazy\":{\"type\":\"bool\",\"id\":5},\"deprecated\":{\"type\":\"bool\",\"id\":3},\"weak\":{\"type\":\"bool\",\"id\":10},\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"reserved\":[[4,4]],\"nested\":{\"CType\":{\"values\":{\"STRING\":0,\"CORD\":1,\"STRING_PIECE\":2},\"comments\":{}},\"JSType\":{\"values\":{\"JS_NORMAL\":0,\"JS_STRING\":1,\"JS_NUMBER\":2},\"comments\":{}}},\"comment\":null},\"FileDescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"package\":{\"type\":\"string\",\"id\":2},\"dependency\":{\"rule\":\"repeated\",\"type\":\"string\",\"id\":3},\"publicDependency\":{\"rule\":\"repeated\",\"type\":\"int32\",\"id\":10,\"options\":{\"packed\":false}},\"weakDependency\":{\"rule\":\"repeated\",\"type\":\"int32\",\"id\":11,\"options\":{\"packed\":false}},\"messageType\":{\"rule\":\"repeated\",\"type\":\"DescriptorProto\",\"id\":4},\"enumType\":{\"rule\":\"repeated\",\"type\":\"EnumDescriptorProto\",\"id\":5},\"service\":{\"rule\":\"repeated\",\"type\":\"ServiceDescriptorProto\",\"id\":6},\"extension\":{\"rule\":\"repeated\",\"type\":\"FieldDescriptorProto\",\"id\":7},\"options\":{\"type\":\"FileOptions\",\"id\":8},\"sourceCodeInfo\":{\"type\":\"SourceCodeInfo\",\"id\":9},\"syntax\":{\"type\":\"string\",\"id\":12}},\"comment\":null},\"FileDescriptorSet\":{\"fields\":{\"file\":{\"rule\":\"repeated\",\"type\":\"FileDescriptorProto\",\"id\":1}},\"comment\":null},\"FileOptions\":{\"fields\":{\"javaPackage\":{\"type\":\"string\",\"id\":1},\"javaOuterClassname\":{\"type\":\"string\",\"id\":8},\"javaMultipleFiles\":{\"type\":\"bool\",\"id\":10},\"javaGenerateEqualsAndHash\":{\"type\":\"bool\",\"id\":20,\"options\":{\"deprecated\":true}},\"javaStringCheckUtf8\":{\"type\":\"bool\",\"id\":27},\"optimizeFor\":{\"type\":\"OptimizeMode\",\"id\":9,\"options\":{\"default\":\"SPEED\"}},\"goPackage\":{\"type\":\"string\",\"id\":11},\"ccGenericServices\":{\"type\":\"bool\",\"id\":16},\"javaGenericServices\":{\"type\":\"bool\",\"id\":17},\"pyGenericServices\":{\"type\":\"bool\",\"id\":18},\"deprecated\":{\"type\":\"bool\",\"id\":23},\"ccEnableArenas\":{\"type\":\"bool\",\"id\":31},\"objcClassPrefix\":{\"type\":\"string\",\"id\":36},\"csharpNamespace\":{\"type\":\"string\",\"id\":37},\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"reserved\":[[38,38]],\"nested\":{\"OptimizeMode\":{\"values\":{\"SPEED\":1,\"CODE_SIZE\":2,\"LITE_RUNTIME\":3},\"comments\":{}}},\"comment\":null},\"GeneratedCodeInfo\":{\"fields\":{\"annotation\":{\"rule\":\"repeated\",\"type\":\"Annotation\",\"id\":1}},\"nested\":{\"Annotation\":{\"fields\":{\"path\":{\"rule\":\"repeated\",\"type\":\"int32\",\"id\":1},\"sourceFile\":{\"type\":\"string\",\"id\":2},\"begin\":{\"type\":\"int32\",\"id\":3},\"end\":{\"type\":\"int32\",\"id\":4}},\"comment\":null}},\"comment\":null},\"MessageOptions\":{\"fields\":{\"messageSetWireFormat\":{\"type\":\"bool\",\"id\":1},\"noStandardDescriptorAccessor\":{\"type\":\"bool\",\"id\":2},\"deprecated\":{\"type\":\"bool\",\"id\":3},\"mapEntry\":{\"type\":\"bool\",\"id\":7},\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"reserved\":[[8,8]],\"comment\":null},\"MethodDescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"inputType\":{\"type\":\"string\",\"id\":2},\"outputType\":{\"type\":\"string\",\"id\":3},\"options\":{\"type\":\"MethodOptions\",\"id\":4},\"clientStreaming\":{\"type\":\"bool\",\"id\":5},\"serverStreaming\":{\"type\":\"bool\",\"id\":6}},\"comment\":null},\"MethodOptions\":{\"fields\":{\"deprecated\":{\"type\":\"bool\",\"id\":33},\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"comment\":null},\"OneofDescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"options\":{\"type\":\"OneofOptions\",\"id\":2}},\"comment\":null},\"OneofOptions\":{\"fields\":{\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"comment\":null},\"ServiceDescriptorProto\":{\"fields\":{\"name\":{\"type\":\"string\",\"id\":1},\"method\":{\"rule\":\"repeated\",\"type\":\"MethodDescriptorProto\",\"id\":2},\"options\":{\"type\":\"ServiceOptions\",\"id\":3}},\"comment\":null},\"ServiceOptions\":{\"fields\":{\"deprecated\":{\"type\":\"bool\",\"id\":33},\"uninterpretedOption\":{\"rule\":\"repeated\",\"type\":\"UninterpretedOption\",\"id\":999}},\"extensions\":[[1000,536870911]],\"comment\":null},\"SourceCodeInfo\":{\"fields\":{\"location\":{\"rule\":\"repeated\",\"type\":\"Location\",\"id\":1}},\"nested\":{\"Location\":{\"fields\":{\"path\":{\"rule\":\"repeated\",\"type\":\"int32\",\"id\":1},\"span\":{\"rule\":\"repeated\",\"type\":\"int32\",\"id\":2},\"leadingComments\":{\"type\":\"string\",\"id\":3},\"trailingComments\":{\"type\":\"string\",\"id\":4},\"leadingDetachedComments\":{\"rule\":\"repeated\",\"type\":\"string\",\"id\":6}},\"comment\":null}},\"comment\":null},\"Timestamp\":{\"fields\":{\"seconds\":{\"type\":\"int64\",\"id\":1},\"nanos\":{\"type\":\"int32\",\"id\":2}},\"comment\":null},\"UninterpretedOption\":{\"fields\":{\"name\":{\"rule\":\"repeated\",\"type\":\"NamePart\",\"id\":2},\"identifierValue\":{\"type\":\"string\",\"id\":3},\"positiveIntValue\":{\"type\":\"uint64\",\"id\":4},\"negativeIntValue\":{\"type\":\"int64\",\"id\":5},\"doubleValue\":{\"type\":\"double\",\"id\":6},\"stringValue\":{\"type\":\"bytes\",\"id\":7},\"aggregateValue\":{\"type\":\"string\",\"id\":8}},\"nested\":{\"NamePart\":{\"fields\":{\"namePart\":{\"rule\":\"required\",\"type\":\"string\",\"id\":1},\"isExtension\":{\"rule\":\"required\",\"type\":\"bool\",\"id\":2}},\"comment\":null}},\"comment\":null}}}}}}}");
|
|
10
10
|
exports.schema = codec_protobuf_1.Schema.fromJson(exports.schemaJson, substitutions_1.default);
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../test/proto/gen/index.ts"],"names":[],"mappings":";;;;;;AAAA,yDAA8C;AAO9C,qEAA6C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../test/proto/gen/index.ts"],"names":[],"mappings":";;;;;;AAAA,yDAA8C;AAO9C,qEAA6C;AA2DhC,QAAA,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,snhBAAsnhB,CAAC,CAAC;AAChphB,QAAA,MAAM,GAAG,uBAAM,CAAC,QAAQ,CAAkB,kBAAU,EAAE,uBAAa,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/protobuf-compiler",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3-main.0308ae2",
|
|
4
4
|
"homepage": "https://dxos.org",
|
|
5
5
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"protobufjs": "^7.2.5",
|
|
22
22
|
"read-pkg": "^5.2.0",
|
|
23
23
|
"ts-morph": "^16.0.0",
|
|
24
|
-
"@dxos/invariant": "0.6.
|
|
25
|
-
"@dxos/
|
|
26
|
-
"@dxos/
|
|
24
|
+
"@dxos/invariant": "0.6.3-main.0308ae2",
|
|
25
|
+
"@dxos/node-std": "0.6.3-main.0308ae2",
|
|
26
|
+
"@dxos/log": "0.6.3-main.0308ae2"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@swc-node/register": "1.9.1",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"@types/node": "^18.11.9",
|
|
33
33
|
"ts-node": "10.9.1",
|
|
34
34
|
"typescript": "^5.4.5",
|
|
35
|
-
"@dxos/codec-protobuf": "0.6.
|
|
36
|
-
"@dxos/protobuf-test": "0.6.
|
|
35
|
+
"@dxos/codec-protobuf": "0.6.3-main.0308ae2",
|
|
36
|
+
"@dxos/protobuf-test": "0.6.3-main.0308ae2"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"typescript": "^5.2.2"
|