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