@learncard/learn-cloud-plugin 2.3.13 → 2.3.17
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 +129 -35
- package/dist/learn-cloud-plugin.cjs.development.js.map +3 -3
- package/dist/learn-cloud-plugin.cjs.production.min.js +14 -14
- package/dist/learn-cloud-plugin.cjs.production.min.js.map +3 -3
- package/dist/learn-cloud-plugin.esm.js +129 -35
- 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;
|
|
@@ -19677,6 +19677,8 @@ var LCNProfileDisplayValidator = external_exports.object({
|
|
|
19677
19677
|
idBackgroundColor: external_exports.string().optional(),
|
|
19678
19678
|
repeatIdBackgroundImage: external_exports.boolean().optional()
|
|
19679
19679
|
});
|
|
19680
|
+
var ProfileVisibilityEnum = external_exports.enum(["public", "connections_only", "private"]);
|
|
19681
|
+
var AllowConnectionRequestsEnum = external_exports.enum(["anyone", "invite_only"]);
|
|
19680
19682
|
var LCNProfileValidator = external_exports.object({
|
|
19681
19683
|
profileId: external_exports.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),
|
|
19682
19684
|
displayName: external_exports.string().default("").describe("Human-readable display name for the profile."),
|
|
@@ -19684,6 +19686,9 @@ var LCNProfileValidator = external_exports.object({
|
|
|
19684
19686
|
bio: external_exports.string().default("").describe("Longer bio for the profile."),
|
|
19685
19687
|
did: external_exports.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),
|
|
19686
19688
|
isPrivate: external_exports.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),
|
|
19689
|
+
profileVisibility: ProfileVisibilityEnum.default("public").optional().describe("Profile visibility: 'public', 'connections_only', or 'private'."),
|
|
19690
|
+
showEmail: external_exports.boolean().default(false).optional().describe("Whether to show email to connections."),
|
|
19691
|
+
allowConnectionRequests: AllowConnectionRequestsEnum.default("anyone").optional().describe("Who can send connection requests: 'anyone' or 'invite_only'."),
|
|
19687
19692
|
email: external_exports.string().optional().describe("Contact email address for the profile. (deprecated)"),
|
|
19688
19693
|
image: external_exports.string().optional().describe("Profile image URL for the profile."),
|
|
19689
19694
|
heroImage: external_exports.string().optional().describe("Hero image URL for the profile."),
|
|
@@ -19698,6 +19703,32 @@ var LCNProfileValidator = external_exports.object({
|
|
|
19698
19703
|
country: external_exports.string().optional().describe("Country for the profile."),
|
|
19699
19704
|
approved: external_exports.boolean().optional().describe("Approval status for the profile.")
|
|
19700
19705
|
});
|
|
19706
|
+
var LCNPublicProfileValidator = LCNProfileValidator.pick({
|
|
19707
|
+
profileId: true,
|
|
19708
|
+
displayName: true,
|
|
19709
|
+
shortBio: true,
|
|
19710
|
+
image: true,
|
|
19711
|
+
heroImage: true,
|
|
19712
|
+
type: true,
|
|
19713
|
+
isServiceProfile: true,
|
|
19714
|
+
display: true
|
|
19715
|
+
});
|
|
19716
|
+
var LCNAuthedProfileValidator = LCNPublicProfileValidator.extend({
|
|
19717
|
+
bio: LCNProfileValidator.shape.bio,
|
|
19718
|
+
websiteLink: LCNProfileValidator.shape.websiteLink,
|
|
19719
|
+
role: LCNProfileValidator.shape.role,
|
|
19720
|
+
highlightedCredentials: LCNProfileValidator.shape.highlightedCredentials,
|
|
19721
|
+
did: LCNProfileValidator.shape.did
|
|
19722
|
+
});
|
|
19723
|
+
var LCNConnectionProfileValidator = LCNAuthedProfileValidator.extend({
|
|
19724
|
+
email: LCNProfileValidator.shape.email
|
|
19725
|
+
});
|
|
19726
|
+
var LCNVisibleProfileValidator = external_exports.union([
|
|
19727
|
+
LCNConnectionProfileValidator.strict(),
|
|
19728
|
+
LCNAuthedProfileValidator.strict(),
|
|
19729
|
+
LCNPublicProfileValidator.strict(),
|
|
19730
|
+
LCNProfileValidator
|
|
19731
|
+
]);
|
|
19701
19732
|
var LCNProfileQueryValidator = external_exports.object({
|
|
19702
19733
|
profileId: StringQuery,
|
|
19703
19734
|
displayName: StringQuery,
|
|
@@ -19711,6 +19742,9 @@ var LCNProfileQueryValidator = external_exports.object({
|
|
|
19711
19742
|
var PaginatedLCNProfilesValidator = PaginationResponseValidator.extend({
|
|
19712
19743
|
records: LCNProfileValidator.array()
|
|
19713
19744
|
});
|
|
19745
|
+
var PaginatedVisibleLCNProfilesValidator = PaginationResponseValidator.extend({
|
|
19746
|
+
records: LCNVisibleProfileValidator.array()
|
|
19747
|
+
});
|
|
19714
19748
|
var LCNProfileConnectionStatusEnum = external_exports.enum([
|
|
19715
19749
|
"CONNECTED",
|
|
19716
19750
|
"PENDING_REQUEST_SENT",
|
|
@@ -19844,7 +19878,7 @@ var PaginatedBoostsValidator = PaginationResponseValidator.extend({
|
|
|
19844
19878
|
records: BoostValidator.array()
|
|
19845
19879
|
});
|
|
19846
19880
|
var BoostRecipientValidator = external_exports.object({
|
|
19847
|
-
to:
|
|
19881
|
+
to: LCNVisibleProfileValidator,
|
|
19848
19882
|
from: external_exports.string(),
|
|
19849
19883
|
received: external_exports.string().optional(),
|
|
19850
19884
|
uri: external_exports.string().optional()
|
|
@@ -19853,7 +19887,7 @@ var PaginatedBoostRecipientsValidator = PaginationResponseValidator.extend({
|
|
|
19853
19887
|
records: BoostRecipientValidator.array()
|
|
19854
19888
|
});
|
|
19855
19889
|
var BoostRecipientWithChildrenValidator = external_exports.object({
|
|
19856
|
-
to:
|
|
19890
|
+
to: LCNVisibleProfileValidator,
|
|
19857
19891
|
from: external_exports.string(),
|
|
19858
19892
|
received: external_exports.string().optional(),
|
|
19859
19893
|
boostUris: external_exports.array(external_exports.string()),
|
|
@@ -19997,6 +20031,16 @@ var ConsentFlowContractDetailsValidator = external_exports.object({
|
|
|
19997
20031
|
autoBoosts: external_exports.string().array().optional(),
|
|
19998
20032
|
writers: external_exports.array(LCNProfileValidator).optional()
|
|
19999
20033
|
});
|
|
20034
|
+
var ConsentFlowContractRequestStatusValidator = external_exports.enum(["pending", "accepted", "denied"]).nullable();
|
|
20035
|
+
var ConsentFlowContractRequestReadStatusValidator = external_exports.enum(["unseen", "seen"]).nullable();
|
|
20036
|
+
var ConsentFlowContractRequestForProfileValidator = external_exports.object({
|
|
20037
|
+
profile: LCNProfileValidator,
|
|
20038
|
+
status: ConsentFlowContractRequestStatusValidator,
|
|
20039
|
+
readStatus: ConsentFlowContractRequestReadStatusValidator.optional()
|
|
20040
|
+
});
|
|
20041
|
+
var ConsentFlowContractRequestForProfileListValidator = external_exports.array(
|
|
20042
|
+
ConsentFlowContractRequestForProfileValidator
|
|
20043
|
+
);
|
|
20000
20044
|
var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
|
|
20001
20045
|
records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
|
|
20002
20046
|
});
|
|
@@ -20157,7 +20201,9 @@ var LCNNotificationTypeEnumValidator = external_exports.enum([
|
|
|
20157
20201
|
"PROFILE_PARENT_APPROVED",
|
|
20158
20202
|
"APP_LISTING_SUBMITTED",
|
|
20159
20203
|
"APP_LISTING_APPROVED",
|
|
20160
|
-
"APP_LISTING_REJECTED"
|
|
20204
|
+
"APP_LISTING_REJECTED",
|
|
20205
|
+
"APP_LISTING_WITHDRAWN",
|
|
20206
|
+
"DEVICE_LINK_REQUEST"
|
|
20161
20207
|
]);
|
|
20162
20208
|
var LCNNotificationMessageValidator = external_exports.object({
|
|
20163
20209
|
title: external_exports.string().optional(),
|
|
@@ -20296,6 +20342,7 @@ var InboxCredentialValidator = external_exports.object({
|
|
|
20296
20342
|
webhookUrl: external_exports.string().optional(),
|
|
20297
20343
|
boostUri: external_exports.string().optional(),
|
|
20298
20344
|
activityId: external_exports.string().optional(),
|
|
20345
|
+
integrationId: external_exports.string().optional(),
|
|
20299
20346
|
signingAuthority: external_exports.object({
|
|
20300
20347
|
endpoint: external_exports.string().optional(),
|
|
20301
20348
|
name: external_exports.string().optional()
|
|
@@ -20397,8 +20444,9 @@ var IssueInboxCredentialResponseValidator = external_exports.object({
|
|
|
20397
20444
|
claimUrl: external_exports.string().url().optional(),
|
|
20398
20445
|
recipientDid: external_exports.string().optional()
|
|
20399
20446
|
});
|
|
20447
|
+
var CredentialNameRefValidator = external_exports.object({ name: external_exports.string() }).passthrough();
|
|
20400
20448
|
var ClaimInboxCredentialValidator = external_exports.object({
|
|
20401
|
-
credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).describe("The credential to issue."),
|
|
20449
|
+
credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).or(CredentialNameRefValidator).describe("The credential to issue, or a { name } reference to resolve a boost template."),
|
|
20402
20450
|
configuration: external_exports.object({
|
|
20403
20451
|
publishableKey: external_exports.string(),
|
|
20404
20452
|
signingAuthorityName: external_exports.string().optional(),
|
|
@@ -20682,6 +20730,11 @@ var PromotionLevelValidator = external_exports.enum([
|
|
|
20682
20730
|
"DEMOTED"
|
|
20683
20731
|
]);
|
|
20684
20732
|
var AgeRatingValidator = external_exports.enum(["4+", "9+", "12+", "17+"]);
|
|
20733
|
+
var AppStoreListingSubmitterValidator = external_exports.object({
|
|
20734
|
+
profileId: external_exports.string(),
|
|
20735
|
+
displayName: external_exports.string(),
|
|
20736
|
+
email: external_exports.string().optional()
|
|
20737
|
+
});
|
|
20685
20738
|
var AppStoreListingValidator = external_exports.object({
|
|
20686
20739
|
listing_id: external_exports.string(),
|
|
20687
20740
|
slug: external_exports.string().optional(),
|
|
@@ -20703,7 +20756,10 @@ var AppStoreListingValidator = external_exports.object({
|
|
|
20703
20756
|
screenshots: external_exports.array(external_exports.string()).optional(),
|
|
20704
20757
|
hero_background_color: external_exports.string().optional(),
|
|
20705
20758
|
min_age: external_exports.number().int().min(0).max(18).optional(),
|
|
20706
|
-
age_rating: AgeRatingValidator.optional()
|
|
20759
|
+
age_rating: AgeRatingValidator.optional(),
|
|
20760
|
+
submitted_at: external_exports.string().optional(),
|
|
20761
|
+
submitter: AppStoreListingSubmitterValidator.optional(),
|
|
20762
|
+
contact_email: external_exports.string().email().optional()
|
|
20707
20763
|
});
|
|
20708
20764
|
var AppStoreListingCreateValidator = AppStoreListingValidator.omit({
|
|
20709
20765
|
listing_id: true,
|
|
@@ -20731,9 +20787,39 @@ var AppBoostValidator = external_exports.object({
|
|
|
20731
20787
|
var SendCredentialEventValidator = external_exports.object({
|
|
20732
20788
|
type: external_exports.literal("send-credential"),
|
|
20733
20789
|
templateAlias: external_exports.string(),
|
|
20734
|
-
templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
|
|
20790
|
+
templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
|
|
20791
|
+
preventDuplicateClaim: external_exports.boolean().optional()
|
|
20792
|
+
});
|
|
20793
|
+
var CheckCredentialEventValidator = external_exports.object({
|
|
20794
|
+
type: external_exports.literal("check-credential"),
|
|
20795
|
+
templateAlias: external_exports.string().optional(),
|
|
20796
|
+
boostUri: external_exports.string().optional()
|
|
20797
|
+
}).refine((input) => Boolean(input.templateAlias) !== Boolean(input.boostUri), {
|
|
20798
|
+
message: "Exactly one of templateAlias or boostUri is required"
|
|
20799
|
+
});
|
|
20800
|
+
var CheckIssuanceStatusEventValidator = external_exports.object({
|
|
20801
|
+
type: external_exports.literal("check-issuance-status"),
|
|
20802
|
+
templateAlias: external_exports.string().optional(),
|
|
20803
|
+
boostUri: external_exports.string().optional(),
|
|
20804
|
+
recipient: external_exports.string()
|
|
20805
|
+
}).refine((input) => Boolean(input.templateAlias) !== Boolean(input.boostUri), {
|
|
20806
|
+
message: "Exactly one of templateAlias or boostUri is required"
|
|
20735
20807
|
});
|
|
20736
|
-
var
|
|
20808
|
+
var GetTemplateRecipientsEventValidator = external_exports.object({
|
|
20809
|
+
type: external_exports.literal("get-template-recipients"),
|
|
20810
|
+
templateAlias: external_exports.string().optional(),
|
|
20811
|
+
boostUri: external_exports.string().optional(),
|
|
20812
|
+
limit: external_exports.number().optional(),
|
|
20813
|
+
cursor: external_exports.string().optional()
|
|
20814
|
+
}).refine((input) => Boolean(input.templateAlias) !== Boolean(input.boostUri), {
|
|
20815
|
+
message: "Exactly one of templateAlias or boostUri is required"
|
|
20816
|
+
});
|
|
20817
|
+
var AppEventValidator = external_exports.discriminatedUnion("type", [
|
|
20818
|
+
SendCredentialEventValidator,
|
|
20819
|
+
CheckCredentialEventValidator,
|
|
20820
|
+
CheckIssuanceStatusEventValidator,
|
|
20821
|
+
GetTemplateRecipientsEventValidator
|
|
20822
|
+
]);
|
|
20737
20823
|
var AppEventInputValidator = external_exports.object({
|
|
20738
20824
|
listingId: external_exports.string(),
|
|
20739
20825
|
event: AppEventValidator
|
|
@@ -20796,6 +20882,14 @@ var CredentialActivityStatsValidator = external_exports.object({
|
|
|
20796
20882
|
failed: external_exports.number(),
|
|
20797
20883
|
claimRate: external_exports.number()
|
|
20798
20884
|
});
|
|
20885
|
+
var _a2;
|
|
20886
|
+
var AuthSessionError = (_a2 = class extends Error {
|
|
20887
|
+
constructor(message, reason) {
|
|
20888
|
+
super(message);
|
|
20889
|
+
this.reason = reason;
|
|
20890
|
+
this.name = "AuthSessionError";
|
|
20891
|
+
}
|
|
20892
|
+
}, __name(_a2, "AuthSessionError"), __name2(_a2, "AuthSessionError"), _a2);
|
|
20799
20893
|
|
|
20800
20894
|
// src/helpers.ts
|
|
20801
20895
|
var import_json_stringify_deterministic = __toESM(require_lib());
|