@learncard/learn-cloud-plugin 2.3.12 → 2.3.16
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.js +96 -33
- package/dist/learn-cloud-plugin.cjs.development.js.map +3 -3
- package/dist/learn-cloud-plugin.cjs.production.min.js +11 -11
- package/dist/learn-cloud-plugin.cjs.production.min.js.map +3 -3
- package/dist/learn-cloud-plugin.esm.js +96 -33
- package/dist/learn-cloud-plugin.esm.js.map +3 -3
- package/package.json +7 -7
|
@@ -6654,10 +6654,10 @@ function $constructor(name, initializer3, params) {
|
|
|
6654
6654
|
let Definition = _Definition;
|
|
6655
6655
|
Object.defineProperty(Definition, "name", { value: name });
|
|
6656
6656
|
function _(def) {
|
|
6657
|
-
var
|
|
6657
|
+
var _a3;
|
|
6658
6658
|
const inst = params?.Parent ? new Definition() : this;
|
|
6659
6659
|
init(inst, def);
|
|
6660
|
-
(
|
|
6660
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
6661
6661
|
for (const fn of inst._zod.deferred) {
|
|
6662
6662
|
fn();
|
|
6663
6663
|
}
|
|
@@ -7283,8 +7283,8 @@ function aborted(x, startIndex = 0) {
|
|
|
7283
7283
|
__name(aborted, "aborted");
|
|
7284
7284
|
function prefixIssues(path, issues) {
|
|
7285
7285
|
return issues.map((iss) => {
|
|
7286
|
-
var
|
|
7287
|
-
(
|
|
7286
|
+
var _a3;
|
|
7287
|
+
(_a3 = iss).path ?? (_a3.path = []);
|
|
7288
7288
|
iss.path.unshift(path);
|
|
7289
7289
|
return iss;
|
|
7290
7290
|
});
|
|
@@ -7465,7 +7465,7 @@ __name(formatError, "formatError");
|
|
|
7465
7465
|
function treeifyError(error46, mapper = (issue2) => issue2.message) {
|
|
7466
7466
|
const result = { errors: [] };
|
|
7467
7467
|
const processError = /* @__PURE__ */ __name((error47, path = []) => {
|
|
7468
|
-
var
|
|
7468
|
+
var _a3, _b;
|
|
7469
7469
|
for (const issue2 of error47.issues) {
|
|
7470
7470
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
7471
7471
|
issue2.errors.map((issues) => processError({ issues }, issue2.path));
|
|
@@ -7486,7 +7486,7 @@ function treeifyError(error46, mapper = (issue2) => issue2.message) {
|
|
|
7486
7486
|
const terminal = i === fullpath.length - 1;
|
|
7487
7487
|
if (typeof el === "string") {
|
|
7488
7488
|
curr.properties ?? (curr.properties = {});
|
|
7489
|
-
(
|
|
7489
|
+
(_a3 = curr.properties)[el] ?? (_a3[el] = { errors: [] });
|
|
7490
7490
|
curr = curr.properties[el];
|
|
7491
7491
|
} else {
|
|
7492
7492
|
curr.items ?? (curr.items = []);
|
|
@@ -7789,10 +7789,10 @@ var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
|
7789
7789
|
|
|
7790
7790
|
// ../../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/checks.js
|
|
7791
7791
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
7792
|
-
var
|
|
7792
|
+
var _a3;
|
|
7793
7793
|
inst._zod ?? (inst._zod = {});
|
|
7794
7794
|
inst._zod.def = def;
|
|
7795
|
-
(
|
|
7795
|
+
(_a3 = inst._zod).onattach ?? (_a3.onattach = []);
|
|
7796
7796
|
});
|
|
7797
7797
|
var numericOriginMap = {
|
|
7798
7798
|
number: "number",
|
|
@@ -7858,8 +7858,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
|
|
|
7858
7858
|
var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
7859
7859
|
$ZodCheck.init(inst, def);
|
|
7860
7860
|
inst._zod.onattach.push((inst2) => {
|
|
7861
|
-
var
|
|
7862
|
-
(
|
|
7861
|
+
var _a3;
|
|
7862
|
+
(_a3 = inst2._zod.bag).multipleOf ?? (_a3.multipleOf = def.value);
|
|
7863
7863
|
});
|
|
7864
7864
|
inst._zod.check = (payload) => {
|
|
7865
7865
|
if (typeof payload.value !== typeof def.value)
|
|
@@ -7986,9 +7986,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
|
|
|
7986
7986
|
};
|
|
7987
7987
|
});
|
|
7988
7988
|
var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
7989
|
-
var
|
|
7989
|
+
var _a3;
|
|
7990
7990
|
$ZodCheck.init(inst, def);
|
|
7991
|
-
(
|
|
7991
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
7992
7992
|
const val = payload.value;
|
|
7993
7993
|
return !nullish(val) && val.size !== void 0;
|
|
7994
7994
|
});
|
|
@@ -8014,9 +8014,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
|
|
|
8014
8014
|
};
|
|
8015
8015
|
});
|
|
8016
8016
|
var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
8017
|
-
var
|
|
8017
|
+
var _a3;
|
|
8018
8018
|
$ZodCheck.init(inst, def);
|
|
8019
|
-
(
|
|
8019
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
8020
8020
|
const val = payload.value;
|
|
8021
8021
|
return !nullish(val) && val.size !== void 0;
|
|
8022
8022
|
});
|
|
@@ -8042,9 +8042,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
|
|
|
8042
8042
|
};
|
|
8043
8043
|
});
|
|
8044
8044
|
var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
8045
|
-
var
|
|
8045
|
+
var _a3;
|
|
8046
8046
|
$ZodCheck.init(inst, def);
|
|
8047
|
-
(
|
|
8047
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
8048
8048
|
const val = payload.value;
|
|
8049
8049
|
return !nullish(val) && val.size !== void 0;
|
|
8050
8050
|
});
|
|
@@ -8072,9 +8072,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
|
|
|
8072
8072
|
};
|
|
8073
8073
|
});
|
|
8074
8074
|
var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
8075
|
-
var
|
|
8075
|
+
var _a3;
|
|
8076
8076
|
$ZodCheck.init(inst, def);
|
|
8077
|
-
(
|
|
8077
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
8078
8078
|
const val = payload.value;
|
|
8079
8079
|
return !nullish(val) && val.length !== void 0;
|
|
8080
8080
|
});
|
|
@@ -8101,9 +8101,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
|
|
|
8101
8101
|
};
|
|
8102
8102
|
});
|
|
8103
8103
|
var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
8104
|
-
var
|
|
8104
|
+
var _a3;
|
|
8105
8105
|
$ZodCheck.init(inst, def);
|
|
8106
|
-
(
|
|
8106
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
8107
8107
|
const val = payload.value;
|
|
8108
8108
|
return !nullish(val) && val.length !== void 0;
|
|
8109
8109
|
});
|
|
@@ -8130,9 +8130,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
|
|
|
8130
8130
|
};
|
|
8131
8131
|
});
|
|
8132
8132
|
var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
8133
|
-
var
|
|
8133
|
+
var _a3;
|
|
8134
8134
|
$ZodCheck.init(inst, def);
|
|
8135
|
-
(
|
|
8135
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
8136
8136
|
const val = payload.value;
|
|
8137
8137
|
return !nullish(val) && val.length !== void 0;
|
|
8138
8138
|
});
|
|
@@ -8161,7 +8161,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
8161
8161
|
};
|
|
8162
8162
|
});
|
|
8163
8163
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
8164
|
-
var
|
|
8164
|
+
var _a3, _b;
|
|
8165
8165
|
$ZodCheck.init(inst, def);
|
|
8166
8166
|
inst._zod.onattach.push((inst2) => {
|
|
8167
8167
|
const bag = inst2._zod.bag;
|
|
@@ -8172,7 +8172,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
|
|
|
8172
8172
|
}
|
|
8173
8173
|
});
|
|
8174
8174
|
if (def.pattern)
|
|
8175
|
-
(
|
|
8175
|
+
(_a3 = inst._zod).check ?? (_a3.check = (payload) => {
|
|
8176
8176
|
def.pattern.lastIndex = 0;
|
|
8177
8177
|
if (def.pattern.test(payload.value))
|
|
8178
8178
|
return;
|
|
@@ -8377,7 +8377,7 @@ var version = {
|
|
|
8377
8377
|
|
|
8378
8378
|
// ../../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/schemas.js
|
|
8379
8379
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
8380
|
-
var
|
|
8380
|
+
var _a3;
|
|
8381
8381
|
inst ?? (inst = {});
|
|
8382
8382
|
inst._zod.def = def;
|
|
8383
8383
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -8392,7 +8392,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
8392
8392
|
}
|
|
8393
8393
|
}
|
|
8394
8394
|
if (checks.length === 0) {
|
|
8395
|
-
(
|
|
8395
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
8396
8396
|
inst._zod.deferred?.push(() => {
|
|
8397
8397
|
inst._zod.run = inst._zod.parse;
|
|
8398
8398
|
});
|
|
@@ -17194,7 +17194,7 @@ var _JSONSchemaGenerator = class _JSONSchemaGenerator {
|
|
|
17194
17194
|
this.seen = /* @__PURE__ */ new Map();
|
|
17195
17195
|
}
|
|
17196
17196
|
process(schema, _params = { path: [], schemaPath: [] }) {
|
|
17197
|
-
var
|
|
17197
|
+
var _a3;
|
|
17198
17198
|
const def = schema._zod.def;
|
|
17199
17199
|
const formatMap = {
|
|
17200
17200
|
guid: "uuid",
|
|
@@ -17708,7 +17708,7 @@ var _JSONSchemaGenerator = class _JSONSchemaGenerator {
|
|
|
17708
17708
|
delete result.schema.default;
|
|
17709
17709
|
}
|
|
17710
17710
|
if (this.io === "input" && result.schema._prefault)
|
|
17711
|
-
(
|
|
17711
|
+
(_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
|
|
17712
17712
|
delete result.schema._prefault;
|
|
17713
17713
|
const _result = this.seen.get(schema);
|
|
17714
17714
|
return _result.schema;
|
|
@@ -19988,6 +19988,16 @@ var ConsentFlowContractDetailsValidator = external_exports.object({
|
|
|
19988
19988
|
autoBoosts: external_exports.string().array().optional(),
|
|
19989
19989
|
writers: external_exports.array(LCNProfileValidator).optional()
|
|
19990
19990
|
});
|
|
19991
|
+
var ConsentFlowContractRequestStatusValidator = external_exports.enum(["pending", "accepted", "denied"]).nullable();
|
|
19992
|
+
var ConsentFlowContractRequestReadStatusValidator = external_exports.enum(["unseen", "seen"]).nullable();
|
|
19993
|
+
var ConsentFlowContractRequestForProfileValidator = external_exports.object({
|
|
19994
|
+
profile: LCNProfileValidator,
|
|
19995
|
+
status: ConsentFlowContractRequestStatusValidator,
|
|
19996
|
+
readStatus: ConsentFlowContractRequestReadStatusValidator.optional()
|
|
19997
|
+
});
|
|
19998
|
+
var ConsentFlowContractRequestForProfileListValidator = external_exports.array(
|
|
19999
|
+
ConsentFlowContractRequestForProfileValidator
|
|
20000
|
+
);
|
|
19991
20001
|
var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
|
|
19992
20002
|
records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
|
|
19993
20003
|
});
|
|
@@ -20148,7 +20158,9 @@ var LCNNotificationTypeEnumValidator = external_exports.enum([
|
|
|
20148
20158
|
"PROFILE_PARENT_APPROVED",
|
|
20149
20159
|
"APP_LISTING_SUBMITTED",
|
|
20150
20160
|
"APP_LISTING_APPROVED",
|
|
20151
|
-
"APP_LISTING_REJECTED"
|
|
20161
|
+
"APP_LISTING_REJECTED",
|
|
20162
|
+
"APP_LISTING_WITHDRAWN",
|
|
20163
|
+
"DEVICE_LINK_REQUEST"
|
|
20152
20164
|
]);
|
|
20153
20165
|
var LCNNotificationMessageValidator = external_exports.object({
|
|
20154
20166
|
title: external_exports.string().optional(),
|
|
@@ -20287,6 +20299,7 @@ var InboxCredentialValidator = external_exports.object({
|
|
|
20287
20299
|
webhookUrl: external_exports.string().optional(),
|
|
20288
20300
|
boostUri: external_exports.string().optional(),
|
|
20289
20301
|
activityId: external_exports.string().optional(),
|
|
20302
|
+
integrationId: external_exports.string().optional(),
|
|
20290
20303
|
signingAuthority: external_exports.object({
|
|
20291
20304
|
endpoint: external_exports.string().optional(),
|
|
20292
20305
|
name: external_exports.string().optional()
|
|
@@ -20388,8 +20401,9 @@ var IssueInboxCredentialResponseValidator = external_exports.object({
|
|
|
20388
20401
|
claimUrl: external_exports.string().url().optional(),
|
|
20389
20402
|
recipientDid: external_exports.string().optional()
|
|
20390
20403
|
});
|
|
20404
|
+
var CredentialNameRefValidator = external_exports.object({ name: external_exports.string() }).passthrough();
|
|
20391
20405
|
var ClaimInboxCredentialValidator = external_exports.object({
|
|
20392
|
-
credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).describe("The credential to issue."),
|
|
20406
|
+
credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).or(CredentialNameRefValidator).describe("The credential to issue, or a { name } reference to resolve a boost template."),
|
|
20393
20407
|
configuration: external_exports.object({
|
|
20394
20408
|
publishableKey: external_exports.string(),
|
|
20395
20409
|
signingAuthorityName: external_exports.string().optional(),
|
|
@@ -20672,6 +20686,12 @@ var PromotionLevelValidator = external_exports.enum([
|
|
|
20672
20686
|
"STANDARD",
|
|
20673
20687
|
"DEMOTED"
|
|
20674
20688
|
]);
|
|
20689
|
+
var AgeRatingValidator = external_exports.enum(["4+", "9+", "12+", "17+"]);
|
|
20690
|
+
var AppStoreListingSubmitterValidator = external_exports.object({
|
|
20691
|
+
profileId: external_exports.string(),
|
|
20692
|
+
displayName: external_exports.string(),
|
|
20693
|
+
email: external_exports.string().optional()
|
|
20694
|
+
});
|
|
20675
20695
|
var AppStoreListingValidator = external_exports.object({
|
|
20676
20696
|
listing_id: external_exports.string(),
|
|
20677
20697
|
slug: external_exports.string().optional(),
|
|
@@ -20691,7 +20711,12 @@ var AppStoreListingValidator = external_exports.object({
|
|
|
20691
20711
|
terms_url: external_exports.string().optional(),
|
|
20692
20712
|
highlights: external_exports.array(external_exports.string()).optional(),
|
|
20693
20713
|
screenshots: external_exports.array(external_exports.string()).optional(),
|
|
20694
|
-
hero_background_color: external_exports.string().optional()
|
|
20714
|
+
hero_background_color: external_exports.string().optional(),
|
|
20715
|
+
min_age: external_exports.number().int().min(0).max(18).optional(),
|
|
20716
|
+
age_rating: AgeRatingValidator.optional(),
|
|
20717
|
+
submitted_at: external_exports.string().optional(),
|
|
20718
|
+
submitter: AppStoreListingSubmitterValidator.optional(),
|
|
20719
|
+
contact_email: external_exports.string().email().optional()
|
|
20695
20720
|
});
|
|
20696
20721
|
var AppStoreListingCreateValidator = AppStoreListingValidator.omit({
|
|
20697
20722
|
listing_id: true,
|
|
@@ -20719,9 +20744,39 @@ var AppBoostValidator = external_exports.object({
|
|
|
20719
20744
|
var SendCredentialEventValidator = external_exports.object({
|
|
20720
20745
|
type: external_exports.literal("send-credential"),
|
|
20721
20746
|
templateAlias: external_exports.string(),
|
|
20722
|
-
templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
|
|
20747
|
+
templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
|
|
20748
|
+
preventDuplicateClaim: external_exports.boolean().optional()
|
|
20749
|
+
});
|
|
20750
|
+
var CheckCredentialEventValidator = external_exports.object({
|
|
20751
|
+
type: external_exports.literal("check-credential"),
|
|
20752
|
+
templateAlias: external_exports.string().optional(),
|
|
20753
|
+
boostUri: external_exports.string().optional()
|
|
20754
|
+
}).refine((input) => Boolean(input.templateAlias) !== Boolean(input.boostUri), {
|
|
20755
|
+
message: "Exactly one of templateAlias or boostUri is required"
|
|
20756
|
+
});
|
|
20757
|
+
var CheckIssuanceStatusEventValidator = external_exports.object({
|
|
20758
|
+
type: external_exports.literal("check-issuance-status"),
|
|
20759
|
+
templateAlias: external_exports.string().optional(),
|
|
20760
|
+
boostUri: external_exports.string().optional(),
|
|
20761
|
+
recipient: external_exports.string()
|
|
20762
|
+
}).refine((input) => Boolean(input.templateAlias) !== Boolean(input.boostUri), {
|
|
20763
|
+
message: "Exactly one of templateAlias or boostUri is required"
|
|
20723
20764
|
});
|
|
20724
|
-
var
|
|
20765
|
+
var GetTemplateRecipientsEventValidator = external_exports.object({
|
|
20766
|
+
type: external_exports.literal("get-template-recipients"),
|
|
20767
|
+
templateAlias: external_exports.string().optional(),
|
|
20768
|
+
boostUri: external_exports.string().optional(),
|
|
20769
|
+
limit: external_exports.number().optional(),
|
|
20770
|
+
cursor: external_exports.string().optional()
|
|
20771
|
+
}).refine((input) => Boolean(input.templateAlias) !== Boolean(input.boostUri), {
|
|
20772
|
+
message: "Exactly one of templateAlias or boostUri is required"
|
|
20773
|
+
});
|
|
20774
|
+
var AppEventValidator = external_exports.discriminatedUnion("type", [
|
|
20775
|
+
SendCredentialEventValidator,
|
|
20776
|
+
CheckCredentialEventValidator,
|
|
20777
|
+
CheckIssuanceStatusEventValidator,
|
|
20778
|
+
GetTemplateRecipientsEventValidator
|
|
20779
|
+
]);
|
|
20725
20780
|
var AppEventInputValidator = external_exports.object({
|
|
20726
20781
|
listingId: external_exports.string(),
|
|
20727
20782
|
event: AppEventValidator
|
|
@@ -20784,6 +20839,14 @@ var CredentialActivityStatsValidator = external_exports.object({
|
|
|
20784
20839
|
failed: external_exports.number(),
|
|
20785
20840
|
claimRate: external_exports.number()
|
|
20786
20841
|
});
|
|
20842
|
+
var _a2;
|
|
20843
|
+
var AuthSessionError = (_a2 = class extends Error {
|
|
20844
|
+
constructor(message, reason) {
|
|
20845
|
+
super(message);
|
|
20846
|
+
this.reason = reason;
|
|
20847
|
+
this.name = "AuthSessionError";
|
|
20848
|
+
}
|
|
20849
|
+
}, __name(_a2, "AuthSessionError"), __name2(_a2, "AuthSessionError"), _a2);
|
|
20787
20850
|
|
|
20788
20851
|
// src/helpers.ts
|
|
20789
20852
|
var import_json_stringify_deterministic = __toESM(require_lib());
|