@miradorlabs/web-grpc 2.58.0 → 2.60.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 +2225 -1000
- package/proto/gateway/web/v1/ai_gateway_grpc_pb.js +72 -0
- package/proto/gateway/web/v1/ai_gateway_pb.js +4134 -1811
- 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 +1 -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');
|
|
@@ -316,6 +338,28 @@ function deserialize_gateway_web_v1_ProjectOverviewRequest(buffer_arg) {
|
|
|
316
338
|
return proto_gateway_web_v1_ai_gateway_pb.ProjectOverviewRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
317
339
|
}
|
|
318
340
|
|
|
341
|
+
function serialize_gateway_web_v1_ResourceRankingsRequest(arg) {
|
|
342
|
+
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ResourceRankingsRequest)) {
|
|
343
|
+
throw new Error('Expected argument of type gateway.web.v1.ResourceRankingsRequest');
|
|
344
|
+
}
|
|
345
|
+
return Buffer.from(arg.serializeBinary());
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
function deserialize_gateway_web_v1_ResourceRankingsRequest(buffer_arg) {
|
|
349
|
+
return proto_gateway_web_v1_ai_gateway_pb.ResourceRankingsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
function serialize_gateway_web_v1_ResourceRankingsResponse(arg) {
|
|
353
|
+
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ResourceRankingsResponse)) {
|
|
354
|
+
throw new Error('Expected argument of type gateway.web.v1.ResourceRankingsResponse');
|
|
355
|
+
}
|
|
356
|
+
return Buffer.from(arg.serializeBinary());
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
function deserialize_gateway_web_v1_ResourceRankingsResponse(buffer_arg) {
|
|
360
|
+
return proto_gateway_web_v1_ai_gateway_pb.ResourceRankingsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
361
|
+
}
|
|
362
|
+
|
|
319
363
|
function serialize_gateway_web_v1_SessionFileChanges(arg) {
|
|
320
364
|
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.SessionFileChanges)) {
|
|
321
365
|
throw new Error('Expected argument of type gateway.web.v1.SessionFileChanges');
|
|
@@ -611,6 +655,20 @@ streamTokenActivitySummary: {
|
|
|
611
655
|
responseSerialize: serialize_gateway_web_v1_TokenActivitySummary,
|
|
612
656
|
responseDeserialize: deserialize_gateway_web_v1_TokenActivitySummary,
|
|
613
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
|
+
},
|
|
614
672
|
// Live token-burn calendar over an inclusive UTC [start_date, end_date] range: one complete row per
|
|
615
673
|
// covered day off the precomputed daily rollup. Covered empty days are zero; uncomputed history is
|
|
616
674
|
// omitted; today is provisional.
|
|
@@ -701,6 +759,20 @@ listModelPriceHistory: {
|
|
|
701
759
|
responseSerialize: serialize_gateway_web_v1_ListModelPriceHistoryResponse,
|
|
702
760
|
responseDeserialize: deserialize_gateway_web_v1_ListModelPriceHistoryResponse,
|
|
703
761
|
},
|
|
762
|
+
// Top-N most-used resources of one kind (skills / tools / files / URLs / bash commands) over a
|
|
763
|
+
// sliding window, each with the prior equal-length window's count for a trend delta and distinct
|
|
764
|
+
// sessions. Mirrors telemetry.api.v1.
|
|
765
|
+
listResourceRankings: {
|
|
766
|
+
path: '/gateway.web.v1.AIGatewayService/ListResourceRankings',
|
|
767
|
+
requestStream: false,
|
|
768
|
+
responseStream: false,
|
|
769
|
+
requestType: proto_gateway_web_v1_ai_gateway_pb.ResourceRankingsRequest,
|
|
770
|
+
responseType: proto_gateway_web_v1_ai_gateway_pb.ResourceRankingsResponse,
|
|
771
|
+
requestSerialize: serialize_gateway_web_v1_ResourceRankingsRequest,
|
|
772
|
+
requestDeserialize: deserialize_gateway_web_v1_ResourceRankingsRequest,
|
|
773
|
+
responseSerialize: serialize_gateway_web_v1_ResourceRankingsResponse,
|
|
774
|
+
responseDeserialize: deserialize_gateway_web_v1_ResourceRankingsResponse,
|
|
775
|
+
},
|
|
704
776
|
};
|
|
705
777
|
|
|
706
778
|
exports.AIGatewayServiceClient = grpc.makeGenericClientConstructor(AIGatewayServiceService, 'AIGatewayService');
|