@embedpdf/engine-core 3.0.0-next.15 → 3.0.0-next.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AnnotationList-CkijRHet.d.cts → AnnotationList-DcyhF2kU.d.cts} +1836 -1308
- package/dist/{AnnotationList-CkijRHet.d.ts → AnnotationList-DcyhF2kU.d.ts} +1836 -1308
- package/dist/{Change-CjImsrN0.cjs → Change-Ct-dB8D5.cjs} +115 -2
- package/dist/Change-Ct-dB8D5.cjs.map +1 -0
- package/dist/{Change-CKoxfTNY.js → Change-tMR34hTU.js} +92 -3
- package/dist/Change-tMR34hTU.js.map +1 -0
- package/dist/{DocumentRenderService-BfFdFSwI.cjs → DocumentRenderService-9IjSQEIU.cjs} +2 -1
- package/dist/{DocumentRenderService-BfFdFSwI.cjs.map → DocumentRenderService-9IjSQEIU.cjs.map} +1 -1
- package/dist/{DocumentRenderService-DV3J9lMz.js → DocumentRenderService-DFrZ9wfW.js} +2 -1
- package/dist/{DocumentRenderService-DV3J9lMz.js.map → DocumentRenderService-DFrZ9wfW.js.map} +1 -1
- package/dist/{DocumentSecurityService-e6vp2de8.d.cts → DocumentSecurityService-D2zA4NKi.d.cts} +2 -2
- package/dist/{DocumentSecurityService-CU1M6Q7m.d.ts → DocumentSecurityService-YJV9df8P.d.ts} +2 -2
- package/dist/{LocalEngine-DFoBm4B3.d.cts → LocalEngine-DBt2-GWF.d.ts} +102 -18
- package/dist/{LocalEngine-DPriFujS.d.ts → LocalEngine-IA9zh3Jh.d.cts} +102 -18
- package/dist/{authority-DLMNR7ff.cjs → authority-BFp6XM04.cjs} +373 -52
- package/dist/authority-BFp6XM04.cjs.map +1 -0
- package/dist/{authority-B3BklsB4.js → authority-PuxpGFhJ.js} +320 -53
- package/dist/authority-PuxpGFhJ.js.map +1 -0
- package/dist/{builders-CNj0POeY.js → builders-DV62HA3I.js} +6 -2
- package/dist/builders-DV62HA3I.js.map +1 -0
- package/dist/{builders-Cgdp_YCn.cjs → builders-DgTAj_tP.cjs} +6 -2
- package/dist/builders-DgTAj_tP.cjs.map +1 -0
- package/dist/{calibrate-DJBXnhLE.cjs → calibrate-DJbi1wuK.cjs} +118 -25
- package/dist/calibrate-DJbi1wuK.cjs.map +1 -0
- package/dist/{calibrate-7T3fnP8-.js → calibrate-nQFgCuki.js} +83 -26
- package/dist/calibrate-nQFgCuki.js.map +1 -0
- package/dist/charmap-Cprti1ta.js.map +1 -1
- package/dist/charmap-aYlefQP9.cjs.map +1 -1
- package/dist/conformance.cjs +1744 -75
- package/dist/conformance.cjs.map +1 -1
- package/dist/conformance.d.cts +105 -10
- package/dist/conformance.d.ts +105 -10
- package/dist/conformance.js +1738 -76
- package/dist/conformance.js.map +1 -1
- package/dist/index.cjs +25 -6
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -7
- package/dist/public.cjs +6 -4
- package/dist/public.d.cts +5 -5
- package/dist/public.d.ts +5 -5
- package/dist/public.js +5 -5
- package/dist/{resolver-CzxmD9Ck.js → resolver-BBggAxQc.js} +6 -3
- package/dist/resolver-BBggAxQc.js.map +1 -0
- package/dist/{resolver-D2OCtE8F.cjs → resolver-BWSWSF6R.cjs} +6 -3
- package/dist/resolver-BWSWSF6R.cjs.map +1 -0
- package/dist/{runtime-Cl0v56mm.d.ts → runtime-BaDKjxiu.d.ts} +67 -140
- package/dist/{runtime-p1WDzDo4.d.cts → runtime-CWEuiwbk.d.cts} +67 -140
- package/dist/runtime.cjs +267 -7
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.d.cts +5 -5
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +246 -8
- package/dist/runtime.js.map +1 -1
- package/dist/{schema-DzlUNk38.js → schema-6S2VmlAj.js} +8 -2
- package/dist/schema-6S2VmlAj.js.map +1 -0
- package/dist/{schema-C-gU4vj7.cjs → schema-miH6tWQC.cjs} +13 -1
- package/dist/schema-miH6tWQC.cjs.map +1 -0
- package/dist/{schemas-D6xOGjqg.js → schemas-BE2QGOit.js} +256 -59
- package/dist/schemas-BE2QGOit.js.map +1 -0
- package/dist/{schemas-Berf1swF.cjs → schemas-DljJR9ut.cjs} +397 -80
- package/dist/schemas-DljJR9ut.cjs.map +1 -0
- package/dist/validation.cjs +1 -1
- package/dist/validation.d.cts +1 -1
- package/dist/validation.d.ts +1 -1
- package/dist/validation.js +1 -1
- package/dist/{viewport-DlL5Bxbg.cjs → viewport-CHG9qQUb.cjs} +2 -2
- package/dist/{viewport-DlL5Bxbg.cjs.map → viewport-CHG9qQUb.cjs.map} +1 -1
- package/dist/{viewport-BJW13EGZ.js → viewport-DQR5LyX3.js} +2 -2
- package/dist/{viewport-BJW13EGZ.js.map → viewport-DQR5LyX3.js.map} +1 -1
- package/dist/wire.cjs +225 -57
- package/dist/wire.cjs.map +1 -1
- package/dist/wire.d.cts +3548 -1151
- package/dist/wire.d.ts +3548 -1151
- package/dist/wire.js +198 -53
- package/dist/wire.js.map +1 -1
- package/package.json +1 -1
- package/dist/Change-CKoxfTNY.js.map +0 -1
- package/dist/Change-CjImsrN0.cjs.map +0 -1
- package/dist/authority-B3BklsB4.js.map +0 -1
- package/dist/authority-DLMNR7ff.cjs.map +0 -1
- package/dist/builders-CNj0POeY.js.map +0 -1
- package/dist/builders-Cgdp_YCn.cjs.map +0 -1
- package/dist/calibrate-7T3fnP8-.js.map +0 -1
- package/dist/calibrate-DJBXnhLE.cjs.map +0 -1
- package/dist/resolver-CzxmD9Ck.js.map +0 -1
- package/dist/resolver-D2OCtE8F.cjs.map +0 -1
- package/dist/schema-C-gU4vj7.cjs.map +0 -1
- package/dist/schema-DzlUNk38.js.map +0 -1
- package/dist/schemas-Berf1swF.cjs.map +0 -1
- package/dist/schemas-D6xOGjqg.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
import { C as DocumentEventStream, D as DocumentEventOf, E as DocumentEventInit, O as DocumentEventType, S as WorkingSetPage, T as DocumentEvent, d as PieceInfoPatch, l as PieceInfoUpdateResult, p as PieceInfoSnapshot, s as PieceInfoDeleteResult, x as CallPriority } from "./LocalEngine-
|
|
3
|
-
import { f as PdfPermissionAdvisory, l as DocumentSecurityState, p as PdfPermissionInfo } from "./DocumentSecurityService-
|
|
1
|
+
import { $l as AnnotationImportResult, $u as AttachmentRef, Ap as PageGeometrySnapshot, Ba as FormFieldValue, Bg as SignatureCompleteResult, Bl as WidgetPatch, Bo as WidgetPlacement, Ca as AnnotationPosition, Cd as PdfMeasure, Cp as PageExtractFlatten, Cu as AnnotationExportSelection, Cv as DocumentActionsSnapshot, Dg as BaseVersionInfo, Du as WireAnnotationBundle, Fs as AnnotationDraft, Gg as SignaturePrepared, Gi as Change, Gn as RedactionApplyResult, Hg as SignatureDTO, Is as AnnotationPatch, Kn as RedactionApplyScope, Lp as PageTextSnapshot, Ma as CustomMetadataUpdateResult, Mm as PageFlattenResult, No as FormFieldDraft, Og as DigestAlgorithm, Pl as WireFormBundle, Pm as PageFlattenUsage, Pu as BundleLimits, Q_ as SerializedEngineError, Qc as FormImportResult, Qi as RecordedChange, R_ as FormFieldRef, Rg as SignatureCancelResult, Ru as BundleImportPages, Sa as MetadataUpdateResult, Th as DocumentOutline, Tl as FormExportSelection, Ud as WireAnnotationResources, Wa as FormFieldPatch, Wg as SignaturePrepareInput, X_ as EngineError, Xi as ChangeResult, Yg as SignatureSnapshot, Zg as SignedDocumentPolicy, Zv as PageRef, __ as Coordinates, _l as FormWidgetLinkResult, _p as AnnotationAppearanceRenderOptions, b_ as PageBox, bd as PageMeasurementViewport, bh as CustomMetadata, bl as FormWidgetUpdateResult, cl as FormCalculationsReorderResult, cm as PageNetworkRenderFormat, cp as PdfSaveMode, dl as FormFieldUpdateResult, du as AnnotationReorderResult, fg as AnnotationAuthority, fu as AnnotationUpdateResult, gl as FormWidgetDeleteResult, gm as PageRenderOptions, hl as FormSetValueResult, hn as PageScaleResult, hp as AnnotationAppearanceMode, iy as DocumentMetadata, jg as DocumentProtection, kl as FormSnapshot, lf as ObjectNumberRange, li as ChangeAnalysis, ll as FormFieldCreateResult, lu as AnnotationCreateResult, ml as FormResetResult, nr as PageNameResult, ns as SearchRequest, ov as AnnotationActor, pg as ChangeAuthority, ph as PageListSnapshot, pl as FormRepairResult, q_ as AnnotationRef, qu as Attachment, rl as FormValuesImportResult, rp as FontIdentityInfo, rs as SearchSlice, si as AnalyzeInput, su as WriteOptions, t as AnnotationList, tr as AnnotationFlattenResult, ud as AnnotationFamily, ul as FormFieldDeleteResult, um as PageRaster, uu as AnnotationDeleteResult, v_ as PageCoordinates, wa as FieldPosition, xh as MetadataPatch, xl as FormWidgetsReorderResult, xv as AbortablePromise, yh as CustomMetadataPatch, yp as AnnotationAppearancesResult, yv as PdfBits, zg as SignatureCompleteInput } from "./AnnotationList-DcyhF2kU.cjs";
|
|
2
|
+
import { C as DocumentEventStream, D as DocumentEventOf, E as DocumentEventInit, O as DocumentEventType, Q as DocumentOutlineService, S as WorkingSetPage, T as DocumentEvent, Z as DocumentPagesService, d as PieceInfoPatch, l as PieceInfoUpdateResult, nt as DocumentAttachmentsService, p as PieceInfoSnapshot, s as PieceInfoDeleteResult, x as CallPriority } from "./LocalEngine-IA9zh3Jh.cjs";
|
|
3
|
+
import { f as PdfPermissionAdvisory, l as DocumentSecurityState, p as PdfPermissionInfo } from "./DocumentSecurityService-D2zA4NKi.cjs";
|
|
4
4
|
//#region src/promise/AbortError.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* What a cancelled call rejects with: an `EngineError` with code `Aborted`,
|
|
@@ -374,6 +374,14 @@ interface ActionsReadWorkerRequest {
|
|
|
374
374
|
docId: string;
|
|
375
375
|
layerName?: string;
|
|
376
376
|
}
|
|
377
|
+
/** The document's outline: every item, depth first (no page is loaded). */
|
|
378
|
+
interface OutlineReadWorkerRequest {
|
|
379
|
+
kind: 'outline.read';
|
|
380
|
+
effect: 'read';
|
|
381
|
+
jobId: WorkerJobId;
|
|
382
|
+
docId: string;
|
|
383
|
+
layerName?: string;
|
|
384
|
+
}
|
|
377
385
|
/**
|
|
378
386
|
* The annotations of the given pages, or of every page: a raw read off the
|
|
379
387
|
* document (no page is loaded), one snapshot per page.
|
|
@@ -452,15 +460,20 @@ interface AnnotationsUpdateWorkerRequest<C extends Coordinates = PageCoordinates
|
|
|
452
460
|
* One change (`doc.apply`): its ops in order, as one transaction, or the
|
|
453
461
|
* reverse of an earlier write (`{ undoOf }`). Each op is checked as its
|
|
454
462
|
* single verb's job checks it, inside the write.
|
|
463
|
+
*
|
|
464
|
+
* A change stays in page space across the worker, both ways: each op's places
|
|
465
|
+
* turn into the file's coordinates right before it runs, and its answer's
|
|
466
|
+
* back right after, against the document as it is then. An earlier op of the
|
|
467
|
+
* same change can add, remove or put back a page a later one names.
|
|
455
468
|
*/
|
|
456
|
-
interface DocumentApplyWorkerRequest
|
|
469
|
+
interface DocumentApplyWorkerRequest extends WriteJobFields {
|
|
457
470
|
kind: 'document.apply';
|
|
458
471
|
effect: 'write';
|
|
459
472
|
jobId: WorkerJobId;
|
|
460
473
|
docId: string;
|
|
461
474
|
layerName?: string;
|
|
462
475
|
/** The ops, with their bytes by role on the transfer list, as the single verbs send them. */
|
|
463
|
-
change: Change<
|
|
476
|
+
change: Change<PageCoordinates, WireAnnotationResources>;
|
|
464
477
|
/**
|
|
465
478
|
* Who the change acts for, what they may do and what the document's
|
|
466
479
|
* signatures forbid, checked inside the write against each op (the ops of
|
|
@@ -482,10 +495,10 @@ interface ChangeRecordPayload {
|
|
|
482
495
|
readonly steps: readonly unknown[];
|
|
483
496
|
}
|
|
484
497
|
/** One change of a server request (see `DocumentApplyChangesWorkerRequest`). */
|
|
485
|
-
interface ServerChange
|
|
498
|
+
interface ServerChange {
|
|
486
499
|
opId: string;
|
|
487
500
|
/** Its ops (a single-verb route's one op, an import's among them), or an undo. */
|
|
488
|
-
change: RecordedChange<
|
|
501
|
+
change: RecordedChange<PageCoordinates, WireAnnotationResources>;
|
|
489
502
|
/** Who the change acts for (see `DocumentApplyWorkerRequest.authority`). */
|
|
490
503
|
authority: ChangeAuthority;
|
|
491
504
|
/**
|
|
@@ -501,24 +514,25 @@ interface ServerChange<C extends Coordinates = PageCoordinates> {
|
|
|
501
514
|
* A server request's changes, as one job: each runs in its own layer
|
|
502
515
|
* transaction, committed or rolled back on its own, in order. A refusal is
|
|
503
516
|
* that change's answer; anything else fails the job. The job saves one
|
|
504
|
-
* artifact for the changes that applied.
|
|
517
|
+
* artifact for the changes that applied. Page space both ways, each op
|
|
518
|
+
* converted as it runs (see `DocumentApplyWorkerRequest`).
|
|
505
519
|
*/
|
|
506
|
-
interface DocumentApplyChangesWorkerRequest
|
|
520
|
+
interface DocumentApplyChangesWorkerRequest {
|
|
507
521
|
kind: 'document.applyChanges';
|
|
508
522
|
effect: 'write';
|
|
509
523
|
jobId: WorkerJobId;
|
|
510
524
|
docId: string;
|
|
511
525
|
layerName?: string;
|
|
512
|
-
changes: ServerChange
|
|
526
|
+
changes: ServerChange[];
|
|
513
527
|
/** See `WriteJobFields.objectNumberFloor`. */
|
|
514
528
|
objectNumberFloor?: number;
|
|
515
529
|
artifactPath?: string;
|
|
516
530
|
}
|
|
517
531
|
/** What one change of a server request answered. */
|
|
518
|
-
type ServerChangeOutcome
|
|
532
|
+
type ServerChangeOutcome = {
|
|
519
533
|
opId: string;
|
|
520
534
|
status: 'applied';
|
|
521
|
-
result: ChangeResult
|
|
535
|
+
result: ChangeResult;
|
|
522
536
|
/** What undoes it, for the caller to keep; null when nothing can. */
|
|
523
537
|
record: ChangeRecordPayload | null;
|
|
524
538
|
} | {
|
|
@@ -996,36 +1010,6 @@ interface AnnotationAppearancesEncodedResultWire<C extends Coordinates = PageCoo
|
|
|
996
1010
|
page: PageRef;
|
|
997
1011
|
appearances: EncodedAppearanceWire<C>[];
|
|
998
1012
|
}
|
|
999
|
-
interface PagesReorderWorkerRequest extends WriteJobFields {
|
|
1000
|
-
kind: 'pages.reorder';
|
|
1001
|
-
effect: 'contentWrite';
|
|
1002
|
-
jobId: WorkerJobId;
|
|
1003
|
-
docId: string;
|
|
1004
|
-
layerName?: string;
|
|
1005
|
-
pages: PageRef[];
|
|
1006
|
-
position: PagePosition;
|
|
1007
|
-
artifactPath?: string;
|
|
1008
|
-
}
|
|
1009
|
-
interface PagesRotateWorkerRequest extends WriteJobFields {
|
|
1010
|
-
kind: 'pages.rotate';
|
|
1011
|
-
effect: 'contentWrite';
|
|
1012
|
-
jobId: WorkerJobId;
|
|
1013
|
-
docId: string;
|
|
1014
|
-
layerName?: string;
|
|
1015
|
-
pages: PageRef[];
|
|
1016
|
-
/** Absolute rotation in degrees clockwise — see `PageRotateInput`. */
|
|
1017
|
-
rotation: PdfRotation;
|
|
1018
|
-
artifactPath?: string;
|
|
1019
|
-
}
|
|
1020
|
-
interface PagesDeleteWorkerRequest extends WriteJobFields {
|
|
1021
|
-
kind: 'pages.delete';
|
|
1022
|
-
effect: 'contentWrite';
|
|
1023
|
-
jobId: WorkerJobId;
|
|
1024
|
-
docId: string;
|
|
1025
|
-
layerName?: string;
|
|
1026
|
-
pages: PageRef[];
|
|
1027
|
-
artifactPath?: string;
|
|
1028
|
-
}
|
|
1029
1013
|
/** Register/rename a `/Names /Pages` entry — see `PageNameInput`. */
|
|
1030
1014
|
interface PagesSetNameWorkerRequest extends WriteJobFields {
|
|
1031
1015
|
kind: 'pages.setName';
|
|
@@ -1076,6 +1060,9 @@ interface PagesExtractWorkerRequest {
|
|
|
1076
1060
|
docId: string;
|
|
1077
1061
|
layerName?: string;
|
|
1078
1062
|
pages: PageRef[];
|
|
1063
|
+
/** A flattened copy: what it paints, already checked against the caller's
|
|
1064
|
+
* rights (`resolvePageExtract`). Absent for a plain copy. */
|
|
1065
|
+
flatten?: PageExtractFlatten;
|
|
1079
1066
|
}
|
|
1080
1067
|
/** List the document catalog's `/EmbeddedFiles` name tree (a read). */
|
|
1081
1068
|
interface AttachmentsListWorkerRequest {
|
|
@@ -1105,34 +1092,6 @@ interface AttachmentsReadFileWorkerRequest {
|
|
|
1105
1092
|
/** Decompression-bomb cap forwarded to the runtime. Absent/0 = unlimited. */
|
|
1106
1093
|
maxDecodedBytes?: number;
|
|
1107
1094
|
}
|
|
1108
|
-
/**
|
|
1109
|
-
* Create a document-level embedded file (a mutation — layer sessions
|
|
1110
|
-
* persist an artifact). `file` is the same post-normalization wire shape
|
|
1111
|
-
* the file-attachment annotation draft uses: metadata in JSON, bytes
|
|
1112
|
-
* out-of-band under the referenced resource key. `file.name` becomes the
|
|
1113
|
-
* name-tree key.
|
|
1114
|
-
*/
|
|
1115
|
-
interface AttachmentsCreateWorkerRequest extends WriteJobFields {
|
|
1116
|
-
kind: 'attachments.create';
|
|
1117
|
-
effect: 'write';
|
|
1118
|
-
jobId: WorkerJobId;
|
|
1119
|
-
docId: string;
|
|
1120
|
-
layerName?: string;
|
|
1121
|
-
file: WireAttachmentFile;
|
|
1122
|
-
/** Binary payload referenced by `file.resources.file` — transfer-list bytes. */
|
|
1123
|
-
resources?: WireResourceMap;
|
|
1124
|
-
artifactPath?: string;
|
|
1125
|
-
}
|
|
1126
|
-
/** Delete a document-level embedded file by key (a mutation). */
|
|
1127
|
-
interface AttachmentsDeleteWorkerRequest extends WriteJobFields {
|
|
1128
|
-
kind: 'attachments.delete';
|
|
1129
|
-
effect: 'write';
|
|
1130
|
-
jobId: WorkerJobId;
|
|
1131
|
-
docId: string;
|
|
1132
|
-
layerName?: string;
|
|
1133
|
-
ref: AttachmentRef;
|
|
1134
|
-
artifactPath?: string;
|
|
1135
|
-
}
|
|
1136
1095
|
/** Decode the file embedded in a FileAttachment annotation's `/FS`.
|
|
1137
1096
|
* Same read semantics and delivery modes as `attachments.readFile`. */
|
|
1138
1097
|
interface AnnotationsReadFileWorkerRequest {
|
|
@@ -1147,36 +1106,6 @@ interface AnnotationsReadFileWorkerRequest {
|
|
|
1147
1106
|
/** Decompression-bomb cap forwarded to the runtime. Absent/0 = unlimited. */
|
|
1148
1107
|
maxDecodedBytes?: number;
|
|
1149
1108
|
}
|
|
1150
|
-
/** Insert every page of a standalone PDF (transferable `bytes`) at
|
|
1151
|
-
* `position` (omitted → `'end'`). A structural mutation: layer sessions
|
|
1152
|
-
* persist an artifact like reorder/rotate/delete. */
|
|
1153
|
-
interface PagesInsertWorkerRequest extends WriteJobFields {
|
|
1154
|
-
kind: 'pages.insert';
|
|
1155
|
-
effect: 'contentWrite';
|
|
1156
|
-
jobId: WorkerJobId;
|
|
1157
|
-
docId: string;
|
|
1158
|
-
layerName?: string;
|
|
1159
|
-
bytes: ArrayBuffer;
|
|
1160
|
-
position?: PagePosition;
|
|
1161
|
-
artifactPath?: string;
|
|
1162
|
-
}
|
|
1163
|
-
/** Create `count` (default 1) blank pages of `size` (PDF points) at
|
|
1164
|
-
* `position` (omitted → `'end'`). A structural mutation exactly like
|
|
1165
|
-
* `pages.insert`, minus the bytes: pure parameters, so nothing transfers;
|
|
1166
|
-
* layer sessions persist an artifact identically. */
|
|
1167
|
-
interface PagesInsertBlankWorkerRequest extends WriteJobFields {
|
|
1168
|
-
kind: 'pages.insertBlank';
|
|
1169
|
-
effect: 'contentWrite';
|
|
1170
|
-
jobId: WorkerJobId;
|
|
1171
|
-
docId: string;
|
|
1172
|
-
layerName?: string;
|
|
1173
|
-
size: PdfSize;
|
|
1174
|
-
count?: number;
|
|
1175
|
-
position?: PagePosition;
|
|
1176
|
-
/** The object numbers the new pages get, one per page; the next free ones when absent. */
|
|
1177
|
-
objectNumbers?: number[];
|
|
1178
|
-
artifactPath?: string;
|
|
1179
|
-
}
|
|
1180
1109
|
/**
|
|
1181
1110
|
* `/PieceInfo` private application data (ISO 32000 §14.5). One job family
|
|
1182
1111
|
* serves both levels: `pageObjectNumber` present → the page's `/PieceInfo`,
|
|
@@ -1436,7 +1365,7 @@ interface LayerArtifactFileWorkerPayload {
|
|
|
1436
1365
|
* space as callers send them, the file's coordinates once the worker has
|
|
1437
1366
|
* converted them for its handlers.
|
|
1438
1367
|
*/
|
|
1439
|
-
type WorkerRequest<C extends Coordinates = PageCoordinates> = OpenWorkerRequest | MetadataReadWorkerRequest | MetadataUpdateWorkerRequest | MetadataReadCustomWorkerRequest | MetadataUpdateCustomWorkerRequest | ActionsReadWorkerRequest | AnnotationsListWorkerRequest | AnnotationsRenderAppearancesWorkerRequest | AnnotationsRenderAppearancesEncodedWorkerRequest | AnnotationsCreateWorkerRequest<C> | AnnotationsUpdateWorkerRequest<C> | AnnotationsDeleteWorkerRequest | AnnotationsReorderWorkerRequest | DocumentApplyWorkerRequest
|
|
1368
|
+
type WorkerRequest<C extends Coordinates = PageCoordinates> = OpenWorkerRequest | MetadataReadWorkerRequest | MetadataUpdateWorkerRequest | MetadataReadCustomWorkerRequest | MetadataUpdateCustomWorkerRequest | ActionsReadWorkerRequest | OutlineReadWorkerRequest | AnnotationsListWorkerRequest | AnnotationsRenderAppearancesWorkerRequest | AnnotationsRenderAppearancesEncodedWorkerRequest | AnnotationsCreateWorkerRequest<C> | AnnotationsUpdateWorkerRequest<C> | AnnotationsDeleteWorkerRequest | AnnotationsReorderWorkerRequest | DocumentApplyWorkerRequest | DocumentApplyChangesWorkerRequest | FormsListWorkerRequest | FormsSetValueWorkerRequest | FormsResetWorkerRequest | FormsExportWorkerRequest | FormsImportWorkerRequest | FormsImportValuesWorkerRequest | FormsRepairWorkerRequest | FormsCreateFieldWorkerRequest<C> | FormsUpdateFieldWorkerRequest | FormsSetSignatureAppearanceWorkerRequest | FormsDeleteFieldWorkerRequest | FormsAddWidgetWorkerRequest<C> | FormsDetachWidgetWorkerRequest | FormsDeleteWidgetWorkerRequest | FormsReorderWidgetsWorkerRequest | FormsReorderCalculationsWorkerRequest | FormsUpdateWidgetWorkerRequest<C> | PagesListWorkerRequest | AnnotationsFlattenWorkerRequest | AnnotationsExportAppearanceWorkerRequest | PagesSetNameWorkerRequest | PagesRemoveNameWorkerRequest | PagesFlattenWorkerRequest | RedactionApplyWorkerRequest | PagesExtractWorkerRequest | AttachmentsListWorkerRequest | AttachmentsReadFileWorkerRequest | AnnotationsReadFileWorkerRequest | AnnotationsReadAppearanceWorkerRequest | AnnotationsExportWorkerRequest | AnnotationsImportWorkerRequest | MeasureViewportsWorkerRequest | MeasureSetScaleWorkerRequest | PieceInfoReadWorkerRequest | PieceInfoUpdateWorkerRequest | PieceInfoApplicationsWorkerRequest | PieceInfoDeleteWorkerRequest | PagesTextWorkerRequest | PagesGeometryWorkerRequest | PagesRenderWorkerRequest<C> | PagesRenderEncodedWorkerRequest<C> | SearchQueryWorkerRequest | DocumentSaveBufferWorkerRequest | DocumentSaveFileWorkerRequest | DocumentSaveLayerBufferWorkerRequest | DocumentProbeSecurityFileWorkerRequest | DocumentRenderPageFileWorkerRequest | DocumentRenderPageFileEncodedWorkerRequest | DocumentCheckPasswordPermissionsWorkerRequest | SignaturesListWorkerRequest | SignaturesContentsWorkerRequest | SignaturesDigestWorkerRequest | SignaturesRevisionBytesWorkerRequest | DocumentVersionWorkerRequest | SignaturesPrepareWorkerRequest | SignaturesCompleteWorkerRequest | SignaturesCancelWorkerRequest | SignaturesAnalyzeWorkerRequest | SignaturesFinalizeCandidateWorkerRequest | FontsRegisterWorkerRequest | FontsAddFallbackWorkerRequest | FontsClearFallbacksWorkerRequest | FontsClearWorkerRequest | FontsAuthorizeEditingWorkerRequest | ObjectNumbersReserveWorkerRequest | DocumentSetFontSettingsWorkerRequest | CloseWorkerRequest | LayerCloseWorkerRequest | WorkerControlMessage;
|
|
1440
1369
|
/** The messages that aren't jobs: the worker takes them on arrival and runs nothing for them. */
|
|
1441
1370
|
type WorkerControlMessage = AbortWorkerRequest | PagesWorkingSetWorkerRequest | ShutdownWorkerRequest;
|
|
1442
1371
|
/**
|
|
@@ -1517,6 +1446,9 @@ type WorkerResultPayload<C extends Coordinates = PageCoordinates> = {
|
|
|
1517
1446
|
} | {
|
|
1518
1447
|
tag: 'actions.read';
|
|
1519
1448
|
snapshot: DocumentActionsSnapshot<C['destination']>;
|
|
1449
|
+
} | {
|
|
1450
|
+
tag: 'outline.read';
|
|
1451
|
+
outline: DocumentOutline<C['destination']>;
|
|
1520
1452
|
} | {
|
|
1521
1453
|
tag: 'metadata.update';
|
|
1522
1454
|
result: MetadataUpdateResult;
|
|
@@ -1589,13 +1521,13 @@ type WorkerResultPayload<C extends Coordinates = PageCoordinates> = {
|
|
|
1589
1521
|
} | {
|
|
1590
1522
|
tag: 'document.applyChanges';
|
|
1591
1523
|
/** One per change, in order. */
|
|
1592
|
-
outcomes: ServerChangeOutcome
|
|
1524
|
+
outcomes: ServerChangeOutcome[];
|
|
1593
1525
|
/** The artifact, when at least one change applied. */
|
|
1594
1526
|
artifact?: LayerArtifactWorkerPayload;
|
|
1595
1527
|
artifactFile?: LayerArtifactFileWorkerPayload;
|
|
1596
1528
|
} | {
|
|
1597
1529
|
tag: 'document.apply';
|
|
1598
|
-
result: ChangeResult
|
|
1530
|
+
result: ChangeResult;
|
|
1599
1531
|
/**
|
|
1600
1532
|
* True when this answers an `opId` that already had one: nothing ran
|
|
1601
1533
|
* again, so nothing is published again.
|
|
@@ -1687,21 +1619,6 @@ type WorkerResultPayload<C extends Coordinates = PageCoordinates> = {
|
|
|
1687
1619
|
} | {
|
|
1688
1620
|
tag: 'pages.list';
|
|
1689
1621
|
snapshot: PageListSnapshot<C>;
|
|
1690
|
-
} | {
|
|
1691
|
-
tag: 'pages.reorder';
|
|
1692
|
-
result: PageReorderResult<C>;
|
|
1693
|
-
artifact?: LayerArtifactWorkerPayload;
|
|
1694
|
-
artifactFile?: LayerArtifactFileWorkerPayload;
|
|
1695
|
-
} | {
|
|
1696
|
-
tag: 'pages.rotate';
|
|
1697
|
-
result: PageRotateResult<C>;
|
|
1698
|
-
artifact?: LayerArtifactWorkerPayload;
|
|
1699
|
-
artifactFile?: LayerArtifactFileWorkerPayload;
|
|
1700
|
-
} | {
|
|
1701
|
-
tag: 'pages.delete';
|
|
1702
|
-
result: PageDeleteResult<C>;
|
|
1703
|
-
artifact?: LayerArtifactWorkerPayload;
|
|
1704
|
-
artifactFile?: LayerArtifactFileWorkerPayload;
|
|
1705
1622
|
} | {
|
|
1706
1623
|
tag: 'pages.setName';
|
|
1707
1624
|
result: PageNameResult<C>;
|
|
@@ -1736,29 +1653,9 @@ type WorkerResultPayload<C extends Coordinates = PageCoordinates> = {
|
|
|
1736
1653
|
} | {
|
|
1737
1654
|
tag: 'attachments.readFile';
|
|
1738
1655
|
content: AttachmentFileWorkerPayload;
|
|
1739
|
-
} | {
|
|
1740
|
-
tag: 'attachments.create';
|
|
1741
|
-
result: AttachmentCreateResult;
|
|
1742
|
-
artifact?: LayerArtifactWorkerPayload;
|
|
1743
|
-
artifactFile?: LayerArtifactFileWorkerPayload;
|
|
1744
|
-
} | {
|
|
1745
|
-
tag: 'attachments.delete';
|
|
1746
|
-
result: AttachmentDeleteResult;
|
|
1747
|
-
artifact?: LayerArtifactWorkerPayload;
|
|
1748
|
-
artifactFile?: LayerArtifactFileWorkerPayload;
|
|
1749
1656
|
} | {
|
|
1750
1657
|
tag: 'annotations.readFile';
|
|
1751
1658
|
content: AttachmentFileWorkerPayload;
|
|
1752
|
-
} | {
|
|
1753
|
-
tag: 'pages.insert';
|
|
1754
|
-
result: PageInsertResult<C>;
|
|
1755
|
-
artifact?: LayerArtifactWorkerPayload;
|
|
1756
|
-
artifactFile?: LayerArtifactFileWorkerPayload;
|
|
1757
|
-
} | {
|
|
1758
|
-
tag: 'pages.insertBlank';
|
|
1759
|
-
result: PageInsertResult<C>;
|
|
1760
|
-
artifact?: LayerArtifactWorkerPayload;
|
|
1761
|
-
artifactFile?: LayerArtifactFileWorkerPayload;
|
|
1762
1659
|
} | {
|
|
1763
1660
|
tag: 'measure.viewports';
|
|
1764
1661
|
page: PageRef;
|
|
@@ -1961,6 +1858,36 @@ declare function rank(job: RankedJob, placed: Placed): number;
|
|
|
1961
1858
|
*/
|
|
1962
1859
|
declare function clearlyOutranks(a: number, b: number): boolean;
|
|
1963
1860
|
//#endregion
|
|
1861
|
+
//#region src/engine/attachmentVerbs.d.ts
|
|
1862
|
+
/** The verbs of `doc.attachments` that change the document: each one op of a change. */
|
|
1863
|
+
type AttachmentWriteVerb = 'create' | 'delete';
|
|
1864
|
+
/**
|
|
1865
|
+
* `doc.attachments` on any engine: the reads `rest` holds (`list`,
|
|
1866
|
+
* `download`), and each write as a one-op change through `apply`, so a verb
|
|
1867
|
+
* has its op's checks, events and undo (its `opId` undoes it) and answers as
|
|
1868
|
+
* its single verb did.
|
|
1869
|
+
*/
|
|
1870
|
+
declare function attachmentVerbs(rest: Omit<DocumentAttachmentsService, AttachmentWriteVerb>, apply: (change: Change, options?: WriteOptions) => AbortablePromise<ChangeResult>): DocumentAttachmentsService;
|
|
1871
|
+
//#endregion
|
|
1872
|
+
//#region src/engine/outlineVerbs.d.ts
|
|
1873
|
+
/**
|
|
1874
|
+
* `doc.outline` on any engine: its read, and each verb as a one-op change
|
|
1875
|
+
* through `apply`, so a verb has its op's checks, events and undo (its
|
|
1876
|
+
* `opId` undoes it) and answers with the op's item.
|
|
1877
|
+
*/
|
|
1878
|
+
declare function outlineVerbs(get: () => AbortablePromise<DocumentOutline>, apply: (change: Change, options?: WriteOptions) => AbortablePromise<ChangeResult>): DocumentOutlineService;
|
|
1879
|
+
//#endregion
|
|
1880
|
+
//#region src/engine/pageVerbs.d.ts
|
|
1881
|
+
/** The verbs of `doc.pages` that change the page structure: each one op of a change. */
|
|
1882
|
+
type PageStructureVerb = 'reorder' | 'rotate' | 'delete' | 'insert' | 'insertBlank';
|
|
1883
|
+
/**
|
|
1884
|
+
* `doc.pages` on any engine: what `rest` holds (the reads, extract, flatten
|
|
1885
|
+
* and the page names), and each structure verb as a one-op change through
|
|
1886
|
+
* `apply`, so a verb has its op's checks, events and undo (its `opId` undoes
|
|
1887
|
+
* it) and answers as its single verb did.
|
|
1888
|
+
*/
|
|
1889
|
+
declare function pageVerbs(rest: Omit<DocumentPagesService, PageStructureVerb>, apply: (change: Change, options?: WriteOptions) => AbortablePromise<ChangeResult>): DocumentPagesService;
|
|
1890
|
+
//#endregion
|
|
1964
1891
|
//#region src/wire/WirePack.d.ts
|
|
1965
1892
|
/**
|
|
1966
1893
|
* Wire-level packaging for messages crossing a Web Worker / Node
|
|
@@ -2028,5 +1955,5 @@ declare const EMPTY_TRANSFER: readonly Transferable[];
|
|
|
2028
1955
|
*/
|
|
2029
1956
|
declare function wirePack<P>(payload: P, transfer?: readonly Transferable[]): WirePack<P>;
|
|
2030
1957
|
//#endregion
|
|
2031
|
-
export {
|
|
2032
|
-
//# sourceMappingURL=runtime-
|
|
1958
|
+
export { DocumentSaveLayerBufferWorkerRequest as $, PieceInfoDeleteWorkerRequest as $t, AnnotationsExportWorkerRequest as A, AbortError as An, LayerOpenSource as At, AttachmentFileWorkerPayload as B, OpenWorkerRequest as Bt, securityStateFromProbe as C, WorkerRequest as Cn, FormsSetSignatureAppearanceWorkerRequest as Ct, AnnotationsCreateWorkerRequest as D, EventHub as Dn, LayerArtifactFileWorkerPayload as Dt, AnnotationAppearancesEncodedResultWire as E, changeEvents as En, FormsUpdateWidgetWorkerRequest as Et, AnnotationsReadFileWorkerRequest as F, MetadataUpdateCustomWorkerRequest as Ft, DocumentApplyChangesWorkerRequest as G, PagesListWorkerRequest as Gt, AttachmentsReadFileWorkerRequest as H, PagesExtractWorkerRequest as Ht, AnnotationsRenderAppearancesEncodedWorkerRequest as I, MetadataUpdateWorkerRequest as It, DocumentProbeSecurityFileWorkerRequest as J, PagesRenderWorkerRequest as Jt, DocumentApplyWorkerRequest as K, PagesRemoveNameWorkerRequest as Kt, AnnotationsRenderAppearancesWorkerRequest as L, OpenFatMemoryWorkerRequest as Lt, AnnotationsImportWorkerRequest as M, MeasureViewportsWorkerRequest as Mt, AnnotationsListWorkerRequest as N, MetadataReadCustomWorkerRequest as Nt, AnnotationsDeleteWorkerRequest as O, SessionEventPublisher as On, LayerArtifactWorkerPayload as Ot, AnnotationsReadAppearanceWorkerRequest as P, MetadataReadWorkerRequest as Pt, DocumentSaveFileWorkerRequest as Q, PieceInfoApplicationsWorkerRequest as Qt, AnnotationsReorderWorkerRequest as R, OpenLayerFileBaseWorkerRequest as Rt, securityStateFromHead as S, WorkerLifecycleMessage as Sn, FormsResetWorkerRequest as St, ActionsReadWorkerRequest as T, WorkerResultPayload as Tn, FormsUpdateFieldWorkerRequest as Tt, ChangeRecordPayload as U, PagesFlattenWorkerRequest as Ut, AttachmentsListWorkerRequest as V, OutlineReadWorkerRequest as Vt, CloseWorkerRequest as W, PagesGeometryWorkerRequest as Wt, DocumentRenderPageFileWorkerRequest as X, PagesTextWorkerRequest as Xt, DocumentRenderPageFileEncodedWorkerRequest as Y, PagesSetNameWorkerRequest as Yt, DocumentSaveBufferWorkerRequest as Z, PagesWorkingSetWorkerRequest as Zt, placedBefore as _, SignaturesPrepareWorkerRequest as _n, FormsImportWorkerRequest as _t, pageVerbs as a, SearchQueryWorkerRequest as an, FontsAddFallbackWorkerRequest as at, permissionInfoFromProbe as b, WorkerJobId as bn, FormsReorderWidgetsWorkerRequest as bt, attachmentVerbs as c, ServerChangeOutcome as cn, FontsClearWorkerRequest as ct, Placed as d, SignaturesCancelWorkerRequest as dn, FormsCreateFieldWorkerRequest as dt, PieceInfoReadWorkerRequest as en, DocumentSecurityProbeInfo as et, RankedJob as f, SignaturesCompleteWorkerRequest as fn, FormsDeleteFieldWorkerRequest as ft, placeIn as g, SignaturesListWorkerRequest as gn, FormsImportValuesWorkerRequest as gt, placeFor as h, SignaturesFinalizeCandidateWorkerRequest as hn, FormsExportWorkerRequest as ht, PageStructureVerb as i, RequestEffect as in, EncodedImageWire as it, AnnotationsFlattenWorkerRequest as j, isAbortError as jn, MeasureSetScaleWorkerRequest as jt, AnnotationsExportAppearanceWorkerRequest as k, LOCAL_ENGINE_BRAND as kn, LayerCloseWorkerRequest as kt, JobTarget as l, ShutdownWorkerRequest as ln, FontsRegisterWorkerRequest as lt, clearlyOutranks as m, SignaturesDigestWorkerRequest as mn, FormsDetachWidgetWorkerRequest as mt, WirePack as n, RedactionApplyWorkerRequest as nn, DocumentVersionWorkerRequest as nt, outlineVerbs as o, SearchScanRequest as on, FontsAuthorizeEditingWorkerRequest as ot, ViewSets as p, SignaturesContentsWorkerRequest as pn, FormsDeleteWidgetWorkerRequest as pt, DocumentCheckPasswordPermissionsWorkerRequest as q, PagesRenderEncodedWorkerRequest as qt, wirePack as r, RenderEncode as rn, EncodedAppearanceWire as rt, AttachmentWriteVerb as s, ServerChange as sn, FontsClearFallbacksWorkerRequest as st, EMPTY_TRANSFER as t, PieceInfoUpdateWorkerRequest as tn, DocumentSetFontSettingsWorkerRequest as tt, Place as u, SignaturesAnalyzeWorkerRequest as un, FormsAddWidgetWorkerRequest as ut, rank as v, SignaturesRevisionBytesWorkerRequest as vn, FormsListWorkerRequest as vt, AbortWorkerRequest as w, WorkerResponse as wn, FormsSetValueWorkerRequest as wt, permissionInfoWithAdvisory as x, WorkerJobRequest as xn, FormsRepairWorkerRequest as xt, advisoryFromPdfBits as y, WorkerControlMessage as yn, FormsReorderCalculationsWorkerRequest as yt, AnnotationsUpdateWorkerRequest as z, OpenLayerMemoryBaseWorkerRequest as zt };
|
|
1959
|
+
//# sourceMappingURL=runtime-CWEuiwbk.d.cts.map
|