@nativestudio/cli 0.3.0-rc.2 → 0.3.0-rc.20
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-27KI24GK.js +1 -0
- package/dist/_chunks/{chunk-C33A2DW4.js → chunk-3TOXIJ7K.js} +1 -1
- package/dist/_chunks/chunk-4M2SOMSN.js +1 -0
- package/dist/_chunks/chunk-4PAVWOPA.js +1 -0
- package/dist/_chunks/chunk-6EZX2TRX.js +1 -0
- package/dist/_chunks/chunk-7I7ARCY7.js +1 -0
- package/dist/_chunks/chunk-7P2NA6TH.js +1 -0
- package/dist/_chunks/chunk-AFNJRZLJ.js +1 -0
- package/dist/_chunks/chunk-APNZQZFB.js +1 -0
- package/dist/_chunks/chunk-D74NHT4I.js +45 -0
- package/dist/_chunks/chunk-DLW42PJ6.js +1 -0
- package/dist/_chunks/chunk-ELUJ44BO.js +1 -0
- package/dist/_chunks/chunk-FVY3PLG7.js +1 -0
- package/dist/_chunks/chunk-GLAF74UU.js +1 -0
- package/dist/_chunks/chunk-HBDPYWMI.js +1 -0
- package/dist/_chunks/chunk-IYDHDLTR.js +1 -0
- package/dist/_chunks/chunk-K35CWLDH.js +1 -0
- package/dist/_chunks/chunk-KOCUZ3AE.js +1 -0
- package/dist/_chunks/chunk-L3QA7FLZ.js +1 -0
- package/dist/_chunks/chunk-LBK42NHW.js +1 -0
- package/dist/_chunks/chunk-MLZ3ZPGU.js +1 -0
- package/dist/_chunks/chunk-NG4BDFEY.js +1 -0
- package/dist/_chunks/chunk-OSO6KRE2.js +1 -0
- package/dist/_chunks/{chunk-VDNNFVTZ.js → chunk-OW6R4MAQ.js} +1 -1
- package/dist/_chunks/chunk-QE7O57PQ.js +1 -0
- package/dist/_chunks/chunk-QGK6G6YS.js +1 -0
- package/dist/_chunks/chunk-QK4XPVKT.js +1 -0
- package/dist/_chunks/chunk-ROGOASYF.js +1 -0
- package/dist/_chunks/chunk-TT7IA5HB.js +1 -0
- package/dist/_chunks/chunk-UYKCN5DU.js +1 -0
- package/dist/_chunks/chunk-WTJVS2VS.js +1 -0
- package/dist/_chunks/chunk-XUSVNPR5.js +1 -0
- package/dist/_chunks/component-contract-KXK7WIUI.js +1 -0
- package/dist/_chunks/component-preflight-WECLCZLF.js +1 -0
- package/dist/_chunks/connect-7TJDWXV4.js +1 -0
- package/dist/_chunks/device-management-TLRUMZL5.js +1 -0
- package/dist/_chunks/device-preflight-C7FFUXI2.js +1 -0
- package/dist/_chunks/devices-inventory-BZF53UAU.js +1 -0
- package/dist/_chunks/devices-main-V3YHCB2C.js +1 -0
- package/dist/_chunks/files-JJ6YOULB.js +1 -0
- package/dist/_chunks/host-component-Q5IHRHRI.js +1 -0
- package/dist/_chunks/host-help-7BGYR4ET.js +1 -0
- package/dist/_chunks/host-main-JLIBRHC2.js +1 -0
- package/dist/_chunks/http-profile-3VVSWYA5.js +1 -0
- package/dist/_chunks/library-main-ATRFEAVN.js +1 -0
- package/dist/_chunks/local-main-KTYCLHDA.js +1 -0
- package/dist/_chunks/local-mcp-ISMU6ADI.js +1 -0
- package/dist/_chunks/main-MOZS2EK3.js +2 -0
- package/dist/_chunks/mcp-M2SO3J2H.js +1 -0
- package/dist/_chunks/oauth-RPME2XYB.js +1 -0
- package/dist/_chunks/observe-entry-E6DFHIMW.js +1 -0
- package/dist/_chunks/remote-client-T75C45JO.js +1 -0
- package/dist/_chunks/render-main-OGCO2LX4.js +1 -0
- package/dist/_chunks/series-main-FBERVYWG.js +1 -0
- package/dist/_chunks/source-import-55JJ26AA.js +1 -0
- package/dist/_chunks/src-V2K52JDH.js +1 -0
- package/dist/_chunks/stdio-main-HNLJCG45.js +1 -0
- package/dist/_chunks/workspace-main-3P56DSEQ.js +1 -0
- package/dist/_types/cli/local/desktop-contract.d.ts +1981 -22
- package/dist/_types/cli/local/desktop-device-contract.d.ts +807 -0
- package/dist/_types/cli/local/desktop-device-navigation.d.ts +3 -0
- package/dist/_types/cli/local/desktop-device-owner.d.ts +273 -0
- package/dist/_types/cli/local/desktop-device-state.d.ts +455 -0
- package/dist/_types/cli/local/desktop-library.d.ts +853 -0
- package/dist/_types/cli/local/desktop-owner.d.ts +787 -4
- package/dist/_types/cli/local/ledger.d.ts +76 -20
- package/dist/_types/cli/local/manager.d.ts +1233 -49
- package/dist/_types/cli/local/mcp-tools.d.ts +313 -54
- package/dist/_types/cli/local/releases.d.ts +30 -7
- package/dist/_types/cli/local-management.d.ts +9 -2
- package/dist/_types/cli/local-navigation.d.ts +1 -0
- package/dist/_types/contracts/agent-execution-lifecycle.d.ts +55 -43
- package/dist/_types/contracts/agent-execution-oauth.d.ts +2 -2
- package/dist/_types/contracts/agent-execution-registration.d.ts +59 -15
- package/dist/_types/contracts/agent-execution-selection.d.ts +7 -7
- package/dist/_types/contracts/agent-host-contract.d.ts +189 -0
- package/dist/_types/contracts/agent-host-execution.d.ts +92 -61
- package/dist/_types/contracts/agent-host-generic-transport.d.ts +4 -4
- package/dist/_types/contracts/agent-host-legacy-release.d.ts +31 -0
- package/dist/_types/contracts/agent-host-protocol.d.ts +71 -0
- package/dist/_types/contracts/agent-host-wire.d.ts +263 -0
- package/dist/_types/contracts/agent-host.d.ts +126 -65
- package/dist/_types/contracts/artifact-discovery.d.ts +143 -11
- package/dist/_types/contracts/audio.d.ts +166 -0
- package/dist/_types/contracts/component-status.d.ts +241 -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-observation.d.ts +1 -1
- 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 +13 -13
- 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-completion.d.ts +1 -1
- package/dist/_types/contracts/delivery-manifest.d.ts +25 -11729
- package/dist/_types/contracts/delivery-operations.d.ts +207 -3915
- package/dist/_types/contracts/delivery-summary.d.ts +4 -4
- package/dist/_types/contracts/delivery-validation.d.ts +25 -2
- package/dist/_types/contracts/device-onboarding.d.ts +35 -0
- package/dist/_types/contracts/device-render.d.ts +113 -0
- package/dist/_types/contracts/editor-intelligence.d.ts +392 -2531
- package/dist/_types/contracts/enterprise-brand.d.ts +302 -0
- 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/federation-event-link-receiver.d.ts +200 -0
- package/dist/_types/contracts/federation-event-link.d.ts +485 -0
- package/dist/_types/contracts/federation-result.d.ts +239 -0
- package/dist/_types/contracts/final-ready.d.ts +24 -24
- 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 +26 -0
- package/dist/_types/contracts/interface/common.d.ts +18 -0
- package/dist/_types/contracts/interface/execution-output.d.ts +9 -6
- 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 +81 -199
- package/dist/_types/contracts/interface/query.d.ts +60 -0
- package/dist/_types/contracts/keyframe-generation.d.ts +31 -2
- package/dist/_types/contracts/keyframe-review.d.ts +7 -7
- package/dist/_types/contracts/lifecycle-event-projections.d.ts +17 -2
- package/dist/_types/contracts/lifecycle-events.d.ts +54 -2
- package/dist/_types/contracts/local-execution/agent-component-status.d.ts +109 -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 +529 -71
- 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 +108 -0
- package/dist/_types/contracts/local-execution/device-workspace.d.ts +11 -0
- package/dist/_types/contracts/local-execution/device.d.ts +24 -55
- package/dist/_types/contracts/local-execution/enrollment-credential.d.ts +141 -0
- package/dist/_types/contracts/local-execution/enrollment-handoff.d.ts +44 -0
- package/dist/_types/contracts/local-execution/external-generation.d.ts +199 -0
- package/dist/_types/contracts/local-execution/index.d.ts +36 -0
- package/dist/_types/contracts/local-execution/ipc.d.ts +2809 -231
- package/dist/_types/contracts/local-execution/library-command.d.ts +620 -0
- package/dist/_types/contracts/local-execution/library-result.d.ts +428 -0
- package/dist/_types/contracts/local-execution/library.d.ts +873 -0
- package/dist/_types/contracts/local-execution/lifecycle.d.ts +262 -48
- package/dist/_types/contracts/local-execution/local-navigation.d.ts +304 -67
- package/dist/_types/contracts/local-execution/management.d.ts +407 -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 +177 -3561
- package/dist/_types/contracts/local-execution/processor-capability.d.ts +49 -0
- package/dist/_types/contracts/local-execution/processor-direct.d.ts +290 -0
- package/dist/_types/contracts/local-execution/processor-recipes.d.ts +1194 -0
- package/dist/_types/contracts/local-execution/processor-toolchain.d.ts +47 -0
- package/dist/_types/contracts/local-execution/processor.d.ts +6424 -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/mcp-capabilities.d.ts +16 -0
- package/dist/_types/contracts/media-category.d.ts +11 -0
- package/dist/_types/contracts/media-observation.d.ts +930 -9
- 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/native-tool-authority.d.ts +25 -21
- package/dist/_types/contracts/native-tool-execution.d.ts +60 -39
- package/dist/_types/contracts/navigation-context.d.ts +28 -8
- package/dist/_types/contracts/navigation-groups.d.ts +2 -2
- package/dist/_types/contracts/navigation.d.ts +78 -25
- 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-feedback.d.ts +452 -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 +362 -5999
- package/dist/_types/contracts/programmatic-video-review.d.ts +5 -5
- 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 +20 -0
- package/dist/_types/contracts/render-readiness.d.ts +175 -0
- package/dist/_types/contracts/repair-lifecycle.d.ts +64 -396
- package/dist/_types/contracts/repair-plan.d.ts +18 -100
- package/dist/_types/contracts/repair-strategy.d.ts +163 -4478
- package/dist/_types/contracts/review-intelligence-final-output.d.ts +418 -8150
- package/dist/_types/contracts/review-intelligence.d.ts +455 -11423
- package/dist/_types/contracts/review1-repair-source.d.ts +6 -6
- package/dist/_types/contracts/review1-repair-strategy.d.ts +4 -4
- 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/series-canon.d.ts +97 -0
- package/dist/_types/contracts/series-character.d.ts +23 -0
- package/dist/_types/contracts/series-improvement.d.ts +1639 -0
- package/dist/_types/contracts/series-standard.d.ts +1641 -0
- package/dist/_types/contracts/shares.d.ts +135 -0
- 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 +603 -23
- package/dist/_types/contracts/temporal-evidence-operation.d.ts +2 -1
- 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 +35 -2
- package/dist/_types/contracts/video-review.d.ts +7 -7
- package/dist/_types/contracts/visual-exploration.d.ts +3 -3
- 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 +83 -0
- package/dist/_types/sdk/errors.d.ts +9 -3
- package/dist/_types/sdk/local-runtime/components.d.ts +2 -0
- package/dist/_types/sdk/local-runtime/device-client.d.ts +181 -19
- 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 +1934 -96
- package/dist/entry.js +1 -1
- package/dist/local-management.js +1 -1
- package/dist/local-navigation.js +1 -1
- package/dist/native/helper.exe +0 -0
- package/dist/native/helper.json +1 -0
- package/package.json +2 -8
- package/README.md +0 -95
- package/dist/_chunks/chunk-66CUOZVI.js +0 -1
- package/dist/_chunks/chunk-6NVIN2NI.js +0 -1
- package/dist/_chunks/chunk-7S3DJ2QE.js +0 -1
- package/dist/_chunks/chunk-BVSTJQJI.js +0 -1
- package/dist/_chunks/chunk-C753RRRA.js +0 -1
- package/dist/_chunks/chunk-E57YVMQ4.js +0 -1
- package/dist/_chunks/chunk-GJ7BZJLW.js +0 -1
- package/dist/_chunks/chunk-HLKERZIE.js +0 -1
- package/dist/_chunks/chunk-K6LVS2IN.js +0 -1
- package/dist/_chunks/chunk-KHKUJXQX.js +0 -1
- package/dist/_chunks/chunk-PUNG4ND7.js +0 -1
- package/dist/_chunks/chunk-VC3ODN3M.js +0 -1
- package/dist/_chunks/chunk-VPYAXWXY.js +0 -1
- package/dist/_chunks/files-FZEK2ZZJ.js +0 -1
- package/dist/_chunks/local-main-NLFS74Q4.js +0 -1
- package/dist/_chunks/local-mcp-OLHBBVNN.js +0 -1
- package/dist/_chunks/main-VRIQTI6R.js +0 -2
- package/dist/_chunks/mcp-EIMXNRH3.js +0 -1
- package/dist/_chunks/oauth-F7EZGVME.js +0 -1
- package/dist/_chunks/project-connect-MXM7IY55.js +0 -1
- package/dist/_chunks/src-7F6ZEU3U.js +0 -1
- package/dist/_chunks/stdio-main-KOGQ5OWF.js +0 -1
- package/dist/native/Bootstrap.ps1 +0 -90
- package/dist/native/JobNative.cs +0 -127
- package/dist/native/JobRunner.cs +0 -360
- package/dist/native/NativeMain.cs +0 -146
- package/dist/native/PipeBridge.cs +0 -260
- package/dist/native/PrivateAccess.cs +0 -152
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Workspace 是 tenant 的公开导航投影,不能成为第二套租户或权限模型。 */
|
|
3
|
+
export declare const WorkspaceScopeSchema: z.ZodObject<{
|
|
4
|
+
tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
|
|
5
|
+
}, z.core.$strict>;
|
|
6
|
+
export declare const WorkspaceViewSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodUUID;
|
|
8
|
+
displayName: z.ZodString;
|
|
9
|
+
}, z.core.$strict>;
|
|
10
|
+
/** 下载地址只是部署发现;不含正文、秘密或对设备的额外授权。 */
|
|
11
|
+
export declare const PublicDownloadDescriptorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12
|
+
status: z.ZodLiteral<"AVAILABLE">;
|
|
13
|
+
url: z.ZodURL;
|
|
14
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
15
|
+
status: z.ZodEnum<{
|
|
16
|
+
UNAVAILABLE: "UNAVAILABLE";
|
|
17
|
+
UNCONFIGURED: "UNCONFIGURED";
|
|
18
|
+
}>;
|
|
19
|
+
url: z.ZodNull;
|
|
20
|
+
}, z.core.$strict>], "status">;
|
|
21
|
+
/** 当前授权的最小调用者投影;固定服务来源用于复用本机 Owner,不返回任何令牌。 */
|
|
22
|
+
export declare const WorkspaceCallerSchema: z.ZodObject<{
|
|
23
|
+
humanLinks: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
24
|
+
status: z.ZodLiteral<"AVAILABLE">;
|
|
25
|
+
items: z.ZodArray<z.ZodObject<{
|
|
26
|
+
rel: z.ZodEnum<{
|
|
27
|
+
delivery: "delivery";
|
|
28
|
+
workspace: "workspace";
|
|
29
|
+
project: "project";
|
|
30
|
+
production: "production";
|
|
31
|
+
artifact: "artifact";
|
|
32
|
+
voice_profile: "voice_profile";
|
|
33
|
+
}>;
|
|
34
|
+
href: z.ZodURL;
|
|
35
|
+
}, z.core.$strict>>;
|
|
36
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
37
|
+
status: z.ZodEnum<{
|
|
38
|
+
UNAVAILABLE: "UNAVAILABLE";
|
|
39
|
+
UNCONFIGURED: "UNCONFIGURED";
|
|
40
|
+
}>;
|
|
41
|
+
items: z.ZodArray<z.ZodObject<{
|
|
42
|
+
rel: z.ZodEnum<{
|
|
43
|
+
delivery: "delivery";
|
|
44
|
+
workspace: "workspace";
|
|
45
|
+
project: "project";
|
|
46
|
+
production: "production";
|
|
47
|
+
artifact: "artifact";
|
|
48
|
+
voice_profile: "voice_profile";
|
|
49
|
+
}>;
|
|
50
|
+
href: z.ZodURL;
|
|
51
|
+
}, z.core.$strict>>;
|
|
52
|
+
}, z.core.$strict>], "status">>;
|
|
53
|
+
tenantId: z.ZodUUID;
|
|
54
|
+
principalId: z.ZodUUID;
|
|
55
|
+
serverOrigin: z.ZodURL;
|
|
56
|
+
skill: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
57
|
+
status: z.ZodLiteral<"AVAILABLE">;
|
|
58
|
+
url: z.ZodURL;
|
|
59
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
60
|
+
status: z.ZodEnum<{
|
|
61
|
+
UNAVAILABLE: "UNAVAILABLE";
|
|
62
|
+
UNCONFIGURED: "UNCONFIGURED";
|
|
63
|
+
}>;
|
|
64
|
+
url: z.ZodNull;
|
|
65
|
+
}, z.core.$strict>], "status">;
|
|
66
|
+
hostReleases: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
67
|
+
status: z.ZodLiteral<"AVAILABLE">;
|
|
68
|
+
url: z.ZodURL;
|
|
69
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
70
|
+
status: z.ZodEnum<{
|
|
71
|
+
UNAVAILABLE: "UNAVAILABLE";
|
|
72
|
+
UNCONFIGURED: "UNCONFIGURED";
|
|
73
|
+
}>;
|
|
74
|
+
url: z.ZodNull;
|
|
75
|
+
}, z.core.$strict>], "status">;
|
|
76
|
+
}, z.core.$strict>;
|
|
77
|
+
export declare const WorkspacePageSchema: z.ZodObject<{
|
|
78
|
+
items: z.ZodArray<z.ZodObject<{
|
|
79
|
+
id: z.ZodUUID;
|
|
80
|
+
displayName: z.ZodString;
|
|
81
|
+
}, z.core.$strict>>;
|
|
82
|
+
possiblyTruncated: z.ZodBoolean;
|
|
83
|
+
}, z.core.$strict>;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import type { InterfaceSemanticStatus } from "../contracts/
|
|
1
|
+
import type { CapabilityVersionMismatch, InterfaceSemanticStatus } from "../contracts/interface/common.js";
|
|
2
|
+
export interface SdkInputIssue {
|
|
3
|
+
field: string;
|
|
4
|
+
code: string;
|
|
5
|
+
}
|
|
2
6
|
export declare class NativeStudioSdkError extends Error {
|
|
3
7
|
readonly code: string;
|
|
4
8
|
readonly semanticStatus: InterfaceSemanticStatus;
|
|
5
9
|
readonly outcome: "NO_WRITE" | "UNKNOWN" | "REJECTED";
|
|
6
10
|
readonly status: number | null;
|
|
7
|
-
|
|
11
|
+
readonly issues: readonly SdkInputIssue[];
|
|
12
|
+
readonly capabilityMismatch?: CapabilityVersionMismatch | undefined;
|
|
13
|
+
constructor(code: string, semanticStatus: InterfaceSemanticStatus, outcome: "NO_WRITE" | "UNKNOWN" | "REJECTED", status?: number | null, issues?: readonly SdkInputIssue[], capabilityMismatch?: CapabilityVersionMismatch | undefined);
|
|
8
14
|
}
|
|
9
|
-
export declare function sdkInputError(): never;
|
|
15
|
+
export declare function sdkInputError(issues?: readonly SdkInputIssue[]): never;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { EnrollLocalDeviceSchema,
|
|
3
|
-
/**
|
|
2
|
+
import { EnrollLocalDeviceSchema, RevokeLocalDeviceSchema, StartLocalPreviewSchema, StartLocalFinalRenderSchema, LocalDeviceManagementCommandSchema } from "../../contracts/local-execution/index.js";
|
|
3
|
+
/** 成员设备管理沿当前 tenant;设备会话和本机执行连接不构成成员权限。 */
|
|
4
4
|
export declare class NativeStudioLocalDeviceClient {
|
|
5
5
|
private readonly options;
|
|
6
6
|
private readonly origin;
|
|
@@ -18,12 +18,12 @@ export declare class NativeStudioLocalDeviceClient {
|
|
|
18
18
|
x: string;
|
|
19
19
|
y: string;
|
|
20
20
|
};
|
|
21
|
+
runtimeVersion: string;
|
|
21
22
|
label: string;
|
|
22
23
|
platform: {
|
|
23
24
|
os: "darwin" | "linux" | "win32";
|
|
24
|
-
architecture: "
|
|
25
|
+
architecture: "arm64" | "x64";
|
|
25
26
|
};
|
|
26
|
-
runtimeVersion: string;
|
|
27
27
|
deviceId: string;
|
|
28
28
|
revision: number;
|
|
29
29
|
enrolledByPrincipalId: string;
|
|
@@ -31,25 +31,122 @@ export declare class NativeStudioLocalDeviceClient {
|
|
|
31
31
|
verifiedAt: string | null;
|
|
32
32
|
revokedAt: string | null;
|
|
33
33
|
}>;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
34
|
+
managementReceipt(input: z.infer<typeof LocalDeviceManagementCommandSchema>, signal?: AbortSignal): Promise<{
|
|
35
|
+
fingerprint: string;
|
|
36
|
+
result: {
|
|
37
|
+
tenantId: string;
|
|
38
|
+
publicKey: {
|
|
39
|
+
kty: "EC";
|
|
40
|
+
crv: "P-256";
|
|
41
|
+
x: string;
|
|
42
|
+
y: string;
|
|
43
|
+
};
|
|
44
|
+
runtimeVersion: string;
|
|
45
|
+
label: string;
|
|
46
|
+
platform: {
|
|
47
|
+
os: "darwin" | "linux" | "win32";
|
|
48
|
+
architecture: "arm64" | "x64";
|
|
49
|
+
};
|
|
50
|
+
deviceId: string;
|
|
51
|
+
revision: number;
|
|
52
|
+
enrolledByPrincipalId: string;
|
|
53
|
+
createdAt: string;
|
|
54
|
+
verifiedAt: string | null;
|
|
55
|
+
revokedAt: string | null;
|
|
56
|
+
} | {
|
|
57
|
+
semanticStatus: "ACCEPTED";
|
|
58
|
+
renderId: string;
|
|
59
|
+
operationId: string & z.core.$brand<"OperationId">;
|
|
60
|
+
productionId: string;
|
|
61
|
+
timelineVersionId: string;
|
|
62
|
+
timelineFingerprint: string;
|
|
63
|
+
executionClass: "LIVE" | "TEST_ONLY";
|
|
64
|
+
manifestFingerprint: string;
|
|
65
|
+
productionRevision: number;
|
|
66
|
+
placement: {
|
|
67
|
+
target: "DEVICE" | "SERVER";
|
|
68
|
+
reason: "OFFLINE" | "UNQUALIFIED" | "BUSY" | "LOCAL_AVAILABLE" | "CLOUD_ONLY" | "LEASE_RECOVERY";
|
|
69
|
+
policy: {
|
|
70
|
+
mode: "local-only";
|
|
71
|
+
deviceId: string;
|
|
72
|
+
} | {
|
|
73
|
+
mode: "local-preferred";
|
|
74
|
+
deviceId: string;
|
|
75
|
+
} | {
|
|
76
|
+
mode: "cloud-only";
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
humanLinks?: {
|
|
80
|
+
status: "AVAILABLE";
|
|
81
|
+
items: {
|
|
82
|
+
rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
|
|
83
|
+
href: string;
|
|
84
|
+
}[];
|
|
85
|
+
} | {
|
|
86
|
+
status: "UNAVAILABLE" | "UNCONFIGURED";
|
|
87
|
+
items: {
|
|
88
|
+
rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
|
|
89
|
+
href: string;
|
|
90
|
+
}[];
|
|
91
|
+
} | undefined;
|
|
92
|
+
deviceExecution?: {
|
|
93
|
+
mode: "tenant-device-only";
|
|
94
|
+
deviceId: string;
|
|
95
|
+
runtimeJobId: string;
|
|
96
|
+
validationMode?: "TENANT_TRUSTED_VALIDATOR" | undefined;
|
|
97
|
+
} | undefined;
|
|
98
|
+
} | {
|
|
99
|
+
semanticStatus: "ACCEPTED";
|
|
100
|
+
renderId: string;
|
|
101
|
+
operationId: string & z.core.$brand<"OperationId">;
|
|
102
|
+
productionId: string;
|
|
103
|
+
timelineVersionId: string;
|
|
104
|
+
timelineFingerprint: string;
|
|
105
|
+
executionClass: "LIVE" | "TEST_ONLY";
|
|
106
|
+
manifestFingerprint: string;
|
|
107
|
+
productionRevision: number;
|
|
108
|
+
selectionId: string;
|
|
109
|
+
selectionVersion: number;
|
|
110
|
+
profileId: "FINAL_H264_1080P_V1" | "FINAL_H264_720P_V1" | "FINAL_H264_480P_V1";
|
|
111
|
+
placement: {
|
|
112
|
+
target: "DEVICE" | "SERVER";
|
|
113
|
+
reason: "OFFLINE" | "UNQUALIFIED" | "BUSY" | "LOCAL_AVAILABLE" | "CLOUD_ONLY" | "LEASE_RECOVERY";
|
|
114
|
+
policy: {
|
|
115
|
+
mode: "local-only";
|
|
116
|
+
deviceId: string;
|
|
117
|
+
} | {
|
|
118
|
+
mode: "local-preferred";
|
|
119
|
+
deviceId: string;
|
|
120
|
+
} | {
|
|
121
|
+
mode: "cloud-only";
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
humanLinks?: {
|
|
125
|
+
status: "AVAILABLE";
|
|
126
|
+
items: {
|
|
127
|
+
rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
|
|
128
|
+
href: string;
|
|
129
|
+
}[];
|
|
130
|
+
} | {
|
|
131
|
+
status: "UNAVAILABLE" | "UNCONFIGURED";
|
|
132
|
+
items: {
|
|
133
|
+
rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
|
|
134
|
+
href: string;
|
|
135
|
+
}[];
|
|
136
|
+
} | undefined;
|
|
137
|
+
deviceExecution?: {
|
|
138
|
+
mode: "tenant-device-only";
|
|
139
|
+
deviceId: string;
|
|
140
|
+
runtimeJobId: string;
|
|
141
|
+
validationMode?: "TENANT_TRUSTED_VALIDATOR" | undefined;
|
|
142
|
+
} | undefined;
|
|
143
|
+
} | {
|
|
144
|
+
semanticStatus: "SUCCESS";
|
|
145
|
+
} | null;
|
|
46
146
|
}>;
|
|
47
147
|
revokeDevice(input: z.infer<typeof RevokeLocalDeviceSchema>, signal?: AbortSignal): Promise<{
|
|
48
148
|
semanticStatus: "SUCCESS";
|
|
49
149
|
}>;
|
|
50
|
-
revokeGrant(input: z.infer<typeof RevokeLocalDeviceGrantSchema>, signal?: AbortSignal): Promise<{
|
|
51
|
-
semanticStatus: "SUCCESS";
|
|
52
|
-
}>;
|
|
53
150
|
startPreview(input: z.infer<typeof StartLocalPreviewSchema>, signal?: AbortSignal): Promise<{
|
|
54
151
|
semanticStatus: "ACCEPTED";
|
|
55
152
|
renderId: string;
|
|
@@ -73,5 +170,70 @@ export declare class NativeStudioLocalDeviceClient {
|
|
|
73
170
|
mode: "cloud-only";
|
|
74
171
|
};
|
|
75
172
|
};
|
|
173
|
+
humanLinks?: {
|
|
174
|
+
status: "AVAILABLE";
|
|
175
|
+
items: {
|
|
176
|
+
rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
|
|
177
|
+
href: string;
|
|
178
|
+
}[];
|
|
179
|
+
} | {
|
|
180
|
+
status: "UNAVAILABLE" | "UNCONFIGURED";
|
|
181
|
+
items: {
|
|
182
|
+
rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
|
|
183
|
+
href: string;
|
|
184
|
+
}[];
|
|
185
|
+
} | undefined;
|
|
186
|
+
deviceExecution?: {
|
|
187
|
+
mode: "tenant-device-only";
|
|
188
|
+
deviceId: string;
|
|
189
|
+
runtimeJobId: string;
|
|
190
|
+
validationMode?: "TENANT_TRUSTED_VALIDATOR" | undefined;
|
|
191
|
+
} | undefined;
|
|
192
|
+
}>;
|
|
193
|
+
startFinal(input: z.infer<typeof StartLocalFinalRenderSchema>, signal?: AbortSignal): Promise<{
|
|
194
|
+
semanticStatus: "ACCEPTED";
|
|
195
|
+
renderId: string;
|
|
196
|
+
operationId: string & z.core.$brand<"OperationId">;
|
|
197
|
+
productionId: string;
|
|
198
|
+
timelineVersionId: string;
|
|
199
|
+
timelineFingerprint: string;
|
|
200
|
+
executionClass: "LIVE" | "TEST_ONLY";
|
|
201
|
+
manifestFingerprint: string;
|
|
202
|
+
productionRevision: number;
|
|
203
|
+
selectionId: string;
|
|
204
|
+
selectionVersion: number;
|
|
205
|
+
profileId: "FINAL_H264_1080P_V1" | "FINAL_H264_720P_V1" | "FINAL_H264_480P_V1";
|
|
206
|
+
placement: {
|
|
207
|
+
target: "DEVICE" | "SERVER";
|
|
208
|
+
reason: "OFFLINE" | "UNQUALIFIED" | "BUSY" | "LOCAL_AVAILABLE" | "CLOUD_ONLY" | "LEASE_RECOVERY";
|
|
209
|
+
policy: {
|
|
210
|
+
mode: "local-only";
|
|
211
|
+
deviceId: string;
|
|
212
|
+
} | {
|
|
213
|
+
mode: "local-preferred";
|
|
214
|
+
deviceId: string;
|
|
215
|
+
} | {
|
|
216
|
+
mode: "cloud-only";
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
humanLinks?: {
|
|
220
|
+
status: "AVAILABLE";
|
|
221
|
+
items: {
|
|
222
|
+
rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
|
|
223
|
+
href: string;
|
|
224
|
+
}[];
|
|
225
|
+
} | {
|
|
226
|
+
status: "UNAVAILABLE" | "UNCONFIGURED";
|
|
227
|
+
items: {
|
|
228
|
+
rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
|
|
229
|
+
href: string;
|
|
230
|
+
}[];
|
|
231
|
+
} | undefined;
|
|
232
|
+
deviceExecution?: {
|
|
233
|
+
mode: "tenant-device-only";
|
|
234
|
+
deviceId: string;
|
|
235
|
+
runtimeJobId: string;
|
|
236
|
+
validationMode?: "TENANT_TRUSTED_VALIDATOR" | undefined;
|
|
237
|
+
} | undefined;
|
|
76
238
|
}>;
|
|
77
239
|
}
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import { Readable } from "node:stream";
|
|
2
|
+
import type { NativeStudioLocalRuntimeClient } from "../local-runtime-client.js";
|
|
3
|
+
/** Owner 与受限调用使用同一 Runtime 接口,最终权限由 Runtime 逐次校验。 */
|
|
4
|
+
export declare class NativeStudioLocalLibraryClient {
|
|
5
|
+
private readonly client;
|
|
6
|
+
constructor(client: NativeStudioLocalRuntimeClient);
|
|
7
|
+
capability(signal?: AbortSignal): Promise<{
|
|
8
|
+
protocol: "NVS_LOCAL_LIBRARY_V1";
|
|
9
|
+
available: boolean;
|
|
10
|
+
profileDigest: string;
|
|
11
|
+
}>;
|
|
12
|
+
call(raw: unknown, signal?: AbortSignal): Promise<{
|
|
13
|
+
reference: {
|
|
14
|
+
tenantId: string;
|
|
15
|
+
projectId: string;
|
|
16
|
+
fileId: string;
|
|
17
|
+
versionId: string;
|
|
18
|
+
checksumSha256: string;
|
|
19
|
+
byteSize: number;
|
|
20
|
+
contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
|
|
21
|
+
deviceId: string;
|
|
22
|
+
};
|
|
23
|
+
ownerKey: string;
|
|
24
|
+
title: string;
|
|
25
|
+
createdAt: string;
|
|
26
|
+
revision: number;
|
|
27
|
+
access: {
|
|
28
|
+
state: "REJECTED" | "UNKNOWN" | "PENDING" | "LOCAL_ONLY" | "SYNCED";
|
|
29
|
+
desired: {
|
|
30
|
+
reference: {
|
|
31
|
+
tenantId: string;
|
|
32
|
+
projectId: string;
|
|
33
|
+
fileId: string;
|
|
34
|
+
versionId: string;
|
|
35
|
+
checksumSha256: string;
|
|
36
|
+
byteSize: number;
|
|
37
|
+
contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
|
|
38
|
+
deviceId: string;
|
|
39
|
+
};
|
|
40
|
+
requestId: string;
|
|
41
|
+
expectedRevision: number;
|
|
42
|
+
metadata: {
|
|
43
|
+
label: string;
|
|
44
|
+
} | null;
|
|
45
|
+
allowInspect: boolean;
|
|
46
|
+
allowPublish: boolean;
|
|
47
|
+
expiresAt: string;
|
|
48
|
+
} | null;
|
|
49
|
+
confirmed: {
|
|
50
|
+
reference: {
|
|
51
|
+
tenantId: string;
|
|
52
|
+
projectId: string;
|
|
53
|
+
fileId: string;
|
|
54
|
+
versionId: string;
|
|
55
|
+
checksumSha256: string;
|
|
56
|
+
byteSize: number;
|
|
57
|
+
contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
|
|
58
|
+
deviceId: string;
|
|
59
|
+
};
|
|
60
|
+
requestId: string;
|
|
61
|
+
expectedRevision: number;
|
|
62
|
+
metadata: {
|
|
63
|
+
label: string;
|
|
64
|
+
} | null;
|
|
65
|
+
allowInspect: boolean;
|
|
66
|
+
allowPublish: boolean;
|
|
67
|
+
expiresAt: string;
|
|
68
|
+
revision: number;
|
|
69
|
+
recordedAt: string;
|
|
70
|
+
} | null;
|
|
71
|
+
};
|
|
72
|
+
} | {
|
|
73
|
+
items: {
|
|
74
|
+
reference: {
|
|
75
|
+
tenantId: string;
|
|
76
|
+
projectId: string;
|
|
77
|
+
fileId: string;
|
|
78
|
+
versionId: string;
|
|
79
|
+
checksumSha256: string;
|
|
80
|
+
byteSize: number;
|
|
81
|
+
contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
|
|
82
|
+
deviceId: string;
|
|
83
|
+
};
|
|
84
|
+
metadata: {
|
|
85
|
+
label: string;
|
|
86
|
+
} | null;
|
|
87
|
+
accessRevision: number;
|
|
88
|
+
allowInspect: boolean;
|
|
89
|
+
allowPublish: boolean;
|
|
90
|
+
expiresAt: string;
|
|
91
|
+
}[];
|
|
92
|
+
nextCursor: string | null;
|
|
93
|
+
} | {
|
|
94
|
+
items: {
|
|
95
|
+
reference: {
|
|
96
|
+
tenantId: string;
|
|
97
|
+
projectId: string;
|
|
98
|
+
fileId: string;
|
|
99
|
+
versionId: string;
|
|
100
|
+
checksumSha256: string;
|
|
101
|
+
byteSize: number;
|
|
102
|
+
contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
|
|
103
|
+
deviceId: string;
|
|
104
|
+
};
|
|
105
|
+
ownerKey: string;
|
|
106
|
+
title: string;
|
|
107
|
+
createdAt: string;
|
|
108
|
+
revision: number;
|
|
109
|
+
access: {
|
|
110
|
+
state: "REJECTED" | "UNKNOWN" | "PENDING" | "LOCAL_ONLY" | "SYNCED";
|
|
111
|
+
desired: {
|
|
112
|
+
reference: {
|
|
113
|
+
tenantId: string;
|
|
114
|
+
projectId: string;
|
|
115
|
+
fileId: string;
|
|
116
|
+
versionId: string;
|
|
117
|
+
checksumSha256: string;
|
|
118
|
+
byteSize: number;
|
|
119
|
+
contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
|
|
120
|
+
deviceId: string;
|
|
121
|
+
};
|
|
122
|
+
requestId: string;
|
|
123
|
+
expectedRevision: number;
|
|
124
|
+
metadata: {
|
|
125
|
+
label: string;
|
|
126
|
+
} | null;
|
|
127
|
+
allowInspect: boolean;
|
|
128
|
+
allowPublish: boolean;
|
|
129
|
+
expiresAt: string;
|
|
130
|
+
} | null;
|
|
131
|
+
confirmed: {
|
|
132
|
+
reference: {
|
|
133
|
+
tenantId: string;
|
|
134
|
+
projectId: string;
|
|
135
|
+
fileId: string;
|
|
136
|
+
versionId: string;
|
|
137
|
+
checksumSha256: string;
|
|
138
|
+
byteSize: number;
|
|
139
|
+
contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
|
|
140
|
+
deviceId: string;
|
|
141
|
+
};
|
|
142
|
+
requestId: string;
|
|
143
|
+
expectedRevision: number;
|
|
144
|
+
metadata: {
|
|
145
|
+
label: string;
|
|
146
|
+
} | null;
|
|
147
|
+
allowInspect: boolean;
|
|
148
|
+
allowPublish: boolean;
|
|
149
|
+
expiresAt: string;
|
|
150
|
+
revision: number;
|
|
151
|
+
recordedAt: string;
|
|
152
|
+
} | null;
|
|
153
|
+
};
|
|
154
|
+
}[];
|
|
155
|
+
nextCursor: string | null;
|
|
156
|
+
} | {
|
|
157
|
+
reference: {
|
|
158
|
+
tenantId: string;
|
|
159
|
+
projectId: string;
|
|
160
|
+
fileId: string;
|
|
161
|
+
versionId: string;
|
|
162
|
+
checksumSha256: string;
|
|
163
|
+
byteSize: number;
|
|
164
|
+
contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
|
|
165
|
+
deviceId: string;
|
|
166
|
+
};
|
|
167
|
+
metadata: {
|
|
168
|
+
label: string;
|
|
169
|
+
} | null;
|
|
170
|
+
accessRevision: number;
|
|
171
|
+
allowInspect: boolean;
|
|
172
|
+
allowPublish: boolean;
|
|
173
|
+
expiresAt: string;
|
|
174
|
+
} | {
|
|
175
|
+
reference: {
|
|
176
|
+
tenantId: string;
|
|
177
|
+
projectId: string;
|
|
178
|
+
fileId: string;
|
|
179
|
+
versionId: string;
|
|
180
|
+
checksumSha256: string;
|
|
181
|
+
byteSize: number;
|
|
182
|
+
contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
|
|
183
|
+
deviceId: string;
|
|
184
|
+
};
|
|
185
|
+
offset: number;
|
|
186
|
+
contentBase64: string;
|
|
187
|
+
complete: boolean;
|
|
188
|
+
} | {
|
|
189
|
+
fileCount: number;
|
|
190
|
+
totalBytes: number;
|
|
191
|
+
quotaBytes: number;
|
|
192
|
+
availableDiskBytes: number;
|
|
193
|
+
} | null>;
|
|
194
|
+
import(raw: unknown, bytes: Readable, signal?: AbortSignal): Promise<{
|
|
195
|
+
reference: {
|
|
196
|
+
tenantId: string;
|
|
197
|
+
projectId: string;
|
|
198
|
+
fileId: string;
|
|
199
|
+
versionId: string;
|
|
200
|
+
checksumSha256: string;
|
|
201
|
+
byteSize: number;
|
|
202
|
+
contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
|
|
203
|
+
deviceId: string;
|
|
204
|
+
};
|
|
205
|
+
ownerKey: string;
|
|
206
|
+
title: string;
|
|
207
|
+
createdAt: string;
|
|
208
|
+
revision: number;
|
|
209
|
+
access: {
|
|
210
|
+
state: "REJECTED" | "UNKNOWN" | "PENDING" | "LOCAL_ONLY" | "SYNCED";
|
|
211
|
+
desired: {
|
|
212
|
+
reference: {
|
|
213
|
+
tenantId: string;
|
|
214
|
+
projectId: string;
|
|
215
|
+
fileId: string;
|
|
216
|
+
versionId: string;
|
|
217
|
+
checksumSha256: string;
|
|
218
|
+
byteSize: number;
|
|
219
|
+
contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
|
|
220
|
+
deviceId: string;
|
|
221
|
+
};
|
|
222
|
+
requestId: string;
|
|
223
|
+
expectedRevision: number;
|
|
224
|
+
metadata: {
|
|
225
|
+
label: string;
|
|
226
|
+
} | null;
|
|
227
|
+
allowInspect: boolean;
|
|
228
|
+
allowPublish: boolean;
|
|
229
|
+
expiresAt: string;
|
|
230
|
+
} | null;
|
|
231
|
+
confirmed: {
|
|
232
|
+
reference: {
|
|
233
|
+
tenantId: string;
|
|
234
|
+
projectId: string;
|
|
235
|
+
fileId: string;
|
|
236
|
+
versionId: string;
|
|
237
|
+
checksumSha256: string;
|
|
238
|
+
byteSize: number;
|
|
239
|
+
contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
|
|
240
|
+
deviceId: string;
|
|
241
|
+
};
|
|
242
|
+
requestId: string;
|
|
243
|
+
expectedRevision: number;
|
|
244
|
+
metadata: {
|
|
245
|
+
label: string;
|
|
246
|
+
} | null;
|
|
247
|
+
allowInspect: boolean;
|
|
248
|
+
allowPublish: boolean;
|
|
249
|
+
expiresAt: string;
|
|
250
|
+
revision: number;
|
|
251
|
+
recordedAt: string;
|
|
252
|
+
} | null;
|
|
253
|
+
};
|
|
254
|
+
}>;
|
|
255
|
+
media(raw: unknown, input?: {
|
|
256
|
+
method?: "GET" | "HEAD";
|
|
257
|
+
range?: string;
|
|
258
|
+
}, signal?: AbortSignal): Promise<{
|
|
259
|
+
contentRange?: string;
|
|
260
|
+
stream: Readable;
|
|
261
|
+
contentType: "application/json" | "application/pdf" | "application/octet-stream" | "text/plain" | "image/png" | "image/jpeg" | "image/webp" | "audio/wav" | "video/mp4";
|
|
262
|
+
byteSize: number;
|
|
263
|
+
contentLength: number;
|
|
264
|
+
httpStatus: 200 | 206;
|
|
265
|
+
}>;
|
|
266
|
+
}
|
|
267
|
+
export { LocalLibraryCallSchema, LocalLibraryCapabilitySchema, LocalLibraryImportSchema, LocalLibraryItemSchema, LocalLibraryPageSchema, LocalLibraryProjectionPageSchema, LocalLibraryProjectionSchema, LocalLibraryReadReplySchema, LocalLibraryUsageSchema, LocalLibraryGetSchema, LocalLibraryQuerySchema, LocalLibraryProjectionQuerySchema, LocalLibraryReferenceSchema, LocalLibraryImportReceiptQuerySchema, LocalLibraryContentTypeSchema, } from "../../contracts/local-execution/index.js";
|
|
268
|
+
export { localLibraryProfile } from "../../contracts/local-execution/index.js";
|