@learncard/helpers 1.2.11 → 1.2.13
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,12 +64,14 @@ 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"),
|
|
70
71
|
AppEventValidator: /* @__PURE__ */ __name(() => AppEventValidator, "AppEventValidator"),
|
|
71
72
|
AppListingStatusValidator: /* @__PURE__ */ __name(() => AppListingStatusValidator, "AppListingStatusValidator"),
|
|
72
73
|
AppStoreListingCreateValidator: /* @__PURE__ */ __name(() => AppStoreListingCreateValidator, "AppStoreListingCreateValidator"),
|
|
74
|
+
AppStoreListingSubmitterValidator: /* @__PURE__ */ __name(() => AppStoreListingSubmitterValidator, "AppStoreListingSubmitterValidator"),
|
|
73
75
|
AppStoreListingUpdateValidator: /* @__PURE__ */ __name(() => AppStoreListingUpdateValidator, "AppStoreListingUpdateValidator"),
|
|
74
76
|
AppStoreListingValidator: /* @__PURE__ */ __name(() => AppStoreListingValidator, "AppStoreListingValidator"),
|
|
75
77
|
AuthGrantQueryValidator: /* @__PURE__ */ __name(() => AuthGrantQueryValidator, "AuthGrantQueryValidator"),
|
|
@@ -94,6 +96,10 @@ var require_types_cjs_development = __commonJS({
|
|
|
94
96
|
ConsentFlowContractDataValidator: /* @__PURE__ */ __name(() => ConsentFlowContractDataValidator, "ConsentFlowContractDataValidator"),
|
|
95
97
|
ConsentFlowContractDetailsValidator: /* @__PURE__ */ __name(() => ConsentFlowContractDetailsValidator, "ConsentFlowContractDetailsValidator"),
|
|
96
98
|
ConsentFlowContractQueryValidator: /* @__PURE__ */ __name(() => ConsentFlowContractQueryValidator, "ConsentFlowContractQueryValidator"),
|
|
99
|
+
ConsentFlowContractRequestForProfileListValidator: /* @__PURE__ */ __name(() => ConsentFlowContractRequestForProfileListValidator, "ConsentFlowContractRequestForProfileListValidator"),
|
|
100
|
+
ConsentFlowContractRequestForProfileValidator: /* @__PURE__ */ __name(() => ConsentFlowContractRequestForProfileValidator, "ConsentFlowContractRequestForProfileValidator"),
|
|
101
|
+
ConsentFlowContractRequestReadStatusValidator: /* @__PURE__ */ __name(() => ConsentFlowContractRequestReadStatusValidator, "ConsentFlowContractRequestReadStatusValidator"),
|
|
102
|
+
ConsentFlowContractRequestStatusValidator: /* @__PURE__ */ __name(() => ConsentFlowContractRequestStatusValidator, "ConsentFlowContractRequestStatusValidator"),
|
|
97
103
|
ConsentFlowContractValidator: /* @__PURE__ */ __name(() => ConsentFlowContractValidator, "ConsentFlowContractValidator"),
|
|
98
104
|
ConsentFlowDataForDidQueryValidator: /* @__PURE__ */ __name(() => ConsentFlowDataForDidQueryValidator, "ConsentFlowDataForDidQueryValidator"),
|
|
99
105
|
ConsentFlowDataQueryValidator: /* @__PURE__ */ __name(() => ConsentFlowDataQueryValidator, "ConsentFlowDataQueryValidator"),
|
|
@@ -165,9 +171,11 @@ var require_types_cjs_development = __commonJS({
|
|
|
165
171
|
JWKValidator: /* @__PURE__ */ __name(() => JWKValidator, "JWKValidator"),
|
|
166
172
|
JWKWithPrivateKeyValidator: /* @__PURE__ */ __name(() => JWKWithPrivateKeyValidator, "JWKWithPrivateKeyValidator"),
|
|
167
173
|
KnownAchievementTypeValidator: /* @__PURE__ */ __name(() => KnownAchievementTypeValidator, "KnownAchievementTypeValidator"),
|
|
174
|
+
LCNAuthedProfileValidator: /* @__PURE__ */ __name(() => LCNAuthedProfileValidator, "LCNAuthedProfileValidator"),
|
|
168
175
|
LCNBoostClaimLinkOptionsValidator: /* @__PURE__ */ __name(() => LCNBoostClaimLinkOptionsValidator, "LCNBoostClaimLinkOptionsValidator"),
|
|
169
176
|
LCNBoostClaimLinkSigningAuthorityValidator: /* @__PURE__ */ __name(() => LCNBoostClaimLinkSigningAuthorityValidator, "LCNBoostClaimLinkSigningAuthorityValidator"),
|
|
170
177
|
LCNBoostStatus: /* @__PURE__ */ __name(() => LCNBoostStatus, "LCNBoostStatus"),
|
|
178
|
+
LCNConnectionProfileValidator: /* @__PURE__ */ __name(() => LCNConnectionProfileValidator, "LCNConnectionProfileValidator"),
|
|
171
179
|
LCNDomainOrOriginValidator: /* @__PURE__ */ __name(() => LCNDomainOrOriginValidator, "LCNDomainOrOriginValidator"),
|
|
172
180
|
LCNInboxContactMethodValidator: /* @__PURE__ */ __name(() => LCNInboxContactMethodValidator, "LCNInboxContactMethodValidator"),
|
|
173
181
|
LCNInboxStatusEnumValidator: /* @__PURE__ */ __name(() => LCNInboxStatusEnumValidator, "LCNInboxStatusEnumValidator"),
|
|
@@ -187,8 +195,10 @@ var require_types_cjs_development = __commonJS({
|
|
|
187
195
|
LCNProfileManagerValidator: /* @__PURE__ */ __name(() => LCNProfileManagerValidator, "LCNProfileManagerValidator"),
|
|
188
196
|
LCNProfileQueryValidator: /* @__PURE__ */ __name(() => LCNProfileQueryValidator, "LCNProfileQueryValidator"),
|
|
189
197
|
LCNProfileValidator: /* @__PURE__ */ __name(() => LCNProfileValidator, "LCNProfileValidator"),
|
|
198
|
+
LCNPublicProfileValidator: /* @__PURE__ */ __name(() => LCNPublicProfileValidator, "LCNPublicProfileValidator"),
|
|
190
199
|
LCNSigningAuthorityForUserValidator: /* @__PURE__ */ __name(() => LCNSigningAuthorityForUserValidator, "LCNSigningAuthorityForUserValidator"),
|
|
191
200
|
LCNSigningAuthorityValidator: /* @__PURE__ */ __name(() => LCNSigningAuthorityValidator, "LCNSigningAuthorityValidator"),
|
|
201
|
+
LCNVisibleProfileValidator: /* @__PURE__ */ __name(() => LCNVisibleProfileValidator, "LCNVisibleProfileValidator"),
|
|
192
202
|
LaunchTypeValidator: /* @__PURE__ */ __name(() => LaunchTypeValidator, "LaunchTypeValidator"),
|
|
193
203
|
LinkProviderFrameworkInputValidator: /* @__PURE__ */ __name(() => LinkProviderFrameworkInputValidator, "LinkProviderFrameworkInputValidator"),
|
|
194
204
|
PaginatedAppStoreListingsValidator: /* @__PURE__ */ __name(() => PaginatedAppStoreListingsValidator, "PaginatedAppStoreListingsValidator"),
|
|
@@ -213,9 +223,11 @@ var require_types_cjs_development = __commonJS({
|
|
|
213
223
|
PaginatedLCNProfilesValidator: /* @__PURE__ */ __name(() => PaginatedLCNProfilesValidator, "PaginatedLCNProfilesValidator"),
|
|
214
224
|
PaginatedSkillFrameworksValidator: /* @__PURE__ */ __name(() => PaginatedSkillFrameworksValidator, "PaginatedSkillFrameworksValidator"),
|
|
215
225
|
PaginatedSkillTreeValidator: /* @__PURE__ */ __name(() => PaginatedSkillTreeValidator, "PaginatedSkillTreeValidator"),
|
|
226
|
+
PaginatedVisibleLCNProfilesValidator: /* @__PURE__ */ __name(() => PaginatedVisibleLCNProfilesValidator, "PaginatedVisibleLCNProfilesValidator"),
|
|
216
227
|
PaginationOptionsValidator: /* @__PURE__ */ __name(() => PaginationOptionsValidator, "PaginationOptionsValidator"),
|
|
217
228
|
PaginationResponseValidator: /* @__PURE__ */ __name(() => PaginationResponseValidator, "PaginationResponseValidator"),
|
|
218
229
|
ProfileValidator: /* @__PURE__ */ __name(() => ProfileValidator, "ProfileValidator"),
|
|
230
|
+
ProfileVisibilityEnum: /* @__PURE__ */ __name(() => ProfileVisibilityEnum, "ProfileVisibilityEnum"),
|
|
219
231
|
PromotionLevelValidator: /* @__PURE__ */ __name(() => PromotionLevelValidator, "PromotionLevelValidator"),
|
|
220
232
|
ProofValidator: /* @__PURE__ */ __name(() => ProofValidator, "ProofValidator"),
|
|
221
233
|
RefreshServiceValidator: /* @__PURE__ */ __name(() => RefreshServiceValidator, "RefreshServiceValidator"),
|
|
@@ -14116,6 +14128,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14116
14128
|
idBackgroundColor: external_exports.string().optional(),
|
|
14117
14129
|
repeatIdBackgroundImage: external_exports.boolean().optional()
|
|
14118
14130
|
});
|
|
14131
|
+
var ProfileVisibilityEnum = external_exports.enum(["public", "connections_only", "private"]);
|
|
14132
|
+
var AllowConnectionRequestsEnum = external_exports.enum(["anyone", "invite_only"]);
|
|
14119
14133
|
var LCNProfileValidator = external_exports.object({
|
|
14120
14134
|
profileId: external_exports.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),
|
|
14121
14135
|
displayName: external_exports.string().default("").describe("Human-readable display name for the profile."),
|
|
@@ -14123,6 +14137,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14123
14137
|
bio: external_exports.string().default("").describe("Longer bio for the profile."),
|
|
14124
14138
|
did: external_exports.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),
|
|
14125
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'."),
|
|
14126
14143
|
email: external_exports.string().optional().describe("Contact email address for the profile. (deprecated)"),
|
|
14127
14144
|
image: external_exports.string().optional().describe("Profile image URL for the profile."),
|
|
14128
14145
|
heroImage: external_exports.string().optional().describe("Hero image URL for the profile."),
|
|
@@ -14137,6 +14154,32 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14137
14154
|
country: external_exports.string().optional().describe("Country for the profile."),
|
|
14138
14155
|
approved: external_exports.boolean().optional().describe("Approval status for the profile.")
|
|
14139
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
|
+
]);
|
|
14140
14183
|
var LCNProfileQueryValidator = external_exports.object({
|
|
14141
14184
|
profileId: StringQuery,
|
|
14142
14185
|
displayName: StringQuery,
|
|
@@ -14150,6 +14193,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14150
14193
|
var PaginatedLCNProfilesValidator = PaginationResponseValidator.extend({
|
|
14151
14194
|
records: LCNProfileValidator.array()
|
|
14152
14195
|
});
|
|
14196
|
+
var PaginatedVisibleLCNProfilesValidator = PaginationResponseValidator.extend({
|
|
14197
|
+
records: LCNVisibleProfileValidator.array()
|
|
14198
|
+
});
|
|
14153
14199
|
var LCNProfileConnectionStatusEnum = external_exports.enum([
|
|
14154
14200
|
"CONNECTED",
|
|
14155
14201
|
"PENDING_REQUEST_SENT",
|
|
@@ -14283,7 +14329,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14283
14329
|
records: BoostValidator.array()
|
|
14284
14330
|
});
|
|
14285
14331
|
var BoostRecipientValidator = external_exports.object({
|
|
14286
|
-
to:
|
|
14332
|
+
to: LCNVisibleProfileValidator,
|
|
14287
14333
|
from: external_exports.string(),
|
|
14288
14334
|
received: external_exports.string().optional(),
|
|
14289
14335
|
uri: external_exports.string().optional()
|
|
@@ -14292,7 +14338,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14292
14338
|
records: BoostRecipientValidator.array()
|
|
14293
14339
|
});
|
|
14294
14340
|
var BoostRecipientWithChildrenValidator = external_exports.object({
|
|
14295
|
-
to:
|
|
14341
|
+
to: LCNVisibleProfileValidator,
|
|
14296
14342
|
from: external_exports.string(),
|
|
14297
14343
|
received: external_exports.string().optional(),
|
|
14298
14344
|
boostUris: external_exports.array(external_exports.string()),
|
|
@@ -14436,6 +14482,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14436
14482
|
autoBoosts: external_exports.string().array().optional(),
|
|
14437
14483
|
writers: external_exports.array(LCNProfileValidator).optional()
|
|
14438
14484
|
});
|
|
14485
|
+
var ConsentFlowContractRequestStatusValidator = external_exports.enum(["pending", "accepted", "denied"]).nullable();
|
|
14486
|
+
var ConsentFlowContractRequestReadStatusValidator = external_exports.enum(["unseen", "seen"]).nullable();
|
|
14487
|
+
var ConsentFlowContractRequestForProfileValidator = external_exports.object({
|
|
14488
|
+
profile: LCNProfileValidator,
|
|
14489
|
+
status: ConsentFlowContractRequestStatusValidator,
|
|
14490
|
+
readStatus: ConsentFlowContractRequestReadStatusValidator.optional()
|
|
14491
|
+
});
|
|
14492
|
+
var ConsentFlowContractRequestForProfileListValidator = external_exports.array(
|
|
14493
|
+
ConsentFlowContractRequestForProfileValidator
|
|
14494
|
+
);
|
|
14439
14495
|
var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
|
|
14440
14496
|
records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
|
|
14441
14497
|
});
|
|
@@ -15125,6 +15181,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15125
15181
|
"DEMOTED"
|
|
15126
15182
|
]);
|
|
15127
15183
|
var AgeRatingValidator = external_exports.enum(["4+", "9+", "12+", "17+"]);
|
|
15184
|
+
var AppStoreListingSubmitterValidator = external_exports.object({
|
|
15185
|
+
profileId: external_exports.string(),
|
|
15186
|
+
displayName: external_exports.string(),
|
|
15187
|
+
email: external_exports.string().optional()
|
|
15188
|
+
});
|
|
15128
15189
|
var AppStoreListingValidator = external_exports.object({
|
|
15129
15190
|
listing_id: external_exports.string(),
|
|
15130
15191
|
slug: external_exports.string().optional(),
|
|
@@ -15146,7 +15207,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15146
15207
|
screenshots: external_exports.array(external_exports.string()).optional(),
|
|
15147
15208
|
hero_background_color: external_exports.string().optional(),
|
|
15148
15209
|
min_age: external_exports.number().int().min(0).max(18).optional(),
|
|
15149
|
-
age_rating: AgeRatingValidator.optional()
|
|
15210
|
+
age_rating: AgeRatingValidator.optional(),
|
|
15211
|
+
submitted_at: external_exports.string().optional(),
|
|
15212
|
+
submitter: AppStoreListingSubmitterValidator.optional(),
|
|
15213
|
+
contact_email: external_exports.string().email().optional()
|
|
15150
15214
|
});
|
|
15151
15215
|
var AppStoreListingCreateValidator = AppStoreListingValidator.omit({
|
|
15152
15216
|
listing_id: true,
|