@vectoriox/iox-ui 5.123.0 → 5.125.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.
@@ -7056,6 +7056,21 @@ interface PagePlan {
7056
7056
  /** M8 gate 2: the composed page — when present it is stamped (`composeLayout`) instead of `sections`. */
7057
7057
  readonly layout?: LayoutPage;
7058
7058
  }
7059
+ /**
7060
+ * What a build is made at (award-ingredients-plan AW-D23): read from the studio's plan (`awardSites`), never from the
7061
+ * model. Basic = today's generation exactly (Home + one page composed by the model); Award = the model composes most
7062
+ * pages (AW-D24) and the award-only words are offered (each contract row's `tier`, filtered by `offeredForTier`).
7063
+ */
7064
+ declare enum GenerationTier {
7065
+ Basic = "basic",
7066
+ Award = "award"
7067
+ }
7068
+ /**
7069
+ * The page types never composed on any tier (AW-D24): a page per item shows its item from patterns, a legal page is the
7070
+ * owner's own words. `legal` joins the contract's page types with AW1 — named here so a legal page is never composed
7071
+ * the day it lands.
7072
+ */
7073
+ declare const STAMPED_PAGE_ARCHETYPES: ReadonlySet<string>;
7059
7074
  declare enum GlobalSlot {
7060
7075
  Header = "header",
7061
7076
  Footer = "footer"
@@ -7800,6 +7815,11 @@ interface SitePlanContext {
7800
7815
  /** True: the business sells (the reading's need `products`) — the plan must name what. False: it sells nothing — the
7801
7816
  * plan holds no shop. Absent: the plan is judged as written (a template, a stored plan). */
7802
7817
  readonly sells?: boolean;
7818
+ /** The tier the plan was made at (AW-D23) — how many pages it may compose: Basic (and ABSENT — the safe default) at
7819
+ * most `site.layout.limits.composedPages`; only an explicit Award lifts the count, to every page that is not a page
7820
+ * per item or a stamped type. A plan made on Pro builds after a downgrade because its own generation's stored tier
7821
+ * is passed here, never because a tier is missing. */
7822
+ readonly tier?: `${GenerationTier}`;
7803
7823
  }
7804
7824
  type SitePlanIssue = PathIssue<SitePlanIssueCode>;
7805
7825
  interface SitePlanValidation {
@@ -7812,6 +7832,15 @@ declare class SitePlanError extends Error {
7812
7832
  }
7813
7833
  /** The `:param` names of a route, in order. */
7814
7834
  declare function routeParams(route: string): string[];
7835
+ /** A page per item — a template page, a page bound to the route item, or a route with a param: it shows its item from
7836
+ * patterns and is never composed. Duck-typed: the validator asks it of a page as written. */
7837
+ declare function isPerItemPage(page: {
7838
+ readonly template?: unknown;
7839
+ readonly routeSource?: unknown;
7840
+ readonly route?: unknown;
7841
+ }): boolean;
7842
+ /** How many pages a tier composes at most (Infinity: no count — every page that may be composed). */
7843
+ declare function composedPagesMax(tier: `${GenerationTier}`): number;
7815
7844
  /** The plan's `$siblings.next` source of `routeSource` — what a pattern's `next.*` reads. */
7816
7845
  declare function nextSourceOf(sources: Map<string, {
7817
7846
  type: string;
@@ -7821,7 +7850,7 @@ declare function nextSourceOf(sources: Map<string, {
7821
7850
  /** Check a Site Plan against the plan shape and the pattern library. Never throws, never repairs. */
7822
7851
  declare function validateSitePlan(plan: unknown, ctx?: SitePlanContext): SitePlanValidation;
7823
7852
  /** Throw a `SitePlanError` carrying every issue unless the plan is valid. */
7824
- declare function assertValidSitePlan(plan: unknown): void;
7853
+ declare function assertValidSitePlan(plan: unknown, ctx?: SitePlanContext): void;
7825
7854
  /**
7826
7855
  * A plan's pages against their page types (L0-2): every required slot filled, every section of a family the type takes.
7827
7856
  * NOT part of `validateSitePlan` — a page type is what the model READS to give a page its shape, and the plan stage
@@ -8416,6 +8445,8 @@ interface ComposeContext {
8416
8445
  photoAlt?: (photoId: string) => string;
8417
8446
  /** A photo's shape (the inventory's); a `box:<shape>` id names its own. */
8418
8447
  photoShape?: (photoId: string) => `${LayoutPhotoShape}` | undefined;
8448
+ /** The tier the plan was made at (its generation's stored tier, AW-D23) — absent = Basic: at most two composed pages. */
8449
+ tier?: `${GenerationTier}`;
8419
8450
  }
8420
8451
  /** Where a composed layout's photos are, as the server keeps them and the screens read them (M8 gate 2): id → address. */
8421
8452
  interface LayoutPhotoAddress {
@@ -8424,7 +8455,7 @@ interface LayoutPhotoAddress {
8424
8455
  shape?: string;
8425
8456
  }
8426
8457
  /** The composer's context for a site whose layouts name photos: the year, and each photo's address, words and shape. */
8427
- declare function composeContextOf(year: number, photos?: Readonly<Record<string, LayoutPhotoAddress>>): ComposeContext;
8458
+ declare function composeContextOf(year: number, photos?: Readonly<Record<string, LayoutPhotoAddress>>, tier?: `${GenerationTier}`): ComposeContext;
8428
8459
  interface ComposedPage {
8429
8460
  key: string;
8430
8461
  name: string;
@@ -9327,7 +9358,10 @@ interface AiMeter {
9327
9358
  declare enum AiFeature {
9328
9359
  SiteGeneration = "aiSiteGeneration",
9329
9360
  /** AI Assist on every screen (ai-assist-plan A-D6): its own switch, the plan's shared credits. */
9330
- Assist = "aiAssist"
9361
+ Assist = "aiAssist",
9362
+ /** Award-level generation (award-ingredients-plan AW-D23): Pro and Studio — read into the generation's tier
9363
+ * (`generationTierOf`), never a step's own switch. */
9364
+ AwardSites = "awardSites"
9331
9365
  }
9332
9366
  /** The feature a step belongs to — the gate refuses a step whose feature the plan does not include. */
9333
9367
  declare const AI_STEP_FEATURE: Readonly<Record<AiStep, AiFeature>>;
@@ -9372,6 +9406,56 @@ declare enum AiCallStatus {
9372
9406
  Interrupted = "interrupted"
9373
9407
  }
9374
9408
 
9409
+ /**
9410
+ * The generation tier (award-ingredients-plan §0, AW-D23/AW-D24) — pure. A studio whose plan has `awardSites` builds at
9411
+ * the award tier: the model composes every page that may be composed, not two, and a contract row marked
9412
+ * `tier: 'award'` is offered to it alone. Basic is today's generation exactly. Read once, when a generation starts, and
9413
+ * carried by the generation — never re-read mid-run, never written by the model.
9414
+ */
9415
+ declare const DEFAULT_GENERATION_TIER: GenerationTier;
9416
+ /** The tier a studio's plan features give (the control plane's `features` map; absent or off = Basic). */
9417
+ declare function generationTierOf(features: Readonly<Record<string, boolean | undefined>> | null | undefined): GenerationTier;
9418
+ /** A tier as stored (an older generation holds none) — anything but `award` is Basic. */
9419
+ declare function tierOf(stored: string | null | undefined): GenerationTier;
9420
+ /** A contract row that may be held for a tier (a word, a recipe, a table row) — no `tier` = every tier. */
9421
+ interface TieredRow {
9422
+ readonly tier?: `${GenerationTier}` | null;
9423
+ }
9424
+ /** May a row of `rowTier` be offered to a build at `tier`? */
9425
+ declare function tierOffers(rowTier: `${GenerationTier}` | null | undefined, tier: `${GenerationTier}`): boolean;
9426
+ /**
9427
+ * The rows a build at `tier` is offered — the ONE word filter the plan wire, the layout wire and the checks apply once the
9428
+ * contract's rows carry a `tier` (award-ingredients-plan R-H: a lower plan's site never wears an award-only word).
9429
+ */
9430
+ declare function offeredForTier<T extends TieredRow>(rows: ReadonlyArray<T>, tier: `${GenerationTier}`): T[];
9431
+ /** May this page be composed at the award tier: not a page per item, not a page type that is always stamped (AW-D24). */
9432
+ declare function composablePage(page: Pick<PagePlan, 'route' | 'template' | 'routeSource' | 'archetype'>): boolean;
9433
+ /**
9434
+ * The plan with the pages its tier composes marked `compose: true` — the generation decides, never the model.
9435
+ * Basic (M8-G2-D3): Home is always composed and the model's own mark on one other page is kept, exactly as before.
9436
+ * Award (AW-D24): every composable page is composed (home, about, services, a list's page, contact, a landing page)
9437
+ * and no other — a page per item and a legal page stay stamped whatever the model wrote.
9438
+ */
9439
+ declare function withComposedPages(plan: SitePlan, tier: `${GenerationTier}`): SitePlan;
9440
+ /**
9441
+ * The award tier's start estimate counts this many composed pages — the plan is not written yet when a generation
9442
+ * starts. A typical award site: home, about, services, a list's page, contact and one more. Once the plan is written the
9443
+ * composing step is gated on the pages actually waiting (`composingShare`).
9444
+ */
9445
+ declare const AWARD_COMPOSED_PAGES_ESTIMATED = 6;
9446
+ /** The composed pages a tier's start estimate counts. */
9447
+ declare const AI_COMPOSED_PAGES_BY_TIER: Readonly<Record<GenerationTier, number>>;
9448
+ /** `pages` composed pages as a share of the composing step's typical estimate (which covers `AI_COMPOSED_PAGES_ESTIMATED`). */
9449
+ declare function composedPagesShare(pages: number): number;
9450
+ /** The composing step's share of a generation's start estimate, at a tier (Basic: exactly the whole step, as before). */
9451
+ declare function startComposingShare(tier: `${GenerationTier}`): number;
9452
+ /**
9453
+ * What the composing step must find before it starts, as a share of its typical estimate: Basic is held to the whole
9454
+ * step (as before — at most its two pages); Award counts every page waiting (AW-D24: the estimate follows the actual
9455
+ * composed count). Credits running out mid-run still never fail a build (m8-gate2 §22).
9456
+ */
9457
+ declare function composingShare(waiting: number, tier: `${GenerationTier}`): number;
9458
+
9375
9459
  interface RecipeListBinds<T> {
9376
9460
  picks: T;
9377
9461
  /** What the fields lack (the recipe's `needs`), or null when they fill it. */
@@ -11583,5 +11667,5 @@ declare function adjustStepLabel(axis: AdjustAxis, step: string): string;
11583
11667
  /** Every step id of every axis — the strict format's enum (which axis takes which step is the check's). */
11584
11668
  declare const ADJUST_STEP_IDS: ReadonlyArray<string>;
11585
11669
 
11586
- export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_ESTIMATED, 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, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BUILD_STEPS, BaselineRole, BindScope, BuildNoticeCode, BuildStep, CONTENT_ROLE_MEANINGS, CREDITS_PER_USD, CardBindTarget, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_FOOTER_PATTERN, 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_TOKEN, FilmUnplaced, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, GRAMMAR_TOO_LARGE_MESSAGE, GlobalSlot, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_WORDS, LAYOUT_OPERATED, 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, LIST_CARD_PART, LIST_INGREDIENTS, LIST_LONG_WORDS, LIST_ROLE_WORDS, LIST_TABLE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, MAX_SITE_PICTURES, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, PAGE_ARCHETYPES, 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, 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, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, 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_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, 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, 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, ScrimLevel, SectionFallbackLastResort, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, adjustStepLabel, adjustStepOf, adjustStyleProps, aiRefusalNext, aiStepParts, applyLayoutEdits, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, checkFooter, checkHeader, checkLayout, checkList, chooseScrim, composeContextOf, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFooter, distinctHeader, drawnHeaderMix, driftAt, driftOverlap, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTokenOf, footerTokenWords, footerWireWords, footerWords, frameWords, headerContextOfPlan, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerTokenOf, headerTokenWords, headerWireWords, headerWords, isActiveBuild, isLayoutRule, isNonEmptyString, isPictureWorld, isPlainObject, isRtlLocale, isShopResource, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBinding, layoutListShapes, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, listBuiltWords, listIngredientWords, listMeaning, listNeverIsEmpty, listTokenOf, listTokensOf, listWait, listWords, luminanceOf, measureLayout, mendLayout, menuAtEveryWidth, modelCanDo, moveBarItem, namedFooterMix, namedHeaderMix, navPages, navShapeBreakpoint, navShapeOf, nextSourceOf, nodeBindPaths, orientationOfRatio, ownPhotoFit, pageListIssues, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pinnedPagesOf, pixelsUnder, placeFilm, 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, planWordIssues, pricesIn, publishRefusal, publishVerdict, readyMadeColumn, recipeListBinds, recomposeAsks, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, sectionEntrances, sectionPatternIds, sectionToWire, sectionTokenOf, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteNavPages, siteSells, slotBudget, splitCssValue, splitSide, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, strictSchemaComplexity, strictSchemaRefusal, toneOf, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withDerivedSources, withDistinctFooter, withDistinctHeader, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, writtenTexts };
11587
- export type { AddBarItemResult, AdjustStep, AiBuyCredits, AiEntitlementsView, AiMeter, AiModelEntry, AiRefusal, AiTokenCounts, AiTokenPrice, AreaLuminance, ArtDirection, AuditPage, AuditPlaceholder, BarItemsEditResult, BuildNotice, BuildStepError, BuildStepFacts, BuildStepRecord, CalmReading, CheckLayoutContext, CmsDataSourcePlan, ComposeContext, ComposeIssue, ComposeLayoutOptions, ComposedDataSource, ComposedItem, ComposedLayout, ComposedNavHeader, 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, FingerprintedPage, FooterContext, FooterMix, FooterRepair, FrameRegion, HeaderContext, HeaderGap, HeaderMix, HeaderPage, HeaderRecipe, HeaderRepair, JsonSchema, LayoutBandMove, LayoutColours, LayoutEdit, LayoutFingerprint, LayoutForm, LayoutGallery, LayoutGalleryList, LayoutGap, LayoutGivenAway, LayoutIssue, LayoutLayer, LayoutListBinding, LayoutListMix, LayoutListNever, LayoutListShape, LayoutLook, LayoutMend, LayoutPage, LayoutPhotoAddress, LayoutReadyMade, LayoutRect, LayoutSection, LayoutSite, LayoutTrack, LayoutVoid, LayoutWire, LayoutWireLayer, LayoutWireList, LayoutWireOptions, LayoutWireSection, LayoutWireSlot, LayoutWireTrack, ListIngredient, ListWait, MeasuredLayer, MeasuredLayout, NavHeaderInput, NavHeaderOptions, NavPage, NavShapeOptions, NavShapeResult, NodeBaseline, OwnPhoto, OwnPhotoPlacement, PageArchetype, PageArchetypeId, PageArchetypeSlot, 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, PlanWireParts, PlanWordContext, PlanWordIssue, PreflightRefusal, PublishRefusal, RecipeListBinds, RelativeDataSourcePlan, ScrimChoice, SectionEntrances, SectionFallback, SectionInput, SectionJudge, SectionOptions, SectionSwap, SerializedBinding, SerializedNode, SerializedResponsive, ShapeEntry, ShapeIssueCodes, ShopDataSourcePlan, ShopOptionPlan, ShopPlan, ShopProductPlan, ShowcaseInput, SiteAudit, SiteAuditOptions, SiteAuditSnapshot, SiteBuildRun, SiteBusiness, SiteCheck, SiteFinding, SiteNeedId, SitePageRef, SitePattern, SitePlan, SitePlanContext, SitePlanIssue, SitePlanSource, SitePlanValidation, SiteTemplate, StockCredit, StockItemSlot, StockLink, StockNeed, StockPhoto, StockPhotoTraits, StockPlacement, StockPlanOptions, StockProviderTerms, StockReview, StockSlot, StockTarget, StrictSchemaComplexity, StrictSchemaRefusal, TemplatePlanInput, UndoKept, UndoPreview, UndoRecord, WireOptions, WordsArea, WrittenText };
11670
+ export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, ADJUSTMENTS, ADJUST_AXIS_LABELS, ADJUST_OWN, ADJUST_STEPS, ADJUST_STEP_IDS, AI_COMPOSED_PAGES_BY_TIER, AI_COMPOSED_PAGES_ESTIMATED, 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, AdjustAxis, AdjustKind, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BUILD_STEPS, BaselineRole, BindScope, BuildNoticeCode, BuildStep, CONTENT_ROLE_MEANINGS, CREDITS_PER_USD, CardBindTarget, 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_TOKEN, FilmUnplaced, FooterArrange, FooterClosing, FooterGround, FooterHold, FooterIngredient, FooterMixError, FooterRepairCode, GRAMMAR_TOO_LARGE_MESSAGE, GenerationTier, GlobalSlot, HEADER_TOKEN, HEBREW_PREFIXES, HeaderAction, HeaderArrange, HeaderIngredient, HeaderMixError, HeaderPages, HeaderRepairCode, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_LIST_TOKEN, LAYOUT_MIX_OFFERED, LAYOUT_MIX_WORDS, LAYOUT_OPERATED, 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, LIST_CARD_PART, LIST_INGREDIENTS, LIST_LONG_WORDS, LIST_ROLE_WORDS, LIST_TABLE, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutListArrange, LayoutListArrive, LayoutListHover, LayoutListHow, LayoutListItem, LayoutListMove, LayoutListPhone, LayoutListRole, LayoutListWho, LayoutMendKind, LayoutMixIngredient, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, MAX_SITE_PICTURES, MenuSide, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, PAGE_ARCHETYPES, 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, 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, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, 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_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, 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, 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, ScrimLevel, SectionFallbackLastResort, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, adjustStepLabel, adjustStepOf, adjustStyleProps, aiRefusalNext, aiStepParts, applyLayoutEdits, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, checkFooter, checkHeader, checkLayout, checkList, chooseScrim, composablePage, composeContextOf, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, composedPagesMax, composedPagesShare, composingShare, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeInventoryForPrompt, describeListShape, describePlanData, describeShapeKey, distinctFooter, distinctHeader, drawnHeaderMix, driftAt, driftOverlap, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, factIssues, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, fingerprintOfPlanPage, footerMeaning, footerMix, footerMixFromWords, footerMixOfPlan, footerMixWords, footerPattern, footerPatternIdOf, footerReferences, footerTokenOf, footerTokenWords, footerWireWords, footerWords, frameWords, generationTierOf, headerContextOfPlan, headerMeaning, headerMix, headerMixFromWords, headerMixOfNavKind, headerMixOfPlan, headerMixWords, headerPatternIdOf, headerRecipe, headerReferences, headerTokenOf, headerTokenWords, headerWireWords, headerWords, isActiveBuild, isLayoutRule, isNonEmptyString, isPerItemPage, isPictureWorld, isPlainObject, isRtlLocale, isShopResource, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutListBinding, layoutListShapes, layoutLookChanges, layoutLookOf, layoutMixOffered, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, layoutWirePartWords, listBuiltWords, listIngredientWords, listMeaning, listNeverIsEmpty, listTokenOf, listTokensOf, listWait, listWords, luminanceOf, measureLayout, mendLayout, menuAtEveryWidth, modelCanDo, moveBarItem, namedFooterMix, namedHeaderMix, navPages, navShapeBreakpoint, navShapeOf, nextSourceOf, nodeBindPaths, offeredForTier, orientationOfRatio, ownPhotoFit, pageListIssues, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pinnedPagesOf, pixelsUnder, placeFilm, 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, planWordIssues, pricesIn, publishRefusal, publishVerdict, readyMadeColumn, recipeListBinds, recomposeAsks, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, sectionEntrances, sectionPatternIds, sectionToWire, sectionTokenOf, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopPageOfPlan, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteNavPages, siteSells, slotBudget, splitCssValue, splitSide, startComposingShare, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, strictSchemaComplexity, strictSchemaRefusal, tierOf, tierOffers, toneOf, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withComposedPages, withDerivedSources, withDistinctFooter, withDistinctHeader, wordPattern, wordsOverPhotos, wordsOverPicture, wornHeaderOfPlan, writtenTexts };
11671
+ export type { AddBarItemResult, AdjustStep, AiBuyCredits, AiEntitlementsView, AiMeter, AiModelEntry, AiRefusal, AiTokenCounts, AiTokenPrice, AreaLuminance, ArtDirection, AuditPage, AuditPlaceholder, BarItemsEditResult, BuildNotice, BuildStepError, BuildStepFacts, BuildStepRecord, CalmReading, CheckLayoutContext, CmsDataSourcePlan, ComposeContext, ComposeIssue, ComposeLayoutOptions, ComposedDataSource, ComposedItem, ComposedLayout, ComposedNavHeader, 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, FingerprintedPage, FooterContext, FooterMix, FooterRepair, FrameRegion, HeaderContext, HeaderGap, HeaderMix, HeaderPage, HeaderRecipe, HeaderRepair, JsonSchema, LayoutBandMove, LayoutColours, LayoutEdit, LayoutFingerprint, LayoutForm, LayoutGallery, LayoutGalleryList, LayoutGap, LayoutGivenAway, LayoutIssue, LayoutLayer, LayoutListBinding, LayoutListMix, LayoutListNever, LayoutListShape, LayoutLook, LayoutMend, LayoutPage, LayoutPhotoAddress, LayoutReadyMade, LayoutRect, LayoutSection, LayoutSite, LayoutTrack, LayoutVoid, LayoutWire, LayoutWireLayer, LayoutWireList, LayoutWireOptions, LayoutWireSection, LayoutWireSlot, LayoutWireTrack, ListIngredient, ListWait, MeasuredLayer, MeasuredLayout, NavHeaderInput, NavHeaderOptions, NavPage, NavShapeOptions, NavShapeResult, NodeBaseline, OwnPhoto, OwnPhotoPlacement, PageArchetype, PageArchetypeId, PageArchetypeSlot, 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, PlanWireParts, PlanWordContext, PlanWordIssue, PreflightRefusal, PublishRefusal, RecipeListBinds, RelativeDataSourcePlan, ScrimChoice, SectionEntrances, SectionFallback, SectionInput, SectionJudge, SectionOptions, SectionSwap, SerializedBinding, SerializedNode, SerializedResponsive, ShapeEntry, ShapeIssueCodes, ShopDataSourcePlan, ShopOptionPlan, ShopPlan, ShopProductPlan, ShowcaseInput, SiteAudit, SiteAuditOptions, SiteAuditSnapshot, SiteBuildRun, SiteBusiness, SiteCheck, SiteFinding, SiteNeedId, SitePageRef, SitePattern, SitePlan, SitePlanContext, SitePlanIssue, SitePlanSource, SitePlanValidation, SiteTemplate, 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.123.0",
3
+ "version": "5.125.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -1,8 +1,9 @@
1
1
  import { AROUND_TEXT_CHARS, MEMORY_TURNS } from './budget';
2
2
  import { AssistIssue, AssistIssueCode, Brief, HandleMap } from './brief';
3
- import type { SerializedNode } from '@vectoriox/iox-ui/generation-core';
3
+ import type { KeptReason, SerializedNode } from '@vectoriox/iox-ui/generation-core';
4
4
 
5
5
  import { FieldChange } from './field-edits';
6
+ import { AssistPhoto, MAX_ASSIST_PHOTOS, PhotoDraft, PhotoGrouping } from './photo-drafts';
6
7
  import { FieldEdit } from './fields-schema';
7
8
  import { SectionChange, SectionEdit } from './page-sections';
8
9
  import { PageChangeOp, SchemeEdit, SizeEdit, StyleChange, StyleEdit } from './page-style';
@@ -64,6 +65,10 @@ export interface AssistTurnRequest {
64
65
  readonly scope?: AssistScope;
65
66
  /** A builder surface: the page as the owner names it. */
66
67
  readonly page?: { readonly name: string; readonly route: string };
68
+ /** S3: the photos the owner uploaded through `AssistRouteKey.Photos` (1–20), in the order given. */
69
+ readonly photos?: ReadonlyArray<AssistPhoto>;
70
+ /** S3: one item per photo, or one item for all. */
71
+ readonly grouping?: PhotoGrouping;
67
72
  }
68
73
 
69
74
  /** What a turn proposes, per family: a field's value (`fields`), a part's words (`words`), an element's style or a section's scheme (`style`). */
@@ -124,12 +129,79 @@ export interface AssistTurn {
124
129
  readonly credits?: number;
125
130
  /** ISO time. */
126
131
  readonly createdAt: string;
132
+ /** S3: the type the drafts are of. */
133
+ readonly contentType?: string;
134
+ /** S3: the photos' groups read so far, of how many — "Reading photo 4 of 6". */
135
+ readonly progress?: AssistTurnProgress;
136
+ /** S3: one draft per group, as read — nothing written until the owner runs them. */
137
+ readonly drafts?: ReadonlyArray<PhotoDraft>;
138
+ /** A Run surface: what "Create N drafts" wrote, and its Undo. */
139
+ readonly run?: AssistRunView;
140
+ }
141
+
142
+ export interface AssistTurnProgress {
143
+ readonly done: number;
144
+ readonly of: number;
145
+ }
146
+
147
+ /** A Run's life (plan §3e `Run`): written by the runner (resumable), undone by it. */
148
+ export enum AssistRunStatus {
149
+ Writing = 'writing',
150
+ Written = 'written',
151
+ Undoing = 'undoing',
152
+ Undone = 'undone',
153
+ Failed = 'failed',
154
+ }
155
+
156
+ const RUN_BUSY: ReadonlySet<AssistRunStatus> = new Set([AssistRunStatus.Writing, AssistRunStatus.Undoing]);
157
+ export const isRunBusy = (status: AssistRunStatus | undefined): boolean => !!status && RUN_BUSY.has(status);
158
+
159
+ /** `POST …/turns/:turnId/run` — which drafts to create (group handles) and the owner's values for every draft ("City for all"). */
160
+ export interface AssistRunRequest {
161
+ readonly picks: ReadonlyArray<string>;
162
+ readonly fill?: Readonly<Record<string, string>>;
163
+ }
164
+
165
+ /** A draft Undo kept, and why — said to the owner (`edited` or `published`: generation-core's `KeptReason`, one vocabulary with a site build's Undo). */
166
+ export interface KeptDraft {
167
+ readonly id: string;
168
+ readonly label: string;
169
+ readonly reason: KeptReason;
170
+ }
171
+
172
+ export interface AssistRunView {
173
+ readonly status: AssistRunStatus;
174
+ /** Items written (ids, in pick order). */
175
+ readonly items: ReadonlyArray<string>;
176
+ /** Undo: how many drafts it removed, the ones it kept, how many uploads went with them. */
177
+ readonly removed?: number;
178
+ readonly kept?: ReadonlyArray<KeptDraft>;
179
+ readonly photosRemoved?: number;
180
+ readonly error?: string;
181
+ }
182
+
183
+ /** What the server refuses in a run request against the turn's drafts: none, unknown or repeated picks. */
184
+ export function validateRunRequest(req: unknown, drafts: ReadonlyArray<PhotoDraft>): AssistIssue[] {
185
+ const issue = (code: AssistIssueCode, message: string, handle?: string): AssistIssue => ({ code, message, ...(handle ? { handle } : {}) });
186
+ if (!isObject(req)) return [issue(AssistIssueCode.BadRequest, 'a run is an object')];
187
+ const picks = req['picks'];
188
+ if (!Array.isArray(picks) || !picks.length || !picks.every(nonEmpty)) return [issue(AssistIssueCode.BadRequest, 'picks name at least one draft')];
189
+ const known = new Set(drafts.map(d => d.group));
190
+ return [
191
+ ...picks.filter(p => !known.has(p)).map(p => issue(AssistIssueCode.UnknownHandle, `"${p}" is not a draft of this turn`, p)),
192
+ ...(new Set(picks).size !== picks.length ? [issue(AssistIssueCode.Duplicate, 'a draft is picked twice')] : []),
193
+ ...(req['fill'] !== undefined && !isObject(req['fill']) ? [issue(AssistIssueCode.BadRequest, 'fill is an object of field → text')] : []),
194
+ ];
127
195
  }
128
196
 
129
197
  export enum AssistRouteKey {
130
198
  Turns = 'turns',
131
199
  Turn = 'turn',
132
200
  Session = 'session',
201
+ /** S3: one photo up, through the normal upload path, marked as this flow's (Undo may remove it). */
202
+ Photos = 'photos',
203
+ Run = 'run',
204
+ Undo = 'undo',
133
205
  }
134
206
 
135
207
  /** The path templates, `:param` filled by `assistPath` — neither side hand-types a URL. */
@@ -137,6 +209,9 @@ export const ASSIST_ROUTES: Readonly<Record<AssistRouteKey, string>> = {
137
209
  [AssistRouteKey.Turns]: 'admin/api/org/:orgId/ai/assist/turns',
138
210
  [AssistRouteKey.Turn]: 'admin/api/org/:orgId/ai/assist/turns/:turnId',
139
211
  [AssistRouteKey.Session]: 'admin/api/org/:orgId/ai/assist/sessions/:sessionKey',
212
+ [AssistRouteKey.Photos]: 'admin/api/org/:orgId/ai/assist/photos',
213
+ [AssistRouteKey.Run]: 'admin/api/org/:orgId/ai/assist/turns/:turnId/run',
214
+ [AssistRouteKey.Undo]: 'admin/api/org/:orgId/ai/assist/turns/:turnId/undo',
140
215
  };
141
216
 
142
217
  export class AssistPathError extends Error {}
@@ -195,6 +270,7 @@ function outcome(turn: AssistTurn): string {
195
270
  case AssistTurnStatus.Refused: return `refused: ${turn.refusal?.message ?? ''}`.trim();
196
271
  case AssistTurnStatus.Failed: return 'failed';
197
272
  case AssistTurnStatus.Done: {
273
+ if (turn.drafts?.length) return `drafted ${turn.drafts.length} item(s)${turn.contentType ? ` of ${turn.contentType}` : ''} from photos`;
198
274
  const changed = named(turn.changes);
199
275
  const kept = named(turn.kept);
200
276
  const head = changed ? `changed ${changed}` : `no change${turn.reply ? `: ${turn.reply}` : ''}`;
@@ -241,6 +317,20 @@ const isOwnerEdited = (v: unknown): boolean => v === undefined || (Array.isArray
241
317
  export const isSessionOf = (key: unknown, surface: AssistSurface): boolean =>
242
318
  nonEmpty(key) && (key === surface || key.startsWith(`${surface}${SESSION_SEPARATOR}`));
243
319
 
320
+ const GROUPINGS: ReadonlySet<string> = new Set(Object.values(PhotoGrouping));
321
+
322
+ /** S3's photos: 1–20, each a storage key, none twice; a grouping. */
323
+ function photoIssues(photos: unknown, grouping: unknown): AssistIssue[] {
324
+ const issue = (message: string): AssistIssue => ({ code: AssistIssueCode.BadPhotos, message });
325
+ const out: AssistIssue[] = [];
326
+ if (!Array.isArray(photos) || !photos.length) out.push(issue('a photos turn names its photos'));
327
+ else if (photos.length > MAX_ASSIST_PHOTOS) out.push(issue(`at most ${MAX_ASSIST_PHOTOS} photos a turn`));
328
+ else if (!photos.every(p => isObject(p) && nonEmpty(p['key']))) out.push(issue('each photo is its storage key'));
329
+ else if (new Set(photos.map(p => (p as Record<string, unknown>)['key'])).size !== photos.length) out.push(issue('a photo is named twice'));
330
+ if (!GROUPINGS.has(String(grouping))) out.push({ code: AssistIssueCode.BadRequest, message: `the grouping is one of ${[...GROUPINGS].join(', ')}` });
331
+ return out;
332
+ }
333
+
244
334
  /** What the server refuses in a posted turn before anything runs. Empty = accepted. */
245
335
  export function validateTurnRequest(req: unknown): AssistIssue[] {
246
336
  const issue = (code: AssistIssueCode, message: string): AssistIssue => ({ code, message });
@@ -250,10 +340,13 @@ export function validateTurnRequest(req: unknown): AssistIssue[] {
250
340
  if (!spec) return [issue(AssistIssueCode.UnknownSurface, `"${String(surface)}" is not a surface`)];
251
341
  const sentence = req['sentence'];
252
342
  const brief = req['brief'];
343
+ // A surface its screen routes takes the owner's notes, which may be empty — but are still a text.
344
+ const sentenceMissing = spec.routed ? !nonEmpty(sentence) : typeof sentence !== 'string';
253
345
  return [
254
346
  ...(spec.status !== SurfaceStatus.Built ? [issue(AssistIssueCode.SurfaceNotBuilt, `${surface} is not built yet`)] : []),
255
347
  ...(!isSessionOf(req['sessionKey'], surface) ? [issue(AssistIssueCode.BadRequest, `the session key is not a ${surface} session`)] : []),
256
- ...(!nonEmpty(sentence) ? [issue(AssistIssueCode.EmptySentence, 'the sentence is empty')] : []),
348
+ ...(sentenceMissing ? [issue(AssistIssueCode.EmptySentence, 'the sentence is empty')] : []),
349
+ ...(spec.readsPhotos && spec.commit === CommitKind.Run ? photoIssues(req['photos'], req['grouping']) : []),
257
350
  ...(nonEmpty(sentence) && sentence.length > MAX_SENTENCE_CHARS ? [issue(AssistIssueCode.SentenceTooLong, `the sentence is over ${MAX_SENTENCE_CHARS} characters`)] : []),
258
351
  ...(!nonEmpty(req['model']) ? [issue(AssistIssueCode.BadRequest, 'no model choice (auto or a model id)')] : []),
259
352
  ...(!isObject(brief) || brief['surface'] !== surface ? [issue(AssistIssueCode.BadRequest, `the brief is not a ${surface} brief`)] : []),
@@ -67,6 +67,10 @@ export enum AssistIssueCode {
67
67
  AvoidWord = 'avoidWord',
68
68
  /** A look whose colours fail the contrast audit in a mode the site is worn in (family `look`, R4). */
69
69
  Contrast = 'contrast',
70
+ /** S3: a value said to come from the owner's notes when the owner gave none. */
71
+ NotFromOwner = 'notFromOwner',
72
+ /** S3: the photos a turn names are not this flow's uploads, or too many / none. */
73
+ BadPhotos = 'badPhotos',
70
74
  }
71
75
 
72
76
  export interface AssistIssue {
@@ -34,6 +34,18 @@ export interface FieldsSchemaOptions {
34
34
  readonly locale: string;
35
35
  /** Only these fields (keys or handles) — the focus. Default: every writable field. */
36
36
  readonly fields?: ReadonlyArray<string>;
37
+ /** More keys a part's answer carries beside `fields` and `note` (S3: what came from the owner, the alt texts). */
38
+ readonly extra?: FieldsSchemaExtra;
39
+ }
40
+
41
+ /**
42
+ * A surface's own keys on every part — counted against the part's budget, so a type is split with room for them. `keys`
43
+ * names the most a part carries (the split reserves that many); `build` gives a part's own (it may give fewer, e.g. only
44
+ * the first part asks for the photos' alt texts). Every built key is required, as every key is.
45
+ */
46
+ export interface FieldsSchemaExtra {
47
+ readonly keys: ReadonlyArray<string>;
48
+ readonly build: (handles: ReadonlyArray<string>, part: number) => Readonly<Record<string, JsonSchema>>;
37
49
  }
38
50
 
39
51
  export interface FieldsSchemas {
@@ -83,18 +95,22 @@ function split<T>(list: ReadonlyArray<T>, max: number): T[][] {
83
95
  return Array.from({ length: count }, (_, i) => list.slice(i * size, (i + 1) * size));
84
96
  }
85
97
 
86
- function partSchema(fields: ReadonlyArray<AssistField>, locale: string, part: number, of: number): JsonSchema {
98
+ function partSchema(fields: ReadonlyArray<AssistField>, locale: string, part: number, of: number, extra?: FieldsSchemaExtra): JsonSchema {
87
99
  const properties = Object.fromEntries(fields.map(f => [f.handle, fieldSchema(f, locale)]));
88
100
  const which = of > 1 ? ` (part ${part + 1} of ${of})` : '';
89
- return jsonClosedObject({
101
+ const own = extra?.build(fields.map(f => f.handle), part) ?? {};
102
+ const answer: Record<string, JsonSchema> = {
90
103
  [FieldsAnswerKey.Fields]: jsonClosedObject(properties, fields.map(f => f.handle), `Per field${which}: its new value, or its leave value.`),
104
+ ...own,
91
105
  [FieldsAnswerKey.Note]: { ...jsonText(), description: 'One short line for the owner on what changed, or what needs them.' },
92
- }, Object.values(FieldsAnswerKey));
106
+ };
107
+ return jsonClosedObject(answer, Object.keys(answer));
93
108
  }
94
109
 
95
110
  export function fieldsJsonSchema(schema: ContentTypeSchema, options: FieldsSchemaOptions): FieldsSchemas {
96
- const groups = split(chosen(assistFields(schema), options.fields), FIELDS_PER_PART);
97
- const parts = groups.map((g, i) => partSchema(g, options.locale, i, groups.length));
111
+ const perPart = FIELDS_PER_PART - (options.extra?.keys.length ?? 0);
112
+ const groups = split(chosen(assistFields(schema), options.fields), perPart);
113
+ const parts = groups.map((g, i) => partSchema(g, options.locale, i, groups.length, options.extra));
98
114
  parts.forEach((p, i) => assertAssistBudget(`fields ${schema.name} part ${i + 1}`, [p]));
99
115
  return { parts, handles: groups.map(g => g.map(f => f.handle)) };
100
116
  }