@miradorlabs/web-grpc 3.32.0 → 3.33.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.
|
@@ -494,6 +494,28 @@ function deserialize_gateway_web_v1_SessionsSnapshot(buffer_arg) {
|
|
|
494
494
|
return proto_gateway_web_v1_ai_gateway_pb.SessionsSnapshot.deserializeBinary(new Uint8Array(buffer_arg));
|
|
495
495
|
}
|
|
496
496
|
|
|
497
|
+
function serialize_gateway_web_v1_SpendForecast(arg) {
|
|
498
|
+
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.SpendForecast)) {
|
|
499
|
+
throw new Error('Expected argument of type gateway.web.v1.SpendForecast');
|
|
500
|
+
}
|
|
501
|
+
return Buffer.from(arg.serializeBinary());
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
function deserialize_gateway_web_v1_SpendForecast(buffer_arg) {
|
|
505
|
+
return proto_gateway_web_v1_ai_gateway_pb.SpendForecast.deserializeBinary(new Uint8Array(buffer_arg));
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
function serialize_gateway_web_v1_SpendForecastRequest(arg) {
|
|
509
|
+
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.SpendForecastRequest)) {
|
|
510
|
+
throw new Error('Expected argument of type gateway.web.v1.SpendForecastRequest');
|
|
511
|
+
}
|
|
512
|
+
return Buffer.from(arg.serializeBinary());
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
function deserialize_gateway_web_v1_SpendForecastRequest(buffer_arg) {
|
|
516
|
+
return proto_gateway_web_v1_ai_gateway_pb.SpendForecastRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
517
|
+
}
|
|
518
|
+
|
|
497
519
|
function serialize_gateway_web_v1_StreamEntitlementsRequest(arg) {
|
|
498
520
|
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.StreamEntitlementsRequest)) {
|
|
499
521
|
throw new Error('Expected argument of type gateway.web.v1.StreamEntitlementsRequest');
|
|
@@ -729,6 +751,21 @@ streamDailyActivity: {
|
|
|
729
751
|
responseSerialize: serialize_gateway_web_v1_DailyActivity,
|
|
730
752
|
responseDeserialize: deserialize_gateway_web_v1_DailyActivity,
|
|
731
753
|
},
|
|
754
|
+
// Live current-UTC-month spend forecast: month-to-date cost and the projected month-end total (a band from
|
|
755
|
+
// replaying recent weeks), for the project and per model, provider, source system, user and api key, off the
|
|
756
|
+
// same daily rollup as StreamDailyActivity; filter.funding_modes forecasts the cost on the listed funding modes. Mirrors
|
|
757
|
+
// telemetry.api.v1.
|
|
758
|
+
streamSpendForecast: {
|
|
759
|
+
path: '/gateway.web.v1.AIGatewayService/StreamSpendForecast',
|
|
760
|
+
requestStream: false,
|
|
761
|
+
responseStream: true,
|
|
762
|
+
requestType: proto_gateway_web_v1_ai_gateway_pb.SpendForecastRequest,
|
|
763
|
+
responseType: proto_gateway_web_v1_ai_gateway_pb.SpendForecast,
|
|
764
|
+
requestSerialize: serialize_gateway_web_v1_SpendForecastRequest,
|
|
765
|
+
requestDeserialize: deserialize_gateway_web_v1_SpendForecastRequest,
|
|
766
|
+
responseSerialize: serialize_gateway_web_v1_SpendForecast,
|
|
767
|
+
responseDeserialize: deserialize_gateway_web_v1_SpendForecast,
|
|
768
|
+
},
|
|
732
769
|
// Live weekly activity rhythm: a sparse (weekday, hour) heatmap over a bounded sliding window in an
|
|
733
770
|
// explicit IANA time zone. Every latest logical event counts; settled model calls add token/cost.
|
|
734
771
|
streamActivityRhythm: {
|