@learncard/learn-cloud-plugin 1.1.26 → 1.1.28
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/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/learn-cloud-plugin.cjs.development.js +275 -2
- package/dist/learn-cloud-plugin.cjs.development.js.map +2 -2
- package/dist/learn-cloud-plugin.cjs.production.min.js +12 -12
- package/dist/learn-cloud-plugin.cjs.production.min.js.map +2 -2
- package/dist/learn-cloud-plugin.esm.js +275 -2
- package/dist/learn-cloud-plugin.esm.js.map +2 -2
- package/dist/plugin.d.ts +1 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/test/index.test.d.ts +1 -0
- package/dist/test/index.test.d.ts.map +1 -0
- package/dist/test/mocks/sample-vcs.d.ts +1 -0
- package/dist/test/mocks/sample-vcs.d.ts.map +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +7 -7
package/dist/helpers.d.ts
CHANGED
|
@@ -5,3 +5,4 @@ export declare const generateJWE: (learnCard: LearnCloudDependentLearnCard, lear
|
|
|
5
5
|
export declare const decryptJWE: <T>(learnCard: LearnCloudDependentLearnCard, jwe: JWE) => Promise<T>;
|
|
6
6
|
export declare const generateEncryptedFieldsArray: (learnCard: LearnCloudDependentLearnCard, record: Record<string, any>, unencryptedFields?: string[]) => Promise<string[]>;
|
|
7
7
|
export declare const generateEncryptedRecord: (learnCard: LearnCloudDependentLearnCard, record: Record<string, any>, unencryptedFields?: string[]) => Promise<EncryptedRecord>;
|
|
8
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAIxD,OAAO,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAEvD,eAAO,MAAM,IAAI,cACF,4BAA4B,WAC9B,MAAM,KAChB,QAAQ,MAAM,CAoBhB,CAAC;AAEF,eAAO,MAAM,WAAW,cACT,4BAA4B,iBACxB,MAAM,QACf,GAAG,KACV,QAAQ,GAAG,CAEb,CAAC;AAEF,eAAO,MAAM,UAAU,iBACR,4BAA4B,OAClC,GAAG,eAGX,CAAC;AAEF,eAAO,MAAM,4BAA4B,cAC1B,4BAA4B,UAC/B,OAAO,MAAM,EAAE,GAAG,CAAC,sBACR,MAAM,EAAE,KAC5B,QAAQ,MAAM,EAAE,CAgBlB,CAAC;AAEF,eAAO,MAAM,uBAAuB,cACrB,4BAA4B,UAC/B,OAAO,MAAM,EAAE,GAAG,CAAC,sBACR,MAAM,EAAE,KAC5B,QAAQ,eAAe,CAYzB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC"}
|
|
@@ -6930,6 +6930,16 @@ var require_types_cjs_development = __commonJS2({
|
|
|
6930
6930
|
AlignmentValidator: () => AlignmentValidator2,
|
|
6931
6931
|
BoostRecipientValidator: () => BoostRecipientValidator2,
|
|
6932
6932
|
BoostValidator: () => BoostValidator2,
|
|
6933
|
+
ConsentFlowContractDataValidator: () => ConsentFlowContractDataValidator2,
|
|
6934
|
+
ConsentFlowContractDetailsValidator: () => ConsentFlowContractDetailsValidator2,
|
|
6935
|
+
ConsentFlowContractQueryValidator: () => ConsentFlowContractQueryValidator2,
|
|
6936
|
+
ConsentFlowContractValidator: () => ConsentFlowContractValidator2,
|
|
6937
|
+
ConsentFlowTermsQueryValidator: () => ConsentFlowTermsQueryValidator2,
|
|
6938
|
+
ConsentFlowTermsStatusValidator: () => ConsentFlowTermsStatusValidator2,
|
|
6939
|
+
ConsentFlowTermsValidator: () => ConsentFlowTermsValidator2,
|
|
6940
|
+
ConsentFlowTransactionActionValidator: () => ConsentFlowTransactionActionValidator2,
|
|
6941
|
+
ConsentFlowTransactionValidator: () => ConsentFlowTransactionValidator2,
|
|
6942
|
+
ConsentFlowTransactionsQueryValidator: () => ConsentFlowTransactionsQueryValidator2,
|
|
6933
6943
|
ContextValidator: () => ContextValidator2,
|
|
6934
6944
|
CredentialInfoValidator: () => CredentialInfoValidator2,
|
|
6935
6945
|
CredentialRecordValidator: () => CredentialRecordValidator2,
|
|
@@ -6963,8 +6973,13 @@ var require_types_cjs_development = __commonJS2({
|
|
|
6963
6973
|
LCNProfileValidator: () => LCNProfileValidator2,
|
|
6964
6974
|
LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator2,
|
|
6965
6975
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator2,
|
|
6976
|
+
PaginatedConsentFlowContractsValidator: () => PaginatedConsentFlowContractsValidator2,
|
|
6977
|
+
PaginatedConsentFlowDataValidator: () => PaginatedConsentFlowDataValidator2,
|
|
6978
|
+
PaginatedConsentFlowTermsValidator: () => PaginatedConsentFlowTermsValidator2,
|
|
6979
|
+
PaginatedConsentFlowTransactionsValidator: () => PaginatedConsentFlowTransactionsValidator2,
|
|
6966
6980
|
PaginatedEncryptedCredentialRecordsValidator: () => PaginatedEncryptedCredentialRecordsValidator2,
|
|
6967
6981
|
PaginatedEncryptedRecordsValidator: () => PaginatedEncryptedRecordsValidator2,
|
|
6982
|
+
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator2,
|
|
6968
6983
|
PaginationOptionsValidator: () => PaginationOptionsValidator2,
|
|
6969
6984
|
PaginationResponseValidator: () => PaginationResponseValidator2,
|
|
6970
6985
|
ProfileValidator: () => ProfileValidator2,
|
|
@@ -10701,12 +10716,16 @@ var require_types_cjs_development = __commonJS2({
|
|
|
10701
10716
|
var LCNProfileValidator2 = mod2.object({
|
|
10702
10717
|
profileId: mod2.string().min(3).max(40),
|
|
10703
10718
|
displayName: mod2.string().default(""),
|
|
10719
|
+
bio: mod2.string().default(""),
|
|
10704
10720
|
did: mod2.string(),
|
|
10705
10721
|
email: mod2.string().optional(),
|
|
10706
10722
|
image: mod2.string().optional(),
|
|
10707
10723
|
isServiceProfile: mod2.boolean().default(false).optional(),
|
|
10708
10724
|
notificationsWebhook: mod2.string().url().startsWith("https://").optional()
|
|
10709
10725
|
});
|
|
10726
|
+
var PaginatedLCNProfilesValidator2 = PaginationResponseValidator2.extend({
|
|
10727
|
+
records: LCNProfileValidator2.array()
|
|
10728
|
+
});
|
|
10710
10729
|
var LCNProfileConnectionStatusEnum2 = mod2.enum([
|
|
10711
10730
|
"CONNECTED",
|
|
10712
10731
|
"PENDING_REQUEST_SENT",
|
|
@@ -10726,7 +10745,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
10726
10745
|
name: mod2.string().optional(),
|
|
10727
10746
|
type: mod2.string().optional(),
|
|
10728
10747
|
category: mod2.string().optional(),
|
|
10729
|
-
status: LCNBoostStatus2.optional()
|
|
10748
|
+
status: LCNBoostStatus2.optional(),
|
|
10749
|
+
autoConnectRecipients: mod2.boolean().optional()
|
|
10730
10750
|
});
|
|
10731
10751
|
var BoostRecipientValidator2 = mod2.object({
|
|
10732
10752
|
to: LCNProfileValidator2,
|
|
@@ -10780,6 +10800,130 @@ var require_types_cjs_development = __commonJS2({
|
|
|
10780
10800
|
did: mod2.string()
|
|
10781
10801
|
})
|
|
10782
10802
|
});
|
|
10803
|
+
var ConsentFlowTermsStatusValidator2 = mod2.enum(["live", "stale", "withdrawn"]);
|
|
10804
|
+
var ConsentFlowContractValidator2 = mod2.object({
|
|
10805
|
+
read: mod2.object({
|
|
10806
|
+
anonymize: mod2.boolean().optional(),
|
|
10807
|
+
credentials: mod2.object({ categories: mod2.record(mod2.object({ required: mod2.boolean() })).default({}) }).default({}),
|
|
10808
|
+
personal: mod2.record(mod2.object({ required: mod2.boolean() })).default({})
|
|
10809
|
+
}).default({}),
|
|
10810
|
+
write: mod2.object({
|
|
10811
|
+
credentials: mod2.object({ categories: mod2.record(mod2.object({ required: mod2.boolean() })).default({}) }).default({}),
|
|
10812
|
+
personal: mod2.record(mod2.object({ required: mod2.boolean() })).default({})
|
|
10813
|
+
}).default({})
|
|
10814
|
+
});
|
|
10815
|
+
var ConsentFlowContractDetailsValidator2 = mod2.object({
|
|
10816
|
+
contract: ConsentFlowContractValidator2,
|
|
10817
|
+
owner: LCNProfileValidator2,
|
|
10818
|
+
name: mod2.string(),
|
|
10819
|
+
subtitle: mod2.string().optional(),
|
|
10820
|
+
description: mod2.string().optional(),
|
|
10821
|
+
reasonForAccessing: mod2.string().optional(),
|
|
10822
|
+
image: mod2.string().optional(),
|
|
10823
|
+
uri: mod2.string(),
|
|
10824
|
+
createdAt: mod2.string(),
|
|
10825
|
+
updatedAt: mod2.string(),
|
|
10826
|
+
expiresAt: mod2.string().optional()
|
|
10827
|
+
});
|
|
10828
|
+
var PaginatedConsentFlowContractsValidator2 = PaginationResponseValidator2.extend({
|
|
10829
|
+
records: ConsentFlowContractDetailsValidator2.omit({ owner: true }).array()
|
|
10830
|
+
});
|
|
10831
|
+
var ConsentFlowContractDataValidator2 = mod2.object({
|
|
10832
|
+
credentials: mod2.object({ categories: mod2.record(mod2.string().array()).default({}) }),
|
|
10833
|
+
personal: mod2.record(mod2.string()).default({}),
|
|
10834
|
+
date: mod2.string()
|
|
10835
|
+
});
|
|
10836
|
+
var PaginatedConsentFlowDataValidator2 = PaginationResponseValidator2.extend({
|
|
10837
|
+
records: ConsentFlowContractDataValidator2.array()
|
|
10838
|
+
});
|
|
10839
|
+
var ConsentFlowTermsValidator2 = mod2.object({
|
|
10840
|
+
read: mod2.object({
|
|
10841
|
+
anonymize: mod2.boolean().optional(),
|
|
10842
|
+
credentials: mod2.object({
|
|
10843
|
+
shareAll: mod2.boolean().optional(),
|
|
10844
|
+
sharing: mod2.boolean().optional(),
|
|
10845
|
+
categories: mod2.record(mod2.object({
|
|
10846
|
+
sharing: mod2.boolean().optional(),
|
|
10847
|
+
shared: mod2.string().array().optional(),
|
|
10848
|
+
shareAll: mod2.boolean().optional()
|
|
10849
|
+
})).default({})
|
|
10850
|
+
}).default({}),
|
|
10851
|
+
personal: mod2.record(mod2.string()).default({})
|
|
10852
|
+
}).default({}),
|
|
10853
|
+
write: mod2.object({
|
|
10854
|
+
credentials: mod2.object({ categories: mod2.record(mod2.boolean()).default({}) }).default({}),
|
|
10855
|
+
personal: mod2.record(mod2.boolean()).default({})
|
|
10856
|
+
}).default({})
|
|
10857
|
+
});
|
|
10858
|
+
var PaginatedConsentFlowTermsValidator2 = PaginationResponseValidator2.extend({
|
|
10859
|
+
records: mod2.object({
|
|
10860
|
+
expiresAt: mod2.string().optional(),
|
|
10861
|
+
oneTime: mod2.boolean().optional(),
|
|
10862
|
+
terms: ConsentFlowTermsValidator2,
|
|
10863
|
+
contract: ConsentFlowContractDetailsValidator2,
|
|
10864
|
+
uri: mod2.string(),
|
|
10865
|
+
consenter: LCNProfileValidator2,
|
|
10866
|
+
status: ConsentFlowTermsStatusValidator2
|
|
10867
|
+
}).array()
|
|
10868
|
+
});
|
|
10869
|
+
var ConsentFlowContractQueryValidator2 = mod2.object({
|
|
10870
|
+
read: mod2.object({
|
|
10871
|
+
anonymize: mod2.boolean().optional(),
|
|
10872
|
+
credentials: mod2.object({
|
|
10873
|
+
categories: mod2.record(mod2.object({ required: mod2.boolean().optional() })).optional()
|
|
10874
|
+
}).optional(),
|
|
10875
|
+
personal: mod2.record(mod2.object({ required: mod2.boolean().optional() })).optional()
|
|
10876
|
+
}).optional(),
|
|
10877
|
+
write: mod2.object({
|
|
10878
|
+
credentials: mod2.object({
|
|
10879
|
+
categories: mod2.record(mod2.object({ required: mod2.boolean().optional() })).optional()
|
|
10880
|
+
}).optional(),
|
|
10881
|
+
personal: mod2.record(mod2.object({ required: mod2.boolean().optional() })).optional()
|
|
10882
|
+
}).optional()
|
|
10883
|
+
});
|
|
10884
|
+
var ConsentFlowTermsQueryValidator2 = mod2.object({
|
|
10885
|
+
read: mod2.object({
|
|
10886
|
+
anonymize: mod2.boolean().optional(),
|
|
10887
|
+
credentials: mod2.object({
|
|
10888
|
+
shareAll: mod2.boolean().optional(),
|
|
10889
|
+
sharing: mod2.boolean().optional(),
|
|
10890
|
+
categories: mod2.record(mod2.object({
|
|
10891
|
+
sharing: mod2.boolean().optional(),
|
|
10892
|
+
shared: mod2.string().array().optional(),
|
|
10893
|
+
shareAll: mod2.boolean().optional()
|
|
10894
|
+
}).optional()).optional()
|
|
10895
|
+
}).optional(),
|
|
10896
|
+
personal: mod2.record(mod2.string()).optional()
|
|
10897
|
+
}).optional(),
|
|
10898
|
+
write: mod2.object({
|
|
10899
|
+
credentials: mod2.object({ categories: mod2.record(mod2.boolean()).optional() }).optional(),
|
|
10900
|
+
personal: mod2.record(mod2.boolean()).optional()
|
|
10901
|
+
}).optional()
|
|
10902
|
+
});
|
|
10903
|
+
var ConsentFlowTransactionActionValidator2 = mod2.enum([
|
|
10904
|
+
"consent",
|
|
10905
|
+
"update",
|
|
10906
|
+
"sync",
|
|
10907
|
+
"withdraw"
|
|
10908
|
+
]);
|
|
10909
|
+
var ConsentFlowTransactionsQueryValidator2 = mod2.object({
|
|
10910
|
+
terms: ConsentFlowTermsQueryValidator2.optional(),
|
|
10911
|
+
action: ConsentFlowTransactionActionValidator2.or(ConsentFlowTransactionActionValidator2.array()).optional(),
|
|
10912
|
+
date: mod2.object({ $gt: mod2.string() }).or(mod2.object({ $lt: mod2.string() })).or(mod2.object({ $eq: mod2.string() })).optional(),
|
|
10913
|
+
expiresAt: mod2.object({ $gt: mod2.string() }).or(mod2.object({ $lt: mod2.string() })).or(mod2.object({ $eq: mod2.string() })).optional(),
|
|
10914
|
+
oneTime: mod2.boolean().optional()
|
|
10915
|
+
});
|
|
10916
|
+
var ConsentFlowTransactionValidator2 = mod2.object({
|
|
10917
|
+
expiresAt: mod2.string().optional(),
|
|
10918
|
+
oneTime: mod2.boolean().optional(),
|
|
10919
|
+
terms: ConsentFlowTermsValidator2.optional(),
|
|
10920
|
+
id: mod2.string(),
|
|
10921
|
+
action: ConsentFlowTransactionActionValidator2,
|
|
10922
|
+
date: mod2.string()
|
|
10923
|
+
});
|
|
10924
|
+
var PaginatedConsentFlowTransactionsValidator2 = PaginationResponseValidator2.extend({
|
|
10925
|
+
records: ConsentFlowTransactionValidator2.array()
|
|
10926
|
+
});
|
|
10783
10927
|
}
|
|
10784
10928
|
});
|
|
10785
10929
|
var require_dist = __commonJS2({
|
|
@@ -14483,12 +14627,16 @@ var PaginatedEncryptedCredentialRecordsValidator = PaginationResponseValidator.e
|
|
|
14483
14627
|
var LCNProfileValidator = mod.object({
|
|
14484
14628
|
profileId: mod.string().min(3).max(40),
|
|
14485
14629
|
displayName: mod.string().default(""),
|
|
14630
|
+
bio: mod.string().default(""),
|
|
14486
14631
|
did: mod.string(),
|
|
14487
14632
|
email: mod.string().optional(),
|
|
14488
14633
|
image: mod.string().optional(),
|
|
14489
14634
|
isServiceProfile: mod.boolean().default(false).optional(),
|
|
14490
14635
|
notificationsWebhook: mod.string().url().startsWith("https://").optional()
|
|
14491
14636
|
});
|
|
14637
|
+
var PaginatedLCNProfilesValidator = PaginationResponseValidator.extend({
|
|
14638
|
+
records: LCNProfileValidator.array()
|
|
14639
|
+
});
|
|
14492
14640
|
var LCNProfileConnectionStatusEnum = mod.enum([
|
|
14493
14641
|
"CONNECTED",
|
|
14494
14642
|
"PENDING_REQUEST_SENT",
|
|
@@ -14508,7 +14656,8 @@ var BoostValidator = mod.object({
|
|
|
14508
14656
|
name: mod.string().optional(),
|
|
14509
14657
|
type: mod.string().optional(),
|
|
14510
14658
|
category: mod.string().optional(),
|
|
14511
|
-
status: LCNBoostStatus.optional()
|
|
14659
|
+
status: LCNBoostStatus.optional(),
|
|
14660
|
+
autoConnectRecipients: mod.boolean().optional()
|
|
14512
14661
|
});
|
|
14513
14662
|
var BoostRecipientValidator = mod.object({
|
|
14514
14663
|
to: LCNProfileValidator,
|
|
@@ -14562,6 +14711,130 @@ var LCNSigningAuthorityForUserValidator = mod.object({
|
|
|
14562
14711
|
did: mod.string()
|
|
14563
14712
|
})
|
|
14564
14713
|
});
|
|
14714
|
+
var ConsentFlowTermsStatusValidator = mod.enum(["live", "stale", "withdrawn"]);
|
|
14715
|
+
var ConsentFlowContractValidator = mod.object({
|
|
14716
|
+
read: mod.object({
|
|
14717
|
+
anonymize: mod.boolean().optional(),
|
|
14718
|
+
credentials: mod.object({ categories: mod.record(mod.object({ required: mod.boolean() })).default({}) }).default({}),
|
|
14719
|
+
personal: mod.record(mod.object({ required: mod.boolean() })).default({})
|
|
14720
|
+
}).default({}),
|
|
14721
|
+
write: mod.object({
|
|
14722
|
+
credentials: mod.object({ categories: mod.record(mod.object({ required: mod.boolean() })).default({}) }).default({}),
|
|
14723
|
+
personal: mod.record(mod.object({ required: mod.boolean() })).default({})
|
|
14724
|
+
}).default({})
|
|
14725
|
+
});
|
|
14726
|
+
var ConsentFlowContractDetailsValidator = mod.object({
|
|
14727
|
+
contract: ConsentFlowContractValidator,
|
|
14728
|
+
owner: LCNProfileValidator,
|
|
14729
|
+
name: mod.string(),
|
|
14730
|
+
subtitle: mod.string().optional(),
|
|
14731
|
+
description: mod.string().optional(),
|
|
14732
|
+
reasonForAccessing: mod.string().optional(),
|
|
14733
|
+
image: mod.string().optional(),
|
|
14734
|
+
uri: mod.string(),
|
|
14735
|
+
createdAt: mod.string(),
|
|
14736
|
+
updatedAt: mod.string(),
|
|
14737
|
+
expiresAt: mod.string().optional()
|
|
14738
|
+
});
|
|
14739
|
+
var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
|
|
14740
|
+
records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
|
|
14741
|
+
});
|
|
14742
|
+
var ConsentFlowContractDataValidator = mod.object({
|
|
14743
|
+
credentials: mod.object({ categories: mod.record(mod.string().array()).default({}) }),
|
|
14744
|
+
personal: mod.record(mod.string()).default({}),
|
|
14745
|
+
date: mod.string()
|
|
14746
|
+
});
|
|
14747
|
+
var PaginatedConsentFlowDataValidator = PaginationResponseValidator.extend({
|
|
14748
|
+
records: ConsentFlowContractDataValidator.array()
|
|
14749
|
+
});
|
|
14750
|
+
var ConsentFlowTermsValidator = mod.object({
|
|
14751
|
+
read: mod.object({
|
|
14752
|
+
anonymize: mod.boolean().optional(),
|
|
14753
|
+
credentials: mod.object({
|
|
14754
|
+
shareAll: mod.boolean().optional(),
|
|
14755
|
+
sharing: mod.boolean().optional(),
|
|
14756
|
+
categories: mod.record(mod.object({
|
|
14757
|
+
sharing: mod.boolean().optional(),
|
|
14758
|
+
shared: mod.string().array().optional(),
|
|
14759
|
+
shareAll: mod.boolean().optional()
|
|
14760
|
+
})).default({})
|
|
14761
|
+
}).default({}),
|
|
14762
|
+
personal: mod.record(mod.string()).default({})
|
|
14763
|
+
}).default({}),
|
|
14764
|
+
write: mod.object({
|
|
14765
|
+
credentials: mod.object({ categories: mod.record(mod.boolean()).default({}) }).default({}),
|
|
14766
|
+
personal: mod.record(mod.boolean()).default({})
|
|
14767
|
+
}).default({})
|
|
14768
|
+
});
|
|
14769
|
+
var PaginatedConsentFlowTermsValidator = PaginationResponseValidator.extend({
|
|
14770
|
+
records: mod.object({
|
|
14771
|
+
expiresAt: mod.string().optional(),
|
|
14772
|
+
oneTime: mod.boolean().optional(),
|
|
14773
|
+
terms: ConsentFlowTermsValidator,
|
|
14774
|
+
contract: ConsentFlowContractDetailsValidator,
|
|
14775
|
+
uri: mod.string(),
|
|
14776
|
+
consenter: LCNProfileValidator,
|
|
14777
|
+
status: ConsentFlowTermsStatusValidator
|
|
14778
|
+
}).array()
|
|
14779
|
+
});
|
|
14780
|
+
var ConsentFlowContractQueryValidator = mod.object({
|
|
14781
|
+
read: mod.object({
|
|
14782
|
+
anonymize: mod.boolean().optional(),
|
|
14783
|
+
credentials: mod.object({
|
|
14784
|
+
categories: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
|
14785
|
+
}).optional(),
|
|
14786
|
+
personal: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
|
14787
|
+
}).optional(),
|
|
14788
|
+
write: mod.object({
|
|
14789
|
+
credentials: mod.object({
|
|
14790
|
+
categories: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
|
14791
|
+
}).optional(),
|
|
14792
|
+
personal: mod.record(mod.object({ required: mod.boolean().optional() })).optional()
|
|
14793
|
+
}).optional()
|
|
14794
|
+
});
|
|
14795
|
+
var ConsentFlowTermsQueryValidator = mod.object({
|
|
14796
|
+
read: mod.object({
|
|
14797
|
+
anonymize: mod.boolean().optional(),
|
|
14798
|
+
credentials: mod.object({
|
|
14799
|
+
shareAll: mod.boolean().optional(),
|
|
14800
|
+
sharing: mod.boolean().optional(),
|
|
14801
|
+
categories: mod.record(mod.object({
|
|
14802
|
+
sharing: mod.boolean().optional(),
|
|
14803
|
+
shared: mod.string().array().optional(),
|
|
14804
|
+
shareAll: mod.boolean().optional()
|
|
14805
|
+
}).optional()).optional()
|
|
14806
|
+
}).optional(),
|
|
14807
|
+
personal: mod.record(mod.string()).optional()
|
|
14808
|
+
}).optional(),
|
|
14809
|
+
write: mod.object({
|
|
14810
|
+
credentials: mod.object({ categories: mod.record(mod.boolean()).optional() }).optional(),
|
|
14811
|
+
personal: mod.record(mod.boolean()).optional()
|
|
14812
|
+
}).optional()
|
|
14813
|
+
});
|
|
14814
|
+
var ConsentFlowTransactionActionValidator = mod.enum([
|
|
14815
|
+
"consent",
|
|
14816
|
+
"update",
|
|
14817
|
+
"sync",
|
|
14818
|
+
"withdraw"
|
|
14819
|
+
]);
|
|
14820
|
+
var ConsentFlowTransactionsQueryValidator = mod.object({
|
|
14821
|
+
terms: ConsentFlowTermsQueryValidator.optional(),
|
|
14822
|
+
action: ConsentFlowTransactionActionValidator.or(ConsentFlowTransactionActionValidator.array()).optional(),
|
|
14823
|
+
date: mod.object({ $gt: mod.string() }).or(mod.object({ $lt: mod.string() })).or(mod.object({ $eq: mod.string() })).optional(),
|
|
14824
|
+
expiresAt: mod.object({ $gt: mod.string() }).or(mod.object({ $lt: mod.string() })).or(mod.object({ $eq: mod.string() })).optional(),
|
|
14825
|
+
oneTime: mod.boolean().optional()
|
|
14826
|
+
});
|
|
14827
|
+
var ConsentFlowTransactionValidator = mod.object({
|
|
14828
|
+
expiresAt: mod.string().optional(),
|
|
14829
|
+
oneTime: mod.boolean().optional(),
|
|
14830
|
+
terms: ConsentFlowTermsValidator.optional(),
|
|
14831
|
+
id: mod.string(),
|
|
14832
|
+
action: ConsentFlowTransactionActionValidator,
|
|
14833
|
+
date: mod.string()
|
|
14834
|
+
});
|
|
14835
|
+
var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
|
|
14836
|
+
records: ConsentFlowTransactionValidator.array()
|
|
14837
|
+
});
|
|
14565
14838
|
|
|
14566
14839
|
// src/helpers.ts
|
|
14567
14840
|
var import_json_stringify_deterministic = __toESM(require_lib());
|