@learncard/react 2.12.3 → 2.12.5

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.
Files changed (120) hide show
  1. package/dist/cjs/{BoostGenericCard-72cab860.js → BoostGenericCard-8f95d226.js} +2 -2
  2. package/dist/cjs/{BoostGenericCard-72cab860.js.map → BoostGenericCard-8f95d226.js.map} +1 -1
  3. package/dist/cjs/{BoostSmallCard-ece8f97e.js → BoostSmallCard-ac8ab73d.js} +2 -2
  4. package/dist/cjs/{BoostSmallCard-ece8f97e.js.map → BoostSmallCard-ac8ab73d.js.map} +1 -1
  5. package/dist/cjs/{CertificateDisplayCard-a036cdc5.js → CertificateDisplayCard-2f320b5f.js} +7 -6
  6. package/dist/cjs/{CertificateDisplayCard-a036cdc5.js.map → CertificateDisplayCard-2f320b5f.js.map} +1 -1
  7. package/dist/cjs/{MeritBadgeDisplayCard-2e4edd20.js → MeritBadgeDisplayCard-34c47b12.js} +7 -6
  8. package/dist/cjs/{MeritBadgeDisplayCard-2e4edd20.js.map → MeritBadgeDisplayCard-34c47b12.js.map} +1 -1
  9. package/dist/cjs/{MeritBadgeSkillsCount-472542c1.js → MeritBadgeSkillsCount-82e3e799.js} +2 -2
  10. package/dist/cjs/{MeritBadgeSkillsCount-472542c1.js.map → MeritBadgeSkillsCount-82e3e799.js.map} +1 -1
  11. package/dist/cjs/{NotificationBoostCard-3ed9ec86.js → NotificationBoostCard-04dd2405.js} +2 -2
  12. package/dist/cjs/{NotificationBoostCard-3ed9ec86.js.map → NotificationBoostCard-04dd2405.js.map} +1 -1
  13. package/dist/cjs/{UserProfilePicture-80675455.js → UserProfilePicture-61571db9.js} +8 -4
  14. package/dist/cjs/UserProfilePicture-61571db9.js.map +1 -0
  15. package/dist/cjs/{VCCard-ebbbda88.js → VCCard-7f8bbd9e.js} +3 -3
  16. package/dist/cjs/{VCCard-ebbbda88.js.map → VCCard-7f8bbd9e.js.map} +1 -1
  17. package/dist/cjs/{VCDisplayBackFace-13c73f23.js → VCDisplayBackFace-b11ec189.js} +3 -3
  18. package/dist/cjs/{VCDisplayBackFace-13c73f23.js.map → VCDisplayBackFace-b11ec189.js.map} +1 -1
  19. package/dist/cjs/{VCDisplayCard-3720145a.js → VCDisplayCard-1abef239.js} +4 -4
  20. package/dist/cjs/{VCDisplayCard-3720145a.js.map → VCDisplayCard-1abef239.js.map} +1 -1
  21. package/dist/cjs/{VCDisplayCard2-ae93ccd2.js → VCDisplayCard2-b6a512f3.js} +10 -9
  22. package/dist/cjs/{VCDisplayCard2-ae93ccd2.js.map → VCDisplayCard2-b6a512f3.js.map} +1 -1
  23. package/dist/cjs/{VCVerificationPill-a1607dff.js → VCVerificationPill-f50c4a12.js} +2 -2
  24. package/dist/cjs/{VCVerificationPill-a1607dff.js.map → VCVerificationPill-f50c4a12.js.map} +1 -1
  25. package/dist/cjs/VerifierStateBadgeAndText-3d7977c9.js +2575 -0
  26. package/dist/cjs/VerifierStateBadgeAndText-3d7977c9.js.map +1 -0
  27. package/dist/cjs/{credential.helpers-65ea507a.js → credential.helpers-d70f97fa.js} +2 -2
  28. package/dist/cjs/{credential.helpers-65ea507a.js.map → credential.helpers-d70f97fa.js.map} +1 -1
  29. package/dist/cjs/index.js +16 -15
  30. package/dist/cjs/index.js.map +1 -1
  31. package/dist/cjs/index14.js +16 -15
  32. package/dist/cjs/index14.js.map +1 -1
  33. package/dist/cjs/index22.js +7 -6
  34. package/dist/cjs/index22.js.map +1 -1
  35. package/dist/cjs/index25.js +3 -2
  36. package/dist/cjs/index25.js.map +1 -1
  37. package/dist/cjs/index38.js +2 -1
  38. package/dist/cjs/index38.js.map +1 -1
  39. package/dist/cjs/index39.js +12 -11
  40. package/dist/cjs/index39.js.map +1 -1
  41. package/dist/cjs/index4.js +3 -3
  42. package/dist/cjs/index40.js +4 -4
  43. package/dist/cjs/index41.js +7 -6
  44. package/dist/cjs/index41.js.map +1 -1
  45. package/dist/cjs/index42.js +8 -7
  46. package/dist/cjs/index42.js.map +1 -1
  47. package/dist/cjs/index43.js +2 -1
  48. package/dist/cjs/index43.js.map +1 -1
  49. package/dist/cjs/index46.js +2 -2
  50. package/dist/cjs/index5.js +3 -2
  51. package/dist/cjs/index5.js.map +1 -1
  52. package/dist/cjs/index7.js +6 -5
  53. package/dist/cjs/index7.js.map +1 -1
  54. package/dist/cjs/{types.esm-50b3eecd.js → types.esm-41c5e340.js} +221 -26
  55. package/dist/cjs/types.esm-41c5e340.js.map +1 -0
  56. package/dist/esm/{BoostGenericCard-2f586072.js → BoostGenericCard-d468ab12.js} +2 -2
  57. package/dist/esm/{BoostGenericCard-2f586072.js.map → BoostGenericCard-d468ab12.js.map} +1 -1
  58. package/dist/esm/{BoostSmallCard-3dedb5ae.js → BoostSmallCard-35b0290d.js} +2 -2
  59. package/dist/esm/{BoostSmallCard-3dedb5ae.js.map → BoostSmallCard-35b0290d.js.map} +1 -1
  60. package/dist/esm/{CertificateDisplayCard-ff1ae869.js → CertificateDisplayCard-d926cd2e.js} +6 -5
  61. package/dist/esm/{CertificateDisplayCard-ff1ae869.js.map → CertificateDisplayCard-d926cd2e.js.map} +1 -1
  62. package/dist/esm/{MeritBadgeDisplayCard-b8b904d2.js → MeritBadgeDisplayCard-b9e76145.js} +6 -5
  63. package/dist/esm/{MeritBadgeDisplayCard-b8b904d2.js.map → MeritBadgeDisplayCard-b9e76145.js.map} +1 -1
  64. package/dist/esm/{MeritBadgeSkillsCount-46d9c24b.js → MeritBadgeSkillsCount-5da775e7.js} +2 -2
  65. package/dist/esm/{MeritBadgeSkillsCount-46d9c24b.js.map → MeritBadgeSkillsCount-5da775e7.js.map} +1 -1
  66. package/dist/esm/{NotificationBoostCard-cfebc09e.js → NotificationBoostCard-73efea2d.js} +2 -2
  67. package/dist/esm/{NotificationBoostCard-cfebc09e.js.map → NotificationBoostCard-73efea2d.js.map} +1 -1
  68. package/dist/esm/{UserProfilePicture-50c34186.js → UserProfilePicture-4a00d151.js} +8 -4
  69. package/dist/esm/UserProfilePicture-4a00d151.js.map +1 -0
  70. package/dist/esm/{VCCard-e2ebb922.js → VCCard-9c291d98.js} +3 -3
  71. package/dist/esm/{VCCard-e2ebb922.js.map → VCCard-9c291d98.js.map} +1 -1
  72. package/dist/esm/{VCDisplayBackFace-4f2d700d.js → VCDisplayBackFace-ccdfca64.js} +3 -3
  73. package/dist/esm/{VCDisplayBackFace-4f2d700d.js.map → VCDisplayBackFace-ccdfca64.js.map} +1 -1
  74. package/dist/esm/{VCDisplayCard-32e126f8.js → VCDisplayCard-b40c212c.js} +4 -4
  75. package/dist/esm/{VCDisplayCard-32e126f8.js.map → VCDisplayCard-b40c212c.js.map} +1 -1
  76. package/dist/esm/{VCDisplayCard2-ec2177de.js → VCDisplayCard2-3a4d2726.js} +8 -7
  77. package/dist/esm/{VCDisplayCard2-ec2177de.js.map → VCDisplayCard2-3a4d2726.js.map} +1 -1
  78. package/dist/esm/{VCVerificationPill-0c336075.js → VCVerificationPill-ce872239.js} +2 -2
  79. package/dist/esm/{VCVerificationPill-0c336075.js.map → VCVerificationPill-ce872239.js.map} +1 -1
  80. package/dist/esm/VerifierStateBadgeAndText-f2bbd9fd.js +2533 -0
  81. package/dist/esm/VerifierStateBadgeAndText-f2bbd9fd.js.map +1 -0
  82. package/dist/esm/{credential.helpers-61005784.js → credential.helpers-bd90d02f.js} +2 -2
  83. package/dist/esm/{credential.helpers-61005784.js.map → credential.helpers-bd90d02f.js.map} +1 -1
  84. package/dist/esm/index.js +16 -15
  85. package/dist/esm/index.js.map +1 -1
  86. package/dist/esm/index14.js +16 -15
  87. package/dist/esm/index14.js.map +1 -1
  88. package/dist/esm/index22.js +7 -6
  89. package/dist/esm/index22.js.map +1 -1
  90. package/dist/esm/index25.js +3 -2
  91. package/dist/esm/index25.js.map +1 -1
  92. package/dist/esm/index38.js +2 -1
  93. package/dist/esm/index38.js.map +1 -1
  94. package/dist/esm/index39.js +12 -11
  95. package/dist/esm/index39.js.map +1 -1
  96. package/dist/esm/index4.js +3 -3
  97. package/dist/esm/index40.js +4 -4
  98. package/dist/esm/index41.js +7 -6
  99. package/dist/esm/index41.js.map +1 -1
  100. package/dist/esm/index42.js +8 -7
  101. package/dist/esm/index42.js.map +1 -1
  102. package/dist/esm/index43.js +2 -1
  103. package/dist/esm/index43.js.map +1 -1
  104. package/dist/esm/index46.js +2 -2
  105. package/dist/esm/index5.js +3 -2
  106. package/dist/esm/index5.js.map +1 -1
  107. package/dist/esm/index7.js +6 -5
  108. package/dist/esm/index7.js.map +1 -1
  109. package/dist/esm/{types.esm-2762569e.js → types.esm-277415d8.js} +222 -17
  110. package/dist/esm/types.esm-277415d8.js.map +1 -0
  111. package/package.json +4 -3
  112. package/src/components/UserProfilePicture/UserProfilePicture.tsx +8 -3
  113. package/dist/cjs/UserProfilePicture-80675455.js.map +0 -1
  114. package/dist/cjs/VerifierStateBadgeAndText-5f10743e.js +0 -21735
  115. package/dist/cjs/VerifierStateBadgeAndText-5f10743e.js.map +0 -1
  116. package/dist/cjs/types.esm-50b3eecd.js.map +0 -1
  117. package/dist/esm/UserProfilePicture-50c34186.js.map +0 -1
  118. package/dist/esm/VerifierStateBadgeAndText-0a4e0c63.js +0 -21692
  119. package/dist/esm/VerifierStateBadgeAndText-0a4e0c63.js.map +0 -1
  120. package/dist/esm/types.esm-2762569e.js.map +0 -1
@@ -4225,15 +4225,6 @@ function _number(Class, params) {
4225
4225
  });
4226
4226
  }
4227
4227
  // @__NO_SIDE_EFFECTS__
4228
- function _coercedNumber(Class, params) {
4229
- return new Class({
4230
- type: "number",
4231
- coerce: true,
4232
- checks: [],
4233
- ...normalizeParams(params),
4234
- });
4235
- }
4236
- // @__NO_SIDE_EFFECTS__
4237
4228
  function _int(Class, params) {
4238
4229
  return new Class({
4239
4230
  type: "number",
@@ -7411,9 +7402,28 @@ var _schemas = /*#__PURE__*/Object.freeze({
7411
7402
 
7412
7403
  config(en());
7413
7404
 
7414
- var _a;
7415
7405
  var __defProp = Object.defineProperty;
7416
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7406
+ var __defProps = Object.defineProperties;
7407
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7408
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
7409
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7410
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7411
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7412
+ var __spreadValues = (a, b) => {
7413
+ for (var prop in b || (b = {}))
7414
+ if (__hasOwnProp.call(b, prop))
7415
+ __defNormalProp(a, prop, b[prop]);
7416
+ if (__getOwnPropSymbols)
7417
+ for (var prop of __getOwnPropSymbols(b)) {
7418
+ if (__propIsEnum.call(b, prop))
7419
+ __defNormalProp(a, prop, b[prop]);
7420
+ }
7421
+ return a;
7422
+ };
7423
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7424
+ var _a;
7425
+ var __defProp2 = Object.defineProperty;
7426
+ var __name = (target, value) => __defProp2(target, "name", { value, configurable: true });
7417
7427
  var ContextValidator = array(string().or(record(string(), any())));
7418
7428
  object({
7419
7429
  type: string().optional(),
@@ -8310,7 +8320,10 @@ var SendOptionsValidator = object({
8310
8320
  webhookUrl: string().url().optional().describe("Webhook URL to receive claim notifications"),
8311
8321
  suppressDelivery: boolean().optional().describe("If true, returns claimUrl without sending email/SMS"),
8312
8322
  branding: SendBrandingOptionsValidator.optional().describe("Branding for email/SMS delivery"),
8313
- guardianEmail: string().email().optional().describe("Guardian email that must approve before student can claim")
8323
+ guardianEmail: string().email().optional().describe("Guardian email that must approve before student can claim"),
8324
+ expiresInDays: number().int().min(1).max(720).optional().describe(
8325
+ "How many days the credential stays claimable in the Universal Inbox (default 30). Does not change the credential validity period."
8326
+ )
8314
8327
  });
8315
8328
  var SendBoostInputValidator = object({
8316
8329
  type: literal("boost"),
@@ -8606,7 +8619,8 @@ var LCNNotificationTypeEnumValidator = _enum([
8606
8619
  "APP_NOTIFICATION",
8607
8620
  "CREDENTIAL_REVOKED",
8608
8621
  "CREDENTIAL_SUSPENDED",
8609
- "CREDENTIAL_UNSUSPENDED"
8622
+ "CREDENTIAL_UNSUSPENDED",
8623
+ "CREDENTIAL_REFRESHED"
8610
8624
  ]);
8611
8625
  var LCNNotificationMessageValidator = object({
8612
8626
  title: string().optional(),
@@ -8738,12 +8752,16 @@ object({
8738
8752
  });
8739
8753
  var InboxCredentialValidator = object({
8740
8754
  id: string(),
8741
- credential: string(),
8755
+ credential: string().optional(),
8742
8756
  isSigned: boolean(),
8743
8757
  currentStatus: LCNInboxStatusEnumValidator,
8744
8758
  isAccepted: boolean().optional(),
8745
8759
  expiresAt: string(),
8746
8760
  createdAt: string(),
8761
+ finalizedAt: string().optional(),
8762
+ expiredAt: string().optional(),
8763
+ credentialName: string().optional(),
8764
+ achievementType: string().optional(),
8747
8765
  issuerDid: string(),
8748
8766
  webhookUrl: string().optional(),
8749
8767
  boostUri: string().optional(),
@@ -8797,7 +8815,9 @@ object({
8797
8815
  "The signing authority to use for the credential. If not provided, the users default signing authority will be used if the credential is not signed."
8798
8816
  ),
8799
8817
  webhookUrl: string().url().optional().describe("The webhook URL to receive credential issuance events."),
8800
- expiresInDays: number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
8818
+ expiresInDays: number().int().min(1).max(720).optional().describe(
8819
+ "How many days the encrypted inbox payload remains claimable. This does not change the credential validity period."
8820
+ ),
8801
8821
  templateData: record(string(), unknown()).optional().describe(
8802
8822
  "Template data to render into the boost credential template using Mustache syntax. Only used when boostUri is provided."
8803
8823
  ),
@@ -8860,6 +8880,9 @@ object({
8860
8880
  credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).or(CredentialNameRefValidator).describe("The credential to issue, or a { name } reference to resolve a boost template."),
8861
8881
  configuration: object({
8862
8882
  publishableKey: string(),
8883
+ expiresInDays: number().int().min(1).max(720).optional().describe(
8884
+ "Inbox claim window in days. Defaults to 720; use a shorter window for sensitive records."
8885
+ ),
8863
8886
  signingAuthorityName: string().optional(),
8864
8887
  listingId: string().optional(),
8865
8888
  listingSlug: string().optional()
@@ -9485,16 +9508,188 @@ object({
9485
9508
  version: number().default(1),
9486
9509
  messages: array(inAppMessageValidator).default([])
9487
9510
  }).passthrough();
9511
+ var LearnCardRefreshAuthorizationValidator = object({ type: literal("LearnCardDIDAuth") }).catchall(any());
9512
+ var ManagedCredentialRefreshServiceValidator = object({
9513
+ id: string().min(1),
9514
+ type: literal("LearnCardCredentialRefresh2026"),
9515
+ authorization: LearnCardRefreshAuthorizationValidator.optional()
9516
+ }).catchall(any());
9517
+ var StandardCredentialRefreshServiceValidator = object({
9518
+ id: string().min(1),
9519
+ type: literal("1EdTechCredentialRefresh")
9520
+ }).catchall(any());
9521
+ union([
9522
+ ManagedCredentialRefreshServiceValidator,
9523
+ StandardCredentialRefreshServiceValidator
9524
+ ]);
9525
+ object({
9526
+ holder: object({
9527
+ profileId: string().optional(),
9528
+ did: string().min(1)
9529
+ }),
9530
+ credentialId: string().min(1)
9531
+ });
9532
+ object({
9533
+ refreshId: string().min(1),
9534
+ refreshService: ManagedCredentialRefreshServiceValidator.extend({
9535
+ authorization: LearnCardRefreshAuthorizationValidator
9536
+ })
9537
+ });
9538
+ var CredentialRefreshSigningModeValidator = _enum(["issuer-signed", "signing-authority"]);
9539
+ var PublishCredentialRefreshBaseFields = {
9540
+ refreshId: string().min(1),
9541
+ notifyHolder: boolean().optional(),
9542
+ updateSummary: string().optional(),
9543
+ idempotencyKey: string().optional()
9544
+ };
9545
+ object(__spreadProps(__spreadValues({}, PublishCredentialRefreshBaseFields), {
9546
+ mode: literal("issuer-signed"),
9547
+ signedCredential: VCValidator
9548
+ }));
9549
+ object(__spreadProps(__spreadValues({}, PublishCredentialRefreshBaseFields), {
9550
+ mode: literal("signing-authority"),
9551
+ credential: UnsignedVCValidator,
9552
+ signingAuthority: object({
9553
+ type: string().min(1)
9554
+ }).catchall(any())
9555
+ }));
9556
+ object(__spreadProps(__spreadValues({}, PublishCredentialRefreshBaseFields), {
9557
+ mode: CredentialRefreshSigningModeValidator,
9558
+ signedCredential: VCValidator.optional(),
9559
+ credential: UnsignedVCValidator.optional(),
9560
+ signingAuthority: object({
9561
+ type: string().min(1)
9562
+ }).catchall(any()).optional()
9563
+ })).superRefine((input, ctx) => {
9564
+ if (input.mode === "issuer-signed" && !input.signedCredential) {
9565
+ ctx.addIssue({
9566
+ code: "custom",
9567
+ path: ["signedCredential"],
9568
+ message: "signedCredential is required for issuer-signed publication"
9569
+ });
9570
+ }
9571
+ if (input.mode === "issuer-signed" && (input.credential !== void 0 || input.signingAuthority !== void 0)) {
9572
+ ctx.addIssue({
9573
+ code: "custom",
9574
+ path: ["mode"],
9575
+ message: "issuer-signed publication cannot include signing-authority fields"
9576
+ });
9577
+ }
9578
+ if (input.mode === "signing-authority") {
9579
+ if (input.signedCredential !== void 0) {
9580
+ ctx.addIssue({
9581
+ code: "custom",
9582
+ path: ["signedCredential"],
9583
+ message: "signing-authority publication cannot include signedCredential"
9584
+ });
9585
+ }
9586
+ if (!input.credential) {
9587
+ ctx.addIssue({
9588
+ code: "custom",
9589
+ path: ["credential"],
9590
+ message: "credential is required for signing-authority publication"
9591
+ });
9592
+ }
9593
+ if (!input.signingAuthority) {
9594
+ ctx.addIssue({
9595
+ code: "custom",
9596
+ path: ["signingAuthority"],
9597
+ message: "signingAuthority is required for signing-authority publication"
9598
+ });
9599
+ }
9600
+ }
9601
+ });
9602
+ var PublishCredentialRefreshNotificationValidator = _enum([
9603
+ "queued",
9604
+ "suppressed",
9605
+ "not-applicable",
9606
+ /** Publication succeeded, but the post-commit notification enqueue must be retried. */
9607
+ "delivery-failed"
9608
+ ]);
9609
+ object({
9610
+ refreshId: string().min(1),
9611
+ version: number().int().positive(),
9612
+ publishedAt: string().min(1),
9613
+ notification: PublishCredentialRefreshNotificationValidator
9614
+ });
9615
+ var CredentialRefreshVersionMetadataValidator = object({
9616
+ version: number().int().positive(),
9617
+ publishedAt: string().min(1),
9618
+ effectiveAt: string().optional(),
9619
+ etag: string().optional(),
9620
+ signingMode: CredentialRefreshSigningModeValidator.optional(),
9621
+ updateSummary: string().optional()
9622
+ });
9623
+ object({
9624
+ refreshId: string().min(1),
9625
+ cursor: string().optional(),
9626
+ limit: number().int().positive().optional()
9627
+ });
9628
+ object({
9629
+ records: CredentialRefreshVersionMetadataValidator.array(),
9630
+ hasMore: boolean(),
9631
+ cursor: string().optional()
9632
+ });
9633
+ object({
9634
+ challenge: string().min(1),
9635
+ expiresAt: string().min(1),
9636
+ domain: string().optional(),
9637
+ scheme: literal("LearnCardDIDAuth").optional()
9638
+ });
9639
+ var PublicCredentialRefreshEnvelopeValidator = object({
9640
+ format: literal("vc"),
9641
+ credential: VCValidator,
9642
+ etag: string().optional()
9643
+ });
9644
+ var JweCredentialRefreshEnvelopeValidator = object({
9645
+ format: literal("jwe"),
9646
+ jwe: JWEValidator,
9647
+ etag: string().optional(),
9648
+ /** Present on LearnCard-managed endpoints; optional for interoperable JWE services. */
9649
+ version: number().int().positive().optional()
9650
+ });
9651
+ discriminatedUnion("format", [
9652
+ PublicCredentialRefreshEnvelopeValidator,
9653
+ JweCredentialRefreshEnvelopeValidator
9654
+ ]);
9655
+ var CredentialRefreshFailureCodeValidator = _enum([
9656
+ "UNAVAILABLE",
9657
+ "TIMEOUT",
9658
+ "UNSUPPORTED_SERVICE",
9659
+ "UNAUTHORIZED",
9660
+ "MALFORMED_RESPONSE",
9661
+ "INVALID_PROOF",
9662
+ "ISSUER_MISMATCH",
9663
+ "ID_MISMATCH",
9664
+ "ROLLBACK",
9665
+ "REVOKED",
9666
+ "UNSAFE_ENDPOINT"
9667
+ ]);
9668
+ var CredentialRefreshUpdatedResultValidator = object({
9669
+ status: literal("updated"),
9670
+ credential: VCValidator,
9671
+ etag: string().optional(),
9672
+ managedVersion: number().int().positive().optional()
9673
+ });
9674
+ var CredentialRefreshUnchangedResultValidator = object({
9675
+ status: literal("unchanged"),
9676
+ checkedAt: string().min(1),
9677
+ etag: string().optional()
9678
+ });
9679
+ var CredentialRefreshUnsupportedResultValidator = object({
9680
+ status: literal("unsupported")
9681
+ });
9682
+ var CredentialRefreshFailedResultValidator = object({
9683
+ status: literal("failed"),
9684
+ code: CredentialRefreshFailureCodeValidator,
9685
+ retryable: boolean()
9686
+ });
9687
+ discriminatedUnion("status", [
9688
+ CredentialRefreshUpdatedResultValidator,
9689
+ CredentialRefreshUnchangedResultValidator,
9690
+ CredentialRefreshUnsupportedResultValidator,
9691
+ CredentialRefreshFailedResultValidator
9692
+ ]);
9488
9693
 
9489
9694
  exports.VerificationStatusEnum = VerificationStatusEnum;
9490
- exports.ZodNumber = ZodNumber;
9491
- exports._coercedNumber = _coercedNumber;
9492
- exports._enum = _enum;
9493
- exports.literal = literal;
9494
- exports.number = number;
9495
- exports.object = object;
9496
- exports.preprocess = preprocess;
9497
- exports.string = string;
9498
- exports.union = union;
9499
- exports.url = url;
9500
- //# sourceMappingURL=types.esm-50b3eecd.js.map
9695
+ //# sourceMappingURL=types.esm-41c5e340.js.map