@miradorlabs/web-grpc 4.23.0 → 4.25.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 (36) 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 +1 -1
  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 +158 -1210
  11. package/proto/gateway/web/v1/admin_gateway_grpc_pb.js +52 -158
  12. package/proto/gateway/web/v1/admin_gateway_pb.js +224 -2187
  13. package/proto/gateway/web/v1/ai_gateway.ts +495 -752
  14. package/proto/gateway/web/v1/ai_gateway_grpc_pb.js +4 -4
  15. package/proto/gateway/web/v1/ai_gateway_pb.js +830 -778
  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/claude_enterprise_gateway.ts +1 -1
  20. package/proto/gateway/web/v1/common.ts +1 -1
  21. package/proto/gateway/web/v1/derived_metric_gateway.ts +1 -1
  22. package/proto/gateway/web/v1/desktop_auth_gateway.ts +1 -1
  23. package/proto/gateway/web/v1/github_connector.ts +1 -1
  24. package/proto/gateway/web/v1/integration_gateway.ts +1 -1
  25. package/proto/gateway/web/v1/log_gateway.ts +1 -1
  26. package/proto/gateway/web/v1/market_gateway.ts +1 -1
  27. package/proto/gateway/web/v1/metric_gateway.ts +1 -1
  28. package/proto/gateway/web/v1/notification_gateway.ts +1 -1
  29. package/proto/gateway/web/v1/oauth_gateway.ts +1 -1
  30. package/proto/gateway/web/v1/plan_gateway.ts +1 -1
  31. package/proto/gateway/web/v1/policy_gateway.ts +1 -1
  32. package/proto/gateway/web/v1/reference_gateway.ts +1 -1
  33. package/proto/gateway/web/v1/rule_gateway.ts +1 -1
  34. package/proto/gateway/web/v1/slo_gateway.ts +1 -1
  35. package/proto/gateway/web/v1/trace_gateway.ts +1 -1
  36. package/proto/gateway/web/v1/trace_measure_gateway.ts +1 -1
@@ -11,28 +11,6 @@ var proto_gateway_web_v1_beta_gateway_pb = require('../../../../proto/gateway/we
11
11
  var proto_gateway_web_v1_reference_gateway_pb = require('../../../../proto/gateway/web/v1/reference_gateway_pb.js');
12
12
  var proto_gateway_web_v1_trace_gateway_pb = require('../../../../proto/gateway/web/v1/trace_gateway_pb.js');
13
13
 
14
- function serialize_gateway_web_v1_ActivateAITaskRevisionRequest(arg) {
15
- if (!(arg instanceof proto_gateway_web_v1_admin_gateway_pb.ActivateAITaskRevisionRequest)) {
16
- throw new Error('Expected argument of type gateway.web.v1.ActivateAITaskRevisionRequest');
17
- }
18
- return Buffer.from(arg.serializeBinary());
19
- }
20
-
21
- function deserialize_gateway_web_v1_ActivateAITaskRevisionRequest(buffer_arg) {
22
- return proto_gateway_web_v1_admin_gateway_pb.ActivateAITaskRevisionRequest.deserializeBinary(new Uint8Array(buffer_arg));
23
- }
24
-
25
- function serialize_gateway_web_v1_ActivateAITaskRevisionResponse(arg) {
26
- if (!(arg instanceof proto_gateway_web_v1_admin_gateway_pb.ActivateAITaskRevisionResponse)) {
27
- throw new Error('Expected argument of type gateway.web.v1.ActivateAITaskRevisionResponse');
28
- }
29
- return Buffer.from(arg.serializeBinary());
30
- }
31
-
32
- function deserialize_gateway_web_v1_ActivateAITaskRevisionResponse(buffer_arg) {
33
- return proto_gateway_web_v1_admin_gateway_pb.ActivateAITaskRevisionResponse.deserializeBinary(new Uint8Array(buffer_arg));
34
- }
35
-
36
14
  function serialize_gateway_web_v1_ConfirmAIBillersRequest(arg) {
37
15
  if (!(arg instanceof proto_gateway_web_v1_admin_gateway_pb.ConfirmAIBillersRequest)) {
38
16
  throw new Error('Expected argument of type gateway.web.v1.ConfirmAIBillersRequest');
@@ -121,50 +99,6 @@ function deserialize_gateway_web_v1_ConfirmAIProvidersResponse(buffer_arg) {
121
99
  return proto_gateway_web_v1_admin_gateway_pb.ConfirmAIProvidersResponse.deserializeBinary(new Uint8Array(buffer_arg));
122
100
  }
123
101
 
124
- function serialize_gateway_web_v1_CreateAITaskRevisionRequest(arg) {
125
- if (!(arg instanceof proto_gateway_web_v1_admin_gateway_pb.CreateAITaskRevisionRequest)) {
126
- throw new Error('Expected argument of type gateway.web.v1.CreateAITaskRevisionRequest');
127
- }
128
- return Buffer.from(arg.serializeBinary());
129
- }
130
-
131
- function deserialize_gateway_web_v1_CreateAITaskRevisionRequest(buffer_arg) {
132
- return proto_gateway_web_v1_admin_gateway_pb.CreateAITaskRevisionRequest.deserializeBinary(new Uint8Array(buffer_arg));
133
- }
134
-
135
- function serialize_gateway_web_v1_CreateAITaskRevisionResponse(arg) {
136
- if (!(arg instanceof proto_gateway_web_v1_admin_gateway_pb.CreateAITaskRevisionResponse)) {
137
- throw new Error('Expected argument of type gateway.web.v1.CreateAITaskRevisionResponse');
138
- }
139
- return Buffer.from(arg.serializeBinary());
140
- }
141
-
142
- function deserialize_gateway_web_v1_CreateAITaskRevisionResponse(buffer_arg) {
143
- return proto_gateway_web_v1_admin_gateway_pb.CreateAITaskRevisionResponse.deserializeBinary(new Uint8Array(buffer_arg));
144
- }
145
-
146
- function serialize_gateway_web_v1_DeactivateAITaskRevisionRequest(arg) {
147
- if (!(arg instanceof proto_gateway_web_v1_admin_gateway_pb.DeactivateAITaskRevisionRequest)) {
148
- throw new Error('Expected argument of type gateway.web.v1.DeactivateAITaskRevisionRequest');
149
- }
150
- return Buffer.from(arg.serializeBinary());
151
- }
152
-
153
- function deserialize_gateway_web_v1_DeactivateAITaskRevisionRequest(buffer_arg) {
154
- return proto_gateway_web_v1_admin_gateway_pb.DeactivateAITaskRevisionRequest.deserializeBinary(new Uint8Array(buffer_arg));
155
- }
156
-
157
- function serialize_gateway_web_v1_DeactivateAITaskRevisionResponse(arg) {
158
- if (!(arg instanceof proto_gateway_web_v1_admin_gateway_pb.DeactivateAITaskRevisionResponse)) {
159
- throw new Error('Expected argument of type gateway.web.v1.DeactivateAITaskRevisionResponse');
160
- }
161
- return Buffer.from(arg.serializeBinary());
162
- }
163
-
164
- function deserialize_gateway_web_v1_DeactivateAITaskRevisionResponse(buffer_arg) {
165
- return proto_gateway_web_v1_admin_gateway_pb.DeactivateAITaskRevisionResponse.deserializeBinary(new Uint8Array(buffer_arg));
166
- }
167
-
168
102
  function serialize_gateway_web_v1_GenerateInviteCodesRequest(arg) {
169
103
  if (!(arg instanceof proto_gateway_web_v1_admin_gateway_pb.GenerateInviteCodesRequest)) {
170
104
  throw new Error('Expected argument of type gateway.web.v1.GenerateInviteCodesRequest');
@@ -209,48 +143,26 @@ function deserialize_gateway_web_v1_GetAdminStatusResponse(buffer_arg) {
209
143
  return proto_gateway_web_v1_admin_gateway_pb.GetAdminStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
210
144
  }
211
145
 
212
- function serialize_gateway_web_v1_ListAITaskRevisionsRequest(arg) {
213
- if (!(arg instanceof proto_gateway_web_v1_admin_gateway_pb.ListAITaskRevisionsRequest)) {
214
- throw new Error('Expected argument of type gateway.web.v1.ListAITaskRevisionsRequest');
146
+ function serialize_gateway_web_v1_ListAITaskModelsRequest(arg) {
147
+ if (!(arg instanceof proto_gateway_web_v1_admin_gateway_pb.ListAITaskModelsRequest)) {
148
+ throw new Error('Expected argument of type gateway.web.v1.ListAITaskModelsRequest');
215
149
  }
216
150
  return Buffer.from(arg.serializeBinary());
217
151
  }
218
152
 
219
- function deserialize_gateway_web_v1_ListAITaskRevisionsRequest(buffer_arg) {
220
- return proto_gateway_web_v1_admin_gateway_pb.ListAITaskRevisionsRequest.deserializeBinary(new Uint8Array(buffer_arg));
153
+ function deserialize_gateway_web_v1_ListAITaskModelsRequest(buffer_arg) {
154
+ return proto_gateway_web_v1_admin_gateway_pb.ListAITaskModelsRequest.deserializeBinary(new Uint8Array(buffer_arg));
221
155
  }
222
156
 
223
- function serialize_gateway_web_v1_ListAITaskRevisionsResponse(arg) {
224
- if (!(arg instanceof proto_gateway_web_v1_admin_gateway_pb.ListAITaskRevisionsResponse)) {
225
- throw new Error('Expected argument of type gateway.web.v1.ListAITaskRevisionsResponse');
157
+ function serialize_gateway_web_v1_ListAITaskModelsResponse(arg) {
158
+ if (!(arg instanceof proto_gateway_web_v1_admin_gateway_pb.ListAITaskModelsResponse)) {
159
+ throw new Error('Expected argument of type gateway.web.v1.ListAITaskModelsResponse');
226
160
  }
227
161
  return Buffer.from(arg.serializeBinary());
228
162
  }
229
163
 
230
- function deserialize_gateway_web_v1_ListAITaskRevisionsResponse(buffer_arg) {
231
- return proto_gateway_web_v1_admin_gateway_pb.ListAITaskRevisionsResponse.deserializeBinary(new Uint8Array(buffer_arg));
232
- }
233
-
234
- function serialize_gateway_web_v1_ListAITasksRequest(arg) {
235
- if (!(arg instanceof proto_gateway_web_v1_admin_gateway_pb.ListAITasksRequest)) {
236
- throw new Error('Expected argument of type gateway.web.v1.ListAITasksRequest');
237
- }
238
- return Buffer.from(arg.serializeBinary());
239
- }
240
-
241
- function deserialize_gateway_web_v1_ListAITasksRequest(buffer_arg) {
242
- return proto_gateway_web_v1_admin_gateway_pb.ListAITasksRequest.deserializeBinary(new Uint8Array(buffer_arg));
243
- }
244
-
245
- function serialize_gateway_web_v1_ListAITasksResponse(arg) {
246
- if (!(arg instanceof proto_gateway_web_v1_admin_gateway_pb.ListAITasksResponse)) {
247
- throw new Error('Expected argument of type gateway.web.v1.ListAITasksResponse');
248
- }
249
- return Buffer.from(arg.serializeBinary());
250
- }
251
-
252
- function deserialize_gateway_web_v1_ListAITasksResponse(buffer_arg) {
253
- return proto_gateway_web_v1_admin_gateway_pb.ListAITasksResponse.deserializeBinary(new Uint8Array(buffer_arg));
164
+ function deserialize_gateway_web_v1_ListAITaskModelsResponse(buffer_arg) {
165
+ return proto_gateway_web_v1_admin_gateway_pb.ListAITaskModelsResponse.deserializeBinary(new Uint8Array(buffer_arg));
254
166
  }
255
167
 
256
168
  function serialize_gateway_web_v1_ListAdminRelayHeartbeatsRequest(arg) {
@@ -495,6 +407,28 @@ function deserialize_gateway_web_v1_UpdateAIProviderResponse(buffer_arg) {
495
407
  return proto_gateway_web_v1_admin_gateway_pb.UpdateAIProviderResponse.deserializeBinary(new Uint8Array(buffer_arg));
496
408
  }
497
409
 
410
+ function serialize_gateway_web_v1_UpdateAITaskModelRequest(arg) {
411
+ if (!(arg instanceof proto_gateway_web_v1_admin_gateway_pb.UpdateAITaskModelRequest)) {
412
+ throw new Error('Expected argument of type gateway.web.v1.UpdateAITaskModelRequest');
413
+ }
414
+ return Buffer.from(arg.serializeBinary());
415
+ }
416
+
417
+ function deserialize_gateway_web_v1_UpdateAITaskModelRequest(buffer_arg) {
418
+ return proto_gateway_web_v1_admin_gateway_pb.UpdateAITaskModelRequest.deserializeBinary(new Uint8Array(buffer_arg));
419
+ }
420
+
421
+ function serialize_gateway_web_v1_UpdateAITaskModelResponse(arg) {
422
+ if (!(arg instanceof proto_gateway_web_v1_admin_gateway_pb.UpdateAITaskModelResponse)) {
423
+ throw new Error('Expected argument of type gateway.web.v1.UpdateAITaskModelResponse');
424
+ }
425
+ return Buffer.from(arg.serializeBinary());
426
+ }
427
+
428
+ function deserialize_gateway_web_v1_UpdateAITaskModelResponse(buffer_arg) {
429
+ return proto_gateway_web_v1_admin_gateway_pb.UpdateAITaskModelResponse.deserializeBinary(new Uint8Array(buffer_arg));
430
+ }
431
+
498
432
 
499
433
  // AdminGatewayService is the browser-facing surface of the admin tools, across every domain, which only
500
434
  // Mirador staff (a verified mirador.org primary email) may use. The gateway's admin gate admits every RPC
@@ -713,72 +647,32 @@ resolveUserDetails: {
713
647
  responseSerialize: serialize_gateway_web_v1_ResolveUserDetailsResponse,
714
648
  responseDeserialize: deserialize_gateway_web_v1_ResolveUserDetailsResponse,
715
649
  },
716
- // The AI jobs' models and prompts, each saved as immutable revisions with at most one active revision per job; they proxy
717
- // ai.api.v1.AIAdminService's RPCs of the same names. ListAITasks lists every configurable job with its name,
718
- // description, active revision, built-in prompt and the parts that stay code. Accepted risk: unpaged (proto_api_test unpagedLists):
650
+ // The AI jobs' models; they proxy ai.api.v1.AIAdminService's RPCs of the same names. ListAITaskModels lists every
651
+ // AI job, in AITask order, with the model staff chose for it. Accepted risk: unpaged (proto_api_test unpagedLists):
719
652
  // one row per job, six today; the upgrade path is token paging if it ever passes 50.
720
- listAITasks: {
721
- path: '/gateway.web.v1.AdminGatewayService/ListAITasks',
722
- requestStream: false,
723
- responseStream: false,
724
- requestType: proto_gateway_web_v1_admin_gateway_pb.ListAITasksRequest,
725
- responseType: proto_gateway_web_v1_admin_gateway_pb.ListAITasksResponse,
726
- requestSerialize: serialize_gateway_web_v1_ListAITasksRequest,
727
- requestDeserialize: deserialize_gateway_web_v1_ListAITasksRequest,
728
- responseSerialize: serialize_gateway_web_v1_ListAITasksResponse,
729
- responseDeserialize: deserialize_gateway_web_v1_ListAITasksResponse,
730
- },
731
- // ListAITaskRevisions lists one job's revisions, newest number first, with their full prompt.
732
- listAITaskRevisions: {
733
- path: '/gateway.web.v1.AdminGatewayService/ListAITaskRevisions',
734
- requestStream: false,
735
- responseStream: false,
736
- requestType: proto_gateway_web_v1_admin_gateway_pb.ListAITaskRevisionsRequest,
737
- responseType: proto_gateway_web_v1_admin_gateway_pb.ListAITaskRevisionsResponse,
738
- requestSerialize: serialize_gateway_web_v1_ListAITaskRevisionsRequest,
739
- requestDeserialize: deserialize_gateway_web_v1_ListAITaskRevisionsRequest,
740
- responseSerialize: serialize_gateway_web_v1_ListAITaskRevisionsResponse,
741
- responseDeserialize: deserialize_gateway_web_v1_ListAITaskRevisionsResponse,
742
- },
743
- // CreateAITaskRevision saves a new revision, numbered after the job's newest, as the caller; it does not activate
744
- // it. A concurrent save that takes the same number is a conflict: retry.
745
- createAITaskRevision: {
746
- path: '/gateway.web.v1.AdminGatewayService/CreateAITaskRevision',
747
- requestStream: false,
748
- responseStream: false,
749
- requestType: proto_gateway_web_v1_admin_gateway_pb.CreateAITaskRevisionRequest,
750
- responseType: proto_gateway_web_v1_admin_gateway_pb.CreateAITaskRevisionResponse,
751
- requestSerialize: serialize_gateway_web_v1_CreateAITaskRevisionRequest,
752
- requestDeserialize: deserialize_gateway_web_v1_CreateAITaskRevisionRequest,
753
- responseSerialize: serialize_gateway_web_v1_CreateAITaskRevisionResponse,
754
- responseDeserialize: deserialize_gateway_web_v1_CreateAITaskRevisionResponse,
755
- },
756
- // ActivateAITaskRevision makes a revision of the job active, as the caller; activating an older one is a rollback.
757
- // A job that reads revisions picks it up on its next tick; until the insight jobs do, they keep their chart model
758
- // and embedded prompt. Last write wins.
759
- activateAITaskRevision: {
760
- path: '/gateway.web.v1.AdminGatewayService/ActivateAITaskRevision',
653
+ listAITaskModels: {
654
+ path: '/gateway.web.v1.AdminGatewayService/ListAITaskModels',
761
655
  requestStream: false,
762
656
  responseStream: false,
763
- requestType: proto_gateway_web_v1_admin_gateway_pb.ActivateAITaskRevisionRequest,
764
- responseType: proto_gateway_web_v1_admin_gateway_pb.ActivateAITaskRevisionResponse,
765
- requestSerialize: serialize_gateway_web_v1_ActivateAITaskRevisionRequest,
766
- requestDeserialize: deserialize_gateway_web_v1_ActivateAITaskRevisionRequest,
767
- responseSerialize: serialize_gateway_web_v1_ActivateAITaskRevisionResponse,
768
- responseDeserialize: deserialize_gateway_web_v1_ActivateAITaskRevisionResponse,
657
+ requestType: proto_gateway_web_v1_admin_gateway_pb.ListAITaskModelsRequest,
658
+ responseType: proto_gateway_web_v1_admin_gateway_pb.ListAITaskModelsResponse,
659
+ requestSerialize: serialize_gateway_web_v1_ListAITaskModelsRequest,
660
+ requestDeserialize: deserialize_gateway_web_v1_ListAITaskModelsRequest,
661
+ responseSerialize: serialize_gateway_web_v1_ListAITaskModelsResponse,
662
+ responseDeserialize: deserialize_gateway_web_v1_ListAITaskModelsResponse,
769
663
  },
770
- // DeactivateAITaskRevision clears the job's active revision, as the caller, so the job runs its built-in prompt
771
- // again; its revisions stay in the history, and with none active it changes nothing. Last write wins.
772
- deactivateAITaskRevision: {
773
- path: '/gateway.web.v1.AdminGatewayService/DeactivateAITaskRevision',
664
+ // UpdateAITaskModel sets the model a job runs, as the caller, replacing any earlier choice. The job reads it on its
665
+ // next run. Last write wins.
666
+ updateAITaskModel: {
667
+ path: '/gateway.web.v1.AdminGatewayService/UpdateAITaskModel',
774
668
  requestStream: false,
775
669
  responseStream: false,
776
- requestType: proto_gateway_web_v1_admin_gateway_pb.DeactivateAITaskRevisionRequest,
777
- responseType: proto_gateway_web_v1_admin_gateway_pb.DeactivateAITaskRevisionResponse,
778
- requestSerialize: serialize_gateway_web_v1_DeactivateAITaskRevisionRequest,
779
- requestDeserialize: deserialize_gateway_web_v1_DeactivateAITaskRevisionRequest,
780
- responseSerialize: serialize_gateway_web_v1_DeactivateAITaskRevisionResponse,
781
- responseDeserialize: deserialize_gateway_web_v1_DeactivateAITaskRevisionResponse,
670
+ requestType: proto_gateway_web_v1_admin_gateway_pb.UpdateAITaskModelRequest,
671
+ responseType: proto_gateway_web_v1_admin_gateway_pb.UpdateAITaskModelResponse,
672
+ requestSerialize: serialize_gateway_web_v1_UpdateAITaskModelRequest,
673
+ requestDeserialize: deserialize_gateway_web_v1_UpdateAITaskModelRequest,
674
+ responseSerialize: serialize_gateway_web_v1_UpdateAITaskModelResponse,
675
+ responseDeserialize: deserialize_gateway_web_v1_UpdateAITaskModelResponse,
782
676
  },
783
677
  };
784
678