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