@gitpod/ide-metrics-api-grpcweb 0.0.1-sefftinge-add-phone-verification-11339.5 → 0.0.1-sefftinge-ubp-model-free-plan-and-12741.7
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/idemetrics_pb.d.ts +77 -18
- package/lib/idemetrics_pb.js +461 -21
- package/lib/idemetrics_pb_service.d.ts +101 -0
- package/lib/idemetrics_pb_service.js +141 -0
- package/lib/index.d.ts +15 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -0
- package/package.json +13 -4
- package/pkg-yarn.lock +3 -2
- package/provenance-bundle.jsonl +2 -2
- package/lib/idemetrics_grpc_web_pb.d.ts +0 -43
- package/lib/idemetrics_grpc_web_pb.js +0 -196
package/package.json
CHANGED
@@ -1,9 +1,16 @@
|
|
1
1
|
{
|
2
2
|
"dependencies": {
|
3
|
-
"grpc-web": "^
|
3
|
+
"@improbable-eng/grpc-web": "^0.14.0",
|
4
|
+
"google-protobuf": "^3.19.1"
|
4
5
|
},
|
5
6
|
"devDependencies": {
|
6
|
-
"
|
7
|
+
"@types/google-protobuf": "^3.15.5",
|
8
|
+
"source-map-loader": "^3.0.0",
|
9
|
+
"ts-loader": "^9.2.2",
|
10
|
+
"ts-protoc-gen": "^0.13.0",
|
11
|
+
"typescript": "^4.2.4",
|
12
|
+
"webpack": "^5.37.1",
|
13
|
+
"webpack-cli": "^4.7.0"
|
7
14
|
},
|
8
15
|
"files": [
|
9
16
|
"lib",
|
@@ -11,9 +18,11 @@
|
|
11
18
|
"provenance-bundle.jsonl"
|
12
19
|
],
|
13
20
|
"license": "UNLICENSED",
|
21
|
+
"main": "lib/index.js",
|
14
22
|
"name": "@gitpod/ide-metrics-api-grpcweb",
|
15
23
|
"scripts": {
|
16
|
-
"build": "bash build.sh"
|
24
|
+
"build": "bash build.sh && webpack"
|
17
25
|
},
|
18
|
-
"
|
26
|
+
"types": "lib/index.d.ts",
|
27
|
+
"version": "0.0.1-sefftinge-ubp-model-free-plan-and-12741.7"
|
19
28
|
}
|
package/pkg-yarn.lock
CHANGED
@@ -4,7 +4,8 @@
|
|
4
4
|
|
5
5
|
"@gitpod/ide-metrics-api-grpcweb@0.0.1":
|
6
6
|
version "0.0.1"
|
7
|
-
resolved "file:///tmp/cache/
|
7
|
+
resolved "file:///tmp/cache/91ff31f7a4acd1db9fddffea6ce736ac82c24c28.tar.gz"
|
8
8
|
dependencies:
|
9
|
-
grpc-web "^
|
9
|
+
"@improbable-eng/grpc-web" "^0.14.0"
|
10
|
+
google-protobuf "^3.19.1"
|
10
11
|
|
package/provenance-bundle.jsonl
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
{"payloadType":"application/vnd.in-toto+json","payload":"
|
1
|
+
{"payloadType":"application/vnd.in-toto+json","payload":"ewogICJfdHlwZSI6ICJodHRwczovL2luLXRvdG8uaW8vU3RhdGVtZW50L3YwLjEiLAogICJwcmVkaWNhdGVUeXBlIjogImh0dHBzOi8vc2xzYS5kZXYvcHJvdmVuYW5jZS92MC4xIiwKICAic3ViamVjdCI6IFtdLAogICJwcmVkaWNhdGUiOiB7CiAgICAiYnVpbGRlciI6IHsKICAgICAgImlkIjogImdpdGh1Yi5jb20vZ2l0cG9kLWlvL2xlZXdheTowLjIuMjAtOThmMmJjOEBzaGEyNTY6MDk1YTE5NDMyM2FkZDExODlkNTBlNzkwYzVjNzVhYjljN2MyM2JjMWUyYWY4NzUwODcyMzg0MWI3NzM3N2RjZSIKICAgIH0sCiAgICAicmVjaXBlIjogewogICAgICAidHlwZSI6ICJodHRwczovL2dpdGh1Yi5jb20vZ2l0cG9kLWlvL2xlZXdheS9idWlsZEBnZW5lcmljOjEiLAogICAgICAiZGVmaW5lZEluTWF0ZXJpYWwiOiAwLAogICAgICAiZW50cnlQb2ludCI6ICJjb21wb25lbnRzL2lkZS1tZXRyaWNzLWFwaTpwcm90byIsCiAgICAgICJhcmd1bWVudHMiOiBbCiAgICAgICAgImxlZXdheSIsCiAgICAgICAgImJ1aWxkIiwKICAgICAgICAiLS1kb2Nr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ICB9CiAgICAgIH0KICAgIH0sCiAgICAibWV0YWRhdGEiOiB7CiAgICAgICJidWlsZFN0YXJ0ZWRPbiI6ICIyMDIyLTA5LTA2VDE3OjA0OjUzLjI0MjM4MTI4NFoiLAogICAgICAiYnVpbGRGaW5pc2hlZE9uIjogIjIwMjItMDktMDZUMTc6MDQ6NTMuMjUwMzU5ODQ3WiIsCiAgICAgICJjb21wbGV0ZW5lc3MiOiB7CiAgICAgICAgImFyZ3VtZW50cyI6IHRydWUsCiAgICAgICAgImVudmlyb25tZW50IjogZmFsc2UsCiAgICAgICAgIm1hdGVyaWFscyI6IHRydWUKICAgICAgfSwKICAgICAgInJlcHJvZHVjaWJsZSI6IGZhbHNlCiAgICB9LAogICAgIm1hdGVyaWFscyI6IFsKICAgICAgewogICAgICAgICJ1cmkiOiAiZ2l0K2h0dHBzOi8vZ2l0aHViLmNvbS9naXRwb2QtaW8vZ2l0cG9kLmdpdCIsCiAgICAgICAgImRpZ2VzdCI6IHsKICAgICAgICAgICJzaGEyNTYiOiAiZTdjOGVmZTFhMWJlMDQwYmY3MDQxNDYzOGUxMWVjNjNmNjZkOTdlNCIKICAgICAgICB9CiAgICAgIH0KICAgIF0KICB9Cn0=","signatures":null}
|
2
2
|
|
3
|
-
{"payloadType":"application/vnd.in-toto+json","payload":"
|
3
|
+
{"payloadType":"application/vnd.in-toto+json","payload":"ewogICJfdHlwZSI6ICJodHRwczovL2luLXRvdG8uaW8vU3RhdGVtZW50L3YwLjEiLAogICJwcmVkaWNhdGVUeXBlIjogImh0dHBzOi8vc2xzYS5kZXYvcHJvdmVuYW5jZS92MC4xIiwKICAic3ViamVjdCI6IFsKICAgIHsKICAgICAgIm5hbWUiOiAiL2NvbXBvbmVudHMtaWRlLW1ldHJpY3MtYXBpLS1wcm90by9wcm92ZW5hbmNlLWJ1bmRsZS5qc29ubCIsCiAgICAgICJkaWdlc3QiOiB7CiAgICAgICAgInNoYTI1NiI6ICI3MWI5ODRkY2FkNDA2YWQyMWV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iAgICAgICAgIi1EamJNYXJrZXRwbGFjZVB1Ymxpc2hUcmlnZ2VyPWZhbHNlIgogICAgICBdLAogICAgICAiZW52aXJvbm1lbnQiOiB7CiAgICAgICAgIm1hbmlmZXN0IjogewogICAgICAgICAgImFyY2giOiAiYW1kNjQiLAogICAgICAgICAgImdvIjogImdvIHZlcnNpb24gZ28xLjE5IGxpbnV4L2FtZDY0IiwKICAgICAgICAgICJub2RlIjogInYxNi4xNi4wIiwKICAgICAgICAgICJvcyI6ICJsaW51eCIsCiAgICAgICAgICAieWFybiI6ICIxLjIyLjE5IgogICAgICAgIH0KICAgICAgfQogICAgfSwKICAgICJtZXRhZGF0YSI6IHsKICAgICAgImJ1aWxkU3RhcnRlZE9uIjogIjIwMjItMDktMTJUMTQ6Mjg6NTguMDQ0MjMxMTczWiIsCiAgICAgICJidWlsZEZpbmlzaGVkT24iOiAiMjAyMi0wOS0xMlQxNDoyOToxMS41NzExOTAzOTdaIiwKICAgICAgImNvbXBsZXRlbmVzcyI6IHsKICAgICAgICAiYXJndW1lbnRzIjogdHJ1ZSwKICAgICAgICAiZW52aXJvbm1lbnQiOiBmYWxzZSwKICAgICAgICAibWF0ZXJpYWxzIjogdHJ1ZQogICAgICB9LAogICAgICAicmVwcm9kdWNpYmxlIjogZmFsc2UKICAgIH0sCiAgICAibWF0ZXJpYWxzIjogWwogICAgICB7CiAgICAgICAgInVyaSI6ICJnaXQraHR0cHM6Ly9naXRodWIuY29tL2dpdHBvZC1pby9naXRwb2QuZ2l0IiwKICAgICAgICAiZGlnZXN0IjogewogICAgICAgICAgInNoYTI1NiI6ICJhNzY5NDZjYmNkYjdmZjRkZDFmOTNiOTFmZjBmOTRmZTM0YmU0ZmZkIgogICAgICAgIH0KICAgICAgfQogICAgXQogIH0KfQ==","signatures":null}
|
4
4
|
|
@@ -1,43 +0,0 @@
|
|
1
|
-
import * as grpcWeb from 'grpc-web';
|
2
|
-
|
3
|
-
import * as idemetrics_pb from './idemetrics_pb';
|
4
|
-
|
5
|
-
|
6
|
-
export class MetricsServiceClient {
|
7
|
-
constructor (hostname: string,
|
8
|
-
credentials?: null | { [index: string]: string; },
|
9
|
-
options?: null | { [index: string]: any; });
|
10
|
-
|
11
|
-
addCounter(
|
12
|
-
request: idemetrics_pb.AddCounterRequest,
|
13
|
-
metadata: grpcWeb.Metadata | undefined,
|
14
|
-
callback: (err: grpcWeb.RpcError,
|
15
|
-
response: idemetrics_pb.AddCounterResponse) => void
|
16
|
-
): grpcWeb.ClientReadableStream<idemetrics_pb.AddCounterResponse>;
|
17
|
-
|
18
|
-
observeHistogram(
|
19
|
-
request: idemetrics_pb.ObserveHistogramRequest,
|
20
|
-
metadata: grpcWeb.Metadata | undefined,
|
21
|
-
callback: (err: grpcWeb.RpcError,
|
22
|
-
response: idemetrics_pb.ObserveHistogramResponse) => void
|
23
|
-
): grpcWeb.ClientReadableStream<idemetrics_pb.ObserveHistogramResponse>;
|
24
|
-
|
25
|
-
}
|
26
|
-
|
27
|
-
export class MetricsServicePromiseClient {
|
28
|
-
constructor (hostname: string,
|
29
|
-
credentials?: null | { [index: string]: string; },
|
30
|
-
options?: null | { [index: string]: any; });
|
31
|
-
|
32
|
-
addCounter(
|
33
|
-
request: idemetrics_pb.AddCounterRequest,
|
34
|
-
metadata?: grpcWeb.Metadata
|
35
|
-
): Promise<idemetrics_pb.AddCounterResponse>;
|
36
|
-
|
37
|
-
observeHistogram(
|
38
|
-
request: idemetrics_pb.ObserveHistogramRequest,
|
39
|
-
metadata?: grpcWeb.Metadata
|
40
|
-
): Promise<idemetrics_pb.ObserveHistogramResponse>;
|
41
|
-
|
42
|
-
}
|
43
|
-
|
@@ -1,196 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @fileoverview gRPC-Web generated client stub for ide_metrics_api
|
3
|
-
* @enhanceable
|
4
|
-
* @public
|
5
|
-
*/
|
6
|
-
|
7
|
-
// GENERATED CODE -- DO NOT EDIT!
|
8
|
-
|
9
|
-
|
10
|
-
/* eslint-disable */
|
11
|
-
// @ts-nocheck
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
const grpc = {};
|
16
|
-
grpc.web = require('grpc-web');
|
17
|
-
|
18
|
-
const proto = {};
|
19
|
-
proto.ide_metrics_api = require('./idemetrics_pb.js');
|
20
|
-
|
21
|
-
/**
|
22
|
-
* @param {string} hostname
|
23
|
-
* @param {?Object} credentials
|
24
|
-
* @param {?grpc.web.ClientOptions} options
|
25
|
-
* @constructor
|
26
|
-
* @struct
|
27
|
-
* @final
|
28
|
-
*/
|
29
|
-
proto.ide_metrics_api.MetricsServiceClient =
|
30
|
-
function(hostname, credentials, options) {
|
31
|
-
if (!options) options = {};
|
32
|
-
options.format = 'binary';
|
33
|
-
|
34
|
-
/**
|
35
|
-
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
36
|
-
*/
|
37
|
-
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
38
|
-
|
39
|
-
/**
|
40
|
-
* @private @const {string} The hostname
|
41
|
-
*/
|
42
|
-
this.hostname_ = hostname;
|
43
|
-
|
44
|
-
};
|
45
|
-
|
46
|
-
|
47
|
-
/**
|
48
|
-
* @param {string} hostname
|
49
|
-
* @param {?Object} credentials
|
50
|
-
* @param {?grpc.web.ClientOptions} options
|
51
|
-
* @constructor
|
52
|
-
* @struct
|
53
|
-
* @final
|
54
|
-
*/
|
55
|
-
proto.ide_metrics_api.MetricsServicePromiseClient =
|
56
|
-
function(hostname, credentials, options) {
|
57
|
-
if (!options) options = {};
|
58
|
-
options.format = 'binary';
|
59
|
-
|
60
|
-
/**
|
61
|
-
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
62
|
-
*/
|
63
|
-
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
64
|
-
|
65
|
-
/**
|
66
|
-
* @private @const {string} The hostname
|
67
|
-
*/
|
68
|
-
this.hostname_ = hostname;
|
69
|
-
|
70
|
-
};
|
71
|
-
|
72
|
-
|
73
|
-
/**
|
74
|
-
* @const
|
75
|
-
* @type {!grpc.web.MethodDescriptor<
|
76
|
-
* !proto.ide_metrics_api.AddCounterRequest,
|
77
|
-
* !proto.ide_metrics_api.AddCounterResponse>}
|
78
|
-
*/
|
79
|
-
const methodDescriptor_MetricsService_AddCounter = new grpc.web.MethodDescriptor(
|
80
|
-
'/ide_metrics_api.MetricsService/AddCounter',
|
81
|
-
grpc.web.MethodType.UNARY,
|
82
|
-
proto.ide_metrics_api.AddCounterRequest,
|
83
|
-
proto.ide_metrics_api.AddCounterResponse,
|
84
|
-
/**
|
85
|
-
* @param {!proto.ide_metrics_api.AddCounterRequest} request
|
86
|
-
* @return {!Uint8Array}
|
87
|
-
*/
|
88
|
-
function(request) {
|
89
|
-
return request.serializeBinary();
|
90
|
-
},
|
91
|
-
proto.ide_metrics_api.AddCounterResponse.deserializeBinary
|
92
|
-
);
|
93
|
-
|
94
|
-
|
95
|
-
/**
|
96
|
-
* @param {!proto.ide_metrics_api.AddCounterRequest} request The
|
97
|
-
* request proto
|
98
|
-
* @param {?Object<string, string>} metadata User defined
|
99
|
-
* call metadata
|
100
|
-
* @param {function(?grpc.web.RpcError, ?proto.ide_metrics_api.AddCounterResponse)}
|
101
|
-
* callback The callback function(error, response)
|
102
|
-
* @return {!grpc.web.ClientReadableStream<!proto.ide_metrics_api.AddCounterResponse>|undefined}
|
103
|
-
* The XHR Node Readable Stream
|
104
|
-
*/
|
105
|
-
proto.ide_metrics_api.MetricsServiceClient.prototype.addCounter =
|
106
|
-
function(request, metadata, callback) {
|
107
|
-
return this.client_.rpcCall(this.hostname_ +
|
108
|
-
'/ide_metrics_api.MetricsService/AddCounter',
|
109
|
-
request,
|
110
|
-
metadata || {},
|
111
|
-
methodDescriptor_MetricsService_AddCounter,
|
112
|
-
callback);
|
113
|
-
};
|
114
|
-
|
115
|
-
|
116
|
-
/**
|
117
|
-
* @param {!proto.ide_metrics_api.AddCounterRequest} request The
|
118
|
-
* request proto
|
119
|
-
* @param {?Object<string, string>=} metadata User defined
|
120
|
-
* call metadata
|
121
|
-
* @return {!Promise<!proto.ide_metrics_api.AddCounterResponse>}
|
122
|
-
* Promise that resolves to the response
|
123
|
-
*/
|
124
|
-
proto.ide_metrics_api.MetricsServicePromiseClient.prototype.addCounter =
|
125
|
-
function(request, metadata) {
|
126
|
-
return this.client_.unaryCall(this.hostname_ +
|
127
|
-
'/ide_metrics_api.MetricsService/AddCounter',
|
128
|
-
request,
|
129
|
-
metadata || {},
|
130
|
-
methodDescriptor_MetricsService_AddCounter);
|
131
|
-
};
|
132
|
-
|
133
|
-
|
134
|
-
/**
|
135
|
-
* @const
|
136
|
-
* @type {!grpc.web.MethodDescriptor<
|
137
|
-
* !proto.ide_metrics_api.ObserveHistogramRequest,
|
138
|
-
* !proto.ide_metrics_api.ObserveHistogramResponse>}
|
139
|
-
*/
|
140
|
-
const methodDescriptor_MetricsService_ObserveHistogram = new grpc.web.MethodDescriptor(
|
141
|
-
'/ide_metrics_api.MetricsService/ObserveHistogram',
|
142
|
-
grpc.web.MethodType.UNARY,
|
143
|
-
proto.ide_metrics_api.ObserveHistogramRequest,
|
144
|
-
proto.ide_metrics_api.ObserveHistogramResponse,
|
145
|
-
/**
|
146
|
-
* @param {!proto.ide_metrics_api.ObserveHistogramRequest} request
|
147
|
-
* @return {!Uint8Array}
|
148
|
-
*/
|
149
|
-
function(request) {
|
150
|
-
return request.serializeBinary();
|
151
|
-
},
|
152
|
-
proto.ide_metrics_api.ObserveHistogramResponse.deserializeBinary
|
153
|
-
);
|
154
|
-
|
155
|
-
|
156
|
-
/**
|
157
|
-
* @param {!proto.ide_metrics_api.ObserveHistogramRequest} request The
|
158
|
-
* request proto
|
159
|
-
* @param {?Object<string, string>} metadata User defined
|
160
|
-
* call metadata
|
161
|
-
* @param {function(?grpc.web.RpcError, ?proto.ide_metrics_api.ObserveHistogramResponse)}
|
162
|
-
* callback The callback function(error, response)
|
163
|
-
* @return {!grpc.web.ClientReadableStream<!proto.ide_metrics_api.ObserveHistogramResponse>|undefined}
|
164
|
-
* The XHR Node Readable Stream
|
165
|
-
*/
|
166
|
-
proto.ide_metrics_api.MetricsServiceClient.prototype.observeHistogram =
|
167
|
-
function(request, metadata, callback) {
|
168
|
-
return this.client_.rpcCall(this.hostname_ +
|
169
|
-
'/ide_metrics_api.MetricsService/ObserveHistogram',
|
170
|
-
request,
|
171
|
-
metadata || {},
|
172
|
-
methodDescriptor_MetricsService_ObserveHistogram,
|
173
|
-
callback);
|
174
|
-
};
|
175
|
-
|
176
|
-
|
177
|
-
/**
|
178
|
-
* @param {!proto.ide_metrics_api.ObserveHistogramRequest} request The
|
179
|
-
* request proto
|
180
|
-
* @param {?Object<string, string>=} metadata User defined
|
181
|
-
* call metadata
|
182
|
-
* @return {!Promise<!proto.ide_metrics_api.ObserveHistogramResponse>}
|
183
|
-
* Promise that resolves to the response
|
184
|
-
*/
|
185
|
-
proto.ide_metrics_api.MetricsServicePromiseClient.prototype.observeHistogram =
|
186
|
-
function(request, metadata) {
|
187
|
-
return this.client_.unaryCall(this.hostname_ +
|
188
|
-
'/ide_metrics_api.MetricsService/ObserveHistogram',
|
189
|
-
request,
|
190
|
-
metadata || {},
|
191
|
-
methodDescriptor_MetricsService_ObserveHistogram);
|
192
|
-
};
|
193
|
-
|
194
|
-
|
195
|
-
module.exports = proto.ide_metrics_api;
|
196
|
-
|