@embedpdf/engine-core 3.0.0-next.10 → 3.0.0-next.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/{AnnotationListSnapshot-DDxHpJQU.d.cts → AnnotationListSnapshot-x6tKulNV.d.cts} +461 -114
  2. package/dist/{AnnotationListSnapshot-DDxHpJQU.d.ts → AnnotationListSnapshot-x6tKulNV.d.ts} +461 -114
  3. package/dist/{DocumentSecurityService-o9aeTHwT.d.ts → DocumentSecurityService-9MawYxP-.d.ts} +2 -2
  4. package/dist/{DocumentSecurityService-BV4_YXkU.d.cts → DocumentSecurityService-CK0pejAK.d.cts} +2 -2
  5. package/dist/{Engine-DOoVem7_.d.ts → Engine--0XF0UAK.d.cts} +68 -3
  6. package/dist/{Engine-D9je6GdU.d.cts → Engine-Ds0ytbl6.d.ts} +68 -3
  7. package/dist/{builders-Cp_rlGob.cjs → builders-8Hl1AYNU.cjs} +44 -8
  8. package/dist/builders-8Hl1AYNU.cjs.map +1 -0
  9. package/dist/{builders-B_KufGJ9.js → builders-DOjcKDWQ.js} +39 -9
  10. package/dist/builders-DOjcKDWQ.js.map +1 -0
  11. package/dist/conformance.cjs +769 -101
  12. package/dist/conformance.cjs.map +1 -1
  13. package/dist/conformance.d.cts +56 -3
  14. package/dist/conformance.d.ts +56 -3
  15. package/dist/conformance.js +767 -102
  16. package/dist/conformance.js.map +1 -1
  17. package/dist/index.cjs +3 -2
  18. package/dist/index.d.cts +2 -2
  19. package/dist/index.d.ts +2 -2
  20. package/dist/index.js +3 -3
  21. package/dist/{resolver-DiPMTfcy.js → resolver-CHG4waXL.js} +2 -1
  22. package/dist/resolver-CHG4waXL.js.map +1 -0
  23. package/dist/{resolver-DAZWVoJL.cjs → resolver-D-jumvgM.cjs} +2 -1
  24. package/dist/resolver-D-jumvgM.cjs.map +1 -0
  25. package/dist/runtime.cjs +3 -2
  26. package/dist/runtime.d.cts +66 -5
  27. package/dist/runtime.d.ts +66 -5
  28. package/dist/runtime.js +3 -3
  29. package/dist/{schemas-DAnu8tuW.js → schemas-DOyVEPk7.js} +206 -84
  30. package/dist/schemas-DOyVEPk7.js.map +1 -0
  31. package/dist/{schemas-D1pxEv3t.cjs → schemas-RChsAMWw.cjs} +259 -83
  32. package/dist/schemas-RChsAMWw.cjs.map +1 -0
  33. package/dist/wire.cjs +65 -2
  34. package/dist/wire.cjs.map +1 -1
  35. package/dist/wire.d.cts +210 -8
  36. package/dist/wire.d.ts +210 -8
  37. package/dist/wire.js +54 -3
  38. package/dist/wire.js.map +1 -1
  39. package/package.json +1 -1
  40. package/dist/builders-B_KufGJ9.js.map +0 -1
  41. package/dist/builders-Cp_rlGob.cjs.map +0 -1
  42. package/dist/resolver-DAZWVoJL.cjs.map +0 -1
  43. package/dist/resolver-DiPMTfcy.js.map +0 -1
  44. package/dist/schemas-D1pxEv3t.cjs.map +0 -1
  45. package/dist/schemas-DAnu8tuW.js.map +0 -1
package/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_builders = require("./builders-8Hl1AYNU.cjs");
2
3
  const require_fold = require("./fold-C7I5GpBz.cjs");
3
4
  const require_PageInsertBlankInput = require("./PageInsertBlankInput-CzShuSJI.cjs");
4
- const require_builders = require("./builders-Cp_rlGob.cjs");
5
- const require_resolver = require("./resolver-DAZWVoJL.cjs");
5
+ const require_resolver = require("./resolver-D-jumvgM.cjs");
6
6
  exports.ANNOTATION_SUBTYPES = require_PageInsertBlankInput.ANNOTATION_SUBTYPES;
7
7
  exports.DEFAULT_PDF_SAVE_MODE = require_builders.DEFAULT_PDF_SAVE_MODE;
8
8
  exports.EngineError = require_fold.EngineError;
@@ -42,6 +42,7 @@ exports.createPageImageHandle = require_builders.createPageImageHandle;
42
42
  exports.decodeFieldRefKey = require_builders.decodeFieldRefKey;
43
43
  exports.decodePdfBits = require_builders.decodePdfBits;
44
44
  exports.decodeStableIdKey = require_builders.decodeStableIdKey;
45
+ exports.decodeSubmitFormFlags = require_builders.decodeSubmitFormFlags;
45
46
  exports.deserializeError = require_fold.deserializeError;
46
47
  exports.encodeFieldRefKey = require_builders.encodeFieldRefKey;
47
48
  exports.encodeStableIdKey = require_builders.encodeStableIdKey;
package/dist/index.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { $a as NormalizedPatch, $c as StandardFont, $i as AnnotationMutationKind, $n as canonicalSearchQuery, $o as PageImageResult, $r as FormEffectsResult, $s as caps, Aa as AttachmentDeleteResult, Ac as AnnotationDraftBase, Ai as FormFieldOption, An as HighlightDraft, Ao as FontKey, Ar as SearchSnippet, As as normalizePdfRect, At as LineDraft, B as StampAnnotationDTO, Ba as FilledStyleDraftFields, Bc as CaretIntent, Bi as FormFieldRef, Bn as PageFlattenStatus, Bo as AnnotationAppearanceMode, Br as textGlyphQuad, Bs as PageBoxes, Bt as PolygonPatch, C as RedactDraft, Ca as classifyRelation, Cc as IdentityClaims, Ci as WidgetStylePatchFields, Cn as UnderlineAnnotationDTO, Co as EngineError, Cr as toOriginalRange, Cs as boundaryTextOffset, Ct as LinkAnnotationDTO, Da as DraftOfKind, Dc as ParsedVirtual, Di as FormFieldDTO, Do as serializeError, Dr as SearchRequest, Ds as sliceTextByChars, E as WidgetDraft, Ea as DTOOfKind, Ec as ParsedScope, Ei as FormFieldBase, Eo as deserializeError, Er as SearchQuery, Es as charRangeForTextOffsets, Fa as FileAttachmentWireDraft, Fc as isValidPageObjectNumber, Fi as SignatureFieldDTO, Fn as RedactionApplyScope, Fo as AnnotationAppearanceImage, Fr as TextLayoutRun, Fs as pdfRectHeight, Ft as PolylineAnnotationDTO, Ga as GeometryStylePatchFields, Gc as LineEnding, Gi as AnnotationDeleteResult, Gn as PageDeleteResult, Go as PageState, Gr as FormFieldUpdateResult, Gs as OpenInputById, Gt as VertexPatchFields, H as StampFit, Ha as FilledStylePatchFields, Hc as FreeTextFont, Hi as decodeFieldRefKey, Hn as PAGE_INSERT_BLANK_MAX_COUNT, Ho as AnnotationAppearanceRenderOptions, Hr as FormDataExport, Hs as PageRotation, Ht as PolygonDraft, Ia as WireAttachmentFile, Ic as AnnotationBorderStyle, Ii as TextFieldDTO, In as RedactionApplyStatus, Io as AnnotationAppearanceImageOptions, Ir as buildPageTextLayout, Is as pdfRectSize, It as PolylineDraft, J as TextPatch, Ja as AttachmentFileInfo, Jc as PdfRectDifferences, Ji as AppearanceAction, Jn as PageRotateInput, Jo as knownWeakAnnotationState, Jr as FormSetValueResult, Js as OpenInputLayerSource, Ka as AttachmentContent, Kc as LineEndings, Ki as AnnotationMoveResult, Kn as PageDeleteInput, Ko as UNKNOWN_WEAK_ANNOTATION_STATE, Kr as FormImportResult, Ks as OpenInputBytes, La as ColorStyleDraftFields, Lc as AnnotationFlags, Li as ToggleFieldWidget, Ln as PageFlattenInput, Lo as AnnotationAppearanceImagesResult, Lr as expandTextRangeToLine, Ls as pdfRectToOriginSize, M as FileAttachmentPatch, Ma as normalizeAttachmentFileSource, Mc as RevisionToken, Mi as ListBoxFieldDTO, Mn as MetadataUpdateResult, Mo as DEFAULT_PDF_SAVE_MODE, Mr as PdfTextSegment, Ms as pdfQuadCorners, N as FileAttachmentAnnotationDTO, Na as FileAttachmentDraft, Nc as revisionTokensEqual, Ni as PushButtonFieldDTO, Nn as RedactionApplyItemResult, No as PdfSaveMode, Nr as TextLayoutFrame, Ns as pdfQuadFromCorners, Oa as PatchOfKind, Oc as ParsedWildcard, Oi as FormFieldFamily, On as HighlightPatch, Oo as EngineErrorCode, Or as SearchSlice, Os as PdfOriginSize, Ot as LinePatch, Pa as FileAttachmentIcon, Pc as PageObjectNumber, Pi as RadioFieldDTO, Pn as RedactionApplyResult, Po as CachePins, Pr as TextLayoutGlyph, Ps as pdfRectFromOriginSize, Pt as PolylinePatch, Qa as NormalizedDraft, Qc as Size, Qi as semanticEqual, Qn as PageMoveInput, Qo as PageImageOptions, Qr as FormEffectStatus, Qs as TokenSource, R as StampPatch, Ra as ColorStyleFields, Rc as AnnotationReplyType, Ri as UnknownFieldDTO, Rn as PageFlattenItemResult, Ro as AnnotationAppearanceManifest, Rr as expandTextRangeToWord, Rs as pdfRectWidth, S as RedactAnnotationDTO, Sa as buildThreads, Sc as DocCapability, Si as WidgetStyleFields, Sl as DocumentMetadataTrapped, Sn as UnderlinePatch, So as encodeStableIdKey, Sr as foldText, Ss as CharMapAnchor, St as LinkPatch, T as WidgetAnnotationDTO, Ta as AnnotationKindModule, Tc as ParsedCollab, Ti as ComboBoxFieldDTO, To as SerializedEngineError, Tr as SearchMode, Ts as charMapViolation, U as StampWireDraft, Ua as GeometryStyleDraftFields, Uc as FreeTextIntent, Ui as encodeFieldRefKey, Un as PageInsertBlankSpec, Uo as AnnotationAppearancesQuery, Ur as FormFieldCreateResult, Us as MetadataPatch, Ut as VertexAnnotationFields, V as StampDraft, Va as FilledStyleFields, Vc as Color, Vi as FormWidgetRef, Vn as PageFlattenUsage, Vo as AnnotationAppearanceRaster, Vr as textSegmentsForRange, Vs as PageLayout, Vt as PolygonAnnotationDTO, Wa as GeometryStyleFields, Wc as InkIntent, Wi as AnnotationCreateResult, Wn as PageInsertResult, Wo as AnnotationAppearancesResult, Wr as FormFieldDeleteResult, Ws as OpenInput, Wt as VertexDraftFields, X as NoteIcon, Xa as EmbeddedFileItem, Xc as Rect, Xi as AppearanceOutcome, Xn as PageMoveResult, Xo as PageImageHandle, Xr as FormEffect, Xs as OpenInputToken, Xt as SquareAnnotationDTO, Y as TextAnnotationDTO, Ya as AttachmentFileSource, Yc as Point, Yi as AppearanceImpact, Yn as PageMoveCache, Yo as PageImageBlobSource, Yr as FormWidgetLinkResult, Ys as OpenInputShare, Yt as SquarePatch, Z as TextDraft, Za as EmbeddedFileRef, Zc as Rotation, Zi as appearanceImpactOf, Zn as PageStructureCache, Zo as PageImageObjectUrl, Zr as FormEffectResult, Zs as OpenOptions, Zt as SquareDraft, _a as ReviewStatus, _c as decodePdfBits, _i as FormKind, _l as PdfActionWarning, _n as SquigglyAnnotationDTO, _o as AnnotationPatchBase, _r as wordBefore, _s as glyphLooseBounds, aa as CacheDelta, ac as checkCapability, ai as FormFieldPatch, al as LinePoints, an as ShapeDraftFields, ao as BinaryPayload, ar as matchPageText, as as PageRenderFormat, b as UnsupportedAnnotationDTO, ba as AnnotationRelationKind, bc as CollabEntity, bl as PdfPageActions, bo as AnnotationStableId, br as SEARCH_FOLD_VERSION, bs as PageTextSnapshot, c as AnnotationKind, ca as PdfLinkTargetWritable, cc as expandRawScope, ci as TextFieldPatch, cl as PdfRect, co as WireResource, cr as SearchQueryValidation, cs as PageRenderTarget, ct as FreeTextAnnotationDTO, d as AnnotationSubtypeOfKind, da as ManifestPage, dc as InvalidScope, di as FormFieldDraft, dl as ActionReadBudget, dn as StrikeoutAnnotationDTO, do as ANNOTATION_SUBTYPES, dr as matchRegex, ds as PageGeometryGlyph, ea as changesAnnotationList, ec as collab, ei as FormFieldDisplay, el as StrikeoutIntent, eo as normalizeAnnotationDraft, er as searchContentEpoch, es as PageImageSource, fa as LayerScopePlane, fc as MissingIdentity, fi as FormFieldOptionInput, fl as DocumentActionsSnapshot, fn as StrikeoutDraft, fo as AnnotationSubtype, fr as validateSearchQuery, fs as PageGeometryRun, ga as CommentThreadReview, gc as PDF_BITS, gi as WidgetPlacement, gl as PdfActionType, gn as SquigglyPatch, go as subtypeFromCode, gr as wordAt, gs as UprightGeometryRun, ha as CommentThread, hc as validateScopeArray, hi as TextFieldDraft, hl as PdfActionTree, ho as PdfAnnotationSubtypeCode, hr as matchLiteral, hs as RotatedGeometryRun, ht as InkDraft, i as AnnotationDTO, ia as RefetchReason, ic as checkAnyCapability, ii as ComboBoxFieldPatch, il as InkStroke, in as ShapeAnnotationFields, io as sniffBinaryMetadata, ir as buildSnippet, is as PageRenderEncodedFormat, ja as AttachmentsCache, jc as AnnotationRef, ji as FormFieldOrigin, jn as MetadataCache, jo as FontSpec, jr as PageTextLayout, js as pdfQuadBounds, ka as AttachmentCreateResult, kc as PdfBits, ki as FormFieldFlags, kn as HighlightAnnotationDTO, ko as FontHandle, kr as SearchSliceBudget, ks as PdfQuadCorners, kt as LineAnnotationDTO, l as AnnotationPatch, la as PdfDestination, lc as expandedCapabilities, li as CheckboxFieldDraft, ll as PdfRotation, lo as WireResourceMap, lr as SearchRegexIssue, ls as PageRenderViewport, lt as FreeTextDraft, m as WireAnnotationPatch, ma as BuildCommentThreadsOptions, mc as parseScope, mi as RadioFieldDraft, ml as PdfActionNode, mo as PDF_SUBTYPE_TO_CODE, mr as foldOptionsFor, ms as RotatedGeometryGlyph, mt as InkAnnotationDTO, n as AnnotationListSnapshotAllPages, na as shiftsExistingAnnotationIndices, nc as pdfPermissions, ni as FormFieldValue, nl as CalloutLine, nn as CircleAnnotationDTO, no as BinaryMetadata, nr as searchSegmentsForRange, ns as PageRaster, nt as CaretAnnotationDTO, o as AnnotationDraft, oa as MutationMeta, oc as checkCollab, oi as ListBoxFieldPatch, ol as PdfPoint, on as ShapePatchFields, oo as BinarySource, or as SEARCH_REGEX_MAX_LENGTH, os as PageRenderOptions, p as WireAnnotationDraft, pa as LayerScopes, pc as PermissionDenied, pi as ListBoxFieldDraft, pl as NamedJavaScriptAction, po as PDF_CODE_TO_SUBTYPE, pr as validateSearchRegex, ps as PageGeometrySnapshot, pt as InkPatch, qa as AttachmentFileBase, qc as NO_ANNOTATION_FLAGS, qi as AnnotationUpdateResult, qn as PageRotateResult, qo as WeakAnnotationState, qr as FormRepairResult, qs as OpenInputLayerBytes, ra as AnnotationListMutationMeta, rc as CollabTarget, ri as CheckboxFieldPatch, rl as InkList, rn as CircleDraft, ro as BinaryMimeType, rr as SEARCH_SNIPPET_CONTEXT, rs as PageRenderBackground, rt as CaretDraft, sa as PdfLinkTarget, sc as checkSetGroup, si as RadioFieldPatch, sl as PdfQuad, so as ResourceRef, sr as SearchQueryIssue, ss as PageRenderQuery, st as FreeTextPatch, t as AnnotationListPageSnapshot, ta as invalidatesWeakIndexRefs, tc as materializePdfPermissions, ti as FormDataFormat, tl as TextAlignment, tn as CirclePatch, to as normalizeAnnotationPatch, tr as searchRectsForRange, ts as PageNetworkRenderFormat, tt as CaretPatch, ua as DocumentManifest, uc as filterMatches, ui as ComboBoxFieldDraft, ul as PdfSize, un as StrikeoutPatch, uo as resolveBinarySource, ur as SearchRegexValidation, us as createPageImageHandle, v as UnsupportedPatch, va as buildCommentThreads, vc as AnnotationActor, vi as FormSnapshot, vl as PdfAnnotationActions, vn as SquigglyDraft, vo as AnnotationBase, vr as FoldOptions, vs as glyphLooseQuad, w as WidgetPatch, wa as refKey, wc as ParsedCapability, wi as CheckboxFieldDTO, wn as UnderlineDraft, wo as EngineErrorOptions, wr as SearchMatch, ws as charBoundaryAtTextOffset, wt as LinkDraft, x as RedactPatch, xa as AnnotationThread, xc as CollabFilter, xi as WidgetStyleDraftFields, xl as DocumentMetadata, xo as decodeStableIdKey, xr as SearchMatchRange, xs as CharBoundaryBias, y as UnsupportedDraft, ya as isStateAnnotation, yc as CollabAction, yi as WidgetAppearance, yl as PdfFieldActions, yo as AnnotationIdentityQuality, yr as FoldedText, ys as isRotatedGeometryRun, z as StampWirePatch, za as ColorStylePatchFields, zc as BlendMode, zi as FormValueEntry, zn as PageFlattenResult, zo as AnnotationAppearanceManifestEntry, zr as textGlyphAt, zs as PageListSnapshot } from "./AnnotationListSnapshot-DDxHpJQU.cjs";
2
- export { ANNOTATION_SUBTYPES, type ActionReadBudget, type AnnotationActor, type AnnotationAppearanceImage, type AnnotationAppearanceImageOptions, type AnnotationAppearanceImagesResult, type AnnotationAppearanceManifest, type AnnotationAppearanceManifestEntry, type AnnotationAppearanceMode, type AnnotationAppearanceRaster, type AnnotationAppearanceRenderOptions, type AnnotationAppearancesQuery, type AnnotationAppearancesResult, type AnnotationBase, type AnnotationBorderStyle, type AnnotationCreateResult, type AnnotationDTO, type AnnotationDeleteResult, type AnnotationDraft, type AnnotationDraftBase, type AnnotationFlags, type AnnotationIdentityQuality, type AnnotationKind, type AnnotationKindModule, type AnnotationListMutationMeta, type AnnotationListPageSnapshot, type AnnotationListSnapshotAllPages, type AnnotationMoveResult, type AnnotationMutationKind, type AnnotationPatch, type AnnotationPatchBase, type AnnotationRef, type AnnotationRelationKind, type AnnotationReplyType, type AnnotationStableId, type AnnotationSubtype, type AnnotationSubtypeOfKind, type AnnotationThread, type AnnotationUpdateResult, type AppearanceAction, type AppearanceImpact, type AppearanceOutcome, type AttachmentContent, type AttachmentCreateResult, type AttachmentDeleteResult, type AttachmentFileBase, type AttachmentFileInfo, type AttachmentFileSource, type AttachmentsCache, type BinaryMetadata, type BinaryMimeType, type BinaryPayload, type BinarySource, type BlendMode, type BuildCommentThreadsOptions, type CacheDelta, type CachePins, type CalloutLine, type CaretAnnotationDTO, type CaretDraft, type CaretIntent, type CaretPatch, type CharBoundaryBias, type CharMapAnchor, type CheckboxFieldDTO, type CheckboxFieldDraft, type CheckboxFieldPatch, type CircleAnnotationDTO, type CircleDraft, type CirclePatch, type CollabAction, type CollabEntity, type CollabFilter, type CollabTarget, type Color, type ColorStyleDraftFields, type ColorStyleFields, type ColorStylePatchFields, type ComboBoxFieldDTO, type ComboBoxFieldDraft, type ComboBoxFieldPatch, type CommentThread, type CommentThreadReview, DEFAULT_PDF_SAVE_MODE, type DTOOfKind, type DocCapability, type DocumentActionsSnapshot, type DocumentManifest, type DocumentMetadata, type DocumentMetadataTrapped, type DraftOfKind, type EmbeddedFileItem, type EmbeddedFileRef, EngineError, EngineErrorCode, type EngineErrorOptions, type FileAttachmentAnnotationDTO, type FileAttachmentDraft, type FileAttachmentIcon, type FileAttachmentPatch, type FileAttachmentWireDraft, type FilledStyleDraftFields, type FilledStyleFields, type FilledStylePatchFields, type FoldOptions, type FoldedText, type FontHandle, type FontKey, type FontSpec, type FormDataExport, type FormDataFormat, type FormEffect, type FormEffectResult, type FormEffectStatus, type FormEffectsResult, type FormFieldBase, type FormFieldCreateResult, type FormFieldDTO, type FormFieldDeleteResult, type FormFieldDisplay, type FormFieldDraft, type FormFieldFamily, type FormFieldFlags, type FormFieldOption, type FormFieldOptionInput, type FormFieldOrigin, type FormFieldPatch, type FormFieldRef, type FormFieldUpdateResult, type FormFieldValue, type FormImportResult, type FormKind, type FormRepairResult, type FormSetValueResult, type FormSnapshot, type FormValueEntry, type FormWidgetLinkResult, type FormWidgetRef, type FreeTextAnnotationDTO, type FreeTextDraft, type FreeTextFont, type FreeTextIntent, type FreeTextPatch, type GeometryStyleDraftFields, type GeometryStyleFields, type GeometryStylePatchFields, type HighlightAnnotationDTO, type HighlightDraft, type HighlightPatch, type IdentityClaims, type InkAnnotationDTO, type InkDraft, type InkIntent, type InkList, type InkPatch, type InkStroke, InvalidScope, type LayerScopePlane, type LayerScopes, type LineAnnotationDTO, type LineDraft, type LineEnding, type LineEndings, type LinePatch, type LinePoints, type LinkAnnotationDTO, type LinkDraft, type LinkPatch, type ListBoxFieldDTO, type ListBoxFieldDraft, type ListBoxFieldPatch, type ManifestPage, type MetadataCache, type MetadataPatch, type MetadataUpdateResult, MissingIdentity, type MutationMeta, NO_ANNOTATION_FLAGS, type NamedJavaScriptAction, type NormalizedDraft, type NormalizedPatch, type NoteIcon, type OpenInput, type OpenInputById, type OpenInputBytes, type OpenInputLayerBytes, type OpenInputLayerSource, type OpenInputShare, type OpenInputToken, type OpenOptions, PAGE_INSERT_BLANK_MAX_COUNT, PDF_BITS, PDF_CODE_TO_SUBTYPE, PDF_SUBTYPE_TO_CODE, type PageBoxes, type PageDeleteInput, type PageDeleteResult, type PageFlattenInput, type PageFlattenItemResult, type PageFlattenResult, type PageFlattenStatus, type PageFlattenUsage, type PageGeometryGlyph, type PageGeometryRun, type PageGeometrySnapshot, type PageImageBlobSource, type PageImageHandle, type PageImageObjectUrl, type PageImageOptions, type PageImageResult, type PageImageSource, type PageInsertBlankSpec, type PageInsertResult, type PageLayout, type PageListSnapshot, type PageMoveCache, type PageMoveInput, type PageMoveResult, type PageNetworkRenderFormat, type PageObjectNumber, type PageRaster, type PageRenderBackground, type PageRenderEncodedFormat, type PageRenderFormat, type PageRenderOptions, type PageRenderQuery, type PageRenderTarget, type PageRenderViewport, type PageRotateInput, type PageRotateResult, type PageRotation, type PageState, type PageStructureCache, type PageTextLayout, type PageTextSnapshot, type ParsedCapability, type ParsedCollab, type ParsedScope, type ParsedVirtual, type ParsedWildcard, type PatchOfKind, type PdfActionNode, type PdfActionTree, type PdfActionType, type PdfActionWarning, type PdfAnnotationActions, PdfAnnotationSubtypeCode, type PdfBits, type PdfDestination, type PdfFieldActions, type PdfLinkTarget, type PdfLinkTargetWritable, type PdfOriginSize, type PdfPageActions, type PdfPoint, type PdfQuad, type PdfQuadCorners, type PdfRect, type PdfRectDifferences, type PdfRotation, type PdfSaveMode, type PdfSize, type PdfTextSegment, PermissionDenied, type Point, type PolygonAnnotationDTO, type PolygonDraft, type PolygonPatch, type PolylineAnnotationDTO, type PolylineDraft, type PolylinePatch, type PushButtonFieldDTO, type RadioFieldDTO, type RadioFieldDraft, type RadioFieldPatch, type Rect, type RedactAnnotationDTO, type RedactDraft, type RedactPatch, type RedactionApplyItemResult, type RedactionApplyResult, type RedactionApplyScope, type RedactionApplyStatus, type RefetchReason, type ResourceRef, type ReviewStatus, type RevisionToken, type RotatedGeometryGlyph, type RotatedGeometryRun, type Rotation, SEARCH_FOLD_VERSION, SEARCH_REGEX_MAX_LENGTH, SEARCH_SNIPPET_CONTEXT, type SearchMatch, type SearchMatchRange, type SearchMode, type SearchQuery, type SearchQueryIssue, type SearchQueryValidation, type SearchRegexIssue, type SearchRegexValidation, type SearchRequest, type SearchSlice, type SearchSliceBudget, type SearchSnippet, type SerializedEngineError, type ShapeAnnotationFields, type ShapeDraftFields, type ShapePatchFields, type SignatureFieldDTO, type Size, type SquareAnnotationDTO, type SquareDraft, type SquarePatch, type SquigglyAnnotationDTO, type SquigglyDraft, type SquigglyPatch, type StampAnnotationDTO, type StampDraft, type StampFit, type StampPatch, type StampWireDraft, type StampWirePatch, type StandardFont, type StrikeoutAnnotationDTO, type StrikeoutDraft, type StrikeoutIntent, type StrikeoutPatch, type TextAlignment, type TextAnnotationDTO, type TextDraft, type TextFieldDTO, type TextFieldDraft, type TextFieldPatch, type TextLayoutFrame, type TextLayoutGlyph, type TextLayoutRun, type TextPatch, type ToggleFieldWidget, type TokenSource, UNKNOWN_WEAK_ANNOTATION_STATE, type UnderlineAnnotationDTO, type UnderlineDraft, type UnderlinePatch, type UnknownFieldDTO, type UnsupportedAnnotationDTO, type UnsupportedDraft, type UnsupportedPatch, type UprightGeometryRun, type VertexAnnotationFields, type VertexDraftFields, type VertexPatchFields, type WeakAnnotationState, type WidgetAnnotationDTO, type WidgetAppearance, type WidgetDraft, type WidgetPatch, type WidgetPlacement, type WidgetStyleDraftFields, type WidgetStyleFields, type WidgetStylePatchFields, type WireAnnotationDraft, type WireAnnotationPatch, type WireAttachmentFile, type WireResource, type WireResourceMap, appearanceImpactOf, boundaryTextOffset, buildCommentThreads, buildPageTextLayout, buildSnippet, buildThreads, canonicalSearchQuery, caps, changesAnnotationList, charBoundaryAtTextOffset, charMapViolation, charRangeForTextOffsets, checkAnyCapability, checkCapability, checkCollab, checkSetGroup, classifyRelation, collab, createPageImageHandle, decodeFieldRefKey, decodePdfBits, decodeStableIdKey, deserializeError, encodeFieldRefKey, encodeStableIdKey, expandRawScope, expandTextRangeToLine, expandTextRangeToWord, expandedCapabilities, filterMatches, foldOptionsFor, foldText, glyphLooseBounds, glyphLooseQuad, invalidatesWeakIndexRefs, isRotatedGeometryRun, isStateAnnotation, isValidPageObjectNumber, knownWeakAnnotationState, matchLiteral, matchPageText, matchRegex, materializePdfPermissions, normalizeAnnotationDraft, normalizeAnnotationPatch, normalizeAttachmentFileSource, normalizePdfRect, parseScope, pdfPermissions, pdfQuadBounds, pdfQuadCorners, pdfQuadFromCorners, pdfRectFromOriginSize, pdfRectHeight, pdfRectSize, pdfRectToOriginSize, pdfRectWidth, refKey, resolveBinarySource, revisionTokensEqual, searchContentEpoch, searchRectsForRange, searchSegmentsForRange, semanticEqual, serializeError, shiftsExistingAnnotationIndices, sliceTextByChars, sniffBinaryMetadata, subtypeFromCode, textGlyphAt, textGlyphQuad, textSegmentsForRange, toOriginalRange, validateScopeArray, validateSearchQuery, validateSearchRegex, wordAt, wordBefore };
1
+ import { $a as FilledStyleFields, $c as Color, $i as FormFieldRef, $n as PageNameResult, $o as AnnotationAppearanceRaster, $r as FormImportResult, $s as PageLayout, Aa as buildCommentThreads, Ac as PDF_BITS, Ai as FormKind, Al as PdfActionWarning, An as HighlightDraft, Ao as AnnotationBase, Ar as toOriginalRange, As as glyphLooseQuad, At as LineDraft, B as StampAnnotationDTO, Ba as PatchOfKind, Bc as ParsedScope, Bi as FormFieldDTO, Bl as DocumentMetadata, Bn as PageDeleteResult, Bo as EngineErrorCode, Br as TextLayoutFrame, Bs as PdfOriginSize, Bt as PolygonPatch, C as RedactDraft, Ca as ManifestPage, Cc as expandedCapabilities, Ci as ComboBoxFieldDraft, Cl as ActionReadBudget, Cn as UnderlineAnnotationDTO, Co as ANNOTATION_SUBTYPES, Cr as wordAt, Cs as PageGeometryGlyph, Ct as LinkAnnotationDTO, Da as CommentThread, Dc as PermissionDenied, Di as RadioFieldDraft, Dl as PdfActionTargetRef, Do as PdfAnnotationSubtypeCode, Dr as SEARCH_FOLD_VERSION, Ds as RotatedGeometryRun, E as WidgetDraft, Ea as BuildCommentThreadsOptions, Ec as MissingIdentity, Ei as ListBoxFieldDraft, El as PdfActionNode, Eo as PDF_SUBTYPE_TO_CODE, Er as FoldedText, Es as RotatedGeometryGlyph, Fa as classifyRelation, Fc as CollabFilter, Fi as WidgetStyleFields, Fl as SubmitFormPayload, Fn as RedactionApplyScope, Fo as EngineError, Fr as SearchSlice, Fs as boundaryTextOffset, Ft as PolylineAnnotationDTO, Ga as FileAttachmentDraft, Gc as AnnotationRef, Gi as ListBoxFieldDTO, Gn as AnnotationFlattenInput, Go as PdfSaveMode, Gr as expandTextRangeToWord, Gs as pdfQuadFromCorners, Gt as VertexPatchFields, H as StampFit, Ha as AttachmentDeleteResult, Hc as ParsedWildcard, Hi as FormFieldFlags, Hn as PageRotateResult, Ho as FontKey, Hr as TextLayoutRun, Hs as normalizePdfRect, Ht as PolygonDraft, Ia as refKey, Ic as DocCapability, Ii as WidgetStylePatchFields, Il as decodeSubmitFormFlags, In as RedactionApplyStatus, Io as EngineErrorOptions, Ir as SearchSliceBudget, Is as charBoundaryAtTextOffset, It as PolylineDraft, J as TextPatch, Ja as WireAttachmentFile, Jc as AnnotationBorderStyle, Ji as SignatureFieldDTO, Jn as PageFlattenInput, Jo as AnnotationAppearanceImageOptions, Jr as textSegmentsForRange, Js as pdfRectSize, Ka as FileAttachmentIcon, Kc as RevisionToken, Ki as PushButtonFieldDTO, Kn as AnnotationFlattenItemResult, Ko as CachePins, Kr as textGlyphAt, Ks as pdfRectFromOriginSize, La as AnnotationKindModule, Lc as IdentityClaims, Li as CheckboxFieldDTO, Ll as PdfDestination, Ln as PAGE_INSERT_BLANK_MAX_COUNT, Lo as SerializedEngineError, Lr as SearchSnippet, Ls as charMapViolation, M as FileAttachmentPatch, Ma as AnnotationRelationKind, Mc as AnnotationActor, Mi as WidgetAppearance, Ml as PdfFieldActions, Mn as MetadataUpdateResult, Mo as AnnotationStableId, Mr as SearchMode, Ms as PageTextSnapshot, N as FileAttachmentAnnotationDTO, Na as AnnotationThread, Nc as CollabAction, Nl as PdfPageActions, Nn as RedactionApplyItemResult, No as decodeStableIdKey, Nr as SearchQuery, Ns as CharBoundaryBias, Oa as CommentThreadReview, Oc as parseScope, Oi as TextFieldDraft, Ol as PdfActionTree, On as HighlightPatch, Oo as subtypeFromCode, Or as SearchMatchRange, Os as UprightGeometryRun, Ot as LinePatch, Pa as buildThreads, Pc as CollabEntity, Pi as WidgetStyleDraftFields, Pl as SubmitFormFlags, Pn as RedactionApplyResult, Po as encodeStableIdKey, Pr as SearchRequest, Ps as CharMapAnchor, Pt as PolylinePatch, Qa as FilledStyleDraftFields, Qc as CaretIntent, Qi as FormValueEntry, Qn as PageFlattenUsage, Qo as AnnotationAppearanceMode, Qr as FormFieldUpdateResult, Qs as PageBoxes, R as StampPatch, Ra as DTOOfKind, Rc as ParsedCapability, Ri as ComboBoxFieldDTO, Rl as PageObjectNumber, Rn as PageInsertBlankSpec, Ro as deserializeError, Rr as PageTextLayout, Rs as charRangeForTextOffsets, S as RedactAnnotationDTO, Sa as DocumentManifest, Sc as expandRawScope, Si as CheckboxFieldDraft, Sl as PdfSize, Sn as UnderlinePatch, So as resolveBinarySource, Sr as matchLiteral, Ss as createPageImageHandle, St as LinkPatch, T as WidgetAnnotationDTO, Ta as LayerScopes, Tc as InvalidScope, Ti as FormFieldOptionInput, Tl as NamedJavaScriptAction, To as PDF_CODE_TO_SUBTYPE, Tr as FoldOptions, Ts as PageGeometrySnapshot, U as StampWireDraft, Ua as AttachmentsCache, Uc as PdfBits, Ui as FormFieldOption, Un as PageRotateInput, Uo as FontSpec, Ur as buildPageTextLayout, Us as pdfQuadBounds, Ut as VertexAnnotationFields, V as StampDraft, Va as AttachmentCreateResult, Vc as ParsedVirtual, Vi as FormFieldFamily, Vl as DocumentMetadataTrapped, Vn as PageDeleteInput, Vo as FontHandle, Vr as TextLayoutGlyph, Vs as PdfQuadCorners, Vt as PolygonAnnotationDTO, Wa as normalizeAttachmentFileSource, Wc as AnnotationDraftBase, Wi as FormFieldOrigin, Wn as AnnotationAppearanceExportInput, Wo as DEFAULT_PDF_SAVE_MODE, Wr as expandTextRangeToLine, Ws as pdfQuadCorners, Wt as VertexDraftFields, X as NoteIcon, Xa as ColorStyleFields, Xc as AnnotationReplyType, Xi as ToggleFieldWidget, Xn as PageFlattenResult, Xo as AnnotationAppearanceManifest, Xr as FormFieldCreateResult, Xs as pdfRectWidth, Xt as SquareAnnotationDTO, Y as TextAnnotationDTO, Ya as ColorStyleDraftFields, Yc as AnnotationFlags, Yi as TextFieldDTO, Yn as PageFlattenItemResult, Yo as AnnotationAppearanceImagesResult, Yr as FormDataExport, Ys as pdfRectToOriginSize, Yt as SquarePatch, Z as TextDraft, Za as ColorStylePatchFields, Zc as BlendMode, Zi as UnknownFieldDTO, Zn as PageFlattenStatus, Zo as AnnotationAppearanceManifestEntry, Zr as FormFieldDeleteResult, Zs as PageListSnapshot, Zt as SquareDraft, _a as RefetchReason, _c as CollabTarget, _i as ComboBoxFieldPatch, _l as LinePoints, _n as SquigglyAnnotationDTO, _o as BinaryPayload, _r as SearchRegexValidation, _s as PageRenderFormat, aa as AnnotationMoveResult, ac as OpenInputById, ai as FormEffectStatus, al as NO_ANNOTATION_FLAGS, an as ShapeDraftFields, ao as AttachmentFileBase, ar as PageMoveInput, as as WeakAnnotationState, b as UnsupportedAnnotationDTO, ba as PdfLinkTarget, bc as checkCollab, bi as RadioFieldPatch, bl as PdfRect, bo as WireResource, br as validateSearchRegex, bs as PageRenderTarget, c as AnnotationKind, ca as AppearanceImpact, cc as OpenInputLayerSource, ci as FormSubmissionEntry, cl as Rect, co as EmbeddedFileItem, cr as searchRectsForRange, cs as PageImageHandle, ct as FreeTextAnnotationDTO, d as AnnotationSubtypeOfKind, da as semanticEqual, dc as OpenOptions, dl as StandardFont, dn as StrikeoutAnnotationDTO, do as NormalizedPatch, dr as buildSnippet, ds as PageImageResult, ea as FormWidgetRef, ec as PageRotation, ei as FormRepairResult, el as FreeTextFont, eo as FilledStylePatchFields, er as PageNameInput, es as AnnotationAppearanceRenderOptions, fa as AnnotationMutationKind, fc as TokenSource, fi as FormSubmissionRequest, fl as StrikeoutIntent, fn as StrikeoutDraft, fo as normalizeAnnotationDraft, fr as matchPageText, fs as PageImageSource, ga as AnnotationListMutationMeta, gc as pdfPermissions, gi as CheckboxFieldPatch, gl as InkStroke, gn as SquigglyPatch, go as sniffBinaryMetadata, gr as SearchRegexIssue, gs as PageRenderEncodedFormat, ha as shiftsExistingAnnotationIndices, hc as materializePdfPermissions, hi as FormFieldValue, hl as InkList, ho as BinaryMimeType, hr as SearchQueryValidation, hs as PageRenderBackground, ht as InkDraft, i as AnnotationDTO, ia as AnnotationDeleteResult, ic as OpenInput, ii as FormEffectResult, il as LineEndings, in as ShapeAnnotationFields, io as AttachmentContent, ir as PageStructureCache, is as UNKNOWN_WEAK_ANNOTATION_STATE, ja as isStateAnnotation, jc as decodePdfBits, ji as FormSnapshot, jl as PdfAnnotationActions, jn as MetadataCache, jo as AnnotationIdentityQuality, jr as SearchMatch, js as isRotatedGeometryRun, ka as ReviewStatus, kc as validateScopeArray, ki as WidgetPlacement, kl as PdfActionType, kn as HighlightAnnotationDTO, ko as AnnotationPatchBase, kr as foldText, ks as glyphLooseBounds, kt as LineAnnotationDTO, l as AnnotationPatch, la as AppearanceOutcome, lc as OpenInputShare, ll as Rotation, lo as EmbeddedFileRef, lr as searchSegmentsForRange, ls as PageImageObjectUrl, lt as FreeTextDraft, m as WireAnnotationPatch, ma as invalidatesWeakIndexRefs, mc as collab, mi as FormDataFormat, ml as CalloutLine, mo as BinaryMetadata, mr as SearchQueryIssue, ms as PageRaster, mt as InkAnnotationDTO, n as AnnotationListSnapshotAllPages, na as encodeFieldRefKey, nc as NamedPageTarget, ni as FormWidgetLinkResult, nl as InkIntent, nn as CircleAnnotationDTO, no as GeometryStyleFields, nr as PageMoveCache, ns as AnnotationAppearancesResult, nt as CaretAnnotationDTO, o as AnnotationDraft, oa as AnnotationUpdateResult, oc as OpenInputBytes, oi as FormEffectsResult, ol as PdfRectDifferences, on as ShapePatchFields, oo as AttachmentFileInfo, or as canonicalSearchQuery, os as knownWeakAnnotationState, p as WireAnnotationDraft, pa as changesAnnotationList, pc as caps, pl as TextAlignment, po as normalizeAnnotationPatch, pr as SEARCH_REGEX_MAX_LENGTH, ps as PageNetworkRenderFormat, pt as InkPatch, qa as FileAttachmentWireDraft, qc as revisionTokensEqual, qi as RadioFieldDTO, qn as AnnotationFlattenResult, qo as AnnotationAppearanceImage, qr as textGlyphQuad, qs as pdfRectHeight, ra as AnnotationCreateResult, rc as MetadataPatch, ri as FormEffect, rl as LineEnding, rn as CircleDraft, ro as GeometryStylePatchFields, rr as PageMoveResult, rs as PageState, rt as CaretDraft, sa as AppearanceAction, sc as OpenInputLayerBytes, si as FormFieldDisplay, sl as Point, so as AttachmentFileSource, sr as searchContentEpoch, ss as PageImageBlobSource, st as FreeTextPatch, t as AnnotationListPageSnapshot, ta as decodeFieldRefKey, tc as NamedPageEntry, ti as FormSetValueResult, tl as FreeTextIntent, tn as CirclePatch, to as GeometryStyleDraftFields, tr as PageRemoveNameInput, ts as AnnotationAppearancesQuery, tt as CaretPatch, ua as appearanceImpactOf, uc as OpenInputToken, ui as FormSubmissionReceipt, ul as Size, un as StrikeoutPatch, uo as NormalizedDraft, ur as SEARCH_SNIPPET_CONTEXT, us as PageImageOptions, v as UnsupportedPatch, va as CacheDelta, vc as checkAnyCapability, vi as FormFieldPatch, vl as PdfPoint, vn as SquigglyDraft, vo as BinarySource, vr as matchRegex, vs as PageRenderOptions, w as WidgetPatch, wa as LayerScopePlane, wc as filterMatches, wi as FormFieldDraft, wl as DocumentActionsSnapshot, wn as UnderlineDraft, wo as AnnotationSubtype, wr as wordBefore, ws as PageGeometryRun, wt as LinkDraft, x as RedactPatch, xa as PdfLinkTargetWritable, xc as checkSetGroup, xi as TextFieldPatch, xl as PdfRotation, xo as WireResourceMap, xr as foldOptionsFor, xs as PageRenderViewport, y as UnsupportedDraft, ya as MutationMeta, yc as checkCapability, yi as ListBoxFieldPatch, yl as PdfQuad, yo as ResourceRef, yr as validateSearchQuery, ys as PageRenderQuery, z as StampWirePatch, za as DraftOfKind, zc as ParsedCollab, zi as FormFieldBase, zl as isValidPageObjectNumber, zn as PageInsertResult, zo as serializeError, zr as PdfTextSegment, zs as sliceTextByChars } from "./AnnotationListSnapshot-x6tKulNV.cjs";
2
+ export { ANNOTATION_SUBTYPES, type ActionReadBudget, type AnnotationActor, type AnnotationAppearanceExportInput, type AnnotationAppearanceImage, type AnnotationAppearanceImageOptions, type AnnotationAppearanceImagesResult, type AnnotationAppearanceManifest, type AnnotationAppearanceManifestEntry, type AnnotationAppearanceMode, type AnnotationAppearanceRaster, type AnnotationAppearanceRenderOptions, type AnnotationAppearancesQuery, type AnnotationAppearancesResult, type AnnotationBase, type AnnotationBorderStyle, type AnnotationCreateResult, type AnnotationDTO, type AnnotationDeleteResult, type AnnotationDraft, type AnnotationDraftBase, type AnnotationFlags, type AnnotationFlattenInput, type AnnotationFlattenItemResult, type AnnotationFlattenResult, type AnnotationIdentityQuality, type AnnotationKind, type AnnotationKindModule, type AnnotationListMutationMeta, type AnnotationListPageSnapshot, type AnnotationListSnapshotAllPages, type AnnotationMoveResult, type AnnotationMutationKind, type AnnotationPatch, type AnnotationPatchBase, type AnnotationRef, type AnnotationRelationKind, type AnnotationReplyType, type AnnotationStableId, type AnnotationSubtype, type AnnotationSubtypeOfKind, type AnnotationThread, type AnnotationUpdateResult, type AppearanceAction, type AppearanceImpact, type AppearanceOutcome, type AttachmentContent, type AttachmentCreateResult, type AttachmentDeleteResult, type AttachmentFileBase, type AttachmentFileInfo, type AttachmentFileSource, type AttachmentsCache, type BinaryMetadata, type BinaryMimeType, type BinaryPayload, type BinarySource, type BlendMode, type BuildCommentThreadsOptions, type CacheDelta, type CachePins, type CalloutLine, type CaretAnnotationDTO, type CaretDraft, type CaretIntent, type CaretPatch, type CharBoundaryBias, type CharMapAnchor, type CheckboxFieldDTO, type CheckboxFieldDraft, type CheckboxFieldPatch, type CircleAnnotationDTO, type CircleDraft, type CirclePatch, type CollabAction, type CollabEntity, type CollabFilter, type CollabTarget, type Color, type ColorStyleDraftFields, type ColorStyleFields, type ColorStylePatchFields, type ComboBoxFieldDTO, type ComboBoxFieldDraft, type ComboBoxFieldPatch, type CommentThread, type CommentThreadReview, DEFAULT_PDF_SAVE_MODE, type DTOOfKind, type DocCapability, type DocumentActionsSnapshot, type DocumentManifest, type DocumentMetadata, type DocumentMetadataTrapped, type DraftOfKind, type EmbeddedFileItem, type EmbeddedFileRef, EngineError, EngineErrorCode, type EngineErrorOptions, type FileAttachmentAnnotationDTO, type FileAttachmentDraft, type FileAttachmentIcon, type FileAttachmentPatch, type FileAttachmentWireDraft, type FilledStyleDraftFields, type FilledStyleFields, type FilledStylePatchFields, type FoldOptions, type FoldedText, type FontHandle, type FontKey, type FontSpec, type FormDataExport, type FormDataFormat, type FormEffect, type FormEffectResult, type FormEffectStatus, type FormEffectsResult, type FormFieldBase, type FormFieldCreateResult, type FormFieldDTO, type FormFieldDeleteResult, type FormFieldDisplay, type FormFieldDraft, type FormFieldFamily, type FormFieldFlags, type FormFieldOption, type FormFieldOptionInput, type FormFieldOrigin, type FormFieldPatch, type FormFieldRef, type FormFieldUpdateResult, type FormFieldValue, type FormImportResult, type FormKind, type FormRepairResult, type FormSetValueResult, type FormSnapshot, type FormSubmissionEntry, type FormSubmissionReceipt, type FormSubmissionRequest, type FormValueEntry, type FormWidgetLinkResult, type FormWidgetRef, type FreeTextAnnotationDTO, type FreeTextDraft, type FreeTextFont, type FreeTextIntent, type FreeTextPatch, type GeometryStyleDraftFields, type GeometryStyleFields, type GeometryStylePatchFields, type HighlightAnnotationDTO, type HighlightDraft, type HighlightPatch, type IdentityClaims, type InkAnnotationDTO, type InkDraft, type InkIntent, type InkList, type InkPatch, type InkStroke, InvalidScope, type LayerScopePlane, type LayerScopes, type LineAnnotationDTO, type LineDraft, type LineEnding, type LineEndings, type LinePatch, type LinePoints, type LinkAnnotationDTO, type LinkDraft, type LinkPatch, type ListBoxFieldDTO, type ListBoxFieldDraft, type ListBoxFieldPatch, type ManifestPage, type MetadataCache, type MetadataPatch, type MetadataUpdateResult, MissingIdentity, type MutationMeta, NO_ANNOTATION_FLAGS, type NamedJavaScriptAction, type NamedPageEntry, type NamedPageTarget, type NormalizedDraft, type NormalizedPatch, type NoteIcon, type OpenInput, type OpenInputById, type OpenInputBytes, type OpenInputLayerBytes, type OpenInputLayerSource, type OpenInputShare, type OpenInputToken, type OpenOptions, PAGE_INSERT_BLANK_MAX_COUNT, PDF_BITS, PDF_CODE_TO_SUBTYPE, PDF_SUBTYPE_TO_CODE, type PageBoxes, type PageDeleteInput, type PageDeleteResult, type PageFlattenInput, type PageFlattenItemResult, type PageFlattenResult, type PageFlattenStatus, type PageFlattenUsage, type PageGeometryGlyph, type PageGeometryRun, type PageGeometrySnapshot, type PageImageBlobSource, type PageImageHandle, type PageImageObjectUrl, type PageImageOptions, type PageImageResult, type PageImageSource, type PageInsertBlankSpec, type PageInsertResult, type PageLayout, type PageListSnapshot, type PageMoveCache, type PageMoveInput, type PageMoveResult, type PageNameInput, type PageNameResult, type PageNetworkRenderFormat, type PageObjectNumber, type PageRaster, type PageRemoveNameInput, type PageRenderBackground, type PageRenderEncodedFormat, type PageRenderFormat, type PageRenderOptions, type PageRenderQuery, type PageRenderTarget, type PageRenderViewport, type PageRotateInput, type PageRotateResult, type PageRotation, type PageState, type PageStructureCache, type PageTextLayout, type PageTextSnapshot, type ParsedCapability, type ParsedCollab, type ParsedScope, type ParsedVirtual, type ParsedWildcard, type PatchOfKind, type PdfActionNode, type PdfActionTargetRef, type PdfActionTree, type PdfActionType, type PdfActionWarning, type PdfAnnotationActions, PdfAnnotationSubtypeCode, type PdfBits, type PdfDestination, type PdfFieldActions, type PdfLinkTarget, type PdfLinkTargetWritable, type PdfOriginSize, type PdfPageActions, type PdfPoint, type PdfQuad, type PdfQuadCorners, type PdfRect, type PdfRectDifferences, type PdfRotation, type PdfSaveMode, type PdfSize, type PdfTextSegment, PermissionDenied, type Point, type PolygonAnnotationDTO, type PolygonDraft, type PolygonPatch, type PolylineAnnotationDTO, type PolylineDraft, type PolylinePatch, type PushButtonFieldDTO, type RadioFieldDTO, type RadioFieldDraft, type RadioFieldPatch, type Rect, type RedactAnnotationDTO, type RedactDraft, type RedactPatch, type RedactionApplyItemResult, type RedactionApplyResult, type RedactionApplyScope, type RedactionApplyStatus, type RefetchReason, type ResourceRef, type ReviewStatus, type RevisionToken, type RotatedGeometryGlyph, type RotatedGeometryRun, type Rotation, SEARCH_FOLD_VERSION, SEARCH_REGEX_MAX_LENGTH, SEARCH_SNIPPET_CONTEXT, type SearchMatch, type SearchMatchRange, type SearchMode, type SearchQuery, type SearchQueryIssue, type SearchQueryValidation, type SearchRegexIssue, type SearchRegexValidation, type SearchRequest, type SearchSlice, type SearchSliceBudget, type SearchSnippet, type SerializedEngineError, type ShapeAnnotationFields, type ShapeDraftFields, type ShapePatchFields, type SignatureFieldDTO, type Size, type SquareAnnotationDTO, type SquareDraft, type SquarePatch, type SquigglyAnnotationDTO, type SquigglyDraft, type SquigglyPatch, type StampAnnotationDTO, type StampDraft, type StampFit, type StampPatch, type StampWireDraft, type StampWirePatch, type StandardFont, type StrikeoutAnnotationDTO, type StrikeoutDraft, type StrikeoutIntent, type StrikeoutPatch, type SubmitFormFlags, type SubmitFormPayload, type TextAlignment, type TextAnnotationDTO, type TextDraft, type TextFieldDTO, type TextFieldDraft, type TextFieldPatch, type TextLayoutFrame, type TextLayoutGlyph, type TextLayoutRun, type TextPatch, type ToggleFieldWidget, type TokenSource, UNKNOWN_WEAK_ANNOTATION_STATE, type UnderlineAnnotationDTO, type UnderlineDraft, type UnderlinePatch, type UnknownFieldDTO, type UnsupportedAnnotationDTO, type UnsupportedDraft, type UnsupportedPatch, type UprightGeometryRun, type VertexAnnotationFields, type VertexDraftFields, type VertexPatchFields, type WeakAnnotationState, type WidgetAnnotationDTO, type WidgetAppearance, type WidgetDraft, type WidgetPatch, type WidgetPlacement, type WidgetStyleDraftFields, type WidgetStyleFields, type WidgetStylePatchFields, type WireAnnotationDraft, type WireAnnotationPatch, type WireAttachmentFile, type WireResource, type WireResourceMap, appearanceImpactOf, boundaryTextOffset, buildCommentThreads, buildPageTextLayout, buildSnippet, buildThreads, canonicalSearchQuery, caps, changesAnnotationList, charBoundaryAtTextOffset, charMapViolation, charRangeForTextOffsets, checkAnyCapability, checkCapability, checkCollab, checkSetGroup, classifyRelation, collab, createPageImageHandle, decodeFieldRefKey, decodePdfBits, decodeStableIdKey, decodeSubmitFormFlags, deserializeError, encodeFieldRefKey, encodeStableIdKey, expandRawScope, expandTextRangeToLine, expandTextRangeToWord, expandedCapabilities, filterMatches, foldOptionsFor, foldText, glyphLooseBounds, glyphLooseQuad, invalidatesWeakIndexRefs, isRotatedGeometryRun, isStateAnnotation, isValidPageObjectNumber, knownWeakAnnotationState, matchLiteral, matchPageText, matchRegex, materializePdfPermissions, normalizeAnnotationDraft, normalizeAnnotationPatch, normalizeAttachmentFileSource, normalizePdfRect, parseScope, pdfPermissions, pdfQuadBounds, pdfQuadCorners, pdfQuadFromCorners, pdfRectFromOriginSize, pdfRectHeight, pdfRectSize, pdfRectToOriginSize, pdfRectWidth, refKey, resolveBinarySource, revisionTokensEqual, searchContentEpoch, searchRectsForRange, searchSegmentsForRange, semanticEqual, serializeError, shiftsExistingAnnotationIndices, sliceTextByChars, sniffBinaryMetadata, subtypeFromCode, textGlyphAt, textGlyphQuad, textSegmentsForRange, toOriginalRange, validateScopeArray, validateSearchQuery, validateSearchRegex, wordAt, wordBefore };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { $a as NormalizedPatch, $c as StandardFont, $i as AnnotationMutationKind, $n as canonicalSearchQuery, $o as PageImageResult, $r as FormEffectsResult, $s as caps, Aa as AttachmentDeleteResult, Ac as AnnotationDraftBase, Ai as FormFieldOption, An as HighlightDraft, Ao as FontKey, Ar as SearchSnippet, As as normalizePdfRect, At as LineDraft, B as StampAnnotationDTO, Ba as FilledStyleDraftFields, Bc as CaretIntent, Bi as FormFieldRef, Bn as PageFlattenStatus, Bo as AnnotationAppearanceMode, Br as textGlyphQuad, Bs as PageBoxes, Bt as PolygonPatch, C as RedactDraft, Ca as classifyRelation, Cc as IdentityClaims, Ci as WidgetStylePatchFields, Cn as UnderlineAnnotationDTO, Co as EngineError, Cr as toOriginalRange, Cs as boundaryTextOffset, Ct as LinkAnnotationDTO, Da as DraftOfKind, Dc as ParsedVirtual, Di as FormFieldDTO, Do as serializeError, Dr as SearchRequest, Ds as sliceTextByChars, E as WidgetDraft, Ea as DTOOfKind, Ec as ParsedScope, Ei as FormFieldBase, Eo as deserializeError, Er as SearchQuery, Es as charRangeForTextOffsets, Fa as FileAttachmentWireDraft, Fc as isValidPageObjectNumber, Fi as SignatureFieldDTO, Fn as RedactionApplyScope, Fo as AnnotationAppearanceImage, Fr as TextLayoutRun, Fs as pdfRectHeight, Ft as PolylineAnnotationDTO, Ga as GeometryStylePatchFields, Gc as LineEnding, Gi as AnnotationDeleteResult, Gn as PageDeleteResult, Go as PageState, Gr as FormFieldUpdateResult, Gs as OpenInputById, Gt as VertexPatchFields, H as StampFit, Ha as FilledStylePatchFields, Hc as FreeTextFont, Hi as decodeFieldRefKey, Hn as PAGE_INSERT_BLANK_MAX_COUNT, Ho as AnnotationAppearanceRenderOptions, Hr as FormDataExport, Hs as PageRotation, Ht as PolygonDraft, Ia as WireAttachmentFile, Ic as AnnotationBorderStyle, Ii as TextFieldDTO, In as RedactionApplyStatus, Io as AnnotationAppearanceImageOptions, Ir as buildPageTextLayout, Is as pdfRectSize, It as PolylineDraft, J as TextPatch, Ja as AttachmentFileInfo, Jc as PdfRectDifferences, Ji as AppearanceAction, Jn as PageRotateInput, Jo as knownWeakAnnotationState, Jr as FormSetValueResult, Js as OpenInputLayerSource, Ka as AttachmentContent, Kc as LineEndings, Ki as AnnotationMoveResult, Kn as PageDeleteInput, Ko as UNKNOWN_WEAK_ANNOTATION_STATE, Kr as FormImportResult, Ks as OpenInputBytes, La as ColorStyleDraftFields, Lc as AnnotationFlags, Li as ToggleFieldWidget, Ln as PageFlattenInput, Lo as AnnotationAppearanceImagesResult, Lr as expandTextRangeToLine, Ls as pdfRectToOriginSize, M as FileAttachmentPatch, Ma as normalizeAttachmentFileSource, Mc as RevisionToken, Mi as ListBoxFieldDTO, Mn as MetadataUpdateResult, Mo as DEFAULT_PDF_SAVE_MODE, Mr as PdfTextSegment, Ms as pdfQuadCorners, N as FileAttachmentAnnotationDTO, Na as FileAttachmentDraft, Nc as revisionTokensEqual, Ni as PushButtonFieldDTO, Nn as RedactionApplyItemResult, No as PdfSaveMode, Nr as TextLayoutFrame, Ns as pdfQuadFromCorners, Oa as PatchOfKind, Oc as ParsedWildcard, Oi as FormFieldFamily, On as HighlightPatch, Oo as EngineErrorCode, Or as SearchSlice, Os as PdfOriginSize, Ot as LinePatch, Pa as FileAttachmentIcon, Pc as PageObjectNumber, Pi as RadioFieldDTO, Pn as RedactionApplyResult, Po as CachePins, Pr as TextLayoutGlyph, Ps as pdfRectFromOriginSize, Pt as PolylinePatch, Qa as NormalizedDraft, Qc as Size, Qi as semanticEqual, Qn as PageMoveInput, Qo as PageImageOptions, Qr as FormEffectStatus, Qs as TokenSource, R as StampPatch, Ra as ColorStyleFields, Rc as AnnotationReplyType, Ri as UnknownFieldDTO, Rn as PageFlattenItemResult, Ro as AnnotationAppearanceManifest, Rr as expandTextRangeToWord, Rs as pdfRectWidth, S as RedactAnnotationDTO, Sa as buildThreads, Sc as DocCapability, Si as WidgetStyleFields, Sl as DocumentMetadataTrapped, Sn as UnderlinePatch, So as encodeStableIdKey, Sr as foldText, Ss as CharMapAnchor, St as LinkPatch, T as WidgetAnnotationDTO, Ta as AnnotationKindModule, Tc as ParsedCollab, Ti as ComboBoxFieldDTO, To as SerializedEngineError, Tr as SearchMode, Ts as charMapViolation, U as StampWireDraft, Ua as GeometryStyleDraftFields, Uc as FreeTextIntent, Ui as encodeFieldRefKey, Un as PageInsertBlankSpec, Uo as AnnotationAppearancesQuery, Ur as FormFieldCreateResult, Us as MetadataPatch, Ut as VertexAnnotationFields, V as StampDraft, Va as FilledStyleFields, Vc as Color, Vi as FormWidgetRef, Vn as PageFlattenUsage, Vo as AnnotationAppearanceRaster, Vr as textSegmentsForRange, Vs as PageLayout, Vt as PolygonAnnotationDTO, Wa as GeometryStyleFields, Wc as InkIntent, Wi as AnnotationCreateResult, Wn as PageInsertResult, Wo as AnnotationAppearancesResult, Wr as FormFieldDeleteResult, Ws as OpenInput, Wt as VertexDraftFields, X as NoteIcon, Xa as EmbeddedFileItem, Xc as Rect, Xi as AppearanceOutcome, Xn as PageMoveResult, Xo as PageImageHandle, Xr as FormEffect, Xs as OpenInputToken, Xt as SquareAnnotationDTO, Y as TextAnnotationDTO, Ya as AttachmentFileSource, Yc as Point, Yi as AppearanceImpact, Yn as PageMoveCache, Yo as PageImageBlobSource, Yr as FormWidgetLinkResult, Ys as OpenInputShare, Yt as SquarePatch, Z as TextDraft, Za as EmbeddedFileRef, Zc as Rotation, Zi as appearanceImpactOf, Zn as PageStructureCache, Zo as PageImageObjectUrl, Zr as FormEffectResult, Zs as OpenOptions, Zt as SquareDraft, _a as ReviewStatus, _c as decodePdfBits, _i as FormKind, _l as PdfActionWarning, _n as SquigglyAnnotationDTO, _o as AnnotationPatchBase, _r as wordBefore, _s as glyphLooseBounds, aa as CacheDelta, ac as checkCapability, ai as FormFieldPatch, al as LinePoints, an as ShapeDraftFields, ao as BinaryPayload, ar as matchPageText, as as PageRenderFormat, b as UnsupportedAnnotationDTO, ba as AnnotationRelationKind, bc as CollabEntity, bl as PdfPageActions, bo as AnnotationStableId, br as SEARCH_FOLD_VERSION, bs as PageTextSnapshot, c as AnnotationKind, ca as PdfLinkTargetWritable, cc as expandRawScope, ci as TextFieldPatch, cl as PdfRect, co as WireResource, cr as SearchQueryValidation, cs as PageRenderTarget, ct as FreeTextAnnotationDTO, d as AnnotationSubtypeOfKind, da as ManifestPage, dc as InvalidScope, di as FormFieldDraft, dl as ActionReadBudget, dn as StrikeoutAnnotationDTO, do as ANNOTATION_SUBTYPES, dr as matchRegex, ds as PageGeometryGlyph, ea as changesAnnotationList, ec as collab, ei as FormFieldDisplay, el as StrikeoutIntent, eo as normalizeAnnotationDraft, er as searchContentEpoch, es as PageImageSource, fa as LayerScopePlane, fc as MissingIdentity, fi as FormFieldOptionInput, fl as DocumentActionsSnapshot, fn as StrikeoutDraft, fo as AnnotationSubtype, fr as validateSearchQuery, fs as PageGeometryRun, ga as CommentThreadReview, gc as PDF_BITS, gi as WidgetPlacement, gl as PdfActionType, gn as SquigglyPatch, go as subtypeFromCode, gr as wordAt, gs as UprightGeometryRun, ha as CommentThread, hc as validateScopeArray, hi as TextFieldDraft, hl as PdfActionTree, ho as PdfAnnotationSubtypeCode, hr as matchLiteral, hs as RotatedGeometryRun, ht as InkDraft, i as AnnotationDTO, ia as RefetchReason, ic as checkAnyCapability, ii as ComboBoxFieldPatch, il as InkStroke, in as ShapeAnnotationFields, io as sniffBinaryMetadata, ir as buildSnippet, is as PageRenderEncodedFormat, ja as AttachmentsCache, jc as AnnotationRef, ji as FormFieldOrigin, jn as MetadataCache, jo as FontSpec, jr as PageTextLayout, js as pdfQuadBounds, ka as AttachmentCreateResult, kc as PdfBits, ki as FormFieldFlags, kn as HighlightAnnotationDTO, ko as FontHandle, kr as SearchSliceBudget, ks as PdfQuadCorners, kt as LineAnnotationDTO, l as AnnotationPatch, la as PdfDestination, lc as expandedCapabilities, li as CheckboxFieldDraft, ll as PdfRotation, lo as WireResourceMap, lr as SearchRegexIssue, ls as PageRenderViewport, lt as FreeTextDraft, m as WireAnnotationPatch, ma as BuildCommentThreadsOptions, mc as parseScope, mi as RadioFieldDraft, ml as PdfActionNode, mo as PDF_SUBTYPE_TO_CODE, mr as foldOptionsFor, ms as RotatedGeometryGlyph, mt as InkAnnotationDTO, n as AnnotationListSnapshotAllPages, na as shiftsExistingAnnotationIndices, nc as pdfPermissions, ni as FormFieldValue, nl as CalloutLine, nn as CircleAnnotationDTO, no as BinaryMetadata, nr as searchSegmentsForRange, ns as PageRaster, nt as CaretAnnotationDTO, o as AnnotationDraft, oa as MutationMeta, oc as checkCollab, oi as ListBoxFieldPatch, ol as PdfPoint, on as ShapePatchFields, oo as BinarySource, or as SEARCH_REGEX_MAX_LENGTH, os as PageRenderOptions, p as WireAnnotationDraft, pa as LayerScopes, pc as PermissionDenied, pi as ListBoxFieldDraft, pl as NamedJavaScriptAction, po as PDF_CODE_TO_SUBTYPE, pr as validateSearchRegex, ps as PageGeometrySnapshot, pt as InkPatch, qa as AttachmentFileBase, qc as NO_ANNOTATION_FLAGS, qi as AnnotationUpdateResult, qn as PageRotateResult, qo as WeakAnnotationState, qr as FormRepairResult, qs as OpenInputLayerBytes, ra as AnnotationListMutationMeta, rc as CollabTarget, ri as CheckboxFieldPatch, rl as InkList, rn as CircleDraft, ro as BinaryMimeType, rr as SEARCH_SNIPPET_CONTEXT, rs as PageRenderBackground, rt as CaretDraft, sa as PdfLinkTarget, sc as checkSetGroup, si as RadioFieldPatch, sl as PdfQuad, so as ResourceRef, sr as SearchQueryIssue, ss as PageRenderQuery, st as FreeTextPatch, t as AnnotationListPageSnapshot, ta as invalidatesWeakIndexRefs, tc as materializePdfPermissions, ti as FormDataFormat, tl as TextAlignment, tn as CirclePatch, to as normalizeAnnotationPatch, tr as searchRectsForRange, ts as PageNetworkRenderFormat, tt as CaretPatch, ua as DocumentManifest, uc as filterMatches, ui as ComboBoxFieldDraft, ul as PdfSize, un as StrikeoutPatch, uo as resolveBinarySource, ur as SearchRegexValidation, us as createPageImageHandle, v as UnsupportedPatch, va as buildCommentThreads, vc as AnnotationActor, vi as FormSnapshot, vl as PdfAnnotationActions, vn as SquigglyDraft, vo as AnnotationBase, vr as FoldOptions, vs as glyphLooseQuad, w as WidgetPatch, wa as refKey, wc as ParsedCapability, wi as CheckboxFieldDTO, wn as UnderlineDraft, wo as EngineErrorOptions, wr as SearchMatch, ws as charBoundaryAtTextOffset, wt as LinkDraft, x as RedactPatch, xa as AnnotationThread, xc as CollabFilter, xi as WidgetStyleDraftFields, xl as DocumentMetadata, xo as decodeStableIdKey, xr as SearchMatchRange, xs as CharBoundaryBias, y as UnsupportedDraft, ya as isStateAnnotation, yc as CollabAction, yi as WidgetAppearance, yl as PdfFieldActions, yo as AnnotationIdentityQuality, yr as FoldedText, ys as isRotatedGeometryRun, z as StampWirePatch, za as ColorStylePatchFields, zc as BlendMode, zi as FormValueEntry, zn as PageFlattenResult, zo as AnnotationAppearanceManifestEntry, zr as textGlyphAt, zs as PageListSnapshot } from "./AnnotationListSnapshot-DDxHpJQU.js";
2
- export { ANNOTATION_SUBTYPES, type ActionReadBudget, type AnnotationActor, type AnnotationAppearanceImage, type AnnotationAppearanceImageOptions, type AnnotationAppearanceImagesResult, type AnnotationAppearanceManifest, type AnnotationAppearanceManifestEntry, type AnnotationAppearanceMode, type AnnotationAppearanceRaster, type AnnotationAppearanceRenderOptions, type AnnotationAppearancesQuery, type AnnotationAppearancesResult, type AnnotationBase, type AnnotationBorderStyle, type AnnotationCreateResult, type AnnotationDTO, type AnnotationDeleteResult, type AnnotationDraft, type AnnotationDraftBase, type AnnotationFlags, type AnnotationIdentityQuality, type AnnotationKind, type AnnotationKindModule, type AnnotationListMutationMeta, type AnnotationListPageSnapshot, type AnnotationListSnapshotAllPages, type AnnotationMoveResult, type AnnotationMutationKind, type AnnotationPatch, type AnnotationPatchBase, type AnnotationRef, type AnnotationRelationKind, type AnnotationReplyType, type AnnotationStableId, type AnnotationSubtype, type AnnotationSubtypeOfKind, type AnnotationThread, type AnnotationUpdateResult, type AppearanceAction, type AppearanceImpact, type AppearanceOutcome, type AttachmentContent, type AttachmentCreateResult, type AttachmentDeleteResult, type AttachmentFileBase, type AttachmentFileInfo, type AttachmentFileSource, type AttachmentsCache, type BinaryMetadata, type BinaryMimeType, type BinaryPayload, type BinarySource, type BlendMode, type BuildCommentThreadsOptions, type CacheDelta, type CachePins, type CalloutLine, type CaretAnnotationDTO, type CaretDraft, type CaretIntent, type CaretPatch, type CharBoundaryBias, type CharMapAnchor, type CheckboxFieldDTO, type CheckboxFieldDraft, type CheckboxFieldPatch, type CircleAnnotationDTO, type CircleDraft, type CirclePatch, type CollabAction, type CollabEntity, type CollabFilter, type CollabTarget, type Color, type ColorStyleDraftFields, type ColorStyleFields, type ColorStylePatchFields, type ComboBoxFieldDTO, type ComboBoxFieldDraft, type ComboBoxFieldPatch, type CommentThread, type CommentThreadReview, DEFAULT_PDF_SAVE_MODE, type DTOOfKind, type DocCapability, type DocumentActionsSnapshot, type DocumentManifest, type DocumentMetadata, type DocumentMetadataTrapped, type DraftOfKind, type EmbeddedFileItem, type EmbeddedFileRef, EngineError, EngineErrorCode, type EngineErrorOptions, type FileAttachmentAnnotationDTO, type FileAttachmentDraft, type FileAttachmentIcon, type FileAttachmentPatch, type FileAttachmentWireDraft, type FilledStyleDraftFields, type FilledStyleFields, type FilledStylePatchFields, type FoldOptions, type FoldedText, type FontHandle, type FontKey, type FontSpec, type FormDataExport, type FormDataFormat, type FormEffect, type FormEffectResult, type FormEffectStatus, type FormEffectsResult, type FormFieldBase, type FormFieldCreateResult, type FormFieldDTO, type FormFieldDeleteResult, type FormFieldDisplay, type FormFieldDraft, type FormFieldFamily, type FormFieldFlags, type FormFieldOption, type FormFieldOptionInput, type FormFieldOrigin, type FormFieldPatch, type FormFieldRef, type FormFieldUpdateResult, type FormFieldValue, type FormImportResult, type FormKind, type FormRepairResult, type FormSetValueResult, type FormSnapshot, type FormValueEntry, type FormWidgetLinkResult, type FormWidgetRef, type FreeTextAnnotationDTO, type FreeTextDraft, type FreeTextFont, type FreeTextIntent, type FreeTextPatch, type GeometryStyleDraftFields, type GeometryStyleFields, type GeometryStylePatchFields, type HighlightAnnotationDTO, type HighlightDraft, type HighlightPatch, type IdentityClaims, type InkAnnotationDTO, type InkDraft, type InkIntent, type InkList, type InkPatch, type InkStroke, InvalidScope, type LayerScopePlane, type LayerScopes, type LineAnnotationDTO, type LineDraft, type LineEnding, type LineEndings, type LinePatch, type LinePoints, type LinkAnnotationDTO, type LinkDraft, type LinkPatch, type ListBoxFieldDTO, type ListBoxFieldDraft, type ListBoxFieldPatch, type ManifestPage, type MetadataCache, type MetadataPatch, type MetadataUpdateResult, MissingIdentity, type MutationMeta, NO_ANNOTATION_FLAGS, type NamedJavaScriptAction, type NormalizedDraft, type NormalizedPatch, type NoteIcon, type OpenInput, type OpenInputById, type OpenInputBytes, type OpenInputLayerBytes, type OpenInputLayerSource, type OpenInputShare, type OpenInputToken, type OpenOptions, PAGE_INSERT_BLANK_MAX_COUNT, PDF_BITS, PDF_CODE_TO_SUBTYPE, PDF_SUBTYPE_TO_CODE, type PageBoxes, type PageDeleteInput, type PageDeleteResult, type PageFlattenInput, type PageFlattenItemResult, type PageFlattenResult, type PageFlattenStatus, type PageFlattenUsage, type PageGeometryGlyph, type PageGeometryRun, type PageGeometrySnapshot, type PageImageBlobSource, type PageImageHandle, type PageImageObjectUrl, type PageImageOptions, type PageImageResult, type PageImageSource, type PageInsertBlankSpec, type PageInsertResult, type PageLayout, type PageListSnapshot, type PageMoveCache, type PageMoveInput, type PageMoveResult, type PageNetworkRenderFormat, type PageObjectNumber, type PageRaster, type PageRenderBackground, type PageRenderEncodedFormat, type PageRenderFormat, type PageRenderOptions, type PageRenderQuery, type PageRenderTarget, type PageRenderViewport, type PageRotateInput, type PageRotateResult, type PageRotation, type PageState, type PageStructureCache, type PageTextLayout, type PageTextSnapshot, type ParsedCapability, type ParsedCollab, type ParsedScope, type ParsedVirtual, type ParsedWildcard, type PatchOfKind, type PdfActionNode, type PdfActionTree, type PdfActionType, type PdfActionWarning, type PdfAnnotationActions, PdfAnnotationSubtypeCode, type PdfBits, type PdfDestination, type PdfFieldActions, type PdfLinkTarget, type PdfLinkTargetWritable, type PdfOriginSize, type PdfPageActions, type PdfPoint, type PdfQuad, type PdfQuadCorners, type PdfRect, type PdfRectDifferences, type PdfRotation, type PdfSaveMode, type PdfSize, type PdfTextSegment, PermissionDenied, type Point, type PolygonAnnotationDTO, type PolygonDraft, type PolygonPatch, type PolylineAnnotationDTO, type PolylineDraft, type PolylinePatch, type PushButtonFieldDTO, type RadioFieldDTO, type RadioFieldDraft, type RadioFieldPatch, type Rect, type RedactAnnotationDTO, type RedactDraft, type RedactPatch, type RedactionApplyItemResult, type RedactionApplyResult, type RedactionApplyScope, type RedactionApplyStatus, type RefetchReason, type ResourceRef, type ReviewStatus, type RevisionToken, type RotatedGeometryGlyph, type RotatedGeometryRun, type Rotation, SEARCH_FOLD_VERSION, SEARCH_REGEX_MAX_LENGTH, SEARCH_SNIPPET_CONTEXT, type SearchMatch, type SearchMatchRange, type SearchMode, type SearchQuery, type SearchQueryIssue, type SearchQueryValidation, type SearchRegexIssue, type SearchRegexValidation, type SearchRequest, type SearchSlice, type SearchSliceBudget, type SearchSnippet, type SerializedEngineError, type ShapeAnnotationFields, type ShapeDraftFields, type ShapePatchFields, type SignatureFieldDTO, type Size, type SquareAnnotationDTO, type SquareDraft, type SquarePatch, type SquigglyAnnotationDTO, type SquigglyDraft, type SquigglyPatch, type StampAnnotationDTO, type StampDraft, type StampFit, type StampPatch, type StampWireDraft, type StampWirePatch, type StandardFont, type StrikeoutAnnotationDTO, type StrikeoutDraft, type StrikeoutIntent, type StrikeoutPatch, type TextAlignment, type TextAnnotationDTO, type TextDraft, type TextFieldDTO, type TextFieldDraft, type TextFieldPatch, type TextLayoutFrame, type TextLayoutGlyph, type TextLayoutRun, type TextPatch, type ToggleFieldWidget, type TokenSource, UNKNOWN_WEAK_ANNOTATION_STATE, type UnderlineAnnotationDTO, type UnderlineDraft, type UnderlinePatch, type UnknownFieldDTO, type UnsupportedAnnotationDTO, type UnsupportedDraft, type UnsupportedPatch, type UprightGeometryRun, type VertexAnnotationFields, type VertexDraftFields, type VertexPatchFields, type WeakAnnotationState, type WidgetAnnotationDTO, type WidgetAppearance, type WidgetDraft, type WidgetPatch, type WidgetPlacement, type WidgetStyleDraftFields, type WidgetStyleFields, type WidgetStylePatchFields, type WireAnnotationDraft, type WireAnnotationPatch, type WireAttachmentFile, type WireResource, type WireResourceMap, appearanceImpactOf, boundaryTextOffset, buildCommentThreads, buildPageTextLayout, buildSnippet, buildThreads, canonicalSearchQuery, caps, changesAnnotationList, charBoundaryAtTextOffset, charMapViolation, charRangeForTextOffsets, checkAnyCapability, checkCapability, checkCollab, checkSetGroup, classifyRelation, collab, createPageImageHandle, decodeFieldRefKey, decodePdfBits, decodeStableIdKey, deserializeError, encodeFieldRefKey, encodeStableIdKey, expandRawScope, expandTextRangeToLine, expandTextRangeToWord, expandedCapabilities, filterMatches, foldOptionsFor, foldText, glyphLooseBounds, glyphLooseQuad, invalidatesWeakIndexRefs, isRotatedGeometryRun, isStateAnnotation, isValidPageObjectNumber, knownWeakAnnotationState, matchLiteral, matchPageText, matchRegex, materializePdfPermissions, normalizeAnnotationDraft, normalizeAnnotationPatch, normalizeAttachmentFileSource, normalizePdfRect, parseScope, pdfPermissions, pdfQuadBounds, pdfQuadCorners, pdfQuadFromCorners, pdfRectFromOriginSize, pdfRectHeight, pdfRectSize, pdfRectToOriginSize, pdfRectWidth, refKey, resolveBinarySource, revisionTokensEqual, searchContentEpoch, searchRectsForRange, searchSegmentsForRange, semanticEqual, serializeError, shiftsExistingAnnotationIndices, sliceTextByChars, sniffBinaryMetadata, subtypeFromCode, textGlyphAt, textGlyphQuad, textSegmentsForRange, toOriginalRange, validateScopeArray, validateSearchQuery, validateSearchRegex, wordAt, wordBefore };
1
+ import { $a as FilledStyleFields, $c as Color, $i as FormFieldRef, $n as PageNameResult, $o as AnnotationAppearanceRaster, $r as FormImportResult, $s as PageLayout, Aa as buildCommentThreads, Ac as PDF_BITS, Ai as FormKind, Al as PdfActionWarning, An as HighlightDraft, Ao as AnnotationBase, Ar as toOriginalRange, As as glyphLooseQuad, At as LineDraft, B as StampAnnotationDTO, Ba as PatchOfKind, Bc as ParsedScope, Bi as FormFieldDTO, Bl as DocumentMetadata, Bn as PageDeleteResult, Bo as EngineErrorCode, Br as TextLayoutFrame, Bs as PdfOriginSize, Bt as PolygonPatch, C as RedactDraft, Ca as ManifestPage, Cc as expandedCapabilities, Ci as ComboBoxFieldDraft, Cl as ActionReadBudget, Cn as UnderlineAnnotationDTO, Co as ANNOTATION_SUBTYPES, Cr as wordAt, Cs as PageGeometryGlyph, Ct as LinkAnnotationDTO, Da as CommentThread, Dc as PermissionDenied, Di as RadioFieldDraft, Dl as PdfActionTargetRef, Do as PdfAnnotationSubtypeCode, Dr as SEARCH_FOLD_VERSION, Ds as RotatedGeometryRun, E as WidgetDraft, Ea as BuildCommentThreadsOptions, Ec as MissingIdentity, Ei as ListBoxFieldDraft, El as PdfActionNode, Eo as PDF_SUBTYPE_TO_CODE, Er as FoldedText, Es as RotatedGeometryGlyph, Fa as classifyRelation, Fc as CollabFilter, Fi as WidgetStyleFields, Fl as SubmitFormPayload, Fn as RedactionApplyScope, Fo as EngineError, Fr as SearchSlice, Fs as boundaryTextOffset, Ft as PolylineAnnotationDTO, Ga as FileAttachmentDraft, Gc as AnnotationRef, Gi as ListBoxFieldDTO, Gn as AnnotationFlattenInput, Go as PdfSaveMode, Gr as expandTextRangeToWord, Gs as pdfQuadFromCorners, Gt as VertexPatchFields, H as StampFit, Ha as AttachmentDeleteResult, Hc as ParsedWildcard, Hi as FormFieldFlags, Hn as PageRotateResult, Ho as FontKey, Hr as TextLayoutRun, Hs as normalizePdfRect, Ht as PolygonDraft, Ia as refKey, Ic as DocCapability, Ii as WidgetStylePatchFields, Il as decodeSubmitFormFlags, In as RedactionApplyStatus, Io as EngineErrorOptions, Ir as SearchSliceBudget, Is as charBoundaryAtTextOffset, It as PolylineDraft, J as TextPatch, Ja as WireAttachmentFile, Jc as AnnotationBorderStyle, Ji as SignatureFieldDTO, Jn as PageFlattenInput, Jo as AnnotationAppearanceImageOptions, Jr as textSegmentsForRange, Js as pdfRectSize, Ka as FileAttachmentIcon, Kc as RevisionToken, Ki as PushButtonFieldDTO, Kn as AnnotationFlattenItemResult, Ko as CachePins, Kr as textGlyphAt, Ks as pdfRectFromOriginSize, La as AnnotationKindModule, Lc as IdentityClaims, Li as CheckboxFieldDTO, Ll as PdfDestination, Ln as PAGE_INSERT_BLANK_MAX_COUNT, Lo as SerializedEngineError, Lr as SearchSnippet, Ls as charMapViolation, M as FileAttachmentPatch, Ma as AnnotationRelationKind, Mc as AnnotationActor, Mi as WidgetAppearance, Ml as PdfFieldActions, Mn as MetadataUpdateResult, Mo as AnnotationStableId, Mr as SearchMode, Ms as PageTextSnapshot, N as FileAttachmentAnnotationDTO, Na as AnnotationThread, Nc as CollabAction, Nl as PdfPageActions, Nn as RedactionApplyItemResult, No as decodeStableIdKey, Nr as SearchQuery, Ns as CharBoundaryBias, Oa as CommentThreadReview, Oc as parseScope, Oi as TextFieldDraft, Ol as PdfActionTree, On as HighlightPatch, Oo as subtypeFromCode, Or as SearchMatchRange, Os as UprightGeometryRun, Ot as LinePatch, Pa as buildThreads, Pc as CollabEntity, Pi as WidgetStyleDraftFields, Pl as SubmitFormFlags, Pn as RedactionApplyResult, Po as encodeStableIdKey, Pr as SearchRequest, Ps as CharMapAnchor, Pt as PolylinePatch, Qa as FilledStyleDraftFields, Qc as CaretIntent, Qi as FormValueEntry, Qn as PageFlattenUsage, Qo as AnnotationAppearanceMode, Qr as FormFieldUpdateResult, Qs as PageBoxes, R as StampPatch, Ra as DTOOfKind, Rc as ParsedCapability, Ri as ComboBoxFieldDTO, Rl as PageObjectNumber, Rn as PageInsertBlankSpec, Ro as deserializeError, Rr as PageTextLayout, Rs as charRangeForTextOffsets, S as RedactAnnotationDTO, Sa as DocumentManifest, Sc as expandRawScope, Si as CheckboxFieldDraft, Sl as PdfSize, Sn as UnderlinePatch, So as resolveBinarySource, Sr as matchLiteral, Ss as createPageImageHandle, St as LinkPatch, T as WidgetAnnotationDTO, Ta as LayerScopes, Tc as InvalidScope, Ti as FormFieldOptionInput, Tl as NamedJavaScriptAction, To as PDF_CODE_TO_SUBTYPE, Tr as FoldOptions, Ts as PageGeometrySnapshot, U as StampWireDraft, Ua as AttachmentsCache, Uc as PdfBits, Ui as FormFieldOption, Un as PageRotateInput, Uo as FontSpec, Ur as buildPageTextLayout, Us as pdfQuadBounds, Ut as VertexAnnotationFields, V as StampDraft, Va as AttachmentCreateResult, Vc as ParsedVirtual, Vi as FormFieldFamily, Vl as DocumentMetadataTrapped, Vn as PageDeleteInput, Vo as FontHandle, Vr as TextLayoutGlyph, Vs as PdfQuadCorners, Vt as PolygonAnnotationDTO, Wa as normalizeAttachmentFileSource, Wc as AnnotationDraftBase, Wi as FormFieldOrigin, Wn as AnnotationAppearanceExportInput, Wo as DEFAULT_PDF_SAVE_MODE, Wr as expandTextRangeToLine, Ws as pdfQuadCorners, Wt as VertexDraftFields, X as NoteIcon, Xa as ColorStyleFields, Xc as AnnotationReplyType, Xi as ToggleFieldWidget, Xn as PageFlattenResult, Xo as AnnotationAppearanceManifest, Xr as FormFieldCreateResult, Xs as pdfRectWidth, Xt as SquareAnnotationDTO, Y as TextAnnotationDTO, Ya as ColorStyleDraftFields, Yc as AnnotationFlags, Yi as TextFieldDTO, Yn as PageFlattenItemResult, Yo as AnnotationAppearanceImagesResult, Yr as FormDataExport, Ys as pdfRectToOriginSize, Yt as SquarePatch, Z as TextDraft, Za as ColorStylePatchFields, Zc as BlendMode, Zi as UnknownFieldDTO, Zn as PageFlattenStatus, Zo as AnnotationAppearanceManifestEntry, Zr as FormFieldDeleteResult, Zs as PageListSnapshot, Zt as SquareDraft, _a as RefetchReason, _c as CollabTarget, _i as ComboBoxFieldPatch, _l as LinePoints, _n as SquigglyAnnotationDTO, _o as BinaryPayload, _r as SearchRegexValidation, _s as PageRenderFormat, aa as AnnotationMoveResult, ac as OpenInputById, ai as FormEffectStatus, al as NO_ANNOTATION_FLAGS, an as ShapeDraftFields, ao as AttachmentFileBase, ar as PageMoveInput, as as WeakAnnotationState, b as UnsupportedAnnotationDTO, ba as PdfLinkTarget, bc as checkCollab, bi as RadioFieldPatch, bl as PdfRect, bo as WireResource, br as validateSearchRegex, bs as PageRenderTarget, c as AnnotationKind, ca as AppearanceImpact, cc as OpenInputLayerSource, ci as FormSubmissionEntry, cl as Rect, co as EmbeddedFileItem, cr as searchRectsForRange, cs as PageImageHandle, ct as FreeTextAnnotationDTO, d as AnnotationSubtypeOfKind, da as semanticEqual, dc as OpenOptions, dl as StandardFont, dn as StrikeoutAnnotationDTO, do as NormalizedPatch, dr as buildSnippet, ds as PageImageResult, ea as FormWidgetRef, ec as PageRotation, ei as FormRepairResult, el as FreeTextFont, eo as FilledStylePatchFields, er as PageNameInput, es as AnnotationAppearanceRenderOptions, fa as AnnotationMutationKind, fc as TokenSource, fi as FormSubmissionRequest, fl as StrikeoutIntent, fn as StrikeoutDraft, fo as normalizeAnnotationDraft, fr as matchPageText, fs as PageImageSource, ga as AnnotationListMutationMeta, gc as pdfPermissions, gi as CheckboxFieldPatch, gl as InkStroke, gn as SquigglyPatch, go as sniffBinaryMetadata, gr as SearchRegexIssue, gs as PageRenderEncodedFormat, ha as shiftsExistingAnnotationIndices, hc as materializePdfPermissions, hi as FormFieldValue, hl as InkList, ho as BinaryMimeType, hr as SearchQueryValidation, hs as PageRenderBackground, ht as InkDraft, i as AnnotationDTO, ia as AnnotationDeleteResult, ic as OpenInput, ii as FormEffectResult, il as LineEndings, in as ShapeAnnotationFields, io as AttachmentContent, ir as PageStructureCache, is as UNKNOWN_WEAK_ANNOTATION_STATE, ja as isStateAnnotation, jc as decodePdfBits, ji as FormSnapshot, jl as PdfAnnotationActions, jn as MetadataCache, jo as AnnotationIdentityQuality, jr as SearchMatch, js as isRotatedGeometryRun, ka as ReviewStatus, kc as validateScopeArray, ki as WidgetPlacement, kl as PdfActionType, kn as HighlightAnnotationDTO, ko as AnnotationPatchBase, kr as foldText, ks as glyphLooseBounds, kt as LineAnnotationDTO, l as AnnotationPatch, la as AppearanceOutcome, lc as OpenInputShare, ll as Rotation, lo as EmbeddedFileRef, lr as searchSegmentsForRange, ls as PageImageObjectUrl, lt as FreeTextDraft, m as WireAnnotationPatch, ma as invalidatesWeakIndexRefs, mc as collab, mi as FormDataFormat, ml as CalloutLine, mo as BinaryMetadata, mr as SearchQueryIssue, ms as PageRaster, mt as InkAnnotationDTO, n as AnnotationListSnapshotAllPages, na as encodeFieldRefKey, nc as NamedPageTarget, ni as FormWidgetLinkResult, nl as InkIntent, nn as CircleAnnotationDTO, no as GeometryStyleFields, nr as PageMoveCache, ns as AnnotationAppearancesResult, nt as CaretAnnotationDTO, o as AnnotationDraft, oa as AnnotationUpdateResult, oc as OpenInputBytes, oi as FormEffectsResult, ol as PdfRectDifferences, on as ShapePatchFields, oo as AttachmentFileInfo, or as canonicalSearchQuery, os as knownWeakAnnotationState, p as WireAnnotationDraft, pa as changesAnnotationList, pc as caps, pl as TextAlignment, po as normalizeAnnotationPatch, pr as SEARCH_REGEX_MAX_LENGTH, ps as PageNetworkRenderFormat, pt as InkPatch, qa as FileAttachmentWireDraft, qc as revisionTokensEqual, qi as RadioFieldDTO, qn as AnnotationFlattenResult, qo as AnnotationAppearanceImage, qr as textGlyphQuad, qs as pdfRectHeight, ra as AnnotationCreateResult, rc as MetadataPatch, ri as FormEffect, rl as LineEnding, rn as CircleDraft, ro as GeometryStylePatchFields, rr as PageMoveResult, rs as PageState, rt as CaretDraft, sa as AppearanceAction, sc as OpenInputLayerBytes, si as FormFieldDisplay, sl as Point, so as AttachmentFileSource, sr as searchContentEpoch, ss as PageImageBlobSource, st as FreeTextPatch, t as AnnotationListPageSnapshot, ta as decodeFieldRefKey, tc as NamedPageEntry, ti as FormSetValueResult, tl as FreeTextIntent, tn as CirclePatch, to as GeometryStyleDraftFields, tr as PageRemoveNameInput, ts as AnnotationAppearancesQuery, tt as CaretPatch, ua as appearanceImpactOf, uc as OpenInputToken, ui as FormSubmissionReceipt, ul as Size, un as StrikeoutPatch, uo as NormalizedDraft, ur as SEARCH_SNIPPET_CONTEXT, us as PageImageOptions, v as UnsupportedPatch, va as CacheDelta, vc as checkAnyCapability, vi as FormFieldPatch, vl as PdfPoint, vn as SquigglyDraft, vo as BinarySource, vr as matchRegex, vs as PageRenderOptions, w as WidgetPatch, wa as LayerScopePlane, wc as filterMatches, wi as FormFieldDraft, wl as DocumentActionsSnapshot, wn as UnderlineDraft, wo as AnnotationSubtype, wr as wordBefore, ws as PageGeometryRun, wt as LinkDraft, x as RedactPatch, xa as PdfLinkTargetWritable, xc as checkSetGroup, xi as TextFieldPatch, xl as PdfRotation, xo as WireResourceMap, xr as foldOptionsFor, xs as PageRenderViewport, y as UnsupportedDraft, ya as MutationMeta, yc as checkCapability, yi as ListBoxFieldPatch, yl as PdfQuad, yo as ResourceRef, yr as validateSearchQuery, ys as PageRenderQuery, z as StampWirePatch, za as DraftOfKind, zc as ParsedCollab, zi as FormFieldBase, zl as isValidPageObjectNumber, zn as PageInsertResult, zo as serializeError, zr as PdfTextSegment, zs as sliceTextByChars } from "./AnnotationListSnapshot-x6tKulNV.js";
2
+ export { ANNOTATION_SUBTYPES, type ActionReadBudget, type AnnotationActor, type AnnotationAppearanceExportInput, type AnnotationAppearanceImage, type AnnotationAppearanceImageOptions, type AnnotationAppearanceImagesResult, type AnnotationAppearanceManifest, type AnnotationAppearanceManifestEntry, type AnnotationAppearanceMode, type AnnotationAppearanceRaster, type AnnotationAppearanceRenderOptions, type AnnotationAppearancesQuery, type AnnotationAppearancesResult, type AnnotationBase, type AnnotationBorderStyle, type AnnotationCreateResult, type AnnotationDTO, type AnnotationDeleteResult, type AnnotationDraft, type AnnotationDraftBase, type AnnotationFlags, type AnnotationFlattenInput, type AnnotationFlattenItemResult, type AnnotationFlattenResult, type AnnotationIdentityQuality, type AnnotationKind, type AnnotationKindModule, type AnnotationListMutationMeta, type AnnotationListPageSnapshot, type AnnotationListSnapshotAllPages, type AnnotationMoveResult, type AnnotationMutationKind, type AnnotationPatch, type AnnotationPatchBase, type AnnotationRef, type AnnotationRelationKind, type AnnotationReplyType, type AnnotationStableId, type AnnotationSubtype, type AnnotationSubtypeOfKind, type AnnotationThread, type AnnotationUpdateResult, type AppearanceAction, type AppearanceImpact, type AppearanceOutcome, type AttachmentContent, type AttachmentCreateResult, type AttachmentDeleteResult, type AttachmentFileBase, type AttachmentFileInfo, type AttachmentFileSource, type AttachmentsCache, type BinaryMetadata, type BinaryMimeType, type BinaryPayload, type BinarySource, type BlendMode, type BuildCommentThreadsOptions, type CacheDelta, type CachePins, type CalloutLine, type CaretAnnotationDTO, type CaretDraft, type CaretIntent, type CaretPatch, type CharBoundaryBias, type CharMapAnchor, type CheckboxFieldDTO, type CheckboxFieldDraft, type CheckboxFieldPatch, type CircleAnnotationDTO, type CircleDraft, type CirclePatch, type CollabAction, type CollabEntity, type CollabFilter, type CollabTarget, type Color, type ColorStyleDraftFields, type ColorStyleFields, type ColorStylePatchFields, type ComboBoxFieldDTO, type ComboBoxFieldDraft, type ComboBoxFieldPatch, type CommentThread, type CommentThreadReview, DEFAULT_PDF_SAVE_MODE, type DTOOfKind, type DocCapability, type DocumentActionsSnapshot, type DocumentManifest, type DocumentMetadata, type DocumentMetadataTrapped, type DraftOfKind, type EmbeddedFileItem, type EmbeddedFileRef, EngineError, EngineErrorCode, type EngineErrorOptions, type FileAttachmentAnnotationDTO, type FileAttachmentDraft, type FileAttachmentIcon, type FileAttachmentPatch, type FileAttachmentWireDraft, type FilledStyleDraftFields, type FilledStyleFields, type FilledStylePatchFields, type FoldOptions, type FoldedText, type FontHandle, type FontKey, type FontSpec, type FormDataExport, type FormDataFormat, type FormEffect, type FormEffectResult, type FormEffectStatus, type FormEffectsResult, type FormFieldBase, type FormFieldCreateResult, type FormFieldDTO, type FormFieldDeleteResult, type FormFieldDisplay, type FormFieldDraft, type FormFieldFamily, type FormFieldFlags, type FormFieldOption, type FormFieldOptionInput, type FormFieldOrigin, type FormFieldPatch, type FormFieldRef, type FormFieldUpdateResult, type FormFieldValue, type FormImportResult, type FormKind, type FormRepairResult, type FormSetValueResult, type FormSnapshot, type FormSubmissionEntry, type FormSubmissionReceipt, type FormSubmissionRequest, type FormValueEntry, type FormWidgetLinkResult, type FormWidgetRef, type FreeTextAnnotationDTO, type FreeTextDraft, type FreeTextFont, type FreeTextIntent, type FreeTextPatch, type GeometryStyleDraftFields, type GeometryStyleFields, type GeometryStylePatchFields, type HighlightAnnotationDTO, type HighlightDraft, type HighlightPatch, type IdentityClaims, type InkAnnotationDTO, type InkDraft, type InkIntent, type InkList, type InkPatch, type InkStroke, InvalidScope, type LayerScopePlane, type LayerScopes, type LineAnnotationDTO, type LineDraft, type LineEnding, type LineEndings, type LinePatch, type LinePoints, type LinkAnnotationDTO, type LinkDraft, type LinkPatch, type ListBoxFieldDTO, type ListBoxFieldDraft, type ListBoxFieldPatch, type ManifestPage, type MetadataCache, type MetadataPatch, type MetadataUpdateResult, MissingIdentity, type MutationMeta, NO_ANNOTATION_FLAGS, type NamedJavaScriptAction, type NamedPageEntry, type NamedPageTarget, type NormalizedDraft, type NormalizedPatch, type NoteIcon, type OpenInput, type OpenInputById, type OpenInputBytes, type OpenInputLayerBytes, type OpenInputLayerSource, type OpenInputShare, type OpenInputToken, type OpenOptions, PAGE_INSERT_BLANK_MAX_COUNT, PDF_BITS, PDF_CODE_TO_SUBTYPE, PDF_SUBTYPE_TO_CODE, type PageBoxes, type PageDeleteInput, type PageDeleteResult, type PageFlattenInput, type PageFlattenItemResult, type PageFlattenResult, type PageFlattenStatus, type PageFlattenUsage, type PageGeometryGlyph, type PageGeometryRun, type PageGeometrySnapshot, type PageImageBlobSource, type PageImageHandle, type PageImageObjectUrl, type PageImageOptions, type PageImageResult, type PageImageSource, type PageInsertBlankSpec, type PageInsertResult, type PageLayout, type PageListSnapshot, type PageMoveCache, type PageMoveInput, type PageMoveResult, type PageNameInput, type PageNameResult, type PageNetworkRenderFormat, type PageObjectNumber, type PageRaster, type PageRemoveNameInput, type PageRenderBackground, type PageRenderEncodedFormat, type PageRenderFormat, type PageRenderOptions, type PageRenderQuery, type PageRenderTarget, type PageRenderViewport, type PageRotateInput, type PageRotateResult, type PageRotation, type PageState, type PageStructureCache, type PageTextLayout, type PageTextSnapshot, type ParsedCapability, type ParsedCollab, type ParsedScope, type ParsedVirtual, type ParsedWildcard, type PatchOfKind, type PdfActionNode, type PdfActionTargetRef, type PdfActionTree, type PdfActionType, type PdfActionWarning, type PdfAnnotationActions, PdfAnnotationSubtypeCode, type PdfBits, type PdfDestination, type PdfFieldActions, type PdfLinkTarget, type PdfLinkTargetWritable, type PdfOriginSize, type PdfPageActions, type PdfPoint, type PdfQuad, type PdfQuadCorners, type PdfRect, type PdfRectDifferences, type PdfRotation, type PdfSaveMode, type PdfSize, type PdfTextSegment, PermissionDenied, type Point, type PolygonAnnotationDTO, type PolygonDraft, type PolygonPatch, type PolylineAnnotationDTO, type PolylineDraft, type PolylinePatch, type PushButtonFieldDTO, type RadioFieldDTO, type RadioFieldDraft, type RadioFieldPatch, type Rect, type RedactAnnotationDTO, type RedactDraft, type RedactPatch, type RedactionApplyItemResult, type RedactionApplyResult, type RedactionApplyScope, type RedactionApplyStatus, type RefetchReason, type ResourceRef, type ReviewStatus, type RevisionToken, type RotatedGeometryGlyph, type RotatedGeometryRun, type Rotation, SEARCH_FOLD_VERSION, SEARCH_REGEX_MAX_LENGTH, SEARCH_SNIPPET_CONTEXT, type SearchMatch, type SearchMatchRange, type SearchMode, type SearchQuery, type SearchQueryIssue, type SearchQueryValidation, type SearchRegexIssue, type SearchRegexValidation, type SearchRequest, type SearchSlice, type SearchSliceBudget, type SearchSnippet, type SerializedEngineError, type ShapeAnnotationFields, type ShapeDraftFields, type ShapePatchFields, type SignatureFieldDTO, type Size, type SquareAnnotationDTO, type SquareDraft, type SquarePatch, type SquigglyAnnotationDTO, type SquigglyDraft, type SquigglyPatch, type StampAnnotationDTO, type StampDraft, type StampFit, type StampPatch, type StampWireDraft, type StampWirePatch, type StandardFont, type StrikeoutAnnotationDTO, type StrikeoutDraft, type StrikeoutIntent, type StrikeoutPatch, type SubmitFormFlags, type SubmitFormPayload, type TextAlignment, type TextAnnotationDTO, type TextDraft, type TextFieldDTO, type TextFieldDraft, type TextFieldPatch, type TextLayoutFrame, type TextLayoutGlyph, type TextLayoutRun, type TextPatch, type ToggleFieldWidget, type TokenSource, UNKNOWN_WEAK_ANNOTATION_STATE, type UnderlineAnnotationDTO, type UnderlineDraft, type UnderlinePatch, type UnknownFieldDTO, type UnsupportedAnnotationDTO, type UnsupportedDraft, type UnsupportedPatch, type UprightGeometryRun, type VertexAnnotationFields, type VertexDraftFields, type VertexPatchFields, type WeakAnnotationState, type WidgetAnnotationDTO, type WidgetAppearance, type WidgetDraft, type WidgetPatch, type WidgetPlacement, type WidgetStyleDraftFields, type WidgetStyleFields, type WidgetStylePatchFields, type WireAnnotationDraft, type WireAnnotationPatch, type WireAttachmentFile, type WireResource, type WireResourceMap, appearanceImpactOf, boundaryTextOffset, buildCommentThreads, buildPageTextLayout, buildSnippet, buildThreads, canonicalSearchQuery, caps, changesAnnotationList, charBoundaryAtTextOffset, charMapViolation, charRangeForTextOffsets, checkAnyCapability, checkCapability, checkCollab, checkSetGroup, classifyRelation, collab, createPageImageHandle, decodeFieldRefKey, decodePdfBits, decodeStableIdKey, decodeSubmitFormFlags, deserializeError, encodeFieldRefKey, encodeStableIdKey, expandRawScope, expandTextRangeToLine, expandTextRangeToWord, expandedCapabilities, filterMatches, foldOptionsFor, foldText, glyphLooseBounds, glyphLooseQuad, invalidatesWeakIndexRefs, isRotatedGeometryRun, isStateAnnotation, isValidPageObjectNumber, knownWeakAnnotationState, matchLiteral, matchPageText, matchRegex, materializePdfPermissions, normalizeAnnotationDraft, normalizeAnnotationPatch, normalizeAttachmentFileSource, normalizePdfRect, parseScope, pdfPermissions, pdfQuadBounds, pdfQuadCorners, pdfQuadFromCorners, pdfRectFromOriginSize, pdfRectHeight, pdfRectSize, pdfRectToOriginSize, pdfRectWidth, refKey, resolveBinarySource, revisionTokensEqual, searchContentEpoch, searchRectsForRange, searchSegmentsForRange, semanticEqual, serializeError, shiftsExistingAnnotationIndices, sliceTextByChars, sniffBinaryMetadata, subtypeFromCode, textGlyphAt, textGlyphQuad, textSegmentsForRange, toOriginalRange, validateScopeArray, validateSearchQuery, validateSearchRegex, wordAt, wordBefore };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
+ import { $ as createPageImageHandle, A as appearanceImpactOf, B as normalizeAnnotationDraft, C as validateSearchRegex, D as wordBefore, E as wordAt, F as buildCommentThreads, G as NO_ANNOTATION_FLAGS, H as normalizeAttachmentFileSource, I as isStateAnnotation, J as revisionTokensEqual, K as UNKNOWN_WEAK_ANNOTATION_STATE, L as buildThreads, M as changesAnnotationList, N as invalidatesWeakIndexRefs, O as decodeFieldRefKey, P as shiftsExistingAnnotationIndices, Q as DEFAULT_PDF_SAVE_MODE, R as classifyRelation, S as validateSearchQuery, T as matchLiteral, U as sniffBinaryMetadata, V as normalizeAnnotationPatch, W as resolveBinarySource, X as encodeStableIdKey, Y as decodeStableIdKey, Z as isValidPageObjectNumber, _ as SEARCH_SNIPPET_CONTEXT, a as PDF_BITS, b as SEARCH_REGEX_MAX_LENGTH, c as searchContentEpoch, d as buildPageTextLayout, et as decodeSubmitFormFlags, f as expandTextRangeToLine, g as textSegmentsForRange, h as textGlyphQuad, i as pdfPermissions, j as semanticEqual, k as encodeFieldRefKey, l as searchRectsForRange, m as textGlyphAt, n as collab, o as decodePdfBits, p as expandTextRangeToWord, q as knownWeakAnnotationState, r as materializePdfPermissions, s as canonicalSearchQuery, t as caps, u as searchSegmentsForRange, v as buildSnippet, w as foldOptionsFor, x as matchRegex, y as matchPageText, z as refKey } from "./builders-DOjcKDWQ.js";
1
2
  import { _ as pdfRectSize, a as deserializeError, c as glyphLooseBounds, d as normalizePdfRect, f as pdfQuadBounds, g as pdfRectHeight, h as pdfRectFromOriginSize, i as EngineError, l as glyphLooseQuad, m as pdfQuadFromCorners, n as foldText, o as serializeError, p as pdfQuadCorners, r as toOriginalRange, t as SEARCH_FOLD_VERSION, u as isRotatedGeometryRun, v as pdfRectToOriginSize, y as pdfRectWidth } from "./fold-BfyxxwS6.js";
2
3
  import { a as charRangeForTextOffsets, c as PDF_CODE_TO_SUBTYPE, d as subtypeFromCode, f as EngineErrorCode, i as charMapViolation, l as PDF_SUBTYPE_TO_CODE, n as boundaryTextOffset, o as sliceTextByChars, r as charBoundaryAtTextOffset, s as ANNOTATION_SUBTYPES, t as PAGE_INSERT_BLANK_MAX_COUNT, u as PdfAnnotationSubtypeCode } from "./PageInsertBlankInput-WKY0tr6S.js";
3
- import { $ as createPageImageHandle, A as appearanceImpactOf, B as normalizeAnnotationDraft, C as validateSearchRegex, D as wordBefore, E as wordAt, F as buildCommentThreads, G as NO_ANNOTATION_FLAGS, H as normalizeAttachmentFileSource, I as isStateAnnotation, J as revisionTokensEqual, K as UNKNOWN_WEAK_ANNOTATION_STATE, L as buildThreads, M as changesAnnotationList, N as invalidatesWeakIndexRefs, O as decodeFieldRefKey, P as shiftsExistingAnnotationIndices, Q as DEFAULT_PDF_SAVE_MODE, R as classifyRelation, S as validateSearchQuery, T as matchLiteral, U as sniffBinaryMetadata, V as normalizeAnnotationPatch, W as resolveBinarySource, X as encodeStableIdKey, Y as decodeStableIdKey, Z as isValidPageObjectNumber, _ as SEARCH_SNIPPET_CONTEXT, a as PDF_BITS, b as SEARCH_REGEX_MAX_LENGTH, c as searchContentEpoch, d as buildPageTextLayout, f as expandTextRangeToLine, g as textSegmentsForRange, h as textGlyphQuad, i as pdfPermissions, j as semanticEqual, k as encodeFieldRefKey, l as searchRectsForRange, m as textGlyphAt, n as collab, o as decodePdfBits, p as expandTextRangeToWord, q as knownWeakAnnotationState, r as materializePdfPermissions, s as canonicalSearchQuery, t as caps, u as searchSegmentsForRange, v as buildSnippet, w as foldOptionsFor, x as matchRegex, y as matchPageText, z as refKey } from "./builders-B_KufGJ9.js";
4
- import { a as expandRawScope, c as parseScope, d as MissingIdentity, f as PermissionDenied, i as checkSetGroup, l as validateScopeArray, n as checkCapability, o as expandedCapabilities, r as checkCollab, s as filterMatches, t as checkAnyCapability, u as InvalidScope } from "./resolver-DiPMTfcy.js";
5
- export { ANNOTATION_SUBTYPES, DEFAULT_PDF_SAVE_MODE, EngineError, EngineErrorCode, InvalidScope, MissingIdentity, NO_ANNOTATION_FLAGS, PAGE_INSERT_BLANK_MAX_COUNT, PDF_BITS, PDF_CODE_TO_SUBTYPE, PDF_SUBTYPE_TO_CODE, PdfAnnotationSubtypeCode, PermissionDenied, SEARCH_FOLD_VERSION, SEARCH_REGEX_MAX_LENGTH, SEARCH_SNIPPET_CONTEXT, UNKNOWN_WEAK_ANNOTATION_STATE, appearanceImpactOf, boundaryTextOffset, buildCommentThreads, buildPageTextLayout, buildSnippet, buildThreads, canonicalSearchQuery, caps, changesAnnotationList, charBoundaryAtTextOffset, charMapViolation, charRangeForTextOffsets, checkAnyCapability, checkCapability, checkCollab, checkSetGroup, classifyRelation, collab, createPageImageHandle, decodeFieldRefKey, decodePdfBits, decodeStableIdKey, deserializeError, encodeFieldRefKey, encodeStableIdKey, expandRawScope, expandTextRangeToLine, expandTextRangeToWord, expandedCapabilities, filterMatches, foldOptionsFor, foldText, glyphLooseBounds, glyphLooseQuad, invalidatesWeakIndexRefs, isRotatedGeometryRun, isStateAnnotation, isValidPageObjectNumber, knownWeakAnnotationState, matchLiteral, matchPageText, matchRegex, materializePdfPermissions, normalizeAnnotationDraft, normalizeAnnotationPatch, normalizeAttachmentFileSource, normalizePdfRect, parseScope, pdfPermissions, pdfQuadBounds, pdfQuadCorners, pdfQuadFromCorners, pdfRectFromOriginSize, pdfRectHeight, pdfRectSize, pdfRectToOriginSize, pdfRectWidth, refKey, resolveBinarySource, revisionTokensEqual, searchContentEpoch, searchRectsForRange, searchSegmentsForRange, semanticEqual, serializeError, shiftsExistingAnnotationIndices, sliceTextByChars, sniffBinaryMetadata, subtypeFromCode, textGlyphAt, textGlyphQuad, textSegmentsForRange, toOriginalRange, validateScopeArray, validateSearchQuery, validateSearchRegex, wordAt, wordBefore };
4
+ import { a as expandRawScope, c as parseScope, d as MissingIdentity, f as PermissionDenied, i as checkSetGroup, l as validateScopeArray, n as checkCapability, o as expandedCapabilities, r as checkCollab, s as filterMatches, t as checkAnyCapability, u as InvalidScope } from "./resolver-CHG4waXL.js";
5
+ export { ANNOTATION_SUBTYPES, DEFAULT_PDF_SAVE_MODE, EngineError, EngineErrorCode, InvalidScope, MissingIdentity, NO_ANNOTATION_FLAGS, PAGE_INSERT_BLANK_MAX_COUNT, PDF_BITS, PDF_CODE_TO_SUBTYPE, PDF_SUBTYPE_TO_CODE, PdfAnnotationSubtypeCode, PermissionDenied, SEARCH_FOLD_VERSION, SEARCH_REGEX_MAX_LENGTH, SEARCH_SNIPPET_CONTEXT, UNKNOWN_WEAK_ANNOTATION_STATE, appearanceImpactOf, boundaryTextOffset, buildCommentThreads, buildPageTextLayout, buildSnippet, buildThreads, canonicalSearchQuery, caps, changesAnnotationList, charBoundaryAtTextOffset, charMapViolation, charRangeForTextOffsets, checkAnyCapability, checkCapability, checkCollab, checkSetGroup, classifyRelation, collab, createPageImageHandle, decodeFieldRefKey, decodePdfBits, decodeStableIdKey, decodeSubmitFormFlags, deserializeError, encodeFieldRefKey, encodeStableIdKey, expandRawScope, expandTextRangeToLine, expandTextRangeToWord, expandedCapabilities, filterMatches, foldOptionsFor, foldText, glyphLooseBounds, glyphLooseQuad, invalidatesWeakIndexRefs, isRotatedGeometryRun, isStateAnnotation, isValidPageObjectNumber, knownWeakAnnotationState, matchLiteral, matchPageText, matchRegex, materializePdfPermissions, normalizeAnnotationDraft, normalizeAnnotationPatch, normalizeAttachmentFileSource, normalizePdfRect, parseScope, pdfPermissions, pdfQuadBounds, pdfQuadCorners, pdfQuadFromCorners, pdfRectFromOriginSize, pdfRectHeight, pdfRectSize, pdfRectToOriginSize, pdfRectWidth, refKey, resolveBinarySource, revisionTokensEqual, searchContentEpoch, searchRectsForRange, searchSegmentsForRange, semanticEqual, serializeError, shiftsExistingAnnotationIndices, sliceTextByChars, sniffBinaryMetadata, subtypeFromCode, textGlyphAt, textGlyphQuad, textSegmentsForRange, toOriginalRange, validateScopeArray, validateSearchQuery, validateSearchRegex, wordAt, wordBefore };
@@ -71,6 +71,7 @@ const KNOWN_CAPABILITIES = /* @__PURE__ */ new Set([
71
71
  "doc.forms.read",
72
72
  "doc.forms.fill",
73
73
  "doc.forms.modify",
74
+ "doc.forms.submit",
74
75
  "doc.annotate.read",
75
76
  "doc.annotate.modify",
76
77
  "doc.metadata.modify",
@@ -360,4 +361,4 @@ function addPdfPermissions(out, b) {
360
361
  //#endregion
361
362
  export { expandRawScope as a, parseScope as c, MissingIdentity as d, PermissionDenied as f, checkSetGroup as i, validateScopeArray as l, checkCapability as n, expandedCapabilities as o, checkCollab as r, filterMatches as s, checkAnyCapability as t, InvalidScope as u };
362
363
 
363
- //# sourceMappingURL=resolver-DiPMTfcy.js.map
364
+ //# sourceMappingURL=resolver-CHG4waXL.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolver-CHG4waXL.js","names":[],"sources":["../src/auth/scope/errors.ts","../src/auth/scope/parser.ts","../src/auth/scope/resolver.ts"],"sourcesContent":["/**\n * Thrown by {@link parseScope} / {@link validateScopeArray} when a scope\n * string does not match any known grammar (capability, collab, virtual,\n * or wildcard).\n *\n * Carries the offending scope verbatim so route/JWT-layer error\n * handlers can echo it to the customer.\n */\nexport class InvalidScope extends Error {\n constructor(\n public readonly scope: string,\n reason: string,\n ) {\n super(`invalid scope \"${scope}\": ${reason}`);\n this.name = 'InvalidScope';\n }\n}\n\n/**\n * Thrown by route guards and engine-local enforcement when a capability\n * or collab action is denied for the current request/handle.\n *\n * `required` names what the caller needed (e.g., \"doc.render\" or\n * \"annotations:update\"). `context` is an optional label such as \"local\"\n * or \"/v1/docs/.../pages/2/render\".\n */\nexport class PermissionDenied extends Error {\n constructor(\n public readonly required: string,\n public readonly context?: string,\n ) {\n super(`permission denied${context ? ` (${context})` : ''}: ${required}`);\n this.name = 'PermissionDenied';\n }\n}\n\n/**\n * Thrown at engine-local open time when the supplied scope includes\n * collab filters (`:self`, `:group=...`) but the identity claims needed\n * to resolve them are missing. Fails loudly at open so the configuration\n * mistake is visible immediately instead of producing silent denies at\n * every annotation mutation.\n */\nexport class MissingIdentity extends Error {\n constructor(scope: string) {\n super(`scope \"${scope}\" requires identity claims (user_id and/or groups)`);\n this.name = 'MissingIdentity';\n }\n}\n","import { InvalidScope } from './errors';\nimport type { CollabAction, CollabFilter, DocCapability, ParsedScope } from './types';\n\n/**\n * Closed set of recognized capability strings. Membership is the\n * authoritative source of truth — adding a new capability requires\n * extending the `DocCapability` union AND adding it here. The parser\n * rejects anything outside this set.\n *\n * Removed legacy names (e.g., `doc.read`, `doc.edit-pages`, `doc.save`)\n * are deliberately absent so any JWT carrying them fails at verify\n * time with a clear error.\n */\nconst KNOWN_CAPABILITIES: ReadonlySet<DocCapability> = new Set([\n 'doc.open',\n 'doc.render',\n 'doc.text.select',\n 'doc.text.copy',\n 'doc.text.search',\n 'doc.content.copy',\n 'doc.download',\n 'doc.download.flattened',\n 'doc.print',\n 'doc.print.high',\n 'doc.pages.modify',\n 'doc.pages.assemble',\n 'doc.forms.read',\n 'doc.forms.fill',\n 'doc.forms.modify',\n 'doc.forms.submit',\n 'doc.annotate.read',\n 'doc.annotate.modify',\n 'doc.metadata.modify',\n 'doc.attachments.modify',\n 'doc.redact',\n]);\n\n/**\n * Parse a single scope string into a structured `ParsedScope`.\n *\n * Recognised shapes:\n * - `\"*\"` → wildcard\n * - `\"pdf.permissions\"` → virtual (expands at resolve time)\n * - `\"a.b.c...\"` (dotted) → capability\n * - `\"entity:action:filter\"` (colons) → collab\n *\n * Throws {@link InvalidScope} for any string that fails to match one of\n * those shapes, or whose capability/entity/action/filter is not in the\n * closed enum.\n */\nexport function parseScope(raw: string): ParsedScope {\n if (raw === '*') return { kind: 'wildcard' };\n if (raw === 'pdf.permissions') return { kind: 'virtual', name: 'pdf.permissions' };\n if (raw.includes(':')) return parseCollab(raw);\n return parseCapability(raw);\n}\n\n/**\n * Validate every entry in a scope array by attempting to parse it.\n * Throws on the first invalid string. Discards the parse output —\n * callers re-parse at resolution time to keep the array as the\n * authoritative payload.\n */\nexport function validateScopeArray(raw: ReadonlyArray<string>): void {\n for (const s of raw) parseScope(s);\n}\n\nfunction parseCollab(raw: string): ParsedScope {\n // Split on the FIRST two colons only. Filter values may contain\n // colons (UUIDs with `urn:uuid:...`, subject ids like `auth0|user:1`).\n const idx1 = raw.indexOf(':');\n const idx2 = raw.indexOf(':', idx1 + 1);\n if (idx1 === -1 || idx2 === -1) {\n throw new InvalidScope(raw, 'collab scope requires entity:action:filter');\n }\n const entity = raw.slice(0, idx1);\n const action = raw.slice(idx1 + 1, idx2);\n const filterStr = raw.slice(idx2 + 1);\n\n if (entity !== 'annotations') {\n throw new InvalidScope(raw, `unknown collab entity: ${entity}`);\n }\n if (\n action !== 'create' &&\n action !== 'update' &&\n action !== 'delete' &&\n action !== 'set-group' &&\n action !== '*'\n ) {\n throw new InvalidScope(raw, `unknown collab action: ${action}`);\n }\n const filter = parseFilter(filterStr, raw);\n\n // `set-group` is a group-assignment authority, not a per-record collab\n // filter. The only meaningful filter values are `all` (assign to any\n // group) and `group=X` (assign to group X). `:self` and `:createdBy=Y`\n // can't be sensibly applied to \"what group is this annotation in\", so\n // we reject them at parse time rather than silently always-denying.\n if (action === 'set-group' && (filter.kind === 'self' || filter.kind === 'createdBy')) {\n throw new InvalidScope(\n raw,\n `set-group only supports :all or :group=<id> filters (got :${filter.kind})`,\n );\n }\n\n return {\n kind: 'collab',\n entity,\n action: action as CollabAction | '*',\n filter,\n };\n}\n\nfunction parseFilter(s: string, raw: string): CollabFilter {\n if (s === 'all') return { kind: 'all' };\n if (s === 'self') return { kind: 'self' };\n if (s.startsWith('createdBy=')) {\n const v = s.slice('createdBy='.length);\n if (!v) throw new InvalidScope(raw, 'createdBy= requires a value');\n return { kind: 'createdBy', userId: v };\n }\n if (s.startsWith('group=')) {\n const v = s.slice('group='.length);\n if (!v) throw new InvalidScope(raw, 'group= requires a value');\n return { kind: 'group', groupId: v };\n }\n throw new InvalidScope(raw, `unknown filter: ${s}`);\n}\n\n// Capability shape: lowercase dotted segments, e.g. \"doc.text.copy\".\n// Validates shape first, then membership in the closed set.\nconst CAPABILITY_SHAPE = /^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$/;\n\nfunction parseCapability(raw: string): ParsedScope {\n if (!CAPABILITY_SHAPE.test(raw)) {\n throw new InvalidScope(raw, 'invalid capability name shape');\n }\n if (!KNOWN_CAPABILITIES.has(raw as DocCapability)) {\n throw new InvalidScope(raw, `unknown capability: ${raw}`);\n }\n return { kind: 'capability', name: raw as DocCapability };\n}\n","import { parseScope } from './parser';\nimport type {\n CollabAction,\n CollabFilter,\n DocCapability,\n IdentityClaims,\n ParsedScope,\n PdfBits,\n} from './types';\n\n/**\n * Resolved collab subject — the per-record identity bits used to test\n * collab filters against. Sourced from the target record's stored\n * `/EMBD_Metadata/UserID` and `/GroupID` at mutation time.\n */\nexport interface CollabTarget {\n userId?: string;\n groupId?: string;\n}\n\n/**\n * True iff the given capability is granted by the scope array plus the\n * PDF bits visible via `pdf.permissions` expansion.\n *\n * Wildcard `*` short-circuits to true. Anything not explicitly granted\n * (or expanded from `pdf.permissions`) is denied.\n */\nexport function checkCapability(\n capability: DocCapability,\n rawScope: ReadonlyArray<string>,\n pdfBits: PdfBits,\n): boolean {\n const parsed = rawScope.map(parseScope);\n if (parsed.some((s) => s.kind === 'wildcard')) return true;\n return expandedCapabilities(parsed, pdfBits).has(capability);\n}\n\n/**\n * True iff the scope grants AT LEAST ONE of `capabilities`. Convenience\n * for routes like `/text` (`doc.text.copy` OR `doc.text.search`) and\n * `/geometry` (`doc.text.select` OR `doc.text.search`).\n */\nexport function checkAnyCapability(\n capabilities: ReadonlyArray<DocCapability>,\n rawScope: ReadonlyArray<string>,\n pdfBits: PdfBits,\n): boolean {\n return capabilities.some((c) => checkCapability(c, rawScope, pdfBits));\n}\n\n/**\n * True iff the scope grants the collab action against the target record.\n *\n * Narrowing model. For each action independently:\n * 1. wildcard `*` → allow (global escape hatch)\n * 2. if any collab scope applies to this action → NARROW: only those\n * collab filters decide. If none match the target, deny — even if\n * `doc.annotate.modify` is also present. This is what makes\n * `[modify, update:self]` correctly mean \"edit own only\" rather\n * than \"edit anyone via modify-bypass.\"\n * 3. otherwise, if `doc.annotate.modify` is present → allow. This is\n * the broad PDF-bit-derived default for create/update/delete when\n * no per-action collab filter has been written.\n * 4. otherwise → deny.\n *\n * For create: `target` should be built by the caller from JWT identity\n * (`{ userId: caller.user_id, groupId: caller.group_id }`). `:self` and\n * `:all` then trivially pass; `:group=X` is the meaningful filter (only\n * matches when the caller's default group is X).\n *\n * For update / delete: `target` is the existing row's owner.\n */\nexport function checkCollab(\n action: CollabAction,\n target: CollabTarget,\n rawScope: ReadonlyArray<string>,\n identity: IdentityClaims,\n pdfBits: PdfBits,\n): boolean {\n const parsed = rawScope.map(parseScope);\n if (parsed.some((s) => s.kind === 'wildcard')) return true;\n\n const applicableCollab = parsed.filter(\n (s): s is Extract<ParsedScope, { kind: 'collab' }> =>\n s.kind === 'collab' &&\n s.entity === 'annotations' &&\n (s.action === action || s.action === '*'),\n );\n\n if (applicableCollab.length > 0) {\n // Narrow: presence of any applicable collab scope shadows\n // `modify`-as-default for this action.\n return applicableCollab.some((s) => filterMatches(s.filter, target, identity));\n }\n\n // No collab scope for this action — fall back to the broad default.\n return expandedCapabilities(parsed, pdfBits).has('doc.annotate.modify');\n}\n\n/**\n * Compute the full set of granted capabilities after expanding\n * `pdf.permissions` and applying implication rules.\n *\n * Implications applied:\n * - `doc.annotate.modify` implies `doc.annotate.read` (you can't\n * sensibly modify what you can't see).\n * - `doc.forms.modify` implies `doc.forms.fill` and `doc.forms.read`.\n * - `doc.forms.fill` implies `doc.forms.read`.\n * - any annotation collab scope implies `doc.annotate.read`, because\n * mutation routes need to see the target row to evaluate the\n * collab filter against its current owner.\n *\n * Does NOT short-circuit on wildcard — callers do that themselves\n * before calling this. Returning the expanded set is useful for the\n * `/access` response's `effectiveScope` and for advisory UI surfacing.\n */\nexport function expandedCapabilities(\n parsed: ReadonlyArray<ParsedScope>,\n pdfBits: PdfBits,\n): Set<DocCapability> {\n const out = new Set<DocCapability>();\n let hasAnnotationCollab = false;\n\n for (const s of parsed) {\n if (s.kind === 'capability') {\n out.add(s.name);\n } else if (s.kind === 'virtual' && s.name === 'pdf.permissions') {\n addPdfPermissions(out, pdfBits);\n } else if (s.kind === 'collab' && s.entity === 'annotations') {\n hasAnnotationCollab = true;\n }\n }\n\n // Implications (apply after the explicit additions above)\n if (out.has('doc.annotate.modify')) out.add('doc.annotate.read');\n if (out.has('doc.forms.modify')) {\n out.add('doc.forms.fill');\n out.add('doc.forms.read');\n }\n if (out.has('doc.forms.fill')) out.add('doc.forms.read');\n if (hasAnnotationCollab) out.add('doc.annotate.read');\n\n return out;\n}\n\n/**\n * Convenience wrapper: takes the raw scope array, parses each entry,\n * returns the expanded capability set. Exposed for the `/access`\n * endpoint and for the SDK helper that surfaces `effectiveScope`.\n */\nexport function expandRawScope(\n rawScope: ReadonlyArray<string>,\n pdfBits: PdfBits,\n): Set<DocCapability> {\n return expandedCapabilities(rawScope.map(parseScope), pdfBits);\n}\n\n/**\n * Test a single collab filter against a target record + the caller's\n * identity. Pure function — no side effects, no implicit rules.\n *\n * all → always matches\n * self → matches if identity.user_id === target.userId\n * createdBy=<X> → matches if target.userId === X\n * group=<X> → matches if target.groupId === X\n * AND identity.groups includes X\n *\n * The group-membership check on `group=X` prevents a token from\n * matching annotations in a group it doesn't belong to, even if the\n * target row carries that groupId.\n */\n/**\n * Authority to assign a specific groupId to an annotation.\n *\n * Set-group is decoupled from `doc.annotate.modify`. The reasoning:\n * capabilities like `modify` describe row access — what kind of write\n * you can do to which existing rows — and map to PDF permission bits.\n * Set-group is a cloud-only *assignment authority*: which destination\n * group can you put an annotation into? There is no PDF-bit\n * counterpart, so it doesn't inherit from `modify`.\n *\n * Resolution order:\n * 1. newGroupId === callerDefaultGroupId → true (no real reassignment\n * is happening; the annotation gets the caller's default group)\n * 2. wildcard `*` → true (global escape hatch)\n * 3. `annotations:set-group:all` → true\n * 4. `annotations:set-group:group=<newGroupId>` → true\n * 5. `annotations:*:all` or `annotations:*:group=<newGroupId>` → true\n * (action wildcard includes set-group)\n * 6. otherwise → false\n *\n * Note: independent from membership. A user with\n * `set-group:group=legal` can assign annotations to the legal group\n * even if they're not a member — that's the whole point.\n */\nexport function checkSetGroup(\n newGroupId: string,\n callerDefaultGroupId: string | undefined,\n rawScope: ReadonlyArray<string>,\n _pdfBits: PdfBits,\n): boolean {\n // No authority needed when the caller is assigning their default group.\n if (newGroupId === callerDefaultGroupId) return true;\n\n const parsed = rawScope.map(parseScope);\n if (parsed.some((s) => s.kind === 'wildcard')) return true;\n\n for (const s of parsed) {\n if (s.kind !== 'collab') continue;\n if (s.entity !== 'annotations') continue;\n if (s.action !== 'set-group' && s.action !== '*') continue;\n if (s.filter.kind === 'all') return true;\n if (s.filter.kind === 'group' && s.filter.groupId === newGroupId) return true;\n // :self and :createdBy are rejected at parse time for set-group, so\n // they never appear here. The action-wildcard path could carry those\n // filters legitimately for other actions — silently skip those, they\n // can't satisfy a set-group check.\n }\n return false;\n}\n\nexport function filterMatches(\n filter: CollabFilter,\n target: CollabTarget,\n id: IdentityClaims,\n): boolean {\n switch (filter.kind) {\n case 'all':\n return true;\n case 'self':\n return !!id.user_id && target.userId === id.user_id;\n case 'createdBy':\n return target.userId === filter.userId;\n case 'group':\n return target.groupId === filter.groupId && (id.groups?.includes(filter.groupId) ?? false);\n }\n}\n\n/**\n * Translate `pdf.permissions` (virtual scope) into the concrete\n * capabilities it represents under the current PDF bit configuration.\n *\n * Always adds `doc.open` and `doc.render` — these are cloud-only\n * capabilities with no PDF bit, but `pdf.permissions` is meant to be\n * the \"give the user a working session\" shorthand. Without them, a\n * token with just `['pdf.permissions']` would be useless.\n *\n * Reads are unconditional: ISO 32000 / Acrobat let any reader see\n * existing annotations and form values regardless of permission bits.\n * Bit 6 governs *writing*, not visibility.\n *\n * Bit-derived expansions follow ISO 32000:\n * bit 5 → doc.text.{select, copy, search}, doc.content.copy\n * bit 3 → doc.print\n * bit 12 → doc.print.high (requires bit 3 also set)\n * bit 4 → doc.pages.modify, doc.redact, doc.metadata.modify, doc.attachments.modify\n * bit 11 → doc.pages.assemble\n * bit 6 → doc.annotate.modify\n * bit 6/9 → doc.forms.fill\n * bit 6+4 → doc.forms.modify\n *\n * Note: this same expansion lives in builders.ts as\n * `materializePdfPermissions` for SDK-side use. The two MUST stay in\n * sync; a test in resolver.test.ts pins them together.\n */\nfunction addPdfPermissions(out: Set<DocCapability>, b: PdfBits): void {\n // Always — pdf.permissions means \"give me a working session\"\n out.add('doc.open');\n out.add('doc.render');\n // Reading existing annotations and form values is unconditional —\n // PDF bit 6 governs writes, not visibility.\n out.add('doc.annotate.read');\n out.add('doc.forms.read');\n\n if (b.bit5) {\n out.add('doc.text.select');\n out.add('doc.text.copy');\n out.add('doc.text.search');\n out.add('doc.content.copy');\n }\n if (b.bit3) out.add('doc.print');\n if (b.bit12 && b.bit3) out.add('doc.print.high');\n if (b.bit4) {\n out.add('doc.pages.modify');\n out.add('doc.redact');\n out.add('doc.metadata.modify');\n out.add('doc.attachments.modify');\n }\n if (b.bit11) out.add('doc.pages.assemble');\n if (b.bit6) {\n out.add('doc.annotate.modify');\n }\n if (b.bit6 || b.bit9) out.add('doc.forms.fill');\n if (b.bit6 && b.bit4) out.add('doc.forms.modify');\n}\n"],"mappings":";;;;;;;;;AAQA,IAAa,eAAb,cAAkC,MAAM;CACtC,YACE,OACA,QACA;EACA,MAAM,kBAAkB,MAAM,KAAK,QAAQ;EAH3B,KAAA,QAAA;EAIhB,KAAK,OAAO;CACd;AACF;;;;;;;;;AAUA,IAAa,mBAAb,cAAsC,MAAM;CAC1C,YACE,UACA,SACA;EACA,MAAM,oBAAoB,UAAU,KAAK,QAAQ,KAAK,GAAG,IAAI,UAAU;EAHvD,KAAA,WAAA;EACA,KAAA,UAAA;EAGhB,KAAK,OAAO;CACd;AACF;;;;;;;;AASA,IAAa,kBAAb,cAAqC,MAAM;CACzC,YAAY,OAAe;EACzB,MAAM,UAAU,MAAM,mDAAmD;EACzE,KAAK,OAAO;CACd;AACF;;;;;;;;;;;;;ACnCA,MAAM,qCAAiD,IA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_CAPABILITIES = /* @__PURE__ */ new Set([
71
71
  "doc.forms.read",
72
72
  "doc.forms.fill",
73
73
  "doc.forms.modify",
74
+ "doc.forms.submit",
74
75
  "doc.annotate.read",
75
76
  "doc.annotate.modify",
76
77
  "doc.metadata.modify",
@@ -431,4 +432,4 @@ Object.defineProperty(exports, "validateScopeArray", {
431
432
  }
432
433
  });
433
434
 
434
- //# sourceMappingURL=resolver-DAZWVoJL.cjs.map
435
+ //# sourceMappingURL=resolver-D-jumvgM.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolver-D-jumvgM.cjs","names":[],"sources":["../src/auth/scope/errors.ts","../src/auth/scope/parser.ts","../src/auth/scope/resolver.ts"],"sourcesContent":["/**\n * Thrown by {@link parseScope} / {@link validateScopeArray} when a scope\n * string does not match any known grammar (capability, collab, virtual,\n * or wildcard).\n *\n * Carries the offending scope verbatim so route/JWT-layer error\n * handlers can echo it to the customer.\n */\nexport class InvalidScope extends Error {\n constructor(\n public readonly scope: string,\n reason: string,\n ) {\n super(`invalid scope \"${scope}\": ${reason}`);\n this.name = 'InvalidScope';\n }\n}\n\n/**\n * Thrown by route guards and engine-local enforcement when a capability\n * or collab action is denied for the current request/handle.\n *\n * `required` names what the caller needed (e.g., \"doc.render\" or\n * \"annotations:update\"). `context` is an optional label such as \"local\"\n * or \"/v1/docs/.../pages/2/render\".\n */\nexport class PermissionDenied extends Error {\n constructor(\n public readonly required: string,\n public readonly context?: string,\n ) {\n super(`permission denied${context ? ` (${context})` : ''}: ${required}`);\n this.name = 'PermissionDenied';\n }\n}\n\n/**\n * Thrown at engine-local open time when the supplied scope includes\n * collab filters (`:self`, `:group=...`) but the identity claims needed\n * to resolve them are missing. Fails loudly at open so the configuration\n * mistake is visible immediately instead of producing silent denies at\n * every annotation mutation.\n */\nexport class MissingIdentity extends Error {\n constructor(scope: string) {\n super(`scope \"${scope}\" requires identity claims (user_id and/or groups)`);\n this.name = 'MissingIdentity';\n }\n}\n","import { InvalidScope } from './errors';\nimport type { CollabAction, CollabFilter, DocCapability, ParsedScope } from './types';\n\n/**\n * Closed set of recognized capability strings. Membership is the\n * authoritative source of truth — adding a new capability requires\n * extending the `DocCapability` union AND adding it here. The parser\n * rejects anything outside this set.\n *\n * Removed legacy names (e.g., `doc.read`, `doc.edit-pages`, `doc.save`)\n * are deliberately absent so any JWT carrying them fails at verify\n * time with a clear error.\n */\nconst KNOWN_CAPABILITIES: ReadonlySet<DocCapability> = new Set([\n 'doc.open',\n 'doc.render',\n 'doc.text.select',\n 'doc.text.copy',\n 'doc.text.search',\n 'doc.content.copy',\n 'doc.download',\n 'doc.download.flattened',\n 'doc.print',\n 'doc.print.high',\n 'doc.pages.modify',\n 'doc.pages.assemble',\n 'doc.forms.read',\n 'doc.forms.fill',\n 'doc.forms.modify',\n 'doc.forms.submit',\n 'doc.annotate.read',\n 'doc.annotate.modify',\n 'doc.metadata.modify',\n 'doc.attachments.modify',\n 'doc.redact',\n]);\n\n/**\n * Parse a single scope string into a structured `ParsedScope`.\n *\n * Recognised shapes:\n * - `\"*\"` → wildcard\n * - `\"pdf.permissions\"` → virtual (expands at resolve time)\n * - `\"a.b.c...\"` (dotted) → capability\n * - `\"entity:action:filter\"` (colons) → collab\n *\n * Throws {@link InvalidScope} for any string that fails to match one of\n * those shapes, or whose capability/entity/action/filter is not in the\n * closed enum.\n */\nexport function parseScope(raw: string): ParsedScope {\n if (raw === '*') return { kind: 'wildcard' };\n if (raw === 'pdf.permissions') return { kind: 'virtual', name: 'pdf.permissions' };\n if (raw.includes(':')) return parseCollab(raw);\n return parseCapability(raw);\n}\n\n/**\n * Validate every entry in a scope array by attempting to parse it.\n * Throws on the first invalid string. Discards the parse output —\n * callers re-parse at resolution time to keep the array as the\n * authoritative payload.\n */\nexport function validateScopeArray(raw: ReadonlyArray<string>): void {\n for (const s of raw) parseScope(s);\n}\n\nfunction parseCollab(raw: string): ParsedScope {\n // Split on the FIRST two colons only. Filter values may contain\n // colons (UUIDs with `urn:uuid:...`, subject ids like `auth0|user:1`).\n const idx1 = raw.indexOf(':');\n const idx2 = raw.indexOf(':', idx1 + 1);\n if (idx1 === -1 || idx2 === -1) {\n throw new InvalidScope(raw, 'collab scope requires entity:action:filter');\n }\n const entity = raw.slice(0, idx1);\n const action = raw.slice(idx1 + 1, idx2);\n const filterStr = raw.slice(idx2 + 1);\n\n if (entity !== 'annotations') {\n throw new InvalidScope(raw, `unknown collab entity: ${entity}`);\n }\n if (\n action !== 'create' &&\n action !== 'update' &&\n action !== 'delete' &&\n action !== 'set-group' &&\n action !== '*'\n ) {\n throw new InvalidScope(raw, `unknown collab action: ${action}`);\n }\n const filter = parseFilter(filterStr, raw);\n\n // `set-group` is a group-assignment authority, not a per-record collab\n // filter. The only meaningful filter values are `all` (assign to any\n // group) and `group=X` (assign to group X). `:self` and `:createdBy=Y`\n // can't be sensibly applied to \"what group is this annotation in\", so\n // we reject them at parse time rather than silently always-denying.\n if (action === 'set-group' && (filter.kind === 'self' || filter.kind === 'createdBy')) {\n throw new InvalidScope(\n raw,\n `set-group only supports :all or :group=<id> filters (got :${filter.kind})`,\n );\n }\n\n return {\n kind: 'collab',\n entity,\n action: action as CollabAction | '*',\n filter,\n };\n}\n\nfunction parseFilter(s: string, raw: string): CollabFilter {\n if (s === 'all') return { kind: 'all' };\n if (s === 'self') return { kind: 'self' };\n if (s.startsWith('createdBy=')) {\n const v = s.slice('createdBy='.length);\n if (!v) throw new InvalidScope(raw, 'createdBy= requires a value');\n return { kind: 'createdBy', userId: v };\n }\n if (s.startsWith('group=')) {\n const v = s.slice('group='.length);\n if (!v) throw new InvalidScope(raw, 'group= requires a value');\n return { kind: 'group', groupId: v };\n }\n throw new InvalidScope(raw, `unknown filter: ${s}`);\n}\n\n// Capability shape: lowercase dotted segments, e.g. \"doc.text.copy\".\n// Validates shape first, then membership in the closed set.\nconst CAPABILITY_SHAPE = /^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$/;\n\nfunction parseCapability(raw: string): ParsedScope {\n if (!CAPABILITY_SHAPE.test(raw)) {\n throw new InvalidScope(raw, 'invalid capability name shape');\n }\n if (!KNOWN_CAPABILITIES.has(raw as DocCapability)) {\n throw new InvalidScope(raw, `unknown capability: ${raw}`);\n }\n return { kind: 'capability', name: raw as DocCapability };\n}\n","import { parseScope } from './parser';\nimport type {\n CollabAction,\n CollabFilter,\n DocCapability,\n IdentityClaims,\n ParsedScope,\n PdfBits,\n} from './types';\n\n/**\n * Resolved collab subject — the per-record identity bits used to test\n * collab filters against. Sourced from the target record's stored\n * `/EMBD_Metadata/UserID` and `/GroupID` at mutation time.\n */\nexport interface CollabTarget {\n userId?: string;\n groupId?: string;\n}\n\n/**\n * True iff the given capability is granted by the scope array plus the\n * PDF bits visible via `pdf.permissions` expansion.\n *\n * Wildcard `*` short-circuits to true. Anything not explicitly granted\n * (or expanded from `pdf.permissions`) is denied.\n */\nexport function checkCapability(\n capability: DocCapability,\n rawScope: ReadonlyArray<string>,\n pdfBits: PdfBits,\n): boolean {\n const parsed = rawScope.map(parseScope);\n if (parsed.some((s) => s.kind === 'wildcard')) return true;\n return expandedCapabilities(parsed, pdfBits).has(capability);\n}\n\n/**\n * True iff the scope grants AT LEAST ONE of `capabilities`. Convenience\n * for routes like `/text` (`doc.text.copy` OR `doc.text.search`) and\n * `/geometry` (`doc.text.select` OR `doc.text.search`).\n */\nexport function checkAnyCapability(\n capabilities: ReadonlyArray<DocCapability>,\n rawScope: ReadonlyArray<string>,\n pdfBits: PdfBits,\n): boolean {\n return capabilities.some((c) => checkCapability(c, rawScope, pdfBits));\n}\n\n/**\n * True iff the scope grants the collab action against the target record.\n *\n * Narrowing model. For each action independently:\n * 1. wildcard `*` → allow (global escape hatch)\n * 2. if any collab scope applies to this action → NARROW: only those\n * collab filters decide. If none match the target, deny — even if\n * `doc.annotate.modify` is also present. This is what makes\n * `[modify, update:self]` correctly mean \"edit own only\" rather\n * than \"edit anyone via modify-bypass.\"\n * 3. otherwise, if `doc.annotate.modify` is present → allow. This is\n * the broad PDF-bit-derived default for create/update/delete when\n * no per-action collab filter has been written.\n * 4. otherwise → deny.\n *\n * For create: `target` should be built by the caller from JWT identity\n * (`{ userId: caller.user_id, groupId: caller.group_id }`). `:self` and\n * `:all` then trivially pass; `:group=X` is the meaningful filter (only\n * matches when the caller's default group is X).\n *\n * For update / delete: `target` is the existing row's owner.\n */\nexport function checkCollab(\n action: CollabAction,\n target: CollabTarget,\n rawScope: ReadonlyArray<string>,\n identity: IdentityClaims,\n pdfBits: PdfBits,\n): boolean {\n const parsed = rawScope.map(parseScope);\n if (parsed.some((s) => s.kind === 'wildcard')) return true;\n\n const applicableCollab = parsed.filter(\n (s): s is Extract<ParsedScope, { kind: 'collab' }> =>\n s.kind === 'collab' &&\n s.entity === 'annotations' &&\n (s.action === action || s.action === '*'),\n );\n\n if (applicableCollab.length > 0) {\n // Narrow: presence of any applicable collab scope shadows\n // `modify`-as-default for this action.\n return applicableCollab.some((s) => filterMatches(s.filter, target, identity));\n }\n\n // No collab scope for this action — fall back to the broad default.\n return expandedCapabilities(parsed, pdfBits).has('doc.annotate.modify');\n}\n\n/**\n * Compute the full set of granted capabilities after expanding\n * `pdf.permissions` and applying implication rules.\n *\n * Implications applied:\n * - `doc.annotate.modify` implies `doc.annotate.read` (you can't\n * sensibly modify what you can't see).\n * - `doc.forms.modify` implies `doc.forms.fill` and `doc.forms.read`.\n * - `doc.forms.fill` implies `doc.forms.read`.\n * - any annotation collab scope implies `doc.annotate.read`, because\n * mutation routes need to see the target row to evaluate the\n * collab filter against its current owner.\n *\n * Does NOT short-circuit on wildcard — callers do that themselves\n * before calling this. Returning the expanded set is useful for the\n * `/access` response's `effectiveScope` and for advisory UI surfacing.\n */\nexport function expandedCapabilities(\n parsed: ReadonlyArray<ParsedScope>,\n pdfBits: PdfBits,\n): Set<DocCapability> {\n const out = new Set<DocCapability>();\n let hasAnnotationCollab = false;\n\n for (const s of parsed) {\n if (s.kind === 'capability') {\n out.add(s.name);\n } else if (s.kind === 'virtual' && s.name === 'pdf.permissions') {\n addPdfPermissions(out, pdfBits);\n } else if (s.kind === 'collab' && s.entity === 'annotations') {\n hasAnnotationCollab = true;\n }\n }\n\n // Implications (apply after the explicit additions above)\n if (out.has('doc.annotate.modify')) out.add('doc.annotate.read');\n if (out.has('doc.forms.modify')) {\n out.add('doc.forms.fill');\n out.add('doc.forms.read');\n }\n if (out.has('doc.forms.fill')) out.add('doc.forms.read');\n if (hasAnnotationCollab) out.add('doc.annotate.read');\n\n return out;\n}\n\n/**\n * Convenience wrapper: takes the raw scope array, parses each entry,\n * returns the expanded capability set. Exposed for the `/access`\n * endpoint and for the SDK helper that surfaces `effectiveScope`.\n */\nexport function expandRawScope(\n rawScope: ReadonlyArray<string>,\n pdfBits: PdfBits,\n): Set<DocCapability> {\n return expandedCapabilities(rawScope.map(parseScope), pdfBits);\n}\n\n/**\n * Test a single collab filter against a target record + the caller's\n * identity. Pure function — no side effects, no implicit rules.\n *\n * all → always matches\n * self → matches if identity.user_id === target.userId\n * createdBy=<X> → matches if target.userId === X\n * group=<X> → matches if target.groupId === X\n * AND identity.groups includes X\n *\n * The group-membership check on `group=X` prevents a token from\n * matching annotations in a group it doesn't belong to, even if the\n * target row carries that groupId.\n */\n/**\n * Authority to assign a specific groupId to an annotation.\n *\n * Set-group is decoupled from `doc.annotate.modify`. The reasoning:\n * capabilities like `modify` describe row access — what kind of write\n * you can do to which existing rows — and map to PDF permission bits.\n * Set-group is a cloud-only *assignment authority*: which destination\n * group can you put an annotation into? There is no PDF-bit\n * counterpart, so it doesn't inherit from `modify`.\n *\n * Resolution order:\n * 1. newGroupId === callerDefaultGroupId → true (no real reassignment\n * is happening; the annotation gets the caller's default group)\n * 2. wildcard `*` → true (global escape hatch)\n * 3. `annotations:set-group:all` → true\n * 4. `annotations:set-group:group=<newGroupId>` → true\n * 5. `annotations:*:all` or `annotations:*:group=<newGroupId>` → true\n * (action wildcard includes set-group)\n * 6. otherwise → false\n *\n * Note: independent from membership. A user with\n * `set-group:group=legal` can assign annotations to the legal group\n * even if they're not a member — that's the whole point.\n */\nexport function checkSetGroup(\n newGroupId: string,\n callerDefaultGroupId: string | undefined,\n rawScope: ReadonlyArray<string>,\n _pdfBits: PdfBits,\n): boolean {\n // No authority needed when the caller is assigning their default group.\n if (newGroupId === callerDefaultGroupId) return true;\n\n const parsed = rawScope.map(parseScope);\n if (parsed.some((s) => s.kind === 'wildcard')) return true;\n\n for (const s of parsed) {\n if (s.kind !== 'collab') continue;\n if (s.entity !== 'annotations') continue;\n if (s.action !== 'set-group' && s.action !== '*') continue;\n if (s.filter.kind === 'all') return true;\n if (s.filter.kind === 'group' && s.filter.groupId === newGroupId) return true;\n // :self and :createdBy are rejected at parse time for set-group, so\n // they never appear here. The action-wildcard path could carry those\n // filters legitimately for other actions — silently skip those, they\n // can't satisfy a set-group check.\n }\n return false;\n}\n\nexport function filterMatches(\n filter: CollabFilter,\n target: CollabTarget,\n id: IdentityClaims,\n): boolean {\n switch (filter.kind) {\n case 'all':\n return true;\n case 'self':\n return !!id.user_id && target.userId === id.user_id;\n case 'createdBy':\n return target.userId === filter.userId;\n case 'group':\n return target.groupId === filter.groupId && (id.groups?.includes(filter.groupId) ?? false);\n }\n}\n\n/**\n * Translate `pdf.permissions` (virtual scope) into the concrete\n * capabilities it represents under the current PDF bit configuration.\n *\n * Always adds `doc.open` and `doc.render` — these are cloud-only\n * capabilities with no PDF bit, but `pdf.permissions` is meant to be\n * the \"give the user a working session\" shorthand. Without them, a\n * token with just `['pdf.permissions']` would be useless.\n *\n * Reads are unconditional: ISO 32000 / Acrobat let any reader see\n * existing annotations and form values regardless of permission bits.\n * Bit 6 governs *writing*, not visibility.\n *\n * Bit-derived expansions follow ISO 32000:\n * bit 5 → doc.text.{select, copy, search}, doc.content.copy\n * bit 3 → doc.print\n * bit 12 → doc.print.high (requires bit 3 also set)\n * bit 4 → doc.pages.modify, doc.redact, doc.metadata.modify, doc.attachments.modify\n * bit 11 → doc.pages.assemble\n * bit 6 → doc.annotate.modify\n * bit 6/9 → doc.forms.fill\n * bit 6+4 → doc.forms.modify\n *\n * Note: this same expansion lives in builders.ts as\n * `materializePdfPermissions` for SDK-side use. The two MUST stay in\n * sync; a test in resolver.test.ts pins them together.\n */\nfunction addPdfPermissions(out: Set<DocCapability>, b: PdfBits): void {\n // Always — pdf.permissions means \"give me a working session\"\n out.add('doc.open');\n out.add('doc.render');\n // Reading existing annotations and form values is unconditional —\n // PDF bit 6 governs writes, not visibility.\n out.add('doc.annotate.read');\n out.add('doc.forms.read');\n\n if (b.bit5) {\n out.add('doc.text.select');\n out.add('doc.text.copy');\n out.add('doc.text.search');\n out.add('doc.content.copy');\n }\n if (b.bit3) out.add('doc.print');\n if (b.bit12 && b.bit3) out.add('doc.print.high');\n if (b.bit4) {\n out.add('doc.pages.modify');\n out.add('doc.redact');\n out.add('doc.metadata.modify');\n out.add('doc.attachments.modify');\n }\n if (b.bit11) out.add('doc.pages.assemble');\n if (b.bit6) {\n out.add('doc.annotate.modify');\n }\n if (b.bit6 || b.bit9) out.add('doc.forms.fill');\n if (b.bit6 && b.bit4) out.add('doc.forms.modify');\n}\n"],"mappings":";;;;;;;;;AAQA,IAAa,eAAb,cAAkC,MAAM;CACtC,YACE,OACA,QACA;EACA,MAAM,kBAAkB,MAAM,KAAK,QAAQ;EAH3B,KAAA,QAAA;EAIhB,KAAK,OAAO;CACd;AACF;;;;;;;;;AAUA,IAAa,mBAAb,cAAsC,MAAM;CAC1C,YACE,UACA,SACA;EACA,MAAM,oBAAoB,UAAU,KAAK,QAAQ,KAAK,GAAG,IAAI,UAAU;EAHvD,KAAA,WAAA;EACA,KAAA,UAAA;EAGhB,KAAK,OAAO;CACd;AACF;;;;;;;;AASA,IAAa,kBAAb,cAAqC,MAAM;CACzC,YAAY,OAAe;EACzB,MAAM,UAAU,MAAM,mDAAmD;EACzE,KAAK,OAAO;CACd;AACF;;;;;;;;;;;;;ACnCA,MAAM,qCAAiD,IAAI,IAAI;CAC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
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_builders = require("./builders-8Hl1AYNU.cjs");
2
3
  const require_fold = require("./fold-C7I5GpBz.cjs");
3
4
  const require_PageInsertBlankInput = require("./PageInsertBlankInput-CzShuSJI.cjs");
4
- const require_builders = require("./builders-Cp_rlGob.cjs");
5
- const require_resolver = require("./resolver-DAZWVoJL.cjs");
5
+ const require_resolver = require("./resolver-D-jumvgM.cjs");
6
6
  const require_AbortError = require("./AbortError-CRSooKsk.cjs");
7
7
  //#region src/promise/AbortablePromise.ts
8
8
  let _Symbol$species;
@@ -401,6 +401,7 @@ exports.createPageImageHandle = require_builders.createPageImageHandle;
401
401
  exports.decodeFieldRefKey = require_builders.decodeFieldRefKey;
402
402
  exports.decodePdfBits = require_builders.decodePdfBits;
403
403
  exports.decodeStableIdKey = require_builders.decodeStableIdKey;
404
+ exports.decodeSubmitFormFlags = require_builders.decodeSubmitFormFlags;
404
405
  exports.deserializeError = require_fold.deserializeError;
405
406
  exports.encodeFieldRefKey = require_builders.encodeFieldRefKey;
406
407
  exports.encodeStableIdKey = require_builders.encodeStableIdKey;