@vcp-dev/contracts 0.6.0 → 0.6.2
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.
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated Designer-session assertions are no longer used at runtime.
|
|
4
|
+
* Retained temporarily so older clients can be decoded during rollout.
|
|
5
|
+
*/
|
|
2
6
|
export declare const SiteEditMutationContextSchema: z.ZodObject<{
|
|
3
7
|
editingSessionId: z.ZodString;
|
|
4
8
|
lockId: z.ZodString;
|
|
@@ -6,7 +10,9 @@ export declare const SiteEditMutationContextSchema: z.ZodObject<{
|
|
|
6
10
|
leaseAssertion: z.ZodString;
|
|
7
11
|
}, z.core.$strict>;
|
|
8
12
|
export type SiteEditMutationContext = z.infer<typeof SiteEditMutationContextSchema>;
|
|
13
|
+
/** @deprecated Designer-session assertions are no longer supported. */
|
|
9
14
|
export declare const SITE_EDIT_SIGNED_MUTATION_CAPABILITY: "signed-designer-mutations-v1";
|
|
15
|
+
/** @deprecated Designer-session assertions are no longer supported. */
|
|
10
16
|
export declare const SiteEditRequiredMutationContextEnvelopeSchema: z.ZodObject<{
|
|
11
17
|
mutationContext: z.ZodObject<{
|
|
12
18
|
editingSessionId: z.ZodString;
|
|
@@ -530,12 +530,12 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
|
|
|
530
530
|
instanceIndex: z.ZodOptional<z.ZodNumber>;
|
|
531
531
|
instanceCount: z.ZodOptional<z.ZodNumber>;
|
|
532
532
|
}, z.core.$strip>>;
|
|
533
|
-
mutationContext: z.ZodObject<{
|
|
533
|
+
mutationContext: z.ZodOptional<z.ZodObject<{
|
|
534
534
|
editingSessionId: z.ZodString;
|
|
535
535
|
lockId: z.ZodString;
|
|
536
536
|
ownerId: z.ZodString;
|
|
537
537
|
leaseAssertion: z.ZodString;
|
|
538
|
-
}, z.core.$strict
|
|
538
|
+
}, z.core.$strict>>;
|
|
539
539
|
params: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
540
540
|
kind: z.ZodLiteral<"update-text">;
|
|
541
541
|
segmentIndex: z.ZodNumber;
|
|
@@ -747,8 +747,7 @@ export type SiteEditOperationRequest = z.infer<typeof SiteEditOperationRequestSc
|
|
|
747
747
|
/** @deprecated Use SiteEditOperationRequest. */
|
|
748
748
|
export type SiteEditAuthenticatedOperationRequest = SiteEditOperationRequest;
|
|
749
749
|
/**
|
|
750
|
-
*
|
|
751
|
-
* assertion for every write, including generic node and source operations.
|
|
750
|
+
* @deprecated Signed mutation assertions are no longer required.
|
|
752
751
|
*/
|
|
753
752
|
export declare const SiteEditSignedOperationRequestSchema: z.ZodObject<{
|
|
754
753
|
id: z.ZodString;
|
|
@@ -789,12 +788,12 @@ export declare const SiteEditSignedOperationRequestSchema: z.ZodObject<{
|
|
|
789
788
|
instanceIndex: z.ZodOptional<z.ZodNumber>;
|
|
790
789
|
instanceCount: z.ZodOptional<z.ZodNumber>;
|
|
791
790
|
}, z.core.$strip>>;
|
|
792
|
-
mutationContext: z.ZodObject<{
|
|
791
|
+
mutationContext: z.ZodOptional<z.ZodObject<{
|
|
793
792
|
editingSessionId: z.ZodString;
|
|
794
793
|
lockId: z.ZodString;
|
|
795
794
|
ownerId: z.ZodString;
|
|
796
795
|
leaseAssertion: z.ZodString;
|
|
797
|
-
}, z.core.$strict
|
|
796
|
+
}, z.core.$strict>>;
|
|
798
797
|
params: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
799
798
|
kind: z.ZodLiteral<"update-text">;
|
|
800
799
|
segmentIndex: z.ZodNumber;
|
|
@@ -6,6 +6,143 @@ export declare const SiteEditOperationSummarySchema: z.ZodObject<{
|
|
|
6
6
|
canRemove: z.ZodBoolean;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
export type SiteEditOperationSummary = z.infer<typeof SiteEditOperationSummarySchema>;
|
|
9
|
+
export declare const SiteEditDynamicSourceKindSchema: z.ZodEnum<{
|
|
10
|
+
"vcp-cms-collection": "vcp-cms-collection";
|
|
11
|
+
"vcp-cms-form": "vcp-cms-form";
|
|
12
|
+
"vcp-cms-settings": "vcp-cms-settings";
|
|
13
|
+
"vcp-cms-navigation": "vcp-cms-navigation";
|
|
14
|
+
"site-api-route": "site-api-route";
|
|
15
|
+
"external-api": "external-api";
|
|
16
|
+
"unknown-api": "unknown-api";
|
|
17
|
+
}>;
|
|
18
|
+
export type SiteEditDynamicSourceKind = z.infer<typeof SiteEditDynamicSourceKindSchema>;
|
|
19
|
+
export declare const SiteEditDynamicSourceTypeSchema: z.ZodEnum<{
|
|
20
|
+
"cms-field": "cms-field";
|
|
21
|
+
"api-field": "api-field";
|
|
22
|
+
}>;
|
|
23
|
+
export type SiteEditDynamicSourceType = z.infer<typeof SiteEditDynamicSourceTypeSchema>;
|
|
24
|
+
export declare const SiteEditDynamicTargetKindSchema: z.ZodEnum<{
|
|
25
|
+
text: "text";
|
|
26
|
+
richtext: "richtext";
|
|
27
|
+
"repeat-region": "repeat-region";
|
|
28
|
+
attribute: "attribute";
|
|
29
|
+
"component-prop": "component-prop";
|
|
30
|
+
}>;
|
|
31
|
+
export type SiteEditDynamicTargetKind = z.infer<typeof SiteEditDynamicTargetKindSchema>;
|
|
32
|
+
export declare const SiteEditDynamicConfidenceSchema: z.ZodEnum<{
|
|
33
|
+
unknown: "unknown";
|
|
34
|
+
exact: "exact";
|
|
35
|
+
"safe-derived": "safe-derived";
|
|
36
|
+
partial: "partial";
|
|
37
|
+
}>;
|
|
38
|
+
export type SiteEditDynamicConfidence = z.infer<typeof SiteEditDynamicConfidenceSchema>;
|
|
39
|
+
export declare const SiteEditDynamicEvidenceSchema: z.ZodObject<{
|
|
40
|
+
file: z.ZodString;
|
|
41
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
42
|
+
reason: z.ZodString;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
export type SiteEditDynamicEvidence = z.infer<typeof SiteEditDynamicEvidenceSchema>;
|
|
45
|
+
export declare const SiteEditDynamicDataBindingSchema: z.ZodObject<{
|
|
46
|
+
sourceKind: z.ZodEnum<{
|
|
47
|
+
"vcp-cms-collection": "vcp-cms-collection";
|
|
48
|
+
"vcp-cms-form": "vcp-cms-form";
|
|
49
|
+
"vcp-cms-settings": "vcp-cms-settings";
|
|
50
|
+
"vcp-cms-navigation": "vcp-cms-navigation";
|
|
51
|
+
"site-api-route": "site-api-route";
|
|
52
|
+
"external-api": "external-api";
|
|
53
|
+
"unknown-api": "unknown-api";
|
|
54
|
+
}>;
|
|
55
|
+
sourceType: z.ZodEnum<{
|
|
56
|
+
"cms-field": "cms-field";
|
|
57
|
+
"api-field": "api-field";
|
|
58
|
+
}>;
|
|
59
|
+
endpointPattern: z.ZodOptional<z.ZodString>;
|
|
60
|
+
operation: z.ZodOptional<z.ZodString>;
|
|
61
|
+
collection: z.ZodOptional<z.ZodString>;
|
|
62
|
+
fieldPath: z.ZodOptional<z.ZodString>;
|
|
63
|
+
valuePath: z.ZodOptional<z.ZodString>;
|
|
64
|
+
targetKind: z.ZodEnum<{
|
|
65
|
+
text: "text";
|
|
66
|
+
richtext: "richtext";
|
|
67
|
+
"repeat-region": "repeat-region";
|
|
68
|
+
attribute: "attribute";
|
|
69
|
+
"component-prop": "component-prop";
|
|
70
|
+
}>;
|
|
71
|
+
targetName: z.ZodString;
|
|
72
|
+
confidence: z.ZodEnum<{
|
|
73
|
+
unknown: "unknown";
|
|
74
|
+
exact: "exact";
|
|
75
|
+
"safe-derived": "safe-derived";
|
|
76
|
+
partial: "partial";
|
|
77
|
+
}>;
|
|
78
|
+
readonly: z.ZodLiteral<true>;
|
|
79
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
80
|
+
file: z.ZodString;
|
|
81
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
82
|
+
reason: z.ZodString;
|
|
83
|
+
}, z.core.$strip>>;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
export type SiteEditDynamicDataBinding = z.infer<typeof SiteEditDynamicDataBindingSchema>;
|
|
86
|
+
export declare const SiteEditDynamicDataDetailSchema: z.ZodObject<{
|
|
87
|
+
hasDynamicData: z.ZodBoolean;
|
|
88
|
+
bindings: z.ZodArray<z.ZodObject<{
|
|
89
|
+
sourceKind: z.ZodEnum<{
|
|
90
|
+
"vcp-cms-collection": "vcp-cms-collection";
|
|
91
|
+
"vcp-cms-form": "vcp-cms-form";
|
|
92
|
+
"vcp-cms-settings": "vcp-cms-settings";
|
|
93
|
+
"vcp-cms-navigation": "vcp-cms-navigation";
|
|
94
|
+
"site-api-route": "site-api-route";
|
|
95
|
+
"external-api": "external-api";
|
|
96
|
+
"unknown-api": "unknown-api";
|
|
97
|
+
}>;
|
|
98
|
+
sourceType: z.ZodEnum<{
|
|
99
|
+
"cms-field": "cms-field";
|
|
100
|
+
"api-field": "api-field";
|
|
101
|
+
}>;
|
|
102
|
+
endpointPattern: z.ZodOptional<z.ZodString>;
|
|
103
|
+
operation: z.ZodOptional<z.ZodString>;
|
|
104
|
+
collection: z.ZodOptional<z.ZodString>;
|
|
105
|
+
fieldPath: z.ZodOptional<z.ZodString>;
|
|
106
|
+
valuePath: z.ZodOptional<z.ZodString>;
|
|
107
|
+
targetKind: z.ZodEnum<{
|
|
108
|
+
text: "text";
|
|
109
|
+
richtext: "richtext";
|
|
110
|
+
"repeat-region": "repeat-region";
|
|
111
|
+
attribute: "attribute";
|
|
112
|
+
"component-prop": "component-prop";
|
|
113
|
+
}>;
|
|
114
|
+
targetName: z.ZodString;
|
|
115
|
+
confidence: z.ZodEnum<{
|
|
116
|
+
unknown: "unknown";
|
|
117
|
+
exact: "exact";
|
|
118
|
+
"safe-derived": "safe-derived";
|
|
119
|
+
partial: "partial";
|
|
120
|
+
}>;
|
|
121
|
+
readonly: z.ZodLiteral<true>;
|
|
122
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
123
|
+
file: z.ZodString;
|
|
124
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
125
|
+
reason: z.ZodString;
|
|
126
|
+
}, z.core.$strip>>;
|
|
127
|
+
}, z.core.$strip>>;
|
|
128
|
+
}, z.core.$strip>;
|
|
129
|
+
export type SiteEditDynamicDataDetail = z.infer<typeof SiteEditDynamicDataDetailSchema>;
|
|
130
|
+
export declare const SiteEditDynamicDataSummarySchema: z.ZodObject<{
|
|
131
|
+
hasDynamicData: z.ZodBoolean;
|
|
132
|
+
sourceKinds: z.ZodArray<z.ZodEnum<{
|
|
133
|
+
"vcp-cms-collection": "vcp-cms-collection";
|
|
134
|
+
"vcp-cms-form": "vcp-cms-form";
|
|
135
|
+
"vcp-cms-settings": "vcp-cms-settings";
|
|
136
|
+
"vcp-cms-navigation": "vcp-cms-navigation";
|
|
137
|
+
"site-api-route": "site-api-route";
|
|
138
|
+
"external-api": "external-api";
|
|
139
|
+
"unknown-api": "unknown-api";
|
|
140
|
+
}>>;
|
|
141
|
+
primaryEndpoint: z.ZodOptional<z.ZodString>;
|
|
142
|
+
primaryCollection: z.ZodOptional<z.ZodString>;
|
|
143
|
+
primaryFieldPath: z.ZodOptional<z.ZodString>;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
export type SiteEditDynamicDataSummary = z.infer<typeof SiteEditDynamicDataSummarySchema>;
|
|
9
146
|
export declare const SiteEditRenderEntrySchema: z.ZodObject<{
|
|
10
147
|
key: z.ZodString;
|
|
11
148
|
pageCompositionUnitKey: z.ZodOptional<z.ZodString>;
|
|
@@ -15,6 +152,21 @@ export declare const SiteEditRenderEntrySchema: z.ZodObject<{
|
|
|
15
152
|
canMove: z.ZodBoolean;
|
|
16
153
|
canRemove: z.ZodBoolean;
|
|
17
154
|
}, z.core.$strip>;
|
|
155
|
+
dynamicDataSummary: z.ZodOptional<z.ZodObject<{
|
|
156
|
+
hasDynamicData: z.ZodBoolean;
|
|
157
|
+
sourceKinds: z.ZodArray<z.ZodEnum<{
|
|
158
|
+
"vcp-cms-collection": "vcp-cms-collection";
|
|
159
|
+
"vcp-cms-form": "vcp-cms-form";
|
|
160
|
+
"vcp-cms-settings": "vcp-cms-settings";
|
|
161
|
+
"vcp-cms-navigation": "vcp-cms-navigation";
|
|
162
|
+
"site-api-route": "site-api-route";
|
|
163
|
+
"external-api": "external-api";
|
|
164
|
+
"unknown-api": "unknown-api";
|
|
165
|
+
}>>;
|
|
166
|
+
primaryEndpoint: z.ZodOptional<z.ZodString>;
|
|
167
|
+
primaryCollection: z.ZodOptional<z.ZodString>;
|
|
168
|
+
primaryFieldPath: z.ZodOptional<z.ZodString>;
|
|
169
|
+
}, z.core.$strip>>;
|
|
18
170
|
}, z.core.$strict>;
|
|
19
171
|
export type SiteEditRenderEntry = z.infer<typeof SiteEditRenderEntrySchema>;
|
|
20
172
|
export declare const SiteEditRenderDocumentSchema: z.ZodObject<{
|
|
@@ -31,6 +183,21 @@ export declare const SiteEditRenderDocumentSchema: z.ZodObject<{
|
|
|
31
183
|
canMove: z.ZodBoolean;
|
|
32
184
|
canRemove: z.ZodBoolean;
|
|
33
185
|
}, z.core.$strip>;
|
|
186
|
+
dynamicDataSummary: z.ZodOptional<z.ZodObject<{
|
|
187
|
+
hasDynamicData: z.ZodBoolean;
|
|
188
|
+
sourceKinds: z.ZodArray<z.ZodEnum<{
|
|
189
|
+
"vcp-cms-collection": "vcp-cms-collection";
|
|
190
|
+
"vcp-cms-form": "vcp-cms-form";
|
|
191
|
+
"vcp-cms-settings": "vcp-cms-settings";
|
|
192
|
+
"vcp-cms-navigation": "vcp-cms-navigation";
|
|
193
|
+
"site-api-route": "site-api-route";
|
|
194
|
+
"external-api": "external-api";
|
|
195
|
+
"unknown-api": "unknown-api";
|
|
196
|
+
}>>;
|
|
197
|
+
primaryEndpoint: z.ZodOptional<z.ZodString>;
|
|
198
|
+
primaryCollection: z.ZodOptional<z.ZodString>;
|
|
199
|
+
primaryFieldPath: z.ZodOptional<z.ZodString>;
|
|
200
|
+
}, z.core.$strip>>;
|
|
34
201
|
}, z.core.$strict>>;
|
|
35
202
|
pageComposition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
36
203
|
status: z.ZodLiteral<"supported">;
|
|
@@ -69,8 +236,8 @@ export declare const SiteEditRenderDocumentSchema: z.ZodObject<{
|
|
|
69
236
|
}, z.core.$strict>;
|
|
70
237
|
export type SiteEditRenderDocument = z.infer<typeof SiteEditRenderDocumentSchema>;
|
|
71
238
|
export declare const SiteEditExternalSourceKindSchema: z.ZodEnum<{
|
|
72
|
-
"api-field": "api-field";
|
|
73
239
|
"cms-field": "cms-field";
|
|
240
|
+
"api-field": "api-field";
|
|
74
241
|
"i18n-message": "i18n-message";
|
|
75
242
|
"config-entry": "config-entry";
|
|
76
243
|
}>;
|
|
@@ -151,8 +318,8 @@ export declare const SiteEditEffectiveWriteTargetSchema: z.ZodObject<{
|
|
|
151
318
|
isProxy: z.ZodBoolean;
|
|
152
319
|
displayPath: z.ZodOptional<z.ZodString>;
|
|
153
320
|
sourceType: z.ZodOptional<z.ZodEnum<{
|
|
154
|
-
"api-field": "api-field";
|
|
155
321
|
"cms-field": "cms-field";
|
|
322
|
+
"api-field": "api-field";
|
|
156
323
|
"i18n-message": "i18n-message";
|
|
157
324
|
"config-entry": "config-entry";
|
|
158
325
|
}>>;
|
|
@@ -161,17 +328,17 @@ export declare const SiteEditEffectiveWriteTargetSchema: z.ZodObject<{
|
|
|
161
328
|
export type SiteEditEffectiveWriteTarget = z.infer<typeof SiteEditEffectiveWriteTargetSchema>;
|
|
162
329
|
export declare const SiteEditSemanticSourceSchema: z.ZodObject<{
|
|
163
330
|
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
331
|
+
"component-prop": "component-prop";
|
|
164
332
|
binding: "binding";
|
|
165
333
|
"imported-binding": "imported-binding";
|
|
166
334
|
"repeat-template": "repeat-template";
|
|
167
335
|
"jsx-literal": "jsx-literal";
|
|
168
|
-
"component-prop": "component-prop";
|
|
169
336
|
"object-field": "object-field";
|
|
170
337
|
"array-item": "array-item";
|
|
171
338
|
"conditional-branch": "conditional-branch";
|
|
172
339
|
}>, z.ZodEnum<{
|
|
173
|
-
"api-field": "api-field";
|
|
174
340
|
"cms-field": "cms-field";
|
|
341
|
+
"api-field": "api-field";
|
|
175
342
|
"i18n-message": "i18n-message";
|
|
176
343
|
"config-entry": "config-entry";
|
|
177
344
|
}>]>;
|
|
@@ -179,8 +346,8 @@ export declare const SiteEditSemanticSourceSchema: z.ZodObject<{
|
|
|
179
346
|
displayPath: z.ZodString;
|
|
180
347
|
externalSource: z.ZodOptional<z.ZodObject<{
|
|
181
348
|
sourceType: z.ZodEnum<{
|
|
182
|
-
"api-field": "api-field";
|
|
183
349
|
"cms-field": "cms-field";
|
|
350
|
+
"api-field": "api-field";
|
|
184
351
|
"i18n-message": "i18n-message";
|
|
185
352
|
"config-entry": "config-entry";
|
|
186
353
|
}>;
|
|
@@ -191,17 +358,17 @@ export declare const SiteEditSemanticSourceSchema: z.ZodObject<{
|
|
|
191
358
|
export type SiteEditSemanticSource = z.infer<typeof SiteEditSemanticSourceSchema>;
|
|
192
359
|
export declare const SiteEditProvenanceHopSchema: z.ZodObject<{
|
|
193
360
|
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
361
|
+
"component-prop": "component-prop";
|
|
194
362
|
binding: "binding";
|
|
195
363
|
"imported-binding": "imported-binding";
|
|
196
364
|
"repeat-template": "repeat-template";
|
|
197
365
|
"jsx-literal": "jsx-literal";
|
|
198
|
-
"component-prop": "component-prop";
|
|
199
366
|
"object-field": "object-field";
|
|
200
367
|
"array-item": "array-item";
|
|
201
368
|
"conditional-branch": "conditional-branch";
|
|
202
369
|
}>, z.ZodEnum<{
|
|
203
|
-
"api-field": "api-field";
|
|
204
370
|
"cms-field": "cms-field";
|
|
371
|
+
"api-field": "api-field";
|
|
205
372
|
"i18n-message": "i18n-message";
|
|
206
373
|
"config-entry": "config-entry";
|
|
207
374
|
}>]>;
|
|
@@ -213,17 +380,17 @@ export type SiteEditProvenanceHop = z.infer<typeof SiteEditProvenanceHopSchema>;
|
|
|
213
380
|
export declare const SiteEditProvenanceChainSchema: z.ZodObject<{
|
|
214
381
|
finalSource: z.ZodNullable<z.ZodObject<{
|
|
215
382
|
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
383
|
+
"component-prop": "component-prop";
|
|
216
384
|
binding: "binding";
|
|
217
385
|
"imported-binding": "imported-binding";
|
|
218
386
|
"repeat-template": "repeat-template";
|
|
219
387
|
"jsx-literal": "jsx-literal";
|
|
220
|
-
"component-prop": "component-prop";
|
|
221
388
|
"object-field": "object-field";
|
|
222
389
|
"array-item": "array-item";
|
|
223
390
|
"conditional-branch": "conditional-branch";
|
|
224
391
|
}>, z.ZodEnum<{
|
|
225
|
-
"api-field": "api-field";
|
|
226
392
|
"cms-field": "cms-field";
|
|
393
|
+
"api-field": "api-field";
|
|
227
394
|
"i18n-message": "i18n-message";
|
|
228
395
|
"config-entry": "config-entry";
|
|
229
396
|
}>]>;
|
|
@@ -231,8 +398,8 @@ export declare const SiteEditProvenanceChainSchema: z.ZodObject<{
|
|
|
231
398
|
displayPath: z.ZodString;
|
|
232
399
|
externalSource: z.ZodOptional<z.ZodObject<{
|
|
233
400
|
sourceType: z.ZodEnum<{
|
|
234
|
-
"api-field": "api-field";
|
|
235
401
|
"cms-field": "cms-field";
|
|
402
|
+
"api-field": "api-field";
|
|
236
403
|
"i18n-message": "i18n-message";
|
|
237
404
|
"config-entry": "config-entry";
|
|
238
405
|
}>;
|
|
@@ -242,17 +409,17 @@ export declare const SiteEditProvenanceChainSchema: z.ZodObject<{
|
|
|
242
409
|
}, z.core.$strip>>;
|
|
243
410
|
chain: z.ZodArray<z.ZodObject<{
|
|
244
411
|
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
412
|
+
"component-prop": "component-prop";
|
|
245
413
|
binding: "binding";
|
|
246
414
|
"imported-binding": "imported-binding";
|
|
247
415
|
"repeat-template": "repeat-template";
|
|
248
416
|
"jsx-literal": "jsx-literal";
|
|
249
|
-
"component-prop": "component-prop";
|
|
250
417
|
"object-field": "object-field";
|
|
251
418
|
"array-item": "array-item";
|
|
252
419
|
"conditional-branch": "conditional-branch";
|
|
253
420
|
}>, z.ZodEnum<{
|
|
254
|
-
"api-field": "api-field";
|
|
255
421
|
"cms-field": "cms-field";
|
|
422
|
+
"api-field": "api-field";
|
|
256
423
|
"i18n-message": "i18n-message";
|
|
257
424
|
"config-entry": "config-entry";
|
|
258
425
|
}>]>;
|
|
@@ -570,8 +737,8 @@ export declare const SiteEditObjectDetailSchema: z.ZodObject<{
|
|
|
570
737
|
isProxy: z.ZodBoolean;
|
|
571
738
|
displayPath: z.ZodOptional<z.ZodString>;
|
|
572
739
|
sourceType: z.ZodOptional<z.ZodEnum<{
|
|
573
|
-
"api-field": "api-field";
|
|
574
740
|
"cms-field": "cms-field";
|
|
741
|
+
"api-field": "api-field";
|
|
575
742
|
"i18n-message": "i18n-message";
|
|
576
743
|
"config-entry": "config-entry";
|
|
577
744
|
}>>;
|
|
@@ -580,17 +747,17 @@ export declare const SiteEditObjectDetailSchema: z.ZodObject<{
|
|
|
580
747
|
provenanceChain: z.ZodOptional<z.ZodObject<{
|
|
581
748
|
finalSource: z.ZodNullable<z.ZodObject<{
|
|
582
749
|
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
750
|
+
"component-prop": "component-prop";
|
|
583
751
|
binding: "binding";
|
|
584
752
|
"imported-binding": "imported-binding";
|
|
585
753
|
"repeat-template": "repeat-template";
|
|
586
754
|
"jsx-literal": "jsx-literal";
|
|
587
|
-
"component-prop": "component-prop";
|
|
588
755
|
"object-field": "object-field";
|
|
589
756
|
"array-item": "array-item";
|
|
590
757
|
"conditional-branch": "conditional-branch";
|
|
591
758
|
}>, z.ZodEnum<{
|
|
592
|
-
"api-field": "api-field";
|
|
593
759
|
"cms-field": "cms-field";
|
|
760
|
+
"api-field": "api-field";
|
|
594
761
|
"i18n-message": "i18n-message";
|
|
595
762
|
"config-entry": "config-entry";
|
|
596
763
|
}>]>;
|
|
@@ -598,8 +765,8 @@ export declare const SiteEditObjectDetailSchema: z.ZodObject<{
|
|
|
598
765
|
displayPath: z.ZodString;
|
|
599
766
|
externalSource: z.ZodOptional<z.ZodObject<{
|
|
600
767
|
sourceType: z.ZodEnum<{
|
|
601
|
-
"api-field": "api-field";
|
|
602
768
|
"cms-field": "cms-field";
|
|
769
|
+
"api-field": "api-field";
|
|
603
770
|
"i18n-message": "i18n-message";
|
|
604
771
|
"config-entry": "config-entry";
|
|
605
772
|
}>;
|
|
@@ -609,17 +776,17 @@ export declare const SiteEditObjectDetailSchema: z.ZodObject<{
|
|
|
609
776
|
}, z.core.$strip>>;
|
|
610
777
|
chain: z.ZodArray<z.ZodObject<{
|
|
611
778
|
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
779
|
+
"component-prop": "component-prop";
|
|
612
780
|
binding: "binding";
|
|
613
781
|
"imported-binding": "imported-binding";
|
|
614
782
|
"repeat-template": "repeat-template";
|
|
615
783
|
"jsx-literal": "jsx-literal";
|
|
616
|
-
"component-prop": "component-prop";
|
|
617
784
|
"object-field": "object-field";
|
|
618
785
|
"array-item": "array-item";
|
|
619
786
|
"conditional-branch": "conditional-branch";
|
|
620
787
|
}>, z.ZodEnum<{
|
|
621
|
-
"api-field": "api-field";
|
|
622
788
|
"cms-field": "cms-field";
|
|
789
|
+
"api-field": "api-field";
|
|
623
790
|
"i18n-message": "i18n-message";
|
|
624
791
|
"config-entry": "config-entry";
|
|
625
792
|
}>]>;
|
|
@@ -680,6 +847,49 @@ export declare const SiteEditObjectDetailSchema: z.ZodObject<{
|
|
|
680
847
|
}, z.core.$strip>>>;
|
|
681
848
|
}, z.core.$strip>>;
|
|
682
849
|
conditional: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
850
|
+
dynamicData: z.ZodOptional<z.ZodObject<{
|
|
851
|
+
hasDynamicData: z.ZodBoolean;
|
|
852
|
+
bindings: z.ZodArray<z.ZodObject<{
|
|
853
|
+
sourceKind: z.ZodEnum<{
|
|
854
|
+
"vcp-cms-collection": "vcp-cms-collection";
|
|
855
|
+
"vcp-cms-form": "vcp-cms-form";
|
|
856
|
+
"vcp-cms-settings": "vcp-cms-settings";
|
|
857
|
+
"vcp-cms-navigation": "vcp-cms-navigation";
|
|
858
|
+
"site-api-route": "site-api-route";
|
|
859
|
+
"external-api": "external-api";
|
|
860
|
+
"unknown-api": "unknown-api";
|
|
861
|
+
}>;
|
|
862
|
+
sourceType: z.ZodEnum<{
|
|
863
|
+
"cms-field": "cms-field";
|
|
864
|
+
"api-field": "api-field";
|
|
865
|
+
}>;
|
|
866
|
+
endpointPattern: z.ZodOptional<z.ZodString>;
|
|
867
|
+
operation: z.ZodOptional<z.ZodString>;
|
|
868
|
+
collection: z.ZodOptional<z.ZodString>;
|
|
869
|
+
fieldPath: z.ZodOptional<z.ZodString>;
|
|
870
|
+
valuePath: z.ZodOptional<z.ZodString>;
|
|
871
|
+
targetKind: z.ZodEnum<{
|
|
872
|
+
text: "text";
|
|
873
|
+
richtext: "richtext";
|
|
874
|
+
"repeat-region": "repeat-region";
|
|
875
|
+
attribute: "attribute";
|
|
876
|
+
"component-prop": "component-prop";
|
|
877
|
+
}>;
|
|
878
|
+
targetName: z.ZodString;
|
|
879
|
+
confidence: z.ZodEnum<{
|
|
880
|
+
unknown: "unknown";
|
|
881
|
+
exact: "exact";
|
|
882
|
+
"safe-derived": "safe-derived";
|
|
883
|
+
partial: "partial";
|
|
884
|
+
}>;
|
|
885
|
+
readonly: z.ZodLiteral<true>;
|
|
886
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
887
|
+
file: z.ZodString;
|
|
888
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
889
|
+
reason: z.ZodString;
|
|
890
|
+
}, z.core.$strip>>;
|
|
891
|
+
}, z.core.$strip>>;
|
|
892
|
+
}, z.core.$strip>>;
|
|
683
893
|
textSegments: z.ZodArray<z.ZodObject<{
|
|
684
894
|
index: z.ZodNumber;
|
|
685
895
|
value: z.ZodString;
|
|
@@ -767,6 +977,21 @@ export declare const SiteEditObjectSummarySchema: z.ZodObject<{
|
|
|
767
977
|
message: z.ZodString;
|
|
768
978
|
}, z.core.$strip>>;
|
|
769
979
|
}, z.core.$strip>>;
|
|
980
|
+
dynamicDataSummary: z.ZodOptional<z.ZodObject<{
|
|
981
|
+
hasDynamicData: z.ZodBoolean;
|
|
982
|
+
sourceKinds: z.ZodArray<z.ZodEnum<{
|
|
983
|
+
"vcp-cms-collection": "vcp-cms-collection";
|
|
984
|
+
"vcp-cms-form": "vcp-cms-form";
|
|
985
|
+
"vcp-cms-settings": "vcp-cms-settings";
|
|
986
|
+
"vcp-cms-navigation": "vcp-cms-navigation";
|
|
987
|
+
"site-api-route": "site-api-route";
|
|
988
|
+
"external-api": "external-api";
|
|
989
|
+
"unknown-api": "unknown-api";
|
|
990
|
+
}>>;
|
|
991
|
+
primaryEndpoint: z.ZodOptional<z.ZodString>;
|
|
992
|
+
primaryCollection: z.ZodOptional<z.ZodString>;
|
|
993
|
+
primaryFieldPath: z.ZodOptional<z.ZodString>;
|
|
994
|
+
}, z.core.$strip>>;
|
|
770
995
|
ancestors: z.ZodArray<z.ZodObject<{
|
|
771
996
|
key: z.ZodString;
|
|
772
997
|
label: z.ZodString;
|
|
@@ -883,6 +1108,49 @@ export declare const SiteEditObjectEditContextSchema: z.ZodObject<{
|
|
|
883
1108
|
"repeat-template": "repeat-template";
|
|
884
1109
|
}>>;
|
|
885
1110
|
}, z.core.$strip>>;
|
|
1111
|
+
dynamicData: z.ZodOptional<z.ZodObject<{
|
|
1112
|
+
hasDynamicData: z.ZodBoolean;
|
|
1113
|
+
bindings: z.ZodArray<z.ZodObject<{
|
|
1114
|
+
sourceKind: z.ZodEnum<{
|
|
1115
|
+
"vcp-cms-collection": "vcp-cms-collection";
|
|
1116
|
+
"vcp-cms-form": "vcp-cms-form";
|
|
1117
|
+
"vcp-cms-settings": "vcp-cms-settings";
|
|
1118
|
+
"vcp-cms-navigation": "vcp-cms-navigation";
|
|
1119
|
+
"site-api-route": "site-api-route";
|
|
1120
|
+
"external-api": "external-api";
|
|
1121
|
+
"unknown-api": "unknown-api";
|
|
1122
|
+
}>;
|
|
1123
|
+
sourceType: z.ZodEnum<{
|
|
1124
|
+
"cms-field": "cms-field";
|
|
1125
|
+
"api-field": "api-field";
|
|
1126
|
+
}>;
|
|
1127
|
+
endpointPattern: z.ZodOptional<z.ZodString>;
|
|
1128
|
+
operation: z.ZodOptional<z.ZodString>;
|
|
1129
|
+
collection: z.ZodOptional<z.ZodString>;
|
|
1130
|
+
fieldPath: z.ZodOptional<z.ZodString>;
|
|
1131
|
+
valuePath: z.ZodOptional<z.ZodString>;
|
|
1132
|
+
targetKind: z.ZodEnum<{
|
|
1133
|
+
text: "text";
|
|
1134
|
+
richtext: "richtext";
|
|
1135
|
+
"repeat-region": "repeat-region";
|
|
1136
|
+
attribute: "attribute";
|
|
1137
|
+
"component-prop": "component-prop";
|
|
1138
|
+
}>;
|
|
1139
|
+
targetName: z.ZodString;
|
|
1140
|
+
confidence: z.ZodEnum<{
|
|
1141
|
+
unknown: "unknown";
|
|
1142
|
+
exact: "exact";
|
|
1143
|
+
"safe-derived": "safe-derived";
|
|
1144
|
+
partial: "partial";
|
|
1145
|
+
}>;
|
|
1146
|
+
readonly: z.ZodLiteral<true>;
|
|
1147
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
1148
|
+
file: z.ZodString;
|
|
1149
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
1150
|
+
reason: z.ZodString;
|
|
1151
|
+
}, z.core.$strip>>;
|
|
1152
|
+
}, z.core.$strip>>;
|
|
1153
|
+
}, z.core.$strip>>;
|
|
886
1154
|
boundaryKind: z.ZodNullable<z.ZodEnum<{
|
|
887
1155
|
"component-boundary": "component-boundary";
|
|
888
1156
|
"repeat-region": "repeat-region";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* Activates one route before returning its first coherent document/history
|
|
4
|
+
* view. mutationContext is accepted only for compatibility and ignored.
|
|
5
5
|
*/
|
|
6
6
|
export declare const SiteEditInitializeSessionInputSchema: z.ZodObject<{
|
|
7
7
|
routeId: z.ZodString;
|
|
@@ -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.2";
|
|
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";
|