@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
|
@@ -54751,7 +54751,8 @@ var LCNNotificationTypeEnumValidator = z.enum([
|
|
|
54751
54751
|
"CONSENT_FLOW_TRANSACTION",
|
|
54752
54752
|
"ISSUANCE_CLAIMED",
|
|
54753
54753
|
"ISSUANCE_DELIVERED",
|
|
54754
|
-
"ISSUANCE_ERROR"
|
|
54754
|
+
"ISSUANCE_ERROR",
|
|
54755
|
+
"PROFILE_PARENT_APPROVED"
|
|
54755
54756
|
]);
|
|
54756
54757
|
var LCNNotificationMessageValidator = z.object({
|
|
54757
54758
|
title: z.string().optional(),
|
|
@@ -54761,7 +54762,13 @@ var LCNInboxContactMethodValidator = z.object({
|
|
|
54761
54762
|
type: z.string(),
|
|
54762
54763
|
value: z.string()
|
|
54763
54764
|
});
|
|
54764
|
-
var LCNInboxStatusEnumValidator = z.enum([
|
|
54765
|
+
var LCNInboxStatusEnumValidator = z.enum([
|
|
54766
|
+
"PENDING",
|
|
54767
|
+
"ISSUED",
|
|
54768
|
+
"EXPIRED",
|
|
54769
|
+
"DELIVERED",
|
|
54770
|
+
"CLAIMED"
|
|
54771
|
+
]);
|
|
54765
54772
|
var LCNNotificationInboxValidator = z.object({
|
|
54766
54773
|
issuanceId: z.string(),
|
|
54767
54774
|
status: LCNInboxStatusEnumValidator,
|
|
@@ -54859,11 +54866,19 @@ var ContactMethodVerificationValidator = z.object({
|
|
|
54859
54866
|
var SetPrimaryContactMethodValidator = z.object({
|
|
54860
54867
|
contactMethodId: z.string()
|
|
54861
54868
|
});
|
|
54869
|
+
var CreateContactMethodSessionValidator = z.object({
|
|
54870
|
+
contactMethod: ContactMethodVerificationRequestValidator,
|
|
54871
|
+
otpChallenge: z.string()
|
|
54872
|
+
});
|
|
54873
|
+
var CreateContactMethodSessionResponseValidator = z.object({
|
|
54874
|
+
sessionJwt: z.string()
|
|
54875
|
+
});
|
|
54862
54876
|
var InboxCredentialValidator = z.object({
|
|
54863
54877
|
id: z.string(),
|
|
54864
54878
|
credential: z.string(),
|
|
54865
54879
|
isSigned: z.boolean(),
|
|
54866
54880
|
currentStatus: LCNInboxStatusEnumValidator,
|
|
54881
|
+
isAccepted: z.boolean().optional(),
|
|
54867
54882
|
expiresAt: z.string(),
|
|
54868
54883
|
createdAt: z.string(),
|
|
54869
54884
|
issuerDid: z.string(),
|
|
@@ -54882,6 +54897,7 @@ var InboxCredentialQueryValidator = z.object({
|
|
|
54882
54897
|
currentStatus: LCNInboxStatusEnumValidator,
|
|
54883
54898
|
id: z.string(),
|
|
54884
54899
|
isSigned: z.boolean(),
|
|
54900
|
+
isAccepted: z.boolean().optional(),
|
|
54885
54901
|
issuerDid: z.string()
|
|
54886
54902
|
}).partial();
|
|
54887
54903
|
var IssueInboxSigningAuthorityValidator = z.object({
|
|
@@ -54923,6 +54939,51 @@ var IssueInboxCredentialResponseValidator = z.object({
|
|
|
54923
54939
|
claimUrl: z.string().url().optional(),
|
|
54924
54940
|
recipientDid: z.string().optional()
|
|
54925
54941
|
});
|
|
54942
|
+
var ClaimInboxCredentialValidator = z.object({
|
|
54943
|
+
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe("The credential to issue."),
|
|
54944
|
+
configuration: z.object({
|
|
54945
|
+
publishableKey: z.string(),
|
|
54946
|
+
signingAuthorityName: z.string().optional()
|
|
54947
|
+
}).optional()
|
|
54948
|
+
});
|
|
54949
|
+
var LCNDomainOrOriginValidator = z.union([
|
|
54950
|
+
z.string().regex(
|
|
54951
|
+
/^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
|
|
54952
|
+
{
|
|
54953
|
+
message: "Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"
|
|
54954
|
+
}
|
|
54955
|
+
),
|
|
54956
|
+
z.string().regex(
|
|
54957
|
+
/^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
|
|
54958
|
+
{ message: "Must be a valid http(s) origin" }
|
|
54959
|
+
)
|
|
54960
|
+
]);
|
|
54961
|
+
var LCNIntegrationValidator = z.object({
|
|
54962
|
+
id: z.string(),
|
|
54963
|
+
name: z.string(),
|
|
54964
|
+
description: z.string().optional(),
|
|
54965
|
+
publishableKey: z.string(),
|
|
54966
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
|
|
54967
|
+
});
|
|
54968
|
+
var LCNIntegrationCreateValidator = z.object({
|
|
54969
|
+
name: z.string(),
|
|
54970
|
+
description: z.string().optional(),
|
|
54971
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
|
|
54972
|
+
});
|
|
54973
|
+
var LCNIntegrationUpdateValidator = z.object({
|
|
54974
|
+
name: z.string().optional(),
|
|
54975
|
+
description: z.string().optional(),
|
|
54976
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).optional(),
|
|
54977
|
+
rotatePublishableKey: z.boolean().optional()
|
|
54978
|
+
});
|
|
54979
|
+
var LCNIntegrationQueryValidator = z.object({
|
|
54980
|
+
id: StringQuery,
|
|
54981
|
+
name: StringQuery,
|
|
54982
|
+
description: StringQuery
|
|
54983
|
+
}).partial();
|
|
54984
|
+
var PaginatedLCNIntegrationsValidator = PaginationResponseValidator.extend({
|
|
54985
|
+
records: LCNIntegrationValidator.array()
|
|
54986
|
+
});
|
|
54926
54987
|
var ClaimTokenValidator = z.object({
|
|
54927
54988
|
token: z.string(),
|
|
54928
54989
|
contactMethodId: z.string(),
|