@visual-platform/contracts 0.0.0-stage → 0.2.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.
Files changed (58) hide show
  1. package/dist/classes.d.ts +11 -0
  2. package/dist/classes.d.ts.map +1 -0
  3. package/dist/classes.js +34 -0
  4. package/dist/classes.js.map +1 -0
  5. package/dist/component.d.ts +135 -0
  6. package/dist/component.d.ts.map +1 -0
  7. package/dist/component.js +176 -0
  8. package/dist/component.js.map +1 -0
  9. package/dist/data.d.ts +160 -0
  10. package/dist/data.d.ts.map +1 -0
  11. package/dist/data.js +363 -0
  12. package/dist/data.js.map +1 -0
  13. package/dist/design.d.ts +139 -0
  14. package/dist/design.d.ts.map +1 -0
  15. package/dist/design.js +226 -0
  16. package/dist/design.js.map +1 -0
  17. package/dist/events.d.ts +36 -0
  18. package/dist/events.d.ts.map +1 -0
  19. package/dist/events.js +46 -0
  20. package/dist/events.js.map +1 -0
  21. package/dist/index.d.ts +14 -0
  22. package/dist/index.d.ts.map +1 -0
  23. package/dist/index.js +14 -0
  24. package/dist/index.js.map +1 -0
  25. package/dist/locales.d.ts +37 -0
  26. package/dist/locales.d.ts.map +1 -0
  27. package/dist/locales.js +36 -0
  28. package/dist/locales.js.map +1 -0
  29. package/dist/page-document.d.ts +203 -0
  30. package/dist/page-document.d.ts.map +1 -0
  31. package/dist/page-document.js +73 -0
  32. package/dist/page-document.js.map +1 -0
  33. package/dist/published.d.ts +353 -0
  34. package/dist/published.d.ts.map +1 -0
  35. package/dist/published.js +66 -0
  36. package/dist/published.js.map +1 -0
  37. package/dist/references.d.ts +51 -0
  38. package/dist/references.d.ts.map +1 -0
  39. package/dist/references.js +35 -0
  40. package/dist/references.js.map +1 -0
  41. package/dist/responsive.d.ts +19 -0
  42. package/dist/responsive.d.ts.map +1 -0
  43. package/dist/responsive.js +18 -0
  44. package/dist/responsive.js.map +1 -0
  45. package/dist/section.d.ts +33 -0
  46. package/dist/section.d.ts.map +1 -0
  47. package/dist/section.js +53 -0
  48. package/dist/section.js.map +1 -0
  49. package/dist/seo.d.ts +98 -0
  50. package/dist/seo.d.ts.map +1 -0
  51. package/dist/seo.js +71 -0
  52. package/dist/seo.js.map +1 -0
  53. package/dist/tables.d.ts +134 -0
  54. package/dist/tables.d.ts.map +1 -0
  55. package/dist/tables.js +438 -0
  56. package/dist/tables.js.map +1 -0
  57. package/package.json +31 -3
  58. package/README.md +0 -3
@@ -0,0 +1,203 @@
1
+ import { z } from "zod";
2
+ import { type DataInput, type NodeBindings } from "./data.js";
3
+ /** Current canonical document schema version. Bump only through an RFC + migration. */
4
+ export declare const PAGE_DOCUMENT_SCHEMA_VERSION: 1;
5
+ /** Stable node id assigned by the server: `n_` + nanoid (blueprint 31 §5). */
6
+ export declare const NodeIdSchema: z.ZodString;
7
+ /**
8
+ * Plugin-owned data, namespaced by plugin id, each with its own schema version `v`
9
+ * (blueprint 35 §4). Stripped from published documents.
10
+ */
11
+ export declare const ExtensionDataSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
12
+ v: z.ZodNumber;
13
+ }, z.core.$loose>>;
14
+ export type ExtensionData = z.infer<typeof ExtensionDataSchema>;
15
+ export declare const NodeMetaSchema: z.ZodObject<{
16
+ origin: z.ZodOptional<z.ZodEnum<{
17
+ ai: "ai";
18
+ migration: "migration";
19
+ user: "user";
20
+ }>>;
21
+ }, z.core.$strict>;
22
+ export type ComponentNode = {
23
+ id: string;
24
+ type: string;
25
+ props: Record<string, unknown>;
26
+ /** Tailwind utility classes applied to the block's root element (ADR-029). */
27
+ className?: string | undefined;
28
+ /** Element events bound to app event names, e.g. { submit: "onSubscribe" } (ADR-032). */
29
+ events?: Partial<Record<"click" | "change" | "blur" | "enter" | "submit" | "reset" | "toggle", string>> | undefined;
30
+ /** Props bound to data fields, e.g. { title: { path: "item.name" } }; props keep the fallback (ADR-034). */
31
+ bind?: NodeBindings | undefined;
32
+ showIf?: string | undefined;
33
+ slots?: Record<string, ComponentNode[]> | undefined;
34
+ dataBinding?: Record<string, unknown> | undefined;
35
+ ext?: ExtensionData | undefined;
36
+ meta?: z.infer<typeof NodeMetaSchema> | undefined;
37
+ };
38
+ export declare const ComponentNodeSchema: z.ZodType<ComponentNode>;
39
+ export declare const RootPropsSchema: z.ZodObject<{
40
+ seo: z.ZodObject<{
41
+ slug: z.ZodString;
42
+ title: z.ZodString;
43
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ canonical: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ robots: z.ZodOptional<z.ZodNullable<z.ZodObject<{
46
+ index: z.ZodBoolean;
47
+ follow: z.ZodBoolean;
48
+ }, z.core.$strict>>>;
49
+ og: z.ZodOptional<z.ZodObject<{
50
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ image: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
53
+ url: z.ZodString;
54
+ alt: z.ZodOptional<z.ZodString>;
55
+ width: z.ZodOptional<z.ZodNumber>;
56
+ height: z.ZodOptional<z.ZodNumber>;
57
+ assetId: z.ZodOptional<z.ZodString>;
58
+ }, z.core.$strict>, z.ZodObject<{
59
+ assetId: z.ZodString;
60
+ alt: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
61
+ decorative: z.ZodOptional<z.ZodBoolean>;
62
+ focal: z.ZodOptional<z.ZodObject<{
63
+ x: z.ZodNumber;
64
+ y: z.ZodNumber;
65
+ }, z.core.$strict>>;
66
+ }, z.core.$strict>]>>>;
67
+ }, z.core.$strict>>;
68
+ structuredData: z.ZodOptional<z.ZodArray<z.ZodObject<{
69
+ template: z.ZodEnum<{
70
+ Article: "Article";
71
+ BreadcrumbList: "BreadcrumbList";
72
+ Event: "Event";
73
+ FAQPage: "FAQPage";
74
+ Offer: "Offer";
75
+ Organization: "Organization";
76
+ Product: "Product";
77
+ }>;
78
+ fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
79
+ }, z.core.$strict>>>;
80
+ }, z.core.$strict>;
81
+ theme: z.ZodOptional<z.ZodString>;
82
+ data: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
83
+ name: z.ZodString;
84
+ label: z.ZodOptional<z.ZodString>;
85
+ source: z.ZodDefault<z.ZodEnum<{
86
+ app: "app";
87
+ table: "table";
88
+ }>>;
89
+ shape: z.ZodEnum<{
90
+ list: "list";
91
+ object: "object";
92
+ }>;
93
+ fields: z.ZodArray<z.ZodType<import("./data.js").DataField, unknown, z.core.$ZodTypeInternals<import("./data.js").DataField, unknown>>>;
94
+ sample: z.ZodOptional<z.ZodUnknown>;
95
+ query: z.ZodOptional<z.ZodLazy<z.ZodObject<{
96
+ table: z.ZodString;
97
+ where: z.ZodOptional<z.ZodType<import("./tables.js").Filter, unknown, z.core.$ZodTypeInternals<import("./tables.js").Filter, unknown>>>;
98
+ sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
99
+ field: z.ZodString;
100
+ dir: z.ZodDefault<z.ZodEnum<{
101
+ asc: "asc";
102
+ desc: "desc";
103
+ }>>;
104
+ }, z.core.$strict>>>;
105
+ limit: z.ZodDefault<z.ZodNumber>;
106
+ offset: z.ZodDefault<z.ZodNumber>;
107
+ include: z.ZodOptional<z.ZodArray<z.ZodString>>;
108
+ locale: z.ZodOptional<z.ZodString>;
109
+ }, z.core.$strict>>>;
110
+ single: z.ZodOptional<z.ZodBoolean>;
111
+ }, z.core.$strict>>>>;
112
+ }, z.core.$catchall<z.ZodUnknown>>;
113
+ export declare const PageDocumentSchema: z.ZodObject<{
114
+ schemaVersion: z.ZodLiteral<1>;
115
+ locale: z.ZodString;
116
+ root: z.ZodObject<{
117
+ props: z.ZodObject<{
118
+ seo: z.ZodObject<{
119
+ slug: z.ZodString;
120
+ title: z.ZodString;
121
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
+ canonical: z.ZodOptional<z.ZodNullable<z.ZodString>>;
123
+ robots: z.ZodOptional<z.ZodNullable<z.ZodObject<{
124
+ index: z.ZodBoolean;
125
+ follow: z.ZodBoolean;
126
+ }, z.core.$strict>>>;
127
+ og: z.ZodOptional<z.ZodObject<{
128
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
129
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
130
+ image: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
131
+ url: z.ZodString;
132
+ alt: z.ZodOptional<z.ZodString>;
133
+ width: z.ZodOptional<z.ZodNumber>;
134
+ height: z.ZodOptional<z.ZodNumber>;
135
+ assetId: z.ZodOptional<z.ZodString>;
136
+ }, z.core.$strict>, z.ZodObject<{
137
+ assetId: z.ZodString;
138
+ alt: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
139
+ decorative: z.ZodOptional<z.ZodBoolean>;
140
+ focal: z.ZodOptional<z.ZodObject<{
141
+ x: z.ZodNumber;
142
+ y: z.ZodNumber;
143
+ }, z.core.$strict>>;
144
+ }, z.core.$strict>]>>>;
145
+ }, z.core.$strict>>;
146
+ structuredData: z.ZodOptional<z.ZodArray<z.ZodObject<{
147
+ template: z.ZodEnum<{
148
+ Article: "Article";
149
+ BreadcrumbList: "BreadcrumbList";
150
+ Event: "Event";
151
+ FAQPage: "FAQPage";
152
+ Offer: "Offer";
153
+ Organization: "Organization";
154
+ Product: "Product";
155
+ }>;
156
+ fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
157
+ }, z.core.$strict>>>;
158
+ }, z.core.$strict>;
159
+ theme: z.ZodOptional<z.ZodString>;
160
+ data: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
161
+ name: z.ZodString;
162
+ label: z.ZodOptional<z.ZodString>;
163
+ source: z.ZodDefault<z.ZodEnum<{
164
+ app: "app";
165
+ table: "table";
166
+ }>>;
167
+ shape: z.ZodEnum<{
168
+ list: "list";
169
+ object: "object";
170
+ }>;
171
+ fields: z.ZodArray<z.ZodType<import("./data.js").DataField, unknown, z.core.$ZodTypeInternals<import("./data.js").DataField, unknown>>>;
172
+ sample: z.ZodOptional<z.ZodUnknown>;
173
+ query: z.ZodOptional<z.ZodLazy<z.ZodObject<{
174
+ table: z.ZodString;
175
+ where: z.ZodOptional<z.ZodType<import("./tables.js").Filter, unknown, z.core.$ZodTypeInternals<import("./tables.js").Filter, unknown>>>;
176
+ sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
177
+ field: z.ZodString;
178
+ dir: z.ZodDefault<z.ZodEnum<{
179
+ asc: "asc";
180
+ desc: "desc";
181
+ }>>;
182
+ }, z.core.$strict>>>;
183
+ limit: z.ZodDefault<z.ZodNumber>;
184
+ offset: z.ZodDefault<z.ZodNumber>;
185
+ include: z.ZodOptional<z.ZodArray<z.ZodString>>;
186
+ locale: z.ZodOptional<z.ZodString>;
187
+ }, z.core.$strict>>>;
188
+ single: z.ZodOptional<z.ZodBoolean>;
189
+ }, z.core.$strict>>>>;
190
+ }, z.core.$catchall<z.ZodUnknown>>;
191
+ ext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
192
+ v: z.ZodNumber;
193
+ }, z.core.$loose>>>;
194
+ }, z.core.$strict>;
195
+ nodes: z.ZodArray<z.ZodType<ComponentNode, unknown, z.core.$ZodTypeInternals<ComponentNode, unknown>>>;
196
+ }, z.core.$strict>;
197
+ export type PageDocument = z.infer<typeof PageDocumentSchema>;
198
+ export type { DataInput };
199
+ /** Depth-first walk over every node, including nodes inside slots. */
200
+ export declare function walkNodes(nodes: readonly ComponentNode[]): Generator<ComponentNode>;
201
+ /** Remove all plugin `ext` data — used when building published documents (blueprint 52 Prepare step 10). */
202
+ export declare function stripExtensions(doc: PageDocument): PageDocument;
203
+ //# sourceMappingURL=page-document.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page-document.d.ts","sourceRoot":"","sources":["../src/page-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MA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mB,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAiBxD,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAOJ,CAAC;AAEzB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAOpB,CAAC;AACZ,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,YAAY,EAAE,SAAS,EAAE,CAAC;AAE1B,sEAAsE;AACtE,wBAAiB,SAAS,CAAC,KAAK,EAAE,SAAS,aAAa,EAAE,GAAG,SAAS,CAAC,aAAa,CAAC,CAKpF;AAED,4GAA4G;AAC5G,wBAAgB,eAAe,CAAC,GAAG,EAAE,YAAY,GAAG,YAAY,CAW/D"}
@@ -0,0 +1,73 @@
1
+ import { z } from "zod";
2
+ import { PageSeoSchema } from "./seo.js";
3
+ import { ClassNameSchema } from "./classes.js";
4
+ import { EventBindingsSchema } from "./events.js";
5
+ import { DataInputsSchema, NodeBindingsSchema } from "./data.js";
6
+ /** Current canonical document schema version. Bump only through an RFC + migration. */
7
+ export const PAGE_DOCUMENT_SCHEMA_VERSION = 1;
8
+ /** Stable node id assigned by the server: `n_` + nanoid (blueprint 31 §5). */
9
+ export const NodeIdSchema = z.string().regex(/^n_[A-Za-z0-9_-]{6,}$/, "node id must look like n_xxxxxx");
10
+ /**
11
+ * Plugin-owned data, namespaced by plugin id, each with its own schema version `v`
12
+ * (blueprint 35 §4). Stripped from published documents.
13
+ */
14
+ export const ExtensionDataSchema = z.record(z.string().regex(/^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)+$/, "ext key must be a plugin id like group.name"), z.looseObject({ v: z.number().int().positive() }));
15
+ export const NodeMetaSchema = z
16
+ .object({ origin: z.enum(["user", "ai", "migration"]).optional() })
17
+ .strict();
18
+ export const ComponentNodeSchema = z.lazy(() => z
19
+ .object({
20
+ id: NodeIdSchema,
21
+ type: z.string().regex(/^[A-Z][A-Za-z0-9]*$/, "component type must be PascalCase"),
22
+ props: z.record(z.string(), z.unknown()),
23
+ className: z.lazy(() => ClassNameSchema).optional(),
24
+ events: z.lazy(() => EventBindingsSchema).optional(),
25
+ bind: z.lazy(() => NodeBindingsSchema).optional(),
26
+ /** Show this block only when the condition holds on the data (ADR-046), e.g. "plans.length > 3". */
27
+ showIf: z.string().trim().min(1).max(500).optional(),
28
+ slots: z.record(z.string(), z.array(ComponentNodeSchema)).optional(),
29
+ dataBinding: z.record(z.string(), z.unknown()).optional(),
30
+ ext: ExtensionDataSchema.optional(),
31
+ meta: NodeMetaSchema.optional(),
32
+ })
33
+ .strict());
34
+ export const RootPropsSchema = z
35
+ .object({
36
+ seo: PageSeoSchema,
37
+ theme: z.string().optional(),
38
+ /** Data inputs this page reads (ADR-034). */
39
+ data: z.lazy(() => DataInputsSchema).optional(),
40
+ })
41
+ .catchall(z.unknown());
42
+ export const PageDocumentSchema = z
43
+ .object({
44
+ schemaVersion: z.literal(PAGE_DOCUMENT_SCHEMA_VERSION),
45
+ locale: z.string().regex(/^[a-z]{2,3}(-[A-Z]{2})?$/, "locale must look like vi or en-SG"),
46
+ root: z.object({ props: RootPropsSchema, ext: ExtensionDataSchema.optional() }).strict(),
47
+ nodes: z.array(ComponentNodeSchema),
48
+ })
49
+ .strict();
50
+ /** Depth-first walk over every node, including nodes inside slots. */
51
+ export function* walkNodes(nodes) {
52
+ for (const node of nodes) {
53
+ yield node;
54
+ if (node.slots)
55
+ for (const children of Object.values(node.slots))
56
+ yield* walkNodes(children);
57
+ }
58
+ }
59
+ /** Remove all plugin `ext` data — used when building published documents (blueprint 52 Prepare step 10). */
60
+ export function stripExtensions(doc) {
61
+ const strip = (n) => {
62
+ const { ext: _ext, slots, ...rest } = n;
63
+ return slots
64
+ ? { ...rest, slots: Object.fromEntries(Object.entries(slots).map(([k, v]) => [k, v.map(strip)])) }
65
+ : rest;
66
+ };
67
+ const { ext: _rootExt, ...root } = doc.root;
68
+ // Data samples are for the editor only (ADR-034).
69
+ if (Array.isArray(root.props.data))
70
+ root.props = { ...root.props, data: root.props.data.map(({ sample: _s, ...d }) => d) };
71
+ return { ...doc, root, nodes: doc.nodes.map(strip) };
72
+ }
73
+ //# sourceMappingURL=page-document.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page-document.js","sourceRoot":"","sources":["../src/page-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAqC,MAAM,WAAW,CAAC;AAEpG,uFAAuF;AACvF,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAU,CAAC;AAEvD,8EAA8E;AAC9E,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,uBAAuB,EAAE,iCAAiC,CAAC,CAAC;AAEzG;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CACzC,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,uCAAuC,EAAE,6CAA6C,CAAC,EACxG,CAAC,CAAC,WAAW,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAClD,CAAC;AAGF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC;KAC5B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC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IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,CAAC,CAAC;QACxC,OAAO,KAAK;YACV,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE;YAClG,CAAC,CAAC,IAAI,CAAC;IACX,CAAC,CAAC;IACF,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC;IAC5C,kDAAkD;IAClD,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;QAAE,IAAI,CAAC,KAAK,GAAG,EAAE,GAAG,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC3H,OAAO,EAAE,GAAG,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;AACvD,CAAC"}
@@ -0,0 +1,353 @@
1
+ import { z } from "zod";
2
+ /** Published API contract `/v1` (blueprint 71 §3). Shared by apps/delivery-api and the SDK. */
3
+ export declare const PUBLISHED_API_VERSION: "v1";
4
+ export declare const ReleaseRefSchema: z.ZodObject<{
5
+ id: z.ZodString;
6
+ sequence: z.ZodNumber;
7
+ manifestHash: z.ZodString;
8
+ }, z.core.$strip>;
9
+ export declare const ResolvedPageSchema: z.ZodObject<{
10
+ project: z.ZodObject<{
11
+ id: z.ZodString;
12
+ }, z.core.$strip>;
13
+ release: z.ZodObject<{
14
+ id: z.ZodString;
15
+ sequence: z.ZodNumber;
16
+ manifestHash: z.ZodString;
17
+ }, z.core.$strip>;
18
+ locale: z.ZodObject<{
19
+ requested: z.ZodString;
20
+ content: z.ZodString;
21
+ dir: z.ZodOptional<z.ZodEnum<{
22
+ ltr: "ltr";
23
+ rtl: "rtl";
24
+ }>>;
25
+ }, z.core.$strip>;
26
+ page: z.ZodObject<{
27
+ pageKey: z.ZodString;
28
+ slug: z.ZodString;
29
+ artifactId: z.ZodString;
30
+ versionId: z.ZodString;
31
+ versionNumber: z.ZodNumber;
32
+ schemaVersion: z.ZodNumber;
33
+ document: z.ZodObject<{
34
+ schemaVersion: z.ZodLiteral<1>;
35
+ locale: z.ZodString;
36
+ root: z.ZodObject<{
37
+ props: z.ZodObject<{
38
+ seo: z.ZodObject<{
39
+ slug: z.ZodString;
40
+ title: z.ZodString;
41
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ canonical: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ robots: z.ZodOptional<z.ZodNullable<z.ZodObject<{
44
+ index: z.ZodBoolean;
45
+ follow: z.ZodBoolean;
46
+ }, z.core.$strict>>>;
47
+ og: z.ZodOptional<z.ZodObject<{
48
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ image: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
51
+ url: z.ZodString;
52
+ alt: z.ZodOptional<z.ZodString>;
53
+ width: z.ZodOptional<z.ZodNumber>;
54
+ height: z.ZodOptional<z.ZodNumber>;
55
+ assetId: z.ZodOptional<z.ZodString>;
56
+ }, z.core.$strict>, z.ZodObject<{
57
+ assetId: z.ZodString;
58
+ alt: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
59
+ decorative: z.ZodOptional<z.ZodBoolean>;
60
+ focal: z.ZodOptional<z.ZodObject<{
61
+ x: z.ZodNumber;
62
+ y: z.ZodNumber;
63
+ }, z.core.$strict>>;
64
+ }, z.core.$strict>]>>>;
65
+ }, z.core.$strict>>;
66
+ structuredData: z.ZodOptional<z.ZodArray<z.ZodObject<{
67
+ template: z.ZodEnum<{
68
+ Article: "Article";
69
+ BreadcrumbList: "BreadcrumbList";
70
+ Event: "Event";
71
+ FAQPage: "FAQPage";
72
+ Offer: "Offer";
73
+ Organization: "Organization";
74
+ Product: "Product";
75
+ }>;
76
+ fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
77
+ }, z.core.$strict>>>;
78
+ }, z.core.$strict>;
79
+ theme: z.ZodOptional<z.ZodString>;
80
+ data: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
81
+ name: z.ZodString;
82
+ label: z.ZodOptional<z.ZodString>;
83
+ source: z.ZodDefault<z.ZodEnum<{
84
+ app: "app";
85
+ table: "table";
86
+ }>>;
87
+ shape: z.ZodEnum<{
88
+ list: "list";
89
+ object: "object";
90
+ }>;
91
+ fields: z.ZodArray<z.ZodType<import("./data.js").DataField, unknown, z.core.$ZodTypeInternals<import("./data.js").DataField, unknown>>>;
92
+ sample: z.ZodOptional<z.ZodUnknown>;
93
+ query: z.ZodOptional<z.ZodLazy<z.ZodObject<{
94
+ table: z.ZodString;
95
+ where: z.ZodOptional<z.ZodType<import("./tables.js").Filter, unknown, z.core.$ZodTypeInternals<import("./tables.js").Filter, unknown>>>;
96
+ sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
97
+ field: z.ZodString;
98
+ dir: z.ZodDefault<z.ZodEnum<{
99
+ asc: "asc";
100
+ desc: "desc";
101
+ }>>;
102
+ }, z.core.$strict>>>;
103
+ limit: z.ZodDefault<z.ZodNumber>;
104
+ offset: z.ZodDefault<z.ZodNumber>;
105
+ include: z.ZodOptional<z.ZodArray<z.ZodString>>;
106
+ locale: z.ZodOptional<z.ZodString>;
107
+ }, z.core.$strict>>>;
108
+ single: z.ZodOptional<z.ZodBoolean>;
109
+ }, z.core.$strict>>>>;
110
+ }, z.core.$catchall<z.ZodUnknown>>;
111
+ ext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
112
+ v: z.ZodNumber;
113
+ }, z.core.$loose>>>;
114
+ }, z.core.$strict>;
115
+ nodes: z.ZodArray<z.ZodType<import("./page-document.js").ComponentNode, unknown, z.core.$ZodTypeInternals<import("./page-document.js").ComponentNode, unknown>>>;
116
+ }, z.core.$strict>;
117
+ }, z.core.$strip>;
118
+ seo: z.ZodObject<{
119
+ slug: z.ZodString;
120
+ title: z.ZodString;
121
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
+ canonical: z.ZodOptional<z.ZodNullable<z.ZodString>>;
123
+ robots: z.ZodOptional<z.ZodNullable<z.ZodObject<{
124
+ index: z.ZodBoolean;
125
+ follow: z.ZodBoolean;
126
+ }, z.core.$strict>>>;
127
+ og: z.ZodOptional<z.ZodObject<{
128
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
129
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
130
+ image: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
131
+ url: z.ZodString;
132
+ alt: z.ZodOptional<z.ZodString>;
133
+ width: z.ZodOptional<z.ZodNumber>;
134
+ height: z.ZodOptional<z.ZodNumber>;
135
+ assetId: z.ZodOptional<z.ZodString>;
136
+ }, z.core.$strict>, z.ZodObject<{
137
+ assetId: z.ZodString;
138
+ alt: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
139
+ decorative: z.ZodOptional<z.ZodBoolean>;
140
+ focal: z.ZodOptional<z.ZodObject<{
141
+ x: z.ZodNumber;
142
+ y: z.ZodNumber;
143
+ }, z.core.$strict>>;
144
+ }, z.core.$strict>]>>>;
145
+ }, z.core.$strict>>;
146
+ structuredData: z.ZodOptional<z.ZodArray<z.ZodObject<{
147
+ template: z.ZodEnum<{
148
+ Article: "Article";
149
+ BreadcrumbList: "BreadcrumbList";
150
+ Event: "Event";
151
+ FAQPage: "FAQPage";
152
+ Offer: "Offer";
153
+ Organization: "Organization";
154
+ Product: "Product";
155
+ }>;
156
+ fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
157
+ }, z.core.$strict>>>;
158
+ }, z.core.$strict>;
159
+ alternates: z.ZodOptional<z.ZodArray<z.ZodObject<{
160
+ locale: z.ZodString;
161
+ slug: z.ZodString;
162
+ }, z.core.$strip>>>;
163
+ defaultLocale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
164
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
165
+ design: z.ZodOptional<z.ZodNullable<z.ZodObject<{
166
+ vars: z.ZodRecord<z.ZodString, z.ZodString>;
167
+ themes: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
168
+ fonts: z.ZodArray<z.ZodObject<{
169
+ family: z.ZodString;
170
+ faces: z.ZodArray<z.ZodObject<{
171
+ weight: z.ZodNumber;
172
+ style: z.ZodEnum<{
173
+ italic: "italic";
174
+ normal: "normal";
175
+ }>;
176
+ url: z.ZodString;
177
+ format: z.ZodEnum<{
178
+ opentype: "opentype";
179
+ truetype: "truetype";
180
+ woff: "woff";
181
+ woff2: "woff2";
182
+ }>;
183
+ unicodeRange: z.ZodOptional<z.ZodString>;
184
+ }, z.core.$strict>>;
185
+ }, z.core.$strip>>;
186
+ }, z.core.$strip>>>;
187
+ styles: z.ZodOptional<z.ZodNullable<z.ZodString>>;
188
+ compatibility: z.ZodObject<{
189
+ schemaVersion: z.ZodNumber;
190
+ minimumSdkVersion: z.ZodString;
191
+ }, z.core.$strip>;
192
+ }, z.core.$strip>;
193
+ export type ResolvedPage = z.infer<typeof ResolvedPageSchema>;
194
+ export declare const PageListSchema: z.ZodObject<{
195
+ release: z.ZodObject<{
196
+ id: z.ZodString;
197
+ sequence: z.ZodNumber;
198
+ manifestHash: z.ZodString;
199
+ }, z.core.$strip>;
200
+ pages: z.ZodArray<z.ZodObject<{
201
+ pageKey: z.ZodString;
202
+ locale: z.ZodString;
203
+ slug: z.ZodString;
204
+ }, z.core.$strip>>;
205
+ }, z.core.$strip>;
206
+ export type PageList = z.infer<typeof PageListSchema>;
207
+ export declare const ApiErrorSchema: z.ZodObject<{
208
+ error: z.ZodObject<{
209
+ code: z.ZodString;
210
+ message: z.ZodString;
211
+ }, z.core.$strip>;
212
+ }, z.core.$strip>;
213
+ /** `GET /v1/projects/:projectId/components/:id/resolved` — a composed component pinned by the current release (ADR-028). */
214
+ export declare const ResolvedComponentSchema: z.ZodObject<{
215
+ project: z.ZodObject<{
216
+ id: z.ZodString;
217
+ }, z.core.$strip>;
218
+ release: z.ZodObject<{
219
+ id: z.ZodString;
220
+ sequence: z.ZodNumber;
221
+ manifestHash: z.ZodString;
222
+ }, z.core.$strip>;
223
+ component: z.ZodObject<{
224
+ id: z.ZodString;
225
+ versionId: z.ZodString;
226
+ versionNumber: z.ZodNumber;
227
+ document: z.ZodObject<{
228
+ schemaVersion: z.ZodLiteral<1>;
229
+ nodes: z.ZodArray<z.ZodType<import("./page-document.js").ComponentNode, unknown, z.core.$ZodTypeInternals<import("./page-document.js").ComponentNode, unknown>>>;
230
+ props: z.ZodDefault<z.ZodArray<z.ZodObject<{
231
+ name: z.ZodString;
232
+ label: z.ZodString;
233
+ type: z.ZodEnum<{
234
+ boolean: "boolean";
235
+ icon: "icon";
236
+ image: "image";
237
+ link: "link";
238
+ number: "number";
239
+ select: "select";
240
+ text: "text";
241
+ textarea: "textarea";
242
+ }>;
243
+ binds: z.ZodArray<z.ZodObject<{
244
+ nodeId: z.ZodString;
245
+ prop: z.ZodString;
246
+ }, z.core.$strict>>;
247
+ required: z.ZodOptional<z.ZodBoolean>;
248
+ options: z.ZodOptional<z.ZodArray<z.ZodString>>;
249
+ }, z.core.$strict>>>;
250
+ defaultLocale: z.ZodString;
251
+ translations: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
252
+ theme: z.ZodOptional<z.ZodString>;
253
+ data: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
254
+ name: z.ZodString;
255
+ label: z.ZodOptional<z.ZodString>;
256
+ source: z.ZodDefault<z.ZodEnum<{
257
+ app: "app";
258
+ table: "table";
259
+ }>>;
260
+ shape: z.ZodEnum<{
261
+ list: "list";
262
+ object: "object";
263
+ }>;
264
+ fields: z.ZodArray<z.ZodType<import("./data.js").DataField, unknown, z.core.$ZodTypeInternals<import("./data.js").DataField, unknown>>>;
265
+ sample: z.ZodOptional<z.ZodUnknown>;
266
+ query: z.ZodOptional<z.ZodLazy<z.ZodObject<{
267
+ table: z.ZodString;
268
+ where: z.ZodOptional<z.ZodType<import("./tables.js").Filter, unknown, z.core.$ZodTypeInternals<import("./tables.js").Filter, unknown>>>;
269
+ sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
270
+ field: z.ZodString;
271
+ dir: z.ZodDefault<z.ZodEnum<{
272
+ asc: "asc";
273
+ desc: "desc";
274
+ }>>;
275
+ }, z.core.$strict>>>;
276
+ limit: z.ZodDefault<z.ZodNumber>;
277
+ offset: z.ZodDefault<z.ZodNumber>;
278
+ include: z.ZodOptional<z.ZodArray<z.ZodString>>;
279
+ locale: z.ZodOptional<z.ZodString>;
280
+ }, z.core.$strict>>>;
281
+ single: z.ZodOptional<z.ZodBoolean>;
282
+ }, z.core.$strict>>>>;
283
+ disabledLocales: z.ZodOptional<z.ZodArray<z.ZodString>>;
284
+ childrenSlot: z.ZodOptional<z.ZodObject<{
285
+ nodeId: z.ZodString;
286
+ slot: z.ZodString;
287
+ }, z.core.$strict>>;
288
+ }, z.core.$strict>;
289
+ }, z.core.$strip>;
290
+ design: z.ZodOptional<z.ZodNullable<z.ZodObject<{
291
+ vars: z.ZodRecord<z.ZodString, z.ZodString>;
292
+ themes: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
293
+ fonts: z.ZodArray<z.ZodObject<{
294
+ family: z.ZodString;
295
+ faces: z.ZodArray<z.ZodObject<{
296
+ weight: z.ZodNumber;
297
+ style: z.ZodEnum<{
298
+ italic: "italic";
299
+ normal: "normal";
300
+ }>;
301
+ url: z.ZodString;
302
+ format: z.ZodEnum<{
303
+ opentype: "opentype";
304
+ truetype: "truetype";
305
+ woff: "woff";
306
+ woff2: "woff2";
307
+ }>;
308
+ unicodeRange: z.ZodOptional<z.ZodString>;
309
+ }, z.core.$strict>>;
310
+ }, z.core.$strip>>;
311
+ }, z.core.$strip>>>;
312
+ styles: z.ZodOptional<z.ZodNullable<z.ZodString>>;
313
+ locales: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodObject<{
314
+ name: z.ZodString;
315
+ nativeName: z.ZodString;
316
+ dir: z.ZodEnum<{
317
+ ltr: "ltr";
318
+ rtl: "rtl";
319
+ }>;
320
+ }, z.core.$strip>>>>>;
321
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
322
+ }, z.core.$strip>;
323
+ export type ResolvedComponent = z.infer<typeof ResolvedComponentSchema>;
324
+ /** `GET /v1/projects/:projectId/classes` — Tailwind classes used by the current release (for apps that build their own CSS). */
325
+ export declare const ReleaseClassesSchema: z.ZodObject<{
326
+ release: z.ZodObject<{
327
+ id: z.ZodString;
328
+ sequence: z.ZodNumber;
329
+ manifestHash: z.ZodString;
330
+ }, z.core.$strip>;
331
+ classes: z.ZodArray<z.ZodString>;
332
+ }, z.core.$strip>;
333
+ export type ReleaseClasses = z.infer<typeof ReleaseClassesSchema>;
334
+ /** `GET /v1/projects/:projectId/locales` — languages of the current release (ADR-035). */
335
+ export declare const LocaleListSchema: z.ZodObject<{
336
+ release: z.ZodObject<{
337
+ id: z.ZodString;
338
+ sequence: z.ZodNumber;
339
+ manifestHash: z.ZodString;
340
+ }, z.core.$strip>;
341
+ defaultLocale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
342
+ locales: z.ZodArray<z.ZodObject<{
343
+ code: z.ZodString;
344
+ name: z.ZodString;
345
+ nativeName: z.ZodString;
346
+ dir: z.ZodEnum<{
347
+ ltr: "ltr";
348
+ rtl: "rtl";
349
+ }>;
350
+ }, z.core.$strip>>;
351
+ }, z.core.$strip>;
352
+ export type LocaleList = z.infer<typeof LocaleListSchema>;
353
+ //# sourceMappingURL=published.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"published.d.ts","sourceRoot":"","sources":["../src/published.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,+FAA+F;AAC/F,eAAO,MAAM,qBAAqB,EAAG,IAAa,CAAC;AAEnD,eAAO,MAAM,gBAAgB;;;;iBAI3B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0B7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,cAAc;;;;;;;;;;;iBAGzB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,cAAc;;;;;iBAA2E,CAAC;AAEvG,4HAA4H;AAC5H,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK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