@learncard/learn-card-plugin 1.1.61 → 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 +61 -1
- 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 +61 -1
- package/dist/learn-card-plugin.esm.js.map +2 -2
- package/package.json +4 -4
|
@@ -4841,7 +4841,13 @@ var LCNInboxContactMethodValidator = z.object({
|
|
|
4841
4841
|
type: z.string(),
|
|
4842
4842
|
value: z.string()
|
|
4843
4843
|
});
|
|
4844
|
-
var LCNInboxStatusEnumValidator = z.enum([
|
|
4844
|
+
var LCNInboxStatusEnumValidator = z.enum([
|
|
4845
|
+
"PENDING",
|
|
4846
|
+
"ISSUED",
|
|
4847
|
+
"EXPIRED",
|
|
4848
|
+
"DELIVERED",
|
|
4849
|
+
"CLAIMED"
|
|
4850
|
+
]);
|
|
4845
4851
|
var LCNNotificationInboxValidator = z.object({
|
|
4846
4852
|
issuanceId: z.string(),
|
|
4847
4853
|
status: LCNInboxStatusEnumValidator,
|
|
@@ -4939,11 +4945,19 @@ var ContactMethodVerificationValidator = z.object({
|
|
|
4939
4945
|
var SetPrimaryContactMethodValidator = z.object({
|
|
4940
4946
|
contactMethodId: z.string()
|
|
4941
4947
|
});
|
|
4948
|
+
var CreateContactMethodSessionValidator = z.object({
|
|
4949
|
+
contactMethod: ContactMethodVerificationRequestValidator,
|
|
4950
|
+
otpChallenge: z.string()
|
|
4951
|
+
});
|
|
4952
|
+
var CreateContactMethodSessionResponseValidator = z.object({
|
|
4953
|
+
sessionJwt: z.string()
|
|
4954
|
+
});
|
|
4942
4955
|
var InboxCredentialValidator = z.object({
|
|
4943
4956
|
id: z.string(),
|
|
4944
4957
|
credential: z.string(),
|
|
4945
4958
|
isSigned: z.boolean(),
|
|
4946
4959
|
currentStatus: LCNInboxStatusEnumValidator,
|
|
4960
|
+
isAccepted: z.boolean().optional(),
|
|
4947
4961
|
expiresAt: z.string(),
|
|
4948
4962
|
createdAt: z.string(),
|
|
4949
4963
|
issuerDid: z.string(),
|
|
@@ -4962,6 +4976,7 @@ var InboxCredentialQueryValidator = z.object({
|
|
|
4962
4976
|
currentStatus: LCNInboxStatusEnumValidator,
|
|
4963
4977
|
id: z.string(),
|
|
4964
4978
|
isSigned: z.boolean(),
|
|
4979
|
+
isAccepted: z.boolean().optional(),
|
|
4965
4980
|
issuerDid: z.string()
|
|
4966
4981
|
}).partial();
|
|
4967
4982
|
var IssueInboxSigningAuthorityValidator = z.object({
|
|
@@ -5003,6 +5018,51 @@ var IssueInboxCredentialResponseValidator = z.object({
|
|
|
5003
5018
|
claimUrl: z.string().url().optional(),
|
|
5004
5019
|
recipientDid: z.string().optional()
|
|
5005
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
|
+
});
|
|
5006
5066
|
var ClaimTokenValidator = z.object({
|
|
5007
5067
|
token: z.string(),
|
|
5008
5068
|
contactMethodId: z.string(),
|