@coralogix/rum-cli 1.1.21 → 1.1.22
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 +8 -4
- package/api/rum-api.ts +1 -1
- package/cli/commands/delete-source-maps-command.ts +1 -1
- package/cli/commands/index.ts +5 -4
- package/cli/commands/update-source-maps-command.ts +1 -1
- package/cli/commands/upload-react-native-source-maps-command.ts +39 -0
- package/cli/commands/upload-source-maps-command.ts +1 -1
- package/cli/rum-cli.ts +8 -7
- package/dist/api/rum-api.js +2 -2
- package/dist/cli/commands/delete-source-maps-command.d.ts +1 -1
- package/dist/cli/commands/delete-source-maps-command.js +4 -4
- package/dist/cli/commands/index.d.ts +4 -3
- package/dist/cli/commands/index.js +3 -2
- package/dist/cli/commands/update-source-maps-command.d.ts +1 -1
- package/dist/cli/commands/update-source-maps-command.js +4 -4
- package/dist/cli/commands/upload-react-native-source-maps-command.d.ts +2 -0
- package/dist/cli/commands/upload-react-native-source-maps-command.js +47 -0
- package/dist/cli/commands/upload-source-maps-command.d.ts +1 -1
- package/dist/cli/commands/upload-source-maps-command.js +4 -4
- package/dist/cli/rum-cli.js +9 -7
- 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/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 +526 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_saved_filters_service.js +1560 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.d.ts +98 -3
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.js +475 -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_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 +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.js +65 -41
- 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/react-native-source-maps.service.d.ts +3 -0
- package/dist/services/react-native-source-maps.service.js +42 -0
- package/dist/services/source-maps.service.js +3 -3
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +4 -4
- package/package.json +1 -1
- 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/rum_react_native_source_map_service.ts +223 -0
- package/proto-models/com/coralogix/rum/v2/rum_saved_filters_service.ts +1837 -0
- package/proto-models/com/coralogix/rum/v2/rum_service.ts +533 -146
- package/proto-models/com/coralogix/rum/v2/rum_session_recording_service.ts +1 -208
- 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 +65 -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 +2 -2
- package/protofetch.toml +1 -1
- 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 +128 -0
- package/protos/com/coralogix/rum/v2/rum_service.proto +26 -0
- package/protos/com/coralogix/rum/v2/rum_session_recording_service.proto +1 -12
- package/protos/com/coralogix/rum/v2/rum_snooze_errors_service.proto +64 -0
- package/protos/com/coralogix/rum/v2/rum_source_map_service.proto +1 -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/react-native-source-maps.service.ts +40 -0
- package/services/source-maps.service.ts +2 -2
- package/utils/index.ts +3 -3
|
@@ -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
|
-
}
|