@coralogix/rum-cli 1.1.21 → 1.1.24
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 +32 -9
- 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} +15 -23
- 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/react-native/upload-react-native-source-maps-command.ts +42 -0
- package/cli/commands/{delete-source-maps-command.ts → source-maps/delete-source-maps-command.ts} +8 -10
- package/cli/commands/source-maps/index.ts +7 -0
- package/cli/commands/{update-source-maps-command.ts → source-maps/update-source-maps-command.ts} +8 -10
- package/cli/commands/{upload-source-maps-command.ts → source-maps/upload-source-maps-command.ts} +8 -10
- package/cli/rum-cli.ts +17 -7
- 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.d.ts +2 -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.d.ts +2 -0
- package/dist/cli/commands/source-maps/delete-source-maps-command.js +41 -0
- package/dist/cli/commands/source-maps/index.d.ts +6 -0
- package/dist/cli/commands/source-maps/index.js +8 -0
- package/dist/cli/commands/source-maps/update-source-maps-command.d.ts +2 -0
- package/dist/cli/commands/source-maps/update-source-maps-command.js +46 -0
- package/dist/cli/commands/source-maps/upload-source-maps-command.d.ts +2 -0
- package/dist/cli/commands/source-maps/upload-source-maps-command.js +45 -0
- package/dist/cli/rum-cli.js +14 -8
- 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 +64 -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 +31 -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 +174 -0
- package/dist/proto-models/com/coralogix/blobset/v2/dsym.d.ts +58 -0
- package/dist/proto-models/com/coralogix/blobset/v2/dsym.js +331 -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 +459 -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 +47 -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 +313 -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 +126 -0
- package/dist/proto-models/com/coralogix/rum/v2/analytics.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/analytics.js +115 -102
- package/dist/proto-models/com/coralogix/rum/v2/audit_log.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/audit_log.js +5 -3
- package/dist/proto-models/com/coralogix/rum/v2/chunk.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/chunk.js +54 -49
- package/dist/proto-models/com/coralogix/rum/v2/file.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/file.js +24 -34
- 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 +195 -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 +459 -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 +47 -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 +517 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_react_native_source_map_service.d.ts +69 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_react_native_source_map_service.js +189 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_saved_filters_service.d.ts +480 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_saved_filters_service.js +1420 -0
- 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 +217 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.d.ts +143 -3
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.js +595 -127
- package/dist/proto-models/com/coralogix/rum/v2/rum_session_recording_service.d.ts +1 -59
- package/dist/proto-models/com/coralogix/rum/v2/rum_session_recording_service.js +4 -175
- 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 +193 -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 +214 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_snooze_errors_service.d.ts +261 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_snooze_errors_service.js +698 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.d.ts +93 -1
- package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.js +325 -42
- package/dist/proto-models/com/coralogix/rum/v2/saved_filter.d.ts +55 -0
- package/dist/proto-models/com/coralogix/rum/v2/saved_filter.js +267 -0
- package/dist/proto-models/com/coralogix/rum/v2/snooze_errors.d.ts +109 -0
- package/dist/proto-models/com/coralogix/rum/v2/snooze_errors.js +580 -0
- package/dist/proto-models/com/coralogix/rum/v2/source_code_file_mapping.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/source_code_file_mapping.js +47 -24
- package/dist/proto-models/com/coralogix/rum/v2/source_map_release.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/source_map_release.js +43 -38
- package/dist/proto-models/com/coralogix/rum/v2/template.d.ts +14 -1
- package/dist/proto-models/com/coralogix/rum/v2/template.js +148 -54
- package/dist/proto-models/google/protobuf/descriptor.d.ts +1 -1
- package/dist/proto-models/google/protobuf/descriptor.js +537 -427
- package/dist/services/dsym.service.d.ts +3 -0
- 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 +4 -3
- package/proto-models/com/coralogix/blobset/v2/audit_log.ts +78 -0
- package/proto-models/com/coralogix/blobset/v2/blobset_query_service.ts +30 -0
- package/proto-models/com/coralogix/blobset/v2/blobset_service.ts +203 -0
- package/proto-models/com/coralogix/blobset/v2/dsym.ts +394 -0
- package/proto-models/com/coralogix/blobset/v2/entity_metadata.ts +537 -0
- package/proto-models/com/coralogix/blobset/v2/entity_type.ts +44 -0
- package/proto-models/com/coralogix/blobset/v2/react_native.ts +361 -0
- package/proto-models/com/coralogix/blobset/v2/s3_metadata.ts +148 -0
- package/proto-models/com/coralogix/rum/v2/analytics.ts +113 -108
- package/proto-models/com/coralogix/rum/v2/audit_log.ts +6 -4
- package/proto-models/com/coralogix/rum/v2/chunk.ts +55 -56
- package/proto-models/com/coralogix/rum/v2/file.ts +25 -39
- package/proto-models/com/coralogix/rum/v2/hide_errors.ts +225 -0
- package/proto-models/com/coralogix/rum/v2/release_entity_metadata.ts +537 -0
- package/proto-models/com/coralogix/rum/v2/release_entity_type.ts +44 -0
- package/proto-models/com/coralogix/rum/v2/rum_hide_errors_service.ts +599 -0
- package/proto-models/com/coralogix/rum/v2/rum_react_native_source_map_service.ts +223 -0
- package/proto-models/com/coralogix/rum/v2/rum_saved_filters_service.ts +1673 -0
- package/proto-models/com/coralogix/rum/v2/rum_sdk_versions.ts +254 -0
- package/proto-models/com/coralogix/rum/v2/rum_service.ts +672 -146
- package/proto-models/com/coralogix/rum/v2/rum_session_recording_service.ts +1 -208
- package/proto-models/com/coralogix/rum/v2/rum_settings.ts +209 -0
- package/proto-models/com/coralogix/rum/v2/rum_settings_service.ts +260 -0
- package/proto-models/com/coralogix/rum/v2/rum_snooze_errors_service.ts +818 -0
- package/proto-models/com/coralogix/rum/v2/rum_source_map_service.ts +369 -46
- package/proto-models/com/coralogix/rum/v2/saved_filter.ts +301 -0
- package/proto-models/com/coralogix/rum/v2/snooze_errors.ts +656 -0
- package/proto-models/com/coralogix/rum/v2/source_code_file_mapping.ts +48 -27
- package/proto-models/com/coralogix/rum/v2/source_map_release.ts +44 -44
- package/proto-models/com/coralogix/rum/v2/template.ts +161 -59
- package/proto-models/google/protobuf/descriptor.ts +551 -464
- 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_react_native_source_map_service.proto +19 -0
- package/protos/com/coralogix/rum/v2/rum_saved_filters_service.proto +117 -0
- package/protos/com/coralogix/rum/v2/rum_sdk_versions.proto +16 -0
- package/protos/com/coralogix/rum/v2/rum_service.proto +36 -0
- package/protos/com/coralogix/rum/v2/rum_session_recording_service.proto +1 -12
- 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_snooze_errors_service.proto +64 -0
- package/protos/com/coralogix/rum/v2/rum_source_map_service.proto +20 -1
- package/protos/com/coralogix/rum/v2/saved_filter.proto +28 -0
- package/protos/com/coralogix/rum/v2/snooze_errors.proto +55 -0
- package/protos/com/coralogix/rum/v2/template.proto +6 -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 -7
- package/dist/api/rum-api.js +0 -104
- package/dist/cli/commands/delete-source-maps-command.d.ts +0 -2
- package/dist/cli/commands/delete-source-maps-command.js +0 -43
- package/dist/cli/commands/index.d.ts +0 -6
- package/dist/cli/commands/index.js +0 -8
- package/dist/cli/commands/update-source-maps-command.d.ts +0 -2
- package/dist/cli/commands/update-source-maps-command.js +0 -48
- package/dist/cli/commands/upload-source-maps-command.d.ts +0 -2
- package/dist/cli/commands/upload-source-maps-command.js +0 -47
- package/dist/models/commands.model.js +0 -3
- package/dist/utils/index.d.ts +0 -6
- package/dist/utils/index.js +0 -115
- package/utils/index.ts +0 -93
|
@@ -1,217 +1,10 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
import _m0 from "protobufjs/minimal";
|
|
3
2
|
|
|
4
3
|
export const protobufPackage = "com.coralogix.rum.v2";
|
|
5
4
|
|
|
6
|
-
export interface GetSessionRecordingRequest {
|
|
7
|
-
sessionId: string;
|
|
8
|
-
application: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface GetSessionRecordingResponse {
|
|
12
|
-
sessionRecordings: Uint8Array;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
function createBaseGetSessionRecordingRequest(): GetSessionRecordingRequest {
|
|
16
|
-
return { sessionId: "", application: "" };
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export const GetSessionRecordingRequest = {
|
|
20
|
-
encode(message: GetSessionRecordingRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
21
|
-
if (message.sessionId !== "") {
|
|
22
|
-
writer.uint32(10).string(message.sessionId);
|
|
23
|
-
}
|
|
24
|
-
if (message.application !== "") {
|
|
25
|
-
writer.uint32(18).string(message.application);
|
|
26
|
-
}
|
|
27
|
-
return writer;
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): GetSessionRecordingRequest {
|
|
31
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
32
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
33
|
-
const message = createBaseGetSessionRecordingRequest();
|
|
34
|
-
while (reader.pos < end) {
|
|
35
|
-
const tag = reader.uint32();
|
|
36
|
-
switch (tag >>> 3) {
|
|
37
|
-
case 1:
|
|
38
|
-
if (tag !== 10) {
|
|
39
|
-
break;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
message.sessionId = reader.string();
|
|
43
|
-
continue;
|
|
44
|
-
case 2:
|
|
45
|
-
if (tag !== 18) {
|
|
46
|
-
break;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
message.application = reader.string();
|
|
50
|
-
continue;
|
|
51
|
-
}
|
|
52
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
53
|
-
break;
|
|
54
|
-
}
|
|
55
|
-
reader.skipType(tag & 7);
|
|
56
|
-
}
|
|
57
|
-
return message;
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
fromJSON(object: any): GetSessionRecordingRequest {
|
|
61
|
-
return {
|
|
62
|
-
sessionId: isSet(object.sessionId) ? String(object.sessionId) : "",
|
|
63
|
-
application: isSet(object.application) ? String(object.application) : "",
|
|
64
|
-
};
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
toJSON(message: GetSessionRecordingRequest): unknown {
|
|
68
|
-
const obj: any = {};
|
|
69
|
-
message.sessionId !== undefined && (obj.sessionId = message.sessionId);
|
|
70
|
-
message.application !== undefined && (obj.application = message.application);
|
|
71
|
-
return obj;
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
create(base?: DeepPartial<GetSessionRecordingRequest>): GetSessionRecordingRequest {
|
|
75
|
-
return GetSessionRecordingRequest.fromPartial(base ?? {});
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
fromPartial(object: DeepPartial<GetSessionRecordingRequest>): GetSessionRecordingRequest {
|
|
79
|
-
const message = createBaseGetSessionRecordingRequest();
|
|
80
|
-
message.sessionId = object.sessionId ?? "";
|
|
81
|
-
message.application = object.application ?? "";
|
|
82
|
-
return message;
|
|
83
|
-
},
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
function createBaseGetSessionRecordingResponse(): GetSessionRecordingResponse {
|
|
87
|
-
return { sessionRecordings: new Uint8Array() };
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export const GetSessionRecordingResponse = {
|
|
91
|
-
encode(message: GetSessionRecordingResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
92
|
-
if (message.sessionRecordings.length !== 0) {
|
|
93
|
-
writer.uint32(10).bytes(message.sessionRecordings);
|
|
94
|
-
}
|
|
95
|
-
return writer;
|
|
96
|
-
},
|
|
97
|
-
|
|
98
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): GetSessionRecordingResponse {
|
|
99
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
100
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
101
|
-
const message = createBaseGetSessionRecordingResponse();
|
|
102
|
-
while (reader.pos < end) {
|
|
103
|
-
const tag = reader.uint32();
|
|
104
|
-
switch (tag >>> 3) {
|
|
105
|
-
case 1:
|
|
106
|
-
if (tag !== 10) {
|
|
107
|
-
break;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
message.sessionRecordings = reader.bytes();
|
|
111
|
-
continue;
|
|
112
|
-
}
|
|
113
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
114
|
-
break;
|
|
115
|
-
}
|
|
116
|
-
reader.skipType(tag & 7);
|
|
117
|
-
}
|
|
118
|
-
return message;
|
|
119
|
-
},
|
|
120
|
-
|
|
121
|
-
fromJSON(object: any): GetSessionRecordingResponse {
|
|
122
|
-
return {
|
|
123
|
-
sessionRecordings: isSet(object.sessionRecordings) ? bytesFromBase64(object.sessionRecordings) : new Uint8Array(),
|
|
124
|
-
};
|
|
125
|
-
},
|
|
126
|
-
|
|
127
|
-
toJSON(message: GetSessionRecordingResponse): unknown {
|
|
128
|
-
const obj: any = {};
|
|
129
|
-
message.sessionRecordings !== undefined &&
|
|
130
|
-
(obj.sessionRecordings = base64FromBytes(
|
|
131
|
-
message.sessionRecordings !== undefined ? message.sessionRecordings : new Uint8Array(),
|
|
132
|
-
));
|
|
133
|
-
return obj;
|
|
134
|
-
},
|
|
135
|
-
|
|
136
|
-
create(base?: DeepPartial<GetSessionRecordingResponse>): GetSessionRecordingResponse {
|
|
137
|
-
return GetSessionRecordingResponse.fromPartial(base ?? {});
|
|
138
|
-
},
|
|
139
|
-
|
|
140
|
-
fromPartial(object: DeepPartial<GetSessionRecordingResponse>): GetSessionRecordingResponse {
|
|
141
|
-
const message = createBaseGetSessionRecordingResponse();
|
|
142
|
-
message.sessionRecordings = object.sessionRecordings ?? new Uint8Array();
|
|
143
|
-
return message;
|
|
144
|
-
},
|
|
145
|
-
};
|
|
146
|
-
|
|
147
5
|
export type RumSessionRecordingServiceDefinition = typeof RumSessionRecordingServiceDefinition;
|
|
148
6
|
export const RumSessionRecordingServiceDefinition = {
|
|
149
7
|
name: "RumSessionRecordingService",
|
|
150
8
|
fullName: "com.coralogix.rum.v2.RumSessionRecordingService",
|
|
151
|
-
methods: {
|
|
152
|
-
getSessionRecording: {
|
|
153
|
-
name: "GetSessionRecording",
|
|
154
|
-
requestType: GetSessionRecordingRequest,
|
|
155
|
-
requestStream: false,
|
|
156
|
-
responseType: GetSessionRecordingResponse,
|
|
157
|
-
responseStream: false,
|
|
158
|
-
options: {},
|
|
159
|
-
},
|
|
160
|
-
},
|
|
9
|
+
methods: {},
|
|
161
10
|
} as const;
|
|
162
|
-
|
|
163
|
-
declare var self: any | undefined;
|
|
164
|
-
declare var window: any | undefined;
|
|
165
|
-
declare var global: any | undefined;
|
|
166
|
-
var tsProtoGlobalThis: any = (() => {
|
|
167
|
-
if (typeof globalThis !== "undefined") {
|
|
168
|
-
return globalThis;
|
|
169
|
-
}
|
|
170
|
-
if (typeof self !== "undefined") {
|
|
171
|
-
return self;
|
|
172
|
-
}
|
|
173
|
-
if (typeof window !== "undefined") {
|
|
174
|
-
return window;
|
|
175
|
-
}
|
|
176
|
-
if (typeof global !== "undefined") {
|
|
177
|
-
return global;
|
|
178
|
-
}
|
|
179
|
-
throw "Unable to locate global object";
|
|
180
|
-
})();
|
|
181
|
-
|
|
182
|
-
function bytesFromBase64(b64: string): Uint8Array {
|
|
183
|
-
if (tsProtoGlobalThis.Buffer) {
|
|
184
|
-
return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64"));
|
|
185
|
-
} else {
|
|
186
|
-
const bin = tsProtoGlobalThis.atob(b64);
|
|
187
|
-
const arr = new Uint8Array(bin.length);
|
|
188
|
-
for (let i = 0; i < bin.length; ++i) {
|
|
189
|
-
arr[i] = bin.charCodeAt(i);
|
|
190
|
-
}
|
|
191
|
-
return arr;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
function base64FromBytes(arr: Uint8Array): string {
|
|
196
|
-
if (tsProtoGlobalThis.Buffer) {
|
|
197
|
-
return tsProtoGlobalThis.Buffer.from(arr).toString("base64");
|
|
198
|
-
} else {
|
|
199
|
-
const bin: string[] = [];
|
|
200
|
-
arr.forEach((byte) => {
|
|
201
|
-
bin.push(String.fromCharCode(byte));
|
|
202
|
-
});
|
|
203
|
-
return tsProtoGlobalThis.btoa(bin.join(""));
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
208
|
-
|
|
209
|
-
export type DeepPartial<T> = T extends Builtin ? T
|
|
210
|
-
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
211
|
-
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
212
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
213
|
-
: Partial<T>;
|
|
214
|
-
|
|
215
|
-
function isSet(value: any): boolean {
|
|
216
|
-
return value !== null && value !== undefined;
|
|
217
|
-
}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
|
|
4
|
+
export const protobufPackage = "com.coralogix.rum.v2";
|
|
5
|
+
|
|
6
|
+
export enum TimeChoice {
|
|
7
|
+
TIME_CHOICE_UNSPECIFIED = 0,
|
|
8
|
+
TIME_CHOICE_LAST_1_MINUTE = 1,
|
|
9
|
+
TIME_CHOICE_LAST_2_MINUTES = 2,
|
|
10
|
+
TIME_CHOICE_LAST_5_MINUTES = 3,
|
|
11
|
+
TIME_CHOICE_LAST_15_MINUTES = 4,
|
|
12
|
+
TIME_CHOICE_LAST_30_MINUTES = 5,
|
|
13
|
+
TIME_CHOICE_LAST_1_HOUR = 6,
|
|
14
|
+
TIME_CHOICE_LAST_2_HOURS = 7,
|
|
15
|
+
TIME_CHOICE_LAST_6_HOURS = 8,
|
|
16
|
+
TIME_CHOICE_LAST_12_HOURS = 9,
|
|
17
|
+
TIME_CHOICE_LAST_24_HOURS = 10,
|
|
18
|
+
TIME_CHOICE_TODAY = 11,
|
|
19
|
+
TIME_CHOICE_LAST_2_DAYS = 12,
|
|
20
|
+
TIME_CHOICE_LAST_3_DAYS = 13,
|
|
21
|
+
TIME_CHOICE_LAST_5_DAYS = 14,
|
|
22
|
+
TIME_CHOICE_LAST_7_DAYS = 15,
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export function timeChoiceFromJSON(object: any): TimeChoice {
|
|
26
|
+
switch (object) {
|
|
27
|
+
case 0:
|
|
28
|
+
case "TIME_CHOICE_UNSPECIFIED":
|
|
29
|
+
return TimeChoice.TIME_CHOICE_UNSPECIFIED;
|
|
30
|
+
case 1:
|
|
31
|
+
case "TIME_CHOICE_LAST_1_MINUTE":
|
|
32
|
+
return TimeChoice.TIME_CHOICE_LAST_1_MINUTE;
|
|
33
|
+
case 2:
|
|
34
|
+
case "TIME_CHOICE_LAST_2_MINUTES":
|
|
35
|
+
return TimeChoice.TIME_CHOICE_LAST_2_MINUTES;
|
|
36
|
+
case 3:
|
|
37
|
+
case "TIME_CHOICE_LAST_5_MINUTES":
|
|
38
|
+
return TimeChoice.TIME_CHOICE_LAST_5_MINUTES;
|
|
39
|
+
case 4:
|
|
40
|
+
case "TIME_CHOICE_LAST_15_MINUTES":
|
|
41
|
+
return TimeChoice.TIME_CHOICE_LAST_15_MINUTES;
|
|
42
|
+
case 5:
|
|
43
|
+
case "TIME_CHOICE_LAST_30_MINUTES":
|
|
44
|
+
return TimeChoice.TIME_CHOICE_LAST_30_MINUTES;
|
|
45
|
+
case 6:
|
|
46
|
+
case "TIME_CHOICE_LAST_1_HOUR":
|
|
47
|
+
return TimeChoice.TIME_CHOICE_LAST_1_HOUR;
|
|
48
|
+
case 7:
|
|
49
|
+
case "TIME_CHOICE_LAST_2_HOURS":
|
|
50
|
+
return TimeChoice.TIME_CHOICE_LAST_2_HOURS;
|
|
51
|
+
case 8:
|
|
52
|
+
case "TIME_CHOICE_LAST_6_HOURS":
|
|
53
|
+
return TimeChoice.TIME_CHOICE_LAST_6_HOURS;
|
|
54
|
+
case 9:
|
|
55
|
+
case "TIME_CHOICE_LAST_12_HOURS":
|
|
56
|
+
return TimeChoice.TIME_CHOICE_LAST_12_HOURS;
|
|
57
|
+
case 10:
|
|
58
|
+
case "TIME_CHOICE_LAST_24_HOURS":
|
|
59
|
+
return TimeChoice.TIME_CHOICE_LAST_24_HOURS;
|
|
60
|
+
case 11:
|
|
61
|
+
case "TIME_CHOICE_TODAY":
|
|
62
|
+
return TimeChoice.TIME_CHOICE_TODAY;
|
|
63
|
+
case 12:
|
|
64
|
+
case "TIME_CHOICE_LAST_2_DAYS":
|
|
65
|
+
return TimeChoice.TIME_CHOICE_LAST_2_DAYS;
|
|
66
|
+
case 13:
|
|
67
|
+
case "TIME_CHOICE_LAST_3_DAYS":
|
|
68
|
+
return TimeChoice.TIME_CHOICE_LAST_3_DAYS;
|
|
69
|
+
case 14:
|
|
70
|
+
case "TIME_CHOICE_LAST_5_DAYS":
|
|
71
|
+
return TimeChoice.TIME_CHOICE_LAST_5_DAYS;
|
|
72
|
+
case 15:
|
|
73
|
+
case "TIME_CHOICE_LAST_7_DAYS":
|
|
74
|
+
return TimeChoice.TIME_CHOICE_LAST_7_DAYS;
|
|
75
|
+
default:
|
|
76
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum TimeChoice");
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function timeChoiceToJSON(object: TimeChoice): string {
|
|
81
|
+
switch (object) {
|
|
82
|
+
case TimeChoice.TIME_CHOICE_UNSPECIFIED:
|
|
83
|
+
return "TIME_CHOICE_UNSPECIFIED";
|
|
84
|
+
case TimeChoice.TIME_CHOICE_LAST_1_MINUTE:
|
|
85
|
+
return "TIME_CHOICE_LAST_1_MINUTE";
|
|
86
|
+
case TimeChoice.TIME_CHOICE_LAST_2_MINUTES:
|
|
87
|
+
return "TIME_CHOICE_LAST_2_MINUTES";
|
|
88
|
+
case TimeChoice.TIME_CHOICE_LAST_5_MINUTES:
|
|
89
|
+
return "TIME_CHOICE_LAST_5_MINUTES";
|
|
90
|
+
case TimeChoice.TIME_CHOICE_LAST_15_MINUTES:
|
|
91
|
+
return "TIME_CHOICE_LAST_15_MINUTES";
|
|
92
|
+
case TimeChoice.TIME_CHOICE_LAST_30_MINUTES:
|
|
93
|
+
return "TIME_CHOICE_LAST_30_MINUTES";
|
|
94
|
+
case TimeChoice.TIME_CHOICE_LAST_1_HOUR:
|
|
95
|
+
return "TIME_CHOICE_LAST_1_HOUR";
|
|
96
|
+
case TimeChoice.TIME_CHOICE_LAST_2_HOURS:
|
|
97
|
+
return "TIME_CHOICE_LAST_2_HOURS";
|
|
98
|
+
case TimeChoice.TIME_CHOICE_LAST_6_HOURS:
|
|
99
|
+
return "TIME_CHOICE_LAST_6_HOURS";
|
|
100
|
+
case TimeChoice.TIME_CHOICE_LAST_12_HOURS:
|
|
101
|
+
return "TIME_CHOICE_LAST_12_HOURS";
|
|
102
|
+
case TimeChoice.TIME_CHOICE_LAST_24_HOURS:
|
|
103
|
+
return "TIME_CHOICE_LAST_24_HOURS";
|
|
104
|
+
case TimeChoice.TIME_CHOICE_TODAY:
|
|
105
|
+
return "TIME_CHOICE_TODAY";
|
|
106
|
+
case TimeChoice.TIME_CHOICE_LAST_2_DAYS:
|
|
107
|
+
return "TIME_CHOICE_LAST_2_DAYS";
|
|
108
|
+
case TimeChoice.TIME_CHOICE_LAST_3_DAYS:
|
|
109
|
+
return "TIME_CHOICE_LAST_3_DAYS";
|
|
110
|
+
case TimeChoice.TIME_CHOICE_LAST_5_DAYS:
|
|
111
|
+
return "TIME_CHOICE_LAST_5_DAYS";
|
|
112
|
+
case TimeChoice.TIME_CHOICE_LAST_7_DAYS:
|
|
113
|
+
return "TIME_CHOICE_LAST_7_DAYS";
|
|
114
|
+
default:
|
|
115
|
+
throw new globalThis.Error("Unrecognized enum value " + object + " for enum TimeChoice");
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export interface RumSettings {
|
|
120
|
+
isArchive?: boolean | undefined;
|
|
121
|
+
timeChoice?: TimeChoice | undefined;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
function createBaseRumSettings(): RumSettings {
|
|
125
|
+
return { isArchive: undefined, timeChoice: undefined };
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export const RumSettings = {
|
|
129
|
+
encode(message: RumSettings, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
130
|
+
if (message.isArchive !== undefined) {
|
|
131
|
+
writer.uint32(8).bool(message.isArchive);
|
|
132
|
+
}
|
|
133
|
+
if (message.timeChoice !== undefined) {
|
|
134
|
+
writer.uint32(16).int32(message.timeChoice);
|
|
135
|
+
}
|
|
136
|
+
return writer;
|
|
137
|
+
},
|
|
138
|
+
|
|
139
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): RumSettings {
|
|
140
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
141
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
142
|
+
const message = createBaseRumSettings();
|
|
143
|
+
while (reader.pos < end) {
|
|
144
|
+
const tag = reader.uint32();
|
|
145
|
+
switch (tag >>> 3) {
|
|
146
|
+
case 1:
|
|
147
|
+
if (tag !== 8) {
|
|
148
|
+
break;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
message.isArchive = reader.bool();
|
|
152
|
+
continue;
|
|
153
|
+
case 2:
|
|
154
|
+
if (tag !== 16) {
|
|
155
|
+
break;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
message.timeChoice = reader.int32() as any;
|
|
159
|
+
continue;
|
|
160
|
+
}
|
|
161
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
reader.skipType(tag & 7);
|
|
165
|
+
}
|
|
166
|
+
return message;
|
|
167
|
+
},
|
|
168
|
+
|
|
169
|
+
fromJSON(object: any): RumSettings {
|
|
170
|
+
return {
|
|
171
|
+
isArchive: isSet(object.isArchive) ? globalThis.Boolean(object.isArchive) : undefined,
|
|
172
|
+
timeChoice: isSet(object.timeChoice) ? timeChoiceFromJSON(object.timeChoice) : undefined,
|
|
173
|
+
};
|
|
174
|
+
},
|
|
175
|
+
|
|
176
|
+
toJSON(message: RumSettings): unknown {
|
|
177
|
+
const obj: any = {};
|
|
178
|
+
if (message.isArchive !== undefined) {
|
|
179
|
+
obj.isArchive = message.isArchive;
|
|
180
|
+
}
|
|
181
|
+
if (message.timeChoice !== undefined) {
|
|
182
|
+
obj.timeChoice = timeChoiceToJSON(message.timeChoice);
|
|
183
|
+
}
|
|
184
|
+
return obj;
|
|
185
|
+
},
|
|
186
|
+
|
|
187
|
+
create(base?: DeepPartial<RumSettings>): RumSettings {
|
|
188
|
+
return RumSettings.fromPartial(base ?? {});
|
|
189
|
+
},
|
|
190
|
+
fromPartial(object: DeepPartial<RumSettings>): RumSettings {
|
|
191
|
+
const message = createBaseRumSettings();
|
|
192
|
+
message.isArchive = object.isArchive ?? undefined;
|
|
193
|
+
message.timeChoice = object.timeChoice ?? undefined;
|
|
194
|
+
return message;
|
|
195
|
+
},
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
199
|
+
|
|
200
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
201
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
202
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
203
|
+
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
204
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
205
|
+
: Partial<T>;
|
|
206
|
+
|
|
207
|
+
function isSet(value: any): boolean {
|
|
208
|
+
return value !== null && value !== undefined;
|
|
209
|
+
}
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { RumSettings } from "./rum_settings";
|
|
4
|
+
|
|
5
|
+
export const protobufPackage = "com.coralogix.rum.v2";
|
|
6
|
+
|
|
7
|
+
export interface GetRumSettingsRequest {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface GetRumSettingsResponse {
|
|
11
|
+
settings: RumSettings | undefined;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface UpdateRumSettingsRequest {
|
|
15
|
+
settings: RumSettings | undefined;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface UpdateRumSettingsResponse {
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function createBaseGetRumSettingsRequest(): GetRumSettingsRequest {
|
|
22
|
+
return {};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const GetRumSettingsRequest = {
|
|
26
|
+
encode(_: GetRumSettingsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
27
|
+
return writer;
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetRumSettingsRequest {
|
|
31
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
32
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
33
|
+
const message = createBaseGetRumSettingsRequest();
|
|
34
|
+
while (reader.pos < end) {
|
|
35
|
+
const tag = reader.uint32();
|
|
36
|
+
switch (tag >>> 3) {
|
|
37
|
+
}
|
|
38
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
reader.skipType(tag & 7);
|
|
42
|
+
}
|
|
43
|
+
return message;
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
fromJSON(_: any): GetRumSettingsRequest {
|
|
47
|
+
return {};
|
|
48
|
+
},
|
|
49
|
+
|
|
50
|
+
toJSON(_: GetRumSettingsRequest): unknown {
|
|
51
|
+
const obj: any = {};
|
|
52
|
+
return obj;
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
create(base?: DeepPartial<GetRumSettingsRequest>): GetRumSettingsRequest {
|
|
56
|
+
return GetRumSettingsRequest.fromPartial(base ?? {});
|
|
57
|
+
},
|
|
58
|
+
fromPartial(_: DeepPartial<GetRumSettingsRequest>): GetRumSettingsRequest {
|
|
59
|
+
const message = createBaseGetRumSettingsRequest();
|
|
60
|
+
return message;
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
function createBaseGetRumSettingsResponse(): GetRumSettingsResponse {
|
|
65
|
+
return { settings: undefined };
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export const GetRumSettingsResponse = {
|
|
69
|
+
encode(message: GetRumSettingsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
70
|
+
if (message.settings !== undefined) {
|
|
71
|
+
RumSettings.encode(message.settings, writer.uint32(10).fork()).ldelim();
|
|
72
|
+
}
|
|
73
|
+
return writer;
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetRumSettingsResponse {
|
|
77
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
78
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
79
|
+
const message = createBaseGetRumSettingsResponse();
|
|
80
|
+
while (reader.pos < end) {
|
|
81
|
+
const tag = reader.uint32();
|
|
82
|
+
switch (tag >>> 3) {
|
|
83
|
+
case 1:
|
|
84
|
+
if (tag !== 10) {
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
message.settings = RumSettings.decode(reader, reader.uint32());
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
reader.skipType(tag & 7);
|
|
95
|
+
}
|
|
96
|
+
return message;
|
|
97
|
+
},
|
|
98
|
+
|
|
99
|
+
fromJSON(object: any): GetRumSettingsResponse {
|
|
100
|
+
return { settings: isSet(object.settings) ? RumSettings.fromJSON(object.settings) : undefined };
|
|
101
|
+
},
|
|
102
|
+
|
|
103
|
+
toJSON(message: GetRumSettingsResponse): unknown {
|
|
104
|
+
const obj: any = {};
|
|
105
|
+
if (message.settings !== undefined) {
|
|
106
|
+
obj.settings = RumSettings.toJSON(message.settings);
|
|
107
|
+
}
|
|
108
|
+
return obj;
|
|
109
|
+
},
|
|
110
|
+
|
|
111
|
+
create(base?: DeepPartial<GetRumSettingsResponse>): GetRumSettingsResponse {
|
|
112
|
+
return GetRumSettingsResponse.fromPartial(base ?? {});
|
|
113
|
+
},
|
|
114
|
+
fromPartial(object: DeepPartial<GetRumSettingsResponse>): GetRumSettingsResponse {
|
|
115
|
+
const message = createBaseGetRumSettingsResponse();
|
|
116
|
+
message.settings = (object.settings !== undefined && object.settings !== null)
|
|
117
|
+
? RumSettings.fromPartial(object.settings)
|
|
118
|
+
: undefined;
|
|
119
|
+
return message;
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
function createBaseUpdateRumSettingsRequest(): UpdateRumSettingsRequest {
|
|
124
|
+
return { settings: undefined };
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export const UpdateRumSettingsRequest = {
|
|
128
|
+
encode(message: UpdateRumSettingsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
129
|
+
if (message.settings !== undefined) {
|
|
130
|
+
RumSettings.encode(message.settings, writer.uint32(10).fork()).ldelim();
|
|
131
|
+
}
|
|
132
|
+
return writer;
|
|
133
|
+
},
|
|
134
|
+
|
|
135
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateRumSettingsRequest {
|
|
136
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
137
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
138
|
+
const message = createBaseUpdateRumSettingsRequest();
|
|
139
|
+
while (reader.pos < end) {
|
|
140
|
+
const tag = reader.uint32();
|
|
141
|
+
switch (tag >>> 3) {
|
|
142
|
+
case 1:
|
|
143
|
+
if (tag !== 10) {
|
|
144
|
+
break;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
message.settings = RumSettings.decode(reader, reader.uint32());
|
|
148
|
+
continue;
|
|
149
|
+
}
|
|
150
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
151
|
+
break;
|
|
152
|
+
}
|
|
153
|
+
reader.skipType(tag & 7);
|
|
154
|
+
}
|
|
155
|
+
return message;
|
|
156
|
+
},
|
|
157
|
+
|
|
158
|
+
fromJSON(object: any): UpdateRumSettingsRequest {
|
|
159
|
+
return { settings: isSet(object.settings) ? RumSettings.fromJSON(object.settings) : undefined };
|
|
160
|
+
},
|
|
161
|
+
|
|
162
|
+
toJSON(message: UpdateRumSettingsRequest): unknown {
|
|
163
|
+
const obj: any = {};
|
|
164
|
+
if (message.settings !== undefined) {
|
|
165
|
+
obj.settings = RumSettings.toJSON(message.settings);
|
|
166
|
+
}
|
|
167
|
+
return obj;
|
|
168
|
+
},
|
|
169
|
+
|
|
170
|
+
create(base?: DeepPartial<UpdateRumSettingsRequest>): UpdateRumSettingsRequest {
|
|
171
|
+
return UpdateRumSettingsRequest.fromPartial(base ?? {});
|
|
172
|
+
},
|
|
173
|
+
fromPartial(object: DeepPartial<UpdateRumSettingsRequest>): UpdateRumSettingsRequest {
|
|
174
|
+
const message = createBaseUpdateRumSettingsRequest();
|
|
175
|
+
message.settings = (object.settings !== undefined && object.settings !== null)
|
|
176
|
+
? RumSettings.fromPartial(object.settings)
|
|
177
|
+
: undefined;
|
|
178
|
+
return message;
|
|
179
|
+
},
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
function createBaseUpdateRumSettingsResponse(): UpdateRumSettingsResponse {
|
|
183
|
+
return {};
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export const UpdateRumSettingsResponse = {
|
|
187
|
+
encode(_: UpdateRumSettingsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
188
|
+
return writer;
|
|
189
|
+
},
|
|
190
|
+
|
|
191
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateRumSettingsResponse {
|
|
192
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
193
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
194
|
+
const message = createBaseUpdateRumSettingsResponse();
|
|
195
|
+
while (reader.pos < end) {
|
|
196
|
+
const tag = reader.uint32();
|
|
197
|
+
switch (tag >>> 3) {
|
|
198
|
+
}
|
|
199
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
200
|
+
break;
|
|
201
|
+
}
|
|
202
|
+
reader.skipType(tag & 7);
|
|
203
|
+
}
|
|
204
|
+
return message;
|
|
205
|
+
},
|
|
206
|
+
|
|
207
|
+
fromJSON(_: any): UpdateRumSettingsResponse {
|
|
208
|
+
return {};
|
|
209
|
+
},
|
|
210
|
+
|
|
211
|
+
toJSON(_: UpdateRumSettingsResponse): unknown {
|
|
212
|
+
const obj: any = {};
|
|
213
|
+
return obj;
|
|
214
|
+
},
|
|
215
|
+
|
|
216
|
+
create(base?: DeepPartial<UpdateRumSettingsResponse>): UpdateRumSettingsResponse {
|
|
217
|
+
return UpdateRumSettingsResponse.fromPartial(base ?? {});
|
|
218
|
+
},
|
|
219
|
+
fromPartial(_: DeepPartial<UpdateRumSettingsResponse>): UpdateRumSettingsResponse {
|
|
220
|
+
const message = createBaseUpdateRumSettingsResponse();
|
|
221
|
+
return message;
|
|
222
|
+
},
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
export type RumSettingsServiceDefinition = typeof RumSettingsServiceDefinition;
|
|
226
|
+
export const RumSettingsServiceDefinition = {
|
|
227
|
+
name: "RumSettingsService",
|
|
228
|
+
fullName: "com.coralogix.rum.v2.RumSettingsService",
|
|
229
|
+
methods: {
|
|
230
|
+
getRumSettings: {
|
|
231
|
+
name: "GetRumSettings",
|
|
232
|
+
requestType: GetRumSettingsRequest,
|
|
233
|
+
requestStream: false,
|
|
234
|
+
responseType: GetRumSettingsResponse,
|
|
235
|
+
responseStream: false,
|
|
236
|
+
options: {},
|
|
237
|
+
},
|
|
238
|
+
updateRumSettings: {
|
|
239
|
+
name: "UpdateRumSettings",
|
|
240
|
+
requestType: UpdateRumSettingsRequest,
|
|
241
|
+
requestStream: false,
|
|
242
|
+
responseType: UpdateRumSettingsResponse,
|
|
243
|
+
responseStream: false,
|
|
244
|
+
options: {},
|
|
245
|
+
},
|
|
246
|
+
},
|
|
247
|
+
} as const;
|
|
248
|
+
|
|
249
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
250
|
+
|
|
251
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
252
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
253
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
254
|
+
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
255
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
256
|
+
: Partial<T>;
|
|
257
|
+
|
|
258
|
+
function isSet(value: any): boolean {
|
|
259
|
+
return value !== null && value !== undefined;
|
|
260
|
+
}
|