@learncard/helpers 1.1.28 → 1.1.30
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.cjs.development.js +377 -18
- package/dist/helpers.cjs.development.js.map +2 -2
- package/dist/helpers.cjs.production.min.js +1 -1
- package/dist/helpers.cjs.production.min.js.map +3 -3
- package/dist/helpers.d.ts +2 -0
- package/dist/helpers.esm.js +377 -18
- package/dist/helpers.esm.js.map +2 -2
- package/package.json +2 -2
|
@@ -56,6 +56,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
56
56
|
AchievementSubjectValidator: () => AchievementSubjectValidator,
|
|
57
57
|
AchievementTypeValidator: () => AchievementTypeValidator,
|
|
58
58
|
AchievementValidator: () => AchievementValidator,
|
|
59
|
+
AddTagInputValidator: () => AddTagInputValidator,
|
|
59
60
|
AddressValidator: () => AddressValidator,
|
|
60
61
|
AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator,
|
|
61
62
|
AlignmentValidator: () => AlignmentValidator,
|
|
@@ -72,6 +73,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
72
73
|
ClaimHookQueryValidator: () => ClaimHookQueryValidator,
|
|
73
74
|
ClaimHookTypeValidator: () => ClaimHookTypeValidator,
|
|
74
75
|
ClaimHookValidator: () => ClaimHookValidator,
|
|
76
|
+
ClaimInboxCredentialValidator: () => ClaimInboxCredentialValidator,
|
|
75
77
|
ClaimTokenValidator: () => ClaimTokenValidator,
|
|
76
78
|
ConsentFlowContractDataForDidValidator: () => ConsentFlowContractDataForDidValidator,
|
|
77
79
|
ConsentFlowContractDataValidator: () => ConsentFlowContractDataValidator,
|
|
@@ -94,12 +96,22 @@ var require_types_cjs_development = __commonJS({
|
|
|
94
96
|
ContactMethodVerificationValidator: () => ContactMethodVerificationValidator,
|
|
95
97
|
ContextValidator: () => ContextValidator,
|
|
96
98
|
ContractCredentialValidator: () => ContractCredentialValidator,
|
|
99
|
+
CountSkillsInputValidator: () => CountSkillsInputValidator,
|
|
100
|
+
CountSkillsResultValidator: () => CountSkillsResultValidator,
|
|
101
|
+
CreateContactMethodSessionResponseValidator: () => CreateContactMethodSessionResponseValidator,
|
|
102
|
+
CreateContactMethodSessionValidator: () => CreateContactMethodSessionValidator,
|
|
103
|
+
CreateManagedFrameworkBatchInputValidator: () => CreateManagedFrameworkBatchInputValidator,
|
|
104
|
+
CreateManagedFrameworkInputValidator: () => CreateManagedFrameworkInputValidator,
|
|
105
|
+
CreateSkillInputValidator: () => CreateSkillInputValidator,
|
|
106
|
+
CreateSkillsBatchInputValidator: () => CreateSkillsBatchInputValidator,
|
|
97
107
|
CredentialInfoValidator: () => CredentialInfoValidator,
|
|
98
108
|
CredentialRecordValidator: () => CredentialRecordValidator,
|
|
99
109
|
CredentialSchemaValidator: () => CredentialSchemaValidator,
|
|
100
110
|
CredentialStatusValidator: () => CredentialStatusValidator,
|
|
101
111
|
CredentialSubjectValidator: () => CredentialSubjectValidator,
|
|
102
112
|
CriteriaValidator: () => CriteriaValidator,
|
|
113
|
+
DeleteFrameworkInputValidator: () => DeleteFrameworkInputValidator,
|
|
114
|
+
DeleteSkillInputValidator: () => DeleteSkillInputValidator,
|
|
103
115
|
DidDocumentValidator: () => DidDocumentValidator,
|
|
104
116
|
EncryptedCredentialRecordValidator: () => EncryptedCredentialRecordValidator,
|
|
105
117
|
EncryptedRecordValidator: () => EncryptedRecordValidator,
|
|
@@ -107,8 +119,13 @@ var require_types_cjs_development = __commonJS({
|
|
|
107
119
|
EndorsementSubjectValidator: () => EndorsementSubjectValidator,
|
|
108
120
|
EvidenceValidator: () => EvidenceValidator,
|
|
109
121
|
FlatAuthGrantValidator: () => FlatAuthGrantValidator,
|
|
122
|
+
FrameworkWithSkillsValidator: () => FrameworkWithSkillsValidator,
|
|
110
123
|
FullClaimHookValidator: () => FullClaimHookValidator,
|
|
111
124
|
GeoCoordinatesValidator: () => GeoCoordinatesValidator,
|
|
125
|
+
GetFullSkillTreeInputValidator: () => GetFullSkillTreeInputValidator,
|
|
126
|
+
GetFullSkillTreeResultValidator: () => GetFullSkillTreeResultValidator,
|
|
127
|
+
GetSkillPathInputValidator: () => GetSkillPathInputValidator,
|
|
128
|
+
GetSkillPathResultValidator: () => GetSkillPathResultValidator,
|
|
112
129
|
IdentifierEntryValidator: () => IdentifierEntryValidator,
|
|
113
130
|
IdentifierTypeValidator: () => IdentifierTypeValidator,
|
|
114
131
|
IdentityObjectValidator: () => IdentityObjectValidator,
|
|
@@ -127,8 +144,13 @@ var require_types_cjs_development = __commonJS({
|
|
|
127
144
|
LCNBoostClaimLinkOptionsValidator: () => LCNBoostClaimLinkOptionsValidator,
|
|
128
145
|
LCNBoostClaimLinkSigningAuthorityValidator: () => LCNBoostClaimLinkSigningAuthorityValidator,
|
|
129
146
|
LCNBoostStatus: () => LCNBoostStatus,
|
|
147
|
+
LCNDomainOrOriginValidator: () => LCNDomainOrOriginValidator,
|
|
130
148
|
LCNInboxContactMethodValidator: () => LCNInboxContactMethodValidator,
|
|
131
149
|
LCNInboxStatusEnumValidator: () => LCNInboxStatusEnumValidator,
|
|
150
|
+
LCNIntegrationCreateValidator: () => LCNIntegrationCreateValidator,
|
|
151
|
+
LCNIntegrationQueryValidator: () => LCNIntegrationQueryValidator,
|
|
152
|
+
LCNIntegrationUpdateValidator: () => LCNIntegrationUpdateValidator,
|
|
153
|
+
LCNIntegrationValidator: () => LCNIntegrationValidator,
|
|
132
154
|
LCNNotificationDataValidator: () => LCNNotificationDataValidator,
|
|
133
155
|
LCNNotificationInboxValidator: () => LCNNotificationInboxValidator,
|
|
134
156
|
LCNNotificationMessageValidator: () => LCNNotificationMessageValidator,
|
|
@@ -142,6 +164,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
142
164
|
LCNProfileValidator: () => LCNProfileValidator,
|
|
143
165
|
LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator,
|
|
144
166
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator,
|
|
167
|
+
LinkProviderFrameworkInputValidator: () => LinkProviderFrameworkInputValidator,
|
|
145
168
|
PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator,
|
|
146
169
|
PaginatedBoostRecipientsWithChildrenValidator: () => PaginatedBoostRecipientsWithChildrenValidator,
|
|
147
170
|
PaginatedBoostsValidator: () => PaginatedBoostsValidator,
|
|
@@ -155,9 +178,12 @@ var require_types_cjs_development = __commonJS({
|
|
|
155
178
|
PaginatedEncryptedCredentialRecordsValidator: () => PaginatedEncryptedCredentialRecordsValidator,
|
|
156
179
|
PaginatedEncryptedRecordsValidator: () => PaginatedEncryptedRecordsValidator,
|
|
157
180
|
PaginatedInboxCredentialsValidator: () => PaginatedInboxCredentialsValidator,
|
|
181
|
+
PaginatedLCNIntegrationsValidator: () => PaginatedLCNIntegrationsValidator,
|
|
158
182
|
PaginatedLCNProfileManagersValidator: () => PaginatedLCNProfileManagersValidator,
|
|
159
183
|
PaginatedLCNProfilesAndManagersValidator: () => PaginatedLCNProfilesAndManagersValidator,
|
|
160
184
|
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator,
|
|
185
|
+
PaginatedSkillFrameworksValidator: () => PaginatedSkillFrameworksValidator,
|
|
186
|
+
PaginatedSkillTreeValidator: () => PaginatedSkillTreeValidator,
|
|
161
187
|
PaginationOptionsValidator: () => PaginationOptionsValidator,
|
|
162
188
|
PaginationResponseValidator: () => PaginationResponseValidator,
|
|
163
189
|
ProfileValidator: () => ProfileValidator,
|
|
@@ -165,6 +191,8 @@ var require_types_cjs_development = __commonJS({
|
|
|
165
191
|
RefreshServiceValidator: () => RefreshServiceValidator,
|
|
166
192
|
RegExpValidator: () => RegExpValidator,
|
|
167
193
|
RelatedValidator: () => RelatedValidator,
|
|
194
|
+
ReplaceSkillFrameworkSkillsInputValidator: () => ReplaceSkillFrameworkSkillsInputValidator,
|
|
195
|
+
ReplaceSkillFrameworkSkillsResultValidator: () => ReplaceSkillFrameworkSkillsResultValidator,
|
|
168
196
|
ResultDescriptionValidator: () => ResultDescriptionValidator,
|
|
169
197
|
ResultStatusTypeValidator: () => ResultStatusTypeValidator,
|
|
170
198
|
ResultTypeValidator: () => ResultTypeValidator,
|
|
@@ -173,11 +201,27 @@ var require_types_cjs_development = __commonJS({
|
|
|
173
201
|
SentCredentialInfoValidator: () => SentCredentialInfoValidator,
|
|
174
202
|
ServiceValidator: () => ServiceValidator,
|
|
175
203
|
SetPrimaryContactMethodValidator: () => SetPrimaryContactMethodValidator,
|
|
204
|
+
SkillDeletionStrategyValidator: () => SkillDeletionStrategyValidator,
|
|
205
|
+
SkillFrameworkAdminInputValidator: () => SkillFrameworkAdminInputValidator,
|
|
206
|
+
SkillFrameworkAdminsValidator: () => SkillFrameworkAdminsValidator,
|
|
207
|
+
SkillFrameworkIdInputValidator: () => SkillFrameworkIdInputValidator,
|
|
208
|
+
SkillFrameworkQueryValidator: () => SkillFrameworkQueryValidator,
|
|
209
|
+
SkillFrameworkStatusEnum: () => SkillFrameworkStatusEnum,
|
|
210
|
+
SkillFrameworkValidator: () => SkillFrameworkValidator,
|
|
211
|
+
SkillQueryValidator: () => SkillQueryValidator,
|
|
212
|
+
SkillStatusEnum: () => SkillStatusEnum,
|
|
213
|
+
SkillTreeNodeInputValidator: () => SkillTreeNodeInputValidator,
|
|
214
|
+
SkillTreeNodeValidator: () => SkillTreeNodeValidator,
|
|
215
|
+
SkillValidator: () => SkillValidator,
|
|
176
216
|
StringQuery: () => StringQuery,
|
|
217
|
+
SyncFrameworkInputValidator: () => SyncFrameworkInputValidator,
|
|
218
|
+
TagValidator: () => TagValidator,
|
|
177
219
|
TermsOfUseValidator: () => TermsOfUseValidator,
|
|
178
220
|
UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator,
|
|
179
221
|
UnsignedVCValidator: () => UnsignedVCValidator,
|
|
180
222
|
UnsignedVPValidator: () => UnsignedVPValidator,
|
|
223
|
+
UpdateFrameworkInputValidator: () => UpdateFrameworkInputValidator,
|
|
224
|
+
UpdateSkillInputValidator: () => UpdateSkillInputValidator,
|
|
181
225
|
VC2EvidenceValidator: () => VC2EvidenceValidator,
|
|
182
226
|
VCValidator: () => VCValidator,
|
|
183
227
|
VPValidator: () => VPValidator,
|
|
@@ -4637,7 +4681,14 @@ var require_types_cjs_development = __commonJS({
|
|
|
4637
4681
|
}
|
|
4638
4682
|
})
|
|
4639
4683
|
);
|
|
4640
|
-
var
|
|
4684
|
+
var BaseStringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
|
|
4685
|
+
var StringQuery = z.union([
|
|
4686
|
+
BaseStringQuery,
|
|
4687
|
+
z.object({
|
|
4688
|
+
$or: BaseStringQuery.array()
|
|
4689
|
+
})
|
|
4690
|
+
]);
|
|
4691
|
+
extendZodWithOpenApi(z);
|
|
4641
4692
|
var LCNProfileDisplayValidator = z.object({
|
|
4642
4693
|
backgroundColor: z.string().optional(),
|
|
4643
4694
|
backgroundImage: z.string().optional(),
|
|
@@ -4795,7 +4846,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
4795
4846
|
claimPermissions: BoostPermissionsValidator.optional(),
|
|
4796
4847
|
allowAnyoneToCreateChildren: z.boolean().optional()
|
|
4797
4848
|
});
|
|
4798
|
-
var
|
|
4849
|
+
var BaseBoostQueryValidator = z.object({
|
|
4799
4850
|
uri: StringQuery,
|
|
4800
4851
|
name: StringQuery,
|
|
4801
4852
|
type: StringQuery,
|
|
@@ -4804,6 +4855,12 @@ var require_types_cjs_development = __commonJS({
|
|
|
4804
4855
|
status: LCNBoostStatus.or(z.object({ $in: LCNBoostStatus.array() })),
|
|
4805
4856
|
autoConnectRecipients: z.boolean()
|
|
4806
4857
|
}).partial();
|
|
4858
|
+
var BoostQueryValidator = z.union([
|
|
4859
|
+
z.object({
|
|
4860
|
+
$or: BaseBoostQueryValidator.array()
|
|
4861
|
+
}),
|
|
4862
|
+
BaseBoostQueryValidator
|
|
4863
|
+
]);
|
|
4807
4864
|
var PaginatedBoostsValidator = PaginationResponseValidator.extend({
|
|
4808
4865
|
records: BoostValidator.array()
|
|
4809
4866
|
});
|
|
@@ -4859,11 +4916,25 @@ var require_types_cjs_development = __commonJS({
|
|
|
4859
4916
|
var ConsentFlowContractValidator = z.object({
|
|
4860
4917
|
read: z.object({
|
|
4861
4918
|
anonymize: z.boolean().optional(),
|
|
4862
|
-
credentials: z.object({
|
|
4919
|
+
credentials: z.object({
|
|
4920
|
+
categories: z.record(
|
|
4921
|
+
z.object({
|
|
4922
|
+
required: z.boolean(),
|
|
4923
|
+
defaultEnabled: z.boolean().optional()
|
|
4924
|
+
})
|
|
4925
|
+
).default({})
|
|
4926
|
+
}).default({}),
|
|
4863
4927
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
4864
4928
|
}).default({}),
|
|
4865
4929
|
write: z.object({
|
|
4866
|
-
credentials: z.object({
|
|
4930
|
+
credentials: z.object({
|
|
4931
|
+
categories: z.record(
|
|
4932
|
+
z.object({
|
|
4933
|
+
required: z.boolean(),
|
|
4934
|
+
defaultEnabled: z.boolean().optional()
|
|
4935
|
+
})
|
|
4936
|
+
).default({})
|
|
4937
|
+
}).default({}),
|
|
4867
4938
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
4868
4939
|
}).default({})
|
|
4869
4940
|
});
|
|
@@ -5006,6 +5077,17 @@ var require_types_cjs_development = __commonJS({
|
|
|
5006
5077
|
var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
|
|
5007
5078
|
records: ConsentFlowTransactionValidator.array()
|
|
5008
5079
|
});
|
|
5080
|
+
var BaseSkillFrameworkQueryValidator = z.object({
|
|
5081
|
+
id: StringQuery,
|
|
5082
|
+
name: StringQuery,
|
|
5083
|
+
description: StringQuery,
|
|
5084
|
+
sourceURI: StringQuery,
|
|
5085
|
+
status: StringQuery
|
|
5086
|
+
}).partial();
|
|
5087
|
+
var SkillFrameworkQueryValidator = z.union([
|
|
5088
|
+
z.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
|
|
5089
|
+
BaseSkillFrameworkQueryValidator
|
|
5090
|
+
]);
|
|
5009
5091
|
var ContractCredentialValidator = z.object({
|
|
5010
5092
|
credentialUri: z.string(),
|
|
5011
5093
|
termsUri: z.string(),
|
|
@@ -5040,7 +5122,13 @@ var require_types_cjs_development = __commonJS({
|
|
|
5040
5122
|
type: z.string(),
|
|
5041
5123
|
value: z.string()
|
|
5042
5124
|
});
|
|
5043
|
-
var LCNInboxStatusEnumValidator = z.enum([
|
|
5125
|
+
var LCNInboxStatusEnumValidator = z.enum([
|
|
5126
|
+
"PENDING",
|
|
5127
|
+
"ISSUED",
|
|
5128
|
+
"EXPIRED",
|
|
5129
|
+
"DELIVERED",
|
|
5130
|
+
"CLAIMED"
|
|
5131
|
+
]);
|
|
5044
5132
|
var LCNNotificationInboxValidator = z.object({
|
|
5045
5133
|
issuanceId: z.string(),
|
|
5046
5134
|
status: LCNInboxStatusEnumValidator,
|
|
@@ -5138,11 +5226,19 @@ var require_types_cjs_development = __commonJS({
|
|
|
5138
5226
|
var SetPrimaryContactMethodValidator = z.object({
|
|
5139
5227
|
contactMethodId: z.string()
|
|
5140
5228
|
});
|
|
5229
|
+
var CreateContactMethodSessionValidator = z.object({
|
|
5230
|
+
contactMethod: ContactMethodVerificationRequestValidator,
|
|
5231
|
+
otpChallenge: z.string()
|
|
5232
|
+
});
|
|
5233
|
+
var CreateContactMethodSessionResponseValidator = z.object({
|
|
5234
|
+
sessionJwt: z.string()
|
|
5235
|
+
});
|
|
5141
5236
|
var InboxCredentialValidator = z.object({
|
|
5142
5237
|
id: z.string(),
|
|
5143
5238
|
credential: z.string(),
|
|
5144
5239
|
isSigned: z.boolean(),
|
|
5145
5240
|
currentStatus: LCNInboxStatusEnumValidator,
|
|
5241
|
+
isAccepted: z.boolean().optional(),
|
|
5146
5242
|
expiresAt: z.string(),
|
|
5147
5243
|
createdAt: z.string(),
|
|
5148
5244
|
issuerDid: z.string(),
|
|
@@ -5161,6 +5257,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
5161
5257
|
currentStatus: LCNInboxStatusEnumValidator,
|
|
5162
5258
|
id: z.string(),
|
|
5163
5259
|
isSigned: z.boolean(),
|
|
5260
|
+
isAccepted: z.boolean().optional(),
|
|
5164
5261
|
issuerDid: z.string()
|
|
5165
5262
|
}).partial();
|
|
5166
5263
|
var IssueInboxSigningAuthorityValidator = z.object({
|
|
@@ -5169,31 +5266,55 @@ var require_types_cjs_development = __commonJS({
|
|
|
5169
5266
|
});
|
|
5170
5267
|
var IssueInboxCredentialValidator = z.object({
|
|
5171
5268
|
recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
|
|
5172
|
-
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
5269
|
+
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
5270
|
+
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
5271
|
+
),
|
|
5173
5272
|
configuration: z.object({
|
|
5174
|
-
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
5273
|
+
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
5274
|
+
"The signing authority to use for the credential. If not provided, the users default signing authority will be used if the credential is not signed."
|
|
5275
|
+
),
|
|
5175
5276
|
webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
5176
5277
|
expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
5177
5278
|
delivery: z.object({
|
|
5178
|
-
suppress: z.boolean().optional().default(false).describe(
|
|
5279
|
+
suppress: z.boolean().optional().default(false).describe(
|
|
5280
|
+
"Whether to suppress delivery of the credential to the recipient. If true, the email/sms will not be sent to the recipient. Useful if you would like to manually send claim link to your users."
|
|
5281
|
+
),
|
|
5179
5282
|
template: z.object({
|
|
5180
|
-
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
5283
|
+
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
5284
|
+
"The template ID to use for the credential delivery. If not provided, the default template will be used."
|
|
5285
|
+
),
|
|
5181
5286
|
model: z.object({
|
|
5182
5287
|
issuer: z.object({
|
|
5183
|
-
name: z.string().optional().describe(
|
|
5288
|
+
name: z.string().optional().describe(
|
|
5289
|
+
'The name of the organization (e.g., "State University").'
|
|
5290
|
+
),
|
|
5184
5291
|
logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
|
|
5185
5292
|
}).optional(),
|
|
5186
5293
|
credential: z.object({
|
|
5187
|
-
name: z.string().optional().describe(
|
|
5188
|
-
|
|
5294
|
+
name: z.string().optional().describe(
|
|
5295
|
+
'The name of the credential (e.g., "Bachelor of Science").'
|
|
5296
|
+
),
|
|
5297
|
+
type: z.string().optional().describe(
|
|
5298
|
+
'The type of the credential (e.g., "degree", "certificate").'
|
|
5299
|
+
)
|
|
5189
5300
|
}).optional(),
|
|
5190
5301
|
recipient: z.object({
|
|
5191
|
-
name: z.string().optional().describe(
|
|
5302
|
+
name: z.string().optional().describe(
|
|
5303
|
+
'The name of the recipient (e.g., "John Doe").'
|
|
5304
|
+
)
|
|
5192
5305
|
}).optional()
|
|
5193
|
-
}).describe(
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5306
|
+
}).describe(
|
|
5307
|
+
"The template model to use for the credential delivery. Injects via template variables into email/sms templates. If not provided, the default template will be used."
|
|
5308
|
+
)
|
|
5309
|
+
}).optional().describe(
|
|
5310
|
+
"The template to use for the credential delivery. If not provided, the default template will be used."
|
|
5311
|
+
)
|
|
5312
|
+
}).optional().describe(
|
|
5313
|
+
"Configuration for the credential delivery i.e. email or SMS. When credentials are sent to a user who has a verified email or phone associated with their account, delivery is skipped, and the credential will be sent using in-app notifications. If not provided, the default configuration will be used."
|
|
5314
|
+
)
|
|
5315
|
+
}).optional().describe(
|
|
5316
|
+
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
5317
|
+
)
|
|
5197
5318
|
});
|
|
5198
5319
|
var IssueInboxCredentialResponseValidator = z.object({
|
|
5199
5320
|
issuanceId: z.string(),
|
|
@@ -5202,6 +5323,51 @@ var require_types_cjs_development = __commonJS({
|
|
|
5202
5323
|
claimUrl: z.string().url().optional(),
|
|
5203
5324
|
recipientDid: z.string().optional()
|
|
5204
5325
|
});
|
|
5326
|
+
var ClaimInboxCredentialValidator = z.object({
|
|
5327
|
+
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe("The credential to issue."),
|
|
5328
|
+
configuration: z.object({
|
|
5329
|
+
publishableKey: z.string(),
|
|
5330
|
+
signingAuthorityName: z.string().optional()
|
|
5331
|
+
}).optional()
|
|
5332
|
+
});
|
|
5333
|
+
var LCNDomainOrOriginValidator = z.union([
|
|
5334
|
+
z.string().regex(
|
|
5335
|
+
/^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
|
|
5336
|
+
{
|
|
5337
|
+
message: "Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"
|
|
5338
|
+
}
|
|
5339
|
+
),
|
|
5340
|
+
z.string().regex(
|
|
5341
|
+
/^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
|
|
5342
|
+
{ message: "Must be a valid http(s) origin" }
|
|
5343
|
+
)
|
|
5344
|
+
]);
|
|
5345
|
+
var LCNIntegrationValidator = z.object({
|
|
5346
|
+
id: z.string(),
|
|
5347
|
+
name: z.string(),
|
|
5348
|
+
description: z.string().optional(),
|
|
5349
|
+
publishableKey: z.string(),
|
|
5350
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
|
|
5351
|
+
});
|
|
5352
|
+
var LCNIntegrationCreateValidator = z.object({
|
|
5353
|
+
name: z.string(),
|
|
5354
|
+
description: z.string().optional(),
|
|
5355
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
|
|
5356
|
+
});
|
|
5357
|
+
var LCNIntegrationUpdateValidator = z.object({
|
|
5358
|
+
name: z.string().optional(),
|
|
5359
|
+
description: z.string().optional(),
|
|
5360
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).optional(),
|
|
5361
|
+
rotatePublishableKey: z.boolean().optional()
|
|
5362
|
+
});
|
|
5363
|
+
var LCNIntegrationQueryValidator = z.object({
|
|
5364
|
+
id: StringQuery,
|
|
5365
|
+
name: StringQuery,
|
|
5366
|
+
description: StringQuery
|
|
5367
|
+
}).partial();
|
|
5368
|
+
var PaginatedLCNIntegrationsValidator = PaginationResponseValidator.extend({
|
|
5369
|
+
records: LCNIntegrationValidator.array()
|
|
5370
|
+
});
|
|
5205
5371
|
var ClaimTokenValidator = z.object({
|
|
5206
5372
|
token: z.string(),
|
|
5207
5373
|
contactMethodId: z.string(),
|
|
@@ -5210,6 +5376,191 @@ var require_types_cjs_development = __commonJS({
|
|
|
5210
5376
|
expiresAt: z.string(),
|
|
5211
5377
|
used: z.boolean()
|
|
5212
5378
|
});
|
|
5379
|
+
var TagValidator = z.object({
|
|
5380
|
+
id: z.string(),
|
|
5381
|
+
name: z.string().min(1),
|
|
5382
|
+
slug: z.string().min(1),
|
|
5383
|
+
createdAt: z.string().optional(),
|
|
5384
|
+
updatedAt: z.string().optional()
|
|
5385
|
+
});
|
|
5386
|
+
var SkillStatusEnum = z.enum(["active", "archived"]);
|
|
5387
|
+
var SkillValidator = z.object({
|
|
5388
|
+
id: z.string(),
|
|
5389
|
+
statement: z.string(),
|
|
5390
|
+
description: z.string().optional(),
|
|
5391
|
+
code: z.string().optional(),
|
|
5392
|
+
icon: z.string().optional(),
|
|
5393
|
+
type: z.string().default("skill"),
|
|
5394
|
+
status: SkillStatusEnum.default("active"),
|
|
5395
|
+
frameworkId: z.string().optional(),
|
|
5396
|
+
createdAt: z.string().optional(),
|
|
5397
|
+
updatedAt: z.string().optional()
|
|
5398
|
+
});
|
|
5399
|
+
var BaseSkillQueryValidator = z.object({
|
|
5400
|
+
id: StringQuery,
|
|
5401
|
+
statement: StringQuery,
|
|
5402
|
+
description: StringQuery,
|
|
5403
|
+
code: StringQuery,
|
|
5404
|
+
type: StringQuery,
|
|
5405
|
+
status: SkillStatusEnum.or(z.object({ $in: SkillStatusEnum.array() }))
|
|
5406
|
+
}).partial();
|
|
5407
|
+
var SkillQueryValidator = z.union([
|
|
5408
|
+
z.object({
|
|
5409
|
+
$or: BaseSkillQueryValidator.array()
|
|
5410
|
+
}),
|
|
5411
|
+
BaseSkillQueryValidator
|
|
5412
|
+
]);
|
|
5413
|
+
var SkillFrameworkStatusEnum = z.enum(["active", "archived"]);
|
|
5414
|
+
var SkillFrameworkValidator = z.object({
|
|
5415
|
+
id: z.string(),
|
|
5416
|
+
name: z.string(),
|
|
5417
|
+
description: z.string().optional(),
|
|
5418
|
+
image: z.string().optional(),
|
|
5419
|
+
sourceURI: z.string().url().optional(),
|
|
5420
|
+
status: SkillFrameworkStatusEnum.default("active"),
|
|
5421
|
+
createdAt: z.string().optional(),
|
|
5422
|
+
updatedAt: z.string().optional()
|
|
5423
|
+
});
|
|
5424
|
+
var PaginatedSkillFrameworksValidator = PaginationResponseValidator.extend({
|
|
5425
|
+
records: SkillFrameworkValidator.array()
|
|
5426
|
+
});
|
|
5427
|
+
var SkillTreeNodeValidator = SkillValidator.extend({
|
|
5428
|
+
children: z.array(z.lazy(() => SkillTreeNodeValidator)),
|
|
5429
|
+
hasChildren: z.boolean(),
|
|
5430
|
+
childrenCursor: z.string().nullable().optional()
|
|
5431
|
+
}).openapi({ ref: "SkillTreeNode" });
|
|
5432
|
+
var PaginatedSkillTreeValidator = z.object({
|
|
5433
|
+
hasMore: z.boolean(),
|
|
5434
|
+
cursor: z.string().nullable(),
|
|
5435
|
+
records: z.array(SkillTreeNodeValidator)
|
|
5436
|
+
});
|
|
5437
|
+
var SkillTreeNodeInputValidator = z.lazy(
|
|
5438
|
+
() => z.object({
|
|
5439
|
+
id: z.string().optional(),
|
|
5440
|
+
statement: z.string(),
|
|
5441
|
+
description: z.string().optional(),
|
|
5442
|
+
code: z.string().optional(),
|
|
5443
|
+
icon: z.string().optional(),
|
|
5444
|
+
type: z.string().optional(),
|
|
5445
|
+
status: SkillStatusEnum.optional(),
|
|
5446
|
+
children: z.array(SkillTreeNodeInputValidator).optional()
|
|
5447
|
+
})
|
|
5448
|
+
).openapi({ ref: "SkillTreeNodeInput" });
|
|
5449
|
+
var LinkProviderFrameworkInputValidator = z.object({
|
|
5450
|
+
frameworkId: z.string()
|
|
5451
|
+
});
|
|
5452
|
+
var CreateManagedFrameworkInputValidator = z.object({
|
|
5453
|
+
id: z.string().optional(),
|
|
5454
|
+
name: z.string().min(1),
|
|
5455
|
+
description: z.string().optional(),
|
|
5456
|
+
image: z.string().optional(),
|
|
5457
|
+
sourceURI: z.string().url().optional(),
|
|
5458
|
+
status: SkillFrameworkStatusEnum.optional(),
|
|
5459
|
+
skills: z.array(SkillTreeNodeInputValidator).optional(),
|
|
5460
|
+
boostUris: z.array(z.string()).optional()
|
|
5461
|
+
});
|
|
5462
|
+
var UpdateFrameworkInputValidator = z.object({
|
|
5463
|
+
id: z.string(),
|
|
5464
|
+
name: z.string().min(1).optional(),
|
|
5465
|
+
description: z.string().optional(),
|
|
5466
|
+
image: z.string().optional(),
|
|
5467
|
+
sourceURI: z.string().url().optional(),
|
|
5468
|
+
status: SkillFrameworkStatusEnum.optional()
|
|
5469
|
+
}).refine(
|
|
5470
|
+
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
|
|
5471
|
+
{
|
|
5472
|
+
message: "At least one field must be provided to update",
|
|
5473
|
+
path: ["name"]
|
|
5474
|
+
}
|
|
5475
|
+
);
|
|
5476
|
+
var DeleteFrameworkInputValidator = z.object({ id: z.string() });
|
|
5477
|
+
var CreateManagedFrameworkBatchInputValidator = z.object({
|
|
5478
|
+
frameworks: z.array(
|
|
5479
|
+
CreateManagedFrameworkInputValidator.extend({
|
|
5480
|
+
skills: z.array(SkillTreeNodeInputValidator).optional()
|
|
5481
|
+
})
|
|
5482
|
+
).min(1)
|
|
5483
|
+
});
|
|
5484
|
+
var SkillFrameworkAdminInputValidator = z.object({
|
|
5485
|
+
frameworkId: z.string(),
|
|
5486
|
+
profileId: z.string()
|
|
5487
|
+
});
|
|
5488
|
+
var SkillFrameworkIdInputValidator = z.object({ frameworkId: z.string() });
|
|
5489
|
+
var SkillFrameworkAdminsValidator = LCNProfileValidator.array();
|
|
5490
|
+
var SyncFrameworkInputValidator = z.object({ id: z.string() });
|
|
5491
|
+
var AddTagInputValidator = z.object({
|
|
5492
|
+
slug: z.string().min(1),
|
|
5493
|
+
name: z.string().min(1)
|
|
5494
|
+
});
|
|
5495
|
+
var CreateSkillInputValidator = z.object({
|
|
5496
|
+
frameworkId: z.string(),
|
|
5497
|
+
skill: SkillTreeNodeInputValidator,
|
|
5498
|
+
parentId: z.string().nullable().optional()
|
|
5499
|
+
});
|
|
5500
|
+
var UpdateSkillInputValidator = z.object({
|
|
5501
|
+
frameworkId: z.string(),
|
|
5502
|
+
id: z.string(),
|
|
5503
|
+
statement: z.string().optional(),
|
|
5504
|
+
description: z.string().optional(),
|
|
5505
|
+
code: z.string().optional(),
|
|
5506
|
+
icon: z.string().optional(),
|
|
5507
|
+
type: z.string().optional(),
|
|
5508
|
+
status: SkillStatusEnum.optional()
|
|
5509
|
+
}).refine(
|
|
5510
|
+
(data) => data.statement !== void 0 || data.description !== void 0 || data.code !== void 0 || data.icon !== void 0 || data.type !== void 0 || data.status !== void 0,
|
|
5511
|
+
{
|
|
5512
|
+
message: "At least one field must be provided to update a skill",
|
|
5513
|
+
path: ["statement"]
|
|
5514
|
+
}
|
|
5515
|
+
);
|
|
5516
|
+
var SkillDeletionStrategyValidator = z.enum(["recursive", "reparent"]);
|
|
5517
|
+
var DeleteSkillInputValidator = z.object({
|
|
5518
|
+
frameworkId: z.string(),
|
|
5519
|
+
id: z.string(),
|
|
5520
|
+
strategy: SkillDeletionStrategyValidator.optional().default("reparent")
|
|
5521
|
+
});
|
|
5522
|
+
var CreateSkillsBatchInputValidator = z.object({
|
|
5523
|
+
frameworkId: z.string(),
|
|
5524
|
+
skills: z.array(SkillTreeNodeInputValidator).min(1),
|
|
5525
|
+
parentId: z.string().nullable().optional()
|
|
5526
|
+
});
|
|
5527
|
+
var ReplaceSkillFrameworkSkillsInputValidator = z.object({
|
|
5528
|
+
frameworkId: z.string(),
|
|
5529
|
+
skills: z.array(SkillTreeNodeInputValidator).min(0)
|
|
5530
|
+
});
|
|
5531
|
+
var ReplaceSkillFrameworkSkillsResultValidator = z.object({
|
|
5532
|
+
created: z.number().int().min(0),
|
|
5533
|
+
updated: z.number().int().min(0),
|
|
5534
|
+
deleted: z.number().int().min(0),
|
|
5535
|
+
unchanged: z.number().int().min(0),
|
|
5536
|
+
total: z.number().int().min(0)
|
|
5537
|
+
});
|
|
5538
|
+
var CountSkillsInputValidator = z.object({
|
|
5539
|
+
frameworkId: z.string(),
|
|
5540
|
+
skillId: z.string().optional(),
|
|
5541
|
+
recursive: z.boolean().optional().default(false),
|
|
5542
|
+
onlyCountCompetencies: z.boolean().optional().default(false)
|
|
5543
|
+
});
|
|
5544
|
+
var CountSkillsResultValidator = z.object({
|
|
5545
|
+
count: z.number().int().min(0)
|
|
5546
|
+
});
|
|
5547
|
+
var GetFullSkillTreeInputValidator = z.object({
|
|
5548
|
+
frameworkId: z.string()
|
|
5549
|
+
});
|
|
5550
|
+
var GetFullSkillTreeResultValidator = z.object({
|
|
5551
|
+
skills: z.array(SkillTreeNodeValidator)
|
|
5552
|
+
});
|
|
5553
|
+
var GetSkillPathInputValidator = z.object({
|
|
5554
|
+
frameworkId: z.string(),
|
|
5555
|
+
skillId: z.string()
|
|
5556
|
+
});
|
|
5557
|
+
var GetSkillPathResultValidator = z.object({
|
|
5558
|
+
path: z.array(SkillValidator)
|
|
5559
|
+
});
|
|
5560
|
+
var FrameworkWithSkillsValidator = z.object({
|
|
5561
|
+
framework: SkillFrameworkValidator,
|
|
5562
|
+
skills: PaginatedSkillTreeValidator
|
|
5563
|
+
});
|
|
5213
5564
|
}
|
|
5214
5565
|
});
|
|
5215
5566
|
|
|
@@ -5231,7 +5582,8 @@ __export(src_exports, {
|
|
|
5231
5582
|
RegExpTransformer: () => RegExpTransformer,
|
|
5232
5583
|
isEncrypted: () => isEncrypted,
|
|
5233
5584
|
isHex: () => isHex,
|
|
5234
|
-
isVC2Format: () => isVC2Format
|
|
5585
|
+
isVC2Format: () => isVC2Format,
|
|
5586
|
+
unwrapBoostCredential: () => unwrapBoostCredential
|
|
5235
5587
|
});
|
|
5236
5588
|
module.exports = __toCommonJS(src_exports);
|
|
5237
5589
|
var import_types = __toESM(require_dist());
|
|
@@ -5272,3 +5624,10 @@ var isVC2Format = /* @__PURE__ */ __name((credential) => {
|
|
|
5272
5624
|
}
|
|
5273
5625
|
return credential["@context"].includes("https://www.w3.org/ns/credentials/v2");
|
|
5274
5626
|
}, "isVC2Format");
|
|
5627
|
+
var unwrapBoostCredential = /* @__PURE__ */ __name((vc) => {
|
|
5628
|
+
if (vc?.type?.includes("CertifiedBoostCredential") && vc?.boostCredential) {
|
|
5629
|
+
return vc.boostCredential;
|
|
5630
|
+
} else {
|
|
5631
|
+
return vc;
|
|
5632
|
+
}
|
|
5633
|
+
}, "unwrapBoostCredential");
|