@vcp-dev/contracts 0.6.10 → 0.7.0

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