@learncard/types 5.5.0 → 5.5.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/did.d.ts +900 -0
- package/dist/did.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 +1382 -346
- package/dist/lcn.d.ts.map +1 -1
- package/dist/types.cjs.development.js +122 -71
- package/dist/types.cjs.development.js.map +3 -3
- package/dist/types.cjs.production.min.js +1 -1
- package/dist/types.cjs.production.min.js.map +4 -4
- package/dist/types.esm.js +348 -294
- package/dist/types.esm.js.map +4 -4
- 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa9B,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;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOnC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
@@ -35,6 +35,8 @@ __export(src_exports, {
|
|
35
35
|
ConsentFlowContractDetailsValidator: () => ConsentFlowContractDetailsValidator,
|
36
36
|
ConsentFlowContractQueryValidator: () => ConsentFlowContractQueryValidator,
|
37
37
|
ConsentFlowContractValidator: () => ConsentFlowContractValidator,
|
38
|
+
ConsentFlowDataQueryValidator: () => ConsentFlowDataQueryValidator,
|
39
|
+
ConsentFlowTermValidator: () => ConsentFlowTermValidator,
|
38
40
|
ConsentFlowTermsQueryValidator: () => ConsentFlowTermsQueryValidator,
|
39
41
|
ConsentFlowTermsStatusValidator: () => ConsentFlowTermsStatusValidator,
|
40
42
|
ConsentFlowTermsValidator: () => ConsentFlowTermsValidator,
|
@@ -48,6 +50,7 @@ __export(src_exports, {
|
|
48
50
|
CredentialStatusValidator: () => CredentialStatusValidator,
|
49
51
|
CredentialSubjectValidator: () => CredentialSubjectValidator,
|
50
52
|
CriteriaValidator: () => CriteriaValidator,
|
53
|
+
DidDocumentValidator: () => DidDocumentValidator,
|
51
54
|
EncryptedCredentialRecordValidator: () => EncryptedCredentialRecordValidator,
|
52
55
|
EncryptedRecordValidator: () => EncryptedRecordValidator,
|
53
56
|
EndorsementCredentialValidator: () => EndorsementCredentialValidator,
|
@@ -74,6 +77,8 @@ __export(src_exports, {
|
|
74
77
|
LCNProfileValidator: () => LCNProfileValidator,
|
75
78
|
LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator,
|
76
79
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator,
|
80
|
+
PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator,
|
81
|
+
PaginatedBoostsValidator: () => PaginatedBoostsValidator,
|
77
82
|
PaginatedConsentFlowContractsValidator: () => PaginatedConsentFlowContractsValidator,
|
78
83
|
PaginatedConsentFlowDataValidator: () => PaginatedConsentFlowDataValidator,
|
79
84
|
PaginatedConsentFlowTermsValidator: () => PaginatedConsentFlowTermsValidator,
|
@@ -93,6 +98,7 @@ __export(src_exports, {
|
|
93
98
|
ResultValidator: () => ResultValidator,
|
94
99
|
RubricCriterionValidator: () => RubricCriterionValidator,
|
95
100
|
SentCredentialInfoValidator: () => SentCredentialInfoValidator,
|
101
|
+
ServiceValidator: () => ServiceValidator,
|
96
102
|
UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator,
|
97
103
|
UnsignedVCValidator: () => UnsignedVCValidator,
|
98
104
|
UnsignedVPValidator: () => UnsignedVPValidator,
|
@@ -100,6 +106,7 @@ __export(src_exports, {
|
|
100
106
|
VPValidator: () => VPValidator,
|
101
107
|
VerificationCheckValidator: () => VerificationCheckValidator,
|
102
108
|
VerificationItemValidator: () => VerificationItemValidator,
|
109
|
+
VerificationMethodValidator: () => VerificationMethodValidator,
|
103
110
|
VerificationStatusEnum: () => VerificationStatusEnum,
|
104
111
|
VerificationStatusValidator: () => VerificationStatusValidator
|
105
112
|
});
|
@@ -3565,6 +3572,70 @@ var VPValidator = UnsignedVPValidator.extend({
|
|
3565
3572
|
proof: ProofValidator.or(ProofValidator.array())
|
3566
3573
|
});
|
3567
3574
|
|
3575
|
+
// src/crypto.ts
|
3576
|
+
var JWKValidator = mod.object({
|
3577
|
+
kty: mod.string(),
|
3578
|
+
crv: mod.string(),
|
3579
|
+
x: mod.string(),
|
3580
|
+
y: mod.string().optional(),
|
3581
|
+
n: mod.string().optional(),
|
3582
|
+
d: mod.string()
|
3583
|
+
});
|
3584
|
+
var JWERecipientHeaderValidator = mod.object({
|
3585
|
+
alg: mod.string(),
|
3586
|
+
iv: mod.string(),
|
3587
|
+
tag: mod.string(),
|
3588
|
+
epk: JWKValidator.partial().optional(),
|
3589
|
+
kid: mod.string().optional(),
|
3590
|
+
apv: mod.string().optional(),
|
3591
|
+
apu: mod.string().optional()
|
3592
|
+
});
|
3593
|
+
var JWERecipientValidator = mod.object({
|
3594
|
+
header: JWERecipientHeaderValidator,
|
3595
|
+
encrypted_key: mod.string()
|
3596
|
+
});
|
3597
|
+
var JWEValidator = mod.object({
|
3598
|
+
protected: mod.string(),
|
3599
|
+
iv: mod.string(),
|
3600
|
+
ciphertext: mod.string(),
|
3601
|
+
tag: mod.string(),
|
3602
|
+
aad: mod.string().optional(),
|
3603
|
+
recipients: JWERecipientValidator.array().optional()
|
3604
|
+
});
|
3605
|
+
|
3606
|
+
// src/did.ts
|
3607
|
+
var VerificationMethodValidator = mod.string().or(
|
3608
|
+
mod.object({
|
3609
|
+
"@context": ContextValidator.optional(),
|
3610
|
+
id: mod.string(),
|
3611
|
+
type: mod.string(),
|
3612
|
+
controller: mod.string(),
|
3613
|
+
publicKeyJwk: JWKValidator.optional(),
|
3614
|
+
publicKeyBase58: mod.string().optional(),
|
3615
|
+
blockChainAccountId: mod.string().optional()
|
3616
|
+
}).catchall(mod.any())
|
3617
|
+
);
|
3618
|
+
var ServiceValidator = mod.object({
|
3619
|
+
id: mod.string(),
|
3620
|
+
type: mod.string().or(mod.string().array().nonempty()),
|
3621
|
+
serviceEndpoint: mod.any().or(mod.any().array().nonempty())
|
3622
|
+
}).catchall(mod.any());
|
3623
|
+
var DidDocumentValidator = mod.object({
|
3624
|
+
"@context": ContextValidator,
|
3625
|
+
id: mod.string(),
|
3626
|
+
alsoKnownAs: mod.string().optional(),
|
3627
|
+
controller: mod.string().or(mod.string().array().nonempty()).optional(),
|
3628
|
+
verificationMethod: VerificationMethodValidator.array().optional(),
|
3629
|
+
authentication: VerificationMethodValidator.array().optional(),
|
3630
|
+
assertionMethod: VerificationMethodValidator.array().optional(),
|
3631
|
+
keyAgreement: VerificationMethodValidator.array().optional(),
|
3632
|
+
capabilityInvocation: VerificationMethodValidator.array().optional(),
|
3633
|
+
capabilityDelegation: VerificationMethodValidator.array().optional(),
|
3634
|
+
publicKey: VerificationMethodValidator.array().optional(),
|
3635
|
+
service: ServiceValidator.array().optional(),
|
3636
|
+
proof: ProofValidator.or(ProofValidator.array()).optional()
|
3637
|
+
}).catchall(mod.any());
|
3638
|
+
|
3568
3639
|
// src/obv3.ts
|
3569
3640
|
var AlignmentTargetTypeValidator = mod.enum([
|
3570
3641
|
"ceasn:Competency",
|
@@ -3785,37 +3856,6 @@ var PaginationResponseValidator = mod.object({
|
|
3785
3856
|
hasMore: mod.boolean()
|
3786
3857
|
});
|
3787
3858
|
|
3788
|
-
// src/crypto.ts
|
3789
|
-
var JWKValidator = mod.object({
|
3790
|
-
kty: mod.string(),
|
3791
|
-
crv: mod.string(),
|
3792
|
-
x: mod.string(),
|
3793
|
-
y: mod.string().optional(),
|
3794
|
-
n: mod.string().optional(),
|
3795
|
-
d: mod.string()
|
3796
|
-
});
|
3797
|
-
var JWERecipientHeaderValidator = mod.object({
|
3798
|
-
alg: mod.string(),
|
3799
|
-
iv: mod.string(),
|
3800
|
-
tag: mod.string(),
|
3801
|
-
epk: JWKValidator.partial().optional(),
|
3802
|
-
kid: mod.string().optional(),
|
3803
|
-
apv: mod.string().optional(),
|
3804
|
-
apu: mod.string().optional()
|
3805
|
-
});
|
3806
|
-
var JWERecipientValidator = mod.object({
|
3807
|
-
header: JWERecipientHeaderValidator,
|
3808
|
-
encrypted_key: mod.string()
|
3809
|
-
});
|
3810
|
-
var JWEValidator = mod.object({
|
3811
|
-
protected: mod.string(),
|
3812
|
-
iv: mod.string(),
|
3813
|
-
ciphertext: mod.string(),
|
3814
|
-
tag: mod.string(),
|
3815
|
-
aad: mod.string().optional(),
|
3816
|
-
recipients: JWERecipientValidator.array().optional()
|
3817
|
-
});
|
3818
|
-
|
3819
3859
|
// src/learncloud.ts
|
3820
3860
|
var EncryptedRecordValidator = mod.object({ encryptedRecord: JWEValidator, fields: mod.string().array() }).catchall(mod.any());
|
3821
3861
|
var PaginatedEncryptedRecordsValidator = PaginationResponseValidator.extend({
|
@@ -3832,12 +3872,16 @@ var PaginatedEncryptedCredentialRecordsValidator = PaginationResponseValidator.e
|
|
3832
3872
|
var LCNProfileValidator = mod.object({
|
3833
3873
|
profileId: mod.string().min(3).max(40),
|
3834
3874
|
displayName: mod.string().default(""),
|
3875
|
+
shortBio: mod.string().default(""),
|
3835
3876
|
bio: mod.string().default(""),
|
3836
3877
|
did: mod.string(),
|
3837
3878
|
email: mod.string().optional(),
|
3838
3879
|
image: mod.string().optional(),
|
3880
|
+
heroImage: mod.string().optional(),
|
3881
|
+
websiteLink: mod.string().optional(),
|
3839
3882
|
isServiceProfile: mod.boolean().default(false).optional(),
|
3840
|
-
|
3883
|
+
type: mod.string().optional(),
|
3884
|
+
notificationsWebhook: mod.string().url().startsWith("http").optional()
|
3841
3885
|
});
|
3842
3886
|
var PaginatedLCNProfilesValidator = PaginationResponseValidator.extend({
|
3843
3887
|
records: LCNProfileValidator.array()
|
@@ -3864,36 +3908,16 @@ var BoostValidator = mod.object({
|
|
3864
3908
|
status: LCNBoostStatus.optional(),
|
3865
3909
|
autoConnectRecipients: mod.boolean().optional()
|
3866
3910
|
});
|
3911
|
+
var PaginatedBoostsValidator = PaginationResponseValidator.extend({
|
3912
|
+
records: BoostValidator.array()
|
3913
|
+
});
|
3867
3914
|
var BoostRecipientValidator = mod.object({
|
3868
3915
|
to: LCNProfileValidator,
|
3869
3916
|
from: mod.string(),
|
3870
3917
|
received: mod.string().optional()
|
3871
3918
|
});
|
3872
|
-
var
|
3873
|
-
|
3874
|
-
"CONNECTION_ACCEPTED",
|
3875
|
-
"CREDENTIAL_RECEIVED",
|
3876
|
-
"CREDENTIAL_ACCEPTED",
|
3877
|
-
"BOOST_RECEIVED",
|
3878
|
-
"BOOST_ACCEPTED",
|
3879
|
-
"PRESENTATION_REQUEST",
|
3880
|
-
"PRESENTATION_RECEIVED"
|
3881
|
-
]);
|
3882
|
-
var LCNNotificationMessageValidator = mod.object({
|
3883
|
-
title: mod.string().optional(),
|
3884
|
-
body: mod.string().optional()
|
3885
|
-
});
|
3886
|
-
var LCNNotificationDataValidator = mod.object({
|
3887
|
-
vcUris: mod.array(mod.string()).optional(),
|
3888
|
-
vpUris: mod.array(mod.string()).optional()
|
3889
|
-
});
|
3890
|
-
var LCNNotificationValidator = mod.object({
|
3891
|
-
type: LCNNotificationTypeEnumValidator,
|
3892
|
-
to: LCNProfileValidator.partial().and(mod.object({ did: mod.string() })),
|
3893
|
-
from: LCNProfileValidator.partial().and(mod.object({ did: mod.string() })),
|
3894
|
-
message: LCNNotificationMessageValidator.optional(),
|
3895
|
-
data: LCNNotificationDataValidator.optional(),
|
3896
|
-
sent: mod.string().datetime().optional()
|
3919
|
+
var PaginatedBoostRecipientsValidator = PaginationResponseValidator.extend({
|
3920
|
+
records: BoostRecipientValidator.array()
|
3897
3921
|
});
|
3898
3922
|
var LCNBoostClaimLinkSigningAuthorityValidator = mod.object({
|
3899
3923
|
endpoint: mod.string(),
|
@@ -3952,19 +3976,19 @@ var ConsentFlowContractDataValidator = mod.object({
|
|
3952
3976
|
var PaginatedConsentFlowDataValidator = PaginationResponseValidator.extend({
|
3953
3977
|
records: ConsentFlowContractDataValidator.array()
|
3954
3978
|
});
|
3979
|
+
var ConsentFlowTermValidator = mod.object({
|
3980
|
+
sharing: mod.boolean().optional(),
|
3981
|
+
shared: mod.string().array().optional(),
|
3982
|
+
shareAll: mod.boolean().optional(),
|
3983
|
+
shareUntil: mod.string().optional()
|
3984
|
+
});
|
3955
3985
|
var ConsentFlowTermsValidator = mod.object({
|
3956
3986
|
read: mod.object({
|
3957
3987
|
anonymize: mod.boolean().optional(),
|
3958
3988
|
credentials: mod.object({
|
3959
3989
|
shareAll: mod.boolean().optional(),
|
3960
3990
|
sharing: mod.boolean().optional(),
|
3961
|
-
categories: mod.record(
|
3962
|
-
mod.object({
|
3963
|
-
sharing: mod.boolean().optional(),
|
3964
|
-
shared: mod.string().array().optional(),
|
3965
|
-
shareAll: mod.boolean().optional()
|
3966
|
-
})
|
3967
|
-
).default({})
|
3991
|
+
categories: mod.record(ConsentFlowTermValidator).default({})
|
3968
3992
|
}).default({}),
|
3969
3993
|
personal: mod.record(mod.string()).default({})
|
3970
3994
|
}).default({}),
|
@@ -3999,19 +4023,18 @@ var ConsentFlowContractQueryValidator = mod.object({
|
|
3999
4023
|
personal: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
4000
4024
|
}).optional()
|
4001
4025
|
});
|
4026
|
+
var ConsentFlowDataQueryValidator = mod.object({
|
4027
|
+
anonymize: mod.boolean().optional(),
|
4028
|
+
credentials: mod.object({ categories: mod.record(mod.boolean()).optional() }).optional(),
|
4029
|
+
personal: mod.record(mod.boolean()).optional()
|
4030
|
+
});
|
4002
4031
|
var ConsentFlowTermsQueryValidator = mod.object({
|
4003
4032
|
read: mod.object({
|
4004
4033
|
anonymize: mod.boolean().optional(),
|
4005
4034
|
credentials: mod.object({
|
4006
4035
|
shareAll: mod.boolean().optional(),
|
4007
4036
|
sharing: mod.boolean().optional(),
|
4008
|
-
categories: mod.record(
|
4009
|
-
mod.object({
|
4010
|
-
sharing: mod.boolean().optional(),
|
4011
|
-
shared: mod.string().array().optional(),
|
4012
|
-
shareAll: mod.boolean().optional()
|
4013
|
-
}).optional()
|
4014
|
-
).optional()
|
4037
|
+
categories: mod.record(ConsentFlowTermValidator.optional()).optional()
|
4015
4038
|
}).optional(),
|
4016
4039
|
personal: mod.record(mod.string()).optional()
|
4017
4040
|
}).optional(),
|
@@ -4046,3 +4069,31 @@ var ConsentFlowTransactionValidator = mod.object({
|
|
4046
4069
|
var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
|
4047
4070
|
records: ConsentFlowTransactionValidator.array()
|
4048
4071
|
});
|
4072
|
+
var LCNNotificationTypeEnumValidator = mod.enum([
|
4073
|
+
"CONNECTION_REQUEST",
|
4074
|
+
"CONNECTION_ACCEPTED",
|
4075
|
+
"CREDENTIAL_RECEIVED",
|
4076
|
+
"CREDENTIAL_ACCEPTED",
|
4077
|
+
"BOOST_RECEIVED",
|
4078
|
+
"BOOST_ACCEPTED",
|
4079
|
+
"PRESENTATION_REQUEST",
|
4080
|
+
"PRESENTATION_RECEIVED",
|
4081
|
+
"CONSENT_FLOW_TRANSACTION"
|
4082
|
+
]);
|
4083
|
+
var LCNNotificationMessageValidator = mod.object({
|
4084
|
+
title: mod.string().optional(),
|
4085
|
+
body: mod.string().optional()
|
4086
|
+
});
|
4087
|
+
var LCNNotificationDataValidator = mod.object({
|
4088
|
+
vcUris: mod.array(mod.string()).optional(),
|
4089
|
+
vpUris: mod.array(mod.string()).optional(),
|
4090
|
+
transaction: ConsentFlowTransactionValidator.optional()
|
4091
|
+
});
|
4092
|
+
var LCNNotificationValidator = mod.object({
|
4093
|
+
type: LCNNotificationTypeEnumValidator,
|
4094
|
+
to: LCNProfileValidator.partial().and(mod.object({ did: mod.string() })),
|
4095
|
+
from: LCNProfileValidator.partial().and(mod.object({ did: mod.string() })),
|
4096
|
+
message: LCNNotificationMessageValidator.optional(),
|
4097
|
+
data: LCNNotificationDataValidator.optional(),
|
4098
|
+
sent: mod.string().datetime().optional()
|
4099
|
+
});
|