@miradorlabs/web-grpc 2.0.0 → 2.2.0
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/google/protobuf/timestamp.ts +1 -1
- package/package.json +1 -1
- package/proto/gateway/common/v1/status.ts +8 -1
- package/proto/gateway/common/v1/status_pb.js +2 -1
- package/proto/gateway/common/v1/types.ts +1 -1
- package/proto/gateway/web/v1/account_gateway.ts +1 -1
- package/proto/gateway/web/v1/automation_gateway.ts +1 -1
- package/proto/gateway/web/v1/chain_gateway.ts +1 -1
- package/proto/gateway/web/v1/dashboard_gateway.ts +2519 -0
- package/proto/gateway/web/v1/dashboard_gateway_grpc_pb.js +220 -0
- package/proto/gateway/web/v1/dashboard_gateway_pb.js +4792 -0
- package/proto/gateway/web/v1/market_gateway.ts +1 -1
- package/proto/gateway/web/v1/{telemetry_gateway.ts → metric_gateway.ts} +1030 -405
- package/proto/gateway/web/v1/metric_gateway_grpc_pb.js +122 -0
- package/proto/gateway/web/v1/{telemetry_gateway_pb.js → metric_gateway_pb.js} +1661 -535
- package/proto/gateway/web/v1/oauth_gateway.ts +1 -1
- package/proto/gateway/web/v1/plan_gateway.ts +1 -1
- package/proto/gateway/web/v1/stream_gateway.ts +1 -1
- package/proto/gateway/web/v1/trace_gateway.ts +1544 -1
- package/proto/gateway/web/v1/trace_gateway_pb.js +2796 -113
- package/proto/gateway/web/v1/telemetry_gateway_grpc_pb.js +0 -159
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
var grpc = require('@grpc/grpc-js');
|
|
5
|
+
var proto_gateway_web_v1_metric_gateway_pb = require('../../../../proto/gateway/web/v1/metric_gateway_pb.js');
|
|
6
|
+
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
7
|
+
var proto_gateway_web_v1_trace_gateway_pb = require('../../../../proto/gateway/web/v1/trace_gateway_pb.js');
|
|
8
|
+
|
|
9
|
+
function serialize_gateway_web_v1_MetricAttributeEnvelope(arg) {
|
|
10
|
+
if (!(arg instanceof proto_gateway_web_v1_metric_gateway_pb.MetricAttributeEnvelope)) {
|
|
11
|
+
throw new Error('Expected argument of type gateway.web.v1.MetricAttributeEnvelope');
|
|
12
|
+
}
|
|
13
|
+
return Buffer.from(arg.serializeBinary());
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function deserialize_gateway_web_v1_MetricAttributeEnvelope(buffer_arg) {
|
|
17
|
+
return proto_gateway_web_v1_metric_gateway_pb.MetricAttributeEnvelope.deserializeBinary(new Uint8Array(buffer_arg));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function serialize_gateway_web_v1_MetricCatalogEnvelope(arg) {
|
|
21
|
+
if (!(arg instanceof proto_gateway_web_v1_metric_gateway_pb.MetricCatalogEnvelope)) {
|
|
22
|
+
throw new Error('Expected argument of type gateway.web.v1.MetricCatalogEnvelope');
|
|
23
|
+
}
|
|
24
|
+
return Buffer.from(arg.serializeBinary());
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function deserialize_gateway_web_v1_MetricCatalogEnvelope(buffer_arg) {
|
|
28
|
+
return proto_gateway_web_v1_metric_gateway_pb.MetricCatalogEnvelope.deserializeBinary(new Uint8Array(buffer_arg));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function serialize_gateway_web_v1_QueryDataEnvelope(arg) {
|
|
32
|
+
if (!(arg instanceof proto_gateway_web_v1_metric_gateway_pb.QueryDataEnvelope)) {
|
|
33
|
+
throw new Error('Expected argument of type gateway.web.v1.QueryDataEnvelope');
|
|
34
|
+
}
|
|
35
|
+
return Buffer.from(arg.serializeBinary());
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function deserialize_gateway_web_v1_QueryDataEnvelope(buffer_arg) {
|
|
39
|
+
return proto_gateway_web_v1_metric_gateway_pb.QueryDataEnvelope.deserializeBinary(new Uint8Array(buffer_arg));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function serialize_gateway_web_v1_StreamMetricAttributesRequest(arg) {
|
|
43
|
+
if (!(arg instanceof proto_gateway_web_v1_metric_gateway_pb.StreamMetricAttributesRequest)) {
|
|
44
|
+
throw new Error('Expected argument of type gateway.web.v1.StreamMetricAttributesRequest');
|
|
45
|
+
}
|
|
46
|
+
return Buffer.from(arg.serializeBinary());
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function deserialize_gateway_web_v1_StreamMetricAttributesRequest(buffer_arg) {
|
|
50
|
+
return proto_gateway_web_v1_metric_gateway_pb.StreamMetricAttributesRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function serialize_gateway_web_v1_StreamMetricsRequest(arg) {
|
|
54
|
+
if (!(arg instanceof proto_gateway_web_v1_metric_gateway_pb.StreamMetricsRequest)) {
|
|
55
|
+
throw new Error('Expected argument of type gateway.web.v1.StreamMetricsRequest');
|
|
56
|
+
}
|
|
57
|
+
return Buffer.from(arg.serializeBinary());
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function deserialize_gateway_web_v1_StreamMetricsRequest(buffer_arg) {
|
|
61
|
+
return proto_gateway_web_v1_metric_gateway_pb.StreamMetricsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function serialize_gateway_web_v1_StreamQueryRequest(arg) {
|
|
65
|
+
if (!(arg instanceof proto_gateway_web_v1_metric_gateway_pb.StreamQueryRequest)) {
|
|
66
|
+
throw new Error('Expected argument of type gateway.web.v1.StreamQueryRequest');
|
|
67
|
+
}
|
|
68
|
+
return Buffer.from(arg.serializeBinary());
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function deserialize_gateway_web_v1_StreamQueryRequest(buffer_arg) {
|
|
72
|
+
return proto_gateway_web_v1_metric_gateway_pb.StreamQueryRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
// MetricGatewayService is the web surface of telemetry.api.v1 MetricService — the types
|
|
77
|
+
// are domain-isolated copies converted in gateways/internal/convert. Every RPC
|
|
78
|
+
// is a server stream: snapshot first, then live updates.
|
|
79
|
+
//
|
|
80
|
+
// StreamQuery executes one MetricQuery — the same message a dashboard widget
|
|
81
|
+
// stores (dashboard_gateway.proto) — so the metrics explorer, the widget
|
|
82
|
+
// editor preview, and a saved dashboard all run through one query path.
|
|
83
|
+
var MetricGatewayServiceService = exports.MetricGatewayServiceService = {
|
|
84
|
+
streamMetrics: {
|
|
85
|
+
path: '/gateway.web.v1.MetricGatewayService/StreamMetrics',
|
|
86
|
+
requestStream: false,
|
|
87
|
+
responseStream: true,
|
|
88
|
+
requestType: proto_gateway_web_v1_metric_gateway_pb.StreamMetricsRequest,
|
|
89
|
+
responseType: proto_gateway_web_v1_metric_gateway_pb.MetricCatalogEnvelope,
|
|
90
|
+
requestSerialize: serialize_gateway_web_v1_StreamMetricsRequest,
|
|
91
|
+
requestDeserialize: deserialize_gateway_web_v1_StreamMetricsRequest,
|
|
92
|
+
responseSerialize: serialize_gateway_web_v1_MetricCatalogEnvelope,
|
|
93
|
+
responseDeserialize: deserialize_gateway_web_v1_MetricCatalogEnvelope,
|
|
94
|
+
},
|
|
95
|
+
streamMetricAttributes: {
|
|
96
|
+
path: '/gateway.web.v1.MetricGatewayService/StreamMetricAttributes',
|
|
97
|
+
requestStream: false,
|
|
98
|
+
responseStream: true,
|
|
99
|
+
requestType: proto_gateway_web_v1_metric_gateway_pb.StreamMetricAttributesRequest,
|
|
100
|
+
responseType: proto_gateway_web_v1_metric_gateway_pb.MetricAttributeEnvelope,
|
|
101
|
+
requestSerialize: serialize_gateway_web_v1_StreamMetricAttributesRequest,
|
|
102
|
+
requestDeserialize: deserialize_gateway_web_v1_StreamMetricAttributesRequest,
|
|
103
|
+
responseSerialize: serialize_gateway_web_v1_MetricAttributeEnvelope,
|
|
104
|
+
responseDeserialize: deserialize_gateway_web_v1_MetricAttributeEnvelope,
|
|
105
|
+
},
|
|
106
|
+
// Ad-hoc query execution: snapshot, then live bucket updates while the
|
|
107
|
+
// stream stays open (relative ranges only; absolute ranges complete after
|
|
108
|
+
// the snapshot). Query failures abort the stream with a gRPC status.
|
|
109
|
+
streamQuery: {
|
|
110
|
+
path: '/gateway.web.v1.MetricGatewayService/StreamQuery',
|
|
111
|
+
requestStream: false,
|
|
112
|
+
responseStream: true,
|
|
113
|
+
requestType: proto_gateway_web_v1_metric_gateway_pb.StreamQueryRequest,
|
|
114
|
+
responseType: proto_gateway_web_v1_metric_gateway_pb.QueryDataEnvelope,
|
|
115
|
+
requestSerialize: serialize_gateway_web_v1_StreamQueryRequest,
|
|
116
|
+
requestDeserialize: deserialize_gateway_web_v1_StreamQueryRequest,
|
|
117
|
+
responseSerialize: serialize_gateway_web_v1_QueryDataEnvelope,
|
|
118
|
+
responseDeserialize: deserialize_gateway_web_v1_QueryDataEnvelope,
|
|
119
|
+
},
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
exports.MetricGatewayServiceClient = grpc.makeGenericClientConstructor(MetricGatewayServiceService, 'MetricGatewayService');
|