@plasius/asset-contracts 0.5.0 → 0.6.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.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { GpuInterfaceRef, Sha256Hex, ShaderStyleProfileRef, GpuInterfaceManifest, ShaderVersionManifest, ShaderStyleProfileManifest, ShaderValidationEvidenceRef, ShaderVersionRef } from '@plasius/gpu-shader';
2
2
  export { GPU_SHADER_STORE_FEATURE_FLAG, GPU_SHADER_STYLE_SELECTION_CAPABILITY, GpuInterfaceManifest, GpuInterfaceRef, ModelGpuCompatibilityDescriptor, Sha256Hex, ShaderStyleProfileManifest, ShaderStyleProfileRef, ShaderValidationEvidenceRef, ShaderVersionManifest, ShaderVersionRef } from '@plasius/gpu-shader';
3
- import { ResourcePackageManifest } from '@plasius/gpu-model-core';
3
+ import { ResourcePackageManifest, GpuModelDiagnosticInput, GpuModelDiagnosticStandard, GpuModelDiagnosticMode } from '@plasius/gpu-model-core';
4
4
 
5
5
  /**
6
6
  * Validates the legacy asset-version token grammar.
@@ -1888,6 +1888,68 @@ declare class ModelResourceManifestError extends TypeError {
1888
1888
  */
1889
1889
  declare function qualifyModelResourceManifest(input: ModelResourceManifestQualificationInput): Promise<AssetManifest>;
1890
1890
 
1891
+ /** Hard ceilings for public conversion evidence, including private input metadata. */
1892
+ declare const MODEL_CONVERSION_DIAGNOSTIC_LIMITS: Readonly<{
1893
+ issues: 100;
1894
+ resources: 100;
1895
+ values: 16384;
1896
+ depth: 12;
1897
+ string: 2048;
1898
+ characters: 262144;
1899
+ timeoutMs: 60000;
1900
+ }>;
1901
+ /** Exact private canonical path to an opaque, credential-free public resource. */
1902
+ interface ModelConversionResourceBinding {
1903
+ readonly path: string;
1904
+ readonly resource: ModelResourceRef;
1905
+ }
1906
+ /** Canonical evaluator input; arbitrary adapter text is never projected. */
1907
+ interface ModelConversionDiagnosticsInput {
1908
+ readonly outcome: "completed" | "unsupported" | "failed";
1909
+ readonly source: ModelProvenance;
1910
+ readonly report: GpuModelDiagnosticInput;
1911
+ readonly resources: readonly ModelConversionResourceBinding[];
1912
+ }
1913
+ /** Cancellation and deadline cover snapshotting, lazy import and evaluation. */
1914
+ interface ModelConversionDiagnosticsOptions {
1915
+ readonly signal?: AbortSignal;
1916
+ readonly timeoutMs?: number;
1917
+ }
1918
+ /** Stable public codes; adapter-supplied codes are never treated as this vocabulary. */
1919
+ type ModelConversionDiagnosticCode = "conversion.warning" | "conversion.repair" | "conversion.loss.dropped" | "conversion.loss.approximated" | "conversion.unsupported" | "conversion.blocked" | "conversion.failed";
1920
+ /** Technical evidence only; this is never human, rights, security or promotion approval. */
1921
+ interface QualifiedModelConversionDiagnostic extends ModelConverterDiagnostic {
1922
+ readonly code: ModelConversionDiagnosticCode;
1923
+ readonly resource?: ModelResourceRef;
1924
+ readonly effect?: "dropped" | "approximated";
1925
+ readonly fallback?: string;
1926
+ }
1927
+ /** Deterministic JSON projection plus legacy-compatible converter evidence fields. */
1928
+ interface QualifiedModelConversionDiagnostics {
1929
+ readonly contractVersion: 1;
1930
+ readonly status: "succeeded" | "warning" | "unsupported" | "failed";
1931
+ readonly technicalAccepted: boolean;
1932
+ readonly standard: GpuModelDiagnosticStandard;
1933
+ readonly mode: GpuModelDiagnosticMode;
1934
+ readonly source: ModelProvenance;
1935
+ readonly diagnostics: readonly QualifiedModelConversionDiagnostic[];
1936
+ readonly converter: {
1937
+ readonly diagnostics: readonly ModelConverterDiagnostic[];
1938
+ readonly losses: readonly ModelConversionLoss[];
1939
+ };
1940
+ }
1941
+ /** Fixed, value-free error; never includes adapter/provider exception text. */
1942
+ declare class ModelConversionDiagnosticsError extends TypeError {
1943
+ readonly code: "invalid-input" | "limit-exceeded" | "unbound-resource" | "aborted" | "deadline-exceeded";
1944
+ constructor(code: "invalid-input" | "limit-exceeded" | "unbound-resource" | "aborted" | "deadline-exceeded");
1945
+ }
1946
+ /**
1947
+ * Evaluate canonical diagnostics and project fixed public text. Unknown adapter codes
1948
+ * are intentionally discarded; unknown repair rules remain blocking in model-core.
1949
+ * Exact path bindings are assertions by the trusted caller, not byte attestations.
1950
+ */
1951
+ declare function qualifyModelConversionDiagnostics(input: unknown, options?: ModelConversionDiagnosticsOptions): Promise<QualifiedModelConversionDiagnostics>;
1952
+
1891
1953
  declare const ASSET_CONTRACTS_PACKAGE = "@plasius/asset-contracts";
1892
1954
 
1893
1955
  declare const UNIFIED_ASSET_PIPELINE_FEATURE_FLAG_ID = "asset.pipeline.unified-ai-assets.enabled";
@@ -2087,4 +2149,4 @@ declare function createAssetPromotionRecord<TManifest extends AssetManifest>(inp
2087
2149
  /** Digest-verifies and promotes a typed GPU asset without a generic-factory bypass. */
2088
2150
  declare function createGpuAssetPromotionRecord<TManifest extends GpuAssetManifest>(input: AssetPromotionRecord<TManifest>, files: ReadonlyMap<string, Uint8Array>): Promise<AssetPromotionRecord<TManifest>>;
2089
2151
 
2090
- export { ASSET_CONTRACTS_PACKAGE, ASSET_FILE_ROLES, ASSET_JOB_STATES, ASSET_JSON_CONTENT_TYPE, ASSET_KINDS, ASSET_PIPELINE_MCP_CAPABILITY, ASSET_PIPELINE_REVIEW_CAPABILITY, ASSET_PROMOTION_OUTCOMES, ASSET_REVIEW_SEVERITIES, ASSET_SCREENSHOT_KINDS, ASSET_SOURCE_ADAPTERS, ASSET_WGSL_CONTENT_TYPE, type AssetFileDescriptor, type AssetFileRole, type AssetJobRecord, type AssetJobState, type AssetKind, type AssetManifest, type AssetPromotionOutcome, type AssetPromotionRecord, type AssetReviewFinding, type AssetReviewReport, type AssetReviewSeverity, type AssetScreenshotKind, type AssetScreenshotPlanItem, type AssetSourceAdapter, type BudgetExceededModelGeneratorResult, CANONICAL_MODEL_COORDINATE_SYSTEM, type CancelledModelGeneratorResult, type ConfirmableModelCandidateV2, type DiagnosticModelCandidateV2, type DisabledModelGeneratorResult, type ExistingModelCandidateAssetRef, type FailedModelGeneratorResult, type GeneratedModelGeneratorResult, type GpuAssetFileValidationInput, type GpuAssetManifest, type GpuInterfaceAssetManifest, type GpuInterfaceRefInput, MODEL_ASSET_KINDS, MODEL_CANDIDATE_HARD_GATE_KINDS, MODEL_CONFIRMATION_VIEW_KINDS, MODEL_CONFIRMATION_VIEW_SIZE_PX, MODEL_GENERATOR_DISABLED_REASON_CODE, MODEL_MATCH_ASSURANCE_BANDS, MODEL_MATCH_ASSURANCE_THRESHOLDS, MODEL_PROVENANCE_KINDS, MODEL_RANKER_ASSURANCE_CEILING_REASON_CODE, MODEL_RANKER_EVIDENCE_MODES, MODEL_REQUEST_MAX_REVISION, MODEL_RESOLUTION_CONTRACT_VERSION, MODEL_RESOLUTION_STATES, MODEL_RESOLUTION_V2_COMPATIBILITY_STATES, MODEL_RESOLUTION_V2_CONTRACT_VERSION, MODEL_RESOLUTION_V2_JSON_SCHEMAS, MODEL_RESOLUTION_V2_STATES, MODEL_RESOURCE_MANIFEST_LIMITS, MODEL_RIGHTS_STATUSES, MODEL_TEXT_ONLY_ASSURANCE_CEILING_REASON_CODE, type ModelAssemblyChild, type ModelAssemblyChildAssetRef, type ModelAssetKind, type ModelAssetManifest, type ModelAssetManifestInput, type ModelAssetRef, type ModelAttribution, type ModelBoundsMetres, type ModelBoundsMetresV2, type ModelCandidate, type ModelCandidateAssetRef, type ModelCandidateConfirmation, type ModelCandidateConfirmationBindingV2, type ModelCandidateConfirmationV2, type ModelCandidateHardGateEvidence, type ModelCandidateHardGateKind, type ModelCandidateV2, type ModelCollisionKind, type ModelCollisionPolicyEvidence, type ModelCollisionRecord, type ModelConfirmationView, type ModelConfirmationViewKind, type ModelConfirmationViews, type ModelConversionLoss, type ModelConverterDiagnostic, type ModelConverterEvidence, type ModelDiagnosticSeverity, type ModelDimensionsMetres, type ModelDimensionsMetresV2, type ModelFidelityAspect, type ModelFidelityEvidence, type ModelFidelityGateEvidence, type ModelFidelityOutcome, type ModelGeneratorArtifact, type ModelGeneratorArtifactRole, type ModelGeneratorBudgetName, type ModelGeneratorBudgetViolation, type ModelGeneratorBudgets, type ModelGeneratorCallOptions, type ModelGeneratorCancellationReason, type ModelGeneratorFailureReason, type ModelGeneratorIdentity, type ModelGeneratorPort, type ModelGeneratorRequest, type ModelGeneratorResult, type ModelGeneratorSourceBundle, type ModelGeneratorUnavailableReason, type ModelGeneratorUsage, type ModelHardConstraintEvaluation, type ModelHardConstraints, type ModelHardConstraintsV2, type ModelLodLevel, type ModelLodRecord, type ModelMatchAssessment, type ModelMatchAssurance, type ModelPartitionPolicy, type ModelProcessingManifest, type ModelProcessingManifestV2, type ModelPromotionReceipt, type ModelPromotionReceiptV2, type ModelProvenance, type ModelProvenanceKind, type ModelQuaternion, type ModelRankerEvidenceMode, type ModelRankerRef, type ModelRefinementQuestionV2, type ModelRenderEvidence, type ModelRequestSpec, type ModelRequestSpecV2, type ModelRequirementPolicy, type ModelResolution, type ModelResolutionState, type ModelResolutionStateV2, type ModelResolutionV2, type ModelResourceFileInput, ModelResourceManifestError, type ModelResourceManifestQualificationInput, type ModelResourceRef, type ModelRightsAssessment, type ModelRightsStatus, type ModelSoftPreferences, type ModelSourceIngestionLimitsV2, type ModelTechnicalProfile, type ModelTransform, type ModelVector3, PVOX_ASSEMBLY_CLOSURE_HASH_DOMAIN, PVOX_ASSET_MANIFEST_VERSION, PVOX_BINARY_CLOSURE_HASH_DOMAIN, PVOX_BOND_RECORD_BYTES, PVOX_BRICK_EDGE_VOXELS, PVOX_CANONICAL_UTF8_LENGTH_PREFIX_BYTES, PVOX_CAPABILITIES, PVOX_CAPABILITY_SET_HASH_DOMAIN, PVOX_COLLISION_BRICK_MASK_BYTES, PVOX_COLLISION_SECTION_COUNT, PVOX_CONFIRMATION_BINDING_HASH_DOMAIN, PVOX_CONTENT_TYPE, PVOX_DEFAULT_LIMITS, PVOX_DEFAULT_SOURCE_INGESTION_LIMITS, PVOX_DIRECTORY_ENTRY_BYTE_LENGTH, PVOX_DIRECTORY_HASH_DOMAIN, PVOX_EDIT_JOURNAL_GENESIS_HASH, PVOX_EDIT_JOURNAL_HASH_DOMAIN, PVOX_EDIT_JOURNAL_VERSION, PVOX_EDIT_OVERLAY_ROOT_HASH_DOMAIN, PVOX_EVALUATION_CLOSURE_HASH_DOMAIN, PVOX_FEATURE_FLAG_ID, PVOX_FIDELITY_PROFILE_IDS, PVOX_FIDELITY_PROFILE_VERSION, PVOX_FILE_EXTENSION, PVOX_FORMAT_VERSION, PVOX_HASH_DOMAINS, PVOX_HASH_PREIMAGE_LAYOUTS, PVOX_HEADER_BYTE_LENGTH, PVOX_HIERARCHY_NODE_RECORD_BYTES, PVOX_INTERIOR_LAYER_RECORD_BYTES, PVOX_LEVEL_SPAN_RECORD_BYTES, PVOX_LOD_RECORD_BYTES, PVOX_MAGIC, PVOX_MASS_PROPERTY_RECORD_BYTES, PVOX_MATERIAL_REGION_RECORD_BYTES, PVOX_MAX_ABSOLUTE_COORDINATE_METRES, PVOX_MAX_CANONICAL_HASH_UTF8_BYTES_V1, PVOX_MAX_EDIT_PATCHES, PVOX_MAX_ENCODED_BRICK_PAYLOAD_BYTES, PVOX_MAX_HASH_PREIMAGE_BYTES_V1, PVOX_MAX_HIERARCHY_NODES, PVOX_MAX_LOCAL_SAMPLES_PER_BRICK, PVOX_MAX_RUNS_PER_BRICK, PVOX_MAX_SECTIONS, PVOX_MIN_BRICK_DESCRIPTOR_BYTES, PVOX_MIN_ENCODED_COLLISION_SAMPLE_BYTES, PVOX_MIN_ENCODED_SURFACE_SAMPLE_BYTES, PVOX_MIN_STATIC_SECTION_COUNT, PVOX_MODEL_REQUEST_POLICY_ID, PVOX_NAMED_JSON_CLOSURE_SPECS_V1, PVOX_NATIVE_RENDERER_ID, PVOX_NATIVE_REVIEW_SETTINGS_ID, PVOX_NON_OVERRIDABLE_GATE_KINDS, PVOX_PAGE_KINDS, PVOX_PAGE_SET_HASH_DOMAIN, PVOX_PAGE_SIZE_BYTES, PVOX_PARTITION_RECORD_BYTES, PVOX_PHYSICAL_EVIDENCE_HASH_DOMAIN, PVOX_PHYSICAL_EVIDENCE_RECORD_BYTES, PVOX_PHYSICAL_INVENTORY_HASH_DOMAIN, PVOX_PHYSICAL_PROPERTIES, PVOX_PHYSICAL_PROPERTY_POLICIES, PVOX_PHYSICAL_PROPERTY_POLICY_ID, PVOX_PHYSICAL_PROPERTY_POLICY_VERSION, PVOX_PHYSICAL_PROPERTY_RECORD_BYTES, PVOX_PHYSICAL_REGION_INVENTORY_VERSION, PVOX_PROCESSING_CLOSURE_HASH_DOMAIN, PVOX_PUBLICATION_HASH_DOMAIN, PVOX_RENDER_BRICK_MASK_BYTES, PVOX_RENDER_EVIDENCE_HASH_DOMAIN, PVOX_REQUEST_SEMANTIC_PROFILE_HASH_DOMAIN, PVOX_REQUIRED_OAUTH_CAPABILITIES, PVOX_ROOT_HASH_DOMAIN, PVOX_ROOT_HEADER_COMPILATION_INPUT_HASH_OFFSET, PVOX_ROOT_HEADER_COORDINATE_BASIS_METRES_Y_UP_NEGATIVE_Z_FORWARD_CCW, PVOX_ROOT_HEADER_DIRECTORY_HASH_OFFSET, PVOX_ROOT_HEADER_FLAGS_V1, PVOX_ROOT_HEADER_GEOMETRY_MODE_CODES_V1, PVOX_ROOT_HEADER_HASH_RULE, PVOX_ROOT_HEADER_INLINE_RESERVED_BYTE_LENGTH, PVOX_ROOT_HEADER_INLINE_RESERVED_OFFSET, PVOX_ROOT_HEADER_LAYOUT_V1, PVOX_ROOT_HEADER_MAXIMUM_FIXED_POINT_FRACTION_BITS_V1, PVOX_ROOT_HEADER_MAXIMUM_HIERARCHY_DEPTH_V1, PVOX_ROOT_HEADER_MINIMUM_FIXED_POINT_FRACTION_BITS_V1, PVOX_ROOT_HEADER_RUNTIME_REQUEST_PROFILE_HASH_OFFSET, PVOX_ROOT_HEADER_TRAILING_RESERVED_BYTE_LENGTH, PVOX_ROOT_HEADER_TRAILING_RESERVED_OFFSET, PVOX_ROOT_RECORD_BYTES, PVOX_RUNTIME_CAPABILITY_PROFILE_IDS, PVOX_RUNTIME_REQUEST_PROFILE_HASH_DOMAIN, PVOX_SECTION_ALIGNMENT_BYTES, PVOX_SECTION_HASH_DOMAIN, PVOX_SECTION_REGISTRY, PVOX_SHA256_BYTE_LENGTH, PVOX_SHA256_HEX_LENGTH, PVOX_SURFACE_PROPERTY_RECORD_BYTES, type PhysicalPropertyEvidence, type PhysicalPropertyKind, type PhysicalPropertyProvenance, type ProposedModelCandidateAssetRef, type PvoxAssemblyChild, type PvoxAssemblyClosureHashInputV1, type PvoxAssetManifest, type PvoxAssetManifestV1, type PvoxAuthenticatedResourceMetadata, type PvoxBinaryClosureHashInputV1, type PvoxBrickPatchDescriptor, type PvoxCapability, type PvoxCapabilityStatus, type PvoxCatalogAssemblyChildRef, type PvoxCompilerEvidence, type PvoxEditJournal, type PvoxEditJournalCurrentState, type PvoxEditOperation, type PvoxEditOverlayPatchHashInputV1, type PvoxEditOverlayRootHashInputV1, type PvoxEvaluationClosureHashInputV1, type PvoxFidelityEvidence, type PvoxFidelityProfileId, type PvoxGateEvidence, type PvoxGeometryMode, type PvoxHashAttestation, type PvoxLodLevel, type PvoxLodRecord, type PvoxModelMatchAssessmentV2, type PvoxModelResolutionJsonSchema, type PvoxNamedJsonClosureV1, type PvoxNonOverridableGateKind, type PvoxPageHashRecordV1, type PvoxPageRecord, type PvoxPageSpatialKey, type PvoxPhysicalEvidenceHashInputV1, type PvoxPhysicalEvidenceRegionMaterialV1, type PvoxPhysicalInventoryHashInputV1, type PvoxPhysicalInventoryHashRecordV1, type PvoxPhysicalRegionInventoryEntry, type PvoxPhysicalRegionInventoryV1, type PvoxProcessingClosureHashInputV1, type PvoxRenderEvidence, type PvoxRequestedGeometryMode, type PvoxReviewedStructuralEvidence, type PvoxReviewedStructuralEvidenceKind, type PvoxRootHeaderGeometryModeV1, type PvoxRootHeaderInputV1, type PvoxRootSectionHashRecordV1, type PvoxRuntimeCapabilityProfileId, type PvoxRuntimeLimitsV1, type PvoxRuntimeRequestProfileV1, type PvoxStagedAssemblyChildRef, STATIC_WORLD_V1_MODEL_POLICY, type ShaderAssetManifest, type ShaderStyleProfileAssetManifest, type ShaderStyleProfileRefInput, type ShaderValidationEvidenceAssetManifest, type ShaderVersionRefInput, type StagedModelAssemblyChildRef, type TypedAssetManifest, UNIFIED_ASSET_PIPELINE_FEATURE_FLAG_ID, type UnavailableModelGeneratorResult, type VoxelCapabilityAssessment, type VoxelTechnicalProfile, assertAssetId, assertAssetVersion, assertImmutableAssetVersion, calculatePvoxMinimumArtifactByteLength, canonicalizeModelRequestSemanticProfileV1, canonicalizePvoxHashProjectionV1, canonicalizePvoxNamedJsonClosureV1, classifyModelMatchAssurance, createAssetFileDescriptor, createAssetJobRecord, createAssetManifest, createAssetPromotionRecord, createAssetReviewReport, createDisabledModelGeneratorPort, createGpuAssetManifest, createGpuAssetPromotionRecord, createGpuInterfaceAssetManifest, createGpuInterfaceRef, createModelAssetManifest, createModelAssetRef, createModelCandidate, createModelCandidateConfirmation, createModelCandidateConfirmationV2, createModelCandidateV2, createModelGeneratorRequest, createModelGeneratorResult, createModelMatchAssessment, createModelProcessingManifest, createModelProcessingManifestV2, createModelProvenance, createModelRequestSpec, createModelRequestSpecV2, createModelResolution, createModelResolutionV2, createModelResourceRef, createModelRightsAssessment, createModelTechnicalProfile, createPhysicalPropertyEvidence, createPvoxAssetManifest, createPvoxAssetManifestV1, createPvoxEditJournal, createPvoxEditJournalChain, createPvoxFidelityEvidence, createPvoxGateEvidence, createPvoxModelMatchAssessmentV2, createPvoxPhysicalRegionInventoryV1, createShaderAssetManifest, createShaderStyleProfileAssetManifest, createShaderStyleProfileRef, createShaderValidationEvidenceAssetManifest, createShaderValidationEvidenceRef, createShaderVersionRef, createStandardScreenshotPlan, createVoxelCapabilityAssessment, createVoxelTechnicalProfile, decodePvoxSha256HexV1, encodePvoxAssemblyClosureHashPreimageV1, encodePvoxBinaryClosureHashPreimageV1, encodePvoxCanonicalUtf8V1, encodePvoxCapabilitySetHashPreimageV1, encodePvoxDirectoryHashPreimageV1, encodePvoxEditOverlayRootHashPreimageV1, encodePvoxEvaluationClosureHashPreimageV1, encodePvoxI64LeV1, encodePvoxNamedJsonClosurePreimageV1, encodePvoxPageSetHashPreimageV1, encodePvoxPhysicalEvidenceHashPreimageV1, encodePvoxPhysicalInventoryHashPreimageV1, encodePvoxProcessingClosureHashPreimageV1, encodePvoxRootHashPreimageV1, encodePvoxRootHeaderV1, encodePvoxSectionHashPreimageV1, encodePvoxU16LeV1, encodePvoxU32LeV1, encodePvoxU64LeV1, evaluateModelHardConstraints, evaluateModelHardConstraintsForProfile, isAssetFileRole, isAssetId, isAssetJobState, isAssetKind, isAssetPromotionOutcome, isAssetSourceAdapter, isModelCandidateConfirmable, isModelCandidateV2Confirmable, isModelResolutionState, isModelResolutionStateV2, normalizeAssetId, normalizePvoxRootHeaderForHashV1, projectPvoxNamedJsonClosureV1, qualifyModelResourceManifest, toLegacyModelResolutionState, validateGpuAssetFiles };
2152
+ export { ASSET_CONTRACTS_PACKAGE, ASSET_FILE_ROLES, ASSET_JOB_STATES, ASSET_JSON_CONTENT_TYPE, ASSET_KINDS, ASSET_PIPELINE_MCP_CAPABILITY, ASSET_PIPELINE_REVIEW_CAPABILITY, ASSET_PROMOTION_OUTCOMES, ASSET_REVIEW_SEVERITIES, ASSET_SCREENSHOT_KINDS, ASSET_SOURCE_ADAPTERS, ASSET_WGSL_CONTENT_TYPE, type AssetFileDescriptor, type AssetFileRole, type AssetJobRecord, type AssetJobState, type AssetKind, type AssetManifest, type AssetPromotionOutcome, type AssetPromotionRecord, type AssetReviewFinding, type AssetReviewReport, type AssetReviewSeverity, type AssetScreenshotKind, type AssetScreenshotPlanItem, type AssetSourceAdapter, type BudgetExceededModelGeneratorResult, CANONICAL_MODEL_COORDINATE_SYSTEM, type CancelledModelGeneratorResult, type ConfirmableModelCandidateV2, type DiagnosticModelCandidateV2, type DisabledModelGeneratorResult, type ExistingModelCandidateAssetRef, type FailedModelGeneratorResult, type GeneratedModelGeneratorResult, type GpuAssetFileValidationInput, type GpuAssetManifest, type GpuInterfaceAssetManifest, type GpuInterfaceRefInput, MODEL_ASSET_KINDS, MODEL_CANDIDATE_HARD_GATE_KINDS, MODEL_CONFIRMATION_VIEW_KINDS, MODEL_CONFIRMATION_VIEW_SIZE_PX, MODEL_CONVERSION_DIAGNOSTIC_LIMITS, MODEL_GENERATOR_DISABLED_REASON_CODE, MODEL_MATCH_ASSURANCE_BANDS, MODEL_MATCH_ASSURANCE_THRESHOLDS, MODEL_PROVENANCE_KINDS, MODEL_RANKER_ASSURANCE_CEILING_REASON_CODE, MODEL_RANKER_EVIDENCE_MODES, MODEL_REQUEST_MAX_REVISION, MODEL_RESOLUTION_CONTRACT_VERSION, MODEL_RESOLUTION_STATES, MODEL_RESOLUTION_V2_COMPATIBILITY_STATES, MODEL_RESOLUTION_V2_CONTRACT_VERSION, MODEL_RESOLUTION_V2_JSON_SCHEMAS, MODEL_RESOLUTION_V2_STATES, MODEL_RESOURCE_MANIFEST_LIMITS, MODEL_RIGHTS_STATUSES, MODEL_TEXT_ONLY_ASSURANCE_CEILING_REASON_CODE, type ModelAssemblyChild, type ModelAssemblyChildAssetRef, type ModelAssetKind, type ModelAssetManifest, type ModelAssetManifestInput, type ModelAssetRef, type ModelAttribution, type ModelBoundsMetres, type ModelBoundsMetresV2, type ModelCandidate, type ModelCandidateAssetRef, type ModelCandidateConfirmation, type ModelCandidateConfirmationBindingV2, type ModelCandidateConfirmationV2, type ModelCandidateHardGateEvidence, type ModelCandidateHardGateKind, type ModelCandidateV2, type ModelCollisionKind, type ModelCollisionPolicyEvidence, type ModelCollisionRecord, type ModelConfirmationView, type ModelConfirmationViewKind, type ModelConfirmationViews, type ModelConversionDiagnosticCode, ModelConversionDiagnosticsError, type ModelConversionDiagnosticsInput, type ModelConversionDiagnosticsOptions, type ModelConversionLoss, type ModelConversionResourceBinding, type ModelConverterDiagnostic, type ModelConverterEvidence, type ModelDiagnosticSeverity, type ModelDimensionsMetres, type ModelDimensionsMetresV2, type ModelFidelityAspect, type ModelFidelityEvidence, type ModelFidelityGateEvidence, type ModelFidelityOutcome, type ModelGeneratorArtifact, type ModelGeneratorArtifactRole, type ModelGeneratorBudgetName, type ModelGeneratorBudgetViolation, type ModelGeneratorBudgets, type ModelGeneratorCallOptions, type ModelGeneratorCancellationReason, type ModelGeneratorFailureReason, type ModelGeneratorIdentity, type ModelGeneratorPort, type ModelGeneratorRequest, type ModelGeneratorResult, type ModelGeneratorSourceBundle, type ModelGeneratorUnavailableReason, type ModelGeneratorUsage, type ModelHardConstraintEvaluation, type ModelHardConstraints, type ModelHardConstraintsV2, type ModelLodLevel, type ModelLodRecord, type ModelMatchAssessment, type ModelMatchAssurance, type ModelPartitionPolicy, type ModelProcessingManifest, type ModelProcessingManifestV2, type ModelPromotionReceipt, type ModelPromotionReceiptV2, type ModelProvenance, type ModelProvenanceKind, type ModelQuaternion, type ModelRankerEvidenceMode, type ModelRankerRef, type ModelRefinementQuestionV2, type ModelRenderEvidence, type ModelRequestSpec, type ModelRequestSpecV2, type ModelRequirementPolicy, type ModelResolution, type ModelResolutionState, type ModelResolutionStateV2, type ModelResolutionV2, type ModelResourceFileInput, ModelResourceManifestError, type ModelResourceManifestQualificationInput, type ModelResourceRef, type ModelRightsAssessment, type ModelRightsStatus, type ModelSoftPreferences, type ModelSourceIngestionLimitsV2, type ModelTechnicalProfile, type ModelTransform, type ModelVector3, PVOX_ASSEMBLY_CLOSURE_HASH_DOMAIN, PVOX_ASSET_MANIFEST_VERSION, PVOX_BINARY_CLOSURE_HASH_DOMAIN, PVOX_BOND_RECORD_BYTES, PVOX_BRICK_EDGE_VOXELS, PVOX_CANONICAL_UTF8_LENGTH_PREFIX_BYTES, PVOX_CAPABILITIES, PVOX_CAPABILITY_SET_HASH_DOMAIN, PVOX_COLLISION_BRICK_MASK_BYTES, PVOX_COLLISION_SECTION_COUNT, PVOX_CONFIRMATION_BINDING_HASH_DOMAIN, PVOX_CONTENT_TYPE, PVOX_DEFAULT_LIMITS, PVOX_DEFAULT_SOURCE_INGESTION_LIMITS, PVOX_DIRECTORY_ENTRY_BYTE_LENGTH, PVOX_DIRECTORY_HASH_DOMAIN, PVOX_EDIT_JOURNAL_GENESIS_HASH, PVOX_EDIT_JOURNAL_HASH_DOMAIN, PVOX_EDIT_JOURNAL_VERSION, PVOX_EDIT_OVERLAY_ROOT_HASH_DOMAIN, PVOX_EVALUATION_CLOSURE_HASH_DOMAIN, PVOX_FEATURE_FLAG_ID, PVOX_FIDELITY_PROFILE_IDS, PVOX_FIDELITY_PROFILE_VERSION, PVOX_FILE_EXTENSION, PVOX_FORMAT_VERSION, PVOX_HASH_DOMAINS, PVOX_HASH_PREIMAGE_LAYOUTS, PVOX_HEADER_BYTE_LENGTH, PVOX_HIERARCHY_NODE_RECORD_BYTES, PVOX_INTERIOR_LAYER_RECORD_BYTES, PVOX_LEVEL_SPAN_RECORD_BYTES, PVOX_LOD_RECORD_BYTES, PVOX_MAGIC, PVOX_MASS_PROPERTY_RECORD_BYTES, PVOX_MATERIAL_REGION_RECORD_BYTES, PVOX_MAX_ABSOLUTE_COORDINATE_METRES, PVOX_MAX_CANONICAL_HASH_UTF8_BYTES_V1, PVOX_MAX_EDIT_PATCHES, PVOX_MAX_ENCODED_BRICK_PAYLOAD_BYTES, PVOX_MAX_HASH_PREIMAGE_BYTES_V1, PVOX_MAX_HIERARCHY_NODES, PVOX_MAX_LOCAL_SAMPLES_PER_BRICK, PVOX_MAX_RUNS_PER_BRICK, PVOX_MAX_SECTIONS, PVOX_MIN_BRICK_DESCRIPTOR_BYTES, PVOX_MIN_ENCODED_COLLISION_SAMPLE_BYTES, PVOX_MIN_ENCODED_SURFACE_SAMPLE_BYTES, PVOX_MIN_STATIC_SECTION_COUNT, PVOX_MODEL_REQUEST_POLICY_ID, PVOX_NAMED_JSON_CLOSURE_SPECS_V1, PVOX_NATIVE_RENDERER_ID, PVOX_NATIVE_REVIEW_SETTINGS_ID, PVOX_NON_OVERRIDABLE_GATE_KINDS, PVOX_PAGE_KINDS, PVOX_PAGE_SET_HASH_DOMAIN, PVOX_PAGE_SIZE_BYTES, PVOX_PARTITION_RECORD_BYTES, PVOX_PHYSICAL_EVIDENCE_HASH_DOMAIN, PVOX_PHYSICAL_EVIDENCE_RECORD_BYTES, PVOX_PHYSICAL_INVENTORY_HASH_DOMAIN, PVOX_PHYSICAL_PROPERTIES, PVOX_PHYSICAL_PROPERTY_POLICIES, PVOX_PHYSICAL_PROPERTY_POLICY_ID, PVOX_PHYSICAL_PROPERTY_POLICY_VERSION, PVOX_PHYSICAL_PROPERTY_RECORD_BYTES, PVOX_PHYSICAL_REGION_INVENTORY_VERSION, PVOX_PROCESSING_CLOSURE_HASH_DOMAIN, PVOX_PUBLICATION_HASH_DOMAIN, PVOX_RENDER_BRICK_MASK_BYTES, PVOX_RENDER_EVIDENCE_HASH_DOMAIN, PVOX_REQUEST_SEMANTIC_PROFILE_HASH_DOMAIN, PVOX_REQUIRED_OAUTH_CAPABILITIES, PVOX_ROOT_HASH_DOMAIN, PVOX_ROOT_HEADER_COMPILATION_INPUT_HASH_OFFSET, PVOX_ROOT_HEADER_COORDINATE_BASIS_METRES_Y_UP_NEGATIVE_Z_FORWARD_CCW, PVOX_ROOT_HEADER_DIRECTORY_HASH_OFFSET, PVOX_ROOT_HEADER_FLAGS_V1, PVOX_ROOT_HEADER_GEOMETRY_MODE_CODES_V1, PVOX_ROOT_HEADER_HASH_RULE, PVOX_ROOT_HEADER_INLINE_RESERVED_BYTE_LENGTH, PVOX_ROOT_HEADER_INLINE_RESERVED_OFFSET, PVOX_ROOT_HEADER_LAYOUT_V1, PVOX_ROOT_HEADER_MAXIMUM_FIXED_POINT_FRACTION_BITS_V1, PVOX_ROOT_HEADER_MAXIMUM_HIERARCHY_DEPTH_V1, PVOX_ROOT_HEADER_MINIMUM_FIXED_POINT_FRACTION_BITS_V1, PVOX_ROOT_HEADER_RUNTIME_REQUEST_PROFILE_HASH_OFFSET, PVOX_ROOT_HEADER_TRAILING_RESERVED_BYTE_LENGTH, PVOX_ROOT_HEADER_TRAILING_RESERVED_OFFSET, PVOX_ROOT_RECORD_BYTES, PVOX_RUNTIME_CAPABILITY_PROFILE_IDS, PVOX_RUNTIME_REQUEST_PROFILE_HASH_DOMAIN, PVOX_SECTION_ALIGNMENT_BYTES, PVOX_SECTION_HASH_DOMAIN, PVOX_SECTION_REGISTRY, PVOX_SHA256_BYTE_LENGTH, PVOX_SHA256_HEX_LENGTH, PVOX_SURFACE_PROPERTY_RECORD_BYTES, type PhysicalPropertyEvidence, type PhysicalPropertyKind, type PhysicalPropertyProvenance, type ProposedModelCandidateAssetRef, type PvoxAssemblyChild, type PvoxAssemblyClosureHashInputV1, type PvoxAssetManifest, type PvoxAssetManifestV1, type PvoxAuthenticatedResourceMetadata, type PvoxBinaryClosureHashInputV1, type PvoxBrickPatchDescriptor, type PvoxCapability, type PvoxCapabilityStatus, type PvoxCatalogAssemblyChildRef, type PvoxCompilerEvidence, type PvoxEditJournal, type PvoxEditJournalCurrentState, type PvoxEditOperation, type PvoxEditOverlayPatchHashInputV1, type PvoxEditOverlayRootHashInputV1, type PvoxEvaluationClosureHashInputV1, type PvoxFidelityEvidence, type PvoxFidelityProfileId, type PvoxGateEvidence, type PvoxGeometryMode, type PvoxHashAttestation, type PvoxLodLevel, type PvoxLodRecord, type PvoxModelMatchAssessmentV2, type PvoxModelResolutionJsonSchema, type PvoxNamedJsonClosureV1, type PvoxNonOverridableGateKind, type PvoxPageHashRecordV1, type PvoxPageRecord, type PvoxPageSpatialKey, type PvoxPhysicalEvidenceHashInputV1, type PvoxPhysicalEvidenceRegionMaterialV1, type PvoxPhysicalInventoryHashInputV1, type PvoxPhysicalInventoryHashRecordV1, type PvoxPhysicalRegionInventoryEntry, type PvoxPhysicalRegionInventoryV1, type PvoxProcessingClosureHashInputV1, type PvoxRenderEvidence, type PvoxRequestedGeometryMode, type PvoxReviewedStructuralEvidence, type PvoxReviewedStructuralEvidenceKind, type PvoxRootHeaderGeometryModeV1, type PvoxRootHeaderInputV1, type PvoxRootSectionHashRecordV1, type PvoxRuntimeCapabilityProfileId, type PvoxRuntimeLimitsV1, type PvoxRuntimeRequestProfileV1, type PvoxStagedAssemblyChildRef, type QualifiedModelConversionDiagnostic, type QualifiedModelConversionDiagnostics, STATIC_WORLD_V1_MODEL_POLICY, type ShaderAssetManifest, type ShaderStyleProfileAssetManifest, type ShaderStyleProfileRefInput, type ShaderValidationEvidenceAssetManifest, type ShaderVersionRefInput, type StagedModelAssemblyChildRef, type TypedAssetManifest, UNIFIED_ASSET_PIPELINE_FEATURE_FLAG_ID, type UnavailableModelGeneratorResult, type VoxelCapabilityAssessment, type VoxelTechnicalProfile, assertAssetId, assertAssetVersion, assertImmutableAssetVersion, calculatePvoxMinimumArtifactByteLength, canonicalizeModelRequestSemanticProfileV1, canonicalizePvoxHashProjectionV1, canonicalizePvoxNamedJsonClosureV1, classifyModelMatchAssurance, createAssetFileDescriptor, createAssetJobRecord, createAssetManifest, createAssetPromotionRecord, createAssetReviewReport, createDisabledModelGeneratorPort, createGpuAssetManifest, createGpuAssetPromotionRecord, createGpuInterfaceAssetManifest, createGpuInterfaceRef, createModelAssetManifest, createModelAssetRef, createModelCandidate, createModelCandidateConfirmation, createModelCandidateConfirmationV2, createModelCandidateV2, createModelGeneratorRequest, createModelGeneratorResult, createModelMatchAssessment, createModelProcessingManifest, createModelProcessingManifestV2, createModelProvenance, createModelRequestSpec, createModelRequestSpecV2, createModelResolution, createModelResolutionV2, createModelResourceRef, createModelRightsAssessment, createModelTechnicalProfile, createPhysicalPropertyEvidence, createPvoxAssetManifest, createPvoxAssetManifestV1, createPvoxEditJournal, createPvoxEditJournalChain, createPvoxFidelityEvidence, createPvoxGateEvidence, createPvoxModelMatchAssessmentV2, createPvoxPhysicalRegionInventoryV1, createShaderAssetManifest, createShaderStyleProfileAssetManifest, createShaderStyleProfileRef, createShaderValidationEvidenceAssetManifest, createShaderValidationEvidenceRef, createShaderVersionRef, createStandardScreenshotPlan, createVoxelCapabilityAssessment, createVoxelTechnicalProfile, decodePvoxSha256HexV1, encodePvoxAssemblyClosureHashPreimageV1, encodePvoxBinaryClosureHashPreimageV1, encodePvoxCanonicalUtf8V1, encodePvoxCapabilitySetHashPreimageV1, encodePvoxDirectoryHashPreimageV1, encodePvoxEditOverlayRootHashPreimageV1, encodePvoxEvaluationClosureHashPreimageV1, encodePvoxI64LeV1, encodePvoxNamedJsonClosurePreimageV1, encodePvoxPageSetHashPreimageV1, encodePvoxPhysicalEvidenceHashPreimageV1, encodePvoxPhysicalInventoryHashPreimageV1, encodePvoxProcessingClosureHashPreimageV1, encodePvoxRootHashPreimageV1, encodePvoxRootHeaderV1, encodePvoxSectionHashPreimageV1, encodePvoxU16LeV1, encodePvoxU32LeV1, encodePvoxU64LeV1, evaluateModelHardConstraints, evaluateModelHardConstraintsForProfile, isAssetFileRole, isAssetId, isAssetJobState, isAssetKind, isAssetPromotionOutcome, isAssetSourceAdapter, isModelCandidateConfirmable, isModelCandidateV2Confirmable, isModelResolutionState, isModelResolutionStateV2, normalizeAssetId, normalizePvoxRootHeaderForHashV1, projectPvoxNamedJsonClosureV1, qualifyModelConversionDiagnostics, qualifyModelResourceManifest, toLegacyModelResolutionState, validateGpuAssetFiles };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { GpuInterfaceRef, Sha256Hex, ShaderStyleProfileRef, GpuInterfaceManifest, ShaderVersionManifest, ShaderStyleProfileManifest, ShaderValidationEvidenceRef, ShaderVersionRef } from '@plasius/gpu-shader';
2
2
  export { GPU_SHADER_STORE_FEATURE_FLAG, GPU_SHADER_STYLE_SELECTION_CAPABILITY, GpuInterfaceManifest, GpuInterfaceRef, ModelGpuCompatibilityDescriptor, Sha256Hex, ShaderStyleProfileManifest, ShaderStyleProfileRef, ShaderValidationEvidenceRef, ShaderVersionManifest, ShaderVersionRef } from '@plasius/gpu-shader';
3
- import { ResourcePackageManifest } from '@plasius/gpu-model-core';
3
+ import { ResourcePackageManifest, GpuModelDiagnosticInput, GpuModelDiagnosticStandard, GpuModelDiagnosticMode } from '@plasius/gpu-model-core';
4
4
 
5
5
  /**
6
6
  * Validates the legacy asset-version token grammar.
@@ -1888,6 +1888,68 @@ declare class ModelResourceManifestError extends TypeError {
1888
1888
  */
1889
1889
  declare function qualifyModelResourceManifest(input: ModelResourceManifestQualificationInput): Promise<AssetManifest>;
1890
1890
 
1891
+ /** Hard ceilings for public conversion evidence, including private input metadata. */
1892
+ declare const MODEL_CONVERSION_DIAGNOSTIC_LIMITS: Readonly<{
1893
+ issues: 100;
1894
+ resources: 100;
1895
+ values: 16384;
1896
+ depth: 12;
1897
+ string: 2048;
1898
+ characters: 262144;
1899
+ timeoutMs: 60000;
1900
+ }>;
1901
+ /** Exact private canonical path to an opaque, credential-free public resource. */
1902
+ interface ModelConversionResourceBinding {
1903
+ readonly path: string;
1904
+ readonly resource: ModelResourceRef;
1905
+ }
1906
+ /** Canonical evaluator input; arbitrary adapter text is never projected. */
1907
+ interface ModelConversionDiagnosticsInput {
1908
+ readonly outcome: "completed" | "unsupported" | "failed";
1909
+ readonly source: ModelProvenance;
1910
+ readonly report: GpuModelDiagnosticInput;
1911
+ readonly resources: readonly ModelConversionResourceBinding[];
1912
+ }
1913
+ /** Cancellation and deadline cover snapshotting, lazy import and evaluation. */
1914
+ interface ModelConversionDiagnosticsOptions {
1915
+ readonly signal?: AbortSignal;
1916
+ readonly timeoutMs?: number;
1917
+ }
1918
+ /** Stable public codes; adapter-supplied codes are never treated as this vocabulary. */
1919
+ type ModelConversionDiagnosticCode = "conversion.warning" | "conversion.repair" | "conversion.loss.dropped" | "conversion.loss.approximated" | "conversion.unsupported" | "conversion.blocked" | "conversion.failed";
1920
+ /** Technical evidence only; this is never human, rights, security or promotion approval. */
1921
+ interface QualifiedModelConversionDiagnostic extends ModelConverterDiagnostic {
1922
+ readonly code: ModelConversionDiagnosticCode;
1923
+ readonly resource?: ModelResourceRef;
1924
+ readonly effect?: "dropped" | "approximated";
1925
+ readonly fallback?: string;
1926
+ }
1927
+ /** Deterministic JSON projection plus legacy-compatible converter evidence fields. */
1928
+ interface QualifiedModelConversionDiagnostics {
1929
+ readonly contractVersion: 1;
1930
+ readonly status: "succeeded" | "warning" | "unsupported" | "failed";
1931
+ readonly technicalAccepted: boolean;
1932
+ readonly standard: GpuModelDiagnosticStandard;
1933
+ readonly mode: GpuModelDiagnosticMode;
1934
+ readonly source: ModelProvenance;
1935
+ readonly diagnostics: readonly QualifiedModelConversionDiagnostic[];
1936
+ readonly converter: {
1937
+ readonly diagnostics: readonly ModelConverterDiagnostic[];
1938
+ readonly losses: readonly ModelConversionLoss[];
1939
+ };
1940
+ }
1941
+ /** Fixed, value-free error; never includes adapter/provider exception text. */
1942
+ declare class ModelConversionDiagnosticsError extends TypeError {
1943
+ readonly code: "invalid-input" | "limit-exceeded" | "unbound-resource" | "aborted" | "deadline-exceeded";
1944
+ constructor(code: "invalid-input" | "limit-exceeded" | "unbound-resource" | "aborted" | "deadline-exceeded");
1945
+ }
1946
+ /**
1947
+ * Evaluate canonical diagnostics and project fixed public text. Unknown adapter codes
1948
+ * are intentionally discarded; unknown repair rules remain blocking in model-core.
1949
+ * Exact path bindings are assertions by the trusted caller, not byte attestations.
1950
+ */
1951
+ declare function qualifyModelConversionDiagnostics(input: unknown, options?: ModelConversionDiagnosticsOptions): Promise<QualifiedModelConversionDiagnostics>;
1952
+
1891
1953
  declare const ASSET_CONTRACTS_PACKAGE = "@plasius/asset-contracts";
1892
1954
 
1893
1955
  declare const UNIFIED_ASSET_PIPELINE_FEATURE_FLAG_ID = "asset.pipeline.unified-ai-assets.enabled";
@@ -2087,4 +2149,4 @@ declare function createAssetPromotionRecord<TManifest extends AssetManifest>(inp
2087
2149
  /** Digest-verifies and promotes a typed GPU asset without a generic-factory bypass. */
2088
2150
  declare function createGpuAssetPromotionRecord<TManifest extends GpuAssetManifest>(input: AssetPromotionRecord<TManifest>, files: ReadonlyMap<string, Uint8Array>): Promise<AssetPromotionRecord<TManifest>>;
2089
2151
 
2090
- export { ASSET_CONTRACTS_PACKAGE, ASSET_FILE_ROLES, ASSET_JOB_STATES, ASSET_JSON_CONTENT_TYPE, ASSET_KINDS, ASSET_PIPELINE_MCP_CAPABILITY, ASSET_PIPELINE_REVIEW_CAPABILITY, ASSET_PROMOTION_OUTCOMES, ASSET_REVIEW_SEVERITIES, ASSET_SCREENSHOT_KINDS, ASSET_SOURCE_ADAPTERS, ASSET_WGSL_CONTENT_TYPE, type AssetFileDescriptor, type AssetFileRole, type AssetJobRecord, type AssetJobState, type AssetKind, type AssetManifest, type AssetPromotionOutcome, type AssetPromotionRecord, type AssetReviewFinding, type AssetReviewReport, type AssetReviewSeverity, type AssetScreenshotKind, type AssetScreenshotPlanItem, type AssetSourceAdapter, type BudgetExceededModelGeneratorResult, CANONICAL_MODEL_COORDINATE_SYSTEM, type CancelledModelGeneratorResult, type ConfirmableModelCandidateV2, type DiagnosticModelCandidateV2, type DisabledModelGeneratorResult, type ExistingModelCandidateAssetRef, type FailedModelGeneratorResult, type GeneratedModelGeneratorResult, type GpuAssetFileValidationInput, type GpuAssetManifest, type GpuInterfaceAssetManifest, type GpuInterfaceRefInput, MODEL_ASSET_KINDS, MODEL_CANDIDATE_HARD_GATE_KINDS, MODEL_CONFIRMATION_VIEW_KINDS, MODEL_CONFIRMATION_VIEW_SIZE_PX, MODEL_GENERATOR_DISABLED_REASON_CODE, MODEL_MATCH_ASSURANCE_BANDS, MODEL_MATCH_ASSURANCE_THRESHOLDS, MODEL_PROVENANCE_KINDS, MODEL_RANKER_ASSURANCE_CEILING_REASON_CODE, MODEL_RANKER_EVIDENCE_MODES, MODEL_REQUEST_MAX_REVISION, MODEL_RESOLUTION_CONTRACT_VERSION, MODEL_RESOLUTION_STATES, MODEL_RESOLUTION_V2_COMPATIBILITY_STATES, MODEL_RESOLUTION_V2_CONTRACT_VERSION, MODEL_RESOLUTION_V2_JSON_SCHEMAS, MODEL_RESOLUTION_V2_STATES, MODEL_RESOURCE_MANIFEST_LIMITS, MODEL_RIGHTS_STATUSES, MODEL_TEXT_ONLY_ASSURANCE_CEILING_REASON_CODE, type ModelAssemblyChild, type ModelAssemblyChildAssetRef, type ModelAssetKind, type ModelAssetManifest, type ModelAssetManifestInput, type ModelAssetRef, type ModelAttribution, type ModelBoundsMetres, type ModelBoundsMetresV2, type ModelCandidate, type ModelCandidateAssetRef, type ModelCandidateConfirmation, type ModelCandidateConfirmationBindingV2, type ModelCandidateConfirmationV2, type ModelCandidateHardGateEvidence, type ModelCandidateHardGateKind, type ModelCandidateV2, type ModelCollisionKind, type ModelCollisionPolicyEvidence, type ModelCollisionRecord, type ModelConfirmationView, type ModelConfirmationViewKind, type ModelConfirmationViews, type ModelConversionLoss, type ModelConverterDiagnostic, type ModelConverterEvidence, type ModelDiagnosticSeverity, type ModelDimensionsMetres, type ModelDimensionsMetresV2, type ModelFidelityAspect, type ModelFidelityEvidence, type ModelFidelityGateEvidence, type ModelFidelityOutcome, type ModelGeneratorArtifact, type ModelGeneratorArtifactRole, type ModelGeneratorBudgetName, type ModelGeneratorBudgetViolation, type ModelGeneratorBudgets, type ModelGeneratorCallOptions, type ModelGeneratorCancellationReason, type ModelGeneratorFailureReason, type ModelGeneratorIdentity, type ModelGeneratorPort, type ModelGeneratorRequest, type ModelGeneratorResult, type ModelGeneratorSourceBundle, type ModelGeneratorUnavailableReason, type ModelGeneratorUsage, type ModelHardConstraintEvaluation, type ModelHardConstraints, type ModelHardConstraintsV2, type ModelLodLevel, type ModelLodRecord, type ModelMatchAssessment, type ModelMatchAssurance, type ModelPartitionPolicy, type ModelProcessingManifest, type ModelProcessingManifestV2, type ModelPromotionReceipt, type ModelPromotionReceiptV2, type ModelProvenance, type ModelProvenanceKind, type ModelQuaternion, type ModelRankerEvidenceMode, type ModelRankerRef, type ModelRefinementQuestionV2, type ModelRenderEvidence, type ModelRequestSpec, type ModelRequestSpecV2, type ModelRequirementPolicy, type ModelResolution, type ModelResolutionState, type ModelResolutionStateV2, type ModelResolutionV2, type ModelResourceFileInput, ModelResourceManifestError, type ModelResourceManifestQualificationInput, type ModelResourceRef, type ModelRightsAssessment, type ModelRightsStatus, type ModelSoftPreferences, type ModelSourceIngestionLimitsV2, type ModelTechnicalProfile, type ModelTransform, type ModelVector3, PVOX_ASSEMBLY_CLOSURE_HASH_DOMAIN, PVOX_ASSET_MANIFEST_VERSION, PVOX_BINARY_CLOSURE_HASH_DOMAIN, PVOX_BOND_RECORD_BYTES, PVOX_BRICK_EDGE_VOXELS, PVOX_CANONICAL_UTF8_LENGTH_PREFIX_BYTES, PVOX_CAPABILITIES, PVOX_CAPABILITY_SET_HASH_DOMAIN, PVOX_COLLISION_BRICK_MASK_BYTES, PVOX_COLLISION_SECTION_COUNT, PVOX_CONFIRMATION_BINDING_HASH_DOMAIN, PVOX_CONTENT_TYPE, PVOX_DEFAULT_LIMITS, PVOX_DEFAULT_SOURCE_INGESTION_LIMITS, PVOX_DIRECTORY_ENTRY_BYTE_LENGTH, PVOX_DIRECTORY_HASH_DOMAIN, PVOX_EDIT_JOURNAL_GENESIS_HASH, PVOX_EDIT_JOURNAL_HASH_DOMAIN, PVOX_EDIT_JOURNAL_VERSION, PVOX_EDIT_OVERLAY_ROOT_HASH_DOMAIN, PVOX_EVALUATION_CLOSURE_HASH_DOMAIN, PVOX_FEATURE_FLAG_ID, PVOX_FIDELITY_PROFILE_IDS, PVOX_FIDELITY_PROFILE_VERSION, PVOX_FILE_EXTENSION, PVOX_FORMAT_VERSION, PVOX_HASH_DOMAINS, PVOX_HASH_PREIMAGE_LAYOUTS, PVOX_HEADER_BYTE_LENGTH, PVOX_HIERARCHY_NODE_RECORD_BYTES, PVOX_INTERIOR_LAYER_RECORD_BYTES, PVOX_LEVEL_SPAN_RECORD_BYTES, PVOX_LOD_RECORD_BYTES, PVOX_MAGIC, PVOX_MASS_PROPERTY_RECORD_BYTES, PVOX_MATERIAL_REGION_RECORD_BYTES, PVOX_MAX_ABSOLUTE_COORDINATE_METRES, PVOX_MAX_CANONICAL_HASH_UTF8_BYTES_V1, PVOX_MAX_EDIT_PATCHES, PVOX_MAX_ENCODED_BRICK_PAYLOAD_BYTES, PVOX_MAX_HASH_PREIMAGE_BYTES_V1, PVOX_MAX_HIERARCHY_NODES, PVOX_MAX_LOCAL_SAMPLES_PER_BRICK, PVOX_MAX_RUNS_PER_BRICK, PVOX_MAX_SECTIONS, PVOX_MIN_BRICK_DESCRIPTOR_BYTES, PVOX_MIN_ENCODED_COLLISION_SAMPLE_BYTES, PVOX_MIN_ENCODED_SURFACE_SAMPLE_BYTES, PVOX_MIN_STATIC_SECTION_COUNT, PVOX_MODEL_REQUEST_POLICY_ID, PVOX_NAMED_JSON_CLOSURE_SPECS_V1, PVOX_NATIVE_RENDERER_ID, PVOX_NATIVE_REVIEW_SETTINGS_ID, PVOX_NON_OVERRIDABLE_GATE_KINDS, PVOX_PAGE_KINDS, PVOX_PAGE_SET_HASH_DOMAIN, PVOX_PAGE_SIZE_BYTES, PVOX_PARTITION_RECORD_BYTES, PVOX_PHYSICAL_EVIDENCE_HASH_DOMAIN, PVOX_PHYSICAL_EVIDENCE_RECORD_BYTES, PVOX_PHYSICAL_INVENTORY_HASH_DOMAIN, PVOX_PHYSICAL_PROPERTIES, PVOX_PHYSICAL_PROPERTY_POLICIES, PVOX_PHYSICAL_PROPERTY_POLICY_ID, PVOX_PHYSICAL_PROPERTY_POLICY_VERSION, PVOX_PHYSICAL_PROPERTY_RECORD_BYTES, PVOX_PHYSICAL_REGION_INVENTORY_VERSION, PVOX_PROCESSING_CLOSURE_HASH_DOMAIN, PVOX_PUBLICATION_HASH_DOMAIN, PVOX_RENDER_BRICK_MASK_BYTES, PVOX_RENDER_EVIDENCE_HASH_DOMAIN, PVOX_REQUEST_SEMANTIC_PROFILE_HASH_DOMAIN, PVOX_REQUIRED_OAUTH_CAPABILITIES, PVOX_ROOT_HASH_DOMAIN, PVOX_ROOT_HEADER_COMPILATION_INPUT_HASH_OFFSET, PVOX_ROOT_HEADER_COORDINATE_BASIS_METRES_Y_UP_NEGATIVE_Z_FORWARD_CCW, PVOX_ROOT_HEADER_DIRECTORY_HASH_OFFSET, PVOX_ROOT_HEADER_FLAGS_V1, PVOX_ROOT_HEADER_GEOMETRY_MODE_CODES_V1, PVOX_ROOT_HEADER_HASH_RULE, PVOX_ROOT_HEADER_INLINE_RESERVED_BYTE_LENGTH, PVOX_ROOT_HEADER_INLINE_RESERVED_OFFSET, PVOX_ROOT_HEADER_LAYOUT_V1, PVOX_ROOT_HEADER_MAXIMUM_FIXED_POINT_FRACTION_BITS_V1, PVOX_ROOT_HEADER_MAXIMUM_HIERARCHY_DEPTH_V1, PVOX_ROOT_HEADER_MINIMUM_FIXED_POINT_FRACTION_BITS_V1, PVOX_ROOT_HEADER_RUNTIME_REQUEST_PROFILE_HASH_OFFSET, PVOX_ROOT_HEADER_TRAILING_RESERVED_BYTE_LENGTH, PVOX_ROOT_HEADER_TRAILING_RESERVED_OFFSET, PVOX_ROOT_RECORD_BYTES, PVOX_RUNTIME_CAPABILITY_PROFILE_IDS, PVOX_RUNTIME_REQUEST_PROFILE_HASH_DOMAIN, PVOX_SECTION_ALIGNMENT_BYTES, PVOX_SECTION_HASH_DOMAIN, PVOX_SECTION_REGISTRY, PVOX_SHA256_BYTE_LENGTH, PVOX_SHA256_HEX_LENGTH, PVOX_SURFACE_PROPERTY_RECORD_BYTES, type PhysicalPropertyEvidence, type PhysicalPropertyKind, type PhysicalPropertyProvenance, type ProposedModelCandidateAssetRef, type PvoxAssemblyChild, type PvoxAssemblyClosureHashInputV1, type PvoxAssetManifest, type PvoxAssetManifestV1, type PvoxAuthenticatedResourceMetadata, type PvoxBinaryClosureHashInputV1, type PvoxBrickPatchDescriptor, type PvoxCapability, type PvoxCapabilityStatus, type PvoxCatalogAssemblyChildRef, type PvoxCompilerEvidence, type PvoxEditJournal, type PvoxEditJournalCurrentState, type PvoxEditOperation, type PvoxEditOverlayPatchHashInputV1, type PvoxEditOverlayRootHashInputV1, type PvoxEvaluationClosureHashInputV1, type PvoxFidelityEvidence, type PvoxFidelityProfileId, type PvoxGateEvidence, type PvoxGeometryMode, type PvoxHashAttestation, type PvoxLodLevel, type PvoxLodRecord, type PvoxModelMatchAssessmentV2, type PvoxModelResolutionJsonSchema, type PvoxNamedJsonClosureV1, type PvoxNonOverridableGateKind, type PvoxPageHashRecordV1, type PvoxPageRecord, type PvoxPageSpatialKey, type PvoxPhysicalEvidenceHashInputV1, type PvoxPhysicalEvidenceRegionMaterialV1, type PvoxPhysicalInventoryHashInputV1, type PvoxPhysicalInventoryHashRecordV1, type PvoxPhysicalRegionInventoryEntry, type PvoxPhysicalRegionInventoryV1, type PvoxProcessingClosureHashInputV1, type PvoxRenderEvidence, type PvoxRequestedGeometryMode, type PvoxReviewedStructuralEvidence, type PvoxReviewedStructuralEvidenceKind, type PvoxRootHeaderGeometryModeV1, type PvoxRootHeaderInputV1, type PvoxRootSectionHashRecordV1, type PvoxRuntimeCapabilityProfileId, type PvoxRuntimeLimitsV1, type PvoxRuntimeRequestProfileV1, type PvoxStagedAssemblyChildRef, STATIC_WORLD_V1_MODEL_POLICY, type ShaderAssetManifest, type ShaderStyleProfileAssetManifest, type ShaderStyleProfileRefInput, type ShaderValidationEvidenceAssetManifest, type ShaderVersionRefInput, type StagedModelAssemblyChildRef, type TypedAssetManifest, UNIFIED_ASSET_PIPELINE_FEATURE_FLAG_ID, type UnavailableModelGeneratorResult, type VoxelCapabilityAssessment, type VoxelTechnicalProfile, assertAssetId, assertAssetVersion, assertImmutableAssetVersion, calculatePvoxMinimumArtifactByteLength, canonicalizeModelRequestSemanticProfileV1, canonicalizePvoxHashProjectionV1, canonicalizePvoxNamedJsonClosureV1, classifyModelMatchAssurance, createAssetFileDescriptor, createAssetJobRecord, createAssetManifest, createAssetPromotionRecord, createAssetReviewReport, createDisabledModelGeneratorPort, createGpuAssetManifest, createGpuAssetPromotionRecord, createGpuInterfaceAssetManifest, createGpuInterfaceRef, createModelAssetManifest, createModelAssetRef, createModelCandidate, createModelCandidateConfirmation, createModelCandidateConfirmationV2, createModelCandidateV2, createModelGeneratorRequest, createModelGeneratorResult, createModelMatchAssessment, createModelProcessingManifest, createModelProcessingManifestV2, createModelProvenance, createModelRequestSpec, createModelRequestSpecV2, createModelResolution, createModelResolutionV2, createModelResourceRef, createModelRightsAssessment, createModelTechnicalProfile, createPhysicalPropertyEvidence, createPvoxAssetManifest, createPvoxAssetManifestV1, createPvoxEditJournal, createPvoxEditJournalChain, createPvoxFidelityEvidence, createPvoxGateEvidence, createPvoxModelMatchAssessmentV2, createPvoxPhysicalRegionInventoryV1, createShaderAssetManifest, createShaderStyleProfileAssetManifest, createShaderStyleProfileRef, createShaderValidationEvidenceAssetManifest, createShaderValidationEvidenceRef, createShaderVersionRef, createStandardScreenshotPlan, createVoxelCapabilityAssessment, createVoxelTechnicalProfile, decodePvoxSha256HexV1, encodePvoxAssemblyClosureHashPreimageV1, encodePvoxBinaryClosureHashPreimageV1, encodePvoxCanonicalUtf8V1, encodePvoxCapabilitySetHashPreimageV1, encodePvoxDirectoryHashPreimageV1, encodePvoxEditOverlayRootHashPreimageV1, encodePvoxEvaluationClosureHashPreimageV1, encodePvoxI64LeV1, encodePvoxNamedJsonClosurePreimageV1, encodePvoxPageSetHashPreimageV1, encodePvoxPhysicalEvidenceHashPreimageV1, encodePvoxPhysicalInventoryHashPreimageV1, encodePvoxProcessingClosureHashPreimageV1, encodePvoxRootHashPreimageV1, encodePvoxRootHeaderV1, encodePvoxSectionHashPreimageV1, encodePvoxU16LeV1, encodePvoxU32LeV1, encodePvoxU64LeV1, evaluateModelHardConstraints, evaluateModelHardConstraintsForProfile, isAssetFileRole, isAssetId, isAssetJobState, isAssetKind, isAssetPromotionOutcome, isAssetSourceAdapter, isModelCandidateConfirmable, isModelCandidateV2Confirmable, isModelResolutionState, isModelResolutionStateV2, normalizeAssetId, normalizePvoxRootHeaderForHashV1, projectPvoxNamedJsonClosureV1, qualifyModelResourceManifest, toLegacyModelResolutionState, validateGpuAssetFiles };
2152
+ export { ASSET_CONTRACTS_PACKAGE, ASSET_FILE_ROLES, ASSET_JOB_STATES, ASSET_JSON_CONTENT_TYPE, ASSET_KINDS, ASSET_PIPELINE_MCP_CAPABILITY, ASSET_PIPELINE_REVIEW_CAPABILITY, ASSET_PROMOTION_OUTCOMES, ASSET_REVIEW_SEVERITIES, ASSET_SCREENSHOT_KINDS, ASSET_SOURCE_ADAPTERS, ASSET_WGSL_CONTENT_TYPE, type AssetFileDescriptor, type AssetFileRole, type AssetJobRecord, type AssetJobState, type AssetKind, type AssetManifest, type AssetPromotionOutcome, type AssetPromotionRecord, type AssetReviewFinding, type AssetReviewReport, type AssetReviewSeverity, type AssetScreenshotKind, type AssetScreenshotPlanItem, type AssetSourceAdapter, type BudgetExceededModelGeneratorResult, CANONICAL_MODEL_COORDINATE_SYSTEM, type CancelledModelGeneratorResult, type ConfirmableModelCandidateV2, type DiagnosticModelCandidateV2, type DisabledModelGeneratorResult, type ExistingModelCandidateAssetRef, type FailedModelGeneratorResult, type GeneratedModelGeneratorResult, type GpuAssetFileValidationInput, type GpuAssetManifest, type GpuInterfaceAssetManifest, type GpuInterfaceRefInput, MODEL_ASSET_KINDS, MODEL_CANDIDATE_HARD_GATE_KINDS, MODEL_CONFIRMATION_VIEW_KINDS, MODEL_CONFIRMATION_VIEW_SIZE_PX, MODEL_CONVERSION_DIAGNOSTIC_LIMITS, MODEL_GENERATOR_DISABLED_REASON_CODE, MODEL_MATCH_ASSURANCE_BANDS, MODEL_MATCH_ASSURANCE_THRESHOLDS, MODEL_PROVENANCE_KINDS, MODEL_RANKER_ASSURANCE_CEILING_REASON_CODE, MODEL_RANKER_EVIDENCE_MODES, MODEL_REQUEST_MAX_REVISION, MODEL_RESOLUTION_CONTRACT_VERSION, MODEL_RESOLUTION_STATES, MODEL_RESOLUTION_V2_COMPATIBILITY_STATES, MODEL_RESOLUTION_V2_CONTRACT_VERSION, MODEL_RESOLUTION_V2_JSON_SCHEMAS, MODEL_RESOLUTION_V2_STATES, MODEL_RESOURCE_MANIFEST_LIMITS, MODEL_RIGHTS_STATUSES, MODEL_TEXT_ONLY_ASSURANCE_CEILING_REASON_CODE, type ModelAssemblyChild, type ModelAssemblyChildAssetRef, type ModelAssetKind, type ModelAssetManifest, type ModelAssetManifestInput, type ModelAssetRef, type ModelAttribution, type ModelBoundsMetres, type ModelBoundsMetresV2, type ModelCandidate, type ModelCandidateAssetRef, type ModelCandidateConfirmation, type ModelCandidateConfirmationBindingV2, type ModelCandidateConfirmationV2, type ModelCandidateHardGateEvidence, type ModelCandidateHardGateKind, type ModelCandidateV2, type ModelCollisionKind, type ModelCollisionPolicyEvidence, type ModelCollisionRecord, type ModelConfirmationView, type ModelConfirmationViewKind, type ModelConfirmationViews, type ModelConversionDiagnosticCode, ModelConversionDiagnosticsError, type ModelConversionDiagnosticsInput, type ModelConversionDiagnosticsOptions, type ModelConversionLoss, type ModelConversionResourceBinding, type ModelConverterDiagnostic, type ModelConverterEvidence, type ModelDiagnosticSeverity, type ModelDimensionsMetres, type ModelDimensionsMetresV2, type ModelFidelityAspect, type ModelFidelityEvidence, type ModelFidelityGateEvidence, type ModelFidelityOutcome, type ModelGeneratorArtifact, type ModelGeneratorArtifactRole, type ModelGeneratorBudgetName, type ModelGeneratorBudgetViolation, type ModelGeneratorBudgets, type ModelGeneratorCallOptions, type ModelGeneratorCancellationReason, type ModelGeneratorFailureReason, type ModelGeneratorIdentity, type ModelGeneratorPort, type ModelGeneratorRequest, type ModelGeneratorResult, type ModelGeneratorSourceBundle, type ModelGeneratorUnavailableReason, type ModelGeneratorUsage, type ModelHardConstraintEvaluation, type ModelHardConstraints, type ModelHardConstraintsV2, type ModelLodLevel, type ModelLodRecord, type ModelMatchAssessment, type ModelMatchAssurance, type ModelPartitionPolicy, type ModelProcessingManifest, type ModelProcessingManifestV2, type ModelPromotionReceipt, type ModelPromotionReceiptV2, type ModelProvenance, type ModelProvenanceKind, type ModelQuaternion, type ModelRankerEvidenceMode, type ModelRankerRef, type ModelRefinementQuestionV2, type ModelRenderEvidence, type ModelRequestSpec, type ModelRequestSpecV2, type ModelRequirementPolicy, type ModelResolution, type ModelResolutionState, type ModelResolutionStateV2, type ModelResolutionV2, type ModelResourceFileInput, ModelResourceManifestError, type ModelResourceManifestQualificationInput, type ModelResourceRef, type ModelRightsAssessment, type ModelRightsStatus, type ModelSoftPreferences, type ModelSourceIngestionLimitsV2, type ModelTechnicalProfile, type ModelTransform, type ModelVector3, PVOX_ASSEMBLY_CLOSURE_HASH_DOMAIN, PVOX_ASSET_MANIFEST_VERSION, PVOX_BINARY_CLOSURE_HASH_DOMAIN, PVOX_BOND_RECORD_BYTES, PVOX_BRICK_EDGE_VOXELS, PVOX_CANONICAL_UTF8_LENGTH_PREFIX_BYTES, PVOX_CAPABILITIES, PVOX_CAPABILITY_SET_HASH_DOMAIN, PVOX_COLLISION_BRICK_MASK_BYTES, PVOX_COLLISION_SECTION_COUNT, PVOX_CONFIRMATION_BINDING_HASH_DOMAIN, PVOX_CONTENT_TYPE, PVOX_DEFAULT_LIMITS, PVOX_DEFAULT_SOURCE_INGESTION_LIMITS, PVOX_DIRECTORY_ENTRY_BYTE_LENGTH, PVOX_DIRECTORY_HASH_DOMAIN, PVOX_EDIT_JOURNAL_GENESIS_HASH, PVOX_EDIT_JOURNAL_HASH_DOMAIN, PVOX_EDIT_JOURNAL_VERSION, PVOX_EDIT_OVERLAY_ROOT_HASH_DOMAIN, PVOX_EVALUATION_CLOSURE_HASH_DOMAIN, PVOX_FEATURE_FLAG_ID, PVOX_FIDELITY_PROFILE_IDS, PVOX_FIDELITY_PROFILE_VERSION, PVOX_FILE_EXTENSION, PVOX_FORMAT_VERSION, PVOX_HASH_DOMAINS, PVOX_HASH_PREIMAGE_LAYOUTS, PVOX_HEADER_BYTE_LENGTH, PVOX_HIERARCHY_NODE_RECORD_BYTES, PVOX_INTERIOR_LAYER_RECORD_BYTES, PVOX_LEVEL_SPAN_RECORD_BYTES, PVOX_LOD_RECORD_BYTES, PVOX_MAGIC, PVOX_MASS_PROPERTY_RECORD_BYTES, PVOX_MATERIAL_REGION_RECORD_BYTES, PVOX_MAX_ABSOLUTE_COORDINATE_METRES, PVOX_MAX_CANONICAL_HASH_UTF8_BYTES_V1, PVOX_MAX_EDIT_PATCHES, PVOX_MAX_ENCODED_BRICK_PAYLOAD_BYTES, PVOX_MAX_HASH_PREIMAGE_BYTES_V1, PVOX_MAX_HIERARCHY_NODES, PVOX_MAX_LOCAL_SAMPLES_PER_BRICK, PVOX_MAX_RUNS_PER_BRICK, PVOX_MAX_SECTIONS, PVOX_MIN_BRICK_DESCRIPTOR_BYTES, PVOX_MIN_ENCODED_COLLISION_SAMPLE_BYTES, PVOX_MIN_ENCODED_SURFACE_SAMPLE_BYTES, PVOX_MIN_STATIC_SECTION_COUNT, PVOX_MODEL_REQUEST_POLICY_ID, PVOX_NAMED_JSON_CLOSURE_SPECS_V1, PVOX_NATIVE_RENDERER_ID, PVOX_NATIVE_REVIEW_SETTINGS_ID, PVOX_NON_OVERRIDABLE_GATE_KINDS, PVOX_PAGE_KINDS, PVOX_PAGE_SET_HASH_DOMAIN, PVOX_PAGE_SIZE_BYTES, PVOX_PARTITION_RECORD_BYTES, PVOX_PHYSICAL_EVIDENCE_HASH_DOMAIN, PVOX_PHYSICAL_EVIDENCE_RECORD_BYTES, PVOX_PHYSICAL_INVENTORY_HASH_DOMAIN, PVOX_PHYSICAL_PROPERTIES, PVOX_PHYSICAL_PROPERTY_POLICIES, PVOX_PHYSICAL_PROPERTY_POLICY_ID, PVOX_PHYSICAL_PROPERTY_POLICY_VERSION, PVOX_PHYSICAL_PROPERTY_RECORD_BYTES, PVOX_PHYSICAL_REGION_INVENTORY_VERSION, PVOX_PROCESSING_CLOSURE_HASH_DOMAIN, PVOX_PUBLICATION_HASH_DOMAIN, PVOX_RENDER_BRICK_MASK_BYTES, PVOX_RENDER_EVIDENCE_HASH_DOMAIN, PVOX_REQUEST_SEMANTIC_PROFILE_HASH_DOMAIN, PVOX_REQUIRED_OAUTH_CAPABILITIES, PVOX_ROOT_HASH_DOMAIN, PVOX_ROOT_HEADER_COMPILATION_INPUT_HASH_OFFSET, PVOX_ROOT_HEADER_COORDINATE_BASIS_METRES_Y_UP_NEGATIVE_Z_FORWARD_CCW, PVOX_ROOT_HEADER_DIRECTORY_HASH_OFFSET, PVOX_ROOT_HEADER_FLAGS_V1, PVOX_ROOT_HEADER_GEOMETRY_MODE_CODES_V1, PVOX_ROOT_HEADER_HASH_RULE, PVOX_ROOT_HEADER_INLINE_RESERVED_BYTE_LENGTH, PVOX_ROOT_HEADER_INLINE_RESERVED_OFFSET, PVOX_ROOT_HEADER_LAYOUT_V1, PVOX_ROOT_HEADER_MAXIMUM_FIXED_POINT_FRACTION_BITS_V1, PVOX_ROOT_HEADER_MAXIMUM_HIERARCHY_DEPTH_V1, PVOX_ROOT_HEADER_MINIMUM_FIXED_POINT_FRACTION_BITS_V1, PVOX_ROOT_HEADER_RUNTIME_REQUEST_PROFILE_HASH_OFFSET, PVOX_ROOT_HEADER_TRAILING_RESERVED_BYTE_LENGTH, PVOX_ROOT_HEADER_TRAILING_RESERVED_OFFSET, PVOX_ROOT_RECORD_BYTES, PVOX_RUNTIME_CAPABILITY_PROFILE_IDS, PVOX_RUNTIME_REQUEST_PROFILE_HASH_DOMAIN, PVOX_SECTION_ALIGNMENT_BYTES, PVOX_SECTION_HASH_DOMAIN, PVOX_SECTION_REGISTRY, PVOX_SHA256_BYTE_LENGTH, PVOX_SHA256_HEX_LENGTH, PVOX_SURFACE_PROPERTY_RECORD_BYTES, type PhysicalPropertyEvidence, type PhysicalPropertyKind, type PhysicalPropertyProvenance, type ProposedModelCandidateAssetRef, type PvoxAssemblyChild, type PvoxAssemblyClosureHashInputV1, type PvoxAssetManifest, type PvoxAssetManifestV1, type PvoxAuthenticatedResourceMetadata, type PvoxBinaryClosureHashInputV1, type PvoxBrickPatchDescriptor, type PvoxCapability, type PvoxCapabilityStatus, type PvoxCatalogAssemblyChildRef, type PvoxCompilerEvidence, type PvoxEditJournal, type PvoxEditJournalCurrentState, type PvoxEditOperation, type PvoxEditOverlayPatchHashInputV1, type PvoxEditOverlayRootHashInputV1, type PvoxEvaluationClosureHashInputV1, type PvoxFidelityEvidence, type PvoxFidelityProfileId, type PvoxGateEvidence, type PvoxGeometryMode, type PvoxHashAttestation, type PvoxLodLevel, type PvoxLodRecord, type PvoxModelMatchAssessmentV2, type PvoxModelResolutionJsonSchema, type PvoxNamedJsonClosureV1, type PvoxNonOverridableGateKind, type PvoxPageHashRecordV1, type PvoxPageRecord, type PvoxPageSpatialKey, type PvoxPhysicalEvidenceHashInputV1, type PvoxPhysicalEvidenceRegionMaterialV1, type PvoxPhysicalInventoryHashInputV1, type PvoxPhysicalInventoryHashRecordV1, type PvoxPhysicalRegionInventoryEntry, type PvoxPhysicalRegionInventoryV1, type PvoxProcessingClosureHashInputV1, type PvoxRenderEvidence, type PvoxRequestedGeometryMode, type PvoxReviewedStructuralEvidence, type PvoxReviewedStructuralEvidenceKind, type PvoxRootHeaderGeometryModeV1, type PvoxRootHeaderInputV1, type PvoxRootSectionHashRecordV1, type PvoxRuntimeCapabilityProfileId, type PvoxRuntimeLimitsV1, type PvoxRuntimeRequestProfileV1, type PvoxStagedAssemblyChildRef, type QualifiedModelConversionDiagnostic, type QualifiedModelConversionDiagnostics, STATIC_WORLD_V1_MODEL_POLICY, type ShaderAssetManifest, type ShaderStyleProfileAssetManifest, type ShaderStyleProfileRefInput, type ShaderValidationEvidenceAssetManifest, type ShaderVersionRefInput, type StagedModelAssemblyChildRef, type TypedAssetManifest, UNIFIED_ASSET_PIPELINE_FEATURE_FLAG_ID, type UnavailableModelGeneratorResult, type VoxelCapabilityAssessment, type VoxelTechnicalProfile, assertAssetId, assertAssetVersion, assertImmutableAssetVersion, calculatePvoxMinimumArtifactByteLength, canonicalizeModelRequestSemanticProfileV1, canonicalizePvoxHashProjectionV1, canonicalizePvoxNamedJsonClosureV1, classifyModelMatchAssurance, createAssetFileDescriptor, createAssetJobRecord, createAssetManifest, createAssetPromotionRecord, createAssetReviewReport, createDisabledModelGeneratorPort, createGpuAssetManifest, createGpuAssetPromotionRecord, createGpuInterfaceAssetManifest, createGpuInterfaceRef, createModelAssetManifest, createModelAssetRef, createModelCandidate, createModelCandidateConfirmation, createModelCandidateConfirmationV2, createModelCandidateV2, createModelGeneratorRequest, createModelGeneratorResult, createModelMatchAssessment, createModelProcessingManifest, createModelProcessingManifestV2, createModelProvenance, createModelRequestSpec, createModelRequestSpecV2, createModelResolution, createModelResolutionV2, createModelResourceRef, createModelRightsAssessment, createModelTechnicalProfile, createPhysicalPropertyEvidence, createPvoxAssetManifest, createPvoxAssetManifestV1, createPvoxEditJournal, createPvoxEditJournalChain, createPvoxFidelityEvidence, createPvoxGateEvidence, createPvoxModelMatchAssessmentV2, createPvoxPhysicalRegionInventoryV1, createShaderAssetManifest, createShaderStyleProfileAssetManifest, createShaderStyleProfileRef, createShaderValidationEvidenceAssetManifest, createShaderValidationEvidenceRef, createShaderVersionRef, createStandardScreenshotPlan, createVoxelCapabilityAssessment, createVoxelTechnicalProfile, decodePvoxSha256HexV1, encodePvoxAssemblyClosureHashPreimageV1, encodePvoxBinaryClosureHashPreimageV1, encodePvoxCanonicalUtf8V1, encodePvoxCapabilitySetHashPreimageV1, encodePvoxDirectoryHashPreimageV1, encodePvoxEditOverlayRootHashPreimageV1, encodePvoxEvaluationClosureHashPreimageV1, encodePvoxI64LeV1, encodePvoxNamedJsonClosurePreimageV1, encodePvoxPageSetHashPreimageV1, encodePvoxPhysicalEvidenceHashPreimageV1, encodePvoxPhysicalInventoryHashPreimageV1, encodePvoxProcessingClosureHashPreimageV1, encodePvoxRootHashPreimageV1, encodePvoxRootHeaderV1, encodePvoxSectionHashPreimageV1, encodePvoxU16LeV1, encodePvoxU32LeV1, encodePvoxU64LeV1, evaluateModelHardConstraints, evaluateModelHardConstraintsForProfile, isAssetFileRole, isAssetId, isAssetJobState, isAssetKind, isAssetPromotionOutcome, isAssetSourceAdapter, isModelCandidateConfirmable, isModelCandidateV2Confirmable, isModelResolutionState, isModelResolutionStateV2, normalizeAssetId, normalizePvoxRootHeaderForHashV1, projectPvoxNamedJsonClosureV1, qualifyModelConversionDiagnostics, qualifyModelResourceManifest, toLegacyModelResolutionState, validateGpuAssetFiles };
package/dist/index.js CHANGED
@@ -6701,9 +6701,9 @@ function snapshot(value, budget, depth = 0) {
6701
6701
  return value;
6702
6702
  }
6703
6703
  if (Array.isArray(value)) return Object.freeze(list(value).map((item) => snapshot(item, budget, depth + 1)));
6704
- const fields = record(value);
6705
- for (const key of Object.keys(fields)) fields[key] = snapshot(fields[key], budget, depth + 1);
6706
- return Object.freeze(fields);
6704
+ const fields2 = record(value);
6705
+ for (const key of Object.keys(fields2)) fields2[key] = snapshot(fields2[key], budget, depth + 1);
6706
+ return Object.freeze(fields2);
6707
6707
  }
6708
6708
  function path(value) {
6709
6709
  if (typeof value !== "string" || value.length > 1024 || !value.length) fail();
@@ -6812,6 +6812,153 @@ async function qualify(input) {
6812
6812
  return Object.freeze({ ...manifest, files: Object.freeze([...manifest.files].sort((a, b) => a.path < b.path ? -1 : a.path > b.path ? 1 : 0)) });
6813
6813
  }
6814
6814
 
6815
+ // src/model-conversion-diagnostics.ts
6816
+ var MODEL_CONVERSION_DIAGNOSTIC_LIMITS = Object.freeze({ issues: 100, resources: 100, values: 16384, depth: 12, string: 2048, characters: 262144, timeoutMs: 6e4 });
6817
+ var ModelConversionDiagnosticsError = class extends TypeError {
6818
+ constructor(code) {
6819
+ super(`Invalid model conversion diagnostics: ${code}`);
6820
+ this.code = code;
6821
+ this.name = "ModelConversionDiagnosticsError";
6822
+ }
6823
+ code;
6824
+ };
6825
+ function fail2(code = "invalid-input") {
6826
+ throw new ModelConversionDiagnosticsError(code);
6827
+ }
6828
+ function fields(value) {
6829
+ if (!value || typeof value !== "object" || ![Object.prototype, null].includes(Object.getPrototypeOf(value))) fail2();
6830
+ const result = /* @__PURE__ */ Object.create(null);
6831
+ const keys = Reflect.ownKeys(value);
6832
+ if (keys.length > 1024) fail2("limit-exceeded");
6833
+ for (const key of keys) {
6834
+ if (typeof key !== "string" || key.length > 128 || ["__proto__", "prototype", "constructor"].includes(key)) fail2();
6835
+ const descriptor = Object.getOwnPropertyDescriptor(value, key);
6836
+ if (!("value" in descriptor) || !descriptor.enumerable) fail2();
6837
+ result[key] = descriptor.value;
6838
+ }
6839
+ return result;
6840
+ }
6841
+ function only(record2, keys) {
6842
+ if (Object.keys(record2).some((key) => !keys.includes(key))) fail2();
6843
+ }
6844
+ function snapshot2(value, budget, depth = 0) {
6845
+ if (--budget.values < 0 || depth > MODEL_CONVERSION_DIAGNOSTIC_LIMITS.depth) fail2("limit-exceeded");
6846
+ if (value === null || typeof value === "boolean") return value;
6847
+ if (typeof value === "string") {
6848
+ budget.characters -= value.length;
6849
+ if (value.length > MODEL_CONVERSION_DIAGNOSTIC_LIMITS.string || budget.characters < 0) fail2("limit-exceeded");
6850
+ return value;
6851
+ }
6852
+ if (typeof value === "number" && Number.isFinite(value)) return value;
6853
+ if (Array.isArray(value)) {
6854
+ if (Object.getPrototypeOf(value) !== Array.prototype || value.length > 1024) fail2("limit-exceeded");
6855
+ if (Reflect.ownKeys(value).length !== value.length + 1) fail2();
6856
+ const result = [];
6857
+ for (let i = 0; i < value.length; i++) {
6858
+ const descriptor = Object.getOwnPropertyDescriptor(value, String(i));
6859
+ if (!descriptor || !("value" in descriptor) || !descriptor.enumerable) fail2();
6860
+ result.push(snapshot2(descriptor.value, budget, depth + 1));
6861
+ }
6862
+ return Object.freeze(result);
6863
+ }
6864
+ const record2 = fields(value);
6865
+ for (const key of Object.keys(record2)) {
6866
+ budget.characters -= key.length;
6867
+ if (budget.characters < 0) fail2("limit-exceeded");
6868
+ record2[key] = snapshot2(record2[key], budget, depth + 1);
6869
+ }
6870
+ return Object.freeze(record2);
6871
+ }
6872
+ function legacy(value) {
6873
+ return Object.freeze({ severity: value.severity, code: value.code, message: value.message });
6874
+ }
6875
+ async function qualifyModelConversionDiagnostics(input, options = {}) {
6876
+ let timer;
6877
+ let signal;
6878
+ let onAbort;
6879
+ try {
6880
+ const start = performance.now();
6881
+ const controls = fields(options);
6882
+ only(controls, ["signal", "timeoutMs"]);
6883
+ const timeoutMs = controls.timeoutMs === void 0 ? 1e4 : controls.timeoutMs;
6884
+ if (typeof timeoutMs !== "number" || !Number.isSafeInteger(timeoutMs) || timeoutMs < 1 || timeoutMs > MODEL_CONVERSION_DIAGNOSTIC_LIMITS.timeoutMs) fail2();
6885
+ signal = controls.signal;
6886
+ const aborted = Object.getOwnPropertyDescriptor(AbortSignal.prototype, "aborted").get;
6887
+ const check = () => {
6888
+ if (signal !== void 0 && aborted.call(signal)) fail2("aborted");
6889
+ if (performance.now() - start >= timeoutMs) fail2("deadline-exceeded");
6890
+ };
6891
+ check();
6892
+ const args = fields(snapshot2(input, { values: MODEL_CONVERSION_DIAGNOSTIC_LIMITS.values, characters: MODEL_CONVERSION_DIAGNOSTIC_LIMITS.characters }));
6893
+ only(args, ["outcome", "source", "report", "resources"]);
6894
+ if (!["completed", "unsupported", "failed"].includes(args.outcome)) fail2();
6895
+ const source = createModelProvenance(args.source);
6896
+ const reportInput = fields(args.report);
6897
+ const maximumIssues = MODEL_CONVERSION_DIAGNOSTIC_LIMITS.issues - (args.outcome === "completed" ? 0 : 1);
6898
+ if (!Array.isArray(reportInput.issues) || reportInput.issues.length > maximumIssues) fail2("limit-exceeded");
6899
+ if (!Array.isArray(args.resources) || args.resources.length > MODEL_CONVERSION_DIAGNOSTIC_LIMITS.resources) fail2("limit-exceeded");
6900
+ const resources = /* @__PURE__ */ new Map();
6901
+ const identities = /* @__PURE__ */ new Map();
6902
+ for (const value of args.resources) {
6903
+ const binding = fields(value);
6904
+ only(binding, ["path", "resource"]);
6905
+ if (typeof binding.path !== "string" || !binding.path.startsWith("/") || binding.path === "/" || resources.has(binding.path)) fail2();
6906
+ const resource = createModelResourceRef(binding.resource);
6907
+ const identity = JSON.stringify(resource);
6908
+ if (identities.has(resource.uri) && identities.get(resource.uri) !== identity) fail2();
6909
+ identities.set(resource.uri, identity);
6910
+ resources.set(binding.path, resource);
6911
+ }
6912
+ check();
6913
+ const interrupted = new Promise((_resolve, reject) => {
6914
+ timer = setTimeout(() => reject(new ModelConversionDiagnosticsError("deadline-exceeded")), Math.max(1, timeoutMs - (performance.now() - start)));
6915
+ onAbort = () => reject(new ModelConversionDiagnosticsError("aborted"));
6916
+ if (signal) AbortSignal.prototype.addEventListener.call(signal, "abort", onAbort, { once: true });
6917
+ });
6918
+ const core = await Promise.race([import("@plasius/gpu-model-core"), interrupted]);
6919
+ check();
6920
+ const report = core.evaluateGpuModelDiagnostics(reportInput);
6921
+ const diagnostics = report.diagnostics.map((diagnostic) => {
6922
+ const resource = resources.get(diagnostic.path);
6923
+ if (diagnostic.path !== "/" && !resource) fail2("unbound-resource");
6924
+ const base = resource ? { resource } : {};
6925
+ switch (diagnostic.kind) {
6926
+ case "warning":
6927
+ return Object.freeze({ ...base, severity: "warning", code: "conversion.warning", message: "Conversion completed with an advisory." });
6928
+ case "repair":
6929
+ return Object.freeze({ ...base, severity: "warning", code: "conversion.repair", message: "Conversion applied a canonical repair fallback.", fallback: diagnostic.ruleId });
6930
+ case "loss":
6931
+ return Object.freeze({ ...base, severity: reportInput.allowLoss === true ? "warning" : "blocking", code: `conversion.loss.${diagnostic.effect}`, message: diagnostic.effect === "dropped" ? "Conversion dropped source data." : "Conversion approximated source data.", effect: diagnostic.effect });
6932
+ case "unsupported":
6933
+ return Object.freeze({ ...base, severity: "blocking", code: "conversion.unsupported", message: "Conversion encountered unsupported data." });
6934
+ case "blocking-error":
6935
+ return Object.freeze({ ...base, severity: "blocking", code: "conversion.blocked", message: "Conversion did not satisfy canonical validation policy." });
6936
+ }
6937
+ });
6938
+ if (args.outcome !== "completed") diagnostics.push(Object.freeze({ severity: "blocking", code: args.outcome === "failed" ? "conversion.failed" : "conversion.unsupported", message: args.outcome === "failed" ? "Conversion failed." : "Conversion encountered unsupported data." }));
6939
+ const technicalAccepted = args.outcome === "completed" && report.accepted;
6940
+ const status = args.outcome === "failed" ? "failed" : args.outcome === "unsupported" || report.diagnostics.some((item) => item.kind === "unsupported") ? "unsupported" : !technicalAccepted ? "failed" : diagnostics.length ? "warning" : "succeeded";
6941
+ const losses = diagnostics.filter((item) => item.effect !== void 0).map(legacy);
6942
+ check();
6943
+ return Object.freeze({
6944
+ contractVersion: 1,
6945
+ status,
6946
+ technicalAccepted,
6947
+ standard: report.standard,
6948
+ mode: report.mode,
6949
+ source,
6950
+ diagnostics: Object.freeze(diagnostics),
6951
+ converter: Object.freeze({ diagnostics: Object.freeze(diagnostics.filter((item) => item.effect === void 0).map(legacy)), losses: Object.freeze(losses) })
6952
+ });
6953
+ } catch (error) {
6954
+ if (error instanceof ModelConversionDiagnosticsError) throw error;
6955
+ return fail2();
6956
+ } finally {
6957
+ if (timer !== void 0) clearTimeout(timer);
6958
+ if (signal && onAbort) AbortSignal.prototype.removeEventListener.call(signal, "abort", onAbort);
6959
+ }
6960
+ }
6961
+
6815
6962
  // src/index.ts
6816
6963
  var ASSET_CONTRACTS_PACKAGE = "@plasius/asset-contracts";
6817
6964
  var UNIFIED_ASSET_PIPELINE_FEATURE_FLAG_ID = "asset.pipeline.unified-ai-assets.enabled";
@@ -7599,6 +7746,7 @@ export {
7599
7746
  MODEL_CANDIDATE_HARD_GATE_KINDS,
7600
7747
  MODEL_CONFIRMATION_VIEW_KINDS,
7601
7748
  MODEL_CONFIRMATION_VIEW_SIZE_PX,
7749
+ MODEL_CONVERSION_DIAGNOSTIC_LIMITS,
7602
7750
  MODEL_GENERATOR_DISABLED_REASON_CODE,
7603
7751
  MODEL_MATCH_ASSURANCE_BANDS,
7604
7752
  MODEL_MATCH_ASSURANCE_THRESHOLDS,
@@ -7615,6 +7763,7 @@ export {
7615
7763
  MODEL_RESOURCE_MANIFEST_LIMITS,
7616
7764
  MODEL_RIGHTS_STATUSES,
7617
7765
  MODEL_TEXT_ONLY_ASSURANCE_CEILING_REASON_CODE,
7766
+ ModelConversionDiagnosticsError,
7618
7767
  ModelResourceManifestError,
7619
7768
  PVOX_ASSEMBLY_CLOSURE_HASH_DOMAIN,
7620
7769
  PVOX_ASSET_MANIFEST_VERSION,
@@ -7806,6 +7955,7 @@ export {
7806
7955
  normalizeAssetId,
7807
7956
  normalizePvoxRootHeaderForHashV1,
7808
7957
  projectPvoxNamedJsonClosureV1,
7958
+ qualifyModelConversionDiagnostics,
7809
7959
  qualifyModelResourceManifest,
7810
7960
  toLegacyModelResolutionState,
7811
7961
  validateGpuAssetFiles