@learncard/learn-cloud-plugin 2.3.24 → 2.3.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index.js → index.cjs} +2 -2
- package/dist/index.d.cts +3 -0
- package/dist/{learn-cloud-plugin.cjs.development.js → learn-cloud-plugin.cjs.development.cjs} +35 -8
- package/dist/{learn-cloud-plugin.cjs.development.js.map → learn-cloud-plugin.cjs.development.cjs.map} +2 -2
- package/dist/{learn-cloud-plugin.cjs.production.min.js → learn-cloud-plugin.cjs.production.min.cjs} +11 -11
- package/dist/{learn-cloud-plugin.cjs.production.min.js.map → learn-cloud-plugin.cjs.production.min.cjs.map} +3 -3
- package/dist/learn-cloud-plugin.esm.js +34 -7
- package/dist/learn-cloud-plugin.esm.js.map +2 -2
- package/package.json +22 -9
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
if (process.env.NODE_ENV === 'production') {
|
|
4
|
-
module.exports = require('./learn-cloud-plugin.cjs.production.min.
|
|
4
|
+
module.exports = require('./learn-cloud-plugin.cjs.production.min.cjs');
|
|
5
5
|
} else {
|
|
6
|
-
module.exports = require('./learn-cloud-plugin.cjs.development.
|
|
6
|
+
module.exports = require('./learn-cloud-plugin.cjs.development.cjs');
|
|
7
7
|
}
|
package/dist/index.d.cts
ADDED
package/dist/{learn-cloud-plugin.cjs.development.js → learn-cloud-plugin.cjs.development.cjs}
RENAMED
|
@@ -6116,7 +6116,7 @@ __export(index_exports, {
|
|
|
6116
6116
|
module.exports = __toCommonJS(index_exports);
|
|
6117
6117
|
|
|
6118
6118
|
// src/plugin.ts
|
|
6119
|
-
var import_lodash = __toESM(require_lodash());
|
|
6119
|
+
var import_lodash = __toESM(require_lodash(), 1);
|
|
6120
6120
|
var import_learn_cloud_client = require("@learncard/learn-cloud-client");
|
|
6121
6121
|
var import_helpers = require("@learncard/helpers");
|
|
6122
6122
|
|
|
@@ -19641,6 +19641,14 @@ var UnsignedClrCredentialValidator = UnsignedVCValidator.extend({
|
|
|
19641
19641
|
var ClrCredentialValidator = UnsignedClrCredentialValidator.extend({
|
|
19642
19642
|
proof: ProofValidator.or(ProofValidator.array())
|
|
19643
19643
|
});
|
|
19644
|
+
var CredentialFormatValidator = external_exports.enum([
|
|
19645
|
+
"w3c-vc-2.0",
|
|
19646
|
+
"w3c-vc-1.1",
|
|
19647
|
+
"jwt-vc-json",
|
|
19648
|
+
"dc+sd-jwt",
|
|
19649
|
+
"vc+sd-jwt",
|
|
19650
|
+
"mso_mdoc"
|
|
19651
|
+
]);
|
|
19644
19652
|
var StatusCheckEntryValidator = external_exports.object({
|
|
19645
19653
|
/**
|
|
19646
19654
|
* The `credentialStatus.type` as it appeared on the credential.
|
|
@@ -19696,7 +19704,13 @@ var CredentialInfoValidator = external_exports.object({
|
|
|
19696
19704
|
issuee: ProfileValidator.optional(),
|
|
19697
19705
|
credentialSubject: CredentialSubjectValidator.optional()
|
|
19698
19706
|
});
|
|
19699
|
-
var CredentialRecordValidator = external_exports.object({
|
|
19707
|
+
var CredentialRecordValidator = external_exports.object({
|
|
19708
|
+
id: external_exports.string(),
|
|
19709
|
+
uri: external_exports.string(),
|
|
19710
|
+
format: CredentialFormatValidator.optional(),
|
|
19711
|
+
semanticType: external_exports.string().optional(),
|
|
19712
|
+
rawWireForm: external_exports.string().optional()
|
|
19713
|
+
}).catchall(external_exports.any());
|
|
19700
19714
|
var PaginationOptionsValidator = external_exports.object({
|
|
19701
19715
|
limit: external_exports.number(),
|
|
19702
19716
|
cursor: external_exports.string().optional(),
|
|
@@ -20264,6 +20278,22 @@ var ConsentFlowTransactionValidator = external_exports.object({
|
|
|
20264
20278
|
date: external_exports.string(),
|
|
20265
20279
|
uris: external_exports.string().array().optional()
|
|
20266
20280
|
});
|
|
20281
|
+
var HolderExportConsentRecordValidator = external_exports.object({
|
|
20282
|
+
termsUri: external_exports.string(),
|
|
20283
|
+
status: ConsentFlowTermsStatusValidator,
|
|
20284
|
+
contract: ConsentFlowContractDetailsValidator,
|
|
20285
|
+
terms: ConsentFlowTermsValidator,
|
|
20286
|
+
transactions: ConsentFlowTransactionValidator.array()
|
|
20287
|
+
});
|
|
20288
|
+
var HolderExportMetadataValidator = external_exports.object({
|
|
20289
|
+
consentRecords: HolderExportConsentRecordValidator.array(),
|
|
20290
|
+
truncated: external_exports.boolean().optional(),
|
|
20291
|
+
warnings: external_exports.string().array().optional(),
|
|
20292
|
+
limits: external_exports.object({
|
|
20293
|
+
maxConsentRecords: external_exports.number(),
|
|
20294
|
+
maxTransactionsPerConsentRecord: external_exports.number()
|
|
20295
|
+
}).optional()
|
|
20296
|
+
});
|
|
20267
20297
|
var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
|
|
20268
20298
|
records: ConsentFlowTransactionValidator.array()
|
|
20269
20299
|
});
|
|
@@ -20350,10 +20380,7 @@ var LCNNotificationDataValidator = external_exports.object({
|
|
|
20350
20380
|
var LCNNotificationValidator = external_exports.object({
|
|
20351
20381
|
type: LCNNotificationTypeEnumValidator,
|
|
20352
20382
|
to: LCNProfileValidator.partial().and(external_exports.object({ did: external_exports.string() })),
|
|
20353
|
-
from: external_exports.union([
|
|
20354
|
-
external_exports.string(),
|
|
20355
|
-
LCNProfileValidator.partial().and(external_exports.object({ did: external_exports.string() }))
|
|
20356
|
-
]),
|
|
20383
|
+
from: external_exports.union([external_exports.string(), LCNProfileValidator.partial().and(external_exports.object({ did: external_exports.string() }))]),
|
|
20357
20384
|
message: LCNNotificationMessageValidator.optional(),
|
|
20358
20385
|
data: LCNNotificationDataValidator.optional(),
|
|
20359
20386
|
sent: external_exports.iso.datetime().optional(),
|
|
@@ -21106,7 +21133,7 @@ var AllocateCredentialStatusInputValidator = external_exports.object({
|
|
|
21106
21133
|
}).default({});
|
|
21107
21134
|
|
|
21108
21135
|
// src/helpers.ts
|
|
21109
|
-
var import_json_stringify_deterministic = __toESM(require_lib());
|
|
21136
|
+
var import_json_stringify_deterministic = __toESM(require_lib(), 1);
|
|
21110
21137
|
|
|
21111
21138
|
// ../../../node_modules/.pnpm/pbkdf2-hmac@1.2.1/node_modules/pbkdf2-hmac/dist/index.browser.esm.js
|
|
21112
21139
|
var e = { "SHA-1": { outputLength: 20, blockSize: 64 }, "SHA-256": { outputLength: 32, blockSize: 64 }, "SHA-384": { outputLength: 48, blockSize: 128 }, "SHA-512": { outputLength: 64, blockSize: 128 } };
|
|
@@ -21687,4 +21714,4 @@ lodash/lodash.js:
|
|
|
21687
21714
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
21688
21715
|
*)
|
|
21689
21716
|
*/
|
|
21690
|
-
//# sourceMappingURL=learn-cloud-plugin.cjs.development.
|
|
21717
|
+
//# sourceMappingURL=learn-cloud-plugin.cjs.development.cjs.map
|