@vcp-dev/contracts 0.9.6 → 0.10.0
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/application-template.d.ts +754 -0
- package/dist/cms-application-provisioning.d.ts +92 -0
- package/dist/cms-collection-binding.d.ts +1 -1
- package/dist/cms-page-directory.d.ts +7 -7
- package/dist/connect-dynamic-collection.d.ts +6 -6
- package/dist/connect-form.d.ts +2 -2
- package/dist/conversion-hints.d.ts +1 -1
- package/dist/custom-domain.d.ts +2 -2
- package/dist/deployment-progress.d.ts +3 -3
- package/dist/designer-page-library.d.ts +14 -14
- package/dist/external-site-edit.d.ts +9 -9
- package/dist/form-design.d.ts +40 -40
- package/dist/google-search-console.d.ts +15 -15
- package/dist/index.d.ts +160 -147
- package/dist/index.js +1 -1
- package/dist/input-context-bundle.d.ts +8 -8
- package/dist/knowledge-source-readiness.d.ts +5 -5
- package/dist/launcher-prompt-templates.d.ts +8 -8
- package/dist/product-search.d.ts +2 -2
- package/dist/site-build.d.ts +2 -2
- package/dist/site-edit-event.d.ts +1 -1
- package/dist/site-edit-operation-value.d.ts +5 -0
- package/dist/site-edit-operation.d.ts +49 -40
- package/dist/site-edit-property-change.d.ts +27 -0
- package/dist/site-edit-property-policy.d.ts +12 -0
- package/dist/site-edit-property-read.d.ts +225 -0
- package/dist/site-edit-render-document.d.ts +221 -59
- package/dist/site-edit-style-draft-property.d.ts +11 -0
- package/dist/site-edit-version.d.ts +1 -1
- package/dist/site-localization-fields.d.ts +6 -6
- package/dist/site-publish-domain.d.ts +42 -42
- package/dist/site-publish-workflow.d.ts +35 -35
- package/dist/site-workflow.d.ts +6 -6
- package/dist/step2-site-initialization.d.ts +6 -6
- package/dist/step3-digital-employee-analysis.d.ts +12 -12
- package/dist/step5-strategy.d.ts +76 -76
- package/dist/step6-design.d.ts +3 -3
- package/dist/step6-gpt-design.d.ts +3 -3
- package/dist/template-upgrade-observability.d.ts +4 -4
- package/dist/workspace-resource-operation.d.ts +33 -25
- package/package.json +1 -1
- package/dist/site-edit-element-property.d.ts +0 -10
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const InputSourceTypeSchema: z.ZodEnum<{
|
|
3
|
-
url: "url";
|
|
4
3
|
text: "text";
|
|
4
|
+
url: "url";
|
|
5
5
|
document: "document";
|
|
6
6
|
image: "image";
|
|
7
7
|
}>;
|
|
8
8
|
export type InputSourceType = z.infer<typeof InputSourceTypeSchema>;
|
|
9
9
|
export declare const InputSourceStatusSchema: z.ZodEnum<{
|
|
10
|
-
ready: "ready";
|
|
11
10
|
failed: "failed";
|
|
11
|
+
ready: "ready";
|
|
12
12
|
pending: "pending";
|
|
13
13
|
}>;
|
|
14
14
|
export type InputSourceStatus = z.infer<typeof InputSourceStatusSchema>;
|
|
15
15
|
export declare const InputBundleStatusSchema: z.ZodEnum<{
|
|
16
|
-
ready: "ready";
|
|
17
16
|
failed: "failed";
|
|
17
|
+
ready: "ready";
|
|
18
18
|
pending: "pending";
|
|
19
19
|
}>;
|
|
20
20
|
export type InputBundleStatus = z.infer<typeof InputBundleStatusSchema>;
|
|
@@ -63,14 +63,14 @@ export type ReferenceSignals = z.infer<typeof ReferenceSignalsSchema>;
|
|
|
63
63
|
export declare const InputSourceSchema: z.ZodObject<{
|
|
64
64
|
source_id: z.ZodUUID;
|
|
65
65
|
type: z.ZodEnum<{
|
|
66
|
-
url: "url";
|
|
67
66
|
text: "text";
|
|
67
|
+
url: "url";
|
|
68
68
|
document: "document";
|
|
69
69
|
image: "image";
|
|
70
70
|
}>;
|
|
71
71
|
status: z.ZodEnum<{
|
|
72
|
-
ready: "ready";
|
|
73
72
|
failed: "failed";
|
|
73
|
+
ready: "ready";
|
|
74
74
|
pending: "pending";
|
|
75
75
|
}>;
|
|
76
76
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -191,21 +191,21 @@ export declare const InputContextBundleSchema: z.ZodObject<{
|
|
|
191
191
|
tenant_id: z.ZodString;
|
|
192
192
|
user_prompt: z.ZodString;
|
|
193
193
|
status: z.ZodEnum<{
|
|
194
|
-
ready: "ready";
|
|
195
194
|
failed: "failed";
|
|
195
|
+
ready: "ready";
|
|
196
196
|
pending: "pending";
|
|
197
197
|
}>;
|
|
198
198
|
sources: z.ZodArray<z.ZodObject<{
|
|
199
199
|
source_id: z.ZodUUID;
|
|
200
200
|
type: z.ZodEnum<{
|
|
201
|
-
url: "url";
|
|
202
201
|
text: "text";
|
|
202
|
+
url: "url";
|
|
203
203
|
document: "document";
|
|
204
204
|
image: "image";
|
|
205
205
|
}>;
|
|
206
206
|
status: z.ZodEnum<{
|
|
207
|
-
ready: "ready";
|
|
208
207
|
failed: "failed";
|
|
208
|
+
ready: "ready";
|
|
209
209
|
pending: "pending";
|
|
210
210
|
}>;
|
|
211
211
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const KnowledgeSourceReadinessStatusSchema: z.ZodEnum<{
|
|
3
|
-
ready: "ready";
|
|
4
3
|
failed: "failed";
|
|
4
|
+
ready: "ready";
|
|
5
5
|
pending: "pending";
|
|
6
6
|
running: "running";
|
|
7
7
|
missing: "missing";
|
|
@@ -9,8 +9,8 @@ export declare const KnowledgeSourceReadinessStatusSchema: z.ZodEnum<{
|
|
|
9
9
|
export declare const KnowledgeTaskStatusSchema: z.ZodObject<{
|
|
10
10
|
task_id: z.ZodString;
|
|
11
11
|
status: z.ZodEnum<{
|
|
12
|
-
ready: "ready";
|
|
13
12
|
failed: "failed";
|
|
13
|
+
ready: "ready";
|
|
14
14
|
pending: "pending";
|
|
15
15
|
running: "running";
|
|
16
16
|
missing: "missing";
|
|
@@ -21,8 +21,8 @@ export declare const KnowledgeTaskStatusBatchSchema: z.ZodObject<{
|
|
|
21
21
|
items: z.ZodArray<z.ZodObject<{
|
|
22
22
|
task_id: z.ZodString;
|
|
23
23
|
status: z.ZodEnum<{
|
|
24
|
-
ready: "ready";
|
|
25
24
|
failed: "failed";
|
|
25
|
+
ready: "ready";
|
|
26
26
|
pending: "pending";
|
|
27
27
|
running: "running";
|
|
28
28
|
missing: "missing";
|
|
@@ -47,8 +47,8 @@ export declare const KnowledgeSourceReadinessSchema: z.ZodObject<{
|
|
|
47
47
|
}>>;
|
|
48
48
|
category_confirmed: z.ZodBoolean;
|
|
49
49
|
status: z.ZodEnum<{
|
|
50
|
-
ready: "ready";
|
|
51
50
|
failed: "failed";
|
|
51
|
+
ready: "ready";
|
|
52
52
|
pending: "pending";
|
|
53
53
|
running: "running";
|
|
54
54
|
missing: "missing";
|
|
@@ -69,8 +69,8 @@ export declare const KnowledgeContextReadinessSchema: z.ZodObject<{
|
|
|
69
69
|
}>>;
|
|
70
70
|
category_confirmed: z.ZodBoolean;
|
|
71
71
|
status: z.ZodEnum<{
|
|
72
|
-
ready: "ready";
|
|
73
72
|
failed: "failed";
|
|
73
|
+
ready: "ready";
|
|
74
74
|
pending: "pending";
|
|
75
75
|
running: "running";
|
|
76
76
|
missing: "missing";
|
|
@@ -4,8 +4,8 @@ export declare const LauncherPromptTemplateKindSchema: z.ZodEnum<{
|
|
|
4
4
|
block: "block";
|
|
5
5
|
}>;
|
|
6
6
|
export declare const LauncherPromptTemplateTypeSchema: z.ZodEnum<{
|
|
7
|
-
pages: "pages";
|
|
8
7
|
page: "page";
|
|
8
|
+
pages: "pages";
|
|
9
9
|
component: "component";
|
|
10
10
|
}>;
|
|
11
11
|
export declare const LauncherPromptTemplateLocaleSchema: z.ZodEnum<{
|
|
@@ -32,8 +32,8 @@ export declare const LauncherPromptTemplateCatalogQuerySchema: z.ZodObject<{
|
|
|
32
32
|
export declare const LauncherPromptTemplateCatalogItemSchema: z.ZodObject<{
|
|
33
33
|
stable_key: z.ZodString;
|
|
34
34
|
type: z.ZodEnum<{
|
|
35
|
-
pages: "pages";
|
|
36
35
|
page: "page";
|
|
36
|
+
pages: "pages";
|
|
37
37
|
component: "component";
|
|
38
38
|
}>;
|
|
39
39
|
title: z.ZodString;
|
|
@@ -82,8 +82,8 @@ export declare const LauncherPromptTemplateCatalogSchema: z.ZodObject<{
|
|
|
82
82
|
items: z.ZodArray<z.ZodObject<{
|
|
83
83
|
stable_key: z.ZodString;
|
|
84
84
|
type: z.ZodEnum<{
|
|
85
|
-
pages: "pages";
|
|
86
85
|
page: "page";
|
|
86
|
+
pages: "pages";
|
|
87
87
|
component: "component";
|
|
88
88
|
}>;
|
|
89
89
|
title: z.ZodString;
|
|
@@ -257,11 +257,11 @@ export declare const LauncherPromptTemplateApplyRequestSchema: z.ZodObject<{
|
|
|
257
257
|
confirmedChoices: z.ZodOptional<z.ZodObject<{
|
|
258
258
|
conversion: z.ZodOptional<z.ZodObject<{
|
|
259
259
|
protocol: z.ZodEnum<{
|
|
260
|
+
route: "route";
|
|
260
261
|
external: "external";
|
|
261
262
|
phone: "phone";
|
|
262
263
|
form: "form";
|
|
263
264
|
download: "download";
|
|
264
|
-
route: "route";
|
|
265
265
|
}>;
|
|
266
266
|
ctaLabel: z.ZodString;
|
|
267
267
|
ctaTarget: z.ZodOptional<z.ZodString>;
|
|
@@ -445,11 +445,11 @@ export declare const LauncherPromptTemplateApplyResponseSchema: z.ZodObject<{
|
|
|
445
445
|
confirmedChoices: z.ZodOptional<z.ZodObject<{
|
|
446
446
|
conversion: z.ZodOptional<z.ZodObject<{
|
|
447
447
|
protocol: z.ZodEnum<{
|
|
448
|
+
route: "route";
|
|
448
449
|
external: "external";
|
|
449
450
|
phone: "phone";
|
|
450
451
|
form: "form";
|
|
451
452
|
download: "download";
|
|
452
|
-
route: "route";
|
|
453
453
|
}>;
|
|
454
454
|
ctaLabel: z.ZodString;
|
|
455
455
|
ctaTarget: z.ZodOptional<z.ZodString>;
|
|
@@ -525,8 +525,8 @@ export declare const LauncherPromptTemplateApplyResponseSchema: z.ZodObject<{
|
|
|
525
525
|
stable_key: z.ZodString;
|
|
526
526
|
resolved_version: z.ZodNumber;
|
|
527
527
|
template_type: z.ZodEnum<{
|
|
528
|
-
pages: "pages";
|
|
529
528
|
page: "page";
|
|
529
|
+
pages: "pages";
|
|
530
530
|
component: "component";
|
|
531
531
|
}>;
|
|
532
532
|
page_ids: z.ZodArray<z.ZodString>;
|
|
@@ -561,8 +561,8 @@ export declare const UpstreamPromptTemplateConsumeDataSchema: z.ZodObject<{
|
|
|
561
561
|
templateId: z.ZodString;
|
|
562
562
|
stableKey: z.ZodString;
|
|
563
563
|
type: z.ZodEnum<{
|
|
564
|
-
pages: "pages";
|
|
565
564
|
page: "page";
|
|
565
|
+
pages: "pages";
|
|
566
566
|
component: "component";
|
|
567
567
|
}>;
|
|
568
568
|
resolvedVersion: z.ZodNumber;
|
|
@@ -669,8 +669,8 @@ export declare const UpstreamPromptTemplateCatalogDataSchema: z.ZodObject<{
|
|
|
669
669
|
items: z.ZodArray<z.ZodObject<{
|
|
670
670
|
stableKey: z.ZodString;
|
|
671
671
|
type: z.ZodEnum<{
|
|
672
|
-
pages: "pages";
|
|
673
672
|
page: "page";
|
|
673
|
+
pages: "pages";
|
|
674
674
|
component: "component";
|
|
675
675
|
}>;
|
|
676
676
|
title: z.ZodString;
|
package/dist/product-search.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ export declare const ProductSearchValueShapeSchema: z.ZodEnum<{
|
|
|
6
6
|
boolean: "boolean";
|
|
7
7
|
text: "text";
|
|
8
8
|
select: "select";
|
|
9
|
-
multi_select: "multi_select";
|
|
10
9
|
tags: "tags";
|
|
10
|
+
multi_select: "multi_select";
|
|
11
11
|
category_list: "category_list";
|
|
12
12
|
}>;
|
|
13
13
|
export declare const ProductSearchRouteIdSchema: z.ZodString;
|
|
@@ -57,8 +57,8 @@ export declare const ProductSearchInteractionRequestSchema: z.ZodObject<{
|
|
|
57
57
|
boolean: "boolean";
|
|
58
58
|
text: "text";
|
|
59
59
|
select: "select";
|
|
60
|
-
multi_select: "multi_select";
|
|
61
60
|
tags: "tags";
|
|
61
|
+
multi_select: "multi_select";
|
|
62
62
|
category_list: "category_list";
|
|
63
63
|
}>;
|
|
64
64
|
option_count: z.ZodOptional<z.ZodNumber>;
|
package/dist/site-build.d.ts
CHANGED
|
@@ -213,8 +213,8 @@ export declare const StartSiteBuildResultSchema: z.ZodObject<{
|
|
|
213
213
|
}>;
|
|
214
214
|
external_task_id: z.ZodString;
|
|
215
215
|
execution_status: z.ZodEnum<{
|
|
216
|
-
failed: "failed";
|
|
217
216
|
succeeded: "succeeded";
|
|
217
|
+
failed: "failed";
|
|
218
218
|
running: "running";
|
|
219
219
|
started: "started";
|
|
220
220
|
invalidated: "invalidated";
|
|
@@ -430,8 +430,8 @@ export declare const StartSiteBuildResponseSchema: z.ZodObject<{
|
|
|
430
430
|
}>;
|
|
431
431
|
external_task_id: z.ZodString;
|
|
432
432
|
execution_status: z.ZodEnum<{
|
|
433
|
-
failed: "failed";
|
|
434
433
|
succeeded: "succeeded";
|
|
434
|
+
failed: "failed";
|
|
435
435
|
running: "running";
|
|
436
436
|
started: "started";
|
|
437
437
|
invalidated: "invalidated";
|
|
@@ -30,13 +30,13 @@ export declare const SiteEditEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
30
30
|
result: z.ZodObject<{
|
|
31
31
|
requestId: z.ZodString;
|
|
32
32
|
kind: z.ZodEnum<{
|
|
33
|
+
"set-props": "set-props";
|
|
33
34
|
"insert-child": "insert-child";
|
|
34
35
|
"update-text": "update-text";
|
|
35
36
|
"update-array-item": "update-array-item";
|
|
36
37
|
"remove-node": "remove-node";
|
|
37
38
|
"move-node": "move-node";
|
|
38
39
|
"set-class-name-source": "set-class-name-source";
|
|
39
|
-
"set-props": "set-props";
|
|
40
40
|
"apply-style-draft": "apply-style-draft";
|
|
41
41
|
"source-edit": "source-edit";
|
|
42
42
|
"insert-page-resource": "insert-page-resource";
|
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { type SiteEditCommandResult } from "./site-edit-command-result.js";
|
|
3
3
|
export declare const SiteEditOperationTypeSchema: z.ZodEnum<{
|
|
4
|
+
"set-props": "set-props";
|
|
4
5
|
"insert-child": "insert-child";
|
|
5
6
|
"update-text": "update-text";
|
|
6
7
|
"update-array-item": "update-array-item";
|
|
7
8
|
"remove-node": "remove-node";
|
|
8
9
|
"move-node": "move-node";
|
|
9
10
|
"set-class-name-source": "set-class-name-source";
|
|
10
|
-
"set-props": "set-props";
|
|
11
11
|
"apply-style-draft": "apply-style-draft";
|
|
12
12
|
"source-edit": "source-edit";
|
|
13
13
|
"insert-page-resource": "insert-page-resource";
|
|
14
14
|
"delete-page-source": "delete-page-source";
|
|
15
15
|
}>;
|
|
16
16
|
export type SiteEditOperationType = z.infer<typeof SiteEditOperationTypeSchema>;
|
|
17
|
-
export type SiteEditOperationValue
|
|
18
|
-
[key: string]: SiteEditOperationValue;
|
|
19
|
-
};
|
|
20
|
-
export declare const SiteEditOperationValueSchema: z.ZodType<SiteEditOperationValue>;
|
|
17
|
+
export { SiteEditOperationValueSchema, type SiteEditOperationValue, } from "./site-edit-operation-value.js";
|
|
21
18
|
export declare const SiteEditOperationTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
22
19
|
kind: z.ZodLiteral<"node">;
|
|
23
20
|
key: z.ZodString;
|
|
@@ -71,8 +68,8 @@ export declare const SiteEditOperationResultTargetSchema: z.ZodDiscriminatedUnio
|
|
|
71
68
|
}, z.core.$strict>], "kind">;
|
|
72
69
|
export type SiteEditOperationResultTarget = z.infer<typeof SiteEditOperationResultTargetSchema>;
|
|
73
70
|
export declare const SiteEditStylePropertySchema: z.ZodEnum<{
|
|
74
|
-
transform: "transform";
|
|
75
71
|
color: "color";
|
|
72
|
+
transform: "transform";
|
|
76
73
|
cursor: "cursor";
|
|
77
74
|
columns: "columns";
|
|
78
75
|
position: "position";
|
|
@@ -395,15 +392,19 @@ export declare const SiteEditOperationParamsSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
395
392
|
}, z.core.$strip>;
|
|
396
393
|
}, z.core.$strip>, z.ZodObject<{
|
|
397
394
|
kind: z.ZodLiteral<"set-props">;
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
}, z.core.$
|
|
395
|
+
scope: z.ZodEnum<{
|
|
396
|
+
template: "template";
|
|
397
|
+
selection: "selection";
|
|
398
|
+
}>;
|
|
399
|
+
changes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
400
|
+
operation: z.ZodLiteral<"set">;
|
|
401
|
+
name: z.ZodString;
|
|
402
|
+
value: z.ZodType<import("./site-edit-operation-value.js").SiteEditOperationValue, unknown, z.core.$ZodTypeInternals<import("./site-edit-operation-value.js").SiteEditOperationValue, unknown>>;
|
|
403
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
404
|
+
operation: z.ZodLiteral<"remove">;
|
|
405
|
+
name: z.ZodString;
|
|
406
|
+
}, z.core.$strict>], "operation">>;
|
|
407
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
407
408
|
kind: z.ZodLiteral<"apply-style-draft">;
|
|
408
409
|
className: z.ZodOptional<z.ZodObject<{
|
|
409
410
|
filePath: z.ZodString;
|
|
@@ -467,8 +468,8 @@ export declare const SiteEditOperationParamsSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
467
468
|
artifact: z.ZodObject<{
|
|
468
469
|
resource_id: z.ZodString;
|
|
469
470
|
resource_type: z.ZodEnum<{
|
|
470
|
-
pages: "pages";
|
|
471
471
|
page: "page";
|
|
472
|
+
pages: "pages";
|
|
472
473
|
}>;
|
|
473
474
|
resolved_version: z.ZodNumber;
|
|
474
475
|
revision_id: z.ZodOptional<z.ZodString>;
|
|
@@ -613,13 +614,13 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
|
|
|
613
614
|
templateId: z.ZodOptional<z.ZodString>;
|
|
614
615
|
}, z.core.$strict>;
|
|
615
616
|
kind: z.ZodEnum<{
|
|
617
|
+
"set-props": "set-props";
|
|
616
618
|
"insert-child": "insert-child";
|
|
617
619
|
"update-text": "update-text";
|
|
618
620
|
"update-array-item": "update-array-item";
|
|
619
621
|
"remove-node": "remove-node";
|
|
620
622
|
"move-node": "move-node";
|
|
621
623
|
"set-class-name-source": "set-class-name-source";
|
|
622
|
-
"set-props": "set-props";
|
|
623
624
|
"apply-style-draft": "apply-style-draft";
|
|
624
625
|
"source-edit": "source-edit";
|
|
625
626
|
"insert-page-resource": "insert-page-resource";
|
|
@@ -808,15 +809,19 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
|
|
|
808
809
|
}, z.core.$strip>;
|
|
809
810
|
}, z.core.$strip>, z.ZodObject<{
|
|
810
811
|
kind: z.ZodLiteral<"set-props">;
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
812
|
+
scope: z.ZodEnum<{
|
|
813
|
+
template: "template";
|
|
814
|
+
selection: "selection";
|
|
815
|
+
}>;
|
|
816
|
+
changes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
817
|
+
operation: z.ZodLiteral<"set">;
|
|
818
|
+
name: z.ZodString;
|
|
819
|
+
value: z.ZodType<import("./site-edit-operation-value.js").SiteEditOperationValue, unknown, z.core.$ZodTypeInternals<import("./site-edit-operation-value.js").SiteEditOperationValue, unknown>>;
|
|
820
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
821
|
+
operation: z.ZodLiteral<"remove">;
|
|
822
|
+
name: z.ZodString;
|
|
823
|
+
}, z.core.$strict>], "operation">>;
|
|
824
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
820
825
|
kind: z.ZodLiteral<"apply-style-draft">;
|
|
821
826
|
className: z.ZodOptional<z.ZodObject<{
|
|
822
827
|
filePath: z.ZodString;
|
|
@@ -880,8 +885,8 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
|
|
|
880
885
|
artifact: z.ZodObject<{
|
|
881
886
|
resource_id: z.ZodString;
|
|
882
887
|
resource_type: z.ZodEnum<{
|
|
883
|
-
pages: "pages";
|
|
884
888
|
page: "page";
|
|
889
|
+
pages: "pages";
|
|
885
890
|
}>;
|
|
886
891
|
resolved_version: z.ZodNumber;
|
|
887
892
|
revision_id: z.ZodOptional<z.ZodString>;
|
|
@@ -956,13 +961,13 @@ export declare const SiteEditSignedOperationRequestSchema: z.ZodObject<{
|
|
|
956
961
|
templateId: z.ZodOptional<z.ZodString>;
|
|
957
962
|
}, z.core.$strict>;
|
|
958
963
|
kind: z.ZodEnum<{
|
|
964
|
+
"set-props": "set-props";
|
|
959
965
|
"insert-child": "insert-child";
|
|
960
966
|
"update-text": "update-text";
|
|
961
967
|
"update-array-item": "update-array-item";
|
|
962
968
|
"remove-node": "remove-node";
|
|
963
969
|
"move-node": "move-node";
|
|
964
970
|
"set-class-name-source": "set-class-name-source";
|
|
965
|
-
"set-props": "set-props";
|
|
966
971
|
"apply-style-draft": "apply-style-draft";
|
|
967
972
|
"source-edit": "source-edit";
|
|
968
973
|
"insert-page-resource": "insert-page-resource";
|
|
@@ -1151,15 +1156,19 @@ export declare const SiteEditSignedOperationRequestSchema: z.ZodObject<{
|
|
|
1151
1156
|
}, z.core.$strip>;
|
|
1152
1157
|
}, z.core.$strip>, z.ZodObject<{
|
|
1153
1158
|
kind: z.ZodLiteral<"set-props">;
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1159
|
+
scope: z.ZodEnum<{
|
|
1160
|
+
template: "template";
|
|
1161
|
+
selection: "selection";
|
|
1162
|
+
}>;
|
|
1163
|
+
changes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1164
|
+
operation: z.ZodLiteral<"set">;
|
|
1165
|
+
name: z.ZodString;
|
|
1166
|
+
value: z.ZodType<import("./site-edit-operation-value.js").SiteEditOperationValue, unknown, z.core.$ZodTypeInternals<import("./site-edit-operation-value.js").SiteEditOperationValue, unknown>>;
|
|
1167
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1168
|
+
operation: z.ZodLiteral<"remove">;
|
|
1169
|
+
name: z.ZodString;
|
|
1170
|
+
}, z.core.$strict>], "operation">>;
|
|
1171
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1163
1172
|
kind: z.ZodLiteral<"apply-style-draft">;
|
|
1164
1173
|
className: z.ZodOptional<z.ZodObject<{
|
|
1165
1174
|
filePath: z.ZodString;
|
|
@@ -1223,8 +1232,8 @@ export declare const SiteEditSignedOperationRequestSchema: z.ZodObject<{
|
|
|
1223
1232
|
artifact: z.ZodObject<{
|
|
1224
1233
|
resource_id: z.ZodString;
|
|
1225
1234
|
resource_type: z.ZodEnum<{
|
|
1226
|
-
pages: "pages";
|
|
1227
1235
|
page: "page";
|
|
1236
|
+
pages: "pages";
|
|
1228
1237
|
}>;
|
|
1229
1238
|
resolved_version: z.ZodNumber;
|
|
1230
1239
|
revision_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1324,13 +1333,13 @@ export type SiteEditOperationOutput = z.infer<typeof SiteEditOperationOutputSche
|
|
|
1324
1333
|
export declare const SiteEditOperationPayloadSchema: z.ZodObject<{
|
|
1325
1334
|
requestId: z.ZodString;
|
|
1326
1335
|
kind: z.ZodEnum<{
|
|
1336
|
+
"set-props": "set-props";
|
|
1327
1337
|
"insert-child": "insert-child";
|
|
1328
1338
|
"update-text": "update-text";
|
|
1329
1339
|
"update-array-item": "update-array-item";
|
|
1330
1340
|
"remove-node": "remove-node";
|
|
1331
1341
|
"move-node": "move-node";
|
|
1332
1342
|
"set-class-name-source": "set-class-name-source";
|
|
1333
|
-
"set-props": "set-props";
|
|
1334
1343
|
"apply-style-draft": "apply-style-draft";
|
|
1335
1344
|
"source-edit": "source-edit";
|
|
1336
1345
|
"insert-page-resource": "insert-page-resource";
|
|
@@ -1399,13 +1408,13 @@ export declare const SiteEditOperationCommandResultSchema: z.ZodDiscriminatedUni
|
|
|
1399
1408
|
data: z.ZodObject<{
|
|
1400
1409
|
requestId: z.ZodString;
|
|
1401
1410
|
kind: z.ZodEnum<{
|
|
1411
|
+
"set-props": "set-props";
|
|
1402
1412
|
"insert-child": "insert-child";
|
|
1403
1413
|
"update-text": "update-text";
|
|
1404
1414
|
"update-array-item": "update-array-item";
|
|
1405
1415
|
"remove-node": "remove-node";
|
|
1406
1416
|
"move-node": "move-node";
|
|
1407
1417
|
"set-class-name-source": "set-class-name-source";
|
|
1408
|
-
"set-props": "set-props";
|
|
1409
1418
|
"apply-style-draft": "apply-style-draft";
|
|
1410
1419
|
"source-edit": "source-edit";
|
|
1411
1420
|
"insert-page-resource": "insert-page-resource";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const SiteEditPropertyChangeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
|
+
operation: z.ZodLiteral<"set">;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
value: z.ZodType<import("./site-edit-operation-value.js").SiteEditOperationValue, unknown, z.core.$ZodTypeInternals<import("./site-edit-operation-value.js").SiteEditOperationValue, unknown>>;
|
|
6
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7
|
+
operation: z.ZodLiteral<"remove">;
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
}, z.core.$strict>], "operation">;
|
|
10
|
+
export type SiteEditPropertyChange = z.infer<typeof SiteEditPropertyChangeSchema>;
|
|
11
|
+
export declare const SiteEditSetPropsParamsSchema: z.ZodObject<{
|
|
12
|
+
kind: z.ZodLiteral<"set-props">;
|
|
13
|
+
scope: z.ZodEnum<{
|
|
14
|
+
template: "template";
|
|
15
|
+
selection: "selection";
|
|
16
|
+
}>;
|
|
17
|
+
changes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
18
|
+
operation: z.ZodLiteral<"set">;
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
value: z.ZodType<import("./site-edit-operation-value.js").SiteEditOperationValue, unknown, z.core.$ZodTypeInternals<import("./site-edit-operation-value.js").SiteEditOperationValue, unknown>>;
|
|
21
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
22
|
+
operation: z.ZodLiteral<"remove">;
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
}, z.core.$strict>], "operation">>;
|
|
25
|
+
}, z.core.$strict>;
|
|
26
|
+
export type SiteEditSetPropsParams = z.infer<typeof SiteEditSetPropsParamsSchema>;
|
|
27
|
+
export type { SiteEditOperationValue } from "./site-edit-operation-value.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type SiteEditPropertyOwner = "generic" | "class-name-source" | "style" | "blocked";
|
|
2
|
+
export type SiteEditPropertyDiagnostic = {
|
|
3
|
+
code: "invalid-attribute-name" | "protected-attribute";
|
|
4
|
+
message: string;
|
|
5
|
+
};
|
|
6
|
+
export type SiteEditPropertyClassification = {
|
|
7
|
+
owner: SiteEditPropertyOwner;
|
|
8
|
+
/** The original JSX spelling. Never normalize custom property names. */
|
|
9
|
+
name: string;
|
|
10
|
+
diagnostic?: SiteEditPropertyDiagnostic;
|
|
11
|
+
};
|
|
12
|
+
export declare function classifySiteEditPropertyName(name: string): SiteEditPropertyClassification;
|