@learncard/react 2.8.3 → 2.8.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 (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
@@ -4462,7 +4462,7 @@ var UnsignedVPValidator = z.object({
4462
4462
  verifiableCredential: VCValidator.or(VCValidator.array()).optional(),
4463
4463
  holder: z.string().optional()
4464
4464
  }).catchall(z.any());
4465
- UnsignedVPValidator.extend({
4465
+ var VPValidator = UnsignedVPValidator.extend({
4466
4466
  proof: ProofValidator.or(ProofValidator.array())
4467
4467
  });
4468
4468
  var JWKValidator = z.object({
@@ -4801,7 +4801,7 @@ var LCNProfileValidator = z.object({
4801
4801
  bio: z.string().default("").describe("Longer bio for the profile."),
4802
4802
  did: z.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),
4803
4803
  isPrivate: z.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),
4804
- email: z.string().optional().describe("Contact email address for the profile."),
4804
+ email: z.string().optional().describe("Contact email address for the profile. (deprecated)"),
4805
4805
  image: z.string().optional().describe("Profile image URL for the profile."),
4806
4806
  heroImage: z.string().optional().describe("Hero image URL for the profile."),
4807
4807
  websiteLink: z.string().optional().describe("Website link for the profile."),
@@ -4970,7 +4970,8 @@ z.object({
4970
4970
  name: z.string().max(15).regex(/^[a-z0-9-]+$/, {
4971
4971
  message: "The input string must contain only lowercase letters, numbers, and hyphens."
4972
4972
  }),
4973
- did: z.string()
4973
+ did: z.string(),
4974
+ isPrimary: z.boolean().optional()
4974
4975
  })
4975
4976
  });
4976
4977
  z.object({
@@ -5151,16 +5152,33 @@ var LCNNotificationTypeEnumValidator = z.enum([
5151
5152
  "BOOST_ACCEPTED",
5152
5153
  "PRESENTATION_REQUEST",
5153
5154
  "PRESENTATION_RECEIVED",
5154
- "CONSENT_FLOW_TRANSACTION"
5155
+ "CONSENT_FLOW_TRANSACTION",
5156
+ "ISSUANCE_CLAIMED",
5157
+ "ISSUANCE_DELIVERED"
5155
5158
  ]);
5156
5159
  var LCNNotificationMessageValidator = z.object({
5157
5160
  title: z.string().optional(),
5158
5161
  body: z.string().optional()
5159
5162
  });
5163
+ var LCNInboxContactMethodValidator = z.object({
5164
+ type: z.string(),
5165
+ value: z.string()
5166
+ });
5167
+ var LCNInboxStatusEnumValidator = z.enum(["PENDING", "DELIVERED", "CLAIMED", "EXPIRED"]);
5168
+ var LCNNotificationInboxValidator = z.object({
5169
+ issuanceId: z.string(),
5170
+ status: LCNInboxStatusEnumValidator,
5171
+ recipient: z.object({
5172
+ contactMethod: LCNInboxContactMethodValidator.optional(),
5173
+ learnCardId: z.string().optional()
5174
+ }),
5175
+ timestamp: z.string().datetime().optional()
5176
+ });
5160
5177
  var LCNNotificationDataValidator = z.object({
5161
5178
  vcUris: z.array(z.string()).optional(),
5162
5179
  vpUris: z.array(z.string()).optional(),
5163
- transaction: ConsentFlowTransactionValidator.optional()
5180
+ transaction: ConsentFlowTransactionValidator.optional(),
5181
+ inbox: LCNNotificationInboxValidator.optional()
5164
5182
  });
5165
5183
  z.object({
5166
5184
  type: LCNNotificationTypeEnumValidator,
@@ -5168,7 +5186,8 @@ z.object({
5168
5186
  from: LCNProfileValidator.partial().and(z.object({ did: z.string() })),
5169
5187
  message: LCNNotificationMessageValidator.optional(),
5170
5188
  data: LCNNotificationDataValidator.optional(),
5171
- sent: z.string().datetime().optional()
5189
+ sent: z.string().datetime().optional(),
5190
+ webhookUrl: z.string().optional()
5172
5191
  });
5173
5192
  var AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX = "auth-grant:";
5174
5193
  z.object({
@@ -5192,6 +5211,126 @@ z.object({
5192
5211
  description: StringQuery,
5193
5212
  status: AuthGrantStatusValidator
5194
5213
  }).partial();
5214
+ var contactMethodBase = z.object({
5215
+ id: z.string(),
5216
+ isVerified: z.boolean(),
5217
+ verifiedAt: z.string().optional(),
5218
+ isPrimary: z.boolean(),
5219
+ createdAt: z.string()
5220
+ });
5221
+ z.discriminatedUnion("type", [
5222
+ z.object({
5223
+ type: z.literal("email"),
5224
+ value: z.string().email()
5225
+ }).merge(contactMethodBase),
5226
+ z.object({
5227
+ type: z.literal("phone"),
5228
+ value: z.string()
5229
+ }).merge(contactMethodBase)
5230
+ ]);
5231
+ var createContactMethodBase = z.object({
5232
+ isVerified: z.boolean().optional(),
5233
+ isPrimary: z.boolean().optional()
5234
+ });
5235
+ z.discriminatedUnion("type", [
5236
+ z.object({
5237
+ type: z.literal("email"),
5238
+ value: z.string().email()
5239
+ }).merge(createContactMethodBase),
5240
+ z.object({
5241
+ type: z.literal("phone"),
5242
+ value: z.string()
5243
+ }).merge(createContactMethodBase)
5244
+ ]);
5245
+ var ContactMethodQueryValidator = z.discriminatedUnion("type", [
5246
+ z.object({
5247
+ type: z.literal("email"),
5248
+ value: z.string().email()
5249
+ }),
5250
+ z.object({
5251
+ type: z.literal("phone"),
5252
+ value: z.string()
5253
+ })
5254
+ ]);
5255
+ z.object({
5256
+ value: z.string(),
5257
+ type: z.enum(["email", "phone"])
5258
+ });
5259
+ z.object({
5260
+ token: z.string()
5261
+ });
5262
+ z.object({
5263
+ contactMethodId: z.string()
5264
+ });
5265
+ var InboxCredentialValidator = z.object({
5266
+ id: z.string(),
5267
+ credential: z.string(),
5268
+ isSigned: z.boolean(),
5269
+ currentStatus: LCNInboxStatusEnumValidator,
5270
+ expiresAt: z.string(),
5271
+ createdAt: z.string(),
5272
+ issuerDid: z.string(),
5273
+ webhookUrl: z.string().optional(),
5274
+ "signingAuthority.endpoint": z.string().optional(),
5275
+ "signingAuthority.name": z.string().optional()
5276
+ });
5277
+ z.object({
5278
+ hasMore: z.boolean(),
5279
+ records: z.array(InboxCredentialValidator),
5280
+ cursor: z.string().optional()
5281
+ });
5282
+ z.object({
5283
+ currentStatus: LCNInboxStatusEnumValidator,
5284
+ id: z.string(),
5285
+ isSigned: z.boolean(),
5286
+ issuerDid: z.string()
5287
+ }).partial();
5288
+ var IssueInboxSigningAuthorityValidator = z.object({
5289
+ endpoint: z.string().url(),
5290
+ name: z.string()
5291
+ });
5292
+ z.object({
5293
+ recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
5294
+ 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."),
5295
+ configuration: z.object({
5296
+ 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."),
5297
+ webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
5298
+ expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
5299
+ delivery: z.object({
5300
+ 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."),
5301
+ template: z.object({
5302
+ 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."),
5303
+ model: z.object({
5304
+ issuer: z.object({
5305
+ name: z.string().optional().describe('The name of the organization (e.g., "State University").'),
5306
+ logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
5307
+ }).optional(),
5308
+ credential: z.object({
5309
+ name: z.string().optional().describe('The name of the credential (e.g., "Bachelor of Science").'),
5310
+ type: z.string().optional().describe('The type of the credential (e.g., "degree", "certificate").')
5311
+ }).optional(),
5312
+ recipient: z.object({
5313
+ name: z.string().optional().describe('The name of the recipient (e.g., "John Doe").')
5314
+ }).optional()
5315
+ }).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.")
5316
+ }).optional().describe("The template to use for the credential delivery. If not provided, the default template will be used.")
5317
+ }).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.")
5318
+ }).optional().describe("Configuration for the credential issuance. If not provided, the default configuration will be used.")
5319
+ });
5320
+ z.object({
5321
+ issuanceId: z.string(),
5322
+ status: LCNInboxStatusEnumValidator,
5323
+ recipient: ContactMethodQueryValidator,
5324
+ claimUrl: z.string().url().optional(),
5325
+ recipientDid: z.string().optional()
5326
+ });
5327
+ z.object({
5328
+ token: z.string(),
5329
+ contactMethodId: z.string(),
5330
+ createdAt: z.string(),
5331
+ expiresAt: z.string(),
5332
+ used: z.boolean()
5333
+ });
5195
5334
 
5196
5335
  exports.VerificationStatusEnum = VerificationStatusEnum;
5197
- //# sourceMappingURL=types.esm-001e145f.js.map
5336
+ //# sourceMappingURL=types.esm-9e1f15fe.js.map