@learncard/didkey-plugin 1.0.51 → 1.0.53
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/didkey-plugin.cjs.development.js +368 -17
- package/dist/didkey-plugin.cjs.development.js.map +2 -2
- package/dist/didkey-plugin.cjs.production.min.js +1 -1
- package/dist/didkey-plugin.cjs.production.min.js.map +3 -3
- package/dist/didkey-plugin.esm.js +368 -17
- package/dist/didkey-plugin.esm.js.map +2 -2
- package/package.json +4 -4
|
@@ -90,6 +90,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
90
90
|
AchievementSubjectValidator: () => AchievementSubjectValidator,
|
|
91
91
|
AchievementTypeValidator: () => AchievementTypeValidator,
|
|
92
92
|
AchievementValidator: () => AchievementValidator,
|
|
93
|
+
AddTagInputValidator: () => AddTagInputValidator,
|
|
93
94
|
AddressValidator: () => AddressValidator,
|
|
94
95
|
AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator,
|
|
95
96
|
AlignmentValidator: () => AlignmentValidator,
|
|
@@ -106,6 +107,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
106
107
|
ClaimHookQueryValidator: () => ClaimHookQueryValidator,
|
|
107
108
|
ClaimHookTypeValidator: () => ClaimHookTypeValidator,
|
|
108
109
|
ClaimHookValidator: () => ClaimHookValidator,
|
|
110
|
+
ClaimInboxCredentialValidator: () => ClaimInboxCredentialValidator,
|
|
109
111
|
ClaimTokenValidator: () => ClaimTokenValidator,
|
|
110
112
|
ConsentFlowContractDataForDidValidator: () => ConsentFlowContractDataForDidValidator,
|
|
111
113
|
ConsentFlowContractDataValidator: () => ConsentFlowContractDataValidator,
|
|
@@ -128,12 +130,22 @@ var require_types_cjs_development = __commonJS({
|
|
|
128
130
|
ContactMethodVerificationValidator: () => ContactMethodVerificationValidator,
|
|
129
131
|
ContextValidator: () => ContextValidator,
|
|
130
132
|
ContractCredentialValidator: () => ContractCredentialValidator,
|
|
133
|
+
CountSkillsInputValidator: () => CountSkillsInputValidator,
|
|
134
|
+
CountSkillsResultValidator: () => CountSkillsResultValidator,
|
|
135
|
+
CreateContactMethodSessionResponseValidator: () => CreateContactMethodSessionResponseValidator,
|
|
136
|
+
CreateContactMethodSessionValidator: () => CreateContactMethodSessionValidator,
|
|
137
|
+
CreateManagedFrameworkBatchInputValidator: () => CreateManagedFrameworkBatchInputValidator,
|
|
138
|
+
CreateManagedFrameworkInputValidator: () => CreateManagedFrameworkInputValidator,
|
|
139
|
+
CreateSkillInputValidator: () => CreateSkillInputValidator,
|
|
140
|
+
CreateSkillsBatchInputValidator: () => CreateSkillsBatchInputValidator,
|
|
131
141
|
CredentialInfoValidator: () => CredentialInfoValidator,
|
|
132
142
|
CredentialRecordValidator: () => CredentialRecordValidator,
|
|
133
143
|
CredentialSchemaValidator: () => CredentialSchemaValidator,
|
|
134
144
|
CredentialStatusValidator: () => CredentialStatusValidator,
|
|
135
145
|
CredentialSubjectValidator: () => CredentialSubjectValidator,
|
|
136
146
|
CriteriaValidator: () => CriteriaValidator,
|
|
147
|
+
DeleteFrameworkInputValidator: () => DeleteFrameworkInputValidator,
|
|
148
|
+
DeleteSkillInputValidator: () => DeleteSkillInputValidator,
|
|
137
149
|
DidDocumentValidator: () => DidDocumentValidator,
|
|
138
150
|
EncryptedCredentialRecordValidator: () => EncryptedCredentialRecordValidator,
|
|
139
151
|
EncryptedRecordValidator: () => EncryptedRecordValidator,
|
|
@@ -141,8 +153,13 @@ var require_types_cjs_development = __commonJS({
|
|
|
141
153
|
EndorsementSubjectValidator: () => EndorsementSubjectValidator,
|
|
142
154
|
EvidenceValidator: () => EvidenceValidator,
|
|
143
155
|
FlatAuthGrantValidator: () => FlatAuthGrantValidator,
|
|
156
|
+
FrameworkWithSkillsValidator: () => FrameworkWithSkillsValidator,
|
|
144
157
|
FullClaimHookValidator: () => FullClaimHookValidator,
|
|
145
158
|
GeoCoordinatesValidator: () => GeoCoordinatesValidator,
|
|
159
|
+
GetFullSkillTreeInputValidator: () => GetFullSkillTreeInputValidator,
|
|
160
|
+
GetFullSkillTreeResultValidator: () => GetFullSkillTreeResultValidator,
|
|
161
|
+
GetSkillPathInputValidator: () => GetSkillPathInputValidator,
|
|
162
|
+
GetSkillPathResultValidator: () => GetSkillPathResultValidator,
|
|
146
163
|
IdentifierEntryValidator: () => IdentifierEntryValidator,
|
|
147
164
|
IdentifierTypeValidator: () => IdentifierTypeValidator,
|
|
148
165
|
IdentityObjectValidator: () => IdentityObjectValidator,
|
|
@@ -161,8 +178,13 @@ var require_types_cjs_development = __commonJS({
|
|
|
161
178
|
LCNBoostClaimLinkOptionsValidator: () => LCNBoostClaimLinkOptionsValidator,
|
|
162
179
|
LCNBoostClaimLinkSigningAuthorityValidator: () => LCNBoostClaimLinkSigningAuthorityValidator,
|
|
163
180
|
LCNBoostStatus: () => LCNBoostStatus,
|
|
181
|
+
LCNDomainOrOriginValidator: () => LCNDomainOrOriginValidator,
|
|
164
182
|
LCNInboxContactMethodValidator: () => LCNInboxContactMethodValidator,
|
|
165
183
|
LCNInboxStatusEnumValidator: () => LCNInboxStatusEnumValidator,
|
|
184
|
+
LCNIntegrationCreateValidator: () => LCNIntegrationCreateValidator,
|
|
185
|
+
LCNIntegrationQueryValidator: () => LCNIntegrationQueryValidator,
|
|
186
|
+
LCNIntegrationUpdateValidator: () => LCNIntegrationUpdateValidator,
|
|
187
|
+
LCNIntegrationValidator: () => LCNIntegrationValidator,
|
|
166
188
|
LCNNotificationDataValidator: () => LCNNotificationDataValidator,
|
|
167
189
|
LCNNotificationInboxValidator: () => LCNNotificationInboxValidator,
|
|
168
190
|
LCNNotificationMessageValidator: () => LCNNotificationMessageValidator,
|
|
@@ -176,6 +198,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
176
198
|
LCNProfileValidator: () => LCNProfileValidator,
|
|
177
199
|
LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator,
|
|
178
200
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator,
|
|
201
|
+
LinkProviderFrameworkInputValidator: () => LinkProviderFrameworkInputValidator,
|
|
179
202
|
PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator,
|
|
180
203
|
PaginatedBoostRecipientsWithChildrenValidator: () => PaginatedBoostRecipientsWithChildrenValidator,
|
|
181
204
|
PaginatedBoostsValidator: () => PaginatedBoostsValidator,
|
|
@@ -189,9 +212,12 @@ var require_types_cjs_development = __commonJS({
|
|
|
189
212
|
PaginatedEncryptedCredentialRecordsValidator: () => PaginatedEncryptedCredentialRecordsValidator,
|
|
190
213
|
PaginatedEncryptedRecordsValidator: () => PaginatedEncryptedRecordsValidator,
|
|
191
214
|
PaginatedInboxCredentialsValidator: () => PaginatedInboxCredentialsValidator,
|
|
215
|
+
PaginatedLCNIntegrationsValidator: () => PaginatedLCNIntegrationsValidator,
|
|
192
216
|
PaginatedLCNProfileManagersValidator: () => PaginatedLCNProfileManagersValidator,
|
|
193
217
|
PaginatedLCNProfilesAndManagersValidator: () => PaginatedLCNProfilesAndManagersValidator,
|
|
194
218
|
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator,
|
|
219
|
+
PaginatedSkillFrameworksValidator: () => PaginatedSkillFrameworksValidator,
|
|
220
|
+
PaginatedSkillTreeValidator: () => PaginatedSkillTreeValidator,
|
|
195
221
|
PaginationOptionsValidator: () => PaginationOptionsValidator,
|
|
196
222
|
PaginationResponseValidator: () => PaginationResponseValidator,
|
|
197
223
|
ProfileValidator: () => ProfileValidator,
|
|
@@ -199,6 +225,8 @@ var require_types_cjs_development = __commonJS({
|
|
|
199
225
|
RefreshServiceValidator: () => RefreshServiceValidator,
|
|
200
226
|
RegExpValidator: () => RegExpValidator,
|
|
201
227
|
RelatedValidator: () => RelatedValidator,
|
|
228
|
+
ReplaceSkillFrameworkSkillsInputValidator: () => ReplaceSkillFrameworkSkillsInputValidator,
|
|
229
|
+
ReplaceSkillFrameworkSkillsResultValidator: () => ReplaceSkillFrameworkSkillsResultValidator,
|
|
202
230
|
ResultDescriptionValidator: () => ResultDescriptionValidator,
|
|
203
231
|
ResultStatusTypeValidator: () => ResultStatusTypeValidator,
|
|
204
232
|
ResultTypeValidator: () => ResultTypeValidator,
|
|
@@ -207,11 +235,27 @@ var require_types_cjs_development = __commonJS({
|
|
|
207
235
|
SentCredentialInfoValidator: () => SentCredentialInfoValidator,
|
|
208
236
|
ServiceValidator: () => ServiceValidator,
|
|
209
237
|
SetPrimaryContactMethodValidator: () => SetPrimaryContactMethodValidator,
|
|
238
|
+
SkillDeletionStrategyValidator: () => SkillDeletionStrategyValidator,
|
|
239
|
+
SkillFrameworkAdminInputValidator: () => SkillFrameworkAdminInputValidator,
|
|
240
|
+
SkillFrameworkAdminsValidator: () => SkillFrameworkAdminsValidator,
|
|
241
|
+
SkillFrameworkIdInputValidator: () => SkillFrameworkIdInputValidator,
|
|
242
|
+
SkillFrameworkQueryValidator: () => SkillFrameworkQueryValidator,
|
|
243
|
+
SkillFrameworkStatusEnum: () => SkillFrameworkStatusEnum,
|
|
244
|
+
SkillFrameworkValidator: () => SkillFrameworkValidator,
|
|
245
|
+
SkillQueryValidator: () => SkillQueryValidator,
|
|
246
|
+
SkillStatusEnum: () => SkillStatusEnum,
|
|
247
|
+
SkillTreeNodeInputValidator: () => SkillTreeNodeInputValidator,
|
|
248
|
+
SkillTreeNodeValidator: () => SkillTreeNodeValidator,
|
|
249
|
+
SkillValidator: () => SkillValidator,
|
|
210
250
|
StringQuery: () => StringQuery,
|
|
251
|
+
SyncFrameworkInputValidator: () => SyncFrameworkInputValidator,
|
|
252
|
+
TagValidator: () => TagValidator,
|
|
211
253
|
TermsOfUseValidator: () => TermsOfUseValidator,
|
|
212
254
|
UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator,
|
|
213
255
|
UnsignedVCValidator: () => UnsignedVCValidator,
|
|
214
256
|
UnsignedVPValidator: () => UnsignedVPValidator,
|
|
257
|
+
UpdateFrameworkInputValidator: () => UpdateFrameworkInputValidator,
|
|
258
|
+
UpdateSkillInputValidator: () => UpdateSkillInputValidator,
|
|
215
259
|
VC2EvidenceValidator: () => VC2EvidenceValidator,
|
|
216
260
|
VCValidator: () => VCValidator,
|
|
217
261
|
VPValidator: () => VPValidator,
|
|
@@ -4694,7 +4738,14 @@ var require_types_cjs_development = __commonJS({
|
|
|
4694
4738
|
}
|
|
4695
4739
|
})
|
|
4696
4740
|
);
|
|
4697
|
-
var
|
|
4741
|
+
var BaseStringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
|
|
4742
|
+
var StringQuery = z.union([
|
|
4743
|
+
BaseStringQuery,
|
|
4744
|
+
z.object({
|
|
4745
|
+
$or: BaseStringQuery.array()
|
|
4746
|
+
})
|
|
4747
|
+
]);
|
|
4748
|
+
extendZodWithOpenApi(z);
|
|
4698
4749
|
var LCNProfileDisplayValidator = z.object({
|
|
4699
4750
|
backgroundColor: z.string().optional(),
|
|
4700
4751
|
backgroundImage: z.string().optional(),
|
|
@@ -4852,7 +4903,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
4852
4903
|
claimPermissions: BoostPermissionsValidator.optional(),
|
|
4853
4904
|
allowAnyoneToCreateChildren: z.boolean().optional()
|
|
4854
4905
|
});
|
|
4855
|
-
var
|
|
4906
|
+
var BaseBoostQueryValidator = z.object({
|
|
4856
4907
|
uri: StringQuery,
|
|
4857
4908
|
name: StringQuery,
|
|
4858
4909
|
type: StringQuery,
|
|
@@ -4861,6 +4912,12 @@ var require_types_cjs_development = __commonJS({
|
|
|
4861
4912
|
status: LCNBoostStatus.or(z.object({ $in: LCNBoostStatus.array() })),
|
|
4862
4913
|
autoConnectRecipients: z.boolean()
|
|
4863
4914
|
}).partial();
|
|
4915
|
+
var BoostQueryValidator = z.union([
|
|
4916
|
+
z.object({
|
|
4917
|
+
$or: BaseBoostQueryValidator.array()
|
|
4918
|
+
}),
|
|
4919
|
+
BaseBoostQueryValidator
|
|
4920
|
+
]);
|
|
4864
4921
|
var PaginatedBoostsValidator = PaginationResponseValidator.extend({
|
|
4865
4922
|
records: BoostValidator.array()
|
|
4866
4923
|
});
|
|
@@ -4916,11 +4973,25 @@ var require_types_cjs_development = __commonJS({
|
|
|
4916
4973
|
var ConsentFlowContractValidator = z.object({
|
|
4917
4974
|
read: z.object({
|
|
4918
4975
|
anonymize: z.boolean().optional(),
|
|
4919
|
-
credentials: z.object({
|
|
4976
|
+
credentials: z.object({
|
|
4977
|
+
categories: z.record(
|
|
4978
|
+
z.object({
|
|
4979
|
+
required: z.boolean(),
|
|
4980
|
+
defaultEnabled: z.boolean().optional()
|
|
4981
|
+
})
|
|
4982
|
+
).default({})
|
|
4983
|
+
}).default({}),
|
|
4920
4984
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
4921
4985
|
}).default({}),
|
|
4922
4986
|
write: z.object({
|
|
4923
|
-
credentials: z.object({
|
|
4987
|
+
credentials: z.object({
|
|
4988
|
+
categories: z.record(
|
|
4989
|
+
z.object({
|
|
4990
|
+
required: z.boolean(),
|
|
4991
|
+
defaultEnabled: z.boolean().optional()
|
|
4992
|
+
})
|
|
4993
|
+
).default({})
|
|
4994
|
+
}).default({}),
|
|
4924
4995
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
4925
4996
|
}).default({})
|
|
4926
4997
|
});
|
|
@@ -5063,6 +5134,17 @@ var require_types_cjs_development = __commonJS({
|
|
|
5063
5134
|
var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
|
|
5064
5135
|
records: ConsentFlowTransactionValidator.array()
|
|
5065
5136
|
});
|
|
5137
|
+
var BaseSkillFrameworkQueryValidator = z.object({
|
|
5138
|
+
id: StringQuery,
|
|
5139
|
+
name: StringQuery,
|
|
5140
|
+
description: StringQuery,
|
|
5141
|
+
sourceURI: StringQuery,
|
|
5142
|
+
status: StringQuery
|
|
5143
|
+
}).partial();
|
|
5144
|
+
var SkillFrameworkQueryValidator = z.union([
|
|
5145
|
+
z.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
|
|
5146
|
+
BaseSkillFrameworkQueryValidator
|
|
5147
|
+
]);
|
|
5066
5148
|
var ContractCredentialValidator = z.object({
|
|
5067
5149
|
credentialUri: z.string(),
|
|
5068
5150
|
termsUri: z.string(),
|
|
@@ -5097,7 +5179,13 @@ var require_types_cjs_development = __commonJS({
|
|
|
5097
5179
|
type: z.string(),
|
|
5098
5180
|
value: z.string()
|
|
5099
5181
|
});
|
|
5100
|
-
var LCNInboxStatusEnumValidator = z.enum([
|
|
5182
|
+
var LCNInboxStatusEnumValidator = z.enum([
|
|
5183
|
+
"PENDING",
|
|
5184
|
+
"ISSUED",
|
|
5185
|
+
"EXPIRED",
|
|
5186
|
+
"DELIVERED",
|
|
5187
|
+
"CLAIMED"
|
|
5188
|
+
]);
|
|
5101
5189
|
var LCNNotificationInboxValidator = z.object({
|
|
5102
5190
|
issuanceId: z.string(),
|
|
5103
5191
|
status: LCNInboxStatusEnumValidator,
|
|
@@ -5195,11 +5283,19 @@ var require_types_cjs_development = __commonJS({
|
|
|
5195
5283
|
var SetPrimaryContactMethodValidator = z.object({
|
|
5196
5284
|
contactMethodId: z.string()
|
|
5197
5285
|
});
|
|
5286
|
+
var CreateContactMethodSessionValidator = z.object({
|
|
5287
|
+
contactMethod: ContactMethodVerificationRequestValidator,
|
|
5288
|
+
otpChallenge: z.string()
|
|
5289
|
+
});
|
|
5290
|
+
var CreateContactMethodSessionResponseValidator = z.object({
|
|
5291
|
+
sessionJwt: z.string()
|
|
5292
|
+
});
|
|
5198
5293
|
var InboxCredentialValidator = z.object({
|
|
5199
5294
|
id: z.string(),
|
|
5200
5295
|
credential: z.string(),
|
|
5201
5296
|
isSigned: z.boolean(),
|
|
5202
5297
|
currentStatus: LCNInboxStatusEnumValidator,
|
|
5298
|
+
isAccepted: z.boolean().optional(),
|
|
5203
5299
|
expiresAt: z.string(),
|
|
5204
5300
|
createdAt: z.string(),
|
|
5205
5301
|
issuerDid: z.string(),
|
|
@@ -5218,6 +5314,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
5218
5314
|
currentStatus: LCNInboxStatusEnumValidator,
|
|
5219
5315
|
id: z.string(),
|
|
5220
5316
|
isSigned: z.boolean(),
|
|
5317
|
+
isAccepted: z.boolean().optional(),
|
|
5221
5318
|
issuerDid: z.string()
|
|
5222
5319
|
}).partial();
|
|
5223
5320
|
var IssueInboxSigningAuthorityValidator = z.object({
|
|
@@ -5226,31 +5323,55 @@ var require_types_cjs_development = __commonJS({
|
|
|
5226
5323
|
});
|
|
5227
5324
|
var IssueInboxCredentialValidator = z.object({
|
|
5228
5325
|
recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
|
|
5229
|
-
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
5326
|
+
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
5327
|
+
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
5328
|
+
),
|
|
5230
5329
|
configuration: z.object({
|
|
5231
|
-
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
5330
|
+
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
5331
|
+
"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."
|
|
5332
|
+
),
|
|
5232
5333
|
webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
5233
5334
|
expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
5234
5335
|
delivery: z.object({
|
|
5235
|
-
suppress: z.boolean().optional().default(false).describe(
|
|
5336
|
+
suppress: z.boolean().optional().default(false).describe(
|
|
5337
|
+
"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."
|
|
5338
|
+
),
|
|
5236
5339
|
template: z.object({
|
|
5237
|
-
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
5340
|
+
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
5341
|
+
"The template ID to use for the credential delivery. If not provided, the default template will be used."
|
|
5342
|
+
),
|
|
5238
5343
|
model: z.object({
|
|
5239
5344
|
issuer: z.object({
|
|
5240
|
-
name: z.string().optional().describe(
|
|
5345
|
+
name: z.string().optional().describe(
|
|
5346
|
+
'The name of the organization (e.g., "State University").'
|
|
5347
|
+
),
|
|
5241
5348
|
logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
|
|
5242
5349
|
}).optional(),
|
|
5243
5350
|
credential: z.object({
|
|
5244
|
-
name: z.string().optional().describe(
|
|
5245
|
-
|
|
5351
|
+
name: z.string().optional().describe(
|
|
5352
|
+
'The name of the credential (e.g., "Bachelor of Science").'
|
|
5353
|
+
),
|
|
5354
|
+
type: z.string().optional().describe(
|
|
5355
|
+
'The type of the credential (e.g., "degree", "certificate").'
|
|
5356
|
+
)
|
|
5246
5357
|
}).optional(),
|
|
5247
5358
|
recipient: z.object({
|
|
5248
|
-
name: z.string().optional().describe(
|
|
5359
|
+
name: z.string().optional().describe(
|
|
5360
|
+
'The name of the recipient (e.g., "John Doe").'
|
|
5361
|
+
)
|
|
5249
5362
|
}).optional()
|
|
5250
|
-
}).describe(
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5363
|
+
}).describe(
|
|
5364
|
+
"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."
|
|
5365
|
+
)
|
|
5366
|
+
}).optional().describe(
|
|
5367
|
+
"The template to use for the credential delivery. If not provided, the default template will be used."
|
|
5368
|
+
)
|
|
5369
|
+
}).optional().describe(
|
|
5370
|
+
"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."
|
|
5371
|
+
)
|
|
5372
|
+
}).optional().describe(
|
|
5373
|
+
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
5374
|
+
)
|
|
5254
5375
|
});
|
|
5255
5376
|
var IssueInboxCredentialResponseValidator = z.object({
|
|
5256
5377
|
issuanceId: z.string(),
|
|
@@ -5259,6 +5380,51 @@ var require_types_cjs_development = __commonJS({
|
|
|
5259
5380
|
claimUrl: z.string().url().optional(),
|
|
5260
5381
|
recipientDid: z.string().optional()
|
|
5261
5382
|
});
|
|
5383
|
+
var ClaimInboxCredentialValidator = z.object({
|
|
5384
|
+
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe("The credential to issue."),
|
|
5385
|
+
configuration: z.object({
|
|
5386
|
+
publishableKey: z.string(),
|
|
5387
|
+
signingAuthorityName: z.string().optional()
|
|
5388
|
+
}).optional()
|
|
5389
|
+
});
|
|
5390
|
+
var LCNDomainOrOriginValidator = z.union([
|
|
5391
|
+
z.string().regex(
|
|
5392
|
+
/^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
|
|
5393
|
+
{
|
|
5394
|
+
message: "Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"
|
|
5395
|
+
}
|
|
5396
|
+
),
|
|
5397
|
+
z.string().regex(
|
|
5398
|
+
/^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,
|
|
5399
|
+
{ message: "Must be a valid http(s) origin" }
|
|
5400
|
+
)
|
|
5401
|
+
]);
|
|
5402
|
+
var LCNIntegrationValidator = z.object({
|
|
5403
|
+
id: z.string(),
|
|
5404
|
+
name: z.string(),
|
|
5405
|
+
description: z.string().optional(),
|
|
5406
|
+
publishableKey: z.string(),
|
|
5407
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
|
|
5408
|
+
});
|
|
5409
|
+
var LCNIntegrationCreateValidator = z.object({
|
|
5410
|
+
name: z.string(),
|
|
5411
|
+
description: z.string().optional(),
|
|
5412
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).default([])
|
|
5413
|
+
});
|
|
5414
|
+
var LCNIntegrationUpdateValidator = z.object({
|
|
5415
|
+
name: z.string().optional(),
|
|
5416
|
+
description: z.string().optional(),
|
|
5417
|
+
whitelistedDomains: z.array(LCNDomainOrOriginValidator).optional(),
|
|
5418
|
+
rotatePublishableKey: z.boolean().optional()
|
|
5419
|
+
});
|
|
5420
|
+
var LCNIntegrationQueryValidator = z.object({
|
|
5421
|
+
id: StringQuery,
|
|
5422
|
+
name: StringQuery,
|
|
5423
|
+
description: StringQuery
|
|
5424
|
+
}).partial();
|
|
5425
|
+
var PaginatedLCNIntegrationsValidator = PaginationResponseValidator.extend({
|
|
5426
|
+
records: LCNIntegrationValidator.array()
|
|
5427
|
+
});
|
|
5262
5428
|
var ClaimTokenValidator = z.object({
|
|
5263
5429
|
token: z.string(),
|
|
5264
5430
|
contactMethodId: z.string(),
|
|
@@ -5267,6 +5433,191 @@ var require_types_cjs_development = __commonJS({
|
|
|
5267
5433
|
expiresAt: z.string(),
|
|
5268
5434
|
used: z.boolean()
|
|
5269
5435
|
});
|
|
5436
|
+
var TagValidator = z.object({
|
|
5437
|
+
id: z.string(),
|
|
5438
|
+
name: z.string().min(1),
|
|
5439
|
+
slug: z.string().min(1),
|
|
5440
|
+
createdAt: z.string().optional(),
|
|
5441
|
+
updatedAt: z.string().optional()
|
|
5442
|
+
});
|
|
5443
|
+
var SkillStatusEnum = z.enum(["active", "archived"]);
|
|
5444
|
+
var SkillValidator = z.object({
|
|
5445
|
+
id: z.string(),
|
|
5446
|
+
statement: z.string(),
|
|
5447
|
+
description: z.string().optional(),
|
|
5448
|
+
code: z.string().optional(),
|
|
5449
|
+
icon: z.string().optional(),
|
|
5450
|
+
type: z.string().default("skill"),
|
|
5451
|
+
status: SkillStatusEnum.default("active"),
|
|
5452
|
+
frameworkId: z.string().optional(),
|
|
5453
|
+
createdAt: z.string().optional(),
|
|
5454
|
+
updatedAt: z.string().optional()
|
|
5455
|
+
});
|
|
5456
|
+
var BaseSkillQueryValidator = z.object({
|
|
5457
|
+
id: StringQuery,
|
|
5458
|
+
statement: StringQuery,
|
|
5459
|
+
description: StringQuery,
|
|
5460
|
+
code: StringQuery,
|
|
5461
|
+
type: StringQuery,
|
|
5462
|
+
status: SkillStatusEnum.or(z.object({ $in: SkillStatusEnum.array() }))
|
|
5463
|
+
}).partial();
|
|
5464
|
+
var SkillQueryValidator = z.union([
|
|
5465
|
+
z.object({
|
|
5466
|
+
$or: BaseSkillQueryValidator.array()
|
|
5467
|
+
}),
|
|
5468
|
+
BaseSkillQueryValidator
|
|
5469
|
+
]);
|
|
5470
|
+
var SkillFrameworkStatusEnum = z.enum(["active", "archived"]);
|
|
5471
|
+
var SkillFrameworkValidator = z.object({
|
|
5472
|
+
id: z.string(),
|
|
5473
|
+
name: z.string(),
|
|
5474
|
+
description: z.string().optional(),
|
|
5475
|
+
image: z.string().optional(),
|
|
5476
|
+
sourceURI: z.string().url().optional(),
|
|
5477
|
+
status: SkillFrameworkStatusEnum.default("active"),
|
|
5478
|
+
createdAt: z.string().optional(),
|
|
5479
|
+
updatedAt: z.string().optional()
|
|
5480
|
+
});
|
|
5481
|
+
var PaginatedSkillFrameworksValidator = PaginationResponseValidator.extend({
|
|
5482
|
+
records: SkillFrameworkValidator.array()
|
|
5483
|
+
});
|
|
5484
|
+
var SkillTreeNodeValidator = SkillValidator.extend({
|
|
5485
|
+
children: z.array(z.lazy(() => SkillTreeNodeValidator)),
|
|
5486
|
+
hasChildren: z.boolean(),
|
|
5487
|
+
childrenCursor: z.string().nullable().optional()
|
|
5488
|
+
}).openapi({ ref: "SkillTreeNode" });
|
|
5489
|
+
var PaginatedSkillTreeValidator = z.object({
|
|
5490
|
+
hasMore: z.boolean(),
|
|
5491
|
+
cursor: z.string().nullable(),
|
|
5492
|
+
records: z.array(SkillTreeNodeValidator)
|
|
5493
|
+
});
|
|
5494
|
+
var SkillTreeNodeInputValidator = z.lazy(
|
|
5495
|
+
() => z.object({
|
|
5496
|
+
id: z.string().optional(),
|
|
5497
|
+
statement: z.string(),
|
|
5498
|
+
description: z.string().optional(),
|
|
5499
|
+
code: z.string().optional(),
|
|
5500
|
+
icon: z.string().optional(),
|
|
5501
|
+
type: z.string().optional(),
|
|
5502
|
+
status: SkillStatusEnum.optional(),
|
|
5503
|
+
children: z.array(SkillTreeNodeInputValidator).optional()
|
|
5504
|
+
})
|
|
5505
|
+
).openapi({ ref: "SkillTreeNodeInput" });
|
|
5506
|
+
var LinkProviderFrameworkInputValidator = z.object({
|
|
5507
|
+
frameworkId: z.string()
|
|
5508
|
+
});
|
|
5509
|
+
var CreateManagedFrameworkInputValidator = z.object({
|
|
5510
|
+
id: z.string().optional(),
|
|
5511
|
+
name: z.string().min(1),
|
|
5512
|
+
description: z.string().optional(),
|
|
5513
|
+
image: z.string().optional(),
|
|
5514
|
+
sourceURI: z.string().url().optional(),
|
|
5515
|
+
status: SkillFrameworkStatusEnum.optional(),
|
|
5516
|
+
skills: z.array(SkillTreeNodeInputValidator).optional(),
|
|
5517
|
+
boostUris: z.array(z.string()).optional()
|
|
5518
|
+
});
|
|
5519
|
+
var UpdateFrameworkInputValidator = z.object({
|
|
5520
|
+
id: z.string(),
|
|
5521
|
+
name: z.string().min(1).optional(),
|
|
5522
|
+
description: z.string().optional(),
|
|
5523
|
+
image: z.string().optional(),
|
|
5524
|
+
sourceURI: z.string().url().optional(),
|
|
5525
|
+
status: SkillFrameworkStatusEnum.optional()
|
|
5526
|
+
}).refine(
|
|
5527
|
+
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
|
|
5528
|
+
{
|
|
5529
|
+
message: "At least one field must be provided to update",
|
|
5530
|
+
path: ["name"]
|
|
5531
|
+
}
|
|
5532
|
+
);
|
|
5533
|
+
var DeleteFrameworkInputValidator = z.object({ id: z.string() });
|
|
5534
|
+
var CreateManagedFrameworkBatchInputValidator = z.object({
|
|
5535
|
+
frameworks: z.array(
|
|
5536
|
+
CreateManagedFrameworkInputValidator.extend({
|
|
5537
|
+
skills: z.array(SkillTreeNodeInputValidator).optional()
|
|
5538
|
+
})
|
|
5539
|
+
).min(1)
|
|
5540
|
+
});
|
|
5541
|
+
var SkillFrameworkAdminInputValidator = z.object({
|
|
5542
|
+
frameworkId: z.string(),
|
|
5543
|
+
profileId: z.string()
|
|
5544
|
+
});
|
|
5545
|
+
var SkillFrameworkIdInputValidator = z.object({ frameworkId: z.string() });
|
|
5546
|
+
var SkillFrameworkAdminsValidator = LCNProfileValidator.array();
|
|
5547
|
+
var SyncFrameworkInputValidator = z.object({ id: z.string() });
|
|
5548
|
+
var AddTagInputValidator = z.object({
|
|
5549
|
+
slug: z.string().min(1),
|
|
5550
|
+
name: z.string().min(1)
|
|
5551
|
+
});
|
|
5552
|
+
var CreateSkillInputValidator = z.object({
|
|
5553
|
+
frameworkId: z.string(),
|
|
5554
|
+
skill: SkillTreeNodeInputValidator,
|
|
5555
|
+
parentId: z.string().nullable().optional()
|
|
5556
|
+
});
|
|
5557
|
+
var UpdateSkillInputValidator = z.object({
|
|
5558
|
+
frameworkId: z.string(),
|
|
5559
|
+
id: z.string(),
|
|
5560
|
+
statement: z.string().optional(),
|
|
5561
|
+
description: z.string().optional(),
|
|
5562
|
+
code: z.string().optional(),
|
|
5563
|
+
icon: z.string().optional(),
|
|
5564
|
+
type: z.string().optional(),
|
|
5565
|
+
status: SkillStatusEnum.optional()
|
|
5566
|
+
}).refine(
|
|
5567
|
+
(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,
|
|
5568
|
+
{
|
|
5569
|
+
message: "At least one field must be provided to update a skill",
|
|
5570
|
+
path: ["statement"]
|
|
5571
|
+
}
|
|
5572
|
+
);
|
|
5573
|
+
var SkillDeletionStrategyValidator = z.enum(["recursive", "reparent"]);
|
|
5574
|
+
var DeleteSkillInputValidator = z.object({
|
|
5575
|
+
frameworkId: z.string(),
|
|
5576
|
+
id: z.string(),
|
|
5577
|
+
strategy: SkillDeletionStrategyValidator.optional().default("reparent")
|
|
5578
|
+
});
|
|
5579
|
+
var CreateSkillsBatchInputValidator = z.object({
|
|
5580
|
+
frameworkId: z.string(),
|
|
5581
|
+
skills: z.array(SkillTreeNodeInputValidator).min(1),
|
|
5582
|
+
parentId: z.string().nullable().optional()
|
|
5583
|
+
});
|
|
5584
|
+
var ReplaceSkillFrameworkSkillsInputValidator = z.object({
|
|
5585
|
+
frameworkId: z.string(),
|
|
5586
|
+
skills: z.array(SkillTreeNodeInputValidator).min(0)
|
|
5587
|
+
});
|
|
5588
|
+
var ReplaceSkillFrameworkSkillsResultValidator = z.object({
|
|
5589
|
+
created: z.number().int().min(0),
|
|
5590
|
+
updated: z.number().int().min(0),
|
|
5591
|
+
deleted: z.number().int().min(0),
|
|
5592
|
+
unchanged: z.number().int().min(0),
|
|
5593
|
+
total: z.number().int().min(0)
|
|
5594
|
+
});
|
|
5595
|
+
var CountSkillsInputValidator = z.object({
|
|
5596
|
+
frameworkId: z.string(),
|
|
5597
|
+
skillId: z.string().optional(),
|
|
5598
|
+
recursive: z.boolean().optional().default(false),
|
|
5599
|
+
onlyCountCompetencies: z.boolean().optional().default(false)
|
|
5600
|
+
});
|
|
5601
|
+
var CountSkillsResultValidator = z.object({
|
|
5602
|
+
count: z.number().int().min(0)
|
|
5603
|
+
});
|
|
5604
|
+
var GetFullSkillTreeInputValidator = z.object({
|
|
5605
|
+
frameworkId: z.string()
|
|
5606
|
+
});
|
|
5607
|
+
var GetFullSkillTreeResultValidator = z.object({
|
|
5608
|
+
skills: z.array(SkillTreeNodeValidator)
|
|
5609
|
+
});
|
|
5610
|
+
var GetSkillPathInputValidator = z.object({
|
|
5611
|
+
frameworkId: z.string(),
|
|
5612
|
+
skillId: z.string()
|
|
5613
|
+
});
|
|
5614
|
+
var GetSkillPathResultValidator = z.object({
|
|
5615
|
+
path: z.array(SkillValidator)
|
|
5616
|
+
});
|
|
5617
|
+
var FrameworkWithSkillsValidator = z.object({
|
|
5618
|
+
framework: SkillFrameworkValidator,
|
|
5619
|
+
skills: PaginatedSkillTreeValidator
|
|
5620
|
+
});
|
|
5270
5621
|
}
|
|
5271
5622
|
});
|
|
5272
5623
|
var require_dist = __commonJS({
|