@learncard/didkey-plugin 1.0.6 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/didkey-plugin.cjs.development.js +141 -1
- package/dist/didkey-plugin.cjs.development.js.map +2 -2
- package/dist/didkey-plugin.cjs.production.min.js +1 -1
- package/dist/didkey-plugin.cjs.production.min.js.map +2 -2
- package/dist/didkey-plugin.esm.js +141 -1
- package/dist/didkey-plugin.esm.js.map +2 -2
- package/package.json +4 -4
@@ -67,6 +67,16 @@ var require_types_cjs_development = __commonJS({
|
|
67
67
|
AlignmentValidator: () => AlignmentValidator,
|
68
68
|
BoostRecipientValidator: () => BoostRecipientValidator,
|
69
69
|
BoostValidator: () => BoostValidator,
|
70
|
+
ConsentFlowContractDataValidator: () => ConsentFlowContractDataValidator,
|
71
|
+
ConsentFlowContractDetailsValidator: () => ConsentFlowContractDetailsValidator,
|
72
|
+
ConsentFlowContractQueryValidator: () => ConsentFlowContractQueryValidator,
|
73
|
+
ConsentFlowContractValidator: () => ConsentFlowContractValidator,
|
74
|
+
ConsentFlowTermsQueryValidator: () => ConsentFlowTermsQueryValidator,
|
75
|
+
ConsentFlowTermsStatusValidator: () => ConsentFlowTermsStatusValidator,
|
76
|
+
ConsentFlowTermsValidator: () => ConsentFlowTermsValidator,
|
77
|
+
ConsentFlowTransactionActionValidator: () => ConsentFlowTransactionActionValidator,
|
78
|
+
ConsentFlowTransactionValidator: () => ConsentFlowTransactionValidator,
|
79
|
+
ConsentFlowTransactionsQueryValidator: () => ConsentFlowTransactionsQueryValidator,
|
70
80
|
ContextValidator: () => ContextValidator,
|
71
81
|
CredentialInfoValidator: () => CredentialInfoValidator,
|
72
82
|
CredentialRecordValidator: () => CredentialRecordValidator,
|
@@ -100,6 +110,10 @@ var require_types_cjs_development = __commonJS({
|
|
100
110
|
LCNProfileValidator: () => LCNProfileValidator,
|
101
111
|
LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator,
|
102
112
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator,
|
113
|
+
PaginatedConsentFlowContractsValidator: () => PaginatedConsentFlowContractsValidator,
|
114
|
+
PaginatedConsentFlowDataValidator: () => PaginatedConsentFlowDataValidator,
|
115
|
+
PaginatedConsentFlowTermsValidator: () => PaginatedConsentFlowTermsValidator,
|
116
|
+
PaginatedConsentFlowTransactionsValidator: () => PaginatedConsentFlowTransactionsValidator,
|
103
117
|
PaginatedEncryptedCredentialRecordsValidator: () => PaginatedEncryptedCredentialRecordsValidator,
|
104
118
|
PaginatedEncryptedRecordsValidator: () => PaginatedEncryptedRecordsValidator,
|
105
119
|
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator,
|
@@ -3839,6 +3853,7 @@ var require_types_cjs_development = __commonJS({
|
|
3839
3853
|
var LCNProfileValidator = mod.object({
|
3840
3854
|
profileId: mod.string().min(3).max(40),
|
3841
3855
|
displayName: mod.string().default(""),
|
3856
|
+
bio: mod.string().default(""),
|
3842
3857
|
did: mod.string(),
|
3843
3858
|
email: mod.string().optional(),
|
3844
3859
|
image: mod.string().optional(),
|
@@ -3867,7 +3882,8 @@ var require_types_cjs_development = __commonJS({
|
|
3867
3882
|
name: mod.string().optional(),
|
3868
3883
|
type: mod.string().optional(),
|
3869
3884
|
category: mod.string().optional(),
|
3870
|
-
status: LCNBoostStatus.optional()
|
3885
|
+
status: LCNBoostStatus.optional(),
|
3886
|
+
autoConnectRecipients: mod.boolean().optional()
|
3871
3887
|
});
|
3872
3888
|
var BoostRecipientValidator = mod.object({
|
3873
3889
|
to: LCNProfileValidator,
|
@@ -3921,6 +3937,130 @@ var require_types_cjs_development = __commonJS({
|
|
3921
3937
|
did: mod.string()
|
3922
3938
|
})
|
3923
3939
|
});
|
3940
|
+
var ConsentFlowTermsStatusValidator = mod.enum(["live", "stale", "withdrawn"]);
|
3941
|
+
var ConsentFlowContractValidator = mod.object({
|
3942
|
+
read: mod.object({
|
3943
|
+
anonymize: mod.boolean().optional(),
|
3944
|
+
credentials: mod.object({ categories: mod.record(mod.object({ required: mod.boolean() })).default({}) }).default({}),
|
3945
|
+
personal: mod.record(mod.object({ required: mod.boolean() })).default({})
|
3946
|
+
}).default({}),
|
3947
|
+
write: mod.object({
|
3948
|
+
credentials: mod.object({ categories: mod.record(mod.object({ required: mod.boolean() })).default({}) }).default({}),
|
3949
|
+
personal: mod.record(mod.object({ required: mod.boolean() })).default({})
|
3950
|
+
}).default({})
|
3951
|
+
});
|
3952
|
+
var ConsentFlowContractDetailsValidator = mod.object({
|
3953
|
+
contract: ConsentFlowContractValidator,
|
3954
|
+
owner: LCNProfileValidator,
|
3955
|
+
name: mod.string(),
|
3956
|
+
subtitle: mod.string().optional(),
|
3957
|
+
description: mod.string().optional(),
|
3958
|
+
reasonForAccessing: mod.string().optional(),
|
3959
|
+
image: mod.string().optional(),
|
3960
|
+
uri: mod.string(),
|
3961
|
+
createdAt: mod.string(),
|
3962
|
+
updatedAt: mod.string(),
|
3963
|
+
expiresAt: mod.string().optional()
|
3964
|
+
});
|
3965
|
+
var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
|
3966
|
+
records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
|
3967
|
+
});
|
3968
|
+
var ConsentFlowContractDataValidator = mod.object({
|
3969
|
+
credentials: mod.object({ categories: mod.record(mod.string().array()).default({}) }),
|
3970
|
+
personal: mod.record(mod.string()).default({}),
|
3971
|
+
date: mod.string()
|
3972
|
+
});
|
3973
|
+
var PaginatedConsentFlowDataValidator = PaginationResponseValidator.extend({
|
3974
|
+
records: ConsentFlowContractDataValidator.array()
|
3975
|
+
});
|
3976
|
+
var ConsentFlowTermsValidator = mod.object({
|
3977
|
+
read: mod.object({
|
3978
|
+
anonymize: mod.boolean().optional(),
|
3979
|
+
credentials: mod.object({
|
3980
|
+
shareAll: mod.boolean().optional(),
|
3981
|
+
sharing: mod.boolean().optional(),
|
3982
|
+
categories: mod.record(mod.object({
|
3983
|
+
sharing: mod.boolean().optional(),
|
3984
|
+
shared: mod.string().array().optional(),
|
3985
|
+
shareAll: mod.boolean().optional()
|
3986
|
+
})).default({})
|
3987
|
+
}).default({}),
|
3988
|
+
personal: mod.record(mod.string()).default({})
|
3989
|
+
}).default({}),
|
3990
|
+
write: mod.object({
|
3991
|
+
credentials: mod.object({ categories: mod.record(mod.boolean()).default({}) }).default({}),
|
3992
|
+
personal: mod.record(mod.boolean()).default({})
|
3993
|
+
}).default({})
|
3994
|
+
});
|
3995
|
+
var PaginatedConsentFlowTermsValidator = PaginationResponseValidator.extend({
|
3996
|
+
records: mod.object({
|
3997
|
+
expiresAt: mod.string().optional(),
|
3998
|
+
oneTime: mod.boolean().optional(),
|
3999
|
+
terms: ConsentFlowTermsValidator,
|
4000
|
+
contract: ConsentFlowContractDetailsValidator,
|
4001
|
+
uri: mod.string(),
|
4002
|
+
consenter: LCNProfileValidator,
|
4003
|
+
status: ConsentFlowTermsStatusValidator
|
4004
|
+
}).array()
|
4005
|
+
});
|
4006
|
+
var ConsentFlowContractQueryValidator = mod.object({
|
4007
|
+
read: mod.object({
|
4008
|
+
anonymize: mod.boolean().optional(),
|
4009
|
+
credentials: mod.object({
|
4010
|
+
categories: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
4011
|
+
}).optional(),
|
4012
|
+
personal: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
4013
|
+
}).optional(),
|
4014
|
+
write: mod.object({
|
4015
|
+
credentials: mod.object({
|
4016
|
+
categories: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
4017
|
+
}).optional(),
|
4018
|
+
personal: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
4019
|
+
}).optional()
|
4020
|
+
});
|
4021
|
+
var ConsentFlowTermsQueryValidator = mod.object({
|
4022
|
+
read: mod.object({
|
4023
|
+
anonymize: mod.boolean().optional(),
|
4024
|
+
credentials: mod.object({
|
4025
|
+
shareAll: mod.boolean().optional(),
|
4026
|
+
sharing: mod.boolean().optional(),
|
4027
|
+
categories: mod.record(mod.object({
|
4028
|
+
sharing: mod.boolean().optional(),
|
4029
|
+
shared: mod.string().array().optional(),
|
4030
|
+
shareAll: mod.boolean().optional()
|
4031
|
+
}).optional()).optional()
|
4032
|
+
}).optional(),
|
4033
|
+
personal: mod.record(mod.string()).optional()
|
4034
|
+
}).optional(),
|
4035
|
+
write: mod.object({
|
4036
|
+
credentials: mod.object({ categories: mod.record(mod.boolean()).optional() }).optional(),
|
4037
|
+
personal: mod.record(mod.boolean()).optional()
|
4038
|
+
}).optional()
|
4039
|
+
});
|
4040
|
+
var ConsentFlowTransactionActionValidator = mod.enum([
|
4041
|
+
"consent",
|
4042
|
+
"update",
|
4043
|
+
"sync",
|
4044
|
+
"withdraw"
|
4045
|
+
]);
|
4046
|
+
var ConsentFlowTransactionsQueryValidator = mod.object({
|
4047
|
+
terms: ConsentFlowTermsQueryValidator.optional(),
|
4048
|
+
action: ConsentFlowTransactionActionValidator.or(ConsentFlowTransactionActionValidator.array()).optional(),
|
4049
|
+
date: mod.object({ $gt: mod.string() }).or(mod.object({ $lt: mod.string() })).or(mod.object({ $eq: mod.string() })).optional(),
|
4050
|
+
expiresAt: mod.object({ $gt: mod.string() }).or(mod.object({ $lt: mod.string() })).or(mod.object({ $eq: mod.string() })).optional(),
|
4051
|
+
oneTime: mod.boolean().optional()
|
4052
|
+
});
|
4053
|
+
var ConsentFlowTransactionValidator = mod.object({
|
4054
|
+
expiresAt: mod.string().optional(),
|
4055
|
+
oneTime: mod.boolean().optional(),
|
4056
|
+
terms: ConsentFlowTermsValidator.optional(),
|
4057
|
+
id: mod.string(),
|
4058
|
+
action: ConsentFlowTransactionActionValidator,
|
4059
|
+
date: mod.string()
|
4060
|
+
});
|
4061
|
+
var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
|
4062
|
+
records: ConsentFlowTransactionValidator.array()
|
4063
|
+
});
|
3924
4064
|
}
|
3925
4065
|
});
|
3926
4066
|
var require_dist = __commonJS({
|