@learncard/react 2.12.4 → 2.12.6
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/cjs/{BoostGenericCard-8e8598eb.js → BoostGenericCard-eba2c7f3.js} +2 -2
- package/dist/cjs/{BoostGenericCard-8e8598eb.js.map → BoostGenericCard-eba2c7f3.js.map} +1 -1
- package/dist/cjs/{CertificateDisplayCard-91331ab3.js → CertificateDisplayCard-e66ebcfb.js} +3 -3
- package/dist/cjs/{CertificateDisplayCard-91331ab3.js.map → CertificateDisplayCard-e66ebcfb.js.map} +1 -1
- package/dist/cjs/{MeritBadgeDisplayCard-e95c03aa.js → MeritBadgeDisplayCard-10badbae.js} +3 -3
- package/dist/cjs/{MeritBadgeDisplayCard-e95c03aa.js.map → MeritBadgeDisplayCard-10badbae.js.map} +1 -1
- package/dist/cjs/{MeritBadgeSkillsCount-cb61b87f.js → MeritBadgeSkillsCount-8c2a6cab.js} +2 -2
- package/dist/cjs/{MeritBadgeSkillsCount-cb61b87f.js.map → MeritBadgeSkillsCount-8c2a6cab.js.map} +1 -1
- package/dist/cjs/{VCCard-4120d521.js → VCCard-cc89948b.js} +3 -3
- package/dist/cjs/{VCCard-4120d521.js.map → VCCard-cc89948b.js.map} +1 -1
- package/dist/cjs/{VCDisplayBackFace-3a62c8f7.js → VCDisplayBackFace-e4107c55.js} +3 -3
- package/dist/cjs/{VCDisplayBackFace-3a62c8f7.js.map → VCDisplayBackFace-e4107c55.js.map} +1 -1
- package/dist/cjs/{VCDisplayCard-3f6937c3.js → VCDisplayCard-0b4e99c0.js} +3 -3
- package/dist/cjs/{VCDisplayCard-3f6937c3.js.map → VCDisplayCard-0b4e99c0.js.map} +1 -1
- package/dist/cjs/{VCDisplayCard2-695c8060.js → VCDisplayCard2-5c7c0ff7.js} +5 -5
- package/dist/cjs/{VCDisplayCard2-695c8060.js.map → VCDisplayCard2-5c7c0ff7.js.map} +1 -1
- package/dist/cjs/{VCVerificationPill-cf4353f2.js → VCVerificationPill-ed387f6e.js} +2 -2
- package/dist/cjs/{VCVerificationPill-cf4353f2.js.map → VCVerificationPill-ed387f6e.js.map} +1 -1
- package/dist/cjs/{credential.helpers-f2da12b7.js → credential.helpers-9a9ad225.js} +2 -2
- package/dist/cjs/{credential.helpers-f2da12b7.js.map → credential.helpers-9a9ad225.js.map} +1 -1
- package/dist/cjs/index.js +11 -11
- package/dist/cjs/index14.js +11 -11
- package/dist/cjs/index22.js +4 -4
- package/dist/cjs/index39.js +9 -9
- package/dist/cjs/index4.js +3 -3
- package/dist/cjs/index40.js +4 -4
- package/dist/cjs/index41.js +5 -5
- package/dist/cjs/index42.js +5 -5
- package/dist/cjs/index43.js +1 -1
- package/dist/cjs/index46.js +2 -2
- package/dist/cjs/index7.js +3 -3
- package/dist/cjs/{types.esm-39ee5677.js → types.esm-ba95174e.js} +260 -18
- package/dist/cjs/types.esm-ba95174e.js.map +1 -0
- package/dist/esm/{BoostGenericCard-bd7c9207.js → BoostGenericCard-26502a81.js} +2 -2
- package/dist/esm/{BoostGenericCard-bd7c9207.js.map → BoostGenericCard-26502a81.js.map} +1 -1
- package/dist/esm/{CertificateDisplayCard-d247bd74.js → CertificateDisplayCard-0de68029.js} +3 -3
- package/dist/esm/{CertificateDisplayCard-d247bd74.js.map → CertificateDisplayCard-0de68029.js.map} +1 -1
- package/dist/esm/{MeritBadgeDisplayCard-f58ddda8.js → MeritBadgeDisplayCard-e569e17f.js} +3 -3
- package/dist/esm/{MeritBadgeDisplayCard-f58ddda8.js.map → MeritBadgeDisplayCard-e569e17f.js.map} +1 -1
- package/dist/esm/{MeritBadgeSkillsCount-f15bd544.js → MeritBadgeSkillsCount-d8d234a2.js} +2 -2
- package/dist/esm/{MeritBadgeSkillsCount-f15bd544.js.map → MeritBadgeSkillsCount-d8d234a2.js.map} +1 -1
- package/dist/esm/{VCCard-37b09661.js → VCCard-6376f382.js} +3 -3
- package/dist/esm/{VCCard-37b09661.js.map → VCCard-6376f382.js.map} +1 -1
- package/dist/esm/{VCDisplayBackFace-acc9c9f1.js → VCDisplayBackFace-2bf451a6.js} +3 -3
- package/dist/esm/{VCDisplayBackFace-acc9c9f1.js.map → VCDisplayBackFace-2bf451a6.js.map} +1 -1
- package/dist/esm/{VCDisplayCard-f630aa6b.js → VCDisplayCard-ae88779a.js} +3 -3
- package/dist/esm/{VCDisplayCard-f630aa6b.js.map → VCDisplayCard-ae88779a.js.map} +1 -1
- package/dist/esm/{VCDisplayCard2-e896785c.js → VCDisplayCard2-116d823d.js} +5 -5
- package/dist/esm/{VCDisplayCard2-e896785c.js.map → VCDisplayCard2-116d823d.js.map} +1 -1
- package/dist/esm/{VCVerificationPill-a9fd20a4.js → VCVerificationPill-7cc43650.js} +2 -2
- package/dist/esm/{VCVerificationPill-a9fd20a4.js.map → VCVerificationPill-7cc43650.js.map} +1 -1
- package/dist/esm/{credential.helpers-1a7bbdca.js → credential.helpers-d71e692a.js} +2 -2
- package/dist/esm/{credential.helpers-1a7bbdca.js.map → credential.helpers-d71e692a.js.map} +1 -1
- package/dist/esm/index.js +11 -11
- package/dist/esm/index14.js +11 -11
- package/dist/esm/index22.js +4 -4
- package/dist/esm/index39.js +9 -9
- package/dist/esm/index4.js +3 -3
- package/dist/esm/index40.js +4 -4
- package/dist/esm/index41.js +5 -5
- package/dist/esm/index42.js +5 -5
- package/dist/esm/index43.js +1 -1
- package/dist/esm/index46.js +2 -2
- package/dist/esm/index7.js +3 -3
- package/dist/esm/{types.esm-acda6d63.js → types.esm-35d4f5e9.js} +260 -18
- package/dist/esm/types.esm-35d4f5e9.js.map +1 -0
- package/package.json +4 -4
- package/dist/cjs/types.esm-39ee5677.js.map +0 -1
- package/dist/esm/types.esm-acda6d63.js.map +0 -1
|
@@ -7402,9 +7402,28 @@ var _schemas = /*#__PURE__*/Object.freeze({
|
|
|
7402
7402
|
|
|
7403
7403
|
config(en());
|
|
7404
7404
|
|
|
7405
|
-
var _a;
|
|
7406
7405
|
var __defProp = Object.defineProperty;
|
|
7407
|
-
var
|
|
7406
|
+
var __defProps = Object.defineProperties;
|
|
7407
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7408
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7409
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7410
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7411
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7412
|
+
var __spreadValues = (a, b) => {
|
|
7413
|
+
for (var prop in b || (b = {}))
|
|
7414
|
+
if (__hasOwnProp.call(b, prop))
|
|
7415
|
+
__defNormalProp(a, prop, b[prop]);
|
|
7416
|
+
if (__getOwnPropSymbols)
|
|
7417
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
7418
|
+
if (__propIsEnum.call(b, prop))
|
|
7419
|
+
__defNormalProp(a, prop, b[prop]);
|
|
7420
|
+
}
|
|
7421
|
+
return a;
|
|
7422
|
+
};
|
|
7423
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
7424
|
+
var _a;
|
|
7425
|
+
var __defProp2 = Object.defineProperty;
|
|
7426
|
+
var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
|
|
7408
7427
|
var ContextValidator = array(string().or(record(string(), any())));
|
|
7409
7428
|
object({
|
|
7410
7429
|
type: string().optional(),
|
|
@@ -7540,14 +7559,22 @@ var UnsignedVCValidator = object({
|
|
|
7540
7559
|
}).catchall(any());
|
|
7541
7560
|
var ProofValidator = object({
|
|
7542
7561
|
type: string(),
|
|
7543
|
-
created: string(),
|
|
7562
|
+
created: string().optional(),
|
|
7544
7563
|
challenge: string().optional(),
|
|
7545
7564
|
domain: string().optional(),
|
|
7546
7565
|
nonce: string().optional(),
|
|
7547
7566
|
proofPurpose: string(),
|
|
7548
7567
|
verificationMethod: string(),
|
|
7549
7568
|
jws: string().optional()
|
|
7550
|
-
}).catchall(any())
|
|
7569
|
+
}).catchall(any()).superRefine((proof, ctx) => {
|
|
7570
|
+
if (proof.created === void 0 && (proof.type !== "DataIntegrityProof" || proof.cryptosuite !== "ecdsa-rdfc-2019")) {
|
|
7571
|
+
ctx.addIssue({
|
|
7572
|
+
code: "custom",
|
|
7573
|
+
path: ["created"],
|
|
7574
|
+
message: "created is required for this proof suite"
|
|
7575
|
+
});
|
|
7576
|
+
}
|
|
7577
|
+
});
|
|
7551
7578
|
var VCValidator = UnsignedVCValidator.extend({
|
|
7552
7579
|
proof: ProofValidator.or(ProofValidator.array())
|
|
7553
7580
|
});
|
|
@@ -8301,7 +8328,10 @@ var SendOptionsValidator = object({
|
|
|
8301
8328
|
webhookUrl: string().url().optional().describe("Webhook URL to receive claim notifications"),
|
|
8302
8329
|
suppressDelivery: boolean().optional().describe("If true, returns claimUrl without sending email/SMS"),
|
|
8303
8330
|
branding: SendBrandingOptionsValidator.optional().describe("Branding for email/SMS delivery"),
|
|
8304
|
-
guardianEmail: string().email().optional().describe("Guardian email that must approve before student can claim")
|
|
8331
|
+
guardianEmail: string().email().optional().describe("Guardian email that must approve before student can claim"),
|
|
8332
|
+
expiresInDays: number().int().min(1).max(720).optional().describe(
|
|
8333
|
+
"How many days the credential stays claimable in the Universal Inbox (default 30). Does not change the credential validity period."
|
|
8334
|
+
)
|
|
8305
8335
|
});
|
|
8306
8336
|
var SendBoostInputValidator = object({
|
|
8307
8337
|
type: literal("boost"),
|
|
@@ -8423,15 +8453,6 @@ var ConsentFlowContractDataValidator = object({
|
|
|
8423
8453
|
PaginationResponseValidator.extend({
|
|
8424
8454
|
records: ConsentFlowContractDataValidator.array()
|
|
8425
8455
|
});
|
|
8426
|
-
var ConsentFlowContractDataForDidValidator = object({
|
|
8427
|
-
credentials: object({ category: string(), uri: string() }).array(),
|
|
8428
|
-
personal: record(string(), string()).default({}),
|
|
8429
|
-
date: string(),
|
|
8430
|
-
contractUri: string()
|
|
8431
|
-
});
|
|
8432
|
-
PaginationResponseValidator.extend({
|
|
8433
|
-
records: ConsentFlowContractDataForDidValidator.array()
|
|
8434
|
-
});
|
|
8435
8456
|
var ConsentFlowTermValidator = object({
|
|
8436
8457
|
sharing: boolean().optional(),
|
|
8437
8458
|
shared: string().array().optional(),
|
|
@@ -8465,6 +8486,34 @@ PaginationResponseValidator.extend({
|
|
|
8465
8486
|
status: ConsentFlowTermsStatusValidator
|
|
8466
8487
|
}).array()
|
|
8467
8488
|
});
|
|
8489
|
+
var ConsentFlowGuardianApprovalValidator = object({
|
|
8490
|
+
guardianProfileId: string(),
|
|
8491
|
+
guardianDid: string(),
|
|
8492
|
+
approvedAt: string().datetime(),
|
|
8493
|
+
contractUpdatedAt: string()
|
|
8494
|
+
});
|
|
8495
|
+
var ConsentFlowContractDataForDidValidator = object({
|
|
8496
|
+
credentials: object({ category: string(), uri: string() }).array(),
|
|
8497
|
+
personal: record(string(), string()).default({}),
|
|
8498
|
+
date: string(),
|
|
8499
|
+
createdAt: string().optional(),
|
|
8500
|
+
contractUpdatedAt: string(),
|
|
8501
|
+
contractExpiresAt: string().optional(),
|
|
8502
|
+
reasonForAccessing: string().optional(),
|
|
8503
|
+
guardian: object({
|
|
8504
|
+
required: boolean(),
|
|
8505
|
+
approved: boolean(),
|
|
8506
|
+
approval: ConsentFlowGuardianApprovalValidator.optional()
|
|
8507
|
+
}),
|
|
8508
|
+
contractUri: string(),
|
|
8509
|
+
termsUri: string(),
|
|
8510
|
+
status: ConsentFlowTermsStatusValidator,
|
|
8511
|
+
expiresAt: string().optional(),
|
|
8512
|
+
terms: ConsentFlowTermsValidator
|
|
8513
|
+
});
|
|
8514
|
+
PaginationResponseValidator.extend({
|
|
8515
|
+
records: ConsentFlowContractDataForDidValidator.array()
|
|
8516
|
+
});
|
|
8468
8517
|
object({
|
|
8469
8518
|
read: object({
|
|
8470
8519
|
anonymize: boolean().optional(),
|
|
@@ -8525,6 +8574,7 @@ var ConsentFlowTransactionValidator = object({
|
|
|
8525
8574
|
expiresAt: string().optional(),
|
|
8526
8575
|
oneTime: boolean().optional(),
|
|
8527
8576
|
terms: ConsentFlowTermsValidator.optional(),
|
|
8577
|
+
guardianApproval: ConsentFlowGuardianApprovalValidator.optional(),
|
|
8528
8578
|
id: string(),
|
|
8529
8579
|
action: ConsentFlowTransactionActionValidator,
|
|
8530
8580
|
date: string(),
|
|
@@ -8597,7 +8647,8 @@ var LCNNotificationTypeEnumValidator = _enum([
|
|
|
8597
8647
|
"APP_NOTIFICATION",
|
|
8598
8648
|
"CREDENTIAL_REVOKED",
|
|
8599
8649
|
"CREDENTIAL_SUSPENDED",
|
|
8600
|
-
"CREDENTIAL_UNSUSPENDED"
|
|
8650
|
+
"CREDENTIAL_UNSUSPENDED",
|
|
8651
|
+
"CREDENTIAL_REFRESHED"
|
|
8601
8652
|
]);
|
|
8602
8653
|
var LCNNotificationMessageValidator = object({
|
|
8603
8654
|
title: string().optional(),
|
|
@@ -8729,12 +8780,16 @@ object({
|
|
|
8729
8780
|
});
|
|
8730
8781
|
var InboxCredentialValidator = object({
|
|
8731
8782
|
id: string(),
|
|
8732
|
-
credential: string(),
|
|
8783
|
+
credential: string().optional(),
|
|
8733
8784
|
isSigned: boolean(),
|
|
8734
8785
|
currentStatus: LCNInboxStatusEnumValidator,
|
|
8735
8786
|
isAccepted: boolean().optional(),
|
|
8736
8787
|
expiresAt: string(),
|
|
8737
8788
|
createdAt: string(),
|
|
8789
|
+
finalizedAt: string().optional(),
|
|
8790
|
+
expiredAt: string().optional(),
|
|
8791
|
+
credentialName: string().optional(),
|
|
8792
|
+
achievementType: string().optional(),
|
|
8738
8793
|
issuerDid: string(),
|
|
8739
8794
|
webhookUrl: string().optional(),
|
|
8740
8795
|
boostUri: string().optional(),
|
|
@@ -8788,7 +8843,9 @@ object({
|
|
|
8788
8843
|
"The signing authority to use for the credential. If not provided, the users default signing authority will be used if the credential is not signed."
|
|
8789
8844
|
),
|
|
8790
8845
|
webhookUrl: string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
8791
|
-
expiresInDays: number().min(1).max(
|
|
8846
|
+
expiresInDays: number().int().min(1).max(720).optional().describe(
|
|
8847
|
+
"How many days the encrypted inbox payload remains claimable. This does not change the credential validity period."
|
|
8848
|
+
),
|
|
8792
8849
|
templateData: record(string(), unknown()).optional().describe(
|
|
8793
8850
|
"Template data to render into the boost credential template using Mustache syntax. Only used when boostUri is provided."
|
|
8794
8851
|
),
|
|
@@ -8851,6 +8908,9 @@ object({
|
|
|
8851
8908
|
credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).or(CredentialNameRefValidator).describe("The credential to issue, or a { name } reference to resolve a boost template."),
|
|
8852
8909
|
configuration: object({
|
|
8853
8910
|
publishableKey: string(),
|
|
8911
|
+
expiresInDays: number().int().min(1).max(720).optional().describe(
|
|
8912
|
+
"Inbox claim window in days. Defaults to 720; use a shorter window for sensitive records."
|
|
8913
|
+
),
|
|
8854
8914
|
signingAuthorityName: string().optional(),
|
|
8855
8915
|
listingId: string().optional(),
|
|
8856
8916
|
listingSlug: string().optional()
|
|
@@ -9476,6 +9536,188 @@ object({
|
|
|
9476
9536
|
version: number().default(1),
|
|
9477
9537
|
messages: array(inAppMessageValidator).default([])
|
|
9478
9538
|
}).passthrough();
|
|
9539
|
+
var LearnCardRefreshAuthorizationValidator = object({ type: literal("LearnCardDIDAuth") }).catchall(any());
|
|
9540
|
+
var ManagedCredentialRefreshServiceValidator = object({
|
|
9541
|
+
id: string().min(1),
|
|
9542
|
+
type: literal("LearnCardCredentialRefresh2026"),
|
|
9543
|
+
authorization: LearnCardRefreshAuthorizationValidator.optional()
|
|
9544
|
+
}).catchall(any());
|
|
9545
|
+
var StandardCredentialRefreshServiceValidator = object({
|
|
9546
|
+
id: string().min(1),
|
|
9547
|
+
type: literal("1EdTechCredentialRefresh")
|
|
9548
|
+
}).catchall(any());
|
|
9549
|
+
union([
|
|
9550
|
+
ManagedCredentialRefreshServiceValidator,
|
|
9551
|
+
StandardCredentialRefreshServiceValidator
|
|
9552
|
+
]);
|
|
9553
|
+
object({
|
|
9554
|
+
holder: object({
|
|
9555
|
+
profileId: string().optional(),
|
|
9556
|
+
did: string().min(1)
|
|
9557
|
+
}),
|
|
9558
|
+
credentialId: string().min(1)
|
|
9559
|
+
});
|
|
9560
|
+
object({
|
|
9561
|
+
refreshId: string().min(1),
|
|
9562
|
+
refreshService: ManagedCredentialRefreshServiceValidator.extend({
|
|
9563
|
+
authorization: LearnCardRefreshAuthorizationValidator
|
|
9564
|
+
})
|
|
9565
|
+
});
|
|
9566
|
+
var CredentialRefreshSigningModeValidator = _enum(["issuer-signed", "signing-authority"]);
|
|
9567
|
+
var PublishCredentialRefreshBaseFields = {
|
|
9568
|
+
refreshId: string().min(1),
|
|
9569
|
+
notifyHolder: boolean().optional(),
|
|
9570
|
+
updateSummary: string().optional(),
|
|
9571
|
+
idempotencyKey: string().optional()
|
|
9572
|
+
};
|
|
9573
|
+
object(__spreadProps(__spreadValues({}, PublishCredentialRefreshBaseFields), {
|
|
9574
|
+
mode: literal("issuer-signed"),
|
|
9575
|
+
signedCredential: VCValidator
|
|
9576
|
+
}));
|
|
9577
|
+
object(__spreadProps(__spreadValues({}, PublishCredentialRefreshBaseFields), {
|
|
9578
|
+
mode: literal("signing-authority"),
|
|
9579
|
+
credential: UnsignedVCValidator,
|
|
9580
|
+
signingAuthority: object({
|
|
9581
|
+
type: string().min(1)
|
|
9582
|
+
}).catchall(any())
|
|
9583
|
+
}));
|
|
9584
|
+
object(__spreadProps(__spreadValues({}, PublishCredentialRefreshBaseFields), {
|
|
9585
|
+
mode: CredentialRefreshSigningModeValidator,
|
|
9586
|
+
signedCredential: VCValidator.optional(),
|
|
9587
|
+
credential: UnsignedVCValidator.optional(),
|
|
9588
|
+
signingAuthority: object({
|
|
9589
|
+
type: string().min(1)
|
|
9590
|
+
}).catchall(any()).optional()
|
|
9591
|
+
})).superRefine((input, ctx) => {
|
|
9592
|
+
if (input.mode === "issuer-signed" && !input.signedCredential) {
|
|
9593
|
+
ctx.addIssue({
|
|
9594
|
+
code: "custom",
|
|
9595
|
+
path: ["signedCredential"],
|
|
9596
|
+
message: "signedCredential is required for issuer-signed publication"
|
|
9597
|
+
});
|
|
9598
|
+
}
|
|
9599
|
+
if (input.mode === "issuer-signed" && (input.credential !== void 0 || input.signingAuthority !== void 0)) {
|
|
9600
|
+
ctx.addIssue({
|
|
9601
|
+
code: "custom",
|
|
9602
|
+
path: ["mode"],
|
|
9603
|
+
message: "issuer-signed publication cannot include signing-authority fields"
|
|
9604
|
+
});
|
|
9605
|
+
}
|
|
9606
|
+
if (input.mode === "signing-authority") {
|
|
9607
|
+
if (input.signedCredential !== void 0) {
|
|
9608
|
+
ctx.addIssue({
|
|
9609
|
+
code: "custom",
|
|
9610
|
+
path: ["signedCredential"],
|
|
9611
|
+
message: "signing-authority publication cannot include signedCredential"
|
|
9612
|
+
});
|
|
9613
|
+
}
|
|
9614
|
+
if (!input.credential) {
|
|
9615
|
+
ctx.addIssue({
|
|
9616
|
+
code: "custom",
|
|
9617
|
+
path: ["credential"],
|
|
9618
|
+
message: "credential is required for signing-authority publication"
|
|
9619
|
+
});
|
|
9620
|
+
}
|
|
9621
|
+
if (!input.signingAuthority) {
|
|
9622
|
+
ctx.addIssue({
|
|
9623
|
+
code: "custom",
|
|
9624
|
+
path: ["signingAuthority"],
|
|
9625
|
+
message: "signingAuthority is required for signing-authority publication"
|
|
9626
|
+
});
|
|
9627
|
+
}
|
|
9628
|
+
}
|
|
9629
|
+
});
|
|
9630
|
+
var PublishCredentialRefreshNotificationValidator = _enum([
|
|
9631
|
+
"queued",
|
|
9632
|
+
"suppressed",
|
|
9633
|
+
"not-applicable",
|
|
9634
|
+
/** Publication succeeded, but the post-commit notification enqueue must be retried. */
|
|
9635
|
+
"delivery-failed"
|
|
9636
|
+
]);
|
|
9637
|
+
object({
|
|
9638
|
+
refreshId: string().min(1),
|
|
9639
|
+
version: number().int().positive(),
|
|
9640
|
+
publishedAt: string().min(1),
|
|
9641
|
+
notification: PublishCredentialRefreshNotificationValidator
|
|
9642
|
+
});
|
|
9643
|
+
var CredentialRefreshVersionMetadataValidator = object({
|
|
9644
|
+
version: number().int().positive(),
|
|
9645
|
+
publishedAt: string().min(1),
|
|
9646
|
+
effectiveAt: string().optional(),
|
|
9647
|
+
etag: string().optional(),
|
|
9648
|
+
signingMode: CredentialRefreshSigningModeValidator.optional(),
|
|
9649
|
+
updateSummary: string().optional()
|
|
9650
|
+
});
|
|
9651
|
+
object({
|
|
9652
|
+
refreshId: string().min(1),
|
|
9653
|
+
cursor: string().optional(),
|
|
9654
|
+
limit: number().int().positive().optional()
|
|
9655
|
+
});
|
|
9656
|
+
object({
|
|
9657
|
+
records: CredentialRefreshVersionMetadataValidator.array(),
|
|
9658
|
+
hasMore: boolean(),
|
|
9659
|
+
cursor: string().optional()
|
|
9660
|
+
});
|
|
9661
|
+
object({
|
|
9662
|
+
challenge: string().min(1),
|
|
9663
|
+
expiresAt: string().min(1),
|
|
9664
|
+
domain: string().optional(),
|
|
9665
|
+
scheme: literal("LearnCardDIDAuth").optional()
|
|
9666
|
+
});
|
|
9667
|
+
var PublicCredentialRefreshEnvelopeValidator = object({
|
|
9668
|
+
format: literal("vc"),
|
|
9669
|
+
credential: VCValidator,
|
|
9670
|
+
etag: string().optional()
|
|
9671
|
+
});
|
|
9672
|
+
var JweCredentialRefreshEnvelopeValidator = object({
|
|
9673
|
+
format: literal("jwe"),
|
|
9674
|
+
jwe: JWEValidator,
|
|
9675
|
+
etag: string().optional(),
|
|
9676
|
+
/** Present on LearnCard-managed endpoints; optional for interoperable JWE services. */
|
|
9677
|
+
version: number().int().positive().optional()
|
|
9678
|
+
});
|
|
9679
|
+
discriminatedUnion("format", [
|
|
9680
|
+
PublicCredentialRefreshEnvelopeValidator,
|
|
9681
|
+
JweCredentialRefreshEnvelopeValidator
|
|
9682
|
+
]);
|
|
9683
|
+
var CredentialRefreshFailureCodeValidator = _enum([
|
|
9684
|
+
"UNAVAILABLE",
|
|
9685
|
+
"TIMEOUT",
|
|
9686
|
+
"UNSUPPORTED_SERVICE",
|
|
9687
|
+
"UNAUTHORIZED",
|
|
9688
|
+
"MALFORMED_RESPONSE",
|
|
9689
|
+
"INVALID_PROOF",
|
|
9690
|
+
"ISSUER_MISMATCH",
|
|
9691
|
+
"ID_MISMATCH",
|
|
9692
|
+
"ROLLBACK",
|
|
9693
|
+
"REVOKED",
|
|
9694
|
+
"UNSAFE_ENDPOINT"
|
|
9695
|
+
]);
|
|
9696
|
+
var CredentialRefreshUpdatedResultValidator = object({
|
|
9697
|
+
status: literal("updated"),
|
|
9698
|
+
credential: VCValidator,
|
|
9699
|
+
etag: string().optional(),
|
|
9700
|
+
managedVersion: number().int().positive().optional()
|
|
9701
|
+
});
|
|
9702
|
+
var CredentialRefreshUnchangedResultValidator = object({
|
|
9703
|
+
status: literal("unchanged"),
|
|
9704
|
+
checkedAt: string().min(1),
|
|
9705
|
+
etag: string().optional()
|
|
9706
|
+
});
|
|
9707
|
+
var CredentialRefreshUnsupportedResultValidator = object({
|
|
9708
|
+
status: literal("unsupported")
|
|
9709
|
+
});
|
|
9710
|
+
var CredentialRefreshFailedResultValidator = object({
|
|
9711
|
+
status: literal("failed"),
|
|
9712
|
+
code: CredentialRefreshFailureCodeValidator,
|
|
9713
|
+
retryable: boolean()
|
|
9714
|
+
});
|
|
9715
|
+
discriminatedUnion("status", [
|
|
9716
|
+
CredentialRefreshUpdatedResultValidator,
|
|
9717
|
+
CredentialRefreshUnchangedResultValidator,
|
|
9718
|
+
CredentialRefreshUnsupportedResultValidator,
|
|
9719
|
+
CredentialRefreshFailedResultValidator
|
|
9720
|
+
]);
|
|
9479
9721
|
|
|
9480
9722
|
exports.VerificationStatusEnum = VerificationStatusEnum;
|
|
9481
|
-
//# sourceMappingURL=types.esm-
|
|
9723
|
+
//# sourceMappingURL=types.esm-ba95174e.js.map
|