@learncard/didkey-plugin 1.0.7 → 1.0.9
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 +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
@@ -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,8 +110,13 @@ 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,
|
119
|
+
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator,
|
105
120
|
PaginationOptionsValidator: () => PaginationOptionsValidator,
|
106
121
|
PaginationResponseValidator: () => PaginationResponseValidator,
|
107
122
|
ProfileValidator: () => ProfileValidator,
|
@@ -3790,7 +3805,8 @@ var require_types_cjs_development = __commonJS({
|
|
3790
3805
|
var CredentialRecordValidator = mod.object({ id: mod.string(), uri: mod.string() }).catchall(mod.any());
|
3791
3806
|
var PaginationOptionsValidator = mod.object({
|
3792
3807
|
limit: mod.number(),
|
3793
|
-
cursor: mod.string().optional()
|
3808
|
+
cursor: mod.string().optional(),
|
3809
|
+
sort: mod.string().optional()
|
3794
3810
|
});
|
3795
3811
|
var PaginationResponseValidator = mod.object({
|
3796
3812
|
cursor: mod.string().optional(),
|
@@ -3838,12 +3854,16 @@ var require_types_cjs_development = __commonJS({
|
|
3838
3854
|
var LCNProfileValidator = mod.object({
|
3839
3855
|
profileId: mod.string().min(3).max(40),
|
3840
3856
|
displayName: mod.string().default(""),
|
3857
|
+
bio: mod.string().default(""),
|
3841
3858
|
did: mod.string(),
|
3842
3859
|
email: mod.string().optional(),
|
3843
3860
|
image: mod.string().optional(),
|
3844
3861
|
isServiceProfile: mod.boolean().default(false).optional(),
|
3845
3862
|
notificationsWebhook: mod.string().url().startsWith("https://").optional()
|
3846
3863
|
});
|
3864
|
+
var PaginatedLCNProfilesValidator = PaginationResponseValidator.extend({
|
3865
|
+
records: LCNProfileValidator.array()
|
3866
|
+
});
|
3847
3867
|
var LCNProfileConnectionStatusEnum = mod.enum([
|
3848
3868
|
"CONNECTED",
|
3849
3869
|
"PENDING_REQUEST_SENT",
|
@@ -3863,7 +3883,8 @@ var require_types_cjs_development = __commonJS({
|
|
3863
3883
|
name: mod.string().optional(),
|
3864
3884
|
type: mod.string().optional(),
|
3865
3885
|
category: mod.string().optional(),
|
3866
|
-
status: LCNBoostStatus.optional()
|
3886
|
+
status: LCNBoostStatus.optional(),
|
3887
|
+
autoConnectRecipients: mod.boolean().optional()
|
3867
3888
|
});
|
3868
3889
|
var BoostRecipientValidator = mod.object({
|
3869
3890
|
to: LCNProfileValidator,
|
@@ -3917,6 +3938,130 @@ var require_types_cjs_development = __commonJS({
|
|
3917
3938
|
did: mod.string()
|
3918
3939
|
})
|
3919
3940
|
});
|
3941
|
+
var ConsentFlowTermsStatusValidator = mod.enum(["live", "stale", "withdrawn"]);
|
3942
|
+
var ConsentFlowContractValidator = mod.object({
|
3943
|
+
read: mod.object({
|
3944
|
+
anonymize: mod.boolean().optional(),
|
3945
|
+
credentials: mod.object({ categories: mod.record(mod.object({ required: mod.boolean() })).default({}) }).default({}),
|
3946
|
+
personal: mod.record(mod.object({ required: mod.boolean() })).default({})
|
3947
|
+
}).default({}),
|
3948
|
+
write: mod.object({
|
3949
|
+
credentials: mod.object({ categories: mod.record(mod.object({ required: mod.boolean() })).default({}) }).default({}),
|
3950
|
+
personal: mod.record(mod.object({ required: mod.boolean() })).default({})
|
3951
|
+
}).default({})
|
3952
|
+
});
|
3953
|
+
var ConsentFlowContractDetailsValidator = mod.object({
|
3954
|
+
contract: ConsentFlowContractValidator,
|
3955
|
+
owner: LCNProfileValidator,
|
3956
|
+
name: mod.string(),
|
3957
|
+
subtitle: mod.string().optional(),
|
3958
|
+
description: mod.string().optional(),
|
3959
|
+
reasonForAccessing: mod.string().optional(),
|
3960
|
+
image: mod.string().optional(),
|
3961
|
+
uri: mod.string(),
|
3962
|
+
createdAt: mod.string(),
|
3963
|
+
updatedAt: mod.string(),
|
3964
|
+
expiresAt: mod.string().optional()
|
3965
|
+
});
|
3966
|
+
var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
|
3967
|
+
records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
|
3968
|
+
});
|
3969
|
+
var ConsentFlowContractDataValidator = mod.object({
|
3970
|
+
credentials: mod.object({ categories: mod.record(mod.string().array()).default({}) }),
|
3971
|
+
personal: mod.record(mod.string()).default({}),
|
3972
|
+
date: mod.string()
|
3973
|
+
});
|
3974
|
+
var PaginatedConsentFlowDataValidator = PaginationResponseValidator.extend({
|
3975
|
+
records: ConsentFlowContractDataValidator.array()
|
3976
|
+
});
|
3977
|
+
var ConsentFlowTermsValidator = mod.object({
|
3978
|
+
read: mod.object({
|
3979
|
+
anonymize: mod.boolean().optional(),
|
3980
|
+
credentials: mod.object({
|
3981
|
+
shareAll: mod.boolean().optional(),
|
3982
|
+
sharing: mod.boolean().optional(),
|
3983
|
+
categories: mod.record(mod.object({
|
3984
|
+
sharing: mod.boolean().optional(),
|
3985
|
+
shared: mod.string().array().optional(),
|
3986
|
+
shareAll: mod.boolean().optional()
|
3987
|
+
})).default({})
|
3988
|
+
}).default({}),
|
3989
|
+
personal: mod.record(mod.string()).default({})
|
3990
|
+
}).default({}),
|
3991
|
+
write: mod.object({
|
3992
|
+
credentials: mod.object({ categories: mod.record(mod.boolean()).default({}) }).default({}),
|
3993
|
+
personal: mod.record(mod.boolean()).default({})
|
3994
|
+
}).default({})
|
3995
|
+
});
|
3996
|
+
var PaginatedConsentFlowTermsValidator = PaginationResponseValidator.extend({
|
3997
|
+
records: mod.object({
|
3998
|
+
expiresAt: mod.string().optional(),
|
3999
|
+
oneTime: mod.boolean().optional(),
|
4000
|
+
terms: ConsentFlowTermsValidator,
|
4001
|
+
contract: ConsentFlowContractDetailsValidator,
|
4002
|
+
uri: mod.string(),
|
4003
|
+
consenter: LCNProfileValidator,
|
4004
|
+
status: ConsentFlowTermsStatusValidator
|
4005
|
+
}).array()
|
4006
|
+
});
|
4007
|
+
var ConsentFlowContractQueryValidator = mod.object({
|
4008
|
+
read: mod.object({
|
4009
|
+
anonymize: mod.boolean().optional(),
|
4010
|
+
credentials: mod.object({
|
4011
|
+
categories: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
4012
|
+
}).optional(),
|
4013
|
+
personal: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
4014
|
+
}).optional(),
|
4015
|
+
write: mod.object({
|
4016
|
+
credentials: mod.object({
|
4017
|
+
categories: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
4018
|
+
}).optional(),
|
4019
|
+
personal: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
4020
|
+
}).optional()
|
4021
|
+
});
|
4022
|
+
var ConsentFlowTermsQueryValidator = mod.object({
|
4023
|
+
read: mod.object({
|
4024
|
+
anonymize: mod.boolean().optional(),
|
4025
|
+
credentials: mod.object({
|
4026
|
+
shareAll: mod.boolean().optional(),
|
4027
|
+
sharing: mod.boolean().optional(),
|
4028
|
+
categories: mod.record(mod.object({
|
4029
|
+
sharing: mod.boolean().optional(),
|
4030
|
+
shared: mod.string().array().optional(),
|
4031
|
+
shareAll: mod.boolean().optional()
|
4032
|
+
}).optional()).optional()
|
4033
|
+
}).optional(),
|
4034
|
+
personal: mod.record(mod.string()).optional()
|
4035
|
+
}).optional(),
|
4036
|
+
write: mod.object({
|
4037
|
+
credentials: mod.object({ categories: mod.record(mod.boolean()).optional() }).optional(),
|
4038
|
+
personal: mod.record(mod.boolean()).optional()
|
4039
|
+
}).optional()
|
4040
|
+
});
|
4041
|
+
var ConsentFlowTransactionActionValidator = mod.enum([
|
4042
|
+
"consent",
|
4043
|
+
"update",
|
4044
|
+
"sync",
|
4045
|
+
"withdraw"
|
4046
|
+
]);
|
4047
|
+
var ConsentFlowTransactionsQueryValidator = mod.object({
|
4048
|
+
terms: ConsentFlowTermsQueryValidator.optional(),
|
4049
|
+
action: ConsentFlowTransactionActionValidator.or(ConsentFlowTransactionActionValidator.array()).optional(),
|
4050
|
+
date: mod.object({ $gt: mod.string() }).or(mod.object({ $lt: mod.string() })).or(mod.object({ $eq: mod.string() })).optional(),
|
4051
|
+
expiresAt: mod.object({ $gt: mod.string() }).or(mod.object({ $lt: mod.string() })).or(mod.object({ $eq: mod.string() })).optional(),
|
4052
|
+
oneTime: mod.boolean().optional()
|
4053
|
+
});
|
4054
|
+
var ConsentFlowTransactionValidator = mod.object({
|
4055
|
+
expiresAt: mod.string().optional(),
|
4056
|
+
oneTime: mod.boolean().optional(),
|
4057
|
+
terms: ConsentFlowTermsValidator.optional(),
|
4058
|
+
id: mod.string(),
|
4059
|
+
action: ConsentFlowTransactionActionValidator,
|
4060
|
+
date: mod.string()
|
4061
|
+
});
|
4062
|
+
var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
|
4063
|
+
records: ConsentFlowTransactionValidator.array()
|
4064
|
+
});
|
3920
4065
|
}
|
3921
4066
|
});
|
3922
4067
|
var require_dist = __commonJS({
|