@learncard/ceramic-plugin 1.0.50 → 1.0.52
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/ceramic-plugin.cjs.development.js +63 -2
- package/dist/ceramic-plugin.cjs.development.js.map +2 -2
- package/dist/ceramic-plugin.cjs.production.min.js +66 -66
- package/dist/ceramic-plugin.cjs.production.min.js.map +3 -3
- package/dist/ceramic-plugin.esm.js +63 -2
- package/dist/ceramic-plugin.esm.js.map +2 -2
- package/package.json +4 -4
|
@@ -54755,7 +54755,8 @@ var LCNNotificationTypeEnumValidator = z.enum([
|
|
|
54755
54755
|
"CONSENT_FLOW_TRANSACTION",
|
|
54756
54756
|
"ISSUANCE_CLAIMED",
|
|
54757
54757
|
"ISSUANCE_DELIVERED",
|
|
54758
|
-
"ISSUANCE_ERROR"
|
|
54758
|
+
"ISSUANCE_ERROR",
|
|
54759
|
+
"PROFILE_PARENT_APPROVED"
|
|
54759
54760
|
]);
|
|
54760
54761
|
var LCNNotificationMessageValidator = z.object({
|
|
54761
54762
|
title: z.string().optional(),
|
|
@@ -54765,7 +54766,13 @@ var LCNInboxContactMethodValidator = z.object({
|
|
|
54765
54766
|
type: z.string(),
|
|
54766
54767
|
value: z.string()
|
|
54767
54768
|
});
|
|
54768
|
-
var LCNInboxStatusEnumValidator = z.enum([
|
|
54769
|
+
var LCNInboxStatusEnumValidator = z.enum([
|
|
54770
|
+
"PENDING",
|
|
54771
|
+
"ISSUED",
|
|
54772
|
+
"EXPIRED",
|
|
54773
|
+
"DELIVERED",
|
|
54774
|
+
"CLAIMED"
|
|
54775
|
+
]);
|
|
54769
54776
|
var LCNNotificationInboxValidator = z.object({
|
|
54770
54777
|
issuanceId: z.string(),
|
|
54771
54778
|
status: LCNInboxStatusEnumValidator,
|
|
@@ -54863,11 +54870,19 @@ var ContactMethodVerificationValidator = z.object({
|
|
|
54863
54870
|
var SetPrimaryContactMethodValidator = z.object({
|
|
54864
54871
|
contactMethodId: z.string()
|
|
54865
54872
|
});
|
|
54873
|
+
var CreateContactMethodSessionValidator = z.object({
|
|
54874
|
+
contactMethod: ContactMethodVerificationRequestValidator,
|
|
54875
|
+
otpChallenge: z.string()
|
|
54876
|
+
});
|
|
54877
|
+
var CreateContactMethodSessionResponseValidator = z.object({
|
|
54878
|
+
sessionJwt: z.string()
|
|
54879
|
+
});
|
|
54866
54880
|
var InboxCredentialValidator = z.object({
|
|
54867
54881
|
id: z.string(),
|
|
54868
54882
|
credential: z.string(),
|
|
54869
54883
|
isSigned: z.boolean(),
|
|
54870
54884
|
currentStatus: LCNInboxStatusEnumValidator,
|
|
54885
|
+
isAccepted: z.boolean().optional(),
|
|
54871
54886
|
expiresAt: z.string(),
|
|
54872
54887
|
createdAt: z.string(),
|
|
54873
54888
|
issuerDid: z.string(),
|
|
@@ -54886,6 +54901,7 @@ var InboxCredentialQueryValidator = z.object({
|
|
|
54886
54901
|
currentStatus: LCNInboxStatusEnumValidator,
|
|
54887
54902
|
id: z.string(),
|
|
54888
54903
|
isSigned: z.boolean(),
|
|
54904
|
+
isAccepted: z.boolean().optional(),
|
|
54889
54905
|
issuerDid: z.string()
|
|
54890
54906
|
}).partial();
|
|
54891
54907
|
var IssueInboxSigningAuthorityValidator = z.object({
|
|
@@ -54927,6 +54943,51 @@ var IssueInboxCredentialResponseValidator = z.object({
|
|
|
54927
54943
|
claimUrl: z.string().url().optional(),
|
|
54928
54944
|
recipientDid: z.string().optional()
|
|
54929
54945
|
});
|
|
54946
|
+
var ClaimInboxCredentialValidator = z.object({
|
|
54947
|
+
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe("The credential to issue."),
|
|
54948
|
+
configuration: z.object({
|
|
54949
|
+
publishableKey: z.string(),
|
|
54950
|
+
signingAuthorityName: z.string().optional()
|
|
54951
|
+
}).optional()
|
|
54952
|
+
});
|
|
54953
|
+
var LCNDomainOrOriginValidator = z.union([
|
|
54954
|
+
z.string().regex(
|
|
54955
|
+
/^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
|
|
54956
|
+
{
|
|
54957
|
+
message: "Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"
|
|
54958
|
+
}
|
|
54959
|
+
),
|
|
54960
|
+
z.string().regex(
|
|
54961
|
+
/^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
|
|
54962
|
+
{ message: "Must be a valid http(s) origin" }
|
|
54963
|
+
)
|
|
54964
|
+
]);
|
|
54965
|
+
var LCNIntegrationValidator = z.object({
|
|
54966
|
+
id: z.string(),
|
|
54967
|
+
name: z.string(),
|
|
54968
|
+
description: z.string().optional(),
|
|
54969
|
+
publishableKey: z.string(),
|
|
54970
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
|
|
54971
|
+
});
|
|
54972
|
+
var LCNIntegrationCreateValidator = z.object({
|
|
54973
|
+
name: z.string(),
|
|
54974
|
+
description: z.string().optional(),
|
|
54975
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
|
|
54976
|
+
});
|
|
54977
|
+
var LCNIntegrationUpdateValidator = z.object({
|
|
54978
|
+
name: z.string().optional(),
|
|
54979
|
+
description: z.string().optional(),
|
|
54980
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).optional(),
|
|
54981
|
+
rotatePublishableKey: z.boolean().optional()
|
|
54982
|
+
});
|
|
54983
|
+
var LCNIntegrationQueryValidator = z.object({
|
|
54984
|
+
id: StringQuery,
|
|
54985
|
+
name: StringQuery,
|
|
54986
|
+
description: StringQuery
|
|
54987
|
+
}).partial();
|
|
54988
|
+
var PaginatedLCNIntegrationsValidator = PaginationResponseValidator.extend({
|
|
54989
|
+
records: LCNIntegrationValidator.array()
|
|
54990
|
+
});
|
|
54930
54991
|
var ClaimTokenValidator = z.object({
|
|
54931
54992
|
token: z.string(),
|
|
54932
54993
|
contactMethodId: z.string(),
|