@coralogix/rum-cli 1.1.38 → 1.1.41
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 +1 -0
- package/api/base/base.api.ts +27 -30
- package/api/source-maps/source-maps.api.ts +78 -0
- package/cli/commands/source-maps/upload-source-maps-command.ts +3 -2
- package/consts/consts.ts +1 -0
- package/dist/api/base/base.api.d.ts +9 -7
- package/dist/api/base/base.api.js +14 -19
- package/dist/api/source-maps/source-maps.api.d.ts +5 -2
- package/dist/api/source-maps/source-maps.api.js +57 -3
- package/dist/cli/commands/source-maps/upload-source-maps-command.js +4 -3
- package/dist/consts/consts.js +3 -2
- package/dist/grpc-client/grpc-client-factory.d.ts +72 -0
- package/dist/models/source-maps-commands.model.d.ts +1 -0
- package/dist/models/source-maps-commands.model.js +1 -1
- package/dist/proto-models/com/coralogix/blobset/v2/blobset_query_service.d.ts +150 -0
- package/dist/proto-models/com/coralogix/blobset/v2/blobset_query_service.js +29 -1
- package/dist/proto-models/com/coralogix/blobset/v2/case_file.d.ts +36 -0
- package/dist/proto-models/com/coralogix/blobset/v2/case_file.js +161 -0
- package/dist/proto-models/com/coralogix/blobset/v2/dsym.d.ts +1 -0
- package/dist/proto-models/com/coralogix/blobset/v2/dsym.js +33 -3
- package/dist/proto-models/com/coralogix/blobset/v2/entity_metadata.d.ts +31 -0
- package/dist/proto-models/com/coralogix/blobset/v2/entity_metadata.js +215 -7
- package/dist/proto-models/com/coralogix/blobset/v2/entity_type.d.ts +3 -1
- package/dist/proto-models/com/coralogix/blobset/v2/entity_type.js +13 -1
- package/dist/proto-models/com/coralogix/blobset/v2/investigation_file.d.ts +36 -0
- package/dist/proto-models/com/coralogix/blobset/v2/investigation_file.js +161 -0
- package/dist/proto-models/com/coralogix/blobset/v2/proguard.d.ts +68 -0
- package/dist/proto-models/com/coralogix/blobset/v2/proguard.js +400 -0
- package/dist/proto-models/com/coralogix/rum/v2/application_releases.d.ts +38 -0
- package/dist/proto-models/com/coralogix/rum/v2/application_releases.js +180 -0
- package/dist/proto-models/com/coralogix/rum/v2/merge_error.d.ts +38 -0
- package/dist/proto-models/com/coralogix/rum/v2/merge_error.js +171 -0
- package/dist/proto-models/com/coralogix/rum/v2/release_entity_metadata.d.ts +4 -0
- package/dist/proto-models/com/coralogix/rum/v2/release_entity_metadata.js +93 -9
- package/dist/proto-models/com/coralogix/rum/v2/rum_merge_erros_service.d.ts +197 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_merge_erros_service.js +478 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.d.ts +107 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.js +385 -2
- package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.d.ts +46 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.js +142 -2
- package/dist/proto-models/com/coralogix/rum/v2/saved_filter.d.ts +4 -1
- package/dist/proto-models/com/coralogix/rum/v2/saved_filter.js +19 -1
- package/dist/proto-models/com/coralogix/rum/v2/template.d.ts +2 -0
- package/dist/proto-models/com/coralogix/rum/v2/template.js +31 -3
- package/dist/services/source-maps/source-maps.service.d.ts +1 -0
- package/dist/services/source-maps/source-maps.service.js +23 -1
- package/models/source-maps-commands.model.ts +1 -0
- package/package.json +1 -1
- package/proto-models/com/coralogix/blobset/v2/blobset_query_service.ts +28 -0
- package/proto-models/com/coralogix/blobset/v2/case_file.ts +188 -0
- package/proto-models/com/coralogix/blobset/v2/dsym.ts +35 -1
- package/proto-models/com/coralogix/blobset/v2/entity_metadata.ts +243 -1
- package/proto-models/com/coralogix/blobset/v2/entity_type.ts +12 -0
- package/proto-models/com/coralogix/blobset/v2/investigation_file.ts +188 -0
- package/proto-models/com/coralogix/blobset/v2/proguard.ts +466 -0
- package/proto-models/com/coralogix/rum/v2/application_releases.ts +213 -0
- package/proto-models/com/coralogix/rum/v2/merge_error.ts +201 -0
- package/proto-models/com/coralogix/rum/v2/release_entity_metadata.ts +96 -4
- package/proto-models/com/coralogix/rum/v2/rum_merge_erros_service.ts +566 -0
- package/proto-models/com/coralogix/rum/v2/rum_service.ts +462 -0
- package/proto-models/com/coralogix/rum/v2/rum_source_map_service.ts +164 -0
- package/proto-models/com/coralogix/rum/v2/saved_filter.ts +18 -0
- package/proto-models/com/coralogix/rum/v2/template.ts +33 -1
- package/protofetch.lock +4 -4
- package/protofetch.toml +2 -2
- package/protos/com/coralogix/blobset/v2/blobset_query_service.proto +7 -0
- package/protos/com/coralogix/blobset/v2/case_file.proto +12 -0
- package/protos/com/coralogix/blobset/v2/dsym.proto +1 -0
- package/protos/com/coralogix/blobset/v2/entity_metadata.proto +14 -1
- package/protos/com/coralogix/blobset/v2/entity_type.proto +3 -1
- package/protos/com/coralogix/blobset/v2/investigation_file.proto +12 -0
- package/protos/com/coralogix/blobset/v2/proguard.proto +30 -0
- package/protos/com/coralogix/rum/v2/application_releases.proto +14 -0
- package/protos/com/coralogix/rum/v2/merge_error.proto +13 -0
- package/protos/com/coralogix/rum/v2/release_entity_metadata.proto +7 -0
- package/protos/com/coralogix/rum/v2/rum_merge_erros_service.proto +42 -0
- package/protos/com/coralogix/rum/v2/rum_service.proto +23 -0
- package/protos/com/coralogix/rum/v2/rum_source_map_service.proto +11 -0
- package/protos/com/coralogix/rum/v2/saved_filter.proto +3 -0
- package/protos/com/coralogix/rum/v2/template.proto +2 -0
- package/protoset.bin +0 -0
- package/services/source-maps/source-maps.service.ts +26 -0
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v1.181.1
|
|
4
|
+
// protoc v3.19.1
|
|
5
|
+
// source: com/coralogix/blobset/v2/investigation_file.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import _m0 from "protobufjs/minimal";
|
|
9
|
+
|
|
10
|
+
export const protobufPackage = "com.coralogix.blobset.v2";
|
|
11
|
+
|
|
12
|
+
export interface GetInvestigationFileRequest {
|
|
13
|
+
fileId: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface GetInvestigationFileResponse {
|
|
17
|
+
data: Uint8Array;
|
|
18
|
+
fileName: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function createBaseGetInvestigationFileRequest(): GetInvestigationFileRequest {
|
|
22
|
+
return { fileId: "" };
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const GetInvestigationFileRequest = {
|
|
26
|
+
encode(message: GetInvestigationFileRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
27
|
+
if (message.fileId !== "") {
|
|
28
|
+
writer.uint32(10).string(message.fileId);
|
|
29
|
+
}
|
|
30
|
+
return writer;
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetInvestigationFileRequest {
|
|
34
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
35
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36
|
+
const message = createBaseGetInvestigationFileRequest();
|
|
37
|
+
while (reader.pos < end) {
|
|
38
|
+
const tag = reader.uint32();
|
|
39
|
+
switch (tag >>> 3) {
|
|
40
|
+
case 1:
|
|
41
|
+
if (tag !== 10) {
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
message.fileId = reader.string();
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
reader.skipType(tag & 7);
|
|
52
|
+
}
|
|
53
|
+
return message;
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
fromJSON(object: any): GetInvestigationFileRequest {
|
|
57
|
+
return { fileId: isSet(object.fileId) ? globalThis.String(object.fileId) : "" };
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
toJSON(message: GetInvestigationFileRequest): unknown {
|
|
61
|
+
const obj: any = {};
|
|
62
|
+
if (message.fileId !== "") {
|
|
63
|
+
obj.fileId = message.fileId;
|
|
64
|
+
}
|
|
65
|
+
return obj;
|
|
66
|
+
},
|
|
67
|
+
|
|
68
|
+
create(base?: DeepPartial<GetInvestigationFileRequest>): GetInvestigationFileRequest {
|
|
69
|
+
return GetInvestigationFileRequest.fromPartial(base ?? {});
|
|
70
|
+
},
|
|
71
|
+
fromPartial(object: DeepPartial<GetInvestigationFileRequest>): GetInvestigationFileRequest {
|
|
72
|
+
const message = createBaseGetInvestigationFileRequest();
|
|
73
|
+
message.fileId = object.fileId ?? "";
|
|
74
|
+
return message;
|
|
75
|
+
},
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
function createBaseGetInvestigationFileResponse(): GetInvestigationFileResponse {
|
|
79
|
+
return { data: new Uint8Array(0), fileName: "" };
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export const GetInvestigationFileResponse = {
|
|
83
|
+
encode(message: GetInvestigationFileResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
84
|
+
if (message.data.length !== 0) {
|
|
85
|
+
writer.uint32(10).bytes(message.data);
|
|
86
|
+
}
|
|
87
|
+
if (message.fileName !== "") {
|
|
88
|
+
writer.uint32(18).string(message.fileName);
|
|
89
|
+
}
|
|
90
|
+
return writer;
|
|
91
|
+
},
|
|
92
|
+
|
|
93
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetInvestigationFileResponse {
|
|
94
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
95
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
96
|
+
const message = createBaseGetInvestigationFileResponse();
|
|
97
|
+
while (reader.pos < end) {
|
|
98
|
+
const tag = reader.uint32();
|
|
99
|
+
switch (tag >>> 3) {
|
|
100
|
+
case 1:
|
|
101
|
+
if (tag !== 10) {
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
message.data = reader.bytes();
|
|
106
|
+
continue;
|
|
107
|
+
case 2:
|
|
108
|
+
if (tag !== 18) {
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
message.fileName = reader.string();
|
|
113
|
+
continue;
|
|
114
|
+
}
|
|
115
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
reader.skipType(tag & 7);
|
|
119
|
+
}
|
|
120
|
+
return message;
|
|
121
|
+
},
|
|
122
|
+
|
|
123
|
+
fromJSON(object: any): GetInvestigationFileResponse {
|
|
124
|
+
return {
|
|
125
|
+
data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(0),
|
|
126
|
+
fileName: isSet(object.fileName) ? globalThis.String(object.fileName) : "",
|
|
127
|
+
};
|
|
128
|
+
},
|
|
129
|
+
|
|
130
|
+
toJSON(message: GetInvestigationFileResponse): unknown {
|
|
131
|
+
const obj: any = {};
|
|
132
|
+
if (message.data.length !== 0) {
|
|
133
|
+
obj.data = base64FromBytes(message.data);
|
|
134
|
+
}
|
|
135
|
+
if (message.fileName !== "") {
|
|
136
|
+
obj.fileName = message.fileName;
|
|
137
|
+
}
|
|
138
|
+
return obj;
|
|
139
|
+
},
|
|
140
|
+
|
|
141
|
+
create(base?: DeepPartial<GetInvestigationFileResponse>): GetInvestigationFileResponse {
|
|
142
|
+
return GetInvestigationFileResponse.fromPartial(base ?? {});
|
|
143
|
+
},
|
|
144
|
+
fromPartial(object: DeepPartial<GetInvestigationFileResponse>): GetInvestigationFileResponse {
|
|
145
|
+
const message = createBaseGetInvestigationFileResponse();
|
|
146
|
+
message.data = object.data ?? new Uint8Array(0);
|
|
147
|
+
message.fileName = object.fileName ?? "";
|
|
148
|
+
return message;
|
|
149
|
+
},
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
function bytesFromBase64(b64: string): Uint8Array {
|
|
153
|
+
if ((globalThis as any).Buffer) {
|
|
154
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
155
|
+
} else {
|
|
156
|
+
const bin = globalThis.atob(b64);
|
|
157
|
+
const arr = new Uint8Array(bin.length);
|
|
158
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
159
|
+
arr[i] = bin.charCodeAt(i);
|
|
160
|
+
}
|
|
161
|
+
return arr;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
function base64FromBytes(arr: Uint8Array): string {
|
|
166
|
+
if ((globalThis as any).Buffer) {
|
|
167
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
168
|
+
} else {
|
|
169
|
+
const bin: string[] = [];
|
|
170
|
+
arr.forEach((byte) => {
|
|
171
|
+
bin.push(globalThis.String.fromCharCode(byte));
|
|
172
|
+
});
|
|
173
|
+
return globalThis.btoa(bin.join(""));
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
178
|
+
|
|
179
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
180
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
181
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
182
|
+
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
183
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
184
|
+
: Partial<T>;
|
|
185
|
+
|
|
186
|
+
function isSet(value: any): boolean {
|
|
187
|
+
return value !== null && value !== undefined;
|
|
188
|
+
}
|
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v1.181.1
|
|
4
|
+
// protoc v3.19.1
|
|
5
|
+
// source: com/coralogix/blobset/v2/proguard.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import _m0 from "protobufjs/minimal";
|
|
9
|
+
|
|
10
|
+
export const protobufPackage = "com.coralogix.blobset.v2";
|
|
11
|
+
|
|
12
|
+
export interface StackFrame {
|
|
13
|
+
className: string;
|
|
14
|
+
functionName: string;
|
|
15
|
+
lineNumber: number;
|
|
16
|
+
fileName?: string | undefined;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface StackFrameMapping {
|
|
20
|
+
originalFrame: StackFrame | undefined;
|
|
21
|
+
mappedFrame: StackFrame | undefined;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface GetMappedAndroidStackTraceRequest {
|
|
25
|
+
application: string;
|
|
26
|
+
releaseId: string;
|
|
27
|
+
stackFrames: StackFrame[];
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface GetMappedAndroidStackTraceResponse {
|
|
31
|
+
application: string;
|
|
32
|
+
releaseId: string;
|
|
33
|
+
mappedStackFrames: StackFrameMapping[];
|
|
34
|
+
commitHash?: string | undefined;
|
|
35
|
+
repoName?: string | undefined;
|
|
36
|
+
user?: string | undefined;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function createBaseStackFrame(): StackFrame {
|
|
40
|
+
return { className: "", functionName: "", lineNumber: 0, fileName: undefined };
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export const StackFrame = {
|
|
44
|
+
encode(message: StackFrame, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
45
|
+
if (message.className !== "") {
|
|
46
|
+
writer.uint32(10).string(message.className);
|
|
47
|
+
}
|
|
48
|
+
if (message.functionName !== "") {
|
|
49
|
+
writer.uint32(18).string(message.functionName);
|
|
50
|
+
}
|
|
51
|
+
if (message.lineNumber !== 0) {
|
|
52
|
+
writer.uint32(24).int32(message.lineNumber);
|
|
53
|
+
}
|
|
54
|
+
if (message.fileName !== undefined) {
|
|
55
|
+
writer.uint32(34).string(message.fileName);
|
|
56
|
+
}
|
|
57
|
+
return writer;
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): StackFrame {
|
|
61
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
62
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
63
|
+
const message = createBaseStackFrame();
|
|
64
|
+
while (reader.pos < end) {
|
|
65
|
+
const tag = reader.uint32();
|
|
66
|
+
switch (tag >>> 3) {
|
|
67
|
+
case 1:
|
|
68
|
+
if (tag !== 10) {
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
message.className = reader.string();
|
|
73
|
+
continue;
|
|
74
|
+
case 2:
|
|
75
|
+
if (tag !== 18) {
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
message.functionName = reader.string();
|
|
80
|
+
continue;
|
|
81
|
+
case 3:
|
|
82
|
+
if (tag !== 24) {
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
message.lineNumber = reader.int32();
|
|
87
|
+
continue;
|
|
88
|
+
case 4:
|
|
89
|
+
if (tag !== 34) {
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
message.fileName = reader.string();
|
|
94
|
+
continue;
|
|
95
|
+
}
|
|
96
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
reader.skipType(tag & 7);
|
|
100
|
+
}
|
|
101
|
+
return message;
|
|
102
|
+
},
|
|
103
|
+
|
|
104
|
+
fromJSON(object: any): StackFrame {
|
|
105
|
+
return {
|
|
106
|
+
className: isSet(object.className) ? globalThis.String(object.className) : "",
|
|
107
|
+
functionName: isSet(object.functionName) ? globalThis.String(object.functionName) : "",
|
|
108
|
+
lineNumber: isSet(object.lineNumber) ? globalThis.Number(object.lineNumber) : 0,
|
|
109
|
+
fileName: isSet(object.fileName) ? globalThis.String(object.fileName) : undefined,
|
|
110
|
+
};
|
|
111
|
+
},
|
|
112
|
+
|
|
113
|
+
toJSON(message: StackFrame): unknown {
|
|
114
|
+
const obj: any = {};
|
|
115
|
+
if (message.className !== "") {
|
|
116
|
+
obj.className = message.className;
|
|
117
|
+
}
|
|
118
|
+
if (message.functionName !== "") {
|
|
119
|
+
obj.functionName = message.functionName;
|
|
120
|
+
}
|
|
121
|
+
if (message.lineNumber !== 0) {
|
|
122
|
+
obj.lineNumber = Math.round(message.lineNumber);
|
|
123
|
+
}
|
|
124
|
+
if (message.fileName !== undefined) {
|
|
125
|
+
obj.fileName = message.fileName;
|
|
126
|
+
}
|
|
127
|
+
return obj;
|
|
128
|
+
},
|
|
129
|
+
|
|
130
|
+
create(base?: DeepPartial<StackFrame>): StackFrame {
|
|
131
|
+
return StackFrame.fromPartial(base ?? {});
|
|
132
|
+
},
|
|
133
|
+
fromPartial(object: DeepPartial<StackFrame>): StackFrame {
|
|
134
|
+
const message = createBaseStackFrame();
|
|
135
|
+
message.className = object.className ?? "";
|
|
136
|
+
message.functionName = object.functionName ?? "";
|
|
137
|
+
message.lineNumber = object.lineNumber ?? 0;
|
|
138
|
+
message.fileName = object.fileName ?? undefined;
|
|
139
|
+
return message;
|
|
140
|
+
},
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
function createBaseStackFrameMapping(): StackFrameMapping {
|
|
144
|
+
return { originalFrame: undefined, mappedFrame: undefined };
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export const StackFrameMapping = {
|
|
148
|
+
encode(message: StackFrameMapping, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
149
|
+
if (message.originalFrame !== undefined) {
|
|
150
|
+
StackFrame.encode(message.originalFrame, writer.uint32(10).fork()).ldelim();
|
|
151
|
+
}
|
|
152
|
+
if (message.mappedFrame !== undefined) {
|
|
153
|
+
StackFrame.encode(message.mappedFrame, writer.uint32(18).fork()).ldelim();
|
|
154
|
+
}
|
|
155
|
+
return writer;
|
|
156
|
+
},
|
|
157
|
+
|
|
158
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): StackFrameMapping {
|
|
159
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
160
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
161
|
+
const message = createBaseStackFrameMapping();
|
|
162
|
+
while (reader.pos < end) {
|
|
163
|
+
const tag = reader.uint32();
|
|
164
|
+
switch (tag >>> 3) {
|
|
165
|
+
case 1:
|
|
166
|
+
if (tag !== 10) {
|
|
167
|
+
break;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
message.originalFrame = StackFrame.decode(reader, reader.uint32());
|
|
171
|
+
continue;
|
|
172
|
+
case 2:
|
|
173
|
+
if (tag !== 18) {
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
message.mappedFrame = StackFrame.decode(reader, reader.uint32());
|
|
178
|
+
continue;
|
|
179
|
+
}
|
|
180
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
181
|
+
break;
|
|
182
|
+
}
|
|
183
|
+
reader.skipType(tag & 7);
|
|
184
|
+
}
|
|
185
|
+
return message;
|
|
186
|
+
},
|
|
187
|
+
|
|
188
|
+
fromJSON(object: any): StackFrameMapping {
|
|
189
|
+
return {
|
|
190
|
+
originalFrame: isSet(object.originalFrame) ? StackFrame.fromJSON(object.originalFrame) : undefined,
|
|
191
|
+
mappedFrame: isSet(object.mappedFrame) ? StackFrame.fromJSON(object.mappedFrame) : undefined,
|
|
192
|
+
};
|
|
193
|
+
},
|
|
194
|
+
|
|
195
|
+
toJSON(message: StackFrameMapping): unknown {
|
|
196
|
+
const obj: any = {};
|
|
197
|
+
if (message.originalFrame !== undefined) {
|
|
198
|
+
obj.originalFrame = StackFrame.toJSON(message.originalFrame);
|
|
199
|
+
}
|
|
200
|
+
if (message.mappedFrame !== undefined) {
|
|
201
|
+
obj.mappedFrame = StackFrame.toJSON(message.mappedFrame);
|
|
202
|
+
}
|
|
203
|
+
return obj;
|
|
204
|
+
},
|
|
205
|
+
|
|
206
|
+
create(base?: DeepPartial<StackFrameMapping>): StackFrameMapping {
|
|
207
|
+
return StackFrameMapping.fromPartial(base ?? {});
|
|
208
|
+
},
|
|
209
|
+
fromPartial(object: DeepPartial<StackFrameMapping>): StackFrameMapping {
|
|
210
|
+
const message = createBaseStackFrameMapping();
|
|
211
|
+
message.originalFrame = (object.originalFrame !== undefined && object.originalFrame !== null)
|
|
212
|
+
? StackFrame.fromPartial(object.originalFrame)
|
|
213
|
+
: undefined;
|
|
214
|
+
message.mappedFrame = (object.mappedFrame !== undefined && object.mappedFrame !== null)
|
|
215
|
+
? StackFrame.fromPartial(object.mappedFrame)
|
|
216
|
+
: undefined;
|
|
217
|
+
return message;
|
|
218
|
+
},
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
function createBaseGetMappedAndroidStackTraceRequest(): GetMappedAndroidStackTraceRequest {
|
|
222
|
+
return { application: "", releaseId: "", stackFrames: [] };
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export const GetMappedAndroidStackTraceRequest = {
|
|
226
|
+
encode(message: GetMappedAndroidStackTraceRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
227
|
+
if (message.application !== "") {
|
|
228
|
+
writer.uint32(10).string(message.application);
|
|
229
|
+
}
|
|
230
|
+
if (message.releaseId !== "") {
|
|
231
|
+
writer.uint32(18).string(message.releaseId);
|
|
232
|
+
}
|
|
233
|
+
for (const v of message.stackFrames) {
|
|
234
|
+
StackFrame.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
235
|
+
}
|
|
236
|
+
return writer;
|
|
237
|
+
},
|
|
238
|
+
|
|
239
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetMappedAndroidStackTraceRequest {
|
|
240
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
241
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
242
|
+
const message = createBaseGetMappedAndroidStackTraceRequest();
|
|
243
|
+
while (reader.pos < end) {
|
|
244
|
+
const tag = reader.uint32();
|
|
245
|
+
switch (tag >>> 3) {
|
|
246
|
+
case 1:
|
|
247
|
+
if (tag !== 10) {
|
|
248
|
+
break;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
message.application = reader.string();
|
|
252
|
+
continue;
|
|
253
|
+
case 2:
|
|
254
|
+
if (tag !== 18) {
|
|
255
|
+
break;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
message.releaseId = reader.string();
|
|
259
|
+
continue;
|
|
260
|
+
case 3:
|
|
261
|
+
if (tag !== 26) {
|
|
262
|
+
break;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
message.stackFrames.push(StackFrame.decode(reader, reader.uint32()));
|
|
266
|
+
continue;
|
|
267
|
+
}
|
|
268
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
269
|
+
break;
|
|
270
|
+
}
|
|
271
|
+
reader.skipType(tag & 7);
|
|
272
|
+
}
|
|
273
|
+
return message;
|
|
274
|
+
},
|
|
275
|
+
|
|
276
|
+
fromJSON(object: any): GetMappedAndroidStackTraceRequest {
|
|
277
|
+
return {
|
|
278
|
+
application: isSet(object.application) ? globalThis.String(object.application) : "",
|
|
279
|
+
releaseId: isSet(object.releaseId) ? globalThis.String(object.releaseId) : "",
|
|
280
|
+
stackFrames: globalThis.Array.isArray(object?.stackFrames)
|
|
281
|
+
? object.stackFrames.map((e: any) => StackFrame.fromJSON(e))
|
|
282
|
+
: [],
|
|
283
|
+
};
|
|
284
|
+
},
|
|
285
|
+
|
|
286
|
+
toJSON(message: GetMappedAndroidStackTraceRequest): unknown {
|
|
287
|
+
const obj: any = {};
|
|
288
|
+
if (message.application !== "") {
|
|
289
|
+
obj.application = message.application;
|
|
290
|
+
}
|
|
291
|
+
if (message.releaseId !== "") {
|
|
292
|
+
obj.releaseId = message.releaseId;
|
|
293
|
+
}
|
|
294
|
+
if (message.stackFrames?.length) {
|
|
295
|
+
obj.stackFrames = message.stackFrames.map((e) => StackFrame.toJSON(e));
|
|
296
|
+
}
|
|
297
|
+
return obj;
|
|
298
|
+
},
|
|
299
|
+
|
|
300
|
+
create(base?: DeepPartial<GetMappedAndroidStackTraceRequest>): GetMappedAndroidStackTraceRequest {
|
|
301
|
+
return GetMappedAndroidStackTraceRequest.fromPartial(base ?? {});
|
|
302
|
+
},
|
|
303
|
+
fromPartial(object: DeepPartial<GetMappedAndroidStackTraceRequest>): GetMappedAndroidStackTraceRequest {
|
|
304
|
+
const message = createBaseGetMappedAndroidStackTraceRequest();
|
|
305
|
+
message.application = object.application ?? "";
|
|
306
|
+
message.releaseId = object.releaseId ?? "";
|
|
307
|
+
message.stackFrames = object.stackFrames?.map((e) => StackFrame.fromPartial(e)) || [];
|
|
308
|
+
return message;
|
|
309
|
+
},
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
function createBaseGetMappedAndroidStackTraceResponse(): GetMappedAndroidStackTraceResponse {
|
|
313
|
+
return {
|
|
314
|
+
application: "",
|
|
315
|
+
releaseId: "",
|
|
316
|
+
mappedStackFrames: [],
|
|
317
|
+
commitHash: undefined,
|
|
318
|
+
repoName: undefined,
|
|
319
|
+
user: undefined,
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export const GetMappedAndroidStackTraceResponse = {
|
|
324
|
+
encode(message: GetMappedAndroidStackTraceResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
325
|
+
if (message.application !== "") {
|
|
326
|
+
writer.uint32(10).string(message.application);
|
|
327
|
+
}
|
|
328
|
+
if (message.releaseId !== "") {
|
|
329
|
+
writer.uint32(18).string(message.releaseId);
|
|
330
|
+
}
|
|
331
|
+
for (const v of message.mappedStackFrames) {
|
|
332
|
+
StackFrameMapping.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
333
|
+
}
|
|
334
|
+
if (message.commitHash !== undefined) {
|
|
335
|
+
writer.uint32(34).string(message.commitHash);
|
|
336
|
+
}
|
|
337
|
+
if (message.repoName !== undefined) {
|
|
338
|
+
writer.uint32(42).string(message.repoName);
|
|
339
|
+
}
|
|
340
|
+
if (message.user !== undefined) {
|
|
341
|
+
writer.uint32(50).string(message.user);
|
|
342
|
+
}
|
|
343
|
+
return writer;
|
|
344
|
+
},
|
|
345
|
+
|
|
346
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetMappedAndroidStackTraceResponse {
|
|
347
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
348
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
349
|
+
const message = createBaseGetMappedAndroidStackTraceResponse();
|
|
350
|
+
while (reader.pos < end) {
|
|
351
|
+
const tag = reader.uint32();
|
|
352
|
+
switch (tag >>> 3) {
|
|
353
|
+
case 1:
|
|
354
|
+
if (tag !== 10) {
|
|
355
|
+
break;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
message.application = reader.string();
|
|
359
|
+
continue;
|
|
360
|
+
case 2:
|
|
361
|
+
if (tag !== 18) {
|
|
362
|
+
break;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
message.releaseId = reader.string();
|
|
366
|
+
continue;
|
|
367
|
+
case 3:
|
|
368
|
+
if (tag !== 26) {
|
|
369
|
+
break;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
message.mappedStackFrames.push(StackFrameMapping.decode(reader, reader.uint32()));
|
|
373
|
+
continue;
|
|
374
|
+
case 4:
|
|
375
|
+
if (tag !== 34) {
|
|
376
|
+
break;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
message.commitHash = reader.string();
|
|
380
|
+
continue;
|
|
381
|
+
case 5:
|
|
382
|
+
if (tag !== 42) {
|
|
383
|
+
break;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
message.repoName = reader.string();
|
|
387
|
+
continue;
|
|
388
|
+
case 6:
|
|
389
|
+
if (tag !== 50) {
|
|
390
|
+
break;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
message.user = reader.string();
|
|
394
|
+
continue;
|
|
395
|
+
}
|
|
396
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
397
|
+
break;
|
|
398
|
+
}
|
|
399
|
+
reader.skipType(tag & 7);
|
|
400
|
+
}
|
|
401
|
+
return message;
|
|
402
|
+
},
|
|
403
|
+
|
|
404
|
+
fromJSON(object: any): GetMappedAndroidStackTraceResponse {
|
|
405
|
+
return {
|
|
406
|
+
application: isSet(object.application) ? globalThis.String(object.application) : "",
|
|
407
|
+
releaseId: isSet(object.releaseId) ? globalThis.String(object.releaseId) : "",
|
|
408
|
+
mappedStackFrames: globalThis.Array.isArray(object?.mappedStackFrames)
|
|
409
|
+
? object.mappedStackFrames.map((e: any) => StackFrameMapping.fromJSON(e))
|
|
410
|
+
: [],
|
|
411
|
+
commitHash: isSet(object.commitHash) ? globalThis.String(object.commitHash) : undefined,
|
|
412
|
+
repoName: isSet(object.repoName) ? globalThis.String(object.repoName) : undefined,
|
|
413
|
+
user: isSet(object.user) ? globalThis.String(object.user) : undefined,
|
|
414
|
+
};
|
|
415
|
+
},
|
|
416
|
+
|
|
417
|
+
toJSON(message: GetMappedAndroidStackTraceResponse): unknown {
|
|
418
|
+
const obj: any = {};
|
|
419
|
+
if (message.application !== "") {
|
|
420
|
+
obj.application = message.application;
|
|
421
|
+
}
|
|
422
|
+
if (message.releaseId !== "") {
|
|
423
|
+
obj.releaseId = message.releaseId;
|
|
424
|
+
}
|
|
425
|
+
if (message.mappedStackFrames?.length) {
|
|
426
|
+
obj.mappedStackFrames = message.mappedStackFrames.map((e) => StackFrameMapping.toJSON(e));
|
|
427
|
+
}
|
|
428
|
+
if (message.commitHash !== undefined) {
|
|
429
|
+
obj.commitHash = message.commitHash;
|
|
430
|
+
}
|
|
431
|
+
if (message.repoName !== undefined) {
|
|
432
|
+
obj.repoName = message.repoName;
|
|
433
|
+
}
|
|
434
|
+
if (message.user !== undefined) {
|
|
435
|
+
obj.user = message.user;
|
|
436
|
+
}
|
|
437
|
+
return obj;
|
|
438
|
+
},
|
|
439
|
+
|
|
440
|
+
create(base?: DeepPartial<GetMappedAndroidStackTraceResponse>): GetMappedAndroidStackTraceResponse {
|
|
441
|
+
return GetMappedAndroidStackTraceResponse.fromPartial(base ?? {});
|
|
442
|
+
},
|
|
443
|
+
fromPartial(object: DeepPartial<GetMappedAndroidStackTraceResponse>): GetMappedAndroidStackTraceResponse {
|
|
444
|
+
const message = createBaseGetMappedAndroidStackTraceResponse();
|
|
445
|
+
message.application = object.application ?? "";
|
|
446
|
+
message.releaseId = object.releaseId ?? "";
|
|
447
|
+
message.mappedStackFrames = object.mappedStackFrames?.map((e) => StackFrameMapping.fromPartial(e)) || [];
|
|
448
|
+
message.commitHash = object.commitHash ?? undefined;
|
|
449
|
+
message.repoName = object.repoName ?? undefined;
|
|
450
|
+
message.user = object.user ?? undefined;
|
|
451
|
+
return message;
|
|
452
|
+
},
|
|
453
|
+
};
|
|
454
|
+
|
|
455
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
456
|
+
|
|
457
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
458
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
459
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
460
|
+
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
461
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
462
|
+
: Partial<T>;
|
|
463
|
+
|
|
464
|
+
function isSet(value: any): boolean {
|
|
465
|
+
return value !== null && value !== undefined;
|
|
466
|
+
}
|