@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.
- package/README.md +26 -7
- package/api/client/client-factory.ts +26 -0
- package/api/client/request-builder.ts +122 -0
- package/api/dsym.api.ts +61 -0
- package/api/react-native.api.ts +67 -0
- package/api/{rum-api.ts → source-maps.api.ts} +14 -22
- package/cli/commands/dsym/index.ts +5 -0
- package/cli/commands/dsym/upload-dsym-command.ts +36 -0
- package/cli/commands/react-native/index.ts +5 -0
- package/cli/commands/{upload-react-native-source-maps-command.ts → react-native/upload-react-native-source-maps-command.ts} +14 -11
- package/cli/commands/{delete-source-maps-command.ts → source-maps/delete-source-maps-command.ts} +7 -9
- package/cli/commands/source-maps/index.ts +7 -0
- package/cli/commands/{update-source-maps-command.ts → source-maps/update-source-maps-command.ts} +7 -9
- package/cli/commands/{upload-source-maps-command.ts → source-maps/upload-source-maps-command.ts} +7 -9
- package/cli/rum-cli.ts +15 -6
- package/config/config.ts +10 -4
- package/consts/consts.ts +2 -0
- package/dist/api/client/client-factory.d.ts +355 -0
- package/dist/api/client/client-factory.js +31 -0
- package/dist/api/client/request-builder.d.ts +33 -0
- package/dist/api/client/request-builder.js +58 -0
- package/dist/api/dsym.api.d.ts +4 -0
- package/dist/api/dsym.api.js +50 -0
- package/dist/api/react-native.api.d.ts +4 -0
- package/dist/api/react-native.api.js +50 -0
- package/dist/api/{rum-api.d.ts → source-maps.api.d.ts} +2 -2
- package/dist/api/source-maps.api.js +97 -0
- package/dist/cli/commands/dsym/index.d.ts +4 -0
- package/dist/cli/commands/dsym/index.js +6 -0
- package/dist/cli/commands/dsym/upload-dsym-command.d.ts +2 -0
- package/dist/cli/commands/dsym/upload-dsym-command.js +45 -0
- package/dist/cli/commands/react-native/index.d.ts +4 -0
- package/dist/cli/commands/react-native/index.js +6 -0
- package/dist/cli/commands/react-native/upload-react-native-source-maps-command.js +51 -0
- package/dist/cli/commands/source-maps/delete-source-maps-command.js +41 -0
- package/dist/cli/commands/{index.d.ts → source-maps/index.d.ts} +2 -3
- package/dist/cli/commands/source-maps/index.js +8 -0
- package/dist/cli/commands/source-maps/update-source-maps-command.js +46 -0
- package/dist/cli/commands/source-maps/upload-source-maps-command.js +45 -0
- package/dist/cli/rum-cli.js +11 -7
- package/dist/config/config.d.ts +5 -2
- package/dist/config/config.js +6 -3
- package/dist/consts/consts.d.ts +1 -0
- package/dist/consts/consts.js +3 -2
- package/dist/models/dsym-commands.model.d.ts +11 -0
- package/dist/models/dsym-commands.model.js +3 -0
- package/dist/models/react-native-commands.model.d.ts +11 -0
- package/dist/models/react-native-commands.model.js +3 -0
- package/dist/models/{commands.model.d.ts → source-maps-commands.model.d.ts} +3 -3
- package/dist/models/source-maps-commands.model.js +3 -0
- package/dist/proto-models/com/coralogix/blobset/v2/audit_log.d.ts +24 -0
- package/dist/proto-models/com/coralogix/blobset/v2/audit_log.js +69 -0
- package/dist/proto-models/com/coralogix/blobset/v2/blobset_query_service.d.ts +111 -0
- package/dist/proto-models/com/coralogix/blobset/v2/blobset_query_service.js +36 -0
- package/dist/proto-models/com/coralogix/blobset/v2/blobset_service.d.ts +67 -0
- package/dist/proto-models/com/coralogix/blobset/v2/blobset_service.js +179 -0
- package/dist/proto-models/com/coralogix/blobset/v2/dsym.d.ts +58 -0
- package/dist/proto-models/com/coralogix/blobset/v2/dsym.js +336 -0
- package/dist/proto-models/com/coralogix/blobset/v2/entity_metadata.d.ts +78 -0
- package/dist/proto-models/com/coralogix/blobset/v2/entity_metadata.js +464 -0
- package/dist/proto-models/com/coralogix/blobset/v2/entity_type.d.ts +9 -0
- package/dist/proto-models/com/coralogix/blobset/v2/entity_type.js +52 -0
- package/dist/proto-models/com/coralogix/blobset/v2/react_native.d.ts +54 -0
- package/dist/proto-models/com/coralogix/blobset/v2/react_native.js +318 -0
- package/dist/proto-models/com/coralogix/blobset/v2/s3_metadata.d.ts +30 -0
- package/dist/proto-models/com/coralogix/blobset/v2/s3_metadata.js +131 -0
- package/dist/proto-models/com/coralogix/rum/v2/analytics.js +9 -1
- package/dist/proto-models/com/coralogix/rum/v2/audit_log.js +6 -1
- package/dist/proto-models/com/coralogix/rum/v2/chunk.js +9 -1
- package/dist/proto-models/com/coralogix/rum/v2/file.js +9 -1
- package/dist/proto-models/com/coralogix/rum/v2/hide_errors.d.ts +44 -0
- package/dist/proto-models/com/coralogix/rum/v2/hide_errors.js +203 -0
- package/dist/proto-models/com/coralogix/rum/v2/release_entity_metadata.d.ts +78 -0
- package/dist/proto-models/com/coralogix/rum/v2/release_entity_metadata.js +464 -0
- package/dist/proto-models/com/coralogix/rum/v2/release_entity_type.d.ts +9 -0
- package/dist/proto-models/com/coralogix/rum/v2/release_entity_type.js +52 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_hide_errors_service.d.ts +198 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_hide_errors_service.js +522 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_react_native_source_map_service.js +6 -1
- package/dist/proto-models/com/coralogix/rum/v2/rum_saved_filters_service.d.ts +1 -47
- package/dist/proto-models/com/coralogix/rum/v2/rum_saved_filters_service.js +18 -153
- package/dist/proto-models/com/coralogix/rum/v2/rum_sdk_versions.d.ts +41 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_sdk_versions.js +225 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.d.ts +45 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.js +134 -6
- package/dist/proto-models/com/coralogix/rum/v2/rum_session_recording_service.js +7 -2
- package/dist/proto-models/com/coralogix/rum/v2/rum_settings.d.ts +45 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_settings.js +198 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_settings_service.d.ts +107 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_settings_service.js +219 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_snooze_errors_service.js +6 -1
- package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.d.ts +92 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.js +266 -2
- package/dist/proto-models/com/coralogix/rum/v2/saved_filter.js +8 -3
- package/dist/proto-models/com/coralogix/rum/v2/snooze_errors.js +9 -1
- package/dist/proto-models/com/coralogix/rum/v2/source_code_file_mapping.js +6 -1
- package/dist/proto-models/com/coralogix/rum/v2/source_map_release.js +9 -1
- package/dist/proto-models/com/coralogix/rum/v2/template.js +9 -1
- package/dist/proto-models/google/protobuf/descriptor.d.ts +95 -95
- package/dist/proto-models/google/protobuf/descriptor.js +184 -176
- package/dist/services/{react-native-source-maps.service.d.ts → dsym.service.d.ts} +1 -1
- package/dist/services/dsym.service.js +36 -0
- package/dist/services/react-native.service.d.ts +3 -0
- package/dist/services/react-native.service.js +37 -0
- package/dist/services/source-maps.service.js +12 -14
- package/dist/utils/file-processor.utils.d.ts +12 -0
- package/dist/utils/file-processor.utils.js +196 -0
- package/dist/utils/shared.utils.d.ts +9 -0
- package/dist/utils/shared.utils.js +62 -0
- package/models/dsym-commands.model.ts +11 -0
- package/models/react-native-commands.model.ts +11 -0
- package/models/{commands.model.ts → source-maps-commands.model.ts} +3 -3
- package/package.json +2 -2
- package/proto-models/com/coralogix/blobset/v2/audit_log.ts +84 -0
- package/proto-models/com/coralogix/blobset/v2/blobset_query_service.ts +36 -0
- package/proto-models/com/coralogix/blobset/v2/blobset_service.ts +209 -0
- package/proto-models/com/coralogix/blobset/v2/dsym.ts +400 -0
- package/proto-models/com/coralogix/blobset/v2/entity_metadata.ts +543 -0
- package/proto-models/com/coralogix/blobset/v2/entity_type.ts +50 -0
- package/proto-models/com/coralogix/blobset/v2/react_native.ts +367 -0
- package/proto-models/com/coralogix/blobset/v2/s3_metadata.ts +154 -0
- package/proto-models/com/coralogix/rum/v2/analytics.ts +9 -0
- package/proto-models/com/coralogix/rum/v2/audit_log.ts +6 -0
- package/proto-models/com/coralogix/rum/v2/chunk.ts +9 -0
- package/proto-models/com/coralogix/rum/v2/file.ts +11 -2
- package/proto-models/com/coralogix/rum/v2/hide_errors.ts +234 -0
- package/proto-models/com/coralogix/rum/v2/release_entity_metadata.ts +543 -0
- package/proto-models/com/coralogix/rum/v2/release_entity_type.ts +50 -0
- package/proto-models/com/coralogix/rum/v2/rum_hide_errors_service.ts +605 -0
- package/proto-models/com/coralogix/rum/v2/rum_react_native_source_map_service.ts +6 -0
- package/proto-models/com/coralogix/rum/v2/rum_saved_filters_service.ts +18 -176
- package/proto-models/com/coralogix/rum/v2/rum_sdk_versions.ts +263 -0
- package/proto-models/com/coralogix/rum/v2/rum_service.ts +152 -4
- package/proto-models/com/coralogix/rum/v2/rum_session_recording_service.ts +6 -0
- package/proto-models/com/coralogix/rum/v2/rum_settings.ts +215 -0
- package/proto-models/com/coralogix/rum/v2/rum_settings_service.ts +266 -0
- package/proto-models/com/coralogix/rum/v2/rum_snooze_errors_service.ts +6 -0
- package/proto-models/com/coralogix/rum/v2/rum_source_map_service.ts +310 -0
- package/proto-models/com/coralogix/rum/v2/saved_filter.ts +8 -2
- package/proto-models/com/coralogix/rum/v2/snooze_errors.ts +9 -0
- package/proto-models/com/coralogix/rum/v2/source_code_file_mapping.ts +6 -0
- package/proto-models/com/coralogix/rum/v2/source_map_release.ts +9 -0
- package/proto-models/com/coralogix/rum/v2/template.ts +9 -0
- package/proto-models/google/protobuf/descriptor.ts +391 -272
- package/protofetch.lock +21 -2
- package/protofetch.toml +6 -1
- package/protos/com/coralogix/blobset/v2/audit_log.proto +13 -0
- package/protos/com/coralogix/blobset/v2/blobset_query_service.proto +12 -0
- package/protos/com/coralogix/blobset/v2/blobset_service.proto +18 -0
- package/protos/com/coralogix/blobset/v2/dsym.proto +19 -0
- package/protos/com/coralogix/blobset/v2/entity_metadata.proto +36 -0
- package/protos/com/coralogix/blobset/v2/entity_type.proto +10 -0
- package/protos/com/coralogix/blobset/v2/react_native.proto +23 -0
- package/protos/com/coralogix/blobset/v2/s3_metadata.proto +14 -0
- package/protos/com/coralogix/rum/v2/hide_errors.proto +19 -0
- package/protos/com/coralogix/rum/v2/release_entity_metadata.proto +35 -0
- package/protos/com/coralogix/rum/v2/release_entity_type.proto +10 -0
- package/protos/com/coralogix/rum/v2/rum_hide_errors_service.proto +42 -0
- package/protos/com/coralogix/rum/v2/rum_saved_filters_service.proto +1 -12
- package/protos/com/coralogix/rum/v2/rum_sdk_versions.proto +16 -0
- package/protos/com/coralogix/rum/v2/rum_service.proto +10 -0
- package/protos/com/coralogix/rum/v2/rum_settings.proto +26 -0
- package/protos/com/coralogix/rum/v2/rum_settings_service.proto +21 -0
- package/protos/com/coralogix/rum/v2/rum_source_map_service.proto +19 -0
- package/protoset.bin +0 -0
- package/services/dsym.service.ts +33 -0
- package/services/react-native.service.ts +34 -0
- package/services/source-maps.service.ts +12 -14
- package/utils/file-processor.utils.ts +176 -0
- package/utils/shared.utils.ts +52 -0
- package/cli/commands/index.ts +0 -8
- package/dist/api/rum-api.js +0 -104
- package/dist/cli/commands/delete-source-maps-command.js +0 -43
- package/dist/cli/commands/index.js +0 -9
- package/dist/cli/commands/update-source-maps-command.js +0 -48
- package/dist/cli/commands/upload-react-native-source-maps-command.js +0 -47
- package/dist/cli/commands/upload-source-maps-command.js +0 -47
- package/dist/models/commands.model.js +0 -3
- package/dist/services/react-native-source-maps.service.js +0 -42
- package/dist/utils/index.d.ts +0 -6
- package/dist/utils/index.js +0 -115
- package/services/react-native-source-maps.service.ts +0 -40
- package/utils/index.ts +0 -93
- /package/dist/cli/commands/{upload-react-native-source-maps-command.d.ts → react-native/upload-react-native-source-maps-command.d.ts} +0 -0
- /package/dist/cli/commands/{delete-source-maps-command.d.ts → source-maps/delete-source-maps-command.d.ts} +0 -0
- /package/dist/cli/commands/{update-source-maps-command.d.ts → source-maps/update-source-maps-command.d.ts} +0 -0
- /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
|
|
13
|
+
name?: string | undefined;
|
|
14
14
|
/** e.g. "foo", "foo.bar", etc. */
|
|
15
|
-
package
|
|
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
|
|
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
|
|
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
|
|
44
|
+
syntax?: string | undefined;
|
|
45
45
|
/** The edition of the proto file, which is an opaque string. */
|
|
46
|
-
edition
|
|
46
|
+
edition?: string | undefined;
|
|
47
47
|
}
|
|
48
48
|
/** Describes a message type. */
|
|
49
49
|
export interface DescriptorProto {
|
|
50
|
-
name
|
|
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
|
|
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
|
|
67
|
+
start?: number | undefined;
|
|
68
68
|
/** Exclusive. */
|
|
69
|
-
end
|
|
70
|
-
options
|
|
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
|
|
79
|
+
start?: number | undefined;
|
|
80
80
|
/** Exclusive. */
|
|
81
|
-
end
|
|
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
|
|
90
|
-
number
|
|
91
|
-
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
129
|
-
options
|
|
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
|
|
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
|
|
210
|
-
options
|
|
209
|
+
name?: string | undefined;
|
|
210
|
+
options?: OneofOptions | undefined;
|
|
211
211
|
}
|
|
212
212
|
/** Describes an enum type. */
|
|
213
213
|
export interface EnumDescriptorProto {
|
|
214
|
-
name
|
|
214
|
+
name?: string | undefined;
|
|
215
215
|
value: EnumValueDescriptorProto[];
|
|
216
|
-
options
|
|
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
|
|
239
|
+
start?: number | undefined;
|
|
240
240
|
/** Inclusive. */
|
|
241
|
-
end
|
|
241
|
+
end?: number | undefined;
|
|
242
242
|
}
|
|
243
243
|
/** Describes a value within an enum. */
|
|
244
244
|
export interface EnumValueDescriptorProto {
|
|
245
|
-
name
|
|
246
|
-
number
|
|
247
|
-
options
|
|
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
|
|
251
|
+
name?: string | undefined;
|
|
252
252
|
method: MethodDescriptorProto[];
|
|
253
|
-
options
|
|
253
|
+
options?: ServiceOptions | undefined;
|
|
254
254
|
}
|
|
255
255
|
/** Describes a method of a service. */
|
|
256
256
|
export interface MethodDescriptorProto {
|
|
257
|
-
name
|
|
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
|
|
263
|
-
outputType
|
|
264
|
-
options
|
|
262
|
+
inputType?: string | undefined;
|
|
263
|
+
outputType?: string | undefined;
|
|
264
|
+
options?: MethodOptions | undefined;
|
|
265
265
|
/** Identifies if client streams multiple client messages */
|
|
266
|
-
clientStreaming
|
|
266
|
+
clientStreaming?: boolean | undefined;
|
|
267
267
|
/** Identifies if server streams multiple server messages */
|
|
268
|
-
serverStreaming
|
|
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
|
|
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
|
|
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
|
|
294
|
+
javaMultipleFiles?: boolean | undefined;
|
|
295
295
|
/**
|
|
296
296
|
* This option does nothing.
|
|
297
297
|
*
|
|
298
298
|
* @deprecated
|
|
299
299
|
*/
|
|
300
|
-
javaGenerateEqualsAndHash
|
|
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
|
|
310
|
-
optimizeFor
|
|
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
|
|
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
|
|
332
|
-
javaGenericServices
|
|
333
|
-
pyGenericServices
|
|
334
|
-
phpGenericServices
|
|
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
|
|
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
|
|
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
|
|
351
|
+
objcClassPrefix?: string | undefined;
|
|
352
352
|
/** Namespace for generated classes; defaults to the package. */
|
|
353
|
-
csharpNamespace
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
553
|
+
deprecated?: boolean | undefined;
|
|
554
554
|
/** For Google-internal migration only. Do not use. */
|
|
555
|
-
weak
|
|
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
|
|
561
|
-
retention
|
|
562
|
-
target
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
677
|
-
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
|
|
710
|
-
positiveIntValue
|
|
711
|
-
negativeIntValue
|
|
712
|
-
doubleValue
|
|
713
|
-
stringValue
|
|
714
|
-
aggregateValue
|
|
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
|
|
864
|
-
trailingComments
|
|
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
|
|
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
|
|
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
|
|
898
|
-
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
|