@miradorlabs/web-grpc 2.54.0 → 2.57.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 +1044 -184
- package/proto/gateway/web/v1/ai_gateway_grpc_pb.js +42 -12
- package/proto/gateway/web/v1/ai_gateway_pb.js +1471 -5
- package/proto/gateway/web/v1/derived_metric_gateway.ts +1 -4
- package/proto/gateway/web/v1/trace_gateway.ts +1 -1
|
@@ -30,6 +30,28 @@ function deserialize_gateway_web_v1_AISessionSummary(buffer_arg) {
|
|
|
30
30
|
return proto_gateway_web_v1_ai_gateway_pb.AISessionSummary.deserializeBinary(new Uint8Array(buffer_arg));
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
function serialize_gateway_web_v1_DailyActivity(arg) {
|
|
34
|
+
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.DailyActivity)) {
|
|
35
|
+
throw new Error('Expected argument of type gateway.web.v1.DailyActivity');
|
|
36
|
+
}
|
|
37
|
+
return Buffer.from(arg.serializeBinary());
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function deserialize_gateway_web_v1_DailyActivity(buffer_arg) {
|
|
41
|
+
return proto_gateway_web_v1_ai_gateway_pb.DailyActivity.deserializeBinary(new Uint8Array(buffer_arg));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function serialize_gateway_web_v1_DailyActivityRequest(arg) {
|
|
45
|
+
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.DailyActivityRequest)) {
|
|
46
|
+
throw new Error('Expected argument of type gateway.web.v1.DailyActivityRequest');
|
|
47
|
+
}
|
|
48
|
+
return Buffer.from(arg.serializeBinary());
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function deserialize_gateway_web_v1_DailyActivityRequest(buffer_arg) {
|
|
52
|
+
return proto_gateway_web_v1_ai_gateway_pb.DailyActivityRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
53
|
+
}
|
|
54
|
+
|
|
33
55
|
function serialize_gateway_web_v1_FilesSummary(arg) {
|
|
34
56
|
if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.FilesSummary)) {
|
|
35
57
|
throw new Error('Expected argument of type gateway.web.v1.FilesSummary');
|
|
@@ -405,12 +427,8 @@ function deserialize_gateway_web_v1_UpdatePrincipalResponse(buffer_arg) {
|
|
|
405
427
|
}
|
|
406
428
|
|
|
407
429
|
|
|
408
|
-
// AIGatewayService is the frontend-facing proxy over telemetry.api.v1.AIService
|
|
409
|
-
//
|
|
410
|
-
// id->name catalog (read + alias write), and the global model-price catalog. A thin proxy — it resolves the caller's
|
|
411
|
-
// identity, stamps the authorized organization/project, and forwards. Messages
|
|
412
|
-
// duplicate the telemetry-api shape (proto domain isolation); unary responses
|
|
413
|
-
// carry ResponseStatus, streams do not.
|
|
430
|
+
// AIGatewayService is the frontend-facing proxy over telemetry.api.v1.AIService.
|
|
431
|
+
// It stamps the authorized organization/project and forwards telemetry-api-shaped messages.
|
|
414
432
|
var AIGatewayServiceService = exports.AIGatewayServiceService = {
|
|
415
433
|
// One numbered page of the conversation catalog (sessions folded to
|
|
416
434
|
// one rollup by source_system + session_id), ranked by sort. Weakly consistent
|
|
@@ -558,9 +576,8 @@ streamGitActivitySummary: {
|
|
|
558
576
|
responseSerialize: serialize_gateway_web_v1_GitActivitySummary,
|
|
559
577
|
responseDeserialize: deserialize_gateway_web_v1_GitActivitySummary,
|
|
560
578
|
},
|
|
561
|
-
// Live token burn calendar: a windowed, dimension-sliced token/cost trend series
|
|
562
|
-
//
|
|
563
|
-
// client-reduced matrix of PromQL queries.
|
|
579
|
+
// Live token burn calendar: a windowed, dimension-sliced token/cost trend series
|
|
580
|
+
// plus whole-window totals.
|
|
564
581
|
streamTokenActivitySummary: {
|
|
565
582
|
path: '/gateway.web.v1.AIGatewayService/StreamTokenActivitySummary',
|
|
566
583
|
requestStream: false,
|
|
@@ -572,9 +589,22 @@ streamTokenActivitySummary: {
|
|
|
572
589
|
responseSerialize: serialize_gateway_web_v1_TokenActivitySummary,
|
|
573
590
|
responseDeserialize: deserialize_gateway_web_v1_TokenActivitySummary,
|
|
574
591
|
},
|
|
575
|
-
// Live
|
|
576
|
-
//
|
|
577
|
-
//
|
|
592
|
+
// Live token-burn calendar over an inclusive UTC [start_date, end_date] range: one complete row per
|
|
593
|
+
// covered day off the precomputed daily rollup. Covered empty days are zero; uncomputed history is
|
|
594
|
+
// omitted; today is provisional.
|
|
595
|
+
streamDailyActivity: {
|
|
596
|
+
path: '/gateway.web.v1.AIGatewayService/StreamDailyActivity',
|
|
597
|
+
requestStream: false,
|
|
598
|
+
responseStream: true,
|
|
599
|
+
requestType: proto_gateway_web_v1_ai_gateway_pb.DailyActivityRequest,
|
|
600
|
+
responseType: proto_gateway_web_v1_ai_gateway_pb.DailyActivity,
|
|
601
|
+
requestSerialize: serialize_gateway_web_v1_DailyActivityRequest,
|
|
602
|
+
requestDeserialize: deserialize_gateway_web_v1_DailyActivityRequest,
|
|
603
|
+
responseSerialize: serialize_gateway_web_v1_DailyActivity,
|
|
604
|
+
responseDeserialize: deserialize_gateway_web_v1_DailyActivity,
|
|
605
|
+
},
|
|
606
|
+
// Live stream of one project's dashboard bundle: headline totals, model/provider/source mix,
|
|
607
|
+
// and top sessions by cost.
|
|
578
608
|
streamProjectOverview: {
|
|
579
609
|
path: '/gateway.web.v1.AIGatewayService/StreamProjectOverview',
|
|
580
610
|
requestStream: false,
|