@opengeni/contracts 0.39.0 → 0.44.1
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/dist/atlassian.d.ts +278 -0
- package/dist/atlassian.js +55 -0
- package/dist/atlassian.js.map +1 -0
- package/dist/chunk-52SGB2QO.js +688 -0
- package/dist/chunk-52SGB2QO.js.map +1 -0
- package/dist/{chunk-7JZMI22I.js → chunk-5UDNP7AO.js} +34 -2
- package/dist/chunk-5UDNP7AO.js.map +1 -0
- package/dist/chunk-BVGIYW7D.js +11 -0
- package/dist/chunk-BVGIYW7D.js.map +1 -0
- package/dist/chunk-CADSX6UN.js +1145 -0
- package/dist/chunk-CADSX6UN.js.map +1 -0
- package/dist/chunk-D2HKF2EF.js +1460 -0
- package/dist/chunk-D2HKF2EF.js.map +1 -0
- package/dist/chunk-FJBG5E4O.js +194 -0
- package/dist/chunk-FJBG5E4O.js.map +1 -0
- package/dist/chunk-H5BVCZKF.js +382 -0
- package/dist/chunk-H5BVCZKF.js.map +1 -0
- package/dist/chunk-LSB7GRLG.js +779 -0
- package/dist/chunk-LSB7GRLG.js.map +1 -0
- package/dist/chunk-MYBZRDTY.js +340 -0
- package/dist/chunk-MYBZRDTY.js.map +1 -0
- package/dist/chunk-RIY7GYQS.js +1204 -0
- package/dist/chunk-RIY7GYQS.js.map +1 -0
- package/dist/chunk-TZ6YEYN4.js +386 -0
- package/dist/chunk-TZ6YEYN4.js.map +1 -0
- package/dist/chunk-VA22KRHS.js +15177 -0
- package/dist/chunk-VA22KRHS.js.map +1 -0
- package/dist/chunk-Y3MLSLB4.js +392 -0
- package/dist/chunk-Y3MLSLB4.js.map +1 -0
- package/dist/chunk-YRKRZ6OF.js +134 -0
- package/dist/chunk-YRKRZ6OF.js.map +1 -0
- package/dist/company-profile.d.ts +629 -0
- package/dist/document-artifact-commands.d.ts +282 -0
- package/dist/document-artifact-commands.js +54 -0
- package/dist/document-artifact-commands.js.map +1 -0
- package/dist/document-artifact-query.d.ts +2 -0
- package/dist/document-artifact-query.js +54 -0
- package/dist/document-artifact-query.js.map +1 -0
- package/dist/editable-artifact-binary.d.ts +56 -0
- package/dist/editable-artifact-causal-frontier.d.ts +12 -0
- package/dist/editable-artifact-causal-frontier.js +18 -0
- package/dist/editable-artifact-causal-frontier.js.map +1 -0
- package/dist/editable-artifact-codec-registry.d.ts +48 -0
- package/dist/editable-artifact-codec-registry.js +20 -0
- package/dist/editable-artifact-codec-registry.js.map +1 -0
- package/dist/editable-artifact-committed-transaction.d.ts +35 -0
- package/dist/editable-artifact-committed-transaction.js +19 -0
- package/dist/editable-artifact-committed-transaction.js.map +1 -0
- package/dist/editable-artifact-live.d.ts +276 -0
- package/dist/editable-artifact-live.js +907 -0
- package/dist/editable-artifact-live.js.map +1 -0
- package/dist/editable-artifact-serialized-commit.d.ts +53 -0
- package/dist/editable-artifact-serialized-commit.js +26 -0
- package/dist/editable-artifact-serialized-commit.js.map +1 -0
- package/dist/editable-artifact-versions.d.ts +6 -0
- package/dist/editable-artifact-versions.js +11 -0
- package/dist/editable-artifact-versions.js.map +1 -0
- package/dist/editable-artifacts.d.ts +46 -0
- package/dist/editable-artifacts.js +236 -0
- package/dist/editable-artifacts.js.map +1 -0
- package/dist/event-preview.d.ts +7 -7
- package/dist/google-drive.d.ts +114 -2
- package/dist/google-drive.js +70 -14
- package/dist/google-drive.js.map +1 -1
- package/dist/image-generation.d.ts +70 -0
- package/dist/index.d.ts +5180 -329
- package/dist/index.js +1173 -40
- package/dist/interaction.d.ts +6895 -0
- package/dist/mcp-receipts.d.ts +96 -0
- package/dist/memory-slack-delivery.d.ts +397 -0
- package/dist/presentation-artifact-commands.d.ts +349 -0
- package/dist/presentation-artifact-commands.js +66 -0
- package/dist/presentation-artifact-commands.js.map +1 -0
- package/dist/presentation-artifact-query.d.ts +2 -0
- package/dist/presentation-artifact-query.js +66 -0
- package/dist/presentation-artifact-query.js.map +1 -0
- package/dist/retained-output.d.ts +83 -6
- package/dist/sandbox-snapshots.d.ts +9 -0
- package/dist/scoped-knowledge.d.ts +14 -13
- package/dist/slack-bot-scopes.d.ts +4 -0
- package/dist/slack-bot-scopes.js +3 -1
- package/dist/spreadsheet-artifact-commands.d.ts +101 -0
- package/dist/spreadsheet-artifact-commands.js +27 -0
- package/dist/spreadsheet-artifact-commands.js.map +1 -0
- package/dist/spreadsheet-artifact-date.d.ts +4 -0
- package/dist/spreadsheet-artifact-query.d.ts +120 -0
- package/dist/spreadsheet-artifact-query.js +48 -0
- package/dist/spreadsheet-artifact-query.js.map +1 -0
- package/dist/tool-catalog.d.ts +576 -0
- package/dist/video-generation.d.ts +532 -0
- package/dist/video-generation.js +51 -0
- package/dist/video-generation.js.map +1 -0
- package/dist/workspace-learning-policy.d.ts +208 -0
- package/package.json +61 -1
- package/src/atlassian.ts +160 -0
- package/src/company-profile.ts +306 -0
- package/src/document-artifact-commands.ts +1709 -0
- package/src/document-artifact-query.ts +2 -0
- package/src/editable-artifact-binary.ts +396 -0
- package/src/editable-artifact-causal-frontier.ts +154 -0
- package/src/editable-artifact-codec-registry.ts +261 -0
- package/src/editable-artifact-committed-transaction.ts +478 -0
- package/src/editable-artifact-live.ts +1379 -0
- package/src/editable-artifact-serialized-commit.ts +494 -0
- package/src/editable-artifact-versions.ts +8 -0
- package/src/editable-artifacts.ts +473 -0
- package/src/event-preview.ts +6 -6
- package/src/google-drive.ts +68 -15
- package/src/image-generation.ts +106 -0
- package/src/index.ts +2535 -282
- package/src/interaction.ts +2292 -0
- package/src/mcp-receipts.ts +281 -0
- package/src/memory-slack-delivery.ts +183 -0
- package/src/presentation-artifact-commands.ts +2035 -0
- package/src/presentation-artifact-query.ts +2 -0
- package/src/retained-output.ts +248 -8
- package/src/sandbox-snapshots.ts +28 -1
- package/src/scoped-knowledge.ts +18 -4
- package/src/slack-bot-scopes.ts +34 -1
- package/src/spreadsheet-artifact-commands.ts +999 -0
- package/src/spreadsheet-artifact-date.ts +21 -0
- package/src/spreadsheet-artifact-query.ts +1411 -0
- package/src/tool-catalog.ts +334 -0
- package/src/video-generation.ts +394 -0
- package/src/workspace-learning-policy.ts +233 -0
- package/dist/chunk-7JZMI22I.js.map +0 -1
- package/dist/chunk-PCTCJEAF.js +0 -10799
- package/dist/chunk-PCTCJEAF.js.map +0 -1
- package/dist/secret-redaction.d.ts +0 -40
- package/src/secret-redaction.ts +0 -364
|
@@ -0,0 +1,688 @@
|
|
|
1
|
+
// src/video-generation.ts
|
|
2
|
+
import { z as z2 } from "zod";
|
|
3
|
+
|
|
4
|
+
// src/retained-output.ts
|
|
5
|
+
import { z } from "zod";
|
|
6
|
+
var RETAINED_OUTPUT_MAX_PAGE_BYTES = 1024 * 1024;
|
|
7
|
+
var RETAINED_OUTPUT_DEFAULT_PAGE_BYTES = 256 * 1024;
|
|
8
|
+
var RETAINED_OUTPUT_RECEIPT_MAX_BYTES = 2 * 1024;
|
|
9
|
+
var COMPUTER_SCREENSHOT_MAX_BYTES = 32 * 1024 * 1024;
|
|
10
|
+
var COMPUTER_SCREENSHOT_MAX_DIMENSION = 16384;
|
|
11
|
+
var COMPUTER_SCREENSHOT_MAX_PIXELS = 67108864;
|
|
12
|
+
var COMPUTER_SCREENSHOT_RETENTION_MS = 30 * 24 * 60 * 60 * 1e3;
|
|
13
|
+
var COMPUTER_SCREENSHOT_WORKSPACE_QUOTA_BYTES = 5 * 1024 * 1024 * 1024;
|
|
14
|
+
var GENERATED_IMAGE_MAX_BYTES = 64 * 1024 * 1024;
|
|
15
|
+
var GENERATED_VIDEO_MAX_BYTES = 512 * 1024 * 1024;
|
|
16
|
+
var encoder = new TextEncoder();
|
|
17
|
+
var LOWERCASE_UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/;
|
|
18
|
+
var LOWERCASE_SHA256 = /^[0-9a-f]{64}$/;
|
|
19
|
+
var CANONICAL_MEDIA_TYPE = /^[a-z0-9][a-z0-9!#$&^_.+-]{0,62}\/[a-z0-9][a-z0-9!#$&^_.+-]{0,62}$/;
|
|
20
|
+
var WORKSPACE_RETRIEVAL_PATH = /^\/v1\/workspaces\/([0-9a-f-]+)\/artifacts\/([0-9a-f-]+)\/content$/;
|
|
21
|
+
var SESSION_RETRIEVAL_PATH = /^\/v1\/workspaces\/([0-9a-f-]+)\/sessions\/([0-9a-f-]+)\/artifacts\/([0-9a-f-]+)\/content$/;
|
|
22
|
+
var RetainedOutputKind = z.enum([
|
|
23
|
+
"tool_result",
|
|
24
|
+
"assistant_completion",
|
|
25
|
+
"internal_update",
|
|
26
|
+
"event_media",
|
|
27
|
+
"computer_screenshot",
|
|
28
|
+
"generated_image",
|
|
29
|
+
"generated_video",
|
|
30
|
+
"file"
|
|
31
|
+
]);
|
|
32
|
+
var RetainedOutputUnavailableReason = z.enum([
|
|
33
|
+
"not_retained",
|
|
34
|
+
"pending",
|
|
35
|
+
"failed",
|
|
36
|
+
"expired",
|
|
37
|
+
"deleted",
|
|
38
|
+
"missing_storage",
|
|
39
|
+
"storage_write_failed",
|
|
40
|
+
"quota_exceeded",
|
|
41
|
+
"invalid_content",
|
|
42
|
+
"oversized",
|
|
43
|
+
"unsupported"
|
|
44
|
+
]);
|
|
45
|
+
var RetainedOutputUnavailableEvidenceSchema = z.object({
|
|
46
|
+
available: z.literal(false),
|
|
47
|
+
reason: RetainedOutputUnavailableReason
|
|
48
|
+
}).strict();
|
|
49
|
+
var RetainedArtifactReferenceSchema = z.object({
|
|
50
|
+
available: z.literal(true),
|
|
51
|
+
artifactId: z.string().regex(LOWERCASE_UUID),
|
|
52
|
+
kind: RetainedOutputKind,
|
|
53
|
+
contentType: z.string().max(127).regex(CANONICAL_MEDIA_TYPE),
|
|
54
|
+
originalBytes: z.number().int().nonnegative().safe(),
|
|
55
|
+
sha256: z.string().regex(LOWERCASE_SHA256),
|
|
56
|
+
retainedAt: z.string().datetime({ offset: true }),
|
|
57
|
+
dimensions: z.object({
|
|
58
|
+
width: z.number().int().positive().max(COMPUTER_SCREENSHOT_MAX_DIMENSION),
|
|
59
|
+
height: z.number().int().positive().max(COMPUTER_SCREENSHOT_MAX_DIMENSION)
|
|
60
|
+
}).strict().optional(),
|
|
61
|
+
retention: z.union([
|
|
62
|
+
z.object({
|
|
63
|
+
policy: z.literal("workspace_file"),
|
|
64
|
+
expiresAt: z.null()
|
|
65
|
+
}).strict(),
|
|
66
|
+
z.object({
|
|
67
|
+
policy: z.literal("session_screenshot"),
|
|
68
|
+
expiresAt: z.string().datetime({ offset: true })
|
|
69
|
+
}).strict()
|
|
70
|
+
]),
|
|
71
|
+
retrieval: z.object({
|
|
72
|
+
method: z.literal("GET"),
|
|
73
|
+
path: z.string().max(256),
|
|
74
|
+
acceptRanges: z.literal("bytes"),
|
|
75
|
+
maxRangeBytes: z.number().int().positive().max(RETAINED_OUTPUT_MAX_PAGE_BYTES)
|
|
76
|
+
}).strict()
|
|
77
|
+
}).strict().superRefine((value, ctx) => {
|
|
78
|
+
const workspaceMatch = WORKSPACE_RETRIEVAL_PATH.exec(value.retrieval.path);
|
|
79
|
+
const sessionMatch = SESSION_RETRIEVAL_PATH.exec(value.retrieval.path);
|
|
80
|
+
const workspaceId = workspaceMatch?.[1] ?? sessionMatch?.[1];
|
|
81
|
+
const sessionId = sessionMatch?.[2];
|
|
82
|
+
const artifactId = workspaceMatch?.[2] ?? sessionMatch?.[3];
|
|
83
|
+
if (!workspaceId || !LOWERCASE_UUID.test(workspaceId) || sessionId !== void 0 && !LOWERCASE_UUID.test(sessionId) || artifactId !== value.artifactId) {
|
|
84
|
+
ctx.addIssue({
|
|
85
|
+
code: "custom",
|
|
86
|
+
path: ["retrieval", "path"],
|
|
87
|
+
message: "retrieval path must be a workspace/session API content path for this artifact"
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
if (value.kind === "computer_screenshot" || value.kind === "generated_image" || value.kind === "generated_video") {
|
|
91
|
+
if (!value.dimensions) {
|
|
92
|
+
ctx.addIssue({
|
|
93
|
+
code: "custom",
|
|
94
|
+
path: ["dimensions"],
|
|
95
|
+
message: `${value.kind} receipts require exact dimensions`
|
|
96
|
+
});
|
|
97
|
+
} else if (value.dimensions.width * value.dimensions.height > COMPUTER_SCREENSHOT_MAX_PIXELS) {
|
|
98
|
+
ctx.addIssue({
|
|
99
|
+
code: "custom",
|
|
100
|
+
path: ["dimensions"],
|
|
101
|
+
message: `${value.kind} dimensions exceed the pixel limit`
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
if (value.kind === "generated_image") {
|
|
106
|
+
if (value.retention.policy !== "workspace_file" || !workspaceMatch || sessionMatch) {
|
|
107
|
+
ctx.addIssue({
|
|
108
|
+
code: "custom",
|
|
109
|
+
path: ["retention"],
|
|
110
|
+
message: "generated images require permanent workspace-file retrieval"
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
if (!["image/png", "image/jpeg", "image/webp"].includes(value.contentType) || value.originalBytes <= 0 || value.originalBytes > GENERATED_IMAGE_MAX_BYTES) {
|
|
114
|
+
ctx.addIssue({
|
|
115
|
+
code: "custom",
|
|
116
|
+
path: ["contentType"],
|
|
117
|
+
message: "generated image media metadata is invalid"
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
if (value.kind === "generated_video") {
|
|
122
|
+
if (value.retention.policy !== "workspace_file" || !workspaceMatch || sessionMatch) {
|
|
123
|
+
ctx.addIssue({
|
|
124
|
+
code: "custom",
|
|
125
|
+
path: ["retention"],
|
|
126
|
+
message: "generated videos require permanent workspace-file retrieval"
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
if (value.contentType !== "video/mp4" || value.originalBytes <= 0 || value.originalBytes > GENERATED_VIDEO_MAX_BYTES) {
|
|
130
|
+
ctx.addIssue({
|
|
131
|
+
code: "custom",
|
|
132
|
+
path: ["contentType"],
|
|
133
|
+
message: "generated video media metadata is invalid"
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
if (value.kind === "computer_screenshot") {
|
|
138
|
+
if (value.retention.policy !== "session_screenshot" || !sessionMatch) {
|
|
139
|
+
ctx.addIssue({
|
|
140
|
+
code: "custom",
|
|
141
|
+
path: ["retention"],
|
|
142
|
+
message: "computer screenshots require session-scoped expiring retrieval"
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
if (encoder.encode(JSON.stringify(value)).byteLength > RETAINED_OUTPUT_RECEIPT_MAX_BYTES) {
|
|
147
|
+
ctx.addIssue({
|
|
148
|
+
code: "custom",
|
|
149
|
+
message: "retained-output receipt exceeds its byte envelope"
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
var RetainedOutputEvidenceSchema = z.discriminatedUnion("available", [
|
|
154
|
+
RetainedOutputUnavailableEvidenceSchema,
|
|
155
|
+
RetainedArtifactReferenceSchema
|
|
156
|
+
]);
|
|
157
|
+
var RetainedArtifactUnavailableSchema = z.object({
|
|
158
|
+
available: z.literal(false),
|
|
159
|
+
artifactId: z.string().regex(LOWERCASE_UUID),
|
|
160
|
+
reason: RetainedOutputUnavailableReason
|
|
161
|
+
}).strict();
|
|
162
|
+
var RetainedArtifactMetadataSchema = z.union([
|
|
163
|
+
RetainedArtifactReferenceSchema,
|
|
164
|
+
RetainedArtifactUnavailableSchema
|
|
165
|
+
]);
|
|
166
|
+
function retainedArtifactReferenceFromFile(file, kind = "file") {
|
|
167
|
+
if (file.status !== "ready" || !file.sha256) return null;
|
|
168
|
+
const value = {
|
|
169
|
+
available: true,
|
|
170
|
+
artifactId: file.id,
|
|
171
|
+
kind,
|
|
172
|
+
contentType: canonicalRetainedContentType(file.contentType),
|
|
173
|
+
originalBytes: file.sizeBytes,
|
|
174
|
+
sha256: file.sha256,
|
|
175
|
+
retainedAt: file.updatedAt,
|
|
176
|
+
retention: {
|
|
177
|
+
policy: "workspace_file",
|
|
178
|
+
expiresAt: null
|
|
179
|
+
},
|
|
180
|
+
retrieval: {
|
|
181
|
+
method: "GET",
|
|
182
|
+
path: `/v1/workspaces/${file.workspaceId}/artifacts/${file.id}/content`,
|
|
183
|
+
acceptRanges: "bytes",
|
|
184
|
+
maxRangeBytes: RETAINED_OUTPUT_MAX_PAGE_BYTES
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
const parsed = RetainedArtifactReferenceSchema.safeParse(value);
|
|
188
|
+
return parsed.success ? parsed.data : null;
|
|
189
|
+
}
|
|
190
|
+
function retainedScreenshotReferenceFromFile(file) {
|
|
191
|
+
if (file.status !== "ready" || !file.sha256 || file.sizeBytes <= 0) return null;
|
|
192
|
+
const value = {
|
|
193
|
+
available: true,
|
|
194
|
+
artifactId: file.id,
|
|
195
|
+
kind: "computer_screenshot",
|
|
196
|
+
contentType: canonicalRetainedContentType(file.contentType),
|
|
197
|
+
originalBytes: file.sizeBytes,
|
|
198
|
+
sha256: file.sha256,
|
|
199
|
+
retainedAt: file.updatedAt,
|
|
200
|
+
dimensions: { width: file.width, height: file.height },
|
|
201
|
+
retention: {
|
|
202
|
+
policy: "session_screenshot",
|
|
203
|
+
expiresAt: file.expiresAt
|
|
204
|
+
},
|
|
205
|
+
retrieval: {
|
|
206
|
+
method: "GET",
|
|
207
|
+
path: `/v1/workspaces/${file.workspaceId}/sessions/${file.sessionId}/artifacts/${file.id}/content`,
|
|
208
|
+
acceptRanges: "bytes",
|
|
209
|
+
maxRangeBytes: RETAINED_OUTPUT_MAX_PAGE_BYTES
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
const parsed = RetainedArtifactReferenceSchema.safeParse(value);
|
|
213
|
+
return parsed.success ? parsed.data : null;
|
|
214
|
+
}
|
|
215
|
+
function retainedGeneratedImageReferenceFromFile(file) {
|
|
216
|
+
if (file.status !== "ready" || !file.sha256 || file.sizeBytes <= 0 || file.sizeBytes > GENERATED_IMAGE_MAX_BYTES) {
|
|
217
|
+
return null;
|
|
218
|
+
}
|
|
219
|
+
const value = {
|
|
220
|
+
available: true,
|
|
221
|
+
artifactId: file.id,
|
|
222
|
+
kind: "generated_image",
|
|
223
|
+
contentType: canonicalRetainedContentType(file.contentType),
|
|
224
|
+
originalBytes: file.sizeBytes,
|
|
225
|
+
sha256: file.sha256,
|
|
226
|
+
retainedAt: file.updatedAt,
|
|
227
|
+
dimensions: { width: file.width, height: file.height },
|
|
228
|
+
retention: {
|
|
229
|
+
policy: "workspace_file",
|
|
230
|
+
expiresAt: null
|
|
231
|
+
},
|
|
232
|
+
retrieval: {
|
|
233
|
+
method: "GET",
|
|
234
|
+
path: `/v1/workspaces/${file.workspaceId}/artifacts/${file.id}/content`,
|
|
235
|
+
acceptRanges: "bytes",
|
|
236
|
+
maxRangeBytes: RETAINED_OUTPUT_MAX_PAGE_BYTES
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
const parsed = RetainedArtifactReferenceSchema.safeParse(value);
|
|
240
|
+
return parsed.success ? parsed.data : null;
|
|
241
|
+
}
|
|
242
|
+
function retainedGeneratedVideoReferenceFromFile(file) {
|
|
243
|
+
if (file.status !== "ready" || file.contentType !== "video/mp4" || !file.sha256 || file.sizeBytes <= 0 || file.sizeBytes > GENERATED_VIDEO_MAX_BYTES) {
|
|
244
|
+
return null;
|
|
245
|
+
}
|
|
246
|
+
const value = {
|
|
247
|
+
available: true,
|
|
248
|
+
artifactId: file.id,
|
|
249
|
+
kind: "generated_video",
|
|
250
|
+
contentType: "video/mp4",
|
|
251
|
+
originalBytes: file.sizeBytes,
|
|
252
|
+
sha256: file.sha256,
|
|
253
|
+
retainedAt: file.updatedAt,
|
|
254
|
+
dimensions: { width: file.width, height: file.height },
|
|
255
|
+
retention: {
|
|
256
|
+
policy: "workspace_file",
|
|
257
|
+
expiresAt: null
|
|
258
|
+
},
|
|
259
|
+
retrieval: {
|
|
260
|
+
method: "GET",
|
|
261
|
+
path: `/v1/workspaces/${file.workspaceId}/artifacts/${file.id}/content`,
|
|
262
|
+
acceptRanges: "bytes",
|
|
263
|
+
maxRangeBytes: RETAINED_OUTPUT_MAX_PAGE_BYTES
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
const parsed = RetainedArtifactReferenceSchema.safeParse(value);
|
|
267
|
+
return parsed.success ? parsed.data : null;
|
|
268
|
+
}
|
|
269
|
+
function canonicalRetainedContentType(value) {
|
|
270
|
+
const mediaType = value.split(";", 1)[0]?.trim().toLowerCase() ?? "";
|
|
271
|
+
return CANONICAL_MEDIA_TYPE.test(mediaType) ? mediaType : "application/octet-stream";
|
|
272
|
+
}
|
|
273
|
+
function validateRetainedOutputEvidence(value) {
|
|
274
|
+
const parsed = RetainedOutputEvidenceSchema.safeParse(value);
|
|
275
|
+
return parsed.success ? parsed.data : null;
|
|
276
|
+
}
|
|
277
|
+
function retainedOutputUnavailable(reason = "not_retained") {
|
|
278
|
+
return { available: false, reason };
|
|
279
|
+
}
|
|
280
|
+
function resolveRetainedOutputRange(rangeHeader, totalBytes, maxPageBytes = RETAINED_OUTPUT_DEFAULT_PAGE_BYTES) {
|
|
281
|
+
assertRangeInputs(totalBytes, maxPageBytes);
|
|
282
|
+
if (rangeHeader === null || rangeHeader === void 0 || rangeHeader === "") {
|
|
283
|
+
if (totalBytes === 0) {
|
|
284
|
+
return {
|
|
285
|
+
kind: "empty",
|
|
286
|
+
length: 0,
|
|
287
|
+
totalBytes: 0,
|
|
288
|
+
status: 200,
|
|
289
|
+
contentRange: null,
|
|
290
|
+
acceptRanges: "bytes"
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
const end = Math.min(totalBytes - 1, maxPageBytes - 1);
|
|
294
|
+
const partial = end + 1 < totalBytes;
|
|
295
|
+
return resolvedRange(0, end, totalBytes, partial ? 206 : 200);
|
|
296
|
+
}
|
|
297
|
+
if (rangeHeader.length > 128 || /[^\x20-\x7e]/.test(rangeHeader)) {
|
|
298
|
+
return invalidRange("malformed", maxPageBytes);
|
|
299
|
+
}
|
|
300
|
+
if (rangeHeader.includes(",")) {
|
|
301
|
+
return invalidRange("multipart_not_supported", maxPageBytes);
|
|
302
|
+
}
|
|
303
|
+
const match = /^bytes=(\d*)-(\d*)$/.exec(rangeHeader);
|
|
304
|
+
if (!match || !match[1] && !match[2]) {
|
|
305
|
+
return invalidRange("malformed", maxPageBytes);
|
|
306
|
+
}
|
|
307
|
+
const first = parseRangeInteger(match[1]);
|
|
308
|
+
const second = parseRangeInteger(match[2]);
|
|
309
|
+
if (first === "overflow" || second === "overflow") {
|
|
310
|
+
return invalidRange("numeric_overflow", maxPageBytes);
|
|
311
|
+
}
|
|
312
|
+
if (first === null) {
|
|
313
|
+
const suffixLength = second;
|
|
314
|
+
if (suffixLength === null) return invalidRange("malformed", maxPageBytes);
|
|
315
|
+
if (suffixLength === 0) return unsatisfiableRange("zero_suffix", totalBytes);
|
|
316
|
+
if (suffixLength > maxPageBytes) return invalidRange("range_too_large", maxPageBytes);
|
|
317
|
+
if (totalBytes === 0) return unsatisfiableRange("empty_artifact", totalBytes);
|
|
318
|
+
const length = Math.min(suffixLength, totalBytes);
|
|
319
|
+
return resolvedRange(totalBytes - length, totalBytes - 1, totalBytes, 206);
|
|
320
|
+
}
|
|
321
|
+
if (totalBytes === 0) return unsatisfiableRange("empty_artifact", totalBytes);
|
|
322
|
+
if (first >= totalBytes) return unsatisfiableRange("start_out_of_bounds", totalBytes);
|
|
323
|
+
if (second === null) {
|
|
324
|
+
const end = Math.min(totalBytes - 1, first + maxPageBytes - 1);
|
|
325
|
+
return resolvedRange(first, end, totalBytes, 206);
|
|
326
|
+
}
|
|
327
|
+
if (second < first) return unsatisfiableRange("end_before_start", totalBytes);
|
|
328
|
+
if (second - first >= maxPageBytes) {
|
|
329
|
+
return invalidRange("range_too_large", maxPageBytes);
|
|
330
|
+
}
|
|
331
|
+
return resolvedRange(first, Math.min(second, totalBytes - 1), totalBytes, 206);
|
|
332
|
+
}
|
|
333
|
+
function assertRangeInputs(totalBytes, maxPageBytes) {
|
|
334
|
+
if (!Number.isSafeInteger(totalBytes) || totalBytes < 0) {
|
|
335
|
+
throw new RangeError("totalBytes must be a nonnegative safe integer");
|
|
336
|
+
}
|
|
337
|
+
if (!Number.isSafeInteger(maxPageBytes) || maxPageBytes <= 0 || maxPageBytes > RETAINED_OUTPUT_MAX_PAGE_BYTES) {
|
|
338
|
+
throw new RangeError(
|
|
339
|
+
`maxPageBytes must be an integer between 1 and ${RETAINED_OUTPUT_MAX_PAGE_BYTES}`
|
|
340
|
+
);
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
function parseRangeInteger(value) {
|
|
344
|
+
if (!value) return null;
|
|
345
|
+
if (value.length > 16) return "overflow";
|
|
346
|
+
const parsed = Number(value);
|
|
347
|
+
return Number.isSafeInteger(parsed) ? parsed : "overflow";
|
|
348
|
+
}
|
|
349
|
+
function resolvedRange(start, end, totalBytes, status) {
|
|
350
|
+
return {
|
|
351
|
+
kind: "range",
|
|
352
|
+
start,
|
|
353
|
+
end,
|
|
354
|
+
length: end - start + 1,
|
|
355
|
+
totalBytes,
|
|
356
|
+
status,
|
|
357
|
+
contentRange: status === 206 ? `bytes ${start}-${end}/${totalBytes}` : null,
|
|
358
|
+
acceptRanges: "bytes"
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
function invalidRange(reason, maxPageBytes) {
|
|
362
|
+
return { kind: "invalid", reason, maxPageBytes };
|
|
363
|
+
}
|
|
364
|
+
function unsatisfiableRange(reason, totalBytes) {
|
|
365
|
+
return {
|
|
366
|
+
kind: "unsatisfiable",
|
|
367
|
+
reason,
|
|
368
|
+
totalBytes,
|
|
369
|
+
contentRange: `bytes */${totalBytes}`
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
// src/video-generation.ts
|
|
374
|
+
var VIDEO_GENERATION_SCHEMA_VERSION = 1;
|
|
375
|
+
var SEEDANCE_2_5_MODEL_ID = "bytedance/seedance-2.5";
|
|
376
|
+
var VideoGenerationSourceMode = z2.enum([
|
|
377
|
+
"text",
|
|
378
|
+
"first_frame",
|
|
379
|
+
"first_and_last_frames",
|
|
380
|
+
"image_reference",
|
|
381
|
+
"video_reference"
|
|
382
|
+
]);
|
|
383
|
+
var VideoGenerationResolution = z2.enum(["480p", "720p"]);
|
|
384
|
+
var VideoGenerationFundingSource = z2.enum(["opengeni_credits", "workspace_gateway"]);
|
|
385
|
+
var VideoGenerationAspectRatio = z2.enum([
|
|
386
|
+
"16:9",
|
|
387
|
+
"4:3",
|
|
388
|
+
"1:1",
|
|
389
|
+
"3:4",
|
|
390
|
+
"9:16",
|
|
391
|
+
"21:9",
|
|
392
|
+
"adaptive"
|
|
393
|
+
]);
|
|
394
|
+
var SandboxVideoReferencePath = z2.string().min(1).max(1024).refine((value) => value.startsWith("/workspace/"), {
|
|
395
|
+
message: "video references must use an absolute /workspace path"
|
|
396
|
+
});
|
|
397
|
+
var VideoGenerationSource = z2.discriminatedUnion("mode", [
|
|
398
|
+
z2.object({ mode: z2.literal("text") }).strict(),
|
|
399
|
+
z2.object({
|
|
400
|
+
mode: z2.literal("first_frame"),
|
|
401
|
+
imagePath: SandboxVideoReferencePath
|
|
402
|
+
}).strict(),
|
|
403
|
+
z2.object({
|
|
404
|
+
mode: z2.literal("first_and_last_frames"),
|
|
405
|
+
firstFramePath: SandboxVideoReferencePath,
|
|
406
|
+
lastFramePath: SandboxVideoReferencePath
|
|
407
|
+
}).strict().refine((value) => value.firstFramePath !== value.lastFramePath, {
|
|
408
|
+
path: ["lastFramePath"],
|
|
409
|
+
message: "first and last frame paths must differ"
|
|
410
|
+
}),
|
|
411
|
+
z2.object({
|
|
412
|
+
mode: z2.literal("image_reference"),
|
|
413
|
+
imagePath: SandboxVideoReferencePath
|
|
414
|
+
}).strict(),
|
|
415
|
+
z2.object({
|
|
416
|
+
mode: z2.literal("video_reference"),
|
|
417
|
+
videoPath: SandboxVideoReferencePath
|
|
418
|
+
}).strict()
|
|
419
|
+
]);
|
|
420
|
+
var GenerateVideoToolInput = z2.object({
|
|
421
|
+
prompt: z2.string().min(1).max(32e3).refine((value) => value.trim().length > 0),
|
|
422
|
+
modelId: z2.string().min(1).max(256).optional(),
|
|
423
|
+
source: VideoGenerationSource.optional(),
|
|
424
|
+
durationSeconds: z2.number().int().min(4).max(30).optional(),
|
|
425
|
+
aspectRatio: VideoGenerationAspectRatio.optional(),
|
|
426
|
+
resolution: VideoGenerationResolution.optional(),
|
|
427
|
+
generateAudio: z2.boolean().optional()
|
|
428
|
+
}).strict();
|
|
429
|
+
var GetVideoGenerationCapabilitiesToolInput = z2.object({}).strict();
|
|
430
|
+
var VideoGenerationModelCapability = z2.object({
|
|
431
|
+
modelId: z2.string().min(1).max(256),
|
|
432
|
+
label: z2.string().min(1).max(128),
|
|
433
|
+
providerLabel: z2.string().min(1).max(128),
|
|
434
|
+
sourceModes: z2.array(VideoGenerationSourceMode).min(1).max(5),
|
|
435
|
+
resolutions: z2.array(VideoGenerationResolution).min(1).max(2),
|
|
436
|
+
aspectRatios: z2.array(VideoGenerationAspectRatio).min(1).max(7),
|
|
437
|
+
duration: z2.object({
|
|
438
|
+
minSeconds: z2.number().int().positive(),
|
|
439
|
+
maxSeconds: z2.number().int().positive(),
|
|
440
|
+
stepSeconds: z2.number().int().positive()
|
|
441
|
+
}).strict().refine((value) => value.maxSeconds >= value.minSeconds),
|
|
442
|
+
supportsAudio: z2.boolean()
|
|
443
|
+
}).strict();
|
|
444
|
+
var VideoGenerationCapabilities = z2.object({
|
|
445
|
+
schemaVersion: z2.literal(VIDEO_GENERATION_SCHEMA_VERSION),
|
|
446
|
+
capabilityRevision: z2.string().min(1).max(128),
|
|
447
|
+
defaultModelId: z2.string().min(1).max(256),
|
|
448
|
+
models: z2.array(VideoGenerationModelCapability).min(1).max(16)
|
|
449
|
+
}).strict().superRefine((value, ctx) => {
|
|
450
|
+
const ids = new Set(value.models.map((model) => model.modelId));
|
|
451
|
+
if (ids.size !== value.models.length) {
|
|
452
|
+
ctx.addIssue({ code: "custom", path: ["models"], message: "model ids must be unique" });
|
|
453
|
+
}
|
|
454
|
+
if (!ids.has(value.defaultModelId)) {
|
|
455
|
+
ctx.addIssue({
|
|
456
|
+
code: "custom",
|
|
457
|
+
path: ["defaultModelId"],
|
|
458
|
+
message: "default model must be present in the enabled model list"
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
});
|
|
462
|
+
var VideoGenerationPolicy = z2.object({
|
|
463
|
+
schemaVersion: z2.literal(VIDEO_GENERATION_SCHEMA_VERSION),
|
|
464
|
+
revision: z2.number().int().nonnegative().safe(),
|
|
465
|
+
fundingSource: VideoGenerationFundingSource,
|
|
466
|
+
enabledModelIds: z2.array(z2.string().min(1).max(256)).max(16),
|
|
467
|
+
defaultModelId: z2.string().min(1).max(256).nullable()
|
|
468
|
+
}).strict().superRefine((value, ctx) => {
|
|
469
|
+
const ids = new Set(value.enabledModelIds);
|
|
470
|
+
if (ids.size !== value.enabledModelIds.length) {
|
|
471
|
+
ctx.addIssue({
|
|
472
|
+
code: "custom",
|
|
473
|
+
path: ["enabledModelIds"],
|
|
474
|
+
message: "enabled model ids must be unique"
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
if (value.defaultModelId !== null && !ids.has(value.defaultModelId)) {
|
|
478
|
+
ctx.addIssue({
|
|
479
|
+
code: "custom",
|
|
480
|
+
path: ["defaultModelId"],
|
|
481
|
+
message: "default model must be enabled"
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
});
|
|
485
|
+
var UpdateVideoGenerationPolicyRequest = z2.object({
|
|
486
|
+
expectedRevision: z2.number().int().nonnegative().safe(),
|
|
487
|
+
fundingSource: VideoGenerationFundingSource,
|
|
488
|
+
enabledModelIds: z2.array(z2.string().min(1).max(256)).max(16),
|
|
489
|
+
defaultModelId: z2.string().min(1).max(256).nullable()
|
|
490
|
+
}).strict();
|
|
491
|
+
var VideoGenerationFundingOption = z2.object({
|
|
492
|
+
source: VideoGenerationFundingSource,
|
|
493
|
+
label: z2.string().min(1).max(128),
|
|
494
|
+
description: z2.string().min(1).max(256),
|
|
495
|
+
available: z2.boolean(),
|
|
496
|
+
unavailableReason: z2.string().min(1).max(256).nullable()
|
|
497
|
+
}).strict().superRefine((value, ctx) => {
|
|
498
|
+
if (value.available !== (value.unavailableReason === null)) {
|
|
499
|
+
ctx.addIssue({
|
|
500
|
+
code: "custom",
|
|
501
|
+
path: ["unavailableReason"],
|
|
502
|
+
message: "available funding options cannot have an unavailable reason"
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
});
|
|
506
|
+
var WorkspaceVideoGenerationSettings = z2.object({
|
|
507
|
+
schemaVersion: z2.literal(VIDEO_GENERATION_SCHEMA_VERSION),
|
|
508
|
+
policy: VideoGenerationPolicy,
|
|
509
|
+
fundingOptions: z2.array(VideoGenerationFundingOption).length(2),
|
|
510
|
+
availableModels: z2.array(VideoGenerationModelCapability).max(16),
|
|
511
|
+
capabilities: VideoGenerationCapabilities.nullable()
|
|
512
|
+
}).strict().superRefine((value, ctx) => {
|
|
513
|
+
if (new Set(value.fundingOptions.map((option) => option.source)).size !== 2 || !value.fundingOptions.some((option) => option.source === "opengeni_credits") || !value.fundingOptions.some((option) => option.source === "workspace_gateway")) {
|
|
514
|
+
ctx.addIssue({
|
|
515
|
+
code: "custom",
|
|
516
|
+
path: ["fundingOptions"],
|
|
517
|
+
message: "both funding sources must be described exactly once"
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
const selected = value.fundingOptions.find(
|
|
521
|
+
(option) => option.source === value.policy.fundingSource
|
|
522
|
+
);
|
|
523
|
+
if (!selected) {
|
|
524
|
+
ctx.addIssue({
|
|
525
|
+
code: "custom",
|
|
526
|
+
path: ["fundingOptions"],
|
|
527
|
+
message: "the selected funding source must be described"
|
|
528
|
+
});
|
|
529
|
+
} else if (!selected.available && value.capabilities !== null) {
|
|
530
|
+
ctx.addIssue({
|
|
531
|
+
code: "custom",
|
|
532
|
+
path: ["capabilities"],
|
|
533
|
+
message: "unavailable funding cannot expose executable capabilities"
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
});
|
|
537
|
+
var VideoGenerationAcceptedReceipt = z2.object({
|
|
538
|
+
schemaVersion: z2.literal(VIDEO_GENERATION_SCHEMA_VERSION),
|
|
539
|
+
status: z2.literal("accepted"),
|
|
540
|
+
operationId: z2.string().uuid()
|
|
541
|
+
}).strict();
|
|
542
|
+
var GeneratedVideoFacts = z2.object({
|
|
543
|
+
durationSeconds: z2.number().positive().max(120),
|
|
544
|
+
width: z2.number().int().positive().max(8192),
|
|
545
|
+
height: z2.number().int().positive().max(8192),
|
|
546
|
+
fps: z2.number().positive().max(120),
|
|
547
|
+
hasAudio: z2.boolean(),
|
|
548
|
+
videoCodec: z2.literal("h264"),
|
|
549
|
+
audioCodec: z2.literal("aac").nullable()
|
|
550
|
+
}).strict();
|
|
551
|
+
var GeneratedVideoReceipt = z2.object({
|
|
552
|
+
type: z2.literal("generated_video"),
|
|
553
|
+
schemaVersion: z2.literal(VIDEO_GENERATION_SCHEMA_VERSION),
|
|
554
|
+
operationId: z2.string().uuid(),
|
|
555
|
+
artifact: RetainedArtifactReferenceSchema,
|
|
556
|
+
video: GeneratedVideoFacts,
|
|
557
|
+
sandboxPath: z2.string().max(256).regex(
|
|
558
|
+
/^\/workspace\/generated-videos\/generated-video-[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\.mp4$/
|
|
559
|
+
)
|
|
560
|
+
}).strict().superRefine((value, ctx) => {
|
|
561
|
+
if (value.artifact.kind !== "generated_video" || value.artifact.contentType !== "video/mp4" || value.artifact.originalBytes <= 0 || value.artifact.originalBytes > GENERATED_VIDEO_MAX_BYTES || value.artifact.retention.policy !== "workspace_file" || value.artifact.retrieval.maxRangeBytes !== RETAINED_OUTPUT_MAX_PAGE_BYTES) {
|
|
562
|
+
ctx.addIssue({
|
|
563
|
+
code: "custom",
|
|
564
|
+
path: ["artifact"],
|
|
565
|
+
message: "generated-video artifact metadata is invalid"
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
if (value.artifact.dimensions?.width !== value.video.width || value.artifact.dimensions?.height !== value.video.height) {
|
|
569
|
+
ctx.addIssue({
|
|
570
|
+
code: "custom",
|
|
571
|
+
path: ["video"],
|
|
572
|
+
message: "video dimensions must match the retained artifact"
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
if (value.sandboxPath !== `/workspace/generated-videos/generated-video-${value.artifact.artifactId}.mp4`) {
|
|
576
|
+
ctx.addIssue({
|
|
577
|
+
code: "custom",
|
|
578
|
+
path: ["sandboxPath"],
|
|
579
|
+
message: "generated-video sandbox path does not match its artifact"
|
|
580
|
+
});
|
|
581
|
+
}
|
|
582
|
+
});
|
|
583
|
+
var VideoGenerationTerminalFailureStatus = z2.enum([
|
|
584
|
+
"provider_failed",
|
|
585
|
+
"retention_failed",
|
|
586
|
+
"cancelled_before_submit",
|
|
587
|
+
"outcome_unknown"
|
|
588
|
+
]);
|
|
589
|
+
var MediaGenerationResult = z2.discriminatedUnion("status", [
|
|
590
|
+
z2.object({
|
|
591
|
+
type: z2.literal("media_generation_result"),
|
|
592
|
+
schemaVersion: z2.literal(VIDEO_GENERATION_SCHEMA_VERSION),
|
|
593
|
+
status: z2.literal("ready"),
|
|
594
|
+
operationId: z2.string().uuid(),
|
|
595
|
+
receipt: GeneratedVideoReceipt
|
|
596
|
+
}).strict().refine((value) => value.receipt.operationId === value.operationId, {
|
|
597
|
+
path: ["receipt", "operationId"],
|
|
598
|
+
message: "terminal receipt must match its operation"
|
|
599
|
+
}),
|
|
600
|
+
z2.object({
|
|
601
|
+
type: z2.literal("media_generation_result"),
|
|
602
|
+
schemaVersion: z2.literal(VIDEO_GENERATION_SCHEMA_VERSION),
|
|
603
|
+
status: VideoGenerationTerminalFailureStatus,
|
|
604
|
+
operationId: z2.string().uuid(),
|
|
605
|
+
boundedPublicReason: z2.string().min(1).max(1e3)
|
|
606
|
+
}).strict()
|
|
607
|
+
]);
|
|
608
|
+
var VideoGenerationPublicStatus = z2.enum([
|
|
609
|
+
"preparing",
|
|
610
|
+
"prepared",
|
|
611
|
+
"accepted",
|
|
612
|
+
"provider_started",
|
|
613
|
+
"retaining",
|
|
614
|
+
"completed",
|
|
615
|
+
"provider_failed",
|
|
616
|
+
"cancelled_before_submit",
|
|
617
|
+
"outcome_unknown",
|
|
618
|
+
"retention_failed"
|
|
619
|
+
]);
|
|
620
|
+
var VideoGenerationOperationSummary = z2.object({
|
|
621
|
+
schemaVersion: z2.literal(VIDEO_GENERATION_SCHEMA_VERSION),
|
|
622
|
+
operationId: z2.string().uuid(),
|
|
623
|
+
modelId: z2.string().min(1).max(256),
|
|
624
|
+
status: VideoGenerationPublicStatus,
|
|
625
|
+
createdAt: z2.string().datetime({ offset: true }),
|
|
626
|
+
updatedAt: z2.string().datetime({ offset: true }),
|
|
627
|
+
terminal: MediaGenerationResult.nullable()
|
|
628
|
+
}).strict();
|
|
629
|
+
var VideoArtifactPlaybackSource = z2.object({
|
|
630
|
+
schemaVersion: z2.literal(VIDEO_GENERATION_SCHEMA_VERSION),
|
|
631
|
+
artifactId: z2.string().uuid(),
|
|
632
|
+
url: z2.string().url().max(8192),
|
|
633
|
+
expiresAt: z2.string().datetime({ offset: true }),
|
|
634
|
+
contentType: z2.literal("video/mp4"),
|
|
635
|
+
sizeBytes: z2.number().int().positive().max(GENERATED_VIDEO_MAX_BYTES),
|
|
636
|
+
sha256: z2.string().regex(/^[0-9a-f]{64}$/),
|
|
637
|
+
acceptRanges: z2.literal("bytes")
|
|
638
|
+
}).strict();
|
|
639
|
+
|
|
640
|
+
export {
|
|
641
|
+
RETAINED_OUTPUT_MAX_PAGE_BYTES,
|
|
642
|
+
RETAINED_OUTPUT_DEFAULT_PAGE_BYTES,
|
|
643
|
+
RETAINED_OUTPUT_RECEIPT_MAX_BYTES,
|
|
644
|
+
COMPUTER_SCREENSHOT_MAX_BYTES,
|
|
645
|
+
COMPUTER_SCREENSHOT_MAX_DIMENSION,
|
|
646
|
+
COMPUTER_SCREENSHOT_MAX_PIXELS,
|
|
647
|
+
COMPUTER_SCREENSHOT_RETENTION_MS,
|
|
648
|
+
COMPUTER_SCREENSHOT_WORKSPACE_QUOTA_BYTES,
|
|
649
|
+
GENERATED_IMAGE_MAX_BYTES,
|
|
650
|
+
GENERATED_VIDEO_MAX_BYTES,
|
|
651
|
+
RetainedOutputKind,
|
|
652
|
+
RetainedOutputUnavailableReason,
|
|
653
|
+
RetainedArtifactReferenceSchema,
|
|
654
|
+
RetainedOutputEvidenceSchema,
|
|
655
|
+
RetainedArtifactUnavailableSchema,
|
|
656
|
+
RetainedArtifactMetadataSchema,
|
|
657
|
+
retainedArtifactReferenceFromFile,
|
|
658
|
+
retainedScreenshotReferenceFromFile,
|
|
659
|
+
retainedGeneratedImageReferenceFromFile,
|
|
660
|
+
retainedGeneratedVideoReferenceFromFile,
|
|
661
|
+
validateRetainedOutputEvidence,
|
|
662
|
+
retainedOutputUnavailable,
|
|
663
|
+
resolveRetainedOutputRange,
|
|
664
|
+
VIDEO_GENERATION_SCHEMA_VERSION,
|
|
665
|
+
SEEDANCE_2_5_MODEL_ID,
|
|
666
|
+
VideoGenerationSourceMode,
|
|
667
|
+
VideoGenerationResolution,
|
|
668
|
+
VideoGenerationFundingSource,
|
|
669
|
+
VideoGenerationAspectRatio,
|
|
670
|
+
VideoGenerationSource,
|
|
671
|
+
GenerateVideoToolInput,
|
|
672
|
+
GetVideoGenerationCapabilitiesToolInput,
|
|
673
|
+
VideoGenerationModelCapability,
|
|
674
|
+
VideoGenerationCapabilities,
|
|
675
|
+
VideoGenerationPolicy,
|
|
676
|
+
UpdateVideoGenerationPolicyRequest,
|
|
677
|
+
VideoGenerationFundingOption,
|
|
678
|
+
WorkspaceVideoGenerationSettings,
|
|
679
|
+
VideoGenerationAcceptedReceipt,
|
|
680
|
+
GeneratedVideoFacts,
|
|
681
|
+
GeneratedVideoReceipt,
|
|
682
|
+
VideoGenerationTerminalFailureStatus,
|
|
683
|
+
MediaGenerationResult,
|
|
684
|
+
VideoGenerationPublicStatus,
|
|
685
|
+
VideoGenerationOperationSummary,
|
|
686
|
+
VideoArtifactPlaybackSource
|
|
687
|
+
};
|
|
688
|
+
//# sourceMappingURL=chunk-52SGB2QO.js.map
|