@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
|
@@ -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;
|
|
@@ -19668,6 +19668,8 @@ var LCNProfileDisplayValidator = external_exports.object({
|
|
|
19668
19668
|
idBackgroundColor: external_exports.string().optional(),
|
|
19669
19669
|
repeatIdBackgroundImage: external_exports.boolean().optional()
|
|
19670
19670
|
});
|
|
19671
|
+
var ProfileVisibilityEnum = external_exports.enum(["public", "connections_only", "private"]);
|
|
19672
|
+
var AllowConnectionRequestsEnum = external_exports.enum(["anyone", "invite_only"]);
|
|
19671
19673
|
var LCNProfileValidator = external_exports.object({
|
|
19672
19674
|
profileId: external_exports.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),
|
|
19673
19675
|
displayName: external_exports.string().default("").describe("Human-readable display name for the profile."),
|
|
@@ -19675,6 +19677,9 @@ var LCNProfileValidator = external_exports.object({
|
|
|
19675
19677
|
bio: external_exports.string().default("").describe("Longer bio for the profile."),
|
|
19676
19678
|
did: external_exports.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),
|
|
19677
19679
|
isPrivate: external_exports.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),
|
|
19680
|
+
profileVisibility: ProfileVisibilityEnum.default("public").optional().describe("Profile visibility: 'public', 'connections_only', or 'private'."),
|
|
19681
|
+
showEmail: external_exports.boolean().default(false).optional().describe("Whether to show email to connections."),
|
|
19682
|
+
allowConnectionRequests: AllowConnectionRequestsEnum.default("anyone").optional().describe("Who can send connection requests: 'anyone' or 'invite_only'."),
|
|
19678
19683
|
email: external_exports.string().optional().describe("Contact email address for the profile. (deprecated)"),
|
|
19679
19684
|
image: external_exports.string().optional().describe("Profile image URL for the profile."),
|
|
19680
19685
|
heroImage: external_exports.string().optional().describe("Hero image URL for the profile."),
|
|
@@ -19689,6 +19694,32 @@ var LCNProfileValidator = external_exports.object({
|
|
|
19689
19694
|
country: external_exports.string().optional().describe("Country for the profile."),
|
|
19690
19695
|
approved: external_exports.boolean().optional().describe("Approval status for the profile.")
|
|
19691
19696
|
});
|
|
19697
|
+
var LCNPublicProfileValidator = LCNProfileValidator.pick({
|
|
19698
|
+
profileId: true,
|
|
19699
|
+
displayName: true,
|
|
19700
|
+
shortBio: true,
|
|
19701
|
+
image: true,
|
|
19702
|
+
heroImage: true,
|
|
19703
|
+
type: true,
|
|
19704
|
+
isServiceProfile: true,
|
|
19705
|
+
display: true
|
|
19706
|
+
});
|
|
19707
|
+
var LCNAuthedProfileValidator = LCNPublicProfileValidator.extend({
|
|
19708
|
+
bio: LCNProfileValidator.shape.bio,
|
|
19709
|
+
websiteLink: LCNProfileValidator.shape.websiteLink,
|
|
19710
|
+
role: LCNProfileValidator.shape.role,
|
|
19711
|
+
highlightedCredentials: LCNProfileValidator.shape.highlightedCredentials,
|
|
19712
|
+
did: LCNProfileValidator.shape.did
|
|
19713
|
+
});
|
|
19714
|
+
var LCNConnectionProfileValidator = LCNAuthedProfileValidator.extend({
|
|
19715
|
+
email: LCNProfileValidator.shape.email
|
|
19716
|
+
});
|
|
19717
|
+
var LCNVisibleProfileValidator = external_exports.union([
|
|
19718
|
+
LCNConnectionProfileValidator.strict(),
|
|
19719
|
+
LCNAuthedProfileValidator.strict(),
|
|
19720
|
+
LCNPublicProfileValidator.strict(),
|
|
19721
|
+
LCNProfileValidator
|
|
19722
|
+
]);
|
|
19692
19723
|
var LCNProfileQueryValidator = external_exports.object({
|
|
19693
19724
|
profileId: StringQuery,
|
|
19694
19725
|
displayName: StringQuery,
|
|
@@ -19702,6 +19733,9 @@ var LCNProfileQueryValidator = external_exports.object({
|
|
|
19702
19733
|
var PaginatedLCNProfilesValidator = PaginationResponseValidator.extend({
|
|
19703
19734
|
records: LCNProfileValidator.array()
|
|
19704
19735
|
});
|
|
19736
|
+
var PaginatedVisibleLCNProfilesValidator = PaginationResponseValidator.extend({
|
|
19737
|
+
records: LCNVisibleProfileValidator.array()
|
|
19738
|
+
});
|
|
19705
19739
|
var LCNProfileConnectionStatusEnum = external_exports.enum([
|
|
19706
19740
|
"CONNECTED",
|
|
19707
19741
|
"PENDING_REQUEST_SENT",
|
|
@@ -19835,7 +19869,7 @@ var PaginatedBoostsValidator = PaginationResponseValidator.extend({
|
|
|
19835
19869
|
records: BoostValidator.array()
|
|
19836
19870
|
});
|
|
19837
19871
|
var BoostRecipientValidator = external_exports.object({
|
|
19838
|
-
to:
|
|
19872
|
+
to: LCNVisibleProfileValidator,
|
|
19839
19873
|
from: external_exports.string(),
|
|
19840
19874
|
received: external_exports.string().optional(),
|
|
19841
19875
|
uri: external_exports.string().optional()
|
|
@@ -19844,7 +19878,7 @@ var PaginatedBoostRecipientsValidator = PaginationResponseValidator.extend({
|
|
|
19844
19878
|
records: BoostRecipientValidator.array()
|
|
19845
19879
|
});
|
|
19846
19880
|
var BoostRecipientWithChildrenValidator = external_exports.object({
|
|
19847
|
-
to:
|
|
19881
|
+
to: LCNVisibleProfileValidator,
|
|
19848
19882
|
from: external_exports.string(),
|
|
19849
19883
|
received: external_exports.string().optional(),
|
|
19850
19884
|
boostUris: external_exports.array(external_exports.string()),
|
|
@@ -19988,6 +20022,16 @@ var ConsentFlowContractDetailsValidator = external_exports.object({
|
|
|
19988
20022
|
autoBoosts: external_exports.string().array().optional(),
|
|
19989
20023
|
writers: external_exports.array(LCNProfileValidator).optional()
|
|
19990
20024
|
});
|
|
20025
|
+
var ConsentFlowContractRequestStatusValidator = external_exports.enum(["pending", "accepted", "denied"]).nullable();
|
|
20026
|
+
var ConsentFlowContractRequestReadStatusValidator = external_exports.enum(["unseen", "seen"]).nullable();
|
|
20027
|
+
var ConsentFlowContractRequestForProfileValidator = external_exports.object({
|
|
20028
|
+
profile: LCNProfileValidator,
|
|
20029
|
+
status: ConsentFlowContractRequestStatusValidator,
|
|
20030
|
+
readStatus: ConsentFlowContractRequestReadStatusValidator.optional()
|
|
20031
|
+
});
|
|
20032
|
+
var ConsentFlowContractRequestForProfileListValidator = external_exports.array(
|
|
20033
|
+
ConsentFlowContractRequestForProfileValidator
|
|
20034
|
+
);
|
|
19991
20035
|
var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
|
|
19992
20036
|
records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
|
|
19993
20037
|
});
|
|
@@ -20148,7 +20192,9 @@ var LCNNotificationTypeEnumValidator = external_exports.enum([
|
|
|
20148
20192
|
"PROFILE_PARENT_APPROVED",
|
|
20149
20193
|
"APP_LISTING_SUBMITTED",
|
|
20150
20194
|
"APP_LISTING_APPROVED",
|
|
20151
|
-
"APP_LISTING_REJECTED"
|
|
20195
|
+
"APP_LISTING_REJECTED",
|
|
20196
|
+
"APP_LISTING_WITHDRAWN",
|
|
20197
|
+
"DEVICE_LINK_REQUEST"
|
|
20152
20198
|
]);
|
|
20153
20199
|
var LCNNotificationMessageValidator = external_exports.object({
|
|
20154
20200
|
title: external_exports.string().optional(),
|
|
@@ -20287,6 +20333,7 @@ var InboxCredentialValidator = external_exports.object({
|
|
|
20287
20333
|
webhookUrl: external_exports.string().optional(),
|
|
20288
20334
|
boostUri: external_exports.string().optional(),
|
|
20289
20335
|
activityId: external_exports.string().optional(),
|
|
20336
|
+
integrationId: external_exports.string().optional(),
|
|
20290
20337
|
signingAuthority: external_exports.object({
|
|
20291
20338
|
endpoint: external_exports.string().optional(),
|
|
20292
20339
|
name: external_exports.string().optional()
|
|
@@ -20388,8 +20435,9 @@ var IssueInboxCredentialResponseValidator = external_exports.object({
|
|
|
20388
20435
|
claimUrl: external_exports.string().url().optional(),
|
|
20389
20436
|
recipientDid: external_exports.string().optional()
|
|
20390
20437
|
});
|
|
20438
|
+
var CredentialNameRefValidator = external_exports.object({ name: external_exports.string() }).passthrough();
|
|
20391
20439
|
var ClaimInboxCredentialValidator = external_exports.object({
|
|
20392
|
-
credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).describe("The credential to issue."),
|
|
20440
|
+
credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).or(CredentialNameRefValidator).describe("The credential to issue, or a { name } reference to resolve a boost template."),
|
|
20393
20441
|
configuration: external_exports.object({
|
|
20394
20442
|
publishableKey: external_exports.string(),
|
|
20395
20443
|
signingAuthorityName: external_exports.string().optional(),
|
|
@@ -20673,6 +20721,11 @@ var PromotionLevelValidator = external_exports.enum([
|
|
|
20673
20721
|
"DEMOTED"
|
|
20674
20722
|
]);
|
|
20675
20723
|
var AgeRatingValidator = external_exports.enum(["4+", "9+", "12+", "17+"]);
|
|
20724
|
+
var AppStoreListingSubmitterValidator = external_exports.object({
|
|
20725
|
+
profileId: external_exports.string(),
|
|
20726
|
+
displayName: external_exports.string(),
|
|
20727
|
+
email: external_exports.string().optional()
|
|
20728
|
+
});
|
|
20676
20729
|
var AppStoreListingValidator = external_exports.object({
|
|
20677
20730
|
listing_id: external_exports.string(),
|
|
20678
20731
|
slug: external_exports.string().optional(),
|
|
@@ -20694,7 +20747,10 @@ var AppStoreListingValidator = external_exports.object({
|
|
|
20694
20747
|
screenshots: external_exports.array(external_exports.string()).optional(),
|
|
20695
20748
|
hero_background_color: external_exports.string().optional(),
|
|
20696
20749
|
min_age: external_exports.number().int().min(0).max(18).optional(),
|
|
20697
|
-
age_rating: AgeRatingValidator.optional()
|
|
20750
|
+
age_rating: AgeRatingValidator.optional(),
|
|
20751
|
+
submitted_at: external_exports.string().optional(),
|
|
20752
|
+
submitter: AppStoreListingSubmitterValidator.optional(),
|
|
20753
|
+
contact_email: external_exports.string().email().optional()
|
|
20698
20754
|
});
|
|
20699
20755
|
var AppStoreListingCreateValidator = AppStoreListingValidator.omit({
|
|
20700
20756
|
listing_id: true,
|
|
@@ -20722,9 +20778,39 @@ var AppBoostValidator = external_exports.object({
|
|
|
20722
20778
|
var SendCredentialEventValidator = external_exports.object({
|
|
20723
20779
|
type: external_exports.literal("send-credential"),
|
|
20724
20780
|
templateAlias: external_exports.string(),
|
|
20725
|
-
templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
|
|
20781
|
+
templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
|
|
20782
|
+
preventDuplicateClaim: external_exports.boolean().optional()
|
|
20783
|
+
});
|
|
20784
|
+
var CheckCredentialEventValidator = external_exports.object({
|
|
20785
|
+
type: external_exports.literal("check-credential"),
|
|
20786
|
+
templateAlias: external_exports.string().optional(),
|
|
20787
|
+
boostUri: external_exports.string().optional()
|
|
20788
|
+
}).refine((input) => Boolean(input.templateAlias) !== Boolean(input.boostUri), {
|
|
20789
|
+
message: "Exactly one of templateAlias or boostUri is required"
|
|
20790
|
+
});
|
|
20791
|
+
var CheckIssuanceStatusEventValidator = external_exports.object({
|
|
20792
|
+
type: external_exports.literal("check-issuance-status"),
|
|
20793
|
+
templateAlias: external_exports.string().optional(),
|
|
20794
|
+
boostUri: external_exports.string().optional(),
|
|
20795
|
+
recipient: external_exports.string()
|
|
20796
|
+
}).refine((input) => Boolean(input.templateAlias) !== Boolean(input.boostUri), {
|
|
20797
|
+
message: "Exactly one of templateAlias or boostUri is required"
|
|
20726
20798
|
});
|
|
20727
|
-
var
|
|
20799
|
+
var GetTemplateRecipientsEventValidator = external_exports.object({
|
|
20800
|
+
type: external_exports.literal("get-template-recipients"),
|
|
20801
|
+
templateAlias: external_exports.string().optional(),
|
|
20802
|
+
boostUri: external_exports.string().optional(),
|
|
20803
|
+
limit: external_exports.number().optional(),
|
|
20804
|
+
cursor: external_exports.string().optional()
|
|
20805
|
+
}).refine((input) => Boolean(input.templateAlias) !== Boolean(input.boostUri), {
|
|
20806
|
+
message: "Exactly one of templateAlias or boostUri is required"
|
|
20807
|
+
});
|
|
20808
|
+
var AppEventValidator = external_exports.discriminatedUnion("type", [
|
|
20809
|
+
SendCredentialEventValidator,
|
|
20810
|
+
CheckCredentialEventValidator,
|
|
20811
|
+
CheckIssuanceStatusEventValidator,
|
|
20812
|
+
GetTemplateRecipientsEventValidator
|
|
20813
|
+
]);
|
|
20728
20814
|
var AppEventInputValidator = external_exports.object({
|
|
20729
20815
|
listingId: external_exports.string(),
|
|
20730
20816
|
event: AppEventValidator
|
|
@@ -20787,6 +20873,14 @@ var CredentialActivityStatsValidator = external_exports.object({
|
|
|
20787
20873
|
failed: external_exports.number(),
|
|
20788
20874
|
claimRate: external_exports.number()
|
|
20789
20875
|
});
|
|
20876
|
+
var _a2;
|
|
20877
|
+
var AuthSessionError = (_a2 = class extends Error {
|
|
20878
|
+
constructor(message, reason) {
|
|
20879
|
+
super(message);
|
|
20880
|
+
this.reason = reason;
|
|
20881
|
+
this.name = "AuthSessionError";
|
|
20882
|
+
}
|
|
20883
|
+
}, __name(_a2, "AuthSessionError"), __name2(_a2, "AuthSessionError"), _a2);
|
|
20790
20884
|
|
|
20791
20885
|
// src/helpers.ts
|
|
20792
20886
|
var import_json_stringify_deterministic = __toESM(require_lib());
|