@miradorlabs/web-grpc 4.1.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');
@@ -1103,6 +1125,26 @@ listRelayHeartbeats: {
1103
1125
  responseSerialize: serialize_gateway_web_v1_ListRelayHeartbeatsResponse,
1104
1126
  responseDeserialize: deserialize_gateway_web_v1_ListRelayHeartbeatsResponse,
1105
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
+ },
1106
1148
  };
1107
1149
 
1108
1150
  exports.AIGatewayServiceClient = grpc.makeGenericClientConstructor(AIGatewayServiceService, 'AIGatewayService');