@learncard/ceramic-plugin 1.0.51 → 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 +61 -1
- 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 +61 -1
- package/dist/ceramic-plugin.esm.js.map +2 -2
- package/package.json +4 -4
|
@@ -54762,7 +54762,13 @@ var LCNInboxContactMethodValidator = z.object({
|
|
|
54762
54762
|
type: z.string(),
|
|
54763
54763
|
value: z.string()
|
|
54764
54764
|
});
|
|
54765
|
-
var LCNInboxStatusEnumValidator = z.enum([
|
|
54765
|
+
var LCNInboxStatusEnumValidator = z.enum([
|
|
54766
|
+
"PENDING",
|
|
54767
|
+
"ISSUED",
|
|
54768
|
+
"EXPIRED",
|
|
54769
|
+
"DELIVERED",
|
|
54770
|
+
"CLAIMED"
|
|
54771
|
+
]);
|
|
54766
54772
|
var LCNNotificationInboxValidator = z.object({
|
|
54767
54773
|
issuanceId: z.string(),
|
|
54768
54774
|
status: LCNInboxStatusEnumValidator,
|
|
@@ -54860,11 +54866,19 @@ var ContactMethodVerificationValidator = z.object({
|
|
|
54860
54866
|
var SetPrimaryContactMethodValidator = z.object({
|
|
54861
54867
|
contactMethodId: z.string()
|
|
54862
54868
|
});
|
|
54869
|
+
var CreateContactMethodSessionValidator = z.object({
|
|
54870
|
+
contactMethod: ContactMethodVerificationRequestValidator,
|
|
54871
|
+
otpChallenge: z.string()
|
|
54872
|
+
});
|
|
54873
|
+
var CreateContactMethodSessionResponseValidator = z.object({
|
|
54874
|
+
sessionJwt: z.string()
|
|
54875
|
+
});
|
|
54863
54876
|
var InboxCredentialValidator = z.object({
|
|
54864
54877
|
id: z.string(),
|
|
54865
54878
|
credential: z.string(),
|
|
54866
54879
|
isSigned: z.boolean(),
|
|
54867
54880
|
currentStatus: LCNInboxStatusEnumValidator,
|
|
54881
|
+
isAccepted: z.boolean().optional(),
|
|
54868
54882
|
expiresAt: z.string(),
|
|
54869
54883
|
createdAt: z.string(),
|
|
54870
54884
|
issuerDid: z.string(),
|
|
@@ -54883,6 +54897,7 @@ var InboxCredentialQueryValidator = z.object({
|
|
|
54883
54897
|
currentStatus: LCNInboxStatusEnumValidator,
|
|
54884
54898
|
id: z.string(),
|
|
54885
54899
|
isSigned: z.boolean(),
|
|
54900
|
+
isAccepted: z.boolean().optional(),
|
|
54886
54901
|
issuerDid: z.string()
|
|
54887
54902
|
}).partial();
|
|
54888
54903
|
var IssueInboxSigningAuthorityValidator = z.object({
|
|
@@ -54924,6 +54939,51 @@ var IssueInboxCredentialResponseValidator = z.object({
|
|
|
54924
54939
|
claimUrl: z.string().url().optional(),
|
|
54925
54940
|
recipientDid: z.string().optional()
|
|
54926
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
|
+
});
|
|
54927
54987
|
var ClaimTokenValidator = z.object({
|
|
54928
54988
|
token: z.string(),
|
|
54929
54989
|
contactMethodId: z.string(),
|