@miradorlabs/web-grpc 3.32.0 → 3.34.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.
Files changed (33) hide show
  1. package/google/api/field_behavior.ts +1 -1
  2. package/google/protobuf/descriptor.ts +1 -1
  3. package/google/protobuf/duration.ts +1 -1
  4. package/google/protobuf/timestamp.ts +32 -10
  5. package/package.json +1 -1
  6. package/proto/gateway/common/v1/attribute_value.ts +1 -1
  7. package/proto/gateway/common/v1/status.ts +1 -1
  8. package/proto/gateway/common/v1/types.ts +1 -1
  9. package/proto/gateway/web/v1/account_gateway.ts +1 -1
  10. package/proto/gateway/web/v1/admin_gateway.ts +755 -1
  11. package/proto/gateway/web/v1/admin_gateway_grpc_pb.js +37 -0
  12. package/proto/gateway/web/v1/admin_gateway_pb.js +1061 -0
  13. package/proto/gateway/web/v1/ai_gateway.ts +6698 -4933
  14. package/proto/gateway/web/v1/ai_gateway_grpc_pb.js +73 -0
  15. package/proto/gateway/web/v1/ai_gateway_pb.js +11056 -7894
  16. package/proto/gateway/web/v1/attribute_value.ts +1 -1
  17. package/proto/gateway/web/v1/beta_gateway.ts +1 -1
  18. package/proto/gateway/web/v1/chain_gateway.ts +1 -1
  19. package/proto/gateway/web/v1/common.ts +1 -1
  20. package/proto/gateway/web/v1/derived_metric_gateway.ts +1 -1
  21. package/proto/gateway/web/v1/github_connector.ts +1 -1
  22. package/proto/gateway/web/v1/integration_gateway.ts +1 -1
  23. package/proto/gateway/web/v1/log_gateway.ts +1 -1
  24. package/proto/gateway/web/v1/market_gateway.ts +1 -1
  25. package/proto/gateway/web/v1/metric_gateway.ts +1 -1
  26. package/proto/gateway/web/v1/oauth_gateway.ts +1 -1
  27. package/proto/gateway/web/v1/plan_gateway.ts +1 -1
  28. package/proto/gateway/web/v1/policy_gateway.ts +1 -1
  29. package/proto/gateway/web/v1/reference_gateway.ts +1 -1
  30. package/proto/gateway/web/v1/rule_gateway.ts +1 -1
  31. package/proto/gateway/web/v1/slo_gateway.ts +1 -1
  32. package/proto/gateway/web/v1/trace_gateway.ts +1 -1
  33. package/proto/gateway/web/v1/trace_measure_gateway.ts +1 -1
@@ -285,6 +285,28 @@ function deserialize_gateway_web_v1_ListModelPricesResponse(buffer_arg) {
285
285
  return proto_gateway_web_v1_ai_gateway_pb.ListModelPricesResponse.deserializeBinary(new Uint8Array(buffer_arg));
286
286
  }
287
287
 
288
+ function serialize_gateway_web_v1_ListRelayHeartbeatsRequest(arg) {
289
+ if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListRelayHeartbeatsRequest)) {
290
+ throw new Error('Expected argument of type gateway.web.v1.ListRelayHeartbeatsRequest');
291
+ }
292
+ return Buffer.from(arg.serializeBinary());
293
+ }
294
+
295
+ function deserialize_gateway_web_v1_ListRelayHeartbeatsRequest(buffer_arg) {
296
+ return proto_gateway_web_v1_ai_gateway_pb.ListRelayHeartbeatsRequest.deserializeBinary(new Uint8Array(buffer_arg));
297
+ }
298
+
299
+ function serialize_gateway_web_v1_ListRelayHeartbeatsResponse(arg) {
300
+ if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListRelayHeartbeatsResponse)) {
301
+ throw new Error('Expected argument of type gateway.web.v1.ListRelayHeartbeatsResponse');
302
+ }
303
+ return Buffer.from(arg.serializeBinary());
304
+ }
305
+
306
+ function deserialize_gateway_web_v1_ListRelayHeartbeatsResponse(buffer_arg) {
307
+ return proto_gateway_web_v1_ai_gateway_pb.ListRelayHeartbeatsResponse.deserializeBinary(new Uint8Array(buffer_arg));
308
+ }
309
+
288
310
  function serialize_gateway_web_v1_ListSessionEventsRequest(arg) {
289
311
  if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListSessionEventsRequest)) {
290
312
  throw new Error('Expected argument of type gateway.web.v1.ListSessionEventsRequest');
@@ -494,6 +516,28 @@ function deserialize_gateway_web_v1_SessionsSnapshot(buffer_arg) {
494
516
  return proto_gateway_web_v1_ai_gateway_pb.SessionsSnapshot.deserializeBinary(new Uint8Array(buffer_arg));
495
517
  }
496
518
 
519
+ function serialize_gateway_web_v1_SpendForecast(arg) {
520
+ if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.SpendForecast)) {
521
+ throw new Error('Expected argument of type gateway.web.v1.SpendForecast');
522
+ }
523
+ return Buffer.from(arg.serializeBinary());
524
+ }
525
+
526
+ function deserialize_gateway_web_v1_SpendForecast(buffer_arg) {
527
+ return proto_gateway_web_v1_ai_gateway_pb.SpendForecast.deserializeBinary(new Uint8Array(buffer_arg));
528
+ }
529
+
530
+ function serialize_gateway_web_v1_SpendForecastRequest(arg) {
531
+ if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.SpendForecastRequest)) {
532
+ throw new Error('Expected argument of type gateway.web.v1.SpendForecastRequest');
533
+ }
534
+ return Buffer.from(arg.serializeBinary());
535
+ }
536
+
537
+ function deserialize_gateway_web_v1_SpendForecastRequest(buffer_arg) {
538
+ return proto_gateway_web_v1_ai_gateway_pb.SpendForecastRequest.deserializeBinary(new Uint8Array(buffer_arg));
539
+ }
540
+
497
541
  function serialize_gateway_web_v1_StreamEntitlementsRequest(arg) {
498
542
  if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.StreamEntitlementsRequest)) {
499
543
  throw new Error('Expected argument of type gateway.web.v1.StreamEntitlementsRequest');
@@ -729,6 +773,21 @@ streamDailyActivity: {
729
773
  responseSerialize: serialize_gateway_web_v1_DailyActivity,
730
774
  responseDeserialize: deserialize_gateway_web_v1_DailyActivity,
731
775
  },
776
+ // Live current-UTC-month spend forecast: month-to-date cost and the projected month-end total (a band from
777
+ // replaying recent weeks), for the project and per model, provider, source system, user and api key, off the
778
+ // same daily rollup as StreamDailyActivity; filter.funding_modes forecasts the cost on the listed funding modes. Mirrors
779
+ // telemetry.api.v1.
780
+ streamSpendForecast: {
781
+ path: '/gateway.web.v1.AIGatewayService/StreamSpendForecast',
782
+ requestStream: false,
783
+ responseStream: true,
784
+ requestType: proto_gateway_web_v1_ai_gateway_pb.SpendForecastRequest,
785
+ responseType: proto_gateway_web_v1_ai_gateway_pb.SpendForecast,
786
+ requestSerialize: serialize_gateway_web_v1_SpendForecastRequest,
787
+ requestDeserialize: deserialize_gateway_web_v1_SpendForecastRequest,
788
+ responseSerialize: serialize_gateway_web_v1_SpendForecast,
789
+ responseDeserialize: deserialize_gateway_web_v1_SpendForecast,
790
+ },
732
791
  // Live weekly activity rhythm: a sparse (weekday, hour) heatmap over a bounded sliding window in an
733
792
  // explicit IANA time zone. Every latest logical event counts; settled model calls add token/cost.
734
793
  streamActivityRhythm: {
@@ -888,6 +947,20 @@ streamEntitlements: {
888
947
  responseSerialize: serialize_gateway_web_v1_EntitlementsSnapshot,
889
948
  responseDeserialize: deserialize_gateway_web_v1_EntitlementsSnapshot,
890
949
  },
950
+ // The team's Terma relays: one row per (organization, project, user, host) with the first and last heartbeat
951
+ // received and the latest heartbeat's version, most recently seen first (keyset-paginated).
952
+ // Mirrors telemetry.api.v1.
953
+ listRelayHeartbeats: {
954
+ path: '/gateway.web.v1.AIGatewayService/ListRelayHeartbeats',
955
+ requestStream: false,
956
+ responseStream: false,
957
+ requestType: proto_gateway_web_v1_ai_gateway_pb.ListRelayHeartbeatsRequest,
958
+ responseType: proto_gateway_web_v1_ai_gateway_pb.ListRelayHeartbeatsResponse,
959
+ requestSerialize: serialize_gateway_web_v1_ListRelayHeartbeatsRequest,
960
+ requestDeserialize: deserialize_gateway_web_v1_ListRelayHeartbeatsRequest,
961
+ responseSerialize: serialize_gateway_web_v1_ListRelayHeartbeatsResponse,
962
+ responseDeserialize: deserialize_gateway_web_v1_ListRelayHeartbeatsResponse,
963
+ },
891
964
  };
892
965
 
893
966
  exports.AIGatewayServiceClient = grpc.makeGenericClientConstructor(AIGatewayServiceService, 'AIGatewayService');