@learncard/init 2.0.12 → 2.0.14
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.cjs.development.js +181 -130
- package/dist/init.cjs.development.js.map +2 -2
- package/dist/init.cjs.production.min.js +13 -13
- package/dist/init.cjs.production.min.js.map +3 -3
- package/dist/init.esm.js +181 -130
- package/dist/init.esm.js.map +2 -2
- package/package.json +20 -20
|
@@ -5166,10 +5166,34 @@ var getDidKitPlugin = /* @__PURE__ */ __name3(async (input, allowRemoteContexts
|
|
|
5166
5166
|
jwks.map((jwk) => JSON.stringify(jwk))
|
|
5167
5167
|
),
|
|
5168
5168
|
createDagJwe: async (_learnCard, cleartext, recipients) => JSON.parse(await createDagJwe(cleartext, recipients)),
|
|
5169
|
-
decryptDagJwe: async (_learnCard, jwe, jwks) =>
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5169
|
+
decryptDagJwe: async (_learnCard, jwe, jwks) => {
|
|
5170
|
+
const convertBigIntsToNumbers = /* @__PURE__ */ __name3((obj) => {
|
|
5171
|
+
if (obj === null || obj === void 0)
|
|
5172
|
+
return obj;
|
|
5173
|
+
if (typeof obj === "bigint")
|
|
5174
|
+
return Number(obj);
|
|
5175
|
+
if (Array.isArray(obj))
|
|
5176
|
+
return obj.map(convertBigIntsToNumbers);
|
|
5177
|
+
if (typeof obj !== "object")
|
|
5178
|
+
return obj;
|
|
5179
|
+
const hasNestedObjects = Object.values(obj).some(
|
|
5180
|
+
(val) => typeof val === "bigint" || typeof val === "object" && val !== null
|
|
5181
|
+
);
|
|
5182
|
+
if (!hasNestedObjects)
|
|
5183
|
+
return obj;
|
|
5184
|
+
const result = {};
|
|
5185
|
+
for (const key2 in obj) {
|
|
5186
|
+
result[key2] = convertBigIntsToNumbers(obj[key2]);
|
|
5187
|
+
}
|
|
5188
|
+
return result;
|
|
5189
|
+
}, "convertBigIntsToNumbers");
|
|
5190
|
+
return convertBigIntsToNumbers(
|
|
5191
|
+
await decryptDagJwe(
|
|
5192
|
+
JSON.stringify(jwe),
|
|
5193
|
+
jwks.map((jwk) => JSON.stringify(jwk))
|
|
5194
|
+
)
|
|
5195
|
+
);
|
|
5196
|
+
},
|
|
5173
5197
|
clearDidWebCache: async () => {
|
|
5174
5198
|
await clearCache();
|
|
5175
5199
|
}
|
|
@@ -11123,22 +11147,22 @@ var LCNProfileDisplayValidator = mod.object({
|
|
|
11123
11147
|
repeatIdBackgroundImage: mod.boolean().optional()
|
|
11124
11148
|
});
|
|
11125
11149
|
var LCNProfileValidator = mod.object({
|
|
11126
|
-
profileId: mod.string().min(3).max(40),
|
|
11127
|
-
displayName: mod.string().default(""),
|
|
11128
|
-
shortBio: mod.string().default(""),
|
|
11129
|
-
bio: mod.string().default(""),
|
|
11130
|
-
did: mod.string(),
|
|
11131
|
-
isPrivate: mod.boolean().optional(),
|
|
11132
|
-
email: mod.string().optional(),
|
|
11133
|
-
image: mod.string().optional(),
|
|
11134
|
-
heroImage: mod.string().optional(),
|
|
11135
|
-
websiteLink: mod.string().optional(),
|
|
11136
|
-
isServiceProfile: mod.boolean().default(false).optional(),
|
|
11137
|
-
type: mod.string().optional(),
|
|
11138
|
-
notificationsWebhook: mod.string().url().startsWith("http").optional(),
|
|
11139
|
-
display: LCNProfileDisplayValidator.optional(),
|
|
11140
|
-
role: mod.string().default("").optional(),
|
|
11141
|
-
dob: mod.string().default("").optional()
|
|
11150
|
+
profileId: mod.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),
|
|
11151
|
+
displayName: mod.string().default("").describe("Human-readable display name for the profile."),
|
|
11152
|
+
shortBio: mod.string().default("").describe("Short bio for the profile."),
|
|
11153
|
+
bio: mod.string().default("").describe("Longer bio for the profile."),
|
|
11154
|
+
did: mod.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),
|
|
11155
|
+
isPrivate: mod.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),
|
|
11156
|
+
email: mod.string().optional().describe("Contact email address for the profile."),
|
|
11157
|
+
image: mod.string().optional().describe("Profile image URL for the profile."),
|
|
11158
|
+
heroImage: mod.string().optional().describe("Hero image URL for the profile."),
|
|
11159
|
+
websiteLink: mod.string().optional().describe("Website link for the profile."),
|
|
11160
|
+
isServiceProfile: mod.boolean().default(false).optional().describe("Whether the profile is a service profile or not."),
|
|
11161
|
+
type: mod.string().optional().describe('Profile type: e.g. "person", "organization", "service".'),
|
|
11162
|
+
notificationsWebhook: mod.string().url().startsWith("http").optional().describe("URL to send notifications to."),
|
|
11163
|
+
display: LCNProfileDisplayValidator.optional().describe("Display settings for the profile."),
|
|
11164
|
+
role: mod.string().default("").optional().describe('Role of the profile: e.g. "teacher", "student".'),
|
|
11165
|
+
dob: mod.string().default("").optional().describe('Date of birth of the profile: e.g. "1990-01-01".')
|
|
11142
11166
|
});
|
|
11143
11167
|
var LCNProfileQueryValidator = mod.object({
|
|
11144
11168
|
profileId: StringQuery,
|
|
@@ -11334,7 +11358,8 @@ var ConsentFlowContractDetailsValidator = mod.object({
|
|
|
11334
11358
|
createdAt: mod.string(),
|
|
11335
11359
|
updatedAt: mod.string(),
|
|
11336
11360
|
expiresAt: mod.string().optional(),
|
|
11337
|
-
autoBoosts: mod.string().array().optional()
|
|
11361
|
+
autoBoosts: mod.string().array().optional(),
|
|
11362
|
+
writers: mod.array(LCNProfileValidator).optional()
|
|
11338
11363
|
});
|
|
11339
11364
|
var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
|
|
11340
11365
|
records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
|
|
@@ -11375,7 +11400,8 @@ var ConsentFlowTermsValidator = mod.object({
|
|
|
11375
11400
|
write: mod.object({
|
|
11376
11401
|
credentials: mod.object({ categories: mod.record(mod.boolean()).default({}) }).default({}),
|
|
11377
11402
|
personal: mod.record(mod.boolean()).default({})
|
|
11378
|
-
}).default({})
|
|
11403
|
+
}).default({}),
|
|
11404
|
+
deniedWriters: mod.array(mod.string()).optional()
|
|
11379
11405
|
});
|
|
11380
11406
|
var PaginatedConsentFlowTermsValidator = PaginationResponseValidator.extend({
|
|
11381
11407
|
records: mod.object({
|
|
@@ -17140,22 +17166,22 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17140
17166
|
repeatIdBackgroundImage: mod5.boolean().optional()
|
|
17141
17167
|
});
|
|
17142
17168
|
var LCNProfileValidator5 = mod5.object({
|
|
17143
|
-
profileId: mod5.string().min(3).max(40),
|
|
17144
|
-
displayName: mod5.string().default(""),
|
|
17145
|
-
shortBio: mod5.string().default(""),
|
|
17146
|
-
bio: mod5.string().default(""),
|
|
17147
|
-
did: mod5.string(),
|
|
17148
|
-
isPrivate: mod5.boolean().optional(),
|
|
17149
|
-
email: mod5.string().optional(),
|
|
17150
|
-
image: mod5.string().optional(),
|
|
17151
|
-
heroImage: mod5.string().optional(),
|
|
17152
|
-
websiteLink: mod5.string().optional(),
|
|
17153
|
-
isServiceProfile: mod5.boolean().default(false).optional(),
|
|
17154
|
-
type: mod5.string().optional(),
|
|
17155
|
-
notificationsWebhook: mod5.string().url().startsWith("http").optional(),
|
|
17156
|
-
display: LCNProfileDisplayValidator5.optional(),
|
|
17157
|
-
role: mod5.string().default("").optional(),
|
|
17158
|
-
dob: mod5.string().default("").optional()
|
|
17169
|
+
profileId: mod5.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),
|
|
17170
|
+
displayName: mod5.string().default("").describe("Human-readable display name for the profile."),
|
|
17171
|
+
shortBio: mod5.string().default("").describe("Short bio for the profile."),
|
|
17172
|
+
bio: mod5.string().default("").describe("Longer bio for the profile."),
|
|
17173
|
+
did: mod5.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),
|
|
17174
|
+
isPrivate: mod5.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),
|
|
17175
|
+
email: mod5.string().optional().describe("Contact email address for the profile."),
|
|
17176
|
+
image: mod5.string().optional().describe("Profile image URL for the profile."),
|
|
17177
|
+
heroImage: mod5.string().optional().describe("Hero image URL for the profile."),
|
|
17178
|
+
websiteLink: mod5.string().optional().describe("Website link for the profile."),
|
|
17179
|
+
isServiceProfile: mod5.boolean().default(false).optional().describe("Whether the profile is a service profile or not."),
|
|
17180
|
+
type: mod5.string().optional().describe('Profile type: e.g. "person", "organization", "service".'),
|
|
17181
|
+
notificationsWebhook: mod5.string().url().startsWith("http").optional().describe("URL to send notifications to."),
|
|
17182
|
+
display: LCNProfileDisplayValidator5.optional().describe("Display settings for the profile."),
|
|
17183
|
+
role: mod5.string().default("").optional().describe('Role of the profile: e.g. "teacher", "student".'),
|
|
17184
|
+
dob: mod5.string().default("").optional().describe('Date of birth of the profile: e.g. "1990-01-01".')
|
|
17159
17185
|
});
|
|
17160
17186
|
var LCNProfileQueryValidator5 = mod5.object({
|
|
17161
17187
|
profileId: StringQuery5,
|
|
@@ -17351,7 +17377,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17351
17377
|
createdAt: mod5.string(),
|
|
17352
17378
|
updatedAt: mod5.string(),
|
|
17353
17379
|
expiresAt: mod5.string().optional(),
|
|
17354
|
-
autoBoosts: mod5.string().array().optional()
|
|
17380
|
+
autoBoosts: mod5.string().array().optional(),
|
|
17381
|
+
writers: mod5.array(LCNProfileValidator5).optional()
|
|
17355
17382
|
});
|
|
17356
17383
|
var PaginatedConsentFlowContractsValidator5 = PaginationResponseValidator5.extend({
|
|
17357
17384
|
records: ConsentFlowContractDetailsValidator5.omit({ owner: true }).array()
|
|
@@ -17392,7 +17419,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17392
17419
|
write: mod5.object({
|
|
17393
17420
|
credentials: mod5.object({ categories: mod5.record(mod5.boolean()).default({}) }).default({}),
|
|
17394
17421
|
personal: mod5.record(mod5.boolean()).default({})
|
|
17395
|
-
}).default({})
|
|
17422
|
+
}).default({}),
|
|
17423
|
+
deniedWriters: mod5.array(mod5.string()).optional()
|
|
17396
17424
|
});
|
|
17397
17425
|
var PaginatedConsentFlowTermsValidator5 = PaginationResponseValidator5.extend({
|
|
17398
17426
|
records: mod5.object({
|
|
@@ -29515,22 +29543,22 @@ var require_types_cjs_development2 = __commonJS22({
|
|
|
29515
29543
|
repeatIdBackgroundImage: mod22.boolean().optional()
|
|
29516
29544
|
});
|
|
29517
29545
|
var LCNProfileValidator22 = mod22.object({
|
|
29518
|
-
profileId: mod22.string().min(3).max(40),
|
|
29519
|
-
displayName: mod22.string().default(""),
|
|
29520
|
-
shortBio: mod22.string().default(""),
|
|
29521
|
-
bio: mod22.string().default(""),
|
|
29522
|
-
did: mod22.string(),
|
|
29523
|
-
isPrivate: mod22.boolean().optional(),
|
|
29524
|
-
email: mod22.string().optional(),
|
|
29525
|
-
image: mod22.string().optional(),
|
|
29526
|
-
heroImage: mod22.string().optional(),
|
|
29527
|
-
websiteLink: mod22.string().optional(),
|
|
29528
|
-
isServiceProfile: mod22.boolean().default(false).optional(),
|
|
29529
|
-
type: mod22.string().optional(),
|
|
29530
|
-
notificationsWebhook: mod22.string().url().startsWith("http").optional(),
|
|
29531
|
-
display: LCNProfileDisplayValidator22.optional(),
|
|
29532
|
-
role: mod22.string().default("").optional(),
|
|
29533
|
-
dob: mod22.string().default("").optional()
|
|
29546
|
+
profileId: mod22.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),
|
|
29547
|
+
displayName: mod22.string().default("").describe("Human-readable display name for the profile."),
|
|
29548
|
+
shortBio: mod22.string().default("").describe("Short bio for the profile."),
|
|
29549
|
+
bio: mod22.string().default("").describe("Longer bio for the profile."),
|
|
29550
|
+
did: mod22.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),
|
|
29551
|
+
isPrivate: mod22.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),
|
|
29552
|
+
email: mod22.string().optional().describe("Contact email address for the profile."),
|
|
29553
|
+
image: mod22.string().optional().describe("Profile image URL for the profile."),
|
|
29554
|
+
heroImage: mod22.string().optional().describe("Hero image URL for the profile."),
|
|
29555
|
+
websiteLink: mod22.string().optional().describe("Website link for the profile."),
|
|
29556
|
+
isServiceProfile: mod22.boolean().default(false).optional().describe("Whether the profile is a service profile or not."),
|
|
29557
|
+
type: mod22.string().optional().describe('Profile type: e.g. "person", "organization", "service".'),
|
|
29558
|
+
notificationsWebhook: mod22.string().url().startsWith("http").optional().describe("URL to send notifications to."),
|
|
29559
|
+
display: LCNProfileDisplayValidator22.optional().describe("Display settings for the profile."),
|
|
29560
|
+
role: mod22.string().default("").optional().describe('Role of the profile: e.g. "teacher", "student".'),
|
|
29561
|
+
dob: mod22.string().default("").optional().describe('Date of birth of the profile: e.g. "1990-01-01".')
|
|
29534
29562
|
});
|
|
29535
29563
|
var LCNProfileQueryValidator22 = mod22.object({
|
|
29536
29564
|
profileId: StringQuery22,
|
|
@@ -29726,7 +29754,8 @@ var require_types_cjs_development2 = __commonJS22({
|
|
|
29726
29754
|
createdAt: mod22.string(),
|
|
29727
29755
|
updatedAt: mod22.string(),
|
|
29728
29756
|
expiresAt: mod22.string().optional(),
|
|
29729
|
-
autoBoosts: mod22.string().array().optional()
|
|
29757
|
+
autoBoosts: mod22.string().array().optional(),
|
|
29758
|
+
writers: mod22.array(LCNProfileValidator22).optional()
|
|
29730
29759
|
});
|
|
29731
29760
|
var PaginatedConsentFlowContractsValidator22 = PaginationResponseValidator22.extend({
|
|
29732
29761
|
records: ConsentFlowContractDetailsValidator22.omit({ owner: true }).array()
|
|
@@ -29767,7 +29796,8 @@ var require_types_cjs_development2 = __commonJS22({
|
|
|
29767
29796
|
write: mod22.object({
|
|
29768
29797
|
credentials: mod22.object({ categories: mod22.record(mod22.boolean()).default({}) }).default({}),
|
|
29769
29798
|
personal: mod22.record(mod22.boolean()).default({})
|
|
29770
|
-
}).default({})
|
|
29799
|
+
}).default({}),
|
|
29800
|
+
deniedWriters: mod22.array(mod22.string()).optional()
|
|
29771
29801
|
});
|
|
29772
29802
|
var PaginatedConsentFlowTermsValidator22 = PaginationResponseValidator22.extend({
|
|
29773
29803
|
records: mod22.object({
|
|
@@ -33722,22 +33752,22 @@ var LCNProfileDisplayValidator2 = mod2.object({
|
|
|
33722
33752
|
repeatIdBackgroundImage: mod2.boolean().optional()
|
|
33723
33753
|
});
|
|
33724
33754
|
var LCNProfileValidator2 = mod2.object({
|
|
33725
|
-
profileId: mod2.string().min(3).max(40),
|
|
33726
|
-
displayName: mod2.string().default(""),
|
|
33727
|
-
shortBio: mod2.string().default(""),
|
|
33728
|
-
bio: mod2.string().default(""),
|
|
33729
|
-
did: mod2.string(),
|
|
33730
|
-
isPrivate: mod2.boolean().optional(),
|
|
33731
|
-
email: mod2.string().optional(),
|
|
33732
|
-
image: mod2.string().optional(),
|
|
33733
|
-
heroImage: mod2.string().optional(),
|
|
33734
|
-
websiteLink: mod2.string().optional(),
|
|
33735
|
-
isServiceProfile: mod2.boolean().default(false).optional(),
|
|
33736
|
-
type: mod2.string().optional(),
|
|
33737
|
-
notificationsWebhook: mod2.string().url().startsWith("http").optional(),
|
|
33738
|
-
display: LCNProfileDisplayValidator2.optional(),
|
|
33739
|
-
role: mod2.string().default("").optional(),
|
|
33740
|
-
dob: mod2.string().default("").optional()
|
|
33755
|
+
profileId: mod2.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),
|
|
33756
|
+
displayName: mod2.string().default("").describe("Human-readable display name for the profile."),
|
|
33757
|
+
shortBio: mod2.string().default("").describe("Short bio for the profile."),
|
|
33758
|
+
bio: mod2.string().default("").describe("Longer bio for the profile."),
|
|
33759
|
+
did: mod2.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),
|
|
33760
|
+
isPrivate: mod2.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),
|
|
33761
|
+
email: mod2.string().optional().describe("Contact email address for the profile."),
|
|
33762
|
+
image: mod2.string().optional().describe("Profile image URL for the profile."),
|
|
33763
|
+
heroImage: mod2.string().optional().describe("Hero image URL for the profile."),
|
|
33764
|
+
websiteLink: mod2.string().optional().describe("Website link for the profile."),
|
|
33765
|
+
isServiceProfile: mod2.boolean().default(false).optional().describe("Whether the profile is a service profile or not."),
|
|
33766
|
+
type: mod2.string().optional().describe('Profile type: e.g. "person", "organization", "service".'),
|
|
33767
|
+
notificationsWebhook: mod2.string().url().startsWith("http").optional().describe("URL to send notifications to."),
|
|
33768
|
+
display: LCNProfileDisplayValidator2.optional().describe("Display settings for the profile."),
|
|
33769
|
+
role: mod2.string().default("").optional().describe('Role of the profile: e.g. "teacher", "student".'),
|
|
33770
|
+
dob: mod2.string().default("").optional().describe('Date of birth of the profile: e.g. "1990-01-01".')
|
|
33741
33771
|
});
|
|
33742
33772
|
var LCNProfileQueryValidator2 = mod2.object({
|
|
33743
33773
|
profileId: StringQuery2,
|
|
@@ -33933,7 +33963,8 @@ var ConsentFlowContractDetailsValidator2 = mod2.object({
|
|
|
33933
33963
|
createdAt: mod2.string(),
|
|
33934
33964
|
updatedAt: mod2.string(),
|
|
33935
33965
|
expiresAt: mod2.string().optional(),
|
|
33936
|
-
autoBoosts: mod2.string().array().optional()
|
|
33966
|
+
autoBoosts: mod2.string().array().optional(),
|
|
33967
|
+
writers: mod2.array(LCNProfileValidator2).optional()
|
|
33937
33968
|
});
|
|
33938
33969
|
var PaginatedConsentFlowContractsValidator2 = PaginationResponseValidator2.extend({
|
|
33939
33970
|
records: ConsentFlowContractDetailsValidator2.omit({ owner: true }).array()
|
|
@@ -33974,7 +34005,8 @@ var ConsentFlowTermsValidator2 = mod2.object({
|
|
|
33974
34005
|
write: mod2.object({
|
|
33975
34006
|
credentials: mod2.object({ categories: mod2.record(mod2.boolean()).default({}) }).default({}),
|
|
33976
34007
|
personal: mod2.record(mod2.boolean()).default({})
|
|
33977
|
-
}).default({})
|
|
34008
|
+
}).default({}),
|
|
34009
|
+
deniedWriters: mod2.array(mod2.string()).optional()
|
|
33978
34010
|
});
|
|
33979
34011
|
var PaginatedConsentFlowTermsValidator2 = PaginationResponseValidator2.extend({
|
|
33980
34012
|
records: mod2.object({
|
|
@@ -75311,22 +75343,22 @@ var require_helpers_cjs_development = __commonJS6({
|
|
|
75311
75343
|
repeatIdBackgroundImage: mod22.boolean().optional()
|
|
75312
75344
|
});
|
|
75313
75345
|
var LCNProfileValidator22 = mod22.object({
|
|
75314
|
-
profileId: mod22.string().min(3).max(40),
|
|
75315
|
-
displayName: mod22.string().default(""),
|
|
75316
|
-
shortBio: mod22.string().default(""),
|
|
75317
|
-
bio: mod22.string().default(""),
|
|
75318
|
-
did: mod22.string(),
|
|
75319
|
-
isPrivate: mod22.boolean().optional(),
|
|
75320
|
-
email: mod22.string().optional(),
|
|
75321
|
-
image: mod22.string().optional(),
|
|
75322
|
-
heroImage: mod22.string().optional(),
|
|
75323
|
-
websiteLink: mod22.string().optional(),
|
|
75324
|
-
isServiceProfile: mod22.boolean().default(false).optional(),
|
|
75325
|
-
type: mod22.string().optional(),
|
|
75326
|
-
notificationsWebhook: mod22.string().url().startsWith("http").optional(),
|
|
75327
|
-
display: LCNProfileDisplayValidator22.optional(),
|
|
75328
|
-
role: mod22.string().default("").optional(),
|
|
75329
|
-
dob: mod22.string().default("").optional()
|
|
75346
|
+
profileId: mod22.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),
|
|
75347
|
+
displayName: mod22.string().default("").describe("Human-readable display name for the profile."),
|
|
75348
|
+
shortBio: mod22.string().default("").describe("Short bio for the profile."),
|
|
75349
|
+
bio: mod22.string().default("").describe("Longer bio for the profile."),
|
|
75350
|
+
did: mod22.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),
|
|
75351
|
+
isPrivate: mod22.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),
|
|
75352
|
+
email: mod22.string().optional().describe("Contact email address for the profile."),
|
|
75353
|
+
image: mod22.string().optional().describe("Profile image URL for the profile."),
|
|
75354
|
+
heroImage: mod22.string().optional().describe("Hero image URL for the profile."),
|
|
75355
|
+
websiteLink: mod22.string().optional().describe("Website link for the profile."),
|
|
75356
|
+
isServiceProfile: mod22.boolean().default(false).optional().describe("Whether the profile is a service profile or not."),
|
|
75357
|
+
type: mod22.string().optional().describe('Profile type: e.g. "person", "organization", "service".'),
|
|
75358
|
+
notificationsWebhook: mod22.string().url().startsWith("http").optional().describe("URL to send notifications to."),
|
|
75359
|
+
display: LCNProfileDisplayValidator22.optional().describe("Display settings for the profile."),
|
|
75360
|
+
role: mod22.string().default("").optional().describe('Role of the profile: e.g. "teacher", "student".'),
|
|
75361
|
+
dob: mod22.string().default("").optional().describe('Date of birth of the profile: e.g. "1990-01-01".')
|
|
75330
75362
|
});
|
|
75331
75363
|
var LCNProfileQueryValidator22 = mod22.object({
|
|
75332
75364
|
profileId: StringQuery22,
|
|
@@ -75522,7 +75554,8 @@ var require_helpers_cjs_development = __commonJS6({
|
|
|
75522
75554
|
createdAt: mod22.string(),
|
|
75523
75555
|
updatedAt: mod22.string(),
|
|
75524
75556
|
expiresAt: mod22.string().optional(),
|
|
75525
|
-
autoBoosts: mod22.string().array().optional()
|
|
75557
|
+
autoBoosts: mod22.string().array().optional(),
|
|
75558
|
+
writers: mod22.array(LCNProfileValidator22).optional()
|
|
75526
75559
|
});
|
|
75527
75560
|
var PaginatedConsentFlowContractsValidator22 = PaginationResponseValidator22.extend({
|
|
75528
75561
|
records: ConsentFlowContractDetailsValidator22.omit({ owner: true }).array()
|
|
@@ -75563,7 +75596,8 @@ var require_helpers_cjs_development = __commonJS6({
|
|
|
75563
75596
|
write: mod22.object({
|
|
75564
75597
|
credentials: mod22.object({ categories: mod22.record(mod22.boolean()).default({}) }).default({}),
|
|
75565
75598
|
personal: mod22.record(mod22.boolean()).default({})
|
|
75566
|
-
}).default({})
|
|
75599
|
+
}).default({}),
|
|
75600
|
+
deniedWriters: mod22.array(mod22.string()).optional()
|
|
75567
75601
|
});
|
|
75568
75602
|
var PaginatedConsentFlowTermsValidator22 = PaginationResponseValidator22.extend({
|
|
75569
75603
|
records: mod22.object({
|
|
@@ -79641,22 +79675,22 @@ var LCNProfileDisplayValidator3 = mod3.object({
|
|
|
79641
79675
|
repeatIdBackgroundImage: mod3.boolean().optional()
|
|
79642
79676
|
});
|
|
79643
79677
|
var LCNProfileValidator3 = mod3.object({
|
|
79644
|
-
profileId: mod3.string().min(3).max(40),
|
|
79645
|
-
displayName: mod3.string().default(""),
|
|
79646
|
-
shortBio: mod3.string().default(""),
|
|
79647
|
-
bio: mod3.string().default(""),
|
|
79648
|
-
did: mod3.string(),
|
|
79649
|
-
isPrivate: mod3.boolean().optional(),
|
|
79650
|
-
email: mod3.string().optional(),
|
|
79651
|
-
image: mod3.string().optional(),
|
|
79652
|
-
heroImage: mod3.string().optional(),
|
|
79653
|
-
websiteLink: mod3.string().optional(),
|
|
79654
|
-
isServiceProfile: mod3.boolean().default(false).optional(),
|
|
79655
|
-
type: mod3.string().optional(),
|
|
79656
|
-
notificationsWebhook: mod3.string().url().startsWith("http").optional(),
|
|
79657
|
-
display: LCNProfileDisplayValidator3.optional(),
|
|
79658
|
-
role: mod3.string().default("").optional(),
|
|
79659
|
-
dob: mod3.string().default("").optional()
|
|
79678
|
+
profileId: mod3.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),
|
|
79679
|
+
displayName: mod3.string().default("").describe("Human-readable display name for the profile."),
|
|
79680
|
+
shortBio: mod3.string().default("").describe("Short bio for the profile."),
|
|
79681
|
+
bio: mod3.string().default("").describe("Longer bio for the profile."),
|
|
79682
|
+
did: mod3.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),
|
|
79683
|
+
isPrivate: mod3.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),
|
|
79684
|
+
email: mod3.string().optional().describe("Contact email address for the profile."),
|
|
79685
|
+
image: mod3.string().optional().describe("Profile image URL for the profile."),
|
|
79686
|
+
heroImage: mod3.string().optional().describe("Hero image URL for the profile."),
|
|
79687
|
+
websiteLink: mod3.string().optional().describe("Website link for the profile."),
|
|
79688
|
+
isServiceProfile: mod3.boolean().default(false).optional().describe("Whether the profile is a service profile or not."),
|
|
79689
|
+
type: mod3.string().optional().describe('Profile type: e.g. "person", "organization", "service".'),
|
|
79690
|
+
notificationsWebhook: mod3.string().url().startsWith("http").optional().describe("URL to send notifications to."),
|
|
79691
|
+
display: LCNProfileDisplayValidator3.optional().describe("Display settings for the profile."),
|
|
79692
|
+
role: mod3.string().default("").optional().describe('Role of the profile: e.g. "teacher", "student".'),
|
|
79693
|
+
dob: mod3.string().default("").optional().describe('Date of birth of the profile: e.g. "1990-01-01".')
|
|
79660
79694
|
});
|
|
79661
79695
|
var LCNProfileQueryValidator3 = mod3.object({
|
|
79662
79696
|
profileId: StringQuery3,
|
|
@@ -79852,7 +79886,8 @@ var ConsentFlowContractDetailsValidator3 = mod3.object({
|
|
|
79852
79886
|
createdAt: mod3.string(),
|
|
79853
79887
|
updatedAt: mod3.string(),
|
|
79854
79888
|
expiresAt: mod3.string().optional(),
|
|
79855
|
-
autoBoosts: mod3.string().array().optional()
|
|
79889
|
+
autoBoosts: mod3.string().array().optional(),
|
|
79890
|
+
writers: mod3.array(LCNProfileValidator3).optional()
|
|
79856
79891
|
});
|
|
79857
79892
|
var PaginatedConsentFlowContractsValidator3 = PaginationResponseValidator3.extend({
|
|
79858
79893
|
records: ConsentFlowContractDetailsValidator3.omit({ owner: true }).array()
|
|
@@ -79893,7 +79928,8 @@ var ConsentFlowTermsValidator3 = mod3.object({
|
|
|
79893
79928
|
write: mod3.object({
|
|
79894
79929
|
credentials: mod3.object({ categories: mod3.record(mod3.boolean()).default({}) }).default({}),
|
|
79895
79930
|
personal: mod3.record(mod3.boolean()).default({})
|
|
79896
|
-
}).default({})
|
|
79931
|
+
}).default({}),
|
|
79932
|
+
deniedWriters: mod3.array(mod3.string()).optional()
|
|
79897
79933
|
});
|
|
79898
79934
|
var PaginatedConsentFlowTermsValidator3 = PaginationResponseValidator3.extend({
|
|
79899
79935
|
records: mod3.object({
|
|
@@ -80637,6 +80673,19 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name14(async (learnCard, url)
|
|
|
80637
80673
|
throw new Error("Please make an account first!");
|
|
80638
80674
|
return client.contracts.createConsentFlowContract.mutate(contract);
|
|
80639
80675
|
},
|
|
80676
|
+
addAutoBoostsToContract: async (_learnCard, contractUri, autoboosts) => {
|
|
80677
|
+
if (!userData)
|
|
80678
|
+
throw new Error("Please make an account first!");
|
|
80679
|
+
return client.contracts.addAutoBoostsToContract.mutate({ contractUri, autoboosts });
|
|
80680
|
+
},
|
|
80681
|
+
removeAutoBoostsFromContract: async (_learnCard, contractUri, boostUris) => {
|
|
80682
|
+
if (!userData)
|
|
80683
|
+
throw new Error("Please make an account first!");
|
|
80684
|
+
return client.contracts.removeAutoBoostsFromContract.mutate({
|
|
80685
|
+
contractUri,
|
|
80686
|
+
boostUris
|
|
80687
|
+
});
|
|
80688
|
+
},
|
|
80640
80689
|
getContract: async (_learnCard, uri) => {
|
|
80641
80690
|
return client.contracts.getConsentFlowContract.query({ uri });
|
|
80642
80691
|
},
|
|
@@ -84890,22 +84939,22 @@ var LCNProfileDisplayValidator4 = mod4.object({
|
|
|
84890
84939
|
repeatIdBackgroundImage: mod4.boolean().optional()
|
|
84891
84940
|
});
|
|
84892
84941
|
var LCNProfileValidator4 = mod4.object({
|
|
84893
|
-
profileId: mod4.string().min(3).max(40),
|
|
84894
|
-
displayName: mod4.string().default(""),
|
|
84895
|
-
shortBio: mod4.string().default(""),
|
|
84896
|
-
bio: mod4.string().default(""),
|
|
84897
|
-
did: mod4.string(),
|
|
84898
|
-
isPrivate: mod4.boolean().optional(),
|
|
84899
|
-
email: mod4.string().optional(),
|
|
84900
|
-
image: mod4.string().optional(),
|
|
84901
|
-
heroImage: mod4.string().optional(),
|
|
84902
|
-
websiteLink: mod4.string().optional(),
|
|
84903
|
-
isServiceProfile: mod4.boolean().default(false).optional(),
|
|
84904
|
-
type: mod4.string().optional(),
|
|
84905
|
-
notificationsWebhook: mod4.string().url().startsWith("http").optional(),
|
|
84906
|
-
display: LCNProfileDisplayValidator4.optional(),
|
|
84907
|
-
role: mod4.string().default("").optional(),
|
|
84908
|
-
dob: mod4.string().default("").optional()
|
|
84942
|
+
profileId: mod4.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),
|
|
84943
|
+
displayName: mod4.string().default("").describe("Human-readable display name for the profile."),
|
|
84944
|
+
shortBio: mod4.string().default("").describe("Short bio for the profile."),
|
|
84945
|
+
bio: mod4.string().default("").describe("Longer bio for the profile."),
|
|
84946
|
+
did: mod4.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),
|
|
84947
|
+
isPrivate: mod4.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),
|
|
84948
|
+
email: mod4.string().optional().describe("Contact email address for the profile."),
|
|
84949
|
+
image: mod4.string().optional().describe("Profile image URL for the profile."),
|
|
84950
|
+
heroImage: mod4.string().optional().describe("Hero image URL for the profile."),
|
|
84951
|
+
websiteLink: mod4.string().optional().describe("Website link for the profile."),
|
|
84952
|
+
isServiceProfile: mod4.boolean().default(false).optional().describe("Whether the profile is a service profile or not."),
|
|
84953
|
+
type: mod4.string().optional().describe('Profile type: e.g. "person", "organization", "service".'),
|
|
84954
|
+
notificationsWebhook: mod4.string().url().startsWith("http").optional().describe("URL to send notifications to."),
|
|
84955
|
+
display: LCNProfileDisplayValidator4.optional().describe("Display settings for the profile."),
|
|
84956
|
+
role: mod4.string().default("").optional().describe('Role of the profile: e.g. "teacher", "student".'),
|
|
84957
|
+
dob: mod4.string().default("").optional().describe('Date of birth of the profile: e.g. "1990-01-01".')
|
|
84909
84958
|
});
|
|
84910
84959
|
var LCNProfileQueryValidator4 = mod4.object({
|
|
84911
84960
|
profileId: StringQuery4,
|
|
@@ -85101,7 +85150,8 @@ var ConsentFlowContractDetailsValidator4 = mod4.object({
|
|
|
85101
85150
|
createdAt: mod4.string(),
|
|
85102
85151
|
updatedAt: mod4.string(),
|
|
85103
85152
|
expiresAt: mod4.string().optional(),
|
|
85104
|
-
autoBoosts: mod4.string().array().optional()
|
|
85153
|
+
autoBoosts: mod4.string().array().optional(),
|
|
85154
|
+
writers: mod4.array(LCNProfileValidator4).optional()
|
|
85105
85155
|
});
|
|
85106
85156
|
var PaginatedConsentFlowContractsValidator4 = PaginationResponseValidator4.extend({
|
|
85107
85157
|
records: ConsentFlowContractDetailsValidator4.omit({ owner: true }).array()
|
|
@@ -85142,7 +85192,8 @@ var ConsentFlowTermsValidator4 = mod4.object({
|
|
|
85142
85192
|
write: mod4.object({
|
|
85143
85193
|
credentials: mod4.object({ categories: mod4.record(mod4.boolean()).default({}) }).default({}),
|
|
85144
85194
|
personal: mod4.record(mod4.boolean()).default({})
|
|
85145
|
-
}).default({})
|
|
85195
|
+
}).default({}),
|
|
85196
|
+
deniedWriters: mod4.array(mod4.string()).optional()
|
|
85146
85197
|
});
|
|
85147
85198
|
var PaginatedConsentFlowTermsValidator4 = PaginationResponseValidator4.extend({
|
|
85148
85199
|
records: mod4.object({
|