@miradorlabs/web-grpc 3.3.0 → 3.5.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/admin_gateway.ts +818 -107
- package/proto/gateway/web/v1/admin_gateway_grpc_pb.js +103 -103
- package/proto/gateway/web/v1/admin_gateway_pb.js +1624 -0
- package/proto/gateway/web/v1/ai_gateway.ts +446 -181
- package/proto/gateway/web/v1/ai_gateway_grpc_pb.js +2 -2
- package/proto/gateway/web/v1/ai_gateway_pb.js +467 -90
- package/proto/gateway/web/v1/reference_gateway.ts +681 -223
- package/proto/gateway/web/v1/reference_gateway_grpc_pb.js +105 -39
- package/proto/gateway/web/v1/reference_gateway_pb.js +1196 -320
- package/proto/gateway/web/v1/model_gateway.ts +0 -728
- package/proto/gateway/web/v1/model_gateway_grpc_pb.js +0 -85
- package/proto/gateway/web/v1/model_gateway_pb.js +0 -1261
|
@@ -6,26 +6,92 @@ var proto_gateway_web_v1_reference_gateway_pb = require('../../../../proto/gatew
|
|
|
6
6
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
7
7
|
var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
|
|
8
8
|
|
|
9
|
-
function
|
|
10
|
-
if (!(arg instanceof proto_gateway_web_v1_reference_gateway_pb.
|
|
11
|
-
throw new Error('Expected argument of type gateway.web.v1.
|
|
9
|
+
function serialize_gateway_web_v1_ListAIBillersRequest(arg) {
|
|
10
|
+
if (!(arg instanceof proto_gateway_web_v1_reference_gateway_pb.ListAIBillersRequest)) {
|
|
11
|
+
throw new Error('Expected argument of type gateway.web.v1.ListAIBillersRequest');
|
|
12
12
|
}
|
|
13
13
|
return Buffer.from(arg.serializeBinary());
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
function
|
|
17
|
-
return proto_gateway_web_v1_reference_gateway_pb.
|
|
16
|
+
function deserialize_gateway_web_v1_ListAIBillersRequest(buffer_arg) {
|
|
17
|
+
return proto_gateway_web_v1_reference_gateway_pb.ListAIBillersRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
function
|
|
21
|
-
if (!(arg instanceof proto_gateway_web_v1_reference_gateway_pb.
|
|
22
|
-
throw new Error('Expected argument of type gateway.web.v1.
|
|
20
|
+
function serialize_gateway_web_v1_ListAIBillersResponse(arg) {
|
|
21
|
+
if (!(arg instanceof proto_gateway_web_v1_reference_gateway_pb.ListAIBillersResponse)) {
|
|
22
|
+
throw new Error('Expected argument of type gateway.web.v1.ListAIBillersResponse');
|
|
23
23
|
}
|
|
24
24
|
return Buffer.from(arg.serializeBinary());
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
function
|
|
28
|
-
return proto_gateway_web_v1_reference_gateway_pb.
|
|
27
|
+
function deserialize_gateway_web_v1_ListAIBillersResponse(buffer_arg) {
|
|
28
|
+
return proto_gateway_web_v1_reference_gateway_pb.ListAIBillersResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function serialize_gateway_web_v1_ListAIEffortsRequest(arg) {
|
|
32
|
+
if (!(arg instanceof proto_gateway_web_v1_reference_gateway_pb.ListAIEffortsRequest)) {
|
|
33
|
+
throw new Error('Expected argument of type gateway.web.v1.ListAIEffortsRequest');
|
|
34
|
+
}
|
|
35
|
+
return Buffer.from(arg.serializeBinary());
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function deserialize_gateway_web_v1_ListAIEffortsRequest(buffer_arg) {
|
|
39
|
+
return proto_gateway_web_v1_reference_gateway_pb.ListAIEffortsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function serialize_gateway_web_v1_ListAIEffortsResponse(arg) {
|
|
43
|
+
if (!(arg instanceof proto_gateway_web_v1_reference_gateway_pb.ListAIEffortsResponse)) {
|
|
44
|
+
throw new Error('Expected argument of type gateway.web.v1.ListAIEffortsResponse');
|
|
45
|
+
}
|
|
46
|
+
return Buffer.from(arg.serializeBinary());
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function deserialize_gateway_web_v1_ListAIEffortsResponse(buffer_arg) {
|
|
50
|
+
return proto_gateway_web_v1_reference_gateway_pb.ListAIEffortsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function serialize_gateway_web_v1_ListAIModelsRequest(arg) {
|
|
54
|
+
if (!(arg instanceof proto_gateway_web_v1_reference_gateway_pb.ListAIModelsRequest)) {
|
|
55
|
+
throw new Error('Expected argument of type gateway.web.v1.ListAIModelsRequest');
|
|
56
|
+
}
|
|
57
|
+
return Buffer.from(arg.serializeBinary());
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function deserialize_gateway_web_v1_ListAIModelsRequest(buffer_arg) {
|
|
61
|
+
return proto_gateway_web_v1_reference_gateway_pb.ListAIModelsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function serialize_gateway_web_v1_ListAIModelsResponse(arg) {
|
|
65
|
+
if (!(arg instanceof proto_gateway_web_v1_reference_gateway_pb.ListAIModelsResponse)) {
|
|
66
|
+
throw new Error('Expected argument of type gateway.web.v1.ListAIModelsResponse');
|
|
67
|
+
}
|
|
68
|
+
return Buffer.from(arg.serializeBinary());
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function deserialize_gateway_web_v1_ListAIModelsResponse(buffer_arg) {
|
|
72
|
+
return proto_gateway_web_v1_reference_gateway_pb.ListAIModelsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function serialize_gateway_web_v1_ListAIProvidersRequest(arg) {
|
|
76
|
+
if (!(arg instanceof proto_gateway_web_v1_reference_gateway_pb.ListAIProvidersRequest)) {
|
|
77
|
+
throw new Error('Expected argument of type gateway.web.v1.ListAIProvidersRequest');
|
|
78
|
+
}
|
|
79
|
+
return Buffer.from(arg.serializeBinary());
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function deserialize_gateway_web_v1_ListAIProvidersRequest(buffer_arg) {
|
|
83
|
+
return proto_gateway_web_v1_reference_gateway_pb.ListAIProvidersRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function serialize_gateway_web_v1_ListAIProvidersResponse(arg) {
|
|
87
|
+
if (!(arg instanceof proto_gateway_web_v1_reference_gateway_pb.ListAIProvidersResponse)) {
|
|
88
|
+
throw new Error('Expected argument of type gateway.web.v1.ListAIProvidersResponse');
|
|
89
|
+
}
|
|
90
|
+
return Buffer.from(arg.serializeBinary());
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function deserialize_gateway_web_v1_ListAIProvidersResponse(buffer_arg) {
|
|
94
|
+
return proto_gateway_web_v1_reference_gateway_pb.ListAIProvidersResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
29
95
|
}
|
|
30
96
|
|
|
31
97
|
function serialize_gateway_web_v1_ListPrincipalsRequest(arg) {
|
|
@@ -74,9 +140,9 @@ function deserialize_gateway_web_v1_UpdatePrincipalResponse(buffer_arg) {
|
|
|
74
140
|
|
|
75
141
|
|
|
76
142
|
// ReferenceGatewayService is the frontend-facing surface for the AI reference data an org reads: its
|
|
77
|
-
// principals (writes org-admin only) and the provider / model / effort /
|
|
143
|
+
// principals (writes org-admin only) and the provider / model / effort / biller display names. The
|
|
78
144
|
// name tables are global: each List returns the names the org's own telemetry reported, mapped through
|
|
79
|
-
// them; Mirador staff edit them through AdminGatewayService. It proxies telemetry.api.v1.AIReferenceService.
|
|
145
|
+
// them (scope ALL: every recorded name); Mirador staff edit them through AdminGatewayService. It proxies telemetry.api.v1.AIReferenceService.
|
|
80
146
|
var ReferenceGatewayServiceService = exports.ReferenceGatewayServiceService = {
|
|
81
147
|
listPrincipals: {
|
|
82
148
|
path: '/gateway.web.v1.ReferenceGatewayService/ListPrincipals',
|
|
@@ -100,50 +166,50 @@ var ReferenceGatewayServiceService = exports.ReferenceGatewayServiceService = {
|
|
|
100
166
|
responseSerialize: serialize_gateway_web_v1_UpdatePrincipalResponse,
|
|
101
167
|
responseDeserialize: deserialize_gateway_web_v1_UpdatePrincipalResponse,
|
|
102
168
|
},
|
|
103
|
-
// Every stored name of the table has an entry, recorded or not.
|
|
169
|
+
// Any org member reads the name tables. Every stored name of the table has an entry, recorded or not.
|
|
104
170
|
listAIProviders: {
|
|
105
171
|
path: '/gateway.web.v1.ReferenceGatewayService/ListAIProviders',
|
|
106
172
|
requestStream: false,
|
|
107
173
|
responseStream: false,
|
|
108
|
-
requestType: proto_gateway_web_v1_reference_gateway_pb.
|
|
109
|
-
responseType: proto_gateway_web_v1_reference_gateway_pb.
|
|
110
|
-
requestSerialize:
|
|
111
|
-
requestDeserialize:
|
|
112
|
-
responseSerialize:
|
|
113
|
-
responseDeserialize:
|
|
174
|
+
requestType: proto_gateway_web_v1_reference_gateway_pb.ListAIProvidersRequest,
|
|
175
|
+
responseType: proto_gateway_web_v1_reference_gateway_pb.ListAIProvidersResponse,
|
|
176
|
+
requestSerialize: serialize_gateway_web_v1_ListAIProvidersRequest,
|
|
177
|
+
requestDeserialize: deserialize_gateway_web_v1_ListAIProvidersRequest,
|
|
178
|
+
responseSerialize: serialize_gateway_web_v1_ListAIProvidersResponse,
|
|
179
|
+
responseDeserialize: deserialize_gateway_web_v1_ListAIProvidersResponse,
|
|
114
180
|
},
|
|
115
181
|
listAIModels: {
|
|
116
182
|
path: '/gateway.web.v1.ReferenceGatewayService/ListAIModels',
|
|
117
183
|
requestStream: false,
|
|
118
184
|
responseStream: false,
|
|
119
|
-
requestType: proto_gateway_web_v1_reference_gateway_pb.
|
|
120
|
-
responseType: proto_gateway_web_v1_reference_gateway_pb.
|
|
121
|
-
requestSerialize:
|
|
122
|
-
requestDeserialize:
|
|
123
|
-
responseSerialize:
|
|
124
|
-
responseDeserialize:
|
|
185
|
+
requestType: proto_gateway_web_v1_reference_gateway_pb.ListAIModelsRequest,
|
|
186
|
+
responseType: proto_gateway_web_v1_reference_gateway_pb.ListAIModelsResponse,
|
|
187
|
+
requestSerialize: serialize_gateway_web_v1_ListAIModelsRequest,
|
|
188
|
+
requestDeserialize: deserialize_gateway_web_v1_ListAIModelsRequest,
|
|
189
|
+
responseSerialize: serialize_gateway_web_v1_ListAIModelsResponse,
|
|
190
|
+
responseDeserialize: deserialize_gateway_web_v1_ListAIModelsResponse,
|
|
125
191
|
},
|
|
126
192
|
listAIEfforts: {
|
|
127
193
|
path: '/gateway.web.v1.ReferenceGatewayService/ListAIEfforts',
|
|
128
194
|
requestStream: false,
|
|
129
195
|
responseStream: false,
|
|
130
|
-
requestType: proto_gateway_web_v1_reference_gateway_pb.
|
|
131
|
-
responseType: proto_gateway_web_v1_reference_gateway_pb.
|
|
132
|
-
requestSerialize:
|
|
133
|
-
requestDeserialize:
|
|
134
|
-
responseSerialize:
|
|
135
|
-
responseDeserialize:
|
|
196
|
+
requestType: proto_gateway_web_v1_reference_gateway_pb.ListAIEffortsRequest,
|
|
197
|
+
responseType: proto_gateway_web_v1_reference_gateway_pb.ListAIEffortsResponse,
|
|
198
|
+
requestSerialize: serialize_gateway_web_v1_ListAIEffortsRequest,
|
|
199
|
+
requestDeserialize: deserialize_gateway_web_v1_ListAIEffortsRequest,
|
|
200
|
+
responseSerialize: serialize_gateway_web_v1_ListAIEffortsResponse,
|
|
201
|
+
responseDeserialize: deserialize_gateway_web_v1_ListAIEffortsResponse,
|
|
136
202
|
},
|
|
137
|
-
|
|
138
|
-
path: '/gateway.web.v1.ReferenceGatewayService/
|
|
203
|
+
listAIBillers: {
|
|
204
|
+
path: '/gateway.web.v1.ReferenceGatewayService/ListAIBillers',
|
|
139
205
|
requestStream: false,
|
|
140
206
|
responseStream: false,
|
|
141
|
-
requestType: proto_gateway_web_v1_reference_gateway_pb.
|
|
142
|
-
responseType: proto_gateway_web_v1_reference_gateway_pb.
|
|
143
|
-
requestSerialize:
|
|
144
|
-
requestDeserialize:
|
|
145
|
-
responseSerialize:
|
|
146
|
-
responseDeserialize:
|
|
207
|
+
requestType: proto_gateway_web_v1_reference_gateway_pb.ListAIBillersRequest,
|
|
208
|
+
responseType: proto_gateway_web_v1_reference_gateway_pb.ListAIBillersResponse,
|
|
209
|
+
requestSerialize: serialize_gateway_web_v1_ListAIBillersRequest,
|
|
210
|
+
requestDeserialize: deserialize_gateway_web_v1_ListAIBillersRequest,
|
|
211
|
+
responseSerialize: serialize_gateway_web_v1_ListAIBillersResponse,
|
|
212
|
+
responseDeserialize: deserialize_gateway_web_v1_ListAIBillersResponse,
|
|
147
213
|
},
|
|
148
214
|
};
|
|
149
215
|
|