@vcp-dev/contracts 0.8.3 → 0.8.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/cms-page-directory.d.ts +2 -0
- package/dist/index.d.ts +47 -2
- package/dist/index.js +1 -1
- package/dist/media-library.d.ts +15 -0
- package/dist/page-slug.d.ts +10 -1
- package/dist/site-edit-version.d.ts +1 -1
- package/dist/step5-strategy.d.ts +158 -1
- package/package.json +1 -1
package/dist/media-library.d.ts
CHANGED
|
@@ -162,3 +162,18 @@ export declare const UseUnsplashMediaResponseSchema: z.ZodObject<{
|
|
|
162
162
|
}, z.core.$strip>;
|
|
163
163
|
}, z.core.$strip>;
|
|
164
164
|
export type UseUnsplashMediaResponse = z.infer<typeof UseUnsplashMediaResponseSchema>;
|
|
165
|
+
export declare const RegisterMediaResourceReferenceRequestSchema: z.ZodObject<{
|
|
166
|
+
source_id: z.ZodNumber;
|
|
167
|
+
source_title: z.ZodString;
|
|
168
|
+
source_url: z.ZodString;
|
|
169
|
+
resource_id: z.ZodNumber;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
export type RegisterMediaResourceReferenceRequest = z.infer<typeof RegisterMediaResourceReferenceRequestSchema>;
|
|
172
|
+
export declare const RegisterMediaResourceReferenceResponseSchema: z.ZodObject<{
|
|
173
|
+
code: z.ZodLiteral<0>;
|
|
174
|
+
message: z.ZodString;
|
|
175
|
+
data: z.ZodObject<{
|
|
176
|
+
reported: z.ZodBoolean;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
}, z.core.$strip>;
|
|
179
|
+
export type RegisterMediaResourceReferenceResponse = z.infer<typeof RegisterMediaResourceReferenceResponseSchema>;
|
package/dist/page-slug.d.ts
CHANGED
|
@@ -25,7 +25,16 @@
|
|
|
25
25
|
*/
|
|
26
26
|
export declare const PAGE_SLUG_SEGMENT_PATTERN_SOURCE = "[a-z0-9]+(?:-[a-z0-9]+)*";
|
|
27
27
|
export declare const PAGE_SLUG_PATTERN: RegExp;
|
|
28
|
-
|
|
28
|
+
/**
|
|
29
|
+
* 平台保留的路由路径:模板自带这些路由文件,Sitemap 不得生成同名路由,
|
|
30
|
+
* 路由剪枝也不得把它们删掉。是否允许用户编辑由 `.donttouch_files.json`
|
|
31
|
+
* 单独决定——`/system/not-found` 就是保留但可编辑的。
|
|
32
|
+
*
|
|
33
|
+
* 用 `/system/not-found` 而不是 `/404`:后者是 Next 的保留路径,
|
|
34
|
+
* `app/404/page.tsx` 不会成为路由(实测请求返回 404 而非 200),编辑桥的
|
|
35
|
+
* 路由表因此索引不到它。
|
|
36
|
+
*/
|
|
37
|
+
export declare const PLATFORM_OWNED_PAGE_SLUGS: readonly ["/privacy", "/cookie-policy", "/system/not-found"];
|
|
29
38
|
export declare const PLATFORM_OWNED_ROUTE_FILE_PATHS: string[];
|
|
30
39
|
export declare function isCanonicalPageSlug(value: unknown): value is string;
|
|
31
40
|
/**
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* 由 release-edit-engine-packages.ts 在 bump 版本时自动更新。
|
|
7
7
|
*/
|
|
8
|
-
export declare const CURRENT_EDIT_ENGINE_VERSION = "0.8.
|
|
8
|
+
export declare const CURRENT_EDIT_ENGINE_VERSION = "0.8.5";
|
|
9
9
|
export declare const EDIT_ENGINE_VERSION_HEADER = "x-vcp-edit-engine-version";
|
|
10
10
|
export declare const EDIT_ENGINE_VERSION_SOURCE_HEADER = "x-vcp-edit-engine-version-source";
|
|
11
11
|
export type EditEngineVersionSource = "explicit" | "fallback_current" | "system_current";
|
package/dist/step5-strategy.d.ts
CHANGED
|
@@ -187,6 +187,19 @@ export declare const Step5StrategyPlanSchema: z.ZodObject<{
|
|
|
187
187
|
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
188
188
|
}, z.core.$strict>;
|
|
189
189
|
export type Step5StrategyPlan = z.infer<typeof Step5StrategyPlanSchema>;
|
|
190
|
+
export declare const Step5StructureDetailSchema: z.ZodObject<{
|
|
191
|
+
goal: z.ZodString;
|
|
192
|
+
issue: z.ZodString;
|
|
193
|
+
criteria: z.ZodArray<z.ZodString>;
|
|
194
|
+
resources: z.ZodArray<z.ZodString>;
|
|
195
|
+
risks: z.ZodArray<z.ZodString>;
|
|
196
|
+
execution: z.ZodObject<{
|
|
197
|
+
standard: z.ZodArray<z.ZodString>;
|
|
198
|
+
acceptance: z.ZodArray<z.ZodString>;
|
|
199
|
+
downstream: z.ZodArray<z.ZodString>;
|
|
200
|
+
}, z.core.$strict>;
|
|
201
|
+
}, z.core.$strict>;
|
|
202
|
+
export type Step5StructureDetail = z.infer<typeof Step5StructureDetailSchema>;
|
|
190
203
|
export declare const Step5EvidenceReferenceSchema: z.ZodObject<{
|
|
191
204
|
source_type: z.ZodEnum<{
|
|
192
205
|
step2: "step2";
|
|
@@ -539,7 +552,7 @@ export declare const Step5SemrushKeywordCandidateSearchRequestSchema: z.ZodObjec
|
|
|
539
552
|
offset: z.ZodDefault<z.ZodNumber>;
|
|
540
553
|
min_search_volume: z.ZodDefault<z.ZodNumber>;
|
|
541
554
|
max_keyword_difficulty: z.ZodDefault<z.ZodNumber>;
|
|
542
|
-
min_relevance_score: z.ZodDefault<z.ZodLiteral<0>>;
|
|
555
|
+
min_relevance_score: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
543
556
|
}, z.core.$strict>;
|
|
544
557
|
export type Step5SemrushKeywordCandidateSearchRequest = z.infer<typeof Step5SemrushKeywordCandidateSearchRequestSchema>;
|
|
545
558
|
export declare const Step5SemrushKeywordCandidateSchema: z.ZodObject<{
|
|
@@ -1071,6 +1084,18 @@ export declare const Step5StrategyItemSchema: z.ZodObject<{
|
|
|
1071
1084
|
columns: z.ZodArray<z.ZodString>;
|
|
1072
1085
|
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
1073
1086
|
}, z.core.$strict>>>;
|
|
1087
|
+
structure_detail: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1088
|
+
goal: z.ZodString;
|
|
1089
|
+
issue: z.ZodString;
|
|
1090
|
+
criteria: z.ZodArray<z.ZodString>;
|
|
1091
|
+
resources: z.ZodArray<z.ZodString>;
|
|
1092
|
+
risks: z.ZodArray<z.ZodString>;
|
|
1093
|
+
execution: z.ZodObject<{
|
|
1094
|
+
standard: z.ZodArray<z.ZodString>;
|
|
1095
|
+
acceptance: z.ZodArray<z.ZodString>;
|
|
1096
|
+
downstream: z.ZodArray<z.ZodString>;
|
|
1097
|
+
}, z.core.$strict>;
|
|
1098
|
+
}, z.core.$strict>>>;
|
|
1074
1099
|
note_tips: z.ZodArray<z.ZodString>;
|
|
1075
1100
|
note_placeholder: z.ZodString;
|
|
1076
1101
|
evidence_refs: z.ZodArray<z.ZodObject<{
|
|
@@ -2251,6 +2276,18 @@ export declare const Step5StrategyVersionSnapshotSchema: z.ZodObject<{
|
|
|
2251
2276
|
columns: z.ZodArray<z.ZodString>;
|
|
2252
2277
|
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
2253
2278
|
}, z.core.$strict>>>;
|
|
2279
|
+
structure_detail: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2280
|
+
goal: z.ZodString;
|
|
2281
|
+
issue: z.ZodString;
|
|
2282
|
+
criteria: z.ZodArray<z.ZodString>;
|
|
2283
|
+
resources: z.ZodArray<z.ZodString>;
|
|
2284
|
+
risks: z.ZodArray<z.ZodString>;
|
|
2285
|
+
execution: z.ZodObject<{
|
|
2286
|
+
standard: z.ZodArray<z.ZodString>;
|
|
2287
|
+
acceptance: z.ZodArray<z.ZodString>;
|
|
2288
|
+
downstream: z.ZodArray<z.ZodString>;
|
|
2289
|
+
}, z.core.$strict>;
|
|
2290
|
+
}, z.core.$strict>>>;
|
|
2254
2291
|
note_tips: z.ZodArray<z.ZodString>;
|
|
2255
2292
|
note_placeholder: z.ZodString;
|
|
2256
2293
|
evidence_refs: z.ZodArray<z.ZodObject<{
|
|
@@ -3019,6 +3056,18 @@ export declare const Step5CommittedVersionSchema: z.ZodObject<{
|
|
|
3019
3056
|
columns: z.ZodArray<z.ZodString>;
|
|
3020
3057
|
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
3021
3058
|
}, z.core.$strict>>>;
|
|
3059
|
+
structure_detail: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3060
|
+
goal: z.ZodString;
|
|
3061
|
+
issue: z.ZodString;
|
|
3062
|
+
criteria: z.ZodArray<z.ZodString>;
|
|
3063
|
+
resources: z.ZodArray<z.ZodString>;
|
|
3064
|
+
risks: z.ZodArray<z.ZodString>;
|
|
3065
|
+
execution: z.ZodObject<{
|
|
3066
|
+
standard: z.ZodArray<z.ZodString>;
|
|
3067
|
+
acceptance: z.ZodArray<z.ZodString>;
|
|
3068
|
+
downstream: z.ZodArray<z.ZodString>;
|
|
3069
|
+
}, z.core.$strict>;
|
|
3070
|
+
}, z.core.$strict>>>;
|
|
3022
3071
|
note_tips: z.ZodArray<z.ZodString>;
|
|
3023
3072
|
note_placeholder: z.ZodString;
|
|
3024
3073
|
evidence_refs: z.ZodArray<z.ZodObject<{
|
|
@@ -3778,6 +3827,18 @@ export declare const Step5StrategyJobSchema: z.ZodObject<{
|
|
|
3778
3827
|
columns: z.ZodArray<z.ZodString>;
|
|
3779
3828
|
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
3780
3829
|
}, z.core.$strict>>>;
|
|
3830
|
+
structure_detail: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3831
|
+
goal: z.ZodString;
|
|
3832
|
+
issue: z.ZodString;
|
|
3833
|
+
criteria: z.ZodArray<z.ZodString>;
|
|
3834
|
+
resources: z.ZodArray<z.ZodString>;
|
|
3835
|
+
risks: z.ZodArray<z.ZodString>;
|
|
3836
|
+
execution: z.ZodObject<{
|
|
3837
|
+
standard: z.ZodArray<z.ZodString>;
|
|
3838
|
+
acceptance: z.ZodArray<z.ZodString>;
|
|
3839
|
+
downstream: z.ZodArray<z.ZodString>;
|
|
3840
|
+
}, z.core.$strict>;
|
|
3841
|
+
}, z.core.$strict>>>;
|
|
3781
3842
|
note_tips: z.ZodArray<z.ZodString>;
|
|
3782
3843
|
note_placeholder: z.ZodString;
|
|
3783
3844
|
evidence_refs: z.ZodArray<z.ZodObject<{
|
|
@@ -4547,6 +4608,18 @@ export declare const Step5StrategyJobSchema: z.ZodObject<{
|
|
|
4547
4608
|
columns: z.ZodArray<z.ZodString>;
|
|
4548
4609
|
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
4549
4610
|
}, z.core.$strict>>>;
|
|
4611
|
+
structure_detail: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4612
|
+
goal: z.ZodString;
|
|
4613
|
+
issue: z.ZodString;
|
|
4614
|
+
criteria: z.ZodArray<z.ZodString>;
|
|
4615
|
+
resources: z.ZodArray<z.ZodString>;
|
|
4616
|
+
risks: z.ZodArray<z.ZodString>;
|
|
4617
|
+
execution: z.ZodObject<{
|
|
4618
|
+
standard: z.ZodArray<z.ZodString>;
|
|
4619
|
+
acceptance: z.ZodArray<z.ZodString>;
|
|
4620
|
+
downstream: z.ZodArray<z.ZodString>;
|
|
4621
|
+
}, z.core.$strict>;
|
|
4622
|
+
}, z.core.$strict>>>;
|
|
4550
4623
|
note_tips: z.ZodArray<z.ZodString>;
|
|
4551
4624
|
note_placeholder: z.ZodString;
|
|
4552
4625
|
evidence_refs: z.ZodArray<z.ZodObject<{
|
|
@@ -5311,6 +5384,18 @@ export declare const Step5StartStrategyResponseSchema: z.ZodObject<{
|
|
|
5311
5384
|
columns: z.ZodArray<z.ZodString>;
|
|
5312
5385
|
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
5313
5386
|
}, z.core.$strict>>>;
|
|
5387
|
+
structure_detail: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
5388
|
+
goal: z.ZodString;
|
|
5389
|
+
issue: z.ZodString;
|
|
5390
|
+
criteria: z.ZodArray<z.ZodString>;
|
|
5391
|
+
resources: z.ZodArray<z.ZodString>;
|
|
5392
|
+
risks: z.ZodArray<z.ZodString>;
|
|
5393
|
+
execution: z.ZodObject<{
|
|
5394
|
+
standard: z.ZodArray<z.ZodString>;
|
|
5395
|
+
acceptance: z.ZodArray<z.ZodString>;
|
|
5396
|
+
downstream: z.ZodArray<z.ZodString>;
|
|
5397
|
+
}, z.core.$strict>;
|
|
5398
|
+
}, z.core.$strict>>>;
|
|
5314
5399
|
note_tips: z.ZodArray<z.ZodString>;
|
|
5315
5400
|
note_placeholder: z.ZodString;
|
|
5316
5401
|
evidence_refs: z.ZodArray<z.ZodObject<{
|
|
@@ -6080,6 +6165,18 @@ export declare const Step5StartStrategyResponseSchema: z.ZodObject<{
|
|
|
6080
6165
|
columns: z.ZodArray<z.ZodString>;
|
|
6081
6166
|
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
6082
6167
|
}, z.core.$strict>>>;
|
|
6168
|
+
structure_detail: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
6169
|
+
goal: z.ZodString;
|
|
6170
|
+
issue: z.ZodString;
|
|
6171
|
+
criteria: z.ZodArray<z.ZodString>;
|
|
6172
|
+
resources: z.ZodArray<z.ZodString>;
|
|
6173
|
+
risks: z.ZodArray<z.ZodString>;
|
|
6174
|
+
execution: z.ZodObject<{
|
|
6175
|
+
standard: z.ZodArray<z.ZodString>;
|
|
6176
|
+
acceptance: z.ZodArray<z.ZodString>;
|
|
6177
|
+
downstream: z.ZodArray<z.ZodString>;
|
|
6178
|
+
}, z.core.$strict>;
|
|
6179
|
+
}, z.core.$strict>>>;
|
|
6083
6180
|
note_tips: z.ZodArray<z.ZodString>;
|
|
6084
6181
|
note_placeholder: z.ZodString;
|
|
6085
6182
|
evidence_refs: z.ZodArray<z.ZodObject<{
|
|
@@ -7119,6 +7216,18 @@ export declare const Step5StrategySnapshotDataSchema: z.ZodObject<{
|
|
|
7119
7216
|
columns: z.ZodArray<z.ZodString>;
|
|
7120
7217
|
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
7121
7218
|
}, z.core.$strict>>>;
|
|
7219
|
+
structure_detail: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
7220
|
+
goal: z.ZodString;
|
|
7221
|
+
issue: z.ZodString;
|
|
7222
|
+
criteria: z.ZodArray<z.ZodString>;
|
|
7223
|
+
resources: z.ZodArray<z.ZodString>;
|
|
7224
|
+
risks: z.ZodArray<z.ZodString>;
|
|
7225
|
+
execution: z.ZodObject<{
|
|
7226
|
+
standard: z.ZodArray<z.ZodString>;
|
|
7227
|
+
acceptance: z.ZodArray<z.ZodString>;
|
|
7228
|
+
downstream: z.ZodArray<z.ZodString>;
|
|
7229
|
+
}, z.core.$strict>;
|
|
7230
|
+
}, z.core.$strict>>>;
|
|
7122
7231
|
note_tips: z.ZodArray<z.ZodString>;
|
|
7123
7232
|
note_placeholder: z.ZodString;
|
|
7124
7233
|
evidence_refs: z.ZodArray<z.ZodObject<{
|
|
@@ -7888,6 +7997,18 @@ export declare const Step5StrategySnapshotDataSchema: z.ZodObject<{
|
|
|
7888
7997
|
columns: z.ZodArray<z.ZodString>;
|
|
7889
7998
|
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
7890
7999
|
}, z.core.$strict>>>;
|
|
8000
|
+
structure_detail: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
8001
|
+
goal: z.ZodString;
|
|
8002
|
+
issue: z.ZodString;
|
|
8003
|
+
criteria: z.ZodArray<z.ZodString>;
|
|
8004
|
+
resources: z.ZodArray<z.ZodString>;
|
|
8005
|
+
risks: z.ZodArray<z.ZodString>;
|
|
8006
|
+
execution: z.ZodObject<{
|
|
8007
|
+
standard: z.ZodArray<z.ZodString>;
|
|
8008
|
+
acceptance: z.ZodArray<z.ZodString>;
|
|
8009
|
+
downstream: z.ZodArray<z.ZodString>;
|
|
8010
|
+
}, z.core.$strict>;
|
|
8011
|
+
}, z.core.$strict>>>;
|
|
7891
8012
|
note_tips: z.ZodArray<z.ZodString>;
|
|
7892
8013
|
note_placeholder: z.ZodString;
|
|
7893
8014
|
evidence_refs: z.ZodArray<z.ZodObject<{
|
|
@@ -8660,6 +8781,18 @@ export declare const Step5StrategySseFrameSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
8660
8781
|
columns: z.ZodArray<z.ZodString>;
|
|
8661
8782
|
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
8662
8783
|
}, z.core.$strict>>>;
|
|
8784
|
+
structure_detail: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
8785
|
+
goal: z.ZodString;
|
|
8786
|
+
issue: z.ZodString;
|
|
8787
|
+
criteria: z.ZodArray<z.ZodString>;
|
|
8788
|
+
resources: z.ZodArray<z.ZodString>;
|
|
8789
|
+
risks: z.ZodArray<z.ZodString>;
|
|
8790
|
+
execution: z.ZodObject<{
|
|
8791
|
+
standard: z.ZodArray<z.ZodString>;
|
|
8792
|
+
acceptance: z.ZodArray<z.ZodString>;
|
|
8793
|
+
downstream: z.ZodArray<z.ZodString>;
|
|
8794
|
+
}, z.core.$strict>;
|
|
8795
|
+
}, z.core.$strict>>>;
|
|
8663
8796
|
note_tips: z.ZodArray<z.ZodString>;
|
|
8664
8797
|
note_placeholder: z.ZodString;
|
|
8665
8798
|
evidence_refs: z.ZodArray<z.ZodObject<{
|
|
@@ -9429,6 +9562,18 @@ export declare const Step5StrategySseFrameSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
9429
9562
|
columns: z.ZodArray<z.ZodString>;
|
|
9430
9563
|
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
9431
9564
|
}, z.core.$strict>>>;
|
|
9565
|
+
structure_detail: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
9566
|
+
goal: z.ZodString;
|
|
9567
|
+
issue: z.ZodString;
|
|
9568
|
+
criteria: z.ZodArray<z.ZodString>;
|
|
9569
|
+
resources: z.ZodArray<z.ZodString>;
|
|
9570
|
+
risks: z.ZodArray<z.ZodString>;
|
|
9571
|
+
execution: z.ZodObject<{
|
|
9572
|
+
standard: z.ZodArray<z.ZodString>;
|
|
9573
|
+
acceptance: z.ZodArray<z.ZodString>;
|
|
9574
|
+
downstream: z.ZodArray<z.ZodString>;
|
|
9575
|
+
}, z.core.$strict>;
|
|
9576
|
+
}, z.core.$strict>>>;
|
|
9432
9577
|
note_tips: z.ZodArray<z.ZodString>;
|
|
9433
9578
|
note_placeholder: z.ZodString;
|
|
9434
9579
|
evidence_refs: z.ZodArray<z.ZodObject<{
|
|
@@ -10194,6 +10339,18 @@ export declare const Step5StrategySseFrameSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
10194
10339
|
columns: z.ZodArray<z.ZodString>;
|
|
10195
10340
|
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
10196
10341
|
}, z.core.$strict>>>;
|
|
10342
|
+
structure_detail: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10343
|
+
goal: z.ZodString;
|
|
10344
|
+
issue: z.ZodString;
|
|
10345
|
+
criteria: z.ZodArray<z.ZodString>;
|
|
10346
|
+
resources: z.ZodArray<z.ZodString>;
|
|
10347
|
+
risks: z.ZodArray<z.ZodString>;
|
|
10348
|
+
execution: z.ZodObject<{
|
|
10349
|
+
standard: z.ZodArray<z.ZodString>;
|
|
10350
|
+
acceptance: z.ZodArray<z.ZodString>;
|
|
10351
|
+
downstream: z.ZodArray<z.ZodString>;
|
|
10352
|
+
}, z.core.$strict>;
|
|
10353
|
+
}, z.core.$strict>>>;
|
|
10197
10354
|
note_tips: z.ZodArray<z.ZodString>;
|
|
10198
10355
|
note_placeholder: z.ZodString;
|
|
10199
10356
|
evidence_refs: z.ZodArray<z.ZodObject<{
|