pptx-viewer-core 1.6.2 → 1.6.3
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/CHANGELOG.md +2 -0
- package/dist/cli/index.d.ts +73 -84
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/converter/index.d.ts +2 -48
- package/dist/index-B0LkcsWQ.d.ts +11726 -0
- package/dist/index-B0LkcsWQ.d.ts.map +1 -0
- package/dist/index.d.ts +1551 -13601
- package/dist/index.d.ts.map +1 -0
- package/dist/{signature-inspection-status-BCUpfCQh.d.mts → signature-inspection-status-zYmX2fKp.d.ts} +71 -71
- package/dist/signature-inspection-status-zYmX2fKp.d.ts.map +1 -0
- package/dist/signature-node/index.d.ts +46 -96
- package/dist/signature-node/index.d.ts.map +1 -0
- package/dist/text-operations-DnyNBsGN.d.ts +6614 -0
- package/dist/text-operations-DnyNBsGN.d.ts.map +1 -0
- package/package.json +6 -5
- package/dist/SvgExporter-Csx19PZz.d.mts +0 -557
- package/dist/SvgExporter-CxE3LpEi.d.ts +0 -557
- package/dist/cli/index.d.mts +0 -150
- package/dist/converter/index.d.mts +0 -48
- package/dist/index.d.mts +0 -14114
- package/dist/presentation-BLbjWKxK.d.mts +0 -6571
- package/dist/presentation-BLbjWKxK.d.ts +0 -6571
- package/dist/signature-inspection-status-BCUpfCQh.d.ts +0 -220
- package/dist/signature-node/index.d.mts +0 -222
- package/dist/text-operations-B0rbI4l2.d.ts +0 -134
- package/dist/text-operations-Beui0_5d.d.mts +0 -134
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/core/utils/data-url-utils.ts","../src/core/utils/strip-parent-dir-segments.ts","../src/core/utils/ole-embedded-extract.ts","../src/core/utils/font-deobfuscation.ts","../src/core/utils/encryption-detection.ts","../src/core/utils/ooxml-crypto-errors.ts","../src/core/utils/ooxml-crypto.ts","../src/core/utils/ole2-parser-types.ts","../src/core/utils/ole2-parser-read.ts","../src/core/utils/ole2-parser-write.ts","../src/core/utils/xml-entities.ts","../src/core/utils/chart-data-utils.ts","../src/core/utils/font-substitution.ts","../src/core/utils/pptx-validator-types.ts","../src/core/utils/pptx-validator-checks.ts","../src/core/utils/pptx-validator-repair.ts","../src/core/utils/smartart-layout-engine-parser.ts","../src/core/utils/animation-preset-catalog.ts","../src/core/utils/layout-display-name.ts","../src/core/utils/xml-reorder.ts","../src/core/utils/xml-access.ts","../src/core/constants-colors.ts","../src/core/color/color-primitives.ts","../src/core/geometry/preset-shape-definitions-table.ts","../src/core/geometry/preset-shape-evaluator.ts","../src/core/geometry/adjustment-aware-shapes.ts","../src/core/geometry/cloud-bezier-paths.ts","../src/core/geometry/preset-shape-types.ts","../src/core/geometry/preset-shape-clip-paths.ts","../src/core/geometry/preset-shape-definitions.ts","../src/core/geometry/guide-formula-eval.ts","../src/core/geometry/guide-formula-api.ts","../src/core/geometry/guide-formula-paths.ts","../src/core/geometry/shape-boolean-types.ts","../src/core/geometry/shape-boolean-svg.ts","../src/core/geometry/shape-boolean-ops.ts","../src/core/geometry/callout-geometry.ts","../src/core/builders/sdk/units.ts","../src/core/builders/sdk/theme-presets.ts","../src/core/openxml/openxml-coverage.ts","../src/core/openxml/schema-constructs-strict.generated.ts","../src/core/openxml/schema-constructs-transitional.generated.ts","../src/core/openxml/schema-constructs.generated.ts"],"mappings":";;;;iBAAgB,oBACf;EACI,OAAO;EAAY;;;;;;;;;;;;;;UA+FP;EAChB;EACA,iBAAiB;;;;;;;;;;iBAaI,gBACrB,aACA,UAAS,yBACP;EAAU,OAAO;EAAY;;;;;;;;;;;;;;iBCzGhB,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBCyBvB,kBAAkB,OAAO,YAAY;;UAWpC;;EAEhB;;EAEA,MAAM;;;iBAaS,mBAAmB,OAAO;;;;;;;;;;iBAkD1B,kBAAkB,QAAQ,aAAa;;;;;;;;;;;;iBAwDvC,mBAAmB,OAAO,a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ACA;eACA;eACA;eACA;;aAED;eAAS;eAAsB;;;;;aAK/B;aACA;eACC;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;;aAED;eAAS;eAA6B;;;;;aAKtC;aACA;eACC;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;;aAED;eAAS;eAAyB;;;;;aAKlC;aACA;eACC;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;;aAED;eAAS;eAAoB;;;;;aAK7B;aACA;eACC;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;;aAED;eAAS;eAA6B;;;;;aAKtC;aACA;eACC;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;;aAED;eAAS;eAAoB;;;;;KAKnB,+BAA+B;;iBAG3B,eAAe,MAAM,kBAAkB;;;KCzK3C;KAOA;UAEK;;EAEhB;;EAEA;;EAEA,iBAAiB;;UAGD;EAChB;EACA;EACA;EACA;EACA;EACA,OAAO;EACP,UAAU;EACV,MAAM;EACN,WAAW;EACX;EACA,mBAAmB;;KAGR,oBAAoB;UAEf;EAChB;EACA,QAAQ,OAAO;;KAGJ,wBAAwB,KACnC;EAGA;EACA,mBAAmB;;;;;;cA6KP,2BAA2B;iBAaxB,oBAAoB,aAAa;iBAIjC,4BAA4B,OAAO;iBAgBnC,wCAAwC,OACvD,mBACA;iBAuBe,8BACf,aAAa,oBACX;;;;cCnSU;;;;cCAA;;;cCEA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#region src/core/utils/signature-constants.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* Constants for OOXML digital signature processing.
|
|
3
4
|
*
|
|
@@ -39,7 +40,8 @@ declare const DIGEST_ALGORITHM_TO_HASH: Record<string, string>;
|
|
|
39
40
|
* Used by platform-agnostic code with `crypto.subtle.digest`.
|
|
40
41
|
*/
|
|
41
42
|
declare const DIGEST_ALGORITHM_TO_WEB_CRYPTO: Record<string, string>;
|
|
42
|
-
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/core/utils/signature-types.d.ts
|
|
43
45
|
/**
|
|
44
46
|
* Rich types for digital signature inspection, signing, and PKI validation.
|
|
45
47
|
*
|
|
@@ -49,87 +51,88 @@ declare const DIGEST_ALGORITHM_TO_WEB_CRYPTO: Record<string, string>;
|
|
|
49
51
|
type CertificateRevocationStatus = 'good' | 'revoked' | 'unknown' | 'not-checked' | 'error';
|
|
50
52
|
type TimestampAuthorityStatus = 'valid' | 'invalid' | 'not-present' | 'not-checked' | 'error' | 'untrusted';
|
|
51
53
|
interface SignatureReferenceCheck {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
uri: string;
|
|
55
|
+
resolvedPartPath?: string;
|
|
56
|
+
existsInPackage: boolean;
|
|
57
|
+
digestAlgorithm?: string;
|
|
58
|
+
digestExpectedBase64?: string;
|
|
59
|
+
digestActualBase64?: string;
|
|
60
|
+
digestStatus: 'verified' | 'mismatch' | 'missing-part' | 'unsupported-transform' | 'unsupported-algorithm' | 'insufficient-data';
|
|
61
|
+
transformAlgorithms: string[];
|
|
60
62
|
}
|
|
61
63
|
interface SignatureCertificateInfo {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
subject?: string;
|
|
65
|
+
issuer?: string;
|
|
66
|
+
serialNumber?: string;
|
|
67
|
+
validFrom?: string;
|
|
68
|
+
validTo?: string;
|
|
67
69
|
}
|
|
68
70
|
type SignatureDetailStatus = 'verified' | 'digest-mismatch' | 'reference-missing' | 'signature-invalid' | 'certificate-untrusted' | 'certificate-revoked' | 'timestamp-invalid' | 'timestamp-untrusted' | 'structural-only';
|
|
69
71
|
interface SignatureDetail {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
72
|
+
path: string;
|
|
73
|
+
signatureMethod?: string;
|
|
74
|
+
canonicalizationMethod?: string;
|
|
75
|
+
signingTime?: string;
|
|
76
|
+
referenceCount: number;
|
|
77
|
+
missingPartReferences: string[];
|
|
78
|
+
unsupportedTransforms: string[];
|
|
79
|
+
referenceChecks: SignatureReferenceCheck[];
|
|
80
|
+
certificate?: SignatureCertificateInfo;
|
|
81
|
+
signatureValueStatus: 'verified' | 'invalid' | 'not-checked';
|
|
82
|
+
certificateTrustStatus: 'trusted' | 'untrusted' | 'not-checked';
|
|
83
|
+
certificateTrustError?: string;
|
|
84
|
+
certificateRevocationStatus: CertificateRevocationStatus;
|
|
85
|
+
certificateRevocationError?: string;
|
|
86
|
+
timestampAuthorityStatus: TimestampAuthorityStatus;
|
|
87
|
+
timestampAuthorityError?: string;
|
|
88
|
+
certificateFingerprintSha256?: string;
|
|
89
|
+
status: SignatureDetailStatus;
|
|
88
90
|
}
|
|
89
91
|
type DigitalSignatureVerificationStatus = 'unsigned' | 'verified-trusted' | 'verified-untrusted' | 'certificate-revoked' | 'digest-mismatch' | 'reference-missing' | 'signature-invalid' | 'timestamp-invalid' | 'timestamp-untrusted' | 'present-not-verified' | 'invalid-package' | 'error';
|
|
90
92
|
interface DigitalSignatureReport {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
93
|
+
supported: boolean;
|
|
94
|
+
hasSignature: boolean;
|
|
95
|
+
signatureCount: number;
|
|
96
|
+
signaturePaths: string[];
|
|
97
|
+
verificationStatus: DigitalSignatureVerificationStatus;
|
|
98
|
+
error?: string;
|
|
99
|
+
details?: SignatureDetail[];
|
|
100
|
+
hasOriginRelationship?: boolean;
|
|
99
101
|
}
|
|
100
102
|
interface SignOptions {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
+
certificatePath: string;
|
|
104
|
+
certificatePassword?: string;
|
|
103
105
|
}
|
|
104
106
|
interface SignResult {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
success: boolean;
|
|
108
|
+
signedData?: Uint8Array;
|
|
109
|
+
report: DigitalSignatureReport;
|
|
110
|
+
error?: string;
|
|
109
111
|
}
|
|
110
112
|
interface LoadedSigningMaterial {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
+
privateKeyPem: string;
|
|
114
|
+
certificatePem: string;
|
|
113
115
|
}
|
|
114
116
|
interface ParsedReferenceTransform {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
+
algorithm: string;
|
|
118
|
+
relationshipReferenceIds: string[];
|
|
117
119
|
}
|
|
118
120
|
interface ReferenceTransformResult {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
+
data: Uint8Array;
|
|
122
|
+
unsupportedAlgorithms: string[];
|
|
121
123
|
}
|
|
122
124
|
interface SignatureValidationPolicy {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
125
|
+
requireRevocationCheck: boolean;
|
|
126
|
+
failOnRevocationUnknown: boolean;
|
|
127
|
+
requireTimestamp: boolean;
|
|
126
128
|
}
|
|
127
129
|
interface OfficeSignatureReference {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
130
|
+
uri: string;
|
|
131
|
+
digestMethod: string;
|
|
132
|
+
digestValue: string;
|
|
131
133
|
}
|
|
132
|
-
|
|
134
|
+
//#endregion
|
|
135
|
+
//#region src/core/utils/signature-xml-utils.d.ts
|
|
133
136
|
/**
|
|
134
137
|
* Pure regex-based XML extraction utilities for digital signature processing.
|
|
135
138
|
*
|
|
@@ -164,7 +167,8 @@ declare function extractFirstTagText(xml: string, localName: string): string | u
|
|
|
164
167
|
* Whitespace within each match is collapsed.
|
|
165
168
|
*/
|
|
166
169
|
declare function extractAllTagText(xml: string, localName: string): string[];
|
|
167
|
-
|
|
170
|
+
//#endregion
|
|
171
|
+
//#region src/core/utils/signature-reference-utils.d.ts
|
|
168
172
|
/**
|
|
169
173
|
* Pure string utilities for resolving digital signature reference URIs
|
|
170
174
|
* to ZIP part paths. Platform-agnostic (no Node dependencies).
|
|
@@ -176,7 +180,8 @@ declare function normalizePartPath(partPath: string): string;
|
|
|
176
180
|
* Returns `undefined` for empty URIs, fragment-only URIs (#...), or invalid input.
|
|
177
181
|
*/
|
|
178
182
|
declare function resolveReferenceUriToPart(uri: string): string | undefined;
|
|
179
|
-
|
|
183
|
+
//#endregion
|
|
184
|
+
//#region src/core/utils/signature-digest.d.ts
|
|
180
185
|
/**
|
|
181
186
|
* Platform-agnostic digest computation using the Web Crypto API.
|
|
182
187
|
*
|
|
@@ -192,14 +197,8 @@ declare function resolveReferenceUriToPart(uri: string): string | undefined;
|
|
|
192
197
|
* or `crypto.subtle` is unavailable.
|
|
193
198
|
*/
|
|
194
199
|
declare function computeDigestBase64(content: Uint8Array, digestAlgorithmUri: string): Promise<string | undefined>;
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
* Pure status-computation logic for digital signature inspection.
|
|
198
|
-
*
|
|
199
|
-
* These functions are platform-agnostic — they accept data and policy
|
|
200
|
-
* as parameters instead of reading from the environment.
|
|
201
|
-
*/
|
|
202
|
-
|
|
200
|
+
//#endregion
|
|
201
|
+
//#region src/core/utils/signature-inspection-status.d.ts
|
|
203
202
|
/**
|
|
204
203
|
* Compute the overall status for an individual signature detail
|
|
205
204
|
* based on its reference checks, trust, revocation, and timestamp statuses.
|
|
@@ -216,5 +215,6 @@ declare function computeDetailStatus(detail: Pick<SignatureDetail, 'signatureVal
|
|
|
216
215
|
* @returns The overall verification status for the report.
|
|
217
216
|
*/
|
|
218
217
|
declare function computeVerificationStatus(details: SignatureDetail[]): DigitalSignatureReport['verificationStatus'];
|
|
219
|
-
|
|
220
|
-
export {
|
|
218
|
+
//#endregion
|
|
219
|
+
export { DIGITAL_SIGNATURE_REL_TYPE as A, XML_TRANSFORM_ENVELOPED_SIGNATURE as B, SignatureDetailStatus as C, DIGEST_ALGORITHM_TO_HASH as D, TimestampAuthorityStatus as E, ENTERPRISE_TRUST_ROOTS_PEM_ENV as F, OPC_RELATIONSHIP_TRANSFORM as I, PPTX_VIEWER_MANIFEST_NS as L, ENTERPRISE_REQUIRE_REVOCATION_ENV as M, ENTERPRISE_REQUIRE_TIMESTAMP_ENV as N, DIGEST_ALGORITHM_TO_WEB_CRYPTO as O, ENTERPRISE_TRUST_ROOTS_FILE_ENV as P, SUPPORTED_XML_CANON_TRANSFORMS as R, SignatureDetail as S, SignatureValidationPolicy as T, ParsedReferenceTransform as _, resolveReferenceUriToPart as a, SignResult as b, extractAllTagText as c, isValidBase64 as d, CertificateRevocationStatus as f, OfficeSignatureReference as g, LoadedSigningMaterial as h, normalizePartPath as i, ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV as j, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE as k, extractFirstTagText as l, DigitalSignatureVerificationStatus as m, computeVerificationStatus as n, escapeXmlAttr as o, DigitalSignatureReport as p, computeDigestBase64 as r, escapeXmlText as s, computeDetailStatus as t, extractTagAttribute as u, ReferenceTransformResult as v, SignatureReferenceCheck as w, SignatureCertificateInfo as x, SignOptions as y, XMLDSIG_NS as z };
|
|
220
|
+
//# sourceMappingURL=signature-inspection-status-zYmX2fKp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signature-inspection-status-zYmX2fKp.d.ts","names":[],"sources":["../src/core/utils/signature-constants.ts","../src/core/utils/signature-types.ts","../src/core/utils/signature-xml-utils.ts","../src/core/utils/signature-reference-utils.ts","../src/core/utils/signature-digest.ts","../src/core/utils/signature-inspection-status.ts"],"mappings":";;;;;;;;;cASa;;cAIA;;cAIA;;cAGA;;cAGA;;cAIA;;cAIA,gCAA8B;;cAS9B;;cAGA;;cAGA;;cAGA;;cAGA;;;;;cAMA,0BAA0B;;;;;cAW1B,gCAAgC;;;;;;;;;KC5DjC;KAEA;UAUK;EAChB;EACA;EACA;EACA;EACA;EACA;EACA;EAOA;;UAKgB;EAChB;EACA;EACA;EACA;EACA;;KAKW;UAWK;EAChB;EACA;EACA;EACA;EACA;EACA;EACA;EACA,iBAAiB;EACjB,cAAc;EACd;EACA;EACA;EACA,6BAA6B;EAC7B;EACA,0BAA0B;EAC1B;EACA;EACA,QAAQ;;KAKG;UAcK;EAChB;EACA;EACA;EACA;EACA,oBAAoB;EACpB;EACA,UAAU;EACV;;UAKgB;EAChB;EACA;;UAGgB;EAChB;EACA,aAAa;EACb,QAAQ;EACR;;UAGgB;EAChB;EACA;;UAKgB;EAChB;EACA;;UAGgB;EAChB,MAAM;EACN;;UAKgB;EAChB;EACA;EACA;;UAKgB;EAChB;EACA;EACA;;;;;;;;;;;;;;;iBC7Ie,cAAc;;;;;iBAad,cAAc;;iBAKd,cAAc;;;;;iBAQd,oBACf,aACA,iBACA;;;;;iBAce,oBAAoB,aAAa;;;;;iBAajC,kBAAkB,aAAa;;;;;;;;iBC9D/B,kBAAkB;;;;;iBAQlB,0BAA0B;;;;;;;;;;;;;;;;;iBCGpB,oBACrB,SAAS,YACT,6BACE;;;;;;;;;;;iBCEa,oBACf,QAAQ,KACP,gLAQD,QAAQ,4BACN;;;;;;;iBA8Da,0BACf,SAAS,oBACP"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { A as DIGITAL_SIGNATURE_REL_TYPE, B as XML_TRANSFORM_ENVELOPED_SIGNATURE, C as SignatureDetailStatus, D as DIGEST_ALGORITHM_TO_HASH, E as TimestampAuthorityStatus, F as ENTERPRISE_TRUST_ROOTS_PEM_ENV, I as OPC_RELATIONSHIP_TRANSFORM, L as PPTX_VIEWER_MANIFEST_NS, M as ENTERPRISE_REQUIRE_REVOCATION_ENV, N as ENTERPRISE_REQUIRE_TIMESTAMP_ENV, O as DIGEST_ALGORITHM_TO_WEB_CRYPTO, P as ENTERPRISE_TRUST_ROOTS_FILE_ENV, R as SUPPORTED_XML_CANON_TRANSFORMS, S as SignatureDetail, T as SignatureValidationPolicy, _ as ParsedReferenceTransform, a as resolveReferenceUriToPart, b as SignResult, c as extractAllTagText, d as isValidBase64, f as CertificateRevocationStatus, g as OfficeSignatureReference, h as LoadedSigningMaterial, i as normalizePartPath, j as ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV, k as DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, l as extractFirstTagText, m as DigitalSignatureVerificationStatus, n as computeVerificationStatus, o as escapeXmlAttr, p as DigitalSignatureReport, r as computeDigestBase64$1, s as escapeXmlText, t as computeDetailStatus, u as extractTagAttribute, v as ReferenceTransformResult, w as SignatureReferenceCheck, x as SignatureCertificateInfo, y as SignOptions, z as XMLDSIG_NS } from "../signature-inspection-status-zYmX2fKp.js";
|
|
2
|
+
import JSZip from "jszip";
|
|
3
|
+
//#region src/signature-node/xml-canonicalization.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* XML canonicalization and DOM navigation utilities for digital signatures.
|
|
7
6
|
*
|
|
@@ -17,28 +16,28 @@ import JSZip from 'jszip';
|
|
|
17
16
|
*/
|
|
18
17
|
/** A DOM element-like collection returned by getElementsByTagName. */
|
|
19
18
|
interface XmlElementCollection {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
readonly length: number;
|
|
20
|
+
item(index: number): XmlElement | null;
|
|
21
|
+
[index: number]: XmlElement;
|
|
22
|
+
[Symbol.iterator](): Iterator<XmlElement>;
|
|
24
23
|
}
|
|
25
24
|
/** Structural interface covering the @xmldom/xmldom Element operations used here. */
|
|
26
25
|
interface XmlElement {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
readonly nodeName: string;
|
|
27
|
+
readonly localName?: string | null;
|
|
28
|
+
readonly textContent: string | null;
|
|
29
|
+
readonly parentNode: {
|
|
30
|
+
removeChild(child: XmlElement): XmlElement;
|
|
31
|
+
} | null;
|
|
32
|
+
getAttribute(name: string): string | null;
|
|
33
|
+
getElementsByTagName(localName: string): XmlElementCollection;
|
|
34
|
+
getElementsByTagNameNS(namespaceURI: string | null, localName: string): XmlElementCollection;
|
|
36
35
|
}
|
|
37
36
|
/** Structural interface covering @xmldom/xmldom Document operations used here. */
|
|
38
37
|
interface XmlDocument {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
readonly documentElement: XmlElement | null;
|
|
39
|
+
getElementsByTagName(localName: string): XmlElementCollection;
|
|
40
|
+
getElementsByTagNameNS(namespaceURI: string | null, localName: string): XmlElementCollection;
|
|
42
41
|
}
|
|
43
42
|
/** Get the local name of a DOM node, stripping any namespace prefix. */
|
|
44
43
|
declare function getNodeLocalName(node: XmlElement): string;
|
|
@@ -59,21 +58,16 @@ declare function canonicalizeNode(node: any, algorithm: string): string;
|
|
|
59
58
|
* Uses Exclusive XML Canonicalization (exc-c14n#).
|
|
60
59
|
*/
|
|
61
60
|
declare function canonicalizeSignedInfoXml(signedInfoXml: string): string;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
* Certificate handling utilities for digital signature processing.
|
|
65
|
-
*
|
|
66
|
-
* Node-only — depends on `node:crypto`, `node:tls`, `node-forge`, `@xmldom/xmldom`.
|
|
67
|
-
*/
|
|
68
|
-
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/signature-node/certificate-utils.d.ts
|
|
69
63
|
/** Extract certificate metadata from a Base64-encoded DER certificate. */
|
|
70
64
|
declare function certificateInfoFromBase64(certBase64: string): SignatureCertificateInfo | undefined;
|
|
71
65
|
/**
|
|
72
66
|
* Validate a certificate chain against system trust roots and optional additional roots.
|
|
73
67
|
*/
|
|
74
68
|
declare function validateCertificateChain(certBase64List: string[], additionalRootsPem: string[]): {
|
|
75
|
-
|
|
76
|
-
|
|
69
|
+
status: 'trusted' | 'untrusted' | 'not-checked';
|
|
70
|
+
error?: string;
|
|
77
71
|
};
|
|
78
72
|
/**
|
|
79
73
|
* Cryptographically verify the SignatureValue in an XML signature
|
|
@@ -86,49 +80,29 @@ declare function verifySignatureValue(signatureXml: string, certBase64List: stri
|
|
|
86
80
|
declare function loadSigningMaterialFromBuffer(certificateBuffer: Uint8Array, certificatePath: string, certificatePassword?: string): LoadedSigningMaterial;
|
|
87
81
|
/** Convert a PEM certificate to Base64-encoded DER (strip armour + whitespace). */
|
|
88
82
|
declare function pemCertificateToBase64(pem: string): string;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
* PKI validation utilities — PEM/fingerprint certificate helpers and
|
|
92
|
-
* timestamp-authority evaluation for OOXML digital signatures.
|
|
93
|
-
*
|
|
94
|
-
* OCSP revocation checking lives in `./ocsp.ts`.
|
|
95
|
-
*
|
|
96
|
-
* Node-only — depends on `node:crypto` and `node-forge`.
|
|
97
|
-
*/
|
|
98
|
-
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/signature-node/pki-validation.d.ts
|
|
99
85
|
/** Wrap a Base64-encoded DER certificate in PEM armour. */
|
|
100
86
|
declare function certPemFromBase64(certBase64: string): string | undefined;
|
|
101
87
|
/** SHA-256 fingerprint of a PEM certificate (lowercase hex, no colons). */
|
|
102
88
|
declare function certFingerprintSha256(certPem: string): string | undefined;
|
|
103
89
|
declare function evaluateTimestampAuthority(signatureXml: string): Promise<{
|
|
104
|
-
|
|
105
|
-
|
|
90
|
+
status: TimestampAuthorityStatus;
|
|
91
|
+
error?: string;
|
|
106
92
|
}>;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
* OCSP (Online Certificate Status Protocol) revocation checking for OOXML
|
|
110
|
-
* digital signature certificates.
|
|
111
|
-
*
|
|
112
|
-
* Node-only — depends on `node:crypto`, `node:http`, `node:https`, and `node-forge`.
|
|
113
|
-
*/
|
|
114
|
-
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region src/signature-node/ocsp.d.ts
|
|
115
95
|
declare function extractOcspUrls(certPem: string): string[];
|
|
116
96
|
declare function buildOcspRequestDer(leafPem: string, issuerPem: string): Buffer | undefined;
|
|
117
97
|
declare function parseOcspResponseStatus(data: Buffer): CertificateRevocationStatus;
|
|
118
98
|
declare function evaluateCertificateRevocation(leafCertPem: string, issuerCertPem: string | undefined): Promise<{
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
99
|
+
status: CertificateRevocationStatus;
|
|
100
|
+
error?: string;
|
|
101
|
+
checkedOcspUrls: string[];
|
|
102
|
+
checkedCrlUrls: string[];
|
|
123
103
|
}>;
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
* Environment-based configuration for digital signature validation.
|
|
127
|
-
*
|
|
128
|
-
* Node-only — reads trust roots from the file system and validation
|
|
129
|
-
* policy from environment variables.
|
|
130
|
-
*/
|
|
131
|
-
|
|
104
|
+
//#endregion
|
|
105
|
+
//#region src/signature-node/environment.d.ts
|
|
132
106
|
/** Extract individual PEM certificates from a text block. */
|
|
133
107
|
declare function extractPemCertificatesFromText(text: string): string[];
|
|
134
108
|
/**
|
|
@@ -142,14 +116,8 @@ declare function loadEnterpriseTrustRoots(): Promise<string[]>;
|
|
|
142
116
|
* Read the signature validation policy from environment variables.
|
|
143
117
|
*/
|
|
144
118
|
declare function getSignatureValidationPolicy(): SignatureValidationPolicy;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
* XML reference transform processing for digital signature verification.
|
|
148
|
-
*
|
|
149
|
-
* Node-only — depends on `@xmldom/xmldom` for DOM parsing and
|
|
150
|
-
* `xml-crypto` (via xml-canonicalization) for C14N transforms.
|
|
151
|
-
*/
|
|
152
|
-
|
|
119
|
+
//#endregion
|
|
120
|
+
//#region src/signature-node/reference-transforms.d.ts
|
|
153
121
|
/**
|
|
154
122
|
* Parse `<ds:Transform>` elements from a `<ds:Reference>` node.
|
|
155
123
|
*/
|
|
@@ -159,14 +127,8 @@ declare function extractReferenceTransforms(referenceNode: XmlElement): ParsedRe
|
|
|
159
127
|
* Supports OPC Relationship Transform and XML canonicalization algorithms.
|
|
160
128
|
*/
|
|
161
129
|
declare function applyReferenceTransforms(partBytes: Uint8Array, transforms: ParsedReferenceTransform[]): ReferenceTransformResult;
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
* Full reference digest verification for digital signatures.
|
|
165
|
-
*
|
|
166
|
-
* Node-only — uses `node:crypto` for synchronous hashing,
|
|
167
|
-
* `jszip` for ZIP access, and `@xmldom/xmldom` for DOM parsing.
|
|
168
|
-
*/
|
|
169
|
-
|
|
130
|
+
//#endregion
|
|
131
|
+
//#region src/signature-node/reference-checks.d.ts
|
|
170
132
|
/**
|
|
171
133
|
* Compute a Base64-encoded digest using Node.js `crypto` (synchronous).
|
|
172
134
|
*/
|
|
@@ -179,14 +141,8 @@ declare function buildReferenceChecksFromSignatureXml(zip: JSZip, signatureXml:
|
|
|
179
141
|
* Verify references from a PptxViewer manifest extension in the signature XML.
|
|
180
142
|
*/
|
|
181
143
|
declare function buildReferenceChecksFromPptxViewerManifest(zip: JSZip, signatureXml: string): Promise<SignatureReferenceCheck[]>;
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
* PPTX digital signature creation.
|
|
185
|
-
*
|
|
186
|
-
* Node-only — signs all content in a PPTX package with a certificate
|
|
187
|
-
* and returns the signed data along with a verification report.
|
|
188
|
-
*/
|
|
189
|
-
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region src/signature-node/signing.d.ts
|
|
190
146
|
/**
|
|
191
147
|
* Sign all content in a PPTX package with a certificate.
|
|
192
148
|
*
|
|
@@ -195,15 +151,8 @@ declare function buildReferenceChecksFromPptxViewerManifest(zip: JSZip, signatur
|
|
|
195
151
|
* along with a post-sign verification report.
|
|
196
152
|
*/
|
|
197
153
|
declare function signPptxWithCertificate(data: Uint8Array, certificateBuffer: Uint8Array, options: SignOptions): Promise<SignResult>;
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
* Full PPTX digital signature inspection (Node-only).
|
|
201
|
-
*
|
|
202
|
-
* Orchestrates all sub-modules to analyze every signature in a PPTX package:
|
|
203
|
-
* reference digest checks, certificate chain validation, OCSP revocation,
|
|
204
|
-
* and timestamp authority evaluation.
|
|
205
|
-
*/
|
|
206
|
-
|
|
154
|
+
//#endregion
|
|
155
|
+
//#region src/signature-node/inspection.d.ts
|
|
207
156
|
/**
|
|
208
157
|
* Inspect all digital signatures in a PPTX package.
|
|
209
158
|
*
|
|
@@ -218,5 +167,6 @@ declare function signPptxWithCertificate(data: Uint8Array, certificateBuffer: Ui
|
|
|
218
167
|
* @returns A comprehensive digital signature report.
|
|
219
168
|
*/
|
|
220
169
|
declare function inspectPptxDigitalSignatures(data: Uint8Array): Promise<DigitalSignatureReport>;
|
|
221
|
-
|
|
222
|
-
export { CertificateRevocationStatus, DigitalSignatureReport, LoadedSigningMaterial, ParsedReferenceTransform, ReferenceTransformResult, SignOptions, SignResult, SignatureCertificateInfo, SignatureReferenceCheck, SignatureValidationPolicy, TimestampAuthorityStatus, applyReferenceTransforms, buildOcspRequestDer, buildReferenceChecksFromPptxViewerManifest, buildReferenceChecksFromSignatureXml, canonicalizeNode, canonicalizeSignedInfoXml, certFingerprintSha256, certPemFromBase64, certificateInfoFromBase64, computeDigestBase64, evaluateCertificateRevocation, evaluateTimestampAuthority, extractOcspUrls, extractPemCertificatesFromText, extractReferenceTransforms, getFirstDescendantElementByLocalName, getNodeLocalName, getSignatureValidationPolicy, inspectPptxDigitalSignatures, loadEnterpriseTrustRoots, loadSigningMaterialFromBuffer, parseOcspResponseStatus, pemCertificateToBase64, signPptxWithCertificate, validateCertificateChain, verifySignatureValue };
|
|
170
|
+
//#endregion
|
|
171
|
+
export { type CertificateRevocationStatus, DIGEST_ALGORITHM_TO_HASH, DIGEST_ALGORITHM_TO_WEB_CRYPTO, DIGITAL_SIGNATURE_ORIGIN_REL_TYPE, DIGITAL_SIGNATURE_REL_TYPE, type DigitalSignatureReport, type DigitalSignatureVerificationStatus, ENTERPRISE_FAIL_ON_REVOCATION_UNKNOWN_ENV, ENTERPRISE_REQUIRE_REVOCATION_ENV, ENTERPRISE_REQUIRE_TIMESTAMP_ENV, ENTERPRISE_TRUST_ROOTS_FILE_ENV, ENTERPRISE_TRUST_ROOTS_PEM_ENV, type LoadedSigningMaterial, OPC_RELATIONSHIP_TRANSFORM, type OfficeSignatureReference, PPTX_VIEWER_MANIFEST_NS, type ParsedReferenceTransform, type ReferenceTransformResult, SUPPORTED_XML_CANON_TRANSFORMS, type SignOptions, type SignResult, type SignatureCertificateInfo, type SignatureDetail, type SignatureDetailStatus, type SignatureReferenceCheck, type SignatureValidationPolicy, type TimestampAuthorityStatus, XMLDSIG_NS, XML_TRANSFORM_ENVELOPED_SIGNATURE, applyReferenceTransforms, buildOcspRequestDer, buildReferenceChecksFromPptxViewerManifest, buildReferenceChecksFromSignatureXml, canonicalizeNode, canonicalizeSignedInfoXml, certFingerprintSha256, certPemFromBase64, certificateInfoFromBase64, computeDetailStatus, computeDigestBase64, computeDigestBase64$1 as computeDigestBase64WebCrypto, computeVerificationStatus, escapeXmlAttr, escapeXmlText, evaluateCertificateRevocation, evaluateTimestampAuthority, extractAllTagText, extractFirstTagText, extractOcspUrls, extractPemCertificatesFromText, extractReferenceTransforms, extractTagAttribute, getFirstDescendantElementByLocalName, getNodeLocalName, getSignatureValidationPolicy, inspectPptxDigitalSignatures, isValidBase64, loadEnterpriseTrustRoots, loadSigningMaterialFromBuffer, normalizePartPath, parseOcspResponseStatus, pemCertificateToBase64, resolveReferenceUriToPart, signPptxWithCertificate, validateCertificateChain, verifySignatureValue };
|
|
172
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/signature-node/xml-canonicalization.ts","../../src/signature-node/certificate-utils.ts","../../src/signature-node/pki-validation.ts","../../src/signature-node/ocsp.ts","../../src/signature-node/environment.ts","../../src/signature-node/reference-transforms.ts","../../src/signature-node/reference-checks.ts","../../src/signature-node/signing.ts","../../src/signature-node/inspection.ts"],"mappings":";;;;;;;;;;;;;;;;;UAkBiB;WACP;EACT,KAAK,gBAAgB;GACpB,gBAAgB;GAChB,OAAO,aAAa,SAAS;;;UAId;WACP;WACA;WACA;WACA;IAAc,YAAY,OAAO,aAAa;;EACvD,aAAa;EACb,qBAAqB,oBAAoB;EACzC,uBAAuB,6BAA6B,oBAAoB;;;UAIxD;WACP,iBAAiB;EAC1B,qBAAqB,oBAAoB;EACzC,uBAAuB,6BAA6B,oBAAoB;;;iBAIzD,iBAAiB,MAAM;;;;;iBAavB,qCACf,QAAQ,cAAc,YACtB,oBACE;;;;;;;iBAqBa,iBAAiB,WAAW;;;;;iBAS5B,0BAA0B;;;;iBC3D1B,0BACf,qBACE;;;;iBAkBa,yBACf,0BACA;EAEA;EACA;;;;;;iBAgDe,qBACf,sBACA;;;;iBAiDe,8BACf,mBAAmB,YACnB,yBACA,+BACE;;iBAmCa,uBAAuB;;;;iBC7KvB,kBAAkB;;iBAkBlB,sBAAsB;iBAqBhB,2BACrB,uBACE;EAAU,QAAQ;EAA0B;;;;iBC/B/B,gBAAgB;iBA2EhB,oBAAoB,iBAAiB,oBAAoB;iBA8DzD,wBAAwB,MAAM,SAAS;iBA8DjC,8BACrB,qBACA,oCACE;EACF,QAAQ;EACR;EACA;EACA;;;;;iBCzNe,+BAA+B;;;;;;;iBA8BzB,4BAA4B;;;;iBAqBlC,gCAAgC;;;;;;iBC3ChC,2BAA2B,eAAe,aAAa;;;;;iBAyEvD,yBACf,WAAW,YACX,YAAY,6BACV;;;;;;iBC9Ea,oBACf,SAAS,YACT;;;;iBAYqB,qCACrB,KAAK,OACL,uBACE,QAAQ;;;;iBAkGW,2CACrB,KAAK,OACL,uBACE,QAAQ;;;;;;;;;;iBCuBW,wBACrB,MAAM,YACN,mBAAmB,YACnB,SAAS,cACP,QAAQ;;;;;;;;;;;;;;;;iBCxHW,6BACrB,MAAM,aACJ,QAAQ"}
|