@embedpdf/engine-core 3.0.0-next.11 → 3.0.0-next.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AnnotationListSnapshot-C1U3XUxP.d.cts → AnnotationListSnapshot-x6tKulNV.d.cts} +153 -28
- package/dist/{AnnotationListSnapshot-C1U3XUxP.d.ts → AnnotationListSnapshot-x6tKulNV.d.ts} +153 -28
- package/dist/{DocumentSecurityService-7nL9aY75.d.ts → DocumentSecurityService-9MawYxP-.d.ts} +2 -2
- package/dist/{DocumentSecurityService-6rhztZlz.d.cts → DocumentSecurityService-CK0pejAK.d.cts} +2 -2
- package/dist/{Engine-D3868xIU.d.cts → Engine--0XF0UAK.d.cts} +56 -3
- package/dist/{Engine-CWnAKccD.d.ts → Engine-Ds0ytbl6.d.ts} +56 -3
- package/dist/{builders-Do6_4KnS.cjs → builders-8Hl1AYNU.cjs} +14 -8
- package/dist/builders-8Hl1AYNU.cjs.map +1 -0
- package/dist/{builders-Cdz34nbF.js → builders-DOjcKDWQ.js} +14 -8
- package/dist/builders-DOjcKDWQ.js.map +1 -0
- package/dist/conformance.cjs +552 -95
- package/dist/conformance.cjs.map +1 -1
- package/dist/conformance.d.cts +50 -3
- package/dist/conformance.d.ts +50 -3
- package/dist/conformance.js +550 -96
- package/dist/conformance.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.d.cts +66 -5
- package/dist/runtime.d.ts +66 -5
- package/dist/runtime.js +1 -1
- package/dist/{schemas-XGrNVMDd.js → schemas-DOyVEPk7.js} +51 -5
- package/dist/schemas-DOyVEPk7.js.map +1 -0
- package/dist/{schemas-CS5iPpX5.cjs → schemas-RChsAMWw.cjs} +92 -4
- package/dist/schemas-RChsAMWw.cjs.map +1 -0
- package/dist/wire.cjs +23 -1
- package/dist/wire.cjs.map +1 -1
- package/dist/wire.d.cts +32 -3
- package/dist/wire.d.ts +32 -3
- package/dist/wire.js +17 -2
- package/dist/wire.js.map +1 -1
- package/package.json +1 -1
- package/dist/builders-Cdz34nbF.js.map +0 -1
- package/dist/builders-Do6_4KnS.cjs.map +0 -1
- package/dist/schemas-CS5iPpX5.cjs.map +0 -1
- package/dist/schemas-XGrNVMDd.js.map +0 -1
|
@@ -1126,7 +1126,7 @@ const StampWireDraftSchema = zod.z.object({
|
|
|
1126
1126
|
...AnnotationDraftBaseShape,
|
|
1127
1127
|
rect: PdfRectSchema,
|
|
1128
1128
|
source: ResourceRefSchema,
|
|
1129
|
-
name: zod.z.string().optional(),
|
|
1129
|
+
name: zod.z.string().min(1).optional(),
|
|
1130
1130
|
fit: StampFitSchema.optional(),
|
|
1131
1131
|
rotation: zod.z.number().nullable().optional(),
|
|
1132
1132
|
unrotatedRect: PdfRectSchema.nullable().optional(),
|
|
@@ -1136,7 +1136,7 @@ const StampWirePatchSchema = zod.z.object({
|
|
|
1136
1136
|
...AnnotationPatchBaseShape,
|
|
1137
1137
|
rect: PdfRectSchema.optional(),
|
|
1138
1138
|
source: ResourceRefSchema.optional(),
|
|
1139
|
-
name: zod.z.string().optional(),
|
|
1139
|
+
name: zod.z.string().min(1).nullable().optional(),
|
|
1140
1140
|
fit: StampFitSchema.optional(),
|
|
1141
1141
|
rotation: zod.z.number().nullable().optional(),
|
|
1142
1142
|
unrotatedRect: PdfRectSchema.nullable().optional(),
|
|
@@ -2491,6 +2491,23 @@ const PageFlattenResultSchema = zod.z.object({
|
|
|
2491
2491
|
})),
|
|
2492
2492
|
meta: MutationMetaSchema.nullable()
|
|
2493
2493
|
});
|
|
2494
|
+
/** See `AnnotationFlattenResult`. */
|
|
2495
|
+
const AnnotationFlattenResultSchema = zod.z.object({
|
|
2496
|
+
pageObjectNumber: zod.z.number().int().positive(),
|
|
2497
|
+
usage: zod.z.enum(["display", "print"]),
|
|
2498
|
+
results: zod.z.array(zod.z.object({
|
|
2499
|
+
ref: AnnotationRefSchema,
|
|
2500
|
+
status: zod.z.enum(["applied", "skipped"])
|
|
2501
|
+
})),
|
|
2502
|
+
meta: MutationMetaSchema.nullable()
|
|
2503
|
+
});
|
|
2504
|
+
/** `annotations.flatten` input — see `AnnotationFlattenInput`. */
|
|
2505
|
+
const AnnotationFlattenInputSchema = zod.z.object({
|
|
2506
|
+
refs: zod.z.array(AnnotationRefSchema).min(1),
|
|
2507
|
+
usage: zod.z.enum(["display", "print"])
|
|
2508
|
+
});
|
|
2509
|
+
/** `annotations.exportAppearance` input — see `AnnotationAppearanceExportInput`. */
|
|
2510
|
+
const AnnotationAppearanceExportInputSchema = zod.z.object({ refs: zod.z.array(AnnotationRefSchema).min(1) });
|
|
2494
2511
|
const PageFlattenInputSchema = zod.z.object({
|
|
2495
2512
|
pageObjectNumbers: zod.z.array(zod.z.number().int().positive()),
|
|
2496
2513
|
usage: zod.z.enum(["display", "print"])
|
|
@@ -2523,10 +2540,34 @@ const RedactionApplyResultSchema = zod.z.object({
|
|
|
2523
2540
|
* `pageObjectNumber` everywhere except the per-element `index`, which is
|
|
2524
2541
|
* display order and intentionally not an identity. Carries geometry only.
|
|
2525
2542
|
*/
|
|
2543
|
+
/** See `NamedPageEntry`: decoded key + what it resolves to. */
|
|
2544
|
+
const NamedPageEntrySchema = zod.z.object({
|
|
2545
|
+
name: zod.z.string(),
|
|
2546
|
+
target: zod.z.discriminatedUnion("kind", [
|
|
2547
|
+
zod.z.object({
|
|
2548
|
+
kind: zod.z.literal("page"),
|
|
2549
|
+
pageObjectNumber: zod.z.number().int().positive()
|
|
2550
|
+
}),
|
|
2551
|
+
zod.z.object({
|
|
2552
|
+
kind: zod.z.literal("template"),
|
|
2553
|
+
objectNumber: zod.z.number().int().positive()
|
|
2554
|
+
}),
|
|
2555
|
+
zod.z.object({ kind: zod.z.literal("dangling") })
|
|
2556
|
+
])
|
|
2557
|
+
});
|
|
2526
2558
|
const PageListSnapshotSchema = zod.z.object({
|
|
2527
2559
|
pageCount: zod.z.number().int().nonnegative(),
|
|
2528
|
-
pages: zod.z.array(PageLayoutSchema)
|
|
2560
|
+
pages: zod.z.array(PageLayoutSchema),
|
|
2561
|
+
namedPages: zod.z.array(NamedPageEntrySchema).optional()
|
|
2562
|
+
});
|
|
2563
|
+
/** `pages.setName` input — see `PageNameInput`. */
|
|
2564
|
+
const PageNameInputSchema = zod.z.object({
|
|
2565
|
+
name: zod.z.string().min(1),
|
|
2566
|
+
pageObjectNumber: zod.z.number().int().positive(),
|
|
2567
|
+
replace: zod.z.string().min(1).optional()
|
|
2529
2568
|
});
|
|
2569
|
+
/** `pages.removeName` input — see `PageRemoveNameInput`. */
|
|
2570
|
+
const PageRemoveNameInputSchema = zod.z.object({ name: zod.z.string().min(1) });
|
|
2530
2571
|
/**
|
|
2531
2572
|
* Page reorder input. Pages are always addressed by `pageObjectNumber`;
|
|
2532
2573
|
* `destIndex` is the insertion point in the post-removal index space.
|
|
@@ -2553,6 +2594,11 @@ const PageMoveResultSchema = zod.z.object({
|
|
|
2553
2594
|
layout: PageListSnapshotSchema,
|
|
2554
2595
|
cache: PageStructureCacheSchema.nullable()
|
|
2555
2596
|
});
|
|
2597
|
+
/** Named-page mutation result — layout-shaped, see `PageNameResult`. */
|
|
2598
|
+
const PageNameResultSchema = zod.z.object({
|
|
2599
|
+
layout: PageListSnapshotSchema,
|
|
2600
|
+
cache: PageStructureCacheSchema.nullable()
|
|
2601
|
+
});
|
|
2556
2602
|
/**
|
|
2557
2603
|
* Page rotate input. ABSOLUTE rotation (idempotent — see `PageRotateInput`),
|
|
2558
2604
|
* one value applied to every listed page.
|
|
@@ -2664,6 +2710,12 @@ Object.defineProperty(exports, "AccessResponseSchema", {
|
|
|
2664
2710
|
return AccessResponseSchema;
|
|
2665
2711
|
}
|
|
2666
2712
|
});
|
|
2713
|
+
Object.defineProperty(exports, "AnnotationAppearanceExportInputSchema", {
|
|
2714
|
+
enumerable: true,
|
|
2715
|
+
get: function() {
|
|
2716
|
+
return AnnotationAppearanceExportInputSchema;
|
|
2717
|
+
}
|
|
2718
|
+
});
|
|
2667
2719
|
Object.defineProperty(exports, "AnnotationAppearanceManifestSchema", {
|
|
2668
2720
|
enumerable: true,
|
|
2669
2721
|
get: function() {
|
|
@@ -2730,6 +2782,18 @@ Object.defineProperty(exports, "AnnotationFlagsSchema", {
|
|
|
2730
2782
|
return AnnotationFlagsSchema;
|
|
2731
2783
|
}
|
|
2732
2784
|
});
|
|
2785
|
+
Object.defineProperty(exports, "AnnotationFlattenInputSchema", {
|
|
2786
|
+
enumerable: true,
|
|
2787
|
+
get: function() {
|
|
2788
|
+
return AnnotationFlattenInputSchema;
|
|
2789
|
+
}
|
|
2790
|
+
});
|
|
2791
|
+
Object.defineProperty(exports, "AnnotationFlattenResultSchema", {
|
|
2792
|
+
enumerable: true,
|
|
2793
|
+
get: function() {
|
|
2794
|
+
return AnnotationFlattenResultSchema;
|
|
2795
|
+
}
|
|
2796
|
+
});
|
|
2733
2797
|
Object.defineProperty(exports, "AnnotationListMutationMetaSchema", {
|
|
2734
2798
|
enumerable: true,
|
|
2735
2799
|
get: function() {
|
|
@@ -3252,6 +3316,12 @@ Object.defineProperty(exports, "MutationMetaSchema", {
|
|
|
3252
3316
|
return MutationMetaSchema;
|
|
3253
3317
|
}
|
|
3254
3318
|
});
|
|
3319
|
+
Object.defineProperty(exports, "NamedPageEntrySchema", {
|
|
3320
|
+
enumerable: true,
|
|
3321
|
+
get: function() {
|
|
3322
|
+
return NamedPageEntrySchema;
|
|
3323
|
+
}
|
|
3324
|
+
});
|
|
3255
3325
|
Object.defineProperty(exports, "NoteIconSchema", {
|
|
3256
3326
|
enumerable: true,
|
|
3257
3327
|
get: function() {
|
|
@@ -3348,12 +3418,30 @@ Object.defineProperty(exports, "PageMoveResultSchema", {
|
|
|
3348
3418
|
return PageMoveResultSchema;
|
|
3349
3419
|
}
|
|
3350
3420
|
});
|
|
3421
|
+
Object.defineProperty(exports, "PageNameInputSchema", {
|
|
3422
|
+
enumerable: true,
|
|
3423
|
+
get: function() {
|
|
3424
|
+
return PageNameInputSchema;
|
|
3425
|
+
}
|
|
3426
|
+
});
|
|
3427
|
+
Object.defineProperty(exports, "PageNameResultSchema", {
|
|
3428
|
+
enumerable: true,
|
|
3429
|
+
get: function() {
|
|
3430
|
+
return PageNameResultSchema;
|
|
3431
|
+
}
|
|
3432
|
+
});
|
|
3351
3433
|
Object.defineProperty(exports, "PageNetworkRenderFormatSchema", {
|
|
3352
3434
|
enumerable: true,
|
|
3353
3435
|
get: function() {
|
|
3354
3436
|
return PageNetworkRenderFormatSchema;
|
|
3355
3437
|
}
|
|
3356
3438
|
});
|
|
3439
|
+
Object.defineProperty(exports, "PageRemoveNameInputSchema", {
|
|
3440
|
+
enumerable: true,
|
|
3441
|
+
get: function() {
|
|
3442
|
+
return PageRemoveNameInputSchema;
|
|
3443
|
+
}
|
|
3444
|
+
});
|
|
3357
3445
|
Object.defineProperty(exports, "PageRenderAnnotatedQuerySchema", {
|
|
3358
3446
|
enumerable: true,
|
|
3359
3447
|
get: function() {
|
|
@@ -3799,4 +3887,4 @@ Object.defineProperty(exports, "WireAttachmentFileSchema", {
|
|
|
3799
3887
|
}
|
|
3800
3888
|
});
|
|
3801
3889
|
|
|
3802
|
-
//# sourceMappingURL=schemas-
|
|
3890
|
+
//# sourceMappingURL=schemas-RChsAMWw.cjs.map
|