@learncard/render-method-plugin 5.0.1 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/render-method-plugin.cjs.development.cjs +511 -32
- package/dist/render-method-plugin.cjs.development.cjs.map +3 -3
- package/dist/render-method-plugin.cjs.production.min.cjs +27 -27
- package/dist/render-method-plugin.cjs.production.min.cjs.map +3 -3
- package/dist/render-method-plugin.esm.js +511 -32
- package/dist/render-method-plugin.esm.js.map +3 -3
- package/package.json +8 -8
|
@@ -15960,6 +15960,8 @@ var require_types_cjs_development = __commonJS({
|
|
|
15960
15960
|
AgeRatingValidator: /* @__PURE__ */ __name2(() => AgeRatingValidator2, "AgeRatingValidator"),
|
|
15961
15961
|
AlignmentTargetTypeValidator: /* @__PURE__ */ __name2(() => AlignmentTargetTypeValidator2, "AlignmentTargetTypeValidator"),
|
|
15962
15962
|
AlignmentValidator: /* @__PURE__ */ __name2(() => AlignmentValidator2, "AlignmentValidator"),
|
|
15963
|
+
AllocateCredentialRefreshInputValidator: /* @__PURE__ */ __name2(() => AllocateCredentialRefreshInputValidator2, "AllocateCredentialRefreshInputValidator"),
|
|
15964
|
+
AllocateCredentialRefreshResultValidator: /* @__PURE__ */ __name2(() => AllocateCredentialRefreshResultValidator2, "AllocateCredentialRefreshResultValidator"),
|
|
15963
15965
|
AllocateCredentialStatusInputValidator: /* @__PURE__ */ __name2(() => AllocateCredentialStatusInputValidator2, "AllocateCredentialStatusInputValidator"),
|
|
15964
15966
|
AllocatedBitstringStatusListEntryValidator: /* @__PURE__ */ __name2(() => AllocatedBitstringStatusListEntryValidator2, "AllocatedBitstringStatusListEntryValidator"),
|
|
15965
15967
|
AllowConnectionRequestsEnum: /* @__PURE__ */ __name2(() => AllowConnectionRequestsEnum2, "AllowConnectionRequestsEnum"),
|
|
@@ -16009,6 +16011,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
16009
16011
|
ConsentFlowContractValidator: /* @__PURE__ */ __name2(() => ConsentFlowContractValidator2, "ConsentFlowContractValidator"),
|
|
16010
16012
|
ConsentFlowDataForDidQueryValidator: /* @__PURE__ */ __name2(() => ConsentFlowDataForDidQueryValidator2, "ConsentFlowDataForDidQueryValidator"),
|
|
16011
16013
|
ConsentFlowDataQueryValidator: /* @__PURE__ */ __name2(() => ConsentFlowDataQueryValidator2, "ConsentFlowDataQueryValidator"),
|
|
16014
|
+
ConsentFlowGuardianApprovalValidator: /* @__PURE__ */ __name2(() => ConsentFlowGuardianApprovalValidator2, "ConsentFlowGuardianApprovalValidator"),
|
|
16012
16015
|
ConsentFlowTermValidator: /* @__PURE__ */ __name2(() => ConsentFlowTermValidator2, "ConsentFlowTermValidator"),
|
|
16013
16016
|
ConsentFlowTermsQueryValidator: /* @__PURE__ */ __name2(() => ConsentFlowTermsQueryValidator2, "ConsentFlowTermsQueryValidator"),
|
|
16014
16017
|
ConsentFlowTermsStatusValidator: /* @__PURE__ */ __name2(() => ConsentFlowTermsStatusValidator2, "ConsentFlowTermsStatusValidator"),
|
|
@@ -16041,6 +16044,16 @@ var require_types_cjs_development = __commonJS({
|
|
|
16041
16044
|
CredentialInfoValidator: /* @__PURE__ */ __name2(() => CredentialInfoValidator2, "CredentialInfoValidator"),
|
|
16042
16045
|
CredentialNameRefValidator: /* @__PURE__ */ __name2(() => CredentialNameRefValidator2, "CredentialNameRefValidator"),
|
|
16043
16046
|
CredentialRecordValidator: /* @__PURE__ */ __name2(() => CredentialRecordValidator2, "CredentialRecordValidator"),
|
|
16047
|
+
CredentialRefreshChallengeValidator: /* @__PURE__ */ __name2(() => CredentialRefreshChallengeValidator2, "CredentialRefreshChallengeValidator"),
|
|
16048
|
+
CredentialRefreshFailedResultValidator: /* @__PURE__ */ __name2(() => CredentialRefreshFailedResultValidator2, "CredentialRefreshFailedResultValidator"),
|
|
16049
|
+
CredentialRefreshFailureCodeValidator: /* @__PURE__ */ __name2(() => CredentialRefreshFailureCodeValidator2, "CredentialRefreshFailureCodeValidator"),
|
|
16050
|
+
CredentialRefreshResponseEnvelopeValidator: /* @__PURE__ */ __name2(() => CredentialRefreshResponseEnvelopeValidator2, "CredentialRefreshResponseEnvelopeValidator"),
|
|
16051
|
+
CredentialRefreshResultValidator: /* @__PURE__ */ __name2(() => CredentialRefreshResultValidator2, "CredentialRefreshResultValidator"),
|
|
16052
|
+
CredentialRefreshSigningModeValidator: /* @__PURE__ */ __name2(() => CredentialRefreshSigningModeValidator2, "CredentialRefreshSigningModeValidator"),
|
|
16053
|
+
CredentialRefreshUnchangedResultValidator: /* @__PURE__ */ __name2(() => CredentialRefreshUnchangedResultValidator2, "CredentialRefreshUnchangedResultValidator"),
|
|
16054
|
+
CredentialRefreshUnsupportedResultValidator: /* @__PURE__ */ __name2(() => CredentialRefreshUnsupportedResultValidator2, "CredentialRefreshUnsupportedResultValidator"),
|
|
16055
|
+
CredentialRefreshUpdatedResultValidator: /* @__PURE__ */ __name2(() => CredentialRefreshUpdatedResultValidator2, "CredentialRefreshUpdatedResultValidator"),
|
|
16056
|
+
CredentialRefreshVersionMetadataValidator: /* @__PURE__ */ __name2(() => CredentialRefreshVersionMetadataValidator2, "CredentialRefreshVersionMetadataValidator"),
|
|
16044
16057
|
CredentialSchemaValidator: /* @__PURE__ */ __name2(() => CredentialSchemaValidator2, "CredentialSchemaValidator"),
|
|
16045
16058
|
CredentialStatusValidator: /* @__PURE__ */ __name2(() => CredentialStatusValidator2, "CredentialStatusValidator"),
|
|
16046
16059
|
CredentialSubjectValidator: /* @__PURE__ */ __name2(() => CredentialSubjectValidator2, "CredentialSubjectValidator"),
|
|
@@ -16061,6 +16074,8 @@ var require_types_cjs_development = __commonJS({
|
|
|
16061
16074
|
GeoCoordinatesValidator: /* @__PURE__ */ __name2(() => GeoCoordinatesValidator2, "GeoCoordinatesValidator"),
|
|
16062
16075
|
GetCounterEventValidator: /* @__PURE__ */ __name2(() => GetCounterEventValidator2, "GetCounterEventValidator"),
|
|
16063
16076
|
GetCountersEventValidator: /* @__PURE__ */ __name2(() => GetCountersEventValidator2, "GetCountersEventValidator"),
|
|
16077
|
+
GetCredentialRefreshHistoryInputValidator: /* @__PURE__ */ __name2(() => GetCredentialRefreshHistoryInputValidator2, "GetCredentialRefreshHistoryInputValidator"),
|
|
16078
|
+
GetCredentialRefreshHistoryResultValidator: /* @__PURE__ */ __name2(() => GetCredentialRefreshHistoryResultValidator2, "GetCredentialRefreshHistoryResultValidator"),
|
|
16064
16079
|
GetFullSkillTreeInputValidator: /* @__PURE__ */ __name2(() => GetFullSkillTreeInputValidator2, "GetFullSkillTreeInputValidator"),
|
|
16065
16080
|
GetFullSkillTreeResultValidator: /* @__PURE__ */ __name2(() => GetFullSkillTreeResultValidator2, "GetFullSkillTreeResultValidator"),
|
|
16066
16081
|
GetSkillPathInputValidator: /* @__PURE__ */ __name2(() => GetSkillPathInputValidator2, "GetSkillPathInputValidator"),
|
|
@@ -16085,6 +16100,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
16085
16100
|
JWEValidator: /* @__PURE__ */ __name2(() => JWEValidator2, "JWEValidator"),
|
|
16086
16101
|
JWKValidator: /* @__PURE__ */ __name2(() => JWKValidator2, "JWKValidator"),
|
|
16087
16102
|
JWKWithPrivateKeyValidator: /* @__PURE__ */ __name2(() => JWKWithPrivateKeyValidator2, "JWKWithPrivateKeyValidator"),
|
|
16103
|
+
JweCredentialRefreshEnvelopeValidator: /* @__PURE__ */ __name2(() => JweCredentialRefreshEnvelopeValidator2, "JweCredentialRefreshEnvelopeValidator"),
|
|
16088
16104
|
KnownAchievementTypeValidator: /* @__PURE__ */ __name2(() => KnownAchievementTypeValidator2, "KnownAchievementTypeValidator"),
|
|
16089
16105
|
LCNAuthedProfileValidator: /* @__PURE__ */ __name2(() => LCNAuthedProfileValidator2, "LCNAuthedProfileValidator"),
|
|
16090
16106
|
LCNBoostClaimLinkOptionsValidator: /* @__PURE__ */ __name2(() => LCNBoostClaimLinkOptionsValidator2, "LCNBoostClaimLinkOptionsValidator"),
|
|
@@ -16122,7 +16138,9 @@ var require_types_cjs_development = __commonJS({
|
|
|
16122
16138
|
LCNSigningAuthorityValidator: /* @__PURE__ */ __name2(() => LCNSigningAuthorityValidator2, "LCNSigningAuthorityValidator"),
|
|
16123
16139
|
LCNVisibleProfileValidator: /* @__PURE__ */ __name2(() => LCNVisibleProfileValidator2, "LCNVisibleProfileValidator"),
|
|
16124
16140
|
LaunchTypeValidator: /* @__PURE__ */ __name2(() => LaunchTypeValidator2, "LaunchTypeValidator"),
|
|
16141
|
+
LearnCardRefreshAuthorizationValidator: /* @__PURE__ */ __name2(() => LearnCardRefreshAuthorizationValidator2, "LearnCardRefreshAuthorizationValidator"),
|
|
16125
16142
|
LinkProviderFrameworkInputValidator: /* @__PURE__ */ __name2(() => LinkProviderFrameworkInputValidator2, "LinkProviderFrameworkInputValidator"),
|
|
16143
|
+
ManagedCredentialRefreshServiceValidator: /* @__PURE__ */ __name2(() => ManagedCredentialRefreshServiceValidator2, "ManagedCredentialRefreshServiceValidator"),
|
|
16126
16144
|
PaginatedAppStoreListingsValidator: /* @__PURE__ */ __name2(() => PaginatedAppStoreListingsValidator2, "PaginatedAppStoreListingsValidator"),
|
|
16127
16145
|
PaginatedBoostRecipientsValidator: /* @__PURE__ */ __name2(() => PaginatedBoostRecipientsValidator2, "PaginatedBoostRecipientsValidator"),
|
|
16128
16146
|
PaginatedBoostRecipientsWithChildrenValidator: /* @__PURE__ */ __name2(() => PaginatedBoostRecipientsWithChildrenValidator2, "PaginatedBoostRecipientsWithChildrenValidator"),
|
|
@@ -16152,6 +16170,12 @@ var require_types_cjs_development = __commonJS({
|
|
|
16152
16170
|
ProfileVisibilityEnum: /* @__PURE__ */ __name2(() => ProfileVisibilityEnum2, "ProfileVisibilityEnum"),
|
|
16153
16171
|
PromotionLevelValidator: /* @__PURE__ */ __name2(() => PromotionLevelValidator2, "PromotionLevelValidator"),
|
|
16154
16172
|
ProofValidator: /* @__PURE__ */ __name2(() => ProofValidator2, "ProofValidator"),
|
|
16173
|
+
PublicCredentialRefreshEnvelopeValidator: /* @__PURE__ */ __name2(() => PublicCredentialRefreshEnvelopeValidator2, "PublicCredentialRefreshEnvelopeValidator"),
|
|
16174
|
+
PublishCredentialRefreshInputValidator: /* @__PURE__ */ __name2(() => PublishCredentialRefreshInputValidator2, "PublishCredentialRefreshInputValidator"),
|
|
16175
|
+
PublishCredentialRefreshNotificationValidator: /* @__PURE__ */ __name2(() => PublishCredentialRefreshNotificationValidator2, "PublishCredentialRefreshNotificationValidator"),
|
|
16176
|
+
PublishCredentialRefreshResultValidator: /* @__PURE__ */ __name2(() => PublishCredentialRefreshResultValidator2, "PublishCredentialRefreshResultValidator"),
|
|
16177
|
+
PublishIssuerSignedRefreshValidator: /* @__PURE__ */ __name2(() => PublishIssuerSignedRefreshValidator2, "PublishIssuerSignedRefreshValidator"),
|
|
16178
|
+
PublishSigningAuthorityRefreshValidator: /* @__PURE__ */ __name2(() => PublishSigningAuthorityRefreshValidator2, "PublishSigningAuthorityRefreshValidator"),
|
|
16155
16179
|
RefreshServiceValidator: /* @__PURE__ */ __name2(() => RefreshServiceValidator2, "RefreshServiceValidator"),
|
|
16156
16180
|
RegExpValidator: /* @__PURE__ */ __name2(() => RegExpValidator2, "RegExpValidator"),
|
|
16157
16181
|
RelatedValidator: /* @__PURE__ */ __name2(() => RelatedValidator2, "RelatedValidator"),
|
|
@@ -16192,11 +16216,13 @@ var require_types_cjs_development = __commonJS({
|
|
|
16192
16216
|
SkillTreeNodeInputValidator: /* @__PURE__ */ __name2(() => SkillTreeNodeInputValidator2, "SkillTreeNodeInputValidator"),
|
|
16193
16217
|
SkillTreeNodeValidator: /* @__PURE__ */ __name2(() => SkillTreeNodeValidator2, "SkillTreeNodeValidator"),
|
|
16194
16218
|
SkillValidator: /* @__PURE__ */ __name2(() => SkillValidator2, "SkillValidator"),
|
|
16219
|
+
StandardCredentialRefreshServiceValidator: /* @__PURE__ */ __name2(() => StandardCredentialRefreshServiceValidator2, "StandardCredentialRefreshServiceValidator"),
|
|
16195
16220
|
StatusCheckEntryValidator: /* @__PURE__ */ __name2(() => StatusCheckEntryValidator2, "StatusCheckEntryValidator"),
|
|
16196
16221
|
StoredCredentialEnvelopeValidator: /* @__PURE__ */ __name2(() => StoredCredentialEnvelopeValidator2, "StoredCredentialEnvelopeValidator"),
|
|
16197
16222
|
StringQuery: /* @__PURE__ */ __name2(() => StringQuery2, "StringQuery"),
|
|
16198
16223
|
SummaryCredentialDataValidator: /* @__PURE__ */ __name2(() => SummaryCredentialDataValidator2, "SummaryCredentialDataValidator"),
|
|
16199
16224
|
SummaryCredentialKeywordValidator: /* @__PURE__ */ __name2(() => SummaryCredentialKeywordValidator2, "SummaryCredentialKeywordValidator"),
|
|
16225
|
+
SupportedCredentialRefreshServiceValidator: /* @__PURE__ */ __name2(() => SupportedCredentialRefreshServiceValidator2, "SupportedCredentialRefreshServiceValidator"),
|
|
16200
16226
|
SyncFrameworkInputValidator: /* @__PURE__ */ __name2(() => SyncFrameworkInputValidator2, "SyncFrameworkInputValidator"),
|
|
16201
16227
|
TagValidator: /* @__PURE__ */ __name2(() => TagValidator2, "TagValidator"),
|
|
16202
16228
|
TemplateRenderMethodValidator: /* @__PURE__ */ __name2(() => TemplateRenderMethodValidator2, "TemplateRenderMethodValidator"),
|
|
@@ -32025,14 +32051,22 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32025
32051
|
}).catchall(external_exports2.any());
|
|
32026
32052
|
var ProofValidator2 = external_exports2.object({
|
|
32027
32053
|
type: external_exports2.string(),
|
|
32028
|
-
created: external_exports2.string(),
|
|
32054
|
+
created: external_exports2.string().optional(),
|
|
32029
32055
|
challenge: external_exports2.string().optional(),
|
|
32030
32056
|
domain: external_exports2.string().optional(),
|
|
32031
32057
|
nonce: external_exports2.string().optional(),
|
|
32032
32058
|
proofPurpose: external_exports2.string(),
|
|
32033
32059
|
verificationMethod: external_exports2.string(),
|
|
32034
32060
|
jws: external_exports2.string().optional()
|
|
32035
|
-
}).catchall(external_exports2.any())
|
|
32061
|
+
}).catchall(external_exports2.any()).superRefine((proof, ctx) => {
|
|
32062
|
+
if (proof.created === void 0 && (proof.type !== "DataIntegrityProof" || proof.cryptosuite !== "ecdsa-rdfc-2019")) {
|
|
32063
|
+
ctx.addIssue({
|
|
32064
|
+
code: "custom",
|
|
32065
|
+
path: ["created"],
|
|
32066
|
+
message: "created is required for this proof suite"
|
|
32067
|
+
});
|
|
32068
|
+
}
|
|
32069
|
+
});
|
|
32036
32070
|
var VCValidator2 = UnsignedVCValidator2.extend({
|
|
32037
32071
|
proof: ProofValidator2.or(ProofValidator2.array())
|
|
32038
32072
|
});
|
|
@@ -32793,7 +32827,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32793
32827
|
webhookUrl: external_exports2.string().url().optional().describe("Webhook URL to receive claim notifications"),
|
|
32794
32828
|
suppressDelivery: external_exports2.boolean().optional().describe("If true, returns claimUrl without sending email/SMS"),
|
|
32795
32829
|
branding: SendBrandingOptionsValidator2.optional().describe("Branding for email/SMS delivery"),
|
|
32796
|
-
guardianEmail: external_exports2.string().email().optional().describe("Guardian email that must approve before student can claim")
|
|
32830
|
+
guardianEmail: external_exports2.string().email().optional().describe("Guardian email that must approve before student can claim"),
|
|
32831
|
+
expiresInDays: external_exports2.number().int().min(1).max(720).optional().describe(
|
|
32832
|
+
"How many days the credential stays claimable in the Universal Inbox (default 30). Does not change the credential validity period."
|
|
32833
|
+
)
|
|
32797
32834
|
});
|
|
32798
32835
|
var SendBoostInputValidator2 = external_exports2.object({
|
|
32799
32836
|
type: external_exports2.literal("boost"),
|
|
@@ -32914,15 +32951,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32914
32951
|
var PaginatedConsentFlowDataValidator2 = PaginationResponseValidator2.extend({
|
|
32915
32952
|
records: ConsentFlowContractDataValidator2.array()
|
|
32916
32953
|
});
|
|
32917
|
-
var ConsentFlowContractDataForDidValidator2 = external_exports2.object({
|
|
32918
|
-
credentials: external_exports2.object({ category: external_exports2.string(), uri: external_exports2.string() }).array(),
|
|
32919
|
-
personal: external_exports2.record(external_exports2.string(), external_exports2.string()).default({}),
|
|
32920
|
-
date: external_exports2.string(),
|
|
32921
|
-
contractUri: external_exports2.string()
|
|
32922
|
-
});
|
|
32923
|
-
var PaginatedConsentFlowDataForDidValidator2 = PaginationResponseValidator2.extend({
|
|
32924
|
-
records: ConsentFlowContractDataForDidValidator2.array()
|
|
32925
|
-
});
|
|
32926
32954
|
var ConsentFlowTermValidator2 = external_exports2.object({
|
|
32927
32955
|
sharing: external_exports2.boolean().optional(),
|
|
32928
32956
|
shared: external_exports2.string().array().optional(),
|
|
@@ -32956,6 +32984,34 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32956
32984
|
status: ConsentFlowTermsStatusValidator2
|
|
32957
32985
|
}).array()
|
|
32958
32986
|
});
|
|
32987
|
+
var ConsentFlowGuardianApprovalValidator2 = external_exports2.object({
|
|
32988
|
+
guardianProfileId: external_exports2.string(),
|
|
32989
|
+
guardianDid: external_exports2.string(),
|
|
32990
|
+
approvedAt: external_exports2.string().datetime(),
|
|
32991
|
+
contractUpdatedAt: external_exports2.string()
|
|
32992
|
+
});
|
|
32993
|
+
var ConsentFlowContractDataForDidValidator2 = external_exports2.object({
|
|
32994
|
+
credentials: external_exports2.object({ category: external_exports2.string(), uri: external_exports2.string() }).array(),
|
|
32995
|
+
personal: external_exports2.record(external_exports2.string(), external_exports2.string()).default({}),
|
|
32996
|
+
date: external_exports2.string(),
|
|
32997
|
+
createdAt: external_exports2.string().optional(),
|
|
32998
|
+
contractUpdatedAt: external_exports2.string(),
|
|
32999
|
+
contractExpiresAt: external_exports2.string().optional(),
|
|
33000
|
+
reasonForAccessing: external_exports2.string().optional(),
|
|
33001
|
+
guardian: external_exports2.object({
|
|
33002
|
+
required: external_exports2.boolean(),
|
|
33003
|
+
approved: external_exports2.boolean(),
|
|
33004
|
+
approval: ConsentFlowGuardianApprovalValidator2.optional()
|
|
33005
|
+
}),
|
|
33006
|
+
contractUri: external_exports2.string(),
|
|
33007
|
+
termsUri: external_exports2.string(),
|
|
33008
|
+
status: ConsentFlowTermsStatusValidator2,
|
|
33009
|
+
expiresAt: external_exports2.string().optional(),
|
|
33010
|
+
terms: ConsentFlowTermsValidator2
|
|
33011
|
+
});
|
|
33012
|
+
var PaginatedConsentFlowDataForDidValidator2 = PaginationResponseValidator2.extend({
|
|
33013
|
+
records: ConsentFlowContractDataForDidValidator2.array()
|
|
33014
|
+
});
|
|
32959
33015
|
var ConsentFlowContractQueryValidator2 = external_exports2.object({
|
|
32960
33016
|
read: external_exports2.object({
|
|
32961
33017
|
anonymize: external_exports2.boolean().optional(),
|
|
@@ -33016,6 +33072,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33016
33072
|
expiresAt: external_exports2.string().optional(),
|
|
33017
33073
|
oneTime: external_exports2.boolean().optional(),
|
|
33018
33074
|
terms: ConsentFlowTermsValidator2.optional(),
|
|
33075
|
+
guardianApproval: ConsentFlowGuardianApprovalValidator2.optional(),
|
|
33019
33076
|
id: external_exports2.string(),
|
|
33020
33077
|
action: ConsentFlowTransactionActionValidator2,
|
|
33021
33078
|
date: external_exports2.string(),
|
|
@@ -33088,7 +33145,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33088
33145
|
"APP_NOTIFICATION",
|
|
33089
33146
|
"CREDENTIAL_REVOKED",
|
|
33090
33147
|
"CREDENTIAL_SUSPENDED",
|
|
33091
|
-
"CREDENTIAL_UNSUSPENDED"
|
|
33148
|
+
"CREDENTIAL_UNSUSPENDED",
|
|
33149
|
+
"CREDENTIAL_REFRESHED"
|
|
33092
33150
|
]);
|
|
33093
33151
|
var LCNNotificationMessageValidator2 = external_exports2.object({
|
|
33094
33152
|
title: external_exports2.string().optional(),
|
|
@@ -33220,12 +33278,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33220
33278
|
});
|
|
33221
33279
|
var InboxCredentialValidator2 = external_exports2.object({
|
|
33222
33280
|
id: external_exports2.string(),
|
|
33223
|
-
credential: external_exports2.string(),
|
|
33281
|
+
credential: external_exports2.string().optional(),
|
|
33224
33282
|
isSigned: external_exports2.boolean(),
|
|
33225
33283
|
currentStatus: LCNInboxStatusEnumValidator2,
|
|
33226
33284
|
isAccepted: external_exports2.boolean().optional(),
|
|
33227
33285
|
expiresAt: external_exports2.string(),
|
|
33228
33286
|
createdAt: external_exports2.string(),
|
|
33287
|
+
finalizedAt: external_exports2.string().optional(),
|
|
33288
|
+
expiredAt: external_exports2.string().optional(),
|
|
33289
|
+
credentialName: external_exports2.string().optional(),
|
|
33290
|
+
achievementType: external_exports2.string().optional(),
|
|
33229
33291
|
issuerDid: external_exports2.string(),
|
|
33230
33292
|
webhookUrl: external_exports2.string().optional(),
|
|
33231
33293
|
boostUri: external_exports2.string().optional(),
|
|
@@ -33279,7 +33341,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33279
33341
|
"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."
|
|
33280
33342
|
),
|
|
33281
33343
|
webhookUrl: external_exports2.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
33282
|
-
expiresInDays: external_exports2.number().min(1).max(
|
|
33344
|
+
expiresInDays: external_exports2.number().int().min(1).max(720).optional().describe(
|
|
33345
|
+
"How many days the encrypted inbox payload remains claimable. This does not change the credential validity period."
|
|
33346
|
+
),
|
|
33283
33347
|
templateData: external_exports2.record(external_exports2.string(), external_exports2.unknown()).optional().describe(
|
|
33284
33348
|
"Template data to render into the boost credential template using Mustache syntax. Only used when boostUri is provided."
|
|
33285
33349
|
),
|
|
@@ -33342,6 +33406,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33342
33406
|
credential: VCValidator2.or(VPValidator2).or(UnsignedVCValidator2).or(CredentialNameRefValidator2).describe("The credential to issue, or a { name } reference to resolve a boost template."),
|
|
33343
33407
|
configuration: external_exports2.object({
|
|
33344
33408
|
publishableKey: external_exports2.string(),
|
|
33409
|
+
expiresInDays: external_exports2.number().int().min(1).max(720).optional().describe(
|
|
33410
|
+
"Inbox claim window in days. Defaults to 720; use a shorter window for sensitive records."
|
|
33411
|
+
),
|
|
33345
33412
|
signingAuthorityName: external_exports2.string().optional(),
|
|
33346
33413
|
listingId: external_exports2.string().optional(),
|
|
33347
33414
|
listingSlug: external_exports2.string().optional()
|
|
@@ -33973,6 +34040,191 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33973
34040
|
const result = inAppMessagesFlagValidator2.safeParse(raw);
|
|
33974
34041
|
return result.success ? result.data : EMPTY_IN_APP_MESSAGES_FLAG;
|
|
33975
34042
|
}, "parseInAppMessagesFlag");
|
|
34043
|
+
var LearnCardRefreshAuthorizationValidator2 = external_exports2.object({ type: external_exports2.literal("LearnCardDIDAuth") }).catchall(external_exports2.any());
|
|
34044
|
+
var ManagedCredentialRefreshServiceValidator2 = external_exports2.object({
|
|
34045
|
+
id: external_exports2.string().min(1),
|
|
34046
|
+
type: external_exports2.literal("LearnCardCredentialRefresh2026"),
|
|
34047
|
+
authorization: LearnCardRefreshAuthorizationValidator2.optional()
|
|
34048
|
+
}).catchall(external_exports2.any());
|
|
34049
|
+
var StandardCredentialRefreshServiceValidator2 = external_exports2.object({
|
|
34050
|
+
id: external_exports2.string().min(1),
|
|
34051
|
+
type: external_exports2.literal("1EdTechCredentialRefresh")
|
|
34052
|
+
}).catchall(external_exports2.any());
|
|
34053
|
+
var SupportedCredentialRefreshServiceValidator2 = external_exports2.union([
|
|
34054
|
+
ManagedCredentialRefreshServiceValidator2,
|
|
34055
|
+
StandardCredentialRefreshServiceValidator2
|
|
34056
|
+
]);
|
|
34057
|
+
var AllocateCredentialRefreshInputValidator2 = external_exports2.object({
|
|
34058
|
+
holder: external_exports2.object({
|
|
34059
|
+
profileId: external_exports2.string().optional(),
|
|
34060
|
+
did: external_exports2.string().min(1)
|
|
34061
|
+
}),
|
|
34062
|
+
credentialId: external_exports2.string().min(1)
|
|
34063
|
+
});
|
|
34064
|
+
var AllocateCredentialRefreshResultValidator2 = external_exports2.object({
|
|
34065
|
+
refreshId: external_exports2.string().min(1),
|
|
34066
|
+
refreshService: ManagedCredentialRefreshServiceValidator2.extend({
|
|
34067
|
+
authorization: LearnCardRefreshAuthorizationValidator2
|
|
34068
|
+
})
|
|
34069
|
+
});
|
|
34070
|
+
var CredentialRefreshSigningModeValidator2 = external_exports2.enum(["issuer-signed", "signing-authority"]);
|
|
34071
|
+
var PublishCredentialRefreshBaseFields2 = {
|
|
34072
|
+
refreshId: external_exports2.string().min(1),
|
|
34073
|
+
notifyHolder: external_exports2.boolean().optional(),
|
|
34074
|
+
updateSummary: external_exports2.string().optional(),
|
|
34075
|
+
idempotencyKey: external_exports2.string().optional()
|
|
34076
|
+
};
|
|
34077
|
+
var PublishIssuerSignedRefreshValidator2 = external_exports2.object({
|
|
34078
|
+
...PublishCredentialRefreshBaseFields2,
|
|
34079
|
+
mode: external_exports2.literal("issuer-signed"),
|
|
34080
|
+
signedCredential: VCValidator2
|
|
34081
|
+
});
|
|
34082
|
+
var PublishSigningAuthorityRefreshValidator2 = external_exports2.object({
|
|
34083
|
+
...PublishCredentialRefreshBaseFields2,
|
|
34084
|
+
mode: external_exports2.literal("signing-authority"),
|
|
34085
|
+
credential: UnsignedVCValidator2,
|
|
34086
|
+
signingAuthority: external_exports2.object({
|
|
34087
|
+
type: external_exports2.string().min(1)
|
|
34088
|
+
}).catchall(external_exports2.any())
|
|
34089
|
+
});
|
|
34090
|
+
var PublishCredentialRefreshInputValidator2 = external_exports2.object({
|
|
34091
|
+
...PublishCredentialRefreshBaseFields2,
|
|
34092
|
+
mode: CredentialRefreshSigningModeValidator2,
|
|
34093
|
+
signedCredential: VCValidator2.optional(),
|
|
34094
|
+
credential: UnsignedVCValidator2.optional(),
|
|
34095
|
+
signingAuthority: external_exports2.object({
|
|
34096
|
+
type: external_exports2.string().min(1)
|
|
34097
|
+
}).catchall(external_exports2.any()).optional()
|
|
34098
|
+
}).superRefine((input, ctx) => {
|
|
34099
|
+
if (input.mode === "issuer-signed" && !input.signedCredential) {
|
|
34100
|
+
ctx.addIssue({
|
|
34101
|
+
code: "custom",
|
|
34102
|
+
path: ["signedCredential"],
|
|
34103
|
+
message: "signedCredential is required for issuer-signed publication"
|
|
34104
|
+
});
|
|
34105
|
+
}
|
|
34106
|
+
if (input.mode === "issuer-signed" && (input.credential !== void 0 || input.signingAuthority !== void 0)) {
|
|
34107
|
+
ctx.addIssue({
|
|
34108
|
+
code: "custom",
|
|
34109
|
+
path: ["mode"],
|
|
34110
|
+
message: "issuer-signed publication cannot include signing-authority fields"
|
|
34111
|
+
});
|
|
34112
|
+
}
|
|
34113
|
+
if (input.mode === "signing-authority") {
|
|
34114
|
+
if (input.signedCredential !== void 0) {
|
|
34115
|
+
ctx.addIssue({
|
|
34116
|
+
code: "custom",
|
|
34117
|
+
path: ["signedCredential"],
|
|
34118
|
+
message: "signing-authority publication cannot include signedCredential"
|
|
34119
|
+
});
|
|
34120
|
+
}
|
|
34121
|
+
if (!input.credential) {
|
|
34122
|
+
ctx.addIssue({
|
|
34123
|
+
code: "custom",
|
|
34124
|
+
path: ["credential"],
|
|
34125
|
+
message: "credential is required for signing-authority publication"
|
|
34126
|
+
});
|
|
34127
|
+
}
|
|
34128
|
+
if (!input.signingAuthority) {
|
|
34129
|
+
ctx.addIssue({
|
|
34130
|
+
code: "custom",
|
|
34131
|
+
path: ["signingAuthority"],
|
|
34132
|
+
message: "signingAuthority is required for signing-authority publication"
|
|
34133
|
+
});
|
|
34134
|
+
}
|
|
34135
|
+
}
|
|
34136
|
+
});
|
|
34137
|
+
var PublishCredentialRefreshNotificationValidator2 = external_exports2.enum([
|
|
34138
|
+
"queued",
|
|
34139
|
+
"suppressed",
|
|
34140
|
+
"not-applicable",
|
|
34141
|
+
/** Publication succeeded, but the post-commit notification enqueue must be retried. */
|
|
34142
|
+
"delivery-failed"
|
|
34143
|
+
]);
|
|
34144
|
+
var PublishCredentialRefreshResultValidator2 = external_exports2.object({
|
|
34145
|
+
refreshId: external_exports2.string().min(1),
|
|
34146
|
+
version: external_exports2.number().int().positive(),
|
|
34147
|
+
publishedAt: external_exports2.string().min(1),
|
|
34148
|
+
notification: PublishCredentialRefreshNotificationValidator2
|
|
34149
|
+
});
|
|
34150
|
+
var CredentialRefreshVersionMetadataValidator2 = external_exports2.object({
|
|
34151
|
+
version: external_exports2.number().int().positive(),
|
|
34152
|
+
publishedAt: external_exports2.string().min(1),
|
|
34153
|
+
effectiveAt: external_exports2.string().optional(),
|
|
34154
|
+
etag: external_exports2.string().optional(),
|
|
34155
|
+
signingMode: CredentialRefreshSigningModeValidator2.optional(),
|
|
34156
|
+
updateSummary: external_exports2.string().optional()
|
|
34157
|
+
});
|
|
34158
|
+
var GetCredentialRefreshHistoryInputValidator2 = external_exports2.object({
|
|
34159
|
+
refreshId: external_exports2.string().min(1),
|
|
34160
|
+
cursor: external_exports2.string().optional(),
|
|
34161
|
+
limit: external_exports2.number().int().positive().optional()
|
|
34162
|
+
});
|
|
34163
|
+
var GetCredentialRefreshHistoryResultValidator2 = external_exports2.object({
|
|
34164
|
+
records: CredentialRefreshVersionMetadataValidator2.array(),
|
|
34165
|
+
hasMore: external_exports2.boolean(),
|
|
34166
|
+
cursor: external_exports2.string().optional()
|
|
34167
|
+
});
|
|
34168
|
+
var CredentialRefreshChallengeValidator2 = external_exports2.object({
|
|
34169
|
+
challenge: external_exports2.string().min(1),
|
|
34170
|
+
expiresAt: external_exports2.string().min(1),
|
|
34171
|
+
domain: external_exports2.string().optional(),
|
|
34172
|
+
scheme: external_exports2.literal("LearnCardDIDAuth").optional()
|
|
34173
|
+
});
|
|
34174
|
+
var PublicCredentialRefreshEnvelopeValidator2 = external_exports2.object({
|
|
34175
|
+
format: external_exports2.literal("vc"),
|
|
34176
|
+
credential: VCValidator2,
|
|
34177
|
+
etag: external_exports2.string().optional()
|
|
34178
|
+
});
|
|
34179
|
+
var JweCredentialRefreshEnvelopeValidator2 = external_exports2.object({
|
|
34180
|
+
format: external_exports2.literal("jwe"),
|
|
34181
|
+
jwe: JWEValidator2,
|
|
34182
|
+
etag: external_exports2.string().optional(),
|
|
34183
|
+
/** Present on LearnCard-managed endpoints; optional for interoperable JWE services. */
|
|
34184
|
+
version: external_exports2.number().int().positive().optional()
|
|
34185
|
+
});
|
|
34186
|
+
var CredentialRefreshResponseEnvelopeValidator2 = external_exports2.discriminatedUnion("format", [
|
|
34187
|
+
PublicCredentialRefreshEnvelopeValidator2,
|
|
34188
|
+
JweCredentialRefreshEnvelopeValidator2
|
|
34189
|
+
]);
|
|
34190
|
+
var CredentialRefreshFailureCodeValidator2 = external_exports2.enum([
|
|
34191
|
+
"UNAVAILABLE",
|
|
34192
|
+
"TIMEOUT",
|
|
34193
|
+
"UNSUPPORTED_SERVICE",
|
|
34194
|
+
"UNAUTHORIZED",
|
|
34195
|
+
"MALFORMED_RESPONSE",
|
|
34196
|
+
"INVALID_PROOF",
|
|
34197
|
+
"ISSUER_MISMATCH",
|
|
34198
|
+
"ID_MISMATCH",
|
|
34199
|
+
"ROLLBACK",
|
|
34200
|
+
"REVOKED",
|
|
34201
|
+
"UNSAFE_ENDPOINT"
|
|
34202
|
+
]);
|
|
34203
|
+
var CredentialRefreshUpdatedResultValidator2 = external_exports2.object({
|
|
34204
|
+
status: external_exports2.literal("updated"),
|
|
34205
|
+
credential: VCValidator2,
|
|
34206
|
+
etag: external_exports2.string().optional(),
|
|
34207
|
+
managedVersion: external_exports2.number().int().positive().optional()
|
|
34208
|
+
});
|
|
34209
|
+
var CredentialRefreshUnchangedResultValidator2 = external_exports2.object({
|
|
34210
|
+
status: external_exports2.literal("unchanged"),
|
|
34211
|
+
checkedAt: external_exports2.string().min(1),
|
|
34212
|
+
etag: external_exports2.string().optional()
|
|
34213
|
+
});
|
|
34214
|
+
var CredentialRefreshUnsupportedResultValidator2 = external_exports2.object({
|
|
34215
|
+
status: external_exports2.literal("unsupported")
|
|
34216
|
+
});
|
|
34217
|
+
var CredentialRefreshFailedResultValidator2 = external_exports2.object({
|
|
34218
|
+
status: external_exports2.literal("failed"),
|
|
34219
|
+
code: CredentialRefreshFailureCodeValidator2,
|
|
34220
|
+
retryable: external_exports2.boolean()
|
|
34221
|
+
});
|
|
34222
|
+
var CredentialRefreshResultValidator2 = external_exports2.discriminatedUnion("status", [
|
|
34223
|
+
CredentialRefreshUpdatedResultValidator2,
|
|
34224
|
+
CredentialRefreshUnchangedResultValidator2,
|
|
34225
|
+
CredentialRefreshUnsupportedResultValidator2,
|
|
34226
|
+
CredentialRefreshFailedResultValidator2
|
|
34227
|
+
]);
|
|
33976
34228
|
}
|
|
33977
34229
|
});
|
|
33978
34230
|
var require_dist = __commonJS({
|
|
@@ -33985,7 +34237,7 @@ var require_dist = __commonJS({
|
|
|
33985
34237
|
}
|
|
33986
34238
|
}
|
|
33987
34239
|
});
|
|
33988
|
-
var
|
|
34240
|
+
var import_types3 = __toESM(require_dist());
|
|
33989
34241
|
var filestack_helpers_exports = {};
|
|
33990
34242
|
__export2(filestack_helpers_exports, {
|
|
33991
34243
|
changeQuality: /* @__PURE__ */ __name(() => changeQuality, "changeQuality"),
|
|
@@ -34266,7 +34518,8 @@ var ImageWithLoadingStateValdator = external_exports.object({
|
|
|
34266
34518
|
image: external_exports.string(),
|
|
34267
34519
|
loading: external_exports.union([ImageResizingValidator, ImageUploadingValidator]).optional()
|
|
34268
34520
|
});
|
|
34269
|
-
var
|
|
34521
|
+
var import_types2 = __toESM(require_dist());
|
|
34522
|
+
var import_types22 = __toESM(require_dist());
|
|
34270
34523
|
var _a4;
|
|
34271
34524
|
var EnvironmentConfigurationError = (_a4 = class extends Error {
|
|
34272
34525
|
constructor(message) {
|
|
@@ -34439,14 +34692,22 @@ var UnsignedVCValidator = external_exports.object({
|
|
|
34439
34692
|
}).catchall(external_exports.any());
|
|
34440
34693
|
var ProofValidator = external_exports.object({
|
|
34441
34694
|
type: external_exports.string(),
|
|
34442
|
-
created: external_exports.string(),
|
|
34695
|
+
created: external_exports.string().optional(),
|
|
34443
34696
|
challenge: external_exports.string().optional(),
|
|
34444
34697
|
domain: external_exports.string().optional(),
|
|
34445
34698
|
nonce: external_exports.string().optional(),
|
|
34446
34699
|
proofPurpose: external_exports.string(),
|
|
34447
34700
|
verificationMethod: external_exports.string(),
|
|
34448
34701
|
jws: external_exports.string().optional()
|
|
34449
|
-
}).catchall(external_exports.any())
|
|
34702
|
+
}).catchall(external_exports.any()).superRefine((proof, ctx) => {
|
|
34703
|
+
if (proof.created === void 0 && (proof.type !== "DataIntegrityProof" || proof.cryptosuite !== "ecdsa-rdfc-2019")) {
|
|
34704
|
+
ctx.addIssue({
|
|
34705
|
+
code: "custom",
|
|
34706
|
+
path: ["created"],
|
|
34707
|
+
message: "created is required for this proof suite"
|
|
34708
|
+
});
|
|
34709
|
+
}
|
|
34710
|
+
});
|
|
34450
34711
|
var VCValidator = UnsignedVCValidator.extend({
|
|
34451
34712
|
proof: ProofValidator.or(ProofValidator.array())
|
|
34452
34713
|
});
|
|
@@ -35200,7 +35461,10 @@ var SendOptionsValidator = external_exports.object({
|
|
|
35200
35461
|
webhookUrl: external_exports.string().url().optional().describe("Webhook URL to receive claim notifications"),
|
|
35201
35462
|
suppressDelivery: external_exports.boolean().optional().describe("If true, returns claimUrl without sending email/SMS"),
|
|
35202
35463
|
branding: SendBrandingOptionsValidator.optional().describe("Branding for email/SMS delivery"),
|
|
35203
|
-
guardianEmail: external_exports.string().email().optional().describe("Guardian email that must approve before student can claim")
|
|
35464
|
+
guardianEmail: external_exports.string().email().optional().describe("Guardian email that must approve before student can claim"),
|
|
35465
|
+
expiresInDays: external_exports.number().int().min(1).max(720).optional().describe(
|
|
35466
|
+
"How many days the credential stays claimable in the Universal Inbox (default 30). Does not change the credential validity period."
|
|
35467
|
+
)
|
|
35204
35468
|
});
|
|
35205
35469
|
var SendBoostInputValidator = external_exports.object({
|
|
35206
35470
|
type: external_exports.literal("boost"),
|
|
@@ -35321,15 +35585,6 @@ var ConsentFlowContractDataValidator = external_exports.object({
|
|
|
35321
35585
|
var PaginatedConsentFlowDataValidator = PaginationResponseValidator.extend({
|
|
35322
35586
|
records: ConsentFlowContractDataValidator.array()
|
|
35323
35587
|
});
|
|
35324
|
-
var ConsentFlowContractDataForDidValidator = external_exports.object({
|
|
35325
|
-
credentials: external_exports.object({ category: external_exports.string(), uri: external_exports.string() }).array(),
|
|
35326
|
-
personal: external_exports.record(external_exports.string(), external_exports.string()).default({}),
|
|
35327
|
-
date: external_exports.string(),
|
|
35328
|
-
contractUri: external_exports.string()
|
|
35329
|
-
});
|
|
35330
|
-
var PaginatedConsentFlowDataForDidValidator = PaginationResponseValidator.extend({
|
|
35331
|
-
records: ConsentFlowContractDataForDidValidator.array()
|
|
35332
|
-
});
|
|
35333
35588
|
var ConsentFlowTermValidator = external_exports.object({
|
|
35334
35589
|
sharing: external_exports.boolean().optional(),
|
|
35335
35590
|
shared: external_exports.string().array().optional(),
|
|
@@ -35363,6 +35618,34 @@ var PaginatedConsentFlowTermsValidator = PaginationResponseValidator.extend({
|
|
|
35363
35618
|
status: ConsentFlowTermsStatusValidator
|
|
35364
35619
|
}).array()
|
|
35365
35620
|
});
|
|
35621
|
+
var ConsentFlowGuardianApprovalValidator = external_exports.object({
|
|
35622
|
+
guardianProfileId: external_exports.string(),
|
|
35623
|
+
guardianDid: external_exports.string(),
|
|
35624
|
+
approvedAt: external_exports.string().datetime(),
|
|
35625
|
+
contractUpdatedAt: external_exports.string()
|
|
35626
|
+
});
|
|
35627
|
+
var ConsentFlowContractDataForDidValidator = external_exports.object({
|
|
35628
|
+
credentials: external_exports.object({ category: external_exports.string(), uri: external_exports.string() }).array(),
|
|
35629
|
+
personal: external_exports.record(external_exports.string(), external_exports.string()).default({}),
|
|
35630
|
+
date: external_exports.string(),
|
|
35631
|
+
createdAt: external_exports.string().optional(),
|
|
35632
|
+
contractUpdatedAt: external_exports.string(),
|
|
35633
|
+
contractExpiresAt: external_exports.string().optional(),
|
|
35634
|
+
reasonForAccessing: external_exports.string().optional(),
|
|
35635
|
+
guardian: external_exports.object({
|
|
35636
|
+
required: external_exports.boolean(),
|
|
35637
|
+
approved: external_exports.boolean(),
|
|
35638
|
+
approval: ConsentFlowGuardianApprovalValidator.optional()
|
|
35639
|
+
}),
|
|
35640
|
+
contractUri: external_exports.string(),
|
|
35641
|
+
termsUri: external_exports.string(),
|
|
35642
|
+
status: ConsentFlowTermsStatusValidator,
|
|
35643
|
+
expiresAt: external_exports.string().optional(),
|
|
35644
|
+
terms: ConsentFlowTermsValidator
|
|
35645
|
+
});
|
|
35646
|
+
var PaginatedConsentFlowDataForDidValidator = PaginationResponseValidator.extend({
|
|
35647
|
+
records: ConsentFlowContractDataForDidValidator.array()
|
|
35648
|
+
});
|
|
35366
35649
|
var ConsentFlowContractQueryValidator = external_exports.object({
|
|
35367
35650
|
read: external_exports.object({
|
|
35368
35651
|
anonymize: external_exports.boolean().optional(),
|
|
@@ -35423,6 +35706,7 @@ var ConsentFlowTransactionValidator = external_exports.object({
|
|
|
35423
35706
|
expiresAt: external_exports.string().optional(),
|
|
35424
35707
|
oneTime: external_exports.boolean().optional(),
|
|
35425
35708
|
terms: ConsentFlowTermsValidator.optional(),
|
|
35709
|
+
guardianApproval: ConsentFlowGuardianApprovalValidator.optional(),
|
|
35426
35710
|
id: external_exports.string(),
|
|
35427
35711
|
action: ConsentFlowTransactionActionValidator,
|
|
35428
35712
|
date: external_exports.string(),
|
|
@@ -35495,7 +35779,8 @@ var LCNNotificationTypeEnumValidator = external_exports.enum([
|
|
|
35495
35779
|
"APP_NOTIFICATION",
|
|
35496
35780
|
"CREDENTIAL_REVOKED",
|
|
35497
35781
|
"CREDENTIAL_SUSPENDED",
|
|
35498
|
-
"CREDENTIAL_UNSUSPENDED"
|
|
35782
|
+
"CREDENTIAL_UNSUSPENDED",
|
|
35783
|
+
"CREDENTIAL_REFRESHED"
|
|
35499
35784
|
]);
|
|
35500
35785
|
var LCNNotificationMessageValidator = external_exports.object({
|
|
35501
35786
|
title: external_exports.string().optional(),
|
|
@@ -35627,12 +35912,16 @@ var CreateContactMethodSessionResponseValidator = external_exports.object({
|
|
|
35627
35912
|
});
|
|
35628
35913
|
var InboxCredentialValidator = external_exports.object({
|
|
35629
35914
|
id: external_exports.string(),
|
|
35630
|
-
credential: external_exports.string(),
|
|
35915
|
+
credential: external_exports.string().optional(),
|
|
35631
35916
|
isSigned: external_exports.boolean(),
|
|
35632
35917
|
currentStatus: LCNInboxStatusEnumValidator,
|
|
35633
35918
|
isAccepted: external_exports.boolean().optional(),
|
|
35634
35919
|
expiresAt: external_exports.string(),
|
|
35635
35920
|
createdAt: external_exports.string(),
|
|
35921
|
+
finalizedAt: external_exports.string().optional(),
|
|
35922
|
+
expiredAt: external_exports.string().optional(),
|
|
35923
|
+
credentialName: external_exports.string().optional(),
|
|
35924
|
+
achievementType: external_exports.string().optional(),
|
|
35636
35925
|
issuerDid: external_exports.string(),
|
|
35637
35926
|
webhookUrl: external_exports.string().optional(),
|
|
35638
35927
|
boostUri: external_exports.string().optional(),
|
|
@@ -35686,7 +35975,9 @@ var IssueInboxCredentialValidator = external_exports.object({
|
|
|
35686
35975
|
"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."
|
|
35687
35976
|
),
|
|
35688
35977
|
webhookUrl: external_exports.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
35689
|
-
expiresInDays: external_exports.number().min(1).max(
|
|
35978
|
+
expiresInDays: external_exports.number().int().min(1).max(720).optional().describe(
|
|
35979
|
+
"How many days the encrypted inbox payload remains claimable. This does not change the credential validity period."
|
|
35980
|
+
),
|
|
35690
35981
|
templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional().describe(
|
|
35691
35982
|
"Template data to render into the boost credential template using Mustache syntax. Only used when boostUri is provided."
|
|
35692
35983
|
),
|
|
@@ -35749,6 +36040,9 @@ var ClaimInboxCredentialValidator = external_exports.object({
|
|
|
35749
36040
|
credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).or(CredentialNameRefValidator).describe("The credential to issue, or a { name } reference to resolve a boost template."),
|
|
35750
36041
|
configuration: external_exports.object({
|
|
35751
36042
|
publishableKey: external_exports.string(),
|
|
36043
|
+
expiresInDays: external_exports.number().int().min(1).max(720).optional().describe(
|
|
36044
|
+
"Inbox claim window in days. Defaults to 720; use a shorter window for sensitive records."
|
|
36045
|
+
),
|
|
35752
36046
|
signingAuthorityName: external_exports.string().optional(),
|
|
35753
36047
|
listingId: external_exports.string().optional(),
|
|
35754
36048
|
listingSlug: external_exports.string().optional()
|
|
@@ -36375,6 +36669,191 @@ var inAppMessagesFlagValidator = external_exports.object({
|
|
|
36375
36669
|
version: external_exports.number().default(1),
|
|
36376
36670
|
messages: external_exports.array(inAppMessageValidator).default([])
|
|
36377
36671
|
}).passthrough();
|
|
36672
|
+
var LearnCardRefreshAuthorizationValidator = external_exports.object({ type: external_exports.literal("LearnCardDIDAuth") }).catchall(external_exports.any());
|
|
36673
|
+
var ManagedCredentialRefreshServiceValidator = external_exports.object({
|
|
36674
|
+
id: external_exports.string().min(1),
|
|
36675
|
+
type: external_exports.literal("LearnCardCredentialRefresh2026"),
|
|
36676
|
+
authorization: LearnCardRefreshAuthorizationValidator.optional()
|
|
36677
|
+
}).catchall(external_exports.any());
|
|
36678
|
+
var StandardCredentialRefreshServiceValidator = external_exports.object({
|
|
36679
|
+
id: external_exports.string().min(1),
|
|
36680
|
+
type: external_exports.literal("1EdTechCredentialRefresh")
|
|
36681
|
+
}).catchall(external_exports.any());
|
|
36682
|
+
var SupportedCredentialRefreshServiceValidator = external_exports.union([
|
|
36683
|
+
ManagedCredentialRefreshServiceValidator,
|
|
36684
|
+
StandardCredentialRefreshServiceValidator
|
|
36685
|
+
]);
|
|
36686
|
+
var AllocateCredentialRefreshInputValidator = external_exports.object({
|
|
36687
|
+
holder: external_exports.object({
|
|
36688
|
+
profileId: external_exports.string().optional(),
|
|
36689
|
+
did: external_exports.string().min(1)
|
|
36690
|
+
}),
|
|
36691
|
+
credentialId: external_exports.string().min(1)
|
|
36692
|
+
});
|
|
36693
|
+
var AllocateCredentialRefreshResultValidator = external_exports.object({
|
|
36694
|
+
refreshId: external_exports.string().min(1),
|
|
36695
|
+
refreshService: ManagedCredentialRefreshServiceValidator.extend({
|
|
36696
|
+
authorization: LearnCardRefreshAuthorizationValidator
|
|
36697
|
+
})
|
|
36698
|
+
});
|
|
36699
|
+
var CredentialRefreshSigningModeValidator = external_exports.enum(["issuer-signed", "signing-authority"]);
|
|
36700
|
+
var PublishCredentialRefreshBaseFields = {
|
|
36701
|
+
refreshId: external_exports.string().min(1),
|
|
36702
|
+
notifyHolder: external_exports.boolean().optional(),
|
|
36703
|
+
updateSummary: external_exports.string().optional(),
|
|
36704
|
+
idempotencyKey: external_exports.string().optional()
|
|
36705
|
+
};
|
|
36706
|
+
var PublishIssuerSignedRefreshValidator = external_exports.object({
|
|
36707
|
+
...PublishCredentialRefreshBaseFields,
|
|
36708
|
+
mode: external_exports.literal("issuer-signed"),
|
|
36709
|
+
signedCredential: VCValidator
|
|
36710
|
+
});
|
|
36711
|
+
var PublishSigningAuthorityRefreshValidator = external_exports.object({
|
|
36712
|
+
...PublishCredentialRefreshBaseFields,
|
|
36713
|
+
mode: external_exports.literal("signing-authority"),
|
|
36714
|
+
credential: UnsignedVCValidator,
|
|
36715
|
+
signingAuthority: external_exports.object({
|
|
36716
|
+
type: external_exports.string().min(1)
|
|
36717
|
+
}).catchall(external_exports.any())
|
|
36718
|
+
});
|
|
36719
|
+
var PublishCredentialRefreshInputValidator = external_exports.object({
|
|
36720
|
+
...PublishCredentialRefreshBaseFields,
|
|
36721
|
+
mode: CredentialRefreshSigningModeValidator,
|
|
36722
|
+
signedCredential: VCValidator.optional(),
|
|
36723
|
+
credential: UnsignedVCValidator.optional(),
|
|
36724
|
+
signingAuthority: external_exports.object({
|
|
36725
|
+
type: external_exports.string().min(1)
|
|
36726
|
+
}).catchall(external_exports.any()).optional()
|
|
36727
|
+
}).superRefine((input, ctx) => {
|
|
36728
|
+
if (input.mode === "issuer-signed" && !input.signedCredential) {
|
|
36729
|
+
ctx.addIssue({
|
|
36730
|
+
code: "custom",
|
|
36731
|
+
path: ["signedCredential"],
|
|
36732
|
+
message: "signedCredential is required for issuer-signed publication"
|
|
36733
|
+
});
|
|
36734
|
+
}
|
|
36735
|
+
if (input.mode === "issuer-signed" && (input.credential !== void 0 || input.signingAuthority !== void 0)) {
|
|
36736
|
+
ctx.addIssue({
|
|
36737
|
+
code: "custom",
|
|
36738
|
+
path: ["mode"],
|
|
36739
|
+
message: "issuer-signed publication cannot include signing-authority fields"
|
|
36740
|
+
});
|
|
36741
|
+
}
|
|
36742
|
+
if (input.mode === "signing-authority") {
|
|
36743
|
+
if (input.signedCredential !== void 0) {
|
|
36744
|
+
ctx.addIssue({
|
|
36745
|
+
code: "custom",
|
|
36746
|
+
path: ["signedCredential"],
|
|
36747
|
+
message: "signing-authority publication cannot include signedCredential"
|
|
36748
|
+
});
|
|
36749
|
+
}
|
|
36750
|
+
if (!input.credential) {
|
|
36751
|
+
ctx.addIssue({
|
|
36752
|
+
code: "custom",
|
|
36753
|
+
path: ["credential"],
|
|
36754
|
+
message: "credential is required for signing-authority publication"
|
|
36755
|
+
});
|
|
36756
|
+
}
|
|
36757
|
+
if (!input.signingAuthority) {
|
|
36758
|
+
ctx.addIssue({
|
|
36759
|
+
code: "custom",
|
|
36760
|
+
path: ["signingAuthority"],
|
|
36761
|
+
message: "signingAuthority is required for signing-authority publication"
|
|
36762
|
+
});
|
|
36763
|
+
}
|
|
36764
|
+
}
|
|
36765
|
+
});
|
|
36766
|
+
var PublishCredentialRefreshNotificationValidator = external_exports.enum([
|
|
36767
|
+
"queued",
|
|
36768
|
+
"suppressed",
|
|
36769
|
+
"not-applicable",
|
|
36770
|
+
/** Publication succeeded, but the post-commit notification enqueue must be retried. */
|
|
36771
|
+
"delivery-failed"
|
|
36772
|
+
]);
|
|
36773
|
+
var PublishCredentialRefreshResultValidator = external_exports.object({
|
|
36774
|
+
refreshId: external_exports.string().min(1),
|
|
36775
|
+
version: external_exports.number().int().positive(),
|
|
36776
|
+
publishedAt: external_exports.string().min(1),
|
|
36777
|
+
notification: PublishCredentialRefreshNotificationValidator
|
|
36778
|
+
});
|
|
36779
|
+
var CredentialRefreshVersionMetadataValidator = external_exports.object({
|
|
36780
|
+
version: external_exports.number().int().positive(),
|
|
36781
|
+
publishedAt: external_exports.string().min(1),
|
|
36782
|
+
effectiveAt: external_exports.string().optional(),
|
|
36783
|
+
etag: external_exports.string().optional(),
|
|
36784
|
+
signingMode: CredentialRefreshSigningModeValidator.optional(),
|
|
36785
|
+
updateSummary: external_exports.string().optional()
|
|
36786
|
+
});
|
|
36787
|
+
var GetCredentialRefreshHistoryInputValidator = external_exports.object({
|
|
36788
|
+
refreshId: external_exports.string().min(1),
|
|
36789
|
+
cursor: external_exports.string().optional(),
|
|
36790
|
+
limit: external_exports.number().int().positive().optional()
|
|
36791
|
+
});
|
|
36792
|
+
var GetCredentialRefreshHistoryResultValidator = external_exports.object({
|
|
36793
|
+
records: CredentialRefreshVersionMetadataValidator.array(),
|
|
36794
|
+
hasMore: external_exports.boolean(),
|
|
36795
|
+
cursor: external_exports.string().optional()
|
|
36796
|
+
});
|
|
36797
|
+
var CredentialRefreshChallengeValidator = external_exports.object({
|
|
36798
|
+
challenge: external_exports.string().min(1),
|
|
36799
|
+
expiresAt: external_exports.string().min(1),
|
|
36800
|
+
domain: external_exports.string().optional(),
|
|
36801
|
+
scheme: external_exports.literal("LearnCardDIDAuth").optional()
|
|
36802
|
+
});
|
|
36803
|
+
var PublicCredentialRefreshEnvelopeValidator = external_exports.object({
|
|
36804
|
+
format: external_exports.literal("vc"),
|
|
36805
|
+
credential: VCValidator,
|
|
36806
|
+
etag: external_exports.string().optional()
|
|
36807
|
+
});
|
|
36808
|
+
var JweCredentialRefreshEnvelopeValidator = external_exports.object({
|
|
36809
|
+
format: external_exports.literal("jwe"),
|
|
36810
|
+
jwe: JWEValidator,
|
|
36811
|
+
etag: external_exports.string().optional(),
|
|
36812
|
+
/** Present on LearnCard-managed endpoints; optional for interoperable JWE services. */
|
|
36813
|
+
version: external_exports.number().int().positive().optional()
|
|
36814
|
+
});
|
|
36815
|
+
var CredentialRefreshResponseEnvelopeValidator = external_exports.discriminatedUnion("format", [
|
|
36816
|
+
PublicCredentialRefreshEnvelopeValidator,
|
|
36817
|
+
JweCredentialRefreshEnvelopeValidator
|
|
36818
|
+
]);
|
|
36819
|
+
var CredentialRefreshFailureCodeValidator = external_exports.enum([
|
|
36820
|
+
"UNAVAILABLE",
|
|
36821
|
+
"TIMEOUT",
|
|
36822
|
+
"UNSUPPORTED_SERVICE",
|
|
36823
|
+
"UNAUTHORIZED",
|
|
36824
|
+
"MALFORMED_RESPONSE",
|
|
36825
|
+
"INVALID_PROOF",
|
|
36826
|
+
"ISSUER_MISMATCH",
|
|
36827
|
+
"ID_MISMATCH",
|
|
36828
|
+
"ROLLBACK",
|
|
36829
|
+
"REVOKED",
|
|
36830
|
+
"UNSAFE_ENDPOINT"
|
|
36831
|
+
]);
|
|
36832
|
+
var CredentialRefreshUpdatedResultValidator = external_exports.object({
|
|
36833
|
+
status: external_exports.literal("updated"),
|
|
36834
|
+
credential: VCValidator,
|
|
36835
|
+
etag: external_exports.string().optional(),
|
|
36836
|
+
managedVersion: external_exports.number().int().positive().optional()
|
|
36837
|
+
});
|
|
36838
|
+
var CredentialRefreshUnchangedResultValidator = external_exports.object({
|
|
36839
|
+
status: external_exports.literal("unchanged"),
|
|
36840
|
+
checkedAt: external_exports.string().min(1),
|
|
36841
|
+
etag: external_exports.string().optional()
|
|
36842
|
+
});
|
|
36843
|
+
var CredentialRefreshUnsupportedResultValidator = external_exports.object({
|
|
36844
|
+
status: external_exports.literal("unsupported")
|
|
36845
|
+
});
|
|
36846
|
+
var CredentialRefreshFailedResultValidator = external_exports.object({
|
|
36847
|
+
status: external_exports.literal("failed"),
|
|
36848
|
+
code: CredentialRefreshFailureCodeValidator,
|
|
36849
|
+
retryable: external_exports.boolean()
|
|
36850
|
+
});
|
|
36851
|
+
var CredentialRefreshResultValidator = external_exports.discriminatedUnion("status", [
|
|
36852
|
+
CredentialRefreshUpdatedResultValidator,
|
|
36853
|
+
CredentialRefreshUnchangedResultValidator,
|
|
36854
|
+
CredentialRefreshUnsupportedResultValidator,
|
|
36855
|
+
CredentialRefreshFailedResultValidator
|
|
36856
|
+
]);
|
|
36378
36857
|
|
|
36379
36858
|
// src/read.ts
|
|
36380
36859
|
var isTemplateRenderMethod = /* @__PURE__ */ __name((rm) => TemplateRenderMethodValidator.safeParse(rm).success, "isTemplateRenderMethod");
|