@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.
- package/dist/cjs/{BoostGenericCard-d124f09b.js → BoostGenericCard-1c2a8a3c.js} +2 -2
- package/dist/cjs/{BoostGenericCard-d124f09b.js.map → BoostGenericCard-1c2a8a3c.js.map} +1 -1
- package/dist/cjs/{CertDisplayCardSkillsCount-8f36cc71.js → CertDisplayCardSkillsCount-b1565a79.js} +2 -2
- package/dist/cjs/{CertDisplayCardSkillsCount-8f36cc71.js.map → CertDisplayCardSkillsCount-b1565a79.js.map} +1 -1
- package/dist/cjs/{CertificateDisplayCard-01c8abeb.js → CertificateDisplayCard-da900056.js} +4 -4
- package/dist/cjs/{CertificateDisplayCard-01c8abeb.js.map → CertificateDisplayCard-da900056.js.map} +1 -1
- package/dist/cjs/{MeritBadgeDisplayCard-b850c98a.js → MeritBadgeDisplayCard-377ad2c7.js} +3 -3
- package/dist/cjs/{MeritBadgeDisplayCard-b850c98a.js.map → MeritBadgeDisplayCard-377ad2c7.js.map} +1 -1
- package/dist/cjs/{MeritBadgeSkillsCount-2ac44b62.js → MeritBadgeSkillsCount-cf2c9c8c.js} +2 -2
- package/dist/cjs/{MeritBadgeSkillsCount-2ac44b62.js.map → MeritBadgeSkillsCount-cf2c9c8c.js.map} +1 -1
- package/dist/cjs/{SchoolIDCard-39a099d2.js → SchoolIDCard-da911949.js} +3 -1184
- package/dist/cjs/SchoolIDCard-da911949.js.map +1 -0
- package/dist/cjs/{VCCard-01bbf378.js → VCCard-b942b5dc.js} +3 -3
- package/dist/cjs/{VCCard-01bbf378.js.map → VCCard-b942b5dc.js.map} +1 -1
- package/dist/cjs/{VCDisplayBackFace-6edd429e.js → VCDisplayBackFace-6a495d04.js} +3 -3
- package/dist/cjs/{VCDisplayBackFace-6edd429e.js.map → VCDisplayBackFace-6a495d04.js.map} +1 -1
- package/dist/cjs/{VCDisplayCard-2068de2a.js → VCDisplayCard-2c4852e7.js} +3 -3
- package/dist/cjs/{VCDisplayCard-2068de2a.js.map → VCDisplayCard-2c4852e7.js.map} +1 -1
- package/dist/cjs/{VCDisplayCard2-404bcfb6.js → VCDisplayCard2-353a27dd.js} +6 -5
- package/dist/cjs/{VCDisplayCard2-404bcfb6.js.map → VCDisplayCard2-353a27dd.js.map} +1 -1
- package/dist/cjs/{VCVerificationPill-d1bba159.js → VCVerificationPill-5459decc.js} +2 -2
- package/dist/cjs/{VCVerificationPill-d1bba159.js.map → VCVerificationPill-5459decc.js.map} +1 -1
- package/dist/cjs/{credential.helpers-f9ca3fe1.js → credential.helpers-a6eb673d.js} +2 -2
- package/dist/cjs/{credential.helpers-f9ca3fe1.js.map → credential.helpers-a6eb673d.js.map} +1 -1
- package/dist/cjs/index-838fa72c.js +1186 -0
- package/dist/cjs/index-838fa72c.js.map +1 -0
- package/dist/cjs/index.js +14 -13
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index13.js +14 -13
- package/dist/cjs/index13.js.map +1 -1
- package/dist/cjs/index21.js +4 -4
- package/dist/cjs/index3.js +4 -4
- package/dist/cjs/index30.js +2 -1
- package/dist/cjs/index30.js.map +1 -1
- package/dist/cjs/index37.js +11 -10
- package/dist/cjs/index37.js.map +1 -1
- package/dist/cjs/index38.js +4 -4
- package/dist/cjs/index39.js +5 -5
- package/dist/cjs/index40.js +7 -6
- package/dist/cjs/index40.js.map +1 -1
- package/dist/cjs/index41.js +1 -1
- package/dist/cjs/index44.js +2 -2
- package/dist/cjs/index6.js +4 -4
- package/dist/cjs/{types.esm-001e145f.js → types.esm-9e1f15fe.js} +146 -7
- package/dist/cjs/types.esm-9e1f15fe.js.map +1 -0
- package/dist/esm/{BoostGenericCard-ff524b44.js → BoostGenericCard-b87d4600.js} +2 -2
- package/dist/esm/{BoostGenericCard-ff524b44.js.map → BoostGenericCard-b87d4600.js.map} +1 -1
- package/dist/esm/{CertDisplayCardSkillsCount-955ae3e6.js → CertDisplayCardSkillsCount-9cf487a7.js} +2 -2
- package/dist/esm/{CertDisplayCardSkillsCount-955ae3e6.js.map → CertDisplayCardSkillsCount-9cf487a7.js.map} +1 -1
- package/dist/esm/{CertificateDisplayCard-f2dcb707.js → CertificateDisplayCard-a8eff954.js} +4 -4
- package/dist/esm/{CertificateDisplayCard-f2dcb707.js.map → CertificateDisplayCard-a8eff954.js.map} +1 -1
- package/dist/esm/{MeritBadgeDisplayCard-56521ef4.js → MeritBadgeDisplayCard-bc6b7a90.js} +3 -3
- package/dist/esm/{MeritBadgeDisplayCard-56521ef4.js.map → MeritBadgeDisplayCard-bc6b7a90.js.map} +1 -1
- package/dist/esm/{MeritBadgeSkillsCount-46ba7b57.js → MeritBadgeSkillsCount-4f1486d1.js} +2 -2
- package/dist/esm/{MeritBadgeSkillsCount-46ba7b57.js.map → MeritBadgeSkillsCount-4f1486d1.js.map} +1 -1
- package/dist/esm/{SchoolIDCard-752092fb.js → SchoolIDCard-aedfa350.js} +2 -1183
- package/dist/esm/SchoolIDCard-aedfa350.js.map +1 -0
- package/dist/esm/{VCCard-2d989780.js → VCCard-c6774301.js} +3 -3
- package/dist/esm/{VCCard-2d989780.js.map → VCCard-c6774301.js.map} +1 -1
- package/dist/esm/{VCDisplayBackFace-d4a1a7c5.js → VCDisplayBackFace-2e95f436.js} +3 -3
- package/dist/esm/{VCDisplayBackFace-d4a1a7c5.js.map → VCDisplayBackFace-2e95f436.js.map} +1 -1
- package/dist/esm/{VCDisplayCard-162030f8.js → VCDisplayCard-0fcc5eb8.js} +3 -3
- package/dist/esm/{VCDisplayCard-162030f8.js.map → VCDisplayCard-0fcc5eb8.js.map} +1 -1
- package/dist/esm/{VCDisplayCard2-480e6fe3.js → VCDisplayCard2-9ba8f27c.js} +6 -5
- package/dist/esm/{VCDisplayCard2-480e6fe3.js.map → VCDisplayCard2-9ba8f27c.js.map} +1 -1
- package/dist/esm/{VCVerificationPill-dd996d83.js → VCVerificationPill-20eb62c1.js} +2 -2
- package/dist/esm/{VCVerificationPill-dd996d83.js.map → VCVerificationPill-20eb62c1.js.map} +1 -1
- package/dist/esm/{credential.helpers-efa2fefd.js → credential.helpers-5362ab28.js} +2 -2
- package/dist/esm/{credential.helpers-efa2fefd.js.map → credential.helpers-5362ab28.js.map} +1 -1
- package/dist/esm/index-4fa491c1.js +1184 -0
- package/dist/esm/index-4fa491c1.js.map +1 -0
- package/dist/esm/index.js +14 -13
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index13.js +14 -13
- package/dist/esm/index13.js.map +1 -1
- package/dist/esm/index21.js +4 -4
- package/dist/esm/index3.js +4 -4
- package/dist/esm/index30.js +2 -1
- package/dist/esm/index30.js.map +1 -1
- package/dist/esm/index37.js +11 -10
- package/dist/esm/index37.js.map +1 -1
- package/dist/esm/index38.js +4 -4
- package/dist/esm/index39.js +5 -5
- package/dist/esm/index40.js +7 -6
- package/dist/esm/index40.js.map +1 -1
- package/dist/esm/index41.js +1 -1
- package/dist/esm/index44.js +2 -2
- package/dist/esm/index6.js +4 -4
- package/dist/esm/{types.esm-3d7d9cb3.js → types.esm-603cf59d.js} +146 -7
- package/dist/esm/types.esm-603cf59d.js.map +1 -0
- package/package.json +3 -3
- package/dist/cjs/SchoolIDCard-39a099d2.js.map +0 -1
- package/dist/cjs/types.esm-001e145f.js.map +0 -1
- package/dist/esm/SchoolIDCard-752092fb.js.map +0 -1
- 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-
|
|
5334
|
+
//# sourceMappingURL=types.esm-603cf59d.js.map
|