@executor-js/sdk 0.2.1 → 1.4.20

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.
@@ -6,7 +6,7 @@ import { ConnectionId, ScopeId } from "./ids";
6
6
  * for. */
7
7
  export declare const ConnectionProviderState: Schema.$Record<Schema.String, Schema.Unknown>;
8
8
  export type ConnectionProviderState = typeof ConnectionProviderState.Type;
9
- declare const ConnectionRef_base: Schema.Class<ConnectionRef, Schema.Struct<{
9
+ export declare const ConnectionRef: Schema.Struct<{
10
10
  readonly id: Schema.brand<Schema.String, "ConnectionId">;
11
11
  readonly scopeId: Schema.brand<Schema.String, "ScopeId">;
12
12
  readonly provider: Schema.String;
@@ -21,10 +21,9 @@ declare const ConnectionRef_base: Schema.Class<ConnectionRef, Schema.Struct<{
21
21
  readonly providerState: Schema.NullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
22
22
  readonly createdAt: Schema.Date;
23
23
  readonly updatedAt: Schema.Date;
24
- }>, {}>;
25
- export declare class ConnectionRef extends ConnectionRef_base {
26
- }
27
- declare const TokenMaterial_base: Schema.Class<TokenMaterial, Schema.Struct<{
24
+ }>;
25
+ export type ConnectionRef = typeof ConnectionRef.Type;
26
+ export declare const TokenMaterial: Schema.Struct<{
28
27
  /** Target secret id. Plugins typically derive this from the source id
29
28
  * + a stable suffix (e.g. `${sourceId}.access_token`). */
30
29
  readonly secretId: Schema.brand<Schema.String, "SecretId">;
@@ -32,10 +31,9 @@ declare const TokenMaterial_base: Schema.Class<TokenMaterial, Schema.Struct<{
32
31
  * Connections UI hides connection-owned secrets. */
33
32
  readonly name: Schema.String;
34
33
  readonly value: Schema.String;
35
- }>, {}>;
36
- export declare class TokenMaterial extends TokenMaterial_base {
37
- }
38
- declare const CreateConnectionInput_base: Schema.Class<CreateConnectionInput, Schema.Struct<{
34
+ }>;
35
+ export type TokenMaterial = typeof TokenMaterial.Type;
36
+ export declare const CreateConnectionInput: Schema.Struct<{
39
37
  readonly id: Schema.brand<Schema.String, "ConnectionId">;
40
38
  /** Executor scope id that will own this connection + its backing
41
39
  * secrets. This is the sharing boundary: a user scope is personal,
@@ -43,15 +41,30 @@ declare const CreateConnectionInput_base: Schema.Class<CreateConnectionInput, Sc
43
41
  readonly scope: Schema.brand<Schema.String, "ScopeId">;
44
42
  readonly provider: Schema.String;
45
43
  readonly identityLabel: Schema.NullOr<Schema.String>;
46
- readonly accessToken: typeof TokenMaterial;
47
- readonly refreshToken: Schema.NullOr<typeof TokenMaterial>;
44
+ readonly accessToken: Schema.Struct<{
45
+ /** Target secret id. Plugins typically derive this from the source id
46
+ * + a stable suffix (e.g. `${sourceId}.access_token`). */
47
+ readonly secretId: Schema.brand<Schema.String, "SecretId">;
48
+ /** Display name stamped on the secret row. Only visible to code — the
49
+ * Connections UI hides connection-owned secrets. */
50
+ readonly name: Schema.String;
51
+ readonly value: Schema.String;
52
+ }>;
53
+ readonly refreshToken: Schema.NullOr<Schema.Struct<{
54
+ /** Target secret id. Plugins typically derive this from the source id
55
+ * + a stable suffix (e.g. `${sourceId}.access_token`). */
56
+ readonly secretId: Schema.brand<Schema.String, "SecretId">;
57
+ /** Display name stamped on the secret row. Only visible to code — the
58
+ * Connections UI hides connection-owned secrets. */
59
+ readonly name: Schema.String;
60
+ readonly value: Schema.String;
61
+ }>>;
48
62
  readonly expiresAt: Schema.NullOr<Schema.Number>;
49
63
  /** OAuth-style scope string. Distinct from the executor scope above. */
50
64
  readonly oauthScope: Schema.NullOr<Schema.String>;
51
65
  readonly providerState: Schema.NullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
52
- }>, {}>;
53
- export declare class CreateConnectionInput extends CreateConnectionInput_base {
54
- }
66
+ }>;
67
+ export type CreateConnectionInput = typeof CreateConnectionInput.Type;
55
68
  declare const ConnectionRefreshError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
56
69
  readonly _tag: "ConnectionRefreshError";
57
70
  } & Readonly<A>;
@@ -92,7 +105,7 @@ export interface ConnectionProvider {
92
105
  readonly key: string;
93
106
  readonly refresh?: (input: ConnectionRefreshInput) => Effect.Effect<ConnectionRefreshResult, ConnectionRefreshError>;
94
107
  }
95
- declare const UpdateConnectionTokensInput_base: Schema.Class<UpdateConnectionTokensInput, Schema.Struct<{
108
+ export declare const UpdateConnectionTokensInput: Schema.Struct<{
96
109
  readonly id: Schema.brand<Schema.String, "ConnectionId">;
97
110
  readonly accessToken: Schema.String;
98
111
  readonly refreshToken: Schema.optional<Schema.NullOr<Schema.String>>;
@@ -100,15 +113,13 @@ declare const UpdateConnectionTokensInput_base: Schema.Class<UpdateConnectionTok
100
113
  readonly oauthScope: Schema.optional<Schema.NullOr<Schema.String>>;
101
114
  readonly providerState: Schema.optional<Schema.NullOr<Schema.$Record<Schema.String, Schema.Unknown>>>;
102
115
  readonly identityLabel: Schema.optional<Schema.NullOr<Schema.String>>;
103
- }>, {}>;
104
- export declare class UpdateConnectionTokensInput extends UpdateConnectionTokensInput_base {
105
- }
106
- declare const RemoveConnectionInput_base: Schema.Class<RemoveConnectionInput, Schema.Struct<{
116
+ }>;
117
+ export type UpdateConnectionTokensInput = typeof UpdateConnectionTokensInput.Type;
118
+ export declare const RemoveConnectionInput: Schema.Struct<{
107
119
  readonly id: Schema.brand<Schema.String, "ConnectionId">;
108
120
  /** Scope id whose connection row and owned token secrets should be removed. */
109
121
  readonly targetScope: Schema.brand<Schema.String, "ScopeId">;
110
- }>, {}>;
111
- export declare class RemoveConnectionInput extends RemoveConnectionInput_base {
112
- }
122
+ }>;
123
+ export type RemoveConnectionInput = typeof RemoveConnectionInput.Type;
113
124
  export {};
114
125
  //# sourceMappingURL=connections.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../src/connections.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,MAAM,EAAE,MAAM,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C,uBAAuB,EAAE,sBAAsB,CAAC,CAAC;CACrE;AASD,eAAO,MAAM,2BAA2B;;;;;;;;EAQtC,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC,IAAI,CAAC;AAElF,eAAO,MAAM,qBAAqB;;IAEhC,+EAA+E;;EAE/E,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAC"}
package/dist/core.js CHANGED
@@ -10,11 +10,10 @@ import {
10
10
  defineSchema,
11
11
  makeTestConfig,
12
12
  tool
13
- } from "./chunk-QQK7X3DM.js";
13
+ } from "./chunk-I2OEQ2GJ.js";
14
14
  import {
15
15
  ConfiguredCredentialBinding,
16
16
  ConfiguredCredentialValue,
17
- ConfiguredCredentialValueSchema,
18
17
  ConnectionId,
19
18
  ConnectionInUseError,
20
19
  ConnectionNotFoundError,
@@ -125,7 +124,7 @@ import {
125
124
  schemaToTypeScriptPreviewWithDefs,
126
125
  shouldRefreshToken,
127
126
  validateHostedOutboundUrl
128
- } from "./chunk-NPWV4R3N.js";
127
+ } from "./chunk-OIJL6F6M.js";
129
128
 
130
129
  // src/index.ts
131
130
  import { Context, Effect, Layer, Schema as Schema2, Data, Option } from "effect";
@@ -245,7 +244,6 @@ var InternalError = class extends Schema.TaggedErrorClass()(
245
244
  export {
246
245
  ConfiguredCredentialBinding,
247
246
  ConfiguredCredentialValue,
248
- ConfiguredCredentialValueSchema,
249
247
  ConnectionId,
250
248
  ConnectionInUseError,
251
249
  ConnectionNotFoundError,
package/dist/core.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/oauth-popup-types.ts","../src/schema-refs.ts","../src/api-errors.ts"],"sourcesContent":["// ---------------------------------------------------------------------------\n// @executor-js/sdk — public surface\n// ---------------------------------------------------------------------------\n\n// Re-export the Effect/Schema/HttpApi primitives plugin authors need so a\n// plugin can be written importing only from `@executor-js/sdk`. Authors who\n// want to reach for additional Effect APIs keep importing from `effect/*`\n// directly — these re-exports are the curated minimum.\nexport { Context, Effect, Layer, Schema, Data, Option } from \"effect\";\nexport {\n HttpApi,\n HttpApiBuilder,\n HttpApiClient,\n HttpApiEndpoint,\n HttpApiGroup,\n HttpApiMiddleware,\n HttpApiSchema,\n} from \"effect/unstable/httpapi\";\n\n// Storage adapter interface types (re-exported from @executor-js/storage-core\n// so plugin authors can write adapters against a single public surface\n// without depending on storage-core directly).\nexport type {\n DBAdapter,\n DBSchema,\n DBFieldAttribute,\n DBFieldType,\n StorageFailure,\n TypedAdapter,\n Where,\n WhereOperator,\n} from \"@executor-js/storage-core\";\n\nexport { typedAdapter } from \"@executor-js/storage-core\";\n\n// Storage-layer typed errors (re-exported so plugin code can catchTag\n// `UniqueViolationError` without importing storage-core directly).\nexport { StorageError, UniqueViolationError } from \"@executor-js/storage-core\";\n\n// IDs (branded)\nexport { ScopeId, ToolId, SecretId, PolicyId, ConnectionId, CredentialBindingId } from \"./ids\";\n\n// Scope\nexport { Scope } from \"./scope\";\n\n// Errors (tagged)\nexport {\n ToolNotFoundError,\n ToolInvocationError,\n ToolBlockedError,\n NoHandlerError,\n SourceNotFoundError,\n SourceRemovalNotAllowedError,\n PluginNotLoadedError,\n SecretNotFoundError,\n SecretResolutionError,\n SecretOwnedByConnectionError,\n SecretInUseError,\n ConnectionNotFoundError,\n ConnectionProviderNotRegisteredError,\n ConnectionRefreshNotSupportedError,\n ConnectionReauthRequiredError,\n ConnectionInUseError,\n type ExecutorError,\n} from \"./errors\";\n\n// Public projections\nexport {\n ToolSchema,\n SourceDetectionResult,\n type RefreshSourceInput,\n type RemoveSourceInput,\n type Source,\n type Tool,\n type ToolListFilter,\n} from \"./types\";\n\n// Core schema\nexport {\n coreSchema,\n isToolPolicyAction,\n TOOL_POLICY_ACTIONS,\n type CoreSchema,\n type SourceInput,\n type SourceInputTool,\n type SourceRow,\n type ToolRow,\n type DefinitionRow,\n type SecretRow,\n type ConnectionRow,\n type CredentialBindingRow,\n type ToolPolicyRow,\n type ToolPolicyAction,\n type DefinitionsInput,\n type ToolAnnotations,\n} from \"./core-schema\";\n\n// Tool policies\nexport {\n matchPattern,\n isValidPattern,\n resolveToolPolicy,\n resolveEffectivePolicy,\n effectivePolicyFromSorted,\n rowToToolPolicy,\n ToolPolicyActionSchema,\n type ToolPolicy,\n type CreateToolPolicyInput,\n type UpdateToolPolicyInput,\n type RemoveToolPolicyInput,\n type PolicyMatch,\n type EffectivePolicy,\n type PolicySource,\n} from \"./policies\";\n\n// Secrets\nexport { SecretRef, SetSecretInput, RemoveSecretInput, type SecretProvider } from \"./secrets\";\n\nexport {\n SecretBackedMap,\n SecretBackedValue,\n isSecretBackedRef,\n resolveSecretBackedMap,\n type ResolveSecretBackedMapOptions,\n} from \"./secret-backed-value\";\n\nexport {\n CredentialBindingKind,\n CredentialBindingValue,\n ConfiguredCredentialBinding,\n ConfiguredCredentialValue,\n ConfiguredCredentialValueSchema,\n ScopedSecretCredentialInput,\n CredentialBindingRef,\n SetCredentialBindingInput,\n CredentialBindingSourceInput,\n CredentialBindingSlotInput,\n RemoveCredentialBindingInput,\n ReplaceCredentialBindingValue,\n ReplaceCredentialBindingsInput,\n CredentialBindingResolutionStatus,\n ResolvedCredentialSlot,\n credentialBindingId,\n credentialSlotKey,\n credentialSlotPart,\n credentialBindingRowToRef,\n credentialBindingValueFromRow,\n type CredentialBindingsFacade,\n} from \"./credential-bindings\";\n\n// Usage tracking — secret/connection refs across plugins\nexport { Usage, type UsagesForSecretInput, type UsagesForConnectionInput } from \"./usages\";\n\n// Connections\nexport {\n ConnectionRef,\n ConnectionProviderState,\n CreateConnectionInput,\n RemoveConnectionInput,\n UpdateConnectionTokensInput,\n TokenMaterial,\n ConnectionRefreshError,\n type ConnectionProvider,\n type ConnectionRefreshInput,\n type ConnectionRefreshResult,\n} from \"./connections\";\n\n// Elicitation\nexport {\n FormElicitation,\n UrlElicitation,\n ElicitationAction,\n ElicitationResponse,\n ElicitationDeclinedError,\n type ElicitationRequest,\n type ElicitationHandler,\n type ElicitationContext,\n} from \"./elicitation\";\n\n// Blob store\nexport {\n type BlobStore,\n type PluginBlobStore,\n pluginBlobStore,\n makeInMemoryBlobStore,\n} from \"./blob\";\n\n// OAuth 2.1\nexport {\n type OAuthService,\n type OAuthStrategy,\n type OAuthDynamicDcrStrategy,\n type OAuthAuthorizationCodeStrategy,\n type OAuthClientCredentialsStrategy,\n type OAuthProviderState,\n type OAuthProbeInput,\n type OAuthProbeResult,\n type OAuthStartInput,\n type OAuthStartResult,\n type OAuthCompleteInput,\n type OAuthCompleteResult,\n OAuthProbeError,\n OAuthStartError,\n OAuthCompleteError,\n OAuthSessionNotFoundError,\n OAUTH2_PROVIDER_KEY,\n OAUTH2_SESSION_TTL_MS,\n OAuthStrategy as OAuthStrategySchema,\n OAuthProviderState as OAuthProviderStateSchema,\n OAuthDynamicDcrStrategy as OAuthDynamicDcrStrategySchema,\n OAuthAuthorizationCodeStrategy as OAuthAuthorizationCodeStrategySchema,\n OAuthClientCredentialsStrategy as OAuthClientCredentialsStrategySchema,\n} from \"./oauth\";\n\nexport {\n OAuth2Error,\n OAUTH2_DEFAULT_TIMEOUT_MS,\n OAUTH2_REFRESH_SKEW_MS,\n assertSupportedOAuthEndpointUrl,\n buildAuthorizationUrl,\n createPkceCodeChallenge,\n createPkceCodeVerifier,\n exchangeAuthorizationCode,\n exchangeClientCredentials,\n isSupportedOAuthEndpointUrl,\n refreshAccessToken,\n shouldRefreshToken,\n type OAuth2TokenResponse,\n type BuildAuthorizationUrlInput,\n type ClientAuthMethod,\n type ExchangeAuthorizationCodeInput,\n type ExchangeClientCredentialsInput,\n type RefreshAccessTokenInput,\n} from \"./oauth-helpers\";\n\nexport { makeOAuth2Service, type OAuthServiceDeps } from \"./oauth-service\";\nexport type { ScopedDBAdapter, ScopedTypedAdapter } from \"./scoped-adapter\";\n\nexport {\n HostedOutboundRequestBlocked,\n makeHostedHttpClientLayer,\n validateHostedOutboundUrl,\n type HostedHttpClientOptions,\n} from \"./hosted-http-client\";\n\nexport {\n OAuthDiscoveryError,\n OAuthAuthorizationServerMetadataSchema,\n OAuthClientInformationSchema,\n OAuthProtectedResourceMetadataSchema,\n beginDynamicAuthorization,\n discoverAuthorizationServerMetadata,\n discoverProtectedResourceMetadata,\n registerDynamicClient,\n type BeginDynamicAuthorizationInput,\n type DiscoveryRequestOptions,\n type DynamicAuthorizationState,\n type DynamicAuthorizationStartResult,\n type DynamicClientMetadata,\n type OAuthAuthorizationServerMetadata,\n type OAuthClientInformation,\n type OAuthProtectedResourceMetadata,\n type RegisterDynamicClientInput,\n} from \"./oauth-discovery\";\n\nexport {\n OAUTH_POPUP_MESSAGE_TYPE,\n type OAuthPopupResult,\n isOAuthPopupResult,\n} from \"./oauth-popup-types\";\n\n// Plugin definition\nexport {\n type Plugin,\n type PluginSpec,\n type PluginCtx,\n type PluginExtensions,\n type ConfiguredPlugin,\n type AnyPlugin,\n type StorageDeps,\n type StaticSourceDecl,\n type StaticToolDecl,\n type StaticToolExecuteContext,\n type StaticToolHandlerInput,\n type StaticToolInput,\n type InvokeToolInput,\n type SourceLifecycleInput,\n type SecretListEntry,\n type Elicit,\n definePlugin,\n defineSchema,\n tool,\n} from \"./plugin\";\n\n// Executor\nexport {\n type Executor,\n type ExecutorConfig,\n type OnElicitation,\n type InvokeOptions,\n createExecutor,\n collectSchemas,\n} from \"./executor\";\n\n// CLI / runtime config\nexport {\n defineExecutorConfig,\n type ExecutorCliConfig,\n type ExecutorDialect,\n type ExecutorPluginsFactory,\n} from \"./config\";\n\n// Test helper\nexport { makeTestConfig } from \"./test-config\";\n\n// JSON schema $ref helpers (used by openapi for $defs handling)\nexport { hoistDefinitions, collectRefs, reattachDefs, normalizeRefs } from \"./schema-refs\";\n\n// TypeScript preview generation from JSON schemas\nexport {\n schemaToTypeScriptPreview,\n schemaToTypeScriptPreviewWithDefs,\n buildToolTypeScriptPreview,\n type TypeScriptRenderOptions,\n type TypeScriptSchemaPreview,\n} from \"./schema-types\";\n\n// Wire-level HTTP error schemas usable by plugin HttpApiGroup definitions.\nexport { InternalError } from \"./api-errors\";\n","// ---------------------------------------------------------------------------\n// OAuth popup result — the message shape exchanged between the popup window\n// (opened during authorization) and the opener (the onboarding UI). Both the\n// server-side HTML generator and the client-side popup opener agree on this\n// shape so that success / failure can be communicated reliably via both\n// `postMessage` and `BroadcastChannel`.\n// ---------------------------------------------------------------------------\n\n/** Message type literal used to identify our popup results. */\nexport const OAUTH_POPUP_MESSAGE_TYPE = \"executor:oauth-result\" as const;\n\nexport type OAuthPopupResult<TAuth> =\n | ({\n readonly type: typeof OAUTH_POPUP_MESSAGE_TYPE;\n readonly ok: true;\n readonly sessionId: string;\n } & TAuth)\n | {\n readonly type: typeof OAUTH_POPUP_MESSAGE_TYPE;\n readonly ok: false;\n readonly sessionId: string | null;\n readonly error: string;\n };\n\nexport const isOAuthPopupResult = <TAuth>(value: unknown): value is OAuthPopupResult<TAuth> =>\n typeof value === \"object\" &&\n value !== null &&\n (value as { type?: unknown }).type === OAUTH_POPUP_MESSAGE_TYPE;\n","// ---------------------------------------------------------------------------\n// JSON Schema $ref hoisting and re-attachment\n//\n// Core logic for deduplicating shared definitions across tools.\n// Used by any ToolRegistry implementation (in-memory, database-backed, etc.)\n//\n// Only handles standard JSON Schema formats ($defs, definitions).\n// Plugin-specific formats (e.g. OpenAPI components/schemas) must be\n// normalized by the plugin before calling registerDefinitions/register.\n// ---------------------------------------------------------------------------\n\ntype Obj = Record<string, unknown>;\n\n/** Standard JSON Schema $ref patterns. */\nconst REF_PATTERN = /^#\\/(?:\\$defs|definitions)\\/(.+)$/;\n\n/** Extract the definition name from a standard $ref pointer. */\nconst parseRefName = (ref: string): string | undefined => ref.match(REF_PATTERN)?.[1];\n\n/**\n * Recursively rewrite `#/definitions/<name>` pointers to `#/$defs/<name>`.\n * Returns the input unchanged if no rewrites are needed.\n */\nexport const normalizeRefs = (node: unknown): unknown => {\n if (node == null || typeof node !== \"object\") return node;\n if (Array.isArray(node)) {\n let changed = false;\n const out = node.map((item) => {\n const n = normalizeRefs(item);\n if (n !== item) changed = true;\n return n;\n });\n return changed ? out : node;\n }\n\n const obj = node as Obj;\n\n if (typeof obj.$ref === \"string\") {\n const name = parseRefName(obj.$ref);\n if (name) {\n const canonical = `#/$defs/${name}`;\n return canonical !== obj.$ref ? { ...obj, $ref: canonical } : obj;\n }\n return obj;\n }\n\n let changed = false;\n const result: Obj = {};\n for (const [k, v] of Object.entries(obj)) {\n const n = normalizeRefs(v);\n if (n !== v) changed = true;\n result[k] = n;\n }\n return changed ? result : obj;\n};\n\n/**\n * Extract `$defs` and `definitions` from a JSON Schema,\n * returning { stripped, defs } where `stripped` is the schema without local\n * definitions and `defs` is a flat map of definition name → schema.\n */\nexport const hoistDefinitions = (\n schema: unknown,\n): { stripped: unknown; defs: Record<string, unknown> } => {\n if (schema == null || typeof schema !== \"object\") {\n return { stripped: schema, defs: {} };\n }\n const obj = schema as Obj;\n const defs: Record<string, unknown> = {};\n\n if (obj.$defs && typeof obj.$defs === \"object\") {\n for (const [k, v] of Object.entries(obj.$defs as Obj)) {\n defs[k] = v;\n }\n }\n\n if (obj.definitions && typeof obj.definitions === \"object\") {\n for (const [k, v] of Object.entries(obj.definitions as Obj)) {\n defs[k] = v;\n }\n }\n\n const { $defs: _a, definitions: _b, ...rest } = obj;\n return { stripped: rest, defs };\n};\n\n/**\n * Walk a schema and collect all $ref target names transitively.\n * e.g. \"#/$defs/Address\" → \"Address\", and if Address references City, both.\n */\nexport const collectRefs = (\n node: unknown,\n defs: ReadonlyMap<string, unknown>,\n found: Set<string> = new Set(),\n): Set<string> => {\n if (node == null || typeof node !== \"object\") return found;\n const obj = node as Obj;\n\n if (typeof obj.$ref === \"string\") {\n const name = parseRefName(obj.$ref);\n if (name && !found.has(name)) {\n found.add(name);\n const def = defs.get(name);\n if (def) collectRefs(def, defs, found);\n }\n return found;\n }\n\n for (const v of Object.values(obj)) {\n if (v && typeof v === \"object\") {\n if (Array.isArray(v)) {\n for (const item of v) collectRefs(item, defs, found);\n } else {\n collectRefs(v, defs, found);\n }\n }\n }\n return found;\n};\n\n/**\n * Re-attach only the referenced shared definitions into a schema,\n * so the caller gets a self-contained, usable JSON Schema.\n *\n * Assumes all `$ref` pointers and definitions have already been normalized\n * to `#/$defs/<name>` form at registration time.\n */\nexport const reattachDefs = (schema: unknown, defs: ReadonlyMap<string, unknown>): unknown => {\n if (schema == null || typeof schema !== \"object\") return schema;\n const refs = collectRefs(schema, defs);\n if (refs.size === 0) return schema;\n\n const attached: Record<string, unknown> = {};\n for (const name of refs) {\n const def = defs.get(name);\n if (def) attached[name] = def;\n }\n\n return { ...(schema as Record<string, unknown>), $defs: attached };\n};\n","// ---------------------------------------------------------------------------\n// Wire-level HTTP errors. Lives in the SDK so plugin `HttpApiGroup`\n// definitions (which sit on the SDK side of the dependency graph and\n// must stay publishable) can declare them without dragging in the\n// server-only `@executor-js/api` package. The HTTP edge in\n// `@executor-js/api` re-exports these and pairs them with the\n// translation/capture helpers used by handlers.\n// ---------------------------------------------------------------------------\n\nimport { Schema } from \"effect\";\n\n/** Public 500 surface. Opaque by schema — only `traceId` crosses the wire. */\nexport class InternalError extends Schema.TaggedErrorClass<InternalError>()(\n \"InternalError\",\n {\n /** Opaque correlation id for backend lookup (Sentry event id, log line, etc.). */\n traceId: Schema.String,\n },\n { httpApiStatus: 500 },\n) {}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,SAAS,QAAQ,OAAO,UAAAA,SAAQ,MAAM,cAAc;AAC7D;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAgBP,SAAS,oBAAoB;AAI7B,SAAS,cAAc,4BAA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AM,MAAM,KAAK,IAAI,IAAI;AACzB,QAAI,IAAK,UAAS,IAAI,IAAI;AAAA,EAC5B;AAEA,SAAO,EAAE,GAAI,QAAoC,OAAO,SAAS;AACnE;;;AClIA,SAAS,cAAc;AAGhB,IAAM,gBAAN,cAA4B,OAAO,iBAAgC;AAAA,EACxE;AAAA,EACA;AAAA;AAAA,IAEE,SAAS,OAAO;AAAA,EAClB;AAAA,EACA,EAAE,eAAe,IAAI;AACvB,EAAE;AAAC;","names":["Schema","changed"]}
1
+ {"version":3,"sources":["../src/index.ts","../src/oauth-popup-types.ts","../src/schema-refs.ts","../src/api-errors.ts"],"sourcesContent":["// ---------------------------------------------------------------------------\n// @executor-js/sdk — public surface\n// ---------------------------------------------------------------------------\n\n// Re-export the Effect/Schema/HttpApi primitives plugin authors need so a\n// plugin can be written importing only from `@executor-js/sdk`. Authors who\n// want to reach for additional Effect APIs keep importing from `effect/*`\n// directly — these re-exports are the curated minimum.\nexport { Context, Effect, Layer, Schema, Data, Option } from \"effect\";\nexport {\n HttpApi,\n HttpApiBuilder,\n HttpApiClient,\n HttpApiEndpoint,\n HttpApiGroup,\n HttpApiMiddleware,\n HttpApiSchema,\n} from \"effect/unstable/httpapi\";\n\n// Storage adapter interface types (re-exported from @executor-js/storage-core\n// so plugin authors can write adapters against a single public surface\n// without depending on storage-core directly).\nexport type {\n DBAdapter,\n DBSchema,\n DBFieldAttribute,\n DBFieldType,\n StorageFailure,\n TypedAdapter,\n Where,\n WhereOperator,\n} from \"@executor-js/storage-core\";\n\nexport { typedAdapter } from \"@executor-js/storage-core\";\n\n// Storage-layer typed errors (re-exported so plugin code can catchTag\n// `UniqueViolationError` without importing storage-core directly).\nexport { StorageError, UniqueViolationError } from \"@executor-js/storage-core\";\n\n// IDs (branded)\nexport { ScopeId, ToolId, SecretId, PolicyId, ConnectionId, CredentialBindingId } from \"./ids\";\n\n// Scope\nexport { Scope } from \"./scope\";\n\n// Errors (tagged)\nexport {\n ToolNotFoundError,\n ToolInvocationError,\n ToolBlockedError,\n NoHandlerError,\n SourceNotFoundError,\n SourceRemovalNotAllowedError,\n PluginNotLoadedError,\n SecretNotFoundError,\n SecretResolutionError,\n SecretOwnedByConnectionError,\n SecretInUseError,\n ConnectionNotFoundError,\n ConnectionProviderNotRegisteredError,\n ConnectionRefreshNotSupportedError,\n ConnectionReauthRequiredError,\n ConnectionInUseError,\n type ExecutorError,\n} from \"./errors\";\n\n// Public projections\nexport {\n ToolSchema,\n SourceDetectionResult,\n type RefreshSourceInput,\n type RemoveSourceInput,\n type Source,\n type Tool,\n type ToolListFilter,\n} from \"./types\";\n\n// Core schema\nexport {\n coreSchema,\n isToolPolicyAction,\n TOOL_POLICY_ACTIONS,\n type CoreSchema,\n type SourceInput,\n type SourceInputTool,\n type SourceRow,\n type ToolRow,\n type DefinitionRow,\n type SecretRow,\n type ConnectionRow,\n type CredentialBindingRow,\n type ToolPolicyRow,\n type ToolPolicyAction,\n type DefinitionsInput,\n type ToolAnnotations,\n} from \"./core-schema\";\n\n// Tool policies\nexport {\n matchPattern,\n isValidPattern,\n resolveToolPolicy,\n resolveEffectivePolicy,\n effectivePolicyFromSorted,\n rowToToolPolicy,\n ToolPolicyActionSchema,\n type ToolPolicy,\n type CreateToolPolicyInput,\n type UpdateToolPolicyInput,\n type RemoveToolPolicyInput,\n type PolicyMatch,\n type EffectivePolicy,\n type PolicySource,\n} from \"./policies\";\n\n// Secrets\nexport { SecretRef, SetSecretInput, RemoveSecretInput, type SecretProvider } from \"./secrets\";\n\nexport {\n SecretBackedMap,\n SecretBackedValue,\n isSecretBackedRef,\n resolveSecretBackedMap,\n type ResolveSecretBackedMapOptions,\n} from \"./secret-backed-value\";\n\nexport {\n CredentialBindingKind,\n CredentialBindingValue,\n ConfiguredCredentialBinding,\n ConfiguredCredentialValue,\n ScopedSecretCredentialInput,\n CredentialBindingRef,\n SetCredentialBindingInput,\n CredentialBindingSourceInput,\n CredentialBindingSlotInput,\n RemoveCredentialBindingInput,\n ReplaceCredentialBindingValue,\n ReplaceCredentialBindingsInput,\n CredentialBindingResolutionStatus,\n ResolvedCredentialSlot,\n credentialBindingId,\n credentialSlotKey,\n credentialSlotPart,\n credentialBindingRowToRef,\n credentialBindingValueFromRow,\n type CredentialBindingsFacade,\n} from \"./credential-bindings\";\n\n// Usage tracking — secret/connection refs across plugins\nexport { Usage, type UsagesForSecretInput, type UsagesForConnectionInput } from \"./usages\";\n\n// Connections\nexport {\n ConnectionRef,\n ConnectionProviderState,\n CreateConnectionInput,\n RemoveConnectionInput,\n UpdateConnectionTokensInput,\n TokenMaterial,\n ConnectionRefreshError,\n type ConnectionProvider,\n type ConnectionRefreshInput,\n type ConnectionRefreshResult,\n} from \"./connections\";\n\n// Elicitation\nexport {\n FormElicitation,\n UrlElicitation,\n ElicitationAction,\n ElicitationResponse,\n ElicitationDeclinedError,\n type ElicitationRequest,\n type ElicitationHandler,\n type ElicitationContext,\n} from \"./elicitation\";\n\n// Blob store\nexport {\n type BlobStore,\n type PluginBlobStore,\n pluginBlobStore,\n makeInMemoryBlobStore,\n} from \"./blob\";\n\n// OAuth 2.1\nexport {\n type OAuthService,\n type OAuthStrategy,\n type OAuthDynamicDcrStrategy,\n type OAuthAuthorizationCodeStrategy,\n type OAuthClientCredentialsStrategy,\n type OAuthProviderState,\n type OAuthProbeInput,\n type OAuthProbeResult,\n type OAuthStartInput,\n type OAuthStartResult,\n type OAuthCompleteInput,\n type OAuthCompleteResult,\n OAuthProbeError,\n OAuthStartError,\n OAuthCompleteError,\n OAuthSessionNotFoundError,\n OAUTH2_PROVIDER_KEY,\n OAUTH2_SESSION_TTL_MS,\n OAuthStrategy as OAuthStrategySchema,\n OAuthProviderState as OAuthProviderStateSchema,\n OAuthDynamicDcrStrategy as OAuthDynamicDcrStrategySchema,\n OAuthAuthorizationCodeStrategy as OAuthAuthorizationCodeStrategySchema,\n OAuthClientCredentialsStrategy as OAuthClientCredentialsStrategySchema,\n} from \"./oauth\";\n\nexport {\n OAuth2Error,\n OAUTH2_DEFAULT_TIMEOUT_MS,\n OAUTH2_REFRESH_SKEW_MS,\n assertSupportedOAuthEndpointUrl,\n buildAuthorizationUrl,\n createPkceCodeChallenge,\n createPkceCodeVerifier,\n exchangeAuthorizationCode,\n exchangeClientCredentials,\n isSupportedOAuthEndpointUrl,\n refreshAccessToken,\n shouldRefreshToken,\n type OAuth2TokenResponse,\n type BuildAuthorizationUrlInput,\n type ClientAuthMethod,\n type ExchangeAuthorizationCodeInput,\n type ExchangeClientCredentialsInput,\n type RefreshAccessTokenInput,\n} from \"./oauth-helpers\";\n\nexport { makeOAuth2Service, type OAuthServiceDeps } from \"./oauth-service\";\nexport type { ScopedDBAdapter, ScopedTypedAdapter } from \"./scoped-adapter\";\n\nexport {\n HostedOutboundRequestBlocked,\n makeHostedHttpClientLayer,\n validateHostedOutboundUrl,\n type HostedHttpClientOptions,\n} from \"./hosted-http-client\";\n\nexport {\n OAuthDiscoveryError,\n OAuthAuthorizationServerMetadataSchema,\n OAuthClientInformationSchema,\n OAuthProtectedResourceMetadataSchema,\n beginDynamicAuthorization,\n discoverAuthorizationServerMetadata,\n discoverProtectedResourceMetadata,\n registerDynamicClient,\n type BeginDynamicAuthorizationInput,\n type DiscoveryRequestOptions,\n type DynamicAuthorizationState,\n type DynamicAuthorizationStartResult,\n type DynamicClientMetadata,\n type OAuthAuthorizationServerMetadata,\n type OAuthClientInformation,\n type OAuthProtectedResourceMetadata,\n type RegisterDynamicClientInput,\n} from \"./oauth-discovery\";\n\nexport {\n OAUTH_POPUP_MESSAGE_TYPE,\n type OAuthPopupResult,\n isOAuthPopupResult,\n} from \"./oauth-popup-types\";\n\n// Plugin definition\nexport {\n type Plugin,\n type PluginSpec,\n type PluginCtx,\n type PluginExtensions,\n type ConfiguredPlugin,\n type AnyPlugin,\n type StorageDeps,\n type StaticSourceDecl,\n type StaticToolDecl,\n type StaticToolExecuteContext,\n type StaticToolHandlerInput,\n type StaticToolInput,\n type InvokeToolInput,\n type SourceLifecycleInput,\n type SecretListEntry,\n type Elicit,\n definePlugin,\n defineSchema,\n tool,\n} from \"./plugin\";\n\n// Executor\nexport {\n type Executor,\n type ExecutorConfig,\n type OnElicitation,\n type InvokeOptions,\n createExecutor,\n collectSchemas,\n} from \"./executor\";\n\n// CLI / runtime config\nexport {\n defineExecutorConfig,\n type ExecutorCliConfig,\n type ExecutorDialect,\n type ExecutorPluginsFactory,\n} from \"./config\";\n\n// Test helper\nexport { makeTestConfig } from \"./test-config\";\n\n// JSON schema $ref helpers (used by openapi for $defs handling)\nexport { hoistDefinitions, collectRefs, reattachDefs, normalizeRefs } from \"./schema-refs\";\n\n// TypeScript preview generation from JSON schemas\nexport {\n schemaToTypeScriptPreview,\n schemaToTypeScriptPreviewWithDefs,\n buildToolTypeScriptPreview,\n type TypeScriptRenderOptions,\n type TypeScriptSchemaPreview,\n} from \"./schema-types\";\n\n// Wire-level HTTP error schemas usable by plugin HttpApiGroup definitions.\nexport { InternalError } from \"./api-errors\";\n","// ---------------------------------------------------------------------------\n// OAuth popup result — the message shape exchanged between the popup window\n// (opened during authorization) and the opener (the onboarding UI). Both the\n// server-side HTML generator and the client-side popup opener agree on this\n// shape so that success / failure can be communicated reliably via both\n// `postMessage` and `BroadcastChannel`.\n// ---------------------------------------------------------------------------\n\n/** Message type literal used to identify our popup results. */\nexport const OAUTH_POPUP_MESSAGE_TYPE = \"executor:oauth-result\" as const;\n\nexport type OAuthPopupResult<TAuth> =\n | ({\n readonly type: typeof OAUTH_POPUP_MESSAGE_TYPE;\n readonly ok: true;\n readonly sessionId: string;\n } & TAuth)\n | {\n readonly type: typeof OAUTH_POPUP_MESSAGE_TYPE;\n readonly ok: false;\n readonly sessionId: string | null;\n /** Short user-facing summary. */\n readonly error: string;\n /** Full technical detail. Omitted when identical to `error`. */\n readonly errorDetails?: string;\n };\n\nexport const isOAuthPopupResult = <TAuth>(value: unknown): value is OAuthPopupResult<TAuth> =>\n typeof value === \"object\" &&\n value !== null &&\n (value as { type?: unknown }).type === OAUTH_POPUP_MESSAGE_TYPE;\n","// ---------------------------------------------------------------------------\n// JSON Schema $ref hoisting and re-attachment\n//\n// Core logic for deduplicating shared definitions across tools.\n// Used by any ToolRegistry implementation (in-memory, database-backed, etc.)\n//\n// Only handles standard JSON Schema formats ($defs, definitions).\n// Plugin-specific formats (e.g. OpenAPI components/schemas) must be\n// normalized by the plugin before calling registerDefinitions/register.\n// ---------------------------------------------------------------------------\n\ntype Obj = Record<string, unknown>;\n\n/** Standard JSON Schema $ref patterns. */\nconst REF_PATTERN = /^#\\/(?:\\$defs|definitions)\\/(.+)$/;\n\n/** Extract the definition name from a standard $ref pointer. */\nconst parseRefName = (ref: string): string | undefined => ref.match(REF_PATTERN)?.[1];\n\n/**\n * Recursively rewrite `#/definitions/<name>` pointers to `#/$defs/<name>`.\n * Returns the input unchanged if no rewrites are needed.\n */\nexport const normalizeRefs = (node: unknown): unknown => {\n if (node == null || typeof node !== \"object\") return node;\n if (Array.isArray(node)) {\n let changed = false;\n const out = node.map((item) => {\n const n = normalizeRefs(item);\n if (n !== item) changed = true;\n return n;\n });\n return changed ? out : node;\n }\n\n const obj = node as Obj;\n\n if (typeof obj.$ref === \"string\") {\n const name = parseRefName(obj.$ref);\n if (name) {\n const canonical = `#/$defs/${name}`;\n return canonical !== obj.$ref ? { ...obj, $ref: canonical } : obj;\n }\n return obj;\n }\n\n let changed = false;\n const result: Obj = {};\n for (const [k, v] of Object.entries(obj)) {\n const n = normalizeRefs(v);\n if (n !== v) changed = true;\n result[k] = n;\n }\n return changed ? result : obj;\n};\n\n/**\n * Extract `$defs` and `definitions` from a JSON Schema,\n * returning { stripped, defs } where `stripped` is the schema without local\n * definitions and `defs` is a flat map of definition name → schema.\n */\nexport const hoistDefinitions = (\n schema: unknown,\n): { stripped: unknown; defs: Record<string, unknown> } => {\n if (schema == null || typeof schema !== \"object\") {\n return { stripped: schema, defs: {} };\n }\n const obj = schema as Obj;\n const defs: Record<string, unknown> = {};\n\n if (obj.$defs && typeof obj.$defs === \"object\") {\n for (const [k, v] of Object.entries(obj.$defs as Obj)) {\n defs[k] = v;\n }\n }\n\n if (obj.definitions && typeof obj.definitions === \"object\") {\n for (const [k, v] of Object.entries(obj.definitions as Obj)) {\n defs[k] = v;\n }\n }\n\n const { $defs: _a, definitions: _b, ...rest } = obj;\n return { stripped: rest, defs };\n};\n\n/**\n * Walk a schema and collect all $ref target names transitively.\n * e.g. \"#/$defs/Address\" → \"Address\", and if Address references City, both.\n */\nexport const collectRefs = (\n node: unknown,\n defs: ReadonlyMap<string, unknown>,\n found: Set<string> = new Set(),\n): Set<string> => {\n if (node == null || typeof node !== \"object\") return found;\n const obj = node as Obj;\n\n if (typeof obj.$ref === \"string\") {\n const name = parseRefName(obj.$ref);\n if (name && !found.has(name)) {\n found.add(name);\n const def = defs.get(name);\n if (def) collectRefs(def, defs, found);\n }\n return found;\n }\n\n for (const v of Object.values(obj)) {\n if (v && typeof v === \"object\") {\n if (Array.isArray(v)) {\n for (const item of v) collectRefs(item, defs, found);\n } else {\n collectRefs(v, defs, found);\n }\n }\n }\n return found;\n};\n\n/**\n * Re-attach only the referenced shared definitions into a schema,\n * so the caller gets a self-contained, usable JSON Schema.\n *\n * Assumes all `$ref` pointers and definitions have already been normalized\n * to `#/$defs/<name>` form at registration time.\n */\nexport const reattachDefs = (schema: unknown, defs: ReadonlyMap<string, unknown>): unknown => {\n if (schema == null || typeof schema !== \"object\") return schema;\n const refs = collectRefs(schema, defs);\n if (refs.size === 0) return schema;\n\n const attached: Record<string, unknown> = {};\n for (const name of refs) {\n const def = defs.get(name);\n if (def) attached[name] = def;\n }\n\n return { ...(schema as Record<string, unknown>), $defs: attached };\n};\n","// ---------------------------------------------------------------------------\n// Wire-level HTTP errors. Lives in the SDK so plugin `HttpApiGroup`\n// definitions (which sit on the SDK side of the dependency graph and\n// must stay publishable) can declare them without dragging in the\n// server-only `@executor-js/api` package. The HTTP edge in\n// `@executor-js/api` re-exports these and pairs them with the\n// translation/capture helpers used by handlers.\n// ---------------------------------------------------------------------------\n\nimport { Schema } from \"effect\";\n\n/** Public 500 surface. Opaque by schema — only `traceId` crosses the wire. */\nexport class InternalError extends Schema.TaggedErrorClass<InternalError>()(\n \"InternalError\",\n {\n /** Opaque correlation id for backend lookup (Sentry event id, log line, etc.). */\n traceId: Schema.String,\n },\n { httpApiStatus: 500 },\n) {}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,SAAS,QAAQ,OAAO,UAAAA,SAAQ,MAAM,cAAc;AAC7D;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAgBP,SAAS,oBAAoB;AAI7B,SAAS,cAAc,4BAA4B;;;AC5B5C,IAAM,2BAA2B;AAkBjC,IAAM,qBAAqB,CAAQ,UACxC,OAAO,UAAU,YACjB,UAAU,QACT,MAA6B,SAAS;;;AChBzC,IAAM,cAAc;AAGpB,IAAM,eAAe,CAAC,QAAoC,IAAI,MAAM,WAAW,IAAI,CAAC;AAM7E,IAAM,gBAAgB,CAAC,SAA2B;AACvD,MAAI,QAAQ,QAAQ,OAAO,SAAS,SAAU,QAAO;AACrD,MAAI,MAAM,QAAQ,IAAI,GAAG;AACvB,QAAIC,WAAU;AACd,UAAM,MAAM,KAAK,IAAI,CAAC,SAAS;AAC7B,YAAM,IAAI,cAAc,IAAI;AAC5B,UAAI,MAAM,KAAM,CAAAA,WAAU;AAC1B,aAAO;AAAA,IACT,CAAC;AACD,WAAOA,WAAU,MAAM;AAAA,EACzB;AAEA,QAAM,MAAM;AAEZ,MAAI,OAAO,IAAI,SAAS,UAAU;AAChC,UAAM,OAAO,aAAa,IAAI,IAAI;AAClC,QAAI,MAAM;AACR,YAAM,YAAY,W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d,YAAM,MAAM,KAAK,IAAI,IAAI;AACzB,UAAI,IAAK,aAAY,KAAK,MAAM,KAAK;AAAA,IACvC;AACA,WAAO;AAAA,EACT;AAEA,aAAW,KAAK,OAAO,OAAO,GAAG,GAAG;AAClC,QAAI,KAAK,OAAO,MAAM,UAAU;AAC9B,UAAI,MAAM,QAAQ,CAAC,GAAG;AACpB,mBAAW,QAAQ,EAAG,aAAY,MAAM,MAAM,KAAK;AAAA,MACrD,OAAO;AACL,oBAAY,GAAG,MAAM,KAAK;AAAA,MAC5B;AAAA,IACF;AAAA,EACF;AACA,SAAO;AACT;AASO,IAAM,eAAe,CAAC,QAAiB,SAAgD;AAC5F,MAAI,UAAU,QAAQ,OAAO,WAAW,SAAU,QAAO;AACzD,QAAM,OAAO,YAAY,QAAQ,IAAI;AACrC,MAAI,KAAK,SAAS,EAAG,QAAO;AAE5B,QAAM,WAAoC,CAAC;AAC3C,aAAW,QAAQ,MAAM;AACvB,UAAM,MAAM,KAAK,IAAI,IAAI;AACzB,QAAI,IAAK,UAAS,IAAI,IAAI;AAAA,EAC5B;AAEA,SAAO,EAAE,GAAI,QAAoC,OAAO,SAAS;AACnE;;;AClIA,SAAS,cAAc;AAGhB,IAAM,gBAAN,cAA4B,OAAO,iBAAgC;AAAA,EACxE;AAAA,EACA;AAAA;AAAA,IAEE,SAAS,OAAO;AAAA,EAClB;AAAA,EACA,EAAE,eAAe,IAAI;AACvB,EAAE;AAAC;","names":["Schema","changed"]}
@@ -17,25 +17,18 @@ export declare const CredentialBindingValue: Schema.Union<readonly [Schema.Struc
17
17
  readonly connectionId: Schema.brand<Schema.String, "ConnectionId">;
18
18
  }>]>;
19
19
  export type CredentialBindingValue = typeof CredentialBindingValue.Type;
20
- export declare const ConfiguredCredentialBindingSchema: Schema.Struct<{
20
+ export declare const ConfiguredCredentialBinding: Schema.Struct<{
21
21
  readonly kind: Schema.Literal<"binding">;
22
22
  readonly slot: Schema.String;
23
23
  readonly prefix: Schema.optional<Schema.String>;
24
24
  }>;
25
- declare const ConfiguredCredentialBinding_base: Schema.Class<ConfiguredCredentialBinding, Schema.Struct<{
26
- readonly kind: Schema.Literal<"binding">;
27
- readonly slot: Schema.String;
28
- readonly prefix: Schema.optional<Schema.String>;
29
- }>, {}>;
30
- export declare class ConfiguredCredentialBinding extends ConfiguredCredentialBinding_base {
31
- }
32
- export declare const ConfiguredCredentialValue: Schema.Union<readonly [Schema.String, typeof ConfiguredCredentialBinding]>;
33
- export type ConfiguredCredentialValue = typeof ConfiguredCredentialValue.Type;
34
- export declare const ConfiguredCredentialValueSchema: Schema.Union<readonly [Schema.String, Schema.Struct<{
25
+ export type ConfiguredCredentialBinding = typeof ConfiguredCredentialBinding.Type;
26
+ export declare const ConfiguredCredentialValue: Schema.Union<readonly [Schema.String, Schema.Struct<{
35
27
  readonly kind: Schema.Literal<"binding">;
36
28
  readonly slot: Schema.String;
37
29
  readonly prefix: Schema.optional<Schema.String>;
38
30
  }>]>;
31
+ export type ConfiguredCredentialValue = typeof ConfiguredCredentialValue.Type;
39
32
  export declare const ScopedSecretCredentialInput: Schema.Struct<{
40
33
  readonly secretId: Schema.String;
41
34
  readonly prefix: Schema.optional<Schema.String>;
@@ -43,7 +36,7 @@ export declare const ScopedSecretCredentialInput: Schema.Struct<{
43
36
  readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
44
37
  }>;
45
38
  export type ScopedSecretCredentialInput = typeof ScopedSecretCredentialInput.Type;
46
- declare const CredentialBindingRef_base: Schema.Class<CredentialBindingRef, Schema.Struct<{
39
+ export declare const CredentialBindingRef: Schema.Struct<{
47
40
  readonly id: Schema.brand<Schema.String, "CredentialBindingId">;
48
41
  readonly scopeId: Schema.brand<Schema.String, "ScopeId">;
49
42
  readonly pluginId: Schema.String;
@@ -63,10 +56,9 @@ declare const CredentialBindingRef_base: Schema.Class<CredentialBindingRef, Sche
63
56
  }>]>;
64
57
  readonly createdAt: Schema.Date;
65
58
  readonly updatedAt: Schema.Date;
66
- }>, {}>;
67
- export declare class CredentialBindingRef extends CredentialBindingRef_base {
68
- }
69
- declare const SetCredentialBindingInput_base: Schema.Class<SetCredentialBindingInput, Schema.Struct<{
59
+ }>;
60
+ export type CredentialBindingRef = typeof CredentialBindingRef.Type;
61
+ export declare const SetCredentialBindingInput: Schema.Struct<{
70
62
  readonly targetScope: Schema.brand<Schema.String, "ScopeId">;
71
63
  readonly pluginId: Schema.String;
72
64
  readonly sourceId: Schema.String;
@@ -83,34 +75,30 @@ declare const SetCredentialBindingInput_base: Schema.Class<SetCredentialBindingI
83
75
  readonly kind: Schema.Literal<"connection">;
84
76
  readonly connectionId: Schema.brand<Schema.String, "ConnectionId">;
85
77
  }>]>;
86
- }>, {}>;
87
- export declare class SetCredentialBindingInput extends SetCredentialBindingInput_base {
88
- }
89
- declare const CredentialBindingSourceInput_base: Schema.Class<CredentialBindingSourceInput, Schema.Struct<{
78
+ }>;
79
+ export type SetCredentialBindingInput = typeof SetCredentialBindingInput.Type;
80
+ export declare const CredentialBindingSourceInput: Schema.Struct<{
90
81
  readonly pluginId: Schema.String;
91
82
  readonly sourceId: Schema.String;
92
83
  readonly sourceScope: Schema.brand<Schema.String, "ScopeId">;
93
- }>, {}>;
94
- export declare class CredentialBindingSourceInput extends CredentialBindingSourceInput_base {
95
- }
96
- declare const CredentialBindingSlotInput_base: Schema.Class<CredentialBindingSlotInput, Schema.Struct<{
84
+ }>;
85
+ export type CredentialBindingSourceInput = typeof CredentialBindingSourceInput.Type;
86
+ export declare const CredentialBindingSlotInput: Schema.Struct<{
97
87
  readonly pluginId: Schema.String;
98
88
  readonly sourceId: Schema.String;
99
89
  readonly sourceScope: Schema.brand<Schema.String, "ScopeId">;
100
90
  readonly slotKey: Schema.String;
101
- }>, {}>;
102
- export declare class CredentialBindingSlotInput extends CredentialBindingSlotInput_base {
103
- }
104
- declare const RemoveCredentialBindingInput_base: Schema.Class<RemoveCredentialBindingInput, Schema.Struct<{
91
+ }>;
92
+ export type CredentialBindingSlotInput = typeof CredentialBindingSlotInput.Type;
93
+ export declare const RemoveCredentialBindingInput: Schema.Struct<{
105
94
  readonly targetScope: Schema.brand<Schema.String, "ScopeId">;
106
95
  readonly pluginId: Schema.String;
107
96
  readonly sourceId: Schema.String;
108
97
  readonly sourceScope: Schema.brand<Schema.String, "ScopeId">;
109
98
  readonly slotKey: Schema.String;
110
- }>, {}>;
111
- export declare class RemoveCredentialBindingInput extends RemoveCredentialBindingInput_base {
112
- }
113
- declare const ReplaceCredentialBindingValue_base: Schema.Class<ReplaceCredentialBindingValue, Schema.Struct<{
99
+ }>;
100
+ export type RemoveCredentialBindingInput = typeof RemoveCredentialBindingInput.Type;
101
+ export declare const ReplaceCredentialBindingValue: Schema.Struct<{
114
102
  readonly slotKey: Schema.String;
115
103
  readonly value: Schema.Union<readonly [Schema.Struct<{
116
104
  readonly kind: Schema.Literal<"text">;
@@ -123,22 +111,33 @@ declare const ReplaceCredentialBindingValue_base: Schema.Class<ReplaceCredential
123
111
  readonly kind: Schema.Literal<"connection">;
124
112
  readonly connectionId: Schema.brand<Schema.String, "ConnectionId">;
125
113
  }>]>;
126
- }>, {}>;
127
- export declare class ReplaceCredentialBindingValue extends ReplaceCredentialBindingValue_base {
128
- }
129
- declare const ReplaceCredentialBindingsInput_base: Schema.Class<ReplaceCredentialBindingsInput, Schema.Struct<{
114
+ }>;
115
+ export type ReplaceCredentialBindingValue = typeof ReplaceCredentialBindingValue.Type;
116
+ export declare const ReplaceCredentialBindingsInput: Schema.Struct<{
130
117
  readonly targetScope: Schema.brand<Schema.String, "ScopeId">;
131
118
  readonly pluginId: Schema.String;
132
119
  readonly sourceId: Schema.String;
133
120
  readonly sourceScope: Schema.brand<Schema.String, "ScopeId">;
134
121
  readonly slotPrefixes: Schema.$Array<Schema.String>;
135
- readonly bindings: Schema.$Array<typeof ReplaceCredentialBindingValue>;
136
- }>, {}>;
137
- export declare class ReplaceCredentialBindingsInput extends ReplaceCredentialBindingsInput_base {
138
- }
122
+ readonly bindings: Schema.$Array<Schema.Struct<{
123
+ readonly slotKey: Schema.String;
124
+ readonly value: Schema.Union<readonly [Schema.Struct<{
125
+ readonly kind: Schema.Literal<"text">;
126
+ readonly text: Schema.String;
127
+ }>, Schema.Struct<{
128
+ readonly kind: Schema.Literal<"secret">;
129
+ readonly secretId: Schema.brand<Schema.String, "SecretId">;
130
+ readonly secretScopeId: Schema.optional<Schema.brand<Schema.String, "ScopeId">>;
131
+ }>, Schema.Struct<{
132
+ readonly kind: Schema.Literal<"connection">;
133
+ readonly connectionId: Schema.brand<Schema.String, "ConnectionId">;
134
+ }>]>;
135
+ }>>;
136
+ }>;
137
+ export type ReplaceCredentialBindingsInput = typeof ReplaceCredentialBindingsInput.Type;
139
138
  export declare const CredentialBindingResolutionStatus: Schema.Literals<readonly ["resolved", "missing", "blocked"]>;
140
139
  export type CredentialBindingResolutionStatus = typeof CredentialBindingResolutionStatus.Type;
141
- declare const ResolvedCredentialSlot_base: Schema.Class<ResolvedCredentialSlot, Schema.Struct<{
140
+ export declare const ResolvedCredentialSlot: Schema.Struct<{
142
141
  readonly pluginId: Schema.String;
143
142
  readonly sourceId: Schema.String;
144
143
  readonly sourceScopeId: Schema.brand<Schema.String, "ScopeId">;
@@ -146,9 +145,8 @@ declare const ResolvedCredentialSlot_base: Schema.Class<ResolvedCredentialSlot,
146
145
  readonly bindingScopeId: Schema.NullOr<Schema.brand<Schema.String, "ScopeId">>;
147
146
  readonly kind: Schema.NullOr<Schema.Literals<["text", "secret", "connection"]>>;
148
147
  readonly status: Schema.Literals<readonly ["resolved", "missing", "blocked"]>;
149
- }>, {}>;
150
- export declare class ResolvedCredentialSlot extends ResolvedCredentialSlot_base {
151
- }
148
+ }>;
149
+ export type ResolvedCredentialSlot = typeof ResolvedCredentialSlot.Type;
152
150
  export interface CredentialBindingsFacade {
153
151
  readonly listForSource: (input: CredentialBindingSourceInput) => Effect.Effect<readonly CredentialBindingRef[], StorageFailure>;
154
152
  readonly resolve: (input: CredentialBindingSlotInput) => Effect.Effect<ResolvedCredentialSlot, StorageFailure>;
@@ -169,5 +167,4 @@ export declare const credentialSlotPart: (value: string) => string;
169
167
  export declare const credentialSlotKey: (prefix: string, name: string) => string;
170
168
  export declare const credentialBindingValueFromRow: (row: CredentialBindingRow) => CredentialBindingValue;
171
169
  export declare const credentialBindingRowToRef: (row: CredentialBindingRow) => CredentialBindingRef;
172
- export {};
173
170
  //# sourceMappingURL=credential-bindings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"credential-bindings.d.ts","sourceRoot":"","sources":["../src/credential-bindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAS,MAAM,EAAE,MAAM,QAAQ,CAAC;AAE/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,EAA0B,KAAK,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAClF,OAAO,EAAgB,mBAAmB,EAAqB,MAAM,OAAO,CAAC;AAC7E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,eAAO,MAAM,qBAAqB,mDAA0C,CAAC;AAC7E,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAC;AAEtE,eAAO,MAAM,sBAAsB;;;;;;;;;;IAcjC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,IAAI,CAAC;AAExE,eAAO,MAAM,iCAAiC;;;;EAI5C,CAAC;;;;;;AAEH,qBAAa,2BAA4B,SAAQ,gCAEN;CAAG;AAE9C,eAAO,MAAM,yBAAyB,4EAA6D,CAAC;AACpG,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,IAAI,CAAC;AAE9E,eAAO,MAAM,+BAA+B;;;;IAG1C,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;EAKtC,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC,IA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AAM,CAAC,MAAM,CAAC,SAAS,KAAK,EAAE,EAAE,cAAc,CAAC,CAAC;IAC1F,QAAQ,CAAC,mBAAmB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,CAAC,SAAS,KAAK,EAAE,EAAE,cAAc,CAAC,CAAC;CAC/F;AAED,eAAO,MAAM,mBAAmB,GAAI,OAAO;IACzC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B,KAAG,mBAGD,CAAC;AAEJ,eAAO,MAAM,kBAAkB,GAAI,OAAO,MAAM,KAAG,MAKV,CAAC;AAE1C,eAAO,MAAM,iBAAiB,GAAI,QAAQ,MAAM,EAAE,MAAM,MAAM,KAAG,MACxB,CAAC;AAE1C,eAAO,MAAM,6BAA6B,GAAI,KAAK,oBAAoB,KAAG,sBAgBvE,CAAC;AAEJ,eAAO,MAAM,yBAAyB,GAAI,KAAK,oBAAoB,KAAG,oBAarE,CAAC"}
@@ -1,32 +1,29 @@
1
1
  import { Effect, Schema } from "effect";
2
2
  import { ToolId } from "./ids";
3
- declare const FormElicitation_base: Schema.Class<FormElicitation, Schema.TaggedStruct<"FormElicitation", {
3
+ /** Tool needs structured input from the user (render a form) */
4
+ export declare const FormElicitation: Schema.TaggedStruct<"FormElicitation", {
4
5
  readonly message: Schema.String;
5
6
  /** JSON Schema describing the fields to collect */
6
7
  readonly requestedSchema: Schema.$Record<Schema.String, Schema.Unknown>;
7
- }>, {}>;
8
- /** Tool needs structured input from the user (render a form) */
9
- export declare class FormElicitation extends FormElicitation_base {
10
- }
11
- declare const UrlElicitation_base: Schema.Class<UrlElicitation, Schema.TaggedStruct<"UrlElicitation", {
8
+ }>;
9
+ export type FormElicitation = typeof FormElicitation.Type;
10
+ /** Tool needs the user to visit a URL (OAuth, approval page, etc.) */
11
+ export declare const UrlElicitation: Schema.TaggedStruct<"UrlElicitation", {
12
12
  readonly message: Schema.String;
13
13
  readonly url: Schema.String;
14
14
  /** Unique ID so the host can correlate the callback */
15
15
  readonly elicitationId: Schema.String;
16
- }>, {}>;
17
- /** Tool needs the user to visit a URL (OAuth, approval page, etc.) */
18
- export declare class UrlElicitation extends UrlElicitation_base {
19
- }
16
+ }>;
17
+ export type UrlElicitation = typeof UrlElicitation.Type;
20
18
  export type ElicitationRequest = FormElicitation | UrlElicitation;
21
19
  export declare const ElicitationAction: Schema.Literals<readonly ["accept", "decline", "cancel"]>;
22
20
  export type ElicitationAction = typeof ElicitationAction.Type;
23
- declare const ElicitationResponse_base: Schema.Class<ElicitationResponse, Schema.Struct<{
21
+ export declare const ElicitationResponse: Schema.Struct<{
24
22
  readonly action: Schema.Literals<readonly ["accept", "decline", "cancel"]>;
25
23
  /** Present when action is "accept" — the data the user provided */
26
24
  readonly content: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
27
- }>, {}>;
28
- export declare class ElicitationResponse extends ElicitationResponse_base {
29
- }
25
+ }>;
26
+ export type ElicitationResponse = typeof ElicitationResponse.Type;
30
27
  export interface ElicitationContext {
31
28
  readonly toolId: ToolId;
32
29
  readonly args: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"elicitation.d.ts","sourceRoot":"","sources":["../src/elicitation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;;;IAS7B,mDAAmD;;;AAHrD,gEAAgE;AAChE,qBAAa,eAAgB,SAAQ,oBAInC;CAAG;;;;IAMH,uDAAuD;;;AAJzD,sEAAsE;AACtE,qBAAa,cAAe,SAAQ,mBAKlC;CAAG;AAEL,MAAM,MAAM,kBAAkB,GAAG,eAAe,GAAG,cAAc,CAAC;AAMlE,eAAO,MAAM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C;IACzD,QAAQ,CAAC,eAAe,CAAC,EAAE;QACzB,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;QAC/B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;QAC/B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAC7B,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC;QAClC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,OAAO,CAAC;KACzC,CAAC;CACH;AASD,eAAO,MAAM,cAAc,GAAI,SAAS,SAAS,SAAS,EAAE,KAAG,QAkB9D,CAAC;AA2WF,eAAO,MAAM,cAAc,GAAI,KAAK,CAAC,QAAQ,SAAS,SAAS,SAAS,EAAE,GAAG,EAAE,EAC7E,QAAQ,cAAc,CAAC,QAAQ,CAAC,KAC/B,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,cAAc,CAw4F/C,CAAC"}
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ export { coreSchema, isToolPolicyAction, TOOL_POLICY_ACTIONS, type CoreSchema, t
11
11
  export { matchPattern, isValidPattern, resolveToolPolicy, resolveEffectivePolicy, effectivePolicyFromSorted, rowToToolPolicy, ToolPolicyActionSchema, type ToolPolicy, type CreateToolPolicyInput, type UpdateToolPolicyInput, type RemoveToolPolicyInput, type PolicyMatch, type EffectivePolicy, type PolicySource, } from "./policies";
12
12
  export { SecretRef, SetSecretInput, RemoveSecretInput, type SecretProvider } from "./secrets";
13
13
  export { SecretBackedMap, SecretBackedValue, isSecretBackedRef, resolveSecretBackedMap, type ResolveSecretBackedMapOptions, } from "./secret-backed-value";
14
- export { CredentialBindingKind, CredentialBindingValue, ConfiguredCredentialBinding, ConfiguredCredentialValue, ConfiguredCredentialValueSchema, ScopedSecretCredentialInput, CredentialBindingRef, SetCredentialBindingInput, CredentialBindingSourceInput, CredentialBindingSlotInput, RemoveCredentialBindingInput, ReplaceCredentialBindingValue, ReplaceCredentialBindingsInput, CredentialBindingResolutionStatus, ResolvedCredentialSlot, credentialBindingId, credentialSlotKey, credentialSlotPart, credentialBindingRowToRef, credentialBindingValueFromRow, type CredentialBindingsFacade, } from "./credential-bindings";
14
+ export { CredentialBindingKind, CredentialBindingValue, ConfiguredCredentialBinding, ConfiguredCredentialValue, ScopedSecretCredentialInput, CredentialBindingRef, SetCredentialBindingInput, CredentialBindingSourceInput, CredentialBindingSlotInput, RemoveCredentialBindingInput, ReplaceCredentialBindingValue, ReplaceCredentialBindingsInput, CredentialBindingResolutionStatus, ResolvedCredentialSlot, credentialBindingId, credentialSlotKey, credentialSlotPart, credentialBindingRowToRef, credentialBindingValueFromRow, type CredentialBindingsFacade, } from "./credential-bindings";
15
15
  export { Usage, type UsagesForSecretInput, type UsagesForConnectionInput } from "./usages";
16
16
  export { ConnectionRef, ConnectionProviderState, CreateConnectionInput, RemoveConnectionInput, UpdateConnectionTokensInput, TokenMaterial, ConnectionRefreshError, type ConnectionProvider, type ConnectionRefreshInput, type ConnectionRefreshResult, } from "./connections";
17
17
  export { FormElicitation, UrlElicitation, ElicitationAction, ElicitationResponse, ElicitationDeclinedError, type ElicitationRequest, type ElicitationHandler, type ElicitationContext, } from "./elicitation";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACtE,OAAO,EACL,OAAO,EACP,cAAc,EACd,aAAa,EACb,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,aAAa,GACd,MAAM,yBAAyB,CAAC;AAKjC,YAAY,EACV,SAAS,EACT,QAAQ,EACR,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,YAAY,EACZ,KAAK,EACL,aAAa,GACd,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE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AE,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAG3F,OAAO,EACL,yBAAyB,EACzB,iCAAiC,EACjC,0BAA0B,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC"}
package/dist/index.js CHANGED
@@ -32,7 +32,7 @@ import {
32
32
  collectSchemas,
33
33
  createExecutor,
34
34
  makeInMemoryBlobStore
35
- } from "./chunk-NPWV4R3N.js";
35
+ } from "./chunk-OIJL6F6M.js";
36
36
 
37
37
  // src/promise-executor.ts
38
38
  import { Effect } from "effect";
@@ -70,13 +70,13 @@ var createExecutor2 = async (config) => {
70
70
  const plugins = config?.plugins ?? [];
71
71
  const schema = collectSchemas(plugins);
72
72
  const scopes = config.scopes && config.scopes.length > 0 ? config.scopes.map(
73
- (s, i) => new Scope({
73
+ (s, i) => Scope.make({
74
74
  id: ScopeId.make(s.id ?? (i === 0 ? "default-scope" : `scope-${i}`)),
75
75
  name: s.name ?? (i === 0 ? "default" : `scope-${i}`),
76
76
  createdAt: /* @__PURE__ */ new Date()
77
77
  })
78
78
  ) : [
79
- new Scope({
79
+ Scope.make({
80
80
  id: ScopeId.make("default-scope"),
81
81
  name: "default",
82
82
  createdAt: /* @__PURE__ */ new Date()