@learncard/idx-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.
@@ -12419,7 +12419,8 @@ var LCNNotificationTypeEnumValidator = z.enum([
12419
12419
  "CONSENT_FLOW_TRANSACTION",
12420
12420
  "ISSUANCE_CLAIMED",
12421
12421
  "ISSUANCE_DELIVERED",
12422
- "ISSUANCE_ERROR"
12422
+ "ISSUANCE_ERROR",
12423
+ "PROFILE_PARENT_APPROVED"
12423
12424
  ]);
12424
12425
  var LCNNotificationMessageValidator = z.object({
12425
12426
  title: z.string().optional(),
@@ -12429,7 +12430,13 @@ var LCNInboxContactMethodValidator = z.object({
12429
12430
  type: z.string(),
12430
12431
  value: z.string()
12431
12432
  });
12432
- var LCNInboxStatusEnumValidator = z.enum(["PENDING", "DELIVERED", "CLAIMED", "EXPIRED"]);
12433
+ var LCNInboxStatusEnumValidator = z.enum([
12434
+ "PENDING",
12435
+ "ISSUED",
12436
+ "EXPIRED",
12437
+ "DELIVERED",
12438
+ "CLAIMED"
12439
+ ]);
12433
12440
  var LCNNotificationInboxValidator = z.object({
12434
12441
  issuanceId: z.string(),
12435
12442
  status: LCNInboxStatusEnumValidator,
@@ -12527,11 +12534,19 @@ var ContactMethodVerificationValidator = z.object({
12527
12534
  var SetPrimaryContactMethodValidator = z.object({
12528
12535
  contactMethodId: z.string()
12529
12536
  });
12537
+ var CreateContactMethodSessionValidator = z.object({
12538
+ contactMethod: ContactMethodVerificationRequestValidator,
12539
+ otpChallenge: z.string()
12540
+ });
12541
+ var CreateContactMethodSessionResponseValidator = z.object({
12542
+ sessionJwt: z.string()
12543
+ });
12530
12544
  var InboxCredentialValidator = z.object({
12531
12545
  id: z.string(),
12532
12546
  credential: z.string(),
12533
12547
  isSigned: z.boolean(),
12534
12548
  currentStatus: LCNInboxStatusEnumValidator,
12549
+ isAccepted: z.boolean().optional(),
12535
12550
  expiresAt: z.string(),
12536
12551
  createdAt: z.string(),
12537
12552
  issuerDid: z.string(),
@@ -12550,6 +12565,7 @@ var InboxCredentialQueryValidator = z.object({
12550
12565
  currentStatus: LCNInboxStatusEnumValidator,
12551
12566
  id: z.string(),
12552
12567
  isSigned: z.boolean(),
12568
+ isAccepted: z.boolean().optional(),
12553
12569
  issuerDid: z.string()
12554
12570
  }).partial();
12555
12571
  var IssueInboxSigningAuthorityValidator = z.object({
@@ -12591,6 +12607,51 @@ var IssueInboxCredentialResponseValidator = z.object({
12591
12607
  claimUrl: z.string().url().optional(),
12592
12608
  recipientDid: z.string().optional()
12593
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
+ });
12594
12655
  var ClaimTokenValidator = z.object({
12595
12656
  token: z.string(),
12596
12657
  contactMethodId: z.string(),
@@ -68304,7 +68365,8 @@ var LCNNotificationTypeEnumValidator2 = z2.enum([
68304
68365
  "CONSENT_FLOW_TRANSACTION",
68305
68366
  "ISSUANCE_CLAIMED",
68306
68367
  "ISSUANCE_DELIVERED",
68307
- "ISSUANCE_ERROR"
68368
+ "ISSUANCE_ERROR",
68369
+ "PROFILE_PARENT_APPROVED"
68308
68370
  ]);
68309
68371
  var LCNNotificationMessageValidator2 = z2.object({
68310
68372
  title: z2.string().optional(),
@@ -68314,7 +68376,13 @@ var LCNInboxContactMethodValidator2 = z2.object({
68314
68376
  type: z2.string(),
68315
68377
  value: z2.string()
68316
68378
  });
68317
- var LCNInboxStatusEnumValidator2 = z2.enum(["PENDING", "DELIVERED", "CLAIMED", "EXPIRED"]);
68379
+ var LCNInboxStatusEnumValidator2 = z2.enum([
68380
+ "PENDING",
68381
+ "ISSUED",
68382
+ "EXPIRED",
68383
+ "DELIVERED",
68384
+ "CLAIMED"
68385
+ ]);
68318
68386
  var LCNNotificationInboxValidator2 = z2.object({
68319
68387
  issuanceId: z2.string(),
68320
68388
  status: LCNInboxStatusEnumValidator2,
@@ -68412,11 +68480,19 @@ var ContactMethodVerificationValidator2 = z2.object({
68412
68480
  var SetPrimaryContactMethodValidator2 = z2.object({
68413
68481
  contactMethodId: z2.string()
68414
68482
  });
68483
+ var CreateContactMethodSessionValidator2 = z2.object({
68484
+ contactMethod: ContactMethodVerificationRequestValidator2,
68485
+ otpChallenge: z2.string()
68486
+ });
68487
+ var CreateContactMethodSessionResponseValidator2 = z2.object({
68488
+ sessionJwt: z2.string()
68489
+ });
68415
68490
  var InboxCredentialValidator2 = z2.object({
68416
68491
  id: z2.string(),
68417
68492
  credential: z2.string(),
68418
68493
  isSigned: z2.boolean(),
68419
68494
  currentStatus: LCNInboxStatusEnumValidator2,
68495
+ isAccepted: z2.boolean().optional(),
68420
68496
  expiresAt: z2.string(),
68421
68497
  createdAt: z2.string(),
68422
68498
  issuerDid: z2.string(),
@@ -68435,6 +68511,7 @@ var InboxCredentialQueryValidator2 = z2.object({
68435
68511
  currentStatus: LCNInboxStatusEnumValidator2,
68436
68512
  id: z2.string(),
68437
68513
  isSigned: z2.boolean(),
68514
+ isAccepted: z2.boolean().optional(),
68438
68515
  issuerDid: z2.string()
68439
68516
  }).partial();
68440
68517
  var IssueInboxSigningAuthorityValidator2 = z2.object({
@@ -68476,6 +68553,51 @@ var IssueInboxCredentialResponseValidator2 = z2.object({
68476
68553
  claimUrl: z2.string().url().optional(),
68477
68554
  recipientDid: z2.string().optional()
68478
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
+ });
68479
68601
  var ClaimTokenValidator2 = z2.object({
68480
68602
  token: z2.string(),
68481
68603
  contactMethodId: z2.string(),