@dxos/protocols 0.8.4-main.c85a9c8dae → 0.8.4-main.d05673bc65

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.
@@ -122,20 +122,27 @@ export interface BytesValue {
122
122
  export interface FileDescriptorSet {
123
123
  file?: FileDescriptorProto[];
124
124
  }
125
+ export enum Edition {
126
+ EDITION_UNKNOWN = 0,
127
+ EDITION_LEGACY = 900,
128
+ EDITION_PROTO2 = 998,
129
+ EDITION_PROTO3 = 999,
130
+ EDITION_2023 = 1000,
131
+ EDITION_2024 = 1001,
132
+ EDITION_1_TEST_ONLY = 1,
133
+ EDITION_2_TEST_ONLY = 2,
134
+ EDITION_99997_TEST_ONLY = 99997,
135
+ EDITION_99998_TEST_ONLY = 99998,
136
+ EDITION_99999_TEST_ONLY = 99999,
137
+ EDITION_MAX = 2147483647
138
+ }
125
139
  export interface FileDescriptorProto {
126
140
  name: string;
127
141
  package: string;
128
142
  dependency?: string[];
129
- /**
130
- * Options:
131
- * - packed = false
132
- */
133
143
  publicDependency?: number[];
134
- /**
135
- * Options:
136
- * - packed = false
137
- */
138
144
  weakDependency?: number[];
145
+ optionDependency?: string[];
139
146
  messageType?: DescriptorProto[];
140
147
  enumType?: EnumDescriptorProto[];
141
148
  service?: ServiceDescriptorProto[];
@@ -143,6 +150,7 @@ export interface FileDescriptorProto {
143
150
  options: FileOptions;
144
151
  sourceCodeInfo: SourceCodeInfo;
145
152
  syntax: string;
153
+ edition: Edition;
146
154
  }
147
155
  export interface DescriptorProto {
148
156
  name: string;
@@ -155,17 +163,47 @@ export interface DescriptorProto {
155
163
  options: MessageOptions;
156
164
  reservedRange?: DescriptorProto.ReservedRange[];
157
165
  reservedName?: string[];
166
+ visibility: SymbolVisibility;
158
167
  }
159
168
  export namespace DescriptorProto {
160
169
  export interface ExtensionRange {
161
170
  start: number;
162
171
  end: number;
172
+ options: ExtensionRangeOptions;
163
173
  }
164
174
  export interface ReservedRange {
165
175
  start: number;
166
176
  end: number;
167
177
  }
168
178
  }
179
+ export interface ExtensionRangeOptions {
180
+ uninterpretedOption?: UninterpretedOption[];
181
+ /**
182
+ * Options:
183
+ * - retention = "RETENTION_SOURCE"
184
+ */
185
+ declaration?: ExtensionRangeOptions.Declaration[];
186
+ features: FeatureSet;
187
+ /**
188
+ * Options:
189
+ * - default = "UNVERIFIED"
190
+ * - retention = "RETENTION_SOURCE"
191
+ */
192
+ verification: ExtensionRangeOptions.VerificationState;
193
+ }
194
+ export namespace ExtensionRangeOptions {
195
+ export interface Declaration {
196
+ number: number;
197
+ fullName: string;
198
+ type: string;
199
+ reserved: boolean;
200
+ repeated: boolean;
201
+ }
202
+ export enum VerificationState {
203
+ DECLARATION = 0,
204
+ UNVERIFIED = 1
205
+ }
206
+ }
169
207
  export interface FieldDescriptorProto {
170
208
  name: string;
171
209
  number: number;
@@ -177,6 +215,7 @@ export interface FieldDescriptorProto {
177
215
  oneofIndex: number;
178
216
  jsonName: string;
179
217
  options: FieldOptions;
218
+ proto3Optional: boolean;
180
219
  }
181
220
  export namespace FieldDescriptorProto {
182
221
  export enum Type {
@@ -201,8 +240,8 @@ export namespace FieldDescriptorProto {
201
240
  }
202
241
  export enum Label {
203
242
  LABEL_OPTIONAL = 1,
204
- LABEL_REQUIRED = 2,
205
- LABEL_REPEATED = 3
243
+ LABEL_REPEATED = 3,
244
+ LABEL_REQUIRED = 2
206
245
  }
207
246
  }
208
247
  export interface OneofDescriptorProto {
@@ -213,6 +252,15 @@ export interface EnumDescriptorProto {
213
252
  name: string;
214
253
  value?: EnumValueDescriptorProto[];
215
254
  options: EnumOptions;
255
+ reservedRange?: EnumDescriptorProto.EnumReservedRange[];
256
+ reservedName?: string[];
257
+ visibility: SymbolVisibility;
258
+ }
259
+ export namespace EnumDescriptorProto {
260
+ export interface EnumReservedRange {
261
+ start: number;
262
+ end: number;
263
+ }
216
264
  }
217
265
  export interface EnumValueDescriptorProto {
218
266
  name: string;
@@ -252,9 +300,19 @@ export interface FileOptions {
252
300
  javaGenericServices: boolean;
253
301
  pyGenericServices: boolean;
254
302
  deprecated: boolean;
303
+ /**
304
+ * Options:
305
+ * - default = true
306
+ */
255
307
  ccEnableArenas: boolean;
256
308
  objcClassPrefix: string;
257
309
  csharpNamespace: string;
310
+ swiftPrefix: string;
311
+ phpClassPrefix: string;
312
+ phpNamespace: string;
313
+ phpMetadataNamespace: string;
314
+ rubyPackage: string;
315
+ features: FeatureSet;
258
316
  uninterpretedOption?: UninterpretedOption[];
259
317
  }
260
318
  export namespace FileOptions {
@@ -269,6 +327,12 @@ export interface MessageOptions {
269
327
  noStandardDescriptorAccessor: boolean;
270
328
  deprecated: boolean;
271
329
  mapEntry: boolean;
330
+ /**
331
+ * Options:
332
+ * - deprecated = true
333
+ */
334
+ deprecatedLegacyJsonFieldConflicts: boolean;
335
+ features: FeatureSet;
272
336
  uninterpretedOption?: UninterpretedOption[];
273
337
  }
274
338
  export interface FieldOptions {
@@ -284,8 +348,19 @@ export interface FieldOptions {
284
348
  */
285
349
  jstype: FieldOptions.JSType;
286
350
  lazy: boolean;
351
+ unverifiedLazy: boolean;
287
352
  deprecated: boolean;
353
+ /**
354
+ * Options:
355
+ * - deprecated = true
356
+ */
288
357
  weak: boolean;
358
+ debugRedact: boolean;
359
+ retention: FieldOptions.OptionRetention;
360
+ targets?: FieldOptions.OptionTargetType[];
361
+ editionDefaults?: FieldOptions.EditionDefault[];
362
+ features: FeatureSet;
363
+ featureSupport: FieldOptions.FeatureSupport;
289
364
  uninterpretedOption?: UninterpretedOption[];
290
365
  /**
291
366
  * Options:
@@ -309,27 +384,78 @@ export namespace FieldOptions {
309
384
  JS_STRING = 1,
310
385
  JS_NUMBER = 2
311
386
  }
387
+ export enum OptionRetention {
388
+ RETENTION_UNKNOWN = 0,
389
+ RETENTION_RUNTIME = 1,
390
+ RETENTION_SOURCE = 2
391
+ }
392
+ export enum OptionTargetType {
393
+ TARGET_TYPE_UNKNOWN = 0,
394
+ TARGET_TYPE_FILE = 1,
395
+ TARGET_TYPE_EXTENSION_RANGE = 2,
396
+ TARGET_TYPE_MESSAGE = 3,
397
+ TARGET_TYPE_FIELD = 4,
398
+ TARGET_TYPE_ONEOF = 5,
399
+ TARGET_TYPE_ENUM = 6,
400
+ TARGET_TYPE_ENUM_ENTRY = 7,
401
+ TARGET_TYPE_SERVICE = 8,
402
+ TARGET_TYPE_METHOD = 9
403
+ }
404
+ export interface EditionDefault {
405
+ edition: Edition;
406
+ value: string;
407
+ }
408
+ export interface FeatureSupport {
409
+ editionIntroduced: Edition;
410
+ editionDeprecated: Edition;
411
+ deprecationWarning: string;
412
+ editionRemoved: Edition;
413
+ }
312
414
  }
313
415
  export interface OneofOptions {
416
+ features: FeatureSet;
314
417
  uninterpretedOption?: UninterpretedOption[];
315
418
  }
316
419
  export interface EnumOptions {
317
420
  allowAlias: boolean;
318
421
  deprecated: boolean;
422
+ /**
423
+ * Options:
424
+ * - deprecated = true
425
+ */
426
+ deprecatedLegacyJsonFieldConflicts: boolean;
427
+ features: FeatureSet;
319
428
  uninterpretedOption?: UninterpretedOption[];
320
429
  }
321
430
  export interface EnumValueOptions {
322
431
  deprecated: boolean;
432
+ features: FeatureSet;
433
+ debugRedact: boolean;
434
+ featureSupport: FieldOptions.FeatureSupport;
323
435
  uninterpretedOption?: UninterpretedOption[];
324
436
  }
325
437
  export interface ServiceOptions {
438
+ features: FeatureSet;
326
439
  deprecated: boolean;
327
440
  uninterpretedOption?: UninterpretedOption[];
328
441
  }
329
442
  export interface MethodOptions {
330
443
  deprecated: boolean;
444
+ /**
445
+ * Options:
446
+ * - default = "IDEMPOTENCY_UNKNOWN"
447
+ */
448
+ idempotencyLevel: MethodOptions.IdempotencyLevel;
449
+ features: FeatureSet;
331
450
  uninterpretedOption?: UninterpretedOption[];
332
451
  }
452
+ export namespace MethodOptions {
453
+ export enum IdempotencyLevel {
454
+ IDEMPOTENCY_UNKNOWN = 0,
455
+ NO_SIDE_EFFECTS = 1,
456
+ IDEMPOTENT = 2
457
+ }
458
+ }
333
459
  export interface UninterpretedOption {
334
460
  name?: UninterpretedOption.NamePart[];
335
461
  identifierValue: string;
@@ -345,12 +471,155 @@ export namespace UninterpretedOption {
345
471
  isExtension: boolean;
346
472
  }
347
473
  }
474
+ export interface FeatureSet {
475
+ /**
476
+ * Options:
477
+ * - retention = "RETENTION_RUNTIME"
478
+ * - targets = "TARGET_TYPE_FILE"
479
+ * - feature_support.edition_introduced = "EDITION_2023"
480
+ * - edition_defaults.edition = "EDITION_2023"
481
+ * - edition_defaults.value = "EXPLICIT"
482
+ */
483
+ fieldPresence: FeatureSet.FieldPresence;
484
+ /**
485
+ * Options:
486
+ * - retention = "RETENTION_RUNTIME"
487
+ * - targets = "TARGET_TYPE_FILE"
488
+ * - feature_support.edition_introduced = "EDITION_2023"
489
+ * - edition_defaults.edition = "EDITION_PROTO3"
490
+ * - edition_defaults.value = "OPEN"
491
+ */
492
+ enumType: FeatureSet.EnumType;
493
+ /**
494
+ * Options:
495
+ * - retention = "RETENTION_RUNTIME"
496
+ * - targets = "TARGET_TYPE_FILE"
497
+ * - feature_support.edition_introduced = "EDITION_2023"
498
+ * - edition_defaults.edition = "EDITION_PROTO3"
499
+ * - edition_defaults.value = "PACKED"
500
+ */
501
+ repeatedFieldEncoding: FeatureSet.RepeatedFieldEncoding;
502
+ /**
503
+ * Options:
504
+ * - retention = "RETENTION_RUNTIME"
505
+ * - targets = "TARGET_TYPE_FILE"
506
+ * - feature_support.edition_introduced = "EDITION_2023"
507
+ * - edition_defaults.edition = "EDITION_PROTO3"
508
+ * - edition_defaults.value = "VERIFY"
509
+ */
510
+ utf8Validation: FeatureSet.Utf8Validation;
511
+ /**
512
+ * Options:
513
+ * - retention = "RETENTION_RUNTIME"
514
+ * - targets = "TARGET_TYPE_FILE"
515
+ * - feature_support.edition_introduced = "EDITION_2023"
516
+ * - edition_defaults.edition = "EDITION_LEGACY"
517
+ * - edition_defaults.value = "LENGTH_PREFIXED"
518
+ */
519
+ messageEncoding: FeatureSet.MessageEncoding;
520
+ /**
521
+ * Options:
522
+ * - retention = "RETENTION_RUNTIME"
523
+ * - targets = "TARGET_TYPE_FILE"
524
+ * - feature_support.edition_introduced = "EDITION_2023"
525
+ * - edition_defaults.edition = "EDITION_PROTO3"
526
+ * - edition_defaults.value = "ALLOW"
527
+ */
528
+ jsonFormat: FeatureSet.JsonFormat;
529
+ /**
530
+ * Options:
531
+ * - retention = "RETENTION_SOURCE"
532
+ * - targets = "TARGET_TYPE_METHOD"
533
+ * - feature_support.edition_introduced = "EDITION_2024"
534
+ * - edition_defaults.edition = "EDITION_2024"
535
+ * - edition_defaults.value = "STYLE2024"
536
+ */
537
+ enforceNamingStyle: FeatureSet.EnforceNamingStyle;
538
+ /**
539
+ * Options:
540
+ * - retention = "RETENTION_SOURCE"
541
+ * - targets = "TARGET_TYPE_FILE"
542
+ * - feature_support.edition_introduced = "EDITION_2024"
543
+ * - edition_defaults.edition = "EDITION_2024"
544
+ * - edition_defaults.value = "EXPORT_TOP_LEVEL"
545
+ */
546
+ defaultSymbolVisibility: FeatureSet.VisibilityFeature.DefaultSymbolVisibility;
547
+ }
548
+ export namespace FeatureSet {
549
+ export enum FieldPresence {
550
+ FIELD_PRESENCE_UNKNOWN = 0,
551
+ EXPLICIT = 1,
552
+ IMPLICIT = 2,
553
+ LEGACY_REQUIRED = 3
554
+ }
555
+ export enum EnumType {
556
+ ENUM_TYPE_UNKNOWN = 0,
557
+ OPEN = 1,
558
+ CLOSED = 2
559
+ }
560
+ export enum RepeatedFieldEncoding {
561
+ REPEATED_FIELD_ENCODING_UNKNOWN = 0,
562
+ PACKED = 1,
563
+ EXPANDED = 2
564
+ }
565
+ export enum Utf8Validation {
566
+ UTF8_VALIDATION_UNKNOWN = 0,
567
+ VERIFY = 2,
568
+ NONE = 3
569
+ }
570
+ export enum MessageEncoding {
571
+ MESSAGE_ENCODING_UNKNOWN = 0,
572
+ LENGTH_PREFIXED = 1,
573
+ DELIMITED = 2
574
+ }
575
+ export enum JsonFormat {
576
+ JSON_FORMAT_UNKNOWN = 0,
577
+ ALLOW = 1,
578
+ LEGACY_BEST_EFFORT = 2
579
+ }
580
+ export enum EnforceNamingStyle {
581
+ ENFORCE_NAMING_STYLE_UNKNOWN = 0,
582
+ STYLE2024 = 1,
583
+ STYLE_LEGACY = 2
584
+ }
585
+ export interface VisibilityFeature {
586
+ }
587
+ export namespace VisibilityFeature {
588
+ export enum DefaultSymbolVisibility {
589
+ DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0,
590
+ EXPORT_ALL = 1,
591
+ EXPORT_TOP_LEVEL = 2,
592
+ LOCAL_ALL = 3,
593
+ STRICT = 4
594
+ }
595
+ }
596
+ }
597
+ export interface FeatureSetDefaults {
598
+ defaults?: FeatureSetDefaults.FeatureSetEditionDefault[];
599
+ minimumEdition: Edition;
600
+ maximumEdition: Edition;
601
+ }
602
+ export namespace FeatureSetDefaults {
603
+ export interface FeatureSetEditionDefault {
604
+ edition: Edition;
605
+ overridableFeatures: FeatureSet;
606
+ fixedFeatures: FeatureSet;
607
+ }
608
+ }
348
609
  export interface SourceCodeInfo {
349
610
  location?: SourceCodeInfo.Location[];
350
611
  }
351
612
  export namespace SourceCodeInfo {
352
613
  export interface Location {
614
+ /**
615
+ * Options:
616
+ * - packed = true
617
+ */
353
618
  path?: number[];
619
+ /**
620
+ * Options:
621
+ * - packed = true
622
+ */
354
623
  span?: number[];
355
624
  leadingComments: string;
356
625
  trailingComments: string;
@@ -362,9 +631,26 @@ export interface GeneratedCodeInfo {
362
631
  }
363
632
  export namespace GeneratedCodeInfo {
364
633
  export interface Annotation {
634
+ /**
635
+ * Options:
636
+ * - packed = true
637
+ */
365
638
  path?: number[];
366
639
  sourceFile: string;
367
640
  begin: number;
368
641
  end: number;
642
+ semantic: GeneratedCodeInfo.Annotation.Semantic;
369
643
  }
644
+ export namespace Annotation {
645
+ export enum Semantic {
646
+ NONE = 0,
647
+ SET = 1,
648
+ ALIAS = 2
649
+ }
650
+ }
651
+ }
652
+ export enum SymbolVisibility {
653
+ VISIBILITY_UNSET = 0,
654
+ VISIBILITY_LOCAL = 1,
655
+ VISIBILITY_EXPORT = 2
370
656
  }