@learncard/didkey-plugin 1.0.6 → 1.0.8
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/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
@@ -90,6 +90,16 @@ var require_types_cjs_development = __commonJS({
|
|
90
90
|
AlignmentValidator: () => AlignmentValidator,
|
91
91
|
BoostRecipientValidator: () => BoostRecipientValidator,
|
92
92
|
BoostValidator: () => BoostValidator,
|
93
|
+
ConsentFlowContractDataValidator: () => ConsentFlowContractDataValidator,
|
94
|
+
ConsentFlowContractDetailsValidator: () => ConsentFlowContractDetailsValidator,
|
95
|
+
ConsentFlowContractQueryValidator: () => ConsentFlowContractQueryValidator,
|
96
|
+
ConsentFlowContractValidator: () => ConsentFlowContractValidator,
|
97
|
+
ConsentFlowTermsQueryValidator: () => ConsentFlowTermsQueryValidator,
|
98
|
+
ConsentFlowTermsStatusValidator: () => ConsentFlowTermsStatusValidator,
|
99
|
+
ConsentFlowTermsValidator: () => ConsentFlowTermsValidator,
|
100
|
+
ConsentFlowTransactionActionValidator: () => ConsentFlowTransactionActionValidator,
|
101
|
+
ConsentFlowTransactionValidator: () => ConsentFlowTransactionValidator,
|
102
|
+
ConsentFlowTransactionsQueryValidator: () => ConsentFlowTransactionsQueryValidator,
|
93
103
|
ContextValidator: () => ContextValidator,
|
94
104
|
CredentialInfoValidator: () => CredentialInfoValidator,
|
95
105
|
CredentialRecordValidator: () => CredentialRecordValidator,
|
@@ -123,6 +133,10 @@ var require_types_cjs_development = __commonJS({
|
|
123
133
|
LCNProfileValidator: () => LCNProfileValidator,
|
124
134
|
LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator,
|
125
135
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator,
|
136
|
+
PaginatedConsentFlowContractsValidator: () => PaginatedConsentFlowContractsValidator,
|
137
|
+
PaginatedConsentFlowDataValidator: () => PaginatedConsentFlowDataValidator,
|
138
|
+
PaginatedConsentFlowTermsValidator: () => PaginatedConsentFlowTermsValidator,
|
139
|
+
PaginatedConsentFlowTransactionsValidator: () => PaginatedConsentFlowTransactionsValidator,
|
126
140
|
PaginatedEncryptedCredentialRecordsValidator: () => PaginatedEncryptedCredentialRecordsValidator,
|
127
141
|
PaginatedEncryptedRecordsValidator: () => PaginatedEncryptedRecordsValidator,
|
128
142
|
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator,
|
@@ -3862,6 +3876,7 @@ var require_types_cjs_development = __commonJS({
|
|
3862
3876
|
var LCNProfileValidator = mod.object({
|
3863
3877
|
profileId: mod.string().min(3).max(40),
|
3864
3878
|
displayName: mod.string().default(""),
|
3879
|
+
bio: mod.string().default(""),
|
3865
3880
|
did: mod.string(),
|
3866
3881
|
email: mod.string().optional(),
|
3867
3882
|
image: mod.string().optional(),
|
@@ -3890,7 +3905,8 @@ var require_types_cjs_development = __commonJS({
|
|
3890
3905
|
name: mod.string().optional(),
|
3891
3906
|
type: mod.string().optional(),
|
3892
3907
|
category: mod.string().optional(),
|
3893
|
-
status: LCNBoostStatus.optional()
|
3908
|
+
status: LCNBoostStatus.optional(),
|
3909
|
+
autoConnectRecipients: mod.boolean().optional()
|
3894
3910
|
});
|
3895
3911
|
var BoostRecipientValidator = mod.object({
|
3896
3912
|
to: LCNProfileValidator,
|
@@ -3944,6 +3960,130 @@ var require_types_cjs_development = __commonJS({
|
|
3944
3960
|
did: mod.string()
|
3945
3961
|
})
|
3946
3962
|
});
|
3963
|
+
var ConsentFlowTermsStatusValidator = mod.enum(["live", "stale", "withdrawn"]);
|
3964
|
+
var ConsentFlowContractValidator = mod.object({
|
3965
|
+
read: mod.object({
|
3966
|
+
anonymize: mod.boolean().optional(),
|
3967
|
+
credentials: mod.object({ categories: mod.record(mod.object({ required: mod.boolean() })).default({}) }).default({}),
|
3968
|
+
personal: mod.record(mod.object({ required: mod.boolean() })).default({})
|
3969
|
+
}).default({}),
|
3970
|
+
write: mod.object({
|
3971
|
+
credentials: mod.object({ categories: mod.record(mod.object({ required: mod.boolean() })).default({}) }).default({}),
|
3972
|
+
personal: mod.record(mod.object({ required: mod.boolean() })).default({})
|
3973
|
+
}).default({})
|
3974
|
+
});
|
3975
|
+
var ConsentFlowContractDetailsValidator = mod.object({
|
3976
|
+
contract: ConsentFlowContractValidator,
|
3977
|
+
owner: LCNProfileValidator,
|
3978
|
+
name: mod.string(),
|
3979
|
+
subtitle: mod.string().optional(),
|
3980
|
+
description: mod.string().optional(),
|
3981
|
+
reasonForAccessing: mod.string().optional(),
|
3982
|
+
image: mod.string().optional(),
|
3983
|
+
uri: mod.string(),
|
3984
|
+
createdAt: mod.string(),
|
3985
|
+
updatedAt: mod.string(),
|
3986
|
+
expiresAt: mod.string().optional()
|
3987
|
+
});
|
3988
|
+
var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
|
3989
|
+
records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
|
3990
|
+
});
|
3991
|
+
var ConsentFlowContractDataValidator = mod.object({
|
3992
|
+
credentials: mod.object({ categories: mod.record(mod.string().array()).default({}) }),
|
3993
|
+
personal: mod.record(mod.string()).default({}),
|
3994
|
+
date: mod.string()
|
3995
|
+
});
|
3996
|
+
var PaginatedConsentFlowDataValidator = PaginationResponseValidator.extend({
|
3997
|
+
records: ConsentFlowContractDataValidator.array()
|
3998
|
+
});
|
3999
|
+
var ConsentFlowTermsValidator = mod.object({
|
4000
|
+
read: mod.object({
|
4001
|
+
anonymize: mod.boolean().optional(),
|
4002
|
+
credentials: mod.object({
|
4003
|
+
shareAll: mod.boolean().optional(),
|
4004
|
+
sharing: mod.boolean().optional(),
|
4005
|
+
categories: mod.record(mod.object({
|
4006
|
+
sharing: mod.boolean().optional(),
|
4007
|
+
shared: mod.string().array().optional(),
|
4008
|
+
shareAll: mod.boolean().optional()
|
4009
|
+
})).default({})
|
4010
|
+
}).default({}),
|
4011
|
+
personal: mod.record(mod.string()).default({})
|
4012
|
+
}).default({}),
|
4013
|
+
write: mod.object({
|
4014
|
+
credentials: mod.object({ categories: mod.record(mod.boolean()).default({}) }).default({}),
|
4015
|
+
personal: mod.record(mod.boolean()).default({})
|
4016
|
+
}).default({})
|
4017
|
+
});
|
4018
|
+
var PaginatedConsentFlowTermsValidator = PaginationResponseValidator.extend({
|
4019
|
+
records: mod.object({
|
4020
|
+
expiresAt: mod.string().optional(),
|
4021
|
+
oneTime: mod.boolean().optional(),
|
4022
|
+
terms: ConsentFlowTermsValidator,
|
4023
|
+
contract: ConsentFlowContractDetailsValidator,
|
4024
|
+
uri: mod.string(),
|
4025
|
+
consenter: LCNProfileValidator,
|
4026
|
+
status: ConsentFlowTermsStatusValidator
|
4027
|
+
}).array()
|
4028
|
+
});
|
4029
|
+
var ConsentFlowContractQueryValidator = mod.object({
|
4030
|
+
read: mod.object({
|
4031
|
+
anonymize: mod.boolean().optional(),
|
4032
|
+
credentials: mod.object({
|
4033
|
+
categories: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
4034
|
+
}).optional(),
|
4035
|
+
personal: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
4036
|
+
}).optional(),
|
4037
|
+
write: mod.object({
|
4038
|
+
credentials: mod.object({
|
4039
|
+
categories: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
4040
|
+
}).optional(),
|
4041
|
+
personal: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
4042
|
+
}).optional()
|
4043
|
+
});
|
4044
|
+
var ConsentFlowTermsQueryValidator = mod.object({
|
4045
|
+
read: mod.object({
|
4046
|
+
anonymize: mod.boolean().optional(),
|
4047
|
+
credentials: mod.object({
|
4048
|
+
shareAll: mod.boolean().optional(),
|
4049
|
+
sharing: mod.boolean().optional(),
|
4050
|
+
categories: mod.record(mod.object({
|
4051
|
+
sharing: mod.boolean().optional(),
|
4052
|
+
shared: mod.string().array().optional(),
|
4053
|
+
shareAll: mod.boolean().optional()
|
4054
|
+
}).optional()).optional()
|
4055
|
+
}).optional(),
|
4056
|
+
personal: mod.record(mod.string()).optional()
|
4057
|
+
}).optional(),
|
4058
|
+
write: mod.object({
|
4059
|
+
credentials: mod.object({ categories: mod.record(mod.boolean()).optional() }).optional(),
|
4060
|
+
personal: mod.record(mod.boolean()).optional()
|
4061
|
+
}).optional()
|
4062
|
+
});
|
4063
|
+
var ConsentFlowTransactionActionValidator = mod.enum([
|
4064
|
+
"consent",
|
4065
|
+
"update",
|
4066
|
+
"sync",
|
4067
|
+
"withdraw"
|
4068
|
+
]);
|
4069
|
+
var ConsentFlowTransactionsQueryValidator = mod.object({
|
4070
|
+
terms: ConsentFlowTermsQueryValidator.optional(),
|
4071
|
+
action: ConsentFlowTransactionActionValidator.or(ConsentFlowTransactionActionValidator.array()).optional(),
|
4072
|
+
date: mod.object({ $gt: mod.string() }).or(mod.object({ $lt: mod.string() })).or(mod.object({ $eq: mod.string() })).optional(),
|
4073
|
+
expiresAt: mod.object({ $gt: mod.string() }).or(mod.object({ $lt: mod.string() })).or(mod.object({ $eq: mod.string() })).optional(),
|
4074
|
+
oneTime: mod.boolean().optional()
|
4075
|
+
});
|
4076
|
+
var ConsentFlowTransactionValidator = mod.object({
|
4077
|
+
expiresAt: mod.string().optional(),
|
4078
|
+
oneTime: mod.boolean().optional(),
|
4079
|
+
terms: ConsentFlowTermsValidator.optional(),
|
4080
|
+
id: mod.string(),
|
4081
|
+
action: ConsentFlowTransactionActionValidator,
|
4082
|
+
date: mod.string()
|
4083
|
+
});
|
4084
|
+
var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
|
4085
|
+
records: ConsentFlowTransactionValidator.array()
|
4086
|
+
});
|
3947
4087
|
}
|
3948
4088
|
});
|
3949
4089
|
var require_dist = __commonJS({
|