@embedpdf/engine-core 3.0.0-next.13 → 3.0.0-next.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/dist/AnnotationList-CkijRHet.d.cts +27163 -0
  2. package/dist/AnnotationList-CkijRHet.d.ts +27163 -0
  3. package/dist/Change-CKoxfTNY.js +889 -0
  4. package/dist/Change-CKoxfTNY.js.map +1 -0
  5. package/dist/Change-CjImsrN0.cjs +1020 -0
  6. package/dist/Change-CjImsrN0.cjs.map +1 -0
  7. package/dist/DocumentRenderService-BfFdFSwI.cjs +120 -0
  8. package/dist/DocumentRenderService-BfFdFSwI.cjs.map +1 -0
  9. package/dist/DocumentRenderService-DV3J9lMz.js +85 -0
  10. package/dist/DocumentRenderService-DV3J9lMz.js.map +1 -0
  11. package/dist/{DocumentSecurityService-_JRjqvoI.d.ts → DocumentSecurityService-CU1M6Q7m.d.ts} +100 -112
  12. package/dist/{DocumentSecurityService-ClTZc0zO.d.cts → DocumentSecurityService-e6vp2de8.d.cts} +100 -112
  13. package/dist/LocalDocumentHandle-D02FMm-Z.cjs +53 -0
  14. package/dist/LocalDocumentHandle-D02FMm-Z.cjs.map +1 -0
  15. package/dist/LocalDocumentHandle-DAPdaOt_.js +30 -0
  16. package/dist/LocalDocumentHandle-DAPdaOt_.js.map +1 -0
  17. package/dist/LocalEngine-DFoBm4B3.d.cts +1565 -0
  18. package/dist/LocalEngine-DPriFujS.d.ts +1565 -0
  19. package/dist/PageInsertBlankInput-CXHAM7l6.cjs +17 -0
  20. package/dist/PageInsertBlankInput-CXHAM7l6.cjs.map +1 -0
  21. package/dist/PageInsertBlankInput-DhVYVJ_S.js +12 -0
  22. package/dist/PageInsertBlankInput-DhVYVJ_S.js.map +1 -0
  23. package/dist/authority-B3BklsB4.js +2239 -0
  24. package/dist/authority-B3BklsB4.js.map +1 -0
  25. package/dist/authority-DLMNR7ff.cjs +2676 -0
  26. package/dist/authority-DLMNR7ff.cjs.map +1 -0
  27. package/dist/builders-CNj0POeY.js +161 -0
  28. package/dist/builders-CNj0POeY.js.map +1 -0
  29. package/dist/builders-Cgdp_YCn.cjs +184 -0
  30. package/dist/builders-Cgdp_YCn.cjs.map +1 -0
  31. package/dist/calibrate-7T3fnP8-.js +2404 -0
  32. package/dist/calibrate-7T3fnP8-.js.map +1 -0
  33. package/dist/calibrate-DJBXnhLE.cjs +2919 -0
  34. package/dist/calibrate-DJBXnhLE.cjs.map +1 -0
  35. package/dist/charmap-Cprti1ta.js +239 -0
  36. package/dist/charmap-Cprti1ta.js.map +1 -0
  37. package/dist/charmap-aYlefQP9.cjs +304 -0
  38. package/dist/charmap-aYlefQP9.cjs.map +1 -0
  39. package/dist/conformance.cjs +16753 -5247
  40. package/dist/conformance.cjs.map +1 -1
  41. package/dist/conformance.d.cts +928 -165
  42. package/dist/conformance.d.ts +928 -165
  43. package/dist/conformance.js +16731 -5268
  44. package/dist/conformance.js.map +1 -1
  45. package/dist/format-Bp3QFSH1.cjs +574 -0
  46. package/dist/format-Bp3QFSH1.cjs.map +1 -0
  47. package/dist/format-Dgg428Kb.js +461 -0
  48. package/dist/format-Dgg428Kb.js.map +1 -0
  49. package/dist/index.cjs +330 -103
  50. package/dist/index.d.cts +2 -2
  51. package/dist/index.d.ts +2 -2
  52. package/dist/index.js +14 -5
  53. package/dist/pageRefs-B3ur7Ckm.cjs +51 -0
  54. package/dist/pageRefs-B3ur7Ckm.cjs.map +1 -0
  55. package/dist/pageRefs-DkbuxSCV.js +40 -0
  56. package/dist/pageRefs-DkbuxSCV.js.map +1 -0
  57. package/dist/public.cjs +57 -0
  58. package/dist/public.d.cts +5 -0
  59. package/dist/public.d.ts +5 -0
  60. package/dist/public.js +9 -0
  61. package/dist/resolveAnnotationDraft-7Ke4nV7F.cjs +3646 -0
  62. package/dist/resolveAnnotationDraft-7Ke4nV7F.cjs.map +1 -0
  63. package/dist/resolveAnnotationDraft-CUpf0SMh.js +3167 -0
  64. package/dist/resolveAnnotationDraft-CUpf0SMh.js.map +1 -0
  65. package/dist/{resolver-inAVzsWt.js → resolver-CzxmD9Ck.js} +294 -144
  66. package/dist/resolver-CzxmD9Ck.js.map +1 -0
  67. package/dist/{resolver-CYVNV4hn.cjs → resolver-D2OCtE8F.cjs} +347 -143
  68. package/dist/resolver-D2OCtE8F.cjs.map +1 -0
  69. package/dist/runtime-Cl0v56mm.d.ts +2032 -0
  70. package/dist/runtime-p1WDzDo4.d.cts +2032 -0
  71. package/dist/runtime.cjs +733 -284
  72. package/dist/runtime.cjs.map +1 -1
  73. package/dist/runtime.d.cts +5 -1348
  74. package/dist/runtime.d.ts +5 -1348
  75. package/dist/runtime.js +396 -179
  76. package/dist/runtime.js.map +1 -1
  77. package/dist/schema-C-gU4vj7.cjs +3034 -0
  78. package/dist/schema-C-gU4vj7.cjs.map +1 -0
  79. package/dist/schema-DzlUNk38.js +2081 -0
  80. package/dist/schema-DzlUNk38.js.map +1 -0
  81. package/dist/schemas-Berf1swF.cjs +2481 -0
  82. package/dist/schemas-Berf1swF.cjs.map +1 -0
  83. package/dist/schemas-D6xOGjqg.js +1654 -0
  84. package/dist/schemas-D6xOGjqg.js.map +1 -0
  85. package/dist/subtype-CG4WpIRj.js +129 -0
  86. package/dist/subtype-CG4WpIRj.js.map +1 -0
  87. package/dist/subtype-aDt5TFmK.cjs +158 -0
  88. package/dist/subtype-aDt5TFmK.cjs.map +1 -0
  89. package/dist/validation.cjs +578 -0
  90. package/dist/validation.cjs.map +1 -0
  91. package/dist/validation.d.cts +174 -0
  92. package/dist/validation.d.ts +174 -0
  93. package/dist/validation.js +571 -0
  94. package/dist/validation.js.map +1 -0
  95. package/dist/value-BFS1R8ek.cjs +435 -0
  96. package/dist/value-BFS1R8ek.cjs.map +1 -0
  97. package/dist/value-Dhc8eYcx.js +340 -0
  98. package/dist/value-Dhc8eYcx.js.map +1 -0
  99. package/dist/viewport-BJW13EGZ.js +540 -0
  100. package/dist/viewport-BJW13EGZ.js.map +1 -0
  101. package/dist/viewport-DlL5Bxbg.cjs +671 -0
  102. package/dist/viewport-DlL5Bxbg.cjs.map +1 -0
  103. package/dist/wire.cjs +1056 -379
  104. package/dist/wire.cjs.map +1 -1
  105. package/dist/wire.d.cts +15069 -725
  106. package/dist/wire.d.ts +15069 -725
  107. package/dist/wire.js +825 -239
  108. package/dist/wire.js.map +1 -1
  109. package/package.json +10 -1
  110. package/dist/AbortError-Cq2igpZ6.cjs +0 -38
  111. package/dist/AbortError-Cq2igpZ6.cjs.map +0 -1
  112. package/dist/AbortError-DHqPBnYc.js +0 -27
  113. package/dist/AbortError-DHqPBnYc.js.map +0 -1
  114. package/dist/AnnotationListSnapshot-D3mFut1e.d.cts +0 -6871
  115. package/dist/AnnotationListSnapshot-D3mFut1e.d.ts +0 -6871
  116. package/dist/Engine-Bx0NOfmd.d.cts +0 -1264
  117. package/dist/Engine-DxtpCYcP.d.ts +0 -1264
  118. package/dist/PageInsertBlankInput-CqXBmFhN.cjs +0 -449
  119. package/dist/PageInsertBlankInput-CqXBmFhN.cjs.map +0 -1
  120. package/dist/PageInsertBlankInput-cHq9-i-z.js +0 -378
  121. package/dist/PageInsertBlankInput-cHq9-i-z.js.map +0 -1
  122. package/dist/builders-Bqm8yTpi.cjs +0 -3564
  123. package/dist/builders-Bqm8yTpi.cjs.map +0 -1
  124. package/dist/builders-Dqo2X-dt.js +0 -3121
  125. package/dist/builders-Dqo2X-dt.js.map +0 -1
  126. package/dist/fold-2V29cxCV.cjs +0 -447
  127. package/dist/fold-2V29cxCV.cjs.map +0 -1
  128. package/dist/fold-CdEJTBTn.js +0 -334
  129. package/dist/fold-CdEJTBTn.js.map +0 -1
  130. package/dist/resolver-CYVNV4hn.cjs.map +0 -1
  131. package/dist/resolver-inAVzsWt.js.map +0 -1
  132. package/dist/schemas-BLARNCgx.js +0 -3113
  133. package/dist/schemas-BLARNCgx.js.map +0 -1
  134. package/dist/schemas-DIqFMmrC.cjs +0 -4468
  135. package/dist/schemas-DIqFMmrC.cjs.map +0 -1
@@ -1,1348 +1,5 @@
1
- import { $a as semanticEqual, $c as NamedPageEntry, $i as FormFieldDisplay, $l as CachePins, $n as PageNameResult, $o as normalizeAnnotationPatch, $r as FormImportResult, $s as AnnotationAppearanceManifestEntry, $u as PdfRect, Aa as ComboBoxFieldDTO, Ac as PageTextSnapshot, Ai as refsOf, Al as FieldLockSpec, An as HighlightDraft, Ao as normalizeAttachmentFileSource, Ar as toOriginalRange, As as RichTextDirection, At as LineDraft, Au as BlendMode, B as StampAnnotationDTO, Ba as SignatureFieldDTO, Bc as normalizePdfRect, Bi as ObjectReferrer, Bl as SignaturePrepareInput, Bn as PageDeleteResult, Bo as FilledStylePatchFields, Br as TextLayoutFrame, Bs as richTextPlainText, Bt as PolygonPatch, Bu as Point, C as RedactDraft, Ca as FormSnapshot, Cc as PageGeometrySnapshot, Ci as evaluateStep, Cl as BaseVersionInfo, Cn as UnderlineAnnotationDTO, Co as AnnotationKindModule, Cr as wordAt, Cs as SerializedEngineError, Ct as LinkAnnotationDTO, Cu as AnnotationDraftBase, Da as WidgetStyleFields, Dc as glyphLooseBounds, Di as dictEntries, Dl as DocumentProtection, Do as AttachmentCreateResult, Dr as SEARCH_FOLD_VERSION, Ds as RichTextAlign, Du as AnnotationBorderStyle, E as WidgetDraft, Ea as WidgetStyleDraftFields, Ec as UprightGeometryRun, Ei as changedKeys, El as DocumentFieldLock, Eo as PatchOfKind, Er as FoldedText, Es as EngineErrorCode, Eu as revisionTokensEqual, Fa as FormFieldOption, Fc as charMapViolation, Fi as ChangeFinding, Fl as SignatureCompleteInput, Fn as RedactionApplyScope, Fo as ColorStyleDraftFields, Fr as SearchSlice, Fs as RichTextParagraphProps, Ft as PolylineAnnotationDTO, Fu as InkIntent, Ga as AnnotationCreateResult, Gc as pdfRectHeight, Gi as RevisionHealth, Gl as SignatureSubFilter, Gn as AnnotationFlattenInput, Go as AttachmentFileBase, Gr as expandTextRangeToWord, Gs as FontSpec, Gt as VertexPatchFields, Gu as StrikeoutIntent, H as StampFit, Ha as ToggleFieldWidget, Hc as pdfQuadCorners, Hi as RestrictionAnchor, Hl as SignatureSeedValue, Hn as PageRotateResult, Ho as GeometryStyleFields, Hr as TextLayoutRun, Hs as FontHandle, Ht as PolygonDraft, Hu as Rotation, Ia as FormFieldOrigin, Ic as charRangeForTextOffsets, Ii as ObjectChange, Il as SignatureCompleteResult, In as RedactionApplyStatus, Io as ColorStyleFields, Ir as SearchSliceBudget, Is as RichTextRun, It as PolylineDraft, Iu as LineEnding, J as TextPatch, Ja as AnnotationUpdateResult, Jc as pdfRectWidth, Ji as StepVerdict, Jl as MutationMeta, Jn as PageFlattenInput, Jo as EmbeddedFileItem, Jr as textSegmentsForRange, Js as PdfSaveMode, Ju as InkList, Ka as AnnotationDeleteResult, Kc as pdfRectSize, Ki as RevisionStructure, Kl as SignedDocumentPolicy, Kn as AnnotationFlattenItemResult, Ko as AttachmentFileInfo, Kr as textGlyphAt, Ks as SessionKind, Ku as TextAlignment, La as ListBoxFieldDTO, Lc as sliceTextByChars, Li as ObjectChangeKind, Ll as SignatureCoverage, Ln as PAGE_INSERT_BLANK_MAX_COUNT, Lo as ColorStylePatchFields, Lr as SearchSnippet, Ls as RichTextRunStyle, Lu as LineEndings, M as FileAttachmentPatch, Ma as FormFieldDTO, Mc as CharMapAnchor, Mi as AnalyzeInput, Ml as PdfRevision, Mn as MetadataUpdateResult, Mo as FileAttachmentIcon, Mr as SearchMode, Ms as RichTextDocumentInput, Mu as Color, N as FileAttachmentAnnotationDTO, Na as FormFieldFamily, Nc as boundaryTextOffset, Ni as Assessment, Nl as SignatureAbortResult, Nn as RedactionApplyItemResult, No as FileAttachmentWireDraft, Nr as SearchQuery, Ns as RichTextMargins, Nu as FreeTextFont, Oa as WidgetStylePatchFields, Oc as glyphLooseQuad, Oi as parsePdfValue, Ol as DocumentVersionRef, On as HighlightPatch, Oo as AttachmentDeleteResult, Or as SearchMatchRange, Os as RichTextBody, Ot as LinePatch, Ou as AnnotationFlags, Pa as FormFieldFlags, Pc as charBoundaryAtTextOffset, Pi as ChangeAnalysis, Pl as SignatureAppearanceInput, Pn as RedactionApplyResult, Po as WireAttachmentFile, Pr as SearchRequest, Ps as RichTextParagraph, Pt as PolylinePatch, Pu as FreeTextIntent, Qa as appearanceImpactOf, Qc as PageRotation, Qi as FormEffectsResult, Ql as knownWeakAnnotationState, Qn as PageFlattenUsage, Qo as normalizeAnnotationDraft, Qr as FormFieldUpdateResult, Qs as AnnotationAppearanceManifest, Qu as PdfQuad, R as StampPatch, Ra as PushButtonFieldDTO, Rc as PdfOriginSize, Ri as ObjectChangeType, Rl as SignatureDTO, Rn as PageInsertBlankSpec, Ro as FilledStyleDraftFields, Rr as PageTextLayout, Rs as RichTextScript, Ru as NO_ANNOTATION_FLAGS, S as RedactAnnotationDTO, Sa as FormKind, Sc as PageGeometryRun, Si as restrictionsFor, Sl as filterMatches, Sn as UnderlinePatch, So as refKey, Sr as matchLiteral, Ss as EngineErrorOptions, St as LinkPatch, Su as PdfBits, T as WidgetAnnotationDTO, Tc as RotatedGeometryRun, Ti as sameEffectiveValue, Tl as DocMdpPermission, To as DraftOfKind, Tr as FoldOptions, Ts as serializeError, Tu as RevisionToken, U as StampWireDraft, Ua as UnknownFieldDTO, Uc as pdfQuadFromCorners, Ui as RevisionAnalysis, Ul as SignatureSigner, Un as PageRotateInput, Uo as GeometryStylePatchFields, Ur as buildPageTextLayout, Us as FontIdentityInfo, Ut as VertexAnnotationFields, Uu as Size, V as StampDraft, Va as TextFieldDTO, Vc as pdfQuadBounds, Vi as PdfValue, Vl as SignaturePrepared, Vn as PageDeleteInput, Vo as GeometryStyleDraftFields, Vr as TextLayoutGlyph, Vs as FontEmbeddingPermission, Vt as PolygonAnnotationDTO, Vu as Rect, Wa as FormValueEntry, Wc as pdfRectFromOriginSize, Wi as RevisionField, Wl as SignatureSnapshot, Wn as AnnotationAppearanceExportInput, Wo as AttachmentContent, Wr as expandTextRangeToLine, Ws as FontKey, Wt as VertexDraftFields, Wu as StandardFont, X as NoteIcon, Xa as AppearanceImpact, Xc as PageBoxes, Xi as FormEffectResult, Xl as UNKNOWN_WEAK_ANNOTATION_STATE, Xn as PageFlattenResult, Xo as NormalizedDraft, Xr as FormFieldCreateResult, Xs as AnnotationAppearanceImageOptions, Xt as SquareAnnotationDTO, Xu as LinePoints, Y as TextAnnotationDTO, Ya as AppearanceAction, Yc as PageListSnapshot, Yi as FormEffect, Yl as PageState, Yn as PageFlattenItemResult, Yo as EmbeddedFileRef, Yr as FormDataExport, Ys as AnnotationAppearanceImage, Yt as SquarePatch, Yu as InkStroke, Z as TextDraft, Za as AppearanceOutcome, Zc as PageLayout, Zi as FormEffectStatus, Zl as WeakAnnotationState, Zn as PageFlattenStatus, Zo as NormalizedPatch, Zr as FormFieldDeleteResult, Zs as AnnotationAppearanceImagesResult, Zt as SquareDraft, Zu as PdfPoint, _a as FormFieldOptionInput, _c as PageRenderQuery, _d as PageObjectNumber, _i as DEFAULT_EDGE_RESOLVER_BUDGET, _l as checkCapability, _n as SquigglyAnnotationDTO, _o as isStateAnnotation, _r as SearchRegexValidation, _s as AnnotationIdentityQuality, _u as ParsedCapability, ac as PageImageBlobSource, ad as PdfActionNode, ai as fieldLockFor, al as OpenInputLayerBytes, an as ShapeDraftFields, ao as RefetchReason, ar as PageMoveInput, as as ResourceRef, au as MissingIdentity, b as UnsupportedAnnotationDTO, ba as TextFieldDraft, bc as createPageImageHandle, bd as DocumentMetadataTrapped, bi as ResolvedUsage, bl as expandRawScope, bo as buildThreads, br as validateSearchRegex, bs as encodeStableIdKey, bu as ParsedVirtual, c as AnnotationKind, ca as CheckboxFieldPatch, cc as PageImageOptions, cd as PdfActionType, ci as lockCovers, cl as OpenInputToken, co as DocumentManifest, cr as searchRectsForRange, cs as resolveBinarySource, ct as FreeTextAnnotationDTO, cu as validateScopeArray, d as AnnotationSubtypeOfKind, da as ListBoxFieldPatch, dc as PageNetworkRenderFormat, dd as PdfFieldActions, di as protectedCapabilities, dl as caps, dn as StrikeoutAnnotationDTO, do as LayerScopes, dr as buildSnippet, ds as PDF_CODE_TO_SUBTYPE, du as AnnotationActor, ea as FormSubmissionEntry, ec as AnnotationAppearanceMode, ed as PdfRotation, ei as FormRepairResult, el as NamedPageTarget, eo as AnnotationMutationKind, er as PageNameInput, es as BinaryMetadata, eu as FormFieldRef, fa as RadioFieldPatch, fc as PageRaster, fd as PdfPageActions, fi as assessmentOf, fl as collab, fn as StrikeoutDraft, fo as BuildCommentThreadsOptions, fr as matchPageText, fs as PDF_SUBTYPE_TO_CODE, fu as CollabAction, ga as FormFieldDraft, gc as PageRenderOptions, gd as PdfDestination, gi as worstVerdict, gl as checkAnyCapability, gn as SquigglyPatch, go as buildCommentThreads, gr as SearchRegexIssue, gs as AnnotationBase, gu as IdentityClaims, ha as ComboBoxFieldDraft, hc as PageRenderFormat, hd as decodeSubmitFormFlags, hi as primaryFinding, hl as CollabTarget, ho as ReviewStatus, hr as SearchQueryValidation, hs as AnnotationPatchBase, ht as InkDraft, hu as DocCapability, i as AnnotationDTO, ia as FormSubmissionRequest, ic as AnnotationAppearancesResult, id as NamedJavaScriptAction, ii as deriveProtection, il as OpenInputBytes, in as ShapeAnnotationFields, io as AnnotationListMutationMeta, ir as PageStructureCache, is as BinarySource, iu as InvalidScope, ja as FormFieldBase, jc as CharBoundaryBias, ji as stableStringify, jl as ModificationLevel, jn as MetadataCache, jo as FileAttachmentDraft, jr as SearchMatch, js as RichTextDocument, ju as CaretIntent, ka as CheckboxFieldDTO, kc as isRotatedGeometryRun, ki as pdfValueEquals, kl as FieldLockAction, kn as HighlightAnnotationDTO, ko as AttachmentsCache, kr as foldText, ks as RichTextDecoration, kt as LineAnnotationDTO, ku as AnnotationReplyType, l as AnnotationPatch, la as ComboBoxFieldPatch, lc as PageImageResult, ld as PdfActionWarning, li as lockNameCovers, ll as OpenOptions, lo as ManifestPage, lr as searchSegmentsForRange, ls as ANNOTATION_SUBTYPES, lt as FreeTextDraft, lu as PDF_BITS, m as WireAnnotationPatch, ma as CheckboxFieldDraft, mc as PageRenderEncodedFormat, md as SubmitFormPayload, mi as conclude, ml as pdfPermissions, mo as CommentThreadReview, mr as SearchQueryIssue, ms as subtypeFromCode, mt as InkAnnotationDTO, mu as CollabFilter, n as AnnotationListSnapshotAllPages, na as FormSubmissionReceipt, nc as AnnotationAppearanceRenderOptions, nd as ActionReadBudget, ni as FormWidgetLinkResult, nl as OpenInput, nn as CircleAnnotationDTO, no as invalidatesWeakIndexRefs, nr as PageMoveCache, ns as sniffBinaryMetadata, nt as CaretAnnotationDTO, nu as decodeFieldRefKey, o as AnnotationDraft, oa as FormDataFormat, oc as PageImageHandle, od as PdfActionTargetRef, oi as levelAllows, ol as OpenInputLayerSource, on as ShapePatchFields, oo as PdfLinkTarget, or as canonicalSearchQuery, os as WireResource, ou as PermissionDenied, p as WireAnnotationDraft, pa as TextFieldPatch, pc as PageRenderBackground, pd as SubmitFormFlags, pi as combine, pl as materializePdfPermissions, po as CommentThread, pr as SEARCH_REGEX_MAX_LENGTH, ps as PdfAnnotationSubtypeCode, pt as InkPatch, pu as CollabEntity, qa as AnnotationMoveResult, qc as pdfRectToOriginSize, qi as StepInput, ql as CacheDelta, qn as AnnotationFlattenResult, qo as AttachmentFileSource, qr as textGlyphQuad, qs as DEFAULT_PDF_SAVE_MODE, qu as CalloutLine, rc as AnnotationAppearancesQuery, rd as DocumentActionsSnapshot, ri as SIGNATURE_POLICY_VERSION, rl as OpenInputById, rn as CircleDraft, ro as shiftsExistingAnnotationIndices, rr as PageMoveResult, rs as BinaryPayload, rt as CaretDraft, ru as encodeFieldRefKey, sa as FormFieldValue, sc as PageImageObjectUrl, sd as PdfActionTree, si as levelFromPermission, sl as OpenInputShare, so as PdfLinkTargetWritable, sr as searchContentEpoch, ss as WireResourceMap, st as FreeTextPatch, su as parseScope, t as AnnotationListPageSnapshot, tc as AnnotationAppearanceRaster, td as PdfSize, ti as FormSetValueResult, tl as MetadataPatch, tn as CirclePatch, to as changesAnnotationList, tr as PageRemoveNameInput, ts as BinaryMimeType, tt as CaretPatch, tu as FormWidgetRef, ua as FormFieldPatch, uc as PageImageSource, ud as PdfAnnotationActions, ui as minLevel, ul as TokenSource, un as StrikeoutPatch, uo as LayerScopePlane, ur as SEARCH_SNIPPET_CONTEXT, us as AnnotationSubtype, uu as decodePdfBits, v as UnsupportedPatch, va as ListBoxFieldDraft, vc as PageRenderTarget, vd as isValidPageObjectNumber, vi as EdgeResolver, vl as checkCollab, vn as SquigglyDraft, vo as AnnotationRelationKind, vr as matchRegex, vs as AnnotationStableId, vu as ParsedCollab, w as WidgetPatch, wa as WidgetAppearance, wc as RotatedGeometryGlyph, wi as restrictionsOf, wl as DigestAlgorithm, wn as UnderlineDraft, wo as DTOOfKind, wr as wordBefore, ws as deserializeError, wt as LinkDraft, wu as AnnotationRef, x as RedactPatch, xa as WidgetPlacement, xc as PageGeometryGlyph, xi as USAGE_INCOMPLETE, xl as expandedCapabilities, xo as classifyRelation, xr as foldOptionsFor, xs as EngineError, xu as ParsedWildcard, y as UnsupportedDraft, ya as RadioFieldDraft, yc as PageRenderViewport, yd as DocumentMetadata, yi as EdgeResolverBudget, yl as checkSetGroup, yo as AnnotationThread, yr as validateSearchQuery, ys as decodeStableIdKey, yu as ParsedScope, z as StampWirePatch, za as RadioFieldDTO, zc as PdfQuadCorners, zi as ObjectReadStatus, zl as SignatureKind, zn as PageInsertResult, zo as FilledStyleFields, zr as PdfTextSegment, zs as richTextParagraphsFromPlainText, zu as PdfRectDifferences } from "./AnnotationListSnapshot-D3mFut1e.cjs";
2
- import { a as DocumentEncryptionState, c as DocumentSecurityState, d as PdfPermissionAdvisory, f as PdfPermissionInfo, g as AbortablePromise, h as AbortableExecutor, i as DocumentAccessReason, l as DocumentUnlockInput, m as passwordPromptFromState, n as CdnAdapter, o as DocumentOpenMode, p as PasswordPrompt, r as DocumentAccessInfo, s as DocumentSecurityService, t as CdnAccessInfo, u as DocumentUnlockResult } from "./DocumentSecurityService-ClTZc0zO.cjs";
3
- import { A as DocumentRedactionService, C as DocumentSearchService, D as snapAppearanceScale, E as EngineRenderPolicy, F as FontEmbeddingPolicy, I as DocumentAttachmentsService, L as DocumentAnnotationsService, M as DocumentFormsService, N as FormRepairOptions, O as snapFullPageViewport, P as DocumentFontSettings, R as WeakAnnotationEditSession, S as DocumentSignaturesService, T as DocumentRenderService, _ as PageTextService, a as DocumentHandle, b as PageAnnotationsService, c as DocumentEventInit, d as PageHandle, f as PieceInfoService, g as PieceInfoSnapshot, h as PieceInfoPatchValue, i as DocumentCapabilities, j as DocumentPagesService, k as snapTileScale, l as DocumentEventType, m as PieceInfoPatch, n as EngineFactory, o as DocumentEventStream, p as PieceInfoEntry, r as FontService, s as DocumentEvent, t as Engine, u as EventOrigin, v as PageRenderService, w as CONTINUOUS_RENDER_POLICY, x as MetadataService, y as PageGeometryService, z as DocumentActionsService } from "./Engine-Bx0NOfmd.cjs";
4
- //#region src/promise/AbortError.d.ts
5
- declare class AbortError extends Error {
6
- readonly name = "AbortError";
7
- readonly reason: unknown;
8
- constructor(reason?: unknown);
9
- }
10
- declare function isAbortError(value: unknown): value is AbortError;
11
- //#endregion
12
- //#region src/wire/worker-protocol.d.ts
13
- /**
14
- * Wire protocol used between an Engine-side queue and any Worker host
15
- * (browser Web Worker, Node worker_thread, inline). Cloud HTTP traffic
16
- * uses a different envelope; this is purely the worker boundary.
17
- *
18
- * Identical between @embedpdf/engine and @cloudpdf/server because
19
- * the WorkerHost dispatch logic is the same on both sides — only the
20
- * underlying PdfRuntimeModule (WASM vs native) differs.
21
- */
22
- type WorkerJobId = number;
23
- interface OpenFatMemoryWorkerRequest {
24
- kind: 'open.fatMem';
25
- jobId: WorkerJobId;
26
- docId: string;
27
- bytes: ArrayBuffer;
28
- password: string | null;
29
- /** Default `protect`. */
30
- signedDocumentPolicy?: SignedDocumentPolicy;
31
- /** Default `layer`: the bytes become an immutable base with a fresh layer on top. */
32
- sessionKind?: SessionKind;
33
- }
34
- type LayerOpenSource = {
35
- kind: 'fresh';
36
- } | {
37
- kind: 'raw-delta';
38
- bytes: ArrayBuffer;
39
- } | {
40
- kind: 'artifact';
41
- bytes: ArrayBuffer;
42
- } | {
43
- kind: 'artifact-file';
44
- path: string;
45
- };
46
- interface OpenLayerMemoryBaseWorkerRequest {
47
- kind: 'open.layerMemBase';
48
- jobId: WorkerJobId;
49
- docId: string;
50
- /**
51
- * Omit for a handle whose docId already uniquely identifies the layer
52
- * session. Cloud layer sessions supply a real layer name when multiple
53
- * layer views must live under one docId.
54
- */
55
- layerName?: string;
56
- baseKey: string;
57
- baseBytes: ArrayBuffer;
58
- layer: LayerOpenSource;
59
- password: string | null;
60
- signedDocumentPolicy?: SignedDocumentPolicy;
61
- /**
62
- * SHA-256 (hex) of the base bytes, when the caller already holds a
63
- * verified one. Saves the runtime a full pass over the file; an identity
64
- * claim only (a wrong value breaks the caller's own layer artifacts).
65
- */
66
- baseSha256?: string;
67
- }
68
- interface OpenLayerFileBaseWorkerRequest {
69
- kind: 'open.layerFileBase';
70
- jobId: WorkerJobId;
71
- docId: string;
72
- /**
73
- * Omit for the base-view session. Supplying a name opens a separate
74
- * layer session under the same docId.
75
- */
76
- layerName?: string;
77
- baseKey: string;
78
- basePath: string;
79
- layer: LayerOpenSource;
80
- password: string | null;
81
- signedDocumentPolicy?: SignedDocumentPolicy;
82
- /** See `OpenLayerMemoryBaseWorkerRequest.baseSha256`. */
83
- baseSha256?: string;
84
- }
85
- type OpenWorkerRequest = OpenFatMemoryWorkerRequest | OpenLayerMemoryBaseWorkerRequest | OpenLayerFileBaseWorkerRequest;
86
- interface SignaturesListWorkerRequest {
87
- kind: 'signatures.list';
88
- jobId: WorkerJobId;
89
- docId: string;
90
- layerName?: string;
91
- /**
92
- * Read the session's WORKING COPY (its unsaved state as one more revision
93
- * over the loaded bytes) instead of the loaded bytes. The cloud server
94
- * sets it: its layer sessions keep every committed edit in memory, so the
95
- * layer's durable state IS the working copy. No-op without unsaved edits.
96
- */
97
- workingCopy?: boolean;
98
- }
99
- interface SignaturesContentsWorkerRequest {
100
- kind: 'signatures.contents';
101
- jobId: WorkerJobId;
102
- docId: string;
103
- layerName?: string;
104
- ref: FormFieldRef;
105
- }
106
- interface SignaturesDigestWorkerRequest {
107
- kind: 'signatures.digest';
108
- jobId: WorkerJobId;
109
- docId: string;
110
- layerName?: string;
111
- ref: FormFieldRef;
112
- algorithm: DigestAlgorithm;
113
- }
114
- interface SignaturesRevisionBytesWorkerRequest {
115
- kind: 'signatures.revisionBytes';
116
- jobId: WorkerJobId;
117
- docId: string;
118
- layerName?: string;
119
- revisionIndex: number;
120
- }
121
- interface DocumentVersionWorkerRequest {
122
- kind: 'document.version';
123
- jobId: WorkerJobId;
124
- docId: string;
125
- layerName?: string;
126
- }
127
- interface SignaturesPrepareWorkerRequest {
128
- kind: 'signatures.prepare';
129
- jobId: WorkerJobId;
130
- docId: string;
131
- layerName?: string;
132
- input: SignaturePrepareInput;
133
- }
134
- interface SignaturesCompleteWorkerRequest {
135
- kind: 'signatures.complete';
136
- jobId: WorkerJobId;
137
- docId: string;
138
- layerName?: string;
139
- input: SignatureCompleteInput;
140
- artifactPath?: string;
141
- }
142
- interface SignaturesAbortWorkerRequest {
143
- kind: 'signatures.abort';
144
- jobId: WorkerJobId;
145
- docId: string;
146
- layerName?: string;
147
- signingId: string;
148
- }
149
- interface SignaturesAnalyzeWorkerRequest {
150
- kind: 'signatures.analyze';
151
- jobId: WorkerJobId;
152
- docId: string;
153
- layerName?: string;
154
- input: AnalyzeInput;
155
- }
156
- /**
157
- * Session-less: install a CMS into a signing candidate FILE and verify the
158
- * result. The server rebuilds the candidate (base ⊕ durable tail) on
159
- * whichever replica completes the signing, so this never addresses a
160
- * session: the file is patched in place, opened into a transient session
161
- * for the checks, and closed. The caller keeps the sealed file.
162
- */
163
- interface SignaturesFinalizeCandidateWorkerRequest {
164
- kind: 'signatures.finalizeCandidate';
165
- jobId: WorkerJobId;
166
- /** The candidate on the worker's filesystem; its /Contents hole is patched in place. */
167
- path: string;
168
- /** The /ByteRange the prepare reported — the fence every check is made against. */
169
- byteRange: [number, number, number, number];
170
- /** The reserved /Contents size the prepare reported (the hole holds twice as many hex digits). */
171
- contentsSize: number;
172
- fieldObjectNumber: number;
173
- /** The detached CMS over the prepared digest. */
174
- cms: ArrayBuffer;
175
- password?: string | null;
176
- }
177
- interface MetadataReadWorkerRequest {
178
- kind: 'metadata.read';
179
- jobId: WorkerJobId;
180
- docId: string;
181
- layerName?: string;
182
- }
183
- interface MetadataUpdateWorkerRequest {
184
- kind: 'metadata.update';
185
- jobId: WorkerJobId;
186
- docId: string;
187
- layerName?: string;
188
- patch: MetadataPatch;
189
- artifactPath?: string;
190
- }
191
- interface ActionsReadWorkerRequest {
192
- kind: 'actions.read';
193
- jobId: WorkerJobId;
194
- docId: string;
195
- layerName?: string;
196
- }
197
- interface AnnotationsListRawAllWorkerRequest {
198
- kind: 'annotations.listRawAll';
199
- jobId: WorkerJobId;
200
- docId: string;
201
- layerName?: string;
202
- }
203
- interface AnnotationsListRawPageWorkerRequest {
204
- kind: 'annotations.listRawPage';
205
- jobId: WorkerJobId;
206
- docId: string;
207
- layerName?: string;
208
- pageObjectNumber: PageObjectNumber;
209
- }
210
- interface AnnotationsListFullPageWorkerRequest {
211
- kind: 'annotations.listFullPage';
212
- jobId: WorkerJobId;
213
- docId: string;
214
- layerName?: string;
215
- pageObjectNumber: PageObjectNumber;
216
- }
217
- /**
218
- * Batch-render every annotation appearance stream on a page. Acquires a
219
- * `pagePtr`, iterates `/Annots`, and renders each annotation's `/AP` via
220
- * `EPDF_RenderAnnotBitmap` into its own raster. Read-only; gated on the
221
- * render capability like `pages.render`.
222
- */
223
- interface AnnotationsRenderAppearancesWorkerRequest {
224
- kind: 'annotations.renderAppearances';
225
- jobId: WorkerJobId;
226
- docId: string;
227
- layerName?: string;
228
- pageObjectNumber: PageObjectNumber;
229
- options?: AnnotationAppearanceRenderOptions;
230
- }
231
- interface AnnotationsCreateWorkerRequest {
232
- kind: 'annotations.create';
233
- jobId: WorkerJobId;
234
- docId: string;
235
- layerName?: string;
236
- pageObjectNumber: PageObjectNumber;
237
- /** WIRE form — binary fields hold `{ resource }` refs into {@link resources}. */
238
- draft: WireAnnotationDraft;
239
- /**
240
- * Binary payloads referenced by the draft, keyed by resource key. The
241
- * producer puts each `bytes` buffer on the wirePack transfer list
242
- * (zero-copy, same convention as `PageRaster`).
243
- */
244
- resources?: WireResourceMap;
245
- artifactPath?: string;
246
- /**
247
- * Identity to stamp on the newly created annotation:
248
- * - `displayName` → /T (PDF author field)
249
- * - `userId` / `groupId` → /EMBD_Metadata/{UserID,GroupID,CreatedBy,UpdatedBy}
250
- * Optional — when absent (engine-local with no identity, anonymous tests),
251
- * the worker still stamps the standard /M (modification date) but skips
252
- * EMBD_Metadata.
253
- */
254
- actor?: AnnotationActor;
255
- }
256
- interface AnnotationsUpdateWorkerRequest {
257
- kind: 'annotations.update';
258
- jobId: WorkerJobId;
259
- docId: string;
260
- layerName?: string;
261
- ref: AnnotationRef;
262
- /** WIRE form — see {@link AnnotationsCreateWorkerRequest.draft}. */
263
- patch: WireAnnotationPatch;
264
- /** Binary payloads referenced by the patch — see the create request. */
265
- resources?: WireResourceMap;
266
- artifactPath?: string;
267
- /**
268
- * Identity of the editor. Drives /EMBD_Metadata/UpdatedBy refresh on
269
- * update; preserves UserID/GroupID/CreatedBy. When absent, only /M
270
- * is refreshed.
271
- */
272
- actor?: AnnotationActor;
273
- }
274
- interface AnnotationsDeleteWorkerRequest {
275
- kind: 'annotations.delete';
276
- jobId: WorkerJobId;
277
- docId: string;
278
- layerName?: string;
279
- ref: AnnotationRef;
280
- artifactPath?: string;
281
- }
282
- /** Flatten a chosen set of one page's annotations into its content — see
283
- * `AnnotationFlattenInput`. A content + annotation mutation of that page. */
284
- interface AnnotationsFlattenWorkerRequest {
285
- kind: 'annotations.flatten';
286
- jobId: WorkerJobId;
287
- docId: string;
288
- layerName?: string;
289
- pageObjectNumber: PageObjectNumber;
290
- refs: AnnotationRef[];
291
- usage: PageFlattenUsage;
292
- artifactPath?: string;
293
- }
294
- /** Flatten a chosen set of one page's annotation appearances into a NEW
295
- * single-page PDF (bytes). A read: no artifact, no revision. */
296
- interface AnnotationsExportAppearanceWorkerRequest {
297
- kind: 'annotations.exportAppearance';
298
- jobId: WorkerJobId;
299
- docId: string;
300
- layerName?: string;
301
- pageObjectNumber: PageObjectNumber;
302
- refs: AnnotationRef[];
303
- }
304
- /**
305
- * Batch annotation reorder. Refs are resolved on the worker BEFORE the
306
- * move so the impact computation has a single before-state and one
307
- * revision bump per batch.
308
- */
309
- interface AnnotationsMoveWorkerRequest {
310
- kind: 'annotations.move';
311
- jobId: WorkerJobId;
312
- docId: string;
313
- layerName?: string;
314
- pageObjectNumber: PageObjectNumber;
315
- refs: AnnotationRef[];
316
- toIndex: number;
317
- artifactPath?: string;
318
- }
319
- /**
320
- * Complete reconciled form snapshot. Cheap between mutations: the worker
321
- * caches the underlying EPDFForm model keyed on the session's mutation
322
- * counter and rebuilds only after a write.
323
- */
324
- interface FormsListWorkerRequest {
325
- kind: 'forms.list';
326
- jobId: WorkerJobId;
327
- docId: string;
328
- layerName?: string;
329
- }
330
- interface FormsSetValueWorkerRequest {
331
- kind: 'forms.setValue';
332
- jobId: WorkerJobId;
333
- docId: string;
334
- layerName?: string;
335
- ref: FormFieldRef;
336
- value: FormFieldValue;
337
- artifactPath?: string;
338
- }
339
- interface FormsResetWorkerRequest {
340
- kind: 'forms.reset';
341
- jobId: WorkerJobId;
342
- docId: string;
343
- layerName?: string;
344
- ref: FormFieldRef;
345
- artifactPath?: string;
346
- }
347
- interface FormsApplyEffectsWorkerRequest {
348
- kind: 'forms.applyEffects';
349
- jobId: WorkerJobId;
350
- docId: string;
351
- layerName?: string;
352
- effects: FormEffect[];
353
- artifactPath?: string;
354
- }
355
- interface FormsExportWorkerRequest {
356
- kind: 'forms.export';
357
- jobId: WorkerJobId;
358
- docId: string;
359
- layerName?: string;
360
- format: FormDataFormat;
361
- }
362
- interface FormsImportWorkerRequest {
363
- kind: 'forms.import';
364
- jobId: WorkerJobId;
365
- docId: string;
366
- layerName?: string;
367
- /** FDF or XFDF payload; goes on the wirePack transfer list (zero-copy). */
368
- data: ArrayBuffer;
369
- /** Sniffed from the bytes when omitted. */
370
- format?: FormDataFormat;
371
- artifactPath?: string;
372
- }
373
- interface FormsRepairWorkerRequest {
374
- kind: 'forms.repair';
375
- jobId: WorkerJobId;
376
- docId: string;
377
- layerName?: string;
378
- bakeAppearances?: boolean;
379
- artifactPath?: string;
380
- }
381
- interface FormsCreateFieldWorkerRequest {
382
- kind: 'forms.createField';
383
- jobId: WorkerJobId;
384
- docId: string;
385
- layerName?: string;
386
- draft: FormFieldDraft;
387
- artifactPath?: string;
388
- }
389
- interface FormsUpdateFieldWorkerRequest {
390
- kind: 'forms.updateField';
391
- jobId: WorkerJobId;
392
- docId: string;
393
- layerName?: string;
394
- ref: FormFieldRef;
395
- patch: FormFieldPatch;
396
- artifactPath?: string;
397
- }
398
- /** Draw a PDF page into every widget of an unsigned signature field (the visual fill). */
399
- interface FormsSetSignatureAppearanceWorkerRequest {
400
- kind: 'forms.setSignatureAppearance';
401
- jobId: WorkerJobId;
402
- docId: string;
403
- layerName?: string;
404
- ref: FormFieldRef;
405
- pdf: ArrayBuffer;
406
- pageIndex: number;
407
- artifactPath?: string;
408
- }
409
- interface FormsDeleteFieldWorkerRequest {
410
- kind: 'forms.deleteField';
411
- jobId: WorkerJobId;
412
- docId: string;
413
- layerName?: string;
414
- ref: FormFieldRef;
415
- artifactPath?: string;
416
- }
417
- interface FormsAttachWidgetWorkerRequest {
418
- kind: 'forms.attachWidget';
419
- jobId: WorkerJobId;
420
- docId: string;
421
- layerName?: string;
422
- ref: FormFieldRef;
423
- widget: FormWidgetRef;
424
- onState?: string;
425
- artifactPath?: string;
426
- }
427
- interface FormsDetachWidgetWorkerRequest {
428
- kind: 'forms.detachWidget';
429
- jobId: WorkerJobId;
430
- docId: string;
431
- layerName?: string;
432
- ref: FormFieldRef;
433
- widget: FormWidgetRef;
434
- artifactPath?: string;
435
- }
436
- interface PagesListWorkerRequest {
437
- kind: 'pages.list';
438
- jobId: WorkerJobId;
439
- docId: string;
440
- layerName?: string;
441
- }
442
- /**
443
- * Per-page plain-text extraction. Acquires a pagePtr and runs PDFium's
444
- * `FPDFText_LoadPage` → `FPDFText_GetText` chain. Identical to
445
- * `annotations.listFullPage` in shape; both are slow-path per-page
446
- * reads keyed by indirect object number.
447
- */
448
- interface PagesTextWorkerRequest {
449
- kind: 'pages.text';
450
- jobId: WorkerJobId;
451
- docId: string;
452
- layerName?: string;
453
- pageObjectNumber: PageObjectNumber;
454
- }
455
- interface PagesGeometryWorkerRequest {
456
- kind: 'pages.geometry';
457
- jobId: WorkerJobId;
458
- docId: string;
459
- layerName?: string;
460
- pageObjectNumber: PageObjectNumber;
461
- }
462
- /**
463
- * One budgeted search slice (see `DocumentSearchService`). Read-only: the
464
- * worker's per-page corpus cache is version-keyed on the session mutation
465
- * counter, so repeated slices between mutations reuse extracted text.
466
- */
467
- interface SearchQueryWorkerRequest {
468
- kind: 'search.query';
469
- jobId: WorkerJobId;
470
- docId: string;
471
- layerName?: string;
472
- request: SearchRequest;
473
- }
474
- interface PagesRenderWorkerRequest {
475
- kind: 'pages.render';
476
- jobId: WorkerJobId;
477
- docId: string;
478
- layerName?: string;
479
- pageObjectNumber: PageObjectNumber;
480
- options?: PageRenderOptions;
481
- }
482
- /**
483
- * One-shot file render — open the base document from a file path, render
484
- * ONE page by display index, close. No session is bound (the ingestion
485
- * `runAdHoc` pattern, like `document.probeSecurityFile`): this is the
486
- * derived-artifact warmer's producer, used when no live document session
487
- * exists yet. The payload reports the page's durable object number so the
488
- * caller can key the artifact it persists.
489
- */
490
- interface DocumentRenderPageFileWorkerRequest {
491
- kind: 'document.renderPageFile';
492
- jobId: WorkerJobId;
493
- path: string;
494
- password: string | null;
495
- /** Display index (0-based) — ingest knows "first page", not object numbers. */
496
- pageIndex: number;
497
- options?: PageRenderOptions;
498
- }
499
- /**
500
- * Encode instruction for the `*.renderEncoded` request family. CLOUD-SERVER
501
- * surface (like the file-path ops): the server worker injects an image
502
- * encoder into its `WorkerHost`, so the raster is encoded WHERE IT IS
503
- * PRODUCED and only the compressed image crosses the engine boundary —
504
- * kilobytes over the host IPC pipe instead of a megabytes-scale rgba
505
- * copy. Engines without an injected encoder (browser/local workers, which
506
- * encode via canvas instead) reject these kinds with `NotImplemented`.
507
- * Policy stays caller-side: format and quality always arrive in the
508
- * request; the engine plane holds no image-policy defaults.
509
- */
510
- interface RenderEncode {
511
- format: PageNetworkRenderFormat;
512
- quality?: number;
513
- }
514
- /** An encoded render result. `width`/`height` are the source raster's output
515
- * dimensions (they feed the advisory image-dimension headers). `bytes` must
516
- * OWN its buffer — it rides the transfer manifest zero-copy, so a pooled
517
- * view (e.g. a Node `Buffer` slab slice) would detach unrelated data. */
518
- interface EncodedImageWire {
519
- contentType: string;
520
- width: number;
521
- height: number;
522
- bytes: Uint8Array;
523
- }
524
- interface PagesRenderEncodedWorkerRequest {
525
- kind: 'pages.renderEncoded';
526
- jobId: WorkerJobId;
527
- docId: string;
528
- layerName?: string;
529
- pageObjectNumber: PageObjectNumber;
530
- options?: PageRenderOptions;
531
- encode: RenderEncode;
532
- }
533
- /** `document.renderPageFile` + in-worker encode — same one-shot transient
534
- * session semantics; see that request's docs. */
535
- interface DocumentRenderPageFileEncodedWorkerRequest {
536
- kind: 'document.renderPageFileEncoded';
537
- jobId: WorkerJobId;
538
- path: string;
539
- password: string | null;
540
- /** Display index (0-based) — ingest knows "first page", not object numbers. */
541
- pageIndex: number;
542
- options?: PageRenderOptions;
543
- encode: RenderEncode;
544
- }
545
- interface AnnotationsRenderAppearancesEncodedWorkerRequest {
546
- kind: 'annotations.renderAppearancesEncoded';
547
- jobId: WorkerJobId;
548
- docId: string;
549
- layerName?: string;
550
- pageObjectNumber: PageObjectNumber;
551
- options?: AnnotationAppearanceRenderOptions;
552
- encode: RenderEncode;
553
- }
554
- /** Encoded counterpart of `AnnotationAppearanceRaster`: same identity and
555
- * placement metadata, image instead of raster. */
556
- interface EncodedAppearanceWire {
557
- ref: AnnotationRef;
558
- mode: AnnotationAppearanceMode;
559
- rect: PdfRect;
560
- image: EncodedImageWire;
561
- }
562
- interface AnnotationAppearancesEncodedResultWire {
563
- pageState: PageState;
564
- appearances: EncodedAppearanceWire[];
565
- }
566
- interface PagesMoveWorkerRequest {
567
- kind: 'pages.move';
568
- jobId: WorkerJobId;
569
- docId: string;
570
- layerName?: string;
571
- pageObjectNumbers: PageObjectNumber[];
572
- destIndex: number;
573
- artifactPath?: string;
574
- }
575
- interface PagesRotateWorkerRequest {
576
- kind: 'pages.rotate';
577
- jobId: WorkerJobId;
578
- docId: string;
579
- layerName?: string;
580
- pageObjectNumbers: PageObjectNumber[];
581
- /** Absolute rotation in degrees clockwise — see `PageRotateInput`. */
582
- rotation: PageRotation;
583
- artifactPath?: string;
584
- }
585
- interface PagesDeleteWorkerRequest {
586
- kind: 'pages.delete';
587
- jobId: WorkerJobId;
588
- docId: string;
589
- layerName?: string;
590
- pageObjectNumbers: PageObjectNumber[];
591
- artifactPath?: string;
592
- }
593
- /** Register/rename a `/Names /Pages` entry — see `PageNameInput`. */
594
- interface PagesSetNameWorkerRequest {
595
- kind: 'pages.setName';
596
- jobId: WorkerJobId;
597
- docId: string;
598
- layerName?: string;
599
- name: string;
600
- pageObjectNumber: PageObjectNumber;
601
- replace?: string;
602
- artifactPath?: string;
603
- }
604
- /** Remove a `/Names /Pages` entry — see `PageRemoveNameInput`. */
605
- interface PagesRemoveNameWorkerRequest {
606
- kind: 'pages.removeName';
607
- jobId: WorkerJobId;
608
- docId: string;
609
- layerName?: string;
610
- name: string;
611
- artifactPath?: string;
612
- }
613
- interface PagesFlattenWorkerRequest {
614
- kind: 'pages.flatten';
615
- jobId: WorkerJobId;
616
- docId: string;
617
- layerName?: string;
618
- pageObjectNumbers: PageObjectNumber[];
619
- usage: PageFlattenUsage;
620
- artifactPath?: string;
621
- }
622
- interface RedactionApplyWorkerRequest {
623
- kind: 'redaction.apply';
624
- jobId: WorkerJobId;
625
- docId: string;
626
- layerName?: string;
627
- scope: RedactionApplyScope;
628
- artifactPath?: string;
629
- }
630
- /** Export the given pages as a standalone PDF (a read — the source
631
- * session is untouched, so no layer artifact rides the result). */
632
- interface PagesExtractWorkerRequest {
633
- kind: 'pages.extract';
634
- jobId: WorkerJobId;
635
- docId: string;
636
- layerName?: string;
637
- pageObjectNumbers: PageObjectNumber[];
638
- }
639
- /** List the document catalog's `/EmbeddedFiles` name tree (a read). */
640
- interface AttachmentsListWorkerRequest {
641
- kind: 'attachments.list';
642
- jobId: WorkerJobId;
643
- docId: string;
644
- layerName?: string;
645
- }
646
- /**
647
- * Decode one document-level embedded file (a read — no revision bump, no
648
- * layer artifact). Two delivery modes, the `artifactPath?` pattern:
649
- * `path` absent → browser mode, decoded bytes ride the transfer list;
650
- * `path` present → server mode, the worker streams the decoded file to
651
- * that path (`EPDFAttachment_ExtractFile` + `FPDF_FILEWRITE`) so the
652
- * payload never crosses the thread boundary and HTTP can stream it from
653
- * disk with backpressure.
654
- */
655
- interface AttachmentsReadFileWorkerRequest {
656
- kind: 'attachments.readFile';
657
- jobId: WorkerJobId;
658
- docId: string;
659
- layerName?: string;
660
- ref: EmbeddedFileRef;
661
- path?: string;
662
- /** Decompression-bomb cap forwarded to the runtime. Absent/0 = unlimited. */
663
- maxDecodedBytes?: number;
664
- }
665
- /**
666
- * Create a document-level embedded file (a MUTATION — layer sessions
667
- * persist an artifact). `file` is the same post-normalization wire shape
668
- * the file-attachment annotation draft uses: metadata in JSON, bytes
669
- * out-of-band under the referenced resource key. `file.name` becomes the
670
- * name-tree key.
671
- */
672
- interface AttachmentsCreateWorkerRequest {
673
- kind: 'attachments.create';
674
- jobId: WorkerJobId;
675
- docId: string;
676
- layerName?: string;
677
- file: WireAttachmentFile;
678
- /** Binary payload referenced by `file.resource` — transfer-list bytes. */
679
- resources?: WireResourceMap;
680
- artifactPath?: string;
681
- }
682
- /** Delete a document-level embedded file by key (a MUTATION). */
683
- interface AttachmentsDeleteWorkerRequest {
684
- kind: 'attachments.delete';
685
- jobId: WorkerJobId;
686
- docId: string;
687
- layerName?: string;
688
- ref: EmbeddedFileRef;
689
- artifactPath?: string;
690
- }
691
- /** Decode the file embedded in a FileAttachment annotation's `/FS`.
692
- * Same read semantics and delivery modes as `attachments.readFile`. */
693
- interface AnnotationsReadFileWorkerRequest {
694
- kind: 'annotations.readFile';
695
- jobId: WorkerJobId;
696
- docId: string;
697
- layerName?: string;
698
- pageObjectNumber: PageObjectNumber;
699
- ref: AnnotationRef;
700
- path?: string;
701
- /** Decompression-bomb cap forwarded to the runtime. Absent/0 = unlimited. */
702
- maxDecodedBytes?: number;
703
- }
704
- /** Insert every page of a standalone PDF (transferable `bytes`) at
705
- * `destIndex` (omitted → append). A structural MUTATION: layer sessions
706
- * persist an artifact like move/rotate/delete. */
707
- interface PagesInsertWorkerRequest {
708
- kind: 'pages.insert';
709
- jobId: WorkerJobId;
710
- docId: string;
711
- layerName?: string;
712
- bytes: ArrayBuffer;
713
- destIndex?: number;
714
- artifactPath?: string;
715
- }
716
- /** Create `count` (default 1) blank pages of `size` (PDF points) at
717
- * `destIndex` (omitted → append). A structural MUTATION exactly like
718
- * `pages.insert`, minus the bytes: pure parameters, so nothing transfers;
719
- * layer sessions persist an artifact identically. */
720
- interface PagesInsertBlankWorkerRequest {
721
- kind: 'pages.insertBlank';
722
- jobId: WorkerJobId;
723
- docId: string;
724
- layerName?: string;
725
- size: PdfSize;
726
- count?: number;
727
- destIndex?: number;
728
- artifactPath?: string;
729
- }
730
- /**
731
- * `/PieceInfo` private application data (ISO 32000 §14.5). One job family
732
- * serves both levels: `pageObjectNumber` present → the page's `/PieceInfo`,
733
- * absent → the document catalog's — mirroring the native API symmetry.
734
- * `update`/`clear` are mutations (a layer session persists an artifact);
735
- * `read`/`applications` are plain reads.
736
- */
737
- interface PieceInfoReadWorkerRequest {
738
- kind: 'pieceInfo.read';
739
- jobId: WorkerJobId;
740
- docId: string;
741
- layerName?: string;
742
- pageObjectNumber?: PageObjectNumber;
743
- application: string;
744
- }
745
- interface PieceInfoUpdateWorkerRequest {
746
- kind: 'pieceInfo.update';
747
- jobId: WorkerJobId;
748
- docId: string;
749
- layerName?: string;
750
- pageObjectNumber?: PageObjectNumber;
751
- application: string;
752
- patch: PieceInfoPatch;
753
- artifactPath?: string;
754
- }
755
- interface PieceInfoApplicationsWorkerRequest {
756
- kind: 'pieceInfo.applications';
757
- jobId: WorkerJobId;
758
- docId: string;
759
- layerName?: string;
760
- pageObjectNumber?: PageObjectNumber;
761
- }
762
- interface PieceInfoClearWorkerRequest {
763
- kind: 'pieceInfo.clear';
764
- jobId: WorkerJobId;
765
- docId: string;
766
- layerName?: string;
767
- pageObjectNumber?: PageObjectNumber;
768
- application: string;
769
- artifactPath?: string;
770
- }
771
- interface DocumentSaveBufferWorkerRequest {
772
- kind: 'document.saveBuffer';
773
- jobId: WorkerJobId;
774
- docId: string;
775
- layerName?: string;
776
- mode: PdfSaveMode;
777
- }
778
- interface DocumentSaveFileWorkerRequest {
779
- kind: 'document.saveFile';
780
- jobId: WorkerJobId;
781
- docId: string;
782
- layerName?: string;
783
- mode: PdfSaveMode;
784
- path: string;
785
- }
786
- /** Export JUST the layer artifact (the overlay diff) to a transferable buffer.
787
- * Layer sessions only; the host rejects a base-only session. */
788
- interface DocumentSaveLayerBufferWorkerRequest {
789
- kind: 'document.saveLayerBuffer';
790
- jobId: WorkerJobId;
791
- docId: string;
792
- layerName?: string;
793
- }
794
- interface DocumentSecurityProbeInfo {
795
- encryptionState: 'unknown' | 'none' | 'encrypted' | 'unsupported';
796
- encryptionRequiresPassword: boolean | null;
797
- securityHandlerRevision: number | null;
798
- pdfPermissionsBits: number | null;
799
- pdfPermissionsAllAllowed: boolean | null;
800
- pdfOpenedAs: 'none' | 'user' | 'owner' | null;
801
- securityProbedAt: number | null;
802
- }
803
- interface DocumentProbeSecurityFileWorkerRequest {
804
- kind: 'document.probeSecurityFile';
805
- jobId: WorkerJobId;
806
- path: string;
807
- password: string | null;
808
- }
809
- interface DocumentCheckPasswordPermissionsWorkerRequest {
810
- kind: 'document.checkPasswordPermissions';
811
- jobId: WorkerJobId;
812
- docId: string;
813
- layerName?: string;
814
- password: string;
815
- mode?: 'any' | 'owner';
816
- }
817
- /**
818
- * Register a runtime font on the host's PDFium thread. Carries the font bytes
819
- * as a transferable `ArrayBuffer` (declared in the producer's transfer
820
- * manifest, like `open.fatMem`). Runtime-global: not tied to any docId. The
821
- * host keeps the volatile native `FontId` keyed by `fontKey`; the wire only
822
- * ever references the stable `fontKey`.
823
- */
824
- interface FontsRegisterWorkerRequest {
825
- kind: 'fonts.register';
826
- jobId: WorkerJobId;
827
- fontKey: string;
828
- /** `""` → infer the base font name from the file. */
829
- familyName: string;
830
- /** `0` → infer the weight from the file. */
831
- weight: number;
832
- /** `-1` → infer / `0` non-italic / `1` italic. */
833
- italic: number;
834
- data: ArrayBuffer;
835
- }
836
- interface FontsAddFallbackWorkerRequest {
837
- kind: 'fonts.addFallback';
838
- jobId: WorkerJobId;
839
- fontKey: string;
840
- }
841
- interface FontsClearFallbacksWorkerRequest {
842
- kind: 'fonts.clearFallbacks';
843
- jobId: WorkerJobId;
844
- }
845
- interface FontsClearWorkerRequest {
846
- kind: 'fonts.clear';
847
- jobId: WorkerJobId;
848
- }
849
- /** The application asserts a licence permitting editing with a font. */
850
- interface FontsAuthorizeEditingWorkerRequest {
851
- kind: 'fonts.authorizeEditing';
852
- jobId: WorkerJobId;
853
- fontKey: string;
854
- }
855
- /**
856
- * Per-document font and text-layout settings (session state on the host's
857
- * document, never written to the file). Every member is optional: only the
858
- * ones given change.
859
- */
860
- interface DocumentSetFontSettingsWorkerRequest {
861
- kind: 'document.setFontSettings';
862
- jobId: WorkerJobId;
863
- docId: string;
864
- layerName?: string;
865
- embeddingPolicy?: 'default' | 'subset' | 'full';
866
- typographicFeatures?: boolean;
867
- }
868
- interface CloseWorkerRequest {
869
- kind: 'close';
870
- jobId: WorkerJobId;
871
- docId: string;
872
- }
873
- /**
874
- * Close exactly ONE layer session, leaving the base document, sibling
875
- * layer sessions, and the caller's doc↔worker binding intact. Idempotent:
876
- * closing an absent session is a no-op ack.
877
- *
878
- * This is the reload seam for layer-session freshness (the server closes
879
- * a stale layer session and re-opens it from the current durable
880
- * artifact) — `close` is the whole-document teardown, this is the
881
- * layer-scoped sibling.
882
- */
883
- interface LayerCloseWorkerRequest {
884
- kind: 'layer.close';
885
- jobId: WorkerJobId;
886
- docId: string;
887
- layerName: string;
888
- }
889
- interface AbortWorkerRequest {
890
- kind: 'abort';
891
- jobId: WorkerJobId;
892
- }
893
- interface ShutdownWorkerRequest {
894
- kind: 'shutdown';
895
- jobId: WorkerJobId;
896
- }
897
- interface LayerArtifactWorkerPayload {
898
- bytes: ArrayBuffer;
899
- size: number;
900
- }
901
- /**
902
- * Result of an attachment file read (`attachments.readFile` /
903
- * `annotations.readFile`): the decoded file's metadata plus exactly one
904
- * delivery mode, mirroring the request's `path?` — `bytes` on the
905
- * transfer list (browser), or the `path` the worker wrote (server).
906
- */
907
- interface AttachmentFileWorkerPayload {
908
- name: string;
909
- mimeType?: string;
910
- size: number;
911
- bytes?: ArrayBuffer;
912
- path?: string;
913
- }
914
- interface LayerArtifactFileWorkerPayload {
915
- path: string;
916
- }
917
- type WorkerRequest = OpenWorkerRequest | MetadataReadWorkerRequest | MetadataUpdateWorkerRequest | ActionsReadWorkerRequest | AnnotationsListRawAllWorkerRequest | AnnotationsListRawPageWorkerRequest | AnnotationsListFullPageWorkerRequest | AnnotationsRenderAppearancesWorkerRequest | AnnotationsRenderAppearancesEncodedWorkerRequest | AnnotationsCreateWorkerRequest | AnnotationsUpdateWorkerRequest | AnnotationsDeleteWorkerRequest | AnnotationsMoveWorkerRequest | FormsListWorkerRequest | FormsSetValueWorkerRequest | FormsResetWorkerRequest | FormsApplyEffectsWorkerRequest | FormsExportWorkerRequest | FormsImportWorkerRequest | FormsRepairWorkerRequest | FormsCreateFieldWorkerRequest | FormsUpdateFieldWorkerRequest | FormsSetSignatureAppearanceWorkerRequest | FormsDeleteFieldWorkerRequest | FormsAttachWidgetWorkerRequest | FormsDetachWidgetWorkerRequest | PagesListWorkerRequest | PagesMoveWorkerRequest | PagesRotateWorkerRequest | PagesDeleteWorkerRequest | AnnotationsFlattenWorkerRequest | AnnotationsExportAppearanceWorkerRequest | PagesSetNameWorkerRequest | PagesRemoveNameWorkerRequest | PagesFlattenWorkerRequest | RedactionApplyWorkerRequest | PagesExtractWorkerRequest | PagesInsertWorkerRequest | PagesInsertBlankWorkerRequest | AttachmentsListWorkerRequest | AttachmentsReadFileWorkerRequest | AttachmentsCreateWorkerRequest | AttachmentsDeleteWorkerRequest | AnnotationsReadFileWorkerRequest | PieceInfoReadWorkerRequest | PieceInfoUpdateWorkerRequest | PieceInfoApplicationsWorkerRequest | PieceInfoClearWorkerRequest | PagesTextWorkerRequest | PagesGeometryWorkerRequest | PagesRenderWorkerRequest | PagesRenderEncodedWorkerRequest | SearchQueryWorkerRequest | DocumentSaveBufferWorkerRequest | DocumentSaveFileWorkerRequest | DocumentSaveLayerBufferWorkerRequest | DocumentProbeSecurityFileWorkerRequest | DocumentRenderPageFileWorkerRequest | DocumentRenderPageFileEncodedWorkerRequest | DocumentCheckPasswordPermissionsWorkerRequest | SignaturesListWorkerRequest | SignaturesContentsWorkerRequest | SignaturesDigestWorkerRequest | SignaturesRevisionBytesWorkerRequest | DocumentVersionWorkerRequest | SignaturesPrepareWorkerRequest | SignaturesCompleteWorkerRequest | SignaturesAbortWorkerRequest | SignaturesAnalyzeWorkerRequest | SignaturesFinalizeCandidateWorkerRequest | FontsRegisterWorkerRequest | FontsAddFallbackWorkerRequest | FontsClearFallbacksWorkerRequest | FontsClearWorkerRequest | FontsAuthorizeEditingWorkerRequest | DocumentSetFontSettingsWorkerRequest | CloseWorkerRequest | LayerCloseWorkerRequest | AbortWorkerRequest | ShutdownWorkerRequest;
918
- type WorkerResultPayload = {
919
- tag: 'open';
920
- docId: string;
921
- security: DocumentSecurityProbeInfo;
922
- /** What the document's signatures forbid; `null` when unsigned or not probed (a locked open). */
923
- protection?: DocumentProtection | null;
924
- } | {
925
- tag: 'signatures.list';
926
- snapshot: SignatureSnapshot;
927
- } | {
928
- tag: 'signatures.contents';
929
- bytes: ArrayBuffer;
930
- } | {
931
- tag: 'signatures.digest';
932
- digest: ArrayBuffer;
933
- } | {
934
- tag: 'signatures.revisionBytes';
935
- bytes: ArrayBuffer;
936
- size: number;
937
- } | {
938
- tag: 'document.version';
939
- version: BaseVersionInfo;
940
- } | {
941
- tag: 'signatures.prepare';
942
- result: SignaturePrepared;
943
- } | {
944
- tag: 'signatures.complete';
945
- result: SignatureCompleteResult;
946
- artifact?: LayerArtifactWorkerPayload;
947
- artifactFile?: LayerArtifactFileWorkerPayload;
948
- } | {
949
- tag: 'signatures.abort';
950
- result: SignatureAbortResult;
951
- } | {
952
- tag: 'signatures.analyze';
953
- analysis: ChangeAnalysis;
954
- } | {
955
- tag: 'signatures.finalizeCandidate';
956
- /** The installed signature as the sealed file reports it. */
957
- signature: SignatureDTO;
958
- /** What the sealed file's signatures forbid from now on. */
959
- protection: DocumentProtection;
960
- /** The version the sealed file IS (hash and length of the whole file). */
961
- version: BaseVersionInfo;
962
- } | {
963
- tag: 'metadata.read';
964
- metadata: DocumentMetadata;
965
- } | {
966
- tag: 'actions.read';
967
- snapshot: DocumentActionsSnapshot;
968
- } | {
969
- tag: 'metadata.update';
970
- result: MetadataUpdateResult;
971
- artifact?: LayerArtifactWorkerPayload;
972
- artifactFile?: LayerArtifactFileWorkerPayload;
973
- } | {
974
- tag: 'annotations.listRawAll';
975
- snapshot: AnnotationListSnapshotAllPages;
976
- } | {
977
- tag: 'annotations.listRawPage';
978
- snapshot: AnnotationListPageSnapshot;
979
- } | {
980
- tag: 'annotations.listFullPage';
981
- snapshot: AnnotationListPageSnapshot;
982
- } | {
983
- tag: 'annotations.renderAppearances';
984
- result: AnnotationAppearancesResult;
985
- } | {
986
- tag: 'annotations.renderAppearancesEncoded';
987
- result: AnnotationAppearancesEncodedResultWire;
988
- } | {
989
- tag: 'annotations.create';
990
- result: AnnotationCreateResult;
991
- artifact?: LayerArtifactWorkerPayload;
992
- artifactFile?: LayerArtifactFileWorkerPayload;
993
- } | {
994
- tag: 'annotations.update';
995
- result: AnnotationUpdateResult;
996
- artifact?: LayerArtifactWorkerPayload;
997
- artifactFile?: LayerArtifactFileWorkerPayload;
998
- } | {
999
- tag: 'annotations.delete';
1000
- result: AnnotationDeleteResult;
1001
- artifact?: LayerArtifactWorkerPayload;
1002
- artifactFile?: LayerArtifactFileWorkerPayload;
1003
- } | {
1004
- tag: 'annotations.flatten';
1005
- result: AnnotationFlattenResult;
1006
- artifact?: LayerArtifactWorkerPayload;
1007
- artifactFile?: LayerArtifactFileWorkerPayload;
1008
- } | {
1009
- tag: 'annotations.exportAppearance';
1010
- bytes: ArrayBuffer;
1011
- size: number;
1012
- } | {
1013
- tag: 'annotations.move';
1014
- result: AnnotationMoveResult;
1015
- artifact?: LayerArtifactWorkerPayload;
1016
- artifactFile?: LayerArtifactFileWorkerPayload;
1017
- } | {
1018
- tag: 'forms.list';
1019
- snapshot: FormSnapshot;
1020
- } | {
1021
- tag: 'forms.setValue';
1022
- result: FormSetValueResult;
1023
- artifact?: LayerArtifactWorkerPayload;
1024
- artifactFile?: LayerArtifactFileWorkerPayload;
1025
- } | {
1026
- tag: 'forms.reset';
1027
- result: FormSetValueResult;
1028
- artifact?: LayerArtifactWorkerPayload;
1029
- artifactFile?: LayerArtifactFileWorkerPayload;
1030
- } | {
1031
- tag: 'forms.applyEffects';
1032
- result: FormEffectsResult;
1033
- artifact?: LayerArtifactWorkerPayload;
1034
- artifactFile?: LayerArtifactFileWorkerPayload;
1035
- } | {
1036
- tag: 'forms.export';
1037
- format: FormDataFormat;
1038
- bytes: ArrayBuffer;
1039
- } | {
1040
- tag: 'forms.import';
1041
- result: FormImportResult;
1042
- artifact?: LayerArtifactWorkerPayload;
1043
- artifactFile?: LayerArtifactFileWorkerPayload;
1044
- } | {
1045
- tag: 'forms.repair';
1046
- result: FormRepairResult;
1047
- artifact?: LayerArtifactWorkerPayload;
1048
- artifactFile?: LayerArtifactFileWorkerPayload;
1049
- } | {
1050
- tag: 'forms.createField';
1051
- result: FormFieldCreateResult;
1052
- artifact?: LayerArtifactWorkerPayload;
1053
- artifactFile?: LayerArtifactFileWorkerPayload;
1054
- } | {
1055
- tag: 'forms.updateField';
1056
- result: FormFieldUpdateResult;
1057
- artifact?: LayerArtifactWorkerPayload;
1058
- artifactFile?: LayerArtifactFileWorkerPayload;
1059
- } | {
1060
- tag: 'forms.setSignatureAppearance';
1061
- result: FormFieldUpdateResult;
1062
- artifact?: LayerArtifactWorkerPayload;
1063
- artifactFile?: LayerArtifactFileWorkerPayload;
1064
- } | {
1065
- tag: 'forms.deleteField';
1066
- result: FormFieldDeleteResult;
1067
- artifact?: LayerArtifactWorkerPayload;
1068
- artifactFile?: LayerArtifactFileWorkerPayload;
1069
- } | {
1070
- tag: 'forms.attachWidget';
1071
- result: FormWidgetLinkResult;
1072
- artifact?: LayerArtifactWorkerPayload;
1073
- artifactFile?: LayerArtifactFileWorkerPayload;
1074
- } | {
1075
- tag: 'forms.detachWidget';
1076
- result: FormWidgetLinkResult;
1077
- artifact?: LayerArtifactWorkerPayload;
1078
- artifactFile?: LayerArtifactFileWorkerPayload;
1079
- } | {
1080
- tag: 'pages.list';
1081
- snapshot: PageListSnapshot;
1082
- } | {
1083
- tag: 'pages.move';
1084
- result: PageMoveResult;
1085
- artifact?: LayerArtifactWorkerPayload;
1086
- artifactFile?: LayerArtifactFileWorkerPayload;
1087
- } | {
1088
- tag: 'pages.rotate';
1089
- result: PageRotateResult;
1090
- artifact?: LayerArtifactWorkerPayload;
1091
- artifactFile?: LayerArtifactFileWorkerPayload;
1092
- } | {
1093
- tag: 'pages.delete';
1094
- result: PageDeleteResult;
1095
- artifact?: LayerArtifactWorkerPayload;
1096
- artifactFile?: LayerArtifactFileWorkerPayload;
1097
- } | {
1098
- tag: 'pages.setName';
1099
- result: PageNameResult;
1100
- artifact?: LayerArtifactWorkerPayload;
1101
- artifactFile?: LayerArtifactFileWorkerPayload;
1102
- } | {
1103
- tag: 'pages.removeName';
1104
- result: PageNameResult;
1105
- artifact?: LayerArtifactWorkerPayload;
1106
- artifactFile?: LayerArtifactFileWorkerPayload;
1107
- } | {
1108
- tag: 'pages.flatten';
1109
- result: PageFlattenResult;
1110
- artifact?: LayerArtifactWorkerPayload;
1111
- artifactFile?: LayerArtifactFileWorkerPayload;
1112
- } | {
1113
- tag: 'redaction.apply';
1114
- result: RedactionApplyResult;
1115
- artifact?: LayerArtifactWorkerPayload;
1116
- artifactFile?: LayerArtifactFileWorkerPayload;
1117
- } | {
1118
- tag: 'pages.extract';
1119
- bytes: ArrayBuffer;
1120
- size: number;
1121
- } | {
1122
- tag: 'attachments.list';
1123
- items: EmbeddedFileItem[];
1124
- } | {
1125
- tag: 'attachments.readFile';
1126
- content: AttachmentFileWorkerPayload;
1127
- } | {
1128
- tag: 'attachments.create';
1129
- result: AttachmentCreateResult;
1130
- artifact?: LayerArtifactWorkerPayload;
1131
- artifactFile?: LayerArtifactFileWorkerPayload;
1132
- } | {
1133
- tag: 'attachments.delete';
1134
- result: AttachmentDeleteResult;
1135
- artifact?: LayerArtifactWorkerPayload;
1136
- artifactFile?: LayerArtifactFileWorkerPayload;
1137
- } | {
1138
- tag: 'annotations.readFile';
1139
- content: AttachmentFileWorkerPayload;
1140
- } | {
1141
- tag: 'pages.insert';
1142
- result: PageInsertResult;
1143
- artifact?: LayerArtifactWorkerPayload;
1144
- artifactFile?: LayerArtifactFileWorkerPayload;
1145
- } | {
1146
- tag: 'pages.insertBlank';
1147
- result: PageInsertResult;
1148
- artifact?: LayerArtifactWorkerPayload;
1149
- artifactFile?: LayerArtifactFileWorkerPayload;
1150
- } | {
1151
- tag: 'pieceInfo.read';
1152
- snapshot: PieceInfoSnapshot | null;
1153
- } | {
1154
- tag: 'pieceInfo.update';
1155
- artifact?: LayerArtifactWorkerPayload;
1156
- artifactFile?: LayerArtifactFileWorkerPayload;
1157
- } | {
1158
- tag: 'pieceInfo.applications';
1159
- applications: string[];
1160
- } | {
1161
- tag: 'pieceInfo.clear';
1162
- artifact?: LayerArtifactWorkerPayload;
1163
- artifactFile?: LayerArtifactFileWorkerPayload;
1164
- } | {
1165
- tag: 'pages.text';
1166
- snapshot: PageTextSnapshot;
1167
- } | {
1168
- tag: 'pages.geometry';
1169
- snapshot: PageGeometrySnapshot;
1170
- } | {
1171
- tag: 'pages.render';
1172
- raster: PageRaster;
1173
- } | {
1174
- tag: 'pages.renderEncoded';
1175
- image: EncodedImageWire;
1176
- } | {
1177
- tag: 'search.query';
1178
- slice: SearchSlice;
1179
- } | {
1180
- tag: 'document.saveBuffer';
1181
- bytes: ArrayBuffer;
1182
- size: number;
1183
- } | {
1184
- tag: 'document.saveLayerBuffer';
1185
- bytes: ArrayBuffer;
1186
- size: number;
1187
- } | {
1188
- tag: 'document.saveFile';
1189
- path: string;
1190
- } | {
1191
- tag: 'document.probeSecurityFile';
1192
- security: DocumentSecurityProbeInfo;
1193
- } | {
1194
- tag: 'document.renderPageFile';
1195
- /** Durable page identity of the rendered index — the artifact key's pon. */
1196
- pageObjectNumber: PageObjectNumber;
1197
- pageCount: number;
1198
- raster: PageRaster;
1199
- } | {
1200
- tag: 'document.renderPageFileEncoded';
1201
- /** Durable page identity of the rendered index — the artifact key's pon. */
1202
- pageObjectNumber: PageObjectNumber;
1203
- pageCount: number;
1204
- image: EncodedImageWire;
1205
- } | {
1206
- tag: 'document.checkPasswordPermissions';
1207
- security: DocumentSecurityProbeInfo;
1208
- protection?: DocumentProtection | null;
1209
- } | {
1210
- tag: 'fonts.register';
1211
- fontKey: string;
1212
- identity: FontIdentityInfo;
1213
- } | {
1214
- tag: 'fonts.addFallback';
1215
- } | {
1216
- tag: 'fonts.clearFallbacks';
1217
- } | {
1218
- tag: 'fonts.clear';
1219
- } | {
1220
- tag: 'fonts.authorizeEditing';
1221
- identity: FontIdentityInfo;
1222
- } | {
1223
- tag: 'document.setFontSettings';
1224
- } | {
1225
- tag: 'close';
1226
- } | {
1227
- tag: 'shutdown';
1228
- };
1229
- type WorkerResponse = {
1230
- kind: 'resolve';
1231
- jobId: WorkerJobId;
1232
- result: WorkerResultPayload;
1233
- } | {
1234
- kind: 'reject';
1235
- jobId: WorkerJobId;
1236
- error: SerializedEngineError;
1237
- };
1238
- type WorkerLifecycleMessage = {
1239
- kind: 'ready';
1240
- } | {
1241
- kind: 'init-error';
1242
- error: string;
1243
- };
1244
- //#endregion
1245
- //#region src/engine/document-security-state.d.ts
1246
- interface DocumentHeadLike {
1247
- encryption: {
1248
- state: DocumentSecurityState['encryption']['state'];
1249
- requiresPassword: boolean | null;
1250
- };
1251
- permissions: DocumentSecurityState['permissions'];
1252
- access: DocumentSecurityState['access'];
1253
- }
1254
- declare function securityStateFromHead(head: DocumentHeadLike): DocumentSecurityState;
1255
- declare function permissionInfoFromProbe(info: DocumentSecurityProbeInfo): PdfPermissionInfo | null;
1256
- /**
1257
- * Same as {@link permissionInfoFromProbe} but additionally populates
1258
- * `flags` (typed PdfBits view) and `advisory` (capability-shaped
1259
- * booleans for UI badges). Used by routes that have a decoded `PdfBits`
1260
- * in hand — notably `/access`, which always does.
1261
- *
1262
- * Returns `null` for the same reason as the base function — when the
1263
- * PDF hasn't been probed yet so bits are unknown.
1264
- */
1265
- declare function permissionInfoWithAdvisory(info: DocumentSecurityProbeInfo, pdfBits: PdfBits): PdfPermissionInfo | null;
1266
- /**
1267
- * Translate a {@link PdfBits} view into the capability-shaped
1268
- * {@link PdfPermissionAdvisory}. The rules here MUST mirror the bit
1269
- * combinations the scope resolver uses for `pdf.permissions`
1270
- * expansion — `doc.print.high` requires bit 12 AND bit 3, etc.
1271
- */
1272
- declare function advisoryFromPdfBits(b: PdfBits): PdfPermissionAdvisory;
1273
- declare function securityStateFromProbe(info: DocumentSecurityProbeInfo, opts?: {
1274
- accessEndpoint?: string;
1275
- cdnRequired?: boolean;
1276
- }): DocumentSecurityState;
1277
- //#endregion
1278
- //#region src/wire/WirePack.d.ts
1279
- /**
1280
- * Wire-level packaging for messages crossing a Web Worker / Node
1281
- * `worker_thread` boundary.
1282
- *
1283
- * `WirePack<P>` is the typed pair every producer hands to a transport:
1284
- * the structured payload (validated against the wire schema) and an
1285
- * explicit, ordered list of `Transferable` objects that the producer
1286
- * intends to move (zero-copy) to the receiver.
1287
- *
1288
- * Why this is a first-class type and not a transport-side argument:
1289
- *
1290
- * - **Producer is the only one who knows.** Whether a particular
1291
- * `ArrayBuffer` should be moved (zero-copy, sender's reference
1292
- * detached) or copied (structured-cloned, both sides retain
1293
- * access) is a semantic decision belonging to the code that
1294
- * produced the buffer. Inferring it later — by walking the
1295
- * payload looking for `ArrayBuffer` instances and assuming they
1296
- * should all be transferred — is the v2 footgun this design
1297
- * replaces.
1298
- *
1299
- * - **Type-checked at the boundary.** A handler returning
1300
- * `WirePack<RenderResult>` cannot forget to declare its
1301
- * transfer list; the producer literally writes
1302
- * `wirePack({ ..., pixels }, [pixels.buffer])` in a single
1303
- * return statement. Forgetting yields a structurally identical
1304
- * copy (slow but correct), never a silent leak.
1305
- *
1306
- * - **Symmetric across the boundary.** Same `WirePack<P>` on the
1307
- * request path (main → worker) and the response path (worker →
1308
- * main). Inline transports treat `transfer` as a no-op since
1309
- * there's no thread boundary to cross.
1310
- *
1311
- * - **Schema-orthogonal.** Zod schemas validate `payload` and
1312
- * nothing else. `transfer` is not data; it's a memory-ownership
1313
- * manifest, and the design keeps those concerns separate.
1314
- *
1315
- * The receiver of a `postMessage(payload, { transfer })` call gets
1316
- * the payload back **with the listed buffers already moved into it**
1317
- * — there's no second argument on the receiving end. So `WirePack`
1318
- * only ever travels the producer-to-transport leg of the trip; the
1319
- * consumer side just sees the unwrapped `payload`.
1320
- */
1321
- interface WirePack<P> {
1322
- readonly payload: P;
1323
- readonly transfer: readonly Transferable[];
1324
- }
1325
- /**
1326
- * Singleton empty transfer list. Frozen so accidental in-place
1327
- * mutation throws in strict mode rather than silently mutating the
1328
- * default for future calls.
1329
- */
1330
- declare const EMPTY_TRANSFER: readonly Transferable[];
1331
- /**
1332
- * Producer-side helper: pair a typed payload with its transfer list.
1333
- *
1334
- * The `transfer` argument is optional; omitting it (or passing `[]`)
1335
- * is the explicit, type-checked way to say "I declare this message
1336
- * carries no transferables." That's structurally identical to the
1337
- * shape the v2 walker generated for non-binary messages, but here
1338
- * the declaration is at construction time, in the producer's own
1339
- * code, where the knowledge actually lives.
1340
- *
1341
- * wirePack({ kind: 'metadata.read', jobId, docId })
1342
- * wirePack({ kind: 'open.fatMem', jobId, docId, bytes }, [bytes])
1343
- * wirePack({ tag: 'page.render', pixels }, [pixels.buffer])
1344
- */
1345
- declare function wirePack<P>(payload: P, transfer?: readonly Transferable[]): WirePack<P>;
1346
- //#endregion
1347
- export { ANNOTATION_SUBTYPES, AbortError, type AbortWorkerRequest, type AbortableExecutor, AbortablePromise, type ActionReadBudget, type ActionsReadWorkerRequest, type AnalyzeInput, type AnnotationActor, type AnnotationAppearanceExportInput, type AnnotationAppearanceImage, type AnnotationAppearanceImageOptions, type AnnotationAppearanceImagesResult, type AnnotationAppearanceManifest, type AnnotationAppearanceManifestEntry, type AnnotationAppearanceMode, type AnnotationAppearanceRaster, type AnnotationAppearanceRenderOptions, type AnnotationAppearancesEncodedResultWire, 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 AnnotationsCreateWorkerRequest, type AnnotationsDeleteWorkerRequest, type AnnotationsExportAppearanceWorkerRequest, type AnnotationsFlattenWorkerRequest, type AnnotationsListFullPageWorkerRequest, type AnnotationsListRawAllWorkerRequest, type AnnotationsListRawPageWorkerRequest, type AnnotationsMoveWorkerRequest, type AnnotationsReadFileWorkerRequest, type AnnotationsRenderAppearancesEncodedWorkerRequest, type AnnotationsRenderAppearancesWorkerRequest, type AnnotationsUpdateWorkerRequest, type AppearanceAction, type AppearanceImpact, type AppearanceOutcome, type Assessment, type AttachmentContent, type AttachmentCreateResult, type AttachmentDeleteResult, type AttachmentFileBase, type AttachmentFileInfo, type AttachmentFileSource, type AttachmentFileWorkerPayload, type AttachmentsCache, type AttachmentsCreateWorkerRequest, type AttachmentsDeleteWorkerRequest, type AttachmentsListWorkerRequest, type AttachmentsReadFileWorkerRequest, type BaseVersionInfo, type BinaryMetadata, type BinaryMimeType, type BinaryPayload, type BinarySource, type BlendMode, type BuildCommentThreadsOptions, CONTINUOUS_RENDER_POLICY, type CacheDelta, type CachePins, type CalloutLine, type CaretAnnotationDTO, type CaretDraft, type CaretIntent, type CaretPatch, type CdnAccessInfo, type CdnAdapter, type ChangeAnalysis, type ChangeFinding, type CharBoundaryBias, type CharMapAnchor, type CheckboxFieldDTO, type CheckboxFieldDraft, type CheckboxFieldPatch, type CircleAnnotationDTO, type CircleDraft, type CirclePatch, type CloseWorkerRequest, 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_EDGE_RESOLVER_BUDGET, DEFAULT_PDF_SAVE_MODE, type DTOOfKind, type DigestAlgorithm, type DocCapability, type DocMdpPermission, type DocumentAccessInfo, type DocumentAccessReason, type DocumentActionsService, type DocumentActionsSnapshot, type DocumentAnnotationsService, type DocumentAttachmentsService, type DocumentCapabilities, type DocumentCheckPasswordPermissionsWorkerRequest, type DocumentEncryptionState, type DocumentEvent, type DocumentEventInit, type DocumentEventStream, type DocumentEventType, type DocumentFieldLock, type DocumentFontSettings, type DocumentFormsService, type DocumentHandle, type IdentityClaims as DocumentIdentity, type IdentityClaims, type DocumentManifest, type DocumentMetadata, type DocumentMetadataTrapped, type DocumentOpenMode, type DocumentPagesService, type DocumentProbeSecurityFileWorkerRequest, type DocumentProtection, type DocumentRedactionService, type DocumentRenderPageFileEncodedWorkerRequest, type DocumentRenderPageFileWorkerRequest, type DocumentRenderService, type DocumentSaveBufferWorkerRequest, type DocumentSaveFileWorkerRequest, type DocumentSaveLayerBufferWorkerRequest, type DocumentSearchService, type DocumentSecurityProbeInfo, type DocumentSecurityService, type DocumentSecurityState, type DocumentSetFontSettingsWorkerRequest, type DocumentSignaturesService, type DocumentUnlockInput, type DocumentUnlockResult, type DocumentVersionRef, type DocumentVersionWorkerRequest, type DraftOfKind, EMPTY_TRANSFER, EdgeResolver, type EdgeResolverBudget, type EmbeddedFileItem, type EmbeddedFileRef, type EncodedAppearanceWire, type EncodedImageWire, type Engine, EngineError, EngineErrorCode, type EngineErrorOptions, type EngineFactory, type EngineRenderPolicy, type EventOrigin, type FieldLockAction, type FieldLockSpec, type FileAttachmentAnnotationDTO, type FileAttachmentDraft, type FileAttachmentIcon, type FileAttachmentPatch, type FileAttachmentWireDraft, type FilledStyleDraftFields, type FilledStyleFields, type FilledStylePatchFields, type FoldOptions, type FoldedText, type FontEmbeddingPermission, type FontEmbeddingPolicy, type FontHandle, type FontIdentityInfo, type FontKey, type FontService, type FontSpec, type FontsAddFallbackWorkerRequest, type FontsAuthorizeEditingWorkerRequest, type FontsClearFallbacksWorkerRequest, type FontsClearWorkerRequest, type FontsRegisterWorkerRequest, 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 FormRepairOptions, type FormRepairResult, type FormSetValueResult, type FormSnapshot, type FormSubmissionEntry, type FormSubmissionReceipt, type FormSubmissionRequest, type FormValueEntry, type FormWidgetLinkResult, type FormWidgetRef, type FormsApplyEffectsWorkerRequest, type FormsAttachWidgetWorkerRequest, type FormsCreateFieldWorkerRequest, type FormsDeleteFieldWorkerRequest, type FormsDetachWidgetWorkerRequest, type FormsExportWorkerRequest, type FormsImportWorkerRequest, type FormsListWorkerRequest, type FormsRepairWorkerRequest, type FormsResetWorkerRequest, type FormsSetSignatureAppearanceWorkerRequest, type FormsSetValueWorkerRequest, type FormsUpdateFieldWorkerRequest, type FreeTextAnnotationDTO, type FreeTextDraft, type FreeTextFont, type FreeTextIntent, type FreeTextPatch, type GeometryStyleDraftFields, type GeometryStyleFields, type GeometryStylePatchFields, type HighlightAnnotationDTO, type HighlightDraft, type HighlightPatch, type InkAnnotationDTO, type InkDraft, type InkIntent, type InkList, type InkPatch, type InkStroke, InvalidScope, type LayerArtifactFileWorkerPayload, type LayerArtifactWorkerPayload, type LayerCloseWorkerRequest, type LayerOpenSource, 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 MetadataReadWorkerRequest, type MetadataService, type MetadataUpdateResult, type MetadataUpdateWorkerRequest, MissingIdentity, type ModificationLevel, type MutationMeta, NO_ANNOTATION_FLAGS, type NamedJavaScriptAction, type NamedPageEntry, type NamedPageTarget, type NormalizedDraft, type NormalizedPatch, type NoteIcon, type ObjectChange, type ObjectChangeKind, type ObjectChangeType, type ObjectReadStatus, type ObjectReferrer, type OpenFatMemoryWorkerRequest, type OpenInput, type OpenInputById, type OpenInputBytes, type OpenInputLayerBytes, type OpenInputLayerSource, type OpenInputShare, type OpenInputToken, type OpenLayerFileBaseWorkerRequest, type OpenLayerMemoryBaseWorkerRequest, type OpenOptions, type OpenWorkerRequest, PAGE_INSERT_BLANK_MAX_COUNT, PDF_BITS, PDF_CODE_TO_SUBTYPE, PDF_SUBTYPE_TO_CODE, type PageAnnotationsService, type PageBoxes, type PageDeleteInput, type PageDeleteResult, type PageFlattenInput, type PageFlattenItemResult, type PageFlattenResult, type PageFlattenStatus, type PageFlattenUsage, type PageGeometryGlyph, type PageGeometryRun, type PageGeometryService, type PageGeometrySnapshot, type PageHandle, 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 PageRenderService, type PageRenderTarget, type PageRenderViewport, type PageRotateInput, type PageRotateResult, type PageRotation, type PageState, type PageStructureCache, type PageTextLayout, type PageTextService, type PageTextSnapshot, type PagesDeleteWorkerRequest, type PagesExtractWorkerRequest, type PagesFlattenWorkerRequest, type PagesGeometryWorkerRequest, type PagesInsertBlankWorkerRequest, type PagesInsertWorkerRequest, type PagesListWorkerRequest, type PagesMoveWorkerRequest, type PagesRemoveNameWorkerRequest, type PagesRenderEncodedWorkerRequest, type PagesRenderWorkerRequest, type PagesRotateWorkerRequest, type PagesSetNameWorkerRequest, type PagesTextWorkerRequest, type ParsedCapability, type ParsedCollab, type ParsedScope, type ParsedVirtual, type ParsedWildcard, type PasswordPrompt, 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 PdfPermissionAdvisory, type PdfPermissionInfo, type PdfPoint, type PdfQuad, type PdfQuadCorners, type PdfRect, type PdfRectDifferences, type PdfRevision, type PdfRotation, type PdfSaveMode, type PdfSize, type PdfTextSegment, type PdfValue, PermissionDenied, type PieceInfoApplicationsWorkerRequest, type PieceInfoClearWorkerRequest, type PieceInfoEntry, type PieceInfoPatch, type PieceInfoPatchValue, type PieceInfoReadWorkerRequest, type PieceInfoService, type PieceInfoSnapshot, type PieceInfoUpdateWorkerRequest, 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 RedactionApplyWorkerRequest, type RefetchReason, type RenderEncode, type ResolvedUsage, type ResourceRef, type RestrictionAnchor, type ReviewStatus, type RevisionAnalysis, type RevisionField, type RevisionHealth, type RevisionStructure, type RevisionToken, type RichTextAlign, type RichTextBody, type RichTextDecoration, type RichTextDirection, type RichTextDocument, type RichTextDocumentInput, type RichTextMargins, type RichTextParagraph, type RichTextParagraphProps, type RichTextRun, type RichTextRunStyle, type RichTextScript, type RotatedGeometryGlyph, type RotatedGeometryRun, type Rotation, SEARCH_FOLD_VERSION, SEARCH_REGEX_MAX_LENGTH, SEARCH_SNIPPET_CONTEXT, SIGNATURE_POLICY_VERSION, type SearchMatch, type SearchMatchRange, type SearchMode, type SearchQuery, type SearchQueryIssue, type SearchQueryValidation, type SearchQueryWorkerRequest, type SearchRegexIssue, type SearchRegexValidation, type SearchRequest, type SearchSlice, type SearchSliceBudget, type SearchSnippet, type SerializedEngineError, type SessionKind, type ShapeAnnotationFields, type ShapeDraftFields, type ShapePatchFields, type ShutdownWorkerRequest, type SignatureAbortResult, type SignatureAppearanceInput, type SignatureCompleteInput, type SignatureCompleteResult, type SignatureCoverage, type SignatureDTO, type SignatureFieldDTO, type SignatureKind, type SignaturePrepareInput, type SignaturePrepared, type SignatureSeedValue, type SignatureSigner, type SignatureSnapshot, type SignatureSubFilter, type SignaturesAbortWorkerRequest, type SignaturesAnalyzeWorkerRequest, type SignaturesCompleteWorkerRequest, type SignaturesContentsWorkerRequest, type SignaturesDigestWorkerRequest, type SignaturesFinalizeCandidateWorkerRequest, type SignaturesListWorkerRequest, type SignaturesPrepareWorkerRequest, type SignaturesRevisionBytesWorkerRequest, type SignedDocumentPolicy, 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 StepInput, type StepVerdict, 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, USAGE_INCOMPLETE, type UnderlineAnnotationDTO, type UnderlineDraft, type UnderlinePatch, type UnknownFieldDTO, type UnsupportedAnnotationDTO, type UnsupportedDraft, type UnsupportedPatch, type UprightGeometryRun, type VertexAnnotationFields, type VertexDraftFields, type VertexPatchFields, type WeakAnnotationEditSession, 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 WirePack, type WireResource, type WireResourceMap, type WorkerJobId, type WorkerLifecycleMessage, type WorkerRequest, type WorkerResponse, type WorkerResultPayload, advisoryFromPdfBits, appearanceImpactOf, assessmentOf, boundaryTextOffset, buildCommentThreads, buildPageTextLayout, buildSnippet, buildThreads, canonicalSearchQuery, caps, changedKeys, changesAnnotationList, charBoundaryAtTextOffset, charMapViolation, charRangeForTextOffsets, checkAnyCapability, checkCapability, checkCollab, checkSetGroup, classifyRelation, collab, combine, conclude, createPageImageHandle, decodeFieldRefKey, decodePdfBits, decodeStableIdKey, decodeSubmitFormFlags, deriveProtection, deserializeError, dictEntries, encodeFieldRefKey, encodeStableIdKey, evaluateStep, expandRawScope, expandTextRangeToLine, expandTextRangeToWord, expandedCapabilities, fieldLockFor, filterMatches, foldOptionsFor, foldText, glyphLooseBounds, glyphLooseQuad, invalidatesWeakIndexRefs, isAbortError, isRotatedGeometryRun, isStateAnnotation, isValidPageObjectNumber, knownWeakAnnotationState, levelAllows, levelFromPermission, lockCovers, lockNameCovers, matchLiteral, matchPageText, matchRegex, materializePdfPermissions, minLevel, normalizeAnnotationDraft, normalizeAnnotationPatch, normalizeAttachmentFileSource, normalizePdfRect, parsePdfValue, parseScope, passwordPromptFromState, pdfPermissions, pdfQuadBounds, pdfQuadCorners, pdfQuadFromCorners, pdfRectFromOriginSize, pdfRectHeight, pdfRectSize, pdfRectToOriginSize, pdfRectWidth, pdfValueEquals, permissionInfoFromProbe, permissionInfoWithAdvisory, primaryFinding, protectedCapabilities, refKey, refsOf, resolveBinarySource, restrictionsFor, restrictionsOf, revisionTokensEqual, richTextParagraphsFromPlainText, richTextPlainText, sameEffectiveValue, searchContentEpoch, searchRectsForRange, searchSegmentsForRange, securityStateFromHead, securityStateFromProbe, semanticEqual, serializeError, shiftsExistingAnnotationIndices, sliceTextByChars, snapAppearanceScale, snapFullPageViewport, snapTileScale, sniffBinaryMetadata, stableStringify, subtypeFromCode, textGlyphAt, textGlyphQuad, textSegmentsForRange, toOriginalRange, validateScopeArray, validateSearchQuery, validateSearchRegex, wirePack, wordAt, wordBefore, worstVerdict };
1348
- //# sourceMappingURL=runtime.d.cts.map
1
+ import { $_ as WidgetActionEvent, $a as pageTurnOfDrawn, $c as FormMutationMeta, $d as OBJECT_NUMBER_ISSUE_LIMIT, $f as DownloadOptions, $g as decodeFieldRefKey, $h as SignatureCompleteResult, $i as ChangeItem, $l as PageFlattenResult, $m as OpenInputLayerBytes, $n as PageDeleteResult, $o as pageAnnotationOf, $p as PageRenderLayers, $r as EdgeResolver, $s as STANDARD_FACES, $t as SquigglyDraft, $u as WireResource, A_ as ParsedVirtual, Aa as FormFieldValue, Ac as deletedWith, Ad as UpdateOf, Af as FreeTextFont, Ag as Coordinates, Ah as allowsSomeFieldWrite, Ai as FormSubmissionEntry, Al as DTOOfKind, Am as normalizePdfRect, An as pathLength, Ao as WidgetStyleFields, Ap as charRangeForTextOffsets, Ar as FoldedText, As as StampAnnotation, Au as manifestBytesOf, B as RedactDraft, B_ as NamedJavaScriptAction, Ba as PlacedWidget, Bc as FormValuesImportBody, Bd as withFileFromResource, Bf as Size, Bg as pdfQuadOf, Bh as BaseVersionInfo, Bi as defaultEntryOfDraft, Bl as AnnotationImportResult, Bm as quarterTurnOf, Bn as METRES, Bo as SearchQuery, Bp as PageImageBlobSource, Br as isProtectableCapability, Bs as TextDraft, Bu as AttachmentContent, C as GeometryStylePatchFields, C_ as DocCapability, Ca as ChoiceDefaultTarget, Cc as isStateAnnotation, Cd as ANNOTATION_FIELD_SPACES, Cf as AnnotationBorderStyle, Cg as PushButtonFieldDTO, Ch as fieldRightsOf, Ci as RestrictionAnchor, Cl as assertFormBundleManifest, Cm as pdfPointsBounds, Cn as MeasurementUnavailable, Co as SignatureFieldDraft, Cp as isRotatedGeometryRun, Cr as validateSearchQuery, Ct as PolylineDraft, Cu as BundleCodec, D as UnsupportedAnnotation, D_ as ParsedCapability, Da as isAtDefault, Dc as AnnotationThread, Dd as CreateOf, Df as CaretIntent, Dg as ToggleFieldWidget, Dh as FieldWriteAction, Di as RevisionStructure, Dl as WidgetPatch, Dm as PdfQuadPoints, Dn as measurementReadout, Do as WidgetAppearance, Dp as boundaryTextOffset, Dr as wordAt, Dt as PolygonAnnotation, Du as BundleLimits, E as ShapePatchFields, E_ as Identity, Ea as fieldValueWriteOf, Ec as AnnotationRelationKind, Ed as ANNOTATION_RESOURCE_ROLES, Ef as BlendMode, Eg as TextFieldDTO, Eh as ChangeAuthority, Ei as RevisionHealth, El as WidgetDraft, Em as PdfOriginSize, En as isReadout, Eo as draftWritesScripts, Ep as CharMapAnchor, Er as matchLiteral, Es as FileAttachmentPatch, Eu as bundleCodec, F as PopupDraft, F_ as ActionReadBudget, Fa as ListBoxFieldPatch, Fc as FormImportBody, Fd as WireAnnotationResources, Ff as NO_ANNOTATION_FLAGS, Fg as PageQuad, Fh as authorizeAnnotationUpdate, Fl as pageRefsIn, Fm as pdfRectIntersection, Fn as MeasurementFormatOptions, Fo as pageGeometryOf, Fp as WrittenPageBoxes, Fr as ProtectableCapability, Ft as SquareDraft, Fu as ResourceId, G_ as PdfActionWarning, Ga as applyAnnotationPatch, Gc as WIDGET_FLAG_NAMES, Gd as PdfAnnotationSubtypeCode, Gf as WidgetBorderStyle, Gg as LinePoints, Gh as DocumentVersionRef, Gi as topRowOf, Gl as FormFieldCreateOptions, Gm as NamedPageEntry, Gn as RedactionApplyResult, Go as PdfTextSegment, Gp as PageImageSource, Gr as minLevel, Gt as StrikeoutAnnotation, Gu as AttachmentRef, H as CaretAnnotation, H_ as PdfActionTargetRef, Ha as PagePointTurn, Hc as FormValuesImportDropReason, Hd as AnnotationSubtype, Hf as StrikeoutIntent, Hg as CalloutLine, Hh as DocMdpPermission, Hi as fieldAfterValue, Hl as AnnotationCreateOptions, Hm as PageBoxes, Hn as squareMetres, Ho as SearchSlice, Hp as PageImageObjectUrl, Hr as levelFromPermission, Hs as TextPatch, Hu as AttachmentFileInfo, I_ as DocumentActionsSnapshot, Ia as PushButtonFieldPatch, Ic as FormImportDrop, Id as annotationResourceBuffers, If as Point, Ig as pageBoxOf, Ih as authorizeCapability, Ii as fitWidgetToFamily, Il as AnnotationDropReason, Im as pdfRectSize, In as measureFromKnownLength, Io as pageSearchSliceOf, Ip as pageBoxesOf, Ir as SIGNATURE_POLICY_VERSION, Is as StampFit, Iu as bundlePageMapping, J as FreeTextAnnotation, J_ as PdfFieldActions, Ja as pageGlyphLooseQuad, Jc as formValuesImportFacts, Jd as rgbOf, Jf as FontHandle, Jg as PdfRect, Jh as ModificationLevel, Ji as FormFieldDisplay, Jl as WriteOptions, Jm as CustomMetadata, Jn as changeFingerprint, Jo as pageLayoutOf, Jp as PageRaster, Jr as combine, Js as ResolveOptions, Ju as BinaryMetadata, K as CaretPatch, K_ as PdfActionWrite, Ka as drawnPointsOf, Kc as WidgetFlags, Kd as subtypeFromCode, Kf as WidgetCheckStyle, Kg as PdfPoint, Kh as FieldLockAction, Ki as widgetsAfterDisplay, Kl as FormWidgetAddOptions, Km as NamedPageTarget, Kn as RedactionApplyScope, Ko as TextLayout, Kp as PageLayerRights, Kr as protectedCapabilities, Ks as assertRichTextAgreement, Ku as WireAttachmentFile, L as PopupPatch, L_ as FieldActionsPatch, La as RadioFieldPatch, Lc as FormImportDropReason, Ld as assertAnnotationResources, Lf as Rect, Lg as pagePointOf, Lh as authorizeFieldGroup, Li as widgetAfterPatch, Ll as AnnotationImportBody, Lm as pdfRectToOriginSize, Ln as measureFromRatio, Lo as pageTextSegmentOf, Lp as pageRotationOf, Lr as deriveProtection, Lt as SquarePatch, Lu as resourceIdOf, M_ as PdfBits, Ma as CheckboxFieldPatch, Mc as AttachmentDeleteResult, Md as AnnotationResourceRole, Mf as InkIntent, Mg as PdfCoordinates, Mh as annotationWriteCapability, Mi as FormSubmissionReceipt, Ml as PatchOfKind, Mm as pdfQuarterTurnBox, Mn as scaleOf, Mo as pageAppearancesOf, Mp as PageTextRange, Mr as foldText, Ms as StampDraft, Mu as BundleImportTarget, N as PopupAnnotation, N_ as AbortableExecutor, Na as ComboBoxFieldPatch, Nc as AttachmentMutationMeta, Nd as AnnotationResources, Nf as LineEnding, Ng as PageBox, Nh as authorizeAnnotationCreate, Nl as AnnotationTransfer, Nm as pdfRectFromOriginSize, Nn as validAreaBoundary, No as pdfRenderTargetOf, Np as TextRange, Nr as toOriginalRange, Nt as SquareAnnotation, Nu as BundleKind, O_ as ParsedCollab, Oa as isNoOpWrite, Oc as buildThreads, Od as FieldSpace, Of as Color, Og as UnknownFieldDTO, Oh as allowsCapability, Oi as StepInput, Om as isSamePdfRect, On as MeasuredScale, Op as charBoundaryAtTextOffset, Or as wordBefore, Os as FileAttachmentIcon, Ou as DEFAULT_BUNDLE_LIMITS, P_ as AbortablePromise, Pa as FormFieldPatch, Pc as deletedAttachmentOf, Pd as ResourceBytes, Pf as LineEndings, Pg as PagePoint, Ph as authorizeAnnotationDelete, Pi as FormSubmissionRequest, Pl as mapPageRefs, Pm as pdfRectHeight, Pn as MeasureFromRatioOptions, Po as createTextLayout, Pp as DEFAULT_MEDIA_BOX, Pr as PROTECTABLE_CAPABILITIES, Ps as StampPatch, Pu as BundlePage, Q as FreeTextPatch, Q_ as WIDGET_ACTION_EVENTS, Qa as pageQuadBounds, Qc as FormFieldUpdateResult, Qd as OBJECT_NUMBER_CEILING, Qf as DEFAULT_PDF_SAVE_MODE, Qg as FormWidget, Qh as SignatureCompleteInput, Qi as ChangeAnswer, Ql as PageFlattenItemResult, Qm as OpenInputBytes, Qn as PageInsertResult, Qo as pageAnnotationDraftOf, Qp as PageRenderImage, Qr as DEFAULT_EDGE_RESOLVER_BUDGET, Qs as KeyForFace, Qu as BinarySource, R_ as FieldScriptEvent, Ra as SignatureFieldPatch, Rc as FormImportOptions, Rd as hasAnnotationResources, Rf as Rotation, Rg as pageQuadOf, Rh as authorizeFieldWrite, Ri as FieldDraftContext, Rl as AnnotationImportDrop, Rm as pdfRectTurnedBounds, Rn as AreaUnit, Ro as SearchLimit, Rp as renderSize, Rr as describeProtection, Rs as TextAnnotation, Ru as normalizeAttachmentFileSource, S as GeometryStyleFields, S_ as CollabFilter, Sa as CustomMetadataUpdateResult, Sc as buildCommentThreads, Sd as ShapeDimensionCaption, Sf as richTextPlainText, Sg as ListBoxFieldDTO, Sh as expandedCapabilities, Si as PdfValue, Sl as assertFormBundle, Sm as pdfPointUnturned, Sn as MeasurementReadout, So as RadioFieldDraft, Sp as glyphLooseQuad, Sr as matchRegex, Ss as FileAttachmentAnnotation, Su as assertAnnotationBundleManifest, T as ShapeDraftFields, T_ as FieldFilter, Ta as assertChoiceDefault, Tc as annotationKey, Td as ANNOTATION_FIELD_NAMES, Tf as AnnotationReplyType, Tg as SignatureFieldDTO, Th as AnnotationAuthority, Ti as RevisionField, Tm as pdfTurnOfUpright, Tn as isDimension, To as WidgetPlacement, Tp as CharBoundaryBias, Tr as foldOptionsFor, Tt as PolylinePatch, Tu as BundleTransferOptions, U_ as PdfActionTree, Ua as annotationOfDraft, Uc as FormValuesImportOptions, Ud as PDF_CODE_TO_SUBTYPE, Uf as TextAlignment, Ug as InkList, Uh as DocumentFieldLock, Ui as formFieldAfter, Ul as AnnotationUpdateOptions, Um as PageLayout, Un as squareOf, Uo as SearchSnippet, Up as PageImageOptions, Ur as lockCovers, Ut as CirclePatch, Uu as AttachmentFileSource, V as RedactPatch, V_ as PdfActionNode, Va as placedWidgetOf, Vc as FormValuesImportDrop, Vd as ANNOTATION_SUBTYPES, Vf as StandardFont, Vg as pdfRectOf, Vh as DigestAlgorithm, Vi as fieldAfterReset, Vl as annotationImportFacts, Vm as PageListSnapshot, Vn as areaUnitLabel, Vo as SearchRequest, Vp as PageImageHandle, Vr as levelAllows, Vt as CircleDraft, Vu as AttachmentFileBase, W as CaretDraft, W_ as PdfActionType, Wa as appearanceTurnOf, Wc as FormValuesImportResult, Wd as PDF_SUBTYPE_TO_CODE, Wf as VerticalAlignment, Wg as InkStroke, Wh as DocumentProtection, Wi as formFieldOfDraft, Wl as FlattenWriteOptions, Wm as PageTabOrder, Wn as RedactionApplyItemResult, Wo as searchQueryOf, Wp as PageImageResult, Wr as lockNameCovers, Ws as NoteIcon, Wu as AttachmentList, X as FreeTextDraft, X_ as SubmitFormFlags, Xa as pagePointUnturned, Xc as FormFieldCreateResult, Xd as EditSessionAccess, Xf as FontKey, Xg as PdfSize, Xh as SignatureAppearanceInput, Xi as AnnotationImportOp, Xl as FlattenOptions, Xm as OpenInput, Xn as PAGE_INSERT_BLANK_MAX_COUNT, Xo as pageSpaceBoxesOf, Xp as PageRenderEncodedFormat, Xr as primaryFinding, Xs as DescribeFont, Xu as sniffBinaryMetadata, Y_ as PdfPageActions, Ya as pagePointTurned, Yc as FormCalculationsReorderResult, Yd as sameColor, Yf as FontIdentityInfo, Yg as PdfRotation, Yh as PdfRevision, Yi as formEffectOps, Yl as opIdOf, Ym as MetadataPatch, Yn as isKeptRefusal, Yo as pageListOf, Yp as PageRenderBackground, Yr as conclude, Ys as assertDeclaredFields, Yt as StrikeoutPatch, Yu as BinaryMimeType, Z_ as SubmitFormPayload, Za as pagePointsBounds, Zc as FormFieldDeleteResult, Zd as EditSessionStatus, Zf as FontSpec, Zg as FormFieldRef, Zh as SignatureCancelResult, Zi as Change, Zl as PageFlattenInput, Zm as OpenInputById, Zn as PageInsertBlankSpec, Zo as visibleBoxesOf, Zp as PageRenderFormat, Zr as worstVerdict, Zs as FaceRequest, Zt as SquigglyAnnotation, Zu as BinaryPayload, _ as ColorStylePatchFields, __ as PDF_BITS, _a as PagePosition, _c as LayerScopes, _d as PdfNumberFormat, _f as RichTextParagraphProps, _g as FormFieldDTO, _h as checkCollab, _i as ObjectChange, _l as FormTransfer, _m as renderMatrix, _n as assertWritableMeasure, _o as ComboBoxFieldDraft, _p as PageGeometrySnapshot, _r as SEARCH_REGEX_MAX_LENGTH, _s as annotationDefaultsOf, _t as LineDraft, _u as closeExportSelection, _v as DocumentMetadata, a_ as PermissionDenied, aa as RecordedOp, ac as touchesCaption, ad as AnnotationDraftBase, af as parseObjectNumberRanges, ag as SignatureSeedValue, ah as OpenOptions, ai as restrictionsOf, al as FormWidgetRestoreResult, am as checkImageQuality, an as UnderlineDraft, ap as AnnotationAppearanceImageOptions, ar as AnnotationFlattenItemResult, as as VisibleBoxOf, au as AnnotationUpdateResult, av as needsScriptRight, b as FilledStylePatchFields, b_ as CollabAction, ba as reorderPart, bc as CommentThreadReview, bd as PolylineIntent, bf as RichTextScript, bg as FormFieldOrigin, bh as collabTargetOf, bi as ObjectReadStatus, bl as FormBundleWidget, bm as PdfPointTurn, bn as validNumberFormat, bo as ListBoxFieldDraft, bp as UprightGeometryRun, br as SearchRegexIssue, bs as AnnotationDraft, bu as WireAnnotationBundle, bv as IsoDateTime, c_ as encodeAnnotKey, ca as isUndoChange, cc as PlacedDraft, cd as LineDimensionCaption, cf as DEFAULT_RICH_TEXT_BODY, cg as SignatureSnapshot, ch as collab, ci as dictEntries, cl as FormWidgetsReorderResult, cm as resolvePageLayers, co as pageViewportsOf, cp as AnnotationAppearanceRaster, cr as PageNameInput, cs as mapAnnotationActions, ct as LinkDraft, cu as AppearanceChange, cv as PageDestination, d_ as SerializedEngineError, da as objectNumbersReferencedBy, dc as PdfLinkTarget, dd as MeasureFraction, df as RichTextDecoration, dg as CacheDelta, dh as CollabTarget, di as refsOf, dl as FormExportRows, dm as PageTransformOptions, dn as HighlightDraft, do as pageFormFieldOf, dp as AnnotationAppearancesResult, dr as PageReorderInput, ds as mapLinkTarget, du as UNBAKED_KINDS, dv as decodePageKey, e_ as encodeFieldRefKey, ea as ChangeItemType, ec as faceForFreeTextFont, ed as WireResourceMap, ef as ObjectNumberPool, eg as SignatureCoverage, eh as OpenInputLayerFile, ei as EdgeResolverBudget, el as FormRepairResult, em as PageRenderOptions, eo as pageTurnOfUpright, ep as PdfSaveMode, er as PageDeleteInput, es as pageAnnotationPatchOf, et as InkAnnotation, eu as PageFlattenStatus, ev as WidgetActionsPatch, f as VertexAnnotationFields, f_ as deserializeError, fa as resolveChangeResources, fc as PdfLinkTargetWritable, fd as PageMeasurementViewport, ff as RichTextDirection, fg as MutationMeta, fh as FieldGroupRight, fi as stableStringify, fl as FormExportSelection, fm as PixelBox, fo as pageFormSnapshotOf, fp as WidgetAppearancesQuery, fr as canonicalSearchQuery, fs as mapPageActions, fu as appearanceChangeOf, fv as encodePageKey, g as ColorStyleFields, g_ as validateScopeArray, ga as ListPosition, gc as LayerScopePlane, gd as PdfMeasurement, gf as RichTextParagraph, gg as FormFieldBase, gh as checkCapability, gi as ChangeFinding, gl as FormSnapshot, gm as renderAreaTransform, gn as assertPdfFloat, go as CheckboxFieldDraft, gp as PageGeometryRun, gr as matchPageText, gs as AnnotationDefaults, gu as AnnotationExportSelection, gv as isValidPageObjectNumber, h as ColorStyleDraftFields, h_ as parseScope, ha as FieldPosition, hc as ManifestPage, hd as PdfMeasure, hf as RichTextMargins, hg as ComboBoxFieldDTO, hh as checkAnyFieldAction, hi as ChangeAnalysis, hl as FormKind, hm as pageTransform, hn as PageScaleResult, ho as pdfWidgetPlacementOf, hp as PageGeometryGlyph, hr as buildSnippet, hs as ANNOTATION_DEFAULTS, ht as LineAnnotation, hu as AnnotationListMutationMeta, hv as PageObjectNumber, i_ as MissingIdentity, ia as RecordedChange, ic as resolveMeasurementDraft, id as AnnotationPatchBase, if as objectNumbersIn, ig as SignaturePrepared, ih as OpenInputToken, ii as evaluateStep, il as FormWidgetLinkResult, im as PageRenderViewport, io as shapeForRect, ip as AnnotationAppearanceImage, ir as AnnotationFlattenInput, is as DestinationBox, it as InkPatch, iu as AnnotationReorderResult, iv as isFieldScript, j as UnsupportedPatch, j_ as ParsedWildcard, ja as fieldValueOf, jc as AttachmentCreateResult, jd as ANNOTATION_RESOURCE_ROLE_NAMES, jf as FreeTextIntent, jg as PageCoordinates, jh as annotationWriteCapabilities, jl as DraftOfKind, jm as pdfQuadBounds, jn as polygonArea, jo as WidgetStylePatchFields, jp as sliceText, jr as SEARCH_FOLD_VERSION, jt as PolygonPatch, ju as BundleImportPages, k as UnsupportedDraft, k_ as ParsedScope, ka as valueEntriesEqual, kc as classifyRelation, kd as ReadOf, kf as DrawnBorderStyle, kg as FormValueEntry, kh as allowsFieldWrite, ki as StepVerdict, kl as AnnotationKindModule, km as normalizePdfQuad, kn as measurementPoint, ko as WidgetStyleDraftFields, kp as charMapViolation, kr as FoldOptions, kt as PolygonDraft, ku as assertWithinLimit, l as AnnotationSubtypeOfKind, l_ as EngineError, la as itemWrote, lc as DRAWN_RECT_KINDS, ld as LineIntent, lf as RichTextAlign, lg as SignatureSubFilter, lh as materializePdfPermissions, li as parsePdfValue, ll as deletedFieldOf, lm as PageRenderMatrix, ln as HighlightAnnotation, lo as pdfMeasureOf, lp as AnnotationAppearanceRenderOptions, lr as PageRemoveNameInput, ls as mapDocumentActions, lu as AppearanceImpact, lv as PdfDestination, m as VertexPatchFields, m_ as EngineErrorCode, ma as AnnotationPosition, mc as DocumentManifest, md as PdfForeignMeasure, mf as RichTextDocumentInput, mg as CheckboxFieldDTO, mh as checkAnyCapability, mi as Assessment, ml as formExportRowsOf, mm as PixelQuad, mo as pdfFormFieldDraftOf, mp as shownAppearances, mr as SEARCH_SNIPPET_CONTEXT, ms as pdfDestinationOf, mu as semanticEqual, mv as toPageRef, n as AnnotationListOptions, n_ as toFieldRef, na as ChangeResult, nc as freeTextFontForFace, nd as AnnotationFamily, nf as ObjectNumbersLost, ng as SignatureKind, nh as OpenInputLayerSource, ni as USAGE_INCOMPLETE, nl as FormSetValueResult, nm as PageRenderRaster, no as resolveAnnotationPatch, np as AnnotationAppearanceBatch, nr as PageRotateInput, ns as pdfAnnotationOf, nt as InkDraft, nu as AnnotationCreateResult, nv as decodeSubmitFormFlags, o as AnnotationKind, o_ as AnnotationRef, oa as SkippedChangeItem, oc as annotationPatchBetween, od as AnnotationBase, of as generateUuid, og as SignatureSigner, oh as TokenSource, oi as sameEffectiveValue, ol as FormWidgetRows, om as createPageImageHandle, op as AnnotationAppearanceImagesResult, or as AnnotationFlattenResult, os as mapActionNode, ot as LinkAnnotation, ou as deletedAnnotationsOf, ov as widgetActionsOf, p as VertexDraftFields, p_ as serializeError, pa as MetadataUpdateResult, pc as PdfStandardNamedAction, pd as PageMeasurementViewportList, pf as RichTextDocument, pg as CachePins, ph as FieldRights, pi as AnalyzeInput, pl as fieldMatches, pm as PixelPoint, pn as HighlightPatch, po as pageWidgetOf, pp as appearanceModesOf, pr as searchContentEpoch, ps as pageDestinationOf, pu as appearanceImpactOf, pv as pageRefsEqual, q_ as PdfAnnotationActions, qa as pageGlyphLooseBounds, qc as formImportFacts, qd as colorOf, qf as FontEmbeddingPermission, qg as PdfQuad, qh as FieldLockSpec, qi as FormEffect, ql as PageInsertBlankOptions, qm as CustomMetadataPatch, qn as RedactionApplyStatus, qo as createPdfTextLayout, qp as PageNetworkRenderFormat, qr as assessmentOf, qs as DraftResolveOptions, qt as StrikeoutDraft, qu as toAttachmentRef, r as concatAnnotationLists, r_ as InvalidScope, ra as FormImportOp, rc as isStandardFontName, rd as familyOfSubtype, rf as formatObjectNumberRanges, rg as SignaturePrepareInput, rh as OpenInputShare, ri as restrictionsFor, rl as FormWidgetDeleteResult, rm as PageRenderTarget, rn as UnderlineAnnotation, ro as resolveRectCommand, rp as AnnotationAppearanceBatchEntry, rr as AnnotationAppearanceExportInput, rs as pdfAnnotationPatchOf, ru as AnnotationDeleteResult, rv as fieldScriptOf, s_ as decodeAnnotKey, sa as isSkippedItem, sc as mergeAnnotationPatch, sd as LineCaptionPatch, sf as generateUuidV7, sg as SignatureSignerInput, sh as caps, si as changedKeys, sl as FormWidgetUpdateResult, sm as imageSourceOfBytes, sn as UnderlinePatch, so as pageMeasureOf, sp as AnnotationAppearanceMode, sr as PageNameResult, ss as mapActionTree, su as AppearanceAction, sv as writesScripts, t as AnnotationList, t_ as formWidget, ta as ChangeOp, tc as familyKey, td as resolveBinarySource, tf as ObjectNumberRange, tg as SignatureDTO, th as OpenInputLayerFileSource, ti as ResolvedUsage, tl as FormResetResult, tm as PageRenderQuery, tn as SquigglyPatch, to as resolveAnnotationDraft, tp as ANNOTATION_APPEARANCE_MODES, tr as PageRotateResult, ts as pdfAnnotationDraftOf, tu as PageFlattenUsage, tv as actionWriteOf, u_ as EngineErrorOptions, ua as objectNumbersNamedBy, uc as pdfAppearanceTurnOf, ud as LineLeader, uf as RichTextBody, ug as SignedDocumentPolicy, uh as pdfPermissions, ui as pdfValueEquals, ul as formResetFacts, um as PageRenderTransform, uo as pageFieldActionsOf, up as AnnotationAppearancesQuery, ur as PageReorderResult, us as mapFieldActions, ut as LinkPatch, uu as AppearanceOutcome, uv as PageRef, v as FilledStyleDraftFields, v_ as decodePdfBits, va as anchorOf, vc as BuildCommentThreadsOptions, vd as PdfViewport, vf as RichTextRun, vg as FormFieldFamily, vh as checkFieldAction, vi as ObjectChangeKind, vl as FormBundle, vm as renderTargetArea, vn as viewportForPoint, vo as FormFieldDraft, vp as RotatedGeometryGlyph, vr as SearchQueryIssue, vs as Annotation, vu as AnnotationBundle, vv as DocumentMetadataTrapped, w as ShapeAnnotationFields, w_ as FieldAction, wa as FieldValueWrite, wc as standardStateModelOf, wd as MeasuredFieldSpace, wf as AnnotationFlags, wg as RadioFieldDTO, wh as filterMatches, wi as RevisionAnalysis, wl as WidgetAnnotation, wm as pdfTurnOfDrawn, wn as deriveMeasurementLabel, wo as TextFieldDraft, wp as PageTextSnapshot, wr as validateSearchRegex, ws as FileAttachmentDraft, wu as BundleFileSpec, x as GeometryStyleDraftFields, x_ as CollabEntity, xa as reorderedList, xc as ReviewStatus, xd as ShapeCaptionPatch, xf as richTextParagraphsFromPlainText, xg as FormFieldWidget, xh as expandRawScope, xi as ObjectReferrer, xl as WireFormBundle, xm as pdfPointTurned, xn as DimensionInput, xo as PushButtonFieldDraft, xp as glyphLooseBounds, xr as SearchRegexValidation, xs as AnnotationPatch, xt as PolylineAnnotation, xu as assertAnnotationBundle, xv as compareIsoDateTime, y as FilledStyleFields, y_ as AnnotationActor, ya as positionIndex, yc as CommentThread, yd as PolygonIntent, yf as RichTextRunStyle, yg as FormFieldOption, yh as checkSetGroup, yi as ObjectChangeType, yl as FormBundleField, ym as renderTransform, yn as formatMeasurement, yo as FormFieldOptionInput, yp as RotatedGeometryRun, yr as SearchQueryValidation, ys as AnnotationDeclaration, yt as LinePatch, yu as AnnotationBundleItem, yv as DateInput, z as RedactAnnotation, z_ as FieldScriptWrite, za as TextFieldPatch, zc as FormImportResult, zd as resolveAnnotationResources, zf as STANDARD_FONTS, zg as pdfPointOf, zh as authorizeUnprotected, zi as FieldWithWidgets, zl as AnnotationImportOptions, zm as pdfRectWidth, zn as LengthUnit, zo as SearchMatch, zp as ImageSource, zr as fieldLockFor, zt as CircleAnnotation, zu as Attachment } from "./AnnotationList-CkijRHet.cjs";
2
+ import { $ as FormRepairOptions, A as PageHandle, B as CustomMetadataService, C as DocumentEventStream, D as DocumentEventOf, E as DocumentEventInit, F as LocalPageFormsService, G as EngineRenderPolicy, H as DocumentSearchService, I as PageFormsService, J as snapFullPageViewport, K as appearanceLatticeScale, L as LocalPageAnnotationsService, M as PageTextService, N as LocalPageRenderService, O as DocumentEventType, P as PageRenderService, Q as DocumentFormsService, R as PageAnnotationsService, S as WorkingSetPage, T as DocumentEvent, U as CONTINUOUS_RENDER_POLICY, V as DocumentSignaturesService, W as DocumentRenderService, X as DocumentRedactionService, Y as snapTileScale, Z as DocumentPagesService, _ as Engine, a as LocalPageHandle, b as CallFacts, c as PieceInfoService, d as PieceInfoPatch, et as DocumentAttachmentsService, f as PieceInfoPatchValue, g as FontService, h as FontEmbeddingPolicy, i as isLocalDocument, j as PageMeasureService, k as EventOrigin, l as PieceInfoUpdateResult, m as DocumentFontSettings, n as isLocalEngine, nt as DocumentActionsService, o as isLocalPage, p as PieceInfoSnapshot, q as snapAppearanceScale, r as LocalDocumentHandle, s as PieceInfoDeleteResult, t as LocalEngine, tt as DocumentAnnotationsService, u as PieceInfoEntry, v as EngineFactory, w as subscribeToType, x as CallPriority, y as DocumentHandle, z as MetadataService } from "./LocalEngine-DFoBm4B3.cjs";
3
+ import { a as DocumentAccessReason, c as DocumentSecurityService, d as DocumentUnlockResult, f as PdfPermissionAdvisory, h as passwordPromptFromState, i as DocumentAccessInfo, l as DocumentSecurityState, m as PasswordPrompt, n as CdnAccessInfo, o as DocumentEncryptionState, p as PdfPermissionInfo, r as CdnAdapter, s as DocumentOpenMode, t as AnnotationOwner, u as DocumentUnlockInput } from "./DocumentSecurityService-e6vp2de8.cjs";
4
+ import { $ as DocumentVersionWorkerRequest, $t as PieceInfoApplicationsWorkerRequest, A as AnnotationsReadFileWorkerRequest, An as LOCAL_ENGINE_BRAND, At as MetadataReadCustomWorkerRequest, B as ChangeRecordPayload, Bt as PagesFlattenWorkerRequest, C as AnnotationsDeleteWorkerRequest, Cn as WorkerLifecycleMessage, Ct as FormsUpdateWidgetWorkerRequest, D as AnnotationsImportWorkerRequest, Dn as changeEvents, Dt as LayerOpenSource, E as AnnotationsFlattenWorkerRequest, En as WorkerResultPayload, Et as LayerCloseWorkerRequest, F as AttachmentFileWorkerPayload, Ft as OpenLayerFileBaseWorkerRequest, G as DocumentProbeSecurityFileWorkerRequest, Gt as PagesRemoveNameWorkerRequest, H as DocumentApplyChangesWorkerRequest, Ht as PagesInsertBlankWorkerRequest, I as AttachmentsCreateWorkerRequest, It as OpenLayerMemoryBaseWorkerRequest, J as DocumentSaveBufferWorkerRequest, Jt as PagesReorderWorkerRequest, K as DocumentRenderPageFileEncodedWorkerRequest, Kt as PagesRenderEncodedWorkerRequest, L as AttachmentsDeleteWorkerRequest, Lt as OpenWorkerRequest, M as AnnotationsRenderAppearancesWorkerRequest, Mn as isAbortError, Mt as MetadataUpdateCustomWorkerRequest, N as AnnotationsReorderWorkerRequest, Nt as MetadataUpdateWorkerRequest, O as AnnotationsListWorkerRequest, On as EventHub, Ot as MeasureSetScaleWorkerRequest, P as AnnotationsUpdateWorkerRequest, Pt as OpenFatMemoryWorkerRequest, Q as DocumentSetFontSettingsWorkerRequest, Qt as PagesWorkingSetWorkerRequest, R as AttachmentsListWorkerRequest, Rt as PagesDeleteWorkerRequest, S as AnnotationsCreateWorkerRequest, Sn as WorkerJobRequest, St as FormsUpdateFieldWorkerRequest, T as AnnotationsExportWorkerRequest, Tn as WorkerResponse, Tt as LayerArtifactWorkerPayload, U as DocumentApplyWorkerRequest, Ut as PagesInsertWorkerRequest, V as CloseWorkerRequest, Vt as PagesGeometryWorkerRequest, W as DocumentCheckPasswordPermissionsWorkerRequest, Wt as PagesListWorkerRequest, X as DocumentSaveLayerBufferWorkerRequest, Xt as PagesSetNameWorkerRequest, Y as DocumentSaveFileWorkerRequest, Yt as PagesRotateWorkerRequest, Z as DocumentSecurityProbeInfo, Zt as PagesTextWorkerRequest, _ as securityStateFromHead, _n as SignaturesListWorkerRequest, _t as FormsReorderWidgetsWorkerRequest, a as Place, an as RequestEffect, at as FontsClearWorkerRequest, b as ActionsReadWorkerRequest, bn as WorkerControlMessage, bt as FormsSetSignatureAppearanceWorkerRequest, c as ViewSets, cn as ServerChange, ct as FormsCreateFieldWorkerRequest, d as placeIn, dn as SignaturesAnalyzeWorkerRequest, dt as FormsDetachWidgetWorkerRequest, en as PieceInfoDeleteWorkerRequest, et as EncodedAppearanceWire, f as placedBefore, fn as SignaturesCancelWorkerRequest, ft as FormsExportWorkerRequest, g as permissionInfoWithAdvisory, gn as SignaturesFinalizeCandidateWorkerRequest, gt as FormsReorderCalculationsWorkerRequest, h as permissionInfoFromProbe, hn as SignaturesDigestWorkerRequest, ht as FormsListWorkerRequest, i as JobTarget, in as RenderEncode, it as FontsClearFallbacksWorkerRequest, j as AnnotationsRenderAppearancesEncodedWorkerRequest, jn as AbortError, jt as MetadataReadWorkerRequest, k as AnnotationsReadAppearanceWorkerRequest, kn as SessionEventPublisher, kt as MeasureViewportsWorkerRequest, l as clearlyOutranks, ln as ServerChangeOutcome, lt as FormsDeleteFieldWorkerRequest, m as advisoryFromPdfBits, mn as SignaturesContentsWorkerRequest, mt as FormsImportWorkerRequest, n as WirePack, nn as PieceInfoUpdateWorkerRequest, nt as FontsAddFallbackWorkerRequest, o as Placed, on as SearchQueryWorkerRequest, ot as FontsRegisterWorkerRequest, p as rank, pn as SignaturesCompleteWorkerRequest, pt as FormsImportValuesWorkerRequest, q as DocumentRenderPageFileWorkerRequest, qt as PagesRenderWorkerRequest, r as wirePack, rn as RedactionApplyWorkerRequest, rt as FontsAuthorizeEditingWorkerRequest, s as RankedJob, sn as SearchScanRequest, st as FormsAddWidgetWorkerRequest, t as EMPTY_TRANSFER, tn as PieceInfoReadWorkerRequest, tt as EncodedImageWire, u as placeFor, un as ShutdownWorkerRequest, ut as FormsDeleteWidgetWorkerRequest, v as securityStateFromProbe, vn as SignaturesPrepareWorkerRequest, vt as FormsRepairWorkerRequest, w as AnnotationsExportAppearanceWorkerRequest, wn as WorkerRequest, wt as LayerArtifactFileWorkerPayload, x as AnnotationAppearancesEncodedResultWire, xn as WorkerJobId, xt as FormsSetValueWorkerRequest, y as AbortWorkerRequest, yn as SignaturesRevisionBytesWorkerRequest, yt as FormsResetWorkerRequest, z as AttachmentsReadFileWorkerRequest, zt as PagesExtractWorkerRequest } from "./runtime-p1WDzDo4.cjs";
5
+ export { ANNOTATION_APPEARANCE_MODES, ANNOTATION_DEFAULTS, ANNOTATION_FIELD_NAMES, ANNOTATION_FIELD_SPACES, ANNOTATION_RESOURCE_ROLES, ANNOTATION_RESOURCE_ROLE_NAMES, ANNOTATION_SUBTYPES, AbortError, type AbortWorkerRequest, type AbortableExecutor, AbortablePromise, type ActionReadBudget, type ActionsReadWorkerRequest, type AnalyzeInput, type Annotation, type AnnotationActor, type AnnotationAppearanceBatch, type AnnotationAppearanceBatchEntry, type AnnotationAppearanceExportInput, type AnnotationAppearanceImage, type AnnotationAppearanceImageOptions, type AnnotationAppearanceImagesResult, type AnnotationAppearanceMode, type AnnotationAppearanceRaster, type AnnotationAppearanceRenderOptions, type AnnotationAppearancesEncodedResultWire, type AnnotationAppearancesQuery, type AnnotationAppearancesResult, type AnnotationAuthority, type AnnotationBase, type AnnotationBorderStyle, type AnnotationBundle, type AnnotationBundleItem, type AnnotationCreateOptions, type AnnotationCreateResult, type AnnotationDeclaration, type AnnotationDefaults, type AnnotationDeleteResult, type AnnotationDraft, type AnnotationDraftBase, type AnnotationDropReason, type AnnotationExportSelection, type AnnotationFamily, type AnnotationFlags, type AnnotationFlattenInput, type AnnotationFlattenItemResult, type AnnotationFlattenResult, type AnnotationImportBody, type AnnotationImportDrop, type AnnotationImportOp, type AnnotationImportOptions, type AnnotationImportResult, type AnnotationKind, type AnnotationKindModule, type AnnotationList, type AnnotationListMutationMeta, type AnnotationListOptions, type AnnotationOwner, type AnnotationPatch, type AnnotationPatchBase, type AnnotationPosition, type AnnotationRef, type AnnotationRelationKind, type AnnotationReorderResult, type AnnotationReplyType, type AnnotationResourceRole, type AnnotationResources, type AnnotationSubtype, type AnnotationSubtypeOfKind, type AnnotationThread, AnnotationTransfer, type AnnotationUpdateOptions, type AnnotationUpdateResult, type AnnotationsCreateWorkerRequest, type AnnotationsDeleteWorkerRequest, type AnnotationsExportAppearanceWorkerRequest, type AnnotationsExportWorkerRequest, type AnnotationsFlattenWorkerRequest, type AnnotationsImportWorkerRequest, type AnnotationsListWorkerRequest, type AnnotationsReadAppearanceWorkerRequest, type AnnotationsReadFileWorkerRequest, type AnnotationsRenderAppearancesEncodedWorkerRequest, type AnnotationsRenderAppearancesWorkerRequest, type AnnotationsReorderWorkerRequest, type AnnotationsUpdateWorkerRequest, type AppearanceAction, type AppearanceChange, type AppearanceImpact, type AppearanceOutcome, AreaUnit, type Assessment, type Attachment, type AttachmentContent, type AttachmentCreateResult, type AttachmentDeleteResult, type AttachmentFileBase, type AttachmentFileInfo, type AttachmentFileSource, type AttachmentFileWorkerPayload, type AttachmentList, type AttachmentMutationMeta, type AttachmentRef, type AttachmentsCreateWorkerRequest, type AttachmentsDeleteWorkerRequest, type AttachmentsListWorkerRequest, type AttachmentsReadFileWorkerRequest, type BaseVersionInfo, type BinaryMetadata, type BinaryMimeType, type BinaryPayload, type BinarySource, type BlendMode, type BuildCommentThreadsOptions, type BundleCodec, type BundleFileSpec, type BundleImportPages, type BundleImportTarget, type BundleKind, type BundleLimits, type BundlePage, type BundleTransferOptions, CONTINUOUS_RENDER_POLICY, type CacheDelta, type CachePins, type CallFacts, type CallPriority, type CalloutLine, type CaretAnnotation, type CaretDraft, type CaretIntent, type CaretPatch, type CdnAccessInfo, type CdnAdapter, type Change, type ChangeAnalysis, type ChangeAnswer, type ChangeAuthority, type ChangeFinding, type ChangeItem, type ChangeItemType, type ChangeOp, type ChangeRecordPayload, type ChangeResult, type CharBoundaryBias, type CharMapAnchor, type CheckboxFieldDTO, type CheckboxFieldDraft, type CheckboxFieldPatch, type ChoiceDefaultTarget, type CircleAnnotation, type CircleDraft, type CirclePatch, type CloseWorkerRequest, 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, type Coordinates, type CreateOf, type CustomMetadata, type CustomMetadataPatch, type CustomMetadataService, type CustomMetadataUpdateResult, DEFAULT_BUNDLE_LIMITS, DEFAULT_EDGE_RESOLVER_BUDGET, DEFAULT_MEDIA_BOX, DEFAULT_PDF_SAVE_MODE, DEFAULT_RICH_TEXT_BODY, DRAWN_RECT_KINDS, type DTOOfKind, type DateInput, type DescribeFont, type DestinationBox, type DigestAlgorithm, DimensionInput, type DocCapability, type DocMdpPermission, type DocumentAccessInfo, type DocumentAccessReason, type DocumentActionsService, type DocumentActionsSnapshot, type DocumentAnnotationsService, type DocumentApplyChangesWorkerRequest, type DocumentApplyWorkerRequest, type DocumentAttachmentsService, type DocumentCheckPasswordPermissionsWorkerRequest, type DocumentEncryptionState, type DocumentEvent, type DocumentEventInit, type DocumentEventOf, type DocumentEventStream, type DocumentEventType, type DocumentFieldLock, type DocumentFontSettings, type DocumentFormsService, type DocumentHandle, type DocumentManifest, type DocumentMetadata, type DocumentMetadataTrapped, type DocumentOpenMode, type DocumentPagesService, type DocumentProbeSecurityFileWorkerRequest, type DocumentProtection, type DocumentRedactionService, type DocumentRenderPageFileEncodedWorkerRequest, type DocumentRenderPageFileWorkerRequest, type DocumentRenderService, type DocumentSaveBufferWorkerRequest, type DocumentSaveFileWorkerRequest, type DocumentSaveLayerBufferWorkerRequest, type DocumentSearchService, type DocumentSecurityProbeInfo, type DocumentSecurityService, type DocumentSecurityState, type DocumentSetFontSettingsWorkerRequest, type DocumentSignaturesService, type DocumentUnlockInput, type DocumentUnlockResult, type DocumentVersionRef, type DocumentVersionWorkerRequest, type DownloadOptions, type DraftOfKind, type DraftResolveOptions, type DrawnBorderStyle, EMPTY_TRANSFER, EdgeResolver, type EdgeResolverBudget, type EditSessionAccess, type EditSessionStatus, type EncodedAppearanceWire, type EncodedImageWire, type Engine, EngineError, EngineErrorCode, type EngineErrorOptions, type EngineFactory, type EngineRenderPolicy, EventHub, type EventOrigin, type FaceRequest, type FieldAction, type FieldActionsPatch, type FieldDraftContext, type FieldFilter, type FieldGroupRight, type FieldLockAction, type FieldLockSpec, type FieldPosition, type FieldRights, type FieldScriptEvent, type FieldScriptWrite, type FieldSpace, type FieldValueWrite, type FieldWithWidgets, type FieldWriteAction, type FileAttachmentAnnotation, type FileAttachmentDraft, type FileAttachmentIcon, type FileAttachmentPatch, type FilledStyleDraftFields, type FilledStyleFields, type FilledStylePatchFields, type FlattenOptions, type FlattenWriteOptions, type FoldOptions, type FoldedText, type FontEmbeddingPermission, type FontEmbeddingPolicy, type FontHandle, type FontIdentityInfo, type FontKey, type FontService, type FontSpec, type FontsAddFallbackWorkerRequest, type FontsAuthorizeEditingWorkerRequest, type FontsClearFallbacksWorkerRequest, type FontsClearWorkerRequest, type FontsRegisterWorkerRequest, type FormBundle, type FormBundleField, type FormBundleWidget, type FormCalculationsReorderResult, type FormEffect, type FormExportRows, type FormExportSelection, type FormFieldBase, type FormFieldCreateOptions, type FormFieldCreateResult, type FormFieldDTO, type FormFieldDeleteResult, type FormFieldDisplay, type FormFieldDraft, type FormFieldFamily, type FormFieldOption, type FormFieldOptionInput, type FormFieldOrigin, type FormFieldPatch, type FormFieldRef, type FormFieldUpdateResult, type FormFieldValue, type FormFieldWidget, type FormImportBody, type FormImportDrop, type FormImportDropReason, type FormImportOp, type FormImportOptions, type FormImportResult, type FormKind, type FormMutationMeta, type FormRepairOptions, type FormRepairResult, type FormResetResult, type FormSetValueResult, type FormSnapshot, type FormSubmissionEntry, type FormSubmissionReceipt, type FormSubmissionRequest, FormTransfer, type FormValueEntry, type FormValuesImportBody, type FormValuesImportDrop, type FormValuesImportDropReason, type FormValuesImportOptions, type FormValuesImportResult, type FormWidget, type FormWidgetAddOptions, type FormWidgetDeleteResult, type FormWidgetLinkResult, type FormWidgetRestoreResult, type FormWidgetRows, type FormWidgetUpdateResult, type FormWidgetsReorderResult, type FormsAddWidgetWorkerRequest, type FormsCreateFieldWorkerRequest, type FormsDeleteFieldWorkerRequest, type FormsDeleteWidgetWorkerRequest, type FormsDetachWidgetWorkerRequest, type FormsExportWorkerRequest, type FormsImportValuesWorkerRequest, type FormsImportWorkerRequest, type FormsListWorkerRequest, type FormsReorderCalculationsWorkerRequest, type FormsReorderWidgetsWorkerRequest, type FormsRepairWorkerRequest, type FormsResetWorkerRequest, type FormsSetSignatureAppearanceWorkerRequest, type FormsSetValueWorkerRequest, type FormsUpdateFieldWorkerRequest, type FormsUpdateWidgetWorkerRequest, type FreeTextAnnotation, type FreeTextDraft, type FreeTextFont, type FreeTextIntent, type FreeTextPatch, type GeometryStyleDraftFields, type GeometryStyleFields, type GeometryStylePatchFields, type HighlightAnnotation, type HighlightDraft, type HighlightPatch, type Identity, type ImageSource, type InkAnnotation, type InkDraft, type InkIntent, type InkList, type InkPatch, type InkStroke, InvalidScope, type IsoDateTime, type JobTarget, type KeyForFace, LOCAL_ENGINE_BRAND, type LayerArtifactFileWorkerPayload, type LayerArtifactWorkerPayload, type LayerCloseWorkerRequest, type LayerOpenSource, type LayerScopePlane, type LayerScopes, LengthUnit, type LineAnnotation, LineCaptionPatch, LineDimensionCaption, type LineDraft, type LineEnding, type LineEndings, LineIntent, LineLeader, type LinePatch, type LinePoints, type LinkAnnotation, type LinkDraft, type LinkPatch, type ListBoxFieldDTO, type ListBoxFieldDraft, type ListBoxFieldPatch, type ListPosition, type LocalDocumentHandle, type LocalEngine, type LocalPageAnnotationsService, type LocalPageFormsService, type LocalPageHandle, type LocalPageRenderService, METRES, type ManifestPage, MeasureFraction, MeasureFromRatioOptions, type MeasureSetScaleWorkerRequest, type MeasureViewportsWorkerRequest, type MeasuredFieldSpace, MeasuredScale, MeasurementFormatOptions, MeasurementReadout, MeasurementUnavailable, type MetadataPatch, type MetadataReadCustomWorkerRequest, type MetadataReadWorkerRequest, type MetadataService, type MetadataUpdateCustomWorkerRequest, type MetadataUpdateResult, type MetadataUpdateWorkerRequest, MissingIdentity, type ModificationLevel, type MutationMeta, NO_ANNOTATION_FLAGS, type NamedJavaScriptAction, type NamedPageEntry, type NamedPageTarget, type NoteIcon, OBJECT_NUMBER_CEILING, OBJECT_NUMBER_ISSUE_LIMIT, type ObjectChange, type ObjectChangeKind, type ObjectChangeType, type ObjectNumberPool, type ObjectNumberRange, type ObjectNumbersLost, type ObjectReadStatus, type ObjectReferrer, type OpenFatMemoryWorkerRequest, type OpenInput, type OpenInputById, type OpenInputBytes, type OpenInputLayerBytes, type OpenInputLayerFile, type OpenInputLayerFileSource, type OpenInputLayerSource, type OpenInputShare, type OpenInputToken, type OpenLayerFileBaseWorkerRequest, type OpenLayerMemoryBaseWorkerRequest, type OpenOptions, type OpenWorkerRequest, PAGE_INSERT_BLANK_MAX_COUNT, PDF_BITS, PDF_CODE_TO_SUBTYPE, PDF_SUBTYPE_TO_CODE, PROTECTABLE_CAPABILITIES, type PageAnnotationsService, type PageBox, type PageBoxes, type PageCoordinates, type PageDeleteInput, type PageDeleteResult, type PageDestination, type PageFlattenInput, type PageFlattenItemResult, type PageFlattenResult, type PageFlattenStatus, type PageFlattenUsage, type PageFormsService, type PageGeometryGlyph, type PageGeometryRun, type PageGeometrySnapshot, type PageHandle, type PageImageBlobSource, type PageImageHandle, type PageImageObjectUrl, type PageImageOptions, type PageImageResult, type PageImageSource, type PageInsertBlankOptions, type PageInsertBlankSpec, type PageInsertResult, type PageLayerRights, type PageLayout, type PageListSnapshot, type PageMeasureService, PageMeasurementViewport, PageMeasurementViewportList, type PageNameInput, type PageNameResult, type PageNetworkRenderFormat, type PageObjectNumber, type PagePoint, type PagePointTurn, type PagePosition, type PageQuad, type PageRaster, type PageRef, type PageRemoveNameInput, type PageRenderBackground, type PageRenderEncodedFormat, type PageRenderFormat, type PageRenderImage, type PageRenderLayers, type PageRenderMatrix, type PageRenderOptions, type PageRenderQuery, type PageRenderRaster, type PageRenderService, type PageRenderTarget, type PageRenderTransform, type PageRenderViewport, type PageReorderInput, type PageReorderResult, type PageRotateInput, type PageRotateResult, type PageScaleResult, type PageTabOrder, type PageTextRange, type PageTextService, type PageTextSnapshot, type PageTransformOptions, type PagesDeleteWorkerRequest, type PagesExtractWorkerRequest, type PagesFlattenWorkerRequest, type PagesGeometryWorkerRequest, type PagesInsertBlankWorkerRequest, type PagesInsertWorkerRequest, type PagesListWorkerRequest, type PagesRemoveNameWorkerRequest, type PagesRenderEncodedWorkerRequest, type PagesRenderWorkerRequest, type PagesReorderWorkerRequest, type PagesRotateWorkerRequest, type PagesSetNameWorkerRequest, type PagesTextWorkerRequest, type PagesWorkingSetWorkerRequest, type ParsedCapability, type ParsedCollab, type ParsedScope, type ParsedVirtual, type ParsedWildcard, type PasswordPrompt, type PatchOfKind, type PdfActionNode, type PdfActionTargetRef, type PdfActionTree, type PdfActionType, type PdfActionWarning, type PdfActionWrite, type PdfAnnotationActions, PdfAnnotationSubtypeCode, type PdfBits, type PdfCoordinates, type PdfDestination, type PdfFieldActions, PdfForeignMeasure, type PdfLinkTarget, type PdfLinkTargetWritable, PdfMeasure, PdfMeasurement, PdfNumberFormat, type PdfOriginSize, type PdfPageActions, type PdfPermissionAdvisory, type PdfPermissionInfo, type PdfPoint, type PdfPointTurn, type PdfQuad, type PdfQuadPoints, type PdfRect, type PdfRevision, type PdfRotation, type PdfSaveMode, type PdfSize, type PdfStandardNamedAction, type PdfTextSegment, type PdfValue, PdfViewport, PermissionDenied, type PieceInfoApplicationsWorkerRequest, type PieceInfoDeleteResult, type PieceInfoDeleteWorkerRequest, type PieceInfoEntry, type PieceInfoPatch, type PieceInfoPatchValue, type PieceInfoReadWorkerRequest, type PieceInfoService, type PieceInfoSnapshot, type PieceInfoUpdateResult, type PieceInfoUpdateWorkerRequest, type PixelBox, type PixelPoint, type PixelQuad, type Place, type Placed, type PlacedDraft, type PlacedWidget, type Point, type PolygonAnnotation, type PolygonDraft, PolygonIntent, type PolygonPatch, type PolylineAnnotation, type PolylineDraft, PolylineIntent, type PolylinePatch, type PopupAnnotation, type PopupDraft, type PopupPatch, type ProtectableCapability, type PushButtonFieldDTO, type PushButtonFieldDraft, type PushButtonFieldPatch, type RadioFieldDTO, type RadioFieldDraft, type RadioFieldPatch, type RankedJob, type ReadOf, type RecordedChange, type RecordedOp, type Rect, type RedactAnnotation, type RedactDraft, type RedactPatch, type RedactionApplyItemResult, type RedactionApplyResult, type RedactionApplyScope, type RedactionApplyStatus, type RedactionApplyWorkerRequest, type RenderEncode, type RequestEffect, type ResolveOptions, type ResolvedUsage, type ResourceBytes, type ResourceId, type RestrictionAnchor, type ReviewStatus, type RevisionAnalysis, type RevisionField, type RevisionHealth, type RevisionStructure, type RichTextAlign, type RichTextBody, type RichTextDecoration, type RichTextDirection, type RichTextDocument, type RichTextDocumentInput, type RichTextMargins, type RichTextParagraph, type RichTextParagraphProps, type RichTextRun, type RichTextRunStyle, type RichTextScript, type RotatedGeometryGlyph, type RotatedGeometryRun, type Rotation, SEARCH_FOLD_VERSION, SEARCH_REGEX_MAX_LENGTH, SEARCH_SNIPPET_CONTEXT, SIGNATURE_POLICY_VERSION, STANDARD_FACES, STANDARD_FONTS, type SearchLimit, type SearchMatch, type SearchQuery, type SearchQueryIssue, type SearchQueryValidation, type SearchQueryWorkerRequest, type SearchRegexIssue, type SearchRegexValidation, type SearchRequest, type SearchScanRequest, type SearchSlice, type SearchSnippet, type SerializedEngineError, type ServerChange, type ServerChangeOutcome, SessionEventPublisher, type ShapeAnnotationFields, ShapeCaptionPatch, ShapeDimensionCaption, type ShapeDraftFields, type ShapePatchFields, type ShutdownWorkerRequest, type SignatureAppearanceInput, type SignatureCancelResult, type SignatureCompleteInput, type SignatureCompleteResult, type SignatureCoverage, type SignatureDTO, type SignatureFieldDTO, type SignatureFieldDraft, type SignatureFieldPatch, type SignatureKind, type SignaturePrepareInput, type SignaturePrepared, type SignatureSeedValue, type SignatureSigner, type SignatureSignerInput, type SignatureSnapshot, type SignatureSubFilter, type SignaturesAnalyzeWorkerRequest, type SignaturesCancelWorkerRequest, type SignaturesCompleteWorkerRequest, type SignaturesContentsWorkerRequest, type SignaturesDigestWorkerRequest, type SignaturesFinalizeCandidateWorkerRequest, type SignaturesListWorkerRequest, type SignaturesPrepareWorkerRequest, type SignaturesRevisionBytesWorkerRequest, type SignedDocumentPolicy, type Size, type SkippedChangeItem, type SquareAnnotation, type SquareDraft, type SquarePatch, type SquigglyAnnotation, type SquigglyDraft, type SquigglyPatch, type StampAnnotation, type StampDraft, type StampFit, type StampPatch, type StandardFont, type StepInput, type StepVerdict, type StrikeoutAnnotation, type StrikeoutDraft, type StrikeoutIntent, type StrikeoutPatch, type SubmitFormFlags, type SubmitFormPayload, type TextAlignment, type TextAnnotation, type TextDraft, type TextFieldDTO, type TextFieldDraft, type TextFieldPatch, type TextLayout, type TextPatch, type TextRange, type ToggleFieldWidget, type TokenSource, UNBAKED_KINDS, USAGE_INCOMPLETE, type UnderlineAnnotation, type UnderlineDraft, type UnderlinePatch, type UnknownFieldDTO, type UnsupportedAnnotation, type UnsupportedDraft, type UnsupportedPatch, type UpdateOf, type UprightGeometryRun, type VertexAnnotationFields, type VertexDraftFields, type VertexPatchFields, type VerticalAlignment, type ViewSets, type VisibleBoxOf, WIDGET_ACTION_EVENTS, WIDGET_FLAG_NAMES, type WidgetActionEvent, type WidgetActionsPatch, type WidgetAnnotation, type WidgetAppearance, type WidgetAppearancesQuery, type WidgetBorderStyle, type WidgetCheckStyle, type WidgetDraft, type WidgetFlags, type WidgetPatch, type WidgetPlacement, type WidgetStyleDraftFields, type WidgetStyleFields, type WidgetStylePatchFields, type WireAnnotationBundle, type WireAnnotationResources, type WireAttachmentFile, type WireFormBundle, type WirePack, type WireResource, type WireResourceMap, type WorkerControlMessage, type WorkerJobId, type WorkerJobRequest, type WorkerLifecycleMessage, type WorkerRequest, type WorkerResponse, type WorkerResultPayload, type WorkingSetPage, type WriteOptions, type WrittenPageBoxes, actionWriteOf, advisoryFromPdfBits, allowsCapability, allowsFieldWrite, allowsSomeFieldWrite, anchorOf, annotationDefaultsOf, annotationImportFacts, annotationKey, annotationOfDraft, annotationPatchBetween, annotationResourceBuffers, annotationWriteCapabilities, annotationWriteCapability, appearanceChangeOf, appearanceImpactOf, appearanceLatticeScale, appearanceModesOf, appearanceTurnOf, applyAnnotationPatch, areaUnitLabel, assertAnnotationBundle, assertAnnotationBundleManifest, assertAnnotationResources, assertChoiceDefault, assertDeclaredFields, assertFormBundle, assertFormBundleManifest, assertPdfFloat, assertRichTextAgreement, assertWithinLimit, assertWritableMeasure, assessmentOf, authorizeAnnotationCreate, authorizeAnnotationDelete, authorizeAnnotationUpdate, authorizeCapability, authorizeFieldGroup, authorizeFieldWrite, authorizeUnprotected, boundaryTextOffset, buildCommentThreads, buildSnippet, buildThreads, bundleCodec, bundlePageMapping, canonicalSearchQuery, caps, changeEvents, changeFingerprint, changedKeys, charBoundaryAtTextOffset, charMapViolation, charRangeForTextOffsets, checkAnyCapability, checkAnyFieldAction, checkCapability, checkCollab, checkFieldAction, checkImageQuality, checkSetGroup, classifyRelation, clearlyOutranks, closeExportSelection, collab, collabTargetOf, colorOf, combine, compareIsoDateTime, concatAnnotationLists, conclude, createPageImageHandle, createPdfTextLayout, createTextLayout, decodeAnnotKey, decodeFieldRefKey, decodePageKey, decodePdfBits, decodeSubmitFormFlags, defaultEntryOfDraft, deletedAnnotationsOf, deletedAttachmentOf, deletedFieldOf, deletedWith, deriveMeasurementLabel, deriveProtection, describeProtection, deserializeError, dictEntries, draftWritesScripts, drawnPointsOf, encodeAnnotKey, encodeFieldRefKey, encodePageKey, evaluateStep, expandRawScope, expandedCapabilities, faceForFreeTextFont, familyKey, familyOfSubtype, fieldAfterReset, fieldAfterValue, fieldLockFor, fieldMatches, fieldRightsOf, fieldScriptOf, fieldValueOf, fieldValueWriteOf, filterMatches, fitWidgetToFamily, foldOptionsFor, foldText, formEffectOps, formExportRowsOf, formFieldAfter, formFieldOfDraft, formImportFacts, formResetFacts, formValuesImportFacts, formWidget, formatMeasurement, formatObjectNumberRanges, freeTextFontForFace, generateUuid, generateUuidV7, glyphLooseBounds, glyphLooseQuad, hasAnnotationResources, imageSourceOfBytes, isAbortError, isAtDefault, isDimension, isFieldScript, isKeptRefusal, isLocalDocument, isLocalEngine, isLocalPage, isNoOpWrite, isProtectableCapability, isReadout, isRotatedGeometryRun, isSamePdfRect, isSkippedItem, isStandardFontName, isStateAnnotation, isUndoChange, isValidPageObjectNumber, itemWrote, levelAllows, levelFromPermission, lockCovers, lockNameCovers, manifestBytesOf, mapActionNode, mapActionTree, mapAnnotationActions, mapDocumentActions, mapFieldActions, mapLinkTarget, mapPageActions, mapPageRefs, matchLiteral, matchPageText, matchRegex, materializePdfPermissions, measureFromKnownLength, measureFromRatio, measurementPoint, measurementReadout, mergeAnnotationPatch, minLevel, needsScriptRight, normalizeAttachmentFileSource, normalizePdfQuad, normalizePdfRect, objectNumbersIn, objectNumbersNamedBy, objectNumbersReferencedBy, opIdOf, pageAnnotationDraftOf, pageAnnotationOf, pageAnnotationPatchOf, pageAppearancesOf, pageBoxOf, pageBoxesOf, pageDestinationOf, pageFieldActionsOf, pageFormFieldOf, pageFormSnapshotOf, pageGeometryOf, pageGlyphLooseBounds, pageGlyphLooseQuad, pageLayoutOf, pageListOf, pageMeasureOf, pagePointOf, pagePointTurned, pagePointUnturned, pagePointsBounds, pageQuadBounds, pageQuadOf, pageRefsEqual, pageRefsIn, pageRotationOf, pageSearchSliceOf, pageSpaceBoxesOf, pageTextSegmentOf, pageTransform, pageTurnOfDrawn, pageTurnOfUpright, pageViewportsOf, pageWidgetOf, parseObjectNumberRanges, parsePdfValue, parseScope, passwordPromptFromState, pathLength, pdfAnnotationDraftOf, pdfAnnotationOf, pdfAnnotationPatchOf, pdfAppearanceTurnOf, pdfDestinationOf, pdfFormFieldDraftOf, pdfMeasureOf, pdfPermissions, pdfPointOf, pdfPointTurned, pdfPointUnturned, pdfPointsBounds, pdfQuadBounds, pdfQuadOf, pdfQuarterTurnBox, pdfRectFromOriginSize, pdfRectHeight, pdfRectIntersection, pdfRectOf, pdfRectSize, pdfRectToOriginSize, pdfRectTurnedBounds, pdfRectWidth, pdfRenderTargetOf, pdfTurnOfDrawn, pdfTurnOfUpright, pdfValueEquals, pdfWidgetPlacementOf, permissionInfoFromProbe, permissionInfoWithAdvisory, placeFor, placeIn, placedBefore, placedWidgetOf, polygonArea, positionIndex, primaryFinding, protectedCapabilities, quarterTurnOf, rank, refsOf, renderAreaTransform, renderMatrix, renderSize, renderTargetArea, renderTransform, reorderPart, reorderedList, resolveAnnotationDraft, resolveAnnotationPatch, resolveAnnotationResources, resolveBinarySource, resolveChangeResources, resolveMeasurementDraft, resolvePageLayers, resolveRectCommand, resourceIdOf, restrictionsFor, restrictionsOf, rgbOf, richTextParagraphsFromPlainText, richTextPlainText, sameColor, sameEffectiveValue, scaleOf, searchContentEpoch, searchQueryOf, securityStateFromHead, securityStateFromProbe, semanticEqual, serializeError, shapeForRect, shownAppearances, sliceText, snapAppearanceScale, snapFullPageViewport, snapTileScale, sniffBinaryMetadata, squareMetres, squareOf, stableStringify, standardStateModelOf, subscribeToType, subtypeFromCode, toAttachmentRef, toFieldRef, toOriginalRange, toPageRef, topRowOf, touchesCaption, validAreaBoundary, validNumberFormat, validateScopeArray, validateSearchQuery, validateSearchRegex, valueEntriesEqual, viewportForPoint, visibleBoxesOf, widgetActionsOf, widgetAfterPatch, widgetsAfterDisplay, wirePack, withFileFromResource, wordAt, wordBefore, worstVerdict, writesScripts };