@learncard/init 2.0.13 → 2.0.15
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 +143 -119
- package/dist/init.cjs.development.js.map +2 -2
- package/dist/init.cjs.production.min.js +12 -12
- package/dist/init.cjs.production.min.js.map +3 -3
- package/dist/init.esm.js +143 -119
- package/dist/init.esm.js.map +2 -2
- package/package.json +20 -20
package/dist/init.esm.js
CHANGED
|
@@ -4420,7 +4420,7 @@ __name3(__wbg_adapter_212, "__wbg_adapter_212");
|
|
|
4420
4420
|
var __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
4421
4421
|
var __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
4422
4422
|
async function __wbg_load(module2, imports) {
|
|
4423
|
-
if (typeof Response === "function" &&
|
|
4423
|
+
if (typeof Response === "function" && module2 instanceof Response) {
|
|
4424
4424
|
if (typeof WebAssembly.instantiateStreaming === "function") {
|
|
4425
4425
|
try {
|
|
4426
4426
|
return await WebAssembly.instantiateStreaming(module2, imports);
|
|
@@ -4859,7 +4859,7 @@ function __wbg_get_imports() {
|
|
|
4859
4859
|
const ret = false;
|
|
4860
4860
|
return ret;
|
|
4861
4861
|
};
|
|
4862
|
-
imports.wbg.
|
|
4862
|
+
imports.wbg.__wbindgen_closure_wrapper12542 = function(arg0, arg1, arg2) {
|
|
4863
4863
|
const ret = makeMutClosure(arg0, arg1, 4131, __wbg_adapter_52);
|
|
4864
4864
|
return ret;
|
|
4865
4865
|
};
|
|
@@ -4990,7 +4990,7 @@ __name3(__wbg_init, "__wbg_init");
|
|
|
4990
4990
|
var didkit_wasm_default = __wbg_init;
|
|
4991
4991
|
var initialized = false;
|
|
4992
4992
|
var generating = false;
|
|
4993
|
-
var init = /* @__PURE__ */ __name3(async (arg = "https://cdn.filestackcontent.com/
|
|
4993
|
+
var init = /* @__PURE__ */ __name3(async (arg = "https://cdn.filestackcontent.com/uJ4ZnJoLRyuHyLgrSDIr") => {
|
|
4994
4994
|
while (generating)
|
|
4995
4995
|
await new Promise((res) => setTimeout(res, 250));
|
|
4996
4996
|
if (initialized)
|
|
@@ -5128,10 +5128,34 @@ var getDidKitPlugin = /* @__PURE__ */ __name3(async (input, allowRemoteContexts
|
|
|
5128
5128
|
jwks.map((jwk) => JSON.stringify(jwk))
|
|
5129
5129
|
),
|
|
5130
5130
|
createDagJwe: async (_learnCard, cleartext, recipients) => JSON.parse(await createDagJwe(cleartext, recipients)),
|
|
5131
|
-
decryptDagJwe: async (_learnCard, jwe, jwks) =>
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5131
|
+
decryptDagJwe: async (_learnCard, jwe, jwks) => {
|
|
5132
|
+
const convertBigIntsToNumbers = /* @__PURE__ */ __name3((obj) => {
|
|
5133
|
+
if (obj === null || obj === void 0)
|
|
5134
|
+
return obj;
|
|
5135
|
+
if (typeof obj === "bigint")
|
|
5136
|
+
return Number(obj);
|
|
5137
|
+
if (Array.isArray(obj))
|
|
5138
|
+
return obj.map(convertBigIntsToNumbers);
|
|
5139
|
+
if (typeof obj !== "object")
|
|
5140
|
+
return obj;
|
|
5141
|
+
const hasNestedObjects = Object.values(obj).some(
|
|
5142
|
+
(val) => typeof val === "bigint" || typeof val === "object" && val !== null
|
|
5143
|
+
);
|
|
5144
|
+
if (!hasNestedObjects)
|
|
5145
|
+
return obj;
|
|
5146
|
+
const result = {};
|
|
5147
|
+
for (const key2 in obj) {
|
|
5148
|
+
result[key2] = convertBigIntsToNumbers(obj[key2]);
|
|
5149
|
+
}
|
|
5150
|
+
return result;
|
|
5151
|
+
}, "convertBigIntsToNumbers");
|
|
5152
|
+
return convertBigIntsToNumbers(
|
|
5153
|
+
await decryptDagJwe(
|
|
5154
|
+
JSON.stringify(jwe),
|
|
5155
|
+
jwks.map((jwk) => JSON.stringify(jwk))
|
|
5156
|
+
)
|
|
5157
|
+
);
|
|
5158
|
+
},
|
|
5135
5159
|
clearDidWebCache: async () => {
|
|
5136
5160
|
await clearCache();
|
|
5137
5161
|
}
|
|
@@ -11085,22 +11109,22 @@ var LCNProfileDisplayValidator = mod.object({
|
|
|
11085
11109
|
repeatIdBackgroundImage: mod.boolean().optional()
|
|
11086
11110
|
});
|
|
11087
11111
|
var LCNProfileValidator = mod.object({
|
|
11088
|
-
profileId: mod.string().min(3).max(40),
|
|
11089
|
-
displayName: mod.string().default(""),
|
|
11090
|
-
shortBio: mod.string().default(""),
|
|
11091
|
-
bio: mod.string().default(""),
|
|
11092
|
-
did: mod.string(),
|
|
11093
|
-
isPrivate: mod.boolean().optional(),
|
|
11094
|
-
email: mod.string().optional(),
|
|
11095
|
-
image: mod.string().optional(),
|
|
11096
|
-
heroImage: mod.string().optional(),
|
|
11097
|
-
websiteLink: mod.string().optional(),
|
|
11098
|
-
isServiceProfile: mod.boolean().default(false).optional(),
|
|
11099
|
-
type: mod.string().optional(),
|
|
11100
|
-
notificationsWebhook: mod.string().url().startsWith("http").optional(),
|
|
11101
|
-
display: LCNProfileDisplayValidator.optional(),
|
|
11102
|
-
role: mod.string().default("").optional(),
|
|
11103
|
-
dob: mod.string().default("").optional()
|
|
11112
|
+
profileId: mod.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),
|
|
11113
|
+
displayName: mod.string().default("").describe("Human-readable display name for the profile."),
|
|
11114
|
+
shortBio: mod.string().default("").describe("Short bio for the profile."),
|
|
11115
|
+
bio: mod.string().default("").describe("Longer bio for the profile."),
|
|
11116
|
+
did: mod.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),
|
|
11117
|
+
isPrivate: mod.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),
|
|
11118
|
+
email: mod.string().optional().describe("Contact email address for the profile."),
|
|
11119
|
+
image: mod.string().optional().describe("Profile image URL for the profile."),
|
|
11120
|
+
heroImage: mod.string().optional().describe("Hero image URL for the profile."),
|
|
11121
|
+
websiteLink: mod.string().optional().describe("Website link for the profile."),
|
|
11122
|
+
isServiceProfile: mod.boolean().default(false).optional().describe("Whether the profile is a service profile or not."),
|
|
11123
|
+
type: mod.string().optional().describe('Profile type: e.g. "person", "organization", "service".'),
|
|
11124
|
+
notificationsWebhook: mod.string().url().startsWith("http").optional().describe("URL to send notifications to."),
|
|
11125
|
+
display: LCNProfileDisplayValidator.optional().describe("Display settings for the profile."),
|
|
11126
|
+
role: mod.string().default("").optional().describe('Role of the profile: e.g. "teacher", "student".'),
|
|
11127
|
+
dob: mod.string().default("").optional().describe('Date of birth of the profile: e.g. "1990-01-01".')
|
|
11104
11128
|
});
|
|
11105
11129
|
var LCNProfileQueryValidator = mod.object({
|
|
11106
11130
|
profileId: StringQuery,
|
|
@@ -17104,22 +17128,22 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17104
17128
|
repeatIdBackgroundImage: mod5.boolean().optional()
|
|
17105
17129
|
});
|
|
17106
17130
|
var LCNProfileValidator5 = mod5.object({
|
|
17107
|
-
profileId: mod5.string().min(3).max(40),
|
|
17108
|
-
displayName: mod5.string().default(""),
|
|
17109
|
-
shortBio: mod5.string().default(""),
|
|
17110
|
-
bio: mod5.string().default(""),
|
|
17111
|
-
did: mod5.string(),
|
|
17112
|
-
isPrivate: mod5.boolean().optional(),
|
|
17113
|
-
email: mod5.string().optional(),
|
|
17114
|
-
image: mod5.string().optional(),
|
|
17115
|
-
heroImage: mod5.string().optional(),
|
|
17116
|
-
websiteLink: mod5.string().optional(),
|
|
17117
|
-
isServiceProfile: mod5.boolean().default(false).optional(),
|
|
17118
|
-
type: mod5.string().optional(),
|
|
17119
|
-
notificationsWebhook: mod5.string().url().startsWith("http").optional(),
|
|
17120
|
-
display: LCNProfileDisplayValidator5.optional(),
|
|
17121
|
-
role: mod5.string().default("").optional(),
|
|
17122
|
-
dob: mod5.string().default("").optional()
|
|
17131
|
+
profileId: mod5.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),
|
|
17132
|
+
displayName: mod5.string().default("").describe("Human-readable display name for the profile."),
|
|
17133
|
+
shortBio: mod5.string().default("").describe("Short bio for the profile."),
|
|
17134
|
+
bio: mod5.string().default("").describe("Longer bio for the profile."),
|
|
17135
|
+
did: mod5.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),
|
|
17136
|
+
isPrivate: mod5.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),
|
|
17137
|
+
email: mod5.string().optional().describe("Contact email address for the profile."),
|
|
17138
|
+
image: mod5.string().optional().describe("Profile image URL for the profile."),
|
|
17139
|
+
heroImage: mod5.string().optional().describe("Hero image URL for the profile."),
|
|
17140
|
+
websiteLink: mod5.string().optional().describe("Website link for the profile."),
|
|
17141
|
+
isServiceProfile: mod5.boolean().default(false).optional().describe("Whether the profile is a service profile or not."),
|
|
17142
|
+
type: mod5.string().optional().describe('Profile type: e.g. "person", "organization", "service".'),
|
|
17143
|
+
notificationsWebhook: mod5.string().url().startsWith("http").optional().describe("URL to send notifications to."),
|
|
17144
|
+
display: LCNProfileDisplayValidator5.optional().describe("Display settings for the profile."),
|
|
17145
|
+
role: mod5.string().default("").optional().describe('Role of the profile: e.g. "teacher", "student".'),
|
|
17146
|
+
dob: mod5.string().default("").optional().describe('Date of birth of the profile: e.g. "1990-01-01".')
|
|
17123
17147
|
});
|
|
17124
17148
|
var LCNProfileQueryValidator5 = mod5.object({
|
|
17125
17149
|
profileId: StringQuery5,
|
|
@@ -29481,22 +29505,22 @@ var require_types_cjs_development2 = __commonJS22({
|
|
|
29481
29505
|
repeatIdBackgroundImage: mod22.boolean().optional()
|
|
29482
29506
|
});
|
|
29483
29507
|
var LCNProfileValidator22 = mod22.object({
|
|
29484
|
-
profileId: mod22.string().min(3).max(40),
|
|
29485
|
-
displayName: mod22.string().default(""),
|
|
29486
|
-
shortBio: mod22.string().default(""),
|
|
29487
|
-
bio: mod22.string().default(""),
|
|
29488
|
-
did: mod22.string(),
|
|
29489
|
-
isPrivate: mod22.boolean().optional(),
|
|
29490
|
-
email: mod22.string().optional(),
|
|
29491
|
-
image: mod22.string().optional(),
|
|
29492
|
-
heroImage: mod22.string().optional(),
|
|
29493
|
-
websiteLink: mod22.string().optional(),
|
|
29494
|
-
isServiceProfile: mod22.boolean().default(false).optional(),
|
|
29495
|
-
type: mod22.string().optional(),
|
|
29496
|
-
notificationsWebhook: mod22.string().url().startsWith("http").optional(),
|
|
29497
|
-
display: LCNProfileDisplayValidator22.optional(),
|
|
29498
|
-
role: mod22.string().default("").optional(),
|
|
29499
|
-
dob: mod22.string().default("").optional()
|
|
29508
|
+
profileId: mod22.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),
|
|
29509
|
+
displayName: mod22.string().default("").describe("Human-readable display name for the profile."),
|
|
29510
|
+
shortBio: mod22.string().default("").describe("Short bio for the profile."),
|
|
29511
|
+
bio: mod22.string().default("").describe("Longer bio for the profile."),
|
|
29512
|
+
did: mod22.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),
|
|
29513
|
+
isPrivate: mod22.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),
|
|
29514
|
+
email: mod22.string().optional().describe("Contact email address for the profile."),
|
|
29515
|
+
image: mod22.string().optional().describe("Profile image URL for the profile."),
|
|
29516
|
+
heroImage: mod22.string().optional().describe("Hero image URL for the profile."),
|
|
29517
|
+
websiteLink: mod22.string().optional().describe("Website link for the profile."),
|
|
29518
|
+
isServiceProfile: mod22.boolean().default(false).optional().describe("Whether the profile is a service profile or not."),
|
|
29519
|
+
type: mod22.string().optional().describe('Profile type: e.g. "person", "organization", "service".'),
|
|
29520
|
+
notificationsWebhook: mod22.string().url().startsWith("http").optional().describe("URL to send notifications to."),
|
|
29521
|
+
display: LCNProfileDisplayValidator22.optional().describe("Display settings for the profile."),
|
|
29522
|
+
role: mod22.string().default("").optional().describe('Role of the profile: e.g. "teacher", "student".'),
|
|
29523
|
+
dob: mod22.string().default("").optional().describe('Date of birth of the profile: e.g. "1990-01-01".')
|
|
29500
29524
|
});
|
|
29501
29525
|
var LCNProfileQueryValidator22 = mod22.object({
|
|
29502
29526
|
profileId: StringQuery22,
|
|
@@ -33690,22 +33714,22 @@ var LCNProfileDisplayValidator2 = mod2.object({
|
|
|
33690
33714
|
repeatIdBackgroundImage: mod2.boolean().optional()
|
|
33691
33715
|
});
|
|
33692
33716
|
var LCNProfileValidator2 = mod2.object({
|
|
33693
|
-
profileId: mod2.string().min(3).max(40),
|
|
33694
|
-
displayName: mod2.string().default(""),
|
|
33695
|
-
shortBio: mod2.string().default(""),
|
|
33696
|
-
bio: mod2.string().default(""),
|
|
33697
|
-
did: mod2.string(),
|
|
33698
|
-
isPrivate: mod2.boolean().optional(),
|
|
33699
|
-
email: mod2.string().optional(),
|
|
33700
|
-
image: mod2.string().optional(),
|
|
33701
|
-
heroImage: mod2.string().optional(),
|
|
33702
|
-
websiteLink: mod2.string().optional(),
|
|
33703
|
-
isServiceProfile: mod2.boolean().default(false).optional(),
|
|
33704
|
-
type: mod2.string().optional(),
|
|
33705
|
-
notificationsWebhook: mod2.string().url().startsWith("http").optional(),
|
|
33706
|
-
display: LCNProfileDisplayValidator2.optional(),
|
|
33707
|
-
role: mod2.string().default("").optional(),
|
|
33708
|
-
dob: mod2.string().default("").optional()
|
|
33717
|
+
profileId: mod2.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),
|
|
33718
|
+
displayName: mod2.string().default("").describe("Human-readable display name for the profile."),
|
|
33719
|
+
shortBio: mod2.string().default("").describe("Short bio for the profile."),
|
|
33720
|
+
bio: mod2.string().default("").describe("Longer bio for the profile."),
|
|
33721
|
+
did: mod2.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),
|
|
33722
|
+
isPrivate: mod2.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),
|
|
33723
|
+
email: mod2.string().optional().describe("Contact email address for the profile."),
|
|
33724
|
+
image: mod2.string().optional().describe("Profile image URL for the profile."),
|
|
33725
|
+
heroImage: mod2.string().optional().describe("Hero image URL for the profile."),
|
|
33726
|
+
websiteLink: mod2.string().optional().describe("Website link for the profile."),
|
|
33727
|
+
isServiceProfile: mod2.boolean().default(false).optional().describe("Whether the profile is a service profile or not."),
|
|
33728
|
+
type: mod2.string().optional().describe('Profile type: e.g. "person", "organization", "service".'),
|
|
33729
|
+
notificationsWebhook: mod2.string().url().startsWith("http").optional().describe("URL to send notifications to."),
|
|
33730
|
+
display: LCNProfileDisplayValidator2.optional().describe("Display settings for the profile."),
|
|
33731
|
+
role: mod2.string().default("").optional().describe('Role of the profile: e.g. "teacher", "student".'),
|
|
33732
|
+
dob: mod2.string().default("").optional().describe('Date of birth of the profile: e.g. "1990-01-01".')
|
|
33709
33733
|
});
|
|
33710
33734
|
var LCNProfileQueryValidator2 = mod2.object({
|
|
33711
33735
|
profileId: StringQuery2,
|
|
@@ -75281,22 +75305,22 @@ var require_helpers_cjs_development = __commonJS6({
|
|
|
75281
75305
|
repeatIdBackgroundImage: mod22.boolean().optional()
|
|
75282
75306
|
});
|
|
75283
75307
|
var LCNProfileValidator22 = mod22.object({
|
|
75284
|
-
profileId: mod22.string().min(3).max(40),
|
|
75285
|
-
displayName: mod22.string().default(""),
|
|
75286
|
-
shortBio: mod22.string().default(""),
|
|
75287
|
-
bio: mod22.string().default(""),
|
|
75288
|
-
did: mod22.string(),
|
|
75289
|
-
isPrivate: mod22.boolean().optional(),
|
|
75290
|
-
email: mod22.string().optional(),
|
|
75291
|
-
image: mod22.string().optional(),
|
|
75292
|
-
heroImage: mod22.string().optional(),
|
|
75293
|
-
websiteLink: mod22.string().optional(),
|
|
75294
|
-
isServiceProfile: mod22.boolean().default(false).optional(),
|
|
75295
|
-
type: mod22.string().optional(),
|
|
75296
|
-
notificationsWebhook: mod22.string().url().startsWith("http").optional(),
|
|
75297
|
-
display: LCNProfileDisplayValidator22.optional(),
|
|
75298
|
-
role: mod22.string().default("").optional(),
|
|
75299
|
-
dob: mod22.string().default("").optional()
|
|
75308
|
+
profileId: mod22.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),
|
|
75309
|
+
displayName: mod22.string().default("").describe("Human-readable display name for the profile."),
|
|
75310
|
+
shortBio: mod22.string().default("").describe("Short bio for the profile."),
|
|
75311
|
+
bio: mod22.string().default("").describe("Longer bio for the profile."),
|
|
75312
|
+
did: mod22.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),
|
|
75313
|
+
isPrivate: mod22.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),
|
|
75314
|
+
email: mod22.string().optional().describe("Contact email address for the profile."),
|
|
75315
|
+
image: mod22.string().optional().describe("Profile image URL for the profile."),
|
|
75316
|
+
heroImage: mod22.string().optional().describe("Hero image URL for the profile."),
|
|
75317
|
+
websiteLink: mod22.string().optional().describe("Website link for the profile."),
|
|
75318
|
+
isServiceProfile: mod22.boolean().default(false).optional().describe("Whether the profile is a service profile or not."),
|
|
75319
|
+
type: mod22.string().optional().describe('Profile type: e.g. "person", "organization", "service".'),
|
|
75320
|
+
notificationsWebhook: mod22.string().url().startsWith("http").optional().describe("URL to send notifications to."),
|
|
75321
|
+
display: LCNProfileDisplayValidator22.optional().describe("Display settings for the profile."),
|
|
75322
|
+
role: mod22.string().default("").optional().describe('Role of the profile: e.g. "teacher", "student".'),
|
|
75323
|
+
dob: mod22.string().default("").optional().describe('Date of birth of the profile: e.g. "1990-01-01".')
|
|
75300
75324
|
});
|
|
75301
75325
|
var LCNProfileQueryValidator22 = mod22.object({
|
|
75302
75326
|
profileId: StringQuery22,
|
|
@@ -79613,22 +79637,22 @@ var LCNProfileDisplayValidator3 = mod3.object({
|
|
|
79613
79637
|
repeatIdBackgroundImage: mod3.boolean().optional()
|
|
79614
79638
|
});
|
|
79615
79639
|
var LCNProfileValidator3 = mod3.object({
|
|
79616
|
-
profileId: mod3.string().min(3).max(40),
|
|
79617
|
-
displayName: mod3.string().default(""),
|
|
79618
|
-
shortBio: mod3.string().default(""),
|
|
79619
|
-
bio: mod3.string().default(""),
|
|
79620
|
-
did: mod3.string(),
|
|
79621
|
-
isPrivate: mod3.boolean().optional(),
|
|
79622
|
-
email: mod3.string().optional(),
|
|
79623
|
-
image: mod3.string().optional(),
|
|
79624
|
-
heroImage: mod3.string().optional(),
|
|
79625
|
-
websiteLink: mod3.string().optional(),
|
|
79626
|
-
isServiceProfile: mod3.boolean().default(false).optional(),
|
|
79627
|
-
type: mod3.string().optional(),
|
|
79628
|
-
notificationsWebhook: mod3.string().url().startsWith("http").optional(),
|
|
79629
|
-
display: LCNProfileDisplayValidator3.optional(),
|
|
79630
|
-
role: mod3.string().default("").optional(),
|
|
79631
|
-
dob: mod3.string().default("").optional()
|
|
79640
|
+
profileId: mod3.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),
|
|
79641
|
+
displayName: mod3.string().default("").describe("Human-readable display name for the profile."),
|
|
79642
|
+
shortBio: mod3.string().default("").describe("Short bio for the profile."),
|
|
79643
|
+
bio: mod3.string().default("").describe("Longer bio for the profile."),
|
|
79644
|
+
did: mod3.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),
|
|
79645
|
+
isPrivate: mod3.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),
|
|
79646
|
+
email: mod3.string().optional().describe("Contact email address for the profile."),
|
|
79647
|
+
image: mod3.string().optional().describe("Profile image URL for the profile."),
|
|
79648
|
+
heroImage: mod3.string().optional().describe("Hero image URL for the profile."),
|
|
79649
|
+
websiteLink: mod3.string().optional().describe("Website link for the profile."),
|
|
79650
|
+
isServiceProfile: mod3.boolean().default(false).optional().describe("Whether the profile is a service profile or not."),
|
|
79651
|
+
type: mod3.string().optional().describe('Profile type: e.g. "person", "organization", "service".'),
|
|
79652
|
+
notificationsWebhook: mod3.string().url().startsWith("http").optional().describe("URL to send notifications to."),
|
|
79653
|
+
display: LCNProfileDisplayValidator3.optional().describe("Display settings for the profile."),
|
|
79654
|
+
role: mod3.string().default("").optional().describe('Role of the profile: e.g. "teacher", "student".'),
|
|
79655
|
+
dob: mod3.string().default("").optional().describe('Date of birth of the profile: e.g. "1990-01-01".')
|
|
79632
79656
|
});
|
|
79633
79657
|
var LCNProfileQueryValidator3 = mod3.object({
|
|
79634
79658
|
profileId: StringQuery3,
|
|
@@ -84877,22 +84901,22 @@ var LCNProfileDisplayValidator4 = mod4.object({
|
|
|
84877
84901
|
repeatIdBackgroundImage: mod4.boolean().optional()
|
|
84878
84902
|
});
|
|
84879
84903
|
var LCNProfileValidator4 = mod4.object({
|
|
84880
|
-
profileId: mod4.string().min(3).max(40),
|
|
84881
|
-
displayName: mod4.string().default(""),
|
|
84882
|
-
shortBio: mod4.string().default(""),
|
|
84883
|
-
bio: mod4.string().default(""),
|
|
84884
|
-
did: mod4.string(),
|
|
84885
|
-
isPrivate: mod4.boolean().optional(),
|
|
84886
|
-
email: mod4.string().optional(),
|
|
84887
|
-
image: mod4.string().optional(),
|
|
84888
|
-
heroImage: mod4.string().optional(),
|
|
84889
|
-
websiteLink: mod4.string().optional(),
|
|
84890
|
-
isServiceProfile: mod4.boolean().default(false).optional(),
|
|
84891
|
-
type: mod4.string().optional(),
|
|
84892
|
-
notificationsWebhook: mod4.string().url().startsWith("http").optional(),
|
|
84893
|
-
display: LCNProfileDisplayValidator4.optional(),
|
|
84894
|
-
role: mod4.string().default("").optional(),
|
|
84895
|
-
dob: mod4.string().default("").optional()
|
|
84904
|
+
profileId: mod4.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),
|
|
84905
|
+
displayName: mod4.string().default("").describe("Human-readable display name for the profile."),
|
|
84906
|
+
shortBio: mod4.string().default("").describe("Short bio for the profile."),
|
|
84907
|
+
bio: mod4.string().default("").describe("Longer bio for the profile."),
|
|
84908
|
+
did: mod4.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),
|
|
84909
|
+
isPrivate: mod4.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),
|
|
84910
|
+
email: mod4.string().optional().describe("Contact email address for the profile."),
|
|
84911
|
+
image: mod4.string().optional().describe("Profile image URL for the profile."),
|
|
84912
|
+
heroImage: mod4.string().optional().describe("Hero image URL for the profile."),
|
|
84913
|
+
websiteLink: mod4.string().optional().describe("Website link for the profile."),
|
|
84914
|
+
isServiceProfile: mod4.boolean().default(false).optional().describe("Whether the profile is a service profile or not."),
|
|
84915
|
+
type: mod4.string().optional().describe('Profile type: e.g. "person", "organization", "service".'),
|
|
84916
|
+
notificationsWebhook: mod4.string().url().startsWith("http").optional().describe("URL to send notifications to."),
|
|
84917
|
+
display: LCNProfileDisplayValidator4.optional().describe("Display settings for the profile."),
|
|
84918
|
+
role: mod4.string().default("").optional().describe('Role of the profile: e.g. "teacher", "student".'),
|
|
84919
|
+
dob: mod4.string().default("").optional().describe('Date of birth of the profile: e.g. "1990-01-01".')
|
|
84896
84920
|
});
|
|
84897
84921
|
var LCNProfileQueryValidator4 = mod4.object({
|
|
84898
84922
|
profileId: StringQuery4,
|