@miradorlabs/web-grpc 2.57.0 → 2.59.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.
@@ -30,6 +30,28 @@ function deserialize_gateway_web_v1_AISessionSummary(buffer_arg) {
30
30
  return proto_gateway_web_v1_ai_gateway_pb.AISessionSummary.deserializeBinary(new Uint8Array(buffer_arg));
31
31
  }
32
32
 
33
+ function serialize_gateway_web_v1_ActivityRhythm(arg) {
34
+ if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ActivityRhythm)) {
35
+ throw new Error('Expected argument of type gateway.web.v1.ActivityRhythm');
36
+ }
37
+ return Buffer.from(arg.serializeBinary());
38
+ }
39
+
40
+ function deserialize_gateway_web_v1_ActivityRhythm(buffer_arg) {
41
+ return proto_gateway_web_v1_ai_gateway_pb.ActivityRhythm.deserializeBinary(new Uint8Array(buffer_arg));
42
+ }
43
+
44
+ function serialize_gateway_web_v1_ActivityRhythmRequest(arg) {
45
+ if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ActivityRhythmRequest)) {
46
+ throw new Error('Expected argument of type gateway.web.v1.ActivityRhythmRequest');
47
+ }
48
+ return Buffer.from(arg.serializeBinary());
49
+ }
50
+
51
+ function deserialize_gateway_web_v1_ActivityRhythmRequest(buffer_arg) {
52
+ return proto_gateway_web_v1_ai_gateway_pb.ActivityRhythmRequest.deserializeBinary(new Uint8Array(buffer_arg));
53
+ }
54
+
33
55
  function serialize_gateway_web_v1_DailyActivity(arg) {
34
56
  if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.DailyActivity)) {
35
57
  throw new Error('Expected argument of type gateway.web.v1.DailyActivity');
@@ -294,6 +316,28 @@ function deserialize_gateway_web_v1_ProjectOverviewRequest(buffer_arg) {
294
316
  return proto_gateway_web_v1_ai_gateway_pb.ProjectOverviewRequest.deserializeBinary(new Uint8Array(buffer_arg));
295
317
  }
296
318
 
319
+ function serialize_gateway_web_v1_ResourceRankingsRequest(arg) {
320
+ if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ResourceRankingsRequest)) {
321
+ throw new Error('Expected argument of type gateway.web.v1.ResourceRankingsRequest');
322
+ }
323
+ return Buffer.from(arg.serializeBinary());
324
+ }
325
+
326
+ function deserialize_gateway_web_v1_ResourceRankingsRequest(buffer_arg) {
327
+ return proto_gateway_web_v1_ai_gateway_pb.ResourceRankingsRequest.deserializeBinary(new Uint8Array(buffer_arg));
328
+ }
329
+
330
+ function serialize_gateway_web_v1_ResourceRankingsResponse(arg) {
331
+ if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ResourceRankingsResponse)) {
332
+ throw new Error('Expected argument of type gateway.web.v1.ResourceRankingsResponse');
333
+ }
334
+ return Buffer.from(arg.serializeBinary());
335
+ }
336
+
337
+ function deserialize_gateway_web_v1_ResourceRankingsResponse(buffer_arg) {
338
+ return proto_gateway_web_v1_ai_gateway_pb.ResourceRankingsResponse.deserializeBinary(new Uint8Array(buffer_arg));
339
+ }
340
+
297
341
  function serialize_gateway_web_v1_SessionFileChanges(arg) {
298
342
  if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.SessionFileChanges)) {
299
343
  throw new Error('Expected argument of type gateway.web.v1.SessionFileChanges');
@@ -603,6 +647,19 @@ streamDailyActivity: {
603
647
  responseSerialize: serialize_gateway_web_v1_DailyActivity,
604
648
  responseDeserialize: deserialize_gateway_web_v1_DailyActivity,
605
649
  },
650
+ // Live weekly activity rhythm: a sparse (weekday, hour) heatmap over a bounded sliding window in an
651
+ // explicit IANA time zone. Every latest logical event counts; settled model calls add token/cost.
652
+ streamActivityRhythm: {
653
+ path: '/gateway.web.v1.AIGatewayService/StreamActivityRhythm',
654
+ requestStream: false,
655
+ responseStream: true,
656
+ requestType: proto_gateway_web_v1_ai_gateway_pb.ActivityRhythmRequest,
657
+ responseType: proto_gateway_web_v1_ai_gateway_pb.ActivityRhythm,
658
+ requestSerialize: serialize_gateway_web_v1_ActivityRhythmRequest,
659
+ requestDeserialize: deserialize_gateway_web_v1_ActivityRhythmRequest,
660
+ responseSerialize: serialize_gateway_web_v1_ActivityRhythm,
661
+ responseDeserialize: deserialize_gateway_web_v1_ActivityRhythm,
662
+ },
606
663
  // Live stream of one project's dashboard bundle: headline totals, model/provider/source mix,
607
664
  // and top sessions by cost.
608
665
  streamProjectOverview: {
@@ -666,6 +723,20 @@ listModelPriceHistory: {
666
723
  responseSerialize: serialize_gateway_web_v1_ListModelPriceHistoryResponse,
667
724
  responseDeserialize: deserialize_gateway_web_v1_ListModelPriceHistoryResponse,
668
725
  },
726
+ // Top-N most-used resources of one kind (skills / tools / files / URLs / bash commands) over a
727
+ // sliding window, each with the prior equal-length window's count for a trend delta and distinct
728
+ // sessions. Mirrors telemetry.api.v1.
729
+ listResourceRankings: {
730
+ path: '/gateway.web.v1.AIGatewayService/ListResourceRankings',
731
+ requestStream: false,
732
+ responseStream: false,
733
+ requestType: proto_gateway_web_v1_ai_gateway_pb.ResourceRankingsRequest,
734
+ responseType: proto_gateway_web_v1_ai_gateway_pb.ResourceRankingsResponse,
735
+ requestSerialize: serialize_gateway_web_v1_ResourceRankingsRequest,
736
+ requestDeserialize: deserialize_gateway_web_v1_ResourceRankingsRequest,
737
+ responseSerialize: serialize_gateway_web_v1_ResourceRankingsResponse,
738
+ responseDeserialize: deserialize_gateway_web_v1_ResourceRankingsResponse,
739
+ },
669
740
  };
670
741
 
671
742
  exports.AIGatewayServiceClient = grpc.makeGenericClientConstructor(AIGatewayServiceService, 'AIGatewayService');