@selfhelp/shared 1.14.24 → 1.15.1
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 +78 -0
- package/dist/index.d.mts +204 -4
- package/dist/index.d.ts +204 -4
- package/dist/index.js +22 -1
- package/dist/index.mjs +21 -1
- package/dist/{manifest-C8sBTLJb.d.mts → manifest-8YXAk-4o.d.mts} +8 -0
- package/dist/{manifest-C8sBTLJb.d.ts → manifest-8YXAk-4o.d.ts} +8 -0
- package/dist/plugin-sdk/index.d.mts +39 -2
- package/dist/plugin-sdk/index.d.ts +39 -2
- package/dist/plugin-sdk/index.js +13 -0
- package/dist/plugin-sdk/index.mjs +11 -0
- package/dist/testing/index.d.mts +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/plugin-sdk/__tests__/version.test.ts +40 -0
- package/src/plugin-sdk/index.ts +2 -0
- package/src/plugin-sdk/manifest.ts +8 -0
- package/src/plugin-sdk/registry.ts +11 -0
- package/src/plugin-sdk/version.ts +38 -0
- package/src/types/__tests__/distribution.test.ts +55 -1
- package/src/types/api/__tests__/system.test.ts +83 -0
- package/src/types/api/index.ts +1 -0
- package/src/types/api/mobile-preview.ts +71 -0
- package/src/types/api/system.ts +83 -3
- package/src/types/distribution.ts +67 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,84 @@ All notable changes to `@selfhelp/shared` will be documented in this file.
|
|
|
9
9
|
|
|
10
10
|
This project follows semantic versioning.
|
|
11
11
|
|
|
12
|
+
## v1.15.1
|
|
13
|
+
|
|
14
|
+
Mobile preview RN/Expo provenance parity **plus the CMS-driven mobile-preview
|
|
15
|
+
update contract**. Promotes the React Native / Expo SDK versions to **top-level**
|
|
16
|
+
canonical fields on the mobile-preview release descriptor and adds the matching
|
|
17
|
+
plugin-compatibility axes, so the SelfHelp Manager's dual-axis plugin gate reads
|
|
18
|
+
one canonical location across every repo (mobile CI emitter, registry assembler,
|
|
19
|
+
manager schema). It also adds the System-Maintenance contracts that let the CMS
|
|
20
|
+
show the provisioned preview version and request a compatible mobile-preview
|
|
21
|
+
update/enable (mirroring the frontend-only update flow). All additions are
|
|
22
|
+
additive (optional fields / new types / a widened union arm), so `^1.14.25`
|
|
23
|
+
consumers are unaffected.
|
|
24
|
+
|
|
25
|
+
### Added (additive, non-breaking)
|
|
26
|
+
|
|
27
|
+
- **Mobile-preview update flow contracts** (`types/api/system.ts`):
|
|
28
|
+
`SYSTEM_ENDPOINTS.UPDATE_MOBILE_PREVIEW_{RELEASES,PREFLIGHT,REQUEST}`, the
|
|
29
|
+
`IMobilePreviewUpdateRequest` body, and the `IMobilePreviewUpdate{Releases,
|
|
30
|
+
Preflight,Request}Response` aliases — the CMS analogue of the frontend-only
|
|
31
|
+
update surface. Requesting a preview onto an instance that has none doubles as
|
|
32
|
+
the enable/bootstrap path the SelfHelp Manager provisions.
|
|
33
|
+
- **`ISystemVersion.mobile_preview_version`** — the provisioned
|
|
34
|
+
`selfhelp-mobile-preview` image version surfaced in System Maintenance
|
|
35
|
+
(`unknown` until the manager stamps `SELFHELP_MOBILE_PREVIEW_VERSION`,
|
|
36
|
+
`not_installed` when no preview is provisioned).
|
|
37
|
+
- **`IUpdateStatus.target_mobile_preview_version`** — the targeted preview
|
|
38
|
+
version for a `mobile-preview`-kind operation (`null` otherwise).
|
|
39
|
+
|
|
40
|
+
### Changed (additive, non-breaking)
|
|
41
|
+
|
|
42
|
+
- **`TUpdateKind` widened to include `'mobile-preview'`** (`types/api/system.ts`)
|
|
43
|
+
alongside `'core' | 'frontend'`, and **`ICompatibilityError.component`** gains
|
|
44
|
+
the `'mobile-preview'` arm so the standardized compatibility-error object can
|
|
45
|
+
describe a preview ⇄ core block. Existing `'core' | 'frontend'` consumers keep
|
|
46
|
+
working (the new arm is only emitted for preview operations).
|
|
47
|
+
|
|
48
|
+
- **`MobilePreviewRelease.reactNativeVersion?` + `.expoSdkVersion?`**
|
|
49
|
+
(`types/distribution.ts`) — the canonical top-level React Native / Expo SDK
|
|
50
|
+
versions the image was built with, mirroring the registry
|
|
51
|
+
`mobile-preview-release.schema.json` and the manager's internal schema. The
|
|
52
|
+
existing `builtFrom.{reactNative,expoSdk}` stay as raw build provenance; the
|
|
53
|
+
manager gates a plugin's RN/Expo range against the top-level values.
|
|
54
|
+
- **`PluginRelease.compatibility.reactNative?` + `.expoSdk?`**
|
|
55
|
+
(`types/distribution.ts`) — the RN/Expo runtime axes a plugin's native bundle
|
|
56
|
+
targets, gated against the resolved preview image's `reactNativeVersion` /
|
|
57
|
+
`expoSdkVersion` (parallel to the existing `compatibility.mobile` renderer
|
|
58
|
+
axis; web-only plugins omit all three).
|
|
59
|
+
|
|
60
|
+
## v1.14.25
|
|
61
|
+
|
|
62
|
+
Mobile preview service contracts. Adds the cross-repo types for the new
|
|
63
|
+
`selfhelp-mobile-preview` image + the CMS mobile preview session auth surface,
|
|
64
|
+
and introduces the mobile-renderer compatibility axis consumed by the SelfHelp
|
|
65
|
+
Manager preflight. All additions are additive (optional fields / new types), so
|
|
66
|
+
existing consumers are unaffected.
|
|
67
|
+
|
|
68
|
+
### Added
|
|
69
|
+
|
|
70
|
+
- **`MobilePreviewRelease`** (`types/distribution.ts`) — the
|
|
71
|
+
`selfhelp-mobile-preview-release` descriptor (peer of `FrontendRelease`),
|
|
72
|
+
including `mobileRendererVersion` and the curated `bundledPlugins[]`
|
|
73
|
+
(`BundledPluginRef`).
|
|
74
|
+
- **Preview session DTOs** (`types/api/mobile-preview.ts`) —
|
|
75
|
+
`IMobilePreviewSessionRequest/Response`, `IMobilePreviewExchangeRequest/Response`,
|
|
76
|
+
and `MOBILE_PREVIEW_ENDPOINTS` (admin mint + public exchange).
|
|
77
|
+
- **`MOBILE_RENDERER_VERSION`** constant + **`isMobileRendererCompatible()`**
|
|
78
|
+
helper (`plugin-sdk`) — the mobile renderer contract version a plugin's
|
|
79
|
+
`compatibility.mobile` range targets.
|
|
80
|
+
|
|
81
|
+
### Changed (additive, non-breaking)
|
|
82
|
+
|
|
83
|
+
- `RegistryIndex.mobilePreview?` + `IPluginRegistry.mobilePreview?` — additive
|
|
84
|
+
release-ref array (registry `schemaVersion` 1.1; older managers ignore it).
|
|
85
|
+
- `InstanceVersions.mobilePreview?`, `InstanceImages.mobilePreview?`,
|
|
86
|
+
`InstanceLock.core.mobilePreviewImageDigest?` — per-instance pin fields.
|
|
87
|
+
- `PluginRelease.compatibility.mobile?`, `IPluginRelease.compatibility.mobile?`,
|
|
88
|
+
and `IPluginManifestCompatibility.mobile?` — the new mobile-renderer axis.
|
|
89
|
+
|
|
12
90
|
## v1.14.24
|
|
13
91
|
|
|
14
92
|
Semantic mapper cleanup — remove the legacy `shared_intent` field and related
|
package/dist/index.d.mts
CHANGED
|
@@ -396,9 +396,17 @@ declare const SYSTEM_ENDPOINTS: {
|
|
|
396
396
|
readonly UPDATE_FRONTEND_RELEASES: "/cms-api/v1/admin/system/update/frontend/releases";
|
|
397
397
|
readonly UPDATE_FRONTEND_PREFLIGHT: "/cms-api/v1/admin/system/update/frontend/preflight";
|
|
398
398
|
readonly UPDATE_FRONTEND_REQUEST: "/cms-api/v1/admin/system/update/frontend/request";
|
|
399
|
+
readonly UPDATE_MOBILE_PREVIEW_RELEASES: "/cms-api/v1/admin/system/update/mobile-preview/releases";
|
|
400
|
+
readonly UPDATE_MOBILE_PREVIEW_PREFLIGHT: "/cms-api/v1/admin/system/update/mobile-preview/preflight";
|
|
401
|
+
readonly UPDATE_MOBILE_PREVIEW_REQUEST: "/cms-api/v1/admin/system/update/mobile-preview/request";
|
|
399
402
|
};
|
|
400
|
-
/**
|
|
401
|
-
|
|
403
|
+
/**
|
|
404
|
+
* Discriminates a core (full-stack) update from the stateless component-only
|
|
405
|
+
* swaps. `frontend` swaps the Next.js image; `mobile-preview` swaps the
|
|
406
|
+
* `selfhelp-mobile-preview` web image. Both are lightweight (no DB migration,
|
|
407
|
+
* no backup) and performed by the SelfHelp Manager.
|
|
408
|
+
*/
|
|
409
|
+
type TUpdateKind = 'core' | 'frontend' | 'mobile-preview';
|
|
402
410
|
interface ISystemInstalledPlugin {
|
|
403
411
|
id: string;
|
|
404
412
|
version: string;
|
|
@@ -416,6 +424,16 @@ interface ISystemVersion {
|
|
|
416
424
|
selfhelp_version: string;
|
|
417
425
|
backend_version: string;
|
|
418
426
|
frontend_version: string;
|
|
427
|
+
/**
|
|
428
|
+
* The provisioned `selfhelp-mobile-preview` web image version reported by the
|
|
429
|
+
* backend (set by the SelfHelp Manager via `SELFHELP_MOBILE_PREVIEW_VERSION`
|
|
430
|
+
* when it provisions/updates the service). `unknown` until the manager stamps
|
|
431
|
+
* it; `not_installed` when no preview service is provisioned for this
|
|
432
|
+
* instance (e.g. an instance that predates default provisioning, or a dev
|
|
433
|
+
* source checkout). The page-editor preview panel additionally probes the
|
|
434
|
+
* running image's `version.json` for the live value.
|
|
435
|
+
*/
|
|
436
|
+
mobile_preview_version: string;
|
|
419
437
|
plugin_api_version: string;
|
|
420
438
|
database_migration_version: string;
|
|
421
439
|
deployment: TSystemDeployment;
|
|
@@ -552,7 +570,7 @@ interface IUpdatePreflightCheck {
|
|
|
552
570
|
* and the plugin-specific `pinned` affordance). Snake_case is the wire contract.
|
|
553
571
|
*/
|
|
554
572
|
interface ICompatibilityError {
|
|
555
|
-
component: 'core' | 'frontend' | 'plugin';
|
|
573
|
+
component: 'core' | 'frontend' | 'mobile-preview' | 'plugin';
|
|
556
574
|
component_id: string;
|
|
557
575
|
current_version: string | null;
|
|
558
576
|
target_version: string | null;
|
|
@@ -659,6 +677,11 @@ interface IUpdateStatus {
|
|
|
659
677
|
* for the synthetic `idle` status.
|
|
660
678
|
*/
|
|
661
679
|
target_frontend_version: string | null;
|
|
680
|
+
/**
|
|
681
|
+
* The mobile-preview image version a `mobile-preview`-kind operation targets;
|
|
682
|
+
* `null` for core/frontend operations and the synthetic `idle` status.
|
|
683
|
+
*/
|
|
684
|
+
target_mobile_preview_version: string | null;
|
|
662
685
|
progress_percent: number;
|
|
663
686
|
steps: IUpdateStep[];
|
|
664
687
|
requested_at: string;
|
|
@@ -716,6 +739,112 @@ type IFrontendUpdateRequestResponse = IBaseApiResponse<{
|
|
|
716
739
|
kind: 'frontend';
|
|
717
740
|
target_frontend_version: string;
|
|
718
741
|
}>;
|
|
742
|
+
/**
|
|
743
|
+
* POST /admin/system/update/mobile-preview/request — request a MOBILE-PREVIEW
|
|
744
|
+
* update for THIS instance. Like {@link IFrontendUpdateRequest} it carries no
|
|
745
|
+
* `instance_id` (the backend derives + verifies it) and no
|
|
746
|
+
* `accepted_migration_risk` (a preview swap is stateless). Requesting it onto an
|
|
747
|
+
* instance that has no preview yet is also the enable/bootstrap path: the
|
|
748
|
+
* SelfHelp Manager provisions the `selfhelp-mobile-preview` service. The manager
|
|
749
|
+
* re-resolves the signed release and is the final authority on compatibility +
|
|
750
|
+
* signatures + image digests before it swaps the container.
|
|
751
|
+
*/
|
|
752
|
+
interface IMobilePreviewUpdateRequest {
|
|
753
|
+
target_version: string;
|
|
754
|
+
preflight_id: string;
|
|
755
|
+
}
|
|
756
|
+
/**
|
|
757
|
+
* GET /admin/system/update/mobile-preview/releases — mobile-preview image
|
|
758
|
+
* versions published in the official registry (newest first). Reuses
|
|
759
|
+
* {@link IUpdateReleases}: `current_version` is the instance's provisioned
|
|
760
|
+
* preview version (or `not_installed`) and `available: false` means the registry
|
|
761
|
+
* was unreachable (fall back to manual entry). Aliased for call-site clarity.
|
|
762
|
+
*/
|
|
763
|
+
type IMobilePreviewUpdateReleases = IUpdateReleases;
|
|
764
|
+
type IMobilePreviewUpdateReleasesResponse = IUpdateReleasesResponse;
|
|
765
|
+
/**
|
|
766
|
+
* GET /admin/system/update/mobile-preview/preflight — compatibility verdict for
|
|
767
|
+
* a mobile-preview target. Reuses {@link IUpdatePreflight}; the preview is
|
|
768
|
+
* stateless so `database.destructive`/`requires_backup` are always false. The
|
|
769
|
+
* preview ⇄ core compatibility rule IS evaluated here (as a
|
|
770
|
+
* `mobile_preview_compatibility` check) against the same signed registry
|
|
771
|
+
* metadata the SelfHelp Manager resolves — the running core must satisfy the
|
|
772
|
+
* target preview's `backendCompatibility.requiredCoreRange` — so the CMS verdict
|
|
773
|
+
* matches the manager's instead of always reporting "OK". The manager still
|
|
774
|
+
* re-verifies signatures + image digests and re-runs the per-plugin RN/Expo
|
|
775
|
+
* twin-axis gate at execution and remains the final authority. Aliased for
|
|
776
|
+
* call-site clarity.
|
|
777
|
+
*/
|
|
778
|
+
type IMobilePreviewUpdatePreflight = IUpdatePreflight;
|
|
779
|
+
type IMobilePreviewUpdatePreflightResponse = IUpdatePreflightResponse;
|
|
780
|
+
/** POST /admin/system/update/mobile-preview/request — accepted record. */
|
|
781
|
+
type IMobilePreviewUpdateRequestResponse = IBaseApiResponse<{
|
|
782
|
+
operation_id: string;
|
|
783
|
+
instance_id: string;
|
|
784
|
+
status: TUpdateOperationStatus;
|
|
785
|
+
kind: 'mobile-preview';
|
|
786
|
+
target_mobile_preview_version: string;
|
|
787
|
+
}>;
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* Mobile preview session contracts (CMS admin <-> backend <-> mobile-preview
|
|
791
|
+
* web image).
|
|
792
|
+
*
|
|
793
|
+
* Flow: the CMS admin mints a SHORT-LIVED, SINGLE-USE preview code (bound to the
|
|
794
|
+
* admin user + an optional scope). The `selfhelp-mobile-preview` web image
|
|
795
|
+
* exchanges that one-time code for an in-memory, scoped JWT
|
|
796
|
+
* (`purpose: 'mobile_preview'`) used for read-only `/cms-api` calls. The admin
|
|
797
|
+
* JWT is never exposed to the preview iframe.
|
|
798
|
+
*
|
|
799
|
+
* Snake_case is the wire contract (these mirror the backend JSON schemas under
|
|
800
|
+
* `config/schemas/api/v1/{requests,responses}/`).
|
|
801
|
+
*/
|
|
802
|
+
|
|
803
|
+
/** Mobile preview session endpoints. */
|
|
804
|
+
declare const MOBILE_PREVIEW_ENDPOINTS: {
|
|
805
|
+
/** Admin-only: mint a one-time preview session code. */
|
|
806
|
+
readonly SESSION: "/cms-api/v1/admin/mobile-preview/session";
|
|
807
|
+
/** Public: exchange a one-time code for a scoped preview JWT. */
|
|
808
|
+
readonly EXCHANGE: "/cms-api/v1/mobile-preview/session/exchange";
|
|
809
|
+
};
|
|
810
|
+
/**
|
|
811
|
+
* POST /admin/mobile-preview/session — mint a one-time preview code. No
|
|
812
|
+
* `instance_id`: the backend derives + verifies the admin server-side. The
|
|
813
|
+
* optional scope is bound into the code and enforced on exchange.
|
|
814
|
+
*/
|
|
815
|
+
interface IMobilePreviewSessionRequest {
|
|
816
|
+
/** Page keyword to preview. */
|
|
817
|
+
keyword?: string;
|
|
818
|
+
/** Page id to preview (alternative to `keyword`). */
|
|
819
|
+
page_id?: number;
|
|
820
|
+
/** Language id to render in. */
|
|
821
|
+
language_id?: number;
|
|
822
|
+
/** Whether to preview the unpublished draft version. */
|
|
823
|
+
draft?: boolean;
|
|
824
|
+
}
|
|
825
|
+
interface IMobilePreviewSessionData {
|
|
826
|
+
/** Opaque one-time code (safe in the iframe URL; invalid after exchange). */
|
|
827
|
+
code: string;
|
|
828
|
+
/** ISO-8601 expiry of the one-time code. */
|
|
829
|
+
expires_at: string;
|
|
830
|
+
}
|
|
831
|
+
type IMobilePreviewSessionResponse = IBaseApiResponse<IMobilePreviewSessionData>;
|
|
832
|
+
/**
|
|
833
|
+
* POST /mobile-preview/session/exchange — public route; the one-time code IS the
|
|
834
|
+
* credential. Consumes (deletes) the code and mints a scoped preview JWT.
|
|
835
|
+
*/
|
|
836
|
+
interface IMobilePreviewExchangeRequest {
|
|
837
|
+
code: string;
|
|
838
|
+
}
|
|
839
|
+
interface IMobilePreviewExchangeData {
|
|
840
|
+
/** Short-lived scoped JWT (`purpose: 'mobile_preview'`); held in memory only. */
|
|
841
|
+
access_token: string;
|
|
842
|
+
/** Seconds until the scoped token expires. */
|
|
843
|
+
expires_in: number;
|
|
844
|
+
/** The previewed user (the minting admin), for the preview UI. */
|
|
845
|
+
user: IUserData;
|
|
846
|
+
}
|
|
847
|
+
type IMobilePreviewExchangeResponse = IBaseApiResponse<IMobilePreviewExchangeData>;
|
|
719
848
|
|
|
720
849
|
/**
|
|
721
850
|
* Cross-repo SelfHelp distribution contracts: registry index + release metadata
|
|
@@ -783,6 +912,8 @@ interface InstanceVersions {
|
|
|
783
912
|
frontend: string;
|
|
784
913
|
scheduler: string;
|
|
785
914
|
worker: string;
|
|
915
|
+
/** Mobile-preview web image version pinned for this instance (additive). */
|
|
916
|
+
mobilePreview?: string;
|
|
786
917
|
pluginApi: string;
|
|
787
918
|
}
|
|
788
919
|
interface InstanceImages {
|
|
@@ -793,6 +924,8 @@ interface InstanceImages {
|
|
|
793
924
|
mysql: string;
|
|
794
925
|
redis: string;
|
|
795
926
|
mercure: string;
|
|
927
|
+
/** Mobile-preview web image reference (additive). */
|
|
928
|
+
mobilePreview?: string;
|
|
796
929
|
}
|
|
797
930
|
interface InstanceRouting {
|
|
798
931
|
publicFrontendUrl: string;
|
|
@@ -886,6 +1019,8 @@ interface InstanceLock {
|
|
|
886
1019
|
version: string;
|
|
887
1020
|
backendImageDigest: string;
|
|
888
1021
|
frontendImageDigest: string;
|
|
1022
|
+
/** Mobile-preview web image digest pinned for this instance (additive). */
|
|
1023
|
+
mobilePreviewImageDigest?: string;
|
|
889
1024
|
schedulerImageDigest: string;
|
|
890
1025
|
workerImageDigest: string;
|
|
891
1026
|
migrationVersion: string;
|
|
@@ -920,6 +1055,8 @@ interface RegistryIndex {
|
|
|
920
1055
|
scheduler: RegistryReleaseRef[];
|
|
921
1056
|
worker: RegistryReleaseRef[];
|
|
922
1057
|
plugins: RegistryReleaseRef[];
|
|
1058
|
+
/** Mobile-preview web image release refs (additive; older managers ignore). */
|
|
1059
|
+
mobilePreview?: RegistryReleaseRef[];
|
|
923
1060
|
advisoriesUrl?: string;
|
|
924
1061
|
compatibilityUrl?: string;
|
|
925
1062
|
trustedKeysUrl?: string;
|
|
@@ -1029,15 +1166,78 @@ interface WorkerRelease {
|
|
|
1029
1166
|
security: SignatureBlock;
|
|
1030
1167
|
blocked?: boolean;
|
|
1031
1168
|
}
|
|
1169
|
+
/**
|
|
1170
|
+
* One plugin mobile package baked into a mobile-preview image at build time.
|
|
1171
|
+
* The preview CI runs `plugins-sync.mjs` against a curated official-plugin set
|
|
1172
|
+
* and records the result here so the manager can compute coverage (which
|
|
1173
|
+
* enabled plugins render natively vs. fall back to open-on-web in the preview)
|
|
1174
|
+
* without inspecting the image.
|
|
1175
|
+
*/
|
|
1176
|
+
interface BundledPluginRef {
|
|
1177
|
+
id: string;
|
|
1178
|
+
version: string;
|
|
1179
|
+
mobilePackage: string;
|
|
1180
|
+
mobilePackageVersion: string;
|
|
1181
|
+
}
|
|
1182
|
+
/**
|
|
1183
|
+
* Mobile-preview web image release, resolved/pinned as a first-class artifact
|
|
1184
|
+
* (peer of the frontend release). The image serves the Expo web export at
|
|
1185
|
+
* `/mobile-preview` and proxies a narrow `/mobile-preview/api` allowlist to the
|
|
1186
|
+
* private backend. `mobileRendererVersion` is the mobile renderer contract the
|
|
1187
|
+
* image was built against (what plugin `compatibility.mobile` ranges target);
|
|
1188
|
+
* `bundledPlugins` is the curated official-plugin set baked into the image.
|
|
1189
|
+
*/
|
|
1190
|
+
interface MobilePreviewRelease {
|
|
1191
|
+
kind: 'selfhelp-mobile-preview-release';
|
|
1192
|
+
id: string;
|
|
1193
|
+
version: string;
|
|
1194
|
+
channel: ReleaseChannel;
|
|
1195
|
+
image: string;
|
|
1196
|
+
digest: string;
|
|
1197
|
+
builtFrom?: {
|
|
1198
|
+
sharedPackageVersion?: string;
|
|
1199
|
+
expoSdk?: string;
|
|
1200
|
+
reactNative?: string;
|
|
1201
|
+
};
|
|
1202
|
+
backendCompatibility: ServiceBackendCompatibility;
|
|
1203
|
+
/** Mobile renderer contract version advertised by this image (semver). */
|
|
1204
|
+
mobileRendererVersion: string;
|
|
1205
|
+
/**
|
|
1206
|
+
* React Native version the preview image was built with. Top-level canonical
|
|
1207
|
+
* value the SelfHelp Manager gates a plugin's `compatibility.reactNative`
|
|
1208
|
+
* range against (the `builtFrom.reactNative` provenance field mirrors it).
|
|
1209
|
+
*/
|
|
1210
|
+
reactNativeVersion?: string;
|
|
1211
|
+
/**
|
|
1212
|
+
* Expo SDK version the preview image was built with. Gated against a plugin's
|
|
1213
|
+
* `compatibility.expoSdk` range (mirrors `builtFrom.expoSdk`).
|
|
1214
|
+
*/
|
|
1215
|
+
expoSdkVersion?: string;
|
|
1216
|
+
/** Curated plugin mobile packages baked into the image. */
|
|
1217
|
+
bundledPlugins: BundledPluginRef[];
|
|
1218
|
+
security: SignatureBlock;
|
|
1219
|
+
blocked?: boolean;
|
|
1220
|
+
}
|
|
1032
1221
|
interface PluginRelease {
|
|
1033
1222
|
kind: 'selfhelp-plugin-release';
|
|
1034
1223
|
id: string;
|
|
1035
1224
|
version: string;
|
|
1036
1225
|
channel: ReleaseChannel;
|
|
1037
1226
|
official: boolean;
|
|
1227
|
+
/**
|
|
1228
|
+
* Compatibility ranges the host must satisfy. `mobile` (additive) is the
|
|
1229
|
+
* mobile-renderer axis: the range of host `mobileRendererVersion` the
|
|
1230
|
+
* plugin's mobile package supports (parallel to `pluginApi`). `reactNative`
|
|
1231
|
+
* and `expoSdk` (additive) are gated against the resolved
|
|
1232
|
+
* `selfhelp-mobile-preview` image's `reactNativeVersion` / `expoSdkVersion`.
|
|
1233
|
+
* All three are absent for web-only plugins.
|
|
1234
|
+
*/
|
|
1038
1235
|
compatibility: {
|
|
1039
1236
|
core: string;
|
|
1040
1237
|
pluginApi: string;
|
|
1238
|
+
mobile?: string;
|
|
1239
|
+
reactNative?: string;
|
|
1240
|
+
expoSdk?: string;
|
|
1041
1241
|
};
|
|
1042
1242
|
dependencies?: {
|
|
1043
1243
|
plugins: {
|
|
@@ -1694,4 +1894,4 @@ declare function transformPageData(apiPage: IRawPage): IPageItem;
|
|
|
1694
1894
|
*/
|
|
1695
1895
|
declare function transformPagesData(pages: IRawPage[] | null | undefined): IPageItem[];
|
|
1696
1896
|
|
|
1697
|
-
export { API_VERSION_PREFIX, type AdvisoryAffected, type AdvisoryFeed, type AdvisorySeverity, type BackupManifest, type BackupRetentionPolicy, type BackupSchedulePolicy, CLASS_PATTERNS, CLASS_REMAP, CLIENT_TYPE_MOBILE, CLIENT_TYPE_MOBILE_AND_WEB, CLIENT_TYPE_WEB, COLOR_NAMES, type CheckSeverity, type CompatibilityRules, type CoreRelease, type DatabaseMigrationMetadata, ENDPOINTS, type FrontendRelease, HEADER_CLIENT_TYPE, type IApiError, type IApiMeta, type IAssetSource, type IBaseApiResponse, type IBasePageInfo, type IBasePageSection, type IClassPattern, type IClassRemap, type ICompatibilityError, type IConditionContext, IContentField, type IEvaluatedCondition, type IForgotPasswordRequest, type IForgotPasswordResponse, type IFormDeleteRequest, type IFormDeleteResponse, type IFormResultLegacyFields, type IFormSubmitData, type IFormSubmitRequest, type IFormSubmitResponse, type IFormUpdateData, type IFormUpdateRequest, type IFormUpdateResponse, type IFrontendUpdatePreflight, type IFrontendUpdatePreflightResponse, type IFrontendUpdateReleases, type IFrontendUpdateReleasesResponse, type IFrontendUpdateRequest, type IFrontendUpdateRequestResponse, type IGetPageResponse, type IGetPagesResponse, 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 IMeta, type IMobileAdapterBaseProps, type IMobileButtonProps, type IMobileCardProps, type IMobileCheckboxProps, type IMobileContainerProps, type IMobileInputProps, type IMobileModalProps, type IMobileSelectOption, type IMobileSelectProps, type IMobileSwitchProps, type IMobileTextProps, type IMobileTextareaProps, type IMobileUiAdapters, type IPageAccessTypeInfo, type IPageContent, type IPageField, type IPageFieldTranslation, type IPageFieldsData, type IPageItem, type IPageSectionWithFields, type IPageSectionsData, type IRefreshRequest, type IRefreshSuccessResponse, type IResetPasswordRequest, type IResetPasswordResponse, 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 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, PERMISSIONS, 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, THeroUiButtonVariant, THeroUiSize, TMobileButtonFeedback, TMobileFieldVariant, TMobileSelectPresentation, type TPermission, type TPlatform, TStyleName, type TSystemAdvisorySeverity, type TSystemComponentStatus, type TSystemDeployment, type TSystemHealthOverall, type TUpdateCheckSeverity, type TUpdateKind, type TUpdateOperationStatus, type TUpdatePreflightStatus, type TrustLevel, type TrustedKey, type TrustedKeysFile, type UpdatePreflightResult, type WorkerRelease, buildConditionContext, classifyClass, classifyClassString, evaluateCondition, findRemap, hasInlineFormatting, parseInlineRich, parseSpacing, replaceCalcedValues, resolveAssetSources, resolveAssetUrl, spacingToClasses, stripHtmlToText, transformPageData, transformPagesData };
|
|
1897
|
+
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, COLOR_NAMES, type CheckSeverity, type CompatibilityRules, type CoreRelease, type DatabaseMigrationMetadata, ENDPOINTS, type FrontendRelease, HEADER_CLIENT_TYPE, type IApiError, type IApiMeta, type IAssetSource, type IBaseApiResponse, type IBasePageInfo, type IBasePageSection, type IClassPattern, type IClassRemap, type ICompatibilityError, type IConditionContext, IContentField, type IEvaluatedCondition, type IForgotPasswordRequest, type IForgotPasswordResponse, type IFormDeleteRequest, type IFormDeleteResponse, type IFormResultLegacyFields, type IFormSubmitData, type IFormSubmitRequest, type IFormSubmitResponse, type IFormUpdateData, type IFormUpdateRequest, type IFormUpdateResponse, type IFrontendUpdatePreflight, type IFrontendUpdatePreflightResponse, type IFrontendUpdateReleases, type IFrontendUpdateReleasesResponse, type IFrontendUpdateRequest, type IFrontendUpdateRequestResponse, type IGetPageResponse, type IGetPagesResponse, 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 IMeta, type IMobileAdapterBaseProps, type IMobileButtonProps, type IMobileCardProps, type IMobileCheckboxProps, type IMobileContainerProps, 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 IPageAccessTypeInfo, type IPageContent, type IPageField, type IPageFieldTranslation, type IPageFieldsData, type IPageItem, type IPageSectionWithFields, type IPageSectionsData, type IRefreshRequest, type IRefreshSuccessResponse, type IResetPasswordRequest, type IResetPasswordResponse, 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 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_PREVIEW_ENDPOINTS, type MobilePreviewRelease, PERMISSIONS, 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, THeroUiButtonVariant, THeroUiSize, TMobileButtonFeedback, TMobileFieldVariant, TMobileSelectPresentation, type TPermission, type TPlatform, TStyleName, type TSystemAdvisorySeverity, type TSystemComponentStatus, type TSystemDeployment, type TSystemHealthOverall, type TUpdateCheckSeverity, type TUpdateKind, type TUpdateOperationStatus, type TUpdatePreflightStatus, type TrustLevel, type TrustedKey, type TrustedKeysFile, type UpdatePreflightResult, type WorkerRelease, buildConditionContext, classifyClass, classifyClassString, evaluateCondition, findRemap, hasInlineFormatting, parseInlineRich, parseSpacing, replaceCalcedValues, resolveAssetSources, resolveAssetUrl, spacingToClasses, stripHtmlToText, transformPageData, transformPagesData };
|