@stigmer/protos 0.0.82 → 0.0.84
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/ai/stigmer/agentic/mcpserver/v1/command_connect.d.ts +71 -11
- package/ai/stigmer/agentic/mcpserver/v1/command_connect.js +73 -13
- package/ai/stigmer/agentic/mcpserver/v1/command_connect.js.map +1 -1
- package/ai/stigmer/agentic/mcpserver/v1/command_pb.d.ts +71 -13
- package/ai/stigmer/agentic/mcpserver/v1/command_pb.js +1 -1
- package/ai/stigmer/agentic/mcpserver/v1/command_pb.js.map +1 -1
- package/ai/stigmer/agentic/mcpserver/v1/io_pb.d.ts +328 -1
- package/ai/stigmer/agentic/mcpserver/v1/io_pb.js +97 -2
- package/ai/stigmer/agentic/mcpserver/v1/io_pb.js.map +1 -1
- package/ai/stigmer/agentic/mcpserver/v1/oauth_pb.d.ts +68 -0
- package/ai/stigmer/agentic/mcpserver/v1/oauth_pb.js +6 -1
- package/ai/stigmer/agentic/mcpserver/v1/oauth_pb.js.map +1 -1
- package/ai/stigmer/agentic/mcpserver/v1/query_connect.d.ts +41 -0
- package/ai/stigmer/agentic/mcpserver/v1/query_connect.js +41 -0
- package/ai/stigmer/agentic/mcpserver/v1/query_connect.js.map +1 -1
- package/ai/stigmer/agentic/mcpserver/v1/query_pb.d.ts +40 -0
- package/ai/stigmer/agentic/mcpserver/v1/query_pb.js +2 -1
- package/ai/stigmer/agentic/mcpserver/v1/query_pb.js.map +1 -1
- package/ai/stigmer/agentic/mcpserver/v1/spec_pb.d.ts +0 -19
- package/ai/stigmer/agentic/mcpserver/v1/spec_pb.js +1 -2
- package/ai/stigmer/agentic/mcpserver/v1/spec_pb.js.map +1 -1
- package/ai/stigmer/agentic/mcpserver/v1/status_pb.d.ts +113 -1
- package/ai/stigmer/agentic/mcpserver/v1/status_pb.js +48 -1
- package/ai/stigmer/agentic/mcpserver/v1/status_pb.js.map +1 -1
- package/ai/stigmer/search/v1/io_pb.d.ts +12 -1
- package/ai/stigmer/search/v1/io_pb.js +1 -1
- package/ai/stigmer/search/v1/io_pb.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
2
|
import type { ExecutionValue } from "../../executioncontext/v1/spec_pb";
|
|
3
3
|
import type { Message } from "@bufbuild/protobuf";
|
|
4
4
|
/**
|
|
@@ -320,9 +320,336 @@ export type GetOAuthGrantStatusOutput = Message<"ai.stigmer.agentic.mcpserver.v1
|
|
|
320
320
|
* @generated from field: string auth_method = 4;
|
|
321
321
|
*/
|
|
322
322
|
authMethod: string;
|
|
323
|
+
/**
|
|
324
|
+
* Evaluated health of the OAuth connection.
|
|
325
|
+
* Provides an actionable signal beyond the binary "connected" field:
|
|
326
|
+
* the frontend can distinguish "healthy" from "expired but refreshable"
|
|
327
|
+
* from "expired and needs re-auth" from "never connected."
|
|
328
|
+
*
|
|
329
|
+
* @generated from field: ai.stigmer.agentic.mcpserver.v1.OAuthConnectionHealth connection_health = 5;
|
|
330
|
+
*/
|
|
331
|
+
connectionHealth: OAuthConnectionHealth;
|
|
323
332
|
};
|
|
324
333
|
/**
|
|
325
334
|
* Describes the message ai.stigmer.agentic.mcpserver.v1.GetOAuthGrantStatusOutput.
|
|
326
335
|
* Use `create(GetOAuthGrantStatusOutputSchema)` to create a new message.
|
|
327
336
|
*/
|
|
328
337
|
export declare const GetOAuthGrantStatusOutputSchema: GenMessage<GetOAuthGrantStatusOutput>;
|
|
338
|
+
/**
|
|
339
|
+
* DisconnectOAuthInput tears down a user's OAuth connection for a resource.
|
|
340
|
+
*
|
|
341
|
+
* @internal
|
|
342
|
+
* The handler:
|
|
343
|
+
* 1. Finds the OAuthGrant for (caller, resource_id, org)
|
|
344
|
+
* 2. Deletes the managed Environment that holds the tokens
|
|
345
|
+
* 3. Deletes the OAuthGrant record
|
|
346
|
+
*
|
|
347
|
+
* After this, the user's access token and refresh token are gone. The
|
|
348
|
+
* MCP server remains configured — only the user's personal OAuth connection
|
|
349
|
+
* is removed. Other users' connections to the same resource are unaffected.
|
|
350
|
+
*
|
|
351
|
+
* Idempotent: if no OAuthGrant exists for the (caller, resource_id, org)
|
|
352
|
+
* tuple, the handler returns disconnected=false without error. This
|
|
353
|
+
* supports race conditions (concurrent disconnect calls), retries after
|
|
354
|
+
* partial failures, and desired-state semantics ("ensure no connection").
|
|
355
|
+
*
|
|
356
|
+
* @generated from message ai.stigmer.agentic.mcpserver.v1.DisconnectOAuthInput
|
|
357
|
+
*/
|
|
358
|
+
export type DisconnectOAuthInput = Message<"ai.stigmer.agentic.mcpserver.v1.DisconnectOAuthInput"> & {
|
|
359
|
+
/**
|
|
360
|
+
* System-generated ID of the resource to disconnect OAuth for.
|
|
361
|
+
*
|
|
362
|
+
* @generated from field: string resource_id = 1;
|
|
363
|
+
*/
|
|
364
|
+
resourceId: string;
|
|
365
|
+
/**
|
|
366
|
+
* Organization context. Must match the org used during the original
|
|
367
|
+
* OAuth connect flow (part of the OAuthGrant composite key).
|
|
368
|
+
*
|
|
369
|
+
* @generated from field: string org = 2;
|
|
370
|
+
*/
|
|
371
|
+
org: string;
|
|
372
|
+
};
|
|
373
|
+
/**
|
|
374
|
+
* Describes the message ai.stigmer.agentic.mcpserver.v1.DisconnectOAuthInput.
|
|
375
|
+
* Use `create(DisconnectOAuthInputSchema)` to create a new message.
|
|
376
|
+
*/
|
|
377
|
+
export declare const DisconnectOAuthInputSchema: GenMessage<DisconnectOAuthInput>;
|
|
378
|
+
/**
|
|
379
|
+
* DisconnectOAuthOutput reports the result of a disconnect request.
|
|
380
|
+
*
|
|
381
|
+
* @generated from message ai.stigmer.agentic.mcpserver.v1.DisconnectOAuthOutput
|
|
382
|
+
*/
|
|
383
|
+
export type DisconnectOAuthOutput = Message<"ai.stigmer.agentic.mcpserver.v1.DisconnectOAuthOutput"> & {
|
|
384
|
+
/**
|
|
385
|
+
* Whether an active grant was found and deleted.
|
|
386
|
+
* true: grant and its managed environment were deleted.
|
|
387
|
+
* false: no grant existed for this resource + org + caller. The desired
|
|
388
|
+
* state (no OAuth connection) was already achieved. This is not an error.
|
|
389
|
+
*
|
|
390
|
+
* @generated from field: bool disconnected = 1;
|
|
391
|
+
*/
|
|
392
|
+
disconnected: boolean;
|
|
393
|
+
};
|
|
394
|
+
/**
|
|
395
|
+
* Describes the message ai.stigmer.agentic.mcpserver.v1.DisconnectOAuthOutput.
|
|
396
|
+
* Use `create(DisconnectOAuthOutputSchema)` to create a new message.
|
|
397
|
+
*/
|
|
398
|
+
export declare const DisconnectOAuthOutputSchema: GenMessage<DisconnectOAuthOutput>;
|
|
399
|
+
/**
|
|
400
|
+
* SetOrgOAuthAppInput creates or updates an org-level BYOA OAuth app
|
|
401
|
+
* override for a resource.
|
|
402
|
+
*
|
|
403
|
+
* @internal
|
|
404
|
+
* The handler:
|
|
405
|
+
* 1. Looks up the platform-default OAuthApp via the resource's auth block
|
|
406
|
+
* to use as a template (authorization_url, token_url, scopes, etc.)
|
|
407
|
+
* 2. Creates a new OAuthApp with the org-provided client_id + client_secret
|
|
408
|
+
* and the template's endpoint URLs and scopes
|
|
409
|
+
* 3. Creates or updates an OAuthAppOverride binding
|
|
410
|
+
* (resource_id, resource_kind, org_id) → new OAuthApp ID
|
|
411
|
+
*
|
|
412
|
+
* If an override already exists for this resource + org, the handler
|
|
413
|
+
* updates the existing OAuthApp's credentials and returns the same ID.
|
|
414
|
+
*
|
|
415
|
+
* After this, the resolution chain for this resource in this org will
|
|
416
|
+
* return the org's OAuthApp instead of the platform default.
|
|
417
|
+
*
|
|
418
|
+
* Prerequisites:
|
|
419
|
+
* - The resource must exist and have an auth block with oauth_app_ref
|
|
420
|
+
* (BYOA requires a platform template to clone from)
|
|
421
|
+
* - The caller must have can_create_oauth_app permission in the org
|
|
422
|
+
*
|
|
423
|
+
* Errors:
|
|
424
|
+
* - FAILED_PRECONDITION: Resource has no auth block or no oauth_app_ref
|
|
425
|
+
* - NOT_FOUND: Resource does not exist
|
|
426
|
+
*
|
|
427
|
+
* @generated from message ai.stigmer.agentic.mcpserver.v1.SetOrgOAuthAppInput
|
|
428
|
+
*/
|
|
429
|
+
export type SetOrgOAuthAppInput = Message<"ai.stigmer.agentic.mcpserver.v1.SetOrgOAuthAppInput"> & {
|
|
430
|
+
/**
|
|
431
|
+
* System-generated ID of the resource to set the BYOA override for.
|
|
432
|
+
*
|
|
433
|
+
* @generated from field: string resource_id = 1;
|
|
434
|
+
*/
|
|
435
|
+
resourceId: string;
|
|
436
|
+
/**
|
|
437
|
+
* Organization that will own this override.
|
|
438
|
+
*
|
|
439
|
+
* @generated from field: string org = 2;
|
|
440
|
+
*/
|
|
441
|
+
org: string;
|
|
442
|
+
/**
|
|
443
|
+
* OAuth client ID from the org's own app registration with the vendor.
|
|
444
|
+
*
|
|
445
|
+
* @generated from field: string client_id = 3;
|
|
446
|
+
*/
|
|
447
|
+
clientId: string;
|
|
448
|
+
/**
|
|
449
|
+
* OAuth client secret from the org's own app registration with the vendor.
|
|
450
|
+
* Encrypted at rest, redacted in logs.
|
|
451
|
+
*
|
|
452
|
+
* @generated from field: string client_secret = 4;
|
|
453
|
+
*/
|
|
454
|
+
clientSecret: string;
|
|
455
|
+
};
|
|
456
|
+
/**
|
|
457
|
+
* Describes the message ai.stigmer.agentic.mcpserver.v1.SetOrgOAuthAppInput.
|
|
458
|
+
* Use `create(SetOrgOAuthAppInputSchema)` to create a new message.
|
|
459
|
+
*/
|
|
460
|
+
export declare const SetOrgOAuthAppInputSchema: GenMessage<SetOrgOAuthAppInput>;
|
|
461
|
+
/**
|
|
462
|
+
* SetOrgOAuthAppOutput confirms the BYOA override was created or updated.
|
|
463
|
+
*
|
|
464
|
+
* @generated from message ai.stigmer.agentic.mcpserver.v1.SetOrgOAuthAppOutput
|
|
465
|
+
*/
|
|
466
|
+
export type SetOrgOAuthAppOutput = Message<"ai.stigmer.agentic.mcpserver.v1.SetOrgOAuthAppOutput"> & {
|
|
467
|
+
/**
|
|
468
|
+
* System-generated ID of the OAuthApp resource created (or updated)
|
|
469
|
+
* for this override. Can be used to inspect the full OAuthApp via
|
|
470
|
+
* OAuthAppQueryController.get.
|
|
471
|
+
*
|
|
472
|
+
* @generated from field: string oauth_app_id = 1;
|
|
473
|
+
*/
|
|
474
|
+
oauthAppId: string;
|
|
475
|
+
};
|
|
476
|
+
/**
|
|
477
|
+
* Describes the message ai.stigmer.agentic.mcpserver.v1.SetOrgOAuthAppOutput.
|
|
478
|
+
* Use `create(SetOrgOAuthAppOutputSchema)` to create a new message.
|
|
479
|
+
*/
|
|
480
|
+
export declare const SetOrgOAuthAppOutputSchema: GenMessage<SetOrgOAuthAppOutput>;
|
|
481
|
+
/**
|
|
482
|
+
* GetOrgOAuthAppInput queries whether an org has a BYOA override for a resource.
|
|
483
|
+
*
|
|
484
|
+
* @internal
|
|
485
|
+
* Returns override metadata without exposing secrets. The frontend uses
|
|
486
|
+
* this to show "Using org credentials" vs. "Using platform credentials"
|
|
487
|
+
* and to offer the option to remove the override.
|
|
488
|
+
*
|
|
489
|
+
* @generated from message ai.stigmer.agentic.mcpserver.v1.GetOrgOAuthAppInput
|
|
490
|
+
*/
|
|
491
|
+
export type GetOrgOAuthAppInput = Message<"ai.stigmer.agentic.mcpserver.v1.GetOrgOAuthAppInput"> & {
|
|
492
|
+
/**
|
|
493
|
+
* System-generated ID of the resource to check for an override.
|
|
494
|
+
*
|
|
495
|
+
* @generated from field: string resource_id = 1;
|
|
496
|
+
*/
|
|
497
|
+
resourceId: string;
|
|
498
|
+
/**
|
|
499
|
+
* Organization context to check.
|
|
500
|
+
*
|
|
501
|
+
* @generated from field: string org = 2;
|
|
502
|
+
*/
|
|
503
|
+
org: string;
|
|
504
|
+
};
|
|
505
|
+
/**
|
|
506
|
+
* Describes the message ai.stigmer.agentic.mcpserver.v1.GetOrgOAuthAppInput.
|
|
507
|
+
* Use `create(GetOrgOAuthAppInputSchema)` to create a new message.
|
|
508
|
+
*/
|
|
509
|
+
export declare const GetOrgOAuthAppInputSchema: GenMessage<GetOrgOAuthAppInput>;
|
|
510
|
+
/**
|
|
511
|
+
* GetOrgOAuthAppOutput returns the org's BYOA override status.
|
|
512
|
+
*
|
|
513
|
+
* @generated from message ai.stigmer.agentic.mcpserver.v1.GetOrgOAuthAppOutput
|
|
514
|
+
*/
|
|
515
|
+
export type GetOrgOAuthAppOutput = Message<"ai.stigmer.agentic.mcpserver.v1.GetOrgOAuthAppOutput"> & {
|
|
516
|
+
/**
|
|
517
|
+
* Whether an OAuthAppOverride exists for this resource + org.
|
|
518
|
+
*
|
|
519
|
+
* @generated from field: bool has_override = 1;
|
|
520
|
+
*/
|
|
521
|
+
hasOverride: boolean;
|
|
522
|
+
/**
|
|
523
|
+
* System-generated ID of the override's OAuthApp.
|
|
524
|
+
* Empty when has_override is false.
|
|
525
|
+
*
|
|
526
|
+
* @generated from field: string oauth_app_id = 2;
|
|
527
|
+
*/
|
|
528
|
+
oauthAppId: string;
|
|
529
|
+
/**
|
|
530
|
+
* Client ID from the override's OAuthApp (non-secret, safe to display).
|
|
531
|
+
* Empty when has_override is false. Useful for UI display so the admin
|
|
532
|
+
* can verify which app registration is active.
|
|
533
|
+
*
|
|
534
|
+
* @generated from field: string client_id = 3;
|
|
535
|
+
*/
|
|
536
|
+
clientId: string;
|
|
537
|
+
};
|
|
538
|
+
/**
|
|
539
|
+
* Describes the message ai.stigmer.agentic.mcpserver.v1.GetOrgOAuthAppOutput.
|
|
540
|
+
* Use `create(GetOrgOAuthAppOutputSchema)` to create a new message.
|
|
541
|
+
*/
|
|
542
|
+
export declare const GetOrgOAuthAppOutputSchema: GenMessage<GetOrgOAuthAppOutput>;
|
|
543
|
+
/**
|
|
544
|
+
* DeleteOrgOAuthAppInput removes an org-level BYOA override for a resource.
|
|
545
|
+
*
|
|
546
|
+
* @internal
|
|
547
|
+
* The handler:
|
|
548
|
+
* 1. Finds the OAuthAppOverride for (resource_id, resource_kind, org)
|
|
549
|
+
* 2. Deletes the OAuthApp resource created for this override
|
|
550
|
+
* 3. Deletes the OAuthAppOverride binding
|
|
551
|
+
*
|
|
552
|
+
* After this, the resolution chain falls back to the platform default.
|
|
553
|
+
* Existing user OAuthGrants that were issued using the org's OAuthApp
|
|
554
|
+
* will fail on next refresh — those users will need to re-authenticate
|
|
555
|
+
* using the platform default (or a new org override).
|
|
556
|
+
*
|
|
557
|
+
* Prerequisites:
|
|
558
|
+
* - An override must exist for this resource + org
|
|
559
|
+
*
|
|
560
|
+
* Errors:
|
|
561
|
+
* - NOT_FOUND: No override exists for this resource + org
|
|
562
|
+
*
|
|
563
|
+
* @generated from message ai.stigmer.agentic.mcpserver.v1.DeleteOrgOAuthAppInput
|
|
564
|
+
*/
|
|
565
|
+
export type DeleteOrgOAuthAppInput = Message<"ai.stigmer.agentic.mcpserver.v1.DeleteOrgOAuthAppInput"> & {
|
|
566
|
+
/**
|
|
567
|
+
* System-generated ID of the resource to remove the override for.
|
|
568
|
+
*
|
|
569
|
+
* @generated from field: string resource_id = 1;
|
|
570
|
+
*/
|
|
571
|
+
resourceId: string;
|
|
572
|
+
/**
|
|
573
|
+
* Organization whose override should be removed.
|
|
574
|
+
*
|
|
575
|
+
* @generated from field: string org = 2;
|
|
576
|
+
*/
|
|
577
|
+
org: string;
|
|
578
|
+
};
|
|
579
|
+
/**
|
|
580
|
+
* Describes the message ai.stigmer.agentic.mcpserver.v1.DeleteOrgOAuthAppInput.
|
|
581
|
+
* Use `create(DeleteOrgOAuthAppInputSchema)` to create a new message.
|
|
582
|
+
*/
|
|
583
|
+
export declare const DeleteOrgOAuthAppInputSchema: GenMessage<DeleteOrgOAuthAppInput>;
|
|
584
|
+
/**
|
|
585
|
+
* DeleteOrgOAuthAppOutput confirms the BYOA override was removed.
|
|
586
|
+
*
|
|
587
|
+
* @generated from message ai.stigmer.agentic.mcpserver.v1.DeleteOrgOAuthAppOutput
|
|
588
|
+
*/
|
|
589
|
+
export type DeleteOrgOAuthAppOutput = Message<"ai.stigmer.agentic.mcpserver.v1.DeleteOrgOAuthAppOutput"> & {
|
|
590
|
+
/**
|
|
591
|
+
* Whether the delete completed successfully.
|
|
592
|
+
*
|
|
593
|
+
* @generated from field: bool deleted = 1;
|
|
594
|
+
*/
|
|
595
|
+
deleted: boolean;
|
|
596
|
+
};
|
|
597
|
+
/**
|
|
598
|
+
* Describes the message ai.stigmer.agentic.mcpserver.v1.DeleteOrgOAuthAppOutput.
|
|
599
|
+
* Use `create(DeleteOrgOAuthAppOutputSchema)` to create a new message.
|
|
600
|
+
*/
|
|
601
|
+
export declare const DeleteOrgOAuthAppOutputSchema: GenMessage<DeleteOrgOAuthAppOutput>;
|
|
602
|
+
/**
|
|
603
|
+
* OAuthConnectionHealth evaluates the health of an OAuth connection by
|
|
604
|
+
* examining grant existence and token expiry metadata. Used in
|
|
605
|
+
* GetOAuthGrantStatusOutput to give the frontend an actionable signal
|
|
606
|
+
* beyond the binary "connected" boolean.
|
|
607
|
+
*
|
|
608
|
+
* The backend determines health from locally available metadata (grant
|
|
609
|
+
* record + access_token_expires_at). It cannot detect server-side token
|
|
610
|
+
* revocation without making an API call to the vendor, so HEALTHY means
|
|
611
|
+
* "valid as far as we know" — not a guarantee the token will be accepted.
|
|
612
|
+
*
|
|
613
|
+
* @generated from enum ai.stigmer.agentic.mcpserver.v1.OAuthConnectionHealth
|
|
614
|
+
*/
|
|
615
|
+
export declare enum OAuthConnectionHealth {
|
|
616
|
+
/**
|
|
617
|
+
* Default / unset. Health has not been evaluated.
|
|
618
|
+
*
|
|
619
|
+
* @generated from enum value: OAUTH_CONNECTION_HEALTH_UNSPECIFIED = 0;
|
|
620
|
+
*/
|
|
621
|
+
OAUTH_CONNECTION_HEALTH_UNSPECIFIED = 0,
|
|
622
|
+
/**
|
|
623
|
+
* The access token exists and is not expired (or does not expire).
|
|
624
|
+
*
|
|
625
|
+
* @generated from enum value: OAUTH_CONNECTION_HEALTH_HEALTHY = 1;
|
|
626
|
+
*/
|
|
627
|
+
OAUTH_CONNECTION_HEALTH_HEALTHY = 1,
|
|
628
|
+
/**
|
|
629
|
+
* The access token is expired and no refresh token is available.
|
|
630
|
+
* The user must re-authenticate via the OAuth flow.
|
|
631
|
+
*
|
|
632
|
+
* @generated from enum value: OAUTH_CONNECTION_HEALTH_TOKEN_EXPIRED = 2;
|
|
633
|
+
*/
|
|
634
|
+
OAUTH_CONNECTION_HEALTH_TOKEN_EXPIRED = 2,
|
|
635
|
+
/**
|
|
636
|
+
* The access token is expired but a refresh token is available.
|
|
637
|
+
* The backend will attempt automatic refresh at execution time.
|
|
638
|
+
* If the refresh token is itself expired, the refresh will fail and
|
|
639
|
+
* the user will need to re-authenticate.
|
|
640
|
+
*
|
|
641
|
+
* @generated from enum value: OAUTH_CONNECTION_HEALTH_TOKEN_EXPIRED_REFRESHABLE = 3;
|
|
642
|
+
*/
|
|
643
|
+
OAUTH_CONNECTION_HEALTH_TOKEN_EXPIRED_REFRESHABLE = 3,
|
|
644
|
+
/**
|
|
645
|
+
* No OAuth grant exists for this resource + org + user combination.
|
|
646
|
+
* The user has never connected or has disconnected.
|
|
647
|
+
*
|
|
648
|
+
* @generated from enum value: OAUTH_CONNECTION_HEALTH_NO_GRANT = 4;
|
|
649
|
+
*/
|
|
650
|
+
OAUTH_CONNECTION_HEALTH_NO_GRANT = 4
|
|
651
|
+
}
|
|
652
|
+
/**
|
|
653
|
+
* Describes the enum ai.stigmer.agentic.mcpserver.v1.OAuthConnectionHealth.
|
|
654
|
+
*/
|
|
655
|
+
export declare const OAuthConnectionHealthSchema: GenEnum<OAuthConnectionHealth>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @generated by protoc-gen-es v2.2.2 with parameter "target=ts"
|
|
2
2
|
// @generated from file ai/stigmer/agentic/mcpserver/v1/io.proto (package ai.stigmer.agentic.mcpserver.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
|
|
4
|
+
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
|
|
5
5
|
import { file_ai_stigmer_agentic_executioncontext_v1_spec } from "../../executioncontext/v1/spec_pb";
|
|
6
6
|
import { file_buf_validate_validate } from "../../../../../buf/validate/validate_pb";
|
|
7
7
|
/**
|
|
8
8
|
* Describes the file ai/stigmer/agentic/mcpserver/v1/io.proto.
|
|
9
9
|
*/
|
|
10
|
-
export const file_ai_stigmer_agentic_mcpserver_v1_io = /*@__PURE__*/ fileDesc("
|
|
10
|
+
export const file_ai_stigmer_agentic_mcpserver_v1_io = /*@__PURE__*/ fileDesc("CihhaS9zdGlnbWVyL2FnZW50aWMvbWNwc2VydmVyL3YxL2lvLnByb3RvEh9haS5zdGlnbWVyLmFnZW50aWMubWNwc2VydmVyLnYxIiQKC01jcFNlcnZlcklkEhUKBXZhbHVlGAEgASgJQga6SAPIAQEiggIKDENvbm5lY3RJbnB1dBIdCg1tY3Bfc2VydmVyX2lkGAEgASgJQga6SAPIAQESUgoLcnVudGltZV9lbnYYAiADKAsyPS5haS5zdGlnbWVyLmFnZW50aWMubWNwc2VydmVyLnYxLkNvbm5lY3RJbnB1dC5SdW50aW1lRW52RW50cnkSFAoDb3JnGAMgASgJQge6SARyAhABGmkKD1J1bnRpbWVFbnZFbnRyeRILCgNrZXkYASABKAkSRQoFdmFsdWUYAiABKAsyNi5haS5zdGlnbWVyLmFnZW50aWMuZXhlY3V0aW9uY29udGV4dC52MS5FeGVjdXRpb25WYWx1ZToCOAEiUAoZSW5pdGlhdGVPQXV0aENvbm5lY3RJbnB1dBIdCg1tY3Bfc2VydmVyX2lkGAEgASgJQga6SAPIAQESFAoDb3JnGAIgASgJQge6SARyAhABIm0KGkluaXRpYXRlT0F1dGhDb25uZWN0T3V0cHV0EhkKEWF1dGhvcml6YXRpb25fdXJsGAEgASgJEg0KBXN0YXRlGAIgASgJEg4KBnNjb3BlcxgDIAMoCRIVCg1wcm92aWRlcl9uYW1lGAQgASgJIncKGUNvbXBsZXRlT0F1dGhDb25uZWN0SW5wdXQSHQoNbWNwX3NlcnZlcl9pZBgBIAEoCUIGukgDyAEBEiMKEmF1dGhvcml6YXRpb25fY29kZRgCIAEoCUIHukgEcgIQARIWCgVzdGF0ZRgDIAEoCUIHukgEcgIQASJkChpDb21wbGV0ZU9BdXRoQ29ubmVjdE91dHB1dBIRCgljb25uZWN0ZWQYASABKAgSFgoOdGFyZ2V0X2Vudl92YXIYAiABKAkSGwoTdG9rZW5fbGlmZXRpbWVfaGludBgDIAEoCSJNChhHZXRPQXV0aEdyYW50U3RhdHVzSW5wdXQSGwoLcmVzb3VyY2VfaWQYASABKAlCBrpIA8gBARIUCgNvcmcYAiABKAlCB7pIBHICEAEizwEKGUdldE9BdXRoR3JhbnRTdGF0dXNPdXRwdXQSEQoJY29ubmVjdGVkGAEgASgIEh8KF2FjY2Vzc190b2tlbl9leHBpcmVzX2F0GAIgASgDEhYKDnRhcmdldF9lbnZfdmFyGAMgASgJEhMKC2F1dGhfbWV0aG9kGAQgASgJElEKEWNvbm5lY3Rpb25faGVhbHRoGAUgASgOMjYuYWkuc3RpZ21lci5hZ2VudGljLm1jcHNlcnZlci52MS5PQXV0aENvbm5lY3Rpb25IZWFsdGgiSQoURGlzY29ubmVjdE9BdXRoSW5wdXQSGwoLcmVzb3VyY2VfaWQYASABKAlCBrpIA8gBARIUCgNvcmcYAiABKAlCB7pIBHICEAEiLQoVRGlzY29ubmVjdE9BdXRoT3V0cHV0EhQKDGRpc2Nvbm5lY3RlZBgBIAEoCCKEAQoTU2V0T3JnT0F1dGhBcHBJbnB1dBIbCgtyZXNvdXJjZV9pZBgBIAEoCUIGukgDyAEBEhQKA29yZxgCIAEoCUIHukgEcgIQARIaCgljbGllbnRfaWQYAyABKAlCB7pIBHICEAESHgoNY2xpZW50X3NlY3JldBgEIAEoCUIHukgEcgIQASIsChRTZXRPcmdPQXV0aEFwcE91dHB1dBIUCgxvYXV0aF9hcHBfaWQYASABKAkiSAoTR2V0T3JnT0F1dGhBcHBJbnB1dBIbCgtyZXNvdXJjZV9pZBgBIAEoCUIGukgDyAEBEhQKA29yZxgCIAEoCUIHukgEcgIQASJVChRHZXRPcmdPQXV0aEFwcE91dHB1dBIUCgxoYXNfb3ZlcnJpZGUYASABKAgSFAoMb2F1dGhfYXBwX2lkGAIgASgJEhEKCWNsaWVudF9pZBgDIAEoCSJLChZEZWxldGVPcmdPQXV0aEFwcElucHV0EhsKC3Jlc291cmNlX2lkGAEgASgJQga6SAPIAQESFAoDb3JnGAIgASgJQge6SARyAhABIioKF0RlbGV0ZU9yZ09BdXRoQXBwT3V0cHV0Eg8KB2RlbGV0ZWQYASABKAgq7QEKFU9BdXRoQ29ubmVjdGlvbkhlYWx0aBInCiNPQVVUSF9DT05ORUNUSU9OX0hFQUxUSF9VTlNQRUNJRklFRBAAEiMKH09BVVRIX0NPTk5FQ1RJT05fSEVBTFRIX0hFQUxUSFkQARIpCiVPQVVUSF9DT05ORUNUSU9OX0hFQUxUSF9UT0tFTl9FWFBJUkVEEAISNQoxT0FVVEhfQ09OTkVDVElPTl9IRUFMVEhfVE9LRU5fRVhQSVJFRF9SRUZSRVNIQUJMRRADEiQKIE9BVVRIX0NPTk5FQ1RJT05fSEVBTFRIX05PX0dSQU5UEARiBnByb3RvMw", [file_ai_stigmer_agentic_executioncontext_v1_spec, file_buf_validate_validate]);
|
|
11
11
|
/**
|
|
12
12
|
* Describes the message ai.stigmer.agentic.mcpserver.v1.McpServerId.
|
|
13
13
|
* Use `create(McpServerIdSchema)` to create a new message.
|
|
@@ -48,4 +48,99 @@ export const GetOAuthGrantStatusInputSchema = /*@__PURE__*/ messageDesc(file_ai_
|
|
|
48
48
|
* Use `create(GetOAuthGrantStatusOutputSchema)` to create a new message.
|
|
49
49
|
*/
|
|
50
50
|
export const GetOAuthGrantStatusOutputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_mcpserver_v1_io, 7);
|
|
51
|
+
/**
|
|
52
|
+
* Describes the message ai.stigmer.agentic.mcpserver.v1.DisconnectOAuthInput.
|
|
53
|
+
* Use `create(DisconnectOAuthInputSchema)` to create a new message.
|
|
54
|
+
*/
|
|
55
|
+
export const DisconnectOAuthInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_mcpserver_v1_io, 8);
|
|
56
|
+
/**
|
|
57
|
+
* Describes the message ai.stigmer.agentic.mcpserver.v1.DisconnectOAuthOutput.
|
|
58
|
+
* Use `create(DisconnectOAuthOutputSchema)` to create a new message.
|
|
59
|
+
*/
|
|
60
|
+
export const DisconnectOAuthOutputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_mcpserver_v1_io, 9);
|
|
61
|
+
/**
|
|
62
|
+
* Describes the message ai.stigmer.agentic.mcpserver.v1.SetOrgOAuthAppInput.
|
|
63
|
+
* Use `create(SetOrgOAuthAppInputSchema)` to create a new message.
|
|
64
|
+
*/
|
|
65
|
+
export const SetOrgOAuthAppInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_mcpserver_v1_io, 10);
|
|
66
|
+
/**
|
|
67
|
+
* Describes the message ai.stigmer.agentic.mcpserver.v1.SetOrgOAuthAppOutput.
|
|
68
|
+
* Use `create(SetOrgOAuthAppOutputSchema)` to create a new message.
|
|
69
|
+
*/
|
|
70
|
+
export const SetOrgOAuthAppOutputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_mcpserver_v1_io, 11);
|
|
71
|
+
/**
|
|
72
|
+
* Describes the message ai.stigmer.agentic.mcpserver.v1.GetOrgOAuthAppInput.
|
|
73
|
+
* Use `create(GetOrgOAuthAppInputSchema)` to create a new message.
|
|
74
|
+
*/
|
|
75
|
+
export const GetOrgOAuthAppInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_mcpserver_v1_io, 12);
|
|
76
|
+
/**
|
|
77
|
+
* Describes the message ai.stigmer.agentic.mcpserver.v1.GetOrgOAuthAppOutput.
|
|
78
|
+
* Use `create(GetOrgOAuthAppOutputSchema)` to create a new message.
|
|
79
|
+
*/
|
|
80
|
+
export const GetOrgOAuthAppOutputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_mcpserver_v1_io, 13);
|
|
81
|
+
/**
|
|
82
|
+
* Describes the message ai.stigmer.agentic.mcpserver.v1.DeleteOrgOAuthAppInput.
|
|
83
|
+
* Use `create(DeleteOrgOAuthAppInputSchema)` to create a new message.
|
|
84
|
+
*/
|
|
85
|
+
export const DeleteOrgOAuthAppInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_mcpserver_v1_io, 14);
|
|
86
|
+
/**
|
|
87
|
+
* Describes the message ai.stigmer.agentic.mcpserver.v1.DeleteOrgOAuthAppOutput.
|
|
88
|
+
* Use `create(DeleteOrgOAuthAppOutputSchema)` to create a new message.
|
|
89
|
+
*/
|
|
90
|
+
export const DeleteOrgOAuthAppOutputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_mcpserver_v1_io, 15);
|
|
91
|
+
/**
|
|
92
|
+
* OAuthConnectionHealth evaluates the health of an OAuth connection by
|
|
93
|
+
* examining grant existence and token expiry metadata. Used in
|
|
94
|
+
* GetOAuthGrantStatusOutput to give the frontend an actionable signal
|
|
95
|
+
* beyond the binary "connected" boolean.
|
|
96
|
+
*
|
|
97
|
+
* The backend determines health from locally available metadata (grant
|
|
98
|
+
* record + access_token_expires_at). It cannot detect server-side token
|
|
99
|
+
* revocation without making an API call to the vendor, so HEALTHY means
|
|
100
|
+
* "valid as far as we know" — not a guarantee the token will be accepted.
|
|
101
|
+
*
|
|
102
|
+
* @generated from enum ai.stigmer.agentic.mcpserver.v1.OAuthConnectionHealth
|
|
103
|
+
*/
|
|
104
|
+
export var OAuthConnectionHealth;
|
|
105
|
+
(function (OAuthConnectionHealth) {
|
|
106
|
+
/**
|
|
107
|
+
* Default / unset. Health has not been evaluated.
|
|
108
|
+
*
|
|
109
|
+
* @generated from enum value: OAUTH_CONNECTION_HEALTH_UNSPECIFIED = 0;
|
|
110
|
+
*/
|
|
111
|
+
OAuthConnectionHealth[OAuthConnectionHealth["OAUTH_CONNECTION_HEALTH_UNSPECIFIED"] = 0] = "OAUTH_CONNECTION_HEALTH_UNSPECIFIED";
|
|
112
|
+
/**
|
|
113
|
+
* The access token exists and is not expired (or does not expire).
|
|
114
|
+
*
|
|
115
|
+
* @generated from enum value: OAUTH_CONNECTION_HEALTH_HEALTHY = 1;
|
|
116
|
+
*/
|
|
117
|
+
OAuthConnectionHealth[OAuthConnectionHealth["OAUTH_CONNECTION_HEALTH_HEALTHY"] = 1] = "OAUTH_CONNECTION_HEALTH_HEALTHY";
|
|
118
|
+
/**
|
|
119
|
+
* The access token is expired and no refresh token is available.
|
|
120
|
+
* The user must re-authenticate via the OAuth flow.
|
|
121
|
+
*
|
|
122
|
+
* @generated from enum value: OAUTH_CONNECTION_HEALTH_TOKEN_EXPIRED = 2;
|
|
123
|
+
*/
|
|
124
|
+
OAuthConnectionHealth[OAuthConnectionHealth["OAUTH_CONNECTION_HEALTH_TOKEN_EXPIRED"] = 2] = "OAUTH_CONNECTION_HEALTH_TOKEN_EXPIRED";
|
|
125
|
+
/**
|
|
126
|
+
* The access token is expired but a refresh token is available.
|
|
127
|
+
* The backend will attempt automatic refresh at execution time.
|
|
128
|
+
* If the refresh token is itself expired, the refresh will fail and
|
|
129
|
+
* the user will need to re-authenticate.
|
|
130
|
+
*
|
|
131
|
+
* @generated from enum value: OAUTH_CONNECTION_HEALTH_TOKEN_EXPIRED_REFRESHABLE = 3;
|
|
132
|
+
*/
|
|
133
|
+
OAuthConnectionHealth[OAuthConnectionHealth["OAUTH_CONNECTION_HEALTH_TOKEN_EXPIRED_REFRESHABLE"] = 3] = "OAUTH_CONNECTION_HEALTH_TOKEN_EXPIRED_REFRESHABLE";
|
|
134
|
+
/**
|
|
135
|
+
* No OAuth grant exists for this resource + org + user combination.
|
|
136
|
+
* The user has never connected or has disconnected.
|
|
137
|
+
*
|
|
138
|
+
* @generated from enum value: OAUTH_CONNECTION_HEALTH_NO_GRANT = 4;
|
|
139
|
+
*/
|
|
140
|
+
OAuthConnectionHealth[OAuthConnectionHealth["OAUTH_CONNECTION_HEALTH_NO_GRANT"] = 4] = "OAUTH_CONNECTION_HEALTH_NO_GRANT";
|
|
141
|
+
})(OAuthConnectionHealth || (OAuthConnectionHealth = {}));
|
|
142
|
+
/**
|
|
143
|
+
* Describes the enum ai.stigmer.agentic.mcpserver.v1.OAuthConnectionHealth.
|
|
144
|
+
*/
|
|
145
|
+
export const OAuthConnectionHealthSchema = /*@__PURE__*/ enumDesc(file_ai_stigmer_agentic_mcpserver_v1_io, 0);
|
|
51
146
|
//# sourceMappingURL=io_pb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"io_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/mcpserver/v1/io_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,yHAAyH;AACzH,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"io_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/mcpserver/v1/io_pb.ts"],"names":[],"mappings":"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"}
|
|
@@ -122,3 +122,71 @@ export type OAuthGrant = Message<"ai.stigmer.agentic.mcpserver.v1.OAuthGrant"> &
|
|
|
122
122
|
* Use `create(OAuthGrantSchema)` to create a new message.
|
|
123
123
|
*/
|
|
124
124
|
export declare const OAuthGrantSchema: GenMessage<OAuthGrant>;
|
|
125
|
+
/**
|
|
126
|
+
* OAuthAppOverride binds a specific OAuthApp to an API resource within an
|
|
127
|
+
* organization, overriding the platform-default OAuthApp for that resource.
|
|
128
|
+
*
|
|
129
|
+
* @internal
|
|
130
|
+
* Infrastructure-only. Not a public API resource — no kind, no apiVersion,
|
|
131
|
+
* no CRUD RPCs. Stored in the backend's database, keyed by the composite
|
|
132
|
+
* of (resource_id, resource_kind, org_id).
|
|
133
|
+
*
|
|
134
|
+
* This is the "Bring Your Own App" (BYOA) binding: it records that org Z
|
|
135
|
+
* wants resource Y to use OAuthApp X instead of the platform default
|
|
136
|
+
* referenced by McpServerAuth.oauth_app_ref.
|
|
137
|
+
*
|
|
138
|
+
* Separation of concerns:
|
|
139
|
+
* - OAuthApp (credential resource): holds client_id, client_secret, and
|
|
140
|
+
* vendor endpoint URLs. Reusable — may be referenced by multiple overrides
|
|
141
|
+
* or MCP servers.
|
|
142
|
+
* - OAuthAppOverride (binding document): maps (resource, org) to an OAuthApp.
|
|
143
|
+
* Analogous to OAuthGrant, which maps (user, resource, org) to token metadata.
|
|
144
|
+
*
|
|
145
|
+
* Resolution chain (evaluated at connect time and token refresh):
|
|
146
|
+
* 1. OAuthAppOverride for (resource_id, resource_kind, org_id) — org override
|
|
147
|
+
* 2. McpServerAuth.oauth_app_ref on the resource spec — platform default
|
|
148
|
+
* 3. None — no OAuth app available (manual token or DCR only)
|
|
149
|
+
*
|
|
150
|
+
* The override is resource-agnostic: currently used for MCP servers, but the
|
|
151
|
+
* composite key supports any API resource kind that needs BYOA (e.g., workflows).
|
|
152
|
+
*
|
|
153
|
+
* @generated from message ai.stigmer.agentic.mcpserver.v1.OAuthAppOverride
|
|
154
|
+
*/
|
|
155
|
+
export type OAuthAppOverride = Message<"ai.stigmer.agentic.mcpserver.v1.OAuthAppOverride"> & {
|
|
156
|
+
/**
|
|
157
|
+
* System-generated ID (metadata.id) of the API resource this override
|
|
158
|
+
* applies to. Part of the composite key: (resource_id, resource_kind, org_id).
|
|
159
|
+
*
|
|
160
|
+
* @generated from field: string resource_id = 1;
|
|
161
|
+
*/
|
|
162
|
+
resourceId: string;
|
|
163
|
+
/**
|
|
164
|
+
* Kind of the API resource identified by resource_id (e.g., "mcp_server").
|
|
165
|
+
* Part of the composite key. Enables the same table to serve overrides
|
|
166
|
+
* for multiple resource types without collision.
|
|
167
|
+
*
|
|
168
|
+
* @generated from field: string resource_kind = 2;
|
|
169
|
+
*/
|
|
170
|
+
resourceKind: string;
|
|
171
|
+
/**
|
|
172
|
+
* Organization that owns this override. Part of the composite key.
|
|
173
|
+
* Different orgs can maintain independent BYOA overrides for the same
|
|
174
|
+
* shared (platform-scoped) resource.
|
|
175
|
+
*
|
|
176
|
+
* @generated from field: string org_id = 3;
|
|
177
|
+
*/
|
|
178
|
+
orgId: string;
|
|
179
|
+
/**
|
|
180
|
+
* ID of the OAuthApp resource that holds the org's client credentials.
|
|
181
|
+
* Created by the setOrgOAuthApp handler, which clones the platform
|
|
182
|
+
* OAuthApp template and applies the org-provided client_id + client_secret.
|
|
183
|
+
*
|
|
184
|
+
* @generated from field: string oauth_app_id = 4;
|
|
185
|
+
*/
|
|
186
|
+
oauthAppId: string;
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* Describes the message ai.stigmer.agentic.mcpserver.v1.OAuthAppOverride.
|
|
190
|
+
* Use `create(OAuthAppOverrideSchema)` to create a new message.
|
|
191
|
+
*/
|
|
192
|
+
export declare const OAuthAppOverrideSchema: GenMessage<OAuthAppOverride>;
|
|
@@ -5,10 +5,15 @@ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
|
|
|
5
5
|
/**
|
|
6
6
|
* Describes the file ai/stigmer/agentic/mcpserver/v1/oauth.proto.
|
|
7
7
|
*/
|
|
8
|
-
export const file_ai_stigmer_agentic_mcpserver_v1_oauth = /*@__PURE__*/ fileDesc("
|
|
8
|
+
export const file_ai_stigmer_agentic_mcpserver_v1_oauth = /*@__PURE__*/ fileDesc("CithaS9zdGlnbWVyL2FnZW50aWMvbWNwc2VydmVyL3YxL29hdXRoLnByb3RvEh9haS5zdGlnbWVyLmFnZW50aWMubWNwc2VydmVyLnYxIpsCCgpPQXV0aEdyYW50EhsKE2lkZW50aXR5X2FjY291bnRfaWQYASABKAkSEwoLcmVzb3VyY2VfaWQYAiABKAkSHwoXYWNjZXNzX3Rva2VuX2V4cGlyZXNfYXQYAyABKAMSEQoJY2xpZW50X2lkGAQgASgJEhMKC2F1dGhfbWV0aG9kGAUgASgJEhYKDnRva2VuX2VuZHBvaW50GAYgASgJEhwKFGFjY2Vzc190b2tlbl9lbnZfdmFyGAcgASgJEh0KFXJlZnJlc2hfdG9rZW5fZW52X3ZhchgIIAEoCRIWCg5lbnZpcm9ubWVudF9pZBgJIAEoCRIVCg1yZXNvdXJjZV9raW5kGAogASgJEg4KBm9yZ19pZBgLIAEoCSJkChBPQXV0aEFwcE92ZXJyaWRlEhMKC3Jlc291cmNlX2lkGAEgASgJEhUKDXJlc291cmNlX2tpbmQYAiABKAkSDgoGb3JnX2lkGAMgASgJEhQKDG9hdXRoX2FwcF9pZBgEIAEoCWIGcHJvdG8z");
|
|
9
9
|
/**
|
|
10
10
|
* Describes the message ai.stigmer.agentic.mcpserver.v1.OAuthGrant.
|
|
11
11
|
* Use `create(OAuthGrantSchema)` to create a new message.
|
|
12
12
|
*/
|
|
13
13
|
export const OAuthGrantSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_mcpserver_v1_oauth, 0);
|
|
14
|
+
/**
|
|
15
|
+
* Describes the message ai.stigmer.agentic.mcpserver.v1.OAuthAppOverride.
|
|
16
|
+
* Use `create(OAuthAppOverrideSchema)` to create a new message.
|
|
17
|
+
*/
|
|
18
|
+
export const OAuthAppOverrideSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_mcpserver_v1_oauth, 1);
|
|
14
19
|
//# sourceMappingURL=oauth_pb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/mcpserver/v1/oauth_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,4HAA4H;AAC5H,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAGrE;;GAEG;AACH,MAAM,CAAC,MAAM,0CAA0C,GAAY,aAAa,CAC9E,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"oauth_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/mcpserver/v1/oauth_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,4HAA4H;AAC5H,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAGrE;;GAEG;AACH,MAAM,CAAC,MAAM,0CAA0C,GAAY,aAAa,CAC9E,QAAQ,CAAC,0nBAA0nB,CAAC,CAAC;AA8HvoB;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAA2B,aAAa,CACnE,WAAW,CAAC,0CAA0C,EAAE,CAAC,CAAC,CAAC;AAqE7D;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAiC,aAAa,CAC/E,WAAW,CAAC,0CAA0C,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -48,5 +48,46 @@ export declare const McpServerQueryController: {
|
|
|
48
48
|
readonly O: any;
|
|
49
49
|
readonly kind: any;
|
|
50
50
|
};
|
|
51
|
+
/**
|
|
52
|
+
* Check whether the authenticated user has an active OAuth grant for
|
|
53
|
+
* an MCP server in the specified org.
|
|
54
|
+
*
|
|
55
|
+
* Returns grant metadata (connected status, token expiry, auth method)
|
|
56
|
+
* without exposing any secret token values. The frontend uses this to
|
|
57
|
+
* render the correct OAuth state in the MCP server detail page and
|
|
58
|
+
* session composer.
|
|
59
|
+
*
|
|
60
|
+
* @internal
|
|
61
|
+
* Authorization: Requires can_view permission on the mcp_server resource.
|
|
62
|
+
* The resource_id field contains the MCP server's system-generated ID.
|
|
63
|
+
*
|
|
64
|
+
* @generated from rpc ai.stigmer.agentic.mcpserver.v1.McpServerQueryController.getOAuthGrantStatus
|
|
65
|
+
*/
|
|
66
|
+
readonly getOAuthGrantStatus: {
|
|
67
|
+
readonly name: "getOAuthGrantStatus";
|
|
68
|
+
readonly I: any;
|
|
69
|
+
readonly O: any;
|
|
70
|
+
readonly kind: any;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Query whether an org has a BYOA override for a resource.
|
|
74
|
+
*
|
|
75
|
+
* Returns override metadata (existence, OAuthApp ID, client_id) without
|
|
76
|
+
* exposing secrets. The frontend uses this to show which credential
|
|
77
|
+
* source is active and to offer override management options to org admins.
|
|
78
|
+
*
|
|
79
|
+
* @internal
|
|
80
|
+
* Authorization: Requires can_view permission on the mcp_server resource.
|
|
81
|
+
* Any user who can view the MCP server can check whether their org has
|
|
82
|
+
* an override — no secrets are exposed.
|
|
83
|
+
*
|
|
84
|
+
* @generated from rpc ai.stigmer.agentic.mcpserver.v1.McpServerQueryController.getOrgOAuthApp
|
|
85
|
+
*/
|
|
86
|
+
readonly getOrgOAuthApp: {
|
|
87
|
+
readonly name: "getOrgOAuthApp";
|
|
88
|
+
readonly I: any;
|
|
89
|
+
readonly O: any;
|
|
90
|
+
readonly kind: any;
|
|
91
|
+
};
|
|
51
92
|
};
|
|
52
93
|
};
|
|
@@ -53,6 +53,47 @@ export const McpServerQueryController = {
|
|
|
53
53
|
O: McpServer,
|
|
54
54
|
kind: MethodKind.Unary,
|
|
55
55
|
},
|
|
56
|
+
/**
|
|
57
|
+
* Check whether the authenticated user has an active OAuth grant for
|
|
58
|
+
* an MCP server in the specified org.
|
|
59
|
+
*
|
|
60
|
+
* Returns grant metadata (connected status, token expiry, auth method)
|
|
61
|
+
* without exposing any secret token values. The frontend uses this to
|
|
62
|
+
* render the correct OAuth state in the MCP server detail page and
|
|
63
|
+
* session composer.
|
|
64
|
+
*
|
|
65
|
+
* @internal
|
|
66
|
+
* Authorization: Requires can_view permission on the mcp_server resource.
|
|
67
|
+
* The resource_id field contains the MCP server's system-generated ID.
|
|
68
|
+
*
|
|
69
|
+
* @generated from rpc ai.stigmer.agentic.mcpserver.v1.McpServerQueryController.getOAuthGrantStatus
|
|
70
|
+
*/
|
|
71
|
+
getOAuthGrantStatus: {
|
|
72
|
+
name: "getOAuthGrantStatus",
|
|
73
|
+
I: GetOAuthGrantStatusInput,
|
|
74
|
+
O: GetOAuthGrantStatusOutput,
|
|
75
|
+
kind: MethodKind.Unary,
|
|
76
|
+
},
|
|
77
|
+
/**
|
|
78
|
+
* Query whether an org has a BYOA override for a resource.
|
|
79
|
+
*
|
|
80
|
+
* Returns override metadata (existence, OAuthApp ID, client_id) without
|
|
81
|
+
* exposing secrets. The frontend uses this to show which credential
|
|
82
|
+
* source is active and to offer override management options to org admins.
|
|
83
|
+
*
|
|
84
|
+
* @internal
|
|
85
|
+
* Authorization: Requires can_view permission on the mcp_server resource.
|
|
86
|
+
* Any user who can view the MCP server can check whether their org has
|
|
87
|
+
* an override — no secrets are exposed.
|
|
88
|
+
*
|
|
89
|
+
* @generated from rpc ai.stigmer.agentic.mcpserver.v1.McpServerQueryController.getOrgOAuthApp
|
|
90
|
+
*/
|
|
91
|
+
getOrgOAuthApp: {
|
|
92
|
+
name: "getOrgOAuthApp",
|
|
93
|
+
I: GetOrgOAuthAppInput,
|
|
94
|
+
O: GetOrgOAuthAppOutput,
|
|
95
|
+
kind: MethodKind.Unary,
|
|
96
|
+
},
|
|
56
97
|
}
|
|
57
98
|
};
|
|
58
99
|
//# sourceMappingURL=query_connect.js.map
|