@miradorlabs/web-grpc 2.55.0 → 2.58.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');
@@ -603,6 +625,19 @@ streamDailyActivity: {
603
625
  responseSerialize: serialize_gateway_web_v1_DailyActivity,
604
626
  responseDeserialize: deserialize_gateway_web_v1_DailyActivity,
605
627
  },
628
+ // Live weekly activity rhythm: a sparse (weekday, hour) heatmap over a bounded sliding window in an
629
+ // explicit IANA time zone. Every latest logical event counts; settled model calls add token/cost.
630
+ streamActivityRhythm: {
631
+ path: '/gateway.web.v1.AIGatewayService/StreamActivityRhythm',
632
+ requestStream: false,
633
+ responseStream: true,
634
+ requestType: proto_gateway_web_v1_ai_gateway_pb.ActivityRhythmRequest,
635
+ responseType: proto_gateway_web_v1_ai_gateway_pb.ActivityRhythm,
636
+ requestSerialize: serialize_gateway_web_v1_ActivityRhythmRequest,
637
+ requestDeserialize: deserialize_gateway_web_v1_ActivityRhythmRequest,
638
+ responseSerialize: serialize_gateway_web_v1_ActivityRhythm,
639
+ responseDeserialize: deserialize_gateway_web_v1_ActivityRhythm,
640
+ },
606
641
  // Live stream of one project's dashboard bundle: headline totals, model/provider/source mix,
607
642
  // and top sessions by cost.
608
643
  streamProjectOverview: {