@miradorlabs/web-grpc 4.4.0 → 4.5.1

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.
@@ -29,6 +29,28 @@ function deserialize_gateway_web_v1_AddDemoProjectResponse(buffer_arg) {
29
29
  return proto_gateway_web_v1_account_gateway_pb.AddDemoProjectResponse.deserializeBinary(new Uint8Array(buffer_arg));
30
30
  }
31
31
 
32
+ function serialize_gateway_web_v1_ApproveMcpAuthorizationRequest(arg) {
33
+ if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.ApproveMcpAuthorizationRequest)) {
34
+ throw new Error('Expected argument of type gateway.web.v1.ApproveMcpAuthorizationRequest');
35
+ }
36
+ return Buffer.from(arg.serializeBinary());
37
+ }
38
+
39
+ function deserialize_gateway_web_v1_ApproveMcpAuthorizationRequest(buffer_arg) {
40
+ return proto_gateway_web_v1_account_gateway_pb.ApproveMcpAuthorizationRequest.deserializeBinary(new Uint8Array(buffer_arg));
41
+ }
42
+
43
+ function serialize_gateway_web_v1_ApproveMcpAuthorizationResponse(arg) {
44
+ if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.ApproveMcpAuthorizationResponse)) {
45
+ throw new Error('Expected argument of type gateway.web.v1.ApproveMcpAuthorizationResponse');
46
+ }
47
+ return Buffer.from(arg.serializeBinary());
48
+ }
49
+
50
+ function deserialize_gateway_web_v1_ApproveMcpAuthorizationResponse(buffer_arg) {
51
+ return proto_gateway_web_v1_account_gateway_pb.ApproveMcpAuthorizationResponse.deserializeBinary(new Uint8Array(buffer_arg));
52
+ }
53
+
32
54
  function serialize_gateway_web_v1_AuthorizeCliLoginRequest(arg) {
33
55
  if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.AuthorizeCliLoginRequest)) {
34
56
  throw new Error('Expected argument of type gateway.web.v1.AuthorizeCliLoginRequest');
@@ -205,6 +227,50 @@ function deserialize_gateway_web_v1_DeleteWebApiKeyResponse(buffer_arg) {
205
227
  return proto_gateway_web_v1_account_gateway_pb.DeleteWebApiKeyResponse.deserializeBinary(new Uint8Array(buffer_arg));
206
228
  }
207
229
 
230
+ function serialize_gateway_web_v1_DenyMcpAuthorizationRequest(arg) {
231
+ if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.DenyMcpAuthorizationRequest)) {
232
+ throw new Error('Expected argument of type gateway.web.v1.DenyMcpAuthorizationRequest');
233
+ }
234
+ return Buffer.from(arg.serializeBinary());
235
+ }
236
+
237
+ function deserialize_gateway_web_v1_DenyMcpAuthorizationRequest(buffer_arg) {
238
+ return proto_gateway_web_v1_account_gateway_pb.DenyMcpAuthorizationRequest.deserializeBinary(new Uint8Array(buffer_arg));
239
+ }
240
+
241
+ function serialize_gateway_web_v1_DenyMcpAuthorizationResponse(arg) {
242
+ if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.DenyMcpAuthorizationResponse)) {
243
+ throw new Error('Expected argument of type gateway.web.v1.DenyMcpAuthorizationResponse');
244
+ }
245
+ return Buffer.from(arg.serializeBinary());
246
+ }
247
+
248
+ function deserialize_gateway_web_v1_DenyMcpAuthorizationResponse(buffer_arg) {
249
+ return proto_gateway_web_v1_account_gateway_pb.DenyMcpAuthorizationResponse.deserializeBinary(new Uint8Array(buffer_arg));
250
+ }
251
+
252
+ function serialize_gateway_web_v1_GetMcpAuthorizationRequestRequest(arg) {
253
+ if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.GetMcpAuthorizationRequestRequest)) {
254
+ throw new Error('Expected argument of type gateway.web.v1.GetMcpAuthorizationRequestRequest');
255
+ }
256
+ return Buffer.from(arg.serializeBinary());
257
+ }
258
+
259
+ function deserialize_gateway_web_v1_GetMcpAuthorizationRequestRequest(buffer_arg) {
260
+ return proto_gateway_web_v1_account_gateway_pb.GetMcpAuthorizationRequestRequest.deserializeBinary(new Uint8Array(buffer_arg));
261
+ }
262
+
263
+ function serialize_gateway_web_v1_GetMcpAuthorizationRequestResponse(arg) {
264
+ if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.GetMcpAuthorizationRequestResponse)) {
265
+ throw new Error('Expected argument of type gateway.web.v1.GetMcpAuthorizationRequestResponse');
266
+ }
267
+ return Buffer.from(arg.serializeBinary());
268
+ }
269
+
270
+ function deserialize_gateway_web_v1_GetMcpAuthorizationRequestResponse(buffer_arg) {
271
+ return proto_gateway_web_v1_account_gateway_pb.GetMcpAuthorizationRequestResponse.deserializeBinary(new Uint8Array(buffer_arg));
272
+ }
273
+
208
274
  function serialize_gateway_web_v1_GetProductFeaturesRequest(arg) {
209
275
  if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.GetProductFeaturesRequest)) {
210
276
  throw new Error('Expected argument of type gateway.web.v1.GetProductFeaturesRequest');
@@ -1078,6 +1144,41 @@ authorizeCliLogin: {
1078
1144
  responseSerialize: serialize_gateway_web_v1_RevokeCliSessionResponse,
1079
1145
  responseDeserialize: deserialize_gateway_web_v1_RevokeCliSessionResponse,
1080
1146
  },
1147
+ // MCP authorization (docs/plans/mcp-oauth.md). The consent page's calls: each forwards the verified Clerk
1148
+ // subject, never a body field, and the request is bound to the first subject that opens it.
1149
+ getMcpAuthorizationRequest: {
1150
+ path: '/gateway.web.v1.AccountGatewayService/GetMcpAuthorizationRequest',
1151
+ requestStream: false,
1152
+ responseStream: false,
1153
+ requestType: proto_gateway_web_v1_account_gateway_pb.GetMcpAuthorizationRequestRequest,
1154
+ responseType: proto_gateway_web_v1_account_gateway_pb.GetMcpAuthorizationRequestResponse,
1155
+ requestSerialize: serialize_gateway_web_v1_GetMcpAuthorizationRequestRequest,
1156
+ requestDeserialize: deserialize_gateway_web_v1_GetMcpAuthorizationRequestRequest,
1157
+ responseSerialize: serialize_gateway_web_v1_GetMcpAuthorizationRequestResponse,
1158
+ responseDeserialize: deserialize_gateway_web_v1_GetMcpAuthorizationRequestResponse,
1159
+ },
1160
+ approveMcpAuthorization: {
1161
+ path: '/gateway.web.v1.AccountGatewayService/ApproveMcpAuthorization',
1162
+ requestStream: false,
1163
+ responseStream: false,
1164
+ requestType: proto_gateway_web_v1_account_gateway_pb.ApproveMcpAuthorizationRequest,
1165
+ responseType: proto_gateway_web_v1_account_gateway_pb.ApproveMcpAuthorizationResponse,
1166
+ requestSerialize: serialize_gateway_web_v1_ApproveMcpAuthorizationRequest,
1167
+ requestDeserialize: deserialize_gateway_web_v1_ApproveMcpAuthorizationRequest,
1168
+ responseSerialize: serialize_gateway_web_v1_ApproveMcpAuthorizationResponse,
1169
+ responseDeserialize: deserialize_gateway_web_v1_ApproveMcpAuthorizationResponse,
1170
+ },
1171
+ denyMcpAuthorization: {
1172
+ path: '/gateway.web.v1.AccountGatewayService/DenyMcpAuthorization',
1173
+ requestStream: false,
1174
+ responseStream: false,
1175
+ requestType: proto_gateway_web_v1_account_gateway_pb.DenyMcpAuthorizationRequest,
1176
+ responseType: proto_gateway_web_v1_account_gateway_pb.DenyMcpAuthorizationResponse,
1177
+ requestSerialize: serialize_gateway_web_v1_DenyMcpAuthorizationRequest,
1178
+ requestDeserialize: deserialize_gateway_web_v1_DenyMcpAuthorizationRequest,
1179
+ responseSerialize: serialize_gateway_web_v1_DenyMcpAuthorizationResponse,
1180
+ responseDeserialize: deserialize_gateway_web_v1_DenyMcpAuthorizationResponse,
1181
+ },
1081
1182
  };
1082
1183
 
1083
1184
  exports.AccountGatewayServiceClient = grpc.makeGenericClientConstructor(AccountGatewayServiceService, 'AccountGatewayService');