@nativestudio/sdk 0.0.0-stage → 0.3.0-rc.2

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.
Files changed (235) hide show
  1. package/COMPATIBILITY.json +14 -0
  2. package/LICENSE +21 -0
  3. package/README.md +74 -2
  4. package/dist/BUNDLED_DEPENDENCIES.json +1 -0
  5. package/dist/_chunks/chunk-34KSWLCI.js +1 -0
  6. package/dist/_chunks/chunk-4IOFVNFG.js +1 -0
  7. package/dist/_chunks/chunk-4M3AGNTZ.js +1 -0
  8. package/dist/_chunks/chunk-6NVIN2NI.js +1 -0
  9. package/dist/_chunks/chunk-7YCEMDNZ.js +1 -0
  10. package/dist/_chunks/chunk-RK3YLCZP.js +1 -0
  11. package/dist/_types/contracts/accepted-shot.d.ts +27 -0
  12. package/dist/_types/contracts/accepted-visual-source.d.ts +120 -0
  13. package/dist/_types/contracts/agent-execution-lifecycle.d.ts +749 -0
  14. package/dist/_types/contracts/agent-execution-oauth.d.ts +71 -0
  15. package/dist/_types/contracts/agent-execution-registration.d.ts +240 -0
  16. package/dist/_types/contracts/agent-execution-selection.d.ts +107 -0
  17. package/dist/_types/contracts/agent-host-execution.d.ts +706 -0
  18. package/dist/_types/contracts/agent-host-generic-transport.d.ts +12 -0
  19. package/dist/_types/contracts/agent-host.d.ts +226 -0
  20. package/dist/_types/contracts/artifact-discovery.d.ts +170 -0
  21. package/dist/_types/contracts/artifact.d.ts +188 -0
  22. package/dist/_types/contracts/audio.d.ts +331 -0
  23. package/dist/_types/contracts/brief.d.ts +178 -0
  24. package/dist/_types/contracts/caption-render.d.ts +20 -0
  25. package/dist/_types/contracts/caption-transcript.d.ts +102 -0
  26. package/dist/_types/contracts/captions.d.ts +420 -0
  27. package/dist/_types/contracts/clip-framing.d.ts +14 -0
  28. package/dist/_types/contracts/clip-transition.d.ts +6 -0
  29. package/dist/_types/contracts/composition-authoring-guide.d.ts +160 -0
  30. package/dist/_types/contracts/composition-authoring.d.ts +744 -0
  31. package/dist/_types/contracts/composition-finding-locality.d.ts +24 -0
  32. package/dist/_types/contracts/composition-frame-render.d.ts +226 -0
  33. package/dist/_types/contracts/composition-making.d.ts +390 -0
  34. package/dist/_types/contracts/composition-observation.d.ts +239 -0
  35. package/dist/_types/contracts/composition-render-base.d.ts +292 -0
  36. package/dist/_types/contracts/composition-render-observation.d.ts +278 -0
  37. package/dist/_types/contracts/composition-render.d.ts +406 -0
  38. package/dist/_types/contracts/composition-repair.d.ts +451 -0
  39. package/dist/_types/contracts/composition-source-review.d.ts +1042 -0
  40. package/dist/_types/contracts/consistency-profile.d.ts +845 -0
  41. package/dist/_types/contracts/continuity-evaluation.d.ts +48 -0
  42. package/dist/_types/contracts/delivery-completion.d.ts +210 -0
  43. package/dist/_types/contracts/delivery-manifest.d.ts +11776 -0
  44. package/dist/_types/contracts/delivery-operations.d.ts +5009 -0
  45. package/dist/_types/contracts/delivery-output-profile.d.ts +12 -0
  46. package/dist/_types/contracts/delivery-summary.d.ts +220 -0
  47. package/dist/_types/contracts/delivery-validation.d.ts +183 -0
  48. package/dist/_types/contracts/director-proposal.d.ts +1067 -0
  49. package/dist/_types/contracts/editor-intelligence.d.ts +5751 -0
  50. package/dist/_types/contracts/exploration-recommendation.d.ts +11863 -0
  51. package/dist/_types/contracts/external-agent-access.d.ts +95 -0
  52. package/dist/_types/contracts/final-ready.d.ts +301 -0
  53. package/dist/_types/contracts/final-render-profile.d.ts +59 -0
  54. package/dist/_types/contracts/final-render.d.ts +8181 -0
  55. package/dist/_types/contracts/foundation.d.ts +1 -0
  56. package/dist/_types/contracts/generation-contract.d.ts +268 -0
  57. package/dist/_types/contracts/generation-cost.d.ts +70 -0
  58. package/dist/_types/contracts/health.d.ts +6 -0
  59. package/dist/_types/contracts/human-identity.d.ts +149 -0
  60. package/dist/_types/contracts/hyperframe-profile.d.ts +5 -0
  61. package/dist/_types/contracts/ids.d.ts +41 -0
  62. package/dist/_types/contracts/index.d.ts +122 -0
  63. package/dist/_types/contracts/interface/common.d.ts +56 -0
  64. package/dist/_types/contracts/interface/execution-output.d.ts +99 -0
  65. package/dist/_types/contracts/interface/index.d.ts +7 -0
  66. package/dist/_types/contracts/interface/media-output.d.ts +62 -0
  67. package/dist/_types/contracts/interface/operation.d.ts +61 -0
  68. package/dist/_types/contracts/interface/output.d.ts +15 -0
  69. package/dist/_types/contracts/interface/production-snapshot.d.ts +832 -0
  70. package/dist/_types/contracts/interface/query.d.ts +315 -0
  71. package/dist/_types/contracts/keyframe-generation.d.ts +349 -0
  72. package/dist/_types/contracts/keyframe-reference.d.ts +31 -0
  73. package/dist/_types/contracts/keyframe-review.d.ts +753 -0
  74. package/dist/_types/contracts/lifecycle-event-projections.d.ts +191 -0
  75. package/dist/_types/contracts/lifecycle-events.d.ts +156 -0
  76. package/dist/_types/contracts/listening-evidence.d.ts +37 -0
  77. package/dist/_types/contracts/local-execution/agent-review.d.ts +560 -0
  78. package/dist/_types/contracts/local-execution/canonical.d.ts +2 -0
  79. package/dist/_types/contracts/local-execution/common.d.ts +48 -0
  80. package/dist/_types/contracts/local-execution/completion.d.ts +128 -0
  81. package/dist/_types/contracts/local-execution/device.d.ts +134 -0
  82. package/dist/_types/contracts/local-execution/index.d.ts +11 -0
  83. package/dist/_types/contracts/local-execution/ipc.d.ts +1202 -0
  84. package/dist/_types/contracts/local-execution/lifecycle.d.ts +347 -0
  85. package/dist/_types/contracts/local-execution/local-navigation.d.ts +710 -0
  86. package/dist/_types/contracts/local-execution/preview.d.ts +3663 -0
  87. package/dist/_types/contracts/local-execution/tool-selection.d.ts +15 -0
  88. package/dist/_types/contracts/local-execution/work.d.ts +3441 -0
  89. package/dist/_types/contracts/matrix-parameter-rule.d.ts +23 -0
  90. package/dist/_types/contracts/media-export.d.ts +23 -0
  91. package/dist/_types/contracts/media-observation.d.ts +1159 -0
  92. package/dist/_types/contracts/model-capability-matrix.d.ts +118 -0
  93. package/dist/_types/contracts/native-tool-authority-failure.d.ts +38 -0
  94. package/dist/_types/contracts/native-tool-authority.d.ts +110 -0
  95. package/dist/_types/contracts/native-tool-execution.d.ts +287 -0
  96. package/dist/_types/contracts/native-tool-gateway.d.ts +41 -0
  97. package/dist/_types/contracts/native-video-audio.d.ts +62 -0
  98. package/dist/_types/contracts/navigation-context.d.ts +253 -0
  99. package/dist/_types/contracts/navigation-groups.d.ts +51 -0
  100. package/dist/_types/contracts/navigation.d.ts +238 -0
  101. package/dist/_types/contracts/observation-profile.d.ts +99 -0
  102. package/dist/_types/contracts/planning-input.d.ts +177 -0
  103. package/dist/_types/contracts/principal.d.ts +26 -0
  104. package/dist/_types/contracts/production-creation.d.ts +66 -0
  105. package/dist/_types/contracts/production-termination.d.ts +51 -0
  106. package/dist/_types/contracts/production.d.ts +111 -0
  107. package/dist/_types/contracts/programmatic-composition.d.ts +762 -0
  108. package/dist/_types/contracts/programmatic-exploration.d.ts +7459 -0
  109. package/dist/_types/contracts/programmatic-video-review.d.ts +894 -0
  110. package/dist/_types/contracts/project-library.d.ts +173 -0
  111. package/dist/_types/contracts/project.d.ts +93 -0
  112. package/dist/_types/contracts/provider-catalog.d.ts +421 -0
  113. package/dist/_types/contracts/provider-models.d.ts +3380 -0
  114. package/dist/_types/contracts/provider.d.ts +142 -0
  115. package/dist/_types/contracts/reference-preview.d.ts +36 -0
  116. package/dist/_types/contracts/repair-lifecycle.d.ts +2896 -0
  117. package/dist/_types/contracts/repair-plan.d.ts +728 -0
  118. package/dist/_types/contracts/repair-strategy.d.ts +5751 -0
  119. package/dist/_types/contracts/review-intelligence-evidence.d.ts +136 -0
  120. package/dist/_types/contracts/review-intelligence-final-output.d.ts +8705 -0
  121. package/dist/_types/contracts/review-intelligence.d.ts +11543 -0
  122. package/dist/_types/contracts/review1-repair-source.d.ts +452 -0
  123. package/dist/_types/contracts/review1-repair-strategy.d.ts +491 -0
  124. package/dist/_types/contracts/review1-repair.d.ts +36 -0
  125. package/dist/_types/contracts/rough-cut-manifest.d.ts +347 -0
  126. package/dist/_types/contracts/rough-cut-profile.d.ts +37 -0
  127. package/dist/_types/contracts/rough-cut-review.d.ts +12819 -0
  128. package/dist/_types/contracts/rough-cut.d.ts +5862 -0
  129. package/dist/_types/contracts/scene-shot-plan.d.ts +882 -0
  130. package/dist/_types/contracts/sdk-discovery.d.ts +66 -0
  131. package/dist/_types/contracts/shot-direction.d.ts +113 -0
  132. package/dist/_types/contracts/shot-preparation-basis.d.ts +356 -0
  133. package/dist/_types/contracts/shot-preparation.d.ts +2285 -0
  134. package/dist/_types/contracts/shot-sound-instruction.d.ts +58 -0
  135. package/dist/_types/contracts/sound-making-plan.d.ts +1585 -0
  136. package/dist/_types/contracts/source-sound-policy.d.ts +10 -0
  137. package/dist/_types/contracts/source-workspace.d.ts +62 -0
  138. package/dist/_types/contracts/speech.d.ts +424 -0
  139. package/dist/_types/contracts/story.d.ts +98 -0
  140. package/dist/_types/contracts/temporal-evidence-operation.d.ts +379 -0
  141. package/dist/_types/contracts/temporal-evidence-reference.d.ts +18 -0
  142. package/dist/_types/contracts/temporal-evidence.d.ts +248 -0
  143. package/dist/_types/contracts/tenant.d.ts +7 -0
  144. package/dist/_types/contracts/timeline-audio.d.ts +97 -0
  145. package/dist/_types/contracts/timeline-graphics.d.ts +80 -0
  146. package/dist/_types/contracts/timeline-manifest.d.ts +702 -0
  147. package/dist/_types/contracts/timeline-source-sound.d.ts +352 -0
  148. package/dist/_types/contracts/timeline-v2.d.ts +1263 -0
  149. package/dist/_types/contracts/timeline-version-reader.d.ts +2945 -0
  150. package/dist/_types/contracts/timeline-visual-layers.d.ts +1245 -0
  151. package/dist/_types/contracts/timeline.d.ts +4942 -0
  152. package/dist/_types/contracts/transcription.d.ts +80 -0
  153. package/dist/_types/contracts/video-generation.d.ts +643 -0
  154. package/dist/_types/contracts/video-review.d.ts +1871 -0
  155. package/dist/_types/contracts/visual-exploration.d.ts +1586 -0
  156. package/dist/_types/contracts/visual-layer-render.d.ts +2777 -0
  157. package/dist/_types/contracts/visual-layer.d.ts +112 -0
  158. package/dist/_types/contracts/visual-sequence.d.ts +121 -0
  159. package/dist/_types/contracts/writer-proposal.d.ts +268 -0
  160. package/dist/_types/sdk/account.d.ts +109 -0
  161. package/dist/_types/sdk/auxiliary-media.d.ts +43 -0
  162. package/dist/_types/sdk/catalog/agent-host-execution.d.ts +1551 -0
  163. package/dist/_types/sdk/catalog/agent-host.d.ts +344 -0
  164. package/dist/_types/sdk/catalog/assembly.d.ts +37634 -0
  165. package/dist/_types/sdk/catalog/audio-caption.d.ts +1374 -0
  166. package/dist/_types/sdk/catalog/canonical-repair.d.ts +4584 -0
  167. package/dist/_types/sdk/catalog/composition-source.d.ts +1556 -0
  168. package/dist/_types/sdk/catalog/composition.d.ts +2815 -0
  169. package/dist/_types/sdk/catalog/core.d.ts +3049 -0
  170. package/dist/_types/sdk/catalog/delivery.d.ts +14169 -0
  171. package/dist/_types/sdk/catalog/discovery.d.ts +75 -0
  172. package/dist/_types/sdk/catalog/editor.d.ts +6540 -0
  173. package/dist/_types/sdk/catalog/generation.d.ts +942 -0
  174. package/dist/_types/sdk/catalog/imported-visual.d.ts +3111 -0
  175. package/dist/_types/sdk/catalog/keyframe-review.d.ts +859 -0
  176. package/dist/_types/sdk/catalog/lifecycle-events.d.ts +329 -0
  177. package/dist/_types/sdk/catalog/mcp.d.ts +245 -0
  178. package/dist/_types/sdk/catalog/media-descriptors.d.ts +139 -0
  179. package/dist/_types/sdk/catalog/media-observation.d.ts +958 -0
  180. package/dist/_types/sdk/catalog/native-tool-authority.d.ts +281 -0
  181. package/dist/_types/sdk/catalog/navigation.d.ts +559 -0
  182. package/dist/_types/sdk/catalog/planning-intelligence.d.ts +2031 -0
  183. package/dist/_types/sdk/catalog/programmatic-exploration.d.ts +9855 -0
  184. package/dist/_types/sdk/catalog/programmatic-review.d.ts +1106 -0
  185. package/dist/_types/sdk/catalog/provider.d.ts +4439 -0
  186. package/dist/_types/sdk/catalog/reference-preview.d.ts +180 -0
  187. package/dist/_types/sdk/catalog/repair-strategy.d.ts +8916 -0
  188. package/dist/_types/sdk/catalog/reviewer.d.ts +23133 -0
  189. package/dist/_types/sdk/catalog/shot-preparation.d.ts +2974 -0
  190. package/dist/_types/sdk/catalog/sound-making-plan.d.ts +1778 -0
  191. package/dist/_types/sdk/catalog/source-sync.d.ts +1313 -0
  192. package/dist/_types/sdk/catalog/spec.d.ts +37 -0
  193. package/dist/_types/sdk/catalog/speech.d.ts +397 -0
  194. package/dist/_types/sdk/catalog/temporal-evidence.d.ts +391 -0
  195. package/dist/_types/sdk/catalog/video-review.d.ts +2149 -0
  196. package/dist/_types/sdk/catalog/visual-exploration.d.ts +10838 -0
  197. package/dist/_types/sdk/client.d.ts +75 -0
  198. package/dist/_types/sdk/desktop-catalogue.d.ts +25 -0
  199. package/dist/_types/sdk/desktop-previews.d.ts +118 -0
  200. package/dist/_types/sdk/desktop-releases.d.ts +75 -0
  201. package/dist/_types/sdk/errors.d.ts +9 -0
  202. package/dist/_types/sdk/evidence-image.d.ts +22 -0
  203. package/dist/_types/sdk/image-media.d.ts +43 -0
  204. package/dist/_types/sdk/index.d.ts +16 -0
  205. package/dist/_types/sdk/local-runtime/device-client.d.ts +77 -0
  206. package/dist/_types/sdk/local-runtime-client.d.ts +932 -0
  207. package/dist/_types/sdk/mcp-client.d.ts +55 -0
  208. package/dist/_types/sdk/mcp-image.d.ts +52 -0
  209. package/dist/_types/sdk/media.d.ts +104 -0
  210. package/dist/_types/sdk/navigation-client.d.ts +141 -0
  211. package/dist/_types/sdk/navigation-facade.d.ts +458 -0
  212. package/dist/_types/sdk/observe.d.ts +51 -0
  213. package/dist/_types/sdk/runtime-authority.d.ts +103 -0
  214. package/dist/_types/sdk/transport/http.d.ts +39 -0
  215. package/dist/account.d.ts +1 -0
  216. package/dist/account.js +1 -0
  217. package/dist/desktop-previews.d.ts +1 -0
  218. package/dist/desktop-previews.js +1 -0
  219. package/dist/desktop-releases.d.ts +1 -0
  220. package/dist/desktop-releases.js +1 -0
  221. package/dist/errors.d.ts +1 -0
  222. package/dist/errors.js +1 -0
  223. package/dist/index.d.ts +2 -0
  224. package/dist/index.js +1 -0
  225. package/dist/local-runtime.d.ts +1 -0
  226. package/dist/local-runtime.js +1 -0
  227. package/dist/native/Bootstrap.ps1 +90 -0
  228. package/dist/native/JobNative.cs +127 -0
  229. package/dist/native/JobRunner.cs +360 -0
  230. package/dist/native/NativeMain.cs +146 -0
  231. package/dist/native/PipeBridge.cs +260 -0
  232. package/dist/native/PrivateAccess.cs +152 -0
  233. package/dist/runtime-authority.d.ts +1 -0
  234. package/dist/runtime-authority.js +1 -0
  235. package/package.json +50 -3
@@ -0,0 +1,55 @@
1
+ import { NativeStudioNavigationFacade } from "./navigation-facade.js";
2
+ import { type SdkImageMediaInput } from "./image-media.js";
3
+ import type { Client } from "@modelcontextprotocol/client";
4
+ import { type SdkOperation, type SdkInput, type SdkOutput } from "./client.js";
5
+ import type { SdkRequestOptions } from "./transport/http.js";
6
+ import { type SdkEvidenceImageInput } from "./evidence-image.js";
7
+ import type { SdkMediaIdentity } from "./media.js";
8
+ import { type SdkAuxiliaryMediaInput } from "./auxiliary-media.js";
9
+ import { type SdkMcpImageInput } from "./mcp-image.js";
10
+ export interface NativeStudioMcpOptions {
11
+ tenantId: string;
12
+ /** A connected, authenticated modern MCP session. Its owner controls transport setup and close. */
13
+ client: Pick<Client, "callTool">;
14
+ timeoutMs?: number;
15
+ maxJsonBytes?: number;
16
+ }
17
+ /** Calls native tools directly; never executes CLI or wraps the native HTTP API. */
18
+ export declare class NativeStudioMcpClient {
19
+ private readonly config;
20
+ readonly navigation: NativeStudioNavigationFacade;
21
+ readonly tenantId: string;
22
+ private readonly timeout;
23
+ private readonly limit;
24
+ constructor(config: NativeStudioMcpOptions);
25
+ imageMedia(input: SdkImageMediaInput, expected: SdkMediaIdentity, options?: SdkRequestOptions): Promise<{
26
+ bytes: Buffer<ArrayBuffer>;
27
+ checksumSha256: string;
28
+ contentType: "image/png" | "image/jpeg" | "image/webp";
29
+ byteSize: number;
30
+ }>;
31
+ evidenceImage(input: SdkEvidenceImageInput, expected: SdkMediaIdentity, options?: SdkRequestOptions): Promise<{
32
+ bytes: Buffer<ArrayBuffer>;
33
+ evidenceId: string;
34
+ tenantId: string;
35
+ productionId: string;
36
+ kind: "FRAME" | "SHEET";
37
+ contentType: "image/png";
38
+ checksumSha256: string;
39
+ byteSize: number;
40
+ ordinal?: number | undefined;
41
+ }>;
42
+ auxiliaryMedia(input: SdkAuxiliaryMediaInput, expected: SdkMediaIdentity, options?: SdkRequestOptions): Promise<{
43
+ bytes: Buffer<ArrayBuffer>;
44
+ contentType: string;
45
+ checksumSha256: string;
46
+ etag: null;
47
+ }>;
48
+ image(input: SdkMcpImageInput, expected: SdkMediaIdentity, options?: SdkRequestOptions): Promise<{
49
+ bytes: Buffer<ArrayBuffer>;
50
+ contentType: "image/png" | "image/jpeg" | "image/webp";
51
+ checksumSha256: string;
52
+ etag: null;
53
+ }>;
54
+ call<K extends SdkOperation>(key: K, raw: SdkInput<K>, options?: SdkRequestOptions): Promise<SdkOutput<K>>;
55
+ }
@@ -0,0 +1,52 @@
1
+ import { z } from "zod";
2
+ import type { NativeStudioMcpOptions } from "./mcp-client.js";
3
+ import type { SdkMediaIdentity } from "./media.js";
4
+ import type { SdkRequestOptions } from "./transport/http.js";
5
+ declare const inputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
6
+ tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
7
+ productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
8
+ generationId: z.core.$ZodBranded<z.ZodUUID, "KeyframeGenerationId", "out">;
9
+ kind: z.ZodLiteral<"KEYFRAME">;
10
+ }, z.core.$strict>, z.ZodObject<{
11
+ tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
12
+ productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
13
+ generationId: z.core.$ZodBranded<z.ZodUUID, "VideoGenerationId", "out">;
14
+ kind: z.ZodLiteral<"VIDEO_POSTER">;
15
+ }, z.core.$strict>, z.ZodObject<{
16
+ tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
17
+ productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
18
+ renderId: z.ZodUUID;
19
+ kind: z.ZodLiteral<"ROUGH_CUT_POSTER">;
20
+ }, z.core.$strict>, z.ZodObject<{
21
+ tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
22
+ productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
23
+ renderId: z.ZodUUID;
24
+ kind: z.ZodLiteral<"FINAL_POSTER">;
25
+ }, z.core.$strict>, z.ZodObject<{
26
+ tenantId: z.core.$ZodBranded<z.ZodUUID, "TenantId", "out">;
27
+ projectId: z.core.$ZodBranded<z.ZodUUID, "ProjectId", "out">;
28
+ productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
29
+ operationId: z.core.$ZodBranded<z.ZodString, "OperationId", "out">;
30
+ kind: z.ZodLiteral<"REFERENCE_PREVIEW">;
31
+ }, z.core.$strict>], "kind">;
32
+ type OptionalTenant<T> = T extends unknown ? Omit<T, "tenantId"> & {
33
+ tenantId?: string;
34
+ } : never;
35
+ export type SdkMcpImageInput = OptionalTenant<z.input<typeof inputSchema>>;
36
+ export declare const sdkMcpImageTools: Readonly<{
37
+ KEYFRAME: "keyframe_media";
38
+ VIDEO_POSTER: "video_poster";
39
+ ROUGH_CUT_POSTER: "rough_cut_poster";
40
+ FINAL_POSTER: "final_render_poster";
41
+ REFERENCE_PREVIEW: "reference_preview_get";
42
+ }>;
43
+ export declare function readMcpImage(config: NativeStudioMcpOptions & {
44
+ timeoutMs: number;
45
+ maxJsonBytes: number;
46
+ }, raw: SdkMcpImageInput, expected: SdkMediaIdentity, options: SdkRequestOptions): Promise<{
47
+ bytes: Buffer<ArrayBuffer>;
48
+ contentType: "image/png" | "image/jpeg" | "image/webp";
49
+ checksumSha256: string;
50
+ etag: null;
51
+ }>;
52
+ export {};
@@ -0,0 +1,104 @@
1
+ import { z } from "zod";
2
+ import type { NativeStudioHttpTransport, SdkRequestOptions } from "./transport/http.js";
3
+ declare const mediaInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
4
+ productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
5
+ purpose: z.ZodEnum<{
6
+ VOICEOVER: "VOICEOVER";
7
+ MUSIC: "MUSIC";
8
+ }>;
9
+ versionId: z.ZodUUID;
10
+ kind: z.ZodLiteral<"AUDIO">;
11
+ }, z.core.$strict>, z.ZodObject<{
12
+ format: z.ZodEnum<{
13
+ JSON: "JSON";
14
+ SRT: "SRT";
15
+ }>;
16
+ productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
17
+ versionId: z.ZodUUID;
18
+ kind: z.ZodLiteral<"CAPTION">;
19
+ }, z.core.$strict>, z.ZodObject<{
20
+ artifactId: z.ZodPipe<z.core.$ZodBranded<z.ZodUUID, "ArtifactId", "out">, z.ZodTransform<string & z.core.$brand<"ArtifactId">, string & z.core.$brand<"ArtifactId">>>;
21
+ representationId: z.ZodPipe<z.core.$ZodBranded<z.ZodUUID, "ArtifactRepresentationId", "out">, z.ZodTransform<string & z.core.$brand<"ArtifactRepresentationId">, string & z.core.$brand<"ArtifactRepresentationId">>>;
22
+ projectId: z.ZodPipe<z.core.$ZodBranded<z.ZodUUID, "ProjectId", "out">, z.ZodTransform<string & z.core.$brand<"ProjectId">, string & z.core.$brand<"ProjectId">>>;
23
+ kind: z.ZodLiteral<"DISCOVERED_ARTIFACT">;
24
+ contentType: z.ZodEnum<{
25
+ "application/json": "application/json";
26
+ "text/plain": "text/plain";
27
+ "image/png": "image/png";
28
+ "image/jpeg": "image/jpeg";
29
+ "image/webp": "image/webp";
30
+ "audio/mpeg": "audio/mpeg";
31
+ "audio/wav": "audio/wav";
32
+ "video/mp4": "video/mp4";
33
+ "application/x-subrip": "application/x-subrip";
34
+ }>;
35
+ }, z.core.$strict>, z.ZodObject<{
36
+ productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
37
+ purpose: z.ZodEnum<{
38
+ VOICEOVER: "VOICEOVER";
39
+ MUSIC: "MUSIC";
40
+ }>;
41
+ versionId: z.ZodUUID;
42
+ kind: z.ZodLiteral<"AUDIO_WAV">;
43
+ }, z.core.$strict>, z.ZodObject<{
44
+ productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
45
+ versionId: z.ZodUUID;
46
+ kind: z.ZodEnum<{
47
+ CAPTION_JSON: "CAPTION_JSON";
48
+ CAPTION_SRT: "CAPTION_SRT";
49
+ }>;
50
+ }, z.core.$strict>, z.ZodObject<{
51
+ productionId: z.ZodUUID;
52
+ evidenceId: z.ZodUUID;
53
+ kind: z.ZodLiteral<"TEMPORAL_FRAME">;
54
+ ordinal: z.ZodInt;
55
+ }, z.core.$strict>, z.ZodObject<{
56
+ productionId: z.ZodUUID;
57
+ evidenceId: z.ZodUUID;
58
+ kind: z.ZodEnum<{
59
+ TEMPORAL_SHEET: "TEMPORAL_SHEET";
60
+ TEMPORAL_MANIFEST: "TEMPORAL_MANIFEST";
61
+ }>;
62
+ }, z.core.$strict>, z.ZodObject<{
63
+ generationId: z.core.$ZodBranded<z.ZodUUID, "VideoGenerationId", "out">;
64
+ productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
65
+ kind: z.ZodEnum<{
66
+ VIDEO_GENERATION: "VIDEO_GENERATION";
67
+ VIDEO_GENERATION_POSTER: "VIDEO_GENERATION_POSTER";
68
+ }>;
69
+ }, z.core.$strict>, z.ZodObject<{
70
+ renderId: z.ZodUUID;
71
+ productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
72
+ kind: z.ZodLiteral<"CODE_VIDEO">;
73
+ }, z.core.$strict>, z.ZodObject<{
74
+ renderId: z.ZodUUID;
75
+ productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
76
+ kind: z.ZodEnum<{
77
+ ROUGH_CUT_VIDEO: "ROUGH_CUT_VIDEO";
78
+ ROUGH_CUT_POSTER: "ROUGH_CUT_POSTER";
79
+ FINAL_VIDEO: "FINAL_VIDEO";
80
+ FINAL_POSTER: "FINAL_POSTER";
81
+ }>;
82
+ }, z.core.$strict>, z.ZodObject<{
83
+ productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
84
+ kind: z.ZodLiteral<"DELIVERED_VIDEO">;
85
+ }, z.core.$strict>, z.ZodObject<{
86
+ productionId: z.core.$ZodBranded<z.ZodUUID, "ProductionId", "out">;
87
+ manifestId: z.ZodUUID;
88
+ kind: z.ZodLiteral<"DELIVERY_MANIFEST">;
89
+ }, z.core.$strict>], "kind">;
90
+ declare const expectedInput: z.ZodObject<{
91
+ checksumSha256: z.ZodString;
92
+ byteSize: z.ZodOptional<z.ZodInt>;
93
+ }, z.core.$strict>;
94
+ export type SdkMediaInput = z.input<typeof mediaInput> & {
95
+ tenantId?: string;
96
+ };
97
+ export type SdkMediaIdentity = z.input<typeof expectedInput>;
98
+ export declare function readNativeMedia(transport: NativeStudioHttpTransport, tenantId: string, raw: SdkMediaInput, expected: SdkMediaIdentity, options: SdkRequestOptions): Promise<{
99
+ checksumSha256: string;
100
+ bytes: Uint8Array;
101
+ contentType: string;
102
+ etag: string | null;
103
+ }>;
104
+ export {};
@@ -0,0 +1,141 @@
1
+ import type { Client } from "@modelcontextprotocol/client";
2
+ import { NativeStudioMcpClient, type NativeStudioMcpOptions } from "./mcp-client.js";
3
+ import type { SdkRequestOptions } from "./transport/http.js";
4
+ /** Client-local schema hints. Standard discovery and all command authority stay on the server. */
5
+ export declare class NativeStudioNavigationClient {
6
+ private readonly config;
7
+ readonly native: NativeStudioMcpClient;
8
+ private readonly definitions;
9
+ private readonly contexts;
10
+ constructor(config: NativeStudioMcpOptions & {
11
+ client: Pick<Client, "callTool" | "listTools">;
12
+ });
13
+ entrypoints(options?: SdkRequestOptions): Promise<{
14
+ tools: {
15
+ inputSchema: {
16
+ [x: string]: unknown;
17
+ type: "object";
18
+ properties?: {
19
+ [x: string]: string | number | boolean | {
20
+ [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
21
+ } | (string | number | boolean | {
22
+ [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
23
+ } | (string | number | boolean | {
24
+ [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
25
+ } | (string | number | boolean | {
26
+ [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
27
+ } | (string | number | boolean | {
28
+ [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
29
+ } | (string | number | boolean | {
30
+ [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
31
+ } | (string | number | boolean | {
32
+ [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null;
33
+ } | (string | number | boolean | {
34
+ [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null;
35
+ } | (string | number | boolean | {
36
+ [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null;
37
+ } | (string | number | boolean | {
38
+ [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null;
39
+ } | (string | number | boolean | {
40
+ [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null;
41
+ } | (string | number | boolean | {
42
+ [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
43
+ } | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
44
+ } | undefined;
45
+ required?: string[] | undefined;
46
+ };
47
+ name: string;
48
+ description?: string | undefined;
49
+ outputSchema?: {
50
+ [x: string]: unknown;
51
+ $schema?: string | undefined;
52
+ } | undefined;
53
+ annotations?: {
54
+ title?: string | undefined;
55
+ readOnlyHint?: boolean | undefined;
56
+ destructiveHint?: boolean | undefined;
57
+ idempotentHint?: boolean | undefined;
58
+ openWorldHint?: boolean | undefined;
59
+ } | undefined;
60
+ execution?: {
61
+ taskSupport?: "required" | "optional" | "forbidden" | undefined;
62
+ } | undefined;
63
+ _meta?: {
64
+ [x: string]: unknown;
65
+ } | undefined;
66
+ icons?: {
67
+ src: string;
68
+ mimeType?: string | undefined;
69
+ sizes?: string[] | undefined;
70
+ theme?: "light" | "dark" | undefined;
71
+ }[] | undefined;
72
+ title?: string | undefined;
73
+ }[];
74
+ }>;
75
+ selectedSchema(reference: string, expectedTool: string, options?: SdkRequestOptions & {
76
+ projectId?: string;
77
+ }): Promise<{
78
+ tools: {
79
+ inputSchema: {
80
+ [x: string]: unknown;
81
+ type: "object";
82
+ properties?: {
83
+ [x: string]: string | number | boolean | {
84
+ [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
85
+ } | (string | number | boolean | {
86
+ [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
87
+ } | (string | number | boolean | {
88
+ [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
89
+ } | (string | number | boolean | {
90
+ [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
91
+ } | (string | number | boolean | {
92
+ [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
93
+ } | (string | number | boolean | {
94
+ [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
95
+ } | (string | number | boolean | {
96
+ [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null;
97
+ } | (string | number | boolean | {
98
+ [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null;
99
+ } | (string | number | boolean | {
100
+ [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null;
101
+ } | (string | number | boolean | {
102
+ [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null;
103
+ } | (string | number | boolean | {
104
+ [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null;
105
+ } | (string | number | boolean | {
106
+ [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
107
+ } | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
108
+ } | undefined;
109
+ required?: string[] | undefined;
110
+ };
111
+ name: string;
112
+ description?: string | undefined;
113
+ outputSchema?: {
114
+ [x: string]: unknown;
115
+ $schema?: string | undefined;
116
+ } | undefined;
117
+ annotations?: {
118
+ title?: string | undefined;
119
+ readOnlyHint?: boolean | undefined;
120
+ destructiveHint?: boolean | undefined;
121
+ idempotentHint?: boolean | undefined;
122
+ openWorldHint?: boolean | undefined;
123
+ } | undefined;
124
+ execution?: {
125
+ taskSupport?: "required" | "optional" | "forbidden" | undefined;
126
+ } | undefined;
127
+ _meta?: {
128
+ [x: string]: unknown;
129
+ } | undefined;
130
+ icons?: {
131
+ src: string;
132
+ mimeType?: string | undefined;
133
+ sizes?: string[] | undefined;
134
+ theme?: "light" | "dark" | undefined;
135
+ }[] | undefined;
136
+ title?: string | undefined;
137
+ }[];
138
+ }>;
139
+ private remember;
140
+ private invalid;
141
+ }