@nativestudio/cli 0.3.0-rc.1 → 0.3.0-rc.14
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 +37 -8
- package/LICENSE +201 -21
- package/components/runtime.json +33 -4
- package/components/runtime.tgz +0 -0
- package/dist/_chunks/chunk-2AI3WF2O.js +1 -0
- package/dist/_chunks/{chunk-G42IS5JF.js → chunk-3AVC742O.js} +1 -1
- package/dist/_chunks/chunk-5DY7LSZZ.js +1 -0
- package/dist/_chunks/{chunk-25EDDZQA.js → chunk-6LU6GJKW.js} +1 -1
- package/dist/_chunks/chunk-6LY4JYSG.js +1 -0
- package/dist/_chunks/chunk-6UYY5KHI.js +1 -0
- package/dist/_chunks/chunk-77IAHNM2.js +1 -0
- package/dist/_chunks/chunk-C62JAWRQ.js +1 -0
- package/dist/_chunks/{chunk-MSOMVWKN.js → chunk-FU3524Z6.js} +1 -1
- package/dist/_chunks/chunk-HTUTYIRU.js +1 -0
- package/dist/_chunks/chunk-HY7NXJYX.js +1 -0
- package/dist/_chunks/chunk-KB2GVAN7.js +1 -0
- package/dist/_chunks/chunk-PDQYFIQQ.js +1 -0
- package/dist/_chunks/chunk-RDIMORUT.js +1 -0
- package/dist/_chunks/chunk-RK2P3UVF.js +1 -0
- package/dist/_chunks/chunk-ROBBF33U.js +1 -0
- package/dist/_chunks/chunk-S74X4KIC.js +1 -0
- package/dist/_chunks/chunk-SV3NF7GO.js +1 -0
- package/dist/_chunks/chunk-TLPI6P7L.js +1 -0
- package/dist/_chunks/chunk-U7ECMITP.js +1 -0
- package/dist/_chunks/chunk-VD3OQ743.js +1 -0
- package/dist/_chunks/chunk-VKLS4QK5.js +1 -0
- package/dist/_chunks/chunk-W6C63ZN7.js +1 -0
- package/dist/_chunks/chunk-ZRSYOFMX.js +1 -0
- package/dist/_chunks/connect-6UH7ZFAC.js +1 -0
- package/dist/_chunks/device-management-H3NIDIPY.js +1 -0
- package/dist/_chunks/device-preflight-LHFLPVAB.js +1 -0
- package/dist/_chunks/devices-inventory-I2E3Q4DA.js +1 -0
- package/dist/_chunks/devices-main-VV2VYU4T.js +1 -0
- package/dist/_chunks/{files-TBJVDQWU.js → files-TTIQ7LYJ.js} +1 -1
- package/dist/_chunks/host-main-3JFGVU5P.js +1 -0
- package/dist/_chunks/http-profile-NIQDCFPU.js +1 -0
- package/dist/_chunks/library-main-CTBW7DAI.js +1 -0
- package/dist/_chunks/local-main-227MNGEC.js +1 -0
- package/dist/_chunks/local-mcp-XB6E3V2W.js +1 -0
- package/dist/_chunks/main-W6NNZFLK.js +2 -0
- package/dist/_chunks/mcp-EXQ5UAHB.js +1 -0
- package/dist/_chunks/oauth-HC6TI7HB.js +1 -0
- package/dist/_chunks/render-main-VTM6WGFP.js +1 -0
- package/dist/_chunks/source-import-KKV2UWJO.js +1 -0
- package/dist/_chunks/src-OIY5TBQT.js +1 -0
- package/dist/_chunks/{stdio-main-JEADWO7U.js → stdio-main-Y7N4NVKU.js} +1 -1
- package/dist/_chunks/workspace-main-Y7ZVBRJJ.js +1 -0
- package/dist/_types/cli/local/desktop-contract.d.ts +2027 -1
- package/dist/_types/cli/local/desktop-device-contract.d.ts +792 -0
- package/dist/_types/cli/local/desktop-device-navigation.d.ts +3 -0
- package/dist/_types/cli/local/desktop-device-owner.d.ts +270 -0
- package/dist/_types/cli/local/desktop-device-state.d.ts +449 -0
- package/dist/_types/cli/local/desktop-library.d.ts +853 -0
- package/dist/_types/cli/local/desktop-owner.d.ts +784 -1
- package/dist/_types/cli/local/ledger.d.ts +74 -20
- package/dist/_types/cli/local/manager.d.ts +1255 -49
- package/dist/_types/cli/local/mcp-tools.d.ts +296 -54
- package/dist/_types/cli/local/releases.d.ts +30 -7
- package/dist/_types/cli/local-management.d.ts +8 -0
- package/dist/_types/cli/local-navigation.d.ts +1 -0
- package/dist/_types/contracts/artifact-discovery.d.ts +136 -4
- package/dist/_types/contracts/audio.d.ts +166 -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/consistency-profile.d.ts +102 -6
- package/dist/_types/contracts/continuity-evaluation.d.ts +1 -1
- package/dist/_types/contracts/delivery-manifest.d.ts +25 -11729
- package/dist/_types/contracts/delivery-operations.d.ts +201 -3909
- 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 +79 -0
- package/dist/_types/contracts/editor-intelligence.d.ts +392 -2531
- package/dist/_types/contracts/exploration-recommendation.d.ts +263 -11607
- package/dist/_types/contracts/external-agent-access.d.ts +4 -6
- package/dist/_types/contracts/final-ready.d.ts +22 -22
- package/dist/_types/contracts/final-render.d.ts +1742 -6949
- package/dist/_types/contracts/human-identity.d.ts +13 -0
- package/dist/_types/contracts/human-links.d.ts +58 -0
- package/dist/_types/contracts/index.d.ts +10 -0
- package/dist/_types/contracts/interface/media-output.d.ts +118 -0
- package/dist/_types/contracts/interface/operation.d.ts +30 -0
- package/dist/_types/contracts/interface/production-snapshot.d.ts +75 -193
- package/dist/_types/contracts/interface/query.d.ts +60 -0
- package/dist/_types/contracts/keyframe-generation.d.ts +29 -0
- package/dist/_types/contracts/local-execution/agent-context.d.ts +385 -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 +522 -64
- package/dist/_types/contracts/local-execution/audio-profile.d.ts +6 -0
- 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/components.d.ts +45 -0
- package/dist/_types/contracts/local-execution/cpu-preparation.d.ts +46 -0
- package/dist/_types/contracts/local-execution/cpu-resources.d.ts +55 -0
- package/dist/_types/contracts/local-execution/cpu-speech-job.d.ts +70 -0
- package/dist/_types/contracts/local-execution/cpu-speech.d.ts +161 -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 +22 -54
- package/dist/_types/contracts/local-execution/external-generation.d.ts +199 -0
- package/dist/_types/contracts/local-execution/index.d.ts +32 -0
- package/dist/_types/contracts/local-execution/ipc.d.ts +2774 -230
- package/dist/_types/contracts/local-execution/library-command.d.ts +620 -0
- package/dist/_types/contracts/local-execution/library-result.d.ts +424 -0
- package/dist/_types/contracts/local-execution/library.d.ts +873 -0
- package/dist/_types/contracts/local-execution/lifecycle.d.ts +289 -47
- package/dist/_types/contracts/local-execution/local-navigation.d.ts +285 -65
- package/dist/_types/contracts/local-execution/management.d.ts +404 -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 +176 -3561
- package/dist/_types/contracts/local-execution/processor-capability.d.ts +41 -0
- package/dist/_types/contracts/local-execution/processor-direct.d.ts +290 -0
- package/dist/_types/contracts/local-execution/processor-recipes.d.ts +1165 -0
- package/dist/_types/contracts/local-execution/processor-toolchain.d.ts +47 -0
- package/dist/_types/contracts/local-execution/processor.d.ts +6354 -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 +71 -5
- package/dist/_types/contracts/local-execution/whisper.d.ts +24 -0
- package/dist/_types/contracts/local-execution/work.d.ts +124 -3402
- package/dist/_types/contracts/local-execution/workspace.d.ts +141 -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/native-speech-model.d.ts +53 -0
- package/dist/_types/contracts/native-speech-options.d.ts +25 -0
- package/dist/_types/contracts/navigation-context.d.ts +2 -2
- package/dist/_types/contracts/navigation-groups.d.ts +1 -1
- package/dist/_types/contracts/navigation.d.ts +60 -20
- package/dist/_types/contracts/observation-profile.d.ts +3 -3
- package/dist/_types/contracts/production-creation.d.ts +30 -0
- package/dist/_types/contracts/production.d.ts +30 -0
- package/dist/_types/contracts/programmatic-composition.d.ts +24 -24
- package/dist/_types/contracts/programmatic-exploration.d.ts +348 -5985
- package/dist/_types/contracts/project-library.d.ts +30 -0
- package/dist/_types/contracts/project.d.ts +30 -0
- package/dist/_types/contracts/provider-catalog.d.ts +3 -3
- package/dist/_types/contracts/provider-models.d.ts +209 -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 +164 -4479
- package/dist/_types/contracts/review-intelligence-final-output.d.ts +417 -8149
- package/dist/_types/contracts/review-intelligence.d.ts +452 -11420
- package/dist/_types/contracts/rough-cut-manifest.d.ts +27 -7
- package/dist/_types/contracts/rough-cut-profile.d.ts +12 -3
- package/dist/_types/contracts/rough-cut-review.d.ts +144 -12495
- package/dist/_types/contracts/rough-cut.d.ts +1170 -5673
- package/dist/_types/contracts/shot-preparation-basis.d.ts +2 -2
- package/dist/_types/contracts/shot-preparation.d.ts +4 -4
- package/dist/_types/contracts/sound-making-plan.d.ts +210 -2
- package/dist/_types/contracts/speech-cost.d.ts +96 -0
- package/dist/_types/contracts/speech-parameters.d.ts +39 -0
- package/dist/_types/contracts/speech.d.ts +602 -22
- package/dist/_types/contracts/temporal-evidence-operation.d.ts +1 -0
- package/dist/_types/contracts/timeline-audio.d.ts +20 -4
- package/dist/_types/contracts/timeline-manifest.d.ts +40 -8
- package/dist/_types/contracts/timeline-source-sound.d.ts +42 -4
- package/dist/_types/contracts/timeline-v2.d.ts +124 -16
- package/dist/_types/contracts/timeline-version-reader.d.ts +288 -40
- package/dist/_types/contracts/timeline-visual-layers.d.ts +124 -16
- 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-exploration.d.ts +1 -1
- package/dist/_types/contracts/visual-layer-render.d.ts +298 -47
- package/dist/_types/contracts/visual-sequence.d.ts +22 -0
- package/dist/_types/contracts/voice-consistency.d.ts +183 -0
- package/dist/_types/contracts/voice-profile/contracts.d.ts +821 -0
- package/dist/_types/contracts/voice-profile/identity.d.ts +27 -0
- package/dist/_types/contracts/voice-profile/interface.d.ts +89 -0
- package/dist/_types/contracts/voice-profile/reference.d.ts +106 -0
- package/dist/_types/contracts/voice-review.d.ts +1194 -0
- package/dist/_types/contracts/workspace.d.ts +62 -0
- package/dist/_types/sdk/errors.d.ts +8 -3
- package/dist/_types/sdk/local-runtime/components.d.ts +2 -0
- package/dist/_types/sdk/local-runtime/device-client.d.ts +180 -18
- 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 +1917 -92
- package/dist/entry.js +1 -1
- package/dist/local-management.js +1 -1
- package/dist/local-navigation.js +1 -1
- package/dist/native/JobNative.cs +10 -0
- package/dist/native/JobRunner.cs +24 -3
- package/dist/native/NativeMain.cs +15 -0
- package/package.json +2 -8
- package/README.md +0 -78
- package/dist/_chunks/chunk-6NVIN2NI.js +0 -1
- package/dist/_chunks/chunk-E57YVMQ4.js +0 -1
- package/dist/_chunks/chunk-EAZKDCLD.js +0 -1
- package/dist/_chunks/chunk-GIEYSDCG.js +0 -1
- package/dist/_chunks/chunk-GJ7BZJLW.js +0 -1
- package/dist/_chunks/chunk-HLKERZIE.js +0 -1
- package/dist/_chunks/chunk-QC7RLTGU.js +0 -1
- package/dist/_chunks/chunk-RUMDDTON.js +0 -1
- package/dist/_chunks/chunk-U2UKGYGF.js +0 -1
- package/dist/_chunks/chunk-VPYAXWXY.js +0 -1
- package/dist/_chunks/local-main-SOERK22D.js +0 -1
- package/dist/_chunks/local-mcp-JLPXXIDW.js +0 -1
- package/dist/_chunks/main-4SNF5EKE.js +0 -2
- package/dist/_chunks/mcp-EIMXNRH3.js +0 -1
- package/dist/_chunks/oauth-257CEUQH.js +0 -1
- package/dist/_chunks/project-connect-6MH2QG6G.js +0 -1
- package/dist/_chunks/src-7F6ZEU3U.js +0 -1
|
@@ -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
|
+
arm64: "arm64";
|
|
21
|
+
x64: "x64";
|
|
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
|
+
arm64: "arm64";
|
|
54
|
+
x64: "x64";
|
|
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>>;
|
|
@@ -6,13 +6,13 @@ export declare const LocalDevicePlatformSchema: z.ZodObject<{
|
|
|
6
6
|
win32: "win32";
|
|
7
7
|
}>;
|
|
8
8
|
architecture: z.ZodEnum<{
|
|
9
|
-
x64: "x64";
|
|
10
9
|
arm64: "arm64";
|
|
10
|
+
x64: "x64";
|
|
11
11
|
}>;
|
|
12
12
|
}, z.core.$strict>;
|
|
13
13
|
export declare const EnrollLocalDeviceSchema: z.ZodObject<{
|
|
14
|
-
tenantId: z.
|
|
15
|
-
requestId: z.
|
|
14
|
+
tenantId: z.ZodUUID;
|
|
15
|
+
requestId: z.ZodUUID;
|
|
16
16
|
label: z.ZodString;
|
|
17
17
|
platform: z.ZodObject<{
|
|
18
18
|
os: z.ZodEnum<{
|
|
@@ -21,8 +21,8 @@ export declare const EnrollLocalDeviceSchema: z.ZodObject<{
|
|
|
21
21
|
win32: "win32";
|
|
22
22
|
}>;
|
|
23
23
|
architecture: z.ZodEnum<{
|
|
24
|
-
x64: "x64";
|
|
25
24
|
arm64: "arm64";
|
|
25
|
+
x64: "x64";
|
|
26
26
|
}>;
|
|
27
27
|
}, z.core.$strict>;
|
|
28
28
|
runtimeVersion: z.ZodString;
|
|
@@ -34,7 +34,7 @@ export declare const EnrollLocalDeviceSchema: z.ZodObject<{
|
|
|
34
34
|
}, z.core.$strict>;
|
|
35
35
|
}, z.core.$strict>;
|
|
36
36
|
export declare const LocalDeviceViewSchema: z.ZodObject<{
|
|
37
|
-
tenantId: z.
|
|
37
|
+
tenantId: z.ZodUUID;
|
|
38
38
|
publicKey: z.ZodObject<{
|
|
39
39
|
kty: z.ZodLiteral<"EC">;
|
|
40
40
|
crv: z.ZodLiteral<"P-256">;
|
|
@@ -49,86 +49,54 @@ export declare const LocalDeviceViewSchema: z.ZodObject<{
|
|
|
49
49
|
win32: "win32";
|
|
50
50
|
}>;
|
|
51
51
|
architecture: z.ZodEnum<{
|
|
52
|
-
x64: "x64";
|
|
53
52
|
arm64: "arm64";
|
|
53
|
+
x64: "x64";
|
|
54
54
|
}>;
|
|
55
55
|
}, z.core.$strict>;
|
|
56
56
|
runtimeVersion: z.ZodString;
|
|
57
|
-
deviceId: z.
|
|
57
|
+
deviceId: z.ZodUUID;
|
|
58
58
|
revision: z.ZodInt;
|
|
59
|
-
enrolledByPrincipalId: z.
|
|
59
|
+
enrolledByPrincipalId: z.ZodUUID;
|
|
60
60
|
createdAt: z.ZodISODateTime;
|
|
61
61
|
verifiedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
62
62
|
revokedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
63
63
|
}, z.core.$strict>;
|
|
64
64
|
export declare const LocalDeviceChallengeSchema: z.ZodObject<{
|
|
65
|
-
tenantId: z.
|
|
66
|
-
deviceId: z.
|
|
65
|
+
tenantId: z.ZodUUID;
|
|
66
|
+
deviceId: z.ZodUUID;
|
|
67
67
|
deviceRevision: z.ZodInt;
|
|
68
|
-
challengeId: z.
|
|
68
|
+
challengeId: z.ZodUUID;
|
|
69
69
|
audience: z.ZodString;
|
|
70
70
|
issuedAt: z.ZodISODateTime;
|
|
71
71
|
expiresAt: z.ZodISODateTime;
|
|
72
72
|
}, z.core.$strict>;
|
|
73
73
|
export declare const LocalDeviceProofClaimsSchema: z.ZodObject<{
|
|
74
74
|
protocol: z.ZodLiteral<"NVS_LOCAL_DEVICE_PROOF_V1">;
|
|
75
|
-
tenantId: z.
|
|
76
|
-
deviceId: z.
|
|
75
|
+
tenantId: z.ZodUUID;
|
|
76
|
+
deviceId: z.ZodUUID;
|
|
77
77
|
deviceRevision: z.ZodInt;
|
|
78
|
-
challengeId: z.
|
|
78
|
+
challengeId: z.ZodUUID;
|
|
79
79
|
audience: z.ZodString;
|
|
80
|
-
jti: z.
|
|
80
|
+
jti: z.ZodUUID;
|
|
81
81
|
iat: z.ZodInt;
|
|
82
82
|
exp: z.ZodInt;
|
|
83
83
|
}, z.core.$strict>;
|
|
84
84
|
export declare const ProveLocalDeviceSchema: z.ZodObject<{
|
|
85
|
-
tenantId: z.
|
|
86
|
-
deviceId: z.
|
|
85
|
+
tenantId: z.ZodUUID;
|
|
86
|
+
deviceId: z.ZodUUID;
|
|
87
87
|
deviceRevision: z.ZodInt;
|
|
88
|
-
challengeId: z.
|
|
88
|
+
challengeId: z.ZodUUID;
|
|
89
89
|
assertion: z.ZodString;
|
|
90
90
|
}, z.core.$strict>;
|
|
91
|
-
|
|
92
|
-
tenantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
|
|
93
|
-
projectId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
|
|
94
|
-
requestId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
|
|
95
|
-
deviceId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
|
|
96
|
-
deviceRevision: z.ZodInt;
|
|
97
|
-
expectedRevision: z.ZodInt;
|
|
98
|
-
expiresAt: z.ZodISODateTime;
|
|
99
|
-
capability: z.ZodLiteral<"ROUGH_CUT_PREVIEW_V1">;
|
|
100
|
-
}, z.core.$strict>;
|
|
101
|
-
export declare const LocalDeviceGrantSchema: z.ZodObject<{
|
|
102
|
-
tenantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
|
|
103
|
-
projectId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
|
|
104
|
-
capability: z.ZodLiteral<"ROUGH_CUT_PREVIEW_V1">;
|
|
105
|
-
expiresAt: z.ZodISODateTime;
|
|
106
|
-
deviceId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
|
|
107
|
-
deviceRevision: z.ZodInt;
|
|
108
|
-
grantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
|
|
109
|
-
revision: z.ZodInt;
|
|
110
|
-
approvedByPrincipalId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
|
|
111
|
-
createdAt: z.ZodISODateTime;
|
|
112
|
-
revokedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
113
|
-
}, z.core.$strict>;
|
|
114
|
-
export declare const RevokeLocalDeviceGrantSchema: z.ZodObject<{
|
|
115
|
-
tenantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
|
|
116
|
-
projectId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
|
|
117
|
-
grantId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
|
|
118
|
-
requestId: z.ZodPipe<z.ZodUUID, z.ZodTransform<string, string>>;
|
|
119
|
-
expectedRevision: z.ZodInt;
|
|
120
|
-
}, z.core.$strict>;
|
|
91
|
+
/** 工作空间设备只能按当前修订撤销整机身份,不存在项目设备授予。 */
|
|
121
92
|
export declare const RevokeLocalDeviceSchema: z.ZodObject<{
|
|
122
|
-
tenantId: z.
|
|
123
|
-
deviceId: z.
|
|
124
|
-
requestId: z.
|
|
93
|
+
tenantId: z.ZodUUID;
|
|
94
|
+
deviceId: z.ZodUUID;
|
|
95
|
+
requestId: z.ZodUUID;
|
|
125
96
|
expectedRevision: z.ZodInt;
|
|
126
97
|
}, z.core.$strict>;
|
|
127
98
|
export type LocalDeviceView = z.infer<typeof LocalDeviceViewSchema>;
|
|
128
|
-
export type LocalDeviceGrant = z.infer<typeof LocalDeviceGrantSchema>;
|
|
129
99
|
export type EnrollLocalDevice = z.infer<typeof EnrollLocalDeviceSchema>;
|
|
130
100
|
export type LocalDeviceChallenge = z.infer<typeof LocalDeviceChallengeSchema>;
|
|
131
101
|
export type LocalDeviceProofClaims = z.infer<typeof LocalDeviceProofClaimsSchema>;
|
|
132
|
-
export type GrantLocalDevice = z.infer<typeof GrantLocalDeviceSchema>;
|
|
133
102
|
export type RevokeLocalDevice = z.infer<typeof RevokeLocalDeviceSchema>;
|
|
134
|
-
export type RevokeLocalDeviceGrant = z.infer<typeof RevokeLocalDeviceGrantSchema>;
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** 设备从私有文件选定同一工作区连接和修订,服务端不会下发 API 密钥。 */
|
|
3
|
+
export declare const QwenDeviceCredentialScopeSchema: z.ZodObject<{
|
|
4
|
+
tenantId: z.ZodUUID;
|
|
5
|
+
connectionId: z.ZodUUID;
|
|
6
|
+
connectionVersion: z.ZodInt;
|
|
7
|
+
workspace: z.ZodString;
|
|
8
|
+
}, z.core.$strict>;
|
|
9
|
+
export type QwenDeviceCredentialScope = z.infer<typeof QwenDeviceCredentialScopeSchema>;
|
|
10
|
+
export declare const QwenDeviceCredentialIdentitySchema: z.ZodObject<{
|
|
11
|
+
tenantId: z.ZodUUID;
|
|
12
|
+
connectionId: z.ZodUUID;
|
|
13
|
+
connectionVersion: z.ZodInt;
|
|
14
|
+
workspace: z.ZodString;
|
|
15
|
+
proofSha256: z.ZodString;
|
|
16
|
+
}, z.core.$strict>;
|
|
17
|
+
export type QwenDeviceCredentialIdentity = z.infer<typeof QwenDeviceCredentialIdentitySchema>;
|
|
18
|
+
export declare const QwenDeviceCredentialSelectionSchema: z.ZodObject<{
|
|
19
|
+
tenantId: z.ZodUUID;
|
|
20
|
+
connectionId: z.ZodUUID;
|
|
21
|
+
connectionVersion: z.ZodInt;
|
|
22
|
+
workspace: z.ZodString;
|
|
23
|
+
privateKeyFile: z.ZodString;
|
|
24
|
+
}, z.core.$strict>;
|
|
25
|
+
export type QwenDeviceCredentialSelection = z.infer<typeof QwenDeviceCredentialSelectionSchema>;
|
|
26
|
+
/** 凭据摘要使用独立用途和连接范围,避免跨租户或轮换后复用。 */
|
|
27
|
+
export declare function qwenDeviceCredentialProofInput(scope: QwenDeviceCredentialScope): string;
|
|
28
|
+
/** 配方只冻结已批准的文本及素材引用,原始模型回执和密钥均留在执行端。 */
|
|
29
|
+
export declare const QwenKeyframeRecipeSchema: z.ZodObject<{
|
|
30
|
+
processor: z.ZodLiteral<"KEYFRAME_GENERATE">;
|
|
31
|
+
generationId: z.ZodUUID;
|
|
32
|
+
credential: z.ZodObject<{
|
|
33
|
+
tenantId: z.ZodUUID;
|
|
34
|
+
connectionId: z.ZodUUID;
|
|
35
|
+
connectionVersion: z.ZodInt;
|
|
36
|
+
workspace: z.ZodString;
|
|
37
|
+
proofSha256: z.ZodString;
|
|
38
|
+
}, z.core.$strict>;
|
|
39
|
+
quoteFingerprint: z.ZodString;
|
|
40
|
+
prompt: z.ZodString;
|
|
41
|
+
aspectRatio: z.ZodEnum<{
|
|
42
|
+
"16:9": "16:9";
|
|
43
|
+
"9:16": "9:16";
|
|
44
|
+
}>;
|
|
45
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
46
|
+
artifactId: z.core.$ZodBranded<z.ZodUUID, "ArtifactId", "out">;
|
|
47
|
+
representationId: z.core.$ZodBranded<z.ZodUUID, "ArtifactRepresentationId", "out">;
|
|
48
|
+
checksumSha256: z.ZodString;
|
|
49
|
+
contentType: z.ZodEnum<{
|
|
50
|
+
"image/png": "image/png";
|
|
51
|
+
"image/jpeg": "image/jpeg";
|
|
52
|
+
"image/webp": "image/webp";
|
|
53
|
+
}>;
|
|
54
|
+
role: z.ZodEnum<{
|
|
55
|
+
PRODUCT_IDENTITY: "PRODUCT_IDENTITY";
|
|
56
|
+
PRODUCT_PACKSHOT: "PRODUCT_PACKSHOT";
|
|
57
|
+
CHARACTER_IDENTITY: "CHARACTER_IDENTITY";
|
|
58
|
+
WARDROBE: "WARDROBE";
|
|
59
|
+
LOCATION: "LOCATION";
|
|
60
|
+
STYLE: "STYLE";
|
|
61
|
+
START_FRAME_ANCHOR: "START_FRAME_ANCHOR";
|
|
62
|
+
END_FRAME_ANCHOR: "END_FRAME_ANCHOR";
|
|
63
|
+
}>;
|
|
64
|
+
byteSize: z.ZodInt;
|
|
65
|
+
}, z.core.$strict>>;
|
|
66
|
+
}, z.core.$strict>;
|
|
67
|
+
/** 设备接纳只披露原供应商回执标识和已读回 PNG 的物理事实。 */
|
|
68
|
+
export declare const QwenKeyframeEvidenceSchema: z.ZodObject<{
|
|
69
|
+
processor: z.ZodLiteral<"KEYFRAME_GENERATE">;
|
|
70
|
+
providerExecutionId: z.ZodString;
|
|
71
|
+
providerResultId: z.ZodString;
|
|
72
|
+
image: z.ZodObject<{
|
|
73
|
+
checksumSha256: z.ZodString;
|
|
74
|
+
byteSize: z.ZodInt;
|
|
75
|
+
width: z.ZodInt;
|
|
76
|
+
height: z.ZodInt;
|
|
77
|
+
}, z.core.$strict>;
|
|
78
|
+
}, z.core.$strict>;
|
|
79
|
+
/** 视频第一批资格限定静音 720P;跨 Attempt 只恢复供应商原任务号。 */
|
|
80
|
+
export declare const QwenVideoRecipeSchema: z.ZodObject<{
|
|
81
|
+
generationId: z.ZodUUID;
|
|
82
|
+
credential: z.ZodObject<{
|
|
83
|
+
tenantId: z.ZodUUID;
|
|
84
|
+
connectionId: z.ZodUUID;
|
|
85
|
+
connectionVersion: z.ZodInt;
|
|
86
|
+
workspace: z.ZodString;
|
|
87
|
+
proofSha256: z.ZodString;
|
|
88
|
+
}, z.core.$strict>;
|
|
89
|
+
quoteFingerprint: z.ZodString;
|
|
90
|
+
aspectRatio: z.ZodEnum<{
|
|
91
|
+
"16:9": "16:9";
|
|
92
|
+
"9:16": "9:16";
|
|
93
|
+
}>;
|
|
94
|
+
processor: z.ZodLiteral<"VIDEO_GENERATE">;
|
|
95
|
+
prompt: z.ZodString;
|
|
96
|
+
mode: z.ZodEnum<{
|
|
97
|
+
REFERENCE_TO_VIDEO: "REFERENCE_TO_VIDEO";
|
|
98
|
+
FIRST_FRAME_TO_VIDEO: "FIRST_FRAME_TO_VIDEO";
|
|
99
|
+
FIRST_LAST_FRAME_TO_VIDEO: "FIRST_LAST_FRAME_TO_VIDEO";
|
|
100
|
+
}>;
|
|
101
|
+
durationSeconds: z.ZodInt;
|
|
102
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
103
|
+
artifactId: z.core.$ZodBranded<z.ZodUUID, "ArtifactId", "out">;
|
|
104
|
+
representationId: z.core.$ZodBranded<z.ZodUUID, "ArtifactRepresentationId", "out">;
|
|
105
|
+
checksumSha256: z.ZodString;
|
|
106
|
+
contentType: z.ZodEnum<{
|
|
107
|
+
"image/png": "image/png";
|
|
108
|
+
"image/jpeg": "image/jpeg";
|
|
109
|
+
"image/webp": "image/webp";
|
|
110
|
+
}>;
|
|
111
|
+
role: z.ZodEnum<{
|
|
112
|
+
PRODUCT_IDENTITY: "PRODUCT_IDENTITY";
|
|
113
|
+
PRODUCT_PACKSHOT: "PRODUCT_PACKSHOT";
|
|
114
|
+
CHARACTER_IDENTITY: "CHARACTER_IDENTITY";
|
|
115
|
+
WARDROBE: "WARDROBE";
|
|
116
|
+
LOCATION: "LOCATION";
|
|
117
|
+
STYLE: "STYLE";
|
|
118
|
+
START_FRAME_ANCHOR: "START_FRAME_ANCHOR";
|
|
119
|
+
END_FRAME_ANCHOR: "END_FRAME_ANCHOR";
|
|
120
|
+
}>;
|
|
121
|
+
byteSize: z.ZodInt;
|
|
122
|
+
}, z.core.$strict>>;
|
|
123
|
+
}, z.core.$strict>;
|
|
124
|
+
export declare const QwenVideoTaskIdSchema: z.ZodString;
|
|
125
|
+
export declare const QwenVideoEvidenceSchema: z.ZodObject<{
|
|
126
|
+
processor: z.ZodLiteral<"VIDEO_GENERATE">;
|
|
127
|
+
providerExecutionId: z.ZodString;
|
|
128
|
+
providerResultId: z.ZodString;
|
|
129
|
+
video: z.ZodObject<{
|
|
130
|
+
contentType: z.ZodLiteral<"video/mp4">;
|
|
131
|
+
checksumSha256: z.ZodString;
|
|
132
|
+
byteSize: z.ZodInt;
|
|
133
|
+
width: z.ZodInt;
|
|
134
|
+
height: z.ZodInt;
|
|
135
|
+
durationMs: z.ZodInt;
|
|
136
|
+
pixelFormat: z.ZodOptional<z.ZodLiteral<"yuv420p10le">>;
|
|
137
|
+
nativeAudio: z.ZodOptional<z.ZodObject<{
|
|
138
|
+
normalizationVersion: z.ZodLiteral<"VIDEO_AUDIO_PCM_V1">;
|
|
139
|
+
sourceCodec: z.ZodLiteral<"aac">;
|
|
140
|
+
sourceSampleRateHz: z.ZodInt;
|
|
141
|
+
sourceChannels: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
|
|
142
|
+
sourceFrameRateHz: z.ZodUnion<readonly [z.ZodLiteral<24>, z.ZodLiteral<30>]>;
|
|
143
|
+
sourceFrameCount: z.ZodInt;
|
|
144
|
+
sourceStartOffsetMs: z.ZodNumber;
|
|
145
|
+
sourceDeclaredDurationMs: z.ZodNumber;
|
|
146
|
+
alignment: z.ZodLiteral<"TRIM_PAD_PCM_TO_VIDEO_ZERO_V1">;
|
|
147
|
+
media: z.ZodObject<{
|
|
148
|
+
profile: z.ZodLiteral<"PCM_S16LE_48000_NATIVE_VIDEO_V1">;
|
|
149
|
+
audioCodec: z.ZodLiteral<"pcm_s16le">;
|
|
150
|
+
sampleRateHz: z.ZodLiteral<48000>;
|
|
151
|
+
audioChannels: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
|
|
152
|
+
sampleCount: z.ZodInt;
|
|
153
|
+
durationMs: z.ZodNumber;
|
|
154
|
+
}, z.core.$strict>;
|
|
155
|
+
checksumSha256: z.ZodString;
|
|
156
|
+
}, z.core.$strict>>;
|
|
157
|
+
videoCodec: z.ZodLiteral<"h264">;
|
|
158
|
+
frameRate: z.ZodLiteral<30>;
|
|
159
|
+
hasAudio: z.ZodLiteral<false>;
|
|
160
|
+
frameCount: z.ZodInt;
|
|
161
|
+
}, z.core.$strict>;
|
|
162
|
+
poster: z.ZodObject<{
|
|
163
|
+
checksumSha256: z.ZodString;
|
|
164
|
+
byteSize: z.ZodInt;
|
|
165
|
+
width: z.ZodInt;
|
|
166
|
+
height: z.ZodInt;
|
|
167
|
+
}, z.core.$strict>;
|
|
168
|
+
}, z.core.$strict>;
|
|
169
|
+
/** 预算账本与工作信封冻结同一个原任务、输入和报价,跨 Attempt 保持稳定。 */
|
|
170
|
+
export declare const ExternalGenerationReservationMarkerSchema: z.ZodObject<{
|
|
171
|
+
protocol: z.ZodLiteral<"NVS_TENANT_EXTERNAL_GENERATION_V1">;
|
|
172
|
+
tenantId: z.ZodUUID;
|
|
173
|
+
projectId: z.ZodUUID;
|
|
174
|
+
productionId: z.ZodUUID;
|
|
175
|
+
runtimeJobId: z.ZodUUID;
|
|
176
|
+
shotId: z.ZodUUID;
|
|
177
|
+
preparationId: z.ZodUUID;
|
|
178
|
+
contractId: z.ZodUUID;
|
|
179
|
+
workload: z.ZodEnum<{
|
|
180
|
+
KEYFRAME_GENERATE: "KEYFRAME_GENERATE";
|
|
181
|
+
VIDEO_GENERATE: "VIDEO_GENERATE";
|
|
182
|
+
}>;
|
|
183
|
+
policyRevision: z.ZodInt;
|
|
184
|
+
contractFingerprint: z.ZodString;
|
|
185
|
+
originRequestFingerprint: z.ZodString;
|
|
186
|
+
bindingFingerprint: z.ZodString;
|
|
187
|
+
inputsFingerprint: z.ZodString;
|
|
188
|
+
quoteFingerprint: z.ZodString;
|
|
189
|
+
}, z.core.$strict>;
|
|
190
|
+
export type ExternalGenerationReservationMarker = z.infer<typeof ExternalGenerationReservationMarkerSchema>;
|
|
191
|
+
/** 报价和实际设备配方使用同样的参考图顺序、数量和传输体积。 */
|
|
192
|
+
export declare function qwenOrderedReferences<T extends {
|
|
193
|
+
representationId: string;
|
|
194
|
+
role: string;
|
|
195
|
+
}>(refs: readonly T[], mode?: string): T[];
|
|
196
|
+
export declare function qwenDeviceTransferFits(sources: readonly {
|
|
197
|
+
byteSize: number;
|
|
198
|
+
role: string;
|
|
199
|
+
}[], mode?: string): boolean;
|
|
@@ -1,11 +1,43 @@
|
|
|
1
1
|
export * from "./common.js";
|
|
2
2
|
export * from "./device.js";
|
|
3
|
+
export * from "./device-inventory.js";
|
|
4
|
+
export * from "./device-authority.js";
|
|
5
|
+
export * from "./device-workspace.js";
|
|
3
6
|
export * from "./work.js";
|
|
4
7
|
export * from "./completion.js";
|
|
5
8
|
export * from "./ipc.js";
|
|
6
9
|
export * from "./preview.js";
|
|
7
10
|
export * from "./canonical.js";
|
|
8
11
|
export * from "./lifecycle.js";
|
|
12
|
+
export * from "./components.js";
|
|
9
13
|
export * from "./tool-selection.js";
|
|
10
14
|
export * from "./local-navigation.js";
|
|
11
15
|
export * from "./agent-review.js";
|
|
16
|
+
export * from "./agent-evidence.js";
|
|
17
|
+
export * from "./agent-context.js";
|
|
18
|
+
export * from "./management.js";
|
|
19
|
+
export * from "./workspace.js";
|
|
20
|
+
export * from "./offline.js";
|
|
21
|
+
export * from "./media-recipe.js";
|
|
22
|
+
export * from "./object-transfer.js";
|
|
23
|
+
export * from "./media-validation.js";
|
|
24
|
+
export * from "./media-validation-request.js";
|
|
25
|
+
export * from "./processor.js";
|
|
26
|
+
export * from "./project-source-direct.js";
|
|
27
|
+
export * from "./processor-capability.js";
|
|
28
|
+
export * from "./speech.js";
|
|
29
|
+
export * from "./recognition.js";
|
|
30
|
+
export * from "./whisper.js";
|
|
31
|
+
export * from "./external-generation.js";
|
|
32
|
+
export * from "./processor-direct.js";
|
|
33
|
+
export * from "./qwen-tts.js";
|
|
34
|
+
export * from "./library.js";
|
|
35
|
+
export * from "../media-category.js";
|
|
36
|
+
export * from "./library-command.js";
|
|
37
|
+
export * from "./library-result.js";
|
|
38
|
+
export * from "./cpu-speech.js";
|
|
39
|
+
export * from "./cpu-speech-job.js";
|
|
40
|
+
export * from "./cpu-resources.js";
|
|
41
|
+
export * from "./cpu-preparation.js";
|
|
42
|
+
export * from "./audio-profile.js";
|
|
43
|
+
export * from "./processor-toolchain.js";
|