@learncard/learn-cloud-plugin 2.3.13 → 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 +93 -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 +93 -33
- package/dist/learn-cloud-plugin.esm.js.map +3 -3
- package/package.json +7 -7
|
@@ -6663,10 +6663,10 @@ function $constructor(name, initializer3, params) {
|
|
|
6663
6663
|
let Definition = _Definition;
|
|
6664
6664
|
Object.defineProperty(Definition, "name", { value: name });
|
|
6665
6665
|
function _(def) {
|
|
6666
|
-
var
|
|
6666
|
+
var _a3;
|
|
6667
6667
|
const inst = params?.Parent ? new Definition() : this;
|
|
6668
6668
|
init(inst, def);
|
|
6669
|
-
(
|
|
6669
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
6670
6670
|
for (const fn of inst._zod.deferred) {
|
|
6671
6671
|
fn();
|
|
6672
6672
|
}
|
|
@@ -7292,8 +7292,8 @@ function aborted(x, startIndex = 0) {
|
|
|
7292
7292
|
__name(aborted, "aborted");
|
|
7293
7293
|
function prefixIssues(path, issues) {
|
|
7294
7294
|
return issues.map((iss) => {
|
|
7295
|
-
var
|
|
7296
|
-
(
|
|
7295
|
+
var _a3;
|
|
7296
|
+
(_a3 = iss).path ?? (_a3.path = []);
|
|
7297
7297
|
iss.path.unshift(path);
|
|
7298
7298
|
return iss;
|
|
7299
7299
|
});
|
|
@@ -7474,7 +7474,7 @@ __name(formatError, "formatError");
|
|
|
7474
7474
|
function treeifyError(error46, mapper = (issue2) => issue2.message) {
|
|
7475
7475
|
const result = { errors: [] };
|
|
7476
7476
|
const processError = /* @__PURE__ */ __name((error47, path = []) => {
|
|
7477
|
-
var
|
|
7477
|
+
var _a3, _b;
|
|
7478
7478
|
for (const issue2 of error47.issues) {
|
|
7479
7479
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
7480
7480
|
issue2.errors.map((issues) => processError({ issues }, issue2.path));
|
|
@@ -7495,7 +7495,7 @@ function treeifyError(error46, mapper = (issue2) => issue2.message) {
|
|
|
7495
7495
|
const terminal = i === fullpath.length - 1;
|
|
7496
7496
|
if (typeof el === "string") {
|
|
7497
7497
|
curr.properties ?? (curr.properties = {});
|
|
7498
|
-
(
|
|
7498
|
+
(_a3 = curr.properties)[el] ?? (_a3[el] = { errors: [] });
|
|
7499
7499
|
curr = curr.properties[el];
|
|
7500
7500
|
} else {
|
|
7501
7501
|
curr.items ?? (curr.items = []);
|
|
@@ -7798,10 +7798,10 @@ var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
|
7798
7798
|
|
|
7799
7799
|
// ../../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/checks.js
|
|
7800
7800
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
7801
|
-
var
|
|
7801
|
+
var _a3;
|
|
7802
7802
|
inst._zod ?? (inst._zod = {});
|
|
7803
7803
|
inst._zod.def = def;
|
|
7804
|
-
(
|
|
7804
|
+
(_a3 = inst._zod).onattach ?? (_a3.onattach = []);
|
|
7805
7805
|
});
|
|
7806
7806
|
var numericOriginMap = {
|
|
7807
7807
|
number: "number",
|
|
@@ -7867,8 +7867,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
|
|
|
7867
7867
|
var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
7868
7868
|
$ZodCheck.init(inst, def);
|
|
7869
7869
|
inst._zod.onattach.push((inst2) => {
|
|
7870
|
-
var
|
|
7871
|
-
(
|
|
7870
|
+
var _a3;
|
|
7871
|
+
(_a3 = inst2._zod.bag).multipleOf ?? (_a3.multipleOf = def.value);
|
|
7872
7872
|
});
|
|
7873
7873
|
inst._zod.check = (payload) => {
|
|
7874
7874
|
if (typeof payload.value !== typeof def.value)
|
|
@@ -7995,9 +7995,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
|
|
|
7995
7995
|
};
|
|
7996
7996
|
});
|
|
7997
7997
|
var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
7998
|
-
var
|
|
7998
|
+
var _a3;
|
|
7999
7999
|
$ZodCheck.init(inst, def);
|
|
8000
|
-
(
|
|
8000
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
8001
8001
|
const val = payload.value;
|
|
8002
8002
|
return !nullish(val) && val.size !== void 0;
|
|
8003
8003
|
});
|
|
@@ -8023,9 +8023,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
|
|
|
8023
8023
|
};
|
|
8024
8024
|
});
|
|
8025
8025
|
var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
8026
|
-
var
|
|
8026
|
+
var _a3;
|
|
8027
8027
|
$ZodCheck.init(inst, def);
|
|
8028
|
-
(
|
|
8028
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
8029
8029
|
const val = payload.value;
|
|
8030
8030
|
return !nullish(val) && val.size !== void 0;
|
|
8031
8031
|
});
|
|
@@ -8051,9 +8051,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
|
|
|
8051
8051
|
};
|
|
8052
8052
|
});
|
|
8053
8053
|
var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
8054
|
-
var
|
|
8054
|
+
var _a3;
|
|
8055
8055
|
$ZodCheck.init(inst, def);
|
|
8056
|
-
(
|
|
8056
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
8057
8057
|
const val = payload.value;
|
|
8058
8058
|
return !nullish(val) && val.size !== void 0;
|
|
8059
8059
|
});
|
|
@@ -8081,9 +8081,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
|
|
|
8081
8081
|
};
|
|
8082
8082
|
});
|
|
8083
8083
|
var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
8084
|
-
var
|
|
8084
|
+
var _a3;
|
|
8085
8085
|
$ZodCheck.init(inst, def);
|
|
8086
|
-
(
|
|
8086
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
8087
8087
|
const val = payload.value;
|
|
8088
8088
|
return !nullish(val) && val.length !== void 0;
|
|
8089
8089
|
});
|
|
@@ -8110,9 +8110,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
|
|
|
8110
8110
|
};
|
|
8111
8111
|
});
|
|
8112
8112
|
var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
8113
|
-
var
|
|
8113
|
+
var _a3;
|
|
8114
8114
|
$ZodCheck.init(inst, def);
|
|
8115
|
-
(
|
|
8115
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
8116
8116
|
const val = payload.value;
|
|
8117
8117
|
return !nullish(val) && val.length !== void 0;
|
|
8118
8118
|
});
|
|
@@ -8139,9 +8139,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
|
|
|
8139
8139
|
};
|
|
8140
8140
|
});
|
|
8141
8141
|
var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
8142
|
-
var
|
|
8142
|
+
var _a3;
|
|
8143
8143
|
$ZodCheck.init(inst, def);
|
|
8144
|
-
(
|
|
8144
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
8145
8145
|
const val = payload.value;
|
|
8146
8146
|
return !nullish(val) && val.length !== void 0;
|
|
8147
8147
|
});
|
|
@@ -8170,7 +8170,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
8170
8170
|
};
|
|
8171
8171
|
});
|
|
8172
8172
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
8173
|
-
var
|
|
8173
|
+
var _a3, _b;
|
|
8174
8174
|
$ZodCheck.init(inst, def);
|
|
8175
8175
|
inst._zod.onattach.push((inst2) => {
|
|
8176
8176
|
const bag = inst2._zod.bag;
|
|
@@ -8181,7 +8181,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
|
|
|
8181
8181
|
}
|
|
8182
8182
|
});
|
|
8183
8183
|
if (def.pattern)
|
|
8184
|
-
(
|
|
8184
|
+
(_a3 = inst._zod).check ?? (_a3.check = (payload) => {
|
|
8185
8185
|
def.pattern.lastIndex = 0;
|
|
8186
8186
|
if (def.pattern.test(payload.value))
|
|
8187
8187
|
return;
|
|
@@ -8386,7 +8386,7 @@ var version = {
|
|
|
8386
8386
|
|
|
8387
8387
|
// ../../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/schemas.js
|
|
8388
8388
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
8389
|
-
var
|
|
8389
|
+
var _a3;
|
|
8390
8390
|
inst ?? (inst = {});
|
|
8391
8391
|
inst._zod.def = def;
|
|
8392
8392
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -8401,7 +8401,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
8401
8401
|
}
|
|
8402
8402
|
}
|
|
8403
8403
|
if (checks.length === 0) {
|
|
8404
|
-
(
|
|
8404
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
8405
8405
|
inst._zod.deferred?.push(() => {
|
|
8406
8406
|
inst._zod.run = inst._zod.parse;
|
|
8407
8407
|
});
|
|
@@ -17203,7 +17203,7 @@ var _JSONSchemaGenerator = class _JSONSchemaGenerator {
|
|
|
17203
17203
|
this.seen = /* @__PURE__ */ new Map();
|
|
17204
17204
|
}
|
|
17205
17205
|
process(schema, _params = { path: [], schemaPath: [] }) {
|
|
17206
|
-
var
|
|
17206
|
+
var _a3;
|
|
17207
17207
|
const def = schema._zod.def;
|
|
17208
17208
|
const formatMap = {
|
|
17209
17209
|
guid: "uuid",
|
|
@@ -17717,7 +17717,7 @@ var _JSONSchemaGenerator = class _JSONSchemaGenerator {
|
|
|
17717
17717
|
delete result.schema.default;
|
|
17718
17718
|
}
|
|
17719
17719
|
if (this.io === "input" && result.schema._prefault)
|
|
17720
|
-
(
|
|
17720
|
+
(_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
|
|
17721
17721
|
delete result.schema._prefault;
|
|
17722
17722
|
const _result = this.seen.get(schema);
|
|
17723
17723
|
return _result.schema;
|
|
@@ -19997,6 +19997,16 @@ var ConsentFlowContractDetailsValidator = external_exports.object({
|
|
|
19997
19997
|
autoBoosts: external_exports.string().array().optional(),
|
|
19998
19998
|
writers: external_exports.array(LCNProfileValidator).optional()
|
|
19999
19999
|
});
|
|
20000
|
+
var ConsentFlowContractRequestStatusValidator = external_exports.enum(["pending", "accepted", "denied"]).nullable();
|
|
20001
|
+
var ConsentFlowContractRequestReadStatusValidator = external_exports.enum(["unseen", "seen"]).nullable();
|
|
20002
|
+
var ConsentFlowContractRequestForProfileValidator = external_exports.object({
|
|
20003
|
+
profile: LCNProfileValidator,
|
|
20004
|
+
status: ConsentFlowContractRequestStatusValidator,
|
|
20005
|
+
readStatus: ConsentFlowContractRequestReadStatusValidator.optional()
|
|
20006
|
+
});
|
|
20007
|
+
var ConsentFlowContractRequestForProfileListValidator = external_exports.array(
|
|
20008
|
+
ConsentFlowContractRequestForProfileValidator
|
|
20009
|
+
);
|
|
20000
20010
|
var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
|
|
20001
20011
|
records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
|
|
20002
20012
|
});
|
|
@@ -20157,7 +20167,9 @@ var LCNNotificationTypeEnumValidator = external_exports.enum([
|
|
|
20157
20167
|
"PROFILE_PARENT_APPROVED",
|
|
20158
20168
|
"APP_LISTING_SUBMITTED",
|
|
20159
20169
|
"APP_LISTING_APPROVED",
|
|
20160
|
-
"APP_LISTING_REJECTED"
|
|
20170
|
+
"APP_LISTING_REJECTED",
|
|
20171
|
+
"APP_LISTING_WITHDRAWN",
|
|
20172
|
+
"DEVICE_LINK_REQUEST"
|
|
20161
20173
|
]);
|
|
20162
20174
|
var LCNNotificationMessageValidator = external_exports.object({
|
|
20163
20175
|
title: external_exports.string().optional(),
|
|
@@ -20296,6 +20308,7 @@ var InboxCredentialValidator = external_exports.object({
|
|
|
20296
20308
|
webhookUrl: external_exports.string().optional(),
|
|
20297
20309
|
boostUri: external_exports.string().optional(),
|
|
20298
20310
|
activityId: external_exports.string().optional(),
|
|
20311
|
+
integrationId: external_exports.string().optional(),
|
|
20299
20312
|
signingAuthority: external_exports.object({
|
|
20300
20313
|
endpoint: external_exports.string().optional(),
|
|
20301
20314
|
name: external_exports.string().optional()
|
|
@@ -20397,8 +20410,9 @@ var IssueInboxCredentialResponseValidator = external_exports.object({
|
|
|
20397
20410
|
claimUrl: external_exports.string().url().optional(),
|
|
20398
20411
|
recipientDid: external_exports.string().optional()
|
|
20399
20412
|
});
|
|
20413
|
+
var CredentialNameRefValidator = external_exports.object({ name: external_exports.string() }).passthrough();
|
|
20400
20414
|
var ClaimInboxCredentialValidator = external_exports.object({
|
|
20401
|
-
credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).describe("The credential to issue."),
|
|
20415
|
+
credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).or(CredentialNameRefValidator).describe("The credential to issue, or a { name } reference to resolve a boost template."),
|
|
20402
20416
|
configuration: external_exports.object({
|
|
20403
20417
|
publishableKey: external_exports.string(),
|
|
20404
20418
|
signingAuthorityName: external_exports.string().optional(),
|
|
@@ -20682,6 +20696,11 @@ var PromotionLevelValidator = external_exports.enum([
|
|
|
20682
20696
|
"DEMOTED"
|
|
20683
20697
|
]);
|
|
20684
20698
|
var AgeRatingValidator = external_exports.enum(["4+", "9+", "12+", "17+"]);
|
|
20699
|
+
var AppStoreListingSubmitterValidator = external_exports.object({
|
|
20700
|
+
profileId: external_exports.string(),
|
|
20701
|
+
displayName: external_exports.string(),
|
|
20702
|
+
email: external_exports.string().optional()
|
|
20703
|
+
});
|
|
20685
20704
|
var AppStoreListingValidator = external_exports.object({
|
|
20686
20705
|
listing_id: external_exports.string(),
|
|
20687
20706
|
slug: external_exports.string().optional(),
|
|
@@ -20703,7 +20722,10 @@ var AppStoreListingValidator = external_exports.object({
|
|
|
20703
20722
|
screenshots: external_exports.array(external_exports.string()).optional(),
|
|
20704
20723
|
hero_background_color: external_exports.string().optional(),
|
|
20705
20724
|
min_age: external_exports.number().int().min(0).max(18).optional(),
|
|
20706
|
-
age_rating: AgeRatingValidator.optional()
|
|
20725
|
+
age_rating: AgeRatingValidator.optional(),
|
|
20726
|
+
submitted_at: external_exports.string().optional(),
|
|
20727
|
+
submitter: AppStoreListingSubmitterValidator.optional(),
|
|
20728
|
+
contact_email: external_exports.string().email().optional()
|
|
20707
20729
|
});
|
|
20708
20730
|
var AppStoreListingCreateValidator = AppStoreListingValidator.omit({
|
|
20709
20731
|
listing_id: true,
|
|
@@ -20731,9 +20753,39 @@ var AppBoostValidator = external_exports.object({
|
|
|
20731
20753
|
var SendCredentialEventValidator = external_exports.object({
|
|
20732
20754
|
type: external_exports.literal("send-credential"),
|
|
20733
20755
|
templateAlias: external_exports.string(),
|
|
20734
|
-
templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
|
|
20756
|
+
templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
|
|
20757
|
+
preventDuplicateClaim: external_exports.boolean().optional()
|
|
20758
|
+
});
|
|
20759
|
+
var CheckCredentialEventValidator = external_exports.object({
|
|
20760
|
+
type: external_exports.literal("check-credential"),
|
|
20761
|
+
templateAlias: external_exports.string().optional(),
|
|
20762
|
+
boostUri: external_exports.string().optional()
|
|
20763
|
+
}).refine((input) => Boolean(input.templateAlias) !== Boolean(input.boostUri), {
|
|
20764
|
+
message: "Exactly one of templateAlias or boostUri is required"
|
|
20765
|
+
});
|
|
20766
|
+
var CheckIssuanceStatusEventValidator = external_exports.object({
|
|
20767
|
+
type: external_exports.literal("check-issuance-status"),
|
|
20768
|
+
templateAlias: external_exports.string().optional(),
|
|
20769
|
+
boostUri: external_exports.string().optional(),
|
|
20770
|
+
recipient: external_exports.string()
|
|
20771
|
+
}).refine((input) => Boolean(input.templateAlias) !== Boolean(input.boostUri), {
|
|
20772
|
+
message: "Exactly one of templateAlias or boostUri is required"
|
|
20735
20773
|
});
|
|
20736
|
-
var
|
|
20774
|
+
var GetTemplateRecipientsEventValidator = external_exports.object({
|
|
20775
|
+
type: external_exports.literal("get-template-recipients"),
|
|
20776
|
+
templateAlias: external_exports.string().optional(),
|
|
20777
|
+
boostUri: external_exports.string().optional(),
|
|
20778
|
+
limit: external_exports.number().optional(),
|
|
20779
|
+
cursor: external_exports.string().optional()
|
|
20780
|
+
}).refine((input) => Boolean(input.templateAlias) !== Boolean(input.boostUri), {
|
|
20781
|
+
message: "Exactly one of templateAlias or boostUri is required"
|
|
20782
|
+
});
|
|
20783
|
+
var AppEventValidator = external_exports.discriminatedUnion("type", [
|
|
20784
|
+
SendCredentialEventValidator,
|
|
20785
|
+
CheckCredentialEventValidator,
|
|
20786
|
+
CheckIssuanceStatusEventValidator,
|
|
20787
|
+
GetTemplateRecipientsEventValidator
|
|
20788
|
+
]);
|
|
20737
20789
|
var AppEventInputValidator = external_exports.object({
|
|
20738
20790
|
listingId: external_exports.string(),
|
|
20739
20791
|
event: AppEventValidator
|
|
@@ -20796,6 +20848,14 @@ var CredentialActivityStatsValidator = external_exports.object({
|
|
|
20796
20848
|
failed: external_exports.number(),
|
|
20797
20849
|
claimRate: external_exports.number()
|
|
20798
20850
|
});
|
|
20851
|
+
var _a2;
|
|
20852
|
+
var AuthSessionError = (_a2 = class extends Error {
|
|
20853
|
+
constructor(message, reason) {
|
|
20854
|
+
super(message);
|
|
20855
|
+
this.reason = reason;
|
|
20856
|
+
this.name = "AuthSessionError";
|
|
20857
|
+
}
|
|
20858
|
+
}, __name(_a2, "AuthSessionError"), __name2(_a2, "AuthSessionError"), _a2);
|
|
20799
20859
|
|
|
20800
20860
|
// src/helpers.ts
|
|
20801
20861
|
var import_json_stringify_deterministic = __toESM(require_lib());
|