@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
|
@@ -15993,6 +15993,8 @@ var require_types_cjs_development = __commonJS({
|
|
|
15993
15993
|
AgeRatingValidator: /* @__PURE__ */ __name2(() => AgeRatingValidator2, "AgeRatingValidator"),
|
|
15994
15994
|
AlignmentTargetTypeValidator: /* @__PURE__ */ __name2(() => AlignmentTargetTypeValidator2, "AlignmentTargetTypeValidator"),
|
|
15995
15995
|
AlignmentValidator: /* @__PURE__ */ __name2(() => AlignmentValidator2, "AlignmentValidator"),
|
|
15996
|
+
AllocateCredentialRefreshInputValidator: /* @__PURE__ */ __name2(() => AllocateCredentialRefreshInputValidator2, "AllocateCredentialRefreshInputValidator"),
|
|
15997
|
+
AllocateCredentialRefreshResultValidator: /* @__PURE__ */ __name2(() => AllocateCredentialRefreshResultValidator2, "AllocateCredentialRefreshResultValidator"),
|
|
15996
15998
|
AllocateCredentialStatusInputValidator: /* @__PURE__ */ __name2(() => AllocateCredentialStatusInputValidator2, "AllocateCredentialStatusInputValidator"),
|
|
15997
15999
|
AllocatedBitstringStatusListEntryValidator: /* @__PURE__ */ __name2(() => AllocatedBitstringStatusListEntryValidator2, "AllocatedBitstringStatusListEntryValidator"),
|
|
15998
16000
|
AllowConnectionRequestsEnum: /* @__PURE__ */ __name2(() => AllowConnectionRequestsEnum2, "AllowConnectionRequestsEnum"),
|
|
@@ -16042,6 +16044,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
16042
16044
|
ConsentFlowContractValidator: /* @__PURE__ */ __name2(() => ConsentFlowContractValidator2, "ConsentFlowContractValidator"),
|
|
16043
16045
|
ConsentFlowDataForDidQueryValidator: /* @__PURE__ */ __name2(() => ConsentFlowDataForDidQueryValidator2, "ConsentFlowDataForDidQueryValidator"),
|
|
16044
16046
|
ConsentFlowDataQueryValidator: /* @__PURE__ */ __name2(() => ConsentFlowDataQueryValidator2, "ConsentFlowDataQueryValidator"),
|
|
16047
|
+
ConsentFlowGuardianApprovalValidator: /* @__PURE__ */ __name2(() => ConsentFlowGuardianApprovalValidator2, "ConsentFlowGuardianApprovalValidator"),
|
|
16045
16048
|
ConsentFlowTermValidator: /* @__PURE__ */ __name2(() => ConsentFlowTermValidator2, "ConsentFlowTermValidator"),
|
|
16046
16049
|
ConsentFlowTermsQueryValidator: /* @__PURE__ */ __name2(() => ConsentFlowTermsQueryValidator2, "ConsentFlowTermsQueryValidator"),
|
|
16047
16050
|
ConsentFlowTermsStatusValidator: /* @__PURE__ */ __name2(() => ConsentFlowTermsStatusValidator2, "ConsentFlowTermsStatusValidator"),
|
|
@@ -16074,6 +16077,16 @@ var require_types_cjs_development = __commonJS({
|
|
|
16074
16077
|
CredentialInfoValidator: /* @__PURE__ */ __name2(() => CredentialInfoValidator2, "CredentialInfoValidator"),
|
|
16075
16078
|
CredentialNameRefValidator: /* @__PURE__ */ __name2(() => CredentialNameRefValidator2, "CredentialNameRefValidator"),
|
|
16076
16079
|
CredentialRecordValidator: /* @__PURE__ */ __name2(() => CredentialRecordValidator2, "CredentialRecordValidator"),
|
|
16080
|
+
CredentialRefreshChallengeValidator: /* @__PURE__ */ __name2(() => CredentialRefreshChallengeValidator2, "CredentialRefreshChallengeValidator"),
|
|
16081
|
+
CredentialRefreshFailedResultValidator: /* @__PURE__ */ __name2(() => CredentialRefreshFailedResultValidator2, "CredentialRefreshFailedResultValidator"),
|
|
16082
|
+
CredentialRefreshFailureCodeValidator: /* @__PURE__ */ __name2(() => CredentialRefreshFailureCodeValidator2, "CredentialRefreshFailureCodeValidator"),
|
|
16083
|
+
CredentialRefreshResponseEnvelopeValidator: /* @__PURE__ */ __name2(() => CredentialRefreshResponseEnvelopeValidator2, "CredentialRefreshResponseEnvelopeValidator"),
|
|
16084
|
+
CredentialRefreshResultValidator: /* @__PURE__ */ __name2(() => CredentialRefreshResultValidator2, "CredentialRefreshResultValidator"),
|
|
16085
|
+
CredentialRefreshSigningModeValidator: /* @__PURE__ */ __name2(() => CredentialRefreshSigningModeValidator2, "CredentialRefreshSigningModeValidator"),
|
|
16086
|
+
CredentialRefreshUnchangedResultValidator: /* @__PURE__ */ __name2(() => CredentialRefreshUnchangedResultValidator2, "CredentialRefreshUnchangedResultValidator"),
|
|
16087
|
+
CredentialRefreshUnsupportedResultValidator: /* @__PURE__ */ __name2(() => CredentialRefreshUnsupportedResultValidator2, "CredentialRefreshUnsupportedResultValidator"),
|
|
16088
|
+
CredentialRefreshUpdatedResultValidator: /* @__PURE__ */ __name2(() => CredentialRefreshUpdatedResultValidator2, "CredentialRefreshUpdatedResultValidator"),
|
|
16089
|
+
CredentialRefreshVersionMetadataValidator: /* @__PURE__ */ __name2(() => CredentialRefreshVersionMetadataValidator2, "CredentialRefreshVersionMetadataValidator"),
|
|
16077
16090
|
CredentialSchemaValidator: /* @__PURE__ */ __name2(() => CredentialSchemaValidator2, "CredentialSchemaValidator"),
|
|
16078
16091
|
CredentialStatusValidator: /* @__PURE__ */ __name2(() => CredentialStatusValidator2, "CredentialStatusValidator"),
|
|
16079
16092
|
CredentialSubjectValidator: /* @__PURE__ */ __name2(() => CredentialSubjectValidator2, "CredentialSubjectValidator"),
|
|
@@ -16094,6 +16107,8 @@ var require_types_cjs_development = __commonJS({
|
|
|
16094
16107
|
GeoCoordinatesValidator: /* @__PURE__ */ __name2(() => GeoCoordinatesValidator2, "GeoCoordinatesValidator"),
|
|
16095
16108
|
GetCounterEventValidator: /* @__PURE__ */ __name2(() => GetCounterEventValidator2, "GetCounterEventValidator"),
|
|
16096
16109
|
GetCountersEventValidator: /* @__PURE__ */ __name2(() => GetCountersEventValidator2, "GetCountersEventValidator"),
|
|
16110
|
+
GetCredentialRefreshHistoryInputValidator: /* @__PURE__ */ __name2(() => GetCredentialRefreshHistoryInputValidator2, "GetCredentialRefreshHistoryInputValidator"),
|
|
16111
|
+
GetCredentialRefreshHistoryResultValidator: /* @__PURE__ */ __name2(() => GetCredentialRefreshHistoryResultValidator2, "GetCredentialRefreshHistoryResultValidator"),
|
|
16097
16112
|
GetFullSkillTreeInputValidator: /* @__PURE__ */ __name2(() => GetFullSkillTreeInputValidator2, "GetFullSkillTreeInputValidator"),
|
|
16098
16113
|
GetFullSkillTreeResultValidator: /* @__PURE__ */ __name2(() => GetFullSkillTreeResultValidator2, "GetFullSkillTreeResultValidator"),
|
|
16099
16114
|
GetSkillPathInputValidator: /* @__PURE__ */ __name2(() => GetSkillPathInputValidator2, "GetSkillPathInputValidator"),
|
|
@@ -16118,6 +16133,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
16118
16133
|
JWEValidator: /* @__PURE__ */ __name2(() => JWEValidator2, "JWEValidator"),
|
|
16119
16134
|
JWKValidator: /* @__PURE__ */ __name2(() => JWKValidator2, "JWKValidator"),
|
|
16120
16135
|
JWKWithPrivateKeyValidator: /* @__PURE__ */ __name2(() => JWKWithPrivateKeyValidator2, "JWKWithPrivateKeyValidator"),
|
|
16136
|
+
JweCredentialRefreshEnvelopeValidator: /* @__PURE__ */ __name2(() => JweCredentialRefreshEnvelopeValidator2, "JweCredentialRefreshEnvelopeValidator"),
|
|
16121
16137
|
KnownAchievementTypeValidator: /* @__PURE__ */ __name2(() => KnownAchievementTypeValidator2, "KnownAchievementTypeValidator"),
|
|
16122
16138
|
LCNAuthedProfileValidator: /* @__PURE__ */ __name2(() => LCNAuthedProfileValidator2, "LCNAuthedProfileValidator"),
|
|
16123
16139
|
LCNBoostClaimLinkOptionsValidator: /* @__PURE__ */ __name2(() => LCNBoostClaimLinkOptionsValidator2, "LCNBoostClaimLinkOptionsValidator"),
|
|
@@ -16155,7 +16171,9 @@ var require_types_cjs_development = __commonJS({
|
|
|
16155
16171
|
LCNSigningAuthorityValidator: /* @__PURE__ */ __name2(() => LCNSigningAuthorityValidator2, "LCNSigningAuthorityValidator"),
|
|
16156
16172
|
LCNVisibleProfileValidator: /* @__PURE__ */ __name2(() => LCNVisibleProfileValidator2, "LCNVisibleProfileValidator"),
|
|
16157
16173
|
LaunchTypeValidator: /* @__PURE__ */ __name2(() => LaunchTypeValidator2, "LaunchTypeValidator"),
|
|
16174
|
+
LearnCardRefreshAuthorizationValidator: /* @__PURE__ */ __name2(() => LearnCardRefreshAuthorizationValidator2, "LearnCardRefreshAuthorizationValidator"),
|
|
16158
16175
|
LinkProviderFrameworkInputValidator: /* @__PURE__ */ __name2(() => LinkProviderFrameworkInputValidator2, "LinkProviderFrameworkInputValidator"),
|
|
16176
|
+
ManagedCredentialRefreshServiceValidator: /* @__PURE__ */ __name2(() => ManagedCredentialRefreshServiceValidator2, "ManagedCredentialRefreshServiceValidator"),
|
|
16159
16177
|
PaginatedAppStoreListingsValidator: /* @__PURE__ */ __name2(() => PaginatedAppStoreListingsValidator2, "PaginatedAppStoreListingsValidator"),
|
|
16160
16178
|
PaginatedBoostRecipientsValidator: /* @__PURE__ */ __name2(() => PaginatedBoostRecipientsValidator2, "PaginatedBoostRecipientsValidator"),
|
|
16161
16179
|
PaginatedBoostRecipientsWithChildrenValidator: /* @__PURE__ */ __name2(() => PaginatedBoostRecipientsWithChildrenValidator2, "PaginatedBoostRecipientsWithChildrenValidator"),
|
|
@@ -16185,6 +16203,12 @@ var require_types_cjs_development = __commonJS({
|
|
|
16185
16203
|
ProfileVisibilityEnum: /* @__PURE__ */ __name2(() => ProfileVisibilityEnum2, "ProfileVisibilityEnum"),
|
|
16186
16204
|
PromotionLevelValidator: /* @__PURE__ */ __name2(() => PromotionLevelValidator2, "PromotionLevelValidator"),
|
|
16187
16205
|
ProofValidator: /* @__PURE__ */ __name2(() => ProofValidator2, "ProofValidator"),
|
|
16206
|
+
PublicCredentialRefreshEnvelopeValidator: /* @__PURE__ */ __name2(() => PublicCredentialRefreshEnvelopeValidator2, "PublicCredentialRefreshEnvelopeValidator"),
|
|
16207
|
+
PublishCredentialRefreshInputValidator: /* @__PURE__ */ __name2(() => PublishCredentialRefreshInputValidator2, "PublishCredentialRefreshInputValidator"),
|
|
16208
|
+
PublishCredentialRefreshNotificationValidator: /* @__PURE__ */ __name2(() => PublishCredentialRefreshNotificationValidator2, "PublishCredentialRefreshNotificationValidator"),
|
|
16209
|
+
PublishCredentialRefreshResultValidator: /* @__PURE__ */ __name2(() => PublishCredentialRefreshResultValidator2, "PublishCredentialRefreshResultValidator"),
|
|
16210
|
+
PublishIssuerSignedRefreshValidator: /* @__PURE__ */ __name2(() => PublishIssuerSignedRefreshValidator2, "PublishIssuerSignedRefreshValidator"),
|
|
16211
|
+
PublishSigningAuthorityRefreshValidator: /* @__PURE__ */ __name2(() => PublishSigningAuthorityRefreshValidator2, "PublishSigningAuthorityRefreshValidator"),
|
|
16188
16212
|
RefreshServiceValidator: /* @__PURE__ */ __name2(() => RefreshServiceValidator2, "RefreshServiceValidator"),
|
|
16189
16213
|
RegExpValidator: /* @__PURE__ */ __name2(() => RegExpValidator2, "RegExpValidator"),
|
|
16190
16214
|
RelatedValidator: /* @__PURE__ */ __name2(() => RelatedValidator2, "RelatedValidator"),
|
|
@@ -16225,11 +16249,13 @@ var require_types_cjs_development = __commonJS({
|
|
|
16225
16249
|
SkillTreeNodeInputValidator: /* @__PURE__ */ __name2(() => SkillTreeNodeInputValidator2, "SkillTreeNodeInputValidator"),
|
|
16226
16250
|
SkillTreeNodeValidator: /* @__PURE__ */ __name2(() => SkillTreeNodeValidator2, "SkillTreeNodeValidator"),
|
|
16227
16251
|
SkillValidator: /* @__PURE__ */ __name2(() => SkillValidator2, "SkillValidator"),
|
|
16252
|
+
StandardCredentialRefreshServiceValidator: /* @__PURE__ */ __name2(() => StandardCredentialRefreshServiceValidator2, "StandardCredentialRefreshServiceValidator"),
|
|
16228
16253
|
StatusCheckEntryValidator: /* @__PURE__ */ __name2(() => StatusCheckEntryValidator2, "StatusCheckEntryValidator"),
|
|
16229
16254
|
StoredCredentialEnvelopeValidator: /* @__PURE__ */ __name2(() => StoredCredentialEnvelopeValidator2, "StoredCredentialEnvelopeValidator"),
|
|
16230
16255
|
StringQuery: /* @__PURE__ */ __name2(() => StringQuery2, "StringQuery"),
|
|
16231
16256
|
SummaryCredentialDataValidator: /* @__PURE__ */ __name2(() => SummaryCredentialDataValidator2, "SummaryCredentialDataValidator"),
|
|
16232
16257
|
SummaryCredentialKeywordValidator: /* @__PURE__ */ __name2(() => SummaryCredentialKeywordValidator2, "SummaryCredentialKeywordValidator"),
|
|
16258
|
+
SupportedCredentialRefreshServiceValidator: /* @__PURE__ */ __name2(() => SupportedCredentialRefreshServiceValidator2, "SupportedCredentialRefreshServiceValidator"),
|
|
16233
16259
|
SyncFrameworkInputValidator: /* @__PURE__ */ __name2(() => SyncFrameworkInputValidator2, "SyncFrameworkInputValidator"),
|
|
16234
16260
|
TagValidator: /* @__PURE__ */ __name2(() => TagValidator2, "TagValidator"),
|
|
16235
16261
|
TemplateRenderMethodValidator: /* @__PURE__ */ __name2(() => TemplateRenderMethodValidator2, "TemplateRenderMethodValidator"),
|
|
@@ -32058,14 +32084,22 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32058
32084
|
}).catchall(external_exports2.any());
|
|
32059
32085
|
var ProofValidator2 = external_exports2.object({
|
|
32060
32086
|
type: external_exports2.string(),
|
|
32061
|
-
created: external_exports2.string(),
|
|
32087
|
+
created: external_exports2.string().optional(),
|
|
32062
32088
|
challenge: external_exports2.string().optional(),
|
|
32063
32089
|
domain: external_exports2.string().optional(),
|
|
32064
32090
|
nonce: external_exports2.string().optional(),
|
|
32065
32091
|
proofPurpose: external_exports2.string(),
|
|
32066
32092
|
verificationMethod: external_exports2.string(),
|
|
32067
32093
|
jws: external_exports2.string().optional()
|
|
32068
|
-
}).catchall(external_exports2.any())
|
|
32094
|
+
}).catchall(external_exports2.any()).superRefine((proof, ctx) => {
|
|
32095
|
+
if (proof.created === void 0 && (proof.type !== "DataIntegrityProof" || proof.cryptosuite !== "ecdsa-rdfc-2019")) {
|
|
32096
|
+
ctx.addIssue({
|
|
32097
|
+
code: "custom",
|
|
32098
|
+
path: ["created"],
|
|
32099
|
+
message: "created is required for this proof suite"
|
|
32100
|
+
});
|
|
32101
|
+
}
|
|
32102
|
+
});
|
|
32069
32103
|
var VCValidator2 = UnsignedVCValidator2.extend({
|
|
32070
32104
|
proof: ProofValidator2.or(ProofValidator2.array())
|
|
32071
32105
|
});
|
|
@@ -32826,7 +32860,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32826
32860
|
webhookUrl: external_exports2.string().url().optional().describe("Webhook URL to receive claim notifications"),
|
|
32827
32861
|
suppressDelivery: external_exports2.boolean().optional().describe("If true, returns claimUrl without sending email/SMS"),
|
|
32828
32862
|
branding: SendBrandingOptionsValidator2.optional().describe("Branding for email/SMS delivery"),
|
|
32829
|
-
guardianEmail: external_exports2.string().email().optional().describe("Guardian email that must approve before student can claim")
|
|
32863
|
+
guardianEmail: external_exports2.string().email().optional().describe("Guardian email that must approve before student can claim"),
|
|
32864
|
+
expiresInDays: external_exports2.number().int().min(1).max(720).optional().describe(
|
|
32865
|
+
"How many days the credential stays claimable in the Universal Inbox (default 30). Does not change the credential validity period."
|
|
32866
|
+
)
|
|
32830
32867
|
});
|
|
32831
32868
|
var SendBoostInputValidator2 = external_exports2.object({
|
|
32832
32869
|
type: external_exports2.literal("boost"),
|
|
@@ -32947,15 +32984,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32947
32984
|
var PaginatedConsentFlowDataValidator2 = PaginationResponseValidator2.extend({
|
|
32948
32985
|
records: ConsentFlowContractDataValidator2.array()
|
|
32949
32986
|
});
|
|
32950
|
-
var ConsentFlowContractDataForDidValidator2 = external_exports2.object({
|
|
32951
|
-
credentials: external_exports2.object({ category: external_exports2.string(), uri: external_exports2.string() }).array(),
|
|
32952
|
-
personal: external_exports2.record(external_exports2.string(), external_exports2.string()).default({}),
|
|
32953
|
-
date: external_exports2.string(),
|
|
32954
|
-
contractUri: external_exports2.string()
|
|
32955
|
-
});
|
|
32956
|
-
var PaginatedConsentFlowDataForDidValidator2 = PaginationResponseValidator2.extend({
|
|
32957
|
-
records: ConsentFlowContractDataForDidValidator2.array()
|
|
32958
|
-
});
|
|
32959
32987
|
var ConsentFlowTermValidator2 = external_exports2.object({
|
|
32960
32988
|
sharing: external_exports2.boolean().optional(),
|
|
32961
32989
|
shared: external_exports2.string().array().optional(),
|
|
@@ -32989,6 +33017,34 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32989
33017
|
status: ConsentFlowTermsStatusValidator2
|
|
32990
33018
|
}).array()
|
|
32991
33019
|
});
|
|
33020
|
+
var ConsentFlowGuardianApprovalValidator2 = external_exports2.object({
|
|
33021
|
+
guardianProfileId: external_exports2.string(),
|
|
33022
|
+
guardianDid: external_exports2.string(),
|
|
33023
|
+
approvedAt: external_exports2.string().datetime(),
|
|
33024
|
+
contractUpdatedAt: external_exports2.string()
|
|
33025
|
+
});
|
|
33026
|
+
var ConsentFlowContractDataForDidValidator2 = external_exports2.object({
|
|
33027
|
+
credentials: external_exports2.object({ category: external_exports2.string(), uri: external_exports2.string() }).array(),
|
|
33028
|
+
personal: external_exports2.record(external_exports2.string(), external_exports2.string()).default({}),
|
|
33029
|
+
date: external_exports2.string(),
|
|
33030
|
+
createdAt: external_exports2.string().optional(),
|
|
33031
|
+
contractUpdatedAt: external_exports2.string(),
|
|
33032
|
+
contractExpiresAt: external_exports2.string().optional(),
|
|
33033
|
+
reasonForAccessing: external_exports2.string().optional(),
|
|
33034
|
+
guardian: external_exports2.object({
|
|
33035
|
+
required: external_exports2.boolean(),
|
|
33036
|
+
approved: external_exports2.boolean(),
|
|
33037
|
+
approval: ConsentFlowGuardianApprovalValidator2.optional()
|
|
33038
|
+
}),
|
|
33039
|
+
contractUri: external_exports2.string(),
|
|
33040
|
+
termsUri: external_exports2.string(),
|
|
33041
|
+
status: ConsentFlowTermsStatusValidator2,
|
|
33042
|
+
expiresAt: external_exports2.string().optional(),
|
|
33043
|
+
terms: ConsentFlowTermsValidator2
|
|
33044
|
+
});
|
|
33045
|
+
var PaginatedConsentFlowDataForDidValidator2 = PaginationResponseValidator2.extend({
|
|
33046
|
+
records: ConsentFlowContractDataForDidValidator2.array()
|
|
33047
|
+
});
|
|
32992
33048
|
var ConsentFlowContractQueryValidator2 = external_exports2.object({
|
|
32993
33049
|
read: external_exports2.object({
|
|
32994
33050
|
anonymize: external_exports2.boolean().optional(),
|
|
@@ -33049,6 +33105,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33049
33105
|
expiresAt: external_exports2.string().optional(),
|
|
33050
33106
|
oneTime: external_exports2.boolean().optional(),
|
|
33051
33107
|
terms: ConsentFlowTermsValidator2.optional(),
|
|
33108
|
+
guardianApproval: ConsentFlowGuardianApprovalValidator2.optional(),
|
|
33052
33109
|
id: external_exports2.string(),
|
|
33053
33110
|
action: ConsentFlowTransactionActionValidator2,
|
|
33054
33111
|
date: external_exports2.string(),
|
|
@@ -33121,7 +33178,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33121
33178
|
"APP_NOTIFICATION",
|
|
33122
33179
|
"CREDENTIAL_REVOKED",
|
|
33123
33180
|
"CREDENTIAL_SUSPENDED",
|
|
33124
|
-
"CREDENTIAL_UNSUSPENDED"
|
|
33181
|
+
"CREDENTIAL_UNSUSPENDED",
|
|
33182
|
+
"CREDENTIAL_REFRESHED"
|
|
33125
33183
|
]);
|
|
33126
33184
|
var LCNNotificationMessageValidator2 = external_exports2.object({
|
|
33127
33185
|
title: external_exports2.string().optional(),
|
|
@@ -33253,12 +33311,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33253
33311
|
});
|
|
33254
33312
|
var InboxCredentialValidator2 = external_exports2.object({
|
|
33255
33313
|
id: external_exports2.string(),
|
|
33256
|
-
credential: external_exports2.string(),
|
|
33314
|
+
credential: external_exports2.string().optional(),
|
|
33257
33315
|
isSigned: external_exports2.boolean(),
|
|
33258
33316
|
currentStatus: LCNInboxStatusEnumValidator2,
|
|
33259
33317
|
isAccepted: external_exports2.boolean().optional(),
|
|
33260
33318
|
expiresAt: external_exports2.string(),
|
|
33261
33319
|
createdAt: external_exports2.string(),
|
|
33320
|
+
finalizedAt: external_exports2.string().optional(),
|
|
33321
|
+
expiredAt: external_exports2.string().optional(),
|
|
33322
|
+
credentialName: external_exports2.string().optional(),
|
|
33323
|
+
achievementType: external_exports2.string().optional(),
|
|
33262
33324
|
issuerDid: external_exports2.string(),
|
|
33263
33325
|
webhookUrl: external_exports2.string().optional(),
|
|
33264
33326
|
boostUri: external_exports2.string().optional(),
|
|
@@ -33312,7 +33374,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33312
33374
|
"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."
|
|
33313
33375
|
),
|
|
33314
33376
|
webhookUrl: external_exports2.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
33315
|
-
expiresInDays: external_exports2.number().min(1).max(
|
|
33377
|
+
expiresInDays: external_exports2.number().int().min(1).max(720).optional().describe(
|
|
33378
|
+
"How many days the encrypted inbox payload remains claimable. This does not change the credential validity period."
|
|
33379
|
+
),
|
|
33316
33380
|
templateData: external_exports2.record(external_exports2.string(), external_exports2.unknown()).optional().describe(
|
|
33317
33381
|
"Template data to render into the boost credential template using Mustache syntax. Only used when boostUri is provided."
|
|
33318
33382
|
),
|
|
@@ -33375,6 +33439,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33375
33439
|
credential: VCValidator2.or(VPValidator2).or(UnsignedVCValidator2).or(CredentialNameRefValidator2).describe("The credential to issue, or a { name } reference to resolve a boost template."),
|
|
33376
33440
|
configuration: external_exports2.object({
|
|
33377
33441
|
publishableKey: external_exports2.string(),
|
|
33442
|
+
expiresInDays: external_exports2.number().int().min(1).max(720).optional().describe(
|
|
33443
|
+
"Inbox claim window in days. Defaults to 720; use a shorter window for sensitive records."
|
|
33444
|
+
),
|
|
33378
33445
|
signingAuthorityName: external_exports2.string().optional(),
|
|
33379
33446
|
listingId: external_exports2.string().optional(),
|
|
33380
33447
|
listingSlug: external_exports2.string().optional()
|
|
@@ -34006,6 +34073,191 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
34006
34073
|
const result = inAppMessagesFlagValidator2.safeParse(raw);
|
|
34007
34074
|
return result.success ? result.data : EMPTY_IN_APP_MESSAGES_FLAG;
|
|
34008
34075
|
}, "parseInAppMessagesFlag");
|
|
34076
|
+
var LearnCardRefreshAuthorizationValidator2 = external_exports2.object({ type: external_exports2.literal("LearnCardDIDAuth") }).catchall(external_exports2.any());
|
|
34077
|
+
var ManagedCredentialRefreshServiceValidator2 = external_exports2.object({
|
|
34078
|
+
id: external_exports2.string().min(1),
|
|
34079
|
+
type: external_exports2.literal("LearnCardCredentialRefresh2026"),
|
|
34080
|
+
authorization: LearnCardRefreshAuthorizationValidator2.optional()
|
|
34081
|
+
}).catchall(external_exports2.any());
|
|
34082
|
+
var StandardCredentialRefreshServiceValidator2 = external_exports2.object({
|
|
34083
|
+
id: external_exports2.string().min(1),
|
|
34084
|
+
type: external_exports2.literal("1EdTechCredentialRefresh")
|
|
34085
|
+
}).catchall(external_exports2.any());
|
|
34086
|
+
var SupportedCredentialRefreshServiceValidator2 = external_exports2.union([
|
|
34087
|
+
ManagedCredentialRefreshServiceValidator2,
|
|
34088
|
+
StandardCredentialRefreshServiceValidator2
|
|
34089
|
+
]);
|
|
34090
|
+
var AllocateCredentialRefreshInputValidator2 = external_exports2.object({
|
|
34091
|
+
holder: external_exports2.object({
|
|
34092
|
+
profileId: external_exports2.string().optional(),
|
|
34093
|
+
did: external_exports2.string().min(1)
|
|
34094
|
+
}),
|
|
34095
|
+
credentialId: external_exports2.string().min(1)
|
|
34096
|
+
});
|
|
34097
|
+
var AllocateCredentialRefreshResultValidator2 = external_exports2.object({
|
|
34098
|
+
refreshId: external_exports2.string().min(1),
|
|
34099
|
+
refreshService: ManagedCredentialRefreshServiceValidator2.extend({
|
|
34100
|
+
authorization: LearnCardRefreshAuthorizationValidator2
|
|
34101
|
+
})
|
|
34102
|
+
});
|
|
34103
|
+
var CredentialRefreshSigningModeValidator2 = external_exports2.enum(["issuer-signed", "signing-authority"]);
|
|
34104
|
+
var PublishCredentialRefreshBaseFields2 = {
|
|
34105
|
+
refreshId: external_exports2.string().min(1),
|
|
34106
|
+
notifyHolder: external_exports2.boolean().optional(),
|
|
34107
|
+
updateSummary: external_exports2.string().optional(),
|
|
34108
|
+
idempotencyKey: external_exports2.string().optional()
|
|
34109
|
+
};
|
|
34110
|
+
var PublishIssuerSignedRefreshValidator2 = external_exports2.object({
|
|
34111
|
+
...PublishCredentialRefreshBaseFields2,
|
|
34112
|
+
mode: external_exports2.literal("issuer-signed"),
|
|
34113
|
+
signedCredential: VCValidator2
|
|
34114
|
+
});
|
|
34115
|
+
var PublishSigningAuthorityRefreshValidator2 = external_exports2.object({
|
|
34116
|
+
...PublishCredentialRefreshBaseFields2,
|
|
34117
|
+
mode: external_exports2.literal("signing-authority"),
|
|
34118
|
+
credential: UnsignedVCValidator2,
|
|
34119
|
+
signingAuthority: external_exports2.object({
|
|
34120
|
+
type: external_exports2.string().min(1)
|
|
34121
|
+
}).catchall(external_exports2.any())
|
|
34122
|
+
});
|
|
34123
|
+
var PublishCredentialRefreshInputValidator2 = external_exports2.object({
|
|
34124
|
+
...PublishCredentialRefreshBaseFields2,
|
|
34125
|
+
mode: CredentialRefreshSigningModeValidator2,
|
|
34126
|
+
signedCredential: VCValidator2.optional(),
|
|
34127
|
+
credential: UnsignedVCValidator2.optional(),
|
|
34128
|
+
signingAuthority: external_exports2.object({
|
|
34129
|
+
type: external_exports2.string().min(1)
|
|
34130
|
+
}).catchall(external_exports2.any()).optional()
|
|
34131
|
+
}).superRefine((input, ctx) => {
|
|
34132
|
+
if (input.mode === "issuer-signed" && !input.signedCredential) {
|
|
34133
|
+
ctx.addIssue({
|
|
34134
|
+
code: "custom",
|
|
34135
|
+
path: ["signedCredential"],
|
|
34136
|
+
message: "signedCredential is required for issuer-signed publication"
|
|
34137
|
+
});
|
|
34138
|
+
}
|
|
34139
|
+
if (input.mode === "issuer-signed" && (input.credential !== void 0 || input.signingAuthority !== void 0)) {
|
|
34140
|
+
ctx.addIssue({
|
|
34141
|
+
code: "custom",
|
|
34142
|
+
path: ["mode"],
|
|
34143
|
+
message: "issuer-signed publication cannot include signing-authority fields"
|
|
34144
|
+
});
|
|
34145
|
+
}
|
|
34146
|
+
if (input.mode === "signing-authority") {
|
|
34147
|
+
if (input.signedCredential !== void 0) {
|
|
34148
|
+
ctx.addIssue({
|
|
34149
|
+
code: "custom",
|
|
34150
|
+
path: ["signedCredential"],
|
|
34151
|
+
message: "signing-authority publication cannot include signedCredential"
|
|
34152
|
+
});
|
|
34153
|
+
}
|
|
34154
|
+
if (!input.credential) {
|
|
34155
|
+
ctx.addIssue({
|
|
34156
|
+
code: "custom",
|
|
34157
|
+
path: ["credential"],
|
|
34158
|
+
message: "credential is required for signing-authority publication"
|
|
34159
|
+
});
|
|
34160
|
+
}
|
|
34161
|
+
if (!input.signingAuthority) {
|
|
34162
|
+
ctx.addIssue({
|
|
34163
|
+
code: "custom",
|
|
34164
|
+
path: ["signingAuthority"],
|
|
34165
|
+
message: "signingAuthority is required for signing-authority publication"
|
|
34166
|
+
});
|
|
34167
|
+
}
|
|
34168
|
+
}
|
|
34169
|
+
});
|
|
34170
|
+
var PublishCredentialRefreshNotificationValidator2 = external_exports2.enum([
|
|
34171
|
+
"queued",
|
|
34172
|
+
"suppressed",
|
|
34173
|
+
"not-applicable",
|
|
34174
|
+
/** Publication succeeded, but the post-commit notification enqueue must be retried. */
|
|
34175
|
+
"delivery-failed"
|
|
34176
|
+
]);
|
|
34177
|
+
var PublishCredentialRefreshResultValidator2 = external_exports2.object({
|
|
34178
|
+
refreshId: external_exports2.string().min(1),
|
|
34179
|
+
version: external_exports2.number().int().positive(),
|
|
34180
|
+
publishedAt: external_exports2.string().min(1),
|
|
34181
|
+
notification: PublishCredentialRefreshNotificationValidator2
|
|
34182
|
+
});
|
|
34183
|
+
var CredentialRefreshVersionMetadataValidator2 = external_exports2.object({
|
|
34184
|
+
version: external_exports2.number().int().positive(),
|
|
34185
|
+
publishedAt: external_exports2.string().min(1),
|
|
34186
|
+
effectiveAt: external_exports2.string().optional(),
|
|
34187
|
+
etag: external_exports2.string().optional(),
|
|
34188
|
+
signingMode: CredentialRefreshSigningModeValidator2.optional(),
|
|
34189
|
+
updateSummary: external_exports2.string().optional()
|
|
34190
|
+
});
|
|
34191
|
+
var GetCredentialRefreshHistoryInputValidator2 = external_exports2.object({
|
|
34192
|
+
refreshId: external_exports2.string().min(1),
|
|
34193
|
+
cursor: external_exports2.string().optional(),
|
|
34194
|
+
limit: external_exports2.number().int().positive().optional()
|
|
34195
|
+
});
|
|
34196
|
+
var GetCredentialRefreshHistoryResultValidator2 = external_exports2.object({
|
|
34197
|
+
records: CredentialRefreshVersionMetadataValidator2.array(),
|
|
34198
|
+
hasMore: external_exports2.boolean(),
|
|
34199
|
+
cursor: external_exports2.string().optional()
|
|
34200
|
+
});
|
|
34201
|
+
var CredentialRefreshChallengeValidator2 = external_exports2.object({
|
|
34202
|
+
challenge: external_exports2.string().min(1),
|
|
34203
|
+
expiresAt: external_exports2.string().min(1),
|
|
34204
|
+
domain: external_exports2.string().optional(),
|
|
34205
|
+
scheme: external_exports2.literal("LearnCardDIDAuth").optional()
|
|
34206
|
+
});
|
|
34207
|
+
var PublicCredentialRefreshEnvelopeValidator2 = external_exports2.object({
|
|
34208
|
+
format: external_exports2.literal("vc"),
|
|
34209
|
+
credential: VCValidator2,
|
|
34210
|
+
etag: external_exports2.string().optional()
|
|
34211
|
+
});
|
|
34212
|
+
var JweCredentialRefreshEnvelopeValidator2 = external_exports2.object({
|
|
34213
|
+
format: external_exports2.literal("jwe"),
|
|
34214
|
+
jwe: JWEValidator2,
|
|
34215
|
+
etag: external_exports2.string().optional(),
|
|
34216
|
+
/** Present on LearnCard-managed endpoints; optional for interoperable JWE services. */
|
|
34217
|
+
version: external_exports2.number().int().positive().optional()
|
|
34218
|
+
});
|
|
34219
|
+
var CredentialRefreshResponseEnvelopeValidator2 = external_exports2.discriminatedUnion("format", [
|
|
34220
|
+
PublicCredentialRefreshEnvelopeValidator2,
|
|
34221
|
+
JweCredentialRefreshEnvelopeValidator2
|
|
34222
|
+
]);
|
|
34223
|
+
var CredentialRefreshFailureCodeValidator2 = external_exports2.enum([
|
|
34224
|
+
"UNAVAILABLE",
|
|
34225
|
+
"TIMEOUT",
|
|
34226
|
+
"UNSUPPORTED_SERVICE",
|
|
34227
|
+
"UNAUTHORIZED",
|
|
34228
|
+
"MALFORMED_RESPONSE",
|
|
34229
|
+
"INVALID_PROOF",
|
|
34230
|
+
"ISSUER_MISMATCH",
|
|
34231
|
+
"ID_MISMATCH",
|
|
34232
|
+
"ROLLBACK",
|
|
34233
|
+
"REVOKED",
|
|
34234
|
+
"UNSAFE_ENDPOINT"
|
|
34235
|
+
]);
|
|
34236
|
+
var CredentialRefreshUpdatedResultValidator2 = external_exports2.object({
|
|
34237
|
+
status: external_exports2.literal("updated"),
|
|
34238
|
+
credential: VCValidator2,
|
|
34239
|
+
etag: external_exports2.string().optional(),
|
|
34240
|
+
managedVersion: external_exports2.number().int().positive().optional()
|
|
34241
|
+
});
|
|
34242
|
+
var CredentialRefreshUnchangedResultValidator2 = external_exports2.object({
|
|
34243
|
+
status: external_exports2.literal("unchanged"),
|
|
34244
|
+
checkedAt: external_exports2.string().min(1),
|
|
34245
|
+
etag: external_exports2.string().optional()
|
|
34246
|
+
});
|
|
34247
|
+
var CredentialRefreshUnsupportedResultValidator2 = external_exports2.object({
|
|
34248
|
+
status: external_exports2.literal("unsupported")
|
|
34249
|
+
});
|
|
34250
|
+
var CredentialRefreshFailedResultValidator2 = external_exports2.object({
|
|
34251
|
+
status: external_exports2.literal("failed"),
|
|
34252
|
+
code: CredentialRefreshFailureCodeValidator2,
|
|
34253
|
+
retryable: external_exports2.boolean()
|
|
34254
|
+
});
|
|
34255
|
+
var CredentialRefreshResultValidator2 = external_exports2.discriminatedUnion("status", [
|
|
34256
|
+
CredentialRefreshUpdatedResultValidator2,
|
|
34257
|
+
CredentialRefreshUnchangedResultValidator2,
|
|
34258
|
+
CredentialRefreshUnsupportedResultValidator2,
|
|
34259
|
+
CredentialRefreshFailedResultValidator2
|
|
34260
|
+
]);
|
|
34009
34261
|
}
|
|
34010
34262
|
});
|
|
34011
34263
|
var require_dist = __commonJS({
|
|
@@ -34018,7 +34270,7 @@ var require_dist = __commonJS({
|
|
|
34018
34270
|
}
|
|
34019
34271
|
}
|
|
34020
34272
|
});
|
|
34021
|
-
var
|
|
34273
|
+
var import_types3 = __toESM(require_dist());
|
|
34022
34274
|
var filestack_helpers_exports = {};
|
|
34023
34275
|
__export2(filestack_helpers_exports, {
|
|
34024
34276
|
changeQuality: /* @__PURE__ */ __name(() => changeQuality, "changeQuality"),
|
|
@@ -34299,7 +34551,8 @@ var ImageWithLoadingStateValdator = external_exports.object({
|
|
|
34299
34551
|
image: external_exports.string(),
|
|
34300
34552
|
loading: external_exports.union([ImageResizingValidator, ImageUploadingValidator]).optional()
|
|
34301
34553
|
});
|
|
34302
|
-
var
|
|
34554
|
+
var import_types2 = __toESM(require_dist());
|
|
34555
|
+
var import_types22 = __toESM(require_dist());
|
|
34303
34556
|
var _a4;
|
|
34304
34557
|
var EnvironmentConfigurationError = (_a4 = class extends Error {
|
|
34305
34558
|
constructor(message) {
|
|
@@ -34472,14 +34725,22 @@ var UnsignedVCValidator = external_exports.object({
|
|
|
34472
34725
|
}).catchall(external_exports.any());
|
|
34473
34726
|
var ProofValidator = external_exports.object({
|
|
34474
34727
|
type: external_exports.string(),
|
|
34475
|
-
created: external_exports.string(),
|
|
34728
|
+
created: external_exports.string().optional(),
|
|
34476
34729
|
challenge: external_exports.string().optional(),
|
|
34477
34730
|
domain: external_exports.string().optional(),
|
|
34478
34731
|
nonce: external_exports.string().optional(),
|
|
34479
34732
|
proofPurpose: external_exports.string(),
|
|
34480
34733
|
verificationMethod: external_exports.string(),
|
|
34481
34734
|
jws: external_exports.string().optional()
|
|
34482
|
-
}).catchall(external_exports.any())
|
|
34735
|
+
}).catchall(external_exports.any()).superRefine((proof, ctx) => {
|
|
34736
|
+
if (proof.created === void 0 && (proof.type !== "DataIntegrityProof" || proof.cryptosuite !== "ecdsa-rdfc-2019")) {
|
|
34737
|
+
ctx.addIssue({
|
|
34738
|
+
code: "custom",
|
|
34739
|
+
path: ["created"],
|
|
34740
|
+
message: "created is required for this proof suite"
|
|
34741
|
+
});
|
|
34742
|
+
}
|
|
34743
|
+
});
|
|
34483
34744
|
var VCValidator = UnsignedVCValidator.extend({
|
|
34484
34745
|
proof: ProofValidator.or(ProofValidator.array())
|
|
34485
34746
|
});
|
|
@@ -35233,7 +35494,10 @@ var SendOptionsValidator = external_exports.object({
|
|
|
35233
35494
|
webhookUrl: external_exports.string().url().optional().describe("Webhook URL to receive claim notifications"),
|
|
35234
35495
|
suppressDelivery: external_exports.boolean().optional().describe("If true, returns claimUrl without sending email/SMS"),
|
|
35235
35496
|
branding: SendBrandingOptionsValidator.optional().describe("Branding for email/SMS delivery"),
|
|
35236
|
-
guardianEmail: external_exports.string().email().optional().describe("Guardian email that must approve before student can claim")
|
|
35497
|
+
guardianEmail: external_exports.string().email().optional().describe("Guardian email that must approve before student can claim"),
|
|
35498
|
+
expiresInDays: external_exports.number().int().min(1).max(720).optional().describe(
|
|
35499
|
+
"How many days the credential stays claimable in the Universal Inbox (default 30). Does not change the credential validity period."
|
|
35500
|
+
)
|
|
35237
35501
|
});
|
|
35238
35502
|
var SendBoostInputValidator = external_exports.object({
|
|
35239
35503
|
type: external_exports.literal("boost"),
|
|
@@ -35354,15 +35618,6 @@ var ConsentFlowContractDataValidator = external_exports.object({
|
|
|
35354
35618
|
var PaginatedConsentFlowDataValidator = PaginationResponseValidator.extend({
|
|
35355
35619
|
records: ConsentFlowContractDataValidator.array()
|
|
35356
35620
|
});
|
|
35357
|
-
var ConsentFlowContractDataForDidValidator = external_exports.object({
|
|
35358
|
-
credentials: external_exports.object({ category: external_exports.string(), uri: external_exports.string() }).array(),
|
|
35359
|
-
personal: external_exports.record(external_exports.string(), external_exports.string()).default({}),
|
|
35360
|
-
date: external_exports.string(),
|
|
35361
|
-
contractUri: external_exports.string()
|
|
35362
|
-
});
|
|
35363
|
-
var PaginatedConsentFlowDataForDidValidator = PaginationResponseValidator.extend({
|
|
35364
|
-
records: ConsentFlowContractDataForDidValidator.array()
|
|
35365
|
-
});
|
|
35366
35621
|
var ConsentFlowTermValidator = external_exports.object({
|
|
35367
35622
|
sharing: external_exports.boolean().optional(),
|
|
35368
35623
|
shared: external_exports.string().array().optional(),
|
|
@@ -35396,6 +35651,34 @@ var PaginatedConsentFlowTermsValidator = PaginationResponseValidator.extend({
|
|
|
35396
35651
|
status: ConsentFlowTermsStatusValidator
|
|
35397
35652
|
}).array()
|
|
35398
35653
|
});
|
|
35654
|
+
var ConsentFlowGuardianApprovalValidator = external_exports.object({
|
|
35655
|
+
guardianProfileId: external_exports.string(),
|
|
35656
|
+
guardianDid: external_exports.string(),
|
|
35657
|
+
approvedAt: external_exports.string().datetime(),
|
|
35658
|
+
contractUpdatedAt: external_exports.string()
|
|
35659
|
+
});
|
|
35660
|
+
var ConsentFlowContractDataForDidValidator = external_exports.object({
|
|
35661
|
+
credentials: external_exports.object({ category: external_exports.string(), uri: external_exports.string() }).array(),
|
|
35662
|
+
personal: external_exports.record(external_exports.string(), external_exports.string()).default({}),
|
|
35663
|
+
date: external_exports.string(),
|
|
35664
|
+
createdAt: external_exports.string().optional(),
|
|
35665
|
+
contractUpdatedAt: external_exports.string(),
|
|
35666
|
+
contractExpiresAt: external_exports.string().optional(),
|
|
35667
|
+
reasonForAccessing: external_exports.string().optional(),
|
|
35668
|
+
guardian: external_exports.object({
|
|
35669
|
+
required: external_exports.boolean(),
|
|
35670
|
+
approved: external_exports.boolean(),
|
|
35671
|
+
approval: ConsentFlowGuardianApprovalValidator.optional()
|
|
35672
|
+
}),
|
|
35673
|
+
contractUri: external_exports.string(),
|
|
35674
|
+
termsUri: external_exports.string(),
|
|
35675
|
+
status: ConsentFlowTermsStatusValidator,
|
|
35676
|
+
expiresAt: external_exports.string().optional(),
|
|
35677
|
+
terms: ConsentFlowTermsValidator
|
|
35678
|
+
});
|
|
35679
|
+
var PaginatedConsentFlowDataForDidValidator = PaginationResponseValidator.extend({
|
|
35680
|
+
records: ConsentFlowContractDataForDidValidator.array()
|
|
35681
|
+
});
|
|
35399
35682
|
var ConsentFlowContractQueryValidator = external_exports.object({
|
|
35400
35683
|
read: external_exports.object({
|
|
35401
35684
|
anonymize: external_exports.boolean().optional(),
|
|
@@ -35456,6 +35739,7 @@ var ConsentFlowTransactionValidator = external_exports.object({
|
|
|
35456
35739
|
expiresAt: external_exports.string().optional(),
|
|
35457
35740
|
oneTime: external_exports.boolean().optional(),
|
|
35458
35741
|
terms: ConsentFlowTermsValidator.optional(),
|
|
35742
|
+
guardianApproval: ConsentFlowGuardianApprovalValidator.optional(),
|
|
35459
35743
|
id: external_exports.string(),
|
|
35460
35744
|
action: ConsentFlowTransactionActionValidator,
|
|
35461
35745
|
date: external_exports.string(),
|
|
@@ -35528,7 +35812,8 @@ var LCNNotificationTypeEnumValidator = external_exports.enum([
|
|
|
35528
35812
|
"APP_NOTIFICATION",
|
|
35529
35813
|
"CREDENTIAL_REVOKED",
|
|
35530
35814
|
"CREDENTIAL_SUSPENDED",
|
|
35531
|
-
"CREDENTIAL_UNSUSPENDED"
|
|
35815
|
+
"CREDENTIAL_UNSUSPENDED",
|
|
35816
|
+
"CREDENTIAL_REFRESHED"
|
|
35532
35817
|
]);
|
|
35533
35818
|
var LCNNotificationMessageValidator = external_exports.object({
|
|
35534
35819
|
title: external_exports.string().optional(),
|
|
@@ -35660,12 +35945,16 @@ var CreateContactMethodSessionResponseValidator = external_exports.object({
|
|
|
35660
35945
|
});
|
|
35661
35946
|
var InboxCredentialValidator = external_exports.object({
|
|
35662
35947
|
id: external_exports.string(),
|
|
35663
|
-
credential: external_exports.string(),
|
|
35948
|
+
credential: external_exports.string().optional(),
|
|
35664
35949
|
isSigned: external_exports.boolean(),
|
|
35665
35950
|
currentStatus: LCNInboxStatusEnumValidator,
|
|
35666
35951
|
isAccepted: external_exports.boolean().optional(),
|
|
35667
35952
|
expiresAt: external_exports.string(),
|
|
35668
35953
|
createdAt: external_exports.string(),
|
|
35954
|
+
finalizedAt: external_exports.string().optional(),
|
|
35955
|
+
expiredAt: external_exports.string().optional(),
|
|
35956
|
+
credentialName: external_exports.string().optional(),
|
|
35957
|
+
achievementType: external_exports.string().optional(),
|
|
35669
35958
|
issuerDid: external_exports.string(),
|
|
35670
35959
|
webhookUrl: external_exports.string().optional(),
|
|
35671
35960
|
boostUri: external_exports.string().optional(),
|
|
@@ -35719,7 +36008,9 @@ var IssueInboxCredentialValidator = external_exports.object({
|
|
|
35719
36008
|
"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."
|
|
35720
36009
|
),
|
|
35721
36010
|
webhookUrl: external_exports.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
35722
|
-
expiresInDays: external_exports.number().min(1).max(
|
|
36011
|
+
expiresInDays: external_exports.number().int().min(1).max(720).optional().describe(
|
|
36012
|
+
"How many days the encrypted inbox payload remains claimable. This does not change the credential validity period."
|
|
36013
|
+
),
|
|
35723
36014
|
templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional().describe(
|
|
35724
36015
|
"Template data to render into the boost credential template using Mustache syntax. Only used when boostUri is provided."
|
|
35725
36016
|
),
|
|
@@ -35782,6 +36073,9 @@ var ClaimInboxCredentialValidator = external_exports.object({
|
|
|
35782
36073
|
credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).or(CredentialNameRefValidator).describe("The credential to issue, or a { name } reference to resolve a boost template."),
|
|
35783
36074
|
configuration: external_exports.object({
|
|
35784
36075
|
publishableKey: external_exports.string(),
|
|
36076
|
+
expiresInDays: external_exports.number().int().min(1).max(720).optional().describe(
|
|
36077
|
+
"Inbox claim window in days. Defaults to 720; use a shorter window for sensitive records."
|
|
36078
|
+
),
|
|
35785
36079
|
signingAuthorityName: external_exports.string().optional(),
|
|
35786
36080
|
listingId: external_exports.string().optional(),
|
|
35787
36081
|
listingSlug: external_exports.string().optional()
|
|
@@ -36408,6 +36702,191 @@ var inAppMessagesFlagValidator = external_exports.object({
|
|
|
36408
36702
|
version: external_exports.number().default(1),
|
|
36409
36703
|
messages: external_exports.array(inAppMessageValidator).default([])
|
|
36410
36704
|
}).passthrough();
|
|
36705
|
+
var LearnCardRefreshAuthorizationValidator = external_exports.object({ type: external_exports.literal("LearnCardDIDAuth") }).catchall(external_exports.any());
|
|
36706
|
+
var ManagedCredentialRefreshServiceValidator = external_exports.object({
|
|
36707
|
+
id: external_exports.string().min(1),
|
|
36708
|
+
type: external_exports.literal("LearnCardCredentialRefresh2026"),
|
|
36709
|
+
authorization: LearnCardRefreshAuthorizationValidator.optional()
|
|
36710
|
+
}).catchall(external_exports.any());
|
|
36711
|
+
var StandardCredentialRefreshServiceValidator = external_exports.object({
|
|
36712
|
+
id: external_exports.string().min(1),
|
|
36713
|
+
type: external_exports.literal("1EdTechCredentialRefresh")
|
|
36714
|
+
}).catchall(external_exports.any());
|
|
36715
|
+
var SupportedCredentialRefreshServiceValidator = external_exports.union([
|
|
36716
|
+
ManagedCredentialRefreshServiceValidator,
|
|
36717
|
+
StandardCredentialRefreshServiceValidator
|
|
36718
|
+
]);
|
|
36719
|
+
var AllocateCredentialRefreshInputValidator = external_exports.object({
|
|
36720
|
+
holder: external_exports.object({
|
|
36721
|
+
profileId: external_exports.string().optional(),
|
|
36722
|
+
did: external_exports.string().min(1)
|
|
36723
|
+
}),
|
|
36724
|
+
credentialId: external_exports.string().min(1)
|
|
36725
|
+
});
|
|
36726
|
+
var AllocateCredentialRefreshResultValidator = external_exports.object({
|
|
36727
|
+
refreshId: external_exports.string().min(1),
|
|
36728
|
+
refreshService: ManagedCredentialRefreshServiceValidator.extend({
|
|
36729
|
+
authorization: LearnCardRefreshAuthorizationValidator
|
|
36730
|
+
})
|
|
36731
|
+
});
|
|
36732
|
+
var CredentialRefreshSigningModeValidator = external_exports.enum(["issuer-signed", "signing-authority"]);
|
|
36733
|
+
var PublishCredentialRefreshBaseFields = {
|
|
36734
|
+
refreshId: external_exports.string().min(1),
|
|
36735
|
+
notifyHolder: external_exports.boolean().optional(),
|
|
36736
|
+
updateSummary: external_exports.string().optional(),
|
|
36737
|
+
idempotencyKey: external_exports.string().optional()
|
|
36738
|
+
};
|
|
36739
|
+
var PublishIssuerSignedRefreshValidator = external_exports.object({
|
|
36740
|
+
...PublishCredentialRefreshBaseFields,
|
|
36741
|
+
mode: external_exports.literal("issuer-signed"),
|
|
36742
|
+
signedCredential: VCValidator
|
|
36743
|
+
});
|
|
36744
|
+
var PublishSigningAuthorityRefreshValidator = external_exports.object({
|
|
36745
|
+
...PublishCredentialRefreshBaseFields,
|
|
36746
|
+
mode: external_exports.literal("signing-authority"),
|
|
36747
|
+
credential: UnsignedVCValidator,
|
|
36748
|
+
signingAuthority: external_exports.object({
|
|
36749
|
+
type: external_exports.string().min(1)
|
|
36750
|
+
}).catchall(external_exports.any())
|
|
36751
|
+
});
|
|
36752
|
+
var PublishCredentialRefreshInputValidator = external_exports.object({
|
|
36753
|
+
...PublishCredentialRefreshBaseFields,
|
|
36754
|
+
mode: CredentialRefreshSigningModeValidator,
|
|
36755
|
+
signedCredential: VCValidator.optional(),
|
|
36756
|
+
credential: UnsignedVCValidator.optional(),
|
|
36757
|
+
signingAuthority: external_exports.object({
|
|
36758
|
+
type: external_exports.string().min(1)
|
|
36759
|
+
}).catchall(external_exports.any()).optional()
|
|
36760
|
+
}).superRefine((input, ctx) => {
|
|
36761
|
+
if (input.mode === "issuer-signed" && !input.signedCredential) {
|
|
36762
|
+
ctx.addIssue({
|
|
36763
|
+
code: "custom",
|
|
36764
|
+
path: ["signedCredential"],
|
|
36765
|
+
message: "signedCredential is required for issuer-signed publication"
|
|
36766
|
+
});
|
|
36767
|
+
}
|
|
36768
|
+
if (input.mode === "issuer-signed" && (input.credential !== void 0 || input.signingAuthority !== void 0)) {
|
|
36769
|
+
ctx.addIssue({
|
|
36770
|
+
code: "custom",
|
|
36771
|
+
path: ["mode"],
|
|
36772
|
+
message: "issuer-signed publication cannot include signing-authority fields"
|
|
36773
|
+
});
|
|
36774
|
+
}
|
|
36775
|
+
if (input.mode === "signing-authority") {
|
|
36776
|
+
if (input.signedCredential !== void 0) {
|
|
36777
|
+
ctx.addIssue({
|
|
36778
|
+
code: "custom",
|
|
36779
|
+
path: ["signedCredential"],
|
|
36780
|
+
message: "signing-authority publication cannot include signedCredential"
|
|
36781
|
+
});
|
|
36782
|
+
}
|
|
36783
|
+
if (!input.credential) {
|
|
36784
|
+
ctx.addIssue({
|
|
36785
|
+
code: "custom",
|
|
36786
|
+
path: ["credential"],
|
|
36787
|
+
message: "credential is required for signing-authority publication"
|
|
36788
|
+
});
|
|
36789
|
+
}
|
|
36790
|
+
if (!input.signingAuthority) {
|
|
36791
|
+
ctx.addIssue({
|
|
36792
|
+
code: "custom",
|
|
36793
|
+
path: ["signingAuthority"],
|
|
36794
|
+
message: "signingAuthority is required for signing-authority publication"
|
|
36795
|
+
});
|
|
36796
|
+
}
|
|
36797
|
+
}
|
|
36798
|
+
});
|
|
36799
|
+
var PublishCredentialRefreshNotificationValidator = external_exports.enum([
|
|
36800
|
+
"queued",
|
|
36801
|
+
"suppressed",
|
|
36802
|
+
"not-applicable",
|
|
36803
|
+
/** Publication succeeded, but the post-commit notification enqueue must be retried. */
|
|
36804
|
+
"delivery-failed"
|
|
36805
|
+
]);
|
|
36806
|
+
var PublishCredentialRefreshResultValidator = external_exports.object({
|
|
36807
|
+
refreshId: external_exports.string().min(1),
|
|
36808
|
+
version: external_exports.number().int().positive(),
|
|
36809
|
+
publishedAt: external_exports.string().min(1),
|
|
36810
|
+
notification: PublishCredentialRefreshNotificationValidator
|
|
36811
|
+
});
|
|
36812
|
+
var CredentialRefreshVersionMetadataValidator = external_exports.object({
|
|
36813
|
+
version: external_exports.number().int().positive(),
|
|
36814
|
+
publishedAt: external_exports.string().min(1),
|
|
36815
|
+
effectiveAt: external_exports.string().optional(),
|
|
36816
|
+
etag: external_exports.string().optional(),
|
|
36817
|
+
signingMode: CredentialRefreshSigningModeValidator.optional(),
|
|
36818
|
+
updateSummary: external_exports.string().optional()
|
|
36819
|
+
});
|
|
36820
|
+
var GetCredentialRefreshHistoryInputValidator = external_exports.object({
|
|
36821
|
+
refreshId: external_exports.string().min(1),
|
|
36822
|
+
cursor: external_exports.string().optional(),
|
|
36823
|
+
limit: external_exports.number().int().positive().optional()
|
|
36824
|
+
});
|
|
36825
|
+
var GetCredentialRefreshHistoryResultValidator = external_exports.object({
|
|
36826
|
+
records: CredentialRefreshVersionMetadataValidator.array(),
|
|
36827
|
+
hasMore: external_exports.boolean(),
|
|
36828
|
+
cursor: external_exports.string().optional()
|
|
36829
|
+
});
|
|
36830
|
+
var CredentialRefreshChallengeValidator = external_exports.object({
|
|
36831
|
+
challenge: external_exports.string().min(1),
|
|
36832
|
+
expiresAt: external_exports.string().min(1),
|
|
36833
|
+
domain: external_exports.string().optional(),
|
|
36834
|
+
scheme: external_exports.literal("LearnCardDIDAuth").optional()
|
|
36835
|
+
});
|
|
36836
|
+
var PublicCredentialRefreshEnvelopeValidator = external_exports.object({
|
|
36837
|
+
format: external_exports.literal("vc"),
|
|
36838
|
+
credential: VCValidator,
|
|
36839
|
+
etag: external_exports.string().optional()
|
|
36840
|
+
});
|
|
36841
|
+
var JweCredentialRefreshEnvelopeValidator = external_exports.object({
|
|
36842
|
+
format: external_exports.literal("jwe"),
|
|
36843
|
+
jwe: JWEValidator,
|
|
36844
|
+
etag: external_exports.string().optional(),
|
|
36845
|
+
/** Present on LearnCard-managed endpoints; optional for interoperable JWE services. */
|
|
36846
|
+
version: external_exports.number().int().positive().optional()
|
|
36847
|
+
});
|
|
36848
|
+
var CredentialRefreshResponseEnvelopeValidator = external_exports.discriminatedUnion("format", [
|
|
36849
|
+
PublicCredentialRefreshEnvelopeValidator,
|
|
36850
|
+
JweCredentialRefreshEnvelopeValidator
|
|
36851
|
+
]);
|
|
36852
|
+
var CredentialRefreshFailureCodeValidator = external_exports.enum([
|
|
36853
|
+
"UNAVAILABLE",
|
|
36854
|
+
"TIMEOUT",
|
|
36855
|
+
"UNSUPPORTED_SERVICE",
|
|
36856
|
+
"UNAUTHORIZED",
|
|
36857
|
+
"MALFORMED_RESPONSE",
|
|
36858
|
+
"INVALID_PROOF",
|
|
36859
|
+
"ISSUER_MISMATCH",
|
|
36860
|
+
"ID_MISMATCH",
|
|
36861
|
+
"ROLLBACK",
|
|
36862
|
+
"REVOKED",
|
|
36863
|
+
"UNSAFE_ENDPOINT"
|
|
36864
|
+
]);
|
|
36865
|
+
var CredentialRefreshUpdatedResultValidator = external_exports.object({
|
|
36866
|
+
status: external_exports.literal("updated"),
|
|
36867
|
+
credential: VCValidator,
|
|
36868
|
+
etag: external_exports.string().optional(),
|
|
36869
|
+
managedVersion: external_exports.number().int().positive().optional()
|
|
36870
|
+
});
|
|
36871
|
+
var CredentialRefreshUnchangedResultValidator = external_exports.object({
|
|
36872
|
+
status: external_exports.literal("unchanged"),
|
|
36873
|
+
checkedAt: external_exports.string().min(1),
|
|
36874
|
+
etag: external_exports.string().optional()
|
|
36875
|
+
});
|
|
36876
|
+
var CredentialRefreshUnsupportedResultValidator = external_exports.object({
|
|
36877
|
+
status: external_exports.literal("unsupported")
|
|
36878
|
+
});
|
|
36879
|
+
var CredentialRefreshFailedResultValidator = external_exports.object({
|
|
36880
|
+
status: external_exports.literal("failed"),
|
|
36881
|
+
code: CredentialRefreshFailureCodeValidator,
|
|
36882
|
+
retryable: external_exports.boolean()
|
|
36883
|
+
});
|
|
36884
|
+
var CredentialRefreshResultValidator = external_exports.discriminatedUnion("status", [
|
|
36885
|
+
CredentialRefreshUpdatedResultValidator,
|
|
36886
|
+
CredentialRefreshUnchangedResultValidator,
|
|
36887
|
+
CredentialRefreshUnsupportedResultValidator,
|
|
36888
|
+
CredentialRefreshFailedResultValidator
|
|
36889
|
+
]);
|
|
36411
36890
|
|
|
36412
36891
|
// src/read.ts
|
|
36413
36892
|
var isTemplateRenderMethod = /* @__PURE__ */ __name((rm) => TemplateRenderMethodValidator.safeParse(rm).success, "isTemplateRenderMethod");
|