@miradorlabs/web-grpc 4.4.0 → 4.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.
@@ -353,6 +353,47 @@ export function invitationStatusToJSON(object: InvitationStatus): string {
353
353
  }
354
354
  }
355
355
 
356
+ export enum McpClientKind {
357
+ MCP_CLIENT_KIND_UNSPECIFIED = 0,
358
+ /** MCP_CLIENT_KIND_METADATA_DOCUMENT - the host in client_host served the client's metadata */
359
+ MCP_CLIENT_KIND_METADATA_DOCUMENT = 1,
360
+ /** MCP_CLIENT_KIND_DYNAMIC - self-registered: the name is unverified */
361
+ MCP_CLIENT_KIND_DYNAMIC = 2,
362
+ UNRECOGNIZED = -1,
363
+ }
364
+
365
+ export function mcpClientKindFromJSON(object: any): McpClientKind {
366
+ switch (object) {
367
+ case 0:
368
+ case "MCP_CLIENT_KIND_UNSPECIFIED":
369
+ return McpClientKind.MCP_CLIENT_KIND_UNSPECIFIED;
370
+ case 1:
371
+ case "MCP_CLIENT_KIND_METADATA_DOCUMENT":
372
+ return McpClientKind.MCP_CLIENT_KIND_METADATA_DOCUMENT;
373
+ case 2:
374
+ case "MCP_CLIENT_KIND_DYNAMIC":
375
+ return McpClientKind.MCP_CLIENT_KIND_DYNAMIC;
376
+ case -1:
377
+ case "UNRECOGNIZED":
378
+ default:
379
+ return McpClientKind.UNRECOGNIZED;
380
+ }
381
+ }
382
+
383
+ export function mcpClientKindToJSON(object: McpClientKind): string {
384
+ switch (object) {
385
+ case McpClientKind.MCP_CLIENT_KIND_UNSPECIFIED:
386
+ return "MCP_CLIENT_KIND_UNSPECIFIED";
387
+ case McpClientKind.MCP_CLIENT_KIND_METADATA_DOCUMENT:
388
+ return "MCP_CLIENT_KIND_METADATA_DOCUMENT";
389
+ case McpClientKind.MCP_CLIENT_KIND_DYNAMIC:
390
+ return "MCP_CLIENT_KIND_DYNAMIC";
391
+ case McpClientKind.UNRECOGNIZED:
392
+ default:
393
+ return "UNRECOGNIZED";
394
+ }
395
+ }
396
+
356
397
  export interface LogonRequest {
357
398
  /** Invitation ID for accepting invites during logon */
358
399
  invitationId?: string | undefined;
@@ -907,6 +948,54 @@ export interface RevokeCliSessionResponse {
907
948
  status: ResponseStatus | undefined;
908
949
  }
909
950
 
951
+ export interface GetMcpAuthorizationRequestRequest {
952
+ requestId: string;
953
+ }
954
+
955
+ /** NOT_FOUND once expired or used, or when another user opened it first (indistinguishable). */
956
+ export interface GetMcpAuthorizationRequestResponse {
957
+ status: ResponseStatus | undefined;
958
+ clientKind: McpClientKind;
959
+ /** self-asserted and untrusted, display only; empty when the client gave none */
960
+ clientName: string;
961
+ /** METADATA_DOCUMENT: the host that served the client's metadata; empty for DYNAMIC */
962
+ clientHost: string;
963
+ /** where the code goes: scheme://host[:port], or scheme: for a private-use scheme */
964
+ redirectOrigin: string;
965
+ /** this request's redirect_uri is loopback or a private-use scheme */
966
+ redirectIsNative: boolean;
967
+ /** sorted, de-duplicated */
968
+ scopes: string[];
969
+ resource: string;
970
+ expiresAt: Date | undefined;
971
+ }
972
+
973
+ export interface ApproveMcpAuthorizationRequest {
974
+ requestId: string;
975
+ organizationId: string;
976
+ projectId: string;
977
+ }
978
+
979
+ /**
980
+ * redirect_url carries code, state and iss. NOT_FOUND when expired, used, unopened or opened by another user;
981
+ * PERMISSION_DENIED for a team or organization the caller cannot use, or the shared demo project (the request stays
982
+ * usable).
983
+ */
984
+ export interface ApproveMcpAuthorizationResponse {
985
+ status: ResponseStatus | undefined;
986
+ redirectUrl: string;
987
+ }
988
+
989
+ export interface DenyMcpAuthorizationRequest {
990
+ requestId: string;
991
+ }
992
+
993
+ /** redirect_url carries error=access_denied, state and iss. */
994
+ export interface DenyMcpAuthorizationResponse {
995
+ status: ResponseStatus | undefined;
996
+ redirectUrl: string;
997
+ }
998
+
910
999
  export interface ProductFeatures {
911
1000
  betaInviteEnabled: boolean;
912
1001
  }
@@ -9073,19 +9162,19 @@ export const RevokeCliSessionResponse: MessageFns<RevokeCliSessionResponse> = {
9073
9162
  },
9074
9163
  };
9075
9164
 
9076
- function createBaseProductFeatures(): ProductFeatures {
9077
- return { betaInviteEnabled: false };
9165
+ function createBaseGetMcpAuthorizationRequestRequest(): GetMcpAuthorizationRequestRequest {
9166
+ return { requestId: "" };
9078
9167
  }
9079
9168
 
9080
- export const ProductFeatures: MessageFns<ProductFeatures> = {
9081
- encode(message: ProductFeatures, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
9082
- if (message.betaInviteEnabled !== false) {
9083
- writer.uint32(8).bool(message.betaInviteEnabled);
9169
+ export const GetMcpAuthorizationRequestRequest: MessageFns<GetMcpAuthorizationRequestRequest> = {
9170
+ encode(message: GetMcpAuthorizationRequestRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
9171
+ if (message.requestId !== "") {
9172
+ writer.uint32(10).string(message.requestId);
9084
9173
  }
9085
9174
  return writer;
9086
9175
  },
9087
9176
 
9088
- decode(input: BinaryReader | Uint8Array, length?: number): ProductFeatures {
9177
+ decode(input: BinaryReader | Uint8Array, length?: number): GetMcpAuthorizationRequestRequest {
9089
9178
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
9090
9179
  const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
9091
9180
  if (previousRecursionDepth >= 100) {
@@ -9094,16 +9183,16 @@ export const ProductFeatures: MessageFns<ProductFeatures> = {
9094
9183
  (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
9095
9184
  try {
9096
9185
  const end = length === undefined ? reader.len : reader.pos + length;
9097
- const message = createBaseProductFeatures();
9186
+ const message = createBaseGetMcpAuthorizationRequestRequest();
9098
9187
  while (reader.pos < end) {
9099
9188
  const tag = reader.uint32();
9100
9189
  switch (tag >>> 3) {
9101
9190
  case 1: {
9102
- if (tag !== 8) {
9191
+ if (tag !== 10) {
9103
9192
  break;
9104
9193
  }
9105
9194
 
9106
- message.betaInviteEnabled = reader.bool();
9195
+ message.requestId = reader.string();
9107
9196
  continue;
9108
9197
  }
9109
9198
  }
@@ -9118,44 +9207,85 @@ export const ProductFeatures: MessageFns<ProductFeatures> = {
9118
9207
  }
9119
9208
  },
9120
9209
 
9121
- fromJSON(object: any): ProductFeatures {
9210
+ fromJSON(object: any): GetMcpAuthorizationRequestRequest {
9122
9211
  return {
9123
- betaInviteEnabled: isSet(object.betaInviteEnabled)
9124
- ? globalThis.Boolean(object.betaInviteEnabled)
9125
- : isSet(object.beta_invite_enabled)
9126
- ? globalThis.Boolean(object.beta_invite_enabled)
9127
- : false,
9212
+ requestId: isSet(object.requestId)
9213
+ ? globalThis.String(object.requestId)
9214
+ : isSet(object.request_id)
9215
+ ? globalThis.String(object.request_id)
9216
+ : "",
9128
9217
  };
9129
9218
  },
9130
9219
 
9131
- toJSON(message: ProductFeatures): unknown {
9220
+ toJSON(message: GetMcpAuthorizationRequestRequest): unknown {
9132
9221
  const obj: any = {};
9133
- if (message.betaInviteEnabled !== false) {
9134
- obj.betaInviteEnabled = message.betaInviteEnabled;
9222
+ if (message.requestId !== "") {
9223
+ obj.requestId = message.requestId;
9135
9224
  }
9136
9225
  return obj;
9137
9226
  },
9138
9227
 
9139
- create<I extends Exact<DeepPartial<ProductFeatures>, I>>(base?: I): ProductFeatures {
9140
- return ProductFeatures.fromPartial(base ?? ({} as any));
9228
+ create<I extends Exact<DeepPartial<GetMcpAuthorizationRequestRequest>, I>>(
9229
+ base?: I,
9230
+ ): GetMcpAuthorizationRequestRequest {
9231
+ return GetMcpAuthorizationRequestRequest.fromPartial(base ?? ({} as any));
9141
9232
  },
9142
- fromPartial<I extends Exact<DeepPartial<ProductFeatures>, I>>(object: I): ProductFeatures {
9143
- const message = createBaseProductFeatures();
9144
- message.betaInviteEnabled = object.betaInviteEnabled ?? false;
9233
+ fromPartial<I extends Exact<DeepPartial<GetMcpAuthorizationRequestRequest>, I>>(
9234
+ object: I,
9235
+ ): GetMcpAuthorizationRequestRequest {
9236
+ const message = createBaseGetMcpAuthorizationRequestRequest();
9237
+ message.requestId = object.requestId ?? "";
9145
9238
  return message;
9146
9239
  },
9147
9240
  };
9148
9241
 
9149
- function createBaseGetProductFeaturesRequest(): GetProductFeaturesRequest {
9150
- return {};
9242
+ function createBaseGetMcpAuthorizationRequestResponse(): GetMcpAuthorizationRequestResponse {
9243
+ return {
9244
+ status: undefined,
9245
+ clientKind: 0,
9246
+ clientName: "",
9247
+ clientHost: "",
9248
+ redirectOrigin: "",
9249
+ redirectIsNative: false,
9250
+ scopes: [],
9251
+ resource: "",
9252
+ expiresAt: undefined,
9253
+ };
9151
9254
  }
9152
9255
 
9153
- export const GetProductFeaturesRequest: MessageFns<GetProductFeaturesRequest> = {
9154
- encode(_: GetProductFeaturesRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
9256
+ export const GetMcpAuthorizationRequestResponse: MessageFns<GetMcpAuthorizationRequestResponse> = {
9257
+ encode(message: GetMcpAuthorizationRequestResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
9258
+ if (message.status !== undefined) {
9259
+ ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
9260
+ }
9261
+ if (message.clientKind !== 0) {
9262
+ writer.uint32(16).int32(message.clientKind);
9263
+ }
9264
+ if (message.clientName !== "") {
9265
+ writer.uint32(26).string(message.clientName);
9266
+ }
9267
+ if (message.clientHost !== "") {
9268
+ writer.uint32(34).string(message.clientHost);
9269
+ }
9270
+ if (message.redirectOrigin !== "") {
9271
+ writer.uint32(42).string(message.redirectOrigin);
9272
+ }
9273
+ if (message.redirectIsNative !== false) {
9274
+ writer.uint32(48).bool(message.redirectIsNative);
9275
+ }
9276
+ for (const v of message.scopes) {
9277
+ writer.uint32(58).string(v!);
9278
+ }
9279
+ if (message.resource !== "") {
9280
+ writer.uint32(66).string(message.resource);
9281
+ }
9282
+ if (message.expiresAt !== undefined) {
9283
+ Timestamp.encode(toTimestamp(message.expiresAt), writer.uint32(74).fork()).join();
9284
+ }
9155
9285
  return writer;
9156
9286
  },
9157
9287
 
9158
- decode(input: BinaryReader | Uint8Array, length?: number): GetProductFeaturesRequest {
9288
+ decode(input: BinaryReader | Uint8Array, length?: number): GetMcpAuthorizationRequestResponse {
9159
9289
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
9160
9290
  const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
9161
9291
  if (previousRecursionDepth >= 100) {
@@ -9164,10 +9294,82 @@ export const GetProductFeaturesRequest: MessageFns<GetProductFeaturesRequest> =
9164
9294
  (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
9165
9295
  try {
9166
9296
  const end = length === undefined ? reader.len : reader.pos + length;
9167
- const message = createBaseGetProductFeaturesRequest();
9297
+ const message = createBaseGetMcpAuthorizationRequestResponse();
9168
9298
  while (reader.pos < end) {
9169
9299
  const tag = reader.uint32();
9170
9300
  switch (tag >>> 3) {
9301
+ case 1: {
9302
+ if (tag !== 10) {
9303
+ break;
9304
+ }
9305
+
9306
+ message.status = ResponseStatus.decode(reader, reader.uint32());
9307
+ continue;
9308
+ }
9309
+ case 2: {
9310
+ if (tag !== 16) {
9311
+ break;
9312
+ }
9313
+
9314
+ message.clientKind = reader.int32() as any;
9315
+ continue;
9316
+ }
9317
+ case 3: {
9318
+ if (tag !== 26) {
9319
+ break;
9320
+ }
9321
+
9322
+ message.clientName = reader.string();
9323
+ continue;
9324
+ }
9325
+ case 4: {
9326
+ if (tag !== 34) {
9327
+ break;
9328
+ }
9329
+
9330
+ message.clientHost = reader.string();
9331
+ continue;
9332
+ }
9333
+ case 5: {
9334
+ if (tag !== 42) {
9335
+ break;
9336
+ }
9337
+
9338
+ message.redirectOrigin = reader.string();
9339
+ continue;
9340
+ }
9341
+ case 6: {
9342
+ if (tag !== 48) {
9343
+ break;
9344
+ }
9345
+
9346
+ message.redirectIsNative = reader.bool();
9347
+ continue;
9348
+ }
9349
+ case 7: {
9350
+ if (tag !== 58) {
9351
+ break;
9352
+ }
9353
+
9354
+ message.scopes.push(reader.string());
9355
+ continue;
9356
+ }
9357
+ case 8: {
9358
+ if (tag !== 66) {
9359
+ break;
9360
+ }
9361
+
9362
+ message.resource = reader.string();
9363
+ continue;
9364
+ }
9365
+ case 9: {
9366
+ if (tag !== 74) {
9367
+ break;
9368
+ }
9369
+
9370
+ message.expiresAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
9371
+ continue;
9372
+ }
9171
9373
  }
9172
9374
  if ((tag & 7) === 4 || tag === 0) {
9173
9375
  break;
@@ -9180,40 +9382,121 @@ export const GetProductFeaturesRequest: MessageFns<GetProductFeaturesRequest> =
9180
9382
  }
9181
9383
  },
9182
9384
 
9183
- fromJSON(_: any): GetProductFeaturesRequest {
9184
- return {};
9385
+ fromJSON(object: any): GetMcpAuthorizationRequestResponse {
9386
+ return {
9387
+ status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
9388
+ clientKind: isSet(object.clientKind)
9389
+ ? mcpClientKindFromJSON(object.clientKind)
9390
+ : isSet(object.client_kind)
9391
+ ? mcpClientKindFromJSON(object.client_kind)
9392
+ : 0,
9393
+ clientName: isSet(object.clientName)
9394
+ ? globalThis.String(object.clientName)
9395
+ : isSet(object.client_name)
9396
+ ? globalThis.String(object.client_name)
9397
+ : "",
9398
+ clientHost: isSet(object.clientHost)
9399
+ ? globalThis.String(object.clientHost)
9400
+ : isSet(object.client_host)
9401
+ ? globalThis.String(object.client_host)
9402
+ : "",
9403
+ redirectOrigin: isSet(object.redirectOrigin)
9404
+ ? globalThis.String(object.redirectOrigin)
9405
+ : isSet(object.redirect_origin)
9406
+ ? globalThis.String(object.redirect_origin)
9407
+ : "",
9408
+ redirectIsNative: isSet(object.redirectIsNative)
9409
+ ? globalThis.Boolean(object.redirectIsNative)
9410
+ : isSet(object.redirect_is_native)
9411
+ ? globalThis.Boolean(object.redirect_is_native)
9412
+ : false,
9413
+ scopes: globalThis.Array.isArray(object?.scopes)
9414
+ ? object.scopes.map((e: any) => globalThis.String(e))
9415
+ : [],
9416
+ resource: isSet(object.resource) ? globalThis.String(object.resource) : "",
9417
+ expiresAt: isSet(object.expiresAt)
9418
+ ? fromJsonTimestamp(object.expiresAt)
9419
+ : isSet(object.expires_at)
9420
+ ? fromJsonTimestamp(object.expires_at)
9421
+ : undefined,
9422
+ };
9185
9423
  },
9186
9424
 
9187
- toJSON(_: GetProductFeaturesRequest): unknown {
9425
+ toJSON(message: GetMcpAuthorizationRequestResponse): unknown {
9188
9426
  const obj: any = {};
9427
+ if (message.status !== undefined) {
9428
+ obj.status = ResponseStatus.toJSON(message.status);
9429
+ }
9430
+ if (message.clientKind !== 0) {
9431
+ obj.clientKind = mcpClientKindToJSON(message.clientKind);
9432
+ }
9433
+ if (message.clientName !== "") {
9434
+ obj.clientName = message.clientName;
9435
+ }
9436
+ if (message.clientHost !== "") {
9437
+ obj.clientHost = message.clientHost;
9438
+ }
9439
+ if (message.redirectOrigin !== "") {
9440
+ obj.redirectOrigin = message.redirectOrigin;
9441
+ }
9442
+ if (message.redirectIsNative !== false) {
9443
+ obj.redirectIsNative = message.redirectIsNative;
9444
+ }
9445
+ if (message.scopes?.length) {
9446
+ obj.scopes = message.scopes;
9447
+ }
9448
+ if (message.resource !== "") {
9449
+ obj.resource = message.resource;
9450
+ }
9451
+ if (message.expiresAt !== undefined) {
9452
+ obj.expiresAt = message.expiresAt.toISOString();
9453
+ }
9189
9454
  return obj;
9190
9455
  },
9191
9456
 
9192
- create<I extends Exact<DeepPartial<GetProductFeaturesRequest>, I>>(base?: I): GetProductFeaturesRequest {
9193
- return GetProductFeaturesRequest.fromPartial(base ?? ({} as any));
9457
+ create<I extends Exact<DeepPartial<GetMcpAuthorizationRequestResponse>, I>>(
9458
+ base?: I,
9459
+ ): GetMcpAuthorizationRequestResponse {
9460
+ return GetMcpAuthorizationRequestResponse.fromPartial(base ?? ({} as any));
9194
9461
  },
9195
- fromPartial<I extends Exact<DeepPartial<GetProductFeaturesRequest>, I>>(_: I): GetProductFeaturesRequest {
9196
- const message = createBaseGetProductFeaturesRequest();
9462
+ fromPartial<I extends Exact<DeepPartial<GetMcpAuthorizationRequestResponse>, I>>(
9463
+ object: I,
9464
+ ): GetMcpAuthorizationRequestResponse {
9465
+ const message = createBaseGetMcpAuthorizationRequestResponse();
9466
+ message.status = (object.status !== undefined && object.status !== null)
9467
+ ? ResponseStatus.fromPartial(object.status)
9468
+ : undefined;
9469
+ message.clientKind = object.clientKind ?? 0;
9470
+ message.clientName = object.clientName ?? "";
9471
+ message.clientHost = object.clientHost ?? "";
9472
+ message.redirectOrigin = object.redirectOrigin ?? "";
9473
+ message.redirectIsNative = object.redirectIsNative ?? false;
9474
+ message.scopes = object.scopes?.map((e) => e) || [];
9475
+ message.resource = object.resource ?? "";
9476
+ message.expiresAt = object.expiresAt ?? undefined;
9197
9477
  return message;
9198
9478
  },
9199
9479
  };
9200
9480
 
9201
- function createBaseGetProductFeaturesResponse(): GetProductFeaturesResponse {
9202
- return { status: undefined, features: undefined };
9481
+ function createBaseApproveMcpAuthorizationRequest(): ApproveMcpAuthorizationRequest {
9482
+ return { requestId: "", organizationId: "", projectId: "" };
9203
9483
  }
9204
9484
 
9205
- export const GetProductFeaturesResponse: MessageFns<GetProductFeaturesResponse> = {
9206
- encode(message: GetProductFeaturesResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
9207
- if (message.status !== undefined) {
9208
- ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
9485
+ export const ApproveMcpAuthorizationRequest: MessageFns<ApproveMcpAuthorizationRequest> = {
9486
+ encode(message: ApproveMcpAuthorizationRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
9487
+ if (message.requestId !== "") {
9488
+ writer.uint32(10).string(message.requestId);
9209
9489
  }
9210
- if (message.features !== undefined) {
9211
- ProductFeatures.encode(message.features, writer.uint32(18).fork()).join();
9490
+ if (message.organizationId !== "") {
9491
+ writer.uint32(18).string(message.organizationId);
9492
+ }
9493
+ if (message.projectId !== "") {
9494
+ writer.uint32(26).string(message.projectId);
9212
9495
  }
9213
9496
  return writer;
9214
9497
  },
9215
9498
 
9216
- decode(input: BinaryReader | Uint8Array, length?: number): GetProductFeaturesResponse {
9499
+ decode(input: BinaryReader | Uint8Array, length?: number): ApproveMcpAuthorizationRequest {
9217
9500
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
9218
9501
  const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
9219
9502
  if (previousRecursionDepth >= 100) {
@@ -9222,7 +9505,7 @@ export const GetProductFeaturesResponse: MessageFns<GetProductFeaturesResponse>
9222
9505
  (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
9223
9506
  try {
9224
9507
  const end = length === undefined ? reader.len : reader.pos + length;
9225
- const message = createBaseGetProductFeaturesResponse();
9508
+ const message = createBaseApproveMcpAuthorizationRequest();
9226
9509
  while (reader.pos < end) {
9227
9510
  const tag = reader.uint32();
9228
9511
  switch (tag >>> 3) {
@@ -9231,7 +9514,7 @@ export const GetProductFeaturesResponse: MessageFns<GetProductFeaturesResponse>
9231
9514
  break;
9232
9515
  }
9233
9516
 
9234
- message.status = ResponseStatus.decode(reader, reader.uint32());
9517
+ message.requestId = reader.string();
9235
9518
  continue;
9236
9519
  }
9237
9520
  case 2: {
@@ -9239,7 +9522,15 @@ export const GetProductFeaturesResponse: MessageFns<GetProductFeaturesResponse>
9239
9522
  break;
9240
9523
  }
9241
9524
 
9242
- message.features = ProductFeatures.decode(reader, reader.uint32());
9525
+ message.organizationId = reader.string();
9526
+ continue;
9527
+ }
9528
+ case 3: {
9529
+ if (tag !== 26) {
9530
+ break;
9531
+ }
9532
+
9533
+ message.projectId = reader.string();
9243
9534
  continue;
9244
9535
  }
9245
9536
  }
@@ -9254,41 +9545,527 @@ export const GetProductFeaturesResponse: MessageFns<GetProductFeaturesResponse>
9254
9545
  }
9255
9546
  },
9256
9547
 
9257
- fromJSON(object: any): GetProductFeaturesResponse {
9548
+ fromJSON(object: any): ApproveMcpAuthorizationRequest {
9258
9549
  return {
9259
- status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
9260
- features: isSet(object.features) ? ProductFeatures.fromJSON(object.features) : undefined,
9550
+ requestId: isSet(object.requestId)
9551
+ ? globalThis.String(object.requestId)
9552
+ : isSet(object.request_id)
9553
+ ? globalThis.String(object.request_id)
9554
+ : "",
9555
+ organizationId: isSet(object.organizationId)
9556
+ ? globalThis.String(object.organizationId)
9557
+ : isSet(object.organization_id)
9558
+ ? globalThis.String(object.organization_id)
9559
+ : "",
9560
+ projectId: isSet(object.projectId)
9561
+ ? globalThis.String(object.projectId)
9562
+ : isSet(object.project_id)
9563
+ ? globalThis.String(object.project_id)
9564
+ : "",
9261
9565
  };
9262
9566
  },
9263
9567
 
9264
- toJSON(message: GetProductFeaturesResponse): unknown {
9568
+ toJSON(message: ApproveMcpAuthorizationRequest): unknown {
9265
9569
  const obj: any = {};
9266
- if (message.status !== undefined) {
9267
- obj.status = ResponseStatus.toJSON(message.status);
9570
+ if (message.requestId !== "") {
9571
+ obj.requestId = message.requestId;
9268
9572
  }
9269
- if (message.features !== undefined) {
9270
- obj.features = ProductFeatures.toJSON(message.features);
9573
+ if (message.organizationId !== "") {
9574
+ obj.organizationId = message.organizationId;
9575
+ }
9576
+ if (message.projectId !== "") {
9577
+ obj.projectId = message.projectId;
9271
9578
  }
9272
9579
  return obj;
9273
9580
  },
9274
9581
 
9275
- create<I extends Exact<DeepPartial<GetProductFeaturesResponse>, I>>(base?: I): GetProductFeaturesResponse {
9276
- return GetProductFeaturesResponse.fromPartial(base ?? ({} as any));
9582
+ create<I extends Exact<DeepPartial<ApproveMcpAuthorizationRequest>, I>>(base?: I): ApproveMcpAuthorizationRequest {
9583
+ return ApproveMcpAuthorizationRequest.fromPartial(base ?? ({} as any));
9277
9584
  },
9278
- fromPartial<I extends Exact<DeepPartial<GetProductFeaturesResponse>, I>>(object: I): GetProductFeaturesResponse {
9279
- const message = createBaseGetProductFeaturesResponse();
9280
- message.status = (object.status !== undefined && object.status !== null)
9281
- ? ResponseStatus.fromPartial(object.status)
9282
- : undefined;
9283
- message.features = (object.features !== undefined && object.features !== null)
9284
- ? ProductFeatures.fromPartial(object.features)
9285
- : undefined;
9585
+ fromPartial<I extends Exact<DeepPartial<ApproveMcpAuthorizationRequest>, I>>(
9586
+ object: I,
9587
+ ): ApproveMcpAuthorizationRequest {
9588
+ const message = createBaseApproveMcpAuthorizationRequest();
9589
+ message.requestId = object.requestId ?? "";
9590
+ message.organizationId = object.organizationId ?? "";
9591
+ message.projectId = object.projectId ?? "";
9286
9592
  return message;
9287
9593
  },
9288
9594
  };
9289
9595
 
9290
- export interface AccountGatewayService {
9291
- /** Authentication */
9596
+ function createBaseApproveMcpAuthorizationResponse(): ApproveMcpAuthorizationResponse {
9597
+ return { status: undefined, redirectUrl: "" };
9598
+ }
9599
+
9600
+ export const ApproveMcpAuthorizationResponse: MessageFns<ApproveMcpAuthorizationResponse> = {
9601
+ encode(message: ApproveMcpAuthorizationResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
9602
+ if (message.status !== undefined) {
9603
+ ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
9604
+ }
9605
+ if (message.redirectUrl !== "") {
9606
+ writer.uint32(18).string(message.redirectUrl);
9607
+ }
9608
+ return writer;
9609
+ },
9610
+
9611
+ decode(input: BinaryReader | Uint8Array, length?: number): ApproveMcpAuthorizationResponse {
9612
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
9613
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
9614
+ if (previousRecursionDepth >= 100) {
9615
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
9616
+ }
9617
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
9618
+ try {
9619
+ const end = length === undefined ? reader.len : reader.pos + length;
9620
+ const message = createBaseApproveMcpAuthorizationResponse();
9621
+ while (reader.pos < end) {
9622
+ const tag = reader.uint32();
9623
+ switch (tag >>> 3) {
9624
+ case 1: {
9625
+ if (tag !== 10) {
9626
+ break;
9627
+ }
9628
+
9629
+ message.status = ResponseStatus.decode(reader, reader.uint32());
9630
+ continue;
9631
+ }
9632
+ case 2: {
9633
+ if (tag !== 18) {
9634
+ break;
9635
+ }
9636
+
9637
+ message.redirectUrl = reader.string();
9638
+ continue;
9639
+ }
9640
+ }
9641
+ if ((tag & 7) === 4 || tag === 0) {
9642
+ break;
9643
+ }
9644
+ reader.skip(tag & 7);
9645
+ }
9646
+ return message;
9647
+ } finally {
9648
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
9649
+ }
9650
+ },
9651
+
9652
+ fromJSON(object: any): ApproveMcpAuthorizationResponse {
9653
+ return {
9654
+ status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
9655
+ redirectUrl: isSet(object.redirectUrl)
9656
+ ? globalThis.String(object.redirectUrl)
9657
+ : isSet(object.redirect_url)
9658
+ ? globalThis.String(object.redirect_url)
9659
+ : "",
9660
+ };
9661
+ },
9662
+
9663
+ toJSON(message: ApproveMcpAuthorizationResponse): unknown {
9664
+ const obj: any = {};
9665
+ if (message.status !== undefined) {
9666
+ obj.status = ResponseStatus.toJSON(message.status);
9667
+ }
9668
+ if (message.redirectUrl !== "") {
9669
+ obj.redirectUrl = message.redirectUrl;
9670
+ }
9671
+ return obj;
9672
+ },
9673
+
9674
+ create<I extends Exact<DeepPartial<ApproveMcpAuthorizationResponse>, I>>(base?: I): ApproveMcpAuthorizationResponse {
9675
+ return ApproveMcpAuthorizationResponse.fromPartial(base ?? ({} as any));
9676
+ },
9677
+ fromPartial<I extends Exact<DeepPartial<ApproveMcpAuthorizationResponse>, I>>(
9678
+ object: I,
9679
+ ): ApproveMcpAuthorizationResponse {
9680
+ const message = createBaseApproveMcpAuthorizationResponse();
9681
+ message.status = (object.status !== undefined && object.status !== null)
9682
+ ? ResponseStatus.fromPartial(object.status)
9683
+ : undefined;
9684
+ message.redirectUrl = object.redirectUrl ?? "";
9685
+ return message;
9686
+ },
9687
+ };
9688
+
9689
+ function createBaseDenyMcpAuthorizationRequest(): DenyMcpAuthorizationRequest {
9690
+ return { requestId: "" };
9691
+ }
9692
+
9693
+ export const DenyMcpAuthorizationRequest: MessageFns<DenyMcpAuthorizationRequest> = {
9694
+ encode(message: DenyMcpAuthorizationRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
9695
+ if (message.requestId !== "") {
9696
+ writer.uint32(10).string(message.requestId);
9697
+ }
9698
+ return writer;
9699
+ },
9700
+
9701
+ decode(input: BinaryReader | Uint8Array, length?: number): DenyMcpAuthorizationRequest {
9702
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
9703
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
9704
+ if (previousRecursionDepth >= 100) {
9705
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
9706
+ }
9707
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
9708
+ try {
9709
+ const end = length === undefined ? reader.len : reader.pos + length;
9710
+ const message = createBaseDenyMcpAuthorizationRequest();
9711
+ while (reader.pos < end) {
9712
+ const tag = reader.uint32();
9713
+ switch (tag >>> 3) {
9714
+ case 1: {
9715
+ if (tag !== 10) {
9716
+ break;
9717
+ }
9718
+
9719
+ message.requestId = reader.string();
9720
+ continue;
9721
+ }
9722
+ }
9723
+ if ((tag & 7) === 4 || tag === 0) {
9724
+ break;
9725
+ }
9726
+ reader.skip(tag & 7);
9727
+ }
9728
+ return message;
9729
+ } finally {
9730
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
9731
+ }
9732
+ },
9733
+
9734
+ fromJSON(object: any): DenyMcpAuthorizationRequest {
9735
+ return {
9736
+ requestId: isSet(object.requestId)
9737
+ ? globalThis.String(object.requestId)
9738
+ : isSet(object.request_id)
9739
+ ? globalThis.String(object.request_id)
9740
+ : "",
9741
+ };
9742
+ },
9743
+
9744
+ toJSON(message: DenyMcpAuthorizationRequest): unknown {
9745
+ const obj: any = {};
9746
+ if (message.requestId !== "") {
9747
+ obj.requestId = message.requestId;
9748
+ }
9749
+ return obj;
9750
+ },
9751
+
9752
+ create<I extends Exact<DeepPartial<DenyMcpAuthorizationRequest>, I>>(base?: I): DenyMcpAuthorizationRequest {
9753
+ return DenyMcpAuthorizationRequest.fromPartial(base ?? ({} as any));
9754
+ },
9755
+ fromPartial<I extends Exact<DeepPartial<DenyMcpAuthorizationRequest>, I>>(object: I): DenyMcpAuthorizationRequest {
9756
+ const message = createBaseDenyMcpAuthorizationRequest();
9757
+ message.requestId = object.requestId ?? "";
9758
+ return message;
9759
+ },
9760
+ };
9761
+
9762
+ function createBaseDenyMcpAuthorizationResponse(): DenyMcpAuthorizationResponse {
9763
+ return { status: undefined, redirectUrl: "" };
9764
+ }
9765
+
9766
+ export const DenyMcpAuthorizationResponse: MessageFns<DenyMcpAuthorizationResponse> = {
9767
+ encode(message: DenyMcpAuthorizationResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
9768
+ if (message.status !== undefined) {
9769
+ ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
9770
+ }
9771
+ if (message.redirectUrl !== "") {
9772
+ writer.uint32(18).string(message.redirectUrl);
9773
+ }
9774
+ return writer;
9775
+ },
9776
+
9777
+ decode(input: BinaryReader | Uint8Array, length?: number): DenyMcpAuthorizationResponse {
9778
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
9779
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
9780
+ if (previousRecursionDepth >= 100) {
9781
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
9782
+ }
9783
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
9784
+ try {
9785
+ const end = length === undefined ? reader.len : reader.pos + length;
9786
+ const message = createBaseDenyMcpAuthorizationResponse();
9787
+ while (reader.pos < end) {
9788
+ const tag = reader.uint32();
9789
+ switch (tag >>> 3) {
9790
+ case 1: {
9791
+ if (tag !== 10) {
9792
+ break;
9793
+ }
9794
+
9795
+ message.status = ResponseStatus.decode(reader, reader.uint32());
9796
+ continue;
9797
+ }
9798
+ case 2: {
9799
+ if (tag !== 18) {
9800
+ break;
9801
+ }
9802
+
9803
+ message.redirectUrl = reader.string();
9804
+ continue;
9805
+ }
9806
+ }
9807
+ if ((tag & 7) === 4 || tag === 0) {
9808
+ break;
9809
+ }
9810
+ reader.skip(tag & 7);
9811
+ }
9812
+ return message;
9813
+ } finally {
9814
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
9815
+ }
9816
+ },
9817
+
9818
+ fromJSON(object: any): DenyMcpAuthorizationResponse {
9819
+ return {
9820
+ status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
9821
+ redirectUrl: isSet(object.redirectUrl)
9822
+ ? globalThis.String(object.redirectUrl)
9823
+ : isSet(object.redirect_url)
9824
+ ? globalThis.String(object.redirect_url)
9825
+ : "",
9826
+ };
9827
+ },
9828
+
9829
+ toJSON(message: DenyMcpAuthorizationResponse): unknown {
9830
+ const obj: any = {};
9831
+ if (message.status !== undefined) {
9832
+ obj.status = ResponseStatus.toJSON(message.status);
9833
+ }
9834
+ if (message.redirectUrl !== "") {
9835
+ obj.redirectUrl = message.redirectUrl;
9836
+ }
9837
+ return obj;
9838
+ },
9839
+
9840
+ create<I extends Exact<DeepPartial<DenyMcpAuthorizationResponse>, I>>(base?: I): DenyMcpAuthorizationResponse {
9841
+ return DenyMcpAuthorizationResponse.fromPartial(base ?? ({} as any));
9842
+ },
9843
+ fromPartial<I extends Exact<DeepPartial<DenyMcpAuthorizationResponse>, I>>(object: I): DenyMcpAuthorizationResponse {
9844
+ const message = createBaseDenyMcpAuthorizationResponse();
9845
+ message.status = (object.status !== undefined && object.status !== null)
9846
+ ? ResponseStatus.fromPartial(object.status)
9847
+ : undefined;
9848
+ message.redirectUrl = object.redirectUrl ?? "";
9849
+ return message;
9850
+ },
9851
+ };
9852
+
9853
+ function createBaseProductFeatures(): ProductFeatures {
9854
+ return { betaInviteEnabled: false };
9855
+ }
9856
+
9857
+ export const ProductFeatures: MessageFns<ProductFeatures> = {
9858
+ encode(message: ProductFeatures, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
9859
+ if (message.betaInviteEnabled !== false) {
9860
+ writer.uint32(8).bool(message.betaInviteEnabled);
9861
+ }
9862
+ return writer;
9863
+ },
9864
+
9865
+ decode(input: BinaryReader | Uint8Array, length?: number): ProductFeatures {
9866
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
9867
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
9868
+ if (previousRecursionDepth >= 100) {
9869
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
9870
+ }
9871
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
9872
+ try {
9873
+ const end = length === undefined ? reader.len : reader.pos + length;
9874
+ const message = createBaseProductFeatures();
9875
+ while (reader.pos < end) {
9876
+ const tag = reader.uint32();
9877
+ switch (tag >>> 3) {
9878
+ case 1: {
9879
+ if (tag !== 8) {
9880
+ break;
9881
+ }
9882
+
9883
+ message.betaInviteEnabled = reader.bool();
9884
+ continue;
9885
+ }
9886
+ }
9887
+ if ((tag & 7) === 4 || tag === 0) {
9888
+ break;
9889
+ }
9890
+ reader.skip(tag & 7);
9891
+ }
9892
+ return message;
9893
+ } finally {
9894
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
9895
+ }
9896
+ },
9897
+
9898
+ fromJSON(object: any): ProductFeatures {
9899
+ return {
9900
+ betaInviteEnabled: isSet(object.betaInviteEnabled)
9901
+ ? globalThis.Boolean(object.betaInviteEnabled)
9902
+ : isSet(object.beta_invite_enabled)
9903
+ ? globalThis.Boolean(object.beta_invite_enabled)
9904
+ : false,
9905
+ };
9906
+ },
9907
+
9908
+ toJSON(message: ProductFeatures): unknown {
9909
+ const obj: any = {};
9910
+ if (message.betaInviteEnabled !== false) {
9911
+ obj.betaInviteEnabled = message.betaInviteEnabled;
9912
+ }
9913
+ return obj;
9914
+ },
9915
+
9916
+ create<I extends Exact<DeepPartial<ProductFeatures>, I>>(base?: I): ProductFeatures {
9917
+ return ProductFeatures.fromPartial(base ?? ({} as any));
9918
+ },
9919
+ fromPartial<I extends Exact<DeepPartial<ProductFeatures>, I>>(object: I): ProductFeatures {
9920
+ const message = createBaseProductFeatures();
9921
+ message.betaInviteEnabled = object.betaInviteEnabled ?? false;
9922
+ return message;
9923
+ },
9924
+ };
9925
+
9926
+ function createBaseGetProductFeaturesRequest(): GetProductFeaturesRequest {
9927
+ return {};
9928
+ }
9929
+
9930
+ export const GetProductFeaturesRequest: MessageFns<GetProductFeaturesRequest> = {
9931
+ encode(_: GetProductFeaturesRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
9932
+ return writer;
9933
+ },
9934
+
9935
+ decode(input: BinaryReader | Uint8Array, length?: number): GetProductFeaturesRequest {
9936
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
9937
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
9938
+ if (previousRecursionDepth >= 100) {
9939
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
9940
+ }
9941
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
9942
+ try {
9943
+ const end = length === undefined ? reader.len : reader.pos + length;
9944
+ const message = createBaseGetProductFeaturesRequest();
9945
+ while (reader.pos < end) {
9946
+ const tag = reader.uint32();
9947
+ switch (tag >>> 3) {
9948
+ }
9949
+ if ((tag & 7) === 4 || tag === 0) {
9950
+ break;
9951
+ }
9952
+ reader.skip(tag & 7);
9953
+ }
9954
+ return message;
9955
+ } finally {
9956
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
9957
+ }
9958
+ },
9959
+
9960
+ fromJSON(_: any): GetProductFeaturesRequest {
9961
+ return {};
9962
+ },
9963
+
9964
+ toJSON(_: GetProductFeaturesRequest): unknown {
9965
+ const obj: any = {};
9966
+ return obj;
9967
+ },
9968
+
9969
+ create<I extends Exact<DeepPartial<GetProductFeaturesRequest>, I>>(base?: I): GetProductFeaturesRequest {
9970
+ return GetProductFeaturesRequest.fromPartial(base ?? ({} as any));
9971
+ },
9972
+ fromPartial<I extends Exact<DeepPartial<GetProductFeaturesRequest>, I>>(_: I): GetProductFeaturesRequest {
9973
+ const message = createBaseGetProductFeaturesRequest();
9974
+ return message;
9975
+ },
9976
+ };
9977
+
9978
+ function createBaseGetProductFeaturesResponse(): GetProductFeaturesResponse {
9979
+ return { status: undefined, features: undefined };
9980
+ }
9981
+
9982
+ export const GetProductFeaturesResponse: MessageFns<GetProductFeaturesResponse> = {
9983
+ encode(message: GetProductFeaturesResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
9984
+ if (message.status !== undefined) {
9985
+ ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
9986
+ }
9987
+ if (message.features !== undefined) {
9988
+ ProductFeatures.encode(message.features, writer.uint32(18).fork()).join();
9989
+ }
9990
+ return writer;
9991
+ },
9992
+
9993
+ decode(input: BinaryReader | Uint8Array, length?: number): GetProductFeaturesResponse {
9994
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
9995
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
9996
+ if (previousRecursionDepth >= 100) {
9997
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
9998
+ }
9999
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
10000
+ try {
10001
+ const end = length === undefined ? reader.len : reader.pos + length;
10002
+ const message = createBaseGetProductFeaturesResponse();
10003
+ while (reader.pos < end) {
10004
+ const tag = reader.uint32();
10005
+ switch (tag >>> 3) {
10006
+ case 1: {
10007
+ if (tag !== 10) {
10008
+ break;
10009
+ }
10010
+
10011
+ message.status = ResponseStatus.decode(reader, reader.uint32());
10012
+ continue;
10013
+ }
10014
+ case 2: {
10015
+ if (tag !== 18) {
10016
+ break;
10017
+ }
10018
+
10019
+ message.features = ProductFeatures.decode(reader, reader.uint32());
10020
+ continue;
10021
+ }
10022
+ }
10023
+ if ((tag & 7) === 4 || tag === 0) {
10024
+ break;
10025
+ }
10026
+ reader.skip(tag & 7);
10027
+ }
10028
+ return message;
10029
+ } finally {
10030
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
10031
+ }
10032
+ },
10033
+
10034
+ fromJSON(object: any): GetProductFeaturesResponse {
10035
+ return {
10036
+ status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
10037
+ features: isSet(object.features) ? ProductFeatures.fromJSON(object.features) : undefined,
10038
+ };
10039
+ },
10040
+
10041
+ toJSON(message: GetProductFeaturesResponse): unknown {
10042
+ const obj: any = {};
10043
+ if (message.status !== undefined) {
10044
+ obj.status = ResponseStatus.toJSON(message.status);
10045
+ }
10046
+ if (message.features !== undefined) {
10047
+ obj.features = ProductFeatures.toJSON(message.features);
10048
+ }
10049
+ return obj;
10050
+ },
10051
+
10052
+ create<I extends Exact<DeepPartial<GetProductFeaturesResponse>, I>>(base?: I): GetProductFeaturesResponse {
10053
+ return GetProductFeaturesResponse.fromPartial(base ?? ({} as any));
10054
+ },
10055
+ fromPartial<I extends Exact<DeepPartial<GetProductFeaturesResponse>, I>>(object: I): GetProductFeaturesResponse {
10056
+ const message = createBaseGetProductFeaturesResponse();
10057
+ message.status = (object.status !== undefined && object.status !== null)
10058
+ ? ResponseStatus.fromPartial(object.status)
10059
+ : undefined;
10060
+ message.features = (object.features !== undefined && object.features !== null)
10061
+ ? ProductFeatures.fromPartial(object.features)
10062
+ : undefined;
10063
+ return message;
10064
+ },
10065
+ };
10066
+
10067
+ export interface AccountGatewayService {
10068
+ /** Authentication */
9292
10069
  Logon(request: LogonRequest, metadata?: Metadata): Promise<LogonResponse>;
9293
10070
  /**
9294
10071
  * GetProductFeatures returns this gateway's product feature flags (e.g. beta-invite gating). The
@@ -9341,6 +10118,22 @@ export interface AccountGatewayService {
9341
10118
  AuthorizeCliLogin(request: AuthorizeCliLoginRequest, metadata?: Metadata): Promise<AuthorizeCliLoginResponse>;
9342
10119
  ListCliSessions(request: ListCliSessionsRequest, metadata?: Metadata): Promise<ListCliSessionsResponse>;
9343
10120
  RevokeCliSession(request: RevokeCliSessionRequest, metadata?: Metadata): Promise<RevokeCliSessionResponse>;
10121
+ /**
10122
+ * MCP authorization (docs/plans/mcp-oauth.md). The consent page's calls: each forwards the verified Clerk
10123
+ * subject, never a body field, and the request is bound to the first subject that opens it.
10124
+ */
10125
+ GetMcpAuthorizationRequest(
10126
+ request: GetMcpAuthorizationRequestRequest,
10127
+ metadata?: Metadata,
10128
+ ): Promise<GetMcpAuthorizationRequestResponse>;
10129
+ ApproveMcpAuthorization(
10130
+ request: ApproveMcpAuthorizationRequest,
10131
+ metadata?: Metadata,
10132
+ ): Promise<ApproveMcpAuthorizationResponse>;
10133
+ DenyMcpAuthorization(
10134
+ request: DenyMcpAuthorizationRequest,
10135
+ metadata?: Metadata,
10136
+ ): Promise<DenyMcpAuthorizationResponse>;
9344
10137
  }
9345
10138
 
9346
10139
  export const AccountGatewayServiceServiceName = "gateway.web.v1.AccountGatewayService";
@@ -9382,6 +10175,9 @@ export class AccountGatewayServiceClientImpl implements AccountGatewayService {
9382
10175
  this.AuthorizeCliLogin = this.AuthorizeCliLogin.bind(this);
9383
10176
  this.ListCliSessions = this.ListCliSessions.bind(this);
9384
10177
  this.RevokeCliSession = this.RevokeCliSession.bind(this);
10178
+ this.GetMcpAuthorizationRequest = this.GetMcpAuthorizationRequest.bind(this);
10179
+ this.ApproveMcpAuthorization = this.ApproveMcpAuthorization.bind(this);
10180
+ this.DenyMcpAuthorization = this.DenyMcpAuthorization.bind(this);
9385
10181
  }
9386
10182
  Logon(request: LogonRequest, metadata?: Metadata): Promise<LogonResponse> {
9387
10183
  const data = LogonRequest.encode(request).finish();
@@ -9580,6 +10376,33 @@ export class AccountGatewayServiceClientImpl implements AccountGatewayService {
9580
10376
  const promise = this.rpc.request(this.service, "RevokeCliSession", data, metadata);
9581
10377
  return promise.then((data) => RevokeCliSessionResponse.decode(new BinaryReader(data)));
9582
10378
  }
10379
+
10380
+ GetMcpAuthorizationRequest(
10381
+ request: GetMcpAuthorizationRequestRequest,
10382
+ metadata?: Metadata,
10383
+ ): Promise<GetMcpAuthorizationRequestResponse> {
10384
+ const data = GetMcpAuthorizationRequestRequest.encode(request).finish();
10385
+ const promise = this.rpc.request(this.service, "GetMcpAuthorizationRequest", data, metadata);
10386
+ return promise.then((data) => GetMcpAuthorizationRequestResponse.decode(new BinaryReader(data)));
10387
+ }
10388
+
10389
+ ApproveMcpAuthorization(
10390
+ request: ApproveMcpAuthorizationRequest,
10391
+ metadata?: Metadata,
10392
+ ): Promise<ApproveMcpAuthorizationResponse> {
10393
+ const data = ApproveMcpAuthorizationRequest.encode(request).finish();
10394
+ const promise = this.rpc.request(this.service, "ApproveMcpAuthorization", data, metadata);
10395
+ return promise.then((data) => ApproveMcpAuthorizationResponse.decode(new BinaryReader(data)));
10396
+ }
10397
+
10398
+ DenyMcpAuthorization(
10399
+ request: DenyMcpAuthorizationRequest,
10400
+ metadata?: Metadata,
10401
+ ): Promise<DenyMcpAuthorizationResponse> {
10402
+ const data = DenyMcpAuthorizationRequest.encode(request).finish();
10403
+ const promise = this.rpc.request(this.service, "DenyMcpAuthorization", data, metadata);
10404
+ return promise.then((data) => DenyMcpAuthorizationResponse.decode(new BinaryReader(data)));
10405
+ }
9583
10406
  }
9584
10407
 
9585
10408
  interface Rpc {