@miradorlabs/web-grpc 4.1.0 → 4.3.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,28 @@ 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
+ // by attribution_method (PER_PR when unspecified): PER_PR splits each session's
1130
+ // cost evenly across the pull requests it links to, then each pull request's share evenly across the issues the
1131
+ // tracker attaches it to; PER_TICKET splits it evenly across the distinct issues of all its pull requests plus one
1132
+ // unattributed slot per pull request with no issue. Integer
1133
+ // nanodollars, over the whole organization before parent_ids and iteration_ids narrow the groups, so a shared
1134
+ // session never counts twice. An issue counts under its parent and iteration as last synced. One row per issue,
1135
+ // parent or iteration, highest cost first, numbered pages; totals add up to the window's recorded cost to the
1136
+ // nanodollar. Organization-level, for every member. Weakly consistent across pages. Nothing is served until the
1137
+ // tracker is connected and its first full sync has completed (sync_state); STATUS_CODE_UNAVAILABLE when Terma cannot
1138
+ // tell whether it is connected. Mirrors ai.api.v1.
1139
+ listIssueCosts: {
1140
+ path: '/gateway.web.v1.AIGatewayService/ListIssueCosts',
1141
+ requestStream: false,
1142
+ responseStream: false,
1143
+ requestType: proto_gateway_web_v1_ai_gateway_pb.ListIssueCostsRequest,
1144
+ responseType: proto_gateway_web_v1_ai_gateway_pb.ListIssueCostsResponse,
1145
+ requestSerialize: serialize_gateway_web_v1_ListIssueCostsRequest,
1146
+ requestDeserialize: deserialize_gateway_web_v1_ListIssueCostsRequest,
1147
+ responseSerialize: serialize_gateway_web_v1_ListIssueCostsResponse,
1148
+ responseDeserialize: deserialize_gateway_web_v1_ListIssueCostsResponse,
1149
+ },
1106
1150
  };
1107
1151
 
1108
1152
  exports.AIGatewayServiceClient = grpc.makeGenericClientConstructor(AIGatewayServiceService, 'AIGatewayService');