@learncard/learn-cloud-plugin 2.3.43 → 2.3.44
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/learn-cloud-plugin.cjs.development.cjs +346 -41
- package/dist/learn-cloud-plugin.cjs.development.cjs.map +3 -3
- package/dist/learn-cloud-plugin.cjs.production.min.cjs +39 -39
- package/dist/learn-cloud-plugin.cjs.production.min.cjs.map +3 -3
- package/dist/learn-cloud-plugin.esm.js +346 -41
- package/dist/learn-cloud-plugin.esm.js.map +3 -3
- package/package.json +7 -7
|
@@ -6,7 +6,11 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
8
8
|
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
-
|
|
9
|
+
try {
|
|
10
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
11
|
+
} catch (e2) {
|
|
12
|
+
throw mod = 0, e2;
|
|
13
|
+
}
|
|
10
14
|
};
|
|
11
15
|
var __export = (target, all) => {
|
|
12
16
|
for (var name in all)
|
|
@@ -6691,10 +6695,10 @@ function $constructor(name, initializer3, params) {
|
|
|
6691
6695
|
let Definition = _Definition;
|
|
6692
6696
|
Object.defineProperty(Definition, "name", { value: name });
|
|
6693
6697
|
function _(def) {
|
|
6694
|
-
var
|
|
6698
|
+
var _a5;
|
|
6695
6699
|
const inst = params?.Parent ? new Definition() : this;
|
|
6696
6700
|
init(inst, def);
|
|
6697
|
-
(
|
|
6701
|
+
(_a5 = inst._zod).deferred ?? (_a5.deferred = []);
|
|
6698
6702
|
for (const fn of inst._zod.deferred) {
|
|
6699
6703
|
fn();
|
|
6700
6704
|
}
|
|
@@ -7360,8 +7364,8 @@ function explicitlyAborted(x, startIndex = 0) {
|
|
|
7360
7364
|
__name(explicitlyAborted, "explicitlyAborted");
|
|
7361
7365
|
function prefixIssues(path, issues) {
|
|
7362
7366
|
return issues.map((iss) => {
|
|
7363
|
-
var
|
|
7364
|
-
(
|
|
7367
|
+
var _a5;
|
|
7368
|
+
(_a5 = iss).path ?? (_a5.path = []);
|
|
7365
7369
|
iss.path.unshift(path);
|
|
7366
7370
|
return iss;
|
|
7367
7371
|
});
|
|
@@ -7564,7 +7568,7 @@ __name(formatError, "formatError");
|
|
|
7564
7568
|
function treeifyError(error51, mapper = (issue2) => issue2.message) {
|
|
7565
7569
|
const result = { errors: [] };
|
|
7566
7570
|
const processError = /* @__PURE__ */ __name((error52, path = []) => {
|
|
7567
|
-
var
|
|
7571
|
+
var _a5, _b;
|
|
7568
7572
|
for (const issue2 of error52.issues) {
|
|
7569
7573
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
7570
7574
|
issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
|
|
@@ -7585,7 +7589,7 @@ function treeifyError(error51, mapper = (issue2) => issue2.message) {
|
|
|
7585
7589
|
const terminal = i === fullpath.length - 1;
|
|
7586
7590
|
if (typeof el === "string") {
|
|
7587
7591
|
curr.properties ?? (curr.properties = {});
|
|
7588
|
-
(
|
|
7592
|
+
(_a5 = curr.properties)[el] ?? (_a5[el] = { errors: [] });
|
|
7589
7593
|
curr = curr.properties[el];
|
|
7590
7594
|
} else {
|
|
7591
7595
|
curr.items ?? (curr.items = []);
|
|
@@ -7890,10 +7894,10 @@ var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
|
7890
7894
|
|
|
7891
7895
|
// ../../../node_modules/zod/v4/core/checks.js
|
|
7892
7896
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
7893
|
-
var
|
|
7897
|
+
var _a5;
|
|
7894
7898
|
inst._zod ?? (inst._zod = {});
|
|
7895
7899
|
inst._zod.def = def;
|
|
7896
|
-
(
|
|
7900
|
+
(_a5 = inst._zod).onattach ?? (_a5.onattach = []);
|
|
7897
7901
|
});
|
|
7898
7902
|
var numericOriginMap = {
|
|
7899
7903
|
number: "number",
|
|
@@ -7959,8 +7963,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
|
|
|
7959
7963
|
var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
7960
7964
|
$ZodCheck.init(inst, def);
|
|
7961
7965
|
inst._zod.onattach.push((inst2) => {
|
|
7962
|
-
var
|
|
7963
|
-
(
|
|
7966
|
+
var _a5;
|
|
7967
|
+
(_a5 = inst2._zod.bag).multipleOf ?? (_a5.multipleOf = def.value);
|
|
7964
7968
|
});
|
|
7965
7969
|
inst._zod.check = (payload) => {
|
|
7966
7970
|
if (typeof payload.value !== typeof def.value)
|
|
@@ -8093,9 +8097,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
|
|
|
8093
8097
|
};
|
|
8094
8098
|
});
|
|
8095
8099
|
var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
8096
|
-
var
|
|
8100
|
+
var _a5;
|
|
8097
8101
|
$ZodCheck.init(inst, def);
|
|
8098
|
-
(
|
|
8102
|
+
(_a5 = inst._zod.def).when ?? (_a5.when = (payload) => {
|
|
8099
8103
|
const val = payload.value;
|
|
8100
8104
|
return !nullish(val) && val.size !== void 0;
|
|
8101
8105
|
});
|
|
@@ -8121,9 +8125,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
|
|
|
8121
8125
|
};
|
|
8122
8126
|
});
|
|
8123
8127
|
var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
8124
|
-
var
|
|
8128
|
+
var _a5;
|
|
8125
8129
|
$ZodCheck.init(inst, def);
|
|
8126
|
-
(
|
|
8130
|
+
(_a5 = inst._zod.def).when ?? (_a5.when = (payload) => {
|
|
8127
8131
|
const val = payload.value;
|
|
8128
8132
|
return !nullish(val) && val.size !== void 0;
|
|
8129
8133
|
});
|
|
@@ -8149,9 +8153,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
|
|
|
8149
8153
|
};
|
|
8150
8154
|
});
|
|
8151
8155
|
var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
8152
|
-
var
|
|
8156
|
+
var _a5;
|
|
8153
8157
|
$ZodCheck.init(inst, def);
|
|
8154
|
-
(
|
|
8158
|
+
(_a5 = inst._zod.def).when ?? (_a5.when = (payload) => {
|
|
8155
8159
|
const val = payload.value;
|
|
8156
8160
|
return !nullish(val) && val.size !== void 0;
|
|
8157
8161
|
});
|
|
@@ -8179,9 +8183,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
|
|
|
8179
8183
|
};
|
|
8180
8184
|
});
|
|
8181
8185
|
var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
8182
|
-
var
|
|
8186
|
+
var _a5;
|
|
8183
8187
|
$ZodCheck.init(inst, def);
|
|
8184
|
-
(
|
|
8188
|
+
(_a5 = inst._zod.def).when ?? (_a5.when = (payload) => {
|
|
8185
8189
|
const val = payload.value;
|
|
8186
8190
|
return !nullish(val) && val.length !== void 0;
|
|
8187
8191
|
});
|
|
@@ -8208,9 +8212,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
|
|
|
8208
8212
|
};
|
|
8209
8213
|
});
|
|
8210
8214
|
var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
8211
|
-
var
|
|
8215
|
+
var _a5;
|
|
8212
8216
|
$ZodCheck.init(inst, def);
|
|
8213
|
-
(
|
|
8217
|
+
(_a5 = inst._zod.def).when ?? (_a5.when = (payload) => {
|
|
8214
8218
|
const val = payload.value;
|
|
8215
8219
|
return !nullish(val) && val.length !== void 0;
|
|
8216
8220
|
});
|
|
@@ -8237,9 +8241,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
|
|
|
8237
8241
|
};
|
|
8238
8242
|
});
|
|
8239
8243
|
var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
8240
|
-
var
|
|
8244
|
+
var _a5;
|
|
8241
8245
|
$ZodCheck.init(inst, def);
|
|
8242
|
-
(
|
|
8246
|
+
(_a5 = inst._zod.def).when ?? (_a5.when = (payload) => {
|
|
8243
8247
|
const val = payload.value;
|
|
8244
8248
|
return !nullish(val) && val.length !== void 0;
|
|
8245
8249
|
});
|
|
@@ -8268,7 +8272,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
8268
8272
|
};
|
|
8269
8273
|
});
|
|
8270
8274
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
8271
|
-
var
|
|
8275
|
+
var _a5, _b;
|
|
8272
8276
|
$ZodCheck.init(inst, def);
|
|
8273
8277
|
inst._zod.onattach.push((inst2) => {
|
|
8274
8278
|
const bag = inst2._zod.bag;
|
|
@@ -8279,7 +8283,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
|
|
|
8279
8283
|
}
|
|
8280
8284
|
});
|
|
8281
8285
|
if (def.pattern)
|
|
8282
|
-
(
|
|
8286
|
+
(_a5 = inst._zod).check ?? (_a5.check = (payload) => {
|
|
8283
8287
|
def.pattern.lastIndex = 0;
|
|
8284
8288
|
if (def.pattern.test(payload.value))
|
|
8285
8289
|
return;
|
|
@@ -8484,7 +8488,7 @@ var version = {
|
|
|
8484
8488
|
|
|
8485
8489
|
// ../../../node_modules/zod/v4/core/schemas.js
|
|
8486
8490
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
8487
|
-
var
|
|
8491
|
+
var _a5;
|
|
8488
8492
|
inst ?? (inst = {});
|
|
8489
8493
|
inst._zod.def = def;
|
|
8490
8494
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -8499,7 +8503,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
8499
8503
|
}
|
|
8500
8504
|
}
|
|
8501
8505
|
if (checks.length === 0) {
|
|
8502
|
-
(
|
|
8506
|
+
(_a5 = inst._zod).deferred ?? (_a5.deferred = []);
|
|
8503
8507
|
inst._zod.deferred?.push(() => {
|
|
8504
8508
|
inst._zod.run = inst._zod.parse;
|
|
8505
8509
|
});
|
|
@@ -17890,7 +17894,7 @@ function initializeContext(params) {
|
|
|
17890
17894
|
}
|
|
17891
17895
|
__name(initializeContext, "initializeContext");
|
|
17892
17896
|
function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
17893
|
-
var
|
|
17897
|
+
var _a5;
|
|
17894
17898
|
const def = schema._zod.def;
|
|
17895
17899
|
const seen = ctx.seen.get(schema);
|
|
17896
17900
|
if (seen) {
|
|
@@ -17938,7 +17942,7 @@ function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
17938
17942
|
delete result.schema.default;
|
|
17939
17943
|
}
|
|
17940
17944
|
if (ctx.io === "input" && "_prefault" in result.schema)
|
|
17941
|
-
(
|
|
17945
|
+
(_a5 = result.schema).default ?? (_a5.default = result.schema._prefault);
|
|
17942
17946
|
delete result.schema._prefault;
|
|
17943
17947
|
const _result = ctx.seen.get(schema);
|
|
17944
17948
|
return _result.schema;
|
|
@@ -21514,7 +21518,8 @@ var AssociationTypeValidator = external_exports.enum([
|
|
|
21514
21518
|
"replacedBy"
|
|
21515
21519
|
]).or(external_exports.string());
|
|
21516
21520
|
var AssociationValidator = external_exports.object({
|
|
21517
|
-
|
|
21521
|
+
// Accept compacted scalars while retaining the existing permissive array contract.
|
|
21522
|
+
type: external_exports.string().min(1).or(external_exports.string().array().nonempty()),
|
|
21518
21523
|
associationType: AssociationTypeValidator,
|
|
21519
21524
|
sourceId: external_exports.string().optional(),
|
|
21520
21525
|
targetId: external_exports.string()
|
|
@@ -22337,11 +22342,48 @@ var ConsentFlowContractDetailsValidator = external_exports.object({
|
|
|
22337
22342
|
updatedAt: external_exports.string(),
|
|
22338
22343
|
expiresAt: external_exports.string().optional(),
|
|
22339
22344
|
autoBoosts: external_exports.string().array().optional(),
|
|
22340
|
-
writers: external_exports.array(LCNProfileValidator).optional()
|
|
22345
|
+
writers: external_exports.array(LCNProfileValidator).optional(),
|
|
22346
|
+
recipients: external_exports.array(LCNPublicProfileValidator.extend({ did: external_exports.string() })).optional(),
|
|
22347
|
+
audienceVersion: external_exports.number().int().nonnegative().optional()
|
|
22341
22348
|
});
|
|
22342
|
-
var ConsentFlowContractRequestStatusValidator = external_exports.enum(["pending", "accepted", "denied"]).nullable();
|
|
22349
|
+
var ConsentFlowContractRequestStatusValidator = external_exports.enum(["pending", "accepted", "denied", "cancelled"]).nullable();
|
|
22343
22350
|
var ConsentFlowContractRequestReadStatusValidator = external_exports.enum(["unseen", "seen"]).nullable();
|
|
22344
|
-
var
|
|
22351
|
+
var ConsentFlowReferralValidator = external_exports.object({
|
|
22352
|
+
requestId: external_exports.string(),
|
|
22353
|
+
requestedBy: external_exports.string(),
|
|
22354
|
+
externalReferenceId: external_exports.string().max(256).optional()
|
|
22355
|
+
});
|
|
22356
|
+
var ContractRequestFieldsValidator = ConsentFlowReferralValidator.partial().extend({
|
|
22357
|
+
requestedAt: external_exports.string().optional(),
|
|
22358
|
+
message: external_exports.string().max(500).optional()
|
|
22359
|
+
});
|
|
22360
|
+
var SendContractRequestValidator = external_exports.object({
|
|
22361
|
+
contractUri: external_exports.string(),
|
|
22362
|
+
targetProfileId: external_exports.string(),
|
|
22363
|
+
externalReferenceId: external_exports.string().trim().min(1).max(256).optional(),
|
|
22364
|
+
message: external_exports.string().trim().max(500).optional()
|
|
22365
|
+
});
|
|
22366
|
+
var ConsentFlowWebhookMetadataValidator = external_exports.object({
|
|
22367
|
+
eventId: external_exports.string(),
|
|
22368
|
+
deliveryKey: external_exports.string(),
|
|
22369
|
+
event: external_exports.enum([
|
|
22370
|
+
"request_sent",
|
|
22371
|
+
"request_accepted",
|
|
22372
|
+
"request_denied",
|
|
22373
|
+
"request_cancelled",
|
|
22374
|
+
"consent_created",
|
|
22375
|
+
"consent_updated",
|
|
22376
|
+
"consent_withdrawn",
|
|
22377
|
+
"credentials_synced"
|
|
22378
|
+
]),
|
|
22379
|
+
contractUri: external_exports.string(),
|
|
22380
|
+
termsUri: external_exports.string().optional(),
|
|
22381
|
+
requestId: external_exports.string().optional(),
|
|
22382
|
+
requestedBy: external_exports.string().optional(),
|
|
22383
|
+
externalReferenceId: external_exports.string().optional(),
|
|
22384
|
+
recipientRole: external_exports.enum(["owner", "recipient", "requester", "target"])
|
|
22385
|
+
});
|
|
22386
|
+
var ConsentFlowContractRequestForProfileValidator = ContractRequestFieldsValidator.extend({
|
|
22345
22387
|
profile: LCNProfileValidator,
|
|
22346
22388
|
status: ConsentFlowContractRequestStatusValidator,
|
|
22347
22389
|
readStatus: ConsentFlowContractRequestReadStatusValidator.optional()
|
|
@@ -22387,6 +22429,7 @@ var PaginatedConsentFlowTermsValidator = PaginationResponseValidator.extend({
|
|
|
22387
22429
|
expiresAt: external_exports.string().optional(),
|
|
22388
22430
|
oneTime: external_exports.boolean().optional(),
|
|
22389
22431
|
terms: ConsentFlowTermsValidator,
|
|
22432
|
+
referral: ConsentFlowReferralValidator.optional(),
|
|
22390
22433
|
contract: ConsentFlowContractDetailsValidator,
|
|
22391
22434
|
uri: external_exports.string(),
|
|
22392
22435
|
consenter: LCNProfileValidator,
|
|
@@ -22482,6 +22525,7 @@ var ConsentFlowTransactionValidator = external_exports.object({
|
|
|
22482
22525
|
oneTime: external_exports.boolean().optional(),
|
|
22483
22526
|
terms: ConsentFlowTermsValidator.optional(),
|
|
22484
22527
|
guardianApproval: ConsentFlowGuardianApprovalValidator.optional(),
|
|
22528
|
+
referral: ConsentFlowReferralValidator.optional(),
|
|
22485
22529
|
id: external_exports.string(),
|
|
22486
22530
|
action: ConsentFlowTransactionActionValidator,
|
|
22487
22531
|
date: external_exports.string(),
|
|
@@ -22492,6 +22536,7 @@ var HolderExportConsentRecordValidator = external_exports.object({
|
|
|
22492
22536
|
status: ConsentFlowTermsStatusValidator,
|
|
22493
22537
|
contract: ConsentFlowContractDetailsValidator,
|
|
22494
22538
|
terms: ConsentFlowTermsValidator,
|
|
22539
|
+
referral: ConsentFlowReferralValidator.optional(),
|
|
22495
22540
|
transactions: ConsentFlowTransactionValidator.array()
|
|
22496
22541
|
});
|
|
22497
22542
|
var HolderExportMetadataValidator = external_exports.object({
|
|
@@ -23227,7 +23272,7 @@ var AppStoreListingSubmitterValidator = external_exports.object({
|
|
|
23227
23272
|
displayName: external_exports.string(),
|
|
23228
23273
|
email: external_exports.string().optional()
|
|
23229
23274
|
});
|
|
23230
|
-
var
|
|
23275
|
+
var AppStoreListingFieldsValidator = external_exports.object({
|
|
23231
23276
|
listing_id: external_exports.string(),
|
|
23232
23277
|
slug: external_exports.string().optional(),
|
|
23233
23278
|
display_name: external_exports.string(),
|
|
@@ -23253,15 +23298,33 @@ var AppStoreListingValidator = external_exports.object({
|
|
|
23253
23298
|
submitter: AppStoreListingSubmitterValidator.optional(),
|
|
23254
23299
|
contact_email: external_exports.string().email().optional()
|
|
23255
23300
|
});
|
|
23301
|
+
var PendingListingUpdateStatusValidator = external_exports.enum(["DRAFT", "PENDING_REVIEW"]);
|
|
23302
|
+
var PendingListingUpdateValidator = external_exports.object({
|
|
23303
|
+
status: PendingListingUpdateStatusValidator,
|
|
23304
|
+
submitted_at: external_exports.string().optional(),
|
|
23305
|
+
changes: AppStoreListingFieldsValidator.omit({
|
|
23306
|
+
listing_id: true,
|
|
23307
|
+
app_listing_status: true,
|
|
23308
|
+
promotion_level: true,
|
|
23309
|
+
submitted_at: true,
|
|
23310
|
+
submitter: true
|
|
23311
|
+
}).partial(),
|
|
23312
|
+
manifest_version: external_exports.number().int().min(1).optional()
|
|
23313
|
+
});
|
|
23314
|
+
var AppStoreListingValidator = AppStoreListingFieldsValidator.extend({
|
|
23315
|
+
pending_update: PendingListingUpdateValidator.optional()
|
|
23316
|
+
});
|
|
23256
23317
|
var AppStoreListingCreateValidator = AppStoreListingValidator.omit({
|
|
23257
23318
|
listing_id: true,
|
|
23258
23319
|
app_listing_status: true,
|
|
23259
|
-
promotion_level: true
|
|
23320
|
+
promotion_level: true,
|
|
23321
|
+
pending_update: true
|
|
23260
23322
|
});
|
|
23261
23323
|
var AppStoreListingUpdateValidator = AppStoreListingValidator.partial().omit({
|
|
23262
23324
|
listing_id: true,
|
|
23263
23325
|
app_listing_status: true,
|
|
23264
|
-
promotion_level: true
|
|
23326
|
+
promotion_level: true,
|
|
23327
|
+
pending_update: true
|
|
23265
23328
|
});
|
|
23266
23329
|
var InstalledAppValidator = AppStoreListingValidator.extend({
|
|
23267
23330
|
installed_at: external_exports.string()
|
|
@@ -23276,12 +23339,87 @@ var AppBoostValidator = external_exports.object({
|
|
|
23276
23339
|
templateAlias: external_exports.string().min(1).max(50).regex(/^[a-z0-9-]+$/),
|
|
23277
23340
|
boostUri: external_exports.string()
|
|
23278
23341
|
});
|
|
23279
|
-
var
|
|
23342
|
+
var InlineWalletCategoryValidator = external_exports.enum([
|
|
23343
|
+
"Achievement",
|
|
23344
|
+
"Skill",
|
|
23345
|
+
"ID",
|
|
23346
|
+
"Learning History",
|
|
23347
|
+
"Work History",
|
|
23348
|
+
"Social Badges",
|
|
23349
|
+
"Membership",
|
|
23350
|
+
"Accomplishment",
|
|
23351
|
+
"Experiences",
|
|
23352
|
+
"Accommodation",
|
|
23353
|
+
"Family"
|
|
23354
|
+
]);
|
|
23355
|
+
var InlineAlignmentValidator = external_exports.object({
|
|
23356
|
+
name: external_exports.string(),
|
|
23357
|
+
url: external_exports.string(),
|
|
23358
|
+
framework: external_exports.string().optional(),
|
|
23359
|
+
code: external_exports.string().optional()
|
|
23360
|
+
}).passthrough();
|
|
23361
|
+
var InlineEvidenceValidator = external_exports.object({
|
|
23362
|
+
id: external_exports.string().optional(),
|
|
23363
|
+
name: external_exports.string().optional(),
|
|
23364
|
+
narrative: external_exports.string().optional()
|
|
23365
|
+
}).passthrough();
|
|
23366
|
+
var InlineWalletSkillTagValidator = external_exports.object({
|
|
23367
|
+
frameworkId: external_exports.string(),
|
|
23368
|
+
id: external_exports.string(),
|
|
23369
|
+
proficiencyLevel: external_exports.string().optional()
|
|
23370
|
+
}).passthrough();
|
|
23371
|
+
var SimpleInlineCredentialTemplateValidator = external_exports.object({
|
|
23372
|
+
rawCredential: external_exports.undefined().optional(),
|
|
23373
|
+
name: external_exports.string(),
|
|
23374
|
+
description: external_exports.string().optional(),
|
|
23375
|
+
image: external_exports.string().optional(),
|
|
23376
|
+
issuerName: external_exports.string().optional(),
|
|
23377
|
+
achievementType: external_exports.string().optional(),
|
|
23378
|
+
category: InlineWalletCategoryValidator.optional(),
|
|
23379
|
+
criteria: external_exports.object({
|
|
23380
|
+
narrative: external_exports.string().optional(),
|
|
23381
|
+
url: external_exports.string().optional()
|
|
23382
|
+
}).passthrough().optional(),
|
|
23383
|
+
alignments: external_exports.array(InlineAlignmentValidator).optional(),
|
|
23384
|
+
tags: external_exports.array(external_exports.string()).optional(),
|
|
23385
|
+
activity: external_exports.object({
|
|
23386
|
+
startDate: external_exports.string().optional(),
|
|
23387
|
+
endDate: external_exports.string().optional()
|
|
23388
|
+
}).passthrough().optional(),
|
|
23389
|
+
credits: external_exports.object({
|
|
23390
|
+
earned: external_exports.union([external_exports.number(), external_exports.string()]).optional(),
|
|
23391
|
+
available: external_exports.union([external_exports.number(), external_exports.string()]).optional()
|
|
23392
|
+
}).passthrough().optional(),
|
|
23393
|
+
validUntil: external_exports.string().optional(),
|
|
23394
|
+
evidence: external_exports.array(InlineEvidenceValidator).optional(),
|
|
23395
|
+
walletSkills: external_exports.array(InlineWalletSkillTagValidator).optional()
|
|
23396
|
+
}).passthrough();
|
|
23397
|
+
var RawInlineCredentialTemplateValidator = external_exports.object({
|
|
23398
|
+
rawCredential: external_exports.record(external_exports.string(), external_exports.unknown()),
|
|
23399
|
+
category: InlineWalletCategoryValidator.optional(),
|
|
23400
|
+
walletSkills: external_exports.array(InlineWalletSkillTagValidator).optional()
|
|
23401
|
+
}).passthrough();
|
|
23402
|
+
var InlineCredentialTemplateValidator = external_exports.union([
|
|
23403
|
+
RawInlineCredentialTemplateValidator,
|
|
23404
|
+
SimpleInlineCredentialTemplateValidator
|
|
23405
|
+
]);
|
|
23406
|
+
var LegacySendCredentialEventValidator = external_exports.object({
|
|
23280
23407
|
type: external_exports.literal("send-credential"),
|
|
23281
23408
|
templateAlias: external_exports.string(),
|
|
23282
23409
|
templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
|
|
23283
23410
|
preventDuplicateClaim: external_exports.boolean().optional()
|
|
23284
23411
|
});
|
|
23412
|
+
var InlineSendCredentialEventValidator = external_exports.object({
|
|
23413
|
+
type: external_exports.literal("send-credential"),
|
|
23414
|
+
alias: external_exports.string(),
|
|
23415
|
+
template: InlineCredentialTemplateValidator,
|
|
23416
|
+
templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
|
|
23417
|
+
preventDuplicateClaim: external_exports.boolean().optional()
|
|
23418
|
+
});
|
|
23419
|
+
var SendCredentialEventValidator = external_exports.union([
|
|
23420
|
+
LegacySendCredentialEventValidator,
|
|
23421
|
+
InlineSendCredentialEventValidator
|
|
23422
|
+
]);
|
|
23285
23423
|
var CheckCredentialEventValidator = external_exports.object({
|
|
23286
23424
|
type: external_exports.literal("check-credential"),
|
|
23287
23425
|
templateAlias: external_exports.string().optional(),
|
|
@@ -23376,7 +23514,119 @@ var GetCountersEventValidator = external_exports.object({
|
|
|
23376
23514
|
type: external_exports.literal("get-counters"),
|
|
23377
23515
|
keys: external_exports.array(counterKeyValidator).min(1).max(50).optional()
|
|
23378
23516
|
});
|
|
23379
|
-
var
|
|
23517
|
+
var ConsentRequestWalletCategoryValidator = external_exports.enum([
|
|
23518
|
+
"Achievement",
|
|
23519
|
+
"Skill",
|
|
23520
|
+
"ID",
|
|
23521
|
+
"Learning History",
|
|
23522
|
+
"Work History",
|
|
23523
|
+
"Social Badges",
|
|
23524
|
+
"Membership",
|
|
23525
|
+
"Accomplishment",
|
|
23526
|
+
"Experiences",
|
|
23527
|
+
"Accommodation",
|
|
23528
|
+
"Family"
|
|
23529
|
+
]);
|
|
23530
|
+
var ConsentRequestPersonalFieldValidator = external_exports.enum([
|
|
23531
|
+
"name",
|
|
23532
|
+
"email",
|
|
23533
|
+
"phone",
|
|
23534
|
+
"birthDate",
|
|
23535
|
+
"country",
|
|
23536
|
+
"avatar"
|
|
23537
|
+
]);
|
|
23538
|
+
var ConsentRequestValidator = external_exports.object({
|
|
23539
|
+
read: external_exports.object({
|
|
23540
|
+
credentialCategories: external_exports.array(ConsentRequestWalletCategoryValidator).optional(),
|
|
23541
|
+
personalFields: external_exports.array(ConsentRequestPersonalFieldValidator).optional()
|
|
23542
|
+
}).optional(),
|
|
23543
|
+
write: external_exports.object({
|
|
23544
|
+
credentialCategories: external_exports.array(ConsentRequestWalletCategoryValidator).optional()
|
|
23545
|
+
}).optional(),
|
|
23546
|
+
reason: external_exports.string().optional()
|
|
23547
|
+
});
|
|
23548
|
+
var NormalizedConsentScopesValidator = external_exports.object({
|
|
23549
|
+
read: external_exports.object({
|
|
23550
|
+
credentialCategories: external_exports.array(ConsentRequestWalletCategoryValidator).default([]),
|
|
23551
|
+
personalFields: external_exports.array(ConsentRequestPersonalFieldValidator).default([])
|
|
23552
|
+
}),
|
|
23553
|
+
write: external_exports.object({
|
|
23554
|
+
credentialCategories: external_exports.array(ConsentRequestWalletCategoryValidator).default([])
|
|
23555
|
+
})
|
|
23556
|
+
});
|
|
23557
|
+
var CapturedTemplateRecordValidator = external_exports.object({
|
|
23558
|
+
alias: external_exports.string(),
|
|
23559
|
+
template: InlineCredentialTemplateValidator,
|
|
23560
|
+
version: external_exports.number().int().min(1),
|
|
23561
|
+
lastUsedAt: external_exports.string()
|
|
23562
|
+
}).passthrough();
|
|
23563
|
+
var CapturedConsentRecordValidator = external_exports.object({
|
|
23564
|
+
scopes: NormalizedConsentScopesValidator,
|
|
23565
|
+
reason: external_exports.string().optional(),
|
|
23566
|
+
lastUsedAt: external_exports.string()
|
|
23567
|
+
}).passthrough();
|
|
23568
|
+
var AppManifestValidator = external_exports.object({
|
|
23569
|
+
manifestVersion: external_exports.literal(1),
|
|
23570
|
+
appUrl: external_exports.string(),
|
|
23571
|
+
appKey: external_exports.string().max(200).optional(),
|
|
23572
|
+
suggestedName: external_exports.string().optional(),
|
|
23573
|
+
suggestedIconUrl: external_exports.string().optional(),
|
|
23574
|
+
permissions: external_exports.array(external_exports.string()).default([]),
|
|
23575
|
+
templates: external_exports.array(CapturedTemplateRecordValidator).default([]),
|
|
23576
|
+
consentRequests: external_exports.array(CapturedConsentRecordValidator).default([]),
|
|
23577
|
+
usedConsentContract: external_exports.boolean().optional(),
|
|
23578
|
+
featuresLaunched: external_exports.array(external_exports.string()).default([]),
|
|
23579
|
+
counterKeys: external_exports.array(external_exports.string()).default([]),
|
|
23580
|
+
usedLearnerContext: external_exports.boolean(),
|
|
23581
|
+
usedNotifications: external_exports.boolean(),
|
|
23582
|
+
firstCapturedAt: external_exports.string(),
|
|
23583
|
+
lastUpdatedAt: external_exports.string()
|
|
23584
|
+
}).passthrough();
|
|
23585
|
+
var AppManifestVersionStatusValidator = external_exports.enum(["draft", "active", "superseded"]);
|
|
23586
|
+
var AppManifestVersionValidator = external_exports.object({
|
|
23587
|
+
id: external_exports.string(),
|
|
23588
|
+
version: external_exports.number().int().min(1),
|
|
23589
|
+
manifestHash: external_exports.string(),
|
|
23590
|
+
manifest: AppManifestValidator,
|
|
23591
|
+
status: AppManifestVersionStatusValidator,
|
|
23592
|
+
createdAt: external_exports.string(),
|
|
23593
|
+
activatedAt: external_exports.string().optional()
|
|
23594
|
+
});
|
|
23595
|
+
var AppManifestStringDiffValidator = external_exports.object({
|
|
23596
|
+
added: external_exports.array(external_exports.string()),
|
|
23597
|
+
removed: external_exports.array(external_exports.string()),
|
|
23598
|
+
changed: external_exports.array(external_exports.string())
|
|
23599
|
+
});
|
|
23600
|
+
var AppManifestTemplateRefValidator = external_exports.object({
|
|
23601
|
+
alias: external_exports.string(),
|
|
23602
|
+
version: external_exports.number().int().min(1)
|
|
23603
|
+
});
|
|
23604
|
+
var AppManifestTemplateChangeValidator = external_exports.object({
|
|
23605
|
+
alias: external_exports.string(),
|
|
23606
|
+
fromVersion: external_exports.number().int().min(1),
|
|
23607
|
+
toVersion: external_exports.number().int().min(1)
|
|
23608
|
+
});
|
|
23609
|
+
var AppManifestDiffValidator = external_exports.object({
|
|
23610
|
+
permissions: AppManifestStringDiffValidator,
|
|
23611
|
+
templates: external_exports.object({
|
|
23612
|
+
added: external_exports.array(AppManifestTemplateRefValidator),
|
|
23613
|
+
removed: external_exports.array(AppManifestTemplateRefValidator),
|
|
23614
|
+
changed: external_exports.array(AppManifestTemplateChangeValidator)
|
|
23615
|
+
}),
|
|
23616
|
+
consentScopes: AppManifestStringDiffValidator,
|
|
23617
|
+
featurePaths: AppManifestStringDiffValidator,
|
|
23618
|
+
counterKeys: AppManifestStringDiffValidator,
|
|
23619
|
+
requiresReview: external_exports.boolean()
|
|
23620
|
+
});
|
|
23621
|
+
var UpsertConsentContractEventValidator = external_exports.object({
|
|
23622
|
+
type: external_exports.literal("upsert-consent-contract"),
|
|
23623
|
+
scopes: ConsentRequestValidator
|
|
23624
|
+
});
|
|
23625
|
+
var UpsertConsentContractResponseValidator = external_exports.object({
|
|
23626
|
+
contractUri: external_exports.string(),
|
|
23627
|
+
created: external_exports.boolean()
|
|
23628
|
+
});
|
|
23629
|
+
var AppEventValidator = external_exports.union([
|
|
23380
23630
|
SendCredentialEventValidator,
|
|
23381
23631
|
CheckCredentialEventValidator,
|
|
23382
23632
|
CheckIssuanceStatusEventValidator,
|
|
@@ -23386,7 +23636,8 @@ var AppEventValidator = external_exports.discriminatedUnion("type", [
|
|
|
23386
23636
|
SendNotificationEventValidator,
|
|
23387
23637
|
IncrementCounterEventValidator,
|
|
23388
23638
|
GetCounterEventValidator,
|
|
23389
|
-
GetCountersEventValidator
|
|
23639
|
+
GetCountersEventValidator,
|
|
23640
|
+
UpsertConsentContractEventValidator
|
|
23390
23641
|
]);
|
|
23391
23642
|
var AppEventInputValidator = external_exports.object({
|
|
23392
23643
|
listingId: external_exports.string(),
|
|
@@ -23460,6 +23711,15 @@ var AuthSessionError = (_a3 = class extends Error {
|
|
|
23460
23711
|
this.name = "AuthSessionError";
|
|
23461
23712
|
}
|
|
23462
23713
|
}, __name(_a3, "AuthSessionError"), __name2(_a3, "AuthSessionError"), _a3);
|
|
23714
|
+
var _a4;
|
|
23715
|
+
var UnsupportedSignInOperationError = (_a4 = class extends Error {
|
|
23716
|
+
constructor(operation, providerType) {
|
|
23717
|
+
super(`${operation} is not supported by ${providerType}`);
|
|
23718
|
+
this.operation = operation;
|
|
23719
|
+
this.providerType = providerType;
|
|
23720
|
+
this.name = "UnsupportedSignInOperationError";
|
|
23721
|
+
}
|
|
23722
|
+
}, __name(_a4, "UnsupportedSignInOperationError"), __name2(_a4, "UnsupportedSignInOperationError"), _a4);
|
|
23463
23723
|
var EscrowPinStatusValidator = external_exports.object({
|
|
23464
23724
|
state: external_exports.enum(["none", "enabled", "locked", "stale"]),
|
|
23465
23725
|
enabled: external_exports.boolean(),
|
|
@@ -23639,6 +23899,7 @@ var isCanonicalBase64Url = /* @__PURE__ */ __name2((value, expectedBytes) => {
|
|
|
23639
23899
|
if (expectedBytes !== void 0 && decoded.length !== expectedBytes) return false;
|
|
23640
23900
|
return encodeBase64Url(decoded) === value;
|
|
23641
23901
|
}, "isCanonicalBase64Url");
|
|
23902
|
+
var decodedBase64UrlByteLength = /* @__PURE__ */ __name2((value) => decodeBase64Url(value)?.length ?? null, "decodedBase64UrlByteLength");
|
|
23642
23903
|
var utf8ByteLength = /* @__PURE__ */ __name2((value) => new TextEncoder().encode(value).length, "utf8ByteLength");
|
|
23643
23904
|
var canonicalBase64Url = /* @__PURE__ */ __name2((bytes) => external_exports.string().refine((value) => isCanonicalBase64Url(value, bytes), {
|
|
23644
23905
|
message: `must be canonical base64url for exactly ${bytes} bytes`
|
|
@@ -23877,6 +24138,8 @@ var ShareLinkValidator = external_exports.object({
|
|
|
23877
24138
|
version: safeVersion,
|
|
23878
24139
|
contentVersion: safeVersion,
|
|
23879
24140
|
status: ShareLinkStatusValidator,
|
|
24141
|
+
attachmentId: external_exports.string().uuid().nullable().optional(),
|
|
24142
|
+
attachmentChunkCount: external_exports.number().int().min(1).max(16).nullable().optional(),
|
|
23880
24143
|
contentState: ShareContentStateValidator,
|
|
23881
24144
|
createdAt: external_exports.iso.datetime(),
|
|
23882
24145
|
updatedAt: external_exports.iso.datetime(),
|
|
@@ -23900,6 +24163,43 @@ var ShareLinkValidator = external_exports.object({
|
|
|
23900
24163
|
contentUrl: external_exports.string().optional()
|
|
23901
24164
|
});
|
|
23902
24165
|
var clientRequestId = external_exports.string().uuid();
|
|
24166
|
+
var ShareLinkAttachmentValidator = external_exports.object({
|
|
24167
|
+
id: external_exports.string().uuid(),
|
|
24168
|
+
chunkCount: external_exports.number().int().min(1).max(16)
|
|
24169
|
+
}).strict();
|
|
24170
|
+
var attachmentChunkKey = {
|
|
24171
|
+
id: ShareLinkIdValidator,
|
|
24172
|
+
contentVersion: safeVersion,
|
|
24173
|
+
attachmentId: external_exports.string().uuid(),
|
|
24174
|
+
chunkIndex: external_exports.number().int().min(0).max(15)
|
|
24175
|
+
};
|
|
24176
|
+
var ShareLinkAttachmentChunkEnvelopeValidator = ShareEnvelopeValidator.refine(
|
|
24177
|
+
(value) => (decodedBase64UrlByteLength(value.ct) ?? Infinity) <= 256 * 1024 + SHARE_TAG_BYTES
|
|
24178
|
+
);
|
|
24179
|
+
var PutShareLinkAttachmentChunkInputValidator = external_exports.object({
|
|
24180
|
+
...attachmentChunkKey,
|
|
24181
|
+
chunkCount: external_exports.number().int().min(1).max(16),
|
|
24182
|
+
envelope: ShareLinkAttachmentChunkEnvelopeValidator,
|
|
24183
|
+
ownerEncryptedRecovery: ShareOwnerRecoveryValidator
|
|
24184
|
+
}).strict().refine((value) => value.chunkIndex < value.chunkCount);
|
|
24185
|
+
var GetShareLinkAttachmentChunkInputValidator = external_exports.object({
|
|
24186
|
+
...attachmentChunkKey,
|
|
24187
|
+
passcode: external_exports.string().min(4).max(64).optional(),
|
|
24188
|
+
accessToken: external_exports.string().min(1).max(2048).optional()
|
|
24189
|
+
}).strict();
|
|
24190
|
+
var ShareLinkAttachmentChunkOutputValidator = external_exports.object({
|
|
24191
|
+
...attachmentChunkKey,
|
|
24192
|
+
envelope: ShareLinkAttachmentChunkEnvelopeValidator,
|
|
24193
|
+
accessToken: external_exports.string().min(1).max(2048).optional()
|
|
24194
|
+
}).strict();
|
|
24195
|
+
var DeleteShareLinkAttachmentChunksInputValidator = external_exports.object({
|
|
24196
|
+
id: ShareLinkIdValidator,
|
|
24197
|
+
contentVersion: safeVersion,
|
|
24198
|
+
attachmentId: external_exports.string().uuid(),
|
|
24199
|
+
chunkCount: external_exports.number().int().min(1).max(16)
|
|
24200
|
+
}).strict();
|
|
24201
|
+
var PutShareLinkAttachmentChunkOutputValidator = external_exports.object({ ok: external_exports.literal(true) }).strict();
|
|
24202
|
+
var DeleteShareLinkAttachmentChunksOutputValidator = external_exports.object({ ok: external_exports.boolean() }).strict();
|
|
23903
24203
|
var CreateShareLinkInputValidator = external_exports.object({
|
|
23904
24204
|
id: ShareLinkIdValidator,
|
|
23905
24205
|
clientRequestId,
|
|
@@ -23911,7 +24211,8 @@ var CreateShareLinkInputValidator = external_exports.object({
|
|
|
23911
24211
|
selectedCount: external_exports.number().int().min(1).max(MAX_SELECTED_CREDENTIALS),
|
|
23912
24212
|
contentVersion: external_exports.literal(1),
|
|
23913
24213
|
envelope: ShareEnvelopeValidator,
|
|
23914
|
-
ownerEncryptedRecovery: ShareOwnerRecoveryValidator
|
|
24214
|
+
ownerEncryptedRecovery: ShareOwnerRecoveryValidator,
|
|
24215
|
+
attachment: ShareLinkAttachmentValidator.optional()
|
|
23915
24216
|
}).strict();
|
|
23916
24217
|
var UpdateShareLinkInputValidator = external_exports.object({
|
|
23917
24218
|
id: ShareLinkIdValidator,
|
|
@@ -23926,7 +24227,8 @@ var UpdateShareLinkInputValidator = external_exports.object({
|
|
|
23926
24227
|
contentVersion: safeVersion.optional(),
|
|
23927
24228
|
selectedCount: external_exports.number().int().min(1).max(MAX_SELECTED_CREDENTIALS).optional(),
|
|
23928
24229
|
envelope: ShareEnvelopeValidator.optional(),
|
|
23929
|
-
ownerEncryptedRecovery: ShareOwnerRecoveryValidator.optional()
|
|
24230
|
+
ownerEncryptedRecovery: ShareOwnerRecoveryValidator.optional(),
|
|
24231
|
+
attachment: ShareLinkAttachmentValidator.optional()
|
|
23930
24232
|
}).strict().superRefine((value, ctx) => {
|
|
23931
24233
|
const provided = [
|
|
23932
24234
|
value.contentVersion,
|
|
@@ -23940,6 +24242,9 @@ var UpdateShareLinkInputValidator = external_exports.object({
|
|
|
23940
24242
|
message: "content replacement requires contentVersion, selectedCount, envelope and ownerEncryptedRecovery together"
|
|
23941
24243
|
});
|
|
23942
24244
|
}
|
|
24245
|
+
if (value.attachment !== void 0 && provided !== 4) {
|
|
24246
|
+
ctx.addIssue({ code: "custom", message: "attachment requires a content replacement" });
|
|
24247
|
+
}
|
|
23943
24248
|
});
|
|
23944
24249
|
var ShareLinkIdInputValidator = external_exports.object({ id: ShareLinkIdValidator }).strict();
|
|
23945
24250
|
var ShareLinkOperationKeyInputValidator = external_exports.object({ id: ShareLinkIdValidator, operationId: external_exports.string().uuid() }).strict();
|