@learncard/sss-key-manager 0.1.2 → 0.1.4

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.
@@ -60,6 +60,7 @@ var require_types_cjs_development = __commonJS({
60
60
  AgeRatingValidator: /* @__PURE__ */ __name(() => AgeRatingValidator, "AgeRatingValidator"),
61
61
  AlignmentTargetTypeValidator: /* @__PURE__ */ __name(() => AlignmentTargetTypeValidator, "AlignmentTargetTypeValidator"),
62
62
  AlignmentValidator: /* @__PURE__ */ __name(() => AlignmentValidator, "AlignmentValidator"),
63
+ AllowConnectionRequestsEnum: /* @__PURE__ */ __name(() => AllowConnectionRequestsEnum, "AllowConnectionRequestsEnum"),
63
64
  AppBoostValidator: /* @__PURE__ */ __name(() => AppBoostValidator, "AppBoostValidator"),
64
65
  AppEventInputValidator: /* @__PURE__ */ __name(() => AppEventInputValidator, "AppEventInputValidator"),
65
66
  AppEventResponseValidator: /* @__PURE__ */ __name(() => AppEventResponseValidator, "AppEventResponseValidator"),
@@ -166,9 +167,11 @@ var require_types_cjs_development = __commonJS({
166
167
  JWKValidator: /* @__PURE__ */ __name(() => JWKValidator, "JWKValidator"),
167
168
  JWKWithPrivateKeyValidator: /* @__PURE__ */ __name(() => JWKWithPrivateKeyValidator, "JWKWithPrivateKeyValidator"),
168
169
  KnownAchievementTypeValidator: /* @__PURE__ */ __name(() => KnownAchievementTypeValidator, "KnownAchievementTypeValidator"),
170
+ LCNAuthedProfileValidator: /* @__PURE__ */ __name(() => LCNAuthedProfileValidator, "LCNAuthedProfileValidator"),
169
171
  LCNBoostClaimLinkOptionsValidator: /* @__PURE__ */ __name(() => LCNBoostClaimLinkOptionsValidator, "LCNBoostClaimLinkOptionsValidator"),
170
172
  LCNBoostClaimLinkSigningAuthorityValidator: /* @__PURE__ */ __name(() => LCNBoostClaimLinkSigningAuthorityValidator, "LCNBoostClaimLinkSigningAuthorityValidator"),
171
173
  LCNBoostStatus: /* @__PURE__ */ __name(() => LCNBoostStatus, "LCNBoostStatus"),
174
+ LCNConnectionProfileValidator: /* @__PURE__ */ __name(() => LCNConnectionProfileValidator, "LCNConnectionProfileValidator"),
172
175
  LCNDomainOrOriginValidator: /* @__PURE__ */ __name(() => LCNDomainOrOriginValidator, "LCNDomainOrOriginValidator"),
173
176
  LCNInboxContactMethodValidator: /* @__PURE__ */ __name(() => LCNInboxContactMethodValidator, "LCNInboxContactMethodValidator"),
174
177
  LCNInboxStatusEnumValidator: /* @__PURE__ */ __name(() => LCNInboxStatusEnumValidator, "LCNInboxStatusEnumValidator"),
@@ -188,8 +191,10 @@ var require_types_cjs_development = __commonJS({
188
191
  LCNProfileManagerValidator: /* @__PURE__ */ __name(() => LCNProfileManagerValidator, "LCNProfileManagerValidator"),
189
192
  LCNProfileQueryValidator: /* @__PURE__ */ __name(() => LCNProfileQueryValidator, "LCNProfileQueryValidator"),
190
193
  LCNProfileValidator: /* @__PURE__ */ __name(() => LCNProfileValidator, "LCNProfileValidator"),
194
+ LCNPublicProfileValidator: /* @__PURE__ */ __name(() => LCNPublicProfileValidator, "LCNPublicProfileValidator"),
191
195
  LCNSigningAuthorityForUserValidator: /* @__PURE__ */ __name(() => LCNSigningAuthorityForUserValidator, "LCNSigningAuthorityForUserValidator"),
192
196
  LCNSigningAuthorityValidator: /* @__PURE__ */ __name(() => LCNSigningAuthorityValidator, "LCNSigningAuthorityValidator"),
197
+ LCNVisibleProfileValidator: /* @__PURE__ */ __name(() => LCNVisibleProfileValidator, "LCNVisibleProfileValidator"),
193
198
  LaunchTypeValidator: /* @__PURE__ */ __name(() => LaunchTypeValidator, "LaunchTypeValidator"),
194
199
  LinkProviderFrameworkInputValidator: /* @__PURE__ */ __name(() => LinkProviderFrameworkInputValidator, "LinkProviderFrameworkInputValidator"),
195
200
  PaginatedAppStoreListingsValidator: /* @__PURE__ */ __name(() => PaginatedAppStoreListingsValidator, "PaginatedAppStoreListingsValidator"),
@@ -214,9 +219,11 @@ var require_types_cjs_development = __commonJS({
214
219
  PaginatedLCNProfilesValidator: /* @__PURE__ */ __name(() => PaginatedLCNProfilesValidator, "PaginatedLCNProfilesValidator"),
215
220
  PaginatedSkillFrameworksValidator: /* @__PURE__ */ __name(() => PaginatedSkillFrameworksValidator, "PaginatedSkillFrameworksValidator"),
216
221
  PaginatedSkillTreeValidator: /* @__PURE__ */ __name(() => PaginatedSkillTreeValidator, "PaginatedSkillTreeValidator"),
222
+ PaginatedVisibleLCNProfilesValidator: /* @__PURE__ */ __name(() => PaginatedVisibleLCNProfilesValidator, "PaginatedVisibleLCNProfilesValidator"),
217
223
  PaginationOptionsValidator: /* @__PURE__ */ __name(() => PaginationOptionsValidator, "PaginationOptionsValidator"),
218
224
  PaginationResponseValidator: /* @__PURE__ */ __name(() => PaginationResponseValidator, "PaginationResponseValidator"),
219
225
  ProfileValidator: /* @__PURE__ */ __name(() => ProfileValidator, "ProfileValidator"),
226
+ ProfileVisibilityEnum: /* @__PURE__ */ __name(() => ProfileVisibilityEnum, "ProfileVisibilityEnum"),
220
227
  PromotionLevelValidator: /* @__PURE__ */ __name(() => PromotionLevelValidator, "PromotionLevelValidator"),
221
228
  ProofValidator: /* @__PURE__ */ __name(() => ProofValidator, "ProofValidator"),
222
229
  RefreshServiceValidator: /* @__PURE__ */ __name(() => RefreshServiceValidator, "RefreshServiceValidator"),
@@ -14117,6 +14124,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14117
14124
  idBackgroundColor: external_exports.string().optional(),
14118
14125
  repeatIdBackgroundImage: external_exports.boolean().optional()
14119
14126
  });
14127
+ var ProfileVisibilityEnum = external_exports.enum(["public", "connections_only", "private"]);
14128
+ var AllowConnectionRequestsEnum = external_exports.enum(["anyone", "invite_only"]);
14120
14129
  var LCNProfileValidator = external_exports.object({
14121
14130
  profileId: external_exports.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),
14122
14131
  displayName: external_exports.string().default("").describe("Human-readable display name for the profile."),
@@ -14124,6 +14133,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14124
14133
  bio: external_exports.string().default("").describe("Longer bio for the profile."),
14125
14134
  did: external_exports.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),
14126
14135
  isPrivate: external_exports.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),
14136
+ profileVisibility: ProfileVisibilityEnum.default("public").optional().describe("Profile visibility: 'public', 'connections_only', or 'private'."),
14137
+ showEmail: external_exports.boolean().default(false).optional().describe("Whether to show email to connections."),
14138
+ allowConnectionRequests: AllowConnectionRequestsEnum.default("anyone").optional().describe("Who can send connection requests: 'anyone' or 'invite_only'."),
14127
14139
  email: external_exports.string().optional().describe("Contact email address for the profile. (deprecated)"),
14128
14140
  image: external_exports.string().optional().describe("Profile image URL for the profile."),
14129
14141
  heroImage: external_exports.string().optional().describe("Hero image URL for the profile."),
@@ -14138,6 +14150,32 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14138
14150
  country: external_exports.string().optional().describe("Country for the profile."),
14139
14151
  approved: external_exports.boolean().optional().describe("Approval status for the profile.")
14140
14152
  });
14153
+ var LCNPublicProfileValidator = LCNProfileValidator.pick({
14154
+ profileId: true,
14155
+ displayName: true,
14156
+ shortBio: true,
14157
+ image: true,
14158
+ heroImage: true,
14159
+ type: true,
14160
+ isServiceProfile: true,
14161
+ display: true
14162
+ });
14163
+ var LCNAuthedProfileValidator = LCNPublicProfileValidator.extend({
14164
+ bio: LCNProfileValidator.shape.bio,
14165
+ websiteLink: LCNProfileValidator.shape.websiteLink,
14166
+ role: LCNProfileValidator.shape.role,
14167
+ highlightedCredentials: LCNProfileValidator.shape.highlightedCredentials,
14168
+ did: LCNProfileValidator.shape.did
14169
+ });
14170
+ var LCNConnectionProfileValidator = LCNAuthedProfileValidator.extend({
14171
+ email: LCNProfileValidator.shape.email
14172
+ });
14173
+ var LCNVisibleProfileValidator = external_exports.union([
14174
+ LCNConnectionProfileValidator.strict(),
14175
+ LCNAuthedProfileValidator.strict(),
14176
+ LCNPublicProfileValidator.strict(),
14177
+ LCNProfileValidator
14178
+ ]);
14141
14179
  var LCNProfileQueryValidator = external_exports.object({
14142
14180
  profileId: StringQuery,
14143
14181
  displayName: StringQuery,
@@ -14151,6 +14189,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14151
14189
  var PaginatedLCNProfilesValidator = PaginationResponseValidator.extend({
14152
14190
  records: LCNProfileValidator.array()
14153
14191
  });
14192
+ var PaginatedVisibleLCNProfilesValidator = PaginationResponseValidator.extend({
14193
+ records: LCNVisibleProfileValidator.array()
14194
+ });
14154
14195
  var LCNProfileConnectionStatusEnum = external_exports.enum([
14155
14196
  "CONNECTED",
14156
14197
  "PENDING_REQUEST_SENT",
@@ -14284,7 +14325,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14284
14325
  records: BoostValidator.array()
14285
14326
  });
14286
14327
  var BoostRecipientValidator = external_exports.object({
14287
- to: LCNProfileValidator,
14328
+ to: LCNVisibleProfileValidator,
14288
14329
  from: external_exports.string(),
14289
14330
  received: external_exports.string().optional(),
14290
14331
  uri: external_exports.string().optional()
@@ -14293,7 +14334,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14293
14334
  records: BoostRecipientValidator.array()
14294
14335
  });
14295
14336
  var BoostRecipientWithChildrenValidator = external_exports.object({
14296
- to: LCNProfileValidator,
14337
+ to: LCNVisibleProfileValidator,
14297
14338
  from: external_exports.string(),
14298
14339
  received: external_exports.string().optional(),
14299
14340
  boostUris: external_exports.array(external_exports.string()),
@@ -14365,8 +14406,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14365
14406
  ),
14366
14407
  templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
14367
14408
  integrationId: external_exports.string().optional().describe("Integration ID for activity tracking")
14368
- }).refine((data) => data.templateUri || data.template, {
14369
- message: "Either templateUri or template creation data must be provided.",
14409
+ }).refine((data) => data.templateUri || data.template || data.signedCredential, {
14410
+ message: "Either templateUri, template, or signedCredential must be provided.",
14370
14411
  path: ["templateUri"]
14371
14412
  });
14372
14413
  var SendInboxResponseValidator = external_exports.object({