@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
|
@@ -4854,7 +4854,8 @@ var LCNNotificationTypeEnumValidator = z.enum([
|
|
|
4854
4854
|
"CONSENT_FLOW_TRANSACTION",
|
|
4855
4855
|
"ISSUANCE_CLAIMED",
|
|
4856
4856
|
"ISSUANCE_DELIVERED",
|
|
4857
|
-
"ISSUANCE_ERROR"
|
|
4857
|
+
"ISSUANCE_ERROR",
|
|
4858
|
+
"PROFILE_PARENT_APPROVED"
|
|
4858
4859
|
]);
|
|
4859
4860
|
var LCNNotificationMessageValidator = z.object({
|
|
4860
4861
|
title: z.string().optional(),
|
|
@@ -4864,7 +4865,13 @@ var LCNInboxContactMethodValidator = z.object({
|
|
|
4864
4865
|
type: z.string(),
|
|
4865
4866
|
value: z.string()
|
|
4866
4867
|
});
|
|
4867
|
-
var LCNInboxStatusEnumValidator = z.enum([
|
|
4868
|
+
var LCNInboxStatusEnumValidator = z.enum([
|
|
4869
|
+
"PENDING",
|
|
4870
|
+
"ISSUED",
|
|
4871
|
+
"EXPIRED",
|
|
4872
|
+
"DELIVERED",
|
|
4873
|
+
"CLAIMED"
|
|
4874
|
+
]);
|
|
4868
4875
|
var LCNNotificationInboxValidator = z.object({
|
|
4869
4876
|
issuanceId: z.string(),
|
|
4870
4877
|
status: LCNInboxStatusEnumValidator,
|
|
@@ -4962,11 +4969,19 @@ var ContactMethodVerificationValidator = z.object({
|
|
|
4962
4969
|
var SetPrimaryContactMethodValidator = z.object({
|
|
4963
4970
|
contactMethodId: z.string()
|
|
4964
4971
|
});
|
|
4972
|
+
var CreateContactMethodSessionValidator = z.object({
|
|
4973
|
+
contactMethod: ContactMethodVerificationRequestValidator,
|
|
4974
|
+
otpChallenge: z.string()
|
|
4975
|
+
});
|
|
4976
|
+
var CreateContactMethodSessionResponseValidator = z.object({
|
|
4977
|
+
sessionJwt: z.string()
|
|
4978
|
+
});
|
|
4965
4979
|
var InboxCredentialValidator = z.object({
|
|
4966
4980
|
id: z.string(),
|
|
4967
4981
|
credential: z.string(),
|
|
4968
4982
|
isSigned: z.boolean(),
|
|
4969
4983
|
currentStatus: LCNInboxStatusEnumValidator,
|
|
4984
|
+
isAccepted: z.boolean().optional(),
|
|
4970
4985
|
expiresAt: z.string(),
|
|
4971
4986
|
createdAt: z.string(),
|
|
4972
4987
|
issuerDid: z.string(),
|
|
@@ -4985,6 +5000,7 @@ var InboxCredentialQueryValidator = z.object({
|
|
|
4985
5000
|
currentStatus: LCNInboxStatusEnumValidator,
|
|
4986
5001
|
id: z.string(),
|
|
4987
5002
|
isSigned: z.boolean(),
|
|
5003
|
+
isAccepted: z.boolean().optional(),
|
|
4988
5004
|
issuerDid: z.string()
|
|
4989
5005
|
}).partial();
|
|
4990
5006
|
var IssueInboxSigningAuthorityValidator = z.object({
|
|
@@ -5026,6 +5042,51 @@ var IssueInboxCredentialResponseValidator = z.object({
|
|
|
5026
5042
|
claimUrl: z.string().url().optional(),
|
|
5027
5043
|
recipientDid: z.string().optional()
|
|
5028
5044
|
});
|
|
5045
|
+
var ClaimInboxCredentialValidator = z.object({
|
|
5046
|
+
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe("The credential to issue."),
|
|
5047
|
+
configuration: z.object({
|
|
5048
|
+
publishableKey: z.string(),
|
|
5049
|
+
signingAuthorityName: z.string().optional()
|
|
5050
|
+
}).optional()
|
|
5051
|
+
});
|
|
5052
|
+
var LCNDomainOrOriginValidator = z.union([
|
|
5053
|
+
z.string().regex(
|
|
5054
|
+
/^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
|
|
5055
|
+
{
|
|
5056
|
+
message: "Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"
|
|
5057
|
+
}
|
|
5058
|
+
),
|
|
5059
|
+
z.string().regex(
|
|
5060
|
+
/^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
|
|
5061
|
+
{ message: "Must be a valid http(s) origin" }
|
|
5062
|
+
)
|
|
5063
|
+
]);
|
|
5064
|
+
var LCNIntegrationValidator = z.object({
|
|
5065
|
+
id: z.string(),
|
|
5066
|
+
name: z.string(),
|
|
5067
|
+
description: z.string().optional(),
|
|
5068
|
+
publishableKey: z.string(),
|
|
5069
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
|
|
5070
|
+
});
|
|
5071
|
+
var LCNIntegrationCreateValidator = z.object({
|
|
5072
|
+
name: z.string(),
|
|
5073
|
+
description: z.string().optional(),
|
|
5074
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
|
|
5075
|
+
});
|
|
5076
|
+
var LCNIntegrationUpdateValidator = z.object({
|
|
5077
|
+
name: z.string().optional(),
|
|
5078
|
+
description: z.string().optional(),
|
|
5079
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).optional(),
|
|
5080
|
+
rotatePublishableKey: z.boolean().optional()
|
|
5081
|
+
});
|
|
5082
|
+
var LCNIntegrationQueryValidator = z.object({
|
|
5083
|
+
id: StringQuery,
|
|
5084
|
+
name: StringQuery,
|
|
5085
|
+
description: StringQuery
|
|
5086
|
+
}).partial();
|
|
5087
|
+
var PaginatedLCNIntegrationsValidator = PaginationResponseValidator.extend({
|
|
5088
|
+
records: LCNIntegrationValidator.array()
|
|
5089
|
+
});
|
|
5029
5090
|
var ClaimTokenValidator = z.object({
|
|
5030
5091
|
token: z.string(),
|
|
5031
5092
|
contactMethodId: z.string(),
|