@learncard/types 5.4.0 → 5.4.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/helpers.d.ts +4 -0
- package/dist/helpers.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/lcn.d.ts +2647 -0
- package/dist/lcn.d.ts.map +1 -1
- package/dist/types.cjs.development.js +145 -0
- package/dist/types.cjs.development.js.map +2 -2
- package/dist/types.cjs.production.min.js +1 -1
- package/dist/types.cjs.production.min.js.map +3 -3
- package/dist/types.esm.js +145 -0
- package/dist/types.esm.js.map +2 -2
- package/package.json +1 -1
package/dist/lcn.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"lcn.d.ts","sourceRoot":"","sources":["../src/lcn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,mBAAmB
|
1
|
+
{"version":3,"file":"lcn.d.ts","sourceRoot":"","sources":["../src/lcn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS9B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAE7D,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAExC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEjF,eAAO,MAAM,8BAA8B,+FAKzC,CAAC;AACH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAE5F,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;EAMtC,CAAC;AACH,MAAM,MAAM,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;;EAgBhD,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AACjG,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,qCAAqC,CAC/C,CAAC;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO1C,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAErF,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEpD,CAAC;AACH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,yCAAyC,CACnD,CAAC"}
|
@@ -31,6 +31,16 @@ __export(src_exports, {
|
|
31
31
|
AlignmentValidator: () => AlignmentValidator,
|
32
32
|
BoostRecipientValidator: () => BoostRecipientValidator,
|
33
33
|
BoostValidator: () => BoostValidator,
|
34
|
+
ConsentFlowContractDataValidator: () => ConsentFlowContractDataValidator,
|
35
|
+
ConsentFlowContractDetailsValidator: () => ConsentFlowContractDetailsValidator,
|
36
|
+
ConsentFlowContractQueryValidator: () => ConsentFlowContractQueryValidator,
|
37
|
+
ConsentFlowContractValidator: () => ConsentFlowContractValidator,
|
38
|
+
ConsentFlowTermsQueryValidator: () => ConsentFlowTermsQueryValidator,
|
39
|
+
ConsentFlowTermsStatusValidator: () => ConsentFlowTermsStatusValidator,
|
40
|
+
ConsentFlowTermsValidator: () => ConsentFlowTermsValidator,
|
41
|
+
ConsentFlowTransactionActionValidator: () => ConsentFlowTransactionActionValidator,
|
42
|
+
ConsentFlowTransactionValidator: () => ConsentFlowTransactionValidator,
|
43
|
+
ConsentFlowTransactionsQueryValidator: () => ConsentFlowTransactionsQueryValidator,
|
34
44
|
ContextValidator: () => ContextValidator,
|
35
45
|
CredentialInfoValidator: () => CredentialInfoValidator,
|
36
46
|
CredentialRecordValidator: () => CredentialRecordValidator,
|
@@ -64,6 +74,10 @@ __export(src_exports, {
|
|
64
74
|
LCNProfileValidator: () => LCNProfileValidator,
|
65
75
|
LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator,
|
66
76
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator,
|
77
|
+
PaginatedConsentFlowContractsValidator: () => PaginatedConsentFlowContractsValidator,
|
78
|
+
PaginatedConsentFlowDataValidator: () => PaginatedConsentFlowDataValidator,
|
79
|
+
PaginatedConsentFlowTermsValidator: () => PaginatedConsentFlowTermsValidator,
|
80
|
+
PaginatedConsentFlowTransactionsValidator: () => PaginatedConsentFlowTransactionsValidator,
|
67
81
|
PaginatedEncryptedCredentialRecordsValidator: () => PaginatedEncryptedCredentialRecordsValidator,
|
68
82
|
PaginatedEncryptedRecordsValidator: () => PaginatedEncryptedRecordsValidator,
|
69
83
|
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator,
|
@@ -3817,6 +3831,7 @@ var PaginatedEncryptedCredentialRecordsValidator = PaginationResponseValidator.e
|
|
3817
3831
|
var LCNProfileValidator = mod.object({
|
3818
3832
|
profileId: mod.string().min(3).max(40),
|
3819
3833
|
displayName: mod.string().default(""),
|
3834
|
+
bio: mod.string().default(""),
|
3820
3835
|
did: mod.string(),
|
3821
3836
|
email: mod.string().optional(),
|
3822
3837
|
image: mod.string().optional(),
|
@@ -3900,3 +3915,133 @@ var LCNSigningAuthorityForUserValidator = mod.object({
|
|
3900
3915
|
did: mod.string()
|
3901
3916
|
})
|
3902
3917
|
});
|
3918
|
+
var ConsentFlowTermsStatusValidator = mod.enum(["live", "stale", "withdrawn"]);
|
3919
|
+
var ConsentFlowContractValidator = mod.object({
|
3920
|
+
read: mod.object({
|
3921
|
+
anonymize: mod.boolean().optional(),
|
3922
|
+
credentials: mod.object({ categories: mod.record(mod.object({ required: mod.boolean() })).default({}) }).default({}),
|
3923
|
+
personal: mod.record(mod.object({ required: mod.boolean() })).default({})
|
3924
|
+
}).default({}),
|
3925
|
+
write: mod.object({
|
3926
|
+
credentials: mod.object({ categories: mod.record(mod.object({ required: mod.boolean() })).default({}) }).default({}),
|
3927
|
+
personal: mod.record(mod.object({ required: mod.boolean() })).default({})
|
3928
|
+
}).default({})
|
3929
|
+
});
|
3930
|
+
var ConsentFlowContractDetailsValidator = mod.object({
|
3931
|
+
contract: ConsentFlowContractValidator,
|
3932
|
+
owner: LCNProfileValidator,
|
3933
|
+
name: mod.string(),
|
3934
|
+
subtitle: mod.string().optional(),
|
3935
|
+
description: mod.string().optional(),
|
3936
|
+
reasonForAccessing: mod.string().optional(),
|
3937
|
+
image: mod.string().optional(),
|
3938
|
+
uri: mod.string(),
|
3939
|
+
createdAt: mod.string(),
|
3940
|
+
updatedAt: mod.string(),
|
3941
|
+
expiresAt: mod.string().optional()
|
3942
|
+
});
|
3943
|
+
var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
|
3944
|
+
records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
|
3945
|
+
});
|
3946
|
+
var ConsentFlowContractDataValidator = mod.object({
|
3947
|
+
credentials: mod.object({ categories: mod.record(mod.string().array()).default({}) }),
|
3948
|
+
personal: mod.record(mod.string()).default({}),
|
3949
|
+
date: mod.string()
|
3950
|
+
});
|
3951
|
+
var PaginatedConsentFlowDataValidator = PaginationResponseValidator.extend({
|
3952
|
+
records: ConsentFlowContractDataValidator.array()
|
3953
|
+
});
|
3954
|
+
var ConsentFlowTermsValidator = mod.object({
|
3955
|
+
read: mod.object({
|
3956
|
+
anonymize: mod.boolean().optional(),
|
3957
|
+
credentials: mod.object({
|
3958
|
+
shareAll: mod.boolean().optional(),
|
3959
|
+
sharing: mod.boolean().optional(),
|
3960
|
+
categories: mod.record(
|
3961
|
+
mod.object({
|
3962
|
+
sharing: mod.boolean().optional(),
|
3963
|
+
shared: mod.string().array().optional(),
|
3964
|
+
shareAll: mod.boolean().optional()
|
3965
|
+
})
|
3966
|
+
).default({})
|
3967
|
+
}).default({}),
|
3968
|
+
personal: mod.record(mod.string()).default({})
|
3969
|
+
}).default({}),
|
3970
|
+
write: mod.object({
|
3971
|
+
credentials: mod.object({ categories: mod.record(mod.boolean()).default({}) }).default({}),
|
3972
|
+
personal: mod.record(mod.boolean()).default({})
|
3973
|
+
}).default({})
|
3974
|
+
});
|
3975
|
+
var PaginatedConsentFlowTermsValidator = PaginationResponseValidator.extend({
|
3976
|
+
records: mod.object({
|
3977
|
+
expiresAt: mod.string().optional(),
|
3978
|
+
oneTime: mod.boolean().optional(),
|
3979
|
+
terms: ConsentFlowTermsValidator,
|
3980
|
+
contract: ConsentFlowContractDetailsValidator,
|
3981
|
+
uri: mod.string(),
|
3982
|
+
consenter: LCNProfileValidator,
|
3983
|
+
status: ConsentFlowTermsStatusValidator
|
3984
|
+
}).array()
|
3985
|
+
});
|
3986
|
+
var ConsentFlowContractQueryValidator = mod.object({
|
3987
|
+
read: mod.object({
|
3988
|
+
anonymize: mod.boolean().optional(),
|
3989
|
+
credentials: mod.object({
|
3990
|
+
categories: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
3991
|
+
}).optional(),
|
3992
|
+
personal: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
3993
|
+
}).optional(),
|
3994
|
+
write: mod.object({
|
3995
|
+
credentials: mod.object({
|
3996
|
+
categories: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
3997
|
+
}).optional(),
|
3998
|
+
personal: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
3999
|
+
}).optional()
|
4000
|
+
});
|
4001
|
+
var ConsentFlowTermsQueryValidator = mod.object({
|
4002
|
+
read: mod.object({
|
4003
|
+
anonymize: mod.boolean().optional(),
|
4004
|
+
credentials: mod.object({
|
4005
|
+
shareAll: mod.boolean().optional(),
|
4006
|
+
sharing: mod.boolean().optional(),
|
4007
|
+
categories: mod.record(
|
4008
|
+
mod.object({
|
4009
|
+
sharing: mod.boolean().optional(),
|
4010
|
+
shared: mod.string().array().optional(),
|
4011
|
+
shareAll: mod.boolean().optional()
|
4012
|
+
}).optional()
|
4013
|
+
).optional()
|
4014
|
+
}).optional(),
|
4015
|
+
personal: mod.record(mod.string()).optional()
|
4016
|
+
}).optional(),
|
4017
|
+
write: mod.object({
|
4018
|
+
credentials: mod.object({ categories: mod.record(mod.boolean()).optional() }).optional(),
|
4019
|
+
personal: mod.record(mod.boolean()).optional()
|
4020
|
+
}).optional()
|
4021
|
+
});
|
4022
|
+
var ConsentFlowTransactionActionValidator = mod.enum([
|
4023
|
+
"consent",
|
4024
|
+
"update",
|
4025
|
+
"sync",
|
4026
|
+
"withdraw"
|
4027
|
+
]);
|
4028
|
+
var ConsentFlowTransactionsQueryValidator = mod.object({
|
4029
|
+
terms: ConsentFlowTermsQueryValidator.optional(),
|
4030
|
+
action: ConsentFlowTransactionActionValidator.or(
|
4031
|
+
ConsentFlowTransactionActionValidator.array()
|
4032
|
+
).optional(),
|
4033
|
+
date: mod.object({ $gt: mod.string() }).or(mod.object({ $lt: mod.string() })).or(mod.object({ $eq: mod.string() })).optional(),
|
4034
|
+
expiresAt: mod.object({ $gt: mod.string() }).or(mod.object({ $lt: mod.string() })).or(mod.object({ $eq: mod.string() })).optional(),
|
4035
|
+
oneTime: mod.boolean().optional()
|
4036
|
+
});
|
4037
|
+
var ConsentFlowTransactionValidator = mod.object({
|
4038
|
+
expiresAt: mod.string().optional(),
|
4039
|
+
oneTime: mod.boolean().optional(),
|
4040
|
+
terms: ConsentFlowTermsValidator.optional(),
|
4041
|
+
id: mod.string(),
|
4042
|
+
action: ConsentFlowTransactionActionValidator,
|
4043
|
+
date: mod.string()
|
4044
|
+
});
|
4045
|
+
var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
|
4046
|
+
records: ConsentFlowTransactionValidator.array()
|
4047
|
+
});
|