@nativestudio/sdk 0.3.0-rc.2 → 0.3.0-rc.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/COMPATIBILITY.json +4 -4
- package/LICENSE +201 -21
- package/dist/_chunks/chunk-2QDPFLIO.js +1 -0
- package/dist/_chunks/chunk-7DXSLHXW.js +1 -0
- package/dist/_chunks/chunk-AFUVP2DC.js +1 -0
- package/dist/_chunks/chunk-ASUZJSEP.js +1 -0
- package/dist/_chunks/chunk-K3TIFCD3.js +1 -0
- package/dist/_chunks/chunk-NNDKZ5H5.js +1 -0
- package/dist/_chunks/chunk-Q53Q74OP.js +1 -0
- package/dist/_chunks/chunk-QVP4AMRJ.js +1 -0
- package/dist/_chunks/chunk-TT7IA5HB.js +1 -0
- package/dist/_chunks/chunk-UKPD77FB.js +1 -0
- package/dist/_chunks/chunk-V636KA7B.js +1 -0
- package/dist/_chunks/chunk-VXBIT7XN.js +1 -0
- package/dist/_chunks/chunk-WNXKJRZ6.js +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 +89 -0
- package/dist/_types/contracts/interface/production-snapshot.d.ts +106 -199
- package/dist/_types/contracts/interface/query.d.ts +85 -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 +19 -4
- 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 +76 -8
- package/dist/_types/contracts/navigation-groups.d.ts +2 -2
- package/dist/_types/contracts/navigation.d.ts +79 -26
- 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/account.d.ts +13 -0
- package/dist/_types/sdk/auxiliary-media.d.ts +1 -0
- package/dist/_types/sdk/catalog/agent-host-execution.d.ts +324 -112
- package/dist/_types/sdk/catalog/agent-host.d.ts +222 -70
- package/dist/_types/sdk/catalog/assembly.d.ts +26 -37628
- package/dist/_types/sdk/catalog/audio-caption.d.ts +126 -22
- package/dist/_types/sdk/catalog/canonical-repair.d.ts +132 -132
- package/dist/_types/sdk/catalog/carriers.d.ts +59 -0
- package/dist/_types/sdk/catalog/composition-source.d.ts +14 -14
- package/dist/_types/sdk/catalog/composition.d.ts +17 -2813
- package/dist/_types/sdk/catalog/core.d.ts +636 -18
- package/dist/_types/sdk/catalog/delivery.d.ts +12 -14167
- package/dist/_types/sdk/catalog/device-library.d.ts +1024 -0
- package/dist/_types/sdk/catalog/device-management.d.ts +921 -0
- package/dist/_types/sdk/catalog/discovery.d.ts +38 -4
- package/dist/_types/sdk/catalog/editor.d.ts +23 -6538
- package/dist/_types/sdk/catalog/enterprise-brand.d.ts +462 -0
- package/dist/_types/sdk/catalog/federation.d.ts +4164 -0
- package/dist/_types/sdk/catalog/generation.d.ts +284 -8
- package/dist/_types/sdk/catalog/imported-visual.d.ts +246 -816
- package/dist/_types/sdk/catalog/keyframe-review.d.ts +10 -10
- package/dist/_types/sdk/catalog/lifecycle-events.d.ts +442 -16
- package/dist/_types/sdk/catalog/mcp.d.ts +115 -7
- package/dist/_types/sdk/catalog/media-descriptors.d.ts +214 -11
- package/dist/_types/sdk/catalog/media-observation.d.ts +1031 -14
- package/dist/_types/sdk/catalog/native-tool-authority.d.ts +54 -24
- package/dist/_types/sdk/catalog/navigation.d.ts +379 -28
- package/dist/_types/sdk/catalog/planning-intelligence.d.ts +136 -8
- package/dist/_types/sdk/catalog/programmatic-exploration.d.ts +327 -9853
- package/dist/_types/sdk/catalog/programmatic-review.d.ts +8 -8
- package/dist/_types/sdk/catalog/provider.d.ts +394 -20
- package/dist/_types/sdk/catalog/reference-preview.d.ts +94 -30
- package/dist/_types/sdk/catalog/repair-strategy.d.ts +180 -8914
- package/dist/_types/sdk/catalog/reviewer.d.ts +276 -23131
- package/dist/_types/sdk/catalog/series-standard.d.ts +5402 -0
- package/dist/_types/sdk/catalog/shares.d.ts +305 -0
- package/dist/_types/sdk/catalog/shot-preparation.d.ts +51 -2972
- package/dist/_types/sdk/catalog/sound-making-plan.d.ts +6 -1776
- package/dist/_types/sdk/catalog/source-sync.d.ts +8 -498
- package/dist/_types/sdk/catalog/spec.d.ts +10 -2
- package/dist/_types/sdk/catalog/speech.d.ts +856 -4
- package/dist/_types/sdk/catalog/temporal-evidence.d.ts +4 -2
- package/dist/_types/sdk/catalog/video-review.d.ts +10 -10
- package/dist/_types/sdk/catalog/visual-exploration.d.ts +556 -440
- package/dist/_types/sdk/catalog/voice-profile.d.ts +1547 -0
- package/dist/_types/sdk/catalog/voice-review.d.ts +1125 -0
- package/dist/_types/sdk/client.d.ts +30 -3
- package/dist/_types/sdk/desktop-previews.d.ts +3 -3
- package/dist/_types/sdk/desktop-releases.d.ts +2 -2
- package/dist/_types/sdk/device-enrollment-handoff.d.ts +249 -0
- package/dist/_types/sdk/device-renders.d.ts +3751 -0
- package/dist/_types/sdk/direct-source.d.ts +147 -0
- package/dist/_types/sdk/errors.d.ts +9 -3
- package/dist/_types/sdk/federation-notice-result.d.ts +22 -0
- package/dist/_types/sdk/feedback-observer.d.ts +10 -0
- package/dist/_types/sdk/host-protocol.d.ts +8 -0
- package/dist/_types/sdk/image-media.d.ts +2 -2
- package/dist/_types/sdk/immutable-media.d.ts +24 -0
- package/dist/_types/sdk/index.d.ts +16 -1
- 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/_types/sdk/mcp-client.d.ts +13 -5
- package/dist/_types/sdk/mcp-discovery.d.ts +14 -0
- package/dist/_types/sdk/mcp-image.d.ts +4 -4
- package/dist/_types/sdk/mcp-port.d.ts +73 -0
- package/dist/_types/sdk/media.d.ts +11 -9
- package/dist/_types/sdk/navigation-client.d.ts +56 -122
- package/dist/_types/sdk/navigation-facade.d.ts +191 -17
- package/dist/_types/sdk/observe.d.ts +31 -0
- package/dist/_types/sdk/runtime-authority.d.ts +18 -8
- package/dist/_types/sdk/transport/http.d.ts +2 -0
- package/dist/_types/sdk/webhook-receiver.d.ts +38 -0
- package/dist/account.js +1 -1
- package/dist/errors.js +1 -1
- package/dist/host-protocol.d.ts +1 -0
- package/dist/host-protocol.js +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/local-runtime.js +1 -1
- package/dist/mcp-discovery.d.ts +1 -0
- package/dist/mcp-discovery.js +1 -0
- package/dist/native/helper.exe +0 -0
- package/dist/native/helper.json +1 -0
- package/dist/runtime-authority.js +1 -1
- package/package.json +10 -8
- package/README.md +0 -75
- package/dist/_chunks/chunk-34KSWLCI.js +0 -1
- package/dist/_chunks/chunk-4IOFVNFG.js +0 -1
- package/dist/_chunks/chunk-4M3AGNTZ.js +0 -1
- package/dist/_chunks/chunk-6NVIN2NI.js +0 -1
- package/dist/_chunks/chunk-7YCEMDNZ.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
|
@@ -27,6 +27,19 @@ export declare class NativeStudioNavigationFacade {
|
|
|
27
27
|
createdByPrincipalId: string & import("zod").$brand<"PrincipalId">;
|
|
28
28
|
createdAt: string;
|
|
29
29
|
updatedAt: string;
|
|
30
|
+
humanLinks?: {
|
|
31
|
+
status: "AVAILABLE";
|
|
32
|
+
items: {
|
|
33
|
+
rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
|
|
34
|
+
href: string;
|
|
35
|
+
}[];
|
|
36
|
+
} | {
|
|
37
|
+
status: "UNAVAILABLE" | "UNCONFIGURED";
|
|
38
|
+
items: {
|
|
39
|
+
rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
|
|
40
|
+
href: string;
|
|
41
|
+
}[];
|
|
42
|
+
} | undefined;
|
|
30
43
|
}[];
|
|
31
44
|
page: {
|
|
32
45
|
hasMore: boolean;
|
|
@@ -121,7 +134,7 @@ export declare class NativeStudioNavigationFacade {
|
|
|
121
134
|
registration: "REGISTERED" | "NOT_ON_SURFACE";
|
|
122
135
|
readOnly: boolean | null;
|
|
123
136
|
purpose: string | null;
|
|
124
|
-
group: "local" | "
|
|
137
|
+
group: "local" | "delivery" | "execution" | "review" | "planning" | "navigation" | "materials" | "administration" | "unclassified" | null;
|
|
125
138
|
context: {
|
|
126
139
|
tenantId: string & import("zod").$brand<"TenantId">;
|
|
127
140
|
projectId: string & import("zod").$brand<"ProjectId">;
|
|
@@ -129,7 +142,7 @@ export declare class NativeStudioNavigationFacade {
|
|
|
129
142
|
revision: number;
|
|
130
143
|
};
|
|
131
144
|
inputHints: {
|
|
132
|
-
knownInputs: Partial<Record<"shotId" | "artifactId" | "tenantId" | "projectId" | "productionId" | "
|
|
145
|
+
knownInputs: Partial<Record<"shotId" | "artifactId" | "tenantId" | "projectId" | "productionId" | "findingId" | "operationId" | "sceneId", string>>;
|
|
133
146
|
schemaFingerprint: string | null;
|
|
134
147
|
requiredInputs: string[];
|
|
135
148
|
missingInputs: string[];
|
|
@@ -148,6 +161,7 @@ export declare class NativeStudioNavigationFacade {
|
|
|
148
161
|
evidence: {
|
|
149
162
|
path: string;
|
|
150
163
|
};
|
|
164
|
+
invocationTool?: "studio_capability_query" | "studio_capability_invoke" | undefined;
|
|
151
165
|
}[];
|
|
152
166
|
page: {
|
|
153
167
|
hasMore: boolean;
|
|
@@ -170,18 +184,71 @@ export declare class NativeStudioNavigationFacade {
|
|
|
170
184
|
productionId: string & import("zod").$brand<"ProductionId">;
|
|
171
185
|
operationId: string & import("zod").$brand<"OperationId">;
|
|
172
186
|
};
|
|
187
|
+
} | {
|
|
188
|
+
tool: "studio_capability_query";
|
|
189
|
+
arguments: {
|
|
190
|
+
tenantId: string & import("zod").$brand<"TenantId">;
|
|
191
|
+
tool: "operation_get";
|
|
192
|
+
arguments: {
|
|
193
|
+
tenantId: string & import("zod").$brand<"TenantId">;
|
|
194
|
+
productionId: string & import("zod").$brand<"ProductionId">;
|
|
195
|
+
operationId: string & import("zod").$brand<"OperationId">;
|
|
196
|
+
};
|
|
197
|
+
capabilityVersion?: string | undefined;
|
|
198
|
+
};
|
|
173
199
|
} | null;
|
|
174
200
|
targetCount: number;
|
|
175
201
|
blockerCount: number;
|
|
176
202
|
evidence: {
|
|
177
203
|
path: string;
|
|
178
204
|
};
|
|
205
|
+
failure?: {
|
|
206
|
+
reasonCodes: ("AMBIGUOUS" | "PERMANENT_OPERATIONAL" | "SEMANTIC" | "RATE_LIMIT" | "TRANSIENT" | "NOT_RECORDED")[];
|
|
207
|
+
summary: string;
|
|
208
|
+
next: {
|
|
209
|
+
tool: "operation_get";
|
|
210
|
+
arguments: {
|
|
211
|
+
tenantId: string & import("zod").$brand<"TenantId">;
|
|
212
|
+
productionId: string & import("zod").$brand<"ProductionId">;
|
|
213
|
+
operationId: string & import("zod").$brand<"OperationId">;
|
|
214
|
+
};
|
|
215
|
+
} | {
|
|
216
|
+
tool: "studio_capability_query";
|
|
217
|
+
arguments: {
|
|
218
|
+
tenantId: string & import("zod").$brand<"TenantId">;
|
|
219
|
+
tool: "operation_get";
|
|
220
|
+
arguments: {
|
|
221
|
+
tenantId: string & import("zod").$brand<"TenantId">;
|
|
222
|
+
productionId: string & import("zod").$brand<"ProductionId">;
|
|
223
|
+
operationId: string & import("zod").$brand<"OperationId">;
|
|
224
|
+
};
|
|
225
|
+
capabilityVersion?: string | undefined;
|
|
226
|
+
};
|
|
227
|
+
} | {
|
|
228
|
+
tool: "production_snapshot";
|
|
229
|
+
arguments: {
|
|
230
|
+
tenantId: string & import("zod").$brand<"TenantId">;
|
|
231
|
+
productionId: string & import("zod").$brand<"ProductionId">;
|
|
232
|
+
};
|
|
233
|
+
} | {
|
|
234
|
+
tool: "studio_capability_query";
|
|
235
|
+
arguments: {
|
|
236
|
+
tenantId: string & import("zod").$brand<"TenantId">;
|
|
237
|
+
tool: "production_snapshot";
|
|
238
|
+
arguments: {
|
|
239
|
+
tenantId: string & import("zod").$brand<"TenantId">;
|
|
240
|
+
productionId: string & import("zod").$brand<"ProductionId">;
|
|
241
|
+
};
|
|
242
|
+
capabilityVersion?: string | undefined;
|
|
243
|
+
};
|
|
244
|
+
} | null;
|
|
245
|
+
} | undefined;
|
|
179
246
|
}[];
|
|
180
247
|
};
|
|
181
248
|
related: {
|
|
182
249
|
tenantId: string & import("zod").$brand<"TenantId">;
|
|
183
250
|
catalogVersion: string;
|
|
184
|
-
outcome: "
|
|
251
|
+
outcome: "AMBIGUOUS" | "MATCHES" | "NO_MATCH";
|
|
185
252
|
candidates: {
|
|
186
253
|
tool: string;
|
|
187
254
|
title: string;
|
|
@@ -190,7 +257,8 @@ export declare class NativeStudioNavigationFacade {
|
|
|
190
257
|
readOnly: boolean;
|
|
191
258
|
registration: "REGISTERED";
|
|
192
259
|
matchedTerms: string[];
|
|
193
|
-
group?: "local" | "
|
|
260
|
+
group?: "local" | "delivery" | "execution" | "review" | "planning" | "navigation" | "materials" | "administration" | "unclassified" | undefined;
|
|
261
|
+
invocationTool?: "studio_capability_query" | "studio_capability_invoke" | undefined;
|
|
194
262
|
}[];
|
|
195
263
|
page: {
|
|
196
264
|
hasMore: boolean;
|
|
@@ -286,7 +354,7 @@ export declare class NativeStudioNavigationFacade {
|
|
|
286
354
|
registration: "REGISTERED" | "NOT_ON_SURFACE";
|
|
287
355
|
readOnly: boolean | null;
|
|
288
356
|
purpose: string | null;
|
|
289
|
-
group: "local" | "
|
|
357
|
+
group: "local" | "delivery" | "execution" | "review" | "planning" | "navigation" | "materials" | "administration" | "unclassified" | null;
|
|
290
358
|
context: {
|
|
291
359
|
tenantId: string & import("zod").$brand<"TenantId">;
|
|
292
360
|
projectId: string & import("zod").$brand<"ProjectId">;
|
|
@@ -294,7 +362,7 @@ export declare class NativeStudioNavigationFacade {
|
|
|
294
362
|
revision: number;
|
|
295
363
|
};
|
|
296
364
|
inputHints: {
|
|
297
|
-
knownInputs: Partial<Record<"shotId" | "artifactId" | "tenantId" | "projectId" | "productionId" | "
|
|
365
|
+
knownInputs: Partial<Record<"shotId" | "artifactId" | "tenantId" | "projectId" | "productionId" | "findingId" | "operationId" | "sceneId", string>>;
|
|
298
366
|
schemaFingerprint: string | null;
|
|
299
367
|
requiredInputs: string[];
|
|
300
368
|
missingInputs: string[];
|
|
@@ -313,6 +381,7 @@ export declare class NativeStudioNavigationFacade {
|
|
|
313
381
|
evidence: {
|
|
314
382
|
path: string;
|
|
315
383
|
};
|
|
384
|
+
invocationTool?: "studio_capability_query" | "studio_capability_invoke" | undefined;
|
|
316
385
|
}[];
|
|
317
386
|
page: {
|
|
318
387
|
hasMore: boolean;
|
|
@@ -335,18 +404,71 @@ export declare class NativeStudioNavigationFacade {
|
|
|
335
404
|
productionId: string & import("zod").$brand<"ProductionId">;
|
|
336
405
|
operationId: string & import("zod").$brand<"OperationId">;
|
|
337
406
|
};
|
|
407
|
+
} | {
|
|
408
|
+
tool: "studio_capability_query";
|
|
409
|
+
arguments: {
|
|
410
|
+
tenantId: string & import("zod").$brand<"TenantId">;
|
|
411
|
+
tool: "operation_get";
|
|
412
|
+
arguments: {
|
|
413
|
+
tenantId: string & import("zod").$brand<"TenantId">;
|
|
414
|
+
productionId: string & import("zod").$brand<"ProductionId">;
|
|
415
|
+
operationId: string & import("zod").$brand<"OperationId">;
|
|
416
|
+
};
|
|
417
|
+
capabilityVersion?: string | undefined;
|
|
418
|
+
};
|
|
338
419
|
} | null;
|
|
339
420
|
targetCount: number;
|
|
340
421
|
blockerCount: number;
|
|
341
422
|
evidence: {
|
|
342
423
|
path: string;
|
|
343
424
|
};
|
|
425
|
+
failure?: {
|
|
426
|
+
reasonCodes: ("AMBIGUOUS" | "PERMANENT_OPERATIONAL" | "SEMANTIC" | "RATE_LIMIT" | "TRANSIENT" | "NOT_RECORDED")[];
|
|
427
|
+
summary: string;
|
|
428
|
+
next: {
|
|
429
|
+
tool: "operation_get";
|
|
430
|
+
arguments: {
|
|
431
|
+
tenantId: string & import("zod").$brand<"TenantId">;
|
|
432
|
+
productionId: string & import("zod").$brand<"ProductionId">;
|
|
433
|
+
operationId: string & import("zod").$brand<"OperationId">;
|
|
434
|
+
};
|
|
435
|
+
} | {
|
|
436
|
+
tool: "studio_capability_query";
|
|
437
|
+
arguments: {
|
|
438
|
+
tenantId: string & import("zod").$brand<"TenantId">;
|
|
439
|
+
tool: "operation_get";
|
|
440
|
+
arguments: {
|
|
441
|
+
tenantId: string & import("zod").$brand<"TenantId">;
|
|
442
|
+
productionId: string & import("zod").$brand<"ProductionId">;
|
|
443
|
+
operationId: string & import("zod").$brand<"OperationId">;
|
|
444
|
+
};
|
|
445
|
+
capabilityVersion?: string | undefined;
|
|
446
|
+
};
|
|
447
|
+
} | {
|
|
448
|
+
tool: "production_snapshot";
|
|
449
|
+
arguments: {
|
|
450
|
+
tenantId: string & import("zod").$brand<"TenantId">;
|
|
451
|
+
productionId: string & import("zod").$brand<"ProductionId">;
|
|
452
|
+
};
|
|
453
|
+
} | {
|
|
454
|
+
tool: "studio_capability_query";
|
|
455
|
+
arguments: {
|
|
456
|
+
tenantId: string & import("zod").$brand<"TenantId">;
|
|
457
|
+
tool: "production_snapshot";
|
|
458
|
+
arguments: {
|
|
459
|
+
tenantId: string & import("zod").$brand<"TenantId">;
|
|
460
|
+
productionId: string & import("zod").$brand<"ProductionId">;
|
|
461
|
+
};
|
|
462
|
+
capabilityVersion?: string | undefined;
|
|
463
|
+
};
|
|
464
|
+
} | null;
|
|
465
|
+
} | undefined;
|
|
344
466
|
}[];
|
|
345
467
|
};
|
|
346
468
|
related: {
|
|
347
469
|
tenantId: string & import("zod").$brand<"TenantId">;
|
|
348
470
|
catalogVersion: string;
|
|
349
|
-
outcome: "
|
|
471
|
+
outcome: "AMBIGUOUS" | "MATCHES" | "NO_MATCH";
|
|
350
472
|
candidates: {
|
|
351
473
|
tool: string;
|
|
352
474
|
title: string;
|
|
@@ -355,7 +477,8 @@ export declare class NativeStudioNavigationFacade {
|
|
|
355
477
|
readOnly: boolean;
|
|
356
478
|
registration: "REGISTERED";
|
|
357
479
|
matchedTerms: string[];
|
|
358
|
-
group?: "local" | "
|
|
480
|
+
group?: "local" | "delivery" | "execution" | "review" | "planning" | "navigation" | "materials" | "administration" | "unclassified" | undefined;
|
|
481
|
+
invocationTool?: "studio_capability_query" | "studio_capability_invoke" | undefined;
|
|
359
482
|
}[];
|
|
360
483
|
page: {
|
|
361
484
|
hasMore: boolean;
|
|
@@ -396,22 +519,64 @@ export declare class NativeStudioNavigationFacade {
|
|
|
396
519
|
}[];
|
|
397
520
|
startedAt: string;
|
|
398
521
|
updatedAt: string;
|
|
522
|
+
humanLinks?: {
|
|
523
|
+
status: "AVAILABLE";
|
|
524
|
+
items: {
|
|
525
|
+
rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
|
|
526
|
+
href: string;
|
|
527
|
+
}[];
|
|
528
|
+
} | {
|
|
529
|
+
status: "UNAVAILABLE" | "UNCONFIGURED";
|
|
530
|
+
items: {
|
|
531
|
+
rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
|
|
532
|
+
href: string;
|
|
533
|
+
}[];
|
|
534
|
+
} | undefined;
|
|
535
|
+
failure?: {
|
|
536
|
+
reasonCodes: ("AMBIGUOUS" | "PERMANENT_OPERATIONAL" | "SEMANTIC" | "RATE_LIMIT" | "TRANSIENT" | "NOT_RECORDED")[];
|
|
537
|
+
summary: string;
|
|
538
|
+
next: {
|
|
539
|
+
capability: "operation.get";
|
|
540
|
+
input: {
|
|
541
|
+
tenantId: string & import("zod").$brand<"TenantId">;
|
|
542
|
+
productionId: string & import("zod").$brand<"ProductionId">;
|
|
543
|
+
operationId: string & import("zod").$brand<"OperationId">;
|
|
544
|
+
};
|
|
545
|
+
} | {
|
|
546
|
+
capability: "production.snapshot";
|
|
547
|
+
input: {
|
|
548
|
+
tenantId: string & import("zod").$brand<"TenantId">;
|
|
549
|
+
productionId: string & import("zod").$brand<"ProductionId">;
|
|
550
|
+
};
|
|
551
|
+
};
|
|
552
|
+
} | undefined;
|
|
399
553
|
}>;
|
|
400
554
|
groups(input?: SdkInput<"studio.capability.groups">, options?: SdkRequestOptions): Promise<{
|
|
401
555
|
tenantId: string & import("zod").$brand<"TenantId">;
|
|
402
556
|
catalogVersion: string;
|
|
403
557
|
groups: {
|
|
404
|
-
id: "local" | "
|
|
558
|
+
id: "local" | "delivery" | "execution" | "review" | "planning" | "navigation" | "materials" | "administration" | "unclassified";
|
|
405
559
|
title: string;
|
|
406
560
|
description: string;
|
|
407
561
|
count: number;
|
|
408
562
|
readOnlyCount: number;
|
|
409
563
|
}[];
|
|
564
|
+
definitions?: {
|
|
565
|
+
name: string;
|
|
566
|
+
inputSchema: Record<string, unknown>;
|
|
567
|
+
title?: string | undefined;
|
|
568
|
+
description?: string | undefined;
|
|
569
|
+
outputSchema?: Record<string, unknown> | undefined;
|
|
570
|
+
annotations?: Record<string, unknown> | undefined;
|
|
571
|
+
execution?: Record<string, unknown> | undefined;
|
|
572
|
+
_meta?: Record<string, unknown> | undefined;
|
|
573
|
+
icons?: Record<string, unknown>[] | undefined;
|
|
574
|
+
}[] | undefined;
|
|
410
575
|
}>;
|
|
411
576
|
search(input: SdkInput<"studio.capability.search">, options?: SdkRequestOptions): Promise<{
|
|
412
577
|
tenantId: string & import("zod").$brand<"TenantId">;
|
|
413
578
|
catalogVersion: string;
|
|
414
|
-
outcome: "
|
|
579
|
+
outcome: "AMBIGUOUS" | "MATCHES" | "NO_MATCH";
|
|
415
580
|
candidates: {
|
|
416
581
|
tool: string;
|
|
417
582
|
title: string;
|
|
@@ -420,7 +585,8 @@ export declare class NativeStudioNavigationFacade {
|
|
|
420
585
|
readOnly: boolean;
|
|
421
586
|
registration: "REGISTERED";
|
|
422
587
|
matchedTerms: string[];
|
|
423
|
-
group?: "local" | "
|
|
588
|
+
group?: "local" | "delivery" | "execution" | "review" | "planning" | "navigation" | "materials" | "administration" | "unclassified" | undefined;
|
|
589
|
+
invocationTool?: "studio_capability_query" | "studio_capability_invoke" | undefined;
|
|
424
590
|
}[];
|
|
425
591
|
page: {
|
|
426
592
|
hasMore: boolean;
|
|
@@ -437,13 +603,9 @@ export declare class NativeStudioNavigationFacade {
|
|
|
437
603
|
registration: "REGISTERED";
|
|
438
604
|
tenantId: string & import("zod").$brand<"TenantId">;
|
|
439
605
|
catalogVersion: string;
|
|
440
|
-
inputSchema: Record<string, unknown>;
|
|
441
|
-
outputSchema: Record<string, unknown> | null;
|
|
442
606
|
outputContract: "DECLARED" | "NOT_DECLARED";
|
|
443
607
|
schemaCursor: string;
|
|
444
|
-
|
|
445
|
-
group?: "local" | "review" | "execution" | "planning" | "delivery" | "navigation" | "materials" | "administration" | "unclassified" | undefined;
|
|
446
|
-
definition?: {
|
|
608
|
+
definition: {
|
|
447
609
|
name: string;
|
|
448
610
|
inputSchema: Record<string, unknown>;
|
|
449
611
|
title?: string | undefined;
|
|
@@ -453,6 +615,18 @@ export declare class NativeStudioNavigationFacade {
|
|
|
453
615
|
execution?: Record<string, unknown> | undefined;
|
|
454
616
|
_meta?: Record<string, unknown> | undefined;
|
|
455
617
|
icons?: Record<string, unknown>[] | undefined;
|
|
456
|
-
}
|
|
618
|
+
};
|
|
619
|
+
guidance: "Use this bounded definition as client-local schema metadata. Standard tools/list stays stable; commands revalidate authority and current state.";
|
|
620
|
+
group?: "local" | "delivery" | "execution" | "review" | "planning" | "navigation" | "materials" | "administration" | "unclassified" | undefined;
|
|
621
|
+
invocationTool?: "studio_capability_query" | "studio_capability_invoke" | undefined;
|
|
622
|
+
capabilityVersion?: string | undefined;
|
|
623
|
+
}>;
|
|
624
|
+
query(input: SdkInput<"studio.capability.query">, options?: SdkRequestOptions): Promise<{
|
|
625
|
+
tool: string;
|
|
626
|
+
result?: unknown;
|
|
627
|
+
}>;
|
|
628
|
+
invoke(input: SdkInput<"studio.capability.invoke">, options?: SdkRequestOptions): Promise<{
|
|
629
|
+
tool: string;
|
|
630
|
+
result?: unknown;
|
|
457
631
|
}>;
|
|
458
632
|
}
|
|
@@ -48,4 +48,35 @@ export declare function waitForOperation(client: Pick<NativeStudioAgentClient, "
|
|
|
48
48
|
}[];
|
|
49
49
|
startedAt: string;
|
|
50
50
|
updatedAt: string;
|
|
51
|
+
humanLinks?: {
|
|
52
|
+
status: "AVAILABLE";
|
|
53
|
+
items: {
|
|
54
|
+
rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
|
|
55
|
+
href: string;
|
|
56
|
+
}[];
|
|
57
|
+
} | {
|
|
58
|
+
status: "UNAVAILABLE" | "UNCONFIGURED";
|
|
59
|
+
items: {
|
|
60
|
+
rel: "delivery" | "workspace" | "project" | "production" | "artifact" | "voice_profile";
|
|
61
|
+
href: string;
|
|
62
|
+
}[];
|
|
63
|
+
} | undefined;
|
|
64
|
+
failure?: {
|
|
65
|
+
reasonCodes: ("AMBIGUOUS" | "PERMANENT_OPERATIONAL" | "SEMANTIC" | "RATE_LIMIT" | "TRANSIENT" | "NOT_RECORDED")[];
|
|
66
|
+
summary: string;
|
|
67
|
+
next: {
|
|
68
|
+
capability: "operation.get";
|
|
69
|
+
input: {
|
|
70
|
+
tenantId: string & import("zod").$brand<"TenantId">;
|
|
71
|
+
productionId: string & import("zod").$brand<"ProductionId">;
|
|
72
|
+
operationId: string & import("zod").$brand<"OperationId">;
|
|
73
|
+
};
|
|
74
|
+
} | {
|
|
75
|
+
capability: "production.snapshot";
|
|
76
|
+
input: {
|
|
77
|
+
tenantId: string & import("zod").$brand<"TenantId">;
|
|
78
|
+
productionId: string & import("zod").$brand<"ProductionId">;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
} | undefined;
|
|
51
82
|
}>;
|
|
@@ -22,13 +22,18 @@ export declare class NativeStudioRuntimeAuthorityClient {
|
|
|
22
22
|
bindingRevision: number;
|
|
23
23
|
configurationVersion: number;
|
|
24
24
|
selection: {
|
|
25
|
+
[x: string]: string | number;
|
|
25
26
|
hostKey: string;
|
|
26
|
-
|
|
27
|
-
workspaceKey: string;
|
|
28
|
-
projectKey: string;
|
|
27
|
+
} | {
|
|
29
28
|
agentKey: string;
|
|
30
|
-
agentVersion:
|
|
29
|
+
agentVersion: string;
|
|
31
30
|
modelOptionKey: string;
|
|
31
|
+
contractVersion: 2;
|
|
32
|
+
hostKey: string;
|
|
33
|
+
hostScope: {
|
|
34
|
+
namespace: string;
|
|
35
|
+
ref: string;
|
|
36
|
+
};
|
|
32
37
|
};
|
|
33
38
|
runtimeKey: string;
|
|
34
39
|
installationId: string;
|
|
@@ -62,13 +67,18 @@ export declare class NativeStudioRuntimeAuthorityClient {
|
|
|
62
67
|
bindingRevision: number;
|
|
63
68
|
configurationVersion: number;
|
|
64
69
|
selection: {
|
|
70
|
+
[x: string]: string | number;
|
|
65
71
|
hostKey: string;
|
|
66
|
-
|
|
67
|
-
workspaceKey: string;
|
|
68
|
-
projectKey: string;
|
|
72
|
+
} | {
|
|
69
73
|
agentKey: string;
|
|
70
|
-
agentVersion:
|
|
74
|
+
agentVersion: string;
|
|
71
75
|
modelOptionKey: string;
|
|
76
|
+
contractVersion: 2;
|
|
77
|
+
hostKey: string;
|
|
78
|
+
hostScope: {
|
|
79
|
+
namespace: string;
|
|
80
|
+
ref: string;
|
|
81
|
+
};
|
|
72
82
|
};
|
|
73
83
|
runtimeKey: string;
|
|
74
84
|
installationId: string;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/** 外部接收方的纯验真函数;只返回原事件,不发送渠道消息或替代持久收件箱。 */
|
|
2
|
+
export declare function verifyWebhookNotification(input: {
|
|
3
|
+
body: Uint8Array;
|
|
4
|
+
signature: string;
|
|
5
|
+
eventId: string;
|
|
6
|
+
deliveryId: string;
|
|
7
|
+
eventVersion: string;
|
|
8
|
+
secret: string;
|
|
9
|
+
now?: number;
|
|
10
|
+
}): {
|
|
11
|
+
schemaVersion: 1;
|
|
12
|
+
eventId: string;
|
|
13
|
+
tenantId: string & import("zod").$brand<"TenantId">;
|
|
14
|
+
productionId: string & import("zod").$brand<"ProductionId">;
|
|
15
|
+
projectId: string;
|
|
16
|
+
type: "production.work_changed" | "production.started" | "production.failed" | "production.cancelled" | "finding.opened" | "artifact.created" | "shot.candidate_ready" | "shot.accepted" | "review.completed" | "rough_cut.ready" | "final_render.ready" | "approval.required" | "production.completed" | "delivery.validation_failed";
|
|
17
|
+
target: {
|
|
18
|
+
type: string;
|
|
19
|
+
id: string;
|
|
20
|
+
};
|
|
21
|
+
occurredAt: string;
|
|
22
|
+
basis: {
|
|
23
|
+
productionRevision: number;
|
|
24
|
+
};
|
|
25
|
+
payload: {
|
|
26
|
+
sourceEventType: string;
|
|
27
|
+
artifactId?: string | undefined;
|
|
28
|
+
candidateId?: string | undefined;
|
|
29
|
+
reviewId?: string | undefined;
|
|
30
|
+
findingId?: string | undefined;
|
|
31
|
+
shotId?: string | undefined;
|
|
32
|
+
manifestId?: string | undefined;
|
|
33
|
+
validationId?: string | undefined;
|
|
34
|
+
action?: string | undefined;
|
|
35
|
+
result?: string | undefined;
|
|
36
|
+
executionClass?: "LIVE" | "TEST_ONLY" | undefined;
|
|
37
|
+
};
|
|
38
|
+
};
|
package/dist/account.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CliAccountExchangeSchema,CliAccountIdentitySchema,CliAccountSessionSchema,CliAccountStartSchema,CliAccountStartedSchema
|
|
1
|
+
import{CliAccountExchangeSchema,CliAccountIdentitySchema,CliAccountSessionSchema,CliAccountStartSchema,CliAccountStartedSchema}from"./_chunks/chunk-V636KA7B.js";import{ProjectLibraryPageSchema,ProjectWorkspaceSchema}from"./_chunks/chunk-QVP4AMRJ.js";import"./_chunks/chunk-AFUVP2DC.js";import{NativeStudioSdkError}from"./_chunks/chunk-TT7IA5HB.js";import{z}from"zod";function accountServerOrigin(value){const url=new URL(value);if(url.pathname!=="/"||url.search||url.hash||url.username||url.password||!(url.protocol==="https:"||url.protocol==="http:"&&["127.0.0.1","localhost","[::1]"].includes(url.hostname)))throw new NativeStudioSdkError("ACCOUNT_SERVER_ORIGIN_REQUIRED","INVALID_INPUT","NO_WRITE");return url.origin}var NativeStudioAccountClient=class{constructor(options){this.options=options;this.serverOrigin=accountServerOrigin(options.serverOrigin);if(options.accessToken&&!/^nvsh_[A-Za-z0-9_-]{43}$/.test(options.accessToken))throw new NativeStudioSdkError("INVALID_ACCOUNT_CREDENTIAL","INVALID_INPUT","NO_WRITE")}options;serverOrigin;async request(action,schema,options={}){if(options.credential&&!this.options.accessToken)throw new NativeStudioSdkError("ACCOUNT_LOGIN_REQUIRED","INVALID_INPUT","NO_WRITE");const write=options.body!==void 0;let response;try{response=await(this.options.fetch??fetch)(`${this.serverOrigin}/api/cli-account/${action}${options.query?"?"+options.query:""}`,{method:write?"POST":"GET",cache:"no-store",redirect:"error",credentials:"omit",signal:AbortSignal.any([AbortSignal.timeout(15e3),...options.signal?[options.signal]:[]]),headers:{...write?{"content-type":"application/json"}:{},...options.credential?{authorization:"Bearer "+this.options.accessToken}:{}},...write?{body:JSON.stringify(options.body)}:{}})}catch{throw new NativeStudioSdkError("ACCOUNT_TRANSPORT_FAILED","BLOCKED",write?"UNKNOWN":"NO_WRITE")}if(!response.ok){await response.body?.cancel();throw new NativeStudioSdkError(response.status===401?"ACCOUNT_SESSION_EXPIRED_OR_REVOKED":"ACCOUNT_REQUEST_REJECTED","BLOCKED",write&&response.status>=500?"UNKNOWN":"REJECTED",response.status)}try{if(!(response.headers.get("content-type")??"").startsWith("application/json"))throw Error();const reader=response.body?.getReader();if(!reader)throw Error();const chunks=[];let size=0;try{while(true){const part=await reader.read();if(part.done)break;size+=part.value.byteLength;if(size>1024*1024){await reader.cancel();throw Error()}chunks.push(part.value)}}finally{reader.releaseLock()}const bytes=new Uint8Array(size);let offset=0;for(const part of chunks){bytes.set(part,offset);offset+=part.length}return schema.parse(JSON.parse(new TextDecoder().decode(bytes)))}catch{throw new NativeStudioSdkError("ACCOUNT_RESPONSE_INVALID","BLOCKED",write?"UNKNOWN":"NO_WRITE")}}async metadata(signal){return this.request("metadata",z.strictObject({protocol:z.literal("NVS_CLI_ACCOUNT_V1"),serverOrigin:z.literal(this.serverOrigin)}),{signal})}start(input,signal){return this.request("start",CliAccountStartedSchema,{body:CliAccountStartSchema.parse(input),signal})}exchange(input,signal){return this.request("exchange",CliAccountSessionSchema,{body:CliAccountExchangeSchema.parse(input),signal})}me(signal){return this.request("me",CliAccountIdentitySchema,{credential:true,signal})}logout(signal){return this.request("logout",z.strictObject({changed:z.literal(true)}),{credential:true,body:{},signal})}async projects(input,signal){const value=z.strictObject({tenantId:z.uuid(),limit:z.number().int().min(1).max(100).optional(),next:z.string().min(1).max(8192).optional()}).parse(input);const result=await this.request("projects",ProjectLibraryPageSchema,{credential:true,signal,query:new URLSearchParams({tenantId:value.tenantId,...value.limit?{limit:String(value.limit)}:{},...value.next?{next:value.next}:{}})});if(result.items.some(p=>p.tenantId!==value.tenantId))throw new NativeStudioSdkError("ACCOUNT_RESPONSE_SCOPE_MISMATCH","BLOCKED","NO_WRITE");return result}async project(input,signal){const value=z.strictObject({tenantId:z.uuid(),projectId:z.uuid()}).parse(input);const result=await this.request("project",ProjectWorkspaceSchema,{credential:true,signal,query:new URLSearchParams(value)});if(result.project.id!==value.projectId||result.project.tenantId!==value.tenantId)throw new NativeStudioSdkError("ACCOUNT_RESPONSE_SCOPE_MISMATCH","BLOCKED","NO_WRITE");return result}};export{CliAccountIdentitySchema,CliAccountSessionSchema,CliAccountStartSchema,CliAccountStartedSchema,NativeStudioAccountClient,accountServerOrigin};
|
package/dist/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{NativeStudioSdkError}from"./_chunks/chunk-
|
|
1
|
+
import{NativeStudioSdkError}from"./_chunks/chunk-TT7IA5HB.js";export{NativeStudioSdkError};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./_types/sdk/host-protocol.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{AgentHostContractDocumentSchema,AgentHostContractInputSchema,AgentHostContractSchema,CurrentAgentExecutionProfileSchema,HostInstallationIdentitySchema,HostInstallationSchema,HostTaskCancelSchema,HostTaskRequestSchema,HostTaskResponseSchema,LegacyHostExecutionReleaseSchema,ReleaseLegacyHostExecutionSchema,canonicalHostContractJson,createAgentHostContractDocument}from"./_chunks/chunk-K3TIFCD3.js";import"./_chunks/chunk-VXBIT7XN.js";import"./_chunks/chunk-2QDPFLIO.js";import"./_chunks/chunk-QVP4AMRJ.js";import{CurrentHostSelectionSchema,HOST_PROTOCOL,HostChoiceSchema,HostDelegationDigest,HostDelegationDocument,HostProtocolDigest,HostProtocolDocument,HostScopeSchema}from"./_chunks/chunk-NNDKZ5H5.js";import"./_chunks/chunk-AFUVP2DC.js";import"zod";export{AgentHostContractDocumentSchema,AgentHostContractInputSchema,AgentHostContractSchema,CurrentAgentExecutionProfileSchema,CurrentHostSelectionSchema,HOST_PROTOCOL,HostChoiceSchema,HostDelegationDigest,HostDelegationDocument,HostInstallationIdentitySchema,HostInstallationSchema,HostProtocolDigest,HostProtocolDocument,HostScopeSchema,HostTaskCancelSchema,HostTaskRequestSchema,HostTaskResponseSchema,LegacyHostExecutionReleaseSchema,ReleaseLegacyHostExecutionSchema,canonicalHostContractJson,createAgentHostContractDocument};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {NativeStudioAgentClient,NativeStudioMcpClient,NativeStudioNavigationClient,NativeStudioNavigationFacade,NativeStudioSdkError,sdkOperations,sdkMcpTools,sdkImageMediaTools,queryPages,waitForOperation,NavigationProfile,NavigationProfileKey,NavigationToolNames,CapabilityDescribeSchema,CapabilityGroupsSchema,NavigationGroups,NavigationGroupIdSchema,navigationGroup} from "./_types/sdk/index.js";
|
|
2
|
-
export type {SdkOperation,SdkInput,SdkOutput,NativeStudioMcpOptions,NavigationCaller,NativeStudioHttpOptions,SdkRequestOptions,SdkBinary,SdkMediaInput,SdkMediaIdentity,SdkImageMediaInput,SdkEvidenceImageInput,SdkAuxiliaryMediaInput,SdkMcpImageInput,NavigationGroupId,PagedOperation} from "./_types/sdk/index.js";
|
|
1
|
+
export {NativeStudioAgentClient,NativeStudioDeviceRenders,WorkspaceDeviceListInputSchema,WorkspaceDeviceListSchema,WorkspaceStatusSchema,DeviceStatusInputSchema,DeviceStatusSchema,CapabilityVersionSchema,CapabilityVersionMismatchSchema,DeviceEnrollmentHandoffSchema,DeviceEnrollmentScopeSchema,validateDeviceEnrollmentHandoff,submitDeviceEnrollment,recoverDeviceEnrollment,issueDeviceEnrollment,lookupDeviceEnrollment,DeviceEnrollmentTicketSchema,DeviceEnrollmentObservationSchema,DeviceDiscoveryInputSchema,ProjectDeviceListSchema,renderDeviceSelection,DeviceRenderIntentSchema,PreparedDeviceRenderSchema,DeviceRenderAdmissionSchema,LocalLibraryProjectionQuerySchema,LocalLibraryProjectionPageSchema,LocalLibraryCommandSchema,LocalLibraryAdmissionSchema,LocalLibraryCommandQuerySchema,LocalLibraryCommandStatusSchema,LocalLibraryReferenceSchema,NativeStudioMcpClient,NativeStudioNavigationClient,NativeStudioNavigationFacade,NativeStudioSdkError,sdkOperations,sdkMcpTools,sdkImageMediaTools,queryPages,waitForOperation,observeProduction,verifyWebhookNotification,readFederationLifecycleResult,NavigationProfile,NavigationProfileKey,NavigationToolNames,CapabilityDescribeSchema,CapabilityGroupsSchema,NavigationGroups,NavigationGroupIdSchema,navigationGroup} from "./_types/sdk/index.js";
|
|
2
|
+
export type {WorkspaceDeviceListInput,WorkspaceDeviceList,DeviceStatusInput,DeviceStatus,CapabilityVersionMismatch,DeviceEnrollmentHandoff,DeviceEnrollmentTicket,DeviceEnrollmentObservation,SdkOperation,ProjectDeviceList,SdkInput,SdkOutput,NativeStudioMcpOptions,NativeStudioMcpRequestOptions,NavigationCaller,NativeStudioHttpOptions,SdkRequestOptions,SdkBinary,SdkMediaInput,SdkMediaIdentity,SdkImageMediaInput,SdkEvidenceImageInput,SdkAuxiliaryMediaInput,SdkMcpImageInput,NavigationGroupId,PagedOperation,FeedbackObservationOptions,FederationNoticeResultReader,FederationLifecycleNoticeInput,FederationLifecycleResult} from "./_types/sdk/index.js";
|