@playcraft/common 0.1.63 → 0.1.65

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 (87) hide show
  1. package/dist/agent-tools/replica-validation.d.ts +15 -15
  2. package/dist/agent-tools/video-model-proxy.d.ts +1 -1
  3. package/dist/agent-tools/video-replication.d.ts +9 -9
  4. package/dist/cloud-workspace/runtime/agent-command.d.ts +3 -3
  5. package/dist/cloud-workspace/runtime/agent-mutation.d.ts +3 -3
  6. package/dist/cloud-workspace/runtime/agent-variant-git.d.ts +2 -2
  7. package/dist/cloud-workspace/runtime/animation-editor.d.ts +9 -9
  8. package/dist/cloud-workspace/runtime/artifacts.d.ts +10 -10
  9. package/dist/cloud-workspace/runtime/artifacts.d.ts.map +1 -1
  10. package/dist/cloud-workspace/runtime/artifacts.js +1 -1
  11. package/dist/cloud-workspace/runtime/artifacts.js.map +1 -1
  12. package/dist/cloud-workspace/runtime/asset-generation-bundle.d.ts +1 -1
  13. package/dist/cloud-workspace/runtime/asset-generation-tools.d.ts +9 -9
  14. package/dist/cloud-workspace/runtime/asset-generation.d.ts +37 -37
  15. package/dist/cloud-workspace/runtime/asset-library-save.d.ts +12 -12
  16. package/dist/cloud-workspace/runtime/batch-runs.d.ts +12 -12
  17. package/dist/cloud-workspace/runtime/capabilities.d.ts +2 -2
  18. package/dist/cloud-workspace/runtime/delivery-format.d.ts +21 -0
  19. package/dist/cloud-workspace/runtime/delivery-format.d.ts.map +1 -1
  20. package/dist/cloud-workspace/runtime/delivery-format.js +36 -0
  21. package/dist/cloud-workspace/runtime/delivery-format.js.map +1 -1
  22. package/dist/cloud-workspace/runtime/delivery.d.ts +34 -5
  23. package/dist/cloud-workspace/runtime/delivery.d.ts.map +1 -1
  24. package/dist/cloud-workspace/runtime/delivery.js +23 -0
  25. package/dist/cloud-workspace/runtime/delivery.js.map +1 -1
  26. package/dist/cloud-workspace/runtime/execution-admission.d.ts +4 -4
  27. package/dist/cloud-workspace/runtime/handshake.d.ts +1 -1
  28. package/dist/cloud-workspace/runtime/index.d.ts +6 -0
  29. package/dist/cloud-workspace/runtime/index.d.ts.map +1 -1
  30. package/dist/cloud-workspace/runtime/index.js +6 -0
  31. package/dist/cloud-workspace/runtime/index.js.map +1 -1
  32. package/dist/cloud-workspace/runtime/model-adaptation-core.d.ts +82 -0
  33. package/dist/cloud-workspace/runtime/model-adaptation-core.d.ts.map +1 -0
  34. package/dist/cloud-workspace/runtime/model-adaptation-core.js +335 -0
  35. package/dist/cloud-workspace/runtime/model-adaptation-core.js.map +1 -0
  36. package/dist/cloud-workspace/runtime/model-adaptation.d.ts +111 -0
  37. package/dist/cloud-workspace/runtime/model-adaptation.d.ts.map +1 -0
  38. package/dist/cloud-workspace/runtime/model-adaptation.js +60 -0
  39. package/dist/cloud-workspace/runtime/model-adaptation.js.map +1 -0
  40. package/dist/cloud-workspace/runtime/model-build-inputs.d.ts +1 -1
  41. package/dist/cloud-workspace/runtime/model-production.d.ts +2182 -0
  42. package/dist/cloud-workspace/runtime/model-production.d.ts.map +1 -0
  43. package/dist/cloud-workspace/runtime/model-production.js +126 -0
  44. package/dist/cloud-workspace/runtime/model-production.js.map +1 -0
  45. package/dist/cloud-workspace/runtime/model-quality.d.ts +2131 -0
  46. package/dist/cloud-workspace/runtime/model-quality.d.ts.map +1 -0
  47. package/dist/cloud-workspace/runtime/model-quality.js +153 -0
  48. package/dist/cloud-workspace/runtime/model-quality.js.map +1 -0
  49. package/dist/cloud-workspace/runtime/model-source-packing.d.ts +63 -0
  50. package/dist/cloud-workspace/runtime/model-source-packing.d.ts.map +1 -0
  51. package/dist/cloud-workspace/runtime/model-source-packing.js +237 -0
  52. package/dist/cloud-workspace/runtime/model-source-packing.js.map +1 -0
  53. package/dist/cloud-workspace/runtime/model-validation.d.ts +907 -0
  54. package/dist/cloud-workspace/runtime/model-validation.d.ts.map +1 -0
  55. package/dist/cloud-workspace/runtime/model-validation.js +124 -0
  56. package/dist/cloud-workspace/runtime/model-validation.js.map +1 -0
  57. package/dist/cloud-workspace/runtime/operations.d.ts +953 -1
  58. package/dist/cloud-workspace/runtime/operations.d.ts.map +1 -1
  59. package/dist/cloud-workspace/runtime/operations.js +9 -1
  60. package/dist/cloud-workspace/runtime/operations.js.map +1 -1
  61. package/dist/cloud-workspace/runtime/previews.d.ts +4 -4
  62. package/dist/cloud-workspace/runtime/scheduled-tasks.d.ts +1 -1
  63. package/dist/cloud-workspace/runtime/skills.d.ts +5 -0
  64. package/dist/cloud-workspace/runtime/skills.d.ts.map +1 -1
  65. package/dist/cloud-workspace/runtime/skills.js +1 -0
  66. package/dist/cloud-workspace/runtime/skills.js.map +1 -1
  67. package/dist/cloud-workspace/runtime/workspace-notifications.d.ts +1 -1
  68. package/dist/cloud-workspace/runtime/workspace-ui.d.ts +6 -6
  69. package/dist/model-proxy/diagnostics.d.ts +2 -0
  70. package/dist/model-proxy/diagnostics.d.ts.map +1 -1
  71. package/dist/model-proxy/display-restoration.d.ts +18 -0
  72. package/dist/model-proxy/display-restoration.d.ts.map +1 -0
  73. package/dist/model-proxy/display-restoration.js +57 -0
  74. package/dist/model-proxy/display-restoration.js.map +1 -0
  75. package/dist/model-proxy/governance-workbench.d.ts +66 -0
  76. package/dist/model-proxy/governance-workbench.d.ts.map +1 -0
  77. package/dist/model-proxy/governance-workbench.js +2 -0
  78. package/dist/model-proxy/governance-workbench.js.map +1 -0
  79. package/dist/model-proxy/index.d.ts +3 -0
  80. package/dist/model-proxy/index.d.ts.map +1 -1
  81. package/dist/model-proxy/index.js +3 -0
  82. package/dist/model-proxy/index.js.map +1 -1
  83. package/dist/model-proxy/media-request-diagnostics.d.ts +59 -0
  84. package/dist/model-proxy/media-request-diagnostics.d.ts.map +1 -0
  85. package/dist/model-proxy/media-request-diagnostics.js +26 -0
  86. package/dist/model-proxy/media-request-diagnostics.js.map +1 -0
  87. package/package.json +1 -1
@@ -0,0 +1,907 @@
1
+ import { z } from 'zod';
2
+ export declare const ARTIFACT_VALIDATION_KIND: "artifact.validation";
3
+ export declare const ARTIFACT_VALIDATION_PRODUCER = "artifact-validator";
4
+ export declare const ARTIFACT_VALIDATION_EVIDENCE_MAX_BYTES: number;
5
+ export declare const ARTIFACT_VALIDATION_TOTAL_EVIDENCE_MAX_BYTES: number;
6
+ export declare const ARTIFACT_VALIDATION_REPORT_KINDS: readonly ["source-and-artifact", "render-and-lifecycle", "parameter-persistence", "visible-controls-and-interaction"];
7
+ export declare const artifactValidationPolicySchema: z.ZodObject<{
8
+ policyId: z.ZodLiteral<"workspace-3d-desktop-v1">;
9
+ parameterNames: z.ZodArray<z.ZodString>;
10
+ openable: z.ZodBoolean;
11
+ persistence: z.ZodEnum<{
12
+ required: "required";
13
+ "not-applicable": "not-applicable";
14
+ }>;
15
+ notApplicableReason: z.ZodOptional<z.ZodString>;
16
+ }, z.core.$strict>;
17
+ export declare const artifactValidatorSchema: z.ZodObject<{
18
+ validatorId: z.ZodString;
19
+ validatorHash: z.ZodString;
20
+ configurationHash: z.ZodString;
21
+ }, z.core.$strict>;
22
+ export declare const artifactValidationEnvironmentSchema: z.ZodObject<{
23
+ kind: z.ZodLiteral<"desktop">;
24
+ platform: z.ZodString;
25
+ browserName: z.ZodString;
26
+ browserVersion: z.ZodString;
27
+ renderer: z.ZodEnum<{
28
+ unknown: "unknown";
29
+ hardware: "hardware";
30
+ software: "software";
31
+ }>;
32
+ viewport: z.ZodObject<{
33
+ width: z.ZodNumber;
34
+ height: z.ZodNumber;
35
+ }, z.core.$strict>;
36
+ deviceScaleFactor: z.ZodNumber;
37
+ }, z.core.$strict>;
38
+ export declare const artifactValidationBindingSchema: z.ZodObject<{
39
+ workspaceId: z.ZodString;
40
+ directoryName: z.ZodString;
41
+ artifactId: z.ZodString;
42
+ versionId: z.ZodString;
43
+ outputHash: z.ZodString;
44
+ artifactFilesHash: z.ZodString;
45
+ primaryPath: z.ZodString;
46
+ files: z.ZodArray<z.ZodObject<{
47
+ path: z.ZodString;
48
+ mimeType: z.ZodString;
49
+ size: z.ZodNumber;
50
+ sha256: z.ZodString;
51
+ role: z.ZodEnum<{
52
+ resource: "resource";
53
+ primary: "primary";
54
+ thumbnail: "thumbnail";
55
+ }>;
56
+ }, z.core.$strict>>;
57
+ modelBuildHash: z.ZodString;
58
+ manifestHash: z.ZodString;
59
+ inputHash: z.ZodString;
60
+ models: z.ZodArray<z.ZodObject<{
61
+ sourceIdentityHash: z.ZodString;
62
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
63
+ kind: z.ZodLiteral<"resource">;
64
+ path: z.ZodString;
65
+ contentHash: z.ZodString;
66
+ files: z.ZodArray<z.ZodObject<{
67
+ path: z.ZodString;
68
+ contentHash: z.ZodString;
69
+ }, z.core.$strict>>;
70
+ }, z.core.$strict>, z.ZodObject<{
71
+ kind: z.ZodLiteral<"procedural">;
72
+ runId: z.ZodString;
73
+ candidateId: z.ZodString;
74
+ sourceHash: z.ZodString;
75
+ dependencyHash: z.ZodString;
76
+ previewId: z.ZodString;
77
+ contentHash: z.ZodString;
78
+ parameterHash: z.ZodString;
79
+ sourceRoot: z.ZodString;
80
+ parametersPath: z.ZodString;
81
+ }, z.core.$strict>], "kind">;
82
+ adaptationFiles: z.ZodArray<z.ZodObject<{
83
+ path: z.ZodString;
84
+ contentHash: z.ZodString;
85
+ }, z.core.$strict>>;
86
+ adaptationHash: z.ZodString;
87
+ parameterHash: z.ZodOptional<z.ZodString>;
88
+ }, z.core.$strict>>;
89
+ }, z.core.$strict>;
90
+ export declare const artifactValidationEvidenceSchema: z.ZodObject<{
91
+ contentHash: z.ZodString;
92
+ size: z.ZodNumber;
93
+ mimeType: z.ZodEnum<{
94
+ "image/png": "image/png";
95
+ "image/jpeg": "image/jpeg";
96
+ "application/json": "application/json";
97
+ "text/plain": "text/plain";
98
+ }>;
99
+ }, z.core.$strict>;
100
+ export declare const artifactValidationCheckSchema: z.ZodObject<{
101
+ name: z.ZodString;
102
+ status: z.ZodEnum<{
103
+ failed: "failed";
104
+ blocked: "blocked";
105
+ "not-applicable": "not-applicable";
106
+ passed: "passed";
107
+ }>;
108
+ evidenceHashes: z.ZodArray<z.ZodString>;
109
+ note: z.ZodOptional<z.ZodString>;
110
+ }, z.core.$strict>;
111
+ export declare const artifactValidationPrepareSchema: z.ZodObject<{
112
+ clientRequestId: z.ZodString;
113
+ workspaceId: z.ZodString;
114
+ directoryName: z.ZodDefault<z.ZodString>;
115
+ artifactId: z.ZodString;
116
+ versionId: z.ZodString;
117
+ validator: z.ZodObject<{
118
+ validatorId: z.ZodString;
119
+ validatorHash: z.ZodString;
120
+ configurationHash: z.ZodString;
121
+ }, z.core.$strict>;
122
+ policy: z.ZodObject<{
123
+ policyId: z.ZodLiteral<"workspace-3d-desktop-v1">;
124
+ parameterNames: z.ZodArray<z.ZodString>;
125
+ openable: z.ZodBoolean;
126
+ persistence: z.ZodEnum<{
127
+ required: "required";
128
+ "not-applicable": "not-applicable";
129
+ }>;
130
+ notApplicableReason: z.ZodOptional<z.ZodString>;
131
+ }, z.core.$strict>;
132
+ environment: z.ZodObject<{
133
+ kind: z.ZodLiteral<"desktop">;
134
+ platform: z.ZodString;
135
+ browserName: z.ZodString;
136
+ browserVersion: z.ZodString;
137
+ renderer: z.ZodEnum<{
138
+ unknown: "unknown";
139
+ hardware: "hardware";
140
+ software: "software";
141
+ }>;
142
+ viewport: z.ZodObject<{
143
+ width: z.ZodNumber;
144
+ height: z.ZodNumber;
145
+ }, z.core.$strict>;
146
+ deviceScaleFactor: z.ZodNumber;
147
+ }, z.core.$strict>;
148
+ fixtureOnly: z.ZodBoolean;
149
+ }, z.core.$strict>;
150
+ export declare const artifactValidationCompleteSchema: z.ZodObject<{
151
+ ticket: z.ZodString;
152
+ binding: z.ZodObject<{
153
+ workspaceId: z.ZodString;
154
+ directoryName: z.ZodString;
155
+ artifactId: z.ZodString;
156
+ versionId: z.ZodString;
157
+ outputHash: z.ZodString;
158
+ artifactFilesHash: z.ZodString;
159
+ primaryPath: z.ZodString;
160
+ files: z.ZodArray<z.ZodObject<{
161
+ path: z.ZodString;
162
+ mimeType: z.ZodString;
163
+ size: z.ZodNumber;
164
+ sha256: z.ZodString;
165
+ role: z.ZodEnum<{
166
+ resource: "resource";
167
+ primary: "primary";
168
+ thumbnail: "thumbnail";
169
+ }>;
170
+ }, z.core.$strict>>;
171
+ modelBuildHash: z.ZodString;
172
+ manifestHash: z.ZodString;
173
+ inputHash: z.ZodString;
174
+ models: z.ZodArray<z.ZodObject<{
175
+ sourceIdentityHash: z.ZodString;
176
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
177
+ kind: z.ZodLiteral<"resource">;
178
+ path: z.ZodString;
179
+ contentHash: z.ZodString;
180
+ files: z.ZodArray<z.ZodObject<{
181
+ path: z.ZodString;
182
+ contentHash: z.ZodString;
183
+ }, z.core.$strict>>;
184
+ }, z.core.$strict>, z.ZodObject<{
185
+ kind: z.ZodLiteral<"procedural">;
186
+ runId: z.ZodString;
187
+ candidateId: z.ZodString;
188
+ sourceHash: z.ZodString;
189
+ dependencyHash: z.ZodString;
190
+ previewId: z.ZodString;
191
+ contentHash: z.ZodString;
192
+ parameterHash: z.ZodString;
193
+ sourceRoot: z.ZodString;
194
+ parametersPath: z.ZodString;
195
+ }, z.core.$strict>], "kind">;
196
+ adaptationFiles: z.ZodArray<z.ZodObject<{
197
+ path: z.ZodString;
198
+ contentHash: z.ZodString;
199
+ }, z.core.$strict>>;
200
+ adaptationHash: z.ZodString;
201
+ parameterHash: z.ZodOptional<z.ZodString>;
202
+ }, z.core.$strict>>;
203
+ }, z.core.$strict>;
204
+ policy: z.ZodObject<{
205
+ policyId: z.ZodLiteral<"workspace-3d-desktop-v1">;
206
+ parameterNames: z.ZodArray<z.ZodString>;
207
+ openable: z.ZodBoolean;
208
+ persistence: z.ZodEnum<{
209
+ required: "required";
210
+ "not-applicable": "not-applicable";
211
+ }>;
212
+ notApplicableReason: z.ZodOptional<z.ZodString>;
213
+ }, z.core.$strict>;
214
+ validator: z.ZodObject<{
215
+ validatorId: z.ZodString;
216
+ validatorHash: z.ZodString;
217
+ configurationHash: z.ZodString;
218
+ }, z.core.$strict>;
219
+ environment: z.ZodObject<{
220
+ kind: z.ZodLiteral<"desktop">;
221
+ platform: z.ZodString;
222
+ browserName: z.ZodString;
223
+ browserVersion: z.ZodString;
224
+ renderer: z.ZodEnum<{
225
+ unknown: "unknown";
226
+ hardware: "hardware";
227
+ software: "software";
228
+ }>;
229
+ viewport: z.ZodObject<{
230
+ width: z.ZodNumber;
231
+ height: z.ZodNumber;
232
+ }, z.core.$strict>;
233
+ deviceScaleFactor: z.ZodNumber;
234
+ }, z.core.$strict>;
235
+ checks: z.ZodArray<z.ZodObject<{
236
+ name: z.ZodString;
237
+ status: z.ZodEnum<{
238
+ failed: "failed";
239
+ blocked: "blocked";
240
+ "not-applicable": "not-applicable";
241
+ passed: "passed";
242
+ }>;
243
+ evidenceHashes: z.ZodArray<z.ZodString>;
244
+ note: z.ZodOptional<z.ZodString>;
245
+ }, z.core.$strict>>;
246
+ actualEnvironment: z.ZodNullable<z.ZodObject<{
247
+ kind: z.ZodLiteral<"desktop">;
248
+ platform: z.ZodString;
249
+ browserName: z.ZodString;
250
+ browserVersion: z.ZodString;
251
+ renderer: z.ZodEnum<{
252
+ unknown: "unknown";
253
+ hardware: "hardware";
254
+ software: "software";
255
+ }>;
256
+ viewport: z.ZodObject<{
257
+ width: z.ZodNumber;
258
+ height: z.ZodNumber;
259
+ }, z.core.$strict>;
260
+ deviceScaleFactor: z.ZodNumber;
261
+ }, z.core.$strict>>;
262
+ }, z.core.$strict>;
263
+ export declare const artifactValidationReportSchema: z.ZodObject<{
264
+ kind: z.ZodEnum<{
265
+ "source-and-artifact": "source-and-artifact";
266
+ "render-and-lifecycle": "render-and-lifecycle";
267
+ "parameter-persistence": "parameter-persistence";
268
+ "visible-controls-and-interaction": "visible-controls-and-interaction";
269
+ }>;
270
+ status: z.ZodEnum<{
271
+ failed: "failed";
272
+ blocked: "blocked";
273
+ "not-applicable": "not-applicable";
274
+ passed: "passed";
275
+ }>;
276
+ checks: z.ZodArray<z.ZodObject<{
277
+ name: z.ZodString;
278
+ status: z.ZodEnum<{
279
+ failed: "failed";
280
+ blocked: "blocked";
281
+ "not-applicable": "not-applicable";
282
+ passed: "passed";
283
+ }>;
284
+ evidenceHashes: z.ZodArray<z.ZodString>;
285
+ note: z.ZodOptional<z.ZodString>;
286
+ }, z.core.$strict>>;
287
+ missingChecks: z.ZodArray<z.ZodString>;
288
+ reason: z.ZodOptional<z.ZodString>;
289
+ }, z.core.$strict>;
290
+ export declare const artifactValidationReceiptSchema: z.ZodObject<{
291
+ schemaVersion: z.ZodLiteral<1>;
292
+ operationId: z.ZodString;
293
+ reportSetHash: z.ZodString;
294
+ binding: z.ZodObject<{
295
+ workspaceId: z.ZodString;
296
+ directoryName: z.ZodString;
297
+ artifactId: z.ZodString;
298
+ versionId: z.ZodString;
299
+ outputHash: z.ZodString;
300
+ artifactFilesHash: z.ZodString;
301
+ primaryPath: z.ZodString;
302
+ files: z.ZodArray<z.ZodObject<{
303
+ path: z.ZodString;
304
+ mimeType: z.ZodString;
305
+ size: z.ZodNumber;
306
+ sha256: z.ZodString;
307
+ role: z.ZodEnum<{
308
+ resource: "resource";
309
+ primary: "primary";
310
+ thumbnail: "thumbnail";
311
+ }>;
312
+ }, z.core.$strict>>;
313
+ modelBuildHash: z.ZodString;
314
+ manifestHash: z.ZodString;
315
+ inputHash: z.ZodString;
316
+ models: z.ZodArray<z.ZodObject<{
317
+ sourceIdentityHash: z.ZodString;
318
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
319
+ kind: z.ZodLiteral<"resource">;
320
+ path: z.ZodString;
321
+ contentHash: z.ZodString;
322
+ files: z.ZodArray<z.ZodObject<{
323
+ path: z.ZodString;
324
+ contentHash: z.ZodString;
325
+ }, z.core.$strict>>;
326
+ }, z.core.$strict>, z.ZodObject<{
327
+ kind: z.ZodLiteral<"procedural">;
328
+ runId: z.ZodString;
329
+ candidateId: z.ZodString;
330
+ sourceHash: z.ZodString;
331
+ dependencyHash: z.ZodString;
332
+ previewId: z.ZodString;
333
+ contentHash: z.ZodString;
334
+ parameterHash: z.ZodString;
335
+ sourceRoot: z.ZodString;
336
+ parametersPath: z.ZodString;
337
+ }, z.core.$strict>], "kind">;
338
+ adaptationFiles: z.ZodArray<z.ZodObject<{
339
+ path: z.ZodString;
340
+ contentHash: z.ZodString;
341
+ }, z.core.$strict>>;
342
+ adaptationHash: z.ZodString;
343
+ parameterHash: z.ZodOptional<z.ZodString>;
344
+ }, z.core.$strict>>;
345
+ }, z.core.$strict>;
346
+ producerId: z.ZodLiteral<"artifact-validator">;
347
+ validator: z.ZodObject<{
348
+ validatorId: z.ZodString;
349
+ validatorHash: z.ZodString;
350
+ configurationHash: z.ZodString;
351
+ }, z.core.$strict>;
352
+ policy: z.ZodObject<{
353
+ policyId: z.ZodLiteral<"workspace-3d-desktop-v1">;
354
+ parameterNames: z.ZodArray<z.ZodString>;
355
+ openable: z.ZodBoolean;
356
+ persistence: z.ZodEnum<{
357
+ required: "required";
358
+ "not-applicable": "not-applicable";
359
+ }>;
360
+ notApplicableReason: z.ZodOptional<z.ZodString>;
361
+ }, z.core.$strict>;
362
+ environment: z.ZodNullable<z.ZodObject<{
363
+ kind: z.ZodLiteral<"desktop">;
364
+ platform: z.ZodString;
365
+ browserName: z.ZodString;
366
+ browserVersion: z.ZodString;
367
+ renderer: z.ZodEnum<{
368
+ unknown: "unknown";
369
+ hardware: "hardware";
370
+ software: "software";
371
+ }>;
372
+ viewport: z.ZodObject<{
373
+ width: z.ZodNumber;
374
+ height: z.ZodNumber;
375
+ }, z.core.$strict>;
376
+ deviceScaleFactor: z.ZodNumber;
377
+ }, z.core.$strict>>;
378
+ requestedEnvironment: z.ZodObject<{
379
+ kind: z.ZodLiteral<"desktop">;
380
+ platform: z.ZodString;
381
+ browserName: z.ZodString;
382
+ browserVersion: z.ZodString;
383
+ renderer: z.ZodEnum<{
384
+ unknown: "unknown";
385
+ hardware: "hardware";
386
+ software: "software";
387
+ }>;
388
+ viewport: z.ZodObject<{
389
+ width: z.ZodNumber;
390
+ height: z.ZodNumber;
391
+ }, z.core.$strict>;
392
+ deviceScaleFactor: z.ZodNumber;
393
+ }, z.core.$strict>;
394
+ environmentHash: z.ZodString;
395
+ fixtureOnly: z.ZodBoolean;
396
+ modelAcceptance: z.ZodLiteral<false>;
397
+ reports: z.ZodArray<z.ZodObject<{
398
+ kind: z.ZodEnum<{
399
+ "source-and-artifact": "source-and-artifact";
400
+ "render-and-lifecycle": "render-and-lifecycle";
401
+ "parameter-persistence": "parameter-persistence";
402
+ "visible-controls-and-interaction": "visible-controls-and-interaction";
403
+ }>;
404
+ status: z.ZodEnum<{
405
+ failed: "failed";
406
+ blocked: "blocked";
407
+ "not-applicable": "not-applicable";
408
+ passed: "passed";
409
+ }>;
410
+ checks: z.ZodArray<z.ZodObject<{
411
+ name: z.ZodString;
412
+ status: z.ZodEnum<{
413
+ failed: "failed";
414
+ blocked: "blocked";
415
+ "not-applicable": "not-applicable";
416
+ passed: "passed";
417
+ }>;
418
+ evidenceHashes: z.ZodArray<z.ZodString>;
419
+ note: z.ZodOptional<z.ZodString>;
420
+ }, z.core.$strict>>;
421
+ missingChecks: z.ZodArray<z.ZodString>;
422
+ reason: z.ZodOptional<z.ZodString>;
423
+ }, z.core.$strict>>;
424
+ evidence: z.ZodArray<z.ZodObject<{
425
+ contentHash: z.ZodString;
426
+ size: z.ZodNumber;
427
+ mimeType: z.ZodEnum<{
428
+ "image/png": "image/png";
429
+ "image/jpeg": "image/jpeg";
430
+ "application/json": "application/json";
431
+ "text/plain": "text/plain";
432
+ }>;
433
+ }, z.core.$strict>>;
434
+ startedAt: z.ZodString;
435
+ finishedAt: z.ZodString;
436
+ }, z.core.$strict>;
437
+ /** Prepared authority is stored in the existing operation receipt, never in project files. */
438
+ export declare const artifactValidationOperationResultSchema: z.ZodObject<{
439
+ kind: z.ZodLiteral<"artifact-validation">;
440
+ schemaVersion: z.ZodLiteral<1>;
441
+ phase: z.ZodEnum<{
442
+ completed: "completed";
443
+ prepared: "prepared";
444
+ cancelled: "cancelled";
445
+ expired: "expired";
446
+ }>;
447
+ binding: z.ZodObject<{
448
+ workspaceId: z.ZodString;
449
+ directoryName: z.ZodString;
450
+ artifactId: z.ZodString;
451
+ versionId: z.ZodString;
452
+ outputHash: z.ZodString;
453
+ artifactFilesHash: z.ZodString;
454
+ primaryPath: z.ZodString;
455
+ files: z.ZodArray<z.ZodObject<{
456
+ path: z.ZodString;
457
+ mimeType: z.ZodString;
458
+ size: z.ZodNumber;
459
+ sha256: z.ZodString;
460
+ role: z.ZodEnum<{
461
+ resource: "resource";
462
+ primary: "primary";
463
+ thumbnail: "thumbnail";
464
+ }>;
465
+ }, z.core.$strict>>;
466
+ modelBuildHash: z.ZodString;
467
+ manifestHash: z.ZodString;
468
+ inputHash: z.ZodString;
469
+ models: z.ZodArray<z.ZodObject<{
470
+ sourceIdentityHash: z.ZodString;
471
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
472
+ kind: z.ZodLiteral<"resource">;
473
+ path: z.ZodString;
474
+ contentHash: z.ZodString;
475
+ files: z.ZodArray<z.ZodObject<{
476
+ path: z.ZodString;
477
+ contentHash: z.ZodString;
478
+ }, z.core.$strict>>;
479
+ }, z.core.$strict>, z.ZodObject<{
480
+ kind: z.ZodLiteral<"procedural">;
481
+ runId: z.ZodString;
482
+ candidateId: z.ZodString;
483
+ sourceHash: z.ZodString;
484
+ dependencyHash: z.ZodString;
485
+ previewId: z.ZodString;
486
+ contentHash: z.ZodString;
487
+ parameterHash: z.ZodString;
488
+ sourceRoot: z.ZodString;
489
+ parametersPath: z.ZodString;
490
+ }, z.core.$strict>], "kind">;
491
+ adaptationFiles: z.ZodArray<z.ZodObject<{
492
+ path: z.ZodString;
493
+ contentHash: z.ZodString;
494
+ }, z.core.$strict>>;
495
+ adaptationHash: z.ZodString;
496
+ parameterHash: z.ZodOptional<z.ZodString>;
497
+ }, z.core.$strict>>;
498
+ }, z.core.$strict>;
499
+ producerId: z.ZodLiteral<"artifact-validator">;
500
+ validator: z.ZodObject<{
501
+ validatorId: z.ZodString;
502
+ validatorHash: z.ZodString;
503
+ configurationHash: z.ZodString;
504
+ }, z.core.$strict>;
505
+ policy: z.ZodObject<{
506
+ policyId: z.ZodLiteral<"workspace-3d-desktop-v1">;
507
+ parameterNames: z.ZodArray<z.ZodString>;
508
+ openable: z.ZodBoolean;
509
+ persistence: z.ZodEnum<{
510
+ required: "required";
511
+ "not-applicable": "not-applicable";
512
+ }>;
513
+ notApplicableReason: z.ZodOptional<z.ZodString>;
514
+ }, z.core.$strict>;
515
+ environment: z.ZodObject<{
516
+ kind: z.ZodLiteral<"desktop">;
517
+ platform: z.ZodString;
518
+ browserName: z.ZodString;
519
+ browserVersion: z.ZodString;
520
+ renderer: z.ZodEnum<{
521
+ unknown: "unknown";
522
+ hardware: "hardware";
523
+ software: "software";
524
+ }>;
525
+ viewport: z.ZodObject<{
526
+ width: z.ZodNumber;
527
+ height: z.ZodNumber;
528
+ }, z.core.$strict>;
529
+ deviceScaleFactor: z.ZodNumber;
530
+ }, z.core.$strict>;
531
+ fixtureOnly: z.ZodBoolean;
532
+ expiresAt: z.ZodString;
533
+ ticketHash: z.ZodString;
534
+ evidence: z.ZodArray<z.ZodObject<{
535
+ contentHash: z.ZodString;
536
+ size: z.ZodNumber;
537
+ mimeType: z.ZodEnum<{
538
+ "image/png": "image/png";
539
+ "image/jpeg": "image/jpeg";
540
+ "application/json": "application/json";
541
+ "text/plain": "text/plain";
542
+ }>;
543
+ storageBackend: z.ZodEnum<{
544
+ local: "local";
545
+ cos: "cos";
546
+ }>;
547
+ }, z.core.$strict>>;
548
+ receipt: z.ZodOptional<z.ZodObject<{
549
+ schemaVersion: z.ZodLiteral<1>;
550
+ operationId: z.ZodString;
551
+ reportSetHash: z.ZodString;
552
+ binding: z.ZodObject<{
553
+ workspaceId: z.ZodString;
554
+ directoryName: z.ZodString;
555
+ artifactId: z.ZodString;
556
+ versionId: z.ZodString;
557
+ outputHash: z.ZodString;
558
+ artifactFilesHash: z.ZodString;
559
+ primaryPath: z.ZodString;
560
+ files: z.ZodArray<z.ZodObject<{
561
+ path: z.ZodString;
562
+ mimeType: z.ZodString;
563
+ size: z.ZodNumber;
564
+ sha256: z.ZodString;
565
+ role: z.ZodEnum<{
566
+ resource: "resource";
567
+ primary: "primary";
568
+ thumbnail: "thumbnail";
569
+ }>;
570
+ }, z.core.$strict>>;
571
+ modelBuildHash: z.ZodString;
572
+ manifestHash: z.ZodString;
573
+ inputHash: z.ZodString;
574
+ models: z.ZodArray<z.ZodObject<{
575
+ sourceIdentityHash: z.ZodString;
576
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
577
+ kind: z.ZodLiteral<"resource">;
578
+ path: z.ZodString;
579
+ contentHash: z.ZodString;
580
+ files: z.ZodArray<z.ZodObject<{
581
+ path: z.ZodString;
582
+ contentHash: z.ZodString;
583
+ }, z.core.$strict>>;
584
+ }, z.core.$strict>, z.ZodObject<{
585
+ kind: z.ZodLiteral<"procedural">;
586
+ runId: z.ZodString;
587
+ candidateId: z.ZodString;
588
+ sourceHash: z.ZodString;
589
+ dependencyHash: z.ZodString;
590
+ previewId: z.ZodString;
591
+ contentHash: z.ZodString;
592
+ parameterHash: z.ZodString;
593
+ sourceRoot: z.ZodString;
594
+ parametersPath: z.ZodString;
595
+ }, z.core.$strict>], "kind">;
596
+ adaptationFiles: z.ZodArray<z.ZodObject<{
597
+ path: z.ZodString;
598
+ contentHash: z.ZodString;
599
+ }, z.core.$strict>>;
600
+ adaptationHash: z.ZodString;
601
+ parameterHash: z.ZodOptional<z.ZodString>;
602
+ }, z.core.$strict>>;
603
+ }, z.core.$strict>;
604
+ producerId: z.ZodLiteral<"artifact-validator">;
605
+ validator: z.ZodObject<{
606
+ validatorId: z.ZodString;
607
+ validatorHash: z.ZodString;
608
+ configurationHash: z.ZodString;
609
+ }, z.core.$strict>;
610
+ policy: z.ZodObject<{
611
+ policyId: z.ZodLiteral<"workspace-3d-desktop-v1">;
612
+ parameterNames: z.ZodArray<z.ZodString>;
613
+ openable: z.ZodBoolean;
614
+ persistence: z.ZodEnum<{
615
+ required: "required";
616
+ "not-applicable": "not-applicable";
617
+ }>;
618
+ notApplicableReason: z.ZodOptional<z.ZodString>;
619
+ }, z.core.$strict>;
620
+ environment: z.ZodNullable<z.ZodObject<{
621
+ kind: z.ZodLiteral<"desktop">;
622
+ platform: z.ZodString;
623
+ browserName: z.ZodString;
624
+ browserVersion: z.ZodString;
625
+ renderer: z.ZodEnum<{
626
+ unknown: "unknown";
627
+ hardware: "hardware";
628
+ software: "software";
629
+ }>;
630
+ viewport: z.ZodObject<{
631
+ width: z.ZodNumber;
632
+ height: z.ZodNumber;
633
+ }, z.core.$strict>;
634
+ deviceScaleFactor: z.ZodNumber;
635
+ }, z.core.$strict>>;
636
+ requestedEnvironment: z.ZodObject<{
637
+ kind: z.ZodLiteral<"desktop">;
638
+ platform: z.ZodString;
639
+ browserName: z.ZodString;
640
+ browserVersion: z.ZodString;
641
+ renderer: z.ZodEnum<{
642
+ unknown: "unknown";
643
+ hardware: "hardware";
644
+ software: "software";
645
+ }>;
646
+ viewport: z.ZodObject<{
647
+ width: z.ZodNumber;
648
+ height: z.ZodNumber;
649
+ }, z.core.$strict>;
650
+ deviceScaleFactor: z.ZodNumber;
651
+ }, z.core.$strict>;
652
+ environmentHash: z.ZodString;
653
+ fixtureOnly: z.ZodBoolean;
654
+ modelAcceptance: z.ZodLiteral<false>;
655
+ reports: z.ZodArray<z.ZodObject<{
656
+ kind: z.ZodEnum<{
657
+ "source-and-artifact": "source-and-artifact";
658
+ "render-and-lifecycle": "render-and-lifecycle";
659
+ "parameter-persistence": "parameter-persistence";
660
+ "visible-controls-and-interaction": "visible-controls-and-interaction";
661
+ }>;
662
+ status: z.ZodEnum<{
663
+ failed: "failed";
664
+ blocked: "blocked";
665
+ "not-applicable": "not-applicable";
666
+ passed: "passed";
667
+ }>;
668
+ checks: z.ZodArray<z.ZodObject<{
669
+ name: z.ZodString;
670
+ status: z.ZodEnum<{
671
+ failed: "failed";
672
+ blocked: "blocked";
673
+ "not-applicable": "not-applicable";
674
+ passed: "passed";
675
+ }>;
676
+ evidenceHashes: z.ZodArray<z.ZodString>;
677
+ note: z.ZodOptional<z.ZodString>;
678
+ }, z.core.$strict>>;
679
+ missingChecks: z.ZodArray<z.ZodString>;
680
+ reason: z.ZodOptional<z.ZodString>;
681
+ }, z.core.$strict>>;
682
+ evidence: z.ZodArray<z.ZodObject<{
683
+ contentHash: z.ZodString;
684
+ size: z.ZodNumber;
685
+ mimeType: z.ZodEnum<{
686
+ "image/png": "image/png";
687
+ "image/jpeg": "image/jpeg";
688
+ "application/json": "application/json";
689
+ "text/plain": "text/plain";
690
+ }>;
691
+ }, z.core.$strict>>;
692
+ startedAt: z.ZodString;
693
+ finishedAt: z.ZodString;
694
+ }, z.core.$strict>>;
695
+ }, z.core.$strict>;
696
+ export declare const artifactValidationListSchema: z.ZodObject<{
697
+ producerAvailable: z.ZodBoolean;
698
+ validations: z.ZodArray<z.ZodObject<{
699
+ receipt: z.ZodObject<{
700
+ schemaVersion: z.ZodLiteral<1>;
701
+ operationId: z.ZodString;
702
+ reportSetHash: z.ZodString;
703
+ binding: z.ZodObject<{
704
+ workspaceId: z.ZodString;
705
+ directoryName: z.ZodString;
706
+ artifactId: z.ZodString;
707
+ versionId: z.ZodString;
708
+ outputHash: z.ZodString;
709
+ artifactFilesHash: z.ZodString;
710
+ primaryPath: z.ZodString;
711
+ files: z.ZodArray<z.ZodObject<{
712
+ path: z.ZodString;
713
+ mimeType: z.ZodString;
714
+ size: z.ZodNumber;
715
+ sha256: z.ZodString;
716
+ role: z.ZodEnum<{
717
+ resource: "resource";
718
+ primary: "primary";
719
+ thumbnail: "thumbnail";
720
+ }>;
721
+ }, z.core.$strict>>;
722
+ modelBuildHash: z.ZodString;
723
+ manifestHash: z.ZodString;
724
+ inputHash: z.ZodString;
725
+ models: z.ZodArray<z.ZodObject<{
726
+ sourceIdentityHash: z.ZodString;
727
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
728
+ kind: z.ZodLiteral<"resource">;
729
+ path: z.ZodString;
730
+ contentHash: z.ZodString;
731
+ files: z.ZodArray<z.ZodObject<{
732
+ path: z.ZodString;
733
+ contentHash: z.ZodString;
734
+ }, z.core.$strict>>;
735
+ }, z.core.$strict>, z.ZodObject<{
736
+ kind: z.ZodLiteral<"procedural">;
737
+ runId: z.ZodString;
738
+ candidateId: z.ZodString;
739
+ sourceHash: z.ZodString;
740
+ dependencyHash: z.ZodString;
741
+ previewId: z.ZodString;
742
+ contentHash: z.ZodString;
743
+ parameterHash: z.ZodString;
744
+ sourceRoot: z.ZodString;
745
+ parametersPath: z.ZodString;
746
+ }, z.core.$strict>], "kind">;
747
+ adaptationFiles: z.ZodArray<z.ZodObject<{
748
+ path: z.ZodString;
749
+ contentHash: z.ZodString;
750
+ }, z.core.$strict>>;
751
+ adaptationHash: z.ZodString;
752
+ parameterHash: z.ZodOptional<z.ZodString>;
753
+ }, z.core.$strict>>;
754
+ }, z.core.$strict>;
755
+ producerId: z.ZodLiteral<"artifact-validator">;
756
+ validator: z.ZodObject<{
757
+ validatorId: z.ZodString;
758
+ validatorHash: z.ZodString;
759
+ configurationHash: z.ZodString;
760
+ }, z.core.$strict>;
761
+ policy: z.ZodObject<{
762
+ policyId: z.ZodLiteral<"workspace-3d-desktop-v1">;
763
+ parameterNames: z.ZodArray<z.ZodString>;
764
+ openable: z.ZodBoolean;
765
+ persistence: z.ZodEnum<{
766
+ required: "required";
767
+ "not-applicable": "not-applicable";
768
+ }>;
769
+ notApplicableReason: z.ZodOptional<z.ZodString>;
770
+ }, z.core.$strict>;
771
+ environment: z.ZodNullable<z.ZodObject<{
772
+ kind: z.ZodLiteral<"desktop">;
773
+ platform: z.ZodString;
774
+ browserName: z.ZodString;
775
+ browserVersion: z.ZodString;
776
+ renderer: z.ZodEnum<{
777
+ unknown: "unknown";
778
+ hardware: "hardware";
779
+ software: "software";
780
+ }>;
781
+ viewport: z.ZodObject<{
782
+ width: z.ZodNumber;
783
+ height: z.ZodNumber;
784
+ }, z.core.$strict>;
785
+ deviceScaleFactor: z.ZodNumber;
786
+ }, z.core.$strict>>;
787
+ requestedEnvironment: z.ZodObject<{
788
+ kind: z.ZodLiteral<"desktop">;
789
+ platform: z.ZodString;
790
+ browserName: z.ZodString;
791
+ browserVersion: z.ZodString;
792
+ renderer: z.ZodEnum<{
793
+ unknown: "unknown";
794
+ hardware: "hardware";
795
+ software: "software";
796
+ }>;
797
+ viewport: z.ZodObject<{
798
+ width: z.ZodNumber;
799
+ height: z.ZodNumber;
800
+ }, z.core.$strict>;
801
+ deviceScaleFactor: z.ZodNumber;
802
+ }, z.core.$strict>;
803
+ environmentHash: z.ZodString;
804
+ fixtureOnly: z.ZodBoolean;
805
+ modelAcceptance: z.ZodLiteral<false>;
806
+ reports: z.ZodArray<z.ZodObject<{
807
+ kind: z.ZodEnum<{
808
+ "source-and-artifact": "source-and-artifact";
809
+ "render-and-lifecycle": "render-and-lifecycle";
810
+ "parameter-persistence": "parameter-persistence";
811
+ "visible-controls-and-interaction": "visible-controls-and-interaction";
812
+ }>;
813
+ status: z.ZodEnum<{
814
+ failed: "failed";
815
+ blocked: "blocked";
816
+ "not-applicable": "not-applicable";
817
+ passed: "passed";
818
+ }>;
819
+ checks: z.ZodArray<z.ZodObject<{
820
+ name: z.ZodString;
821
+ status: z.ZodEnum<{
822
+ failed: "failed";
823
+ blocked: "blocked";
824
+ "not-applicable": "not-applicable";
825
+ passed: "passed";
826
+ }>;
827
+ evidenceHashes: z.ZodArray<z.ZodString>;
828
+ note: z.ZodOptional<z.ZodString>;
829
+ }, z.core.$strict>>;
830
+ missingChecks: z.ZodArray<z.ZodString>;
831
+ reason: z.ZodOptional<z.ZodString>;
832
+ }, z.core.$strict>>;
833
+ evidence: z.ZodArray<z.ZodObject<{
834
+ contentHash: z.ZodString;
835
+ size: z.ZodNumber;
836
+ mimeType: z.ZodEnum<{
837
+ "image/png": "image/png";
838
+ "image/jpeg": "image/jpeg";
839
+ "application/json": "application/json";
840
+ "text/plain": "text/plain";
841
+ }>;
842
+ }, z.core.$strict>>;
843
+ startedAt: z.ZodString;
844
+ finishedAt: z.ZodString;
845
+ }, z.core.$strict>;
846
+ applicability: z.ZodEnum<{
847
+ stale: "stale";
848
+ current: "current";
849
+ unavailable: "unavailable";
850
+ }>;
851
+ }, z.core.$strict>>;
852
+ preparations: z.ZodArray<z.ZodObject<{
853
+ operationId: z.ZodString;
854
+ status: z.ZodEnum<{
855
+ accepted: "accepted";
856
+ failed: "failed";
857
+ completed: "completed";
858
+ interrupted: "interrupted";
859
+ }>;
860
+ phase: z.ZodEnum<{
861
+ completed: "completed";
862
+ prepared: "prepared";
863
+ cancelled: "cancelled";
864
+ expired: "expired";
865
+ }>;
866
+ expiresAt: z.ZodString;
867
+ updatedAt: z.ZodString;
868
+ error: z.ZodOptional<z.ZodString>;
869
+ }, z.core.$strict>>;
870
+ nextCursor: z.ZodOptional<z.ZodString>;
871
+ }, z.core.$strict>;
872
+ export type ArtifactValidationPolicy = z.infer<typeof artifactValidationPolicySchema>;
873
+ export type ArtifactValidationBinding = z.infer<typeof artifactValidationBindingSchema>;
874
+ export type ArtifactValidationCheck = z.infer<typeof artifactValidationCheckSchema>;
875
+ export type ArtifactValidationEvidence = z.infer<typeof artifactValidationEvidenceSchema>;
876
+ export type ArtifactValidationReceipt = z.infer<typeof artifactValidationReceiptSchema>;
877
+ export type ArtifactValidationOperationResult = z.infer<typeof artifactValidationOperationResultSchema>;
878
+ export type ArtifactValidationPrepare = z.infer<typeof artifactValidationPrepareSchema>;
879
+ export type ArtifactValidationComplete = z.infer<typeof artifactValidationCompleteSchema>;
880
+ export type ArtifactValidationList = z.infer<typeof artifactValidationListSchema>;
881
+ /** Stable JSON used for content bindings and the dedicated producer request signature. */
882
+ export declare function artifactValidationCanonical(value: unknown): string;
883
+ export declare function artifactValidatorSigningText(value: {
884
+ method: string;
885
+ path: string;
886
+ caller: string;
887
+ timestamp: string;
888
+ nonce: string;
889
+ bodyHash: string;
890
+ contentType: string;
891
+ evidenceMime: string;
892
+ ticket: string;
893
+ }): string;
894
+ /** Aggregate only the frozen policy's checks. A submitted summary can never grant a pass. */
895
+ export declare function evaluateArtifactValidationReports(policy: ArtifactValidationPolicy, checks: ArtifactValidationCheck[]): {
896
+ kind: "source-and-artifact" | "render-and-lifecycle" | "parameter-persistence" | "visible-controls-and-interaction";
897
+ status: "failed" | "blocked" | "not-applicable" | "passed";
898
+ checks: {
899
+ name: string;
900
+ status: "failed" | "blocked" | "not-applicable" | "passed";
901
+ evidenceHashes: string[];
902
+ note?: string | undefined;
903
+ }[];
904
+ missingChecks: string[];
905
+ reason?: string | undefined;
906
+ }[];
907
+ //# sourceMappingURL=model-validation.d.ts.map