@learncard/helpers 1.0.7 → 1.0.9
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.
@@ -92,6 +92,7 @@ var require_types_cjs_development = __commonJS({
|
|
92
92
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator,
|
93
93
|
PaginatedEncryptedCredentialRecordsValidator: () => PaginatedEncryptedCredentialRecordsValidator,
|
94
94
|
PaginatedEncryptedRecordsValidator: () => PaginatedEncryptedRecordsValidator,
|
95
|
+
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator,
|
95
96
|
PaginationOptionsValidator: () => PaginationOptionsValidator,
|
96
97
|
PaginationResponseValidator: () => PaginationResponseValidator,
|
97
98
|
ProfileValidator: () => ProfileValidator,
|
@@ -3520,8 +3521,8 @@ var require_types_cjs_development = __commonJS({
|
|
3520
3521
|
dateOfBirth: mod.string().optional()
|
3521
3522
|
}).catchall(mod.any()));
|
3522
3523
|
var CredentialSubjectValidator = mod.object({ id: mod.string().optional() }).catchall(mod.any());
|
3523
|
-
var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() });
|
3524
|
-
var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() });
|
3524
|
+
var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() }).catchall(mod.any());
|
3525
|
+
var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
|
3525
3526
|
var RefreshServiceValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
|
3526
3527
|
var UnsignedVCValidator = mod.object({
|
3527
3528
|
"@context": ContextValidator,
|
@@ -3551,7 +3552,7 @@ var require_types_cjs_development = __commonJS({
|
|
3551
3552
|
var UnsignedVPValidator = mod.object({
|
3552
3553
|
"@context": ContextValidator,
|
3553
3554
|
id: mod.string().optional(),
|
3554
|
-
type: mod.string().array().nonempty(),
|
3555
|
+
type: mod.string().or(mod.string().array().nonempty()),
|
3555
3556
|
verifiableCredential: VCValidator.or(VCValidator.array()).optional(),
|
3556
3557
|
holder: mod.string().optional()
|
3557
3558
|
}).catchall(mod.any());
|
@@ -3819,6 +3820,9 @@ var require_types_cjs_development = __commonJS({
|
|
3819
3820
|
isServiceProfile: mod.boolean().default(false).optional(),
|
3820
3821
|
notificationsWebhook: mod.string().url().startsWith("https://").optional()
|
3821
3822
|
});
|
3823
|
+
var PaginatedLCNProfilesValidator = PaginationResponseValidator.extend({
|
3824
|
+
records: LCNProfileValidator.array()
|
3825
|
+
});
|
3822
3826
|
var LCNProfileConnectionStatusEnum = mod.enum([
|
3823
3827
|
"CONNECTED",
|
3824
3828
|
"PENDING_REQUEST_SENT",
|