@myvitalrx/metadata-runtime 1.13.0 → 1.16.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
@@ -817,8 +817,22 @@ const validIn = await metadata.getRelationships({
817
817
  releaseId: session.releaseId,
818
818
  readPolicy: session.readPolicy,
819
819
  });
820
+
821
+ const catalogueRelations = await metadata.queryRelationships([
822
+ {
823
+ sourceTypeCode: 'Module',
824
+ sourceValueCode: 'RPM_VITALS',
825
+ targetTypeCode: 'Feature',
826
+ relationType: 'PARENT_CHILD',
827
+ direction: 'OUTGOING',
828
+ releaseId: session.releaseId,
829
+ readPolicy: session.readPolicy,
830
+ },
831
+ ]);
820
832
  ```
821
833
 
834
+ `queryRelationships` returns one result per query, in request order. The extension client sends at most 100 queries per request. One query uses `POST /v1/metadata/relationships/query`. Several queries use `POST /v1/metadata/relationships/batch`. Concurrent `getRelationships` calls started in the same turn are grouped the same way. Relationship lookups do not call `GET /v1/status` first. `getRelationships` and `getRelatedValues` keep their current signatures. `getRelatedValueGroups` is the batch form of `getRelatedValues`.
835
+
822
836
  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
837
 
824
838
  `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.
@@ -831,6 +845,9 @@ Extension routes, also additive:
831
845
  GET /v1/metadata/types/{typeCode}/values
832
846
  POST /v1/metadata/types/values
833
847
  POST /v1/metadata/relationships/query
848
+ POST /v1/metadata/relationships/batch
834
849
  ```
835
850
 
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.
851
+ The batch route accepts `{ releaseId, readPolicy, queries }` and returns `{ releaseId, results }` in the same order. More than 100 queries, or a body over 256 KB, is rejected. A query the index cannot answer sets `errorCode` and `message` on that result. Freshness and an unavailable snapshot fail the whole request. An extension that does not implement the batch route responds with `Unknown extension route`. The SDK does not repeat those queries one by one.
852
+
853
+ `GET /v1/metadata/{typeCode}` and `GET /v1/relations` are unchanged. Cold start loads `relationship-index.json` and `typed-relations.json` into one snapshot. Relationship lookups read that snapshot.
package/dist/index.d.ts CHANGED
@@ -229,6 +229,9 @@ declare class InvalidMetadataReferenceError extends RuntimeMetadataError {
229
229
  });
230
230
  }
231
231
 
232
+ /** Wire projectionVersion stamped on every envelope / manifest / current pointer. */
233
+ declare const PROJECTION_VERSION: "1.0";
234
+
232
235
  /**
233
236
  * Projection wire type — any non-empty camelCase (or legacy) identifier.
234
237
  *
@@ -501,6 +504,27 @@ declare class StructuredLogger {
501
504
  verbose(entry: LogEntry): void;
502
505
  }
503
506
 
507
+ /** Document discriminator. Not part of a permission identity. */
508
+ declare const PERMISSION_REGISTRY_METADATA_TYPE: "PermissionRegistry";
509
+ /**
510
+ * One permission. Identity is moduleCode + featureCode + permissionActionCode.
511
+ * `permissionKey` is the deterministic serialization of those three codes.
512
+ * CapabilityCategory is an eligibility gate and is not stored here.
513
+ */
514
+ type PermissionRegistryEntry = {
515
+ readonly permissionKey: string;
516
+ readonly moduleCode: string;
517
+ readonly featureCode: string;
518
+ readonly permissionActionCode: string;
519
+ };
520
+ type PermissionRegistryDocument = {
521
+ readonly metadataType: typeof PERMISSION_REGISTRY_METADATA_TYPE;
522
+ readonly version: typeof PROJECTION_VERSION;
523
+ readonly releaseId: string;
524
+ readonly generatedAt: string;
525
+ readonly permissions: readonly PermissionRegistryEntry[];
526
+ };
527
+
504
528
  /**
505
529
  * Governed metadata lifecycle.
506
530
  *
@@ -1143,6 +1167,7 @@ declare class MetadataDownloader implements ReadModelDownloader<LoadedProjection
1143
1167
  private readonly expectedProjectionVersion;
1144
1168
  private readonly logger;
1145
1169
  private readonly loader;
1170
+ private readonly objectInFlight;
1146
1171
  constructor(options: MetadataDownloaderOptions);
1147
1172
  buildKey(releaseId: string, fileName: string): string;
1148
1173
  /**
@@ -1192,10 +1217,12 @@ declare class MetadataDownloader implements ReadModelDownloader<LoadedProjection
1192
1217
  */
1193
1218
  downloadCommon(manifest: ProjectionManifest): Promise<CommonProjectionFile>;
1194
1219
  downloadTypedRelations(manifest: ProjectionManifest): Promise<TypedProjectionRelation[] | undefined>;
1220
+ downloadPermissionRegistry(manifest: ProjectionManifest): Promise<PermissionRegistryDocument>;
1195
1221
  downloadRelationshipIndex(manifest: ProjectionManifest): Promise<RelationshipIndex | undefined>;
1196
1222
  private assertManifestMatchesRelease;
1197
1223
  private parseAndValidateProjectionBody;
1198
1224
  private getObjectBody;
1225
+ private fetchObjectBody;
1199
1226
  private validateDownloadedFile;
1200
1227
  }
1201
1228
 
@@ -1518,6 +1545,12 @@ interface MetadataProvider {
1518
1545
  * Empty `sourceValueCodes` returns `[]`. Order follows `sourceValueCodes`.
1519
1546
  */
1520
1547
  getRelatedValueGroups(sourceTypeCode: string, sourceValueCodes: readonly string[], targetTypeCode: string, options?: MetadataResolveOptions): Promise<MetadataRelatedGroup[]>;
1548
+ /**
1549
+ * Permission vocabulary from the same release as metadata lookups.
1550
+ * Missing or invalid artifacts throw. An empty `permissions` array is a
1551
+ * published registry, not a load failure.
1552
+ */
1553
+ getPermissionRegistry(): Promise<PermissionRegistryDocument>;
1521
1554
  getStatus(): Promise<MetadataProviderStatus>;
1522
1555
  isAvailable(): Promise<boolean>;
1523
1556
  /**
@@ -1658,6 +1691,11 @@ interface MetadataRelationshipResult {
1658
1691
  supported: boolean;
1659
1692
  relationships: MetadataRelationship[];
1660
1693
  }
1694
+ /**
1695
+ * Maximum relationship queries in one extension HTTP request.
1696
+ * Keep aligned with the extension `RELATIONSHIP_QUERY_BATCH_LIMIT`.
1697
+ */
1698
+ declare const RELATIONSHIP_QUERY_BATCH_LIMIT = 100;
1661
1699
  interface MetadataReadSession {
1662
1700
  releaseId: string;
1663
1701
  readPolicy: MetadataReadPolicy;
@@ -1669,6 +1707,12 @@ interface MetadataReadSession {
1669
1707
  interface MetadataDiscoveryProvider {
1670
1708
  listValuesByType(typeCode: string, options?: MetadataListOptions): Promise<MetadataListResult>;
1671
1709
  getRelationships(query: MetadataRelationshipQuery): Promise<MetadataRelationshipResult>;
1710
+ /**
1711
+ * Resolve many relationship queries against one release.
1712
+ * Optional so existing providers stay valid. Callers fall back to
1713
+ * {@link getRelationships} when it is absent or the extension route is unsupported.
1714
+ */
1715
+ queryRelationships?(queries: readonly MetadataRelationshipQuery[]): Promise<MetadataRelationshipResult[]>;
1672
1716
  listValuesByTypes(typeCodes: readonly string[], options?: MetadataBatchListOptions): Promise<MetadataBatchListResult>;
1673
1717
  }
1674
1718
  declare function supportsMetadataDiscovery(provider: object): provider is MetadataDiscoveryProvider;
@@ -1755,6 +1799,8 @@ declare class RuntimeMetadataService implements ReadModelProvider<ProjectionEntr
1755
1799
  private readonly logger;
1756
1800
  /** Coalesce concurrent cold bootstrap (current.json + manifest.json). */
1757
1801
  private initializeInFlight;
1802
+ private permissionRegistryInFlight;
1803
+ private permissionRegistryCache;
1758
1804
  /**
1759
1805
  * In-flight selective downloads keyed by MetadataTypeCode.
1760
1806
  * Concurrent requests (and overlapping type sets) share one download per type
@@ -1851,6 +1897,13 @@ declare class RuntimeMetadataService implements ReadModelProvider<ProjectionEntr
1851
1897
  getValue(typeCode: string, valueCode: string, options?: MetadataResolveOptions): Promise<MetadataValue | null>;
1852
1898
  batchGet(references: string[], options?: MetadataResolveOptions): Promise<MetadataBatchResult>;
1853
1899
  getRelatedValues(sourceTypeCode: string, sourceValueCode: string, targetTypeCode: string, options?: MetadataResolveOptions): Promise<MetadataValue[]>;
1900
+ /**
1901
+ * Permission vocabulary for the active release.
1902
+ * Concurrent callers share one load. A failed load is not cached.
1903
+ * The last successful document is kept until the release id changes.
1904
+ */
1905
+ getPermissionRegistry(): Promise<PermissionRegistryDocument>;
1906
+ private loadPermissionRegistry;
1854
1907
  getRelatedValueGroups(sourceTypeCode: string, sourceValueCodes: readonly string[], targetTypeCode: string, options?: MetadataResolveOptions): Promise<MetadataRelatedGroup[]>;
1855
1908
  listRelations(query: MetadataRelationQuery): Promise<MetadataRelationListResult>;
1856
1909
  listTypeValues(typeCode: string, options?: MetadataResolveOptions): Promise<ListedMetadataType | null>;
@@ -1866,6 +1919,12 @@ declare class RuntimeMetadataService implements ReadModelProvider<ProjectionEntr
1866
1919
  listValuesByType(typeCode: string, options?: MetadataListOptions): Promise<MetadataListResult>;
1867
1920
  listValuesByTypes(typeCodes: readonly string[], options?: MetadataBatchListOptions): Promise<MetadataBatchListResult>;
1868
1921
  getRelationships(query: MetadataRelationshipQuery): Promise<MetadataRelationshipResult>;
1922
+ /**
1923
+ * Resolve many relationship queries with a bounded number of extension requests.
1924
+ * Providers without a batch method, and extensions that do not implement the
1925
+ * batch route, keep the existing per-query behavior.
1926
+ */
1927
+ queryRelationships(queries: readonly MetadataRelationshipQuery[]): Promise<MetadataRelationshipResult[]>;
1869
1928
  getActiveProviderKind(): MetadataProviderKind;
1870
1929
  getProviderTransportState(): string;
1871
1930
  getExtensionHealthCheckCount(): number;
@@ -1997,6 +2056,12 @@ declare class ExtensionMetadataProvider implements MetadataProvider, MetadataDis
1997
2056
  private readonly requestTimeoutMs;
1998
2057
  private readonly logger;
1999
2058
  private lifecycleSupport?;
2059
+ /** Last release observed in READY state. Not a time-based cache. */
2060
+ private verifiedFreshReleaseId;
2061
+ private readinessCheckCount;
2062
+ private relationshipRequestCount;
2063
+ private pendingRelationships;
2064
+ private relationshipFlushScheduled;
2000
2065
  private readonly fetchImpl;
2001
2066
  constructor(options: ExtensionMetadataProviderOptions);
2002
2067
  isAvailable(): Promise<boolean>;
@@ -2012,15 +2077,33 @@ declare class ExtensionMetadataProvider implements MetadataProvider, MetadataDis
2012
2077
  listValuesByType(typeCode: string, options?: MetadataListOptions): Promise<MetadataListResult>;
2013
2078
  listValuesByTypes(typeCodes: readonly string[], options?: MetadataBatchListOptions): Promise<MetadataBatchListResult>;
2014
2079
  getRelationships(query: MetadataRelationshipQuery): Promise<MetadataRelationshipResult>;
2080
+ /**
2081
+ * One or more extension requests, chunked at {@link RELATIONSHIP_QUERY_BATCH_LIMIT}.
2082
+ * A single query uses the single-query route. Several queries use the batch route.
2083
+ */
2084
+ queryRelationships(queries: readonly MetadataRelationshipQuery[]): Promise<MetadataRelationshipResult[]>;
2085
+ getPerformanceCounters(): {
2086
+ readinessCheckCount: number;
2087
+ relationshipRequestCount: number;
2088
+ };
2015
2089
  listRelations(query: MetadataRelationQuery): Promise<MetadataRelationListResult>;
2016
2090
  getRelatedValues(sourceTypeCode: string, sourceValueCode: string, targetTypeCode: string, options?: MetadataResolveOptions): Promise<MetadataValue[]>;
2017
2091
  getRelatedValueGroups(sourceTypeCode: string, sourceValueCodes: readonly string[], targetTypeCode: string, options?: MetadataResolveOptions): Promise<MetadataRelatedGroup[]>;
2092
+ getPermissionRegistry(): Promise<PermissionRegistryDocument>;
2018
2093
  getLocalizationValue(keyOrTypeCode: string, valueCodeOrLocale?: string, maybeLocale?: string): Promise<string | undefined>;
2019
2094
  getLocalizationMap(locale: string): Promise<Record<string, string> | undefined>;
2020
2095
  requestRefresh(releaseId?: string): Promise<boolean>;
2021
2096
  private assertQueryLifecycle;
2022
2097
  private toMetadataValue;
2023
2098
  private assertDiscoveryPolicy;
2099
+ private scheduleRelationshipFlush;
2100
+ private flushRelationships;
2101
+ private flushRelationshipGroup;
2102
+ private executeRelationshipGroup;
2103
+ private fetchRelationships;
2104
+ private settleSingleRelationship;
2105
+ private postSingleRelationship;
2106
+ private postRelationshipBatch;
2024
2107
  private requestJson;
2025
2108
  }
2026
2109
  declare function defaultExtensionBaseUrl(port?: number): string;
@@ -2040,6 +2123,7 @@ type S3MetadataProviderOptions = {
2040
2123
  declare class S3MetadataProvider implements MetadataProvider, MetadataDiscoveryProvider {
2041
2124
  private readonly cache;
2042
2125
  private readonly resolver;
2126
+ private readonly downloader;
2043
2127
  private readonly ensureTypesLoaded;
2044
2128
  private readonly logger;
2045
2129
  constructor(options: S3MetadataProviderOptions);
@@ -2049,6 +2133,7 @@ declare class S3MetadataProvider implements MetadataProvider, MetadataDiscoveryP
2049
2133
  batchGet(references: string[], options?: MetadataResolveOptions): Promise<MetadataBatchResult>;
2050
2134
  listRelations(query: MetadataRelationQuery): Promise<MetadataRelationListResult>;
2051
2135
  getRelatedValues(sourceTypeCode: string, sourceValueCode: string, targetTypeCode: string, options?: MetadataResolveOptions): Promise<MetadataValue[]>;
2136
+ getPermissionRegistry(): Promise<PermissionRegistryDocument>;
2052
2137
  getRelatedValueGroups(sourceTypeCode: string, sourceValueCodes: readonly string[], targetTypeCode: string, options?: MetadataResolveOptions): Promise<MetadataRelatedGroup[]>;
2053
2138
  listTypeValues(typeCode: string, options?: MetadataResolveOptions): Promise<ListedMetadataType | null>;
2054
2139
  listValuesByType(typeCode: string, options?: MetadataListOptions): Promise<MetadataListResult>;
@@ -2087,6 +2172,8 @@ type InMemoryMetadataProviderOptions = {
2087
2172
  * Default true so in-memory catalogues can answer lifecycle filters.
2088
2173
  */
2089
2174
  lifecycleSupported?: boolean;
2175
+ /** When omitted, {@link InMemoryMetadataProvider.getPermissionRegistry} fails closed. */
2176
+ permissionRegistry?: PermissionRegistryDocument;
2090
2177
  };
2091
2178
  /**
2092
2179
  * Test / local provider. Never talks to S3 or the extension.
@@ -2101,6 +2188,7 @@ declare class InMemoryMetadataProvider implements MetadataProvider, MetadataDisc
2101
2188
  private readonly typedRelationIndex;
2102
2189
  private readonly knownTypeCodes;
2103
2190
  private readonly lifecycleSupported;
2191
+ private readonly permissionRegistry;
2104
2192
  private readonly activeByType;
2105
2193
  private readonly inactiveByType;
2106
2194
  constructor(options?: InMemoryMetadataProviderOptions);
@@ -2116,6 +2204,7 @@ declare class InMemoryMetadataProvider implements MetadataProvider, MetadataDisc
2116
2204
  batchGet(references: string[], options?: MetadataResolveOptions): Promise<MetadataBatchResult>;
2117
2205
  listRelations(query: MetadataRelationQuery): Promise<MetadataRelationListResult>;
2118
2206
  getRelatedValues(sourceTypeCode: string, sourceValueCode: string, targetTypeCode: string, options?: MetadataResolveOptions): Promise<MetadataValue[]>;
2207
+ getPermissionRegistry(): Promise<PermissionRegistryDocument>;
2119
2208
  getRelatedValueGroups(sourceTypeCode: string, sourceValueCodes: readonly string[], targetTypeCode: string, options?: MetadataResolveOptions): Promise<MetadataRelatedGroup[]>;
2120
2209
  private relatedValuesFor;
2121
2210
  listTypeValues(typeCode: string, options?: MetadataResolveOptions): Promise<ListedMetadataType | null>;
@@ -2190,4 +2279,4 @@ declare class ProviderFailoverCoordinator {
2190
2279
  }
2191
2280
  declare function isExtensionServing(status: MetadataProviderStatus): boolean;
2192
2281
 
2193
- 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, MetadataExtensionContractError, 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 };
2282
+ 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, MetadataExtensionContractError, 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, RELATIONSHIP_QUERY_BATCH_LIMIT, 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 };