@learncard/didkey-plugin 1.0.7 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/didkey-plugin.cjs.development.js +147 -2
- 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 +147 -2
- package/dist/didkey-plugin.esm.js.map +2 -2
- package/dist/helpers.d.ts +1 -0
- package/dist/helpers.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -0
- 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,8 +133,13 @@ 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,
|
142
|
+
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator,
|
128
143
|
PaginationOptionsValidator: () => PaginationOptionsValidator,
|
129
144
|
PaginationResponseValidator: () => PaginationResponseValidator,
|
130
145
|
ProfileValidator: () => ProfileValidator,
|
@@ -3813,7 +3828,8 @@ var require_types_cjs_development = __commonJS({
|
|
3813
3828
|
var CredentialRecordValidator = mod.object({ id: mod.string(), uri: mod.string() }).catchall(mod.any());
|
3814
3829
|
var PaginationOptionsValidator = mod.object({
|
3815
3830
|
limit: mod.number(),
|
3816
|
-
cursor: mod.string().optional()
|
3831
|
+
cursor: mod.string().optional(),
|
3832
|
+
sort: mod.string().optional()
|
3817
3833
|
});
|
3818
3834
|
var PaginationResponseValidator = mod.object({
|
3819
3835
|
cursor: mod.string().optional(),
|
@@ -3861,12 +3877,16 @@ var require_types_cjs_development = __commonJS({
|
|
3861
3877
|
var LCNProfileValidator = mod.object({
|
3862
3878
|
profileId: mod.string().min(3).max(40),
|
3863
3879
|
displayName: mod.string().default(""),
|
3880
|
+
bio: mod.string().default(""),
|
3864
3881
|
did: mod.string(),
|
3865
3882
|
email: mod.string().optional(),
|
3866
3883
|
image: mod.string().optional(),
|
3867
3884
|
isServiceProfile: mod.boolean().default(false).optional(),
|
3868
3885
|
notificationsWebhook: mod.string().url().startsWith("https://").optional()
|
3869
3886
|
});
|
3887
|
+
var PaginatedLCNProfilesValidator = PaginationResponseValidator.extend({
|
3888
|
+
records: LCNProfileValidator.array()
|
3889
|
+
});
|
3870
3890
|
var LCNProfileConnectionStatusEnum = mod.enum([
|
3871
3891
|
"CONNECTED",
|
3872
3892
|
"PENDING_REQUEST_SENT",
|
@@ -3886,7 +3906,8 @@ var require_types_cjs_development = __commonJS({
|
|
3886
3906
|
name: mod.string().optional(),
|
3887
3907
|
type: mod.string().optional(),
|
3888
3908
|
category: mod.string().optional(),
|
3889
|
-
status: LCNBoostStatus.optional()
|
3909
|
+
status: LCNBoostStatus.optional(),
|
3910
|
+
autoConnectRecipients: mod.boolean().optional()
|
3890
3911
|
});
|
3891
3912
|
var BoostRecipientValidator = mod.object({
|
3892
3913
|
to: LCNProfileValidator,
|
@@ -3940,6 +3961,130 @@ var require_types_cjs_development = __commonJS({
|
|
3940
3961
|
did: mod.string()
|
3941
3962
|
})
|
3942
3963
|
});
|
3964
|
+
var ConsentFlowTermsStatusValidator = mod.enum(["live", "stale", "withdrawn"]);
|
3965
|
+
var ConsentFlowContractValidator = mod.object({
|
3966
|
+
read: mod.object({
|
3967
|
+
anonymize: mod.boolean().optional(),
|
3968
|
+
credentials: mod.object({ categories: mod.record(mod.object({ required: mod.boolean() })).default({}) }).default({}),
|
3969
|
+
personal: mod.record(mod.object({ required: mod.boolean() })).default({})
|
3970
|
+
}).default({}),
|
3971
|
+
write: mod.object({
|
3972
|
+
credentials: mod.object({ categories: mod.record(mod.object({ required: mod.boolean() })).default({}) }).default({}),
|
3973
|
+
personal: mod.record(mod.object({ required: mod.boolean() })).default({})
|
3974
|
+
}).default({})
|
3975
|
+
});
|
3976
|
+
var ConsentFlowContractDetailsValidator = mod.object({
|
3977
|
+
contract: ConsentFlowContractValidator,
|
3978
|
+
owner: LCNProfileValidator,
|
3979
|
+
name: mod.string(),
|
3980
|
+
subtitle: mod.string().optional(),
|
3981
|
+
description: mod.string().optional(),
|
3982
|
+
reasonForAccessing: mod.string().optional(),
|
3983
|
+
image: mod.string().optional(),
|
3984
|
+
uri: mod.string(),
|
3985
|
+
createdAt: mod.string(),
|
3986
|
+
updatedAt: mod.string(),
|
3987
|
+
expiresAt: mod.string().optional()
|
3988
|
+
});
|
3989
|
+
var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
|
3990
|
+
records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
|
3991
|
+
});
|
3992
|
+
var ConsentFlowContractDataValidator = mod.object({
|
3993
|
+
credentials: mod.object({ categories: mod.record(mod.string().array()).default({}) }),
|
3994
|
+
personal: mod.record(mod.string()).default({}),
|
3995
|
+
date: mod.string()
|
3996
|
+
});
|
3997
|
+
var PaginatedConsentFlowDataValidator = PaginationResponseValidator.extend({
|
3998
|
+
records: ConsentFlowContractDataValidator.array()
|
3999
|
+
});
|
4000
|
+
var ConsentFlowTermsValidator = mod.object({
|
4001
|
+
read: mod.object({
|
4002
|
+
anonymize: mod.boolean().optional(),
|
4003
|
+
credentials: mod.object({
|
4004
|
+
shareAll: mod.boolean().optional(),
|
4005
|
+
sharing: mod.boolean().optional(),
|
4006
|
+
categories: mod.record(mod.object({
|
4007
|
+
sharing: mod.boolean().optional(),
|
4008
|
+
shared: mod.string().array().optional(),
|
4009
|
+
shareAll: mod.boolean().optional()
|
4010
|
+
})).default({})
|
4011
|
+
}).default({}),
|
4012
|
+
personal: mod.record(mod.string()).default({})
|
4013
|
+
}).default({}),
|
4014
|
+
write: mod.object({
|
4015
|
+
credentials: mod.object({ categories: mod.record(mod.boolean()).default({}) }).default({}),
|
4016
|
+
personal: mod.record(mod.boolean()).default({})
|
4017
|
+
}).default({})
|
4018
|
+
});
|
4019
|
+
var PaginatedConsentFlowTermsValidator = PaginationResponseValidator.extend({
|
4020
|
+
records: mod.object({
|
4021
|
+
expiresAt: mod.string().optional(),
|
4022
|
+
oneTime: mod.boolean().optional(),
|
4023
|
+
terms: ConsentFlowTermsValidator,
|
4024
|
+
contract: ConsentFlowContractDetailsValidator,
|
4025
|
+
uri: mod.string(),
|
4026
|
+
consenter: LCNProfileValidator,
|
4027
|
+
status: ConsentFlowTermsStatusValidator
|
4028
|
+
}).array()
|
4029
|
+
});
|
4030
|
+
var ConsentFlowContractQueryValidator = mod.object({
|
4031
|
+
read: mod.object({
|
4032
|
+
anonymize: mod.boolean().optional(),
|
4033
|
+
credentials: mod.object({
|
4034
|
+
categories: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
4035
|
+
}).optional(),
|
4036
|
+
personal: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
4037
|
+
}).optional(),
|
4038
|
+
write: mod.object({
|
4039
|
+
credentials: mod.object({
|
4040
|
+
categories: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
4041
|
+
}).optional(),
|
4042
|
+
personal: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
4043
|
+
}).optional()
|
4044
|
+
});
|
4045
|
+
var ConsentFlowTermsQueryValidator = mod.object({
|
4046
|
+
read: mod.object({
|
4047
|
+
anonymize: mod.boolean().optional(),
|
4048
|
+
credentials: mod.object({
|
4049
|
+
shareAll: mod.boolean().optional(),
|
4050
|
+
sharing: mod.boolean().optional(),
|
4051
|
+
categories: mod.record(mod.object({
|
4052
|
+
sharing: mod.boolean().optional(),
|
4053
|
+
shared: mod.string().array().optional(),
|
4054
|
+
shareAll: mod.boolean().optional()
|
4055
|
+
}).optional()).optional()
|
4056
|
+
}).optional(),
|
4057
|
+
personal: mod.record(mod.string()).optional()
|
4058
|
+
}).optional(),
|
4059
|
+
write: mod.object({
|
4060
|
+
credentials: mod.object({ categories: mod.record(mod.boolean()).optional() }).optional(),
|
4061
|
+
personal: mod.record(mod.boolean()).optional()
|
4062
|
+
}).optional()
|
4063
|
+
});
|
4064
|
+
var ConsentFlowTransactionActionValidator = mod.enum([
|
4065
|
+
"consent",
|
4066
|
+
"update",
|
4067
|
+
"sync",
|
4068
|
+
"withdraw"
|
4069
|
+
]);
|
4070
|
+
var ConsentFlowTransactionsQueryValidator = mod.object({
|
4071
|
+
terms: ConsentFlowTermsQueryValidator.optional(),
|
4072
|
+
action: ConsentFlowTransactionActionValidator.or(ConsentFlowTransactionActionValidator.array()).optional(),
|
4073
|
+
date: mod.object({ $gt: mod.string() }).or(mod.object({ $lt: mod.string() })).or(mod.object({ $eq: mod.string() })).optional(),
|
4074
|
+
expiresAt: mod.object({ $gt: mod.string() }).or(mod.object({ $lt: mod.string() })).or(mod.object({ $eq: mod.string() })).optional(),
|
4075
|
+
oneTime: mod.boolean().optional()
|
4076
|
+
});
|
4077
|
+
var ConsentFlowTransactionValidator = mod.object({
|
4078
|
+
expiresAt: mod.string().optional(),
|
4079
|
+
oneTime: mod.boolean().optional(),
|
4080
|
+
terms: ConsentFlowTermsValidator.optional(),
|
4081
|
+
id: mod.string(),
|
4082
|
+
action: ConsentFlowTransactionActionValidator,
|
4083
|
+
date: mod.string()
|
4084
|
+
});
|
4085
|
+
var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
|
4086
|
+
records: ConsentFlowTransactionValidator.array()
|
4087
|
+
});
|
3943
4088
|
}
|
3944
4089
|
});
|
3945
4090
|
var require_dist = __commonJS({
|