@nativestudio/sdk 0.3.0-rc.2 → 0.3.0-rc.5
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/README.md +20 -0
- package/dist/_chunks/chunk-GLD5WP6Z.js +1 -0
- package/dist/_chunks/chunk-NSS2BKVM.js +1 -0
- package/dist/_types/contracts/delivery-manifest.d.ts +63 -27
- package/dist/_types/contracts/delivery-operations.d.ts +21 -9
- package/dist/_types/contracts/device-render.d.ts +10 -0
- package/dist/_types/contracts/exploration-recommendation.d.ts +84 -36
- package/dist/_types/contracts/final-render.d.ts +9 -0
- package/dist/_types/contracts/index.d.ts +1 -0
- package/dist/_types/contracts/local-execution/agent-context.d.ts +365 -0
- package/dist/_types/contracts/local-execution/agent-evidence.d.ts +79 -0
- package/dist/_types/contracts/local-execution/agent-grant.d.ts +31 -0
- package/dist/_types/contracts/local-execution/agent-review.d.ts +733 -46
- package/dist/_types/contracts/local-execution/device.d.ts +10 -2
- package/dist/_types/contracts/local-execution/index.d.ts +6 -0
- package/dist/_types/contracts/local-execution/ipc.d.ts +1759 -37
- package/dist/_types/contracts/local-execution/lifecycle.d.ts +48 -6
- package/dist/_types/contracts/local-execution/local-navigation.d.ts +112 -10
- package/dist/_types/contracts/local-execution/management.d.ts +394 -0
- package/dist/_types/contracts/local-execution/media-recipe.d.ts +203 -0
- package/dist/_types/contracts/local-execution/offline.d.ts +59 -0
- package/dist/_types/contracts/local-execution/preview.d.ts +7607 -159
- package/dist/_types/contracts/local-execution/work.d.ts +7674 -294
- package/dist/_types/contracts/local-execution/workspace.d.ts +136 -0
- package/dist/_types/contracts/programmatic-exploration.d.ts +42 -18
- package/dist/_types/contracts/repair-strategy.d.ts +42 -18
- package/dist/_types/contracts/review-intelligence-final-output.d.ts +42 -18
- package/dist/_types/contracts/review-intelligence.d.ts +84 -36
- package/dist/_types/contracts/rough-cut-manifest.d.ts +7 -3
- package/dist/_types/contracts/rough-cut-profile.d.ts +12 -3
- package/dist/_types/contracts/rough-cut-review.d.ts +126 -54
- package/dist/_types/contracts/rough-cut.d.ts +85 -32
- package/dist/_types/contracts/visual-layer-render.d.ts +21 -9
- package/dist/_types/sdk/catalog/assembly.d.ts +146 -110
- package/dist/_types/sdk/catalog/delivery.d.ts +36 -36
- package/dist/_types/sdk/catalog/programmatic-exploration.d.ts +36 -36
- package/dist/_types/sdk/catalog/repair-strategy.d.ts +36 -36
- package/dist/_types/sdk/catalog/reviewer.d.ts +72 -72
- package/dist/_types/sdk/catalog/visual-exploration.d.ts +36 -36
- package/dist/_types/sdk/client.d.ts +2 -0
- package/dist/_types/sdk/device-renders.d.ts +138 -0
- package/dist/_types/sdk/index.d.ts +1 -0
- package/dist/_types/sdk/local-runtime/device-client.d.ts +138 -2
- package/dist/_types/sdk/local-runtime/workspace.d.ts +181 -0
- package/dist/_types/sdk/local-runtime-client.d.ts +1294 -56
- package/dist/_types/sdk/mcp-client.d.ts +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/local-runtime.js +1 -1
- package/dist/native/JobNative.cs +10 -0
- package/dist/native/JobRunner.cs +24 -3
- package/dist/native/NativeMain.cs +15 -0
- package/dist/runtime-authority.js +1 -1
- package/package.json +1 -1
- package/dist/_chunks/chunk-34KSWLCI.js +0 -1
- package/dist/_chunks/chunk-4IOFVNFG.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { EnrollLocalDeviceSchema, GrantLocalDeviceSchema, RevokeLocalDeviceSchema, RevokeLocalDeviceGrantSchema, StartLocalPreviewSchema } from "../../contracts/local-execution/index.js";
|
|
2
|
+
import { EnrollLocalDeviceSchema, GrantLocalDeviceSchema, RevokeLocalDeviceSchema, RevokeLocalDeviceGrantSchema, StartLocalPreviewSchema, StartLocalFinalRenderSchema, LocalManagementCommandSchema } from "../../contracts/local-execution/index.js";
|
|
3
3
|
/** Human/member-authorized native management; never composed with an MCP execution connector. */
|
|
4
4
|
export declare class NativeStudioLocalDeviceClient {
|
|
5
5
|
private readonly options;
|
|
@@ -31,10 +31,108 @@ export declare class NativeStudioLocalDeviceClient {
|
|
|
31
31
|
verifiedAt: string | null;
|
|
32
32
|
revokedAt: string | null;
|
|
33
33
|
}>;
|
|
34
|
+
managementReceipt(input: z.infer<typeof LocalManagementCommandSchema>, 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
|
+
label: string;
|
|
45
|
+
platform: {
|
|
46
|
+
os: "darwin" | "linux" | "win32";
|
|
47
|
+
architecture: "x64" | "arm64";
|
|
48
|
+
};
|
|
49
|
+
runtimeVersion: string;
|
|
50
|
+
deviceId: string;
|
|
51
|
+
revision: number;
|
|
52
|
+
enrolledByPrincipalId: string;
|
|
53
|
+
createdAt: string;
|
|
54
|
+
verifiedAt: string | null;
|
|
55
|
+
revokedAt: string | null;
|
|
56
|
+
} | {
|
|
57
|
+
tenantId: string;
|
|
58
|
+
projectId: string;
|
|
59
|
+
capability: "ROUGH_CUT_PREVIEW_V1" | "STUDIO_MEDIA_V2";
|
|
60
|
+
expiresAt: string;
|
|
61
|
+
deviceId: string;
|
|
62
|
+
deviceRevision: number;
|
|
63
|
+
grantId: string;
|
|
64
|
+
revision: number;
|
|
65
|
+
approvedByPrincipalId: string;
|
|
66
|
+
createdAt: string;
|
|
67
|
+
revokedAt: string | null;
|
|
68
|
+
executionPolicy?: "DEVICE_ONLY" | undefined;
|
|
69
|
+
} | {
|
|
70
|
+
semanticStatus: "ACCEPTED";
|
|
71
|
+
renderId: string;
|
|
72
|
+
operationId: string & z.core.$brand<"OperationId">;
|
|
73
|
+
productionId: string;
|
|
74
|
+
timelineVersionId: string;
|
|
75
|
+
timelineFingerprint: string;
|
|
76
|
+
executionClass: "LIVE" | "TEST_ONLY";
|
|
77
|
+
manifestFingerprint: string;
|
|
78
|
+
productionRevision: number;
|
|
79
|
+
placement: {
|
|
80
|
+
target: "DEVICE" | "SERVER";
|
|
81
|
+
reason: "OFFLINE" | "UNQUALIFIED" | "BUSY" | "LOCAL_AVAILABLE" | "CLOUD_ONLY" | "LEASE_RECOVERY";
|
|
82
|
+
policy: {
|
|
83
|
+
mode: "local-only";
|
|
84
|
+
deviceId: string;
|
|
85
|
+
} | {
|
|
86
|
+
mode: "local-preferred";
|
|
87
|
+
deviceId: string;
|
|
88
|
+
} | {
|
|
89
|
+
mode: "cloud-only";
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
deviceExecution?: {
|
|
93
|
+
mode: "tenant-device-only";
|
|
94
|
+
deviceId: string;
|
|
95
|
+
runtimeJobId: string;
|
|
96
|
+
} | undefined;
|
|
97
|
+
} | {
|
|
98
|
+
semanticStatus: "ACCEPTED";
|
|
99
|
+
renderId: string;
|
|
100
|
+
operationId: string & z.core.$brand<"OperationId">;
|
|
101
|
+
productionId: string;
|
|
102
|
+
timelineVersionId: string;
|
|
103
|
+
timelineFingerprint: string;
|
|
104
|
+
executionClass: "LIVE" | "TEST_ONLY";
|
|
105
|
+
manifestFingerprint: string;
|
|
106
|
+
productionRevision: number;
|
|
107
|
+
selectionId: string;
|
|
108
|
+
selectionVersion: number;
|
|
109
|
+
profileId: "FINAL_H264_1080P_V1" | "FINAL_H264_720P_V1" | "FINAL_H264_480P_V1";
|
|
110
|
+
placement: {
|
|
111
|
+
target: "DEVICE" | "SERVER";
|
|
112
|
+
reason: "OFFLINE" | "UNQUALIFIED" | "BUSY" | "LOCAL_AVAILABLE" | "CLOUD_ONLY" | "LEASE_RECOVERY";
|
|
113
|
+
policy: {
|
|
114
|
+
mode: "local-only";
|
|
115
|
+
deviceId: string;
|
|
116
|
+
} | {
|
|
117
|
+
mode: "local-preferred";
|
|
118
|
+
deviceId: string;
|
|
119
|
+
} | {
|
|
120
|
+
mode: "cloud-only";
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
deviceExecution?: {
|
|
124
|
+
mode: "tenant-device-only";
|
|
125
|
+
deviceId: string;
|
|
126
|
+
runtimeJobId: string;
|
|
127
|
+
} | undefined;
|
|
128
|
+
} | {
|
|
129
|
+
semanticStatus: "SUCCESS";
|
|
130
|
+
} | null;
|
|
131
|
+
}>;
|
|
34
132
|
grant(input: z.infer<typeof GrantLocalDeviceSchema>, signal?: AbortSignal): Promise<{
|
|
35
133
|
tenantId: string;
|
|
36
134
|
projectId: string;
|
|
37
|
-
capability: "ROUGH_CUT_PREVIEW_V1";
|
|
135
|
+
capability: "ROUGH_CUT_PREVIEW_V1" | "STUDIO_MEDIA_V2";
|
|
38
136
|
expiresAt: string;
|
|
39
137
|
deviceId: string;
|
|
40
138
|
deviceRevision: number;
|
|
@@ -43,6 +141,7 @@ export declare class NativeStudioLocalDeviceClient {
|
|
|
43
141
|
approvedByPrincipalId: string;
|
|
44
142
|
createdAt: string;
|
|
45
143
|
revokedAt: string | null;
|
|
144
|
+
executionPolicy?: "DEVICE_ONLY" | undefined;
|
|
46
145
|
}>;
|
|
47
146
|
revokeDevice(input: z.infer<typeof RevokeLocalDeviceSchema>, signal?: AbortSignal): Promise<{
|
|
48
147
|
semanticStatus: "SUCCESS";
|
|
@@ -73,5 +172,42 @@ export declare class NativeStudioLocalDeviceClient {
|
|
|
73
172
|
mode: "cloud-only";
|
|
74
173
|
};
|
|
75
174
|
};
|
|
175
|
+
deviceExecution?: {
|
|
176
|
+
mode: "tenant-device-only";
|
|
177
|
+
deviceId: string;
|
|
178
|
+
runtimeJobId: string;
|
|
179
|
+
} | undefined;
|
|
180
|
+
}>;
|
|
181
|
+
startFinal(input: z.infer<typeof StartLocalFinalRenderSchema>, signal?: AbortSignal): Promise<{
|
|
182
|
+
semanticStatus: "ACCEPTED";
|
|
183
|
+
renderId: string;
|
|
184
|
+
operationId: string & z.core.$brand<"OperationId">;
|
|
185
|
+
productionId: string;
|
|
186
|
+
timelineVersionId: string;
|
|
187
|
+
timelineFingerprint: string;
|
|
188
|
+
executionClass: "LIVE" | "TEST_ONLY";
|
|
189
|
+
manifestFingerprint: string;
|
|
190
|
+
productionRevision: number;
|
|
191
|
+
selectionId: string;
|
|
192
|
+
selectionVersion: number;
|
|
193
|
+
profileId: "FINAL_H264_1080P_V1" | "FINAL_H264_720P_V1" | "FINAL_H264_480P_V1";
|
|
194
|
+
placement: {
|
|
195
|
+
target: "DEVICE" | "SERVER";
|
|
196
|
+
reason: "OFFLINE" | "UNQUALIFIED" | "BUSY" | "LOCAL_AVAILABLE" | "CLOUD_ONLY" | "LEASE_RECOVERY";
|
|
197
|
+
policy: {
|
|
198
|
+
mode: "local-only";
|
|
199
|
+
deviceId: string;
|
|
200
|
+
} | {
|
|
201
|
+
mode: "local-preferred";
|
|
202
|
+
deviceId: string;
|
|
203
|
+
} | {
|
|
204
|
+
mode: "cloud-only";
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
deviceExecution?: {
|
|
208
|
+
mode: "tenant-device-only";
|
|
209
|
+
deviceId: string;
|
|
210
|
+
runtimeJobId: string;
|
|
211
|
+
} | undefined;
|
|
76
212
|
}>;
|
|
77
213
|
}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import type { NativeStudioLocalRuntimeClient } from "../local-runtime-client.js";
|
|
2
|
+
/** Owner-only mechanics. Scoped connectors are still denied by the Runtime. */
|
|
3
|
+
export declare class NativeStudioLocalWorkspaceClient {
|
|
4
|
+
private readonly client;
|
|
5
|
+
constructor(client: Pick<NativeStudioLocalRuntimeClient, "call">);
|
|
6
|
+
offline(raw: unknown, signal?: AbortSignal): Promise<{
|
|
7
|
+
historical: true;
|
|
8
|
+
items: {
|
|
9
|
+
snapshot: {
|
|
10
|
+
projectId: string;
|
|
11
|
+
title: string;
|
|
12
|
+
savedAt: string;
|
|
13
|
+
expiresAt: string;
|
|
14
|
+
productions: {
|
|
15
|
+
id: string;
|
|
16
|
+
title: string;
|
|
17
|
+
}[];
|
|
18
|
+
possiblyTruncated: boolean;
|
|
19
|
+
};
|
|
20
|
+
draft: {
|
|
21
|
+
text: string;
|
|
22
|
+
revision: number;
|
|
23
|
+
};
|
|
24
|
+
}[];
|
|
25
|
+
}>;
|
|
26
|
+
inspect(signal?: AbortSignal): Promise<{
|
|
27
|
+
settings: {
|
|
28
|
+
revision: number;
|
|
29
|
+
policy: {
|
|
30
|
+
mode: "CONTINUOUS" | "IDLE_ONLY";
|
|
31
|
+
idleAfterSeconds: number;
|
|
32
|
+
maxConcurrentJobs: number;
|
|
33
|
+
cpuCores: 2 | 1;
|
|
34
|
+
memoryMiB: number;
|
|
35
|
+
cacheQuotaBytes: number;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
storage: {
|
|
39
|
+
cacheBytes: number;
|
|
40
|
+
protectedBytes: number;
|
|
41
|
+
reclaimableBytes: number;
|
|
42
|
+
transferBytes: number;
|
|
43
|
+
journalBytes: number;
|
|
44
|
+
availableDiskBytes: number;
|
|
45
|
+
quotaBytes: number;
|
|
46
|
+
overQuota: boolean;
|
|
47
|
+
reviewBytes?: number | undefined;
|
|
48
|
+
ownerStagingBytes?: number | undefined;
|
|
49
|
+
};
|
|
50
|
+
scheduling: {
|
|
51
|
+
state: "READY" | "WAITING_FOR_IDLE" | "AT_CAPACITY" | "DRAINING";
|
|
52
|
+
activeJobs: number;
|
|
53
|
+
idleObservationCurrent: boolean;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
configure(raw: unknown, expectedRevision: number, signal?: AbortSignal): Promise<{
|
|
57
|
+
settings: {
|
|
58
|
+
revision: number;
|
|
59
|
+
policy: {
|
|
60
|
+
mode: "CONTINUOUS" | "IDLE_ONLY";
|
|
61
|
+
idleAfterSeconds: number;
|
|
62
|
+
maxConcurrentJobs: number;
|
|
63
|
+
cpuCores: 2 | 1;
|
|
64
|
+
memoryMiB: number;
|
|
65
|
+
cacheQuotaBytes: number;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
storage: {
|
|
69
|
+
cacheBytes: number;
|
|
70
|
+
protectedBytes: number;
|
|
71
|
+
reclaimableBytes: number;
|
|
72
|
+
transferBytes: number;
|
|
73
|
+
journalBytes: number;
|
|
74
|
+
availableDiskBytes: number;
|
|
75
|
+
quotaBytes: number;
|
|
76
|
+
overQuota: boolean;
|
|
77
|
+
reviewBytes?: number | undefined;
|
|
78
|
+
ownerStagingBytes?: number | undefined;
|
|
79
|
+
};
|
|
80
|
+
scheduling: {
|
|
81
|
+
state: "READY" | "WAITING_FOR_IDLE" | "AT_CAPACITY" | "DRAINING";
|
|
82
|
+
activeJobs: number;
|
|
83
|
+
idleObservationCurrent: boolean;
|
|
84
|
+
};
|
|
85
|
+
}>;
|
|
86
|
+
observeActivity(idleSeconds: number, observedAt: string, signal?: AbortSignal): Promise<{
|
|
87
|
+
settings: {
|
|
88
|
+
revision: number;
|
|
89
|
+
policy: {
|
|
90
|
+
mode: "CONTINUOUS" | "IDLE_ONLY";
|
|
91
|
+
idleAfterSeconds: number;
|
|
92
|
+
maxConcurrentJobs: number;
|
|
93
|
+
cpuCores: 2 | 1;
|
|
94
|
+
memoryMiB: number;
|
|
95
|
+
cacheQuotaBytes: number;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
storage: {
|
|
99
|
+
cacheBytes: number;
|
|
100
|
+
protectedBytes: number;
|
|
101
|
+
reclaimableBytes: number;
|
|
102
|
+
transferBytes: number;
|
|
103
|
+
journalBytes: number;
|
|
104
|
+
availableDiskBytes: number;
|
|
105
|
+
quotaBytes: number;
|
|
106
|
+
overQuota: boolean;
|
|
107
|
+
reviewBytes?: number | undefined;
|
|
108
|
+
ownerStagingBytes?: number | undefined;
|
|
109
|
+
};
|
|
110
|
+
scheduling: {
|
|
111
|
+
state: "READY" | "WAITING_FOR_IDLE" | "AT_CAPACITY" | "DRAINING";
|
|
112
|
+
activeJobs: number;
|
|
113
|
+
idleObservationCurrent: boolean;
|
|
114
|
+
};
|
|
115
|
+
}>;
|
|
116
|
+
clean(signal?: AbortSignal): Promise<{
|
|
117
|
+
settings: {
|
|
118
|
+
revision: number;
|
|
119
|
+
policy: {
|
|
120
|
+
mode: "CONTINUOUS" | "IDLE_ONLY";
|
|
121
|
+
idleAfterSeconds: number;
|
|
122
|
+
maxConcurrentJobs: number;
|
|
123
|
+
cpuCores: 2 | 1;
|
|
124
|
+
memoryMiB: number;
|
|
125
|
+
cacheQuotaBytes: number;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
storage: {
|
|
129
|
+
cacheBytes: number;
|
|
130
|
+
protectedBytes: number;
|
|
131
|
+
reclaimableBytes: number;
|
|
132
|
+
transferBytes: number;
|
|
133
|
+
journalBytes: number;
|
|
134
|
+
availableDiskBytes: number;
|
|
135
|
+
quotaBytes: number;
|
|
136
|
+
overQuota: boolean;
|
|
137
|
+
reviewBytes?: number | undefined;
|
|
138
|
+
ownerStagingBytes?: number | undefined;
|
|
139
|
+
};
|
|
140
|
+
scheduling: {
|
|
141
|
+
state: "READY" | "WAITING_FOR_IDLE" | "AT_CAPACITY" | "DRAINING";
|
|
142
|
+
activeJobs: number;
|
|
143
|
+
idleObservationCurrent: boolean;
|
|
144
|
+
};
|
|
145
|
+
}>;
|
|
146
|
+
diagnostics(signal?: AbortSignal): Promise<{
|
|
147
|
+
protocol: "NVS_LOCAL_DIAGNOSTICS_V1";
|
|
148
|
+
createdAt: string;
|
|
149
|
+
runtimeVersion: string;
|
|
150
|
+
runtimeRevision: number;
|
|
151
|
+
settings: {
|
|
152
|
+
revision: number;
|
|
153
|
+
policy: {
|
|
154
|
+
mode: "CONTINUOUS" | "IDLE_ONLY";
|
|
155
|
+
idleAfterSeconds: number;
|
|
156
|
+
maxConcurrentJobs: number;
|
|
157
|
+
cpuCores: 2 | 1;
|
|
158
|
+
memoryMiB: number;
|
|
159
|
+
cacheQuotaBytes: number;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
storage: {
|
|
163
|
+
cacheBytes: number;
|
|
164
|
+
protectedBytes: number;
|
|
165
|
+
reclaimableBytes: number;
|
|
166
|
+
transferBytes: number;
|
|
167
|
+
journalBytes: number;
|
|
168
|
+
availableDiskBytes: number;
|
|
169
|
+
quotaBytes: number;
|
|
170
|
+
overQuota: boolean;
|
|
171
|
+
reviewBytes?: number | undefined;
|
|
172
|
+
ownerStagingBytes?: number | undefined;
|
|
173
|
+
};
|
|
174
|
+
recordCounts: Record<string, number>;
|
|
175
|
+
failures: {
|
|
176
|
+
taskFingerprint: string;
|
|
177
|
+
code: string;
|
|
178
|
+
observedAt: string;
|
|
179
|
+
}[];
|
|
180
|
+
}>;
|
|
181
|
+
}
|