@vcp-dev/contracts 0.6.9 → 0.6.11
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/api-response.d.ts +11 -0
- package/dist/cms-collection-binding.d.ts +2 -2
- package/dist/cms-page-directory.d.ts +245 -0
- package/dist/cms-site-id.d.ts +4 -0
- package/dist/connect-dynamic-collection.d.ts +13 -9
- package/dist/connect-form.d.ts +5 -3
- package/dist/crawler-task-service.d.ts +352 -0
- package/dist/custom-domain.d.ts +36 -2
- package/dist/customer-materials.d.ts +196 -0
- package/dist/deployment-progress.d.ts +51 -0
- package/dist/designer-component-library.d.ts +9 -7
- package/dist/designer-page-library.d.ts +36 -40
- package/dist/external-site-edit.d.ts +258 -0
- package/dist/firecrawl-internal.d.ts +103 -0
- package/dist/form-design.d.ts +106 -108
- package/dist/google-search-console.d.ts +316 -0
- package/dist/index.d.ts +5493 -1916
- package/dist/index.js +1 -1
- package/dist/input-context-bundle.d.ts +15 -15
- package/dist/internal-entity-id.d.ts +37 -0
- package/dist/launcher-prompt-templates.d.ts +639 -0
- package/dist/media-library.d.ts +164 -0
- package/dist/product-search.d.ts +227 -0
- package/dist/publish-quality.d.ts +92 -0
- package/dist/site-edit-capability.d.ts +6 -6
- package/dist/site-edit-event.d.ts +15 -7
- package/dist/site-edit-operation.d.ts +57 -15
- package/dist/site-edit-patch-plan.d.ts +2 -2
- package/dist/site-edit-render-document.d.ts +27 -23
- package/dist/site-edit-version.d.ts +1 -1
- package/dist/site-preview.d.ts +50 -0
- package/dist/site-workflow.d.ts +1006 -0
- package/dist/sitemap-navigation.d.ts +9 -0
- package/dist/step2-site-initialization.d.ts +209 -0
- package/dist/step3-digital-employee-analysis.d.ts +695 -0
- package/dist/step4-diagnosis.d.ts +204 -0
- package/dist/step5-strategy.d.ts +2697 -0
- package/dist/step6-design.d.ts +672 -0
- package/dist/template-upgrade-observability.d.ts +4 -4
- package/dist/user-facing-copy.d.ts +1 -0
- package/dist/workspace-design-apply.d.ts +1 -1
- package/dist/workspace-resource-operation.d.ts +722 -0
- package/package.json +2 -1
- package/dist/publish-plan.d.ts +0 -54
|
@@ -7,6 +7,8 @@ export declare const DESIGNER_COMPONENT_LIBRARY_ERROR_CODES: {
|
|
|
7
7
|
readonly invalidResponse: "DESIGNER_COMPONENT_LIBRARY_INVALID_RESPONSE";
|
|
8
8
|
readonly incompatibleResource: "DESIGNER_COMPONENT_RESOURCE_INCOMPATIBLE";
|
|
9
9
|
};
|
|
10
|
+
export declare const DesignerResourceVersionSchema: z.ZodNumber;
|
|
11
|
+
export type DesignerResourceVersion = z.infer<typeof DesignerResourceVersionSchema>;
|
|
10
12
|
export interface DesignerComponentCategoryNode {
|
|
11
13
|
readonly id: string;
|
|
12
14
|
readonly key: string;
|
|
@@ -23,7 +25,7 @@ export declare const DesignerComponentCatalogItemSchema: z.ZodObject<{
|
|
|
23
25
|
name: z.ZodString;
|
|
24
26
|
description: z.ZodNullable<z.ZodString>;
|
|
25
27
|
thumbnail_url: z.ZodNullable<z.ZodString>;
|
|
26
|
-
resolved_version: z.
|
|
28
|
+
resolved_version: z.ZodNumber;
|
|
27
29
|
category_id: z.ZodNullable<z.ZodString>;
|
|
28
30
|
}, z.core.$strict>;
|
|
29
31
|
export declare const DesignerComponentsDataSchema: z.ZodObject<{
|
|
@@ -33,14 +35,14 @@ export declare const DesignerComponentsDataSchema: z.ZodObject<{
|
|
|
33
35
|
name: z.ZodString;
|
|
34
36
|
description: z.ZodNullable<z.ZodString>;
|
|
35
37
|
thumbnail_url: z.ZodNullable<z.ZodString>;
|
|
36
|
-
resolved_version: z.
|
|
38
|
+
resolved_version: z.ZodNumber;
|
|
37
39
|
category_id: z.ZodNullable<z.ZodString>;
|
|
38
40
|
}, z.core.$strict>>;
|
|
39
41
|
next_cursor: z.ZodNullable<z.ZodString>;
|
|
40
42
|
}, z.core.$strict>;
|
|
41
43
|
export declare const MockDesignerComponentInsertRequestSchema: z.ZodObject<{
|
|
42
44
|
resource_id: z.ZodString;
|
|
43
|
-
resolved_version: z.
|
|
45
|
+
resolved_version: z.ZodNumber;
|
|
44
46
|
anchor_block_id: z.ZodString;
|
|
45
47
|
placement: z.ZodEnum<{
|
|
46
48
|
before: "before";
|
|
@@ -65,14 +67,14 @@ export type DesignerComponentsData = z.infer<typeof DesignerComponentsDataSchema
|
|
|
65
67
|
export type MockDesignerComponentInsertRequest = z.infer<typeof MockDesignerComponentInsertRequestSchema>;
|
|
66
68
|
export type MockDesignerComponentInsertData = z.infer<typeof MockDesignerComponentInsertDataSchema>;
|
|
67
69
|
export type ListDesignerComponentsQuery = z.infer<typeof ListDesignerComponentsQuerySchema>;
|
|
68
|
-
export declare const DesignerComponentExactVersionSchema: z.
|
|
70
|
+
export declare const DesignerComponentExactVersionSchema: z.ZodNumber;
|
|
69
71
|
export declare const InstallDesignerComponentBodySchema: z.ZodObject<{
|
|
70
|
-
version: z.
|
|
72
|
+
version: z.ZodNumber;
|
|
71
73
|
}, z.core.$strict>;
|
|
72
74
|
export declare const DesignerComponentInstallDataSchema: z.ZodObject<{
|
|
73
75
|
resource_id: z.ZodString;
|
|
74
|
-
resolved_version: z.
|
|
75
|
-
revision_id: z.ZodString
|
|
76
|
+
resolved_version: z.ZodNumber;
|
|
77
|
+
revision_id: z.ZodOptional<z.ZodString>;
|
|
76
78
|
digest_sha256: z.ZodString;
|
|
77
79
|
materialization: z.ZodObject<{
|
|
78
80
|
instanceBaseName: z.ZodString;
|
|
@@ -8,17 +8,17 @@ export declare const DESIGNER_PAGE_LIBRARY_ERROR_CODES: {
|
|
|
8
8
|
readonly incompatibleResource: "DESIGNER_PAGE_RESOURCE_INCOMPATIBLE";
|
|
9
9
|
};
|
|
10
10
|
export declare const DesignerPageResourceTypeSchema: z.ZodEnum<{
|
|
11
|
-
page: "page";
|
|
12
11
|
pages: "pages";
|
|
12
|
+
page: "page";
|
|
13
13
|
}>;
|
|
14
14
|
export type DesignerPageResourceType = z.infer<typeof DesignerPageResourceTypeSchema>;
|
|
15
15
|
export declare const DesignerPageResourceSourceSchema: z.ZodObject<{
|
|
16
16
|
resource_id: z.ZodString;
|
|
17
17
|
resource_type: z.ZodEnum<{
|
|
18
|
-
page: "page";
|
|
19
18
|
pages: "pages";
|
|
19
|
+
page: "page";
|
|
20
20
|
}>;
|
|
21
|
-
resolved_version: z.
|
|
21
|
+
resolved_version: z.ZodNumber;
|
|
22
22
|
template_page_id: z.ZodString;
|
|
23
23
|
}, z.core.$strict>;
|
|
24
24
|
export type DesignerPageResourceSource = z.infer<typeof DesignerPageResourceSourceSchema>;
|
|
@@ -36,13 +36,13 @@ export declare const DesignerPageCategoriesDataSchema: z.ZodObject<{
|
|
|
36
36
|
export declare const DesignerPageCatalogItemSchema: z.ZodObject<{
|
|
37
37
|
resource_id: z.ZodString;
|
|
38
38
|
resource_type: z.ZodEnum<{
|
|
39
|
-
page: "page";
|
|
40
39
|
pages: "pages";
|
|
40
|
+
page: "page";
|
|
41
41
|
}>;
|
|
42
42
|
name: z.ZodString;
|
|
43
43
|
description: z.ZodNullable<z.ZodString>;
|
|
44
44
|
thumbnail_url: z.ZodNullable<z.ZodString>;
|
|
45
|
-
resolved_version: z.
|
|
45
|
+
resolved_version: z.ZodNumber;
|
|
46
46
|
category_id: z.ZodNullable<z.ZodString>;
|
|
47
47
|
}, z.core.$strict>;
|
|
48
48
|
export declare const DesignerPagesDataSchema: z.ZodObject<{
|
|
@@ -50,13 +50,13 @@ export declare const DesignerPagesDataSchema: z.ZodObject<{
|
|
|
50
50
|
items: z.ZodArray<z.ZodObject<{
|
|
51
51
|
resource_id: z.ZodString;
|
|
52
52
|
resource_type: z.ZodEnum<{
|
|
53
|
-
page: "page";
|
|
54
53
|
pages: "pages";
|
|
54
|
+
page: "page";
|
|
55
55
|
}>;
|
|
56
56
|
name: z.ZodString;
|
|
57
57
|
description: z.ZodNullable<z.ZodString>;
|
|
58
58
|
thumbnail_url: z.ZodNullable<z.ZodString>;
|
|
59
|
-
resolved_version: z.
|
|
59
|
+
resolved_version: z.ZodNumber;
|
|
60
60
|
category_id: z.ZodNullable<z.ZodString>;
|
|
61
61
|
}, z.core.$strict>>;
|
|
62
62
|
next_cursor: z.ZodNullable<z.ZodString>;
|
|
@@ -74,7 +74,7 @@ export type DesignerPageCategoriesData = z.infer<typeof DesignerPageCategoriesDa
|
|
|
74
74
|
export type DesignerPageCatalogItem = z.infer<typeof DesignerPageCatalogItemSchema>;
|
|
75
75
|
export type DesignerPagesData = z.infer<typeof DesignerPagesDataSchema>;
|
|
76
76
|
export type ListDesignerPagesQuery = z.infer<typeof ListDesignerPagesQuerySchema>;
|
|
77
|
-
export declare const DesignerPageExactVersionSchema: z.
|
|
77
|
+
export declare const DesignerPageExactVersionSchema: z.ZodNumber;
|
|
78
78
|
/**
|
|
79
79
|
* Designer phase one intentionally supports one route segment only. The
|
|
80
80
|
* designer owns the final route (including an optional random suffix); the
|
|
@@ -96,10 +96,10 @@ export declare const PageResourceDraftPageSchema: z.ZodObject<{
|
|
|
96
96
|
source: z.ZodOptional<z.ZodObject<{
|
|
97
97
|
resource_id: z.ZodString;
|
|
98
98
|
resource_type: z.ZodEnum<{
|
|
99
|
-
page: "page";
|
|
100
99
|
pages: "pages";
|
|
100
|
+
page: "page";
|
|
101
101
|
}>;
|
|
102
|
-
resolved_version: z.
|
|
102
|
+
resolved_version: z.ZodNumber;
|
|
103
103
|
template_page_id: z.ZodString;
|
|
104
104
|
}, z.core.$strict>>;
|
|
105
105
|
blocks: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -111,7 +111,7 @@ export declare const PageResourceDraftPageSchema: z.ZodObject<{
|
|
|
111
111
|
kind: z.ZodLiteral<"component-resource">;
|
|
112
112
|
instance_id: z.ZodString;
|
|
113
113
|
resource_id: z.ZodString;
|
|
114
|
-
resolved_version: z.
|
|
114
|
+
resolved_version: z.ZodNumber;
|
|
115
115
|
label: z.ZodString;
|
|
116
116
|
}, z.core.$strict>], "kind">>>;
|
|
117
117
|
route: z.ZodObject<{
|
|
@@ -125,20 +125,20 @@ export type PageResourceDraftPage = z.infer<typeof PageResourceDraftPageSchema>;
|
|
|
125
125
|
export declare const PageResourceDraftSchema: z.ZodObject<{
|
|
126
126
|
resource_id: z.ZodString;
|
|
127
127
|
resource_type: z.ZodEnum<{
|
|
128
|
-
page: "page";
|
|
129
128
|
pages: "pages";
|
|
129
|
+
page: "page";
|
|
130
130
|
}>;
|
|
131
|
-
resolved_version: z.
|
|
131
|
+
resolved_version: z.ZodNumber;
|
|
132
132
|
pages: z.ZodArray<z.ZodObject<{
|
|
133
133
|
template_page_id: z.ZodString;
|
|
134
134
|
title: z.ZodString;
|
|
135
135
|
source: z.ZodOptional<z.ZodObject<{
|
|
136
136
|
resource_id: z.ZodString;
|
|
137
137
|
resource_type: z.ZodEnum<{
|
|
138
|
-
page: "page";
|
|
139
138
|
pages: "pages";
|
|
139
|
+
page: "page";
|
|
140
140
|
}>;
|
|
141
|
-
resolved_version: z.
|
|
141
|
+
resolved_version: z.ZodNumber;
|
|
142
142
|
template_page_id: z.ZodString;
|
|
143
143
|
}, z.core.$strict>>;
|
|
144
144
|
blocks: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -150,7 +150,7 @@ export declare const PageResourceDraftSchema: z.ZodObject<{
|
|
|
150
150
|
kind: z.ZodLiteral<"component-resource">;
|
|
151
151
|
instance_id: z.ZodString;
|
|
152
152
|
resource_id: z.ZodString;
|
|
153
|
-
resolved_version: z.
|
|
153
|
+
resolved_version: z.ZodNumber;
|
|
154
154
|
label: z.ZodString;
|
|
155
155
|
}, z.core.$strict>], "kind">>>;
|
|
156
156
|
route: z.ZodObject<{
|
|
@@ -164,10 +164,10 @@ export declare const PageResourceDraftSchema: z.ZodObject<{
|
|
|
164
164
|
export type PageResourceDraft = z.infer<typeof PageResourceDraftSchema>;
|
|
165
165
|
export declare const InstallDesignerPageBodySchema: z.ZodObject<{
|
|
166
166
|
resource_type: z.ZodEnum<{
|
|
167
|
-
page: "page";
|
|
168
167
|
pages: "pages";
|
|
168
|
+
page: "page";
|
|
169
169
|
}>;
|
|
170
|
-
version: z.
|
|
170
|
+
version: z.ZodNumber;
|
|
171
171
|
pages: z.ZodArray<z.ZodObject<{
|
|
172
172
|
template_page_id: z.ZodString;
|
|
173
173
|
title: z.ZodString;
|
|
@@ -233,11 +233,11 @@ export type PageResourcePage = z.infer<typeof PageResourcePageSchema>;
|
|
|
233
233
|
export declare const PageResourceArtifactSchema: z.ZodObject<{
|
|
234
234
|
resource_id: z.ZodString;
|
|
235
235
|
resource_type: z.ZodEnum<{
|
|
236
|
-
page: "page";
|
|
237
236
|
pages: "pages";
|
|
237
|
+
page: "page";
|
|
238
238
|
}>;
|
|
239
|
-
resolved_version: z.
|
|
240
|
-
revision_id: z.ZodString
|
|
239
|
+
resolved_version: z.ZodNumber;
|
|
240
|
+
revision_id: z.ZodOptional<z.ZodString>;
|
|
241
241
|
digest_sha256: z.ZodString;
|
|
242
242
|
components: z.ZodArray<z.ZodObject<{
|
|
243
243
|
component_id: z.ZodString;
|
|
@@ -293,11 +293,11 @@ export type PageResourceArtifact = z.infer<typeof PageResourceArtifactSchema>;
|
|
|
293
293
|
export declare const DesignerPageInstallDataSchema: z.ZodObject<{
|
|
294
294
|
resource_id: z.ZodString;
|
|
295
295
|
resource_type: z.ZodEnum<{
|
|
296
|
-
page: "page";
|
|
297
296
|
pages: "pages";
|
|
297
|
+
page: "page";
|
|
298
298
|
}>;
|
|
299
|
-
resolved_version: z.
|
|
300
|
-
revision_id: z.ZodString
|
|
299
|
+
resolved_version: z.ZodNumber;
|
|
300
|
+
revision_id: z.ZodOptional<z.ZodString>;
|
|
301
301
|
digest_sha256: z.ZodString;
|
|
302
302
|
components: z.ZodArray<z.ZodObject<{
|
|
303
303
|
component_id: z.ZodString;
|
|
@@ -371,10 +371,10 @@ export type DesignerPageResourceTemplate = z.infer<typeof DesignerPageResourceTe
|
|
|
371
371
|
export declare const DesignerPageResourcePreparationDataSchema: z.ZodObject<{
|
|
372
372
|
resource_id: z.ZodString;
|
|
373
373
|
resource_type: z.ZodEnum<{
|
|
374
|
-
page: "page";
|
|
375
374
|
pages: "pages";
|
|
375
|
+
page: "page";
|
|
376
376
|
}>;
|
|
377
|
-
resolved_version: z.
|
|
377
|
+
resolved_version: z.ZodNumber;
|
|
378
378
|
pages: z.ZodArray<z.ZodObject<{
|
|
379
379
|
template_page_id: z.ZodString;
|
|
380
380
|
title: z.ZodString;
|
|
@@ -389,30 +389,30 @@ export declare const DesignerPageResourcePreparationDataSchema: z.ZodObject<{
|
|
|
389
389
|
export type DesignerPageResourcePreparationData = z.infer<typeof DesignerPageResourcePreparationDataSchema>;
|
|
390
390
|
export declare const PrepareDesignerPageBodySchema: z.ZodObject<{
|
|
391
391
|
resource_type: z.ZodEnum<{
|
|
392
|
-
page: "page";
|
|
393
392
|
pages: "pages";
|
|
393
|
+
page: "page";
|
|
394
394
|
}>;
|
|
395
|
-
version: z.
|
|
395
|
+
version: z.ZodNumber;
|
|
396
396
|
}, z.core.$strict>;
|
|
397
397
|
export type PrepareDesignerPageBody = z.infer<typeof PrepareDesignerPageBodySchema>;
|
|
398
398
|
export declare const ComposeDesignerPageResourceBodySchema: z.ZodObject<{
|
|
399
399
|
draft: z.ZodObject<{
|
|
400
400
|
resource_id: z.ZodString;
|
|
401
401
|
resource_type: z.ZodEnum<{
|
|
402
|
-
page: "page";
|
|
403
402
|
pages: "pages";
|
|
403
|
+
page: "page";
|
|
404
404
|
}>;
|
|
405
|
-
resolved_version: z.
|
|
405
|
+
resolved_version: z.ZodNumber;
|
|
406
406
|
pages: z.ZodArray<z.ZodObject<{
|
|
407
407
|
template_page_id: z.ZodString;
|
|
408
408
|
title: z.ZodString;
|
|
409
409
|
source: z.ZodOptional<z.ZodObject<{
|
|
410
410
|
resource_id: z.ZodString;
|
|
411
411
|
resource_type: z.ZodEnum<{
|
|
412
|
-
page: "page";
|
|
413
412
|
pages: "pages";
|
|
413
|
+
page: "page";
|
|
414
414
|
}>;
|
|
415
|
-
resolved_version: z.
|
|
415
|
+
resolved_version: z.ZodNumber;
|
|
416
416
|
template_page_id: z.ZodString;
|
|
417
417
|
}, z.core.$strict>>;
|
|
418
418
|
blocks: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -424,7 +424,7 @@ export declare const ComposeDesignerPageResourceBodySchema: z.ZodObject<{
|
|
|
424
424
|
kind: z.ZodLiteral<"component-resource">;
|
|
425
425
|
instance_id: z.ZodString;
|
|
426
426
|
resource_id: z.ZodString;
|
|
427
|
-
resolved_version: z.
|
|
427
|
+
resolved_version: z.ZodNumber;
|
|
428
428
|
label: z.ZodString;
|
|
429
429
|
}, z.core.$strict>], "kind">>>;
|
|
430
430
|
route: z.ZodObject<{
|
|
@@ -437,15 +437,11 @@ export declare const ComposeDesignerPageResourceBodySchema: z.ZodObject<{
|
|
|
437
437
|
}, z.core.$strict>;
|
|
438
438
|
}, z.core.$strict>;
|
|
439
439
|
export type ComposeDesignerPageResourceBody = z.infer<typeof ComposeDesignerPageResourceBodySchema>;
|
|
440
|
-
export declare const DesignerSitePageSchema: z.ZodObject<{
|
|
441
|
-
title: z.ZodString;
|
|
442
|
-
route_id: z.ZodString;
|
|
443
|
-
}, z.core.$strict>;
|
|
444
|
-
export type DesignerSitePage = z.infer<typeof DesignerSitePageSchema>;
|
|
445
440
|
export declare const DesignerSitePagesDataSchema: z.ZodObject<{
|
|
446
|
-
|
|
441
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
442
|
+
group_id: z.ZodString;
|
|
447
443
|
title: z.ZodString;
|
|
448
|
-
|
|
444
|
+
pages: z.ZodArray<z.ZodType<import("./cms-page-directory.js").DesignerPageNode, unknown, z.core.$ZodTypeInternals<import("./cms-page-directory.js").DesignerPageNode, unknown>>>;
|
|
449
445
|
}, z.core.$strict>>;
|
|
450
446
|
}, z.core.$strict>;
|
|
451
447
|
export type DesignerSitePagesData = z.infer<typeof DesignerSitePagesDataSchema>;
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* 外部编排系统(当前是增长后台的 mastra 工作流)异步驱动改站的合同。
|
|
4
|
+
*
|
|
5
|
+
* 设计见 docs/superpowers/specs/2026-08-08-external-site-edit-api-design.md。
|
|
6
|
+
* 命名刻意不绑定具体编排器:external_run_id / external_thread_id 对应调用方
|
|
7
|
+
* 自己的运行与会话标识,VCP 只原样存储与回显,不解析其含义。
|
|
8
|
+
*/
|
|
9
|
+
export declare const ExternalSiteEditTaskIdSchema: z.ZodUUID;
|
|
10
|
+
/** 提示词上限。改站提示词是一次任务描述,不是资料投递通道。 */
|
|
11
|
+
export declare const EXTERNAL_SITE_EDIT_PROMPT_MAX_LENGTH = 4000;
|
|
12
|
+
/**
|
|
13
|
+
* 结果四态。判定基准是「站点当前快照是否已推进」而非运行记录状态,
|
|
14
|
+
* 详见设计 §9.3——运行记录会在「站已改好但收口失败」时呈现为失败。
|
|
15
|
+
*/
|
|
16
|
+
export declare const ExternalSiteEditOutcomeSchema: z.ZodEnum<{
|
|
17
|
+
failed: "failed";
|
|
18
|
+
succeeded: "succeeded";
|
|
19
|
+
degraded: "degraded";
|
|
20
|
+
no_changes: "no_changes";
|
|
21
|
+
}>;
|
|
22
|
+
export type ExternalSiteEditOutcome = z.infer<typeof ExternalSiteEditOutcomeSchema>;
|
|
23
|
+
/**
|
|
24
|
+
* 降级原因全集(设计 §9.4)。这些分支的共同点是:产出了真实新快照或真实副作用,
|
|
25
|
+
* 却不会让运行记录呈现为失败——即「成功外表下该改的没改成」。
|
|
26
|
+
*
|
|
27
|
+
* 注意 `sandbox_unavailable` 是唯一映射到 `failed` 的取值:沙箱起不来时那份快照
|
|
28
|
+
* 没经过任何构建校验,报成降级会让调用方以为只是有瑕疵而不再重试。
|
|
29
|
+
*/
|
|
30
|
+
export declare const ExternalSiteEditDegradedReasonSchema: z.ZodEnum<{
|
|
31
|
+
typecheck_unresolved: "typecheck_unresolved";
|
|
32
|
+
step_cap_reached: "step_cap_reached";
|
|
33
|
+
partial_apply_gave_up: "partial_apply_gave_up";
|
|
34
|
+
patch_protected_dropped: "patch_protected_dropped";
|
|
35
|
+
preview_build_failed: "preview_build_failed";
|
|
36
|
+
preview_runtime_degraded: "preview_runtime_degraded";
|
|
37
|
+
external_blocked: "external_blocked";
|
|
38
|
+
cms_reconcile_failed: "cms_reconcile_failed";
|
|
39
|
+
run_expired: "run_expired";
|
|
40
|
+
sandbox_unavailable: "sandbox_unavailable";
|
|
41
|
+
}>;
|
|
42
|
+
export type ExternalSiteEditDegradedReason = z.infer<typeof ExternalSiteEditDegradedReasonSchema>;
|
|
43
|
+
/** 映射到可重试失败而非降级的原因。判定时优先于快照比对。 */
|
|
44
|
+
export declare const EXTERNAL_SITE_EDIT_INFRASTRUCTURE_REASONS: readonly ExternalSiteEditDegradedReason[];
|
|
45
|
+
export declare function isExternalSiteEditInfrastructureReason(reason: ExternalSiteEditDegradedReason | null | undefined): boolean;
|
|
46
|
+
export declare const ExternalSiteEditCallbackStatusSchema: z.ZodEnum<{
|
|
47
|
+
failed: "failed";
|
|
48
|
+
pending: "pending";
|
|
49
|
+
delivered: "delivered";
|
|
50
|
+
}>;
|
|
51
|
+
export type ExternalSiteEditCallbackStatus = z.infer<typeof ExternalSiteEditCallbackStatusSchema>;
|
|
52
|
+
/** 任务状态:进行中,或四态终态之一。 */
|
|
53
|
+
export declare const ExternalSiteEditTaskStatusSchema: z.ZodEnum<{
|
|
54
|
+
failed: "failed";
|
|
55
|
+
succeeded: "succeeded";
|
|
56
|
+
running: "running";
|
|
57
|
+
degraded: "degraded";
|
|
58
|
+
no_changes: "no_changes";
|
|
59
|
+
}>;
|
|
60
|
+
export type ExternalSiteEditTaskStatus = z.infer<typeof ExternalSiteEditTaskStatusSchema>;
|
|
61
|
+
export declare const CreateExternalSiteEditRequestSchema: z.ZodObject<{
|
|
62
|
+
site_id: z.ZodUUID;
|
|
63
|
+
external_run_id: z.ZodString;
|
|
64
|
+
external_thread_id: z.ZodString;
|
|
65
|
+
prompt: z.ZodString;
|
|
66
|
+
}, z.core.$strict>;
|
|
67
|
+
export type CreateExternalSiteEditRequest = z.infer<typeof CreateExternalSiteEditRequestSchema>;
|
|
68
|
+
/**
|
|
69
|
+
* 任务描述符。提交接口与查询接口共用。
|
|
70
|
+
*
|
|
71
|
+
* `preview_url` 是沙箱临时地址:随沙箱回收失效、且无需凭据即可访问,
|
|
72
|
+
* 调用方不得持久化展示或公开投放(设计 §12.2)。
|
|
73
|
+
*/
|
|
74
|
+
export declare const ExternalSiteEditTaskSchema: z.ZodObject<{
|
|
75
|
+
id: z.ZodUUID;
|
|
76
|
+
site_id: z.ZodUUID;
|
|
77
|
+
external_run_id: z.ZodString;
|
|
78
|
+
external_thread_id: z.ZodString;
|
|
79
|
+
status: z.ZodEnum<{
|
|
80
|
+
failed: "failed";
|
|
81
|
+
succeeded: "succeeded";
|
|
82
|
+
running: "running";
|
|
83
|
+
degraded: "degraded";
|
|
84
|
+
no_changes: "no_changes";
|
|
85
|
+
}>;
|
|
86
|
+
outcome: z.ZodNullable<z.ZodEnum<{
|
|
87
|
+
failed: "failed";
|
|
88
|
+
succeeded: "succeeded";
|
|
89
|
+
degraded: "degraded";
|
|
90
|
+
no_changes: "no_changes";
|
|
91
|
+
}>>;
|
|
92
|
+
degraded_reason: z.ZodNullable<z.ZodEnum<{
|
|
93
|
+
typecheck_unresolved: "typecheck_unresolved";
|
|
94
|
+
step_cap_reached: "step_cap_reached";
|
|
95
|
+
partial_apply_gave_up: "partial_apply_gave_up";
|
|
96
|
+
patch_protected_dropped: "patch_protected_dropped";
|
|
97
|
+
preview_build_failed: "preview_build_failed";
|
|
98
|
+
preview_runtime_degraded: "preview_runtime_degraded";
|
|
99
|
+
external_blocked: "external_blocked";
|
|
100
|
+
cms_reconcile_failed: "cms_reconcile_failed";
|
|
101
|
+
run_expired: "run_expired";
|
|
102
|
+
sandbox_unavailable: "sandbox_unavailable";
|
|
103
|
+
}>>;
|
|
104
|
+
vcp_run_id: z.ZodNullable<z.ZodUUID>;
|
|
105
|
+
base_snapshot_id: z.ZodUUID;
|
|
106
|
+
snapshot_id: z.ZodNullable<z.ZodUUID>;
|
|
107
|
+
preview_url: z.ZodNullable<z.ZodString>;
|
|
108
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
109
|
+
error_code: z.ZodNullable<z.ZodString>;
|
|
110
|
+
callback_status: z.ZodEnum<{
|
|
111
|
+
failed: "failed";
|
|
112
|
+
pending: "pending";
|
|
113
|
+
delivered: "delivered";
|
|
114
|
+
}>;
|
|
115
|
+
created_at: z.ZodString;
|
|
116
|
+
started_at: z.ZodNullable<z.ZodString>;
|
|
117
|
+
finished_at: z.ZodNullable<z.ZodString>;
|
|
118
|
+
}, z.core.$strict>;
|
|
119
|
+
export type ExternalSiteEditTask = z.infer<typeof ExternalSiteEditTaskSchema>;
|
|
120
|
+
export declare const CreateExternalSiteEditResponseSchema: z.ZodObject<{
|
|
121
|
+
task: z.ZodObject<{
|
|
122
|
+
id: z.ZodUUID;
|
|
123
|
+
site_id: z.ZodUUID;
|
|
124
|
+
external_run_id: z.ZodString;
|
|
125
|
+
external_thread_id: z.ZodString;
|
|
126
|
+
status: z.ZodEnum<{
|
|
127
|
+
failed: "failed";
|
|
128
|
+
succeeded: "succeeded";
|
|
129
|
+
running: "running";
|
|
130
|
+
degraded: "degraded";
|
|
131
|
+
no_changes: "no_changes";
|
|
132
|
+
}>;
|
|
133
|
+
outcome: z.ZodNullable<z.ZodEnum<{
|
|
134
|
+
failed: "failed";
|
|
135
|
+
succeeded: "succeeded";
|
|
136
|
+
degraded: "degraded";
|
|
137
|
+
no_changes: "no_changes";
|
|
138
|
+
}>>;
|
|
139
|
+
degraded_reason: z.ZodNullable<z.ZodEnum<{
|
|
140
|
+
typecheck_unresolved: "typecheck_unresolved";
|
|
141
|
+
step_cap_reached: "step_cap_reached";
|
|
142
|
+
partial_apply_gave_up: "partial_apply_gave_up";
|
|
143
|
+
patch_protected_dropped: "patch_protected_dropped";
|
|
144
|
+
preview_build_failed: "preview_build_failed";
|
|
145
|
+
preview_runtime_degraded: "preview_runtime_degraded";
|
|
146
|
+
external_blocked: "external_blocked";
|
|
147
|
+
cms_reconcile_failed: "cms_reconcile_failed";
|
|
148
|
+
run_expired: "run_expired";
|
|
149
|
+
sandbox_unavailable: "sandbox_unavailable";
|
|
150
|
+
}>>;
|
|
151
|
+
vcp_run_id: z.ZodNullable<z.ZodUUID>;
|
|
152
|
+
base_snapshot_id: z.ZodUUID;
|
|
153
|
+
snapshot_id: z.ZodNullable<z.ZodUUID>;
|
|
154
|
+
preview_url: z.ZodNullable<z.ZodString>;
|
|
155
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
156
|
+
error_code: z.ZodNullable<z.ZodString>;
|
|
157
|
+
callback_status: z.ZodEnum<{
|
|
158
|
+
failed: "failed";
|
|
159
|
+
pending: "pending";
|
|
160
|
+
delivered: "delivered";
|
|
161
|
+
}>;
|
|
162
|
+
created_at: z.ZodString;
|
|
163
|
+
started_at: z.ZodNullable<z.ZodString>;
|
|
164
|
+
finished_at: z.ZodNullable<z.ZodString>;
|
|
165
|
+
}, z.core.$strict>;
|
|
166
|
+
}, z.core.$strict>;
|
|
167
|
+
export type CreateExternalSiteEditResponse = z.infer<typeof CreateExternalSiteEditResponseSchema>;
|
|
168
|
+
export declare const GetExternalSiteEditResponseSchema: z.ZodObject<{
|
|
169
|
+
task: z.ZodObject<{
|
|
170
|
+
id: z.ZodUUID;
|
|
171
|
+
site_id: z.ZodUUID;
|
|
172
|
+
external_run_id: z.ZodString;
|
|
173
|
+
external_thread_id: z.ZodString;
|
|
174
|
+
status: z.ZodEnum<{
|
|
175
|
+
failed: "failed";
|
|
176
|
+
succeeded: "succeeded";
|
|
177
|
+
running: "running";
|
|
178
|
+
degraded: "degraded";
|
|
179
|
+
no_changes: "no_changes";
|
|
180
|
+
}>;
|
|
181
|
+
outcome: z.ZodNullable<z.ZodEnum<{
|
|
182
|
+
failed: "failed";
|
|
183
|
+
succeeded: "succeeded";
|
|
184
|
+
degraded: "degraded";
|
|
185
|
+
no_changes: "no_changes";
|
|
186
|
+
}>>;
|
|
187
|
+
degraded_reason: z.ZodNullable<z.ZodEnum<{
|
|
188
|
+
typecheck_unresolved: "typecheck_unresolved";
|
|
189
|
+
step_cap_reached: "step_cap_reached";
|
|
190
|
+
partial_apply_gave_up: "partial_apply_gave_up";
|
|
191
|
+
patch_protected_dropped: "patch_protected_dropped";
|
|
192
|
+
preview_build_failed: "preview_build_failed";
|
|
193
|
+
preview_runtime_degraded: "preview_runtime_degraded";
|
|
194
|
+
external_blocked: "external_blocked";
|
|
195
|
+
cms_reconcile_failed: "cms_reconcile_failed";
|
|
196
|
+
run_expired: "run_expired";
|
|
197
|
+
sandbox_unavailable: "sandbox_unavailable";
|
|
198
|
+
}>>;
|
|
199
|
+
vcp_run_id: z.ZodNullable<z.ZodUUID>;
|
|
200
|
+
base_snapshot_id: z.ZodUUID;
|
|
201
|
+
snapshot_id: z.ZodNullable<z.ZodUUID>;
|
|
202
|
+
preview_url: z.ZodNullable<z.ZodString>;
|
|
203
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
204
|
+
error_code: z.ZodNullable<z.ZodString>;
|
|
205
|
+
callback_status: z.ZodEnum<{
|
|
206
|
+
failed: "failed";
|
|
207
|
+
pending: "pending";
|
|
208
|
+
delivered: "delivered";
|
|
209
|
+
}>;
|
|
210
|
+
created_at: z.ZodString;
|
|
211
|
+
started_at: z.ZodNullable<z.ZodString>;
|
|
212
|
+
finished_at: z.ZodNullable<z.ZodString>;
|
|
213
|
+
}, z.core.$strict>;
|
|
214
|
+
}, z.core.$strict>;
|
|
215
|
+
export type GetExternalSiteEditResponse = z.infer<typeof GetExternalSiteEditResponseSchema>;
|
|
216
|
+
/**
|
|
217
|
+
* 回调载荷。**投递语义是至少一次**:回调重试与查询接口的对账补发都可能发出同一条,
|
|
218
|
+
* 接收端必须按 task_id 幂等去重(设计 §12.1)。
|
|
219
|
+
*
|
|
220
|
+
* 安全边界:不带诊断详情、不带内部路径、不带原始追踪。`summary` 是模型自由文本,
|
|
221
|
+
* 发送前须过出站检查。
|
|
222
|
+
*/
|
|
223
|
+
export declare const ExternalSiteEditCallbackPayloadSchema: z.ZodObject<{
|
|
224
|
+
task_id: z.ZodUUID;
|
|
225
|
+
external_run_id: z.ZodString;
|
|
226
|
+
external_thread_id: z.ZodString;
|
|
227
|
+
site_id: z.ZodUUID;
|
|
228
|
+
vcp_run_id: z.ZodNullable<z.ZodUUID>;
|
|
229
|
+
outcome: z.ZodEnum<{
|
|
230
|
+
failed: "failed";
|
|
231
|
+
succeeded: "succeeded";
|
|
232
|
+
degraded: "degraded";
|
|
233
|
+
no_changes: "no_changes";
|
|
234
|
+
}>;
|
|
235
|
+
degraded_reason: z.ZodNullable<z.ZodEnum<{
|
|
236
|
+
typecheck_unresolved: "typecheck_unresolved";
|
|
237
|
+
step_cap_reached: "step_cap_reached";
|
|
238
|
+
partial_apply_gave_up: "partial_apply_gave_up";
|
|
239
|
+
patch_protected_dropped: "patch_protected_dropped";
|
|
240
|
+
preview_build_failed: "preview_build_failed";
|
|
241
|
+
preview_runtime_degraded: "preview_runtime_degraded";
|
|
242
|
+
external_blocked: "external_blocked";
|
|
243
|
+
cms_reconcile_failed: "cms_reconcile_failed";
|
|
244
|
+
run_expired: "run_expired";
|
|
245
|
+
sandbox_unavailable: "sandbox_unavailable";
|
|
246
|
+
}>>;
|
|
247
|
+
snapshot_id: z.ZodNullable<z.ZodUUID>;
|
|
248
|
+
preview_url: z.ZodNullable<z.ZodString>;
|
|
249
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
250
|
+
error_code: z.ZodNullable<z.ZodString>;
|
|
251
|
+
retryable: z.ZodBoolean;
|
|
252
|
+
finished_at: z.ZodString;
|
|
253
|
+
}, z.core.$strict>;
|
|
254
|
+
export type ExternalSiteEditCallbackPayload = z.infer<typeof ExternalSiteEditCallbackPayloadSchema>;
|
|
255
|
+
export declare const ExternalSiteEditCallbackAckSchema: z.ZodObject<{
|
|
256
|
+
received: z.ZodLiteral<true>;
|
|
257
|
+
}, z.core.$strict>;
|
|
258
|
+
export type ExternalSiteEditCallbackAck = z.infer<typeof ExternalSiteEditCallbackAckSchema>;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const FirecrawlJobStatusSchema: z.ZodEnum<{
|
|
3
|
+
failed: "failed";
|
|
4
|
+
scraping: "scraping";
|
|
5
|
+
completed: "completed";
|
|
6
|
+
expired: "expired";
|
|
7
|
+
}>;
|
|
8
|
+
export declare const FirecrawlMapRequestSchema: z.ZodObject<{
|
|
9
|
+
url: z.ZodString;
|
|
10
|
+
ignore_cache: z.ZodBoolean;
|
|
11
|
+
sitemap: z.ZodEnum<{
|
|
12
|
+
include: "include";
|
|
13
|
+
skip: "skip";
|
|
14
|
+
}>;
|
|
15
|
+
include_subdomains: z.ZodBoolean;
|
|
16
|
+
ignore_query_parameters: z.ZodBoolean;
|
|
17
|
+
limit: z.ZodNumber;
|
|
18
|
+
}, z.core.$strict>;
|
|
19
|
+
export declare const FirecrawlMapResponseSchema: z.ZodObject<{
|
|
20
|
+
links: z.ZodArray<z.ZodString>;
|
|
21
|
+
}, z.core.$strict>;
|
|
22
|
+
export declare const FirecrawlCrawlCreateRequestSchema: z.ZodObject<{
|
|
23
|
+
url: z.ZodString;
|
|
24
|
+
limit: z.ZodNumber;
|
|
25
|
+
max_discovery_depth: z.ZodLiteral<1>;
|
|
26
|
+
crawl_entire_domain: z.ZodLiteral<false>;
|
|
27
|
+
sitemap: z.ZodLiteral<"skip">;
|
|
28
|
+
}, z.core.$strict>;
|
|
29
|
+
export declare const FirecrawlCrawlCreatedResponseSchema: z.ZodObject<{
|
|
30
|
+
crawl_id: z.ZodString;
|
|
31
|
+
expires_at: z.ZodOptional<z.ZodString>;
|
|
32
|
+
}, z.core.$strict>;
|
|
33
|
+
export declare const FirecrawlCrawlStatusResponseSchema: z.ZodObject<{
|
|
34
|
+
status: z.ZodEnum<{
|
|
35
|
+
failed: "failed";
|
|
36
|
+
scraping: "scraping";
|
|
37
|
+
completed: "completed";
|
|
38
|
+
expired: "expired";
|
|
39
|
+
}>;
|
|
40
|
+
urls: z.ZodArray<z.ZodString>;
|
|
41
|
+
next: z.ZodOptional<z.ZodString>;
|
|
42
|
+
expires_at: z.ZodString;
|
|
43
|
+
}, z.core.$strict>;
|
|
44
|
+
export declare const FirecrawlBatchCreateRequestSchema: z.ZodObject<{
|
|
45
|
+
urls: z.ZodArray<z.ZodString>;
|
|
46
|
+
formats: z.ZodTuple<[z.ZodLiteral<"rawHtml">], null>;
|
|
47
|
+
ignore_invalid_urls: z.ZodLiteral<false>;
|
|
48
|
+
max_age: z.ZodNumber;
|
|
49
|
+
max_concurrency: z.ZodOptional<z.ZodNumber>;
|
|
50
|
+
}, z.core.$strict>;
|
|
51
|
+
export declare const FirecrawlBatchCreatedResponseSchema: z.ZodObject<{
|
|
52
|
+
batch_id: z.ZodString;
|
|
53
|
+
expires_at: z.ZodOptional<z.ZodString>;
|
|
54
|
+
}, z.core.$strict>;
|
|
55
|
+
export declare const FirecrawlBatchPageSchema: z.ZodObject<{
|
|
56
|
+
url: z.ZodString;
|
|
57
|
+
raw_html: z.ZodString;
|
|
58
|
+
}, z.core.$strict>;
|
|
59
|
+
export declare const FirecrawlBatchStatusResponseSchema: z.ZodObject<{
|
|
60
|
+
status: z.ZodEnum<{
|
|
61
|
+
failed: "failed";
|
|
62
|
+
scraping: "scraping";
|
|
63
|
+
completed: "completed";
|
|
64
|
+
expired: "expired";
|
|
65
|
+
}>;
|
|
66
|
+
total: z.ZodNumber;
|
|
67
|
+
completed: z.ZodNumber;
|
|
68
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
69
|
+
url: z.ZodString;
|
|
70
|
+
raw_html: z.ZodString;
|
|
71
|
+
}, z.core.$strict>>;
|
|
72
|
+
next: z.ZodOptional<z.ZodString>;
|
|
73
|
+
expires_at: z.ZodString;
|
|
74
|
+
}, z.core.$strict>;
|
|
75
|
+
export declare const FirecrawlBatchErrorSchema: z.ZodObject<{
|
|
76
|
+
url: z.ZodString;
|
|
77
|
+
error_message: z.ZodString;
|
|
78
|
+
}, z.core.$strict>;
|
|
79
|
+
export declare const FirecrawlBatchErrorsResponseSchema: z.ZodObject<{
|
|
80
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
81
|
+
url: z.ZodString;
|
|
82
|
+
error_message: z.ZodString;
|
|
83
|
+
}, z.core.$strict>>;
|
|
84
|
+
robots_blocked: z.ZodArray<z.ZodString>;
|
|
85
|
+
}, z.core.$strict>;
|
|
86
|
+
export declare const FirecrawlQueueStatusResponseSchema: z.ZodObject<{
|
|
87
|
+
active: z.ZodNumber;
|
|
88
|
+
waiting: z.ZodNumber;
|
|
89
|
+
max_concurrency: z.ZodNumber;
|
|
90
|
+
}, z.core.$strict>;
|
|
91
|
+
export type FirecrawlJobStatus = z.infer<typeof FirecrawlJobStatusSchema>;
|
|
92
|
+
export type FirecrawlMapRequest = z.infer<typeof FirecrawlMapRequestSchema>;
|
|
93
|
+
export type FirecrawlMapResponse = z.infer<typeof FirecrawlMapResponseSchema>;
|
|
94
|
+
export type FirecrawlCrawlCreateRequest = z.infer<typeof FirecrawlCrawlCreateRequestSchema>;
|
|
95
|
+
export type FirecrawlCrawlCreatedResponse = z.infer<typeof FirecrawlCrawlCreatedResponseSchema>;
|
|
96
|
+
export type FirecrawlCrawlStatusResponse = z.infer<typeof FirecrawlCrawlStatusResponseSchema>;
|
|
97
|
+
export type FirecrawlBatchCreateRequest = z.infer<typeof FirecrawlBatchCreateRequestSchema>;
|
|
98
|
+
export type FirecrawlBatchCreatedResponse = z.infer<typeof FirecrawlBatchCreatedResponseSchema>;
|
|
99
|
+
export type FirecrawlBatchPage = z.infer<typeof FirecrawlBatchPageSchema>;
|
|
100
|
+
export type FirecrawlBatchStatusResponse = z.infer<typeof FirecrawlBatchStatusResponseSchema>;
|
|
101
|
+
export type FirecrawlBatchError = z.infer<typeof FirecrawlBatchErrorSchema>;
|
|
102
|
+
export type FirecrawlBatchErrorsResponse = z.infer<typeof FirecrawlBatchErrorsResponseSchema>;
|
|
103
|
+
export type FirecrawlQueueStatusResponse = z.infer<typeof FirecrawlQueueStatusResponseSchema>;
|