@learncard/learn-card-plugin 1.1.5 → 1.1.6
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/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/learn-card-plugin.cjs.development.js +130 -1
- package/dist/learn-card-plugin.cjs.development.js.map +2 -2
- package/dist/learn-card-plugin.cjs.production.min.js +1 -1
- package/dist/learn-card-plugin.cjs.production.min.js.map +2 -2
- package/dist/learn-card-plugin.esm.js +130 -1
- package/dist/learn-card-plugin.esm.js.map +2 -2
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/verify.d.ts +1 -0
- package/dist/verify.d.ts.map +1 -0
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,+BAA+B,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG3E,cAAc,SAAS,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,kBAAkB,cAChB,UAAU,GAAG,EAAE,GAAG,EAAE,+BAA+B,CAAC,KAChE,eAOD,CAAC"}
|
|
@@ -3710,12 +3710,16 @@ var PaginatedEncryptedCredentialRecordsValidator = PaginationResponseValidator.e
|
|
|
3710
3710
|
var LCNProfileValidator = mod.object({
|
|
3711
3711
|
profileId: mod.string().min(3).max(40),
|
|
3712
3712
|
displayName: mod.string().default(""),
|
|
3713
|
+
bio: mod.string().default(""),
|
|
3713
3714
|
did: mod.string(),
|
|
3714
3715
|
email: mod.string().optional(),
|
|
3715
3716
|
image: mod.string().optional(),
|
|
3716
3717
|
isServiceProfile: mod.boolean().default(false).optional(),
|
|
3717
3718
|
notificationsWebhook: mod.string().url().startsWith("https://").optional()
|
|
3718
3719
|
});
|
|
3720
|
+
var PaginatedLCNProfilesValidator = PaginationResponseValidator.extend({
|
|
3721
|
+
records: LCNProfileValidator.array()
|
|
3722
|
+
});
|
|
3719
3723
|
var LCNProfileConnectionStatusEnum = mod.enum([
|
|
3720
3724
|
"CONNECTED",
|
|
3721
3725
|
"PENDING_REQUEST_SENT",
|
|
@@ -3735,7 +3739,8 @@ var BoostValidator = mod.object({
|
|
|
3735
3739
|
name: mod.string().optional(),
|
|
3736
3740
|
type: mod.string().optional(),
|
|
3737
3741
|
category: mod.string().optional(),
|
|
3738
|
-
status: LCNBoostStatus.optional()
|
|
3742
|
+
status: LCNBoostStatus.optional(),
|
|
3743
|
+
autoConnectRecipients: mod.boolean().optional()
|
|
3739
3744
|
});
|
|
3740
3745
|
var BoostRecipientValidator = mod.object({
|
|
3741
3746
|
to: LCNProfileValidator,
|
|
@@ -3789,6 +3794,130 @@ var LCNSigningAuthorityForUserValidator = mod.object({
|
|
|
3789
3794
|
did: mod.string()
|
|
3790
3795
|
})
|
|
3791
3796
|
});
|
|
3797
|
+
var ConsentFlowTermsStatusValidator = mod.enum(["live", "stale", "withdrawn"]);
|
|
3798
|
+
var ConsentFlowContractValidator = mod.object({
|
|
3799
|
+
read: mod.object({
|
|
3800
|
+
anonymize: mod.boolean().optional(),
|
|
3801
|
+
credentials: mod.object({ categories: mod.record(mod.object({ required: mod.boolean() })).default({}) }).default({}),
|
|
3802
|
+
personal: mod.record(mod.object({ required: mod.boolean() })).default({})
|
|
3803
|
+
}).default({}),
|
|
3804
|
+
write: mod.object({
|
|
3805
|
+
credentials: mod.object({ categories: mod.record(mod.object({ required: mod.boolean() })).default({}) }).default({}),
|
|
3806
|
+
personal: mod.record(mod.object({ required: mod.boolean() })).default({})
|
|
3807
|
+
}).default({})
|
|
3808
|
+
});
|
|
3809
|
+
var ConsentFlowContractDetailsValidator = mod.object({
|
|
3810
|
+
contract: ConsentFlowContractValidator,
|
|
3811
|
+
owner: LCNProfileValidator,
|
|
3812
|
+
name: mod.string(),
|
|
3813
|
+
subtitle: mod.string().optional(),
|
|
3814
|
+
description: mod.string().optional(),
|
|
3815
|
+
reasonForAccessing: mod.string().optional(),
|
|
3816
|
+
image: mod.string().optional(),
|
|
3817
|
+
uri: mod.string(),
|
|
3818
|
+
createdAt: mod.string(),
|
|
3819
|
+
updatedAt: mod.string(),
|
|
3820
|
+
expiresAt: mod.string().optional()
|
|
3821
|
+
});
|
|
3822
|
+
var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
|
|
3823
|
+
records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
|
|
3824
|
+
});
|
|
3825
|
+
var ConsentFlowContractDataValidator = mod.object({
|
|
3826
|
+
credentials: mod.object({ categories: mod.record(mod.string().array()).default({}) }),
|
|
3827
|
+
personal: mod.record(mod.string()).default({}),
|
|
3828
|
+
date: mod.string()
|
|
3829
|
+
});
|
|
3830
|
+
var PaginatedConsentFlowDataValidator = PaginationResponseValidator.extend({
|
|
3831
|
+
records: ConsentFlowContractDataValidator.array()
|
|
3832
|
+
});
|
|
3833
|
+
var ConsentFlowTermsValidator = mod.object({
|
|
3834
|
+
read: mod.object({
|
|
3835
|
+
anonymize: mod.boolean().optional(),
|
|
3836
|
+
credentials: mod.object({
|
|
3837
|
+
shareAll: mod.boolean().optional(),
|
|
3838
|
+
sharing: mod.boolean().optional(),
|
|
3839
|
+
categories: mod.record(mod.object({
|
|
3840
|
+
sharing: mod.boolean().optional(),
|
|
3841
|
+
shared: mod.string().array().optional(),
|
|
3842
|
+
shareAll: mod.boolean().optional()
|
|
3843
|
+
})).default({})
|
|
3844
|
+
}).default({}),
|
|
3845
|
+
personal: mod.record(mod.string()).default({})
|
|
3846
|
+
}).default({}),
|
|
3847
|
+
write: mod.object({
|
|
3848
|
+
credentials: mod.object({ categories: mod.record(mod.boolean()).default({}) }).default({}),
|
|
3849
|
+
personal: mod.record(mod.boolean()).default({})
|
|
3850
|
+
}).default({})
|
|
3851
|
+
});
|
|
3852
|
+
var PaginatedConsentFlowTermsValidator = PaginationResponseValidator.extend({
|
|
3853
|
+
records: mod.object({
|
|
3854
|
+
expiresAt: mod.string().optional(),
|
|
3855
|
+
oneTime: mod.boolean().optional(),
|
|
3856
|
+
terms: ConsentFlowTermsValidator,
|
|
3857
|
+
contract: ConsentFlowContractDetailsValidator,
|
|
3858
|
+
uri: mod.string(),
|
|
3859
|
+
consenter: LCNProfileValidator,
|
|
3860
|
+
status: ConsentFlowTermsStatusValidator
|
|
3861
|
+
}).array()
|
|
3862
|
+
});
|
|
3863
|
+
var ConsentFlowContractQueryValidator = mod.object({
|
|
3864
|
+
read: mod.object({
|
|
3865
|
+
anonymize: mod.boolean().optional(),
|
|
3866
|
+
credentials: mod.object({
|
|
3867
|
+
categories: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
|
3868
|
+
}).optional(),
|
|
3869
|
+
personal: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
|
3870
|
+
}).optional(),
|
|
3871
|
+
write: mod.object({
|
|
3872
|
+
credentials: mod.object({
|
|
3873
|
+
categories: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
|
3874
|
+
}).optional(),
|
|
3875
|
+
personal: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
|
3876
|
+
}).optional()
|
|
3877
|
+
});
|
|
3878
|
+
var ConsentFlowTermsQueryValidator = mod.object({
|
|
3879
|
+
read: mod.object({
|
|
3880
|
+
anonymize: mod.boolean().optional(),
|
|
3881
|
+
credentials: mod.object({
|
|
3882
|
+
shareAll: mod.boolean().optional(),
|
|
3883
|
+
sharing: mod.boolean().optional(),
|
|
3884
|
+
categories: mod.record(mod.object({
|
|
3885
|
+
sharing: mod.boolean().optional(),
|
|
3886
|
+
shared: mod.string().array().optional(),
|
|
3887
|
+
shareAll: mod.boolean().optional()
|
|
3888
|
+
}).optional()).optional()
|
|
3889
|
+
}).optional(),
|
|
3890
|
+
personal: mod.record(mod.string()).optional()
|
|
3891
|
+
}).optional(),
|
|
3892
|
+
write: mod.object({
|
|
3893
|
+
credentials: mod.object({ categories: mod.record(mod.boolean()).optional() }).optional(),
|
|
3894
|
+
personal: mod.record(mod.boolean()).optional()
|
|
3895
|
+
}).optional()
|
|
3896
|
+
});
|
|
3897
|
+
var ConsentFlowTransactionActionValidator = mod.enum([
|
|
3898
|
+
"consent",
|
|
3899
|
+
"update",
|
|
3900
|
+
"sync",
|
|
3901
|
+
"withdraw"
|
|
3902
|
+
]);
|
|
3903
|
+
var ConsentFlowTransactionsQueryValidator = mod.object({
|
|
3904
|
+
terms: ConsentFlowTermsQueryValidator.optional(),
|
|
3905
|
+
action: ConsentFlowTransactionActionValidator.or(ConsentFlowTransactionActionValidator.array()).optional(),
|
|
3906
|
+
date: mod.object({ $gt: mod.string() }).or(mod.object({ $lt: mod.string() })).or(mod.object({ $eq: mod.string() })).optional(),
|
|
3907
|
+
expiresAt: mod.object({ $gt: mod.string() }).or(mod.object({ $lt: mod.string() })).or(mod.object({ $eq: mod.string() })).optional(),
|
|
3908
|
+
oneTime: mod.boolean().optional()
|
|
3909
|
+
});
|
|
3910
|
+
var ConsentFlowTransactionValidator = mod.object({
|
|
3911
|
+
expiresAt: mod.string().optional(),
|
|
3912
|
+
oneTime: mod.boolean().optional(),
|
|
3913
|
+
terms: ConsentFlowTermsValidator.optional(),
|
|
3914
|
+
id: mod.string(),
|
|
3915
|
+
action: ConsentFlowTransactionActionValidator,
|
|
3916
|
+
date: mod.string()
|
|
3917
|
+
});
|
|
3918
|
+
var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
|
|
3919
|
+
records: ConsentFlowTransactionValidator.array()
|
|
3920
|
+
});
|
|
3792
3921
|
|
|
3793
3922
|
// ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/toInteger/index.js
|
|
3794
3923
|
function toInteger(dirtyNumber) {
|