@rslsp1/fa-app-tools 2.0.85 → 2.0.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/szenen.d.mts CHANGED
@@ -2,8 +2,8 @@ import { ac as SchemaError, Z as PublishFinding, Y as PublishCheckResult, aj as
2
2
  export { A as ALL_PUBLISH_RULES, C as CHAIN_EDGES, b as CHAIN_LINK_FIELDS, c as CatalogueEntry, d as ChainLinkField, e as ChainTarget, f as ChainVerdict, g as CompiledSchemas, i as ContractCheck, j as ContractCheckResult, k as ContractRunResult, l as ContractViolation, m as CreateElementInput, D as DERIVABLE_TYPES, r as DerivationEnvelope, t as DerivationFailureClass, x as DerivationPolicyPayload, y as DerivationProposal, z as DraftChainLink, E as DraftFork, F as DraftRecord, G as ElementMetadata, H as ElementRecord, J as ElementStoreContractHarness, K as ElementVersionValidation, L as FindingSeverity, O as OptionalCommand, P as PROBE_VERSION_ID, Q as ParentRelation, R as PreferredHeadOutcome, S as PreferredHeadResolution, T as PreferredHeadSelection, U as PreferredHeadSource, V as ProjectionState, W as ProjectionStatus, X as PublishCheckInput, _ as PublishRejected, $ as PublishVersionInput, a0 as PublishedVersion, a1 as REFERENCE_FIELD, a3 as ResolvePreferredHeadOptions, a4 as ResolvedVersion, a5 as ReviseMetadataInput, a6 as STYLE_PAYLOAD, a7 as STYLE_PAYLOAD_V2, a8 as SZENEN_ELEMENT_TYPES, a9 as SceneDerivationInput, aa as SceneDerivationOutcome, ab as SceneDerivationOutput, ad as SchemaValidationResult, ae as SetPreferredHeadInput, af as StoreAuthority, ag as SzenenCommandResult, ak as SzenenProjection, am as TargetModelCandidate, an as TargetModelQueries, ao as TargetModelQuery, aq as UnsupportedSchemaError, as as VersionDag, at as VersionDagError, au as VersionNode, av as VersionParentLink, aw as WriteConflict, ax as WriteDraftInput, ay as assessDerivationResponse, az as buildDerivationSystemInstruction, aA as buildDerivationUserPrompt, aB as buildVersionDag, aC as checkChainTargets, aD as checkDerivationResponse, aE as checkDraftChainMeta, aF as collectVersionRefs, aG as compileSchemas, aH as createSimulationSceneDerivationPort, aI as describeTargetModelFailure, aJ as elementStoreContractChecks, aK as formatSchemaErrors, aL as getSzenenSchemas, aM as isOk, aN as isProjectionCurrent, aO as linkFor, aP as parseDerivationResponse, aQ as preferredVersionId, aR as resolvePreferredHead, aS as resolveTargetModelOver, aT as resolverFromQueries, aU as runElementStoreContract, aV as runPublishChecks, aW as runSceneDerivation, aX as showChain, aY as validateAgainst, aZ as validateDerivationInput, a_ as validateElementVersion, a$ as validatePayload, b0 as withReference } from './storeContract-B2BDgvhN.mjs';
3
3
  import { T as TextGenerationPort, Q as QueryResult, C as CommandResult } from './contracts-DdYOMBl9.mjs';
4
4
  export { S as SIMULATION_PROVIDER, c as TextGenerationRequest, d as TextGenerationResult, g as createFakeTextGenerationPort, h as createSimulationTextGenerationPort, s as simulatedAnswerFor } from './contracts-DdYOMBl9.mjs';
5
- import { F as FlowGenerateText } from './flowTextGenerationPort-CeDUFutP.mjs';
6
- export { C as CreateFlowTextGenerationPortOptions, i as createFlowTextGenerationPort } from './flowTextGenerationPort-CeDUFutP.mjs';
5
+ import { g as HFStateSnapshot, F as FlowGenerateText } from './hfEventTypes-Dkfrcd_t.mjs';
6
+ export { C as CreateFlowTextGenerationPortOptions, t as createFlowTextGenerationPort } from './hfEventTypes-Dkfrcd_t.mjs';
7
7
  import React__default from 'react';
8
8
 
9
9
  /** Rohes JSON-Schema, wie es in der Spezifikation steht. */
@@ -662,6 +662,19 @@ interface ImageBatchPersistedImage {
662
662
  media_ref: string;
663
663
  /** Fachlich stabile Identität, soweit bekannt — hier identisch mit `media_ref` (D-118). */
664
664
  asset_id?: string;
665
+ /**
666
+ * Der **bestätigte** MIME-Typ der abgelegten Datei — Review 2026-08-18 §5 P2.
667
+ *
668
+ * Additiv nachgetragen, weil der Batch ihn beim Schreiben kennt, ihn aber
669
+ * nicht führte: Der Lesepfad musste die Dateiendung deshalb über zwei
670
+ * Varianten erraten. Geraten wird nichts mehr — der Typ stammt aus den
671
+ * tatsächlichen Bildbytes (`typAusBytes`), nicht aus einer Annahme, und
672
+ * bestimmt den Pfad `images/<id>.<ext>`, unter dem die Datei liegt.
673
+ *
674
+ * Optional, weil ältere Ereignisse ihn nicht tragen; für die fällt der
675
+ * Lesepfad auf den Bestandseintrag zurück.
676
+ */
677
+ mime_type?: string | null;
665
678
  model?: string | null;
666
679
  /** Nur gesetzt, wenn der Provider ihn tatsächlich zurückliefert (D-107). */
667
680
  seed?: number | null;
@@ -2121,8 +2134,16 @@ interface SzenenImageLibraryPort {
2121
2134
  search?: string;
2122
2135
  limit?: number;
2123
2136
  }): Promise<QueryResult<readonly LibraryImage[]>>;
2124
- /** Base64 **ohne** `data:`-Präfix und der MIME-Typ — die Modelleingabe. */
2125
- resolveImage(mediaRef: string): Promise<QueryResult<{
2137
+ /**
2138
+ * Base64 **ohne** `data:`-Präfix und der MIME-Typ — die Modelleingabe.
2139
+ *
2140
+ * `mimeTypeHinweis` ist ein **Hinweis**, kein Zwang: Kennt der Aufrufer den
2141
+ * bestätigten Typ aus dem Batch-Nachweis (`PromptBatchImageRef.mime_type`,
2142
+ * Review 2026-08-18 §5 P2), erspart er dem Host das Raten der Dateiendung,
2143
+ * solange der Bestand das Bild noch nicht führt. Ein Host, der ihn nicht
2144
+ * braucht, ignoriert ihn.
2145
+ */
2146
+ resolveImage(mediaRef: string, mimeTypeHinweis?: string | null): Promise<QueryResult<{
2126
2147
  data: string;
2127
2148
  mime_type: string;
2128
2149
  }>>;
@@ -2183,6 +2204,14 @@ interface PromptBatchImageRef {
2183
2204
  media_ref: string;
2184
2205
  position: number;
2185
2206
  file?: string;
2207
+ /**
2208
+ * Der bestätigte MIME-Typ der abgelegten Datei, soweit der Nachweis ihn führt
2209
+ * (Review 2026-08-18 §5 P2).
2210
+ *
2211
+ * Der Lesepfad bildet daraus den Dateipfad, statt zwischen den Endungen zu
2212
+ * raten. Optional, weil ältere Batches ihn nicht tragen.
2213
+ */
2214
+ mime_type?: string | null;
2186
2215
  model?: string | null;
2187
2216
  seed?: number | null;
2188
2217
  width?: number | null;
@@ -2391,6 +2420,54 @@ declare function unsupportedReason(capability: string): string;
2391
2420
  */
2392
2421
  declare function callOptional<T>(capability: string, operation: (() => Promise<CommandResult<T>>) | undefined): Promise<CommandResult<T>>;
2393
2422
 
2423
+ interface HfImageStoreOptions {
2424
+ namespace: string;
2425
+ token: string;
2426
+ now?: () => number;
2427
+ /**
2428
+ * Wie oft ein Bild, das im Bestand fehlt, direkt von HF geholt wird, und wie
2429
+ * lange dazwischen gewartet wird.
2430
+ *
2431
+ * Der Verzug ist real, aber kurz. Ersetzbar, damit ein Test ihn nicht
2432
+ * aussitzen muss.
2433
+ */
2434
+ leseVersuche?: number;
2435
+ leseBasisMs?: number;
2436
+ schlafen?: (ms: number) => Promise<void>;
2437
+ }
2438
+ interface AufgeloestesBild {
2439
+ data: string;
2440
+ mimeType: string;
2441
+ }
2442
+ interface HfImageStore {
2443
+ /**
2444
+ * Legt ein Bild unter einer **vorgegebenen** Kennung ab.
2445
+ *
2446
+ * Reihenfolge zwingend: erst die Datei, dann das Ereignis (R3 der
2447
+ * 6.9.2-Spezifikation). Ein Nachweis, der auf eine fehlende Datei zeigt,
2448
+ * wäre für jeden Leser ein Fehler; umgekehrt ist es nur eine Datei, die noch
2449
+ * kein Ereignis kennt.
2450
+ */
2451
+ putWithId(id: string, base64: string, mimeType: string, titel?: string): Promise<void>;
2452
+ /** Löst eine Kennung auf. `mimeType` ist ein Hinweis, kein Zwang. */
2453
+ resolve(id: string, mimeType?: string | null): Promise<AufgeloestesBild>;
2454
+ /** Der aktuelle Bestand — Schnappschuss plus die Ereignisse danach. */
2455
+ bestand(): Promise<HFStateSnapshot>;
2456
+ }
2457
+ /** Der HF-Pfad einer Bildkennung — für die Fehlermeldung, die ihn nennen muss (R7). */
2458
+ declare function bildPfad(id: string, mimeType: string | null | undefined): string;
2459
+ /**
2460
+ * Der MIME-Typ aus den tatsächlichen Bildbytes.
2461
+ *
2462
+ * Review §5 P2: `image/png` einfach anzunehmen genügt nicht — für importierte
2463
+ * oder künftig anders kodierte Bilder wäre der Typ dann falsch deklariert, und
2464
+ * die Datei läge unter einer Endung, unter der sie niemand sucht. Geprüft
2465
+ * werden die Signaturen am Anfang der Daten; nur wenn keine passt, bleibt es
2466
+ * bei der Angabe des Aufrufers.
2467
+ */
2468
+ declare function typAusBytes(base64: string, vorgabe?: string): string;
2469
+ declare function createHfImageStore(options: HfImageStoreOptions): HfImageStore;
2470
+
2394
2471
  interface CreateHfImageLibraryOptions {
2395
2472
  namespace: string;
2396
2473
  token: string;
@@ -2398,6 +2475,15 @@ interface CreateHfImageLibraryOptions {
2398
2475
  newImageId?: () => string;
2399
2476
  /** Die Uhr — dieselbe Begründung. */
2400
2477
  now?: () => number;
2478
+ /**
2479
+ * Der gemeinsame Bildspeicher (Review §5 P1).
2480
+ *
2481
+ * Wird er übergeben, teilen sich Bildbestand und Batch-Persistenz **eine**
2482
+ * Instanz — nur dann ist ein gerade erzeugtes Bild hier sofort auflösbar.
2483
+ * Fehlt er, baut dieser Adapter sich einen eigenen; das ist für den
2484
+ * Alleinbetrieb richtig und für den Flow-Port ausdrücklich nicht gewollt.
2485
+ */
2486
+ store?: HfImageStore;
2401
2487
  }
2402
2488
  declare function createHfImageLibrary(options: CreateHfImageLibraryOptions): SzenenImageLibraryPort;
2403
2489
 
@@ -2836,6 +2922,14 @@ interface CreateHfImageBatchPersistenceOptions {
2836
2922
  /** Kennung je abgelegtem Bild. Ersetzbar, damit ein Test nicht würfelt. */
2837
2923
  newImageId?: (generationBatchId: string, position: number) => string;
2838
2924
  now?: () => Date;
2925
+ /**
2926
+ * Der gemeinsame Bildspeicher (Review §5 P1).
2927
+ *
2928
+ * Dieselbe Instanz wie im Bildbestand: nur dadurch ist ein hier abgelegtes
2929
+ * Bild dort sofort auflösbar. Fehlt er, entsteht ein eigener — dann gilt die
2930
+ * Sofortauflösung nur innerhalb dieses Adapters.
2931
+ */
2932
+ store?: HfImageStore;
2839
2933
  }
2840
2934
  /**
2841
2935
  * `ImageGenerationBatchPersistence` für Flow — derselbe kanonische Weg wie
@@ -2929,4 +3023,4 @@ interface SzenenViewProps {
2929
3023
  }
2930
3024
  declare const SzenenView: React__default.FC<SzenenViewProps>;
2931
3025
 
2932
- export { type AttachLibraryItemInput, type AttachLibraryItemResult, AuthoritativeSzenenStore, CATALOGUE_TYPES, type CallableImageModel, CapabilityAnchorError, type CapabilityFlag, type CapabilityReason, type CapabilityReport, type CapabilityReportInput, type CapabilityScope, type CapabilityState, type ChainQueries, type ClientDerivationChannel, type ClientDerivationStore, ContextChainPort, type CreateBrowserTextGenerationPortOptions, type CreateClientDerivationPortOptions, type CreateClientRunPortOptions, type CreateFlowSzenenViewPortOptions, type CreateHfElementStoreOptions, type CreateHfEventChannelOptions, type CreateHfImageBatchHistoryOptions, type CreateHfImageBatchPersistenceOptions, type CreateImageGenerationPortOptions, type CreateMemoryViewPortOptions, DerivableType, DerivationAssessment, DerivationConflict, DerivationDiagnostic, DerivationFailure, DerivationImage, DerivationInputMode, type DeriveItemInput, type DerivedItem, type DerivedLineage, type DerivedRelationship, type DerivedSzenenReference, type DifferentialResult, type DifferentialStep, type Divergence, DraftChainMeta, ELEMENT_VERSION_SCHEMA_FILE, type ElementEvent, type ElementEventChannel, ElementSnapshot, type ElementStoreState, type ExistingSzenenItem, FLOW_MODEL_DISPLAY_NAMES, type FlowGenerateImage, type FlowGenerateImageParams, FlowGenerateText, type FreezeDraftChainInput, type FreezeFailure, type FreezeResult, type FreezeSuccess, type FrozenChainNode, type GeneratedImage, type IdFactory, type ImageBatchPersistedImage, type ImageBatchPersistedPayload, type ImageGenerationBatchPersistence, type ImageGenerationCapability, type ImageGenerationEventChannel, type ImageGenerationFinishedPayload, type ImageGenerationOrder, type ImageGenerationProviderPort, type ImageGenerationResult, type ImageGenerationRunReader, type ImageGenerationStartedPayload, ImageProvenance, type ImageProviderAccessCheck, type ImageProviderInput, type ImportBatchImageInput, type ImportBatchInput, type InMemoryEventChannel, type InputError, type IntegrityVerdict, type ItemDerivationFailure, type ItemDerivationFailureClass, type ItemDerivationResult, type ItemMedium, type LibraryImage, type NodeContribution, NotDerivable, type Notice, type NoticeTone, type PromptBatchImageRef, type PromptImageBatch, type PromptRunOutcome, type PromptRunOutput, type PromptRunPersistencePort, type PromptRunRecord, type PromptRunRecordedPayload, type ProviderCheckRecord, type ProviderCheckRecordedPayload, type ProviderCheckResult, PublishCheckResult, PublishFinding, RULES_WITHOUT_CAPABILITY_EFFECT, RULE_SCOPES, type RawSchema, type RecordedDerivationInput, type RecordedProposal, type RecoveryStatus, type ReducerFinding, ReferenceResolver, type RendererInput, type ResolveFailure, type ResolveResult, type ResolveShotInput, type ResolveShotPayloadInput, ResolveTechnicalError, type ResolvedCamera, type ResolvedNode, type ResolvedPlacement, type RunEventChannel, type RunFailure, type RunFailureClass, type RunItemReference, SZENEN_EVENT_PREFIX, SZENEN_EVENT_TYPES, SZENEN_ITEM_PREFIX, SZENEN_SCHEMAS, type SaveRunAsItemInput, type SceneDerivationPersistencePort, type SceneDerivationRecord, type SceneDerivationRecordedPayload, type SceneDerivationRecoveryRecord, type SceneDerivationRecoveryRecordedPayload, SchemaError, type StartImageGenerationInput, type StartRunInput, type StepState, type SzenenArea, type SzenenAreaId, type SzenenBatchOrigin, type SzenenBatchOriginFailure, type SzenenBatchOriginVerdict, SzenenCommands, SzenenElementStore, SzenenElementType, type SzenenImageBatchHistoryPort, type SzenenImageBatchWritePort, type SzenenImageGenerationPort as SzenenImageGenerationPortContract, type SzenenImageLibraryPort, type SzenenItemPort, type SzenenMediaPort, SzenenQueries, type SzenenRunPort, SzenenView, type SzenenViewCapabilities, type SzenenViewPort, type SzenenViewProps, TargetModelResolution, TextGenerationPort, UNCHECKED_PUBLISH_RULES, UnusableProposal, type VersionMedium, type VisibilityNode, areasFor, batchesForPromptRun, buildSystemInstruction, buildUserPrompt, callOptional, callableImageModelFor, capabilitiesOf, capabilityForTargetModel, capabilityGate, capabilityReport, catalogueFor, checkCreateElementInput, checkElementType, checkOptionalId, checkParents, checkPayloadPresent, checkPromptRunRecord, checkPublishVersionInput, checkRequiredId, checkReviseMetadataInput, checkRevision, checkRunResponse, checkSceneDerivationRecord, checkSceneDerivationRecoveryRecord, checkSetPreferredHeadInput, checkSzenenBatchOrigin, checkTitle, checkWriteDraftInput, collectImageBatches, collectImageGenerationOrders, collectPromptRuns, collectProviderChecks, collectSceneDerivationRecoveries, collectSceneDerivations, createBrowserTextGenerationPort, createClientDerivationPort, createClientRunPort, createEventLogDerivationPersistence, createEventLogRunPersistence, createFlowImageProvider, createFlowSzenenViewPort, createHfElementStore, createHfEventChannel, createHfImageBatchHistory, createHfImageBatchWrite, createHfImageGenerationBatchPersistence, createHfImageLibrary, createImageGenerationPort, createInMemoryEventChannel, createMemoryViewPort, derivationPoliciesOf, deriveItemFromRun, deriveLineage, differentialSteps, draftRevisionOf, findImageBatch, findImageGenerationOrder, findPromptRun, findProviderCheck, findSceneDerivation, findSceneDerivationRecovery, firstError, flowImageProviderHasAccess, freezeDraftChain, hasPlacementCapability, isKnownElementType, isSzenenItemId, itemIdForRun, logRevisionOf, mergeSzenenBatchOrigin, noticeFor, ordersForPromptRun, parseRunResponse, preferredHeadRevisionOf, publishedHeadsOf, recoveriesForRun, recoveryStatusOf, reduceElementEvents, resolveArea, resolveShot, resolveShotPayload, roundOfRun, runPromptDerivation, runStoreDifferential, scopeOfPath, totalModelCalls, unclassifiedPublishRules, unsupportedReason };
3026
+ export { type AttachLibraryItemInput, type AttachLibraryItemResult, AuthoritativeSzenenStore, CATALOGUE_TYPES, type CallableImageModel, CapabilityAnchorError, type CapabilityFlag, type CapabilityReason, type CapabilityReport, type CapabilityReportInput, type CapabilityScope, type CapabilityState, type ChainQueries, type ClientDerivationChannel, type ClientDerivationStore, ContextChainPort, type CreateBrowserTextGenerationPortOptions, type CreateClientDerivationPortOptions, type CreateClientRunPortOptions, type CreateFlowSzenenViewPortOptions, type CreateHfElementStoreOptions, type CreateHfEventChannelOptions, type CreateHfImageBatchHistoryOptions, type CreateHfImageBatchPersistenceOptions, type CreateImageGenerationPortOptions, type CreateMemoryViewPortOptions, DerivableType, DerivationAssessment, DerivationConflict, DerivationDiagnostic, DerivationFailure, DerivationImage, DerivationInputMode, type DeriveItemInput, type DerivedItem, type DerivedLineage, type DerivedRelationship, type DerivedSzenenReference, type DifferentialResult, type DifferentialStep, type Divergence, DraftChainMeta, ELEMENT_VERSION_SCHEMA_FILE, type ElementEvent, type ElementEventChannel, ElementSnapshot, type ElementStoreState, type ExistingSzenenItem, FLOW_MODEL_DISPLAY_NAMES, type FlowGenerateImage, type FlowGenerateImageParams, FlowGenerateText, type FreezeDraftChainInput, type FreezeFailure, type FreezeResult, type FreezeSuccess, type FrozenChainNode, type GeneratedImage, type HfImageStore, type HfImageStoreOptions, type IdFactory, type ImageBatchPersistedImage, type ImageBatchPersistedPayload, type ImageGenerationBatchPersistence, type ImageGenerationCapability, type ImageGenerationEventChannel, type ImageGenerationFinishedPayload, type ImageGenerationOrder, type ImageGenerationProviderPort, type ImageGenerationResult, type ImageGenerationRunReader, type ImageGenerationStartedPayload, ImageProvenance, type ImageProviderAccessCheck, type ImageProviderInput, type ImportBatchImageInput, type ImportBatchInput, type InMemoryEventChannel, type InputError, type IntegrityVerdict, type ItemDerivationFailure, type ItemDerivationFailureClass, type ItemDerivationResult, type ItemMedium, type LibraryImage, type NodeContribution, NotDerivable, type Notice, type NoticeTone, type PromptBatchImageRef, type PromptImageBatch, type PromptRunOutcome, type PromptRunOutput, type PromptRunPersistencePort, type PromptRunRecord, type PromptRunRecordedPayload, type ProviderCheckRecord, type ProviderCheckRecordedPayload, type ProviderCheckResult, PublishCheckResult, PublishFinding, RULES_WITHOUT_CAPABILITY_EFFECT, RULE_SCOPES, type RawSchema, type RecordedDerivationInput, type RecordedProposal, type RecoveryStatus, type ReducerFinding, ReferenceResolver, type RendererInput, type ResolveFailure, type ResolveResult, type ResolveShotInput, type ResolveShotPayloadInput, ResolveTechnicalError, type ResolvedCamera, type ResolvedNode, type ResolvedPlacement, type RunEventChannel, type RunFailure, type RunFailureClass, type RunItemReference, SZENEN_EVENT_PREFIX, SZENEN_EVENT_TYPES, SZENEN_ITEM_PREFIX, SZENEN_SCHEMAS, type SaveRunAsItemInput, type SceneDerivationPersistencePort, type SceneDerivationRecord, type SceneDerivationRecordedPayload, type SceneDerivationRecoveryRecord, type SceneDerivationRecoveryRecordedPayload, SchemaError, type StartImageGenerationInput, type StartRunInput, type StepState, type SzenenArea, type SzenenAreaId, type SzenenBatchOrigin, type SzenenBatchOriginFailure, type SzenenBatchOriginVerdict, SzenenCommands, SzenenElementStore, SzenenElementType, type SzenenImageBatchHistoryPort, type SzenenImageBatchWritePort, type SzenenImageGenerationPort as SzenenImageGenerationPortContract, type SzenenImageLibraryPort, type SzenenItemPort, type SzenenMediaPort, SzenenQueries, type SzenenRunPort, SzenenView, type SzenenViewCapabilities, type SzenenViewPort, type SzenenViewProps, TargetModelResolution, TextGenerationPort, UNCHECKED_PUBLISH_RULES, UnusableProposal, type VersionMedium, type VisibilityNode, areasFor, batchesForPromptRun, bildPfad, buildSystemInstruction, buildUserPrompt, callOptional, callableImageModelFor, capabilitiesOf, capabilityForTargetModel, capabilityGate, capabilityReport, catalogueFor, checkCreateElementInput, checkElementType, checkOptionalId, checkParents, checkPayloadPresent, checkPromptRunRecord, checkPublishVersionInput, checkRequiredId, checkReviseMetadataInput, checkRevision, checkRunResponse, checkSceneDerivationRecord, checkSceneDerivationRecoveryRecord, checkSetPreferredHeadInput, checkSzenenBatchOrigin, checkTitle, checkWriteDraftInput, collectImageBatches, collectImageGenerationOrders, collectPromptRuns, collectProviderChecks, collectSceneDerivationRecoveries, collectSceneDerivations, createBrowserTextGenerationPort, createClientDerivationPort, createClientRunPort, createEventLogDerivationPersistence, createEventLogRunPersistence, createFlowImageProvider, createFlowSzenenViewPort, createHfElementStore, createHfEventChannel, createHfImageBatchHistory, createHfImageBatchWrite, createHfImageGenerationBatchPersistence, createHfImageLibrary, createHfImageStore, createImageGenerationPort, createInMemoryEventChannel, createMemoryViewPort, derivationPoliciesOf, deriveItemFromRun, deriveLineage, differentialSteps, draftRevisionOf, findImageBatch, findImageGenerationOrder, findPromptRun, findProviderCheck, findSceneDerivation, findSceneDerivationRecovery, firstError, flowImageProviderHasAccess, freezeDraftChain, hasPlacementCapability, isKnownElementType, isSzenenItemId, itemIdForRun, logRevisionOf, mergeSzenenBatchOrigin, noticeFor, ordersForPromptRun, parseRunResponse, preferredHeadRevisionOf, publishedHeadsOf, recoveriesForRun, recoveryStatusOf, reduceElementEvents, resolveArea, resolveShot, resolveShotPayload, roundOfRun, runPromptDerivation, runStoreDifferential, scopeOfPath, totalModelCalls, typAusBytes, unclassifiedPublishRules, unsupportedReason };
package/dist/szenen.d.ts CHANGED
@@ -2,8 +2,8 @@ import { ac as SchemaError, Z as PublishFinding, Y as PublishCheckResult, aj as
2
2
  export { A as ALL_PUBLISH_RULES, C as CHAIN_EDGES, b as CHAIN_LINK_FIELDS, c as CatalogueEntry, d as ChainLinkField, e as ChainTarget, f as ChainVerdict, g as CompiledSchemas, i as ContractCheck, j as ContractCheckResult, k as ContractRunResult, l as ContractViolation, m as CreateElementInput, D as DERIVABLE_TYPES, r as DerivationEnvelope, t as DerivationFailureClass, x as DerivationPolicyPayload, y as DerivationProposal, z as DraftChainLink, E as DraftFork, F as DraftRecord, G as ElementMetadata, H as ElementRecord, J as ElementStoreContractHarness, K as ElementVersionValidation, L as FindingSeverity, O as OptionalCommand, P as PROBE_VERSION_ID, Q as ParentRelation, R as PreferredHeadOutcome, S as PreferredHeadResolution, T as PreferredHeadSelection, U as PreferredHeadSource, V as ProjectionState, W as ProjectionStatus, X as PublishCheckInput, _ as PublishRejected, $ as PublishVersionInput, a0 as PublishedVersion, a1 as REFERENCE_FIELD, a3 as ResolvePreferredHeadOptions, a4 as ResolvedVersion, a5 as ReviseMetadataInput, a6 as STYLE_PAYLOAD, a7 as STYLE_PAYLOAD_V2, a8 as SZENEN_ELEMENT_TYPES, a9 as SceneDerivationInput, aa as SceneDerivationOutcome, ab as SceneDerivationOutput, ad as SchemaValidationResult, ae as SetPreferredHeadInput, af as StoreAuthority, ag as SzenenCommandResult, ak as SzenenProjection, am as TargetModelCandidate, an as TargetModelQueries, ao as TargetModelQuery, aq as UnsupportedSchemaError, as as VersionDag, at as VersionDagError, au as VersionNode, av as VersionParentLink, aw as WriteConflict, ax as WriteDraftInput, ay as assessDerivationResponse, az as buildDerivationSystemInstruction, aA as buildDerivationUserPrompt, aB as buildVersionDag, aC as checkChainTargets, aD as checkDerivationResponse, aE as checkDraftChainMeta, aF as collectVersionRefs, aG as compileSchemas, aH as createSimulationSceneDerivationPort, aI as describeTargetModelFailure, aJ as elementStoreContractChecks, aK as formatSchemaErrors, aL as getSzenenSchemas, aM as isOk, aN as isProjectionCurrent, aO as linkFor, aP as parseDerivationResponse, aQ as preferredVersionId, aR as resolvePreferredHead, aS as resolveTargetModelOver, aT as resolverFromQueries, aU as runElementStoreContract, aV as runPublishChecks, aW as runSceneDerivation, aX as showChain, aY as validateAgainst, aZ as validateDerivationInput, a_ as validateElementVersion, a$ as validatePayload, b0 as withReference } from './storeContract-D7vBM8nv.js';
3
3
  import { T as TextGenerationPort, Q as QueryResult, C as CommandResult } from './contracts-DdYOMBl9.js';
4
4
  export { S as SIMULATION_PROVIDER, c as TextGenerationRequest, d as TextGenerationResult, g as createFakeTextGenerationPort, h as createSimulationTextGenerationPort, s as simulatedAnswerFor } from './contracts-DdYOMBl9.js';
5
- import { F as FlowGenerateText } from './flowTextGenerationPort-KHjCGt_S.js';
6
- export { C as CreateFlowTextGenerationPortOptions, i as createFlowTextGenerationPort } from './flowTextGenerationPort-KHjCGt_S.js';
5
+ import { g as HFStateSnapshot, F as FlowGenerateText } from './hfEventTypes-C_PX6RFR.js';
6
+ export { C as CreateFlowTextGenerationPortOptions, t as createFlowTextGenerationPort } from './hfEventTypes-C_PX6RFR.js';
7
7
  import React__default from 'react';
8
8
 
9
9
  /** Rohes JSON-Schema, wie es in der Spezifikation steht. */
@@ -662,6 +662,19 @@ interface ImageBatchPersistedImage {
662
662
  media_ref: string;
663
663
  /** Fachlich stabile Identität, soweit bekannt — hier identisch mit `media_ref` (D-118). */
664
664
  asset_id?: string;
665
+ /**
666
+ * Der **bestätigte** MIME-Typ der abgelegten Datei — Review 2026-08-18 §5 P2.
667
+ *
668
+ * Additiv nachgetragen, weil der Batch ihn beim Schreiben kennt, ihn aber
669
+ * nicht führte: Der Lesepfad musste die Dateiendung deshalb über zwei
670
+ * Varianten erraten. Geraten wird nichts mehr — der Typ stammt aus den
671
+ * tatsächlichen Bildbytes (`typAusBytes`), nicht aus einer Annahme, und
672
+ * bestimmt den Pfad `images/<id>.<ext>`, unter dem die Datei liegt.
673
+ *
674
+ * Optional, weil ältere Ereignisse ihn nicht tragen; für die fällt der
675
+ * Lesepfad auf den Bestandseintrag zurück.
676
+ */
677
+ mime_type?: string | null;
665
678
  model?: string | null;
666
679
  /** Nur gesetzt, wenn der Provider ihn tatsächlich zurückliefert (D-107). */
667
680
  seed?: number | null;
@@ -2121,8 +2134,16 @@ interface SzenenImageLibraryPort {
2121
2134
  search?: string;
2122
2135
  limit?: number;
2123
2136
  }): Promise<QueryResult<readonly LibraryImage[]>>;
2124
- /** Base64 **ohne** `data:`-Präfix und der MIME-Typ — die Modelleingabe. */
2125
- resolveImage(mediaRef: string): Promise<QueryResult<{
2137
+ /**
2138
+ * Base64 **ohne** `data:`-Präfix und der MIME-Typ — die Modelleingabe.
2139
+ *
2140
+ * `mimeTypeHinweis` ist ein **Hinweis**, kein Zwang: Kennt der Aufrufer den
2141
+ * bestätigten Typ aus dem Batch-Nachweis (`PromptBatchImageRef.mime_type`,
2142
+ * Review 2026-08-18 §5 P2), erspart er dem Host das Raten der Dateiendung,
2143
+ * solange der Bestand das Bild noch nicht führt. Ein Host, der ihn nicht
2144
+ * braucht, ignoriert ihn.
2145
+ */
2146
+ resolveImage(mediaRef: string, mimeTypeHinweis?: string | null): Promise<QueryResult<{
2126
2147
  data: string;
2127
2148
  mime_type: string;
2128
2149
  }>>;
@@ -2183,6 +2204,14 @@ interface PromptBatchImageRef {
2183
2204
  media_ref: string;
2184
2205
  position: number;
2185
2206
  file?: string;
2207
+ /**
2208
+ * Der bestätigte MIME-Typ der abgelegten Datei, soweit der Nachweis ihn führt
2209
+ * (Review 2026-08-18 §5 P2).
2210
+ *
2211
+ * Der Lesepfad bildet daraus den Dateipfad, statt zwischen den Endungen zu
2212
+ * raten. Optional, weil ältere Batches ihn nicht tragen.
2213
+ */
2214
+ mime_type?: string | null;
2186
2215
  model?: string | null;
2187
2216
  seed?: number | null;
2188
2217
  width?: number | null;
@@ -2391,6 +2420,54 @@ declare function unsupportedReason(capability: string): string;
2391
2420
  */
2392
2421
  declare function callOptional<T>(capability: string, operation: (() => Promise<CommandResult<T>>) | undefined): Promise<CommandResult<T>>;
2393
2422
 
2423
+ interface HfImageStoreOptions {
2424
+ namespace: string;
2425
+ token: string;
2426
+ now?: () => number;
2427
+ /**
2428
+ * Wie oft ein Bild, das im Bestand fehlt, direkt von HF geholt wird, und wie
2429
+ * lange dazwischen gewartet wird.
2430
+ *
2431
+ * Der Verzug ist real, aber kurz. Ersetzbar, damit ein Test ihn nicht
2432
+ * aussitzen muss.
2433
+ */
2434
+ leseVersuche?: number;
2435
+ leseBasisMs?: number;
2436
+ schlafen?: (ms: number) => Promise<void>;
2437
+ }
2438
+ interface AufgeloestesBild {
2439
+ data: string;
2440
+ mimeType: string;
2441
+ }
2442
+ interface HfImageStore {
2443
+ /**
2444
+ * Legt ein Bild unter einer **vorgegebenen** Kennung ab.
2445
+ *
2446
+ * Reihenfolge zwingend: erst die Datei, dann das Ereignis (R3 der
2447
+ * 6.9.2-Spezifikation). Ein Nachweis, der auf eine fehlende Datei zeigt,
2448
+ * wäre für jeden Leser ein Fehler; umgekehrt ist es nur eine Datei, die noch
2449
+ * kein Ereignis kennt.
2450
+ */
2451
+ putWithId(id: string, base64: string, mimeType: string, titel?: string): Promise<void>;
2452
+ /** Löst eine Kennung auf. `mimeType` ist ein Hinweis, kein Zwang. */
2453
+ resolve(id: string, mimeType?: string | null): Promise<AufgeloestesBild>;
2454
+ /** Der aktuelle Bestand — Schnappschuss plus die Ereignisse danach. */
2455
+ bestand(): Promise<HFStateSnapshot>;
2456
+ }
2457
+ /** Der HF-Pfad einer Bildkennung — für die Fehlermeldung, die ihn nennen muss (R7). */
2458
+ declare function bildPfad(id: string, mimeType: string | null | undefined): string;
2459
+ /**
2460
+ * Der MIME-Typ aus den tatsächlichen Bildbytes.
2461
+ *
2462
+ * Review §5 P2: `image/png` einfach anzunehmen genügt nicht — für importierte
2463
+ * oder künftig anders kodierte Bilder wäre der Typ dann falsch deklariert, und
2464
+ * die Datei läge unter einer Endung, unter der sie niemand sucht. Geprüft
2465
+ * werden die Signaturen am Anfang der Daten; nur wenn keine passt, bleibt es
2466
+ * bei der Angabe des Aufrufers.
2467
+ */
2468
+ declare function typAusBytes(base64: string, vorgabe?: string): string;
2469
+ declare function createHfImageStore(options: HfImageStoreOptions): HfImageStore;
2470
+
2394
2471
  interface CreateHfImageLibraryOptions {
2395
2472
  namespace: string;
2396
2473
  token: string;
@@ -2398,6 +2475,15 @@ interface CreateHfImageLibraryOptions {
2398
2475
  newImageId?: () => string;
2399
2476
  /** Die Uhr — dieselbe Begründung. */
2400
2477
  now?: () => number;
2478
+ /**
2479
+ * Der gemeinsame Bildspeicher (Review §5 P1).
2480
+ *
2481
+ * Wird er übergeben, teilen sich Bildbestand und Batch-Persistenz **eine**
2482
+ * Instanz — nur dann ist ein gerade erzeugtes Bild hier sofort auflösbar.
2483
+ * Fehlt er, baut dieser Adapter sich einen eigenen; das ist für den
2484
+ * Alleinbetrieb richtig und für den Flow-Port ausdrücklich nicht gewollt.
2485
+ */
2486
+ store?: HfImageStore;
2401
2487
  }
2402
2488
  declare function createHfImageLibrary(options: CreateHfImageLibraryOptions): SzenenImageLibraryPort;
2403
2489
 
@@ -2836,6 +2922,14 @@ interface CreateHfImageBatchPersistenceOptions {
2836
2922
  /** Kennung je abgelegtem Bild. Ersetzbar, damit ein Test nicht würfelt. */
2837
2923
  newImageId?: (generationBatchId: string, position: number) => string;
2838
2924
  now?: () => Date;
2925
+ /**
2926
+ * Der gemeinsame Bildspeicher (Review §5 P1).
2927
+ *
2928
+ * Dieselbe Instanz wie im Bildbestand: nur dadurch ist ein hier abgelegtes
2929
+ * Bild dort sofort auflösbar. Fehlt er, entsteht ein eigener — dann gilt die
2930
+ * Sofortauflösung nur innerhalb dieses Adapters.
2931
+ */
2932
+ store?: HfImageStore;
2839
2933
  }
2840
2934
  /**
2841
2935
  * `ImageGenerationBatchPersistence` für Flow — derselbe kanonische Weg wie
@@ -2929,4 +3023,4 @@ interface SzenenViewProps {
2929
3023
  }
2930
3024
  declare const SzenenView: React__default.FC<SzenenViewProps>;
2931
3025
 
2932
- export { type AttachLibraryItemInput, type AttachLibraryItemResult, AuthoritativeSzenenStore, CATALOGUE_TYPES, type CallableImageModel, CapabilityAnchorError, type CapabilityFlag, type CapabilityReason, type CapabilityReport, type CapabilityReportInput, type CapabilityScope, type CapabilityState, type ChainQueries, type ClientDerivationChannel, type ClientDerivationStore, ContextChainPort, type CreateBrowserTextGenerationPortOptions, type CreateClientDerivationPortOptions, type CreateClientRunPortOptions, type CreateFlowSzenenViewPortOptions, type CreateHfElementStoreOptions, type CreateHfEventChannelOptions, type CreateHfImageBatchHistoryOptions, type CreateHfImageBatchPersistenceOptions, type CreateImageGenerationPortOptions, type CreateMemoryViewPortOptions, DerivableType, DerivationAssessment, DerivationConflict, DerivationDiagnostic, DerivationFailure, DerivationImage, DerivationInputMode, type DeriveItemInput, type DerivedItem, type DerivedLineage, type DerivedRelationship, type DerivedSzenenReference, type DifferentialResult, type DifferentialStep, type Divergence, DraftChainMeta, ELEMENT_VERSION_SCHEMA_FILE, type ElementEvent, type ElementEventChannel, ElementSnapshot, type ElementStoreState, type ExistingSzenenItem, FLOW_MODEL_DISPLAY_NAMES, type FlowGenerateImage, type FlowGenerateImageParams, FlowGenerateText, type FreezeDraftChainInput, type FreezeFailure, type FreezeResult, type FreezeSuccess, type FrozenChainNode, type GeneratedImage, type IdFactory, type ImageBatchPersistedImage, type ImageBatchPersistedPayload, type ImageGenerationBatchPersistence, type ImageGenerationCapability, type ImageGenerationEventChannel, type ImageGenerationFinishedPayload, type ImageGenerationOrder, type ImageGenerationProviderPort, type ImageGenerationResult, type ImageGenerationRunReader, type ImageGenerationStartedPayload, ImageProvenance, type ImageProviderAccessCheck, type ImageProviderInput, type ImportBatchImageInput, type ImportBatchInput, type InMemoryEventChannel, type InputError, type IntegrityVerdict, type ItemDerivationFailure, type ItemDerivationFailureClass, type ItemDerivationResult, type ItemMedium, type LibraryImage, type NodeContribution, NotDerivable, type Notice, type NoticeTone, type PromptBatchImageRef, type PromptImageBatch, type PromptRunOutcome, type PromptRunOutput, type PromptRunPersistencePort, type PromptRunRecord, type PromptRunRecordedPayload, type ProviderCheckRecord, type ProviderCheckRecordedPayload, type ProviderCheckResult, PublishCheckResult, PublishFinding, RULES_WITHOUT_CAPABILITY_EFFECT, RULE_SCOPES, type RawSchema, type RecordedDerivationInput, type RecordedProposal, type RecoveryStatus, type ReducerFinding, ReferenceResolver, type RendererInput, type ResolveFailure, type ResolveResult, type ResolveShotInput, type ResolveShotPayloadInput, ResolveTechnicalError, type ResolvedCamera, type ResolvedNode, type ResolvedPlacement, type RunEventChannel, type RunFailure, type RunFailureClass, type RunItemReference, SZENEN_EVENT_PREFIX, SZENEN_EVENT_TYPES, SZENEN_ITEM_PREFIX, SZENEN_SCHEMAS, type SaveRunAsItemInput, type SceneDerivationPersistencePort, type SceneDerivationRecord, type SceneDerivationRecordedPayload, type SceneDerivationRecoveryRecord, type SceneDerivationRecoveryRecordedPayload, SchemaError, type StartImageGenerationInput, type StartRunInput, type StepState, type SzenenArea, type SzenenAreaId, type SzenenBatchOrigin, type SzenenBatchOriginFailure, type SzenenBatchOriginVerdict, SzenenCommands, SzenenElementStore, SzenenElementType, type SzenenImageBatchHistoryPort, type SzenenImageBatchWritePort, type SzenenImageGenerationPort as SzenenImageGenerationPortContract, type SzenenImageLibraryPort, type SzenenItemPort, type SzenenMediaPort, SzenenQueries, type SzenenRunPort, SzenenView, type SzenenViewCapabilities, type SzenenViewPort, type SzenenViewProps, TargetModelResolution, TextGenerationPort, UNCHECKED_PUBLISH_RULES, UnusableProposal, type VersionMedium, type VisibilityNode, areasFor, batchesForPromptRun, buildSystemInstruction, buildUserPrompt, callOptional, callableImageModelFor, capabilitiesOf, capabilityForTargetModel, capabilityGate, capabilityReport, catalogueFor, checkCreateElementInput, checkElementType, checkOptionalId, checkParents, checkPayloadPresent, checkPromptRunRecord, checkPublishVersionInput, checkRequiredId, checkReviseMetadataInput, checkRevision, checkRunResponse, checkSceneDerivationRecord, checkSceneDerivationRecoveryRecord, checkSetPreferredHeadInput, checkSzenenBatchOrigin, checkTitle, checkWriteDraftInput, collectImageBatches, collectImageGenerationOrders, collectPromptRuns, collectProviderChecks, collectSceneDerivationRecoveries, collectSceneDerivations, createBrowserTextGenerationPort, createClientDerivationPort, createClientRunPort, createEventLogDerivationPersistence, createEventLogRunPersistence, createFlowImageProvider, createFlowSzenenViewPort, createHfElementStore, createHfEventChannel, createHfImageBatchHistory, createHfImageBatchWrite, createHfImageGenerationBatchPersistence, createHfImageLibrary, createImageGenerationPort, createInMemoryEventChannel, createMemoryViewPort, derivationPoliciesOf, deriveItemFromRun, deriveLineage, differentialSteps, draftRevisionOf, findImageBatch, findImageGenerationOrder, findPromptRun, findProviderCheck, findSceneDerivation, findSceneDerivationRecovery, firstError, flowImageProviderHasAccess, freezeDraftChain, hasPlacementCapability, isKnownElementType, isSzenenItemId, itemIdForRun, logRevisionOf, mergeSzenenBatchOrigin, noticeFor, ordersForPromptRun, parseRunResponse, preferredHeadRevisionOf, publishedHeadsOf, recoveriesForRun, recoveryStatusOf, reduceElementEvents, resolveArea, resolveShot, resolveShotPayload, roundOfRun, runPromptDerivation, runStoreDifferential, scopeOfPath, totalModelCalls, unclassifiedPublishRules, unsupportedReason };
3026
+ export { type AttachLibraryItemInput, type AttachLibraryItemResult, AuthoritativeSzenenStore, CATALOGUE_TYPES, type CallableImageModel, CapabilityAnchorError, type CapabilityFlag, type CapabilityReason, type CapabilityReport, type CapabilityReportInput, type CapabilityScope, type CapabilityState, type ChainQueries, type ClientDerivationChannel, type ClientDerivationStore, ContextChainPort, type CreateBrowserTextGenerationPortOptions, type CreateClientDerivationPortOptions, type CreateClientRunPortOptions, type CreateFlowSzenenViewPortOptions, type CreateHfElementStoreOptions, type CreateHfEventChannelOptions, type CreateHfImageBatchHistoryOptions, type CreateHfImageBatchPersistenceOptions, type CreateImageGenerationPortOptions, type CreateMemoryViewPortOptions, DerivableType, DerivationAssessment, DerivationConflict, DerivationDiagnostic, DerivationFailure, DerivationImage, DerivationInputMode, type DeriveItemInput, type DerivedItem, type DerivedLineage, type DerivedRelationship, type DerivedSzenenReference, type DifferentialResult, type DifferentialStep, type Divergence, DraftChainMeta, ELEMENT_VERSION_SCHEMA_FILE, type ElementEvent, type ElementEventChannel, ElementSnapshot, type ElementStoreState, type ExistingSzenenItem, FLOW_MODEL_DISPLAY_NAMES, type FlowGenerateImage, type FlowGenerateImageParams, FlowGenerateText, type FreezeDraftChainInput, type FreezeFailure, type FreezeResult, type FreezeSuccess, type FrozenChainNode, type GeneratedImage, type HfImageStore, type HfImageStoreOptions, type IdFactory, type ImageBatchPersistedImage, type ImageBatchPersistedPayload, type ImageGenerationBatchPersistence, type ImageGenerationCapability, type ImageGenerationEventChannel, type ImageGenerationFinishedPayload, type ImageGenerationOrder, type ImageGenerationProviderPort, type ImageGenerationResult, type ImageGenerationRunReader, type ImageGenerationStartedPayload, ImageProvenance, type ImageProviderAccessCheck, type ImageProviderInput, type ImportBatchImageInput, type ImportBatchInput, type InMemoryEventChannel, type InputError, type IntegrityVerdict, type ItemDerivationFailure, type ItemDerivationFailureClass, type ItemDerivationResult, type ItemMedium, type LibraryImage, type NodeContribution, NotDerivable, type Notice, type NoticeTone, type PromptBatchImageRef, type PromptImageBatch, type PromptRunOutcome, type PromptRunOutput, type PromptRunPersistencePort, type PromptRunRecord, type PromptRunRecordedPayload, type ProviderCheckRecord, type ProviderCheckRecordedPayload, type ProviderCheckResult, PublishCheckResult, PublishFinding, RULES_WITHOUT_CAPABILITY_EFFECT, RULE_SCOPES, type RawSchema, type RecordedDerivationInput, type RecordedProposal, type RecoveryStatus, type ReducerFinding, ReferenceResolver, type RendererInput, type ResolveFailure, type ResolveResult, type ResolveShotInput, type ResolveShotPayloadInput, ResolveTechnicalError, type ResolvedCamera, type ResolvedNode, type ResolvedPlacement, type RunEventChannel, type RunFailure, type RunFailureClass, type RunItemReference, SZENEN_EVENT_PREFIX, SZENEN_EVENT_TYPES, SZENEN_ITEM_PREFIX, SZENEN_SCHEMAS, type SaveRunAsItemInput, type SceneDerivationPersistencePort, type SceneDerivationRecord, type SceneDerivationRecordedPayload, type SceneDerivationRecoveryRecord, type SceneDerivationRecoveryRecordedPayload, SchemaError, type StartImageGenerationInput, type StartRunInput, type StepState, type SzenenArea, type SzenenAreaId, type SzenenBatchOrigin, type SzenenBatchOriginFailure, type SzenenBatchOriginVerdict, SzenenCommands, SzenenElementStore, SzenenElementType, type SzenenImageBatchHistoryPort, type SzenenImageBatchWritePort, type SzenenImageGenerationPort as SzenenImageGenerationPortContract, type SzenenImageLibraryPort, type SzenenItemPort, type SzenenMediaPort, SzenenQueries, type SzenenRunPort, SzenenView, type SzenenViewCapabilities, type SzenenViewPort, type SzenenViewProps, TargetModelResolution, TextGenerationPort, UNCHECKED_PUBLISH_RULES, UnusableProposal, type VersionMedium, type VisibilityNode, areasFor, batchesForPromptRun, bildPfad, buildSystemInstruction, buildUserPrompt, callOptional, callableImageModelFor, capabilitiesOf, capabilityForTargetModel, capabilityGate, capabilityReport, catalogueFor, checkCreateElementInput, checkElementType, checkOptionalId, checkParents, checkPayloadPresent, checkPromptRunRecord, checkPublishVersionInput, checkRequiredId, checkReviseMetadataInput, checkRevision, checkRunResponse, checkSceneDerivationRecord, checkSceneDerivationRecoveryRecord, checkSetPreferredHeadInput, checkSzenenBatchOrigin, checkTitle, checkWriteDraftInput, collectImageBatches, collectImageGenerationOrders, collectPromptRuns, collectProviderChecks, collectSceneDerivationRecoveries, collectSceneDerivations, createBrowserTextGenerationPort, createClientDerivationPort, createClientRunPort, createEventLogDerivationPersistence, createEventLogRunPersistence, createFlowImageProvider, createFlowSzenenViewPort, createHfElementStore, createHfEventChannel, createHfImageBatchHistory, createHfImageBatchWrite, createHfImageGenerationBatchPersistence, createHfImageLibrary, createHfImageStore, createImageGenerationPort, createInMemoryEventChannel, createMemoryViewPort, derivationPoliciesOf, deriveItemFromRun, deriveLineage, differentialSteps, draftRevisionOf, findImageBatch, findImageGenerationOrder, findPromptRun, findProviderCheck, findSceneDerivation, findSceneDerivationRecovery, firstError, flowImageProviderHasAccess, freezeDraftChain, hasPlacementCapability, isKnownElementType, isSzenenItemId, itemIdForRun, logRevisionOf, mergeSzenenBatchOrigin, noticeFor, ordersForPromptRun, parseRunResponse, preferredHeadRevisionOf, publishedHeadsOf, recoveriesForRun, recoveryStatusOf, reduceElementEvents, resolveArea, resolveShot, resolveShotPayload, roundOfRun, runPromptDerivation, runStoreDifferential, scopeOfPath, totalModelCalls, typAusBytes, unclassifiedPublishRules, unsupportedReason };