@vectoriox/iox-ui 5.152.0 → 5.154.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13972,9 +13972,26 @@ declare enum AiStep {
13972
13972
  /** AI Assist: the edits themselves, one strict request per routed family. */
13973
13973
  AssistEdit = "assistEdit",
13974
13974
  /** AI Assist: photos read into content (≤ 6 a request, S3). */
13975
- AssistRead = "assistRead"
13975
+ AssistRead = "assistRead",
13976
+ /**
13977
+ * AI Assist, Files box ▸ Generate (S7, AI6): a picture the OWNER asked for. The SAME call as `MakePictures` — one
13978
+ * generator — as a step of Assist's own, so the Assist feature alone allows it (Doron, 2026-11-24) and its ledger
13979
+ * rows read as Assist's. It has no model row of its own: `AI_STEP_RUNS_AS`.
13980
+ */
13981
+ AssistPicture = "assistPicture",
13982
+ /** AI Assist, Files box ▸ Generate: the look at a made picture — the same call as `CheckPictures`. */
13983
+ AssistPictureReview = "assistPictureReview"
13976
13984
  }
13977
13985
  declare const AI_STEPS: ReadonlyArray<AiStep>;
13986
+ /**
13987
+ * A step that is another step's CALL under a different feature and ledger name: it runs on that step's model (the
13988
+ * studio's choice in Settings ▸ AI ▸ Models, the vetted list's `steps` / `recommendedFor`) and has no row of its own.
13989
+ */
13990
+ declare const AI_STEP_RUNS_AS: Readonly<Partial<Record<AiStep, AiStep>>>;
13991
+ /** The step whose model a step runs on — itself, unless it is another step's call (`AI_STEP_RUNS_AS`). */
13992
+ declare function aiModelStep(step: AiStep): AiStep;
13993
+ /** The steps a model is CHOSEN for — the rows of Settings ▸ AI ▸ Models and of the vetted list. */
13994
+ declare const AI_MODEL_STEPS: ReadonlyArray<AiStep>;
13978
13995
  /** Each step's name on the wire (the control plane's `label`, the console) — the screens translate their own. */
13979
13996
  declare const AI_STEP_LABELS: Readonly<Record<AiStep, string>>;
13980
13997
  /** What a model must be able to do for a step to run on it. */
@@ -14002,10 +14019,6 @@ declare const AI_COMPOSED_PAGES_ESTIMATED = 2;
14002
14019
  * re-ask, so the cost shown before a site is made does not fall short of what it takes.
14003
14020
  */
14004
14021
  declare const AI_PLAN_REASKED_PART: PlanPart;
14005
- /**
14006
- * Tokens a typical use of a step reads and writes (plan §3d "Where credits go") — what a shown estimate is made of. A
14007
- * step asked in parts is every part's request together, so the estimate (and a generation's start gate) counts them all.
14008
- */
14009
14022
  declare const AI_STEP_TYPICAL_TOKENS: Readonly<Record<AiStep, AiTokenCounts>>;
14010
14023
  /** Tokens by the class a provider prices them in. */
14011
14024
  interface AiTokenCounts {
@@ -17499,6 +17512,57 @@ declare function samenessIssues(me: LayoutFingerprint, others: ReadonlyArray<Fin
17499
17512
  * its order of sections (`demo`). layout-fingerprint.spec holds them equal to `fingerprintOf` of the proof layouts. */
17500
17513
  declare const PROOF_FINGERPRINTS: ReadonlyArray<FingerprintedPage>;
17501
17514
 
17515
+ /**
17516
+ * A PAGE BUILT FROM ITS SECTIONS IN THE STUDIO'S MEMORY (vectoriox/iox-ui#119, option C — Doron, 2026-11-23). A composed
17517
+ * page that falls back whole is stamped from the plan's ready-made sections, and four of six J10 Homes did — two hero
17518
+ * patterns between them, so six businesses wore two skeletons while the memory held none of them (only a model's layout
17519
+ * was fingerprinted). Here a fallen page is fingerprinted too, by the sections it is built from, and before it is built
17520
+ * its opening is moved away from the ready-made openings the studio's other sites already wear, when another hero of the
17521
+ * library can carry every word the plan wrote for it. The closed layout language only: free sections get no sameness
17522
+ * gate (Doron). Pure.
17523
+ */
17524
+ /** A ready-made section's token in a fallen page's sequence: `ready-made:<pattern>`. A composed page's swapped section stays
17525
+ * `ready-made` (its place in the model's order); a whole page of them is told apart by which sections they are. */
17526
+ declare function readyMadeToken(pattern: string): string;
17527
+ /**
17528
+ * A page built from its sections, as the studio remembers it: it opens on its first section's pattern
17529
+ * (`ready-made:hero.split`), its sequence is its patterns in order, its signature holds the screen (a ready-made page has
17530
+ * no signature section). The rest — ground, preset, header, footer — as `fingerprintOf`.
17531
+ */
17532
+ declare function fallbackFingerprintOf(sections: ReadonlyArray<Pick<PageSectionPlan, 'pattern'>>, preset: string, mode: 'light' | 'dark', plan?: Parameters<typeof wornHeaderOfPlan>[0] & Parameters<typeof footerMixOfPlan>[0]): LayoutFingerprint;
17533
+ /** A plan page built from its sections (it fell back whole, or was never asked) — the ONE call a reader of a plan makes. */
17534
+ declare function fallbackFingerprintOfPlanPage(page: Pick<PagePlan, 'sections'>, preset: string, mode: 'light' | 'dark', plan: Parameters<typeof wornHeaderOfPlan>[0] & Parameters<typeof footerMixOfPlan>[0]): LayoutFingerprint;
17535
+ /**
17536
+ * The plan section moved onto `to`, every word and link it holds carried to `to`'s slot of the same kind — or null when
17537
+ * one of them has nowhere to go, `to` would show a placeholder or a link to nowhere where the section said nothing, or the
17538
+ * section holds what only its own pattern knows (a list, a form, parts left out).
17539
+ */
17540
+ declare function carrySection(section: PageSectionPlan, to: string): PageSectionPlan | null;
17541
+ /** Why a fallen page's opening stayed as the plan wrote it. */
17542
+ declare enum FallbackOpeningKept {
17543
+ /** No other site of the studio opens on it. */
17544
+ Free = "free",
17545
+ /** Every hero that could carry the plan's words is already worn as another site's opening (or none can carry them). */
17546
+ NoneFree = "none-free"
17547
+ }
17548
+ interface DistinctFallback {
17549
+ sections: PageSectionPlan[];
17550
+ /** Set when the opening moved: the pattern the plan wrote and the one it is built from now. */
17551
+ moved?: {
17552
+ from: string;
17553
+ to: string;
17554
+ };
17555
+ /** Set when it did not move. */
17556
+ kept?: `${FallbackOpeningKept}`;
17557
+ }
17558
+ /**
17559
+ * A page about to be built from its sections, opened away from what the studio's other sites open on (option C). Only the
17560
+ * opening moves — the first screen is what makes two sites read as one — and only to a library pattern of the same family
17561
+ * that carries every word and link the plan wrote (`carrySection`), in the library's order. This site's own pages
17562
+ * (`sameSite`) and the demos are never a reason: every page of a site may open alike, and a demo is not a site.
17563
+ */
17564
+ declare function distinctFallbackSections(sections: ReadonlyArray<PageSectionPlan>, others: ReadonlyArray<FingerprintedPage>): DistinctFallback;
17565
+
17502
17566
  /**
17503
17567
  * EDITING A HEADER IN THE BUILDER (header-ingredients-plan HI1b, board header-studio — HS-4, HS-5): what Bindings ▸ Header
17504
17568
  * and the Header studio read off a header, and what Apply writes. Pure, one recipe with the generator: every header is
@@ -17895,5 +17959,5 @@ declare function siteTreeOf(studio: SiteStudio): SiteTree;
17895
17959
  * its phone menu, the footer's copyright line. */
17896
17960
  declare function siteGlobalsOf(globals: ReadonlyArray<SerializedNode>): SiteTreeGlobals | null;
17897
17961
 
17898
- export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADDITION_CAPS, ADDITION_ITEMS_KEY, ADDITION_ITEM_SOURCE_SUFFIX, ADDITION_KEY_PREFIX, ADDITION_SLUG, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_LOOK, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, AI_COMPOSED_PAGE_LEAN_TOKENS, AI_PLAN_REASKED_PART, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_FEATURE, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AWARD_COMPOSED_PAGES_ESTIMATED, AdditionHeldBack, AdditionIssueCode, AdditionOrigin, AdditionsPart, AdditionsSkipped, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BASELINE_WORDS_HE, BODY_TOKEN, BUILD_STEPS, BUTTON_LINK_PROPS, BaselineRole, BindScope, BodyIngredient, BodyMixError, BodyRepairCode, BodyRhythm, BodySeam, BodySectionWord, BodyTexture, BuildNoticeCode, BuildStep, CARRIED_BUTTON_STYLES, CARRY_LAYER_KINDS, CARRY_PHOTO_KINDS, CARRY_PROMPT_QUOTE, CARRY_WHOLE_LAYER_KINDS, CONTENT_ROLE_MEANINGS, COPY_OUT, CREDITS_PER_USD, CardBindTarget, CarryBlockKind, CarryKeptReason, CarryKind, CarryReferenceVia, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_PATTERN, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FOOTER_LEGAL_ROLE, FOOTER_TOKEN, FORM_LEGAL_ROLE, FilmUnplaced, FindingGrouping, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, FooterRole, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, GroundTone, HAND_PAGE_KEY_PREFIX, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, HeaderReplacedKind, IMPRINT_COUNTRIES, ISRAEL, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptPagesChoice, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_COLUMN_MENDED, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_OFFERED_AWARD, LAYOUT_MIX_WORDS, LAYOUT_OPERATED, LAYOUT_OWNED_PROPS, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LEGAL_KINDS, LEGAL_PAGE_SETTING, LIST_CARD_PART, LIST_DECK_MAX_PX, LIST_DECK_SHARE, LIST_FRAME_STYLE_KEYS, LIST_INGREDIENTS, LIST_ITEM_MIN_PX, LIST_LONG_WORDS, LIST_RHYTHMS, LIST_ROLE_WORDS, LIST_RULES, LIST_SAY_WORDS, LIST_TABLE, LIST_WORDS_BESIDE_RULE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListSide, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutScrubRefusal, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, LegalBlocks, LegalFact, LegalKind, ListPartChange, ListPartOutcome, ListSayCode, ListWordRefusal, MAX_SITE_PICTURES, MOTION_TRIGGERS, MOVING_OPENING_MEDIA, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, ONCE_ENTRANCE_MS, OPENING_HEIGHT, OPENING_MIX_PROP, OPENING_TOKEN, OpeningExtra, OpeningFrame, OpeningIngredient, OpeningMedia, OpeningMixError, OpeningMotion, OpeningRepairCode, OpeningRole, OpeningWords, PAGE_ARCHETYPES, PERSONAL_CONTROLS, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PREVIOUS_ROUTE_SUFFIX, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PriceBindTarget, PublishRefusalCode, PublishScope, REDESIGN_ADDITIONS_SCHEMA_NAMES, REDESIGN_BACK_DAYS, REDESIGN_PARTS, REDESIGN_STEPS, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RedesignPageResult, RedesignPart, RedesignRefusalCode, RedesignStep, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SCRUBBED_ENTRANCE, SCRUB_UNTIL, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_FINDING_WORDS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PAGE_MOVED_ASIDE, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_FOOTER_PARTS, SPEC_SITE_HEADER_PARTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STAMPED_PAGE_ARCHETYPES, START_QUOTE_STEPS, START_QUOTE_TOKENS, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, SWAP_CARRY_KINDS, ScrimLevel, ScrubUntil, SectionFallbackLastResort, SectionMaker, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePageStatus, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StagedPageReason, StagedPageWay, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, additionKey, additionSourcesOf, additionsNeedContent, adjustStepLabel, adjustStepOf, adjustStyleProps, aiRefusalNext, aiStepParts, applyHeaderMix, applyLayoutEdits, applyOpeningMix, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, bentoFill, bentoFillsParams, blocksPublish, bodyMeaning, bodyMix, bodyMixFromWords, bodyMixOfPlan, bodyMixWords, bodySeamClass, bodySeamShape, bodyTokenOf, bodyWireWords, bodyWordDrawn, bodyWordOffered, bodyWordTier, bodyWordWaits, bodyWords, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, canonicalNodeJson, canonicalValue, carryBlockOf, carryButtonLink, carryHandles, carryInto, carryKindOf, carryNotPlaced, checkAdditions, checkBody, checkCarry, checkFooter, checkHeader, checkLayout, checkList, checkOpening, chooseScrim, columnIssues, composablePage, composeContextOf, composeLayout, composeListFrame, composeNavHeader, composeOpening, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composerLeftovers, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, copyOutInteraction, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeCarryForPrompt, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFooter, distinctHeader, drawnBodyMix, drawnFooterMix, drawnHeaderMix, drawnOpeningMix, driftAt, driftOverlap, duplicateNodeIds, editedPageIds, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandAdditions, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, findOpening, findingMessageOf, findingSentence, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, formAsksPersonalData, formLegalFacts, frameWords, generationTierOf, groundToneOf, groupSentence, groupSiteFindings, handPageKey, handPlanPage, harvestPage, hash53, headerAdvice, headerCompanions, headerContextOfPlan, headerGallery, headerGalleryIdOf, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixValue, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerShape, headerSiteFor, headerTokenOf, headerTokenWords, headerWireWords, headerWordDrawn, headerWords, isActiveBuild, isAdditionKey, isHandPageKey, isLayoutRule, isLegalKind, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRedesignRun, isRtlLocale, isScrubbedEntrance, isSectionCarryHandle, isSectionStamp, isShopResource, isTemplateRoute, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, keepListParts, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsOffered, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutEntersOffered, layoutFlagsOffered, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBare, layoutListBinding, layoutListDrawnCols, layoutListPair, layoutListShapes, layoutListsContext, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutScrubTakes, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, listBelowPro, listBindingOfType, listBuiltWords, listColumns, listDetailOf, listIngredientWords, listMeaning, listMixFromWords, listMixOfFrame, listMixValue, listMixWords, listNeverIsEmpty, listOverhang, listPanelRows, listSaidSentence, listSentence, listShapeOfType, listTokenOf, listTokensOf, listWait, listWordOffered, listWordRef, listWordRefs, listWordRefusal, listWordTier, listWords, luminanceOf, measureLayout, mendCarry, mendLayout, mendNotices, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, moveEntrance, namedFooterMix, namedHeaderMix, namedOpeningMix, navHeaderContext, navPages, navShapeBreakpoint, navShapeOf, nearestHeaderMix, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, onceEntrance, openingAdvice, openingAdviceMix, openingContextOf, openingFromSection, openingGallery, openingGalleryIdOf, openingMeaning, openingMix, openingMixFromWords, openingMixOfPlan, openingMixValue, openingMixWords, openingPatternIdOf, openingPhoneInset, openingRecipe, openingReferences, openingTokenOf, openingWireWords, openingWordDrawn, openingWordOffered, openingWordTier, openingWordWaits, openingWords, orientationOfRatio, outwardCredits, ownPhotoFit, ownerContentInto, paddingKeepingClear, pageBuildSource, pageListIssues, pageShowsShop, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pickListWord, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pinnedPagesOf, pixelsUnder, placeFilm, plainCarryText, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planHeader, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWireShape, planWordIssues, previousRoute, pricesIn, publishRefusal, publishVerdict, quietMoveEntrance, readHeader, readOpening, readyMadeColumn, recipeListBinds, recomposeAsks, redesignAdditionsJsonSchema, redesignBackOpen, redesignBackUntil, redesignDiscardable, redesignPreviousChoices, refitBuiltPage, refitPage, refreshSectionStamps, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, rewordStoreGlobal, rhythmIssues, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, scrubEntranceStamps, scrubTokenOf, scrubUntilChoice, scrubbedEntrance, scrubsEntrance, sectionBuildKey, sectionEntrances, sectionFingerprint, sectionOrigin, sectionPatternIds, sectionToWire, sectionTokenOf, sectionUnchanged, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopListAliases, shopListsShownOn, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteBuiltWithLaw, siteFactLabel, siteGlobalsOf, siteNavPages, sitePages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, stampHeaderMix, stampOpeningMix, stampOpeningMotion, stampSection, startComposingShare, startQuote, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, storedHeaderMix, storedOpeningMix, strictSchemaComplexity, strictSchemaRefusal, swapParts, tierOf, tierOffers, toneOf, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wearBodyMix, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, withHeaderWord, withListWord, withOpeningWord, withShownList, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, writtenTexts };
17899
- export type { AddBarItemResult, AdditionIssue, AdditionItem, AdditionPage, AdditionsStudio, AdjustStep, AiBuyCredits, AiEntitlementsView, AiMeter, AiModelEntry, AiRefusal, AiTokenCounts, AiTokenPrice, AreaLuminance, ArtDirection, AuditPage, AuditPlaceholder, BarItemsEditResult, BodyContext, BodyGap, BodyMix, BodyRepair, BodySeamShape, BuildNotice, BuildStepError, BuildStepFacts, BuildStepRecord, CalmReading, CarryBlock, CarryBound, CarryCheckContext, CarryForm, CarryKept, CarryPhoto, CarryReference, CarryWord, CheckLayoutContext, CmsDataSourcePlan, ComposeContext, ComposeIssue, ComposeLayoutOptions, ComposedDataSource, ComposedItem, ComposedLayout, ComposedNavHeader, ComposedOpening, ComposedPage, ComposedPlaceholder, ComposedProduct, ComposedRoute, ComposedSection, ComposedShop, ComposedSite, ContentFieldPlan, ContentRoles, ContentSeedPlan, ContentTypePlan, CreateNodeOptions, CreatedRecord, DataSourcePlan, DriftBox, DriftLayer, DriftMeeting, DynamicKeysAsList, EntranceAction, EntranceActionOptions, EntranceInteraction, EntranceMark, EntranceSpec, EntranceStamp, FactKey, FilmPlacement, FilmTarget, FindingParams, FindingSentence, FingerprintedPage, FooterContext, FooterMix, FooterRepair, FooterWait, FrameRegion, HarvestContext, HeaderApplied, HeaderContext, HeaderEditOptions, HeaderGalleryEntry, HeaderGap, HeaderMix, HeaderPage, HeaderReading, HeaderRecipe, HeaderRepair, HeaderReplaced, HeaderSite, JsonSchema, KeptPageRefusal, LayoutBandMove, LayoutColours, LayoutEdit, LayoutFingerprint, LayoutForm, LayoutGallery, LayoutGalleryList, LayoutGap, LayoutGivenAway, LayoutIssue, LayoutIssueWords, LayoutLayer, LayoutListBare, LayoutListBinding, LayoutListMix, LayoutListNever, LayoutListShape, LayoutLook, LayoutMend, LayoutMixOfferOptions, LayoutPage, LayoutPhotoAddress, LayoutReadyMade, LayoutRect, LayoutRoomColumn, LayoutSection, LayoutSite, LayoutTrack, LayoutVoid, LayoutWire, LayoutWireLayer, LayoutWireList, LayoutWireOptions, LayoutWireSection, LayoutWireSlot, LayoutWireTrack, LayoutWordRef, LayoutWordsValue, LegalContext, LegalFacts, LegalKindRow, LegalLinePart, LegalTracker, LegalWords, ListCheckOptions, ListFrame, ListFrameInput, ListHangStep, ListIngredient, ListOverhang, ListPanelContext, ListPanelRow, ListPanelWord, ListPartEdit, ListPartsKept, ListPick, ListSaid, ListSayParams, ListShapeReading, ListWait, ListWordNever, ListWordShape, LookBefore, MeasuredLayer, MeasuredLayout, MenuWords, NavHeaderInput, NavHeaderOptions, NavPage, NavShapeOptions, NavShapeResult, NodeBaseline, OpeningApplied, OpeningContext, OpeningGalleryEntry, OpeningGap, OpeningInput, OpeningMix, OpeningNotPlaced, OpeningReading, OpeningRecipe, OpeningRepair, OpeningSite, OwnPhoto, OwnPhotoPlacement, PageArchetype, PageArchetypeId, PageArchetypeSlot, PageCarry, PageData, PageDataLine, PagePlan, PageSectionPlan, PageSeoPlan, PathIssue, PatternManifestEntry, PatternManifestOptions, PatternNode, PatternPath, PatternRoleNeed, PatternTrack, PhotoInventory, PhotoWordsArea, PicturePlan, PicturePlanOptions, PicturePromptContext, PictureReview, PictureSlot, PictureTryBudget, PictureWorldSpec, PicturesEstimate, PixelReading, PlacedFilm, PlainObject, PlanChange, PlanDirection, PlanEdit, PlanEditIssue, PlanEditResult, PlanEditsAnswer, PlanEntrancesInput, PlanFilm, PlanMixes, PlanWireContext, PlanWireOptions, PlanWireParts, PlanWordContext, PlanWordIssue, PreflightRefusal, PublishRefusal, QuoteRoute, RecipeListBinds, RedesignAdditions, RedesignAdditionsStaged, RedesignBack, RedesignBackPreview, RedesignLook, RedesignPageOutcome, RedesignPagePreflight, RedesignPageRefusal, RedesignRequest, RedesignRun, RedesignSnapshot, RedesignSnapshotPage, RedesignStaged, RedesignSwitch, RedesignSwitchPreview, RefitResult, RelativeDataSourcePlan, RhythmContext, ScrimChoice, ScrubContext, ScrubbableStamp, SectionEntrances, SectionFallback, SectionInput, SectionJudge, SectionOptions, SectionOrigin, SectionOriginContext, SectionStamp, SectionStampOrigin, SectionSwap, SerializedBinding, SerializedNode, SerializedResponsive, ShapeEntry, ShapeIssueCodes, ShopDataSourcePlan, ShopOptionPlan, ShopPlan, ShopProductPlan, ShowcaseInput, SiteAudit, SiteAuditOptions, SiteAuditSnapshot, SiteBuildRun, SiteBusiness, SiteCheck, SiteFinding, SiteFindingGroup, SiteNeedId, SitePageRef, SitePattern, SitePlan, SitePlanContext, SitePlanIssue, SitePlanSource, SitePlanValidation, SiteStudio, SiteStudioPage, SiteStudioRun, SiteTemplate, SiteTree, SiteTreeGlobals, SiteTreePage, SiteTreeSection, SiteTreeType, StagedAddition, StagedPage, StampedAction, StampedInteraction, StartQuote, StartQuotePart, StartQuoteRoutes, StartQuoteTokens, StockCredit, StockItemSlot, StockLink, StockNeed, StockPhoto, StockPhotoTraits, StockPlacement, StockPlanOptions, StockProviderTerms, StockReview, StockSlot, StockTarget, StrictSchemaComplexity, StrictSchemaRefusal, TemplatePlanInput, TieredRow, UndoKept, UndoPreview, UndoRecord, WireOptions, WordsArea, WrittenText };
17962
+ export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADDITION_CAPS, ADDITION_ITEMS_KEY, ADDITION_ITEM_SOURCE_SUFFIX, ADDITION_KEY_PREFIX, ADDITION_SLUG, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_LOOK, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, AI_COMPOSED_PAGE_LEAN_TOKENS, AI_MODEL_STEPS, AI_PLAN_REASKED_PART, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_FEATURE, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_RUNS_AS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AWARD_COMPOSED_PAGES_ESTIMATED, AdditionHeldBack, AdditionIssueCode, AdditionOrigin, AdditionsPart, AdditionsSkipped, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BASELINE_WORDS_HE, BODY_TOKEN, BUILD_STEPS, BUTTON_LINK_PROPS, BaselineRole, BindScope, BodyIngredient, BodyMixError, BodyRepairCode, BodyRhythm, BodySeam, BodySectionWord, BodyTexture, BuildNoticeCode, BuildStep, CARRIED_BUTTON_STYLES, CARRY_LAYER_KINDS, CARRY_PHOTO_KINDS, CARRY_PROMPT_QUOTE, CARRY_WHOLE_LAYER_KINDS, CONTENT_ROLE_MEANINGS, COPY_OUT, CREDITS_PER_USD, CardBindTarget, CarryBlockKind, CarryKeptReason, CarryKind, CarryReferenceVia, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, DEFAULT_GENERATION_TIER, DEFAULT_HEADER_PATTERN, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FOOTER_LEGAL_ROLE, FOOTER_TOKEN, FORM_LEGAL_ROLE, FallbackOpeningKept, FilmUnplaced, FindingGrouping, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, FooterRole, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, GroundTone, HAND_PAGE_KEY_PREFIX, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, HeaderReplacedKind, IMPRINT_COUNTRIES, ISRAEL, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptPagesChoice, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_COLUMN_MENDED, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_OFFERED_AWARD, LAYOUT_MIX_WORDS, LAYOUT_OPERATED, LAYOUT_OWNED_PROPS, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LEGAL_KINDS, LEGAL_PAGE_SETTING, LIST_CARD_PART, LIST_DECK_MAX_PX, LIST_DECK_SHARE, LIST_FRAME_STYLE_KEYS, LIST_INGREDIENTS, LIST_ITEM_MIN_PX, LIST_LONG_WORDS, LIST_RHYTHMS, LIST_ROLE_WORDS, LIST_RULES, LIST_SAY_WORDS, LIST_TABLE, LIST_WORDS_BESIDE_RULE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListSide, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutScrubRefusal, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, LegalBlocks, LegalFact, LegalKind, ListPartChange, ListPartOutcome, ListSayCode, ListWordRefusal, MAX_SITE_PICTURES, MOTION_TRIGGERS, MOVING_OPENING_MEDIA, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, ONCE_ENTRANCE_MS, OPENING_HEIGHT, OPENING_MIX_PROP, OPENING_TOKEN, OpeningExtra, OpeningFrame, OpeningIngredient, OpeningMedia, OpeningMixError, OpeningMotion, OpeningRepairCode, OpeningRole, OpeningWords, PAGE_ARCHETYPES, PERSONAL_CONTROLS, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PREVIOUS_ROUTE_SUFFIX, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PriceBindTarget, PublishRefusalCode, PublishScope, REDESIGN_ADDITIONS_SCHEMA_NAMES, REDESIGN_BACK_DAYS, REDESIGN_PARTS, REDESIGN_STEPS, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RedesignPageResult, RedesignPart, RedesignRefusalCode, RedesignStep, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SCRUBBED_ENTRANCE, SCRUB_UNTIL, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SIGN_IN_DIALOG_ID, SITE_CHECKS, SITE_FACT_LABELS, SITE_FINDING_WORDS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PAGE_MOVED_ASIDE, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_FOOTER_PARTS, SPEC_SITE_HEADER_PARTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STAMPED_PAGE_ARCHETYPES, START_QUOTE_STEPS, START_QUOTE_TOKENS, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STORE_CONTACT_CODES, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, SWAP_CARRY_KINDS, ScrimLevel, ScrubUntil, SectionFallbackLastResort, SectionMaker, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePageMaker, SitePageStatus, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StagedPageReason, StagedPageWay, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, additionKey, additionSourcesOf, additionsNeedContent, adjustStepLabel, adjustStepOf, adjustStyleProps, aiModelStep, aiRefusalNext, aiStepParts, applyHeaderMix, applyLayoutEdits, applyOpeningMix, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, bentoFill, bentoFillsParams, blocksPublish, bodyMeaning, bodyMix, bodyMixFromWords, bodyMixOfPlan, bodyMixWords, bodySeamClass, bodySeamShape, bodyTokenOf, bodyWireWords, bodyWordDrawn, bodyWordOffered, bodyWordTier, bodyWordWaits, bodyWords, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, canonicalNodeJson, canonicalValue, carryBlockOf, carryButtonLink, carryHandles, carryInto, carryKindOf, carryNotPlaced, carrySection, checkAdditions, checkBody, checkCarry, checkFooter, checkHeader, checkLayout, checkList, checkOpening, chooseScrim, columnIssues, composablePage, composeContextOf, composeLayout, composeListFrame, composeNavHeader, composeOpening, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composerLeftovers, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, copyOutInteraction, costUsd, countryLegalFacts, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeCarryForPrompt, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFallbackSections, distinctFooter, distinctHeader, drawnBodyMix, drawnFooterMix, drawnHeaderMix, drawnOpeningMix, driftAt, driftOverlap, duplicateNodeIds, editedPageIds, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandAdditions, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fallbackFingerprintOf, fallbackFingerprintOfPlanPage, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, findOpening, findingMessageOf, findingSentence, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTableWords, footerTokenOf, footerTokenWords, footerWait, footerWireWords, footerWords, formAsksPersonalData, formLegalFacts, frameWords, generationTierOf, groundToneOf, groupSentence, groupSiteFindings, handPageKey, handPlanPage, harvestPage, hash53, headerAdvice, headerCompanions, headerContextOfPlan, headerGallery, headerGalleryIdOf, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixValue, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerShape, headerSiteFor, headerTokenOf, headerTokenWords, headerWireWords, headerWordDrawn, headerWords, isActiveBuild, isAdditionKey, isHandPageKey, isLayoutRule, isLegalKind, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRedesignRun, isRtlLocale, isScrubbedEntrance, isSectionCarryHandle, isSectionStamp, isShopResource, isTemplateRoute, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, keepListParts, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsOffered, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutEntersOffered, layoutFlagsOffered, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBare, layoutListBinding, layoutListDrawnCols, layoutListPair, layoutListShapes, layoutListsContext, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutScrubTakes, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, legalFactsOf, legalFormLine, legalKindBlocks, legalKindOfPage, legalKindRow, legalKindsFor, legalLabel, legalPageOf, legalRoute, legalTitle, listBelowPro, listBindingOfType, listBuiltWords, listColumns, listDetailOf, listIngredientWords, listMeaning, listMixFromWords, listMixOfFrame, listMixValue, listMixWords, listNeverIsEmpty, listOverhang, listPanelRows, listSaidSentence, listSentence, listShapeOfType, listTokenOf, listTokensOf, listWait, listWordOffered, listWordRef, listWordRefs, listWordRefusal, listWordTier, listWords, luminanceOf, measureLayout, mendCarry, mendLayout, mendNotices, menuAtEveryWidth, menuLookOf, menuWords, modelCanDo, moveBarItem, moveEntrance, namedFooterMix, namedHeaderMix, namedOpeningMix, navHeaderContext, navPages, navShapeBreakpoint, navShapeOf, nearestHeaderMix, nestSitePages, nextSourceOf, nodeBindPaths, offeredForTier, onceEntrance, openingAdvice, openingAdviceMix, openingContextOf, openingFromSection, openingGallery, openingGalleryIdOf, openingMeaning, openingMix, openingMixFromWords, openingMixOfPlan, openingMixValue, openingMixWords, openingPatternIdOf, openingPhoneInset, openingRecipe, openingReferences, openingTokenOf, openingWireWords, openingWordDrawn, openingWordOffered, openingWordTier, openingWordWaits, openingWords, orientationOfRatio, outwardCredits, ownPhotoFit, ownerContentInto, paddingKeepingClear, pageBuildSource, pageListIssues, pageShowsShop, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pickListWord, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pinnedPagesOf, pixelsUnder, placeFilm, plainCarryText, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planHeader, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWireShape, planWordIssues, previousRoute, pricesIn, publishRefusal, publishVerdict, quietMoveEntrance, readHeader, readOpening, readyMadeColumn, readyMadeToken, recipeListBinds, recomposeAsks, redesignAdditionsJsonSchema, redesignBackOpen, redesignBackUntil, redesignDiscardable, redesignPreviousChoices, refitBuiltPage, refitPage, refreshSectionStamps, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, rewordStoreGlobal, rhythmIssues, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, scrubEntranceStamps, scrubTokenOf, scrubUntilChoice, scrubbedEntrance, scrubsEntrance, sectionBuildKey, sectionEntrances, sectionFingerprint, sectionOrigin, sectionPatternIds, sectionToWire, sectionTokenOf, sectionUnchanged, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopListAliases, shopListsShownOn, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteBuiltWithLaw, siteFactLabel, siteGlobalsOf, siteNavPages, sitePages, sitePagesOf, siteParentRoute, siteSells, siteTreeOf, siteTreeOfPlan, slotBudget, splitCssValue, splitSide, stampHeaderMix, stampOpeningMix, stampOpeningMotion, stampSection, startComposingShare, startQuote, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, storedHeaderMix, storedOpeningMix, strictSchemaComplexity, strictSchemaRefusal, swapParts, tierOf, tierOffers, toneOf, typesOfAddition, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wearBodyMix, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withAdditions, withCarriedText, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, withHeaderWord, withListWord, withOpeningWord, withShownList, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, writtenTexts };
17963
+ export type { AddBarItemResult, AdditionIssue, AdditionItem, AdditionPage, AdditionsStudio, AdjustStep, AiBuyCredits, AiEntitlementsView, AiMeter, AiModelEntry, AiRefusal, AiTokenCounts, AiTokenPrice, AreaLuminance, ArtDirection, AuditPage, AuditPlaceholder, BarItemsEditResult, BodyContext, BodyGap, BodyMix, BodyRepair, BodySeamShape, BuildNotice, BuildStepError, BuildStepFacts, BuildStepRecord, CalmReading, CarryBlock, CarryBound, CarryCheckContext, CarryForm, CarryKept, CarryPhoto, CarryReference, CarryWord, CheckLayoutContext, CmsDataSourcePlan, ComposeContext, ComposeIssue, ComposeLayoutOptions, ComposedDataSource, ComposedItem, ComposedLayout, ComposedNavHeader, ComposedOpening, ComposedPage, ComposedPlaceholder, ComposedProduct, ComposedRoute, ComposedSection, ComposedShop, ComposedSite, ContentFieldPlan, ContentRoles, ContentSeedPlan, ContentTypePlan, CreateNodeOptions, CreatedRecord, DataSourcePlan, DistinctFallback, DriftBox, DriftLayer, DriftMeeting, DynamicKeysAsList, EntranceAction, EntranceActionOptions, EntranceInteraction, EntranceMark, EntranceSpec, EntranceStamp, FactKey, FilmPlacement, FilmTarget, FindingParams, FindingSentence, FingerprintedPage, FooterContext, FooterMix, FooterRepair, FooterWait, FrameRegion, HarvestContext, HeaderApplied, HeaderContext, HeaderEditOptions, HeaderGalleryEntry, HeaderGap, HeaderMix, HeaderPage, HeaderReading, HeaderRecipe, HeaderRepair, HeaderReplaced, HeaderSite, JsonSchema, KeptPageRefusal, LayoutBandMove, LayoutColours, LayoutEdit, LayoutFingerprint, LayoutForm, LayoutGallery, LayoutGalleryList, LayoutGap, LayoutGivenAway, LayoutIssue, LayoutIssueWords, LayoutLayer, LayoutListBare, LayoutListBinding, LayoutListMix, LayoutListNever, LayoutListShape, LayoutLook, LayoutMend, LayoutMixOfferOptions, LayoutPage, LayoutPhotoAddress, LayoutReadyMade, LayoutRect, LayoutRoomColumn, LayoutSection, LayoutSite, LayoutTrack, LayoutVoid, LayoutWire, LayoutWireLayer, LayoutWireList, LayoutWireOptions, LayoutWireSection, LayoutWireSlot, LayoutWireTrack, LayoutWordRef, LayoutWordsValue, LegalContext, LegalFacts, LegalKindRow, LegalLinePart, LegalTracker, LegalWords, ListCheckOptions, ListFrame, ListFrameInput, ListHangStep, ListIngredient, ListOverhang, ListPanelContext, ListPanelRow, ListPanelWord, ListPartEdit, ListPartsKept, ListPick, ListSaid, ListSayParams, ListShapeReading, ListWait, ListWordNever, ListWordShape, LookBefore, MeasuredLayer, MeasuredLayout, MenuWords, NavHeaderInput, NavHeaderOptions, NavPage, NavShapeOptions, NavShapeResult, NodeBaseline, OpeningApplied, OpeningContext, OpeningGalleryEntry, OpeningGap, OpeningInput, OpeningMix, OpeningNotPlaced, OpeningReading, OpeningRecipe, OpeningRepair, OpeningSite, OwnPhoto, OwnPhotoPlacement, PageArchetype, PageArchetypeId, PageArchetypeSlot, PageCarry, PageData, PageDataLine, PagePlan, PageSectionPlan, PageSeoPlan, PathIssue, PatternManifestEntry, PatternManifestOptions, PatternNode, PatternPath, PatternRoleNeed, PatternTrack, PhotoInventory, PhotoWordsArea, PicturePlan, PicturePlanOptions, PicturePromptContext, PictureReview, PictureSlot, PictureTryBudget, PictureWorldSpec, PicturesEstimate, PixelReading, PlacedFilm, PlainObject, PlanChange, PlanDirection, PlanEdit, PlanEditIssue, PlanEditResult, PlanEditsAnswer, PlanEntrancesInput, PlanFilm, PlanMixes, PlanWireContext, PlanWireOptions, PlanWireParts, PlanWordContext, PlanWordIssue, PreflightRefusal, PublishRefusal, QuoteRoute, RecipeListBinds, RedesignAdditions, RedesignAdditionsStaged, RedesignBack, RedesignBackPreview, RedesignLook, RedesignPageOutcome, RedesignPagePreflight, RedesignPageRefusal, RedesignRequest, RedesignRun, RedesignSnapshot, RedesignSnapshotPage, RedesignStaged, RedesignSwitch, RedesignSwitchPreview, RefitResult, RelativeDataSourcePlan, RhythmContext, ScrimChoice, ScrubContext, ScrubbableStamp, SectionEntrances, SectionFallback, SectionInput, SectionJudge, SectionOptions, SectionOrigin, SectionOriginContext, SectionStamp, SectionStampOrigin, SectionSwap, SerializedBinding, SerializedNode, SerializedResponsive, ShapeEntry, ShapeIssueCodes, ShopDataSourcePlan, ShopOptionPlan, ShopPlan, ShopProductPlan, ShowcaseInput, SiteAudit, SiteAuditOptions, SiteAuditSnapshot, SiteBuildRun, SiteBusiness, SiteCheck, SiteFinding, SiteFindingGroup, SiteNeedId, SitePageRef, SitePattern, SitePlan, SitePlanContext, SitePlanIssue, SitePlanSource, SitePlanValidation, SiteStudio, SiteStudioPage, SiteStudioRun, SiteTemplate, SiteTree, SiteTreeGlobals, SiteTreePage, SiteTreeSection, SiteTreeType, StagedAddition, StagedPage, StampedAction, StampedInteraction, StartQuote, StartQuotePart, StartQuoteRoutes, StartQuoteTokens, StockCredit, StockItemSlot, StockLink, StockNeed, StockPhoto, StockPhotoTraits, StockPlacement, StockPlanOptions, StockProviderTerms, StockReview, StockSlot, StockTarget, StrictSchemaComplexity, StrictSchemaRefusal, TemplatePlanInput, TieredRow, UndoKept, UndoPreview, UndoRecord, WireOptions, WordsArea, WrittenText };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectoriox/iox-ui",
3
- "version": "5.152.0",
3
+ "version": "5.154.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -0,0 +1,330 @@
1
+ import {
2
+ AiEntitlementsView, AiFeature, AiModelEntry, AiRefusal, AiRefusalCode, AiStep, AiTokenPrice, ArtDirection, PICTURE_ASPECTS, PictureReview, WordsArea,
3
+ AI_STEP_FEATURE, aiModelStep, aiRefusalNext, artDirectionPreamble, creditsOfUsd, emptyAreaPhrase, estimateStepCredits, frameWords, modelCanDo, pictureReviewPasses,
4
+ } from '@vectoriox/iox-ui/generation-core';
5
+
6
+ /**
7
+ * FILES BOX ▸ GENERATE — the vocabulary of AI Assist's surface S7 (ai-assist-plan §2 "S7", A-D14 · A-D15 · A-D16), the
8
+ * pictures half. ONE spelling for the Files box (iox-cms-client), the route that makes the pictures (iox-cms) and the
9
+ * proof: what may be asked, how the asked words become the prompt, what it costs before the button, when it is refused
10
+ * before any call, and what a made picture is afterwards.
11
+ *
12
+ * It adds NO generator: a picture is made by the M7 pipeline's own call and looked at by its own review
13
+ * (`PictureReview`), under the same art-direction preamble (`artDirectionPreamble`). The two calls run as steps of
14
+ * Assist's own (`GENERATE_STEPS` — `AiStep.AssistPicture` / `AssistPictureReview`, which `AI_STEP_RUNS_AS` the M7 steps'
15
+ * models), so the Assist feature alone allows Generate and its ledger rows are Assist's. What differs
16
+ * from a site build's pictures is the owner's part: THEY write the words, THEY choose how many, and every candidate made
17
+ * is charged and KEPT — a review that says no marks the picture, it does not buy a second try (gateway rule 3, R-H12).
18
+ */
19
+
20
+ /** The two steps a press runs — Assist's own names for the M7 picture call and its review. */
21
+ export const GENERATE_STEPS = { picture: AiStep.AssistPicture, review: AiStep.AssistPictureReview } as const;
22
+
23
+ export enum GenerateKind {
24
+ Photo = 'photo',
25
+ Video = 'video',
26
+ }
27
+
28
+ /** Why a kind cannot be made yet — the Files box says it in words, never with a button that fails (R-H13). */
29
+ export enum GenerateUnavailable {
30
+ /** No provider makes a video from a start picture yet (`generateVideo`, premium-sites SC6c). */
31
+ NoProvider = 'noProvider',
32
+ }
33
+
34
+ /** What each kind can do today. Video turns on here, in one place, the day a provider exists. */
35
+ export const GENERATE_KINDS: Readonly<Record<GenerateKind, { readonly available: boolean; readonly why?: GenerateUnavailable }>> = {
36
+ [GenerateKind.Photo]: { available: true },
37
+ [GenerateKind.Video]: { available: false, why: GenerateUnavailable.NoProvider },
38
+ };
39
+
40
+ /** How many candidates one press makes. */
41
+ export const GENERATE_COUNTS: ReadonlyArray<number> = [1, 2, 4];
42
+ export const GENERATE_COUNT_DEFAULT = 4;
43
+ /** The frames offered (each a frame the image model is asked for — `PICTURE_ASPECTS`), widest first. */
44
+ export const GENERATE_SHAPES: ReadonlyArray<string> = ['16:9', '4:3', '1:1', '3:4', '9:16'];
45
+ export const GENERATE_SHAPE_DEFAULT = '4:3';
46
+ export const GENERATE_PROMPT_MIN = 3;
47
+ export const GENERATE_PROMPT_MAX = 600;
48
+
49
+ /** The element that opened the box, as far as a picture cares: its shape, and the part of it words sit over. */
50
+ export interface GenerateSlot {
51
+ /** Width / height of the slot. */
52
+ readonly aspect?: number;
53
+ readonly wordsArea?: WordsArea;
54
+ }
55
+
56
+ /** What the owner asks for — the body of the route, checked by `generateRequestIssues` on both sides. */
57
+ export interface GeneratePicturesRequest {
58
+ readonly kind: `${GenerateKind}`;
59
+ /** The owner's own words. */
60
+ readonly prompt: string;
61
+ readonly shape: string;
62
+ readonly count: number;
63
+ /** Wear the site's art direction ("Your look") — on unless the owner turned it off. */
64
+ readonly look: boolean;
65
+ /** A picture model of the vetted list; absent = the studio's model for the step (Settings ▸ AI ▸ Models, A-D14). */
66
+ readonly model?: string;
67
+ readonly slot?: GenerateSlot;
68
+ }
69
+
70
+ export enum GenerateIssueCode {
71
+ Shape = 'shape',
72
+ Kind = 'kind',
73
+ KindUnavailable = 'kindUnavailable',
74
+ Prompt = 'prompt',
75
+ PromptTooLong = 'promptTooLong',
76
+ Frame = 'frame',
77
+ Count = 'count',
78
+ Model = 'model',
79
+ }
80
+
81
+ export interface GenerateIssue {
82
+ readonly code: GenerateIssueCode;
83
+ readonly path: string;
84
+ readonly message: string;
85
+ }
86
+
87
+ const isObject = (v: unknown): v is Record<string, unknown> => !!v && typeof v === 'object' && !Array.isArray(v);
88
+
89
+ /** A request as it arrives: every key may be anything. */
90
+ interface LooseRequest { kind?: unknown; prompt?: unknown; shape?: unknown; count?: unknown; look?: unknown; model?: unknown; slot?: unknown }
91
+ interface LooseSlot { aspect?: unknown; wordsArea?: unknown }
92
+ interface LooseArea { edge?: unknown; share?: unknown }
93
+ const REQUEST_KEYS: ReadonlyArray<string> = ['kind', 'prompt', 'shape', 'count', 'look', 'model', 'slot'];
94
+
95
+ /** What is wrong with a value as a request to generate pictures — nothing is repaired, each fault has its path. */
96
+ export function generateRequestIssues(value: unknown): GenerateIssue[] {
97
+ if (!isObject(value)) return [{ code: GenerateIssueCode.Shape, path: '', message: 'must be an object' }];
98
+ const v = value as LooseRequest;
99
+ const issues: GenerateIssue[] = [];
100
+ const say = (code: GenerateIssueCode, path: string, message: string) => issues.push({ code, path, message });
101
+ const kinds = Object.values(GenerateKind) as string[];
102
+ if (typeof v.kind !== 'string' || !kinds.includes(v.kind)) say(GenerateIssueCode.Kind, 'kind', `one of ${kinds.join(', ')}`);
103
+ else if (!GENERATE_KINDS[v.kind as GenerateKind].available) say(GenerateIssueCode.KindUnavailable, 'kind', `${v.kind} cannot be made yet`);
104
+ const prompt = typeof v.prompt === 'string' ? v.prompt.trim() : '';
105
+ if (prompt.length < GENERATE_PROMPT_MIN) say(GenerateIssueCode.Prompt, 'prompt', 'describe the picture');
106
+ else if (prompt.length > GENERATE_PROMPT_MAX) say(GenerateIssueCode.PromptTooLong, 'prompt', `at most ${GENERATE_PROMPT_MAX} characters`);
107
+ if (typeof v.shape !== 'string' || !GENERATE_SHAPES.includes(v.shape)) say(GenerateIssueCode.Frame, 'shape', `one of ${GENERATE_SHAPES.join(', ')}`);
108
+ if (typeof v.count !== 'number' || !GENERATE_COUNTS.includes(v.count)) say(GenerateIssueCode.Count, 'count', `one of ${GENERATE_COUNTS.join(', ')}`);
109
+ if (typeof v.look !== 'boolean') say(GenerateIssueCode.Shape, 'look', 'must be true or false');
110
+ if (v.model !== undefined && (typeof v.model !== 'string' || !v.model)) say(GenerateIssueCode.Model, 'model', 'a model id, or absent');
111
+ if (v.slot !== undefined) {
112
+ if (!isObject(v.slot)) say(GenerateIssueCode.Shape, 'slot', 'must be an object');
113
+ else {
114
+ const slot = v.slot as LooseSlot;
115
+ if (slot.aspect !== undefined && !(typeof slot.aspect === 'number' && slot.aspect > 0 && Number.isFinite(slot.aspect))) say(GenerateIssueCode.Shape, 'slot.aspect', 'a positive number');
116
+ const area = slot.wordsArea as LooseArea | undefined;
117
+ const good = !!area && typeof area === 'object' && (area.edge === 'top' || area.edge === 'bottom') && typeof area.share === 'number' && area.share > 0 && area.share <= 1;
118
+ if (slot.wordsArea !== undefined && !good) say(GenerateIssueCode.Shape, 'slot.wordsArea', '{ edge: top | bottom, share: 0–1 }');
119
+ }
120
+ }
121
+ for (const key of Object.keys(value)) if (!REQUEST_KEYS.includes(key)) say(GenerateIssueCode.Shape, key, 'is not a key of the request');
122
+ return issues;
123
+ }
124
+
125
+ /**
126
+ * The offered frame nearest a slot ("fits the slot"): by the ratio of the two shapes, so 4:5 goes to 3:4 and never to
127
+ * 1:1 by a hair. No slot, or one with no shape yet = the default.
128
+ */
129
+ export function shapeForSlot(aspect: number | undefined | null): string {
130
+ if (!(typeof aspect === 'number' && aspect > 0 && Number.isFinite(aspect))) return GENERATE_SHAPE_DEFAULT;
131
+ let best = GENERATE_SHAPE_DEFAULT, distance = Infinity;
132
+ for (const shape of GENERATE_SHAPES) {
133
+ const d = Math.abs(Math.log(PICTURE_ASPECTS[shape] / aspect));
134
+ if (d < distance) { best = shape; distance = d; }
135
+ }
136
+ return best;
137
+ }
138
+
139
+ /**
140
+ * The prompt a generated picture is asked with: the site's preamble VERBATIM when "Your look" is on (the same one a
141
+ * site build's pictures get — one preamble per prompt), then the OWNER'S WORDS as written, the frame, and the part left
142
+ * calm for words when the slot has words over it. Nothing else is added and nothing of the owner's is rewritten.
143
+ */
144
+ export function generatePicturePrompt(request: Pick<GeneratePicturesRequest, 'prompt' | 'shape' | 'look' | 'slot'>, direction: ArtDirection | null | undefined): string {
145
+ return [
146
+ ...(request.look && direction ? [artDirectionPreamble(direction)] : []),
147
+ request.prompt.trim(),
148
+ frameWords(request.shape),
149
+ ...(request.slot?.wordsArea ? [emptyAreaPhrase(request.slot.wordsArea)] : []),
150
+ ].join('\n');
151
+ }
152
+
153
+ /** Words an image model draws badly: asked for inside the picture, they come out wrong (the honesty line). */
154
+ const WORDS_ASKED = /\b(logo|text|words?|sign|signage|letters?|caption|title|headline|slogan|typography)\b|כיתוב|טקסט|לוגו|כותרת|אותיות|שלט|סלוגן/i;
155
+
156
+ /** True when the owner's words ask for writing INSIDE the picture — the box says "put the words on the page". */
157
+ export function promptAsksForWords(prompt: string): boolean {
158
+ return WORDS_ASKED.test(prompt ?? '');
159
+ }
160
+
161
+ /**
162
+ * "Describe from the page": the words the box fills in for the element that opened it — the section's own words and
163
+ * the kind of business, never the business's name (it would be drawn). No model is asked; empty when the page says
164
+ * nothing.
165
+ */
166
+ export function describeFromPage(context: { readonly business?: string; readonly words?: string }): string {
167
+ const business = (context.business ?? '').trim();
168
+ const words = (context.words ?? '').replace(/\s+/g, ' ').trim().slice(0, 240);
169
+ if (!business && !words) return '';
170
+ const subject = business ? `A picture for ${business}` : 'A picture for this part of the page';
171
+ return (words ? `${subject}. It goes beside these words: “${words}”.` : `${subject}.`).slice(0, GENERATE_PROMPT_MAX);
172
+ }
173
+
174
+ // ── The cost, shown before the button ─────────────────────────────────────────────────────────
175
+
176
+ export interface GenerateEstimate {
177
+ readonly count: number;
178
+ /** One picture, in credits. */
179
+ readonly picture: number;
180
+ /** One review of a picture, in credits. */
181
+ readonly review: number;
182
+ /** One candidate: a picture and its review. */
183
+ readonly each: number;
184
+ /** What the owner is shown, and the most the press may spend. */
185
+ readonly total: number;
186
+ }
187
+
188
+ /**
189
+ * The cost shown under the box (A-D15: the owner chooses the cost): every candidate is made once and looked at once.
190
+ * Unlike a site build's pictures (`estimatePictures`) there is NO second try in it — a candidate the review says no to
191
+ * is kept and marked, and the owner decides whether to press again.
192
+ */
193
+ export function estimateGenerate(count: number, prices: { readonly image: AiTokenPrice; readonly review: AiTokenPrice }): GenerateEstimate {
194
+ const picture = estimateStepCredits(GENERATE_STEPS.picture, prices.image);
195
+ const review = estimateStepCredits(GENERATE_STEPS.review, prices.review);
196
+ const n = Math.max(0, Math.floor(count));
197
+ return { count: n, picture, review, each: creditsOfUsd((picture + review) / 100), total: creditsOfUsd((n * (picture + review)) / 100) };
198
+ }
199
+
200
+ /** A picture model the owner may choose, with what one candidate costs on it (the model button, A-D14). */
201
+ export interface GenerateModelChoice {
202
+ readonly id: string;
203
+ readonly label: string;
204
+ /** The studio's default for the step — what "Auto" runs. */
205
+ readonly recommended: boolean;
206
+ /** Null when the list carries no price for it (the provider reports each call's cost). */
207
+ readonly each: number | null;
208
+ }
209
+
210
+ /**
211
+ * The picture models of the vetted list, each with its estimate for ONE candidate, the default first. A retired model
212
+ * or one that cannot make a picture is never offered.
213
+ */
214
+ export function generateModelChoices(models: ReadonlyArray<AiModelEntry>, review: AiTokenPrice): GenerateModelChoice[] {
215
+ const step = aiModelStep(GENERATE_STEPS.picture); // the vetted list names the step whose model this runs on
216
+ return models
217
+ .filter(m => !m.retired && m.steps.includes(step) && modelCanDo(m, step))
218
+ .map(m => ({ id: m.id, label: m.label, recommended: !!m.recommendedFor?.includes(step), each: m.price ? estimateGenerate(1, { image: m.price, review }).each : null }))
219
+ .sort((a, b) => Number(b.recommended) - Number(a.recommended));
220
+ }
221
+
222
+ /**
223
+ * The plan features Generate needs — what its two steps belong to (`AI_STEP_FEATURE`): AI Assist, alone (Doron,
224
+ * 2026-11-24; a studio needs no site generation to make a picture). A plan missing it is refused `NotInPlan`.
225
+ */
226
+ export const GENERATE_FEATURES: ReadonlyArray<AiFeature> = Array.from(new Set(Object.values(GENERATE_STEPS).map(step => AI_STEP_FEATURE[step])));
227
+
228
+ /**
229
+ * May this press run? The answer BEFORE any provider call (R-H12): the plan is known, it includes what Generate needs,
230
+ * and the credits left cover the cost shown. The Files box asks it to disable the button and say why; iox-cms asks it
231
+ * again with its own numbers before the first call — the client's are never trusted. Null = go.
232
+ * A studio on its own key has no meter (`remaining: null`) and is never refused for credits.
233
+ */
234
+ export function generateRefusal(estimate: Pick<GenerateEstimate, 'total'>, entitlements: AiEntitlementsView | null | undefined): AiRefusal | null {
235
+ if (!entitlements || !entitlements.known) return { code: AiRefusalCode.PlanUnknown, next: { kind: aiRefusalNext(AiRefusalCode.PlanUnknown) } };
236
+ const missing = GENERATE_FEATURES.find(f => entitlements.features?.[f] !== true);
237
+ if (missing) return { code: AiRefusalCode.NotInPlan, planName: entitlements.planName, next: { kind: aiRefusalNext(AiRefusalCode.NotInPlan) } };
238
+ const remaining = entitlements.meter?.remaining;
239
+ if (typeof remaining === 'number' && estimate.total > remaining) {
240
+ const buy = entitlements.meter?.buy ?? null;
241
+ return {
242
+ code: AiRefusalCode.OutOfCredits, planName: entitlements.planName, remaining, estimate: estimate.total,
243
+ next: { kind: aiRefusalNext(AiRefusalCode.OutOfCredits, buy), ...(buy ? { href: buy.url } : {}) },
244
+ };
245
+ }
246
+ return null;
247
+ }
248
+
249
+ // ── A candidate, once made ────────────────────────────────────────────────────────────────────
250
+
251
+ /** Where one candidate stands — the tile's state in the grid. */
252
+ export enum CandidateState {
253
+ Making = 'making',
254
+ Checking = 'checking',
255
+ /** Made, looked at, kept. */
256
+ Kept = 'kept',
257
+ /** Made and kept, but the look found something the owner should see (words in it, a warped hand). */
258
+ Flagged = 'flagged',
259
+ /** Not made: the provider failed. Nothing was charged for it. */
260
+ Failed = 'failed',
261
+ }
262
+
263
+ /** What the look found, in the order the tile says it. */
264
+ export enum CandidateFlag {
265
+ /** Writing, a logo or a watermark inside the picture. */
266
+ Words = 'words',
267
+ /** Warped hands, faces or objects. */
268
+ Anatomy = 'anatomy',
269
+ /** Not what was asked for. */
270
+ Subject = 'subject',
271
+ /** The part left for words is too busy to read over. */
272
+ CalmArea = 'calmArea',
273
+ }
274
+
275
+ export interface CandidateVerdict {
276
+ readonly state: CandidateState.Kept | CandidateState.Flagged;
277
+ readonly flags: ReadonlyArray<CandidateFlag>;
278
+ /** The alt text written from the picture — stored on the asset, set on the element when the picture is used. */
279
+ readonly alt: string;
280
+ }
281
+
282
+ /**
283
+ * A made picture after its look: KEPT either way (it was paid for), flagged when the review says no — the same four
284
+ * answers a site build's review gives (`pictureReviewPasses`), read here as marks instead of a reason to try again.
285
+ */
286
+ export function candidateVerdict(review: PictureReview, slot?: Pick<GenerateSlot, 'wordsArea'>): CandidateVerdict {
287
+ const flags: CandidateFlag[] = [];
288
+ if (!review.clean) flags.push(CandidateFlag.Words);
289
+ if (!review.anatomy) flags.push(CandidateFlag.Anatomy);
290
+ if (!review.subject) flags.push(CandidateFlag.Subject);
291
+ if (slot?.wordsArea && !review.calmArea) flags.push(CandidateFlag.CalmArea);
292
+ const passes = pictureReviewPasses(review, { wordsArea: slot?.wordsArea });
293
+ return { state: passes ? CandidateState.Kept : CandidateState.Flagged, flags: passes ? [] : flags, alt: review.alt.trim() };
294
+ }
295
+
296
+ /** One candidate as the route answers it and the tile shows it. */
297
+ export interface GenerateCandidate {
298
+ readonly id: string;
299
+ readonly state: `${CandidateState}`;
300
+ /** The asset written (`assets.source: generated`) — absent while making and when it failed. */
301
+ readonly assetId?: string;
302
+ readonly url?: string;
303
+ readonly alt?: string;
304
+ readonly flags?: ReadonlyArray<`${CandidateFlag}`>;
305
+ /** What this candidate was charged, in credits (0 when it failed before a picture was made). */
306
+ readonly credits?: number;
307
+ }
308
+
309
+ /** How one press ended, for the line under the box: how many were made, kept and charged; how many could not be. */
310
+ export interface GenerateOutcome {
311
+ readonly made: number;
312
+ readonly flagged: number;
313
+ readonly failed: number;
314
+ readonly credits: number;
315
+ /** Every candidate has reached a final state. */
316
+ readonly done: boolean;
317
+ }
318
+
319
+ const FINAL: ReadonlyArray<string> = [CandidateState.Kept, CandidateState.Flagged, CandidateState.Failed];
320
+
321
+ export function generateOutcome(candidates: ReadonlyArray<GenerateCandidate>): GenerateOutcome {
322
+ const made = candidates.filter(c => c.state === CandidateState.Kept || c.state === CandidateState.Flagged);
323
+ return {
324
+ made: made.length,
325
+ flagged: candidates.filter(c => c.state === CandidateState.Flagged).length,
326
+ failed: candidates.filter(c => c.state === CandidateState.Failed).length,
327
+ credits: creditsOfUsd(candidates.reduce((sum, c) => sum + (c.credits ?? 0), 0) / 100),
328
+ done: candidates.length > 0 && candidates.every(c => FINAL.includes(c.state)),
329
+ };
330
+ }
@@ -32,3 +32,4 @@ export * from './site-look';
32
32
  export * from './page-edits';
33
33
  export * from './assist-turn';
34
34
  export * from './assist-locale';
35
+ export * from './media-generate';
@@ -208,6 +208,9 @@ export const SURFACES: Readonly<Record<AssistSurface, SurfaceSpec>> = {
208
208
  scopes: [AssistScope.Field, AssistScope.Item],
209
209
  status: SurfaceStatus.Planned,
210
210
  }),
211
+ // S7 Files box ▸ Generate: no sentence is routed and no Assist step runs — the box IS the request (`media-generate.ts`:
212
+ // what may be asked, the prompt, the cost before the button, the refusal before any call). It writes assets, so a
213
+ // press is a Run; placing a made picture is the Files box's own pick, one builder step. Built when the box ships.
211
214
  [AssistSurface.Media]: spec({
212
215
  surface: AssistSurface.Media,
213
216
  families: [EditFamily.Media],