@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.
|
@@ -11136,7 +11136,9 @@ var LCNProfileValidator = mod.object({
|
|
|
11136
11136
|
isServiceProfile: mod.boolean().default(false).optional(),
|
|
11137
11137
|
type: mod.string().optional(),
|
|
11138
11138
|
notificationsWebhook: mod.string().url().startsWith("http").optional(),
|
|
11139
|
-
display: LCNProfileDisplayValidator.optional()
|
|
11139
|
+
display: LCNProfileDisplayValidator.optional(),
|
|
11140
|
+
role: mod.string().default("").optional(),
|
|
11141
|
+
dob: mod.string().default("").optional()
|
|
11140
11142
|
});
|
|
11141
11143
|
var LCNProfileQueryValidator = mod.object({
|
|
11142
11144
|
profileId: StringQuery,
|
|
@@ -11332,7 +11334,8 @@ var ConsentFlowContractDetailsValidator = mod.object({
|
|
|
11332
11334
|
createdAt: mod.string(),
|
|
11333
11335
|
updatedAt: mod.string(),
|
|
11334
11336
|
expiresAt: mod.string().optional(),
|
|
11335
|
-
autoBoosts: mod.string().array().optional()
|
|
11337
|
+
autoBoosts: mod.string().array().optional(),
|
|
11338
|
+
writers: mod.array(LCNProfileValidator).optional()
|
|
11336
11339
|
});
|
|
11337
11340
|
var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
|
|
11338
11341
|
records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
|
|
@@ -11373,7 +11376,8 @@ var ConsentFlowTermsValidator = mod.object({
|
|
|
11373
11376
|
write: mod.object({
|
|
11374
11377
|
credentials: mod.object({ categories: mod.record(mod.boolean()).default({}) }).default({}),
|
|
11375
11378
|
personal: mod.record(mod.boolean()).default({})
|
|
11376
|
-
}).default({})
|
|
11379
|
+
}).default({}),
|
|
11380
|
+
deniedWriters: mod.array(mod.string()).optional()
|
|
11377
11381
|
});
|
|
11378
11382
|
var PaginatedConsentFlowTermsValidator = PaginationResponseValidator.extend({
|
|
11379
11383
|
records: mod.object({
|
|
@@ -17151,7 +17155,9 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17151
17155
|
isServiceProfile: mod5.boolean().default(false).optional(),
|
|
17152
17156
|
type: mod5.string().optional(),
|
|
17153
17157
|
notificationsWebhook: mod5.string().url().startsWith("http").optional(),
|
|
17154
|
-
display: LCNProfileDisplayValidator5.optional()
|
|
17158
|
+
display: LCNProfileDisplayValidator5.optional(),
|
|
17159
|
+
role: mod5.string().default("").optional(),
|
|
17160
|
+
dob: mod5.string().default("").optional()
|
|
17155
17161
|
});
|
|
17156
17162
|
var LCNProfileQueryValidator5 = mod5.object({
|
|
17157
17163
|
profileId: StringQuery5,
|
|
@@ -17347,7 +17353,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17347
17353
|
createdAt: mod5.string(),
|
|
17348
17354
|
updatedAt: mod5.string(),
|
|
17349
17355
|
expiresAt: mod5.string().optional(),
|
|
17350
|
-
autoBoosts: mod5.string().array().optional()
|
|
17356
|
+
autoBoosts: mod5.string().array().optional(),
|
|
17357
|
+
writers: mod5.array(LCNProfileValidator5).optional()
|
|
17351
17358
|
});
|
|
17352
17359
|
var PaginatedConsentFlowContractsValidator5 = PaginationResponseValidator5.extend({
|
|
17353
17360
|
records: ConsentFlowContractDetailsValidator5.omit({ owner: true }).array()
|
|
@@ -17388,7 +17395,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17388
17395
|
write: mod5.object({
|
|
17389
17396
|
credentials: mod5.object({ categories: mod5.record(mod5.boolean()).default({}) }).default({}),
|
|
17390
17397
|
personal: mod5.record(mod5.boolean()).default({})
|
|
17391
|
-
}).default({})
|
|
17398
|
+
}).default({}),
|
|
17399
|
+
deniedWriters: mod5.array(mod5.string()).optional()
|
|
17392
17400
|
});
|
|
17393
17401
|
var PaginatedConsentFlowTermsValidator5 = PaginationResponseValidator5.extend({
|
|
17394
17402
|
records: mod5.object({
|
|
@@ -29524,7 +29532,9 @@ var require_types_cjs_development2 = __commonJS22({
|
|
|
29524
29532
|
isServiceProfile: mod22.boolean().default(false).optional(),
|
|
29525
29533
|
type: mod22.string().optional(),
|
|
29526
29534
|
notificationsWebhook: mod22.string().url().startsWith("http").optional(),
|
|
29527
|
-
display: LCNProfileDisplayValidator22.optional()
|
|
29535
|
+
display: LCNProfileDisplayValidator22.optional(),
|
|
29536
|
+
role: mod22.string().default("").optional(),
|
|
29537
|
+
dob: mod22.string().default("").optional()
|
|
29528
29538
|
});
|
|
29529
29539
|
var LCNProfileQueryValidator22 = mod22.object({
|
|
29530
29540
|
profileId: StringQuery22,
|
|
@@ -29720,7 +29730,8 @@ var require_types_cjs_development2 = __commonJS22({
|
|
|
29720
29730
|
createdAt: mod22.string(),
|
|
29721
29731
|
updatedAt: mod22.string(),
|
|
29722
29732
|
expiresAt: mod22.string().optional(),
|
|
29723
|
-
autoBoosts: mod22.string().array().optional()
|
|
29733
|
+
autoBoosts: mod22.string().array().optional(),
|
|
29734
|
+
writers: mod22.array(LCNProfileValidator22).optional()
|
|
29724
29735
|
});
|
|
29725
29736
|
var PaginatedConsentFlowContractsValidator22 = PaginationResponseValidator22.extend({
|
|
29726
29737
|
records: ConsentFlowContractDetailsValidator22.omit({ owner: true }).array()
|
|
@@ -29761,7 +29772,8 @@ var require_types_cjs_development2 = __commonJS22({
|
|
|
29761
29772
|
write: mod22.object({
|
|
29762
29773
|
credentials: mod22.object({ categories: mod22.record(mod22.boolean()).default({}) }).default({}),
|
|
29763
29774
|
personal: mod22.record(mod22.boolean()).default({})
|
|
29764
|
-
}).default({})
|
|
29775
|
+
}).default({}),
|
|
29776
|
+
deniedWriters: mod22.array(mod22.string()).optional()
|
|
29765
29777
|
});
|
|
29766
29778
|
var PaginatedConsentFlowTermsValidator22 = PaginationResponseValidator22.extend({
|
|
29767
29779
|
records: mod22.object({
|
|
@@ -33729,7 +33741,9 @@ var LCNProfileValidator2 = mod2.object({
|
|
|
33729
33741
|
isServiceProfile: mod2.boolean().default(false).optional(),
|
|
33730
33742
|
type: mod2.string().optional(),
|
|
33731
33743
|
notificationsWebhook: mod2.string().url().startsWith("http").optional(),
|
|
33732
|
-
display: LCNProfileDisplayValidator2.optional()
|
|
33744
|
+
display: LCNProfileDisplayValidator2.optional(),
|
|
33745
|
+
role: mod2.string().default("").optional(),
|
|
33746
|
+
dob: mod2.string().default("").optional()
|
|
33733
33747
|
});
|
|
33734
33748
|
var LCNProfileQueryValidator2 = mod2.object({
|
|
33735
33749
|
profileId: StringQuery2,
|
|
@@ -33925,7 +33939,8 @@ var ConsentFlowContractDetailsValidator2 = mod2.object({
|
|
|
33925
33939
|
createdAt: mod2.string(),
|
|
33926
33940
|
updatedAt: mod2.string(),
|
|
33927
33941
|
expiresAt: mod2.string().optional(),
|
|
33928
|
-
autoBoosts: mod2.string().array().optional()
|
|
33942
|
+
autoBoosts: mod2.string().array().optional(),
|
|
33943
|
+
writers: mod2.array(LCNProfileValidator2).optional()
|
|
33929
33944
|
});
|
|
33930
33945
|
var PaginatedConsentFlowContractsValidator2 = PaginationResponseValidator2.extend({
|
|
33931
33946
|
records: ConsentFlowContractDetailsValidator2.omit({ owner: true }).array()
|
|
@@ -33966,7 +33981,8 @@ var ConsentFlowTermsValidator2 = mod2.object({
|
|
|
33966
33981
|
write: mod2.object({
|
|
33967
33982
|
credentials: mod2.object({ categories: mod2.record(mod2.boolean()).default({}) }).default({}),
|
|
33968
33983
|
personal: mod2.record(mod2.boolean()).default({})
|
|
33969
|
-
}).default({})
|
|
33984
|
+
}).default({}),
|
|
33985
|
+
deniedWriters: mod2.array(mod2.string()).optional()
|
|
33970
33986
|
});
|
|
33971
33987
|
var PaginatedConsentFlowTermsValidator2 = PaginationResponseValidator2.extend({
|
|
33972
33988
|
records: mod2.object({
|
|
@@ -75316,7 +75332,9 @@ var require_helpers_cjs_development = __commonJS6({
|
|
|
75316
75332
|
isServiceProfile: mod22.boolean().default(false).optional(),
|
|
75317
75333
|
type: mod22.string().optional(),
|
|
75318
75334
|
notificationsWebhook: mod22.string().url().startsWith("http").optional(),
|
|
75319
|
-
display: LCNProfileDisplayValidator22.optional()
|
|
75335
|
+
display: LCNProfileDisplayValidator22.optional(),
|
|
75336
|
+
role: mod22.string().default("").optional(),
|
|
75337
|
+
dob: mod22.string().default("").optional()
|
|
75320
75338
|
});
|
|
75321
75339
|
var LCNProfileQueryValidator22 = mod22.object({
|
|
75322
75340
|
profileId: StringQuery22,
|
|
@@ -75512,7 +75530,8 @@ var require_helpers_cjs_development = __commonJS6({
|
|
|
75512
75530
|
createdAt: mod22.string(),
|
|
75513
75531
|
updatedAt: mod22.string(),
|
|
75514
75532
|
expiresAt: mod22.string().optional(),
|
|
75515
|
-
autoBoosts: mod22.string().array().optional()
|
|
75533
|
+
autoBoosts: mod22.string().array().optional(),
|
|
75534
|
+
writers: mod22.array(LCNProfileValidator22).optional()
|
|
75516
75535
|
});
|
|
75517
75536
|
var PaginatedConsentFlowContractsValidator22 = PaginationResponseValidator22.extend({
|
|
75518
75537
|
records: ConsentFlowContractDetailsValidator22.omit({ owner: true }).array()
|
|
@@ -75553,7 +75572,8 @@ var require_helpers_cjs_development = __commonJS6({
|
|
|
75553
75572
|
write: mod22.object({
|
|
75554
75573
|
credentials: mod22.object({ categories: mod22.record(mod22.boolean()).default({}) }).default({}),
|
|
75555
75574
|
personal: mod22.record(mod22.boolean()).default({})
|
|
75556
|
-
}).default({})
|
|
75575
|
+
}).default({}),
|
|
75576
|
+
deniedWriters: mod22.array(mod22.string()).optional()
|
|
75557
75577
|
});
|
|
75558
75578
|
var PaginatedConsentFlowTermsValidator22 = PaginationResponseValidator22.extend({
|
|
75559
75579
|
records: mod22.object({
|
|
@@ -79644,7 +79664,9 @@ var LCNProfileValidator3 = mod3.object({
|
|
|
79644
79664
|
isServiceProfile: mod3.boolean().default(false).optional(),
|
|
79645
79665
|
type: mod3.string().optional(),
|
|
79646
79666
|
notificationsWebhook: mod3.string().url().startsWith("http").optional(),
|
|
79647
|
-
display: LCNProfileDisplayValidator3.optional()
|
|
79667
|
+
display: LCNProfileDisplayValidator3.optional(),
|
|
79668
|
+
role: mod3.string().default("").optional(),
|
|
79669
|
+
dob: mod3.string().default("").optional()
|
|
79648
79670
|
});
|
|
79649
79671
|
var LCNProfileQueryValidator3 = mod3.object({
|
|
79650
79672
|
profileId: StringQuery3,
|
|
@@ -79840,7 +79862,8 @@ var ConsentFlowContractDetailsValidator3 = mod3.object({
|
|
|
79840
79862
|
createdAt: mod3.string(),
|
|
79841
79863
|
updatedAt: mod3.string(),
|
|
79842
79864
|
expiresAt: mod3.string().optional(),
|
|
79843
|
-
autoBoosts: mod3.string().array().optional()
|
|
79865
|
+
autoBoosts: mod3.string().array().optional(),
|
|
79866
|
+
writers: mod3.array(LCNProfileValidator3).optional()
|
|
79844
79867
|
});
|
|
79845
79868
|
var PaginatedConsentFlowContractsValidator3 = PaginationResponseValidator3.extend({
|
|
79846
79869
|
records: ConsentFlowContractDetailsValidator3.omit({ owner: true }).array()
|
|
@@ -79881,7 +79904,8 @@ var ConsentFlowTermsValidator3 = mod3.object({
|
|
|
79881
79904
|
write: mod3.object({
|
|
79882
79905
|
credentials: mod3.object({ categories: mod3.record(mod3.boolean()).default({}) }).default({}),
|
|
79883
79906
|
personal: mod3.record(mod3.boolean()).default({})
|
|
79884
|
-
}).default({})
|
|
79907
|
+
}).default({}),
|
|
79908
|
+
deniedWriters: mod3.array(mod3.string()).optional()
|
|
79885
79909
|
});
|
|
79886
79910
|
var PaginatedConsentFlowTermsValidator3 = PaginationResponseValidator3.extend({
|
|
79887
79911
|
records: mod3.object({
|
|
@@ -80625,6 +80649,19 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name14(async (learnCard, url)
|
|
|
80625
80649
|
throw new Error("Please make an account first!");
|
|
80626
80650
|
return client.contracts.createConsentFlowContract.mutate(contract);
|
|
80627
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
|
+
},
|
|
80628
80665
|
getContract: async (_learnCard, uri) => {
|
|
80629
80666
|
return client.contracts.getConsentFlowContract.query({ uri });
|
|
80630
80667
|
},
|
|
@@ -84891,7 +84928,9 @@ var LCNProfileValidator4 = mod4.object({
|
|
|
84891
84928
|
isServiceProfile: mod4.boolean().default(false).optional(),
|
|
84892
84929
|
type: mod4.string().optional(),
|
|
84893
84930
|
notificationsWebhook: mod4.string().url().startsWith("http").optional(),
|
|
84894
|
-
display: LCNProfileDisplayValidator4.optional()
|
|
84931
|
+
display: LCNProfileDisplayValidator4.optional(),
|
|
84932
|
+
role: mod4.string().default("").optional(),
|
|
84933
|
+
dob: mod4.string().default("").optional()
|
|
84895
84934
|
});
|
|
84896
84935
|
var LCNProfileQueryValidator4 = mod4.object({
|
|
84897
84936
|
profileId: StringQuery4,
|
|
@@ -85087,7 +85126,8 @@ var ConsentFlowContractDetailsValidator4 = mod4.object({
|
|
|
85087
85126
|
createdAt: mod4.string(),
|
|
85088
85127
|
updatedAt: mod4.string(),
|
|
85089
85128
|
expiresAt: mod4.string().optional(),
|
|
85090
|
-
autoBoosts: mod4.string().array().optional()
|
|
85129
|
+
autoBoosts: mod4.string().array().optional(),
|
|
85130
|
+
writers: mod4.array(LCNProfileValidator4).optional()
|
|
85091
85131
|
});
|
|
85092
85132
|
var PaginatedConsentFlowContractsValidator4 = PaginationResponseValidator4.extend({
|
|
85093
85133
|
records: ConsentFlowContractDetailsValidator4.omit({ owner: true }).array()
|
|
@@ -85128,7 +85168,8 @@ var ConsentFlowTermsValidator4 = mod4.object({
|
|
|
85128
85168
|
write: mod4.object({
|
|
85129
85169
|
credentials: mod4.object({ categories: mod4.record(mod4.boolean()).default({}) }).default({}),
|
|
85130
85170
|
personal: mod4.record(mod4.boolean()).default({})
|
|
85131
|
-
}).default({})
|
|
85171
|
+
}).default({}),
|
|
85172
|
+
deniedWriters: mod4.array(mod4.string()).optional()
|
|
85132
85173
|
});
|
|
85133
85174
|
var PaginatedConsentFlowTermsValidator4 = PaginationResponseValidator4.extend({
|
|
85134
85175
|
records: mod4.object({
|