micro509 0.8.0 → 0.10.0

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 (108) hide show
  1. package/dist/index.d.ts +4 -4
  2. package/dist/index.js +15 -15
  3. package/dist/internal/asn1/asn1.js +145 -186
  4. package/dist/internal/asn1/asn1.js.map +1 -0
  5. package/dist/internal/asn1/der.js +210 -227
  6. package/dist/internal/asn1/der.js.map +1 -0
  7. package/dist/internal/asn1/oids.js +297 -101
  8. package/dist/internal/asn1/oids.js.map +1 -0
  9. package/dist/internal/asn1/oids2.js +69 -0
  10. package/dist/internal/asn1/oids2.js.map +1 -0
  11. package/dist/internal/crypto/algorithm-names.js +37 -35
  12. package/dist/internal/crypto/algorithm-names.js.map +1 -0
  13. package/dist/internal/crypto/ecdsa.js +25 -28
  14. package/dist/internal/crypto/ecdsa.js.map +1 -0
  15. package/dist/internal/crypto/hash.js +56 -117
  16. package/dist/internal/crypto/hash.js.map +1 -0
  17. package/dist/internal/crypto/pbes2.js +122 -133
  18. package/dist/internal/crypto/pbes2.js.map +1 -0
  19. package/dist/internal/crypto/rsa-pss.js +118 -124
  20. package/dist/internal/crypto/rsa-pss.js.map +1 -0
  21. package/dist/internal/crypto/sig-verify.js +87 -99
  22. package/dist/internal/crypto/sig-verify.js.map +1 -0
  23. package/dist/internal/crypto/signing.d.ts +12 -8
  24. package/dist/internal/crypto/signing.js +53 -55
  25. package/dist/internal/crypto/signing.js.map +1 -0
  26. package/dist/internal/crypto/webcrypto.js +5 -3
  27. package/dist/internal/crypto/webcrypto.js.map +1 -0
  28. package/dist/internal/shared/base64.js +10 -9
  29. package/dist/internal/shared/base64.js.map +1 -0
  30. package/dist/internal/shared/dn.js +50 -57
  31. package/dist/internal/shared/dn.js.map +1 -0
  32. package/dist/internal/shared/ip.js +43 -53
  33. package/dist/internal/shared/ip.js.map +1 -0
  34. package/dist/internal/verify/name-constraints-engine.js +211 -239
  35. package/dist/internal/verify/name-constraints-engine.js.map +1 -0
  36. package/dist/internal/verify/policy-engine.js +228 -247
  37. package/dist/internal/verify/policy-engine.js.map +1 -0
  38. package/dist/internal/verify/verify-path.js +213 -228
  39. package/dist/internal/verify/verify-path.js.map +1 -0
  40. package/dist/internal/x509/extension-bits.js +62 -59
  41. package/dist/internal/x509/extension-bits.js.map +1 -0
  42. package/dist/internal/x509/extension-registry.js +133 -164
  43. package/dist/internal/x509/extension-registry.js.map +1 -0
  44. package/dist/internal/x509/name-fields.js +35 -41
  45. package/dist/internal/x509/name-fields.js.map +1 -0
  46. package/dist/keys/keys.d.ts +626 -447
  47. package/dist/keys/keys.js +652 -404
  48. package/dist/keys/keys.js.map +1 -0
  49. package/dist/keys.d.ts +2 -2
  50. package/dist/keys.js +2 -2
  51. package/dist/pem/pem.d.ts +46 -46
  52. package/dist/pem/pem.js +62 -81
  53. package/dist/pem/pem.js.map +1 -0
  54. package/dist/pem.js +2 -2
  55. package/dist/pkcs/pfx.d.ts +96 -80
  56. package/dist/pkcs/pfx.js +191 -231
  57. package/dist/pkcs/pfx.js.map +1 -0
  58. package/dist/pkcs/pkcs12-mac.d.ts +20 -18
  59. package/dist/pkcs/pkcs12-mac.js +90 -111
  60. package/dist/pkcs/pkcs12-mac.js.map +1 -0
  61. package/dist/pkcs/pkcs7.d.ts +118 -69
  62. package/dist/pkcs/pkcs7.js +401 -443
  63. package/dist/pkcs/pkcs7.js.map +1 -0
  64. package/dist/pkcs.d.ts +2 -2
  65. package/dist/pkcs.js +4 -4
  66. package/dist/result/result.d.ts +37 -32
  67. package/dist/result/result.js +46 -44
  68. package/dist/result/result.js.map +1 -0
  69. package/dist/result.js +2 -2
  70. package/dist/revocation/chain.d.ts +138 -119
  71. package/dist/revocation/chain.js +248 -281
  72. package/dist/revocation/chain.js.map +1 -0
  73. package/dist/revocation/crl.d.ts +125 -123
  74. package/dist/revocation/crl.js +653 -745
  75. package/dist/revocation/crl.js.map +1 -0
  76. package/dist/revocation/ocsp.d.ts +183 -177
  77. package/dist/revocation/ocsp.js +581 -638
  78. package/dist/revocation/ocsp.js.map +1 -0
  79. package/dist/revocation/revocation.d.ts +26 -26
  80. package/dist/revocation/revocation.js +104 -125
  81. package/dist/revocation/revocation.js.map +1 -0
  82. package/dist/revocation.js +5 -5
  83. package/dist/verify/identity.d.ts +42 -42
  84. package/dist/verify/identity.js +158 -167
  85. package/dist/verify/identity.js.map +1 -0
  86. package/dist/verify/name-constraints.d.ts +7 -7
  87. package/dist/verify/policy.d.ts +10 -10
  88. package/dist/verify/verify.d.ts +163 -163
  89. package/dist/verify/verify.js +396 -392
  90. package/dist/verify/verify.js.map +1 -0
  91. package/dist/verify.js +3 -3
  92. package/dist/x509/certificate.d.ts +117 -117
  93. package/dist/x509/certificate.js +51 -60
  94. package/dist/x509/certificate.js.map +1 -0
  95. package/dist/x509/csr.d.ts +25 -25
  96. package/dist/x509/csr.js +26 -30
  97. package/dist/x509/csr.js.map +1 -0
  98. package/dist/x509/extensions.d.ts +228 -184
  99. package/dist/x509/extensions.js +175 -200
  100. package/dist/x509/extensions.js.map +1 -0
  101. package/dist/x509/name.d.ts +94 -93
  102. package/dist/x509/name.js +30 -29
  103. package/dist/x509/name.js.map +1 -0
  104. package/dist/x509/parse.d.ts +185 -185
  105. package/dist/x509/parse.js +638 -676
  106. package/dist/x509/parse.js.map +1 -0
  107. package/dist/x509.js +6 -6
  108. package/package.json +79 -41
@@ -2,53 +2,52 @@ import { ParsedCertificate } from "../x509/parse.js";
2
2
  import { CrlSource, RevocationReason } from "./crl.js";
3
3
  import { OcspResponderRevocationPolicy } from "./ocsp.js";
4
4
  import { RevocationCertificateSource } from "./revocation.js";
5
-
6
5
  //#region src/revocation/chain.d.ts
7
6
  /**
8
- * OCSP response in any supported format.
9
- *
10
- * Accepts PEM string or DER bytes. Used for
11
- * {@linkcode CheckChainRevocationInput.ocspResponses}.
12
- */
7
+ * OCSP response in any supported format.
8
+ *
9
+ * Accepts PEM string or DER bytes. Used for
10
+ * {@linkcode CheckChainRevocationInput.ocspResponses}.
11
+ */
13
12
  type OcspResponseSource = string | Uint8Array;
14
13
  /**
15
- * Revocation checking policy for {@linkcode checkChainRevocation}.
16
- *
17
- * Controls how indeterminate results (missing evidence, expired CRLs) affect
18
- * the final {@linkcode CheckChainRevocationValue.decision | decision}.
19
- */
14
+ * Revocation checking policy for {@linkcode checkChainRevocation}.
15
+ *
16
+ * Controls how indeterminate results (missing evidence, expired CRLs) affect
17
+ * the final {@linkcode CheckChainRevocationValue.decision | decision}.
18
+ */
20
19
  interface RevocationPolicy {
21
20
  /**
22
- * How to handle indeterminate status.
23
- *
24
- * - `'hard-fail'`: indeterminate certificates cause denial (default)
25
- * - `'soft-fail'`: indeterminate certificates are allowed — an explicit
26
- * availability/compatibility choice
27
- *
28
- * Revocation checking itself is opt-in: no check runs unless evidence is
29
- * supplied. Once it is, indeterminate status denies by default.
30
- */
21
+ * How to handle indeterminate status.
22
+ *
23
+ * - `'hard-fail'`: indeterminate certificates cause denial (default)
24
+ * - `'soft-fail'`: indeterminate certificates are allowed — an explicit
25
+ * availability/compatibility choice
26
+ *
27
+ * Revocation checking itself is opt-in: no check runs unless evidence is
28
+ * supplied. Once it is, indeterminate status denies by default.
29
+ */
31
30
  readonly mode?: "soft-fail" | "hard-fail";
32
31
  /**
33
- * Evidence preference when multiple sources are available.
34
- *
35
- * Both evidence kinds are always evaluated, and a validated `revoked`
36
- * verdict from either source wins regardless of preference (fail-closed).
37
- * Preference only decides which source's `good` verdict is reported when
38
- * both yield one.
39
- *
40
- * - `'best-available'`: the source with the fresher evidence — the later
41
- * `thisUpdate` on the validated OCSP entry or CRL — is reported; ties
42
- * favor OCSP (default)
43
- * - `'ocsp'`: prefer OCSP over CRL
44
- * - `'crl'`: prefer CRL over OCSP
45
- */
32
+ * Evidence preference when multiple sources are available.
33
+ *
34
+ * Both evidence kinds are always evaluated, and a validated `revoked`
35
+ * verdict from either source wins regardless of preference (fail-closed).
36
+ * Preference only decides which source's `good` verdict is reported when
37
+ * both yield one.
38
+ *
39
+ * - `'best-available'`: the source with the fresher evidence — the later
40
+ * `thisUpdate` on the validated OCSP entry or CRL — is reported; ties
41
+ * favor OCSP (default)
42
+ * - `'ocsp'`: prefer OCSP over CRL
43
+ * - `'crl'`: prefer CRL over OCSP
44
+ */
46
45
  readonly prefer?: "ocsp" | "crl" | "best-available";
47
46
  /**
48
- * Revocation policy for delegated OCSP responder certificates
49
- * (RFC 6960 §4.2.2.2.1). Supplied CRLs double as responder revocation
50
- * evidence. Defaults to `'honor-nocheck'`.
51
- */
47
+ * Revocation policy for delegated OCSP responder certificates
48
+ * (RFC 6960 §4.2.2.2.1). Supplied CRLs double as responder revocation
49
+ * evidence. Defaults to `'honor-nocheck'`.
50
+ */
52
51
  readonly ocspResponderRevocation?: OcspResponderRevocationPolicy;
53
52
  }
54
53
  /** Input for {@linkcode checkChainRevocation}. */
@@ -62,10 +61,10 @@ interface CheckChainRevocationInput {
62
61
  /** Extra certs for indirect CRL issuers / delegated OCSP responders. */
63
62
  readonly extraCertificates?: readonly RevocationCertificateSource[];
64
63
  /**
65
- * Explicitly trusted OCSP responder certificates (RFC 6960 §4.2.2.2
66
- * criterion 1). A response signed by one of these is accepted without
67
- * delegated-responder issuance, EKU, and revocation checks.
68
- */
64
+ * Explicitly trusted OCSP responder certificates (RFC 6960 §4.2.2.2
65
+ * criterion 1). A response signed by one of these is accepted without
66
+ * delegated-responder issuance, EKU, and revocation checks.
67
+ */
69
68
  readonly trustedOcspResponders?: readonly RevocationCertificateSource[];
70
69
  /** Evaluation time. Defaults to `new Date()`. */
71
70
  readonly at?: Date;
@@ -73,27 +72,27 @@ interface CheckChainRevocationInput {
73
72
  readonly policy?: RevocationPolicy;
74
73
  }
75
74
  /**
76
- * Granular reasons why revocation status could not be determined.
77
- *
78
- * Returned in {@linkcode CertificateRevocationStatus}'s `indeterminateReasons`
79
- * when `status` is `'indeterminate'`. Grouped by category:
80
- *
81
- * - **Evidence not found**: `no_applicable_crl`, `no_applicable_ocsp`
82
- * - **Scope mismatch**: `distribution_point_mismatch`, `issuer_name_mismatch`,
83
- * `reason_scope_mismatch`, `indirect_crl_scope_mismatch`, `reason_coverage_incomplete`
84
- * - **Signer trust**: `crl_signer_not_found`, `crl_signer_not_authorized`,
85
- * `crl_signer_revoked`, `crl_signer_indeterminate`, and OCSP equivalents
86
- * - **Freshness**: `crl_expired`, `ocsp_response_expired`
87
- */
75
+ * Granular reasons why revocation status could not be determined.
76
+ *
77
+ * Returned in {@linkcode CertificateRevocationStatus}'s `indeterminateReasons`
78
+ * when `status` is `'indeterminate'`. Grouped by category:
79
+ *
80
+ * - **Evidence not found**: `no_applicable_crl`, `no_applicable_ocsp`
81
+ * - **Scope mismatch**: `distribution_point_mismatch`, `issuer_name_mismatch`,
82
+ * `reason_scope_mismatch`, `indirect_crl_scope_mismatch`, `reason_coverage_incomplete`
83
+ * - **Signer trust**: `crl_signer_not_found`, `crl_signer_not_authorized`,
84
+ * `crl_signer_revoked`, `crl_signer_indeterminate`, and OCSP equivalents
85
+ * - **Freshness**: `crl_expired`, `ocsp_response_expired`
86
+ */
88
87
  declare const REVOCATION_INDETERMINATE_REASONS: readonly ["no_applicable_crl", "no_applicable_ocsp", "distribution_point_mismatch", "issuer_name_mismatch", "reason_scope_mismatch", "indirect_crl_scope_mismatch", "reason_coverage_incomplete", "crl_signer_not_found", "crl_signer_not_authorized", "crl_signer_revoked", "crl_signer_indeterminate", "ocsp_responder_not_found", "ocsp_responder_not_authorized", "ocsp_responder_revoked", "ocsp_responder_indeterminate", "crl_expired", "ocsp_response_expired", "ocsp_status_unknown"];
89
88
  /** See the doc comment above {@linkcode REVOCATION_INDETERMINATE_REASONS}. */
90
89
  type RevocationIndeterminateReason = (typeof REVOCATION_INDETERMINATE_REASONS)[number];
91
90
  /**
92
- * Identifies the source of revocation evidence.
93
- *
94
- * Included in {@linkcode CertificateRevocationStatus}'s `source` when status is
95
- * `'good'` or `'revoked'` to indicate which CRL or OCSP response provided the answer.
96
- */
91
+ * Identifies the source of revocation evidence.
92
+ *
93
+ * Included in {@linkcode CertificateRevocationStatus}'s `source` when status is
94
+ * `'good'` or `'revoked'` to indicate which CRL or OCSP response provided the answer.
95
+ */
97
96
  interface RevocationSource {
98
97
  /** Whether evidence came from a CRL or OCSP response. */
99
98
  readonly kind: "crl" | "ocsp";
@@ -102,49 +101,66 @@ interface RevocationSource {
102
101
  /** Identifier for debugging (e.g., CRL issuer DN or OCSP responder URL). */
103
102
  readonly evidenceIdentifier?: string;
104
103
  /**
105
- * `thisUpdate` of the evidence backing the verdict — the OCSP single
106
- * response entry or the freshest contributing CRL (an applied delta CRL
107
- * supersedes its base). This is the timestamp `'best-available'` compares.
108
- */
104
+ * `thisUpdate` of the evidence backing the verdict — the OCSP single
105
+ * response entry or the freshest contributing CRL (an applied delta CRL
106
+ * supersedes its base). This is the timestamp `'best-available'` compares.
107
+ */
109
108
  readonly thisUpdate?: Date;
110
109
  }
111
110
  /**
112
- * Revocation evaluation result for a single certificate.
113
- *
114
- * One entry per certificate in {@linkcode CheckChainRevocationValue.certificates}.
115
- * The trust anchor is excluded (never checked for revocation).
116
- */
111
+ * Revocation evaluation result for a single certificate.
112
+ *
113
+ * One entry per certificate in {@linkcode CheckChainRevocationValue.certificates}.
114
+ * The trust anchor is excluded (never checked for revocation).
115
+ */
117
116
  type CertificateRevocationStatus = {
118
- /** The certificate that was evaluated. */readonly certificate: ParsedCertificate; /** Evidence confirms the certificate is not revoked. */
119
- readonly status: "good"; /** Evidence that produced the verdict. */
120
- readonly source: RevocationSource; /** Never present on a `good` verdict. */
121
- readonly indeterminateReasons?: undefined; /** Never present on a `good` verdict. */
117
+ /** The certificate that was evaluated. */
118
+ readonly certificate: ParsedCertificate;
119
+ /** Evidence confirms the certificate is not revoked. */
120
+ readonly status: "good";
121
+ /** Evidence that produced the verdict. */
122
+ readonly source: RevocationSource;
123
+ /** Never present on a `good` verdict. */
124
+ readonly indeterminateReasons?: undefined;
125
+ /** Never present on a `good` verdict. */
122
126
  readonly revocationInfo?: undefined;
123
127
  } | {
124
- /** The certificate that was evaluated. */readonly certificate: ParsedCertificate; /** Evidence confirms the certificate is revoked. */
125
- readonly status: "revoked"; /** Evidence that produced the verdict. */
126
- readonly source: RevocationSource; /** Revocation details from the CRL entry or OCSP response. */
128
+ /** The certificate that was evaluated. */
129
+ readonly certificate: ParsedCertificate;
130
+ /** Evidence confirms the certificate is revoked. */
131
+ readonly status: "revoked";
132
+ /** Evidence that produced the verdict. */
133
+ readonly source: RevocationSource;
134
+ /** Revocation details from the CRL entry or OCSP response. */
127
135
  readonly revocationInfo: {
128
- /** When the certificate was revoked. */readonly revocationDate: Date; /** RFC 5280 CRLReason code, if provided by the CRL/OCSP response. */
136
+ /** When the certificate was revoked. */
137
+ readonly revocationDate: Date;
138
+ /** RFC 5280 CRLReason code, if provided by the CRL/OCSP response. */
129
139
  readonly reason?: RevocationReason;
130
- }; /** Never present on a `revoked` verdict. */
140
+ };
141
+ /** Never present on a `revoked` verdict. */
131
142
  readonly indeterminateReasons?: undefined;
132
143
  } | {
133
- /** The certificate that was evaluated. */readonly certificate: ParsedCertificate; /** Revocation status could not be determined. */
134
- readonly status: "indeterminate"; /** Why status could not be determined. */
135
- readonly indeterminateReasons: readonly RevocationIndeterminateReason[]; /** Never present on an `indeterminate` verdict. */
136
- readonly source?: undefined; /** Never present on an `indeterminate` verdict. */
144
+ /** The certificate that was evaluated. */
145
+ readonly certificate: ParsedCertificate;
146
+ /** Revocation status could not be determined. */
147
+ readonly status: "indeterminate";
148
+ /** Why status could not be determined. */
149
+ readonly indeterminateReasons: readonly RevocationIndeterminateReason[];
150
+ /** Never present on an `indeterminate` verdict. */
151
+ readonly source?: undefined;
152
+ /** Never present on an `indeterminate` verdict. */
137
153
  readonly revocationInfo?: undefined;
138
154
  };
139
155
  /**
140
- * Errors encountered while processing revocation evidence.
141
- *
142
- * Distinct from {@linkcode RevocationIndeterminateReason}: execution errors are
143
- * code failures (malformed CRL, unsupported extension) rather than evaluation
144
- * outcomes (CRL doesn't cover this certificate).
145
- *
146
- * Collected in {@linkcode CheckChainRevocationValue.executionErrors}.
147
- */
156
+ * Errors encountered while processing revocation evidence.
157
+ *
158
+ * Distinct from {@linkcode RevocationIndeterminateReason}: execution errors are
159
+ * code failures (malformed CRL, unsupported extension) rather than evaluation
160
+ * outcomes (CRL doesn't cover this certificate).
161
+ *
162
+ * Collected in {@linkcode CheckChainRevocationValue.executionErrors}.
163
+ */
148
164
  interface RevocationExecutionError {
149
165
  /** Error category. */
150
166
  readonly kind: "parse_error" | "unsupported_extension" | "internal_error";
@@ -154,23 +170,25 @@ interface RevocationExecutionError {
154
170
  readonly evidenceIdentifier?: string;
155
171
  }
156
172
  /**
157
- * Detailed revocation check results.
158
- *
159
- * Returned as {@linkcode CheckChainRevocationResult.value} from
160
- * {@linkcode checkChainRevocation}. Contains both the policy decision and
161
- * detailed per-certificate findings for debugging.
162
- */
173
+ * Detailed revocation check results.
174
+ *
175
+ * Returned as {@linkcode CheckChainRevocationResult.value} from
176
+ * {@linkcode checkChainRevocation}. Contains both the policy decision and
177
+ * detailed per-certificate findings for debugging.
178
+ */
163
179
  interface CheckChainRevocationValue {
164
180
  /**
165
- * Final policy decision based on {@linkcode RevocationPolicy}.
166
- *
167
- * - `'allow'`: chain passes revocation check
168
- * - `'deny'`: chain fails (revoked certificate or hard-fail on indeterminate)
169
- */
181
+ * Final policy decision based on {@linkcode RevocationPolicy}.
182
+ *
183
+ * - `'allow'`: chain passes revocation check
184
+ * - `'deny'`: chain fails (revoked certificate or hard-fail on indeterminate)
185
+ */
170
186
  readonly decision: "allow" | "deny";
171
187
  /** Quick-access summary of problematic certificates. */
172
188
  readonly summary: {
173
- /** Certificates confirmed as revoked. */readonly revokedCertificates: readonly ParsedCertificate[]; /** Certificates whose status could not be determined. */
189
+ /** Certificates confirmed as revoked. */
190
+ readonly revokedCertificates: readonly ParsedCertificate[];
191
+ /** Certificates whose status could not be determined. */
174
192
  readonly indeterminateCertificates: readonly ParsedCertificate[];
175
193
  };
176
194
  /** Per-certificate evaluation results. See {@linkcode CertificateRevocationStatus}. */
@@ -184,24 +202,25 @@ type CheckChainRevocationResult = {
184
202
  readonly value: CheckChainRevocationValue;
185
203
  };
186
204
  /**
187
- * Checks revocation status for all certificates in a validated chain.
188
- *
189
- * Evaluates CRL and OCSP evidence against each certificate (except the trust
190
- * anchor), applies the revocation policy, and returns a unified decision.
191
- *
192
- * @example
193
- * ```ts
194
- * const result = await checkChainRevocation({
195
- * chain: validatedChain,
196
- * crls: [crl1, crl2],
197
- * ocspResponses: [ocspResponseDer],
198
- * policy: { mode: 'hard-fail' },
199
- * });
200
- * if (result.value.decision === 'deny') {
201
- * console.log('Revocation check failed');
202
- * }
203
- * ```
204
- */
205
+ * Checks revocation status for all certificates in a validated chain.
206
+ *
207
+ * Evaluates CRL and OCSP evidence against each certificate (except the trust
208
+ * anchor), applies the revocation policy, and returns a unified decision.
209
+ *
210
+ * @example
211
+ * ```ts
212
+ * const result = await checkChainRevocation({
213
+ * chain: validatedChain,
214
+ * crls: [crl1, crl2],
215
+ * ocspResponses: [ocspResponseDer],
216
+ * policy: { mode: 'hard-fail' },
217
+ * });
218
+ * if (result.value.decision === 'deny') {
219
+ * console.log('Revocation check failed');
220
+ * }
221
+ * ```
222
+ */
205
223
  declare function checkChainRevocation(input: CheckChainRevocationInput): Promise<CheckChainRevocationResult>;
206
224
  //#endregion
207
- export { CertificateRevocationStatus, CheckChainRevocationInput, CheckChainRevocationResult, CheckChainRevocationValue, type CrlSource, OcspResponseSource, REVOCATION_INDETERMINATE_REASONS, RevocationExecutionError, RevocationIndeterminateReason, RevocationPolicy, RevocationSource, checkChainRevocation };
225
+ export { CertificateRevocationStatus, CheckChainRevocationInput, CheckChainRevocationResult, CheckChainRevocationValue, type CrlSource, OcspResponseSource, REVOCATION_INDETERMINATE_REASONS, RevocationExecutionError, RevocationIndeterminateReason, RevocationPolicy, RevocationSource, checkChainRevocation };
226
+ //# sourceMappingURL=chain.d.ts.map