@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
|
@@ -0,0 +1,1006 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const WORKFLOW_FLOW_TYPES: readonly ["with_website", "without_website"];
|
|
3
|
+
export declare const WorkflowFlowTypeSchema: z.ZodEnum<{
|
|
4
|
+
with_website: "with_website";
|
|
5
|
+
without_website: "without_website";
|
|
6
|
+
}>;
|
|
7
|
+
export type WorkflowFlowType = z.infer<typeof WorkflowFlowTypeSchema>;
|
|
8
|
+
/** URLs that may be handed to a server-side website crawler. */
|
|
9
|
+
export declare const HttpUrlSchema: z.ZodString;
|
|
10
|
+
export type HttpUrl = z.infer<typeof HttpUrlSchema>;
|
|
11
|
+
export declare const WORKFLOW_NODE_CODES: readonly ["welcome", "website_scan", "customer_materials", "analysis", "diagnosis", "strategy", "site_build", "customer_conversion", "growth_loop", "growth_dashboard", "stage_goal"];
|
|
12
|
+
export declare const WorkflowNodeCodeSchema: z.ZodEnum<{
|
|
13
|
+
welcome: "welcome";
|
|
14
|
+
website_scan: "website_scan";
|
|
15
|
+
customer_materials: "customer_materials";
|
|
16
|
+
analysis: "analysis";
|
|
17
|
+
diagnosis: "diagnosis";
|
|
18
|
+
strategy: "strategy";
|
|
19
|
+
site_build: "site_build";
|
|
20
|
+
customer_conversion: "customer_conversion";
|
|
21
|
+
growth_loop: "growth_loop";
|
|
22
|
+
growth_dashboard: "growth_dashboard";
|
|
23
|
+
stage_goal: "stage_goal";
|
|
24
|
+
}>;
|
|
25
|
+
export type WorkflowNodeCode = z.infer<typeof WorkflowNodeCodeSchema>;
|
|
26
|
+
export declare const WORKFLOW_TASK_TYPES: readonly ["company_info", "website_crawl", "website_basic_info_extract", "website_metrics_evaluate", "intelligent_analysis", "strategy_recommendation"];
|
|
27
|
+
export declare const WorkflowTaskTypeSchema: z.ZodEnum<{
|
|
28
|
+
company_info: "company_info";
|
|
29
|
+
website_crawl: "website_crawl";
|
|
30
|
+
website_basic_info_extract: "website_basic_info_extract";
|
|
31
|
+
website_metrics_evaluate: "website_metrics_evaluate";
|
|
32
|
+
intelligent_analysis: "intelligent_analysis";
|
|
33
|
+
strategy_recommendation: "strategy_recommendation";
|
|
34
|
+
}>;
|
|
35
|
+
export type WorkflowTaskType = z.infer<typeof WorkflowTaskTypeSchema>;
|
|
36
|
+
export declare const TASK_EXECUTION_STATUSES: readonly ["started", "running", "succeeded", "failed", "invalidated"];
|
|
37
|
+
export declare const TaskExecutionStatusSchema: z.ZodEnum<{
|
|
38
|
+
failed: "failed";
|
|
39
|
+
succeeded: "succeeded";
|
|
40
|
+
running: "running";
|
|
41
|
+
started: "started";
|
|
42
|
+
invalidated: "invalidated";
|
|
43
|
+
}>;
|
|
44
|
+
export type TaskExecutionStatus = z.infer<typeof TaskExecutionStatusSchema>;
|
|
45
|
+
export declare const SITE_BUILD_STATUSES: readonly ["draft", "structure_saved", "generating", "workspace_ready"];
|
|
46
|
+
export declare const SiteBuildStatusSchema: z.ZodEnum<{
|
|
47
|
+
draft: "draft";
|
|
48
|
+
structure_saved: "structure_saved";
|
|
49
|
+
generating: "generating";
|
|
50
|
+
workspace_ready: "workspace_ready";
|
|
51
|
+
}>;
|
|
52
|
+
export type SiteBuildStatus = z.infer<typeof SiteBuildStatusSchema>;
|
|
53
|
+
export declare const SITE_DEPLOYMENT_STATUSES: readonly ["not_deployed", "deploying", "deployed"];
|
|
54
|
+
export declare const SiteDeploymentStatusSchema: z.ZodEnum<{
|
|
55
|
+
deploying: "deploying";
|
|
56
|
+
not_deployed: "not_deployed";
|
|
57
|
+
deployed: "deployed";
|
|
58
|
+
}>;
|
|
59
|
+
export type SiteDeploymentStatus = z.infer<typeof SiteDeploymentStatusSchema>;
|
|
60
|
+
export declare const SITE_WORKFLOW_STATUSES: readonly ["active", "completed"];
|
|
61
|
+
export declare const SiteWorkflowStatusSchema: z.ZodEnum<{
|
|
62
|
+
active: "active";
|
|
63
|
+
completed: "completed";
|
|
64
|
+
}>;
|
|
65
|
+
export type SiteWorkflowStatus = z.infer<typeof SiteWorkflowStatusSchema>;
|
|
66
|
+
export declare const WORKFLOW_MENU_STATES: readonly ["completed", "current", "locked"];
|
|
67
|
+
export declare const WorkflowMenuStateSchema: z.ZodEnum<{
|
|
68
|
+
completed: "completed";
|
|
69
|
+
current: "current";
|
|
70
|
+
locked: "locked";
|
|
71
|
+
}>;
|
|
72
|
+
export type WorkflowMenuState = z.infer<typeof WorkflowMenuStateSchema>;
|
|
73
|
+
export declare const SITE_BUILD_STATUS_CODES: {
|
|
74
|
+
readonly draft: 10;
|
|
75
|
+
readonly structure_saved: 20;
|
|
76
|
+
readonly generating: 30;
|
|
77
|
+
readonly workspace_ready: 40;
|
|
78
|
+
};
|
|
79
|
+
export declare const SITE_DEPLOYMENT_STATUS_CODES: {
|
|
80
|
+
readonly not_deployed: 10;
|
|
81
|
+
readonly deploying: 20;
|
|
82
|
+
readonly deployed: 30;
|
|
83
|
+
};
|
|
84
|
+
export declare const SITE_WORKFLOW_STATUS_CODES: {
|
|
85
|
+
readonly active: 10;
|
|
86
|
+
readonly completed: 20;
|
|
87
|
+
};
|
|
88
|
+
export declare const TASK_EXECUTION_STATUS_CODES: {
|
|
89
|
+
readonly started: 10;
|
|
90
|
+
readonly running: 20;
|
|
91
|
+
readonly succeeded: 30;
|
|
92
|
+
readonly failed: 40;
|
|
93
|
+
readonly invalidated: 50;
|
|
94
|
+
};
|
|
95
|
+
export declare function siteBuildStatusFromCode(code: number): SiteBuildStatus;
|
|
96
|
+
export declare function siteDeploymentStatusFromCode(code: number): SiteDeploymentStatus;
|
|
97
|
+
export declare function siteWorkflowStatusFromCode(code: number): SiteWorkflowStatus;
|
|
98
|
+
export declare function taskExecutionStatusFromCode(code: number): TaskExecutionStatus;
|
|
99
|
+
export declare function siteBuildStatusToCode(status: SiteBuildStatus): number;
|
|
100
|
+
export declare function siteDeploymentStatusToCode(status: SiteDeploymentStatus): number;
|
|
101
|
+
export declare function siteWorkflowStatusToCode(status: SiteWorkflowStatus): number;
|
|
102
|
+
export declare function taskExecutionStatusToCode(status: TaskExecutionStatus): number;
|
|
103
|
+
export declare const WORKFLOW_DEFINITIONS_V1: {
|
|
104
|
+
readonly with_website: readonly [{
|
|
105
|
+
readonly node_code: "welcome";
|
|
106
|
+
readonly label: "欢迎启动";
|
|
107
|
+
readonly sort_order: 1;
|
|
108
|
+
}, {
|
|
109
|
+
readonly node_code: "website_scan";
|
|
110
|
+
readonly label: "初始化需求与官网扫描";
|
|
111
|
+
readonly sort_order: 2;
|
|
112
|
+
}, {
|
|
113
|
+
readonly node_code: "analysis";
|
|
114
|
+
readonly label: "智能分析";
|
|
115
|
+
readonly sort_order: 3;
|
|
116
|
+
}, {
|
|
117
|
+
readonly node_code: "diagnosis";
|
|
118
|
+
readonly label: "诊断报告";
|
|
119
|
+
readonly sort_order: 4;
|
|
120
|
+
}, {
|
|
121
|
+
readonly node_code: "strategy";
|
|
122
|
+
readonly label: "策略与建议";
|
|
123
|
+
readonly sort_order: 5;
|
|
124
|
+
}, {
|
|
125
|
+
readonly node_code: "site_build";
|
|
126
|
+
readonly label: "建站";
|
|
127
|
+
readonly sort_order: 6;
|
|
128
|
+
}, {
|
|
129
|
+
readonly node_code: "customer_conversion";
|
|
130
|
+
readonly label: "客户转化";
|
|
131
|
+
readonly sort_order: 7;
|
|
132
|
+
}, {
|
|
133
|
+
readonly node_code: "growth_loop";
|
|
134
|
+
readonly label: "增长闭环";
|
|
135
|
+
readonly sort_order: 8;
|
|
136
|
+
}, {
|
|
137
|
+
readonly node_code: "growth_dashboard";
|
|
138
|
+
readonly label: "增长大盘";
|
|
139
|
+
readonly sort_order: 9;
|
|
140
|
+
}, {
|
|
141
|
+
readonly node_code: "stage_goal";
|
|
142
|
+
readonly label: "阶段运营目标";
|
|
143
|
+
readonly sort_order: 10;
|
|
144
|
+
}];
|
|
145
|
+
readonly without_website: readonly [{
|
|
146
|
+
readonly node_code: "welcome";
|
|
147
|
+
readonly label: "欢迎启动";
|
|
148
|
+
readonly sort_order: 1;
|
|
149
|
+
}, {
|
|
150
|
+
readonly node_code: "customer_materials";
|
|
151
|
+
readonly label: "客户资料提供";
|
|
152
|
+
readonly sort_order: 2;
|
|
153
|
+
}, {
|
|
154
|
+
readonly node_code: "analysis";
|
|
155
|
+
readonly label: "智能分析";
|
|
156
|
+
readonly sort_order: 3;
|
|
157
|
+
}, {
|
|
158
|
+
readonly node_code: "strategy";
|
|
159
|
+
readonly label: "策略与建议";
|
|
160
|
+
readonly sort_order: 4;
|
|
161
|
+
}, {
|
|
162
|
+
readonly node_code: "site_build";
|
|
163
|
+
readonly label: "建站";
|
|
164
|
+
readonly sort_order: 5;
|
|
165
|
+
}, {
|
|
166
|
+
readonly node_code: "customer_conversion";
|
|
167
|
+
readonly label: "客户转化";
|
|
168
|
+
readonly sort_order: 6;
|
|
169
|
+
}, {
|
|
170
|
+
readonly node_code: "growth_loop";
|
|
171
|
+
readonly label: "增长闭环";
|
|
172
|
+
readonly sort_order: 7;
|
|
173
|
+
}, {
|
|
174
|
+
readonly node_code: "growth_dashboard";
|
|
175
|
+
readonly label: "增长大盘";
|
|
176
|
+
readonly sort_order: 8;
|
|
177
|
+
}, {
|
|
178
|
+
readonly node_code: "stage_goal";
|
|
179
|
+
readonly label: "阶段运营目标";
|
|
180
|
+
readonly sort_order: 9;
|
|
181
|
+
}];
|
|
182
|
+
};
|
|
183
|
+
export declare const WorkflowDefinitionVersionSchema: z.ZodNumber;
|
|
184
|
+
export declare const WorkflowMenuItemSchema: z.ZodObject<{
|
|
185
|
+
id: z.ZodUUID;
|
|
186
|
+
flow_type: z.ZodEnum<{
|
|
187
|
+
with_website: "with_website";
|
|
188
|
+
without_website: "without_website";
|
|
189
|
+
}>;
|
|
190
|
+
definition_version: z.ZodNumber;
|
|
191
|
+
node_code: z.ZodEnum<{
|
|
192
|
+
welcome: "welcome";
|
|
193
|
+
website_scan: "website_scan";
|
|
194
|
+
customer_materials: "customer_materials";
|
|
195
|
+
analysis: "analysis";
|
|
196
|
+
diagnosis: "diagnosis";
|
|
197
|
+
strategy: "strategy";
|
|
198
|
+
site_build: "site_build";
|
|
199
|
+
customer_conversion: "customer_conversion";
|
|
200
|
+
growth_loop: "growth_loop";
|
|
201
|
+
growth_dashboard: "growth_dashboard";
|
|
202
|
+
stage_goal: "stage_goal";
|
|
203
|
+
}>;
|
|
204
|
+
label: z.ZodString;
|
|
205
|
+
sort_order: z.ZodNumber;
|
|
206
|
+
is_enabled: z.ZodBoolean;
|
|
207
|
+
state: z.ZodEnum<{
|
|
208
|
+
completed: "completed";
|
|
209
|
+
current: "current";
|
|
210
|
+
locked: "locked";
|
|
211
|
+
}>;
|
|
212
|
+
}, z.core.$strip>;
|
|
213
|
+
export type WorkflowMenuItem = z.infer<typeof WorkflowMenuItemSchema>;
|
|
214
|
+
export declare const SiteWorkflowTaskRefSchema: z.ZodObject<{
|
|
215
|
+
id: z.ZodUUID;
|
|
216
|
+
tenant_id: z.ZodString;
|
|
217
|
+
site_id: z.ZodUUID;
|
|
218
|
+
workflow_id: z.ZodUUID;
|
|
219
|
+
node_code: z.ZodEnum<{
|
|
220
|
+
welcome: "welcome";
|
|
221
|
+
website_scan: "website_scan";
|
|
222
|
+
customer_materials: "customer_materials";
|
|
223
|
+
analysis: "analysis";
|
|
224
|
+
diagnosis: "diagnosis";
|
|
225
|
+
strategy: "strategy";
|
|
226
|
+
site_build: "site_build";
|
|
227
|
+
customer_conversion: "customer_conversion";
|
|
228
|
+
growth_loop: "growth_loop";
|
|
229
|
+
growth_dashboard: "growth_dashboard";
|
|
230
|
+
stage_goal: "stage_goal";
|
|
231
|
+
}>;
|
|
232
|
+
task_type: z.ZodEnum<{
|
|
233
|
+
company_info: "company_info";
|
|
234
|
+
website_crawl: "website_crawl";
|
|
235
|
+
website_basic_info_extract: "website_basic_info_extract";
|
|
236
|
+
website_metrics_evaluate: "website_metrics_evaluate";
|
|
237
|
+
intelligent_analysis: "intelligent_analysis";
|
|
238
|
+
strategy_recommendation: "strategy_recommendation";
|
|
239
|
+
}>;
|
|
240
|
+
external_task_id: z.ZodString;
|
|
241
|
+
execution_status: z.ZodEnum<{
|
|
242
|
+
failed: "failed";
|
|
243
|
+
succeeded: "succeeded";
|
|
244
|
+
running: "running";
|
|
245
|
+
started: "started";
|
|
246
|
+
invalidated: "invalidated";
|
|
247
|
+
}>;
|
|
248
|
+
idempotency_key: z.ZodString;
|
|
249
|
+
attempt_no: z.ZodNumber;
|
|
250
|
+
superseded_at: z.ZodNullable<z.ZodString>;
|
|
251
|
+
created_at: z.ZodString;
|
|
252
|
+
updated_at: z.ZodString;
|
|
253
|
+
}, z.core.$strip>;
|
|
254
|
+
export type SiteWorkflowTaskRef = z.infer<typeof SiteWorkflowTaskRefSchema>;
|
|
255
|
+
export declare const SiteWorkflowRecordSchema: z.ZodObject<{
|
|
256
|
+
id: z.ZodUUID;
|
|
257
|
+
tenant_id: z.ZodString;
|
|
258
|
+
site_id: z.ZodUUID;
|
|
259
|
+
flow_type: z.ZodEnum<{
|
|
260
|
+
with_website: "with_website";
|
|
261
|
+
without_website: "without_website";
|
|
262
|
+
}>;
|
|
263
|
+
website: z.ZodNullable<z.ZodString>;
|
|
264
|
+
definition_version: z.ZodNumber;
|
|
265
|
+
current_node_code: z.ZodEnum<{
|
|
266
|
+
welcome: "welcome";
|
|
267
|
+
website_scan: "website_scan";
|
|
268
|
+
customer_materials: "customer_materials";
|
|
269
|
+
analysis: "analysis";
|
|
270
|
+
diagnosis: "diagnosis";
|
|
271
|
+
strategy: "strategy";
|
|
272
|
+
site_build: "site_build";
|
|
273
|
+
customer_conversion: "customer_conversion";
|
|
274
|
+
growth_loop: "growth_loop";
|
|
275
|
+
growth_dashboard: "growth_dashboard";
|
|
276
|
+
stage_goal: "stage_goal";
|
|
277
|
+
}>;
|
|
278
|
+
status: z.ZodEnum<{
|
|
279
|
+
active: "active";
|
|
280
|
+
completed: "completed";
|
|
281
|
+
}>;
|
|
282
|
+
started_at: z.ZodString;
|
|
283
|
+
completed_at: z.ZodNullable<z.ZodString>;
|
|
284
|
+
created_at: z.ZodString;
|
|
285
|
+
updated_at: z.ZodString;
|
|
286
|
+
}, z.core.$strip>;
|
|
287
|
+
export type SiteWorkflowRecord = z.infer<typeof SiteWorkflowRecordSchema>;
|
|
288
|
+
export declare const SiteWorkflowSnapshotSchema: z.ZodObject<{
|
|
289
|
+
workflow: z.ZodObject<{
|
|
290
|
+
id: z.ZodUUID;
|
|
291
|
+
tenant_id: z.ZodString;
|
|
292
|
+
site_id: z.ZodUUID;
|
|
293
|
+
flow_type: z.ZodEnum<{
|
|
294
|
+
with_website: "with_website";
|
|
295
|
+
without_website: "without_website";
|
|
296
|
+
}>;
|
|
297
|
+
website: z.ZodNullable<z.ZodString>;
|
|
298
|
+
definition_version: z.ZodNumber;
|
|
299
|
+
current_node_code: z.ZodEnum<{
|
|
300
|
+
welcome: "welcome";
|
|
301
|
+
website_scan: "website_scan";
|
|
302
|
+
customer_materials: "customer_materials";
|
|
303
|
+
analysis: "analysis";
|
|
304
|
+
diagnosis: "diagnosis";
|
|
305
|
+
strategy: "strategy";
|
|
306
|
+
site_build: "site_build";
|
|
307
|
+
customer_conversion: "customer_conversion";
|
|
308
|
+
growth_loop: "growth_loop";
|
|
309
|
+
growth_dashboard: "growth_dashboard";
|
|
310
|
+
stage_goal: "stage_goal";
|
|
311
|
+
}>;
|
|
312
|
+
status: z.ZodEnum<{
|
|
313
|
+
active: "active";
|
|
314
|
+
completed: "completed";
|
|
315
|
+
}>;
|
|
316
|
+
started_at: z.ZodString;
|
|
317
|
+
completed_at: z.ZodNullable<z.ZodString>;
|
|
318
|
+
created_at: z.ZodString;
|
|
319
|
+
updated_at: z.ZodString;
|
|
320
|
+
}, z.core.$strip>;
|
|
321
|
+
menu: z.ZodArray<z.ZodObject<{
|
|
322
|
+
id: z.ZodUUID;
|
|
323
|
+
flow_type: z.ZodEnum<{
|
|
324
|
+
with_website: "with_website";
|
|
325
|
+
without_website: "without_website";
|
|
326
|
+
}>;
|
|
327
|
+
definition_version: z.ZodNumber;
|
|
328
|
+
node_code: z.ZodEnum<{
|
|
329
|
+
welcome: "welcome";
|
|
330
|
+
website_scan: "website_scan";
|
|
331
|
+
customer_materials: "customer_materials";
|
|
332
|
+
analysis: "analysis";
|
|
333
|
+
diagnosis: "diagnosis";
|
|
334
|
+
strategy: "strategy";
|
|
335
|
+
site_build: "site_build";
|
|
336
|
+
customer_conversion: "customer_conversion";
|
|
337
|
+
growth_loop: "growth_loop";
|
|
338
|
+
growth_dashboard: "growth_dashboard";
|
|
339
|
+
stage_goal: "stage_goal";
|
|
340
|
+
}>;
|
|
341
|
+
label: z.ZodString;
|
|
342
|
+
sort_order: z.ZodNumber;
|
|
343
|
+
is_enabled: z.ZodBoolean;
|
|
344
|
+
state: z.ZodEnum<{
|
|
345
|
+
completed: "completed";
|
|
346
|
+
current: "current";
|
|
347
|
+
locked: "locked";
|
|
348
|
+
}>;
|
|
349
|
+
}, z.core.$strip>>;
|
|
350
|
+
task_refs: z.ZodArray<z.ZodObject<{
|
|
351
|
+
id: z.ZodUUID;
|
|
352
|
+
tenant_id: z.ZodString;
|
|
353
|
+
site_id: z.ZodUUID;
|
|
354
|
+
workflow_id: z.ZodUUID;
|
|
355
|
+
node_code: z.ZodEnum<{
|
|
356
|
+
welcome: "welcome";
|
|
357
|
+
website_scan: "website_scan";
|
|
358
|
+
customer_materials: "customer_materials";
|
|
359
|
+
analysis: "analysis";
|
|
360
|
+
diagnosis: "diagnosis";
|
|
361
|
+
strategy: "strategy";
|
|
362
|
+
site_build: "site_build";
|
|
363
|
+
customer_conversion: "customer_conversion";
|
|
364
|
+
growth_loop: "growth_loop";
|
|
365
|
+
growth_dashboard: "growth_dashboard";
|
|
366
|
+
stage_goal: "stage_goal";
|
|
367
|
+
}>;
|
|
368
|
+
task_type: z.ZodEnum<{
|
|
369
|
+
company_info: "company_info";
|
|
370
|
+
website_crawl: "website_crawl";
|
|
371
|
+
website_basic_info_extract: "website_basic_info_extract";
|
|
372
|
+
website_metrics_evaluate: "website_metrics_evaluate";
|
|
373
|
+
intelligent_analysis: "intelligent_analysis";
|
|
374
|
+
strategy_recommendation: "strategy_recommendation";
|
|
375
|
+
}>;
|
|
376
|
+
external_task_id: z.ZodString;
|
|
377
|
+
execution_status: z.ZodEnum<{
|
|
378
|
+
failed: "failed";
|
|
379
|
+
succeeded: "succeeded";
|
|
380
|
+
running: "running";
|
|
381
|
+
started: "started";
|
|
382
|
+
invalidated: "invalidated";
|
|
383
|
+
}>;
|
|
384
|
+
idempotency_key: z.ZodString;
|
|
385
|
+
attempt_no: z.ZodNumber;
|
|
386
|
+
superseded_at: z.ZodNullable<z.ZodString>;
|
|
387
|
+
created_at: z.ZodString;
|
|
388
|
+
updated_at: z.ZodString;
|
|
389
|
+
}, z.core.$strip>>;
|
|
390
|
+
site: z.ZodObject<{
|
|
391
|
+
default_locale: z.ZodOptional<z.ZodEnum<{
|
|
392
|
+
id: "id";
|
|
393
|
+
"zh-CN": "zh-CN";
|
|
394
|
+
"zh-HK": "zh-HK";
|
|
395
|
+
"zh-TW": "zh-TW";
|
|
396
|
+
"en-US": "en-US";
|
|
397
|
+
"en-GB": "en-GB";
|
|
398
|
+
"ja-JP": "ja-JP";
|
|
399
|
+
"ko-KR": "ko-KR";
|
|
400
|
+
"es-ES": "es-ES";
|
|
401
|
+
"fr-FR": "fr-FR";
|
|
402
|
+
"de-DE": "de-DE";
|
|
403
|
+
"pt-PT": "pt-PT";
|
|
404
|
+
"ru-RU": "ru-RU";
|
|
405
|
+
"ar-SA": "ar-SA";
|
|
406
|
+
"id-ID": "id-ID";
|
|
407
|
+
"vi-VN": "vi-VN";
|
|
408
|
+
"th-TH": "th-TH";
|
|
409
|
+
"it-IT": "it-IT";
|
|
410
|
+
"nl-NL": "nl-NL";
|
|
411
|
+
"tr-TR": "tr-TR";
|
|
412
|
+
"pl-PL": "pl-PL";
|
|
413
|
+
"uk-UA": "uk-UA";
|
|
414
|
+
"cs-CZ": "cs-CZ";
|
|
415
|
+
"sk-SK": "sk-SK";
|
|
416
|
+
"hu-HU": "hu-HU";
|
|
417
|
+
"ro-RO": "ro-RO";
|
|
418
|
+
"el-GR": "el-GR";
|
|
419
|
+
"sv-SE": "sv-SE";
|
|
420
|
+
"da-DK": "da-DK";
|
|
421
|
+
"fi-FI": "fi-FI";
|
|
422
|
+
"hr-HR": "hr-HR";
|
|
423
|
+
"lt-LT": "lt-LT";
|
|
424
|
+
"lv-LV": "lv-LV";
|
|
425
|
+
"et-EE": "et-EE";
|
|
426
|
+
"ga-IE": "ga-IE";
|
|
427
|
+
"mt-MT": "mt-MT";
|
|
428
|
+
"ka-GE": "ka-GE";
|
|
429
|
+
"fa-IR": "fa-IR";
|
|
430
|
+
"bn-BD": "bn-BD";
|
|
431
|
+
"ta-IN": "ta-IN";
|
|
432
|
+
"si-LK": "si-LK";
|
|
433
|
+
"ms-MY": "ms-MY";
|
|
434
|
+
"fil-PH": "fil-PH";
|
|
435
|
+
"my-MM": "my-MM";
|
|
436
|
+
"km-KH": "km-KH";
|
|
437
|
+
"lo-LA": "lo-LA";
|
|
438
|
+
"mn-MN": "mn-MN";
|
|
439
|
+
"kk-KZ": "kk-KZ";
|
|
440
|
+
en: "en";
|
|
441
|
+
ja: "ja";
|
|
442
|
+
es: "es";
|
|
443
|
+
fr: "fr";
|
|
444
|
+
de: "de";
|
|
445
|
+
ko: "ko";
|
|
446
|
+
pt: "pt";
|
|
447
|
+
"pt-BR": "pt-BR";
|
|
448
|
+
it: "it";
|
|
449
|
+
ru: "ru";
|
|
450
|
+
ar: "ar";
|
|
451
|
+
hi: "hi";
|
|
452
|
+
vi: "vi";
|
|
453
|
+
th: "th";
|
|
454
|
+
tr: "tr";
|
|
455
|
+
nl: "nl";
|
|
456
|
+
pl: "pl";
|
|
457
|
+
uk: "uk";
|
|
458
|
+
sv: "sv";
|
|
459
|
+
da: "da";
|
|
460
|
+
fi: "fi";
|
|
461
|
+
no: "no";
|
|
462
|
+
cs: "cs";
|
|
463
|
+
el: "el";
|
|
464
|
+
hu: "hu";
|
|
465
|
+
ro: "ro";
|
|
466
|
+
he: "he";
|
|
467
|
+
ms: "ms";
|
|
468
|
+
fil: "fil";
|
|
469
|
+
bn: "bn";
|
|
470
|
+
ta: "ta";
|
|
471
|
+
ca: "ca";
|
|
472
|
+
sk: "sk";
|
|
473
|
+
hr: "hr";
|
|
474
|
+
bg: "bg";
|
|
475
|
+
lt: "lt";
|
|
476
|
+
lv: "lv";
|
|
477
|
+
et: "et";
|
|
478
|
+
fa: "fa";
|
|
479
|
+
sw: "sw";
|
|
480
|
+
sr: "sr";
|
|
481
|
+
is: "is";
|
|
482
|
+
}>>;
|
|
483
|
+
status: z.ZodEnum<{
|
|
484
|
+
draft: "draft";
|
|
485
|
+
structure_saved: "structure_saved";
|
|
486
|
+
generating: "generating";
|
|
487
|
+
workspace_ready: "workspace_ready";
|
|
488
|
+
}>;
|
|
489
|
+
deployment_status: z.ZodEnum<{
|
|
490
|
+
deploying: "deploying";
|
|
491
|
+
not_deployed: "not_deployed";
|
|
492
|
+
deployed: "deployed";
|
|
493
|
+
}>;
|
|
494
|
+
archived_at: z.ZodNullable<z.ZodString>;
|
|
495
|
+
current_sitemap_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
496
|
+
current_sitemap_version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
497
|
+
confirmed_sitemap_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
498
|
+
confirmed_sitemap_version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
499
|
+
structure_confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
500
|
+
current_snapshot_id: z.ZodNullable<z.ZodString>;
|
|
501
|
+
deployed_url: z.ZodNullable<z.ZodString>;
|
|
502
|
+
}, z.core.$strip>;
|
|
503
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
504
|
+
workflow_task_provider_available: z.ZodBoolean;
|
|
505
|
+
}, z.core.$strip>>;
|
|
506
|
+
}, z.core.$strip>;
|
|
507
|
+
export type SiteWorkflowSnapshot = z.infer<typeof SiteWorkflowSnapshotSchema>;
|
|
508
|
+
export declare const SiteWorkflowSnapshotResponseSchema: z.ZodObject<{
|
|
509
|
+
code: z.ZodNumber;
|
|
510
|
+
data: z.ZodObject<{
|
|
511
|
+
workflow: z.ZodObject<{
|
|
512
|
+
id: z.ZodUUID;
|
|
513
|
+
tenant_id: z.ZodString;
|
|
514
|
+
site_id: z.ZodUUID;
|
|
515
|
+
flow_type: z.ZodEnum<{
|
|
516
|
+
with_website: "with_website";
|
|
517
|
+
without_website: "without_website";
|
|
518
|
+
}>;
|
|
519
|
+
website: z.ZodNullable<z.ZodString>;
|
|
520
|
+
definition_version: z.ZodNumber;
|
|
521
|
+
current_node_code: z.ZodEnum<{
|
|
522
|
+
welcome: "welcome";
|
|
523
|
+
website_scan: "website_scan";
|
|
524
|
+
customer_materials: "customer_materials";
|
|
525
|
+
analysis: "analysis";
|
|
526
|
+
diagnosis: "diagnosis";
|
|
527
|
+
strategy: "strategy";
|
|
528
|
+
site_build: "site_build";
|
|
529
|
+
customer_conversion: "customer_conversion";
|
|
530
|
+
growth_loop: "growth_loop";
|
|
531
|
+
growth_dashboard: "growth_dashboard";
|
|
532
|
+
stage_goal: "stage_goal";
|
|
533
|
+
}>;
|
|
534
|
+
status: z.ZodEnum<{
|
|
535
|
+
active: "active";
|
|
536
|
+
completed: "completed";
|
|
537
|
+
}>;
|
|
538
|
+
started_at: z.ZodString;
|
|
539
|
+
completed_at: z.ZodNullable<z.ZodString>;
|
|
540
|
+
created_at: z.ZodString;
|
|
541
|
+
updated_at: z.ZodString;
|
|
542
|
+
}, z.core.$strip>;
|
|
543
|
+
menu: z.ZodArray<z.ZodObject<{
|
|
544
|
+
id: z.ZodUUID;
|
|
545
|
+
flow_type: z.ZodEnum<{
|
|
546
|
+
with_website: "with_website";
|
|
547
|
+
without_website: "without_website";
|
|
548
|
+
}>;
|
|
549
|
+
definition_version: z.ZodNumber;
|
|
550
|
+
node_code: z.ZodEnum<{
|
|
551
|
+
welcome: "welcome";
|
|
552
|
+
website_scan: "website_scan";
|
|
553
|
+
customer_materials: "customer_materials";
|
|
554
|
+
analysis: "analysis";
|
|
555
|
+
diagnosis: "diagnosis";
|
|
556
|
+
strategy: "strategy";
|
|
557
|
+
site_build: "site_build";
|
|
558
|
+
customer_conversion: "customer_conversion";
|
|
559
|
+
growth_loop: "growth_loop";
|
|
560
|
+
growth_dashboard: "growth_dashboard";
|
|
561
|
+
stage_goal: "stage_goal";
|
|
562
|
+
}>;
|
|
563
|
+
label: z.ZodString;
|
|
564
|
+
sort_order: z.ZodNumber;
|
|
565
|
+
is_enabled: z.ZodBoolean;
|
|
566
|
+
state: z.ZodEnum<{
|
|
567
|
+
completed: "completed";
|
|
568
|
+
current: "current";
|
|
569
|
+
locked: "locked";
|
|
570
|
+
}>;
|
|
571
|
+
}, z.core.$strip>>;
|
|
572
|
+
task_refs: z.ZodArray<z.ZodObject<{
|
|
573
|
+
id: z.ZodUUID;
|
|
574
|
+
tenant_id: z.ZodString;
|
|
575
|
+
site_id: z.ZodUUID;
|
|
576
|
+
workflow_id: z.ZodUUID;
|
|
577
|
+
node_code: z.ZodEnum<{
|
|
578
|
+
welcome: "welcome";
|
|
579
|
+
website_scan: "website_scan";
|
|
580
|
+
customer_materials: "customer_materials";
|
|
581
|
+
analysis: "analysis";
|
|
582
|
+
diagnosis: "diagnosis";
|
|
583
|
+
strategy: "strategy";
|
|
584
|
+
site_build: "site_build";
|
|
585
|
+
customer_conversion: "customer_conversion";
|
|
586
|
+
growth_loop: "growth_loop";
|
|
587
|
+
growth_dashboard: "growth_dashboard";
|
|
588
|
+
stage_goal: "stage_goal";
|
|
589
|
+
}>;
|
|
590
|
+
task_type: z.ZodEnum<{
|
|
591
|
+
company_info: "company_info";
|
|
592
|
+
website_crawl: "website_crawl";
|
|
593
|
+
website_basic_info_extract: "website_basic_info_extract";
|
|
594
|
+
website_metrics_evaluate: "website_metrics_evaluate";
|
|
595
|
+
intelligent_analysis: "intelligent_analysis";
|
|
596
|
+
strategy_recommendation: "strategy_recommendation";
|
|
597
|
+
}>;
|
|
598
|
+
external_task_id: z.ZodString;
|
|
599
|
+
execution_status: z.ZodEnum<{
|
|
600
|
+
failed: "failed";
|
|
601
|
+
succeeded: "succeeded";
|
|
602
|
+
running: "running";
|
|
603
|
+
started: "started";
|
|
604
|
+
invalidated: "invalidated";
|
|
605
|
+
}>;
|
|
606
|
+
idempotency_key: z.ZodString;
|
|
607
|
+
attempt_no: z.ZodNumber;
|
|
608
|
+
superseded_at: z.ZodNullable<z.ZodString>;
|
|
609
|
+
created_at: z.ZodString;
|
|
610
|
+
updated_at: z.ZodString;
|
|
611
|
+
}, z.core.$strip>>;
|
|
612
|
+
site: z.ZodObject<{
|
|
613
|
+
default_locale: z.ZodOptional<z.ZodEnum<{
|
|
614
|
+
id: "id";
|
|
615
|
+
"zh-CN": "zh-CN";
|
|
616
|
+
"zh-HK": "zh-HK";
|
|
617
|
+
"zh-TW": "zh-TW";
|
|
618
|
+
"en-US": "en-US";
|
|
619
|
+
"en-GB": "en-GB";
|
|
620
|
+
"ja-JP": "ja-JP";
|
|
621
|
+
"ko-KR": "ko-KR";
|
|
622
|
+
"es-ES": "es-ES";
|
|
623
|
+
"fr-FR": "fr-FR";
|
|
624
|
+
"de-DE": "de-DE";
|
|
625
|
+
"pt-PT": "pt-PT";
|
|
626
|
+
"ru-RU": "ru-RU";
|
|
627
|
+
"ar-SA": "ar-SA";
|
|
628
|
+
"id-ID": "id-ID";
|
|
629
|
+
"vi-VN": "vi-VN";
|
|
630
|
+
"th-TH": "th-TH";
|
|
631
|
+
"it-IT": "it-IT";
|
|
632
|
+
"nl-NL": "nl-NL";
|
|
633
|
+
"tr-TR": "tr-TR";
|
|
634
|
+
"pl-PL": "pl-PL";
|
|
635
|
+
"uk-UA": "uk-UA";
|
|
636
|
+
"cs-CZ": "cs-CZ";
|
|
637
|
+
"sk-SK": "sk-SK";
|
|
638
|
+
"hu-HU": "hu-HU";
|
|
639
|
+
"ro-RO": "ro-RO";
|
|
640
|
+
"el-GR": "el-GR";
|
|
641
|
+
"sv-SE": "sv-SE";
|
|
642
|
+
"da-DK": "da-DK";
|
|
643
|
+
"fi-FI": "fi-FI";
|
|
644
|
+
"hr-HR": "hr-HR";
|
|
645
|
+
"lt-LT": "lt-LT";
|
|
646
|
+
"lv-LV": "lv-LV";
|
|
647
|
+
"et-EE": "et-EE";
|
|
648
|
+
"ga-IE": "ga-IE";
|
|
649
|
+
"mt-MT": "mt-MT";
|
|
650
|
+
"ka-GE": "ka-GE";
|
|
651
|
+
"fa-IR": "fa-IR";
|
|
652
|
+
"bn-BD": "bn-BD";
|
|
653
|
+
"ta-IN": "ta-IN";
|
|
654
|
+
"si-LK": "si-LK";
|
|
655
|
+
"ms-MY": "ms-MY";
|
|
656
|
+
"fil-PH": "fil-PH";
|
|
657
|
+
"my-MM": "my-MM";
|
|
658
|
+
"km-KH": "km-KH";
|
|
659
|
+
"lo-LA": "lo-LA";
|
|
660
|
+
"mn-MN": "mn-MN";
|
|
661
|
+
"kk-KZ": "kk-KZ";
|
|
662
|
+
en: "en";
|
|
663
|
+
ja: "ja";
|
|
664
|
+
es: "es";
|
|
665
|
+
fr: "fr";
|
|
666
|
+
de: "de";
|
|
667
|
+
ko: "ko";
|
|
668
|
+
pt: "pt";
|
|
669
|
+
"pt-BR": "pt-BR";
|
|
670
|
+
it: "it";
|
|
671
|
+
ru: "ru";
|
|
672
|
+
ar: "ar";
|
|
673
|
+
hi: "hi";
|
|
674
|
+
vi: "vi";
|
|
675
|
+
th: "th";
|
|
676
|
+
tr: "tr";
|
|
677
|
+
nl: "nl";
|
|
678
|
+
pl: "pl";
|
|
679
|
+
uk: "uk";
|
|
680
|
+
sv: "sv";
|
|
681
|
+
da: "da";
|
|
682
|
+
fi: "fi";
|
|
683
|
+
no: "no";
|
|
684
|
+
cs: "cs";
|
|
685
|
+
el: "el";
|
|
686
|
+
hu: "hu";
|
|
687
|
+
ro: "ro";
|
|
688
|
+
he: "he";
|
|
689
|
+
ms: "ms";
|
|
690
|
+
fil: "fil";
|
|
691
|
+
bn: "bn";
|
|
692
|
+
ta: "ta";
|
|
693
|
+
ca: "ca";
|
|
694
|
+
sk: "sk";
|
|
695
|
+
hr: "hr";
|
|
696
|
+
bg: "bg";
|
|
697
|
+
lt: "lt";
|
|
698
|
+
lv: "lv";
|
|
699
|
+
et: "et";
|
|
700
|
+
fa: "fa";
|
|
701
|
+
sw: "sw";
|
|
702
|
+
sr: "sr";
|
|
703
|
+
is: "is";
|
|
704
|
+
}>>;
|
|
705
|
+
status: z.ZodEnum<{
|
|
706
|
+
draft: "draft";
|
|
707
|
+
structure_saved: "structure_saved";
|
|
708
|
+
generating: "generating";
|
|
709
|
+
workspace_ready: "workspace_ready";
|
|
710
|
+
}>;
|
|
711
|
+
deployment_status: z.ZodEnum<{
|
|
712
|
+
deploying: "deploying";
|
|
713
|
+
not_deployed: "not_deployed";
|
|
714
|
+
deployed: "deployed";
|
|
715
|
+
}>;
|
|
716
|
+
archived_at: z.ZodNullable<z.ZodString>;
|
|
717
|
+
current_sitemap_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
718
|
+
current_sitemap_version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
719
|
+
confirmed_sitemap_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
720
|
+
confirmed_sitemap_version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
721
|
+
structure_confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
722
|
+
current_snapshot_id: z.ZodNullable<z.ZodString>;
|
|
723
|
+
deployed_url: z.ZodNullable<z.ZodString>;
|
|
724
|
+
}, z.core.$strip>;
|
|
725
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
726
|
+
workflow_task_provider_available: z.ZodBoolean;
|
|
727
|
+
}, z.core.$strip>>;
|
|
728
|
+
}, z.core.$strip>;
|
|
729
|
+
message: z.ZodString;
|
|
730
|
+
}, z.core.$strip>;
|
|
731
|
+
export type SiteWorkflowSnapshotResponse = z.infer<typeof SiteWorkflowSnapshotResponseSchema>;
|
|
732
|
+
export declare const SiteWorkflowTaskRefResponseSchema: z.ZodObject<{
|
|
733
|
+
code: z.ZodNumber;
|
|
734
|
+
data: z.ZodObject<{
|
|
735
|
+
id: z.ZodUUID;
|
|
736
|
+
tenant_id: z.ZodString;
|
|
737
|
+
site_id: z.ZodUUID;
|
|
738
|
+
workflow_id: z.ZodUUID;
|
|
739
|
+
node_code: z.ZodEnum<{
|
|
740
|
+
welcome: "welcome";
|
|
741
|
+
website_scan: "website_scan";
|
|
742
|
+
customer_materials: "customer_materials";
|
|
743
|
+
analysis: "analysis";
|
|
744
|
+
diagnosis: "diagnosis";
|
|
745
|
+
strategy: "strategy";
|
|
746
|
+
site_build: "site_build";
|
|
747
|
+
customer_conversion: "customer_conversion";
|
|
748
|
+
growth_loop: "growth_loop";
|
|
749
|
+
growth_dashboard: "growth_dashboard";
|
|
750
|
+
stage_goal: "stage_goal";
|
|
751
|
+
}>;
|
|
752
|
+
task_type: z.ZodEnum<{
|
|
753
|
+
company_info: "company_info";
|
|
754
|
+
website_crawl: "website_crawl";
|
|
755
|
+
website_basic_info_extract: "website_basic_info_extract";
|
|
756
|
+
website_metrics_evaluate: "website_metrics_evaluate";
|
|
757
|
+
intelligent_analysis: "intelligent_analysis";
|
|
758
|
+
strategy_recommendation: "strategy_recommendation";
|
|
759
|
+
}>;
|
|
760
|
+
external_task_id: z.ZodString;
|
|
761
|
+
execution_status: z.ZodEnum<{
|
|
762
|
+
failed: "failed";
|
|
763
|
+
succeeded: "succeeded";
|
|
764
|
+
running: "running";
|
|
765
|
+
started: "started";
|
|
766
|
+
invalidated: "invalidated";
|
|
767
|
+
}>;
|
|
768
|
+
idempotency_key: z.ZodString;
|
|
769
|
+
attempt_no: z.ZodNumber;
|
|
770
|
+
superseded_at: z.ZodNullable<z.ZodString>;
|
|
771
|
+
created_at: z.ZodString;
|
|
772
|
+
updated_at: z.ZodString;
|
|
773
|
+
}, z.core.$strip>;
|
|
774
|
+
message: z.ZodString;
|
|
775
|
+
}, z.core.$strip>;
|
|
776
|
+
export type SiteWorkflowTaskRefResponse = z.infer<typeof SiteWorkflowTaskRefResponseSchema>;
|
|
777
|
+
export declare const CreateSiteWorkflowRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
778
|
+
flow_type: z.ZodLiteral<"with_website">;
|
|
779
|
+
website: z.ZodString;
|
|
780
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
781
|
+
flow_type: z.ZodLiteral<"without_website">;
|
|
782
|
+
website: z.ZodOptional<z.ZodNull>;
|
|
783
|
+
}, z.core.$strict>], "flow_type">;
|
|
784
|
+
export type CreateSiteWorkflowRequest = z.infer<typeof CreateSiteWorkflowRequestSchema>;
|
|
785
|
+
export declare const AdvanceSiteWorkflowRequestSchema: z.ZodObject<{
|
|
786
|
+
expected_current_node: z.ZodEnum<{
|
|
787
|
+
welcome: "welcome";
|
|
788
|
+
website_scan: "website_scan";
|
|
789
|
+
customer_materials: "customer_materials";
|
|
790
|
+
analysis: "analysis";
|
|
791
|
+
diagnosis: "diagnosis";
|
|
792
|
+
strategy: "strategy";
|
|
793
|
+
site_build: "site_build";
|
|
794
|
+
customer_conversion: "customer_conversion";
|
|
795
|
+
growth_loop: "growth_loop";
|
|
796
|
+
growth_dashboard: "growth_dashboard";
|
|
797
|
+
stage_goal: "stage_goal";
|
|
798
|
+
}>;
|
|
799
|
+
}, z.core.$strict>;
|
|
800
|
+
export type AdvanceSiteWorkflowRequest = z.infer<typeof AdvanceSiteWorkflowRequestSchema>;
|
|
801
|
+
export declare const CompleteSiteWorkflowRequestSchema: z.ZodObject<{
|
|
802
|
+
expected_current_node: z.ZodLiteral<"stage_goal">;
|
|
803
|
+
}, z.core.$strict>;
|
|
804
|
+
export type CompleteSiteWorkflowRequest = z.infer<typeof CompleteSiteWorkflowRequestSchema>;
|
|
805
|
+
/**
|
|
806
|
+
* Browser action for closing the visible Launcher build node. The server
|
|
807
|
+
* verifies the current snapshot and a released deployment before completing
|
|
808
|
+
* the server-only workflow tail; the browser never submits a result status.
|
|
809
|
+
*/
|
|
810
|
+
export declare const CompleteStaticSiteWorkflowRequestSchema: z.ZodObject<{
|
|
811
|
+
expected_current_node: z.ZodLiteral<"site_build">;
|
|
812
|
+
}, z.core.$strict>;
|
|
813
|
+
export type CompleteStaticSiteWorkflowRequest = z.infer<typeof CompleteStaticSiteWorkflowRequestSchema>;
|
|
814
|
+
export declare const RegisterWorkflowTaskRequestSchema: z.ZodObject<{
|
|
815
|
+
node_code: z.ZodEnum<{
|
|
816
|
+
welcome: "welcome";
|
|
817
|
+
website_scan: "website_scan";
|
|
818
|
+
customer_materials: "customer_materials";
|
|
819
|
+
analysis: "analysis";
|
|
820
|
+
diagnosis: "diagnosis";
|
|
821
|
+
strategy: "strategy";
|
|
822
|
+
site_build: "site_build";
|
|
823
|
+
customer_conversion: "customer_conversion";
|
|
824
|
+
growth_loop: "growth_loop";
|
|
825
|
+
growth_dashboard: "growth_dashboard";
|
|
826
|
+
stage_goal: "stage_goal";
|
|
827
|
+
}>;
|
|
828
|
+
task_type: z.ZodEnum<{
|
|
829
|
+
company_info: "company_info";
|
|
830
|
+
website_crawl: "website_crawl";
|
|
831
|
+
website_basic_info_extract: "website_basic_info_extract";
|
|
832
|
+
website_metrics_evaluate: "website_metrics_evaluate";
|
|
833
|
+
intelligent_analysis: "intelligent_analysis";
|
|
834
|
+
strategy_recommendation: "strategy_recommendation";
|
|
835
|
+
}>;
|
|
836
|
+
external_task_id: z.ZodString;
|
|
837
|
+
idempotency_key: z.ZodString;
|
|
838
|
+
}, z.core.$strip>;
|
|
839
|
+
export type RegisterWorkflowTaskRequest = z.infer<typeof RegisterWorkflowTaskRequestSchema>;
|
|
840
|
+
/** HTTP command DTOs include workflow_id because it is not part of the URL. */
|
|
841
|
+
export declare const RegisterWorkflowTaskCommandRequestSchema: z.ZodObject<{
|
|
842
|
+
node_code: z.ZodEnum<{
|
|
843
|
+
welcome: "welcome";
|
|
844
|
+
website_scan: "website_scan";
|
|
845
|
+
customer_materials: "customer_materials";
|
|
846
|
+
analysis: "analysis";
|
|
847
|
+
diagnosis: "diagnosis";
|
|
848
|
+
strategy: "strategy";
|
|
849
|
+
site_build: "site_build";
|
|
850
|
+
customer_conversion: "customer_conversion";
|
|
851
|
+
growth_loop: "growth_loop";
|
|
852
|
+
growth_dashboard: "growth_dashboard";
|
|
853
|
+
stage_goal: "stage_goal";
|
|
854
|
+
}>;
|
|
855
|
+
task_type: z.ZodEnum<{
|
|
856
|
+
company_info: "company_info";
|
|
857
|
+
website_crawl: "website_crawl";
|
|
858
|
+
website_basic_info_extract: "website_basic_info_extract";
|
|
859
|
+
website_metrics_evaluate: "website_metrics_evaluate";
|
|
860
|
+
intelligent_analysis: "intelligent_analysis";
|
|
861
|
+
strategy_recommendation: "strategy_recommendation";
|
|
862
|
+
}>;
|
|
863
|
+
external_task_id: z.ZodString;
|
|
864
|
+
idempotency_key: z.ZodString;
|
|
865
|
+
workflow_id: z.ZodUUID;
|
|
866
|
+
}, z.core.$strict>;
|
|
867
|
+
export type RegisterWorkflowTaskCommandRequest = z.infer<typeof RegisterWorkflowTaskCommandRequestSchema>;
|
|
868
|
+
export declare const UpdateWorkflowTaskStatusRequestSchema: z.ZodObject<{
|
|
869
|
+
external_task_id: z.ZodString;
|
|
870
|
+
execution_status: z.ZodEnum<{
|
|
871
|
+
failed: "failed";
|
|
872
|
+
succeeded: "succeeded";
|
|
873
|
+
running: "running";
|
|
874
|
+
started: "started";
|
|
875
|
+
invalidated: "invalidated";
|
|
876
|
+
}>;
|
|
877
|
+
}, z.core.$strip>;
|
|
878
|
+
export type UpdateWorkflowTaskStatusRequest = z.infer<typeof UpdateWorkflowTaskStatusRequestSchema>;
|
|
879
|
+
export declare const ReplaceWorkflowTaskRequestSchema: z.ZodObject<{
|
|
880
|
+
previous_external_task_id: z.ZodString;
|
|
881
|
+
external_task_id: z.ZodString;
|
|
882
|
+
idempotency_key: z.ZodString;
|
|
883
|
+
}, z.core.$strip>;
|
|
884
|
+
export type ReplaceWorkflowTaskRequest = z.infer<typeof ReplaceWorkflowTaskRequestSchema>;
|
|
885
|
+
export declare const ReplaceWorkflowTaskCommandRequestSchema: z.ZodObject<{
|
|
886
|
+
previous_external_task_id: z.ZodString;
|
|
887
|
+
external_task_id: z.ZodString;
|
|
888
|
+
idempotency_key: z.ZodString;
|
|
889
|
+
workflow_id: z.ZodUUID;
|
|
890
|
+
}, z.core.$strict>;
|
|
891
|
+
export type ReplaceWorkflowTaskCommandRequest = z.infer<typeof ReplaceWorkflowTaskCommandRequestSchema>;
|
|
892
|
+
export declare const ReplaceCrawlWorkflowTaskRequestSchema: z.ZodObject<{
|
|
893
|
+
previous_external_task_id: z.ZodString;
|
|
894
|
+
external_task_id: z.ZodString;
|
|
895
|
+
idempotency_key: z.ZodString;
|
|
896
|
+
}, z.core.$strip>;
|
|
897
|
+
export type ReplaceCrawlWorkflowTaskRequest = z.infer<typeof ReplaceCrawlWorkflowTaskRequestSchema>;
|
|
898
|
+
export declare const ReplaceCrawlWorkflowTaskCommandRequestSchema: z.ZodObject<{
|
|
899
|
+
previous_external_task_id: z.ZodString;
|
|
900
|
+
external_task_id: z.ZodString;
|
|
901
|
+
idempotency_key: z.ZodString;
|
|
902
|
+
workflow_id: z.ZodUUID;
|
|
903
|
+
}, z.core.$strict>;
|
|
904
|
+
export type ReplaceCrawlWorkflowTaskCommandRequest = z.infer<typeof ReplaceCrawlWorkflowTaskCommandRequestSchema>;
|
|
905
|
+
export declare const StartSiteBuildRequestSchema: z.ZodObject<{}, z.core.$strict>;
|
|
906
|
+
export type StartSiteBuildRequest = z.infer<typeof StartSiteBuildRequestSchema>;
|
|
907
|
+
/**
|
|
908
|
+
* 仅 dev/test 使用的进程级 Mock 输入。它只携带 VCP 需要的 task type,
|
|
909
|
+
* 不承载任何第三方协议、请求参数或业务结果。
|
|
910
|
+
*/
|
|
911
|
+
export declare const WorkflowMockDriveRequestSchema: z.ZodObject<{
|
|
912
|
+
task_types: z.ZodArray<z.ZodEnum<{
|
|
913
|
+
company_info: "company_info";
|
|
914
|
+
website_crawl: "website_crawl";
|
|
915
|
+
website_basic_info_extract: "website_basic_info_extract";
|
|
916
|
+
website_metrics_evaluate: "website_metrics_evaluate";
|
|
917
|
+
intelligent_analysis: "intelligent_analysis";
|
|
918
|
+
strategy_recommendation: "strategy_recommendation";
|
|
919
|
+
}>>;
|
|
920
|
+
}, z.core.$strict>;
|
|
921
|
+
export type WorkflowMockDriveRequest = z.infer<typeof WorkflowMockDriveRequestSchema>;
|
|
922
|
+
export declare const WorkflowMockRetryCrawlRequestSchema: z.ZodObject<{
|
|
923
|
+
previous_external_task_id: z.ZodString;
|
|
924
|
+
}, z.core.$strict>;
|
|
925
|
+
export type WorkflowMockRetryCrawlRequest = z.infer<typeof WorkflowMockRetryCrawlRequestSchema>;
|
|
926
|
+
export declare function getWorkflowDefinition(flow_type: WorkflowFlowType): readonly [{
|
|
927
|
+
readonly node_code: "welcome";
|
|
928
|
+
readonly label: "欢迎启动";
|
|
929
|
+
readonly sort_order: 1;
|
|
930
|
+
}, {
|
|
931
|
+
readonly node_code: "website_scan";
|
|
932
|
+
readonly label: "初始化需求与官网扫描";
|
|
933
|
+
readonly sort_order: 2;
|
|
934
|
+
}, {
|
|
935
|
+
readonly node_code: "analysis";
|
|
936
|
+
readonly label: "智能分析";
|
|
937
|
+
readonly sort_order: 3;
|
|
938
|
+
}, {
|
|
939
|
+
readonly node_code: "diagnosis";
|
|
940
|
+
readonly label: "诊断报告";
|
|
941
|
+
readonly sort_order: 4;
|
|
942
|
+
}, {
|
|
943
|
+
readonly node_code: "strategy";
|
|
944
|
+
readonly label: "策略与建议";
|
|
945
|
+
readonly sort_order: 5;
|
|
946
|
+
}, {
|
|
947
|
+
readonly node_code: "site_build";
|
|
948
|
+
readonly label: "建站";
|
|
949
|
+
readonly sort_order: 6;
|
|
950
|
+
}, {
|
|
951
|
+
readonly node_code: "customer_conversion";
|
|
952
|
+
readonly label: "客户转化";
|
|
953
|
+
readonly sort_order: 7;
|
|
954
|
+
}, {
|
|
955
|
+
readonly node_code: "growth_loop";
|
|
956
|
+
readonly label: "增长闭环";
|
|
957
|
+
readonly sort_order: 8;
|
|
958
|
+
}, {
|
|
959
|
+
readonly node_code: "growth_dashboard";
|
|
960
|
+
readonly label: "增长大盘";
|
|
961
|
+
readonly sort_order: 9;
|
|
962
|
+
}, {
|
|
963
|
+
readonly node_code: "stage_goal";
|
|
964
|
+
readonly label: "阶段运营目标";
|
|
965
|
+
readonly sort_order: 10;
|
|
966
|
+
}] | readonly [{
|
|
967
|
+
readonly node_code: "welcome";
|
|
968
|
+
readonly label: "欢迎启动";
|
|
969
|
+
readonly sort_order: 1;
|
|
970
|
+
}, {
|
|
971
|
+
readonly node_code: "customer_materials";
|
|
972
|
+
readonly label: "客户资料提供";
|
|
973
|
+
readonly sort_order: 2;
|
|
974
|
+
}, {
|
|
975
|
+
readonly node_code: "analysis";
|
|
976
|
+
readonly label: "智能分析";
|
|
977
|
+
readonly sort_order: 3;
|
|
978
|
+
}, {
|
|
979
|
+
readonly node_code: "strategy";
|
|
980
|
+
readonly label: "策略与建议";
|
|
981
|
+
readonly sort_order: 4;
|
|
982
|
+
}, {
|
|
983
|
+
readonly node_code: "site_build";
|
|
984
|
+
readonly label: "建站";
|
|
985
|
+
readonly sort_order: 5;
|
|
986
|
+
}, {
|
|
987
|
+
readonly node_code: "customer_conversion";
|
|
988
|
+
readonly label: "客户转化";
|
|
989
|
+
readonly sort_order: 6;
|
|
990
|
+
}, {
|
|
991
|
+
readonly node_code: "growth_loop";
|
|
992
|
+
readonly label: "增长闭环";
|
|
993
|
+
readonly sort_order: 7;
|
|
994
|
+
}, {
|
|
995
|
+
readonly node_code: "growth_dashboard";
|
|
996
|
+
readonly label: "增长大盘";
|
|
997
|
+
readonly sort_order: 8;
|
|
998
|
+
}, {
|
|
999
|
+
readonly node_code: "stage_goal";
|
|
1000
|
+
readonly label: "阶段运营目标";
|
|
1001
|
+
readonly sort_order: 9;
|
|
1002
|
+
}];
|
|
1003
|
+
export declare function getWorkflowNodeIndex(flow_type: WorkflowFlowType, node_code: WorkflowNodeCode): number;
|
|
1004
|
+
export declare function isWorkflowTaskTypeForNode(node_code: WorkflowNodeCode, task_type: WorkflowTaskType): boolean;
|
|
1005
|
+
export declare function assertTaskExecutionStatusTransition(from: TaskExecutionStatus, to: TaskExecutionStatus): TaskExecutionStatus;
|
|
1006
|
+
export declare function assertSiteBuildStatusTransition(from: SiteBuildStatus, to: SiteBuildStatus): SiteBuildStatus;
|