@miradorlabs/web-grpc 4.2.0 → 4.4.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.
- package/package.json +1 -1
- package/proto/gateway/web/v1/ai_gateway.ts +8248 -5132
- package/proto/gateway/web/v1/ai_gateway_grpc_pb.js +186 -3
- package/proto/gateway/web/v1/ai_gateway_pb.js +13695 -8190
|
@@ -153,6 +153,28 @@ function deserialize_gateway_web_v1_GetPromptLabelTrendResponse(buffer_arg) {
|
|
|
153
153
|
return proto_gateway_web_v1_ai_gateway_pb.GetPromptLabelTrendResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
+
function serialize_gateway_web_v1_GetReasoningTrendContributionRequest(arg) {
|
|
157
|
+
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.GetReasoningTrendContributionRequest)) {
|
|
158
|
+
throw new Error('Expected argument of type gateway.web.v1.GetReasoningTrendContributionRequest');
|
|
159
|
+
}
|
|
160
|
+
return Buffer.from(arg.serializeBinary());
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
function deserialize_gateway_web_v1_GetReasoningTrendContributionRequest(buffer_arg) {
|
|
164
|
+
return proto_gateway_web_v1_ai_gateway_pb.GetReasoningTrendContributionRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
function serialize_gateway_web_v1_GetReasoningTrendContributionResponse(arg) {
|
|
168
|
+
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.GetReasoningTrendContributionResponse)) {
|
|
169
|
+
throw new Error('Expected argument of type gateway.web.v1.GetReasoningTrendContributionResponse');
|
|
170
|
+
}
|
|
171
|
+
return Buffer.from(arg.serializeBinary());
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
function deserialize_gateway_web_v1_GetReasoningTrendContributionResponse(buffer_arg) {
|
|
175
|
+
return proto_gateway_web_v1_ai_gateway_pb.GetReasoningTrendContributionResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
176
|
+
}
|
|
177
|
+
|
|
156
178
|
function serialize_gateway_web_v1_GetSessionAnalysisRequest(arg) {
|
|
157
179
|
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.GetSessionAnalysisRequest)) {
|
|
158
180
|
throw new Error('Expected argument of type gateway.web.v1.GetSessionAnalysisRequest');
|
|
@@ -175,6 +197,28 @@ function deserialize_gateway_web_v1_GetSessionAnalysisResponse(buffer_arg) {
|
|
|
175
197
|
return proto_gateway_web_v1_ai_gateway_pb.GetSessionAnalysisResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
176
198
|
}
|
|
177
199
|
|
|
200
|
+
function serialize_gateway_web_v1_GetSessionIssuesRequest(arg) {
|
|
201
|
+
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.GetSessionIssuesRequest)) {
|
|
202
|
+
throw new Error('Expected argument of type gateway.web.v1.GetSessionIssuesRequest');
|
|
203
|
+
}
|
|
204
|
+
return Buffer.from(arg.serializeBinary());
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
function deserialize_gateway_web_v1_GetSessionIssuesRequest(buffer_arg) {
|
|
208
|
+
return proto_gateway_web_v1_ai_gateway_pb.GetSessionIssuesRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
function serialize_gateway_web_v1_GetSessionIssuesResponse(arg) {
|
|
212
|
+
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.GetSessionIssuesResponse)) {
|
|
213
|
+
throw new Error('Expected argument of type gateway.web.v1.GetSessionIssuesResponse');
|
|
214
|
+
}
|
|
215
|
+
return Buffer.from(arg.serializeBinary());
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
function deserialize_gateway_web_v1_GetSessionIssuesResponse(buffer_arg) {
|
|
219
|
+
return proto_gateway_web_v1_ai_gateway_pb.GetSessionIssuesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
220
|
+
}
|
|
221
|
+
|
|
178
222
|
function serialize_gateway_web_v1_GetSessionScoreTrendRequest(arg) {
|
|
179
223
|
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.GetSessionScoreTrendRequest)) {
|
|
180
224
|
throw new Error('Expected argument of type gateway.web.v1.GetSessionScoreTrendRequest');
|
|
@@ -329,6 +373,28 @@ function deserialize_gateway_web_v1_ListIssueCostsResponse(buffer_arg) {
|
|
|
329
373
|
return proto_gateway_web_v1_ai_gateway_pb.ListIssueCostsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
330
374
|
}
|
|
331
375
|
|
|
376
|
+
function serialize_gateway_web_v1_ListIssueSessionsRequest(arg) {
|
|
377
|
+
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListIssueSessionsRequest)) {
|
|
378
|
+
throw new Error('Expected argument of type gateway.web.v1.ListIssueSessionsRequest');
|
|
379
|
+
}
|
|
380
|
+
return Buffer.from(arg.serializeBinary());
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
function deserialize_gateway_web_v1_ListIssueSessionsRequest(buffer_arg) {
|
|
384
|
+
return proto_gateway_web_v1_ai_gateway_pb.ListIssueSessionsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
function serialize_gateway_web_v1_ListIssueSessionsResponse(arg) {
|
|
388
|
+
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListIssueSessionsResponse)) {
|
|
389
|
+
throw new Error('Expected argument of type gateway.web.v1.ListIssueSessionsResponse');
|
|
390
|
+
}
|
|
391
|
+
return Buffer.from(arg.serializeBinary());
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
function deserialize_gateway_web_v1_ListIssueSessionsResponse(buffer_arg) {
|
|
395
|
+
return proto_gateway_web_v1_ai_gateway_pb.ListIssueSessionsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
396
|
+
}
|
|
397
|
+
|
|
332
398
|
function serialize_gateway_web_v1_ListModelPriceHistoryRequest(arg) {
|
|
333
399
|
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListModelPriceHistoryRequest)) {
|
|
334
400
|
throw new Error('Expected argument of type gateway.web.v1.ListModelPriceHistoryRequest');
|
|
@@ -395,6 +461,28 @@ function deserialize_gateway_web_v1_ListModelReasoningResponse(buffer_arg) {
|
|
|
395
461
|
return proto_gateway_web_v1_ai_gateway_pb.ListModelReasoningResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
396
462
|
}
|
|
397
463
|
|
|
464
|
+
function serialize_gateway_web_v1_ListModelReasoningTrendRequest(arg) {
|
|
465
|
+
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListModelReasoningTrendRequest)) {
|
|
466
|
+
throw new Error('Expected argument of type gateway.web.v1.ListModelReasoningTrendRequest');
|
|
467
|
+
}
|
|
468
|
+
return Buffer.from(arg.serializeBinary());
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
function deserialize_gateway_web_v1_ListModelReasoningTrendRequest(buffer_arg) {
|
|
472
|
+
return proto_gateway_web_v1_ai_gateway_pb.ListModelReasoningTrendRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
function serialize_gateway_web_v1_ListModelReasoningTrendResponse(arg) {
|
|
476
|
+
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListModelReasoningTrendResponse)) {
|
|
477
|
+
throw new Error('Expected argument of type gateway.web.v1.ListModelReasoningTrendResponse');
|
|
478
|
+
}
|
|
479
|
+
return Buffer.from(arg.serializeBinary());
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
function deserialize_gateway_web_v1_ListModelReasoningTrendResponse(buffer_arg) {
|
|
483
|
+
return proto_gateway_web_v1_ai_gateway_pb.ListModelReasoningTrendResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
484
|
+
}
|
|
485
|
+
|
|
398
486
|
function serialize_gateway_web_v1_ListRelayHeartbeatsRequest(arg) {
|
|
399
487
|
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListRelayHeartbeatsRequest)) {
|
|
400
488
|
throw new Error('Expected argument of type gateway.web.v1.ListRelayHeartbeatsRequest');
|
|
@@ -626,6 +714,28 @@ function deserialize_gateway_web_v1_SessionsSnapshot(buffer_arg) {
|
|
|
626
714
|
return proto_gateway_web_v1_ai_gateway_pb.SessionsSnapshot.deserializeBinary(new Uint8Array(buffer_arg));
|
|
627
715
|
}
|
|
628
716
|
|
|
717
|
+
function serialize_gateway_web_v1_SetReasoningTrendContributionRequest(arg) {
|
|
718
|
+
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.SetReasoningTrendContributionRequest)) {
|
|
719
|
+
throw new Error('Expected argument of type gateway.web.v1.SetReasoningTrendContributionRequest');
|
|
720
|
+
}
|
|
721
|
+
return Buffer.from(arg.serializeBinary());
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
function deserialize_gateway_web_v1_SetReasoningTrendContributionRequest(buffer_arg) {
|
|
725
|
+
return proto_gateway_web_v1_ai_gateway_pb.SetReasoningTrendContributionRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
function serialize_gateway_web_v1_SetReasoningTrendContributionResponse(arg) {
|
|
729
|
+
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.SetReasoningTrendContributionResponse)) {
|
|
730
|
+
throw new Error('Expected argument of type gateway.web.v1.SetReasoningTrendContributionResponse');
|
|
731
|
+
}
|
|
732
|
+
return Buffer.from(arg.serializeBinary());
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
function deserialize_gateway_web_v1_SetReasoningTrendContributionResponse(buffer_arg) {
|
|
736
|
+
return proto_gateway_web_v1_ai_gateway_pb.SetReasoningTrendContributionResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
737
|
+
}
|
|
738
|
+
|
|
629
739
|
function serialize_gateway_web_v1_SpendForecast(arg) {
|
|
630
740
|
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.SpendForecast)) {
|
|
631
741
|
throw new Error('Expected argument of type gateway.web.v1.SpendForecast');
|
|
@@ -1045,6 +1155,45 @@ listModelReasoning: {
|
|
|
1045
1155
|
responseSerialize: serialize_gateway_web_v1_ListModelReasoningResponse,
|
|
1046
1156
|
responseDeserialize: deserialize_gateway_web_v1_ListModelReasoningResponse,
|
|
1047
1157
|
},
|
|
1158
|
+
// The Across Terma reasoning trend for the 12 closed ISO weeks: per global model and effort key and computed week,
|
|
1159
|
+
// the median change of the contributing organizations against their own baselines and the mean share of their
|
|
1160
|
+
// teams below range, rounded, with the contributing organizations as a band. Aggregates only; pairs limited to keys
|
|
1161
|
+
// the caller organization's data carries. Mirrors ai.api.v1.
|
|
1162
|
+
listModelReasoningTrend: {
|
|
1163
|
+
path: '/gateway.web.v1.AIGatewayService/ListModelReasoningTrend',
|
|
1164
|
+
requestStream: false,
|
|
1165
|
+
responseStream: false,
|
|
1166
|
+
requestType: proto_gateway_web_v1_ai_gateway_pb.ListModelReasoningTrendRequest,
|
|
1167
|
+
responseType: proto_gateway_web_v1_ai_gateway_pb.ListModelReasoningTrendResponse,
|
|
1168
|
+
requestSerialize: serialize_gateway_web_v1_ListModelReasoningTrendRequest,
|
|
1169
|
+
requestDeserialize: deserialize_gateway_web_v1_ListModelReasoningTrendRequest,
|
|
1170
|
+
responseSerialize: serialize_gateway_web_v1_ListModelReasoningTrendResponse,
|
|
1171
|
+
responseDeserialize: deserialize_gateway_web_v1_ListModelReasoningTrendResponse,
|
|
1172
|
+
},
|
|
1173
|
+
// Whether the organization contributes to the Across Terma reasoning trend (on by default). Mirrors ai.api.v1.
|
|
1174
|
+
getReasoningTrendContribution: {
|
|
1175
|
+
path: '/gateway.web.v1.AIGatewayService/GetReasoningTrendContribution',
|
|
1176
|
+
requestStream: false,
|
|
1177
|
+
responseStream: false,
|
|
1178
|
+
requestType: proto_gateway_web_v1_ai_gateway_pb.GetReasoningTrendContributionRequest,
|
|
1179
|
+
responseType: proto_gateway_web_v1_ai_gateway_pb.GetReasoningTrendContributionResponse,
|
|
1180
|
+
requestSerialize: serialize_gateway_web_v1_GetReasoningTrendContributionRequest,
|
|
1181
|
+
requestDeserialize: deserialize_gateway_web_v1_GetReasoningTrendContributionRequest,
|
|
1182
|
+
responseSerialize: serialize_gateway_web_v1_GetReasoningTrendContributionResponse,
|
|
1183
|
+
responseDeserialize: deserialize_gateway_web_v1_GetReasoningTrendContributionResponse,
|
|
1184
|
+
},
|
|
1185
|
+
// Turn the organization's contribution on or off. Org admins only. Mirrors ai.api.v1.
|
|
1186
|
+
setReasoningTrendContribution: {
|
|
1187
|
+
path: '/gateway.web.v1.AIGatewayService/SetReasoningTrendContribution',
|
|
1188
|
+
requestStream: false,
|
|
1189
|
+
responseStream: false,
|
|
1190
|
+
requestType: proto_gateway_web_v1_ai_gateway_pb.SetReasoningTrendContributionRequest,
|
|
1191
|
+
responseType: proto_gateway_web_v1_ai_gateway_pb.SetReasoningTrendContributionResponse,
|
|
1192
|
+
requestSerialize: serialize_gateway_web_v1_SetReasoningTrendContributionRequest,
|
|
1193
|
+
requestDeserialize: deserialize_gateway_web_v1_SetReasoningTrendContributionRequest,
|
|
1194
|
+
responseSerialize: serialize_gateway_web_v1_SetReasoningTrendContributionResponse,
|
|
1195
|
+
responseDeserialize: deserialize_gateway_web_v1_SetReasoningTrendContributionResponse,
|
|
1196
|
+
},
|
|
1048
1197
|
// One session's model calls and git activity on one epoch-aligned time grid: per bucket, each model's
|
|
1049
1198
|
// calls, tokens and cost, and each git action's count. Mirrors telemetry.api.v1.
|
|
1050
1199
|
getSessionUsageTrend: {
|
|
@@ -1125,9 +1274,11 @@ listRelayHeartbeats: {
|
|
|
1125
1274
|
responseSerialize: serialize_gateway_web_v1_ListRelayHeartbeatsResponse,
|
|
1126
1275
|
responseDeserialize: deserialize_gateway_web_v1_ListRelayHeartbeatsResponse,
|
|
1127
1276
|
},
|
|
1128
|
-
// The organization's recorded AI cost (provider cost, gross of any subscription) attributed to its tracker's issues
|
|
1129
|
-
//
|
|
1130
|
-
// links to, then each pull request's share evenly across the issues the
|
|
1277
|
+
// The organization's recorded AI cost (provider cost, gross of any subscription) attributed to its tracker's issues
|
|
1278
|
+
// by attribution_method (PER_PR when unspecified): PER_PR splits each session's
|
|
1279
|
+
// cost evenly across the pull requests it links to, then each pull request's share evenly across the issues the
|
|
1280
|
+
// tracker attaches it to; PER_TICKET splits it evenly across the distinct issues of all its pull requests plus one
|
|
1281
|
+
// unattributed slot per pull request with no issue. Integer
|
|
1131
1282
|
// nanodollars, over the whole organization before parent_ids and iteration_ids narrow the groups, so a shared
|
|
1132
1283
|
// session never counts twice. An issue counts under its parent and iteration as last synced. One row per issue,
|
|
1133
1284
|
// parent or iteration, highest cost first, numbered pages; totals add up to the window's recorded cost to the
|
|
@@ -1145,6 +1296,38 @@ listIssueCosts: {
|
|
|
1145
1296
|
responseSerialize: serialize_gateway_web_v1_ListIssueCostsResponse,
|
|
1146
1297
|
responseDeserialize: deserialize_gateway_web_v1_ListIssueCostsResponse,
|
|
1147
1298
|
},
|
|
1299
|
+
// One session's pull requests (the links ListIssueCosts reads), the tracker issues each is attached to, and the
|
|
1300
|
+
// session's recorded cost split over those issues by attribution_method with ListIssueCosts' split, so each issue's
|
|
1301
|
+
// cost is the share the session gives it on the Issues page and in ListIssueSessions for any window holding its
|
|
1302
|
+
// start. The session is every partition of it in the organization; the caller must be able to read project_id, which
|
|
1303
|
+
// must hold one of them, else totals are absent. Nothing is served until the tracker is connected and its first full
|
|
1304
|
+
// sync has completed (sync_state). Mirrors ai.api.v1.
|
|
1305
|
+
getSessionIssues: {
|
|
1306
|
+
path: '/gateway.web.v1.AIGatewayService/GetSessionIssues',
|
|
1307
|
+
requestStream: false,
|
|
1308
|
+
responseStream: false,
|
|
1309
|
+
requestType: proto_gateway_web_v1_ai_gateway_pb.GetSessionIssuesRequest,
|
|
1310
|
+
responseType: proto_gateway_web_v1_ai_gateway_pb.GetSessionIssuesResponse,
|
|
1311
|
+
requestSerialize: serialize_gateway_web_v1_GetSessionIssuesRequest,
|
|
1312
|
+
requestDeserialize: deserialize_gateway_web_v1_GetSessionIssuesRequest,
|
|
1313
|
+
responseSerialize: serialize_gateway_web_v1_GetSessionIssuesResponse,
|
|
1314
|
+
responseDeserialize: deserialize_gateway_web_v1_GetSessionIssuesResponse,
|
|
1315
|
+
},
|
|
1316
|
+
// One issue's attached pull requests and the sessions that gave it a share in the window: ListIssueCosts' split over
|
|
1317
|
+
// every session of the organization, keeping that issue's shares, so they add up to its ListIssueCosts cost for the
|
|
1318
|
+
// same window and method. Highest share first, numbered pages. Organization-level, for every member. Mirrors
|
|
1319
|
+
// ai.api.v1.
|
|
1320
|
+
listIssueSessions: {
|
|
1321
|
+
path: '/gateway.web.v1.AIGatewayService/ListIssueSessions',
|
|
1322
|
+
requestStream: false,
|
|
1323
|
+
responseStream: false,
|
|
1324
|
+
requestType: proto_gateway_web_v1_ai_gateway_pb.ListIssueSessionsRequest,
|
|
1325
|
+
responseType: proto_gateway_web_v1_ai_gateway_pb.ListIssueSessionsResponse,
|
|
1326
|
+
requestSerialize: serialize_gateway_web_v1_ListIssueSessionsRequest,
|
|
1327
|
+
requestDeserialize: deserialize_gateway_web_v1_ListIssueSessionsRequest,
|
|
1328
|
+
responseSerialize: serialize_gateway_web_v1_ListIssueSessionsResponse,
|
|
1329
|
+
responseDeserialize: deserialize_gateway_web_v1_ListIssueSessionsResponse,
|
|
1330
|
+
},
|
|
1148
1331
|
};
|
|
1149
1332
|
|
|
1150
1333
|
exports.AIGatewayServiceClient = grpc.makeGenericClientConstructor(AIGatewayServiceService, 'AIGatewayService');
|