@vcp-dev/contracts 0.6.5 → 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/README.md +1 -0
- package/dist/component-i18n-resources.d.ts +29 -0
- package/dist/connect-dynamic-collection.d.ts +3 -3
- package/dist/connect-form.d.ts +3 -3
- package/dist/designer-component-library.d.ts +45 -0
- package/dist/designer-page-library.d.ts +349 -0
- package/dist/form-design.d.ts +2854 -0
- package/dist/index.d.ts +900 -164
- package/dist/index.js +1 -1
- package/dist/input-context-bundle.d.ts +5 -5
- package/dist/site-edit-event.d.ts +14 -1
- package/dist/site-edit-operation.d.ts +247 -7
- package/dist/site-edit-page-composition.d.ts +5 -5
- package/dist/site-edit-render-document.d.ts +12 -8
- package/dist/site-edit-version.d.ts +1 -1
- package/dist/template-upgrade-observability.d.ts +137 -0
- package/dist/template-upgrade-state.d.ts +193 -0
- package/dist/template-version.d.ts +5 -0
- package/package.json +1 -1
|
@@ -19,20 +19,20 @@ export declare const InputBundleStatusSchema: z.ZodEnum<{
|
|
|
19
19
|
}>;
|
|
20
20
|
export type InputBundleStatus = z.infer<typeof InputBundleStatusSchema>;
|
|
21
21
|
export declare const ExtractedFactKindSchema: z.ZodEnum<{
|
|
22
|
+
copy: "copy";
|
|
22
23
|
product: "product";
|
|
23
24
|
price: "price";
|
|
24
25
|
contact: "contact";
|
|
25
|
-
copy: "copy";
|
|
26
26
|
audience: "audience";
|
|
27
27
|
other: "other";
|
|
28
28
|
}>;
|
|
29
29
|
export declare const ExtractedFactSchema: z.ZodObject<{
|
|
30
30
|
fact: z.ZodString;
|
|
31
31
|
kind: z.ZodEnum<{
|
|
32
|
+
copy: "copy";
|
|
32
33
|
product: "product";
|
|
33
34
|
price: "price";
|
|
34
35
|
contact: "contact";
|
|
35
|
-
copy: "copy";
|
|
36
36
|
audience: "audience";
|
|
37
37
|
other: "other";
|
|
38
38
|
}>;
|
|
@@ -164,8 +164,8 @@ export declare const MAX_IMAGE_SOURCES_PER_SITE = 10;
|
|
|
164
164
|
* (写 `ReferenceSignals` 调性信号,不落站)。方案倾向显式选择,故创建请求必填。
|
|
165
165
|
*/
|
|
166
166
|
export declare const ImageRoleSchema: z.ZodEnum<{
|
|
167
|
-
asset: "asset";
|
|
168
167
|
reference: "reference";
|
|
168
|
+
asset: "asset";
|
|
169
169
|
}>;
|
|
170
170
|
export type ImageRole = z.infer<typeof ImageRoleSchema>;
|
|
171
171
|
/**
|
|
@@ -176,8 +176,8 @@ export type ImageRole = z.infer<typeof ImageRoleSchema>;
|
|
|
176
176
|
*/
|
|
177
177
|
export declare const CreateImageUploadRequestSchema: z.ZodObject<{
|
|
178
178
|
image_role: z.ZodEnum<{
|
|
179
|
-
asset: "asset";
|
|
180
179
|
reference: "reference";
|
|
180
|
+
asset: "asset";
|
|
181
181
|
}>;
|
|
182
182
|
title: z.ZodOptional<z.ZodString>;
|
|
183
183
|
}, z.core.$strict>;
|
|
@@ -217,10 +217,10 @@ export declare const InputContextBundleSchema: z.ZodObject<{
|
|
|
217
217
|
facts: z.ZodArray<z.ZodObject<{
|
|
218
218
|
fact: z.ZodString;
|
|
219
219
|
kind: z.ZodEnum<{
|
|
220
|
+
copy: "copy";
|
|
220
221
|
product: "product";
|
|
221
222
|
price: "price";
|
|
222
223
|
contact: "contact";
|
|
223
|
-
copy: "copy";
|
|
224
224
|
audience: "audience";
|
|
225
225
|
other: "other";
|
|
226
226
|
}>;
|
|
@@ -28,6 +28,7 @@ export declare const SiteEditEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
28
28
|
"set-props": "set-props";
|
|
29
29
|
"apply-style-draft": "apply-style-draft";
|
|
30
30
|
"source-edit": "source-edit";
|
|
31
|
+
"insert-page-resource": "insert-page-resource";
|
|
31
32
|
}>;
|
|
32
33
|
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
33
34
|
kind: z.ZodLiteral<"node">;
|
|
@@ -45,7 +46,9 @@ export declare const SiteEditEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
45
46
|
}, z.core.$strip>, z.ZodObject<{
|
|
46
47
|
kind: z.ZodLiteral<"source-batch">;
|
|
47
48
|
paths: z.ZodArray<z.ZodString>;
|
|
48
|
-
}, z.core.$strip
|
|
49
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
+
kind: z.ZodLiteral<"project">;
|
|
51
|
+
}, z.core.$strict>], "kind">;
|
|
49
52
|
resultVersion: z.ZodNumber;
|
|
50
53
|
affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
51
54
|
selectionRef: z.ZodOptional<z.ZodObject<{
|
|
@@ -53,6 +56,16 @@ export declare const SiteEditEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
53
56
|
instanceIndex: z.ZodOptional<z.ZodNumber>;
|
|
54
57
|
instanceCount: z.ZodOptional<z.ZodNumber>;
|
|
55
58
|
}, z.core.$strip>>;
|
|
59
|
+
output: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
60
|
+
kind: z.ZodLiteral<"insert-page-resource">;
|
|
61
|
+
package_instance_id: z.ZodString;
|
|
62
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
63
|
+
template_page_id: z.ZodString;
|
|
64
|
+
title: z.ZodString;
|
|
65
|
+
final_route: z.ZodString;
|
|
66
|
+
route_file_path: z.ZodString;
|
|
67
|
+
}, z.core.$strict>>;
|
|
68
|
+
}, z.core.$strict>], "kind">>;
|
|
56
69
|
}, z.core.$strip>;
|
|
57
70
|
at: z.ZodString;
|
|
58
71
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -10,6 +10,7 @@ export declare const SiteEditOperationTypeSchema: z.ZodEnum<{
|
|
|
10
10
|
"set-props": "set-props";
|
|
11
11
|
"apply-style-draft": "apply-style-draft";
|
|
12
12
|
"source-edit": "source-edit";
|
|
13
|
+
"insert-page-resource": "insert-page-resource";
|
|
13
14
|
}>;
|
|
14
15
|
export type SiteEditOperationType = z.infer<typeof SiteEditOperationTypeSchema>;
|
|
15
16
|
export type SiteEditOperationValue = string | number | boolean | null | SiteEditOperationValue[] | {
|
|
@@ -32,12 +33,15 @@ export declare const SiteEditOperationTargetSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
32
33
|
}, z.core.$strip>, z.ZodObject<{
|
|
33
34
|
kind: z.ZodLiteral<"source-batch">;
|
|
34
35
|
paths: z.ZodArray<z.ZodString>;
|
|
35
|
-
}, z.core.$strip
|
|
36
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
+
kind: z.ZodLiteral<"project">;
|
|
38
|
+
}, z.core.$strict>], "kind">;
|
|
36
39
|
export type SiteEditOperationTarget = z.infer<typeof SiteEditOperationTargetSchema>;
|
|
37
40
|
export declare const SiteEditStylePropertySchema: z.ZodEnum<{
|
|
38
|
-
color: "color";
|
|
39
41
|
transform: "transform";
|
|
42
|
+
color: "color";
|
|
40
43
|
cursor: "cursor";
|
|
44
|
+
columns: "columns";
|
|
41
45
|
width: "width";
|
|
42
46
|
height: "height";
|
|
43
47
|
order: "order";
|
|
@@ -55,7 +59,6 @@ export declare const SiteEditStylePropertySchema: z.ZodEnum<{
|
|
|
55
59
|
flexBasis: "flexBasis";
|
|
56
60
|
gridTemplateColumns: "gridTemplateColumns";
|
|
57
61
|
gridTemplateRows: "gridTemplateRows";
|
|
58
|
-
columns: "columns";
|
|
59
62
|
gridColumn: "gridColumn";
|
|
60
63
|
gridRow: "gridRow";
|
|
61
64
|
gap: "gap";
|
|
@@ -415,6 +418,67 @@ export declare const SiteEditOperationParamsSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
415
418
|
baseContentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
416
419
|
}, z.core.$strict>], "operation">>;
|
|
417
420
|
reason: z.ZodOptional<z.ZodString>;
|
|
421
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
422
|
+
kind: z.ZodLiteral<"insert-page-resource">;
|
|
423
|
+
artifact: z.ZodObject<{
|
|
424
|
+
resource_id: z.ZodString;
|
|
425
|
+
resource_type: z.ZodEnum<{
|
|
426
|
+
page: "page";
|
|
427
|
+
pages: "pages";
|
|
428
|
+
}>;
|
|
429
|
+
resolved_version: z.ZodString;
|
|
430
|
+
revision_id: z.ZodString;
|
|
431
|
+
digest_sha256: z.ZodString;
|
|
432
|
+
components: z.ZodArray<z.ZodObject<{
|
|
433
|
+
component_id: z.ZodString;
|
|
434
|
+
materialization: z.ZodObject<{
|
|
435
|
+
instanceBaseName: z.ZodString;
|
|
436
|
+
files: z.ZodArray<z.ZodObject<{
|
|
437
|
+
pathTemplate: z.ZodString;
|
|
438
|
+
content: z.ZodString;
|
|
439
|
+
role: z.ZodOptional<z.ZodString>;
|
|
440
|
+
}, z.core.$strict>>;
|
|
441
|
+
entry: z.ZodObject<{
|
|
442
|
+
pathTemplate: z.ZodString;
|
|
443
|
+
export: z.ZodUnion<readonly [z.ZodObject<{
|
|
444
|
+
kind: z.ZodLiteral<"default">;
|
|
445
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
446
|
+
kind: z.ZodLiteral<"named">;
|
|
447
|
+
name: z.ZodString;
|
|
448
|
+
}, z.core.$strict>]>;
|
|
449
|
+
}, z.core.$strict>;
|
|
450
|
+
dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
|
|
451
|
+
}, z.core.$strict>;
|
|
452
|
+
}, z.core.$strict>>;
|
|
453
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
454
|
+
template_page_id: z.ZodString;
|
|
455
|
+
title: z.ZodString;
|
|
456
|
+
final_route: z.ZodString;
|
|
457
|
+
materialization: z.ZodObject<{
|
|
458
|
+
instanceBaseName: z.ZodString;
|
|
459
|
+
files: z.ZodArray<z.ZodObject<{
|
|
460
|
+
pathTemplate: z.ZodString;
|
|
461
|
+
content: z.ZodString;
|
|
462
|
+
role: z.ZodOptional<z.ZodString>;
|
|
463
|
+
}, z.core.$strict>>;
|
|
464
|
+
entry: z.ZodObject<{
|
|
465
|
+
pathTemplate: z.ZodString;
|
|
466
|
+
export: z.ZodUnion<readonly [z.ZodObject<{
|
|
467
|
+
kind: z.ZodLiteral<"default">;
|
|
468
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
469
|
+
kind: z.ZodLiteral<"named">;
|
|
470
|
+
name: z.ZodString;
|
|
471
|
+
}, z.core.$strict>]>;
|
|
472
|
+
}, z.core.$strict>;
|
|
473
|
+
dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
|
|
474
|
+
}, z.core.$strict>;
|
|
475
|
+
components: z.ZodArray<z.ZodObject<{
|
|
476
|
+
instance_id: z.ZodString;
|
|
477
|
+
component_id: z.ZodString;
|
|
478
|
+
}, z.core.$strict>>;
|
|
479
|
+
}, z.core.$strict>>;
|
|
480
|
+
project_dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
|
|
481
|
+
}, z.core.$strict>;
|
|
418
482
|
}, z.core.$strict>], "kind">;
|
|
419
483
|
export type SiteEditOperationParams = z.infer<typeof SiteEditOperationParamsSchema>;
|
|
420
484
|
export declare const SiteEditOperationErrorCodeSchema: z.ZodEnum<{
|
|
@@ -506,6 +570,7 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
|
|
|
506
570
|
"set-props": "set-props";
|
|
507
571
|
"apply-style-draft": "apply-style-draft";
|
|
508
572
|
"source-edit": "source-edit";
|
|
573
|
+
"insert-page-resource": "insert-page-resource";
|
|
509
574
|
}>;
|
|
510
575
|
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
511
576
|
kind: z.ZodLiteral<"node">;
|
|
@@ -523,7 +588,9 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
|
|
|
523
588
|
}, z.core.$strip>, z.ZodObject<{
|
|
524
589
|
kind: z.ZodLiteral<"source-batch">;
|
|
525
590
|
paths: z.ZodArray<z.ZodString>;
|
|
526
|
-
}, z.core.$strip
|
|
591
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
592
|
+
kind: z.ZodLiteral<"project">;
|
|
593
|
+
}, z.core.$strict>], "kind">;
|
|
527
594
|
documentVersion: z.ZodNumber;
|
|
528
595
|
selectionRef: z.ZodOptional<z.ZodObject<{
|
|
529
596
|
key: z.ZodString;
|
|
@@ -741,6 +808,67 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
|
|
|
741
808
|
baseContentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
742
809
|
}, z.core.$strict>], "operation">>;
|
|
743
810
|
reason: z.ZodOptional<z.ZodString>;
|
|
811
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
812
|
+
kind: z.ZodLiteral<"insert-page-resource">;
|
|
813
|
+
artifact: z.ZodObject<{
|
|
814
|
+
resource_id: z.ZodString;
|
|
815
|
+
resource_type: z.ZodEnum<{
|
|
816
|
+
page: "page";
|
|
817
|
+
pages: "pages";
|
|
818
|
+
}>;
|
|
819
|
+
resolved_version: z.ZodString;
|
|
820
|
+
revision_id: z.ZodString;
|
|
821
|
+
digest_sha256: z.ZodString;
|
|
822
|
+
components: z.ZodArray<z.ZodObject<{
|
|
823
|
+
component_id: z.ZodString;
|
|
824
|
+
materialization: z.ZodObject<{
|
|
825
|
+
instanceBaseName: z.ZodString;
|
|
826
|
+
files: z.ZodArray<z.ZodObject<{
|
|
827
|
+
pathTemplate: z.ZodString;
|
|
828
|
+
content: z.ZodString;
|
|
829
|
+
role: z.ZodOptional<z.ZodString>;
|
|
830
|
+
}, z.core.$strict>>;
|
|
831
|
+
entry: z.ZodObject<{
|
|
832
|
+
pathTemplate: z.ZodString;
|
|
833
|
+
export: z.ZodUnion<readonly [z.ZodObject<{
|
|
834
|
+
kind: z.ZodLiteral<"default">;
|
|
835
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
836
|
+
kind: z.ZodLiteral<"named">;
|
|
837
|
+
name: z.ZodString;
|
|
838
|
+
}, z.core.$strict>]>;
|
|
839
|
+
}, z.core.$strict>;
|
|
840
|
+
dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
|
|
841
|
+
}, z.core.$strict>;
|
|
842
|
+
}, z.core.$strict>>;
|
|
843
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
844
|
+
template_page_id: z.ZodString;
|
|
845
|
+
title: z.ZodString;
|
|
846
|
+
final_route: z.ZodString;
|
|
847
|
+
materialization: z.ZodObject<{
|
|
848
|
+
instanceBaseName: z.ZodString;
|
|
849
|
+
files: z.ZodArray<z.ZodObject<{
|
|
850
|
+
pathTemplate: z.ZodString;
|
|
851
|
+
content: z.ZodString;
|
|
852
|
+
role: z.ZodOptional<z.ZodString>;
|
|
853
|
+
}, z.core.$strict>>;
|
|
854
|
+
entry: z.ZodObject<{
|
|
855
|
+
pathTemplate: z.ZodString;
|
|
856
|
+
export: z.ZodUnion<readonly [z.ZodObject<{
|
|
857
|
+
kind: z.ZodLiteral<"default">;
|
|
858
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
859
|
+
kind: z.ZodLiteral<"named">;
|
|
860
|
+
name: z.ZodString;
|
|
861
|
+
}, z.core.$strict>]>;
|
|
862
|
+
}, z.core.$strict>;
|
|
863
|
+
dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
|
|
864
|
+
}, z.core.$strict>;
|
|
865
|
+
components: z.ZodArray<z.ZodObject<{
|
|
866
|
+
instance_id: z.ZodString;
|
|
867
|
+
component_id: z.ZodString;
|
|
868
|
+
}, z.core.$strict>>;
|
|
869
|
+
}, z.core.$strict>>;
|
|
870
|
+
project_dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
|
|
871
|
+
}, z.core.$strict>;
|
|
744
872
|
}, z.core.$strict>], "kind">;
|
|
745
873
|
}, z.core.$strip>;
|
|
746
874
|
export type SiteEditOperationRequest = z.infer<typeof SiteEditOperationRequestSchema>;
|
|
@@ -764,6 +892,7 @@ export declare const SiteEditSignedOperationRequestSchema: z.ZodObject<{
|
|
|
764
892
|
"set-props": "set-props";
|
|
765
893
|
"apply-style-draft": "apply-style-draft";
|
|
766
894
|
"source-edit": "source-edit";
|
|
895
|
+
"insert-page-resource": "insert-page-resource";
|
|
767
896
|
}>;
|
|
768
897
|
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
769
898
|
kind: z.ZodLiteral<"node">;
|
|
@@ -781,7 +910,9 @@ export declare const SiteEditSignedOperationRequestSchema: z.ZodObject<{
|
|
|
781
910
|
}, z.core.$strip>, z.ZodObject<{
|
|
782
911
|
kind: z.ZodLiteral<"source-batch">;
|
|
783
912
|
paths: z.ZodArray<z.ZodString>;
|
|
784
|
-
}, z.core.$strip
|
|
913
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
914
|
+
kind: z.ZodLiteral<"project">;
|
|
915
|
+
}, z.core.$strict>], "kind">;
|
|
785
916
|
documentVersion: z.ZodNumber;
|
|
786
917
|
selectionRef: z.ZodOptional<z.ZodObject<{
|
|
787
918
|
key: z.ZodString;
|
|
@@ -999,9 +1130,92 @@ export declare const SiteEditSignedOperationRequestSchema: z.ZodObject<{
|
|
|
999
1130
|
baseContentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1000
1131
|
}, z.core.$strict>], "operation">>;
|
|
1001
1132
|
reason: z.ZodOptional<z.ZodString>;
|
|
1133
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1134
|
+
kind: z.ZodLiteral<"insert-page-resource">;
|
|
1135
|
+
artifact: z.ZodObject<{
|
|
1136
|
+
resource_id: z.ZodString;
|
|
1137
|
+
resource_type: z.ZodEnum<{
|
|
1138
|
+
page: "page";
|
|
1139
|
+
pages: "pages";
|
|
1140
|
+
}>;
|
|
1141
|
+
resolved_version: z.ZodString;
|
|
1142
|
+
revision_id: z.ZodString;
|
|
1143
|
+
digest_sha256: z.ZodString;
|
|
1144
|
+
components: z.ZodArray<z.ZodObject<{
|
|
1145
|
+
component_id: z.ZodString;
|
|
1146
|
+
materialization: z.ZodObject<{
|
|
1147
|
+
instanceBaseName: z.ZodString;
|
|
1148
|
+
files: z.ZodArray<z.ZodObject<{
|
|
1149
|
+
pathTemplate: z.ZodString;
|
|
1150
|
+
content: z.ZodString;
|
|
1151
|
+
role: z.ZodOptional<z.ZodString>;
|
|
1152
|
+
}, z.core.$strict>>;
|
|
1153
|
+
entry: z.ZodObject<{
|
|
1154
|
+
pathTemplate: z.ZodString;
|
|
1155
|
+
export: z.ZodUnion<readonly [z.ZodObject<{
|
|
1156
|
+
kind: z.ZodLiteral<"default">;
|
|
1157
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1158
|
+
kind: z.ZodLiteral<"named">;
|
|
1159
|
+
name: z.ZodString;
|
|
1160
|
+
}, z.core.$strict>]>;
|
|
1161
|
+
}, z.core.$strict>;
|
|
1162
|
+
dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
|
|
1163
|
+
}, z.core.$strict>;
|
|
1164
|
+
}, z.core.$strict>>;
|
|
1165
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
1166
|
+
template_page_id: z.ZodString;
|
|
1167
|
+
title: z.ZodString;
|
|
1168
|
+
final_route: z.ZodString;
|
|
1169
|
+
materialization: z.ZodObject<{
|
|
1170
|
+
instanceBaseName: z.ZodString;
|
|
1171
|
+
files: z.ZodArray<z.ZodObject<{
|
|
1172
|
+
pathTemplate: z.ZodString;
|
|
1173
|
+
content: z.ZodString;
|
|
1174
|
+
role: z.ZodOptional<z.ZodString>;
|
|
1175
|
+
}, z.core.$strict>>;
|
|
1176
|
+
entry: z.ZodObject<{
|
|
1177
|
+
pathTemplate: z.ZodString;
|
|
1178
|
+
export: z.ZodUnion<readonly [z.ZodObject<{
|
|
1179
|
+
kind: z.ZodLiteral<"default">;
|
|
1180
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1181
|
+
kind: z.ZodLiteral<"named">;
|
|
1182
|
+
name: z.ZodString;
|
|
1183
|
+
}, z.core.$strict>]>;
|
|
1184
|
+
}, z.core.$strict>;
|
|
1185
|
+
dataRequirements: z.ZodOptional<z.ZodArray<z.ZodNever>>;
|
|
1186
|
+
}, z.core.$strict>;
|
|
1187
|
+
components: z.ZodArray<z.ZodObject<{
|
|
1188
|
+
instance_id: z.ZodString;
|
|
1189
|
+
component_id: z.ZodString;
|
|
1190
|
+
}, z.core.$strict>>;
|
|
1191
|
+
}, z.core.$strict>>;
|
|
1192
|
+
project_dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNever>>;
|
|
1193
|
+
}, z.core.$strict>;
|
|
1002
1194
|
}, z.core.$strict>], "kind">;
|
|
1003
1195
|
}, z.core.$strip>;
|
|
1004
1196
|
export type SiteEditSignedOperationRequest = z.infer<typeof SiteEditSignedOperationRequestSchema>;
|
|
1197
|
+
export declare const SiteEditInsertPageResourceOutputSchema: z.ZodObject<{
|
|
1198
|
+
kind: z.ZodLiteral<"insert-page-resource">;
|
|
1199
|
+
package_instance_id: z.ZodString;
|
|
1200
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
1201
|
+
template_page_id: z.ZodString;
|
|
1202
|
+
title: z.ZodString;
|
|
1203
|
+
final_route: z.ZodString;
|
|
1204
|
+
route_file_path: z.ZodString;
|
|
1205
|
+
}, z.core.$strict>>;
|
|
1206
|
+
}, z.core.$strict>;
|
|
1207
|
+
export type SiteEditInsertPageResourceOutput = z.infer<typeof SiteEditInsertPageResourceOutputSchema>;
|
|
1208
|
+
export declare const SiteEditOperationOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1209
|
+
kind: z.ZodLiteral<"insert-page-resource">;
|
|
1210
|
+
package_instance_id: z.ZodString;
|
|
1211
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
1212
|
+
template_page_id: z.ZodString;
|
|
1213
|
+
title: z.ZodString;
|
|
1214
|
+
final_route: z.ZodString;
|
|
1215
|
+
route_file_path: z.ZodString;
|
|
1216
|
+
}, z.core.$strict>>;
|
|
1217
|
+
}, z.core.$strict>], "kind">;
|
|
1218
|
+
export type SiteEditOperationOutput = z.infer<typeof SiteEditOperationOutputSchema>;
|
|
1005
1219
|
export declare const SiteEditOperationPayloadSchema: z.ZodObject<{
|
|
1006
1220
|
requestId: z.ZodString;
|
|
1007
1221
|
kind: z.ZodEnum<{
|
|
@@ -1014,6 +1228,7 @@ export declare const SiteEditOperationPayloadSchema: z.ZodObject<{
|
|
|
1014
1228
|
"set-props": "set-props";
|
|
1015
1229
|
"apply-style-draft": "apply-style-draft";
|
|
1016
1230
|
"source-edit": "source-edit";
|
|
1231
|
+
"insert-page-resource": "insert-page-resource";
|
|
1017
1232
|
}>;
|
|
1018
1233
|
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1019
1234
|
kind: z.ZodLiteral<"node">;
|
|
@@ -1031,7 +1246,9 @@ export declare const SiteEditOperationPayloadSchema: z.ZodObject<{
|
|
|
1031
1246
|
}, z.core.$strip>, z.ZodObject<{
|
|
1032
1247
|
kind: z.ZodLiteral<"source-batch">;
|
|
1033
1248
|
paths: z.ZodArray<z.ZodString>;
|
|
1034
|
-
}, z.core.$strip
|
|
1249
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1250
|
+
kind: z.ZodLiteral<"project">;
|
|
1251
|
+
}, z.core.$strict>], "kind">;
|
|
1035
1252
|
resultVersion: z.ZodNumber;
|
|
1036
1253
|
affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1037
1254
|
selectionRef: z.ZodOptional<z.ZodObject<{
|
|
@@ -1039,6 +1256,16 @@ export declare const SiteEditOperationPayloadSchema: z.ZodObject<{
|
|
|
1039
1256
|
instanceIndex: z.ZodOptional<z.ZodNumber>;
|
|
1040
1257
|
instanceCount: z.ZodOptional<z.ZodNumber>;
|
|
1041
1258
|
}, z.core.$strip>>;
|
|
1259
|
+
output: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1260
|
+
kind: z.ZodLiteral<"insert-page-resource">;
|
|
1261
|
+
package_instance_id: z.ZodString;
|
|
1262
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
1263
|
+
template_page_id: z.ZodString;
|
|
1264
|
+
title: z.ZodString;
|
|
1265
|
+
final_route: z.ZodString;
|
|
1266
|
+
route_file_path: z.ZodString;
|
|
1267
|
+
}, z.core.$strict>>;
|
|
1268
|
+
}, z.core.$strict>], "kind">>;
|
|
1042
1269
|
}, z.core.$strip>;
|
|
1043
1270
|
export type SiteEditOperationPayload = z.infer<typeof SiteEditOperationPayloadSchema>;
|
|
1044
1271
|
export declare const SiteEditOperationCommandResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1055,6 +1282,7 @@ export declare const SiteEditOperationCommandResultSchema: z.ZodDiscriminatedUni
|
|
|
1055
1282
|
"set-props": "set-props";
|
|
1056
1283
|
"apply-style-draft": "apply-style-draft";
|
|
1057
1284
|
"source-edit": "source-edit";
|
|
1285
|
+
"insert-page-resource": "insert-page-resource";
|
|
1058
1286
|
}>;
|
|
1059
1287
|
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1060
1288
|
kind: z.ZodLiteral<"node">;
|
|
@@ -1072,7 +1300,9 @@ export declare const SiteEditOperationCommandResultSchema: z.ZodDiscriminatedUni
|
|
|
1072
1300
|
}, z.core.$strip>, z.ZodObject<{
|
|
1073
1301
|
kind: z.ZodLiteral<"source-batch">;
|
|
1074
1302
|
paths: z.ZodArray<z.ZodString>;
|
|
1075
|
-
}, z.core.$strip
|
|
1303
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1304
|
+
kind: z.ZodLiteral<"project">;
|
|
1305
|
+
}, z.core.$strict>], "kind">;
|
|
1076
1306
|
resultVersion: z.ZodNumber;
|
|
1077
1307
|
affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1078
1308
|
selectionRef: z.ZodOptional<z.ZodObject<{
|
|
@@ -1080,6 +1310,16 @@ export declare const SiteEditOperationCommandResultSchema: z.ZodDiscriminatedUni
|
|
|
1080
1310
|
instanceIndex: z.ZodOptional<z.ZodNumber>;
|
|
1081
1311
|
instanceCount: z.ZodOptional<z.ZodNumber>;
|
|
1082
1312
|
}, z.core.$strip>>;
|
|
1313
|
+
output: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1314
|
+
kind: z.ZodLiteral<"insert-page-resource">;
|
|
1315
|
+
package_instance_id: z.ZodString;
|
|
1316
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
1317
|
+
template_page_id: z.ZodString;
|
|
1318
|
+
title: z.ZodString;
|
|
1319
|
+
final_route: z.ZodString;
|
|
1320
|
+
route_file_path: z.ZodString;
|
|
1321
|
+
}, z.core.$strict>>;
|
|
1322
|
+
}, z.core.$strict>], "kind">>;
|
|
1083
1323
|
}, z.core.$strip>;
|
|
1084
1324
|
}, z.core.$strip>, z.ZodObject<{
|
|
1085
1325
|
[x: string]: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
@@ -293,10 +293,10 @@ export declare const SiteEditPageCompositionSourceMemberKindSchema: z.ZodEnum<{
|
|
|
293
293
|
export type SiteEditPageCompositionSourceMemberKind = z.infer<typeof SiteEditPageCompositionSourceMemberKindSchema>;
|
|
294
294
|
export declare const SiteEditPageCompositionAtomicKindSchema: z.ZodEnum<{
|
|
295
295
|
text: "text";
|
|
296
|
+
none: "none";
|
|
296
297
|
"starter-placeholder": "starter-placeholder";
|
|
297
298
|
"dynamic-expression": "dynamic-expression";
|
|
298
299
|
"indirect-expression": "indirect-expression";
|
|
299
|
-
none: "none";
|
|
300
300
|
}>;
|
|
301
301
|
export type SiteEditPageCompositionAtomicKind = z.infer<typeof SiteEditPageCompositionAtomicKindSchema>;
|
|
302
302
|
export declare const SiteEditPageCompositionV2ContainerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -359,10 +359,10 @@ export declare const SiteEditPageCompositionV2SourceMemberSchema: z.ZodObject<{
|
|
|
359
359
|
}, z.core.$strict>>;
|
|
360
360
|
atomicKind: z.ZodEnum<{
|
|
361
361
|
text: "text";
|
|
362
|
+
none: "none";
|
|
362
363
|
"starter-placeholder": "starter-placeholder";
|
|
363
364
|
"dynamic-expression": "dynamic-expression";
|
|
364
365
|
"indirect-expression": "indirect-expression";
|
|
365
|
-
none: "none";
|
|
366
366
|
}>;
|
|
367
367
|
}, z.core.$strict>;
|
|
368
368
|
export type SiteEditPageCompositionV2SourceMember = z.infer<typeof SiteEditPageCompositionV2SourceMemberSchema>;
|
|
@@ -505,10 +505,10 @@ export declare const SiteEditPageCompositionV2SupportedSchema: z.ZodObject<{
|
|
|
505
505
|
}, z.core.$strict>>;
|
|
506
506
|
atomicKind: z.ZodEnum<{
|
|
507
507
|
text: "text";
|
|
508
|
+
none: "none";
|
|
508
509
|
"starter-placeholder": "starter-placeholder";
|
|
509
510
|
"dynamic-expression": "dynamic-expression";
|
|
510
511
|
"indirect-expression": "indirect-expression";
|
|
511
|
-
none: "none";
|
|
512
512
|
}>;
|
|
513
513
|
}, z.core.$strict>>;
|
|
514
514
|
businessMembers: z.ZodArray<z.ZodObject<{
|
|
@@ -655,10 +655,10 @@ export declare const SiteEditPageCompositionV2Schema: z.ZodDiscriminatedUnion<[z
|
|
|
655
655
|
}, z.core.$strict>>;
|
|
656
656
|
atomicKind: z.ZodEnum<{
|
|
657
657
|
text: "text";
|
|
658
|
+
none: "none";
|
|
658
659
|
"starter-placeholder": "starter-placeholder";
|
|
659
660
|
"dynamic-expression": "dynamic-expression";
|
|
660
661
|
"indirect-expression": "indirect-expression";
|
|
661
|
-
none: "none";
|
|
662
662
|
}>;
|
|
663
663
|
}, z.core.$strict>>;
|
|
664
664
|
businessMembers: z.ZodArray<z.ZodObject<{
|
|
@@ -807,10 +807,10 @@ export declare const SiteEditPageCompositionAnyVersionSchema: z.ZodUnion<readonl
|
|
|
807
807
|
}, z.core.$strict>>;
|
|
808
808
|
atomicKind: z.ZodEnum<{
|
|
809
809
|
text: "text";
|
|
810
|
+
none: "none";
|
|
810
811
|
"starter-placeholder": "starter-placeholder";
|
|
811
812
|
"dynamic-expression": "dynamic-expression";
|
|
812
813
|
"indirect-expression": "indirect-expression";
|
|
813
|
-
none: "none";
|
|
814
814
|
}>;
|
|
815
815
|
}, z.core.$strict>>;
|
|
816
816
|
businessMembers: z.ZodArray<z.ZodObject<{
|
|
@@ -328,8 +328,8 @@ export declare const SiteEditEffectiveWriteTargetSchema: z.ZodObject<{
|
|
|
328
328
|
export type SiteEditEffectiveWriteTarget = z.infer<typeof SiteEditEffectiveWriteTargetSchema>;
|
|
329
329
|
export declare const SiteEditSemanticSourceSchema: z.ZodObject<{
|
|
330
330
|
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
331
|
-
"component-prop": "component-prop";
|
|
332
331
|
binding: "binding";
|
|
332
|
+
"component-prop": "component-prop";
|
|
333
333
|
"imported-binding": "imported-binding";
|
|
334
334
|
"repeat-template": "repeat-template";
|
|
335
335
|
"jsx-literal": "jsx-literal";
|
|
@@ -358,8 +358,8 @@ export declare const SiteEditSemanticSourceSchema: z.ZodObject<{
|
|
|
358
358
|
export type SiteEditSemanticSource = z.infer<typeof SiteEditSemanticSourceSchema>;
|
|
359
359
|
export declare const SiteEditProvenanceHopSchema: z.ZodObject<{
|
|
360
360
|
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
361
|
-
"component-prop": "component-prop";
|
|
362
361
|
binding: "binding";
|
|
362
|
+
"component-prop": "component-prop";
|
|
363
363
|
"imported-binding": "imported-binding";
|
|
364
364
|
"repeat-template": "repeat-template";
|
|
365
365
|
"jsx-literal": "jsx-literal";
|
|
@@ -380,8 +380,8 @@ export type SiteEditProvenanceHop = z.infer<typeof SiteEditProvenanceHopSchema>;
|
|
|
380
380
|
export declare const SiteEditProvenanceChainSchema: z.ZodObject<{
|
|
381
381
|
finalSource: z.ZodNullable<z.ZodObject<{
|
|
382
382
|
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
383
|
-
"component-prop": "component-prop";
|
|
384
383
|
binding: "binding";
|
|
384
|
+
"component-prop": "component-prop";
|
|
385
385
|
"imported-binding": "imported-binding";
|
|
386
386
|
"repeat-template": "repeat-template";
|
|
387
387
|
"jsx-literal": "jsx-literal";
|
|
@@ -409,8 +409,8 @@ export declare const SiteEditProvenanceChainSchema: z.ZodObject<{
|
|
|
409
409
|
}, z.core.$strip>>;
|
|
410
410
|
chain: z.ZodArray<z.ZodObject<{
|
|
411
411
|
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
412
|
-
"component-prop": "component-prop";
|
|
413
412
|
binding: "binding";
|
|
413
|
+
"component-prop": "component-prop";
|
|
414
414
|
"imported-binding": "imported-binding";
|
|
415
415
|
"repeat-template": "repeat-template";
|
|
416
416
|
"jsx-literal": "jsx-literal";
|
|
@@ -450,9 +450,10 @@ export declare const SiteEditStyleModelSchema: z.ZodUnion<readonly [z.ZodRecord<
|
|
|
450
450
|
kind: z.ZodLiteral<"css-style-model">;
|
|
451
451
|
properties: z.ZodArray<z.ZodObject<{
|
|
452
452
|
property: z.ZodEnum<{
|
|
453
|
-
color: "color";
|
|
454
453
|
transform: "transform";
|
|
454
|
+
color: "color";
|
|
455
455
|
cursor: "cursor";
|
|
456
|
+
columns: "columns";
|
|
456
457
|
width: "width";
|
|
457
458
|
height: "height";
|
|
458
459
|
order: "order";
|
|
@@ -470,7 +471,6 @@ export declare const SiteEditStyleModelSchema: z.ZodUnion<readonly [z.ZodRecord<
|
|
|
470
471
|
flexBasis: "flexBasis";
|
|
471
472
|
gridTemplateColumns: "gridTemplateColumns";
|
|
472
473
|
gridTemplateRows: "gridTemplateRows";
|
|
473
|
-
columns: "columns";
|
|
474
474
|
gridColumn: "gridColumn";
|
|
475
475
|
gridRow: "gridRow";
|
|
476
476
|
gap: "gap";
|
|
@@ -579,6 +579,7 @@ export declare const SiteEditStyleModelSchema: z.ZodUnion<readonly [z.ZodRecord<
|
|
|
579
579
|
"set-props": "set-props";
|
|
580
580
|
"apply-style-draft": "apply-style-draft";
|
|
581
581
|
"source-edit": "source-edit";
|
|
582
|
+
"insert-page-resource": "insert-page-resource";
|
|
582
583
|
}>>>;
|
|
583
584
|
}, z.core.$strip>>;
|
|
584
585
|
}, z.core.$strip>]>;
|
|
@@ -603,6 +604,7 @@ export declare const SiteEditStyleSourceSchema: z.ZodObject<{
|
|
|
603
604
|
"set-props": "set-props";
|
|
604
605
|
"apply-style-draft": "apply-style-draft";
|
|
605
606
|
"source-edit": "source-edit";
|
|
607
|
+
"insert-page-resource": "insert-page-resource";
|
|
606
608
|
}>>;
|
|
607
609
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
608
610
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -747,8 +749,8 @@ export declare const SiteEditObjectDetailSchema: z.ZodObject<{
|
|
|
747
749
|
provenanceChain: z.ZodOptional<z.ZodObject<{
|
|
748
750
|
finalSource: z.ZodNullable<z.ZodObject<{
|
|
749
751
|
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
750
|
-
"component-prop": "component-prop";
|
|
751
752
|
binding: "binding";
|
|
753
|
+
"component-prop": "component-prop";
|
|
752
754
|
"imported-binding": "imported-binding";
|
|
753
755
|
"repeat-template": "repeat-template";
|
|
754
756
|
"jsx-literal": "jsx-literal";
|
|
@@ -776,8 +778,8 @@ export declare const SiteEditObjectDetailSchema: z.ZodObject<{
|
|
|
776
778
|
}, z.core.$strip>>;
|
|
777
779
|
chain: z.ZodArray<z.ZodObject<{
|
|
778
780
|
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
779
|
-
"component-prop": "component-prop";
|
|
780
781
|
binding: "binding";
|
|
782
|
+
"component-prop": "component-prop";
|
|
781
783
|
"imported-binding": "imported-binding";
|
|
782
784
|
"repeat-template": "repeat-template";
|
|
783
785
|
"jsx-literal": "jsx-literal";
|
|
@@ -835,6 +837,7 @@ export declare const SiteEditObjectDetailSchema: z.ZodObject<{
|
|
|
835
837
|
"set-props": "set-props";
|
|
836
838
|
"apply-style-draft": "apply-style-draft";
|
|
837
839
|
"source-edit": "source-edit";
|
|
840
|
+
"insert-page-resource": "insert-page-resource";
|
|
838
841
|
}>>;
|
|
839
842
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
840
843
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1183,6 +1186,7 @@ export declare const SiteEditObjectStyleDetailSchema: z.ZodObject<{
|
|
|
1183
1186
|
"set-props": "set-props";
|
|
1184
1187
|
"apply-style-draft": "apply-style-draft";
|
|
1185
1188
|
"source-edit": "source-edit";
|
|
1189
|
+
"insert-page-resource": "insert-page-resource";
|
|
1186
1190
|
}>>;
|
|
1187
1191
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1188
1192
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -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.6.
|
|
8
|
+
export declare const CURRENT_EDIT_ENGINE_VERSION = "0.6.6";
|
|
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";
|