@vcp-dev/contracts 0.9.4 → 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.
|
@@ -64,6 +64,7 @@ export declare const CreateExternalSiteEditRequestSchema: z.ZodObject<{
|
|
|
64
64
|
external_run_id: z.ZodString;
|
|
65
65
|
external_thread_id: z.ZodString;
|
|
66
66
|
prompt: z.ZodString;
|
|
67
|
+
thread_title: z.ZodOptional<z.ZodString>;
|
|
67
68
|
}, z.core.$strict>;
|
|
68
69
|
export type CreateExternalSiteEditRequest = z.infer<typeof CreateExternalSiteEditRequestSchema>;
|
|
69
70
|
/**
|
|
@@ -104,6 +105,7 @@ export declare const ExternalSiteEditTaskSchema: z.ZodObject<{
|
|
|
104
105
|
sandbox_unavailable: "sandbox_unavailable";
|
|
105
106
|
}>>;
|
|
106
107
|
vcp_run_id: z.ZodNullable<z.ZodUUID>;
|
|
108
|
+
vcp_thread_id: z.ZodNullable<z.ZodUUID>;
|
|
107
109
|
base_snapshot_id: z.ZodUUID;
|
|
108
110
|
snapshot_id: z.ZodNullable<z.ZodUUID>;
|
|
109
111
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
@@ -153,6 +155,7 @@ export declare const CreateExternalSiteEditResponseSchema: z.ZodObject<{
|
|
|
153
155
|
sandbox_unavailable: "sandbox_unavailable";
|
|
154
156
|
}>>;
|
|
155
157
|
vcp_run_id: z.ZodNullable<z.ZodUUID>;
|
|
158
|
+
vcp_thread_id: z.ZodNullable<z.ZodUUID>;
|
|
156
159
|
base_snapshot_id: z.ZodUUID;
|
|
157
160
|
snapshot_id: z.ZodNullable<z.ZodUUID>;
|
|
158
161
|
preview_url: z.ZodNullable<z.ZodString>;
|
|
@@ -203,6 +206,7 @@ export declare const GetExternalSiteEditResponseSchema: z.ZodObject<{
|
|
|
203
206
|
sandbox_unavailable: "sandbox_unavailable";
|
|
204
207
|
}>>;
|
|
205
208
|
vcp_run_id: z.ZodNullable<z.ZodUUID>;
|
|
209
|
+
vcp_thread_id: z.ZodNullable<z.ZodUUID>;
|
|
206
210
|
base_snapshot_id: z.ZodUUID;
|
|
207
211
|
snapshot_id: z.ZodNullable<z.ZodUUID>;
|
|
208
212
|
preview_url: z.ZodNullable<z.ZodString>;
|
package/dist/index.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ export * from "./customer-materials.js";
|
|
|
55
55
|
export * from "./step2-site-initialization.js";
|
|
56
56
|
export * from "./step5-strategy.js";
|
|
57
57
|
export * from "./step6-design.js";
|
|
58
|
+
export * from "./step6-gpt-design.js";
|
|
58
59
|
export * from "./conversion-hints.js";
|
|
59
60
|
export * from "./industry-classification.js";
|
|
60
61
|
export * from "./business-facts.js";
|
|
@@ -1926,6 +1927,7 @@ export declare const AgentRunTypeSchema: z.ZodEnum<{
|
|
|
1926
1927
|
workspace: "workspace";
|
|
1927
1928
|
}>;
|
|
1928
1929
|
export declare const AgentRunKindSchema: z.ZodEnum<{
|
|
1930
|
+
landing_page: "landing_page";
|
|
1929
1931
|
sitemap: "sitemap";
|
|
1930
1932
|
clarify: "clarify";
|
|
1931
1933
|
initial_generation: "initial_generation";
|
|
@@ -1950,6 +1952,7 @@ export declare const AgentRunRecordSchema: z.ZodObject<{
|
|
|
1950
1952
|
workspace: "workspace";
|
|
1951
1953
|
}>;
|
|
1952
1954
|
run_kind: z.ZodEnum<{
|
|
1955
|
+
landing_page: "landing_page";
|
|
1953
1956
|
sitemap: "sitemap";
|
|
1954
1957
|
clarify: "clarify";
|
|
1955
1958
|
initial_generation: "initial_generation";
|
|
@@ -1972,8 +1975,119 @@ export declare const AgentRunRecordSchema: z.ZodObject<{
|
|
|
1972
1975
|
finished_at: z.ZodNullable<z.ZodString>;
|
|
1973
1976
|
error_code: z.ZodNullable<z.ZodString>;
|
|
1974
1977
|
created_at: z.ZodString;
|
|
1978
|
+
thread_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
1975
1979
|
}, z.core.$strip>;
|
|
1976
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>;
|
|
1977
2091
|
export type AgentModelRoute = z.infer<typeof AgentModelRouteSchema>;
|
|
1978
2092
|
export declare const CreateAgentRunRequestSchema: z.ZodObject<{
|
|
1979
2093
|
run_id: z.ZodOptional<z.ZodUUID>;
|
|
@@ -1984,6 +2098,7 @@ export declare const CreateAgentRunRequestSchema: z.ZodObject<{
|
|
|
1984
2098
|
workspace: "workspace";
|
|
1985
2099
|
}>;
|
|
1986
2100
|
run_kind: z.ZodOptional<z.ZodEnum<{
|
|
2101
|
+
landing_page: "landing_page";
|
|
1987
2102
|
sitemap: "sitemap";
|
|
1988
2103
|
clarify: "clarify";
|
|
1989
2104
|
initial_generation: "initial_generation";
|
|
@@ -2009,6 +2124,7 @@ export declare const CreateAgentRunResponseSchema: z.ZodObject<{
|
|
|
2009
2124
|
workspace: "workspace";
|
|
2010
2125
|
}>;
|
|
2011
2126
|
run_kind: z.ZodEnum<{
|
|
2127
|
+
landing_page: "landing_page";
|
|
2012
2128
|
sitemap: "sitemap";
|
|
2013
2129
|
clarify: "clarify";
|
|
2014
2130
|
initial_generation: "initial_generation";
|
|
@@ -2031,6 +2147,7 @@ export declare const CreateAgentRunResponseSchema: z.ZodObject<{
|
|
|
2031
2147
|
finished_at: z.ZodNullable<z.ZodString>;
|
|
2032
2148
|
error_code: z.ZodNullable<z.ZodString>;
|
|
2033
2149
|
created_at: z.ZodString;
|
|
2150
|
+
thread_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
2034
2151
|
}, z.core.$strip>;
|
|
2035
2152
|
next_step: z.ZodLiteral<"stream_events">;
|
|
2036
2153
|
}, z.core.$strip>;
|
|
@@ -4147,6 +4264,7 @@ export declare const CreateAgentRunConflictResponseSchema: z.ZodObject<{
|
|
|
4147
4264
|
workspace: "workspace";
|
|
4148
4265
|
}>;
|
|
4149
4266
|
run_kind: z.ZodEnum<{
|
|
4267
|
+
landing_page: "landing_page";
|
|
4150
4268
|
sitemap: "sitemap";
|
|
4151
4269
|
clarify: "clarify";
|
|
4152
4270
|
initial_generation: "initial_generation";
|
|
@@ -4169,6 +4287,7 @@ export declare const CreateAgentRunConflictResponseSchema: z.ZodObject<{
|
|
|
4169
4287
|
finished_at: z.ZodNullable<z.ZodString>;
|
|
4170
4288
|
error_code: z.ZodNullable<z.ZodString>;
|
|
4171
4289
|
created_at: z.ZodString;
|
|
4290
|
+
thread_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
4172
4291
|
}, z.core.$strip>;
|
|
4173
4292
|
}, z.core.$strip>;
|
|
4174
4293
|
}, z.core.$strip>;
|
|
@@ -11438,6 +11557,7 @@ export declare const PersistSiteDesignPlanResponseSchema: z.ZodObject<{
|
|
|
11438
11557
|
}, z.core.$strip>;
|
|
11439
11558
|
export type PersistSiteDesignPlanResponse = z.infer<typeof PersistSiteDesignPlanResponseSchema>;
|
|
11440
11559
|
export declare const WorkspaceRunKindSchema: z.ZodEnum<{
|
|
11560
|
+
landing_page: "landing_page";
|
|
11441
11561
|
initial_generation: "initial_generation";
|
|
11442
11562
|
iteration: "iteration";
|
|
11443
11563
|
}>;
|
|
@@ -11687,6 +11807,7 @@ export type WorkspacePlanDependency = z.infer<typeof WorkspacePlanDependencySche
|
|
|
11687
11807
|
export declare const WorkspaceExecutionPlanSchema: z.ZodObject<{
|
|
11688
11808
|
plan_id: z.ZodString;
|
|
11689
11809
|
run_kind: z.ZodEnum<{
|
|
11810
|
+
landing_page: "landing_page";
|
|
11690
11811
|
initial_generation: "initial_generation";
|
|
11691
11812
|
iteration: "iteration";
|
|
11692
11813
|
}>;
|
|
@@ -12371,6 +12492,7 @@ export declare const AgentEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
12371
12492
|
type: z.ZodLiteral<"workspace.plan.created">;
|
|
12372
12493
|
plan_id: z.ZodString;
|
|
12373
12494
|
run_kind: z.ZodEnum<{
|
|
12495
|
+
landing_page: "landing_page";
|
|
12374
12496
|
initial_generation: "initial_generation";
|
|
12375
12497
|
iteration: "iteration";
|
|
12376
12498
|
}>;
|
|
@@ -13245,6 +13367,7 @@ export declare const AgentEventRecordSchema: z.ZodObject<{
|
|
|
13245
13367
|
type: z.ZodLiteral<"workspace.plan.created">;
|
|
13246
13368
|
plan_id: z.ZodString;
|
|
13247
13369
|
run_kind: z.ZodEnum<{
|
|
13370
|
+
landing_page: "landing_page";
|
|
13248
13371
|
initial_generation: "initial_generation";
|
|
13249
13372
|
iteration: "iteration";
|
|
13250
13373
|
}>;
|
|
@@ -13631,6 +13754,7 @@ export declare const AgentEventRecordSchema: z.ZodObject<{
|
|
|
13631
13754
|
at: z.ZodString;
|
|
13632
13755
|
}, z.core.$strip>], "type">;
|
|
13633
13756
|
created_at: z.ZodString;
|
|
13757
|
+
thread_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
13634
13758
|
}, z.core.$strip>;
|
|
13635
13759
|
export type AgentEventRecord = z.infer<typeof AgentEventRecordSchema>;
|
|
13636
13760
|
export declare const AppendAgentEventRequestSchema: z.ZodObject<{
|
|
@@ -14116,6 +14240,7 @@ export declare const AppendAgentEventRequestSchema: z.ZodObject<{
|
|
|
14116
14240
|
type: z.ZodLiteral<"workspace.plan.created">;
|
|
14117
14241
|
plan_id: z.ZodString;
|
|
14118
14242
|
run_kind: z.ZodEnum<{
|
|
14243
|
+
landing_page: "landing_page";
|
|
14119
14244
|
initial_generation: "initial_generation";
|
|
14120
14245
|
iteration: "iteration";
|
|
14121
14246
|
}>;
|
|
@@ -14515,6 +14640,7 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
14515
14640
|
workspace: "workspace";
|
|
14516
14641
|
}>;
|
|
14517
14642
|
run_kind: z.ZodEnum<{
|
|
14643
|
+
landing_page: "landing_page";
|
|
14518
14644
|
sitemap: "sitemap";
|
|
14519
14645
|
clarify: "clarify";
|
|
14520
14646
|
initial_generation: "initial_generation";
|
|
@@ -14537,6 +14663,7 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
14537
14663
|
finished_at: z.ZodNullable<z.ZodString>;
|
|
14538
14664
|
error_code: z.ZodNullable<z.ZodString>;
|
|
14539
14665
|
created_at: z.ZodString;
|
|
14666
|
+
thread_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
14540
14667
|
}, z.core.$strip>;
|
|
14541
14668
|
event: z.ZodObject<{
|
|
14542
14669
|
id: z.ZodUUID;
|
|
@@ -15026,6 +15153,7 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
15026
15153
|
type: z.ZodLiteral<"workspace.plan.created">;
|
|
15027
15154
|
plan_id: z.ZodString;
|
|
15028
15155
|
run_kind: z.ZodEnum<{
|
|
15156
|
+
landing_page: "landing_page";
|
|
15029
15157
|
initial_generation: "initial_generation";
|
|
15030
15158
|
iteration: "iteration";
|
|
15031
15159
|
}>;
|
|
@@ -15412,6 +15540,7 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
15412
15540
|
at: z.ZodString;
|
|
15413
15541
|
}, z.core.$strip>], "type">;
|
|
15414
15542
|
created_at: z.ZodString;
|
|
15543
|
+
thread_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
15415
15544
|
}, z.core.$strip>;
|
|
15416
15545
|
next_cursor: z.ZodNumber;
|
|
15417
15546
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -15426,6 +15555,7 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
15426
15555
|
workspace: "workspace";
|
|
15427
15556
|
}>;
|
|
15428
15557
|
run_kind: z.ZodEnum<{
|
|
15558
|
+
landing_page: "landing_page";
|
|
15429
15559
|
sitemap: "sitemap";
|
|
15430
15560
|
clarify: "clarify";
|
|
15431
15561
|
initial_generation: "initial_generation";
|
|
@@ -15448,6 +15578,7 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
15448
15578
|
finished_at: z.ZodNullable<z.ZodString>;
|
|
15449
15579
|
error_code: z.ZodNullable<z.ZodString>;
|
|
15450
15580
|
created_at: z.ZodString;
|
|
15581
|
+
thread_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
15451
15582
|
}, z.core.$strip>;
|
|
15452
15583
|
event: z.ZodObject<{
|
|
15453
15584
|
id: z.ZodUUID;
|
|
@@ -15937,6 +16068,7 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
15937
16068
|
type: z.ZodLiteral<"workspace.plan.created">;
|
|
15938
16069
|
plan_id: z.ZodString;
|
|
15939
16070
|
run_kind: z.ZodEnum<{
|
|
16071
|
+
landing_page: "landing_page";
|
|
15940
16072
|
initial_generation: "initial_generation";
|
|
15941
16073
|
iteration: "iteration";
|
|
15942
16074
|
}>;
|
|
@@ -16323,6 +16455,7 @@ export declare const AppendAgentEventResponseSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
16323
16455
|
at: z.ZodString;
|
|
16324
16456
|
}, z.core.$strip>], "type">;
|
|
16325
16457
|
created_at: z.ZodString;
|
|
16458
|
+
thread_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
16326
16459
|
}, z.core.$strip>;
|
|
16327
16460
|
next_cursor: z.ZodNumber;
|
|
16328
16461
|
}, z.core.$strip>], "status">;
|
|
@@ -16816,6 +16949,7 @@ export declare const ListAgentEventsResponseSchema: z.ZodObject<{
|
|
|
16816
16949
|
type: z.ZodLiteral<"workspace.plan.created">;
|
|
16817
16950
|
plan_id: z.ZodString;
|
|
16818
16951
|
run_kind: z.ZodEnum<{
|
|
16952
|
+
landing_page: "landing_page";
|
|
16819
16953
|
initial_generation: "initial_generation";
|
|
16820
16954
|
iteration: "iteration";
|
|
16821
16955
|
}>;
|
|
@@ -17202,6 +17336,7 @@ export declare const ListAgentEventsResponseSchema: z.ZodObject<{
|
|
|
17202
17336
|
at: z.ZodString;
|
|
17203
17337
|
}, z.core.$strip>], "type">;
|
|
17204
17338
|
created_at: z.ZodString;
|
|
17339
|
+
thread_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
17205
17340
|
}, z.core.$strip>>;
|
|
17206
17341
|
next_cursor: z.ZodOptional<z.ZodNumber>;
|
|
17207
17342
|
}, z.core.$strip>;
|
|
@@ -17210,6 +17345,16 @@ export declare const ListAgentEventsQuerySchema: z.ZodObject<{
|
|
|
17210
17345
|
after_sequence: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
17211
17346
|
}, z.core.$strip>;
|
|
17212
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>;
|
|
17213
17358
|
export declare const ApiContractStatusSchema: z.ZodEnum<{
|
|
17214
17359
|
implemented: "implemented";
|
|
17215
17360
|
skeleton: "skeleton";
|
|
@@ -17867,6 +18012,40 @@ export declare const REST_API_ENDPOINTS: readonly [{
|
|
|
17867
18012
|
readonly request_body_schema: "StartWorkspaceRunRequestSchema";
|
|
17868
18013
|
readonly response_schema: "StartWorkspaceRunResponseSchema";
|
|
17869
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."];
|
|
17870
18049
|
}, {
|
|
17871
18050
|
readonly method: "POST";
|
|
17872
18051
|
readonly path: "/v1/agent/workspace/:site_id/form-design-operations";
|
|
@@ -18398,6 +18577,7 @@ export declare const StartWorkspaceRunRequestSchema: z.ZodObject<{
|
|
|
18398
18577
|
}, z.core.$strip>]>>;
|
|
18399
18578
|
role: z.ZodLiteral<"user">;
|
|
18400
18579
|
}, z.core.$strip>>;
|
|
18580
|
+
thread_id: z.ZodOptional<z.ZodUUID>;
|
|
18401
18581
|
client_run_key: z.ZodOptional<z.ZodString>;
|
|
18402
18582
|
}, z.core.$strip>;
|
|
18403
18583
|
export type StartWorkspaceRunRequest = z.infer<typeof StartWorkspaceRunRequestSchema>;
|
|
@@ -18406,6 +18586,7 @@ export declare const WorkspaceSocketDescriptorSchema: z.ZodObject<{
|
|
|
18406
18586
|
run_id: z.ZodUUID;
|
|
18407
18587
|
base_snapshot_id: z.ZodUUID;
|
|
18408
18588
|
run_kind: z.ZodEnum<{
|
|
18589
|
+
landing_page: "landing_page";
|
|
18409
18590
|
initial_generation: "initial_generation";
|
|
18410
18591
|
iteration: "iteration";
|
|
18411
18592
|
}>;
|
|
@@ -18422,6 +18603,7 @@ export declare const StartWorkspaceRunResponseSchema: z.ZodObject<{
|
|
|
18422
18603
|
workspace: "workspace";
|
|
18423
18604
|
}>;
|
|
18424
18605
|
run_kind: z.ZodEnum<{
|
|
18606
|
+
landing_page: "landing_page";
|
|
18425
18607
|
sitemap: "sitemap";
|
|
18426
18608
|
clarify: "clarify";
|
|
18427
18609
|
initial_generation: "initial_generation";
|
|
@@ -18444,12 +18626,14 @@ export declare const StartWorkspaceRunResponseSchema: z.ZodObject<{
|
|
|
18444
18626
|
finished_at: z.ZodNullable<z.ZodString>;
|
|
18445
18627
|
error_code: z.ZodNullable<z.ZodString>;
|
|
18446
18628
|
created_at: z.ZodString;
|
|
18629
|
+
thread_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
18447
18630
|
}, z.core.$strip>;
|
|
18448
18631
|
websocket: z.ZodObject<{
|
|
18449
18632
|
path: z.ZodString;
|
|
18450
18633
|
run_id: z.ZodUUID;
|
|
18451
18634
|
base_snapshot_id: z.ZodUUID;
|
|
18452
18635
|
run_kind: z.ZodEnum<{
|
|
18636
|
+
landing_page: "landing_page";
|
|
18453
18637
|
initial_generation: "initial_generation";
|
|
18454
18638
|
iteration: "iteration";
|
|
18455
18639
|
}>;
|
|
@@ -18476,6 +18660,7 @@ export declare const LatestWorkspaceRunResponseSchema: z.ZodObject<{
|
|
|
18476
18660
|
workspace: "workspace";
|
|
18477
18661
|
}>;
|
|
18478
18662
|
run_kind: z.ZodEnum<{
|
|
18663
|
+
landing_page: "landing_page";
|
|
18479
18664
|
sitemap: "sitemap";
|
|
18480
18665
|
clarify: "clarify";
|
|
18481
18666
|
initial_generation: "initial_generation";
|
|
@@ -18498,9 +18683,151 @@ export declare const LatestWorkspaceRunResponseSchema: z.ZodObject<{
|
|
|
18498
18683
|
finished_at: z.ZodNullable<z.ZodString>;
|
|
18499
18684
|
error_code: z.ZodNullable<z.ZodString>;
|
|
18500
18685
|
created_at: z.ZodString;
|
|
18686
|
+
thread_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
18501
18687
|
}, z.core.$strip>;
|
|
18502
18688
|
}, z.core.$strip>;
|
|
18503
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>;
|
|
18504
18831
|
/**
|
|
18505
18832
|
* `GET /sites/:site_id/agent-runs/latest?agent_type=clarify|sitemap|workspace`
|
|
18506
18833
|
*
|
|
@@ -18513,6 +18840,7 @@ export declare const LatestAgentRunQuerySchema: z.ZodObject<{
|
|
|
18513
18840
|
clarify: "clarify";
|
|
18514
18841
|
workspace: "workspace";
|
|
18515
18842
|
}>;
|
|
18843
|
+
thread_id: z.ZodOptional<z.ZodUUID>;
|
|
18516
18844
|
}, z.core.$strip>;
|
|
18517
18845
|
export declare const LatestAgentRunResponseSchema: z.ZodObject<{
|
|
18518
18846
|
agent_run: z.ZodObject<{
|
|
@@ -18525,6 +18853,7 @@ export declare const LatestAgentRunResponseSchema: z.ZodObject<{
|
|
|
18525
18853
|
workspace: "workspace";
|
|
18526
18854
|
}>;
|
|
18527
18855
|
run_kind: z.ZodEnum<{
|
|
18856
|
+
landing_page: "landing_page";
|
|
18528
18857
|
sitemap: "sitemap";
|
|
18529
18858
|
clarify: "clarify";
|
|
18530
18859
|
initial_generation: "initial_generation";
|
|
@@ -18547,6 +18876,7 @@ export declare const LatestAgentRunResponseSchema: z.ZodObject<{
|
|
|
18547
18876
|
finished_at: z.ZodNullable<z.ZodString>;
|
|
18548
18877
|
error_code: z.ZodNullable<z.ZodString>;
|
|
18549
18878
|
created_at: z.ZodString;
|
|
18879
|
+
thread_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
18550
18880
|
}, z.core.$strip>;
|
|
18551
18881
|
}, z.core.$strip>;
|
|
18552
18882
|
export type LatestAgentRunQuery = z.infer<typeof LatestAgentRunQuerySchema>;
|
|
@@ -19381,6 +19711,7 @@ export declare const WorkspaceServerMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
19381
19711
|
payload: z.ZodObject<{
|
|
19382
19712
|
plan_id: z.ZodString;
|
|
19383
19713
|
run_kind: z.ZodEnum<{
|
|
19714
|
+
landing_page: "landing_page";
|
|
19384
19715
|
initial_generation: "initial_generation";
|
|
19385
19716
|
iteration: "iteration";
|
|
19386
19717
|
}>;
|
|
@@ -20579,6 +20910,7 @@ export declare const WorkspaceWebSocketMessageSchema: z.ZodUnion<readonly [z.Zod
|
|
|
20579
20910
|
payload: z.ZodObject<{
|
|
20580
20911
|
plan_id: z.ZodString;
|
|
20581
20912
|
run_kind: z.ZodEnum<{
|
|
20913
|
+
landing_page: "landing_page";
|
|
20582
20914
|
initial_generation: "initial_generation";
|
|
20583
20915
|
iteration: "iteration";
|
|
20584
20916
|
}>;
|
|
@@ -21598,6 +21930,7 @@ export declare const CancelActiveWorkspaceRunResponseSchema: z.ZodObject<{
|
|
|
21598
21930
|
workspace: "workspace";
|
|
21599
21931
|
}>;
|
|
21600
21932
|
run_kind: z.ZodEnum<{
|
|
21933
|
+
landing_page: "landing_page";
|
|
21601
21934
|
sitemap: "sitemap";
|
|
21602
21935
|
clarify: "clarify";
|
|
21603
21936
|
initial_generation: "initial_generation";
|
|
@@ -21620,6 +21953,7 @@ export declare const CancelActiveWorkspaceRunResponseSchema: z.ZodObject<{
|
|
|
21620
21953
|
finished_at: z.ZodNullable<z.ZodString>;
|
|
21621
21954
|
error_code: z.ZodNullable<z.ZodString>;
|
|
21622
21955
|
created_at: z.ZodString;
|
|
21956
|
+
thread_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
21623
21957
|
}, z.core.$strip>>;
|
|
21624
21958
|
}, z.core.$strip>;
|
|
21625
21959
|
export type CancelActiveWorkspaceRunResponse = z.infer<typeof CancelActiveWorkspaceRunResponseSchema>;
|