@nativestudio/cli 0.0.0-stage → 0.3.0-rc.11
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 +45 -0
- package/LICENSE +201 -0
- package/components/runtime.json +31 -0
- package/components/runtime.tgz +0 -0
- package/dist/BUNDLED_DEPENDENCIES.json +1 -0
- package/dist/_chunks/chunk-2UYKJ6YN.js +1 -0
- package/dist/_chunks/chunk-37PAJCKA.js +1 -0
- package/dist/_chunks/chunk-3AVC742O.js +1 -0
- package/dist/_chunks/chunk-4U4Y2K73.js +1 -0
- package/dist/_chunks/chunk-65FQPXKC.js +1 -0
- package/dist/_chunks/chunk-6DVZBKNV.js +1 -0
- package/dist/_chunks/chunk-6LU6GJKW.js +1 -0
- package/dist/_chunks/chunk-6N433ZWR.js +1 -0
- package/dist/_chunks/chunk-EGUJ2YRX.js +1 -0
- package/dist/_chunks/chunk-FU3524Z6.js +1 -0
- package/dist/_chunks/chunk-GZBWA4YN.js +1 -0
- package/dist/_chunks/chunk-HR34UMPP.js +1 -0
- package/dist/_chunks/chunk-HTUTYIRU.js +1 -0
- package/dist/_chunks/chunk-JFC6ZIGA.js +1 -0
- package/dist/_chunks/chunk-KB2GVAN7.js +1 -0
- package/dist/_chunks/chunk-L543FEDK.js +1 -0
- package/dist/_chunks/chunk-LISB5W7B.js +1 -0
- package/dist/_chunks/chunk-LUAH3KAS.js +1 -0
- package/dist/_chunks/chunk-M2KVQQ4X.js +1 -0
- package/dist/_chunks/chunk-ODGPV7MM.js +1 -0
- package/dist/_chunks/chunk-PUBMDP4E.js +1 -0
- package/dist/_chunks/chunk-PUNG4ND7.js +1 -0
- package/dist/_chunks/chunk-Q57YFNK5.js +1 -0
- package/dist/_chunks/chunk-QAJH4RJQ.js +1 -0
- package/dist/_chunks/chunk-VDNNFVTZ.js +3 -0
- package/dist/_chunks/chunk-VPYAXWXY.js +1 -0
- package/dist/_chunks/chunk-WFRRNWO5.js +1 -0
- package/dist/_chunks/connect-5YMO6MAR.js +1 -0
- package/dist/_chunks/device-management-2OTGEBJQ.js +1 -0
- package/dist/_chunks/device-preflight-XPHFZGLO.js +1 -0
- package/dist/_chunks/devices-inventory-VWNTU5TE.js +1 -0
- package/dist/_chunks/devices-main-VQ4APRVS.js +1 -0
- package/dist/_chunks/files-TTIQ7LYJ.js +1 -0
- package/dist/_chunks/host-main-H7DPLV7B.js +1 -0
- package/dist/_chunks/http-profile-MNJX6OXO.js +1 -0
- package/dist/_chunks/library-main-SAC3V2ML.js +1 -0
- package/dist/_chunks/local-main-D6B3APK6.js +1 -0
- package/dist/_chunks/local-mcp-ONCANLPH.js +1 -0
- package/dist/_chunks/main-PW6HB3NC.js +2 -0
- package/dist/_chunks/mcp-ZIGBYFUW.js +1 -0
- package/dist/_chunks/oauth-HC6TI7HB.js +1 -0
- package/dist/_chunks/render-main-GYWKP72O.js +1 -0
- package/dist/_chunks/source-import-BC5GNCUZ.js +1 -0
- package/dist/_chunks/src-R6DNU336.js +1 -0
- package/dist/_chunks/stdio-main-RIJS5REB.js +1 -0
- package/dist/_chunks/workspace-main-GNSKHKBG.js +1 -0
- package/dist/_types/cli/local/desktop-channel.d.ts +18 -0
- package/dist/_types/cli/local/desktop-contract.d.ts +2176 -0
- package/dist/_types/cli/local/desktop-device-contract.d.ts +779 -0
- package/dist/_types/cli/local/desktop-device-navigation.d.ts +3 -0
- package/dist/_types/cli/local/desktop-device-owner.d.ts +244 -0
- package/dist/_types/cli/local/desktop-device-state.d.ts +397 -0
- package/dist/_types/cli/local/desktop-library.d.ts +853 -0
- package/dist/_types/cli/local/desktop-node.d.ts +1 -0
- package/dist/_types/cli/local/desktop-owner.d.ts +766 -0
- package/dist/_types/cli/local/ledger.d.ts +363 -0
- package/dist/_types/cli/local/manager.d.ts +1695 -0
- package/dist/_types/cli/local/mcp-tools.d.ts +660 -0
- package/dist/_types/cli/local/releases.d.ts +123 -0
- package/dist/_types/cli/local-management.d.ts +16 -0
- package/dist/_types/cli/local-navigation.d.ts +4 -0
- package/dist/_types/contracts/accepted-shot.d.ts +27 -0
- package/dist/_types/contracts/accepted-visual-source.d.ts +120 -0
- package/dist/_types/contracts/agent-execution-lifecycle.d.ts +749 -0
- package/dist/_types/contracts/agent-execution-oauth.d.ts +71 -0
- package/dist/_types/contracts/agent-execution-registration.d.ts +240 -0
- package/dist/_types/contracts/agent-execution-selection.d.ts +107 -0
- package/dist/_types/contracts/agent-host-execution.d.ts +706 -0
- package/dist/_types/contracts/agent-host-generic-transport.d.ts +12 -0
- package/dist/_types/contracts/agent-host.d.ts +226 -0
- package/dist/_types/contracts/artifact-discovery.d.ts +242 -0
- package/dist/_types/contracts/artifact.d.ts +188 -0
- package/dist/_types/contracts/audio.d.ts +335 -0
- package/dist/_types/contracts/brief.d.ts +178 -0
- package/dist/_types/contracts/caption-render.d.ts +20 -0
- package/dist/_types/contracts/caption-transcript.d.ts +102 -0
- package/dist/_types/contracts/captions.d.ts +420 -0
- package/dist/_types/contracts/clip-framing.d.ts +14 -0
- package/dist/_types/contracts/clip-transition.d.ts +6 -0
- package/dist/_types/contracts/composition-authoring-guide.d.ts +160 -0
- package/dist/_types/contracts/composition-authoring.d.ts +744 -0
- package/dist/_types/contracts/composition-finding-locality.d.ts +24 -0
- package/dist/_types/contracts/composition-frame-render.d.ts +226 -0
- package/dist/_types/contracts/composition-making.d.ts +390 -0
- package/dist/_types/contracts/composition-observation.d.ts +239 -0
- package/dist/_types/contracts/composition-render-base.d.ts +293 -0
- package/dist/_types/contracts/composition-render-observation.d.ts +278 -0
- package/dist/_types/contracts/composition-render.d.ts +406 -0
- package/dist/_types/contracts/composition-repair.d.ts +451 -0
- package/dist/_types/contracts/composition-source-review.d.ts +1042 -0
- package/dist/_types/contracts/consistency-profile.d.ts +845 -0
- package/dist/_types/contracts/continuity-evaluation.d.ts +48 -0
- package/dist/_types/contracts/delivery-completion.d.ts +210 -0
- package/dist/_types/contracts/delivery-manifest.d.ts +72 -0
- package/dist/_types/contracts/delivery-operations.d.ts +1151 -0
- package/dist/_types/contracts/delivery-output-profile.d.ts +12 -0
- package/dist/_types/contracts/delivery-summary.d.ts +220 -0
- package/dist/_types/contracts/delivery-validation.d.ts +206 -0
- package/dist/_types/contracts/device-render.d.ts +77 -0
- package/dist/_types/contracts/director-proposal.d.ts +1067 -0
- package/dist/_types/contracts/editor-intelligence.d.ts +3374 -0
- package/dist/_types/contracts/exploration-recommendation.d.ts +519 -0
- package/dist/_types/contracts/external-agent-access.d.ts +93 -0
- package/dist/_types/contracts/final-ready.d.ts +301 -0
- package/dist/_types/contracts/final-render-profile.d.ts +59 -0
- package/dist/_types/contracts/final-render.d.ts +2810 -0
- package/dist/_types/contracts/foundation.d.ts +1 -0
- package/dist/_types/contracts/generation-contract.d.ts +268 -0
- package/dist/_types/contracts/generation-cost.d.ts +70 -0
- package/dist/_types/contracts/health.d.ts +6 -0
- package/dist/_types/contracts/human-identity.d.ts +162 -0
- package/dist/_types/contracts/hyperframe-profile.d.ts +5 -0
- package/dist/_types/contracts/ids.d.ts +41 -0
- package/dist/_types/contracts/index.d.ts +126 -0
- package/dist/_types/contracts/interface/common.d.ts +56 -0
- package/dist/_types/contracts/interface/execution-output.d.ts +99 -0
- package/dist/_types/contracts/interface/index.d.ts +7 -0
- package/dist/_types/contracts/interface/media-output.d.ts +90 -0
- package/dist/_types/contracts/interface/operation.d.ts +61 -0
- package/dist/_types/contracts/interface/output.d.ts +15 -0
- package/dist/_types/contracts/interface/production-snapshot.d.ts +654 -0
- package/dist/_types/contracts/interface/query.d.ts +315 -0
- package/dist/_types/contracts/keyframe-generation.d.ts +378 -0
- package/dist/_types/contracts/keyframe-reference.d.ts +31 -0
- package/dist/_types/contracts/keyframe-review.d.ts +753 -0
- package/dist/_types/contracts/lifecycle-event-projections.d.ts +191 -0
- package/dist/_types/contracts/lifecycle-events.d.ts +156 -0
- package/dist/_types/contracts/listening-evidence.d.ts +37 -0
- package/dist/_types/contracts/local-execution/agent-context.d.ts +365 -0
- package/dist/_types/contracts/local-execution/agent-evidence.d.ts +79 -0
- package/dist/_types/contracts/local-execution/agent-grant.d.ts +31 -0
- package/dist/_types/contracts/local-execution/agent-review.d.ts +992 -0
- package/dist/_types/contracts/local-execution/canonical.d.ts +2 -0
- package/dist/_types/contracts/local-execution/common.d.ts +49 -0
- package/dist/_types/contracts/local-execution/completion.d.ts +124 -0
- package/dist/_types/contracts/local-execution/components.d.ts +45 -0
- package/dist/_types/contracts/local-execution/descriptor.d.ts +38 -0
- 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 +102 -0
- package/dist/_types/contracts/local-execution/external-generation.d.ts +199 -0
- package/dist/_types/contracts/local-execution/index.d.ts +37 -0
- package/dist/_types/contracts/local-execution/ipc.d.ts +3730 -0
- 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 +519 -0
- package/dist/_types/contracts/local-execution/local-navigation.d.ts +929 -0
- package/dist/_types/contracts/local-execution/management.d.ts +400 -0
- package/dist/_types/contracts/local-execution/media-recipe.d.ts +207 -0
- 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/offline.d.ts +59 -0
- package/dist/_types/contracts/local-execution/preview.d.ts +243 -0
- 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 +55 -0
- package/dist/_types/contracts/local-execution/whisper.d.ts +24 -0
- package/dist/_types/contracts/local-execution/work.d.ts +149 -0
- package/dist/_types/contracts/local-execution/workspace.d.ts +141 -0
- package/dist/_types/contracts/matrix-parameter-rule.d.ts +23 -0
- package/dist/_types/contracts/media-category.d.ts +11 -0
- package/dist/_types/contracts/media-export.d.ts +23 -0
- package/dist/_types/contracts/media-observation.d.ts +2080 -0
- package/dist/_types/contracts/model-capability-matrix.d.ts +118 -0
- package/dist/_types/contracts/native-tool-authority-failure.d.ts +38 -0
- package/dist/_types/contracts/native-tool-authority.d.ts +110 -0
- package/dist/_types/contracts/native-tool-execution.d.ts +287 -0
- package/dist/_types/contracts/native-tool-gateway.d.ts +41 -0
- package/dist/_types/contracts/native-video-audio.d.ts +62 -0
- package/dist/_types/contracts/navigation-context.d.ts +253 -0
- package/dist/_types/contracts/navigation-groups.d.ts +51 -0
- package/dist/_types/contracts/navigation.d.ts +248 -0
- package/dist/_types/contracts/observation-profile.d.ts +99 -0
- package/dist/_types/contracts/planning-input.d.ts +177 -0
- package/dist/_types/contracts/principal.d.ts +26 -0
- package/dist/_types/contracts/production-creation.d.ts +66 -0
- package/dist/_types/contracts/production-termination.d.ts +51 -0
- package/dist/_types/contracts/production.d.ts +111 -0
- package/dist/_types/contracts/programmatic-composition.d.ts +762 -0
- package/dist/_types/contracts/programmatic-exploration.d.ts +1822 -0
- package/dist/_types/contracts/programmatic-video-review.d.ts +894 -0
- package/dist/_types/contracts/project-library.d.ts +173 -0
- package/dist/_types/contracts/project.d.ts +93 -0
- package/dist/_types/contracts/provider-catalog.d.ts +421 -0
- package/dist/_types/contracts/provider-models.d.ts +3388 -0
- package/dist/_types/contracts/provider.d.ts +207 -0
- package/dist/_types/contracts/reference-preview.d.ts +55 -0
- package/dist/_types/contracts/repair-lifecycle.d.ts +2564 -0
- package/dist/_types/contracts/repair-plan.d.ts +646 -0
- package/dist/_types/contracts/repair-strategy.d.ts +1432 -0
- package/dist/_types/contracts/review-intelligence-evidence.d.ts +136 -0
- package/dist/_types/contracts/review-intelligence-final-output.d.ts +883 -0
- package/dist/_types/contracts/review-intelligence.d.ts +573 -0
- package/dist/_types/contracts/review1-repair-source.d.ts +452 -0
- package/dist/_types/contracts/review1-repair-strategy.d.ts +491 -0
- package/dist/_types/contracts/review1-repair.d.ts +36 -0
- package/dist/_types/contracts/rough-cut-manifest.d.ts +352 -0
- package/dist/_types/contracts/rough-cut-profile.d.ts +46 -0
- package/dist/_types/contracts/rough-cut-review.d.ts +459 -0
- package/dist/_types/contracts/rough-cut.d.ts +1260 -0
- package/dist/_types/contracts/scene-shot-plan.d.ts +882 -0
- package/dist/_types/contracts/sdk-discovery.d.ts +66 -0
- package/dist/_types/contracts/shot-direction.d.ts +113 -0
- package/dist/_types/contracts/shot-preparation-basis.d.ts +356 -0
- package/dist/_types/contracts/shot-preparation.d.ts +2285 -0
- package/dist/_types/contracts/shot-sound-instruction.d.ts +58 -0
- package/dist/_types/contracts/sound-making-plan.d.ts +1586 -0
- package/dist/_types/contracts/source-sound-policy.d.ts +10 -0
- package/dist/_types/contracts/source-workspace.d.ts +62 -0
- package/dist/_types/contracts/speech-cost.d.ts +81 -0
- package/dist/_types/contracts/speech.d.ts +573 -0
- package/dist/_types/contracts/story.d.ts +98 -0
- package/dist/_types/contracts/temporal-evidence-operation.d.ts +380 -0
- package/dist/_types/contracts/temporal-evidence-reference.d.ts +18 -0
- package/dist/_types/contracts/temporal-evidence.d.ts +248 -0
- package/dist/_types/contracts/tenant.d.ts +7 -0
- package/dist/_types/contracts/timeline-audio.d.ts +98 -0
- package/dist/_types/contracts/timeline-graphics.d.ts +80 -0
- package/dist/_types/contracts/timeline-manifest.d.ts +704 -0
- package/dist/_types/contracts/timeline-source-sound.d.ts +353 -0
- package/dist/_types/contracts/timeline-v2.d.ts +1267 -0
- package/dist/_types/contracts/timeline-version-reader.d.ts +2955 -0
- package/dist/_types/contracts/timeline-visual-layers.d.ts +1249 -0
- package/dist/_types/contracts/timeline.d.ts +142 -0
- package/dist/_types/contracts/transcription.d.ts +80 -0
- package/dist/_types/contracts/video-generation.d.ts +676 -0
- package/dist/_types/contracts/video-review.d.ts +1871 -0
- package/dist/_types/contracts/visual-exploration.d.ts +1586 -0
- package/dist/_types/contracts/visual-layer-render.d.ts +2820 -0
- package/dist/_types/contracts/visual-layer.d.ts +112 -0
- package/dist/_types/contracts/visual-sequence.d.ts +143 -0
- package/dist/_types/contracts/workspace.d.ts +32 -0
- package/dist/_types/contracts/writer-proposal.d.ts +268 -0
- package/dist/_types/sdk/errors.d.ts +14 -0
- package/dist/_types/sdk/local-runtime/components.d.ts +2 -0
- package/dist/_types/sdk/local-runtime/device-client.d.ts +187 -0
- package/dist/_types/sdk/local-runtime/library.d.ts +268 -0
- package/dist/_types/sdk/local-runtime/workspace.d.ts +186 -0
- package/dist/_types/sdk/local-runtime-client.d.ts +2616 -0
- package/dist/entry.js +2 -0
- package/dist/local-management.d.ts +1 -0
- package/dist/local-management.js +1 -0
- package/dist/local-navigation.d.ts +1 -0
- package/dist/local-navigation.js +1 -0
- package/dist/native/Bootstrap.ps1 +90 -0
- package/dist/native/JobNative.cs +137 -0
- package/dist/native/JobRunner.cs +381 -0
- package/dist/native/NativeMain.cs +161 -0
- package/dist/native/PipeBridge.cs +260 -0
- package/dist/native/PrivateAccess.cs +152 -0
- package/package.json +27 -3
- package/README.md +0 -3
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** UUID 只做保持类型的大小写归一,HTTP/MCP 可声明同一输出 JSON Schema。 */
|
|
3
|
+
export declare const LocalIdSchema: z.ZodUUID;
|
|
4
|
+
export declare const LocalDigestSchema: z.ZodString;
|
|
5
|
+
export declare const LocalRevisionSchema: z.ZodInt;
|
|
6
|
+
export declare const LocalTimeSchema: z.ZodISODateTime;
|
|
7
|
+
export declare const LocalPackageVersionSchema: z.ZodString;
|
|
8
|
+
export declare const LocalProjectScopeSchema: z.ZodObject<{
|
|
9
|
+
tenantId: z.ZodUUID;
|
|
10
|
+
projectId: z.ZodUUID;
|
|
11
|
+
}, z.core.$strict>;
|
|
12
|
+
export declare const LocalWorkScopeSchema: z.ZodObject<{
|
|
13
|
+
tenantId: z.ZodUUID;
|
|
14
|
+
projectId: z.ZodUUID;
|
|
15
|
+
productionId: z.ZodUUID;
|
|
16
|
+
runtimeJobId: z.ZodUUID;
|
|
17
|
+
}, z.core.$strict>;
|
|
18
|
+
export declare const LocalPlacementPolicySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
19
|
+
mode: z.ZodLiteral<"local-only">;
|
|
20
|
+
deviceId: z.ZodUUID;
|
|
21
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
22
|
+
mode: z.ZodLiteral<"local-preferred">;
|
|
23
|
+
deviceId: z.ZodUUID;
|
|
24
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
25
|
+
mode: z.ZodLiteral<"cloud-only">;
|
|
26
|
+
}, z.core.$strict>], "mode">;
|
|
27
|
+
export declare const LocalPlacementAvailabilitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
28
|
+
status: z.ZodLiteral<"AVAILABLE">;
|
|
29
|
+
deviceId: z.ZodUUID;
|
|
30
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
31
|
+
status: z.ZodLiteral<"UNAVAILABLE">;
|
|
32
|
+
deviceId: z.ZodUUID;
|
|
33
|
+
reason: z.ZodEnum<{
|
|
34
|
+
OFFLINE: "OFFLINE";
|
|
35
|
+
UNQUALIFIED: "UNQUALIFIED";
|
|
36
|
+
BUSY: "BUSY";
|
|
37
|
+
}>;
|
|
38
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
39
|
+
status: z.ZodLiteral<"DENIED">;
|
|
40
|
+
reason: z.ZodEnum<{
|
|
41
|
+
INVALID_INPUT: "INVALID_INPUT";
|
|
42
|
+
FORBIDDEN: "FORBIDDEN";
|
|
43
|
+
APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
|
|
44
|
+
}>;
|
|
45
|
+
}, z.core.$strict>], "status">;
|
|
46
|
+
export type LocalProjectScope = z.infer<typeof LocalProjectScopeSchema>;
|
|
47
|
+
export type LocalWorkScope = z.infer<typeof LocalWorkScopeSchema>;
|
|
48
|
+
export type LocalPlacementPolicy = z.infer<typeof LocalPlacementPolicySchema>;
|
|
49
|
+
export type LocalPlacementAvailability = z.infer<typeof LocalPlacementAvailabilitySchema>;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { LocalDigestSchema, LocalIdSchema } from "./common.js";
|
|
3
|
+
export declare const LocalCompletionSubmissionSchema: z.ZodObject<{
|
|
4
|
+
tenantId: z.ZodUUID;
|
|
5
|
+
projectId: z.ZodUUID;
|
|
6
|
+
productionId: z.ZodUUID;
|
|
7
|
+
runtimeJobId: z.ZodUUID;
|
|
8
|
+
attemptId: typeof LocalIdSchema;
|
|
9
|
+
assignmentRevision: typeof import("./common.js").LocalRevisionSchema;
|
|
10
|
+
workerId: z.ZodString;
|
|
11
|
+
workFingerprint: typeof LocalDigestSchema;
|
|
12
|
+
toolchainFingerprint: typeof LocalDigestSchema;
|
|
13
|
+
requestId: z.ZodUUID;
|
|
14
|
+
outputs: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
15
|
+
role: z.ZodLiteral<"VIDEO">;
|
|
16
|
+
receiptId: z.ZodUUID;
|
|
17
|
+
checksumSha256: z.ZodString;
|
|
18
|
+
byteSize: z.ZodInt;
|
|
19
|
+
contentType: z.ZodLiteral<"video/mp4">;
|
|
20
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
21
|
+
role: z.ZodLiteral<"POSTER">;
|
|
22
|
+
receiptId: z.ZodUUID;
|
|
23
|
+
checksumSha256: z.ZodString;
|
|
24
|
+
byteSize: z.ZodInt;
|
|
25
|
+
contentType: z.ZodLiteral<"image/png">;
|
|
26
|
+
}, z.core.$strict>], "role">>;
|
|
27
|
+
technical: z.ZodObject<{
|
|
28
|
+
contentType: z.ZodLiteral<"video/mp4">;
|
|
29
|
+
checksumSha256: z.ZodString;
|
|
30
|
+
byteSize: z.ZodInt;
|
|
31
|
+
width: z.ZodInt;
|
|
32
|
+
height: z.ZodInt;
|
|
33
|
+
videoCodec: z.ZodEnum<{
|
|
34
|
+
h264: "h264";
|
|
35
|
+
hevc: "hevc";
|
|
36
|
+
}>;
|
|
37
|
+
pixelFormat: z.ZodOptional<z.ZodLiteral<"yuv420p10le">>;
|
|
38
|
+
nativeAudio: z.ZodOptional<z.ZodObject<{
|
|
39
|
+
normalizationVersion: z.ZodLiteral<"VIDEO_AUDIO_PCM_V1">;
|
|
40
|
+
sourceCodec: z.ZodLiteral<"aac">;
|
|
41
|
+
sourceSampleRateHz: z.ZodInt;
|
|
42
|
+
sourceChannels: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
|
|
43
|
+
sourceFrameRateHz: z.ZodUnion<readonly [z.ZodLiteral<24>, z.ZodLiteral<30>]>;
|
|
44
|
+
sourceFrameCount: z.ZodInt;
|
|
45
|
+
sourceStartOffsetMs: z.ZodNumber;
|
|
46
|
+
sourceDeclaredDurationMs: z.ZodNumber;
|
|
47
|
+
alignment: z.ZodLiteral<"TRIM_PAD_PCM_TO_VIDEO_ZERO_V1">;
|
|
48
|
+
media: z.ZodObject<{
|
|
49
|
+
profile: z.ZodLiteral<"PCM_S16LE_48000_NATIVE_VIDEO_V1">;
|
|
50
|
+
audioCodec: z.ZodLiteral<"pcm_s16le">;
|
|
51
|
+
sampleRateHz: z.ZodLiteral<48000>;
|
|
52
|
+
audioChannels: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
|
|
53
|
+
sampleCount: z.ZodInt;
|
|
54
|
+
durationMs: z.ZodNumber;
|
|
55
|
+
}, z.core.$strict>;
|
|
56
|
+
checksumSha256: z.ZodString;
|
|
57
|
+
}, z.core.$strict>>;
|
|
58
|
+
hasAudio: z.ZodBoolean;
|
|
59
|
+
audio: z.ZodOptional<typeof import("../timeline-audio.js").RenderedAudioSchema>;
|
|
60
|
+
durationMs: z.ZodInt;
|
|
61
|
+
frameRate: z.ZodLiteral<30>;
|
|
62
|
+
frameCount: z.ZodInt;
|
|
63
|
+
engineVersion: z.ZodString;
|
|
64
|
+
}, z.core.$strict>;
|
|
65
|
+
}, z.core.$strict>;
|
|
66
|
+
export declare const LocalVerifiedUploadSchema: z.ZodObject<{
|
|
67
|
+
binding: z.ZodObject<{
|
|
68
|
+
tenantId: z.ZodUUID;
|
|
69
|
+
projectId: z.ZodUUID;
|
|
70
|
+
productionId: z.ZodUUID;
|
|
71
|
+
runtimeJobId: z.ZodUUID;
|
|
72
|
+
attemptId: typeof LocalIdSchema;
|
|
73
|
+
assignmentRevision: typeof import("./common.js").LocalRevisionSchema;
|
|
74
|
+
workerId: z.ZodString;
|
|
75
|
+
workFingerprint: typeof LocalDigestSchema;
|
|
76
|
+
toolchainFingerprint: typeof LocalDigestSchema;
|
|
77
|
+
}, z.core.$strict>;
|
|
78
|
+
output: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
79
|
+
role: z.ZodLiteral<"VIDEO">;
|
|
80
|
+
receiptId: z.ZodUUID;
|
|
81
|
+
checksumSha256: z.ZodString;
|
|
82
|
+
byteSize: z.ZodInt;
|
|
83
|
+
contentType: z.ZodLiteral<"video/mp4">;
|
|
84
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
85
|
+
role: z.ZodLiteral<"POSTER">;
|
|
86
|
+
receiptId: z.ZodUUID;
|
|
87
|
+
checksumSha256: z.ZodString;
|
|
88
|
+
byteSize: z.ZodInt;
|
|
89
|
+
contentType: z.ZodLiteral<"image/png">;
|
|
90
|
+
}, z.core.$strict>], "role">;
|
|
91
|
+
verifiedAt: z.ZodISODateTime;
|
|
92
|
+
}, z.core.$strict>;
|
|
93
|
+
/** Only the native owner returns this after atomic acceptance and durable byte validation. */
|
|
94
|
+
export declare const LocalCompletionReceiptSchema: z.ZodObject<{
|
|
95
|
+
tenantId: z.ZodUUID;
|
|
96
|
+
projectId: z.ZodUUID;
|
|
97
|
+
productionId: z.ZodUUID;
|
|
98
|
+
runtimeJobId: z.ZodUUID;
|
|
99
|
+
attemptId: typeof LocalIdSchema;
|
|
100
|
+
assignmentRevision: typeof import("./common.js").LocalRevisionSchema;
|
|
101
|
+
workerId: z.ZodString;
|
|
102
|
+
workFingerprint: typeof LocalDigestSchema;
|
|
103
|
+
toolchainFingerprint: typeof LocalDigestSchema;
|
|
104
|
+
submissionFingerprint: z.ZodOptional<z.ZodString>;
|
|
105
|
+
semanticStatus: z.ZodLiteral<"SUCCESS">;
|
|
106
|
+
requestId: z.ZodUUID;
|
|
107
|
+
renderId: z.ZodUUID;
|
|
108
|
+
operationId: z.core.$ZodBranded<z.ZodString, "OperationId", "out">;
|
|
109
|
+
artifactId: z.ZodUUID;
|
|
110
|
+
videoRepresentationId: z.ZodUUID;
|
|
111
|
+
posterRepresentationId: z.ZodUUID;
|
|
112
|
+
checksumSha256: z.ZodString;
|
|
113
|
+
acceptedAt: z.ZodISODateTime;
|
|
114
|
+
}, z.core.$strict>;
|
|
115
|
+
export declare const GetLocalCompletionReceiptSchema: z.ZodObject<{
|
|
116
|
+
tenantId: z.ZodUUID;
|
|
117
|
+
projectId: z.ZodUUID;
|
|
118
|
+
productionId: z.ZodUUID;
|
|
119
|
+
runtimeJobId: z.ZodUUID;
|
|
120
|
+
requestId: z.ZodUUID;
|
|
121
|
+
}, z.core.$strict>;
|
|
122
|
+
export type LocalCompletionSubmission = z.infer<typeof LocalCompletionSubmissionSchema>;
|
|
123
|
+
export type LocalVerifiedUpload = z.infer<typeof LocalVerifiedUploadSchema>;
|
|
124
|
+
export type LocalCompletionReceipt = z.infer<typeof LocalCompletionReceiptSchema>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** 资源字节沿既有字幕合同固定;纯数据包不能夹带新的执行程序。 */
|
|
3
|
+
export declare const RuntimeCaptionAssets: {
|
|
4
|
+
readonly "NotoSansSC.ttf": "a3041811a78c361b1de50f953c805e0244951c21c5bd412f7232ef0d899af0da";
|
|
5
|
+
readonly "NativeStudioSC-Regular.ttf": "e5a51f41fc1b827da651afee3975e07a182ff4f8e04d9dfc0a3cecd6177a52b6";
|
|
6
|
+
readonly "OFL.txt": "092c580f54ee69841e94731e91f63f5d2d2a793550f4827cec485656e462f1bd";
|
|
7
|
+
};
|
|
8
|
+
export declare const LocalComponentBytesSchema: z.ZodObject<{
|
|
9
|
+
byteSize: z.ZodInt;
|
|
10
|
+
sha512: z.ZodString;
|
|
11
|
+
}, z.core.$strict>;
|
|
12
|
+
/** CLI 携带跨平台 Node 代码,安装时才投影实际主机平台;资源摘要不携带部署 URL。 */
|
|
13
|
+
export declare const LocalRuntimeComponentSchema: z.ZodObject<{
|
|
14
|
+
byteSize: z.ZodInt;
|
|
15
|
+
sha512: z.ZodString;
|
|
16
|
+
protocol: z.ZodLiteral<"NVS_PRODUCT_COMPONENT_V2">;
|
|
17
|
+
version: z.ZodString;
|
|
18
|
+
descriptor: z.ZodObject<{
|
|
19
|
+
version: z.ZodString;
|
|
20
|
+
protocol: z.ZodLiteral<"NVS_RUNTIME_DESCRIPTOR_V1">;
|
|
21
|
+
node: z.ZodObject<{
|
|
22
|
+
major: z.ZodLiteral<24>;
|
|
23
|
+
minMinor: z.ZodLiteral<12>;
|
|
24
|
+
}, z.core.$strict>;
|
|
25
|
+
rendererDigest: z.ZodString;
|
|
26
|
+
ipcProtocol: z.ZodLiteral<"NVS_LOCAL_IPC_V1">;
|
|
27
|
+
workProtocol: z.ZodEnum<{
|
|
28
|
+
NVS_LOCAL_WORK_V1: "NVS_LOCAL_WORK_V1";
|
|
29
|
+
NVS_LOCAL_WORK_V2: "NVS_LOCAL_WORK_V2";
|
|
30
|
+
}>;
|
|
31
|
+
journalSchema: z.ZodLiteral<1>;
|
|
32
|
+
profileDigest: z.ZodString;
|
|
33
|
+
compatibleRenderers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
34
|
+
rendererDigest: z.ZodString;
|
|
35
|
+
profileDigest: z.ZodString;
|
|
36
|
+
}, z.core.$strict>>>;
|
|
37
|
+
}, z.core.$strict>;
|
|
38
|
+
resources: z.ZodObject<{
|
|
39
|
+
captions: z.ZodObject<{
|
|
40
|
+
byteSize: z.ZodInt;
|
|
41
|
+
sha512: z.ZodString;
|
|
42
|
+
}, z.core.$strict>;
|
|
43
|
+
}, z.core.$strict>;
|
|
44
|
+
}, z.core.$strict>;
|
|
45
|
+
export type LocalRuntimeComponent = z.infer<typeof LocalRuntimeComponentSchema>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** 代码身份和下载字节身份独立于安装来源,供 CLI、桌面和同一安装 Owner 复用。 */
|
|
3
|
+
export declare const LocalRuntimeDescriptorSchema: z.ZodObject<{
|
|
4
|
+
protocol: z.ZodLiteral<"NVS_RUNTIME_DESCRIPTOR_V1">;
|
|
5
|
+
version: z.ZodString;
|
|
6
|
+
node: z.ZodObject<{
|
|
7
|
+
major: z.ZodLiteral<24>;
|
|
8
|
+
minMinor: z.ZodLiteral<12>;
|
|
9
|
+
}, z.core.$strict>;
|
|
10
|
+
platform: z.ZodObject<{
|
|
11
|
+
os: z.ZodEnum<{
|
|
12
|
+
darwin: "darwin";
|
|
13
|
+
linux: "linux";
|
|
14
|
+
win32: "win32";
|
|
15
|
+
}>;
|
|
16
|
+
architecture: z.ZodEnum<{
|
|
17
|
+
x64: "x64";
|
|
18
|
+
arm64: "arm64";
|
|
19
|
+
}>;
|
|
20
|
+
}, z.core.$strict>;
|
|
21
|
+
ipcProtocol: z.ZodLiteral<"NVS_LOCAL_IPC_V1">;
|
|
22
|
+
workProtocol: z.ZodEnum<{
|
|
23
|
+
NVS_LOCAL_WORK_V1: "NVS_LOCAL_WORK_V1";
|
|
24
|
+
NVS_LOCAL_WORK_V2: "NVS_LOCAL_WORK_V2";
|
|
25
|
+
}>;
|
|
26
|
+
journalSchema: z.ZodLiteral<1>;
|
|
27
|
+
rendererDigest: z.ZodString;
|
|
28
|
+
profileDigest: z.ZodString;
|
|
29
|
+
compatibleRenderers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
30
|
+
rendererDigest: z.ZodString;
|
|
31
|
+
profileDigest: z.ZodString;
|
|
32
|
+
}, z.core.$strict>>>;
|
|
33
|
+
}, z.core.$strict>;
|
|
34
|
+
export declare const LocalReleaseAssetSchema: z.ZodObject<{
|
|
35
|
+
url: z.ZodString;
|
|
36
|
+
byteSize: z.ZodInt;
|
|
37
|
+
sha512: z.ZodString;
|
|
38
|
+
}, z.core.$strict>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** 当前设备身份属于工作空间,没有项目授权或项目清单字段。 */
|
|
3
|
+
export declare const WorkspaceDeviceAuthoritySchema: z.ZodObject<{
|
|
4
|
+
authority: z.ZodLiteral<"WORKSPACE_DEVICE_V1">;
|
|
5
|
+
deviceId: z.ZodUUID;
|
|
6
|
+
deviceRevision: z.ZodInt;
|
|
7
|
+
}, z.core.$strict>;
|
|
8
|
+
export declare const LocalDeviceAuthoritySchema: z.ZodObject<{
|
|
9
|
+
authority: z.ZodLiteral<"WORKSPACE_DEVICE_V1">;
|
|
10
|
+
deviceId: z.ZodUUID;
|
|
11
|
+
deviceRevision: z.ZodInt;
|
|
12
|
+
}, z.core.$strict>;
|
|
13
|
+
export type LocalDeviceAuthority = z.infer<typeof LocalDeviceAuthoritySchema>;
|
|
14
|
+
/** 原生租约仅接受工作空间设备或服务器,不读取旧项目授权身份。 */
|
|
15
|
+
export declare const LocalDeviceExecutionTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
16
|
+
authority: z.ZodLiteral<"WORKSPACE_DEVICE_V1">;
|
|
17
|
+
deviceId: z.ZodUUID;
|
|
18
|
+
deviceRevision: z.ZodInt;
|
|
19
|
+
kind: z.ZodLiteral<"DEVICE">;
|
|
20
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
21
|
+
kind: z.ZodLiteral<"SERVER">;
|
|
22
|
+
}, z.core.$strict>], "kind">;
|
|
23
|
+
/** 设备报告额外绑定真实公钥摘要;工作及输出仍保留各自项目上下文。 */
|
|
24
|
+
export declare const TenantDeviceTargetSchema: z.ZodObject<{
|
|
25
|
+
authority: z.ZodLiteral<"WORKSPACE_DEVICE_V1">;
|
|
26
|
+
deviceId: z.ZodUUID;
|
|
27
|
+
deviceRevision: z.ZodInt;
|
|
28
|
+
keyFingerprint: z.ZodString;
|
|
29
|
+
}, z.core.$strict>;
|
|
30
|
+
/** 工作与租约绑定同一设备修订;项目只属于业务上下文。 */
|
|
31
|
+
export declare function sameDeviceAuthority(a: LocalDeviceAuthority, b: LocalDeviceAuthority): boolean;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** 工作空间设备清单只读取登记与连接事实,不要求项目或赋予任务执行资格。 */
|
|
3
|
+
export declare const WorkspaceDeviceListInputSchema: z.ZodObject<{
|
|
4
|
+
tenantId: z.ZodUUID;
|
|
5
|
+
deviceId: z.ZodOptional<z.ZodUUID>;
|
|
6
|
+
after: z.ZodOptional<z.ZodUUID>;
|
|
7
|
+
limit: z.ZodDefault<z.ZodInt>;
|
|
8
|
+
}, z.core.$strict>;
|
|
9
|
+
/** 连接状态来自同次数据库快照;撤销、所有者缺失和未证明优先于心跳。 */
|
|
10
|
+
export declare const WorkspaceDeviceInventoryItemSchema: z.ZodObject<{
|
|
11
|
+
deviceId: z.ZodUUID;
|
|
12
|
+
label: z.ZodString;
|
|
13
|
+
platform: z.ZodObject<{
|
|
14
|
+
os: z.ZodEnum<{
|
|
15
|
+
darwin: "darwin";
|
|
16
|
+
linux: "linux";
|
|
17
|
+
win32: "win32";
|
|
18
|
+
}>;
|
|
19
|
+
architecture: z.ZodEnum<{
|
|
20
|
+
x64: "x64";
|
|
21
|
+
arm64: "arm64";
|
|
22
|
+
}>;
|
|
23
|
+
}, z.core.$strict>;
|
|
24
|
+
runtimeVersion: z.ZodNullable<z.ZodString>;
|
|
25
|
+
runtimeVersionObservedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
26
|
+
revision: z.ZodInt;
|
|
27
|
+
createdAt: z.ZodISODateTime;
|
|
28
|
+
verifiedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
29
|
+
revokedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
30
|
+
lastSeenAt: z.ZodNullable<z.ZodISODateTime>;
|
|
31
|
+
connection: z.ZodEnum<{
|
|
32
|
+
REVOKED: "REVOKED";
|
|
33
|
+
UNVERIFIED: "UNVERIFIED";
|
|
34
|
+
OWNER_UNAVAILABLE: "OWNER_UNAVAILABLE";
|
|
35
|
+
CONNECTED: "CONNECTED";
|
|
36
|
+
DISCONNECTED: "DISCONNECTED";
|
|
37
|
+
}>;
|
|
38
|
+
}, z.core.$strict>;
|
|
39
|
+
/** 有界清单不暴露公钥、登记者身份或会话凭据。 */
|
|
40
|
+
export declare const WorkspaceDeviceListSchema: z.ZodObject<{
|
|
41
|
+
tenantId: z.ZodUUID;
|
|
42
|
+
observedAt: z.ZodISODateTime;
|
|
43
|
+
items: z.ZodArray<z.ZodObject<{
|
|
44
|
+
deviceId: z.ZodUUID;
|
|
45
|
+
label: z.ZodString;
|
|
46
|
+
platform: z.ZodObject<{
|
|
47
|
+
os: z.ZodEnum<{
|
|
48
|
+
darwin: "darwin";
|
|
49
|
+
linux: "linux";
|
|
50
|
+
win32: "win32";
|
|
51
|
+
}>;
|
|
52
|
+
architecture: z.ZodEnum<{
|
|
53
|
+
x64: "x64";
|
|
54
|
+
arm64: "arm64";
|
|
55
|
+
}>;
|
|
56
|
+
}, z.core.$strict>;
|
|
57
|
+
runtimeVersion: z.ZodNullable<z.ZodString>;
|
|
58
|
+
runtimeVersionObservedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
59
|
+
revision: z.ZodInt;
|
|
60
|
+
createdAt: z.ZodISODateTime;
|
|
61
|
+
verifiedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
62
|
+
revokedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
63
|
+
lastSeenAt: z.ZodNullable<z.ZodISODateTime>;
|
|
64
|
+
connection: z.ZodEnum<{
|
|
65
|
+
REVOKED: "REVOKED";
|
|
66
|
+
UNVERIFIED: "UNVERIFIED";
|
|
67
|
+
OWNER_UNAVAILABLE: "OWNER_UNAVAILABLE";
|
|
68
|
+
CONNECTED: "CONNECTED";
|
|
69
|
+
DISCONNECTED: "DISCONNECTED";
|
|
70
|
+
}>;
|
|
71
|
+
}, z.core.$strict>>;
|
|
72
|
+
nextCursor: z.ZodNullable<z.ZodUUID>;
|
|
73
|
+
}, z.core.$strict>;
|
|
74
|
+
export type WorkspaceDeviceListInput = z.infer<typeof WorkspaceDeviceListInputSchema>;
|
|
75
|
+
export type WorkspaceDeviceInventoryItem = z.infer<typeof WorkspaceDeviceInventoryItemSchema>;
|
|
76
|
+
export type WorkspaceDeviceList = z.infer<typeof WorkspaceDeviceListSchema>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** 连接与调度按工作空间设备身份授权,不携带项目名单。 */
|
|
3
|
+
export declare const LocalWorkspaceDeviceSchema: z.ZodObject<{
|
|
4
|
+
tenantId: z.ZodUUID;
|
|
5
|
+
deviceId: z.ZodUUID;
|
|
6
|
+
}, z.core.$strict>;
|
|
7
|
+
/** 服务端分页轮转真实待领工作;项目只作为随后 claim 的业务上下文。 */
|
|
8
|
+
export declare const LocalDeviceWorkScopesSchema: z.ZodArray<z.ZodObject<{
|
|
9
|
+
tenantId: z.ZodUUID;
|
|
10
|
+
projectId: z.ZodUUID;
|
|
11
|
+
}, z.core.$strict>>;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const LocalDevicePlatformSchema: z.ZodObject<{
|
|
3
|
+
os: z.ZodEnum<{
|
|
4
|
+
darwin: "darwin";
|
|
5
|
+
linux: "linux";
|
|
6
|
+
win32: "win32";
|
|
7
|
+
}>;
|
|
8
|
+
architecture: z.ZodEnum<{
|
|
9
|
+
x64: "x64";
|
|
10
|
+
arm64: "arm64";
|
|
11
|
+
}>;
|
|
12
|
+
}, z.core.$strict>;
|
|
13
|
+
export declare const EnrollLocalDeviceSchema: z.ZodObject<{
|
|
14
|
+
tenantId: z.ZodUUID;
|
|
15
|
+
requestId: z.ZodUUID;
|
|
16
|
+
label: z.ZodString;
|
|
17
|
+
platform: z.ZodObject<{
|
|
18
|
+
os: z.ZodEnum<{
|
|
19
|
+
darwin: "darwin";
|
|
20
|
+
linux: "linux";
|
|
21
|
+
win32: "win32";
|
|
22
|
+
}>;
|
|
23
|
+
architecture: z.ZodEnum<{
|
|
24
|
+
x64: "x64";
|
|
25
|
+
arm64: "arm64";
|
|
26
|
+
}>;
|
|
27
|
+
}, z.core.$strict>;
|
|
28
|
+
runtimeVersion: z.ZodString;
|
|
29
|
+
publicKey: z.ZodObject<{
|
|
30
|
+
kty: z.ZodLiteral<"EC">;
|
|
31
|
+
crv: z.ZodLiteral<"P-256">;
|
|
32
|
+
x: z.ZodString;
|
|
33
|
+
y: z.ZodString;
|
|
34
|
+
}, z.core.$strict>;
|
|
35
|
+
}, z.core.$strict>;
|
|
36
|
+
export declare const LocalDeviceViewSchema: z.ZodObject<{
|
|
37
|
+
tenantId: z.ZodUUID;
|
|
38
|
+
publicKey: z.ZodObject<{
|
|
39
|
+
kty: z.ZodLiteral<"EC">;
|
|
40
|
+
crv: z.ZodLiteral<"P-256">;
|
|
41
|
+
x: z.ZodString;
|
|
42
|
+
y: z.ZodString;
|
|
43
|
+
}, z.core.$strict>;
|
|
44
|
+
label: z.ZodString;
|
|
45
|
+
platform: z.ZodObject<{
|
|
46
|
+
os: z.ZodEnum<{
|
|
47
|
+
darwin: "darwin";
|
|
48
|
+
linux: "linux";
|
|
49
|
+
win32: "win32";
|
|
50
|
+
}>;
|
|
51
|
+
architecture: z.ZodEnum<{
|
|
52
|
+
x64: "x64";
|
|
53
|
+
arm64: "arm64";
|
|
54
|
+
}>;
|
|
55
|
+
}, z.core.$strict>;
|
|
56
|
+
runtimeVersion: z.ZodString;
|
|
57
|
+
deviceId: z.ZodUUID;
|
|
58
|
+
revision: z.ZodInt;
|
|
59
|
+
enrolledByPrincipalId: z.ZodUUID;
|
|
60
|
+
createdAt: z.ZodISODateTime;
|
|
61
|
+
verifiedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
62
|
+
revokedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
63
|
+
}, z.core.$strict>;
|
|
64
|
+
export declare const LocalDeviceChallengeSchema: z.ZodObject<{
|
|
65
|
+
tenantId: z.ZodUUID;
|
|
66
|
+
deviceId: z.ZodUUID;
|
|
67
|
+
deviceRevision: z.ZodInt;
|
|
68
|
+
challengeId: z.ZodUUID;
|
|
69
|
+
audience: z.ZodString;
|
|
70
|
+
issuedAt: z.ZodISODateTime;
|
|
71
|
+
expiresAt: z.ZodISODateTime;
|
|
72
|
+
}, z.core.$strict>;
|
|
73
|
+
export declare const LocalDeviceProofClaimsSchema: z.ZodObject<{
|
|
74
|
+
protocol: z.ZodLiteral<"NVS_LOCAL_DEVICE_PROOF_V1">;
|
|
75
|
+
tenantId: z.ZodUUID;
|
|
76
|
+
deviceId: z.ZodUUID;
|
|
77
|
+
deviceRevision: z.ZodInt;
|
|
78
|
+
challengeId: z.ZodUUID;
|
|
79
|
+
audience: z.ZodString;
|
|
80
|
+
jti: z.ZodUUID;
|
|
81
|
+
iat: z.ZodInt;
|
|
82
|
+
exp: z.ZodInt;
|
|
83
|
+
}, z.core.$strict>;
|
|
84
|
+
export declare const ProveLocalDeviceSchema: z.ZodObject<{
|
|
85
|
+
tenantId: z.ZodUUID;
|
|
86
|
+
deviceId: z.ZodUUID;
|
|
87
|
+
deviceRevision: z.ZodInt;
|
|
88
|
+
challengeId: z.ZodUUID;
|
|
89
|
+
assertion: z.ZodString;
|
|
90
|
+
}, z.core.$strict>;
|
|
91
|
+
/** 工作空间设备只能按当前修订撤销整机身份,不存在项目设备授予。 */
|
|
92
|
+
export declare const RevokeLocalDeviceSchema: z.ZodObject<{
|
|
93
|
+
tenantId: z.ZodUUID;
|
|
94
|
+
deviceId: z.ZodUUID;
|
|
95
|
+
requestId: z.ZodUUID;
|
|
96
|
+
expectedRevision: z.ZodInt;
|
|
97
|
+
}, z.core.$strict>;
|
|
98
|
+
export type LocalDeviceView = z.infer<typeof LocalDeviceViewSchema>;
|
|
99
|
+
export type EnrollLocalDevice = z.infer<typeof EnrollLocalDeviceSchema>;
|
|
100
|
+
export type LocalDeviceChallenge = z.infer<typeof LocalDeviceChallengeSchema>;
|
|
101
|
+
export type LocalDeviceProofClaims = z.infer<typeof LocalDeviceProofClaimsSchema>;
|
|
102
|
+
export type RevokeLocalDevice = z.infer<typeof RevokeLocalDeviceSchema>;
|