@openeudi/openid4vp 0.9.1 → 0.9.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/README.md +31 -4
- package/dist/index.cjs +150 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +150 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
1
2
|
import { X509Certificate, SubjectKeyIdentifierExtension, X509Certificates, BasicConstraintsExtension, KeyUsagesExtension, KeyUsageFlags as KeyUsageFlags$1, AuthorityKeyIdentifierExtension, SubjectAlternativeNameExtension, ExtendedKeyUsageExtension, Name as Name$1 } from '@peculiar/x509';
|
|
2
3
|
import { v4 } from 'uuid';
|
|
3
4
|
import { SignJWT, importX509, decodeProtectedHeader, jwtVerify, importJWK, compactDecrypt } from 'jose';
|
|
@@ -17,11 +18,16 @@ var __export = (target, all) => {
|
|
|
17
18
|
for (var name in all)
|
|
18
19
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
20
|
};
|
|
21
|
+
var init_reflect_polyfill = __esm({
|
|
22
|
+
"src/reflect-polyfill.ts"() {
|
|
23
|
+
}
|
|
24
|
+
});
|
|
20
25
|
|
|
21
26
|
// src/errors.ts
|
|
22
27
|
var InvalidSignatureError, ExpiredCredentialError, UnsupportedFormatError, MalformedCredentialError, NonceValidationError, HaipValidationError, OpenID4VPError, TrustAnchorNotFoundError, CertificateChainError, RevokedCertificateError, RevocationCheckFailedError, LotlFetchError, LotlSignatureError, SignedRequestBuildError, UnsupportedJweError, DecryptionFailedError, MissingDecryptionKeyError, MissingVerifierEncryptionKeyError, MultipleCredentialsNotSupportedError;
|
|
23
28
|
var init_errors = __esm({
|
|
24
29
|
"src/errors.ts"() {
|
|
30
|
+
init_reflect_polyfill();
|
|
25
31
|
InvalidSignatureError = class extends Error {
|
|
26
32
|
constructor(message = "Credential signature validation failed") {
|
|
27
33
|
super(message);
|
|
@@ -185,6 +191,7 @@ function isEqual(bytes1, bytes2) {
|
|
|
185
191
|
var ARRAY_BUFFER_NAME, BufferSourceConverter, STRING_TYPE, HEX_REGEX, BASE64_REGEX, BASE64URL_REGEX, Utf8Converter, Utf16Converter, Convert;
|
|
186
192
|
var init_index_es = __esm({
|
|
187
193
|
"node_modules/pvtsutils/build/index.es.js"() {
|
|
194
|
+
init_reflect_polyfill();
|
|
188
195
|
ARRAY_BUFFER_NAME = "[object ArrayBuffer]";
|
|
189
196
|
BufferSourceConverter = class _BufferSourceConverter {
|
|
190
197
|
static isArrayBuffer(data) {
|
|
@@ -641,6 +648,7 @@ function padNumber(inputNumber, fullLength) {
|
|
|
641
648
|
}
|
|
642
649
|
var init_utils_es = __esm({
|
|
643
650
|
"node_modules/pvutils/build/utils.es.js"() {
|
|
651
|
+
init_reflect_polyfill();
|
|
644
652
|
}
|
|
645
653
|
});
|
|
646
654
|
|
|
@@ -1477,6 +1485,7 @@ function verifySchema(inputBuffer, inputSchema) {
|
|
|
1477
1485
|
var ViewWriter, powers2, digitsString, NAME, VALUE_HEX_VIEW, IS_HEX_ONLY, ID_BLOCK, TAG_CLASS, TAG_NUMBER, IS_CONSTRUCTED, FROM_BER, TO_BER, LOCAL, EMPTY_STRING, EMPTY_BUFFER, EMPTY_VIEW, END_OF_CONTENT_NAME, OCTET_STRING_NAME, BIT_STRING_NAME, LocalBaseBlock, ValueBlock, LocalIdentificationBlock, LocalLengthBlock, typeStore, BaseBlock, BaseStringBlock, LocalPrimitiveValueBlock, _a$w, Primitive, DEFAULT_MAX_DEPTH, DEFAULT_MAX_NODES, DEFAULT_MAX_CONTENT_LENGTH, MAX_DEPTH_EXCEEDED_ERROR, MAX_NODES_EXCEEDED_ERROR, MAX_CONTENT_LENGTH_EXCEEDED_ERROR, LocalConstructedValueBlock, _a$v, Constructed, LocalEndOfContentValueBlock, _a$u, EndOfContent, _a$t, Null, LocalBooleanValueBlock, _a$s, Boolean2, LocalOctetStringValueBlock, _a$r, OctetString, LocalBitStringValueBlock, _a$q, BitString, _a$p, LocalIntegerValueBlock, _a$o, Integer, _a$n, Enumerated, LocalSidValueBlock, LocalObjectIdentifierValueBlock, _a$m, ObjectIdentifier, LocalRelativeSidValueBlock, LocalRelativeObjectIdentifierValueBlock, _a$l, RelativeObjectIdentifier, _a$k, Sequence, _a$j, Set2, LocalStringValueBlock, LocalSimpleStringValueBlock, LocalSimpleStringBlock, LocalUtf8StringValueBlock, _a$i, Utf8String, LocalBmpStringValueBlock, _a$h, BmpString, LocalUniversalStringValueBlock, _a$g, UniversalString, _a$f, NumericString, _a$e, PrintableString, _a$d, TeletexString, _a$c, VideotexString, _a$b, IA5String, _a$a, GraphicString, _a$9, VisibleString, _a$8, GeneralString, _a$7, CharacterString, _a$6, UTCTime, _a$5, GeneralizedTime, _a$4, DATE, _a$3, TimeOfDay, _a$2, DateTime, _a$1, Duration, _a, TIME, Any, Choice, Repeated, RawData;
|
|
1478
1486
|
var init_index_es2 = __esm({
|
|
1479
1487
|
"node_modules/asn1js/build/index.es.js"() {
|
|
1488
|
+
init_reflect_polyfill();
|
|
1480
1489
|
init_index_es();
|
|
1481
1490
|
init_utils_es();
|
|
1482
1491
|
ViewWriter = class {
|
|
@@ -3713,6 +3722,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
3713
3722
|
var AsnTypeTypes, AsnPropTypes;
|
|
3714
3723
|
var init_enums = __esm({
|
|
3715
3724
|
"node_modules/@peculiar/asn1-schema/build/es2015/enums.js"() {
|
|
3725
|
+
init_reflect_polyfill();
|
|
3716
3726
|
(function(AsnTypeTypes2) {
|
|
3717
3727
|
AsnTypeTypes2[AsnTypeTypes2["Sequence"] = 0] = "Sequence";
|
|
3718
3728
|
AsnTypeTypes2[AsnTypeTypes2["Set"] = 1] = "Set";
|
|
@@ -3754,6 +3764,7 @@ var init_enums = __esm({
|
|
|
3754
3764
|
var BitString2;
|
|
3755
3765
|
var init_bit_string = __esm({
|
|
3756
3766
|
"node_modules/@peculiar/asn1-schema/build/es2015/types/bit_string.js"() {
|
|
3767
|
+
init_reflect_polyfill();
|
|
3757
3768
|
init_index_es2();
|
|
3758
3769
|
init_index_es();
|
|
3759
3770
|
BitString2 = class {
|
|
@@ -3818,6 +3829,7 @@ var init_bit_string = __esm({
|
|
|
3818
3829
|
var OctetString2;
|
|
3819
3830
|
var init_octet_string = __esm({
|
|
3820
3831
|
"node_modules/@peculiar/asn1-schema/build/es2015/types/octet_string.js"() {
|
|
3832
|
+
init_reflect_polyfill();
|
|
3821
3833
|
init_index_es2();
|
|
3822
3834
|
init_index_es();
|
|
3823
3835
|
OctetString2 = class {
|
|
@@ -3860,6 +3872,7 @@ var init_octet_string = __esm({
|
|
|
3860
3872
|
// node_modules/@peculiar/asn1-schema/build/es2015/types/index.js
|
|
3861
3873
|
var init_types = __esm({
|
|
3862
3874
|
"node_modules/@peculiar/asn1-schema/build/es2015/types/index.js"() {
|
|
3875
|
+
init_reflect_polyfill();
|
|
3863
3876
|
init_bit_string();
|
|
3864
3877
|
init_octet_string();
|
|
3865
3878
|
}
|
|
@@ -3925,6 +3938,7 @@ function defaultConverter(type) {
|
|
|
3925
3938
|
var AsnAnyConverter, AsnIntegerConverter, AsnEnumeratedConverter, AsnIntegerArrayBufferConverter, AsnBitStringConverter, AsnObjectIdentifierConverter, AsnBooleanConverter, AsnOctetStringConverter, AsnUtf8StringConverter, AsnBmpStringConverter, AsnUniversalStringConverter, AsnNumericStringConverter, AsnPrintableStringConverter, AsnTeletexStringConverter, AsnVideotexStringConverter, AsnIA5StringConverter, AsnGraphicStringConverter, AsnVisibleStringConverter, AsnGeneralStringConverter, AsnCharacterStringConverter, AsnUTCTimeConverter, AsnGeneralizedTimeConverter, AsnNullConverter;
|
|
3926
3939
|
var init_converters = __esm({
|
|
3927
3940
|
"node_modules/@peculiar/asn1-schema/build/es2015/converters.js"() {
|
|
3941
|
+
init_reflect_polyfill();
|
|
3928
3942
|
init_index_es2();
|
|
3929
3943
|
init_enums();
|
|
3930
3944
|
init_types();
|
|
@@ -4039,6 +4053,7 @@ function isArrayEqual(bytes1, bytes2) {
|
|
|
4039
4053
|
}
|
|
4040
4054
|
var init_helper = __esm({
|
|
4041
4055
|
"node_modules/@peculiar/asn1-schema/build/es2015/helper.js"() {
|
|
4056
|
+
init_reflect_polyfill();
|
|
4042
4057
|
}
|
|
4043
4058
|
});
|
|
4044
4059
|
|
|
@@ -4046,6 +4061,7 @@ var init_helper = __esm({
|
|
|
4046
4061
|
var AsnSchemaStorage;
|
|
4047
4062
|
var init_schema = __esm({
|
|
4048
4063
|
"node_modules/@peculiar/asn1-schema/build/es2015/schema.js"() {
|
|
4064
|
+
init_reflect_polyfill();
|
|
4049
4065
|
init_index_es2();
|
|
4050
4066
|
init_enums();
|
|
4051
4067
|
init_helper();
|
|
@@ -4178,6 +4194,7 @@ var init_schema = __esm({
|
|
|
4178
4194
|
var schemaStorage;
|
|
4179
4195
|
var init_storage = __esm({
|
|
4180
4196
|
"node_modules/@peculiar/asn1-schema/build/es2015/storage.js"() {
|
|
4197
|
+
init_reflect_polyfill();
|
|
4181
4198
|
init_schema();
|
|
4182
4199
|
schemaStorage = new AsnSchemaStorage();
|
|
4183
4200
|
}
|
|
@@ -4187,6 +4204,7 @@ var init_storage = __esm({
|
|
|
4187
4204
|
var AsnType, AsnProp;
|
|
4188
4205
|
var init_decorators = __esm({
|
|
4189
4206
|
"node_modules/@peculiar/asn1-schema/build/es2015/decorators.js"() {
|
|
4207
|
+
init_reflect_polyfill();
|
|
4190
4208
|
init_converters();
|
|
4191
4209
|
init_enums();
|
|
4192
4210
|
init_storage();
|
|
@@ -4226,6 +4244,7 @@ var init_decorators = __esm({
|
|
|
4226
4244
|
var AsnSchemaValidationError;
|
|
4227
4245
|
var init_schema_validation = __esm({
|
|
4228
4246
|
"node_modules/@peculiar/asn1-schema/build/es2015/errors/schema_validation.js"() {
|
|
4247
|
+
init_reflect_polyfill();
|
|
4229
4248
|
AsnSchemaValidationError = class extends Error {
|
|
4230
4249
|
constructor() {
|
|
4231
4250
|
super(...arguments);
|
|
@@ -4238,6 +4257,7 @@ var init_schema_validation = __esm({
|
|
|
4238
4257
|
// node_modules/@peculiar/asn1-schema/build/es2015/errors/index.js
|
|
4239
4258
|
var init_errors2 = __esm({
|
|
4240
4259
|
"node_modules/@peculiar/asn1-schema/build/es2015/errors/index.js"() {
|
|
4260
|
+
init_reflect_polyfill();
|
|
4241
4261
|
init_schema_validation();
|
|
4242
4262
|
}
|
|
4243
4263
|
});
|
|
@@ -4246,6 +4266,7 @@ var init_errors2 = __esm({
|
|
|
4246
4266
|
var AsnParser;
|
|
4247
4267
|
var init_parser = __esm({
|
|
4248
4268
|
"node_modules/@peculiar/asn1-schema/build/es2015/parser.js"() {
|
|
4269
|
+
init_reflect_polyfill();
|
|
4249
4270
|
init_index_es2();
|
|
4250
4271
|
init_enums();
|
|
4251
4272
|
init_converters();
|
|
@@ -4532,6 +4553,7 @@ var init_parser = __esm({
|
|
|
4532
4553
|
var AsnSerializer;
|
|
4533
4554
|
var init_serializer = __esm({
|
|
4534
4555
|
"node_modules/@peculiar/asn1-schema/build/es2015/serializer.js"() {
|
|
4556
|
+
init_reflect_polyfill();
|
|
4535
4557
|
init_index_es2();
|
|
4536
4558
|
init_converters();
|
|
4537
4559
|
init_enums();
|
|
@@ -4676,6 +4698,7 @@ var init_serializer = __esm({
|
|
|
4676
4698
|
var AsnArray;
|
|
4677
4699
|
var init_objects = __esm({
|
|
4678
4700
|
"node_modules/@peculiar/asn1-schema/build/es2015/objects.js"() {
|
|
4701
|
+
init_reflect_polyfill();
|
|
4679
4702
|
AsnArray = class extends Array {
|
|
4680
4703
|
constructor(items = []) {
|
|
4681
4704
|
if (typeof items === "number") {
|
|
@@ -4695,6 +4718,7 @@ var init_objects = __esm({
|
|
|
4695
4718
|
var AsnConvert;
|
|
4696
4719
|
var init_convert = __esm({
|
|
4697
4720
|
"node_modules/@peculiar/asn1-schema/build/es2015/convert.js"() {
|
|
4721
|
+
init_reflect_polyfill();
|
|
4698
4722
|
init_index_es2();
|
|
4699
4723
|
init_index_es();
|
|
4700
4724
|
init_parser();
|
|
@@ -4721,6 +4745,7 @@ var init_convert = __esm({
|
|
|
4721
4745
|
// node_modules/@peculiar/asn1-schema/build/es2015/index.js
|
|
4722
4746
|
var init_es2015 = __esm({
|
|
4723
4747
|
"node_modules/@peculiar/asn1-schema/build/es2015/index.js"() {
|
|
4748
|
+
init_reflect_polyfill();
|
|
4724
4749
|
init_converters();
|
|
4725
4750
|
init_types();
|
|
4726
4751
|
init_decorators();
|
|
@@ -4742,6 +4767,7 @@ function __decorate(decorators, target, key, desc) {
|
|
|
4742
4767
|
}
|
|
4743
4768
|
var init_tslib_es6 = __esm({
|
|
4744
4769
|
"node_modules/tslib/tslib.es6.mjs"() {
|
|
4770
|
+
init_reflect_polyfill();
|
|
4745
4771
|
}
|
|
4746
4772
|
});
|
|
4747
4773
|
|
|
@@ -4749,6 +4775,7 @@ var init_tslib_es6 = __esm({
|
|
|
4749
4775
|
var IpConverter;
|
|
4750
4776
|
var init_ip_converter = __esm({
|
|
4751
4777
|
"node_modules/@peculiar/asn1-x509/build/es2015/ip_converter.js"() {
|
|
4778
|
+
init_reflect_polyfill();
|
|
4752
4779
|
init_index_es();
|
|
4753
4780
|
IpConverter = class {
|
|
4754
4781
|
static isIPv4(ip) {
|
|
@@ -4922,6 +4949,7 @@ var init_ip_converter = __esm({
|
|
|
4922
4949
|
var RelativeDistinguishedName_1, RDNSequence_1, Name_1, DirectoryString, AttributeValue, AttributeTypeAndValue, RelativeDistinguishedName, RDNSequence, Name;
|
|
4923
4950
|
var init_name = __esm({
|
|
4924
4951
|
"node_modules/@peculiar/asn1-x509/build/es2015/name.js"() {
|
|
4952
|
+
init_reflect_polyfill();
|
|
4925
4953
|
init_tslib_es6();
|
|
4926
4954
|
init_es2015();
|
|
4927
4955
|
init_index_es();
|
|
@@ -5016,6 +5044,7 @@ var init_name = __esm({
|
|
|
5016
5044
|
var AsnIpConverter, OtherName, EDIPartyName, GeneralName;
|
|
5017
5045
|
var init_general_name = __esm({
|
|
5018
5046
|
"node_modules/@peculiar/asn1-x509/build/es2015/general_name.js"() {
|
|
5047
|
+
init_reflect_polyfill();
|
|
5019
5048
|
init_tslib_es6();
|
|
5020
5049
|
init_es2015();
|
|
5021
5050
|
init_ip_converter();
|
|
@@ -5093,6 +5122,7 @@ var init_general_name = __esm({
|
|
|
5093
5122
|
});
|
|
5094
5123
|
var init_object_identifiers = __esm({
|
|
5095
5124
|
"node_modules/@peculiar/asn1-x509/build/es2015/object_identifiers.js"() {
|
|
5125
|
+
init_reflect_polyfill();
|
|
5096
5126
|
}
|
|
5097
5127
|
});
|
|
5098
5128
|
|
|
@@ -5100,6 +5130,7 @@ var init_object_identifiers = __esm({
|
|
|
5100
5130
|
var AuthorityInfoAccessSyntax_1, AccessDescription, AuthorityInfoAccessSyntax;
|
|
5101
5131
|
var init_authority_information_access = __esm({
|
|
5102
5132
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/authority_information_access.js"() {
|
|
5133
|
+
init_reflect_polyfill();
|
|
5103
5134
|
init_tslib_es6();
|
|
5104
5135
|
init_es2015();
|
|
5105
5136
|
init_general_name();
|
|
@@ -5133,6 +5164,7 @@ var init_authority_information_access = __esm({
|
|
|
5133
5164
|
var KeyIdentifier, AuthorityKeyIdentifier;
|
|
5134
5165
|
var init_authority_key_identifier = __esm({
|
|
5135
5166
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/authority_key_identifier.js"() {
|
|
5167
|
+
init_reflect_polyfill();
|
|
5136
5168
|
init_tslib_es6();
|
|
5137
5169
|
init_es2015();
|
|
5138
5170
|
init_general_name();
|
|
@@ -5168,6 +5200,7 @@ var init_authority_key_identifier = __esm({
|
|
|
5168
5200
|
var BasicConstraints;
|
|
5169
5201
|
var init_basic_constraints = __esm({
|
|
5170
5202
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/basic_constraints.js"() {
|
|
5203
|
+
init_reflect_polyfill();
|
|
5171
5204
|
init_tslib_es6();
|
|
5172
5205
|
init_es2015();
|
|
5173
5206
|
init_object_identifiers();
|
|
@@ -5190,6 +5223,7 @@ var init_basic_constraints = __esm({
|
|
|
5190
5223
|
var GeneralNames_1, GeneralNames;
|
|
5191
5224
|
var init_general_names = __esm({
|
|
5192
5225
|
"node_modules/@peculiar/asn1-x509/build/es2015/general_names.js"() {
|
|
5226
|
+
init_reflect_polyfill();
|
|
5193
5227
|
init_tslib_es6();
|
|
5194
5228
|
init_es2015();
|
|
5195
5229
|
init_general_name();
|
|
@@ -5210,6 +5244,7 @@ var init_general_names = __esm({
|
|
|
5210
5244
|
var CertificateIssuer_1, CertificateIssuer;
|
|
5211
5245
|
var init_certificate_issuer = __esm({
|
|
5212
5246
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/certificate_issuer.js"() {
|
|
5247
|
+
init_reflect_polyfill();
|
|
5213
5248
|
init_tslib_es6();
|
|
5214
5249
|
init_es2015();
|
|
5215
5250
|
init_general_names();
|
|
@@ -5230,6 +5265,7 @@ var init_certificate_issuer = __esm({
|
|
|
5230
5265
|
var CertificatePolicies_1, DisplayText, NoticeReference, UserNotice, Qualifier, PolicyQualifierInfo, PolicyInformation, CertificatePolicies;
|
|
5231
5266
|
var init_certificate_policies = __esm({
|
|
5232
5267
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/certificate_policies.js"() {
|
|
5268
|
+
init_reflect_polyfill();
|
|
5233
5269
|
init_tslib_es6();
|
|
5234
5270
|
init_es2015();
|
|
5235
5271
|
init_object_identifiers();
|
|
@@ -5335,6 +5371,7 @@ var init_certificate_policies = __esm({
|
|
|
5335
5371
|
var CRLNumber;
|
|
5336
5372
|
var init_crl_number = __esm({
|
|
5337
5373
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_number.js"() {
|
|
5374
|
+
init_reflect_polyfill();
|
|
5338
5375
|
init_tslib_es6();
|
|
5339
5376
|
init_es2015();
|
|
5340
5377
|
init_object_identifiers();
|
|
@@ -5356,6 +5393,7 @@ var init_crl_number = __esm({
|
|
|
5356
5393
|
var BaseCRLNumber;
|
|
5357
5394
|
var init_crl_delta_indicator = __esm({
|
|
5358
5395
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_delta_indicator.js"() {
|
|
5396
|
+
init_reflect_polyfill();
|
|
5359
5397
|
init_tslib_es6();
|
|
5360
5398
|
init_es2015();
|
|
5361
5399
|
init_object_identifiers();
|
|
@@ -5372,6 +5410,7 @@ var init_crl_delta_indicator = __esm({
|
|
|
5372
5410
|
var CRLDistributionPoints_1, ReasonFlags, Reason, DistributionPointName, DistributionPoint, CRLDistributionPoints;
|
|
5373
5411
|
var init_crl_distribution_points = __esm({
|
|
5374
5412
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_distribution_points.js"() {
|
|
5413
|
+
init_reflect_polyfill();
|
|
5375
5414
|
init_tslib_es6();
|
|
5376
5415
|
init_es2015();
|
|
5377
5416
|
init_name();
|
|
@@ -5469,6 +5508,7 @@ var init_crl_distribution_points = __esm({
|
|
|
5469
5508
|
var FreshestCRL_1, FreshestCRL;
|
|
5470
5509
|
var init_crl_freshest = __esm({
|
|
5471
5510
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_freshest.js"() {
|
|
5511
|
+
init_reflect_polyfill();
|
|
5472
5512
|
init_tslib_es6();
|
|
5473
5513
|
init_es2015();
|
|
5474
5514
|
init_object_identifiers();
|
|
@@ -5489,6 +5529,7 @@ var init_crl_freshest = __esm({
|
|
|
5489
5529
|
var IssuingDistributionPoint;
|
|
5490
5530
|
var init_crl_issuing_distribution_point = __esm({
|
|
5491
5531
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_issuing_distribution_point.js"() {
|
|
5532
|
+
init_reflect_polyfill();
|
|
5492
5533
|
init_tslib_es6();
|
|
5493
5534
|
init_es2015();
|
|
5494
5535
|
init_crl_distribution_points();
|
|
@@ -5549,6 +5590,7 @@ var init_crl_issuing_distribution_point = __esm({
|
|
|
5549
5590
|
var CRLReasons, CRLReason;
|
|
5550
5591
|
var init_crl_reason = __esm({
|
|
5551
5592
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_reason.js"() {
|
|
5593
|
+
init_reflect_polyfill();
|
|
5552
5594
|
init_tslib_es6();
|
|
5553
5595
|
init_es2015();
|
|
5554
5596
|
init_object_identifiers();
|
|
@@ -5589,6 +5631,7 @@ var init_crl_reason = __esm({
|
|
|
5589
5631
|
var ExtendedKeyUsage_1, ExtendedKeyUsage;
|
|
5590
5632
|
var init_extended_key_usage = __esm({
|
|
5591
5633
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/extended_key_usage.js"() {
|
|
5634
|
+
init_reflect_polyfill();
|
|
5592
5635
|
init_tslib_es6();
|
|
5593
5636
|
init_es2015();
|
|
5594
5637
|
init_object_identifiers();
|
|
@@ -5608,6 +5651,7 @@ var init_extended_key_usage = __esm({
|
|
|
5608
5651
|
var InhibitAnyPolicy;
|
|
5609
5652
|
var init_inhibit_any_policy = __esm({
|
|
5610
5653
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/inhibit_any_policy.js"() {
|
|
5654
|
+
init_reflect_polyfill();
|
|
5611
5655
|
init_tslib_es6();
|
|
5612
5656
|
init_es2015();
|
|
5613
5657
|
init_object_identifiers();
|
|
@@ -5629,6 +5673,7 @@ var init_inhibit_any_policy = __esm({
|
|
|
5629
5673
|
var InvalidityDate;
|
|
5630
5674
|
var init_invalidity_date = __esm({
|
|
5631
5675
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/invalidity_date.js"() {
|
|
5676
|
+
init_reflect_polyfill();
|
|
5632
5677
|
init_tslib_es6();
|
|
5633
5678
|
init_es2015();
|
|
5634
5679
|
init_object_identifiers();
|
|
@@ -5653,6 +5698,7 @@ var init_invalidity_date = __esm({
|
|
|
5653
5698
|
var IssueAlternativeName_1, IssueAlternativeName;
|
|
5654
5699
|
var init_issuer_alternative_name = __esm({
|
|
5655
5700
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/issuer_alternative_name.js"() {
|
|
5701
|
+
init_reflect_polyfill();
|
|
5656
5702
|
init_tslib_es6();
|
|
5657
5703
|
init_es2015();
|
|
5658
5704
|
init_general_names();
|
|
@@ -5673,6 +5719,7 @@ var init_issuer_alternative_name = __esm({
|
|
|
5673
5719
|
var KeyUsageFlags;
|
|
5674
5720
|
var init_key_usage = __esm({
|
|
5675
5721
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/key_usage.js"() {
|
|
5722
|
+
init_reflect_polyfill();
|
|
5676
5723
|
init_es2015();
|
|
5677
5724
|
init_object_identifiers();
|
|
5678
5725
|
(function(KeyUsageFlags3) {
|
|
@@ -5693,6 +5740,7 @@ var init_key_usage = __esm({
|
|
|
5693
5740
|
var GeneralSubtrees_1, GeneralSubtree, GeneralSubtrees, NameConstraints;
|
|
5694
5741
|
var init_name_constraints = __esm({
|
|
5695
5742
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/name_constraints.js"() {
|
|
5743
|
+
init_reflect_polyfill();
|
|
5696
5744
|
init_tslib_es6();
|
|
5697
5745
|
init_es2015();
|
|
5698
5746
|
init_general_name();
|
|
@@ -5740,6 +5788,7 @@ var init_name_constraints = __esm({
|
|
|
5740
5788
|
var PolicyConstraints;
|
|
5741
5789
|
var init_policy_constraints = __esm({
|
|
5742
5790
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/policy_constraints.js"() {
|
|
5791
|
+
init_reflect_polyfill();
|
|
5743
5792
|
init_tslib_es6();
|
|
5744
5793
|
init_es2015();
|
|
5745
5794
|
init_object_identifiers();
|
|
@@ -5773,6 +5822,7 @@ var init_policy_constraints = __esm({
|
|
|
5773
5822
|
var PolicyMappings_1, PolicyMapping, PolicyMappings;
|
|
5774
5823
|
var init_policy_mappings = __esm({
|
|
5775
5824
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/policy_mappings.js"() {
|
|
5825
|
+
init_reflect_polyfill();
|
|
5776
5826
|
init_tslib_es6();
|
|
5777
5827
|
init_es2015();
|
|
5778
5828
|
init_object_identifiers();
|
|
@@ -5805,6 +5855,7 @@ var init_policy_mappings = __esm({
|
|
|
5805
5855
|
var SubjectAlternativeName_1, SubjectAlternativeName;
|
|
5806
5856
|
var init_subject_alternative_name = __esm({
|
|
5807
5857
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_alternative_name.js"() {
|
|
5858
|
+
init_reflect_polyfill();
|
|
5808
5859
|
init_tslib_es6();
|
|
5809
5860
|
init_es2015();
|
|
5810
5861
|
init_general_names();
|
|
@@ -5825,6 +5876,7 @@ var init_subject_alternative_name = __esm({
|
|
|
5825
5876
|
var Attribute;
|
|
5826
5877
|
var init_attribute = __esm({
|
|
5827
5878
|
"node_modules/@peculiar/asn1-x509/build/es2015/attribute.js"() {
|
|
5879
|
+
init_reflect_polyfill();
|
|
5828
5880
|
init_tslib_es6();
|
|
5829
5881
|
init_es2015();
|
|
5830
5882
|
Attribute = class {
|
|
@@ -5847,6 +5899,7 @@ var init_attribute = __esm({
|
|
|
5847
5899
|
var SubjectDirectoryAttributes_1, SubjectDirectoryAttributes;
|
|
5848
5900
|
var init_subject_directory_attributes = __esm({
|
|
5849
5901
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_directory_attributes.js"() {
|
|
5902
|
+
init_reflect_polyfill();
|
|
5850
5903
|
init_tslib_es6();
|
|
5851
5904
|
init_es2015();
|
|
5852
5905
|
init_attribute();
|
|
@@ -5864,6 +5917,7 @@ var init_subject_directory_attributes = __esm({
|
|
|
5864
5917
|
});
|
|
5865
5918
|
var init_subject_key_identifier = __esm({
|
|
5866
5919
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_key_identifier.js"() {
|
|
5920
|
+
init_reflect_polyfill();
|
|
5867
5921
|
init_object_identifiers();
|
|
5868
5922
|
init_authority_key_identifier();
|
|
5869
5923
|
}
|
|
@@ -5873,6 +5927,7 @@ var init_subject_key_identifier = __esm({
|
|
|
5873
5927
|
var PrivateKeyUsagePeriod;
|
|
5874
5928
|
var init_private_key_usage_period = __esm({
|
|
5875
5929
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/private_key_usage_period.js"() {
|
|
5930
|
+
init_reflect_polyfill();
|
|
5876
5931
|
init_tslib_es6();
|
|
5877
5932
|
init_es2015();
|
|
5878
5933
|
init_object_identifiers();
|
|
@@ -5894,6 +5949,7 @@ var init_private_key_usage_period = __esm({
|
|
|
5894
5949
|
var EntrustInfoFlags, EntrustInfo, EntrustVersionInfo;
|
|
5895
5950
|
var init_entrust_version_info = __esm({
|
|
5896
5951
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/entrust_version_info.js"() {
|
|
5952
|
+
init_reflect_polyfill();
|
|
5897
5953
|
init_tslib_es6();
|
|
5898
5954
|
init_es2015();
|
|
5899
5955
|
(function(EntrustInfoFlags2) {
|
|
@@ -5940,6 +5996,7 @@ var init_entrust_version_info = __esm({
|
|
|
5940
5996
|
var SubjectInfoAccessSyntax_1, SubjectInfoAccessSyntax;
|
|
5941
5997
|
var init_subject_info_access = __esm({
|
|
5942
5998
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_info_access.js"() {
|
|
5999
|
+
init_reflect_polyfill();
|
|
5943
6000
|
init_tslib_es6();
|
|
5944
6001
|
init_es2015();
|
|
5945
6002
|
init_object_identifiers();
|
|
@@ -5959,6 +6016,7 @@ var init_subject_info_access = __esm({
|
|
|
5959
6016
|
// node_modules/@peculiar/asn1-x509/build/es2015/extensions/index.js
|
|
5960
6017
|
var init_extensions = __esm({
|
|
5961
6018
|
"node_modules/@peculiar/asn1-x509/build/es2015/extensions/index.js"() {
|
|
6019
|
+
init_reflect_polyfill();
|
|
5962
6020
|
init_authority_information_access();
|
|
5963
6021
|
init_authority_key_identifier();
|
|
5964
6022
|
init_basic_constraints();
|
|
@@ -5991,6 +6049,7 @@ var init_extensions = __esm({
|
|
|
5991
6049
|
var AlgorithmIdentifier;
|
|
5992
6050
|
var init_algorithm_identifier = __esm({
|
|
5993
6051
|
"node_modules/@peculiar/asn1-x509/build/es2015/algorithm_identifier.js"() {
|
|
6052
|
+
init_reflect_polyfill();
|
|
5994
6053
|
init_tslib_es6();
|
|
5995
6054
|
init_es2015();
|
|
5996
6055
|
init_index_es();
|
|
@@ -6021,6 +6080,7 @@ var init_algorithm_identifier = __esm({
|
|
|
6021
6080
|
var SubjectPublicKeyInfo;
|
|
6022
6081
|
var init_subject_public_key_info = __esm({
|
|
6023
6082
|
"node_modules/@peculiar/asn1-x509/build/es2015/subject_public_key_info.js"() {
|
|
6083
|
+
init_reflect_polyfill();
|
|
6024
6084
|
init_tslib_es6();
|
|
6025
6085
|
init_es2015();
|
|
6026
6086
|
init_algorithm_identifier();
|
|
@@ -6044,6 +6104,7 @@ var init_subject_public_key_info = __esm({
|
|
|
6044
6104
|
var Time;
|
|
6045
6105
|
var init_time = __esm({
|
|
6046
6106
|
"node_modules/@peculiar/asn1-x509/build/es2015/time.js"() {
|
|
6107
|
+
init_reflect_polyfill();
|
|
6047
6108
|
init_tslib_es6();
|
|
6048
6109
|
init_es2015();
|
|
6049
6110
|
Time = class Time2 {
|
|
@@ -6090,6 +6151,7 @@ var init_time = __esm({
|
|
|
6090
6151
|
var Validity;
|
|
6091
6152
|
var init_validity = __esm({
|
|
6092
6153
|
"node_modules/@peculiar/asn1-x509/build/es2015/validity.js"() {
|
|
6154
|
+
init_reflect_polyfill();
|
|
6093
6155
|
init_tslib_es6();
|
|
6094
6156
|
init_es2015();
|
|
6095
6157
|
init_time();
|
|
@@ -6116,6 +6178,7 @@ var init_validity = __esm({
|
|
|
6116
6178
|
var Extensions_1, Extension, Extensions;
|
|
6117
6179
|
var init_extension = __esm({
|
|
6118
6180
|
"node_modules/@peculiar/asn1-x509/build/es2015/extension.js"() {
|
|
6181
|
+
init_reflect_polyfill();
|
|
6119
6182
|
init_tslib_es6();
|
|
6120
6183
|
init_es2015();
|
|
6121
6184
|
Extension = class _Extension {
|
|
@@ -6155,6 +6218,7 @@ var init_extension = __esm({
|
|
|
6155
6218
|
var Version;
|
|
6156
6219
|
var init_types2 = __esm({
|
|
6157
6220
|
"node_modules/@peculiar/asn1-x509/build/es2015/types.js"() {
|
|
6221
|
+
init_reflect_polyfill();
|
|
6158
6222
|
(function(Version3) {
|
|
6159
6223
|
Version3[Version3["v1"] = 0] = "v1";
|
|
6160
6224
|
Version3[Version3["v2"] = 1] = "v2";
|
|
@@ -6167,6 +6231,7 @@ var init_types2 = __esm({
|
|
|
6167
6231
|
var TBSCertificate;
|
|
6168
6232
|
var init_tbs_certificate = __esm({
|
|
6169
6233
|
"node_modules/@peculiar/asn1-x509/build/es2015/tbs_certificate.js"() {
|
|
6234
|
+
init_reflect_polyfill();
|
|
6170
6235
|
init_tslib_es6();
|
|
6171
6236
|
init_es2015();
|
|
6172
6237
|
init_algorithm_identifier();
|
|
@@ -6236,6 +6301,7 @@ var init_tbs_certificate = __esm({
|
|
|
6236
6301
|
var Certificate;
|
|
6237
6302
|
var init_certificate = __esm({
|
|
6238
6303
|
"node_modules/@peculiar/asn1-x509/build/es2015/certificate.js"() {
|
|
6304
|
+
init_reflect_polyfill();
|
|
6239
6305
|
init_tslib_es6();
|
|
6240
6306
|
init_es2015();
|
|
6241
6307
|
init_algorithm_identifier();
|
|
@@ -6264,6 +6330,7 @@ var init_certificate = __esm({
|
|
|
6264
6330
|
var RevokedCertificate, TBSCertList;
|
|
6265
6331
|
var init_tbs_cert_list = __esm({
|
|
6266
6332
|
"node_modules/@peculiar/asn1-x509/build/es2015/tbs_cert_list.js"() {
|
|
6333
|
+
init_reflect_polyfill();
|
|
6267
6334
|
init_tslib_es6();
|
|
6268
6335
|
init_es2015();
|
|
6269
6336
|
init_algorithm_identifier();
|
|
@@ -6322,6 +6389,7 @@ var init_tbs_cert_list = __esm({
|
|
|
6322
6389
|
var CertificateList;
|
|
6323
6390
|
var init_certificate_list = __esm({
|
|
6324
6391
|
"node_modules/@peculiar/asn1-x509/build/es2015/certificate_list.js"() {
|
|
6392
|
+
init_reflect_polyfill();
|
|
6325
6393
|
init_tslib_es6();
|
|
6326
6394
|
init_es2015();
|
|
6327
6395
|
init_algorithm_identifier();
|
|
@@ -6349,6 +6417,7 @@ var init_certificate_list = __esm({
|
|
|
6349
6417
|
// node_modules/@peculiar/asn1-x509/build/es2015/index.js
|
|
6350
6418
|
var init_es20152 = __esm({
|
|
6351
6419
|
"node_modules/@peculiar/asn1-x509/build/es2015/index.js"() {
|
|
6420
|
+
init_reflect_polyfill();
|
|
6352
6421
|
init_extensions();
|
|
6353
6422
|
init_algorithm_identifier();
|
|
6354
6423
|
init_attribute();
|
|
@@ -6392,6 +6461,7 @@ function getSkiBytes(cert) {
|
|
|
6392
6461
|
}
|
|
6393
6462
|
var init_x509_utils = __esm({
|
|
6394
6463
|
"src/trust/x509-utils.ts"() {
|
|
6464
|
+
init_reflect_polyfill();
|
|
6395
6465
|
}
|
|
6396
6466
|
});
|
|
6397
6467
|
function mapX509AlgoToJwaName(cert) {
|
|
@@ -6497,6 +6567,7 @@ function dnIsUnder(childDn, subtreeDn) {
|
|
|
6497
6567
|
var NAME_CONSTRAINTS_OID, DEFAULT_ALGORITHMS, ChainBuilder;
|
|
6498
6568
|
var init_ChainBuilder = __esm({
|
|
6499
6569
|
"src/trust/ChainBuilder.ts"() {
|
|
6570
|
+
init_reflect_polyfill();
|
|
6500
6571
|
init_es2015();
|
|
6501
6572
|
init_es20152();
|
|
6502
6573
|
init_errors();
|
|
@@ -6742,6 +6813,7 @@ function ecdsaDerToIeee(der, coordBytes) {
|
|
|
6742
6813
|
}
|
|
6743
6814
|
var init_ecdsa_util = __esm({
|
|
6744
6815
|
"src/trust/ecdsa-util.ts"() {
|
|
6816
|
+
init_reflect_polyfill();
|
|
6745
6817
|
}
|
|
6746
6818
|
});
|
|
6747
6819
|
|
|
@@ -6776,6 +6848,7 @@ function bytesToHex(bytes) {
|
|
|
6776
6848
|
var CrlFetcher;
|
|
6777
6849
|
var init_CrlFetcher = __esm({
|
|
6778
6850
|
"src/trust/CrlFetcher.ts"() {
|
|
6851
|
+
init_reflect_polyfill();
|
|
6779
6852
|
init_es2015();
|
|
6780
6853
|
init_es20152();
|
|
6781
6854
|
init_ecdsa_util();
|
|
@@ -6902,6 +6975,7 @@ var init_CrlFetcher = __esm({
|
|
|
6902
6975
|
var AcceptableResponses_1, AcceptableResponses;
|
|
6903
6976
|
var init_acceptable_responses = __esm({
|
|
6904
6977
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/extensions/acceptable_responses.js"() {
|
|
6978
|
+
init_reflect_polyfill();
|
|
6905
6979
|
init_tslib_es6();
|
|
6906
6980
|
init_es2015();
|
|
6907
6981
|
AcceptableResponses = AcceptableResponses_1 = class AcceptableResponses2 extends AsnArray {
|
|
@@ -6920,6 +6994,7 @@ var init_acceptable_responses = __esm({
|
|
|
6920
6994
|
var ArchiveCutoff;
|
|
6921
6995
|
var init_archive_cutoff = __esm({
|
|
6922
6996
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/extensions/archive_cutoff.js"() {
|
|
6997
|
+
init_reflect_polyfill();
|
|
6923
6998
|
init_tslib_es6();
|
|
6924
6999
|
init_es2015();
|
|
6925
7000
|
ArchiveCutoff = class ArchiveCutoff2 {
|
|
@@ -6940,6 +7015,7 @@ var init_archive_cutoff = __esm({
|
|
|
6940
7015
|
var ExtendedRevoke;
|
|
6941
7016
|
var init_extended_revoke = __esm({
|
|
6942
7017
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/extensions/extended_revoke.js"() {
|
|
7018
|
+
init_reflect_polyfill();
|
|
6943
7019
|
init_tslib_es6();
|
|
6944
7020
|
init_es2015();
|
|
6945
7021
|
ExtendedRevoke = class ExtendedRevoke2 {
|
|
@@ -6959,6 +7035,7 @@ var init_extended_revoke = __esm({
|
|
|
6959
7035
|
// node_modules/@peculiar/asn1-ocsp/build/es2015/extensions/nonce.js
|
|
6960
7036
|
var init_nonce = __esm({
|
|
6961
7037
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/extensions/nonce.js"() {
|
|
7038
|
+
init_reflect_polyfill();
|
|
6962
7039
|
init_es2015();
|
|
6963
7040
|
}
|
|
6964
7041
|
});
|
|
@@ -6967,6 +7044,7 @@ var init_nonce = __esm({
|
|
|
6967
7044
|
var PreferredSignatureAlgorithms_1, PreferredSignatureAlgorithm, PreferredSignatureAlgorithms;
|
|
6968
7045
|
var init_preferred_signature_algorithms = __esm({
|
|
6969
7046
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/extensions/preferred_signature_algorithms.js"() {
|
|
7047
|
+
init_reflect_polyfill();
|
|
6970
7048
|
init_tslib_es6();
|
|
6971
7049
|
init_es2015();
|
|
6972
7050
|
init_es20152();
|
|
@@ -6998,6 +7076,7 @@ var init_preferred_signature_algorithms = __esm({
|
|
|
6998
7076
|
var ServiceLocator;
|
|
6999
7077
|
var init_service_locator = __esm({
|
|
7000
7078
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/extensions/service_locator.js"() {
|
|
7079
|
+
init_reflect_polyfill();
|
|
7001
7080
|
init_tslib_es6();
|
|
7002
7081
|
init_es2015();
|
|
7003
7082
|
init_es20152();
|
|
@@ -7020,6 +7099,7 @@ var init_service_locator = __esm({
|
|
|
7020
7099
|
// node_modules/@peculiar/asn1-ocsp/build/es2015/extensions/index.js
|
|
7021
7100
|
var init_extensions2 = __esm({
|
|
7022
7101
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/extensions/index.js"() {
|
|
7102
|
+
init_reflect_polyfill();
|
|
7023
7103
|
init_acceptable_responses();
|
|
7024
7104
|
init_archive_cutoff();
|
|
7025
7105
|
init_extended_revoke();
|
|
@@ -7033,6 +7113,7 @@ var init_extensions2 = __esm({
|
|
|
7033
7113
|
var KeyHash, ResponderID;
|
|
7034
7114
|
var init_responder_id = __esm({
|
|
7035
7115
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/responder_id.js"() {
|
|
7116
|
+
init_reflect_polyfill();
|
|
7036
7117
|
init_tslib_es6();
|
|
7037
7118
|
init_es2015();
|
|
7038
7119
|
init_es20152();
|
|
@@ -7059,6 +7140,7 @@ var init_responder_id = __esm({
|
|
|
7059
7140
|
var CertID;
|
|
7060
7141
|
var init_cert_id = __esm({
|
|
7061
7142
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/cert_id.js"() {
|
|
7143
|
+
init_reflect_polyfill();
|
|
7062
7144
|
init_tslib_es6();
|
|
7063
7145
|
init_es20152();
|
|
7064
7146
|
init_es2015();
|
|
@@ -7090,6 +7172,7 @@ var init_cert_id = __esm({
|
|
|
7090
7172
|
var RevokedInfo;
|
|
7091
7173
|
var init_revoked_info = __esm({
|
|
7092
7174
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/revoked_info.js"() {
|
|
7175
|
+
init_reflect_polyfill();
|
|
7093
7176
|
init_tslib_es6();
|
|
7094
7177
|
init_es2015();
|
|
7095
7178
|
init_es20152();
|
|
@@ -7112,6 +7195,7 @@ var init_revoked_info = __esm({
|
|
|
7112
7195
|
var CertStatus;
|
|
7113
7196
|
var init_cert_status = __esm({
|
|
7114
7197
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/cert_status.js"() {
|
|
7198
|
+
init_reflect_polyfill();
|
|
7115
7199
|
init_tslib_es6();
|
|
7116
7200
|
init_es2015();
|
|
7117
7201
|
init_revoked_info();
|
|
@@ -7139,6 +7223,7 @@ var init_cert_status = __esm({
|
|
|
7139
7223
|
var SingleResponse;
|
|
7140
7224
|
var init_single_response = __esm({
|
|
7141
7225
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/single_response.js"() {
|
|
7226
|
+
init_reflect_polyfill();
|
|
7142
7227
|
init_tslib_es6();
|
|
7143
7228
|
init_es2015();
|
|
7144
7229
|
init_cert_id();
|
|
@@ -7174,6 +7259,7 @@ var init_single_response = __esm({
|
|
|
7174
7259
|
var Version2;
|
|
7175
7260
|
var init_types3 = __esm({
|
|
7176
7261
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/types.js"() {
|
|
7262
|
+
init_reflect_polyfill();
|
|
7177
7263
|
(function(Version3) {
|
|
7178
7264
|
Version3[Version3["v1"] = 0] = "v1";
|
|
7179
7265
|
})(Version2 || (Version2 = {}));
|
|
@@ -7184,6 +7270,7 @@ var init_types3 = __esm({
|
|
|
7184
7270
|
var ResponseData;
|
|
7185
7271
|
var init_response_data = __esm({
|
|
7186
7272
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/response_data.js"() {
|
|
7273
|
+
init_reflect_polyfill();
|
|
7187
7274
|
init_tslib_es6();
|
|
7188
7275
|
init_es2015();
|
|
7189
7276
|
init_es20152();
|
|
@@ -7221,6 +7308,7 @@ var init_response_data = __esm({
|
|
|
7221
7308
|
var BasicOCSPResponse;
|
|
7222
7309
|
var init_basic_ocsp_response = __esm({
|
|
7223
7310
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/basic_ocsp_response.js"() {
|
|
7311
|
+
init_reflect_polyfill();
|
|
7224
7312
|
init_tslib_es6();
|
|
7225
7313
|
init_es2015();
|
|
7226
7314
|
init_es20152();
|
|
@@ -7249,6 +7337,7 @@ var init_basic_ocsp_response = __esm({
|
|
|
7249
7337
|
});
|
|
7250
7338
|
var init_object_identifiers2 = __esm({
|
|
7251
7339
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/object_identifiers.js"() {
|
|
7340
|
+
init_reflect_polyfill();
|
|
7252
7341
|
init_es20152();
|
|
7253
7342
|
}
|
|
7254
7343
|
});
|
|
@@ -7257,6 +7346,7 @@ var init_object_identifiers2 = __esm({
|
|
|
7257
7346
|
var Signature;
|
|
7258
7347
|
var init_signature = __esm({
|
|
7259
7348
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/signature.js"() {
|
|
7349
|
+
init_reflect_polyfill();
|
|
7260
7350
|
init_tslib_es6();
|
|
7261
7351
|
init_es2015();
|
|
7262
7352
|
init_es20152();
|
|
@@ -7283,6 +7373,7 @@ var init_signature = __esm({
|
|
|
7283
7373
|
var Request;
|
|
7284
7374
|
var init_request = __esm({
|
|
7285
7375
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/request.js"() {
|
|
7376
|
+
init_reflect_polyfill();
|
|
7286
7377
|
init_tslib_es6();
|
|
7287
7378
|
init_es2015();
|
|
7288
7379
|
init_cert_id();
|
|
@@ -7306,6 +7397,7 @@ var init_request = __esm({
|
|
|
7306
7397
|
var TBSRequest;
|
|
7307
7398
|
var init_tbs_request = __esm({
|
|
7308
7399
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/tbs_request.js"() {
|
|
7400
|
+
init_reflect_polyfill();
|
|
7309
7401
|
init_tslib_es6();
|
|
7310
7402
|
init_es2015();
|
|
7311
7403
|
init_es20152();
|
|
@@ -7337,6 +7429,7 @@ var init_tbs_request = __esm({
|
|
|
7337
7429
|
var OCSPRequest;
|
|
7338
7430
|
var init_ocsp_request = __esm({
|
|
7339
7431
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/ocsp_request.js"() {
|
|
7432
|
+
init_reflect_polyfill();
|
|
7340
7433
|
init_tslib_es6();
|
|
7341
7434
|
init_es2015();
|
|
7342
7435
|
init_signature();
|
|
@@ -7360,6 +7453,7 @@ var init_ocsp_request = __esm({
|
|
|
7360
7453
|
var OCSPResponseStatus;
|
|
7361
7454
|
var init_ocsp_response_status = __esm({
|
|
7362
7455
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/ocsp_response_status.js"() {
|
|
7456
|
+
init_reflect_polyfill();
|
|
7363
7457
|
(function(OCSPResponseStatus2) {
|
|
7364
7458
|
OCSPResponseStatus2[OCSPResponseStatus2["successful"] = 0] = "successful";
|
|
7365
7459
|
OCSPResponseStatus2[OCSPResponseStatus2["malformedRequest"] = 1] = "malformedRequest";
|
|
@@ -7375,6 +7469,7 @@ var init_ocsp_response_status = __esm({
|
|
|
7375
7469
|
var ResponseBytes;
|
|
7376
7470
|
var init_response_bytes = __esm({
|
|
7377
7471
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/response_bytes.js"() {
|
|
7472
|
+
init_reflect_polyfill();
|
|
7378
7473
|
init_tslib_es6();
|
|
7379
7474
|
init_es2015();
|
|
7380
7475
|
ResponseBytes = class {
|
|
@@ -7397,6 +7492,7 @@ var init_response_bytes = __esm({
|
|
|
7397
7492
|
var OCSPResponse;
|
|
7398
7493
|
var init_ocsp_response = __esm({
|
|
7399
7494
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/ocsp_response.js"() {
|
|
7495
|
+
init_reflect_polyfill();
|
|
7400
7496
|
init_tslib_es6();
|
|
7401
7497
|
init_es2015();
|
|
7402
7498
|
init_ocsp_response_status();
|
|
@@ -7419,6 +7515,7 @@ var init_ocsp_response = __esm({
|
|
|
7419
7515
|
// node_modules/@peculiar/asn1-ocsp/build/es2015/index.js
|
|
7420
7516
|
var init_es20153 = __esm({
|
|
7421
7517
|
"node_modules/@peculiar/asn1-ocsp/build/es2015/index.js"() {
|
|
7518
|
+
init_reflect_polyfill();
|
|
7422
7519
|
init_extensions2();
|
|
7423
7520
|
init_basic_ocsp_response();
|
|
7424
7521
|
init_cert_id();
|
|
@@ -7485,6 +7582,7 @@ function hexToBigIntBytes(hex) {
|
|
|
7485
7582
|
var DEFAULT_MAX_RESPONSE_AGE_MS, OcspClient;
|
|
7486
7583
|
var init_OcspClient = __esm({
|
|
7487
7584
|
"src/trust/OcspClient.ts"() {
|
|
7585
|
+
init_reflect_polyfill();
|
|
7488
7586
|
init_es2015();
|
|
7489
7587
|
init_es20153();
|
|
7490
7588
|
init_es20152();
|
|
@@ -7788,6 +7886,7 @@ function extractCrlUrls(cert) {
|
|
|
7788
7886
|
var RevocationChecker;
|
|
7789
7887
|
var init_RevocationChecker = __esm({
|
|
7790
7888
|
"src/trust/RevocationChecker.ts"() {
|
|
7889
|
+
init_reflect_polyfill();
|
|
7791
7890
|
init_es20152();
|
|
7792
7891
|
init_es2015();
|
|
7793
7892
|
init_errors();
|
|
@@ -7884,6 +7983,7 @@ function mapLoA(uris) {
|
|
|
7884
7983
|
var LOA_MAPPING;
|
|
7885
7984
|
var init_lotl_loa_mapping = __esm({
|
|
7886
7985
|
"src/trust/lotl-loa-mapping.ts"() {
|
|
7986
|
+
init_reflect_polyfill();
|
|
7887
7987
|
LOA_MAPPING = Object.freeze({
|
|
7888
7988
|
// Qualified electronic signature / seal — substantial + high are both
|
|
7889
7989
|
// expressed via `qualified` in ETSI, not LoA. The LoA URIs below apply to
|
|
@@ -7904,6 +8004,7 @@ function deriveServiceMetadata(service) {
|
|
|
7904
8004
|
}
|
|
7905
8005
|
var init_service_metadata = __esm({
|
|
7906
8006
|
"src/trust/service-metadata.ts"() {
|
|
8007
|
+
init_reflect_polyfill();
|
|
7907
8008
|
init_lotl_loa_mapping();
|
|
7908
8009
|
}
|
|
7909
8010
|
});
|
|
@@ -7935,6 +8036,7 @@ function buildProvenance(service, anchorSki) {
|
|
|
7935
8036
|
var ProvenanceResolver;
|
|
7936
8037
|
var init_ProvenanceResolver = __esm({
|
|
7937
8038
|
"src/trust/ProvenanceResolver.ts"() {
|
|
8039
|
+
init_reflect_polyfill();
|
|
7938
8040
|
init_service_metadata();
|
|
7939
8041
|
init_x509_utils();
|
|
7940
8042
|
ProvenanceResolver = class {
|
|
@@ -8002,6 +8104,7 @@ async function resolveProvenance(store, anchor) {
|
|
|
8002
8104
|
var TrustEvaluator;
|
|
8003
8105
|
var init_TrustEvaluator = __esm({
|
|
8004
8106
|
"src/trust/TrustEvaluator.ts"() {
|
|
8107
|
+
init_reflect_polyfill();
|
|
8005
8108
|
init_errors();
|
|
8006
8109
|
init_ChainBuilder();
|
|
8007
8110
|
init_RevocationChecker();
|
|
@@ -8089,6 +8192,13 @@ var init_TrustEvaluator = __esm({
|
|
|
8089
8192
|
};
|
|
8090
8193
|
}
|
|
8091
8194
|
});
|
|
8195
|
+
|
|
8196
|
+
// src/index.ts
|
|
8197
|
+
init_reflect_polyfill();
|
|
8198
|
+
init_reflect_polyfill();
|
|
8199
|
+
|
|
8200
|
+
// src/authorization.ts
|
|
8201
|
+
init_reflect_polyfill();
|
|
8092
8202
|
function createAuthorizationRequest(input, query) {
|
|
8093
8203
|
if (!input.clientId) throw new TypeError("clientId is required");
|
|
8094
8204
|
if (!input.nonce) throw new TypeError("nonce is required");
|
|
@@ -8113,6 +8223,7 @@ function createAuthorizationRequest(input, query) {
|
|
|
8113
8223
|
}
|
|
8114
8224
|
|
|
8115
8225
|
// src/signed-authorization.ts
|
|
8226
|
+
init_reflect_polyfill();
|
|
8116
8227
|
init_errors();
|
|
8117
8228
|
var DEFAULT_SUPPORTED_ENC_VALUES = ["A128GCM", "A256GCM"];
|
|
8118
8229
|
var SUPPORTED_SIGNING_ALGS = /* @__PURE__ */ new Set(["ES256", "ES384", "RS256"]);
|
|
@@ -8245,6 +8356,7 @@ function toArrayBuffer(bytes) {
|
|
|
8245
8356
|
}
|
|
8246
8357
|
|
|
8247
8358
|
// src/haip.ts
|
|
8359
|
+
init_reflect_polyfill();
|
|
8248
8360
|
init_errors();
|
|
8249
8361
|
var HAIP_DOCTYPE_NAMESPACES = {
|
|
8250
8362
|
"org.iso.18013.5.1.mDL": "org.iso.18013.5.1",
|
|
@@ -8359,7 +8471,14 @@ function isHaipQuery(query) {
|
|
|
8359
8471
|
}
|
|
8360
8472
|
}
|
|
8361
8473
|
|
|
8474
|
+
// src/presentation.ts
|
|
8475
|
+
init_reflect_polyfill();
|
|
8476
|
+
|
|
8477
|
+
// src/parsers/mdoc.parser.ts
|
|
8478
|
+
init_reflect_polyfill();
|
|
8479
|
+
|
|
8362
8480
|
// src/crypto/cose-sign1.ts
|
|
8481
|
+
init_reflect_polyfill();
|
|
8363
8482
|
init_errors();
|
|
8364
8483
|
var decoder = new Encoder({ mapsAsObjects: false, useRecords: false, tagUint8Array: false });
|
|
8365
8484
|
var HEADER_ALG = 1;
|
|
@@ -8460,6 +8579,7 @@ async function verifyCoseSign1(coseSign1, publicKey, allowedAlgorithms) {
|
|
|
8460
8579
|
}
|
|
8461
8580
|
|
|
8462
8581
|
// src/crypto/device-auth.ts
|
|
8582
|
+
init_reflect_polyfill();
|
|
8463
8583
|
init_errors();
|
|
8464
8584
|
var enc = new Encoder({ mapsAsObjects: false, useRecords: false, tagUint8Array: false });
|
|
8465
8585
|
var HEADER_ALG2 = 1;
|
|
@@ -8585,6 +8705,7 @@ function extractTag24Inner(value) {
|
|
|
8585
8705
|
}
|
|
8586
8706
|
|
|
8587
8707
|
// src/crypto/digest.ts
|
|
8708
|
+
init_reflect_polyfill();
|
|
8588
8709
|
init_errors();
|
|
8589
8710
|
var decoder2 = new Encoder({ mapsAsObjects: false, useRecords: false });
|
|
8590
8711
|
var ALLOWED_HASH_ALGS = /* @__PURE__ */ new Set(["SHA-256", "SHA-384", "SHA-512"]);
|
|
@@ -8649,6 +8770,7 @@ async function verifyAllDigests(nameSpaces, mso) {
|
|
|
8649
8770
|
}
|
|
8650
8771
|
|
|
8651
8772
|
// src/crypto/mso.ts
|
|
8773
|
+
init_reflect_polyfill();
|
|
8652
8774
|
init_errors();
|
|
8653
8775
|
var decoder3 = new Encoder({ mapsAsObjects: false, useRecords: false });
|
|
8654
8776
|
function decodeDateLike(value) {
|
|
@@ -9091,6 +9213,7 @@ var MdocParser = class {
|
|
|
9091
9213
|
};
|
|
9092
9214
|
|
|
9093
9215
|
// src/parsers/sd-jwt.parser.ts
|
|
9216
|
+
init_reflect_polyfill();
|
|
9094
9217
|
init_errors();
|
|
9095
9218
|
var DEFAULT_ALLOWED_ALGORITHMS2 = ["ES256", "ES384", "ES512"];
|
|
9096
9219
|
var sha256Hasher = async (data, _alg) => {
|
|
@@ -9462,7 +9585,11 @@ async function parsePresentation(vpToken, options) {
|
|
|
9462
9585
|
};
|
|
9463
9586
|
}
|
|
9464
9587
|
|
|
9588
|
+
// src/verify.ts
|
|
9589
|
+
init_reflect_polyfill();
|
|
9590
|
+
|
|
9465
9591
|
// src/decrypt-response.ts
|
|
9592
|
+
init_reflect_polyfill();
|
|
9466
9593
|
init_errors();
|
|
9467
9594
|
var SUPPORTED_ALG = "ECDH-ES";
|
|
9468
9595
|
var SUPPORTED_ENC = /* @__PURE__ */ new Set(["A128GCM", "A256GCM"]);
|
|
@@ -9496,6 +9623,9 @@ async function decryptAuthorizationResponse(jwe, privateKey) {
|
|
|
9496
9623
|
});
|
|
9497
9624
|
}
|
|
9498
9625
|
}
|
|
9626
|
+
|
|
9627
|
+
// src/crypto/session-transcript.ts
|
|
9628
|
+
init_reflect_polyfill();
|
|
9499
9629
|
var enc2 = new Encoder({ mapsAsObjects: false, useRecords: false, tagUint8Array: false });
|
|
9500
9630
|
async function sha256(bytes) {
|
|
9501
9631
|
return new Uint8Array(await crypto.subtle.digest("SHA-256", bytes));
|
|
@@ -9664,6 +9794,7 @@ async function verifyAuthorizationResponse(envelope, query, options) {
|
|
|
9664
9794
|
init_errors();
|
|
9665
9795
|
|
|
9666
9796
|
// src/trust/Cache.ts
|
|
9797
|
+
init_reflect_polyfill();
|
|
9667
9798
|
var InMemoryCache = class {
|
|
9668
9799
|
entries = /* @__PURE__ */ new Map();
|
|
9669
9800
|
maxEntries;
|
|
@@ -9695,7 +9826,11 @@ var InMemoryCache = class {
|
|
|
9695
9826
|
}
|
|
9696
9827
|
};
|
|
9697
9828
|
|
|
9829
|
+
// src/trust/index.ts
|
|
9830
|
+
init_reflect_polyfill();
|
|
9831
|
+
|
|
9698
9832
|
// src/trust/TrustStore.ts
|
|
9833
|
+
init_reflect_polyfill();
|
|
9699
9834
|
init_x509_utils();
|
|
9700
9835
|
var StaticTrustStore = class {
|
|
9701
9836
|
anchors = [];
|
|
@@ -9774,6 +9909,12 @@ function pushInto(map, key, anchor) {
|
|
|
9774
9909
|
function bytesToHex3(bytes) {
|
|
9775
9910
|
return Array.from(bytes, (b) => b.toString(16).padStart(2, "0")).join("");
|
|
9776
9911
|
}
|
|
9912
|
+
|
|
9913
|
+
// src/trust/LotlTrustStore.ts
|
|
9914
|
+
init_reflect_polyfill();
|
|
9915
|
+
|
|
9916
|
+
// src/trust/lotl-signing-anchors.ts
|
|
9917
|
+
init_reflect_polyfill();
|
|
9777
9918
|
var PEM_ANCHORS = [
|
|
9778
9919
|
`-----BEGIN CERTIFICATE-----
|
|
9779
9920
|
MIIIoDCCBoigAwIBAgIUc8IcSUtVEKAMMvHm9QWU05kXsPUwDQYJKoZIhvcNAQEN
|
|
@@ -9830,6 +9971,7 @@ var EU_LOTL_SIGNING_ANCHORS = Object.freeze(
|
|
|
9830
9971
|
);
|
|
9831
9972
|
|
|
9832
9973
|
// src/trust/LotlFetcher.ts
|
|
9974
|
+
init_reflect_polyfill();
|
|
9833
9975
|
init_errors();
|
|
9834
9976
|
var XMLDSIG_NS = "http://www.w3.org/2000/09/xmldsig#";
|
|
9835
9977
|
var LotlFetcher = class {
|
|
@@ -9940,6 +10082,12 @@ function buildImportAlgorithm(algName, pubKeyAlg) {
|
|
|
9940
10082
|
hash: { name: hashName }
|
|
9941
10083
|
};
|
|
9942
10084
|
}
|
|
10085
|
+
|
|
10086
|
+
// src/trust/LotlParser.ts
|
|
10087
|
+
init_reflect_polyfill();
|
|
10088
|
+
|
|
10089
|
+
// src/trust/xml-util.ts
|
|
10090
|
+
init_reflect_polyfill();
|
|
9943
10091
|
function firstChild(parent, ns, name) {
|
|
9944
10092
|
const list = parent.getElementsByTagNameNS(ns, name);
|
|
9945
10093
|
return list.length > 0 ? list.item(0) : null;
|
|
@@ -10030,6 +10178,7 @@ function parsePointer(el) {
|
|
|
10030
10178
|
}
|
|
10031
10179
|
|
|
10032
10180
|
// src/trust/NationalTlResolver.ts
|
|
10181
|
+
init_reflect_polyfill();
|
|
10033
10182
|
var TSL_NS2 = "http://uri.etsi.org/02231/v2#";
|
|
10034
10183
|
var NationalTlResolver = class {
|
|
10035
10184
|
constructor(opts) {
|
|
@@ -10270,7 +10419,7 @@ function equalBytes(a, b) {
|
|
|
10270
10419
|
|
|
10271
10420
|
// src/index.ts
|
|
10272
10421
|
init_errors();
|
|
10273
|
-
var VERSION = "0.
|
|
10422
|
+
var VERSION = "0.9.3";
|
|
10274
10423
|
/*! Bundled license information:
|
|
10275
10424
|
|
|
10276
10425
|
pvtsutils/build/index.es.js:
|