@learncard/init 2.0.12 → 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.
|
@@ -11334,7 +11334,8 @@ var ConsentFlowContractDetailsValidator = mod.object({
|
|
|
11334
11334
|
createdAt: mod.string(),
|
|
11335
11335
|
updatedAt: mod.string(),
|
|
11336
11336
|
expiresAt: mod.string().optional(),
|
|
11337
|
-
autoBoosts: mod.string().array().optional()
|
|
11337
|
+
autoBoosts: mod.string().array().optional(),
|
|
11338
|
+
writers: mod.array(LCNProfileValidator).optional()
|
|
11338
11339
|
});
|
|
11339
11340
|
var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
|
|
11340
11341
|
records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
|
|
@@ -11375,7 +11376,8 @@ var ConsentFlowTermsValidator = mod.object({
|
|
|
11375
11376
|
write: mod.object({
|
|
11376
11377
|
credentials: mod.object({ categories: mod.record(mod.boolean()).default({}) }).default({}),
|
|
11377
11378
|
personal: mod.record(mod.boolean()).default({})
|
|
11378
|
-
}).default({})
|
|
11379
|
+
}).default({}),
|
|
11380
|
+
deniedWriters: mod.array(mod.string()).optional()
|
|
11379
11381
|
});
|
|
11380
11382
|
var PaginatedConsentFlowTermsValidator = PaginationResponseValidator.extend({
|
|
11381
11383
|
records: mod.object({
|
|
@@ -17351,7 +17353,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17351
17353
|
createdAt: mod5.string(),
|
|
17352
17354
|
updatedAt: mod5.string(),
|
|
17353
17355
|
expiresAt: mod5.string().optional(),
|
|
17354
|
-
autoBoosts: mod5.string().array().optional()
|
|
17356
|
+
autoBoosts: mod5.string().array().optional(),
|
|
17357
|
+
writers: mod5.array(LCNProfileValidator5).optional()
|
|
17355
17358
|
});
|
|
17356
17359
|
var PaginatedConsentFlowContractsValidator5 = PaginationResponseValidator5.extend({
|
|
17357
17360
|
records: ConsentFlowContractDetailsValidator5.omit({ owner: true }).array()
|
|
@@ -17392,7 +17395,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17392
17395
|
write: mod5.object({
|
|
17393
17396
|
credentials: mod5.object({ categories: mod5.record(mod5.boolean()).default({}) }).default({}),
|
|
17394
17397
|
personal: mod5.record(mod5.boolean()).default({})
|
|
17395
|
-
}).default({})
|
|
17398
|
+
}).default({}),
|
|
17399
|
+
deniedWriters: mod5.array(mod5.string()).optional()
|
|
17396
17400
|
});
|
|
17397
17401
|
var PaginatedConsentFlowTermsValidator5 = PaginationResponseValidator5.extend({
|
|
17398
17402
|
records: mod5.object({
|
|
@@ -29726,7 +29730,8 @@ var require_types_cjs_development2 = __commonJS22({
|
|
|
29726
29730
|
createdAt: mod22.string(),
|
|
29727
29731
|
updatedAt: mod22.string(),
|
|
29728
29732
|
expiresAt: mod22.string().optional(),
|
|
29729
|
-
autoBoosts: mod22.string().array().optional()
|
|
29733
|
+
autoBoosts: mod22.string().array().optional(),
|
|
29734
|
+
writers: mod22.array(LCNProfileValidator22).optional()
|
|
29730
29735
|
});
|
|
29731
29736
|
var PaginatedConsentFlowContractsValidator22 = PaginationResponseValidator22.extend({
|
|
29732
29737
|
records: ConsentFlowContractDetailsValidator22.omit({ owner: true }).array()
|
|
@@ -29767,7 +29772,8 @@ var require_types_cjs_development2 = __commonJS22({
|
|
|
29767
29772
|
write: mod22.object({
|
|
29768
29773
|
credentials: mod22.object({ categories: mod22.record(mod22.boolean()).default({}) }).default({}),
|
|
29769
29774
|
personal: mod22.record(mod22.boolean()).default({})
|
|
29770
|
-
}).default({})
|
|
29775
|
+
}).default({}),
|
|
29776
|
+
deniedWriters: mod22.array(mod22.string()).optional()
|
|
29771
29777
|
});
|
|
29772
29778
|
var PaginatedConsentFlowTermsValidator22 = PaginationResponseValidator22.extend({
|
|
29773
29779
|
records: mod22.object({
|
|
@@ -33933,7 +33939,8 @@ var ConsentFlowContractDetailsValidator2 = mod2.object({
|
|
|
33933
33939
|
createdAt: mod2.string(),
|
|
33934
33940
|
updatedAt: mod2.string(),
|
|
33935
33941
|
expiresAt: mod2.string().optional(),
|
|
33936
|
-
autoBoosts: mod2.string().array().optional()
|
|
33942
|
+
autoBoosts: mod2.string().array().optional(),
|
|
33943
|
+
writers: mod2.array(LCNProfileValidator2).optional()
|
|
33937
33944
|
});
|
|
33938
33945
|
var PaginatedConsentFlowContractsValidator2 = PaginationResponseValidator2.extend({
|
|
33939
33946
|
records: ConsentFlowContractDetailsValidator2.omit({ owner: true }).array()
|
|
@@ -33974,7 +33981,8 @@ var ConsentFlowTermsValidator2 = mod2.object({
|
|
|
33974
33981
|
write: mod2.object({
|
|
33975
33982
|
credentials: mod2.object({ categories: mod2.record(mod2.boolean()).default({}) }).default({}),
|
|
33976
33983
|
personal: mod2.record(mod2.boolean()).default({})
|
|
33977
|
-
}).default({})
|
|
33984
|
+
}).default({}),
|
|
33985
|
+
deniedWriters: mod2.array(mod2.string()).optional()
|
|
33978
33986
|
});
|
|
33979
33987
|
var PaginatedConsentFlowTermsValidator2 = PaginationResponseValidator2.extend({
|
|
33980
33988
|
records: mod2.object({
|
|
@@ -75522,7 +75530,8 @@ var require_helpers_cjs_development = __commonJS6({
|
|
|
75522
75530
|
createdAt: mod22.string(),
|
|
75523
75531
|
updatedAt: mod22.string(),
|
|
75524
75532
|
expiresAt: mod22.string().optional(),
|
|
75525
|
-
autoBoosts: mod22.string().array().optional()
|
|
75533
|
+
autoBoosts: mod22.string().array().optional(),
|
|
75534
|
+
writers: mod22.array(LCNProfileValidator22).optional()
|
|
75526
75535
|
});
|
|
75527
75536
|
var PaginatedConsentFlowContractsValidator22 = PaginationResponseValidator22.extend({
|
|
75528
75537
|
records: ConsentFlowContractDetailsValidator22.omit({ owner: true }).array()
|
|
@@ -75563,7 +75572,8 @@ var require_helpers_cjs_development = __commonJS6({
|
|
|
75563
75572
|
write: mod22.object({
|
|
75564
75573
|
credentials: mod22.object({ categories: mod22.record(mod22.boolean()).default({}) }).default({}),
|
|
75565
75574
|
personal: mod22.record(mod22.boolean()).default({})
|
|
75566
|
-
}).default({})
|
|
75575
|
+
}).default({}),
|
|
75576
|
+
deniedWriters: mod22.array(mod22.string()).optional()
|
|
75567
75577
|
});
|
|
75568
75578
|
var PaginatedConsentFlowTermsValidator22 = PaginationResponseValidator22.extend({
|
|
75569
75579
|
records: mod22.object({
|
|
@@ -79852,7 +79862,8 @@ var ConsentFlowContractDetailsValidator3 = mod3.object({
|
|
|
79852
79862
|
createdAt: mod3.string(),
|
|
79853
79863
|
updatedAt: mod3.string(),
|
|
79854
79864
|
expiresAt: mod3.string().optional(),
|
|
79855
|
-
autoBoosts: mod3.string().array().optional()
|
|
79865
|
+
autoBoosts: mod3.string().array().optional(),
|
|
79866
|
+
writers: mod3.array(LCNProfileValidator3).optional()
|
|
79856
79867
|
});
|
|
79857
79868
|
var PaginatedConsentFlowContractsValidator3 = PaginationResponseValidator3.extend({
|
|
79858
79869
|
records: ConsentFlowContractDetailsValidator3.omit({ owner: true }).array()
|
|
@@ -79893,7 +79904,8 @@ var ConsentFlowTermsValidator3 = mod3.object({
|
|
|
79893
79904
|
write: mod3.object({
|
|
79894
79905
|
credentials: mod3.object({ categories: mod3.record(mod3.boolean()).default({}) }).default({}),
|
|
79895
79906
|
personal: mod3.record(mod3.boolean()).default({})
|
|
79896
|
-
}).default({})
|
|
79907
|
+
}).default({}),
|
|
79908
|
+
deniedWriters: mod3.array(mod3.string()).optional()
|
|
79897
79909
|
});
|
|
79898
79910
|
var PaginatedConsentFlowTermsValidator3 = PaginationResponseValidator3.extend({
|
|
79899
79911
|
records: mod3.object({
|
|
@@ -80637,6 +80649,19 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name14(async (learnCard, url)
|
|
|
80637
80649
|
throw new Error("Please make an account first!");
|
|
80638
80650
|
return client.contracts.createConsentFlowContract.mutate(contract);
|
|
80639
80651
|
},
|
|
80652
|
+
addAutoBoostsToContract: async (_learnCard, contractUri, autoboosts) => {
|
|
80653
|
+
if (!userData)
|
|
80654
|
+
throw new Error("Please make an account first!");
|
|
80655
|
+
return client.contracts.addAutoBoostsToContract.mutate({ contractUri, autoboosts });
|
|
80656
|
+
},
|
|
80657
|
+
removeAutoBoostsFromContract: async (_learnCard, contractUri, boostUris) => {
|
|
80658
|
+
if (!userData)
|
|
80659
|
+
throw new Error("Please make an account first!");
|
|
80660
|
+
return client.contracts.removeAutoBoostsFromContract.mutate({
|
|
80661
|
+
contractUri,
|
|
80662
|
+
boostUris
|
|
80663
|
+
});
|
|
80664
|
+
},
|
|
80640
80665
|
getContract: async (_learnCard, uri) => {
|
|
80641
80666
|
return client.contracts.getConsentFlowContract.query({ uri });
|
|
80642
80667
|
},
|
|
@@ -85101,7 +85126,8 @@ var ConsentFlowContractDetailsValidator4 = mod4.object({
|
|
|
85101
85126
|
createdAt: mod4.string(),
|
|
85102
85127
|
updatedAt: mod4.string(),
|
|
85103
85128
|
expiresAt: mod4.string().optional(),
|
|
85104
|
-
autoBoosts: mod4.string().array().optional()
|
|
85129
|
+
autoBoosts: mod4.string().array().optional(),
|
|
85130
|
+
writers: mod4.array(LCNProfileValidator4).optional()
|
|
85105
85131
|
});
|
|
85106
85132
|
var PaginatedConsentFlowContractsValidator4 = PaginationResponseValidator4.extend({
|
|
85107
85133
|
records: ConsentFlowContractDetailsValidator4.omit({ owner: true }).array()
|
|
@@ -85142,7 +85168,8 @@ var ConsentFlowTermsValidator4 = mod4.object({
|
|
|
85142
85168
|
write: mod4.object({
|
|
85143
85169
|
credentials: mod4.object({ categories: mod4.record(mod4.boolean()).default({}) }).default({}),
|
|
85144
85170
|
personal: mod4.record(mod4.boolean()).default({})
|
|
85145
|
-
}).default({})
|
|
85171
|
+
}).default({}),
|
|
85172
|
+
deniedWriters: mod4.array(mod4.string()).optional()
|
|
85146
85173
|
});
|
|
85147
85174
|
var PaginatedConsentFlowTermsValidator4 = PaginationResponseValidator4.extend({
|
|
85148
85175
|
records: mod4.object({
|