@embedpdf/engine-core 3.0.0-next.13 → 3.0.0-next.15
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/AnnotationList-CkijRHet.d.cts +27163 -0
- package/dist/AnnotationList-CkijRHet.d.ts +27163 -0
- package/dist/Change-CKoxfTNY.js +889 -0
- package/dist/Change-CKoxfTNY.js.map +1 -0
- package/dist/Change-CjImsrN0.cjs +1020 -0
- package/dist/Change-CjImsrN0.cjs.map +1 -0
- package/dist/DocumentRenderService-BfFdFSwI.cjs +120 -0
- package/dist/DocumentRenderService-BfFdFSwI.cjs.map +1 -0
- package/dist/DocumentRenderService-DV3J9lMz.js +85 -0
- package/dist/DocumentRenderService-DV3J9lMz.js.map +1 -0
- package/dist/{DocumentSecurityService-_JRjqvoI.d.ts → DocumentSecurityService-CU1M6Q7m.d.ts} +100 -112
- package/dist/{DocumentSecurityService-ClTZc0zO.d.cts → DocumentSecurityService-e6vp2de8.d.cts} +100 -112
- package/dist/LocalDocumentHandle-D02FMm-Z.cjs +53 -0
- package/dist/LocalDocumentHandle-D02FMm-Z.cjs.map +1 -0
- package/dist/LocalDocumentHandle-DAPdaOt_.js +30 -0
- package/dist/LocalDocumentHandle-DAPdaOt_.js.map +1 -0
- package/dist/LocalEngine-DFoBm4B3.d.cts +1565 -0
- package/dist/LocalEngine-DPriFujS.d.ts +1565 -0
- package/dist/PageInsertBlankInput-CXHAM7l6.cjs +17 -0
- package/dist/PageInsertBlankInput-CXHAM7l6.cjs.map +1 -0
- package/dist/PageInsertBlankInput-DhVYVJ_S.js +12 -0
- package/dist/PageInsertBlankInput-DhVYVJ_S.js.map +1 -0
- package/dist/authority-B3BklsB4.js +2239 -0
- package/dist/authority-B3BklsB4.js.map +1 -0
- package/dist/authority-DLMNR7ff.cjs +2676 -0
- package/dist/authority-DLMNR7ff.cjs.map +1 -0
- package/dist/builders-CNj0POeY.js +161 -0
- package/dist/builders-CNj0POeY.js.map +1 -0
- package/dist/builders-Cgdp_YCn.cjs +184 -0
- package/dist/builders-Cgdp_YCn.cjs.map +1 -0
- package/dist/calibrate-7T3fnP8-.js +2404 -0
- package/dist/calibrate-7T3fnP8-.js.map +1 -0
- package/dist/calibrate-DJBXnhLE.cjs +2919 -0
- package/dist/calibrate-DJBXnhLE.cjs.map +1 -0
- package/dist/charmap-Cprti1ta.js +239 -0
- package/dist/charmap-Cprti1ta.js.map +1 -0
- package/dist/charmap-aYlefQP9.cjs +304 -0
- package/dist/charmap-aYlefQP9.cjs.map +1 -0
- package/dist/conformance.cjs +16753 -5247
- package/dist/conformance.cjs.map +1 -1
- package/dist/conformance.d.cts +928 -165
- package/dist/conformance.d.ts +928 -165
- package/dist/conformance.js +16731 -5268
- package/dist/conformance.js.map +1 -1
- package/dist/format-Bp3QFSH1.cjs +574 -0
- package/dist/format-Bp3QFSH1.cjs.map +1 -0
- package/dist/format-Dgg428Kb.js +461 -0
- package/dist/format-Dgg428Kb.js.map +1 -0
- package/dist/index.cjs +330 -103
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +14 -5
- package/dist/pageRefs-B3ur7Ckm.cjs +51 -0
- package/dist/pageRefs-B3ur7Ckm.cjs.map +1 -0
- package/dist/pageRefs-DkbuxSCV.js +40 -0
- package/dist/pageRefs-DkbuxSCV.js.map +1 -0
- package/dist/public.cjs +57 -0
- package/dist/public.d.cts +5 -0
- package/dist/public.d.ts +5 -0
- package/dist/public.js +9 -0
- package/dist/resolveAnnotationDraft-7Ke4nV7F.cjs +3646 -0
- package/dist/resolveAnnotationDraft-7Ke4nV7F.cjs.map +1 -0
- package/dist/resolveAnnotationDraft-CUpf0SMh.js +3167 -0
- package/dist/resolveAnnotationDraft-CUpf0SMh.js.map +1 -0
- package/dist/{resolver-inAVzsWt.js → resolver-CzxmD9Ck.js} +294 -144
- package/dist/resolver-CzxmD9Ck.js.map +1 -0
- package/dist/{resolver-CYVNV4hn.cjs → resolver-D2OCtE8F.cjs} +347 -143
- package/dist/resolver-D2OCtE8F.cjs.map +1 -0
- package/dist/runtime-Cl0v56mm.d.ts +2032 -0
- package/dist/runtime-p1WDzDo4.d.cts +2032 -0
- package/dist/runtime.cjs +733 -284
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.d.cts +5 -1348
- package/dist/runtime.d.ts +5 -1348
- package/dist/runtime.js +396 -179
- package/dist/runtime.js.map +1 -1
- package/dist/schema-C-gU4vj7.cjs +3034 -0
- package/dist/schema-C-gU4vj7.cjs.map +1 -0
- package/dist/schema-DzlUNk38.js +2081 -0
- package/dist/schema-DzlUNk38.js.map +1 -0
- package/dist/schemas-Berf1swF.cjs +2481 -0
- package/dist/schemas-Berf1swF.cjs.map +1 -0
- package/dist/schemas-D6xOGjqg.js +1654 -0
- package/dist/schemas-D6xOGjqg.js.map +1 -0
- package/dist/subtype-CG4WpIRj.js +129 -0
- package/dist/subtype-CG4WpIRj.js.map +1 -0
- package/dist/subtype-aDt5TFmK.cjs +158 -0
- package/dist/subtype-aDt5TFmK.cjs.map +1 -0
- package/dist/validation.cjs +578 -0
- package/dist/validation.cjs.map +1 -0
- package/dist/validation.d.cts +174 -0
- package/dist/validation.d.ts +174 -0
- package/dist/validation.js +571 -0
- package/dist/validation.js.map +1 -0
- package/dist/value-BFS1R8ek.cjs +435 -0
- package/dist/value-BFS1R8ek.cjs.map +1 -0
- package/dist/value-Dhc8eYcx.js +340 -0
- package/dist/value-Dhc8eYcx.js.map +1 -0
- package/dist/viewport-BJW13EGZ.js +540 -0
- package/dist/viewport-BJW13EGZ.js.map +1 -0
- package/dist/viewport-DlL5Bxbg.cjs +671 -0
- package/dist/viewport-DlL5Bxbg.cjs.map +1 -0
- package/dist/wire.cjs +1056 -379
- package/dist/wire.cjs.map +1 -1
- package/dist/wire.d.cts +15069 -725
- package/dist/wire.d.ts +15069 -725
- package/dist/wire.js +825 -239
- package/dist/wire.js.map +1 -1
- package/package.json +10 -1
- package/dist/AbortError-Cq2igpZ6.cjs +0 -38
- package/dist/AbortError-Cq2igpZ6.cjs.map +0 -1
- package/dist/AbortError-DHqPBnYc.js +0 -27
- package/dist/AbortError-DHqPBnYc.js.map +0 -1
- package/dist/AnnotationListSnapshot-D3mFut1e.d.cts +0 -6871
- package/dist/AnnotationListSnapshot-D3mFut1e.d.ts +0 -6871
- package/dist/Engine-Bx0NOfmd.d.cts +0 -1264
- package/dist/Engine-DxtpCYcP.d.ts +0 -1264
- package/dist/PageInsertBlankInput-CqXBmFhN.cjs +0 -449
- package/dist/PageInsertBlankInput-CqXBmFhN.cjs.map +0 -1
- package/dist/PageInsertBlankInput-cHq9-i-z.js +0 -378
- package/dist/PageInsertBlankInput-cHq9-i-z.js.map +0 -1
- package/dist/builders-Bqm8yTpi.cjs +0 -3564
- package/dist/builders-Bqm8yTpi.cjs.map +0 -1
- package/dist/builders-Dqo2X-dt.js +0 -3121
- package/dist/builders-Dqo2X-dt.js.map +0 -1
- package/dist/fold-2V29cxCV.cjs +0 -447
- package/dist/fold-2V29cxCV.cjs.map +0 -1
- package/dist/fold-CdEJTBTn.js +0 -334
- package/dist/fold-CdEJTBTn.js.map +0 -1
- package/dist/resolver-CYVNV4hn.cjs.map +0 -1
- package/dist/resolver-inAVzsWt.js.map +0 -1
- package/dist/schemas-BLARNCgx.js +0 -3113
- package/dist/schemas-BLARNCgx.js.map +0 -1
- package/dist/schemas-DIqFMmrC.cjs +0 -4468
- package/dist/schemas-DIqFMmrC.cjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-C-gU4vj7.cjs","names":["z","z","z","STANDARD_FONTS","z","z","PAGE_SPACE","z","z","z","z","validNumberFormat","z","PdfAnnotationSubtypeCode","PdfAnnotationSubtypeCode","z","z","z","z","PdfAnnotationSubtypeCode","z","z","PdfAnnotationSubtypeCode","PdfAnnotationSubtypeCode","z","PdfAnnotationSubtypeCode","z","PdfAnnotationSubtypeCode","PdfAnnotationSubtypeCode","z","PdfAnnotationSubtypeCode","z","PdfAnnotationSubtypeCode","z","PdfAnnotationSubtypeCode","z","PdfAnnotationSubtypeCode","PdfAnnotationSubtypeCode","PdfAnnotationSubtypeCode","z","z","PdfAnnotationSubtypeCode","PdfAnnotationSubtypeCode","z","z","PdfAnnotationSubtypeCode","PdfAnnotationSubtypeCode","z","z","PdfAnnotationSubtypeCode","z","z","PdfAnnotationSubtypeCode","z","z","z"],"sources":["../src/identity/PageRef.schema.ts","../src/geometry/schemas.ts","../src/annotation/base.schema.ts","../src/dto/PdfDestination.schema.ts","../src/annotation/kinds/link/values.ts","../src/dto/PdfAction.schema.ts","../src/annotation/declaration.ts","../src/dto/IsoDateTime.schema.ts","../src/dto/Measure.schema.ts","../src/annotation/kinds/shared-fields.ts","../src/annotation/kinds/caret/declaration.ts","../src/annotation/kinds/caret/index.ts","../src/annotation/kinds/circle/declaration.ts","../src/annotation/kinds/circle/index.ts","../src/wire/resourceKeys.ts","../src/dto/Attachment.schema.ts","../src/annotation/kinds/file-attachment/values.ts","../src/annotation/kinds/file-attachment/declaration.ts","../src/annotation/kinds/file-attachment/index.ts","../src/annotation/kinds/free-text/values.ts","../src/annotation/kinds/free-text/declaration.ts","../src/annotation/kinds/free-text/index.ts","../src/annotation/kinds/highlight/declaration.ts","../src/annotation/kinds/highlight/index.ts","../src/annotation/kinds/ink/declaration.ts","../src/annotation/kinds/ink/index.ts","../src/annotation/kinds/line/declaration.ts","../src/annotation/kinds/line/index.ts","../src/annotation/kinds/link/declaration.ts","../src/annotation/kinds/link/index.ts","../src/annotation/kinds/polygon/declaration.ts","../src/annotation/kinds/polygon/index.ts","../src/annotation/kinds/polyline/declaration.ts","../src/annotation/kinds/polyline/index.ts","../src/annotation/kinds/popup/declaration.ts","../src/annotation/kinds/popup/index.ts","../src/annotation/kinds/redact/declaration.ts","../src/annotation/kinds/redact/index.ts","../src/annotation/kinds/square/declaration.ts","../src/annotation/kinds/square/index.ts","../src/annotation/kinds/squiggly/declaration.ts","../src/annotation/kinds/squiggly/index.ts","../src/annotation/kinds/stamp/values.ts","../src/annotation/kinds/stamp/declaration.ts","../src/annotation/kinds/stamp/index.ts","../src/annotation/kinds/strikeout/declaration.ts","../src/annotation/kinds/strikeout/index.ts","../src/annotation/kinds/text/values.ts","../src/annotation/kinds/text/declaration.ts","../src/annotation/kinds/text/index.ts","../src/annotation/kinds/underline/declaration.ts","../src/annotation/kinds/underline/index.ts","../src/annotation/kinds/unsupported/declaration.ts","../src/annotation/kinds/unsupported/index.ts","../src/identity/FormFieldRef.schema.ts","../src/annotation/kinds/widget/declaration.ts","../src/annotation/kinds/widget/index.ts","../src/annotation/kinds/declarations.ts","../src/annotation/kinds/widget.shared.ts","../src/annotation/kinds/index.ts","../src/forms/schema.ts"],"sourcesContent":["import { z } from 'zod';\nimport type { PageRef } from './PageRef';\n\n/** Wire form of `PageRef` — see the type. */\nexport const PageRefSchema: z.ZodType<PageRef> = z.object({\n kind: z.literal('objectNumber'),\n objectNumber: z.number().int().positive(),\n});\n","/**\n * Zod schemas for engine PDF-document geometry. Exported from `wire.ts` only\n * (never from `shared.ts`/`runtime`) so the zod-free runtime stays zod-free.\n */\n\nimport { z } from 'zod';\n\nimport type { PageBox, PagePoint, PageQuad } from './pageSpace';\nimport type {\n CalloutLine,\n InkList,\n LinePoints,\n PdfPoint,\n PdfQuad,\n PdfRect,\n PdfRotation,\n PdfSize,\n} from './primitives';\n\nexport const PdfPointSchema: z.ZodType<PdfPoint> = z.object({\n x: z.number(),\n y: z.number(),\n});\n\nexport const LinePointsSchema: z.ZodType<LinePoints> = z.object({\n start: PdfPointSchema,\n end: PdfPointSchema,\n});\n\n/** `/CL` callout leader line — two points (straight) or three (knee-jointed). */\nexport const CalloutLineSchema: z.ZodType<CalloutLine> = z.union([\n z.tuple([PdfPointSchema, PdfPointSchema]),\n z.tuple([PdfPointSchema, PdfPointSchema, PdfPointSchema]),\n]);\n\n/** `/InkList` — an array of strokes, each an array of points. */\nexport const InkListSchema: z.ZodType<InkList> = z.array(z.array(PdfPointSchema));\n\n/** A rect's edges are finite, as `isFinitePdfRect` checks them on the page. */\nexport const PdfRectSchema: z.ZodType<PdfRect> = z.object({\n left: z.number().finite(),\n bottom: z.number().finite(),\n right: z.number().finite(),\n top: z.number().finite(),\n});\n\nexport const PdfSizeSchema: z.ZodType<PdfSize> = z.object({\n width: z.number().nonnegative(),\n height: z.number().nonnegative(),\n});\n\nexport const PdfQuadSchema: z.ZodType<PdfQuad> = z.object({\n upperLeft: PdfPointSchema,\n upperRight: PdfPointSchema,\n lowerLeft: PdfPointSchema,\n lowerRight: PdfPointSchema,\n});\n\nexport const PdfRotationSchema: z.ZodType<PdfRotation> = z.union([\n z.literal(0),\n z.literal(90),\n z.literal(180),\n z.literal(270),\n]);\n\n// ── page space ──\n\nexport const PagePointSchema: z.ZodType<PagePoint> = z.object({\n x: z.number(),\n y: z.number(),\n});\n\n/** A box is finite, as a rect is (`PdfRectSchema`). */\nexport const PageBoxSchema: z.ZodType<PageBox> = z.object({\n x: z.number().finite(),\n y: z.number().finite(),\n width: z.number().finite().nonnegative(),\n height: z.number().finite().nonnegative(),\n});\n\nexport const PageQuadSchema: z.ZodType<PageQuad> = z.object({\n upperLeft: PagePointSchema,\n upperRight: PagePointSchema,\n lowerLeft: PagePointSchema,\n lowerRight: PagePointSchema,\n});\n","import { PageRefSchema } from '../identity/PageRef.schema';\nimport { z } from 'zod';\n\nimport type {\n AnnotationBorderStyle,\n BlendMode,\n CaretIntent,\n Color,\n DrawnBorderStyle,\n FreeTextIntent,\n InkIntent,\n LineEnding,\n LineEndings,\n StandardFont,\n StrikeoutIntent,\n TextAlignment,\n VerticalAlignment,\n WidgetBorderStyle,\n WidgetCheckStyle,\n} from './primitives';\nimport { STANDARD_FONTS } from './primitives';\nimport { PdfPointSchema, PdfRectSchema } from '../geometry/schemas';\nimport type { AnnotationRef } from '../identity/AnnotationRef';\n\n/** @deprecated Use `PdfPointSchema` from `../geometry/schemas`. */\nexport const PointSchema = PdfPointSchema;\n/** @deprecated Use `PdfRectSchema` from `../geometry/schemas`. */\nexport const RectSchema = PdfRectSchema;\n\nexport const ColorSchema: z.ZodType<Color> = z\n .string()\n .regex(/^#[0-9a-fA-F]{6}$/, \"expected a color as '#rrggbb'\");\n\nexport const AnnotationBorderStyleSchema: z.ZodType<AnnotationBorderStyle> = z.enum([\n 'solid',\n 'dashed',\n 'beveled',\n 'inset',\n]);\n\nexport const WidgetBorderStyleSchema: z.ZodType<WidgetBorderStyle> = z.enum([\n 'solid',\n 'dashed',\n 'beveled',\n 'inset',\n 'underline',\n]);\n\nexport const WidgetCheckStyleSchema: z.ZodType<WidgetCheckStyle> = z.enum([\n 'check',\n 'cross',\n 'star',\n 'circle',\n 'square',\n 'diamond',\n]);\n\n/** What a write takes for a border that isn't a widget's. */\nexport const DrawnBorderStyleSchema: z.ZodType<DrawnBorderStyle> = z.enum(['solid', 'dashed']);\n\nexport const LineEndingSchema: z.ZodType<LineEnding> = z.enum([\n 'none',\n 'square',\n 'circle',\n 'diamond',\n 'open-arrow',\n 'closed-arrow',\n 'butt',\n 'r-open-arrow',\n 'r-closed-arrow',\n 'slash',\n]);\n\nexport const LineEndingsSchema: z.ZodType<LineEndings> = z.object({\n start: LineEndingSchema,\n end: LineEndingSchema,\n});\n\nexport const StandardFontSchema: z.ZodType<StandardFont> = z.enum(STANDARD_FONTS);\n\nexport const TextAlignmentSchema: z.ZodType<TextAlignment> = z.enum(['left', 'center', 'right']);\n\nexport const FreeTextIntentSchema: z.ZodType<FreeTextIntent> = z.enum([\n 'free-text',\n 'free-text-callout',\n 'free-text-typewriter',\n]);\n\n/** The intents a write makes: a typewriter is only sent back as read. */\nexport const FreeTextIntentWriteSchema: z.ZodType<Exclude<FreeTextIntent, 'free-text-typewriter'>> =\n z.enum(['free-text', 'free-text-callout']);\n\nexport const VerticalAlignmentSchema: z.ZodType<VerticalAlignment> = z.enum([\n 'top',\n 'middle',\n 'bottom',\n]);\n\nexport const CaretIntentSchema: z.ZodType<CaretIntent> = z.literal('replace');\n\nexport const StrikeoutIntentSchema: z.ZodType<StrikeoutIntent> = z.literal('strikeout-text-edit');\n\nexport const InkIntentSchema: z.ZodType<InkIntent> = z.literal('ink-highlight');\n\nexport const BlendModeSchema: z.ZodType<BlendMode> = z.enum([\n 'normal',\n 'multiply',\n 'screen',\n 'overlay',\n 'darken',\n 'lighten',\n 'color-dodge',\n 'color-burn',\n 'hard-light',\n 'soft-light',\n 'difference',\n 'exclusion',\n 'hue',\n 'saturation',\n 'color',\n 'luminosity',\n]);\n\nexport const AnnotationRefSchema: z.ZodType<AnnotationRef> = z.discriminatedUnion('kind', [\n z.object({\n kind: z.literal('objectNumber'),\n page: PageRefSchema,\n objectNumber: z.number().int().positive(),\n }),\n z.object({\n kind: z.literal('baseIndex'),\n page: PageRefSchema,\n baseIndex: z.number().int().nonnegative(),\n }),\n]);\n","import { z } from 'zod';\n\nimport type { PageDestination, PdfDestination } from './PdfDestination';\nimport { PageRefSchema } from '../identity/PageRef.schema';\n\nconst page = PageRefSchema;\n/** Spec-nullable axis value: absent and `null` both mean \"retain current\". */\nconst axis = z.number().nullable().optional();\n\n/**\n * Runtime schema for {@link PdfDestination}. Lives beside its DTO in `dto/`\n * so every destination-shaped surface (link targets, action-node payloads,\n * the document `openDestination`) shares one schema without an import cycle\n * through the annotation tree.\n */\nexport const PdfDestinationSchema: z.ZodType<PdfDestination> = z.discriminatedUnion('kind', [\n z.object({ kind: z.literal('xyz'), page, left: axis, top: axis, zoom: axis }),\n z.object({ kind: z.literal('fit'), page }),\n z.object({ kind: z.literal('fitH'), page, top: axis }),\n z.object({ kind: z.literal('fitV'), page, left: axis }),\n z.object({\n kind: z.literal('fitR'),\n page,\n left: z.number(),\n bottom: z.number(),\n right: z.number(),\n top: z.number(),\n }),\n z.object({ kind: z.literal('fitB'), page }),\n z.object({ kind: z.literal('fitBH'), page, top: axis }),\n z.object({ kind: z.literal('fitBV'), page, left: axis }),\n]) as unknown as z.ZodType<PdfDestination>;\n\n/** A destination in page space: measured from the top-left of its page's visible box. */\nexport const PageDestinationSchema: z.ZodType<PageDestination> = z.discriminatedUnion('kind', [\n z.object({ kind: z.literal('xyz'), page, x: axis, y: axis, zoom: axis }),\n z.object({ kind: z.literal('fit'), page }),\n z.object({ kind: z.literal('fitH'), page, y: axis }),\n z.object({ kind: z.literal('fitV'), page, x: axis }),\n z.object({\n kind: z.literal('fitR'),\n page,\n x: z.number(),\n y: z.number(),\n width: z.number().nonnegative(),\n height: z.number().nonnegative(),\n }),\n z.object({ kind: z.literal('fitB'), page }),\n z.object({ kind: z.literal('fitBH'), page, y: axis }),\n z.object({ kind: z.literal('fitBV'), page, x: axis }),\n]) as unknown as z.ZodType<PageDestination>;\n","import { z } from 'zod';\n\nimport type { PdfDestination } from '../../../dto/PdfDestination';\nimport { PageDestinationSchema, PdfDestinationSchema } from '../../../dto/PdfDestination.schema';\nimport type { PdfLinkTarget, PdfLinkTargetWritable } from '../../../dto/PdfLinkTarget';\n\nexport { PdfDestinationSchema };\n\n/** A link target's two schemas, a read and a write, for destinations of one kind. */\nfunction linkTargetSchemasFor<Destination>(destination: z.ZodType<Destination>) {\n const goto = z.object({ kind: z.literal('goto'), destination });\n const uri = z.object({ kind: z.literal('uri'), uri: z.string() });\n const read = z.discriminatedUnion('kind', [\n goto,\n uri,\n z.object({ kind: z.literal('goto-remote'), file: z.string() }),\n z.object({ kind: z.literal('launch'), path: z.string() }),\n z.object({ kind: z.literal('javascript') }),\n z.object({ kind: z.literal('named'), name: z.string() }),\n z.object({ kind: z.literal('unsupported') }),\n ]) as unknown as z.ZodType<PdfLinkTarget<Destination>>;\n /** Drafts and patches author `goto`, `uri` and the standard named verbs; see {@link PdfLinkTargetWritable}. */\n const named = z.object({\n kind: z.literal('named'),\n name: z.enum(['NextPage', 'PrevPage', 'FirstPage', 'LastPage']),\n });\n const write = z.discriminatedUnion('kind', [goto, uri, named]) as unknown as z.ZodType<\n PdfLinkTargetWritable<Destination>\n >;\n return { read, write };\n}\n\nconst PAGE_SPACE = linkTargetSchemasFor(PageDestinationSchema);\nconst FILE_SPACE = linkTargetSchemasFor(PdfDestinationSchema);\n\n/** A link's target: a destination in page space. */\nexport const PdfLinkTargetSchema = PAGE_SPACE.read;\n/** What a create or an update may set as a link's target. */\nexport const PdfLinkTargetWritableSchema = PAGE_SPACE.write;\n\n/** A link's target as the engine reads the file: a destination in the file's coordinates. */\nexport const FileLinkTargetSchema: z.ZodType<PdfLinkTarget<PdfDestination>> = FILE_SPACE.read;\nexport const FileLinkTargetWritableSchema: z.ZodType<PdfLinkTargetWritable<PdfDestination>> =\n FILE_SPACE.write;\n","import { z } from 'zod';\n\nimport type {\n DocumentActionsSnapshot,\n FieldActionsPatch,\n FieldScriptWrite,\n PdfActionNode,\n PdfActionTargetRef,\n PdfActionTree,\n PdfActionType,\n PdfActionWrite,\n WidgetActionsPatch,\n} from './PdfAction';\nimport { PageDestinationSchema, PdfDestinationSchema } from './PdfDestination.schema';\n\nexport const PdfActionTargetRefSchema: z.ZodType<PdfActionTargetRef> = z.discriminatedUnion(\n 'kind',\n [\n z.object({ kind: z.literal('name'), name: z.string() }),\n z.object({ kind: z.literal('objectNumber'), objectNumber: z.number().int().positive() }),\n ],\n) as unknown as z.ZodType<PdfActionTargetRef>;\n\nconst SubmitFormFlagsSchema = z.object({\n raw: z.number().int().nonnegative(),\n exclude: z.boolean(),\n includeNoValueFields: z.boolean(),\n format: z.enum(['fdf', 'html', 'xfdf', 'pdf']),\n method: z.enum(['post', 'get']),\n submitCoordinates: z.boolean(),\n includeAppendSaves: z.boolean(),\n includeAnnotations: z.boolean(),\n canonicalFormat: z.boolean(),\n exclNonUserAnnots: z.boolean(),\n exclFKey: z.boolean(),\n embedForm: z.boolean(),\n});\n\n/**\n * The action schemas for one kind of destination: in the file's coordinates\n * or in page space. Everything but a `goto`'s destination is the same.\n */\nfunction actionSchemasFor<Destination>(destination: z.ZodType<Destination>) {\n /** Fields every node arm repeats — zod 3's discriminatedUnion needs plain\n * object options, so the recursion (`next`) lives inline per arm and the\n * whole union sits behind one `z.lazy`. */\n const nodeCommon = {\n subtype: z.string(),\n next: z.array(z.lazy(() => node)),\n };\n const arm = <T extends string>(type: T, shape: z.ZodRawShape = {}) =>\n z.object({ type: z.literal(type), ...nodeCommon, ...shape });\n const arms = [\n arm('javascript', { script: z.string() }),\n arm('goto', { destination }),\n arm('uri', { uri: z.string(), isMap: z.boolean() }),\n arm('named', { name: z.string() }),\n arm('hide', { targets: z.array(PdfActionTargetRefSchema), hide: z.boolean() }),\n arm('reset-form', {\n fields: z.array(PdfActionTargetRefSchema).nullable(),\n exclude: z.boolean(),\n }),\n arm('goto-remote', { filePath: z.string() }),\n arm('goto-embedded', { filePath: z.string() }),\n arm('launch', { filePath: z.string() }),\n arm('rendition', { script: z.string().optional() }),\n arm('submit-form', {\n // Optional as a whole and complete when present — the atomic-payload\n // law; a pre-payload producer (older runtime/server) omits the key.\n payload: z\n .object({\n url: z.string(),\n fields: z.array(PdfActionTargetRefSchema).nullable(),\n flags: SubmitFormFlagsSchema,\n charSet: z.string().optional(),\n })\n .optional(),\n }),\n arm('thread'),\n arm('sound'),\n arm('movie'),\n arm('import-data'),\n arm('set-ocg-state'),\n arm('transition'),\n arm('goto-3d-view'),\n arm('unknown'),\n ] as const;\n const node: z.ZodType<PdfActionNode<Destination>> = z.lazy(\n () =>\n z.discriminatedUnion('type', [...arms]) as unknown as z.ZodType<PdfActionNode<Destination>>,\n );\n const tree: z.ZodType<PdfActionTree<Destination>> = z.object({\n root: node.nullable(),\n incomplete: z.boolean(),\n warningFlags: z.number().int().nonnegative(),\n warnings: z.array(z.enum(['cycle-dropped', 'malformed-next', 'incomplete', 'payload-dropped'])),\n });\n const fieldActions = z.object({\n keystroke: tree.optional(),\n format: tree.optional(),\n validate: tree.optional(),\n calculate: tree.optional(),\n });\n const pageActions = z.object({\n open: tree.optional(),\n close: tree.optional(),\n });\n const annotationActions = z.object({\n activate: tree.optional(),\n cursorEnter: tree.optional(),\n cursorExit: tree.optional(),\n mouseDown: tree.optional(),\n mouseUp: tree.optional(),\n focus: tree.optional(),\n blur: tree.optional(),\n pageOpen: tree.optional(),\n pageClose: tree.optional(),\n pageVisible: tree.optional(),\n pageInvisible: tree.optional(),\n });\n const documentActions = z\n .object({\n nameTreeScripts: z.array(z.object({ name: z.string(), action: tree })),\n openAction: tree.nullable(),\n // Defaulted so a pre-payload server response (field absent) still parses\n // and every parsed snapshot carries the key.\n openDestination: destination.nullable().default(null),\n willClose: tree.optional(),\n willSave: tree.optional(),\n didSave: tree.optional(),\n willPrint: tree.optional(),\n didPrint: tree.optional(),\n })\n .superRefine((snapshot, context) => {\n // `/OpenAction` is one catalog entry — a dictionary (action) or an array\n // (destination). Both non-null cannot come from a correct reader.\n if (snapshot.openAction !== null && (snapshot.openDestination ?? null) !== null) {\n context.addIssue({\n code: z.ZodIssueCode.custom,\n message: 'openAction and openDestination are mutually exclusive',\n path: ['openDestination'],\n });\n }\n }) as unknown as z.ZodType<DocumentActionsSnapshot<Destination>>;\n return { arms, node, tree, fieldActions, pageActions, annotationActions, documentActions };\n}\n\nconst PAGE_SPACE = actionSchemasFor(PageDestinationSchema);\nconst PDF_SPACE = actionSchemasFor(PdfDestinationSchema);\n\n/**\n * The write schemas for one kind of destination: an action a write makes,\n * and a widget's actions patch.\n */\nfunction actionWriteSchemasFor<Destination>(destination: z.ZodType<Destination>) {\n // A fresh schema at each place, so a generator names the action there and\n // never points into another one.\n const next = () => ({ next: z.array(z.lazy(() => node)).optional() });\n const arms = [\n z.object({ type: z.literal('javascript'), script: z.string(), ...next() }),\n z.object({ type: z.literal('goto'), destination, ...next() }),\n z.object({ type: z.literal('uri'), uri: z.string().min(1), ...next() }),\n z.object({ type: z.literal('named'), name: z.string().min(1), ...next() }),\n z.object({\n type: z.literal('hide'),\n targets: z.array(PdfActionTargetRefSchema).min(1),\n hide: z.boolean(),\n ...next(),\n }),\n z.object({\n type: z.literal('reset-form'),\n fields: z.array(PdfActionTargetRefSchema).nullable(),\n exclude: z.boolean(),\n ...next(),\n }),\n z.object({\n type: z.literal('submit-form'),\n url: z.string().min(1),\n fields: z.array(PdfActionTargetRefSchema).nullable(),\n flags: z.number().int().nonnegative().optional(),\n ...next(),\n }),\n ] as const;\n const node: z.ZodType<PdfActionWrite<Destination>> = z.lazy(\n () =>\n z.discriminatedUnion('type', [...arms]) as unknown as z.ZodType<PdfActionWrite<Destination>>,\n );\n const event = () => node.nullable().optional();\n const widgetActions: z.ZodType<WidgetActionsPatch<Destination>> = z\n .object({\n activate: event(),\n cursorEnter: event(),\n cursorExit: event(),\n mouseDown: event(),\n mouseUp: event(),\n focus: event(),\n blur: event(),\n pageOpen: event(),\n pageClose: event(),\n pageVisible: event(),\n pageInvisible: event(),\n })\n .strict() as unknown as z.ZodType<WidgetActionsPatch<Destination>>;\n return { node, widgetActions };\n}\n\nconst PAGE_SPACE_WRITES = actionWriteSchemasFor(PageDestinationSchema);\nconst PDF_SPACE_WRITES = actionWriteSchemasFor(PdfDestinationSchema);\n\n/** An action a write makes, its destinations in page space. */\nexport const PdfActionWriteSchema: z.ZodType<PdfActionWrite> = PAGE_SPACE_WRITES.node;\n\n/** A widget's actions to write, by event, their destinations in page space. */\nexport const WidgetActionsPatchSchema: z.ZodType<WidgetActionsPatch> =\n PAGE_SPACE_WRITES.widgetActions;\n\n/** A widget's actions to write, as the engine writes the file: destinations in its coordinates. */\nexport const FileWidgetActionsPatchSchema = PDF_SPACE_WRITES.widgetActions;\n\nexport const PdfActionNodeSchema: z.ZodType<PdfActionNode> = PAGE_SPACE.node;\n\n/** The `/S` vocabulary, derived from the union arms so it cannot drift. */\nexport const PdfActionTypeSchema: z.ZodType<PdfActionType> = z.enum(\n PAGE_SPACE.arms.map((option) => option.shape.type.value) as [PdfActionType, ...PdfActionType[]],\n) as unknown as z.ZodType<PdfActionType>;\n\nexport const PdfActionTreeSchema: z.ZodType<PdfActionTree> = PAGE_SPACE.tree;\nexport const PdfFieldActionsSchema = PAGE_SPACE.fieldActions;\nexport const PdfPageActionsSchema = PAGE_SPACE.pageActions;\nexport const DocumentActionsSnapshotSchema: z.ZodType<DocumentActionsSnapshot> =\n PAGE_SPACE.documentActions;\n\n/** An annotation's actions (`/A`, `/AA`), their destinations in page space. */\nexport const PdfAnnotationActionsSchema = PAGE_SPACE.annotationActions;\n\n/** An annotation's actions as the engine reads the file: destinations in the file's coordinates. */\nexport const FileAnnotationActionsSchema = PDF_SPACE.annotationActions;\n\n/**\n * A field event's script: JavaScript all through. Any other action type is\n * refused here, at the boundary.\n */\nexport const FieldScriptWriteSchema: z.ZodType<FieldScriptWrite> = z.lazy(() =>\n z.object({\n type: z.literal('javascript'),\n script: z.string(),\n next: z.array(FieldScriptWriteSchema).optional(),\n }),\n);\n\n/** A field's scripts to write, by event: a script sets one, `null` removes it. */\nexport const FieldActionsPatchSchema: z.ZodType<FieldActionsPatch> = z.object({\n keystroke: FieldScriptWriteSchema.nullable().optional(),\n format: FieldScriptWriteSchema.nullable().optional(),\n validate: FieldScriptWriteSchema.nullable().optional(),\n calculate: FieldScriptWriteSchema.nullable().optional(),\n});\n\n/**\n * Stable public component names for generators that project the action wire\n * model into OpenAPI or another schema format. Keep reusable boundaries here;\n * individual action arms remain owned by `PdfActionNodeSchema`.\n */\nexport const PdfActionWireComponents = {\n PdfActionTargetRef: PdfActionTargetRefSchema,\n PageDestination: PageDestinationSchema,\n PdfActionNode: PdfActionNodeSchema,\n PdfActionTree: PdfActionTreeSchema,\n PdfFieldActions: PdfFieldActionsSchema,\n PdfPageActions: PdfPageActionsSchema,\n PdfAnnotationActions: PdfAnnotationActionsSchema,\n DocumentActionsSnapshot: DocumentActionsSnapshotSchema,\n FieldScriptWrite: FieldScriptWriteSchema,\n FieldActionsPatch: FieldActionsPatchSchema,\n PdfActionWrite: PdfActionWriteSchema,\n WidgetActionsPatch: WidgetActionsPatchSchema,\n} as const satisfies Record<string, z.ZodTypeAny>;\n","import { z } from 'zod';\n\nimport { PdfLinkTargetSchema, PdfLinkTargetWritableSchema } from './kinds/link/values';\nimport type { AnnotationResourceRole } from './resources';\nimport type { PdfAnnotationActions, WidgetActionsPatch } from '../dto/PdfAction';\nimport { PdfAnnotationActionsSchema, WidgetActionsPatchSchema } from '../dto/PdfAction.schema';\nimport type { PageDestination, PdfDestination } from '../dto/PdfDestination';\nimport type { PageBox, PagePoint, PageQuad } from '../geometry/pageSpace';\nimport type { PdfPoint, PdfQuad } from '../geometry/primitives';\nimport { PageBoxSchema } from '../geometry/schemas';\nimport type { Coordinates, PageCoordinates, PdfCoordinates } from '../pageSpace/coordinates';\n\n/**\n * One declaration per annotation kind. Each field says who writes it, what it\n * reads as, what a write accepts, and whether it can be absent. The read,\n * create and update shapes and their zod schemas are derived from it, so they\n * can't drift apart.\n *\n * - A read is complete: every field is present, and `null` when absent.\n * - A create takes the data fields; a field left out gets the kind's default.\n * - An update takes any data field; a field left out is unchanged, `null`\n * removes it, and a value replaces it whole.\n * - Attribution, engine and preserved fields are accepted on every write, so\n * a read DTO can be passed straight back. A data field whose read has more\n * values than a write can make (`readBack()`) takes them in an update too:\n * sent back unchanged it is kept, any other such value is refused. An\n * engine field marked `readBack()` is worked out from other fields: an\n * update takes the value a read returned. The one such field, a drawn\n * kind's `rect`, also takes another rect, which puts the shape there\n * (`shapeForRect`), and a box kind's create takes it with a quarter turn\n * in place of its `box`.\n */\n\n/**\n * Who writes a field.\n *\n * - `data`: the caller, on create and update.\n * - `attribution`: the engine, from the session's identity; an import may\n * restore it.\n * - `engine`: the engine only; addresses, links it keeps in sync, values\n * derived from other fields.\n * - `preserved`: read from the PDF but not writable. An update that sends it\n * back keeps it; a copy leaves it out and reports it.\n */\nexport type FieldOwner = 'data' | 'attribution' | 'engine' | 'preserved';\n\n/**\n * What a field holds that is measured on the page, so a value can be\n * converted between the file's coordinates and page space (see\n * `geometry/pageSpace.ts`).\n *\n * - `none`: nothing measured on the page.\n * - `length`: numbers with position-like names that are sizes, not places\n * (a paragraph's margins); never converted.\n * - `point`, `points`, `strokes` (lists of points), `box`, `quads`,\n * `linePoints` (`{ start, end }`), `calloutLine` (two or three points),\n * `topLeft` (a box's left and top edges): places on the annotation's page.\n * - `measure`: a scale whose `origin` is a place on the page.\n * - `linkTarget`, `actions`: destinations, each measured on the page it\n * goes to.\n */\nexport type FieldSpace =\n | 'none'\n | 'length'\n | 'point'\n | 'points'\n | 'strokes'\n | 'box'\n | 'quads'\n | 'linePoints'\n | 'calloutLine'\n | 'measure'\n | 'linkTarget'\n | 'actions';\n\nexport interface FieldTraits {\n readonly owner: FieldOwner;\n /** A read returns `null` when the PDF entry is absent. */\n readonly readNullable: boolean;\n /** A write may send `null` to leave the entry out or remove it. */\n readonly writeNullable: boolean;\n /** A create must supply the field: it has no default. */\n readonly required: boolean;\n /** The field can't change after create. */\n readonly createOnly: boolean;\n /** An update also takes what a read returns (kept only when unchanged). */\n readonly readBack: boolean;\n /** What the field holds that is measured on the page. */\n readonly space: FieldSpace;\n}\n\nexport type Override<Traits, Changed> = Omit<Traits, keyof Changed> & Changed;\n\nexport interface Field<Read, Write, Traits> {\n readonly read: z.ZodType<Read>;\n readonly write: z.ZodType<Write>;\n readonly traits: Traits & FieldTraits;\n /** An absent entry reads as `null`, and a write may send `null`. */\n nullable(): Field<Read, Write, Override<Traits, { readNullable: true; writeNullable: true }>>;\n /** An absent entry reads as `null`, but a write must send a value. */\n nullableOnRead(): Field<Read, Write, Override<Traits, { readNullable: true }>>;\n /** A create may leave the field out, and the kind's default applies. */\n optional(): Field<Read, Write, Override<Traits, { required: false }>>;\n /** The field can't change after create. */\n createOnly(): Field<Read, Write, Override<Traits, { createOnly: true }>>;\n /** A write accepts a different schema than a read returns. */\n writes<NextWrite>(schema: z.ZodType<NextWrite>): Field<Read, NextWrite, Traits>;\n /**\n * An update also takes the values only a read returns, so a read DTO can\n * be sent back: such a value is kept when it's unchanged and refused\n * otherwise. A create still takes only what `writes` accepts. On an engine\n * field every value is a read's: any other than the current one is refused.\n */\n readBack(): Field<Read, Write, Override<Traits, { readBack: true }>>;\n /** What the field holds that is measured on the page. */\n space<Space extends FieldSpace>(\n space: Space,\n ): Field<Read, Write, Override<Traits, { space: Space }>>;\n}\n\nexport type AnyField = Field<any, any, any>;\n\nexport type KindFields = { readonly [name: string]: AnyField };\n\nfunction createField<Read, Write, Traits>(\n read: z.ZodType<Read>,\n write: z.ZodType<Write>,\n traits: Traits & FieldTraits,\n): Field<Read, Write, Traits> {\n const next = <Changed extends Partial<FieldTraits>>(changed: Changed) =>\n createField(read, write, { ...traits, ...changed }) as never;\n return {\n read,\n write,\n traits,\n nullable: () => next({ readNullable: true, writeNullable: true }),\n nullableOnRead: () => next({ readNullable: true }),\n optional: () => next({ required: false }),\n createOnly: () => next({ createOnly: true }),\n readBack: () => next({ readBack: true }),\n space: (space) => next({ space }),\n writes: (schema) => createField(read, schema, traits),\n };\n}\n\nexport interface OwnerTraits<Owner extends FieldOwner, Required extends boolean> {\n owner: Owner;\n readNullable: false;\n writeNullable: false;\n required: Required;\n createOnly: false;\n readBack: false;\n space: 'none';\n}\n\nconst ownedBy = <Owner extends FieldOwner, Required extends boolean>(\n owner: Owner,\n required: Required,\n): OwnerTraits<Owner, Required> => ({\n owner,\n readNullable: false,\n writeNullable: false,\n required,\n createOnly: false,\n readBack: false,\n space: 'none',\n});\n\n/** Field builders for {@link defineKind}. */\nexport const field = {\n /** Written by the caller. Required on create until marked `optional()`. */\n data: <Value>(schema: z.ZodType<Value>) => createField(schema, schema, ownedBy('data', true)),\n /** Stamped by the engine from the session's identity. */\n attribution: <Value>(schema: z.ZodType<Value>) =>\n createField(schema, schema, ownedBy('attribution', false)),\n /** Written only by the engine. */\n engine: <Value>(schema: z.ZodType<Value>) =>\n createField(schema, schema, ownedBy('engine', false)),\n /** Read from the PDF and kept in place, but not writable. */\n preserved: <Value>(schema: z.ZodType<Value>) =>\n createField(schema, schema, ownedBy('preserved', false)),\n};\n\n// ── derived shapes ──\n\ntype Simplify<Shape> = { [Name in keyof Shape]: Shape[Name] } & {};\n\ntype ReadValue<F> =\n F extends Field<infer Read, infer _Write, infer Traits>\n ? Traits extends { readNullable: true }\n ? Read | null\n : Read\n : never;\n\ntype WriteValue<F> =\n F extends Field<infer _Read, infer Write, infer Traits>\n ? Traits extends { writeNullable: true }\n ? Write | null\n : Write\n : never;\n\n/** What an update takes: the write, and for a `readBack()` field the read too. */\ntype UpdateValue<F> =\n F extends Field<infer Read, infer _Write, infer Traits>\n ? Traits extends { readBack: true }\n ? WriteValue<F> | (Traits extends { readNullable: true } ? Read | null : Read)\n : WriteValue<F>\n : never;\n\ntype NamesWhere<Fields extends KindFields, Condition> = {\n [Name in keyof Fields]: Fields[Name]['traits'] extends Condition ? Name : never;\n}[keyof Fields];\n\ntype AcceptedNames<Fields extends KindFields> = NamesWhere<\n Fields,\n { owner: 'attribution' | 'engine' | 'preserved' }\n>;\n\n// ── page space ──\n\ntype SpaceOf<F> = F extends { traits: { space: infer Space } } ? Space : never;\n\n/** A value's points and quads, named for page space: the same shapes. */\ntype PagePointsIn<Value> = Value extends PdfQuad\n ? PageQuad\n : Value extends PdfPoint\n ? PagePoint\n : Value extends object\n ? { [Key in keyof Value]: PagePointsIn<Value[Key]> }\n : Value;\n\n/**\n * A field's value in page space, by what the field holds: a box becomes a\n * `PageBox`, a destination a `PageDestination`, and points and quads keep\n * their shapes under page-space names. `null` and a value left out stay as\n * they are.\n */\nexport type PageValue<Space, Value> = Value extends null | undefined\n ? Value\n : Space extends 'box'\n ? PageBox\n : Space extends 'linkTarget'\n ? Value extends { destination: PdfDestination }\n ? Omit<Value, 'destination'> & { destination: PageDestination }\n : Value\n : Space extends 'actions'\n ? Value extends PdfAnnotationActions<PdfDestination>\n ? PdfAnnotationActions<PageDestination>\n : Value extends WidgetActionsPatch<PdfDestination>\n ? WidgetActionsPatch<PageDestination>\n : Value\n : Space extends 'none' | 'length'\n ? Value\n : PagePointsIn<Value>;\n\n/**\n * A field's value in the space `C` stands for: the file's coordinates, as\n * the field is declared, or page space.\n */\ntype InSpace<C extends Coordinates, F, Value> = C extends PdfCoordinates\n ? Value\n : PageValue<SpaceOf<F>, Value>;\n\nexport type ReadShape<Fields extends KindFields, C extends Coordinates = PageCoordinates> = {\n [Name in keyof Fields]: InSpace<C, Fields[Name], ReadValue<Fields[Name]>>;\n};\n\nexport type CreateShape<Fields extends KindFields, C extends Coordinates = PageCoordinates> = {\n [Name in NamesWhere<Fields, { owner: 'data'; required: true }>]: InSpace<\n C,\n Fields[Name],\n WriteValue<Fields[Name]>\n >;\n} & {\n [Name in NamesWhere<Fields, { owner: 'data'; required: false }>]?: InSpace<\n C,\n Fields[Name],\n WriteValue<Fields[Name]>\n >;\n} & {\n [Name in AcceptedNames<Fields>]?: InSpace<C, Fields[Name], ReadValue<Fields[Name]>>;\n};\n\nexport type UpdateShape<Fields extends KindFields, C extends Coordinates = PageCoordinates> = {\n [Name in NamesWhere<Fields, { owner: 'data' }>]?: InSpace<\n C,\n Fields[Name],\n UpdateValue<Fields[Name]>\n >;\n} & {\n [Name in AcceptedNames<Fields>]?: InSpace<C, Fields[Name], ReadValue<Fields[Name]>>;\n};\n\n/** A kind's optional data fields a read never shows as `null` and that hold nothing placed on the page. */\ntype ConstantDefaultNames<Fields extends KindFields> = NamesWhere<\n Fields,\n { owner: 'data'; required: false; readNullable: false; space: 'none' }\n>;\n\n/**\n * What a create that leaves out a data field reads back, per field. A field\n * a read never shows as `null`, holding nothing placed on the page, needs a\n * value. The others may name one: left out, a read says `null`, or the\n * engine works the value out (a redaction's quads, a free text's rich text).\n */\nexport type DefaultsShape<Fields extends KindFields> = {\n [Name in ConstantDefaultNames<Fields>]: ReadValue<Fields[Name]>;\n} & {\n [Name in Exclude<\n NamesWhere<Fields, { owner: 'data'; required: false }>,\n ConstantDefaultNames<Fields>\n >]?: ReadValue<Fields[Name]>;\n};\n\n// ── kinds ──\n\n/** The resources a kind takes, by role (`annotation/resources.ts`). */\nexport type KindResources = { readonly [Role in AnnotationResourceRole]?: 'required' | 'optional' };\n\nexport type KindRead<\n Subtype extends string,\n Fields extends KindFields,\n C extends Coordinates = PageCoordinates,\n> = Simplify<{ subtype: Subtype } & ReadShape<Fields, C>>;\nexport type KindCreate<\n Subtype extends string,\n Fields extends KindFields,\n C extends Coordinates = PageCoordinates,\n> = Simplify<{ subtype: Subtype } & CreateShape<Fields, C>>;\nexport type KindUpdate<\n Subtype extends string,\n Fields extends KindFields,\n C extends Coordinates = PageCoordinates,\n> = Simplify<{ subtype?: Subtype } & UpdateShape<Fields, C>>;\n\n/** A kind's three schemas: its read, and what a create and an update take. */\nexport interface KindSchemas<\n Subtype extends string,\n Fields extends KindFields,\n C extends Coordinates = PageCoordinates,\n> {\n /**\n * Validates a read: every field present. Fields it doesn't declare are\n * dropped, so a reader tolerates a newer writer.\n */\n readonly read: z.ZodType<KindRead<Subtype, Fields, C>>;\n /** Validates the data of a create. */\n readonly create: z.ZodType<KindCreate<Subtype, Fields, C>>;\n /** Validates the data of an update. */\n readonly update: z.ZodType<KindUpdate<Subtype, Fields, C>>;\n}\n\nexport interface KindDeclaration<\n Subtype extends string,\n Fields extends KindFields,\n Resources extends KindResources,\n> {\n readonly subtype: Subtype;\n readonly fields: Fields;\n readonly resources: Resources;\n /** Validates a read in page space: every field present. */\n readonly readSchema: z.ZodType<KindRead<Subtype, Fields>>;\n /** Validates the data of a create, in page space. */\n readonly createSchema: z.ZodType<KindCreate<Subtype, Fields>>;\n /** Validates the data of an update, in page space. */\n readonly updateSchema: z.ZodType<KindUpdate<Subtype, Fields>>;\n /** The same three in the file's coordinates, which the engine checks its writes with. */\n readonly fileSchemas: KindSchemas<Subtype, Fields, PdfCoordinates>;\n /**\n * The write schema of each `readBack()` field, in the file's coordinates:\n * an update's value outside it is a read-only value, kept only when\n * unchanged. `null` for an engine field, which no value writes.\n */\n readonly readBackWrites: Readonly<Record<string, z.ZodTypeAny | null>>;\n /** The zod shapes behind the three page-space schemas, to build variants from. */\n readonly shapes: {\n readonly read: z.ZodRawShape;\n readonly create: z.ZodRawShape;\n readonly update: z.ZodRawShape;\n };\n}\n\nexport type AnyKindDeclaration = KindDeclaration<string, KindFields, any>;\n\n/**\n * The complete read shape of a kind: what `list`, `get` and `listRaw` return.\n * In page space unless `C` is `PdfCoordinates`, as the engine reads the file.\n */\nexport type ReadOf<Declaration, C extends Coordinates = PageCoordinates> =\n Declaration extends KindDeclaration<infer Subtype, infer Fields, infer _Resources>\n ? KindRead<Subtype, Fields, C>\n : never;\n\n/** The data a create accepts. A read of the same kind is always assignable. */\nexport type CreateOf<Declaration, C extends Coordinates = PageCoordinates> =\n Declaration extends KindDeclaration<infer Subtype, infer Fields, infer _Resources>\n ? KindCreate<Subtype, Fields, C>\n : never;\n\n/** What a create that leaves out a data field reads back (see `annotation/defaults.ts`). */\nexport type DefaultsOf<Declaration> =\n Declaration extends KindDeclaration<infer _Subtype, infer Fields, infer _Resources>\n ? DefaultsShape<Fields>\n : never;\n\n/** The data an update accepts. */\nexport type UpdateOf<Declaration, C extends Coordinates = PageCoordinates> =\n Declaration extends KindDeclaration<infer Subtype, infer Fields, infer _Resources>\n ? KindUpdate<Subtype, Fields, C>\n : never;\n\n/**\n * The page-space schema of a field that holds a box or destinations, whose\n * shape differs from the file's: a box is `{ x, y, width, height }`, and a\n * destination is measured from its page's top-left. Every other place has\n * the same shape in both spaces.\n */\nconst PAGE_SPACE_SCHEMAS: Partial<\n Record<FieldSpace, { readonly read: z.ZodTypeAny; readonly write: z.ZodTypeAny }>\n> = {\n box: { read: PageBoxSchema, write: PageBoxSchema },\n linkTarget: { read: PdfLinkTargetSchema, write: PdfLinkTargetWritableSchema },\n // Only a widget writes its actions; every other kind's are kept as read.\n actions: { read: PdfAnnotationActionsSchema, write: WidgetActionsPatchSchema },\n};\n\ninterface ZodShapes {\n read: Record<string, z.ZodTypeAny>;\n create: Record<string, z.ZodTypeAny>;\n update: Record<string, z.ZodTypeAny>;\n readBackWrites: Record<string, z.ZodTypeAny | null>;\n}\n\n/** The zod shapes of a kind's fields, each field's schemas given by `schemasOf`. */\nfunction shapesOf(\n subtype: string,\n fields: KindFields,\n schemasOf: (spec: AnyField) => { read: z.ZodTypeAny; write: z.ZodTypeAny },\n): ZodShapes {\n const read: Record<string, z.ZodTypeAny> = { subtype: z.literal(subtype) };\n const create: Record<string, z.ZodTypeAny> = { subtype: z.literal(subtype) };\n const update: Record<string, z.ZodTypeAny> = { subtype: z.literal(subtype).optional() };\n const readBackWrites: Record<string, z.ZodTypeAny | null> = {};\n for (const [name, spec] of Object.entries(fields)) {\n const { owner, readNullable, writeNullable, required, readBack } = spec.traits;\n const schemas = schemasOf(spec);\n read[name] = readNullable ? schemas.read.nullable() : schemas.read;\n if (owner === 'data') {\n const write = writeNullable ? schemas.write.nullable() : schemas.write;\n create[name] = required ? write : write.optional();\n // A field read and written as one schema takes that schema back,\n // nullable when either side is: a union of the two would name it twice.\n const sameSchema = schemas.read === schemas.write;\n const readBackUpdate = sameSchema\n ? readNullable || writeNullable\n ? schemas.write.nullable()\n : schemas.write\n : z.union([write, read[name]!]);\n update[name] = (readBack ? readBackUpdate : write).optional();\n if (readBack) readBackWrites[name] = write;\n } else {\n // Accepted so a read DTO can be sent back; the engine decides what happens to it.\n create[name] = readBack ? read[name]!.optional() : z.unknown().optional();\n update[name] = readBack ? read[name]!.optional() : z.unknown().optional();\n if (readBack) readBackWrites[name] = null;\n }\n }\n return { read, create, update, readBackWrites };\n}\n\n/**\n * Declares an annotation kind from its fields and the resources it takes\n * beside its data. Fields are declared as the file holds them; the page-space\n * schemas follow from what each field holds (`space`).\n */\nexport function defineKind<\n Subtype extends string,\n Fields extends KindFields,\n Resources extends KindResources = Record<never, never>,\n>(\n subtype: Subtype,\n fields: Fields,\n resources: Resources = {} as Resources,\n): KindDeclaration<Subtype, Fields, Resources> {\n const file = shapesOf(subtype, fields, (spec) => spec);\n const page = shapesOf(\n subtype,\n fields,\n (spec) => PAGE_SPACE_SCHEMAS[spec.traits.space as FieldSpace] ?? spec,\n );\n return {\n subtype,\n fields,\n resources,\n readSchema: z.object(page.read) as never,\n createSchema: z.object(page.create).strict() as never,\n updateSchema: z.object(page.update).strict() as never,\n fileSchemas: {\n read: z.object(file.read) as never,\n create: z.object(file.create).strict() as never,\n update: z.object(file.update).strict() as never,\n },\n readBackWrites: file.readBackWrites,\n shapes: { read: page.read, create: page.create, update: page.update },\n };\n}\n","import { z } from 'zod';\n\nimport type { DateInput, IsoDateTime } from './IsoDateTime';\n\n/** ISO 8601 with an offset (`Z` or `±HH:mm`) or without one. */\nexport const IsoDateTimeSchema: z.ZodType<IsoDateTime> = z\n .string()\n .datetime({ offset: true, local: true });\n\n/**\n * A moment in a write. JSON carries the string; a `Date` only ever arrives\n * in-process (the local engine), and becomes that string on the wire.\n */\nexport const DateInputSchema: z.ZodType<DateInput> = z.union([IsoDateTimeSchema, z.date()]);\n","import { z } from 'zod';\nimport { PageBoxSchema } from '../geometry/schemas';\nimport { validNumberFormat } from '../measure/format';\n\nconst float = z\n .number()\n .finite()\n .refine((n) => Number.isFinite(Math.fround(n)), 'Outside PDF float range');\nconst point = z.object({ x: float, y: float }).strict();\nconst positive = float.refine((n) => Math.fround(n) > 0, 'Must be positive in PDF float precision');\nexport const PdfNumberFormatSchema = z.object({\n unit: z.string(),\n conversion: float.optional(),\n fraction: z.enum(['decimal', 'fraction', 'round', 'truncate']).optional(),\n precision: z.number().int().optional(),\n fixed: z.boolean().optional(),\n thousands: z.string().optional(),\n decimal: z.string().optional(),\n prefixSpacing: z.string().optional(),\n suffixSpacing: z.string().optional(),\n labelPosition: z.enum(['suffix', 'prefix']).optional(),\n});\nexport const PdfMeasureSchema = z.object({\n subtype: z.literal('rectilinear'),\n ratio: z.string().optional(),\n x: z.array(PdfNumberFormatSchema),\n y: z.array(PdfNumberFormatSchema).optional(),\n distance: z.array(PdfNumberFormatSchema),\n area: z.array(PdfNumberFormatSchema),\n angle: z.array(PdfNumberFormatSchema).optional(),\n slope: z.array(PdfNumberFormatSchema).optional(),\n origin: point.optional(),\n cyx: float.optional(),\n});\nconst writableFormat = PdfNumberFormatSchema.extend({\n conversion: positive,\n precision: z.number().int().min(1).max(2147483647).optional(),\n}).refine(validNumberFormat, 'Invalid number format precision');\nexport const PdfMeasureWriteSchema = PdfMeasureSchema.extend({\n x: z.array(writableFormat),\n y: z.array(writableFormat).optional(),\n distance: z.array(writableFormat),\n area: z.array(writableFormat),\n angle: z.array(writableFormat).optional(),\n slope: z.array(writableFormat).optional(),\n cyx: positive.optional(),\n});\nconst geoMeasure = z.object({ subtype: z.literal('geospatial') });\nconst unknownMeasure = z.object({ subtype: z.literal('unknown') });\nexport const PdfForeignMeasureSchema = z.union([geoMeasure, unknownMeasure]);\nexport const PageScaleInputSchema = z.object({ measure: PdfMeasureWriteSchema.nullable() });\nexport const PdfMeasurementSchema = z.discriminatedUnion('subtype', [\n PdfMeasureSchema,\n geoMeasure,\n unknownMeasure,\n]);\nexport const PageMeasurementViewportSchema = z.object({\n bbox: PageBoxSchema,\n name: z.string().nullable(),\n measure: PdfMeasurementSchema.nullable(),\n owned: z.boolean(),\n});\n/** See `PageMeasurementViewportList`. */\nexport const PageMeasurementViewportListSchema = z.object({\n viewports: z.array(PageMeasurementViewportSchema),\n});\nexport const LineIntentSchema = z.enum(['line-arrow', 'line-dimension']);\nexport const PolygonIntentSchema = z.enum(['polygon-cloud', 'polygon-dimension']);\nexport const PolylineIntentSchema = z.literal('polyline-dimension');\nconst offset = z.object({ along: float, perpendicular: float }).strict();\nexport const LineDimensionCaptionSchema = z\n .object({\n enabled: z.boolean(),\n position: z.enum(['inline', 'top']).optional(),\n offset: offset.optional(),\n })\n .strict();\nexport const ShapeDimensionCaptionSchema = z\n .object({ enabled: z.boolean(), center: point.optional() })\n .strict();\nexport const LineCaptionPatchSchema = z\n .object({\n enabled: z.boolean().optional(),\n position: z.enum(['inline', 'top']).nullable().optional(),\n offset: offset.nullable().optional(),\n })\n .strict();\nexport const ShapeCaptionPatchSchema = z\n .object({ enabled: z.boolean().optional(), center: point.nullable().optional() })\n .strict();\nexport const LineLeaderSchema = z\n .object({\n length: float,\n extension: float.refine((n) => n >= 0).optional(),\n offset: float.refine((n) => n >= 0).optional(),\n })\n .strict();\n","import { z } from 'zod';\n\nimport { DateInputSchema, IsoDateTimeSchema } from '../../dto/IsoDateTime.schema';\nimport type { PdfForeignMeasure, PdfMeasure } from '../../dto/Measure';\nimport {\n PdfForeignMeasureSchema,\n PdfMeasurementSchema,\n PdfMeasureWriteSchema,\n} from '../../dto/Measure.schema';\nimport { FileAnnotationActionsSchema } from '../../dto/PdfAction.schema';\nimport {\n PdfPointSchema,\n PdfQuadSchema,\n PdfRectSchema,\n PdfRotationSchema,\n} from '../../geometry/schemas';\nimport { PageRefSchema } from '../../identity/PageRef.schema';\nimport {\n AnnotationBorderStyleSchema,\n DrawnBorderStyleSchema,\n AnnotationRefSchema,\n BlendModeSchema,\n ColorSchema,\n} from '../base.schema';\nimport { field } from '../declaration';\nimport type { FreeTextFont } from '../primitives';\n\n/** `/IRT` and `/RT`: the annotation this one replies to, and how it relates to it. */\nexport const AnnotationReplySchema = z.object({\n to: AnnotationRefSchema,\n type: z.enum(['reply', 'group']),\n});\n\n/** A write may leave out `type`: an absent `/RT` means `'reply'` (ISO 32000-2 §12.5.6.2). */\nexport const AnnotationReplyWriteSchema = z.object({\n to: AnnotationRefSchema,\n type: z.enum(['reply', 'group']).optional(),\n});\n\n/** A standard font name or a registered font key; the writer resolves which. */\nexport const FontNameSchema = z.string().min(1) as unknown as z.ZodType<FreeTextFont>;\n\n/** One `/F` bit (ISO 32000-2 §12.5.3); every bit defaults to off. */\nconst flag = () => field.data(z.boolean()).optional();\n\n/** Fields every annotation kind has. */\nexport const annotationBaseFields = {\n ref: field.engine(AnnotationRefSchema),\n page: field.engine(PageRefSchema),\n /**\n * Whether the file holds its appearance (`/AP /N`). Without one, every\n * viewer draws the annotation from its fields: the engine in memory, never\n * written.\n */\n hasAppearance: field.engine(z.boolean()),\n /**\n * `/AS`: which state of its appearance the annotation shows, when the\n * appearance has states (a check box's `Off` and its on state); `null`\n * when it names none. The appearance images are labelled with the same\n * names, so this picks the one to show.\n */\n appearanceState: field.engine(z.string()).nullable(),\n nm: field.data(z.string()).nullable().optional().createOnly(),\n rect: field.data(PdfRectSchema).space('box'),\n contents: field.data(z.string()).nullable().optional(),\n subject: field.data(z.string()).nullable().optional(),\n blendMode: field.data(BlendModeSchema).optional(),\n invisible: flag(),\n hidden: flag(),\n print: flag(),\n noZoom: flag(),\n noRotate: flag(),\n noView: flag(),\n readOnly: flag(),\n locked: flag(),\n toggleNoView: flag(),\n lockedContents: flag(),\n reply: field.data(AnnotationReplySchema).writes(AnnotationReplyWriteSchema).nullable().optional(),\n /** `/Popup`, kept in sync by the engine from the popup's `parent`. */\n popup: field.engine(AnnotationRefSchema).nullable(),\n /** `/EMBD_Metadata/GroupID`: the group that owns the annotation. */\n groupId: field.data(z.string().min(1)).nullable().optional(),\n author: field.attribution(z.string()).nullable(),\n /** `/CreationDate`. */\n createdAt: field.attribution(IsoDateTimeSchema).writes(DateInputSchema).nullable(),\n /** `/M`. */\n modifiedAt: field.attribution(IsoDateTimeSchema).writes(DateInputSchema).nullable(),\n userId: field.attribution(z.string()).nullable(),\n createdBy: field.attribution(z.string()).nullable(),\n /** `/EMBD_Metadata/UpdatedBy`. */\n modifiedBy: field.attribution(z.string()).nullable(),\n /** The session that restored this annotation's attribution in an import. */\n importedBy: field.engine(z.string()).nullable(),\n /** `/A` and `/AA`. */\n actions: field.preserved(FileAnnotationActionsSchema).nullable().space('actions'),\n};\n\n// ── style ──\n\nexport const colorStyleFields = {\n color: field.data(ColorSchema).optional(),\n opacity: field.data(z.number().min(0).max(1)).optional(),\n};\n\nexport const geometryStyleFields = {\n ...colorStyleFields,\n strokeWidth: field.data(z.number().nonnegative()).optional(),\n /** `beveled` and `inset` are read from other apps' files and kept; only widgets draw them. */\n borderStyle: field\n .data(AnnotationBorderStyleSchema)\n .writes(DrawnBorderStyleSchema)\n .readBack()\n .optional(),\n dashArray: field.data(z.array(z.number().nonnegative())).nullable().optional(),\n};\n\nexport const filledStyleFields = {\n ...geometryStyleFields,\n interiorColor: field.data(ColorSchema).nullable().optional(),\n};\n\n/**\n * `rect` where another field gives the shape (a box, points, quads): where\n * the annotation sits on the page, the upright box around all it draws. The\n * engine works it out from the shape, so a create's `rect` is worked out\n * again. An update's `rect` other than the one read puts the shape there\n * (`shapeForRect`); the rect read, sent back, changes nothing.\n */\nexport const drawnRectFields = {\n rect: field.engine(PdfRectSchema).readBack().space('box'),\n};\n\n/**\n * The turn of a kind drawn from points (line, polyline, polygon, ink): the\n * points are upright, and the turn takes them about the middle of their box,\n * as a square turns about its box.\n */\nexport const pointsTurnFields = {\n /** Degrees clockwise, about the middle of the points' box. */\n rotation: field.data(z.number()).nullable().optional(),\n};\n\n/**\n * A kind drawn about a box that can turn: square, circle, free text, stamp\n * and caret. The caller gives the box and the turn; `rect` takes in the\n * turned box and what the drawing adds around it (a cloudy border's bumps, a\n * callout's line and arrow).\n *\n * A create gives `box`, or `rect` with a quarter turn: where the turned box\n * stands on the page, which pins the box down (`pdfQuarterTurnBox`). At any\n * other angle many boxes share one rect, so a create by `rect` is refused.\n */\nexport const boxFields = {\n ...drawnRectFields,\n /** The shape's own box, before any turn: a callout's text box. */\n box: field.data(PdfRectSchema).space('box').optional(),\n /** Degrees clockwise, about the middle of `box`. */\n rotation: field.data(z.number()).nullable().optional(),\n};\n\n/**\n * A widget's frame and its turn: the box its contents are laid out in, and\n * a quarter turn (`/MK /R`, which the file holds counterclockwise), so every\n * viewer can lay an upright editor over it. `rect` is where the widget\n * stands on the page, the box turned. A create gives `box` or `rect`, as a\n * box kind's does.\n */\nexport const widgetBoxFields = {\n ...drawnRectFields,\n /** The box the contents are laid out in, before the turn: `rect` with its sides swapped under 90 and 270. */\n box: field.data(PdfRectSchema).space('box').optional(),\n /** Degrees clockwise, a quarter turn, about the middle of `box`; `null` upright. */\n rotation: field.data(PdfRotationSchema).nullable().optional(),\n};\n\n// ── families ──\n\nexport const textMarkupFields = {\n ...annotationBaseFields,\n ...colorStyleFields,\n /** The box around the quads. */\n ...drawnRectFields,\n quadPoints: field.data(z.array(PdfQuadSchema).min(1)).space('quads'),\n};\n\nexport const shapeFields = {\n ...annotationBaseFields,\n ...filledStyleFields,\n ...boxFields,\n cloudyIntensity: field.data(z.number().positive()).nullable().optional(),\n};\n\nexport const vertexFields = {\n ...annotationBaseFields,\n ...filledStyleFields,\n ...drawnRectFields,\n vertices: field.data(z.array(PdfPointSchema)).space('points'),\n ...pointsTurnFields,\n};\n\n/**\n * `/Measure`. A write takes a rectilinear scale, or sends back the marker a read\n * returned for a scale the engine can't model.\n */\nexport const measureField = field\n .data(PdfMeasurementSchema)\n .writes(\n z.union([PdfMeasureWriteSchema, PdfForeignMeasureSchema]) as z.ZodType<\n PdfMeasure | PdfForeignMeasure\n >,\n )\n .nullable()\n .optional()\n .space('measure');\n\n/** Our caption on a polygon or polyline measurement; `null` when the shape has no caption flag. */\nexport const shapeCaptionFields = {\n captionEnabled: field.data(z.boolean()).nullable().optional(),\n /** `null` places the caption automatically. */\n captionCenter: field.data(PdfPointSchema).nullable().optional().space('point'),\n};\n","import { CaretIntentSchema } from '../../base.schema';\nimport { defineKind, field } from '../../declaration';\nimport { annotationBaseFields, boxFields, colorStyleFields } from '../shared-fields';\n\nexport const CaretDeclaration = defineKind('caret', {\n ...annotationBaseFields,\n ...colorStyleFields,\n ...boxFields,\n intent: field.data(CaretIntentSchema).nullable().optional(),\n});\n","import type { CreateOf, ReadOf, UpdateOf } from '../../declaration';\nimport type { Coordinates, PageCoordinates } from '../../../pageSpace/coordinates';\nimport type { AnnotationKindModule } from '../../registry';\nimport { PdfAnnotationSubtypeCode } from '../../subtype';\nimport { CaretDeclaration } from './declaration';\n\nexport { CaretDeclaration } from './declaration';\n\nexport type CaretAnnotation<C extends Coordinates = PageCoordinates> = ReadOf<\n typeof CaretDeclaration,\n C\n>;\nexport type CaretDraft<C extends Coordinates = PageCoordinates> = CreateOf<\n typeof CaretDeclaration,\n C\n>;\nexport type CaretPatch<C extends Coordinates = PageCoordinates> = UpdateOf<\n typeof CaretDeclaration,\n C\n>;\n\nexport const CaretDTOSchema = CaretDeclaration.readSchema;\nexport const CaretDraftSchema = CaretDeclaration.createSchema;\nexport const CaretPatchSchema = CaretDeclaration.updateSchema;\n\nexport const CaretKind: AnnotationKindModule<'caret', CaretAnnotation, CaretDraft, CaretPatch> = {\n subtype: 'caret',\n pdfSubtypeCode: PdfAnnotationSubtypeCode.CARET,\n dtoSchema: CaretDTOSchema,\n draftSchema: CaretDraftSchema,\n patchSchema: CaretPatchSchema,\n readBackWrites: CaretDeclaration.readBackWrites,\n};\n","import { defineKind } from '../../declaration';\nimport { shapeFields } from '../shared-fields';\n\nexport const CircleDeclaration = defineKind('circle', shapeFields);\n","import type { CreateOf, ReadOf, UpdateOf } from '../../declaration';\nimport type { Coordinates, PageCoordinates } from '../../../pageSpace/coordinates';\nimport type { AnnotationKindModule } from '../../registry';\nimport { PdfAnnotationSubtypeCode } from '../../subtype';\nimport { CircleDeclaration } from './declaration';\n\nexport { CircleDeclaration } from './declaration';\n\nexport type CircleAnnotation<C extends Coordinates = PageCoordinates> = ReadOf<\n typeof CircleDeclaration,\n C\n>;\nexport type CircleDraft<C extends Coordinates = PageCoordinates> = CreateOf<\n typeof CircleDeclaration,\n C\n>;\nexport type CirclePatch<C extends Coordinates = PageCoordinates> = UpdateOf<\n typeof CircleDeclaration,\n C\n>;\n\nexport const CircleDTOSchema = CircleDeclaration.readSchema;\nexport const CircleDraftSchema = CircleDeclaration.createSchema;\nexport const CirclePatchSchema = CircleDeclaration.updateSchema;\n\nexport const CircleKind: AnnotationKindModule<\n 'circle',\n CircleAnnotation,\n CircleDraft,\n CirclePatch\n> = {\n subtype: 'circle',\n pdfSubtypeCode: PdfAnnotationSubtypeCode.CIRCLE,\n dtoSchema: CircleDTOSchema,\n draftSchema: CircleDraftSchema,\n patchSchema: CirclePatchSchema,\n readBackWrites: CircleDeclaration.readBackWrites,\n};\n","import { z } from 'zod';\n\n/**\n * A multipart message carries each file as a part `resource:<key>`, and its\n * JSON names the file by role: `resources: { <role>: <key> }`, on the\n * object the files belong to. These are those objects, one per set of roles.\n */\n\n/** A file's key: the `<key>` of its `resource:<key>` part. */\nexport const ResourceKeySchema = z.string().min(1);\n\n/** An annotation write's files: its drawing and its attached file. */\nexport const AnnotationResourceKeysSchema = z\n .object({ appearance: ResourceKeySchema.optional(), file: ResourceKeySchema.optional() })\n .strict();\n\n/** A drawn appearance: a signature's mark, as a one-page PDF or an image. */\nexport const AppearanceResourceKeysSchema = z.object({ appearance: ResourceKeySchema }).strict();\n\n/** An attachment's file. */\nexport const FileResourceKeysSchema = z.object({ file: ResourceKeySchema }).strict();\n\n/** The PDF whose pages an insert copies in. */\nexport const SourceResourceKeysSchema = z.object({ source: ResourceKeySchema }).strict();\n\n/** An answer's picture. */\nexport const ImageResourceKeysSchema = z.object({ image: ResourceKeySchema }).strict();\n","import { z } from 'zod';\n\nimport { IsoDateTimeSchema } from './IsoDateTime.schema';\nimport { FileResourceKeysSchema } from '../wire/resourceKeys';\n\nimport type {\n Attachment,\n AttachmentFileInfo,\n AttachmentRef,\n WireAttachmentFile,\n} from './Attachment';\n\n/**\n * Wire schemas for the attachment vocabulary (see `Attachment.ts`). The\n * write-side `AttachmentFileSource` carries bytes and never appears on the\n * wire; `WireAttachmentFile` is its form there.\n */\n\nexport const WireAttachmentFileSchema: z.ZodType<WireAttachmentFile> = z.object({\n resources: FileResourceKeysSchema,\n name: z.string().min(1),\n mimeType: z.string().optional(),\n description: z.string().optional(),\n});\n\nexport const AttachmentFileInfoSchema: z.ZodType<AttachmentFileInfo> = z.object({\n name: z.string(),\n mimeType: z.string().nullable(),\n description: z.string().nullable(),\n size: z.number().int().nonnegative().nullable(),\n checksum: z.string().nullable(),\n createdAt: IsoDateTimeSchema.nullable(),\n modifiedAt: IsoDateTimeSchema.nullable(),\n});\n\nexport const AttachmentRefSchema: z.ZodType<AttachmentRef> = z.object({\n kind: z.literal('key'),\n key: z.string().min(1),\n});\n\nexport const AttachmentSchema: z.ZodType<Attachment> = z.object({\n // A foreign tree entry whose key can't be read lists with an empty key.\n ref: z.object({ kind: z.literal('key'), key: z.string() }),\n name: z.string(),\n mimeType: z.string().nullable(),\n description: z.string().nullable(),\n size: z.number().int().nonnegative().nullable(),\n checksum: z.string().nullable(),\n createdAt: IsoDateTimeSchema.nullable(),\n modifiedAt: IsoDateTimeSchema.nullable(),\n index: z.number().int().nonnegative(),\n});\n","import { z } from 'zod';\n\n/** `/Name` icon of a file attachment annotation (ISO 32000-2 §12.5.6.15). */\nexport type FileAttachmentIcon = 'push-pin' | 'paperclip' | 'graph' | 'tag';\n\nexport const FileAttachmentIconSchema: z.ZodType<FileAttachmentIcon> = z.enum([\n 'push-pin',\n 'paperclip',\n 'graph',\n 'tag',\n]);\n","import { z } from 'zod';\n\nimport { AttachmentFileInfoSchema } from '../../../dto/Attachment.schema';\nimport { defineKind, field } from '../../declaration';\nimport { annotationBaseFields, colorStyleFields } from '../shared-fields';\nimport { FileAttachmentIconSchema } from './values';\n\n/**\n * The file's metadata; its bytes travel as the `file` resource. What a read\n * adds (size, checksum, creation date) comes from the bytes and is ignored.\n * A create may leave it out when the resource is a `File`, which brings its\n * name and type.\n */\nconst AttachmentFileWriteSchema = z.object({\n name: z.string().min(1),\n mimeType: z.string().nullable().optional(),\n description: z.string().nullable().optional(),\n});\n\n/** A file on the page: its icon fills `rect`, 20×20 at the usual size. */\nexport const FileAttachmentDeclaration = defineKind(\n 'file-attachment',\n {\n ...annotationBaseFields,\n ...colorStyleFields,\n icon: field.data(FileAttachmentIconSchema).optional(),\n /**\n * `null` when the file specification has no embedded file. A write takes\n * what a read returns, so a read can be copied: on a create `null` is the\n * same as leaving it out, and an update that sends back the `null` a read\n * returned changes nothing (a file can't be removed).\n */\n file: field\n .data(AttachmentFileInfoSchema)\n .writes(AttachmentFileWriteSchema)\n .nullable()\n .optional(),\n },\n { file: 'required' },\n);\n","import type { CreateOf, ReadOf, UpdateOf } from '../../declaration';\nimport type { Coordinates, PageCoordinates } from '../../../pageSpace/coordinates';\nimport type { AnnotationKindModule } from '../../registry';\nimport { PdfAnnotationSubtypeCode } from '../../subtype';\nimport { FileAttachmentDeclaration } from './declaration';\n\nexport { FileAttachmentDeclaration } from './declaration';\nexport { FileAttachmentIconSchema } from './values';\nexport type { FileAttachmentIcon } from './values';\n\nexport type FileAttachmentAnnotation<C extends Coordinates = PageCoordinates> = ReadOf<\n typeof FileAttachmentDeclaration,\n C\n>;\n/**\n * `file` is the file's name, MIME type and description; its bytes travel\n * beside the data, as the `file` resource. In an update, `file` replaces all\n * three, and the `file` resource replaces the bytes.\n */\nexport type FileAttachmentDraft<C extends Coordinates = PageCoordinates> = CreateOf<\n typeof FileAttachmentDeclaration,\n C\n>;\nexport type FileAttachmentPatch<C extends Coordinates = PageCoordinates> = UpdateOf<\n typeof FileAttachmentDeclaration,\n C\n>;\n\nexport const FileAttachmentDTOSchema = FileAttachmentDeclaration.readSchema;\nexport const FileAttachmentDraftSchema = FileAttachmentDeclaration.createSchema;\nexport const FileAttachmentPatchSchema = FileAttachmentDeclaration.updateSchema;\n\nexport const FileAttachmentKind: AnnotationKindModule<\n 'file-attachment',\n FileAttachmentAnnotation,\n FileAttachmentDraft,\n FileAttachmentPatch\n> = {\n subtype: 'file-attachment',\n pdfSubtypeCode: PdfAnnotationSubtypeCode.FILEATTACHMENT,\n dtoSchema: FileAttachmentDTOSchema,\n draftSchema: FileAttachmentDraftSchema,\n patchSchema: FileAttachmentPatchSchema,\n readBackWrites: FileAttachmentDeclaration.readBackWrites,\n};\n","import { z } from 'zod';\n\nimport { ColorSchema } from '../../base.schema';\nimport type {\n RichTextAlign,\n RichTextDocument,\n RichTextDocumentInput,\n RichTextParagraph,\n RichTextRunStyle,\n} from '../../../dto/RichText';\n\n/** How a paragraph's lines line up: a free text's `textAlign` too. */\nexport const RichTextAlignSchema: z.ZodType<RichTextAlign> = z.enum([\n 'left',\n 'center',\n 'right',\n 'justify',\n]);\n\nconst RichTextRunStyleShape = {\n family: z.string().min(1),\n weight: z.number().int().min(100).max(900),\n italic: z.boolean(),\n size: z.number().nonnegative(),\n color: ColorSchema,\n decoration: z.array(z.enum(['underline', 'line-through', 'word'])),\n script: z.enum(['normal', 'sub', 'super']),\n letterSpacing: z.number(),\n horizontalScale: z.number().positive(),\n unknown: z.string().optional(),\n};\nconst RichTextParagraphPropsShape = {\n align: RichTextAlignSchema,\n dir: z.enum(['ltr', 'rtl']),\n lineHeight: z.number().positive().optional(),\n margins: z\n .object({ top: z.number(), bottom: z.number(), left: z.number(), right: z.number() })\n .optional(),\n textIndent: z.number().optional(),\n unknown: z.string().optional(),\n};\nconst RichTextRunStyleDeltaSchema: z.ZodType<Partial<RichTextRunStyle>> = z\n .object(RichTextRunStyleShape)\n .partial();\nconst RichTextParagraphSchema: z.ZodType<RichTextParagraph> = z\n .object({\n ...RichTextParagraphPropsShape,\n runs: z.array(z.object({ text: z.string(), style: RichTextRunStyleDeltaSchema.optional() })),\n })\n .partial({ align: true, dir: true }) as unknown as z.ZodType<RichTextParagraph>;\nexport const RichTextDocumentSchema: z.ZodType<RichTextDocument> = z.object({\n body: z.object({ ...RichTextRunStyleShape, ...RichTextParagraphPropsShape }),\n paragraphs: z.array(RichTextParagraphSchema),\n}) as unknown as z.ZodType<RichTextDocument>;\nexport const RichTextDocumentInputSchema: z.ZodType<RichTextDocumentInput> = z.object({\n body: z\n .object({ ...RichTextRunStyleShape, ...RichTextParagraphPropsShape })\n .partial()\n .optional(),\n paragraphs: z.array(RichTextParagraphSchema),\n}) as unknown as z.ZodType<RichTextDocumentInput>;\n","import { z } from 'zod';\n\nimport { CalloutLineSchema } from '../../../geometry/schemas';\nimport {\n AnnotationBorderStyleSchema,\n ColorSchema,\n DrawnBorderStyleSchema,\n FreeTextIntentSchema,\n FreeTextIntentWriteSchema,\n LineEndingSchema,\n VerticalAlignmentSchema,\n} from '../../base.schema';\nimport { defineKind, field } from '../../declaration';\nimport { annotationBaseFields, boxFields, FontNameSchema } from '../shared-fields';\nimport { RichTextAlignSchema, RichTextDocumentInputSchema, RichTextDocumentSchema } from './values';\n\nexport const FreeTextDeclaration = defineKind('free-text', {\n ...annotationBaseFields,\n ...boxFields,\n /**\n * A create without it is a callout when it has a `calloutLine`, else a\n * plain box. A typewriter another app made is kept as it is.\n */\n intent: field.data(FreeTextIntentSchema).writes(FreeTextIntentWriteSchema).readBack().optional(),\n /** The text's font: the rich text body's. Helvetica when a create leaves it out. */\n fontFamily: field.data(FontNameSchema).optional(),\n /** The body's size in points: 12 when a create leaves it out. */\n fontSize: field.data(z.number().positive()).optional(),\n /** The body's alignment: left when a create leaves it out. */\n textAlign: field.data(RichTextAlignSchema).optional(),\n /** Where the lines sit in the box: top when a create leaves it out. */\n verticalAlign: field.data(VerticalAlignmentSchema).optional(),\n richText: field\n .data(RichTextDocumentSchema)\n .writes(RichTextDocumentInputSchema)\n .optional()\n .space('length'),\n /** The border's color, and a callout line's. */\n color: field.data(ColorSchema).optional(),\n /** The text's color: the rich text body's. Black when a create leaves it out. */\n fontColor: field.data(ColorSchema).optional(),\n interiorColor: field.data(ColorSchema).nullable().optional(),\n opacity: field.data(z.number().min(0).max(1)).optional(),\n strokeWidth: field.data(z.number().nonnegative()).optional(),\n borderStyle: field\n .data(AnnotationBorderStyleSchema)\n .writes(DrawnBorderStyleSchema)\n .readBack()\n .optional(),\n dashArray: field.data(z.array(z.number().nonnegative())).nullable().optional(),\n cloudyIntensity: field.data(z.number().positive()).nullable().optional(),\n calloutLine: field.data(CalloutLineSchema).nullable().optional().space('calloutLine'),\n lineEnding: field.data(LineEndingSchema).nullable().optional(),\n});\n","import type { CreateOf, ReadOf, UpdateOf } from '../../declaration';\nimport type { Coordinates, PageCoordinates } from '../../../pageSpace/coordinates';\nimport type { AnnotationKindModule } from '../../registry';\nimport { PdfAnnotationSubtypeCode } from '../../subtype';\nimport { FreeTextDeclaration } from './declaration';\n\nexport { FreeTextDeclaration } from './declaration';\nexport { RichTextDocumentInputSchema, RichTextDocumentSchema } from './values';\n\nexport type FreeTextAnnotation<C extends Coordinates = PageCoordinates> = ReadOf<\n typeof FreeTextDeclaration,\n C\n>;\nexport type FreeTextDraft<C extends Coordinates = PageCoordinates> = CreateOf<\n typeof FreeTextDeclaration,\n C\n>;\nexport type FreeTextPatch<C extends Coordinates = PageCoordinates> = UpdateOf<\n typeof FreeTextDeclaration,\n C\n>;\n\nexport const FreeTextDTOSchema = FreeTextDeclaration.readSchema;\nexport const FreeTextDraftSchema = FreeTextDeclaration.createSchema;\nexport const FreeTextPatchSchema = FreeTextDeclaration.updateSchema;\n\nexport const FreeTextKind: AnnotationKindModule<\n 'free-text',\n FreeTextAnnotation,\n FreeTextDraft,\n FreeTextPatch\n> = {\n subtype: 'free-text',\n pdfSubtypeCode: PdfAnnotationSubtypeCode.FREETEXT,\n dtoSchema: FreeTextDTOSchema,\n draftSchema: FreeTextDraftSchema,\n patchSchema: FreeTextPatchSchema,\n readBackWrites: FreeTextDeclaration.readBackWrites,\n};\n","import { defineKind } from '../../declaration';\nimport { textMarkupFields } from '../shared-fields';\n\nexport const HighlightDeclaration = defineKind('highlight', textMarkupFields);\n","import type { CreateOf, ReadOf, UpdateOf } from '../../declaration';\nimport type { Coordinates, PageCoordinates } from '../../../pageSpace/coordinates';\nimport type { AnnotationKindModule } from '../../registry';\nimport { PdfAnnotationSubtypeCode } from '../../subtype';\nimport { HighlightDeclaration } from './declaration';\n\nexport { HighlightDeclaration } from './declaration';\n\nexport type HighlightAnnotation<C extends Coordinates = PageCoordinates> = ReadOf<\n typeof HighlightDeclaration,\n C\n>;\nexport type HighlightDraft<C extends Coordinates = PageCoordinates> = CreateOf<\n typeof HighlightDeclaration,\n C\n>;\nexport type HighlightPatch<C extends Coordinates = PageCoordinates> = UpdateOf<\n typeof HighlightDeclaration,\n C\n>;\n\nexport const HighlightDTOSchema = HighlightDeclaration.readSchema;\nexport const HighlightDraftSchema = HighlightDeclaration.createSchema;\nexport const HighlightPatchSchema = HighlightDeclaration.updateSchema;\n\nexport const HighlightKind: AnnotationKindModule<\n 'highlight',\n HighlightAnnotation,\n HighlightDraft,\n HighlightPatch\n> = {\n subtype: 'highlight',\n pdfSubtypeCode: PdfAnnotationSubtypeCode.HIGHLIGHT,\n dtoSchema: HighlightDTOSchema,\n draftSchema: HighlightDraftSchema,\n patchSchema: HighlightPatchSchema,\n readBackWrites: HighlightDeclaration.readBackWrites,\n};\n","import { z } from 'zod';\n\nimport { InkListSchema, PdfPointSchema } from '../../../geometry/schemas';\nimport { InkIntentSchema } from '../../base.schema';\nimport { defineKind, field } from '../../declaration';\nimport {\n annotationBaseFields,\n drawnRectFields,\n geometryStyleFields,\n pointsTurnFields,\n} from '../shared-fields';\n\nexport const InkDeclaration = defineKind('ink', {\n ...annotationBaseFields,\n ...geometryStyleFields,\n /** More than 0 on a write: ink has no fill, so a line of 0 draws nothing. */\n strokeWidth: field\n .data(z.number().nonnegative())\n .writes(z.number().positive())\n .readBack()\n .optional(),\n ...drawnRectFields,\n /** At least one stroke on a write, and no stroke without points. */\n inkList: field\n .data(InkListSchema)\n .writes(z.array(z.array(PdfPointSchema).min(1)).min(1))\n .readBack()\n .space('strokes'),\n intent: field.data(InkIntentSchema).nullable().optional(),\n ...pointsTurnFields,\n});\n","import type { CreateOf, ReadOf, UpdateOf } from '../../declaration';\nimport type { Coordinates, PageCoordinates } from '../../../pageSpace/coordinates';\nimport type { AnnotationKindModule } from '../../registry';\nimport { PdfAnnotationSubtypeCode } from '../../subtype';\nimport { InkDeclaration } from './declaration';\n\nexport { InkDeclaration } from './declaration';\n\nexport type InkAnnotation<C extends Coordinates = PageCoordinates> = ReadOf<\n typeof InkDeclaration,\n C\n>;\nexport type InkDraft<C extends Coordinates = PageCoordinates> = CreateOf<typeof InkDeclaration, C>;\nexport type InkPatch<C extends Coordinates = PageCoordinates> = UpdateOf<typeof InkDeclaration, C>;\n\nexport const InkDTOSchema = InkDeclaration.readSchema;\nexport const InkDraftSchema = InkDeclaration.createSchema;\nexport const InkPatchSchema = InkDeclaration.updateSchema;\n\nexport const InkKind: AnnotationKindModule<'ink', InkAnnotation, InkDraft, InkPatch> = {\n subtype: 'ink',\n pdfSubtypeCode: PdfAnnotationSubtypeCode.INK,\n dtoSchema: InkDTOSchema,\n draftSchema: InkDraftSchema,\n patchSchema: InkPatchSchema,\n readBackWrites: InkDeclaration.readBackWrites,\n};\n","import { z } from 'zod';\n\nimport { LineIntentSchema, LineLeaderSchema } from '../../../dto/Measure.schema';\nimport { LinePointsSchema } from '../../../geometry/schemas';\nimport { LineEndingsSchema } from '../../base.schema';\nimport { defineKind, field } from '../../declaration';\nimport {\n annotationBaseFields,\n drawnRectFields,\n filledStyleFields,\n measureField,\n pointsTurnFields,\n} from '../shared-fields';\n\nexport const LineDeclaration = defineKind('line', {\n ...annotationBaseFields,\n ...filledStyleFields,\n ...drawnRectFields,\n linePoints: field.data(LinePointsSchema).space('linePoints'),\n lineEndings: field.data(LineEndingsSchema).optional(),\n ...pointsTurnFields,\n intent: field.data(LineIntentSchema).nullable().optional(),\n measure: measureField,\n /** `/Cap`: paint `/Contents` on the line. */\n captionEnabled: field.data(z.boolean()).nullable().optional(),\n /** `/CP`. */\n captionPosition: field.data(z.enum(['inline', 'top'])).optional(),\n /** `/CO`, along the line and its normal; `null` is the normal position. */\n captionOffset: field\n .data(z.object({ along: z.number(), perpendicular: z.number() }))\n .nullable()\n .optional(),\n /** `/LL`, `/LLE` and `/LLO`. */\n leader: field.data(LineLeaderSchema).nullable().optional(),\n});\n","import type { CreateOf, ReadOf, UpdateOf } from '../../declaration';\nimport type { Coordinates, PageCoordinates } from '../../../pageSpace/coordinates';\nimport type { AnnotationKindModule } from '../../registry';\nimport { PdfAnnotationSubtypeCode } from '../../subtype';\nimport { LineDeclaration } from './declaration';\n\nexport { LineDeclaration } from './declaration';\n\nexport type LineAnnotation<C extends Coordinates = PageCoordinates> = ReadOf<\n typeof LineDeclaration,\n C\n>;\nexport type LineDraft<C extends Coordinates = PageCoordinates> = CreateOf<\n typeof LineDeclaration,\n C\n>;\nexport type LinePatch<C extends Coordinates = PageCoordinates> = UpdateOf<\n typeof LineDeclaration,\n C\n>;\n\nexport const LineDTOSchema = LineDeclaration.readSchema;\nexport const LineDraftSchema = LineDeclaration.createSchema;\nexport const LinePatchSchema = LineDeclaration.updateSchema;\n\nexport const LineKind: AnnotationKindModule<'line', LineAnnotation, LineDraft, LinePatch> = {\n subtype: 'line',\n pdfSubtypeCode: PdfAnnotationSubtypeCode.LINE,\n dtoSchema: LineDTOSchema,\n draftSchema: LineDraftSchema,\n patchSchema: LinePatchSchema,\n readBackWrites: LineDeclaration.readBackWrites,\n};\n","import { defineKind, field } from '../../declaration';\nimport { annotationBaseFields } from '../shared-fields';\nimport { FileLinkTargetSchema, FileLinkTargetWritableSchema } from './values';\n\nexport const LinkDeclaration = defineKind('link', {\n ...annotationBaseFields,\n target: field\n .data(FileLinkTargetSchema)\n .writes(FileLinkTargetWritableSchema)\n .nullable()\n .readBack()\n .space('linkTarget'),\n});\n","import type { CreateOf, ReadOf, UpdateOf } from '../../declaration';\nimport type { Coordinates, PageCoordinates } from '../../../pageSpace/coordinates';\nimport type { AnnotationKindModule } from '../../registry';\nimport { PdfAnnotationSubtypeCode } from '../../subtype';\nimport { LinkDeclaration } from './declaration';\n\nexport { LinkDeclaration } from './declaration';\nexport { PdfDestinationSchema, PdfLinkTargetSchema, PdfLinkTargetWritableSchema } from './values';\n\nexport type LinkAnnotation<C extends Coordinates = PageCoordinates> = ReadOf<\n typeof LinkDeclaration,\n C\n>;\nexport type LinkDraft<C extends Coordinates = PageCoordinates> = CreateOf<\n typeof LinkDeclaration,\n C\n>;\nexport type LinkPatch<C extends Coordinates = PageCoordinates> = UpdateOf<\n typeof LinkDeclaration,\n C\n>;\n\nexport const LinkDTOSchema = LinkDeclaration.readSchema;\nexport const LinkDraftSchema = LinkDeclaration.createSchema;\nexport const LinkPatchSchema = LinkDeclaration.updateSchema;\n\nexport const LinkKind: AnnotationKindModule<'link', LinkAnnotation, LinkDraft, LinkPatch> = {\n subtype: 'link',\n pdfSubtypeCode: PdfAnnotationSubtypeCode.LINK,\n dtoSchema: LinkDTOSchema,\n draftSchema: LinkDraftSchema,\n patchSchema: LinkPatchSchema,\n readBackWrites: LinkDeclaration.readBackWrites,\n};\n","import { z } from 'zod';\n\nimport { PolygonIntentSchema } from '../../../dto/Measure.schema';\nimport { PdfPointSchema } from '../../../geometry/schemas';\nimport { defineKind, field } from '../../declaration';\nimport { measureField, shapeCaptionFields, vertexFields } from '../shared-fields';\n\nexport const PolygonDeclaration = defineKind('polygon', {\n ...vertexFields,\n /** At least three points on a write; fewer enclose nothing. */\n vertices: field\n .data(z.array(PdfPointSchema))\n .writes(z.array(PdfPointSchema).min(3))\n .readBack()\n .space('points'),\n ...shapeCaptionFields,\n intent: field.data(PolygonIntentSchema).nullable().optional(),\n measure: measureField,\n cloudyIntensity: field.data(z.number().positive()).nullable().optional(),\n});\n","import type { CreateOf, ReadOf, UpdateOf } from '../../declaration';\nimport type { Coordinates, PageCoordinates } from '../../../pageSpace/coordinates';\nimport type { AnnotationKindModule } from '../../registry';\nimport { PdfAnnotationSubtypeCode } from '../../subtype';\nimport { PolygonDeclaration } from './declaration';\n\nexport { PolygonDeclaration } from './declaration';\n\nexport type PolygonAnnotation<C extends Coordinates = PageCoordinates> = ReadOf<\n typeof PolygonDeclaration,\n C\n>;\nexport type PolygonDraft<C extends Coordinates = PageCoordinates> = CreateOf<\n typeof PolygonDeclaration,\n C\n>;\nexport type PolygonPatch<C extends Coordinates = PageCoordinates> = UpdateOf<\n typeof PolygonDeclaration,\n C\n>;\n\nexport const PolygonDTOSchema = PolygonDeclaration.readSchema;\nexport const PolygonDraftSchema = PolygonDeclaration.createSchema;\nexport const PolygonPatchSchema = PolygonDeclaration.updateSchema;\n\nexport const PolygonKind: AnnotationKindModule<\n 'polygon',\n PolygonAnnotation,\n PolygonDraft,\n PolygonPatch\n> = {\n subtype: 'polygon',\n pdfSubtypeCode: PdfAnnotationSubtypeCode.POLYGON,\n dtoSchema: PolygonDTOSchema,\n draftSchema: PolygonDraftSchema,\n patchSchema: PolygonPatchSchema,\n readBackWrites: PolygonDeclaration.readBackWrites,\n};\n","import { z } from 'zod';\n\nimport { PolylineIntentSchema } from '../../../dto/Measure.schema';\nimport { PdfPointSchema } from '../../../geometry/schemas';\nimport { LineEndingsSchema } from '../../base.schema';\nimport { defineKind, field } from '../../declaration';\nimport { measureField, shapeCaptionFields, vertexFields } from '../shared-fields';\n\nexport const PolylineDeclaration = defineKind('polyline', {\n ...vertexFields,\n /** At least two points on a write; fewer draw nothing. */\n vertices: field\n .data(z.array(PdfPointSchema))\n .writes(z.array(PdfPointSchema).min(2))\n .readBack()\n .space('points'),\n ...shapeCaptionFields,\n intent: field.data(PolylineIntentSchema).nullable().optional(),\n measure: measureField,\n lineEndings: field.data(LineEndingsSchema).optional(),\n});\n","import type { CreateOf, ReadOf, UpdateOf } from '../../declaration';\nimport type { Coordinates, PageCoordinates } from '../../../pageSpace/coordinates';\nimport type { AnnotationKindModule } from '../../registry';\nimport { PdfAnnotationSubtypeCode } from '../../subtype';\nimport { PolylineDeclaration } from './declaration';\n\nexport { PolylineDeclaration } from './declaration';\n\nexport type PolylineAnnotation<C extends Coordinates = PageCoordinates> = ReadOf<\n typeof PolylineDeclaration,\n C\n>;\nexport type PolylineDraft<C extends Coordinates = PageCoordinates> = CreateOf<\n typeof PolylineDeclaration,\n C\n>;\nexport type PolylinePatch<C extends Coordinates = PageCoordinates> = UpdateOf<\n typeof PolylineDeclaration,\n C\n>;\n\nexport const PolylineDTOSchema = PolylineDeclaration.readSchema;\nexport const PolylineDraftSchema = PolylineDeclaration.createSchema;\nexport const PolylinePatchSchema = PolylineDeclaration.updateSchema;\n\nexport const PolylineKind: AnnotationKindModule<\n 'polyline',\n PolylineAnnotation,\n PolylineDraft,\n PolylinePatch\n> = {\n subtype: 'polyline',\n pdfSubtypeCode: PdfAnnotationSubtypeCode.POLYLINE,\n dtoSchema: PolylineDTOSchema,\n draftSchema: PolylineDraftSchema,\n patchSchema: PolylinePatchSchema,\n readBackWrites: PolylineDeclaration.readBackWrites,\n};\n","import { z } from 'zod';\n\nimport { AnnotationRefSchema } from '../../base.schema';\nimport { defineKind, field } from '../../declaration';\nimport { annotationBaseFields } from '../shared-fields';\n\n/** The window that shows its parent annotation's text. */\nexport const PopupDeclaration = defineKind('popup', {\n ...annotationBaseFields,\n /**\n * `/Parent`: the annotation this popup shows. Required on create; `null`\n * on a read of a popup whose PDF names none, which an update may send\n * back unchanged.\n */\n parent: field.data(AnnotationRefSchema).nullableOnRead().readBack(),\n /** `/Open`: whether the window is shown open. `false` when the PDF doesn't say. */\n open: field.data(z.boolean()).optional(),\n});\n","import type { CreateOf, ReadOf, UpdateOf } from '../../declaration';\nimport type { Coordinates, PageCoordinates } from '../../../pageSpace/coordinates';\nimport type { AnnotationKindModule } from '../../registry';\nimport { PdfAnnotationSubtypeCode } from '../../subtype';\nimport { PopupDeclaration } from './declaration';\n\nexport { PopupDeclaration } from './declaration';\n\nexport type PopupAnnotation<C extends Coordinates = PageCoordinates> = ReadOf<\n typeof PopupDeclaration,\n C\n>;\nexport type PopupDraft<C extends Coordinates = PageCoordinates> = CreateOf<\n typeof PopupDeclaration,\n C\n>;\nexport type PopupPatch<C extends Coordinates = PageCoordinates> = UpdateOf<\n typeof PopupDeclaration,\n C\n>;\n\nexport const PopupDTOSchema = PopupDeclaration.readSchema;\nexport const PopupDraftSchema = PopupDeclaration.createSchema;\nexport const PopupPatchSchema = PopupDeclaration.updateSchema;\n\nexport const PopupKind: AnnotationKindModule<'popup', PopupAnnotation, PopupDraft, PopupPatch> = {\n subtype: 'popup',\n pdfSubtypeCode: PdfAnnotationSubtypeCode.POPUP,\n dtoSchema: PopupDTOSchema,\n draftSchema: PopupDraftSchema,\n patchSchema: PopupPatchSchema,\n readBackWrites: PopupDeclaration.readBackWrites,\n};\n","import { z } from 'zod';\n\nimport { PdfQuadSchema, PdfRectSchema } from '../../../geometry/schemas';\nimport { ColorSchema, TextAlignmentSchema } from '../../base.schema';\nimport { defineKind, field } from '../../declaration';\nimport { annotationBaseFields, colorStyleFields, FontNameSchema } from '../shared-fields';\n\nexport const RedactDeclaration = defineKind('redact', {\n ...annotationBaseFields,\n ...colorStyleFields,\n /** Worked out from the quads when a create gives quads and no `rect`. */\n rect: field.data(PdfRectSchema).optional().space('box'),\n quadPoints: field.data(z.array(PdfQuadSchema)).optional().space('quads'),\n interiorColor: field.data(ColorSchema).nullable().optional(),\n overlayText: field.data(z.string()).nullable().optional(),\n repeat: field.data(z.boolean()).optional(),\n /** A standard font or a registered key, as on free text. */\n fontFamily: field.data(FontNameSchema).optional(),\n /** `0` fits the label to the region. */\n fontSize: field.data(z.number().nonnegative()).optional(),\n fontColor: field.data(ColorSchema).optional(),\n textAlign: field.data(TextAlignmentSchema).optional(),\n});\n","import type { CreateOf, ReadOf, UpdateOf } from '../../declaration';\nimport type { Coordinates, PageCoordinates } from '../../../pageSpace/coordinates';\nimport type { AnnotationKindModule } from '../../registry';\nimport { PdfAnnotationSubtypeCode } from '../../subtype';\nimport { RedactDeclaration } from './declaration';\n\nexport { RedactDeclaration } from './declaration';\n\nexport type RedactAnnotation<C extends Coordinates = PageCoordinates> = ReadOf<\n typeof RedactDeclaration,\n C\n>;\nexport type RedactDraft<C extends Coordinates = PageCoordinates> = CreateOf<\n typeof RedactDeclaration,\n C\n>;\nexport type RedactPatch<C extends Coordinates = PageCoordinates> = UpdateOf<\n typeof RedactDeclaration,\n C\n>;\n\nexport const RedactDTOSchema = RedactDeclaration.readSchema;\nexport const RedactDraftSchema = RedactDeclaration.createSchema;\nexport const RedactPatchSchema = RedactDeclaration.updateSchema;\n\nexport const RedactKind: AnnotationKindModule<\n 'redact',\n RedactAnnotation,\n RedactDraft,\n RedactPatch\n> = {\n subtype: 'redact',\n pdfSubtypeCode: PdfAnnotationSubtypeCode.REDACT,\n dtoSchema: RedactDTOSchema,\n draftSchema: RedactDraftSchema,\n patchSchema: RedactPatchSchema,\n readBackWrites: RedactDeclaration.readBackWrites,\n};\n","import { defineKind } from '../../declaration';\nimport { shapeFields } from '../shared-fields';\n\nexport const SquareDeclaration = defineKind('square', shapeFields);\n","import type { CreateOf, ReadOf, UpdateOf } from '../../declaration';\nimport type { Coordinates, PageCoordinates } from '../../../pageSpace/coordinates';\nimport type { AnnotationKindModule } from '../../registry';\nimport { PdfAnnotationSubtypeCode } from '../../subtype';\nimport { SquareDeclaration } from './declaration';\n\nexport { SquareDeclaration } from './declaration';\n\nexport type SquareAnnotation<C extends Coordinates = PageCoordinates> = ReadOf<\n typeof SquareDeclaration,\n C\n>;\nexport type SquareDraft<C extends Coordinates = PageCoordinates> = CreateOf<\n typeof SquareDeclaration,\n C\n>;\nexport type SquarePatch<C extends Coordinates = PageCoordinates> = UpdateOf<\n typeof SquareDeclaration,\n C\n>;\n\nexport const SquareDTOSchema = SquareDeclaration.readSchema;\nexport const SquareDraftSchema = SquareDeclaration.createSchema;\nexport const SquarePatchSchema = SquareDeclaration.updateSchema;\n\nexport const SquareKind: AnnotationKindModule<\n 'square',\n SquareAnnotation,\n SquareDraft,\n SquarePatch\n> = {\n subtype: 'square',\n pdfSubtypeCode: PdfAnnotationSubtypeCode.SQUARE,\n dtoSchema: SquareDTOSchema,\n draftSchema: SquareDraftSchema,\n patchSchema: SquarePatchSchema,\n readBackWrites: SquareDeclaration.readBackWrites,\n};\n","import { defineKind } from '../../declaration';\nimport { textMarkupFields } from '../shared-fields';\n\nexport const SquigglyDeclaration = defineKind('squiggly', textMarkupFields);\n","import type { CreateOf, ReadOf, UpdateOf } from '../../declaration';\nimport type { Coordinates, PageCoordinates } from '../../../pageSpace/coordinates';\nimport type { AnnotationKindModule } from '../../registry';\nimport { PdfAnnotationSubtypeCode } from '../../subtype';\nimport { SquigglyDeclaration } from './declaration';\n\nexport { SquigglyDeclaration } from './declaration';\n\nexport type SquigglyAnnotation<C extends Coordinates = PageCoordinates> = ReadOf<\n typeof SquigglyDeclaration,\n C\n>;\nexport type SquigglyDraft<C extends Coordinates = PageCoordinates> = CreateOf<\n typeof SquigglyDeclaration,\n C\n>;\nexport type SquigglyPatch<C extends Coordinates = PageCoordinates> = UpdateOf<\n typeof SquigglyDeclaration,\n C\n>;\n\nexport const SquigglyDTOSchema = SquigglyDeclaration.readSchema;\nexport const SquigglyDraftSchema = SquigglyDeclaration.createSchema;\nexport const SquigglyPatchSchema = SquigglyDeclaration.updateSchema;\n\nexport const SquigglyKind: AnnotationKindModule<\n 'squiggly',\n SquigglyAnnotation,\n SquigglyDraft,\n SquigglyPatch\n> = {\n subtype: 'squiggly',\n pdfSubtypeCode: PdfAnnotationSubtypeCode.SQUIGGLY,\n dtoSchema: SquigglyDTOSchema,\n draftSchema: SquigglyDraftSchema,\n patchSchema: SquigglyPatchSchema,\n readBackWrites: SquigglyDeclaration.readBackWrites,\n};\n","import { z } from 'zod';\n\n/**\n * How a stamp's appearance is scaled into its box (CSS `object-fit`\n * vocabulary): `'contain'` keeps the aspect ratio and stays fully visible,\n * `'cover'` keeps the aspect ratio and fills the box, cropping if needed, and\n * `'fill'` stretches.\n */\nexport type StampFit = 'contain' | 'cover' | 'fill';\n\nexport const StampFitSchema: z.ZodType<StampFit> = z.enum(['contain', 'cover', 'fill']);\n","import { z } from 'zod';\n\nimport { defineKind, field } from '../../declaration';\nimport { annotationBaseFields, boxFields } from '../shared-fields';\nimport { StampFitSchema } from './values';\n\nexport const StampDeclaration = defineKind(\n 'stamp',\n {\n ...annotationBaseFields,\n ...boxFields,\n /** `/Name`: the stamp's label, such as `Approved`. */\n name: field.data(z.string()).nullable().optional(),\n /**\n * How the drawing is scaled into the box, and re-fit when the box changes\n * (`/EMBD_Metadata/AppearanceFit`). `null` when the PDF doesn't record it,\n * as for a stamp another tool made; the engine then fits with `'fill'`,\n * the way a PDF places any appearance in its `/Rect`. A create without it\n * fits with `'contain'` and records that.\n */\n fit: field.data(StampFitSchema).nullable().optional(),\n /** `/CA`, painted once over the whole drawing. */\n opacity: field.data(z.number().min(0).max(1)).optional(),\n },\n { appearance: 'required' },\n);\n","import type { CreateOf, ReadOf, UpdateOf } from '../../declaration';\nimport type { Coordinates, PageCoordinates } from '../../../pageSpace/coordinates';\nimport type { AnnotationKindModule } from '../../registry';\nimport { PdfAnnotationSubtypeCode } from '../../subtype';\nimport { StampDeclaration } from './declaration';\n\nexport { StampDeclaration } from './declaration';\nexport { StampFitSchema } from './values';\nexport type { StampFit } from './values';\n\nexport type StampAnnotation<C extends Coordinates = PageCoordinates> = ReadOf<\n typeof StampDeclaration,\n C\n>;\n/** The drawing travels beside the data, as the `appearance` resource; `fit` says how it fills the box. */\nexport type StampDraft<C extends Coordinates = PageCoordinates> = CreateOf<\n typeof StampDeclaration,\n C\n>;\nexport type StampPatch<C extends Coordinates = PageCoordinates> = UpdateOf<\n typeof StampDeclaration,\n C\n>;\n\nexport const StampDTOSchema = StampDeclaration.readSchema;\nexport const StampDraftSchema = StampDeclaration.createSchema;\nexport const StampPatchSchema = StampDeclaration.updateSchema;\n\nexport const StampKind: AnnotationKindModule<'stamp', StampAnnotation, StampDraft, StampPatch> = {\n subtype: 'stamp',\n pdfSubtypeCode: PdfAnnotationSubtypeCode.STAMP,\n dtoSchema: StampDTOSchema,\n draftSchema: StampDraftSchema,\n patchSchema: StampPatchSchema,\n readBackWrites: StampDeclaration.readBackWrites,\n};\n","import { StrikeoutIntentSchema } from '../../base.schema';\nimport { defineKind, field } from '../../declaration';\nimport { textMarkupFields } from '../shared-fields';\n\nexport const StrikeoutDeclaration = defineKind('strikeout', {\n ...textMarkupFields,\n intent: field.data(StrikeoutIntentSchema).nullable().optional(),\n});\n","import type { CreateOf, ReadOf, UpdateOf } from '../../declaration';\nimport type { Coordinates, PageCoordinates } from '../../../pageSpace/coordinates';\nimport type { AnnotationKindModule } from '../../registry';\nimport { PdfAnnotationSubtypeCode } from '../../subtype';\nimport { StrikeoutDeclaration } from './declaration';\n\nexport { StrikeoutDeclaration } from './declaration';\n\nexport type StrikeoutAnnotation<C extends Coordinates = PageCoordinates> = ReadOf<\n typeof StrikeoutDeclaration,\n C\n>;\nexport type StrikeoutDraft<C extends Coordinates = PageCoordinates> = CreateOf<\n typeof StrikeoutDeclaration,\n C\n>;\nexport type StrikeoutPatch<C extends Coordinates = PageCoordinates> = UpdateOf<\n typeof StrikeoutDeclaration,\n C\n>;\n\nexport const StrikeoutDTOSchema = StrikeoutDeclaration.readSchema;\nexport const StrikeoutDraftSchema = StrikeoutDeclaration.createSchema;\nexport const StrikeoutPatchSchema = StrikeoutDeclaration.updateSchema;\n\nexport const StrikeoutKind: AnnotationKindModule<\n 'strikeout',\n StrikeoutAnnotation,\n StrikeoutDraft,\n StrikeoutPatch\n> = {\n subtype: 'strikeout',\n pdfSubtypeCode: PdfAnnotationSubtypeCode.STRIKEOUT,\n dtoSchema: StrikeoutDTOSchema,\n draftSchema: StrikeoutDraftSchema,\n patchSchema: StrikeoutPatchSchema,\n readBackWrites: StrikeoutDeclaration.readBackWrites,\n};\n","import { z } from 'zod';\n\n/** `/Name` icon of a text (sticky note) annotation. */\nexport type NoteIcon =\n | 'comment'\n | 'key'\n | 'note'\n | 'help'\n | 'new-paragraph'\n | 'paragraph'\n | 'insert';\n\nexport const NoteIconSchema: z.ZodType<NoteIcon> = z.enum([\n 'comment',\n 'key',\n 'note',\n 'help',\n 'new-paragraph',\n 'paragraph',\n 'insert',\n]);\n","import { z } from 'zod';\n\nimport { defineKind, field } from '../../declaration';\nimport { annotationBaseFields, colorStyleFields } from '../shared-fields';\nimport { NoteIconSchema } from './values';\n\n/** A note: its icon fills `rect`, 20×20 at the usual size. */\nexport const TextDeclaration = defineKind('text', {\n ...annotationBaseFields,\n ...colorStyleFields,\n icon: field.data(NoteIconSchema).optional(),\n /**\n * `/Open`: whether the note's window shows open. Kept equal to its\n * popup's `open`: a write sets both. `false` when the PDF doesn't say.\n */\n open: field.data(z.boolean()).optional(),\n /** `/State`: standard states in lowercase, custom ones as written. */\n state: field.data(z.string().min(1)).nullable().optional(),\n stateModel: field.data(z.string().min(1)).nullable().optional(),\n});\n","import type { CreateOf, ReadOf, UpdateOf } from '../../declaration';\nimport type { Coordinates, PageCoordinates } from '../../../pageSpace/coordinates';\nimport type { AnnotationKindModule } from '../../registry';\nimport { PdfAnnotationSubtypeCode } from '../../subtype';\nimport { TextDeclaration } from './declaration';\n\nexport { TextDeclaration } from './declaration';\nexport type { NoteIcon } from './values';\nexport { NoteIconSchema } from './values';\n\nexport type TextAnnotation<C extends Coordinates = PageCoordinates> = ReadOf<\n typeof TextDeclaration,\n C\n>;\nexport type TextDraft<C extends Coordinates = PageCoordinates> = CreateOf<\n typeof TextDeclaration,\n C\n>;\nexport type TextPatch<C extends Coordinates = PageCoordinates> = UpdateOf<\n typeof TextDeclaration,\n C\n>;\n\nexport const TextDTOSchema = TextDeclaration.readSchema;\nexport const TextDraftSchema = TextDeclaration.createSchema;\nexport const TextPatchSchema = TextDeclaration.updateSchema;\n\nexport const TextKind: AnnotationKindModule<'text', TextAnnotation, TextDraft, TextPatch> = {\n subtype: 'text',\n pdfSubtypeCode: PdfAnnotationSubtypeCode.TEXT,\n dtoSchema: TextDTOSchema,\n draftSchema: TextDraftSchema,\n patchSchema: TextPatchSchema,\n readBackWrites: TextDeclaration.readBackWrites,\n};\n","import { defineKind } from '../../declaration';\nimport { textMarkupFields } from '../shared-fields';\n\nexport const UnderlineDeclaration = defineKind('underline', textMarkupFields);\n","import type { CreateOf, ReadOf, UpdateOf } from '../../declaration';\nimport type { Coordinates, PageCoordinates } from '../../../pageSpace/coordinates';\nimport type { AnnotationKindModule } from '../../registry';\nimport { PdfAnnotationSubtypeCode } from '../../subtype';\nimport { UnderlineDeclaration } from './declaration';\n\nexport { UnderlineDeclaration } from './declaration';\n\nexport type UnderlineAnnotation<C extends Coordinates = PageCoordinates> = ReadOf<\n typeof UnderlineDeclaration,\n C\n>;\nexport type UnderlineDraft<C extends Coordinates = PageCoordinates> = CreateOf<\n typeof UnderlineDeclaration,\n C\n>;\nexport type UnderlinePatch<C extends Coordinates = PageCoordinates> = UpdateOf<\n typeof UnderlineDeclaration,\n C\n>;\n\nexport const UnderlineDTOSchema = UnderlineDeclaration.readSchema;\nexport const UnderlineDraftSchema = UnderlineDeclaration.createSchema;\nexport const UnderlinePatchSchema = UnderlineDeclaration.updateSchema;\n\nexport const UnderlineKind: AnnotationKindModule<\n 'underline',\n UnderlineAnnotation,\n UnderlineDraft,\n UnderlinePatch\n> = {\n subtype: 'underline',\n pdfSubtypeCode: PdfAnnotationSubtypeCode.UNDERLINE,\n dtoSchema: UnderlineDTOSchema,\n draftSchema: UnderlineDraftSchema,\n patchSchema: UnderlinePatchSchema,\n readBackWrites: UnderlineDeclaration.readBackWrites,\n};\n","import { z } from 'zod';\n\nimport { defineKind, field } from '../../declaration';\nimport { annotationBaseFields } from '../shared-fields';\n\n/** An annotation of a type the engine doesn't model: only the shared fields are read. */\nexport const UnsupportedDeclaration = defineKind('unsupported', {\n ...annotationBaseFields,\n rawSubtypeCode: field.engine(z.number().int()),\n rawSubtypeName: field.engine(z.string()).nullable(),\n});\n","import { z } from 'zod';\n\nimport type { ReadOf } from '../../declaration';\nimport type { Coordinates, PageCoordinates } from '../../../pageSpace/coordinates';\nimport type { AnnotationKindModule } from '../../registry';\nimport { PdfAnnotationSubtypeCode } from '../../subtype';\nimport { UnsupportedDeclaration } from './declaration';\n\nexport { UnsupportedDeclaration } from './declaration';\n\nexport type UnsupportedAnnotation<C extends Coordinates = PageCoordinates> = ReadOf<\n typeof UnsupportedDeclaration,\n C\n>;\n/** An annotation of a type the engine doesn't model can't be created or updated. */\nexport type UnsupportedDraft = never;\nexport type UnsupportedPatch = never;\n\nexport const UnsupportedDTOSchema = UnsupportedDeclaration.readSchema;\nexport const UnsupportedDraftSchema: z.ZodType<never> = z.never();\nexport const UnsupportedPatchSchema: z.ZodType<never> = z.never();\n\nexport const UnsupportedKind: AnnotationKindModule<\n 'unsupported',\n UnsupportedAnnotation,\n UnsupportedDraft,\n UnsupportedPatch\n> = {\n subtype: 'unsupported',\n pdfSubtypeCode: PdfAnnotationSubtypeCode.UNKNOWN,\n dtoSchema: UnsupportedDTOSchema,\n draftSchema: UnsupportedDraftSchema,\n patchSchema: UnsupportedPatchSchema,\n readBackWrites: UnsupportedDeclaration.readBackWrites,\n};\n","import { z } from 'zod';\nimport type { FormFieldRef } from './FormFieldRef';\n\n/** Wire form of `FormFieldRef` — see the type. */\nexport const FormFieldRefSchema: z.ZodType<FormFieldRef> = z.discriminatedUnion('kind', [\n z.object({\n kind: z.literal('objectNumber'),\n objectNumber: z.number().int().positive(),\n }),\n z.object({\n kind: z.literal('fqn'),\n name: z.string().min(1),\n }),\n]);\n","import { z } from 'zod';\n\nimport {\n ColorSchema,\n TextAlignmentSchema,\n WidgetBorderStyleSchema,\n WidgetCheckStyleSchema,\n} from '../../base.schema';\nimport {\n FileAnnotationActionsSchema,\n FileWidgetActionsPatchSchema,\n} from '../../../dto/PdfAction.schema';\nimport { FormFieldRefSchema } from '../../../identity/FormFieldRef.schema';\nimport { defineKind, field } from '../../declaration';\nimport { annotationBaseFields, FontNameSchema, widgetBoxFields } from '../shared-fields';\n\nexport const WidgetDeclaration = defineKind('widget', {\n ...annotationBaseFields,\n ...widgetBoxFields,\n color: field.data(ColorSchema).nullable().optional(),\n interiorColor: field.data(ColorSchema).nullable().optional(),\n strokeWidth: field.data(z.number().nonnegative()).optional(),\n borderStyle: field.data(WidgetBorderStyleSchema).optional(),\n /** The border's dash pattern (`/BS /D`), for a dashed border; `null` for the default (3 on, 3 off). */\n dashArray: field.data(z.array(z.number().nonnegative())).nullable().optional(),\n /**\n * The font `/DA` names, as a free text names its font: a standard font's\n * name, a registered font's key, or the family of a font the document has.\n * `null` when `/DA` names none. A write takes a standard name or a key.\n */\n fontFamily: field.data(FontNameSchema).nullable().optional(),\n fontSize: field.data(z.number().nonnegative()).nullable().optional(),\n fontColor: field.data(ColorSchema).nullable().optional(),\n textAlign: field.data(TextAlignmentSchema).optional(),\n /**\n * A push button's caption (`/MK /CA`), drawn centred on the button.\n * `null` for every other widget, whose `/MK /CA` is no caption (a\n * checkbox's is its symbol); a caption written to one is refused.\n */\n caption: field.data(z.string()).nullable().optional(),\n /**\n * The symbol a checkbox's or radio button's widget shows while it's on\n * (`/MK /CA`); `null` shows its family's own, a checkbox's check and a\n * radio button's circle. Always `null` for other widgets, and one written\n * to another widget is refused.\n */\n checkStyle: field.data(WidgetCheckStyleSchema).nullable().optional(),\n /**\n * `/A` and `/AA`: what the widget does when clicked, entered, focused and\n * so on. A write sets an event's action, `null` removes it, an event left\n * out keeps what it has; `null` for the whole removes them all. The\n * actions a read returns, sent back unchanged, are kept.\n */\n actions: field\n .data(FileAnnotationActionsSchema)\n .writes(FileWidgetActionsPatchSchema)\n .readBack()\n .nullable()\n .optional()\n .space('actions'),\n /** The field the widget belongs to, or `null` when it's in none. */\n field: field.engine(FormFieldRefSchema).nullable(),\n /** Its field's family, so a widget reads as what it is without the form. */\n fieldFamily: field.engine(\n z.enum([\n 'text',\n 'checkbox',\n 'radio',\n 'combobox',\n 'listbox',\n 'pushbutton',\n 'signature',\n 'unknown',\n ]),\n ),\n});\n","import type { CreateOf, ReadOf, UpdateOf } from '../../declaration';\nimport type { Coordinates, PageCoordinates } from '../../../pageSpace/coordinates';\nimport type { AnnotationKindModule } from '../../registry';\nimport { PdfAnnotationSubtypeCode } from '../../subtype';\nimport { WidgetDeclaration } from './declaration';\n\nexport { WidgetDeclaration } from './declaration';\n\nexport type WidgetAnnotation<C extends Coordinates = PageCoordinates> = ReadOf<\n typeof WidgetDeclaration,\n C\n>;\nexport type WidgetDraft<C extends Coordinates = PageCoordinates> = CreateOf<\n typeof WidgetDeclaration,\n C\n>;\nexport type WidgetPatch<C extends Coordinates = PageCoordinates> = UpdateOf<\n typeof WidgetDeclaration,\n C\n>;\n\nexport const WidgetDTOSchema = WidgetDeclaration.readSchema;\nexport const WidgetDraftSchema = WidgetDeclaration.createSchema;\nexport const WidgetPatchSchema = WidgetDeclaration.updateSchema;\n\nexport const WidgetKind: AnnotationKindModule<\n 'widget',\n WidgetAnnotation,\n WidgetDraft,\n WidgetPatch\n> = {\n subtype: 'widget',\n pdfSubtypeCode: PdfAnnotationSubtypeCode.WIDGET,\n dtoSchema: WidgetDTOSchema,\n draftSchema: WidgetDraftSchema,\n patchSchema: WidgetPatchSchema,\n readBackWrites: WidgetDeclaration.readBackWrites,\n};\n","import type { CreateOf, ReadOf, UpdateOf } from '../declaration';\nimport type { Coordinates, PageCoordinates } from '../../pageSpace/coordinates';\nimport { CaretDeclaration } from './caret/declaration';\nimport { CircleDeclaration } from './circle/declaration';\nimport { FileAttachmentDeclaration } from './file-attachment/declaration';\nimport { FreeTextDeclaration } from './free-text/declaration';\nimport { HighlightDeclaration } from './highlight/declaration';\nimport { InkDeclaration } from './ink/declaration';\nimport { LineDeclaration } from './line/declaration';\nimport { LinkDeclaration } from './link/declaration';\nimport { PolygonDeclaration } from './polygon/declaration';\nimport { PolylineDeclaration } from './polyline/declaration';\nimport { PopupDeclaration } from './popup/declaration';\nimport { RedactDeclaration } from './redact/declaration';\nimport { SquareDeclaration } from './square/declaration';\nimport { SquigglyDeclaration } from './squiggly/declaration';\nimport { StampDeclaration } from './stamp/declaration';\nimport { StrikeoutDeclaration } from './strikeout/declaration';\nimport { TextDeclaration } from './text/declaration';\nimport { UnderlineDeclaration } from './underline/declaration';\nimport { UnsupportedDeclaration } from './unsupported/declaration';\nimport { WidgetDeclaration } from './widget/declaration';\n\n/** Every annotation kind's declaration, in the engine's catalog order. */\nexport const ANNOTATION_DECLARATIONS = [\n HighlightDeclaration,\n UnderlineDeclaration,\n SquigglyDeclaration,\n StrikeoutDeclaration,\n CircleDeclaration,\n SquareDeclaration,\n PolygonDeclaration,\n PolylineDeclaration,\n LineDeclaration,\n LinkDeclaration,\n InkDeclaration,\n FreeTextDeclaration,\n CaretDeclaration,\n TextDeclaration,\n StampDeclaration,\n FileAttachmentDeclaration,\n WidgetDeclaration,\n RedactDeclaration,\n PopupDeclaration,\n UnsupportedDeclaration,\n] as const;\n\nexport type AnnotationDeclaration = (typeof ANNOTATION_DECLARATIONS)[number];\n\n/** The kinds a create or an update can name: every kind the engine models. */\nexport type WritableAnnotationDeclaration = Exclude<\n AnnotationDeclaration,\n typeof UnsupportedDeclaration\n>;\n\n/**\n * The complete read of any annotation, discriminated by `subtype`: in page\n * space, or in the file's coordinates with `PdfCoordinates`.\n */\nexport type Annotation<C extends Coordinates = PageCoordinates> = ReadOf<AnnotationDeclaration, C>;\n\n/**\n * What `create()` takes, and what the worker protocol and the HTTP surface\n * carry: pure JSON. Bytes travel beside it, as resources\n * (`annotation/resources.ts`).\n */\nexport type AnnotationDraft<C extends Coordinates = PageCoordinates> = CreateOf<\n WritableAnnotationDeclaration,\n C\n>;\n\n/** What `update()` takes. */\nexport type AnnotationPatch<C extends Coordinates = PageCoordinates> = UpdateOf<\n WritableAnnotationDeclaration,\n C\n>;\n\n/** Looks up a kind's declaration by its `subtype`. */\nexport function declarationOf(subtype: string): AnnotationDeclaration | null {\n return ANNOTATION_DECLARATIONS.find((declaration) => declaration.subtype === subtype) ?? null;\n}\n","import { z } from 'zod';\n\nimport type { WidgetAnnotation, WidgetPatch } from './widget';\nimport { WidgetDeclaration } from './widget/declaration';\n\nconst WIDGET_STYLE_NAMES = [\n 'color',\n 'interiorColor',\n 'strokeWidth',\n 'borderStyle',\n 'dashArray',\n 'fontFamily',\n 'fontSize',\n 'fontColor',\n 'textAlign',\n 'caption',\n 'checkStyle',\n] as const;\n\ntype WidgetStyleName = (typeof WIDGET_STYLE_NAMES)[number];\n\n/** A widget's appearance characteristics (`/MK`, a push button's caption among them) and default appearance (`/DA`). */\nexport type WidgetStyleFields = Pick<WidgetAnnotation, WidgetStyleName>;\nexport type WidgetStyleDraftFields = Pick<WidgetPatch, WidgetStyleName>;\nexport type WidgetStylePatchFields = WidgetStyleDraftFields;\nexport type WidgetAppearance = WidgetStyleDraftFields;\n\n/** The style fields' schemas, as a widget annotation's update takes them. */\nexport const WIDGET_STYLE_SHAPE: Record<WidgetStyleName, z.ZodTypeAny> = Object.fromEntries(\n WIDGET_STYLE_NAMES.map((name) => [name, WidgetDeclaration.shapes.update[name]!]),\n) as Record<WidgetStyleName, z.ZodTypeAny>;\n\nexport const WidgetAppearanceSchema = z\n .object(WIDGET_STYLE_SHAPE)\n .strict() as unknown as z.ZodType<WidgetAppearance>;\n","import { z } from 'zod';\n\nimport type { PdfCoordinates } from '../../pageSpace/coordinates';\nimport { CaretKind } from './caret';\nimport { CircleKind } from './circle';\nimport { FileAttachmentKind } from './file-attachment';\nimport { FreeTextKind } from './free-text';\nimport { HighlightKind } from './highlight';\nimport { InkKind } from './ink';\nimport { LineKind } from './line';\nimport { LinkKind } from './link';\nimport { PolygonKind } from './polygon';\nimport { PolylineKind } from './polyline';\nimport { PopupKind } from './popup';\nimport { RedactKind } from './redact';\nimport { SquareKind } from './square';\nimport { SquigglyKind } from './squiggly';\nimport { StampKind } from './stamp';\nimport { StrikeoutKind } from './strikeout';\nimport { TextKind } from './text';\nimport { UnderlineKind } from './underline';\nimport { UnsupportedKind } from './unsupported';\nimport { WidgetKind } from './widget';\nimport { ANNOTATION_DECLARATIONS, declarationOf } from './declarations';\nimport type { Annotation, AnnotationDraft, AnnotationPatch } from './declarations';\n\nexport * from './highlight';\nexport * from './underline';\nexport * from './squiggly';\nexport * from './strikeout';\nexport * from './circle';\nexport * from './square';\nexport * from './polygon';\nexport * from './polyline';\nexport * from './line';\nexport * from './link';\nexport * from './ink';\nexport * from './free-text';\nexport * from './caret';\nexport * from './text';\nexport * from './stamp';\nexport * from './file-attachment';\nexport * from './widget';\nexport * from './redact';\nexport * from './popup';\nexport * from './unsupported';\nexport * from './text-markup.shared';\nexport * from './shape.shared';\nexport * from './style.shared';\nexport * from './vertex.shared';\nexport * from './widget.shared';\nexport { ANNOTATION_DECLARATIONS, declarationOf };\nexport type {\n AnnotationDeclaration,\n Annotation,\n AnnotationDraft,\n AnnotationPatch,\n WritableAnnotationDeclaration,\n} from './declarations';\n\nexport type { CreateOf, ReadOf, UpdateOf } from '../declaration';\n\n/**\n * The closed-world catalog of currently-implemented annotation kinds.\n *\n * Adding a new subtype is one folder under `kinds/<name>/` with its\n * `declaration.ts` and `index.ts`, and one entry in this tuple and in\n * `declarations.ts`. The discriminated unions and zod discriminator below regenerate\n * automatically; no other file in the package needs to change.\n *\n * Every subtype the engine has not yet wired up rides on\n * `UnsupportedKind`. The wire format is stable: when a per-subtype reader\n * lands later, the engine starts emitting the dedicated DTO instead of\n * `unsupported`, and existing clients widen their handling without a\n * version bump.\n */\nexport const ANNOTATION_KINDS = [\n HighlightKind,\n UnderlineKind,\n SquigglyKind,\n StrikeoutKind,\n CircleKind,\n SquareKind,\n PolygonKind,\n PolylineKind,\n LineKind,\n LinkKind,\n InkKind,\n FreeTextKind,\n CaretKind,\n TextKind,\n StampKind,\n FileAttachmentKind,\n WidgetKind,\n RedactKind,\n PopupKind,\n UnsupportedKind,\n] as const;\n\nexport type AnnotationKind = (typeof ANNOTATION_KINDS)[number];\n\nexport type AnnotationSubtypeOfKind = AnnotationKind['subtype'];\n\n/**\n * Lookup helper for the engine's reader catalog and identity resolver.\n * O(1) by `subtype` literal at runtime.\n */\nexport const KIND_BY_SUBTYPE: Readonly<{\n [K in AnnotationKind as K['subtype']]: K;\n}> = Object.freeze(\n Object.fromEntries(ANNOTATION_KINDS.map((kind) => [kind.subtype, kind])) as Record<\n AnnotationSubtypeOfKind,\n AnnotationKind\n >,\n) as Readonly<{ [K in AnnotationKind as K['subtype']]: K }>;\n\n/**\n * Runtime zod schema for the discriminated union. The cast unwinds the\n * generic schema map into the specific tuple form `discriminatedUnion`\n * needs. Servers and cloud clients use this to validate every annotation\n * payload on the wire.\n */\nexport const AnnotationSchema: z.ZodType<Annotation> = z.discriminatedUnion('subtype', [\n HighlightKind.dtoSchema,\n UnderlineKind.dtoSchema,\n SquigglyKind.dtoSchema,\n StrikeoutKind.dtoSchema,\n CircleKind.dtoSchema,\n SquareKind.dtoSchema,\n PolygonKind.dtoSchema,\n PolylineKind.dtoSchema,\n LineKind.dtoSchema,\n LinkKind.dtoSchema,\n InkKind.dtoSchema,\n FreeTextKind.dtoSchema,\n CaretKind.dtoSchema,\n TextKind.dtoSchema,\n StampKind.dtoSchema,\n FileAttachmentKind.dtoSchema,\n WidgetKind.dtoSchema,\n RedactKind.dtoSchema,\n PopupKind.dtoSchema,\n UnsupportedKind.dtoSchema,\n] as unknown as [\n z.ZodDiscriminatedUnionOption<'subtype'>,\n ...z.ZodDiscriminatedUnionOption<'subtype'>[],\n]) as unknown as z.ZodType<Annotation>;\n\n/** Validates a create's data against its kind. */\nexport const AnnotationDraftSchema: z.ZodType<AnnotationDraft> = z.discriminatedUnion('subtype', [\n HighlightKind.draftSchema,\n UnderlineKind.draftSchema,\n SquigglyKind.draftSchema,\n StrikeoutKind.draftSchema,\n CircleKind.draftSchema,\n SquareKind.draftSchema,\n PolygonKind.draftSchema,\n PolylineKind.draftSchema,\n LineKind.draftSchema,\n LinkKind.draftSchema,\n InkKind.draftSchema,\n FreeTextKind.draftSchema,\n CaretKind.draftSchema,\n TextKind.draftSchema,\n StampKind.draftSchema,\n FileAttachmentKind.draftSchema,\n WidgetKind.draftSchema,\n RedactKind.draftSchema,\n PopupKind.draftSchema,\n] as unknown as [\n z.ZodDiscriminatedUnionOption<'subtype'>,\n ...z.ZodDiscriminatedUnionOption<'subtype'>[],\n]) as unknown as z.ZodType<AnnotationDraft>;\n\n/**\n * Validates a patch against every kind. A\n * patch may leave out its `subtype`, so this only checks that the patch fits\n * some kind; {@link annotationPatchSchemaOf} checks it against its target.\n */\nexport const AnnotationPatchSchema: z.ZodType<AnnotationPatch> = z.union(\n ANNOTATION_KINDS.filter((kind) => kind.subtype !== 'unsupported').map(\n (kind) => kind.patchSchema,\n ) as unknown as [z.ZodTypeAny, z.ZodTypeAny, ...z.ZodTypeAny[]],\n) as unknown as z.ZodType<AnnotationPatch>;\n\n/** The patch schema of one kind: how an update of an annotation of that kind is checked. */\nexport function annotationPatchSchemaOf(\n subtype: AnnotationSubtypeOfKind,\n): z.ZodType<AnnotationPatch> {\n return KIND_BY_SUBTYPE[subtype].patchSchema as unknown as z.ZodType<AnnotationPatch>;\n}\n\n/**\n * A create's data in the file's coordinates, checked against its kind: the\n * engine's own check, after the worker converted the data from page space.\n */\nexport const FileAnnotationDraftSchema: z.ZodType<AnnotationDraft<PdfCoordinates>> =\n z.discriminatedUnion(\n 'subtype',\n ANNOTATION_DECLARATIONS.filter((declaration) => declaration.subtype !== 'unsupported').map(\n (declaration) => declaration.fileSchemas.create,\n ) as unknown as [\n z.ZodDiscriminatedUnionOption<'subtype'>,\n ...z.ZodDiscriminatedUnionOption<'subtype'>[],\n ],\n ) as unknown as z.ZodType<AnnotationDraft<PdfCoordinates>>;\n\n/** An update's data in the file's coordinates, checked against the kind it changes. */\nexport function fileAnnotationPatchSchemaOf(\n subtype: AnnotationSubtypeOfKind,\n): z.ZodType<AnnotationPatch<PdfCoordinates>> {\n return declarationOf(subtype)!.fileSchemas.update as unknown as z.ZodType<\n AnnotationPatch<PdfCoordinates>\n >;\n}\n","import { FormFieldRefSchema } from '../identity/FormFieldRef.schema';\nimport { PageRefSchema } from '../identity/PageRef.schema';\nimport { AnnotationRefSchema } from '../annotation/base.schema';\nimport { z } from 'zod';\n\nimport { WidgetDTOSchema } from '../annotation/kinds/widget';\nimport { WIDGET_STYLE_SHAPE, WidgetAppearanceSchema } from '../annotation/kinds/widget.shared';\nimport { PageBoxSchema, PdfRotationSchema } from '../geometry/schemas';\nimport type { FormWidget } from '../identity/FormFieldRef';\nimport type { FormFieldDraft, FormFieldOptionInput, WidgetPlacement } from './draft';\nimport type { FormFieldPatch } from './patch';\nimport type { FormFieldDTO, FormFieldOption, FormFieldWidget, ToggleFieldWidget } from './field';\nimport type { FormKind, FormSnapshot } from './snapshot';\nimport type { FormFieldValue } from './value';\nimport type { FormValueEntry } from './value-entry';\nimport { IsoDateTimeSchema } from '../dto/IsoDateTime.schema';\nimport {\n FieldActionsPatchSchema,\n PdfFieldActionsSchema,\n WidgetActionsPatchSchema,\n} from '../dto/PdfAction.schema';\n\nexport { FormFieldRefSchema };\n\nconst FormWidgetShape = {\n // The annotation address, present exactly when the widget is indirect and placed.\n ref: AnnotationRefSchema.nullable(),\n // 0 = direct (unaddressable) widget; null page = unplaced widget.\n objectNumber: z.number().int().nonnegative(),\n page: PageRefSchema.nullable(),\n};\n\nexport const FormWidgetSchema: z.ZodType<FormWidget> = z.object(FormWidgetShape);\n\nexport const FormFieldWidgetSchema: z.ZodType<FormFieldWidget> = FormWidgetSchema;\n\nexport const ToggleFieldWidgetSchema: z.ZodType<ToggleFieldWidget> = z.object({\n ...FormWidgetShape,\n onState: z.string(),\n exportValue: z.string(),\n checked: z.boolean(),\n});\n\nexport const FormFieldOptionSchema: z.ZodType<FormFieldOption> = z.object({\n label: z.string(),\n value: z.string(),\n selected: z.boolean(),\n});\n\nexport const FormValueEntrySchema: z.ZodType<FormValueEntry> = z.discriminatedUnion('kind', [\n z.object({ kind: z.literal('none') }),\n z.object({ kind: z.literal('scalar'), value: z.string() }),\n z.object({ kind: z.literal('array'), values: z.array(z.string()) }),\n z.object({ kind: z.literal('unsupported') }),\n]);\n\nconst FormFieldBaseShape = {\n ref: FormFieldRefSchema,\n name: z.string(),\n origin: z.enum(['acroform', 'recovered']),\n readOnly: z.boolean(),\n required: z.boolean(),\n noExport: z.boolean(),\n alternateName: z.string().nullable(),\n mappingName: z.string().nullable(),\n valueEntry: FormValueEntrySchema,\n defaultValueEntry: FormValueEntrySchema,\n actions: PdfFieldActionsSchema.optional(),\n groupId: z.string().nullable(),\n createdBy: z.string().nullable(),\n createdAt: IsoDateTimeSchema.nullable(),\n filledBy: z.string().nullable(),\n filledByName: z.string().nullable(),\n filledAt: IsoDateTimeSchema.nullable(),\n importedBy: z.string().nullable(),\n widgets: z.array(FormFieldWidgetSchema),\n};\n\nexport const FormFieldDTOSchema: z.ZodType<FormFieldDTO> = z.discriminatedUnion('family', [\n z.object({\n ...FormFieldBaseShape,\n family: z.literal('text'),\n value: z.string(),\n defaultValue: z.string(),\n maxLength: z.number().int().positive().nullable(),\n multiline: z.boolean(),\n password: z.boolean(),\n comb: z.boolean(),\n }),\n z.object({\n ...FormFieldBaseShape,\n family: z.literal('checkbox'),\n checked: z.boolean(),\n exportValue: z.string(),\n widgets: z.array(ToggleFieldWidgetSchema),\n }),\n z.object({\n ...FormFieldBaseShape,\n family: z.literal('radio'),\n value: z.string(),\n radiosInUnison: z.boolean(),\n noToggleToOff: z.boolean(),\n widgets: z.array(ToggleFieldWidgetSchema),\n }),\n z.object({\n ...FormFieldBaseShape,\n family: z.literal('combobox'),\n value: z.string(),\n defaultValue: z.string(),\n edit: z.boolean(),\n options: z.array(FormFieldOptionSchema),\n }),\n z.object({\n ...FormFieldBaseShape,\n family: z.literal('listbox'),\n selectedValues: z.array(z.string()),\n defaultValue: z.array(z.string()),\n multiSelect: z.boolean(),\n options: z.array(FormFieldOptionSchema),\n topIndex: z.number().int().nonnegative(),\n }),\n z.object({\n ...FormFieldBaseShape,\n family: z.literal('pushbutton'),\n }),\n z.object({\n ...FormFieldBaseShape,\n family: z.literal('signature'),\n }),\n z.object({\n ...FormFieldBaseShape,\n family: z.literal('unknown'),\n rawValue: z.string(),\n }),\n]) as unknown as z.ZodType<FormFieldDTO>;\n\nexport const FormKindSchema: z.ZodType<FormKind> = z.enum(['none', 'acroform', 'xfa']);\n\nexport const FormSnapshotSchema: z.ZodType<FormSnapshot> = z.object({\n formKind: FormKindSchema,\n needsAppearances: z.boolean(),\n fields: z.array(FormFieldDTOSchema),\n widgets: z.array(WidgetDTOSchema),\n calculationOrder: z.array(FormFieldRefSchema.nullable()),\n}) as unknown as z.ZodType<FormSnapshot>;\n\n/**\n * `{ value }`, `{ checked }` or `{ selectedValues }`: one object with exactly\n * one of the three, so the wire has no untagged union (the API reference\n * labels variants by a discriminating literal, and a value has none to add).\n */\nexport const FormFieldValueSchema: z.ZodType<FormFieldValue> = z\n .object({\n value: z.string().nullable().optional(),\n checked: z.boolean().optional(),\n selectedValues: z.array(z.string()).optional(),\n })\n .strict()\n .refine(\n (value) =>\n [value.value, value.checked, value.selectedValues].filter((set) => set !== undefined)\n .length === 1,\n { message: 'exactly one of value, checked or selectedValues' },\n ) as unknown as z.ZodType<FormFieldValue>;\n\nexport { WidgetAppearanceSchema };\n\nexport const WidgetPlacementSchema: z.ZodType<WidgetPlacement> = z\n .object({\n page: PageRefSchema,\n rect: PageBoxSchema.optional(),\n box: PageBoxSchema.optional(),\n rotation: PdfRotationSchema.optional(),\n exportValue: z.string().min(1).optional(),\n actions: WidgetActionsPatchSchema.optional(),\n ...WIDGET_STYLE_SHAPE,\n })\n .strict() as unknown as z.ZodType<WidgetPlacement>;\n\nexport const FormFieldOptionInputSchema: z.ZodType<FormFieldOptionInput> = z.object({\n label: z.string(),\n value: z.string(),\n});\n\nconst FormFieldDraftBaseShape = {\n name: z.string().min(1),\n readOnly: z.boolean().optional(),\n required: z.boolean().optional(),\n noExport: z.boolean().optional(),\n alternateName: z.string().optional(),\n mappingName: z.string().optional(),\n groupId: z.string().min(1).max(256).optional(),\n actions: FieldActionsPatchSchema.optional(),\n widgets: z.array(WidgetPlacementSchema).optional(),\n};\n\n/** A draft that names a member its family doesn't have is refused, not trimmed. */\nexport const FormFieldDraftSchema: z.ZodType<FormFieldDraft> = z.discriminatedUnion('family', [\n z\n .object({\n ...FormFieldDraftBaseShape,\n family: z.literal('text'),\n defaultValue: z.string().optional(),\n maxLength: z.number().int().positive().optional(),\n multiline: z.boolean().optional(),\n password: z.boolean().optional(),\n comb: z.boolean().optional(),\n })\n .strict(),\n z.object({ ...FormFieldDraftBaseShape, family: z.literal('checkbox') }).strict(),\n z\n .object({\n ...FormFieldDraftBaseShape,\n family: z.literal('radio'),\n radiosInUnison: z.boolean().optional(),\n noToggleToOff: z.boolean().optional(),\n })\n .strict(),\n z\n .object({\n ...FormFieldDraftBaseShape,\n family: z.literal('combobox'),\n edit: z.boolean().optional(),\n options: z.array(FormFieldOptionInputSchema).optional(),\n defaultValue: z.string().optional(),\n })\n .strict(),\n z\n .object({\n ...FormFieldDraftBaseShape,\n family: z.literal('listbox'),\n multiSelect: z.boolean().optional(),\n options: z.array(FormFieldOptionInputSchema).optional(),\n defaultValue: z.array(z.string()).optional(),\n })\n .strict(),\n z.object({ ...FormFieldDraftBaseShape, family: z.literal('pushbutton') }).strict(),\n z.object({ ...FormFieldDraftBaseShape, family: z.literal('signature') }).strict(),\n]) as unknown as z.ZodType<FormFieldDraft>;\n\nconst FormFieldPatchBaseShape = {\n name: z.string().min(1).optional(),\n readOnly: z.boolean().optional(),\n required: z.boolean().optional(),\n noExport: z.boolean().optional(),\n alternateName: z.string().nullable().optional(),\n mappingName: z.string().nullable().optional(),\n groupId: z.string().min(1).max(256).optional(),\n actions: FieldActionsPatchSchema.optional(),\n};\n\n/**\n * One object on the wire: the family is optional (the engine knows it from\n * the ref), so there is no discriminator, and the engine refuses members\n * the field's family doesn't have.\n */\nexport const FormFieldPatchSchema: z.ZodType<FormFieldPatch> = z\n .object({\n ...FormFieldPatchBaseShape,\n family: z\n .enum(['text', 'checkbox', 'radio', 'combobox', 'listbox', 'pushbutton', 'signature'])\n .optional(),\n // A string for text fields and dropdowns, option values for a list.\n defaultValue: z\n .union([z.string(), z.array(z.string())])\n .nullable()\n .optional(),\n maxLength: z.number().int().positive().nullable().optional(),\n multiline: z.boolean().optional(),\n password: z.boolean().optional(),\n comb: z.boolean().optional(),\n radiosInUnison: z.boolean().optional(),\n noToggleToOff: z.boolean().optional(),\n edit: z.boolean().optional(),\n multiSelect: z.boolean().optional(),\n options: z.array(FormFieldOptionInputSchema).optional(),\n })\n .strict() as unknown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