@inkbar/core 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
+ import { Annotation, GLOSS_FORMAT as GLOSS_FORMAT$1, GLOSS_MEDIA_TYPE, GLOSS_SCHEMA_ID, GLOSS_VERSION as GLOSS_VERSION$1, GlossDocument, IMAGE_DATA_URL, UnknownAnnotation } from "gloss-format";
1
2
  import { z } from "zod";
2
3
  import * as pdfjs from "pdfjs-dist";
3
4
  //#region src/model/geometry.d.ts
@@ -5,12 +6,12 @@ import * as pdfjs from "pdfjs-dist";
5
6
  * All geometry in this module is PDF default user space: points, origin at the
6
7
  * lower-left of the page, before /Rotate. Pixel conversions live in dom/transform.ts.
7
8
  */
8
- interface Point {
9
+ interface Point$1 {
9
10
  x: number;
10
11
  y: number;
11
12
  }
12
13
  /** Axis-aligned box. `x`,`y` is the lower-left corner. */
13
- interface Rect {
14
+ interface Rect$1 {
14
15
  x: number;
15
16
  y: number;
16
17
  width: number;
@@ -18,27 +19,31 @@ interface Rect {
18
19
  }
19
20
  /** Four corners in PDF.js's normalised QuadPoints order: upper-left, upper-right, lower-left, lower-right. */
20
21
  interface Quad {
21
- p1: Point;
22
- p2: Point;
23
- p3: Point;
24
- p4: Point;
22
+ p1: Point$1;
23
+ p2: Point$1;
24
+ p3: Point$1;
25
+ p4: Point$1;
25
26
  }
26
27
  /** PDF transformation matrix [a b c d e f]: x' = a·x + c·y + e, y' = b·x + d·y + f. */
27
28
  type Matrix = readonly [number, number, number, number, number, number];
28
29
  declare function approxEqual(a: number, b: number, eps?: number): boolean;
29
- declare function rectFromPoints(a: Point, b: Point): Rect;
30
- declare function rectFromQuad(q: Quad): Rect;
31
- declare function quadFromRect(r: Rect): Quad;
32
- declare function unionRects(rects: readonly Rect[]): Rect;
33
- declare function rectsIntersect(a: Rect, b: Rect): boolean;
34
- declare function rectContainsPoint(r: Rect, p: Point): boolean;
35
- declare function translateRect(r: Rect, dx: number, dy: number): Rect;
30
+ declare function rectFromPoints(a: Point$1, b: Point$1): Rect$1;
31
+ declare function rectFromQuad(q: Quad): Rect$1;
32
+ declare function quadFromRect(r: Rect$1): Quad;
33
+ /** One quad covering `r`, in the corner order of `quadFromRect`. */
34
+ declare function quadsFromRect(r: Rect$1): Quad[];
35
+ /** The bounding box of every corner of `quads`. */
36
+ declare function rectFromQuads(quads: readonly Quad[]): Rect$1;
37
+ declare function unionRects(rects: readonly Rect$1[]): Rect$1;
38
+ declare function rectsIntersect(a: Rect$1, b: Rect$1): boolean;
39
+ declare function rectContainsPoint(r: Rect$1, p: Point$1): boolean;
40
+ declare function translateRect(r: Rect$1, dx: number, dy: number): Rect$1;
36
41
  declare function translateQuad(q: Quad, dx: number, dy: number): Quad;
37
- declare function applyMatrix(m: Matrix, p: Point): Point;
42
+ declare function applyMatrix(m: Matrix, p: Point$1): Point$1;
38
43
  declare function invertMatrix(m: Matrix): Matrix;
39
44
  /** Returns the matrix that applies `a` first, then `b`. */
40
45
  declare function multiplyMatrix(a: Matrix, b: Matrix): Matrix;
41
- declare function pointsFromFlat(flat: ArrayLike<number>): Point[];
46
+ declare function pointsFromFlat(flat: ArrayLike<number>): Point$1[];
42
47
  /** Eight numbers per quad, in PDF.js's normalised order. Trailing partial quads are dropped. */
43
48
  declare function quadsFromFlat(flat: ArrayLike<number>): Quad[];
44
49
  //#endregion
@@ -109,7 +114,7 @@ type PageRotation = 0 | 90 | 180 | 270;
109
114
  interface PageInfo {
110
115
  index: number;
111
116
  /** CropBox ∩ MediaBox in user space before /Rotate, as PDF.js reports `page.view`. */
112
- box: Rect;
117
+ box: Rect$1;
113
118
  /** The page's own /Rotate. View rotation applied by the viewer is separate. */
114
119
  rotate: PageRotation;
115
120
  userUnit: number;
@@ -138,8 +143,6 @@ declare function derived<T, U>(source: Readable<T>, fn: (value: T) => U): Readab
138
143
  declare function readonly<T>(w: Writable<T>): Readable<T>;
139
144
  //#endregion
140
145
  //#region src/model/annotations/types.d.ts
141
- declare const ANNOTATION_FORMAT = "inkbar/annotations";
142
- declare const ANNOTATION_VERSION = 1;
143
146
  declare const PointSchema: z.ZodObject<{
144
147
  x: z.ZodNumber;
145
148
  y: z.ZodNumber;
@@ -169,29 +172,6 @@ declare const QuadSchema: z.ZodObject<{
169
172
  }, z.core.$strip>;
170
173
  }, z.core.$strip>;
171
174
  declare const TextMarkupSchema: z.ZodObject<{
172
- id: z.ZodString;
173
- page: z.ZodNumber;
174
- rect: z.ZodObject<{
175
- x: z.ZodNumber;
176
- y: z.ZodNumber;
177
- width: z.ZodNumber;
178
- height: z.ZodNumber;
179
- }, z.core.$strip>;
180
- color: z.ZodString;
181
- opacity: z.ZodNumber;
182
- author: z.ZodOptional<z.ZodString>;
183
- contents: z.ZodOptional<z.ZodString>;
184
- inReplyTo: z.ZodOptional<z.ZodString>;
185
- createdAt: z.ZodISODateTime;
186
- modifiedAt: z.ZodISODateTime;
187
- source: z.ZodEnum<{
188
- session: "session";
189
- pdf: "pdf";
190
- }>;
191
- locked: z.ZodOptional<z.ZodBoolean>;
192
- subject: z.ZodOptional<z.ZodString>;
193
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
194
- custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
195
175
  type: z.ZodEnum<{
196
176
  highlight: "highlight";
197
177
  underline: "underline";
@@ -216,12 +196,33 @@ declare const TextMarkupSchema: z.ZodObject<{
216
196
  y: z.ZodNumber;
217
197
  }, z.core.$strip>;
218
198
  }, z.core.$strip>>;
199
+ rect: z.ZodObject<{
200
+ x: z.ZodNumber;
201
+ y: z.ZodNumber;
202
+ width: z.ZodNumber;
203
+ height: z.ZodNumber;
204
+ }, z.core.$strip>;
205
+ color: z.ZodString;
206
+ opacity: z.ZodNumber;
207
+ createdAt: z.ZodISODateTime;
208
+ modifiedAt: z.ZodISODateTime;
209
+ source: z.ZodEnum<{
210
+ session: "session";
211
+ pdf: "pdf";
212
+ }>;
213
+ locked: z.ZodOptional<z.ZodBoolean>;
214
+ id: z.ZodString;
215
+ page: z.ZodNumber;
216
+ author: z.ZodOptional<z.ZodString>;
217
+ contents: z.ZodOptional<z.ZodString>;
218
+ inReplyTo: z.ZodOptional<z.ZodString>;
219
+ subject: z.ZodOptional<z.ZodString>;
220
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
221
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
219
222
  }, z.core.$strip>;
220
223
  /** A note's icon (XFDF `icon`): a PDF name, so a name Inkbar does not know is kept. */
221
224
  declare const NoteIconSchema: z.ZodType<(string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph", (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph", z.core.$ZodTypeInternals<(string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph", (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph">>;
222
225
  declare const NoteSchema: z.ZodObject<{
223
- id: z.ZodString;
224
- page: z.ZodNumber;
225
226
  rect: z.ZodObject<{
226
227
  x: z.ZodNumber;
227
228
  y: z.ZodNumber;
@@ -230,9 +231,6 @@ declare const NoteSchema: z.ZodObject<{
230
231
  }, z.core.$strip>;
231
232
  color: z.ZodString;
232
233
  opacity: z.ZodNumber;
233
- author: z.ZodOptional<z.ZodString>;
234
- contents: z.ZodOptional<z.ZodString>;
235
- inReplyTo: z.ZodOptional<z.ZodString>;
236
234
  createdAt: z.ZodISODateTime;
237
235
  modifiedAt: z.ZodISODateTime;
238
236
  source: z.ZodEnum<{
@@ -240,11 +238,16 @@ declare const NoteSchema: z.ZodObject<{
240
238
  pdf: "pdf";
241
239
  }>;
242
240
  locked: z.ZodOptional<z.ZodBoolean>;
241
+ icon: z.ZodDefault<z.ZodType<"Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph" | (string & {}), "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph" | (string & {}), z.core.$ZodTypeInternals<"Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph" | (string & {}), "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph" | (string & {})>>>;
242
+ id: z.ZodString;
243
+ page: z.ZodNumber;
244
+ author: z.ZodOptional<z.ZodString>;
245
+ contents: z.ZodOptional<z.ZodString>;
246
+ inReplyTo: z.ZodOptional<z.ZodString>;
243
247
  subject: z.ZodOptional<z.ZodString>;
244
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
248
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
245
249
  custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
246
250
  type: z.ZodLiteral<"text">;
247
- icon: z.ZodDefault<z.ZodType<(string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph", (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph", z.core.$ZodTypeInternals<(string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph", (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph">>>;
248
251
  }, z.core.$strip>;
249
252
  /** A line ending (XFDF `head`/`tail`): a PDF name, so a name Inkbar does not know is kept. */
250
253
  declare const LineEndingSchema: z.ZodType<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", z.core.$ZodTypeInternals<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash">>;
@@ -253,9 +256,10 @@ declare const LineEndingSchema: z.ZodType<(string & {}) | "None" | "Square" | "C
253
256
  * `defaultstyle` string. The older `align` is refused; other unknown keys are dropped.
254
257
  */
255
258
  declare const FreeTextStyleSchema: z.ZodObject<{
259
+ color: z.ZodString;
260
+ align: z.ZodOptional<z.ZodNever>;
256
261
  fontFamily: z.ZodDefault<z.ZodString>;
257
262
  fontSize: z.ZodDefault<z.ZodNumber>;
258
- color: z.ZodString;
259
263
  textAlign: z.ZodDefault<z.ZodEnum<{
260
264
  left: "left";
261
265
  right: "right";
@@ -265,7 +269,6 @@ declare const FreeTextStyleSchema: z.ZodObject<{
265
269
  fontWeight: z.ZodOptional<z.ZodLiteral<"bold">>;
266
270
  fontStyle: z.ZodOptional<z.ZodLiteral<"italic">>;
267
271
  textDecoration: z.ZodOptional<z.ZodLiteral<"underline">>;
268
- align: z.ZodOptional<z.ZodNever>;
269
272
  }, z.core.$strip>;
270
273
  /**
271
274
  * Free text, as XFDF has it: `color` is the box's fill and the text style lives in
@@ -273,38 +276,13 @@ declare const FreeTextStyleSchema: z.ZodObject<{
273
276
  * refused rather than silently losing its style; other unknown keys are dropped.
274
277
  */
275
278
  declare const FreeTextSchema: z.ZodObject<{
276
- id: z.ZodString;
277
- page: z.ZodNumber;
278
- rect: z.ZodObject<{
279
- x: z.ZodNumber;
280
- y: z.ZodNumber;
281
- width: z.ZodNumber;
282
- height: z.ZodNumber;
283
- }, z.core.$strip>;
284
- opacity: z.ZodNumber;
285
- author: z.ZodOptional<z.ZodString>;
286
- inReplyTo: z.ZodOptional<z.ZodString>;
287
- createdAt: z.ZodISODateTime;
288
- modifiedAt: z.ZodISODateTime;
289
- source: z.ZodEnum<{
290
- session: "session";
291
- pdf: "pdf";
292
- }>;
293
- locked: z.ZodOptional<z.ZodBoolean>;
294
- subject: z.ZodOptional<z.ZodString>;
295
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
296
- custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
297
- type: z.ZodLiteral<"freetext">;
298
- contents: z.ZodString;
299
279
  color: z.ZodOptional<z.ZodString>;
300
280
  borderColor: z.ZodOptional<z.ZodString>;
301
- width: z.ZodDefault<z.ZodNumber>;
302
- dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
303
- cornerRadius: z.ZodOptional<z.ZodNumber>;
304
281
  defaultStyle: z.ZodObject<{
282
+ color: z.ZodString;
283
+ align: z.ZodOptional<z.ZodNever>;
305
284
  fontFamily: z.ZodDefault<z.ZodString>;
306
285
  fontSize: z.ZodDefault<z.ZodNumber>;
307
- color: z.ZodString;
308
286
  textAlign: z.ZodDefault<z.ZodEnum<{
309
287
  left: "left";
310
288
  right: "right";
@@ -314,7 +292,6 @@ declare const FreeTextSchema: z.ZodObject<{
314
292
  fontWeight: z.ZodOptional<z.ZodLiteral<"bold">>;
315
293
  fontStyle: z.ZodOptional<z.ZodLiteral<"italic">>;
316
294
  textDecoration: z.ZodOptional<z.ZodLiteral<"underline">>;
317
- align: z.ZodOptional<z.ZodNever>;
318
295
  }, z.core.$strip>;
319
296
  fringe: z.ZodOptional<z.ZodObject<{
320
297
  left: z.ZodNumber;
@@ -326,25 +303,16 @@ declare const FreeTextSchema: z.ZodObject<{
326
303
  x: z.ZodNumber;
327
304
  y: z.ZodNumber;
328
305
  }, z.core.$strip>>>;
329
- head: z.ZodOptional<z.ZodType<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", z.core.$ZodTypeInternals<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash">>>;
330
306
  fontFamily: z.ZodOptional<z.ZodNever>;
331
307
  fontSize: z.ZodOptional<z.ZodNever>;
332
308
  align: z.ZodOptional<z.ZodNever>;
333
- }, z.core.$strip>;
334
- declare const SquareSchema: z.ZodObject<{
335
- id: z.ZodString;
336
- page: z.ZodNumber;
337
309
  rect: z.ZodObject<{
338
310
  x: z.ZodNumber;
339
311
  y: z.ZodNumber;
340
312
  width: z.ZodNumber;
341
313
  height: z.ZodNumber;
342
314
  }, z.core.$strip>;
343
- color: z.ZodString;
344
315
  opacity: z.ZodNumber;
345
- author: z.ZodOptional<z.ZodString>;
346
- contents: z.ZodOptional<z.ZodString>;
347
- inReplyTo: z.ZodOptional<z.ZodString>;
348
316
  createdAt: z.ZodISODateTime;
349
317
  modifiedAt: z.ZodISODateTime;
350
318
  source: z.ZodEnum<{
@@ -352,18 +320,21 @@ declare const SquareSchema: z.ZodObject<{
352
320
  pdf: "pdf";
353
321
  }>;
354
322
  locked: z.ZodOptional<z.ZodBoolean>;
355
- subject: z.ZodOptional<z.ZodString>;
356
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
357
- custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
358
- cornerRadius: z.ZodOptional<z.ZodNumber>;
323
+ contents: z.ZodString;
359
324
  width: z.ZodDefault<z.ZodNumber>;
360
325
  dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
361
- interiorColor: z.ZodOptional<z.ZodString>;
362
- type: z.ZodLiteral<"square">;
363
- }, z.core.$strip>;
364
- declare const CircleSchema: z.ZodObject<{
326
+ cornerRadius: z.ZodOptional<z.ZodNumber>;
327
+ head: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
365
328
  id: z.ZodString;
366
329
  page: z.ZodNumber;
330
+ author: z.ZodOptional<z.ZodString>;
331
+ inReplyTo: z.ZodOptional<z.ZodString>;
332
+ subject: z.ZodOptional<z.ZodString>;
333
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
334
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
335
+ type: z.ZodLiteral<"freetext">;
336
+ }, z.core.$strip>;
337
+ declare const SquareSchema: z.ZodObject<{
367
338
  rect: z.ZodObject<{
368
339
  x: z.ZodNumber;
369
340
  y: z.ZodNumber;
@@ -372,9 +343,6 @@ declare const CircleSchema: z.ZodObject<{
372
343
  }, z.core.$strip>;
373
344
  color: z.ZodString;
374
345
  opacity: z.ZodNumber;
375
- author: z.ZodOptional<z.ZodString>;
376
- contents: z.ZodOptional<z.ZodString>;
377
- inReplyTo: z.ZodOptional<z.ZodString>;
378
346
  createdAt: z.ZodISODateTime;
379
347
  modifiedAt: z.ZodISODateTime;
380
348
  source: z.ZodEnum<{
@@ -382,18 +350,22 @@ declare const CircleSchema: z.ZodObject<{
382
350
  pdf: "pdf";
383
351
  }>;
384
352
  locked: z.ZodOptional<z.ZodBoolean>;
385
- subject: z.ZodOptional<z.ZodString>;
386
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
387
- custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
388
- cornerRadius: z.ZodOptional<z.ZodNever>;
389
353
  width: z.ZodDefault<z.ZodNumber>;
390
354
  dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
391
355
  interiorColor: z.ZodOptional<z.ZodString>;
392
- type: z.ZodLiteral<"circle">;
393
- }, z.core.$strip>;
394
- declare const ShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
356
+ cornerRadius: z.ZodOptional<z.ZodNumber>;
395
357
  id: z.ZodString;
396
358
  page: z.ZodNumber;
359
+ author: z.ZodOptional<z.ZodString>;
360
+ contents: z.ZodOptional<z.ZodString>;
361
+ inReplyTo: z.ZodOptional<z.ZodString>;
362
+ subject: z.ZodOptional<z.ZodString>;
363
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
364
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
365
+ type: z.ZodLiteral<"square">;
366
+ }, z.core.$strip>;
367
+ declare const CircleSchema: z.ZodObject<{
368
+ cornerRadius: z.ZodOptional<z.ZodNever>;
397
369
  rect: z.ZodObject<{
398
370
  x: z.ZodNumber;
399
371
  y: z.ZodNumber;
@@ -402,9 +374,6 @@ declare const ShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
402
374
  }, z.core.$strip>;
403
375
  color: z.ZodString;
404
376
  opacity: z.ZodNumber;
405
- author: z.ZodOptional<z.ZodString>;
406
- contents: z.ZodOptional<z.ZodString>;
407
- inReplyTo: z.ZodOptional<z.ZodString>;
408
377
  createdAt: z.ZodISODateTime;
409
378
  modifiedAt: z.ZodISODateTime;
410
379
  source: z.ZodEnum<{
@@ -412,17 +381,20 @@ declare const ShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
412
381
  pdf: "pdf";
413
382
  }>;
414
383
  locked: z.ZodOptional<z.ZodBoolean>;
415
- subject: z.ZodOptional<z.ZodString>;
416
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
417
- custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
418
- cornerRadius: z.ZodOptional<z.ZodNumber>;
419
384
  width: z.ZodDefault<z.ZodNumber>;
420
385
  dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
421
386
  interiorColor: z.ZodOptional<z.ZodString>;
422
- type: z.ZodLiteral<"square">;
423
- }, z.core.$strip>, z.ZodObject<{
424
387
  id: z.ZodString;
425
388
  page: z.ZodNumber;
389
+ author: z.ZodOptional<z.ZodString>;
390
+ contents: z.ZodOptional<z.ZodString>;
391
+ inReplyTo: z.ZodOptional<z.ZodString>;
392
+ subject: z.ZodOptional<z.ZodString>;
393
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
394
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
395
+ type: z.ZodLiteral<"circle">;
396
+ }, z.core.$strip>;
397
+ declare const ShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
426
398
  rect: z.ZodObject<{
427
399
  x: z.ZodNumber;
428
400
  y: z.ZodNumber;
@@ -431,9 +403,6 @@ declare const ShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
431
403
  }, z.core.$strip>;
432
404
  color: z.ZodString;
433
405
  opacity: z.ZodNumber;
434
- author: z.ZodOptional<z.ZodString>;
435
- contents: z.ZodOptional<z.ZodString>;
436
- inReplyTo: z.ZodOptional<z.ZodString>;
437
406
  createdAt: z.ZodISODateTime;
438
407
  modifiedAt: z.ZodISODateTime;
439
408
  source: z.ZodEnum<{
@@ -441,18 +410,21 @@ declare const ShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
441
410
  pdf: "pdf";
442
411
  }>;
443
412
  locked: z.ZodOptional<z.ZodBoolean>;
444
- subject: z.ZodOptional<z.ZodString>;
445
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
446
- custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
447
- cornerRadius: z.ZodOptional<z.ZodNever>;
448
413
  width: z.ZodDefault<z.ZodNumber>;
449
414
  dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
450
415
  interiorColor: z.ZodOptional<z.ZodString>;
451
- type: z.ZodLiteral<"circle">;
452
- }, z.core.$strip>], "type">;
453
- declare const LineSchema: z.ZodObject<{
416
+ cornerRadius: z.ZodOptional<z.ZodNumber>;
454
417
  id: z.ZodString;
455
418
  page: z.ZodNumber;
419
+ author: z.ZodOptional<z.ZodString>;
420
+ contents: z.ZodOptional<z.ZodString>;
421
+ inReplyTo: z.ZodOptional<z.ZodString>;
422
+ subject: z.ZodOptional<z.ZodString>;
423
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
424
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
425
+ type: z.ZodLiteral<"square">;
426
+ }, z.core.$strip>, z.ZodObject<{
427
+ cornerRadius: z.ZodOptional<z.ZodNever>;
456
428
  rect: z.ZodObject<{
457
429
  x: z.ZodNumber;
458
430
  y: z.ZodNumber;
@@ -461,9 +433,6 @@ declare const LineSchema: z.ZodObject<{
461
433
  }, z.core.$strip>;
462
434
  color: z.ZodString;
463
435
  opacity: z.ZodNumber;
464
- author: z.ZodOptional<z.ZodString>;
465
- contents: z.ZodOptional<z.ZodString>;
466
- inReplyTo: z.ZodOptional<z.ZodString>;
467
436
  createdAt: z.ZodISODateTime;
468
437
  modifiedAt: z.ZodISODateTime;
469
438
  source: z.ZodEnum<{
@@ -471,10 +440,20 @@ declare const LineSchema: z.ZodObject<{
471
440
  pdf: "pdf";
472
441
  }>;
473
442
  locked: z.ZodOptional<z.ZodBoolean>;
443
+ width: z.ZodDefault<z.ZodNumber>;
444
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
445
+ interiorColor: z.ZodOptional<z.ZodString>;
446
+ id: z.ZodString;
447
+ page: z.ZodNumber;
448
+ author: z.ZodOptional<z.ZodString>;
449
+ contents: z.ZodOptional<z.ZodString>;
450
+ inReplyTo: z.ZodOptional<z.ZodString>;
474
451
  subject: z.ZodOptional<z.ZodString>;
475
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
452
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
476
453
  custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
477
- type: z.ZodLiteral<"line">;
454
+ type: z.ZodLiteral<"circle">;
455
+ }, z.core.$strip>], "type">;
456
+ declare const LineSchema: z.ZodObject<{
478
457
  start: z.ZodObject<{
479
458
  x: z.ZodNumber;
480
459
  y: z.ZodNumber;
@@ -483,14 +462,6 @@ declare const LineSchema: z.ZodObject<{
483
462
  x: z.ZodNumber;
484
463
  y: z.ZodNumber;
485
464
  }, z.core.$strip>;
486
- width: z.ZodDefault<z.ZodNumber>;
487
- dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
488
- head: z.ZodOptional<z.ZodType<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", z.core.$ZodTypeInternals<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash">>>;
489
- tail: z.ZodOptional<z.ZodType<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", z.core.$ZodTypeInternals<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash">>>;
490
- }, z.core.$strip>;
491
- declare const PolylineSchema: z.ZodObject<{
492
- id: z.ZodString;
493
- page: z.ZodNumber;
494
465
  rect: z.ZodObject<{
495
466
  x: z.ZodNumber;
496
467
  y: z.ZodNumber;
@@ -499,9 +470,6 @@ declare const PolylineSchema: z.ZodObject<{
499
470
  }, z.core.$strip>;
500
471
  color: z.ZodString;
501
472
  opacity: z.ZodNumber;
502
- author: z.ZodOptional<z.ZodString>;
503
- contents: z.ZodOptional<z.ZodString>;
504
- inReplyTo: z.ZodOptional<z.ZodString>;
505
473
  createdAt: z.ZodISODateTime;
506
474
  modifiedAt: z.ZodISODateTime;
507
475
  source: z.ZodEnum<{
@@ -509,23 +477,25 @@ declare const PolylineSchema: z.ZodObject<{
509
477
  pdf: "pdf";
510
478
  }>;
511
479
  locked: z.ZodOptional<z.ZodBoolean>;
480
+ width: z.ZodDefault<z.ZodNumber>;
481
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
482
+ head: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
483
+ tail: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
484
+ id: z.ZodString;
485
+ page: z.ZodNumber;
486
+ author: z.ZodOptional<z.ZodString>;
487
+ contents: z.ZodOptional<z.ZodString>;
488
+ inReplyTo: z.ZodOptional<z.ZodString>;
512
489
  subject: z.ZodOptional<z.ZodString>;
513
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
490
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
514
491
  custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
515
- head: z.ZodOptional<z.ZodType<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", z.core.$ZodTypeInternals<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash">>>;
516
- tail: z.ZodOptional<z.ZodType<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", z.core.$ZodTypeInternals<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash">>>;
492
+ type: z.ZodLiteral<"line">;
493
+ }, z.core.$strip>;
494
+ declare const PolylineSchema: z.ZodObject<{
517
495
  vertices: z.ZodArray<z.ZodObject<{
518
496
  x: z.ZodNumber;
519
497
  y: z.ZodNumber;
520
498
  }, z.core.$strip>>;
521
- width: z.ZodDefault<z.ZodNumber>;
522
- dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
523
- interiorColor: z.ZodOptional<z.ZodString>;
524
- type: z.ZodLiteral<"polyline">;
525
- }, z.core.$strip>;
526
- declare const PolygonSchema: z.ZodObject<{
527
- id: z.ZodString;
528
- page: z.ZodNumber;
529
499
  rect: z.ZodObject<{
530
500
  x: z.ZodNumber;
531
501
  y: z.ZodNumber;
@@ -534,9 +504,6 @@ declare const PolygonSchema: z.ZodObject<{
534
504
  }, z.core.$strip>;
535
505
  color: z.ZodString;
536
506
  opacity: z.ZodNumber;
537
- author: z.ZodOptional<z.ZodString>;
538
- contents: z.ZodOptional<z.ZodString>;
539
- inReplyTo: z.ZodOptional<z.ZodString>;
540
507
  createdAt: z.ZodISODateTime;
541
508
  modifiedAt: z.ZodISODateTime;
542
509
  source: z.ZodEnum<{
@@ -544,23 +511,28 @@ declare const PolygonSchema: z.ZodObject<{
544
511
  pdf: "pdf";
545
512
  }>;
546
513
  locked: z.ZodOptional<z.ZodBoolean>;
514
+ width: z.ZodDefault<z.ZodNumber>;
515
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
516
+ interiorColor: z.ZodOptional<z.ZodString>;
517
+ head: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
518
+ tail: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
519
+ id: z.ZodString;
520
+ page: z.ZodNumber;
521
+ author: z.ZodOptional<z.ZodString>;
522
+ contents: z.ZodOptional<z.ZodString>;
523
+ inReplyTo: z.ZodOptional<z.ZodString>;
547
524
  subject: z.ZodOptional<z.ZodString>;
548
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
525
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
549
526
  custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
550
- head: z.ZodOptional<z.ZodNever>;
551
- tail: z.ZodOptional<z.ZodNever>;
527
+ type: z.ZodLiteral<"polyline">;
528
+ }, z.core.$strip>;
529
+ declare const PolygonSchema: z.ZodObject<{
552
530
  vertices: z.ZodArray<z.ZodObject<{
553
531
  x: z.ZodNumber;
554
532
  y: z.ZodNumber;
555
533
  }, z.core.$strip>>;
556
- width: z.ZodDefault<z.ZodNumber>;
557
- dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
558
- interiorColor: z.ZodOptional<z.ZodString>;
559
- type: z.ZodLiteral<"polygon">;
560
- }, z.core.$strip>;
561
- declare const PolySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
562
- id: z.ZodString;
563
- page: z.ZodNumber;
534
+ head: z.ZodOptional<z.ZodNever>;
535
+ tail: z.ZodOptional<z.ZodNever>;
564
536
  rect: z.ZodObject<{
565
537
  x: z.ZodNumber;
566
538
  y: z.ZodNumber;
@@ -569,9 +541,6 @@ declare const PolySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
569
541
  }, z.core.$strip>;
570
542
  color: z.ZodString;
571
543
  opacity: z.ZodNumber;
572
- author: z.ZodOptional<z.ZodString>;
573
- contents: z.ZodOptional<z.ZodString>;
574
- inReplyTo: z.ZodOptional<z.ZodString>;
575
544
  createdAt: z.ZodISODateTime;
576
545
  modifiedAt: z.ZodISODateTime;
577
546
  source: z.ZodEnum<{
@@ -579,22 +548,24 @@ declare const PolySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
579
548
  pdf: "pdf";
580
549
  }>;
581
550
  locked: z.ZodOptional<z.ZodBoolean>;
551
+ width: z.ZodDefault<z.ZodNumber>;
552
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
553
+ interiorColor: z.ZodOptional<z.ZodString>;
554
+ id: z.ZodString;
555
+ page: z.ZodNumber;
556
+ author: z.ZodOptional<z.ZodString>;
557
+ contents: z.ZodOptional<z.ZodString>;
558
+ inReplyTo: z.ZodOptional<z.ZodString>;
582
559
  subject: z.ZodOptional<z.ZodString>;
583
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
560
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
584
561
  custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
585
- head: z.ZodOptional<z.ZodType<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", z.core.$ZodTypeInternals<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash">>>;
586
- tail: z.ZodOptional<z.ZodType<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", z.core.$ZodTypeInternals<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash">>>;
562
+ type: z.ZodLiteral<"polygon">;
563
+ }, z.core.$strip>;
564
+ declare const PolySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
587
565
  vertices: z.ZodArray<z.ZodObject<{
588
566
  x: z.ZodNumber;
589
567
  y: z.ZodNumber;
590
568
  }, z.core.$strip>>;
591
- width: z.ZodDefault<z.ZodNumber>;
592
- dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
593
- interiorColor: z.ZodOptional<z.ZodString>;
594
- type: z.ZodLiteral<"polyline">;
595
- }, z.core.$strip>, z.ZodObject<{
596
- id: z.ZodString;
597
- page: z.ZodNumber;
598
569
  rect: z.ZodObject<{
599
570
  x: z.ZodNumber;
600
571
  y: z.ZodNumber;
@@ -603,9 +574,6 @@ declare const PolySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
603
574
  }, z.core.$strip>;
604
575
  color: z.ZodString;
605
576
  opacity: z.ZodNumber;
606
- author: z.ZodOptional<z.ZodString>;
607
- contents: z.ZodOptional<z.ZodString>;
608
- inReplyTo: z.ZodOptional<z.ZodString>;
609
577
  createdAt: z.ZodISODateTime;
610
578
  modifiedAt: z.ZodISODateTime;
611
579
  source: z.ZodEnum<{
@@ -613,23 +581,27 @@ declare const PolySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
613
581
  pdf: "pdf";
614
582
  }>;
615
583
  locked: z.ZodOptional<z.ZodBoolean>;
584
+ width: z.ZodDefault<z.ZodNumber>;
585
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
586
+ interiorColor: z.ZodOptional<z.ZodString>;
587
+ head: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
588
+ tail: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
589
+ id: z.ZodString;
590
+ page: z.ZodNumber;
591
+ author: z.ZodOptional<z.ZodString>;
592
+ contents: z.ZodOptional<z.ZodString>;
593
+ inReplyTo: z.ZodOptional<z.ZodString>;
616
594
  subject: z.ZodOptional<z.ZodString>;
617
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
595
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
618
596
  custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
619
- head: z.ZodOptional<z.ZodNever>;
620
- tail: z.ZodOptional<z.ZodNever>;
597
+ type: z.ZodLiteral<"polyline">;
598
+ }, z.core.$strip>, z.ZodObject<{
621
599
  vertices: z.ZodArray<z.ZodObject<{
622
600
  x: z.ZodNumber;
623
601
  y: z.ZodNumber;
624
602
  }, z.core.$strip>>;
625
- width: z.ZodDefault<z.ZodNumber>;
626
- dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
627
- interiorColor: z.ZodOptional<z.ZodString>;
628
- type: z.ZodLiteral<"polygon">;
629
- }, z.core.$strip>], "type">;
630
- declare const InkSchema: z.ZodObject<{
631
- id: z.ZodString;
632
- page: z.ZodNumber;
603
+ head: z.ZodOptional<z.ZodNever>;
604
+ tail: z.ZodOptional<z.ZodNever>;
633
605
  rect: z.ZodObject<{
634
606
  x: z.ZodNumber;
635
607
  y: z.ZodNumber;
@@ -638,9 +610,6 @@ declare const InkSchema: z.ZodObject<{
638
610
  }, z.core.$strip>;
639
611
  color: z.ZodString;
640
612
  opacity: z.ZodNumber;
641
- author: z.ZodOptional<z.ZodString>;
642
- contents: z.ZodOptional<z.ZodString>;
643
- inReplyTo: z.ZodOptional<z.ZodString>;
644
613
  createdAt: z.ZodISODateTime;
645
614
  modifiedAt: z.ZodISODateTime;
646
615
  source: z.ZodEnum<{
@@ -648,27 +617,25 @@ declare const InkSchema: z.ZodObject<{
648
617
  pdf: "pdf";
649
618
  }>;
650
619
  locked: z.ZodOptional<z.ZodBoolean>;
620
+ width: z.ZodDefault<z.ZodNumber>;
621
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
622
+ interiorColor: z.ZodOptional<z.ZodString>;
623
+ id: z.ZodString;
624
+ page: z.ZodNumber;
625
+ author: z.ZodOptional<z.ZodString>;
626
+ contents: z.ZodOptional<z.ZodString>;
627
+ inReplyTo: z.ZodOptional<z.ZodString>;
651
628
  subject: z.ZodOptional<z.ZodString>;
652
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
629
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
653
630
  custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
654
- type: z.ZodLiteral<"ink">;
631
+ type: z.ZodLiteral<"polygon">;
632
+ }, z.core.$strip>], "type">;
633
+ declare const InkSchema: z.ZodObject<{
655
634
  inklist: z.ZodArray<z.ZodArray<z.ZodObject<{
656
635
  x: z.ZodNumber;
657
636
  y: z.ZodNumber;
658
637
  }, z.core.$strip>>>;
659
638
  pressure: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodNumber>>>;
660
- width: z.ZodDefault<z.ZodNumber>;
661
- dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
662
- }, z.core.$strip>;
663
- /** A PNG or JPEG image as a base64 `data:` URL, as XFDF carries a stamp's `<imagedata>`. */
664
- declare const IMAGE_DATA_URL: RegExp;
665
- /**
666
- * An image on the page (XFDF `stamp`), drawn to fill `rect`. Image and typed signatures are
667
- * stamps with `subject: 'Signature'`.
668
- */
669
- declare const StampSchema: z.ZodObject<{
670
- id: z.ZodString;
671
- page: z.ZodNumber;
672
639
  rect: z.ZodObject<{
673
640
  x: z.ZodNumber;
674
641
  y: z.ZodNumber;
@@ -677,9 +644,6 @@ declare const StampSchema: z.ZodObject<{
677
644
  }, z.core.$strip>;
678
645
  color: z.ZodString;
679
646
  opacity: z.ZodNumber;
680
- author: z.ZodOptional<z.ZodString>;
681
- contents: z.ZodOptional<z.ZodString>;
682
- inReplyTo: z.ZodOptional<z.ZodString>;
683
647
  createdAt: z.ZodISODateTime;
684
648
  modifiedAt: z.ZodISODateTime;
685
649
  source: z.ZodEnum<{
@@ -687,20 +651,23 @@ declare const StampSchema: z.ZodObject<{
687
651
  pdf: "pdf";
688
652
  }>;
689
653
  locked: z.ZodOptional<z.ZodBoolean>;
654
+ width: z.ZodDefault<z.ZodNumber>;
655
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
656
+ id: z.ZodString;
657
+ page: z.ZodNumber;
658
+ author: z.ZodOptional<z.ZodString>;
659
+ contents: z.ZodOptional<z.ZodString>;
660
+ inReplyTo: z.ZodOptional<z.ZodString>;
690
661
  subject: z.ZodOptional<z.ZodString>;
691
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
662
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
692
663
  custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
693
- type: z.ZodLiteral<"stamp">;
694
- imagedata: z.ZodString;
695
- rotation: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<90>, z.ZodLiteral<180>, z.ZodLiteral<270>]>>;
664
+ type: z.ZodLiteral<"ink">;
696
665
  }, z.core.$strip>;
697
666
  /**
698
- * A loupe (an extension, not XFDF): a circle inscribed in `rect` that shows the page content
699
- * under its own centre, magnified. `color` and `width` draw its rim.
667
+ * An image on the page (XFDF `stamp`), drawn to fill `rect`. Image and typed signatures are
668
+ * stamps with `subject: 'Signature'`.
700
669
  */
701
- declare const LoupeSchema: z.ZodObject<{
702
- id: z.ZodString;
703
- page: z.ZodNumber;
670
+ declare const StampSchema: z.ZodObject<{
704
671
  rect: z.ZodObject<{
705
672
  x: z.ZodNumber;
706
673
  y: z.ZodNumber;
@@ -709,9 +676,6 @@ declare const LoupeSchema: z.ZodObject<{
709
676
  }, z.core.$strip>;
710
677
  color: z.ZodString;
711
678
  opacity: z.ZodNumber;
712
- author: z.ZodOptional<z.ZodString>;
713
- contents: z.ZodOptional<z.ZodString>;
714
- inReplyTo: z.ZodOptional<z.ZodString>;
715
679
  createdAt: z.ZodISODateTime;
716
680
  modifiedAt: z.ZodISODateTime;
717
681
  source: z.ZodEnum<{
@@ -719,22 +683,24 @@ declare const LoupeSchema: z.ZodObject<{
719
683
  pdf: "pdf";
720
684
  }>;
721
685
  locked: z.ZodOptional<z.ZodBoolean>;
686
+ imagedata: z.ZodString;
687
+ rotation: z.ZodOptional<z.ZodLiteral<0 | 90 | 180 | 270>>;
688
+ id: z.ZodString;
689
+ page: z.ZodNumber;
690
+ author: z.ZodOptional<z.ZodString>;
691
+ contents: z.ZodOptional<z.ZodString>;
692
+ inReplyTo: z.ZodOptional<z.ZodString>;
722
693
  subject: z.ZodOptional<z.ZodString>;
723
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
694
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
724
695
  custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
725
- type: z.ZodLiteral<"loupe">;
726
- magnification: z.ZodDefault<z.ZodNumber>;
727
- width: z.ZodDefault<z.ZodNumber>;
696
+ type: z.ZodLiteral<"stamp">;
728
697
  }, z.core.$strip>;
729
698
  /**
730
- * A mask (an extension, not XFDF): dims everything on the page outside `shape` drawn in
731
- * `rect`, an ellipse inscribed in it or the rectangle itself. `color` is the dimming colour
732
- * (black by default) and `dim` how strongly it covers. One per page: adding a second replaces
733
- * the first.
699
+ * A loupe (Inkbar's own type, a circle with `custom.inkbar.type: 'loupe'` in a file): a circle
700
+ * inscribed in `rect` that shows the page content under its own centre, magnified. `color` and
701
+ * `width` draw its rim.
734
702
  */
735
- declare const MaskSchema: z.ZodObject<{
736
- id: z.ZodString;
737
- page: z.ZodNumber;
703
+ declare const LoupeSchema: z.ZodObject<{
738
704
  rect: z.ZodObject<{
739
705
  x: z.ZodNumber;
740
706
  y: z.ZodNumber;
@@ -743,9 +709,6 @@ declare const MaskSchema: z.ZodObject<{
743
709
  }, z.core.$strip>;
744
710
  color: z.ZodString;
745
711
  opacity: z.ZodNumber;
746
- author: z.ZodOptional<z.ZodString>;
747
- contents: z.ZodOptional<z.ZodString>;
748
- inReplyTo: z.ZodOptional<z.ZodString>;
749
712
  createdAt: z.ZodISODateTime;
750
713
  modifiedAt: z.ZodISODateTime;
751
714
  source: z.ZodEnum<{
@@ -753,30 +716,25 @@ declare const MaskSchema: z.ZodObject<{
753
716
  pdf: "pdf";
754
717
  }>;
755
718
  locked: z.ZodOptional<z.ZodBoolean>;
719
+ magnification: z.ZodDefault<z.ZodNumber>;
720
+ width: z.ZodDefault<z.ZodNumber>;
721
+ id: z.ZodString;
722
+ page: z.ZodNumber;
723
+ author: z.ZodOptional<z.ZodString>;
724
+ contents: z.ZodOptional<z.ZodString>;
725
+ inReplyTo: z.ZodOptional<z.ZodString>;
756
726
  subject: z.ZodOptional<z.ZodString>;
757
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
727
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
758
728
  custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
759
- type: z.ZodLiteral<"mask">;
760
- shape: z.ZodEnum<{
761
- rect: "rect";
762
- ellipse: "ellipse";
763
- }>;
764
- dim: z.ZodDefault<z.ZodNumber>;
765
- }, z.core.$strip>;
766
- declare const SuggestionSchema: z.ZodObject<{
767
- jobId: z.ZodOptional<z.ZodString>;
768
- confidence: z.ZodNumber;
769
- reason: z.ZodOptional<z.ZodString>;
770
- explanation: z.ZodOptional<z.ZodString>;
771
- recommendation: z.ZodOptional<z.ZodEnum<{
772
- redact: "redact";
773
- review: "review";
774
- keep: "keep";
775
- }>>;
729
+ type: z.ZodLiteral<"loupe">;
776
730
  }, z.core.$strip>;
777
- declare const RedactSchema: z.ZodObject<{
778
- id: z.ZodString;
779
- page: z.ZodNumber;
731
+ /**
732
+ * A mask (Inkbar's own type, a circle or square with `custom.inkbar.type: 'mask'` in a file):
733
+ * dims everything on the page outside `shape` drawn in `rect`, an ellipse inscribed in it or the
734
+ * rectangle itself. `color` is the dimming colour and `dim` how strongly it covers, from 0 to 1.
735
+ * One per page: adding a second replaces the first.
736
+ */
737
+ declare const MaskSchema: z.ZodObject<{
780
738
  rect: z.ZodObject<{
781
739
  x: z.ZodNumber;
782
740
  y: z.ZodNumber;
@@ -784,10 +742,7 @@ declare const RedactSchema: z.ZodObject<{
784
742
  height: z.ZodNumber;
785
743
  }, z.core.$strip>;
786
744
  color: z.ZodString;
787
- opacity: z.ZodNumber;
788
- author: z.ZodOptional<z.ZodString>;
789
- contents: z.ZodOptional<z.ZodString>;
790
- inReplyTo: z.ZodOptional<z.ZodString>;
745
+ opacity: z.ZodNumber;
791
746
  createdAt: z.ZodISODateTime;
792
747
  modifiedAt: z.ZodISODateTime;
793
748
  source: z.ZodEnum<{
@@ -795,10 +750,22 @@ declare const RedactSchema: z.ZodObject<{
795
750
  pdf: "pdf";
796
751
  }>;
797
752
  locked: z.ZodOptional<z.ZodBoolean>;
753
+ shape: z.ZodEnum<{
754
+ rect: "rect";
755
+ ellipse: "ellipse";
756
+ }>;
757
+ dim: z.ZodDefault<z.ZodNumber>;
758
+ id: z.ZodString;
759
+ page: z.ZodNumber;
760
+ author: z.ZodOptional<z.ZodString>;
761
+ contents: z.ZodOptional<z.ZodString>;
762
+ inReplyTo: z.ZodOptional<z.ZodString>;
798
763
  subject: z.ZodOptional<z.ZodString>;
799
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
764
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
800
765
  custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
801
- type: z.ZodLiteral<"redact">;
766
+ type: z.ZodLiteral<"mask">;
767
+ }, z.core.$strip>;
768
+ declare const RedactSchema: z.ZodObject<{
802
769
  quads: z.ZodOptional<z.ZodArray<z.ZodObject<{
803
770
  p1: z.ZodObject<{
804
771
  x: z.ZodNumber;
@@ -817,27 +784,7 @@ declare const RedactSchema: z.ZodObject<{
817
784
  y: z.ZodNumber;
818
785
  }, z.core.$strip>;
819
786
  }, z.core.$strip>>>;
820
- origin: z.ZodDefault<z.ZodEnum<{
821
- user: "user";
822
- suggested: "suggested";
823
- }>>;
824
- suggestion: z.ZodOptional<z.ZodObject<{
825
- jobId: z.ZodOptional<z.ZodString>;
826
- confidence: z.ZodNumber;
827
- reason: z.ZodOptional<z.ZodString>;
828
- explanation: z.ZodOptional<z.ZodString>;
829
- recommendation: z.ZodOptional<z.ZodEnum<{
830
- redact: "redact";
831
- review: "review";
832
- keep: "keep";
833
- }>>;
834
- }, z.core.$strip>>;
835
- overlayText: z.ZodOptional<z.ZodString>;
836
787
  interiorColor: z.ZodString;
837
- }, z.core.$strip>;
838
- declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
839
- id: z.ZodString;
840
- page: z.ZodNumber;
841
788
  rect: z.ZodObject<{
842
789
  x: z.ZodNumber;
843
790
  y: z.ZodNumber;
@@ -846,9 +793,6 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
846
793
  }, z.core.$strip>;
847
794
  color: z.ZodString;
848
795
  opacity: z.ZodNumber;
849
- author: z.ZodOptional<z.ZodString>;
850
- contents: z.ZodOptional<z.ZodString>;
851
- inReplyTo: z.ZodOptional<z.ZodString>;
852
796
  createdAt: z.ZodISODateTime;
853
797
  modifiedAt: z.ZodISODateTime;
854
798
  source: z.ZodEnum<{
@@ -856,9 +800,18 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
856
800
  pdf: "pdf";
857
801
  }>;
858
802
  locked: z.ZodOptional<z.ZodBoolean>;
803
+ overlayText: z.ZodOptional<z.ZodString>;
804
+ id: z.ZodString;
805
+ page: z.ZodNumber;
806
+ author: z.ZodOptional<z.ZodString>;
807
+ contents: z.ZodOptional<z.ZodString>;
808
+ inReplyTo: z.ZodOptional<z.ZodString>;
859
809
  subject: z.ZodOptional<z.ZodString>;
860
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
810
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
861
811
  custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
812
+ type: z.ZodLiteral<"redact">;
813
+ }, z.core.$strip>;
814
+ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
862
815
  type: z.ZodEnum<{
863
816
  highlight: "highlight";
864
817
  underline: "underline";
@@ -883,9 +836,6 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
883
836
  y: z.ZodNumber;
884
837
  }, z.core.$strip>;
885
838
  }, z.core.$strip>>;
886
- }, z.core.$strip>, z.ZodObject<{
887
- id: z.ZodString;
888
- page: z.ZodNumber;
889
839
  rect: z.ZodObject<{
890
840
  x: z.ZodNumber;
891
841
  y: z.ZodNumber;
@@ -894,9 +844,6 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
894
844
  }, z.core.$strip>;
895
845
  color: z.ZodString;
896
846
  opacity: z.ZodNumber;
897
- author: z.ZodOptional<z.ZodString>;
898
- contents: z.ZodOptional<z.ZodString>;
899
- inReplyTo: z.ZodOptional<z.ZodString>;
900
847
  createdAt: z.ZodISODateTime;
901
848
  modifiedAt: z.ZodISODateTime;
902
849
  source: z.ZodEnum<{
@@ -904,23 +851,23 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
904
851
  pdf: "pdf";
905
852
  }>;
906
853
  locked: z.ZodOptional<z.ZodBoolean>;
854
+ id: z.ZodString;
855
+ page: z.ZodNumber;
856
+ author: z.ZodOptional<z.ZodString>;
857
+ contents: z.ZodOptional<z.ZodString>;
858
+ inReplyTo: z.ZodOptional<z.ZodString>;
907
859
  subject: z.ZodOptional<z.ZodString>;
908
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
860
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
909
861
  custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
910
- type: z.ZodLiteral<"text">;
911
- icon: z.ZodDefault<z.ZodType<(string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph", (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph", z.core.$ZodTypeInternals<(string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph", (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph">>>;
912
862
  }, z.core.$strip>, z.ZodObject<{
913
- id: z.ZodString;
914
- page: z.ZodNumber;
915
863
  rect: z.ZodObject<{
916
864
  x: z.ZodNumber;
917
865
  y: z.ZodNumber;
918
866
  width: z.ZodNumber;
919
867
  height: z.ZodNumber;
920
868
  }, z.core.$strip>;
869
+ color: z.ZodString;
921
870
  opacity: z.ZodNumber;
922
- author: z.ZodOptional<z.ZodString>;
923
- inReplyTo: z.ZodOptional<z.ZodString>;
924
871
  createdAt: z.ZodISODateTime;
925
872
  modifiedAt: z.ZodISODateTime;
926
873
  source: z.ZodEnum<{
@@ -928,20 +875,24 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
928
875
  pdf: "pdf";
929
876
  }>;
930
877
  locked: z.ZodOptional<z.ZodBoolean>;
878
+ icon: z.ZodDefault<z.ZodType<"Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph" | (string & {}), "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph" | (string & {}), z.core.$ZodTypeInternals<"Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph" | (string & {}), "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph" | (string & {})>>>;
879
+ id: z.ZodString;
880
+ page: z.ZodNumber;
881
+ author: z.ZodOptional<z.ZodString>;
882
+ contents: z.ZodOptional<z.ZodString>;
883
+ inReplyTo: z.ZodOptional<z.ZodString>;
931
884
  subject: z.ZodOptional<z.ZodString>;
932
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
885
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
933
886
  custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
934
- type: z.ZodLiteral<"freetext">;
935
- contents: z.ZodString;
887
+ type: z.ZodLiteral<"text">;
888
+ }, z.core.$strip>, z.ZodObject<{
936
889
  color: z.ZodOptional<z.ZodString>;
937
890
  borderColor: z.ZodOptional<z.ZodString>;
938
- width: z.ZodDefault<z.ZodNumber>;
939
- dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
940
- cornerRadius: z.ZodOptional<z.ZodNumber>;
941
891
  defaultStyle: z.ZodObject<{
892
+ color: z.ZodString;
893
+ align: z.ZodOptional<z.ZodNever>;
942
894
  fontFamily: z.ZodDefault<z.ZodString>;
943
895
  fontSize: z.ZodDefault<z.ZodNumber>;
944
- color: z.ZodString;
945
896
  textAlign: z.ZodDefault<z.ZodEnum<{
946
897
  left: "left";
947
898
  right: "right";
@@ -951,7 +902,6 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
951
902
  fontWeight: z.ZodOptional<z.ZodLiteral<"bold">>;
952
903
  fontStyle: z.ZodOptional<z.ZodLiteral<"italic">>;
953
904
  textDecoration: z.ZodOptional<z.ZodLiteral<"underline">>;
954
- align: z.ZodOptional<z.ZodNever>;
955
905
  }, z.core.$strip>;
956
906
  fringe: z.ZodOptional<z.ZodObject<{
957
907
  left: z.ZodNumber;
@@ -963,24 +913,16 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
963
913
  x: z.ZodNumber;
964
914
  y: z.ZodNumber;
965
915
  }, z.core.$strip>>>;
966
- head: z.ZodOptional<z.ZodType<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", z.core.$ZodTypeInternals<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash">>>;
967
916
  fontFamily: z.ZodOptional<z.ZodNever>;
968
917
  fontSize: z.ZodOptional<z.ZodNever>;
969
918
  align: z.ZodOptional<z.ZodNever>;
970
- }, z.core.$strip>, z.ZodObject<{
971
- id: z.ZodString;
972
- page: z.ZodNumber;
973
919
  rect: z.ZodObject<{
974
920
  x: z.ZodNumber;
975
921
  y: z.ZodNumber;
976
922
  width: z.ZodNumber;
977
923
  height: z.ZodNumber;
978
924
  }, z.core.$strip>;
979
- color: z.ZodString;
980
925
  opacity: z.ZodNumber;
981
- author: z.ZodOptional<z.ZodString>;
982
- contents: z.ZodOptional<z.ZodString>;
983
- inReplyTo: z.ZodOptional<z.ZodString>;
984
926
  createdAt: z.ZodISODateTime;
985
927
  modifiedAt: z.ZodISODateTime;
986
928
  source: z.ZodEnum<{
@@ -988,17 +930,20 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
988
930
  pdf: "pdf";
989
931
  }>;
990
932
  locked: z.ZodOptional<z.ZodBoolean>;
991
- subject: z.ZodOptional<z.ZodString>;
992
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
993
- custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
994
- cornerRadius: z.ZodOptional<z.ZodNumber>;
933
+ contents: z.ZodString;
995
934
  width: z.ZodDefault<z.ZodNumber>;
996
935
  dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
997
- interiorColor: z.ZodOptional<z.ZodString>;
998
- type: z.ZodLiteral<"square">;
999
- }, z.core.$strip>, z.ZodObject<{
936
+ cornerRadius: z.ZodOptional<z.ZodNumber>;
937
+ head: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
1000
938
  id: z.ZodString;
1001
939
  page: z.ZodNumber;
940
+ author: z.ZodOptional<z.ZodString>;
941
+ inReplyTo: z.ZodOptional<z.ZodString>;
942
+ subject: z.ZodOptional<z.ZodString>;
943
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
944
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
945
+ type: z.ZodLiteral<"freetext">;
946
+ }, z.core.$strip>, z.ZodObject<{
1002
947
  rect: z.ZodObject<{
1003
948
  x: z.ZodNumber;
1004
949
  y: z.ZodNumber;
@@ -1007,9 +952,6 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1007
952
  }, z.core.$strip>;
1008
953
  color: z.ZodString;
1009
954
  opacity: z.ZodNumber;
1010
- author: z.ZodOptional<z.ZodString>;
1011
- contents: z.ZodOptional<z.ZodString>;
1012
- inReplyTo: z.ZodOptional<z.ZodString>;
1013
955
  createdAt: z.ZodISODateTime;
1014
956
  modifiedAt: z.ZodISODateTime;
1015
957
  source: z.ZodEnum<{
@@ -1017,17 +959,21 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1017
959
  pdf: "pdf";
1018
960
  }>;
1019
961
  locked: z.ZodOptional<z.ZodBoolean>;
1020
- subject: z.ZodOptional<z.ZodString>;
1021
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
1022
- custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1023
- cornerRadius: z.ZodOptional<z.ZodNever>;
1024
962
  width: z.ZodDefault<z.ZodNumber>;
1025
963
  dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1026
964
  interiorColor: z.ZodOptional<z.ZodString>;
1027
- type: z.ZodLiteral<"circle">;
1028
- }, z.core.$strip>, z.ZodObject<{
965
+ cornerRadius: z.ZodOptional<z.ZodNumber>;
1029
966
  id: z.ZodString;
1030
967
  page: z.ZodNumber;
968
+ author: z.ZodOptional<z.ZodString>;
969
+ contents: z.ZodOptional<z.ZodString>;
970
+ inReplyTo: z.ZodOptional<z.ZodString>;
971
+ subject: z.ZodOptional<z.ZodString>;
972
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
973
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
974
+ type: z.ZodLiteral<"square">;
975
+ }, z.core.$strip>, z.ZodObject<{
976
+ cornerRadius: z.ZodOptional<z.ZodNever>;
1031
977
  rect: z.ZodObject<{
1032
978
  x: z.ZodNumber;
1033
979
  y: z.ZodNumber;
@@ -1036,9 +982,6 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1036
982
  }, z.core.$strip>;
1037
983
  color: z.ZodString;
1038
984
  opacity: z.ZodNumber;
1039
- author: z.ZodOptional<z.ZodString>;
1040
- contents: z.ZodOptional<z.ZodString>;
1041
- inReplyTo: z.ZodOptional<z.ZodString>;
1042
985
  createdAt: z.ZodISODateTime;
1043
986
  modifiedAt: z.ZodISODateTime;
1044
987
  source: z.ZodEnum<{
@@ -1046,10 +989,19 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1046
989
  pdf: "pdf";
1047
990
  }>;
1048
991
  locked: z.ZodOptional<z.ZodBoolean>;
992
+ width: z.ZodDefault<z.ZodNumber>;
993
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
994
+ interiorColor: z.ZodOptional<z.ZodString>;
995
+ id: z.ZodString;
996
+ page: z.ZodNumber;
997
+ author: z.ZodOptional<z.ZodString>;
998
+ contents: z.ZodOptional<z.ZodString>;
999
+ inReplyTo: z.ZodOptional<z.ZodString>;
1049
1000
  subject: z.ZodOptional<z.ZodString>;
1050
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
1001
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1051
1002
  custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1052
- type: z.ZodLiteral<"line">;
1003
+ type: z.ZodLiteral<"circle">;
1004
+ }, z.core.$strip>, z.ZodObject<{
1053
1005
  start: z.ZodObject<{
1054
1006
  x: z.ZodNumber;
1055
1007
  y: z.ZodNumber;
@@ -1058,13 +1010,6 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1058
1010
  x: z.ZodNumber;
1059
1011
  y: z.ZodNumber;
1060
1012
  }, z.core.$strip>;
1061
- width: z.ZodDefault<z.ZodNumber>;
1062
- dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1063
- head: z.ZodOptional<z.ZodType<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", z.core.$ZodTypeInternals<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash">>>;
1064
- tail: z.ZodOptional<z.ZodType<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", z.core.$ZodTypeInternals<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash">>>;
1065
- }, z.core.$strip>, z.ZodObject<{
1066
- id: z.ZodString;
1067
- page: z.ZodNumber;
1068
1013
  rect: z.ZodObject<{
1069
1014
  x: z.ZodNumber;
1070
1015
  y: z.ZodNumber;
@@ -1073,9 +1018,6 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1073
1018
  }, z.core.$strip>;
1074
1019
  color: z.ZodString;
1075
1020
  opacity: z.ZodNumber;
1076
- author: z.ZodOptional<z.ZodString>;
1077
- contents: z.ZodOptional<z.ZodString>;
1078
- inReplyTo: z.ZodOptional<z.ZodString>;
1079
1021
  createdAt: z.ZodISODateTime;
1080
1022
  modifiedAt: z.ZodISODateTime;
1081
1023
  source: z.ZodEnum<{
@@ -1083,22 +1025,24 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1083
1025
  pdf: "pdf";
1084
1026
  }>;
1085
1027
  locked: z.ZodOptional<z.ZodBoolean>;
1028
+ width: z.ZodDefault<z.ZodNumber>;
1029
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1030
+ head: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
1031
+ tail: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
1032
+ id: z.ZodString;
1033
+ page: z.ZodNumber;
1034
+ author: z.ZodOptional<z.ZodString>;
1035
+ contents: z.ZodOptional<z.ZodString>;
1036
+ inReplyTo: z.ZodOptional<z.ZodString>;
1086
1037
  subject: z.ZodOptional<z.ZodString>;
1087
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
1038
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1088
1039
  custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1089
- head: z.ZodOptional<z.ZodType<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", z.core.$ZodTypeInternals<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash">>>;
1090
- tail: z.ZodOptional<z.ZodType<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", z.core.$ZodTypeInternals<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash">>>;
1040
+ type: z.ZodLiteral<"line">;
1041
+ }, z.core.$strip>, z.ZodObject<{
1091
1042
  vertices: z.ZodArray<z.ZodObject<{
1092
1043
  x: z.ZodNumber;
1093
1044
  y: z.ZodNumber;
1094
1045
  }, z.core.$strip>>;
1095
- width: z.ZodDefault<z.ZodNumber>;
1096
- dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1097
- interiorColor: z.ZodOptional<z.ZodString>;
1098
- type: z.ZodLiteral<"polyline">;
1099
- }, z.core.$strip>, z.ZodObject<{
1100
- id: z.ZodString;
1101
- page: z.ZodNumber;
1102
1046
  rect: z.ZodObject<{
1103
1047
  x: z.ZodNumber;
1104
1048
  y: z.ZodNumber;
@@ -1107,9 +1051,6 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1107
1051
  }, z.core.$strip>;
1108
1052
  color: z.ZodString;
1109
1053
  opacity: z.ZodNumber;
1110
- author: z.ZodOptional<z.ZodString>;
1111
- contents: z.ZodOptional<z.ZodString>;
1112
- inReplyTo: z.ZodOptional<z.ZodString>;
1113
1054
  createdAt: z.ZodISODateTime;
1114
1055
  modifiedAt: z.ZodISODateTime;
1115
1056
  source: z.ZodEnum<{
@@ -1117,22 +1058,27 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1117
1058
  pdf: "pdf";
1118
1059
  }>;
1119
1060
  locked: z.ZodOptional<z.ZodBoolean>;
1061
+ width: z.ZodDefault<z.ZodNumber>;
1062
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1063
+ interiorColor: z.ZodOptional<z.ZodString>;
1064
+ head: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
1065
+ tail: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
1066
+ id: z.ZodString;
1067
+ page: z.ZodNumber;
1068
+ author: z.ZodOptional<z.ZodString>;
1069
+ contents: z.ZodOptional<z.ZodString>;
1070
+ inReplyTo: z.ZodOptional<z.ZodString>;
1120
1071
  subject: z.ZodOptional<z.ZodString>;
1121
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
1072
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1122
1073
  custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1123
- head: z.ZodOptional<z.ZodNever>;
1124
- tail: z.ZodOptional<z.ZodNever>;
1074
+ type: z.ZodLiteral<"polyline">;
1075
+ }, z.core.$strip>, z.ZodObject<{
1125
1076
  vertices: z.ZodArray<z.ZodObject<{
1126
1077
  x: z.ZodNumber;
1127
1078
  y: z.ZodNumber;
1128
1079
  }, z.core.$strip>>;
1129
- width: z.ZodDefault<z.ZodNumber>;
1130
- dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1131
- interiorColor: z.ZodOptional<z.ZodString>;
1132
- type: z.ZodLiteral<"polygon">;
1133
- }, z.core.$strip>, z.ZodObject<{
1134
- id: z.ZodString;
1135
- page: z.ZodNumber;
1080
+ head: z.ZodOptional<z.ZodNever>;
1081
+ tail: z.ZodOptional<z.ZodNever>;
1136
1082
  rect: z.ZodObject<{
1137
1083
  x: z.ZodNumber;
1138
1084
  y: z.ZodNumber;
@@ -1141,9 +1087,6 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1141
1087
  }, z.core.$strip>;
1142
1088
  color: z.ZodString;
1143
1089
  opacity: z.ZodNumber;
1144
- author: z.ZodOptional<z.ZodString>;
1145
- contents: z.ZodOptional<z.ZodString>;
1146
- inReplyTo: z.ZodOptional<z.ZodString>;
1147
1090
  createdAt: z.ZodISODateTime;
1148
1091
  modifiedAt: z.ZodISODateTime;
1149
1092
  source: z.ZodEnum<{
@@ -1151,20 +1094,51 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1151
1094
  pdf: "pdf";
1152
1095
  }>;
1153
1096
  locked: z.ZodOptional<z.ZodBoolean>;
1097
+ width: z.ZodDefault<z.ZodNumber>;
1098
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1099
+ interiorColor: z.ZodOptional<z.ZodString>;
1100
+ id: z.ZodString;
1101
+ page: z.ZodNumber;
1102
+ author: z.ZodOptional<z.ZodString>;
1103
+ contents: z.ZodOptional<z.ZodString>;
1104
+ inReplyTo: z.ZodOptional<z.ZodString>;
1154
1105
  subject: z.ZodOptional<z.ZodString>;
1155
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
1106
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1156
1107
  custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1157
- type: z.ZodLiteral<"ink">;
1108
+ type: z.ZodLiteral<"polygon">;
1109
+ }, z.core.$strip>, z.ZodObject<{
1158
1110
  inklist: z.ZodArray<z.ZodArray<z.ZodObject<{
1159
1111
  x: z.ZodNumber;
1160
1112
  y: z.ZodNumber;
1161
1113
  }, z.core.$strip>>>;
1162
1114
  pressure: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodNumber>>>;
1115
+ rect: z.ZodObject<{
1116
+ x: z.ZodNumber;
1117
+ y: z.ZodNumber;
1118
+ width: z.ZodNumber;
1119
+ height: z.ZodNumber;
1120
+ }, z.core.$strip>;
1121
+ color: z.ZodString;
1122
+ opacity: z.ZodNumber;
1123
+ createdAt: z.ZodISODateTime;
1124
+ modifiedAt: z.ZodISODateTime;
1125
+ source: z.ZodEnum<{
1126
+ session: "session";
1127
+ pdf: "pdf";
1128
+ }>;
1129
+ locked: z.ZodOptional<z.ZodBoolean>;
1163
1130
  width: z.ZodDefault<z.ZodNumber>;
1164
1131
  dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1165
- }, z.core.$strip>, z.ZodObject<{
1166
1132
  id: z.ZodString;
1167
1133
  page: z.ZodNumber;
1134
+ author: z.ZodOptional<z.ZodString>;
1135
+ contents: z.ZodOptional<z.ZodString>;
1136
+ inReplyTo: z.ZodOptional<z.ZodString>;
1137
+ subject: z.ZodOptional<z.ZodString>;
1138
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1139
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1140
+ type: z.ZodLiteral<"ink">;
1141
+ }, z.core.$strip>, z.ZodObject<{
1168
1142
  rect: z.ZodObject<{
1169
1143
  x: z.ZodNumber;
1170
1144
  y: z.ZodNumber;
@@ -1173,9 +1147,6 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1173
1147
  }, z.core.$strip>;
1174
1148
  color: z.ZodString;
1175
1149
  opacity: z.ZodNumber;
1176
- author: z.ZodOptional<z.ZodString>;
1177
- contents: z.ZodOptional<z.ZodString>;
1178
- inReplyTo: z.ZodOptional<z.ZodString>;
1179
1150
  createdAt: z.ZodISODateTime;
1180
1151
  modifiedAt: z.ZodISODateTime;
1181
1152
  source: z.ZodEnum<{
@@ -1183,15 +1154,18 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1183
1154
  pdf: "pdf";
1184
1155
  }>;
1185
1156
  locked: z.ZodOptional<z.ZodBoolean>;
1157
+ imagedata: z.ZodString;
1158
+ rotation: z.ZodOptional<z.ZodLiteral<0 | 90 | 180 | 270>>;
1159
+ id: z.ZodString;
1160
+ page: z.ZodNumber;
1161
+ author: z.ZodOptional<z.ZodString>;
1162
+ contents: z.ZodOptional<z.ZodString>;
1163
+ inReplyTo: z.ZodOptional<z.ZodString>;
1186
1164
  subject: z.ZodOptional<z.ZodString>;
1187
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
1165
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1188
1166
  custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1189
1167
  type: z.ZodLiteral<"stamp">;
1190
- imagedata: z.ZodString;
1191
- rotation: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<90>, z.ZodLiteral<180>, z.ZodLiteral<270>]>>;
1192
1168
  }, z.core.$strip>, z.ZodObject<{
1193
- id: z.ZodString;
1194
- page: z.ZodNumber;
1195
1169
  rect: z.ZodObject<{
1196
1170
  x: z.ZodNumber;
1197
1171
  y: z.ZodNumber;
@@ -1200,9 +1174,6 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1200
1174
  }, z.core.$strip>;
1201
1175
  color: z.ZodString;
1202
1176
  opacity: z.ZodNumber;
1203
- author: z.ZodOptional<z.ZodString>;
1204
- contents: z.ZodOptional<z.ZodString>;
1205
- inReplyTo: z.ZodOptional<z.ZodString>;
1206
1177
  createdAt: z.ZodISODateTime;
1207
1178
  modifiedAt: z.ZodISODateTime;
1208
1179
  source: z.ZodEnum<{
@@ -1210,15 +1181,18 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1210
1181
  pdf: "pdf";
1211
1182
  }>;
1212
1183
  locked: z.ZodOptional<z.ZodBoolean>;
1213
- subject: z.ZodOptional<z.ZodString>;
1214
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
1215
- custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1216
- type: z.ZodLiteral<"loupe">;
1217
1184
  magnification: z.ZodDefault<z.ZodNumber>;
1218
1185
  width: z.ZodDefault<z.ZodNumber>;
1219
- }, z.core.$strip>, z.ZodObject<{
1220
1186
  id: z.ZodString;
1221
1187
  page: z.ZodNumber;
1188
+ author: z.ZodOptional<z.ZodString>;
1189
+ contents: z.ZodOptional<z.ZodString>;
1190
+ inReplyTo: z.ZodOptional<z.ZodString>;
1191
+ subject: z.ZodOptional<z.ZodString>;
1192
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1193
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1194
+ type: z.ZodLiteral<"loupe">;
1195
+ }, z.core.$strip>, z.ZodObject<{
1222
1196
  rect: z.ZodObject<{
1223
1197
  x: z.ZodNumber;
1224
1198
  y: z.ZodNumber;
@@ -1227,9 +1201,6 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1227
1201
  }, z.core.$strip>;
1228
1202
  color: z.ZodString;
1229
1203
  opacity: z.ZodNumber;
1230
- author: z.ZodOptional<z.ZodString>;
1231
- contents: z.ZodOptional<z.ZodString>;
1232
- inReplyTo: z.ZodOptional<z.ZodString>;
1233
1204
  createdAt: z.ZodISODateTime;
1234
1205
  modifiedAt: z.ZodISODateTime;
1235
1206
  source: z.ZodEnum<{
@@ -1237,18 +1208,40 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1237
1208
  pdf: "pdf";
1238
1209
  }>;
1239
1210
  locked: z.ZodOptional<z.ZodBoolean>;
1240
- subject: z.ZodOptional<z.ZodString>;
1241
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
1242
- custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1243
- type: z.ZodLiteral<"mask">;
1244
1211
  shape: z.ZodEnum<{
1245
1212
  rect: "rect";
1246
1213
  ellipse: "ellipse";
1247
1214
  }>;
1248
1215
  dim: z.ZodDefault<z.ZodNumber>;
1249
- }, z.core.$strip>, z.ZodObject<{
1250
1216
  id: z.ZodString;
1251
1217
  page: z.ZodNumber;
1218
+ author: z.ZodOptional<z.ZodString>;
1219
+ contents: z.ZodOptional<z.ZodString>;
1220
+ inReplyTo: z.ZodOptional<z.ZodString>;
1221
+ subject: z.ZodOptional<z.ZodString>;
1222
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1223
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1224
+ type: z.ZodLiteral<"mask">;
1225
+ }, z.core.$strip>, z.ZodObject<{
1226
+ quads: z.ZodOptional<z.ZodArray<z.ZodObject<{
1227
+ p1: z.ZodObject<{
1228
+ x: z.ZodNumber;
1229
+ y: z.ZodNumber;
1230
+ }, z.core.$strip>;
1231
+ p2: z.ZodObject<{
1232
+ x: z.ZodNumber;
1233
+ y: z.ZodNumber;
1234
+ }, z.core.$strip>;
1235
+ p3: z.ZodObject<{
1236
+ x: z.ZodNumber;
1237
+ y: z.ZodNumber;
1238
+ }, z.core.$strip>;
1239
+ p4: z.ZodObject<{
1240
+ x: z.ZodNumber;
1241
+ y: z.ZodNumber;
1242
+ }, z.core.$strip>;
1243
+ }, z.core.$strip>>>;
1244
+ interiorColor: z.ZodString;
1252
1245
  rect: z.ZodObject<{
1253
1246
  x: z.ZodNumber;
1254
1247
  y: z.ZodNumber;
@@ -1257,9 +1250,6 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1257
1250
  }, z.core.$strip>;
1258
1251
  color: z.ZodString;
1259
1252
  opacity: z.ZodNumber;
1260
- author: z.ZodOptional<z.ZodString>;
1261
- contents: z.ZodOptional<z.ZodString>;
1262
- inReplyTo: z.ZodOptional<z.ZodString>;
1263
1253
  createdAt: z.ZodISODateTime;
1264
1254
  modifiedAt: z.ZodISODateTime;
1265
1255
  source: z.ZodEnum<{
@@ -1267,11 +1257,20 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1267
1257
  pdf: "pdf";
1268
1258
  }>;
1269
1259
  locked: z.ZodOptional<z.ZodBoolean>;
1260
+ overlayText: z.ZodOptional<z.ZodString>;
1261
+ id: z.ZodString;
1262
+ page: z.ZodNumber;
1263
+ author: z.ZodOptional<z.ZodString>;
1264
+ contents: z.ZodOptional<z.ZodString>;
1265
+ inReplyTo: z.ZodOptional<z.ZodString>;
1270
1266
  subject: z.ZodOptional<z.ZodString>;
1271
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
1267
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1272
1268
  custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1273
1269
  type: z.ZodLiteral<"redact">;
1274
- quads: z.ZodOptional<z.ZodArray<z.ZodObject<{
1270
+ }, z.core.$strip>], "type">;
1271
+ /** One exported annotation: the stored annotation without its viewer state. */
1272
+ declare const ExportedAnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1273
+ quads: z.ZodArray<z.ZodObject<{
1275
1274
  p1: z.ZodObject<{
1276
1275
  x: z.ZodNumber;
1277
1276
  y: z.ZodNumber;
@@ -1288,33 +1287,14 @@ declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1288
1287
  x: z.ZodNumber;
1289
1288
  y: z.ZodNumber;
1290
1289
  }, z.core.$strip>;
1291
- }, z.core.$strip>>>;
1292
- origin: z.ZodDefault<z.ZodEnum<{
1293
- user: "user";
1294
- suggested: "suggested";
1295
- }>>;
1296
- suggestion: z.ZodOptional<z.ZodObject<{
1297
- jobId: z.ZodOptional<z.ZodString>;
1298
- confidence: z.ZodNumber;
1299
- reason: z.ZodOptional<z.ZodString>;
1300
- explanation: z.ZodOptional<z.ZodString>;
1301
- recommendation: z.ZodOptional<z.ZodEnum<{
1302
- redact: "redact";
1303
- review: "review";
1304
- keep: "keep";
1305
- }>>;
1306
1290
  }, z.core.$strip>>;
1307
- overlayText: z.ZodOptional<z.ZodString>;
1308
- interiorColor: z.ZodString;
1309
- }, z.core.$strip>], "type">;
1310
- /** One exported annotation: the stored annotation without its viewer state. */
1311
- declare const ExportedAnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1312
1291
  type: z.ZodEnum<{
1313
1292
  highlight: "highlight";
1314
1293
  underline: "underline";
1315
1294
  strikeout: "strikeout";
1316
1295
  squiggly: "squiggly";
1317
1296
  }>;
1297
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1318
1298
  rect: z.ZodObject<{
1319
1299
  x: z.ZodNumber;
1320
1300
  y: z.ZodNumber;
@@ -1322,37 +1302,19 @@ declare const ExportedAnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1322
1302
  height: z.ZodNumber;
1323
1303
  }, z.core.$strip>;
1324
1304
  color: z.ZodString;
1305
+ opacity: z.ZodNumber;
1306
+ createdAt: z.ZodISODateTime;
1307
+ modifiedAt: z.ZodISODateTime;
1325
1308
  id: z.ZodString;
1326
1309
  page: z.ZodNumber;
1327
- opacity: z.ZodNumber;
1328
1310
  author: z.ZodOptional<z.ZodString>;
1329
1311
  contents: z.ZodOptional<z.ZodString>;
1330
1312
  inReplyTo: z.ZodOptional<z.ZodString>;
1331
- createdAt: z.ZodISODateTime;
1332
- modifiedAt: z.ZodISODateTime;
1333
1313
  subject: z.ZodOptional<z.ZodString>;
1334
- custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1335
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
1336
- quads: z.ZodArray<z.ZodObject<{
1337
- p1: z.ZodObject<{
1338
- x: z.ZodNumber;
1339
- y: z.ZodNumber;
1340
- }, z.core.$strip>;
1341
- p2: z.ZodObject<{
1342
- x: z.ZodNumber;
1343
- y: z.ZodNumber;
1344
- }, z.core.$strip>;
1345
- p3: z.ZodObject<{
1346
- x: z.ZodNumber;
1347
- y: z.ZodNumber;
1348
- }, z.core.$strip>;
1349
- p4: z.ZodObject<{
1350
- x: z.ZodNumber;
1351
- y: z.ZodNumber;
1352
- }, z.core.$strip>;
1353
- }, z.core.$strip>>;
1314
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1354
1315
  }, z.core.$strip>, z.ZodObject<{
1355
1316
  type: z.ZodLiteral<"text">;
1317
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1356
1318
  rect: z.ZodObject<{
1357
1319
  x: z.ZodNumber;
1358
1320
  y: z.ZodNumber;
@@ -1360,21 +1322,21 @@ declare const ExportedAnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1360
1322
  height: z.ZodNumber;
1361
1323
  }, z.core.$strip>;
1362
1324
  color: z.ZodString;
1325
+ opacity: z.ZodNumber;
1326
+ createdAt: z.ZodISODateTime;
1327
+ modifiedAt: z.ZodISODateTime;
1363
1328
  id: z.ZodString;
1364
1329
  page: z.ZodNumber;
1365
- opacity: z.ZodNumber;
1366
1330
  author: z.ZodOptional<z.ZodString>;
1367
1331
  contents: z.ZodOptional<z.ZodString>;
1368
1332
  inReplyTo: z.ZodOptional<z.ZodString>;
1369
- createdAt: z.ZodISODateTime;
1370
- modifiedAt: z.ZodISODateTime;
1371
1333
  subject: z.ZodOptional<z.ZodString>;
1372
- custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1373
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
1374
- icon: z.ZodDefault<z.ZodType<(string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph", (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph", z.core.$ZodTypeInternals<(string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph", (string & {}) | "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph">>>;
1334
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1335
+ icon: z.ZodDefault<z.ZodType<"Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph" | (string & {}), "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph" | (string & {}), z.core.$ZodTypeInternals<"Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph" | (string & {}), "Comment" | "Note" | "Help" | "Insert" | "Key" | "NewParagraph" | "Paragraph" | (string & {})>>>;
1375
1336
  }, z.core.$strip>, z.ZodObject<{
1376
- type: z.ZodLiteral<"freetext">;
1377
1337
  width: z.ZodDefault<z.ZodNumber>;
1338
+ type: z.ZodLiteral<"freetext">;
1339
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1378
1340
  rect: z.ZodObject<{
1379
1341
  x: z.ZodNumber;
1380
1342
  y: z.ZodNumber;
@@ -1382,27 +1344,24 @@ declare const ExportedAnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1382
1344
  height: z.ZodNumber;
1383
1345
  }, z.core.$strip>;
1384
1346
  color: z.ZodOptional<z.ZodString>;
1347
+ opacity: z.ZodNumber;
1348
+ createdAt: z.ZodISODateTime;
1349
+ modifiedAt: z.ZodISODateTime;
1385
1350
  id: z.ZodString;
1386
1351
  page: z.ZodNumber;
1387
- opacity: z.ZodNumber;
1388
1352
  author: z.ZodOptional<z.ZodString>;
1389
1353
  contents: z.ZodString;
1390
1354
  inReplyTo: z.ZodOptional<z.ZodString>;
1391
- createdAt: z.ZodISODateTime;
1392
- modifiedAt: z.ZodISODateTime;
1393
1355
  subject: z.ZodOptional<z.ZodString>;
1394
- custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1395
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
1356
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1396
1357
  align: z.ZodOptional<z.ZodNever>;
1397
1358
  fontFamily: z.ZodOptional<z.ZodNever>;
1398
1359
  fontSize: z.ZodOptional<z.ZodNever>;
1399
- borderColor: z.ZodOptional<z.ZodString>;
1400
- dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1401
- cornerRadius: z.ZodOptional<z.ZodNumber>;
1402
1360
  defaultStyle: z.ZodObject<{
1361
+ color: z.ZodString;
1362
+ align: z.ZodOptional<z.ZodNever>;
1403
1363
  fontFamily: z.ZodDefault<z.ZodString>;
1404
1364
  fontSize: z.ZodDefault<z.ZodNumber>;
1405
- color: z.ZodString;
1406
1365
  textAlign: z.ZodDefault<z.ZodEnum<{
1407
1366
  left: "left";
1408
1367
  right: "right";
@@ -1412,8 +1371,8 @@ declare const ExportedAnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1412
1371
  fontWeight: z.ZodOptional<z.ZodLiteral<"bold">>;
1413
1372
  fontStyle: z.ZodOptional<z.ZodLiteral<"italic">>;
1414
1373
  textDecoration: z.ZodOptional<z.ZodLiteral<"underline">>;
1415
- align: z.ZodOptional<z.ZodNever>;
1416
1374
  }, z.core.$strip>;
1375
+ borderColor: z.ZodOptional<z.ZodString>;
1417
1376
  fringe: z.ZodOptional<z.ZodObject<{
1418
1377
  left: z.ZodNumber;
1419
1378
  top: z.ZodNumber;
@@ -1424,10 +1383,13 @@ declare const ExportedAnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1424
1383
  x: z.ZodNumber;
1425
1384
  y: z.ZodNumber;
1426
1385
  }, z.core.$strip>>>;
1427
- head: z.ZodOptional<z.ZodType<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", z.core.$ZodTypeInternals<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash">>>;
1386
+ dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1387
+ cornerRadius: z.ZodOptional<z.ZodNumber>;
1388
+ head: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
1428
1389
  }, z.core.$strip>, z.ZodObject<{
1429
- type: z.ZodLiteral<"square">;
1430
1390
  width: z.ZodDefault<z.ZodNumber>;
1391
+ type: z.ZodLiteral<"square">;
1392
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1431
1393
  rect: z.ZodObject<{
1432
1394
  x: z.ZodNumber;
1433
1395
  y: z.ZodNumber;
@@ -1435,23 +1397,23 @@ declare const ExportedAnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1435
1397
  height: z.ZodNumber;
1436
1398
  }, z.core.$strip>;
1437
1399
  color: z.ZodString;
1400
+ opacity: z.ZodNumber;
1401
+ createdAt: z.ZodISODateTime;
1402
+ modifiedAt: z.ZodISODateTime;
1438
1403
  id: z.ZodString;
1439
1404
  page: z.ZodNumber;
1440
- opacity: z.ZodNumber;
1441
1405
  author: z.ZodOptional<z.ZodString>;
1442
1406
  contents: z.ZodOptional<z.ZodString>;
1443
1407
  inReplyTo: z.ZodOptional<z.ZodString>;
1444
- createdAt: z.ZodISODateTime;
1445
- modifiedAt: z.ZodISODateTime;
1446
1408
  subject: z.ZodOptional<z.ZodString>;
1447
- custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1448
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
1409
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1449
1410
  dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1450
1411
  cornerRadius: z.ZodOptional<z.ZodNumber>;
1451
1412
  interiorColor: z.ZodOptional<z.ZodString>;
1452
1413
  }, z.core.$strip>, z.ZodObject<{
1453
- type: z.ZodLiteral<"circle">;
1454
1414
  width: z.ZodDefault<z.ZodNumber>;
1415
+ type: z.ZodLiteral<"circle">;
1416
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1455
1417
  rect: z.ZodObject<{
1456
1418
  x: z.ZodNumber;
1457
1419
  y: z.ZodNumber;
@@ -1459,23 +1421,23 @@ declare const ExportedAnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1459
1421
  height: z.ZodNumber;
1460
1422
  }, z.core.$strip>;
1461
1423
  color: z.ZodString;
1424
+ opacity: z.ZodNumber;
1425
+ createdAt: z.ZodISODateTime;
1426
+ modifiedAt: z.ZodISODateTime;
1462
1427
  id: z.ZodString;
1463
1428
  page: z.ZodNumber;
1464
- opacity: z.ZodNumber;
1465
1429
  author: z.ZodOptional<z.ZodString>;
1466
1430
  contents: z.ZodOptional<z.ZodString>;
1467
1431
  inReplyTo: z.ZodOptional<z.ZodString>;
1468
- createdAt: z.ZodISODateTime;
1469
- modifiedAt: z.ZodISODateTime;
1470
1432
  subject: z.ZodOptional<z.ZodString>;
1471
- custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1472
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
1433
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1473
1434
  dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1474
1435
  cornerRadius: z.ZodOptional<z.ZodNever>;
1475
1436
  interiorColor: z.ZodOptional<z.ZodString>;
1476
1437
  }, z.core.$strip>, z.ZodObject<{
1477
- type: z.ZodLiteral<"line">;
1478
1438
  width: z.ZodDefault<z.ZodNumber>;
1439
+ type: z.ZodLiteral<"line">;
1440
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1479
1441
  rect: z.ZodObject<{
1480
1442
  x: z.ZodNumber;
1481
1443
  y: z.ZodNumber;
@@ -1483,19 +1445,18 @@ declare const ExportedAnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1483
1445
  height: z.ZodNumber;
1484
1446
  }, z.core.$strip>;
1485
1447
  color: z.ZodString;
1448
+ opacity: z.ZodNumber;
1449
+ createdAt: z.ZodISODateTime;
1450
+ modifiedAt: z.ZodISODateTime;
1486
1451
  id: z.ZodString;
1487
1452
  page: z.ZodNumber;
1488
- opacity: z.ZodNumber;
1489
1453
  author: z.ZodOptional<z.ZodString>;
1490
1454
  contents: z.ZodOptional<z.ZodString>;
1491
1455
  inReplyTo: z.ZodOptional<z.ZodString>;
1492
- createdAt: z.ZodISODateTime;
1493
- modifiedAt: z.ZodISODateTime;
1494
1456
  subject: z.ZodOptional<z.ZodString>;
1495
- custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1496
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
1457
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1497
1458
  dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1498
- head: z.ZodOptional<z.ZodType<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", z.core.$ZodTypeInternals<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash">>>;
1459
+ head: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
1499
1460
  start: z.ZodObject<{
1500
1461
  x: z.ZodNumber;
1501
1462
  y: z.ZodNumber;
@@ -1504,10 +1465,11 @@ declare const ExportedAnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1504
1465
  x: z.ZodNumber;
1505
1466
  y: z.ZodNumber;
1506
1467
  }, z.core.$strip>;
1507
- tail: z.ZodOptional<z.ZodType<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", z.core.$ZodTypeInternals<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash">>>;
1468
+ tail: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
1508
1469
  }, z.core.$strip>, z.ZodObject<{
1509
- type: z.ZodLiteral<"polyline">;
1510
1470
  width: z.ZodDefault<z.ZodNumber>;
1471
+ type: z.ZodLiteral<"polyline">;
1472
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1511
1473
  rect: z.ZodObject<{
1512
1474
  x: z.ZodNumber;
1513
1475
  y: z.ZodNumber;
@@ -1515,28 +1477,28 @@ declare const ExportedAnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1515
1477
  height: z.ZodNumber;
1516
1478
  }, z.core.$strip>;
1517
1479
  color: z.ZodString;
1480
+ opacity: z.ZodNumber;
1481
+ createdAt: z.ZodISODateTime;
1482
+ modifiedAt: z.ZodISODateTime;
1518
1483
  id: z.ZodString;
1519
1484
  page: z.ZodNumber;
1520
- opacity: z.ZodNumber;
1521
1485
  author: z.ZodOptional<z.ZodString>;
1522
1486
  contents: z.ZodOptional<z.ZodString>;
1523
1487
  inReplyTo: z.ZodOptional<z.ZodString>;
1524
- createdAt: z.ZodISODateTime;
1525
- modifiedAt: z.ZodISODateTime;
1526
1488
  subject: z.ZodOptional<z.ZodString>;
1527
- custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1528
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
1489
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1529
1490
  dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1530
- head: z.ZodOptional<z.ZodType<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", z.core.$ZodTypeInternals<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash">>>;
1491
+ head: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
1531
1492
  interiorColor: z.ZodOptional<z.ZodString>;
1532
- tail: z.ZodOptional<z.ZodType<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", z.core.$ZodTypeInternals<(string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash", (string & {}) | "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash">>>;
1493
+ tail: z.ZodOptional<z.ZodType<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), z.core.$ZodTypeInternals<"None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {}), "None" | "Square" | "Circle" | "Diamond" | "OpenArrow" | "ClosedArrow" | "Butt" | "ROpenArrow" | "RClosedArrow" | "Slash" | (string & {})>>>;
1533
1494
  vertices: z.ZodArray<z.ZodObject<{
1534
1495
  x: z.ZodNumber;
1535
1496
  y: z.ZodNumber;
1536
1497
  }, z.core.$strip>>;
1537
1498
  }, z.core.$strip>, z.ZodObject<{
1538
- type: z.ZodLiteral<"polygon">;
1539
1499
  width: z.ZodDefault<z.ZodNumber>;
1500
+ type: z.ZodLiteral<"polygon">;
1501
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1540
1502
  rect: z.ZodObject<{
1541
1503
  x: z.ZodNumber;
1542
1504
  y: z.ZodNumber;
@@ -1544,17 +1506,16 @@ declare const ExportedAnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1544
1506
  height: z.ZodNumber;
1545
1507
  }, z.core.$strip>;
1546
1508
  color: z.ZodString;
1509
+ opacity: z.ZodNumber;
1510
+ createdAt: z.ZodISODateTime;
1511
+ modifiedAt: z.ZodISODateTime;
1547
1512
  id: z.ZodString;
1548
1513
  page: z.ZodNumber;
1549
- opacity: z.ZodNumber;
1550
1514
  author: z.ZodOptional<z.ZodString>;
1551
1515
  contents: z.ZodOptional<z.ZodString>;
1552
1516
  inReplyTo: z.ZodOptional<z.ZodString>;
1553
- createdAt: z.ZodISODateTime;
1554
- modifiedAt: z.ZodISODateTime;
1555
1517
  subject: z.ZodOptional<z.ZodString>;
1556
- custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1557
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
1518
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1558
1519
  dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1559
1520
  head: z.ZodOptional<z.ZodNever>;
1560
1521
  interiorColor: z.ZodOptional<z.ZodString>;
@@ -1564,8 +1525,9 @@ declare const ExportedAnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1564
1525
  y: z.ZodNumber;
1565
1526
  }, z.core.$strip>>;
1566
1527
  }, z.core.$strip>, z.ZodObject<{
1567
- type: z.ZodLiteral<"ink">;
1568
1528
  width: z.ZodDefault<z.ZodNumber>;
1529
+ type: z.ZodLiteral<"ink">;
1530
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1569
1531
  rect: z.ZodObject<{
1570
1532
  x: z.ZodNumber;
1571
1533
  y: z.ZodNumber;
@@ -1573,17 +1535,16 @@ declare const ExportedAnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1573
1535
  height: z.ZodNumber;
1574
1536
  }, z.core.$strip>;
1575
1537
  color: z.ZodString;
1538
+ opacity: z.ZodNumber;
1539
+ createdAt: z.ZodISODateTime;
1540
+ modifiedAt: z.ZodISODateTime;
1576
1541
  id: z.ZodString;
1577
1542
  page: z.ZodNumber;
1578
- opacity: z.ZodNumber;
1579
1543
  author: z.ZodOptional<z.ZodString>;
1580
1544
  contents: z.ZodOptional<z.ZodString>;
1581
1545
  inReplyTo: z.ZodOptional<z.ZodString>;
1582
- createdAt: z.ZodISODateTime;
1583
- modifiedAt: z.ZodISODateTime;
1584
1546
  subject: z.ZodOptional<z.ZodString>;
1585
- custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1586
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
1547
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1587
1548
  dashes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1588
1549
  inklist: z.ZodArray<z.ZodArray<z.ZodObject<{
1589
1550
  x: z.ZodNumber;
@@ -1592,6 +1553,7 @@ declare const ExportedAnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1592
1553
  pressure: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodNumber>>>;
1593
1554
  }, z.core.$strip>, z.ZodObject<{
1594
1555
  type: z.ZodLiteral<"stamp">;
1556
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1595
1557
  rect: z.ZodObject<{
1596
1558
  x: z.ZodNumber;
1597
1559
  y: z.ZodNumber;
@@ -1599,22 +1561,22 @@ declare const ExportedAnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1599
1561
  height: z.ZodNumber;
1600
1562
  }, z.core.$strip>;
1601
1563
  color: z.ZodString;
1564
+ opacity: z.ZodNumber;
1565
+ createdAt: z.ZodISODateTime;
1566
+ modifiedAt: z.ZodISODateTime;
1602
1567
  id: z.ZodString;
1603
1568
  page: z.ZodNumber;
1604
- opacity: z.ZodNumber;
1605
1569
  author: z.ZodOptional<z.ZodString>;
1606
1570
  contents: z.ZodOptional<z.ZodString>;
1607
1571
  inReplyTo: z.ZodOptional<z.ZodString>;
1608
- createdAt: z.ZodISODateTime;
1609
- modifiedAt: z.ZodISODateTime;
1610
1572
  subject: z.ZodOptional<z.ZodString>;
1611
- custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1612
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
1573
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1613
1574
  imagedata: z.ZodString;
1614
- rotation: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<90>, z.ZodLiteral<180>, z.ZodLiteral<270>]>>;
1575
+ rotation: z.ZodOptional<z.ZodLiteral<0 | 90 | 180 | 270>>;
1615
1576
  }, z.core.$strip>, z.ZodObject<{
1616
- type: z.ZodLiteral<"loupe">;
1617
1577
  width: z.ZodDefault<z.ZodNumber>;
1578
+ type: z.ZodLiteral<"loupe">;
1579
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1618
1580
  rect: z.ZodObject<{
1619
1581
  x: z.ZodNumber;
1620
1582
  y: z.ZodNumber;
@@ -1622,20 +1584,20 @@ declare const ExportedAnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1622
1584
  height: z.ZodNumber;
1623
1585
  }, z.core.$strip>;
1624
1586
  color: z.ZodString;
1587
+ opacity: z.ZodNumber;
1588
+ createdAt: z.ZodISODateTime;
1589
+ modifiedAt: z.ZodISODateTime;
1625
1590
  id: z.ZodString;
1626
1591
  page: z.ZodNumber;
1627
- opacity: z.ZodNumber;
1628
1592
  author: z.ZodOptional<z.ZodString>;
1629
1593
  contents: z.ZodOptional<z.ZodString>;
1630
1594
  inReplyTo: z.ZodOptional<z.ZodString>;
1631
- createdAt: z.ZodISODateTime;
1632
- modifiedAt: z.ZodISODateTime;
1633
1595
  subject: z.ZodOptional<z.ZodString>;
1634
- custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1635
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
1596
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1636
1597
  magnification: z.ZodDefault<z.ZodNumber>;
1637
1598
  }, z.core.$strip>, z.ZodObject<{
1638
1599
  type: z.ZodLiteral<"mask">;
1600
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1639
1601
  rect: z.ZodObject<{
1640
1602
  x: z.ZodNumber;
1641
1603
  y: z.ZodNumber;
@@ -1643,42 +1605,22 @@ declare const ExportedAnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1643
1605
  height: z.ZodNumber;
1644
1606
  }, z.core.$strip>;
1645
1607
  color: z.ZodString;
1608
+ opacity: z.ZodNumber;
1609
+ createdAt: z.ZodISODateTime;
1610
+ modifiedAt: z.ZodISODateTime;
1646
1611
  id: z.ZodString;
1647
1612
  page: z.ZodNumber;
1648
- opacity: z.ZodNumber;
1649
1613
  author: z.ZodOptional<z.ZodString>;
1650
1614
  contents: z.ZodOptional<z.ZodString>;
1651
1615
  inReplyTo: z.ZodOptional<z.ZodString>;
1652
- createdAt: z.ZodISODateTime;
1653
- modifiedAt: z.ZodISODateTime;
1654
1616
  subject: z.ZodOptional<z.ZodString>;
1655
- custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1656
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
1617
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1657
1618
  shape: z.ZodEnum<{
1658
1619
  rect: "rect";
1659
1620
  ellipse: "ellipse";
1660
1621
  }>;
1661
1622
  dim: z.ZodDefault<z.ZodNumber>;
1662
1623
  }, z.core.$strip>, z.ZodObject<{
1663
- type: z.ZodLiteral<"redact">;
1664
- rect: z.ZodObject<{
1665
- x: z.ZodNumber;
1666
- y: z.ZodNumber;
1667
- width: z.ZodNumber;
1668
- height: z.ZodNumber;
1669
- }, z.core.$strip>;
1670
- color: z.ZodString;
1671
- id: z.ZodString;
1672
- page: z.ZodNumber;
1673
- opacity: z.ZodNumber;
1674
- author: z.ZodOptional<z.ZodString>;
1675
- contents: z.ZodOptional<z.ZodString>;
1676
- inReplyTo: z.ZodOptional<z.ZodString>;
1677
- createdAt: z.ZodISODateTime;
1678
- modifiedAt: z.ZodISODateTime;
1679
- subject: z.ZodOptional<z.ZodString>;
1680
- custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1681
- intent: z.ZodOptional<z.ZodType<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", z.core.$ZodTypeInternals<(string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension", (string & {}) | "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension">>>;
1682
1624
  quads: z.ZodOptional<z.ZodArray<z.ZodObject<{
1683
1625
  p1: z.ZodObject<{
1684
1626
  x: z.ZodNumber;
@@ -1697,34 +1639,38 @@ declare const ExportedAnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1697
1639
  y: z.ZodNumber;
1698
1640
  }, z.core.$strip>;
1699
1641
  }, z.core.$strip>>>;
1642
+ type: z.ZodLiteral<"redact">;
1643
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1644
+ rect: z.ZodObject<{
1645
+ x: z.ZodNumber;
1646
+ y: z.ZodNumber;
1647
+ width: z.ZodNumber;
1648
+ height: z.ZodNumber;
1649
+ }, z.core.$strip>;
1650
+ color: z.ZodString;
1651
+ opacity: z.ZodNumber;
1652
+ createdAt: z.ZodISODateTime;
1653
+ modifiedAt: z.ZodISODateTime;
1654
+ id: z.ZodString;
1655
+ page: z.ZodNumber;
1656
+ author: z.ZodOptional<z.ZodString>;
1657
+ contents: z.ZodOptional<z.ZodString>;
1658
+ inReplyTo: z.ZodOptional<z.ZodString>;
1659
+ subject: z.ZodOptional<z.ZodString>;
1660
+ intent: z.ZodOptional<z.ZodType<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), z.core.$ZodTypeInternals<"FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {}), "FreeText" | "FreeTextCallout" | "FreeTextTypeWriter" | "LineArrow" | "LineDimension" | "PolygonCloud" | "PolygonDimension" | "PolyLineDimension" | (string & {})>>>;
1700
1661
  interiorColor: z.ZodString;
1701
- origin: z.ZodDefault<z.ZodEnum<{
1702
- user: "user";
1703
- suggested: "suggested";
1704
- }>>;
1705
- suggestion: z.ZodOptional<z.ZodObject<{
1706
- jobId: z.ZodOptional<z.ZodString>;
1707
- confidence: z.ZodNumber;
1708
- reason: z.ZodOptional<z.ZodString>;
1709
- explanation: z.ZodOptional<z.ZodString>;
1710
- recommendation: z.ZodOptional<z.ZodEnum<{
1711
- redact: "redact";
1712
- review: "review";
1713
- keep: "keep";
1714
- }>>;
1715
- }, z.core.$strip>>;
1716
1662
  overlayText: z.ZodOptional<z.ZodString>;
1717
1663
  }, z.core.$strip>], "type">;
1718
- type Annotation = z.infer<typeof AnnotationSchema>;
1664
+ type Annotation$1 = z.infer<typeof AnnotationSchema>;
1719
1665
  type ExportedAnnotation = z.infer<typeof ExportedAnnotationSchema>;
1720
- type AnnotationType = Annotation['type'];
1721
- type AnnotationOfType<T extends AnnotationType> = Extract<Annotation, {
1666
+ type AnnotationType = Annotation$1['type'];
1667
+ type AnnotationOfType<T extends AnnotationType> = Extract<Annotation$1, {
1722
1668
  type: T;
1723
1669
  }>;
1724
1670
  type TextMarkupAnnotation = z.infer<typeof TextMarkupSchema>;
1725
1671
  type NoteAnnotation = z.infer<typeof NoteSchema>;
1726
1672
  type FreeTextAnnotation = z.infer<typeof FreeTextSchema>;
1727
- type FreeTextStyle = z.infer<typeof FreeTextStyleSchema>;
1673
+ type FreeTextStyle$1 = z.infer<typeof FreeTextStyleSchema>;
1728
1674
  type ShapeAnnotation = z.infer<typeof ShapeSchema>;
1729
1675
  type LineAnnotation = z.infer<typeof LineSchema>;
1730
1676
  type PolyAnnotation = z.infer<typeof PolySchema>;
@@ -1733,14 +1679,13 @@ type StampAnnotation = z.infer<typeof StampSchema>;
1733
1679
  type LoupeAnnotation = z.infer<typeof LoupeSchema>;
1734
1680
  type MaskAnnotation = z.infer<typeof MaskSchema>;
1735
1681
  type RedactAnnotation = z.infer<typeof RedactSchema>;
1736
- type Suggestion = z.infer<typeof SuggestionSchema>;
1737
- type LineEnding = z.infer<typeof LineEndingSchema>;
1682
+ type LineEnding$1 = z.infer<typeof LineEndingSchema>;
1738
1683
  /**
1739
1684
  * What `update` takes: any of a type's fields. A free-text `defaultStyle` may be partial; it
1740
1685
  * merges into the current one.
1741
1686
  */
1742
- type AnnotationPatch = Annotation extends (infer A) ? A extends FreeTextAnnotation ? Omit<Partial<A>, 'defaultStyle'> & {
1743
- defaultStyle?: Partial<FreeTextStyle>;
1687
+ type AnnotationPatch = Annotation$1 extends (infer A) ? A extends FreeTextAnnotation ? Omit<Partial<A>, 'defaultStyle'> & {
1688
+ defaultStyle?: Partial<FreeTextStyle$1>;
1744
1689
  } : Partial<A> : never;
1745
1690
  /** Keys the store fills in; callers never supply them (except an optional `id`). */
1746
1691
  type Generated = 'id' | 'createdAt' | 'modifiedAt' | 'source' | 'locked';
@@ -1780,29 +1725,23 @@ type AnnotationInput = InputOf<z.input<typeof TextMarkupSchema> | z.input<typeof
1780
1725
  rect: z.input<typeof MaskSchema>['rect'];
1781
1726
  }) | FreeTextCallerInput | RedactCallerInput;
1782
1727
  declare const AnnotationDocumentSchema: z.ZodObject<{
1783
- format: z.ZodLiteral<"inkbar/annotations">;
1728
+ format: z.ZodLiteral<"gloss">;
1784
1729
  version: z.ZodLiteral<1>;
1785
1730
  documentKey: z.ZodOptional<z.ZodString>;
1786
1731
  annotations: z.ZodArray<z.ZodUnknown>;
1787
1732
  }, z.core.$strip>;
1788
1733
  /**
1789
- * An item whose `type` this version does not know, written by a newer Inkbar. It is kept as-is
1790
- * so it survives an import and export round trip, and it is valid only under the schema
1791
- * version that produced it.
1734
+ * An item whose `type` this version does not know, such as one from a newer writer. It is kept
1735
+ * as-is so it survives an import and export round trip.
1792
1736
  */
1793
- type ForeignAnnotation = {
1794
- type: string;
1795
- id: string;
1796
- page: number;
1797
- } & Record<string, unknown>;
1737
+ type ForeignAnnotation = UnknownAnnotation;
1738
+ /** A Gloss document holding Inkbar's annotations and any foreign items it kept. */
1798
1739
  interface AnnotationDocument {
1799
- format: typeof ANNOTATION_FORMAT;
1800
- version: typeof ANNOTATION_VERSION;
1740
+ format: GlossDocument['format'];
1741
+ version: GlossDocument['version'];
1801
1742
  documentKey?: string;
1802
- annotations: Array<ExportedAnnotation | ForeignAnnotation>;
1743
+ annotations: Array<Annotation | ForeignAnnotation>;
1803
1744
  }
1804
- type ConfidenceBucket = 'low' | 'medium' | 'high';
1805
- declare function confidenceBucket(confidence: number): ConfidenceBucket;
1806
1745
  //#endregion
1807
1746
  //#region src/model/annotations/defaults.d.ts
1808
1747
  interface AnnotationDefaults {
@@ -1810,8 +1749,6 @@ interface AnnotationDefaults {
1810
1749
  /** Fill colour for redactions. */
1811
1750
  fill(): string;
1812
1751
  opacity(type: AnnotationType): number;
1813
- /** Outline colour for a suggested redaction, by confidence bucket. */
1814
- suggestion(bucket: ConfidenceBucket): string;
1815
1752
  }
1816
1753
  declare const staticDefaults: AnnotationDefaults;
1817
1754
  /** Resolves default colours from CSS custom properties on `el`, falling back to `staticDefaults`. */
@@ -1819,6 +1756,19 @@ declare function cssVariableDefaults(el: Element): AnnotationDefaults;
1819
1756
  /** Accepts `#rgb`, `#rrggbb`, `rgb(r, g, b)` and `rgb(r g b)`; returns `#RRGGBB` or undefined. */
1820
1757
  declare function normalizeColor(value: string): string | undefined;
1821
1758
  //#endregion
1759
+ //#region src/model/annotations/callout.d.ts
1760
+ /**
1761
+ * The insets from a free text's `rect` to its text box, in points (PDF `/RD`, XFDF `fringe`,
1762
+ * both in this order).
1763
+ */
1764
+ declare const FringeSchema: z.ZodObject<{
1765
+ left: z.ZodNumber;
1766
+ top: z.ZodNumber;
1767
+ right: z.ZodNumber;
1768
+ bottom: z.ZodNumber;
1769
+ }, z.core.$strip>;
1770
+ type Fringe$1 = z.infer<typeof FringeSchema>;
1771
+ //#endregion
1822
1772
  //#region src/model/annotations/embedded.d.ts
1823
1773
  declare const SUPPORTED_SUBTYPES: ReadonlySet<string>;
1824
1774
  interface EmbeddedSummary {
@@ -1833,84 +1783,197 @@ declare function pdfColorToHex(c: ArrayLike<number> | null | undefined, fallback
1833
1783
  * uses the same scheme so threads resolve.
1834
1784
  */
1835
1785
  declare function importedId(page: number, pdfjsId: string): string;
1786
+ /**
1787
+ * @internal An imported annotation whose fields PDF.js leaves out, to be read from the file itself once
1788
+ * the document is ready: a FreeText's `/CL`, `/RD`, `/LE` and `/DA` font, or a note's `/Name`
1789
+ * when PDF.js reports `NoIcon`.
1790
+ */
1791
+ interface EmbeddedTarget {
1792
+ /** The imported id, `pdf:<page>:<pdfjsId>`. */
1793
+ id: string;
1794
+ subtype: 'FreeText' | 'Text';
1795
+ /** The annotation's `/Rect` as PDF.js gives it, `[x1, y1, x2, y2]`. */
1796
+ rect: readonly number[];
1797
+ /** FreeText only: the `/DA` font resource name. */
1798
+ daFont?: string;
1799
+ }
1800
+ /**
1801
+ * The fields read from the file for one embedded annotation: what PDF.js left out. They merge
1802
+ * onto the annotation as it is when they land, so edits made in between are kept.
1803
+ */
1804
+ interface EmbeddedFieldPatch {
1805
+ /** FreeText `/CL`: the tip, an optional bend, and where the line meets the box. */
1806
+ callout?: Point$1[];
1807
+ /** FreeText `/RD`. */
1808
+ fringe?: Fringe$1;
1809
+ /** FreeText `/LE`. */
1810
+ head?: string;
1811
+ /** Text `/Name`. */
1812
+ icon?: string;
1813
+ /** FreeText `/DA` font, merged into `defaultStyle`. */
1814
+ font?: {
1815
+ fontFamily?: string;
1816
+ fontWeight?: 'bold';
1817
+ fontStyle?: 'italic';
1818
+ };
1819
+ }
1820
+ /**
1821
+ * Imports one page's PDF.js annotation data. `targets` is @internal: the annotations whose
1822
+ * missing fields the document reads from the file after `ready`.
1823
+ */
1836
1824
  declare function importEmbeddedPage(page: number, raw: PdfjsAnnotationData[], importedAt: string): {
1837
- annotations: Annotation[];
1825
+ annotations: Annotation$1[];
1838
1826
  counts: Record<string, number>;
1827
+ targets: EmbeddedTarget[];
1839
1828
  };
1840
1829
  declare function summarise(perPage: Record<string, number>[]): EmbeddedSummary[];
1841
1830
  //#endregion
1831
+ //#region src/model/records.d.ts
1832
+ interface RecordBase {
1833
+ readonly id: string;
1834
+ }
1835
+ type RecordChange<T> = {
1836
+ kind: 'add';
1837
+ record: T;
1838
+ } | {
1839
+ kind: 'update';
1840
+ id: string;
1841
+ before: T;
1842
+ after: T;
1843
+ } | {
1844
+ kind: 'remove';
1845
+ record: T;
1846
+ } | {
1847
+ kind: 'replace';
1848
+ reason: 'history' | 'reset';
1849
+ /** Ids of the records the replace added, changed and dropped, in list order. */
1850
+ added: string[];
1851
+ updated: string[];
1852
+ removed: string[];
1853
+ };
1854
+ interface RecordStore<T extends RecordBase> {
1855
+ /** The slot name the store is registered under. */
1856
+ readonly key: string;
1857
+ readonly list: Readable<readonly T[]>;
1858
+ get(id: string): T | undefined;
1859
+ /** Returns the stored (frozen) record. Throws `InkError('DuplicateId')` when the id is taken. */
1860
+ add(record: T): T;
1861
+ /** `id` cannot be patched. Returns `undefined`, emitting nothing, for an unknown id. */
1862
+ update(id: string, patch: Partial<Omit<T, 'id'>>): T | undefined;
1863
+ /** Returns the removed record, or `undefined`, emitting nothing, for an unknown id. */
1864
+ remove(id: string): T | undefined;
1865
+ replaceAll(list: readonly T[], reason: 'history' | 'reset'): void;
1866
+ on(event: 'change', fn: (change: RecordChange<T>) => void): () => void;
1867
+ /** Drops the listeners. Writes after it change nothing and emit nothing. */
1868
+ destroy(): void;
1869
+ }
1870
+ interface RecordStoreOptions<T extends RecordBase> {
1871
+ initial?: readonly T[];
1872
+ /** Called after every change, `replace` included, with the list as it now stands. */
1873
+ onChange?: (list: readonly T[], change: RecordChange<T>) => void;
1874
+ }
1875
+ /**
1876
+ * A keyed list of plain records. Records are stored as frozen copies, so a change's `before` and `after` can be
1877
+ * kept as history entries without copying.
1878
+ */
1879
+ declare function createRecordStore<T extends RecordBase>(key: string, opts?: RecordStoreOptions<T>): RecordStore<T>;
1880
+ //#endregion
1842
1881
  //#region src/model/annotations/store.d.ts
1843
1882
  type AnnotationChange = {
1844
1883
  kind: 'add';
1845
- annotation: Annotation;
1884
+ annotation: Annotation$1;
1846
1885
  } | {
1847
1886
  kind: 'update';
1848
1887
  id: string;
1849
- before: Annotation;
1850
- after: Annotation;
1888
+ before: Annotation$1;
1889
+ after: Annotation$1;
1851
1890
  } | {
1852
1891
  kind: 'remove';
1853
1892
  /** The annotation `remove` was called with. */
1854
- annotation: Annotation;
1893
+ annotation: Annotation$1;
1855
1894
  /** Everything that went: `annotation` first, then the replies removed with it. */
1856
- removed: Annotation[];
1895
+ removed: Annotation$1[];
1857
1896
  } | {
1858
1897
  kind: 'replace';
1859
1898
  reason: 'import' | 'sync' | 'history';
1899
+ } | {
1900
+ kind: 'replace';
1901
+ /** Fields read from the file after `ready` filled in embedded annotations. */
1902
+ reason: 'embedded';
1903
+ /** What was merged into each annotation, by id. */
1904
+ fields: ReadonlyMap<string, EmbeddedFieldPatch>;
1860
1905
  };
1906
+ /** The changes `edit` reports: one per `add`, `update` or `remove` call that changed something. */
1907
+ type AnnotationEdit = Extract<AnnotationChange, {
1908
+ kind: 'add' | 'update' | 'remove';
1909
+ }>;
1861
1910
  type StoreMode = {
1862
1911
  mode: 'uncontrolled';
1863
- initial?: Annotation[];
1912
+ initial?: Annotation$1[];
1864
1913
  } | {
1865
1914
  mode: 'controlled';
1866
- initial: Annotation[];
1867
- onChange: (next: Annotation[], change: AnnotationChange) => void;
1915
+ initial: Annotation$1[];
1916
+ onChange: (next: Annotation$1[], change: AnnotationChange) => void;
1868
1917
  };
1869
1918
  interface AnnotationStore {
1870
1919
  readonly mode: 'uncontrolled' | 'controlled';
1871
- readonly list: Readable<readonly Annotation[]>;
1920
+ readonly list: Readable<readonly Annotation$1[]>;
1872
1921
  readonly selection: Readable<readonly string[]>;
1873
1922
  /** The colour, fill and opacity defaults new annotations get. */
1874
1923
  readonly defaults: AnnotationDefaults;
1875
- get(id: string): Annotation | undefined;
1876
- byPage(page: number): Annotation[];
1924
+ get(id: string): Annotation$1 | undefined;
1925
+ byPage(page: number): Annotation$1[];
1877
1926
  /**
1878
1927
  * Returns the completed annotation. In controlled mode it is proposed to the host, not
1879
1928
  * applied. Throws an `Error` naming the id when it is already in the list, whether it came
1880
1929
  * from `input.id` or the store's `id` generator.
1881
1930
  */
1882
- add(input: AnnotationInput): Annotation;
1931
+ add(input: AnnotationInput): Annotation$1;
1883
1932
  /**
1884
1933
  * `id`, `type`, `createdAt` and `source` cannot be patched, nor can `locked` on an embedded
1885
1934
  * (`source: 'pdf'`) annotation: those keys are ignored. `modifiedAt` is always bumped. A
1886
1935
  * locked annotation refuses any patch to its geometry, `page` or `contents`.
1887
1936
  */
1888
- update(id: string, patch: AnnotationPatch): Annotation | undefined;
1937
+ update(id: string, patch: AnnotationPatch): Annotation$1 | undefined;
1889
1938
  remove(id: string): boolean;
1890
1939
  select(ids: string[]): void;
1891
1940
  /**
1892
1941
  * Uncontrolled: embedded annotations survive (the list may edit them like `update` would, but
1893
1942
  * cannot drop or add them). Controlled: proposes the list minus embedded items to `onChange`.
1894
1943
  */
1895
- replaceAll(list: Annotation[], reason: 'import' | 'sync' | 'history'): void;
1944
+ replaceAll(list: Annotation$1[], reason: 'import' | 'sync' | 'history'): void;
1896
1945
  /**
1897
1946
  * Controlled mode only: the host pushes its current list. Embedded (`source: 'pdf'`) items
1898
1947
  * belong to the store, so they stay in `list` whatever the host sends; host items that reuse
1899
1948
  * an embedded id are dropped.
1900
1949
  */
1901
- setControlledValue(list: Annotation[]): void;
1950
+ setControlledValue(list: Annotation$1[]): void;
1902
1951
  /**
1903
1952
  * @internal Replaces the annotations embedded in the file (`source: 'pdf'`). Applied
1904
1953
  * directly in both modes and never passed to `onChange`; the document calls it once on open.
1905
1954
  */
1906
- _setEmbedded(list: readonly Annotation[]): void;
1955
+ _setEmbedded(list: readonly Annotation$1[]): void;
1956
+ /**
1957
+ * @internal Merges fields read from the file into embedded annotations, by id, onto their
1958
+ * current version (only ids still present with `source: 'pdf'`; a merge that fails the schema
1959
+ * is skipped). A host edit to a read field made before the pass lands is overwritten by the
1960
+ * read value. Applied directly in both modes and never passed to `onChange`. Emits
1961
+ * `{ kind: 'replace', reason: 'embedded', fields }` when anything changed.
1962
+ */
1963
+ _patchEmbedded(fields: ReadonlyMap<string, EmbeddedFieldPatch>): void;
1907
1964
  /**
1908
1965
  * @internal Like `get`, but in controlled mode it also sees changes proposed to the host and
1909
1966
  * not applied yet: the list `update` and `remove` build on.
1910
1967
  */
1911
- _getProposed(id: string): Annotation | undefined;
1912
- completeInput(input: AnnotationInput): Annotation;
1968
+ _getProposed(id: string): Annotation$1 | undefined;
1969
+ completeInput(input: AnnotationInput): Annotation$1;
1913
1970
  on(event: 'change', fn: (change: AnnotationChange) => void): () => void;
1971
+ /**
1972
+ * Fires synchronously for every `add`, `update` and `remove` that changes something, in both
1973
+ * modes, before the list is set (uncontrolled) or `onChange` is called (controlled). Never
1974
+ * for `replace`.
1975
+ */
1976
+ on(event: 'edit', fn: (change: AnnotationEdit) => void): () => void;
1914
1977
  destroy(): void;
1915
1978
  }
1916
1979
  interface StoreOptions {
@@ -1919,11 +1982,27 @@ interface StoreOptions {
1919
1982
  now?: () => string;
1920
1983
  id?: () => string;
1921
1984
  }
1922
- declare function deriveRect(input: AnnotationInput): Rect;
1985
+ declare function deriveRect(input: AnnotationInput): Rect$1;
1923
1986
  declare function createAnnotationStore(opts: StoreOptions): AnnotationStore;
1924
1987
  //#endregion
1925
1988
  //#region src/model/annotations/history.d.ts
1926
- interface History {
1989
+ /** The part of a history plugins use: one undo step across annotations and record stores. */
1990
+ interface PluginHistory {
1991
+ batch(fn: () => void): void;
1992
+ /**
1993
+ * Makes the store's changes undo steps: on their own, or joining the open batch or edit. The
1994
+ * returned function stops tracking; existing entries keep their snapshot of the store but undo
1995
+ * and redo no longer replay it.
1996
+ */
1997
+ track(store: RecordStore<RecordBase>): () => void;
1998
+ /**
1999
+ * Runs `fn` synchronously for every user `add`, `update` and `remove` of an annotation, inside
2000
+ * that edit's undo entry, so whatever `fn` changes undoes with the edit. Never runs for
2001
+ * `replace`, so never for undo and redo. Returns a function that removes `fn`.
2002
+ */
2003
+ react(fn: (edit: AnnotationEdit) => void): () => void;
2004
+ }
2005
+ interface History extends PluginHistory {
1927
2006
  readonly canUndo: Readable<boolean>;
1928
2007
  readonly canRedo: Readable<boolean>;
1929
2008
  undo(): void;
@@ -1978,20 +2057,23 @@ interface ImportOptions {
1978
2057
  * export would carry: editing it never touches the store, and values JSON cannot hold, such as
1979
2058
  * functions or `undefined` inside `custom`, are left out exactly as `JSON.stringify` would.
1980
2059
  *
1981
- * Without foreign items the result validates against this version's `schema.json`. With them it
1982
- * validates only against the newer schema that produced them, since this version's schema
1983
- * describes only the types it knows.
2060
+ * Gloss has no loupe or mask, pen pressure or free-text border colour, so Inkbar writes these
2061
+ * under `custom.inkbar`, with loupes and masks as the circle or square they draw. Every other key
2062
+ * under `custom` goes out as it is.
2063
+ *
2064
+ * The result validates against the Gloss schema (`gloss-format/schema.json`). Foreign items
2065
+ * validate as unknown annotations while their type is one Gloss does not define.
1984
2066
  */
1985
2067
  declare function exportAnnotations(store: AnnotationStore, preserved?: readonly ForeignAnnotation[], documentKey?: string): AnnotationDocument;
1986
2068
  /**
1987
- * Validates the envelope (throws a TypeError when it is not an inkbar/annotations v1 document),
2069
+ * Validates the envelope (throws a TypeError when it is not a gloss v1 document),
1988
2070
  * then each item on its own. Embedded annotations are never touched; imported items become
1989
2071
  * session annotations.
1990
2072
  */
1991
2073
  declare function importAnnotations(store: AnnotationStore, data: AnnotationDocument | string, opts: ImportOptions): ImportResult;
1992
2074
  //#endregion
1993
2075
  //#region src/model/errors.d.ts
1994
- type InkErrorCode = 'PasswordRequired' | 'InvalidPdf' | 'SourceFetchFailed' | 'AssetConfigMissing' | 'AssetLoadFailed' | 'EngineUnavailable' | 'ControlledMutationIgnored' | 'DocumentDestroyed' | 'PageOutOfRange';
2076
+ type InkErrorCode = 'PasswordRequired' | 'InvalidPdf' | 'SourceFetchFailed' | 'AssetConfigMissing' | 'AssetLoadFailed' | 'EngineUnavailable' | 'ControlledMutationIgnored' | 'DocumentDestroyed' | 'PageOutOfRange' | 'DuplicateId' | 'DuplicatePlugin' | 'InvalidPluginId' | 'InvalidCommandLabel' | 'UnknownCommand';
1995
2077
  declare class InkError extends Error {
1996
2078
  readonly name = "InkError";
1997
2079
  readonly code: InkErrorCode;
@@ -2019,7 +2101,7 @@ interface TextItem {
2019
2101
  /** Glyph-run box in user space, following the run's rotation. */
2020
2102
  quad: Quad;
2021
2103
  /** Axis-aligned bounds of `quad`. */
2022
- rect: Rect;
2104
+ rect: Rect$1;
2023
2105
  }
2024
2106
  interface TextContent {
2025
2107
  page: number;
@@ -2075,10 +2157,14 @@ interface InkDocument {
2075
2157
  readonly pages: readonly PageInfo[];
2076
2158
  readonly info: DocumentInfo;
2077
2159
  text(page: number): Promise<TextContent>;
2160
+ /** The page's text items joined with a single space. */
2161
+ pageText(page: number): Promise<string>;
2078
2162
  /**
2079
2163
  * Annotations embedded in the file arrive here as `source: 'pdf'`, `locked: true` before
2080
2164
  * `ready` resolves. They stay in `list` in both modes and cannot be removed; in controlled
2081
- * mode they never reach `onChange`.
2165
+ * mode they never reach `onChange`. Fields PDF.js leaves out (a FreeText's callout, fringe,
2166
+ * head and font, a note's icon) are read from the file after `ready` and fill in later, as a
2167
+ * `{ kind: 'replace', reason: 'embedded', fields }` change.
2082
2168
  */
2083
2169
  readonly annotations: AnnotationStore;
2084
2170
  /** What the file contained, by PDF subtype, including subtypes Inkbar does not show. */
@@ -2119,8 +2205,8 @@ interface StyleProps {
2119
2205
  width?: number;
2120
2206
  /** `null` means solid. */
2121
2207
  dashes?: number[] | null;
2122
- head?: LineEnding;
2123
- tail?: LineEnding;
2208
+ head?: LineEnding$1;
2209
+ tail?: LineEnding$1;
2124
2210
  fontFamily?: string;
2125
2211
  fontSize?: number;
2126
2212
  fontWeight?: 'normal' | 'bold';
@@ -2193,7 +2279,7 @@ declare function createToolStyle(deps: ToolStyleDeps): ToolStyle;
2193
2279
  type SignatureTemplate = {
2194
2280
  id: string;
2195
2281
  kind: 'ink';
2196
- inklist: Point[][];
2282
+ inklist: Point$1[][];
2197
2283
  pressure?: number[][];
2198
2284
  aspect: number;
2199
2285
  } | {
@@ -2233,15 +2319,15 @@ declare function createLocalSignatureStore(key: string): SignatureStore;
2233
2319
  * side is given 1% of the long side (a dot, a square), so the aspect stays finite, and the
2234
2320
  * strokes are centred across it.
2235
2321
  */
2236
- declare function normaliseInk(inklist: Point[][]): {
2237
- inklist: Point[][];
2322
+ declare function normaliseInk(inklist: Point$1[][]): {
2323
+ inklist: Point$1[][];
2238
2324
  aspect: number;
2239
2325
  };
2240
2326
  /**
2241
2327
  * An ink template from strokes in any y-up space, with a new id. Throws a RangeError for no
2242
2328
  * strokes, an empty stroke, or pressure that does not have one value per point.
2243
2329
  */
2244
- declare function createInkTemplate(inklist: Point[][], pressure?: number[][]): SignatureTemplate;
2330
+ declare function createInkTemplate(inklist: Point$1[][], pressure?: number[][]): SignatureTemplate;
2245
2331
  /** An image template, with a new id. Throws a TypeError unless `imagedata` is a PNG or JPEG data URL. */
2246
2332
  declare function createImageTemplate(imagedata: string, aspect: number): SignatureTemplate;
2247
2333
  /**
@@ -2251,7 +2337,7 @@ declare function createImageTemplate(imagedata: string, aspect: number): Signatu
2251
2337
  * rotation is left out; it turns the signature with the page like any annotation. Ink becomes `ink` with `subject: 'Signature'`, its strokes inset by half their
2252
2338
  * width; an image becomes a `stamp` with `subject: 'Signature'`.
2253
2339
  */
2254
- declare function placeSignature(t: SignatureTemplate, page: number, centre: Point, width?: number, rotation?: 0 | 90 | 180 | 270): AnnotationInput;
2340
+ declare function placeSignature(t: SignatureTemplate, page: number, centre: Point$1, width?: number, rotation?: 0 | 90 | 180 | 270): AnnotationInput;
2255
2341
  /**
2256
2342
  * A store's templates kept at hand, so the `signature` tool places one without waiting and the
2257
2343
  * signature menus share one list. Every change goes through the store first.
@@ -2276,5 +2362,5 @@ interface SignatureLibrary {
2276
2362
  }
2277
2363
  declare function createSignatureLibrary(store: SignatureStore): SignatureLibrary;
2278
2364
  //#endregion
2279
- export { AnnotationDefaults as $, TextMarkupSchema as $t, TextItem as A, LoupeSchema as At, createHistory as B, PolylineSchema as Bt, DocumentInfo as C, rectsIntersect as Cn, InkAnnotation as Ct, OpenOptions as D, LineEndingSchema as Dt, InkStatus as E, unionRects as En, LineEnding as Et, ImportOptions as F, NoteSchema as Ft, createAnnotationStore as G, ShapeAnnotation as Gt, AnnotationStore as H, RectSchema as Ht, ImportResult as I, PointSchema as It, SUPPORTED_SUBTYPES as J, StampAnnotation as Jt, deriveRect as K, ShapeSchema as Kt, exportAnnotations as L, PolyAnnotation as Lt, InkError as M, MaskSchema as Mt, InkErrorCode as N, NoteAnnotation as Nt, openDocument as O, LineSchema as Ot, isInkError as P, NoteIconSchema as Pt, summarise as Q, TextMarkupAnnotation as Qt, importAnnotations as R, PolySchema as Rt, createToolStyle as S, rectFromQuad as Sn, IMAGE_DATA_URL as St, InkDocument as T, translateRect as Tn, LineAnnotation as Tt, StoreMode as U, RedactAnnotation as Ut, AnnotationChange as V, QuadSchema as Vt, StoreOptions as W, RedactSchema as Wt, importedId as X, Suggestion as Xt, importEmbeddedPage as Y, StampSchema as Yt, pdfColorToHex as Z, SuggestionSchema as Zt, StyleGroup as _, pointsFromFlat as _n, ForeignAnnotation as _t, SignatureStore as a, writable as an, Annotation as at, ToolStyle as b, rectContainsPoint as bn, FreeTextStyle as bt, createInkTemplate as c, PdfAssets as cn, AnnotationInput as ct, createSignatureLibrary as d, Quad as dn, AnnotationSchema as dt, confidenceBucket as en, cssVariableDefaults as et, normaliseInk as f, Rect as fn, AnnotationType as ft, ScopedToolStyle as g, multiplyMatrix as gn, ExportedAnnotationSchema as gt, STYLE_GROUPS as h, invertMatrix as hn, ExportedAnnotation as ht, SignatureOptions as i, readonly as in, ANNOTATION_VERSION as it, DocumentSource as j, MaskAnnotation as jt, TextContent as k, LoupeAnnotation as kt, createLocalSignatureStore as l, Matrix as ln, AnnotationOfType as lt, CurrentStyle as m, approxEqual as mn, ConfidenceBucket as mt, SIGNATURE_INK_WIDTH as n, Writable as nn, staticDefaults as nt, SignatureTemplate as o, PageInfo as on, AnnotationDocument as ot, placeSignature as p, applyMatrix as pn, CircleSchema as pt, EmbeddedSummary as q, SquareSchema as qt, SignatureLibrary as r, derived as rn, ANNOTATION_FORMAT as rt, createImageTemplate as s, PageRotation as sn, AnnotationDocumentSchema as st, DEFAULT_SIGNATURE_WIDTH as t, Readable as tn, normalizeColor as tt, createMemorySignatureStore as u, Point as un, AnnotationPatch as ut, StyleKey as v, quadFromRect as vn, FreeTextAnnotation as vt, DocumentStatus as w, translateQuad as wn, InkSchema as wt, ToolStyleDeps as x, rectFromPoints as xn, FreeTextStyleSchema as xt, StyleProps as y, quadsFromFlat as yn, FreeTextSchema as yt, History as z, PolygonSchema as zt };
2280
- //# sourceMappingURL=signatures-BHYKTwYE.d.mts.map
2365
+ export { createRecordStore as $, QuadSchema as $t, TextItem as A, rectContainsPoint as An, GLOSS_FORMAT$1 as At, PluginHistory as B, LineSchema as Bt, DocumentInfo as C, approxEqual as Cn, ExportedAnnotation as Ct, OpenOptions as D, quadFromRect as Dn, FreeTextSchema as Dt, InkStatus as E, pointsFromFlat as En, FreeTextAnnotation as Et, ImportOptions as F, translateQuad as Fn, InkAnnotation as Ft, StoreMode as G, NoteAnnotation as Gt, AnnotationChange as H, LoupeSchema as Ht, ImportResult as I, translateRect as In, InkSchema as It, deriveRect as J, PointSchema as Jt, StoreOptions as K, NoteIconSchema as Kt, exportAnnotations as L, unionRects as Ln, LineAnnotation as Lt, InkError as M, rectFromQuad as Mn, GLOSS_SCHEMA_ID as Mt, InkErrorCode as N, rectFromQuads as Nn, GLOSS_VERSION$1 as Nt, openDocument as O, quadsFromFlat as On, FreeTextStyle$1 as Ot, isInkError as P, rectsIntersect as Pn, IMAGE_DATA_URL as Pt, RecordStoreOptions as Q, PolylineSchema as Qt, importAnnotations as R, LineEnding$1 as Rt, createToolStyle as S, applyMatrix as Sn, CircleSchema as St, InkDocument as T, multiplyMatrix as Tn, ForeignAnnotation as Tt, AnnotationEdit as U, MaskAnnotation as Ut, createHistory as V, LoupeAnnotation as Vt, AnnotationStore as W, MaskSchema as Wt, RecordChange as X, PolySchema as Xt, RecordBase as Y, PolyAnnotation as Yt, RecordStore as Z, PolygonSchema as Zt, StyleGroup as _, PdfAssets as _n, AnnotationInput as _t, SignatureStore as a, SquareSchema as an, importedId as at, ToolStyle as b, Quad as bn, AnnotationSchema as bt, createInkTemplate as c, TextMarkupAnnotation as cn, Fringe$1 as ct, createSignatureLibrary as d, Writable as dn, cssVariableDefaults as dt, RectSchema as en, EmbeddedFieldPatch as et, normaliseInk as f, derived as fn, normalizeColor as ft, ScopedToolStyle as g, PageRotation as gn, AnnotationDocumentSchema as gt, STYLE_GROUPS as h, PageInfo as hn, AnnotationDocument as ht, SignatureOptions as i, ShapeSchema as in, importEmbeddedPage as it, DocumentSource as j, rectFromPoints as jn, GLOSS_MEDIA_TYPE as jt, TextContent as k, quadsFromRect as kn, FreeTextStyleSchema as kt, createLocalSignatureStore as l, TextMarkupSchema as ln, FringeSchema as lt, CurrentStyle as m, writable as mn, Annotation$1 as mt, SIGNATURE_INK_WIDTH as n, RedactSchema as nn, EmbeddedTarget as nt, SignatureTemplate as o, StampAnnotation as on, pdfColorToHex as ot, placeSignature as p, readonly as pn, staticDefaults as pt, createAnnotationStore as q, NoteSchema as qt, SignatureLibrary as r, ShapeAnnotation as rn, SUPPORTED_SUBTYPES as rt, createImageTemplate as s, StampSchema as sn, summarise as st, DEFAULT_SIGNATURE_WIDTH as t, RedactAnnotation as tn, EmbeddedSummary as tt, createMemorySignatureStore as u, Readable as un, AnnotationDefaults as ut, StyleKey as v, Matrix as vn, AnnotationOfType as vt, DocumentStatus as w, invertMatrix as wn, ExportedAnnotationSchema as wt, ToolStyleDeps as x, Rect$1 as xn, AnnotationType as xt, StyleProps as y, Point$1 as yn, AnnotationPatch as yt, History as z, LineEndingSchema as zt };
2366
+ //# sourceMappingURL=signatures-By4B40DP.d.mts.map