@nativestudio/sdk 0.3.0-rc.6 → 0.3.0-rc.7
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/COMPATIBILITY.json +4 -4
- package/LICENSE +201 -21
- package/dist/_chunks/{chunk-7YCEMDNZ.js → chunk-CJEQNH37.js} +1 -1
- package/dist/_chunks/chunk-FMJ2J6DY.js +1 -0
- package/dist/_chunks/chunk-OXFBQBNS.js +1 -0
- package/dist/_chunks/chunk-VPYAXWXY.js +1 -0
- package/dist/_chunks/chunk-YZITP3AM.js +1 -0
- package/dist/_types/contracts/artifact-discovery.d.ts +76 -4
- package/dist/_types/contracts/audio.d.ts +4 -0
- package/dist/_types/contracts/composition-authoring.d.ts +8 -8
- package/dist/_types/contracts/composition-frame-render.d.ts +4 -4
- package/dist/_types/contracts/composition-render-base.d.ts +5 -4
- package/dist/_types/contracts/composition-render.d.ts +8 -8
- package/dist/_types/contracts/composition-repair.d.ts +10 -10
- package/dist/_types/contracts/composition-source-review.d.ts +12 -12
- package/dist/_types/contracts/delivery-manifest.d.ts +25 -11765
- package/dist/_types/contracts/delivery-operations.d.ts +51 -3921
- package/dist/_types/contracts/delivery-summary.d.ts +2 -2
- package/dist/_types/contracts/delivery-validation.d.ts +23 -0
- package/dist/_types/contracts/device-render.d.ts +67 -0
- package/dist/_types/contracts/editor-intelligence.d.ts +114 -2491
- package/dist/_types/contracts/exploration-recommendation.d.ts +263 -11655
- package/dist/_types/contracts/external-agent-access.d.ts +9 -3
- package/dist/_types/contracts/final-ready.d.ts +22 -22
- package/dist/_types/contracts/final-render.d.ts +1569 -6949
- package/dist/_types/contracts/human-identity.d.ts +13 -0
- package/dist/_types/contracts/index.d.ts +3 -0
- package/dist/_types/contracts/interface/media-output.d.ts +28 -0
- package/dist/_types/contracts/interface/production-snapshot.d.ts +15 -193
- package/dist/_types/contracts/keyframe-generation.d.ts +29 -0
- package/dist/_types/contracts/local-execution/agent-evidence.d.ts +2 -2
- package/dist/_types/contracts/local-execution/agent-grant.d.ts +2 -2
- package/dist/_types/contracts/local-execution/agent-review.d.ts +30 -285
- package/dist/_types/contracts/local-execution/common.d.ts +12 -11
- package/dist/_types/contracts/local-execution/completion.d.ts +41 -45
- package/dist/_types/contracts/local-execution/device-authority.d.ts +31 -0
- package/dist/_types/contracts/local-execution/device-inventory.d.ts +76 -0
- package/dist/_types/contracts/local-execution/device-workspace.d.ts +11 -0
- package/dist/_types/contracts/local-execution/device.d.ts +19 -59
- package/dist/_types/contracts/local-execution/external-generation.d.ts +199 -0
- package/dist/_types/contracts/local-execution/index.d.ts +19 -0
- package/dist/_types/contracts/local-execution/ipc.d.ts +1517 -711
- package/dist/_types/contracts/local-execution/library-command.d.ts +620 -0
- package/dist/_types/contracts/local-execution/library-result.d.ts +408 -0
- package/dist/_types/contracts/local-execution/library.d.ts +873 -0
- package/dist/_types/contracts/local-execution/lifecycle.d.ts +21 -5
- package/dist/_types/contracts/local-execution/local-navigation.d.ts +161 -44
- package/dist/_types/contracts/local-execution/management.d.ts +214 -208
- package/dist/_types/contracts/local-execution/media-recipe.d.ts +5 -1
- package/dist/_types/contracts/local-execution/media-validation-request.d.ts +232 -0
- package/dist/_types/contracts/local-execution/media-validation.d.ts +262 -0
- package/dist/_types/contracts/local-execution/object-transfer.d.ts +155 -0
- package/dist/_types/contracts/local-execution/preview.d.ts +120 -10988
- package/dist/_types/contracts/local-execution/processor-capability.d.ts +39 -0
- package/dist/_types/contracts/local-execution/processor-direct.d.ts +290 -0
- package/dist/_types/contracts/local-execution/processor-recipes.d.ts +1122 -0
- package/dist/_types/contracts/local-execution/processor.d.ts +6173 -0
- package/dist/_types/contracts/local-execution/project-source-direct.d.ts +201 -0
- package/dist/_types/contracts/local-execution/qwen-tts.d.ts +31 -0
- package/dist/_types/contracts/local-execution/recognition.d.ts +170 -0
- package/dist/_types/contracts/local-execution/speech.d.ts +95 -0
- package/dist/_types/contracts/local-execution/tool-selection.d.ts +45 -5
- package/dist/_types/contracts/local-execution/whisper.d.ts +24 -0
- package/dist/_types/contracts/local-execution/work.d.ts +69 -10741
- package/dist/_types/contracts/local-execution/workspace.d.ts +5 -0
- package/dist/_types/contracts/media-category.d.ts +11 -0
- package/dist/_types/contracts/media-observation.d.ts +929 -8
- package/dist/_types/contracts/observation-profile.d.ts +3 -3
- package/dist/_types/contracts/programmatic-composition.d.ts +24 -24
- package/dist/_types/contracts/programmatic-exploration.d.ts +348 -6009
- package/dist/_types/contracts/provider-catalog.d.ts +3 -3
- package/dist/_types/contracts/provider-models.d.ts +16 -8
- package/dist/_types/contracts/provider.d.ts +66 -1
- package/dist/_types/contracts/reference-preview.d.ts +19 -0
- package/dist/_types/contracts/repair-lifecycle.d.ts +52 -384
- package/dist/_types/contracts/repair-plan.d.ts +16 -98
- package/dist/_types/contracts/repair-strategy.d.ts +162 -4505
- package/dist/_types/contracts/review-intelligence-final-output.d.ts +317 -8163
- package/dist/_types/contracts/review-intelligence.d.ts +450 -11468
- package/dist/_types/contracts/rough-cut-manifest.d.ts +1 -0
- package/dist/_types/contracts/rough-cut-review.d.ts +134 -12566
- package/dist/_types/contracts/rough-cut.d.ts +1076 -5731
- package/dist/_types/contracts/sound-making-plan.d.ts +3 -2
- package/dist/_types/contracts/speech-cost.d.ts +81 -0
- package/dist/_types/contracts/speech.d.ts +149 -0
- package/dist/_types/contracts/temporal-evidence-operation.d.ts +1 -0
- package/dist/_types/contracts/timeline-audio.d.ts +1 -0
- package/dist/_types/contracts/timeline-manifest.d.ts +2 -0
- package/dist/_types/contracts/timeline-source-sound.d.ts +1 -0
- package/dist/_types/contracts/timeline-v2.d.ts +4 -0
- package/dist/_types/contracts/timeline-version-reader.d.ts +10 -0
- package/dist/_types/contracts/timeline-visual-layers.d.ts +4 -0
- package/dist/_types/contracts/timeline.d.ts +50 -4850
- package/dist/_types/contracts/transcription.d.ts +1 -1
- package/dist/_types/contracts/video-generation.d.ts +33 -0
- package/dist/_types/contracts/visual-layer-render.d.ts +37 -6
- package/dist/_types/contracts/visual-sequence.d.ts +22 -0
- package/dist/_types/contracts/workspace.d.ts +22 -0
- package/dist/_types/sdk/catalog/assembly.d.ts +26 -37664
- package/dist/_types/sdk/catalog/audio-caption.d.ts +10 -2
- package/dist/_types/sdk/catalog/canonical-repair.d.ts +114 -114
- package/dist/_types/sdk/catalog/carriers.d.ts +31 -0
- package/dist/_types/sdk/catalog/composition-source.d.ts +12 -12
- package/dist/_types/sdk/catalog/composition.d.ts +17 -2813
- package/dist/_types/sdk/catalog/core.d.ts +112 -3
- package/dist/_types/sdk/catalog/delivery.d.ts +12 -14167
- package/dist/_types/sdk/catalog/device-library.d.ts +992 -0
- package/dist/_types/sdk/catalog/device-management.d.ts +462 -0
- package/dist/_types/sdk/catalog/discovery.d.ts +12 -4
- package/dist/_types/sdk/catalog/editor.d.ts +23 -6538
- package/dist/_types/sdk/catalog/generation.d.ts +276 -0
- package/dist/_types/sdk/catalog/imported-visual.d.ts +229 -30
- package/dist/_types/sdk/catalog/mcp.d.ts +30 -0
- package/dist/_types/sdk/catalog/media-descriptors.d.ts +136 -11
- package/dist/_types/sdk/catalog/media-observation.d.ts +1029 -12
- package/dist/_types/sdk/catalog/programmatic-exploration.d.ts +327 -9853
- package/dist/_types/sdk/catalog/provider.d.ts +58 -20
- package/dist/_types/sdk/catalog/reference-preview.d.ts +30 -30
- package/dist/_types/sdk/catalog/repair-strategy.d.ts +180 -8914
- package/dist/_types/sdk/catalog/reviewer.d.ts +276 -23131
- package/dist/_types/sdk/catalog/shot-preparation.d.ts +51 -2972
- package/dist/_types/sdk/catalog/sound-making-plan.d.ts +6 -1776
- package/dist/_types/sdk/catalog/source-sync.d.ts +2 -0
- package/dist/_types/sdk/catalog/spec.d.ts +10 -2
- package/dist/_types/sdk/catalog/speech.d.ts +398 -0
- package/dist/_types/sdk/catalog/temporal-evidence.d.ts +2 -0
- package/dist/_types/sdk/catalog/visual-exploration.d.ts +43 -43
- package/dist/_types/sdk/client.d.ts +22 -3
- package/dist/_types/sdk/device-renders.d.ts +3257 -21
- package/dist/_types/sdk/direct-source.d.ts +147 -0
- package/dist/_types/sdk/errors.d.ts +1 -1
- package/dist/_types/sdk/image-media.d.ts +2 -2
- package/dist/_types/sdk/immutable-media.d.ts +24 -0
- package/dist/_types/sdk/index.d.ts +7 -0
- package/dist/_types/sdk/local-runtime/device-client.d.ts +7 -33
- package/dist/_types/sdk/local-runtime/library.d.ts +268 -0
- package/dist/_types/sdk/local-runtime/workspace.d.ts +9 -4
- package/dist/_types/sdk/local-runtime-client.d.ts +477 -32
- package/dist/_types/sdk/mcp-image.d.ts +4 -4
- package/dist/_types/sdk/media.d.ts +6 -6
- package/dist/account.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/local-runtime.js +1 -1
- package/dist/runtime-authority.js +1 -1
- package/package.json +2 -8
- package/README.md +0 -95
- package/dist/_chunks/chunk-4M3AGNTZ.js +0 -1
- package/dist/_chunks/chunk-GLD5WP6Z.js +0 -1
- package/dist/_chunks/chunk-NSS2BKVM.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{AudioReceiptSchema,CaptionRenderStyleSchema,CompositionFrameTechnicalSchema,CompositionRenderManifestReaderSchema,CompositionRenderResourcesSchema,CompositionRenderTechnicalSchema,DeliveryPhysicalChecksSchema,DeliveryTargetSchema,DeviceRenderReceiptSchema,DeviceRenderTargetSchema,FinalRenderAdmissionSchema,FinalRenderManifestReaderSchema,FinalRenderStartSchema,FinalRenderTechnicalSchema,HYPERFRAME_CACHED_RENDER_PROFILE,ImportedSynchronousAudioExtractionSchema,ImportedSynchronousAudioSourceSchema,KeyframeObservationSchema,LocalDigestSchema,LocalIdSchema,LocalPackageVersionSchema,LocalPlacementPolicySchema,LocalProjectScopeSchema,LocalRevisionSchema,LocalTimeSchema,LocalWhisperIdentitySchema,LocalWhisperToolSelectionSchema,LocalWorkScopeSchema,MAX_SHOT_REVIEW_REQUIREMENTS,MacSpeechIdentitySchema,MediaCategorySchema,MediaObjectTicketSchema,MediaObjectVersionSchema,NativeRuntimePublicKeySchema,ObservationSourceSchema,ProgrammaticVideoReviewTargetSchema,QwenSpeechEvidenceSchema,QwenSpeechRecipeSchema,ReadyArtifactRegistrationSchema,RegisterVisualSequenceSchema,ResolvedReferenceSchema,ReviewEvidenceMediaSchema,ReviewIntelligenceBasisSchema,ReviewIntelligenceContextResultSchema,RoughCutAdmissionSchema,RoughCutManifestReaderSchema,RoughCutRequirementSchema,RoughCutStartSchema,RoughCutTechnicalSchema,SourceInputMetadataSchema,SourceSyncAudioGetSchema,SourceSyncAudioReceiptSchema,SourceSyncAudioStartSchema,SourceSyncAudioVersionSchema,SpeechSynthesisEvidenceSchema,SpeechSynthesisRecipeSchema,TemporalEvidenceManifestSchema,TemporalSamplingPlanSchema,TenantProcessorKindSchema,TimelineScopeSchema,TranscriptSchema,ValidateReviewIntelligenceSchema,VideoObservationSchema,VideoReviewRecordSchema,VideoReviewRequirementSchema,VideoTechnicalMetadataSchema,VisualFrameSequenceSchema,VisualLayerCompositionSchema,VisualLayerPolicySchema,VisualRequirementSchema,VisualSequenceManifestSchema,processorFamilies}from"./chunk-OXFBQBNS.js";import{OperationIdSchema,TenantIdSchema}from"./chunk-VPYAXWXY.js";import{NativeStudioSdkError}from"./chunk-6NVIN2NI.js";import{z}from"zod";var LocalDevicePlatformSchema=z.strictObject({os:z.enum(["darwin","linux","win32"]),architecture:z.enum(["x64","arm64"])});var EnrollLocalDeviceSchema=z.strictObject({tenantId:LocalIdSchema,requestId:LocalIdSchema,label:z.string().trim().min(1).max(120),platform:LocalDevicePlatformSchema,runtimeVersion:LocalPackageVersionSchema,publicKey:NativeRuntimePublicKeySchema});var LocalDeviceViewSchema=EnrollLocalDeviceSchema.omit({requestId:true}).extend({deviceId:LocalIdSchema,revision:LocalRevisionSchema,enrolledByPrincipalId:LocalIdSchema,createdAt:LocalTimeSchema,verifiedAt:LocalTimeSchema.nullable(),revokedAt:LocalTimeSchema.nullable()}).refine(v=>[v.verifiedAt,v.revokedAt].every(time=>time===null||Date.parse(time)>=Date.parse(v.createdAt)));var LocalDeviceChallengeSchema=z.strictObject({tenantId:LocalIdSchema,deviceId:LocalIdSchema,deviceRevision:LocalRevisionSchema,challengeId:LocalIdSchema,audience:z.string().min(1).max(2048),issuedAt:LocalTimeSchema,expiresAt:LocalTimeSchema}).refine(v=>{const ttl=Date.parse(v.expiresAt)-Date.parse(v.issuedAt);return ttl>0&&ttl<=3e5});var LocalDeviceProofClaimsSchema=z.strictObject({protocol:z.literal("NVS_LOCAL_DEVICE_PROOF_V1"),tenantId:LocalIdSchema,deviceId:LocalIdSchema,deviceRevision:LocalRevisionSchema,challengeId:LocalIdSchema,audience:z.string().min(1).max(2048),jti:LocalIdSchema,iat:z.int().nonnegative(),exp:z.int().positive()}).refine(v=>v.exp>v.iat&&v.exp-v.iat<=60);var ProveLocalDeviceSchema=z.strictObject({tenantId:LocalIdSchema,deviceId:LocalIdSchema,deviceRevision:LocalRevisionSchema,challengeId:LocalIdSchema,assertion:z.string().max(4096).regex(/^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$/).meta({writeOnly:true})});var RevokeLocalDeviceSchema=z.strictObject({tenantId:LocalIdSchema,deviceId:LocalIdSchema,requestId:LocalIdSchema,expectedRevision:LocalRevisionSchema});import{z as z2}from"zod";var WorkspaceDeviceListInputSchema=z2.strictObject({tenantId:LocalIdSchema,deviceId:LocalIdSchema.optional(),after:LocalIdSchema.optional(),limit:z2.int().min(1).max(50).default(25)});var WorkspaceDeviceInventoryItemSchema=z2.strictObject({deviceId:LocalIdSchema,label:z2.string().trim().min(1).max(120),platform:LocalDevicePlatformSchema,runtimeVersion:LocalPackageVersionSchema.nullable(),runtimeVersionObservedAt:LocalTimeSchema.nullable(),revision:LocalRevisionSchema,createdAt:LocalTimeSchema,verifiedAt:LocalTimeSchema.nullable(),revokedAt:LocalTimeSchema.nullable(),lastSeenAt:LocalTimeSchema.nullable(),connection:z2.enum(["UNVERIFIED","REVOKED","OWNER_UNAVAILABLE","CONNECTED","DISCONNECTED"])}).refine(value=>value.runtimeVersion===null===(value.runtimeVersionObservedAt===null),{message:"Runtime version and observation time must be present together"});var WorkspaceDeviceListSchema=z2.strictObject({tenantId:LocalIdSchema,observedAt:LocalTimeSchema,items:z2.array(WorkspaceDeviceInventoryItemSchema).max(50),nextCursor:LocalIdSchema.nullable()});import{z as z3}from"zod";var LocalOfflineSnapshotSchema=z3.strictObject({projectId:z3.uuid(),title:z3.string().min(1).max(200),savedAt:LocalTimeSchema,expiresAt:LocalTimeSchema,productions:z3.array(z3.strictObject({id:z3.uuid(),title:z3.string().max(200)})).max(40),possiblyTruncated:z3.boolean()}).refine(v=>new TextEncoder().encode(JSON.stringify(v)).length<=8192);var text=z3.string().max(4e3).refine(v=>new TextEncoder().encode(JSON.stringify(v)).length<=8192);var LocalOfflineCallSchema=z3.discriminatedUnion("action",[z3.strictObject({action:z3.enum(["list","forget"]),key:LocalDigestSchema}),z3.strictObject({action:z3.literal("retain"),key:LocalDigestSchema,snapshot:LocalOfflineSnapshotSchema}),z3.strictObject({action:z3.literal("draft"),key:LocalDigestSchema,projectId:z3.uuid(),text,expectedRevision:z3.int().nonnegative()})]);var LocalOfflinePageSchema=z3.strictObject({historical:z3.literal(true),items:z3.array(z3.strictObject({snapshot:LocalOfflineSnapshotSchema,draft:z3.strictObject({text,revision:z3.int().nonnegative()})})).max(3)});import{z as z4}from"zod";var localLibraryProfile={protocol:"NVS_LOCAL_LIBRARY_V1",inspection:"LOCAL_FILE_DECODE_V1",publication:"COMMITTED_SOURCE_READBACK_V1"};var LocalLibraryContentTypeSchema=z4.enum(["video/mp4","image/png","image/jpeg","image/webp","audio/wav","text/plain","application/json","application/pdf","application/octet-stream"]);var LocalLibraryVersionSchema=z4.strictObject({fileId:LocalIdSchema,versionId:LocalIdSchema,checksumSha256:LocalDigestSchema,byteSize:z4.int().nonnegative().max(128*1024*1024),contentType:LocalLibraryContentTypeSchema});var LocalLibraryReferenceSchema=LocalProjectScopeSchema.extend({deviceId:LocalIdSchema,...LocalLibraryVersionSchema.shape});var LocalLibraryMetadataSchema=z4.strictObject({label:z4.string().trim().min(1).max(255)});var LocalLibraryAccessCommandSchema=z4.strictObject({reference:LocalLibraryReferenceSchema,requestId:LocalIdSchema,expectedRevision:z4.int().nonnegative(),metadata:LocalLibraryMetadataSchema.nullable(),allowInspect:z4.boolean(),allowPublish:z4.boolean(),expiresAt:LocalTimeSchema});var LocalLibraryAccessReceiptSchema=LocalLibraryAccessCommandSchema.extend({revision:z4.int().positive(),recordedAt:LocalTimeSchema});var LocalLibraryAccessQuerySchema=z4.strictObject({reference:LocalLibraryReferenceSchema,requestId:LocalIdSchema});var LocalLibraryAccessCurrentSchema=z4.strictObject({reference:LocalLibraryReferenceSchema});var LocalLibraryAccessStateSchema=z4.strictObject({state:z4.enum(["LOCAL_ONLY","PENDING","SYNCED","UNKNOWN","REJECTED"]),desired:LocalLibraryAccessCommandSchema.nullable(),confirmed:LocalLibraryAccessReceiptSchema.nullable()});var LocalLibraryItemSchema=z4.strictObject({reference:LocalLibraryReferenceSchema,ownerKey:LocalDigestSchema,title:z4.string().trim().min(1).max(255),createdAt:LocalTimeSchema,revision:z4.int().positive(),access:LocalLibraryAccessStateSchema});var pageFields={after:LocalDigestSchema.nullable().default(null),limit:z4.int().min(1).max(16).default(16)};var LocalLibraryQuerySchema=LocalProjectScopeSchema.extend({projectId:LocalIdSchema.optional(),deviceId:LocalIdSchema,ownerKey:LocalDigestSchema.optional(),search:z4.string().trim().min(1).max(200).optional(),mediaCategory:MediaCategorySchema.optional(),...pageFields});var LocalLibraryPageSchema=z4.strictObject({items:z4.array(LocalLibraryItemSchema).max(16),nextCursor:LocalDigestSchema.nullable()});var LocalLibraryProjectionSchema=z4.strictObject({reference:LocalLibraryReferenceSchema,metadata:LocalLibraryMetadataSchema.nullable(),accessRevision:z4.int().positive(),allowInspect:z4.boolean(),allowPublish:z4.boolean(),expiresAt:LocalTimeSchema});var LocalLibraryProjectionPageSchema=z4.strictObject({items:z4.array(LocalLibraryProjectionSchema).max(16),nextCursor:LocalDigestSchema.nullable()});var LocalLibraryProjectionQuerySchema=LocalLibraryQuerySchema.omit({ownerKey:true}).extend({projectId:LocalIdSchema});var LocalLibraryImportSchema=z4.strictObject({requestId:LocalIdSchema,reference:LocalLibraryReferenceSchema,ownerKey:LocalDigestSchema,title:z4.string().trim().min(1).max(255)});var LocalLibraryImportReceiptQuerySchema=LocalProjectScopeSchema.extend({deviceId:LocalIdSchema,requestId:LocalIdSchema,ownerKey:LocalDigestSchema.optional()});var LocalLibraryReadSchema=z4.strictObject({reference:LocalLibraryReferenceSchema,ownerKey:LocalDigestSchema.optional(),offset:z4.int().nonnegative(),length:z4.int().min(1).max(128*1024)});var LocalLibraryReadReplySchema=z4.strictObject({reference:LocalLibraryReferenceSchema,offset:z4.int().nonnegative(),contentBase64:z4.string().max(174764).regex(/^[A-Za-z0-9+/]*={0,2}$/),complete:z4.boolean()});var LocalLibraryGetSchema=z4.strictObject({reference:LocalLibraryReferenceSchema,ownerKey:LocalDigestSchema.optional()});var LocalLibraryAccessInputSchema=z4.strictObject({command:LocalLibraryAccessCommandSchema,expectedLocalRevision:z4.int().positive(),ownerKey:LocalDigestSchema.optional()});var LocalLibraryCallSchema=z4.discriminatedUnion("action",[LocalLibraryQuerySchema.extend({action:z4.literal("list")}),LocalLibraryGetSchema.extend({action:z4.literal("get")}),LocalLibraryProjectionQuerySchema.extend({action:z4.literal("scoped-list")}),z4.strictObject({action:z4.literal("scoped-get"),reference:LocalLibraryReferenceSchema}),z4.strictObject({action:z4.literal("usage"),ownerKey:LocalDigestSchema.optional()}),LocalLibraryReadSchema.extend({action:z4.literal("read")}),LocalLibraryAccessInputSchema.extend({action:z4.literal("access")}),LocalLibraryAccessQuerySchema.extend({action:z4.literal("sync"),ownerKey:LocalDigestSchema.optional()}),LocalLibraryAccessQuerySchema.extend({action:z4.literal("resume-access"),ownerKey:LocalDigestSchema.optional()}),LocalLibraryImportReceiptQuerySchema.extend({action:z4.literal("import-receipt")})]);var LocalLibraryCapabilitySchema=z4.strictObject({protocol:z4.literal("NVS_LOCAL_LIBRARY_V1"),available:z4.boolean(),profileDigest:LocalDigestSchema});var LocalLibraryUsageSchema=z4.strictObject({fileCount:z4.int().nonnegative(),totalBytes:z4.int().nonnegative(),quotaBytes:z4.int().positive(),availableDiskBytes:z4.int().nonnegative()});import{z as z5}from"zod";var QualifiedLocalAgentVersionSchema=z5.enum(["0.164.0","0.165.0"]);var LocalAgentGrantSchema=z5.strictObject({protocol:z5.literal("NVS_CODEX_REVIEW_GRANT_V1"),binary:z5.string().min(1).max(4096).refine(v=>/^(?:\/|[A-Za-z]:[\\/])/.test(v)),binaryDigest:z5.string().regex(/^[a-f0-9]{64}$/),version:QualifiedLocalAgentVersionSchema,model:z5.string().regex(/^[a-zA-Z0-9][a-zA-Z0-9._-]{0,99}$/),reasoningEffort:z5.enum(["low","medium","high","xhigh"]).optional(),reviewerLabel:z5.string().trim().min(1).max(100),inference:z5.literal("REMOTE_OPENAI"),remoteUseApproved:z5.literal(true),imageDisclosureApproved:z5.literal(true).optional(),mediaDisclosureApproved:z5.literal(true).optional(),projects:z5.array(LocalProjectScopeSchema).min(1).max(100),expiresAt:z5.iso.datetime({offset:true})});import{z as z6}from"zod";var LocalAgentMediaInputSchema=z6.strictObject({profile:z6.literal("NVS_AGENT_DERIVED_EVIDENCE_V1"),contentType:z6.enum(["image/png","image/jpeg","image/webp","video/mp4"]),byteSize:z6.int().positive().max(134217728),width:z6.int().positive().max(4096),height:z6.int().positive().max(4096),durationMs:z6.int().positive().max(6e4).optional(),frameRate:z6.union([z6.literal(24),z6.literal(30)]).optional(),hasAudio:z6.boolean().optional()}).refine(v=>v.contentType==="video/mp4"?!!v.durationMs&&!!v.frameRate:!v.durationMs&&!v.frameRate&&v.hasAudio===void 0);var sha=z6.string().regex(/^[a-f0-9]{64}$/);var LocalAgentEvidenceReceiptSchema=z6.strictObject({protocol:z6.literal("NVS_AGENT_DERIVED_EVIDENCE_V1"),draftId:z6.uuid(),media:ReviewEvidenceMediaSchema,ffmpegDigest:sha,ffprobeDigest:sha,attachment:z6.strictObject({checksumSha256:sha,byteSize:z6.int().positive().max(8388608),width:z6.int().positive().max(4096),height:z6.int().positive().max(4096)}),timestampsMs:z6.array(z6.number().nonnegative().max(6e4)).max(6),audio:z6.strictObject({sampleRateHz:z6.literal(48e3),channels:z6.literal(1),samples:z6.int().positive().max(2881024),peak:z6.number().min(0).max(1),rms:z6.number().min(0).max(1),clippedSamples:z6.int().nonnegative().max(2881024)}).nullable(),limitations:z6.tuple([z6.literal("SAMPLED_FRAMES_ARE_NOT_FULL_PLAYBACK"),z6.literal("AUDIO_STATISTICS_ARE_NOT_LISTENING_OR_TRANSCRIPTION")])});var LocalAgentDiscoverySchema=z6.strictObject({candidate:z6.strictObject({binary:z6.string().min(1).max(4096),binaryDigest:sha,version:z6.string().regex(/^\d+\.\d+\.\d+$/),qualified:z6.boolean()}).nullable(),configured:LocalAgentGrantSchema.nullable()});import{z as z7}from"zod";var executable=z7.strictObject({path:z7.string().min(1).max(4096),digest:LocalDigestSchema});var mediaTools={ffmpeg:executable,ffprobe:executable};var LocalCompositionBrowserSelectionSchema=executable.extend({digest:z7.literal(HYPERFRAME_CACHED_RENDER_PROFILE.browserSha256)});var LocalInstalledToolSelectionSchema=z7.strictObject({mode:z7.literal("INSTALLED"),...mediaTools,compositionBrowser:LocalCompositionBrowserSelectionSchema.optional(),whisper:LocalWhisperToolSelectionSchema.optional()});var LocalToolSelectionSchema=z7.discriminatedUnion("mode",[z7.strictObject({mode:z7.literal("MANAGED"),...mediaTools}),LocalInstalledToolSelectionSchema]);import{z as z8}from"zod";var LocalRuntimeDescriptorSchema=z8.strictObject({protocol:z8.literal("NVS_RUNTIME_DESCRIPTOR_V1"),version:LocalPackageVersionSchema,node:z8.strictObject({major:z8.literal(24),minMinor:z8.literal(12)}),platform:LocalDevicePlatformSchema,ipcProtocol:z8.literal("NVS_LOCAL_IPC_V1"),workProtocol:z8.enum(["NVS_LOCAL_WORK_V1","NVS_LOCAL_WORK_V2"]),journalSchema:z8.literal(1),rendererDigest:LocalDigestSchema,profileDigest:LocalDigestSchema,compatibleRenderers:z8.array(z8.strictObject({rendererDigest:LocalDigestSchema,profileDigest:LocalDigestSchema})).max(4).optional()});var LocalSessionConnectorSchema=z8.strictObject({protocol:z8.literal("NVS_LOCAL_CONNECTOR_V1"),stateDirectory:z8.string().min(1).max(4096),credential:z8.string().length(43).regex(/^[A-Za-z0-9_-]{43}$/),expiresAt:LocalTimeSchema,tenantId:z8.uuid(),deviceId:z8.uuid()});var LocalManagementInventorySchema=z8.strictObject({runtimeRevision:z8.int().positive(),descriptor:LocalRuntimeDescriptorSchema,activeProcesses:z8.int().nonnegative(),pendingExecutions:z8.int().nonnegative(),pendingRequests:z8.int().nonnegative(),pendingRenderers:z8.array(LocalDigestSchema).max(64)});var LocalReleaseAssetSchema=z8.strictObject({url:z8.string().url().max(2048),byteSize:z8.int().positive().max(256*1024*1024),sha512:z8.string().length(128).regex(/^[0-9a-f]{128}$/)});var LocalReleaseSchema=z8.strictObject({descriptor:LocalRuntimeDescriptorSchema,package:LocalReleaseAssetSchema,tools:z8.strictObject({ffmpeg:LocalReleaseAssetSchema.extend({sha256:LocalDigestSchema}),ffprobe:LocalReleaseAssetSchema.extend({sha256:LocalDigestSchema})}).nullable()});var LocalReleaseCatalogueSchema=z8.strictObject({protocol:z8.literal("NVS_LOCAL_RELEASE_CATALOGUE_V1"),issuedAt:LocalTimeSchema,expiresAt:LocalTimeSchema,releases:z8.array(LocalReleaseSchema).min(1).max(32)}).refine(v=>Date.parse(v.expiresAt)>Date.parse(v.issuedAt)&&Date.parse(v.expiresAt)-Date.parse(v.issuedAt)<=7*864e5&&new Set(v.releases.map(r=>[r.descriptor.version,r.descriptor.platform.os,r.descriptor.platform.architecture].join(":"))).size===v.releases.length);var LocalSignedCatalogueSchema=z8.strictObject({catalogue:LocalReleaseCatalogueSchema,signature:z8.string().length(86).regex(/^[A-Za-z0-9_-]{85}[AQgw]$/)});var LocalToolChoiceSchema=z8.discriminatedUnion("mode",[z8.strictObject({mode:z8.literal("MANAGED")}),LocalInstalledToolSelectionSchema]);var LocalUpdatePlanSchema=z8.strictObject({protocol:z8.literal("NVS_LOCAL_UPDATE_PLAN_V1"),planId:LocalIdSchema,installationRevision:z8.int().nonnegative(),runtimeRevision:z8.int().positive().nullable(),catalogueFingerprint:LocalDigestSchema,trustFingerprint:LocalDigestSchema.optional(),release:LocalReleaseSchema,toolSelection:LocalToolChoiceSchema.optional(),fingerprint:LocalDigestSchema,createdAt:LocalTimeSchema,expiresAt:LocalTimeSchema});var LocalClientNextActionSchema=z8.strictObject({surface:z8.enum(["CLI","LOCAL_IPC","REMOTE"]),operation:z8.enum(["runtime.status","local.configure","local.install","local.start","local.connect","local.grant","local.status","local.doctor","local.stop","local.update.check","local.update.prepare","local.update.apply","local.update.reconcile","execution.inspect","rough_cut_get","operation_get"]),availability:z8.enum(["AVAILABLE","BLOCKED"]),reason:z8.enum(["READY","INSTALL_REQUIRED","AUTHORIZATION_REQUIRED","VERSION_INCOMPATIBLE","UPDATE_AVAILABLE","RECOVERY_REQUIRED","USER_APPROVAL_REQUIRED","TRUST_REQUIRED","UNAVAILABLE"])});import{z as z9}from"zod";var LocalResourcePolicySchema=z9.strictObject({acceptNewWork:z9.boolean().default(true),mode:z9.enum(["CONTINUOUS","IDLE_ONLY"]).default("CONTINUOUS"),idleAfterSeconds:z9.int().min(30).max(3600).default(300),maxConcurrentJobs:z9.int().min(1).max(2).default(1),cpuCores:z9.union([z9.literal(1),z9.literal(2)]).default(2),memoryMiB:z9.int().min(512).max(4096).default(4096),cacheQuotaBytes:z9.int().min(512*1024*1024).max(32*1024*1024*1024).default(1024*1024*1024)});var LocalResourceSettingsSchema=z9.strictObject({revision:z9.int().nonnegative(),policy:LocalResourcePolicySchema});var LocalExecutionProgressSchema=z9.strictObject({stage:z9.enum(["WAITING","DOWNLOADING","EXECUTING","UPLOADING","AWAITING_ACCEPTANCE","COMPLETE","RECOVERY_REQUIRED","FENCED"]),downloadedBytes:z9.int().nonnegative(),sourceBytes:z9.int().nonnegative(),uploadedBytes:z9.int().nonnegative(),outputBytes:z9.int().nonnegative(),lastError:z9.strictObject({code:z9.string().regex(/^[A-Z][A-Z0-9_]{0,79}$/),observedAt:LocalTimeSchema}).nullable()});var LocalStorageInspectionSchema=z9.strictObject({cacheBytes:z9.int().nonnegative(),protectedBytes:z9.int().nonnegative(),reclaimableBytes:z9.int().nonnegative(),transferBytes:z9.int().nonnegative(),journalBytes:z9.int().nonnegative(),reviewBytes:z9.int().nonnegative().optional(),ownerStagingBytes:z9.int().nonnegative().optional(),availableDiskBytes:z9.int().nonnegative(),quotaBytes:z9.int().positive(),overQuota:z9.boolean()});var LocalWorkspaceInspectionSchema=z9.strictObject({settings:LocalResourceSettingsSchema,storage:LocalStorageInspectionSchema,scheduling:z9.strictObject({state:z9.enum(["READY","PAUSED","WAITING_FOR_IDLE","AT_CAPACITY","DRAINING"]),activeJobs:z9.int().nonnegative(),idleObservationCurrent:z9.boolean()})});var LocalDiagnosticsSchema=z9.strictObject({protocol:z9.literal("NVS_LOCAL_DIAGNOSTICS_V1"),createdAt:LocalTimeSchema,runtimeVersion:z9.string().min(1).max(80),runtimeRevision:LocalRevisionSchema,settings:LocalResourceSettingsSchema,storage:LocalStorageInspectionSchema,recordCounts:z9.record(z9.string().regex(/^[A-Z_]{1,40}$/),z9.int().nonnegative()),failures:z9.array(z9.strictObject({taskFingerprint:z9.string().regex(/^[a-f0-9]{64}$/),code:z9.string().regex(/^[A-Z][A-Z0-9_]{0,79}$/),observedAt:LocalTimeSchema})).max(32)});function canonicalLocalJson(value){if(value===null||typeof value==="string"||typeof value==="boolean")return JSON.stringify(value);if(typeof value==="number"&&Number.isFinite(value))return JSON.stringify(value);if(Array.isArray(value))return"["+value.map(canonicalLocalJson).join(",")+"]";if(typeof value==="object")return"{"+Object.entries(value).filter(([,v])=>v!==void 0).sort(([a],[b])=>a<b?-1:a>b?1:0).map(([k,v])=>JSON.stringify(k)+":"+canonicalLocalJson(v)).join(",")+"}";throw new Error("Fingerprint input must be finite JSON data")}import{z as z10}from"zod";var sha2=z10.string().regex(/^[a-f0-9]{64}$/);var qualifiedVersion=QualifiedLocalAgentVersionSchema;var LocalAgentSnapshotSchema=z10.strictObject({basis:ReviewIntelligenceBasisSchema,productionRevision:z10.int().positive(),reviewVersion:z10.int().nonnegative(),executionClass:z10.enum(["LIVE","TEST_ONLY"]),media:ReviewEvidenceMediaSchema,requirements:z10.array(z10.union([VisualRequirementSchema,VideoReviewRequirementSchema,RoughCutRequirementSchema])).min(1).max(64),evidence:LocalAgentMediaInputSchema.optional(),image:z10.strictObject({contentType:z10.literal("image/png"),byteSize:z10.int().positive().max(8388608),width:z10.int().positive().max(4096),height:z10.int().positive().max(4096)}).optional()}).refine(v=>!v.image||!v.evidence&&v.basis.target.kind==="IMAGE").refine(v=>v.basis.target.kind==="IMAGE"||!v.evidence||v.evidence.contentType==="video/mp4").refine(v=>new TextEncoder().encode(JSON.stringify(v)).length<=32768).refine(v=>new Set(v.requirements.map(r=>r.key)).size===v.requirements.length);var LocalAgentProbeSchema=z10.strictObject({configured:z10.boolean(),available:z10.boolean(),reason:z10.enum(["GRANT_REQUIRED","READY","RUNTIME_UNAVAILABLE","GRANT_EXPIRED"]),grantFingerprint:sha2.nullable(),inference:z10.literal("REMOTE_OPENAI")});var LocalAgentPlanSchema=z10.strictObject({protocol:z10.enum(["NVS_LOCAL_AGENT_REVIEW_V1","NVS_LOCAL_AGENT_REVIEW_V2"]),id:z10.uuid(),grantFingerprint:sha2,snapshot:LocalAgentSnapshotSchema,expiresAt:z10.iso.datetime({offset:true}),fingerprint:sha2});var LocalAgentMetadataAnswerSchema=z10.strictObject({summary:z10.string().trim().min(1).max(1500),observations:z10.array(z10.strictObject({key:z10.string().min(1).max(220),observed:z10.string().trim().min(1).max(1e3)})).min(1).max(64)});var LocalAgentPixelAnswerSchema=z10.strictObject({summary:z10.string().trim().min(1).max(1500),imageReadback:z10.string().trim().min(1).max(800),observations:z10.array(KeyframeObservationSchema.omit({region:true}).extend({key:z10.string().min(1).max(220)})).min(1).max(64)});var LocalAgentAnswerSchema=z10.union([LocalAgentMetadataAnswerSchema,LocalAgentPixelAnswerSchema]).refine(v=>new TextEncoder().encode(JSON.stringify(v)).length<=96*1024);var LocalAgentImageReceiptSchema=z10.strictObject({protocol:z10.literal("NVS_LOCAL_AGENT_IMAGE_V1"),draftId:z10.uuid(),media:ReviewEvidenceMediaSchema,byteSize:z10.int().positive().max(8388608),contentType:z10.literal("image/png"),width:z10.int().positive().max(4096),height:z10.int().positive().max(4096)});var LocalAgentReviewViewSchema=z10.strictObject({plan:LocalAgentPlanSchema,revision:z10.int().positive(),phase:z10.enum(["PREPARED","RUNNING","RESULT_PENDING","UNKNOWN"]),answer:LocalAgentAnswerSchema.nullable(),imageReceipt:LocalAgentImageReceiptSchema.optional(),evidenceReceipt:LocalAgentEvidenceReceiptSchema.optional(),provenance:z10.strictObject({adapter:z10.enum(["CODEX_METADATA_V1","CODEX_MEDIA_V2"]),binaryDigest:sha2,version:qualifiedVersion,model:z10.string().max(100),reasoningEffort:z10.enum(["low","medium","high","xhigh"]).optional(),reviewerLabel:z10.string().max(100),inference:z10.literal("REMOTE_OPENAI"),evidence:z10.enum(["METADATA_ONLY","IMAGE_PIXELS","VIDEO_FRAMES"])})}).refine(v=>{const image=v.plan.snapshot.image,receipt=v.imageReceipt;if(receipt&&(!image||receipt.draftId!==v.plan.id||canonicalLocalJson(receipt.media)!==canonicalLocalJson(v.plan.snapshot.media)||canonicalLocalJson({contentType:receipt.contentType,byteSize:receipt.byteSize,width:receipt.width,height:receipt.height})!==canonicalLocalJson(image)))return false;if(v.phase==="RESULT_PENDING"!==!!v.answer)return false;const derived=v.plan.snapshot.evidence,receipt2=v.evidenceReceipt;if(v.provenance.adapter!==(derived?"CODEX_MEDIA_V2":"CODEX_METADATA_V1"))return false;if(receipt2&&(!derived||receipt2.draftId!==v.plan.id||canonicalLocalJson(receipt2.media)!==canonicalLocalJson(v.plan.snapshot.media)))return false;if(v.answer&&!!(image||derived)!=="imageReadback"in v.answer)return false;const pixels=v.phase==="RESULT_PENDING"&&!!(image||derived);return v.provenance.evidence===(pixels?derived?.contentType==="video/mp4"?"VIDEO_FRAMES":"IMAGE_PIXELS":"METADATA_ONLY")&&(!pixels||(derived?!!receipt2:!!receipt))});function localAgentSnapshotFromContext(raw,includeImage=false){const c=ReviewIntelligenceContextResultSchema.parse(raw);if(c.reviewTarget.kind!=="IMAGE"||c.basis.target.kind!=="IMAGE"||c.ownerContext.semanticStatus!=="SUCCESS")throw Error("LOCAL_AGENT_CONTEXT_UNAVAILABLE");const t=c.reviewTarget.target,scope=c.basis.scope;if(!t.runtimeSucceeded||t.candidate.availability!=="AVAILABLE"||t.candidate.freshness!=="CURRENT_BASIS"||!t.productionRunnable||t.freshness!=="CURRENT_BASIS"||t.generationId!==c.basis.target.generationId||t.tenantId!==scope.tenantId||t.projectId!==scope.projectId||t.productionId!==scope.productionId||c.ownerContext.basis.tenantId!==scope.tenantId||c.ownerContext.basis.projectId!==scope.projectId||c.ownerContext.basis.productionId!==scope.productionId)throw Error("LOCAL_AGENT_CONTEXT_UNAVAILABLE");return LocalAgentSnapshotSchema.parse({basis:c.basis,productionRevision:c.ownerContext.basis.productionRevision,reviewVersion:t.reviewVersion,executionClass:t.executionClass,media:{artifactId:t.candidate.artifactId,representationId:t.candidate.representationId,checksumSha256:t.candidate.checksumSha256},requirements:t.requirements,...includeImage?{image:{contentType:t.candidate.contentType,byteSize:t.candidate.byteSize,width:t.candidate.width,height:t.candidate.height}}:{}})}function localAgentNativeProposal(raw){const v=LocalAgentReviewViewSchema.parse(raw);if(v.plan.snapshot.basis.target.kind!=="IMAGE"||v.plan.snapshot.evidence)throw Error("LOCAL_AGENT_MEDIA_PROPOSAL_REQUIRED");if(v.phase!=="RESULT_PENDING"||!v.answer)throw Error("LOCAL_AGENT_RESULT_UNAVAILABLE");const keys=new Set(v.answer.observations.map(o=>o.key));if(keys.size!==v.answer.observations.length||keys.size!==v.plan.snapshot.requirements.length||v.plan.snapshot.requirements.some(r=>!keys.has(r.key)))throw Error("LOCAL_AGENT_RESULT_UNAVAILABLE");const p=v.provenance;const pixels=p.evidence==="IMAGE_PIXELS";return ValidateReviewIntelligenceSchema.parse({basis:v.plan.snapshot.basis,proposal:{origin:{kind:"EXTERNAL_AGENT_HOST",label:p.reviewerLabel},summary:`${pixels?"IMAGE_PIXELS":"METADATA_ONLY; no visual inspection"}. Codex ${p.version}; model ${p.model}; effort ${p.reasoningEffort??"DEFAULT"}; binary ${p.binaryDigest}; draft ${v.plan.id}; plan ${v.plan.fingerprint}. ${v.answer.summary}`,evidence:pixels?[{id:"original_image",label:"Verified ORIGINAL PNG attachment",producer:"EXTERNAL_AGENT_HOST",kind:"IMAGE_PIXELS",media:v.plan.snapshot.media}]:[],review:{kind:"IMAGE",observations:v.answer.observations.map(o=>({...o,status:pixels&&"status"in o?o.status:"NOT_OBSERVABLE",confidence:pixels&&"confidence"in o?o.confidence:"UNCERTAIN",evidenceIds:pixels?["original_image"]:[]}))}}})}import{z as z14}from"zod";import{z as z13}from"zod";import{z as z11}from"zod";var pixel=z11.int().nonnegative().max(4096);var dimension=z11.int().positive().max(4096);var frame=z11.int().nonnegative().max(1800);var sample=z11.int().nonnegative().max(288e4);var rectangle=z11.strictObject({x:pixel,y:pixel,width:dimension,height:dimension});var window=z11.strictObject({start:sample,count:sample});var source=z11.strictObject({representationId:z11.uuid(),checksum:LocalDigestSchema,byteSize:z11.int().positive().max(134217728)});var LocalMediaRecipeSchema=z11.strictObject({protocol:z11.literal("NVS_RESOLVED_MEDIA_RECIPE_V2"),family:z11.enum(["ROUGH_CUT_RENDER","FINAL_RENDER"]),width:dimension,height:dimension,totalFrames:z11.int().min(900).max(1800),crf:z11.union([z11.literal(18),z11.literal(23)]),algorithm:z11.enum(["ORDERED_TRIM_CUT_V1","ORDERED_COMPOSE_V2"]),clips:z11.array(z11.strictObject({representationId:z11.uuid(),technical:VideoTechnicalMetadataSchema,sourceInMs:z11.int().nonnegative().max(6e4),sourceOutMs:z11.int().positive().max(6e4),startFrame:frame,frameCount:z11.int().positive().max(1800),overlapFrames:frame,crop:rectangle.nullable(),viewport:rectangle})).min(1).max(32),caption:z11.strictObject({style:CaptionRenderStyleSchema,references:z11.array(z11.strictObject({representationId:z11.uuid(),expectedUtf8:z11.string().max(65536)})).length(2),cues:z11.array(z11.strictObject({ordinal:z11.int().nonnegative().max(512),startFrame:frame,endFrame:frame,fontSize:z11.int().min(16).max(256),margin:pixel,text:z11.string().min(1).max(2e3)})).min(1).max(512)}).nullable(),audio:z11.strictObject({algorithm:z11.literal("PCM_WINDOW_MIX_AAC_V1"),tracks:z11.array(source.extend({channels:z11.union([z11.literal(1),z11.literal(2)]),sampleCount:z11.int().positive().max(288e4),sourceIn:sample,sourceOut:sample,start:sample,count:sample,gain:z11.int().nonnegative().max(1e3),duck:z11.int().nonnegative().max(1e3),duckWindows:z11.array(window).max(512)})).min(1).max(266)}).nullable(),graphics:z11.array(source.extend({contentType:z11.enum(["image/png","image/webp"]),sourceWidth:dimension,sourceHeight:dimension,width:dimension,height:dimension,x:pixel,y:pixel,startFrame:frame,endFrame:frame,opacity:z11.number().min(.1).max(1)})).max(8),visual:z11.strictObject({policy:VisualLayerPolicySchema.optional(),composition:VisualLayerCompositionSchema,plans:z11.array(z11.strictObject({id:z11.uuid(),startFrame:frame,endFrame:frame,width:dimension,height:dimension,x:pixel,y:pixel,opacityPermille:z11.int().min(0).max(1e3)})).max(8)}).nullable()}).superRefine((r,ctx)=>{if(r.width%2||r.height%2||r.clips.some(c=>c.viewport.x+c.viewport.width>r.width||c.viewport.y+c.viewport.height>r.height||c.sourceOutMs<=c.sourceInMs)||r.audio?.tracks.some(t=>t.sourceIn>=t.sourceOut||t.sourceOut>t.sampleCount||t.start+t.count>r.totalFrames*1600))ctx.addIssue({code:"custom",message:"Invalid bounded execution geometry or sample window"})});import{z as z12}from"zod";var identity={deviceId:LocalIdSchema,deviceRevision:LocalRevisionSchema};var WorkspaceDeviceAuthoritySchema=z12.strictObject({...identity,authority:z12.literal("WORKSPACE_DEVICE_V1")});var LocalDeviceExecutionTargetSchema=z12.discriminatedUnion("kind",[WorkspaceDeviceAuthoritySchema.extend({kind:z12.literal("DEVICE")}),z12.strictObject({kind:z12.literal("SERVER")})]);var TenantDeviceTargetSchema=WorkspaceDeviceAuthoritySchema.extend({keyFingerprint:LocalDigestSchema});function sameDeviceAuthority(a,b){return a.deviceId===b.deviceId&&a.deviceRevision===b.deviceRevision&&a.authority===b.authority}var previewProfile=z13.strictObject({kind:z13.literal("ROUGH_CUT_PREVIEW_V1"),profileId:z13.literal("PREVIEW_H264_480P_V1"),contractDigest:LocalDigestSchema});var studioProfile=z13.strictObject({kind:z13.literal("STUDIO_MEDIA_V2"),profileId:z13.literal("STUDIO_MEDIA_V2"),contractDigest:LocalDigestSchema});var LocalExecutionProfileSchema=z13.discriminatedUnion("kind",[previewProfile,studioProfile]);var LocalToolchainSchema=z13.strictObject({platform:LocalDevicePlatformSchema,rendererVersion:LocalPackageVersionSchema,rendererDigest:LocalDigestSchema,ffmpeg:z13.strictObject({version:z13.string().min(1).max(160),binaryDigest:LocalDigestSchema}),ffprobe:z13.strictObject({version:z13.string().min(1).max(160),binaryDigest:LocalDigestSchema}),profile:LocalExecutionProfileSchema,supported:z13.array(z13.strictObject({profile:LocalExecutionProfileSchema,rendererVersion:LocalPackageVersionSchema,rendererDigest:LocalDigestSchema})).max(4).optional()});var frozen=LocalWorkScopeSchema.extend({protocol:z13.literal("NVS_LOCAL_WORK_V1"),operationId:OperationIdSchema,renderId:LocalIdSchema,productionRevision:LocalRevisionSchema,executionClass:z13.enum(["LIVE","TEST_ONLY"]),policy:LocalPlacementPolicySchema,profile:previewProfile,manifest:RoughCutManifestReaderSchema,manifestFingerprint:LocalDigestSchema,sources:z13.array(z13.strictObject({artifactId:LocalIdSchema,representationId:LocalIdSchema,checksumSha256:LocalDigestSchema,byteSize:z13.int().positive(),contentType:z13.string().min(1).max(100)})).min(1).max(512)});var studio=frozen.extend({protocol:z13.literal("NVS_LOCAL_WORK_V2"),profile:studioProfile,manifest:z13.union([RoughCutManifestReaderSchema,FinalRenderManifestReaderSchema]),recipe:LocalMediaRecipeSchema,recipeFingerprint:LocalDigestSchema});var LocalFrozenWorkSchema=z13.discriminatedUnion("protocol",[frozen,studio]).superRefine((v,ctx)=>{const t=v.manifest.timeline;if(t.tenantId!==v.tenantId||t.projectId!==v.projectId||t.productionId!==v.productionId||t.executionClass!==v.executionClass)ctx.addIssue({code:"custom",message:"Frozen manifest scope/class mismatch"});if(v.protocol==="NVS_LOCAL_WORK_V2"&&(v.manifest.schemaVersion===3!==!!v.recipe.visual||v.manifest.schemaVersion===3&&v.manifest.profile.visualLayerPolicy!==(v.recipe.visual?.policy??"STRAIGHT_ALPHA_FRAME_OVERLAY_30_V1")))ctx.addIssue({code:"custom",message:"Recipe must preserve the frozen visual policy"});if(new Set(v.sources.map(s=>s.representationId)).size!==v.sources.length)ctx.addIssue({code:"custom",message:"Duplicate source representation"});if(v.protocol==="NVS_LOCAL_WORK_V2"&&(v.recipe.width!==v.manifest.profile.width||v.recipe.height!==v.manifest.profile.height||v.recipe.totalFrames!==v.manifest.totalFrames||v.recipe.family==="FINAL_RENDER"!=="selection"in v.manifest))ctx.addIssue({code:"custom",message:"Recipe must match its native render family and geometry"})});var LocalLeaseBindingSchema=LocalWorkScopeSchema.extend({attemptId:LocalIdSchema,assignmentRevision:LocalRevisionSchema,workerId:z13.string().min(1).max(200),workFingerprint:LocalDigestSchema,toolchainFingerprint:LocalDigestSchema});var target=LocalDeviceExecutionTargetSchema;var LocalExecutionLeaseSchema=LocalLeaseBindingSchema.extend({target,issuedAt:LocalTimeSchema,expiresAt:LocalTimeSchema}).refine(v=>Date.parse(v.expiresAt)>Date.parse(v.issuedAt));var LocalWorkAssignmentSchema=z13.strictObject({work:LocalFrozenWorkSchema,lease:LocalExecutionLeaseSchema,toolchain:LocalToolchainSchema,tenantMediaValidation:z13.literal(true).optional()}).superRefine(({work,lease,toolchain,tenantMediaValidation},ctx)=>{if(["tenantId","projectId","productionId","runtimeJobId"].some(k=>work[k]!==lease[k]))ctx.addIssue({code:"custom",message:"Assignment work scope mismatch"});if(tenantMediaValidation&&(work.protocol!=="NVS_LOCAL_WORK_V2"||work.policy.mode!=="local-only"))ctx.addIssue({code:"custom",message:"Invalid tenant validation assignment"});const p=work.policy,t=lease.target;if(p.mode==="cloud-only"&&t.kind!=="SERVER"||p.mode==="local-only"&&t.kind!=="DEVICE"||t.kind==="DEVICE"&&(p.mode==="cloud-only"||p.deviceId!==t.deviceId))ctx.addIssue({code:"custom",message:"Assignment contradicts placement policy"});if(work.profile.contractDigest!==toolchain.profile.contractDigest)ctx.addIssue({code:"custom",message:"Unqualified execution profile"})});var LocalExecutionListInputSchema=LocalProjectScopeSchema.extend({after:z14.string().length(64).regex(/^[0-9a-f]{64}$/).nullable().default(null),limit:z14.int().min(1).max(16).default(8),includeCompleted:z14.boolean().optional(),includeProgress:z14.boolean().optional()});var LocalExecutionInspectInputSchema=LocalWorkScopeSchema.extend({includeProgress:z14.boolean().optional()});var LocalIpcCallSchema=z14.discriminatedUnion("operation",[z14.strictObject({operation:z14.literal("library.capability")}),z14.strictObject({operation:z14.literal("library.call"),input:LocalLibraryCallSchema}),z14.strictObject({operation:z14.literal("agent.discover"),binary:z14.string().min(1).max(4096).optional()}),z14.strictObject({operation:z14.literal("offline.workspace"),input:LocalOfflineCallSchema}),z14.strictObject({operation:z14.literal("workspace.inspect")}),z14.strictObject({operation:z14.literal("workspace.configure"),policy:LocalResourcePolicySchema,expectedRevision:z14.int().nonnegative()}),z14.strictObject({operation:z14.literal("workspace.activity"),idleSeconds:z14.int().min(0).max(86400),observedAt:z14.iso.datetime()}),z14.strictObject({operation:z14.literal("storage.clean")}),z14.strictObject({operation:z14.literal("diagnostics.read")}),z14.strictObject({operation:z14.literal("agent.grant"),grant:LocalAgentGrantSchema,approval:z14.string().regex(/^[a-f0-9]{64}$/)}),z14.strictObject({operation:z14.literal("agent.probe")}),z14.strictObject({operation:z14.literal("agent.revoke"),approval:z14.string().regex(/^[a-f0-9]{64}$/)}),z14.strictObject({operation:z14.literal("agent.prepare"),snapshot:LocalAgentSnapshotSchema}),z14.strictObject({operation:z14.literal("agent.start"),id:z14.uuid(),expectedRevision:LocalRevisionSchema,approval:z14.string().regex(/^[a-f0-9]{64}$/)}),z14.strictObject({operation:z14.literal("agent.inspect"),id:z14.uuid()}),z14.strictObject({operation:z14.literal("runtime.status"),includeDevice:z14.literal(true).optional()}),z14.strictObject({operation:z14.literal("runtime.doctor")}),z14.strictObject({operation:z14.literal("runtime.inventory")}),z14.strictObject({operation:z14.literal("session.issue"),tenantId:z14.uuid(),deviceId:z14.uuid(),expiresAt:z14.iso.datetime({offset:true})}),z14.strictObject({operation:z14.literal("runtime.stop"),expectedRuntimeRevision:LocalRevisionSchema}),z14.strictObject({operation:z14.literal("execution.inspect"),input:LocalExecutionInspectInputSchema}),z14.strictObject({operation:z14.literal("execution.list"),input:LocalExecutionListInputSchema}),z14.strictObject({operation:z14.literal("update.check")}),z14.strictObject({operation:z14.literal("update.prepare"),targetVersion:LocalPackageVersionSchema,expectedRuntimeRevision:LocalRevisionSchema}),z14.strictObject({operation:z14.literal("update.apply"),planId:LocalIdSchema,targetVersion:LocalPackageVersionSchema,expectedRuntimeRevision:LocalRevisionSchema})]);var LocalNextActionSchema=z14.strictObject({call:LocalIpcCallSchema,availability:z14.enum(["AVAILABLE","BLOCKED"]),reason:z14.enum(["READY","INSTALL_REQUIRED","AUTHORIZATION_REQUIRED","VERSION_INCOMPATIBLE","UPDATE_AVAILABLE","RECOVERY_REQUIRED"])});var LocalIpcRequestSchema=z14.strictObject({protocol:z14.literal("NVS_LOCAL_IPC_V1"),requestId:LocalIdSchema,call:LocalIpcCallSchema});var LocalVersionReportSchema=z14.strictObject({component:z14.enum(["CLI","SDK","MCP","RUNTIME","MEDIA_TOOLS"]),installedVersion:LocalPackageVersionSchema.nullable(),runningVersion:LocalPackageVersionSchema.nullable(),availableVersion:LocalPackageVersionSchema.nullable(),executablePath:z14.string().min(1).max(4096).nullable(),installOwner:z14.enum(["NPM_GLOBAL","PROJECT","NPX","MANAGED","TARBALL","UNKNOWN"])});var LocalRuntimeStatusSchema=z14.strictObject({protocol:z14.literal("NVS_LOCAL_IPC_V1"),runtimeRevision:LocalRevisionSchema,state:z14.enum(["IDLE","EXECUTING","DRAINING","RECOVERY_REQUIRED"]),journalSchemaVersion:z14.literal(1),workProtocols:z14.array(z14.enum(["NVS_LOCAL_WORK_V1","NVS_LOCAL_WORK_V2"])).min(1).max(2),versions:z14.array(LocalVersionReportSchema).max(8),deviceAuthority:z14.strictObject({tenantId:z14.uuid(),deviceId:z14.uuid(),origin:z14.url()}).optional(),deviceCapabilities:z14.strictObject({deviceRevision:LocalRevisionSchema,tenantMediaValidation:z14.boolean(),tenantMediaProcessing:z14.boolean(),processorCapabilities:z14.array(TenantProcessorKindSchema).max(TenantProcessorKindSchema.options.length)}).optional(),nextActions:z14.array(LocalNextActionSchema).max(8)});var LocalDoctorReportSchema=z14.strictObject({mode:z14.enum(["MANAGED","INSTALLED"]),availability:z14.enum(["AVAILABLE","UNAVAILABLE"]),reason:z14.enum(["QUALIFIED_PROCESS_TOOLS","MANAGED_TOOLS_MISSING","TOOL_QUALIFICATION_FAILED"]),nativeExecutionReady:z14.boolean(),executionProfiles:z14.array(z14.enum(["ROUGH_CUT_PREVIEW_V1","STUDIO_MEDIA_V2"])).max(2).optional(),tools:z14.array(z14.strictObject({name:z14.enum(["FFMPEG","FFPROBE"]),path:z14.string().min(1).max(4096),version:z14.string().min(1).max(200),digest:z14.string().regex(/^[0-9a-f]{64}$/)})).max(2)});var LocalExecutionInspectionSchema=z14.strictObject({binding:LocalLeaseBindingSchema,revision:LocalRevisionSchema,phase:z14.enum(["STAGED","RUNNING","RECOVERY_REQUIRED","OUTPUT_PENDING","RECEIPT_RECORDED","FENCED"]),checkpoint:z14.enum(["ADOPTED","SOURCES_READY","PROCESS_STARTED","OUTPUT_STAGED"]),progress:LocalExecutionProgressSchema.optional()});var LocalExecutionPageSchema=z14.strictObject({items:z14.array(LocalExecutionInspectionSchema).max(16),nextCursor:z14.string().length(64).regex(/^[0-9a-f]{64}$/).nullable()});var LocalIpcErrorCodeSchema=z14.enum(["FORBIDDEN","INVALID_INPUT","FRAME_LIMIT","BUSY","AUTHORIZATION_REQUIRED","REVISION_CONFLICT","CAPABILITY_UNAVAILABLE","INTERNAL_OPERATIONAL_FAILURE","AGENT_APPROVAL_REQUIRED","AGENT_RUNTIME_UNAVAILABLE","AGENT_LOGIN_REQUIRED","AGENT_VERSION_UNQUALIFIED","AGENT_GRANT_REQUIRED","AGENT_OUTCOME_UNKNOWN","AGENT_IMAGE_REQUIRED","AGENT_IMAGE_INVALID","AGENT_IMAGE_BUDGET_EXCEEDED","AGENT_IMAGE_AUTHORIZATION_REQUIRED","CACHE_QUOTA_EXCEEDED","LIBRARY_NOT_FOUND","LIBRARY_CONFLICT","LIBRARY_BYTES_INVALID","LIBRARY_ACCESS_DENIED","LIBRARY_SYNC_REQUIRED","LIBRARY_SYNC_UNAVAILABLE","LIBRARY_QUOTA_EXCEEDED"]);var LocalIpcResponseSchema=z14.discriminatedUnion("semanticStatus",[z14.strictObject({protocol:z14.literal("NVS_LOCAL_IPC_V1"),requestId:LocalIdSchema,semanticStatus:z14.literal("SUCCESS"),data:z14.union([LocalLibraryCapabilitySchema,LocalLibraryUsageSchema,LocalLibraryItemSchema,LocalLibraryPageSchema,LocalLibraryProjectionSchema,LocalLibraryProjectionPageSchema,LocalLibraryReadReplySchema,LocalWorkspaceInspectionSchema,LocalDiagnosticsSchema,LocalOfflinePageSchema,LocalRuntimeStatusSchema,LocalDoctorReportSchema,LocalExecutionInspectionSchema.nullable(),z14.strictObject({state:z14.literal("DRAINING"),inventory:LocalManagementInventorySchema.optional(),backupPath:z14.string().min(1).max(4096).optional()}),LocalSessionConnectorSchema,LocalManagementInventorySchema,LocalExecutionPageSchema,LocalAgentProbeSchema,LocalAgentDiscoverySchema,LocalAgentReviewViewSchema])}),z14.strictObject({protocol:z14.literal("NVS_LOCAL_IPC_V1"),requestId:LocalIdSchema.nullable(),semanticStatus:z14.enum(["BLOCKED","INVALID_INPUT"]),error:z14.strictObject({code:LocalIpcErrorCodeSchema})})]);import{z as z16}from"zod";import{z as z15}from"zod";var QwenDeviceCredentialScopeSchema=z15.strictObject({tenantId:LocalIdSchema,connectionId:LocalIdSchema,connectionVersion:z15.int().positive(),workspace:z15.string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/)});var QwenDeviceCredentialIdentitySchema=QwenDeviceCredentialScopeSchema.extend({proofSha256:LocalDigestSchema});var QwenDeviceCredentialSelectionSchema=QwenDeviceCredentialScopeSchema.extend({privateKeyFile:z15.string().min(1).max(4096)});var qwenSource=ResolvedReferenceSchema.pick({artifactId:true,representationId:true,checksumSha256:true,contentType:true,role:true}).extend({byteSize:MediaObjectVersionSchema.shape.byteSize.max(8*1024*1024)});var keyframeBytes=z15.strictObject({checksumSha256:LocalDigestSchema,byteSize:MediaObjectVersionSchema.shape.byteSize.max(8*1024*1024),width:z15.int().positive().max(4096),height:z15.int().positive().max(4096)});var externalKeyframe=z15.literal("KEYFRAME_GENERATE");var QwenKeyframeRecipeSchema=z15.strictObject({processor:externalKeyframe,generationId:LocalIdSchema,credential:QwenDeviceCredentialIdentitySchema,quoteFingerprint:LocalDigestSchema,prompt:z15.string().trim().min(1).refine(value=>new TextEncoder().encode(value).length<=1300),aspectRatio:z15.enum(["16:9","9:16"]),sources:z15.array(qwenSource).min(1).max(3)});var QwenKeyframeEvidenceSchema=z15.strictObject({processor:externalKeyframe,providerExecutionId:z15.string().regex(/^[A-Za-z0-9_.:-]{1,500}$/),providerResultId:LocalDigestSchema,image:keyframeBytes});var QwenVideoRecipeSchema=QwenKeyframeRecipeSchema.extend({processor:z15.literal("VIDEO_GENERATE"),prompt:z15.string().trim().min(1).max(2e4),mode:z15.enum(["REFERENCE_TO_VIDEO","FIRST_FRAME_TO_VIDEO","FIRST_LAST_FRAME_TO_VIDEO"]),durationSeconds:z15.int().min(2).max(30),sources:z15.array(qwenSource).min(1).max(10)});var QwenVideoTaskIdSchema=z15.string().regex(/^[A-Za-z0-9_-]{1,160}$/);var QwenVideoEvidenceSchema=z15.strictObject({processor:z15.literal("VIDEO_GENERATE"),providerExecutionId:QwenVideoTaskIdSchema,providerResultId:QwenVideoTaskIdSchema,video:VideoTechnicalMetadataSchema.extend({videoCodec:z15.literal("h264"),frameRate:z15.literal(30),hasAudio:z15.literal(false),frameCount:z15.int().positive().max(902)}),poster:keyframeBytes});var ExternalGenerationReservationMarkerSchema=z15.strictObject({protocol:z15.literal("NVS_TENANT_EXTERNAL_GENERATION_V1"),tenantId:LocalIdSchema,projectId:LocalIdSchema,productionId:LocalIdSchema,runtimeJobId:LocalIdSchema,shotId:LocalIdSchema,preparationId:LocalIdSchema,contractId:LocalIdSchema,workload:z15.enum(["KEYFRAME_GENERATE","VIDEO_GENERATE"]),policyRevision:z15.int().positive(),contractFingerprint:LocalDigestSchema,originRequestFingerprint:LocalDigestSchema,bindingFingerprint:LocalDigestSchema,inputsFingerprint:LocalDigestSchema,quoteFingerprint:LocalDigestSchema});function checkProcessorDeclaration(enabled,kinds,context){if(enabled!==!!kinds?.length||kinds&&new Set(kinds).size!==kinds.length)context.addIssue({code:"custom",path:["processorCapabilities"],message:"Explicit unique processor capabilities must match processing enablement"})}var StartLocalPreviewSchema=RoughCutStartSchema.omit({deviceExecution:true}).extend({placement:LocalPlacementPolicySchema,localProfile:z16.literal("STUDIO_MEDIA_V2").optional()});var LocalDeviceScopeSchema=z16.strictObject({tenantId:LocalIdSchema,deviceId:LocalIdSchema});var LocalDeviceSessionSchema=z16.strictObject({...LocalDeviceScopeSchema.shape,expiresAt:LocalTimeSchema,credential:z16.string().length(43).regex(/^[A-Za-z0-9_-]+$/).meta({writeOnly:true})});var LocalDeviceHeartbeatSchema=LocalDeviceScopeSchema.extend({runtimeVersion:LocalPackageVersionSchema,toolchain:LocalToolchainSchema,available:z16.boolean(),maxConcurrentJobs:z16.int().min(1).max(2).optional(),validationProfileDigest:LocalDigestSchema.optional(),processorProfileDigest:LocalDigestSchema.optional(),localLibraryProfileDigest:LocalDigestSchema.optional(),macSpeechIdentity:MacSpeechIdentitySchema.optional(),whisperIdentity:LocalWhisperIdentitySchema.optional(),qwenIdentities:z16.array(QwenDeviceCredentialIdentitySchema).min(1).max(16).optional(),processorCapabilities:z16.array(TenantProcessorKindSchema).min(1).max(TenantProcessorKindSchema.options.length).optional()}).superRefine((value,context)=>checkProcessorDeclaration(!!value.processorProfileDigest,value.processorCapabilities,context));var ClaimLocalPreviewSchema=LocalProjectScopeSchema.extend({requestId:LocalIdSchema,deviceId:LocalIdSchema,tenantMediaValidation:z16.literal(true).optional()});var LocalOutputStageSchema=LocalLeaseBindingSchema.extend({uploadRequestId:LocalIdSchema,role:z16.enum(["VIDEO","POSTER"]),checksumSha256:LocalDigestSchema,byteSize:z16.int().positive().max(128*1024*1024)});var LocalOutputTicketSchema=z16.strictObject({receiptId:LocalIdSchema,role:z16.enum(["VIDEO","POSTER"]),checksumSha256:LocalDigestSchema,byteSize:z16.int().positive(),uploaded:z16.boolean()});var LocalSourceRequestSchema=LocalLeaseBindingSchema.extend({representationId:LocalIdSchema});var LocalProofChallengeRequestSchema=LocalDeviceScopeSchema.extend({deviceRevision:z16.int().positive()});var LocalPreviewPlacementViewSchema=z16.strictObject({target:z16.enum(["DEVICE","SERVER"]),reason:z16.enum(["LOCAL_AVAILABLE","CLOUD_ONLY","OFFLINE","UNQUALIFIED","BUSY","LEASE_RECOVERY"]),policy:LocalPlacementPolicySchema});var LocalDeviceTransportConfigurationSchema=z16.strictObject({endpoint:z16.string().url().max(2048),tenantId:LocalIdSchema,deviceId:LocalIdSchema,deviceRevision:z16.int().positive(),privateKeyFile:z16.string().min(1).max(4096),platform:LocalDevicePlatformSchema,tenantMediaValidation:z16.literal(true).optional(),tenantMediaProcessing:z16.literal(true).optional(),processorCapabilities:z16.array(TenantProcessorKindSchema).min(1).max(TenantProcessorKindSchema.options.length).optional(),compositionBrowser:z16.string().min(1).max(4096).optional(),macSpeechIdentity:MacSpeechIdentitySchema.optional(),whisperIdentity:LocalWhisperIdentitySchema.optional(),whisperTools:LocalWhisperToolSelectionSchema.optional(),qwenDeviceCredentials:z16.array(QwenDeviceCredentialSelectionSchema).max(16).optional(),qwenIdentities:LocalDeviceHeartbeatSchema.shape.qwenIdentities}).superRefine((value,context)=>checkProcessorDeclaration(value.tenantMediaProcessing===true,value.processorCapabilities,context));var LocalPreviewAdmissionSchema=RoughCutAdmissionSchema.extend({placement:LocalPreviewPlacementViewSchema});var StartLocalFinalRenderSchema=FinalRenderStartSchema.omit({deviceExecution:true}).extend({placement:LocalPlacementPolicySchema});var LocalFinalRenderAdmissionSchema=FinalRenderAdmissionSchema.extend({placement:LocalPreviewPlacementViewSchema});var LocalClaimReceiptSchema=z16.strictObject({found:z16.boolean(),assignment:LocalWorkAssignmentSchema.nullable()});var LocalWorkStateSchema=z16.strictObject({binding:LocalLeaseBindingSchema,status:z16.enum(["ACTIVE","FENCED","OUTCOME_UNKNOWN"]),assignment:LocalWorkAssignmentSchema.nullable()});import{z as z17}from"zod";var LocalMcpToolNameSchema=z17.enum(["local_navigate","local_capability_describe","local_runtime_status","local_execution_list","local_execution_inspect","local_update_check","local_library_list","local_library_get"]);var LocalMcpActionSchema=z17.strictObject({tool:LocalMcpToolNameSchema,arguments:z17.record(z17.string(),z17.unknown()),availability:z17.enum(["AVAILABLE","BLOCKED"]).optional(),reason:z17.string().max(100).optional()});var LocalMcpNavigationSchema=z17.strictObject({location:z17.literal("LOCAL"),state:z17.enum(["UNAVAILABLE","IDLE","EXECUTING","DRAINING","RECOVERY_REQUIRED"]),deviceAuthority:LocalRuntimeStatusSchema.shape.deviceAuthority,groups:z17.array(z17.strictObject({id:z17.string().max(40),label:z17.string().max(100),tools:z17.array(LocalMcpToolNameSchema).max(6)})).max(4),nextActions:z17.array(z17.union([LocalMcpActionSchema,LocalClientNextActionSchema])).max(16)});var LocalMcpExecutionPageSchema=LocalExecutionPageSchema.extend({nextActions:z17.array(LocalMcpActionSchema).max(16)});var LocalMcpInspectionSchema=z17.strictObject({location:z17.literal("LOCAL"),execution:LocalExecutionInspectionSchema.nullable(),nextActions:z17.array(LocalMcpActionSchema).max(4)});var LocalMcpUpdateSchema=z17.strictObject({location:z17.literal("LOCAL"),running:z17.array(LocalVersionReportSchema).max(8),available:z17.array(LocalRuntimeDescriptorSchema).max(32),nextActions:z17.array(LocalClientNextActionSchema).max(4)});var LocalMcpDescriptionSchema=z17.strictObject({location:z17.literal("LOCAL"),tool:LocalMcpToolNameSchema,schema:z17.object({name:LocalMcpToolNameSchema,description:z17.string(),inputSchema:z17.record(z17.string(),z17.unknown())}).passthrough()});var LocalMcpFailureSchema=z17.strictObject({semanticStatus:z17.enum(["BLOCKED","INVALID_INPUT"]),error:z17.strictObject({code:z17.enum(["AUTHORIZATION_REQUIRED","FORBIDDEN","LOCAL_RUNTIME_UNAVAILABLE","RELEASE_UNAVAILABLE","VERSION_INCOMPATIBLE","INVALID_INPUT","LOCAL_CAPABILITY_UNAVAILABLE"]),outcome:z17.literal("NO_WRITE")}),nextActions:z17.array(LocalClientNextActionSchema).max(4)});var LocalMcpOutputSchemas={local_library_list:LocalLibraryProjectionPageSchema.extend({location:z17.literal("LOCAL")}),local_library_get:z17.strictObject({location:z17.literal("LOCAL"),item:LocalLibraryProjectionSchema.nullable()}),local_navigate:LocalMcpNavigationSchema,local_capability_describe:LocalMcpDescriptionSchema,local_runtime_status:LocalRuntimeStatusSchema.omit({nextActions:true}).extend({nextActions:z17.array(LocalMcpActionSchema).max(8)}),local_execution_list:LocalMcpExecutionPageSchema,local_execution_inspect:LocalMcpInspectionSchema,local_update_check:LocalMcpUpdateSchema};function localAgentMediaSnapshot(raw){const c=ReviewIntelligenceContextResultSchema.parse(raw),r=c.reviewTarget,t=r.target,scope=c.basis.scope;if(c.ownerContext.semanticStatus!=="SUCCESS"||!t.productionRunnable||t.freshness!=="CURRENT_BASIS"||t.tenantId!==scope.tenantId||t.projectId!==scope.projectId||t.productionId!==scope.productionId||c.ownerContext.basis.tenantId!==scope.tenantId||c.ownerContext.basis.projectId!==scope.projectId||c.ownerContext.basis.productionId!==scope.productionId||r.kind!==c.basis.target.kind)throw Error("LOCAL_AGENT_CONTEXT_UNAVAILABLE");let media,descriptor;if(r.kind==="ROUGH_CUT"){if(!r.target.inspectable||c.basis.target.kind!=="ROUGH_CUT"||r.target.renderId!==c.basis.target.renderId)throw Error("LOCAL_AGENT_CONTEXT_UNAVAILABLE");media=r.target.basis;descriptor={...r.target.technical,contentType:"video/mp4"}}else if(r.kind==="PROGRAMMATIC"){if(!r.target.runtimeSucceeded||r.target.media.availability!=="AVAILABLE"||c.basis.target.kind!=="PROGRAMMATIC"||r.target.renderId!==c.basis.target.renderId)throw Error("LOCAL_AGENT_CONTEXT_UNAVAILABLE");media=r.target.media;descriptor=r.target.media}else{if(!r.target.runtimeSucceeded||r.target.candidate.availability!=="AVAILABLE"||r.target.candidate.freshness!=="CURRENT_BASIS"||!("generationId"in c.basis.target)||r.target.generationId!==c.basis.target.generationId)throw Error("LOCAL_AGENT_CONTEXT_UNAVAILABLE");media=r.target.candidate;descriptor=r.target.candidate}const video=descriptor.contentType==="video/mp4";return LocalAgentSnapshotSchema.parse({basis:c.basis,productionRevision:c.ownerContext.basis.productionRevision,reviewVersion:t.reviewVersion,executionClass:t.executionClass,media:{artifactId:media.artifactId,representationId:media.representationId,checksumSha256:media.checksumSha256},requirements:t.requirements,evidence:{profile:"NVS_AGENT_DERIVED_EVIDENCE_V1",contentType:descriptor.contentType,byteSize:descriptor.byteSize,width:descriptor.width,height:descriptor.height,...video&&"durationMs"in descriptor?{durationMs:descriptor.durationMs,frameRate:descriptor.frameRate,hasAudio:descriptor.hasAudio}:{}}})}function localAgentMediaProposal(raw){const v=LocalAgentReviewViewSchema.parse(raw),s=v.plan.snapshot;if(!s.evidence)return localAgentNativeProposal(v);if(v.phase!=="RESULT_PENDING"||!v.answer||!v.evidenceReceipt||s.basis.target.kind==="ROUGH_CUT")throw Error("LOCAL_AGENT_FULL_TEMPORAL_INSPECTION_REQUIRED");const video=s.evidence.contentType==="video/mp4",p=v.provenance,id3=video?"sampled_frames":"normalized_image";const observations=v.answer.observations.map(o=>{const requirement=s.requirements.find(r=>r.key===o.key);if(!requirement)throw Error("LOCAL_AGENT_RESULT_UNAVAILABLE");const sound="family"in requirement&&requirement.family==="SOUND"||/^(audio|sound):/.test(requirement.key);return{...o,status:video||!("status"in o)?"NOT_OBSERVABLE":o.status,confidence:video||!("confidence"in o)?"UNCERTAIN":o.confidence,observed:video?sound?"This draft has no listening evidence.":"Sampled frames are advisory. This draft has no playback coverage.":o.observed,evidenceIds:video&&sound?[]:[id3],..."interval"in requirement&&requirement.interval?{interval:requirement.interval}:{}}});return ValidateReviewIntelligenceSchema.parse({basis:s.basis,proposal:{origin:{kind:"EXTERNAL_AGENT_HOST",label:p.reviewerLabel},summary:`Advisory ${video?"sampled frame observations. Full playback, listening and transcription are unavailable":"normalized original image"}. ${p.inference} via ${p.adapter} using Codex ${p.version}, model ${p.model}, effort ${p.reasoningEffort??"DEFAULT"}, binary ${p.binaryDigest}. Source ${s.media.checksumSha256}, attachment ${v.evidenceReceipt.attachment.checksumSha256}, draft ${v.plan.id}, plan ${v.plan.fingerprint}. ${v.answer.summary}`,evidence:observations.some(o=>o.evidenceIds.length)?[{id:id3,label:video?"Ordered verified source frame samples":"Verified normalized source image",producer:"EXTERNAL_AGENT_HOST",media:s.media,...video?{kind:"VIDEO_FRAMES",timestampsMs:v.evidenceReceipt.timestampsMs}:{kind:"IMAGE_PIXELS"}}]:[],review:{kind:s.basis.target.kind,observations}}})}import{z as z18}from"zod";var LocalManagementCommandSchema=z18.discriminatedUnion("kind",[z18.strictObject({kind:z18.literal("ENROLL"),input:EnrollLocalDeviceSchema}),z18.strictObject({kind:z18.literal("REVOKE_DEVICE"),input:RevokeLocalDeviceSchema}),z18.strictObject({kind:z18.literal("PREVIEW"),input:StartLocalPreviewSchema}),z18.strictObject({kind:z18.literal("FINAL_RENDER"),input:StartLocalFinalRenderSchema})]);var LocalManagementResultSchema=z18.union([LocalDeviceViewSchema,LocalPreviewAdmissionSchema,LocalFinalRenderAdmissionSchema,z18.strictObject({semanticStatus:z18.literal("SUCCESS")})]);var LocalManagementReceiptSchema=z18.strictObject({fingerprint:z18.string().regex(/^[a-f0-9]{64}$/),result:LocalManagementResultSchema.nullable()});var localManagementRoutes={ENROLL:"devices/enroll",REVOKE_DEVICE:"devices/revoke",PREVIEW:"previews",FINAL_RENDER:"final-renders"};var LocalDeviceManagementCommandSchema=LocalManagementCommandSchema;var ScopedLocalManagementReceiptSchema=z18.strictObject({tenantId:LocalIdSchema,command:LocalDeviceManagementCommandSchema}).refine(value=>value.tenantId.toLowerCase()===value.command.input.tenantId.toLowerCase(),{message:"Management receipt must use the authorized tenant"});import{z as z19}from"zod";var TenantMediaComputeModeSchema=z19.enum(["STAGE_ONE","TENANT_TRUSTED_VALIDATOR"]);var tenantRenderValidationProfile={protocol:"NVS_TENANT_MEDIA_REPORT_V1",inspection:"STUDIO_DECODE_READBACK_V1"};var TenantMediaWorkSchema=LocalWorkScopeSchema.extend({protocol:z19.literal("NVS_TENANT_MEDIA_WORK_V1"),family:z19.enum(["ROUGH_CUT_RENDER","FINAL_RENDER"]),validationMode:z19.literal("TENANT_TRUSTED_VALIDATOR"),operationId:OperationIdSchema,originRequestFingerprint:LocalDigestSchema,basisFingerprint:LocalDigestSchema,policyRevision:LocalRevisionSchema,target:TenantDeviceTargetSchema,renderProfileDigest:LocalDigestSchema,validationProfileDigest:LocalDigestSchema,audioRequired:z19.boolean()});var renderChecks=["CONTAINER_PROFILE","DURATION","VIDEO_DECODE","AUDIO_DECODE","POSTER_DECODE"];var renderCheck=z19.strictObject({key:z19.enum(renderChecks),result:z19.enum(["PASS","FAIL","UNVERIFIED","NOT_APPLICABLE"])});var TenantMediaValidationBodySchema=LocalLeaseBindingSchema.extend({schemaVersion:z19.literal(1),work:TenantMediaWorkSchema,originRequestFingerprint:LocalDigestSchema,requestId:LocalIdSchema,validationRequestId:LocalIdSchema,outputs:z19.array(MediaObjectVersionSchema).length(2),checks:z19.array(renderCheck).length(renderChecks.length),technical:RoughCutTechnicalSchema.nullable()}).superRefine((report,ctx)=>{const{work,outputs,checks}=report;if(work.tenantId!==report.tenantId||work.projectId!==report.projectId||work.productionId!==report.productionId||work.runtimeJobId!==report.runtimeJobId||work.originRequestFingerprint!==report.originRequestFingerprint)ctx.addIssue({code:"custom",path:["work"],message:"Work scope mismatch"});if(!outputs.some(output2=>output2.role==="VIDEO")||!outputs.some(output2=>output2.role==="POSTER")||new Set(outputs.map(output2=>output2.versionId)).size!==2||outputs.some(output2=>output2.tenantId!==report.tenantId||output2.projectId!==report.projectId))ctx.addIssue({code:"custom",path:["outputs"],message:"Exact video and poster versions required"});if(new Set(checks.map(check=>check.key)).size!==renderChecks.length||checks.some(check=>check.result==="NOT_APPLICABLE"!==(check.key==="AUDIO_DECODE"&&!work.audioRequired)))ctx.addIssue({code:"custom",path:["checks"],message:"Exact applicable checks required"});const video=outputs.find(output2=>output2.role==="VIDEO");if(checks.every(check=>check.result==="PASS"||check.result==="NOT_APPLICABLE")&&!report.technical||report.technical&&(report.technical.checksumSha256!==video?.checksumSha256||report.technical.byteSize!==video?.byteSize||report.technical.hasAudio!==work.audioRequired))ctx.addIssue({code:"custom",path:["technical"],message:"Exact inspected video required"})});var TenantMediaValidationReportSchema=TenantMediaValidationBodySchema.safeExtend({reportFingerprint:LocalDigestSchema,signature:z19.string().regex(/^[A-Za-z0-9_-]{86}$/)});import{z as z30}from"zod";import{z as z20}from"zod";var IMPORTED_VISUAL_PROFILE_ID="IMPORTED_H264_SDR_CFR30_VISUAL_V1";var IMPORTED_VISUAL_MAX_BYTES=128*1024*1024;var Hash=z20.string().regex(/^[0-9a-f]{64}$/);var PositiveInteger=z20.int().positive().max(1e9);var ImportedVisualRationalSchema=z20.strictObject({numerator:PositiveInteger,denominator:PositiveInteger});var geometry=limit=>z20.strictObject({width:z20.int().min(2).max(limit).multipleOf(2),height:z20.int().min(2).max(limit).multipleOf(2)}).refine(({width,height})=>width*9===height*16||width*16===height*9,"Only exact 16:9 or 9:16 geometry is supported");var ImportedVisualToolchainSchema=z20.strictObject({ffmpegVersion:z20.string().startsWith("ffmpeg version ").max(512),ffprobeVersion:z20.string().startsWith("ffprobe version ").max(512)});var ImportedVisualSourceInputSchema=z20.strictObject({contentType:z20.literal("video/mp4"),checksumSha256:Hash,byteSize:z20.int().min(32).max(IMPORTED_VISUAL_MAX_BYTES),executionClass:z20.enum(["LIVE","TEST_ONLY"])});var ImportedVisualSourceRangeSchema=z20.strictObject({clock:z20.literal("SOURCE_ZERO_BASED_CFR30"),startFrame:z20.int().min(0).max(1799),endFrame:z20.int().min(1).max(1800)}).refine(v=>v.endFrame>v.startFrame&&v.endFrame-v.startFrame<=360,"The half-open interval must contain 1 to 360 frames");var ImportedVisualNormalizationRequestSchema=z20.strictObject({schemaVersion:z20.literal(1),profileId:z20.literal(IMPORTED_VISUAL_PROFILE_ID),source:ImportedVisualSourceInputSchema,sourceRange:ImportedVisualSourceRangeSchema,output:geometry(1920),audioPolicy:z20.enum(["REQUIRE_NO_AUDIO","SILENT_DERIVATIVE"]),expectedToolchain:ImportedVisualToolchainSchema});var ImportedVisualSourceMetadataSchema=z20.strictObject({...ImportedVisualSourceInputSchema.shape,geometry:geometry(3840),videoCodec:z20.literal("h264"),pixelFormat:z20.literal("yuv420p"),sampleAspectRatio:z20.literal("1:1"),rotationDegrees:z20.literal(0),startPts:z20.literal(0),timeBase:ImportedVisualRationalSchema,frameRate:ImportedVisualRationalSchema,frameCount:z20.int().min(1).max(3600),durationTicks:z20.int().positive().max(6e10),availableCfr30Frames:z20.int().min(0).max(1800),color:z20.strictObject({range:z20.enum(["tv","unknown"]),space:z20.enum(["bt709","unknown"]),transfer:z20.enum(["bt709","unknown"]),primaries:z20.enum(["bt709","unknown"])}),audio:z20.strictObject({codec:z20.literal("aac"),sampleRateHz:z20.union([z20.literal(44100),z20.literal(48e3)]),channels:z20.union([z20.literal(1),z20.literal(2)]),startPts:z20.int(),timeBase:ImportedVisualRationalSchema,durationTicks:z20.int().positive().max(6e10)}).nullable(),fullDecode:z20.literal(true),cfrTimestampsVerified:z20.literal(true)}).superRefine((v,ctx)=>{if(![v.durationTicks,v.timeBase.numerator,v.timeBase.denominator,v.frameRate.numerator,v.frameRate.denominator,v.frameCount,v.availableCfr30Frames].every(Number.isSafeInteger)||v.timeBase.denominator<=0||v.frameRate.numerator<=0||v.frameRate.denominator<=0)return;const ticks=BigInt(v.durationTicks)*BigInt(v.timeBase.numerator);const base2=BigInt(v.timeBase.denominator);const declaredFrames=ticks*BigInt(v.frameRate.numerator);const expectedFrames=BigInt(v.frameCount)*base2*BigInt(v.frameRate.denominator);if(ticks>60n*base2||declaredFrames!==expectedFrames||BigInt(v.availableCfr30Frames)!==ticks*30n/base2||v.audio&&BigInt(v.audio.durationTicks)*BigInt(v.audio.timeBase.numerator)>60n*BigInt(v.audio.timeBase.denominator))ctx.addIssue({code:"custom",message:"Media clock/count/duration metadata is inconsistent"})});var ImportedVisualInspectionSchema=z20.strictObject({profileId:z20.literal(IMPORTED_VISUAL_PROFILE_ID),source:ImportedVisualSourceMetadataSchema,toolchain:ImportedVisualToolchainSchema,evidenceScope:z20.literal("TECHNICAL_MEDIA_ONLY")});var ImportedVisualNormalizationReceiptSchema=z20.strictObject({schemaVersion:z20.literal(1),request:ImportedVisualNormalizationRequestSchema,original:ImportedVisualSourceMetadataSchema,output:ImportedVisualSourceMetadataSchema,toolchain:ImportedVisualToolchainSchema,frameMap:z20.array(z20.strictObject({outputFrame:z20.int().min(0).max(359),sourceFrame:z20.int().min(0).max(3599),sourcePts:z20.int().min(0).max(6e10)})).min(1).max(360),audioDisposition:z20.enum(["NO_AUDIO_PRESENT","REMOVED_FROM_DERIVATIVE_ONLY"]),evidenceScope:z20.literal("TECHNICAL_MEDIA_ONLY")}).superRefine((v,ctx)=>{const count=v.request.sourceRange.endFrame-v.request.sourceRange.startFrame;const source3=v.original;if(![source3.frameRate.numerator,source3.frameRate.denominator,source3.timeBase.numerator,source3.timeBase.denominator,v.request.sourceRange.startFrame].every(Number.isSafeInteger)||source3.frameRate.numerator<=0||source3.frameRate.denominator<=0)return;const rounded=i=>(2n*BigInt(i)*30n*BigInt(source3.frameRate.denominator)+BigInt(source3.frameRate.numerator))/(2n*BigInt(source3.frameRate.numerator));const exactFrameMap=v.frameMap.every((m,i)=>{if(!Number.isSafeInteger(m.sourcePts)||!Number.isSafeInteger(m.sourceFrame))return false;const absoluteFrame=BigInt(v.request.sourceRange.startFrame+i);return BigInt(m.sourcePts)*BigInt(source3.timeBase.numerator)*BigInt(source3.frameRate.numerator)===BigInt(m.sourceFrame)*BigInt(source3.timeBase.denominator)*BigInt(source3.frameRate.denominator)&&rounded(m.sourceFrame)<=absoluteFrame&&(m.sourceFrame+1===source3.frameCount||rounded(m.sourceFrame+1)>absoluteFrame)});if(!exactFrameMap||v.request.sourceRange.endFrame>source3.availableCfr30Frames||v.output.geometry.width>source3.geometry.width||v.output.geometry.height>source3.geometry.height||v.output.geometry.width*source3.geometry.height!==v.output.geometry.height*source3.geometry.width)ctx.addIssue({code:"custom",message:"Receipt frame mapping or geometry violates the pinned profile"});if(v.output.frameCount!==count||v.frameMap.length!==count||v.frameMap.some((m,i)=>m.outputFrame!==i||m.sourceFrame>=v.original.frameCount)||v.output.frameRate.numerator!==30||v.output.frameRate.denominator!==1||v.output.audio||v.original.checksumSha256!==v.request.source.checksumSha256||v.original.byteSize!==v.request.source.byteSize||v.original.executionClass!==v.request.source.executionClass||v.output.executionClass!==v.original.executionClass||v.output.geometry.width!==v.request.output.width||v.output.geometry.height!==v.request.output.height||v.toolchain.ffmpegVersion!==v.request.expectedToolchain.ffmpegVersion||v.toolchain.ffprobeVersion!==v.request.expectedToolchain.ffprobeVersion||v.audioDisposition!==(v.original.audio?"REMOVED_FROM_DERIVATIVE_ONLY":"NO_AUDIO_PRESENT")||v.original.audio&&v.request.audioPolicy!=="SILENT_DERIVATIVE"){ctx.addIssue({code:"custom",message:"Normalization receipt does not match its exact request/source/output"})}});import{z as z21}from"zod";var Uuid=z21.uuid();var Hash2=z21.string().regex(/^[0-9a-f]{64}$/);var ImportedVisualOriginalRegisterSchema=z21.strictObject({deviceId:z21.uuid().toLowerCase().optional(),projectSourceArtifactId:z21.uuid().optional(),tenantId:Uuid,projectId:Uuid,productionId:Uuid,shotId:Uuid,expectedProductionRevision:z21.int().nonnegative(),source:z21.strictObject({contentType:z21.literal("video/mp4"),checksumSha256:Hash2,byteSize:z21.int().min(32).max(128*1024*1024),executionClass:z21.enum(["LIVE","TEST_ONLY"])}),declaredProvenance:z21.strictObject({originalName:z21.string().trim().min(1).max(255).optional(),authorship:z21.string().trim().min(1).max(500).optional(),license:z21.string().trim().min(1).max(500).optional()}),idempotencyKey:z21.string().trim().min(1).max(200)});var ImportedVisualFromProjectSourceSchema=ImportedVisualOriginalRegisterSchema.omit({source:true,projectSourceArtifactId:true}).extend({projectSourceArtifactId:Uuid});var ImportedVisualOriginalReviseSchema=ImportedVisualOriginalRegisterSchema.extend({sourceId:Uuid,expectedVersion:z21.int().positive()});var ImportedVisualNormalizeStartSchema=z21.strictObject({deviceExecution:DeviceRenderTargetSchema.optional(),tenantId:Uuid,projectId:Uuid,productionId:Uuid,shotId:Uuid,sourceId:Uuid,sourceVersionId:Uuid,expectedProductionRevision:z21.int().nonnegative(),request:ImportedVisualNormalizationRequestSchema,idempotencyKey:z21.string().trim().min(1).max(200)});var ImportedVisualGetSchema=z21.strictObject({tenantId:Uuid,productionId:Uuid,normalizationId:Uuid});var ImportedVisualReviewSchema=z21.strictObject({tenantId:Uuid,productionId:Uuid,normalizationId:Uuid,representationId:Uuid,checksumSha256:Hash2,expectedReviewVersion:z21.int().nonnegative(),observations:z21.array(VideoObservationSchema).min(1).max(MAX_SHOT_REVIEW_REQUIREMENTS),summary:z21.string().trim().min(1).max(2500),idempotencyKey:z21.string().trim().min(1).max(200)});var ImportedVisualDecisionSchema=z21.strictObject({tenantId:Uuid,productionId:Uuid,normalizationId:Uuid,reviewId:Uuid,expectedAcceptanceVersion:z21.int().nonnegative(),action:z21.enum(["ACCEPT","REJECT"]),acknowledgeWarnings:z21.boolean().default(false),reason:z21.string().trim().min(1).max(2500),idempotencyKey:z21.string().trim().min(1).max(200)});var ImportedVisualOriginalViewSchema=z21.strictObject({sourceId:Uuid,versionId:Uuid,version:z21.int().positive(),tenantId:Uuid,projectId:Uuid,productionId:Uuid,shotId:Uuid,artifactId:Uuid,representationId:Uuid,metadata:ImportedVisualSourceMetadataSchema,declaredProvenance:ImportedVisualOriginalRegisterSchema.shape.declaredProvenance.optional(),executionClass:z21.enum(["LIVE","TEST_ONLY"]),current:z21.boolean(),createdAt:z21.iso.datetime({offset:true})});var ImportedVisualNormalizationViewSchema=z21.strictObject({normalizationId:Uuid,runtimeJobId:Uuid,sourceId:Uuid,sourceVersionId:Uuid,lifecycle:z21.string(),cancellationRequested:z21.boolean(),receipt:ImportedVisualNormalizationReceiptSchema.nullable(),output:z21.strictObject({artifactId:Uuid,representationId:Uuid,posterArtifactId:Uuid,posterRepresentationId:Uuid}).nullable()});import{z as z22}from"zod";var id=z22.uuid().toLowerCase();var SourceSyncRuntimeStartSchema=SourceSyncAudioStartSchema.extend({deviceId:id.optional()});var SourceSyncRuntimePublicationSchema=SourceSyncRuntimeStartSchema.transform(({deviceId,...publication})=>{void deviceId;return publication});var SourceSyncRuntimeScopeSchema=z22.strictObject({tenantId:id,productionId:id,requestId:id});var SourceSyncRuntimeAdmissionSchema=z22.strictObject({requestId:id,runtimeJobId:id,productionRevision:z22.int().positive()});var SourceSyncRuntimeViewSchema=SourceSyncRuntimeAdmissionSchema.extend({normalizationId:id,lifecycle:z22.enum(["PENDING","READY","RUNNING","WAITING","SUCCEEDED","FAILED","CANCELLED","SUPERSEDED"]),cancellationRequested:z22.boolean(),output:SourceSyncAudioReceiptSchema.nullable()});import{z as z23}from"zod";var id2=z23.uuid().toLowerCase();var hash=z23.string().regex(/^[0-9a-f]{64}$/);var SourceSyncMediaIdentitySchema=z23.strictObject({artifactId:id2,representationId:id2,checksumSha256:hash});var sampleRange=z23.strictObject({startSample:z23.int().nonnegative(),endSample:z23.int().positive()}).refine(v=>v.endSample>v.startSample);var frameRange=z23.strictObject({startFrame:z23.int().nonnegative(),endFrame:z23.int().positive()}).refine(v=>v.endFrame>v.startFrame);var SourceSyncListeningEvidenceSchema=z23.discriminatedUnion("kind",[z23.strictObject({id:z23.string().trim().min(1).max(100),kind:z23.literal("AUDIO_LISTENING"),media:SourceSyncMediaIdentitySchema,coverage:z23.array(sampleRange).min(1).max(64),producer:z23.string().trim().min(1).max(200)}),z23.strictObject({id:z23.string().trim().min(1).max(100),kind:z23.literal("VIDEO_PLAYBACK"),media:SourceSyncMediaIdentitySchema,coverage:z23.array(frameRange).min(1).max(64),producer:z23.string().trim().min(1).max(200)})]);var SourceSyncObservationSchema=z23.strictObject({key:z23.enum(["AUDIBILITY","AUDIO_VISUAL_ALIGNMENT"]),status:z23.enum(["SATISFIED","VIOLATED","NOT_OBSERVABLE"]),confidence:z23.enum(["CLEAR","UNCERTAIN"]),observed:z23.string().trim().min(1).max(2e3),evidenceIds:z23.array(z23.string().trim().min(1).max(100)).max(64)});var SourceSyncReviewTargetSchema=z23.strictObject({version:SourceSyncAudioVersionSchema,audio:SourceSyncMediaIdentitySchema,visual:SourceSyncMediaIdentitySchema,sampleCount:z23.int().positive(),frameCount:z23.int().positive().max(360),currentReviewVersion:z23.int().nonnegative(),declarationScope:z23.literal("ATTRIBUTED_OBSERVATIONS_NOT_LISTENING_ATTESTATION")});var SourceSyncReviewInputSchema=SourceSyncAudioGetSchema.extend({tenantId:id2,productionId:id2,shotId:id2,versionId:id2,expectedReviewVersion:z23.int().nonnegative(),audio:SourceSyncMediaIdentitySchema,visual:SourceSyncMediaIdentitySchema,evidence:z23.array(SourceSyncListeningEvidenceSchema).max(64),observations:z23.array(SourceSyncObservationSchema).length(2),summary:z23.string().trim().min(1).max(4e3),idempotencyKey:z23.string().trim().min(1).max(200)});var SourceSyncReviewRecordSchema=z23.strictObject({id:id2,versionId:id2,reviewVersion:z23.int().positive(),tenantId:id2,productionId:id2,shotId:id2,audio:SourceSyncMediaIdentitySchema,visual:SourceSyncMediaIdentitySchema,evidence:z23.array(SourceSyncListeningEvidenceSchema).max(64),observations:z23.array(SourceSyncObservationSchema).length(2),outcome:z23.enum(["PASS","FAIL","NEEDS_REVIEW"]),summary:z23.string(),createdByPrincipalId:id2,executionClass:z23.enum(["LIVE","TEST_ONLY"]),createdAt:z23.iso.datetime({offset:true})});var SourceSyncReviewGetSchema=SourceSyncAudioGetSchema.extend({tenantId:id2,productionId:id2,shotId:id2,versionId:id2,reviewId:id2});import{z as z24}from"zod";var ImportedVideoReviewRecordSchema=VideoReviewRecordSchema.omit({generationId:true,candidateId:true,preparationId:true,contractId:true,contractFingerprint:true}).extend({sourceKind:z24.literal("IMPORTED"),normalizationId:z24.uuid(),sourceId:z24.uuid(),sourceVersionId:z24.uuid(),planVersionId:z24.uuid(),shotPlanningRevision:z24.int().positive()});var ImportedVideoReviewReceiptSchema=z24.strictObject({semanticStatus:z24.literal("SUCCESS"),review:ImportedVideoReviewRecordSchema,productionRevision:z24.int().positive()});import{z as z25}from"zod";var ImportedVisualCancellationSchema=z25.strictObject({cancellationRequested:z25.boolean()});var ImportedVisualAdmissionSchema=z25.strictObject({semanticStatus:z25.literal("ACCEPTED"),normalizationId:z25.uuid(),runtimeJobId:z25.uuid(),sourceId:z25.uuid(),sourceVersionId:z25.uuid(),productionRevision:z25.int().positive(),deviceExecution:DeviceRenderReceiptSchema.optional()});var ImportedVisualReviewTargetSchema=ProgrammaticVideoReviewTargetSchema.omit({renderId:true,compositionId:true,compositionVersionId:true,compositionVersion:true,compositionFingerprint:true,renderManifestFingerprint:true}).extend({sourceKind:z25.literal("IMPORTED"),normalizationId:z25.uuid(),sourceId:z25.uuid(),sourceVersionId:z25.uuid(),latestReview:ImportedVideoReviewRecordSchema.nullable()});import{z as z26}from"zod";var ImportedVisualOriginalGetSchema=z26.strictObject({tenantId:z26.uuid(),productionId:z26.uuid(),sourceId:z26.uuid(),version:z26.int().positive().optional()});var ImportedVisualOriginalHistoryQuerySchema=z26.strictObject({tenantId:z26.uuid(),productionId:z26.uuid(),sourceId:z26.uuid(),beforeVersion:z26.int().positive().optional(),limit:z26.int().min(1).max(50).default(20)});var ImportedVisualOriginalHistorySchema=z26.strictObject({sourceId:z26.uuid(),items:z26.array(ImportedVisualOriginalViewSchema).max(50),nextBeforeVersion:z26.int().positive().nullable()});var ImportedVisualOriginalQuerySchema=z26.strictObject({tenantId:z26.uuid().toLowerCase(),productionId:z26.uuid().toLowerCase(),shotId:z26.uuid().toLowerCase().optional(),afterSourceId:z26.uuid().toLowerCase().optional(),limit:z26.int().min(1).max(50).default(20)});var ImportedVisualOriginalPageSchema=z26.strictObject({tenantId:z26.uuid(),productionId:z26.uuid(),items:z26.array(ImportedVisualOriginalViewSchema).max(50),nextAfterSourceId:z26.uuid().nullable()}).refine(p=>p.nextAfterSourceId===null||p.items.at(-1)?.sourceId===p.nextAfterSourceId);import{z as z27}from"zod";var Content=z27.string().min(44).max(178956972).refine(value=>{if(value.length%4||/[^A-Za-z0-9+/=]/.test(value))return false;const padding=value.endsWith("==")?2:value.endsWith("=")?1:0;return value.indexOf("=")===(padding?value.length-padding:-1)},"Invalid base64").refine(value=>{const alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";return value.endsWith("==")?alphabet.indexOf(value.at(-3))%16===0:value.endsWith("=")?alphabet.indexOf(value.at(-2))%4===0:true},"Noncanonical base64");var ImportedVisualOriginalUploadSchema=ImportedVisualOriginalRegisterSchema.extend({contentBase64:Content});var ImportedVisualOriginalRevisionUploadSchema=ImportedVisualOriginalReviseSchema.extend({contentBase64:Content});var LegacyImportedVisualUploadSchema=ImportedVisualOriginalUploadSchema.omit({deviceId:true});var LegacyImportedVisualRevisionSchema=ImportedVisualOriginalRevisionUploadSchema.omit({deviceId:true});var LegacyImportedVisualProjectSourceSchema=ImportedVisualFromProjectSourceSchema.omit({deviceId:true});import{z as z28}from"zod";var DirectOriginalCommandSchema=z28.discriminatedUnion("operation",[z28.strictObject({operation:z28.literal("REGISTER"),input:ImportedVisualOriginalRegisterSchema}),z28.strictObject({operation:z28.literal("REVISE"),input:ImportedVisualOriginalReviseSchema})]);var DirectOriginalKeySchema=LocalWorkScopeSchema.omit({runtimeJobId:true}).extend({intakeId:LocalIdSchema});var DirectOriginalAdmissionSchema=z28.strictObject({state:z28.literal("SUBMITTED"),tenantId:z28.uuid(),projectId:z28.uuid(),productionId:z28.uuid(),intakeId:z28.uuid(),runtimeJobId:z28.uuid(),operationId:OperationIdSchema});var accepted=z28.strictObject({state:z28.literal("ACCEPTED"),original:ImportedVisualOriginalViewSchema});var DirectOriginalStageSchema=z28.discriminatedUnion("state",[accepted,DirectOriginalAdmissionSchema,DirectOriginalKeySchema.extend({state:z28.literal("UPLOAD"),ticket:MediaObjectTicketSchema,uploaded:z28.boolean()})]);var DirectOriginalSubmitSchema=z28.discriminatedUnion("state",[accepted,DirectOriginalAdmissionSchema]);import{z as z29}from"zod";var DirectProjectSourceCommandSchema=z29.strictObject({projectId:LocalIdSchema,metadata:SourceInputMetadataSchema.extend({tenantId:LocalIdSchema.pipe(TenantIdSchema),idempotencyKey:z29.string().trim().min(1).max(200)}),checksumSha256:LocalDigestSchema,byteSize:z29.int().positive().max(8*1024*1024),requestedDeviceId:LocalIdSchema.optional()}).refine(({metadata})=>metadata.kind==="REFERENCE_VIDEO"?metadata.contentType==="video/mp4":metadata.kind==="REFERENCE_IMAGE"&&["image/png","image/jpeg","image/webp"].includes(metadata.contentType));var DirectProjectSourceKeySchema=LocalProjectScopeSchema.extend({intakeId:LocalIdSchema});var DirectProjectSourceAdmissionSchema=DirectProjectSourceKeySchema.extend({state:z29.literal("SUBMITTED"),productionId:LocalIdSchema,runtimeJobId:LocalIdSchema,operationId:OperationIdSchema});var accepted2=z29.strictObject({state:z29.literal("ACCEPTED"),registration:ReadyArtifactRegistrationSchema});var DirectProjectSourceStageSchema=z29.discriminatedUnion("state",[accepted2,DirectProjectSourceAdmissionSchema,DirectProjectSourceKeySchema.extend({state:z29.literal("UPLOAD"),ticket:MediaObjectTicketSchema,uploaded:z29.boolean()})]);var DirectProjectSourceSubmitSchema=z29.discriminatedUnion("state",[accepted2,DirectProjectSourceAdmissionSchema]);var LocalLibraryDestinationSchema=z30.discriminatedUnion("kind",[z30.strictObject({kind:z30.literal("ORIGINAL"),command:DirectOriginalCommandSchema}),z30.strictObject({kind:z30.literal("PROJECT_SOURCE"),command:DirectProjectSourceCommandSchema})]);function localLibraryInspectable(reference){if(reference.contentType==="video/mp4")return reference.byteSize>=32;return["image/png","image/jpeg","image/webp"].includes(reference.contentType)&&reference.byteSize>0&&reference.byteSize<=8*1024*1024}var sameId=(left,right)=>left.toLowerCase()===right.toLowerCase();function destinationMatches(destination,reference){if(destination.kind==="ORIGINAL"){const{input}=destination.command;return sameId(input.tenantId,reference.tenantId)&&sameId(input.projectId,reference.projectId)&&(!input.deviceId||sameId(input.deviceId,reference.deviceId))&&input.source.contentType===reference.contentType&&input.source.byteSize===reference.byteSize&&input.source.checksumSha256===reference.checksumSha256}const{command:command2}=destination;return sameId(command2.metadata.tenantId,reference.tenantId)&&sameId(command2.projectId,reference.projectId)&&(!command2.requestedDeviceId||sameId(command2.requestedDeviceId,reference.deviceId))&&command2.metadata.contentType===reference.contentType&&command2.byteSize===reference.byteSize&&command2.checksumSha256===reference.checksumSha256}var command=LocalWorkScopeSchema.omit({runtimeJobId:true}).extend({requestId:LocalIdSchema,reference:LocalLibraryReferenceSchema,accessRevision:z30.int().positive()});var LocalLibraryCommandSchema=z30.discriminatedUnion("action",[command.extend({action:z30.literal("INSPECT")}),command.extend({action:z30.literal("PUBLISH"),destination:LocalLibraryDestinationSchema})]).superRefine((value,ctx)=>{if(value.reference.tenantId!==value.tenantId||value.reference.projectId!==value.projectId)ctx.addIssue({code:"custom",message:"Exact local file project required"});if(!localLibraryInspectable(value.reference))ctx.addIssue({code:"custom",message:"A qualified media file version is required"});if(value.action!=="PUBLISH")return;const d=value.destination;if(d.kind==="ORIGINAL"){const input=d.command.input;if(!sameId(input.tenantId,value.tenantId)||!sameId(input.projectId,value.projectId)||!sameId(input.productionId,value.productionId)||input.deviceId&&!sameId(input.deviceId,value.reference.deviceId)||input.source.byteSize!==value.reference.byteSize||input.source.checksumSha256!==value.reference.checksumSha256||input.source.contentType!==value.reference.contentType)ctx.addIssue({code:"custom",message:"Original must bind exact local file and native Production"})}else if(!sameId(d.command.metadata.tenantId,value.tenantId)||!sameId(d.command.projectId,value.projectId)||d.command.requestedDeviceId&&!sameId(d.command.requestedDeviceId,value.reference.deviceId)||d.command.byteSize!==value.reference.byteSize||d.command.checksumSha256!==value.reference.checksumSha256||d.command.metadata.contentType!==value.reference.contentType)ctx.addIssue({code:"custom",message:"Project SOURCE must bind exact local file"})});var LocalLibraryCommandQuerySchema=LocalWorkScopeSchema.omit({runtimeJobId:true}).extend({requestId:LocalIdSchema});var LocalLibraryAdmissionSchema=LocalWorkScopeSchema.extend({state:z30.literal("SUBMITTED"),requestId:LocalIdSchema,operationId:OperationIdSchema,reference:LocalLibraryReferenceSchema,accessRevision:z30.int().positive()});var LocalLibraryInspectionSchema=z30.discriminatedUnion("kind",[z30.strictObject({kind:z30.literal("VIDEO"),metadata:ImportedVisualSourceMetadataSchema}),z30.strictObject({kind:z30.literal("IMAGE"),checksumSha256:LocalDigestSchema,byteSize:z30.int().positive().max(8*1024*1024),width:z30.int().positive().max(4096),height:z30.int().positive().max(4096)})]);var LocalLibraryInspectRecipeSchema=z30.strictObject({processor:z30.literal("LOCAL_MEDIA_INSPECT"),reference:LocalLibraryReferenceSchema,accessRevision:z30.int().positive(),libraryProfileDigest:LocalDigestSchema}).refine(({reference})=>localLibraryInspectable(reference),"Qualified local inspection required");var LocalLibraryPublishRecipeSchema=z30.strictObject({processor:z30.literal("LOCAL_MEDIA_PUBLISH"),reference:LocalLibraryReferenceSchema,accessRevision:z30.int().positive(),libraryProfileDigest:LocalDigestSchema,destination:LocalLibraryDestinationSchema,object:MediaObjectVersionSchema.extend({role:z30.literal("SOURCE")})}).refine(({reference,object,destination})=>localLibraryInspectable(reference)&&destinationMatches(destination,reference)&&object.tenantId===reference.tenantId&&object.projectId===reference.projectId&&object.checksumSha256===reference.checksumSha256&&object.byteSize===reference.byteSize,"Publication must use the exact local file version and native destination");var LocalLibraryInspectEvidenceSchema=z30.strictObject({processor:z30.literal("LOCAL_MEDIA_INSPECT"),inspection:LocalLibraryInspectionSchema});var LocalLibraryPublishEvidenceSchema=z30.strictObject({processor:z30.literal("LOCAL_MEDIA_PUBLISH"),inspection:LocalLibraryInspectionSchema});import{z as z34}from"zod";import{z as z31}from"zod";var identity2=z31.strictObject({artifactId:LocalIdSchema,representationId:LocalIdSchema});var ProcessorCompositionAllocationSchema=z31.strictObject({sequence:identity2,frames:z31.array(identity2).min(1).max(360)}).refine(({sequence,frames})=>{const entries=[sequence,...frames];return new Set(entries.map(entry=>entry.artifactId)).size===entries.length&&new Set(entries.map(entry=>entry.representationId)).size===entries.length});var processorCompositionFields={manifest:CompositionRenderManifestReaderSchema,allocation:ProcessorCompositionAllocationSchema.nullable()};var base={processor:z31.literal("COMPOSITION_RENDER"),resources:CompositionRenderResourcesSchema};var ProcessorCompositionVideoEvidenceSchema=z31.strictObject({...base,format:z31.literal("MP4"),technical:CompositionRenderTechnicalSchema});var ProcessorCompositionSequenceEvidenceSchema=z31.strictObject({...base,format:z31.literal("RGBA_SEQUENCE"),technical:CompositionFrameTechnicalSchema,sequence:VisualFrameSequenceSchema});var ProcessorCompositionEvidenceSchema=z31.discriminatedUnion("format",[ProcessorCompositionVideoEvidenceSchema,ProcessorCompositionSequenceEvidenceSchema]);import{z as z33}from"zod";import{z as z32}from"zod";var TranscribeAudioRecipeSchema=z32.strictObject({processor:z32.literal("TRANSCRIBE_AUDIO"),source:ObservationSourceSchema.extend({contentType:z32.literal("audio/wav")}),identity:LocalWhisperIdentitySchema});var TranscribeAudioEvidenceSchema=z32.strictObject({processor:z32.literal("TRANSCRIBE_AUDIO"),identity:LocalWhisperIdentitySchema,transcript:TranscriptSchema.refine(transcript=>transcript.timing==="UNAVAILABLE"),inputPcmSha256:LocalDigestSchema,inputPcmByteSize:z32.int().min(44).max(1920044)});var QwenAsrRecipeSchema=z32.strictObject({processor:z32.literal("TRANSCRIBE_EXTERNAL_QWEN"),observationId:LocalIdSchema,quoteFingerprint:LocalDigestSchema,credential:QwenDeviceCredentialIdentitySchema,source:TranscribeAudioRecipeSchema.shape.source,parameters:z32.strictObject({context:z32.string().max(2e3).refine(value=>!value.includes("\0")).optional(),language:z32.string().regex(/^[a-zA-Z][a-zA-Z0-9-]{1,19}$/).optional(),enable_itn:z32.boolean().optional()})});var asrTokens=z32.int().min(0).max(1e7).optional();var QwenAsrEvidenceSchema=z32.strictObject({processor:z32.literal("TRANSCRIBE_EXTERNAL_QWEN"),providerRequestId:z32.string().regex(/^[A-Za-z0-9_.:-]{1,500}$/),model:z32.literal("qwen3-asr-flash-2026-02-10"),usage:z32.strictObject({seconds:z32.int().min(0).max(60).optional(),prompt_tokens:asrTokens,completion_tokens:asrTokens,total_tokens:asrTokens}),transcript:TranscriptSchema.options[0]});var sourceReference=z33.strictObject({artifactId:LocalIdSchema,representationId:LocalIdSchema,byteSize:MediaObjectVersionSchema.shape.byteSize,checksumSha256:LocalDigestSchema,contentType:z33.string().min(1).max(100)});var source2=sourceReference.extend({contentType:z33.literal("video/mp4")});var normalize=z33.strictObject({processor:z33.literal("IMPORTED_VISUAL_NORMALIZE"),source:source2,request:ImportedVisualNormalizationRequestSchema}).refine(({request,source:source3})=>request.source.byteSize===source3.byteSize&&request.source.checksumSha256===source3.checksumSha256,"Original representation must match the normalization request");var audio=z33.strictObject({processor:z33.literal("SOURCE_SYNC_AUDIO"),source:source2,input:ImportedVisualSourceInputSchema,extraction:ImportedSynchronousAudioExtractionSchema}).refine(value=>value.source.checksumSha256===value.input.checksumSha256&&value.source.checksumSha256===value.extraction.originalChecksumSha256&&value.source.representationId===value.extraction.originalRepresentationId&&value.source.artifactId===value.extraction.originalArtifactId&&value.source.byteSize===value.input.byteSize);var temporal=z33.strictObject({processor:z33.literal("TEMPORAL_SAMPLE"),source:source2,plan:TemporalSamplingPlanSchema}).refine(value=>value.source.checksumSha256===value.plan.source.checksumSha256&&value.source.representationId===value.plan.source.representationId&&value.source.artifactId===value.plan.source.artifactId&&value.source.byteSize===value.plan.source.byteSize);var delivery=z33.strictObject({processor:z33.literal("DELIVERY_VALIDATE"),recipe:LocalMediaRecipeSchema.refine(value=>value.family==="FINAL_RENDER"),target:DeliveryTargetSchema.pick({representationId:true,checksumSha256:true,byteSize:true,artifactId:true}).extend({contentType:z33.literal("video/mp4")}),policy:z33.strictObject({requiredAudio:z33.boolean(),requiredCaptions:z33.boolean(),requiredGraphics:z33.boolean()}),engineVersion:z33.string().min(1).max(200),sources:z33.array(sourceReference).min(1).max(512),manifestBasisFingerprint:LocalDigestSchema}).refine(({sources,target:target2})=>new Set([target2.representationId,...sources.map(v=>v.representationId)]).size===sources.length+1);var composition=z33.strictObject({processor:z33.literal("COMPOSITION_RENDER"),...processorCompositionFields,sources:z33.array(sourceReference).min(1).max(64)}).refine(({manifest,allocation,sources})=>{const inputs=manifest.version.inputs;return(manifest.schemaVersion===1?allocation===null:allocation?.frames.length===manifest.frameCount)&&new Set(inputs.map(input=>input.representationId)).size===sources.length&&new Set(sources.map(source3=>source3.representationId)).size===sources.length&&inputs.every(input=>sources.some(source3=>source3.representationId===input.representationId&&source3.artifactId===input.artifactId&&source3.checksumSha256===input.checksumSha256&&source3.byteSize===input.byteSize&&source3.contentType===input.contentType))});var directOriginal=z33.strictObject({processor:z33.literal("IMPORT_ORIGINAL"),command:DirectOriginalCommandSchema,object:MediaObjectVersionSchema.extend({role:z33.literal("SOURCE")})}).refine(({command:{input},object})=>input.tenantId===object.tenantId&&input.projectId===object.projectId&&input.source.checksumSha256===object.checksumSha256&&input.source.byteSize===object.byteSize);var projectSource=z33.strictObject({processor:z33.literal("IMPORT_PROJECT_SOURCE"),metadata:SourceInputMetadataSchema.extend({idempotencyKey:z33.string().trim().min(1).max(200)}),projectId:LocalIdSchema,object:MediaObjectVersionSchema.extend({role:z33.literal("SOURCE")})}).refine(({metadata,projectId,object})=>metadata.tenantId===object.tenantId&&projectId===object.projectId&&object.byteSize<=8*1024*1024&&(metadata.kind==="REFERENCE_VIDEO"?metadata.contentType==="video/mp4":metadata.kind==="REFERENCE_IMAGE"&&["image/png","image/jpeg","image/webp"].includes(metadata.contentType)));var visualSequence=z33.strictObject({processor:z33.literal("REGISTER_VISUAL_SEQUENCE"),input:RegisterVisualSequenceSchema,manifest:VisualSequenceManifestSchema,sources:z33.array(sourceReference).min(1).max(360)}).refine(({input,manifest,sources})=>input.tenantId===manifest.tenantId&&input.projectId===manifest.projectId&&input.productionId===manifest.productionId&&new Set(sources.map(source3=>source3.representationId)).size===sources.length&&manifest.frames.every(frame2=>sources.some(source3=>source3.artifactId===frame2.artifactId&&source3.representationId===frame2.representationId&&source3.byteSize===frame2.byteSize&&source3.checksumSha256===frame2.checksumSha256&&source3.contentType==="image/png")));var TenantProcessorRecipeSchema=z33.discriminatedUnion("processor",[normalize,audio,temporal,delivery,composition,directOriginal,projectSource,LocalLibraryInspectRecipeSchema,LocalLibraryPublishRecipeSchema,visualSequence,SpeechSynthesisRecipeSchema,QwenSpeechRecipeSchema,TranscribeAudioRecipeSchema,QwenAsrRecipeSchema,QwenKeyframeRecipeSchema,QwenVideoRecipeSchema]);var TenantProcessorWorkSchema=TenantMediaWorkSchema.omit({audioRequired:true,renderProfileDigest:true}).extend({protocol:z34.literal("NVS_TENANT_PROCESSOR_V1"),family:z34.enum(["ARTIFACT_INGEST","TEMPORAL_SAMPLE","DELIVERY_VALIDATE","COMPOSITION_RENDER","AUDIO_GENERATE","OBSERVE","KEYFRAME_GENERATE","VIDEO_GENERATE"]),processor:TenantProcessorKindSchema,recipeFingerprint:LocalDigestSchema,toolchainFingerprint:LocalDigestSchema,externalGeneration:ExternalGenerationReservationMarkerSchema.optional()}).refine(value=>processorFamilies[value.processor]===value.family&&(value.processor==="KEYFRAME_GENERATE"||value.processor==="VIDEO_GENERATE")===!!value.externalGeneration);var TenantComputeWorkSchema=z34.discriminatedUnion("protocol",[TenantMediaWorkSchema,TenantProcessorWorkSchema]);var importedNormalizationValidationProfile={processor:"IMPORTED_VISUAL_NORMALIZE",protocol:"NVS_TENANT_PROCESSOR_REPORT_V1",inspection:"IMPORTED_MP4_AND_POSTER_READBACK_V1"};var ClaimTenantProcessorSchema=LocalProjectScopeSchema.extend({requestId:LocalIdSchema});var TenantProcessorAssignmentSchema=z34.strictObject({work:TenantProcessorWorkSchema,recipe:TenantProcessorRecipeSchema,lease:LocalExecutionLeaseSchema,toolchain:LocalToolchainSchema}).superRefine(({work,recipe,lease},ctx)=>{const target2=lease.target;if((recipe.processor==="LOCAL_MEDIA_INSPECT"||recipe.processor==="LOCAL_MEDIA_PUBLISH")&&(recipe.reference.tenantId!==work.tenantId||recipe.reference.projectId!==work.projectId||recipe.reference.deviceId!==work.target.deviceId||recipe.processor==="LOCAL_MEDIA_PUBLISH"&&recipe.destination.kind==="ORIGINAL"&&recipe.destination.command.input.productionId.toLowerCase()!==work.productionId))ctx.addIssue({code:"custom",message:"Local file reference must match native target and scope"});if(recipe.processor!==work.processor||lease.tenantId!==work.tenantId||lease.projectId!==work.projectId||lease.productionId!==work.productionId||lease.runtimeJobId!==work.runtimeJobId||lease.toolchainFingerprint!==work.toolchainFingerprint||target2.kind!=="DEVICE"||!sameDeviceAuthority(target2,work.target))ctx.addIssue({code:"custom",message:"Assignment must match the frozen device work"})});var TenantProcessorClaimReceiptSchema=z34.strictObject({found:z34.boolean(),assignment:TenantProcessorAssignmentSchema.nullable()});var StageTenantProcessorOutputSchema=LocalLeaseBindingSchema.extend({requestId:LocalIdSchema,role:z34.enum(["VIDEO","POSTER","AUDIO","FRAME","SHEET","MANIFEST"]),ordinal:z34.int().nonnegative().max(359).default(0),checksumSha256:LocalDigestSchema,byteSize:MediaObjectVersionSchema.shape.byteSize});var PrepareTenantProcessorReportSchema=LocalLeaseBindingSchema.extend({requestId:LocalIdSchema,outputVersionIds:z34.array(LocalIdSchema).max(362).refine(ids=>ids.length===new Set(ids).size)});var TenantProcessorReportRequestSchema=LocalLeaseBindingSchema.extend({requestId:LocalIdSchema,validationRequestId:LocalIdSchema,work:TenantProcessorWorkSchema,outputs:z34.array(MediaObjectVersionSchema).max(362)});var poster=z34.strictObject({checksumSha256:LocalDigestSchema,byteSize:z34.int().min(1).max(2*1024*1024),width:z34.int().min(1).max(320),height:z34.int().min(1).max(320)});var TenantProcessorEvidenceSchema=z34.discriminatedUnion("processor",[LocalLibraryInspectEvidenceSchema,LocalLibraryPublishEvidenceSchema,z34.strictObject({processor:z34.literal("IMPORTED_VISUAL_NORMALIZE"),receipt:ImportedVisualNormalizationReceiptSchema,posterEvidence:poster}),z34.strictObject({processor:z34.literal("SOURCE_SYNC_AUDIO"),provenance:ImportedSynchronousAudioSourceSchema}),z34.strictObject({processor:z34.literal("TEMPORAL_SAMPLE"),manifest:TemporalEvidenceManifestSchema}),z34.strictObject({processor:z34.literal("DELIVERY_VALIDATE"),checks:DeliveryPhysicalChecksSchema,technical:FinalRenderTechnicalSchema.nullable()}),ProcessorCompositionEvidenceSchema,SpeechSynthesisEvidenceSchema,QwenSpeechEvidenceSchema,TranscribeAudioEvidenceSchema,QwenAsrEvidenceSchema,QwenKeyframeEvidenceSchema,QwenVideoEvidenceSchema,z34.strictObject({processor:z34.literal("IMPORT_ORIGINAL"),metadata:ImportedVisualSourceMetadataSchema}),z34.strictObject({processor:z34.literal("IMPORT_PROJECT_SOURCE"),validated:z34.strictObject({checksumSha256:LocalDigestSchema,byteSize:z34.int().positive().max(8*1024*1024),width:z34.int().positive().max(4096),height:z34.int().positive().max(4096),video:ImportedVisualSourceMetadataSchema.optional()})}),z34.strictObject({processor:z34.literal("REGISTER_VISUAL_SEQUENCE"),evidence:z34.strictObject({checksumSha256:VisualFrameSequenceSchema.shape.checksumSha256,width:VisualFrameSequenceSchema.shape.width,height:VisualFrameSequenceSchema.shape.height,frames:VisualFrameSequenceSchema.shape.frames,byteSize:z34.int().positive().max(2*1024*1024)})})]);var TenantProcessorReportBodySchema=TenantProcessorReportRequestSchema.extend({schemaVersion:z34.literal(1),evidence:TenantProcessorEvidenceSchema}).superRefine(({work,outputs,evidence,...binding},ctx)=>{if(work.tenantId!==binding.tenantId||work.projectId!==binding.projectId||work.productionId!==binding.productionId||work.runtimeJobId!==binding.runtimeJobId||work.toolchainFingerprint!==binding.toolchainFingerprint||evidence.processor!==work.processor||new Set(outputs.map(value=>value.versionId)).size!==outputs.length||outputs.some(object=>object.tenantId!==work.tenantId||object.projectId!==work.projectId)||!matchesEvidence(outputs,evidence))ctx.addIssue({code:"custom",message:"Report must bind the exact processor and committed media versions"})});function matchesEvidence(outputs,evidence){const matches=(index,role,expected)=>{const output2=outputs[index];return output2?.role===role&&output2.checksumSha256===expected.checksumSha256&&output2.byteSize===expected.byteSize};switch(evidence.processor){case"IMPORTED_VISUAL_NORMALIZE":return outputs.length===2&&matches(0,"VIDEO",evidence.receipt.output)&&matches(1,"POSTER",evidence.posterEvidence);case"SOURCE_SYNC_AUDIO":return outputs.length===1&&matches(0,"AUDIO",{checksumSha256:evidence.provenance.wavChecksumSha256,byteSize:evidence.provenance.wavByteSize});case"SPEECH_SYNTHESIZE":case"SPEECH_EXTERNAL_QWEN":return outputs.length===2&&matches(0,"AUDIO",evidence.source)&&matches(1,"AUDIO",evidence.normalized);case"TEMPORAL_SAMPLE":{const frames=evidence.manifest.frames;return outputs.length===frames.length+2&&frames.every((value,index)=>matches(index,"FRAME",value))&&matches(frames.length,"SHEET",evidence.manifest.sheet)&&outputs.at(-1)?.role==="MANIFEST"}case"DELIVERY_VALIDATE":case"TRANSCRIBE_AUDIO":case"TRANSCRIBE_EXTERNAL_QWEN":case"LOCAL_MEDIA_INSPECT":case"LOCAL_MEDIA_PUBLISH":case"IMPORT_ORIGINAL":case"IMPORT_PROJECT_SOURCE":return outputs.length===0;case"REGISTER_VISUAL_SEQUENCE":return outputs.length===1&&matches(0,"MANIFEST",evidence.evidence);case"KEYFRAME_GENERATE":return outputs.length===1&&matches(0,"FRAME",evidence.image);case"VIDEO_GENERATE":return outputs.length===2&&matches(0,"VIDEO",evidence.video)&&matches(1,"POSTER",evidence.poster);case"COMPOSITION_RENDER":if(evidence.format==="MP4")return outputs.length===1&&matches(0,"VIDEO",evidence.technical);return outputs.length===evidence.technical.frames.length+1&&evidence.technical.frames.every((value,index)=>matches(index,"FRAME",value))&&outputs.at(-1)?.role==="MANIFEST"&&outputs.at(-1)?.checksumSha256===evidence.sequence.checksumSha256}}var TenantProcessorReportSchema=TenantProcessorReportBodySchema.safeExtend({reportFingerprint:LocalDigestSchema,signature:z34.string().regex(/^[A-Za-z0-9_-]{86}$/)});var TenantProcessorReceiptQuerySchema=LocalLeaseBindingSchema.extend({requestId:LocalIdSchema});var TenantProcessorStateSchema=z34.strictObject({binding:LocalLeaseBindingSchema,state:z34.enum(["FENCED","PENDING"])});var TenantProcessorFailureSchema=LocalLeaseBindingSchema.extend({code:z34.literal("INVALID_SOURCE")});var TenantProcessorProviderOutcomeSchema=LocalLeaseBindingSchema.extend({outcome:z34.enum(["UNKNOWN","REJECTED","WAITING","INVALID_RESULT"]),providerExecutionId:QwenVideoTaskIdSchema.optional()}).refine(value=>!["WAITING","INVALID_RESULT"].includes(value.outcome)||!!value.providerExecutionId);var TenantProcessorProviderTaskSchema=LocalLeaseBindingSchema.extend({providerExecutionId:QwenVideoTaskIdSchema.optional()});var TenantProcessorInvalidSpeechSchema=LocalLeaseBindingSchema.extend(QwenSpeechEvidenceSchema.pick({providerRequestId:true,audioId:true}).shape);var TenantProcessorReceiptSchema=TenantProcessorReceiptQuerySchema.extend({operationId:TenantProcessorWorkSchema.shape.operationId,reportFingerprint:LocalDigestSchema,result:z34.union([z34.strictObject({localMediaInspectionId:LocalIdSchema}),z34.strictObject({normalizationId:LocalIdSchema,artifactId:LocalIdSchema,representationId:LocalIdSchema,posterArtifactId:LocalIdSchema,posterRepresentationId:LocalIdSchema}),SourceSyncAudioReceiptSchema,z34.strictObject({generationId:LocalIdSchema,audio:AudioReceiptSchema}),z34.strictObject({observationId:LocalIdSchema}),z34.strictObject({generationId:LocalIdSchema,candidateId:LocalIdSchema,artifactId:LocalIdSchema,representationId:LocalIdSchema}),z34.strictObject({evidenceId:LocalIdSchema,frameSetArtifactId:LocalIdSchema,contactSheetArtifactId:LocalIdSchema}),z34.strictObject({deliveryValidationId:LocalIdSchema,reviewId:LocalIdSchema}),z34.strictObject({renderId:LocalIdSchema,artifactId:LocalIdSchema,representationId:LocalIdSchema}),ImportedVisualOriginalViewSchema,ReadyArtifactRegistrationSchema,z34.strictObject({requestId:LocalIdSchema,artifactId:LocalIdSchema,representationId:LocalIdSchema})])});import{z as z35}from"zod";var LocalLibraryCommandStatusSchema=z35.strictObject({admission:LocalLibraryAdmissionSchema,lifecycle:z35.enum(["READY","WAITING","RUNNING","SUCCEEDED","FAILED","CANCELLED","SUPERSEDED"]),receipt:TenantProcessorReceiptSchema.nullable(),inspection:LocalLibraryInspectionSchema.nullable(),failureSummary:z35.string().max(500).nullable()}).superRefine(({admission,receipt},ctx)=>{if(receipt&&(receipt.tenantId!==admission.tenantId||receipt.projectId!==admission.projectId||receipt.productionId!==admission.productionId||receipt.runtimeJobId!==admission.runtimeJobId||receipt.operationId!==admission.operationId))ctx.addIssue({code:"custom",message:"Original native receipt must match admitted local file work"})});import{z as z36}from"zod";var LocalWorkspaceDeviceSchema=z36.strictObject({tenantId:LocalIdSchema,deviceId:LocalIdSchema});var LocalDeviceWorkScopesSchema=z36.array(LocalProjectScopeSchema).max(64);import{z as z37}from"zod";var output=z37.discriminatedUnion("role",[z37.strictObject({role:z37.literal("VIDEO"),receiptId:LocalIdSchema,checksumSha256:LocalDigestSchema,byteSize:z37.int().positive().max(128*1024*1024),contentType:z37.literal("video/mp4")}),z37.strictObject({role:z37.literal("POSTER"),receiptId:LocalIdSchema,checksumSha256:LocalDigestSchema,byteSize:z37.int().positive().max(2*1024*1024),contentType:z37.literal("image/png")})]);var LocalCompletionSubmissionSchema=LocalLeaseBindingSchema.extend({requestId:LocalIdSchema,outputs:z37.array(output).length(2),technical:RoughCutTechnicalSchema}).superRefine((v,ctx)=>{const video=v.outputs.find(o=>o.role==="VIDEO");if(new Set(v.outputs.map(o=>o.role)).size!==2||new Set(v.outputs.map(o=>o.receiptId)).size!==2||!video||video.checksumSha256!==v.technical.checksumSha256||video.byteSize!==v.technical.byteSize)ctx.addIssue({code:"custom",message:"Exact video/poster receipts required"})});var LocalVerifiedUploadSchema=z37.strictObject({binding:LocalLeaseBindingSchema,output,verifiedAt:LocalTimeSchema});var LocalCompletionReceiptSchema=LocalLeaseBindingSchema.extend({submissionFingerprint:LocalDigestSchema.optional(),semanticStatus:z37.literal("SUCCESS"),requestId:LocalIdSchema,renderId:LocalIdSchema,operationId:OperationIdSchema,artifactId:LocalIdSchema,videoRepresentationId:LocalIdSchema,posterRepresentationId:LocalIdSchema,checksumSha256:LocalDigestSchema,acceptedAt:LocalTimeSchema});var GetLocalCompletionReceiptSchema=LocalLeaseBindingSchema.pick({tenantId:true,projectId:true,productionId:true,runtimeJobId:true}).extend({requestId:LocalIdSchema});import{z as z38}from"zod";var PrepareTenantMediaValidationSchema=LocalLeaseBindingSchema.extend({requestId:LocalIdSchema,outputReceiptIds:z38.array(LocalIdSchema).length(2).refine(ids=>new Set(ids).size===2)});var TenantMediaValidationRequestSchema=LocalLeaseBindingSchema.extend({requestId:LocalIdSchema,validationRequestId:LocalIdSchema,work:TenantMediaWorkSchema,outputs:z38.array(MediaObjectVersionSchema).length(2)});var TenantMediaValidationReadbackSchema=z38.strictObject({request:TenantMediaValidationRequestSchema,tickets:z38.array(MediaObjectTicketSchema).length(2)});var TenantMediaDownloadSchema=LocalProjectScopeSchema.extend({representationId:LocalIdSchema});var TenantMediaOutputStageSchema=z38.strictObject({ticket:MediaObjectTicketSchema,uploaded:z38.boolean()});var TenantRenderMediaInputSchema=TimelineScopeSchema.extend({renderId:z38.uuid(),role:z38.enum(["VIDEO","POSTER"])});var TenantRenderMediaTicketSchema=TenantRenderMediaInputSchema.extend({representationId:z38.uuid(),ticket:MediaObjectTicketSchema.extend({object:MediaObjectVersionSchema.extend({tenantId:z38.uuid(),projectId:z38.uuid(),versionId:z38.uuid()})})});var TenantMediaCapabilitySchema=z38.strictObject({tenantId:LocalIdSchema,validationMode:z38.literal("TENANT_TRUSTED_VALIDATOR")});import{createHash}from"node:crypto";import{z as z39}from"zod";var success=z39.strictObject({semanticStatus:z39.literal("SUCCESS")});var same=(a,b)=>canonicalLocalJson(a??null)===canonicalLocalJson(b??null);function resultMatches(command2,raw){const schema=command2.kind==="ENROLL"?LocalDeviceViewSchema:command2.kind==="PREVIEW"?LocalPreviewAdmissionSchema:command2.kind==="FINAL_RENDER"?LocalFinalRenderAdmissionSchema:success;const parsed=schema.safeParse(raw);if(!parsed.success)return false;const result=parsed.data,original=command2.input;for(const key of["tenantId","projectId","deviceId","productionId","timelineVersionId"])if(key in original&&key in result&&String(result[key]).toLowerCase()!==String(original[key]).toLowerCase())return false;if(command2.kind==="ENROLL")return result.revokedAt===null&&["publicKey","label","platform","runtimeVersion"].every(key=>same(original[key],result[key]));if(command2.kind==="PREVIEW"||command2.kind==="FINAL_RENDER")return same(original.timelineFingerprint,result.timelineFingerprint)&&same(command2.input.placement,result.placement.policy);return true}function checkedManagementReceipt(rawCommand,rawReceipt){const command2=LocalDeviceManagementCommandSchema.parse(rawCommand);const receipt=LocalManagementReceiptSchema.parse(rawReceipt);if(receipt.fingerprint!==createHash("sha256").update(canonicalLocalJson(command2)).digest("hex")||receipt.result!==null&&!resultMatches(command2,receipt.result))throw new NativeStudioSdkError("LOCAL_RECEIPT_INVALID","BLOCKED","NO_WRITE");return receipt}function assertManagementReceipt(key,input,result){if(key==="device.management-receipt")checkedManagementReceipt(input.command,result);else if(key==="device.enroll"){const command2=LocalDeviceManagementCommandSchema.parse({kind:"ENROLL",input});if(!resultMatches(command2,result))throw new NativeStudioSdkError("RESPONSE_SCOPE_MISMATCH","INTERNAL_OPERATIONAL_FAILURE","UNKNOWN")}}export{EnrollLocalDeviceSchema,LocalDeviceViewSchema,LocalDeviceChallengeSchema,RevokeLocalDeviceSchema,WorkspaceDeviceListInputSchema,WorkspaceDeviceListSchema,LocalOfflineCallSchema,LocalOfflinePageSchema,localLibraryProfile,LocalLibraryContentTypeSchema,LocalLibraryReferenceSchema,LocalLibraryItemSchema,LocalLibraryQuerySchema,LocalLibraryPageSchema,LocalLibraryProjectionSchema,LocalLibraryProjectionPageSchema,LocalLibraryProjectionQuerySchema,LocalLibraryImportSchema,LocalLibraryImportReceiptQuerySchema,LocalLibraryReadReplySchema,LocalLibraryGetSchema,LocalLibraryCallSchema,LocalLibraryCapabilitySchema,LocalLibraryUsageSchema,LocalAgentGrantSchema,LocalAgentDiscoverySchema,LocalCompositionBrowserSelectionSchema,LocalToolSelectionSchema,LocalRuntimeDescriptorSchema,LocalSessionConnectorSchema,LocalManagementInventorySchema,LocalReleaseSchema,LocalSignedCatalogueSchema,LocalToolChoiceSchema,LocalUpdatePlanSchema,LocalClientNextActionSchema,LocalResourcePolicySchema,LocalResourceSettingsSchema,LocalExecutionProgressSchema,LocalStorageInspectionSchema,LocalWorkspaceInspectionSchema,LocalDiagnosticsSchema,canonicalLocalJson,LocalAgentSnapshotSchema,LocalAgentProbeSchema,LocalAgentReviewViewSchema,localAgentSnapshotFromContext,localAgentNativeProposal,LocalExecutionListInputSchema,LocalExecutionInspectInputSchema,LocalIpcRequestSchema,LocalRuntimeStatusSchema,LocalDoctorReportSchema,LocalExecutionInspectionSchema,LocalExecutionPageSchema,LocalIpcResponseSchema,StartLocalPreviewSchema,LocalDeviceSessionSchema,LocalDeviceTransportConfigurationSchema,LocalPreviewAdmissionSchema,StartLocalFinalRenderSchema,LocalFinalRenderAdmissionSchema,LocalMcpFailureSchema,LocalMcpOutputSchemas,localAgentMediaSnapshot,localAgentMediaProposal,LocalManagementCommandSchema,LocalManagementResultSchema,LocalManagementReceiptSchema,localManagementRoutes,LocalDeviceManagementCommandSchema,ScopedLocalManagementReceiptSchema,tenantRenderValidationProfile,TenantMediaDownloadSchema,TenantRenderMediaInputSchema,TenantRenderMediaTicketSchema,TenantMediaCapabilitySchema,ImportedVisualFromProjectSourceSchema,ImportedVisualNormalizeStartSchema,ImportedVisualGetSchema,ImportedVisualReviewSchema,ImportedVisualDecisionSchema,ImportedVisualOriginalViewSchema,ImportedVisualNormalizationViewSchema,SourceSyncRuntimeStartSchema,SourceSyncRuntimeScopeSchema,SourceSyncRuntimeAdmissionSchema,SourceSyncRuntimeViewSchema,SourceSyncReviewTargetSchema,SourceSyncReviewInputSchema,SourceSyncReviewRecordSchema,SourceSyncReviewGetSchema,ImportedVideoReviewReceiptSchema,ImportedVisualCancellationSchema,ImportedVisualAdmissionSchema,ImportedVisualReviewTargetSchema,ImportedVisualOriginalGetSchema,ImportedVisualOriginalHistoryQuerySchema,ImportedVisualOriginalHistorySchema,ImportedVisualOriginalQuerySchema,ImportedVisualOriginalPageSchema,LegacyImportedVisualUploadSchema,LegacyImportedVisualRevisionSchema,LegacyImportedVisualProjectSourceSchema,DirectOriginalCommandSchema,DirectOriginalStageSchema,DirectOriginalSubmitSchema,DirectProjectSourceCommandSchema,DirectProjectSourceStageSchema,DirectProjectSourceSubmitSchema,LocalLibraryCommandSchema,LocalLibraryCommandQuerySchema,LocalLibraryAdmissionSchema,importedNormalizationValidationProfile,LocalLibraryCommandStatusSchema,checkedManagementReceipt,assertManagementReceipt};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const DiscoverableArtifactFamilySchema: z.ZodEnum<{
|
|
3
|
+
AUDIO: "AUDIO";
|
|
4
|
+
SOURCE: "SOURCE";
|
|
3
5
|
KEYFRAME_CANDIDATE: "KEYFRAME_CANDIDATE";
|
|
4
6
|
SHOT_CANDIDATE: "SHOT_CANDIDATE";
|
|
5
7
|
COMPOSITION_RENDER_OUTPUT: "COMPOSITION_RENDER_OUTPUT";
|
|
@@ -8,7 +10,6 @@ export declare const DiscoverableArtifactFamilySchema: z.ZodEnum<{
|
|
|
8
10
|
IMPORTED_VISUAL_ORIGINAL: "IMPORTED_VISUAL_ORIGINAL";
|
|
9
11
|
IMPORTED_VISUAL_NORMALIZED: "IMPORTED_VISUAL_NORMALIZED";
|
|
10
12
|
IMPORTED_VISUAL_POSTER: "IMPORTED_VISUAL_POSTER";
|
|
11
|
-
AUDIO: "AUDIO";
|
|
12
13
|
AUDIO_SOURCE_SYNC: "AUDIO_SOURCE_SYNC";
|
|
13
14
|
CAPTION: "CAPTION";
|
|
14
15
|
CONTACT_SHEET: "CONTACT_SHEET";
|
|
@@ -28,7 +29,16 @@ export declare const ArtifactDiscoveryQuerySchema: z.ZodObject<{
|
|
|
28
29
|
tenantId: z.ZodPipe<z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">, z.ZodTransform<string & z.core.$brand<"TenantId">, string & z.core.$brand<"TenantId">>>;
|
|
29
30
|
projectId: z.ZodOptional<z.ZodPipe<z.core.$ZodBranded<z.ZodUUID, "ProjectId", "out">, z.ZodTransform<string & z.core.$brand<"ProjectId">, string & z.core.$brand<"ProjectId">>>>;
|
|
30
31
|
productionId: z.ZodOptional<z.ZodPipe<z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">, z.ZodTransform<string & z.core.$brand<"ProductionId">, string & z.core.$brand<"ProductionId">>>>;
|
|
32
|
+
artifactId: z.ZodOptional<z.ZodPipe<z.core.$ZodBranded<z.ZodUUID, "ArtifactId", "out">, z.ZodTransform<string & z.core.$brand<"ArtifactId">, string & z.core.$brand<"ArtifactId">>>>;
|
|
33
|
+
mediaCategory: z.ZodOptional<z.ZodEnum<{
|
|
34
|
+
IMAGE: "IMAGE";
|
|
35
|
+
VIDEO: "VIDEO";
|
|
36
|
+
AUDIO: "AUDIO";
|
|
37
|
+
DOCUMENT: "DOCUMENT";
|
|
38
|
+
}>>;
|
|
31
39
|
family: z.ZodOptional<z.ZodEnum<{
|
|
40
|
+
AUDIO: "AUDIO";
|
|
41
|
+
SOURCE: "SOURCE";
|
|
32
42
|
KEYFRAME_CANDIDATE: "KEYFRAME_CANDIDATE";
|
|
33
43
|
SHOT_CANDIDATE: "SHOT_CANDIDATE";
|
|
34
44
|
COMPOSITION_RENDER_OUTPUT: "COMPOSITION_RENDER_OUTPUT";
|
|
@@ -37,7 +47,6 @@ export declare const ArtifactDiscoveryQuerySchema: z.ZodObject<{
|
|
|
37
47
|
IMPORTED_VISUAL_ORIGINAL: "IMPORTED_VISUAL_ORIGINAL";
|
|
38
48
|
IMPORTED_VISUAL_NORMALIZED: "IMPORTED_VISUAL_NORMALIZED";
|
|
39
49
|
IMPORTED_VISUAL_POSTER: "IMPORTED_VISUAL_POSTER";
|
|
40
|
-
AUDIO: "AUDIO";
|
|
41
50
|
AUDIO_SOURCE_SYNC: "AUDIO_SOURCE_SYNC";
|
|
42
51
|
CAPTION: "CAPTION";
|
|
43
52
|
CONTACT_SHEET: "CONTACT_SHEET";
|
|
@@ -56,13 +65,62 @@ export declare const ArtifactDiscoveryMediaSchema: z.ZodObject<{
|
|
|
56
65
|
artifactId: z.ZodPipe<z.core.$ZodBranded<z.ZodUUID, "ArtifactId", "out">, z.ZodTransform<string & z.core.$brand<"ArtifactId">, string & z.core.$brand<"ArtifactId">>>;
|
|
57
66
|
representationId: z.ZodPipe<z.core.$ZodBranded<z.ZodUUID, "ArtifactRepresentationId", "out">, z.ZodTransform<string & z.core.$brand<"ArtifactRepresentationId">, string & z.core.$brand<"ArtifactRepresentationId">>>;
|
|
58
67
|
}, z.core.$strict>;
|
|
68
|
+
/** 正式表示的浏览器票据包含原 Artifact 身份,供前端核对绑定。 */
|
|
69
|
+
export declare const ArtifactMediaTicketRequestSchema: z.ZodObject<{
|
|
70
|
+
tenantId: z.ZodPipe<z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">, z.ZodTransform<string & z.core.$brand<"TenantId">, string & z.core.$brand<"TenantId">>>;
|
|
71
|
+
projectId: z.ZodPipe<z.core.$ZodBranded<z.ZodUUID, "ProjectId", "out">, z.ZodTransform<string & z.core.$brand<"ProjectId">, string & z.core.$brand<"ProjectId">>>;
|
|
72
|
+
artifactId: z.ZodPipe<z.core.$ZodBranded<z.ZodUUID, "ArtifactId", "out">, z.ZodTransform<string & z.core.$brand<"ArtifactId">, string & z.core.$brand<"ArtifactId">>>;
|
|
73
|
+
representationId: z.ZodPipe<z.core.$ZodBranded<z.ZodUUID, "ArtifactRepresentationId", "out">, z.ZodTransform<string & z.core.$brand<"ArtifactRepresentationId">, string & z.core.$brand<"ArtifactRepresentationId">>>;
|
|
74
|
+
download: z.ZodOptional<z.ZodBoolean>;
|
|
75
|
+
}, z.core.$strict>;
|
|
76
|
+
export declare const ArtifactMediaTicketSchema: z.ZodObject<{
|
|
77
|
+
tenantId: z.ZodPipe<z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">, z.ZodTransform<string & z.core.$brand<"TenantId">, string & z.core.$brand<"TenantId">>>;
|
|
78
|
+
projectId: z.ZodPipe<z.core.$ZodBranded<z.ZodUUID, "ProjectId", "out">, z.ZodTransform<string & z.core.$brand<"ProjectId">, string & z.core.$brand<"ProjectId">>>;
|
|
79
|
+
artifactId: z.ZodPipe<z.core.$ZodBranded<z.ZodUUID, "ArtifactId", "out">, z.ZodTransform<string & z.core.$brand<"ArtifactId">, string & z.core.$brand<"ArtifactId">>>;
|
|
80
|
+
representationId: z.ZodPipe<z.core.$ZodBranded<z.ZodUUID, "ArtifactRepresentationId", "out">, z.ZodTransform<string & z.core.$brand<"ArtifactRepresentationId">, string & z.core.$brand<"ArtifactRepresentationId">>>;
|
|
81
|
+
url: z.ZodURL;
|
|
82
|
+
expiresAt: z.ZodISODateTime;
|
|
83
|
+
object: z.ZodObject<{
|
|
84
|
+
tenantId: z.ZodUUID;
|
|
85
|
+
projectId: z.ZodUUID;
|
|
86
|
+
versionId: z.ZodUUID;
|
|
87
|
+
role: z.ZodEnum<{
|
|
88
|
+
VIDEO: "VIDEO";
|
|
89
|
+
AUDIO: "AUDIO";
|
|
90
|
+
SOURCE: "SOURCE";
|
|
91
|
+
POSTER: "POSTER";
|
|
92
|
+
FRAME: "FRAME";
|
|
93
|
+
SHEET: "SHEET";
|
|
94
|
+
MANIFEST: "MANIFEST";
|
|
95
|
+
}>;
|
|
96
|
+
byteSize: z.ZodInt;
|
|
97
|
+
checksumSha256: z.ZodString;
|
|
98
|
+
}, z.core.$strict>;
|
|
99
|
+
contentType: z.ZodEnum<{
|
|
100
|
+
"application/json": "application/json";
|
|
101
|
+
"text/plain": "text/plain";
|
|
102
|
+
"image/png": "image/png";
|
|
103
|
+
"image/jpeg": "image/jpeg";
|
|
104
|
+
"image/webp": "image/webp";
|
|
105
|
+
"audio/mpeg": "audio/mpeg";
|
|
106
|
+
"audio/wav": "audio/wav";
|
|
107
|
+
"video/mp4": "video/mp4";
|
|
108
|
+
"application/x-subrip": "application/x-subrip";
|
|
109
|
+
}>;
|
|
110
|
+
}, z.core.$strict>;
|
|
59
111
|
export declare const ArtifactDiscoveryItemSchema: z.ZodObject<{
|
|
60
112
|
artifactId: z.core.$ZodBranded<z.ZodUUID, "ArtifactId", "out">;
|
|
61
113
|
projectId: z.core.$ZodBranded<z.ZodUUID, "ProjectId", "out">;
|
|
62
114
|
projectName: z.ZodString;
|
|
115
|
+
projectLifecycle: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
116
|
+
ACTIVE: "ACTIVE";
|
|
117
|
+
ARCHIVED: "ARCHIVED";
|
|
118
|
+
}>>>;
|
|
63
119
|
productionId: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">>;
|
|
64
120
|
representationId: z.core.$ZodBranded<z.ZodUUID, "ArtifactRepresentationId", "out">;
|
|
65
121
|
family: z.ZodEnum<{
|
|
122
|
+
AUDIO: "AUDIO";
|
|
123
|
+
SOURCE: "SOURCE";
|
|
66
124
|
KEYFRAME_CANDIDATE: "KEYFRAME_CANDIDATE";
|
|
67
125
|
SHOT_CANDIDATE: "SHOT_CANDIDATE";
|
|
68
126
|
COMPOSITION_RENDER_OUTPUT: "COMPOSITION_RENDER_OUTPUT";
|
|
@@ -71,7 +129,6 @@ export declare const ArtifactDiscoveryItemSchema: z.ZodObject<{
|
|
|
71
129
|
IMPORTED_VISUAL_ORIGINAL: "IMPORTED_VISUAL_ORIGINAL";
|
|
72
130
|
IMPORTED_VISUAL_NORMALIZED: "IMPORTED_VISUAL_NORMALIZED";
|
|
73
131
|
IMPORTED_VISUAL_POSTER: "IMPORTED_VISUAL_POSTER";
|
|
74
|
-
AUDIO: "AUDIO";
|
|
75
132
|
AUDIO_SOURCE_SYNC: "AUDIO_SOURCE_SYNC";
|
|
76
133
|
CAPTION: "CAPTION";
|
|
77
134
|
CONTACT_SHEET: "CONTACT_SHEET";
|
|
@@ -99,6 +156,11 @@ export declare const ArtifactDiscoveryItemSchema: z.ZodObject<{
|
|
|
99
156
|
durationMs: z.ZodNullable<z.ZodInt>;
|
|
100
157
|
createdAt: z.ZodISODateTime;
|
|
101
158
|
originalName: z.ZodNullable<z.ZodString>;
|
|
159
|
+
sourceKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
160
|
+
REFERENCE_IMAGE: "REFERENCE_IMAGE";
|
|
161
|
+
REFERENCE_VIDEO: "REFERENCE_VIDEO";
|
|
162
|
+
PRODUCT_INFORMATION: "PRODUCT_INFORMATION";
|
|
163
|
+
}>>>;
|
|
102
164
|
executionClass: z.ZodEnum<{
|
|
103
165
|
LIVE: "LIVE";
|
|
104
166
|
TEST_ONLY: "TEST_ONLY";
|
|
@@ -113,9 +175,15 @@ export declare const ArtifactDiscoveryPageSchema: z.ZodObject<{
|
|
|
113
175
|
artifactId: z.core.$ZodBranded<z.ZodUUID, "ArtifactId", "out">;
|
|
114
176
|
projectId: z.core.$ZodBranded<z.ZodUUID, "ProjectId", "out">;
|
|
115
177
|
projectName: z.ZodString;
|
|
178
|
+
projectLifecycle: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
179
|
+
ACTIVE: "ACTIVE";
|
|
180
|
+
ARCHIVED: "ARCHIVED";
|
|
181
|
+
}>>>;
|
|
116
182
|
productionId: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">>;
|
|
117
183
|
representationId: z.core.$ZodBranded<z.ZodUUID, "ArtifactRepresentationId", "out">;
|
|
118
184
|
family: z.ZodEnum<{
|
|
185
|
+
AUDIO: "AUDIO";
|
|
186
|
+
SOURCE: "SOURCE";
|
|
119
187
|
KEYFRAME_CANDIDATE: "KEYFRAME_CANDIDATE";
|
|
120
188
|
SHOT_CANDIDATE: "SHOT_CANDIDATE";
|
|
121
189
|
COMPOSITION_RENDER_OUTPUT: "COMPOSITION_RENDER_OUTPUT";
|
|
@@ -124,7 +192,6 @@ export declare const ArtifactDiscoveryPageSchema: z.ZodObject<{
|
|
|
124
192
|
IMPORTED_VISUAL_ORIGINAL: "IMPORTED_VISUAL_ORIGINAL";
|
|
125
193
|
IMPORTED_VISUAL_NORMALIZED: "IMPORTED_VISUAL_NORMALIZED";
|
|
126
194
|
IMPORTED_VISUAL_POSTER: "IMPORTED_VISUAL_POSTER";
|
|
127
|
-
AUDIO: "AUDIO";
|
|
128
195
|
AUDIO_SOURCE_SYNC: "AUDIO_SOURCE_SYNC";
|
|
129
196
|
CAPTION: "CAPTION";
|
|
130
197
|
CONTACT_SHEET: "CONTACT_SHEET";
|
|
@@ -152,6 +219,11 @@ export declare const ArtifactDiscoveryPageSchema: z.ZodObject<{
|
|
|
152
219
|
durationMs: z.ZodNullable<z.ZodInt>;
|
|
153
220
|
createdAt: z.ZodISODateTime;
|
|
154
221
|
originalName: z.ZodNullable<z.ZodString>;
|
|
222
|
+
sourceKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
223
|
+
REFERENCE_IMAGE: "REFERENCE_IMAGE";
|
|
224
|
+
REFERENCE_VIDEO: "REFERENCE_VIDEO";
|
|
225
|
+
PRODUCT_INFORMATION: "PRODUCT_INFORMATION";
|
|
226
|
+
}>>>;
|
|
155
227
|
executionClass: z.ZodEnum<{
|
|
156
228
|
LIVE: "LIVE";
|
|
157
229
|
TEST_ONLY: "TEST_ONLY";
|
|
@@ -109,6 +109,7 @@ export declare const AudioVersionSchema: z.ZodObject<{
|
|
|
109
109
|
LIVE: "LIVE";
|
|
110
110
|
TEST_ONLY: "TEST_ONLY";
|
|
111
111
|
}>;
|
|
112
|
+
executionTarget: z.ZodOptional<z.ZodLiteral<"TENANT_DEVICE">>;
|
|
112
113
|
sourceArtifactId: z.ZodUUID;
|
|
113
114
|
sourceRepresentationId: z.ZodUUID;
|
|
114
115
|
sourceChecksumSha256: z.ZodString;
|
|
@@ -158,6 +159,7 @@ export declare const AudioViewSchema: z.ZodObject<{
|
|
|
158
159
|
LIVE: "LIVE";
|
|
159
160
|
TEST_ONLY: "TEST_ONLY";
|
|
160
161
|
}>;
|
|
162
|
+
executionTarget: z.ZodOptional<z.ZodLiteral<"TENANT_DEVICE">>;
|
|
161
163
|
sourceArtifactId: z.ZodUUID;
|
|
162
164
|
sourceRepresentationId: z.ZodUUID;
|
|
163
165
|
sourceChecksumSha256: z.ZodString;
|
|
@@ -214,6 +216,7 @@ export declare const AudioReceiptSchema: z.ZodObject<{
|
|
|
214
216
|
LIVE: "LIVE";
|
|
215
217
|
TEST_ONLY: "TEST_ONLY";
|
|
216
218
|
}>;
|
|
219
|
+
executionTarget: z.ZodOptional<z.ZodLiteral<"TENANT_DEVICE">>;
|
|
217
220
|
sourceArtifactId: z.ZodUUID;
|
|
218
221
|
sourceRepresentationId: z.ZodUUID;
|
|
219
222
|
sourceChecksumSha256: z.ZodString;
|
|
@@ -278,6 +281,7 @@ export declare const AudioPageSchema: z.ZodObject<{
|
|
|
278
281
|
LIVE: "LIVE";
|
|
279
282
|
TEST_ONLY: "TEST_ONLY";
|
|
280
283
|
}>;
|
|
284
|
+
executionTarget: z.ZodOptional<z.ZodLiteral<"TENANT_DEVICE">>;
|
|
281
285
|
sourceArtifactId: z.ZodUUID;
|
|
282
286
|
sourceRepresentationId: z.ZodUUID;
|
|
283
287
|
sourceChecksumSha256: z.ZodString;
|
|
@@ -52,13 +52,13 @@ export declare const CreateCompositionSchema: z.ZodObject<{
|
|
|
52
52
|
bindings: z.ZodArray<z.ZodObject<{
|
|
53
53
|
name: z.ZodString;
|
|
54
54
|
purpose: z.ZodEnum<{
|
|
55
|
+
IMAGE: "IMAGE";
|
|
56
|
+
VIDEO: "VIDEO";
|
|
55
57
|
SOURCE: "SOURCE";
|
|
56
58
|
DEPENDENCY_MANIFEST: "DEPENDENCY_MANIFEST";
|
|
57
59
|
DEPENDENCY_LOCK: "DEPENDENCY_LOCK";
|
|
58
60
|
DATA: "DATA";
|
|
59
61
|
FONT: "FONT";
|
|
60
|
-
IMAGE: "IMAGE";
|
|
61
|
-
VIDEO: "VIDEO";
|
|
62
62
|
}>;
|
|
63
63
|
artifactId: z.ZodUUID;
|
|
64
64
|
representationId: z.ZodUUID;
|
|
@@ -136,13 +136,13 @@ export declare const ReviseCompositionSchema: z.ZodObject<{
|
|
|
136
136
|
bindings: z.ZodArray<z.ZodObject<{
|
|
137
137
|
name: z.ZodString;
|
|
138
138
|
purpose: z.ZodEnum<{
|
|
139
|
+
IMAGE: "IMAGE";
|
|
140
|
+
VIDEO: "VIDEO";
|
|
139
141
|
SOURCE: "SOURCE";
|
|
140
142
|
DEPENDENCY_MANIFEST: "DEPENDENCY_MANIFEST";
|
|
141
143
|
DEPENDENCY_LOCK: "DEPENDENCY_LOCK";
|
|
142
144
|
DATA: "DATA";
|
|
143
145
|
FONT: "FONT";
|
|
144
|
-
IMAGE: "IMAGE";
|
|
145
|
-
VIDEO: "VIDEO";
|
|
146
146
|
}>;
|
|
147
147
|
artifactId: z.ZodUUID;
|
|
148
148
|
representationId: z.ZodUUID;
|
|
@@ -501,13 +501,13 @@ export declare const ValidateCompositionSchema: z.ZodObject<{
|
|
|
501
501
|
bindings: z.ZodArray<z.ZodObject<{
|
|
502
502
|
name: z.ZodString;
|
|
503
503
|
purpose: z.ZodEnum<{
|
|
504
|
+
IMAGE: "IMAGE";
|
|
505
|
+
VIDEO: "VIDEO";
|
|
504
506
|
SOURCE: "SOURCE";
|
|
505
507
|
DEPENDENCY_MANIFEST: "DEPENDENCY_MANIFEST";
|
|
506
508
|
DEPENDENCY_LOCK: "DEPENDENCY_LOCK";
|
|
507
509
|
DATA: "DATA";
|
|
508
510
|
FONT: "FONT";
|
|
509
|
-
IMAGE: "IMAGE";
|
|
510
|
-
VIDEO: "VIDEO";
|
|
511
511
|
}>;
|
|
512
512
|
artifactId: z.ZodUUID;
|
|
513
513
|
representationId: z.ZodUUID;
|
|
@@ -578,13 +578,13 @@ export declare const CompositionInputReceiptSchema: z.ZodObject<{
|
|
|
578
578
|
binding: z.ZodObject<{
|
|
579
579
|
name: z.ZodString;
|
|
580
580
|
purpose: z.ZodEnum<{
|
|
581
|
+
IMAGE: "IMAGE";
|
|
582
|
+
VIDEO: "VIDEO";
|
|
581
583
|
SOURCE: "SOURCE";
|
|
582
584
|
DEPENDENCY_MANIFEST: "DEPENDENCY_MANIFEST";
|
|
583
585
|
DEPENDENCY_LOCK: "DEPENDENCY_LOCK";
|
|
584
586
|
DATA: "DATA";
|
|
585
587
|
FONT: "FONT";
|
|
586
|
-
IMAGE: "IMAGE";
|
|
587
|
-
VIDEO: "VIDEO";
|
|
588
588
|
}>;
|
|
589
589
|
artifactId: z.ZodUUID;
|
|
590
590
|
representationId: z.ZodUUID;
|
|
@@ -98,13 +98,13 @@ export declare const CompositionFrameRenderManifestSchema: z.ZodObject<{
|
|
|
98
98
|
bindings: z.ZodArray<z.ZodObject<{
|
|
99
99
|
name: z.ZodString;
|
|
100
100
|
purpose: z.ZodEnum<{
|
|
101
|
+
IMAGE: "IMAGE";
|
|
102
|
+
VIDEO: "VIDEO";
|
|
101
103
|
SOURCE: "SOURCE";
|
|
102
104
|
DEPENDENCY_MANIFEST: "DEPENDENCY_MANIFEST";
|
|
103
105
|
DEPENDENCY_LOCK: "DEPENDENCY_LOCK";
|
|
104
106
|
DATA: "DATA";
|
|
105
107
|
FONT: "FONT";
|
|
106
|
-
IMAGE: "IMAGE";
|
|
107
|
-
VIDEO: "VIDEO";
|
|
108
108
|
}>;
|
|
109
109
|
artifactId: z.ZodUUID;
|
|
110
110
|
representationId: z.ZodUUID;
|
|
@@ -127,13 +127,13 @@ export declare const CompositionFrameRenderManifestSchema: z.ZodObject<{
|
|
|
127
127
|
inputs: z.ZodArray<z.ZodObject<{
|
|
128
128
|
name: z.ZodString;
|
|
129
129
|
purpose: z.ZodEnum<{
|
|
130
|
+
IMAGE: "IMAGE";
|
|
131
|
+
VIDEO: "VIDEO";
|
|
130
132
|
SOURCE: "SOURCE";
|
|
131
133
|
DEPENDENCY_MANIFEST: "DEPENDENCY_MANIFEST";
|
|
132
134
|
DEPENDENCY_LOCK: "DEPENDENCY_LOCK";
|
|
133
135
|
DATA: "DATA";
|
|
134
136
|
FONT: "FONT";
|
|
135
|
-
IMAGE: "IMAGE";
|
|
136
|
-
VIDEO: "VIDEO";
|
|
137
137
|
}>;
|
|
138
138
|
artifactId: z.ZodUUID;
|
|
139
139
|
representationId: z.ZodUUID;
|
|
@@ -87,6 +87,7 @@ export declare const CompositionRenderStartSchema: z.ZodObject<{
|
|
|
87
87
|
HYPERFRAME_RGBA_PNG30_FULL_PAINT_V1: "HYPERFRAME_RGBA_PNG30_FULL_PAINT_V1";
|
|
88
88
|
}>;
|
|
89
89
|
idempotencyKey: z.ZodString;
|
|
90
|
+
deviceId: z.ZodOptional<z.ZodUUID>;
|
|
90
91
|
}, z.core.$strict>;
|
|
91
92
|
export declare const CompositionRenderGetSchema: z.ZodObject<{
|
|
92
93
|
tenantId: z.ZodUUID;
|
|
@@ -152,13 +153,13 @@ export declare const CompositionRenderManifestSchema: z.ZodObject<{
|
|
|
152
153
|
bindings: z.ZodArray<z.ZodObject<{
|
|
153
154
|
name: z.ZodString;
|
|
154
155
|
purpose: z.ZodEnum<{
|
|
156
|
+
IMAGE: "IMAGE";
|
|
157
|
+
VIDEO: "VIDEO";
|
|
155
158
|
SOURCE: "SOURCE";
|
|
156
159
|
DEPENDENCY_MANIFEST: "DEPENDENCY_MANIFEST";
|
|
157
160
|
DEPENDENCY_LOCK: "DEPENDENCY_LOCK";
|
|
158
161
|
DATA: "DATA";
|
|
159
162
|
FONT: "FONT";
|
|
160
|
-
IMAGE: "IMAGE";
|
|
161
|
-
VIDEO: "VIDEO";
|
|
162
163
|
}>;
|
|
163
164
|
artifactId: z.ZodUUID;
|
|
164
165
|
representationId: z.ZodUUID;
|
|
@@ -181,13 +182,13 @@ export declare const CompositionRenderManifestSchema: z.ZodObject<{
|
|
|
181
182
|
inputs: z.ZodArray<z.ZodObject<{
|
|
182
183
|
name: z.ZodString;
|
|
183
184
|
purpose: z.ZodEnum<{
|
|
185
|
+
IMAGE: "IMAGE";
|
|
186
|
+
VIDEO: "VIDEO";
|
|
184
187
|
SOURCE: "SOURCE";
|
|
185
188
|
DEPENDENCY_MANIFEST: "DEPENDENCY_MANIFEST";
|
|
186
189
|
DEPENDENCY_LOCK: "DEPENDENCY_LOCK";
|
|
187
190
|
DATA: "DATA";
|
|
188
191
|
FONT: "FONT";
|
|
189
|
-
IMAGE: "IMAGE";
|
|
190
|
-
VIDEO: "VIDEO";
|
|
191
192
|
}>;
|
|
192
193
|
artifactId: z.ZodUUID;
|
|
193
194
|
representationId: z.ZodUUID;
|