@miradorlabs/web-grpc 4.33.0 → 4.35.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.
@@ -285,6 +285,28 @@ function deserialize_gateway_web_v1_GetSessionIssuesResponse(buffer_arg) {
285
285
  return proto_gateway_web_v1_ai_gateway_pb.GetSessionIssuesResponse.deserializeBinary(new Uint8Array(buffer_arg));
286
286
  }
287
287
 
288
+ function serialize_gateway_web_v1_GetSessionPeriodTotalsRequest(arg) {
289
+ if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.GetSessionPeriodTotalsRequest)) {
290
+ throw new Error('Expected argument of type gateway.web.v1.GetSessionPeriodTotalsRequest');
291
+ }
292
+ return Buffer.from(arg.serializeBinary());
293
+ }
294
+
295
+ function deserialize_gateway_web_v1_GetSessionPeriodTotalsRequest(buffer_arg) {
296
+ return proto_gateway_web_v1_ai_gateway_pb.GetSessionPeriodTotalsRequest.deserializeBinary(new Uint8Array(buffer_arg));
297
+ }
298
+
299
+ function serialize_gateway_web_v1_GetSessionPeriodTotalsResponse(arg) {
300
+ if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.GetSessionPeriodTotalsResponse)) {
301
+ throw new Error('Expected argument of type gateway.web.v1.GetSessionPeriodTotalsResponse');
302
+ }
303
+ return Buffer.from(arg.serializeBinary());
304
+ }
305
+
306
+ function deserialize_gateway_web_v1_GetSessionPeriodTotalsResponse(buffer_arg) {
307
+ return proto_gateway_web_v1_ai_gateway_pb.GetSessionPeriodTotalsResponse.deserializeBinary(new Uint8Array(buffer_arg));
308
+ }
309
+
288
310
  function serialize_gateway_web_v1_GetSessionScoreRubricCatalogRequest(arg) {
289
311
  if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.GetSessionScoreRubricCatalogRequest)) {
290
312
  throw new Error('Expected argument of type gateway.web.v1.GetSessionScoreRubricCatalogRequest');
@@ -593,28 +615,6 @@ function deserialize_gateway_web_v1_ListModelReasoningTrendResponse(buffer_arg)
593
615
  return proto_gateway_web_v1_ai_gateway_pb.ListModelReasoningTrendResponse.deserializeBinary(new Uint8Array(buffer_arg));
594
616
  }
595
617
 
596
- function serialize_gateway_web_v1_ListProjectInsightCardsRequest(arg) {
597
- if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListProjectInsightCardsRequest)) {
598
- throw new Error('Expected argument of type gateway.web.v1.ListProjectInsightCardsRequest');
599
- }
600
- return Buffer.from(arg.serializeBinary());
601
- }
602
-
603
- function deserialize_gateway_web_v1_ListProjectInsightCardsRequest(buffer_arg) {
604
- return proto_gateway_web_v1_ai_gateway_pb.ListProjectInsightCardsRequest.deserializeBinary(new Uint8Array(buffer_arg));
605
- }
606
-
607
- function serialize_gateway_web_v1_ListProjectInsightCardsResponse(arg) {
608
- if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListProjectInsightCardsResponse)) {
609
- throw new Error('Expected argument of type gateway.web.v1.ListProjectInsightCardsResponse');
610
- }
611
- return Buffer.from(arg.serializeBinary());
612
- }
613
-
614
- function deserialize_gateway_web_v1_ListProjectInsightCardsResponse(buffer_arg) {
615
- return proto_gateway_web_v1_ai_gateway_pb.ListProjectInsightCardsResponse.deserializeBinary(new Uint8Array(buffer_arg));
616
- }
617
-
618
618
  function serialize_gateway_web_v1_ListRelayHeartbeatsRequest(arg) {
619
619
  if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListRelayHeartbeatsRequest)) {
620
620
  throw new Error('Expected argument of type gateway.web.v1.ListRelayHeartbeatsRequest');
@@ -659,28 +659,6 @@ function deserialize_gateway_web_v1_ListSessionEventsResponse(buffer_arg) {
659
659
  return proto_gateway_web_v1_ai_gateway_pb.ListSessionEventsResponse.deserializeBinary(new Uint8Array(buffer_arg));
660
660
  }
661
661
 
662
- function serialize_gateway_web_v1_ListSessionInsightsRequest(arg) {
663
- if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListSessionInsightsRequest)) {
664
- throw new Error('Expected argument of type gateway.web.v1.ListSessionInsightsRequest');
665
- }
666
- return Buffer.from(arg.serializeBinary());
667
- }
668
-
669
- function deserialize_gateway_web_v1_ListSessionInsightsRequest(buffer_arg) {
670
- return proto_gateway_web_v1_ai_gateway_pb.ListSessionInsightsRequest.deserializeBinary(new Uint8Array(buffer_arg));
671
- }
672
-
673
- function serialize_gateway_web_v1_ListSessionInsightsResponse(arg) {
674
- if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListSessionInsightsResponse)) {
675
- throw new Error('Expected argument of type gateway.web.v1.ListSessionInsightsResponse');
676
- }
677
- return Buffer.from(arg.serializeBinary());
678
- }
679
-
680
- function deserialize_gateway_web_v1_ListSessionInsightsResponse(buffer_arg) {
681
- return proto_gateway_web_v1_ai_gateway_pb.ListSessionInsightsResponse.deserializeBinary(new Uint8Array(buffer_arg));
682
- }
683
-
684
662
  function serialize_gateway_web_v1_ListSessionsRequest(arg) {
685
663
  if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListSessionsRequest)) {
686
664
  throw new Error('Expected argument of type gateway.web.v1.ListSessionsRequest');
@@ -1411,6 +1389,20 @@ getSessionAnalysisOverview: {
1411
1389
  responseSerialize: serialize_gateway_web_v1_GetSessionAnalysisOverviewResponse,
1412
1390
  responseDeserialize: deserialize_gateway_web_v1_GetSessionAnalysisOverviewResponse,
1413
1391
  },
1392
+ // The sessions ListSessions lists with filter.active_after, and those of the window before it, rolled up from their
1393
+ // whole-session figures: git and pull request counts and tokens per window, and for the window itself each actor's
1394
+ // usage and the work type and size counts. Mirrors ai.api.v1.
1395
+ getSessionPeriodTotals: {
1396
+ path: '/gateway.web.v1.AIGatewayService/GetSessionPeriodTotals',
1397
+ requestStream: false,
1398
+ responseStream: false,
1399
+ requestType: proto_gateway_web_v1_ai_gateway_pb.GetSessionPeriodTotalsRequest,
1400
+ responseType: proto_gateway_web_v1_ai_gateway_pb.GetSessionPeriodTotalsResponse,
1401
+ requestSerialize: serialize_gateway_web_v1_GetSessionPeriodTotalsRequest,
1402
+ requestDeserialize: deserialize_gateway_web_v1_GetSessionPeriodTotalsRequest,
1403
+ responseSerialize: serialize_gateway_web_v1_GetSessionPeriodTotalsResponse,
1404
+ responseDeserialize: deserialize_gateway_web_v1_GetSessionPeriodTotalsResponse,
1405
+ },
1414
1406
  // One session's latest score against the scorer's rubric, with each criterion's assessment and improvement, and
1415
1407
  // its latest insights with their cause and action; each part absent until its job has run. Mirrors ai.api.v1.
1416
1408
  getSessionAnalysis: {
@@ -1424,19 +1416,6 @@ getSessionAnalysis: {
1424
1416
  responseSerialize: serialize_gateway_web_v1_GetSessionAnalysisResponse,
1425
1417
  responseDeserialize: deserialize_gateway_web_v1_GetSessionAnalysisResponse,
1426
1418
  },
1427
- // A project's insights one at a time, newest analysis first: a person's most recent insights with filter.user_ids,
1428
- // the team's without. Mirrors ai.api.v1.
1429
- listSessionInsights: {
1430
- path: '/gateway.web.v1.AIGatewayService/ListSessionInsights',
1431
- requestStream: false,
1432
- responseStream: false,
1433
- requestType: proto_gateway_web_v1_ai_gateway_pb.ListSessionInsightsRequest,
1434
- responseType: proto_gateway_web_v1_ai_gateway_pb.ListSessionInsightsResponse,
1435
- requestSerialize: serialize_gateway_web_v1_ListSessionInsightsRequest,
1436
- requestDeserialize: deserialize_gateway_web_v1_ListSessionInsightsRequest,
1437
- responseSerialize: serialize_gateway_web_v1_ListSessionInsightsResponse,
1438
- responseDeserialize: deserialize_gateway_web_v1_ListSessionInsightsResponse,
1439
- },
1440
1419
  // A project's graded sessions, or one person's, per ISO week (UTC, by last activity): counts, the mean score, the
1441
1420
  // mean grade value per rubric criterion. Directional. Mirrors ai.api.v1.
1442
1421
  getSessionScoreTrend: {
@@ -1597,19 +1576,6 @@ listIssueSessions: {
1597
1576
  responseSerialize: serialize_gateway_web_v1_ListIssueSessionsResponse,
1598
1577
  responseDeserialize: deserialize_gateway_web_v1_ListIssueSessionsResponse,
1599
1578
  },
1600
- // The project's cards across local days, newest local day first and rank order within a day: each day's latest run,
1601
- // only when it is READY, with the run context each card is labelled with. Token pages. Mirrors ai.api.v1.
1602
- listProjectInsightCards: {
1603
- path: '/gateway.web.v1.AIGatewayService/ListProjectInsightCards',
1604
- requestStream: false,
1605
- responseStream: false,
1606
- requestType: proto_gateway_web_v1_ai_gateway_pb.ListProjectInsightCardsRequest,
1607
- responseType: proto_gateway_web_v1_ai_gateway_pb.ListProjectInsightCardsResponse,
1608
- requestSerialize: serialize_gateway_web_v1_ListProjectInsightCardsRequest,
1609
- requestDeserialize: deserialize_gateway_web_v1_ListProjectInsightCardsRequest,
1610
- responseSerialize: serialize_gateway_web_v1_ListProjectInsightCardsResponse,
1611
- responseDeserialize: deserialize_gateway_web_v1_ListProjectInsightCardsResponse,
1612
- },
1613
1579
  };
1614
1580
 
1615
1581
  exports.AIGatewayServiceClient = grpc.makeGenericClientConstructor(AIGatewayServiceService, 'AIGatewayService');