@playcraft/common 0.1.67 → 0.1.69
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/agent-tools/replica-validation.d.ts +12 -12
- package/dist/audio-library-stream.d.ts +65 -0
- package/dist/audio-library-stream.d.ts.map +1 -0
- package/dist/audio-library-stream.js +87 -0
- package/dist/audio-library-stream.js.map +1 -0
- package/dist/cloud-workspace/runtime/animation-editor.d.ts +1 -1
- package/dist/cloud-workspace/runtime/artifacts.d.ts +7 -7
- package/dist/cloud-workspace/runtime/asset-generation-tools.d.ts +9 -9
- package/dist/cloud-workspace/runtime/asset-generation.d.ts +29 -29
- package/dist/cloud-workspace/runtime/asset-library-import.d.ts +67 -1
- package/dist/cloud-workspace/runtime/asset-library-import.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/asset-library-import.js +2 -1
- package/dist/cloud-workspace/runtime/asset-library-import.js.map +1 -1
- package/dist/cloud-workspace/runtime/asset-library-model.d.ts +146 -0
- package/dist/cloud-workspace/runtime/asset-library-model.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/asset-library-model.js +66 -0
- package/dist/cloud-workspace/runtime/asset-library-model.js.map +1 -0
- package/dist/cloud-workspace/runtime/asset-library-save.d.ts +6 -6
- package/dist/cloud-workspace/runtime/audio-delivery.d.ts +75 -0
- package/dist/cloud-workspace/runtime/audio-delivery.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-delivery.js +122 -0
- package/dist/cloud-workspace/runtime/audio-delivery.js.map +1 -0
- package/dist/cloud-workspace/runtime/audio-dynamic-document.d.ts +68 -0
- package/dist/cloud-workspace/runtime/audio-dynamic-document.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-dynamic-document.js +120 -0
- package/dist/cloud-workspace/runtime/audio-dynamic-document.js.map +1 -0
- package/dist/cloud-workspace/runtime/audio-export.d.ts +3 -3
- package/dist/cloud-workspace/runtime/audio-hybrid-player.d.ts +22 -0
- package/dist/cloud-workspace/runtime/audio-hybrid-player.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-hybrid-player.js +456 -0
- package/dist/cloud-workspace/runtime/audio-hybrid-player.js.map +1 -0
- package/dist/cloud-workspace/runtime/audio-library.d.ts +418 -0
- package/dist/cloud-workspace/runtime/audio-library.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-library.js +155 -0
- package/dist/cloud-workspace/runtime/audio-library.js.map +1 -0
- package/dist/cloud-workspace/runtime/audio-prerender-player.d.ts +31 -0
- package/dist/cloud-workspace/runtime/audio-prerender-player.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-prerender-player.js +178 -0
- package/dist/cloud-workspace/runtime/audio-prerender-player.js.map +1 -0
- package/dist/cloud-workspace/runtime/batch-runs.d.ts +84 -0
- package/dist/cloud-workspace/runtime/batch-runs.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/batch-runs.js +8 -1
- package/dist/cloud-workspace/runtime/batch-runs.js.map +1 -1
- package/dist/cloud-workspace/runtime/chat-realtime.d.ts +2 -2
- package/dist/cloud-workspace/runtime/delivery.d.ts +4 -4
- package/dist/cloud-workspace/runtime/events.d.ts +4 -4
- package/dist/cloud-workspace/runtime/index.d.ts +7 -0
- package/dist/cloud-workspace/runtime/index.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/index.js +7 -0
- package/dist/cloud-workspace/runtime/index.js.map +1 -1
- package/dist/cloud-workspace/runtime/level-editor-agent.d.ts +4 -4
- package/dist/cloud-workspace/runtime/library-attachments.d.ts +132 -0
- package/dist/cloud-workspace/runtime/library-attachments.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/library-attachments.js +9 -0
- package/dist/cloud-workspace/runtime/library-attachments.js.map +1 -1
- package/dist/cloud-workspace/runtime/model-build-inputs.d.ts +1 -1
- package/dist/cloud-workspace/runtime/model-production.d.ts +64 -64
- package/dist/cloud-workspace/runtime/model-quality.d.ts +73 -73
- package/dist/cloud-workspace/runtime/model-validation.d.ts +1 -1
- package/dist/cloud-workspace/runtime/native-turn-error.d.ts +3 -0
- package/dist/cloud-workspace/runtime/native-turn-error.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/native-turn-error.js +19 -0
- package/dist/cloud-workspace/runtime/native-turn-error.js.map +1 -0
- package/dist/cloud-workspace/runtime/operations.d.ts +91 -25
- package/dist/cloud-workspace/runtime/operations.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/parameter-agent.d.ts +2 -2
- package/dist/cloud-workspace/runtime/previews.d.ts +3 -3
- package/dist/cloud-workspace/runtime/scheduled-task-proposals.js +1 -1
- package/dist/cloud-workspace/runtime/scheduled-task-proposals.js.map +1 -1
- package/dist/cloud-workspace/runtime/scheduled-tasks.js +1 -1
- package/dist/cloud-workspace/runtime/scheduled-tasks.js.map +1 -1
- package/dist/cloud-workspace/runtime/workspace-notifications.d.ts +1 -1
- package/dist/cloud-workspace/runtime/workspace-ui.d.ts +6 -6
- package/dist/model-proxy/diagnostic-error-text.d.ts +7 -0
- package/dist/model-proxy/diagnostic-error-text.d.ts.map +1 -0
- package/dist/model-proxy/diagnostic-error-text.js +16 -0
- package/dist/model-proxy/diagnostic-error-text.js.map +1 -0
- package/dist/model-proxy/diagnostics.d.ts +20 -0
- package/dist/model-proxy/diagnostics.d.ts.map +1 -1
- package/dist/model-proxy/governance-workbench.d.ts +3 -0
- package/dist/model-proxy/governance-workbench.d.ts.map +1 -1
- package/dist/model-proxy/index.d.ts +1 -0
- package/dist/model-proxy/index.d.ts.map +1 -1
- package/dist/model-proxy/index.js +1 -0
- package/dist/model-proxy/index.js.map +1 -1
- package/package.json +5 -1
|
@@ -9,8 +9,8 @@ export declare const assetGenerationRequestSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
9
9
|
referenceImageBase64: z.ZodOptional<z.ZodString>;
|
|
10
10
|
referenceImageMimeType: z.ZodOptional<z.ZodEnum<{
|
|
11
11
|
"image/png": "image/png";
|
|
12
|
-
"image/jpeg": "image/jpeg";
|
|
13
12
|
"image/webp": "image/webp";
|
|
13
|
+
"image/jpeg": "image/jpeg";
|
|
14
14
|
}>>;
|
|
15
15
|
mode: z.ZodEnum<{
|
|
16
16
|
text: "text";
|
|
@@ -34,8 +34,8 @@ export declare const assetGenerationRequestSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
34
34
|
referenceImageBase64: z.ZodOptional<z.ZodString>;
|
|
35
35
|
referenceImageMimeType: z.ZodOptional<z.ZodEnum<{
|
|
36
36
|
"image/png": "image/png";
|
|
37
|
-
"image/jpeg": "image/jpeg";
|
|
38
37
|
"image/webp": "image/webp";
|
|
38
|
+
"image/jpeg": "image/jpeg";
|
|
39
39
|
}>>;
|
|
40
40
|
imageModelRef: z.ZodOptional<z.ZodString>;
|
|
41
41
|
frameCount: z.ZodUnion<readonly [z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<12>, z.ZodLiteral<16>]>;
|
|
@@ -50,8 +50,8 @@ export declare const assetGenerationRequestSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
50
50
|
referenceImageBase64: z.ZodOptional<z.ZodString>;
|
|
51
51
|
referenceImageMimeType: z.ZodOptional<z.ZodEnum<{
|
|
52
52
|
"image/png": "image/png";
|
|
53
|
-
"image/jpeg": "image/jpeg";
|
|
54
53
|
"image/webp": "image/webp";
|
|
54
|
+
"image/jpeg": "image/jpeg";
|
|
55
55
|
}>>;
|
|
56
56
|
imageModelRef: z.ZodOptional<z.ZodString>;
|
|
57
57
|
frameCount: z.ZodUnion<readonly [z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<12>, z.ZodLiteral<16>]>;
|
|
@@ -66,15 +66,15 @@ export declare const assetGenerationRequestSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
66
66
|
base64: z.ZodString;
|
|
67
67
|
mimeType: z.ZodEnum<{
|
|
68
68
|
"image/png": "image/png";
|
|
69
|
-
"image/jpeg": "image/jpeg";
|
|
70
69
|
"image/webp": "image/webp";
|
|
70
|
+
"image/jpeg": "image/jpeg";
|
|
71
71
|
}>;
|
|
72
72
|
}, z.core.$strict>>>;
|
|
73
73
|
referenceImageBase64: z.ZodOptional<z.ZodString>;
|
|
74
74
|
referenceImageMimeType: z.ZodOptional<z.ZodEnum<{
|
|
75
75
|
"image/png": "image/png";
|
|
76
|
-
"image/jpeg": "image/jpeg";
|
|
77
76
|
"image/webp": "image/webp";
|
|
77
|
+
"image/jpeg": "image/jpeg";
|
|
78
78
|
}>>;
|
|
79
79
|
imageModelRef: z.ZodOptional<z.ZodString>;
|
|
80
80
|
aspectRatio: z.ZodOptional<z.ZodEnum<{
|
|
@@ -135,14 +135,14 @@ export declare const assetGenerationRequestSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
135
135
|
referenceImageBase64: z.ZodOptional<z.ZodString>;
|
|
136
136
|
referenceImageMimeType: z.ZodOptional<z.ZodEnum<{
|
|
137
137
|
"image/png": "image/png";
|
|
138
|
-
"image/jpeg": "image/jpeg";
|
|
139
138
|
"image/webp": "image/webp";
|
|
139
|
+
"image/jpeg": "image/jpeg";
|
|
140
140
|
}>>;
|
|
141
141
|
multiViewImages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
142
142
|
view: z.ZodEnum<{
|
|
143
|
+
left: "left";
|
|
143
144
|
right: "right";
|
|
144
145
|
back: "back";
|
|
145
|
-
left: "left";
|
|
146
146
|
top: "top";
|
|
147
147
|
bottom: "bottom";
|
|
148
148
|
left_front: "left_front";
|
|
@@ -151,8 +151,8 @@ export declare const assetGenerationRequestSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
151
151
|
imageBase64: z.ZodString;
|
|
152
152
|
mimeType: z.ZodOptional<z.ZodEnum<{
|
|
153
153
|
"image/png": "image/png";
|
|
154
|
-
"image/jpeg": "image/jpeg";
|
|
155
154
|
"image/webp": "image/webp";
|
|
155
|
+
"image/jpeg": "image/jpeg";
|
|
156
156
|
}>>;
|
|
157
157
|
}, z.core.$strict>>>;
|
|
158
158
|
modelRef: z.ZodOptional<z.ZodString>;
|
|
@@ -341,9 +341,9 @@ export declare const assetGenerationUsageAttemptSchema: z.ZodObject<{
|
|
|
341
341
|
export declare const assetGenerationUsageSchema: z.ZodObject<{
|
|
342
342
|
status: z.ZodEnum<{
|
|
343
343
|
pending: "pending";
|
|
344
|
-
unavailable: "unavailable";
|
|
345
344
|
recorded: "recorded";
|
|
346
345
|
partial: "partial";
|
|
346
|
+
unavailable: "unavailable";
|
|
347
347
|
}>;
|
|
348
348
|
currency: z.ZodLiteral<"USD">;
|
|
349
349
|
costMicros: z.ZodNullable<z.ZodNumber>;
|
|
@@ -468,11 +468,11 @@ export declare const assetGenerationTaskSchema: z.ZodObject<{
|
|
|
468
468
|
resultPreviewUnavailable: z.ZodOptional<z.ZodBoolean>;
|
|
469
469
|
kind: z.ZodEnum<{
|
|
470
470
|
audio: "audio";
|
|
471
|
-
image: "image";
|
|
472
|
-
video: "video";
|
|
473
|
-
model: "model";
|
|
474
471
|
animation: "animation";
|
|
472
|
+
model: "model";
|
|
473
|
+
image: "image";
|
|
475
474
|
sprite: "sprite";
|
|
475
|
+
video: "video";
|
|
476
476
|
}>;
|
|
477
477
|
prompt: z.ZodString;
|
|
478
478
|
status: z.ZodEnum<{
|
|
@@ -480,10 +480,10 @@ export declare const assetGenerationTaskSchema: z.ZodObject<{
|
|
|
480
480
|
running: "running";
|
|
481
481
|
cancelled: "cancelled";
|
|
482
482
|
saved: "saved";
|
|
483
|
-
interrupted: "interrupted";
|
|
484
483
|
queued: "queued";
|
|
485
484
|
cancel_requested: "cancel_requested";
|
|
486
485
|
awaiting_adoption: "awaiting_adoption";
|
|
486
|
+
interrupted: "interrupted";
|
|
487
487
|
}>;
|
|
488
488
|
createdAt: z.ZodString;
|
|
489
489
|
updatedAt: z.ZodString;
|
|
@@ -515,9 +515,9 @@ export declare const assetGenerationTaskSchema: z.ZodObject<{
|
|
|
515
515
|
usage: z.ZodObject<{
|
|
516
516
|
status: z.ZodEnum<{
|
|
517
517
|
pending: "pending";
|
|
518
|
-
unavailable: "unavailable";
|
|
519
518
|
recorded: "recorded";
|
|
520
519
|
partial: "partial";
|
|
520
|
+
unavailable: "unavailable";
|
|
521
521
|
}>;
|
|
522
522
|
currency: z.ZodLiteral<"USD">;
|
|
523
523
|
costMicros: z.ZodNullable<z.ZodNumber>;
|
|
@@ -766,11 +766,11 @@ export declare const assetGenerationTaskListSchema: z.ZodObject<{
|
|
|
766
766
|
resultPreviewUnavailable: z.ZodOptional<z.ZodBoolean>;
|
|
767
767
|
kind: z.ZodEnum<{
|
|
768
768
|
audio: "audio";
|
|
769
|
-
image: "image";
|
|
770
|
-
video: "video";
|
|
771
|
-
model: "model";
|
|
772
769
|
animation: "animation";
|
|
770
|
+
model: "model";
|
|
771
|
+
image: "image";
|
|
773
772
|
sprite: "sprite";
|
|
773
|
+
video: "video";
|
|
774
774
|
}>;
|
|
775
775
|
prompt: z.ZodString;
|
|
776
776
|
status: z.ZodEnum<{
|
|
@@ -778,10 +778,10 @@ export declare const assetGenerationTaskListSchema: z.ZodObject<{
|
|
|
778
778
|
running: "running";
|
|
779
779
|
cancelled: "cancelled";
|
|
780
780
|
saved: "saved";
|
|
781
|
-
interrupted: "interrupted";
|
|
782
781
|
queued: "queued";
|
|
783
782
|
cancel_requested: "cancel_requested";
|
|
784
783
|
awaiting_adoption: "awaiting_adoption";
|
|
784
|
+
interrupted: "interrupted";
|
|
785
785
|
}>;
|
|
786
786
|
createdAt: z.ZodString;
|
|
787
787
|
updatedAt: z.ZodString;
|
|
@@ -813,9 +813,9 @@ export declare const assetGenerationTaskListSchema: z.ZodObject<{
|
|
|
813
813
|
usage: z.ZodObject<{
|
|
814
814
|
status: z.ZodEnum<{
|
|
815
815
|
pending: "pending";
|
|
816
|
-
unavailable: "unavailable";
|
|
817
816
|
recorded: "recorded";
|
|
818
817
|
partial: "partial";
|
|
818
|
+
unavailable: "unavailable";
|
|
819
819
|
}>;
|
|
820
820
|
currency: z.ZodLiteral<"USD">;
|
|
821
821
|
costMicros: z.ZodNullable<z.ZodNumber>;
|
|
@@ -980,8 +980,8 @@ export declare const assetGenerationTaskCreateSchema: z.ZodObject<{
|
|
|
980
980
|
referenceImageBase64: z.ZodOptional<z.ZodString>;
|
|
981
981
|
referenceImageMimeType: z.ZodOptional<z.ZodEnum<{
|
|
982
982
|
"image/png": "image/png";
|
|
983
|
-
"image/jpeg": "image/jpeg";
|
|
984
983
|
"image/webp": "image/webp";
|
|
984
|
+
"image/jpeg": "image/jpeg";
|
|
985
985
|
}>>;
|
|
986
986
|
mode: z.ZodEnum<{
|
|
987
987
|
text: "text";
|
|
@@ -1005,8 +1005,8 @@ export declare const assetGenerationTaskCreateSchema: z.ZodObject<{
|
|
|
1005
1005
|
referenceImageBase64: z.ZodOptional<z.ZodString>;
|
|
1006
1006
|
referenceImageMimeType: z.ZodOptional<z.ZodEnum<{
|
|
1007
1007
|
"image/png": "image/png";
|
|
1008
|
-
"image/jpeg": "image/jpeg";
|
|
1009
1008
|
"image/webp": "image/webp";
|
|
1009
|
+
"image/jpeg": "image/jpeg";
|
|
1010
1010
|
}>>;
|
|
1011
1011
|
imageModelRef: z.ZodOptional<z.ZodString>;
|
|
1012
1012
|
frameCount: z.ZodUnion<readonly [z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<12>, z.ZodLiteral<16>]>;
|
|
@@ -1021,8 +1021,8 @@ export declare const assetGenerationTaskCreateSchema: z.ZodObject<{
|
|
|
1021
1021
|
referenceImageBase64: z.ZodOptional<z.ZodString>;
|
|
1022
1022
|
referenceImageMimeType: z.ZodOptional<z.ZodEnum<{
|
|
1023
1023
|
"image/png": "image/png";
|
|
1024
|
-
"image/jpeg": "image/jpeg";
|
|
1025
1024
|
"image/webp": "image/webp";
|
|
1025
|
+
"image/jpeg": "image/jpeg";
|
|
1026
1026
|
}>>;
|
|
1027
1027
|
imageModelRef: z.ZodOptional<z.ZodString>;
|
|
1028
1028
|
frameCount: z.ZodUnion<readonly [z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<12>, z.ZodLiteral<16>]>;
|
|
@@ -1037,15 +1037,15 @@ export declare const assetGenerationTaskCreateSchema: z.ZodObject<{
|
|
|
1037
1037
|
base64: z.ZodString;
|
|
1038
1038
|
mimeType: z.ZodEnum<{
|
|
1039
1039
|
"image/png": "image/png";
|
|
1040
|
-
"image/jpeg": "image/jpeg";
|
|
1041
1040
|
"image/webp": "image/webp";
|
|
1041
|
+
"image/jpeg": "image/jpeg";
|
|
1042
1042
|
}>;
|
|
1043
1043
|
}, z.core.$strict>>>;
|
|
1044
1044
|
referenceImageBase64: z.ZodOptional<z.ZodString>;
|
|
1045
1045
|
referenceImageMimeType: z.ZodOptional<z.ZodEnum<{
|
|
1046
1046
|
"image/png": "image/png";
|
|
1047
|
-
"image/jpeg": "image/jpeg";
|
|
1048
1047
|
"image/webp": "image/webp";
|
|
1048
|
+
"image/jpeg": "image/jpeg";
|
|
1049
1049
|
}>>;
|
|
1050
1050
|
imageModelRef: z.ZodOptional<z.ZodString>;
|
|
1051
1051
|
aspectRatio: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1106,14 +1106,14 @@ export declare const assetGenerationTaskCreateSchema: z.ZodObject<{
|
|
|
1106
1106
|
referenceImageBase64: z.ZodOptional<z.ZodString>;
|
|
1107
1107
|
referenceImageMimeType: z.ZodOptional<z.ZodEnum<{
|
|
1108
1108
|
"image/png": "image/png";
|
|
1109
|
-
"image/jpeg": "image/jpeg";
|
|
1110
1109
|
"image/webp": "image/webp";
|
|
1110
|
+
"image/jpeg": "image/jpeg";
|
|
1111
1111
|
}>>;
|
|
1112
1112
|
multiViewImages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1113
1113
|
view: z.ZodEnum<{
|
|
1114
|
+
left: "left";
|
|
1114
1115
|
right: "right";
|
|
1115
1116
|
back: "back";
|
|
1116
|
-
left: "left";
|
|
1117
1117
|
top: "top";
|
|
1118
1118
|
bottom: "bottom";
|
|
1119
1119
|
left_front: "left_front";
|
|
@@ -1122,8 +1122,8 @@ export declare const assetGenerationTaskCreateSchema: z.ZodObject<{
|
|
|
1122
1122
|
imageBase64: z.ZodString;
|
|
1123
1123
|
mimeType: z.ZodOptional<z.ZodEnum<{
|
|
1124
1124
|
"image/png": "image/png";
|
|
1125
|
-
"image/jpeg": "image/jpeg";
|
|
1126
1125
|
"image/webp": "image/webp";
|
|
1126
|
+
"image/jpeg": "image/jpeg";
|
|
1127
1127
|
}>>;
|
|
1128
1128
|
}, z.core.$strict>>>;
|
|
1129
1129
|
modelRef: z.ZodOptional<z.ZodString>;
|
|
@@ -1196,9 +1196,9 @@ export declare const assetGenerationModelQuerySchema: z.ZodObject<{
|
|
|
1196
1196
|
usage: z.ZodOptional<z.ZodObject<{
|
|
1197
1197
|
status: z.ZodEnum<{
|
|
1198
1198
|
pending: "pending";
|
|
1199
|
-
unavailable: "unavailable";
|
|
1200
1199
|
recorded: "recorded";
|
|
1201
1200
|
partial: "partial";
|
|
1201
|
+
unavailable: "unavailable";
|
|
1202
1202
|
}>;
|
|
1203
1203
|
currency: z.ZodLiteral<"USD">;
|
|
1204
1204
|
costMicros: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1293,9 +1293,9 @@ export declare const assetGenerationVideoQuerySchema: z.ZodObject<{
|
|
|
1293
1293
|
usage: z.ZodOptional<z.ZodObject<{
|
|
1294
1294
|
status: z.ZodEnum<{
|
|
1295
1295
|
pending: "pending";
|
|
1296
|
-
unavailable: "unavailable";
|
|
1297
1296
|
recorded: "recorded";
|
|
1298
1297
|
partial: "partial";
|
|
1298
|
+
unavailable: "unavailable";
|
|
1299
1299
|
}>;
|
|
1300
1300
|
currency: z.ZodLiteral<"USD">;
|
|
1301
1301
|
costMicros: z.ZodNullable<z.ZodNumber>;
|
|
@@ -4,9 +4,9 @@ export declare const workspaceAssetLibraryImportPayloadSchema: z.ZodObject<{
|
|
|
4
4
|
assetIds: z.ZodArray<z.ZodString>;
|
|
5
5
|
targetDirectory: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
|
|
6
6
|
collision: z.ZodEnum<{
|
|
7
|
+
replace: "replace";
|
|
7
8
|
rename: "rename";
|
|
8
9
|
skip: "skip";
|
|
9
|
-
replace: "replace";
|
|
10
10
|
}>;
|
|
11
11
|
}, z.core.$strict>;
|
|
12
12
|
export declare const workspaceAssetLibraryImportResultSchema: z.ZodObject<{
|
|
@@ -61,6 +61,72 @@ export declare const workspaceAssetLibraryImportTransportSchema: z.ZodObject<{
|
|
|
61
61
|
sha256: z.ZodString;
|
|
62
62
|
}, z.core.$strict>>;
|
|
63
63
|
contentHash: z.ZodString;
|
|
64
|
+
provenance: z.ZodOptional<z.ZodObject<{
|
|
65
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
66
|
+
assetId: z.ZodString;
|
|
67
|
+
revisionId: z.ZodString;
|
|
68
|
+
provider: z.ZodEnum<{
|
|
69
|
+
kenney: "kenney";
|
|
70
|
+
quaternius: "quaternius";
|
|
71
|
+
}>;
|
|
72
|
+
sourcePackageId: z.ZodString;
|
|
73
|
+
sourceUrl: z.ZodString;
|
|
74
|
+
author: z.ZodString;
|
|
75
|
+
license: z.ZodLiteral<"CC0-1.0">;
|
|
76
|
+
licenseUrl: z.ZodLiteral<"https://creativecommons.org/publicdomain/zero/1.0/">;
|
|
77
|
+
licenseText: z.ZodString;
|
|
78
|
+
sourcePackageSha256: z.ZodString;
|
|
79
|
+
sourcePath: z.ZodString;
|
|
80
|
+
modelSha256: z.ZodString;
|
|
81
|
+
evidenceHash: z.ZodString;
|
|
82
|
+
metadata: z.ZodObject<{
|
|
83
|
+
logicalId: z.ZodString;
|
|
84
|
+
nameZh: z.ZodString;
|
|
85
|
+
nameEn: z.ZodString;
|
|
86
|
+
aliases: z.ZodArray<z.ZodString>;
|
|
87
|
+
useCases: z.ZodArray<z.ZodString>;
|
|
88
|
+
styleSet: z.ZodString;
|
|
89
|
+
triangles: z.ZodNumber;
|
|
90
|
+
meshCount: z.ZodNumber;
|
|
91
|
+
materialCount: z.ZodNumber;
|
|
92
|
+
textureCount: z.ZodNumber;
|
|
93
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
94
|
+
"static-prop": "static-prop";
|
|
95
|
+
"rigid-parts": "rigid-parts";
|
|
96
|
+
}>>;
|
|
97
|
+
unsupportedFeatures: z.ZodArray<z.ZodString>;
|
|
98
|
+
}, z.core.$strict>;
|
|
99
|
+
}, z.core.$strict>>;
|
|
100
|
+
audioSource: z.ZodOptional<z.ZodObject<{
|
|
101
|
+
saveId: z.ZodString;
|
|
102
|
+
source: z.ZodObject<{
|
|
103
|
+
kind: z.ZodLiteral<"workspace-audio">;
|
|
104
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
105
|
+
kind: z.ZodLiteral<"workspace-file">;
|
|
106
|
+
path: z.ZodString;
|
|
107
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
108
|
+
kind: z.ZodLiteral<"generation-candidate">;
|
|
109
|
+
taskId: z.ZodString;
|
|
110
|
+
candidateId: z.ZodString;
|
|
111
|
+
}, z.core.$strict>], "kind">;
|
|
112
|
+
revision: z.ZodNumber;
|
|
113
|
+
sourcePath: z.ZodString;
|
|
114
|
+
entryPath: z.ZodEnum<{
|
|
115
|
+
"sound.pcaudio.json": "sound.pcaudio.json";
|
|
116
|
+
"sound.pcscore.json": "sound.pcscore.json";
|
|
117
|
+
}>;
|
|
118
|
+
sourceContentHash: z.ZodString;
|
|
119
|
+
sourceRenderHash: z.ZodString;
|
|
120
|
+
rendererBuildHash: z.ZodString;
|
|
121
|
+
representationSetHash: z.ZodString;
|
|
122
|
+
files: z.ZodArray<z.ZodObject<{
|
|
123
|
+
path: z.ZodString;
|
|
124
|
+
mimeType: z.ZodString;
|
|
125
|
+
size: z.ZodNumber;
|
|
126
|
+
contentHash: z.ZodString;
|
|
127
|
+
}, z.core.$strict>>;
|
|
128
|
+
}, z.core.$strict>;
|
|
129
|
+
}, z.core.$strict>>;
|
|
64
130
|
}, z.core.$strict>>;
|
|
65
131
|
failures: z.ZodArray<z.ZodObject<{
|
|
66
132
|
assetId: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset-library-import.d.ts","sourceRoot":"","sources":["../../../src/cloud-workspace/runtime/asset-library-import.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,6CAA6C,QAA+E,CAAC;AAK1I,eAAO,MAAM,wCAAwC;;;;;;;;kBAK1C,CAAC;AAEZ,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBASlD,CAAC;AAEH,eAAO,MAAM,0CAA0C
|
|
1
|
+
{"version":3,"file":"asset-library-import.d.ts","sourceRoot":"","sources":["../../../src/cloud-workspace/runtime/asset-library-import.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,6CAA6C,QAA+E,CAAC;AAK1I,eAAO,MAAM,wCAAwC;;;;;;;;kBAK1C,CAAC;AAEZ,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBASlD,CAAC;AAEH,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAUrD,CAAC;AAEH,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC;AAC1G,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAC;AACxG,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0CAA0C,CAAC,CAAC"}
|
|
@@ -31,7 +31,8 @@ export const workspaceAssetLibraryImportTransportSchema = z.object({
|
|
|
31
31
|
const ids = [...input.assets.map(asset => asset.assetId), ...input.failures.map(failure => failure.assetId)];
|
|
32
32
|
if (ids.length > WORKSPACE_ATTACHMENT_MAX_COUNT || new Set(ids).size !== ids.length)
|
|
33
33
|
context.addIssue({ code: 'custom', message: 'duplicate_library_asset' });
|
|
34
|
-
if (input.assets.reduce((total, asset) => total + asset.
|
|
34
|
+
if (input.assets.reduce((total, asset) => total + (asset.provenance ? Buffer.byteLength(JSON.stringify(asset.provenance)) : 0)
|
|
35
|
+
+ asset.files.reduce((size, file) => size + Buffer.byteLength(file.content, 'base64'), 0), 0) > WORKSPACE_LIBRARY_ATTACHMENT_MAX_BYTES)
|
|
35
36
|
context.addIssue({ code: 'custom', message: 'library_asset_too_large' });
|
|
36
37
|
});
|
|
37
38
|
//# sourceMappingURL=asset-library-import.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset-library-import.js","sourceRoot":"","sources":["../../../src/cloud-workspace/runtime/asset-library-import.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAC1F,OAAO,EAAE,8BAA8B,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,8BAA8B,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,sCAAsC,EAAE,sCAAsC,EACrF,iCAAiC,EAAE,MAAM,0BAA0B,CAAC;AAEtE,MAAM,CAAC,MAAM,6CAA6C,GAAG,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,sCAAsC,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AAC1I,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE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C,CAAC;UAC1H,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,sCAAsC;QACtI,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC,CAAC;AAC7E,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ASSET_LIBRARY_MODEL_PROVENANCE_MAX_BYTES: number;
|
|
3
|
+
export declare const assetLibraryModelMetadataSchema: z.ZodObject<{
|
|
4
|
+
logicalId: z.ZodString;
|
|
5
|
+
nameZh: z.ZodString;
|
|
6
|
+
nameEn: z.ZodString;
|
|
7
|
+
aliases: z.ZodArray<z.ZodString>;
|
|
8
|
+
useCases: z.ZodArray<z.ZodString>;
|
|
9
|
+
styleSet: z.ZodString;
|
|
10
|
+
triangles: z.ZodNumber;
|
|
11
|
+
meshCount: z.ZodNumber;
|
|
12
|
+
materialCount: z.ZodNumber;
|
|
13
|
+
textureCount: z.ZodNumber;
|
|
14
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
15
|
+
"static-prop": "static-prop";
|
|
16
|
+
"rigid-parts": "rigid-parts";
|
|
17
|
+
}>>;
|
|
18
|
+
unsupportedFeatures: z.ZodArray<z.ZodString>;
|
|
19
|
+
}, z.core.$strict>;
|
|
20
|
+
export type AssetLibraryModelMetadata = z.infer<typeof assetLibraryModelMetadataSchema>;
|
|
21
|
+
/** A public projection of an immutable, server-reviewed CC0 source record. */
|
|
22
|
+
export declare const assetLibraryModelProvenanceSchema: z.ZodObject<{
|
|
23
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
24
|
+
assetId: z.ZodString;
|
|
25
|
+
revisionId: z.ZodString;
|
|
26
|
+
provider: z.ZodEnum<{
|
|
27
|
+
kenney: "kenney";
|
|
28
|
+
quaternius: "quaternius";
|
|
29
|
+
}>;
|
|
30
|
+
sourcePackageId: z.ZodString;
|
|
31
|
+
sourceUrl: z.ZodString;
|
|
32
|
+
author: z.ZodString;
|
|
33
|
+
license: z.ZodLiteral<"CC0-1.0">;
|
|
34
|
+
licenseUrl: z.ZodLiteral<"https://creativecommons.org/publicdomain/zero/1.0/">;
|
|
35
|
+
licenseText: z.ZodString;
|
|
36
|
+
sourcePackageSha256: z.ZodString;
|
|
37
|
+
sourcePath: z.ZodString;
|
|
38
|
+
modelSha256: z.ZodString;
|
|
39
|
+
evidenceHash: z.ZodString;
|
|
40
|
+
metadata: z.ZodObject<{
|
|
41
|
+
logicalId: z.ZodString;
|
|
42
|
+
nameZh: z.ZodString;
|
|
43
|
+
nameEn: z.ZodString;
|
|
44
|
+
aliases: z.ZodArray<z.ZodString>;
|
|
45
|
+
useCases: z.ZodArray<z.ZodString>;
|
|
46
|
+
styleSet: z.ZodString;
|
|
47
|
+
triangles: z.ZodNumber;
|
|
48
|
+
meshCount: z.ZodNumber;
|
|
49
|
+
materialCount: z.ZodNumber;
|
|
50
|
+
textureCount: z.ZodNumber;
|
|
51
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
52
|
+
"static-prop": "static-prop";
|
|
53
|
+
"rigid-parts": "rigid-parts";
|
|
54
|
+
}>>;
|
|
55
|
+
unsupportedFeatures: z.ZodArray<z.ZodString>;
|
|
56
|
+
}, z.core.$strict>;
|
|
57
|
+
}, z.core.$strict>;
|
|
58
|
+
export type AssetLibraryModelProvenance = z.infer<typeof assetLibraryModelProvenanceSchema>;
|
|
59
|
+
export declare const workspaceAssetProvenanceEntrySchema: z.ZodObject<{
|
|
60
|
+
path: z.ZodString;
|
|
61
|
+
licensePath: z.ZodString;
|
|
62
|
+
provenance: z.ZodObject<{
|
|
63
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
64
|
+
assetId: z.ZodString;
|
|
65
|
+
revisionId: z.ZodString;
|
|
66
|
+
provider: z.ZodEnum<{
|
|
67
|
+
kenney: "kenney";
|
|
68
|
+
quaternius: "quaternius";
|
|
69
|
+
}>;
|
|
70
|
+
sourcePackageId: z.ZodString;
|
|
71
|
+
sourceUrl: z.ZodString;
|
|
72
|
+
author: z.ZodString;
|
|
73
|
+
license: z.ZodLiteral<"CC0-1.0">;
|
|
74
|
+
licenseUrl: z.ZodLiteral<"https://creativecommons.org/publicdomain/zero/1.0/">;
|
|
75
|
+
licenseText: z.ZodString;
|
|
76
|
+
sourcePackageSha256: z.ZodString;
|
|
77
|
+
sourcePath: z.ZodString;
|
|
78
|
+
modelSha256: z.ZodString;
|
|
79
|
+
evidenceHash: z.ZodString;
|
|
80
|
+
metadata: z.ZodObject<{
|
|
81
|
+
logicalId: z.ZodString;
|
|
82
|
+
nameZh: z.ZodString;
|
|
83
|
+
nameEn: z.ZodString;
|
|
84
|
+
aliases: z.ZodArray<z.ZodString>;
|
|
85
|
+
useCases: z.ZodArray<z.ZodString>;
|
|
86
|
+
styleSet: z.ZodString;
|
|
87
|
+
triangles: z.ZodNumber;
|
|
88
|
+
meshCount: z.ZodNumber;
|
|
89
|
+
materialCount: z.ZodNumber;
|
|
90
|
+
textureCount: z.ZodNumber;
|
|
91
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
92
|
+
"static-prop": "static-prop";
|
|
93
|
+
"rigid-parts": "rigid-parts";
|
|
94
|
+
}>>;
|
|
95
|
+
unsupportedFeatures: z.ZodArray<z.ZodString>;
|
|
96
|
+
}, z.core.$strict>;
|
|
97
|
+
}, z.core.$strict>;
|
|
98
|
+
}, z.core.$strict>;
|
|
99
|
+
export declare const workspaceAssetProvenanceDocumentSchema: z.ZodObject<{
|
|
100
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
101
|
+
assets: z.ZodArray<z.ZodObject<{
|
|
102
|
+
path: z.ZodString;
|
|
103
|
+
licensePath: z.ZodString;
|
|
104
|
+
provenance: z.ZodObject<{
|
|
105
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
106
|
+
assetId: z.ZodString;
|
|
107
|
+
revisionId: z.ZodString;
|
|
108
|
+
provider: z.ZodEnum<{
|
|
109
|
+
kenney: "kenney";
|
|
110
|
+
quaternius: "quaternius";
|
|
111
|
+
}>;
|
|
112
|
+
sourcePackageId: z.ZodString;
|
|
113
|
+
sourceUrl: z.ZodString;
|
|
114
|
+
author: z.ZodString;
|
|
115
|
+
license: z.ZodLiteral<"CC0-1.0">;
|
|
116
|
+
licenseUrl: z.ZodLiteral<"https://creativecommons.org/publicdomain/zero/1.0/">;
|
|
117
|
+
licenseText: z.ZodString;
|
|
118
|
+
sourcePackageSha256: z.ZodString;
|
|
119
|
+
sourcePath: z.ZodString;
|
|
120
|
+
modelSha256: z.ZodString;
|
|
121
|
+
evidenceHash: z.ZodString;
|
|
122
|
+
metadata: z.ZodObject<{
|
|
123
|
+
logicalId: z.ZodString;
|
|
124
|
+
nameZh: z.ZodString;
|
|
125
|
+
nameEn: z.ZodString;
|
|
126
|
+
aliases: z.ZodArray<z.ZodString>;
|
|
127
|
+
useCases: z.ZodArray<z.ZodString>;
|
|
128
|
+
styleSet: z.ZodString;
|
|
129
|
+
triangles: z.ZodNumber;
|
|
130
|
+
meshCount: z.ZodNumber;
|
|
131
|
+
materialCount: z.ZodNumber;
|
|
132
|
+
textureCount: z.ZodNumber;
|
|
133
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
134
|
+
"static-prop": "static-prop";
|
|
135
|
+
"rigid-parts": "rigid-parts";
|
|
136
|
+
}>>;
|
|
137
|
+
unsupportedFeatures: z.ZodArray<z.ZodString>;
|
|
138
|
+
}, z.core.$strict>;
|
|
139
|
+
}, z.core.$strict>;
|
|
140
|
+
}, z.core.$strict>>;
|
|
141
|
+
}, z.core.$strict>;
|
|
142
|
+
export type WorkspaceAssetProvenanceEntry = z.infer<typeof workspaceAssetProvenanceEntrySchema>;
|
|
143
|
+
export type WorkspaceAssetProvenanceDocument = z.infer<typeof workspaceAssetProvenanceDocumentSchema>;
|
|
144
|
+
/** Canonical comparison does not grant authority; callers compare with the server record. */
|
|
145
|
+
export declare function canonicalAssetLibraryModelProvenance(value: AssetLibraryModelProvenance): string;
|
|
146
|
+
//# sourceMappingURL=asset-library-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset-library-model.d.ts","sourceRoot":"","sources":["../../../src/cloud-workspace/runtime/asset-library-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,wCAAwC,QAAa,CAAC;AASnE,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;kBAajC,CAAC;AACZ,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF,8EAA8E;AAC9E,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAwB5C,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAE5F,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAIrC,CAAC;AACZ,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAMjD,CAAC;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAChG,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC;AAEtG,6FAA6F;AAC7F,wBAAgB,oCAAoC,CAAC,KAAK,EAAE,2BAA2B,GAAG,MAAM,CAE/F"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const ASSET_LIBRARY_MODEL_PROVENANCE_MAX_BYTES = 128 * 1024;
|
|
3
|
+
const digest = z.string().regex(/^[a-f0-9]{64}$/);
|
|
4
|
+
const relativePath = z.string().min(1).max(1024).refine(value => !/[\\:\x00-\x1f\x7f]/.test(value)
|
|
5
|
+
&& !value.startsWith('/') && value.split('/').every(part => part && part !== '.' && part !== '..'), 'invalid_model_source_path');
|
|
6
|
+
const officialSource = z.string().url().max(2048).refine(value => {
|
|
7
|
+
const url = new URL(value);
|
|
8
|
+
return url.protocol === 'https:' && !url.username && !url.password && !url.search && !url.hash;
|
|
9
|
+
}, 'invalid_model_source_url');
|
|
10
|
+
export const assetLibraryModelMetadataSchema = z.object({
|
|
11
|
+
logicalId: z.string().min(1).max(256),
|
|
12
|
+
nameZh: z.string().min(1).max(256),
|
|
13
|
+
nameEn: z.string().min(1).max(256),
|
|
14
|
+
aliases: z.array(z.string().min(1).max(128)).max(64),
|
|
15
|
+
useCases: z.array(z.string().min(1).max(128)).max(32),
|
|
16
|
+
styleSet: z.string().min(1).max(128),
|
|
17
|
+
triangles: z.number().int().nonnegative(),
|
|
18
|
+
meshCount: z.number().int().nonnegative(),
|
|
19
|
+
materialCount: z.number().int().nonnegative(),
|
|
20
|
+
textureCount: z.number().int().nonnegative(),
|
|
21
|
+
capabilities: z.array(z.enum(['static-prop', 'rigid-parts'])).max(2),
|
|
22
|
+
unsupportedFeatures: z.array(z.string().min(1).max(128)).max(32),
|
|
23
|
+
}).strict();
|
|
24
|
+
/** A public projection of an immutable, server-reviewed CC0 source record. */
|
|
25
|
+
export const assetLibraryModelProvenanceSchema = z.object({
|
|
26
|
+
schemaVersion: z.literal(1),
|
|
27
|
+
assetId: z.string().uuid(),
|
|
28
|
+
revisionId: digest,
|
|
29
|
+
provider: z.enum(['kenney', 'quaternius']),
|
|
30
|
+
sourcePackageId: digest,
|
|
31
|
+
sourceUrl: officialSource,
|
|
32
|
+
author: z.string().min(1).max(256),
|
|
33
|
+
license: z.literal('CC0-1.0'),
|
|
34
|
+
licenseUrl: z.literal('https://creativecommons.org/publicdomain/zero/1.0/'),
|
|
35
|
+
licenseText: z.string().min(1).max(64 * 1024),
|
|
36
|
+
sourcePackageSha256: digest,
|
|
37
|
+
sourcePath: relativePath,
|
|
38
|
+
modelSha256: digest,
|
|
39
|
+
evidenceHash: digest,
|
|
40
|
+
metadata: assetLibraryModelMetadataSchema,
|
|
41
|
+
}).strict().superRefine((value, context) => {
|
|
42
|
+
const host = new URL(value.sourceUrl).hostname;
|
|
43
|
+
if (host !== (value.provider === 'kenney' ? 'kenney.nl' : 'quaternius.com'))
|
|
44
|
+
context.addIssue({ code: 'custom', message: 'model_source_provider_mismatch', path: ['sourceUrl'] });
|
|
45
|
+
const utf8 = new TextEncoder();
|
|
46
|
+
if (utf8.encode(value.licenseText).byteLength > 64 * 1024
|
|
47
|
+
|| utf8.encode(JSON.stringify(value)).byteLength > ASSET_LIBRARY_MODEL_PROVENANCE_MAX_BYTES)
|
|
48
|
+
context.addIssue({ code: 'custom', message: 'model_provenance_too_large' });
|
|
49
|
+
});
|
|
50
|
+
export const workspaceAssetProvenanceEntrySchema = z.object({
|
|
51
|
+
path: relativePath.refine(value => value.toLowerCase().endsWith('.glb'), 'invalid_model_provenance_path'),
|
|
52
|
+
licensePath: z.string().regex(/^licenses\/assets\/[a-f0-9]{64}\.txt$/),
|
|
53
|
+
provenance: assetLibraryModelProvenanceSchema,
|
|
54
|
+
}).strict();
|
|
55
|
+
export const workspaceAssetProvenanceDocumentSchema = z.object({
|
|
56
|
+
schemaVersion: z.literal(1),
|
|
57
|
+
assets: z.array(workspaceAssetProvenanceEntrySchema).max(1024),
|
|
58
|
+
}).strict().superRefine((value, context) => {
|
|
59
|
+
if (new Set(value.assets.map(asset => asset.path.toLowerCase())).size !== value.assets.length)
|
|
60
|
+
context.addIssue({ code: 'custom', message: 'duplicate_model_provenance_path' });
|
|
61
|
+
});
|
|
62
|
+
/** Canonical comparison does not grant authority; callers compare with the server record. */
|
|
63
|
+
export function canonicalAssetLibraryModelProvenance(value) {
|
|
64
|
+
return JSON.stringify(assetLibraryModelProvenanceSchema.parse(value));
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=asset-library-model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset-library-model.js","sourceRoot":"","sources":["../../../src/cloud-workspace/runtime/asset-library-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,wCAAwC,GAAG,GAAG,GAAG,IAAI,CAAC;AACnE,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;AAClD,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC;OAC7F,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,IAAI,IAAI,KAAK,GAAG,IAAI,IAAI,KAAK,IAAI,CAAC,EAAE,2BAA2B,CAAC,CAAC;AACnI,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;IAC/D,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;IAC3B,OAAO,GAAG,CAAC,QAAQ,KAAK,QAAQ,IAAI,CAAC,GAAG,CAAC,QAAQ,IAAI,CAAC,GAAG,CAAC,QAAQ,IAAI,CAAC,GAAG,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C;CAC/D,CAAC,CAAC,MAAM,EAAE,CAAC,WAAW,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;IACzC,IAAI,IAAI,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,MAAM,CAAC,MAAM;QAC3F,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC,CAAC;AACrF,CAAC,CAAC,CAAC;AAIH,6FAA6F;AAC7F,MAAM,UAAU,oCAAoC,CAAC,KAAkC;IACrF,OAAO,IAAI,CAAC,SAAS,CAAC,iCAAiC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AACxE,CAAC"}
|
|
@@ -25,11 +25,11 @@ export declare const assetLibrarySourceFileSchema: z.ZodObject<{
|
|
|
25
25
|
export declare const assetLibrarySourceDescriptorSchema: z.ZodObject<{
|
|
26
26
|
kind: z.ZodEnum<{
|
|
27
27
|
audio: "audio";
|
|
28
|
-
image: "image";
|
|
29
|
-
video: "video";
|
|
30
|
-
model: "model";
|
|
31
28
|
animation: "animation";
|
|
29
|
+
model: "model";
|
|
30
|
+
image: "image";
|
|
32
31
|
sprite: "sprite";
|
|
32
|
+
video: "video";
|
|
33
33
|
}>;
|
|
34
34
|
versionId: z.ZodOptional<z.ZodString>;
|
|
35
35
|
entryPath: z.ZodString;
|
|
@@ -214,11 +214,11 @@ export declare const assetLibrarySaveEnvelopeSchema: z.ZodObject<{
|
|
|
214
214
|
source: z.ZodObject<{
|
|
215
215
|
kind: z.ZodEnum<{
|
|
216
216
|
audio: "audio";
|
|
217
|
-
image: "image";
|
|
218
|
-
video: "video";
|
|
219
|
-
model: "model";
|
|
220
217
|
animation: "animation";
|
|
218
|
+
model: "model";
|
|
219
|
+
image: "image";
|
|
221
220
|
sprite: "sprite";
|
|
221
|
+
video: "video";
|
|
222
222
|
}>;
|
|
223
223
|
versionId: z.ZodOptional<z.ZodString>;
|
|
224
224
|
entryPath: z.ZodString;
|