@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.
package/dist/init.esm.js
CHANGED
|
@@ -11296,7 +11296,8 @@ var ConsentFlowContractDetailsValidator = mod.object({
|
|
|
11296
11296
|
createdAt: mod.string(),
|
|
11297
11297
|
updatedAt: mod.string(),
|
|
11298
11298
|
expiresAt: mod.string().optional(),
|
|
11299
|
-
autoBoosts: mod.string().array().optional()
|
|
11299
|
+
autoBoosts: mod.string().array().optional(),
|
|
11300
|
+
writers: mod.array(LCNProfileValidator).optional()
|
|
11300
11301
|
});
|
|
11301
11302
|
var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
|
|
11302
11303
|
records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
|
|
@@ -11337,7 +11338,8 @@ var ConsentFlowTermsValidator = mod.object({
|
|
|
11337
11338
|
write: mod.object({
|
|
11338
11339
|
credentials: mod.object({ categories: mod.record(mod.boolean()).default({}) }).default({}),
|
|
11339
11340
|
personal: mod.record(mod.boolean()).default({})
|
|
11340
|
-
}).default({})
|
|
11341
|
+
}).default({}),
|
|
11342
|
+
deniedWriters: mod.array(mod.string()).optional()
|
|
11341
11343
|
});
|
|
11342
11344
|
var PaginatedConsentFlowTermsValidator = PaginationResponseValidator.extend({
|
|
11343
11345
|
records: mod.object({
|
|
@@ -17313,7 +17315,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17313
17315
|
createdAt: mod5.string(),
|
|
17314
17316
|
updatedAt: mod5.string(),
|
|
17315
17317
|
expiresAt: mod5.string().optional(),
|
|
17316
|
-
autoBoosts: mod5.string().array().optional()
|
|
17318
|
+
autoBoosts: mod5.string().array().optional(),
|
|
17319
|
+
writers: mod5.array(LCNProfileValidator5).optional()
|
|
17317
17320
|
});
|
|
17318
17321
|
var PaginatedConsentFlowContractsValidator5 = PaginationResponseValidator5.extend({
|
|
17319
17322
|
records: ConsentFlowContractDetailsValidator5.omit({ owner: true }).array()
|
|
@@ -17354,7 +17357,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17354
17357
|
write: mod5.object({
|
|
17355
17358
|
credentials: mod5.object({ categories: mod5.record(mod5.boolean()).default({}) }).default({}),
|
|
17356
17359
|
personal: mod5.record(mod5.boolean()).default({})
|
|
17357
|
-
}).default({})
|
|
17360
|
+
}).default({}),
|
|
17361
|
+
deniedWriters: mod5.array(mod5.string()).optional()
|
|
17358
17362
|
});
|
|
17359
17363
|
var PaginatedConsentFlowTermsValidator5 = PaginationResponseValidator5.extend({
|
|
17360
17364
|
records: mod5.object({
|
|
@@ -29688,7 +29692,8 @@ var require_types_cjs_development2 = __commonJS22({
|
|
|
29688
29692
|
createdAt: mod22.string(),
|
|
29689
29693
|
updatedAt: mod22.string(),
|
|
29690
29694
|
expiresAt: mod22.string().optional(),
|
|
29691
|
-
autoBoosts: mod22.string().array().optional()
|
|
29695
|
+
autoBoosts: mod22.string().array().optional(),
|
|
29696
|
+
writers: mod22.array(LCNProfileValidator22).optional()
|
|
29692
29697
|
});
|
|
29693
29698
|
var PaginatedConsentFlowContractsValidator22 = PaginationResponseValidator22.extend({
|
|
29694
29699
|
records: ConsentFlowContractDetailsValidator22.omit({ owner: true }).array()
|
|
@@ -29729,7 +29734,8 @@ var require_types_cjs_development2 = __commonJS22({
|
|
|
29729
29734
|
write: mod22.object({
|
|
29730
29735
|
credentials: mod22.object({ categories: mod22.record(mod22.boolean()).default({}) }).default({}),
|
|
29731
29736
|
personal: mod22.record(mod22.boolean()).default({})
|
|
29732
|
-
}).default({})
|
|
29737
|
+
}).default({}),
|
|
29738
|
+
deniedWriters: mod22.array(mod22.string()).optional()
|
|
29733
29739
|
});
|
|
29734
29740
|
var PaginatedConsentFlowTermsValidator22 = PaginationResponseValidator22.extend({
|
|
29735
29741
|
records: mod22.object({
|
|
@@ -33895,7 +33901,8 @@ var ConsentFlowContractDetailsValidator2 = mod2.object({
|
|
|
33895
33901
|
createdAt: mod2.string(),
|
|
33896
33902
|
updatedAt: mod2.string(),
|
|
33897
33903
|
expiresAt: mod2.string().optional(),
|
|
33898
|
-
autoBoosts: mod2.string().array().optional()
|
|
33904
|
+
autoBoosts: mod2.string().array().optional(),
|
|
33905
|
+
writers: mod2.array(LCNProfileValidator2).optional()
|
|
33899
33906
|
});
|
|
33900
33907
|
var PaginatedConsentFlowContractsValidator2 = PaginationResponseValidator2.extend({
|
|
33901
33908
|
records: ConsentFlowContractDetailsValidator2.omit({ owner: true }).array()
|
|
@@ -33936,7 +33943,8 @@ var ConsentFlowTermsValidator2 = mod2.object({
|
|
|
33936
33943
|
write: mod2.object({
|
|
33937
33944
|
credentials: mod2.object({ categories: mod2.record(mod2.boolean()).default({}) }).default({}),
|
|
33938
33945
|
personal: mod2.record(mod2.boolean()).default({})
|
|
33939
|
-
}).default({})
|
|
33946
|
+
}).default({}),
|
|
33947
|
+
deniedWriters: mod2.array(mod2.string()).optional()
|
|
33940
33948
|
});
|
|
33941
33949
|
var PaginatedConsentFlowTermsValidator2 = PaginationResponseValidator2.extend({
|
|
33942
33950
|
records: mod2.object({
|
|
@@ -75484,7 +75492,8 @@ var require_helpers_cjs_development = __commonJS6({
|
|
|
75484
75492
|
createdAt: mod22.string(),
|
|
75485
75493
|
updatedAt: mod22.string(),
|
|
75486
75494
|
expiresAt: mod22.string().optional(),
|
|
75487
|
-
autoBoosts: mod22.string().array().optional()
|
|
75495
|
+
autoBoosts: mod22.string().array().optional(),
|
|
75496
|
+
writers: mod22.array(LCNProfileValidator22).optional()
|
|
75488
75497
|
});
|
|
75489
75498
|
var PaginatedConsentFlowContractsValidator22 = PaginationResponseValidator22.extend({
|
|
75490
75499
|
records: ConsentFlowContractDetailsValidator22.omit({ owner: true }).array()
|
|
@@ -75525,7 +75534,8 @@ var require_helpers_cjs_development = __commonJS6({
|
|
|
75525
75534
|
write: mod22.object({
|
|
75526
75535
|
credentials: mod22.object({ categories: mod22.record(mod22.boolean()).default({}) }).default({}),
|
|
75527
75536
|
personal: mod22.record(mod22.boolean()).default({})
|
|
75528
|
-
}).default({})
|
|
75537
|
+
}).default({}),
|
|
75538
|
+
deniedWriters: mod22.array(mod22.string()).optional()
|
|
75529
75539
|
});
|
|
75530
75540
|
var PaginatedConsentFlowTermsValidator22 = PaginationResponseValidator22.extend({
|
|
75531
75541
|
records: mod22.object({
|
|
@@ -79814,7 +79824,8 @@ var ConsentFlowContractDetailsValidator3 = mod3.object({
|
|
|
79814
79824
|
createdAt: mod3.string(),
|
|
79815
79825
|
updatedAt: mod3.string(),
|
|
79816
79826
|
expiresAt: mod3.string().optional(),
|
|
79817
|
-
autoBoosts: mod3.string().array().optional()
|
|
79827
|
+
autoBoosts: mod3.string().array().optional(),
|
|
79828
|
+
writers: mod3.array(LCNProfileValidator3).optional()
|
|
79818
79829
|
});
|
|
79819
79830
|
var PaginatedConsentFlowContractsValidator3 = PaginationResponseValidator3.extend({
|
|
79820
79831
|
records: ConsentFlowContractDetailsValidator3.omit({ owner: true }).array()
|
|
@@ -79855,7 +79866,8 @@ var ConsentFlowTermsValidator3 = mod3.object({
|
|
|
79855
79866
|
write: mod3.object({
|
|
79856
79867
|
credentials: mod3.object({ categories: mod3.record(mod3.boolean()).default({}) }).default({}),
|
|
79857
79868
|
personal: mod3.record(mod3.boolean()).default({})
|
|
79858
|
-
}).default({})
|
|
79869
|
+
}).default({}),
|
|
79870
|
+
deniedWriters: mod3.array(mod3.string()).optional()
|
|
79859
79871
|
});
|
|
79860
79872
|
var PaginatedConsentFlowTermsValidator3 = PaginationResponseValidator3.extend({
|
|
79861
79873
|
records: mod3.object({
|
|
@@ -80599,6 +80611,19 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name14(async (learnCard, url)
|
|
|
80599
80611
|
throw new Error("Please make an account first!");
|
|
80600
80612
|
return client.contracts.createConsentFlowContract.mutate(contract);
|
|
80601
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
|
+
},
|
|
80602
80627
|
getContract: async (_learnCard, uri) => {
|
|
80603
80628
|
return client.contracts.getConsentFlowContract.query({ uri });
|
|
80604
80629
|
},
|
|
@@ -85063,7 +85088,8 @@ var ConsentFlowContractDetailsValidator4 = mod4.object({
|
|
|
85063
85088
|
createdAt: mod4.string(),
|
|
85064
85089
|
updatedAt: mod4.string(),
|
|
85065
85090
|
expiresAt: mod4.string().optional(),
|
|
85066
|
-
autoBoosts: mod4.string().array().optional()
|
|
85091
|
+
autoBoosts: mod4.string().array().optional(),
|
|
85092
|
+
writers: mod4.array(LCNProfileValidator4).optional()
|
|
85067
85093
|
});
|
|
85068
85094
|
var PaginatedConsentFlowContractsValidator4 = PaginationResponseValidator4.extend({
|
|
85069
85095
|
records: ConsentFlowContractDetailsValidator4.omit({ owner: true }).array()
|
|
@@ -85104,7 +85130,8 @@ var ConsentFlowTermsValidator4 = mod4.object({
|
|
|
85104
85130
|
write: mod4.object({
|
|
85105
85131
|
credentials: mod4.object({ categories: mod4.record(mod4.boolean()).default({}) }).default({}),
|
|
85106
85132
|
personal: mod4.record(mod4.boolean()).default({})
|
|
85107
|
-
}).default({})
|
|
85133
|
+
}).default({}),
|
|
85134
|
+
deniedWriters: mod4.array(mod4.string()).optional()
|
|
85108
85135
|
});
|
|
85109
85136
|
var PaginatedConsentFlowTermsValidator4 = PaginationResponseValidator4.extend({
|
|
85110
85137
|
records: mod4.object({
|