@vectoriox/iox-ui 5.98.0 → 5.100.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.
Files changed (43) hide show
  1. package/actions-core/index.d.ts +7 -4
  2. package/composite-core/index.d.ts +222 -2
  3. package/design-core/index.d.ts +334 -1
  4. package/fesm2022/vectoriox-iox-ui-actions-core.mjs +16 -7
  5. package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
  6. package/fesm2022/vectoriox-iox-ui-composite-core.mjs +948 -256
  7. package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
  8. package/fesm2022/vectoriox-iox-ui-design-core.mjs +416 -1
  9. package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
  10. package/fesm2022/vectoriox-iox-ui-forms-core.mjs +3 -24
  11. package/fesm2022/vectoriox-iox-ui-forms-core.mjs.map +1 -1
  12. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +23 -13
  13. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  14. package/fesm2022/vectoriox-iox-ui-identity-core.mjs +633 -0
  15. package/fesm2022/vectoriox-iox-ui-identity-core.mjs.map +1 -0
  16. package/fesm2022/vectoriox-iox-ui.mjs +2 -59
  17. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  18. package/forms-core/index.d.ts +2 -23
  19. package/generation-core/index.d.ts +3 -1
  20. package/identity-core/index.d.ts +426 -0
  21. package/identity-core/package.json +3 -0
  22. package/index.d.ts +0 -1
  23. package/package.json +5 -1
  24. package/src/actions-core/action.model.ts +1 -1
  25. package/src/actions-core/element-actions.ts +16 -6
  26. package/src/composite-core/account-runtime.ts +428 -0
  27. package/src/composite-core/account.ts +281 -0
  28. package/src/composite-core/public-api.ts +2 -0
  29. package/src/composite-core/recipe-parts.ts +48 -0
  30. package/src/composite-core/shop.ts +6 -26
  31. package/src/design-core/field-classes.ts +65 -0
  32. package/src/design-core/flavor-spec.generated.ts +346 -0
  33. package/src/design-core/public-api.ts +1 -0
  34. package/src/forms-core/field-markup.ts +2 -22
  35. package/src/generation-core/compose-site.ts +19 -9
  36. package/src/generation-core/nav-shape.ts +4 -4
  37. package/src/identity-core/guards.ts +87 -0
  38. package/src/identity-core/public-api.ts +14 -0
  39. package/src/identity-core/sign-in.ts +223 -0
  40. package/src/identity-core/site-auth-transport.ts +134 -0
  41. package/src/identity-core/site-auth.ts +182 -0
  42. package/src/identity-core/words.ts +194 -0
  43. package/styles/iox-design.css +38 -0
@@ -1,4 +1,5 @@
1
1
  export { FORM_SUBMIT_ACTION_DESCRIPTORS as ACTION_DESCRIPTORS, ActionDescriptor, addableActions } from '@vectoriox/iox-ui/actions-core';
2
+ export { FIELD_INVALID_CLASS, FieldClass, writeFieldError } from '@vectoriox/iox-ui/design-core';
2
3
 
3
4
  /** What the visitor actually types into. Chosen by a trait; it also implies a validation rule. */
4
5
  declare enum ControlType {
@@ -861,28 +862,6 @@ declare function datePickerWords(lang: string | null | undefined): DatePickerWor
861
862
  * Framework-free, like the rest of forms-core: `escape` is the caller's.
862
863
  */
863
864
 
864
- /** The classes the markup carries — the runtimes and the shared CSS key on these, never on a literal. */
865
- declare enum FieldClass {
866
- Root = "iox-field",
867
- Label = "iox-field__label",
868
- LabelHidden = "iox-field__label--hidden",
869
- Required = "iox-field__required",
870
- Control = "iox-field__control",
871
- Help = "iox-field__help",
872
- Error = "iox-field__error",
873
- Group = "iox-field__group",
874
- Option = "iox-field__option",
875
- Choices = "iox-field__choices",
876
- ChoicesChips = "iox-field__choices--chips",
877
- ChoicesList = "iox-field__choices--list",
878
- Chips = "iox-field__chips",
879
- Chip = "iox-field__chip",
880
- ChipInput = "iox-field__control--chip",
881
- DateButton = "iox-field__control--date",
882
- DateValue = "iox-field__date-value",
883
- DateIcon = "iox-field__date-icon",
884
- DateInput = "iox-field__date-input"
885
- }
886
865
  /** On the date button: the raw Earliest / Latest (`'0'`, an ISO day), resolved by the visitor's own today. */
887
866
  declare const DATE_MIN_ATTRIBUTE = "data-iox-date-min";
888
867
  declare const DATE_MAX_ATTRIBUTE = "data-iox-date-max";
@@ -910,5 +889,5 @@ interface FieldMarkupOptions {
910
889
  /** A Field's whole element, as the string renderer writes it. */
911
890
  declare function fieldHtml(props: Record<string, any> | null | undefined, options: FieldMarkupOptions): string;
912
891
 
913
- export { CALENDAR_ROWS, CHANNEL_KINDS, CHOICE_MESSAGE_KEYS, CalendarKey, ChannelKind, ChoiceAppearance, ControlType, DATE_EMPTY_ATTRIBUTE, DATE_ICON_SVG, DATE_MAX_ATTRIBUTE, DATE_MESSAGE_KEYS, DATE_MIN_ATTRIBUTE, DATE_PICKER_WORDS, DEFAULT_EN_MESSAGES, FIELD_GROUP_NODE_TYPE, FIELD_NODE_TYPE, FORM_ACTIONS_ROLE, FORM_AFTER_SEND_ATTRIBUTE, FORM_AFTER_SEND_TRAIT, FORM_ANNOUNCER_ATTRIBUTE, FORM_CHANNEL_ROLE, FORM_CONTENT_TYPES, FORM_ERROR_KEYS, FORM_FIELDS_ATTRIBUTE, FORM_HONEYPOT_CLASS, FORM_NODE_TYPE, FORM_PRESETS, FORM_STATE_ATTRIBUTE, FeedbackTiming, FieldClass, FormAfterSend, FormPresetId, FormRenderState, HONEYPOT_FIELD, IMPLIED_PATTERN, INITIAL_FORM_STATE, INTERACTIVE_HOST_TAGS, InteractiveTag, MESSAGE_NAMESPACE, OPTION_CONTROLS, PATTERN_MESSAGE_KEYS, PATTERN_PRESETS, PATTERN_PRESET_OPTIONS, PatternPreset, RENDERED_AT_FIELD, RULE_DESCRIPTORS, RULE_MESSAGE_KEYS, RuleName, RuleParamKind, STORE_ACTION, SUBMIT_BUTTON_NODE_TYPE, SUBMIT_CHECK_SVG, SUBMIT_KEEP_ENABLED_ATTRIBUTE, SUBMIT_MESSAGE_KEYS, SubmitLabelClass, addDaysIso, addMonthsIso, addableRules, applyServerErrors, baseFieldName, calendarKeyTarget, calendarMonth, channelHref, channelOpensNewTab, choiceAppearanceOf, clampIso, clientFormSpec, collectFieldNodes, collectFormSpec, dateBoundRules, dateOfIso, datePickerWords, deriveFieldName, failureAnnouncement, fieldDateRange, fieldHtml, fieldOptionsOf, fieldSpecOf, findFormContentInHosts, firstInvalidField, formAfterSend, formChromeHtml, formContentInHost, formFieldNameMap, formFieldNames, formPresetById, formatDateInWords, inputTypeOf, interpretSubmitResponse, isChannelFilled, isDateBoundParams, isDateField, isFormContent, isInteractiveHost, isIsoDate, isMultiValueField, isoOfDate, normaliseAnswers, onFieldBlur, onFieldChange, onSubmitAttempt, parseChannelHref, parseClientFormSpec, parseDateBound, parseFieldOptions, planFormPresetIds, resetFormState, resolveDateBound, rulesFor, sentWord, shouldShowError, submitButtonLabelsHtml, submitButtonView, submitEndpointPath, submitOutcome, todayIso, uniqueFieldName, uniqueFieldNames, validateField, validateForm, weekStartFor, withAntiSpamFields };
892
+ export { CALENDAR_ROWS, CHANNEL_KINDS, CHOICE_MESSAGE_KEYS, CalendarKey, ChannelKind, ChoiceAppearance, ControlType, DATE_EMPTY_ATTRIBUTE, DATE_ICON_SVG, DATE_MAX_ATTRIBUTE, DATE_MESSAGE_KEYS, DATE_MIN_ATTRIBUTE, DATE_PICKER_WORDS, DEFAULT_EN_MESSAGES, FIELD_GROUP_NODE_TYPE, FIELD_NODE_TYPE, FORM_ACTIONS_ROLE, FORM_AFTER_SEND_ATTRIBUTE, FORM_AFTER_SEND_TRAIT, FORM_ANNOUNCER_ATTRIBUTE, FORM_CHANNEL_ROLE, FORM_CONTENT_TYPES, FORM_ERROR_KEYS, FORM_FIELDS_ATTRIBUTE, FORM_HONEYPOT_CLASS, FORM_NODE_TYPE, FORM_PRESETS, FORM_STATE_ATTRIBUTE, FeedbackTiming, FormAfterSend, FormPresetId, FormRenderState, HONEYPOT_FIELD, IMPLIED_PATTERN, INITIAL_FORM_STATE, INTERACTIVE_HOST_TAGS, InteractiveTag, MESSAGE_NAMESPACE, OPTION_CONTROLS, PATTERN_MESSAGE_KEYS, PATTERN_PRESETS, PATTERN_PRESET_OPTIONS, PatternPreset, RENDERED_AT_FIELD, RULE_DESCRIPTORS, RULE_MESSAGE_KEYS, RuleName, RuleParamKind, STORE_ACTION, SUBMIT_BUTTON_NODE_TYPE, SUBMIT_CHECK_SVG, SUBMIT_KEEP_ENABLED_ATTRIBUTE, SUBMIT_MESSAGE_KEYS, SubmitLabelClass, addDaysIso, addMonthsIso, addableRules, applyServerErrors, baseFieldName, calendarKeyTarget, calendarMonth, channelHref, channelOpensNewTab, choiceAppearanceOf, clampIso, clientFormSpec, collectFieldNodes, collectFormSpec, dateBoundRules, dateOfIso, datePickerWords, deriveFieldName, failureAnnouncement, fieldDateRange, fieldHtml, fieldOptionsOf, fieldSpecOf, findFormContentInHosts, firstInvalidField, formAfterSend, formChromeHtml, formContentInHost, formFieldNameMap, formFieldNames, formPresetById, formatDateInWords, inputTypeOf, interpretSubmitResponse, isChannelFilled, isDateBoundParams, isDateField, isFormContent, isInteractiveHost, isIsoDate, isMultiValueField, isoOfDate, normaliseAnswers, onFieldBlur, onFieldChange, onSubmitAttempt, parseChannelHref, parseClientFormSpec, parseDateBound, parseFieldOptions, planFormPresetIds, resetFormState, resolveDateBound, rulesFor, sentWord, shouldShowError, submitButtonLabelsHtml, submitButtonView, submitEndpointPath, submitOutcome, todayIso, uniqueFieldName, uniqueFieldNames, validateField, validateForm, weekStartFor, withAntiSpamFields };
914
893
  export type { CalendarDay, CalendarMonth, CalendarOptions, ClientFormSpec, DateBoundParams, DatePickerWords, FieldError, FieldMarkupOptions, FieldOption, FieldOptionSource, FieldResult, FieldSpec, FormNodeLike, FormPresetChannel, FormPresetDef, FormPresetField, FormResult, FormRuntimeState, FormSpec, FormTransport, MisplacedFormContent, NestingNode, RuleDescriptor, SubmitAction, SubmitButtonView, SubmitLabels, SubmitOutcome, SubmitRequest, SubmitResponse, ValidateOptions, ValidationRule };
@@ -7301,6 +7301,8 @@ declare function composePresetForm(id: string, presetId: string, owner: string):
7301
7301
  /** The ids the composer gives them (the header's bag; the drawer, a global after the page). */
7302
7302
  declare const SHOP_CART_BUTTON_ID = "header-cart";
7303
7303
  declare const SHOP_CART_DRAWER_ID = "cart";
7304
+ declare const ACCOUNT_ENTRY_ID = "header-account";
7305
+ declare const SIGN_IN_DIALOG_ID = "sign-in";
7304
7306
  /**
7305
7307
  * Compose a Site Plan. Throws `SitePlanError` (every issue) when the plan does not validate — the
7306
7308
  * composer never repairs a plan. `context` carries what the composer may not read for itself (the year).
@@ -10072,5 +10074,5 @@ declare function applyLayoutEdits(page: LayoutPage, edits: ReadonlyArray<LayoutE
10072
10074
  /** The strict format a repair is asked in: `{ edits: [{ op, path, value }] }`, every key required. */
10073
10075
  declare function layoutRepairJsonSchema(): JsonSchema;
10074
10076
 
10075
- export { ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, 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_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, FilmUnplaced, GRAMMAR_TOO_LARGE_MESSAGE, GlobalSlot, HEBREW_PREFIXES, 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_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, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutMendKind, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, MAX_SITE_PICTURES, 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, 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, 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_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, 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, 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, checkLayout, chooseScrim, composeContextOf, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeInventoryForPrompt, describePlanData, describeShapeKey, driftAt, driftOverlap, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, frameWords, 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, layoutLookChanges, layoutLookOf, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, luminanceOf, measureLayout, mendLayout, modelCanDo, moveBarItem, navPages, navShapeBreakpoint, navShapeOf, nextSourceOf, nodeBindPaths, orientationOfRatio, ownPhotoFit, 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, pixelsUnder, placeFilm, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, 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, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteNavPages, slotBudget, 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, wordPattern, wordsOverPhotos, wordsOverPicture, writtenTexts };
10077
+ export { ACCOUNT_ENTRY_ID, ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, 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_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, FilmUnplaced, GRAMMAR_TOO_LARGE_MESSAGE, GlobalSlot, HEBREW_PREFIXES, 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_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, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutMendKind, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, MAX_SITE_PICTURES, 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, 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_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, 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, 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, checkLayout, chooseScrim, composeContextOf, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeInventoryForPrompt, describePlanData, describeShapeKey, driftAt, driftOverlap, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, frameWords, 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, layoutLookChanges, layoutLookOf, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, luminanceOf, measureLayout, mendLayout, modelCanDo, moveBarItem, navPages, navShapeBreakpoint, navShapeOf, nextSourceOf, nodeBindPaths, orientationOfRatio, ownPhotoFit, 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, pixelsUnder, placeFilm, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, 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, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteNavPages, slotBudget, 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, wordPattern, wordsOverPhotos, wordsOverPicture, writtenTexts };
10076
10078
  export type { AddBarItemResult, 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, FrameRegion, JsonSchema, LayoutBandMove, LayoutColours, LayoutEdit, LayoutFingerprint, LayoutForm, LayoutGallery, LayoutGalleryList, LayoutGap, LayoutGivenAway, LayoutIssue, LayoutLayer, LayoutLook, LayoutMend, LayoutPage, LayoutPhotoAddress, LayoutReadyMade, LayoutRect, LayoutSection, LayoutSite, LayoutTrack, LayoutVoid, LayoutWire, LayoutWireLayer, LayoutWireSection, LayoutWireSlot, LayoutWireTrack, 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, 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 };
@@ -0,0 +1,426 @@
1
+ /**
2
+ * Who signs in, with what, and the broker's two faces (commerce plan §3c "The broker, step by step", C-D6, C-D22).
3
+ * The broker (iox-control-plane, `auth.iox.studio`) and the studios (iox-cms) speak THESE shapes; a provider is one
4
+ * adapter on the broker and one `customerIdentities.provider` value in a studio. Email codes never touch the broker.
5
+ */
6
+ /** Who the sign-in is for. */
7
+ declare enum SignInPurpose {
8
+ /** A buyer on a studio's site. */
9
+ Site = "site",
10
+ /** A studio's team member — existing users only (wave 2). */
11
+ Admin = "admin",
12
+ /** portal.iox.studio. */
13
+ Portal = "portal"
14
+ }
15
+ /** A provider the broker runs. Google is live; the rest join one adapter at a time (board 18). */
16
+ declare enum SignInProvider {
17
+ Google = "google",
18
+ Meta = "meta",
19
+ GitHub = "github",
20
+ LinkedIn = "linkedin"
21
+ }
22
+ /** How a provider answers (board 18): OpenID Connect gives a SIGNED ID token; OAuth 2 needs a profile call. */
23
+ declare enum SignInProtocol {
24
+ Oidc = "oidc",
25
+ OAuth2 = "oauth2"
26
+ }
27
+ interface SignInProviderSpec {
28
+ readonly protocol: SignInProtocol;
29
+ /** The answer is signed, so a studio can check it itself — the only kind an admin may sign in with (C-D6). */
30
+ readonly signedAnswer: boolean;
31
+ /** Running on the broker today. */
32
+ readonly live: boolean;
33
+ }
34
+ declare const SIGN_IN_PROVIDER_SPECS: Readonly<Record<SignInProvider, SignInProviderSpec>>;
35
+ declare function isSignInProvider(value: unknown): value is SignInProvider;
36
+ declare function isSignInPurpose(value: unknown): value is SignInPurpose;
37
+ /** May `provider` serve `purpose`? Buyers and the portal take any provider; a team member only a signed answer (C-D6). */
38
+ declare function providerServes(provider: SignInProvider, purpose: SignInPurpose): boolean;
39
+ /** The broker's public host (its own ingress; ops.iox.studio is unchanged). */
40
+ declare const BROKER_HOST = "auth.iox.studio";
41
+ declare const BROKER_ORIGIN = "https://auth.iox.studio";
42
+ /** A ticket lives 60 s and is used once; so does a hand-off code. */
43
+ declare const SIGN_IN_TICKET_TTL_SECONDS = 60;
44
+ declare const SIGN_IN_HANDOFF_TTL_SECONDS = 60;
45
+ /** The server-to-server routes on the control plane's API host (bearer: the studio's INSTANCE_TOKEN). */
46
+ declare enum BrokerApiRoute {
47
+ Tickets = "instances/me/sign-in/tickets",
48
+ Redeem = "instances/me/sign-in/redeem"
49
+ }
50
+ /** The browser's routes on `auth.iox.studio`, one pair per provider. */
51
+ declare enum BrokerBrowserRoute {
52
+ Start = "start",
53
+ Callback = "callback"
54
+ }
55
+ /** `/<route>` on the control plane's API host, root-relative. */
56
+ declare function brokerApiPath(route: BrokerApiRoute): string;
57
+ /** `https://auth.iox.studio/<provider>/<route>`. */
58
+ declare function brokerBrowserUrl(provider: SignInProvider, route: BrokerBrowserRoute, origin?: string): string;
59
+ /** Where the browser goes to begin: `https://auth.iox.studio/<provider>/start?ticket=<ticket>`. */
60
+ declare function brokerStartUrl(provider: SignInProvider, ticket: string, origin?: string): string;
61
+ /** The ONE address registered with each provider: `https://auth.iox.studio/<provider>/callback`. */
62
+ declare function brokerCallbackUrl(provider: SignInProvider, origin?: string): string;
63
+ declare const BROKER_TICKET_PARAM = "ticket";
64
+ /** `POST instances/me/sign-in/tickets` — body. */
65
+ interface SignInTicketRequest {
66
+ provider: SignInProvider;
67
+ purpose: SignInPurpose;
68
+ /** Where the broker sends the browser back; its host must be one of the asking tenant's. */
69
+ returnUrl: string;
70
+ }
71
+ /** 201 — `expiresAt` is an ISO date. */
72
+ interface SignInTicketAnswer {
73
+ ticket: string;
74
+ startUrl: string;
75
+ expiresAt: string;
76
+ }
77
+ /** `POST instances/me/sign-in/redeem` — body: the hand-off code the browser brought back. */
78
+ interface SignInRedeemRequest {
79
+ code: string;
80
+ }
81
+ /** 200 — the person the provider vouched for. Only the tenant (or the portal) that asked for the ticket gets it. */
82
+ interface SignInRedeemAnswer {
83
+ provider: SignInProvider;
84
+ purpose: SignInPurpose;
85
+ /** The provider's stable id for the person (`customerIdentities.subject`). */
86
+ subject: string;
87
+ email: string;
88
+ /** Link to an existing customer by email ONLY when true (board 18's one security rule). */
89
+ emailVerified: boolean;
90
+ name?: string;
91
+ picture?: string;
92
+ returnUrl: string;
93
+ }
94
+ /** What the broker refuses, in its answer body `{ code }`. */
95
+ declare enum BrokerRefusalCode {
96
+ /** 403 — the return address is not one of this tenant's hosts. */
97
+ ReturnHostRefused = "return-host-refused",
98
+ /** 400 */
99
+ UnknownProvider = "unknown-provider",
100
+ /** 503 — no client id/secret for the provider in the broker's environment. */
101
+ ProviderNotConfigured = "provider-not-configured",
102
+ /** 404 */
103
+ CodeUnknown = "code-unknown",
104
+ /** 410 */
105
+ CodeUsedOrExpired = "code-used-or-expired",
106
+ /** 403 — another tenant's code. */
107
+ NotYours = "not-yours"
108
+ }
109
+ declare const BROKER_REFUSAL_STATUS: Readonly<Record<BrokerRefusalCode, number>>;
110
+ declare function isBrokerRefusalCode(value: unknown): value is BrokerRefusalCode;
111
+ /** The hand-off code's query parameter on the return address. Never a name or an email in an address. */
112
+ declare const SIGN_IN_HANDOFF_PARAM = "iox_signin";
113
+ /** The failure's query parameter on the return address. */
114
+ declare const SIGN_IN_ERROR_PARAM = "iox_signin_error";
115
+ /** Why the browser came back without a person. */
116
+ declare enum SignInReturnError {
117
+ /** The person pressed Cancel on the provider's screen. */
118
+ Cancelled = "cancelled",
119
+ /** The provider's answer failed a check (issuer, audience, nonce, an unverified email). */
120
+ Refused = "refused",
121
+ /** The ticket or the provider's state had expired. */
122
+ Expired = "expired",
123
+ Failed = "failed"
124
+ }
125
+ declare function isSignInReturnError(value: unknown): value is SignInReturnError;
126
+ /** The return address with `?iox_signin=<code>` added (its own query, `next`, kept). */
127
+ declare function withSignInHandoff(returnUrl: string, code: string): string;
128
+ /** The return address with `?iox_signin_error=<error>` added. */
129
+ declare function withSignInError(returnUrl: string, error: SignInReturnError): string;
130
+ type SignInReturn = {
131
+ readonly code: string;
132
+ readonly error?: undefined;
133
+ } | {
134
+ readonly code?: undefined;
135
+ readonly error: SignInReturnError;
136
+ };
137
+ /**
138
+ * What came back on a return address's query (`?iox_signin=` or `?iox_signin_error=`), or null when neither did. An
139
+ * error wins over a code; an unknown error reads `failed`; an empty code is no code.
140
+ */
141
+ declare function readSignInReturn(search: string | URLSearchParams | null | undefined): SignInReturn | null;
142
+
143
+ /**
144
+ * The two address checks every sign-in step leans on. Both REFUSE when in doubt: a sign-in that sends a person to the
145
+ * wrong place is worse than one that sends them home.
146
+ */
147
+ /** Longer than any page path a site has; a longer `next` is refused. */
148
+ declare const NEXT_PATH_MAX_LENGTH = 2048;
149
+ /**
150
+ * True only for a path on THIS site — the `next` a sign-in returns to (the open-redirect guard). It must start with ONE
151
+ * `/`, hold no backslash and no control character (raw or percent-encoded), and stay on the origin when a browser
152
+ * resolves it. `//evil.com`, `/\evil.com`, `/%2F%2Fevil.com`, `https://evil.com`, `javascript:` — all refused.
153
+ */
154
+ declare function isSameOriginPath(next: unknown): next is string;
155
+ /** `next` when it is a same-origin path, else `fallback` (the site's home). */
156
+ declare function safeNextPath(next: unknown, fallback?: string): string;
157
+ declare function isLoopbackHost(hostname: string): boolean;
158
+ interface ReturnHostOptions {
159
+ /** Accept `http:` on a loopback host (tests and local stacks only — never in production). */
160
+ allowLoopbackHttp?: boolean;
161
+ }
162
+ /** A host as `URL` normalises it (lower case, punycode, the default port dropped), or null when it is not one. */
163
+ declare function normalizeHost(host: string): string | null;
164
+ /**
165
+ * True when `url` returns to one of `hosts` EXACTLY (the broker's return-host check, C-D22): `https:` only (`http:` on a
166
+ * loopback host when asked), no user or password in it, and its host — punycode, with any non-default port — equal to
167
+ * one allowed host. Never a suffix or a prefix: `evil.idos.iox.studio` and `idos.iox.studio.evil.com` are other hosts.
168
+ */
169
+ declare function isAllowedReturnHost(url: unknown, hosts: ReadonlyArray<string>, options?: ReturnHostOptions): boolean;
170
+
171
+ /**
172
+ * A buyer's sign-in on a studio's site (commerce plan §3c, C-D5): iox-cms's public routes under `api/site/:orgId/`, the
173
+ * session it issues, and the cookies it sets. A customer is not a user — its token has its OWN secret and audience and
174
+ * every admin route refuses it (trap T3).
175
+ */
176
+ declare enum SiteAuthRoute {
177
+ /** `POST { email }` → 202 always (never says whether the email is known). */
178
+ Code = "auth/code",
179
+ /** `POST { email, code }` → the session. */
180
+ CodeVerify = "auth/code/verify",
181
+ Refresh = "auth/refresh",
182
+ SignOut = "auth/signout",
183
+ /** `GET` → `{ customer }` (null when signed out). */
184
+ Me = "me",
185
+ MyOrders = "me/orders"
186
+ }
187
+ /** Every route a site's sign-in calls, by name (the provider pair is per provider — `siteProviderPath`). */
188
+ declare const SITE_AUTH_ROUTES: Readonly<Record<keyof typeof SiteAuthRoute, SiteAuthRoute>>;
189
+ /** A provider's two routes on the studio: start (`POST { returnPath }` → `{ startUrl }`) and return (the broker's GET). */
190
+ declare enum SiteProviderRoute {
191
+ Start = "start",
192
+ Return = "return"
193
+ }
194
+ /** A sign-in route of one org, ROOT-relative: `/api/site/<org>/<route>`. */
195
+ declare function siteAuthPath(orgId: string, route: SiteAuthRoute): string;
196
+ /** `/api/site/<org>/auth/<provider>/<start|return>`. */
197
+ declare function siteProviderPath(orgId: string, provider: SignInProvider, route: SiteProviderRoute): string;
198
+ /** The `next` query parameter of the return route — where the buyer lands after signing in. */
199
+ declare const SIGN_IN_NEXT_PARAM = "next";
200
+ /**
201
+ * The address the studio asks the broker to send the browser back to:
202
+ * `https://<host>/api/site/<org>/auth/<provider>/return?next=<path>`. `origin` is the studio's own (`https://<host>`);
203
+ * a `next` that is not a same-origin path becomes `/`.
204
+ */
205
+ declare function siteProviderReturnUrl(origin: string, orgId: string, provider: SignInProvider, next: string | null | undefined): string;
206
+ interface SiteProviderStartRequest {
207
+ /** The page to come back to (a same-origin path). */
208
+ returnPath: string;
209
+ }
210
+ interface SiteProviderStartAnswer {
211
+ startUrl: string;
212
+ }
213
+ interface SiteCodeRequest {
214
+ email: string;
215
+ }
216
+ interface SiteCodeVerifyRequest {
217
+ email: string;
218
+ code: string;
219
+ }
220
+ /** What a site may know about the signed-in buyer — nothing else (pages stay cacheable; personal parts fill in later). */
221
+ interface SiteCustomer {
222
+ id: string;
223
+ email: string;
224
+ name: string | null;
225
+ }
226
+ /** `GET me`, `POST auth/code/verify`, `POST auth/refresh`. */
227
+ interface SiteMeAnswer {
228
+ customer: SiteCustomer | null;
229
+ }
230
+ /** The buyer token's audience — never an admin token's. */
231
+ declare const SITE_AUDIENCE = "site";
232
+ /** The buyer session's JWT claims. */
233
+ interface SiteSessionClaims {
234
+ /** The customer id. */
235
+ sub: string;
236
+ aud: typeof SITE_AUDIENCE;
237
+ /** The org the customer belongs to — a session is good on ONE org's routes. */
238
+ org: string;
239
+ iat?: number;
240
+ exp?: number;
241
+ }
242
+ /** True when `claims` carry the site audience and both ids — the shape `CustomerGuard` accepts (it checks the signature). */
243
+ declare function isSiteSessionClaims(claims: unknown): claims is SiteSessionClaims;
244
+ /** True when a token's claims carry the site audience at all — what the admin guard refuses (T3). */
245
+ declare function hasSiteAudience(claims: unknown): boolean;
246
+ /** The buyer session: httpOnly, `Path=/` (the site's SSR reads it — the cart cookie's reason), SameSite=Lax. */
247
+ declare const CUSTOMER_COOKIE_PREFIX = "iox_c_";
248
+ /** A Google sign-in in flight: httpOnly, short, holds a hash binding the ticket — a forged return fails without it. */
249
+ declare const SIGN_IN_STATE_COOKIE_PREFIX = "iox_si_";
250
+ declare const SITE_COOKIE_PATH = "/";
251
+ /** Long enough for a person on the provider's screen; the ticket inside expires long before. */
252
+ declare const SIGN_IN_STATE_MAX_AGE_SECONDS = 600;
253
+ declare function customerCookieName(orgId: string): string;
254
+ declare function signInStateCookieName(orgId: string): string;
255
+ declare const EMAIL_CODE_LENGTH = 6;
256
+ declare const EMAIL_CODE_TTL_MINUTES = 10;
257
+ declare const EMAIL_CODE_TTL_MS: number;
258
+ /** Wrong codes before the code is spent and a new one must be sent. */
259
+ declare const EMAIL_CODE_MAX_TRIES = 5;
260
+ /** A typed or pasted code as digits only ("481 203", "481-203" → "481203"); anything else is kept, to be refused. */
261
+ declare function normalizeEmailCode(input: unknown): string;
262
+ /** Exactly six ASCII digits. */
263
+ declare function isEmailCodeShape(code: unknown): boolean;
264
+ /** An email as a studio keys its customers by (unique per org): trimmed, lower case. */
265
+ declare function normalizeSignInEmail(email: unknown): string;
266
+ /** Has the code outlived its ten minutes? `now` is the caller's — the core reads no clock. */
267
+ declare function emailCodeExpired(sentAt: number | Date, now: number | Date): boolean;
268
+ /** How many more codes may be tried after `wrongTries` wrong ones (0 = the code is spent). */
269
+ declare function emailCodeTriesLeft(wrongTries: number): number;
270
+ declare const ACCOUNT_PATH = "account";
271
+ /** The buyer's account page — their orders: `/<orgLabel>/account` (the engine answers it on every studio). */
272
+ declare function accountHref(orgLabel?: string | null): string;
273
+
274
+ /**
275
+ * The sign-in dialog's words and its refusals, in English and Hebrew. A string-rendered site has no translation
276
+ * service, so the core carries both itself (commerce-core `CHECKOUT_WORDS` precedent); a host with its own translations
277
+ * may key them by the stable codes instead.
278
+ */
279
+ interface SignInLabel {
280
+ readonly en: string;
281
+ readonly he: string;
282
+ }
283
+ declare enum SignInLanguage {
284
+ En = "en",
285
+ He = "he"
286
+ }
287
+ declare function signInLanguage(lang: string | null | undefined): SignInLanguage;
288
+ declare enum SignInWord {
289
+ SignIn = "signIn",
290
+ SignInTo = "signInTo",
291
+ Why = "why",
292
+ ContinueWithGoogle = "continueWithGoogle",
293
+ Or = "or",
294
+ Email = "email",
295
+ EmailPlaceholder = "emailPlaceholder",
296
+ SendCode = "sendCode",
297
+ CodeSent = "codeSent",
298
+ Code = "code",
299
+ CodeValid = "codeValid",
300
+ SendAgain = "sendAgain",
301
+ Verify = "verify",
302
+ OtherEmail = "otherEmail",
303
+ Working = "working",
304
+ Close = "close",
305
+ SignOut = "signOut",
306
+ Account = "account",
307
+ YourOrders = "yourOrders",
308
+ Hello = "hello",
309
+ SignedIn = "signedIn",
310
+ SignedOut = "signedOut",
311
+ NoPassword = "noPassword"
312
+ }
313
+ /** `{site}`, `{email}`, `{name}`, `{minutes}` are filled by `signInWord`. */
314
+ declare const SIGN_IN_WORDS: Readonly<Record<SignInWord, SignInLabel>>;
315
+ declare function signInWord(word: SignInWord, lang: string | null | undefined, fill?: Readonly<Record<string, string | number>>): string;
316
+ /** Where in the sign-in dialog a refusal is said. */
317
+ declare enum SignInSlot {
318
+ Email = "email",
319
+ Code = "code",
320
+ /** Under "Continue with Google". */
321
+ Provider = "provider",
322
+ /** The dialog as a whole. */
323
+ Dialog = "dialog"
324
+ }
325
+ /**
326
+ * Every code a site's sign-in can hear: iox-cms's answers, the broker's return errors (`?iox_signin_error=`), and
327
+ * `network` for no answer at all.
328
+ */
329
+ declare enum SiteSignInRefusalCode {
330
+ InvalidEmail = "invalid-email",
331
+ CodeWrong = "code-wrong",
332
+ CodeExpired = "code-expired",
333
+ TooManyTries = "too-many-tries",
334
+ RateLimited = "rate-limited",
335
+ /** The broker cannot run the provider (down, not configured, the host refused). */
336
+ ProviderUnavailable = "provider-unavailable",
337
+ Cancelled = "cancelled",
338
+ Refused = "refused",
339
+ Expired = "expired",
340
+ Failed = "failed",
341
+ /** The return came back without this browser's sign-in cookie — a forged or stale return. */
342
+ StateMismatch = "state-mismatch",
343
+ Blocked = "blocked",
344
+ NotSignedIn = "not-signed-in",
345
+ Network = "network"
346
+ }
347
+ interface SignInRefusalRule {
348
+ readonly slot: SignInSlot;
349
+ readonly label: SignInLabel;
350
+ }
351
+ declare const SIGN_IN_REFUSALS: Readonly<Record<SiteSignInRefusalCode, SignInRefusalRule>>;
352
+ declare function isSiteSignInRefusalCode(code: unknown): code is SiteSignInRefusalCode;
353
+ /** Any code a sign-in heard, as the site's own: a site code as is, a broker code or a return error mapped, else `failed`. */
354
+ declare function siteSignInCodeOf(code: unknown): SiteSignInRefusalCode;
355
+ interface SignInRefusal {
356
+ code: SiteSignInRefusalCode;
357
+ slot: SignInSlot;
358
+ words: string;
359
+ }
360
+ /** One refusal, on its slot, in the visitor's words. */
361
+ declare function signInRefusal(code: unknown, lang: string | null | undefined): SignInRefusal;
362
+ /** A refused call's body (`{ code }`) — or nothing at all (`network`) — as one refusal. The body's `message` is a log
363
+ * line and is never shown. A 429 with no code is `rate-limited`. */
364
+ declare function signInRefusalOf(body: unknown, lang: string | null | undefined, status?: number | null): SignInRefusal;
365
+
366
+ /**
367
+ * THE TRANSPORT a site's sign-in parts speak (commerce E3a, the `CartTransport` rule): the parts own no HTTP. The engine
368
+ * implements it over iox-cms's site routes (`siteAuthPath`, `siteProviderPath`, the cookie carried by the browser); the
369
+ * builder canvas uses `simulatedSiteAuthTransport` — the ADMIN's browser is never a buyer, so nothing is sent and no
370
+ * session exists.
371
+ */
372
+ interface SiteAuthTransport {
373
+ /** The signed-in buyer, or null. */
374
+ me(): Promise<SiteCustomer | null>;
375
+ /** Ask the studio to start a provider's sign-in; the answer is the address the browser goes to next. */
376
+ startProvider(provider: SignInProvider, returnPath: string): Promise<{
377
+ startUrl: string;
378
+ }>;
379
+ /** Send a code to `email` (the studio always accepts — it never says whether the email is known). */
380
+ sendCode(email: string): Promise<void>;
381
+ /** Check the code; the signed-in buyer. */
382
+ verifyCode(email: string, code: string): Promise<SiteCustomer>;
383
+ signOut(): Promise<void>;
384
+ }
385
+ /** A refused transport call, carrying the code the visitor's words come from (`signInRefusal`). */
386
+ declare class SiteAuthError extends Error {
387
+ readonly code: SiteSignInRefusalCode;
388
+ constructor(code: unknown);
389
+ }
390
+ /** The code any thrown value carries: a `SiteAuthError`'s own, else `network` (the call never answered). */
391
+ declare function siteAuthErrorCode(error: unknown): SiteSignInRefusalCode;
392
+ /** The sample buyer the canvas signs in as. */
393
+ declare const SAMPLE_CUSTOMER: Readonly<SiteCustomer>;
394
+ /** The one code the simulated transport accepts (any other six digits are "not right" — so the error can be designed). */
395
+ declare const SIMULATED_SIGN_IN_CODE = "123456";
396
+ interface SimulatedSiteAuthTransport extends SiteAuthTransport {
397
+ /** Who is signed in on the canvas right now. */
398
+ readonly customer: SiteCustomer | null;
399
+ setCustomer(customer: SiteCustomer | null): void;
400
+ }
401
+ /**
402
+ * The canvas' transport: in memory, nothing sent. A code is "sent" to any well-formed email; `123456` signs in as the
403
+ * sample buyer under the typed email, any other six digits are `code-wrong`; a provider's start answers the broker's
404
+ * address with a sample ticket (the canvas host never follows it).
405
+ */
406
+ declare function simulatedSiteAuthTransport(start?: SiteCustomer | null): SimulatedSiteAuthTransport;
407
+ /** A transport that has nothing to reach: `me` is null, every change refused as `network`. */
408
+ declare const NO_SITE_AUTH_TRANSPORT: SiteAuthTransport;
409
+ /** The context slot the account parts bind to (`$customer.initial`, `$customer.name`). */
410
+ declare const CUSTOMER_SLOT = "$customer";
411
+ /** `$customer` — what a page may show of the buyer: never the id. */
412
+ interface CustomerSlot {
413
+ signedIn: boolean;
414
+ name: string;
415
+ /** The first letter of the name, else of the email; '' when signed out. */
416
+ initial: string;
417
+ email: string;
418
+ }
419
+ /** The first visible letter of a name or an email, upper-cased where the script has case. */
420
+ declare function customerInitial(customer: Pick<SiteCustomer, 'name' | 'email'> | null | undefined): string;
421
+ /** The name a page greets with: the buyer's own, else the email's local part. */
422
+ declare function customerDisplayName(customer: Pick<SiteCustomer, 'name' | 'email'> | null | undefined): string;
423
+ declare function customerSlotOf(customer: SiteCustomer | null | undefined): CustomerSlot;
424
+
425
+ export { ACCOUNT_PATH, BROKER_HOST, BROKER_ORIGIN, BROKER_REFUSAL_STATUS, BROKER_TICKET_PARAM, BrokerApiRoute, BrokerBrowserRoute, BrokerRefusalCode, CUSTOMER_COOKIE_PREFIX, CUSTOMER_SLOT, EMAIL_CODE_LENGTH, EMAIL_CODE_MAX_TRIES, EMAIL_CODE_TTL_MINUTES, EMAIL_CODE_TTL_MS, NEXT_PATH_MAX_LENGTH, NO_SITE_AUTH_TRANSPORT, SAMPLE_CUSTOMER, SIGN_IN_ERROR_PARAM, SIGN_IN_HANDOFF_PARAM, SIGN_IN_HANDOFF_TTL_SECONDS, SIGN_IN_NEXT_PARAM, SIGN_IN_PROVIDER_SPECS, SIGN_IN_REFUSALS, SIGN_IN_STATE_COOKIE_PREFIX, SIGN_IN_STATE_MAX_AGE_SECONDS, SIGN_IN_TICKET_TTL_SECONDS, SIGN_IN_WORDS, SIMULATED_SIGN_IN_CODE, SITE_AUDIENCE, SITE_AUTH_ROUTES, SITE_COOKIE_PATH, SignInLanguage, SignInProtocol, SignInProvider, SignInPurpose, SignInReturnError, SignInSlot, SignInWord, SiteAuthError, SiteAuthRoute, SiteProviderRoute, SiteSignInRefusalCode, accountHref, brokerApiPath, brokerBrowserUrl, brokerCallbackUrl, brokerStartUrl, customerCookieName, customerDisplayName, customerInitial, customerSlotOf, emailCodeExpired, emailCodeTriesLeft, hasSiteAudience, isAllowedReturnHost, isBrokerRefusalCode, isEmailCodeShape, isLoopbackHost, isSameOriginPath, isSignInProvider, isSignInPurpose, isSignInReturnError, isSiteSessionClaims, isSiteSignInRefusalCode, normalizeEmailCode, normalizeHost, normalizeSignInEmail, providerServes, readSignInReturn, safeNextPath, signInLanguage, signInRefusal, signInRefusalOf, signInStateCookieName, signInWord, simulatedSiteAuthTransport, siteAuthErrorCode, siteAuthPath, siteProviderPath, siteProviderReturnUrl, siteSignInCodeOf, withSignInError, withSignInHandoff };
426
+ export type { CustomerSlot, ReturnHostOptions, SignInLabel, SignInProviderSpec, SignInRedeemAnswer, SignInRedeemRequest, SignInRefusal, SignInReturn, SignInTicketAnswer, SignInTicketRequest, SimulatedSiteAuthTransport, SiteAuthTransport, SiteCodeRequest, SiteCodeVerifyRequest, SiteCustomer, SiteMeAnswer, SiteProviderStartAnswer, SiteProviderStartRequest, SiteSessionClaims };
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/vectoriox-iox-ui-identity-core.mjs"
3
+ }
package/index.d.ts CHANGED
@@ -4010,7 +4010,6 @@ declare class StringFormRuntime {
4010
4010
  private valueOf;
4011
4011
  /** Every field's error, aria-invalid, describedby and invalid class — as `IoxFieldComponent` renders them. */
4012
4012
  private render;
4013
- private renderError;
4014
4013
  private announce;
4015
4014
  /** Focus the first field that failed and shake it once (premium N2 — the ONE `shakeElement`). */
4016
4015
  private focusFirstInvalid;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectoriox/iox-ui",
3
- "version": "5.98.0",
3
+ "version": "5.100.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -55,6 +55,10 @@
55
55
  "types": "./harness-core/index.d.ts",
56
56
  "default": "./fesm2022/vectoriox-iox-ui-harness-core.mjs"
57
57
  },
58
+ "./identity-core": {
59
+ "types": "./identity-core/index.d.ts",
60
+ "default": "./fesm2022/vectoriox-iox-ui-identity-core.mjs"
61
+ },
58
62
  "./media-core": {
59
63
  "types": "./media-core/index.d.ts",
60
64
  "default": "./fesm2022/vectoriox-iox-ui-media-core.mjs"
@@ -11,7 +11,7 @@ export type ActionKind = 'animated' | 'instant' | 'server';
11
11
 
12
12
  /** Picker grouping. Flat lists die at ~10 entries; the group is data, never a second list. */
13
13
  export type ActionGroup =
14
- | 'motion' | 'visibility' | 'navigate' | 'dialog' | 'popover' | 'notice' | 'item' | 'form' | 'data' | 'consent' | 'shop' | 'service';
14
+ | 'motion' | 'visibility' | 'navigate' | 'dialog' | 'popover' | 'notice' | 'item' | 'form' | 'data' | 'consent' | 'shop' | 'account' | 'service';
15
15
 
16
16
  /**
17
17
  * What a step does inside the live builder canvas (the canvas RUNS interactions):
@@ -17,8 +17,8 @@ const OPEN_TARGET_ROLES = [...ITEM_TARGET_ROLES, TabsRole.Trigger, SegmentedRole
17
17
  * Shipped rows (motion/visibility/context/swiper) are listed so the catalog is the WHOLE truth;
18
18
  * their `kind`/`builderBehaviour` make the long-standing implicit rules explicit — the canvas is
19
19
  * a live runtime (feedback_builder_live_runtime), navigate must SIMULATE, services are INERT.
20
- * `signIn`/`startCheckout` ship greyed with the honest reason (D-A5): no visitor identity, no
21
- * payments — a subsystem and a product, not dropdown entries.
20
+ * Selling (E1c) and a buyer's account (E3a) went live once their subsystems existed; until then they shipped greyed with
21
+ * the honest reason (D-A5).
22
22
  */
23
23
  /** The trigger whose actions the scroll plays (premium M6, N7). */
24
24
  export const SCROLL_PROGRESS_TRIGGER = 'scrollProgress';
@@ -186,11 +186,21 @@ export const ELEMENT_ACTION_DESCRIPTORS: readonly ActionDescriptor[] = Object.fr
186
186
  { type: 'startCheckout', labelKey: 'builder.actions.startCheckout', kind: 'server', group: 'shop', builderBehaviour: 'inert',
187
187
  entitlement: SHOP_ENTITLEMENT },
188
188
 
189
- // ── Services (D-A5: visible, greyed, with the reason — never hidden, never live) ──
190
- { type: 'signIn', labelKey: 'builder.actions.signIn', kind: 'server', group: 'service', builderBehaviour: 'inert',
191
- planned: true, entitlement: 'visitorIdentity' },
189
+ // ── Account (commerce E3a, C-D5/C-D6): a buyer signs in by an email code or Google and out again, through the
190
+ // host's site-auth transport (composite-core `AccountRuntime`, the part owns no HTTP). The canvas SIMULATES both:
191
+ // Sign in opens the page's sign-in dialog over a simulated transport (a sample customer, no session — the ADMIN's
192
+ // browser is never a buyer), Sign out returns the parts to signed out. Behind the ONE plan feature `features.shop`
193
+ // ("Shop and customer sign-in", C-D18). No target: the runtime opens the page's ONE sign-in dialog.
194
+ { type: 'signIn', labelKey: 'builder.actions.signIn', kind: 'server', group: 'account', builderBehaviour: 'simulate',
195
+ entitlement: SHOP_ENTITLEMENT },
196
+ { type: 'signOut', labelKey: 'builder.actions.signOut', kind: 'server', group: 'account', builderBehaviour: 'simulate',
197
+ entitlement: SHOP_ENTITLEMENT },
192
198
  ]);
193
199
 
200
+ /** The account actions' dispatch set (commerce E3a) — the engines branch on it beside SHOP and hand the action to
201
+ * composite-core `runAccountAction`. */
202
+ export const ACCOUNT_ACTION_TYPES: ReadonlySet<string> = new Set(['signIn', 'signOut']);
203
+
194
204
  /** The shop actions' dispatch set (commerce E1c) — the engines branch on it beside DIALOG / BEHAVIOUR and hand the action
195
205
  * to composite-core `runShopAction`, which reads the product, the variant and the quantity around the element. */
196
206
  export const SHOP_ACTION_TYPES: ReadonlySet<string> = new Set(['addToCart', 'startCheckout']);
@@ -233,7 +243,7 @@ export const CONSENT_ACTION_TYPES: ReadonlySet<string> =
233
243
 
234
244
  /** Picker order — most-used groups first, services last (they are the shop window, not the shop). */
235
245
  export const ELEMENT_ACTION_GROUP_ORDER: readonly string[] =
236
- Object.freeze(['motion', 'visibility', 'navigate', 'dialog', 'popover', 'notice', 'item', 'form', 'data', 'consent', 'shop', 'service']);
246
+ Object.freeze(['motion', 'visibility', 'navigate', 'dialog', 'popover', 'notice', 'item', 'form', 'data', 'consent', 'shop', 'account', 'service']);
237
247
 
238
248
  /** True when `d` is offered under `trigger` (its `triggers`, else every trigger) — the picker's rule and the runtimes'. */
239
249
  export function actionOfferedUnder(d: Pick<ActionDescriptor, 'triggers'>, trigger: string | null | undefined): boolean {