@learncard/helpers 1.2.12 → 1.2.14
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/helpers.esm.js
CHANGED
|
@@ -64,6 +64,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
64
64
|
AgeRatingValidator: /* @__PURE__ */ __name(() => AgeRatingValidator, "AgeRatingValidator"),
|
|
65
65
|
AlignmentTargetTypeValidator: /* @__PURE__ */ __name(() => AlignmentTargetTypeValidator, "AlignmentTargetTypeValidator"),
|
|
66
66
|
AlignmentValidator: /* @__PURE__ */ __name(() => AlignmentValidator, "AlignmentValidator"),
|
|
67
|
+
AllowConnectionRequestsEnum: /* @__PURE__ */ __name(() => AllowConnectionRequestsEnum, "AllowConnectionRequestsEnum"),
|
|
67
68
|
AppBoostValidator: /* @__PURE__ */ __name(() => AppBoostValidator, "AppBoostValidator"),
|
|
68
69
|
AppEventInputValidator: /* @__PURE__ */ __name(() => AppEventInputValidator, "AppEventInputValidator"),
|
|
69
70
|
AppEventResponseValidator: /* @__PURE__ */ __name(() => AppEventResponseValidator, "AppEventResponseValidator"),
|
|
@@ -170,9 +171,11 @@ var require_types_cjs_development = __commonJS({
|
|
|
170
171
|
JWKValidator: /* @__PURE__ */ __name(() => JWKValidator, "JWKValidator"),
|
|
171
172
|
JWKWithPrivateKeyValidator: /* @__PURE__ */ __name(() => JWKWithPrivateKeyValidator, "JWKWithPrivateKeyValidator"),
|
|
172
173
|
KnownAchievementTypeValidator: /* @__PURE__ */ __name(() => KnownAchievementTypeValidator, "KnownAchievementTypeValidator"),
|
|
174
|
+
LCNAuthedProfileValidator: /* @__PURE__ */ __name(() => LCNAuthedProfileValidator, "LCNAuthedProfileValidator"),
|
|
173
175
|
LCNBoostClaimLinkOptionsValidator: /* @__PURE__ */ __name(() => LCNBoostClaimLinkOptionsValidator, "LCNBoostClaimLinkOptionsValidator"),
|
|
174
176
|
LCNBoostClaimLinkSigningAuthorityValidator: /* @__PURE__ */ __name(() => LCNBoostClaimLinkSigningAuthorityValidator, "LCNBoostClaimLinkSigningAuthorityValidator"),
|
|
175
177
|
LCNBoostStatus: /* @__PURE__ */ __name(() => LCNBoostStatus, "LCNBoostStatus"),
|
|
178
|
+
LCNConnectionProfileValidator: /* @__PURE__ */ __name(() => LCNConnectionProfileValidator, "LCNConnectionProfileValidator"),
|
|
176
179
|
LCNDomainOrOriginValidator: /* @__PURE__ */ __name(() => LCNDomainOrOriginValidator, "LCNDomainOrOriginValidator"),
|
|
177
180
|
LCNInboxContactMethodValidator: /* @__PURE__ */ __name(() => LCNInboxContactMethodValidator, "LCNInboxContactMethodValidator"),
|
|
178
181
|
LCNInboxStatusEnumValidator: /* @__PURE__ */ __name(() => LCNInboxStatusEnumValidator, "LCNInboxStatusEnumValidator"),
|
|
@@ -192,8 +195,10 @@ var require_types_cjs_development = __commonJS({
|
|
|
192
195
|
LCNProfileManagerValidator: /* @__PURE__ */ __name(() => LCNProfileManagerValidator, "LCNProfileManagerValidator"),
|
|
193
196
|
LCNProfileQueryValidator: /* @__PURE__ */ __name(() => LCNProfileQueryValidator, "LCNProfileQueryValidator"),
|
|
194
197
|
LCNProfileValidator: /* @__PURE__ */ __name(() => LCNProfileValidator, "LCNProfileValidator"),
|
|
198
|
+
LCNPublicProfileValidator: /* @__PURE__ */ __name(() => LCNPublicProfileValidator, "LCNPublicProfileValidator"),
|
|
195
199
|
LCNSigningAuthorityForUserValidator: /* @__PURE__ */ __name(() => LCNSigningAuthorityForUserValidator, "LCNSigningAuthorityForUserValidator"),
|
|
196
200
|
LCNSigningAuthorityValidator: /* @__PURE__ */ __name(() => LCNSigningAuthorityValidator, "LCNSigningAuthorityValidator"),
|
|
201
|
+
LCNVisibleProfileValidator: /* @__PURE__ */ __name(() => LCNVisibleProfileValidator, "LCNVisibleProfileValidator"),
|
|
197
202
|
LaunchTypeValidator: /* @__PURE__ */ __name(() => LaunchTypeValidator, "LaunchTypeValidator"),
|
|
198
203
|
LinkProviderFrameworkInputValidator: /* @__PURE__ */ __name(() => LinkProviderFrameworkInputValidator, "LinkProviderFrameworkInputValidator"),
|
|
199
204
|
PaginatedAppStoreListingsValidator: /* @__PURE__ */ __name(() => PaginatedAppStoreListingsValidator, "PaginatedAppStoreListingsValidator"),
|
|
@@ -218,9 +223,11 @@ var require_types_cjs_development = __commonJS({
|
|
|
218
223
|
PaginatedLCNProfilesValidator: /* @__PURE__ */ __name(() => PaginatedLCNProfilesValidator, "PaginatedLCNProfilesValidator"),
|
|
219
224
|
PaginatedSkillFrameworksValidator: /* @__PURE__ */ __name(() => PaginatedSkillFrameworksValidator, "PaginatedSkillFrameworksValidator"),
|
|
220
225
|
PaginatedSkillTreeValidator: /* @__PURE__ */ __name(() => PaginatedSkillTreeValidator, "PaginatedSkillTreeValidator"),
|
|
226
|
+
PaginatedVisibleLCNProfilesValidator: /* @__PURE__ */ __name(() => PaginatedVisibleLCNProfilesValidator, "PaginatedVisibleLCNProfilesValidator"),
|
|
221
227
|
PaginationOptionsValidator: /* @__PURE__ */ __name(() => PaginationOptionsValidator, "PaginationOptionsValidator"),
|
|
222
228
|
PaginationResponseValidator: /* @__PURE__ */ __name(() => PaginationResponseValidator, "PaginationResponseValidator"),
|
|
223
229
|
ProfileValidator: /* @__PURE__ */ __name(() => ProfileValidator, "ProfileValidator"),
|
|
230
|
+
ProfileVisibilityEnum: /* @__PURE__ */ __name(() => ProfileVisibilityEnum, "ProfileVisibilityEnum"),
|
|
224
231
|
PromotionLevelValidator: /* @__PURE__ */ __name(() => PromotionLevelValidator, "PromotionLevelValidator"),
|
|
225
232
|
ProofValidator: /* @__PURE__ */ __name(() => ProofValidator, "ProofValidator"),
|
|
226
233
|
RefreshServiceValidator: /* @__PURE__ */ __name(() => RefreshServiceValidator, "RefreshServiceValidator"),
|
|
@@ -14121,6 +14128,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14121
14128
|
idBackgroundColor: external_exports.string().optional(),
|
|
14122
14129
|
repeatIdBackgroundImage: external_exports.boolean().optional()
|
|
14123
14130
|
});
|
|
14131
|
+
var ProfileVisibilityEnum = external_exports.enum(["public", "connections_only", "private"]);
|
|
14132
|
+
var AllowConnectionRequestsEnum = external_exports.enum(["anyone", "invite_only"]);
|
|
14124
14133
|
var LCNProfileValidator = external_exports.object({
|
|
14125
14134
|
profileId: external_exports.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),
|
|
14126
14135
|
displayName: external_exports.string().default("").describe("Human-readable display name for the profile."),
|
|
@@ -14128,6 +14137,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14128
14137
|
bio: external_exports.string().default("").describe("Longer bio for the profile."),
|
|
14129
14138
|
did: external_exports.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),
|
|
14130
14139
|
isPrivate: external_exports.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),
|
|
14140
|
+
profileVisibility: ProfileVisibilityEnum.default("public").optional().describe("Profile visibility: 'public', 'connections_only', or 'private'."),
|
|
14141
|
+
showEmail: external_exports.boolean().default(false).optional().describe("Whether to show email to connections."),
|
|
14142
|
+
allowConnectionRequests: AllowConnectionRequestsEnum.default("anyone").optional().describe("Who can send connection requests: 'anyone' or 'invite_only'."),
|
|
14131
14143
|
email: external_exports.string().optional().describe("Contact email address for the profile. (deprecated)"),
|
|
14132
14144
|
image: external_exports.string().optional().describe("Profile image URL for the profile."),
|
|
14133
14145
|
heroImage: external_exports.string().optional().describe("Hero image URL for the profile."),
|
|
@@ -14142,6 +14154,32 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14142
14154
|
country: external_exports.string().optional().describe("Country for the profile."),
|
|
14143
14155
|
approved: external_exports.boolean().optional().describe("Approval status for the profile.")
|
|
14144
14156
|
});
|
|
14157
|
+
var LCNPublicProfileValidator = LCNProfileValidator.pick({
|
|
14158
|
+
profileId: true,
|
|
14159
|
+
displayName: true,
|
|
14160
|
+
shortBio: true,
|
|
14161
|
+
image: true,
|
|
14162
|
+
heroImage: true,
|
|
14163
|
+
type: true,
|
|
14164
|
+
isServiceProfile: true,
|
|
14165
|
+
display: true
|
|
14166
|
+
});
|
|
14167
|
+
var LCNAuthedProfileValidator = LCNPublicProfileValidator.extend({
|
|
14168
|
+
bio: LCNProfileValidator.shape.bio,
|
|
14169
|
+
websiteLink: LCNProfileValidator.shape.websiteLink,
|
|
14170
|
+
role: LCNProfileValidator.shape.role,
|
|
14171
|
+
highlightedCredentials: LCNProfileValidator.shape.highlightedCredentials,
|
|
14172
|
+
did: LCNProfileValidator.shape.did
|
|
14173
|
+
});
|
|
14174
|
+
var LCNConnectionProfileValidator = LCNAuthedProfileValidator.extend({
|
|
14175
|
+
email: LCNProfileValidator.shape.email
|
|
14176
|
+
});
|
|
14177
|
+
var LCNVisibleProfileValidator = external_exports.union([
|
|
14178
|
+
LCNConnectionProfileValidator.strict(),
|
|
14179
|
+
LCNAuthedProfileValidator.strict(),
|
|
14180
|
+
LCNPublicProfileValidator.strict(),
|
|
14181
|
+
LCNProfileValidator
|
|
14182
|
+
]);
|
|
14145
14183
|
var LCNProfileQueryValidator = external_exports.object({
|
|
14146
14184
|
profileId: StringQuery,
|
|
14147
14185
|
displayName: StringQuery,
|
|
@@ -14155,6 +14193,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14155
14193
|
var PaginatedLCNProfilesValidator = PaginationResponseValidator.extend({
|
|
14156
14194
|
records: LCNProfileValidator.array()
|
|
14157
14195
|
});
|
|
14196
|
+
var PaginatedVisibleLCNProfilesValidator = PaginationResponseValidator.extend({
|
|
14197
|
+
records: LCNVisibleProfileValidator.array()
|
|
14198
|
+
});
|
|
14158
14199
|
var LCNProfileConnectionStatusEnum = external_exports.enum([
|
|
14159
14200
|
"CONNECTED",
|
|
14160
14201
|
"PENDING_REQUEST_SENT",
|
|
@@ -14288,7 +14329,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14288
14329
|
records: BoostValidator.array()
|
|
14289
14330
|
});
|
|
14290
14331
|
var BoostRecipientValidator = external_exports.object({
|
|
14291
|
-
to:
|
|
14332
|
+
to: LCNVisibleProfileValidator,
|
|
14292
14333
|
from: external_exports.string(),
|
|
14293
14334
|
received: external_exports.string().optional(),
|
|
14294
14335
|
uri: external_exports.string().optional()
|
|
@@ -14297,7 +14338,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14297
14338
|
records: BoostRecipientValidator.array()
|
|
14298
14339
|
});
|
|
14299
14340
|
var BoostRecipientWithChildrenValidator = external_exports.object({
|
|
14300
|
-
to:
|
|
14341
|
+
to: LCNVisibleProfileValidator,
|
|
14301
14342
|
from: external_exports.string(),
|
|
14302
14343
|
received: external_exports.string().optional(),
|
|
14303
14344
|
boostUris: external_exports.array(external_exports.string()),
|
|
@@ -14369,8 +14410,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14369
14410
|
),
|
|
14370
14411
|
templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
|
|
14371
14412
|
integrationId: external_exports.string().optional().describe("Integration ID for activity tracking")
|
|
14372
|
-
}).refine((data) => data.templateUri || data.template, {
|
|
14373
|
-
message: "Either templateUri
|
|
14413
|
+
}).refine((data) => data.templateUri || data.template || data.signedCredential, {
|
|
14414
|
+
message: "Either templateUri, template, or signedCredential must be provided.",
|
|
14374
14415
|
path: ["templateUri"]
|
|
14375
14416
|
});
|
|
14376
14417
|
var SendInboxResponseValidator = external_exports.object({
|