@learncard/helpers 1.0.10 → 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 +145 -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 +145 -1
- package/dist/helpers.esm.js.map +2 -2
- package/package.json +2 -2
package/dist/helpers.esm.js
CHANGED
|
@@ -52,6 +52,16 @@ var require_types_cjs_development = __commonJS({
|
|
|
52
52
|
AlignmentValidator: () => AlignmentValidator,
|
|
53
53
|
BoostRecipientValidator: () => BoostRecipientValidator,
|
|
54
54
|
BoostValidator: () => BoostValidator,
|
|
55
|
+
ConsentFlowContractDataValidator: () => ConsentFlowContractDataValidator,
|
|
56
|
+
ConsentFlowContractDetailsValidator: () => ConsentFlowContractDetailsValidator,
|
|
57
|
+
ConsentFlowContractQueryValidator: () => ConsentFlowContractQueryValidator,
|
|
58
|
+
ConsentFlowContractValidator: () => ConsentFlowContractValidator,
|
|
59
|
+
ConsentFlowTermsQueryValidator: () => ConsentFlowTermsQueryValidator,
|
|
60
|
+
ConsentFlowTermsStatusValidator: () => ConsentFlowTermsStatusValidator,
|
|
61
|
+
ConsentFlowTermsValidator: () => ConsentFlowTermsValidator,
|
|
62
|
+
ConsentFlowTransactionActionValidator: () => ConsentFlowTransactionActionValidator,
|
|
63
|
+
ConsentFlowTransactionValidator: () => ConsentFlowTransactionValidator,
|
|
64
|
+
ConsentFlowTransactionsQueryValidator: () => ConsentFlowTransactionsQueryValidator,
|
|
55
65
|
ContextValidator: () => ContextValidator,
|
|
56
66
|
CredentialInfoValidator: () => CredentialInfoValidator,
|
|
57
67
|
CredentialRecordValidator: () => CredentialRecordValidator,
|
|
@@ -85,8 +95,13 @@ var require_types_cjs_development = __commonJS({
|
|
|
85
95
|
LCNProfileValidator: () => LCNProfileValidator,
|
|
86
96
|
LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator,
|
|
87
97
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator,
|
|
98
|
+
PaginatedConsentFlowContractsValidator: () => PaginatedConsentFlowContractsValidator,
|
|
99
|
+
PaginatedConsentFlowDataValidator: () => PaginatedConsentFlowDataValidator,
|
|
100
|
+
PaginatedConsentFlowTermsValidator: () => PaginatedConsentFlowTermsValidator,
|
|
101
|
+
PaginatedConsentFlowTransactionsValidator: () => PaginatedConsentFlowTransactionsValidator,
|
|
88
102
|
PaginatedEncryptedCredentialRecordsValidator: () => PaginatedEncryptedCredentialRecordsValidator,
|
|
89
103
|
PaginatedEncryptedRecordsValidator: () => PaginatedEncryptedRecordsValidator,
|
|
104
|
+
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator,
|
|
90
105
|
PaginationOptionsValidator: () => PaginationOptionsValidator,
|
|
91
106
|
PaginationResponseValidator: () => PaginationResponseValidator,
|
|
92
107
|
ProfileValidator: () => ProfileValidator,
|
|
@@ -3808,12 +3823,16 @@ var require_types_cjs_development = __commonJS({
|
|
|
3808
3823
|
var LCNProfileValidator = mod.object({
|
|
3809
3824
|
profileId: mod.string().min(3).max(40),
|
|
3810
3825
|
displayName: mod.string().default(""),
|
|
3826
|
+
bio: mod.string().default(""),
|
|
3811
3827
|
did: mod.string(),
|
|
3812
3828
|
email: mod.string().optional(),
|
|
3813
3829
|
image: mod.string().optional(),
|
|
3814
3830
|
isServiceProfile: mod.boolean().default(false).optional(),
|
|
3815
3831
|
notificationsWebhook: mod.string().url().startsWith("https://").optional()
|
|
3816
3832
|
});
|
|
3833
|
+
var PaginatedLCNProfilesValidator = PaginationResponseValidator.extend({
|
|
3834
|
+
records: LCNProfileValidator.array()
|
|
3835
|
+
});
|
|
3817
3836
|
var LCNProfileConnectionStatusEnum = mod.enum([
|
|
3818
3837
|
"CONNECTED",
|
|
3819
3838
|
"PENDING_REQUEST_SENT",
|
|
@@ -3833,7 +3852,8 @@ var require_types_cjs_development = __commonJS({
|
|
|
3833
3852
|
name: mod.string().optional(),
|
|
3834
3853
|
type: mod.string().optional(),
|
|
3835
3854
|
category: mod.string().optional(),
|
|
3836
|
-
status: LCNBoostStatus.optional()
|
|
3855
|
+
status: LCNBoostStatus.optional(),
|
|
3856
|
+
autoConnectRecipients: mod.boolean().optional()
|
|
3837
3857
|
});
|
|
3838
3858
|
var BoostRecipientValidator = mod.object({
|
|
3839
3859
|
to: LCNProfileValidator,
|
|
@@ -3887,6 +3907,130 @@ var require_types_cjs_development = __commonJS({
|
|
|
3887
3907
|
did: mod.string()
|
|
3888
3908
|
})
|
|
3889
3909
|
});
|
|
3910
|
+
var ConsentFlowTermsStatusValidator = mod.enum(["live", "stale", "withdrawn"]);
|
|
3911
|
+
var ConsentFlowContractValidator = mod.object({
|
|
3912
|
+
read: mod.object({
|
|
3913
|
+
anonymize: mod.boolean().optional(),
|
|
3914
|
+
credentials: mod.object({ categories: mod.record(mod.object({ required: mod.boolean() })).default({}) }).default({}),
|
|
3915
|
+
personal: mod.record(mod.object({ required: mod.boolean() })).default({})
|
|
3916
|
+
}).default({}),
|
|
3917
|
+
write: mod.object({
|
|
3918
|
+
credentials: mod.object({ categories: mod.record(mod.object({ required: mod.boolean() })).default({}) }).default({}),
|
|
3919
|
+
personal: mod.record(mod.object({ required: mod.boolean() })).default({})
|
|
3920
|
+
}).default({})
|
|
3921
|
+
});
|
|
3922
|
+
var ConsentFlowContractDetailsValidator = mod.object({
|
|
3923
|
+
contract: ConsentFlowContractValidator,
|
|
3924
|
+
owner: LCNProfileValidator,
|
|
3925
|
+
name: mod.string(),
|
|
3926
|
+
subtitle: mod.string().optional(),
|
|
3927
|
+
description: mod.string().optional(),
|
|
3928
|
+
reasonForAccessing: mod.string().optional(),
|
|
3929
|
+
image: mod.string().optional(),
|
|
3930
|
+
uri: mod.string(),
|
|
3931
|
+
createdAt: mod.string(),
|
|
3932
|
+
updatedAt: mod.string(),
|
|
3933
|
+
expiresAt: mod.string().optional()
|
|
3934
|
+
});
|
|
3935
|
+
var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
|
|
3936
|
+
records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
|
|
3937
|
+
});
|
|
3938
|
+
var ConsentFlowContractDataValidator = mod.object({
|
|
3939
|
+
credentials: mod.object({ categories: mod.record(mod.string().array()).default({}) }),
|
|
3940
|
+
personal: mod.record(mod.string()).default({}),
|
|
3941
|
+
date: mod.string()
|
|
3942
|
+
});
|
|
3943
|
+
var PaginatedConsentFlowDataValidator = PaginationResponseValidator.extend({
|
|
3944
|
+
records: ConsentFlowContractDataValidator.array()
|
|
3945
|
+
});
|
|
3946
|
+
var ConsentFlowTermsValidator = mod.object({
|
|
3947
|
+
read: mod.object({
|
|
3948
|
+
anonymize: mod.boolean().optional(),
|
|
3949
|
+
credentials: mod.object({
|
|
3950
|
+
shareAll: mod.boolean().optional(),
|
|
3951
|
+
sharing: mod.boolean().optional(),
|
|
3952
|
+
categories: mod.record(mod.object({
|
|
3953
|
+
sharing: mod.boolean().optional(),
|
|
3954
|
+
shared: mod.string().array().optional(),
|
|
3955
|
+
shareAll: mod.boolean().optional()
|
|
3956
|
+
})).default({})
|
|
3957
|
+
}).default({}),
|
|
3958
|
+
personal: mod.record(mod.string()).default({})
|
|
3959
|
+
}).default({}),
|
|
3960
|
+
write: mod.object({
|
|
3961
|
+
credentials: mod.object({ categories: mod.record(mod.boolean()).default({}) }).default({}),
|
|
3962
|
+
personal: mod.record(mod.boolean()).default({})
|
|
3963
|
+
}).default({})
|
|
3964
|
+
});
|
|
3965
|
+
var PaginatedConsentFlowTermsValidator = PaginationResponseValidator.extend({
|
|
3966
|
+
records: mod.object({
|
|
3967
|
+
expiresAt: mod.string().optional(),
|
|
3968
|
+
oneTime: mod.boolean().optional(),
|
|
3969
|
+
terms: ConsentFlowTermsValidator,
|
|
3970
|
+
contract: ConsentFlowContractDetailsValidator,
|
|
3971
|
+
uri: mod.string(),
|
|
3972
|
+
consenter: LCNProfileValidator,
|
|
3973
|
+
status: ConsentFlowTermsStatusValidator
|
|
3974
|
+
}).array()
|
|
3975
|
+
});
|
|
3976
|
+
var ConsentFlowContractQueryValidator = mod.object({
|
|
3977
|
+
read: mod.object({
|
|
3978
|
+
anonymize: mod.boolean().optional(),
|
|
3979
|
+
credentials: mod.object({
|
|
3980
|
+
categories: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
|
3981
|
+
}).optional(),
|
|
3982
|
+
personal: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
|
3983
|
+
}).optional(),
|
|
3984
|
+
write: mod.object({
|
|
3985
|
+
credentials: mod.object({
|
|
3986
|
+
categories: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
|
3987
|
+
}).optional(),
|
|
3988
|
+
personal: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
|
3989
|
+
}).optional()
|
|
3990
|
+
});
|
|
3991
|
+
var ConsentFlowTermsQueryValidator = mod.object({
|
|
3992
|
+
read: mod.object({
|
|
3993
|
+
anonymize: mod.boolean().optional(),
|
|
3994
|
+
credentials: mod.object({
|
|
3995
|
+
shareAll: mod.boolean().optional(),
|
|
3996
|
+
sharing: mod.boolean().optional(),
|
|
3997
|
+
categories: mod.record(mod.object({
|
|
3998
|
+
sharing: mod.boolean().optional(),
|
|
3999
|
+
shared: mod.string().array().optional(),
|
|
4000
|
+
shareAll: mod.boolean().optional()
|
|
4001
|
+
}).optional()).optional()
|
|
4002
|
+
}).optional(),
|
|
4003
|
+
personal: mod.record(mod.string()).optional()
|
|
4004
|
+
}).optional(),
|
|
4005
|
+
write: mod.object({
|
|
4006
|
+
credentials: mod.object({ categories: mod.record(mod.boolean()).optional() }).optional(),
|
|
4007
|
+
personal: mod.record(mod.boolean()).optional()
|
|
4008
|
+
}).optional()
|
|
4009
|
+
});
|
|
4010
|
+
var ConsentFlowTransactionActionValidator = mod.enum([
|
|
4011
|
+
"consent",
|
|
4012
|
+
"update",
|
|
4013
|
+
"sync",
|
|
4014
|
+
"withdraw"
|
|
4015
|
+
]);
|
|
4016
|
+
var ConsentFlowTransactionsQueryValidator = mod.object({
|
|
4017
|
+
terms: ConsentFlowTermsQueryValidator.optional(),
|
|
4018
|
+
action: ConsentFlowTransactionActionValidator.or(ConsentFlowTransactionActionValidator.array()).optional(),
|
|
4019
|
+
date: mod.object({ $gt: mod.string() }).or(mod.object({ $lt: mod.string() })).or(mod.object({ $eq: mod.string() })).optional(),
|
|
4020
|
+
expiresAt: mod.object({ $gt: mod.string() }).or(mod.object({ $lt: mod.string() })).or(mod.object({ $eq: mod.string() })).optional(),
|
|
4021
|
+
oneTime: mod.boolean().optional()
|
|
4022
|
+
});
|
|
4023
|
+
var ConsentFlowTransactionValidator = mod.object({
|
|
4024
|
+
expiresAt: mod.string().optional(),
|
|
4025
|
+
oneTime: mod.boolean().optional(),
|
|
4026
|
+
terms: ConsentFlowTermsValidator.optional(),
|
|
4027
|
+
id: mod.string(),
|
|
4028
|
+
action: ConsentFlowTransactionActionValidator,
|
|
4029
|
+
date: mod.string()
|
|
4030
|
+
});
|
|
4031
|
+
var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
|
|
4032
|
+
records: ConsentFlowTransactionValidator.array()
|
|
4033
|
+
});
|
|
3890
4034
|
}
|
|
3891
4035
|
});
|
|
3892
4036
|
|