@vcp-dev/contracts 0.6.4 → 0.6.6

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/index.d.ts CHANGED
@@ -1,5 +1,9 @@
1
1
  import { z } from "zod";
2
+ import { type TemplateVersion } from "./template-version.js";
2
3
  export * from "./deployment-runtime.js";
4
+ export * from "./designer-component-library.js";
5
+ export * from "./designer-page-library.js";
6
+ export * from "./component-i18n-resources.js";
3
7
  export { PAGE_SLUG_PATTERN, PAGE_SLUG_SEGMENT_PATTERN_SOURCE, canonicalizePageSlug, isCanonicalPageSlug, pageSlugToRouteFilePath, tryCanonicalizeAsciiPageSlug, } from "./page-slug.js";
4
8
  export * from "./site-edit-capability.js";
5
9
  export * from "./site-edit-class-name-source.js";
@@ -22,8 +26,12 @@ export * from "./site-edit-source.js";
22
26
  export * from "./user-facing-copy.js";
23
27
  export * from "./site-edit-version.js";
24
28
  export * from "./site-locale.js";
29
+ export * from "./template-version.js";
30
+ export * from "./template-upgrade-state.js";
31
+ export * from "./template-upgrade-observability.js";
25
32
  export * from "./connect-dynamic-collection.js";
26
33
  export * from "./connect-form.js";
34
+ export * from "./form-design.js";
27
35
  export * from "./cms-collection-binding.js";
28
36
  export * from "./cms-public-url.js";
29
37
  export * from "./input-context-bundle.js";
@@ -107,8 +115,8 @@ export type VisualHints = z.infer<typeof VisualHintsSchema>;
107
115
  */
108
116
  export declare const ConversionHintsSchema: z.ZodObject<{
109
117
  protocol: z.ZodEnum<{
110
- phone: "phone";
111
118
  external: "external";
119
+ phone: "phone";
112
120
  route: "route";
113
121
  form: "form";
114
122
  download: "download";
@@ -261,8 +269,8 @@ export declare const ClarifyQuestionOptionSchema: z.ZodObject<{
261
269
  }, z.core.$strip>>;
262
270
  conversionHints: z.ZodOptional<z.ZodObject<{
263
271
  protocol: z.ZodEnum<{
264
- phone: "phone";
265
272
  external: "external";
273
+ phone: "phone";
266
274
  route: "route";
267
275
  form: "form";
268
276
  download: "download";
@@ -326,8 +334,8 @@ export declare const ClarifyQuestionSchema: z.ZodObject<{
326
334
  }, z.core.$strip>>;
327
335
  conversionHints: z.ZodOptional<z.ZodObject<{
328
336
  protocol: z.ZodEnum<{
329
- phone: "phone";
330
337
  external: "external";
338
+ phone: "phone";
331
339
  route: "route";
332
340
  form: "form";
333
341
  download: "download";
@@ -428,8 +436,8 @@ export declare const ClarifyQuestionsSchema: z.ZodObject<{
428
436
  }, z.core.$strip>>;
429
437
  conversionHints: z.ZodOptional<z.ZodObject<{
430
438
  protocol: z.ZodEnum<{
431
- phone: "phone";
432
439
  external: "external";
440
+ phone: "phone";
433
441
  route: "route";
434
442
  form: "form";
435
443
  download: "download";
@@ -670,10 +678,10 @@ export declare const ClarifyRunInputSchema: z.ZodObject<{
670
678
  facts: z.ZodArray<z.ZodObject<{
671
679
  fact: z.ZodString;
672
680
  kind: z.ZodEnum<{
681
+ copy: "copy";
673
682
  product: "product";
674
683
  price: "price";
675
684
  contact: "contact";
676
- copy: "copy";
677
685
  audience: "audience";
678
686
  other: "other";
679
687
  }>;
@@ -726,10 +734,10 @@ export type ClarifyRunInput = z.infer<typeof ClarifyRunInputSchema>;
726
734
  */
727
735
  export declare const AgentErrorCategorySchema: z.ZodEnum<{
728
736
  unknown: "unknown";
737
+ aborted: "aborted";
729
738
  model_schema_invalid: "model_schema_invalid";
730
739
  provider_rate_limited: "provider_rate_limited";
731
740
  provider_unavailable: "provider_unavailable";
732
- aborted: "aborted";
733
741
  }>;
734
742
  export type AgentErrorCategory = z.infer<typeof AgentErrorCategorySchema>;
735
743
  export declare const ClarifyStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -783,10 +791,10 @@ export declare const ClarifyStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObj
783
791
  message: z.ZodString;
784
792
  error_category: z.ZodOptional<z.ZodEnum<{
785
793
  unknown: "unknown";
794
+ aborted: "aborted";
786
795
  model_schema_invalid: "model_schema_invalid";
787
796
  provider_rate_limited: "provider_rate_limited";
788
797
  provider_unavailable: "provider_unavailable";
789
- aborted: "aborted";
790
798
  }>>;
791
799
  retryable: z.ZodOptional<z.ZodBoolean>;
792
800
  attempts: z.ZodOptional<z.ZodNumber>;
@@ -977,6 +985,191 @@ export declare const ApiResponseSchema: <T extends z.ZodTypeAny>(dataSchema: T)
977
985
  data: T;
978
986
  message: z.ZodString;
979
987
  }, z.core.$strip>;
988
+ export declare const ListDesignerComponentCategoriesResponseSchema: z.ZodObject<{
989
+ code: z.ZodNumber;
990
+ data: z.ZodObject<{
991
+ category_group_key: z.ZodLiteral<"insertNewComponent">;
992
+ categories: z.ZodArray<z.ZodType<import("./designer-component-library.js").DesignerComponentCategoryNode, unknown, z.core.$ZodTypeInternals<import("./designer-component-library.js").DesignerComponentCategoryNode, unknown>>>;
993
+ }, z.core.$strict>;
994
+ message: z.ZodString;
995
+ }, z.core.$strip>;
996
+ export type ListDesignerComponentCategoriesResponse = z.infer<typeof ListDesignerComponentCategoriesResponseSchema>;
997
+ export declare const ListDesignerComponentsResponseSchema: z.ZodObject<{
998
+ code: z.ZodNumber;
999
+ data: z.ZodObject<{
1000
+ category_group_key: z.ZodLiteral<"insertNewComponent">;
1001
+ items: z.ZodArray<z.ZodObject<{
1002
+ resource_id: z.ZodString;
1003
+ name: z.ZodString;
1004
+ description: z.ZodNullable<z.ZodString>;
1005
+ thumbnail_url: z.ZodNullable<z.ZodString>;
1006
+ resolved_version: z.ZodString;
1007
+ category_id: z.ZodNullable<z.ZodString>;
1008
+ }, z.core.$strict>>;
1009
+ next_cursor: z.ZodNullable<z.ZodString>;
1010
+ }, z.core.$strict>;
1011
+ message: z.ZodString;
1012
+ }, z.core.$strip>;
1013
+ export type ListDesignerComponentsResponse = z.infer<typeof ListDesignerComponentsResponseSchema>;
1014
+ export declare const InstallDesignerComponentResponseSchema: z.ZodObject<{
1015
+ code: z.ZodNumber;
1016
+ data: z.ZodObject<{
1017
+ resource_id: z.ZodString;
1018
+ resolved_version: z.ZodString;
1019
+ revision_id: z.ZodString;
1020
+ digest_sha256: z.ZodString;
1021
+ materialization: z.ZodObject<{
1022
+ instanceBaseName: z.ZodString;
1023
+ files: z.ZodArray<z.ZodObject<{
1024
+ pathTemplate: z.ZodString;
1025
+ content: z.ZodString;
1026
+ role: z.ZodOptional<z.ZodString>;
1027
+ }, z.core.$strict>>;
1028
+ entry: z.ZodObject<{
1029
+ pathTemplate: z.ZodString;
1030
+ export: z.ZodUnion<readonly [z.ZodObject<{
1031
+ kind: z.ZodLiteral<"default">;
1032
+ }, z.core.$strict>, z.ZodObject<{
1033
+ kind: z.ZodLiteral<"named">;
1034
+ name: z.ZodString;
1035
+ }, z.core.$strict>]>;
1036
+ }, z.core.$strict>;
1037
+ dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
1038
+ }, z.core.$strict>;
1039
+ }, z.core.$strict>;
1040
+ message: z.ZodString;
1041
+ }, z.core.$strip>;
1042
+ export type InstallDesignerComponentResponse = z.infer<typeof InstallDesignerComponentResponseSchema>;
1043
+ export declare const ListDesignerPageCategoriesResponseSchema: z.ZodObject<{
1044
+ code: z.ZodNumber;
1045
+ data: z.ZodObject<{
1046
+ category_group_key: z.ZodLiteral<"insertNewPage">;
1047
+ categories: z.ZodArray<z.ZodType<import("./designer-page-library.js").DesignerPageCategoryNode, unknown, z.core.$ZodTypeInternals<import("./designer-page-library.js").DesignerPageCategoryNode, unknown>>>;
1048
+ }, z.core.$strict>;
1049
+ message: z.ZodString;
1050
+ }, z.core.$strip>;
1051
+ export type ListDesignerPageCategoriesResponse = z.infer<typeof ListDesignerPageCategoriesResponseSchema>;
1052
+ export declare const ListDesignerPagesResponseSchema: z.ZodObject<{
1053
+ code: z.ZodNumber;
1054
+ data: z.ZodObject<{
1055
+ category_group_key: z.ZodLiteral<"insertNewPage">;
1056
+ items: z.ZodArray<z.ZodObject<{
1057
+ resource_id: z.ZodString;
1058
+ resource_type: z.ZodEnum<{
1059
+ page: "page";
1060
+ pages: "pages";
1061
+ }>;
1062
+ name: z.ZodString;
1063
+ description: z.ZodNullable<z.ZodString>;
1064
+ thumbnail_url: z.ZodNullable<z.ZodString>;
1065
+ resolved_version: z.ZodString;
1066
+ category_id: z.ZodNullable<z.ZodString>;
1067
+ }, z.core.$strict>>;
1068
+ next_cursor: z.ZodNullable<z.ZodString>;
1069
+ }, z.core.$strict>;
1070
+ message: z.ZodString;
1071
+ }, z.core.$strip>;
1072
+ export type ListDesignerPagesResponse = z.infer<typeof ListDesignerPagesResponseSchema>;
1073
+ export declare const InstallDesignerPageResponseSchema: z.ZodObject<{
1074
+ code: z.ZodNumber;
1075
+ data: z.ZodObject<{
1076
+ resource_id: z.ZodString;
1077
+ resource_type: z.ZodEnum<{
1078
+ page: "page";
1079
+ pages: "pages";
1080
+ }>;
1081
+ resolved_version: z.ZodString;
1082
+ revision_id: z.ZodString;
1083
+ digest_sha256: z.ZodString;
1084
+ components: z.ZodArray<z.ZodObject<{
1085
+ component_id: z.ZodString;
1086
+ materialization: z.ZodObject<{
1087
+ instanceBaseName: z.ZodString;
1088
+ files: z.ZodArray<z.ZodObject<{
1089
+ pathTemplate: z.ZodString;
1090
+ content: z.ZodString;
1091
+ role: z.ZodOptional<z.ZodString>;
1092
+ }, z.core.$strict>>;
1093
+ entry: z.ZodObject<{
1094
+ pathTemplate: z.ZodString;
1095
+ export: z.ZodUnion<readonly [z.ZodObject<{
1096
+ kind: z.ZodLiteral<"default">;
1097
+ }, z.core.$strict>, z.ZodObject<{
1098
+ kind: z.ZodLiteral<"named">;
1099
+ name: z.ZodString;
1100
+ }, z.core.$strict>]>;
1101
+ }, z.core.$strict>;
1102
+ dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
1103
+ }, z.core.$strict>;
1104
+ }, z.core.$strict>>;
1105
+ pages: z.ZodArray<z.ZodObject<{
1106
+ template_page_id: z.ZodString;
1107
+ title: z.ZodString;
1108
+ final_route: z.ZodString;
1109
+ materialization: z.ZodObject<{
1110
+ instanceBaseName: z.ZodString;
1111
+ files: z.ZodArray<z.ZodObject<{
1112
+ pathTemplate: z.ZodString;
1113
+ content: z.ZodString;
1114
+ role: z.ZodOptional<z.ZodString>;
1115
+ }, z.core.$strict>>;
1116
+ entry: z.ZodObject<{
1117
+ pathTemplate: z.ZodString;
1118
+ export: z.ZodUnion<readonly [z.ZodObject<{
1119
+ kind: z.ZodLiteral<"default">;
1120
+ }, z.core.$strict>, z.ZodObject<{
1121
+ kind: z.ZodLiteral<"named">;
1122
+ name: z.ZodString;
1123
+ }, z.core.$strict>]>;
1124
+ }, z.core.$strict>;
1125
+ dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
1126
+ }, z.core.$strict>;
1127
+ components: z.ZodArray<z.ZodObject<{
1128
+ instance_id: z.ZodString;
1129
+ component_id: z.ZodString;
1130
+ }, z.core.$strict>>;
1131
+ }, z.core.$strict>>;
1132
+ project_dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
1133
+ }, z.core.$strict>;
1134
+ message: z.ZodString;
1135
+ }, z.core.$strip>;
1136
+ export type InstallDesignerPageResponse = z.infer<typeof InstallDesignerPageResponseSchema>;
1137
+ export declare const PrepareDesignerPageResponseSchema: z.ZodObject<{
1138
+ code: z.ZodNumber;
1139
+ data: z.ZodObject<{
1140
+ resource_id: z.ZodString;
1141
+ resource_type: z.ZodEnum<{
1142
+ page: "page";
1143
+ pages: "pages";
1144
+ }>;
1145
+ resolved_version: z.ZodString;
1146
+ pages: z.ZodArray<z.ZodObject<{
1147
+ template_page_id: z.ZodString;
1148
+ title: z.ZodString;
1149
+ }, z.core.$strict>>;
1150
+ }, z.core.$strict>;
1151
+ message: z.ZodString;
1152
+ }, z.core.$strip>;
1153
+ export type PrepareDesignerPageResponse = z.infer<typeof PrepareDesignerPageResponseSchema>;
1154
+ export declare const ListDesignerSitePagesResponseSchema: z.ZodObject<{
1155
+ code: z.ZodNumber;
1156
+ data: z.ZodObject<{
1157
+ items: z.ZodArray<z.ZodObject<{
1158
+ title: z.ZodString;
1159
+ route_id: z.ZodString;
1160
+ }, z.core.$strict>>;
1161
+ }, z.core.$strict>;
1162
+ message: z.ZodString;
1163
+ }, z.core.$strip>;
1164
+ export type ListDesignerSitePagesResponse = z.infer<typeof ListDesignerSitePagesResponseSchema>;
1165
+ export declare const EnhanceDesignerPageResourceResponseSchema: z.ZodObject<{
1166
+ code: z.ZodNumber;
1167
+ data: z.ZodObject<{
1168
+ candidate: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1169
+ }, z.core.$strict>;
1170
+ message: z.ZodString;
1171
+ }, z.core.$strip>;
1172
+ export type EnhanceDesignerPageResourceResponse = z.infer<typeof EnhanceDesignerPageResourceResponseSchema>;
980
1173
  export declare const ExternalSyncSiteResponseSchema: z.ZodObject<{
981
1174
  code: z.ZodNumber;
982
1175
  data: z.ZodObject<{
@@ -2048,9 +2241,10 @@ export declare const CreateAgentRunResponseSchema: z.ZodObject<{
2048
2241
  export type CreateAgentRunResponse = z.infer<typeof CreateAgentRunResponseSchema>;
2049
2242
  export declare const SnapshotStatusSchema: z.ZodEnum<{
2050
2243
  failed: "failed";
2244
+ candidate: "candidate";
2051
2245
  current: "current";
2246
+ deleting: "deleting";
2052
2247
  draft: "draft";
2053
- candidate: "candidate";
2054
2248
  }>;
2055
2249
  export type SnapshotStatus = z.infer<typeof SnapshotStatusSchema>;
2056
2250
  export declare const SnapshotRecordSchema: z.ZodObject<{
@@ -2060,18 +2254,21 @@ export declare const SnapshotRecordSchema: z.ZodObject<{
2060
2254
  version: z.ZodNumber;
2061
2255
  manifest_hash: z.ZodString;
2062
2256
  object_key: z.ZodString;
2257
+ template_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2063
2258
  reason: z.ZodEnum<{
2064
2259
  initial_generation: "initial_generation";
2065
2260
  workspace_edit: "workspace_edit";
2066
2261
  pre_deploy: "pre_deploy";
2067
2262
  manual_save: "manual_save";
2068
2263
  rollback: "rollback";
2264
+ template_upgrade: "template_upgrade";
2069
2265
  }>;
2070
2266
  status: z.ZodEnum<{
2071
2267
  failed: "failed";
2268
+ candidate: "candidate";
2072
2269
  current: "current";
2270
+ deleting: "deleting";
2073
2271
  draft: "draft";
2074
- candidate: "candidate";
2075
2272
  }>;
2076
2273
  created_at: z.ZodString;
2077
2274
  }, z.core.$strip>;
@@ -2080,19 +2277,22 @@ export declare const PersistSiteSnapshotRequestSchema: z.ZodObject<{
2080
2277
  snapshot_id: z.ZodOptional<z.ZodString>;
2081
2278
  manifest_hash: z.ZodString;
2082
2279
  object_key: z.ZodString;
2280
+ template_version: z.ZodOptional<z.ZodString>;
2083
2281
  reason: z.ZodEnum<{
2084
2282
  initial_generation: "initial_generation";
2085
2283
  workspace_edit: "workspace_edit";
2086
2284
  pre_deploy: "pre_deploy";
2087
2285
  manual_save: "manual_save";
2088
2286
  rollback: "rollback";
2287
+ template_upgrade: "template_upgrade";
2089
2288
  }>;
2090
2289
  status: z.ZodDefault<z.ZodEnum<{
2091
2290
  failed: "failed";
2291
+ candidate: "candidate";
2092
2292
  current: "current";
2093
2293
  draft: "draft";
2094
- candidate: "candidate";
2095
2294
  }>>;
2295
+ source_run_id: z.ZodOptional<z.ZodString>;
2096
2296
  }, z.core.$strip>;
2097
2297
  export type PersistSiteSnapshotRequest = z.input<typeof PersistSiteSnapshotRequestSchema>;
2098
2298
  export declare const PersistSiteSnapshotResponseSchema: z.ZodObject<{
@@ -2316,27 +2516,424 @@ export declare const PersistSiteSnapshotResponseSchema: z.ZodObject<{
2316
2516
  tenant_id: z.ZodString;
2317
2517
  site_id: z.ZodString;
2318
2518
  version: z.ZodNumber;
2319
- manifest_hash: z.ZodString;
2320
- object_key: z.ZodString;
2321
- reason: z.ZodEnum<{
2322
- initial_generation: "initial_generation";
2323
- workspace_edit: "workspace_edit";
2324
- pre_deploy: "pre_deploy";
2325
- manual_save: "manual_save";
2326
- rollback: "rollback";
2327
- }>;
2328
- status: z.ZodEnum<{
2329
- failed: "failed";
2330
- current: "current";
2331
- draft: "draft";
2332
- candidate: "candidate";
2333
- }>;
2519
+ manifest_hash: z.ZodString;
2520
+ object_key: z.ZodString;
2521
+ template_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2522
+ reason: z.ZodEnum<{
2523
+ initial_generation: "initial_generation";
2524
+ workspace_edit: "workspace_edit";
2525
+ pre_deploy: "pre_deploy";
2526
+ manual_save: "manual_save";
2527
+ rollback: "rollback";
2528
+ template_upgrade: "template_upgrade";
2529
+ }>;
2530
+ status: z.ZodEnum<{
2531
+ failed: "failed";
2532
+ candidate: "candidate";
2533
+ current: "current";
2534
+ deleting: "deleting";
2535
+ draft: "draft";
2536
+ }>;
2537
+ created_at: z.ZodString;
2538
+ }, z.core.$strip>;
2539
+ next_step: z.ZodLiteral<"workspace">;
2540
+ }, z.core.$strip>;
2541
+ export type PersistSiteSnapshotResponse = z.infer<typeof PersistSiteSnapshotResponseSchema>;
2542
+ export declare const UpdateCurrentSnapshotManifestRequestSchema: z.ZodObject<{
2543
+ expected_manifest_hash: z.ZodString;
2544
+ manifest_hash: z.ZodString;
2545
+ object_key: z.ZodString;
2546
+ }, z.core.$strict>;
2547
+ export type UpdateCurrentSnapshotManifestRequest = z.infer<typeof UpdateCurrentSnapshotManifestRequestSchema>;
2548
+ export declare const PromoteSiteSnapshotRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
2549
+ base_snapshot_id: z.ZodNullable<z.ZodString>;
2550
+ source_run_id: z.ZodOptional<z.ZodString>;
2551
+ }, z.core.$strict>, z.ZodObject<{
2552
+ skip_base_check: z.ZodLiteral<true>;
2553
+ }, z.core.$strict>]>;
2554
+ export type PromoteSiteSnapshotRequest = z.infer<typeof PromoteSiteSnapshotRequestSchema>;
2555
+ export declare const PromoteSiteSnapshotResponseSchema: z.ZodObject<{
2556
+ site: z.ZodObject<{
2557
+ id: z.ZodString;
2558
+ tenant_id: z.ZodString;
2559
+ owner_user_id: z.ZodNullable<z.ZodString>;
2560
+ name: z.ZodString;
2561
+ slug: z.ZodString;
2562
+ status: z.ZodEnum<{
2563
+ error: "error";
2564
+ draft: "draft";
2565
+ brief_submitted: "brief_submitted";
2566
+ clarifying: "clarifying";
2567
+ sitemap_ready: "sitemap_ready";
2568
+ workspace_ready: "workspace_ready";
2569
+ deployed: "deployed";
2570
+ archived: "archived";
2571
+ }>;
2572
+ generation_state: z.ZodEnum<{
2573
+ planning: "planning";
2574
+ initial_generation_running: "initial_generation_running";
2575
+ generated: "generated";
2576
+ }>;
2577
+ planning_locked_at: z.ZodNullable<z.ZodString>;
2578
+ current_sitemap_id: z.ZodNullable<z.ZodString>;
2579
+ current_snapshot_id: z.ZodNullable<z.ZodString>;
2580
+ deployed_url: z.ZodNullable<z.ZodString>;
2581
+ default_locale: z.ZodEnum<{
2582
+ id: "id";
2583
+ "zh-CN": "zh-CN";
2584
+ "zh-HK": "zh-HK";
2585
+ "zh-TW": "zh-TW";
2586
+ "en-US": "en-US";
2587
+ "en-GB": "en-GB";
2588
+ "ja-JP": "ja-JP";
2589
+ "ko-KR": "ko-KR";
2590
+ "es-ES": "es-ES";
2591
+ "fr-FR": "fr-FR";
2592
+ "de-DE": "de-DE";
2593
+ "pt-PT": "pt-PT";
2594
+ "ru-RU": "ru-RU";
2595
+ "ar-SA": "ar-SA";
2596
+ "id-ID": "id-ID";
2597
+ "vi-VN": "vi-VN";
2598
+ "th-TH": "th-TH";
2599
+ "it-IT": "it-IT";
2600
+ "nl-NL": "nl-NL";
2601
+ "tr-TR": "tr-TR";
2602
+ "pl-PL": "pl-PL";
2603
+ "uk-UA": "uk-UA";
2604
+ "cs-CZ": "cs-CZ";
2605
+ "sk-SK": "sk-SK";
2606
+ "hu-HU": "hu-HU";
2607
+ "ro-RO": "ro-RO";
2608
+ "el-GR": "el-GR";
2609
+ "sv-SE": "sv-SE";
2610
+ "da-DK": "da-DK";
2611
+ "fi-FI": "fi-FI";
2612
+ "hr-HR": "hr-HR";
2613
+ "lt-LT": "lt-LT";
2614
+ "lv-LV": "lv-LV";
2615
+ "et-EE": "et-EE";
2616
+ "ga-IE": "ga-IE";
2617
+ "mt-MT": "mt-MT";
2618
+ "ka-GE": "ka-GE";
2619
+ "fa-IR": "fa-IR";
2620
+ "bn-BD": "bn-BD";
2621
+ "ta-IN": "ta-IN";
2622
+ "si-LK": "si-LK";
2623
+ "ms-MY": "ms-MY";
2624
+ "fil-PH": "fil-PH";
2625
+ "my-MM": "my-MM";
2626
+ "km-KH": "km-KH";
2627
+ "lo-LA": "lo-LA";
2628
+ "mn-MN": "mn-MN";
2629
+ "kk-KZ": "kk-KZ";
2630
+ en: "en";
2631
+ ja: "ja";
2632
+ es: "es";
2633
+ fr: "fr";
2634
+ de: "de";
2635
+ ko: "ko";
2636
+ pt: "pt";
2637
+ "pt-BR": "pt-BR";
2638
+ it: "it";
2639
+ ru: "ru";
2640
+ ar: "ar";
2641
+ hi: "hi";
2642
+ vi: "vi";
2643
+ th: "th";
2644
+ tr: "tr";
2645
+ nl: "nl";
2646
+ pl: "pl";
2647
+ uk: "uk";
2648
+ sv: "sv";
2649
+ da: "da";
2650
+ fi: "fi";
2651
+ no: "no";
2652
+ cs: "cs";
2653
+ el: "el";
2654
+ hu: "hu";
2655
+ ro: "ro";
2656
+ he: "he";
2657
+ ms: "ms";
2658
+ fil: "fil";
2659
+ bn: "bn";
2660
+ ta: "ta";
2661
+ ca: "ca";
2662
+ sk: "sk";
2663
+ hr: "hr";
2664
+ bg: "bg";
2665
+ lt: "lt";
2666
+ lv: "lv";
2667
+ et: "et";
2668
+ fa: "fa";
2669
+ sw: "sw";
2670
+ sr: "sr";
2671
+ is: "is";
2672
+ }>;
2673
+ owner_locale: z.ZodOptional<z.ZodEnum<{
2674
+ id: "id";
2675
+ "zh-CN": "zh-CN";
2676
+ "zh-HK": "zh-HK";
2677
+ "zh-TW": "zh-TW";
2678
+ "en-US": "en-US";
2679
+ "en-GB": "en-GB";
2680
+ "ja-JP": "ja-JP";
2681
+ "ko-KR": "ko-KR";
2682
+ "es-ES": "es-ES";
2683
+ "fr-FR": "fr-FR";
2684
+ "de-DE": "de-DE";
2685
+ "pt-PT": "pt-PT";
2686
+ "ru-RU": "ru-RU";
2687
+ "ar-SA": "ar-SA";
2688
+ "id-ID": "id-ID";
2689
+ "vi-VN": "vi-VN";
2690
+ "th-TH": "th-TH";
2691
+ "it-IT": "it-IT";
2692
+ "nl-NL": "nl-NL";
2693
+ "tr-TR": "tr-TR";
2694
+ "pl-PL": "pl-PL";
2695
+ "uk-UA": "uk-UA";
2696
+ "cs-CZ": "cs-CZ";
2697
+ "sk-SK": "sk-SK";
2698
+ "hu-HU": "hu-HU";
2699
+ "ro-RO": "ro-RO";
2700
+ "el-GR": "el-GR";
2701
+ "sv-SE": "sv-SE";
2702
+ "da-DK": "da-DK";
2703
+ "fi-FI": "fi-FI";
2704
+ "hr-HR": "hr-HR";
2705
+ "lt-LT": "lt-LT";
2706
+ "lv-LV": "lv-LV";
2707
+ "et-EE": "et-EE";
2708
+ "ga-IE": "ga-IE";
2709
+ "mt-MT": "mt-MT";
2710
+ "ka-GE": "ka-GE";
2711
+ "fa-IR": "fa-IR";
2712
+ "bn-BD": "bn-BD";
2713
+ "ta-IN": "ta-IN";
2714
+ "si-LK": "si-LK";
2715
+ "ms-MY": "ms-MY";
2716
+ "fil-PH": "fil-PH";
2717
+ "my-MM": "my-MM";
2718
+ "km-KH": "km-KH";
2719
+ "lo-LA": "lo-LA";
2720
+ "mn-MN": "mn-MN";
2721
+ "kk-KZ": "kk-KZ";
2722
+ en: "en";
2723
+ ja: "ja";
2724
+ es: "es";
2725
+ fr: "fr";
2726
+ de: "de";
2727
+ ko: "ko";
2728
+ pt: "pt";
2729
+ "pt-BR": "pt-BR";
2730
+ it: "it";
2731
+ ru: "ru";
2732
+ ar: "ar";
2733
+ hi: "hi";
2734
+ vi: "vi";
2735
+ th: "th";
2736
+ tr: "tr";
2737
+ nl: "nl";
2738
+ pl: "pl";
2739
+ uk: "uk";
2740
+ sv: "sv";
2741
+ da: "da";
2742
+ fi: "fi";
2743
+ no: "no";
2744
+ cs: "cs";
2745
+ el: "el";
2746
+ hu: "hu";
2747
+ ro: "ro";
2748
+ he: "he";
2749
+ ms: "ms";
2750
+ fil: "fil";
2751
+ bn: "bn";
2752
+ ta: "ta";
2753
+ ca: "ca";
2754
+ sk: "sk";
2755
+ hr: "hr";
2756
+ bg: "bg";
2757
+ lt: "lt";
2758
+ lv: "lv";
2759
+ et: "et";
2760
+ fa: "fa";
2761
+ sw: "sw";
2762
+ sr: "sr";
2763
+ is: "is";
2764
+ }>>;
2765
+ cms_site_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2766
+ cms_site_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2767
+ schema_version: z.ZodLiteral<1>;
2768
+ created_at: z.ZodString;
2769
+ updated_at: z.ZodString;
2770
+ }, z.core.$strip>;
2771
+ snapshot: z.ZodObject<{
2772
+ id: z.ZodString;
2773
+ tenant_id: z.ZodString;
2774
+ site_id: z.ZodString;
2775
+ version: z.ZodNumber;
2776
+ manifest_hash: z.ZodString;
2777
+ object_key: z.ZodString;
2778
+ template_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2779
+ reason: z.ZodEnum<{
2780
+ initial_generation: "initial_generation";
2781
+ workspace_edit: "workspace_edit";
2782
+ pre_deploy: "pre_deploy";
2783
+ manual_save: "manual_save";
2784
+ rollback: "rollback";
2785
+ template_upgrade: "template_upgrade";
2786
+ }>;
2787
+ status: z.ZodEnum<{
2788
+ failed: "failed";
2789
+ candidate: "candidate";
2790
+ current: "current";
2791
+ deleting: "deleting";
2792
+ draft: "draft";
2793
+ }>;
2794
+ created_at: z.ZodString;
2795
+ }, z.core.$strip>;
2796
+ next_step: z.ZodLiteral<"workspace">;
2797
+ }, z.core.$strip>;
2798
+ export type PromoteSiteSnapshotResponse = z.infer<typeof PromoteSiteSnapshotResponseSchema>;
2799
+ export declare const AbandonSiteSnapshotResponseSchema: z.ZodObject<{
2800
+ snapshot: z.ZodObject<{
2801
+ id: z.ZodString;
2802
+ tenant_id: z.ZodString;
2803
+ site_id: z.ZodString;
2804
+ version: z.ZodNumber;
2805
+ manifest_hash: z.ZodString;
2806
+ object_key: z.ZodString;
2807
+ template_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2808
+ reason: z.ZodEnum<{
2809
+ initial_generation: "initial_generation";
2810
+ workspace_edit: "workspace_edit";
2811
+ pre_deploy: "pre_deploy";
2812
+ manual_save: "manual_save";
2813
+ rollback: "rollback";
2814
+ template_upgrade: "template_upgrade";
2815
+ }>;
2816
+ status: z.ZodEnum<{
2817
+ failed: "failed";
2818
+ candidate: "candidate";
2819
+ current: "current";
2820
+ deleting: "deleting";
2821
+ draft: "draft";
2822
+ }>;
2823
+ created_at: z.ZodString;
2824
+ }, z.core.$strip>;
2825
+ }, z.core.$strip>;
2826
+ export type AbandonSiteSnapshotResponse = z.infer<typeof AbandonSiteSnapshotResponseSchema>;
2827
+ /**
2828
+ * 开始 candidate snapshot 的两阶段删除。API 先原子地把可删除 candidate
2829
+ * 转为 deleting,并返回 object_key;调用方删除对象后必须调用 completion
2830
+ * endpoint,API 才会删除 DB tombstone。current、被引用或非 candidate 快照
2831
+ * 一律拒绝(硬安全网)。
2832
+ */
2833
+ export declare const DeleteSiteSnapshotResponseSchema: z.ZodObject<{
2834
+ status: z.ZodLiteral<"deleting">;
2835
+ snapshot_id: z.ZodString;
2836
+ object_key: z.ZodString;
2837
+ }, z.core.$strip>;
2838
+ export type DeleteSiteSnapshotResponse = z.infer<typeof DeleteSiteSnapshotResponseSchema>;
2839
+ export declare const CompleteSiteSnapshotDeletionResponseSchema: z.ZodObject<{
2840
+ status: z.ZodLiteral<"deleted">;
2841
+ snapshot_id: z.ZodString;
2842
+ }, z.core.$strip>;
2843
+ export type CompleteSiteSnapshotDeletionResponse = z.infer<typeof CompleteSiteSnapshotDeletionResponseSchema>;
2844
+ /**
2845
+ * 站点版本历史记录(决策 #8/#9):DB 是事实源,sandbox git 是事务层。
2846
+ * 每条记录把一个 promote 过的 snapshot 版本 ↔ sandbox accepted git commit ↔
2847
+ * 源 workspace run 绑定,作为恢复到任一历史版本的依据。
2848
+ */
2849
+ export declare const SiteVersionRecordSchema: z.ZodObject<{
2850
+ id: z.ZodString;
2851
+ tenant_id: z.ZodString;
2852
+ site_id: z.ZodString;
2853
+ snapshot_id: z.ZodString;
2854
+ version: z.ZodNumber;
2855
+ accepted_commit: z.ZodString;
2856
+ source_run_id: z.ZodNullable<z.ZodString>;
2857
+ created_at: z.ZodString;
2858
+ }, z.core.$strip>;
2859
+ export type SiteVersionRecord = z.infer<typeof SiteVersionRecordSchema>;
2860
+ /**
2861
+ * 列版本端点的列表项:在 site_version 基础上联表 snapshots 补出该版本快照的
2862
+ * `reason`(区分初始生成 / 工作台改动 / 手动保存 / 回滚)与 `status`
2863
+ * (用 `current` 标记当前版本)。仅用于列表展示,restore 响应仍用
2864
+ * `SiteVersionRecord`。
2865
+ */
2866
+ export declare const SiteVersionListItemSchema: z.ZodObject<{
2867
+ id: z.ZodString;
2868
+ tenant_id: z.ZodString;
2869
+ site_id: z.ZodString;
2870
+ snapshot_id: z.ZodString;
2871
+ version: z.ZodNumber;
2872
+ accepted_commit: z.ZodString;
2873
+ source_run_id: z.ZodNullable<z.ZodString>;
2874
+ created_at: z.ZodString;
2875
+ reason: z.ZodEnum<{
2876
+ initial_generation: "initial_generation";
2877
+ workspace_edit: "workspace_edit";
2878
+ pre_deploy: "pre_deploy";
2879
+ manual_save: "manual_save";
2880
+ rollback: "rollback";
2881
+ template_upgrade: "template_upgrade";
2882
+ }>;
2883
+ status: z.ZodEnum<{
2884
+ failed: "failed";
2885
+ candidate: "candidate";
2886
+ current: "current";
2887
+ deleting: "deleting";
2888
+ draft: "draft";
2889
+ }>;
2890
+ }, z.core.$strip>;
2891
+ export type SiteVersionListItem = z.infer<typeof SiteVersionListItemSchema>;
2892
+ export declare const RecordSnapshotVersionRequestSchema: z.ZodObject<{
2893
+ accepted_commit: z.ZodString;
2894
+ source_run_id: z.ZodOptional<z.ZodString>;
2895
+ }, z.core.$strip>;
2896
+ export type RecordSnapshotVersionRequest = z.infer<typeof RecordSnapshotVersionRequestSchema>;
2897
+ export declare const RecordSnapshotVersionResponseSchema: z.ZodObject<{
2898
+ site_version: z.ZodObject<{
2899
+ id: z.ZodString;
2900
+ tenant_id: z.ZodString;
2901
+ site_id: z.ZodString;
2902
+ snapshot_id: z.ZodString;
2903
+ version: z.ZodNumber;
2904
+ accepted_commit: z.ZodString;
2905
+ source_run_id: z.ZodNullable<z.ZodString>;
2334
2906
  created_at: z.ZodString;
2335
2907
  }, z.core.$strip>;
2336
2908
  next_step: z.ZodLiteral<"workspace">;
2337
2909
  }, z.core.$strip>;
2338
- export type PersistSiteSnapshotResponse = z.infer<typeof PersistSiteSnapshotResponseSchema>;
2339
- export declare const PromoteSiteSnapshotResponseSchema: z.ZodObject<{
2910
+ export type RecordSnapshotVersionResponse = z.infer<typeof RecordSnapshotVersionResponseSchema>;
2911
+ export declare const TryAcquireTemplateUpgradeLockRequestSchema: z.ZodObject<{
2912
+ owner_id: z.ZodString;
2913
+ }, z.core.$strict>;
2914
+ export type TryAcquireTemplateUpgradeLockRequest = z.infer<typeof TryAcquireTemplateUpgradeLockRequestSchema>;
2915
+ export declare const TryAcquireTemplateUpgradeLockResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2916
+ acquired: z.ZodLiteral<true>;
2917
+ }, z.core.$strict>, z.ZodObject<{
2918
+ acquired: z.ZodLiteral<false>;
2919
+ }, z.core.$strict>], "acquired">;
2920
+ export type TryAcquireTemplateUpgradeLockResponse = z.infer<typeof TryAcquireTemplateUpgradeLockResponseSchema>;
2921
+ export declare const ReleaseTemplateUpgradeLockRequestSchema: z.ZodObject<{
2922
+ owner_id: z.ZodString;
2923
+ }, z.core.$strict>;
2924
+ export type ReleaseTemplateUpgradeLockRequest = z.infer<typeof ReleaseTemplateUpgradeLockRequestSchema>;
2925
+ export declare const ReleaseTemplateUpgradeLockResponseSchema: z.ZodObject<{
2926
+ released: z.ZodLiteral<true>;
2927
+ }, z.core.$strict>;
2928
+ export type ReleaseTemplateUpgradeLockResponse = z.infer<typeof ReleaseTemplateUpgradeLockResponseSchema>;
2929
+ export declare const TEMPLATE_UPGRADE_LOCK_LOST_ERROR_CODE: "TEMPLATE_UPGRADE_LOCK_LOST";
2930
+ export declare const PromoteTemplateUpgradeSnapshotRequestSchema: z.ZodObject<{
2931
+ base_snapshot_id: z.ZodString;
2932
+ accepted_commit: z.ZodString;
2933
+ owner_id: z.ZodString;
2934
+ }, z.core.$strict>;
2935
+ export type PromoteTemplateUpgradeSnapshotRequest = z.infer<typeof PromoteTemplateUpgradeSnapshotRequestSchema>;
2936
+ export declare const PromoteTemplateUpgradeSnapshotResponseSchema: z.ZodObject<{
2340
2937
  site: z.ZodObject<{
2341
2938
  id: z.ZodString;
2342
2939
  tenant_id: z.ZodString;
@@ -2559,99 +3156,27 @@ export declare const PromoteSiteSnapshotResponseSchema: z.ZodObject<{
2559
3156
  version: z.ZodNumber;
2560
3157
  manifest_hash: z.ZodString;
2561
3158
  object_key: z.ZodString;
3159
+ template_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2562
3160
  reason: z.ZodEnum<{
2563
3161
  initial_generation: "initial_generation";
2564
3162
  workspace_edit: "workspace_edit";
2565
3163
  pre_deploy: "pre_deploy";
2566
3164
  manual_save: "manual_save";
2567
3165
  rollback: "rollback";
3166
+ template_upgrade: "template_upgrade";
2568
3167
  }>;
2569
3168
  status: z.ZodEnum<{
2570
3169
  failed: "failed";
3170
+ candidate: "candidate";
2571
3171
  current: "current";
3172
+ deleting: "deleting";
2572
3173
  draft: "draft";
2573
- candidate: "candidate";
2574
3174
  }>;
2575
3175
  created_at: z.ZodString;
2576
3176
  }, z.core.$strip>;
2577
3177
  next_step: z.ZodLiteral<"workspace">;
2578
- }, z.core.$strip>;
2579
- export type PromoteSiteSnapshotResponse = z.infer<typeof PromoteSiteSnapshotResponseSchema>;
2580
- /**
2581
- * 删除一个 candidate snapshot(清理被取代的中间快照)。
2582
- * 仅允许删除 status=candidate、非当前 current_snapshot_id、且未被任何
2583
- * site_versions 引用的快照;其余一律拒绝(硬安全网)。
2584
- */
2585
- export declare const DeleteSiteSnapshotResponseSchema: z.ZodObject<{
2586
- status: z.ZodLiteral<"deleted">;
2587
- snapshot_id: z.ZodString;
2588
- }, z.core.$strip>;
2589
- export type DeleteSiteSnapshotResponse = z.infer<typeof DeleteSiteSnapshotResponseSchema>;
2590
- /**
2591
- * 站点版本历史记录(决策 #8/#9):DB 是事实源,sandbox git 是事务层。
2592
- * 每条记录把一个 promote 过的 snapshot 版本 ↔ sandbox accepted git commit ↔
2593
- * 源 workspace run 绑定,作为恢复到任一历史版本的依据。
2594
- */
2595
- export declare const SiteVersionRecordSchema: z.ZodObject<{
2596
- id: z.ZodString;
2597
- tenant_id: z.ZodString;
2598
- site_id: z.ZodString;
2599
- snapshot_id: z.ZodString;
2600
- version: z.ZodNumber;
2601
- accepted_commit: z.ZodString;
2602
- source_run_id: z.ZodNullable<z.ZodString>;
2603
- created_at: z.ZodString;
2604
- }, z.core.$strip>;
2605
- export type SiteVersionRecord = z.infer<typeof SiteVersionRecordSchema>;
2606
- /**
2607
- * 列版本端点的列表项:在 site_version 基础上联表 snapshots 补出该版本快照的
2608
- * `reason`(区分初始生成 / 工作台改动 / 手动保存 / 回滚)与 `status`
2609
- * (用 `current` 标记当前版本)。仅用于列表展示,restore 响应仍用
2610
- * `SiteVersionRecord`。
2611
- */
2612
- export declare const SiteVersionListItemSchema: z.ZodObject<{
2613
- id: z.ZodString;
2614
- tenant_id: z.ZodString;
2615
- site_id: z.ZodString;
2616
- snapshot_id: z.ZodString;
2617
- version: z.ZodNumber;
2618
- accepted_commit: z.ZodString;
2619
- source_run_id: z.ZodNullable<z.ZodString>;
2620
- created_at: z.ZodString;
2621
- reason: z.ZodEnum<{
2622
- initial_generation: "initial_generation";
2623
- workspace_edit: "workspace_edit";
2624
- pre_deploy: "pre_deploy";
2625
- manual_save: "manual_save";
2626
- rollback: "rollback";
2627
- }>;
2628
- status: z.ZodEnum<{
2629
- failed: "failed";
2630
- current: "current";
2631
- draft: "draft";
2632
- candidate: "candidate";
2633
- }>;
2634
- }, z.core.$strip>;
2635
- export type SiteVersionListItem = z.infer<typeof SiteVersionListItemSchema>;
2636
- export declare const RecordSnapshotVersionRequestSchema: z.ZodObject<{
2637
- accepted_commit: z.ZodString;
2638
- source_run_id: z.ZodOptional<z.ZodString>;
2639
- }, z.core.$strip>;
2640
- export type RecordSnapshotVersionRequest = z.infer<typeof RecordSnapshotVersionRequestSchema>;
2641
- export declare const RecordSnapshotVersionResponseSchema: z.ZodObject<{
2642
- site_version: z.ZodObject<{
2643
- id: z.ZodString;
2644
- tenant_id: z.ZodString;
2645
- site_id: z.ZodString;
2646
- snapshot_id: z.ZodString;
2647
- version: z.ZodNumber;
2648
- accepted_commit: z.ZodString;
2649
- source_run_id: z.ZodNullable<z.ZodString>;
2650
- created_at: z.ZodString;
2651
- }, z.core.$strip>;
2652
- next_step: z.ZodLiteral<"workspace">;
2653
- }, z.core.$strip>;
2654
- export type RecordSnapshotVersionResponse = z.infer<typeof RecordSnapshotVersionResponseSchema>;
3178
+ }, z.core.$strict>;
3179
+ export type PromoteTemplateUpgradeSnapshotResponse = z.infer<typeof PromoteTemplateUpgradeSnapshotResponseSchema>;
2655
3180
  export declare const ListSiteVersionsResponseSchema: z.ZodObject<{
2656
3181
  site_versions: z.ZodArray<z.ZodObject<{
2657
3182
  id: z.ZodString;
@@ -2668,12 +3193,14 @@ export declare const ListSiteVersionsResponseSchema: z.ZodObject<{
2668
3193
  pre_deploy: "pre_deploy";
2669
3194
  manual_save: "manual_save";
2670
3195
  rollback: "rollback";
3196
+ template_upgrade: "template_upgrade";
2671
3197
  }>;
2672
3198
  status: z.ZodEnum<{
2673
3199
  failed: "failed";
3200
+ candidate: "candidate";
2674
3201
  current: "current";
3202
+ deleting: "deleting";
2675
3203
  draft: "draft";
2676
- candidate: "candidate";
2677
3204
  }>;
2678
3205
  }, z.core.$strip>>;
2679
3206
  }, z.core.$strip>;
@@ -2901,18 +3428,21 @@ export declare const RestoreSiteSnapshotResponseSchema: z.ZodObject<{
2901
3428
  version: z.ZodNumber;
2902
3429
  manifest_hash: z.ZodString;
2903
3430
  object_key: z.ZodString;
3431
+ template_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2904
3432
  reason: z.ZodEnum<{
2905
3433
  initial_generation: "initial_generation";
2906
3434
  workspace_edit: "workspace_edit";
2907
3435
  pre_deploy: "pre_deploy";
2908
3436
  manual_save: "manual_save";
2909
3437
  rollback: "rollback";
3438
+ template_upgrade: "template_upgrade";
2910
3439
  }>;
2911
3440
  status: z.ZodEnum<{
2912
3441
  failed: "failed";
3442
+ candidate: "candidate";
2913
3443
  current: "current";
3444
+ deleting: "deleting";
2914
3445
  draft: "draft";
2915
- candidate: "candidate";
2916
3446
  }>;
2917
3447
  created_at: z.ZodString;
2918
3448
  }, z.core.$strip>;
@@ -2939,16 +3469,16 @@ export declare const PrepareVersionPreviewRequestSchema: z.ZodObject<{
2939
3469
  force_rehydrate: z.ZodOptional<z.ZodBoolean>;
2940
3470
  }, z.core.$strip>;
2941
3471
  export type PrepareVersionPreviewRequest = z.infer<typeof PrepareVersionPreviewRequestSchema>;
2942
- export declare const PrepareVersionPreviewResponseSchema: z.ZodObject<{
2943
- status: z.ZodEnum<{
2944
- ready: "ready";
2945
- failed: "failed";
2946
- }>;
2947
- preview_url: z.ZodOptional<z.ZodString>;
2948
- code: z.ZodOptional<z.ZodString>;
2949
- message: z.ZodOptional<z.ZodString>;
2950
- retryable: z.ZodOptional<z.ZodBoolean>;
2951
- }, z.core.$strip>;
3472
+ export declare const PrepareVersionPreviewResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3473
+ status: z.ZodLiteral<"ready">;
3474
+ snapshot_id: z.ZodString;
3475
+ preview_url: z.ZodString;
3476
+ }, z.core.$strip>, z.ZodObject<{
3477
+ status: z.ZodLiteral<"failed">;
3478
+ code: z.ZodString;
3479
+ message: z.ZodString;
3480
+ retryable: z.ZodBoolean;
3481
+ }, z.core.$strip>], "status">;
2952
3482
  export type PrepareVersionPreviewResponse = z.infer<typeof PrepareVersionPreviewResponseSchema>;
2953
3483
  export declare const DEPLOYMENT_ENTITLEMENT_REQUIRED_ERROR_CODE: "DEPLOYMENT_ENTITLEMENT_REQUIRED";
2954
3484
  export declare const DeploymentStatusSchema: z.ZodEnum<{
@@ -3695,8 +4225,8 @@ export declare const RouteGenerationCardSchema: z.ZodObject<{
3695
4225
  export type RouteGenerationCard = z.infer<typeof RouteGenerationCardSchema>;
3696
4226
  export declare const ActivityKindSchema: z.ZodEnum<{
3697
4227
  preview: "preview";
3698
- model_call: "model_call";
3699
4228
  validation: "validation";
4229
+ model_call: "model_call";
3700
4230
  repair: "repair";
3701
4231
  worker_group: "worker_group";
3702
4232
  }>;
@@ -4401,8 +4931,8 @@ export declare const SitemapSchema: z.ZodObject<{
4401
4931
  confirmedChoices: z.ZodOptional<z.ZodObject<{
4402
4932
  conversion: z.ZodOptional<z.ZodObject<{
4403
4933
  protocol: z.ZodEnum<{
4404
- phone: "phone";
4405
4934
  external: "external";
4935
+ phone: "phone";
4406
4936
  route: "route";
4407
4937
  form: "form";
4408
4938
  download: "download";
@@ -4720,8 +5250,8 @@ export declare const SitemapAnswerSchema: z.ZodObject<{
4720
5250
  }, z.core.$strip>>;
4721
5251
  conversion: z.ZodOptional<z.ZodObject<{
4722
5252
  protocol: z.ZodEnum<{
4723
- phone: "phone";
4724
5253
  external: "external";
5254
+ phone: "phone";
4725
5255
  route: "route";
4726
5256
  form: "form";
4727
5257
  download: "download";
@@ -4790,8 +5320,8 @@ export declare const SitemapRunInputSchema: z.ZodObject<{
4790
5320
  }, z.core.$strip>>;
4791
5321
  conversion: z.ZodOptional<z.ZodObject<{
4792
5322
  protocol: z.ZodEnum<{
4793
- phone: "phone";
4794
5323
  external: "external";
5324
+ phone: "phone";
4795
5325
  route: "route";
4796
5326
  form: "form";
4797
5327
  download: "download";
@@ -5017,10 +5547,10 @@ export declare const SitemapRunInputSchema: z.ZodObject<{
5017
5547
  facts: z.ZodArray<z.ZodObject<{
5018
5548
  fact: z.ZodString;
5019
5549
  kind: z.ZodEnum<{
5550
+ copy: "copy";
5020
5551
  product: "product";
5021
5552
  price: "price";
5022
5553
  contact: "contact";
5023
- copy: "copy";
5024
5554
  audience: "audience";
5025
5555
  other: "other";
5026
5556
  }>;
@@ -5211,8 +5741,8 @@ export declare const SitemapStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObj
5211
5741
  confirmedChoices: z.ZodOptional<z.ZodObject<{
5212
5742
  conversion: z.ZodOptional<z.ZodObject<{
5213
5743
  protocol: z.ZodEnum<{
5214
- phone: "phone";
5215
5744
  external: "external";
5745
+ phone: "phone";
5216
5746
  route: "route";
5217
5747
  form: "form";
5218
5748
  download: "download";
@@ -5392,8 +5922,8 @@ export declare const SitemapRecordSchema: z.ZodObject<{
5392
5922
  confirmedChoices: z.ZodOptional<z.ZodObject<{
5393
5923
  conversion: z.ZodOptional<z.ZodObject<{
5394
5924
  protocol: z.ZodEnum<{
5395
- phone: "phone";
5396
5925
  external: "external";
5926
+ phone: "phone";
5397
5927
  route: "route";
5398
5928
  form: "form";
5399
5929
  download: "download";
@@ -5533,8 +6063,8 @@ export declare const PersistSiteSitemapRequestSchema: z.ZodObject<{
5533
6063
  confirmedChoices: z.ZodOptional<z.ZodObject<{
5534
6064
  conversion: z.ZodOptional<z.ZodObject<{
5535
6065
  protocol: z.ZodEnum<{
5536
- phone: "phone";
5537
6066
  external: "external";
6067
+ phone: "phone";
5538
6068
  route: "route";
5539
6069
  form: "form";
5540
6070
  download: "download";
@@ -5891,8 +6421,8 @@ export declare const PersistSiteSitemapResponseSchema: z.ZodObject<{
5891
6421
  confirmedChoices: z.ZodOptional<z.ZodObject<{
5892
6422
  conversion: z.ZodOptional<z.ZodObject<{
5893
6423
  protocol: z.ZodEnum<{
5894
- phone: "phone";
5895
6424
  external: "external";
6425
+ phone: "phone";
5896
6426
  route: "route";
5897
6427
  form: "form";
5898
6428
  download: "download";
@@ -5970,8 +6500,8 @@ export declare const ClarifySessionRecordSchema: z.ZodObject<{
5970
6500
  }, z.core.$strip>>;
5971
6501
  conversionHints: z.ZodOptional<z.ZodObject<{
5972
6502
  protocol: z.ZodEnum<{
5973
- phone: "phone";
5974
6503
  external: "external";
6504
+ phone: "phone";
5975
6505
  route: "route";
5976
6506
  form: "form";
5977
6507
  download: "download";
@@ -6066,8 +6596,8 @@ export declare const ClarifySessionRecordSchema: z.ZodObject<{
6066
6596
  }, z.core.$strip>>;
6067
6597
  conversion: z.ZodOptional<z.ZodObject<{
6068
6598
  protocol: z.ZodEnum<{
6069
- phone: "phone";
6070
6599
  external: "external";
6600
+ phone: "phone";
6071
6601
  route: "route";
6072
6602
  form: "form";
6073
6603
  download: "download";
@@ -6149,8 +6679,8 @@ export declare const PersistClarifyAnswersRequestSchema: z.ZodObject<{
6149
6679
  }, z.core.$strip>>;
6150
6680
  conversion: z.ZodOptional<z.ZodObject<{
6151
6681
  protocol: z.ZodEnum<{
6152
- phone: "phone";
6153
6682
  external: "external";
6683
+ phone: "phone";
6154
6684
  route: "route";
6155
6685
  form: "form";
6156
6686
  download: "download";
@@ -6219,8 +6749,8 @@ export declare const PersistClarifyAnswersRequestSchema: z.ZodObject<{
6219
6749
  }, z.core.$strip>>;
6220
6750
  conversionHints: z.ZodOptional<z.ZodObject<{
6221
6751
  protocol: z.ZodEnum<{
6222
- phone: "phone";
6223
6752
  external: "external";
6753
+ phone: "phone";
6224
6754
  route: "route";
6225
6755
  form: "form";
6226
6756
  download: "download";
@@ -6342,8 +6872,8 @@ export declare const PersistClarifyAnswersResponseSchema: z.ZodObject<{
6342
6872
  }, z.core.$strip>>;
6343
6873
  conversionHints: z.ZodOptional<z.ZodObject<{
6344
6874
  protocol: z.ZodEnum<{
6345
- phone: "phone";
6346
6875
  external: "external";
6876
+ phone: "phone";
6347
6877
  route: "route";
6348
6878
  form: "form";
6349
6879
  download: "download";
@@ -6438,8 +6968,8 @@ export declare const PersistClarifyAnswersResponseSchema: z.ZodObject<{
6438
6968
  }, z.core.$strip>>;
6439
6969
  conversion: z.ZodOptional<z.ZodObject<{
6440
6970
  protocol: z.ZodEnum<{
6441
- phone: "phone";
6442
6971
  external: "external";
6972
+ phone: "phone";
6443
6973
  route: "route";
6444
6974
  form: "form";
6445
6975
  download: "download";
@@ -6534,8 +7064,8 @@ export declare const UpdateClarifyArchetypeRequestSchema: z.ZodObject<{
6534
7064
  }, z.core.$strip>>;
6535
7065
  conversionHints: z.ZodOptional<z.ZodObject<{
6536
7066
  protocol: z.ZodEnum<{
6537
- phone: "phone";
6538
7067
  external: "external";
7068
+ phone: "phone";
6539
7069
  route: "route";
6540
7070
  form: "form";
6541
7071
  download: "download";
@@ -7180,16 +7710,16 @@ export declare const WorkspaceWorkerStatusSchema: z.ZodEnum<{
7180
7710
  failed: "failed";
7181
7711
  pending: "pending";
7182
7712
  running: "running";
7713
+ skipped: "skipped";
7183
7714
  completed: "completed";
7184
7715
  completed_with_skips: "completed_with_skips";
7185
- skipped: "skipped";
7186
7716
  }>;
7187
7717
  export type WorkspaceWorkerStatus = z.infer<typeof WorkspaceWorkerStatusSchema>;
7188
7718
  export declare const WorkspaceWorkerPhaseSchema: z.ZodEnum<{
7719
+ pages: "pages";
7720
+ layout: "layout";
7189
7721
  sections: "sections";
7190
7722
  preview: "preview";
7191
- layout: "layout";
7192
- pages: "pages";
7193
7723
  repair: "repair";
7194
7724
  style_media: "style_media";
7195
7725
  chrome: "chrome";
@@ -7218,10 +7748,10 @@ export type WorkspaceExecutionDiagnostics = z.infer<typeof WorkspaceExecutionDia
7218
7748
  export declare const WorkspaceWorkerGroupSchema: z.ZodObject<{
7219
7749
  group_id: z.ZodString;
7220
7750
  phase: z.ZodEnum<{
7751
+ pages: "pages";
7752
+ layout: "layout";
7221
7753
  sections: "sections";
7222
7754
  preview: "preview";
7223
- layout: "layout";
7224
- pages: "pages";
7225
7755
  repair: "repair";
7226
7756
  style_media: "style_media";
7227
7757
  chrome: "chrome";
@@ -7234,9 +7764,9 @@ export declare const WorkspaceWorkerGroupSchema: z.ZodObject<{
7234
7764
  failed: "failed";
7235
7765
  pending: "pending";
7236
7766
  running: "running";
7767
+ skipped: "skipped";
7237
7768
  completed: "completed";
7238
7769
  completed_with_skips: "completed_with_skips";
7239
- skipped: "skipped";
7240
7770
  }>;
7241
7771
  task_ids: z.ZodArray<z.ZodString>;
7242
7772
  depends_on_groups: z.ZodArray<z.ZodString>;
@@ -7245,8 +7775,8 @@ export declare const WorkspaceWorkerGroupSchema: z.ZodObject<{
7245
7775
  export type WorkspaceWorkerGroup = z.infer<typeof WorkspaceWorkerGroupSchema>;
7246
7776
  export declare const WorkspacePlanTaskKindSchema: z.ZodEnum<{
7247
7777
  page: "page";
7248
- section: "section";
7249
7778
  layout: "layout";
7779
+ section: "section";
7250
7780
  chrome: "chrome";
7251
7781
  style: "style";
7252
7782
  media: "media";
@@ -7257,8 +7787,8 @@ export declare const WorkspacePlanTaskSchema: z.ZodObject<{
7257
7787
  group_id: z.ZodString;
7258
7788
  kind: z.ZodEnum<{
7259
7789
  page: "page";
7260
- section: "section";
7261
7790
  layout: "layout";
7791
+ section: "section";
7262
7792
  chrome: "chrome";
7263
7793
  style: "style";
7264
7794
  media: "media";
@@ -7278,9 +7808,9 @@ export declare const WorkspacePlanTaskSchema: z.ZodObject<{
7278
7808
  failed: "failed";
7279
7809
  pending: "pending";
7280
7810
  running: "running";
7811
+ skipped: "skipped";
7281
7812
  completed: "completed";
7282
7813
  completed_with_skips: "completed_with_skips";
7283
- skipped: "skipped";
7284
7814
  }>;
7285
7815
  required_reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
7286
7816
  }, z.core.$strip>;
@@ -7289,8 +7819,8 @@ export declare const WorkspacePlanDependencySchema: z.ZodObject<{
7289
7819
  from_group_id: z.ZodString;
7290
7820
  to_group_id: z.ZodString;
7291
7821
  reason: z.ZodEnum<{
7292
- sections: "sections";
7293
7822
  layout: "layout";
7823
+ sections: "sections";
7294
7824
  style_media: "style_media";
7295
7825
  chrome: "chrome";
7296
7826
  page_composition: "page_composition";
@@ -7311,10 +7841,10 @@ export declare const WorkspaceExecutionPlanSchema: z.ZodObject<{
7311
7841
  groups: z.ZodArray<z.ZodObject<{
7312
7842
  group_id: z.ZodString;
7313
7843
  phase: z.ZodEnum<{
7844
+ pages: "pages";
7845
+ layout: "layout";
7314
7846
  sections: "sections";
7315
7847
  preview: "preview";
7316
- layout: "layout";
7317
- pages: "pages";
7318
7848
  repair: "repair";
7319
7849
  style_media: "style_media";
7320
7850
  chrome: "chrome";
@@ -7327,9 +7857,9 @@ export declare const WorkspaceExecutionPlanSchema: z.ZodObject<{
7327
7857
  failed: "failed";
7328
7858
  pending: "pending";
7329
7859
  running: "running";
7860
+ skipped: "skipped";
7330
7861
  completed: "completed";
7331
7862
  completed_with_skips: "completed_with_skips";
7332
- skipped: "skipped";
7333
7863
  }>;
7334
7864
  task_ids: z.ZodArray<z.ZodString>;
7335
7865
  depends_on_groups: z.ZodArray<z.ZodString>;
@@ -7340,8 +7870,8 @@ export declare const WorkspaceExecutionPlanSchema: z.ZodObject<{
7340
7870
  group_id: z.ZodString;
7341
7871
  kind: z.ZodEnum<{
7342
7872
  page: "page";
7343
- section: "section";
7344
7873
  layout: "layout";
7874
+ section: "section";
7345
7875
  chrome: "chrome";
7346
7876
  style: "style";
7347
7877
  media: "media";
@@ -7361,9 +7891,9 @@ export declare const WorkspaceExecutionPlanSchema: z.ZodObject<{
7361
7891
  failed: "failed";
7362
7892
  pending: "pending";
7363
7893
  running: "running";
7894
+ skipped: "skipped";
7364
7895
  completed: "completed";
7365
7896
  completed_with_skips: "completed_with_skips";
7366
- skipped: "skipped";
7367
7897
  }>;
7368
7898
  required_reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
7369
7899
  }, z.core.$strip>>;
@@ -7371,8 +7901,8 @@ export declare const WorkspaceExecutionPlanSchema: z.ZodObject<{
7371
7901
  from_group_id: z.ZodString;
7372
7902
  to_group_id: z.ZodString;
7373
7903
  reason: z.ZodEnum<{
7374
- sections: "sections";
7375
7904
  layout: "layout";
7905
+ sections: "sections";
7376
7906
  style_media: "style_media";
7377
7907
  chrome: "chrome";
7378
7908
  page_composition: "page_composition";
@@ -7405,9 +7935,9 @@ export declare const WorkspaceWorkerResultSchema: z.ZodObject<{
7405
7935
  failed: "failed";
7406
7936
  pending: "pending";
7407
7937
  running: "running";
7938
+ skipped: "skipped";
7408
7939
  completed: "completed";
7409
7940
  completed_with_skips: "completed_with_skips";
7410
- skipped: "skipped";
7411
7941
  }>;
7412
7942
  }, z.core.$strip>;
7413
7943
  export type WorkspaceWorkerResult = z.infer<typeof WorkspaceWorkerResultSchema>;
@@ -7799,8 +8329,8 @@ export declare const AgentEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7799
8329
  confirmedChoices: z.ZodOptional<z.ZodObject<{
7800
8330
  conversion: z.ZodOptional<z.ZodObject<{
7801
8331
  protocol: z.ZodEnum<{
7802
- phone: "phone";
7803
8332
  external: "external";
8333
+ phone: "phone";
7804
8334
  route: "route";
7805
8335
  form: "form";
7806
8336
  download: "download";
@@ -7873,10 +8403,10 @@ export declare const AgentEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7873
8403
  groups: z.ZodArray<z.ZodObject<{
7874
8404
  group_id: z.ZodString;
7875
8405
  phase: z.ZodEnum<{
8406
+ pages: "pages";
8407
+ layout: "layout";
7876
8408
  sections: "sections";
7877
8409
  preview: "preview";
7878
- layout: "layout";
7879
- pages: "pages";
7880
8410
  repair: "repair";
7881
8411
  style_media: "style_media";
7882
8412
  chrome: "chrome";
@@ -7889,9 +8419,9 @@ export declare const AgentEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7889
8419
  failed: "failed";
7890
8420
  pending: "pending";
7891
8421
  running: "running";
8422
+ skipped: "skipped";
7892
8423
  completed: "completed";
7893
8424
  completed_with_skips: "completed_with_skips";
7894
- skipped: "skipped";
7895
8425
  }>;
7896
8426
  task_ids: z.ZodArray<z.ZodString>;
7897
8427
  depends_on_groups: z.ZodArray<z.ZodString>;
@@ -7902,8 +8432,8 @@ export declare const AgentEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7902
8432
  group_id: z.ZodString;
7903
8433
  kind: z.ZodEnum<{
7904
8434
  page: "page";
7905
- section: "section";
7906
8435
  layout: "layout";
8436
+ section: "section";
7907
8437
  chrome: "chrome";
7908
8438
  style: "style";
7909
8439
  media: "media";
@@ -7923,9 +8453,9 @@ export declare const AgentEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7923
8453
  failed: "failed";
7924
8454
  pending: "pending";
7925
8455
  running: "running";
8456
+ skipped: "skipped";
7926
8457
  completed: "completed";
7927
8458
  completed_with_skips: "completed_with_skips";
7928
- skipped: "skipped";
7929
8459
  }>;
7930
8460
  required_reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
7931
8461
  }, z.core.$strip>>;
@@ -7933,8 +8463,8 @@ export declare const AgentEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7933
8463
  from_group_id: z.ZodString;
7934
8464
  to_group_id: z.ZodString;
7935
8465
  reason: z.ZodEnum<{
7936
- sections: "sections";
7937
8466
  layout: "layout";
8467
+ sections: "sections";
7938
8468
  style_media: "style_media";
7939
8469
  chrome: "chrome";
7940
8470
  page_composition: "page_composition";
@@ -7959,10 +8489,10 @@ export declare const AgentEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7959
8489
  type: z.ZodLiteral<"workspace.worker.updated">;
7960
8490
  group_id: z.ZodString;
7961
8491
  phase: z.ZodEnum<{
8492
+ pages: "pages";
8493
+ layout: "layout";
7962
8494
  sections: "sections";
7963
8495
  preview: "preview";
7964
- layout: "layout";
7965
- pages: "pages";
7966
8496
  repair: "repair";
7967
8497
  style_media: "style_media";
7968
8498
  chrome: "chrome";
@@ -7974,9 +8504,9 @@ export declare const AgentEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7974
8504
  failed: "failed";
7975
8505
  pending: "pending";
7976
8506
  running: "running";
8507
+ skipped: "skipped";
7977
8508
  completed: "completed";
7978
8509
  completed_with_skips: "completed_with_skips";
7979
- skipped: "skipped";
7980
8510
  }>;
7981
8511
  task_counts: z.ZodObject<{
7982
8512
  pending: z.ZodNumber;
@@ -7997,9 +8527,9 @@ export declare const AgentEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7997
8527
  failed: "failed";
7998
8528
  pending: "pending";
7999
8529
  running: "running";
8530
+ skipped: "skipped";
8000
8531
  completed: "completed";
8001
8532
  completed_with_skips: "completed_with_skips";
8002
- skipped: "skipped";
8003
8533
  }>;
8004
8534
  target_path: z.ZodString;
8005
8535
  read_files_count: z.ZodNumber;
@@ -8112,10 +8642,10 @@ export declare const AgentEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
8112
8642
  message: z.ZodString;
8113
8643
  error_category: z.ZodOptional<z.ZodEnum<{
8114
8644
  unknown: "unknown";
8645
+ aborted: "aborted";
8115
8646
  model_schema_invalid: "model_schema_invalid";
8116
8647
  provider_rate_limited: "provider_rate_limited";
8117
8648
  provider_unavailable: "provider_unavailable";
8118
- aborted: "aborted";
8119
8649
  }>>;
8120
8650
  retryable: z.ZodOptional<z.ZodBoolean>;
8121
8651
  attempts: z.ZodOptional<z.ZodNumber>;
@@ -8163,8 +8693,8 @@ export declare const AgentEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
8163
8693
  parent_activity_id: z.ZodOptional<z.ZodString>;
8164
8694
  kind: z.ZodEnum<{
8165
8695
  preview: "preview";
8166
- model_call: "model_call";
8167
8696
  validation: "validation";
8697
+ model_call: "model_call";
8168
8698
  repair: "repair";
8169
8699
  worker_group: "worker_group";
8170
8700
  }>;
@@ -8517,8 +9047,8 @@ export declare const AgentEventRecordSchema: z.ZodObject<{
8517
9047
  confirmedChoices: z.ZodOptional<z.ZodObject<{
8518
9048
  conversion: z.ZodOptional<z.ZodObject<{
8519
9049
  protocol: z.ZodEnum<{
8520
- phone: "phone";
8521
9050
  external: "external";
9051
+ phone: "phone";
8522
9052
  route: "route";
8523
9053
  form: "form";
8524
9054
  download: "download";
@@ -8591,10 +9121,10 @@ export declare const AgentEventRecordSchema: z.ZodObject<{
8591
9121
  groups: z.ZodArray<z.ZodObject<{
8592
9122
  group_id: z.ZodString;
8593
9123
  phase: z.ZodEnum<{
9124
+ pages: "pages";
9125
+ layout: "layout";
8594
9126
  sections: "sections";
8595
9127
  preview: "preview";
8596
- layout: "layout";
8597
- pages: "pages";
8598
9128
  repair: "repair";
8599
9129
  style_media: "style_media";
8600
9130
  chrome: "chrome";
@@ -8607,9 +9137,9 @@ export declare const AgentEventRecordSchema: z.ZodObject<{
8607
9137
  failed: "failed";
8608
9138
  pending: "pending";
8609
9139
  running: "running";
9140
+ skipped: "skipped";
8610
9141
  completed: "completed";
8611
9142
  completed_with_skips: "completed_with_skips";
8612
- skipped: "skipped";
8613
9143
  }>;
8614
9144
  task_ids: z.ZodArray<z.ZodString>;
8615
9145
  depends_on_groups: z.ZodArray<z.ZodString>;
@@ -8620,8 +9150,8 @@ export declare const AgentEventRecordSchema: z.ZodObject<{
8620
9150
  group_id: z.ZodString;
8621
9151
  kind: z.ZodEnum<{
8622
9152
  page: "page";
8623
- section: "section";
8624
9153
  layout: "layout";
9154
+ section: "section";
8625
9155
  chrome: "chrome";
8626
9156
  style: "style";
8627
9157
  media: "media";
@@ -8641,9 +9171,9 @@ export declare const AgentEventRecordSchema: z.ZodObject<{
8641
9171
  failed: "failed";
8642
9172
  pending: "pending";
8643
9173
  running: "running";
9174
+ skipped: "skipped";
8644
9175
  completed: "completed";
8645
9176
  completed_with_skips: "completed_with_skips";
8646
- skipped: "skipped";
8647
9177
  }>;
8648
9178
  required_reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
8649
9179
  }, z.core.$strip>>;
@@ -8651,8 +9181,8 @@ export declare const AgentEventRecordSchema: z.ZodObject<{
8651
9181
  from_group_id: z.ZodString;
8652
9182
  to_group_id: z.ZodString;
8653
9183
  reason: z.ZodEnum<{
8654
- sections: "sections";
8655
9184
  layout: "layout";
9185
+ sections: "sections";
8656
9186
  style_media: "style_media";
8657
9187
  chrome: "chrome";
8658
9188
  page_composition: "page_composition";
@@ -8677,10 +9207,10 @@ export declare const AgentEventRecordSchema: z.ZodObject<{
8677
9207
  type: z.ZodLiteral<"workspace.worker.updated">;
8678
9208
  group_id: z.ZodString;
8679
9209
  phase: z.ZodEnum<{
9210
+ pages: "pages";
9211
+ layout: "layout";
8680
9212
  sections: "sections";
8681
9213
  preview: "preview";
8682
- layout: "layout";
8683
- pages: "pages";
8684
9214
  repair: "repair";
8685
9215
  style_media: "style_media";
8686
9216
  chrome: "chrome";
@@ -8692,9 +9222,9 @@ export declare const AgentEventRecordSchema: z.ZodObject<{
8692
9222
  failed: "failed";
8693
9223
  pending: "pending";
8694
9224
  running: "running";
9225
+ skipped: "skipped";
8695
9226
  completed: "completed";
8696
9227
  completed_with_skips: "completed_with_skips";
8697
- skipped: "skipped";
8698
9228
  }>;
8699
9229
  task_counts: z.ZodObject<{
8700
9230
  pending: z.ZodNumber;
@@ -8715,9 +9245,9 @@ export declare const AgentEventRecordSchema: z.ZodObject<{
8715
9245
  failed: "failed";
8716
9246
  pending: "pending";
8717
9247
  running: "running";
9248
+ skipped: "skipped";
8718
9249
  completed: "completed";
8719
9250
  completed_with_skips: "completed_with_skips";
8720
- skipped: "skipped";
8721
9251
  }>;
8722
9252
  target_path: z.ZodString;
8723
9253
  read_files_count: z.ZodNumber;
@@ -8830,10 +9360,10 @@ export declare const AgentEventRecordSchema: z.ZodObject<{
8830
9360
  message: z.ZodString;
8831
9361
  error_category: z.ZodOptional<z.ZodEnum<{
8832
9362
  unknown: "unknown";
9363
+ aborted: "aborted";
8833
9364
  model_schema_invalid: "model_schema_invalid";
8834
9365
  provider_rate_limited: "provider_rate_limited";
8835
9366
  provider_unavailable: "provider_unavailable";
8836
- aborted: "aborted";
8837
9367
  }>>;
8838
9368
  retryable: z.ZodOptional<z.ZodBoolean>;
8839
9369
  attempts: z.ZodOptional<z.ZodNumber>;
@@ -8881,8 +9411,8 @@ export declare const AgentEventRecordSchema: z.ZodObject<{
8881
9411
  parent_activity_id: z.ZodOptional<z.ZodString>;
8882
9412
  kind: z.ZodEnum<{
8883
9413
  preview: "preview";
8884
- model_call: "model_call";
8885
9414
  validation: "validation";
9415
+ model_call: "model_call";
8886
9416
  repair: "repair";
8887
9417
  worker_group: "worker_group";
8888
9418
  }>;
@@ -9232,8 +9762,8 @@ export declare const AppendAgentEventRequestSchema: z.ZodObject<{
9232
9762
  confirmedChoices: z.ZodOptional<z.ZodObject<{
9233
9763
  conversion: z.ZodOptional<z.ZodObject<{
9234
9764
  protocol: z.ZodEnum<{
9235
- phone: "phone";
9236
9765
  external: "external";
9766
+ phone: "phone";
9237
9767
  route: "route";
9238
9768
  form: "form";
9239
9769
  download: "download";
@@ -9306,10 +9836,10 @@ export declare const AppendAgentEventRequestSchema: z.ZodObject<{
9306
9836
  groups: z.ZodArray<z.ZodObject<{
9307
9837
  group_id: z.ZodString;
9308
9838
  phase: z.ZodEnum<{
9839
+ pages: "pages";
9840
+ layout: "layout";
9309
9841
  sections: "sections";
9310
9842
  preview: "preview";
9311
- layout: "layout";
9312
- pages: "pages";
9313
9843
  repair: "repair";
9314
9844
  style_media: "style_media";
9315
9845
  chrome: "chrome";
@@ -9322,9 +9852,9 @@ export declare const AppendAgentEventRequestSchema: z.ZodObject<{
9322
9852
  failed: "failed";
9323
9853
  pending: "pending";
9324
9854
  running: "running";
9855
+ skipped: "skipped";
9325
9856
  completed: "completed";
9326
9857
  completed_with_skips: "completed_with_skips";
9327
- skipped: "skipped";
9328
9858
  }>;
9329
9859
  task_ids: z.ZodArray<z.ZodString>;
9330
9860
  depends_on_groups: z.ZodArray<z.ZodString>;
@@ -9335,8 +9865,8 @@ export declare const AppendAgentEventRequestSchema: z.ZodObject<{
9335
9865
  group_id: z.ZodString;
9336
9866
  kind: z.ZodEnum<{
9337
9867
  page: "page";
9338
- section: "section";
9339
9868
  layout: "layout";
9869
+ section: "section";
9340
9870
  chrome: "chrome";
9341
9871
  style: "style";
9342
9872
  media: "media";
@@ -9356,9 +9886,9 @@ export declare const AppendAgentEventRequestSchema: z.ZodObject<{
9356
9886
  failed: "failed";
9357
9887
  pending: "pending";
9358
9888
  running: "running";
9889
+ skipped: "skipped";
9359
9890
  completed: "completed";
9360
9891
  completed_with_skips: "completed_with_skips";
9361
- skipped: "skipped";
9362
9892
  }>;
9363
9893
  required_reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
9364
9894
  }, z.core.$strip>>;
@@ -9366,8 +9896,8 @@ export declare const AppendAgentEventRequestSchema: z.ZodObject<{
9366
9896
  from_group_id: z.ZodString;
9367
9897
  to_group_id: z.ZodString;
9368
9898
  reason: z.ZodEnum<{
9369
- sections: "sections";
9370
9899
  layout: "layout";
9900
+ sections: "sections";
9371
9901
  style_media: "style_media";
9372
9902
  chrome: "chrome";
9373
9903
  page_composition: "page_composition";
@@ -9392,10 +9922,10 @@ export declare const AppendAgentEventRequestSchema: z.ZodObject<{
9392
9922
  type: z.ZodLiteral<"workspace.worker.updated">;
9393
9923
  group_id: z.ZodString;
9394
9924
  phase: z.ZodEnum<{
9925
+ pages: "pages";
9926
+ layout: "layout";
9395
9927
  sections: "sections";
9396
9928
  preview: "preview";
9397
- layout: "layout";
9398
- pages: "pages";
9399
9929
  repair: "repair";
9400
9930
  style_media: "style_media";
9401
9931
  chrome: "chrome";
@@ -9407,9 +9937,9 @@ export declare const AppendAgentEventRequestSchema: z.ZodObject<{
9407
9937
  failed: "failed";
9408
9938
  pending: "pending";
9409
9939
  running: "running";
9940
+ skipped: "skipped";
9410
9941
  completed: "completed";
9411
9942
  completed_with_skips: "completed_with_skips";
9412
- skipped: "skipped";
9413
9943
  }>;
9414
9944
  task_counts: z.ZodObject<{
9415
9945
  pending: z.ZodNumber;
@@ -9430,9 +9960,9 @@ export declare const AppendAgentEventRequestSchema: z.ZodObject<{
9430
9960
  failed: "failed";
9431
9961
  pending: "pending";
9432
9962
  running: "running";
9963
+ skipped: "skipped";
9433
9964
  completed: "completed";
9434
9965
  completed_with_skips: "completed_with_skips";
9435
- skipped: "skipped";
9436
9966
  }>;
9437
9967
  target_path: z.ZodString;
9438
9968
  read_files_count: z.ZodNumber;
@@ -9545,10 +10075,10 @@ export declare const AppendAgentEventRequestSchema: z.ZodObject<{
9545
10075
  message: z.ZodString;
9546
10076
  error_category: z.ZodOptional<z.ZodEnum<{
9547
10077
  unknown: "unknown";
10078
+ aborted: "aborted";
9548
10079
  model_schema_invalid: "model_schema_invalid";
9549
10080
  provider_rate_limited: "provider_rate_limited";
9550
10081
  provider_unavailable: "provider_unavailable";
9551
- aborted: "aborted";
9552
10082
  }>>;
9553
10083
  retryable: z.ZodOptional<z.ZodBoolean>;
9554
10084
  attempts: z.ZodOptional<z.ZodNumber>;
@@ -9596,8 +10126,8 @@ export declare const AppendAgentEventRequestSchema: z.ZodObject<{
9596
10126
  parent_activity_id: z.ZodOptional<z.ZodString>;
9597
10127
  kind: z.ZodEnum<{
9598
10128
  preview: "preview";
9599
- model_call: "model_call";
9600
10129
  validation: "validation";
10130
+ model_call: "model_call";
9601
10131
  repair: "repair";
9602
10132
  worker_group: "worker_group";
9603
10133
  }>;
@@ -9986,8 +10516,8 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
9986
10516
  confirmedChoices: z.ZodOptional<z.ZodObject<{
9987
10517
  conversion: z.ZodOptional<z.ZodObject<{
9988
10518
  protocol: z.ZodEnum<{
9989
- phone: "phone";
9990
10519
  external: "external";
10520
+ phone: "phone";
9991
10521
  route: "route";
9992
10522
  form: "form";
9993
10523
  download: "download";
@@ -10060,10 +10590,10 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
10060
10590
  groups: z.ZodArray<z.ZodObject<{
10061
10591
  group_id: z.ZodString;
10062
10592
  phase: z.ZodEnum<{
10593
+ pages: "pages";
10594
+ layout: "layout";
10063
10595
  sections: "sections";
10064
10596
  preview: "preview";
10065
- layout: "layout";
10066
- pages: "pages";
10067
10597
  repair: "repair";
10068
10598
  style_media: "style_media";
10069
10599
  chrome: "chrome";
@@ -10076,9 +10606,9 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
10076
10606
  failed: "failed";
10077
10607
  pending: "pending";
10078
10608
  running: "running";
10609
+ skipped: "skipped";
10079
10610
  completed: "completed";
10080
10611
  completed_with_skips: "completed_with_skips";
10081
- skipped: "skipped";
10082
10612
  }>;
10083
10613
  task_ids: z.ZodArray<z.ZodString>;
10084
10614
  depends_on_groups: z.ZodArray<z.ZodString>;
@@ -10089,8 +10619,8 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
10089
10619
  group_id: z.ZodString;
10090
10620
  kind: z.ZodEnum<{
10091
10621
  page: "page";
10092
- section: "section";
10093
10622
  layout: "layout";
10623
+ section: "section";
10094
10624
  chrome: "chrome";
10095
10625
  style: "style";
10096
10626
  media: "media";
@@ -10110,9 +10640,9 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
10110
10640
  failed: "failed";
10111
10641
  pending: "pending";
10112
10642
  running: "running";
10643
+ skipped: "skipped";
10113
10644
  completed: "completed";
10114
10645
  completed_with_skips: "completed_with_skips";
10115
- skipped: "skipped";
10116
10646
  }>;
10117
10647
  required_reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
10118
10648
  }, z.core.$strip>>;
@@ -10120,8 +10650,8 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
10120
10650
  from_group_id: z.ZodString;
10121
10651
  to_group_id: z.ZodString;
10122
10652
  reason: z.ZodEnum<{
10123
- sections: "sections";
10124
10653
  layout: "layout";
10654
+ sections: "sections";
10125
10655
  style_media: "style_media";
10126
10656
  chrome: "chrome";
10127
10657
  page_composition: "page_composition";
@@ -10146,10 +10676,10 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
10146
10676
  type: z.ZodLiteral<"workspace.worker.updated">;
10147
10677
  group_id: z.ZodString;
10148
10678
  phase: z.ZodEnum<{
10679
+ pages: "pages";
10680
+ layout: "layout";
10149
10681
  sections: "sections";
10150
10682
  preview: "preview";
10151
- layout: "layout";
10152
- pages: "pages";
10153
10683
  repair: "repair";
10154
10684
  style_media: "style_media";
10155
10685
  chrome: "chrome";
@@ -10161,9 +10691,9 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
10161
10691
  failed: "failed";
10162
10692
  pending: "pending";
10163
10693
  running: "running";
10694
+ skipped: "skipped";
10164
10695
  completed: "completed";
10165
10696
  completed_with_skips: "completed_with_skips";
10166
- skipped: "skipped";
10167
10697
  }>;
10168
10698
  task_counts: z.ZodObject<{
10169
10699
  pending: z.ZodNumber;
@@ -10184,9 +10714,9 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
10184
10714
  failed: "failed";
10185
10715
  pending: "pending";
10186
10716
  running: "running";
10717
+ skipped: "skipped";
10187
10718
  completed: "completed";
10188
10719
  completed_with_skips: "completed_with_skips";
10189
- skipped: "skipped";
10190
10720
  }>;
10191
10721
  target_path: z.ZodString;
10192
10722
  read_files_count: z.ZodNumber;
@@ -10299,10 +10829,10 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
10299
10829
  message: z.ZodString;
10300
10830
  error_category: z.ZodOptional<z.ZodEnum<{
10301
10831
  unknown: "unknown";
10832
+ aborted: "aborted";
10302
10833
  model_schema_invalid: "model_schema_invalid";
10303
10834
  provider_rate_limited: "provider_rate_limited";
10304
10835
  provider_unavailable: "provider_unavailable";
10305
- aborted: "aborted";
10306
10836
  }>>;
10307
10837
  retryable: z.ZodOptional<z.ZodBoolean>;
10308
10838
  attempts: z.ZodOptional<z.ZodNumber>;
@@ -10350,8 +10880,8 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
10350
10880
  parent_activity_id: z.ZodOptional<z.ZodString>;
10351
10881
  kind: z.ZodEnum<{
10352
10882
  preview: "preview";
10353
- model_call: "model_call";
10354
10883
  validation: "validation";
10884
+ model_call: "model_call";
10355
10885
  repair: "repair";
10356
10886
  worker_group: "worker_group";
10357
10887
  }>;
@@ -10741,8 +11271,8 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
10741
11271
  confirmedChoices: z.ZodOptional<z.ZodObject<{
10742
11272
  conversion: z.ZodOptional<z.ZodObject<{
10743
11273
  protocol: z.ZodEnum<{
10744
- phone: "phone";
10745
11274
  external: "external";
11275
+ phone: "phone";
10746
11276
  route: "route";
10747
11277
  form: "form";
10748
11278
  download: "download";
@@ -10815,10 +11345,10 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
10815
11345
  groups: z.ZodArray<z.ZodObject<{
10816
11346
  group_id: z.ZodString;
10817
11347
  phase: z.ZodEnum<{
11348
+ pages: "pages";
11349
+ layout: "layout";
10818
11350
  sections: "sections";
10819
11351
  preview: "preview";
10820
- layout: "layout";
10821
- pages: "pages";
10822
11352
  repair: "repair";
10823
11353
  style_media: "style_media";
10824
11354
  chrome: "chrome";
@@ -10831,9 +11361,9 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
10831
11361
  failed: "failed";
10832
11362
  pending: "pending";
10833
11363
  running: "running";
11364
+ skipped: "skipped";
10834
11365
  completed: "completed";
10835
11366
  completed_with_skips: "completed_with_skips";
10836
- skipped: "skipped";
10837
11367
  }>;
10838
11368
  task_ids: z.ZodArray<z.ZodString>;
10839
11369
  depends_on_groups: z.ZodArray<z.ZodString>;
@@ -10844,8 +11374,8 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
10844
11374
  group_id: z.ZodString;
10845
11375
  kind: z.ZodEnum<{
10846
11376
  page: "page";
10847
- section: "section";
10848
11377
  layout: "layout";
11378
+ section: "section";
10849
11379
  chrome: "chrome";
10850
11380
  style: "style";
10851
11381
  media: "media";
@@ -10865,9 +11395,9 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
10865
11395
  failed: "failed";
10866
11396
  pending: "pending";
10867
11397
  running: "running";
11398
+ skipped: "skipped";
10868
11399
  completed: "completed";
10869
11400
  completed_with_skips: "completed_with_skips";
10870
- skipped: "skipped";
10871
11401
  }>;
10872
11402
  required_reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
10873
11403
  }, z.core.$strip>>;
@@ -10875,8 +11405,8 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
10875
11405
  from_group_id: z.ZodString;
10876
11406
  to_group_id: z.ZodString;
10877
11407
  reason: z.ZodEnum<{
10878
- sections: "sections";
10879
11408
  layout: "layout";
11409
+ sections: "sections";
10880
11410
  style_media: "style_media";
10881
11411
  chrome: "chrome";
10882
11412
  page_composition: "page_composition";
@@ -10901,10 +11431,10 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
10901
11431
  type: z.ZodLiteral<"workspace.worker.updated">;
10902
11432
  group_id: z.ZodString;
10903
11433
  phase: z.ZodEnum<{
11434
+ pages: "pages";
11435
+ layout: "layout";
10904
11436
  sections: "sections";
10905
11437
  preview: "preview";
10906
- layout: "layout";
10907
- pages: "pages";
10908
11438
  repair: "repair";
10909
11439
  style_media: "style_media";
10910
11440
  chrome: "chrome";
@@ -10916,9 +11446,9 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
10916
11446
  failed: "failed";
10917
11447
  pending: "pending";
10918
11448
  running: "running";
11449
+ skipped: "skipped";
10919
11450
  completed: "completed";
10920
11451
  completed_with_skips: "completed_with_skips";
10921
- skipped: "skipped";
10922
11452
  }>;
10923
11453
  task_counts: z.ZodObject<{
10924
11454
  pending: z.ZodNumber;
@@ -10939,9 +11469,9 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
10939
11469
  failed: "failed";
10940
11470
  pending: "pending";
10941
11471
  running: "running";
11472
+ skipped: "skipped";
10942
11473
  completed: "completed";
10943
11474
  completed_with_skips: "completed_with_skips";
10944
- skipped: "skipped";
10945
11475
  }>;
10946
11476
  target_path: z.ZodString;
10947
11477
  read_files_count: z.ZodNumber;
@@ -11054,10 +11584,10 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
11054
11584
  message: z.ZodString;
11055
11585
  error_category: z.ZodOptional<z.ZodEnum<{
11056
11586
  unknown: "unknown";
11587
+ aborted: "aborted";
11057
11588
  model_schema_invalid: "model_schema_invalid";
11058
11589
  provider_rate_limited: "provider_rate_limited";
11059
11590
  provider_unavailable: "provider_unavailable";
11060
- aborted: "aborted";
11061
11591
  }>>;
11062
11592
  retryable: z.ZodOptional<z.ZodBoolean>;
11063
11593
  attempts: z.ZodOptional<z.ZodNumber>;
@@ -11105,8 +11635,8 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
11105
11635
  parent_activity_id: z.ZodOptional<z.ZodString>;
11106
11636
  kind: z.ZodEnum<{
11107
11637
  preview: "preview";
11108
- model_call: "model_call";
11109
11638
  validation: "validation";
11639
+ model_call: "model_call";
11110
11640
  repair: "repair";
11111
11641
  worker_group: "worker_group";
11112
11642
  }>;
@@ -11464,8 +11994,8 @@ export declare const ListAgentEventsResponseSchema: z.ZodObject<{
11464
11994
  confirmedChoices: z.ZodOptional<z.ZodObject<{
11465
11995
  conversion: z.ZodOptional<z.ZodObject<{
11466
11996
  protocol: z.ZodEnum<{
11467
- phone: "phone";
11468
11997
  external: "external";
11998
+ phone: "phone";
11469
11999
  route: "route";
11470
12000
  form: "form";
11471
12001
  download: "download";
@@ -11538,10 +12068,10 @@ export declare const ListAgentEventsResponseSchema: z.ZodObject<{
11538
12068
  groups: z.ZodArray<z.ZodObject<{
11539
12069
  group_id: z.ZodString;
11540
12070
  phase: z.ZodEnum<{
12071
+ pages: "pages";
12072
+ layout: "layout";
11541
12073
  sections: "sections";
11542
12074
  preview: "preview";
11543
- layout: "layout";
11544
- pages: "pages";
11545
12075
  repair: "repair";
11546
12076
  style_media: "style_media";
11547
12077
  chrome: "chrome";
@@ -11554,9 +12084,9 @@ export declare const ListAgentEventsResponseSchema: z.ZodObject<{
11554
12084
  failed: "failed";
11555
12085
  pending: "pending";
11556
12086
  running: "running";
12087
+ skipped: "skipped";
11557
12088
  completed: "completed";
11558
12089
  completed_with_skips: "completed_with_skips";
11559
- skipped: "skipped";
11560
12090
  }>;
11561
12091
  task_ids: z.ZodArray<z.ZodString>;
11562
12092
  depends_on_groups: z.ZodArray<z.ZodString>;
@@ -11567,8 +12097,8 @@ export declare const ListAgentEventsResponseSchema: z.ZodObject<{
11567
12097
  group_id: z.ZodString;
11568
12098
  kind: z.ZodEnum<{
11569
12099
  page: "page";
11570
- section: "section";
11571
12100
  layout: "layout";
12101
+ section: "section";
11572
12102
  chrome: "chrome";
11573
12103
  style: "style";
11574
12104
  media: "media";
@@ -11588,9 +12118,9 @@ export declare const ListAgentEventsResponseSchema: z.ZodObject<{
11588
12118
  failed: "failed";
11589
12119
  pending: "pending";
11590
12120
  running: "running";
12121
+ skipped: "skipped";
11591
12122
  completed: "completed";
11592
12123
  completed_with_skips: "completed_with_skips";
11593
- skipped: "skipped";
11594
12124
  }>;
11595
12125
  required_reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
11596
12126
  }, z.core.$strip>>;
@@ -11598,8 +12128,8 @@ export declare const ListAgentEventsResponseSchema: z.ZodObject<{
11598
12128
  from_group_id: z.ZodString;
11599
12129
  to_group_id: z.ZodString;
11600
12130
  reason: z.ZodEnum<{
11601
- sections: "sections";
11602
12131
  layout: "layout";
12132
+ sections: "sections";
11603
12133
  style_media: "style_media";
11604
12134
  chrome: "chrome";
11605
12135
  page_composition: "page_composition";
@@ -11624,10 +12154,10 @@ export declare const ListAgentEventsResponseSchema: z.ZodObject<{
11624
12154
  type: z.ZodLiteral<"workspace.worker.updated">;
11625
12155
  group_id: z.ZodString;
11626
12156
  phase: z.ZodEnum<{
12157
+ pages: "pages";
12158
+ layout: "layout";
11627
12159
  sections: "sections";
11628
12160
  preview: "preview";
11629
- layout: "layout";
11630
- pages: "pages";
11631
12161
  repair: "repair";
11632
12162
  style_media: "style_media";
11633
12163
  chrome: "chrome";
@@ -11639,9 +12169,9 @@ export declare const ListAgentEventsResponseSchema: z.ZodObject<{
11639
12169
  failed: "failed";
11640
12170
  pending: "pending";
11641
12171
  running: "running";
12172
+ skipped: "skipped";
11642
12173
  completed: "completed";
11643
12174
  completed_with_skips: "completed_with_skips";
11644
- skipped: "skipped";
11645
12175
  }>;
11646
12176
  task_counts: z.ZodObject<{
11647
12177
  pending: z.ZodNumber;
@@ -11662,9 +12192,9 @@ export declare const ListAgentEventsResponseSchema: z.ZodObject<{
11662
12192
  failed: "failed";
11663
12193
  pending: "pending";
11664
12194
  running: "running";
12195
+ skipped: "skipped";
11665
12196
  completed: "completed";
11666
12197
  completed_with_skips: "completed_with_skips";
11667
- skipped: "skipped";
11668
12198
  }>;
11669
12199
  target_path: z.ZodString;
11670
12200
  read_files_count: z.ZodNumber;
@@ -11777,10 +12307,10 @@ export declare const ListAgentEventsResponseSchema: z.ZodObject<{
11777
12307
  message: z.ZodString;
11778
12308
  error_category: z.ZodOptional<z.ZodEnum<{
11779
12309
  unknown: "unknown";
12310
+ aborted: "aborted";
11780
12311
  model_schema_invalid: "model_schema_invalid";
11781
12312
  provider_rate_limited: "provider_rate_limited";
11782
12313
  provider_unavailable: "provider_unavailable";
11783
- aborted: "aborted";
11784
12314
  }>>;
11785
12315
  retryable: z.ZodOptional<z.ZodBoolean>;
11786
12316
  attempts: z.ZodOptional<z.ZodNumber>;
@@ -11828,8 +12358,8 @@ export declare const ListAgentEventsResponseSchema: z.ZodObject<{
11828
12358
  parent_activity_id: z.ZodOptional<z.ZodString>;
11829
12359
  kind: z.ZodEnum<{
11830
12360
  preview: "preview";
11831
- model_call: "model_call";
11832
12361
  validation: "validation";
12362
+ model_call: "model_call";
11833
12363
  repair: "repair";
11834
12364
  worker_group: "worker_group";
11835
12365
  }>;
@@ -11912,6 +12442,15 @@ export interface RestApiEndpointContract {
11912
12442
  readonly notes?: readonly string[];
11913
12443
  }
11914
12444
  export declare const REST_API_ENDPOINTS: readonly [{
12445
+ readonly method: "PATCH";
12446
+ readonly path: "/internal/sites/:site_id/snapshots/:snapshot_id/manifest";
12447
+ readonly tag: "snapshots";
12448
+ readonly summary: "Compare-and-set the manifest hash for the active current snapshot after an in-place object replacement.";
12449
+ readonly status: "implemented";
12450
+ readonly request_body_schema: "UpdateCurrentSnapshotManifestRequestSchema";
12451
+ readonly response_schema: "SnapshotRecordSchema";
12452
+ readonly notes: readonly ["Internal Agent authentication is required. The update succeeds only when site current_snapshot_id, snapshot status, object key, and expected manifest hash still match."];
12453
+ }, {
11915
12454
  readonly method: "GET";
11916
12455
  readonly path: "/health";
11917
12456
  readonly tag: "system";
@@ -11956,6 +12495,89 @@ export declare const REST_API_ENDPOINTS: readonly [{
11956
12495
  readonly summary: "Get one tenant-scoped site.";
11957
12496
  readonly status: "implemented";
11958
12497
  readonly response_schema: "SiteRecordSchema";
12498
+ }, {
12499
+ readonly method: "GET";
12500
+ readonly path: "/sites/:site_id/designer/component-library/categories";
12501
+ readonly tag: "designer-component-library";
12502
+ readonly summary: "List the fixed insert-new-component category tree for a site.";
12503
+ readonly status: "implemented";
12504
+ readonly response_schema: "ListDesignerComponentCategoriesResponseSchema";
12505
+ readonly notes: readonly ["The server validates site ownership and fixes category_group_key to insertNewComponent."];
12506
+ }, {
12507
+ readonly method: "GET";
12508
+ readonly path: "/sites/:site_id/designer/component-library/resources";
12509
+ readonly tag: "designer-component-library";
12510
+ readonly summary: "List component resources from the fixed designer catalog group.";
12511
+ readonly status: "implemented";
12512
+ readonly query_schema: "ListDesignerComponentsQuerySchema";
12513
+ readonly response_schema: "ListDesignerComponentsResponseSchema";
12514
+ readonly notes: readonly ["The server fixes resource type to component and does not expose resource-platform secrets, internal hosts, or product-line selection."];
12515
+ }, {
12516
+ readonly method: "POST";
12517
+ readonly path: "/sites/:site_id/designer/component-library/resources/:resource_id/install";
12518
+ readonly tag: "designer-component-library";
12519
+ readonly summary: "Install one exact component version and return a strict SiteEditEngine materialization.";
12520
+ readonly status: "implemented";
12521
+ readonly request_body_schema: "InstallDesignerComponentBodySchema";
12522
+ readonly response_schema: "InstallDesignerComponentResponseSchema";
12523
+ readonly notes: readonly ["The server downloads the resource ZIP with the configured secret, validates main.json identity and compatibility, and returns only the strict materialization plus immutable revision metadata."];
12524
+ }, {
12525
+ readonly method: "GET";
12526
+ readonly path: "/sites/:site_id/designer/page-library/categories";
12527
+ readonly tag: "designer-page-library";
12528
+ readonly summary: "List the fixed insert-new-page category tree for a site.";
12529
+ readonly status: "implemented";
12530
+ readonly response_schema: "ListDesignerPageCategoriesResponseSchema";
12531
+ readonly notes: readonly ["The server validates site ownership and fixes category_group_key to insertNewPage."];
12532
+ }, {
12533
+ readonly method: "GET";
12534
+ readonly path: "/sites/:site_id/designer/page-library/resources";
12535
+ readonly tag: "designer-page-library";
12536
+ readonly summary: "List page and pages resources from the fixed designer catalog.";
12537
+ readonly status: "implemented";
12538
+ readonly query_schema: "ListDesignerPagesQuerySchema";
12539
+ readonly response_schema: "ListDesignerPagesResponseSchema";
12540
+ readonly notes: readonly ["The server fixes resource types to page and pages and does not expose resource-platform credentials or internal routing."];
12541
+ }, {
12542
+ readonly method: "POST";
12543
+ readonly path: "/sites/:site_id/designer/page-library/resources/:resource_id/prepare";
12544
+ readonly tag: "designer-page-library";
12545
+ readonly summary: "Resolve one exact page resource version for designer-side draft configuration.";
12546
+ readonly status: "implemented";
12547
+ readonly request_body_schema: "PrepareDesignerPageBodySchema";
12548
+ readonly response_schema: "PrepareDesignerPageResponseSchema";
12549
+ }, {
12550
+ readonly method: "POST";
12551
+ readonly path: "/sites/:site_id/designer/page-library/resources/:resource_id/install";
12552
+ readonly tag: "designer-page-library";
12553
+ readonly summary: "Install one exact page resource version and return a strict PageResourceArtifact.";
12554
+ readonly status: "implemented";
12555
+ readonly request_body_schema: "InstallDesignerPageBodySchema";
12556
+ readonly response_schema: "InstallDesignerPageResponseSchema";
12557
+ readonly notes: readonly ["The server validates the explicit resource type, immutable package identity, page selections, materializations, and package-local references."];
12558
+ }, {
12559
+ readonly method: "GET";
12560
+ readonly path: "/sites/:site_id/designer/pages";
12561
+ readonly tag: "designer-page-library";
12562
+ readonly summary: "List designer pages from the stable first-phase fixture source.";
12563
+ readonly status: "implemented";
12564
+ readonly response_schema: "ListDesignerSitePagesResponseSchema";
12565
+ }, {
12566
+ readonly method: "POST";
12567
+ readonly path: "/sites/:site_id/designer/page-resources/enhance";
12568
+ readonly tag: "designer-page-library";
12569
+ readonly summary: "Echo a designer page-resource candidate without model execution or normalization.";
12570
+ readonly status: "implemented";
12571
+ readonly request_body_schema: "EnhanceDesignerPageResourceBodySchema";
12572
+ readonly response_schema: "EnhanceDesignerPageResourceResponseSchema";
12573
+ }, {
12574
+ readonly method: "POST";
12575
+ readonly path: "/sites/:site_id/designer/page-resources/blank";
12576
+ readonly tag: "designer-page-library";
12577
+ readonly summary: "Create the deterministic built-in blank page artifact for one configured route.";
12578
+ readonly status: "implemented";
12579
+ readonly request_body_schema: "InstallDesignerPageBodySchema";
12580
+ readonly response_schema: "InstallDesignerPageResponseSchema";
11959
12581
  }, {
11960
12582
  readonly method: "PATCH";
11961
12583
  readonly path: "/sites/:site_id";
@@ -12098,7 +12720,105 @@ export declare const REST_API_ENDPOINTS: readonly [{
12098
12720
  readonly tag: "snapshots";
12099
12721
  readonly summary: "Promote a site snapshot as the current workspace version.";
12100
12722
  readonly status: "implemented";
12723
+ readonly request_body_schema: "PromoteSiteSnapshotRequestSchema";
12101
12724
  readonly response_schema: "PromoteSiteSnapshotResponseSchema";
12725
+ }, {
12726
+ readonly method: "POST";
12727
+ readonly path: "/internal/sites/:site_id/template-upgrade/lock/try-acquire";
12728
+ readonly tag: "snapshots";
12729
+ readonly summary: "Try to acquire the short-lived template-upgrade site lock.";
12730
+ readonly status: "implemented";
12731
+ readonly request_body_schema: "TryAcquireTemplateUpgradeLockRequestSchema";
12732
+ readonly response_schema: "TryAcquireTemplateUpgradeLockResponseSchema";
12733
+ readonly notes: readonly ["Internal agent-only endpoint; lock contention returns acquired=false instead of a user-facing conflict."];
12734
+ }, {
12735
+ readonly method: "POST";
12736
+ readonly path: "/internal/sites/:site_id/template-upgrade/lock/release";
12737
+ readonly tag: "snapshots";
12738
+ readonly summary: "Release the calling template-upgrade attempt's site lock.";
12739
+ readonly status: "implemented";
12740
+ readonly request_body_schema: "ReleaseTemplateUpgradeLockRequestSchema";
12741
+ readonly response_schema: "ReleaseTemplateUpgradeLockResponseSchema";
12742
+ readonly notes: readonly ["Internal agent-only endpoint; release is scoped by tenant, site, operation type, and owner."];
12743
+ }, {
12744
+ readonly method: "POST";
12745
+ readonly path: "/internal/sites/:site_id/template-upgrade/snapshots/:snapshot_id/promote";
12746
+ readonly tag: "snapshots";
12747
+ readonly summary: "CAS-promote a validated template-upgrade candidate and bind its accepted commit atomically.";
12748
+ readonly status: "implemented";
12749
+ readonly request_body_schema: "PromoteTemplateUpgradeSnapshotRequestSchema";
12750
+ readonly response_schema: "PromoteTemplateUpgradeSnapshotResponseSchema";
12751
+ readonly notes: readonly ["Internal agent-only endpoint; accepted_commit is never part of the public promote request or response."];
12752
+ }, {
12753
+ readonly method: "GET";
12754
+ readonly path: "/internal/sites/:site_id/template-upgrade/state";
12755
+ readonly tag: "snapshots";
12756
+ readonly summary: "Inspect the projected tenant-scoped template-upgrade state without mutation.";
12757
+ readonly status: "implemented";
12758
+ readonly query_schema: "InspectTemplateUpgradeStateRequestSchema";
12759
+ readonly response_schema: "InspectTemplateUpgradeStateResponseSchema";
12760
+ readonly notes: readonly ["Internal agent-only endpoint; tenant identity is derived from trusted request context and the repository path is read-only."];
12761
+ }, {
12762
+ readonly method: "POST";
12763
+ readonly path: "/internal/sites/:site_id/template-upgrade/state/prepare";
12764
+ readonly tag: "snapshots";
12765
+ readonly summary: "Prepare the tenant-scoped template-upgrade retry state for a target version.";
12766
+ readonly status: "implemented";
12767
+ readonly request_body_schema: "PrepareTemplateUpgradeStateRequestSchema";
12768
+ readonly response_schema: "PrepareTemplateUpgradeStateResponseSchema";
12769
+ readonly notes: readonly ["Internal agent-only endpoint; tenant identity is derived from trusted request context and is never accepted in the request body."];
12770
+ }, {
12771
+ readonly method: "POST";
12772
+ readonly path: "/internal/sites/:site_id/template-upgrade/state/failure";
12773
+ readonly tag: "snapshots";
12774
+ readonly summary: "Record a finite validation failure for the prepared template-upgrade target.";
12775
+ readonly status: "implemented";
12776
+ readonly request_body_schema: "RecordTemplateUpgradeFailureRequestSchema";
12777
+ readonly response_schema: "RecordTemplateUpgradeFailureResponseSchema";
12778
+ readonly notes: readonly ["Internal agent-only endpoint; accepts a finite error code and never raw validation output."];
12779
+ }, {
12780
+ readonly method: "POST";
12781
+ readonly path: "/internal/sites/:site_id/template-upgrade/state/success";
12782
+ readonly tag: "snapshots";
12783
+ readonly summary: "Reset retry state after the prepared template-upgrade target succeeds.";
12784
+ readonly status: "implemented";
12785
+ readonly request_body_schema: "RecordTemplateUpgradeSuccessRequestSchema";
12786
+ readonly response_schema: "RecordTemplateUpgradeSuccessResponseSchema";
12787
+ readonly notes: readonly ["Internal agent-only endpoint; tenant identity is derived from trusted request context and is never accepted in the request body."];
12788
+ }, {
12789
+ readonly method: "POST";
12790
+ readonly path: "/internal/sites/:site_id/template-upgrade/events";
12791
+ readonly tag: "snapshots";
12792
+ readonly summary: "Record one bounded template-upgrade observability event.";
12793
+ readonly status: "implemented";
12794
+ readonly request_body_schema: "RecordTemplateUpgradeEventRequestSchema";
12795
+ readonly response_schema: "RecordTemplateUpgradeEventResponseSchema";
12796
+ readonly notes: readonly ["Internal agent-only endpoint; tenant identity is derived from trusted request context and the strict request excludes raw errors, source content, and file paths."];
12797
+ }, {
12798
+ readonly method: "GET";
12799
+ readonly path: "/internal/template-upgrades/report";
12800
+ readonly tag: "snapshots";
12801
+ readonly summary: "Read tenant-scoped template-upgrade outcome, state, and duration aggregates.";
12802
+ readonly status: "implemented";
12803
+ readonly query_schema: "GetTemplateUpgradeReportQuerySchema";
12804
+ readonly response_schema: "GetTemplateUpgradeReportResponseSchema";
12805
+ readonly notes: readonly ["Internal endpoint; tenant identity is derived from trusted request context and all aggregates are tenant-scoped."];
12806
+ }, {
12807
+ readonly method: "GET";
12808
+ readonly path: "/internal/template-upgrades/snapshot-deletions/pending";
12809
+ readonly tag: "snapshots";
12810
+ readonly summary: "List tenant-scoped stale template-upgrade snapshot deletions for dry-run or reconciliation.";
12811
+ readonly status: "implemented";
12812
+ readonly query_schema: "ListTemplateUpgradeSnapshotDeletionCandidatesQuerySchema";
12813
+ readonly response_schema: "ListTemplateUpgradeSnapshotDeletionCandidatesResponseSchema";
12814
+ readonly notes: readonly ["Defaults to retrying deleting tombstones. Including candidate snapshots is an explicit maintenance action and should use a conservative age threshold."];
12815
+ }, {
12816
+ readonly method: "POST";
12817
+ readonly path: "/sites/:site_id/snapshots/:snapshot_id/abandon";
12818
+ readonly tag: "snapshots";
12819
+ readonly summary: "Mark an unpromoted candidate snapshot as failed.";
12820
+ readonly status: "implemented";
12821
+ readonly response_schema: "AbandonSiteSnapshotResponseSchema";
12102
12822
  }, {
12103
12823
  readonly method: "GET";
12104
12824
  readonly path: "/sites/:site_id/snapshots/:snapshot_id";
@@ -12110,9 +12830,18 @@ export declare const REST_API_ENDPOINTS: readonly [{
12110
12830
  readonly method: "DELETE";
12111
12831
  readonly path: "/sites/:site_id/snapshots/:snapshot_id";
12112
12832
  readonly tag: "snapshots";
12113
- readonly summary: "Delete a candidate snapshot (cleanup of superseded intermediate snapshots; refuses non-candidate/current/referenced).";
12833
+ readonly summary: "Prepare two-phase deletion of a candidate snapshot and return its object key; refuses non-candidate/current/referenced snapshots.";
12114
12834
  readonly status: "implemented";
12115
12835
  readonly response_schema: "DeleteSiteSnapshotResponseSchema";
12836
+ readonly notes: readonly ["Internal Agent authentication is required. This endpoint only creates a deleting tombstone; object removal and completion are separate steps."];
12837
+ }, {
12838
+ readonly method: "POST";
12839
+ readonly path: "/sites/:site_id/snapshots/:snapshot_id/deletion/complete";
12840
+ readonly tag: "snapshots";
12841
+ readonly summary: "Complete deletion after the snapshot object has been removed; only accepts deleting snapshots.";
12842
+ readonly status: "implemented";
12843
+ readonly response_schema: "CompleteSiteSnapshotDeletionResponseSchema";
12844
+ readonly notes: readonly ["Internal Agent authentication is required; callers must remove the object before completing the DB deletion."];
12116
12845
  }, {
12117
12846
  readonly method: "POST";
12118
12847
  readonly path: "/agent-runs";
@@ -12202,6 +12931,29 @@ export declare const REST_API_ENDPOINTS: readonly [{
12202
12931
  readonly request_body_schema: "StartWorkspaceRunRequestSchema";
12203
12932
  readonly response_schema: "StartWorkspaceRunResponseSchema";
12204
12933
  readonly notes: readonly ["Long-running work must be event-driven and must not block API transactions."];
12934
+ }, {
12935
+ readonly method: "POST";
12936
+ readonly path: "/v1/agent/workspace/:site_id/form-design-operations";
12937
+ readonly tag: "agent/workspace";
12938
+ readonly summary: "Create or replay a deterministic FORM_SPEC save operation.";
12939
+ readonly status: "implemented";
12940
+ readonly request_body_schema: "FormDesignSaveRequestSchema";
12941
+ readonly response_schema: "FormDesignOperationResponseSchema";
12942
+ }, {
12943
+ readonly method: "GET";
12944
+ readonly path: "/v1/agent/workspace/:site_id/form-design-operations/:operation_id";
12945
+ readonly tag: "agent/workspace";
12946
+ readonly summary: "Read a persisted FORM_SPEC save operation.";
12947
+ readonly status: "implemented";
12948
+ readonly response_schema: "FormDesignOperationResponseSchema";
12949
+ }, {
12950
+ readonly method: "POST";
12951
+ readonly path: "/v1/agent/workspace/:site_id/form-design-operations/:operation_id/resume";
12952
+ readonly tag: "agent/workspace";
12953
+ readonly summary: "Resume a recoverable FORM_SPEC save with its original fingerprint.";
12954
+ readonly status: "implemented";
12955
+ readonly request_body_schema: "FormDesignResumeRequestSchema";
12956
+ readonly response_schema: "FormDesignOperationResponseSchema";
12205
12957
  }, {
12206
12958
  readonly method: "GET";
12207
12959
  readonly path: "/sites/:site_id/workspace/runs/latest";
@@ -12213,7 +12965,7 @@ export declare const REST_API_ENDPOINTS: readonly [{
12213
12965
  readonly method: "POST";
12214
12966
  readonly path: "/sites/:site_id/preview-sessions";
12215
12967
  readonly tag: "sandbox-sessions";
12216
- readonly summary: "Persist or update an on-demand preview session for a site.";
12968
+ readonly summary: "Persist or update an on-demand preview session; optional expected_current_snapshot_id enables current-snapshot CAS.";
12217
12969
  readonly status: "implemented";
12218
12970
  readonly request_body_schema: "PersistPreviewSessionRequestSchema";
12219
12971
  readonly response_schema: "PersistPreviewSessionResponseSchema";
@@ -13111,10 +13863,10 @@ export declare const WorkspaceServerMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
13111
13863
  groups: z.ZodArray<z.ZodObject<{
13112
13864
  group_id: z.ZodString;
13113
13865
  phase: z.ZodEnum<{
13866
+ pages: "pages";
13867
+ layout: "layout";
13114
13868
  sections: "sections";
13115
13869
  preview: "preview";
13116
- layout: "layout";
13117
- pages: "pages";
13118
13870
  repair: "repair";
13119
13871
  style_media: "style_media";
13120
13872
  chrome: "chrome";
@@ -13127,9 +13879,9 @@ export declare const WorkspaceServerMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
13127
13879
  failed: "failed";
13128
13880
  pending: "pending";
13129
13881
  running: "running";
13882
+ skipped: "skipped";
13130
13883
  completed: "completed";
13131
13884
  completed_with_skips: "completed_with_skips";
13132
- skipped: "skipped";
13133
13885
  }>;
13134
13886
  task_ids: z.ZodArray<z.ZodString>;
13135
13887
  depends_on_groups: z.ZodArray<z.ZodString>;
@@ -13140,8 +13892,8 @@ export declare const WorkspaceServerMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
13140
13892
  group_id: z.ZodString;
13141
13893
  kind: z.ZodEnum<{
13142
13894
  page: "page";
13143
- section: "section";
13144
13895
  layout: "layout";
13896
+ section: "section";
13145
13897
  chrome: "chrome";
13146
13898
  style: "style";
13147
13899
  media: "media";
@@ -13161,9 +13913,9 @@ export declare const WorkspaceServerMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
13161
13913
  failed: "failed";
13162
13914
  pending: "pending";
13163
13915
  running: "running";
13916
+ skipped: "skipped";
13164
13917
  completed: "completed";
13165
13918
  completed_with_skips: "completed_with_skips";
13166
- skipped: "skipped";
13167
13919
  }>;
13168
13920
  required_reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
13169
13921
  }, z.core.$strip>>;
@@ -13171,8 +13923,8 @@ export declare const WorkspaceServerMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
13171
13923
  from_group_id: z.ZodString;
13172
13924
  to_group_id: z.ZodString;
13173
13925
  reason: z.ZodEnum<{
13174
- sections: "sections";
13175
13926
  layout: "layout";
13927
+ sections: "sections";
13176
13928
  style_media: "style_media";
13177
13929
  chrome: "chrome";
13178
13930
  page_composition: "page_composition";
@@ -13205,10 +13957,10 @@ export declare const WorkspaceServerMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
13205
13957
  payload: z.ZodObject<{
13206
13958
  group_id: z.ZodString;
13207
13959
  phase: z.ZodEnum<{
13960
+ pages: "pages";
13961
+ layout: "layout";
13208
13962
  sections: "sections";
13209
13963
  preview: "preview";
13210
- layout: "layout";
13211
- pages: "pages";
13212
13964
  repair: "repair";
13213
13965
  style_media: "style_media";
13214
13966
  chrome: "chrome";
@@ -13220,9 +13972,9 @@ export declare const WorkspaceServerMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
13220
13972
  failed: "failed";
13221
13973
  pending: "pending";
13222
13974
  running: "running";
13975
+ skipped: "skipped";
13223
13976
  completed: "completed";
13224
13977
  completed_with_skips: "completed_with_skips";
13225
- skipped: "skipped";
13226
13978
  }>;
13227
13979
  task_counts: z.ZodObject<{
13228
13980
  pending: z.ZodNumber;
@@ -13251,9 +14003,9 @@ export declare const WorkspaceServerMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
13251
14003
  failed: "failed";
13252
14004
  pending: "pending";
13253
14005
  running: "running";
14006
+ skipped: "skipped";
13254
14007
  completed: "completed";
13255
14008
  completed_with_skips: "completed_with_skips";
13256
- skipped: "skipped";
13257
14009
  }>;
13258
14010
  target_path: z.ZodString;
13259
14011
  read_files_count: z.ZodNumber;
@@ -13428,8 +14180,8 @@ export declare const WorkspaceServerMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
13428
14180
  parent_activity_id: z.ZodOptional<z.ZodString>;
13429
14181
  kind: z.ZodEnum<{
13430
14182
  preview: "preview";
13431
- model_call: "model_call";
13432
14183
  validation: "validation";
14184
+ model_call: "model_call";
13433
14185
  repair: "repair";
13434
14186
  worker_group: "worker_group";
13435
14187
  }>;
@@ -13841,10 +14593,10 @@ export declare const WorkspaceWebSocketMessageSchema: z.ZodUnion<readonly [z.Zod
13841
14593
  groups: z.ZodArray<z.ZodObject<{
13842
14594
  group_id: z.ZodString;
13843
14595
  phase: z.ZodEnum<{
14596
+ pages: "pages";
14597
+ layout: "layout";
13844
14598
  sections: "sections";
13845
14599
  preview: "preview";
13846
- layout: "layout";
13847
- pages: "pages";
13848
14600
  repair: "repair";
13849
14601
  style_media: "style_media";
13850
14602
  chrome: "chrome";
@@ -13857,9 +14609,9 @@ export declare const WorkspaceWebSocketMessageSchema: z.ZodUnion<readonly [z.Zod
13857
14609
  failed: "failed";
13858
14610
  pending: "pending";
13859
14611
  running: "running";
14612
+ skipped: "skipped";
13860
14613
  completed: "completed";
13861
14614
  completed_with_skips: "completed_with_skips";
13862
- skipped: "skipped";
13863
14615
  }>;
13864
14616
  task_ids: z.ZodArray<z.ZodString>;
13865
14617
  depends_on_groups: z.ZodArray<z.ZodString>;
@@ -13870,8 +14622,8 @@ export declare const WorkspaceWebSocketMessageSchema: z.ZodUnion<readonly [z.Zod
13870
14622
  group_id: z.ZodString;
13871
14623
  kind: z.ZodEnum<{
13872
14624
  page: "page";
13873
- section: "section";
13874
14625
  layout: "layout";
14626
+ section: "section";
13875
14627
  chrome: "chrome";
13876
14628
  style: "style";
13877
14629
  media: "media";
@@ -13891,9 +14643,9 @@ export declare const WorkspaceWebSocketMessageSchema: z.ZodUnion<readonly [z.Zod
13891
14643
  failed: "failed";
13892
14644
  pending: "pending";
13893
14645
  running: "running";
14646
+ skipped: "skipped";
13894
14647
  completed: "completed";
13895
14648
  completed_with_skips: "completed_with_skips";
13896
- skipped: "skipped";
13897
14649
  }>;
13898
14650
  required_reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
13899
14651
  }, z.core.$strip>>;
@@ -13901,8 +14653,8 @@ export declare const WorkspaceWebSocketMessageSchema: z.ZodUnion<readonly [z.Zod
13901
14653
  from_group_id: z.ZodString;
13902
14654
  to_group_id: z.ZodString;
13903
14655
  reason: z.ZodEnum<{
13904
- sections: "sections";
13905
14656
  layout: "layout";
14657
+ sections: "sections";
13906
14658
  style_media: "style_media";
13907
14659
  chrome: "chrome";
13908
14660
  page_composition: "page_composition";
@@ -13935,10 +14687,10 @@ export declare const WorkspaceWebSocketMessageSchema: z.ZodUnion<readonly [z.Zod
13935
14687
  payload: z.ZodObject<{
13936
14688
  group_id: z.ZodString;
13937
14689
  phase: z.ZodEnum<{
14690
+ pages: "pages";
14691
+ layout: "layout";
13938
14692
  sections: "sections";
13939
14693
  preview: "preview";
13940
- layout: "layout";
13941
- pages: "pages";
13942
14694
  repair: "repair";
13943
14695
  style_media: "style_media";
13944
14696
  chrome: "chrome";
@@ -13950,9 +14702,9 @@ export declare const WorkspaceWebSocketMessageSchema: z.ZodUnion<readonly [z.Zod
13950
14702
  failed: "failed";
13951
14703
  pending: "pending";
13952
14704
  running: "running";
14705
+ skipped: "skipped";
13953
14706
  completed: "completed";
13954
14707
  completed_with_skips: "completed_with_skips";
13955
- skipped: "skipped";
13956
14708
  }>;
13957
14709
  task_counts: z.ZodObject<{
13958
14710
  pending: z.ZodNumber;
@@ -13981,9 +14733,9 @@ export declare const WorkspaceWebSocketMessageSchema: z.ZodUnion<readonly [z.Zod
13981
14733
  failed: "failed";
13982
14734
  pending: "pending";
13983
14735
  running: "running";
14736
+ skipped: "skipped";
13984
14737
  completed: "completed";
13985
14738
  completed_with_skips: "completed_with_skips";
13986
- skipped: "skipped";
13987
14739
  }>;
13988
14740
  target_path: z.ZodString;
13989
14741
  read_files_count: z.ZodNumber;
@@ -14158,8 +14910,8 @@ export declare const WorkspaceWebSocketMessageSchema: z.ZodUnion<readonly [z.Zod
14158
14910
  parent_activity_id: z.ZodOptional<z.ZodString>;
14159
14911
  kind: z.ZodEnum<{
14160
14912
  preview: "preview";
14161
- model_call: "model_call";
14162
14913
  validation: "validation";
14914
+ model_call: "model_call";
14163
14915
  repair: "repair";
14164
14916
  worker_group: "worker_group";
14165
14917
  }>;
@@ -14465,6 +15217,11 @@ export declare const WorkspaceDirectEditFileSchema: z.ZodObject<{
14465
15217
  }>>;
14466
15218
  }, z.core.$strip>;
14467
15219
  export type WorkspaceDirectEditFile = z.infer<typeof WorkspaceDirectEditFileSchema>;
15220
+ export declare const WorkspaceDirectEditPostActionSchema: z.ZodEnum<{
15221
+ sync_cms_pages: "sync_cms_pages";
15222
+ sync_cms_navigation: "sync_cms_navigation";
15223
+ }>;
15224
+ export type WorkspaceDirectEditPostAction = z.infer<typeof WorkspaceDirectEditPostActionSchema>;
14468
15225
  export declare const WorkspaceDirectEditRequestSchema: z.ZodObject<{
14469
15226
  files: z.ZodArray<z.ZodObject<{
14470
15227
  path: z.ZodString;
@@ -14473,6 +15230,10 @@ export declare const WorkspaceDirectEditRequestSchema: z.ZodObject<{
14473
15230
  delete: "delete";
14474
15231
  }>>;
14475
15232
  }, z.core.$strip>>;
15233
+ post_actions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
15234
+ sync_cms_pages: "sync_cms_pages";
15235
+ sync_cms_navigation: "sync_cms_navigation";
15236
+ }>>>;
14476
15237
  }, z.core.$strict>;
14477
15238
  export type WorkspaceDirectEditRequest = z.infer<typeof WorkspaceDirectEditRequestSchema>;
14478
15239
  export declare const ApplyPatchBatchErrorCodeSchema: z.ZodEnum<{
@@ -14573,6 +15334,16 @@ export declare const ApplyPatchBatchResultSchema: z.ZodDiscriminatedUnion<[z.Zod
14573
15334
  export type ApplyPatchBatchResult = z.infer<typeof ApplyPatchBatchResultSchema>;
14574
15335
  export declare const WorkspaceDirectEditResponseSchema: z.ZodObject<{
14575
15336
  ok: z.ZodLiteral<true>;
15337
+ post_actions: z.ZodDefault<z.ZodArray<z.ZodObject<{
15338
+ action: z.ZodEnum<{
15339
+ sync_cms_pages: "sync_cms_pages";
15340
+ sync_cms_navigation: "sync_cms_navigation";
15341
+ }>;
15342
+ status: z.ZodEnum<{
15343
+ failed: "failed";
15344
+ succeeded: "succeeded";
15345
+ }>;
15346
+ }, z.core.$strict>>>;
14576
15347
  }, z.core.$strip>;
14577
15348
  export type WorkspaceDirectEditResponse = z.infer<typeof WorkspaceDirectEditResponseSchema>;
14578
15349
  export declare const WorkspaceSourcePathSchema: z.ZodString;
@@ -14634,12 +15405,19 @@ export type SnapshotManifestFile = {
14634
15405
  hash: string;
14635
15406
  size_bytes: number;
14636
15407
  };
15408
+ export type SnapshotTemplateUpgradeReport = {
15409
+ replaced: string[];
15410
+ skipped: string[];
15411
+ skipped_groups: string[];
15412
+ };
14637
15413
  export type SnapshotManifest = {
14638
15414
  version: 1;
14639
15415
  site_id: string;
14640
15416
  snapshot_id: string;
14641
15417
  files: SnapshotManifestFile[];
14642
15418
  created_at: string;
15419
+ template_version?: TemplateVersion;
15420
+ template_upgrade?: SnapshotTemplateUpgradeReport;
14643
15421
  };
14644
15422
  export declare const SandboxSessionStatusSchema: z.ZodEnum<{
14645
15423
  ready: "ready";
@@ -14684,6 +15462,8 @@ export declare const PersistPreviewSessionRequestSchema: z.ZodObject<{
14684
15462
  sandbox_id: z.ZodOptional<z.ZodString>;
14685
15463
  source_snapshot_id: z.ZodOptional<z.ZodString>;
14686
15464
  last_snapshot_id: z.ZodString;
15465
+ expected_current_snapshot_id: z.ZodOptional<z.ZodString>;
15466
+ expected_ready_session_id: z.ZodOptional<z.ZodString>;
14687
15467
  status: z.ZodEnum<{
14688
15468
  ready: "ready";
14689
15469
  failed: "failed";