@learncard/react 2.8.2 → 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 (94) hide show
  1. package/dist/cjs/{BoostGenericCard-bbe7a765.js → BoostGenericCard-1c2a8a3c.js} +2 -2
  2. package/dist/cjs/{BoostGenericCard-bbe7a765.js.map → BoostGenericCard-1c2a8a3c.js.map} +1 -1
  3. package/dist/cjs/{CertDisplayCardSkillsCount-c378dceb.js → CertDisplayCardSkillsCount-b1565a79.js} +2 -2
  4. package/dist/cjs/{CertDisplayCardSkillsCount-c378dceb.js.map → CertDisplayCardSkillsCount-b1565a79.js.map} +1 -1
  5. package/dist/cjs/{CertificateDisplayCard-13b1cf76.js → CertificateDisplayCard-da900056.js} +4 -4
  6. package/dist/cjs/{CertificateDisplayCard-13b1cf76.js.map → CertificateDisplayCard-da900056.js.map} +1 -1
  7. package/dist/cjs/{MeritBadgeDisplayCard-d62ce523.js → MeritBadgeDisplayCard-377ad2c7.js} +3 -3
  8. package/dist/cjs/{MeritBadgeDisplayCard-d62ce523.js.map → MeritBadgeDisplayCard-377ad2c7.js.map} +1 -1
  9. package/dist/cjs/{MeritBadgeSkillsCount-35cc6c3b.js → MeritBadgeSkillsCount-cf2c9c8c.js} +2 -2
  10. package/dist/cjs/{MeritBadgeSkillsCount-35cc6c3b.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-05e49c81.js → VCCard-b942b5dc.js} +3 -3
  14. package/dist/cjs/{VCCard-05e49c81.js.map → VCCard-b942b5dc.js.map} +1 -1
  15. package/dist/cjs/{VCDisplayBackFace-3b7d4a38.js → VCDisplayBackFace-6a495d04.js} +3 -3
  16. package/dist/cjs/{VCDisplayBackFace-3b7d4a38.js.map → VCDisplayBackFace-6a495d04.js.map} +1 -1
  17. package/dist/cjs/{VCDisplayCard-2d94d58e.js → VCDisplayCard-2c4852e7.js} +3 -3
  18. package/dist/cjs/{VCDisplayCard-2d94d58e.js.map → VCDisplayCard-2c4852e7.js.map} +1 -1
  19. package/dist/cjs/{VCDisplayCard2-e1328b65.js → VCDisplayCard2-353a27dd.js} +6 -5
  20. package/dist/cjs/{VCDisplayCard2-e1328b65.js.map → VCDisplayCard2-353a27dd.js.map} +1 -1
  21. package/dist/cjs/{VCVerificationPill-16778f6f.js → VCVerificationPill-5459decc.js} +2 -2
  22. package/dist/cjs/{VCVerificationPill-16778f6f.js.map → VCVerificationPill-5459decc.js.map} +1 -1
  23. package/dist/cjs/{credential.helpers-15e0322f.js → credential.helpers-a6eb673d.js} +2 -2
  24. package/dist/cjs/{credential.helpers-15e0322f.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-92a8b372.js → types.esm-9e1f15fe.js} +148 -8
  45. package/dist/cjs/types.esm-9e1f15fe.js.map +1 -0
  46. package/dist/esm/{BoostGenericCard-ce5f829b.js → BoostGenericCard-b87d4600.js} +2 -2
  47. package/dist/esm/{BoostGenericCard-ce5f829b.js.map → BoostGenericCard-b87d4600.js.map} +1 -1
  48. package/dist/esm/{CertDisplayCardSkillsCount-96bf97fa.js → CertDisplayCardSkillsCount-9cf487a7.js} +2 -2
  49. package/dist/esm/{CertDisplayCardSkillsCount-96bf97fa.js.map → CertDisplayCardSkillsCount-9cf487a7.js.map} +1 -1
  50. package/dist/esm/{CertificateDisplayCard-ce833b70.js → CertificateDisplayCard-a8eff954.js} +4 -4
  51. package/dist/esm/{CertificateDisplayCard-ce833b70.js.map → CertificateDisplayCard-a8eff954.js.map} +1 -1
  52. package/dist/esm/{MeritBadgeDisplayCard-d6e8a8c7.js → MeritBadgeDisplayCard-bc6b7a90.js} +3 -3
  53. package/dist/esm/{MeritBadgeDisplayCard-d6e8a8c7.js.map → MeritBadgeDisplayCard-bc6b7a90.js.map} +1 -1
  54. package/dist/esm/{MeritBadgeSkillsCount-23f4fdb2.js → MeritBadgeSkillsCount-4f1486d1.js} +2 -2
  55. package/dist/esm/{MeritBadgeSkillsCount-23f4fdb2.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-111975bd.js → VCCard-c6774301.js} +3 -3
  59. package/dist/esm/{VCCard-111975bd.js.map → VCCard-c6774301.js.map} +1 -1
  60. package/dist/esm/{VCDisplayBackFace-f4229413.js → VCDisplayBackFace-2e95f436.js} +3 -3
  61. package/dist/esm/{VCDisplayBackFace-f4229413.js.map → VCDisplayBackFace-2e95f436.js.map} +1 -1
  62. package/dist/esm/{VCDisplayCard-6b3e1a8d.js → VCDisplayCard-0fcc5eb8.js} +3 -3
  63. package/dist/esm/{VCDisplayCard-6b3e1a8d.js.map → VCDisplayCard-0fcc5eb8.js.map} +1 -1
  64. package/dist/esm/{VCDisplayCard2-4dc286ee.js → VCDisplayCard2-9ba8f27c.js} +6 -5
  65. package/dist/esm/{VCDisplayCard2-4dc286ee.js.map → VCDisplayCard2-9ba8f27c.js.map} +1 -1
  66. package/dist/esm/{VCVerificationPill-699afb09.js → VCVerificationPill-20eb62c1.js} +2 -2
  67. package/dist/esm/{VCVerificationPill-699afb09.js.map → VCVerificationPill-20eb62c1.js.map} +1 -1
  68. package/dist/esm/{credential.helpers-8431ac8c.js → credential.helpers-5362ab28.js} +2 -2
  69. package/dist/esm/{credential.helpers-8431ac8c.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-61ee6e29.js → types.esm-603cf59d.js} +148 -8
  90. package/dist/{cjs/types.esm-92a8b372.js.map → esm/types.esm-603cf59d.js.map} +1 -1
  91. package/package.json +3 -3
  92. package/dist/cjs/SchoolIDCard-39a099d2.js.map +0 -1
  93. package/dist/esm/SchoolIDCard-752092fb.js.map +0 -1
  94. package/dist/esm/types.esm-61ee6e29.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."),
@@ -4926,7 +4926,8 @@ var BoostValidator = z.object({
4926
4926
  status: LCNBoostStatus.optional(),
4927
4927
  autoConnectRecipients: z.boolean().optional(),
4928
4928
  meta: z.record(z.any()).optional(),
4929
- claimPermissions: BoostPermissionsValidator.optional()
4929
+ claimPermissions: BoostPermissionsValidator.optional(),
4930
+ allowAnyoneToCreateChildren: z.boolean().optional()
4930
4931
  });
4931
4932
  z.object({
4932
4933
  uri: StringQuery,
@@ -4967,7 +4968,8 @@ z.object({
4967
4968
  name: z.string().max(15).regex(/^[a-z0-9-]+$/, {
4968
4969
  message: "The input string must contain only lowercase letters, numbers, and hyphens."
4969
4970
  }),
4970
- did: z.string()
4971
+ did: z.string(),
4972
+ isPrimary: z.boolean().optional()
4971
4973
  })
4972
4974
  });
4973
4975
  z.object({
@@ -5148,16 +5150,33 @@ var LCNNotificationTypeEnumValidator = z.enum([
5148
5150
  "BOOST_ACCEPTED",
5149
5151
  "PRESENTATION_REQUEST",
5150
5152
  "PRESENTATION_RECEIVED",
5151
- "CONSENT_FLOW_TRANSACTION"
5153
+ "CONSENT_FLOW_TRANSACTION",
5154
+ "ISSUANCE_CLAIMED",
5155
+ "ISSUANCE_DELIVERED"
5152
5156
  ]);
5153
5157
  var LCNNotificationMessageValidator = z.object({
5154
5158
  title: z.string().optional(),
5155
5159
  body: z.string().optional()
5156
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
+ });
5157
5175
  var LCNNotificationDataValidator = z.object({
5158
5176
  vcUris: z.array(z.string()).optional(),
5159
5177
  vpUris: z.array(z.string()).optional(),
5160
- transaction: ConsentFlowTransactionValidator.optional()
5178
+ transaction: ConsentFlowTransactionValidator.optional(),
5179
+ inbox: LCNNotificationInboxValidator.optional()
5161
5180
  });
5162
5181
  z.object({
5163
5182
  type: LCNNotificationTypeEnumValidator,
@@ -5165,7 +5184,8 @@ z.object({
5165
5184
  from: LCNProfileValidator.partial().and(z.object({ did: z.string() })),
5166
5185
  message: LCNNotificationMessageValidator.optional(),
5167
5186
  data: LCNNotificationDataValidator.optional(),
5168
- sent: z.string().datetime().optional()
5187
+ sent: z.string().datetime().optional(),
5188
+ webhookUrl: z.string().optional()
5169
5189
  });
5170
5190
  var AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX = "auth-grant:";
5171
5191
  z.object({
@@ -5189,6 +5209,126 @@ z.object({
5189
5209
  description: StringQuery,
5190
5210
  status: AuthGrantStatusValidator
5191
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
+ });
5192
5332
 
5193
5333
  export { VerificationStatusEnum as V };
5194
- //# sourceMappingURL=types.esm-61ee6e29.js.map
5334
+ //# sourceMappingURL=types.esm-603cf59d.js.map