@ankhorage/runtime 5.7.1 → 5.7.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @ankhorage/runtime
2
2
 
3
+ ## 5.7.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 2a13bae: Update dependencies: `@ankhorage/contracts`.
8
+
9
+ ## 5.7.2
10
+
11
+ ### Patch Changes
12
+
13
+ - 9b1f118: Add a host-injected declared API operation transport that forwards only operation identity and validated binding input.
14
+
3
15
  ## 5.7.1
4
16
 
5
17
  ### Patch Changes
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  # Ankhorage Runtime
5
5
 
6
- ![license: MIT](./paradox/badges/license.svg) ![npm: v5.7.1](./paradox/badges/npm.svg) ![runtime: bun](./paradox/badges/runtime.svg) ![typescript: strict](./paradox/badges/typescript.svg) ![eslint: checked](./paradox/badges/eslint.svg) ![prettier: checked](./paradox/badges/prettier.svg) ![build: checked](./paradox/badges/build.svg) ![tests: configured](./paradox/badges/tests.svg) ![paradox: warnings](./paradox/badges/docs.svg)
6
+ ![license: MIT](./paradox/badges/license.svg) ![npm: v5.7.3](./paradox/badges/npm.svg) ![runtime: bun](./paradox/badges/runtime.svg) ![typescript: strict](./paradox/badges/typescript.svg) ![eslint: checked](./paradox/badges/eslint.svg) ![prettier: checked](./paradox/badges/prettier.svg) ![build: checked](./paradox/badges/build.svg) ![tests: configured](./paradox/badges/tests.svg) ![paradox: warnings](./paradox/badges/docs.svg)
7
7
 
8
8
  Renders Ankhorage application manifests and resolves their runtime bindings, capabilities, events, media, screens, and state.
9
9
 
@@ -1,4 +1,4 @@
1
1
  /*** Exposes trusted-host API capability execution without loading Runtime renderer dependencies. */
2
- export type { RuntimeApiCapabilityExecutorOptions } from './runtimeApiCapabilities.js';
2
+ export type { RuntimeApiCapabilityExecutorOptions, RuntimeApiOperationTransport, RuntimeApiOperationTransportInput, } from './runtimeApiCapabilities.js';
3
3
  export { createRuntimeApiCapabilityExecutor } from './runtimeApiCapabilities.js';
4
4
  //# sourceMappingURL=apiCapabilities.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"apiCapabilities.d.ts","sourceRoot":"","sources":["../src/apiCapabilities.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,YAAY,EAAE,mCAAmC,EAAE,MAAM,6BAA6B,CAAC;AACvF,OAAO,EAAE,kCAAkC,EAAE,MAAM,6BAA6B,CAAC"}
1
+ {"version":3,"file":"apiCapabilities.d.ts","sourceRoot":"","sources":["../src/apiCapabilities.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,YAAY,EACV,mCAAmC,EACnC,4BAA4B,EAC5B,iCAAiC,GAClC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,kCAAkC,EAAE,MAAM,6BAA6B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"apiCapabilities.js","sourceRoot":"","sources":["../src/apiCapabilities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kCAAkC,EAAE,MAAM,6BAA6B,CAAC","sourcesContent":["/*** Exposes trusted-host API capability execution without loading Runtime renderer dependencies. */\nexport type { RuntimeApiCapabilityExecutorOptions } from './runtimeApiCapabilities.js';\nexport { createRuntimeApiCapabilityExecutor } from './runtimeApiCapabilities.js';\n"]}
1
+ {"version":3,"file":"apiCapabilities.js","sourceRoot":"","sources":["../src/apiCapabilities.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,kCAAkC,EAAE,MAAM,6BAA6B,CAAC","sourcesContent":["/*** Exposes trusted-host API capability execution without loading Runtime renderer dependencies. */\nexport type {\n RuntimeApiCapabilityExecutorOptions,\n RuntimeApiOperationTransport,\n RuntimeApiOperationTransportInput,\n} from './runtimeApiCapabilities.js';\nexport { createRuntimeApiCapabilityExecutor } from './runtimeApiCapabilities.js';\n"]}
@@ -1,4 +1,4 @@
1
- export type { RuntimeApiCapabilityExecutorOptions } from './runtimeApiCapabilities.js';
1
+ export type { RuntimeApiCapabilityExecutorOptions, RuntimeApiOperationTransport, RuntimeApiOperationTransportInput, } from './runtimeApiCapabilities.js';
2
2
  export { createRuntimeApiCapabilityExecutor } from './runtimeApiCapabilities.js';
3
3
  export type { RuntimeBindingResolutionArgs, RuntimeBindingResolutionContext, RuntimeBindingResolutionResult, RuntimeBindingResultCache, RuntimeBindingResultWriter, RuntimeCapabilityExecutionArgs, RuntimeCapabilityExecutionResult, RuntimeCapabilityExecutor, } from './runtimeBindings.js';
4
4
  export { applyRuntimeBindingDataPath, executeRuntimeBindingInvocation, resolveBindingInputMap, resolveBindingInputMapSync, resolveRuntimeBindingExpression, resolveRuntimeBindingExpressionSync, resolveRuntimeBindings, resolveRuntimeBindingsAsync, resolveRuntimeBindingValue, resolveRuntimeBindingValueSync, } from './runtimeBindings.js';
@@ -1 +1 @@
1
- {"version":3,"file":"bindings.d.ts","sourceRoot":"","sources":["../src/bindings.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mCAAmC,EAAE,MAAM,6BAA6B,CAAC;AACvF,OAAO,EAAE,kCAAkC,EAAE,MAAM,6BAA6B,CAAC;AACjF,YAAY,EACV,4BAA4B,EAC5B,+BAA+B,EAC/B,8BAA8B,EAC9B,yBAAyB,EACzB,0BAA0B,EAC1B,8BAA8B,EAC9B,gCAAgC,EAChC,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,EAC/B,sBAAsB,EACtB,0BAA0B,EAC1B,+BAA+B,EAC/B,mCAAmC,EACnC,sBAAsB,EACtB,2BAA2B,EAC3B,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"bindings.d.ts","sourceRoot":"","sources":["../src/bindings.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,mCAAmC,EACnC,4BAA4B,EAC5B,iCAAiC,GAClC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,kCAAkC,EAAE,MAAM,6BAA6B,CAAC;AACjF,YAAY,EACV,4BAA4B,EAC5B,+BAA+B,EAC/B,8BAA8B,EAC9B,yBAAyB,EACzB,0BAA0B,EAC1B,8BAA8B,EAC9B,gCAAgC,EAChC,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,EAC/B,sBAAsB,EACtB,0BAA0B,EAC1B,+BAA+B,EAC/B,mCAAmC,EACnC,sBAAsB,EACtB,2BAA2B,EAC3B,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,sBAAsB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"bindings.js","sourceRoot":"","sources":["../src/bindings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kCAAkC,EAAE,MAAM,6BAA6B,CAAC;AAWjF,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,EAC/B,sBAAsB,EACtB,0BAA0B,EAC1B,+BAA+B,EAC/B,mCAAmC,EACnC,sBAAsB,EACtB,2BAA2B,EAC3B,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,sBAAsB,CAAC","sourcesContent":["export type { RuntimeApiCapabilityExecutorOptions } from './runtimeApiCapabilities.js';\nexport { createRuntimeApiCapabilityExecutor } from './runtimeApiCapabilities.js';\nexport type {\n RuntimeBindingResolutionArgs,\n RuntimeBindingResolutionContext,\n RuntimeBindingResolutionResult,\n RuntimeBindingResultCache,\n RuntimeBindingResultWriter,\n RuntimeCapabilityExecutionArgs,\n RuntimeCapabilityExecutionResult,\n RuntimeCapabilityExecutor,\n} from './runtimeBindings.js';\nexport {\n applyRuntimeBindingDataPath,\n executeRuntimeBindingInvocation,\n resolveBindingInputMap,\n resolveBindingInputMapSync,\n resolveRuntimeBindingExpression,\n resolveRuntimeBindingExpressionSync,\n resolveRuntimeBindings,\n resolveRuntimeBindingsAsync,\n resolveRuntimeBindingValue,\n resolveRuntimeBindingValueSync,\n} from './runtimeBindings.js';\n"]}
1
+ {"version":3,"file":"bindings.js","sourceRoot":"","sources":["../src/bindings.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kCAAkC,EAAE,MAAM,6BAA6B,CAAC;AAWjF,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,EAC/B,sBAAsB,EACtB,0BAA0B,EAC1B,+BAA+B,EAC/B,mCAAmC,EACnC,sBAAsB,EACtB,2BAA2B,EAC3B,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,sBAAsB,CAAC","sourcesContent":["export type {\n RuntimeApiCapabilityExecutorOptions,\n RuntimeApiOperationTransport,\n RuntimeApiOperationTransportInput,\n} from './runtimeApiCapabilities.js';\nexport { createRuntimeApiCapabilityExecutor } from './runtimeApiCapabilities.js';\nexport type {\n RuntimeBindingResolutionArgs,\n RuntimeBindingResolutionContext,\n RuntimeBindingResolutionResult,\n RuntimeBindingResultCache,\n RuntimeBindingResultWriter,\n RuntimeCapabilityExecutionArgs,\n RuntimeCapabilityExecutionResult,\n RuntimeCapabilityExecutor,\n} from './runtimeBindings.js';\nexport {\n applyRuntimeBindingDataPath,\n executeRuntimeBindingInvocation,\n resolveBindingInputMap,\n resolveBindingInputMapSync,\n resolveRuntimeBindingExpression,\n resolveRuntimeBindingExpressionSync,\n resolveRuntimeBindings,\n resolveRuntimeBindingsAsync,\n resolveRuntimeBindingValue,\n resolveRuntimeBindingValueSync,\n} from './runtimeBindings.js';\n"]}
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ export type { ComponentRegistry } from './registry.js';
6
6
  export { createComponentRegistry } from './registry.js';
7
7
  export type { RuntimeActionRegistry, RuntimeActionResolutionArgs, RuntimeActionResolutionScope, RuntimeComponentEventDispatchArgs, RuntimeEventCapabilityResolver, RuntimeEventPropWrapArgs, } from './runtimeActionRegistry.js';
8
8
  export { createComponentEventFromHandlerArgs, createRuntimeActionRegistry, dispatchRuntimeComponentEvent, resolveRuntimeActionValue, wrapRuntimeEventProps, } from './runtimeActionRegistry.js';
9
- export type { RuntimeApiCapabilityExecutorOptions } from './runtimeApiCapabilities.js';
9
+ export type { RuntimeApiCapabilityExecutorOptions, RuntimeApiOperationTransport, RuntimeApiOperationTransportInput, } from './runtimeApiCapabilities.js';
10
10
  export { createRuntimeApiCapabilityExecutor } from './runtimeApiCapabilities.js';
11
11
  export type { RuntimeAuthoringBounds, RuntimeAuthoringComponentIdentity, RuntimeAuthoringGestureDisposition, RuntimeAuthoringMode, RuntimeAuthoringOverlayAdapter, RuntimeAuthoringOverlayNodeArgs, } from './runtimeAuthoringOverlay.js';
12
12
  export { createRuntimeAuthoringOverlayConfig } from './runtimeAuthoringOverlay.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,0BAA0B,EAC1B,kCAAkC,GACnC,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EACL,oCAAoC,EACpC,+BAA+B,GAChC,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACxD,YAAY,EACV,qBAAqB,EACrB,2BAA2B,EAC3B,4BAA4B,EAC5B,iCAAiC,EACjC,8BAA8B,EAC9B,wBAAwB,GACzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,mCAAmC,EACnC,2BAA2B,EAC3B,6BAA6B,EAC7B,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,4BAA4B,CAAC;AACpC,YAAY,EAAE,mCAAmC,EAAE,MAAM,6BAA6B,CAAC;AACvF,OAAO,EAAE,kCAAkC,EAAE,MA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ACL,+BAA+B,EAC/B,8BAA8B,EAC9B,0BAA0B,EAG1B,6BAA6B,EAG7B,wBAAwB,GACzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,mCAAmC,EAAE,MAAM,8BAA8B,CAAC;AAEnF,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAKnD,OAAO,EACL,8CAA8C,EAC9C,mCAAmC,EACnC,kDAAkD,EAClD,oCAAoC,EACpC,6BAA6B,EAC7B,gCAAgC,GACjC,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AAG3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC","sourcesContent":["export type {\n RuntimeContextCapabilityId,\n RuntimeContextCapabilityResolution,\n} from './capabilities/resolveRuntimeContextCapability.js';\nexport {\n isRuntimeContextCapabilityOutputPath,\n resolveRuntimeContextCapability,\n} from './capabilities/resolveRuntimeContextCapability.js';\nexport { ClipboardWriterProvider } from './ClipboardWriterProvider.js';\nexport {\n ManifestContext,\n ManifestProvider,\n useManifest,\n useManifestContext,\n useOptionalManifestContext,\n} from './ManifestContext.js';\nexport type { ComponentRegistry } from './registry.js';\nexport { createComponentRegistry } from './registry.js';\nexport type {\n RuntimeActionRegistry,\n RuntimeActionResolutionArgs,\n RuntimeActionResolutionScope,\n RuntimeComponentEventDispatchArgs,\n RuntimeEventCapabilityResolver,\n RuntimeEventPropWrapArgs,\n} from './runtimeActionRegistry.js';\nexport {\n createComponentEventFromHandlerArgs,\n createRuntimeActionRegistry,\n dispatchRuntimeComponentEvent,\n resolveRuntimeActionValue,\n wrapRuntimeEventProps,\n} from './runtimeActionRegistry.js';\nexport type { RuntimeApiCapabilityExecutorOptions } from './runtimeApiCapabilities.js';\nexport { createRuntimeApiCapabilityExecutor } from './runtimeApiCapabilities.js';\nexport type {\n RuntimeAuthoringBounds,\n RuntimeAuthoringComponentIdentity,\n RuntimeAuthoringGestureDisposition,\n RuntimeAuthoringMode,\n RuntimeAuthoringOverlayAdapter,\n RuntimeAuthoringOverlayNodeArgs,\n} from './runtimeAuthoringOverlay.js';\nexport { createRuntimeAuthoringOverlayConfig } from './runtimeAuthoringOverlay.js';\nexport type {\n RuntimeBindingResolutionArgs,\n RuntimeBindingResolutionContext,\n RuntimeBindingResolutionResult,\n RuntimeBindingResultCache,\n RuntimeBindingResultWriter,\n RuntimeCapabilityExecutionArgs,\n RuntimeCapabilityExecutionResult,\n RuntimeCapabilityExecutor,\n} from './runtimeBindings.js';\nexport {\n applyRuntimeBindingDataPath,\n executeRuntimeBindingInvocation,\n resolveBindingInputMap,\n resolveBindingInputMapSync,\n resolveRuntimeBindingExpression,\n resolveRuntimeBindingExpressionSync,\n resolveRuntimeBindings,\n resolveRuntimeBindingsAsync,\n resolveRuntimeBindingValue,\n resolveRuntimeBindingValueSync,\n} from './runtimeBindings.js';\nexport type { RuntimeCapabilityExecutorComposition } from './runtimeCapabilityExecutor.js';\nexport { composeRuntimeCapabilityExecutor } from './runtimeCapabilityExecutor.js';\nexport {\n dispatchRuntimeComponentEventWithReporting,\n type RuntimeEventDiagnosticsReporter,\n} from './runtimeEventExecution.js';\nexport type {\n RuntimeEventOperationInvocation,\n RuntimeEventOperationLifecycle,\n RuntimeEventOperationState,\n RuntimeEventOperationStatus,\n} from './runtimeEventOperationLifecycle.js';\nexport {\n createRuntimeEventOperationBindingContext,\n createRuntimeEventOperationLifecycle,\n IDLE_RUNTIME_EVENT_OPERATION_STATE,\n resolveRuntimeEventOperationErrorMessage,\n} from './runtimeEventOperationLifecycle.js';\nexport type {\n RuntimeActionDescriptor,\n RuntimeAdapterDescriptor,\n RuntimeBindingDescriptor,\n RuntimeDiagnostic,\n RuntimeManifest,\n RuntimeManifestConfig,\n RuntimeManifestInput,\n} from './runtimeManifest.js';\nexport type {\n RuntimeMediaAssetResolver,\n RuntimeMediaAssetResolverArgs,\n RuntimeResolvedMediaValue,\n} from './runtimeMedia.js';\nexport type { RuntimeRendererProps } from './RuntimeRenderer.js';\nexport { RuntimeRenderer } from './RuntimeRenderer.js';\nexport {\n composeRuntimeNodePropsResolver,\n composeRuntimeRendererWrapNode,\n mergeRuntimeRendererConfig,\n type RuntimeNodePropsResolver,\n type RuntimeRendererConfig,\n RuntimeRendererConfigProvider,\n type RuntimeRendererWrapArgs,\n type RuntimeResolveNodePropsArgs,\n useRuntimeRendererConfig,\n} from './RuntimeRendererConfig.js';\nexport { shouldRenderRuntimeRepeatEmptyState } from './runtimeRepeatEmptyState.js';\nexport type { RuntimeScreenProps } from './RuntimeScreen.js';\nexport { RuntimeScreen } from './RuntimeScreen.js';\nexport type {\n RuntimeScreenOperationLoaderExecutionResult,\n RuntimeScreenOperationLoaderState,\n} from './runtimeScreenLoaders.js';\nexport {\n createPendingRuntimeScreenOperationLoaderState,\n createRuntimeScreenLoaderRequestKey,\n createRuntimeScreenOperationLoaderRequestLifecycle,\n executeRuntimeScreenOperationLoaders,\n resolveScreenOperationLoaders,\n useRuntimeScreenOperationLoaders,\n} from './runtimeScreenLoaders.js';\nexport type { RuntimeMemoryStateAdapterOptions } from './runtimeStateAdapter.js';\nexport { createRuntimeMemoryStateAdapter } from './runtimeStateAdapter.js';\nexport type { ClipboardWriter, ClipboardWriteResult } from './types/clipboard.js';\nexport type { RuntimeFlowPort, RuntimeFlowStartRequest } from './types/runtimeFlow.js';\nexport { useClipboardWriter } from './useClipboardWriter.js';\nexport { writeClipboardTextAsync } from './writeClipboardTextAsync.js';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,oCAAoC,EACpC,+BAA+B,GAChC,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,kBAAkB,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E,uBAAuB,EAAE,MAAM,8BAA8B,CAAC","sourcesContent":["export type {\n RuntimeContextCapabilityId,\n RuntimeContextCapabilityResolution,\n} from './capabilities/resolveRuntimeContextCapability.js';\nexport {\n isRuntimeContextCapabilityOutputPath,\n resolveRuntimeContextCapability,\n} from './capabilities/resolveRuntimeContextCapability.js';\nexport { ClipboardWriterProvider } from './ClipboardWriterProvider.js';\nexport {\n ManifestContext,\n ManifestProvider,\n useManifest,\n useManifestContext,\n useOptionalManifestContext,\n} from './ManifestContext.js';\nexport type { ComponentRegistry } from './registry.js';\nexport { createComponentRegistry } from './registry.js';\nexport type {\n RuntimeActionRegistry,\n RuntimeActionResolutionArgs,\n RuntimeActionResolutionScope,\n RuntimeComponentEventDispatchArgs,\n RuntimeEventCapabilityResolver,\n RuntimeEventPropWrapArgs,\n} from './runtimeActionRegistry.js';\nexport {\n createComponentEventFromHandlerArgs,\n createRuntimeActionRegistry,\n dispatchRuntimeComponentEvent,\n resolveRuntimeActionValue,\n wrapRuntimeEventProps,\n} from './runtimeActionRegistry.js';\nexport type {\n RuntimeApiCapabilityExecutorOptions,\n RuntimeApiOperationTransport,\n RuntimeApiOperationTransportInput,\n} from './runtimeApiCapabilities.js';\nexport { createRuntimeApiCapabilityExecutor } from './runtimeApiCapabilities.js';\nexport type {\n RuntimeAuthoringBounds,\n RuntimeAuthoringComponentIdentity,\n RuntimeAuthoringGestureDisposition,\n RuntimeAuthoringMode,\n RuntimeAuthoringOverlayAdapter,\n RuntimeAuthoringOverlayNodeArgs,\n} from './runtimeAuthoringOverlay.js';\nexport { createRuntimeAuthoringOverlayConfig } from './runtimeAuthoringOverlay.js';\nexport type {\n RuntimeBindingResolutionArgs,\n RuntimeBindingResolutionContext,\n RuntimeBindingResolutionResult,\n RuntimeBindingResultCache,\n RuntimeBindingResultWriter,\n RuntimeCapabilityExecutionArgs,\n RuntimeCapabilityExecutionResult,\n RuntimeCapabilityExecutor,\n} from './runtimeBindings.js';\nexport {\n applyRuntimeBindingDataPath,\n executeRuntimeBindingInvocation,\n resolveBindingInputMap,\n resolveBindingInputMapSync,\n resolveRuntimeBindingExpression,\n resolveRuntimeBindingExpressionSync,\n resolveRuntimeBindings,\n resolveRuntimeBindingsAsync,\n resolveRuntimeBindingValue,\n resolveRuntimeBindingValueSync,\n} from './runtimeBindings.js';\nexport type { RuntimeCapabilityExecutorComposition } from './runtimeCapabilityExecutor.js';\nexport { composeRuntimeCapabilityExecutor } from './runtimeCapabilityExecutor.js';\nexport {\n dispatchRuntimeComponentEventWithReporting,\n type RuntimeEventDiagnosticsReporter,\n} from './runtimeEventExecution.js';\nexport type {\n RuntimeEventOperationInvocation,\n RuntimeEventOperationLifecycle,\n RuntimeEventOperationState,\n RuntimeEventOperationStatus,\n} from './runtimeEventOperationLifecycle.js';\nexport {\n createRuntimeEventOperationBindingContext,\n createRuntimeEventOperationLifecycle,\n IDLE_RUNTIME_EVENT_OPERATION_STATE,\n resolveRuntimeEventOperationErrorMessage,\n} from './runtimeEventOperationLifecycle.js';\nexport type {\n RuntimeActionDescriptor,\n RuntimeAdapterDescriptor,\n RuntimeBindingDescriptor,\n RuntimeDiagnostic,\n RuntimeManifest,\n RuntimeManifestConfig,\n RuntimeManifestInput,\n} from './runtimeManifest.js';\nexport type {\n RuntimeMediaAssetResolver,\n RuntimeMediaAssetResolverArgs,\n RuntimeResolvedMediaValue,\n} from './runtimeMedia.js';\nexport type { RuntimeRendererProps } from './RuntimeRenderer.js';\nexport { RuntimeRenderer } from './RuntimeRenderer.js';\nexport {\n composeRuntimeNodePropsResolver,\n composeRuntimeRendererWrapNode,\n mergeRuntimeRendererConfig,\n type RuntimeNodePropsResolver,\n type RuntimeRendererConfig,\n RuntimeRendererConfigProvider,\n type RuntimeRendererWrapArgs,\n type RuntimeResolveNodePropsArgs,\n useRuntimeRendererConfig,\n} from './RuntimeRendererConfig.js';\nexport { shouldRenderRuntimeRepeatEmptyState } from './runtimeRepeatEmptyState.js';\nexport type { RuntimeScreenProps } from './RuntimeScreen.js';\nexport { RuntimeScreen } from './RuntimeScreen.js';\nexport type {\n RuntimeScreenOperationLoaderExecutionResult,\n RuntimeScreenOperationLoaderState,\n} from './runtimeScreenLoaders.js';\nexport {\n createPendingRuntimeScreenOperationLoaderState,\n createRuntimeScreenLoaderRequestKey,\n createRuntimeScreenOperationLoaderRequestLifecycle,\n executeRuntimeScreenOperationLoaders,\n resolveScreenOperationLoaders,\n useRuntimeScreenOperationLoaders,\n} from './runtimeScreenLoaders.js';\nexport type { RuntimeMemoryStateAdapterOptions } from './runtimeStateAdapter.js';\nexport { createRuntimeMemoryStateAdapter } from './runtimeStateAdapter.js';\nexport type { ClipboardWriter, ClipboardWriteResult } from './types/clipboard.js';\nexport type { RuntimeFlowPort, RuntimeFlowStartRequest } from './types/runtimeFlow.js';\nexport { useClipboardWriter } from './useClipboardWriter.js';\nexport { writeClipboardTextAsync } from './writeClipboardTextAsync.js';\n"]}
@@ -1,12 +1,23 @@
1
- import type { ApiDefinitionRegistry } from '@ankhorage/contracts';
1
+ import type { ApiDefinitionRegistry, BindingValue } from '@ankhorage/contracts';
2
2
  import type { EndpointTestCredentialResolver, EndpointTestFetch } from '@ankhorage/data-sources';
3
- import type { RuntimeCapabilityExecutor } from './runtimeBindings.js';
3
+ import type { RuntimeCapabilityExecutionResult, RuntimeCapabilityExecutor } from './runtimeBindings.js';
4
4
  export interface RuntimeApiCapabilityExecutorOptions {
5
5
  readonly apis: ApiDefinitionRegistry;
6
6
  readonly fetch?: EndpointTestFetch;
7
7
  /*** Resolves credential references only within a trusted host execution boundary. */
8
8
  readonly credentialResolver?: EndpointTestCredentialResolver;
9
+ /*** Delegates one declared operation to a trusted host without disclosing its upstream target or credentials. */
10
+ readonly operationTransport?: RuntimeApiOperationTransport;
9
11
  }
12
+ /*** The only client-to-host data required to execute a declared external API operation. */
13
+ export interface RuntimeApiOperationTransportInput {
14
+ readonly apiId: string;
15
+ readonly endpointId: string;
16
+ readonly operationId: string;
17
+ readonly input: Readonly<Record<string, BindingValue>>;
18
+ }
19
+ /*** A host-owned external-operation boundary that accepts identity and validated binding input only. */
20
+ export type RuntimeApiOperationTransport = (input: RuntimeApiOperationTransportInput) => Promise<RuntimeCapabilityExecutionResult>;
10
21
  /*** Creates the canonical API capability adapter over Runtime's existing data-operation executor. */
11
22
  export declare function createRuntimeApiCapabilityExecutor(options: RuntimeApiCapabilityExecutorOptions): RuntimeCapabilityExecutor;
12
23
  //# sourceMappingURL=runtimeApiCapabilities.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtimeApiCapabilities.d.ts","sourceRoot":"","sources":["../src/runtimeApiCapabilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EAGtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,8BAA8B,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAIjG,OAAO,KAAK,EAGV,yBAAyB,EAC1B,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,mCAAmC;IAClD,QAAQ,CAAC,IAAI,EAAE,qBAAqB,CAAC;IACrC,QAAQ,CAAC,KAAK,CAAC,EAAE,iBAAiB,CAAC;IACnC,qFAAqF;IACrF,QAAQ,CAAC,kBAAkB,CAAC,EAAE,8BAA8B,CAAC;CAC9D;AAED,qGAAqG;AACrG,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,mCAAmC,GAC3C,yBAAyB,CAE3B"}
1
+ {"version":3,"file":"runtimeApiCapabilities.d.ts","sourceRoot":"","sources":["../src/runtimeApiCapabilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,YAAY,EAEb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,8BAA8B,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAIjG,OAAO,KAAK,EAEV,gCAAgC,EAChC,yBAAyB,EAC1B,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,mCAAmC;IAClD,QAAQ,CAAC,IAAI,EAAE,qBAAqB,CAAC;IACrC,QAAQ,CAAC,KAAK,CAAC,EAAE,iBAAiB,CAAC;IACnC,qFAAqF;IACrF,QAAQ,CAAC,kBAAkB,CAAC,EAAE,8BAA8B,CAAC;IAC7D,iHAAiH;IACjH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,4BAA4B,CAAC;CAC5D;AAED,2FAA2F;AAC3F,MAAM,WAAW,iCAAiC;IAChD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC;CACxD;AAED,wGAAwG;AACxG,MAAM,MAAM,4BAA4B,GAAG,CACzC,KAAK,EAAE,iCAAiC,KACrC,OAAO,CAAC,gCAAgC,CAAC,CAAC;AAE/C,qGAAqG;AACrG,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,mCAAmC,GAC3C,yBAAyB,CAE3B"}
@@ -11,6 +11,19 @@ async function executeRuntimeApiCapabilityAsync(args, options) {
11
11
  const values = asBindingValueRecord(args.input);
12
12
  if (args.input !== undefined && values === undefined)
13
13
  return invalidApiCapabilityInput(args.capability);
14
+ if (options.operationTransport !== undefined) {
15
+ try {
16
+ return await options.operationTransport({
17
+ apiId: target.api.id,
18
+ endpointId: target.endpointId,
19
+ input: values ?? {},
20
+ operationId: target.operationId,
21
+ });
22
+ }
23
+ catch {
24
+ return remoteApiFailure();
25
+ }
26
+ }
14
27
  try {
15
28
  const result = await testEndpoint({
16
29
  api: target.api,
@@ -1 +1 @@
1
- {"version":3,"file":"runtimeApiCapabilities.js","sourceRoot":"","sources":["../src/runtimeApiCapabilities.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD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SAAS,CAAC;IACxC,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAC/D,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,EAAE,WAAW,CAAC,CACjD,CAAC;IACF,OAAO,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,EAAE,WAAW,EAAE,CAAC;AAC5F,CAAC;AAED,SAAS,oBAAoB,CAC3B,KAA+B;IAE/B,OAAO,oBAAoB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AACzD,CAAC;AAED,SAAS,oBAAoB,CAC3B,KAA+B;IAE/B,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC;AACzB,CAAC;AAED,SAAS,oBAAoB,CAAC,UAAkB;IAC9C,OAAO;QACL,WAAW,EAAE;YACX;gBACE,IAAI,EAAE,mBAAmB;gBACzB,OAAO,EAAE,mBAAmB,UAAU,mDAAmD;gBACzF,QAAQ,EAAE,OAAO;aAClB;SACF;QACD,EAAE,EAAE,KAAK;KACV,CAAC;AACJ,CAAC;AAED,SAAS,yBAAyB,CAAC,UAAkB;IACnD,MAAM,UAAU,GAAyB;QACvC,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,mBAAmB,UAAU,oCAAoC;QAC1E,QAAQ,EAAE,OAAO;KAClB,CAAC;IACF,OAAO,EAAE,WAAW,EAAE,CAAC,UAAU,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC;AAClD,CAAC","sourcesContent":["import type {\n ApiDefinitionRegistry,\n BindingValue,\n DataSourceDiagnostic,\n} from '@ankhorage/contracts';\nimport type { EndpointTestCredentialResolver, EndpointTestFetch } from '@ankhorage/data-sources';\nimport { testEndpoint } from '@ankhorage/data-sources';\nimport { isRecord } from '@ankhorage/utility/object';\n\nimport type {\n RuntimeCapabilityExecutionArgs,\n RuntimeCapabilityExecutionResult,\n RuntimeCapabilityExecutor,\n} from './runtimeBindings.js';\n\nexport interface RuntimeApiCapabilityExecutorOptions {\n readonly apis: ApiDefinitionRegistry;\n readonly fetch?: EndpointTestFetch;\n /*** Resolves credential references only within a trusted host execution boundary. */\n readonly credentialResolver?: EndpointTestCredentialResolver;\n}\n\n/*** Creates the canonical API capability adapter over Runtime's existing data-operation executor. */\nexport function createRuntimeApiCapabilityExecutor(\n options: RuntimeApiCapabilityExecutorOptions,\n): RuntimeCapabilityExecutor {\n return async (args) => executeRuntimeApiCapabilityAsync(args, options);\n}\n\nasync function executeRuntimeApiCapabilityAsync(\n args: RuntimeCapabilityExecutionArgs,\n options: RuntimeApiCapabilityExecutorOptions,\n): Promise<RuntimeCapabilityExecutionResult> {\n const target = resolveApiCapabilityTarget(args.capability, options.apis);\n if (target === undefined) return missingApiCapability(args.capability);\n const values = asBindingValueRecord(args.input);\n if (args.input !== undefined && values === undefined)\n return invalidApiCapabilityInput(args.capability);\n\n try {\n const result = await testEndpoint({\n api: target.api,\n credentialResolver: options.credentialResolver,\n endpointId: target.endpointId,\n fetch: options.fetch,\n operationId: target.operationId,\n values,\n });\n return result.ok\n ? { data: result.data ?? null, diagnostics: result.diagnostics, ok: true }\n : { diagnostics: redactRuntimeApiDiagnostics(result.diagnostics), ok: false };\n } catch {\n return remoteApiFailure();\n }\n}\n\n/*** Removes remote transport detail before API diagnostics can reach Runtime bindings or props. */\nfunction redactRuntimeApiDiagnostics(\n diagnostics: readonly DataSourceDiagnostic[],\n): readonly DataSourceDiagnostic[] {\n return diagnostics.map((diagnostic) =>\n diagnostic.code === 'network-error'\n ? { ...diagnostic, message: 'The API operation could not be completed. Please try again.' }\n : diagnostic,\n );\n}\n\n/*** Converts resolver failures into a credential-safe Runtime diagnostic. */\nfunction remoteApiFailure(): RuntimeCapabilityExecutionResult {\n return {\n diagnostics: [\n {\n code: 'adapter-error',\n message: 'The API operation could not be completed. Please try again.',\n severity: 'error',\n },\n ],\n ok: false,\n };\n}\n\nfunction resolveApiCapabilityTarget(\n capability: string,\n apis: ApiDefinitionRegistry,\n):\n | {\n readonly api: ApiDefinitionRegistry[string];\n readonly endpointId: string;\n readonly operationId: string;\n }\n | undefined {\n if (!capability.startsWith('api.')) return undefined;\n const target = capability.slice(4);\n const delimiter = target.indexOf('.');\n if (delimiter < 1 || delimiter === target.length - 1) return undefined;\n const apiId = target.slice(0, delimiter);\n const operationId = target.slice(delimiter + 1);\n const api = Object.entries(apis).find(([id]) => id === apiId)?.[1];\n if (api === undefined) return undefined;\n const endpoint = Object.values(api.endpoints).find((candidate) =>\n Object.hasOwn(candidate.operations, operationId),\n );\n return endpoint === undefined ? undefined : { api, endpointId: endpoint.id, operationId };\n}\n\nfunction asBindingValueRecord(\n value: BindingValue | undefined,\n): Readonly<Record<string, BindingValue>> | undefined {\n return isBindingValueRecord(value) ? value : undefined;\n}\n\nfunction isBindingValueRecord(\n value: BindingValue | undefined,\n): value is Readonly<Record<string, BindingValue>> {\n return isRecord(value);\n}\n\nfunction missingApiCapability(capability: string): RuntimeCapabilityExecutionResult {\n return {\n diagnostics: [\n {\n code: 'missing-operation',\n message: `API capability '${capability}' does not resolve to a configured API operation.`,\n severity: 'error',\n },\n ],\n ok: false,\n };\n}\n\nfunction invalidApiCapabilityInput(capability: string): RuntimeCapabilityExecutionResult {\n const diagnostic: DataSourceDiagnostic = {\n code: 'invalid-config',\n message: `API capability '${capability}' input must resolve to an object.`,\n severity: 'error',\n };\n return { diagnostics: [diagnostic], ok: false };\n}\n"]}
1
+ {"version":3,"file":"runtimeApiCapabilities.js","sourceRoot":"","sources":["../src/runtimeApiCapabilities.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AA8BrD,qGAAq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O,EAAE,mBAAmB,UAAU,oCAAoC;QAC1E,QAAQ,EAAE,OAAO;KAClB,CAAC;IACF,OAAO,EAAE,WAAW,EAAE,CAAC,UAAU,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC;AAClD,CAAC","sourcesContent":["import type {\n ApiDefinitionRegistry,\n BindingValue,\n DataSourceDiagnostic,\n} from '@ankhorage/contracts';\nimport type { EndpointTestCredentialResolver, EndpointTestFetch } from '@ankhorage/data-sources';\nimport { testEndpoint } from '@ankhorage/data-sources';\nimport { isRecord } from '@ankhorage/utility/object';\n\nimport type {\n RuntimeCapabilityExecutionArgs,\n RuntimeCapabilityExecutionResult,\n RuntimeCapabilityExecutor,\n} from './runtimeBindings.js';\n\nexport interface RuntimeApiCapabilityExecutorOptions {\n readonly apis: ApiDefinitionRegistry;\n readonly fetch?: EndpointTestFetch;\n /*** Resolves credential references only within a trusted host execution boundary. */\n readonly credentialResolver?: EndpointTestCredentialResolver;\n /*** Delegates one declared operation to a trusted host without disclosing its upstream target or credentials. */\n readonly operationTransport?: RuntimeApiOperationTransport;\n}\n\n/*** The only client-to-host data required to execute a declared external API operation. */\nexport interface RuntimeApiOperationTransportInput {\n readonly apiId: string;\n readonly endpointId: string;\n readonly operationId: string;\n readonly input: Readonly<Record<string, BindingValue>>;\n}\n\n/*** A host-owned external-operation boundary that accepts identity and validated binding input only. */\nexport type RuntimeApiOperationTransport = (\n input: RuntimeApiOperationTransportInput,\n) => Promise<RuntimeCapabilityExecutionResult>;\n\n/*** Creates the canonical API capability adapter over Runtime's existing data-operation executor. */\nexport function createRuntimeApiCapabilityExecutor(\n options: RuntimeApiCapabilityExecutorOptions,\n): RuntimeCapabilityExecutor {\n return async (args) => executeRuntimeApiCapabilityAsync(args, options);\n}\n\nasync function executeRuntimeApiCapabilityAsync(\n args: RuntimeCapabilityExecutionArgs,\n options: RuntimeApiCapabilityExecutorOptions,\n): Promise<RuntimeCapabilityExecutionResult> {\n const target = resolveApiCapabilityTarget(args.capability, options.apis);\n if (target === undefined) return missingApiCapability(args.capability);\n const values = asBindingValueRecord(args.input);\n if (args.input !== undefined && values === undefined)\n return invalidApiCapabilityInput(args.capability);\n\n if (options.operationTransport !== undefined) {\n try {\n return await options.operationTransport({\n apiId: target.api.id,\n endpointId: target.endpointId,\n input: values ?? {},\n operationId: target.operationId,\n });\n } catch {\n return remoteApiFailure();\n }\n }\n\n try {\n const result = await testEndpoint({\n api: target.api,\n credentialResolver: options.credentialResolver,\n endpointId: target.endpointId,\n fetch: options.fetch,\n operationId: target.operationId,\n values,\n });\n return result.ok\n ? { data: result.data ?? null, diagnostics: result.diagnostics, ok: true }\n : { diagnostics: redactRuntimeApiDiagnostics(result.diagnostics), ok: false };\n } catch {\n return remoteApiFailure();\n }\n}\n\n/*** Removes remote transport detail before API diagnostics can reach Runtime bindings or props. */\nfunction redactRuntimeApiDiagnostics(\n diagnostics: readonly DataSourceDiagnostic[],\n): readonly DataSourceDiagnostic[] {\n return diagnostics.map((diagnostic) =>\n diagnostic.code === 'network-error'\n ? { ...diagnostic, message: 'The API operation could not be completed. Please try again.' }\n : diagnostic,\n );\n}\n\n/*** Converts resolver failures into a credential-safe Runtime diagnostic. */\nfunction remoteApiFailure(): RuntimeCapabilityExecutionResult {\n return {\n diagnostics: [\n {\n code: 'adapter-error',\n message: 'The API operation could not be completed. Please try again.',\n severity: 'error',\n },\n ],\n ok: false,\n };\n}\n\nfunction resolveApiCapabilityTarget(\n capability: string,\n apis: ApiDefinitionRegistry,\n):\n | {\n readonly api: ApiDefinitionRegistry[string];\n readonly endpointId: string;\n readonly operationId: string;\n }\n | undefined {\n if (!capability.startsWith('api.')) return undefined;\n const target = capability.slice(4);\n const delimiter = target.indexOf('.');\n if (delimiter < 1 || delimiter === target.length - 1) return undefined;\n const apiId = target.slice(0, delimiter);\n const operationId = target.slice(delimiter + 1);\n const api = Object.entries(apis).find(([id]) => id === apiId)?.[1];\n if (api === undefined) return undefined;\n const endpoint = Object.values(api.endpoints).find((candidate) =>\n Object.hasOwn(candidate.operations, operationId),\n );\n return endpoint === undefined ? undefined : { api, endpointId: endpoint.id, operationId };\n}\n\nfunction asBindingValueRecord(\n value: BindingValue | undefined,\n): Readonly<Record<string, BindingValue>> | undefined {\n return isBindingValueRecord(value) ? value : undefined;\n}\n\nfunction isBindingValueRecord(\n value: BindingValue | undefined,\n): value is Readonly<Record<string, BindingValue>> {\n return isRecord(value);\n}\n\nfunction missingApiCapability(capability: string): RuntimeCapabilityExecutionResult {\n return {\n diagnostics: [\n {\n code: 'missing-operation',\n message: `API capability '${capability}' does not resolve to a configured API operation.`,\n severity: 'error',\n },\n ],\n ok: false,\n };\n}\n\nfunction invalidApiCapabilityInput(capability: string): RuntimeCapabilityExecutionResult {\n const diagnostic: DataSourceDiagnostic = {\n code: 'invalid-config',\n message: `API capability '${capability}' input must resolve to an object.`,\n severity: 'error',\n };\n return { diagnostics: [diagnostic], ok: false };\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ankhorage/runtime",
3
- "version": "5.7.1",
3
+ "version": "5.7.3",
4
4
  "description": "Platform-neutral runtime renderer, contracts, and helpers for Ankhorage generated apps.",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -332,7 +332,7 @@
332
332
  },
333
333
  "dependencies": {
334
334
  "@ankhorage/capability": "^0.2.3",
335
- "@ankhorage/contracts": "^26.19.0",
335
+ "@ankhorage/contracts": "^26.20.0",
336
336
  "@ankhorage/data-sources": "^2.4.0",
337
337
  "@ankhorage/flow": "^0.10.1",
338
338
  "@ankhorage/utility": "^1.11.0"
@@ -348,7 +348,7 @@
348
348
  }
349
349
  },
350
350
  "devDependencies": {
351
- "@ankhorage/devtools": "^2.12.3",
351
+ "@ankhorage/devtools": "^2.12.8",
352
352
  "@ankhorage/paradox": "^0.6.1",
353
353
  "@types/bun": "^1.4.5",
354
354
  "@types/node": "^26.6.4",
@@ -363,7 +363,7 @@
363
363
  "typescript": "~6.0.3"
364
364
  },
365
365
  "sideEffects": false,
366
- "packageManager": "bun@1.4.2",
366
+ "packageManager": "bun@1.4.5",
367
367
  "directories": {
368
368
  "doc": "docs",
369
369
  "example": "examples",
@@ -1,7 +1,7 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="90" height="20" role="img" aria-label="npm: v5.7.1">
2
- <title>npm: v5.7.1</title>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="90" height="20" role="img" aria-label="npm: v5.7.3">
2
+ <title>npm: v5.7.3</title>
3
3
  <rect width="38" height="20" fill="#374151"/>
4
4
  <rect x="38" width="52" height="20" fill="#cb3837"/>
5
5
  <text x="19" y="14" fill="#ffffff" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">npm</text>
6
- <text x="64" y="14" fill="#ffffff" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">v5.7.1</text>
6
+ <text x="64" y="14" fill="#ffffff" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">v5.7.3</text>
7
7
  </svg>
@@ -201,6 +201,11 @@ graph LR
201
201
  module_src_runtimeManifest_ts --> export_RuntimeAdapterDescriptor
202
202
  export_RuntimeApiCapabilityExecutorOptions["RuntimeApiCapabilityExecutorOptions"]
203
203
  module_src_runtimeApiCapabilities_ts --> export_RuntimeApiCapabilityExecutorOptions
204
+ export_RuntimeApiCapabilityExecutorOptions -.-> export_RuntimeApiOperationTransport
205
+ export_RuntimeApiOperationTransport["RuntimeApiOperationTransport"]
206
+ module_src_runtimeApiCapabilities_ts --> export_RuntimeApiOperationTransport
207
+ export_RuntimeApiOperationTransportInput["RuntimeApiOperationTransportInput"]
208
+ module_src_runtimeApiCapabilities_ts --> export_RuntimeApiOperationTransportInput
204
209
  export_RuntimeAuthoringBounds["RuntimeAuthoringBounds"]
205
210
  module_src_runtimeAuthoringOverlay_ts --> export_RuntimeAuthoringBounds
206
211
  export_RuntimeAuthoringComponentIdentity["RuntimeAuthoringComponentIdentity"]
@@ -442,7 +442,7 @@
442
442
  "modulePath": "src/runtimeApiCapabilities.ts",
443
443
  "sourceLocation": {
444
444
  "filePath": "src/runtimeApiCapabilities.ts",
445
- "line": 24,
445
+ "line": 39,
446
446
  "column": 1
447
447
  },
448
448
  "exportPaths": [
@@ -1803,7 +1803,9 @@
1803
1803
  "exportPaths": [
1804
1804
  "src/index.ts"
1805
1805
  ],
1806
- "relatedSymbols": [],
1806
+ "relatedSymbols": [
1807
+ "RuntimeApiOperationTransport"
1808
+ ],
1807
1809
  "signatures": [],
1808
1810
  "members": [
1809
1811
  {
@@ -1826,6 +1828,86 @@
1826
1828
  "type": "EndpointTestFetch | undefined",
1827
1829
  "required": false,
1828
1830
  "description": null
1831
+ },
1832
+ {
1833
+ "name": "operationTransport",
1834
+ "kind": "property",
1835
+ "type": "RuntimeApiOperationTransport | undefined",
1836
+ "required": false,
1837
+ "description": "Delegates one declared operation to a trusted host without disclosing its upstream target or credentials."
1838
+ }
1839
+ ],
1840
+ "structuredRows": []
1841
+ },
1842
+ {
1843
+ "name": "RuntimeApiOperationTransport",
1844
+ "title": null,
1845
+ "description": "A host-owned external-operation boundary that accepts identity and validated binding input only.",
1846
+ "isReadme": false,
1847
+ "see": [],
1848
+ "security": [],
1849
+ "kind": "unknown",
1850
+ "modulePath": "src/runtimeApiCapabilities.ts",
1851
+ "sourceLocation": {
1852
+ "filePath": "src/runtimeApiCapabilities.ts",
1853
+ "line": 34,
1854
+ "column": 1
1855
+ },
1856
+ "exportPaths": [
1857
+ "src/index.ts"
1858
+ ],
1859
+ "relatedSymbols": [],
1860
+ "signatures": [],
1861
+ "members": [],
1862
+ "structuredRows": []
1863
+ },
1864
+ {
1865
+ "name": "RuntimeApiOperationTransportInput",
1866
+ "title": null,
1867
+ "description": "The only client-to-host data required to execute a declared external API operation.",
1868
+ "isReadme": false,
1869
+ "see": [],
1870
+ "security": [],
1871
+ "kind": "type",
1872
+ "modulePath": "src/runtimeApiCapabilities.ts",
1873
+ "sourceLocation": {
1874
+ "filePath": "src/runtimeApiCapabilities.ts",
1875
+ "line": 26,
1876
+ "column": 1
1877
+ },
1878
+ "exportPaths": [
1879
+ "src/index.ts"
1880
+ ],
1881
+ "relatedSymbols": [],
1882
+ "signatures": [],
1883
+ "members": [
1884
+ {
1885
+ "name": "apiId",
1886
+ "kind": "property",
1887
+ "type": "string",
1888
+ "required": true,
1889
+ "description": null
1890
+ },
1891
+ {
1892
+ "name": "endpointId",
1893
+ "kind": "property",
1894
+ "type": "string",
1895
+ "required": true,
1896
+ "description": null
1897
+ },
1898
+ {
1899
+ "name": "input",
1900
+ "kind": "property",
1901
+ "type": "Readonly<Record<string, import(\"@ankhorage/contracts\").SerializableValue>>",
1902
+ "required": true,
1903
+ "description": null
1904
+ },
1905
+ {
1906
+ "name": "operationId",
1907
+ "kind": "property",
1908
+ "type": "string",
1909
+ "required": true,
1910
+ "description": null
1829
1911
  }
1830
1912
  ],
1831
1913
  "structuredRows": []
@@ -151,7 +151,7 @@ Creates a registry that dispatches every authored event through one capability e
151
151
 
152
152
  Kind: `function`
153
153
  Module: `src/runtimeApiCapabilities.ts`
154
- Source: `src/runtimeApiCapabilities.ts:24:1`
154
+ Source: `src/runtimeApiCapabilities.ts:39:1`
155
155
 
156
156
  Creates the canonical API capability adapter over Runtime's existing data-operation executor.
157
157
 
@@ -613,6 +613,32 @@ Source: `src/runtimeApiCapabilities.ts:16:1`
613
613
  | apis | property | `ApiDefinitionRegistry` | yes | |
614
614
  | credentialResolver | property | `EndpointTestCredentialResolver \| undefined` | no | Resolves credential references only within a trusted host execution boundary. |
615
615
  | fetch | property | `EndpointTestFetch \| undefined` | no | |
616
+ | operationTransport | property | `RuntimeApiOperationTransport \| undefined` | no | Delegates one declared operation to a trusted host without disclosing its upstream target or credentials. |
617
+
618
+ ## RuntimeApiOperationTransport
619
+
620
+ Kind: `unknown`
621
+ Module: `src/runtimeApiCapabilities.ts`
622
+ Source: `src/runtimeApiCapabilities.ts:34:1`
623
+
624
+ A host-owned external-operation boundary that accepts identity and validated binding input only.
625
+
626
+ ## RuntimeApiOperationTransportInput
627
+
628
+ Kind: `type`
629
+ Module: `src/runtimeApiCapabilities.ts`
630
+ Source: `src/runtimeApiCapabilities.ts:26:1`
631
+
632
+ The only client-to-host data required to execute a declared external API operation.
633
+
634
+ ### Members
635
+
636
+ | Name | Kind | Type | Required | Description |
637
+ | --- | --- | --- | --- | --- |
638
+ | apiId | property | `string` | yes | |
639
+ | endpointId | property | `string` | yes | |
640
+ | input | property | `Readonly<Record<string, import("@ankhorage/contracts").SerializableValue>>` | yes | |
641
+ | operationId | property | `string` | yes | |
616
642
 
617
643
  ## RuntimeAuthoringBounds
618
644
 
@@ -130,7 +130,7 @@
130
130
  <li>
131
131
  <button class="nav-button" type="button" data-target="src/apiCapabilities.test.ts">
132
132
  src/apiCapabilities.test.ts
133
- <small>1 function</small>
133
+ <small>3 functions</small>
134
134
  </button>
135
135
  </li><li>
136
136
  <button class="nav-button" type="button" data-target="src/capabilities/resolveRuntimeContextCapability.ts">
@@ -367,7 +367,7 @@
367
367
  <section class="panel">
368
368
  <h2>Package overview</h2>
369
369
  <div class="summary">
370
- <div><strong>102</strong><span class="muted">public exports</span></div>
370
+ <div><strong>104</strong><span class="muted">public exports</span></div>
371
371
  <div><strong>6</strong><span class="muted">components</span></div>
372
372
  <div><strong>69</strong><span class="muted">modules</span></div>
373
373
  <div><strong>1</strong><span class="muted">entrypoints</span></div>
@@ -464,16 +464,16 @@ inject it at the runtime boundary.</p>
464
464
  <p class="muted">Referenced module</p>
465
465
  <p><strong>Dependencies:</strong> <code>src/apiCapabilities.ts</code></p>
466
466
  <p><strong>Exports:</strong> <span class="empty">None</span></p>
467
- </article><article class="item" data-search="src/apiCapabilities.ts createRuntimeApiCapabilityExecutor RuntimeApiCapabilityExecutorOptions">
467
+ </article><article class="item" data-search="src/apiCapabilities.ts createRuntimeApiCapabilityExecutor RuntimeApiCapabilityExecutorOptions RuntimeApiOperationTransport RuntimeApiOperationTransportInput">
468
468
  <h3>src/apiCapabilities.ts</h3>
469
469
  <p class="muted">Referenced module</p>
470
470
  <p><strong>Dependencies:</strong> <span class="empty">None</span></p>
471
- <p><strong>Exports:</strong> <code>createRuntimeApiCapabilityExecutor</code>, <code>RuntimeApiCapabilityExecutorOptions</code></p>
472
- </article><article class="item" data-search="src/bindings.ts applyRuntimeBindingDataPath createRuntimeApiCapabilityExecutor executeRuntimeBindingInvocation resolveBindingInputMap resolveBindingInputMapSync resolveRuntimeBindingExpression resolveRuntimeBindingExpressionSync resolveRuntimeBindings resolveRuntimeBindingsAsync resolveRuntimeBindingValue resolveRuntimeBindingValueSync RuntimeApiCapabilityExecutorOptions RuntimeBindingResolutionArgs RuntimeBindingResolutionContext RuntimeBindingResolutionResult RuntimeBindingResultCache RuntimeBindingResultWriter RuntimeCapabilityExecutionArgs RuntimeCapabilityExecutionResult RuntimeCapabilityExecutor">
471
+ <p><strong>Exports:</strong> <code>createRuntimeApiCapabilityExecutor</code>, <code>RuntimeApiCapabilityExecutorOptions</code>, <code>RuntimeApiOperationTransport</code>, <code>RuntimeApiOperationTransportInput</code></p>
472
+ </article><article class="item" data-search="src/bindings.ts applyRuntimeBindingDataPath createRuntimeApiCapabilityExecutor executeRuntimeBindingInvocation resolveBindingInputMap resolveBindingInputMapSync resolveRuntimeBindingExpression resolveRuntimeBindingExpressionSync resolveRuntimeBindings resolveRuntimeBindingsAsync resolveRuntimeBindingValue resolveRuntimeBindingValueSync RuntimeApiCapabilityExecutorOptions RuntimeApiOperationTransport RuntimeApiOperationTransportInput RuntimeBindingResolutionArgs RuntimeBindingResolutionContext RuntimeBindingResolutionResult RuntimeBindingResultCache RuntimeBindingResultWriter RuntimeCapabilityExecutionArgs RuntimeCapabilityExecutionResult RuntimeCapabilityExecutor">
473
473
  <h3>src/bindings.ts</h3>
474
474
  <p class="muted">Referenced module</p>
475
475
  <p><strong>Dependencies:</strong> <span class="empty">None</span></p>
476
- <p><strong>Exports:</strong> <code>applyRuntimeBindingDataPath</code>, <code>createRuntimeApiCapabilityExecutor</code>, <code>executeRuntimeBindingInvocation</code>, <code>resolveBindingInputMap</code>, <code>resolveBindingInputMapSync</code>, <code>resolveRuntimeBindingExpression</code>, <code>resolveRuntimeBindingExpressionSync</code>, <code>resolveRuntimeBindings</code>, <code>resolveRuntimeBindingsAsync</code>, <code>resolveRuntimeBindingValue</code>, <code>resolveRuntimeBindingValueSync</code>, <code>RuntimeApiCapabilityExecutorOptions</code>, <code>RuntimeBindingResolutionArgs</code>, <code>RuntimeBindingResolutionContext</code>, <code>RuntimeBindingResolutionResult</code>, <code>RuntimeBindingResultCache</code>, <code>RuntimeBindingResultWriter</code>, <code>RuntimeCapabilityExecutionArgs</code>, <code>RuntimeCapabilityExecutionResult</code>, <code>RuntimeCapabilityExecutor</code></p>
476
+ <p><strong>Exports:</strong> <code>applyRuntimeBindingDataPath</code>, <code>createRuntimeApiCapabilityExecutor</code>, <code>executeRuntimeBindingInvocation</code>, <code>resolveBindingInputMap</code>, <code>resolveBindingInputMapSync</code>, <code>resolveRuntimeBindingExpression</code>, <code>resolveRuntimeBindingExpressionSync</code>, <code>resolveRuntimeBindings</code>, <code>resolveRuntimeBindingsAsync</code>, <code>resolveRuntimeBindingValue</code>, <code>resolveRuntimeBindingValueSync</code>, <code>RuntimeApiCapabilityExecutorOptions</code>, <code>RuntimeApiOperationTransport</code>, <code>RuntimeApiOperationTransportInput</code>, <code>RuntimeBindingResolutionArgs</code>, <code>RuntimeBindingResolutionContext</code>, <code>RuntimeBindingResolutionResult</code>, <code>RuntimeBindingResultCache</code>, <code>RuntimeBindingResultWriter</code>, <code>RuntimeCapabilityExecutionArgs</code>, <code>RuntimeCapabilityExecutionResult</code>, <code>RuntimeCapabilityExecutor</code></p>
477
477
  </article><article class="item" data-search="src/capabilities/index.ts CAPABILITIES">
478
478
  <h3>src/capabilities/index.ts</h3>
479
479
  <p class="muted">Referenced module</p>
@@ -514,11 +514,11 @@ inject it at the runtime boundary.</p>
514
514
  <p class="muted">Referenced module</p>
515
515
  <p><strong>Dependencies:</strong> <code>src/runtimeBindings.ts</code>, <code>src/types/runtimeFlow.ts</code></p>
516
516
  <p><strong>Exports:</strong> <code>executeRuntimeFlowCapabilityAsync</code></p>
517
- </article><article class="item" data-search="src/index.ts applyRuntimeBindingDataPath ClipboardWriter ClipboardWriteResult ClipboardWriterProvider ComponentRegistry composeRuntimeCapabilityExecutor composeRuntimeNodePropsResolver composeRuntimeRendererWrapNode createComponentEventFromHandlerArgs createComponentRegistry createPendingRuntimeScreenOperationLoaderState createRuntimeActionRegistry createRuntimeApiCapabilityExecutor createRuntimeAuthoringOverlayConfig createRuntimeEventOperationBindingContext createRuntimeEventOperationLifecycle createRuntimeMemoryStateAdapter createRuntimeScreenLoaderRequestKey createRuntimeScreenOperationLoaderRequestLifecycle dispatchRuntimeComponentEvent dispatchRuntimeComponentEventWithReporting executeRuntimeBindingInvocation executeRuntimeScreenOperationLoaders IDLE_RUNTIME_EVENT_OPERATION_STATE isRuntimeContextCapabilityOutputPath ManifestContext ManifestProvider mergeRuntimeRendererConfig resolveBindingInputMap resolveBindingInputMapSync resolveRuntimeActionValue resolveRuntimeBindingExpression resolveRuntimeBindingExpressionSync resolveRuntimeBindings resolveRuntimeBindingsAsync resolveRuntimeBindingValue resolveRuntimeBindingValueSync resolveRuntimeContextCapability resolveRuntimeEventOperationErrorMessage resolveScreenOperationLoaders RuntimeActionDescriptor RuntimeActionRegistry RuntimeActionResolutionArgs RuntimeActionResolutionScope RuntimeAdapterDescriptor RuntimeApiCapabilityExecutorOptions RuntimeAuthoringBounds RuntimeAuthoringComponentIdentity RuntimeAuthoringGestureDisposition RuntimeAuthoringMode RuntimeAuthoringOverlayAdapter RuntimeAuthoringOverlayNodeArgs RuntimeBindingDescriptor RuntimeBindingResolutionArgs RuntimeBindingResolutionContext RuntimeBindingResolutionResult RuntimeBindingResultCache RuntimeBindingResultWriter RuntimeCapabilityExecutionArgs RuntimeCapabilityExecutionResult RuntimeCapabilityExecutor RuntimeCapabilityExecutorComposition RuntimeComponentEventDispatchArgs RuntimeContextCapabilityId RuntimeContextCapabilityResolution RuntimeDiagnostic RuntimeEventCapabilityResolver RuntimeEventDiagnosticsReporter RuntimeEventOperationInvocation RuntimeEventOperationLifecycle RuntimeEventOperationState RuntimeEventOperationStatus RuntimeEventPropWrapArgs RuntimeFlowPort RuntimeFlowStartRequest RuntimeManifest RuntimeManifestConfig RuntimeManifestInput RuntimeMediaAssetResolver RuntimeMediaAssetResolverArgs RuntimeMemoryStateAdapterOptions RuntimeNodePropsResolver RuntimeRenderer RuntimeRendererConfig RuntimeRendererConfigProvider RuntimeRendererProps RuntimeRendererWrapArgs RuntimeResolvedMediaValue RuntimeResolveNodePropsArgs RuntimeScreen RuntimeScreenOperationLoaderExecutionResult RuntimeScreenOperationLoaderState RuntimeScreenProps shouldRenderRuntimeRepeatEmptyState useClipboardWriter useManifest useManifestContext useOptionalManifestContext useRuntimeRendererConfig useRuntimeScreenOperationLoaders wrapRuntimeEventProps writeClipboardTextAsync">
517
+ </article><article class="item" data-search="src/index.ts applyRuntimeBindingDataPath ClipboardWriter ClipboardWriteResult ClipboardWriterProvider ComponentRegistry composeRuntimeCapabilityExecutor composeRuntimeNodePropsResolver composeRuntimeRendererWrapNode createComponentEventFromHandlerArgs createComponentRegistry createPendingRuntimeScreenOperationLoaderState createRuntimeActionRegistry createRuntimeApiCapabilityExecutor createRuntimeAuthoringOverlayConfig createRuntimeEventOperationBindingContext createRuntimeEventOperationLifecycle createRuntimeMemoryStateAdapter createRuntimeScreenLoaderRequestKey createRuntimeScreenOperationLoaderRequestLifecycle dispatchRuntimeComponentEvent dispatchRuntimeComponentEventWithReporting executeRuntimeBindingInvocation executeRuntimeScreenOperationLoaders IDLE_RUNTIME_EVENT_OPERATION_STATE isRuntimeContextCapabilityOutputPath ManifestContext ManifestProvider mergeRuntimeRendererConfig resolveBindingInputMap resolveBindingInputMapSync resolveRuntimeActionValue resolveRuntimeBindingExpression resolveRuntimeBindingExpressionSync resolveRuntimeBindings resolveRuntimeBindingsAsync resolveRuntimeBindingValue resolveRuntimeBindingValueSync resolveRuntimeContextCapability resolveRuntimeEventOperationErrorMessage resolveScreenOperationLoaders RuntimeActionDescriptor RuntimeActionRegistry RuntimeActionResolutionArgs RuntimeActionResolutionScope RuntimeAdapterDescriptor RuntimeApiCapabilityExecutorOptions RuntimeApiOperationTransport RuntimeApiOperationTransportInput RuntimeAuthoringBounds RuntimeAuthoringComponentIdentity RuntimeAuthoringGestureDisposition RuntimeAuthoringMode RuntimeAuthoringOverlayAdapter RuntimeAuthoringOverlayNodeArgs RuntimeBindingDescriptor RuntimeBindingResolutionArgs RuntimeBindingResolutionContext RuntimeBindingResolutionResult RuntimeBindingResultCache RuntimeBindingResultWriter RuntimeCapabilityExecutionArgs RuntimeCapabilityExecutionResult RuntimeCapabilityExecutor RuntimeCapabilityExecutorComposition RuntimeComponentEventDispatchArgs RuntimeContextCapabilityId RuntimeContextCapabilityResolution RuntimeDiagnostic RuntimeEventCapabilityResolver RuntimeEventDiagnosticsReporter RuntimeEventOperationInvocation RuntimeEventOperationLifecycle RuntimeEventOperationState RuntimeEventOperationStatus RuntimeEventPropWrapArgs RuntimeFlowPort RuntimeFlowStartRequest RuntimeManifest RuntimeManifestConfig RuntimeManifestInput RuntimeMediaAssetResolver RuntimeMediaAssetResolverArgs RuntimeMemoryStateAdapterOptions RuntimeNodePropsResolver RuntimeRenderer RuntimeRendererConfig RuntimeRendererConfigProvider RuntimeRendererProps RuntimeRendererWrapArgs RuntimeResolvedMediaValue RuntimeResolveNodePropsArgs RuntimeScreen RuntimeScreenOperationLoaderExecutionResult RuntimeScreenOperationLoaderState RuntimeScreenProps shouldRenderRuntimeRepeatEmptyState useClipboardWriter useManifest useManifestContext useOptionalManifestContext useRuntimeRendererConfig useRuntimeScreenOperationLoaders wrapRuntimeEventProps writeClipboardTextAsync">
518
518
  <h3>src/index.ts</h3>
519
519
  <p class="muted">Configured entrypoint</p>
520
520
  <p><strong>Dependencies:</strong> <span class="empty">None</span></p>
521
- <p><strong>Exports:</strong> <code>applyRuntimeBindingDataPath</code>, <code>ClipboardWriter</code>, <code>ClipboardWriteResult</code>, <code>ClipboardWriterProvider</code>, <code>ComponentRegistry</code>, <code>composeRuntimeCapabilityExecutor</code>, <code>composeRuntimeNodePropsResolver</code>, <code>composeRuntimeRendererWrapNode</code>, <code>createComponentEventFromHandlerArgs</code>, <code>createComponentRegistry</code>, <code>createPendingRuntimeScreenOperationLoaderState</code>, <code>createRuntimeActionRegistry</code>, <code>createRuntimeApiCapabilityExecutor</code>, <code>createRuntimeAuthoringOverlayConfig</code>, <code>createRuntimeEventOperationBindingContext</code>, <code>createRuntimeEventOperationLifecycle</code>, <code>createRuntimeMemoryStateAdapter</code>, <code>createRuntimeScreenLoaderRequestKey</code>, <code>createRuntimeScreenOperationLoaderRequestLifecycle</code>, <code>dispatchRuntimeComponentEvent</code>, <code>dispatchRuntimeComponentEventWithReporting</code>, <code>executeRuntimeBindingInvocation</code>, <code>executeRuntimeScreenOperationLoaders</code>, <code>IDLE_RUNTIME_EVENT_OPERATION_STATE</code>, <code>isRuntimeContextCapabilityOutputPath</code>, <code>ManifestContext</code>, <code>ManifestProvider</code>, <code>mergeRuntimeRendererConfig</code>, <code>resolveBindingInputMap</code>, <code>resolveBindingInputMapSync</code>, <code>resolveRuntimeActionValue</code>, <code>resolveRuntimeBindingExpression</code>, <code>resolveRuntimeBindingExpressionSync</code>, <code>resolveRuntimeBindings</code>, <code>resolveRuntimeBindingsAsync</code>, <code>resolveRuntimeBindingValue</code>, <code>resolveRuntimeBindingValueSync</code>, <code>resolveRuntimeContextCapability</code>, <code>resolveRuntimeEventOperationErrorMessage</code>, <code>resolveScreenOperationLoaders</code>, <code>RuntimeActionDescriptor</code>, <code>RuntimeActionRegistry</code>, <code>RuntimeActionResolutionArgs</code>, <code>RuntimeActionResolutionScope</code>, <code>RuntimeAdapterDescriptor</code>, <code>RuntimeApiCapabilityExecutorOptions</code>, <code>RuntimeAuthoringBounds</code>, <code>RuntimeAuthoringComponentIdentity</code>, <code>RuntimeAuthoringGestureDisposition</code>, <code>RuntimeAuthoringMode</code>, <code>RuntimeAuthoringOverlayAdapter</code>, <code>RuntimeAuthoringOverlayNodeArgs</code>, <code>RuntimeBindingDescriptor</code>, <code>RuntimeBindingResolutionArgs</code>, <code>RuntimeBindingResolutionContext</code>, <code>RuntimeBindingResolutionResult</code>, <code>RuntimeBindingResultCache</code>, <code>RuntimeBindingResultWriter</code>, <code>RuntimeCapabilityExecutionArgs</code>, <code>RuntimeCapabilityExecutionResult</code>, <code>RuntimeCapabilityExecutor</code>, <code>RuntimeCapabilityExecutorComposition</code>, <code>RuntimeComponentEventDispatchArgs</code>, <code>RuntimeContextCapabilityId</code>, <code>RuntimeContextCapabilityResolution</code>, <code>RuntimeDiagnostic</code>, <code>RuntimeEventCapabilityResolver</code>, <code>RuntimeEventDiagnosticsReporter</code>, <code>RuntimeEventOperationInvocation</code>, <code>RuntimeEventOperationLifecycle</code>, <code>RuntimeEventOperationState</code>, <code>RuntimeEventOperationStatus</code>, <code>RuntimeEventPropWrapArgs</code>, <code>RuntimeFlowPort</code>, <code>RuntimeFlowStartRequest</code>, <code>RuntimeManifest</code>, <code>RuntimeManifestConfig</code>, <code>RuntimeManifestInput</code>, <code>RuntimeMediaAssetResolver</code>, <code>RuntimeMediaAssetResolverArgs</code>, <code>RuntimeMemoryStateAdapterOptions</code>, <code>RuntimeNodePropsResolver</code>, <code>RuntimeRenderer</code>, <code>RuntimeRendererConfig</code>, <code>RuntimeRendererConfigProvider</code>, <code>RuntimeRendererProps</code>, <code>RuntimeRendererWrapArgs</code>, <code>RuntimeResolvedMediaValue</code>, <code>RuntimeResolveNodePropsArgs</code>, <code>RuntimeScreen</code>, <code>RuntimeScreenOperationLoaderExecutionResult</code>, <code>RuntimeScreenOperationLoaderState</code>, <code>RuntimeScreenProps</code>, <code>shouldRenderRuntimeRepeatEmptyState</code>, <code>useClipboardWriter</code>, <code>useManifest</code>, <code>useManifestContext</code>, <code>useOptionalManifestContext</code>, <code>useRuntimeRendererConfig</code>, <code>useRuntimeScreenOperationLoaders</code>, <code>wrapRuntimeEventProps</code>, <code>writeClipboardTextAsync</code></p>
521
+ <p><strong>Exports:</strong> <code>applyRuntimeBindingDataPath</code>, <code>ClipboardWriter</code>, <code>ClipboardWriteResult</code>, <code>ClipboardWriterProvider</code>, <code>ComponentRegistry</code>, <code>composeRuntimeCapabilityExecutor</code>, <code>composeRuntimeNodePropsResolver</code>, <code>composeRuntimeRendererWrapNode</code>, <code>createComponentEventFromHandlerArgs</code>, <code>createComponentRegistry</code>, <code>createPendingRuntimeScreenOperationLoaderState</code>, <code>createRuntimeActionRegistry</code>, <code>createRuntimeApiCapabilityExecutor</code>, <code>createRuntimeAuthoringOverlayConfig</code>, <code>createRuntimeEventOperationBindingContext</code>, <code>createRuntimeEventOperationLifecycle</code>, <code>createRuntimeMemoryStateAdapter</code>, <code>createRuntimeScreenLoaderRequestKey</code>, <code>createRuntimeScreenOperationLoaderRequestLifecycle</code>, <code>dispatchRuntimeComponentEvent</code>, <code>dispatchRuntimeComponentEventWithReporting</code>, <code>executeRuntimeBindingInvocation</code>, <code>executeRuntimeScreenOperationLoaders</code>, <code>IDLE_RUNTIME_EVENT_OPERATION_STATE</code>, <code>isRuntimeContextCapabilityOutputPath</code>, <code>ManifestContext</code>, <code>ManifestProvider</code>, <code>mergeRuntimeRendererConfig</code>, <code>resolveBindingInputMap</code>, <code>resolveBindingInputMapSync</code>, <code>resolveRuntimeActionValue</code>, <code>resolveRuntimeBindingExpression</code>, <code>resolveRuntimeBindingExpressionSync</code>, <code>resolveRuntimeBindings</code>, <code>resolveRuntimeBindingsAsync</code>, <code>resolveRuntimeBindingValue</code>, <code>resolveRuntimeBindingValueSync</code>, <code>resolveRuntimeContextCapability</code>, <code>resolveRuntimeEventOperationErrorMessage</code>, <code>resolveScreenOperationLoaders</code>, <code>RuntimeActionDescriptor</code>, <code>RuntimeActionRegistry</code>, <code>RuntimeActionResolutionArgs</code>, <code>RuntimeActionResolutionScope</code>, <code>RuntimeAdapterDescriptor</code>, <code>RuntimeApiCapabilityExecutorOptions</code>, <code>RuntimeApiOperationTransport</code>, <code>RuntimeApiOperationTransportInput</code>, <code>RuntimeAuthoringBounds</code>, <code>RuntimeAuthoringComponentIdentity</code>, <code>RuntimeAuthoringGestureDisposition</code>, <code>RuntimeAuthoringMode</code>, <code>RuntimeAuthoringOverlayAdapter</code>, <code>RuntimeAuthoringOverlayNodeArgs</code>, <code>RuntimeBindingDescriptor</code>, <code>RuntimeBindingResolutionArgs</code>, <code>RuntimeBindingResolutionContext</code>, <code>RuntimeBindingResolutionResult</code>, <code>RuntimeBindingResultCache</code>, <code>RuntimeBindingResultWriter</code>, <code>RuntimeCapabilityExecutionArgs</code>, <code>RuntimeCapabilityExecutionResult</code>, <code>RuntimeCapabilityExecutor</code>, <code>RuntimeCapabilityExecutorComposition</code>, <code>RuntimeComponentEventDispatchArgs</code>, <code>RuntimeContextCapabilityId</code>, <code>RuntimeContextCapabilityResolution</code>, <code>RuntimeDiagnostic</code>, <code>RuntimeEventCapabilityResolver</code>, <code>RuntimeEventDiagnosticsReporter</code>, <code>RuntimeEventOperationInvocation</code>, <code>RuntimeEventOperationLifecycle</code>, <code>RuntimeEventOperationState</code>, <code>RuntimeEventOperationStatus</code>, <code>RuntimeEventPropWrapArgs</code>, <code>RuntimeFlowPort</code>, <code>RuntimeFlowStartRequest</code>, <code>RuntimeManifest</code>, <code>RuntimeManifestConfig</code>, <code>RuntimeManifestInput</code>, <code>RuntimeMediaAssetResolver</code>, <code>RuntimeMediaAssetResolverArgs</code>, <code>RuntimeMemoryStateAdapterOptions</code>, <code>RuntimeNodePropsResolver</code>, <code>RuntimeRenderer</code>, <code>RuntimeRendererConfig</code>, <code>RuntimeRendererConfigProvider</code>, <code>RuntimeRendererProps</code>, <code>RuntimeRendererWrapArgs</code>, <code>RuntimeResolvedMediaValue</code>, <code>RuntimeResolveNodePropsArgs</code>, <code>RuntimeScreen</code>, <code>RuntimeScreenOperationLoaderExecutionResult</code>, <code>RuntimeScreenOperationLoaderState</code>, <code>RuntimeScreenProps</code>, <code>shouldRenderRuntimeRepeatEmptyState</code>, <code>useClipboardWriter</code>, <code>useManifest</code>, <code>useManifestContext</code>, <code>useOptionalManifestContext</code>, <code>useRuntimeRendererConfig</code>, <code>useRuntimeScreenOperationLoaders</code>, <code>wrapRuntimeEventProps</code>, <code>writeClipboardTextAsync</code></p>
522
522
  </article><article class="item" data-search="src/ManifestContext.tsx src/runtimeStateAdapter.ts ManifestContext ManifestContextValue ManifestProvider useManifest useManifestContext useOptionalManifestContext">
523
523
  <h3>src/ManifestContext.tsx</h3>
524
524
  <p class="muted">Referenced module</p>
@@ -564,11 +564,11 @@ inject it at the runtime boundary.</p>
564
564
  <p class="muted">Referenced module</p>
565
565
  <p><strong>Dependencies:</strong> <code>src/runtimeApiCapabilities.ts</code></p>
566
566
  <p><strong>Exports:</strong> <span class="empty">None</span></p>
567
- </article><article class="item" data-search="src/runtimeApiCapabilities.ts src/runtimeBindings.ts createRuntimeApiCapabilityExecutor RuntimeApiCapabilityExecutorOptions">
567
+ </article><article class="item" data-search="src/runtimeApiCapabilities.ts src/runtimeBindings.ts createRuntimeApiCapabilityExecutor RuntimeApiCapabilityExecutorOptions RuntimeApiOperationTransport RuntimeApiOperationTransportInput">
568
568
  <h3>src/runtimeApiCapabilities.ts</h3>
569
569
  <p class="muted">Referenced module</p>
570
570
  <p><strong>Dependencies:</strong> <code>src/runtimeBindings.ts</code></p>
571
- <p><strong>Exports:</strong> <code>createRuntimeApiCapabilityExecutor</code>, <code>RuntimeApiCapabilityExecutorOptions</code></p>
571
+ <p><strong>Exports:</strong> <code>createRuntimeApiCapabilityExecutor</code>, <code>RuntimeApiCapabilityExecutorOptions</code>, <code>RuntimeApiOperationTransport</code>, <code>RuntimeApiOperationTransportInput</code></p>
572
572
  </article><article class="item" data-search="src/runtimeAuthoringOverlay.test.ts src/runtimeAuthoringOverlay.ts src/RuntimeRendererConfig.tsx">
573
573
  <h3>src/runtimeAuthoringOverlay.test.ts</h3>
574
574
  <p class="muted">Referenced module</p>
@@ -1457,7 +1457,7 @@ inject it at the runtime boundary.</p>
1457
1457
  <article class="item" id="symbol-createruntimeapicapabilityexecutor" data-search="createRuntimeApiCapabilityExecutor function src/runtimeApiCapabilities.ts Creates the canonical API capability adapter over Runtime&#39;s existing data-operation executor. RuntimeApiCapabilityExecutorOptions RuntimeCapabilityExecutor (options: RuntimeApiCapabilityExecutorOptions) =&gt; RuntimeCapabilityExecutor">
1458
1458
  <h4>createRuntimeApiCapabilityExecutor</h4>
1459
1459
 
1460
- <p class="muted">function • <code>src/runtimeApiCapabilities.ts:24:1</code></p>
1460
+ <p class="muted">function • <code>src/runtimeApiCapabilities.ts:39:1</code></p>
1461
1461
  <p>Creates the canonical API capability adapter over Runtime&#39;s existing data-operation executor.</p>
1462
1462
 
1463
1463
  <p><strong>Export paths:</strong> <code>src/index.ts</code></p>
@@ -1479,14 +1479,14 @@ inject it at the runtime boundary.</p>
1479
1479
  <p><strong>Returns:</strong> <code>RuntimeCapabilityExecutor</code></p>
1480
1480
  </div>
1481
1481
 
1482
- </article><article class="item" id="symbol-runtimeapicapabilityexecutoroptions" data-search="RuntimeApiCapabilityExecutorOptions type src/runtimeApiCapabilities.ts ">
1482
+ </article><article class="item" id="symbol-runtimeapicapabilityexecutoroptions" data-search="RuntimeApiCapabilityExecutorOptions type src/runtimeApiCapabilities.ts RuntimeApiOperationTransport">
1483
1483
  <h4>RuntimeApiCapabilityExecutorOptions</h4>
1484
1484
 
1485
1485
  <p class="muted">type • <code>src/runtimeApiCapabilities.ts:16:1</code></p>
1486
1486
 
1487
1487
 
1488
1488
  <p><strong>Export paths:</strong> <code>src/index.ts</code></p>
1489
- <div><strong>Related symbols:</strong> <span class="empty">None</span></div>
1489
+ <div><strong>Related symbols:</strong> <ul class="chips"><li class="chip">RuntimeApiOperationTransport</li></ul></div>
1490
1490
 
1491
1491
  <table>
1492
1492
  <thead><tr><th>Member</th><th>Kind</th><th>Type</th><th>Required</th><th>Description</th></tr></thead>
@@ -1509,6 +1509,61 @@ inject it at the runtime boundary.</p>
1509
1509
  <td><code>EndpointTestFetch | undefined</code></td>
1510
1510
  <td>no</td>
1511
1511
  <td></td>
1512
+ </tr><tr>
1513
+ <td><code>operationTransport</code></td>
1514
+ <td>property</td>
1515
+ <td><code>RuntimeApiOperationTransport | undefined</code></td>
1516
+ <td>no</td>
1517
+ <td>Delegates one declared operation to a trusted host without disclosing its upstream target or credentials.</td>
1518
+ </tr>
1519
+ </tbody>
1520
+ </table>
1521
+ </article><article class="item" id="symbol-runtimeapioperationtransport" data-search="RuntimeApiOperationTransport unknown src/runtimeApiCapabilities.ts A host-owned external-operation boundary that accepts identity and validated binding input only.">
1522
+ <h4>RuntimeApiOperationTransport</h4>
1523
+
1524
+ <p class="muted">unknown • <code>src/runtimeApiCapabilities.ts:34:1</code></p>
1525
+ <p>A host-owned external-operation boundary that accepts identity and validated binding input only.</p>
1526
+
1527
+ <p><strong>Export paths:</strong> <code>src/index.ts</code></p>
1528
+ <div><strong>Related symbols:</strong> <span class="empty">None</span></div>
1529
+
1530
+
1531
+ </article><article class="item" id="symbol-runtimeapioperationtransportinput" data-search="RuntimeApiOperationTransportInput type src/runtimeApiCapabilities.ts The only client-to-host data required to execute a declared external API operation.">
1532
+ <h4>RuntimeApiOperationTransportInput</h4>
1533
+
1534
+ <p class="muted">type • <code>src/runtimeApiCapabilities.ts:26:1</code></p>
1535
+ <p>The only client-to-host data required to execute a declared external API operation.</p>
1536
+
1537
+ <p><strong>Export paths:</strong> <code>src/index.ts</code></p>
1538
+ <div><strong>Related symbols:</strong> <span class="empty">None</span></div>
1539
+
1540
+ <table>
1541
+ <thead><tr><th>Member</th><th>Kind</th><th>Type</th><th>Required</th><th>Description</th></tr></thead>
1542
+ <tbody>
1543
+ <tr>
1544
+ <td><code>apiId</code></td>
1545
+ <td>property</td>
1546
+ <td><code>string</code></td>
1547
+ <td>yes</td>
1548
+ <td></td>
1549
+ </tr><tr>
1550
+ <td><code>endpointId</code></td>
1551
+ <td>property</td>
1552
+ <td><code>string</code></td>
1553
+ <td>yes</td>
1554
+ <td></td>
1555
+ </tr><tr>
1556
+ <td><code>input</code></td>
1557
+ <td>property</td>
1558
+ <td><code>Readonly&lt;Record&lt;string, import(&quot;@ankhorage/contracts&quot;).SerializableValue&gt;&gt;</code></td>
1559
+ <td>yes</td>
1560
+ <td></td>
1561
+ </tr><tr>
1562
+ <td><code>operationId</code></td>
1563
+ <td>property</td>
1564
+ <td><code>string</code></td>
1565
+ <td>yes</td>
1566
+ <td></td>
1512
1567
  </tr>
1513
1568
  </tbody>
1514
1569
  </table>
@@ -5253,6 +5308,11 @@ must not provide credential resolution.</td>
5253
5308
  module_src_runtimeManifest_ts --&gt; export_RuntimeAdapterDescriptor
5254
5309
  export_RuntimeApiCapabilityExecutorOptions[&quot;RuntimeApiCapabilityExecutorOptions&quot;]
5255
5310
  module_src_runtimeApiCapabilities_ts --&gt; export_RuntimeApiCapabilityExecutorOptions
5311
+ export_RuntimeApiCapabilityExecutorOptions -.-&gt; export_RuntimeApiOperationTransport
5312
+ export_RuntimeApiOperationTransport[&quot;RuntimeApiOperationTransport&quot;]
5313
+ module_src_runtimeApiCapabilities_ts --&gt; export_RuntimeApiOperationTransport
5314
+ export_RuntimeApiOperationTransportInput[&quot;RuntimeApiOperationTransportInput&quot;]
5315
+ module_src_runtimeApiCapabilities_ts --&gt; export_RuntimeApiOperationTransportInput
5256
5316
  export_RuntimeAuthoringBounds[&quot;RuntimeAuthoringBounds&quot;]
5257
5317
  module_src_runtimeAuthoringOverlay_ts --&gt; export_RuntimeAuthoringBounds
5258
5318
  export_RuntimeAuthoringComponentIdentity[&quot;RuntimeAuthoringComponentIdentity&quot;]
@@ -5627,6 +5687,11 @@ must not provide credential resolution.</td>
5627
5687
  module_src_runtimeManifest_ts --&gt; export_RuntimeAdapterDescriptor
5628
5688
  export_RuntimeApiCapabilityExecutorOptions[&quot;RuntimeApiCapabilityExecutorOptions&quot;]
5629
5689
  module_src_runtimeApiCapabilities_ts --&gt; export_RuntimeApiCapabilityExecutorOptions
5690
+ export_RuntimeApiCapabilityExecutorOptions -.-&gt; export_RuntimeApiOperationTransport
5691
+ export_RuntimeApiOperationTransport[&quot;RuntimeApiOperationTransport&quot;]
5692
+ module_src_runtimeApiCapabilities_ts --&gt; export_RuntimeApiOperationTransport
5693
+ export_RuntimeApiOperationTransportInput[&quot;RuntimeApiOperationTransportInput&quot;]
5694
+ module_src_runtimeApiCapabilities_ts --&gt; export_RuntimeApiOperationTransportInput
5630
5695
  export_RuntimeAuthoringBounds[&quot;RuntimeAuthoringBounds&quot;]
5631
5696
  module_src_runtimeAuthoringOverlay_ts --&gt; export_RuntimeAuthoringBounds
5632
5697
  export_RuntimeAuthoringComponentIdentity[&quot;RuntimeAuthoringComponentIdentity&quot;]
@@ -6304,7 +6369,15 @@ must not provide credential resolution.</td>
6304
6369
  <h2>src/apiCapabilities.test.ts</h2>
6305
6370
  <article class="item" data-search="acceptsOptions src/apiCapabilities.test.ts ">
6306
6371
  <h3>acceptsOptions</h3>
6307
- <p class="muted"><code>src/apiCapabilities.test.ts:7:9</code></p>
6372
+ <p class="muted"><code>src/apiCapabilities.test.ts:11:9</code></p>
6373
+ <p class="empty">No description available.</p>
6374
+ </article><article class="item" data-search="acceptsTransport src/apiCapabilities.test.ts ">
6375
+ <h3>acceptsTransport</h3>
6376
+ <p class="muted"><code>src/apiCapabilities.test.ts:14:9</code></p>
6377
+ <p class="empty">No description available.</p>
6378
+ </article><article class="item" data-search="acceptsTransportInput src/apiCapabilities.test.ts ">
6379
+ <h3>acceptsTransportInput</h3>
6380
+ <p class="muted"><code>src/apiCapabilities.test.ts:17:9</code></p>
6308
6381
  <p class="empty">No description available.</p>
6309
6382
  </article>
6310
6383
  </section>
@@ -6600,39 +6673,39 @@ must not provide credential resolution.</td>
6600
6673
  <h2>src/runtimeApiCapabilities.ts</h2>
6601
6674
  <article class="item" data-search="createRuntimeApiCapabilityExecutor src/runtimeApiCapabilities.ts Creates the canonical API capability adapter over Runtime&#39;s existing data-operation executor.">
6602
6675
  <h3>createRuntimeApiCapabilityExecutor</h3>
6603
- <p class="muted"><code>src/runtimeApiCapabilities.ts:24:1</code></p>
6676
+ <p class="muted"><code>src/runtimeApiCapabilities.ts:39:1</code></p>
6604
6677
  <p>Creates the canonical API capability adapter over Runtime&#39;s existing data-operation executor.</p>
6605
6678
  </article><article class="item" data-search="executeRuntimeApiCapabilityAsync src/runtimeApiCapabilities.ts ">
6606
6679
  <h3>executeRuntimeApiCapabilityAsync</h3>
6607
- <p class="muted"><code>src/runtimeApiCapabilities.ts:30:1</code></p>
6680
+ <p class="muted"><code>src/runtimeApiCapabilities.ts:45:1</code></p>
6608
6681
  <p class="empty">No description available.</p>
6609
6682
  </article><article class="item" data-search="redactRuntimeApiDiagnostics src/runtimeApiCapabilities.ts Removes remote transport detail before API diagnostics can reach Runtime bindings or props.">
6610
6683
  <h3>redactRuntimeApiDiagnostics</h3>
6611
- <p class="muted"><code>src/runtimeApiCapabilities.ts:58:1</code></p>
6684
+ <p class="muted"><code>src/runtimeApiCapabilities.ts:86:1</code></p>
6612
6685
  <p>Removes remote transport detail before API diagnostics can reach Runtime bindings or props.</p>
6613
6686
  </article><article class="item" data-search="remoteApiFailure src/runtimeApiCapabilities.ts Converts resolver failures into a credential-safe Runtime diagnostic.">
6614
6687
  <h3>remoteApiFailure</h3>
6615
- <p class="muted"><code>src/runtimeApiCapabilities.ts:69:1</code></p>
6688
+ <p class="muted"><code>src/runtimeApiCapabilities.ts:97:1</code></p>
6616
6689
  <p>Converts resolver failures into a credential-safe Runtime diagnostic.</p>
6617
6690
  </article><article class="item" data-search="resolveApiCapabilityTarget src/runtimeApiCapabilities.ts ">
6618
6691
  <h3>resolveApiCapabilityTarget</h3>
6619
- <p class="muted"><code>src/runtimeApiCapabilities.ts:82:1</code></p>
6692
+ <p class="muted"><code>src/runtimeApiCapabilities.ts:110:1</code></p>
6620
6693
  <p class="empty">No description available.</p>
6621
6694
  </article><article class="item" data-search="asBindingValueRecord src/runtimeApiCapabilities.ts ">
6622
6695
  <h3>asBindingValueRecord</h3>
6623
- <p class="muted"><code>src/runtimeApiCapabilities.ts:106:1</code></p>
6696
+ <p class="muted"><code>src/runtimeApiCapabilities.ts:134:1</code></p>
6624
6697
  <p class="empty">No description available.</p>
6625
6698
  </article><article class="item" data-search="isBindingValueRecord src/runtimeApiCapabilities.ts ">
6626
6699
  <h3>isBindingValueRecord</h3>
6627
- <p class="muted"><code>src/runtimeApiCapabilities.ts:112:1</code></p>
6700
+ <p class="muted"><code>src/runtimeApiCapabilities.ts:140:1</code></p>
6628
6701
  <p class="empty">No description available.</p>
6629
6702
  </article><article class="item" data-search="missingApiCapability src/runtimeApiCapabilities.ts ">
6630
6703
  <h3>missingApiCapability</h3>
6631
- <p class="muted"><code>src/runtimeApiCapabilities.ts:118:1</code></p>
6704
+ <p class="muted"><code>src/runtimeApiCapabilities.ts:146:1</code></p>
6632
6705
  <p class="empty">No description available.</p>
6633
6706
  </article><article class="item" data-search="invalidApiCapabilityInput src/runtimeApiCapabilities.ts ">
6634
6707
  <h3>invalidApiCapabilityInput</h3>
6635
- <p class="muted"><code>src/runtimeApiCapabilities.ts:131:1</code></p>
6708
+ <p class="muted"><code>src/runtimeApiCapabilities.ts:159:1</code></p>
6636
6709
  <p class="empty">No description available.</p>
6637
6710
  </article>
6638
6711
  </section>
@@ -18,7 +18,7 @@
18
18
  {
19
19
  "id": "npm",
20
20
  "label": "npm",
21
- "value": "v5.7.1",
21
+ "value": "v5.7.3",
22
22
  "color": "cb3837"
23
23
  },
24
24
  {
@@ -202,7 +202,9 @@
202
202
  "dependencies": [],
203
203
  "exports": [
204
204
  "createRuntimeApiCapabilityExecutor",
205
- "RuntimeApiCapabilityExecutorOptions"
205
+ "RuntimeApiCapabilityExecutorOptions",
206
+ "RuntimeApiOperationTransport",
207
+ "RuntimeApiOperationTransportInput"
206
208
  ]
207
209
  },
208
210
  {
@@ -222,6 +224,8 @@
222
224
  "resolveRuntimeBindingValue",
223
225
  "resolveRuntimeBindingValueSync",
224
226
  "RuntimeApiCapabilityExecutorOptions",
227
+ "RuntimeApiOperationTransport",
228
+ "RuntimeApiOperationTransportInput",
225
229
  "RuntimeBindingResolutionArgs",
226
230
  "RuntimeBindingResolutionContext",
227
231
  "RuntimeBindingResolutionResult",
@@ -362,6 +366,8 @@
362
366
  "RuntimeActionResolutionScope",
363
367
  "RuntimeAdapterDescriptor",
364
368
  "RuntimeApiCapabilityExecutorOptions",
369
+ "RuntimeApiOperationTransport",
370
+ "RuntimeApiOperationTransportInput",
365
371
  "RuntimeAuthoringBounds",
366
372
  "RuntimeAuthoringComponentIdentity",
367
373
  "RuntimeAuthoringGestureDisposition",
@@ -527,7 +533,9 @@
527
533
  ],
528
534
  "exports": [
529
535
  "createRuntimeApiCapabilityExecutor",
530
- "RuntimeApiCapabilityExecutorOptions"
536
+ "RuntimeApiCapabilityExecutorOptions",
537
+ "RuntimeApiOperationTransport",
538
+ "RuntimeApiOperationTransportInput"
531
539
  ]
532
540
  },
533
541
  {
@@ -1495,7 +1503,7 @@
1495
1503
  "modulePath": "src/runtimeApiCapabilities.ts",
1496
1504
  "sourceLocation": {
1497
1505
  "filePath": "src/runtimeApiCapabilities.ts",
1498
- "line": 24,
1506
+ "line": 39,
1499
1507
  "column": 1
1500
1508
  },
1501
1509
  "exportPaths": [
@@ -2856,7 +2864,9 @@
2856
2864
  "exportPaths": [
2857
2865
  "src/index.ts"
2858
2866
  ],
2859
- "relatedSymbols": [],
2867
+ "relatedSymbols": [
2868
+ "RuntimeApiOperationTransport"
2869
+ ],
2860
2870
  "signatures": [],
2861
2871
  "members": [
2862
2872
  {
@@ -2879,6 +2889,86 @@
2879
2889
  "type": "EndpointTestFetch | undefined",
2880
2890
  "required": false,
2881
2891
  "description": null
2892
+ },
2893
+ {
2894
+ "name": "operationTransport",
2895
+ "kind": "property",
2896
+ "type": "RuntimeApiOperationTransport | undefined",
2897
+ "required": false,
2898
+ "description": "Delegates one declared operation to a trusted host without disclosing its upstream target or credentials."
2899
+ }
2900
+ ],
2901
+ "structuredRows": []
2902
+ },
2903
+ {
2904
+ "name": "RuntimeApiOperationTransport",
2905
+ "title": null,
2906
+ "description": "A host-owned external-operation boundary that accepts identity and validated binding input only.",
2907
+ "isReadme": false,
2908
+ "see": [],
2909
+ "security": [],
2910
+ "kind": "unknown",
2911
+ "modulePath": "src/runtimeApiCapabilities.ts",
2912
+ "sourceLocation": {
2913
+ "filePath": "src/runtimeApiCapabilities.ts",
2914
+ "line": 34,
2915
+ "column": 1
2916
+ },
2917
+ "exportPaths": [
2918
+ "src/index.ts"
2919
+ ],
2920
+ "relatedSymbols": [],
2921
+ "signatures": [],
2922
+ "members": [],
2923
+ "structuredRows": []
2924
+ },
2925
+ {
2926
+ "name": "RuntimeApiOperationTransportInput",
2927
+ "title": null,
2928
+ "description": "The only client-to-host data required to execute a declared external API operation.",
2929
+ "isReadme": false,
2930
+ "see": [],
2931
+ "security": [],
2932
+ "kind": "type",
2933
+ "modulePath": "src/runtimeApiCapabilities.ts",
2934
+ "sourceLocation": {
2935
+ "filePath": "src/runtimeApiCapabilities.ts",
2936
+ "line": 26,
2937
+ "column": 1
2938
+ },
2939
+ "exportPaths": [
2940
+ "src/index.ts"
2941
+ ],
2942
+ "relatedSymbols": [],
2943
+ "signatures": [],
2944
+ "members": [
2945
+ {
2946
+ "name": "apiId",
2947
+ "kind": "property",
2948
+ "type": "string",
2949
+ "required": true,
2950
+ "description": null
2951
+ },
2952
+ {
2953
+ "name": "endpointId",
2954
+ "kind": "property",
2955
+ "type": "string",
2956
+ "required": true,
2957
+ "description": null
2958
+ },
2959
+ {
2960
+ "name": "input",
2961
+ "kind": "property",
2962
+ "type": "Readonly<Record<string, import(\"@ankhorage/contracts\").SerializableValue>>",
2963
+ "required": true,
2964
+ "description": null
2965
+ },
2966
+ {
2967
+ "name": "operationId",
2968
+ "kind": "property",
2969
+ "type": "string",
2970
+ "required": true,
2971
+ "description": null
2882
2972
  }
2883
2973
  ],
2884
2974
  "structuredRows": []
@@ -5793,7 +5883,29 @@
5793
5883
  "security": [],
5794
5884
  "sourceLocation": {
5795
5885
  "filePath": "src/apiCapabilities.test.ts",
5796
- "line": 7,
5886
+ "line": 11,
5887
+ "column": 9
5888
+ }
5889
+ },
5890
+ {
5891
+ "name": "acceptsTransport",
5892
+ "description": null,
5893
+ "see": [],
5894
+ "security": [],
5895
+ "sourceLocation": {
5896
+ "filePath": "src/apiCapabilities.test.ts",
5897
+ "line": 14,
5898
+ "column": 9
5899
+ }
5900
+ },
5901
+ {
5902
+ "name": "acceptsTransportInput",
5903
+ "description": null,
5904
+ "see": [],
5905
+ "security": [],
5906
+ "sourceLocation": {
5907
+ "filePath": "src/apiCapabilities.test.ts",
5908
+ "line": 17,
5797
5909
  "column": 9
5798
5910
  }
5799
5911
  },
@@ -6442,7 +6554,7 @@
6442
6554
  "security": [],
6443
6555
  "sourceLocation": {
6444
6556
  "filePath": "src/runtimeApiCapabilities.ts",
6445
- "line": 24,
6557
+ "line": 39,
6446
6558
  "column": 1
6447
6559
  }
6448
6560
  },
@@ -6453,7 +6565,7 @@
6453
6565
  "security": [],
6454
6566
  "sourceLocation": {
6455
6567
  "filePath": "src/runtimeApiCapabilities.ts",
6456
- "line": 30,
6568
+ "line": 45,
6457
6569
  "column": 1
6458
6570
  }
6459
6571
  },
@@ -6464,7 +6576,7 @@
6464
6576
  "security": [],
6465
6577
  "sourceLocation": {
6466
6578
  "filePath": "src/runtimeApiCapabilities.ts",
6467
- "line": 58,
6579
+ "line": 86,
6468
6580
  "column": 1
6469
6581
  }
6470
6582
  },
@@ -6475,7 +6587,7 @@
6475
6587
  "security": [],
6476
6588
  "sourceLocation": {
6477
6589
  "filePath": "src/runtimeApiCapabilities.ts",
6478
- "line": 69,
6590
+ "line": 97,
6479
6591
  "column": 1
6480
6592
  }
6481
6593
  },
@@ -6486,7 +6598,7 @@
6486
6598
  "security": [],
6487
6599
  "sourceLocation": {
6488
6600
  "filePath": "src/runtimeApiCapabilities.ts",
6489
- "line": 82,
6601
+ "line": 110,
6490
6602
  "column": 1
6491
6603
  }
6492
6604
  },
@@ -6497,7 +6609,7 @@
6497
6609
  "security": [],
6498
6610
  "sourceLocation": {
6499
6611
  "filePath": "src/runtimeApiCapabilities.ts",
6500
- "line": 106,
6612
+ "line": 134,
6501
6613
  "column": 1
6502
6614
  }
6503
6615
  },
@@ -6508,7 +6620,7 @@
6508
6620
  "security": [],
6509
6621
  "sourceLocation": {
6510
6622
  "filePath": "src/runtimeApiCapabilities.ts",
6511
- "line": 112,
6623
+ "line": 140,
6512
6624
  "column": 1
6513
6625
  }
6514
6626
  },
@@ -6519,7 +6631,7 @@
6519
6631
  "security": [],
6520
6632
  "sourceLocation": {
6521
6633
  "filePath": "src/runtimeApiCapabilities.ts",
6522
- "line": 118,
6634
+ "line": 146,
6523
6635
  "column": 1
6524
6636
  }
6525
6637
  },
@@ -6530,7 +6642,7 @@
6530
6642
  "security": [],
6531
6643
  "sourceLocation": {
6532
6644
  "filePath": "src/runtimeApiCapabilities.ts",
6533
- "line": 131,
6645
+ "line": 159,
6534
6646
  "column": 1
6535
6647
  }
6536
6648
  },
@@ -9863,20 +9975,26 @@
9863
9975
  },
9864
9976
  {
9865
9977
  "fromSymbol": "executeRuntimeApiCapabilityAsync",
9866
- "toSymbol": "testEndpoint",
9867
- "callExpression": "testEndpoint",
9978
+ "toSymbol": "operationTransport",
9979
+ "callExpression": "options.operationTransport",
9868
9980
  "sourcePath": "src/runtimeApiCapabilities.ts"
9869
9981
  },
9870
9982
  {
9871
9983
  "fromSymbol": "executeRuntimeApiCapabilityAsync",
9872
- "toSymbol": "redactRuntimeApiDiagnostics",
9873
- "callExpression": "redactRuntimeApiDiagnostics",
9984
+ "toSymbol": "remoteApiFailure",
9985
+ "callExpression": "remoteApiFailure",
9874
9986
  "sourcePath": "src/runtimeApiCapabilities.ts"
9875
9987
  },
9876
9988
  {
9877
9989
  "fromSymbol": "executeRuntimeApiCapabilityAsync",
9878
- "toSymbol": "remoteApiFailure",
9879
- "callExpression": "remoteApiFailure",
9990
+ "toSymbol": "testEndpoint",
9991
+ "callExpression": "testEndpoint",
9992
+ "sourcePath": "src/runtimeApiCapabilities.ts"
9993
+ },
9994
+ {
9995
+ "fromSymbol": "executeRuntimeApiCapabilityAsync",
9996
+ "toSymbol": "redactRuntimeApiDiagnostics",
9997
+ "callExpression": "redactRuntimeApiDiagnostics",
9880
9998
  "sourcePath": "src/runtimeApiCapabilities.ts"
9881
9999
  },
9882
10000
  {
@@ -12493,6 +12611,21 @@
12493
12611
  "toType": "EndpointTestFetch",
12494
12612
  "sourcePath": "src/runtimeApiCapabilities.ts"
12495
12613
  },
12614
+ {
12615
+ "fromSymbol": "RuntimeApiCapabilityExecutorOptions",
12616
+ "toType": "RuntimeApiOperationTransport",
12617
+ "sourcePath": "src/runtimeApiCapabilities.ts"
12618
+ },
12619
+ {
12620
+ "fromSymbol": "RuntimeApiOperationTransportInput",
12621
+ "toType": "Readonly",
12622
+ "sourcePath": "src/runtimeApiCapabilities.ts"
12623
+ },
12624
+ {
12625
+ "fromSymbol": "RuntimeApiOperationTransportInput",
12626
+ "toType": "SerializableValue",
12627
+ "sourcePath": "src/runtimeApiCapabilities.ts"
12628
+ },
12496
12629
  {
12497
12630
  "fromSymbol": "createRuntimeApiCapabilityExecutor",
12498
12631
  "toType": "RuntimeApiCapabilityExecutorOptions",