@miradorlabs/web-grpc 3.0.0 → 3.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.
@@ -6,6 +6,7 @@ var proto_gateway_web_v1_ai_gateway_pb = require('../../../../proto/gateway/web/
6
6
  var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js');
7
7
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
8
8
  var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
9
+ var proto_gateway_web_v1_reference_gateway_pb = require('../../../../proto/gateway/web/v1/reference_gateway_pb.js');
9
10
  var proto_gateway_web_v1_trace_gateway_pb = require('../../../../proto/gateway/web/v1/trace_gateway_pb.js');
10
11
 
11
12
  function serialize_gateway_web_v1_AISessionEventEnvelope(arg) {
@@ -305,6 +306,28 @@ function deserialize_gateway_web_v1_ListSessionsResponse(buffer_arg) {
305
306
  return proto_gateway_web_v1_ai_gateway_pb.ListSessionsResponse.deserializeBinary(new Uint8Array(buffer_arg));
306
307
  }
307
308
 
309
+ function serialize_gateway_web_v1_ModelActivityRequest(arg) {
310
+ if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ModelActivityRequest)) {
311
+ throw new Error('Expected argument of type gateway.web.v1.ModelActivityRequest');
312
+ }
313
+ return Buffer.from(arg.serializeBinary());
314
+ }
315
+
316
+ function deserialize_gateway_web_v1_ModelActivityRequest(buffer_arg) {
317
+ return proto_gateway_web_v1_ai_gateway_pb.ModelActivityRequest.deserializeBinary(new Uint8Array(buffer_arg));
318
+ }
319
+
320
+ function serialize_gateway_web_v1_ModelActivityResponse(arg) {
321
+ if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ModelActivityResponse)) {
322
+ throw new Error('Expected argument of type gateway.web.v1.ModelActivityResponse');
323
+ }
324
+ return Buffer.from(arg.serializeBinary());
325
+ }
326
+
327
+ function deserialize_gateway_web_v1_ModelActivityResponse(buffer_arg) {
328
+ return proto_gateway_web_v1_ai_gateway_pb.ModelActivityResponse.deserializeBinary(new Uint8Array(buffer_arg));
329
+ }
330
+
308
331
  function serialize_gateway_web_v1_ProjectOverview(arg) {
309
332
  if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ProjectOverview)) {
310
333
  throw new Error('Expected argument of type gateway.web.v1.ProjectOverview');
@@ -729,6 +752,20 @@ listResourceRankings: {
729
752
  responseSerialize: serialize_gateway_web_v1_ResourceRankingsResponse,
730
753
  responseDeserialize: deserialize_gateway_web_v1_ResourceRankingsResponse,
731
754
  },
755
+ // Every model of a project over a time range: usage, the tool calls, compactions and subagent runs
756
+ // attributed to each, and who called it. Groups fold stored spellings; an ungrouped name is its own row,
757
+ // costliest first. Mirrors telemetry.api.v1.
758
+ listModelActivity: {
759
+ path: '/gateway.web.v1.AIGatewayService/ListModelActivity',
760
+ requestStream: false,
761
+ responseStream: false,
762
+ requestType: proto_gateway_web_v1_ai_gateway_pb.ModelActivityRequest,
763
+ responseType: proto_gateway_web_v1_ai_gateway_pb.ModelActivityResponse,
764
+ requestSerialize: serialize_gateway_web_v1_ModelActivityRequest,
765
+ requestDeserialize: deserialize_gateway_web_v1_ModelActivityRequest,
766
+ responseSerialize: serialize_gateway_web_v1_ModelActivityResponse,
767
+ responseDeserialize: deserialize_gateway_web_v1_ModelActivityResponse,
768
+ },
732
769
  // Per-seat entitlement usage board: every entitlement owner's latest observed funding facility and
733
770
  // per-harness usage % windows. Stream-first (first frame = full snapshot), seat-scoped. Mirrors
734
771
  // telemetry.api.v1.