@miradorlabs/web-grpc 4.31.0 → 4.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.
@@ -219,6 +219,28 @@ function deserialize_gateway_web_v1_GetReasoningTrendContributionResponse(buffer
219
219
  return proto_gateway_web_v1_ai_gateway_pb.GetReasoningTrendContributionResponse.deserializeBinary(new Uint8Array(buffer_arg));
220
220
  }
221
221
 
222
+ function serialize_gateway_web_v1_GetSessionAnalysisOverviewRequest(arg) {
223
+ if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.GetSessionAnalysisOverviewRequest)) {
224
+ throw new Error('Expected argument of type gateway.web.v1.GetSessionAnalysisOverviewRequest');
225
+ }
226
+ return Buffer.from(arg.serializeBinary());
227
+ }
228
+
229
+ function deserialize_gateway_web_v1_GetSessionAnalysisOverviewRequest(buffer_arg) {
230
+ return proto_gateway_web_v1_ai_gateway_pb.GetSessionAnalysisOverviewRequest.deserializeBinary(new Uint8Array(buffer_arg));
231
+ }
232
+
233
+ function serialize_gateway_web_v1_GetSessionAnalysisOverviewResponse(arg) {
234
+ if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.GetSessionAnalysisOverviewResponse)) {
235
+ throw new Error('Expected argument of type gateway.web.v1.GetSessionAnalysisOverviewResponse');
236
+ }
237
+ return Buffer.from(arg.serializeBinary());
238
+ }
239
+
240
+ function deserialize_gateway_web_v1_GetSessionAnalysisOverviewResponse(buffer_arg) {
241
+ return proto_gateway_web_v1_ai_gateway_pb.GetSessionAnalysisOverviewResponse.deserializeBinary(new Uint8Array(buffer_arg));
242
+ }
243
+
222
244
  function serialize_gateway_web_v1_GetSessionAnalysisRequest(arg) {
223
245
  if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.GetSessionAnalysisRequest)) {
224
246
  throw new Error('Expected argument of type gateway.web.v1.GetSessionAnalysisRequest');
@@ -318,6 +340,28 @@ function deserialize_gateway_web_v1_GetSessionSummaryRequest(buffer_arg) {
318
340
  return proto_gateway_web_v1_ai_gateway_pb.GetSessionSummaryRequest.deserializeBinary(new Uint8Array(buffer_arg));
319
341
  }
320
342
 
343
+ function serialize_gateway_web_v1_GetSessionTotalsTrendRequest(arg) {
344
+ if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.GetSessionTotalsTrendRequest)) {
345
+ throw new Error('Expected argument of type gateway.web.v1.GetSessionTotalsTrendRequest');
346
+ }
347
+ return Buffer.from(arg.serializeBinary());
348
+ }
349
+
350
+ function deserialize_gateway_web_v1_GetSessionTotalsTrendRequest(buffer_arg) {
351
+ return proto_gateway_web_v1_ai_gateway_pb.GetSessionTotalsTrendRequest.deserializeBinary(new Uint8Array(buffer_arg));
352
+ }
353
+
354
+ function serialize_gateway_web_v1_GetSessionTotalsTrendResponse(arg) {
355
+ if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.GetSessionTotalsTrendResponse)) {
356
+ throw new Error('Expected argument of type gateway.web.v1.GetSessionTotalsTrendResponse');
357
+ }
358
+ return Buffer.from(arg.serializeBinary());
359
+ }
360
+
361
+ function deserialize_gateway_web_v1_GetSessionTotalsTrendResponse(buffer_arg) {
362
+ return proto_gateway_web_v1_ai_gateway_pb.GetSessionTotalsTrendResponse.deserializeBinary(new Uint8Array(buffer_arg));
363
+ }
364
+
321
365
  function serialize_gateway_web_v1_GitActivityFrame(arg) {
322
366
  if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.GitActivityFrame)) {
323
367
  throw new Error('Expected argument of type gateway.web.v1.GitActivityFrame');
@@ -1339,6 +1383,34 @@ getSessionUsageTrend: {
1339
1383
  responseSerialize: serialize_gateway_web_v1_SessionUsageTrendResponse,
1340
1384
  responseDeserialize: deserialize_gateway_web_v1_SessionUsageTrendResponse,
1341
1385
  },
1386
+ // The sessions ListSessions lists with filter.active_after, per hour or calendar day of each session's last activity
1387
+ // and source system: how many sessions, and their whole-session model calls, tokens and cost. Each session's
1388
+ // lifetime totals land in the bucket of its last activity. Unpaged, bounded by its window. Mirrors ai.api.v1.
1389
+ getSessionTotalsTrend: {
1390
+ path: '/gateway.web.v1.AIGatewayService/GetSessionTotalsTrend',
1391
+ requestStream: false,
1392
+ responseStream: false,
1393
+ requestType: proto_gateway_web_v1_ai_gateway_pb.GetSessionTotalsTrendRequest,
1394
+ responseType: proto_gateway_web_v1_ai_gateway_pb.GetSessionTotalsTrendResponse,
1395
+ requestSerialize: serialize_gateway_web_v1_GetSessionTotalsTrendRequest,
1396
+ requestDeserialize: deserialize_gateway_web_v1_GetSessionTotalsTrendRequest,
1397
+ responseSerialize: serialize_gateway_web_v1_GetSessionTotalsTrendResponse,
1398
+ responseDeserialize: deserialize_gateway_web_v1_GetSessionTotalsTrendResponse,
1399
+ },
1400
+ // The sessions ListSessions lists for the same principals, source systems and active_after, rolled up from what
1401
+ // the analysis jobs wrote: how many sessions, how many carry each work type, and the latest 20 that carry a score
1402
+ // with how many do. Mirrors ai.api.v1.
1403
+ getSessionAnalysisOverview: {
1404
+ path: '/gateway.web.v1.AIGatewayService/GetSessionAnalysisOverview',
1405
+ requestStream: false,
1406
+ responseStream: false,
1407
+ requestType: proto_gateway_web_v1_ai_gateway_pb.GetSessionAnalysisOverviewRequest,
1408
+ responseType: proto_gateway_web_v1_ai_gateway_pb.GetSessionAnalysisOverviewResponse,
1409
+ requestSerialize: serialize_gateway_web_v1_GetSessionAnalysisOverviewRequest,
1410
+ requestDeserialize: deserialize_gateway_web_v1_GetSessionAnalysisOverviewRequest,
1411
+ responseSerialize: serialize_gateway_web_v1_GetSessionAnalysisOverviewResponse,
1412
+ responseDeserialize: deserialize_gateway_web_v1_GetSessionAnalysisOverviewResponse,
1413
+ },
1342
1414
  // One session's latest score against the scorer's rubric, with each criterion's assessment and improvement, and
1343
1415
  // its latest insights with their cause and action; each part absent until its job has run. Mirrors ai.api.v1.
1344
1416
  getSessionAnalysis: {