@vcp-dev/contracts 0.9.3 → 0.9.5

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
@@ -17,6 +17,7 @@ export * from "./designer-page-library.js";
17
17
  export * from "./component-i18n-resources.js";
18
18
  export * from "./migration-products.js";
19
19
  export { PLATFORM_OWNED_PAGE_SLUGS, PLATFORM_OWNED_ROUTE_FILE_PATHS, PAGE_SLUG_PATTERN, PAGE_SLUG_SEGMENT_PATTERN_SOURCE, canonicalizePageSlug, isCanonicalPageSlug, pageSlugToRouteFilePath, tryCanonicalizeAsciiPageSlug, } from "./page-slug.js";
20
+ export * from "./site-deletion-blockers.js";
20
21
  export * from "./site-edit-capability.js";
21
22
  export * from "./site-edit-class-name-source.js";
22
23
  export * from "./site-edit-composition.js";
@@ -54,6 +55,7 @@ export * from "./customer-materials.js";
54
55
  export * from "./step2-site-initialization.js";
55
56
  export * from "./step5-strategy.js";
56
57
  export * from "./step6-design.js";
58
+ export * from "./step6-gpt-design.js";
57
59
  export * from "./conversion-hints.js";
58
60
  export * from "./industry-classification.js";
59
61
  export * from "./business-facts.js";
@@ -1925,6 +1927,7 @@ export declare const AgentRunTypeSchema: z.ZodEnum<{
1925
1927
  workspace: "workspace";
1926
1928
  }>;
1927
1929
  export declare const AgentRunKindSchema: z.ZodEnum<{
1930
+ landing_page: "landing_page";
1928
1931
  sitemap: "sitemap";
1929
1932
  clarify: "clarify";
1930
1933
  initial_generation: "initial_generation";
@@ -1949,6 +1952,7 @@ export declare const AgentRunRecordSchema: z.ZodObject<{
1949
1952
  workspace: "workspace";
1950
1953
  }>;
1951
1954
  run_kind: z.ZodEnum<{
1955
+ landing_page: "landing_page";
1952
1956
  sitemap: "sitemap";
1953
1957
  clarify: "clarify";
1954
1958
  initial_generation: "initial_generation";
@@ -1971,8 +1975,119 @@ export declare const AgentRunRecordSchema: z.ZodObject<{
1971
1975
  finished_at: z.ZodNullable<z.ZodString>;
1972
1976
  error_code: z.ZodNullable<z.ZodString>;
1973
1977
  created_at: z.ZodString;
1978
+ thread_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1974
1979
  }, z.core.$strip>;
1975
1980
  export type AgentRunRecord = z.infer<typeof AgentRunRecordSchema>;
1981
+ /**
1982
+ * 线程类别:`workspace` = 用户在站点工作台开的会话(NULL 线程是默认会话);
1983
+ * `landing_page` = 一个落地页一条;`external` = 外部编排系统的会话。
1984
+ */
1985
+ export declare const AgentThreadKindSchema: z.ZodEnum<{
1986
+ landing_page: "landing_page";
1987
+ external: "external";
1988
+ workspace: "workspace";
1989
+ }>;
1990
+ export type AgentThreadKind = z.infer<typeof AgentThreadKindSchema>;
1991
+ /** 线程来源:`user` = 浏览器里的人发起;`background` = 后台(内网 API / 无人值守)发起。 */
1992
+ export declare const AgentThreadOriginSchema: z.ZodEnum<{
1993
+ background: "background";
1994
+ user: "user";
1995
+ }>;
1996
+ export type AgentThreadOrigin = z.infer<typeof AgentThreadOriginSchema>;
1997
+ export declare const AgentThreadStatusSchema: z.ZodEnum<{
1998
+ active: "active";
1999
+ archived: "archived";
2000
+ }>;
2001
+ export type AgentThreadStatus = z.infer<typeof AgentThreadStatusSchema>;
2002
+ export declare const AgentThreadRecordSchema: z.ZodObject<{
2003
+ id: z.ZodUUID;
2004
+ tenant_id: z.ZodString;
2005
+ site_id: z.ZodUUID;
2006
+ kind: z.ZodEnum<{
2007
+ landing_page: "landing_page";
2008
+ external: "external";
2009
+ workspace: "workspace";
2010
+ }>;
2011
+ origin: z.ZodEnum<{
2012
+ background: "background";
2013
+ user: "user";
2014
+ }>;
2015
+ subject_key: z.ZodString;
2016
+ title: z.ZodString;
2017
+ status: z.ZodEnum<{
2018
+ active: "active";
2019
+ archived: "archived";
2020
+ }>;
2021
+ external_thread_id: z.ZodNullable<z.ZodString>;
2022
+ last_run_id: z.ZodNullable<z.ZodUUID>;
2023
+ last_activity_at: z.ZodString;
2024
+ created_at: z.ZodString;
2025
+ updated_at: z.ZodString;
2026
+ }, z.core.$strip>;
2027
+ export type AgentThreadRecord = z.infer<typeof AgentThreadRecordSchema>;
2028
+ export declare const AgentRunContextResponseSchema: z.ZodObject<{
2029
+ agent_run: z.ZodObject<{
2030
+ id: z.ZodUUID;
2031
+ tenant_id: z.ZodString;
2032
+ site_id: z.ZodUUID;
2033
+ agent_type: z.ZodEnum<{
2034
+ sitemap: "sitemap";
2035
+ clarify: "clarify";
2036
+ workspace: "workspace";
2037
+ }>;
2038
+ run_kind: z.ZodEnum<{
2039
+ landing_page: "landing_page";
2040
+ sitemap: "sitemap";
2041
+ clarify: "clarify";
2042
+ initial_generation: "initial_generation";
2043
+ iteration: "iteration";
2044
+ }>;
2045
+ status: z.ZodEnum<{
2046
+ failed: "failed";
2047
+ succeeded: "succeeded";
2048
+ running: "running";
2049
+ queued: "queued";
2050
+ cancelled: "cancelled";
2051
+ }>;
2052
+ model_route: z.ZodEnum<{
2053
+ sitemap: "sitemap";
2054
+ clarify: "clarify";
2055
+ workspace: "workspace";
2056
+ summarize: "summarize";
2057
+ }>;
2058
+ started_at: z.ZodNullable<z.ZodString>;
2059
+ finished_at: z.ZodNullable<z.ZodString>;
2060
+ error_code: z.ZodNullable<z.ZodString>;
2061
+ created_at: z.ZodString;
2062
+ thread_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
2063
+ }, z.core.$strip>;
2064
+ thread: z.ZodNullable<z.ZodObject<{
2065
+ id: z.ZodUUID;
2066
+ tenant_id: z.ZodString;
2067
+ site_id: z.ZodUUID;
2068
+ kind: z.ZodEnum<{
2069
+ landing_page: "landing_page";
2070
+ external: "external";
2071
+ workspace: "workspace";
2072
+ }>;
2073
+ origin: z.ZodEnum<{
2074
+ background: "background";
2075
+ user: "user";
2076
+ }>;
2077
+ subject_key: z.ZodString;
2078
+ title: z.ZodString;
2079
+ status: z.ZodEnum<{
2080
+ active: "active";
2081
+ archived: "archived";
2082
+ }>;
2083
+ external_thread_id: z.ZodNullable<z.ZodString>;
2084
+ last_run_id: z.ZodNullable<z.ZodUUID>;
2085
+ last_activity_at: z.ZodString;
2086
+ created_at: z.ZodString;
2087
+ updated_at: z.ZodString;
2088
+ }, z.core.$strip>>;
2089
+ }, z.core.$strip>;
2090
+ export type AgentRunContextResponse = z.infer<typeof AgentRunContextResponseSchema>;
1976
2091
  export type AgentModelRoute = z.infer<typeof AgentModelRouteSchema>;
1977
2092
  export declare const CreateAgentRunRequestSchema: z.ZodObject<{
1978
2093
  run_id: z.ZodOptional<z.ZodUUID>;
@@ -1983,6 +2098,7 @@ export declare const CreateAgentRunRequestSchema: z.ZodObject<{
1983
2098
  workspace: "workspace";
1984
2099
  }>;
1985
2100
  run_kind: z.ZodOptional<z.ZodEnum<{
2101
+ landing_page: "landing_page";
1986
2102
  sitemap: "sitemap";
1987
2103
  clarify: "clarify";
1988
2104
  initial_generation: "initial_generation";
@@ -2008,6 +2124,7 @@ export declare const CreateAgentRunResponseSchema: z.ZodObject<{
2008
2124
  workspace: "workspace";
2009
2125
  }>;
2010
2126
  run_kind: z.ZodEnum<{
2127
+ landing_page: "landing_page";
2011
2128
  sitemap: "sitemap";
2012
2129
  clarify: "clarify";
2013
2130
  initial_generation: "initial_generation";
@@ -2030,6 +2147,7 @@ export declare const CreateAgentRunResponseSchema: z.ZodObject<{
2030
2147
  finished_at: z.ZodNullable<z.ZodString>;
2031
2148
  error_code: z.ZodNullable<z.ZodString>;
2032
2149
  created_at: z.ZodString;
2150
+ thread_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
2033
2151
  }, z.core.$strip>;
2034
2152
  next_step: z.ZodLiteral<"stream_events">;
2035
2153
  }, z.core.$strip>;
@@ -4146,6 +4264,7 @@ export declare const CreateAgentRunConflictResponseSchema: z.ZodObject<{
4146
4264
  workspace: "workspace";
4147
4265
  }>;
4148
4266
  run_kind: z.ZodEnum<{
4267
+ landing_page: "landing_page";
4149
4268
  sitemap: "sitemap";
4150
4269
  clarify: "clarify";
4151
4270
  initial_generation: "initial_generation";
@@ -4168,6 +4287,7 @@ export declare const CreateAgentRunConflictResponseSchema: z.ZodObject<{
4168
4287
  finished_at: z.ZodNullable<z.ZodString>;
4169
4288
  error_code: z.ZodNullable<z.ZodString>;
4170
4289
  created_at: z.ZodString;
4290
+ thread_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
4171
4291
  }, z.core.$strip>;
4172
4292
  }, z.core.$strip>;
4173
4293
  }, z.core.$strip>;
@@ -11437,6 +11557,7 @@ export declare const PersistSiteDesignPlanResponseSchema: z.ZodObject<{
11437
11557
  }, z.core.$strip>;
11438
11558
  export type PersistSiteDesignPlanResponse = z.infer<typeof PersistSiteDesignPlanResponseSchema>;
11439
11559
  export declare const WorkspaceRunKindSchema: z.ZodEnum<{
11560
+ landing_page: "landing_page";
11440
11561
  initial_generation: "initial_generation";
11441
11562
  iteration: "iteration";
11442
11563
  }>;
@@ -11686,6 +11807,7 @@ export type WorkspacePlanDependency = z.infer<typeof WorkspacePlanDependencySche
11686
11807
  export declare const WorkspaceExecutionPlanSchema: z.ZodObject<{
11687
11808
  plan_id: z.ZodString;
11688
11809
  run_kind: z.ZodEnum<{
11810
+ landing_page: "landing_page";
11689
11811
  initial_generation: "initial_generation";
11690
11812
  iteration: "iteration";
11691
11813
  }>;
@@ -12370,6 +12492,7 @@ export declare const AgentEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
12370
12492
  type: z.ZodLiteral<"workspace.plan.created">;
12371
12493
  plan_id: z.ZodString;
12372
12494
  run_kind: z.ZodEnum<{
12495
+ landing_page: "landing_page";
12373
12496
  initial_generation: "initial_generation";
12374
12497
  iteration: "iteration";
12375
12498
  }>;
@@ -13244,6 +13367,7 @@ export declare const AgentEventRecordSchema: z.ZodObject<{
13244
13367
  type: z.ZodLiteral<"workspace.plan.created">;
13245
13368
  plan_id: z.ZodString;
13246
13369
  run_kind: z.ZodEnum<{
13370
+ landing_page: "landing_page";
13247
13371
  initial_generation: "initial_generation";
13248
13372
  iteration: "iteration";
13249
13373
  }>;
@@ -13630,6 +13754,7 @@ export declare const AgentEventRecordSchema: z.ZodObject<{
13630
13754
  at: z.ZodString;
13631
13755
  }, z.core.$strip>], "type">;
13632
13756
  created_at: z.ZodString;
13757
+ thread_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
13633
13758
  }, z.core.$strip>;
13634
13759
  export type AgentEventRecord = z.infer<typeof AgentEventRecordSchema>;
13635
13760
  export declare const AppendAgentEventRequestSchema: z.ZodObject<{
@@ -14115,6 +14240,7 @@ export declare const AppendAgentEventRequestSchema: z.ZodObject<{
14115
14240
  type: z.ZodLiteral<"workspace.plan.created">;
14116
14241
  plan_id: z.ZodString;
14117
14242
  run_kind: z.ZodEnum<{
14243
+ landing_page: "landing_page";
14118
14244
  initial_generation: "initial_generation";
14119
14245
  iteration: "iteration";
14120
14246
  }>;
@@ -14514,6 +14640,7 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
14514
14640
  workspace: "workspace";
14515
14641
  }>;
14516
14642
  run_kind: z.ZodEnum<{
14643
+ landing_page: "landing_page";
14517
14644
  sitemap: "sitemap";
14518
14645
  clarify: "clarify";
14519
14646
  initial_generation: "initial_generation";
@@ -14536,6 +14663,7 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
14536
14663
  finished_at: z.ZodNullable<z.ZodString>;
14537
14664
  error_code: z.ZodNullable<z.ZodString>;
14538
14665
  created_at: z.ZodString;
14666
+ thread_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
14539
14667
  }, z.core.$strip>;
14540
14668
  event: z.ZodObject<{
14541
14669
  id: z.ZodUUID;
@@ -15025,6 +15153,7 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
15025
15153
  type: z.ZodLiteral<"workspace.plan.created">;
15026
15154
  plan_id: z.ZodString;
15027
15155
  run_kind: z.ZodEnum<{
15156
+ landing_page: "landing_page";
15028
15157
  initial_generation: "initial_generation";
15029
15158
  iteration: "iteration";
15030
15159
  }>;
@@ -15411,6 +15540,7 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
15411
15540
  at: z.ZodString;
15412
15541
  }, z.core.$strip>], "type">;
15413
15542
  created_at: z.ZodString;
15543
+ thread_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
15414
15544
  }, z.core.$strip>;
15415
15545
  next_cursor: z.ZodNumber;
15416
15546
  }, z.core.$strip>, z.ZodObject<{
@@ -15425,6 +15555,7 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
15425
15555
  workspace: "workspace";
15426
15556
  }>;
15427
15557
  run_kind: z.ZodEnum<{
15558
+ landing_page: "landing_page";
15428
15559
  sitemap: "sitemap";
15429
15560
  clarify: "clarify";
15430
15561
  initial_generation: "initial_generation";
@@ -15447,6 +15578,7 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
15447
15578
  finished_at: z.ZodNullable<z.ZodString>;
15448
15579
  error_code: z.ZodNullable<z.ZodString>;
15449
15580
  created_at: z.ZodString;
15581
+ thread_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
15450
15582
  }, z.core.$strip>;
15451
15583
  event: z.ZodObject<{
15452
15584
  id: z.ZodUUID;
@@ -15936,6 +16068,7 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
15936
16068
  type: z.ZodLiteral<"workspace.plan.created">;
15937
16069
  plan_id: z.ZodString;
15938
16070
  run_kind: z.ZodEnum<{
16071
+ landing_page: "landing_page";
15939
16072
  initial_generation: "initial_generation";
15940
16073
  iteration: "iteration";
15941
16074
  }>;
@@ -16322,6 +16455,7 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
16322
16455
  at: z.ZodString;
16323
16456
  }, z.core.$strip>], "type">;
16324
16457
  created_at: z.ZodString;
16458
+ thread_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
16325
16459
  }, z.core.$strip>;
16326
16460
  next_cursor: z.ZodNumber;
16327
16461
  }, z.core.$strip>], "status">;
@@ -16815,6 +16949,7 @@ export declare const ListAgentEventsResponseSchema: z.ZodObject<{
16815
16949
  type: z.ZodLiteral<"workspace.plan.created">;
16816
16950
  plan_id: z.ZodString;
16817
16951
  run_kind: z.ZodEnum<{
16952
+ landing_page: "landing_page";
16818
16953
  initial_generation: "initial_generation";
16819
16954
  iteration: "iteration";
16820
16955
  }>;
@@ -17201,6 +17336,7 @@ export declare const ListAgentEventsResponseSchema: z.ZodObject<{
17201
17336
  at: z.ZodString;
17202
17337
  }, z.core.$strip>], "type">;
17203
17338
  created_at: z.ZodString;
17339
+ thread_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
17204
17340
  }, z.core.$strip>>;
17205
17341
  next_cursor: z.ZodOptional<z.ZodNumber>;
17206
17342
  }, z.core.$strip>;
@@ -17209,6 +17345,16 @@ export declare const ListAgentEventsQuerySchema: z.ZodObject<{
17209
17345
  after_sequence: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
17210
17346
  }, z.core.$strip>;
17211
17347
  export type ListAgentEventsQuery = z.infer<typeof ListAgentEventsQuerySchema>;
17348
+ /**
17349
+ * `GET /sites/:site_id/agent-events` 的查询参数:带 run_id 时按该 run 的线程过滤;
17350
+ * 带 thread_id 时按命名线程过滤(服务端校验归属:同租户、同站点)。
17351
+ * 二者互斥,同时传入判为无效请求。
17352
+ */
17353
+ export declare const ListSiteAgentEventsQuerySchema: z.ZodObject<{
17354
+ run_id: z.ZodOptional<z.ZodUUID>;
17355
+ thread_id: z.ZodOptional<z.ZodUUID>;
17356
+ }, z.core.$strip>;
17357
+ export type ListSiteAgentEventsQuery = z.infer<typeof ListSiteAgentEventsQuerySchema>;
17212
17358
  export declare const ApiContractStatusSchema: z.ZodEnum<{
17213
17359
  implemented: "implemented";
17214
17360
  skeleton: "skeleton";
@@ -17866,6 +18012,40 @@ export declare const REST_API_ENDPOINTS: readonly [{
17866
18012
  readonly request_body_schema: "StartWorkspaceRunRequestSchema";
17867
18013
  readonly response_schema: "StartWorkspaceRunResponseSchema";
17868
18014
  readonly notes: readonly ["Long-running work must be event-driven and must not block API transactions."];
18015
+ }, {
18016
+ readonly method: "GET";
18017
+ readonly path: "/sites/:site_id/threads";
18018
+ readonly tag: "workspace";
18019
+ readonly summary: "List a site's named Agent threads (workspace conversations).";
18020
+ readonly status: "implemented";
18021
+ readonly response_schema: "SiteThreadListResponseSchema";
18022
+ readonly notes: readonly ["The browser can only list threads that belong to the current site."];
18023
+ }, {
18024
+ readonly method: "POST";
18025
+ readonly path: "/sites/:site_id/threads";
18026
+ readonly tag: "workspace";
18027
+ readonly summary: "Create a new named Agent thread for a site.";
18028
+ readonly status: "implemented";
18029
+ readonly request_body_schema: "CreateSiteThreadRequestSchema";
18030
+ readonly response_schema: "SiteThreadResponseSchema";
18031
+ readonly notes: readonly ["The created thread is scoped to the current site; the browser cannot create a thread for another site."];
18032
+ }, {
18033
+ readonly method: "PATCH";
18034
+ readonly path: "/sites/:site_id/threads/:thread_id";
18035
+ readonly tag: "workspace";
18036
+ readonly summary: "Rename or archive an Agent thread.";
18037
+ readonly status: "implemented";
18038
+ readonly request_body_schema: "UpdateSiteThreadRequestSchema";
18039
+ readonly response_schema: "SiteThreadResponseSchema";
18040
+ readonly notes: readonly ["The server verifies the thread belongs to the current site and tenant before applying the update."];
18041
+ }, {
18042
+ readonly method: "GET";
18043
+ readonly path: "/sites/:site_id/workspace/runs/active";
18044
+ readonly tag: "workspace";
18045
+ readonly summary: "Look up the site's current in-flight Workspace Agent run across all threads.";
18046
+ readonly status: "implemented";
18047
+ readonly response_schema: "ActiveWorkspaceRunResponseSchema";
18048
+ readonly notes: readonly ["Scoped to the current site regardless of thread; the browser cannot query another site's active run."];
17869
18049
  }, {
17870
18050
  readonly method: "POST";
17871
18051
  readonly path: "/v1/agent/workspace/:site_id/form-design-operations";
@@ -18139,15 +18319,15 @@ export declare const REST_API_ENDPOINTS: readonly [{
18139
18319
  readonly summary: "Start or recover the site publish workflow.";
18140
18320
  readonly status: "implemented";
18141
18321
  readonly request_body_schema: "StartSitePublishWorkflowRequestSchema";
18142
- readonly response_schema: "SitePublishWorkflowMutationResponseSchema";
18322
+ readonly response_schema: "SitePublishWorkflowQualityResponseSchema";
18143
18323
  }, {
18144
18324
  readonly method: "POST";
18145
- readonly path: "/sites/:site_id/publish-workflow/:workflow_id/quality-task";
18325
+ readonly path: "/sites/:site_id/publish-workflow/:workflow_id/repair-task";
18146
18326
  readonly tag: "publish-workflow";
18147
- readonly summary: "Create a new quality task for a failed publish workflow.";
18327
+ readonly summary: "Idempotently create the publish repair task.";
18148
18328
  readonly status: "implemented";
18149
18329
  readonly request_body_schema: "SitePublishWorkflowRevisionRequestSchema";
18150
- readonly response_schema: "SitePublishWorkflowMutationResponseSchema";
18330
+ readonly response_schema: "SitePublishWorkflowQualityResponseSchema";
18151
18331
  }, {
18152
18332
  readonly method: "GET";
18153
18333
  readonly path: "/sites/:site_id/publish-workflow/:workflow_id";
@@ -18397,6 +18577,7 @@ export declare const StartWorkspaceRunRequestSchema: z.ZodObject<{
18397
18577
  }, z.core.$strip>]>>;
18398
18578
  role: z.ZodLiteral<"user">;
18399
18579
  }, z.core.$strip>>;
18580
+ thread_id: z.ZodOptional<z.ZodUUID>;
18400
18581
  client_run_key: z.ZodOptional<z.ZodString>;
18401
18582
  }, z.core.$strip>;
18402
18583
  export type StartWorkspaceRunRequest = z.infer<typeof StartWorkspaceRunRequestSchema>;
@@ -18405,6 +18586,7 @@ export declare const WorkspaceSocketDescriptorSchema: z.ZodObject<{
18405
18586
  run_id: z.ZodUUID;
18406
18587
  base_snapshot_id: z.ZodUUID;
18407
18588
  run_kind: z.ZodEnum<{
18589
+ landing_page: "landing_page";
18408
18590
  initial_generation: "initial_generation";
18409
18591
  iteration: "iteration";
18410
18592
  }>;
@@ -18421,6 +18603,7 @@ export declare const StartWorkspaceRunResponseSchema: z.ZodObject<{
18421
18603
  workspace: "workspace";
18422
18604
  }>;
18423
18605
  run_kind: z.ZodEnum<{
18606
+ landing_page: "landing_page";
18424
18607
  sitemap: "sitemap";
18425
18608
  clarify: "clarify";
18426
18609
  initial_generation: "initial_generation";
@@ -18443,12 +18626,14 @@ export declare const StartWorkspaceRunResponseSchema: z.ZodObject<{
18443
18626
  finished_at: z.ZodNullable<z.ZodString>;
18444
18627
  error_code: z.ZodNullable<z.ZodString>;
18445
18628
  created_at: z.ZodString;
18629
+ thread_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
18446
18630
  }, z.core.$strip>;
18447
18631
  websocket: z.ZodObject<{
18448
18632
  path: z.ZodString;
18449
18633
  run_id: z.ZodUUID;
18450
18634
  base_snapshot_id: z.ZodUUID;
18451
18635
  run_kind: z.ZodEnum<{
18636
+ landing_page: "landing_page";
18452
18637
  initial_generation: "initial_generation";
18453
18638
  iteration: "iteration";
18454
18639
  }>;
@@ -18475,6 +18660,7 @@ export declare const LatestWorkspaceRunResponseSchema: z.ZodObject<{
18475
18660
  workspace: "workspace";
18476
18661
  }>;
18477
18662
  run_kind: z.ZodEnum<{
18663
+ landing_page: "landing_page";
18478
18664
  sitemap: "sitemap";
18479
18665
  clarify: "clarify";
18480
18666
  initial_generation: "initial_generation";
@@ -18497,9 +18683,151 @@ export declare const LatestWorkspaceRunResponseSchema: z.ZodObject<{
18497
18683
  finished_at: z.ZodNullable<z.ZodString>;
18498
18684
  error_code: z.ZodNullable<z.ZodString>;
18499
18685
  created_at: z.ZodString;
18686
+ thread_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
18500
18687
  }, z.core.$strip>;
18501
18688
  }, z.core.$strip>;
18502
18689
  export type LatestWorkspaceRunResponse = z.infer<typeof LatestWorkspaceRunResponseSchema>;
18690
+ export declare const LatestWorkspaceRunQuerySchema: z.ZodObject<{
18691
+ thread_id: z.ZodOptional<z.ZodUUID>;
18692
+ }, z.core.$strip>;
18693
+ export type LatestWorkspaceRunQuery = z.infer<typeof LatestWorkspaceRunQuerySchema>;
18694
+ /** `GET /sites/:site_id/workspace/runs/active`:站点当前在途 workspace run(不分线程)。 */
18695
+ export declare const ActiveWorkspaceRunResponseSchema: z.ZodObject<{
18696
+ agent_run: z.ZodNullable<z.ZodObject<{
18697
+ id: z.ZodUUID;
18698
+ tenant_id: z.ZodString;
18699
+ site_id: z.ZodUUID;
18700
+ agent_type: z.ZodEnum<{
18701
+ sitemap: "sitemap";
18702
+ clarify: "clarify";
18703
+ workspace: "workspace";
18704
+ }>;
18705
+ run_kind: z.ZodEnum<{
18706
+ landing_page: "landing_page";
18707
+ sitemap: "sitemap";
18708
+ clarify: "clarify";
18709
+ initial_generation: "initial_generation";
18710
+ iteration: "iteration";
18711
+ }>;
18712
+ status: z.ZodEnum<{
18713
+ failed: "failed";
18714
+ succeeded: "succeeded";
18715
+ running: "running";
18716
+ queued: "queued";
18717
+ cancelled: "cancelled";
18718
+ }>;
18719
+ model_route: z.ZodEnum<{
18720
+ sitemap: "sitemap";
18721
+ clarify: "clarify";
18722
+ workspace: "workspace";
18723
+ summarize: "summarize";
18724
+ }>;
18725
+ started_at: z.ZodNullable<z.ZodString>;
18726
+ finished_at: z.ZodNullable<z.ZodString>;
18727
+ error_code: z.ZodNullable<z.ZodString>;
18728
+ created_at: z.ZodString;
18729
+ thread_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
18730
+ }, z.core.$strip>>;
18731
+ thread: z.ZodNullable<z.ZodObject<{
18732
+ id: z.ZodUUID;
18733
+ tenant_id: z.ZodString;
18734
+ site_id: z.ZodUUID;
18735
+ kind: z.ZodEnum<{
18736
+ landing_page: "landing_page";
18737
+ external: "external";
18738
+ workspace: "workspace";
18739
+ }>;
18740
+ origin: z.ZodEnum<{
18741
+ background: "background";
18742
+ user: "user";
18743
+ }>;
18744
+ subject_key: z.ZodString;
18745
+ title: z.ZodString;
18746
+ status: z.ZodEnum<{
18747
+ active: "active";
18748
+ archived: "archived";
18749
+ }>;
18750
+ external_thread_id: z.ZodNullable<z.ZodString>;
18751
+ last_run_id: z.ZodNullable<z.ZodUUID>;
18752
+ last_activity_at: z.ZodString;
18753
+ created_at: z.ZodString;
18754
+ updated_at: z.ZodString;
18755
+ }, z.core.$strip>>;
18756
+ }, z.core.$strip>;
18757
+ export type ActiveWorkspaceRunResponse = z.infer<typeof ActiveWorkspaceRunResponseSchema>;
18758
+ /** `/sites/:site_id/threads` 线程端点合同。 */
18759
+ export declare const SiteThreadListQuerySchema: z.ZodObject<{
18760
+ status: z.ZodDefault<z.ZodEnum<{
18761
+ active: "active";
18762
+ archived: "archived";
18763
+ }>>;
18764
+ }, z.core.$strip>;
18765
+ export type SiteThreadListQuery = z.infer<typeof SiteThreadListQuerySchema>;
18766
+ export declare const SiteThreadListResponseSchema: z.ZodObject<{
18767
+ threads: z.ZodArray<z.ZodObject<{
18768
+ id: z.ZodUUID;
18769
+ tenant_id: z.ZodString;
18770
+ site_id: z.ZodUUID;
18771
+ kind: z.ZodEnum<{
18772
+ landing_page: "landing_page";
18773
+ external: "external";
18774
+ workspace: "workspace";
18775
+ }>;
18776
+ origin: z.ZodEnum<{
18777
+ background: "background";
18778
+ user: "user";
18779
+ }>;
18780
+ subject_key: z.ZodString;
18781
+ title: z.ZodString;
18782
+ status: z.ZodEnum<{
18783
+ active: "active";
18784
+ archived: "archived";
18785
+ }>;
18786
+ external_thread_id: z.ZodNullable<z.ZodString>;
18787
+ last_run_id: z.ZodNullable<z.ZodUUID>;
18788
+ last_activity_at: z.ZodString;
18789
+ created_at: z.ZodString;
18790
+ updated_at: z.ZodString;
18791
+ }, z.core.$strip>>;
18792
+ }, z.core.$strip>;
18793
+ export type SiteThreadListResponse = z.infer<typeof SiteThreadListResponseSchema>;
18794
+ export declare const CreateSiteThreadRequestSchema: z.ZodObject<{
18795
+ title: z.ZodString;
18796
+ }, z.core.$strict>;
18797
+ export type CreateSiteThreadRequest = z.infer<typeof CreateSiteThreadRequestSchema>;
18798
+ export declare const UpdateSiteThreadRequestSchema: z.ZodObject<{
18799
+ title: z.ZodOptional<z.ZodString>;
18800
+ status: z.ZodOptional<z.ZodLiteral<"archived">>;
18801
+ }, z.core.$strict>;
18802
+ export type UpdateSiteThreadRequest = z.infer<typeof UpdateSiteThreadRequestSchema>;
18803
+ export declare const SiteThreadResponseSchema: z.ZodObject<{
18804
+ thread: z.ZodObject<{
18805
+ id: z.ZodUUID;
18806
+ tenant_id: z.ZodString;
18807
+ site_id: z.ZodUUID;
18808
+ kind: z.ZodEnum<{
18809
+ landing_page: "landing_page";
18810
+ external: "external";
18811
+ workspace: "workspace";
18812
+ }>;
18813
+ origin: z.ZodEnum<{
18814
+ background: "background";
18815
+ user: "user";
18816
+ }>;
18817
+ subject_key: z.ZodString;
18818
+ title: z.ZodString;
18819
+ status: z.ZodEnum<{
18820
+ active: "active";
18821
+ archived: "archived";
18822
+ }>;
18823
+ external_thread_id: z.ZodNullable<z.ZodString>;
18824
+ last_run_id: z.ZodNullable<z.ZodUUID>;
18825
+ last_activity_at: z.ZodString;
18826
+ created_at: z.ZodString;
18827
+ updated_at: z.ZodString;
18828
+ }, z.core.$strip>;
18829
+ }, z.core.$strip>;
18830
+ export type SiteThreadResponse = z.infer<typeof SiteThreadResponseSchema>;
18503
18831
  /**
18504
18832
  * `GET /sites/:site_id/agent-runs/latest?agent_type=clarify|sitemap|workspace`
18505
18833
  *
@@ -18512,6 +18840,7 @@ export declare const LatestAgentRunQuerySchema: z.ZodObject<{
18512
18840
  clarify: "clarify";
18513
18841
  workspace: "workspace";
18514
18842
  }>;
18843
+ thread_id: z.ZodOptional<z.ZodUUID>;
18515
18844
  }, z.core.$strip>;
18516
18845
  export declare const LatestAgentRunResponseSchema: z.ZodObject<{
18517
18846
  agent_run: z.ZodObject<{
@@ -18524,6 +18853,7 @@ export declare const LatestAgentRunResponseSchema: z.ZodObject<{
18524
18853
  workspace: "workspace";
18525
18854
  }>;
18526
18855
  run_kind: z.ZodEnum<{
18856
+ landing_page: "landing_page";
18527
18857
  sitemap: "sitemap";
18528
18858
  clarify: "clarify";
18529
18859
  initial_generation: "initial_generation";
@@ -18546,6 +18876,7 @@ export declare const LatestAgentRunResponseSchema: z.ZodObject<{
18546
18876
  finished_at: z.ZodNullable<z.ZodString>;
18547
18877
  error_code: z.ZodNullable<z.ZodString>;
18548
18878
  created_at: z.ZodString;
18879
+ thread_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
18549
18880
  }, z.core.$strip>;
18550
18881
  }, z.core.$strip>;
18551
18882
  export type LatestAgentRunQuery = z.infer<typeof LatestAgentRunQuerySchema>;
@@ -19380,6 +19711,7 @@ export declare const WorkspaceServerMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
19380
19711
  payload: z.ZodObject<{
19381
19712
  plan_id: z.ZodString;
19382
19713
  run_kind: z.ZodEnum<{
19714
+ landing_page: "landing_page";
19383
19715
  initial_generation: "initial_generation";
19384
19716
  iteration: "iteration";
19385
19717
  }>;
@@ -20578,6 +20910,7 @@ export declare const WorkspaceWebSocketMessageSchema: z.ZodUnion<readonly [z.Zod
20578
20910
  payload: z.ZodObject<{
20579
20911
  plan_id: z.ZodString;
20580
20912
  run_kind: z.ZodEnum<{
20913
+ landing_page: "landing_page";
20581
20914
  initial_generation: "initial_generation";
20582
20915
  iteration: "iteration";
20583
20916
  }>;
@@ -21597,6 +21930,7 @@ export declare const CancelActiveWorkspaceRunResponseSchema: z.ZodObject<{
21597
21930
  workspace: "workspace";
21598
21931
  }>;
21599
21932
  run_kind: z.ZodEnum<{
21933
+ landing_page: "landing_page";
21600
21934
  sitemap: "sitemap";
21601
21935
  clarify: "clarify";
21602
21936
  initial_generation: "initial_generation";
@@ -21619,6 +21953,7 @@ export declare const CancelActiveWorkspaceRunResponseSchema: z.ZodObject<{
21619
21953
  finished_at: z.ZodNullable<z.ZodString>;
21620
21954
  error_code: z.ZodNullable<z.ZodString>;
21621
21955
  created_at: z.ZodString;
21956
+ thread_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
21622
21957
  }, z.core.$strip>>;
21623
21958
  }, z.core.$strip>;
21624
21959
  export type CancelActiveWorkspaceRunResponse = z.infer<typeof CancelActiveWorkspaceRunResponseSchema>;
@@ -21626,7 +21961,7 @@ export { DEFAULT_FONTS, FONT_PAIRINGS, fontStack, NEXT_FONT_DISPLAY_NAMES, NEXT_
21626
21961
  export type { FontPairing, NextFontEntry } from "./font-catalog.js";
21627
21962
  export { THEME_PRESETS } from "./theme-presets.js";
21628
21963
  export type { ThemePreset } from "./theme-presets.js";
21629
- export { MEDIA_LIBRARY_AUDIO_EXTENSIONS, MEDIA_LIBRARY_DOCUMENT_EXTENSIONS, MEDIA_LIBRARY_EXTENSIONS, MEDIA_LIBRARY_FILE_EXTENSIONS, MEDIA_LIBRARY_IMAGE_EXTENSIONS, MEDIA_LIBRARY_IMAGE_MAX_BYTES, MEDIA_LIBRARY_IMAGE_MIME_TYPES, MEDIA_LIBRARY_MAX_BYTES, MEDIA_LIBRARY_VIDEO_MIME_TYPES, MEDIA_LIBRARY_VIDEO_EXTENSIONS, MEDIA_LIBRARY_AUDIO_MIME_TYPES, MEDIA_LIBRARY_MIME_TYPES, MediaLibraryFileTypeSchema, MediaLibrarySourceSchema, MediaLibraryAssetSchema, ListMediaLibraryAssetsQuerySchema, ListMediaLibraryAssetsResponseSchema, UploadMediaLibraryAssetResponseSchema, UnsplashMediaAssetSchema, SearchUnsplashMediaQuerySchema, SearchUnsplashMediaResponseSchema, UnsplashDownloadLocationSchema, UseUnsplashMediaRequestSchema, UseUnsplashMediaResponseSchema, RegisterMediaResourceReferenceRequestSchema, RegisterMediaResourceReferenceResponseSchema, } from "./media-library.js";
21630
- export type { MediaLibraryFileType, MediaLibrarySource, MediaLibraryAsset, ListMediaLibraryAssetsQuery, ListMediaLibraryAssetsResponse, UploadMediaLibraryAssetResponse, UnsplashMediaAsset, SearchUnsplashMediaQuery, SearchUnsplashMediaResponse, UseUnsplashMediaRequest, UseUnsplashMediaResponse, RegisterMediaResourceReferenceRequest, RegisterMediaResourceReferenceResponse, } from "./media-library.js";
21964
+ export { MEDIA_LIBRARY_AUDIO_EXTENSIONS, MEDIA_LIBRARY_DOCUMENT_EXTENSIONS, MEDIA_LIBRARY_EXTENSIONS, MEDIA_LIBRARY_FILE_EXTENSIONS, MEDIA_LIBRARY_IMAGE_EXTENSIONS, MEDIA_LIBRARY_IMAGE_MAX_BYTES, MEDIA_LIBRARY_IMAGE_MIME_TYPES, MEDIA_LIBRARY_MAX_BYTES, MEDIA_LIBRARY_VIDEO_MIME_TYPES, MEDIA_LIBRARY_VIDEO_EXTENSIONS, MEDIA_LIBRARY_AUDIO_MIME_TYPES, MEDIA_LIBRARY_MIME_TYPES, MediaLibraryFileTypeSchema, MediaLibrarySourceSchema, MediaLibraryAssetSchema, ListMediaLibraryAssetsQuerySchema, ListMediaLibraryAssetsResponseSchema, UploadMediaLibraryAssetResponseSchema, AI_IMAGE_GENERATION_MAX_QUANTITY, AI_IMAGE_GENERATION_ENTITLEMENT, AiImageGenerationPrecheckRequestSchema, AiImageGenerationQuotaSchema, AiImageGenerationPrecheckResponseSchema, GenerateAiImagesRequestSchema, GeneratedAiImageResultSchema, GenerateAiImagesResponseSchema, UnsplashMediaAssetSchema, SearchUnsplashMediaQuerySchema, SearchUnsplashMediaResponseSchema, UnsplashDownloadLocationSchema, UseUnsplashMediaRequestSchema, UseUnsplashMediaResponseSchema, RegisterMediaResourceReferenceRequestSchema, RegisterMediaResourceReferenceResponseSchema, } from "./media-library.js";
21965
+ export type { MediaLibraryFileType, MediaLibrarySource, MediaLibraryAsset, ListMediaLibraryAssetsQuery, ListMediaLibraryAssetsResponse, UploadMediaLibraryAssetResponse, AiImageGenerationPrecheckRequest, AiImageGenerationQuota, AiImageGenerationPrecheckResponse, GenerateAiImagesRequest, GeneratedAiImageResult, GenerateAiImagesResponse, UnsplashMediaAsset, SearchUnsplashMediaQuery, SearchUnsplashMediaResponse, UseUnsplashMediaRequest, UseUnsplashMediaResponse, RegisterMediaResourceReferenceRequest, RegisterMediaResourceReferenceResponse, } from "./media-library.js";
21631
21966
  export { WorkspaceDesignApplyRequestSchema, WorkspaceDesignApplyResponseSchema, } from "./workspace-design-apply.js";
21632
21967
  export type { WorkspaceDesignApplyRequest, WorkspaceDesignApplyResponse, } from "./workspace-design-apply.js";