@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.
@@ -54766,7 +54766,13 @@ var LCNInboxContactMethodValidator = z.object({
54766
54766
  type: z.string(),
54767
54767
  value: z.string()
54768
54768
  });
54769
- var LCNInboxStatusEnumValidator = z.enum(["PENDING", "DELIVERED", "CLAIMED", "EXPIRED"]);
54769
+ var LCNInboxStatusEnumValidator = z.enum([
54770
+ "PENDING",
54771
+ "ISSUED",
54772
+ "EXPIRED",
54773
+ "DELIVERED",
54774
+ "CLAIMED"
54775
+ ]);
54770
54776
  var LCNNotificationInboxValidator = z.object({
54771
54777
  issuanceId: z.string(),
54772
54778
  status: LCNInboxStatusEnumValidator,
@@ -54864,11 +54870,19 @@ var ContactMethodVerificationValidator = z.object({
54864
54870
  var SetPrimaryContactMethodValidator = z.object({
54865
54871
  contactMethodId: z.string()
54866
54872
  });
54873
+ var CreateContactMethodSessionValidator = z.object({
54874
+ contactMethod: ContactMethodVerificationRequestValidator,
54875
+ otpChallenge: z.string()
54876
+ });
54877
+ var CreateContactMethodSessionResponseValidator = z.object({
54878
+ sessionJwt: z.string()
54879
+ });
54867
54880
  var InboxCredentialValidator = z.object({
54868
54881
  id: z.string(),
54869
54882
  credential: z.string(),
54870
54883
  isSigned: z.boolean(),
54871
54884
  currentStatus: LCNInboxStatusEnumValidator,
54885
+ isAccepted: z.boolean().optional(),
54872
54886
  expiresAt: z.string(),
54873
54887
  createdAt: z.string(),
54874
54888
  issuerDid: z.string(),
@@ -54887,6 +54901,7 @@ var InboxCredentialQueryValidator = z.object({
54887
54901
  currentStatus: LCNInboxStatusEnumValidator,
54888
54902
  id: z.string(),
54889
54903
  isSigned: z.boolean(),
54904
+ isAccepted: z.boolean().optional(),
54890
54905
  issuerDid: z.string()
54891
54906
  }).partial();
54892
54907
  var IssueInboxSigningAuthorityValidator = z.object({
@@ -54928,6 +54943,51 @@ var IssueInboxCredentialResponseValidator = z.object({
54928
54943
  claimUrl: z.string().url().optional(),
54929
54944
  recipientDid: z.string().optional()
54930
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
+ });
54931
54991
  var ClaimTokenValidator = z.object({
54932
54992
  token: z.string(),
54933
54993
  contactMethodId: z.string(),