@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
package/dist/init.esm.js
CHANGED
|
@@ -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,
|
|
@@ -11296,7 +11320,8 @@ var ConsentFlowContractDetailsValidator = mod.object({
|
|
|
11296
11320
|
createdAt: mod.string(),
|
|
11297
11321
|
updatedAt: mod.string(),
|
|
11298
11322
|
expiresAt: mod.string().optional(),
|
|
11299
|
-
autoBoosts: mod.string().array().optional()
|
|
11323
|
+
autoBoosts: mod.string().array().optional(),
|
|
11324
|
+
writers: mod.array(LCNProfileValidator).optional()
|
|
11300
11325
|
});
|
|
11301
11326
|
var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
|
|
11302
11327
|
records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
|
|
@@ -11337,7 +11362,8 @@ var ConsentFlowTermsValidator = mod.object({
|
|
|
11337
11362
|
write: mod.object({
|
|
11338
11363
|
credentials: mod.object({ categories: mod.record(mod.boolean()).default({}) }).default({}),
|
|
11339
11364
|
personal: mod.record(mod.boolean()).default({})
|
|
11340
|
-
}).default({})
|
|
11365
|
+
}).default({}),
|
|
11366
|
+
deniedWriters: mod.array(mod.string()).optional()
|
|
11341
11367
|
});
|
|
11342
11368
|
var PaginatedConsentFlowTermsValidator = PaginationResponseValidator.extend({
|
|
11343
11369
|
records: mod.object({
|
|
@@ -17102,22 +17128,22 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17102
17128
|
repeatIdBackgroundImage: mod5.boolean().optional()
|
|
17103
17129
|
});
|
|
17104
17130
|
var LCNProfileValidator5 = mod5.object({
|
|
17105
|
-
profileId: mod5.string().min(3).max(40),
|
|
17106
|
-
displayName: mod5.string().default(""),
|
|
17107
|
-
shortBio: mod5.string().default(""),
|
|
17108
|
-
bio: mod5.string().default(""),
|
|
17109
|
-
did: mod5.string(),
|
|
17110
|
-
isPrivate: mod5.boolean().optional(),
|
|
17111
|
-
email: mod5.string().optional(),
|
|
17112
|
-
image: mod5.string().optional(),
|
|
17113
|
-
heroImage: mod5.string().optional(),
|
|
17114
|
-
websiteLink: mod5.string().optional(),
|
|
17115
|
-
isServiceProfile: mod5.boolean().default(false).optional(),
|
|
17116
|
-
type: mod5.string().optional(),
|
|
17117
|
-
notificationsWebhook: mod5.string().url().startsWith("http").optional(),
|
|
17118
|
-
display: LCNProfileDisplayValidator5.optional(),
|
|
17119
|
-
role: mod5.string().default("").optional(),
|
|
17120
|
-
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".')
|
|
17121
17147
|
});
|
|
17122
17148
|
var LCNProfileQueryValidator5 = mod5.object({
|
|
17123
17149
|
profileId: StringQuery5,
|
|
@@ -17313,7 +17339,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17313
17339
|
createdAt: mod5.string(),
|
|
17314
17340
|
updatedAt: mod5.string(),
|
|
17315
17341
|
expiresAt: mod5.string().optional(),
|
|
17316
|
-
autoBoosts: mod5.string().array().optional()
|
|
17342
|
+
autoBoosts: mod5.string().array().optional(),
|
|
17343
|
+
writers: mod5.array(LCNProfileValidator5).optional()
|
|
17317
17344
|
});
|
|
17318
17345
|
var PaginatedConsentFlowContractsValidator5 = PaginationResponseValidator5.extend({
|
|
17319
17346
|
records: ConsentFlowContractDetailsValidator5.omit({ owner: true }).array()
|
|
@@ -17354,7 +17381,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17354
17381
|
write: mod5.object({
|
|
17355
17382
|
credentials: mod5.object({ categories: mod5.record(mod5.boolean()).default({}) }).default({}),
|
|
17356
17383
|
personal: mod5.record(mod5.boolean()).default({})
|
|
17357
|
-
}).default({})
|
|
17384
|
+
}).default({}),
|
|
17385
|
+
deniedWriters: mod5.array(mod5.string()).optional()
|
|
17358
17386
|
});
|
|
17359
17387
|
var PaginatedConsentFlowTermsValidator5 = PaginationResponseValidator5.extend({
|
|
17360
17388
|
records: mod5.object({
|
|
@@ -29477,22 +29505,22 @@ var require_types_cjs_development2 = __commonJS22({
|
|
|
29477
29505
|
repeatIdBackgroundImage: mod22.boolean().optional()
|
|
29478
29506
|
});
|
|
29479
29507
|
var LCNProfileValidator22 = mod22.object({
|
|
29480
|
-
profileId: mod22.string().min(3).max(40),
|
|
29481
|
-
displayName: mod22.string().default(""),
|
|
29482
|
-
shortBio: mod22.string().default(""),
|
|
29483
|
-
bio: mod22.string().default(""),
|
|
29484
|
-
did: mod22.string(),
|
|
29485
|
-
isPrivate: mod22.boolean().optional(),
|
|
29486
|
-
email: mod22.string().optional(),
|
|
29487
|
-
image: mod22.string().optional(),
|
|
29488
|
-
heroImage: mod22.string().optional(),
|
|
29489
|
-
websiteLink: mod22.string().optional(),
|
|
29490
|
-
isServiceProfile: mod22.boolean().default(false).optional(),
|
|
29491
|
-
type: mod22.string().optional(),
|
|
29492
|
-
notificationsWebhook: mod22.string().url().startsWith("http").optional(),
|
|
29493
|
-
display: LCNProfileDisplayValidator22.optional(),
|
|
29494
|
-
role: mod22.string().default("").optional(),
|
|
29495
|
-
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".')
|
|
29496
29524
|
});
|
|
29497
29525
|
var LCNProfileQueryValidator22 = mod22.object({
|
|
29498
29526
|
profileId: StringQuery22,
|
|
@@ -29688,7 +29716,8 @@ var require_types_cjs_development2 = __commonJS22({
|
|
|
29688
29716
|
createdAt: mod22.string(),
|
|
29689
29717
|
updatedAt: mod22.string(),
|
|
29690
29718
|
expiresAt: mod22.string().optional(),
|
|
29691
|
-
autoBoosts: mod22.string().array().optional()
|
|
29719
|
+
autoBoosts: mod22.string().array().optional(),
|
|
29720
|
+
writers: mod22.array(LCNProfileValidator22).optional()
|
|
29692
29721
|
});
|
|
29693
29722
|
var PaginatedConsentFlowContractsValidator22 = PaginationResponseValidator22.extend({
|
|
29694
29723
|
records: ConsentFlowContractDetailsValidator22.omit({ owner: true }).array()
|
|
@@ -29729,7 +29758,8 @@ var require_types_cjs_development2 = __commonJS22({
|
|
|
29729
29758
|
write: mod22.object({
|
|
29730
29759
|
credentials: mod22.object({ categories: mod22.record(mod22.boolean()).default({}) }).default({}),
|
|
29731
29760
|
personal: mod22.record(mod22.boolean()).default({})
|
|
29732
|
-
}).default({})
|
|
29761
|
+
}).default({}),
|
|
29762
|
+
deniedWriters: mod22.array(mod22.string()).optional()
|
|
29733
29763
|
});
|
|
29734
29764
|
var PaginatedConsentFlowTermsValidator22 = PaginationResponseValidator22.extend({
|
|
29735
29765
|
records: mod22.object({
|
|
@@ -33684,22 +33714,22 @@ var LCNProfileDisplayValidator2 = mod2.object({
|
|
|
33684
33714
|
repeatIdBackgroundImage: mod2.boolean().optional()
|
|
33685
33715
|
});
|
|
33686
33716
|
var LCNProfileValidator2 = mod2.object({
|
|
33687
|
-
profileId: mod2.string().min(3).max(40),
|
|
33688
|
-
displayName: mod2.string().default(""),
|
|
33689
|
-
shortBio: mod2.string().default(""),
|
|
33690
|
-
bio: mod2.string().default(""),
|
|
33691
|
-
did: mod2.string(),
|
|
33692
|
-
isPrivate: mod2.boolean().optional(),
|
|
33693
|
-
email: mod2.string().optional(),
|
|
33694
|
-
image: mod2.string().optional(),
|
|
33695
|
-
heroImage: mod2.string().optional(),
|
|
33696
|
-
websiteLink: mod2.string().optional(),
|
|
33697
|
-
isServiceProfile: mod2.boolean().default(false).optional(),
|
|
33698
|
-
type: mod2.string().optional(),
|
|
33699
|
-
notificationsWebhook: mod2.string().url().startsWith("http").optional(),
|
|
33700
|
-
display: LCNProfileDisplayValidator2.optional(),
|
|
33701
|
-
role: mod2.string().default("").optional(),
|
|
33702
|
-
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".')
|
|
33703
33733
|
});
|
|
33704
33734
|
var LCNProfileQueryValidator2 = mod2.object({
|
|
33705
33735
|
profileId: StringQuery2,
|
|
@@ -33895,7 +33925,8 @@ var ConsentFlowContractDetailsValidator2 = mod2.object({
|
|
|
33895
33925
|
createdAt: mod2.string(),
|
|
33896
33926
|
updatedAt: mod2.string(),
|
|
33897
33927
|
expiresAt: mod2.string().optional(),
|
|
33898
|
-
autoBoosts: mod2.string().array().optional()
|
|
33928
|
+
autoBoosts: mod2.string().array().optional(),
|
|
33929
|
+
writers: mod2.array(LCNProfileValidator2).optional()
|
|
33899
33930
|
});
|
|
33900
33931
|
var PaginatedConsentFlowContractsValidator2 = PaginationResponseValidator2.extend({
|
|
33901
33932
|
records: ConsentFlowContractDetailsValidator2.omit({ owner: true }).array()
|
|
@@ -33936,7 +33967,8 @@ var ConsentFlowTermsValidator2 = mod2.object({
|
|
|
33936
33967
|
write: mod2.object({
|
|
33937
33968
|
credentials: mod2.object({ categories: mod2.record(mod2.boolean()).default({}) }).default({}),
|
|
33938
33969
|
personal: mod2.record(mod2.boolean()).default({})
|
|
33939
|
-
}).default({})
|
|
33970
|
+
}).default({}),
|
|
33971
|
+
deniedWriters: mod2.array(mod2.string()).optional()
|
|
33940
33972
|
});
|
|
33941
33973
|
var PaginatedConsentFlowTermsValidator2 = PaginationResponseValidator2.extend({
|
|
33942
33974
|
records: mod2.object({
|
|
@@ -75273,22 +75305,22 @@ var require_helpers_cjs_development = __commonJS6({
|
|
|
75273
75305
|
repeatIdBackgroundImage: mod22.boolean().optional()
|
|
75274
75306
|
});
|
|
75275
75307
|
var LCNProfileValidator22 = mod22.object({
|
|
75276
|
-
profileId: mod22.string().min(3).max(40),
|
|
75277
|
-
displayName: mod22.string().default(""),
|
|
75278
|
-
shortBio: mod22.string().default(""),
|
|
75279
|
-
bio: mod22.string().default(""),
|
|
75280
|
-
did: mod22.string(),
|
|
75281
|
-
isPrivate: mod22.boolean().optional(),
|
|
75282
|
-
email: mod22.string().optional(),
|
|
75283
|
-
image: mod22.string().optional(),
|
|
75284
|
-
heroImage: mod22.string().optional(),
|
|
75285
|
-
websiteLink: mod22.string().optional(),
|
|
75286
|
-
isServiceProfile: mod22.boolean().default(false).optional(),
|
|
75287
|
-
type: mod22.string().optional(),
|
|
75288
|
-
notificationsWebhook: mod22.string().url().startsWith("http").optional(),
|
|
75289
|
-
display: LCNProfileDisplayValidator22.optional(),
|
|
75290
|
-
role: mod22.string().default("").optional(),
|
|
75291
|
-
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".')
|
|
75292
75324
|
});
|
|
75293
75325
|
var LCNProfileQueryValidator22 = mod22.object({
|
|
75294
75326
|
profileId: StringQuery22,
|
|
@@ -75484,7 +75516,8 @@ var require_helpers_cjs_development = __commonJS6({
|
|
|
75484
75516
|
createdAt: mod22.string(),
|
|
75485
75517
|
updatedAt: mod22.string(),
|
|
75486
75518
|
expiresAt: mod22.string().optional(),
|
|
75487
|
-
autoBoosts: mod22.string().array().optional()
|
|
75519
|
+
autoBoosts: mod22.string().array().optional(),
|
|
75520
|
+
writers: mod22.array(LCNProfileValidator22).optional()
|
|
75488
75521
|
});
|
|
75489
75522
|
var PaginatedConsentFlowContractsValidator22 = PaginationResponseValidator22.extend({
|
|
75490
75523
|
records: ConsentFlowContractDetailsValidator22.omit({ owner: true }).array()
|
|
@@ -75525,7 +75558,8 @@ var require_helpers_cjs_development = __commonJS6({
|
|
|
75525
75558
|
write: mod22.object({
|
|
75526
75559
|
credentials: mod22.object({ categories: mod22.record(mod22.boolean()).default({}) }).default({}),
|
|
75527
75560
|
personal: mod22.record(mod22.boolean()).default({})
|
|
75528
|
-
}).default({})
|
|
75561
|
+
}).default({}),
|
|
75562
|
+
deniedWriters: mod22.array(mod22.string()).optional()
|
|
75529
75563
|
});
|
|
75530
75564
|
var PaginatedConsentFlowTermsValidator22 = PaginationResponseValidator22.extend({
|
|
75531
75565
|
records: mod22.object({
|
|
@@ -79603,22 +79637,22 @@ var LCNProfileDisplayValidator3 = mod3.object({
|
|
|
79603
79637
|
repeatIdBackgroundImage: mod3.boolean().optional()
|
|
79604
79638
|
});
|
|
79605
79639
|
var LCNProfileValidator3 = mod3.object({
|
|
79606
|
-
profileId: mod3.string().min(3).max(40),
|
|
79607
|
-
displayName: mod3.string().default(""),
|
|
79608
|
-
shortBio: mod3.string().default(""),
|
|
79609
|
-
bio: mod3.string().default(""),
|
|
79610
|
-
did: mod3.string(),
|
|
79611
|
-
isPrivate: mod3.boolean().optional(),
|
|
79612
|
-
email: mod3.string().optional(),
|
|
79613
|
-
image: mod3.string().optional(),
|
|
79614
|
-
heroImage: mod3.string().optional(),
|
|
79615
|
-
websiteLink: mod3.string().optional(),
|
|
79616
|
-
isServiceProfile: mod3.boolean().default(false).optional(),
|
|
79617
|
-
type: mod3.string().optional(),
|
|
79618
|
-
notificationsWebhook: mod3.string().url().startsWith("http").optional(),
|
|
79619
|
-
display: LCNProfileDisplayValidator3.optional(),
|
|
79620
|
-
role: mod3.string().default("").optional(),
|
|
79621
|
-
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".')
|
|
79622
79656
|
});
|
|
79623
79657
|
var LCNProfileQueryValidator3 = mod3.object({
|
|
79624
79658
|
profileId: StringQuery3,
|
|
@@ -79814,7 +79848,8 @@ var ConsentFlowContractDetailsValidator3 = mod3.object({
|
|
|
79814
79848
|
createdAt: mod3.string(),
|
|
79815
79849
|
updatedAt: mod3.string(),
|
|
79816
79850
|
expiresAt: mod3.string().optional(),
|
|
79817
|
-
autoBoosts: mod3.string().array().optional()
|
|
79851
|
+
autoBoosts: mod3.string().array().optional(),
|
|
79852
|
+
writers: mod3.array(LCNProfileValidator3).optional()
|
|
79818
79853
|
});
|
|
79819
79854
|
var PaginatedConsentFlowContractsValidator3 = PaginationResponseValidator3.extend({
|
|
79820
79855
|
records: ConsentFlowContractDetailsValidator3.omit({ owner: true }).array()
|
|
@@ -79855,7 +79890,8 @@ var ConsentFlowTermsValidator3 = mod3.object({
|
|
|
79855
79890
|
write: mod3.object({
|
|
79856
79891
|
credentials: mod3.object({ categories: mod3.record(mod3.boolean()).default({}) }).default({}),
|
|
79857
79892
|
personal: mod3.record(mod3.boolean()).default({})
|
|
79858
|
-
}).default({})
|
|
79893
|
+
}).default({}),
|
|
79894
|
+
deniedWriters: mod3.array(mod3.string()).optional()
|
|
79859
79895
|
});
|
|
79860
79896
|
var PaginatedConsentFlowTermsValidator3 = PaginationResponseValidator3.extend({
|
|
79861
79897
|
records: mod3.object({
|
|
@@ -80599,6 +80635,19 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name14(async (learnCard, url)
|
|
|
80599
80635
|
throw new Error("Please make an account first!");
|
|
80600
80636
|
return client.contracts.createConsentFlowContract.mutate(contract);
|
|
80601
80637
|
},
|
|
80638
|
+
addAutoBoostsToContract: async (_learnCard, contractUri, autoboosts) => {
|
|
80639
|
+
if (!userData)
|
|
80640
|
+
throw new Error("Please make an account first!");
|
|
80641
|
+
return client.contracts.addAutoBoostsToContract.mutate({ contractUri, autoboosts });
|
|
80642
|
+
},
|
|
80643
|
+
removeAutoBoostsFromContract: async (_learnCard, contractUri, boostUris) => {
|
|
80644
|
+
if (!userData)
|
|
80645
|
+
throw new Error("Please make an account first!");
|
|
80646
|
+
return client.contracts.removeAutoBoostsFromContract.mutate({
|
|
80647
|
+
contractUri,
|
|
80648
|
+
boostUris
|
|
80649
|
+
});
|
|
80650
|
+
},
|
|
80602
80651
|
getContract: async (_learnCard, uri) => {
|
|
80603
80652
|
return client.contracts.getConsentFlowContract.query({ uri });
|
|
80604
80653
|
},
|
|
@@ -84852,22 +84901,22 @@ var LCNProfileDisplayValidator4 = mod4.object({
|
|
|
84852
84901
|
repeatIdBackgroundImage: mod4.boolean().optional()
|
|
84853
84902
|
});
|
|
84854
84903
|
var LCNProfileValidator4 = mod4.object({
|
|
84855
|
-
profileId: mod4.string().min(3).max(40),
|
|
84856
|
-
displayName: mod4.string().default(""),
|
|
84857
|
-
shortBio: mod4.string().default(""),
|
|
84858
|
-
bio: mod4.string().default(""),
|
|
84859
|
-
did: mod4.string(),
|
|
84860
|
-
isPrivate: mod4.boolean().optional(),
|
|
84861
|
-
email: mod4.string().optional(),
|
|
84862
|
-
image: mod4.string().optional(),
|
|
84863
|
-
heroImage: mod4.string().optional(),
|
|
84864
|
-
websiteLink: mod4.string().optional(),
|
|
84865
|
-
isServiceProfile: mod4.boolean().default(false).optional(),
|
|
84866
|
-
type: mod4.string().optional(),
|
|
84867
|
-
notificationsWebhook: mod4.string().url().startsWith("http").optional(),
|
|
84868
|
-
display: LCNProfileDisplayValidator4.optional(),
|
|
84869
|
-
role: mod4.string().default("").optional(),
|
|
84870
|
-
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".')
|
|
84871
84920
|
});
|
|
84872
84921
|
var LCNProfileQueryValidator4 = mod4.object({
|
|
84873
84922
|
profileId: StringQuery4,
|
|
@@ -85063,7 +85112,8 @@ var ConsentFlowContractDetailsValidator4 = mod4.object({
|
|
|
85063
85112
|
createdAt: mod4.string(),
|
|
85064
85113
|
updatedAt: mod4.string(),
|
|
85065
85114
|
expiresAt: mod4.string().optional(),
|
|
85066
|
-
autoBoosts: mod4.string().array().optional()
|
|
85115
|
+
autoBoosts: mod4.string().array().optional(),
|
|
85116
|
+
writers: mod4.array(LCNProfileValidator4).optional()
|
|
85067
85117
|
});
|
|
85068
85118
|
var PaginatedConsentFlowContractsValidator4 = PaginationResponseValidator4.extend({
|
|
85069
85119
|
records: ConsentFlowContractDetailsValidator4.omit({ owner: true }).array()
|
|
@@ -85104,7 +85154,8 @@ var ConsentFlowTermsValidator4 = mod4.object({
|
|
|
85104
85154
|
write: mod4.object({
|
|
85105
85155
|
credentials: mod4.object({ categories: mod4.record(mod4.boolean()).default({}) }).default({}),
|
|
85106
85156
|
personal: mod4.record(mod4.boolean()).default({})
|
|
85107
|
-
}).default({})
|
|
85157
|
+
}).default({}),
|
|
85158
|
+
deniedWriters: mod4.array(mod4.string()).optional()
|
|
85108
85159
|
});
|
|
85109
85160
|
var PaginatedConsentFlowTermsValidator4 = PaginationResponseValidator4.extend({
|
|
85110
85161
|
records: mod4.object({
|