@selfhelp/shared 1.3.2 → 1.4.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/dist/index.d.mts CHANGED
@@ -369,6 +369,654 @@ type IGetPageResponse = IBaseApiResponse<{
369
369
  }>;
370
370
  type IGetPagesResponse = IBaseApiResponse<IPageItem[]>;
371
371
 
372
+ /**
373
+ * System maintenance / update contracts (SelfHelp Manager <-> CMS <-> admin UI).
374
+ *
375
+ * Hard rule: the CMS admin update flow is scoped to the CURRENT instance only.
376
+ * The browser MUST NOT send an arbitrary `instance_id` for update execution; the
377
+ * backend derives and verifies the instance identity server-side. That is why
378
+ * {@link IUpdateRequest} intentionally has no `instance_id` field.
379
+ *
380
+ * These mirror the manager's `@shm/schemas` shapes and the backend JSON schemas
381
+ * under `config/schemas/api/v1/{responses,requests}/admin/`.
382
+ */
383
+
384
+ /** Admin system maintenance endpoints (web admin; not part of the mobile subset). */
385
+ declare const SYSTEM_ENDPOINTS: {
386
+ readonly VERSION: "/cms-api/v1/admin/system/version";
387
+ readonly HEALTH: "/cms-api/v1/admin/system/health";
388
+ readonly ADVISORIES: "/cms-api/v1/admin/system/advisories";
389
+ readonly MAINTENANCE: "/cms-api/v1/admin/system/maintenance";
390
+ readonly UPDATE_PREFLIGHT: "/cms-api/v1/admin/system/update/preflight";
391
+ readonly UPDATE_REQUEST: "/cms-api/v1/admin/system/update/request";
392
+ readonly UPDATE_STATUS: "/cms-api/v1/admin/system/update/status";
393
+ };
394
+ interface ISystemInstalledPlugin {
395
+ id: string;
396
+ version: string;
397
+ compatible: boolean;
398
+ }
399
+ /** GET /admin/system/version — current instance version summary. */
400
+ interface ISystemVersion {
401
+ instance_id: string;
402
+ selfhelp_version: string;
403
+ backend_version: string;
404
+ frontend_version: string;
405
+ plugin_api_version: string;
406
+ database_migration_version: string;
407
+ safe_mode: boolean;
408
+ maintenance_mode: boolean;
409
+ installed_plugins: ISystemInstalledPlugin[];
410
+ }
411
+ type ISystemVersionResponse = IBaseApiResponse<ISystemVersion>;
412
+ /** Overall verdict for the aggregated system health endpoint. */
413
+ type TSystemHealthOverall = 'healthy' | 'degraded' | 'down';
414
+ /** Per-subsystem health status. `not_configured`/`unknown` are informational. */
415
+ type TSystemComponentStatus = 'ok' | 'down' | 'degraded' | 'configured' | 'not_configured' | 'unknown';
416
+ interface ISystemHealthComponent {
417
+ name: string;
418
+ status: TSystemComponentStatus;
419
+ detail: string;
420
+ }
421
+ /**
422
+ * GET /admin/system/health — aggregated, instance-scoped health/status.
423
+ * Never contains secrets: connection strings are reduced to configured/not.
424
+ */
425
+ interface ISystemHealth {
426
+ instance_id: string;
427
+ overall: TSystemHealthOverall;
428
+ checked_at: string;
429
+ safe_mode: boolean;
430
+ maintenance_mode: boolean;
431
+ version: {
432
+ selfhelp: string;
433
+ backend: string;
434
+ frontend: string;
435
+ plugin_api: string;
436
+ database_migration: string;
437
+ };
438
+ update: {
439
+ operation_id: string;
440
+ status: string;
441
+ progress_percent: number;
442
+ };
443
+ components: ISystemHealthComponent[];
444
+ }
445
+ type ISystemHealthResponse = IBaseApiResponse<ISystemHealth>;
446
+ /** Advisory severity, matching the registry advisory feed. */
447
+ type TSystemAdvisorySeverity = 'low' | 'medium' | 'high' | 'critical';
448
+ /** An installed component (core/frontend/plugin) an advisory affects. */
449
+ interface ISystemAdvisoryAffected {
450
+ kind: 'core' | 'frontend' | 'plugin';
451
+ id: string;
452
+ installed_version: string;
453
+ }
454
+ interface ISystemAdvisory {
455
+ id: string;
456
+ severity: TSystemAdvisorySeverity;
457
+ recommended_action: string;
458
+ /** Whether the manager blocks updates while an affected version is installed. */
459
+ blocked: boolean;
460
+ details_url: string | null;
461
+ affected: ISystemAdvisoryAffected[];
462
+ fixed_versions: string[];
463
+ }
464
+ /**
465
+ * GET /admin/system/advisories — security advisories from the registry feed,
466
+ * filtered to the components installed on THIS instance. `available: false`
467
+ * means the registry could not be reached (the UI shows "could not check").
468
+ */
469
+ interface ISystemAdvisories {
470
+ available: boolean;
471
+ advisories: ISystemAdvisory[];
472
+ }
473
+ type ISystemAdvisoriesResponse = IBaseApiResponse<ISystemAdvisories>;
474
+ /**
475
+ * GET /admin/system/maintenance — current maintenance-mode state for THIS
476
+ * instance. `forced_by_env` means the env hard switch
477
+ * (SELFHELP_MAINTENANCE_MODE) is on and the CMS cannot disable it. Never
478
+ * contains secrets — only an operator note + the acting user id.
479
+ */
480
+ interface ISystemMaintenance {
481
+ enabled: boolean;
482
+ forced_by_env: boolean;
483
+ message: string;
484
+ since: string;
485
+ updated_by: string;
486
+ safe_mode: boolean;
487
+ }
488
+ type ISystemMaintenanceResponse = IBaseApiResponse<ISystemMaintenance>;
489
+ /**
490
+ * PUT /admin/system/maintenance — enable/disable maintenance for THIS instance.
491
+ * No `instance_id`: the backend derives + verifies it server-side.
492
+ */
493
+ interface IMaintenanceSetRequest {
494
+ enabled: boolean;
495
+ message?: string;
496
+ }
497
+ type TUpdatePreflightStatus = 'ok' | 'warning' | 'blocked';
498
+ type TUpdateCheckSeverity = 'info' | 'warning' | 'error';
499
+ interface IUpdatePreflightCheck {
500
+ code: string;
501
+ severity: TUpdateCheckSeverity;
502
+ message: string;
503
+ /**
504
+ * Standardized compatibility-error fields. Version/compatibility checks
505
+ * (e.g. `plugin_compatibility`) populate these so the admin/operator sees
506
+ * exactly which component blocks which target and the range it requires.
507
+ * Absent on non-compatibility checks.
508
+ */
509
+ component?: string;
510
+ component_id?: string;
511
+ current_version?: string;
512
+ target_version?: string;
513
+ required_range?: string;
514
+ /** Whether this compatibility error blocks the update (mirrors `CompatibilityError.blocking`). */
515
+ blocking?: boolean;
516
+ /**
517
+ * For `plugin_compatibility` checks: whether the blocking plugin is pinned and
518
+ * therefore must be unpinned (or removed) before it can be updated to a
519
+ * compatible version. Absent on non-plugin checks.
520
+ */
521
+ pinned?: boolean;
522
+ }
523
+ /**
524
+ * The single, standardized compatibility-error object used by BOTH the core
525
+ * update preflight AND the plugin install/update flow, so an operator sees the
526
+ * SAME shape regardless of which installer raised it.
527
+ *
528
+ * Canonical cross-repo contract (the field set MUST match on every side):
529
+ * - backend `App\Plugin\Registry\Unified\CompatibilityError::toArray()`,
530
+ * - SelfHelp Manager `@shm/resolver` `CompatibilityError`,
531
+ * - frontend `IPluginCompatibilityError`.
532
+ *
533
+ * The compatibility fields embedded in {@link IUpdatePreflightCheck} mirror this
534
+ * shape (a preflight check additionally carries the generic `code`/`severity`
535
+ * and the plugin-specific `pinned` affordance). Snake_case is the wire contract.
536
+ */
537
+ interface ICompatibilityError {
538
+ component: 'core' | 'frontend' | 'plugin';
539
+ component_id: string;
540
+ current_version: string | null;
541
+ target_version: string | null;
542
+ required_range: string;
543
+ blocking: boolean;
544
+ message: string;
545
+ }
546
+ interface IUpdatePreflightOption {
547
+ type: string;
548
+ version?: string;
549
+ label: string;
550
+ }
551
+ /** GET /admin/system/update/preflight — latest preflight for THIS instance. */
552
+ interface IUpdatePreflight {
553
+ preflight_id: string;
554
+ status: TUpdatePreflightStatus;
555
+ instance_id: string;
556
+ current_version: string;
557
+ target_version: string;
558
+ checks: IUpdatePreflightCheck[];
559
+ options: IUpdatePreflightOption[];
560
+ database: {
561
+ destructive: boolean;
562
+ requires_backup: boolean;
563
+ manual_confirmation_required: boolean;
564
+ };
565
+ rollback: {
566
+ automatic_before_migrations: boolean;
567
+ automatic_after_destructive_migrations: boolean;
568
+ };
569
+ }
570
+ type IUpdatePreflightResponse = IBaseApiResponse<IUpdatePreflight>;
571
+ /**
572
+ * POST /admin/system/update/request — request an update for THIS instance.
573
+ * No `instance_id`: the backend derives + verifies it. A destructive migration
574
+ * requires `accepted_migration_risk: true` (and the typed confirmation).
575
+ */
576
+ interface IUpdateRequest {
577
+ target_version: string;
578
+ preflight_id: string;
579
+ accepted_migration_risk: boolean;
580
+ typed_confirmation?: string;
581
+ }
582
+ /**
583
+ * Update operation lifecycle. `idle` is the synthetic state for an instance that
584
+ * has never run an update (no operation row) — the backend returns it instead of
585
+ * a misleading `succeeded`/100%. The CMS records `requested`; the SelfHelp
586
+ * Manager writes the granular execution states back through the manager loop.
587
+ * `approved` and `running` are kept as coarse legacy states for compatibility.
588
+ */
589
+ type TUpdateOperationStatus = 'idle' | 'requested' | 'approved' | 'accepted' | 'running' | 'preflight_running' | 'preflight_failed' | 'backup_running' | 'update_running' | 'migration_running' | 'health_check_running' | 'succeeded' | 'failed' | 'rollback_running' | 'rolled_back' | 'rollback_failed' | 'rejected';
590
+ interface IUpdateStep {
591
+ name: string;
592
+ status: string;
593
+ detail?: string;
594
+ }
595
+ /** GET /admin/system/update/status — status/progress for THIS instance. */
596
+ interface IUpdateStatus {
597
+ instance_id: string;
598
+ operation_id: string;
599
+ status: TUpdateOperationStatus;
600
+ target_version: string;
601
+ progress_percent: number;
602
+ steps: IUpdateStep[];
603
+ requested_at: string;
604
+ updated_at: string;
605
+ message?: string;
606
+ }
607
+ type IUpdateStatusResponse = IBaseApiResponse<IUpdateStatus>;
608
+ type IUpdateRequestResponse = IBaseApiResponse<{
609
+ operation_id: string;
610
+ instance_id: string;
611
+ status: TUpdateOperationStatus;
612
+ }>;
613
+
614
+ /**
615
+ * Cross-repo SelfHelp distribution contracts: registry index + release metadata
616
+ * (core / frontend / scheduler / worker / plugin), security advisories,
617
+ * compatibility rules, signed trusted keys, the per-instance manifest + lock +
618
+ * inventory, update preflight, backup manifest, and support-bundle metadata.
619
+ *
620
+ * `@selfhelp/shared` is the cross-repo contract SOURCE for these shapes so the
621
+ * web frontend, mobile app, and plugins can consume them without importing the
622
+ * manager. The SelfHelp Manager (`sh-manager/packages/schemas`) keeps the
623
+ * runtime Zod validators + JSON schemas; both MUST stay in parity (verified by
624
+ * `src/types/__tests__/distribution.test.ts` against the manager's example
625
+ * fixtures). The shapes mirror
626
+ * `sh-selfhelp_backend/docs/archive/core-installation-and-distribution-plan.md`.
627
+ *
628
+ * These files are written by the manager as camelCase JSON, so (unlike the
629
+ * snake_case CMS API contracts in `./api/system`) these contracts are camelCase.
630
+ */
631
+ /**
632
+ * Canonical release channels, shared verbatim across the registry wire schema
633
+ * (`sh2-plugin-registry/registry.schema.json`), the SelfHelp Manager
634
+ * (`@shm/schemas`), and the backend (`RegistryReleaseRef::CHANNELS`). `test` is
635
+ * the staging/rehearsal channel used to dry-run a publish→install→update before
636
+ * promoting to `stable`. Kept as a runtime tuple so cross-repo parity can be
637
+ * asserted (see `__tests__/channel-parity.test.ts`).
638
+ */
639
+ declare const RELEASE_CHANNELS: readonly ["stable", "beta", "nightly", "test"];
640
+ type ReleaseChannel = (typeof RELEASE_CHANNELS)[number];
641
+ type InstanceMode = 'production' | 'local';
642
+ type TrustLevel = 'official' | 'reviewed' | 'untrusted';
643
+ type AdvisorySeverity = 'low' | 'medium' | 'high' | 'critical';
644
+ /** Ed25519 detached-signature block shared by every signed registry payload. */
645
+ interface SignatureBlock {
646
+ signature: string;
647
+ keyId: string;
648
+ signedPayload?: string;
649
+ signedPayloadSha256?: string;
650
+ }
651
+ type InstanceStatus = 'active' | 'disabled' | 'removed_keep_data' | 'installing' | 'updating' | 'error';
652
+ interface InventoryInstanceEntry {
653
+ instanceId: string;
654
+ domain: string;
655
+ path: string;
656
+ composeProject: string;
657
+ status: InstanceStatus;
658
+ }
659
+ interface ServerInventory {
660
+ inventoryVersion: number;
661
+ serverId: string;
662
+ manager: {
663
+ name: string;
664
+ repository: string;
665
+ version: string;
666
+ };
667
+ proxy: {
668
+ type: 'traefik';
669
+ network: string;
670
+ composePath: string;
671
+ };
672
+ instances: InventoryInstanceEntry[];
673
+ }
674
+ interface InstanceVersions {
675
+ selfhelp: string;
676
+ backend: string;
677
+ frontend: string;
678
+ scheduler: string;
679
+ worker: string;
680
+ pluginApi: string;
681
+ }
682
+ interface InstanceImages {
683
+ backend: string;
684
+ frontend: string;
685
+ scheduler: string;
686
+ worker: string;
687
+ mysql: string;
688
+ redis: string;
689
+ mercure: string;
690
+ }
691
+ interface InstanceRouting {
692
+ publicFrontendUrl: string;
693
+ browserApiPrefix: string;
694
+ internalSymfonyUrl: string;
695
+ symfonyApiPrefix: string;
696
+ }
697
+ interface InstalledPlugin {
698
+ id: string;
699
+ version: string;
700
+ }
701
+ interface InstanceResourceConfig {
702
+ memoryLimitMb?: number;
703
+ cpuLimit?: number;
704
+ diskWarnThresholdGb?: number;
705
+ logMaxSizeMb?: number;
706
+ logMaxFiles?: number;
707
+ }
708
+ interface InstanceManifest {
709
+ manifestVersion: number;
710
+ instanceId: string;
711
+ displayName: string;
712
+ domain: string;
713
+ mode: InstanceMode;
714
+ createdAt: string;
715
+ updatedAt: string;
716
+ registry: {
717
+ id: string;
718
+ url: string;
719
+ channel: ReleaseChannel;
720
+ };
721
+ versions: InstanceVersions;
722
+ images: InstanceImages;
723
+ routing: InstanceRouting;
724
+ installedPlugins: InstalledPlugin[];
725
+ resources?: InstanceResourceConfig;
726
+ }
727
+ interface LockServiceEntry {
728
+ image: string;
729
+ digest: string;
730
+ }
731
+ interface LockPluginEntry {
732
+ version: string;
733
+ artifactSha256: string;
734
+ signature: string;
735
+ keyId: string;
736
+ compatibility: {
737
+ core: string;
738
+ pluginApi: string;
739
+ };
740
+ }
741
+ interface InstanceLock {
742
+ lockfileVersion: number;
743
+ generatedAt: string;
744
+ operationId?: string;
745
+ registry: {
746
+ id: string;
747
+ url: string;
748
+ metadataSha256: string;
749
+ };
750
+ core: {
751
+ version: string;
752
+ backendImageDigest: string;
753
+ frontendImageDigest: string;
754
+ schedulerImageDigest: string;
755
+ workerImageDigest: string;
756
+ migrationVersion: string;
757
+ pluginApiVersion: string;
758
+ signedPayloadSha256: string;
759
+ };
760
+ services: {
761
+ mysql: LockServiceEntry;
762
+ redis: LockServiceEntry;
763
+ mercure: LockServiceEntry;
764
+ };
765
+ plugins: Record<string, LockPluginEntry>;
766
+ }
767
+ interface RegistryReleaseRef {
768
+ id: string;
769
+ version: string;
770
+ channel: ReleaseChannel;
771
+ releaseUrl: string;
772
+ blocked?: boolean;
773
+ }
774
+ interface RegistryIndex {
775
+ schemaVersion: string;
776
+ requiresManager: string;
777
+ publishedAt: string;
778
+ baseUrl: string;
779
+ publisher: {
780
+ name: string;
781
+ url: string;
782
+ };
783
+ core: RegistryReleaseRef[];
784
+ frontend: RegistryReleaseRef[];
785
+ scheduler: RegistryReleaseRef[];
786
+ worker: RegistryReleaseRef[];
787
+ plugins: RegistryReleaseRef[];
788
+ advisoriesUrl?: string;
789
+ compatibilityUrl?: string;
790
+ trustedKeysUrl?: string;
791
+ }
792
+ interface DatabaseMigrationMetadata {
793
+ migrationRange: string;
794
+ destructive: boolean;
795
+ requiresBackup: boolean;
796
+ manualConfirmationRequired: boolean;
797
+ minimumSafeRollbackPoint?: string;
798
+ automaticRollback?: string;
799
+ }
800
+ interface ImageRef {
801
+ image: string;
802
+ digest: string;
803
+ phpVersion?: string;
804
+ }
805
+ interface RuntimeServiceRange {
806
+ supportedVersions: string;
807
+ minimumRequired?: string;
808
+ recommendedVersion?: string;
809
+ recommendedImage: string;
810
+ recommendedDigest?: string;
811
+ updateRequired?: boolean;
812
+ majorUpgradeRequiresManualApproval?: boolean;
813
+ }
814
+ interface RuntimeServicePolicy {
815
+ php?: {
816
+ backendImagePhpVersion: string;
817
+ };
818
+ mysql: RuntimeServiceRange;
819
+ redis: RuntimeServiceRange;
820
+ mercure: RuntimeServiceRange;
821
+ traefik?: RuntimeServiceRange;
822
+ }
823
+ interface CoreRelease {
824
+ kind: 'selfhelp-core-release';
825
+ id: string;
826
+ version: string;
827
+ channel: ReleaseChannel;
828
+ releasedAt: string;
829
+ minimumDirectUpgradeFrom: string;
830
+ pluginApiVersion: string;
831
+ backend: ImageRef;
832
+ worker: ImageRef;
833
+ scheduler: ImageRef;
834
+ frontendCompatibility: {
835
+ requiredFrontendRange: string;
836
+ };
837
+ database: DatabaseMigrationMetadata;
838
+ runtime?: RuntimeServicePolicy;
839
+ artifacts?: {
840
+ sbom?: {
841
+ url: string;
842
+ sha256: string;
843
+ };
844
+ };
845
+ security: SignatureBlock;
846
+ blocked?: boolean;
847
+ }
848
+ interface FrontendRelease {
849
+ kind: 'selfhelp-frontend-release';
850
+ id: string;
851
+ version: string;
852
+ channel: ReleaseChannel;
853
+ image: string;
854
+ digest: string;
855
+ builtFrom?: {
856
+ nextStandalone: boolean;
857
+ sharedPackageVersion: string;
858
+ };
859
+ backendCompatibility: {
860
+ requiredCoreRange: string;
861
+ requiredApiVersion: string;
862
+ };
863
+ security: SignatureBlock;
864
+ blocked?: boolean;
865
+ }
866
+ /** Compatibility descriptor shared by core-coupled service releases. */
867
+ interface ServiceBackendCompatibility {
868
+ requiredCoreRange: string;
869
+ requiredApiVersion?: string;
870
+ }
871
+ /** Scheduled-jobs runner release, resolved/pinned as a first-class artifact. */
872
+ interface SchedulerRelease {
873
+ kind: 'selfhelp-scheduler-release';
874
+ id: string;
875
+ version: string;
876
+ channel: ReleaseChannel;
877
+ image: string;
878
+ digest: string;
879
+ builtFrom?: Record<string, unknown>;
880
+ backendCompatibility: ServiceBackendCompatibility;
881
+ security: SignatureBlock;
882
+ blocked?: boolean;
883
+ }
884
+ /** Messenger worker release, resolved/pinned as a first-class artifact. */
885
+ interface WorkerRelease {
886
+ kind: 'selfhelp-worker-release';
887
+ id: string;
888
+ version: string;
889
+ channel: ReleaseChannel;
890
+ image: string;
891
+ digest: string;
892
+ builtFrom?: Record<string, unknown>;
893
+ backendCompatibility: ServiceBackendCompatibility;
894
+ security: SignatureBlock;
895
+ blocked?: boolean;
896
+ }
897
+ interface PluginRelease {
898
+ kind: 'selfhelp-plugin-release';
899
+ id: string;
900
+ version: string;
901
+ channel: ReleaseChannel;
902
+ official: boolean;
903
+ compatibility: {
904
+ core: string;
905
+ pluginApi: string;
906
+ };
907
+ dependencies?: {
908
+ plugins: {
909
+ id: string;
910
+ range: string;
911
+ }[];
912
+ };
913
+ artifacts: {
914
+ manifestUrl: string;
915
+ archiveUrl: string;
916
+ sha256: string;
917
+ };
918
+ security: SignatureBlock;
919
+ blocked?: boolean;
920
+ }
921
+ interface CompatibilityRules {
922
+ schemaVersion: string;
923
+ rules: {
924
+ selfhelp: string;
925
+ runtime: RuntimeServicePolicy;
926
+ }[];
927
+ }
928
+ interface AdvisoryAffected {
929
+ kind: 'core' | 'frontend' | 'plugin';
930
+ id?: string;
931
+ versions: string;
932
+ }
933
+ interface SecurityAdvisory {
934
+ id: string;
935
+ severity: AdvisorySeverity;
936
+ affected: AdvisoryAffected[];
937
+ fixed: {
938
+ kind: 'core' | 'frontend' | 'plugin';
939
+ id?: string;
940
+ version: string;
941
+ }[];
942
+ recommendedAction: string;
943
+ blocked: boolean;
944
+ detailsUrl?: string;
945
+ }
946
+ interface AdvisoryFeed {
947
+ schemaVersion: string;
948
+ advisories: SecurityAdvisory[];
949
+ }
950
+ interface TrustedKey {
951
+ keyId: string;
952
+ publicKey: string;
953
+ algorithm: 'ed25519';
954
+ status: 'active' | 'revoked';
955
+ }
956
+ interface TrustedKeysFile {
957
+ schemaVersion: string;
958
+ keys: TrustedKey[];
959
+ }
960
+ type PreflightStatus = 'ok' | 'warning' | 'blocked';
961
+ type CheckSeverity = 'info' | 'warning' | 'error';
962
+ interface PreflightCheck {
963
+ code: string;
964
+ severity: CheckSeverity;
965
+ message: string;
966
+ }
967
+ interface PreflightOption {
968
+ type: string;
969
+ version?: string;
970
+ label: string;
971
+ }
972
+ interface UpdatePreflightResult {
973
+ preflightVersion: number;
974
+ status: PreflightStatus;
975
+ instanceId: string;
976
+ currentVersion: string;
977
+ targetVersion: string;
978
+ checks: PreflightCheck[];
979
+ options: PreflightOption[];
980
+ database: {
981
+ destructive: boolean;
982
+ requiresBackup: boolean;
983
+ manualConfirmationRequired: boolean;
984
+ };
985
+ rollback: {
986
+ automaticBeforeMigrations: boolean;
987
+ /**
988
+ * MVP policy: automatic rollback is NEVER promised after a destructive
989
+ * migration (the only recovery is restoring the verified backup).
990
+ */
991
+ automaticAfterDestructiveMigrations: boolean;
992
+ };
993
+ }
994
+ interface BackupManifest {
995
+ backupManifestVersion: number;
996
+ backupId: string;
997
+ instanceId: string;
998
+ createdAt: string;
999
+ mode: 'maintenance' | 'online';
1000
+ selfhelpVersion: string;
1001
+ migrationVersion: string;
1002
+ plugins: InstalledPlugin[];
1003
+ includedAreas: string[];
1004
+ files: {
1005
+ path: string;
1006
+ sha256: string;
1007
+ bytes: number;
1008
+ }[];
1009
+ }
1010
+ interface SupportBundleMeta {
1011
+ supportBundleVersion: number;
1012
+ instanceId: string;
1013
+ createdAt: string;
1014
+ managerVersion: string;
1015
+ schemaVersions: Record<string, number | string>;
1016
+ redactionApplied: true;
1017
+ contents: string[];
1018
+ }
1019
+
372
1020
  /**
373
1021
  * Frontend-only subset of /cms-api/v1/* endpoints. The web frontend keeps
374
1022
  * its admin endpoints local. The mobile app consumes only what's here.
@@ -664,4 +1312,4 @@ declare function transformPageData(apiPage: IRawPage): IPageItem;
664
1312
  */
665
1313
  declare function transformPagesData(pages: IRawPage[] | null | undefined): IPageItem[];
666
1314
 
667
- export { API_VERSION_PREFIX, CLASS_PATTERNS, CLASS_REMAP, CLIENT_TYPE_MOBILE, CLIENT_TYPE_MOBILE_AND_WEB, CLIENT_TYPE_WEB, COLOR_NAMES, ENDPOINTS, HEADER_CLIENT_TYPE, type IApiError, type IApiMeta, type IAssetSource, type IBaseApiResponse, type IBasePageInfo, type IBasePageSection, type IClassPattern, type IClassRemap, 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 IGetPageResponse, type IGetPagesResponse, type IJwtPayload, type ILanguage, type ILanguageItem, type ILanguagePreference, type ILanguagePreferenceUpdateResponse, type ILanguagesResponse, type ILoginRequest, type ILoginSuccessData, type ILoginSuccessResponse, type ILogoutSuccessResponse, type IMeta, 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 ITwoFactorRequiredData, type ITwoFactorRequiredResponse, type ITwoFactorVerifyRequest, type ITwoFactorVerifySuccessResponse, type IUserData, type IUserDataResponse, LITERAL_CLASSES, PERMISSIONS, SIZE_VALUES, SPACING_VALUES, type TCalcedValues, type TClassDecision, type TClientType, type TPermission, type TPlatform, TStyleName, buildConditionContext, classifyClass, classifyClassString, evaluateCondition, findRemap, parseSpacing, replaceCalcedValues, resolveAssetSources, resolveAssetUrl, spacingToClasses, transformPageData, transformPagesData };
1315
+ export { API_VERSION_PREFIX, type AdvisoryAffected, type AdvisoryFeed, type AdvisorySeverity, type BackupManifest, 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 IGetPageResponse, type IGetPagesResponse, 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 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 IUpdateRequest, type IUpdateRequestResponse, type IUpdateStatus, 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, type TPermission, type TPlatform, TStyleName, type TSystemAdvisorySeverity, type TSystemComponentStatus, type TSystemHealthOverall, type TUpdateCheckSeverity, type TUpdateOperationStatus, type TUpdatePreflightStatus, type TrustLevel, type TrustedKey, type TrustedKeysFile, type UpdatePreflightResult, type WorkerRelease, buildConditionContext, classifyClass, classifyClassString, evaluateCondition, findRemap, parseSpacing, replaceCalcedValues, resolveAssetSources, resolveAssetUrl, spacingToClasses, transformPageData, transformPagesData };