@miradorlabs/web-grpc 4.16.0 → 4.18.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.
@@ -11,6 +11,28 @@ 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
+
14
36
  function serialize_gateway_web_v1_ConfirmAIBillersRequest(arg) {
15
37
  if (!(arg instanceof proto_gateway_web_v1_admin_gateway_pb.ConfirmAIBillersRequest)) {
16
38
  throw new Error('Expected argument of type gateway.web.v1.ConfirmAIBillersRequest');
@@ -99,6 +121,50 @@ function deserialize_gateway_web_v1_ConfirmAIProvidersResponse(buffer_arg) {
99
121
  return proto_gateway_web_v1_admin_gateway_pb.ConfirmAIProvidersResponse.deserializeBinary(new Uint8Array(buffer_arg));
100
122
  }
101
123
 
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
+
102
168
  function serialize_gateway_web_v1_GenerateInviteCodesRequest(arg) {
103
169
  if (!(arg instanceof proto_gateway_web_v1_admin_gateway_pb.GenerateInviteCodesRequest)) {
104
170
  throw new Error('Expected argument of type gateway.web.v1.GenerateInviteCodesRequest');
@@ -143,6 +209,50 @@ function deserialize_gateway_web_v1_GetAdminStatusResponse(buffer_arg) {
143
209
  return proto_gateway_web_v1_admin_gateway_pb.GetAdminStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
144
210
  }
145
211
 
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');
215
+ }
216
+ return Buffer.from(arg.serializeBinary());
217
+ }
218
+
219
+ function deserialize_gateway_web_v1_ListAITaskRevisionsRequest(buffer_arg) {
220
+ return proto_gateway_web_v1_admin_gateway_pb.ListAITaskRevisionsRequest.deserializeBinary(new Uint8Array(buffer_arg));
221
+ }
222
+
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');
226
+ }
227
+ return Buffer.from(arg.serializeBinary());
228
+ }
229
+
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));
254
+ }
255
+
146
256
  function serialize_gateway_web_v1_ListAdminRelayHeartbeatsRequest(arg) {
147
257
  if (!(arg instanceof proto_gateway_web_v1_admin_gateway_pb.ListAdminRelayHeartbeatsRequest)) {
148
258
  throw new Error('Expected argument of type gateway.web.v1.ListAdminRelayHeartbeatsRequest');
@@ -603,6 +713,73 @@ resolveUserDetails: {
603
713
  responseSerialize: serialize_gateway_web_v1_ResolveUserDetailsResponse,
604
714
  responseDeserialize: deserialize_gateway_web_v1_ResolveUserDetailsResponse,
605
715
  },
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):
719
+ // one row per job, two 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',
761
+ requestStream: false,
762
+ 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,
769
+ },
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',
774
+ requestStream: false,
775
+ 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,
782
+ },
606
783
  };
607
784
 
608
785
  exports.AdminGatewayServiceClient = grpc.makeGenericClientConstructor(AdminGatewayServiceService, 'AdminGatewayService');