@vcp-dev/contracts 0.6.11 → 0.7.1
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 +5 -4
- package/dist/business-facts.d.ts +23 -0
- package/dist/cms-page-directory.d.ts +40 -4
- package/dist/colorway-distinctness.js +1 -1
- package/dist/connect-dynamic-collection.d.ts +6 -6
- package/dist/connect-form.d.ts +6 -6
- package/dist/conversion-hints.d.ts +38 -0
- package/dist/crawler-task-service.d.ts +244 -2
- package/dist/custom-domain.d.ts +119 -239
- package/dist/customer-materials.d.ts +5 -5
- package/dist/deployment-lifecycle.d.ts +45 -0
- package/dist/design-tokens.d.ts +1 -0
- package/dist/design-tokens.js +1 -1
- package/dist/e2b-preview-proxy.d.ts +5 -0
- package/dist/external-site-edit.d.ts +9 -0
- package/dist/firecrawl-internal.d.ts +19 -0
- package/dist/font-catalog.d.ts +5 -2
- package/dist/form-design.d.ts +54 -12
- package/dist/google-search-console.d.ts +1 -0
- package/dist/index.d.ts +3129 -818
- package/dist/index.js +1 -1
- package/dist/industry-classification.d.ts +43 -0
- package/dist/input-context-bundle.d.ts +10 -0
- package/dist/internal-entity-id.d.ts +1 -0
- package/dist/knowledge-category.d.ts +20 -0
- package/dist/knowledge-source-readiness.d.ts +94 -0
- package/dist/launcher-prompt-templates.d.ts +117 -14
- package/dist/migration-products.d.ts +45 -0
- package/dist/page-slug.d.ts +2 -0
- package/dist/page-template.d.ts +95 -0
- package/dist/site-build.d.ts +564 -0
- package/dist/site-design-presets.d.ts +20 -0
- package/dist/site-edit-capability.d.ts +13 -1
- package/dist/site-edit-class-name-source.d.ts +40 -8
- package/dist/site-edit-command-result.d.ts +15 -4
- package/dist/site-edit-composition.d.ts +13 -0
- package/dist/site-edit-event.d.ts +68 -14
- package/dist/site-edit-history-status.d.ts +193 -0
- package/dist/site-edit-operation.d.ts +152 -51
- package/dist/site-edit-page-composition.d.ts +101 -22
- package/dist/site-edit-patch-plan.d.ts +49 -3
- package/dist/site-edit-render-document.d.ts +54 -8
- package/dist/site-edit-session.d.ts +5 -2
- package/dist/site-edit-source.d.ts +60 -11
- package/dist/site-edit-version.d.ts +1 -1
- package/dist/site-extra-requirement.d.ts +39 -0
- package/dist/site-locale.d.ts +20 -0
- package/dist/site-localization-fields.d.ts +196 -0
- package/dist/site-localization-scope.d.ts +95 -0
- package/dist/site-preview.d.ts +15 -0
- package/dist/site-publish-domain.d.ts +680 -0
- package/dist/site-publish-workflow.d.ts +612 -0
- package/dist/site-workflow-completions.d.ts +163 -0
- package/dist/site-workflow.d.ts +231 -211
- package/dist/sitemap-navigation.d.ts +4 -1
- package/dist/step2-page-selection.d.ts +88 -0
- package/dist/step2-site-initialization.d.ts +321 -30
- package/dist/step3-digital-employee-analysis.d.ts +177 -211
- package/dist/step4-diagnosis.d.ts +72 -4
- package/dist/step5-strategy.d.ts +5901 -172
- package/dist/step6-design.d.ts +779 -464
- package/dist/subsite-localization-input.d.ts +121 -0
- package/dist/subsite-mount-path.d.ts +23 -0
- package/dist/subsite-sync-diff.d.ts +76 -0
- package/dist/subsite-visible-text-export.d.ts +34 -0
- package/dist/template-upgrade-observability.d.ts +2 -2
- package/dist/theme-presets.d.ts +56 -1
- package/dist/workspace-design-apply.d.ts +5 -0
- package/dist/workspace-resource-operation.d.ts +58 -24
- package/package.json +1 -1
- package/dist/publish-quality.d.ts +0 -92
|
@@ -24,6 +24,10 @@ export declare const SiteEditClassNameSourceStylesheetSchema: z.ZodObject<{
|
|
|
24
24
|
}, z.core.$strip>;
|
|
25
25
|
export type SiteEditClassNameSourceStylesheet = z.infer<typeof SiteEditClassNameSourceStylesheetSchema>;
|
|
26
26
|
export declare const SiteEditClassNameSourceStyleContextSchema: z.ZodObject<{
|
|
27
|
+
composition: z.ZodObject<{
|
|
28
|
+
routeId: z.ZodString;
|
|
29
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, z.core.$strict>;
|
|
27
31
|
revision: z.ZodString;
|
|
28
32
|
entryCss: z.ZodObject<{
|
|
29
33
|
path: z.ZodString;
|
|
@@ -35,11 +39,29 @@ export declare const SiteEditClassNameSourceStyleContextSchema: z.ZodObject<{
|
|
|
35
39
|
content: z.ZodString;
|
|
36
40
|
hash: z.ZodOptional<z.ZodString>;
|
|
37
41
|
}, z.core.$strip>>>;
|
|
38
|
-
}, z.core.$
|
|
42
|
+
}, z.core.$strict>;
|
|
39
43
|
export type SiteEditClassNameSourceStyleContext = z.infer<typeof SiteEditClassNameSourceStyleContextSchema>;
|
|
44
|
+
export declare const SiteEditGetStyleContextInputSchema: z.ZodObject<{
|
|
45
|
+
composition: z.ZodObject<{
|
|
46
|
+
routeId: z.ZodString;
|
|
47
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
48
|
+
}, z.core.$strict>;
|
|
49
|
+
}, z.core.$strict>;
|
|
50
|
+
export type SiteEditGetStyleContextInput = z.infer<typeof SiteEditGetStyleContextInputSchema>;
|
|
51
|
+
export declare const SiteEditGetClassNameSourceInputSchema: z.ZodObject<{
|
|
52
|
+
key: z.ZodString;
|
|
53
|
+
composition: z.ZodObject<{
|
|
54
|
+
routeId: z.ZodString;
|
|
55
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
56
|
+
}, z.core.$strict>;
|
|
57
|
+
}, z.core.$strict>;
|
|
58
|
+
export type SiteEditGetClassNameSourceInput = z.infer<typeof SiteEditGetClassNameSourceInputSchema>;
|
|
40
59
|
export declare const SiteEditClassNameSourceSchema: z.ZodObject<{
|
|
41
60
|
key: z.ZodString;
|
|
42
|
-
|
|
61
|
+
composition: z.ZodObject<{
|
|
62
|
+
routeId: z.ZodString;
|
|
63
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
64
|
+
}, z.core.$strict>;
|
|
43
65
|
filePath: z.ZodString;
|
|
44
66
|
componentName: z.ZodString;
|
|
45
67
|
sourceKind: z.ZodEnum<{
|
|
@@ -73,11 +95,14 @@ export declare const SiteEditClassNameSourceSchema: z.ZodObject<{
|
|
|
73
95
|
message: z.ZodString;
|
|
74
96
|
}, z.core.$strip>>;
|
|
75
97
|
computedStyle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
76
|
-
}, z.core.$
|
|
98
|
+
}, z.core.$strict>;
|
|
77
99
|
export type SiteEditClassNameSource = z.infer<typeof SiteEditClassNameSourceSchema>;
|
|
78
100
|
export declare const SiteEditGetClassNameSourceResultSchema: z.ZodObject<{
|
|
79
101
|
key: z.ZodString;
|
|
80
|
-
|
|
102
|
+
composition: z.ZodObject<{
|
|
103
|
+
routeId: z.ZodString;
|
|
104
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
105
|
+
}, z.core.$strict>;
|
|
81
106
|
filePath: z.ZodString;
|
|
82
107
|
componentName: z.ZodString;
|
|
83
108
|
sourceKind: z.ZodEnum<{
|
|
@@ -111,13 +136,20 @@ export declare const SiteEditGetClassNameSourceResultSchema: z.ZodObject<{
|
|
|
111
136
|
message: z.ZodString;
|
|
112
137
|
}, z.core.$strip>>;
|
|
113
138
|
computedStyle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
114
|
-
}, z.core.$
|
|
139
|
+
}, z.core.$strict>;
|
|
115
140
|
export type SiteEditGetClassNameSourceResult = z.infer<typeof SiteEditGetClassNameSourceResultSchema>;
|
|
116
141
|
export declare const SiteEditGetClassNameSourceCommandResultSchema: z.ZodObject<{
|
|
117
142
|
ok: z.ZodLiteral<true>;
|
|
143
|
+
composition: z.ZodObject<{
|
|
144
|
+
routeId: z.ZodString;
|
|
145
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
146
|
+
}, z.core.$strict>;
|
|
118
147
|
data: z.ZodObject<{
|
|
119
148
|
key: z.ZodString;
|
|
120
|
-
|
|
149
|
+
composition: z.ZodObject<{
|
|
150
|
+
routeId: z.ZodString;
|
|
151
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
152
|
+
}, z.core.$strict>;
|
|
121
153
|
filePath: z.ZodString;
|
|
122
154
|
componentName: z.ZodString;
|
|
123
155
|
sourceKind: z.ZodEnum<{
|
|
@@ -151,8 +183,8 @@ export declare const SiteEditGetClassNameSourceCommandResultSchema: z.ZodObject<
|
|
|
151
183
|
message: z.ZodString;
|
|
152
184
|
}, z.core.$strip>>;
|
|
153
185
|
computedStyle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
154
|
-
}, z.core.$
|
|
155
|
-
}, z.core.$
|
|
186
|
+
}, z.core.$strict>;
|
|
187
|
+
}, z.core.$strict>;
|
|
156
188
|
export type SiteEditGetClassNameSourceCommandResult = SiteEditCommandSuccess<SiteEditClassNameSource>;
|
|
157
189
|
export declare const SiteEditClassNameSourceWriteIntentSchema: z.ZodObject<{
|
|
158
190
|
source: z.ZodEnum<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { type SiteEditCompositionContext } from "./site-edit-composition.js";
|
|
2
3
|
export declare const SiteEditCommandErrorSchema: z.ZodObject<{
|
|
3
4
|
code: z.ZodString;
|
|
4
5
|
message: z.ZodString;
|
|
@@ -11,8 +12,12 @@ export declare const SiteEditCommandDiagnosticSchema: z.ZodObject<{
|
|
|
11
12
|
export type SiteEditCommandDiagnostic = z.infer<typeof SiteEditCommandDiagnosticSchema>;
|
|
12
13
|
export declare function createSiteEditCommandSuccessSchema<TData extends z.ZodTypeAny>(dataSchema: TData): z.ZodObject<{
|
|
13
14
|
ok: z.ZodLiteral<true>;
|
|
15
|
+
composition: z.ZodObject<{
|
|
16
|
+
routeId: z.ZodString;
|
|
17
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, z.core.$strict>;
|
|
14
19
|
data: TData;
|
|
15
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$strict>;
|
|
16
21
|
export declare function createSiteEditCommandFailureSchema<TCode extends z.ZodTypeAny, TCurrent extends z.ZodTypeAny = z.ZodUnknown, TDiagnostics extends z.ZodTypeAny = typeof SiteEditCommandDiagnosticSchema>(input: {
|
|
17
22
|
codeSchema: TCode;
|
|
18
23
|
currentSchema?: TCurrent;
|
|
@@ -20,7 +25,7 @@ export declare function createSiteEditCommandFailureSchema<TCode extends z.ZodTy
|
|
|
20
25
|
dataSchema?: z.ZodTypeAny;
|
|
21
26
|
}): z.ZodObject<{
|
|
22
27
|
[x: string]: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
23
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$strict>;
|
|
24
29
|
export declare function createSiteEditCommandResultSchema<TData extends z.ZodTypeAny, TCode extends z.ZodTypeAny, TCurrent extends z.ZodTypeAny = z.ZodUnknown, TDiagnostics extends z.ZodTypeAny = typeof SiteEditCommandDiagnosticSchema>(input: {
|
|
25
30
|
dataSchema: TData;
|
|
26
31
|
codeSchema: TCode;
|
|
@@ -29,16 +34,22 @@ export declare function createSiteEditCommandResultSchema<TData extends z.ZodTyp
|
|
|
29
34
|
failureDataSchema?: z.ZodTypeAny;
|
|
30
35
|
}): z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31
36
|
ok: z.ZodLiteral<true>;
|
|
37
|
+
composition: z.ZodObject<{
|
|
38
|
+
routeId: z.ZodString;
|
|
39
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
40
|
+
}, z.core.$strict>;
|
|
32
41
|
data: TData;
|
|
33
|
-
}, z.core.$
|
|
42
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
34
43
|
[x: string]: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
35
|
-
}, z.core.$
|
|
44
|
+
}, z.core.$strict>], "ok">;
|
|
36
45
|
export type SiteEditCommandSuccess<TData> = {
|
|
37
46
|
ok: true;
|
|
47
|
+
composition: SiteEditCompositionContext;
|
|
38
48
|
data: TData;
|
|
39
49
|
};
|
|
40
50
|
export type SiteEditCommandFailure<TCode extends string = string, TCurrent = unknown, TDiagnostic = SiteEditCommandDiagnostic, TData = never> = {
|
|
41
51
|
ok: false;
|
|
52
|
+
composition: SiteEditCompositionContext;
|
|
42
53
|
error: {
|
|
43
54
|
code: TCode;
|
|
44
55
|
message: string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const SiteEditCompositionSelectorSchema: z.ZodObject<{
|
|
3
|
+
routeId: z.ZodString;
|
|
4
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
5
|
+
}, z.core.$strict>;
|
|
6
|
+
export type SiteEditCompositionSelector = z.infer<typeof SiteEditCompositionSelectorSchema>;
|
|
7
|
+
export declare const SiteEditCompositionContextSchema: z.ZodObject<{
|
|
8
|
+
routeId: z.ZodString;
|
|
9
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$strict>;
|
|
11
|
+
export type SiteEditCompositionContext = z.infer<typeof SiteEditCompositionContextSchema>;
|
|
12
|
+
export declare function computeSiteEditCompositionKey(context: SiteEditCompositionContext): string;
|
|
13
|
+
export declare function parseSiteEditCompositionKey(key: string): SiteEditCompositionContext | null;
|
|
@@ -3,19 +3,30 @@ export declare const SiteEditEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3
3
|
type: z.ZodLiteral<"site-edit.document.changed">;
|
|
4
4
|
siteId: z.ZodUUID;
|
|
5
5
|
snapshotId: z.ZodUUID;
|
|
6
|
-
|
|
6
|
+
composition: z.ZodObject<{
|
|
7
|
+
routeId: z.ZodString;
|
|
8
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$strict>;
|
|
7
10
|
version: z.ZodNumber;
|
|
8
11
|
at: z.ZodString;
|
|
9
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
10
13
|
type: z.ZodLiteral<"site-edit.operation.planned">;
|
|
11
14
|
siteId: z.ZodUUID;
|
|
12
15
|
operationId: z.ZodString;
|
|
13
16
|
baseSnapshotId: z.ZodUUID;
|
|
17
|
+
composition: z.ZodObject<{
|
|
18
|
+
routeId: z.ZodString;
|
|
19
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strict>;
|
|
14
21
|
changedFiles: z.ZodArray<z.ZodString>;
|
|
15
22
|
at: z.ZodString;
|
|
16
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
17
24
|
type: z.ZodLiteral<"site-edit.operation.completed">;
|
|
18
25
|
siteId: z.ZodUUID;
|
|
26
|
+
composition: z.ZodObject<{
|
|
27
|
+
routeId: z.ZodString;
|
|
28
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
29
|
+
}, z.core.$strict>;
|
|
19
30
|
result: z.ZodObject<{
|
|
20
31
|
requestId: z.ZodString;
|
|
21
32
|
kind: z.ZodEnum<{
|
|
@@ -31,23 +42,33 @@ export declare const SiteEditEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
31
42
|
"insert-page-resource": "insert-page-resource";
|
|
32
43
|
"delete-page-source": "delete-page-source";
|
|
33
44
|
}>;
|
|
45
|
+
composition: z.ZodObject<{
|
|
46
|
+
routeId: z.ZodString;
|
|
47
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
48
|
+
}, z.core.$strict>;
|
|
34
49
|
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
35
50
|
kind: z.ZodLiteral<"node">;
|
|
36
51
|
key: z.ZodString;
|
|
37
|
-
}, z.core.$
|
|
52
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
38
53
|
kind: z.ZodLiteral<"page-unit">;
|
|
39
|
-
|
|
54
|
+
composition: z.ZodObject<{
|
|
55
|
+
routeId: z.ZodString;
|
|
56
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
57
|
+
}, z.core.$strict>;
|
|
40
58
|
placementUnitKey: z.ZodString;
|
|
41
59
|
}, z.core.$strict>, z.ZodObject<{
|
|
42
60
|
kind: z.ZodLiteral<"route">;
|
|
43
|
-
|
|
44
|
-
|
|
61
|
+
composition: z.ZodObject<{
|
|
62
|
+
routeId: z.ZodString;
|
|
63
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
64
|
+
}, z.core.$strict>;
|
|
65
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
45
66
|
kind: z.ZodLiteral<"source-file">;
|
|
46
67
|
path: z.ZodString;
|
|
47
|
-
}, z.core.$
|
|
68
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
48
69
|
kind: z.ZodLiteral<"source-batch">;
|
|
49
70
|
paths: z.ZodArray<z.ZodString>;
|
|
50
|
-
}, z.core.$
|
|
71
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
51
72
|
kind: z.ZodLiteral<"project">;
|
|
52
73
|
}, z.core.$strict>], "kind">;
|
|
53
74
|
resultVersion: z.ZodNumber;
|
|
@@ -73,11 +94,15 @@ export declare const SiteEditEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
73
94
|
preserved_shared_files: z.ZodArray<z.ZodString>;
|
|
74
95
|
warnings: z.ZodArray<z.ZodString>;
|
|
75
96
|
}, z.core.$strict>], "kind">>;
|
|
76
|
-
}, z.core.$
|
|
97
|
+
}, z.core.$strict>;
|
|
77
98
|
at: z.ZodString;
|
|
78
|
-
}, z.core.$
|
|
99
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
79
100
|
type: z.ZodLiteral<"site-edit.operation.failed">;
|
|
80
101
|
siteId: z.ZodUUID;
|
|
102
|
+
composition: z.ZodObject<{
|
|
103
|
+
routeId: z.ZodString;
|
|
104
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
105
|
+
}, z.core.$strict>;
|
|
81
106
|
requestId: z.ZodString;
|
|
82
107
|
error: z.ZodObject<{
|
|
83
108
|
code: z.ZodEnum<{
|
|
@@ -116,11 +141,40 @@ export declare const SiteEditEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
116
141
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
117
142
|
}, z.core.$strip>;
|
|
118
143
|
at: z.ZodString;
|
|
119
|
-
}, z.core.$
|
|
144
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
120
145
|
type: z.ZodLiteral<"site-edit.capability.changed">;
|
|
121
146
|
siteId: z.ZodUUID;
|
|
122
|
-
|
|
147
|
+
composition: z.ZodObject<{
|
|
148
|
+
routeId: z.ZodString;
|
|
149
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
150
|
+
}, z.core.$strict>;
|
|
123
151
|
keys: z.ZodArray<z.ZodString>;
|
|
124
152
|
at: z.ZodString;
|
|
125
|
-
}, z.core.$
|
|
153
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
154
|
+
type: z.ZodLiteral<"site-edit.graph.invalidated">;
|
|
155
|
+
siteId: z.ZodUUID;
|
|
156
|
+
composition: z.ZodObject<{
|
|
157
|
+
routeId: z.ZodString;
|
|
158
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
159
|
+
}, z.core.$strict>;
|
|
160
|
+
at: z.ZodString;
|
|
161
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
162
|
+
type: z.ZodLiteral<"site-edit.graph.ready">;
|
|
163
|
+
siteId: z.ZodUUID;
|
|
164
|
+
composition: z.ZodObject<{
|
|
165
|
+
routeId: z.ZodString;
|
|
166
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
167
|
+
}, z.core.$strict>;
|
|
168
|
+
version: z.ZodNumber;
|
|
169
|
+
at: z.ZodString;
|
|
170
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
171
|
+
type: z.ZodLiteral<"site-edit.graph.error">;
|
|
172
|
+
siteId: z.ZodUUID;
|
|
173
|
+
composition: z.ZodObject<{
|
|
174
|
+
routeId: z.ZodString;
|
|
175
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
176
|
+
}, z.core.$strict>;
|
|
177
|
+
message: z.ZodString;
|
|
178
|
+
at: z.ZodString;
|
|
179
|
+
}, z.core.$strict>], "type">;
|
|
126
180
|
export type SiteEditEvent = z.infer<typeof SiteEditEventSchema>;
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const SITE_EDIT_DURABLE_HISTORY_CAPABILITY: "durable-history-v1";
|
|
3
|
+
export declare const SiteEditHistoryProvenanceSchema: z.ZodObject<{
|
|
4
|
+
initiatingComposition: z.ZodOptional<z.ZodObject<{
|
|
5
|
+
routeId: z.ZodString;
|
|
6
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strict>>;
|
|
8
|
+
affectedCompositions: z.ZodArray<z.ZodObject<{
|
|
9
|
+
routeId: z.ZodString;
|
|
10
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, z.core.$strict>>;
|
|
12
|
+
}, z.core.$strict>;
|
|
13
|
+
export type SiteEditHistoryProvenance = z.infer<typeof SiteEditHistoryProvenanceSchema>;
|
|
3
14
|
export declare const SiteEditHistoryStatusModeSchema: z.ZodEnum<{
|
|
4
15
|
writable: "writable";
|
|
5
16
|
"read-only-recovery": "read-only-recovery";
|
|
@@ -37,10 +48,24 @@ export type SiteEditHistoryUnavailableReason = z.infer<typeof SiteEditHistoryUna
|
|
|
37
48
|
export declare const SiteEditHistoryWritableStatusSchema: z.ZodObject<{
|
|
38
49
|
canUndo: z.ZodBoolean;
|
|
39
50
|
canRedo: z.ZodBoolean;
|
|
51
|
+
provenance: z.ZodOptional<z.ZodObject<{
|
|
52
|
+
initiatingComposition: z.ZodOptional<z.ZodObject<{
|
|
53
|
+
routeId: z.ZodString;
|
|
54
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
55
|
+
}, z.core.$strict>>;
|
|
56
|
+
affectedCompositions: z.ZodArray<z.ZodObject<{
|
|
57
|
+
routeId: z.ZodString;
|
|
58
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
59
|
+
}, z.core.$strict>>;
|
|
60
|
+
}, z.core.$strict>>;
|
|
40
61
|
revision: z.ZodNumber;
|
|
41
62
|
undoDepth: z.ZodNumber;
|
|
42
63
|
redoDepth: z.ZodNumber;
|
|
43
64
|
mode: z.ZodLiteral<"writable">;
|
|
65
|
+
composition: z.ZodObject<{
|
|
66
|
+
routeId: z.ZodString;
|
|
67
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
68
|
+
}, z.core.$strict>;
|
|
44
69
|
}, z.core.$strict>;
|
|
45
70
|
export type SiteEditHistoryWritableStatus = z.infer<typeof SiteEditHistoryWritableStatusSchema>;
|
|
46
71
|
export declare const SiteEditHistoryReadOnlyRecoveryStatusSchema: z.ZodObject<{
|
|
@@ -58,14 +83,32 @@ export declare const SiteEditHistoryReadOnlyRecoveryStatusSchema: z.ZodObject<{
|
|
|
58
83
|
message: z.ZodString;
|
|
59
84
|
occurredAt: z.ZodOptional<z.ZodISODateTime>;
|
|
60
85
|
}, z.core.$strict>;
|
|
86
|
+
provenance: z.ZodOptional<z.ZodObject<{
|
|
87
|
+
initiatingComposition: z.ZodOptional<z.ZodObject<{
|
|
88
|
+
routeId: z.ZodString;
|
|
89
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
90
|
+
}, z.core.$strict>>;
|
|
91
|
+
affectedCompositions: z.ZodArray<z.ZodObject<{
|
|
92
|
+
routeId: z.ZodString;
|
|
93
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
94
|
+
}, z.core.$strict>>;
|
|
95
|
+
}, z.core.$strict>>;
|
|
61
96
|
revision: z.ZodNumber;
|
|
62
97
|
undoDepth: z.ZodNumber;
|
|
63
98
|
redoDepth: z.ZodNumber;
|
|
64
99
|
mode: z.ZodLiteral<"read-only-recovery">;
|
|
100
|
+
composition: z.ZodObject<{
|
|
101
|
+
routeId: z.ZodString;
|
|
102
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
103
|
+
}, z.core.$strict>;
|
|
65
104
|
}, z.core.$strict>;
|
|
66
105
|
export type SiteEditHistoryReadOnlyRecoveryStatus = z.infer<typeof SiteEditHistoryReadOnlyRecoveryStatusSchema>;
|
|
67
106
|
export declare const SiteEditHistoryUnavailableStatusSchema: z.ZodObject<{
|
|
68
107
|
mode: z.ZodLiteral<"unavailable">;
|
|
108
|
+
composition: z.ZodObject<{
|
|
109
|
+
routeId: z.ZodString;
|
|
110
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
111
|
+
}, z.core.$strict>;
|
|
69
112
|
revision: z.ZodLiteral<0>;
|
|
70
113
|
undoDepth: z.ZodLiteral<0>;
|
|
71
114
|
redoDepth: z.ZodLiteral<0>;
|
|
@@ -76,15 +119,39 @@ export declare const SiteEditHistoryUnavailableStatusSchema: z.ZodObject<{
|
|
|
76
119
|
NOT_INITIALIZED: "NOT_INITIALIZED";
|
|
77
120
|
UNSUPPORTED_RUNTIME: "UNSUPPORTED_RUNTIME";
|
|
78
121
|
}>;
|
|
122
|
+
provenance: z.ZodOptional<z.ZodObject<{
|
|
123
|
+
initiatingComposition: z.ZodOptional<z.ZodObject<{
|
|
124
|
+
routeId: z.ZodString;
|
|
125
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
126
|
+
}, z.core.$strict>>;
|
|
127
|
+
affectedCompositions: z.ZodArray<z.ZodObject<{
|
|
128
|
+
routeId: z.ZodString;
|
|
129
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
130
|
+
}, z.core.$strict>>;
|
|
131
|
+
}, z.core.$strict>>;
|
|
79
132
|
}, z.core.$strict>;
|
|
80
133
|
export type SiteEditHistoryUnavailableStatus = z.infer<typeof SiteEditHistoryUnavailableStatusSchema>;
|
|
81
134
|
export declare const SiteEditHistoryStatusSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
82
135
|
canUndo: z.ZodBoolean;
|
|
83
136
|
canRedo: z.ZodBoolean;
|
|
137
|
+
provenance: z.ZodOptional<z.ZodObject<{
|
|
138
|
+
initiatingComposition: z.ZodOptional<z.ZodObject<{
|
|
139
|
+
routeId: z.ZodString;
|
|
140
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
141
|
+
}, z.core.$strict>>;
|
|
142
|
+
affectedCompositions: z.ZodArray<z.ZodObject<{
|
|
143
|
+
routeId: z.ZodString;
|
|
144
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
145
|
+
}, z.core.$strict>>;
|
|
146
|
+
}, z.core.$strict>>;
|
|
84
147
|
revision: z.ZodNumber;
|
|
85
148
|
undoDepth: z.ZodNumber;
|
|
86
149
|
redoDepth: z.ZodNumber;
|
|
87
150
|
mode: z.ZodLiteral<"writable">;
|
|
151
|
+
composition: z.ZodObject<{
|
|
152
|
+
routeId: z.ZodString;
|
|
153
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
154
|
+
}, z.core.$strict>;
|
|
88
155
|
}, z.core.$strict>, z.ZodObject<{
|
|
89
156
|
canUndo: z.ZodLiteral<false>;
|
|
90
157
|
canRedo: z.ZodLiteral<false>;
|
|
@@ -100,12 +167,30 @@ export declare const SiteEditHistoryStatusSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
100
167
|
message: z.ZodString;
|
|
101
168
|
occurredAt: z.ZodOptional<z.ZodISODateTime>;
|
|
102
169
|
}, z.core.$strict>;
|
|
170
|
+
provenance: z.ZodOptional<z.ZodObject<{
|
|
171
|
+
initiatingComposition: z.ZodOptional<z.ZodObject<{
|
|
172
|
+
routeId: z.ZodString;
|
|
173
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
174
|
+
}, z.core.$strict>>;
|
|
175
|
+
affectedCompositions: z.ZodArray<z.ZodObject<{
|
|
176
|
+
routeId: z.ZodString;
|
|
177
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
178
|
+
}, z.core.$strict>>;
|
|
179
|
+
}, z.core.$strict>>;
|
|
103
180
|
revision: z.ZodNumber;
|
|
104
181
|
undoDepth: z.ZodNumber;
|
|
105
182
|
redoDepth: z.ZodNumber;
|
|
106
183
|
mode: z.ZodLiteral<"read-only-recovery">;
|
|
184
|
+
composition: z.ZodObject<{
|
|
185
|
+
routeId: z.ZodString;
|
|
186
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
187
|
+
}, z.core.$strict>;
|
|
107
188
|
}, z.core.$strict>, z.ZodObject<{
|
|
108
189
|
mode: z.ZodLiteral<"unavailable">;
|
|
190
|
+
composition: z.ZodObject<{
|
|
191
|
+
routeId: z.ZodString;
|
|
192
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
193
|
+
}, z.core.$strict>;
|
|
109
194
|
revision: z.ZodLiteral<0>;
|
|
110
195
|
undoDepth: z.ZodLiteral<0>;
|
|
111
196
|
redoDepth: z.ZodLiteral<0>;
|
|
@@ -116,5 +201,113 @@ export declare const SiteEditHistoryStatusSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
116
201
|
NOT_INITIALIZED: "NOT_INITIALIZED";
|
|
117
202
|
UNSUPPORTED_RUNTIME: "UNSUPPORTED_RUNTIME";
|
|
118
203
|
}>;
|
|
204
|
+
provenance: z.ZodOptional<z.ZodObject<{
|
|
205
|
+
initiatingComposition: z.ZodOptional<z.ZodObject<{
|
|
206
|
+
routeId: z.ZodString;
|
|
207
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
208
|
+
}, z.core.$strict>>;
|
|
209
|
+
affectedCompositions: z.ZodArray<z.ZodObject<{
|
|
210
|
+
routeId: z.ZodString;
|
|
211
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
212
|
+
}, z.core.$strict>>;
|
|
213
|
+
}, z.core.$strict>>;
|
|
119
214
|
}, z.core.$strict>], "mode">;
|
|
120
215
|
export type SiteEditHistoryStatus = z.infer<typeof SiteEditHistoryStatusSchema>;
|
|
216
|
+
export declare const SiteEditHistoryResultSchema: z.ZodObject<{
|
|
217
|
+
composition: z.ZodObject<{
|
|
218
|
+
routeId: z.ZodString;
|
|
219
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
220
|
+
}, z.core.$strict>;
|
|
221
|
+
status: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
222
|
+
canUndo: z.ZodBoolean;
|
|
223
|
+
canRedo: z.ZodBoolean;
|
|
224
|
+
provenance: z.ZodOptional<z.ZodObject<{
|
|
225
|
+
initiatingComposition: z.ZodOptional<z.ZodObject<{
|
|
226
|
+
routeId: z.ZodString;
|
|
227
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
228
|
+
}, z.core.$strict>>;
|
|
229
|
+
affectedCompositions: z.ZodArray<z.ZodObject<{
|
|
230
|
+
routeId: z.ZodString;
|
|
231
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
232
|
+
}, z.core.$strict>>;
|
|
233
|
+
}, z.core.$strict>>;
|
|
234
|
+
revision: z.ZodNumber;
|
|
235
|
+
undoDepth: z.ZodNumber;
|
|
236
|
+
redoDepth: z.ZodNumber;
|
|
237
|
+
mode: z.ZodLiteral<"writable">;
|
|
238
|
+
composition: z.ZodObject<{
|
|
239
|
+
routeId: z.ZodString;
|
|
240
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
241
|
+
}, z.core.$strict>;
|
|
242
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
243
|
+
canUndo: z.ZodLiteral<false>;
|
|
244
|
+
canRedo: z.ZodLiteral<false>;
|
|
245
|
+
recoveryDiagnostic: z.ZodObject<{
|
|
246
|
+
code: z.ZodEnum<{
|
|
247
|
+
INDEX_CORRUPT: "INDEX_CORRUPT";
|
|
248
|
+
ENTRY_MISSING: "ENTRY_MISSING";
|
|
249
|
+
BLOB_MISSING: "BLOB_MISSING";
|
|
250
|
+
FILESYSTEM_UNAVAILABLE: "FILESYSTEM_UNAVAILABLE";
|
|
251
|
+
ROLLBACK_INCOMPLETE: "ROLLBACK_INCOMPLETE";
|
|
252
|
+
UNKNOWN: "UNKNOWN";
|
|
253
|
+
}>;
|
|
254
|
+
message: z.ZodString;
|
|
255
|
+
occurredAt: z.ZodOptional<z.ZodISODateTime>;
|
|
256
|
+
}, z.core.$strict>;
|
|
257
|
+
provenance: z.ZodOptional<z.ZodObject<{
|
|
258
|
+
initiatingComposition: z.ZodOptional<z.ZodObject<{
|
|
259
|
+
routeId: z.ZodString;
|
|
260
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
261
|
+
}, z.core.$strict>>;
|
|
262
|
+
affectedCompositions: z.ZodArray<z.ZodObject<{
|
|
263
|
+
routeId: z.ZodString;
|
|
264
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
265
|
+
}, z.core.$strict>>;
|
|
266
|
+
}, z.core.$strict>>;
|
|
267
|
+
revision: z.ZodNumber;
|
|
268
|
+
undoDepth: z.ZodNumber;
|
|
269
|
+
redoDepth: z.ZodNumber;
|
|
270
|
+
mode: z.ZodLiteral<"read-only-recovery">;
|
|
271
|
+
composition: z.ZodObject<{
|
|
272
|
+
routeId: z.ZodString;
|
|
273
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
274
|
+
}, z.core.$strict>;
|
|
275
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
276
|
+
mode: z.ZodLiteral<"unavailable">;
|
|
277
|
+
composition: z.ZodObject<{
|
|
278
|
+
routeId: z.ZodString;
|
|
279
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
280
|
+
}, z.core.$strict>;
|
|
281
|
+
revision: z.ZodLiteral<0>;
|
|
282
|
+
undoDepth: z.ZodLiteral<0>;
|
|
283
|
+
redoDepth: z.ZodLiteral<0>;
|
|
284
|
+
canUndo: z.ZodLiteral<false>;
|
|
285
|
+
canRedo: z.ZodLiteral<false>;
|
|
286
|
+
reason: z.ZodEnum<{
|
|
287
|
+
FILESYSTEM_UNAVAILABLE: "FILESYSTEM_UNAVAILABLE";
|
|
288
|
+
NOT_INITIALIZED: "NOT_INITIALIZED";
|
|
289
|
+
UNSUPPORTED_RUNTIME: "UNSUPPORTED_RUNTIME";
|
|
290
|
+
}>;
|
|
291
|
+
provenance: z.ZodOptional<z.ZodObject<{
|
|
292
|
+
initiatingComposition: z.ZodOptional<z.ZodObject<{
|
|
293
|
+
routeId: z.ZodString;
|
|
294
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
295
|
+
}, z.core.$strict>>;
|
|
296
|
+
affectedCompositions: z.ZodArray<z.ZodObject<{
|
|
297
|
+
routeId: z.ZodString;
|
|
298
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
299
|
+
}, z.core.$strict>>;
|
|
300
|
+
}, z.core.$strict>>;
|
|
301
|
+
}, z.core.$strict>], "mode">;
|
|
302
|
+
provenance: z.ZodObject<{
|
|
303
|
+
initiatingComposition: z.ZodOptional<z.ZodObject<{
|
|
304
|
+
routeId: z.ZodString;
|
|
305
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
306
|
+
}, z.core.$strict>>;
|
|
307
|
+
affectedCompositions: z.ZodArray<z.ZodObject<{
|
|
308
|
+
routeId: z.ZodString;
|
|
309
|
+
effectiveTemplateId: z.ZodOptional<z.ZodString>;
|
|
310
|
+
}, z.core.$strict>>;
|
|
311
|
+
}, z.core.$strict>;
|
|
312
|
+
}, z.core.$strict>;
|
|
313
|
+
export type SiteEditHistoryResult = z.infer<typeof SiteEditHistoryResultSchema>;
|