@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.
@@ -12424,7 +12424,13 @@ var LCNInboxContactMethodValidator = z.object({
12424
12424
  type: z.string(),
12425
12425
  value: z.string()
12426
12426
  });
12427
- var LCNInboxStatusEnumValidator = z.enum(["PENDING", "DELIVERED", "CLAIMED", "EXPIRED"]);
12427
+ var LCNInboxStatusEnumValidator = z.enum([
12428
+ "PENDING",
12429
+ "ISSUED",
12430
+ "EXPIRED",
12431
+ "DELIVERED",
12432
+ "CLAIMED"
12433
+ ]);
12428
12434
  var LCNNotificationInboxValidator = z.object({
12429
12435
  issuanceId: z.string(),
12430
12436
  status: LCNInboxStatusEnumValidator,
@@ -12522,11 +12528,19 @@ var ContactMethodVerificationValidator = z.object({
12522
12528
  var SetPrimaryContactMethodValidator = z.object({
12523
12529
  contactMethodId: z.string()
12524
12530
  });
12531
+ var CreateContactMethodSessionValidator = z.object({
12532
+ contactMethod: ContactMethodVerificationRequestValidator,
12533
+ otpChallenge: z.string()
12534
+ });
12535
+ var CreateContactMethodSessionResponseValidator = z.object({
12536
+ sessionJwt: z.string()
12537
+ });
12525
12538
  var InboxCredentialValidator = z.object({
12526
12539
  id: z.string(),
12527
12540
  credential: z.string(),
12528
12541
  isSigned: z.boolean(),
12529
12542
  currentStatus: LCNInboxStatusEnumValidator,
12543
+ isAccepted: z.boolean().optional(),
12530
12544
  expiresAt: z.string(),
12531
12545
  createdAt: z.string(),
12532
12546
  issuerDid: z.string(),
@@ -12545,6 +12559,7 @@ var InboxCredentialQueryValidator = z.object({
12545
12559
  currentStatus: LCNInboxStatusEnumValidator,
12546
12560
  id: z.string(),
12547
12561
  isSigned: z.boolean(),
12562
+ isAccepted: z.boolean().optional(),
12548
12563
  issuerDid: z.string()
12549
12564
  }).partial();
12550
12565
  var IssueInboxSigningAuthorityValidator = z.object({
@@ -12586,6 +12601,51 @@ var IssueInboxCredentialResponseValidator = z.object({
12586
12601
  claimUrl: z.string().url().optional(),
12587
12602
  recipientDid: z.string().optional()
12588
12603
  });
12604
+ var ClaimInboxCredentialValidator = z.object({
12605
+ credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe("The credential to issue."),
12606
+ configuration: z.object({
12607
+ publishableKey: z.string(),
12608
+ signingAuthorityName: z.string().optional()
12609
+ }).optional()
12610
+ });
12611
+ var LCNDomainOrOriginValidator = z.union([
12612
+ z.string().regex(
12613
+ /^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
12614
+ {
12615
+ message: "Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"
12616
+ }
12617
+ ),
12618
+ z.string().regex(
12619
+ /^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
12620
+ { message: "Must be a valid http(s) origin" }
12621
+ )
12622
+ ]);
12623
+ var LCNIntegrationValidator = z.object({
12624
+ id: z.string(),
12625
+ name: z.string(),
12626
+ description: z.string().optional(),
12627
+ publishableKey: z.string(),
12628
+ whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
12629
+ });
12630
+ var LCNIntegrationCreateValidator = z.object({
12631
+ name: z.string(),
12632
+ description: z.string().optional(),
12633
+ whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
12634
+ });
12635
+ var LCNIntegrationUpdateValidator = z.object({
12636
+ name: z.string().optional(),
12637
+ description: z.string().optional(),
12638
+ whitelistedDomains: z.array(LCNDomainOrOriginValidator).optional(),
12639
+ rotatePublishableKey: z.boolean().optional()
12640
+ });
12641
+ var LCNIntegrationQueryValidator = z.object({
12642
+ id: StringQuery,
12643
+ name: StringQuery,
12644
+ description: StringQuery
12645
+ }).partial();
12646
+ var PaginatedLCNIntegrationsValidator = PaginationResponseValidator.extend({
12647
+ records: LCNIntegrationValidator.array()
12648
+ });
12589
12649
  var ClaimTokenValidator = z.object({
12590
12650
  token: z.string(),
12591
12651
  contactMethodId: z.string(),
@@ -68310,7 +68370,13 @@ var LCNInboxContactMethodValidator2 = z2.object({
68310
68370
  type: z2.string(),
68311
68371
  value: z2.string()
68312
68372
  });
68313
- var LCNInboxStatusEnumValidator2 = z2.enum(["PENDING", "DELIVERED", "CLAIMED", "EXPIRED"]);
68373
+ var LCNInboxStatusEnumValidator2 = z2.enum([
68374
+ "PENDING",
68375
+ "ISSUED",
68376
+ "EXPIRED",
68377
+ "DELIVERED",
68378
+ "CLAIMED"
68379
+ ]);
68314
68380
  var LCNNotificationInboxValidator2 = z2.object({
68315
68381
  issuanceId: z2.string(),
68316
68382
  status: LCNInboxStatusEnumValidator2,
@@ -68408,11 +68474,19 @@ var ContactMethodVerificationValidator2 = z2.object({
68408
68474
  var SetPrimaryContactMethodValidator2 = z2.object({
68409
68475
  contactMethodId: z2.string()
68410
68476
  });
68477
+ var CreateContactMethodSessionValidator2 = z2.object({
68478
+ contactMethod: ContactMethodVerificationRequestValidator2,
68479
+ otpChallenge: z2.string()
68480
+ });
68481
+ var CreateContactMethodSessionResponseValidator2 = z2.object({
68482
+ sessionJwt: z2.string()
68483
+ });
68411
68484
  var InboxCredentialValidator2 = z2.object({
68412
68485
  id: z2.string(),
68413
68486
  credential: z2.string(),
68414
68487
  isSigned: z2.boolean(),
68415
68488
  currentStatus: LCNInboxStatusEnumValidator2,
68489
+ isAccepted: z2.boolean().optional(),
68416
68490
  expiresAt: z2.string(),
68417
68491
  createdAt: z2.string(),
68418
68492
  issuerDid: z2.string(),
@@ -68431,6 +68505,7 @@ var InboxCredentialQueryValidator2 = z2.object({
68431
68505
  currentStatus: LCNInboxStatusEnumValidator2,
68432
68506
  id: z2.string(),
68433
68507
  isSigned: z2.boolean(),
68508
+ isAccepted: z2.boolean().optional(),
68434
68509
  issuerDid: z2.string()
68435
68510
  }).partial();
68436
68511
  var IssueInboxSigningAuthorityValidator2 = z2.object({
@@ -68472,6 +68547,51 @@ var IssueInboxCredentialResponseValidator2 = z2.object({
68472
68547
  claimUrl: z2.string().url().optional(),
68473
68548
  recipientDid: z2.string().optional()
68474
68549
  });
68550
+ var ClaimInboxCredentialValidator2 = z2.object({
68551
+ credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe("The credential to issue."),
68552
+ configuration: z2.object({
68553
+ publishableKey: z2.string(),
68554
+ signingAuthorityName: z2.string().optional()
68555
+ }).optional()
68556
+ });
68557
+ var LCNDomainOrOriginValidator2 = z2.union([
68558
+ z2.string().regex(
68559
+ /^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
68560
+ {
68561
+ message: "Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"
68562
+ }
68563
+ ),
68564
+ z2.string().regex(
68565
+ /^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
68566
+ { message: "Must be a valid http(s) origin" }
68567
+ )
68568
+ ]);
68569
+ var LCNIntegrationValidator2 = z2.object({
68570
+ id: z2.string(),
68571
+ name: z2.string(),
68572
+ description: z2.string().optional(),
68573
+ publishableKey: z2.string(),
68574
+ whitelistedDomains: z2.array(LCNDomainOrOriginValidator2).default([])
68575
+ });
68576
+ var LCNIntegrationCreateValidator2 = z2.object({
68577
+ name: z2.string(),
68578
+ description: z2.string().optional(),
68579
+ whitelistedDomains: z2.array(LCNDomainOrOriginValidator2).default([])
68580
+ });
68581
+ var LCNIntegrationUpdateValidator2 = z2.object({
68582
+ name: z2.string().optional(),
68583
+ description: z2.string().optional(),
68584
+ whitelistedDomains: z2.array(LCNDomainOrOriginValidator2).optional(),
68585
+ rotatePublishableKey: z2.boolean().optional()
68586
+ });
68587
+ var LCNIntegrationQueryValidator2 = z2.object({
68588
+ id: StringQuery2,
68589
+ name: StringQuery2,
68590
+ description: StringQuery2
68591
+ }).partial();
68592
+ var PaginatedLCNIntegrationsValidator2 = PaginationResponseValidator2.extend({
68593
+ records: LCNIntegrationValidator2.array()
68594
+ });
68475
68595
  var ClaimTokenValidator2 = z2.object({
68476
68596
  token: z2.string(),
68477
68597
  contactMethodId: z2.string(),