@coralogix/rum-cli 1.1.17 → 1.1.19
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/.prettierrc +15 -0
- package/README.md +26 -19
- package/api/rum-api.ts +104 -91
- package/cli/commands/delete-source-maps-command.ts +34 -0
- package/cli/commands/index.ts +7 -0
- package/cli/commands/update-source-maps-command.ts +38 -0
- package/cli/commands/upload-source-maps-command.ts +38 -0
- package/cli/rum-cli.ts +13 -47
- package/cli/validators/index.ts +9 -10
- package/config/config.ts +21 -21
- package/consts/consts.ts +16 -0
- package/dist/api/rum-api.d.ts +4 -3
- package/dist/api/rum-api.js +60 -72
- package/dist/cli/commands/delete-source-maps-command.d.ts +2 -0
- package/dist/cli/commands/delete-source-maps-command.js +43 -0
- package/dist/cli/commands/index.d.ts +6 -0
- package/dist/cli/commands/index.js +8 -0
- package/dist/cli/commands/update-source-maps-command.d.ts +2 -0
- package/dist/cli/commands/update-source-maps-command.js +47 -0
- package/dist/cli/commands/upload-source-maps-command.d.ts +2 -0
- package/dist/cli/commands/upload-source-maps-command.js +47 -0
- package/dist/cli/rum-cli.js +14 -55
- package/dist/cli/validators/index.js +5 -6
- package/dist/config/config.js +6 -5
- package/dist/{cli/theme/index.d.ts → consts/consts.d.ts} +2 -0
- package/dist/consts/consts.js +16 -0
- package/dist/models/commands.model.d.ts +29 -0
- package/dist/models/commands.model.js +3 -0
- 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_service.d.ts +89 -2
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.js +304 -78
- package/dist/proto-models/com/coralogix/rum/v2/rum_session_recording_service.d.ts +65 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_session_recording_service.js +174 -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 +306 -17
- 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 +14 -1
- package/dist/proto-models/com/coralogix/rum/v2/source_map_release.js +113 -33
- package/dist/proto-models/com/coralogix/rum/v2/template.d.ts +1 -1
- package/dist/proto-models/com/coralogix/rum/v2/template.js +66 -53
- package/dist/proto-models/google/protobuf/descriptor.d.ts +1 -1
- package/dist/proto-models/google/protobuf/descriptor.js +537 -427
- package/dist/services/source-maps.service.d.ts +5 -0
- package/dist/services/source-maps.service.js +80 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/index.js +115 -0
- package/models/commands.model.ts +31 -0
- package/package.json +5 -3
- 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_service.ts +345 -89
- package/proto-models/com/coralogix/rum/v2/rum_session_recording_service.ts +202 -0
- package/proto-models/com/coralogix/rum/v2/rum_source_map_service.ts +355 -18
- 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 +126 -36
- package/proto-models/com/coralogix/rum/v2/template.ts +67 -60
- 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_service.proto +16 -1
- package/protos/com/coralogix/rum/v2/rum_session_recording_service.proto +15 -0
- package/protos/com/coralogix/rum/v2/rum_source_map_service.proto +18 -0
- package/protos/com/coralogix/rum/v2/source_map_release.proto +6 -0
- package/protoset.bin +0 -0
- package/services/source-maps.service.ts +96 -0
- package/utils/index.ts +93 -0
- package/cli/consts/consts.ts +0 -2
- package/cli/theme/index.ts +0 -5
- package/dist/cli/consts/consts.d.ts +0 -2
- package/dist/cli/consts/consts.js +0 -6
- package/dist/cli/theme/index.js +0 -7
- package/dist/model/cli.model.d.ts +0 -1
- package/dist/model/cli.model.js +0 -12
- package/dist/services/source-maps/source-maps.service.d.ts +0 -3
- package/dist/services/source-maps/source-maps.service.js +0 -42
- package/dist/services/source-maps/utils/traverse-folder.util.d.ts +0 -2
- package/dist/services/source-maps/utils/traverse-folder.util.js +0 -42
- package/model/cli.model.ts +0 -8
- package/services/source-maps/source-maps.service.ts +0 -31
- package/services/source-maps/utils/traverse-folder.util.ts +0 -33
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
|
|
4
|
+
export const protobufPackage = "com.coralogix.rum.v2";
|
|
5
|
+
|
|
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) ? globalThis.String(object.sessionId) : "",
|
|
63
|
+
application: isSet(object.application) ? globalThis.String(object.application) : "",
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
|
|
67
|
+
toJSON(message: GetSessionRecordingRequest): unknown {
|
|
68
|
+
const obj: any = {};
|
|
69
|
+
if (message.sessionId !== "") {
|
|
70
|
+
obj.sessionId = message.sessionId;
|
|
71
|
+
}
|
|
72
|
+
if (message.application !== "") {
|
|
73
|
+
obj.application = message.application;
|
|
74
|
+
}
|
|
75
|
+
return obj;
|
|
76
|
+
},
|
|
77
|
+
|
|
78
|
+
create(base?: DeepPartial<GetSessionRecordingRequest>): GetSessionRecordingRequest {
|
|
79
|
+
return GetSessionRecordingRequest.fromPartial(base ?? {});
|
|
80
|
+
},
|
|
81
|
+
fromPartial(object: DeepPartial<GetSessionRecordingRequest>): GetSessionRecordingRequest {
|
|
82
|
+
const message = createBaseGetSessionRecordingRequest();
|
|
83
|
+
message.sessionId = object.sessionId ?? "";
|
|
84
|
+
message.application = object.application ?? "";
|
|
85
|
+
return message;
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
function createBaseGetSessionRecordingResponse(): GetSessionRecordingResponse {
|
|
90
|
+
return { sessionRecordings: new Uint8Array(0) };
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export const GetSessionRecordingResponse = {
|
|
94
|
+
encode(message: GetSessionRecordingResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
95
|
+
if (message.sessionRecordings.length !== 0) {
|
|
96
|
+
writer.uint32(10).bytes(message.sessionRecordings);
|
|
97
|
+
}
|
|
98
|
+
return writer;
|
|
99
|
+
},
|
|
100
|
+
|
|
101
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetSessionRecordingResponse {
|
|
102
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
103
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
104
|
+
const message = createBaseGetSessionRecordingResponse();
|
|
105
|
+
while (reader.pos < end) {
|
|
106
|
+
const tag = reader.uint32();
|
|
107
|
+
switch (tag >>> 3) {
|
|
108
|
+
case 1:
|
|
109
|
+
if (tag !== 10) {
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
message.sessionRecordings = reader.bytes();
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
116
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
reader.skipType(tag & 7);
|
|
120
|
+
}
|
|
121
|
+
return message;
|
|
122
|
+
},
|
|
123
|
+
|
|
124
|
+
fromJSON(object: any): GetSessionRecordingResponse {
|
|
125
|
+
return {
|
|
126
|
+
sessionRecordings: isSet(object.sessionRecordings)
|
|
127
|
+
? bytesFromBase64(object.sessionRecordings)
|
|
128
|
+
: new Uint8Array(0),
|
|
129
|
+
};
|
|
130
|
+
},
|
|
131
|
+
|
|
132
|
+
toJSON(message: GetSessionRecordingResponse): unknown {
|
|
133
|
+
const obj: any = {};
|
|
134
|
+
if (message.sessionRecordings.length !== 0) {
|
|
135
|
+
obj.sessionRecordings = base64FromBytes(message.sessionRecordings);
|
|
136
|
+
}
|
|
137
|
+
return obj;
|
|
138
|
+
},
|
|
139
|
+
|
|
140
|
+
create(base?: DeepPartial<GetSessionRecordingResponse>): GetSessionRecordingResponse {
|
|
141
|
+
return GetSessionRecordingResponse.fromPartial(base ?? {});
|
|
142
|
+
},
|
|
143
|
+
fromPartial(object: DeepPartial<GetSessionRecordingResponse>): GetSessionRecordingResponse {
|
|
144
|
+
const message = createBaseGetSessionRecordingResponse();
|
|
145
|
+
message.sessionRecordings = object.sessionRecordings ?? new Uint8Array(0);
|
|
146
|
+
return message;
|
|
147
|
+
},
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
export type RumSessionRecordingServiceDefinition = typeof RumSessionRecordingServiceDefinition;
|
|
151
|
+
export const RumSessionRecordingServiceDefinition = {
|
|
152
|
+
name: "RumSessionRecordingService",
|
|
153
|
+
fullName: "com.coralogix.rum.v2.RumSessionRecordingService",
|
|
154
|
+
methods: {
|
|
155
|
+
getSessionRecording: {
|
|
156
|
+
name: "GetSessionRecording",
|
|
157
|
+
requestType: GetSessionRecordingRequest,
|
|
158
|
+
requestStream: false,
|
|
159
|
+
responseType: GetSessionRecordingResponse,
|
|
160
|
+
responseStream: false,
|
|
161
|
+
options: {},
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
} as const;
|
|
165
|
+
|
|
166
|
+
function bytesFromBase64(b64: string): Uint8Array {
|
|
167
|
+
if (globalThis.Buffer) {
|
|
168
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
169
|
+
} else {
|
|
170
|
+
const bin = globalThis.atob(b64);
|
|
171
|
+
const arr = new Uint8Array(bin.length);
|
|
172
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
173
|
+
arr[i] = bin.charCodeAt(i);
|
|
174
|
+
}
|
|
175
|
+
return arr;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function base64FromBytes(arr: Uint8Array): string {
|
|
180
|
+
if (globalThis.Buffer) {
|
|
181
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
182
|
+
} else {
|
|
183
|
+
const bin: string[] = [];
|
|
184
|
+
arr.forEach((byte) => {
|
|
185
|
+
bin.push(globalThis.String.fromCharCode(byte));
|
|
186
|
+
});
|
|
187
|
+
return globalThis.btoa(bin.join(""));
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
192
|
+
|
|
193
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
194
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
195
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
196
|
+
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
197
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
198
|
+
: Partial<T>;
|
|
199
|
+
|
|
200
|
+
function isSet(value: any): boolean {
|
|
201
|
+
return value !== null && value !== undefined;
|
|
202
|
+
}
|
|
@@ -13,9 +13,29 @@ export interface UploadSourceMapsRequest {
|
|
|
13
13
|
files: FileMetadata[];
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
export interface UpdateSourceMapRequest {
|
|
17
|
+
application: string;
|
|
18
|
+
releaseId: string;
|
|
19
|
+
commitHash?: string | undefined;
|
|
20
|
+
repoName?: string | undefined;
|
|
21
|
+
user?: string | undefined;
|
|
22
|
+
files: FileMetadata[];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface DeleteSourceMapRequest {
|
|
26
|
+
application: string;
|
|
27
|
+
releaseId: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
16
30
|
export interface UploadSourceMapsResponse {
|
|
17
31
|
}
|
|
18
32
|
|
|
33
|
+
export interface UpdateSourceMapResponse {
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface DeleteSourceMapResponse {
|
|
37
|
+
}
|
|
38
|
+
|
|
19
39
|
function createBaseUploadSourceMapsRequest(): UploadSourceMapsRequest {
|
|
20
40
|
return { application: "", releaseId: "", commitHash: undefined, repoName: undefined, user: undefined, files: [] };
|
|
21
41
|
}
|
|
@@ -103,26 +123,34 @@ export const UploadSourceMapsRequest = {
|
|
|
103
123
|
|
|
104
124
|
fromJSON(object: any): UploadSourceMapsRequest {
|
|
105
125
|
return {
|
|
106
|
-
application: isSet(object.application) ? String(object.application) : "",
|
|
107
|
-
releaseId: isSet(object.releaseId) ? String(object.releaseId) : "",
|
|
108
|
-
commitHash: isSet(object.commitHash) ? String(object.commitHash) : undefined,
|
|
109
|
-
repoName: isSet(object.repoName) ? String(object.repoName) : undefined,
|
|
110
|
-
user: isSet(object.user) ? String(object.user) : undefined,
|
|
111
|
-
files: Array.isArray(object?.files) ? object.files.map((e: any) => FileMetadata.fromJSON(e)) : [],
|
|
126
|
+
application: isSet(object.application) ? globalThis.String(object.application) : "",
|
|
127
|
+
releaseId: isSet(object.releaseId) ? globalThis.String(object.releaseId) : "",
|
|
128
|
+
commitHash: isSet(object.commitHash) ? globalThis.String(object.commitHash) : undefined,
|
|
129
|
+
repoName: isSet(object.repoName) ? globalThis.String(object.repoName) : undefined,
|
|
130
|
+
user: isSet(object.user) ? globalThis.String(object.user) : undefined,
|
|
131
|
+
files: globalThis.Array.isArray(object?.files) ? object.files.map((e: any) => FileMetadata.fromJSON(e)) : [],
|
|
112
132
|
};
|
|
113
133
|
},
|
|
114
134
|
|
|
115
135
|
toJSON(message: UploadSourceMapsRequest): unknown {
|
|
116
136
|
const obj: any = {};
|
|
117
|
-
message.application !==
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
message.
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
137
|
+
if (message.application !== "") {
|
|
138
|
+
obj.application = message.application;
|
|
139
|
+
}
|
|
140
|
+
if (message.releaseId !== "") {
|
|
141
|
+
obj.releaseId = message.releaseId;
|
|
142
|
+
}
|
|
143
|
+
if (message.commitHash !== undefined) {
|
|
144
|
+
obj.commitHash = message.commitHash;
|
|
145
|
+
}
|
|
146
|
+
if (message.repoName !== undefined) {
|
|
147
|
+
obj.repoName = message.repoName;
|
|
148
|
+
}
|
|
149
|
+
if (message.user !== undefined) {
|
|
150
|
+
obj.user = message.user;
|
|
151
|
+
}
|
|
152
|
+
if (message.files?.length) {
|
|
153
|
+
obj.files = message.files.map((e) => FileMetadata.toJSON(e));
|
|
126
154
|
}
|
|
127
155
|
return obj;
|
|
128
156
|
},
|
|
@@ -130,7 +158,6 @@ export const UploadSourceMapsRequest = {
|
|
|
130
158
|
create(base?: DeepPartial<UploadSourceMapsRequest>): UploadSourceMapsRequest {
|
|
131
159
|
return UploadSourceMapsRequest.fromPartial(base ?? {});
|
|
132
160
|
},
|
|
133
|
-
|
|
134
161
|
fromPartial(object: DeepPartial<UploadSourceMapsRequest>): UploadSourceMapsRequest {
|
|
135
162
|
const message = createBaseUploadSourceMapsRequest();
|
|
136
163
|
message.application = object.application ?? "";
|
|
@@ -143,6 +170,214 @@ export const UploadSourceMapsRequest = {
|
|
|
143
170
|
},
|
|
144
171
|
};
|
|
145
172
|
|
|
173
|
+
function createBaseUpdateSourceMapRequest(): UpdateSourceMapRequest {
|
|
174
|
+
return { application: "", releaseId: "", commitHash: undefined, repoName: undefined, user: undefined, files: [] };
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export const UpdateSourceMapRequest = {
|
|
178
|
+
encode(message: UpdateSourceMapRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
179
|
+
if (message.application !== "") {
|
|
180
|
+
writer.uint32(10).string(message.application);
|
|
181
|
+
}
|
|
182
|
+
if (message.releaseId !== "") {
|
|
183
|
+
writer.uint32(18).string(message.releaseId);
|
|
184
|
+
}
|
|
185
|
+
if (message.commitHash !== undefined) {
|
|
186
|
+
writer.uint32(26).string(message.commitHash);
|
|
187
|
+
}
|
|
188
|
+
if (message.repoName !== undefined) {
|
|
189
|
+
writer.uint32(34).string(message.repoName);
|
|
190
|
+
}
|
|
191
|
+
if (message.user !== undefined) {
|
|
192
|
+
writer.uint32(42).string(message.user);
|
|
193
|
+
}
|
|
194
|
+
for (const v of message.files) {
|
|
195
|
+
FileMetadata.encode(v!, writer.uint32(50).fork()).ldelim();
|
|
196
|
+
}
|
|
197
|
+
return writer;
|
|
198
|
+
},
|
|
199
|
+
|
|
200
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateSourceMapRequest {
|
|
201
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
202
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
203
|
+
const message = createBaseUpdateSourceMapRequest();
|
|
204
|
+
while (reader.pos < end) {
|
|
205
|
+
const tag = reader.uint32();
|
|
206
|
+
switch (tag >>> 3) {
|
|
207
|
+
case 1:
|
|
208
|
+
if (tag !== 10) {
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
message.application = reader.string();
|
|
213
|
+
continue;
|
|
214
|
+
case 2:
|
|
215
|
+
if (tag !== 18) {
|
|
216
|
+
break;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
message.releaseId = reader.string();
|
|
220
|
+
continue;
|
|
221
|
+
case 3:
|
|
222
|
+
if (tag !== 26) {
|
|
223
|
+
break;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
message.commitHash = reader.string();
|
|
227
|
+
continue;
|
|
228
|
+
case 4:
|
|
229
|
+
if (tag !== 34) {
|
|
230
|
+
break;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
message.repoName = reader.string();
|
|
234
|
+
continue;
|
|
235
|
+
case 5:
|
|
236
|
+
if (tag !== 42) {
|
|
237
|
+
break;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
message.user = reader.string();
|
|
241
|
+
continue;
|
|
242
|
+
case 6:
|
|
243
|
+
if (tag !== 50) {
|
|
244
|
+
break;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
message.files.push(FileMetadata.decode(reader, reader.uint32()));
|
|
248
|
+
continue;
|
|
249
|
+
}
|
|
250
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
251
|
+
break;
|
|
252
|
+
}
|
|
253
|
+
reader.skipType(tag & 7);
|
|
254
|
+
}
|
|
255
|
+
return message;
|
|
256
|
+
},
|
|
257
|
+
|
|
258
|
+
fromJSON(object: any): UpdateSourceMapRequest {
|
|
259
|
+
return {
|
|
260
|
+
application: isSet(object.application) ? globalThis.String(object.application) : "",
|
|
261
|
+
releaseId: isSet(object.releaseId) ? globalThis.String(object.releaseId) : "",
|
|
262
|
+
commitHash: isSet(object.commitHash) ? globalThis.String(object.commitHash) : undefined,
|
|
263
|
+
repoName: isSet(object.repoName) ? globalThis.String(object.repoName) : undefined,
|
|
264
|
+
user: isSet(object.user) ? globalThis.String(object.user) : undefined,
|
|
265
|
+
files: globalThis.Array.isArray(object?.files) ? object.files.map((e: any) => FileMetadata.fromJSON(e)) : [],
|
|
266
|
+
};
|
|
267
|
+
},
|
|
268
|
+
|
|
269
|
+
toJSON(message: UpdateSourceMapRequest): unknown {
|
|
270
|
+
const obj: any = {};
|
|
271
|
+
if (message.application !== "") {
|
|
272
|
+
obj.application = message.application;
|
|
273
|
+
}
|
|
274
|
+
if (message.releaseId !== "") {
|
|
275
|
+
obj.releaseId = message.releaseId;
|
|
276
|
+
}
|
|
277
|
+
if (message.commitHash !== undefined) {
|
|
278
|
+
obj.commitHash = message.commitHash;
|
|
279
|
+
}
|
|
280
|
+
if (message.repoName !== undefined) {
|
|
281
|
+
obj.repoName = message.repoName;
|
|
282
|
+
}
|
|
283
|
+
if (message.user !== undefined) {
|
|
284
|
+
obj.user = message.user;
|
|
285
|
+
}
|
|
286
|
+
if (message.files?.length) {
|
|
287
|
+
obj.files = message.files.map((e) => FileMetadata.toJSON(e));
|
|
288
|
+
}
|
|
289
|
+
return obj;
|
|
290
|
+
},
|
|
291
|
+
|
|
292
|
+
create(base?: DeepPartial<UpdateSourceMapRequest>): UpdateSourceMapRequest {
|
|
293
|
+
return UpdateSourceMapRequest.fromPartial(base ?? {});
|
|
294
|
+
},
|
|
295
|
+
fromPartial(object: DeepPartial<UpdateSourceMapRequest>): UpdateSourceMapRequest {
|
|
296
|
+
const message = createBaseUpdateSourceMapRequest();
|
|
297
|
+
message.application = object.application ?? "";
|
|
298
|
+
message.releaseId = object.releaseId ?? "";
|
|
299
|
+
message.commitHash = object.commitHash ?? undefined;
|
|
300
|
+
message.repoName = object.repoName ?? undefined;
|
|
301
|
+
message.user = object.user ?? undefined;
|
|
302
|
+
message.files = object.files?.map((e) => FileMetadata.fromPartial(e)) || [];
|
|
303
|
+
return message;
|
|
304
|
+
},
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
function createBaseDeleteSourceMapRequest(): DeleteSourceMapRequest {
|
|
308
|
+
return { application: "", releaseId: "" };
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
export const DeleteSourceMapRequest = {
|
|
312
|
+
encode(message: DeleteSourceMapRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
313
|
+
if (message.application !== "") {
|
|
314
|
+
writer.uint32(10).string(message.application);
|
|
315
|
+
}
|
|
316
|
+
if (message.releaseId !== "") {
|
|
317
|
+
writer.uint32(18).string(message.releaseId);
|
|
318
|
+
}
|
|
319
|
+
return writer;
|
|
320
|
+
},
|
|
321
|
+
|
|
322
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DeleteSourceMapRequest {
|
|
323
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
324
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
325
|
+
const message = createBaseDeleteSourceMapRequest();
|
|
326
|
+
while (reader.pos < end) {
|
|
327
|
+
const tag = reader.uint32();
|
|
328
|
+
switch (tag >>> 3) {
|
|
329
|
+
case 1:
|
|
330
|
+
if (tag !== 10) {
|
|
331
|
+
break;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
message.application = reader.string();
|
|
335
|
+
continue;
|
|
336
|
+
case 2:
|
|
337
|
+
if (tag !== 18) {
|
|
338
|
+
break;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
message.releaseId = reader.string();
|
|
342
|
+
continue;
|
|
343
|
+
}
|
|
344
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
345
|
+
break;
|
|
346
|
+
}
|
|
347
|
+
reader.skipType(tag & 7);
|
|
348
|
+
}
|
|
349
|
+
return message;
|
|
350
|
+
},
|
|
351
|
+
|
|
352
|
+
fromJSON(object: any): DeleteSourceMapRequest {
|
|
353
|
+
return {
|
|
354
|
+
application: isSet(object.application) ? globalThis.String(object.application) : "",
|
|
355
|
+
releaseId: isSet(object.releaseId) ? globalThis.String(object.releaseId) : "",
|
|
356
|
+
};
|
|
357
|
+
},
|
|
358
|
+
|
|
359
|
+
toJSON(message: DeleteSourceMapRequest): unknown {
|
|
360
|
+
const obj: any = {};
|
|
361
|
+
if (message.application !== "") {
|
|
362
|
+
obj.application = message.application;
|
|
363
|
+
}
|
|
364
|
+
if (message.releaseId !== "") {
|
|
365
|
+
obj.releaseId = message.releaseId;
|
|
366
|
+
}
|
|
367
|
+
return obj;
|
|
368
|
+
},
|
|
369
|
+
|
|
370
|
+
create(base?: DeepPartial<DeleteSourceMapRequest>): DeleteSourceMapRequest {
|
|
371
|
+
return DeleteSourceMapRequest.fromPartial(base ?? {});
|
|
372
|
+
},
|
|
373
|
+
fromPartial(object: DeepPartial<DeleteSourceMapRequest>): DeleteSourceMapRequest {
|
|
374
|
+
const message = createBaseDeleteSourceMapRequest();
|
|
375
|
+
message.application = object.application ?? "";
|
|
376
|
+
message.releaseId = object.releaseId ?? "";
|
|
377
|
+
return message;
|
|
378
|
+
},
|
|
379
|
+
};
|
|
380
|
+
|
|
146
381
|
function createBaseUploadSourceMapsResponse(): UploadSourceMapsResponse {
|
|
147
382
|
return {};
|
|
148
383
|
}
|
|
@@ -180,13 +415,98 @@ export const UploadSourceMapsResponse = {
|
|
|
180
415
|
create(base?: DeepPartial<UploadSourceMapsResponse>): UploadSourceMapsResponse {
|
|
181
416
|
return UploadSourceMapsResponse.fromPartial(base ?? {});
|
|
182
417
|
},
|
|
183
|
-
|
|
184
418
|
fromPartial(_: DeepPartial<UploadSourceMapsResponse>): UploadSourceMapsResponse {
|
|
185
419
|
const message = createBaseUploadSourceMapsResponse();
|
|
186
420
|
return message;
|
|
187
421
|
},
|
|
188
422
|
};
|
|
189
423
|
|
|
424
|
+
function createBaseUpdateSourceMapResponse(): UpdateSourceMapResponse {
|
|
425
|
+
return {};
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
export const UpdateSourceMapResponse = {
|
|
429
|
+
encode(_: UpdateSourceMapResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
430
|
+
return writer;
|
|
431
|
+
},
|
|
432
|
+
|
|
433
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateSourceMapResponse {
|
|
434
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
435
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
436
|
+
const message = createBaseUpdateSourceMapResponse();
|
|
437
|
+
while (reader.pos < end) {
|
|
438
|
+
const tag = reader.uint32();
|
|
439
|
+
switch (tag >>> 3) {
|
|
440
|
+
}
|
|
441
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
442
|
+
break;
|
|
443
|
+
}
|
|
444
|
+
reader.skipType(tag & 7);
|
|
445
|
+
}
|
|
446
|
+
return message;
|
|
447
|
+
},
|
|
448
|
+
|
|
449
|
+
fromJSON(_: any): UpdateSourceMapResponse {
|
|
450
|
+
return {};
|
|
451
|
+
},
|
|
452
|
+
|
|
453
|
+
toJSON(_: UpdateSourceMapResponse): unknown {
|
|
454
|
+
const obj: any = {};
|
|
455
|
+
return obj;
|
|
456
|
+
},
|
|
457
|
+
|
|
458
|
+
create(base?: DeepPartial<UpdateSourceMapResponse>): UpdateSourceMapResponse {
|
|
459
|
+
return UpdateSourceMapResponse.fromPartial(base ?? {});
|
|
460
|
+
},
|
|
461
|
+
fromPartial(_: DeepPartial<UpdateSourceMapResponse>): UpdateSourceMapResponse {
|
|
462
|
+
const message = createBaseUpdateSourceMapResponse();
|
|
463
|
+
return message;
|
|
464
|
+
},
|
|
465
|
+
};
|
|
466
|
+
|
|
467
|
+
function createBaseDeleteSourceMapResponse(): DeleteSourceMapResponse {
|
|
468
|
+
return {};
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
export const DeleteSourceMapResponse = {
|
|
472
|
+
encode(_: DeleteSourceMapResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
473
|
+
return writer;
|
|
474
|
+
},
|
|
475
|
+
|
|
476
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DeleteSourceMapResponse {
|
|
477
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
478
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
479
|
+
const message = createBaseDeleteSourceMapResponse();
|
|
480
|
+
while (reader.pos < end) {
|
|
481
|
+
const tag = reader.uint32();
|
|
482
|
+
switch (tag >>> 3) {
|
|
483
|
+
}
|
|
484
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
485
|
+
break;
|
|
486
|
+
}
|
|
487
|
+
reader.skipType(tag & 7);
|
|
488
|
+
}
|
|
489
|
+
return message;
|
|
490
|
+
},
|
|
491
|
+
|
|
492
|
+
fromJSON(_: any): DeleteSourceMapResponse {
|
|
493
|
+
return {};
|
|
494
|
+
},
|
|
495
|
+
|
|
496
|
+
toJSON(_: DeleteSourceMapResponse): unknown {
|
|
497
|
+
const obj: any = {};
|
|
498
|
+
return obj;
|
|
499
|
+
},
|
|
500
|
+
|
|
501
|
+
create(base?: DeepPartial<DeleteSourceMapResponse>): DeleteSourceMapResponse {
|
|
502
|
+
return DeleteSourceMapResponse.fromPartial(base ?? {});
|
|
503
|
+
},
|
|
504
|
+
fromPartial(_: DeepPartial<DeleteSourceMapResponse>): DeleteSourceMapResponse {
|
|
505
|
+
const message = createBaseDeleteSourceMapResponse();
|
|
506
|
+
return message;
|
|
507
|
+
},
|
|
508
|
+
};
|
|
509
|
+
|
|
190
510
|
export type RumSourceMapServiceDefinition = typeof RumSourceMapServiceDefinition;
|
|
191
511
|
export const RumSourceMapServiceDefinition = {
|
|
192
512
|
name: "RumSourceMapService",
|
|
@@ -200,13 +520,30 @@ export const RumSourceMapServiceDefinition = {
|
|
|
200
520
|
responseStream: false,
|
|
201
521
|
options: {},
|
|
202
522
|
},
|
|
523
|
+
updateSourceMap: {
|
|
524
|
+
name: "UpdateSourceMap",
|
|
525
|
+
requestType: UpdateSourceMapRequest,
|
|
526
|
+
requestStream: false,
|
|
527
|
+
responseType: UpdateSourceMapResponse,
|
|
528
|
+
responseStream: false,
|
|
529
|
+
options: {},
|
|
530
|
+
},
|
|
531
|
+
deleteSourceMap: {
|
|
532
|
+
name: "DeleteSourceMap",
|
|
533
|
+
requestType: DeleteSourceMapRequest,
|
|
534
|
+
requestStream: false,
|
|
535
|
+
responseType: DeleteSourceMapResponse,
|
|
536
|
+
responseStream: false,
|
|
537
|
+
options: {},
|
|
538
|
+
},
|
|
203
539
|
},
|
|
204
540
|
} as const;
|
|
205
541
|
|
|
206
542
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
207
543
|
|
|
208
544
|
export type DeepPartial<T> = T extends Builtin ? T
|
|
209
|
-
: T extends Array<infer U> ? Array<DeepPartial<U>>
|
|
545
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
546
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
210
547
|
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
211
548
|
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
212
549
|
: Partial<T>;
|