@vcp-dev/contracts 0.10.32 → 0.10.34

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.
@@ -5,14 +5,15 @@ export declare const MEDIA_LIBRARY_IMAGE_EXTENSIONS: readonly ["jpg", "jpeg", "p
5
5
  export declare const MEDIA_LIBRARY_VIDEO_EXTENSIONS: readonly ["mp4", "avi", "mov", "webm", "mkv"];
6
6
  export declare const MEDIA_LIBRARY_AUDIO_EXTENSIONS: readonly ["mp3", "wav", "aac", "flac", "ogg", "wma", "m4a"];
7
7
  export declare const MEDIA_LIBRARY_DOCUMENT_EXTENSIONS: readonly ["pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt", "md", "csv"];
8
- export declare const MEDIA_LIBRARY_FILE_EXTENSIONS: readonly ["pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt", "md", "csv", "zip", "rar", "json", "xmind", "psd", "ai", "fig", "sketch"];
9
- export declare const MEDIA_LIBRARY_EXTENSIONS: readonly ["jpg", "jpeg", "png", "gif", "webp", "bmp", "mp4", "avi", "mov", "webm", "mkv", "mp3", "wav", "aac", "flac", "ogg", "wma", "m4a", "pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt", "md", "csv", "zip", "rar", "json", "xmind", "psd", "ai", "fig", "sketch"];
8
+ export declare const MEDIA_LIBRARY_FILE_EXTENSIONS: readonly ["pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt", "md", "csv", "zip", "rar", "xmind", "psd", "ai", "fig", "sketch"];
9
+ export declare const MEDIA_LIBRARY_EXTENSIONS: readonly ["jpg", "jpeg", "png", "gif", "webp", "bmp", "mp4", "avi", "mov", "webm", "mkv", "mp3", "wav", "aac", "flac", "ogg", "wma", "m4a", "pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt", "md", "csv", "zip", "rar", "xmind", "psd", "ai", "fig", "sketch"];
10
10
  export declare const MEDIA_LIBRARY_IMAGE_MIME_TYPES: readonly ["image/jpeg", "image/png", "image/gif", "image/webp", "image/bmp"];
11
11
  export declare const MEDIA_LIBRARY_VIDEO_MIME_TYPES: readonly ["video/mp4", "video/x-msvideo", "video/quicktime", "video/webm", "video/x-matroska"];
12
12
  export declare const MEDIA_LIBRARY_AUDIO_MIME_TYPES: readonly ["audio/mpeg", "audio/wav", "audio/x-wav", "audio/vnd.wave", "audio/aac", "audio/flac", "audio/x-flac", "audio/ogg", "audio/x-ms-wma", "audio/mp4", "audio/x-m4a"];
13
13
  export declare const MEDIA_LIBRARY_MIME_TYPES: readonly ["image/jpeg", "image/png", "image/gif", "image/webp", "image/bmp", "video/mp4", "video/x-msvideo", "video/quicktime", "video/webm", "video/x-matroska", "audio/mpeg", "audio/wav", "audio/x-wav", "audio/vnd.wave", "audio/aac", "audio/flac", "audio/x-flac", "audio/ogg", "audio/x-ms-wma", "audio/mp4", "audio/x-m4a"];
14
14
  export declare const MediaLibraryFileTypeSchema: z.ZodEnum<{
15
15
  file: "file";
16
+ document: "document";
16
17
  image: "image";
17
18
  video: "video";
18
19
  audio: "audio";
@@ -47,6 +48,7 @@ export declare const ListMediaLibraryAssetsQuerySchema: z.ZodObject<{
47
48
  keyword: z.ZodOptional<z.ZodString>;
48
49
  file_type: z.ZodDefault<z.ZodEnum<{
49
50
  file: "file";
51
+ document: "document";
50
52
  image: "image";
51
53
  video: "video";
52
54
  audio: "audio";
@@ -0,0 +1,96 @@
1
+ import { z } from "zod";
2
+ export declare const PREVIEW_SANDBOX_CLEANUP_LIMIT = 32;
3
+ export declare const PREVIEW_SANDBOX_CLEANUP_CONFLICT_ERROR_CODE: "PREVIEW_SANDBOX_CLEANUP_CONFLICT";
4
+ export declare const ClaimPreviewSandboxCleanupsRequestSchema: z.ZodObject<{
5
+ expected_current_snapshot_id: z.ZodUUID;
6
+ expected_ready_session_id: z.ZodUUID;
7
+ }, z.core.$strict>;
8
+ export type ClaimPreviewSandboxCleanupsRequest = z.infer<typeof ClaimPreviewSandboxCleanupsRequestSchema>;
9
+ export declare const ClaimPreviewSandboxCleanupsResponseSchema: z.ZodObject<{
10
+ preview_session: z.ZodLazy<z.ZodObject<{
11
+ id: z.ZodUUID;
12
+ tenant_id: z.ZodString;
13
+ site_id: z.ZodUUID;
14
+ sandbox_id: z.ZodNullable<z.ZodString>;
15
+ status: z.ZodEnum<{
16
+ failed: "failed";
17
+ creating: "creating";
18
+ ready: "ready";
19
+ active: "active";
20
+ stopped: "stopped";
21
+ idle: "idle";
22
+ restoring_snapshot: "restoring_snapshot";
23
+ installing_dependencies: "installing_dependencies";
24
+ starting_preview: "starting_preview";
25
+ stopping: "stopping";
26
+ }>;
27
+ source_snapshot_id: z.ZodNullable<z.ZodUUID>;
28
+ last_snapshot_id: z.ZodNullable<z.ZodUUID>;
29
+ preview_url: z.ZodNullable<z.ZodString>;
30
+ browser_preview_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ launch_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ last_activity_at: z.ZodNullable<z.ZodString>;
33
+ created_at: z.ZodString;
34
+ updated_at: z.ZodString;
35
+ }, z.core.$strip>>;
36
+ cleanup_sessions: z.ZodArray<z.ZodLazy<z.ZodObject<{
37
+ id: z.ZodUUID;
38
+ tenant_id: z.ZodString;
39
+ site_id: z.ZodUUID;
40
+ sandbox_id: z.ZodNullable<z.ZodString>;
41
+ status: z.ZodEnum<{
42
+ failed: "failed";
43
+ creating: "creating";
44
+ ready: "ready";
45
+ active: "active";
46
+ stopped: "stopped";
47
+ idle: "idle";
48
+ restoring_snapshot: "restoring_snapshot";
49
+ installing_dependencies: "installing_dependencies";
50
+ starting_preview: "starting_preview";
51
+ stopping: "stopping";
52
+ }>;
53
+ source_snapshot_id: z.ZodNullable<z.ZodUUID>;
54
+ last_snapshot_id: z.ZodNullable<z.ZodUUID>;
55
+ preview_url: z.ZodNullable<z.ZodString>;
56
+ browser_preview_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ launch_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ last_activity_at: z.ZodNullable<z.ZodString>;
59
+ created_at: z.ZodString;
60
+ updated_at: z.ZodString;
61
+ }, z.core.$strip>>>;
62
+ }, z.core.$strict>;
63
+ export type ClaimPreviewSandboxCleanupsResponse = z.infer<typeof ClaimPreviewSandboxCleanupsResponseSchema>;
64
+ export declare const CompletePreviewSandboxCleanupRequestSchema: z.ZodObject<{
65
+ sandbox_id: z.ZodString;
66
+ }, z.core.$strict>;
67
+ export type CompletePreviewSandboxCleanupRequest = z.infer<typeof CompletePreviewSandboxCleanupRequestSchema>;
68
+ export declare const CompletePreviewSandboxCleanupResponseSchema: z.ZodObject<{
69
+ preview_session: z.ZodLazy<z.ZodObject<{
70
+ id: z.ZodUUID;
71
+ tenant_id: z.ZodString;
72
+ site_id: z.ZodUUID;
73
+ sandbox_id: z.ZodNullable<z.ZodString>;
74
+ status: z.ZodEnum<{
75
+ failed: "failed";
76
+ creating: "creating";
77
+ ready: "ready";
78
+ active: "active";
79
+ stopped: "stopped";
80
+ idle: "idle";
81
+ restoring_snapshot: "restoring_snapshot";
82
+ installing_dependencies: "installing_dependencies";
83
+ starting_preview: "starting_preview";
84
+ stopping: "stopping";
85
+ }>;
86
+ source_snapshot_id: z.ZodNullable<z.ZodUUID>;
87
+ last_snapshot_id: z.ZodNullable<z.ZodUUID>;
88
+ preview_url: z.ZodNullable<z.ZodString>;
89
+ browser_preview_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
+ launch_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
91
+ last_activity_at: z.ZodNullable<z.ZodString>;
92
+ created_at: z.ZodString;
93
+ updated_at: z.ZodString;
94
+ }, z.core.$strip>>;
95
+ }, z.core.$strict>;
96
+ export type CompletePreviewSandboxCleanupResponse = z.infer<typeof CompletePreviewSandboxCleanupResponseSchema>;
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * 由 release-edit-engine-packages.ts 在 bump 版本时自动更新。
7
7
  */
8
- export declare const CURRENT_EDIT_ENGINE_VERSION = "0.10.32";
8
+ export declare const CURRENT_EDIT_ENGINE_VERSION = "0.10.34";
9
9
  export declare const EDIT_ENGINE_VERSION_HEADER = "x-vcp-edit-engine-version";
10
10
  export declare const EDIT_ENGINE_VERSION_SOURCE_HEADER = "x-vcp-edit-engine-version-source";
11
11
  export type EditEngineVersionSource = "explicit" | "fallback_current" | "system_current";
@@ -0,0 +1,293 @@
1
+ import { z } from "zod";
2
+ export declare const SiteInitialReviewPhaseSchema: z.ZodEnum<{
3
+ failed: "failed";
4
+ creating: "creating";
5
+ ready: "ready";
6
+ unavailable: "unavailable";
7
+ running: "running";
8
+ not_started: "not_started";
9
+ not_published: "not_published";
10
+ waiting_domain: "waiting_domain";
11
+ }>;
12
+ export type SiteInitialReviewPhase = z.infer<typeof SiteInitialReviewPhaseSchema>;
13
+ export declare const SiteInitialReviewErrorSchema: z.ZodObject<{
14
+ code: z.ZodString;
15
+ message: z.ZodString;
16
+ retryable: z.ZodBoolean;
17
+ }, z.core.$strict>;
18
+ export declare const SiteInitialReviewStatusSchema: z.ZodObject<{
19
+ phase: z.ZodEnum<{
20
+ failed: "failed";
21
+ creating: "creating";
22
+ ready: "ready";
23
+ unavailable: "unavailable";
24
+ running: "running";
25
+ not_started: "not_started";
26
+ not_published: "not_published";
27
+ waiting_domain: "waiting_domain";
28
+ }>;
29
+ runId: z.ZodNullable<z.ZodUUID>;
30
+ progress: z.ZodNullable<z.ZodNumber>;
31
+ hasExecutionWarning: z.ZodBoolean;
32
+ error: z.ZodNullable<z.ZodObject<{
33
+ code: z.ZodString;
34
+ message: z.ZodString;
35
+ retryable: z.ZodBoolean;
36
+ }, z.core.$strict>>;
37
+ }, z.core.$strict>;
38
+ export type SiteInitialReviewStatus = z.infer<typeof SiteInitialReviewStatusSchema>;
39
+ export declare const SiteInitialReviewStatusResponseSchema: z.ZodObject<{
40
+ code: z.ZodLiteral<0>;
41
+ message: z.ZodLiteral<"ok">;
42
+ data: z.ZodObject<{
43
+ phase: z.ZodEnum<{
44
+ failed: "failed";
45
+ creating: "creating";
46
+ ready: "ready";
47
+ unavailable: "unavailable";
48
+ running: "running";
49
+ not_started: "not_started";
50
+ not_published: "not_published";
51
+ waiting_domain: "waiting_domain";
52
+ }>;
53
+ runId: z.ZodNullable<z.ZodUUID>;
54
+ progress: z.ZodNullable<z.ZodNumber>;
55
+ hasExecutionWarning: z.ZodBoolean;
56
+ error: z.ZodNullable<z.ZodObject<{
57
+ code: z.ZodString;
58
+ message: z.ZodString;
59
+ retryable: z.ZodBoolean;
60
+ }, z.core.$strict>>;
61
+ }, z.core.$strict>;
62
+ }, z.core.$strict>;
63
+ export type SiteInitialReviewStatusResponse = z.infer<typeof SiteInitialReviewStatusResponseSchema>;
64
+ export declare const SITE_INITIAL_REVIEW_CARD_KEYS: readonly ["performance", "experience", "index", "ai", "compliance"];
65
+ export declare const SiteInitialReviewCardKeySchema: z.ZodEnum<{
66
+ index: "index";
67
+ ai: "ai";
68
+ performance: "performance";
69
+ experience: "experience";
70
+ compliance: "compliance";
71
+ }>;
72
+ export type SiteInitialReviewCardKey = z.infer<typeof SiteInitialReviewCardKeySchema>;
73
+ export declare const SiteInitialReviewCardSchema: z.ZodObject<{
74
+ key: z.ZodEnum<{
75
+ index: "index";
76
+ ai: "ai";
77
+ performance: "performance";
78
+ experience: "experience";
79
+ compliance: "compliance";
80
+ }>;
81
+ title: z.ZodString;
82
+ value: z.ZodString;
83
+ providerLabel: z.ZodNullable<z.ZodString>;
84
+ description: z.ZodString;
85
+ }, z.core.$strict>;
86
+ export type SiteInitialReviewCard = z.infer<typeof SiteInitialReviewCardSchema>;
87
+ export declare const SiteInitialReviewMetricSchema: z.ZodObject<{
88
+ key: z.ZodString;
89
+ label: z.ZodString;
90
+ description: z.ZodString;
91
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>;
92
+ displayValue: z.ZodString;
93
+ progress: z.ZodNullable<z.ZodNumber>;
94
+ }, z.core.$strict>;
95
+ export declare const SiteInitialReviewDetailSchema: z.ZodObject<{
96
+ key: z.ZodEnum<{
97
+ index: "index";
98
+ ai: "ai";
99
+ performance: "performance";
100
+ experience: "experience";
101
+ compliance: "compliance";
102
+ }>;
103
+ title: z.ZodString;
104
+ badge: z.ZodString;
105
+ metrics: z.ZodArray<z.ZodObject<{
106
+ key: z.ZodString;
107
+ label: z.ZodString;
108
+ description: z.ZodString;
109
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>;
110
+ displayValue: z.ZodString;
111
+ progress: z.ZodNullable<z.ZodNumber>;
112
+ }, z.core.$strict>>;
113
+ }, z.core.$strict>;
114
+ export type SiteInitialReviewDetail = z.infer<typeof SiteInitialReviewDetailSchema>;
115
+ export declare const SiteInitialReviewCardsSchema: z.ZodObject<{
116
+ cards: z.ZodArray<z.ZodObject<{
117
+ key: z.ZodEnum<{
118
+ index: "index";
119
+ ai: "ai";
120
+ performance: "performance";
121
+ experience: "experience";
122
+ compliance: "compliance";
123
+ }>;
124
+ title: z.ZodString;
125
+ value: z.ZodString;
126
+ providerLabel: z.ZodNullable<z.ZodString>;
127
+ description: z.ZodString;
128
+ }, z.core.$strict>>;
129
+ details: z.ZodArray<z.ZodObject<{
130
+ key: z.ZodEnum<{
131
+ index: "index";
132
+ ai: "ai";
133
+ performance: "performance";
134
+ experience: "experience";
135
+ compliance: "compliance";
136
+ }>;
137
+ title: z.ZodString;
138
+ badge: z.ZodString;
139
+ metrics: z.ZodArray<z.ZodObject<{
140
+ key: z.ZodString;
141
+ label: z.ZodString;
142
+ description: z.ZodString;
143
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>;
144
+ displayValue: z.ZodString;
145
+ progress: z.ZodNullable<z.ZodNumber>;
146
+ }, z.core.$strict>>;
147
+ }, z.core.$strict>>;
148
+ }, z.core.$strict>;
149
+ export type SiteInitialReviewCards = z.infer<typeof SiteInitialReviewCardsSchema>;
150
+ export declare const SiteInitialReviewCardsResponseSchema: z.ZodObject<{
151
+ code: z.ZodLiteral<0>;
152
+ message: z.ZodLiteral<"ok">;
153
+ data: z.ZodObject<{
154
+ cards: z.ZodArray<z.ZodObject<{
155
+ key: z.ZodEnum<{
156
+ index: "index";
157
+ ai: "ai";
158
+ performance: "performance";
159
+ experience: "experience";
160
+ compliance: "compliance";
161
+ }>;
162
+ title: z.ZodString;
163
+ value: z.ZodString;
164
+ providerLabel: z.ZodNullable<z.ZodString>;
165
+ description: z.ZodString;
166
+ }, z.core.$strict>>;
167
+ details: z.ZodArray<z.ZodObject<{
168
+ key: z.ZodEnum<{
169
+ index: "index";
170
+ ai: "ai";
171
+ performance: "performance";
172
+ experience: "experience";
173
+ compliance: "compliance";
174
+ }>;
175
+ title: z.ZodString;
176
+ badge: z.ZodString;
177
+ metrics: z.ZodArray<z.ZodObject<{
178
+ key: z.ZodString;
179
+ label: z.ZodString;
180
+ description: z.ZodString;
181
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>;
182
+ displayValue: z.ZodString;
183
+ progress: z.ZodNullable<z.ZodNumber>;
184
+ }, z.core.$strict>>;
185
+ }, z.core.$strict>>;
186
+ }, z.core.$strict>;
187
+ }, z.core.$strict>;
188
+ export type SiteInitialReviewCardsResponse = z.infer<typeof SiteInitialReviewCardsResponseSchema>;
189
+ export declare const EnsureSiteInitialReviewRequestSchema: z.ZodObject<{}, z.core.$strict>;
190
+ export declare const SiteInitialReviewEventCursorSchema: z.ZodString;
191
+ /** Only display-safe check fields cross the trusted OPS3/browser boundary. */
192
+ export declare const SiteInitialReviewCheckSchema: z.ZodObject<{
193
+ checkCode: z.ZodString;
194
+ name: z.ZodString;
195
+ execution: z.ZodEnum<{
196
+ failed: "failed";
197
+ running: "running";
198
+ queued: "queued";
199
+ completed: "completed";
200
+ }>;
201
+ conclusion: z.ZodEnum<{
202
+ unknown: "unknown";
203
+ failed: "failed";
204
+ unavailable: "unavailable";
205
+ passed: "passed";
206
+ }>;
207
+ }, z.core.$strict>;
208
+ export type SiteInitialReviewCheck = z.infer<typeof SiteInitialReviewCheckSchema>;
209
+ export declare const SiteInitialReviewSummarySchema: z.ZodObject<{
210
+ total: z.ZodNumber;
211
+ passed: z.ZodNumber;
212
+ failed: z.ZodNumber;
213
+ unknown: z.ZodNumber;
214
+ unavailable: z.ZodNumber;
215
+ executionFailed: z.ZodNumber;
216
+ }, z.core.$strict>;
217
+ export type SiteInitialReviewSummary = z.infer<typeof SiteInitialReviewSummarySchema>;
218
+ export declare const SiteInitialReviewEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
219
+ type: z.ZodLiteral<"accepted">;
220
+ data: z.ZodObject<{
221
+ runId: z.ZodUUID;
222
+ checks: z.ZodArray<z.ZodObject<{
223
+ checkCode: z.ZodString;
224
+ name: z.ZodString;
225
+ execution: z.ZodEnum<{
226
+ failed: "failed";
227
+ running: "running";
228
+ queued: "queued";
229
+ completed: "completed";
230
+ }>;
231
+ conclusion: z.ZodEnum<{
232
+ unknown: "unknown";
233
+ failed: "failed";
234
+ unavailable: "unavailable";
235
+ passed: "passed";
236
+ }>;
237
+ }, z.core.$strict>>;
238
+ }, z.core.$strict>;
239
+ id: z.ZodString;
240
+ runId: z.ZodUUID;
241
+ createdAt: z.ZodISODateTime;
242
+ }, z.core.$strict>, z.ZodObject<{
243
+ type: z.ZodLiteral<"check.updated">;
244
+ data: z.ZodObject<{
245
+ checkCode: z.ZodString;
246
+ name: z.ZodString;
247
+ execution: z.ZodEnum<{
248
+ failed: "failed";
249
+ running: "running";
250
+ queued: "queued";
251
+ completed: "completed";
252
+ }>;
253
+ conclusion: z.ZodEnum<{
254
+ unknown: "unknown";
255
+ failed: "failed";
256
+ unavailable: "unavailable";
257
+ passed: "passed";
258
+ }>;
259
+ }, z.core.$strict>;
260
+ id: z.ZodString;
261
+ runId: z.ZodUUID;
262
+ createdAt: z.ZodISODateTime;
263
+ }, z.core.$strict>, z.ZodObject<{
264
+ type: z.ZodEnum<{
265
+ failed: "failed";
266
+ completed: "completed";
267
+ progress: "progress";
268
+ }>;
269
+ data: z.ZodObject<{
270
+ status: z.ZodOptional<z.ZodEnum<{
271
+ failed: "failed";
272
+ running: "running";
273
+ queued: "queued";
274
+ completed: "completed";
275
+ }>>;
276
+ summary: z.ZodObject<{
277
+ total: z.ZodNumber;
278
+ passed: z.ZodNumber;
279
+ failed: z.ZodNumber;
280
+ unknown: z.ZodNumber;
281
+ unavailable: z.ZodNumber;
282
+ executionFailed: z.ZodNumber;
283
+ }, z.core.$strict>;
284
+ }, z.core.$strict>;
285
+ id: z.ZodString;
286
+ runId: z.ZodUUID;
287
+ createdAt: z.ZodISODateTime;
288
+ }, z.core.$strict>], "type">;
289
+ export type SiteInitialReviewEvent = z.infer<typeof SiteInitialReviewEventSchema>;
290
+ export declare const SiteInitialReviewStreamErrorSchema: z.ZodObject<{
291
+ code: z.ZodLiteral<"INITIAL_REVIEW_STREAM_INTERRUPTED">;
292
+ retryable: z.ZodLiteral<true>;
293
+ }, z.core.$strict>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vcp-dev/contracts",
3
- "version": "0.10.32",
3
+ "version": "0.10.34",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {