@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.
@@ -12413,7 +12413,8 @@ var LCNNotificationTypeEnumValidator = z.enum([
12413
12413
  "CONSENT_FLOW_TRANSACTION",
12414
12414
  "ISSUANCE_CLAIMED",
12415
12415
  "ISSUANCE_DELIVERED",
12416
- "ISSUANCE_ERROR"
12416
+ "ISSUANCE_ERROR",
12417
+ "PROFILE_PARENT_APPROVED"
12417
12418
  ]);
12418
12419
  var LCNNotificationMessageValidator = z.object({
12419
12420
  title: z.string().optional(),
@@ -12423,7 +12424,13 @@ var LCNInboxContactMethodValidator = z.object({
12423
12424
  type: z.string(),
12424
12425
  value: z.string()
12425
12426
  });
12426
- var LCNInboxStatusEnumValidator = z.enum(["PENDING", "DELIVERED", "CLAIMED", "EXPIRED"]);
12427
+ var LCNInboxStatusEnumValidator = z.enum([
12428
+ "PENDING",
12429
+ "ISSUED",
12430
+ "EXPIRED",
12431
+ "DELIVERED",
12432
+ "CLAIMED"
12433
+ ]);
12427
12434
  var LCNNotificationInboxValidator = z.object({
12428
12435
  issuanceId: z.string(),
12429
12436
  status: LCNInboxStatusEnumValidator,
@@ -12521,11 +12528,19 @@ var ContactMethodVerificationValidator = z.object({
12521
12528
  var SetPrimaryContactMethodValidator = z.object({
12522
12529
  contactMethodId: z.string()
12523
12530
  });
12531
+ var CreateContactMethodSessionValidator = z.object({
12532
+ contactMethod: ContactMethodVerificationRequestValidator,
12533
+ otpChallenge: z.string()
12534
+ });
12535
+ var CreateContactMethodSessionResponseValidator = z.object({
12536
+ sessionJwt: z.string()
12537
+ });
12524
12538
  var InboxCredentialValidator = z.object({
12525
12539
  id: z.string(),
12526
12540
  credential: z.string(),
12527
12541
  isSigned: z.boolean(),
12528
12542
  currentStatus: LCNInboxStatusEnumValidator,
12543
+ isAccepted: z.boolean().optional(),
12529
12544
  expiresAt: z.string(),
12530
12545
  createdAt: z.string(),
12531
12546
  issuerDid: z.string(),
@@ -12544,6 +12559,7 @@ var InboxCredentialQueryValidator = z.object({
12544
12559
  currentStatus: LCNInboxStatusEnumValidator,
12545
12560
  id: z.string(),
12546
12561
  isSigned: z.boolean(),
12562
+ isAccepted: z.boolean().optional(),
12547
12563
  issuerDid: z.string()
12548
12564
  }).partial();
12549
12565
  var IssueInboxSigningAuthorityValidator = z.object({
@@ -12585,6 +12601,51 @@ var IssueInboxCredentialResponseValidator = z.object({
12585
12601
  claimUrl: z.string().url().optional(),
12586
12602
  recipientDid: z.string().optional()
12587
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
+ });
12588
12649
  var ClaimTokenValidator = z.object({
12589
12650
  token: z.string(),
12590
12651
  contactMethodId: z.string(),
@@ -68298,7 +68359,8 @@ var LCNNotificationTypeEnumValidator2 = z2.enum([
68298
68359
  "CONSENT_FLOW_TRANSACTION",
68299
68360
  "ISSUANCE_CLAIMED",
68300
68361
  "ISSUANCE_DELIVERED",
68301
- "ISSUANCE_ERROR"
68362
+ "ISSUANCE_ERROR",
68363
+ "PROFILE_PARENT_APPROVED"
68302
68364
  ]);
68303
68365
  var LCNNotificationMessageValidator2 = z2.object({
68304
68366
  title: z2.string().optional(),
@@ -68308,7 +68370,13 @@ var LCNInboxContactMethodValidator2 = z2.object({
68308
68370
  type: z2.string(),
68309
68371
  value: z2.string()
68310
68372
  });
68311
- var LCNInboxStatusEnumValidator2 = z2.enum(["PENDING", "DELIVERED", "CLAIMED", "EXPIRED"]);
68373
+ var LCNInboxStatusEnumValidator2 = z2.enum([
68374
+ "PENDING",
68375
+ "ISSUED",
68376
+ "EXPIRED",
68377
+ "DELIVERED",
68378
+ "CLAIMED"
68379
+ ]);
68312
68380
  var LCNNotificationInboxValidator2 = z2.object({
68313
68381
  issuanceId: z2.string(),
68314
68382
  status: LCNInboxStatusEnumValidator2,
@@ -68406,11 +68474,19 @@ var ContactMethodVerificationValidator2 = z2.object({
68406
68474
  var SetPrimaryContactMethodValidator2 = z2.object({
68407
68475
  contactMethodId: z2.string()
68408
68476
  });
68477
+ var CreateContactMethodSessionValidator2 = z2.object({
68478
+ contactMethod: ContactMethodVerificationRequestValidator2,
68479
+ otpChallenge: z2.string()
68480
+ });
68481
+ var CreateContactMethodSessionResponseValidator2 = z2.object({
68482
+ sessionJwt: z2.string()
68483
+ });
68409
68484
  var InboxCredentialValidator2 = z2.object({
68410
68485
  id: z2.string(),
68411
68486
  credential: z2.string(),
68412
68487
  isSigned: z2.boolean(),
68413
68488
  currentStatus: LCNInboxStatusEnumValidator2,
68489
+ isAccepted: z2.boolean().optional(),
68414
68490
  expiresAt: z2.string(),
68415
68491
  createdAt: z2.string(),
68416
68492
  issuerDid: z2.string(),
@@ -68429,6 +68505,7 @@ var InboxCredentialQueryValidator2 = z2.object({
68429
68505
  currentStatus: LCNInboxStatusEnumValidator2,
68430
68506
  id: z2.string(),
68431
68507
  isSigned: z2.boolean(),
68508
+ isAccepted: z2.boolean().optional(),
68432
68509
  issuerDid: z2.string()
68433
68510
  }).partial();
68434
68511
  var IssueInboxSigningAuthorityValidator2 = z2.object({
@@ -68470,6 +68547,51 @@ var IssueInboxCredentialResponseValidator2 = z2.object({
68470
68547
  claimUrl: z2.string().url().optional(),
68471
68548
  recipientDid: z2.string().optional()
68472
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
+ });
68473
68595
  var ClaimTokenValidator2 = z2.object({
68474
68596
  token: z2.string(),
68475
68597
  contactMethodId: z2.string(),