@miradorlabs/web-grpc 2.59.0 → 2.61.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/duration.ts +1 -1
- package/google/protobuf/timestamp.ts +1 -1
- package/package.json +1 -1
- package/proto/gateway/common/v1/attribute_value.ts +1 -1
- package/proto/gateway/common/v1/status.ts +1 -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/ai_gateway.ts +849 -183
- package/proto/gateway/web/v1/ai_gateway_grpc_pb.js +36 -0
- package/proto/gateway/web/v1/ai_gateway_pb.js +1329 -0
- package/proto/gateway/web/v1/attribute_value.ts +1 -1
- package/proto/gateway/web/v1/chain_gateway.ts +1 -1
- package/proto/gateway/web/v1/common.ts +1 -1
- package/proto/gateway/web/v1/derived_metric_gateway.ts +1 -1
- package/proto/gateway/web/v1/github_connector.ts +29 -2
- package/proto/gateway/web/v1/github_connector_pb.js +31 -1
- package/proto/gateway/web/v1/integration_gateway.ts +1 -1
- package/proto/gateway/web/v1/log_gateway.ts +1 -1
- package/proto/gateway/web/v1/market_gateway.ts +1 -1
- package/proto/gateway/web/v1/metric_gateway.ts +1 -1
- 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/rule_gateway.ts +1 -1
- package/proto/gateway/web/v1/slo_gateway.ts +1 -1
- package/proto/gateway/web/v1/trace_gateway.ts +1 -1
- package/proto/gateway/web/v1/trace_measure_gateway.ts +1 -1
|
@@ -52,6 +52,28 @@ function deserialize_gateway_web_v1_ActivityRhythmRequest(buffer_arg) {
|
|
|
52
52
|
return proto_gateway_web_v1_ai_gateway_pb.ActivityRhythmRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
function serialize_gateway_web_v1_BurnRate(arg) {
|
|
56
|
+
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.BurnRate)) {
|
|
57
|
+
throw new Error('Expected argument of type gateway.web.v1.BurnRate');
|
|
58
|
+
}
|
|
59
|
+
return Buffer.from(arg.serializeBinary());
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function deserialize_gateway_web_v1_BurnRate(buffer_arg) {
|
|
63
|
+
return proto_gateway_web_v1_ai_gateway_pb.BurnRate.deserializeBinary(new Uint8Array(buffer_arg));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function serialize_gateway_web_v1_BurnRateRequest(arg) {
|
|
67
|
+
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.BurnRateRequest)) {
|
|
68
|
+
throw new Error('Expected argument of type gateway.web.v1.BurnRateRequest');
|
|
69
|
+
}
|
|
70
|
+
return Buffer.from(arg.serializeBinary());
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function deserialize_gateway_web_v1_BurnRateRequest(buffer_arg) {
|
|
74
|
+
return proto_gateway_web_v1_ai_gateway_pb.BurnRateRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
75
|
+
}
|
|
76
|
+
|
|
55
77
|
function serialize_gateway_web_v1_DailyActivity(arg) {
|
|
56
78
|
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.DailyActivity)) {
|
|
57
79
|
throw new Error('Expected argument of type gateway.web.v1.DailyActivity');
|
|
@@ -633,6 +655,20 @@ streamTokenActivitySummary: {
|
|
|
633
655
|
responseSerialize: serialize_gateway_web_v1_TokenActivitySummary,
|
|
634
656
|
responseDeserialize: deserialize_gateway_web_v1_TokenActivitySummary,
|
|
635
657
|
},
|
|
658
|
+
// Live "burn rate now" gauge: the trailing-60s cost/hr + tokens/min (total plus a per-dimension
|
|
659
|
+
// breakdown) and a fixed 60-minute one-minute rolling sparkline of that rate. Fixed horizon, fast
|
|
660
|
+
// refresh; first frame is a full snapshot.
|
|
661
|
+
streamBurnRate: {
|
|
662
|
+
path: '/gateway.web.v1.AIGatewayService/StreamBurnRate',
|
|
663
|
+
requestStream: false,
|
|
664
|
+
responseStream: true,
|
|
665
|
+
requestType: proto_gateway_web_v1_ai_gateway_pb.BurnRateRequest,
|
|
666
|
+
responseType: proto_gateway_web_v1_ai_gateway_pb.BurnRate,
|
|
667
|
+
requestSerialize: serialize_gateway_web_v1_BurnRateRequest,
|
|
668
|
+
requestDeserialize: deserialize_gateway_web_v1_BurnRateRequest,
|
|
669
|
+
responseSerialize: serialize_gateway_web_v1_BurnRate,
|
|
670
|
+
responseDeserialize: deserialize_gateway_web_v1_BurnRate,
|
|
671
|
+
},
|
|
636
672
|
// Live token-burn calendar over an inclusive UTC [start_date, end_date] range: one complete row per
|
|
637
673
|
// covered day off the precomputed daily rollup. Covered empty days are zero; uncomputed history is
|
|
638
674
|
// omitted; today is provisional.
|