@learncard/react 2.8.3 → 2.8.4

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 (95) hide show
  1. package/dist/cjs/{BoostGenericCard-d124f09b.js → BoostGenericCard-1c2a8a3c.js} +2 -2
  2. package/dist/cjs/{BoostGenericCard-d124f09b.js.map → BoostGenericCard-1c2a8a3c.js.map} +1 -1
  3. package/dist/cjs/{CertDisplayCardSkillsCount-8f36cc71.js → CertDisplayCardSkillsCount-b1565a79.js} +2 -2
  4. package/dist/cjs/{CertDisplayCardSkillsCount-8f36cc71.js.map → CertDisplayCardSkillsCount-b1565a79.js.map} +1 -1
  5. package/dist/cjs/{CertificateDisplayCard-01c8abeb.js → CertificateDisplayCard-da900056.js} +4 -4
  6. package/dist/cjs/{CertificateDisplayCard-01c8abeb.js.map → CertificateDisplayCard-da900056.js.map} +1 -1
  7. package/dist/cjs/{MeritBadgeDisplayCard-b850c98a.js → MeritBadgeDisplayCard-377ad2c7.js} +3 -3
  8. package/dist/cjs/{MeritBadgeDisplayCard-b850c98a.js.map → MeritBadgeDisplayCard-377ad2c7.js.map} +1 -1
  9. package/dist/cjs/{MeritBadgeSkillsCount-2ac44b62.js → MeritBadgeSkillsCount-cf2c9c8c.js} +2 -2
  10. package/dist/cjs/{MeritBadgeSkillsCount-2ac44b62.js.map → MeritBadgeSkillsCount-cf2c9c8c.js.map} +1 -1
  11. package/dist/cjs/{SchoolIDCard-39a099d2.js → SchoolIDCard-da911949.js} +3 -1184
  12. package/dist/cjs/SchoolIDCard-da911949.js.map +1 -0
  13. package/dist/cjs/{VCCard-01bbf378.js → VCCard-b942b5dc.js} +3 -3
  14. package/dist/cjs/{VCCard-01bbf378.js.map → VCCard-b942b5dc.js.map} +1 -1
  15. package/dist/cjs/{VCDisplayBackFace-6edd429e.js → VCDisplayBackFace-6a495d04.js} +3 -3
  16. package/dist/cjs/{VCDisplayBackFace-6edd429e.js.map → VCDisplayBackFace-6a495d04.js.map} +1 -1
  17. package/dist/cjs/{VCDisplayCard-2068de2a.js → VCDisplayCard-2c4852e7.js} +3 -3
  18. package/dist/cjs/{VCDisplayCard-2068de2a.js.map → VCDisplayCard-2c4852e7.js.map} +1 -1
  19. package/dist/cjs/{VCDisplayCard2-404bcfb6.js → VCDisplayCard2-353a27dd.js} +6 -5
  20. package/dist/cjs/{VCDisplayCard2-404bcfb6.js.map → VCDisplayCard2-353a27dd.js.map} +1 -1
  21. package/dist/cjs/{VCVerificationPill-d1bba159.js → VCVerificationPill-5459decc.js} +2 -2
  22. package/dist/cjs/{VCVerificationPill-d1bba159.js.map → VCVerificationPill-5459decc.js.map} +1 -1
  23. package/dist/cjs/{credential.helpers-f9ca3fe1.js → credential.helpers-a6eb673d.js} +2 -2
  24. package/dist/cjs/{credential.helpers-f9ca3fe1.js.map → credential.helpers-a6eb673d.js.map} +1 -1
  25. package/dist/cjs/index-838fa72c.js +1186 -0
  26. package/dist/cjs/index-838fa72c.js.map +1 -0
  27. package/dist/cjs/index.js +14 -13
  28. package/dist/cjs/index.js.map +1 -1
  29. package/dist/cjs/index13.js +14 -13
  30. package/dist/cjs/index13.js.map +1 -1
  31. package/dist/cjs/index21.js +4 -4
  32. package/dist/cjs/index3.js +4 -4
  33. package/dist/cjs/index30.js +2 -1
  34. package/dist/cjs/index30.js.map +1 -1
  35. package/dist/cjs/index37.js +11 -10
  36. package/dist/cjs/index37.js.map +1 -1
  37. package/dist/cjs/index38.js +4 -4
  38. package/dist/cjs/index39.js +5 -5
  39. package/dist/cjs/index40.js +7 -6
  40. package/dist/cjs/index40.js.map +1 -1
  41. package/dist/cjs/index41.js +1 -1
  42. package/dist/cjs/index44.js +2 -2
  43. package/dist/cjs/index6.js +4 -4
  44. package/dist/cjs/{types.esm-001e145f.js → types.esm-9e1f15fe.js} +146 -7
  45. package/dist/cjs/types.esm-9e1f15fe.js.map +1 -0
  46. package/dist/esm/{BoostGenericCard-ff524b44.js → BoostGenericCard-b87d4600.js} +2 -2
  47. package/dist/esm/{BoostGenericCard-ff524b44.js.map → BoostGenericCard-b87d4600.js.map} +1 -1
  48. package/dist/esm/{CertDisplayCardSkillsCount-955ae3e6.js → CertDisplayCardSkillsCount-9cf487a7.js} +2 -2
  49. package/dist/esm/{CertDisplayCardSkillsCount-955ae3e6.js.map → CertDisplayCardSkillsCount-9cf487a7.js.map} +1 -1
  50. package/dist/esm/{CertificateDisplayCard-f2dcb707.js → CertificateDisplayCard-a8eff954.js} +4 -4
  51. package/dist/esm/{CertificateDisplayCard-f2dcb707.js.map → CertificateDisplayCard-a8eff954.js.map} +1 -1
  52. package/dist/esm/{MeritBadgeDisplayCard-56521ef4.js → MeritBadgeDisplayCard-bc6b7a90.js} +3 -3
  53. package/dist/esm/{MeritBadgeDisplayCard-56521ef4.js.map → MeritBadgeDisplayCard-bc6b7a90.js.map} +1 -1
  54. package/dist/esm/{MeritBadgeSkillsCount-46ba7b57.js → MeritBadgeSkillsCount-4f1486d1.js} +2 -2
  55. package/dist/esm/{MeritBadgeSkillsCount-46ba7b57.js.map → MeritBadgeSkillsCount-4f1486d1.js.map} +1 -1
  56. package/dist/esm/{SchoolIDCard-752092fb.js → SchoolIDCard-aedfa350.js} +2 -1183
  57. package/dist/esm/SchoolIDCard-aedfa350.js.map +1 -0
  58. package/dist/esm/{VCCard-2d989780.js → VCCard-c6774301.js} +3 -3
  59. package/dist/esm/{VCCard-2d989780.js.map → VCCard-c6774301.js.map} +1 -1
  60. package/dist/esm/{VCDisplayBackFace-d4a1a7c5.js → VCDisplayBackFace-2e95f436.js} +3 -3
  61. package/dist/esm/{VCDisplayBackFace-d4a1a7c5.js.map → VCDisplayBackFace-2e95f436.js.map} +1 -1
  62. package/dist/esm/{VCDisplayCard-162030f8.js → VCDisplayCard-0fcc5eb8.js} +3 -3
  63. package/dist/esm/{VCDisplayCard-162030f8.js.map → VCDisplayCard-0fcc5eb8.js.map} +1 -1
  64. package/dist/esm/{VCDisplayCard2-480e6fe3.js → VCDisplayCard2-9ba8f27c.js} +6 -5
  65. package/dist/esm/{VCDisplayCard2-480e6fe3.js.map → VCDisplayCard2-9ba8f27c.js.map} +1 -1
  66. package/dist/esm/{VCVerificationPill-dd996d83.js → VCVerificationPill-20eb62c1.js} +2 -2
  67. package/dist/esm/{VCVerificationPill-dd996d83.js.map → VCVerificationPill-20eb62c1.js.map} +1 -1
  68. package/dist/esm/{credential.helpers-efa2fefd.js → credential.helpers-5362ab28.js} +2 -2
  69. package/dist/esm/{credential.helpers-efa2fefd.js.map → credential.helpers-5362ab28.js.map} +1 -1
  70. package/dist/esm/index-4fa491c1.js +1184 -0
  71. package/dist/esm/index-4fa491c1.js.map +1 -0
  72. package/dist/esm/index.js +14 -13
  73. package/dist/esm/index.js.map +1 -1
  74. package/dist/esm/index13.js +14 -13
  75. package/dist/esm/index13.js.map +1 -1
  76. package/dist/esm/index21.js +4 -4
  77. package/dist/esm/index3.js +4 -4
  78. package/dist/esm/index30.js +2 -1
  79. package/dist/esm/index30.js.map +1 -1
  80. package/dist/esm/index37.js +11 -10
  81. package/dist/esm/index37.js.map +1 -1
  82. package/dist/esm/index38.js +4 -4
  83. package/dist/esm/index39.js +5 -5
  84. package/dist/esm/index40.js +7 -6
  85. package/dist/esm/index40.js.map +1 -1
  86. package/dist/esm/index41.js +1 -1
  87. package/dist/esm/index44.js +2 -2
  88. package/dist/esm/index6.js +4 -4
  89. package/dist/esm/{types.esm-3d7d9cb3.js → types.esm-603cf59d.js} +146 -7
  90. package/dist/esm/types.esm-603cf59d.js.map +1 -0
  91. package/package.json +3 -3
  92. package/dist/cjs/SchoolIDCard-39a099d2.js.map +0 -1
  93. package/dist/cjs/types.esm-001e145f.js.map +0 -1
  94. package/dist/esm/SchoolIDCard-752092fb.js.map +0 -1
  95. package/dist/esm/types.esm-3d7d9cb3.js.map +0 -1
@@ -4460,7 +4460,7 @@ var UnsignedVPValidator = z.object({
4460
4460
  verifiableCredential: VCValidator.or(VCValidator.array()).optional(),
4461
4461
  holder: z.string().optional()
4462
4462
  }).catchall(z.any());
4463
- UnsignedVPValidator.extend({
4463
+ var VPValidator = UnsignedVPValidator.extend({
4464
4464
  proof: ProofValidator.or(ProofValidator.array())
4465
4465
  });
4466
4466
  var JWKValidator = z.object({
@@ -4799,7 +4799,7 @@ var LCNProfileValidator = z.object({
4799
4799
  bio: z.string().default("").describe("Longer bio for the profile."),
4800
4800
  did: z.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),
4801
4801
  isPrivate: z.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),
4802
- email: z.string().optional().describe("Contact email address for the profile."),
4802
+ email: z.string().optional().describe("Contact email address for the profile. (deprecated)"),
4803
4803
  image: z.string().optional().describe("Profile image URL for the profile."),
4804
4804
  heroImage: z.string().optional().describe("Hero image URL for the profile."),
4805
4805
  websiteLink: z.string().optional().describe("Website link for the profile."),
@@ -4968,7 +4968,8 @@ z.object({
4968
4968
  name: z.string().max(15).regex(/^[a-z0-9-]+$/, {
4969
4969
  message: "The input string must contain only lowercase letters, numbers, and hyphens."
4970
4970
  }),
4971
- did: z.string()
4971
+ did: z.string(),
4972
+ isPrimary: z.boolean().optional()
4972
4973
  })
4973
4974
  });
4974
4975
  z.object({
@@ -5149,16 +5150,33 @@ var LCNNotificationTypeEnumValidator = z.enum([
5149
5150
  "BOOST_ACCEPTED",
5150
5151
  "PRESENTATION_REQUEST",
5151
5152
  "PRESENTATION_RECEIVED",
5152
- "CONSENT_FLOW_TRANSACTION"
5153
+ "CONSENT_FLOW_TRANSACTION",
5154
+ "ISSUANCE_CLAIMED",
5155
+ "ISSUANCE_DELIVERED"
5153
5156
  ]);
5154
5157
  var LCNNotificationMessageValidator = z.object({
5155
5158
  title: z.string().optional(),
5156
5159
  body: z.string().optional()
5157
5160
  });
5161
+ var LCNInboxContactMethodValidator = z.object({
5162
+ type: z.string(),
5163
+ value: z.string()
5164
+ });
5165
+ var LCNInboxStatusEnumValidator = z.enum(["PENDING", "DELIVERED", "CLAIMED", "EXPIRED"]);
5166
+ var LCNNotificationInboxValidator = z.object({
5167
+ issuanceId: z.string(),
5168
+ status: LCNInboxStatusEnumValidator,
5169
+ recipient: z.object({
5170
+ contactMethod: LCNInboxContactMethodValidator.optional(),
5171
+ learnCardId: z.string().optional()
5172
+ }),
5173
+ timestamp: z.string().datetime().optional()
5174
+ });
5158
5175
  var LCNNotificationDataValidator = z.object({
5159
5176
  vcUris: z.array(z.string()).optional(),
5160
5177
  vpUris: z.array(z.string()).optional(),
5161
- transaction: ConsentFlowTransactionValidator.optional()
5178
+ transaction: ConsentFlowTransactionValidator.optional(),
5179
+ inbox: LCNNotificationInboxValidator.optional()
5162
5180
  });
5163
5181
  z.object({
5164
5182
  type: LCNNotificationTypeEnumValidator,
@@ -5166,7 +5184,8 @@ z.object({
5166
5184
  from: LCNProfileValidator.partial().and(z.object({ did: z.string() })),
5167
5185
  message: LCNNotificationMessageValidator.optional(),
5168
5186
  data: LCNNotificationDataValidator.optional(),
5169
- sent: z.string().datetime().optional()
5187
+ sent: z.string().datetime().optional(),
5188
+ webhookUrl: z.string().optional()
5170
5189
  });
5171
5190
  var AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX = "auth-grant:";
5172
5191
  z.object({
@@ -5190,6 +5209,126 @@ z.object({
5190
5209
  description: StringQuery,
5191
5210
  status: AuthGrantStatusValidator
5192
5211
  }).partial();
5212
+ var contactMethodBase = z.object({
5213
+ id: z.string(),
5214
+ isVerified: z.boolean(),
5215
+ verifiedAt: z.string().optional(),
5216
+ isPrimary: z.boolean(),
5217
+ createdAt: z.string()
5218
+ });
5219
+ z.discriminatedUnion("type", [
5220
+ z.object({
5221
+ type: z.literal("email"),
5222
+ value: z.string().email()
5223
+ }).merge(contactMethodBase),
5224
+ z.object({
5225
+ type: z.literal("phone"),
5226
+ value: z.string()
5227
+ }).merge(contactMethodBase)
5228
+ ]);
5229
+ var createContactMethodBase = z.object({
5230
+ isVerified: z.boolean().optional(),
5231
+ isPrimary: z.boolean().optional()
5232
+ });
5233
+ z.discriminatedUnion("type", [
5234
+ z.object({
5235
+ type: z.literal("email"),
5236
+ value: z.string().email()
5237
+ }).merge(createContactMethodBase),
5238
+ z.object({
5239
+ type: z.literal("phone"),
5240
+ value: z.string()
5241
+ }).merge(createContactMethodBase)
5242
+ ]);
5243
+ var ContactMethodQueryValidator = z.discriminatedUnion("type", [
5244
+ z.object({
5245
+ type: z.literal("email"),
5246
+ value: z.string().email()
5247
+ }),
5248
+ z.object({
5249
+ type: z.literal("phone"),
5250
+ value: z.string()
5251
+ })
5252
+ ]);
5253
+ z.object({
5254
+ value: z.string(),
5255
+ type: z.enum(["email", "phone"])
5256
+ });
5257
+ z.object({
5258
+ token: z.string()
5259
+ });
5260
+ z.object({
5261
+ contactMethodId: z.string()
5262
+ });
5263
+ var InboxCredentialValidator = z.object({
5264
+ id: z.string(),
5265
+ credential: z.string(),
5266
+ isSigned: z.boolean(),
5267
+ currentStatus: LCNInboxStatusEnumValidator,
5268
+ expiresAt: z.string(),
5269
+ createdAt: z.string(),
5270
+ issuerDid: z.string(),
5271
+ webhookUrl: z.string().optional(),
5272
+ "signingAuthority.endpoint": z.string().optional(),
5273
+ "signingAuthority.name": z.string().optional()
5274
+ });
5275
+ z.object({
5276
+ hasMore: z.boolean(),
5277
+ records: z.array(InboxCredentialValidator),
5278
+ cursor: z.string().optional()
5279
+ });
5280
+ z.object({
5281
+ currentStatus: LCNInboxStatusEnumValidator,
5282
+ id: z.string(),
5283
+ isSigned: z.boolean(),
5284
+ issuerDid: z.string()
5285
+ }).partial();
5286
+ var IssueInboxSigningAuthorityValidator = z.object({
5287
+ endpoint: z.string().url(),
5288
+ name: z.string()
5289
+ });
5290
+ z.object({
5291
+ recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
5292
+ credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe("The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."),
5293
+ configuration: z.object({
5294
+ signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe("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."),
5295
+ webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
5296
+ expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
5297
+ delivery: z.object({
5298
+ suppress: z.boolean().optional().default(false).describe("Whether to suppress delivery of the credential to the recipient. If true, the email/sms will not be sent to the recipient. Useful if you would like to manually send claim link to your users."),
5299
+ template: z.object({
5300
+ id: z.enum(["universal-inbox-claim"]).optional().describe("The template ID to use for the credential delivery. If not provided, the default template will be used."),
5301
+ model: z.object({
5302
+ issuer: z.object({
5303
+ name: z.string().optional().describe('The name of the organization (e.g., "State University").'),
5304
+ logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
5305
+ }).optional(),
5306
+ credential: z.object({
5307
+ name: z.string().optional().describe('The name of the credential (e.g., "Bachelor of Science").'),
5308
+ type: z.string().optional().describe('The type of the credential (e.g., "degree", "certificate").')
5309
+ }).optional(),
5310
+ recipient: z.object({
5311
+ name: z.string().optional().describe('The name of the recipient (e.g., "John Doe").')
5312
+ }).optional()
5313
+ }).describe("The template model to use for the credential delivery. Injects via template variables into email/sms templates. If not provided, the default template will be used.")
5314
+ }).optional().describe("The template to use for the credential delivery. If not provided, the default template will be used.")
5315
+ }).optional().describe("Configuration for the credential delivery i.e. email or SMS. When credentials are sent to a user who has a verified email or phone associated with their account, delivery is skipped, and the credential will be sent using in-app notifications. If not provided, the default configuration will be used.")
5316
+ }).optional().describe("Configuration for the credential issuance. If not provided, the default configuration will be used.")
5317
+ });
5318
+ z.object({
5319
+ issuanceId: z.string(),
5320
+ status: LCNInboxStatusEnumValidator,
5321
+ recipient: ContactMethodQueryValidator,
5322
+ claimUrl: z.string().url().optional(),
5323
+ recipientDid: z.string().optional()
5324
+ });
5325
+ z.object({
5326
+ token: z.string(),
5327
+ contactMethodId: z.string(),
5328
+ createdAt: z.string(),
5329
+ expiresAt: z.string(),
5330
+ used: z.boolean()
5331
+ });
5193
5332
 
5194
5333
  export { VerificationStatusEnum as V };
5195
- //# sourceMappingURL=types.esm-3d7d9cb3.js.map
5334
+ //# sourceMappingURL=types.esm-603cf59d.js.map