@learncard/learn-card-plugin 1.1.60 → 1.1.62
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/learn-card-plugin.cjs.development.js +63 -2
- package/dist/learn-card-plugin.cjs.development.js.map +2 -2
- package/dist/learn-card-plugin.cjs.production.min.js +1 -1
- package/dist/learn-card-plugin.cjs.production.min.js.map +3 -3
- package/dist/learn-card-plugin.esm.js +63 -2
- package/dist/learn-card-plugin.esm.js.map +2 -2
- package/package.json +4 -4
|
@@ -4830,7 +4830,8 @@ var LCNNotificationTypeEnumValidator = z.enum([
|
|
|
4830
4830
|
"CONSENT_FLOW_TRANSACTION",
|
|
4831
4831
|
"ISSUANCE_CLAIMED",
|
|
4832
4832
|
"ISSUANCE_DELIVERED",
|
|
4833
|
-
"ISSUANCE_ERROR"
|
|
4833
|
+
"ISSUANCE_ERROR",
|
|
4834
|
+
"PROFILE_PARENT_APPROVED"
|
|
4834
4835
|
]);
|
|
4835
4836
|
var LCNNotificationMessageValidator = z.object({
|
|
4836
4837
|
title: z.string().optional(),
|
|
@@ -4840,7 +4841,13 @@ var LCNInboxContactMethodValidator = z.object({
|
|
|
4840
4841
|
type: z.string(),
|
|
4841
4842
|
value: z.string()
|
|
4842
4843
|
});
|
|
4843
|
-
var LCNInboxStatusEnumValidator = z.enum([
|
|
4844
|
+
var LCNInboxStatusEnumValidator = z.enum([
|
|
4845
|
+
"PENDING",
|
|
4846
|
+
"ISSUED",
|
|
4847
|
+
"EXPIRED",
|
|
4848
|
+
"DELIVERED",
|
|
4849
|
+
"CLAIMED"
|
|
4850
|
+
]);
|
|
4844
4851
|
var LCNNotificationInboxValidator = z.object({
|
|
4845
4852
|
issuanceId: z.string(),
|
|
4846
4853
|
status: LCNInboxStatusEnumValidator,
|
|
@@ -4938,11 +4945,19 @@ var ContactMethodVerificationValidator = z.object({
|
|
|
4938
4945
|
var SetPrimaryContactMethodValidator = z.object({
|
|
4939
4946
|
contactMethodId: z.string()
|
|
4940
4947
|
});
|
|
4948
|
+
var CreateContactMethodSessionValidator = z.object({
|
|
4949
|
+
contactMethod: ContactMethodVerificationRequestValidator,
|
|
4950
|
+
otpChallenge: z.string()
|
|
4951
|
+
});
|
|
4952
|
+
var CreateContactMethodSessionResponseValidator = z.object({
|
|
4953
|
+
sessionJwt: z.string()
|
|
4954
|
+
});
|
|
4941
4955
|
var InboxCredentialValidator = z.object({
|
|
4942
4956
|
id: z.string(),
|
|
4943
4957
|
credential: z.string(),
|
|
4944
4958
|
isSigned: z.boolean(),
|
|
4945
4959
|
currentStatus: LCNInboxStatusEnumValidator,
|
|
4960
|
+
isAccepted: z.boolean().optional(),
|
|
4946
4961
|
expiresAt: z.string(),
|
|
4947
4962
|
createdAt: z.string(),
|
|
4948
4963
|
issuerDid: z.string(),
|
|
@@ -4961,6 +4976,7 @@ var InboxCredentialQueryValidator = z.object({
|
|
|
4961
4976
|
currentStatus: LCNInboxStatusEnumValidator,
|
|
4962
4977
|
id: z.string(),
|
|
4963
4978
|
isSigned: z.boolean(),
|
|
4979
|
+
isAccepted: z.boolean().optional(),
|
|
4964
4980
|
issuerDid: z.string()
|
|
4965
4981
|
}).partial();
|
|
4966
4982
|
var IssueInboxSigningAuthorityValidator = z.object({
|
|
@@ -5002,6 +5018,51 @@ var IssueInboxCredentialResponseValidator = z.object({
|
|
|
5002
5018
|
claimUrl: z.string().url().optional(),
|
|
5003
5019
|
recipientDid: z.string().optional()
|
|
5004
5020
|
});
|
|
5021
|
+
var ClaimInboxCredentialValidator = z.object({
|
|
5022
|
+
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe("The credential to issue."),
|
|
5023
|
+
configuration: z.object({
|
|
5024
|
+
publishableKey: z.string(),
|
|
5025
|
+
signingAuthorityName: z.string().optional()
|
|
5026
|
+
}).optional()
|
|
5027
|
+
});
|
|
5028
|
+
var LCNDomainOrOriginValidator = z.union([
|
|
5029
|
+
z.string().regex(
|
|
5030
|
+
/^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
|
|
5031
|
+
{
|
|
5032
|
+
message: "Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"
|
|
5033
|
+
}
|
|
5034
|
+
),
|
|
5035
|
+
z.string().regex(
|
|
5036
|
+
/^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
|
|
5037
|
+
{ message: "Must be a valid http(s) origin" }
|
|
5038
|
+
)
|
|
5039
|
+
]);
|
|
5040
|
+
var LCNIntegrationValidator = z.object({
|
|
5041
|
+
id: z.string(),
|
|
5042
|
+
name: z.string(),
|
|
5043
|
+
description: z.string().optional(),
|
|
5044
|
+
publishableKey: z.string(),
|
|
5045
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
|
|
5046
|
+
});
|
|
5047
|
+
var LCNIntegrationCreateValidator = z.object({
|
|
5048
|
+
name: z.string(),
|
|
5049
|
+
description: z.string().optional(),
|
|
5050
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
|
|
5051
|
+
});
|
|
5052
|
+
var LCNIntegrationUpdateValidator = z.object({
|
|
5053
|
+
name: z.string().optional(),
|
|
5054
|
+
description: z.string().optional(),
|
|
5055
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).optional(),
|
|
5056
|
+
rotatePublishableKey: z.boolean().optional()
|
|
5057
|
+
});
|
|
5058
|
+
var LCNIntegrationQueryValidator = z.object({
|
|
5059
|
+
id: StringQuery,
|
|
5060
|
+
name: StringQuery,
|
|
5061
|
+
description: StringQuery
|
|
5062
|
+
}).partial();
|
|
5063
|
+
var PaginatedLCNIntegrationsValidator = PaginationResponseValidator.extend({
|
|
5064
|
+
records: LCNIntegrationValidator.array()
|
|
5065
|
+
});
|
|
5005
5066
|
var ClaimTokenValidator = z.object({
|
|
5006
5067
|
token: z.string(),
|
|
5007
5068
|
contactMethodId: z.string(),
|