@selfhelp/shared 1.27.0 → 1.29.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.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,40 @@ All notable changes to `@selfhelp/shared` will be documented in this file.
10
10
  This project follows semantic versioning.
11
11
 
12
12
 
13
+ ## v1.29.0
14
+
15
+ Minor: live-sync follow-ups (task `2026-11-23-live-sync-follow-ups`; pairs with
16
+ backend 0.1.50, frontend 0.1.77, mobile 0.1.39). Additive, no breaking change.
17
+
18
+ - **Added** `LOCK_IDLE_ENDED_ERROR` (`lock_idle_ended`): `409` when a holder's own
19
+ lock ended by idle expiry and they try to renew; data is `IPageLockStatus`;
20
+ resume through take-over.
21
+ - **Added** `IPagePayload` and `pageFromPayload()` (payload `sync` wins, then
22
+ `page.sync`; no page → `null`; no sync → page unchanged). Prefer these over
23
+ client-local copies.
24
+ - **Changed** `IGetPageResponse` / `IResolvePageResponse` data to
25
+ `{ page; sync?: ISyncBlock | null }`.
26
+ - **Added** schema-parity row for `responses/auth/events.json` ↔
27
+ `IAuthEventsBootstrap`.
28
+
29
+ ## v1.28.0
30
+
31
+ Minor: live-sync contract (task `2026-11-20-live-sync-and-edit-lock`; pairs with the
32
+ backend, frontend and mobile releases of the same task). Additive, no breaking change.
33
+
34
+ - **Added** `src/sync/` (exported from the root): `ISyncChangeMessage`, `TSyncTag`,
35
+ `SYNC_EVENT_NAME` (`changed`), `SYNC_TAG_PATTERN`, `ISyncBlock` (`depends_on`,
36
+ `valid_until`), `IAuthEventsBootstrap` (adds `syncTopics`; topics are `null` for a
37
+ guest), `IPageDraftVersioned` (`draft_version`), `IStalePageVersionData`,
38
+ `IPageLockStatus` / `IPageLockHolder`, and the error codes `page_version_required`,
39
+ `stale_page_version`, `page_locked`.
40
+ - **Added** helpers `parseSyncMessage`, `parseSyncMessageJson`, `pageDependsOn` and
41
+ `syncRefetchDelayMs` (random 0 to 300 ms for `changed`, 0 to 2000 ms for `valid_until`).
42
+ - **Added** header constants `HEADER_ACL_STAMP` (`X-Acl-Stamp`), `HEADER_PAGE_VIEW`
43
+ (`X-Page-View`) and `HEADER_PAGE_VERSION` (`X-Page-Version`), and
44
+ `ENDPOINTS.ADMIN_PAGE_LOCK` (`LOCK`, `TAKE_OVER`).
45
+ - **Added** optional `IUserData.acl_stamp` and `IPageContent.sync`.
46
+
13
47
  ## v1.27.0
14
48
 
15
49
  Minor: role-scope permission names (pairs with core `0.1.48`, frontend `0.1.75`).
package/dist/index.d.mts CHANGED
@@ -7,6 +7,119 @@ export { COLOR_PALETTE, COLOR_SCALES, CONTAINER_SIZE_PX, FONT_SIZE_PX, FULL_RADI
7
7
  export { TAnyStyleName, TPluginStyleImplMap, TStyleImplMap, getRegistryEntry, getRegistryEntryAny, getStylePlacement, getStylePlatforms, getStylePluginId, isKnownStyleName, isRegisteredStyleName, isStyleAllowedOnPage, isStylePlacementAllowed, isStyleSupportedOnPlatform, setToStylePlatform, stylePlatformToSet } from './registry/index.mjs';
8
8
  export { sharedTailwindExtend, sharedTailwindPreset } from './theme/tailwind.mjs';
9
9
 
10
+ /**
11
+ * Live-sync contract (task `2026-11-20-live-sync-and-edit-lock`, contracts C1 to C9).
12
+ *
13
+ * The backend publishes a `changed` Mercure event that carries names and ids
14
+ * only, never content. Clients match the tags against the `sync.depends_on`
15
+ * list the server put into each page payload and refetch what matches. The
16
+ * server decides who gets a message; a client never decides who may see a
17
+ * change.
18
+ */
19
+ /** Mercure event name of a change message (C1). */
20
+ declare const SYNC_EVENT_NAME: "changed";
21
+ /** Highest change-message version this package understands (C1). Clients ignore a higher `v`. */
22
+ declare const SYNC_MESSAGE_VERSION: 1;
23
+ /**
24
+ * Tags a change message may carry (C1). A client ignores tags it does not know.
25
+ *
26
+ * | Tag | Meaning |
27
+ * | --- | --- |
28
+ * | `acl` | Access of this audience changed (re-bootstrap the stream, refetch user data) |
29
+ * | `navigation` | A menu or the visible page set changed |
30
+ * | `global_values` | Global values changed |
31
+ * | `page:<id>` | The published page changed |
32
+ * | `page_draft:<id>` | The draft of the page changed (editors) |
33
+ * | `page_lock:<id>` | The edit lock of the page changed (editors) |
34
+ * | `table:<id>` | A record of the data table changed |
35
+ * | `section:<id>` | A section was saved in the admin |
36
+ * | `asset:<id>` | An asset changed |
37
+ */
38
+ type TSyncTag = 'acl' | 'navigation' | 'global_values' | `page:${number}` | `page_draft:${number}` | `page_lock:${number}` | `table:${number}` | `section:${number}` | `asset:${number}`;
39
+ /** Mirror of the backend tag pattern (C1). Anchored, so the whole tag must match. */
40
+ declare const SYNC_TAG_PATTERN: RegExp;
41
+ /** Data of one `changed` event (C1). */
42
+ interface ISyncChangeMessage {
43
+ /** Message version. Always 1 for this package. */
44
+ v: typeof SYNC_MESSAGE_VERSION;
45
+ /** Unique, non-empty list of known tags. */
46
+ tags: TSyncTag[];
47
+ }
48
+ /**
49
+ * The `sync` block of every page payload, published and draft (C6).
50
+ *
51
+ * `depends_on` lists `page:<id>` (`page_draft:<id>` for a draft), `table:<id>`
52
+ * for every data table the page reads, and `global_values`. `valid_until` is
53
+ * the earliest moment (UTC, ISO 8601) the result can change because time
54
+ * passes, or `null`. The client refetches once at `valid_until` plus a random
55
+ * delay while the page is open.
56
+ */
57
+ interface ISyncBlock {
58
+ depends_on: string[];
59
+ valid_until: string | null;
60
+ }
61
+ /**
62
+ * Data of `GET /auth/events` (C4). For a guest `topic`, `impersonationTopic`
63
+ * and `systemUpdateTopic` are `null` and `syncTopics` is the public topic only.
64
+ * The token covers exactly the listed topics (plus plugin topics).
65
+ */
66
+ interface IAuthEventsBootstrap {
67
+ hubUrl: string;
68
+ topic: string | null;
69
+ impersonationTopic: string | null;
70
+ systemUpdateTopic: string | null;
71
+ /** Sync topics to subscribe to: `[user, each group, each role, public]`, or `[public]` for a guest. */
72
+ syncTopics: string[];
73
+ pluginTopics: string[];
74
+ /** `null` when `transport=cookie` was requested. */
75
+ token: string | null;
76
+ expiresIn: number;
77
+ }
78
+ /** Error codes of the page draft version and lock checks (C8, C9). */
79
+ declare const PAGE_VERSION_REQUIRED_ERROR: "page_version_required";
80
+ declare const STALE_PAGE_VERSION_ERROR: "stale_page_version";
81
+ declare const PAGE_LOCKED_ERROR: "page_locked";
82
+ /**
83
+ * `409` when the caller's own page edit lock ended by idle expiry and they try
84
+ * to renew (`POST .../lock`). Data is {@link IPageLockStatus}. Resume through
85
+ * take-over (`POST .../lock/take-over`), not a plain acquire.
86
+ */
87
+ declare const LOCK_IDLE_ENDED_ERROR: "lock_idle_ended";
88
+ /**
89
+ * Draft version of a page (C8). `GET /admin/pages/{page_id}` returns it in its
90
+ * data (and in the `X-Page-Version` header); admin page types extend this so
91
+ * the editor can send it back with every draft write.
92
+ */
93
+ interface IPageDraftVersioned {
94
+ /** Integer from 1; raised by one on every successful draft write. */
95
+ draft_version: number;
96
+ }
97
+ /** Data of `409 stale_page_version` (C8). */
98
+ interface IStalePageVersionData {
99
+ page_id: number;
100
+ current_version: number;
101
+ }
102
+ /** Holder of a page edit lock (C9). */
103
+ interface IPageLockHolder {
104
+ id: number;
105
+ name: string;
106
+ }
107
+ /**
108
+ * Status of a page edit lock (C9). Per caller (`mine`) and never cached.
109
+ * `holder`, `expires_at` and `idle_expires_at` are `null` when `held` is false.
110
+ * The data of `409 page_locked` is this object.
111
+ */
112
+ interface IPageLockStatus {
113
+ page_id: number;
114
+ held: boolean;
115
+ mine: boolean;
116
+ holder: IPageLockHolder | null;
117
+ /** The lease ends here unless renewed (120 s after the last renewal). */
118
+ expires_at: string | null;
119
+ /** The lock ends here unless the holder writes (15 minutes after the last draft write). */
120
+ idle_expires_at: string | null;
121
+ }
122
+
10
123
  /**
11
124
  * Comprehensive page type system, single source of truth for both apps.
12
125
  */
@@ -124,6 +237,13 @@ interface IPageContent {
124
237
  matched_url_pattern?: string | null;
125
238
  /** The canonical active route pattern for the page, for canonical-link generation. Resolve responses only. */
126
239
  canonical_url?: string | null;
240
+ /**
241
+ * Live-sync block (C6): the tags this payload depends on and the moment it
242
+ * can change because time passes. Emitted by the backend on published and
243
+ * draft page payloads; optional here because the type is also used for
244
+ * payloads built elsewhere (preview, admin).
245
+ */
246
+ sync?: ISyncBlock;
127
247
  sections: IPageSectionWithFields[];
128
248
  }
129
249
  /**
@@ -195,6 +315,12 @@ interface IUserData {
195
315
  roles?: string[];
196
316
  groups?: string[];
197
317
  acl_version?: string | number | null;
318
+ /**
319
+ * Access stamp (live sync, C5): the same value the backend sends in the
320
+ * `X-Acl-Stamp` header of every response to this user. A client that sees
321
+ * a header value different from this one invalidates its user data.
322
+ */
323
+ acl_stamp?: string;
198
324
  }
199
325
  interface IJwtPayload {
200
326
  sub: number;
@@ -386,6 +512,8 @@ type ILanguagesResponse = IBaseApiResponse<ILanguageItem[]>;
386
512
 
387
513
  type IGetPageResponse = IBaseApiResponse<{
388
514
  page: IPageContent;
515
+ /** Live-sync block next to the page (contract C6); optional on older servers. */
516
+ sync?: ISyncBlock | null;
389
517
  }>;
390
518
  type IGetPagesResponse = IBaseApiResponse<IPageItem[]>;
391
519
  /**
@@ -395,6 +523,8 @@ type IGetPagesResponse = IBaseApiResponse<IPageItem[]>;
395
523
  */
396
524
  type IResolvePageResponse = IBaseApiResponse<{
397
525
  page: IPageContent;
526
+ /** Live-sync block next to the page (contract C6); optional on older servers. */
527
+ sync?: ISyncBlock | null;
398
528
  }>;
399
529
 
400
530
  /**
@@ -1803,7 +1933,23 @@ declare const ENDPOINTS: {
1803
1933
  readonly RESTORE: (tableName: string, recordId: number) => string;
1804
1934
  readonly VERSION_FILE: (tableName: string, recordId: number, version: number, fieldKey: string) => string;
1805
1935
  };
1936
+ /**
1937
+ * Page edit lock (live sync, C9). Route permission `admin.page.update` plus
1938
+ * the update grant on the page. `LOCK` serves three methods: GET (status),
1939
+ * POST (acquire or renew) and DELETE (release); `TAKE_OVER` is POST only.
1940
+ * Every route answers an `IPageLockStatus`.
1941
+ */
1942
+ readonly ADMIN_PAGE_LOCK: {
1943
+ readonly LOCK: (pageId: number) => string;
1944
+ readonly TAKE_OVER: (pageId: number) => string;
1945
+ };
1806
1946
  };
1947
+ /** Header on every response to a signed-in caller: the access stamp (live sync, C5). */
1948
+ declare const HEADER_ACL_STAMP = "X-Acl-Stamp";
1949
+ /** Request header `X-Page-View: 1`: the only page fetch per visit that counts as a view (C7, F135). */
1950
+ declare const HEADER_PAGE_VIEW = "X-Page-View";
1951
+ /** Draft-version header: sent with every page draft write, returned on page reads and writes (C8). */
1952
+ declare const HEADER_PAGE_VERSION = "X-Page-Version";
1807
1953
  /** Header set the backend reads to switch page-access mode + condition platform var. */
1808
1954
  declare const HEADER_CLIENT_TYPE = "X-Client-Type";
1809
1955
  declare const CLIENT_TYPE_WEB = "web";
@@ -2973,6 +3119,78 @@ declare function isMenuItemActiveOnMobile(item: INavigationMenuItem, pathname: s
2973
3119
  */
2974
3120
  declare function expandedIdsForActiveTrail(items: INavigationMenuItem[], pathname: string, platform: 'web' | 'mobile'): Set<number>;
2975
3121
 
3122
+ /**
3123
+ * Small, pure helpers both clients use to read a change message and match it
3124
+ * to what is on screen (contracts C1 and C6). They hold no state, touch no
3125
+ * network and never decide access: they only compare tags the server sent
3126
+ * with tags the server put into the page payload.
3127
+ */
3128
+
3129
+ /** Largest random delay before a refetch caused by a `changed` message (decision "instant"). */
3130
+ declare const SYNC_CHANGED_MAX_DELAY_MS = 300;
3131
+ /** Largest random delay before the one refetch at a page's `valid_until`. */
3132
+ declare const SYNC_VALID_UNTIL_MAX_DELAY_MS = 2000;
3133
+ /** Why a refetch is scheduled: a pushed change, or the page's own `valid_until`. */
3134
+ type TSyncRefetchKind = 'changed' | 'valid_until';
3135
+ /**
3136
+ * Validates the data of a `changed` event (C1).
3137
+ *
3138
+ * Returns `null` when the data is not an object, `v` is not
3139
+ * {@link SYNC_MESSAGE_VERSION} (a higher version is ignored by design), `tags`
3140
+ * is not a list, or no known tag is left. Unknown tags are dropped and
3141
+ * duplicates are removed, so `{ v: 1, tags: ['page:12', 'foo:1'] }` gives
3142
+ * `{ v: 1, tags: ['page:12'] }`. A message that carries only unknown tags
3143
+ * returns `null` because there is nothing a client could act on.
3144
+ */
3145
+ declare function parseSyncMessage(data: unknown): ISyncChangeMessage | null;
3146
+ /**
3147
+ * Same as {@link parseSyncMessage} for the raw `data` string of a server-sent
3148
+ * event. Invalid JSON returns `null`.
3149
+ */
3150
+ declare function parseSyncMessageJson(raw: string): ISyncChangeMessage | null;
3151
+ /**
3152
+ * True when a page payload's `sync.depends_on` names any of the message's tags (C6).
3153
+ *
3154
+ * Only tags that a page payload can list match here: `page:<id>`,
3155
+ * `page_draft:<id>`, `table:<id>` and `global_values`. The other tags are not
3156
+ * page dependencies and are handled by the client on their own:
3157
+ *
3158
+ * - `acl` and `navigation` affect every page the caller may see, so the client
3159
+ * invalidates all page queries and the navigation (it does not ask each page).
3160
+ * - `page_lock:<id>`, `section:<id>` and `asset:<id>` are editor-side tags;
3161
+ * the admin screens that show them refetch their own queries.
3162
+ *
3163
+ * A page without a `sync` block (older server, error payload) never matches.
3164
+ */
3165
+ declare function pageDependsOn(sync: ISyncBlock | null | undefined, tags: readonly string[]): boolean;
3166
+ /**
3167
+ * Random delay in milliseconds before a refetch: 0 to 300 for a `changed`
3168
+ * message, 0 to 2000 for `valid_until`. It spreads many clients over a short
3169
+ * time without making a change feel slow. `random` is injectable for tests.
3170
+ */
3171
+ declare function syncRefetchDelayMs(kind: TSyncRefetchKind, random?: () => number): number;
3172
+
3173
+ /**
3174
+ * Unwrap a page API response so the live-sync block travels with the page.
3175
+ *
3176
+ * The backend answers `{ data: { page, sync } }`: the sync block (contract C6)
3177
+ * sits next to the page, not inside it. Clients that cache the page read
3178
+ * `page.sync` for tag matching and `valid_until`, so every unwrap goes through
3179
+ * {@link pageFromPayload}.
3180
+ */
3181
+
3182
+ /** The `data` of a page response (`/pages/by-keyword`, `/pages/resolve`). */
3183
+ interface IPagePayload {
3184
+ page?: IPageContent | null;
3185
+ sync?: ISyncBlock | null;
3186
+ }
3187
+ /**
3188
+ * The page of a response's `data`, carrying the response's `sync` block.
3189
+ * Prefers `payload.sync`, falls back to `page.sync`. Returns `null` when there
3190
+ * is no page. With no sync at all, returns the page unchanged.
3191
+ */
3192
+ declare function pageFromPayload(payload: IPagePayload | null | undefined): IPageContent | null;
3193
+
2976
3194
  /**
2977
3195
  * Parse the unified `spacing` field. The CMS
2978
3196
  * stores this as a JSON string with optional keys for each side:
@@ -3034,4 +3252,4 @@ declare function transformPageData(apiPage: IRawPage): IPageItem;
3034
3252
  */
3035
3253
  declare function transformPagesData(pages: IRawPage[] | null | undefined): IPageItem[];
3036
3254
 
3037
- export { API_VERSION_PREFIX, type AdvisoryAffected, type AdvisoryFeed, type AdvisorySeverity, type BackupManifest, type BackupRetentionPolicy, type BackupSchedulePolicy, type BundledPluginRef, CLASS_PATTERNS, CLASS_REMAP, CLIENT_TYPE_MOBILE, CLIENT_TYPE_MOBILE_AND_WEB, CLIENT_TYPE_WEB, CMS_APP_PRIMARY_ROLES, CMS_APP_ROLES, COLOR_NAMES, type CheckSeverity, type CompatibilityRules, type CoreRelease, DEFAULT_MOBILE_ICON, DEFAULT_RATE_LIMIT_MESSAGE, DEFAULT_WEB_FOOTER_PRESET, DEFAULT_WEB_HEADER_PRESET, type DatabaseMigrationMetadata, ENDPOINTS, FIELDS_MAP_STYLE_CONFIG, FORM_LIST_MAX_PAGE, FORM_LIST_MAX_ROUTE_PARAMS, FORM_LIST_MAX_ROUTE_VALUE_LENGTH, FORM_LIST_MAX_SORTS, FORM_LIST_MAX_VALUE_BYTES, FORM_LIST_MODES, FORM_LIST_SEARCH_MAX_LENGTH, FORM_LIST_SEARCH_MIN_LENGTH, FORM_RECORD_PREFILL_SKIP_FIELDS, type FrontendRelease, HEADER_CLIENT_TYPE, IAboutItem, type IAssetSource, IBaseApiResponse, type IBasePageInfo, type IBasePageSection, type IBranchNavContext, type IBranchNavSegment, type IBreadcrumbEntry, type IClassPattern, type IClassRemap, type ICmsApp, type ICmsAppAssignedPage, type ICmsAppDetail, type ICmsAppPage, type ICmsAppSummary, type ICompatibilityError, type IConditionContext, IContentField, type IEvaluatedCondition, type IFieldsMapStyleConfig, type IForgotPasswordRequest, type IForgotPasswordResponse, IFormInvalidData, type IFormListCacheScope, type IFormListFailure, IFormListFilesCell, IFormListRestoreBlockedData, IFormListSort, type IFormListUrlError, type IFormListUrlRules, type IFormListUrlState, type IFormRecordPrefill, type IFormRecordPrefillChild, type IFormRecordPrefillSection, type IFormRecordPrefillTranslatedValue, IFormStaleVersionData, type IFrontendUpdatePreflight, type IFrontendUpdatePreflightResponse, type IFrontendUpdateReleases, type IFrontendUpdateReleasesResponse, type IFrontendUpdateRequest, type IFrontendUpdateRequestResponse, type IGetPageResponse, type IGetPagesResponse, type IHeaderLayerSplit, type IInlineNode, type IJwtPayload, type ILanguage, type ILanguageItem, type ILanguagePreference, type ILanguagePreferenceUpdateResponse, type ILanguagesResponse, type ILoginRequest, type ILoginSuccessData, type ILoginSuccessResponse, type ILogoutSuccessResponse, type IMaintenanceSetRequest, type IMenuSearchHit, type IMobileAdapterBaseProps, type IMobileButtonProps, type IMobileCardProps, type IMobileCheckboxProps, type IMobileContainerProps, type IMobileIconEntry, type IMobileInputProps, type IMobileModalProps, type IMobilePreviewExchangeData, type IMobilePreviewExchangeRequest, type IMobilePreviewExchangeResponse, type IMobilePreviewSessionData, type IMobilePreviewSessionRequest, type IMobilePreviewSessionResponse, type IMobilePreviewUpdatePreflight, type IMobilePreviewUpdatePreflightResponse, type IMobilePreviewUpdateReleases, type IMobilePreviewUpdateReleasesResponse, type IMobilePreviewUpdateRequest, type IMobilePreviewUpdateRequestResponse, type IMobileSelectOption, type IMobileSelectProps, type IMobileSwitchProps, type IMobileTextProps, type IMobileTextareaProps, type IMobileUiAdapters, type INavigationBranding, type INavigationBundle, type INavigationBundleImportHints, type INavigationBundleItem, type INavigationBundleItemTranslation, type INavigationBundleMenu, type INavigationMenu, type INavigationMenuItem, type INavigationPayload, type INavigationResolvedPageRef, type INavigationSearchConfig, type INavigationStartupConfig, type IOptionCatalogEntry, type IOptionLabelMap, type IOptionStyleConfig, type IPageAccessTypeInfo, type IPageContent, type IPageField, type IPageFieldTranslation, type IPageFieldsData, type IPageItem, type IPageRoute, type IPageSectionWithFields, type IPageSectionsData, type IPagesResolveParams, type IPreviewNavigateCommand, type IPreviewNavigatedMessage, type IPreviewPreferences, type IPreviewPreferencesChangedMessage, type IPreviewReadyMessage, type IPreviewSetPreferencesCommand, type IRefreshRequest, type IRefreshSuccessResponse, type IResetPasswordRequest, type IResetPasswordResponse, type IResolvePageResponse, type IResolvedOption, type ISpacingValue, type ISystemAdvisories, type ISystemAdvisoriesResponse, type ISystemAdvisory, type ISystemAdvisoryAffected, type ISystemHealth, type ISystemHealthComponent, type ISystemHealthResponse, type ISystemInstalledPlugin, type ISystemMaintenance, type ISystemMaintenanceResponse, type ISystemVersion, type ISystemVersionResponse, type ITwoFactorRequiredData, type ITwoFactorRequiredResponse, type ITwoFactorVerifyRequest, type ITwoFactorVerifySuccessResponse, type IUpdatePreflight, type IUpdatePreflightCheck, type IUpdatePreflightOption, type IUpdatePreflightResponse, type IUpdateRelease, type IUpdateReleases, type IUpdateReleasesResponse, type IUpdateRequest, type IUpdateRequestResponse, type IUpdateStatus, type IUpdateStatusManager, type IUpdateStatusResponse, type IUpdateStep, type IUserData, type IUserDataResponse, type IWebFooterPresetOption, type IWebHeaderPresetOption, type ImageRef, type InstalledPlugin, type InstanceImages, type InstanceLock, type InstanceManifest, type InstanceMode, type InstanceResourceConfig, type InstanceRouting, type InstanceStatus, type InstanceVersions, type InventoryInstanceEntry, LITERAL_CLASSES, type LockPluginEntry, type LockServiceEntry, MOBILE_ICON_NAMES, MOBILE_ICON_SET, MOBILE_PREVIEW_ENDPOINTS, type MobilePreviewRelease, NAVIGATION_BRANDING_LOGO_HEIGHTS, NAVIGATION_BUNDLE_FORMAT, NAVIGATION_BUNDLE_VERSION, NAVIGATION_HEADER_LAYER_TOP, OPTION_STYLE_CONFIGS, PERMISSIONS, PREVIEW_BRIDGE_MESSAGE, PREVIEW_PARENT_ORIGIN_PARAM, PREVIEW_SHELL_PARAM, type PluginRelease, type PreflightCheck, type PreflightOption, type PreflightStatus, RELEASE_CHANNELS, type RegistryIndex, type RegistryReleaseRef, type ReleaseChannel, type RuntimeServicePolicy, type RuntimeServiceRange, SIZE_VALUES, SPACING_VALUES, SYSTEM_ENDPOINTS, type SchedulerRelease, type SecurityAdvisory, type ServerInventory, type ServiceBackendCompatibility, type SignatureBlock, type SupportBundleMeta, type TCalcedValues, type TClassDecision, type TClientType, type TCmsAppRole, TFormListMode, type TFormListUrlChange, type TFormListUrlErrorReason, type TFormListUrlParse, type TFormRecordPrefillFieldValue, type TFormRecordPrefillFileValue, THeroUiButtonVariant, THeroUiSize, TMobileButtonFeedback, TMobileFieldVariant, type TMobilePagePresentation, TMobileSelectPresentation, type TNavigationBrandingSize, type TNavigationBrandingVariant, type TNavigationBundleExportMode, type TNavigationChildrenNavMode, type TNavigationHeaderLayer, type TNavigationMenuItemType, type TNavigationMenuKey, type TNavigationMobileStartSource, type TNavigationSearchMode, type TNavigationStartMode, type TOptionStyleName, type TPermission, type TPlatform, type TPreviewBridgeMessage, type TPreviewBridgeMessageType, type TPreviewColorScheme, type TPreviewFrameSource, TStyleName, type TSystemAdvisorySeverity, type TSystemComponentStatus, type TSystemDeployment, type TSystemHealthOverall, type TUpdateCheckSeverity, type TUpdateKind, type TUpdateOperationStatus, type TUpdatePreflightStatus, type TWebFooterPreset, type TWebHeaderPreset, type TrustLevel, type TrustedKey, type TrustedKeysFile, type UpdatePreflightResult, WEB_FOOTER_PRESET_OPTIONS, WEB_FOOTER_PRESET_VALUES, WEB_HEADER_PRESET_OPTIONS, WEB_HEADER_PRESET_VALUES, type WorkerRelease, applyFormListUrlChange, arePreviewPreferencesEqual, asFilesCell, asRecordVersion, buildConditionContext, buildPagesResolvePath, buildPagesResolveQuery, buildPagesResolveUrl, buildPublicPathFromRoute, clampMenuItemsAtDepth, classifyClass, classifyClassString, collectPageIdsFromMenuItems, emptyFormListUrlState, encodeFormListQuery, evaluateCondition, expandedIdsForActiveTrail, findMenuItemByPageId, findNearestBottomTabMenuItemForPage, findPageRefInNavigationPayload, findRemap, flattenFooterItems, flattenFormRecordPrefillValues, flattenMenuItems, flattenNavigationMenuItems, footerColumnItems, footerGroupLinks, footerStandaloneItems, formListCacheKey, formListQueryString, formListRouteQuery, formatRateLimitMessage, getFormInvalidData, getFormListFailure, getFormListRestoreBlocked, getFormStaleVersion, getNavigationItemAriaLabel, getNavigationItemHref, getNavigationItemKeyword, getNavigationItemLabel, getNavigationItemMobileHref, getRateLimitRetryAfter, hasInlineFormatting, isBottomTabMenuItemActive, isDoubleWebHeaderPreset, isFormListParam, isMenuItemActiveOnMobile, isMenuItemActiveOnWeb, isMobileIconName, isNavigationBundleVersionSupported, isOnAnyMobileMenu, isOnAnyMobileMenuFromPayload, isPageInMenuTree, isPageInResolvedMenus, isPageOnAnyMenu, isPageOnMobileMenu, isPageOnWebMenu, isPreviewBridgeMessage, isWebFooterPreset, isWebHeaderPreset, matchesMobilePath, matchesWebPath, mergeHeaderLayers, nextSortOnHeaderClick, normalizePagesResolvePath, pageUrlToMobileRoute, parseFieldsMapCatalog, parseFieldsMapLabels, parseFormListQuery, parseFormRecordPrefill, parseInlineRich, parseOptionCatalog, parseOptionCodes, parseOptionLabels, parseSpacing, pickFormListQuery, previewKeywordFromPath, replaceCalcedValues, resolveAssetSources, resolveAssetUrl, resolveBranchNavGroup, resolveBrandingPresentation, resolveFieldsMapLabel, resolveHolderRedirectPath, resolveMenuMaxDepth, resolveMobileIcon, resolveMobilePagePresentation, resolveMobileSegmentGroup, resolveMobileStartupKeyword, resolveMobileStartupRoute, resolveOptionCodesLabels, resolveOptionLabel, resolveOptionValueLabels, resolveOptions, resolveWebBranchNavContext, resolveWebBranchNavGroup, resolveWebFooterPreset, resolveWebHeaderPreset, resolveWebStartupPath, searchMenuPagesInPayload, serializeFieldsMapCatalog, serializeFieldsMapLabels, spacingToClasses, splitHeaderLayers, stripHtmlToText, transformPageData, transformPagesData };
3255
+ export { API_VERSION_PREFIX, type AdvisoryAffected, type AdvisoryFeed, type AdvisorySeverity, type BackupManifest, type BackupRetentionPolicy, type BackupSchedulePolicy, type BundledPluginRef, CLASS_PATTERNS, CLASS_REMAP, CLIENT_TYPE_MOBILE, CLIENT_TYPE_MOBILE_AND_WEB, CLIENT_TYPE_WEB, CMS_APP_PRIMARY_ROLES, CMS_APP_ROLES, COLOR_NAMES, type CheckSeverity, type CompatibilityRules, type CoreRelease, DEFAULT_MOBILE_ICON, DEFAULT_RATE_LIMIT_MESSAGE, DEFAULT_WEB_FOOTER_PRESET, DEFAULT_WEB_HEADER_PRESET, type DatabaseMigrationMetadata, ENDPOINTS, FIELDS_MAP_STYLE_CONFIG, FORM_LIST_MAX_PAGE, FORM_LIST_MAX_ROUTE_PARAMS, FORM_LIST_MAX_ROUTE_VALUE_LENGTH, FORM_LIST_MAX_SORTS, FORM_LIST_MAX_VALUE_BYTES, FORM_LIST_MODES, FORM_LIST_SEARCH_MAX_LENGTH, FORM_LIST_SEARCH_MIN_LENGTH, FORM_RECORD_PREFILL_SKIP_FIELDS, type FrontendRelease, HEADER_ACL_STAMP, HEADER_CLIENT_TYPE, HEADER_PAGE_VERSION, HEADER_PAGE_VIEW, IAboutItem, type IAssetSource, type IAuthEventsBootstrap, IBaseApiResponse, type IBasePageInfo, type IBasePageSection, type IBranchNavContext, type IBranchNavSegment, type IBreadcrumbEntry, type IClassPattern, type IClassRemap, type ICmsApp, type ICmsAppAssignedPage, type ICmsAppDetail, type ICmsAppPage, type ICmsAppSummary, type ICompatibilityError, type IConditionContext, IContentField, type IEvaluatedCondition, type IFieldsMapStyleConfig, type IForgotPasswordRequest, type IForgotPasswordResponse, IFormInvalidData, type IFormListCacheScope, type IFormListFailure, IFormListFilesCell, IFormListRestoreBlockedData, IFormListSort, type IFormListUrlError, type IFormListUrlRules, type IFormListUrlState, type IFormRecordPrefill, type IFormRecordPrefillChild, type IFormRecordPrefillSection, type IFormRecordPrefillTranslatedValue, IFormStaleVersionData, type IFrontendUpdatePreflight, type IFrontendUpdatePreflightResponse, type IFrontendUpdateReleases, type IFrontendUpdateReleasesResponse, type IFrontendUpdateRequest, type IFrontendUpdateRequestResponse, type IGetPageResponse, type IGetPagesResponse, type IHeaderLayerSplit, type IInlineNode, type IJwtPayload, type ILanguage, type ILanguageItem, type ILanguagePreference, type ILanguagePreferenceUpdateResponse, type ILanguagesResponse, type ILoginRequest, type ILoginSuccessData, type ILoginSuccessResponse, type ILogoutSuccessResponse, type IMaintenanceSetRequest, type IMenuSearchHit, type IMobileAdapterBaseProps, type IMobileButtonProps, type IMobileCardProps, type IMobileCheckboxProps, type IMobileContainerProps, type IMobileIconEntry, type IMobileInputProps, type IMobileModalProps, type IMobilePreviewExchangeData, type IMobilePreviewExchangeRequest, type IMobilePreviewExchangeResponse, type IMobilePreviewSessionData, type IMobilePreviewSessionRequest, type IMobilePreviewSessionResponse, type IMobilePreviewUpdatePreflight, type IMobilePreviewUpdatePreflightResponse, type IMobilePreviewUpdateReleases, type IMobilePreviewUpdateReleasesResponse, type IMobilePreviewUpdateRequest, type IMobilePreviewUpdateRequestResponse, type IMobileSelectOption, type IMobileSelectProps, type IMobileSwitchProps, type IMobileTextProps, type IMobileTextareaProps, type IMobileUiAdapters, type INavigationBranding, type INavigationBundle, type INavigationBundleImportHints, type INavigationBundleItem, type INavigationBundleItemTranslation, type INavigationBundleMenu, type INavigationMenu, type INavigationMenuItem, type INavigationPayload, type INavigationResolvedPageRef, type INavigationSearchConfig, type INavigationStartupConfig, type IOptionCatalogEntry, type IOptionLabelMap, type IOptionStyleConfig, type IPageAccessTypeInfo, type IPageContent, type IPageDraftVersioned, type IPageField, type IPageFieldTranslation, type IPageFieldsData, type IPageItem, type IPageLockHolder, type IPageLockStatus, type IPagePayload, type IPageRoute, type IPageSectionWithFields, type IPageSectionsData, type IPagesResolveParams, type IPreviewNavigateCommand, type IPreviewNavigatedMessage, type IPreviewPreferences, type IPreviewPreferencesChangedMessage, type IPreviewReadyMessage, type IPreviewSetPreferencesCommand, type IRefreshRequest, type IRefreshSuccessResponse, type IResetPasswordRequest, type IResetPasswordResponse, type IResolvePageResponse, type IResolvedOption, type ISpacingValue, type IStalePageVersionData, type ISyncBlock, type ISyncChangeMessage, type ISystemAdvisories, type ISystemAdvisoriesResponse, type ISystemAdvisory, type ISystemAdvisoryAffected, type ISystemHealth, type ISystemHealthComponent, type ISystemHealthResponse, type ISystemInstalledPlugin, type ISystemMaintenance, type ISystemMaintenanceResponse, type ISystemVersion, type ISystemVersionResponse, type ITwoFactorRequiredData, type ITwoFactorRequiredResponse, type ITwoFactorVerifyRequest, type ITwoFactorVerifySuccessResponse, type IUpdatePreflight, type IUpdatePreflightCheck, type IUpdatePreflightOption, type IUpdatePreflightResponse, type IUpdateRelease, type IUpdateReleases, type IUpdateReleasesResponse, type IUpdateRequest, type IUpdateRequestResponse, type IUpdateStatus, type IUpdateStatusManager, type IUpdateStatusResponse, type IUpdateStep, type IUserData, type IUserDataResponse, type IWebFooterPresetOption, type IWebHeaderPresetOption, type ImageRef, type InstalledPlugin, type InstanceImages, type InstanceLock, type InstanceManifest, type InstanceMode, type InstanceResourceConfig, type InstanceRouting, type InstanceStatus, type InstanceVersions, type InventoryInstanceEntry, LITERAL_CLASSES, LOCK_IDLE_ENDED_ERROR, type LockPluginEntry, type LockServiceEntry, MOBILE_ICON_NAMES, MOBILE_ICON_SET, MOBILE_PREVIEW_ENDPOINTS, type MobilePreviewRelease, NAVIGATION_BRANDING_LOGO_HEIGHTS, NAVIGATION_BUNDLE_FORMAT, NAVIGATION_BUNDLE_VERSION, NAVIGATION_HEADER_LAYER_TOP, OPTION_STYLE_CONFIGS, PAGE_LOCKED_ERROR, PAGE_VERSION_REQUIRED_ERROR, PERMISSIONS, PREVIEW_BRIDGE_MESSAGE, PREVIEW_PARENT_ORIGIN_PARAM, PREVIEW_SHELL_PARAM, type PluginRelease, type PreflightCheck, type PreflightOption, type PreflightStatus, RELEASE_CHANNELS, type RegistryIndex, type RegistryReleaseRef, type ReleaseChannel, type RuntimeServicePolicy, type RuntimeServiceRange, SIZE_VALUES, SPACING_VALUES, STALE_PAGE_VERSION_ERROR, SYNC_CHANGED_MAX_DELAY_MS, SYNC_EVENT_NAME, SYNC_MESSAGE_VERSION, SYNC_TAG_PATTERN, SYNC_VALID_UNTIL_MAX_DELAY_MS, SYSTEM_ENDPOINTS, type SchedulerRelease, type SecurityAdvisory, type ServerInventory, type ServiceBackendCompatibility, type SignatureBlock, type SupportBundleMeta, type TCalcedValues, type TClassDecision, type TClientType, type TCmsAppRole, TFormListMode, type TFormListUrlChange, type TFormListUrlErrorReason, type TFormListUrlParse, type TFormRecordPrefillFieldValue, type TFormRecordPrefillFileValue, THeroUiButtonVariant, THeroUiSize, TMobileButtonFeedback, TMobileFieldVariant, type TMobilePagePresentation, TMobileSelectPresentation, type TNavigationBrandingSize, type TNavigationBrandingVariant, type TNavigationBundleExportMode, type TNavigationChildrenNavMode, type TNavigationHeaderLayer, type TNavigationMenuItemType, type TNavigationMenuKey, type TNavigationMobileStartSource, type TNavigationSearchMode, type TNavigationStartMode, type TOptionStyleName, type TPermission, type TPlatform, type TPreviewBridgeMessage, type TPreviewBridgeMessageType, type TPreviewColorScheme, type TPreviewFrameSource, TStyleName, type TSyncRefetchKind, type TSyncTag, type TSystemAdvisorySeverity, type TSystemComponentStatus, type TSystemDeployment, type TSystemHealthOverall, type TUpdateCheckSeverity, type TUpdateKind, type TUpdateOperationStatus, type TUpdatePreflightStatus, type TWebFooterPreset, type TWebHeaderPreset, type TrustLevel, type TrustedKey, type TrustedKeysFile, type UpdatePreflightResult, WEB_FOOTER_PRESET_OPTIONS, WEB_FOOTER_PRESET_VALUES, WEB_HEADER_PRESET_OPTIONS, WEB_HEADER_PRESET_VALUES, type WorkerRelease, applyFormListUrlChange, arePreviewPreferencesEqual, asFilesCell, asRecordVersion, buildConditionContext, buildPagesResolvePath, buildPagesResolveQuery, buildPagesResolveUrl, buildPublicPathFromRoute, clampMenuItemsAtDepth, classifyClass, classifyClassString, collectPageIdsFromMenuItems, emptyFormListUrlState, encodeFormListQuery, evaluateCondition, expandedIdsForActiveTrail, findMenuItemByPageId, findNearestBottomTabMenuItemForPage, findPageRefInNavigationPayload, findRemap, flattenFooterItems, flattenFormRecordPrefillValues, flattenMenuItems, flattenNavigationMenuItems, footerColumnItems, footerGroupLinks, footerStandaloneItems, formListCacheKey, formListQueryString, formListRouteQuery, formatRateLimitMessage, getFormInvalidData, getFormListFailure, getFormListRestoreBlocked, getFormStaleVersion, getNavigationItemAriaLabel, getNavigationItemHref, getNavigationItemKeyword, getNavigationItemLabel, getNavigationItemMobileHref, getRateLimitRetryAfter, hasInlineFormatting, isBottomTabMenuItemActive, isDoubleWebHeaderPreset, isFormListParam, isMenuItemActiveOnMobile, isMenuItemActiveOnWeb, isMobileIconName, isNavigationBundleVersionSupported, isOnAnyMobileMenu, isOnAnyMobileMenuFromPayload, isPageInMenuTree, isPageInResolvedMenus, isPageOnAnyMenu, isPageOnMobileMenu, isPageOnWebMenu, isPreviewBridgeMessage, isWebFooterPreset, isWebHeaderPreset, matchesMobilePath, matchesWebPath, mergeHeaderLayers, nextSortOnHeaderClick, normalizePagesResolvePath, pageDependsOn, pageFromPayload, pageUrlToMobileRoute, parseFieldsMapCatalog, parseFieldsMapLabels, parseFormListQuery, parseFormRecordPrefill, parseInlineRich, parseOptionCatalog, parseOptionCodes, parseOptionLabels, parseSpacing, parseSyncMessage, parseSyncMessageJson, pickFormListQuery, previewKeywordFromPath, replaceCalcedValues, resolveAssetSources, resolveAssetUrl, resolveBranchNavGroup, resolveBrandingPresentation, resolveFieldsMapLabel, resolveHolderRedirectPath, resolveMenuMaxDepth, resolveMobileIcon, resolveMobilePagePresentation, resolveMobileSegmentGroup, resolveMobileStartupKeyword, resolveMobileStartupRoute, resolveOptionCodesLabels, resolveOptionLabel, resolveOptionValueLabels, resolveOptions, resolveWebBranchNavContext, resolveWebBranchNavGroup, resolveWebFooterPreset, resolveWebHeaderPreset, resolveWebStartupPath, searchMenuPagesInPayload, serializeFieldsMapCatalog, serializeFieldsMapLabels, spacingToClasses, splitHeaderLayers, stripHtmlToText, syncRefetchDelayMs, transformPageData, transformPagesData };