@vcp-dev/contracts 0.7.3 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -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.
|
|
8
|
+
export declare const CURRENT_EDIT_ENGINE_VERSION = "0.8.1";
|
|
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";
|
|
@@ -6,10 +6,25 @@ export declare const Step2SiteInitializationStatusSchema: z.ZodEnum<{
|
|
|
6
6
|
running: "running";
|
|
7
7
|
}>;
|
|
8
8
|
export type Step2SiteInitializationStatus = z.infer<typeof Step2SiteInitializationStatusSchema>;
|
|
9
|
+
export declare const Step2SiteInitializationCrawlerErrorCodeSchema: z.ZodEnum<{
|
|
10
|
+
TASK_FAILED: "TASK_FAILED";
|
|
11
|
+
WEBSITE_UNREACHABLE: "WEBSITE_UNREACHABLE";
|
|
12
|
+
}>;
|
|
13
|
+
export type Step2SiteInitializationCrawlerErrorCode = z.infer<typeof Step2SiteInitializationCrawlerErrorCodeSchema>;
|
|
9
14
|
export declare const Step2SiteInitializationTaskSchema: z.ZodObject<{
|
|
10
15
|
task_id: z.ZodString;
|
|
11
16
|
site_url: z.ZodString;
|
|
12
17
|
crawler_task_id: z.ZodNullable<z.ZodString>;
|
|
18
|
+
crawler_error_code: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
19
|
+
TASK_FAILED: "TASK_FAILED";
|
|
20
|
+
WEBSITE_UNREACHABLE: "WEBSITE_UNREACHABLE";
|
|
21
|
+
}>>>;
|
|
22
|
+
crawler_failure_stage: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
23
|
+
URL_DISCOVERY: "URL_DISCOVERY";
|
|
24
|
+
PAGE_CRAWL: "PAGE_CRAWL";
|
|
25
|
+
TASK_SCHEDULING: "TASK_SCHEDULING";
|
|
26
|
+
RESULT_PERSISTENCE: "RESULT_PERSISTENCE";
|
|
27
|
+
}>>>;
|
|
13
28
|
page_count: z.ZodNumber;
|
|
14
29
|
status: z.ZodEnum<{
|
|
15
30
|
failed: "failed";
|
|
@@ -28,6 +43,16 @@ export declare const Step2SiteInitializationTaskResponseSchema: z.ZodObject<{
|
|
|
28
43
|
task_id: z.ZodString;
|
|
29
44
|
site_url: z.ZodString;
|
|
30
45
|
crawler_task_id: z.ZodNullable<z.ZodString>;
|
|
46
|
+
crawler_error_code: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
47
|
+
TASK_FAILED: "TASK_FAILED";
|
|
48
|
+
WEBSITE_UNREACHABLE: "WEBSITE_UNREACHABLE";
|
|
49
|
+
}>>>;
|
|
50
|
+
crawler_failure_stage: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
51
|
+
URL_DISCOVERY: "URL_DISCOVERY";
|
|
52
|
+
PAGE_CRAWL: "PAGE_CRAWL";
|
|
53
|
+
TASK_SCHEDULING: "TASK_SCHEDULING";
|
|
54
|
+
RESULT_PERSISTENCE: "RESULT_PERSISTENCE";
|
|
55
|
+
}>>>;
|
|
31
56
|
page_count: z.ZodNumber;
|
|
32
57
|
status: z.ZodEnum<{
|
|
33
58
|
failed: "failed";
|