@coralogix/rum-cli 1.1.22 → 1.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -7
- package/api/client/client-factory.ts +26 -0
- package/api/client/request-builder.ts +122 -0
- package/api/dsym.api.ts +61 -0
- package/api/react-native.api.ts +67 -0
- package/api/{rum-api.ts → source-maps.api.ts} +14 -22
- package/cli/commands/dsym/index.ts +5 -0
- package/cli/commands/dsym/upload-dsym-command.ts +36 -0
- package/cli/commands/react-native/index.ts +5 -0
- package/cli/commands/{upload-react-native-source-maps-command.ts → react-native/upload-react-native-source-maps-command.ts} +14 -11
- package/cli/commands/{delete-source-maps-command.ts → source-maps/delete-source-maps-command.ts} +7 -9
- package/cli/commands/source-maps/index.ts +7 -0
- package/cli/commands/{update-source-maps-command.ts → source-maps/update-source-maps-command.ts} +7 -9
- package/cli/commands/{upload-source-maps-command.ts → source-maps/upload-source-maps-command.ts} +7 -9
- package/cli/rum-cli.ts +15 -6
- package/config/config.ts +10 -4
- package/consts/consts.ts +2 -0
- package/dist/api/client/client-factory.d.ts +355 -0
- package/dist/api/client/client-factory.js +31 -0
- package/dist/api/client/request-builder.d.ts +33 -0
- package/dist/api/client/request-builder.js +58 -0
- package/dist/api/dsym.api.d.ts +4 -0
- package/dist/api/dsym.api.js +50 -0
- package/dist/api/react-native.api.d.ts +4 -0
- package/dist/api/react-native.api.js +50 -0
- package/dist/api/{rum-api.d.ts → source-maps.api.d.ts} +2 -2
- package/dist/api/source-maps.api.js +97 -0
- package/dist/cli/commands/dsym/index.d.ts +4 -0
- package/dist/cli/commands/dsym/index.js +6 -0
- package/dist/cli/commands/dsym/upload-dsym-command.d.ts +2 -0
- package/dist/cli/commands/dsym/upload-dsym-command.js +45 -0
- package/dist/cli/commands/react-native/index.d.ts +4 -0
- package/dist/cli/commands/react-native/index.js +6 -0
- package/dist/cli/commands/react-native/upload-react-native-source-maps-command.js +51 -0
- package/dist/cli/commands/source-maps/delete-source-maps-command.js +41 -0
- package/dist/cli/commands/{index.d.ts → source-maps/index.d.ts} +2 -3
- package/dist/cli/commands/source-maps/index.js +8 -0
- package/dist/cli/commands/source-maps/update-source-maps-command.js +46 -0
- package/dist/cli/commands/source-maps/upload-source-maps-command.js +45 -0
- package/dist/cli/rum-cli.js +11 -7
- package/dist/config/config.d.ts +5 -2
- package/dist/config/config.js +6 -3
- package/dist/consts/consts.d.ts +1 -0
- package/dist/consts/consts.js +3 -2
- package/dist/models/dsym-commands.model.d.ts +11 -0
- package/dist/models/dsym-commands.model.js +3 -0
- package/dist/models/react-native-commands.model.d.ts +11 -0
- package/dist/models/react-native-commands.model.js +3 -0
- package/dist/models/{commands.model.d.ts → source-maps-commands.model.d.ts} +3 -3
- package/dist/models/source-maps-commands.model.js +3 -0
- package/dist/proto-models/com/coralogix/blobset/v2/audit_log.d.ts +24 -0
- package/dist/proto-models/com/coralogix/blobset/v2/audit_log.js +69 -0
- package/dist/proto-models/com/coralogix/blobset/v2/blobset_query_service.d.ts +111 -0
- package/dist/proto-models/com/coralogix/blobset/v2/blobset_query_service.js +36 -0
- package/dist/proto-models/com/coralogix/blobset/v2/blobset_service.d.ts +67 -0
- package/dist/proto-models/com/coralogix/blobset/v2/blobset_service.js +179 -0
- package/dist/proto-models/com/coralogix/blobset/v2/dsym.d.ts +58 -0
- package/dist/proto-models/com/coralogix/blobset/v2/dsym.js +336 -0
- package/dist/proto-models/com/coralogix/blobset/v2/entity_metadata.d.ts +78 -0
- package/dist/proto-models/com/coralogix/blobset/v2/entity_metadata.js +464 -0
- package/dist/proto-models/com/coralogix/blobset/v2/entity_type.d.ts +9 -0
- package/dist/proto-models/com/coralogix/blobset/v2/entity_type.js +52 -0
- package/dist/proto-models/com/coralogix/blobset/v2/react_native.d.ts +54 -0
- package/dist/proto-models/com/coralogix/blobset/v2/react_native.js +318 -0
- package/dist/proto-models/com/coralogix/blobset/v2/s3_metadata.d.ts +30 -0
- package/dist/proto-models/com/coralogix/blobset/v2/s3_metadata.js +131 -0
- package/dist/proto-models/com/coralogix/rum/v2/analytics.js +9 -1
- package/dist/proto-models/com/coralogix/rum/v2/audit_log.js +6 -1
- package/dist/proto-models/com/coralogix/rum/v2/chunk.js +9 -1
- package/dist/proto-models/com/coralogix/rum/v2/file.js +9 -1
- package/dist/proto-models/com/coralogix/rum/v2/hide_errors.d.ts +44 -0
- package/dist/proto-models/com/coralogix/rum/v2/hide_errors.js +203 -0
- package/dist/proto-models/com/coralogix/rum/v2/release_entity_metadata.d.ts +78 -0
- package/dist/proto-models/com/coralogix/rum/v2/release_entity_metadata.js +464 -0
- package/dist/proto-models/com/coralogix/rum/v2/release_entity_type.d.ts +9 -0
- package/dist/proto-models/com/coralogix/rum/v2/release_entity_type.js +52 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_hide_errors_service.d.ts +198 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_hide_errors_service.js +522 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_react_native_source_map_service.js +6 -1
- package/dist/proto-models/com/coralogix/rum/v2/rum_saved_filters_service.d.ts +1 -47
- package/dist/proto-models/com/coralogix/rum/v2/rum_saved_filters_service.js +18 -153
- package/dist/proto-models/com/coralogix/rum/v2/rum_sdk_versions.d.ts +41 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_sdk_versions.js +225 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.d.ts +45 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_service.js +134 -6
- package/dist/proto-models/com/coralogix/rum/v2/rum_session_recording_service.js +7 -2
- package/dist/proto-models/com/coralogix/rum/v2/rum_settings.d.ts +45 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_settings.js +198 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_settings_service.d.ts +107 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_settings_service.js +219 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_snooze_errors_service.js +6 -1
- package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.d.ts +92 -0
- package/dist/proto-models/com/coralogix/rum/v2/rum_source_map_service.js +266 -2
- package/dist/proto-models/com/coralogix/rum/v2/saved_filter.js +8 -3
- package/dist/proto-models/com/coralogix/rum/v2/snooze_errors.js +9 -1
- package/dist/proto-models/com/coralogix/rum/v2/source_code_file_mapping.js +6 -1
- package/dist/proto-models/com/coralogix/rum/v2/source_map_release.js +9 -1
- package/dist/proto-models/com/coralogix/rum/v2/template.js +9 -1
- package/dist/proto-models/google/protobuf/descriptor.d.ts +95 -95
- package/dist/proto-models/google/protobuf/descriptor.js +184 -176
- package/dist/services/{react-native-source-maps.service.d.ts → dsym.service.d.ts} +1 -1
- package/dist/services/dsym.service.js +36 -0
- package/dist/services/react-native.service.d.ts +3 -0
- package/dist/services/react-native.service.js +37 -0
- package/dist/services/source-maps.service.js +12 -14
- package/dist/utils/file-processor.utils.d.ts +12 -0
- package/dist/utils/file-processor.utils.js +196 -0
- package/dist/utils/shared.utils.d.ts +9 -0
- package/dist/utils/shared.utils.js +62 -0
- package/models/dsym-commands.model.ts +11 -0
- package/models/react-native-commands.model.ts +11 -0
- package/models/{commands.model.ts → source-maps-commands.model.ts} +3 -3
- package/package.json +2 -2
- package/proto-models/com/coralogix/blobset/v2/audit_log.ts +84 -0
- package/proto-models/com/coralogix/blobset/v2/blobset_query_service.ts +36 -0
- package/proto-models/com/coralogix/blobset/v2/blobset_service.ts +209 -0
- package/proto-models/com/coralogix/blobset/v2/dsym.ts +400 -0
- package/proto-models/com/coralogix/blobset/v2/entity_metadata.ts +543 -0
- package/proto-models/com/coralogix/blobset/v2/entity_type.ts +50 -0
- package/proto-models/com/coralogix/blobset/v2/react_native.ts +367 -0
- package/proto-models/com/coralogix/blobset/v2/s3_metadata.ts +154 -0
- package/proto-models/com/coralogix/rum/v2/analytics.ts +9 -0
- package/proto-models/com/coralogix/rum/v2/audit_log.ts +6 -0
- package/proto-models/com/coralogix/rum/v2/chunk.ts +9 -0
- package/proto-models/com/coralogix/rum/v2/file.ts +11 -2
- package/proto-models/com/coralogix/rum/v2/hide_errors.ts +234 -0
- package/proto-models/com/coralogix/rum/v2/release_entity_metadata.ts +543 -0
- package/proto-models/com/coralogix/rum/v2/release_entity_type.ts +50 -0
- package/proto-models/com/coralogix/rum/v2/rum_hide_errors_service.ts +605 -0
- package/proto-models/com/coralogix/rum/v2/rum_react_native_source_map_service.ts +6 -0
- package/proto-models/com/coralogix/rum/v2/rum_saved_filters_service.ts +18 -176
- package/proto-models/com/coralogix/rum/v2/rum_sdk_versions.ts +263 -0
- package/proto-models/com/coralogix/rum/v2/rum_service.ts +152 -4
- package/proto-models/com/coralogix/rum/v2/rum_session_recording_service.ts +6 -0
- package/proto-models/com/coralogix/rum/v2/rum_settings.ts +215 -0
- package/proto-models/com/coralogix/rum/v2/rum_settings_service.ts +266 -0
- package/proto-models/com/coralogix/rum/v2/rum_snooze_errors_service.ts +6 -0
- package/proto-models/com/coralogix/rum/v2/rum_source_map_service.ts +310 -0
- package/proto-models/com/coralogix/rum/v2/saved_filter.ts +8 -2
- package/proto-models/com/coralogix/rum/v2/snooze_errors.ts +9 -0
- package/proto-models/com/coralogix/rum/v2/source_code_file_mapping.ts +6 -0
- package/proto-models/com/coralogix/rum/v2/source_map_release.ts +9 -0
- package/proto-models/com/coralogix/rum/v2/template.ts +9 -0
- package/proto-models/google/protobuf/descriptor.ts +391 -272
- package/protofetch.lock +21 -2
- package/protofetch.toml +6 -1
- package/protos/com/coralogix/blobset/v2/audit_log.proto +13 -0
- package/protos/com/coralogix/blobset/v2/blobset_query_service.proto +12 -0
- package/protos/com/coralogix/blobset/v2/blobset_service.proto +18 -0
- package/protos/com/coralogix/blobset/v2/dsym.proto +19 -0
- package/protos/com/coralogix/blobset/v2/entity_metadata.proto +36 -0
- package/protos/com/coralogix/blobset/v2/entity_type.proto +10 -0
- package/protos/com/coralogix/blobset/v2/react_native.proto +23 -0
- package/protos/com/coralogix/blobset/v2/s3_metadata.proto +14 -0
- package/protos/com/coralogix/rum/v2/hide_errors.proto +19 -0
- package/protos/com/coralogix/rum/v2/release_entity_metadata.proto +35 -0
- package/protos/com/coralogix/rum/v2/release_entity_type.proto +10 -0
- package/protos/com/coralogix/rum/v2/rum_hide_errors_service.proto +42 -0
- package/protos/com/coralogix/rum/v2/rum_saved_filters_service.proto +1 -12
- package/protos/com/coralogix/rum/v2/rum_sdk_versions.proto +16 -0
- package/protos/com/coralogix/rum/v2/rum_service.proto +10 -0
- package/protos/com/coralogix/rum/v2/rum_settings.proto +26 -0
- package/protos/com/coralogix/rum/v2/rum_settings_service.proto +21 -0
- package/protos/com/coralogix/rum/v2/rum_source_map_service.proto +19 -0
- package/protoset.bin +0 -0
- package/services/dsym.service.ts +33 -0
- package/services/react-native.service.ts +34 -0
- package/services/source-maps.service.ts +12 -14
- package/utils/file-processor.utils.ts +176 -0
- package/utils/shared.utils.ts +52 -0
- package/cli/commands/index.ts +0 -8
- package/dist/api/rum-api.js +0 -104
- package/dist/cli/commands/delete-source-maps-command.js +0 -43
- package/dist/cli/commands/index.js +0 -9
- package/dist/cli/commands/update-source-maps-command.js +0 -48
- package/dist/cli/commands/upload-react-native-source-maps-command.js +0 -47
- package/dist/cli/commands/upload-source-maps-command.js +0 -47
- package/dist/models/commands.model.js +0 -3
- package/dist/services/react-native-source-maps.service.js +0 -42
- package/dist/utils/index.d.ts +0 -6
- package/dist/utils/index.js +0 -115
- package/services/react-native-source-maps.service.ts +0 -40
- package/utils/index.ts +0 -93
- /package/dist/cli/commands/{upload-react-native-source-maps-command.d.ts → react-native/upload-react-native-source-maps-command.d.ts} +0 -0
- /package/dist/cli/commands/{delete-source-maps-command.d.ts → source-maps/delete-source-maps-command.d.ts} +0 -0
- /package/dist/cli/commands/{update-source-maps-command.d.ts → source-maps/update-source-maps-command.d.ts} +0 -0
- /package/dist/cli/commands/{upload-source-maps-command.d.ts → source-maps/upload-source-maps-command.d.ts} +0 -0
|
@@ -0,0 +1,367 @@
|
|
|
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/react_native.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import _m0 from "protobufjs/minimal";
|
|
9
|
+
|
|
10
|
+
export const protobufPackage = "com.coralogix.blobset.v2";
|
|
11
|
+
|
|
12
|
+
export interface Chunk {
|
|
13
|
+
chunk: string;
|
|
14
|
+
content: Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface GetReactNativeSourceMapsChunksRequest {
|
|
18
|
+
application: string;
|
|
19
|
+
releaseId: string;
|
|
20
|
+
chunkNames: string[];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface GetReactNativeSourceMapsChunksResponse {
|
|
24
|
+
application: string;
|
|
25
|
+
releaseId: string;
|
|
26
|
+
chunks: Chunk[];
|
|
27
|
+
commitHash?: string | undefined;
|
|
28
|
+
repoName?: string | undefined;
|
|
29
|
+
user?: string | undefined;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function createBaseChunk(): Chunk {
|
|
33
|
+
return { chunk: "", content: new Uint8Array(0) };
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export const Chunk = {
|
|
37
|
+
encode(message: Chunk, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
38
|
+
if (message.chunk !== "") {
|
|
39
|
+
writer.uint32(10).string(message.chunk);
|
|
40
|
+
}
|
|
41
|
+
if (message.content.length !== 0) {
|
|
42
|
+
writer.uint32(18).bytes(message.content);
|
|
43
|
+
}
|
|
44
|
+
return writer;
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Chunk {
|
|
48
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
49
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
50
|
+
const message = createBaseChunk();
|
|
51
|
+
while (reader.pos < end) {
|
|
52
|
+
const tag = reader.uint32();
|
|
53
|
+
switch (tag >>> 3) {
|
|
54
|
+
case 1:
|
|
55
|
+
if (tag !== 10) {
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
message.chunk = reader.string();
|
|
60
|
+
continue;
|
|
61
|
+
case 2:
|
|
62
|
+
if (tag !== 18) {
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
message.content = reader.bytes();
|
|
67
|
+
continue;
|
|
68
|
+
}
|
|
69
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
reader.skipType(tag & 7);
|
|
73
|
+
}
|
|
74
|
+
return message;
|
|
75
|
+
},
|
|
76
|
+
|
|
77
|
+
fromJSON(object: any): Chunk {
|
|
78
|
+
return {
|
|
79
|
+
chunk: isSet(object.chunk) ? globalThis.String(object.chunk) : "",
|
|
80
|
+
content: isSet(object.content) ? bytesFromBase64(object.content) : new Uint8Array(0),
|
|
81
|
+
};
|
|
82
|
+
},
|
|
83
|
+
|
|
84
|
+
toJSON(message: Chunk): unknown {
|
|
85
|
+
const obj: any = {};
|
|
86
|
+
if (message.chunk !== "") {
|
|
87
|
+
obj.chunk = message.chunk;
|
|
88
|
+
}
|
|
89
|
+
if (message.content.length !== 0) {
|
|
90
|
+
obj.content = base64FromBytes(message.content);
|
|
91
|
+
}
|
|
92
|
+
return obj;
|
|
93
|
+
},
|
|
94
|
+
|
|
95
|
+
create(base?: DeepPartial<Chunk>): Chunk {
|
|
96
|
+
return Chunk.fromPartial(base ?? {});
|
|
97
|
+
},
|
|
98
|
+
fromPartial(object: DeepPartial<Chunk>): Chunk {
|
|
99
|
+
const message = createBaseChunk();
|
|
100
|
+
message.chunk = object.chunk ?? "";
|
|
101
|
+
message.content = object.content ?? new Uint8Array(0);
|
|
102
|
+
return message;
|
|
103
|
+
},
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
function createBaseGetReactNativeSourceMapsChunksRequest(): GetReactNativeSourceMapsChunksRequest {
|
|
107
|
+
return { application: "", releaseId: "", chunkNames: [] };
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export const GetReactNativeSourceMapsChunksRequest = {
|
|
111
|
+
encode(message: GetReactNativeSourceMapsChunksRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
112
|
+
if (message.application !== "") {
|
|
113
|
+
writer.uint32(10).string(message.application);
|
|
114
|
+
}
|
|
115
|
+
if (message.releaseId !== "") {
|
|
116
|
+
writer.uint32(18).string(message.releaseId);
|
|
117
|
+
}
|
|
118
|
+
for (const v of message.chunkNames) {
|
|
119
|
+
writer.uint32(26).string(v!);
|
|
120
|
+
}
|
|
121
|
+
return writer;
|
|
122
|
+
},
|
|
123
|
+
|
|
124
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetReactNativeSourceMapsChunksRequest {
|
|
125
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
126
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
127
|
+
const message = createBaseGetReactNativeSourceMapsChunksRequest();
|
|
128
|
+
while (reader.pos < end) {
|
|
129
|
+
const tag = reader.uint32();
|
|
130
|
+
switch (tag >>> 3) {
|
|
131
|
+
case 1:
|
|
132
|
+
if (tag !== 10) {
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
message.application = reader.string();
|
|
137
|
+
continue;
|
|
138
|
+
case 2:
|
|
139
|
+
if (tag !== 18) {
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
message.releaseId = reader.string();
|
|
144
|
+
continue;
|
|
145
|
+
case 3:
|
|
146
|
+
if (tag !== 26) {
|
|
147
|
+
break;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
message.chunkNames.push(reader.string());
|
|
151
|
+
continue;
|
|
152
|
+
}
|
|
153
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
154
|
+
break;
|
|
155
|
+
}
|
|
156
|
+
reader.skipType(tag & 7);
|
|
157
|
+
}
|
|
158
|
+
return message;
|
|
159
|
+
},
|
|
160
|
+
|
|
161
|
+
fromJSON(object: any): GetReactNativeSourceMapsChunksRequest {
|
|
162
|
+
return {
|
|
163
|
+
application: isSet(object.application) ? globalThis.String(object.application) : "",
|
|
164
|
+
releaseId: isSet(object.releaseId) ? globalThis.String(object.releaseId) : "",
|
|
165
|
+
chunkNames: globalThis.Array.isArray(object?.chunkNames)
|
|
166
|
+
? object.chunkNames.map((e: any) => globalThis.String(e))
|
|
167
|
+
: [],
|
|
168
|
+
};
|
|
169
|
+
},
|
|
170
|
+
|
|
171
|
+
toJSON(message: GetReactNativeSourceMapsChunksRequest): unknown {
|
|
172
|
+
const obj: any = {};
|
|
173
|
+
if (message.application !== "") {
|
|
174
|
+
obj.application = message.application;
|
|
175
|
+
}
|
|
176
|
+
if (message.releaseId !== "") {
|
|
177
|
+
obj.releaseId = message.releaseId;
|
|
178
|
+
}
|
|
179
|
+
if (message.chunkNames?.length) {
|
|
180
|
+
obj.chunkNames = message.chunkNames;
|
|
181
|
+
}
|
|
182
|
+
return obj;
|
|
183
|
+
},
|
|
184
|
+
|
|
185
|
+
create(base?: DeepPartial<GetReactNativeSourceMapsChunksRequest>): GetReactNativeSourceMapsChunksRequest {
|
|
186
|
+
return GetReactNativeSourceMapsChunksRequest.fromPartial(base ?? {});
|
|
187
|
+
},
|
|
188
|
+
fromPartial(object: DeepPartial<GetReactNativeSourceMapsChunksRequest>): GetReactNativeSourceMapsChunksRequest {
|
|
189
|
+
const message = createBaseGetReactNativeSourceMapsChunksRequest();
|
|
190
|
+
message.application = object.application ?? "";
|
|
191
|
+
message.releaseId = object.releaseId ?? "";
|
|
192
|
+
message.chunkNames = object.chunkNames?.map((e) => e) || [];
|
|
193
|
+
return message;
|
|
194
|
+
},
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
function createBaseGetReactNativeSourceMapsChunksResponse(): GetReactNativeSourceMapsChunksResponse {
|
|
198
|
+
return { application: "", releaseId: "", chunks: [], commitHash: undefined, repoName: undefined, user: undefined };
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export const GetReactNativeSourceMapsChunksResponse = {
|
|
202
|
+
encode(message: GetReactNativeSourceMapsChunksResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
203
|
+
if (message.application !== "") {
|
|
204
|
+
writer.uint32(10).string(message.application);
|
|
205
|
+
}
|
|
206
|
+
if (message.releaseId !== "") {
|
|
207
|
+
writer.uint32(18).string(message.releaseId);
|
|
208
|
+
}
|
|
209
|
+
for (const v of message.chunks) {
|
|
210
|
+
Chunk.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
211
|
+
}
|
|
212
|
+
if (message.commitHash !== undefined) {
|
|
213
|
+
writer.uint32(34).string(message.commitHash);
|
|
214
|
+
}
|
|
215
|
+
if (message.repoName !== undefined) {
|
|
216
|
+
writer.uint32(42).string(message.repoName);
|
|
217
|
+
}
|
|
218
|
+
if (message.user !== undefined) {
|
|
219
|
+
writer.uint32(50).string(message.user);
|
|
220
|
+
}
|
|
221
|
+
return writer;
|
|
222
|
+
},
|
|
223
|
+
|
|
224
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetReactNativeSourceMapsChunksResponse {
|
|
225
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
226
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
227
|
+
const message = createBaseGetReactNativeSourceMapsChunksResponse();
|
|
228
|
+
while (reader.pos < end) {
|
|
229
|
+
const tag = reader.uint32();
|
|
230
|
+
switch (tag >>> 3) {
|
|
231
|
+
case 1:
|
|
232
|
+
if (tag !== 10) {
|
|
233
|
+
break;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
message.application = reader.string();
|
|
237
|
+
continue;
|
|
238
|
+
case 2:
|
|
239
|
+
if (tag !== 18) {
|
|
240
|
+
break;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
message.releaseId = reader.string();
|
|
244
|
+
continue;
|
|
245
|
+
case 3:
|
|
246
|
+
if (tag !== 26) {
|
|
247
|
+
break;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
message.chunks.push(Chunk.decode(reader, reader.uint32()));
|
|
251
|
+
continue;
|
|
252
|
+
case 4:
|
|
253
|
+
if (tag !== 34) {
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
message.commitHash = reader.string();
|
|
258
|
+
continue;
|
|
259
|
+
case 5:
|
|
260
|
+
if (tag !== 42) {
|
|
261
|
+
break;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
message.repoName = reader.string();
|
|
265
|
+
continue;
|
|
266
|
+
case 6:
|
|
267
|
+
if (tag !== 50) {
|
|
268
|
+
break;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
message.user = reader.string();
|
|
272
|
+
continue;
|
|
273
|
+
}
|
|
274
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
275
|
+
break;
|
|
276
|
+
}
|
|
277
|
+
reader.skipType(tag & 7);
|
|
278
|
+
}
|
|
279
|
+
return message;
|
|
280
|
+
},
|
|
281
|
+
|
|
282
|
+
fromJSON(object: any): GetReactNativeSourceMapsChunksResponse {
|
|
283
|
+
return {
|
|
284
|
+
application: isSet(object.application) ? globalThis.String(object.application) : "",
|
|
285
|
+
releaseId: isSet(object.releaseId) ? globalThis.String(object.releaseId) : "",
|
|
286
|
+
chunks: globalThis.Array.isArray(object?.chunks) ? object.chunks.map((e: any) => Chunk.fromJSON(e)) : [],
|
|
287
|
+
commitHash: isSet(object.commitHash) ? globalThis.String(object.commitHash) : undefined,
|
|
288
|
+
repoName: isSet(object.repoName) ? globalThis.String(object.repoName) : undefined,
|
|
289
|
+
user: isSet(object.user) ? globalThis.String(object.user) : undefined,
|
|
290
|
+
};
|
|
291
|
+
},
|
|
292
|
+
|
|
293
|
+
toJSON(message: GetReactNativeSourceMapsChunksResponse): unknown {
|
|
294
|
+
const obj: any = {};
|
|
295
|
+
if (message.application !== "") {
|
|
296
|
+
obj.application = message.application;
|
|
297
|
+
}
|
|
298
|
+
if (message.releaseId !== "") {
|
|
299
|
+
obj.releaseId = message.releaseId;
|
|
300
|
+
}
|
|
301
|
+
if (message.chunks?.length) {
|
|
302
|
+
obj.chunks = message.chunks.map((e) => Chunk.toJSON(e));
|
|
303
|
+
}
|
|
304
|
+
if (message.commitHash !== undefined) {
|
|
305
|
+
obj.commitHash = message.commitHash;
|
|
306
|
+
}
|
|
307
|
+
if (message.repoName !== undefined) {
|
|
308
|
+
obj.repoName = message.repoName;
|
|
309
|
+
}
|
|
310
|
+
if (message.user !== undefined) {
|
|
311
|
+
obj.user = message.user;
|
|
312
|
+
}
|
|
313
|
+
return obj;
|
|
314
|
+
},
|
|
315
|
+
|
|
316
|
+
create(base?: DeepPartial<GetReactNativeSourceMapsChunksResponse>): GetReactNativeSourceMapsChunksResponse {
|
|
317
|
+
return GetReactNativeSourceMapsChunksResponse.fromPartial(base ?? {});
|
|
318
|
+
},
|
|
319
|
+
fromPartial(object: DeepPartial<GetReactNativeSourceMapsChunksResponse>): GetReactNativeSourceMapsChunksResponse {
|
|
320
|
+
const message = createBaseGetReactNativeSourceMapsChunksResponse();
|
|
321
|
+
message.application = object.application ?? "";
|
|
322
|
+
message.releaseId = object.releaseId ?? "";
|
|
323
|
+
message.chunks = object.chunks?.map((e) => Chunk.fromPartial(e)) || [];
|
|
324
|
+
message.commitHash = object.commitHash ?? undefined;
|
|
325
|
+
message.repoName = object.repoName ?? undefined;
|
|
326
|
+
message.user = object.user ?? undefined;
|
|
327
|
+
return message;
|
|
328
|
+
},
|
|
329
|
+
};
|
|
330
|
+
|
|
331
|
+
function bytesFromBase64(b64: string): Uint8Array {
|
|
332
|
+
if ((globalThis as any).Buffer) {
|
|
333
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
334
|
+
} else {
|
|
335
|
+
const bin = globalThis.atob(b64);
|
|
336
|
+
const arr = new Uint8Array(bin.length);
|
|
337
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
338
|
+
arr[i] = bin.charCodeAt(i);
|
|
339
|
+
}
|
|
340
|
+
return arr;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
function base64FromBytes(arr: Uint8Array): string {
|
|
345
|
+
if ((globalThis as any).Buffer) {
|
|
346
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
347
|
+
} else {
|
|
348
|
+
const bin: string[] = [];
|
|
349
|
+
arr.forEach((byte) => {
|
|
350
|
+
bin.push(globalThis.String.fromCharCode(byte));
|
|
351
|
+
});
|
|
352
|
+
return globalThis.btoa(bin.join(""));
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
357
|
+
|
|
358
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
359
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
360
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
361
|
+
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
362
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
363
|
+
: Partial<T>;
|
|
364
|
+
|
|
365
|
+
function isSet(value: any): boolean {
|
|
366
|
+
return value !== null && value !== undefined;
|
|
367
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
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/s3_metadata.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import _m0 from "protobufjs/minimal";
|
|
9
|
+
import { EntityMetadata } from "./entity_metadata";
|
|
10
|
+
import { EntityType, entityTypeFromJSON, entityTypeToJSON } from "./entity_type";
|
|
11
|
+
|
|
12
|
+
export const protobufPackage = "com.coralogix.blobset.v2";
|
|
13
|
+
|
|
14
|
+
export interface S3Metadata {
|
|
15
|
+
bucket: string;
|
|
16
|
+
key: string;
|
|
17
|
+
companyId: string;
|
|
18
|
+
entityMetadata: EntityMetadata | undefined;
|
|
19
|
+
entityType: EntityType;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function createBaseS3Metadata(): S3Metadata {
|
|
23
|
+
return { bucket: "", key: "", companyId: "", entityMetadata: undefined, entityType: 0 };
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const S3Metadata = {
|
|
27
|
+
encode(message: S3Metadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
28
|
+
if (message.bucket !== "") {
|
|
29
|
+
writer.uint32(10).string(message.bucket);
|
|
30
|
+
}
|
|
31
|
+
if (message.key !== "") {
|
|
32
|
+
writer.uint32(18).string(message.key);
|
|
33
|
+
}
|
|
34
|
+
if (message.companyId !== "") {
|
|
35
|
+
writer.uint32(26).string(message.companyId);
|
|
36
|
+
}
|
|
37
|
+
if (message.entityMetadata !== undefined) {
|
|
38
|
+
EntityMetadata.encode(message.entityMetadata, writer.uint32(34).fork()).ldelim();
|
|
39
|
+
}
|
|
40
|
+
if (message.entityType !== 0) {
|
|
41
|
+
writer.uint32(40).int32(message.entityType);
|
|
42
|
+
}
|
|
43
|
+
return writer;
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): S3Metadata {
|
|
47
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
48
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
49
|
+
const message = createBaseS3Metadata();
|
|
50
|
+
while (reader.pos < end) {
|
|
51
|
+
const tag = reader.uint32();
|
|
52
|
+
switch (tag >>> 3) {
|
|
53
|
+
case 1:
|
|
54
|
+
if (tag !== 10) {
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
message.bucket = reader.string();
|
|
59
|
+
continue;
|
|
60
|
+
case 2:
|
|
61
|
+
if (tag !== 18) {
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
message.key = reader.string();
|
|
66
|
+
continue;
|
|
67
|
+
case 3:
|
|
68
|
+
if (tag !== 26) {
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
message.companyId = reader.string();
|
|
73
|
+
continue;
|
|
74
|
+
case 4:
|
|
75
|
+
if (tag !== 34) {
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
message.entityMetadata = EntityMetadata.decode(reader, reader.uint32());
|
|
80
|
+
continue;
|
|
81
|
+
case 5:
|
|
82
|
+
if (tag !== 40) {
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
message.entityType = reader.int32() as any;
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
reader.skipType(tag & 7);
|
|
93
|
+
}
|
|
94
|
+
return message;
|
|
95
|
+
},
|
|
96
|
+
|
|
97
|
+
fromJSON(object: any): S3Metadata {
|
|
98
|
+
return {
|
|
99
|
+
bucket: isSet(object.bucket) ? globalThis.String(object.bucket) : "",
|
|
100
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
101
|
+
companyId: isSet(object.companyId) ? globalThis.String(object.companyId) : "",
|
|
102
|
+
entityMetadata: isSet(object.entityMetadata) ? EntityMetadata.fromJSON(object.entityMetadata) : undefined,
|
|
103
|
+
entityType: isSet(object.entityType) ? entityTypeFromJSON(object.entityType) : 0,
|
|
104
|
+
};
|
|
105
|
+
},
|
|
106
|
+
|
|
107
|
+
toJSON(message: S3Metadata): unknown {
|
|
108
|
+
const obj: any = {};
|
|
109
|
+
if (message.bucket !== "") {
|
|
110
|
+
obj.bucket = message.bucket;
|
|
111
|
+
}
|
|
112
|
+
if (message.key !== "") {
|
|
113
|
+
obj.key = message.key;
|
|
114
|
+
}
|
|
115
|
+
if (message.companyId !== "") {
|
|
116
|
+
obj.companyId = message.companyId;
|
|
117
|
+
}
|
|
118
|
+
if (message.entityMetadata !== undefined) {
|
|
119
|
+
obj.entityMetadata = EntityMetadata.toJSON(message.entityMetadata);
|
|
120
|
+
}
|
|
121
|
+
if (message.entityType !== 0) {
|
|
122
|
+
obj.entityType = entityTypeToJSON(message.entityType);
|
|
123
|
+
}
|
|
124
|
+
return obj;
|
|
125
|
+
},
|
|
126
|
+
|
|
127
|
+
create(base?: DeepPartial<S3Metadata>): S3Metadata {
|
|
128
|
+
return S3Metadata.fromPartial(base ?? {});
|
|
129
|
+
},
|
|
130
|
+
fromPartial(object: DeepPartial<S3Metadata>): S3Metadata {
|
|
131
|
+
const message = createBaseS3Metadata();
|
|
132
|
+
message.bucket = object.bucket ?? "";
|
|
133
|
+
message.key = object.key ?? "";
|
|
134
|
+
message.companyId = object.companyId ?? "";
|
|
135
|
+
message.entityMetadata = (object.entityMetadata !== undefined && object.entityMetadata !== null)
|
|
136
|
+
? EntityMetadata.fromPartial(object.entityMetadata)
|
|
137
|
+
: undefined;
|
|
138
|
+
message.entityType = object.entityType ?? 0;
|
|
139
|
+
return message;
|
|
140
|
+
},
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
144
|
+
|
|
145
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
146
|
+
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
147
|
+
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
148
|
+
: T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
|
|
149
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
150
|
+
: Partial<T>;
|
|
151
|
+
|
|
152
|
+
function isSet(value: any): boolean {
|
|
153
|
+
return value !== null && value !== undefined;
|
|
154
|
+
}
|
|
@@ -1,3 +1,9 @@
|
|
|
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/rum/v2/analytics.proto
|
|
6
|
+
|
|
1
7
|
/* eslint-disable */
|
|
2
8
|
import Long from "long";
|
|
3
9
|
import _m0 from "protobufjs/minimal";
|
|
@@ -902,6 +908,9 @@ function longToNumber(long: Long): number {
|
|
|
902
908
|
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
903
909
|
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
904
910
|
}
|
|
911
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
912
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
913
|
+
}
|
|
905
914
|
return long.toNumber();
|
|
906
915
|
}
|
|
907
916
|
|
|
@@ -1,3 +1,9 @@
|
|
|
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/rum/v2/chunk.proto
|
|
6
|
+
|
|
1
7
|
/* eslint-disable */
|
|
2
8
|
import Long from "long";
|
|
3
9
|
import _m0 from "protobufjs/minimal";
|
|
@@ -377,6 +383,9 @@ function longToNumber(long: Long): number {
|
|
|
377
383
|
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
378
384
|
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
379
385
|
}
|
|
386
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
387
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
388
|
+
}
|
|
380
389
|
return long.toNumber();
|
|
381
390
|
}
|
|
382
391
|
|
|
@@ -1,3 +1,9 @@
|
|
|
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/rum/v2/file.proto
|
|
6
|
+
|
|
1
7
|
/* eslint-disable */
|
|
2
8
|
import Long from "long";
|
|
3
9
|
import _m0 from "protobufjs/minimal";
|
|
@@ -100,7 +106,7 @@ export const FileMetadata = {
|
|
|
100
106
|
};
|
|
101
107
|
|
|
102
108
|
function bytesFromBase64(b64: string): Uint8Array {
|
|
103
|
-
if (globalThis.Buffer) {
|
|
109
|
+
if ((globalThis as any).Buffer) {
|
|
104
110
|
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
105
111
|
} else {
|
|
106
112
|
const bin = globalThis.atob(b64);
|
|
@@ -113,7 +119,7 @@ function bytesFromBase64(b64: string): Uint8Array {
|
|
|
113
119
|
}
|
|
114
120
|
|
|
115
121
|
function base64FromBytes(arr: Uint8Array): string {
|
|
116
|
-
if (globalThis.Buffer) {
|
|
122
|
+
if ((globalThis as any).Buffer) {
|
|
117
123
|
return globalThis.Buffer.from(arr).toString("base64");
|
|
118
124
|
} else {
|
|
119
125
|
const bin: string[] = [];
|
|
@@ -137,6 +143,9 @@ function longToNumber(long: Long): number {
|
|
|
137
143
|
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
138
144
|
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
139
145
|
}
|
|
146
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
147
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
148
|
+
}
|
|
140
149
|
return long.toNumber();
|
|
141
150
|
}
|
|
142
151
|
|