@coralogix/rum-cli 1.1.22 → 1.1.25

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.
Files changed (187) hide show
  1. package/README.md +26 -7
  2. package/api/client/client-factory.ts +26 -0
  3. package/api/client/request-builder.ts +122 -0
  4. package/api/dsym.api.ts +61 -0
  5. package/api/react-native.api.ts +67 -0
  6. package/api/{rum-api.ts → source-maps.api.ts} +14 -22
  7. package/cli/commands/dsym/index.ts +5 -0
  8. package/cli/commands/dsym/upload-dsym-command.ts +36 -0
  9. package/cli/commands/react-native/index.ts +5 -0
  10. package/cli/commands/{upload-react-native-source-maps-command.ts → react-native/upload-react-native-source-maps-command.ts} +14 -11
  11. package/cli/commands/{delete-source-maps-command.ts → source-maps/delete-source-maps-command.ts} +7 -9
  12. package/cli/commands/source-maps/index.ts +7 -0
  13. package/cli/commands/{update-source-maps-command.ts → source-maps/update-source-maps-command.ts} +7 -9
  14. package/cli/commands/{upload-source-maps-command.ts → source-maps/upload-source-maps-command.ts} +7 -9
  15. package/cli/rum-cli.ts +15 -6
  16. package/config/config.ts +10 -4
  17. package/consts/consts.ts +2 -0
  18. package/dist/api/client/client-factory.d.ts +355 -0
  19. package/dist/api/client/client-factory.js +31 -0
  20. package/dist/api/client/request-builder.d.ts +33 -0
  21. package/dist/api/client/request-builder.js +58 -0
  22. package/dist/api/dsym.api.d.ts +4 -0
  23. package/dist/api/dsym.api.js +50 -0
  24. package/dist/api/react-native.api.d.ts +4 -0
  25. package/dist/api/react-native.api.js +50 -0
  26. package/dist/api/{rum-api.d.ts → source-maps.api.d.ts} +2 -2
  27. package/dist/api/source-maps.api.js +97 -0
  28. package/dist/cli/commands/dsym/index.d.ts +4 -0
  29. package/dist/cli/commands/dsym/index.js +6 -0
  30. package/dist/cli/commands/dsym/upload-dsym-command.d.ts +2 -0
  31. package/dist/cli/commands/dsym/upload-dsym-command.js +45 -0
  32. package/dist/cli/commands/react-native/index.d.ts +4 -0
  33. package/dist/cli/commands/react-native/index.js +6 -0
  34. package/dist/cli/commands/react-native/upload-react-native-source-maps-command.js +51 -0
  35. package/dist/cli/commands/source-maps/delete-source-maps-command.js +41 -0
  36. package/dist/cli/commands/{index.d.ts → source-maps/index.d.ts} +2 -3
  37. package/dist/cli/commands/source-maps/index.js +8 -0
  38. package/dist/cli/commands/source-maps/update-source-maps-command.js +46 -0
  39. package/dist/cli/commands/source-maps/upload-source-maps-command.js +45 -0
  40. package/dist/cli/rum-cli.js +11 -7
  41. package/dist/config/config.d.ts +5 -2
  42. package/dist/config/config.js +6 -3
  43. package/dist/consts/consts.d.ts +1 -0
  44. package/dist/consts/consts.js +3 -2
  45. package/dist/models/dsym-commands.model.d.ts +11 -0
  46. package/dist/models/dsym-commands.model.js +3 -0
  47. package/dist/models/react-native-commands.model.d.ts +11 -0
  48. package/dist/models/react-native-commands.model.js +3 -0
  49. package/dist/models/{commands.model.d.ts → source-maps-commands.model.d.ts} +3 -3
  50. package/dist/models/source-maps-commands.model.js +3 -0
  51. package/dist/proto-models/com/coralogix/blobset/v2/audit_log.d.ts +24 -0
  52. package/dist/proto-models/com/coralogix/blobset/v2/audit_log.js +69 -0
  53. package/dist/proto-models/com/coralogix/blobset/v2/blobset_query_service.d.ts +111 -0
  54. package/dist/proto-models/com/coralogix/blobset/v2/blobset_query_service.js +36 -0
  55. package/dist/proto-models/com/coralogix/blobset/v2/blobset_service.d.ts +67 -0
  56. package/dist/proto-models/com/coralogix/blobset/v2/blobset_service.js +179 -0
  57. package/dist/proto-models/com/coralogix/blobset/v2/dsym.d.ts +58 -0
  58. package/dist/proto-models/com/coralogix/blobset/v2/dsym.js +336 -0
  59. package/dist/proto-models/com/coralogix/blobset/v2/entity_metadata.d.ts +78 -0
  60. package/dist/proto-models/com/coralogix/blobset/v2/entity_metadata.js +464 -0
  61. package/dist/proto-models/com/coralogix/blobset/v2/entity_type.d.ts +9 -0
  62. package/dist/proto-models/com/coralogix/blobset/v2/entity_type.js +52 -0
  63. package/dist/proto-models/com/coralogix/blobset/v2/react_native.d.ts +54 -0
  64. package/dist/proto-models/com/coralogix/blobset/v2/react_native.js +318 -0
  65. package/dist/proto-models/com/coralogix/blobset/v2/s3_metadata.d.ts +30 -0
  66. package/dist/proto-models/com/coralogix/blobset/v2/s3_metadata.js +131 -0
  67. package/dist/proto-models/com/coralogix/rum/v2/analytics.js +9 -1
  68. package/dist/proto-models/com/coralogix/rum/v2/audit_log.js +6 -1
  69. package/dist/proto-models/com/coralogix/rum/v2/chunk.js +9 -1
  70. package/dist/proto-models/com/coralogix/rum/v2/file.js +9 -1
  71. package/dist/proto-models/com/coralogix/rum/v2/hide_errors.d.ts +44 -0
  72. package/dist/proto-models/com/coralogix/rum/v2/hide_errors.js +203 -0
  73. package/dist/proto-models/com/coralogix/rum/v2/release_entity_metadata.d.ts +78 -0
  74. package/dist/proto-models/com/coralogix/rum/v2/release_entity_metadata.js +464 -0
  75. package/dist/proto-models/com/coralogix/rum/v2/release_entity_type.d.ts +9 -0
  76. package/dist/proto-models/com/coralogix/rum/v2/release_entity_type.js +52 -0
  77. package/dist/proto-models/com/coralogix/rum/v2/rum_hide_errors_service.d.ts +198 -0
  78. package/dist/proto-models/com/coralogix/rum/v2/rum_hide_errors_service.js +522 -0
  79. package/dist/proto-models/com/coralogix/rum/v2/rum_react_native_source_map_service.js +6 -1
  80. package/dist/proto-models/com/coralogix/rum/v2/rum_saved_filters_service.d.ts +1 -47
  81. package/dist/proto-models/com/coralogix/rum/v2/rum_saved_filters_service.js +18 -153
  82. package/dist/proto-models/com/coralogix/rum/v2/rum_sdk_versions.d.ts +41 -0
  83. package/dist/proto-models/com/coralogix/rum/v2/rum_sdk_versions.js +225 -0
  84. package/dist/proto-models/com/coralogix/rum/v2/rum_service.d.ts +45 -0
  85. package/dist/proto-models/com/coralogix/rum/v2/rum_service.js +134 -6
  86. package/dist/proto-models/com/coralogix/rum/v2/rum_session_recording_service.js +7 -2
  87. package/dist/proto-models/com/coralogix/rum/v2/rum_settings.d.ts +45 -0
  88. package/dist/proto-models/com/coralogix/rum/v2/rum_settings.js +198 -0
  89. package/dist/proto-models/com/coralogix/rum/v2/rum_settings_service.d.ts +107 -0
  90. package/dist/proto-models/com/coralogix/rum/v2/rum_settings_service.js +219 -0
  91. package/dist/proto-models/com/coralogix/rum/v2/rum_snooze_errors_service.js +6 -1
  92. package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.d.ts +92 -0
  93. package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.js +266 -2
  94. package/dist/proto-models/com/coralogix/rum/v2/saved_filter.js +8 -3
  95. package/dist/proto-models/com/coralogix/rum/v2/snooze_errors.js +9 -1
  96. package/dist/proto-models/com/coralogix/rum/v2/source_code_file_mapping.js +6 -1
  97. package/dist/proto-models/com/coralogix/rum/v2/source_map_release.js +9 -1
  98. package/dist/proto-models/com/coralogix/rum/v2/template.js +9 -1
  99. package/dist/proto-models/google/protobuf/descriptor.d.ts +95 -95
  100. package/dist/proto-models/google/protobuf/descriptor.js +184 -176
  101. package/dist/services/{react-native-source-maps.service.d.ts → dsym.service.d.ts} +1 -1
  102. package/dist/services/dsym.service.js +36 -0
  103. package/dist/services/react-native.service.d.ts +3 -0
  104. package/dist/services/react-native.service.js +37 -0
  105. package/dist/services/source-maps.service.js +12 -14
  106. package/dist/utils/file-processor.utils.d.ts +12 -0
  107. package/dist/utils/file-processor.utils.js +196 -0
  108. package/dist/utils/shared.utils.d.ts +9 -0
  109. package/dist/utils/shared.utils.js +62 -0
  110. package/models/dsym-commands.model.ts +11 -0
  111. package/models/react-native-commands.model.ts +11 -0
  112. package/models/{commands.model.ts → source-maps-commands.model.ts} +3 -3
  113. package/package.json +2 -2
  114. package/proto-models/com/coralogix/blobset/v2/audit_log.ts +84 -0
  115. package/proto-models/com/coralogix/blobset/v2/blobset_query_service.ts +36 -0
  116. package/proto-models/com/coralogix/blobset/v2/blobset_service.ts +209 -0
  117. package/proto-models/com/coralogix/blobset/v2/dsym.ts +400 -0
  118. package/proto-models/com/coralogix/blobset/v2/entity_metadata.ts +543 -0
  119. package/proto-models/com/coralogix/blobset/v2/entity_type.ts +50 -0
  120. package/proto-models/com/coralogix/blobset/v2/react_native.ts +367 -0
  121. package/proto-models/com/coralogix/blobset/v2/s3_metadata.ts +154 -0
  122. package/proto-models/com/coralogix/rum/v2/analytics.ts +9 -0
  123. package/proto-models/com/coralogix/rum/v2/audit_log.ts +6 -0
  124. package/proto-models/com/coralogix/rum/v2/chunk.ts +9 -0
  125. package/proto-models/com/coralogix/rum/v2/file.ts +11 -2
  126. package/proto-models/com/coralogix/rum/v2/hide_errors.ts +234 -0
  127. package/proto-models/com/coralogix/rum/v2/release_entity_metadata.ts +543 -0
  128. package/proto-models/com/coralogix/rum/v2/release_entity_type.ts +50 -0
  129. package/proto-models/com/coralogix/rum/v2/rum_hide_errors_service.ts +605 -0
  130. package/proto-models/com/coralogix/rum/v2/rum_react_native_source_map_service.ts +6 -0
  131. package/proto-models/com/coralogix/rum/v2/rum_saved_filters_service.ts +18 -176
  132. package/proto-models/com/coralogix/rum/v2/rum_sdk_versions.ts +263 -0
  133. package/proto-models/com/coralogix/rum/v2/rum_service.ts +152 -4
  134. package/proto-models/com/coralogix/rum/v2/rum_session_recording_service.ts +6 -0
  135. package/proto-models/com/coralogix/rum/v2/rum_settings.ts +215 -0
  136. package/proto-models/com/coralogix/rum/v2/rum_settings_service.ts +266 -0
  137. package/proto-models/com/coralogix/rum/v2/rum_snooze_errors_service.ts +6 -0
  138. package/proto-models/com/coralogix/rum/v2/rum_source_map_service.ts +310 -0
  139. package/proto-models/com/coralogix/rum/v2/saved_filter.ts +8 -2
  140. package/proto-models/com/coralogix/rum/v2/snooze_errors.ts +9 -0
  141. package/proto-models/com/coralogix/rum/v2/source_code_file_mapping.ts +6 -0
  142. package/proto-models/com/coralogix/rum/v2/source_map_release.ts +9 -0
  143. package/proto-models/com/coralogix/rum/v2/template.ts +9 -0
  144. package/proto-models/google/protobuf/descriptor.ts +391 -272
  145. package/protofetch.lock +21 -2
  146. package/protofetch.toml +6 -1
  147. package/protos/com/coralogix/blobset/v2/audit_log.proto +13 -0
  148. package/protos/com/coralogix/blobset/v2/blobset_query_service.proto +12 -0
  149. package/protos/com/coralogix/blobset/v2/blobset_service.proto +18 -0
  150. package/protos/com/coralogix/blobset/v2/dsym.proto +19 -0
  151. package/protos/com/coralogix/blobset/v2/entity_metadata.proto +36 -0
  152. package/protos/com/coralogix/blobset/v2/entity_type.proto +10 -0
  153. package/protos/com/coralogix/blobset/v2/react_native.proto +23 -0
  154. package/protos/com/coralogix/blobset/v2/s3_metadata.proto +14 -0
  155. package/protos/com/coralogix/rum/v2/hide_errors.proto +19 -0
  156. package/protos/com/coralogix/rum/v2/release_entity_metadata.proto +35 -0
  157. package/protos/com/coralogix/rum/v2/release_entity_type.proto +10 -0
  158. package/protos/com/coralogix/rum/v2/rum_hide_errors_service.proto +42 -0
  159. package/protos/com/coralogix/rum/v2/rum_saved_filters_service.proto +1 -12
  160. package/protos/com/coralogix/rum/v2/rum_sdk_versions.proto +16 -0
  161. package/protos/com/coralogix/rum/v2/rum_service.proto +10 -0
  162. package/protos/com/coralogix/rum/v2/rum_settings.proto +26 -0
  163. package/protos/com/coralogix/rum/v2/rum_settings_service.proto +21 -0
  164. package/protos/com/coralogix/rum/v2/rum_source_map_service.proto +19 -0
  165. package/protoset.bin +0 -0
  166. package/services/dsym.service.ts +33 -0
  167. package/services/react-native.service.ts +34 -0
  168. package/services/source-maps.service.ts +12 -14
  169. package/utils/file-processor.utils.ts +176 -0
  170. package/utils/shared.utils.ts +52 -0
  171. package/cli/commands/index.ts +0 -8
  172. package/dist/api/rum-api.js +0 -104
  173. package/dist/cli/commands/delete-source-maps-command.js +0 -43
  174. package/dist/cli/commands/index.js +0 -9
  175. package/dist/cli/commands/update-source-maps-command.js +0 -48
  176. package/dist/cli/commands/upload-react-native-source-maps-command.js +0 -47
  177. package/dist/cli/commands/upload-source-maps-command.js +0 -47
  178. package/dist/models/commands.model.js +0 -3
  179. package/dist/services/react-native-source-maps.service.js +0 -42
  180. package/dist/utils/index.d.ts +0 -6
  181. package/dist/utils/index.js +0 -115
  182. package/services/react-native-source-maps.service.ts +0 -40
  183. package/utils/index.ts +0 -93
  184. /package/dist/cli/commands/{upload-react-native-source-maps-command.d.ts → react-native/upload-react-native-source-maps-command.d.ts} +0 -0
  185. /package/dist/cli/commands/{delete-source-maps-command.d.ts → source-maps/delete-source-maps-command.d.ts} +0 -0
  186. /package/dist/cli/commands/{update-source-maps-command.d.ts → source-maps/update-source-maps-command.d.ts} +0 -0
  187. /package/dist/cli/commands/{upload-source-maps-command.d.ts → source-maps/upload-source-maps-command.d.ts} +0 -0
@@ -10,9 +10,9 @@ export interface FileDescriptorSet {
10
10
  /** Describes a complete .proto file. */
11
11
  export interface FileDescriptorProto {
12
12
  /** file name, relative to root of source tree */
13
- name: string;
13
+ name?: string | undefined;
14
14
  /** e.g. "foo", "foo.bar", etc. */
15
- package: string;
15
+ package?: string | undefined;
16
16
  /** Names of files imported by this file. */
17
17
  dependency: string[];
18
18
  /** Indexes of the public imported files in the dependency list above. */
@@ -27,34 +27,34 @@ export interface FileDescriptorProto {
27
27
  enumType: EnumDescriptorProto[];
28
28
  service: ServiceDescriptorProto[];
29
29
  extension: FieldDescriptorProto[];
30
- options: FileOptions | undefined;
30
+ options?: FileOptions | undefined;
31
31
  /**
32
32
  * This field contains optional information about the original source code.
33
33
  * You may safely remove this entire field without harming runtime
34
34
  * functionality of the descriptors -- the information is needed only by
35
35
  * development tools.
36
36
  */
37
- sourceCodeInfo: SourceCodeInfo | undefined;
37
+ sourceCodeInfo?: SourceCodeInfo | undefined;
38
38
  /**
39
39
  * The syntax of the proto file.
40
40
  * The supported values are "proto2", "proto3", and "editions".
41
41
  *
42
42
  * If `edition` is present, this value must be "editions".
43
43
  */
44
- syntax: string;
44
+ syntax?: string | undefined;
45
45
  /** The edition of the proto file, which is an opaque string. */
46
- edition: string;
46
+ edition?: string | undefined;
47
47
  }
48
48
  /** Describes a message type. */
49
49
  export interface DescriptorProto {
50
- name: string;
50
+ name?: string | undefined;
51
51
  field: FieldDescriptorProto[];
52
52
  extension: FieldDescriptorProto[];
53
53
  nestedType: DescriptorProto[];
54
54
  enumType: EnumDescriptorProto[];
55
55
  extensionRange: DescriptorProto_ExtensionRange[];
56
56
  oneofDecl: OneofDescriptorProto[];
57
- options: MessageOptions | undefined;
57
+ options?: MessageOptions | undefined;
58
58
  reservedRange: DescriptorProto_ReservedRange[];
59
59
  /**
60
60
  * Reserved field names, which may not be used by fields in the same message.
@@ -64,10 +64,10 @@ export interface DescriptorProto {
64
64
  }
65
65
  export interface DescriptorProto_ExtensionRange {
66
66
  /** Inclusive. */
67
- start: number;
67
+ start?: number | undefined;
68
68
  /** Exclusive. */
69
- end: number;
70
- options: ExtensionRangeOptions | undefined;
69
+ end?: number | undefined;
70
+ options?: ExtensionRangeOptions | undefined;
71
71
  }
72
72
  /**
73
73
  * Range of reserved tag numbers. Reserved tag numbers may not be used by
@@ -76,9 +76,9 @@ export interface DescriptorProto_ExtensionRange {
76
76
  */
77
77
  export interface DescriptorProto_ReservedRange {
78
78
  /** Inclusive. */
79
- start: number;
79
+ start?: number | undefined;
80
80
  /** Exclusive. */
81
- end: number;
81
+ end?: number | undefined;
82
82
  }
83
83
  export interface ExtensionRangeOptions {
84
84
  /** The parser stores options it doesn't recognize here. See above. */
@@ -86,14 +86,14 @@ export interface ExtensionRangeOptions {
86
86
  }
87
87
  /** Describes a field within a message. */
88
88
  export interface FieldDescriptorProto {
89
- name: string;
90
- number: number;
91
- label: FieldDescriptorProto_Label;
89
+ name?: string | undefined;
90
+ number?: number | undefined;
91
+ label?: FieldDescriptorProto_Label | undefined;
92
92
  /**
93
93
  * If type_name is set, this need not be set. If both this and type_name
94
94
  * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
95
95
  */
96
- type: FieldDescriptorProto_Type;
96
+ type?: FieldDescriptorProto_Type | undefined;
97
97
  /**
98
98
  * For message and enum types, this is the name of the type. If the name
99
99
  * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
@@ -101,32 +101,32 @@ export interface FieldDescriptorProto {
101
101
  * message are searched, then within the parent, on up to the root
102
102
  * namespace).
103
103
  */
104
- typeName: string;
104
+ typeName?: string | undefined;
105
105
  /**
106
106
  * For extensions, this is the name of the type being extended. It is
107
107
  * resolved in the same manner as type_name.
108
108
  */
109
- extendee: string;
109
+ extendee?: string | undefined;
110
110
  /**
111
111
  * For numeric types, contains the original text representation of the value.
112
112
  * For booleans, "true" or "false".
113
113
  * For strings, contains the default text contents (not escaped in any way).
114
114
  * For bytes, contains the C escaped value. All bytes >= 128 are escaped.
115
115
  */
116
- defaultValue: string;
116
+ defaultValue?: string | undefined;
117
117
  /**
118
118
  * If set, gives the index of a oneof in the containing type's oneof_decl
119
119
  * list. This field is a member of that oneof.
120
120
  */
121
- oneofIndex: number;
121
+ oneofIndex?: number | undefined;
122
122
  /**
123
123
  * JSON name of this field. The value is set by protocol compiler. If the
124
124
  * user has set a "json_name" option on this field, that option's value
125
125
  * will be used. Otherwise, it's deduced from the field's name by converting
126
126
  * it to camelCase.
127
127
  */
128
- jsonName: string;
129
- options: FieldOptions | undefined;
128
+ jsonName?: string | undefined;
129
+ options?: FieldOptions | undefined;
130
130
  /**
131
131
  * If true, this is a proto3 "optional". When a proto3 field is optional, it
132
132
  * tracks presence regardless of field type.
@@ -150,7 +150,7 @@ export interface FieldDescriptorProto {
150
150
  * Proto2 optional fields do not set this flag, because they already indicate
151
151
  * optional with `LABEL_OPTIONAL`.
152
152
  */
153
- proto3Optional: boolean;
153
+ proto3Optional?: boolean | undefined;
154
154
  }
155
155
  export declare enum FieldDescriptorProto_Type {
156
156
  /**
@@ -206,14 +206,14 @@ export declare function fieldDescriptorProto_LabelFromJSON(object: any): FieldDe
206
206
  export declare function fieldDescriptorProto_LabelToJSON(object: FieldDescriptorProto_Label): string;
207
207
  /** Describes a oneof. */
208
208
  export interface OneofDescriptorProto {
209
- name: string;
210
- options: OneofOptions | undefined;
209
+ name?: string | undefined;
210
+ options?: OneofOptions | undefined;
211
211
  }
212
212
  /** Describes an enum type. */
213
213
  export interface EnumDescriptorProto {
214
- name: string;
214
+ name?: string | undefined;
215
215
  value: EnumValueDescriptorProto[];
216
- options: EnumOptions | undefined;
216
+ options?: EnumOptions | undefined;
217
217
  /**
218
218
  * Range of reserved numeric values. Reserved numeric values may not be used
219
219
  * by enum values in the same enum declaration. Reserved ranges may not
@@ -236,36 +236,36 @@ export interface EnumDescriptorProto {
236
236
  */
237
237
  export interface EnumDescriptorProto_EnumReservedRange {
238
238
  /** Inclusive. */
239
- start: number;
239
+ start?: number | undefined;
240
240
  /** Inclusive. */
241
- end: number;
241
+ end?: number | undefined;
242
242
  }
243
243
  /** Describes a value within an enum. */
244
244
  export interface EnumValueDescriptorProto {
245
- name: string;
246
- number: number;
247
- options: EnumValueOptions | undefined;
245
+ name?: string | undefined;
246
+ number?: number | undefined;
247
+ options?: EnumValueOptions | undefined;
248
248
  }
249
249
  /** Describes a service. */
250
250
  export interface ServiceDescriptorProto {
251
- name: string;
251
+ name?: string | undefined;
252
252
  method: MethodDescriptorProto[];
253
- options: ServiceOptions | undefined;
253
+ options?: ServiceOptions | undefined;
254
254
  }
255
255
  /** Describes a method of a service. */
256
256
  export interface MethodDescriptorProto {
257
- name: string;
257
+ name?: string | undefined;
258
258
  /**
259
259
  * Input and output type names. These are resolved in the same way as
260
260
  * FieldDescriptorProto.type_name, but must refer to a message type.
261
261
  */
262
- inputType: string;
263
- outputType: string;
264
- options: MethodOptions | undefined;
262
+ inputType?: string | undefined;
263
+ outputType?: string | undefined;
264
+ options?: MethodOptions | undefined;
265
265
  /** Identifies if client streams multiple client messages */
266
- clientStreaming: boolean;
266
+ clientStreaming?: boolean | undefined;
267
267
  /** Identifies if server streams multiple server messages */
268
- serverStreaming: boolean;
268
+ serverStreaming?: boolean | undefined;
269
269
  }
270
270
  export interface FileOptions {
271
271
  /**
@@ -274,7 +274,7 @@ export interface FileOptions {
274
274
  * inappropriate because proto packages do not normally start with backwards
275
275
  * domain names.
276
276
  */
277
- javaPackage: string;
277
+ javaPackage?: string | undefined;
278
278
  /**
279
279
  * Controls the name of the wrapper Java class generated for the .proto file.
280
280
  * That class will always contain the .proto file's getDescriptor() method as
@@ -282,7 +282,7 @@ export interface FileOptions {
282
282
  * If java_multiple_files is disabled, then all the other classes from the
283
283
  * .proto file will be nested inside the single wrapper outer class.
284
284
  */
285
- javaOuterClassname: string;
285
+ javaOuterClassname?: string | undefined;
286
286
  /**
287
287
  * If enabled, then the Java code generator will generate a separate .java
288
288
  * file for each top-level message, enum, and service defined in the .proto
@@ -291,13 +291,13 @@ export interface FileOptions {
291
291
  * generated to contain the file's getDescriptor() method as well as any
292
292
  * top-level extensions defined in the file.
293
293
  */
294
- javaMultipleFiles: boolean;
294
+ javaMultipleFiles?: boolean | undefined;
295
295
  /**
296
296
  * This option does nothing.
297
297
  *
298
298
  * @deprecated
299
299
  */
300
- javaGenerateEqualsAndHash: boolean;
300
+ javaGenerateEqualsAndHash?: boolean | undefined;
301
301
  /**
302
302
  * If set true, then the Java2 code generator will generate code that
303
303
  * throws an exception whenever an attempt is made to assign a non-UTF-8
@@ -306,8 +306,8 @@ export interface FileOptions {
306
306
  * However, an extension field still accepts non-UTF-8 byte sequences.
307
307
  * This option has no effect on when used with the lite runtime.
308
308
  */
309
- javaStringCheckUtf8: boolean;
310
- optimizeFor: FileOptions_OptimizeMode;
309
+ javaStringCheckUtf8?: boolean | undefined;
310
+ optimizeFor?: FileOptions_OptimizeMode | undefined;
311
311
  /**
312
312
  * Sets the Go package where structs generated from this .proto will be
313
313
  * placed. If omitted, the Go package will be derived from the following:
@@ -315,7 +315,7 @@ export interface FileOptions {
315
315
  * - Otherwise, the package statement in the .proto file, if present.
316
316
  * - Otherwise, the basename of the .proto file, without extension.
317
317
  */
318
- goPackage: string;
318
+ goPackage?: string | undefined;
319
319
  /**
320
320
  * Should generic services be generated in each language? "Generic" services
321
321
  * are not specific to any particular RPC system. They are generated by the
@@ -328,59 +328,59 @@ export interface FileOptions {
328
328
  * these default to false. Old code which depends on generic services should
329
329
  * explicitly set them to true.
330
330
  */
331
- ccGenericServices: boolean;
332
- javaGenericServices: boolean;
333
- pyGenericServices: boolean;
334
- phpGenericServices: boolean;
331
+ ccGenericServices?: boolean | undefined;
332
+ javaGenericServices?: boolean | undefined;
333
+ pyGenericServices?: boolean | undefined;
334
+ phpGenericServices?: boolean | undefined;
335
335
  /**
336
336
  * Is this file deprecated?
337
337
  * Depending on the target platform, this can emit Deprecated annotations
338
338
  * for everything in the file, or it will be completely ignored; in the very
339
339
  * least, this is a formalization for deprecating files.
340
340
  */
341
- deprecated: boolean;
341
+ deprecated?: boolean | undefined;
342
342
  /**
343
343
  * Enables the use of arenas for the proto messages in this file. This applies
344
344
  * only to generated classes for C++.
345
345
  */
346
- ccEnableArenas: boolean;
346
+ ccEnableArenas?: boolean | undefined;
347
347
  /**
348
348
  * Sets the objective c class prefix which is prepended to all objective c
349
349
  * generated classes from this .proto. There is no default.
350
350
  */
351
- objcClassPrefix: string;
351
+ objcClassPrefix?: string | undefined;
352
352
  /** Namespace for generated classes; defaults to the package. */
353
- csharpNamespace: string;
353
+ csharpNamespace?: string | undefined;
354
354
  /**
355
355
  * By default Swift generators will take the proto package and CamelCase it
356
356
  * replacing '.' with underscore and use that to prefix the types/symbols
357
357
  * defined. When this options is provided, they will use this value instead
358
358
  * to prefix the types/symbols defined.
359
359
  */
360
- swiftPrefix: string;
360
+ swiftPrefix?: string | undefined;
361
361
  /**
362
362
  * Sets the php class prefix which is prepended to all php generated classes
363
363
  * from this .proto. Default is empty.
364
364
  */
365
- phpClassPrefix: string;
365
+ phpClassPrefix?: string | undefined;
366
366
  /**
367
367
  * Use this option to change the namespace of php generated classes. Default
368
368
  * is empty. When this option is empty, the package name will be used for
369
369
  * determining the namespace.
370
370
  */
371
- phpNamespace: string;
371
+ phpNamespace?: string | undefined;
372
372
  /**
373
373
  * Use this option to change the namespace of php generated metadata classes.
374
374
  * Default is empty. When this option is empty, the proto file name will be
375
375
  * used for determining the namespace.
376
376
  */
377
- phpMetadataNamespace: string;
377
+ phpMetadataNamespace?: string | undefined;
378
378
  /**
379
379
  * Use this option to change the package of ruby generated classes. Default
380
380
  * is empty. When this option is not set, the package name will be used for
381
381
  * determining the ruby package.
382
382
  */
383
- rubyPackage: string;
383
+ rubyPackage?: string | undefined;
384
384
  /**
385
385
  * The parser stores options it doesn't recognize here.
386
386
  * See the documentation for the "Options" section above.
@@ -419,20 +419,20 @@ export interface MessageOptions {
419
419
  * Because this is an option, the above two restrictions are not enforced by
420
420
  * the protocol compiler.
421
421
  */
422
- messageSetWireFormat: boolean;
422
+ messageSetWireFormat?: boolean | undefined;
423
423
  /**
424
424
  * Disables the generation of the standard "descriptor()" accessor, which can
425
425
  * conflict with a field of the same name. This is meant to make migration
426
426
  * from proto1 easier; new code should avoid fields named "descriptor".
427
427
  */
428
- noStandardDescriptorAccessor: boolean;
428
+ noStandardDescriptorAccessor?: boolean | undefined;
429
429
  /**
430
430
  * Is this message deprecated?
431
431
  * Depending on the target platform, this can emit Deprecated annotations
432
432
  * for the message, or it will be completely ignored; in the very least,
433
433
  * this is a formalization for deprecating messages.
434
434
  */
435
- deprecated: boolean;
435
+ deprecated?: boolean | undefined;
436
436
  /**
437
437
  * NOTE: Do not set the option in .proto files. Always use the maps syntax
438
438
  * instead. The option should only be implicitly set by the proto compiler
@@ -456,7 +456,7 @@ export interface MessageOptions {
456
456
  * The reflection APIs in such implementations still need to work as
457
457
  * if the field is a repeated message field.
458
458
  */
459
- mapEntry: boolean;
459
+ mapEntry?: boolean | undefined;
460
460
  /**
461
461
  * Enable the legacy handling of JSON field name conflicts. This lowercases
462
462
  * and strips underscored from the fields before comparison in proto3 only.
@@ -471,7 +471,7 @@ export interface MessageOptions {
471
471
  *
472
472
  * @deprecated
473
473
  */
474
- deprecatedLegacyJsonFieldConflicts: boolean;
474
+ deprecatedLegacyJsonFieldConflicts?: boolean | undefined;
475
475
  /** The parser stores options it doesn't recognize here. See above. */
476
476
  uninterpretedOption: UninterpretedOption[];
477
477
  }
@@ -482,7 +482,7 @@ export interface FieldOptions {
482
482
  * options below. This option is not yet implemented in the open source
483
483
  * release -- sorry, we'll try to include it in a future version!
484
484
  */
485
- ctype: FieldOptions_CType;
485
+ ctype?: FieldOptions_CType | undefined;
486
486
  /**
487
487
  * The packed option can be enabled for repeated primitive fields to enable
488
488
  * a more efficient representation on the wire. Rather than repeatedly
@@ -490,7 +490,7 @@ export interface FieldOptions {
490
490
  * a single length-delimited blob. In proto3, only explicit setting it to
491
491
  * false will avoid using packed encoding.
492
492
  */
493
- packed: boolean;
493
+ packed?: boolean | undefined;
494
494
  /**
495
495
  * The jstype option determines the JavaScript type used for values of the
496
496
  * field. The option is permitted only for 64 bit integral and fixed types
@@ -504,7 +504,7 @@ export interface FieldOptions {
504
504
  * This option is an enum to permit additional types to be added, e.g.
505
505
  * goog.math.Integer.
506
506
  */
507
- jstype: FieldOptions_JSType;
507
+ jstype?: FieldOptions_JSType | undefined;
508
508
  /**
509
509
  * Should this field be parsed lazily? Lazy applies only to message-type
510
510
  * fields. It means that when the outer message is initially parsed, the
@@ -537,29 +537,29 @@ export interface FieldOptions {
537
537
  * As of May 2022, lazy verifies the contents of the byte stream during
538
538
  * parsing. An invalid byte stream will cause the overall parsing to fail.
539
539
  */
540
- lazy: boolean;
540
+ lazy?: boolean | undefined;
541
541
  /**
542
542
  * unverified_lazy does no correctness checks on the byte stream. This should
543
543
  * only be used where lazy with verification is prohibitive for performance
544
544
  * reasons.
545
545
  */
546
- unverifiedLazy: boolean;
546
+ unverifiedLazy?: boolean | undefined;
547
547
  /**
548
548
  * Is this field deprecated?
549
549
  * Depending on the target platform, this can emit Deprecated annotations
550
550
  * for accessors, or it will be completely ignored; in the very least, this
551
551
  * is a formalization for deprecating fields.
552
552
  */
553
- deprecated: boolean;
553
+ deprecated?: boolean | undefined;
554
554
  /** For Google-internal migration only. Do not use. */
555
- weak: boolean;
555
+ weak?: boolean | undefined;
556
556
  /**
557
557
  * Indicate that the field value should not be printed out when using debug
558
558
  * formats, e.g. when the field contains sensitive credentials.
559
559
  */
560
- debugRedact: boolean;
561
- retention: FieldOptions_OptionRetention;
562
- target: FieldOptions_OptionTargetType;
560
+ debugRedact?: boolean | undefined;
561
+ retention?: FieldOptions_OptionRetention | undefined;
562
+ target?: FieldOptions_OptionTargetType | undefined;
563
563
  /** The parser stores options it doesn't recognize here. See above. */
564
564
  uninterpretedOption: UninterpretedOption[];
565
565
  }
@@ -622,14 +622,14 @@ export interface EnumOptions {
622
622
  * Set this option to true to allow mapping different tag names to the same
623
623
  * value.
624
624
  */
625
- allowAlias: boolean;
625
+ allowAlias?: boolean | undefined;
626
626
  /**
627
627
  * Is this enum deprecated?
628
628
  * Depending on the target platform, this can emit Deprecated annotations
629
629
  * for the enum, or it will be completely ignored; in the very least, this
630
630
  * is a formalization for deprecating enums.
631
631
  */
632
- deprecated: boolean;
632
+ deprecated?: boolean | undefined;
633
633
  /**
634
634
  * Enable the legacy handling of JSON field name conflicts. This lowercases
635
635
  * and strips underscored from the fields before comparison in proto3 only.
@@ -640,7 +640,7 @@ export interface EnumOptions {
640
640
  *
641
641
  * @deprecated
642
642
  */
643
- deprecatedLegacyJsonFieldConflicts: boolean;
643
+ deprecatedLegacyJsonFieldConflicts?: boolean | undefined;
644
644
  /** The parser stores options it doesn't recognize here. See above. */
645
645
  uninterpretedOption: UninterpretedOption[];
646
646
  }
@@ -651,7 +651,7 @@ export interface EnumValueOptions {
651
651
  * for the enum value, or it will be completely ignored; in the very least,
652
652
  * this is a formalization for deprecating enum values.
653
653
  */
654
- deprecated: boolean;
654
+ deprecated?: boolean | undefined;
655
655
  /** The parser stores options it doesn't recognize here. See above. */
656
656
  uninterpretedOption: UninterpretedOption[];
657
657
  }
@@ -662,7 +662,7 @@ export interface ServiceOptions {
662
662
  * for the service, or it will be completely ignored; in the very least,
663
663
  * this is a formalization for deprecating services.
664
664
  */
665
- deprecated: boolean;
665
+ deprecated?: boolean | undefined;
666
666
  /** The parser stores options it doesn't recognize here. See above. */
667
667
  uninterpretedOption: UninterpretedOption[];
668
668
  }
@@ -673,8 +673,8 @@ export interface MethodOptions {
673
673
  * for the method, or it will be completely ignored; in the very least,
674
674
  * this is a formalization for deprecating methods.
675
675
  */
676
- deprecated: boolean;
677
- idempotencyLevel: MethodOptions_IdempotencyLevel;
676
+ deprecated?: boolean | undefined;
677
+ idempotencyLevel?: MethodOptions_IdempotencyLevel | undefined;
678
678
  /** The parser stores options it doesn't recognize here. See above. */
679
679
  uninterpretedOption: UninterpretedOption[];
680
680
  }
@@ -706,12 +706,12 @@ export interface UninterpretedOption {
706
706
  * The value of the uninterpreted option, in whatever type the tokenizer
707
707
  * identified it as during parsing. Exactly one of these should be set.
708
708
  */
709
- identifierValue: string;
710
- positiveIntValue: number;
711
- negativeIntValue: number;
712
- doubleValue: number;
713
- stringValue: Uint8Array;
714
- aggregateValue: string;
709
+ identifierValue?: string | undefined;
710
+ positiveIntValue?: number | undefined;
711
+ negativeIntValue?: number | undefined;
712
+ doubleValue?: number | undefined;
713
+ stringValue?: Uint8Array | undefined;
714
+ aggregateValue?: string | undefined;
715
715
  }
716
716
  /**
717
717
  * The name of the uninterpreted option. Each string represents a segment in
@@ -860,8 +860,8 @@ export interface SourceCodeInfo_Location {
860
860
  *
861
861
  * // ignored detached comments.
862
862
  */
863
- leadingComments: string;
864
- trailingComments: string;
863
+ leadingComments?: string | undefined;
864
+ trailingComments?: string | undefined;
865
865
  leadingDetachedComments: string[];
866
866
  }
867
867
  /**
@@ -883,19 +883,19 @@ export interface GeneratedCodeInfo_Annotation {
883
883
  */
884
884
  path: number[];
885
885
  /** Identifies the filesystem path to the original source .proto. */
886
- sourceFile: string;
886
+ sourceFile?: string | undefined;
887
887
  /**
888
888
  * Identifies the starting offset in bytes in the generated code
889
889
  * that relates to the identified object.
890
890
  */
891
- begin: number;
891
+ begin?: number | undefined;
892
892
  /**
893
893
  * Identifies the ending offset in bytes in the generated code that
894
894
  * relates to the identified object. The end offset should be one past
895
895
  * the last relevant byte (so the length of the text = end - begin).
896
896
  */
897
- end: number;
898
- semantic: GeneratedCodeInfo_Annotation_Semantic;
897
+ end?: number | undefined;
898
+ semantic?: GeneratedCodeInfo_Annotation_Semantic | undefined;
899
899
  }
900
900
  /**
901
901
  * Represents the identified object's effect on the element in the original