@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
|
@@ -4458,7 +4458,7 @@ __name3(__wbg_adapter_212, "__wbg_adapter_212");
|
|
|
4458
4458
|
var __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
4459
4459
|
var __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
4460
4460
|
async function __wbg_load(module2, imports) {
|
|
4461
|
-
if (typeof Response === "function" &&
|
|
4461
|
+
if (typeof Response === "function" && module2 instanceof Response) {
|
|
4462
4462
|
if (typeof WebAssembly.instantiateStreaming === "function") {
|
|
4463
4463
|
try {
|
|
4464
4464
|
return await WebAssembly.instantiateStreaming(module2, imports);
|
|
@@ -4897,7 +4897,7 @@ function __wbg_get_imports() {
|
|
|
4897
4897
|
const ret = false;
|
|
4898
4898
|
return ret;
|
|
4899
4899
|
};
|
|
4900
|
-
imports.wbg.
|
|
4900
|
+
imports.wbg.__wbindgen_closure_wrapper12542 = function(arg0, arg1, arg2) {
|
|
4901
4901
|
const ret = makeMutClosure(arg0, arg1, 4131, __wbg_adapter_52);
|
|
4902
4902
|
return ret;
|
|
4903
4903
|
};
|
|
@@ -5028,7 +5028,7 @@ __name3(__wbg_init, "__wbg_init");
|
|
|
5028
5028
|
var didkit_wasm_default = __wbg_init;
|
|
5029
5029
|
var initialized = false;
|
|
5030
5030
|
var generating = false;
|
|
5031
|
-
var init = /* @__PURE__ */ __name3(async (arg = "https://cdn.filestackcontent.com/
|
|
5031
|
+
var init = /* @__PURE__ */ __name3(async (arg = "https://cdn.filestackcontent.com/uJ4ZnJoLRyuHyLgrSDIr") => {
|
|
5032
5032
|
while (generating)
|
|
5033
5033
|
await new Promise((res) => setTimeout(res, 250));
|
|
5034
5034
|
if (initialized)
|
|
@@ -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,
|
|
@@ -17142,22 +17166,22 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17142
17166
|
repeatIdBackgroundImage: mod5.boolean().optional()
|
|
17143
17167
|
});
|
|
17144
17168
|
var LCNProfileValidator5 = mod5.object({
|
|
17145
|
-
profileId: mod5.string().min(3).max(40),
|
|
17146
|
-
displayName: mod5.string().default(""),
|
|
17147
|
-
shortBio: mod5.string().default(""),
|
|
17148
|
-
bio: mod5.string().default(""),
|
|
17149
|
-
did: mod5.string(),
|
|
17150
|
-
isPrivate: mod5.boolean().optional(),
|
|
17151
|
-
email: mod5.string().optional(),
|
|
17152
|
-
image: mod5.string().optional(),
|
|
17153
|
-
heroImage: mod5.string().optional(),
|
|
17154
|
-
websiteLink: mod5.string().optional(),
|
|
17155
|
-
isServiceProfile: mod5.boolean().default(false).optional(),
|
|
17156
|
-
type: mod5.string().optional(),
|
|
17157
|
-
notificationsWebhook: mod5.string().url().startsWith("http").optional(),
|
|
17158
|
-
display: LCNProfileDisplayValidator5.optional(),
|
|
17159
|
-
role: mod5.string().default("").optional(),
|
|
17160
|
-
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".')
|
|
17161
17185
|
});
|
|
17162
17186
|
var LCNProfileQueryValidator5 = mod5.object({
|
|
17163
17187
|
profileId: StringQuery5,
|
|
@@ -29519,22 +29543,22 @@ var require_types_cjs_development2 = __commonJS22({
|
|
|
29519
29543
|
repeatIdBackgroundImage: mod22.boolean().optional()
|
|
29520
29544
|
});
|
|
29521
29545
|
var LCNProfileValidator22 = mod22.object({
|
|
29522
|
-
profileId: mod22.string().min(3).max(40),
|
|
29523
|
-
displayName: mod22.string().default(""),
|
|
29524
|
-
shortBio: mod22.string().default(""),
|
|
29525
|
-
bio: mod22.string().default(""),
|
|
29526
|
-
did: mod22.string(),
|
|
29527
|
-
isPrivate: mod22.boolean().optional(),
|
|
29528
|
-
email: mod22.string().optional(),
|
|
29529
|
-
image: mod22.string().optional(),
|
|
29530
|
-
heroImage: mod22.string().optional(),
|
|
29531
|
-
websiteLink: mod22.string().optional(),
|
|
29532
|
-
isServiceProfile: mod22.boolean().default(false).optional(),
|
|
29533
|
-
type: mod22.string().optional(),
|
|
29534
|
-
notificationsWebhook: mod22.string().url().startsWith("http").optional(),
|
|
29535
|
-
display: LCNProfileDisplayValidator22.optional(),
|
|
29536
|
-
role: mod22.string().default("").optional(),
|
|
29537
|
-
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".')
|
|
29538
29562
|
});
|
|
29539
29563
|
var LCNProfileQueryValidator22 = mod22.object({
|
|
29540
29564
|
profileId: StringQuery22,
|
|
@@ -33728,22 +33752,22 @@ var LCNProfileDisplayValidator2 = mod2.object({
|
|
|
33728
33752
|
repeatIdBackgroundImage: mod2.boolean().optional()
|
|
33729
33753
|
});
|
|
33730
33754
|
var LCNProfileValidator2 = mod2.object({
|
|
33731
|
-
profileId: mod2.string().min(3).max(40),
|
|
33732
|
-
displayName: mod2.string().default(""),
|
|
33733
|
-
shortBio: mod2.string().default(""),
|
|
33734
|
-
bio: mod2.string().default(""),
|
|
33735
|
-
did: mod2.string(),
|
|
33736
|
-
isPrivate: mod2.boolean().optional(),
|
|
33737
|
-
email: mod2.string().optional(),
|
|
33738
|
-
image: mod2.string().optional(),
|
|
33739
|
-
heroImage: mod2.string().optional(),
|
|
33740
|
-
websiteLink: mod2.string().optional(),
|
|
33741
|
-
isServiceProfile: mod2.boolean().default(false).optional(),
|
|
33742
|
-
type: mod2.string().optional(),
|
|
33743
|
-
notificationsWebhook: mod2.string().url().startsWith("http").optional(),
|
|
33744
|
-
display: LCNProfileDisplayValidator2.optional(),
|
|
33745
|
-
role: mod2.string().default("").optional(),
|
|
33746
|
-
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".')
|
|
33747
33771
|
});
|
|
33748
33772
|
var LCNProfileQueryValidator2 = mod2.object({
|
|
33749
33773
|
profileId: StringQuery2,
|
|
@@ -75319,22 +75343,22 @@ var require_helpers_cjs_development = __commonJS6({
|
|
|
75319
75343
|
repeatIdBackgroundImage: mod22.boolean().optional()
|
|
75320
75344
|
});
|
|
75321
75345
|
var LCNProfileValidator22 = mod22.object({
|
|
75322
|
-
profileId: mod22.string().min(3).max(40),
|
|
75323
|
-
displayName: mod22.string().default(""),
|
|
75324
|
-
shortBio: mod22.string().default(""),
|
|
75325
|
-
bio: mod22.string().default(""),
|
|
75326
|
-
did: mod22.string(),
|
|
75327
|
-
isPrivate: mod22.boolean().optional(),
|
|
75328
|
-
email: mod22.string().optional(),
|
|
75329
|
-
image: mod22.string().optional(),
|
|
75330
|
-
heroImage: mod22.string().optional(),
|
|
75331
|
-
websiteLink: mod22.string().optional(),
|
|
75332
|
-
isServiceProfile: mod22.boolean().default(false).optional(),
|
|
75333
|
-
type: mod22.string().optional(),
|
|
75334
|
-
notificationsWebhook: mod22.string().url().startsWith("http").optional(),
|
|
75335
|
-
display: LCNProfileDisplayValidator22.optional(),
|
|
75336
|
-
role: mod22.string().default("").optional(),
|
|
75337
|
-
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".')
|
|
75338
75362
|
});
|
|
75339
75363
|
var LCNProfileQueryValidator22 = mod22.object({
|
|
75340
75364
|
profileId: StringQuery22,
|
|
@@ -79651,22 +79675,22 @@ var LCNProfileDisplayValidator3 = mod3.object({
|
|
|
79651
79675
|
repeatIdBackgroundImage: mod3.boolean().optional()
|
|
79652
79676
|
});
|
|
79653
79677
|
var LCNProfileValidator3 = mod3.object({
|
|
79654
|
-
profileId: mod3.string().min(3).max(40),
|
|
79655
|
-
displayName: mod3.string().default(""),
|
|
79656
|
-
shortBio: mod3.string().default(""),
|
|
79657
|
-
bio: mod3.string().default(""),
|
|
79658
|
-
did: mod3.string(),
|
|
79659
|
-
isPrivate: mod3.boolean().optional(),
|
|
79660
|
-
email: mod3.string().optional(),
|
|
79661
|
-
image: mod3.string().optional(),
|
|
79662
|
-
heroImage: mod3.string().optional(),
|
|
79663
|
-
websiteLink: mod3.string().optional(),
|
|
79664
|
-
isServiceProfile: mod3.boolean().default(false).optional(),
|
|
79665
|
-
type: mod3.string().optional(),
|
|
79666
|
-
notificationsWebhook: mod3.string().url().startsWith("http").optional(),
|
|
79667
|
-
display: LCNProfileDisplayValidator3.optional(),
|
|
79668
|
-
role: mod3.string().default("").optional(),
|
|
79669
|
-
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".')
|
|
79670
79694
|
});
|
|
79671
79695
|
var LCNProfileQueryValidator3 = mod3.object({
|
|
79672
79696
|
profileId: StringQuery3,
|
|
@@ -84915,22 +84939,22 @@ var LCNProfileDisplayValidator4 = mod4.object({
|
|
|
84915
84939
|
repeatIdBackgroundImage: mod4.boolean().optional()
|
|
84916
84940
|
});
|
|
84917
84941
|
var LCNProfileValidator4 = mod4.object({
|
|
84918
|
-
profileId: mod4.string().min(3).max(40),
|
|
84919
|
-
displayName: mod4.string().default(""),
|
|
84920
|
-
shortBio: mod4.string().default(""),
|
|
84921
|
-
bio: mod4.string().default(""),
|
|
84922
|
-
did: mod4.string(),
|
|
84923
|
-
isPrivate: mod4.boolean().optional(),
|
|
84924
|
-
email: mod4.string().optional(),
|
|
84925
|
-
image: mod4.string().optional(),
|
|
84926
|
-
heroImage: mod4.string().optional(),
|
|
84927
|
-
websiteLink: mod4.string().optional(),
|
|
84928
|
-
isServiceProfile: mod4.boolean().default(false).optional(),
|
|
84929
|
-
type: mod4.string().optional(),
|
|
84930
|
-
notificationsWebhook: mod4.string().url().startsWith("http").optional(),
|
|
84931
|
-
display: LCNProfileDisplayValidator4.optional(),
|
|
84932
|
-
role: mod4.string().default("").optional(),
|
|
84933
|
-
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".')
|
|
84934
84958
|
});
|
|
84935
84959
|
var LCNProfileQueryValidator4 = mod4.object({
|
|
84936
84960
|
profileId: StringQuery4,
|