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