@sentry/junior-plugin-api 0.258.0 → 0.259.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +28 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2380,11 +2380,39 @@ export interface PluginMcpConfig {
|
|
|
2380
2380
|
/** Provider tools hidden from the model and callable only by plugin-owned wrapper tools. */
|
|
2381
2381
|
wrappedTools?: string[];
|
|
2382
2382
|
}
|
|
2383
|
+
/**
|
|
2384
|
+
* Which provider accounts Junior may use for one plugin.
|
|
2385
|
+
*
|
|
2386
|
+
* By default, each Actor connects their own account with per-actor OAuth.
|
|
2387
|
+
* A plugin can also allow an optional install-wide service account, often a
|
|
2388
|
+
* bot. An Admin connects it one time on the dashboard Admin page.
|
|
2389
|
+
*
|
|
2390
|
+
* An Actor's own connection always wins. An Actor without their own
|
|
2391
|
+
* connection uses the service account for what it lists. Other requests ask
|
|
2392
|
+
* the Actor to connect their own account.
|
|
2393
|
+
*
|
|
2394
|
+
* With `userOAuth: false`, Junior uses only the service account. It never
|
|
2395
|
+
* asks an Actor to connect, ignores their own connections, and hides tools
|
|
2396
|
+
* that the service account does not list. Until an Admin connects the
|
|
2397
|
+
* account, the plugin is not available.
|
|
2398
|
+
*/
|
|
2399
|
+
export interface PluginAccountsConfig {
|
|
2400
|
+
/** Set false to turn off per-actor OAuth for the plugin. Defaults to true. */
|
|
2401
|
+
userOAuth?: boolean;
|
|
2402
|
+
/** Optional service account and what it may use. Omit for none. */
|
|
2403
|
+
serviceAccount?: PluginServiceAccountConfig;
|
|
2404
|
+
}
|
|
2405
|
+
/** What one plugin's service account may use. */
|
|
2406
|
+
export interface PluginServiceAccountConfig {
|
|
2407
|
+
/** MCP tools that the account may call. Each must be loaded by `mcp`. */
|
|
2408
|
+
tools: string[];
|
|
2409
|
+
}
|
|
2383
2410
|
export interface PluginEnvVarDeclaration {
|
|
2384
2411
|
default?: string;
|
|
2385
2412
|
exposeToCommandEnv?: boolean;
|
|
2386
2413
|
}
|
|
2387
2414
|
export interface PluginManifest {
|
|
2415
|
+
accounts?: PluginAccountsConfig;
|
|
2388
2416
|
apiHeaders?: Record<string, string>;
|
|
2389
2417
|
commandEnv?: Record<string, string>;
|
|
2390
2418
|
configKeys?: string[];
|