@learncard/helpers 1.0.7 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
package/dist/helpers.esm.js
CHANGED
@@ -87,6 +87,7 @@ var require_types_cjs_development = __commonJS({
|
|
87
87
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator,
|
88
88
|
PaginatedEncryptedCredentialRecordsValidator: () => PaginatedEncryptedCredentialRecordsValidator,
|
89
89
|
PaginatedEncryptedRecordsValidator: () => PaginatedEncryptedRecordsValidator,
|
90
|
+
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator,
|
90
91
|
PaginationOptionsValidator: () => PaginationOptionsValidator,
|
91
92
|
PaginationResponseValidator: () => PaginationResponseValidator,
|
92
93
|
ProfileValidator: () => ProfileValidator,
|
@@ -3515,8 +3516,8 @@ var require_types_cjs_development = __commonJS({
|
|
3515
3516
|
dateOfBirth: mod.string().optional()
|
3516
3517
|
}).catchall(mod.any()));
|
3517
3518
|
var CredentialSubjectValidator = mod.object({ id: mod.string().optional() }).catchall(mod.any());
|
3518
|
-
var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() });
|
3519
|
-
var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() });
|
3519
|
+
var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() }).catchall(mod.any());
|
3520
|
+
var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
|
3520
3521
|
var RefreshServiceValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
|
3521
3522
|
var UnsignedVCValidator = mod.object({
|
3522
3523
|
"@context": ContextValidator,
|
@@ -3546,7 +3547,7 @@ var require_types_cjs_development = __commonJS({
|
|
3546
3547
|
var UnsignedVPValidator = mod.object({
|
3547
3548
|
"@context": ContextValidator,
|
3548
3549
|
id: mod.string().optional(),
|
3549
|
-
type: mod.string().array().nonempty(),
|
3550
|
+
type: mod.string().or(mod.string().array().nonempty()),
|
3550
3551
|
verifiableCredential: VCValidator.or(VCValidator.array()).optional(),
|
3551
3552
|
holder: mod.string().optional()
|
3552
3553
|
}).catchall(mod.any());
|
@@ -3814,6 +3815,9 @@ var require_types_cjs_development = __commonJS({
|
|
3814
3815
|
isServiceProfile: mod.boolean().default(false).optional(),
|
3815
3816
|
notificationsWebhook: mod.string().url().startsWith("https://").optional()
|
3816
3817
|
});
|
3818
|
+
var PaginatedLCNProfilesValidator = PaginationResponseValidator.extend({
|
3819
|
+
records: LCNProfileValidator.array()
|
3820
|
+
});
|
3817
3821
|
var LCNProfileConnectionStatusEnum = mod.enum([
|
3818
3822
|
"CONNECTED",
|
3819
3823
|
"PENDING_REQUEST_SENT",
|