@learncard/idx-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.
@@ -12430,7 +12430,13 @@ var LCNInboxContactMethodValidator = z.object({
12430
12430
  type: z.string(),
12431
12431
  value: z.string()
12432
12432
  });
12433
- var LCNInboxStatusEnumValidator = z.enum(["PENDING", "DELIVERED", "CLAIMED", "EXPIRED"]);
12433
+ var LCNInboxStatusEnumValidator = z.enum([
12434
+ "PENDING",
12435
+ "ISSUED",
12436
+ "EXPIRED",
12437
+ "DELIVERED",
12438
+ "CLAIMED"
12439
+ ]);
12434
12440
  var LCNNotificationInboxValidator = z.object({
12435
12441
  issuanceId: z.string(),
12436
12442
  status: LCNInboxStatusEnumValidator,
@@ -12528,11 +12534,19 @@ var ContactMethodVerificationValidator = z.object({
12528
12534
  var SetPrimaryContactMethodValidator = z.object({
12529
12535
  contactMethodId: z.string()
12530
12536
  });
12537
+ var CreateContactMethodSessionValidator = z.object({
12538
+ contactMethod: ContactMethodVerificationRequestValidator,
12539
+ otpChallenge: z.string()
12540
+ });
12541
+ var CreateContactMethodSessionResponseValidator = z.object({
12542
+ sessionJwt: z.string()
12543
+ });
12531
12544
  var InboxCredentialValidator = z.object({
12532
12545
  id: z.string(),
12533
12546
  credential: z.string(),
12534
12547
  isSigned: z.boolean(),
12535
12548
  currentStatus: LCNInboxStatusEnumValidator,
12549
+ isAccepted: z.boolean().optional(),
12536
12550
  expiresAt: z.string(),
12537
12551
  createdAt: z.string(),
12538
12552
  issuerDid: z.string(),
@@ -12551,6 +12565,7 @@ var InboxCredentialQueryValidator = z.object({
12551
12565
  currentStatus: LCNInboxStatusEnumValidator,
12552
12566
  id: z.string(),
12553
12567
  isSigned: z.boolean(),
12568
+ isAccepted: z.boolean().optional(),
12554
12569
  issuerDid: z.string()
12555
12570
  }).partial();
12556
12571
  var IssueInboxSigningAuthorityValidator = z.object({
@@ -12592,6 +12607,51 @@ var IssueInboxCredentialResponseValidator = z.object({
12592
12607
  claimUrl: z.string().url().optional(),
12593
12608
  recipientDid: z.string().optional()
12594
12609
  });
12610
+ var ClaimInboxCredentialValidator = z.object({
12611
+ credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe("The credential to issue."),
12612
+ configuration: z.object({
12613
+ publishableKey: z.string(),
12614
+ signingAuthorityName: z.string().optional()
12615
+ }).optional()
12616
+ });
12617
+ var LCNDomainOrOriginValidator = z.union([
12618
+ z.string().regex(
12619
+ /^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
12620
+ {
12621
+ message: "Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"
12622
+ }
12623
+ ),
12624
+ z.string().regex(
12625
+ /^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
12626
+ { message: "Must be a valid http(s) origin" }
12627
+ )
12628
+ ]);
12629
+ var LCNIntegrationValidator = z.object({
12630
+ id: z.string(),
12631
+ name: z.string(),
12632
+ description: z.string().optional(),
12633
+ publishableKey: z.string(),
12634
+ whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
12635
+ });
12636
+ var LCNIntegrationCreateValidator = z.object({
12637
+ name: z.string(),
12638
+ description: z.string().optional(),
12639
+ whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
12640
+ });
12641
+ var LCNIntegrationUpdateValidator = z.object({
12642
+ name: z.string().optional(),
12643
+ description: z.string().optional(),
12644
+ whitelistedDomains: z.array(LCNDomainOrOriginValidator).optional(),
12645
+ rotatePublishableKey: z.boolean().optional()
12646
+ });
12647
+ var LCNIntegrationQueryValidator = z.object({
12648
+ id: StringQuery,
12649
+ name: StringQuery,
12650
+ description: StringQuery
12651
+ }).partial();
12652
+ var PaginatedLCNIntegrationsValidator = PaginationResponseValidator.extend({
12653
+ records: LCNIntegrationValidator.array()
12654
+ });
12595
12655
  var ClaimTokenValidator = z.object({
12596
12656
  token: z.string(),
12597
12657
  contactMethodId: z.string(),
@@ -68316,7 +68376,13 @@ var LCNInboxContactMethodValidator2 = z2.object({
68316
68376
  type: z2.string(),
68317
68377
  value: z2.string()
68318
68378
  });
68319
- var LCNInboxStatusEnumValidator2 = z2.enum(["PENDING", "DELIVERED", "CLAIMED", "EXPIRED"]);
68379
+ var LCNInboxStatusEnumValidator2 = z2.enum([
68380
+ "PENDING",
68381
+ "ISSUED",
68382
+ "EXPIRED",
68383
+ "DELIVERED",
68384
+ "CLAIMED"
68385
+ ]);
68320
68386
  var LCNNotificationInboxValidator2 = z2.object({
68321
68387
  issuanceId: z2.string(),
68322
68388
  status: LCNInboxStatusEnumValidator2,
@@ -68414,11 +68480,19 @@ var ContactMethodVerificationValidator2 = z2.object({
68414
68480
  var SetPrimaryContactMethodValidator2 = z2.object({
68415
68481
  contactMethodId: z2.string()
68416
68482
  });
68483
+ var CreateContactMethodSessionValidator2 = z2.object({
68484
+ contactMethod: ContactMethodVerificationRequestValidator2,
68485
+ otpChallenge: z2.string()
68486
+ });
68487
+ var CreateContactMethodSessionResponseValidator2 = z2.object({
68488
+ sessionJwt: z2.string()
68489
+ });
68417
68490
  var InboxCredentialValidator2 = z2.object({
68418
68491
  id: z2.string(),
68419
68492
  credential: z2.string(),
68420
68493
  isSigned: z2.boolean(),
68421
68494
  currentStatus: LCNInboxStatusEnumValidator2,
68495
+ isAccepted: z2.boolean().optional(),
68422
68496
  expiresAt: z2.string(),
68423
68497
  createdAt: z2.string(),
68424
68498
  issuerDid: z2.string(),
@@ -68437,6 +68511,7 @@ var InboxCredentialQueryValidator2 = z2.object({
68437
68511
  currentStatus: LCNInboxStatusEnumValidator2,
68438
68512
  id: z2.string(),
68439
68513
  isSigned: z2.boolean(),
68514
+ isAccepted: z2.boolean().optional(),
68440
68515
  issuerDid: z2.string()
68441
68516
  }).partial();
68442
68517
  var IssueInboxSigningAuthorityValidator2 = z2.object({
@@ -68478,6 +68553,51 @@ var IssueInboxCredentialResponseValidator2 = z2.object({
68478
68553
  claimUrl: z2.string().url().optional(),
68479
68554
  recipientDid: z2.string().optional()
68480
68555
  });
68556
+ var ClaimInboxCredentialValidator2 = z2.object({
68557
+ credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe("The credential to issue."),
68558
+ configuration: z2.object({
68559
+ publishableKey: z2.string(),
68560
+ signingAuthorityName: z2.string().optional()
68561
+ }).optional()
68562
+ });
68563
+ var LCNDomainOrOriginValidator2 = z2.union([
68564
+ z2.string().regex(
68565
+ /^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
68566
+ {
68567
+ message: "Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"
68568
+ }
68569
+ ),
68570
+ z2.string().regex(
68571
+ /^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
68572
+ { message: "Must be a valid http(s) origin" }
68573
+ )
68574
+ ]);
68575
+ var LCNIntegrationValidator2 = z2.object({
68576
+ id: z2.string(),
68577
+ name: z2.string(),
68578
+ description: z2.string().optional(),
68579
+ publishableKey: z2.string(),
68580
+ whitelistedDomains: z2.array(LCNDomainOrOriginValidator2).default([])
68581
+ });
68582
+ var LCNIntegrationCreateValidator2 = z2.object({
68583
+ name: z2.string(),
68584
+ description: z2.string().optional(),
68585
+ whitelistedDomains: z2.array(LCNDomainOrOriginValidator2).default([])
68586
+ });
68587
+ var LCNIntegrationUpdateValidator2 = z2.object({
68588
+ name: z2.string().optional(),
68589
+ description: z2.string().optional(),
68590
+ whitelistedDomains: z2.array(LCNDomainOrOriginValidator2).optional(),
68591
+ rotatePublishableKey: z2.boolean().optional()
68592
+ });
68593
+ var LCNIntegrationQueryValidator2 = z2.object({
68594
+ id: StringQuery2,
68595
+ name: StringQuery2,
68596
+ description: StringQuery2
68597
+ }).partial();
68598
+ var PaginatedLCNIntegrationsValidator2 = PaginationResponseValidator2.extend({
68599
+ records: LCNIntegrationValidator2.array()
68600
+ });
68481
68601
  var ClaimTokenValidator2 = z2.object({
68482
68602
  token: z2.string(),
68483
68603
  contactMethodId: z2.string(),