@stigmer/protos 0.0.76 → 0.0.78
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 +60 -0
- package/ai/stigmer/agentic/mcpserver/v1/command_connect.js +60 -0
- package/ai/stigmer/agentic/mcpserver/v1/command_connect.js.map +1 -1
- package/ai/stigmer/agentic/mcpserver/v1/command_pb.d.ts +59 -1
- 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 +156 -0
- package/ai/stigmer/agentic/mcpserver/v1/io_pb.js +21 -1
- package/ai/stigmer/agentic/mcpserver/v1/io_pb.js.map +1 -1
- package/ai/stigmer/agentic/mcpserver/v1/oauth_pb.d.ts +102 -0
- package/ai/stigmer/agentic/mcpserver/v1/oauth_pb.js +14 -0
- package/ai/stigmer/agentic/mcpserver/v1/oauth_pb.js.map +1 -0
- package/ai/stigmer/agentic/mcpserver/v1/spec_pb.d.ts +87 -51
- package/ai/stigmer/agentic/mcpserver/v1/spec_pb.js +5 -5
- package/ai/stigmer/agentic/mcpserver/v1/spec_pb.js.map +1 -1
- package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.d.ts +6 -0
- package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js +7 -1
- package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js.map +1 -1
- package/ai/stigmer/iam/oauthapp/v1/api_pb.d.ts +82 -0
- package/ai/stigmer/iam/oauthapp/v1/api_pb.js +18 -0
- package/ai/stigmer/iam/oauthapp/v1/api_pb.js.map +1 -0
- package/ai/stigmer/iam/oauthapp/v1/command_connect.d.ts +82 -0
- package/ai/stigmer/iam/oauthapp/v1/command_connect.js +88 -0
- package/ai/stigmer/iam/oauthapp/v1/command_connect.js.map +1 -0
- package/ai/stigmer/iam/oauthapp/v1/command_pb.d.ts +82 -0
- package/ai/stigmer/iam/oauthapp/v1/command_pb.js +24 -0
- package/ai/stigmer/iam/oauthapp/v1/command_pb.js.map +1 -0
- package/ai/stigmer/iam/oauthapp/v1/io_pb.d.ts +62 -0
- package/ai/stigmer/iam/oauthapp/v1/io_pb.js +26 -0
- package/ai/stigmer/iam/oauthapp/v1/io_pb.js.map +1 -0
- package/ai/stigmer/iam/oauthapp/v1/query_connect.d.ts +59 -0
- package/ai/stigmer/iam/oauthapp/v1/query_connect.js +65 -0
- package/ai/stigmer/iam/oauthapp/v1/query_connect.js.map +1 -0
- package/ai/stigmer/iam/oauthapp/v1/query_pb.d.ts +61 -0
- package/ai/stigmer/iam/oauthapp/v1/query_pb.js +20 -0
- package/ai/stigmer/iam/oauthapp/v1/query_pb.js.map +1 -0
- package/ai/stigmer/iam/oauthapp/v1/spec_pb.d.ts +108 -0
- package/ai/stigmer/iam/oauthapp/v1/spec_pb.js +15 -0
- package/ai/stigmer/iam/oauthapp/v1/spec_pb.js.map +1 -0
- package/ai/stigmer/iam/v1/enum_pb.d.ts +4 -0
- package/ai/stigmer/iam/v1/enum_pb.js +5 -1
- package/ai/stigmer/iam/v1/enum_pb.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
2
|
import type { EnvironmentSpec } from "../../environment/v1/spec_pb";
|
|
3
|
-
import type {
|
|
3
|
+
import type { ApiResourceReference } from "../../../commons/apiresource/io_pb";
|
|
4
4
|
import type { Message } from "@bufbuild/protobuf";
|
|
5
5
|
/**
|
|
6
6
|
* Describes the file ai/stigmer/agentic/mcpserver/v1/spec.proto.
|
|
@@ -88,14 +88,6 @@ export type McpServerSpec = Message<"ai.stigmer.agentic.mcpserver.v1.McpServerSp
|
|
|
88
88
|
* @generated from field: ai.stigmer.agentic.environment.v1.EnvironmentSpec env_spec = 8;
|
|
89
89
|
*/
|
|
90
90
|
envSpec?: EnvironmentSpec;
|
|
91
|
-
/**
|
|
92
|
-
* Source/provenance of this MCP server definition.
|
|
93
|
-
* Populated by automated sync workflows (e.g. MCP Registry sync).
|
|
94
|
-
* Empty for hand-authored definitions like the system mcp-server-stigmer.
|
|
95
|
-
*
|
|
96
|
-
* @generated from field: ai.stigmer.agentic.mcpserver.v1.McpServerSource source = 10;
|
|
97
|
-
*/
|
|
98
|
-
source?: McpServerSource;
|
|
99
91
|
/**
|
|
100
92
|
* Manual tool approval overrides set by the MCP server owner.
|
|
101
93
|
*
|
|
@@ -117,6 +109,35 @@ export type McpServerSpec = Message<"ai.stigmer.agentic.mcpserver.v1.McpServerSp
|
|
|
117
109
|
* @generated from field: repeated ai.stigmer.agentic.mcpserver.v1.ToolApprovalPolicy pinned_tool_approvals = 11;
|
|
118
110
|
*/
|
|
119
111
|
pinnedToolApprovals: ToolApprovalPolicy[];
|
|
112
|
+
/**
|
|
113
|
+
* URL of the upstream source repository for this MCP server.
|
|
114
|
+
* Shown in the marketplace so users can inspect the implementation
|
|
115
|
+
* for trust and transparency.
|
|
116
|
+
* Example: "https://github.com/modelcontextprotocol/servers"
|
|
117
|
+
*
|
|
118
|
+
* @generated from field: string repository_url = 12;
|
|
119
|
+
*/
|
|
120
|
+
repositoryUrl: string;
|
|
121
|
+
/**
|
|
122
|
+
* GitHub star count at the time of curation.
|
|
123
|
+
* Used as a popularity signal in marketplace display.
|
|
124
|
+
* 0 if unknown or non-GitHub repository.
|
|
125
|
+
*
|
|
126
|
+
* @generated from field: int32 github_stars = 13;
|
|
127
|
+
*/
|
|
128
|
+
githubStars: number;
|
|
129
|
+
/**
|
|
130
|
+
* OAuth authentication configuration for automated credential acquisition.
|
|
131
|
+
* When set, the MCP server's Connect page offers an OAuth flow instead of
|
|
132
|
+
* (or in addition to) manual credential entry.
|
|
133
|
+
*
|
|
134
|
+
* The acquired access token is stored in the user's personal environment
|
|
135
|
+
* as the env var named by auth.target_env_var. That env var must also be
|
|
136
|
+
* declared in env_spec.data so the execution pipeline knows about it.
|
|
137
|
+
*
|
|
138
|
+
* @generated from field: ai.stigmer.agentic.mcpserver.v1.McpServerAuth auth = 14;
|
|
139
|
+
*/
|
|
140
|
+
auth?: McpServerAuth;
|
|
120
141
|
};
|
|
121
142
|
/**
|
|
122
143
|
* Describes the message ai.stigmer.agentic.mcpserver.v1.McpServerSpec.
|
|
@@ -311,65 +332,80 @@ export type ToolApprovalPolicy = Message<"ai.stigmer.agentic.mcpserver.v1.ToolAp
|
|
|
311
332
|
*/
|
|
312
333
|
export declare const ToolApprovalPolicySchema: GenMessage<ToolApprovalPolicy>;
|
|
313
334
|
/**
|
|
314
|
-
*
|
|
315
|
-
*
|
|
335
|
+
* McpServerAuth configures automated credential acquisition via OAuth.
|
|
336
|
+
*
|
|
337
|
+
* @internal
|
|
338
|
+
* Two authentication modes are determined by the presence of oauth_app_ref:
|
|
339
|
+
*
|
|
340
|
+
* - When oauth_app_ref is empty: the MCP server implements the MCP
|
|
341
|
+
* Authorization specification (RFC 8414 discovery, RFC 7591 Dynamic Client
|
|
342
|
+
* Registration, OAuth 2.1 with PKCE). Stigmer auto-discovers everything
|
|
343
|
+
* from the server URL. No OAuthApp resource is needed — credentials are
|
|
344
|
+
* obtained automatically via DCR.
|
|
345
|
+
*
|
|
346
|
+
* - When oauth_app_ref is set: the MCP server requires pre-registered OAuth
|
|
347
|
+
* app credentials from a specific vendor (Slack, Salesforce, Figma, etc.).
|
|
348
|
+
* The referenced OAuthApp holds the client_id, client_secret, and endpoint
|
|
349
|
+
* URLs needed for the authorization code flow.
|
|
350
|
+
*
|
|
351
|
+
* In both cases, the acquired access token is stored in the user's personal
|
|
352
|
+
* environment as target_env_var. A refresh token (if issued by the vendor) is
|
|
353
|
+
* stored alongside as {target_env_var}_REFRESH_TOKEN by convention.
|
|
316
354
|
*
|
|
317
|
-
*
|
|
318
|
-
* -
|
|
319
|
-
*
|
|
320
|
-
* -
|
|
321
|
-
* the
|
|
322
|
-
* - Deduplication: source.registry_name is the natural key for upsert logic.
|
|
355
|
+
* Token lifecycle:
|
|
356
|
+
* - Pre-flight check before execution: if the access token is expired,
|
|
357
|
+
* the backend uses the refresh token to obtain a new one automatically.
|
|
358
|
+
* - If the refresh token is also expired: execution fails with a clear
|
|
359
|
+
* error, and the user re-authenticates from the MCP server Connect page.
|
|
323
360
|
*
|
|
324
|
-
* @generated from message ai.stigmer.agentic.mcpserver.v1.
|
|
361
|
+
* @generated from message ai.stigmer.agentic.mcpserver.v1.McpServerAuth
|
|
325
362
|
*/
|
|
326
|
-
export type
|
|
363
|
+
export type McpServerAuth = Message<"ai.stigmer.agentic.mcpserver.v1.McpServerAuth"> & {
|
|
327
364
|
/**
|
|
328
|
-
*
|
|
329
|
-
* Example: "registry.modelcontextprotocol.io"
|
|
365
|
+
* Reference to an OAuthApp for vendor-specific OAuth.
|
|
330
366
|
*
|
|
331
|
-
*
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
* Name/identifier in the source registry (exact, unmodified).
|
|
336
|
-
* This is the canonical key used for dedup and update matching.
|
|
337
|
-
* Example: "ai.exa/exa"
|
|
367
|
+
* When empty: the server supports the MCP Authorization spec (DCR + PKCE).
|
|
368
|
+
* Stigmer discovers the authorization server metadata, registers a client
|
|
369
|
+
* via DCR, and performs the authorization code flow with PKCE — all
|
|
370
|
+
* automatically at connect time.
|
|
338
371
|
*
|
|
339
|
-
*
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
* Version from the source registry at the time of last sync.
|
|
344
|
-
* Example: "3.1.3"
|
|
372
|
+
* When set: Stigmer uses the referenced OAuthApp's client credentials to
|
|
373
|
+
* perform the OAuth authorization code flow with the vendor on behalf of
|
|
374
|
+
* the user. The OAuthApp must belong to the same organization as the
|
|
375
|
+
* McpServer (or be accessible via cross-org reference).
|
|
345
376
|
*
|
|
346
|
-
* @generated from field:
|
|
377
|
+
* @generated from field: ai.stigmer.commons.apiresource.ApiResourceReference oauth_app_ref = 1;
|
|
347
378
|
*/
|
|
348
|
-
|
|
379
|
+
oauthAppRef?: ApiResourceReference;
|
|
349
380
|
/**
|
|
350
|
-
*
|
|
351
|
-
*
|
|
352
|
-
*
|
|
381
|
+
* The env var in env_spec.data where the acquired access token is stored.
|
|
382
|
+
* Must correspond to an entry in env_spec.data so the execution pipeline
|
|
383
|
+
* resolves it. The refresh token is stored as {target_env_var}_REFRESH_TOKEN
|
|
384
|
+
* by convention. Both are written to the user's personal environment.
|
|
353
385
|
*
|
|
354
|
-
* @generated from field: string
|
|
386
|
+
* @generated from field: string target_env_var = 2;
|
|
355
387
|
*/
|
|
356
|
-
|
|
388
|
+
targetEnvVar: string;
|
|
357
389
|
/**
|
|
358
|
-
*
|
|
390
|
+
* Informational hint about expected token lifetime for UI display.
|
|
391
|
+
* Helps users understand when re-authentication may be needed.
|
|
392
|
+
* Empty means unknown. Examples: "1h", "2h", "90d", "never".
|
|
359
393
|
*
|
|
360
|
-
* @generated from field:
|
|
394
|
+
* @generated from field: string token_lifetime_hint = 3;
|
|
361
395
|
*/
|
|
362
|
-
|
|
396
|
+
tokenLifetimeHint: string;
|
|
363
397
|
/**
|
|
364
|
-
*
|
|
365
|
-
*
|
|
398
|
+
* Optional scope hints for UI display before the OAuth flow starts.
|
|
399
|
+
* For DCR servers: shown to the user since actual scopes are discovered
|
|
400
|
+
* at connect time during authorization server metadata retrieval.
|
|
401
|
+
* For vendor OAuth: informational (scopes are defined on the OAuthApp).
|
|
366
402
|
*
|
|
367
|
-
* @generated from field:
|
|
403
|
+
* @generated from field: repeated string scope_hints = 4;
|
|
368
404
|
*/
|
|
369
|
-
|
|
405
|
+
scopeHints: string[];
|
|
370
406
|
};
|
|
371
407
|
/**
|
|
372
|
-
* Describes the message ai.stigmer.agentic.mcpserver.v1.
|
|
373
|
-
* Use `create(
|
|
408
|
+
* Describes the message ai.stigmer.agentic.mcpserver.v1.McpServerAuth.
|
|
409
|
+
* Use `create(McpServerAuthSchema)` to create a new message.
|
|
374
410
|
*/
|
|
375
|
-
export declare const
|
|
411
|
+
export declare const McpServerAuthSchema: GenMessage<McpServerAuth>;
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
|
|
5
5
|
import { file_ai_stigmer_agentic_environment_v1_spec } from "../../environment/v1/spec_pb";
|
|
6
|
+
import { file_ai_stigmer_commons_apiresource_io } from "../../../commons/apiresource/io_pb";
|
|
6
7
|
import { file_buf_validate_validate } from "../../../../../buf/validate/validate_pb";
|
|
7
|
-
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
8
8
|
/**
|
|
9
9
|
* Describes the file ai/stigmer/agentic/mcpserver/v1/spec.proto.
|
|
10
10
|
*/
|
|
11
|
-
export const file_ai_stigmer_agentic_mcpserver_v1_spec = /*@__PURE__*/ fileDesc("
|
|
11
|
+
export const file_ai_stigmer_agentic_mcpserver_v1_spec = /*@__PURE__*/ fileDesc("CiphaS9zdGlnbWVyL2FnZW50aWMvbWNwc2VydmVyL3YxL3NwZWMucHJvdG8SH2FpLnN0aWdtZXIuYWdlbnRpYy5tY3BzZXJ2ZXIudjEihwQKDU1jcFNlcnZlclNwZWMSEwoLZGVzY3JpcHRpb24YASABKAkSEAoIaWNvbl91cmwYAiABKAkSDAoEdGFncxgDIAMoCRJDCgVzdGRpbxgEIAEoCzIyLmFpLnN0aWdtZXIuYWdlbnRpYy5tY3BzZXJ2ZXIudjEuU3RkaW9TZXJ2ZXJDb25maWdIABJBCgRodHRwGAUgASgLMjEuYWkuc3RpZ21lci5hZ2VudGljLm1jcHNlcnZlci52MS5IdHRwU2VydmVyQ29uZmlnSAASHQoVZGVmYXVsdF9lbmFibGVkX3Rvb2xzGAcgAygJEkQKCGVudl9zcGVjGAggASgLMjIuYWkuc3RpZ21lci5hZ2VudGljLmVudmlyb25tZW50LnYxLkVudm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c291cmNlUmVmZXJlbmNlEh8KDnRhcmdldF9lbnZfdmFyGAIgASgJQge6SARyAhABEhsKE3Rva2VuX2xpZmV0aW1lX2hpbnQYAyABKAkSEwoLc2NvcGVfaGludHMYBCADKAliBnByb3RvMw", [file_ai_stigmer_agentic_environment_v1_spec, file_ai_stigmer_commons_apiresource_io, file_buf_validate_validate]);
|
|
12
12
|
/**
|
|
13
13
|
* Describes the message ai.stigmer.agentic.mcpserver.v1.McpServerSpec.
|
|
14
14
|
* Use `create(McpServerSpecSchema)` to create a new message.
|
|
@@ -30,8 +30,8 @@ export const HttpServerConfigSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_
|
|
|
30
30
|
*/
|
|
31
31
|
export const ToolApprovalPolicySchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_mcpserver_v1_spec, 3);
|
|
32
32
|
/**
|
|
33
|
-
* Describes the message ai.stigmer.agentic.mcpserver.v1.
|
|
34
|
-
* Use `create(
|
|
33
|
+
* Describes the message ai.stigmer.agentic.mcpserver.v1.McpServerAuth.
|
|
34
|
+
* Use `create(McpServerAuthSchema)` to create a new message.
|
|
35
35
|
*/
|
|
36
|
-
export const
|
|
36
|
+
export const McpServerAuthSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_mcpserver_v1_spec, 4);
|
|
37
37
|
//# sourceMappingURL=spec_pb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spec_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/mcpserver/v1/spec_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,2HAA2H;AAC3H,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,2CAA2C,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"spec_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/mcpserver/v1/spec_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,2HAA2H;AAC3H,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,2CAA2C,EAAE,MAAM,8BAA8B,CAAC;AAE3F,OAAO,EAAE,sCAAsC,EAAE,MAAM,oCAAoC,CAAC;AAC5F,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAGrF;;GAEG;AACH,MAAM,CAAC,MAAM,yCAAyC,GAAY,aAAa,CAC7E,QAAQ,CAAC,wrDAAwrD,EAAE,CAAC,2CAA2C,EAAE,sCAAsC,EAAE,0BAA0B,CAAC,CAAC,CAAC;AA8IxzD;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA8B,aAAa,CACzE,WAAW,CAAC,yCAAyC,EAAE,CAAC,CAAC,CAAC;AA+D5D;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAkC,aAAa,CACjF,WAAW,CAAC,yCAAyC,EAAE,CAAC,CAAC,CAAC;AAqE5D;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAiC,aAAa,CAC/E,WAAW,CAAC,yCAAyC,EAAE,CAAC,CAAC,CAAC;AAmD5D;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAmC,aAAa,CACnF,WAAW,CAAC,yCAAyC,EAAE,CAAC,CAAC,CAAC;AA+E5D;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA8B,aAAa,CACzE,WAAW,CAAC,yCAAyC,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -194,6 +194,12 @@ export declare enum ApiResourceKind {
|
|
|
194
194
|
* @generated from enum value: identity_provider = 21;
|
|
195
195
|
*/
|
|
196
196
|
identity_provider = 21,
|
|
197
|
+
/**
|
|
198
|
+
* Registered OAuth application with an external vendor for outbound authentication.
|
|
199
|
+
*
|
|
200
|
+
* @generated from enum value: oauth_app = 22;
|
|
201
|
+
*/
|
|
202
|
+
oauth_app = 22,
|
|
197
203
|
/**
|
|
198
204
|
* Top-level tenant that owns and manages resources.
|
|
199
205
|
*
|
|
@@ -8,7 +8,7 @@ import { file_google_protobuf_descriptor } from "@bufbuild/protobuf/wkt";
|
|
|
8
8
|
/**
|
|
9
9
|
* Describes the file ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind.proto.
|
|
10
10
|
*/
|
|
11
|
-
export const file_ai_stigmer_commons_apiresource_apiresourcekind_api_resource_kind = /*@__PURE__*/ fileDesc("
|
|
11
|
+
export const file_ai_stigmer_commons_apiresource_apiresourcekind_api_resource_kind = /*@__PURE__*/ fileDesc("CkZhaS9zdGlnbWVyL2NvbW1vbnMvYXBpcmVzb3VyY2UvYXBpcmVzb3VyY2VraW5kL2FwaV9yZXNvdXJjZV9raW5kLnByb3RvEi5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuYXBpcmVzb3VyY2VraW5kIswDChNBcGlSZXNvdXJjZUtpbmRNZXRhEk8KBWdyb3VwGAEgASgOMkAuYWkuc3RpZ21lci5jb21tb25zLmFwaXJlc291cmNlLmFwaXJlc291cmNla2luZC5BcGlSZXNvdXJjZUdyb3VwElMKB3ZlcnNpb24YAiABKA4yQi5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuYXBpcmVzb3VyY2VraW5kLkFwaVJlc291cmNlVmVyc2lvbhIMCgRuYW1lGAMgASgJEhQKDGRpc3BsYXlfbmFtZRgEIAEoCRIRCglpZF9wcmVmaXgYBSABKAkSFAoMaXNfdmVyc2lvbmVkGAYgASgIEhoKEm5vdF9zZWFyY2hfaW5kZXhlZBgHIAEoCBJKCgR0aWVyGAggASgOMjwuYWkuc3RpZ21lci5jb21tb25zLmFwaXJlc291cmNlLmFwaXJlc291cmNla2luZC5SZXNvdXJjZVRpZXISWgoNYXV0aG9yaXphdGlvbhgJIAEoCzJDLmFpLnN0aWdtZXIuY29tbW9ucy5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bG93X2V4ZWN1dGlvbhA0GkCq/ys8CAEQARoRV29ya2Zsb3dFeGVjdXRpb24iEldvcmtmbG93IEV4ZWN1dGlvbioDd2V4QAFKCAgCEAE6AgEEEkYKC2Vudmlyb25tZW50EDUaNar/KzEIARABGgtFbnZpcm9ubWVudCILRW52aXJvbm1lbnQqA2VudkABSgoIAhABMAE6AgEEElIKEWV4ZWN1dGlvbl9jb250ZXh0EDYaO6r/KzcIARABGhBFeGVjdXRpb25Db250ZXh0IhFFeGVjdXRpb24gQ29udGV4dCoEZWN0eEABSgQIBBABEjgKB3Byb2plY3QQPBorqv8rJwgDEAEaB1Byb2plY3QiB1Byb2plY3QqA3ByakABSggIAhABOgIBBDqFAQoJa2luZF9tZXRhEiEuZ29vZ2xlLnByb3RvYnVmLkVudW1WYWx1ZU9wdGlvbnMY9b8FIAEoCzJDLmFpLnN0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZS5hcGlyZXNvdXJjZWtpbmQuQXBpUmVzb3VyY2VLaW5kTWV0YVIIa2luZE1ldGFCG0IZQXBpUmVzb3VyY2VLaW5kT3V0ZXJDbGFzc2IGcHJvdG8z", [file_ai_stigmer_commons_apiresource_apiresourcekind_api_resource_group, file_ai_stigmer_commons_apiresource_apiresourcekind_authorization_config, file_google_protobuf_descriptor]);
|
|
12
12
|
/**
|
|
13
13
|
* Describes the message ai.stigmer.commons.apiresource.apiresourcekind.ApiResourceKindMeta.
|
|
14
14
|
* Use `create(ApiResourceKindMetaSchema)` to create a new message.
|
|
@@ -139,6 +139,12 @@ export var ApiResourceKind;
|
|
|
139
139
|
* @generated from enum value: identity_provider = 21;
|
|
140
140
|
*/
|
|
141
141
|
ApiResourceKind[ApiResourceKind["identity_provider"] = 21] = "identity_provider";
|
|
142
|
+
/**
|
|
143
|
+
* Registered OAuth application with an external vendor for outbound authentication.
|
|
144
|
+
*
|
|
145
|
+
* @generated from enum value: oauth_app = 22;
|
|
146
|
+
*/
|
|
147
|
+
ApiResourceKind[ApiResourceKind["oauth_app"] = 22] = "oauth_app";
|
|
142
148
|
/**
|
|
143
149
|
* Top-level tenant that owns and manages resources.
|
|
144
150
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api_resource_kind_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,sKAAsK;AACtK,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAExF,OAAO,EAAE,sEAAsE,EAAE,MAAM,yBAAyB,CAAC;AAEjH,OAAO,EAAE,wEAAwE,EAAE,MAAM,2BAA2B,CAAC;AAErH,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AAGzE;;GAEG;AACH,MAAM,CAAC,MAAM,qEAAqE,GAAY,aAAa,CACzG,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"api_resource_kind_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,sKAAsK;AACtK,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAExF,OAAO,EAAE,sEAAsE,EAAE,MAAM,yBAAyB,CAAC;AAEjH,OAAO,EAAE,wEAAwE,EAAE,MAAM,2BAA2B,CAAC;AAErH,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AAGzE;;GAEG;AACH,MAAM,CAAC,MAAM,qEAAqE,GAAY,aAAa,CACzG,QAAQ,CAAC,s6GAAs6G,EAAE,CAAC,sEAAsE,EAAE,wEAAwE,EAAE,+BAA+B,CAAC,CAAC,CAAC;AAwExmH;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,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AA;IAEf;;;;OAIG;IACH,gFAAsB,CAAA;IAEtB;;;;OAIG;IACH,gEAAc,CAAA;IAEd;;;;OAIG;IACH,sEAAiB,CAAA;IAEjB;;;;OAIG;IACH,8DAAa,CAAA;IAEb;;;;OAIG;IACH,wDAAU,CAAA;IAEV;;;;OAIG;IACH,4EAAoB,CAAA;IAEpB;;;;OAIG;IACH,4DAAY,CAAA;IAEZ;;;;OAIG;IACH,wDAAU,CAAA;IAEV;;;;OAIG;IACH,kEAAe,CAAA;IAEf;;;;OAIG;IACH,0EAAmB,CAAA;IAEnB;;;;OAIG;IACH,8DAAa,CAAA;IAEb;;;;OAIG;IACH,gFAAsB,CAAA;IAEtB;;;;OAIG;IACH,kFAAuB,CAAA;IAEvB;;;;OAIG;IACH,oEAAgB,CAAA;IAEhB;;;;OAIG;IACH,gFAAsB,CAAA;IAEtB;;;;OAIG;IACH,4DAAY,CAAA;AACd,CAAC,EA1JW,eAAe,KAAf,eAAe,QA0J1B;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAA6B,aAAa,CAC1E,QAAQ,CAAC,qEAAqE,EAAE,CAAC,CAAC,CAAC;AAErF;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAwD,aAAa,CACzF,OAAO,CAAC,qEAAqE,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { ApiResourceMetadata } from "../../../commons/apiresource/metadata_pb";
|
|
3
|
+
import type { ApiResourceAuditStatus } from "../../../commons/apiresource/status_pb";
|
|
4
|
+
import type { OAuthAppSpec } from "./spec_pb";
|
|
5
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
6
|
+
/**
|
|
7
|
+
* Describes the file ai/stigmer/iam/oauthapp/v1/api.proto.
|
|
8
|
+
*/
|
|
9
|
+
export declare const file_ai_stigmer_iam_oauthapp_v1_api: GenFile;
|
|
10
|
+
/**
|
|
11
|
+
* OAuthApp represents a registered OAuth application with an external vendor.
|
|
12
|
+
*
|
|
13
|
+
* An OAuthApp is owned by an organization and holds the client credentials
|
|
14
|
+
* needed for vendor-specific OAuth flows. It enables Stigmer to authenticate
|
|
15
|
+
* with external services (Slack, Salesforce, Figma, etc.) on behalf of users.
|
|
16
|
+
*
|
|
17
|
+
* OAuthApp is the outbound counterpart to IdentityProvider (inbound auth).
|
|
18
|
+
* While IdentityProvider configures how external platforms authenticate
|
|
19
|
+
* *into* Stigmer, OAuthApp configures how Stigmer authenticates *outward*
|
|
20
|
+
* to external services.
|
|
21
|
+
*
|
|
22
|
+
* Referenced by McpServer resources via McpServerVendorOAuth to enable
|
|
23
|
+
* automated credential acquisition for MCP servers that require
|
|
24
|
+
* vendor-specific OAuth.
|
|
25
|
+
*
|
|
26
|
+
* Example YAML:
|
|
27
|
+
* apiVersion: iam.stigmer.ai/v1
|
|
28
|
+
* kind: OAuthApp
|
|
29
|
+
* metadata:
|
|
30
|
+
* name: Slack OAuth
|
|
31
|
+
* slug: slack-oauth
|
|
32
|
+
* org: acme
|
|
33
|
+
* spec:
|
|
34
|
+
* provider: "Slack"
|
|
35
|
+
* client_id: "1234567890.abcdef"
|
|
36
|
+
* client_secret: "xoxs-..."
|
|
37
|
+
* authorization_url: "https://slack.com/oauth/v2/authorize"
|
|
38
|
+
* token_url: "https://slack.com/api/oauth.v2.access"
|
|
39
|
+
* scopes: ["channels:read", "chat:write"]
|
|
40
|
+
*
|
|
41
|
+
* @generated from message ai.stigmer.iam.oauthapp.v1.OAuthApp
|
|
42
|
+
*/
|
|
43
|
+
export type OAuthApp = Message<"ai.stigmer.iam.oauthapp.v1.OAuthApp"> & {
|
|
44
|
+
/**
|
|
45
|
+
* API version for this resource type.
|
|
46
|
+
* Must be exactly "iam.stigmer.ai/v1".
|
|
47
|
+
*
|
|
48
|
+
* @generated from field: string api_version = 1;
|
|
49
|
+
*/
|
|
50
|
+
apiVersion: string;
|
|
51
|
+
/**
|
|
52
|
+
* Resource kind identifier.
|
|
53
|
+
* Must be exactly "OAuthApp".
|
|
54
|
+
*
|
|
55
|
+
* @generated from field: string kind = 2;
|
|
56
|
+
*/
|
|
57
|
+
kind: string;
|
|
58
|
+
/**
|
|
59
|
+
* Standard resource metadata including name, id, org, visibility, labels, and tags.
|
|
60
|
+
* The org field identifies which organization owns this OAuth app registration.
|
|
61
|
+
*
|
|
62
|
+
* @generated from field: ai.stigmer.commons.apiresource.ApiResourceMetadata metadata = 3;
|
|
63
|
+
*/
|
|
64
|
+
metadata?: ApiResourceMetadata;
|
|
65
|
+
/**
|
|
66
|
+
* User-provided OAuth app configuration (desired state).
|
|
67
|
+
*
|
|
68
|
+
* @generated from field: ai.stigmer.iam.oauthapp.v1.OAuthAppSpec spec = 4;
|
|
69
|
+
*/
|
|
70
|
+
spec?: OAuthAppSpec;
|
|
71
|
+
/**
|
|
72
|
+
* System-managed state including audit trail.
|
|
73
|
+
*
|
|
74
|
+
* @generated from field: ai.stigmer.commons.apiresource.ApiResourceAuditStatus status = 5;
|
|
75
|
+
*/
|
|
76
|
+
status?: ApiResourceAuditStatus;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Describes the message ai.stigmer.iam.oauthapp.v1.OAuthApp.
|
|
80
|
+
* Use `create(OAuthAppSchema)` to create a new message.
|
|
81
|
+
*/
|
|
82
|
+
export declare const OAuthAppSchema: GenMessage<OAuthApp>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.2 with parameter "target=ts"
|
|
2
|
+
// @generated from file ai/stigmer/iam/oauthapp/v1/api.proto (package ai.stigmer.iam.oauthapp.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
|
|
5
|
+
import { file_ai_stigmer_commons_apiresource_metadata } from "../../../commons/apiresource/metadata_pb";
|
|
6
|
+
import { file_ai_stigmer_commons_apiresource_status } from "../../../commons/apiresource/status_pb";
|
|
7
|
+
import { file_ai_stigmer_iam_oauthapp_v1_spec } from "./spec_pb";
|
|
8
|
+
import { file_buf_validate_validate } from "../../../../../buf/validate/validate_pb";
|
|
9
|
+
/**
|
|
10
|
+
* Describes the file ai/stigmer/iam/oauthapp/v1/api.proto.
|
|
11
|
+
*/
|
|
12
|
+
export const file_ai_stigmer_iam_oauthapp_v1_api = /*@__PURE__*/ fileDesc("CiRhaS9zdGlnbWVyL2lhbS9vYXV0aGFwcC92MS9hcGkucHJvdG8SGmFpLnN0aWdtZXIuaWFtLm9hdXRoYXBwLnYxIqcCCghPQXV0aEFwcBItCgthcGlfdmVyc2lvbhgBIAEoCUIYukgVchMKEWlhbS5zdGlnbWVyLmFpL3YxEh0KBGtpbmQYAiABKAlCD7pIDHIKCghPQXV0aEFwcBJNCghtZXRhZGF0YRgDIAEoCzIzLmFpLnN0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZS5BcGlSZXNvdXJjZU1ldGFkYXRhQga6SAPIAQESNgoEc3BlYxgEIAEoCzIoLmFpLnN0aWdtZXIuaWFtLm9hdXRoYXBwLnYxLk9BdXRoQXBwU3BlYxJGCgZzdGF0dXMYBSABKAsyNi5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuQXBpUmVzb3VyY2VBdWRpdFN0YXR1c2IGcHJvdG8z", [file_ai_stigmer_commons_apiresource_metadata, file_ai_stigmer_commons_apiresource_status, file_ai_stigmer_iam_oauthapp_v1_spec, file_buf_validate_validate]);
|
|
13
|
+
/**
|
|
14
|
+
* Describes the message ai.stigmer.iam.oauthapp.v1.OAuthApp.
|
|
15
|
+
* Use `create(OAuthAppSchema)` to create a new message.
|
|
16
|
+
*/
|
|
17
|
+
export const OAuthAppSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_iam_oauthapp_v1_api, 0);
|
|
18
|
+
//# sourceMappingURL=api_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/iam/oauthapp/v1/api_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,gHAAgH;AAChH,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,4CAA4C,EAAE,MAAM,0CAA0C,CAAC;AAExG,OAAO,EAAE,0CAA0C,EAAE,MAAM,wCAAwC,CAAC;AAEpG,OAAO,EAAE,oCAAoC,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAGrF;;GAEG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAY,aAAa,CACvE,QAAQ,CAAC,kfAAkf,EAAE,CAAC,4CAA4C,EAAE,0CAA0C,EAAE,oCAAoC,EAAE,0BAA0B,CAAC,CAAC,CAAC;AA2E7pB;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAyB,aAAa,CAC/D,WAAW,CAAC,mCAAmC,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OAuthAppCommandController provides write operations for OAuth app resources.
|
|
3
|
+
*
|
|
4
|
+
* @internal
|
|
5
|
+
* OAuthApps hold vendor client credentials (client_secret) and are always
|
|
6
|
+
* org-private. There is no updateVisibility RPC — public visibility is
|
|
7
|
+
* intentionally unsupported to prevent credential leakage.
|
|
8
|
+
*
|
|
9
|
+
* @generated from service ai.stigmer.iam.oauthapp.v1.OAuthAppCommandController
|
|
10
|
+
*/
|
|
11
|
+
export declare const OAuthAppCommandController: {
|
|
12
|
+
readonly typeName: "ai.stigmer.iam.oauthapp.v1.OAuthAppCommandController";
|
|
13
|
+
readonly methods: {
|
|
14
|
+
/**
|
|
15
|
+
* Create or update an OAuth app.
|
|
16
|
+
*
|
|
17
|
+
* If the resource does not exist, creates a new OAuth app.
|
|
18
|
+
* If the resource exists, updates the existing OAuth app.
|
|
19
|
+
*
|
|
20
|
+
* @internal
|
|
21
|
+
* The authorization and state-operation are determined depending on whether the
|
|
22
|
+
* OAuth app is going to be created or updated, which is determined as
|
|
23
|
+
* part of the request execution.
|
|
24
|
+
*
|
|
25
|
+
* @generated from rpc ai.stigmer.iam.oauthapp.v1.OAuthAppCommandController.apply
|
|
26
|
+
*/
|
|
27
|
+
readonly apply: {
|
|
28
|
+
readonly name: "apply";
|
|
29
|
+
readonly I: any;
|
|
30
|
+
readonly O: any;
|
|
31
|
+
readonly kind: any;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Create an OAuth app.
|
|
35
|
+
*
|
|
36
|
+
* The creator's organization owns the OAuth app. The creator is granted
|
|
37
|
+
* the owner role automatically.
|
|
38
|
+
*
|
|
39
|
+
* @internal
|
|
40
|
+
* Authorization: Requires can_create_oauth_app permission in the organization.
|
|
41
|
+
*
|
|
42
|
+
* @generated from rpc ai.stigmer.iam.oauthapp.v1.OAuthAppCommandController.create
|
|
43
|
+
*/
|
|
44
|
+
readonly create: {
|
|
45
|
+
readonly name: "create";
|
|
46
|
+
readonly I: any;
|
|
47
|
+
readonly O: any;
|
|
48
|
+
readonly kind: any;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Update an existing OAuth app.
|
|
52
|
+
*
|
|
53
|
+
* @internal
|
|
54
|
+
* Authorization: Requires can_edit permission on the oauth_app resource.
|
|
55
|
+
*
|
|
56
|
+
* @generated from rpc ai.stigmer.iam.oauthapp.v1.OAuthAppCommandController.update
|
|
57
|
+
*/
|
|
58
|
+
readonly update: {
|
|
59
|
+
readonly name: "update";
|
|
60
|
+
readonly I: any;
|
|
61
|
+
readonly O: any;
|
|
62
|
+
readonly kind: any;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Delete an OAuth app.
|
|
66
|
+
*
|
|
67
|
+
* Deletion should be blocked if any McpServer resources reference this
|
|
68
|
+
* OAuth app via McpServerVendorOAuth.oauth_app_ref.
|
|
69
|
+
*
|
|
70
|
+
* @internal
|
|
71
|
+
* Authorization: Requires can_delete permission on the oauth_app resource.
|
|
72
|
+
*
|
|
73
|
+
* @generated from rpc ai.stigmer.iam.oauthapp.v1.OAuthAppCommandController.delete
|
|
74
|
+
*/
|
|
75
|
+
readonly delete: {
|
|
76
|
+
readonly name: "delete";
|
|
77
|
+
readonly I: any;
|
|
78
|
+
readonly O: any;
|
|
79
|
+
readonly kind: any;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file ai/stigmer/iam/oauthapp/v1/command.proto (package ai.stigmer.iam.oauthapp.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
+
/**
|
|
7
|
+
* OAuthAppCommandController provides write operations for OAuth app resources.
|
|
8
|
+
*
|
|
9
|
+
* @internal
|
|
10
|
+
* OAuthApps hold vendor client credentials (client_secret) and are always
|
|
11
|
+
* org-private. There is no updateVisibility RPC — public visibility is
|
|
12
|
+
* intentionally unsupported to prevent credential leakage.
|
|
13
|
+
*
|
|
14
|
+
* @generated from service ai.stigmer.iam.oauthapp.v1.OAuthAppCommandController
|
|
15
|
+
*/
|
|
16
|
+
export const OAuthAppCommandController = {
|
|
17
|
+
typeName: "ai.stigmer.iam.oauthapp.v1.OAuthAppCommandController",
|
|
18
|
+
methods: {
|
|
19
|
+
/**
|
|
20
|
+
* Create or update an OAuth app.
|
|
21
|
+
*
|
|
22
|
+
* If the resource does not exist, creates a new OAuth app.
|
|
23
|
+
* If the resource exists, updates the existing OAuth app.
|
|
24
|
+
*
|
|
25
|
+
* @internal
|
|
26
|
+
* The authorization and state-operation are determined depending on whether the
|
|
27
|
+
* OAuth app is going to be created or updated, which is determined as
|
|
28
|
+
* part of the request execution.
|
|
29
|
+
*
|
|
30
|
+
* @generated from rpc ai.stigmer.iam.oauthapp.v1.OAuthAppCommandController.apply
|
|
31
|
+
*/
|
|
32
|
+
apply: {
|
|
33
|
+
name: "apply",
|
|
34
|
+
I: OAuthApp,
|
|
35
|
+
O: OAuthApp,
|
|
36
|
+
kind: MethodKind.Unary,
|
|
37
|
+
},
|
|
38
|
+
/**
|
|
39
|
+
* Create an OAuth app.
|
|
40
|
+
*
|
|
41
|
+
* The creator's organization owns the OAuth app. The creator is granted
|
|
42
|
+
* the owner role automatically.
|
|
43
|
+
*
|
|
44
|
+
* @internal
|
|
45
|
+
* Authorization: Requires can_create_oauth_app permission in the organization.
|
|
46
|
+
*
|
|
47
|
+
* @generated from rpc ai.stigmer.iam.oauthapp.v1.OAuthAppCommandController.create
|
|
48
|
+
*/
|
|
49
|
+
create: {
|
|
50
|
+
name: "create",
|
|
51
|
+
I: OAuthApp,
|
|
52
|
+
O: OAuthApp,
|
|
53
|
+
kind: MethodKind.Unary,
|
|
54
|
+
},
|
|
55
|
+
/**
|
|
56
|
+
* Update an existing OAuth app.
|
|
57
|
+
*
|
|
58
|
+
* @internal
|
|
59
|
+
* Authorization: Requires can_edit permission on the oauth_app resource.
|
|
60
|
+
*
|
|
61
|
+
* @generated from rpc ai.stigmer.iam.oauthapp.v1.OAuthAppCommandController.update
|
|
62
|
+
*/
|
|
63
|
+
update: {
|
|
64
|
+
name: "update",
|
|
65
|
+
I: OAuthApp,
|
|
66
|
+
O: OAuthApp,
|
|
67
|
+
kind: MethodKind.Unary,
|
|
68
|
+
},
|
|
69
|
+
/**
|
|
70
|
+
* Delete an OAuth app.
|
|
71
|
+
*
|
|
72
|
+
* Deletion should be blocked if any McpServer resources reference this
|
|
73
|
+
* OAuth app via McpServerVendorOAuth.oauth_app_ref.
|
|
74
|
+
*
|
|
75
|
+
* @internal
|
|
76
|
+
* Authorization: Requires can_delete permission on the oauth_app resource.
|
|
77
|
+
*
|
|
78
|
+
* @generated from rpc ai.stigmer.iam.oauthapp.v1.OAuthAppCommandController.delete
|
|
79
|
+
*/
|
|
80
|
+
delete: {
|
|
81
|
+
name: "delete",
|
|
82
|
+
I: ApiResourceDeleteInput,
|
|
83
|
+
O: OAuthApp,
|
|
84
|
+
kind: MethodKind.Unary,
|
|
85
|
+
},
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
//# sourceMappingURL=command_connect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command_connect.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/iam/oauthapp/v1/command_connect.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,oHAAoH;AACpH,oBAAoB;AACpB,cAAc;AAGd,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGhD;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,QAAQ,EAAE,sDAAsD;IAChE,OAAO,EAAE;QACP;;;;;;;;;;;;WAYG;QACH,KAAK,EAAE;YACL,IAAI,EAAE,OAAO;YACb,CAAC,EAAE,QAAQ;YACX,CAAC,EAAE,QAAQ;YACX,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;WAUG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,QAAQ;YACX,CAAC,EAAE,QAAQ;YACX,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;WAOG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,QAAQ;YACX,CAAC,EAAE,QAAQ;YACX,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;WAUG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,sBAAsB;YACzB,CAAC,EAAE,QAAQ;YACX,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
|