@myvitalrx/metadata-runtime 1.3.0 → 1.5.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/README.md CHANGED
@@ -774,4 +774,63 @@ The domain service remains independent of the underlying metadata storage implem
774
774
 
775
775
  > **Metadata Registry owns metadata. Metadata Projection publishes optimized runtime data. Metadata Runtime provides a reusable access and resolution layer for consuming that published data.**
776
776
 
777
- The NPM package allows multiple services and repositories to consume the same runtime implementation without duplicating metadata resolution logic.
777
+ The NPM package allows multiple services and repositories to consume the same runtime implementation without duplicating metadata resolution logic.
778
+
779
+ ---
780
+
781
+ # Discovery APIs
782
+
783
+ These methods are additive. `getValue`, `batchGet`, `getRelatedValues`, `getAll`, `listTypeValues`, `listRelations`, initialization, and the existing extension routes are unchanged.
784
+
785
+ `listTypeValues` still returns active values unless `includeInactive` is set, and it returns `null` for an unknown type. `listValuesByType` is the enumeration API: it returns every published value unless `status` narrows the list, and an unknown type throws `UnknownMetadataTypeError`. An existing type with no values returns `items: []`.
786
+
787
+ ```typescript
788
+ import {
789
+ METADATA_READ_POLICY,
790
+ RuntimeMetadataService,
791
+ } from '@myvitalrx/metadata-runtime';
792
+
793
+ const session = await metadata.beginMetadataRead({
794
+ readPolicy: METADATA_READ_POLICY.REQUIRE_FRESH,
795
+ });
796
+
797
+ const roles = await metadata.listValuesByType('Role', {
798
+ releaseId: session.releaseId,
799
+ readPolicy: session.readPolicy,
800
+ status: ['active', 'inactive'],
801
+ sortBy: 'sortOrder',
802
+ sortDirection: 'ASC',
803
+ limit: 100,
804
+ });
805
+
806
+ const catalogue = await metadata.listValuesByTypes(
807
+ ['CapabilityCategory', 'Module', 'Feature', 'PermissionAction', 'Role', 'OrganisationType'],
808
+ { releaseId: session.releaseId, readPolicy: session.readPolicy },
809
+ );
810
+
811
+ const validIn = await metadata.getRelationships({
812
+ sourceTypeCode: 'OrganisationType',
813
+ sourceValueCode: 'HOSPITAL',
814
+ targetTypeCode: 'Role',
815
+ relationType: 'VALID_IN',
816
+ direction: 'OUTGOING',
817
+ releaseId: session.releaseId,
818
+ readPolicy: session.readPolicy,
819
+ });
820
+ ```
821
+
822
+ Pass the same `releaseId` on every call in one catalogue build. If a refresh activates another release, the call fails with `MetadataReleaseMismatchError` instead of mixing releases. Start a new session and rebuild the catalogue.
823
+
824
+ `REQUIRE_FRESH` accepts only a projection whose status is ready. `STALE` and `DEGRADED` fail with `MetadataFreshnessError`. The default remains `ALLOW_STALE`, including for these new methods. A strict read does not fall through to S3 when the extension cannot prove freshness.
825
+
826
+ Releases published before `typed-relations.json` return `{ supported: false, relationships: [] }`. Relationship types are not inferred.
827
+
828
+ Extension routes, also additive:
829
+
830
+ ```text
831
+ GET /v1/metadata/types/{typeCode}/values
832
+ POST /v1/metadata/types/values
833
+ POST /v1/metadata/relationships/query
834
+ ```
835
+
836
+ `GET /v1/metadata/{typeCode}` and `GET /v1/relations` are unchanged. On a cold extension the new relationship route loads `typed-relations.json` into a side cache so the older route keeps its previous bootstrap response.
package/dist/index.d.ts CHANGED
@@ -53,6 +53,10 @@ declare const RUNTIME_METADATA_EVENTS: {
53
53
  readonly CACHE_HIT: "metadata_cache_hit";
54
54
  readonly CACHE_MISS: "metadata_cache_miss";
55
55
  readonly BATCH_LOOKUP: "metadata_batch_lookup";
56
+ readonly TYPE_ENUMERATION: "runtimeMetadata.typeEnumeration";
57
+ readonly TYPE_BATCH_ENUMERATION: "runtimeMetadata.typeBatchEnumeration";
58
+ readonly RELATIONSHIP_QUERY: "runtimeMetadata.relationshipQuery";
59
+ readonly FRESHNESS_REJECTED: "runtimeMetadata.freshness.rejected";
56
60
  readonly PROVIDER_SELECTED: "runtimeMetadata.provider.selected";
57
61
  readonly PROVIDER_FALLBACK: "runtimeMetadata.provider.fallback";
58
62
  readonly PROVIDER_RECOVERED: "runtimeMetadata.provider.recovered";
@@ -195,6 +199,21 @@ declare class MetadataProjectionUnavailableError extends RuntimeMetadataError {
195
199
  metadata?: Record<string, unknown>;
196
200
  });
197
201
  }
202
+ /** Discovery query was rejected before a listing or relationship read. */
203
+ declare class MetadataDiscoveryError extends RuntimeMetadataError {
204
+ constructor(message: string, code?: string);
205
+ }
206
+ /**
207
+ * `REQUIRE_FRESH` was requested and the active snapshot is not a successful
208
+ * current load. STALE and DEGRADED are never treated as fresh.
209
+ */
210
+ declare class MetadataFreshnessError extends RuntimeMetadataError {
211
+ constructor(state: string, releaseId: string | null);
212
+ }
213
+ /** A pinned read observed a different projection release than requested. */
214
+ declare class MetadataReleaseMismatchError extends RuntimeMetadataError {
215
+ constructor(requestedReleaseId: string, actualReleaseId: string | null);
216
+ }
198
217
  /** Compact `TypeCode:ValueCode` reference could not be parsed. */
199
218
  declare class InvalidMetadataReferenceError extends RuntimeMetadataError {
200
219
  constructor(reference: unknown, options?: {
@@ -465,6 +484,30 @@ declare class StructuredLogger {
465
484
  verbose(entry: LogEntry): void;
466
485
  }
467
486
 
487
+ declare const PUBLISHED_VALUE_SORT: {
488
+ readonly SORT_ORDER: "sortOrder";
489
+ readonly VALUE_CODE: "valueCode";
490
+ readonly DISPLAY_NAME: "displayName";
491
+ };
492
+ type PublishedValueSort = (typeof PUBLISHED_VALUE_SORT)[keyof typeof PUBLISHED_VALUE_SORT];
493
+ declare const PUBLISHED_VALUE_SORT_DIRECTION: {
494
+ readonly ASC: "ASC";
495
+ readonly DESC: "DESC";
496
+ };
497
+ type PublishedValueSortDirection = (typeof PUBLISHED_VALUE_SORT_DIRECTION)[keyof typeof PUBLISHED_VALUE_SORT_DIRECTION];
498
+ /**
499
+ * Attribute keys a discovery filter may match with string equality.
500
+ * Anything else is rejected so listings cannot become arbitrary JSON scans.
501
+ */
502
+ declare const PUBLISHED_VALUE_ATTRIBUTE_FILTER_KEY: {
503
+ readonly ROLE_TYPE_CODE: "roleTypeCode";
504
+ readonly CATEGORY_CODE: "categoryCode";
505
+ readonly MODULE_CODE: "moduleCode";
506
+ readonly FEATURE_CODE: "featureCode";
507
+ readonly DEVICE_CATEGORY_CODE: "deviceCategoryCode";
508
+ };
509
+ type PublishedValueAttributeFilterKey = (typeof PUBLISHED_VALUE_ATTRIBUTE_FILTER_KEY)[keyof typeof PUBLISHED_VALUE_ATTRIBUTE_FILTER_KEY];
510
+
468
511
  /**
469
512
  * Platform abstraction: a fully downloaded release bundle ready for atomic cache replace.
470
513
  *
@@ -1449,6 +1492,112 @@ declare function projectionEntryToMetadataValue(typeCode: string, valueCode: str
1449
1492
  declare function localizedLabelFromEntry(entry: ProjectionEntry, locale?: string): string;
1450
1493
  declare function metadataValueToReference(value: MetadataValue): MetadataReference;
1451
1494
 
1495
+ declare const METADATA_READ_POLICY: {
1496
+ readonly ALLOW_STALE: "ALLOW_STALE";
1497
+ readonly REQUIRE_FRESH: "REQUIRE_FRESH";
1498
+ };
1499
+ type MetadataReadPolicy = (typeof METADATA_READ_POLICY)[keyof typeof METADATA_READ_POLICY];
1500
+ declare const METADATA_RELATION_DIRECTION: {
1501
+ readonly OUTGOING: "OUTGOING";
1502
+ readonly INCOMING: "INCOMING";
1503
+ };
1504
+ type MetadataRelationDirection = (typeof METADATA_RELATION_DIRECTION)[keyof typeof METADATA_RELATION_DIRECTION];
1505
+ declare const METADATA_ATTRIBUTE_FILTER_KEY: {
1506
+ readonly ROLE_TYPE_CODE: "roleTypeCode";
1507
+ readonly CATEGORY_CODE: "categoryCode";
1508
+ readonly MODULE_CODE: "moduleCode";
1509
+ readonly FEATURE_CODE: "featureCode";
1510
+ readonly DEVICE_CATEGORY_CODE: "deviceCategoryCode";
1511
+ };
1512
+ type MetadataAttributeFilterKey = PublishedValueAttributeFilterKey;
1513
+ interface MetadataListOptions {
1514
+ status?: string | string[];
1515
+ limit?: number;
1516
+ cursor?: string;
1517
+ sortBy?: PublishedValueSort;
1518
+ sortDirection?: PublishedValueSortDirection;
1519
+ /** Exact canonical value code. */
1520
+ valueCode?: string;
1521
+ /** Case-sensitive prefix of the canonical value code. */
1522
+ valueCodePrefix?: string;
1523
+ attributes?: Partial<Record<MetadataAttributeFilterKey, string>>;
1524
+ /** Reject the read when the active snapshot is a different release. */
1525
+ releaseId?: string;
1526
+ /**
1527
+ * Opt-in freshness rule. Omitted and `ALLOW_STALE` keep the current
1528
+ * serving behavior, including STALE and DEGRADED snapshots.
1529
+ */
1530
+ readPolicy?: MetadataReadPolicy;
1531
+ }
1532
+ interface MetadataListResult {
1533
+ items: ProjectionVersionEntry[];
1534
+ nextCursor?: string;
1535
+ releaseId: string | null;
1536
+ }
1537
+ interface MetadataBatchListOptions extends Omit<MetadataListOptions, 'cursor'> {
1538
+ }
1539
+ interface MetadataBatchTypeList {
1540
+ typeCode: string;
1541
+ /** False when the type is not in the projection. Distinct from an empty type. */
1542
+ found: boolean;
1543
+ items: ProjectionVersionEntry[];
1544
+ nextCursor?: string;
1545
+ /** Set when this type could not be listed completely. */
1546
+ errorCode?: string;
1547
+ }
1548
+ interface MetadataBatchListResult {
1549
+ releaseId: string | null;
1550
+ types: MetadataBatchTypeList[];
1551
+ }
1552
+ interface MetadataRelationshipQuery {
1553
+ sourceTypeCode: string;
1554
+ sourceValueCode: string;
1555
+ targetTypeCode?: string;
1556
+ relationType?: string;
1557
+ direction?: MetadataRelationDirection;
1558
+ releaseId?: string;
1559
+ readPolicy?: MetadataReadPolicy;
1560
+ }
1561
+ interface MetadataRelationship {
1562
+ relationType: string;
1563
+ status: string;
1564
+ direction: MetadataRelationDirection;
1565
+ fromMetadataTypeCode: string;
1566
+ fromMetadataValueCode: string;
1567
+ toMetadataTypeCode: string;
1568
+ toMetadataValueCode: string;
1569
+ moduleCode?: string;
1570
+ featureCode?: string;
1571
+ permissionActionCode?: string;
1572
+ }
1573
+ interface MetadataRelationshipResult {
1574
+ releaseId: string | null;
1575
+ /** False when this release has no typed relation catalog. */
1576
+ supported: boolean;
1577
+ relationships: MetadataRelationship[];
1578
+ }
1579
+ interface MetadataReadSession {
1580
+ releaseId: string;
1581
+ readPolicy: MetadataReadPolicy;
1582
+ }
1583
+ /**
1584
+ * Optional discovery surface. Kept off {@link MetadataProvider} so existing
1585
+ * provider implementations stay valid without new mandatory methods.
1586
+ */
1587
+ interface MetadataDiscoveryProvider {
1588
+ listValuesByType(typeCode: string, options?: MetadataListOptions): Promise<MetadataListResult>;
1589
+ getRelationships(query: MetadataRelationshipQuery): Promise<MetadataRelationshipResult>;
1590
+ listValuesByTypes(typeCodes: readonly string[], options?: MetadataBatchListOptions): Promise<MetadataBatchListResult>;
1591
+ }
1592
+ declare function supportsMetadataDiscovery(provider: object): provider is MetadataDiscoveryProvider;
1593
+ declare function isFreshProjectionState(state: string | undefined | null): boolean;
1594
+ declare function assertMetadataReadPolicy(policy: MetadataReadPolicy | undefined, state: string, releaseId: string | null): void;
1595
+ declare function assertReleasePin(requestedReleaseId: string | undefined, actualReleaseId: string | null): void;
1596
+ declare function throwPublishedListFailure(failure: {
1597
+ code: string;
1598
+ message: string;
1599
+ }): never;
1600
+
1452
1601
  declare const METADATA_PROVIDER_KIND: {
1453
1602
  readonly EXTENSION: "extension";
1454
1603
  readonly S3: "s3";
@@ -1623,6 +1772,18 @@ declare class RuntimeMetadataService implements ReadModelProvider<ProjectionEntr
1623
1772
  getRelatedValueGroups(sourceTypeCode: string, sourceValueCodes: readonly string[], targetTypeCode: string, options?: MetadataResolveOptions): Promise<MetadataRelatedGroup[]>;
1624
1773
  listRelations(query: MetadataRelationQuery): Promise<MetadataRelationListResult>;
1625
1774
  listTypeValues(typeCode: string, options?: MetadataResolveOptions): Promise<ListedMetadataType | null>;
1775
+ /**
1776
+ * Capture one projection release for a catalogue built from several discovery calls.
1777
+ * Pass `releaseId` and `readPolicy` back on each call. A later call fails if the
1778
+ * extension has activated a different release. The extension keeps a single
1779
+ * snapshot, so a mismatched pin must be retried as a new session.
1780
+ */
1781
+ beginMetadataRead(options?: {
1782
+ readPolicy?: MetadataReadPolicy;
1783
+ }): Promise<MetadataReadSession>;
1784
+ listValuesByType(typeCode: string, options?: MetadataListOptions): Promise<MetadataListResult>;
1785
+ listValuesByTypes(typeCodes: readonly string[], options?: MetadataBatchListOptions): Promise<MetadataBatchListResult>;
1786
+ getRelationships(query: MetadataRelationshipQuery): Promise<MetadataRelationshipResult>;
1626
1787
  getActiveProviderKind(): MetadataProviderKind;
1627
1788
  getProviderTransportState(): string;
1628
1789
  getExtensionHealthCheckCount(): number;
@@ -1635,6 +1796,8 @@ declare class RuntimeMetadataService implements ReadModelProvider<ProjectionEntr
1635
1796
  private hydrateProviderValues;
1636
1797
  private currentWriteGuard;
1637
1798
  private installBatchReleaseIfCurrent;
1799
+ private withDiscoveryProvider;
1800
+ private logFreshnessRejection;
1638
1801
  private tryActivateFallbackFromError;
1639
1802
  }
1640
1803
 
@@ -1744,7 +1907,7 @@ type ExtensionMetadataTypeInfo = MetadataTypeCatalogInfo;
1744
1907
  * Business Lambdas must not construct this directly — use
1745
1908
  * {@link createMetadataProvider}.
1746
1909
  */
1747
- declare class ExtensionMetadataProvider implements MetadataProvider {
1910
+ declare class ExtensionMetadataProvider implements MetadataProvider, MetadataDiscoveryProvider {
1748
1911
  private readonly baseUrl;
1749
1912
  private readonly readyTimeoutMs;
1750
1913
  private readonly requestTimeoutMs;
@@ -1761,6 +1924,9 @@ declare class ExtensionMetadataProvider implements MetadataProvider {
1761
1924
  * GET /v1/metadata/{typeCode}. Unknown types are a projection miss (`null`).
1762
1925
  */
1763
1926
  listTypeValues(typeCode: string, options?: MetadataResolveOptions): Promise<ListedMetadataType | null>;
1927
+ listValuesByType(typeCode: string, options?: MetadataListOptions): Promise<MetadataListResult>;
1928
+ listValuesByTypes(typeCodes: readonly string[], options?: MetadataBatchListOptions): Promise<MetadataBatchListResult>;
1929
+ getRelationships(query: MetadataRelationshipQuery): Promise<MetadataRelationshipResult>;
1764
1930
  listRelations(query: MetadataRelationQuery): Promise<MetadataRelationListResult>;
1765
1931
  getRelatedValues(sourceTypeCode: string, sourceValueCode: string, targetTypeCode: string, options?: MetadataResolveOptions): Promise<MetadataValue[]>;
1766
1932
  getRelatedValueGroups(sourceTypeCode: string, sourceValueCodes: readonly string[], targetTypeCode: string, options?: MetadataResolveOptions): Promise<MetadataRelatedGroup[]>;
@@ -1768,6 +1934,7 @@ declare class ExtensionMetadataProvider implements MetadataProvider {
1768
1934
  getLocalizationMap(locale: string): Promise<Record<string, string> | undefined>;
1769
1935
  requestRefresh(releaseId?: string): Promise<boolean>;
1770
1936
  private toMetadataValue;
1937
+ private assertDiscoveryPolicy;
1771
1938
  private requestJson;
1772
1939
  }
1773
1940
  declare function defaultExtensionBaseUrl(port?: number): string;
@@ -1784,7 +1951,7 @@ type S3MetadataProviderOptions = {
1784
1951
  * Relies on {@link MetadataCache} + selective `{typeCode}.json` downloads.
1785
1952
  * Application code must not call this class directly.
1786
1953
  */
1787
- declare class S3MetadataProvider implements MetadataProvider {
1954
+ declare class S3MetadataProvider implements MetadataProvider, MetadataDiscoveryProvider {
1788
1955
  private readonly cache;
1789
1956
  private readonly resolver;
1790
1957
  private readonly ensureTypesLoaded;
@@ -1798,6 +1965,12 @@ declare class S3MetadataProvider implements MetadataProvider {
1798
1965
  getRelatedValues(sourceTypeCode: string, sourceValueCode: string, targetTypeCode: string, options?: MetadataResolveOptions): Promise<MetadataValue[]>;
1799
1966
  getRelatedValueGroups(sourceTypeCode: string, sourceValueCodes: readonly string[], targetTypeCode: string, options?: MetadataResolveOptions): Promise<MetadataRelatedGroup[]>;
1800
1967
  listTypeValues(typeCode: string, options?: MetadataResolveOptions): Promise<ListedMetadataType | null>;
1968
+ listValuesByType(typeCode: string, options?: MetadataListOptions): Promise<MetadataListResult>;
1969
+ listValuesByTypes(typeCodes: readonly string[], options?: MetadataBatchListOptions): Promise<MetadataBatchListResult>;
1970
+ getRelationships(query: MetadataRelationshipQuery): Promise<MetadataRelationshipResult>;
1971
+ private prepareDiscoveryRead;
1972
+ private listLoadedType;
1973
+ private isKnownType;
1801
1974
  }
1802
1975
  declare function relatedValueCodes(index: RelationshipIndex | undefined, sourceTypeCode: string, sourceValueCode: string, targetTypeCode: string): string[];
1803
1976
  /** S3 client is owned by RuntimeMetadataService; listed for documentation. */
@@ -1815,17 +1988,23 @@ type InMemoryMetadataProviderOptions = {
1815
1988
  unavailable?: boolean;
1816
1989
  /** When omitted, listRelations reports the catalog as unsupported. */
1817
1990
  relations?: MetadataRelationRow[];
1991
+ /**
1992
+ * Types that exist even when they have no values.
1993
+ * Types present on `records` are known without being listed here.
1994
+ */
1995
+ knownTypeCodes?: readonly string[];
1818
1996
  };
1819
1997
  /**
1820
1998
  * Test / local provider. Never talks to S3 or the extension.
1821
1999
  */
1822
- declare class InMemoryMetadataProvider implements MetadataProvider {
2000
+ declare class InMemoryMetadataProvider implements MetadataProvider, MetadataDiscoveryProvider {
1823
2001
  private releaseId;
1824
2002
  private unavailable;
1825
2003
  private forcedState?;
1826
2004
  private readonly byKey;
1827
2005
  private readonly related;
1828
2006
  private readonly relations;
2007
+ private readonly knownTypeCodes;
1829
2008
  constructor(options?: InMemoryMetadataProviderOptions);
1830
2009
  isAvailable(): Promise<boolean>;
1831
2010
  setUnavailable(unavailable: boolean): void;
@@ -1842,6 +2021,12 @@ declare class InMemoryMetadataProvider implements MetadataProvider {
1842
2021
  getRelatedValueGroups(sourceTypeCode: string, sourceValueCodes: readonly string[], targetTypeCode: string, options?: MetadataResolveOptions): Promise<MetadataRelatedGroup[]>;
1843
2022
  private relatedValuesFor;
1844
2023
  listTypeValues(typeCode: string, options?: MetadataResolveOptions): Promise<ListedMetadataType | null>;
2024
+ listValuesByType(typeCode: string, options?: MetadataListOptions): Promise<MetadataListResult>;
2025
+ listValuesByTypes(typeCodes: readonly string[], options?: MetadataBatchListOptions): Promise<MetadataBatchListResult>;
2026
+ getRelationships(query: MetadataRelationshipQuery): Promise<MetadataRelationshipResult>;
2027
+ private listOneType;
2028
+ private hasType;
2029
+ private assertReadable;
1845
2030
  }
1846
2031
 
1847
2032
  declare const PROVIDER_TRANSPORT_STATE: {
@@ -1904,4 +2089,4 @@ declare class ProviderFailoverCoordinator {
1904
2089
  }
1905
2090
  declare function isExtensionServing(status: MetadataProviderStatus): boolean;
1906
2091
 
1907
- export { CACHE_STATUS, type CacheStatus, type CandidateDiagnostic, type CollectMetadataDiagnostics, type CollectResponseMetadataOptions, type CreateRuntimeMetadataFromEnvOptions, DEFAULT_EXCLUDED_CODE_FIELDS, DEFAULT_PROVIDER_RECOVERY_COOLDOWN_MS, ExtensionMetadataProvider, type ExtensionMetadataProviderOptions, type ExtensionMetadataTypeInfo, InMemoryMetadataProvider, type InMemoryMetadataProviderOptions, type InMemoryMetadataRecord, InvalidMetadataReferenceError, type ListedMetadataType, type LoadedProjectionBundle, METADATA_PROJECTIONS_BUCKET_ENV, METADATA_PROVIDER_KIND, type ManifestCompareResult, type ManifestLookupIndexEntry, type ManifestMetadataTypeEntry, ManifestValidationError, type MetadataBatchResult, MetadataCache, type MetadataCacheSnapshot, type MetadataCacheWriteGuard, MetadataDownloader, type MetadataDownloaderOptions, type MetadataHealthReport, MetadataHealthService, type MetadataHealthServiceOptions, MetadataLoader, type MetadataLoaderOptions, MetadataLookupError, MetadataNotReadyError, MetadataProjectionUnavailableError, type MetadataProvider, type MetadataProviderKind, type MetadataProviderStatus, type MetadataReference, MetadataRefreshService, type MetadataRefreshServiceOptions, type MetadataRelatedGroup, type MetadataRelationListResult, type MetadataRelationQuery, type MetadataRelationRow, type MetadataResolveOptions, MetadataResolver, type MetadataResolverOptions, type MetadataTypeCatalogInfo, type MetadataValue, NON_METADATA_KEYS, PROVIDER_TRANSPORT_STATE, ProjectionDownloadError, type ProjectionEntry, type ProjectionVersionEntry, ProviderFailoverCoordinator, type ProviderFailoverCoordinatorOptions, type ProviderTransportState, REFRESH_STATUS, RUNTIME_METADATA_EVENTS, RUNTIME_METADATA_INTEGRATION_TARGETS, RUNTIME_METADATA_TYPE_CODE_ALIASES, type ReadModelArtifact, type ReadModelBundle, type ReadModelCache, type ReadModelCacheLoader, type ReadModelDownloader, type ReadModelGroupDescriptor, type ReadModelGroupId, type ReadModelManifestGroupView, type ReadModelManifestGroups, type ReadModelProvider, type ReadModelRefreshCoordinator, type ReadModelResolver, type RefreshStatus, type ResolvableMetadataType, type ResolvedProjectionEntry, type RuntimeMetadataConfig, type RuntimeMetadataConfigInput, RuntimeMetadataError, RuntimeMetadataService, type RuntimeMetadataServiceOptions, S3MetadataProvider, type S3MetadataProviderClient, type S3MetadataProviderOptions, type SelectMetadataProviderInput, type SelectedMetadataProvider, UnknownMetadataTypeError, WORKFLOW_STEP_RULE_KEYS, canonicalMetadataProjectionsBucketName, collectResponseReferences, collectResponseTypeCodes, createCodeFieldExclusionSet, createRuntimeMetadataFromEnv, defaultExtensionBaseUrl, ensureRuntimeMetadataLoaded, formatMetadataReference, getCandidateTypeCodesForKey, getRuntimeMetadataHealth, getRuntimeMetadataService, hasPotentialMetadata, isCompactMetadataReference, isExtensionEnabled, isExtensionServing, isMetadataProjectionConfigured, isMetadataProjectionsBucketConfigured, isMetadataReference, isMetadataValueObject, isMetadataValueObjectArray, isWorkflowStepRecord, isWorkflowStepRuleField, localizedLabelFromEntry, manifestLocalizationSchema, metadataGroupFromManifest, metadataValueToReference, normalizeRuntimeMetadataTypeCode, onMetadataProjectionCompleted, parseMetadataReference, projectionEntryToMetadataValue, projectionManifestSchema, readMetadataProjectionsBucket, readModelGroupsFromManifest, relatedValueCodes, resetRuntimeMetadataBootstrapState, resolveMetadataProjectionsBucket, resolveRuntimeMetadataConfig, runtimeMetadataConfigSchema, selectMetadataProvider, tryGetRuntimeMetadataService, tryParseMetadataReference, typeCodeFromCodeFieldName };
2092
+ export { CACHE_STATUS, type CacheStatus, type CandidateDiagnostic, type CollectMetadataDiagnostics, type CollectResponseMetadataOptions, type CreateRuntimeMetadataFromEnvOptions, DEFAULT_EXCLUDED_CODE_FIELDS, DEFAULT_PROVIDER_RECOVERY_COOLDOWN_MS, ExtensionMetadataProvider, type ExtensionMetadataProviderOptions, type ExtensionMetadataTypeInfo, InMemoryMetadataProvider, type InMemoryMetadataProviderOptions, type InMemoryMetadataRecord, InvalidMetadataReferenceError, type ListedMetadataType, type LoadedProjectionBundle, METADATA_ATTRIBUTE_FILTER_KEY, METADATA_PROJECTIONS_BUCKET_ENV, METADATA_PROVIDER_KIND, METADATA_READ_POLICY, METADATA_RELATION_DIRECTION, type ManifestCompareResult, type ManifestLookupIndexEntry, type ManifestMetadataTypeEntry, ManifestValidationError, type MetadataAttributeFilterKey, type MetadataBatchListOptions, type MetadataBatchListResult, type MetadataBatchResult, type MetadataBatchTypeList, MetadataCache, type MetadataCacheSnapshot, type MetadataCacheWriteGuard, MetadataDiscoveryError, type MetadataDiscoveryProvider, MetadataDownloader, type MetadataDownloaderOptions, MetadataFreshnessError, type MetadataHealthReport, MetadataHealthService, type MetadataHealthServiceOptions, type MetadataListOptions, type MetadataListResult, MetadataLoader, type MetadataLoaderOptions, MetadataLookupError, MetadataNotReadyError, MetadataProjectionUnavailableError, type MetadataProvider, type MetadataProviderKind, type MetadataProviderStatus, type MetadataReadPolicy, type MetadataReadSession, type MetadataReference, MetadataRefreshService, type MetadataRefreshServiceOptions, type MetadataRelatedGroup, type MetadataRelationDirection, type MetadataRelationListResult, type MetadataRelationQuery, type MetadataRelationRow, type MetadataRelationship, type MetadataRelationshipQuery, type MetadataRelationshipResult, MetadataReleaseMismatchError, type MetadataResolveOptions, MetadataResolver, type MetadataResolverOptions, type MetadataTypeCatalogInfo, type MetadataValue, NON_METADATA_KEYS, PROVIDER_TRANSPORT_STATE, ProjectionDownloadError, type ProjectionEntry, type ProjectionVersionEntry, ProviderFailoverCoordinator, type ProviderFailoverCoordinatorOptions, type ProviderTransportState, REFRESH_STATUS, RUNTIME_METADATA_EVENTS, RUNTIME_METADATA_INTEGRATION_TARGETS, RUNTIME_METADATA_TYPE_CODE_ALIASES, type ReadModelArtifact, type ReadModelBundle, type ReadModelCache, type ReadModelCacheLoader, type ReadModelDownloader, type ReadModelGroupDescriptor, type ReadModelGroupId, type ReadModelManifestGroupView, type ReadModelManifestGroups, type ReadModelProvider, type ReadModelRefreshCoordinator, type ReadModelResolver, type RefreshStatus, type ResolvableMetadataType, type ResolvedProjectionEntry, type RuntimeMetadataConfig, type RuntimeMetadataConfigInput, RuntimeMetadataError, RuntimeMetadataService, type RuntimeMetadataServiceOptions, S3MetadataProvider, type S3MetadataProviderClient, type S3MetadataProviderOptions, type SelectMetadataProviderInput, type SelectedMetadataProvider, UnknownMetadataTypeError, WORKFLOW_STEP_RULE_KEYS, assertMetadataReadPolicy, assertReleasePin, canonicalMetadataProjectionsBucketName, collectResponseReferences, collectResponseTypeCodes, createCodeFieldExclusionSet, createRuntimeMetadataFromEnv, defaultExtensionBaseUrl, ensureRuntimeMetadataLoaded, formatMetadataReference, getCandidateTypeCodesForKey, getRuntimeMetadataHealth, getRuntimeMetadataService, hasPotentialMetadata, isCompactMetadataReference, isExtensionEnabled, isExtensionServing, isFreshProjectionState, isMetadataProjectionConfigured, isMetadataProjectionsBucketConfigured, isMetadataReference, isMetadataValueObject, isMetadataValueObjectArray, isWorkflowStepRecord, isWorkflowStepRuleField, localizedLabelFromEntry, manifestLocalizationSchema, metadataGroupFromManifest, metadataValueToReference, normalizeRuntimeMetadataTypeCode, onMetadataProjectionCompleted, parseMetadataReference, projectionEntryToMetadataValue, projectionManifestSchema, readMetadataProjectionsBucket, readModelGroupsFromManifest, relatedValueCodes, resetRuntimeMetadataBootstrapState, resolveMetadataProjectionsBucket, resolveRuntimeMetadataConfig, runtimeMetadataConfigSchema, selectMetadataProvider, supportsMetadataDiscovery, throwPublishedListFailure, tryGetRuntimeMetadataService, tryParseMetadataReference, typeCodeFromCodeFieldName };