@miradorlabs/web-grpc 4.0.0 → 4.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.
@@ -307,6 +307,28 @@ function deserialize_gateway_web_v1_ListGitActivitiesResponse(buffer_arg) {
307
307
  return proto_gateway_web_v1_ai_gateway_pb.ListGitActivitiesResponse.deserializeBinary(new Uint8Array(buffer_arg));
308
308
  }
309
309
 
310
+ function serialize_gateway_web_v1_ListIssueCostsRequest(arg) {
311
+ if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListIssueCostsRequest)) {
312
+ throw new Error('Expected argument of type gateway.web.v1.ListIssueCostsRequest');
313
+ }
314
+ return Buffer.from(arg.serializeBinary());
315
+ }
316
+
317
+ function deserialize_gateway_web_v1_ListIssueCostsRequest(buffer_arg) {
318
+ return proto_gateway_web_v1_ai_gateway_pb.ListIssueCostsRequest.deserializeBinary(new Uint8Array(buffer_arg));
319
+ }
320
+
321
+ function serialize_gateway_web_v1_ListIssueCostsResponse(arg) {
322
+ if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListIssueCostsResponse)) {
323
+ throw new Error('Expected argument of type gateway.web.v1.ListIssueCostsResponse');
324
+ }
325
+ return Buffer.from(arg.serializeBinary());
326
+ }
327
+
328
+ function deserialize_gateway_web_v1_ListIssueCostsResponse(buffer_arg) {
329
+ return proto_gateway_web_v1_ai_gateway_pb.ListIssueCostsResponse.deserializeBinary(new Uint8Array(buffer_arg));
330
+ }
331
+
310
332
  function serialize_gateway_web_v1_ListModelPriceHistoryRequest(arg) {
311
333
  if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListModelPriceHistoryRequest)) {
312
334
  throw new Error('Expected argument of type gateway.web.v1.ListModelPriceHistoryRequest');
@@ -351,6 +373,28 @@ function deserialize_gateway_web_v1_ListModelPricesResponse(buffer_arg) {
351
373
  return proto_gateway_web_v1_ai_gateway_pb.ListModelPricesResponse.deserializeBinary(new Uint8Array(buffer_arg));
352
374
  }
353
375
 
376
+ function serialize_gateway_web_v1_ListModelReasoningRequest(arg) {
377
+ if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListModelReasoningRequest)) {
378
+ throw new Error('Expected argument of type gateway.web.v1.ListModelReasoningRequest');
379
+ }
380
+ return Buffer.from(arg.serializeBinary());
381
+ }
382
+
383
+ function deserialize_gateway_web_v1_ListModelReasoningRequest(buffer_arg) {
384
+ return proto_gateway_web_v1_ai_gateway_pb.ListModelReasoningRequest.deserializeBinary(new Uint8Array(buffer_arg));
385
+ }
386
+
387
+ function serialize_gateway_web_v1_ListModelReasoningResponse(arg) {
388
+ if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListModelReasoningResponse)) {
389
+ throw new Error('Expected argument of type gateway.web.v1.ListModelReasoningResponse');
390
+ }
391
+ return Buffer.from(arg.serializeBinary());
392
+ }
393
+
394
+ function deserialize_gateway_web_v1_ListModelReasoningResponse(buffer_arg) {
395
+ return proto_gateway_web_v1_ai_gateway_pb.ListModelReasoningResponse.deserializeBinary(new Uint8Array(buffer_arg));
396
+ }
397
+
354
398
  function serialize_gateway_web_v1_ListRelayHeartbeatsRequest(arg) {
355
399
  if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListRelayHeartbeatsRequest)) {
356
400
  throw new Error('Expected argument of type gateway.web.v1.ListRelayHeartbeatsRequest');
@@ -987,6 +1031,20 @@ listModelActivity: {
987
1031
  responseSerialize: serialize_gateway_web_v1_ModelActivityResponse,
988
1032
  responseDeserialize: deserialize_gateway_web_v1_ModelActivityResponse,
989
1033
  },
1034
+ // How much each model thought per call over a time range, one row per (model, effort) after groups fold stored
1035
+ // spellings: counted calls, exact medians and p90 per call and per turn, and each overlapped ISO week's median;
1036
+ // with coverage and what served the calls. Counts only. Mirrors ai.api.v1.
1037
+ listModelReasoning: {
1038
+ path: '/gateway.web.v1.AIGatewayService/ListModelReasoning',
1039
+ requestStream: false,
1040
+ responseStream: false,
1041
+ requestType: proto_gateway_web_v1_ai_gateway_pb.ListModelReasoningRequest,
1042
+ responseType: proto_gateway_web_v1_ai_gateway_pb.ListModelReasoningResponse,
1043
+ requestSerialize: serialize_gateway_web_v1_ListModelReasoningRequest,
1044
+ requestDeserialize: deserialize_gateway_web_v1_ListModelReasoningRequest,
1045
+ responseSerialize: serialize_gateway_web_v1_ListModelReasoningResponse,
1046
+ responseDeserialize: deserialize_gateway_web_v1_ListModelReasoningResponse,
1047
+ },
990
1048
  // One session's model calls and git activity on one epoch-aligned time grid: per bucket, each model's
991
1049
  // calls, tokens and cost, and each git action's count. Mirrors telemetry.api.v1.
992
1050
  getSessionUsageTrend: {
@@ -1067,6 +1125,26 @@ listRelayHeartbeats: {
1067
1125
  responseSerialize: serialize_gateway_web_v1_ListRelayHeartbeatsResponse,
1068
1126
  responseDeserialize: deserialize_gateway_web_v1_ListRelayHeartbeatsResponse,
1069
1127
  },
1128
+ // The organization's recorded AI cost (provider cost, gross of any subscription) attributed to its tracker's issues,
1129
+ // per pull request: each session that started in the window splits its cost evenly across the pull requests it
1130
+ // links to, then each pull request's share evenly across the issues the tracker attaches it to, in integer
1131
+ // nanodollars, over the whole organization before parent_ids and iteration_ids narrow the groups, so a shared
1132
+ // session never counts twice. An issue counts under its parent and iteration as last synced. One row per issue,
1133
+ // parent or iteration, highest cost first, numbered pages; totals add up to the window's recorded cost to the
1134
+ // nanodollar. Organization-level, for every member. Weakly consistent across pages. Nothing is served until the
1135
+ // tracker is connected and its first full sync has completed (sync_state); STATUS_CODE_UNAVAILABLE when Terma cannot
1136
+ // tell whether it is connected. Mirrors ai.api.v1.
1137
+ listIssueCosts: {
1138
+ path: '/gateway.web.v1.AIGatewayService/ListIssueCosts',
1139
+ requestStream: false,
1140
+ responseStream: false,
1141
+ requestType: proto_gateway_web_v1_ai_gateway_pb.ListIssueCostsRequest,
1142
+ responseType: proto_gateway_web_v1_ai_gateway_pb.ListIssueCostsResponse,
1143
+ requestSerialize: serialize_gateway_web_v1_ListIssueCostsRequest,
1144
+ requestDeserialize: deserialize_gateway_web_v1_ListIssueCostsRequest,
1145
+ responseSerialize: serialize_gateway_web_v1_ListIssueCostsResponse,
1146
+ responseDeserialize: deserialize_gateway_web_v1_ListIssueCostsResponse,
1147
+ },
1070
1148
  };
1071
1149
 
1072
1150
  exports.AIGatewayServiceClient = grpc.makeGenericClientConstructor(AIGatewayServiceService, 'AIGatewayService');