@learncard/helpers 1.0.9 → 1.0.11
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/helpers.cjs.development.js +141 -1
- package/dist/helpers.cjs.development.js.map +2 -2
- package/dist/helpers.cjs.production.min.js +1 -1
- package/dist/helpers.cjs.production.min.js.map +2 -2
- package/dist/helpers.esm.js +141 -1
- package/dist/helpers.esm.js.map +2 -2
- package/package.json +2 -2
@@ -57,6 +57,16 @@ var require_types_cjs_development = __commonJS({
|
|
57
57
|
AlignmentValidator: () => AlignmentValidator,
|
58
58
|
BoostRecipientValidator: () => BoostRecipientValidator,
|
59
59
|
BoostValidator: () => BoostValidator,
|
60
|
+
ConsentFlowContractDataValidator: () => ConsentFlowContractDataValidator,
|
61
|
+
ConsentFlowContractDetailsValidator: () => ConsentFlowContractDetailsValidator,
|
62
|
+
ConsentFlowContractQueryValidator: () => ConsentFlowContractQueryValidator,
|
63
|
+
ConsentFlowContractValidator: () => ConsentFlowContractValidator,
|
64
|
+
ConsentFlowTermsQueryValidator: () => ConsentFlowTermsQueryValidator,
|
65
|
+
ConsentFlowTermsStatusValidator: () => ConsentFlowTermsStatusValidator,
|
66
|
+
ConsentFlowTermsValidator: () => ConsentFlowTermsValidator,
|
67
|
+
ConsentFlowTransactionActionValidator: () => ConsentFlowTransactionActionValidator,
|
68
|
+
ConsentFlowTransactionValidator: () => ConsentFlowTransactionValidator,
|
69
|
+
ConsentFlowTransactionsQueryValidator: () => ConsentFlowTransactionsQueryValidator,
|
60
70
|
ContextValidator: () => ContextValidator,
|
61
71
|
CredentialInfoValidator: () => CredentialInfoValidator,
|
62
72
|
CredentialRecordValidator: () => CredentialRecordValidator,
|
@@ -90,6 +100,10 @@ var require_types_cjs_development = __commonJS({
|
|
90
100
|
LCNProfileValidator: () => LCNProfileValidator,
|
91
101
|
LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator,
|
92
102
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator,
|
103
|
+
PaginatedConsentFlowContractsValidator: () => PaginatedConsentFlowContractsValidator,
|
104
|
+
PaginatedConsentFlowDataValidator: () => PaginatedConsentFlowDataValidator,
|
105
|
+
PaginatedConsentFlowTermsValidator: () => PaginatedConsentFlowTermsValidator,
|
106
|
+
PaginatedConsentFlowTransactionsValidator: () => PaginatedConsentFlowTransactionsValidator,
|
93
107
|
PaginatedEncryptedCredentialRecordsValidator: () => PaginatedEncryptedCredentialRecordsValidator,
|
94
108
|
PaginatedEncryptedRecordsValidator: () => PaginatedEncryptedRecordsValidator,
|
95
109
|
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator,
|
@@ -3814,6 +3828,7 @@ var require_types_cjs_development = __commonJS({
|
|
3814
3828
|
var LCNProfileValidator = mod.object({
|
3815
3829
|
profileId: mod.string().min(3).max(40),
|
3816
3830
|
displayName: mod.string().default(""),
|
3831
|
+
bio: mod.string().default(""),
|
3817
3832
|
did: mod.string(),
|
3818
3833
|
email: mod.string().optional(),
|
3819
3834
|
image: mod.string().optional(),
|
@@ -3842,7 +3857,8 @@ var require_types_cjs_development = __commonJS({
|
|
3842
3857
|
name: mod.string().optional(),
|
3843
3858
|
type: mod.string().optional(),
|
3844
3859
|
category: mod.string().optional(),
|
3845
|
-
status: LCNBoostStatus.optional()
|
3860
|
+
status: LCNBoostStatus.optional(),
|
3861
|
+
autoConnectRecipients: mod.boolean().optional()
|
3846
3862
|
});
|
3847
3863
|
var BoostRecipientValidator = mod.object({
|
3848
3864
|
to: LCNProfileValidator,
|
@@ -3896,6 +3912,130 @@ var require_types_cjs_development = __commonJS({
|
|
3896
3912
|
did: mod.string()
|
3897
3913
|
})
|
3898
3914
|
});
|
3915
|
+
var ConsentFlowTermsStatusValidator = mod.enum(["live", "stale", "withdrawn"]);
|
3916
|
+
var ConsentFlowContractValidator = mod.object({
|
3917
|
+
read: mod.object({
|
3918
|
+
anonymize: mod.boolean().optional(),
|
3919
|
+
credentials: mod.object({ categories: mod.record(mod.object({ required: mod.boolean() })).default({}) }).default({}),
|
3920
|
+
personal: mod.record(mod.object({ required: mod.boolean() })).default({})
|
3921
|
+
}).default({}),
|
3922
|
+
write: mod.object({
|
3923
|
+
credentials: mod.object({ categories: mod.record(mod.object({ required: mod.boolean() })).default({}) }).default({}),
|
3924
|
+
personal: mod.record(mod.object({ required: mod.boolean() })).default({})
|
3925
|
+
}).default({})
|
3926
|
+
});
|
3927
|
+
var ConsentFlowContractDetailsValidator = mod.object({
|
3928
|
+
contract: ConsentFlowContractValidator,
|
3929
|
+
owner: LCNProfileValidator,
|
3930
|
+
name: mod.string(),
|
3931
|
+
subtitle: mod.string().optional(),
|
3932
|
+
description: mod.string().optional(),
|
3933
|
+
reasonForAccessing: mod.string().optional(),
|
3934
|
+
image: mod.string().optional(),
|
3935
|
+
uri: mod.string(),
|
3936
|
+
createdAt: mod.string(),
|
3937
|
+
updatedAt: mod.string(),
|
3938
|
+
expiresAt: mod.string().optional()
|
3939
|
+
});
|
3940
|
+
var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
|
3941
|
+
records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
|
3942
|
+
});
|
3943
|
+
var ConsentFlowContractDataValidator = mod.object({
|
3944
|
+
credentials: mod.object({ categories: mod.record(mod.string().array()).default({}) }),
|
3945
|
+
personal: mod.record(mod.string()).default({}),
|
3946
|
+
date: mod.string()
|
3947
|
+
});
|
3948
|
+
var PaginatedConsentFlowDataValidator = PaginationResponseValidator.extend({
|
3949
|
+
records: ConsentFlowContractDataValidator.array()
|
3950
|
+
});
|
3951
|
+
var ConsentFlowTermsValidator = mod.object({
|
3952
|
+
read: mod.object({
|
3953
|
+
anonymize: mod.boolean().optional(),
|
3954
|
+
credentials: mod.object({
|
3955
|
+
shareAll: mod.boolean().optional(),
|
3956
|
+
sharing: mod.boolean().optional(),
|
3957
|
+
categories: mod.record(mod.object({
|
3958
|
+
sharing: mod.boolean().optional(),
|
3959
|
+
shared: mod.string().array().optional(),
|
3960
|
+
shareAll: mod.boolean().optional()
|
3961
|
+
})).default({})
|
3962
|
+
}).default({}),
|
3963
|
+
personal: mod.record(mod.string()).default({})
|
3964
|
+
}).default({}),
|
3965
|
+
write: mod.object({
|
3966
|
+
credentials: mod.object({ categories: mod.record(mod.boolean()).default({}) }).default({}),
|
3967
|
+
personal: mod.record(mod.boolean()).default({})
|
3968
|
+
}).default({})
|
3969
|
+
});
|
3970
|
+
var PaginatedConsentFlowTermsValidator = PaginationResponseValidator.extend({
|
3971
|
+
records: mod.object({
|
3972
|
+
expiresAt: mod.string().optional(),
|
3973
|
+
oneTime: mod.boolean().optional(),
|
3974
|
+
terms: ConsentFlowTermsValidator,
|
3975
|
+
contract: ConsentFlowContractDetailsValidator,
|
3976
|
+
uri: mod.string(),
|
3977
|
+
consenter: LCNProfileValidator,
|
3978
|
+
status: ConsentFlowTermsStatusValidator
|
3979
|
+
}).array()
|
3980
|
+
});
|
3981
|
+
var ConsentFlowContractQueryValidator = mod.object({
|
3982
|
+
read: mod.object({
|
3983
|
+
anonymize: mod.boolean().optional(),
|
3984
|
+
credentials: mod.object({
|
3985
|
+
categories: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
3986
|
+
}).optional(),
|
3987
|
+
personal: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
3988
|
+
}).optional(),
|
3989
|
+
write: mod.object({
|
3990
|
+
credentials: mod.object({
|
3991
|
+
categories: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
3992
|
+
}).optional(),
|
3993
|
+
personal: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
3994
|
+
}).optional()
|
3995
|
+
});
|
3996
|
+
var ConsentFlowTermsQueryValidator = mod.object({
|
3997
|
+
read: mod.object({
|
3998
|
+
anonymize: mod.boolean().optional(),
|
3999
|
+
credentials: mod.object({
|
4000
|
+
shareAll: mod.boolean().optional(),
|
4001
|
+
sharing: mod.boolean().optional(),
|
4002
|
+
categories: mod.record(mod.object({
|
4003
|
+
sharing: mod.boolean().optional(),
|
4004
|
+
shared: mod.string().array().optional(),
|
4005
|
+
shareAll: mod.boolean().optional()
|
4006
|
+
}).optional()).optional()
|
4007
|
+
}).optional(),
|
4008
|
+
personal: mod.record(mod.string()).optional()
|
4009
|
+
}).optional(),
|
4010
|
+
write: mod.object({
|
4011
|
+
credentials: mod.object({ categories: mod.record(mod.boolean()).optional() }).optional(),
|
4012
|
+
personal: mod.record(mod.boolean()).optional()
|
4013
|
+
}).optional()
|
4014
|
+
});
|
4015
|
+
var ConsentFlowTransactionActionValidator = mod.enum([
|
4016
|
+
"consent",
|
4017
|
+
"update",
|
4018
|
+
"sync",
|
4019
|
+
"withdraw"
|
4020
|
+
]);
|
4021
|
+
var ConsentFlowTransactionsQueryValidator = mod.object({
|
4022
|
+
terms: ConsentFlowTermsQueryValidator.optional(),
|
4023
|
+
action: ConsentFlowTransactionActionValidator.or(ConsentFlowTransactionActionValidator.array()).optional(),
|
4024
|
+
date: mod.object({ $gt: mod.string() }).or(mod.object({ $lt: mod.string() })).or(mod.object({ $eq: mod.string() })).optional(),
|
4025
|
+
expiresAt: mod.object({ $gt: mod.string() }).or(mod.object({ $lt: mod.string() })).or(mod.object({ $eq: mod.string() })).optional(),
|
4026
|
+
oneTime: mod.boolean().optional()
|
4027
|
+
});
|
4028
|
+
var ConsentFlowTransactionValidator = mod.object({
|
4029
|
+
expiresAt: mod.string().optional(),
|
4030
|
+
oneTime: mod.boolean().optional(),
|
4031
|
+
terms: ConsentFlowTermsValidator.optional(),
|
4032
|
+
id: mod.string(),
|
4033
|
+
action: ConsentFlowTransactionActionValidator,
|
4034
|
+
date: mod.string()
|
4035
|
+
});
|
4036
|
+
var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
|
4037
|
+
records: ConsentFlowTransactionValidator.array()
|
4038
|
+
});
|
3899
4039
|
}
|
3900
4040
|
});
|
3901
4041
|
|