@learncard/init 2.0.11 → 2.0.13
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/init.esm.js
CHANGED
|
@@ -11098,7 +11098,9 @@ var LCNProfileValidator = mod.object({
|
|
|
11098
11098
|
isServiceProfile: mod.boolean().default(false).optional(),
|
|
11099
11099
|
type: mod.string().optional(),
|
|
11100
11100
|
notificationsWebhook: mod.string().url().startsWith("http").optional(),
|
|
11101
|
-
display: LCNProfileDisplayValidator.optional()
|
|
11101
|
+
display: LCNProfileDisplayValidator.optional(),
|
|
11102
|
+
role: mod.string().default("").optional(),
|
|
11103
|
+
dob: mod.string().default("").optional()
|
|
11102
11104
|
});
|
|
11103
11105
|
var LCNProfileQueryValidator = mod.object({
|
|
11104
11106
|
profileId: StringQuery,
|
|
@@ -11294,7 +11296,8 @@ var ConsentFlowContractDetailsValidator = mod.object({
|
|
|
11294
11296
|
createdAt: mod.string(),
|
|
11295
11297
|
updatedAt: mod.string(),
|
|
11296
11298
|
expiresAt: mod.string().optional(),
|
|
11297
|
-
autoBoosts: mod.string().array().optional()
|
|
11299
|
+
autoBoosts: mod.string().array().optional(),
|
|
11300
|
+
writers: mod.array(LCNProfileValidator).optional()
|
|
11298
11301
|
});
|
|
11299
11302
|
var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
|
|
11300
11303
|
records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
|
|
@@ -11335,7 +11338,8 @@ var ConsentFlowTermsValidator = mod.object({
|
|
|
11335
11338
|
write: mod.object({
|
|
11336
11339
|
credentials: mod.object({ categories: mod.record(mod.boolean()).default({}) }).default({}),
|
|
11337
11340
|
personal: mod.record(mod.boolean()).default({})
|
|
11338
|
-
}).default({})
|
|
11341
|
+
}).default({}),
|
|
11342
|
+
deniedWriters: mod.array(mod.string()).optional()
|
|
11339
11343
|
});
|
|
11340
11344
|
var PaginatedConsentFlowTermsValidator = PaginationResponseValidator.extend({
|
|
11341
11345
|
records: mod.object({
|
|
@@ -17113,7 +17117,9 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17113
17117
|
isServiceProfile: mod5.boolean().default(false).optional(),
|
|
17114
17118
|
type: mod5.string().optional(),
|
|
17115
17119
|
notificationsWebhook: mod5.string().url().startsWith("http").optional(),
|
|
17116
|
-
display: LCNProfileDisplayValidator5.optional()
|
|
17120
|
+
display: LCNProfileDisplayValidator5.optional(),
|
|
17121
|
+
role: mod5.string().default("").optional(),
|
|
17122
|
+
dob: mod5.string().default("").optional()
|
|
17117
17123
|
});
|
|
17118
17124
|
var LCNProfileQueryValidator5 = mod5.object({
|
|
17119
17125
|
profileId: StringQuery5,
|
|
@@ -17309,7 +17315,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17309
17315
|
createdAt: mod5.string(),
|
|
17310
17316
|
updatedAt: mod5.string(),
|
|
17311
17317
|
expiresAt: mod5.string().optional(),
|
|
17312
|
-
autoBoosts: mod5.string().array().optional()
|
|
17318
|
+
autoBoosts: mod5.string().array().optional(),
|
|
17319
|
+
writers: mod5.array(LCNProfileValidator5).optional()
|
|
17313
17320
|
});
|
|
17314
17321
|
var PaginatedConsentFlowContractsValidator5 = PaginationResponseValidator5.extend({
|
|
17315
17322
|
records: ConsentFlowContractDetailsValidator5.omit({ owner: true }).array()
|
|
@@ -17350,7 +17357,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17350
17357
|
write: mod5.object({
|
|
17351
17358
|
credentials: mod5.object({ categories: mod5.record(mod5.boolean()).default({}) }).default({}),
|
|
17352
17359
|
personal: mod5.record(mod5.boolean()).default({})
|
|
17353
|
-
}).default({})
|
|
17360
|
+
}).default({}),
|
|
17361
|
+
deniedWriters: mod5.array(mod5.string()).optional()
|
|
17354
17362
|
});
|
|
17355
17363
|
var PaginatedConsentFlowTermsValidator5 = PaginationResponseValidator5.extend({
|
|
17356
17364
|
records: mod5.object({
|
|
@@ -29486,7 +29494,9 @@ var require_types_cjs_development2 = __commonJS22({
|
|
|
29486
29494
|
isServiceProfile: mod22.boolean().default(false).optional(),
|
|
29487
29495
|
type: mod22.string().optional(),
|
|
29488
29496
|
notificationsWebhook: mod22.string().url().startsWith("http").optional(),
|
|
29489
|
-
display: LCNProfileDisplayValidator22.optional()
|
|
29497
|
+
display: LCNProfileDisplayValidator22.optional(),
|
|
29498
|
+
role: mod22.string().default("").optional(),
|
|
29499
|
+
dob: mod22.string().default("").optional()
|
|
29490
29500
|
});
|
|
29491
29501
|
var LCNProfileQueryValidator22 = mod22.object({
|
|
29492
29502
|
profileId: StringQuery22,
|
|
@@ -29682,7 +29692,8 @@ var require_types_cjs_development2 = __commonJS22({
|
|
|
29682
29692
|
createdAt: mod22.string(),
|
|
29683
29693
|
updatedAt: mod22.string(),
|
|
29684
29694
|
expiresAt: mod22.string().optional(),
|
|
29685
|
-
autoBoosts: mod22.string().array().optional()
|
|
29695
|
+
autoBoosts: mod22.string().array().optional(),
|
|
29696
|
+
writers: mod22.array(LCNProfileValidator22).optional()
|
|
29686
29697
|
});
|
|
29687
29698
|
var PaginatedConsentFlowContractsValidator22 = PaginationResponseValidator22.extend({
|
|
29688
29699
|
records: ConsentFlowContractDetailsValidator22.omit({ owner: true }).array()
|
|
@@ -29723,7 +29734,8 @@ var require_types_cjs_development2 = __commonJS22({
|
|
|
29723
29734
|
write: mod22.object({
|
|
29724
29735
|
credentials: mod22.object({ categories: mod22.record(mod22.boolean()).default({}) }).default({}),
|
|
29725
29736
|
personal: mod22.record(mod22.boolean()).default({})
|
|
29726
|
-
}).default({})
|
|
29737
|
+
}).default({}),
|
|
29738
|
+
deniedWriters: mod22.array(mod22.string()).optional()
|
|
29727
29739
|
});
|
|
29728
29740
|
var PaginatedConsentFlowTermsValidator22 = PaginationResponseValidator22.extend({
|
|
29729
29741
|
records: mod22.object({
|
|
@@ -33691,7 +33703,9 @@ var LCNProfileValidator2 = mod2.object({
|
|
|
33691
33703
|
isServiceProfile: mod2.boolean().default(false).optional(),
|
|
33692
33704
|
type: mod2.string().optional(),
|
|
33693
33705
|
notificationsWebhook: mod2.string().url().startsWith("http").optional(),
|
|
33694
|
-
display: LCNProfileDisplayValidator2.optional()
|
|
33706
|
+
display: LCNProfileDisplayValidator2.optional(),
|
|
33707
|
+
role: mod2.string().default("").optional(),
|
|
33708
|
+
dob: mod2.string().default("").optional()
|
|
33695
33709
|
});
|
|
33696
33710
|
var LCNProfileQueryValidator2 = mod2.object({
|
|
33697
33711
|
profileId: StringQuery2,
|
|
@@ -33887,7 +33901,8 @@ var ConsentFlowContractDetailsValidator2 = mod2.object({
|
|
|
33887
33901
|
createdAt: mod2.string(),
|
|
33888
33902
|
updatedAt: mod2.string(),
|
|
33889
33903
|
expiresAt: mod2.string().optional(),
|
|
33890
|
-
autoBoosts: mod2.string().array().optional()
|
|
33904
|
+
autoBoosts: mod2.string().array().optional(),
|
|
33905
|
+
writers: mod2.array(LCNProfileValidator2).optional()
|
|
33891
33906
|
});
|
|
33892
33907
|
var PaginatedConsentFlowContractsValidator2 = PaginationResponseValidator2.extend({
|
|
33893
33908
|
records: ConsentFlowContractDetailsValidator2.omit({ owner: true }).array()
|
|
@@ -33928,7 +33943,8 @@ var ConsentFlowTermsValidator2 = mod2.object({
|
|
|
33928
33943
|
write: mod2.object({
|
|
33929
33944
|
credentials: mod2.object({ categories: mod2.record(mod2.boolean()).default({}) }).default({}),
|
|
33930
33945
|
personal: mod2.record(mod2.boolean()).default({})
|
|
33931
|
-
}).default({})
|
|
33946
|
+
}).default({}),
|
|
33947
|
+
deniedWriters: mod2.array(mod2.string()).optional()
|
|
33932
33948
|
});
|
|
33933
33949
|
var PaginatedConsentFlowTermsValidator2 = PaginationResponseValidator2.extend({
|
|
33934
33950
|
records: mod2.object({
|
|
@@ -75278,7 +75294,9 @@ var require_helpers_cjs_development = __commonJS6({
|
|
|
75278
75294
|
isServiceProfile: mod22.boolean().default(false).optional(),
|
|
75279
75295
|
type: mod22.string().optional(),
|
|
75280
75296
|
notificationsWebhook: mod22.string().url().startsWith("http").optional(),
|
|
75281
|
-
display: LCNProfileDisplayValidator22.optional()
|
|
75297
|
+
display: LCNProfileDisplayValidator22.optional(),
|
|
75298
|
+
role: mod22.string().default("").optional(),
|
|
75299
|
+
dob: mod22.string().default("").optional()
|
|
75282
75300
|
});
|
|
75283
75301
|
var LCNProfileQueryValidator22 = mod22.object({
|
|
75284
75302
|
profileId: StringQuery22,
|
|
@@ -75474,7 +75492,8 @@ var require_helpers_cjs_development = __commonJS6({
|
|
|
75474
75492
|
createdAt: mod22.string(),
|
|
75475
75493
|
updatedAt: mod22.string(),
|
|
75476
75494
|
expiresAt: mod22.string().optional(),
|
|
75477
|
-
autoBoosts: mod22.string().array().optional()
|
|
75495
|
+
autoBoosts: mod22.string().array().optional(),
|
|
75496
|
+
writers: mod22.array(LCNProfileValidator22).optional()
|
|
75478
75497
|
});
|
|
75479
75498
|
var PaginatedConsentFlowContractsValidator22 = PaginationResponseValidator22.extend({
|
|
75480
75499
|
records: ConsentFlowContractDetailsValidator22.omit({ owner: true }).array()
|
|
@@ -75515,7 +75534,8 @@ var require_helpers_cjs_development = __commonJS6({
|
|
|
75515
75534
|
write: mod22.object({
|
|
75516
75535
|
credentials: mod22.object({ categories: mod22.record(mod22.boolean()).default({}) }).default({}),
|
|
75517
75536
|
personal: mod22.record(mod22.boolean()).default({})
|
|
75518
|
-
}).default({})
|
|
75537
|
+
}).default({}),
|
|
75538
|
+
deniedWriters: mod22.array(mod22.string()).optional()
|
|
75519
75539
|
});
|
|
75520
75540
|
var PaginatedConsentFlowTermsValidator22 = PaginationResponseValidator22.extend({
|
|
75521
75541
|
records: mod22.object({
|
|
@@ -79606,7 +79626,9 @@ var LCNProfileValidator3 = mod3.object({
|
|
|
79606
79626
|
isServiceProfile: mod3.boolean().default(false).optional(),
|
|
79607
79627
|
type: mod3.string().optional(),
|
|
79608
79628
|
notificationsWebhook: mod3.string().url().startsWith("http").optional(),
|
|
79609
|
-
display: LCNProfileDisplayValidator3.optional()
|
|
79629
|
+
display: LCNProfileDisplayValidator3.optional(),
|
|
79630
|
+
role: mod3.string().default("").optional(),
|
|
79631
|
+
dob: mod3.string().default("").optional()
|
|
79610
79632
|
});
|
|
79611
79633
|
var LCNProfileQueryValidator3 = mod3.object({
|
|
79612
79634
|
profileId: StringQuery3,
|
|
@@ -79802,7 +79824,8 @@ var ConsentFlowContractDetailsValidator3 = mod3.object({
|
|
|
79802
79824
|
createdAt: mod3.string(),
|
|
79803
79825
|
updatedAt: mod3.string(),
|
|
79804
79826
|
expiresAt: mod3.string().optional(),
|
|
79805
|
-
autoBoosts: mod3.string().array().optional()
|
|
79827
|
+
autoBoosts: mod3.string().array().optional(),
|
|
79828
|
+
writers: mod3.array(LCNProfileValidator3).optional()
|
|
79806
79829
|
});
|
|
79807
79830
|
var PaginatedConsentFlowContractsValidator3 = PaginationResponseValidator3.extend({
|
|
79808
79831
|
records: ConsentFlowContractDetailsValidator3.omit({ owner: true }).array()
|
|
@@ -79843,7 +79866,8 @@ var ConsentFlowTermsValidator3 = mod3.object({
|
|
|
79843
79866
|
write: mod3.object({
|
|
79844
79867
|
credentials: mod3.object({ categories: mod3.record(mod3.boolean()).default({}) }).default({}),
|
|
79845
79868
|
personal: mod3.record(mod3.boolean()).default({})
|
|
79846
|
-
}).default({})
|
|
79869
|
+
}).default({}),
|
|
79870
|
+
deniedWriters: mod3.array(mod3.string()).optional()
|
|
79847
79871
|
});
|
|
79848
79872
|
var PaginatedConsentFlowTermsValidator3 = PaginationResponseValidator3.extend({
|
|
79849
79873
|
records: mod3.object({
|
|
@@ -80587,6 +80611,19 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name14(async (learnCard, url)
|
|
|
80587
80611
|
throw new Error("Please make an account first!");
|
|
80588
80612
|
return client.contracts.createConsentFlowContract.mutate(contract);
|
|
80589
80613
|
},
|
|
80614
|
+
addAutoBoostsToContract: async (_learnCard, contractUri, autoboosts) => {
|
|
80615
|
+
if (!userData)
|
|
80616
|
+
throw new Error("Please make an account first!");
|
|
80617
|
+
return client.contracts.addAutoBoostsToContract.mutate({ contractUri, autoboosts });
|
|
80618
|
+
},
|
|
80619
|
+
removeAutoBoostsFromContract: async (_learnCard, contractUri, boostUris) => {
|
|
80620
|
+
if (!userData)
|
|
80621
|
+
throw new Error("Please make an account first!");
|
|
80622
|
+
return client.contracts.removeAutoBoostsFromContract.mutate({
|
|
80623
|
+
contractUri,
|
|
80624
|
+
boostUris
|
|
80625
|
+
});
|
|
80626
|
+
},
|
|
80590
80627
|
getContract: async (_learnCard, uri) => {
|
|
80591
80628
|
return client.contracts.getConsentFlowContract.query({ uri });
|
|
80592
80629
|
},
|
|
@@ -84853,7 +84890,9 @@ var LCNProfileValidator4 = mod4.object({
|
|
|
84853
84890
|
isServiceProfile: mod4.boolean().default(false).optional(),
|
|
84854
84891
|
type: mod4.string().optional(),
|
|
84855
84892
|
notificationsWebhook: mod4.string().url().startsWith("http").optional(),
|
|
84856
|
-
display: LCNProfileDisplayValidator4.optional()
|
|
84893
|
+
display: LCNProfileDisplayValidator4.optional(),
|
|
84894
|
+
role: mod4.string().default("").optional(),
|
|
84895
|
+
dob: mod4.string().default("").optional()
|
|
84857
84896
|
});
|
|
84858
84897
|
var LCNProfileQueryValidator4 = mod4.object({
|
|
84859
84898
|
profileId: StringQuery4,
|
|
@@ -85049,7 +85088,8 @@ var ConsentFlowContractDetailsValidator4 = mod4.object({
|
|
|
85049
85088
|
createdAt: mod4.string(),
|
|
85050
85089
|
updatedAt: mod4.string(),
|
|
85051
85090
|
expiresAt: mod4.string().optional(),
|
|
85052
|
-
autoBoosts: mod4.string().array().optional()
|
|
85091
|
+
autoBoosts: mod4.string().array().optional(),
|
|
85092
|
+
writers: mod4.array(LCNProfileValidator4).optional()
|
|
85053
85093
|
});
|
|
85054
85094
|
var PaginatedConsentFlowContractsValidator4 = PaginationResponseValidator4.extend({
|
|
85055
85095
|
records: ConsentFlowContractDetailsValidator4.omit({ owner: true }).array()
|
|
@@ -85090,7 +85130,8 @@ var ConsentFlowTermsValidator4 = mod4.object({
|
|
|
85090
85130
|
write: mod4.object({
|
|
85091
85131
|
credentials: mod4.object({ categories: mod4.record(mod4.boolean()).default({}) }).default({}),
|
|
85092
85132
|
personal: mod4.record(mod4.boolean()).default({})
|
|
85093
|
-
}).default({})
|
|
85133
|
+
}).default({}),
|
|
85134
|
+
deniedWriters: mod4.array(mod4.string()).optional()
|
|
85094
85135
|
});
|
|
85095
85136
|
var PaginatedConsentFlowTermsValidator4 = PaginationResponseValidator4.extend({
|
|
85096
85137
|
records: mod4.object({
|