@learncard/network-plugin 2.6.10 → 2.7.0
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/lcn-plugin.cjs.development.js +1066 -54
- package/dist/lcn-plugin.cjs.development.js.map +3 -3
- package/dist/lcn-plugin.cjs.production.min.js +2 -2
- package/dist/lcn-plugin.cjs.production.min.js.map +3 -3
- package/dist/lcn-plugin.esm.js +1066 -54
- package/dist/lcn-plugin.esm.js.map +3 -3
- package/dist/plugin.d.ts.map +1 -1
- package/dist/types.d.ts +100 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -2054,6 +2054,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
2054
2054
|
AchievementSubjectValidator: () => AchievementSubjectValidator2,
|
|
2055
2055
|
AchievementTypeValidator: () => AchievementTypeValidator2,
|
|
2056
2056
|
AchievementValidator: () => AchievementValidator2,
|
|
2057
|
+
AddTagInputValidator: () => AddTagInputValidator2,
|
|
2057
2058
|
AddressValidator: () => AddressValidator2,
|
|
2058
2059
|
AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator2,
|
|
2059
2060
|
AlignmentValidator: () => AlignmentValidator2,
|
|
@@ -2093,14 +2094,22 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
2093
2094
|
ContactMethodVerificationValidator: () => ContactMethodVerificationValidator2,
|
|
2094
2095
|
ContextValidator: () => ContextValidator2,
|
|
2095
2096
|
ContractCredentialValidator: () => ContractCredentialValidator2,
|
|
2097
|
+
CountSkillsInputValidator: () => CountSkillsInputValidator2,
|
|
2098
|
+
CountSkillsResultValidator: () => CountSkillsResultValidator2,
|
|
2096
2099
|
CreateContactMethodSessionResponseValidator: () => CreateContactMethodSessionResponseValidator2,
|
|
2097
2100
|
CreateContactMethodSessionValidator: () => CreateContactMethodSessionValidator2,
|
|
2101
|
+
CreateManagedFrameworkBatchInputValidator: () => CreateManagedFrameworkBatchInputValidator2,
|
|
2102
|
+
CreateManagedFrameworkInputValidator: () => CreateManagedFrameworkInputValidator2,
|
|
2103
|
+
CreateSkillInputValidator: () => CreateSkillInputValidator2,
|
|
2104
|
+
CreateSkillsBatchInputValidator: () => CreateSkillsBatchInputValidator2,
|
|
2098
2105
|
CredentialInfoValidator: () => CredentialInfoValidator2,
|
|
2099
2106
|
CredentialRecordValidator: () => CredentialRecordValidator2,
|
|
2100
2107
|
CredentialSchemaValidator: () => CredentialSchemaValidator2,
|
|
2101
2108
|
CredentialStatusValidator: () => CredentialStatusValidator2,
|
|
2102
2109
|
CredentialSubjectValidator: () => CredentialSubjectValidator2,
|
|
2103
2110
|
CriteriaValidator: () => CriteriaValidator2,
|
|
2111
|
+
DeleteFrameworkInputValidator: () => DeleteFrameworkInputValidator2,
|
|
2112
|
+
DeleteSkillInputValidator: () => DeleteSkillInputValidator2,
|
|
2104
2113
|
DidDocumentValidator: () => DidDocumentValidator2,
|
|
2105
2114
|
EncryptedCredentialRecordValidator: () => EncryptedCredentialRecordValidator2,
|
|
2106
2115
|
EncryptedRecordValidator: () => EncryptedRecordValidator2,
|
|
@@ -2108,8 +2117,13 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
2108
2117
|
EndorsementSubjectValidator: () => EndorsementSubjectValidator2,
|
|
2109
2118
|
EvidenceValidator: () => EvidenceValidator2,
|
|
2110
2119
|
FlatAuthGrantValidator: () => FlatAuthGrantValidator2,
|
|
2120
|
+
FrameworkWithSkillsValidator: () => FrameworkWithSkillsValidator2,
|
|
2111
2121
|
FullClaimHookValidator: () => FullClaimHookValidator2,
|
|
2112
2122
|
GeoCoordinatesValidator: () => GeoCoordinatesValidator2,
|
|
2123
|
+
GetFullSkillTreeInputValidator: () => GetFullSkillTreeInputValidator2,
|
|
2124
|
+
GetFullSkillTreeResultValidator: () => GetFullSkillTreeResultValidator2,
|
|
2125
|
+
GetSkillPathInputValidator: () => GetSkillPathInputValidator2,
|
|
2126
|
+
GetSkillPathResultValidator: () => GetSkillPathResultValidator2,
|
|
2113
2127
|
IdentifierEntryValidator: () => IdentifierEntryValidator2,
|
|
2114
2128
|
IdentifierTypeValidator: () => IdentifierTypeValidator2,
|
|
2115
2129
|
IdentityObjectValidator: () => IdentityObjectValidator2,
|
|
@@ -2148,6 +2162,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
2148
2162
|
LCNProfileValidator: () => LCNProfileValidator2,
|
|
2149
2163
|
LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator2,
|
|
2150
2164
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator2,
|
|
2165
|
+
LinkProviderFrameworkInputValidator: () => LinkProviderFrameworkInputValidator2,
|
|
2151
2166
|
PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator2,
|
|
2152
2167
|
PaginatedBoostRecipientsWithChildrenValidator: () => PaginatedBoostRecipientsWithChildrenValidator2,
|
|
2153
2168
|
PaginatedBoostsValidator: () => PaginatedBoostsValidator2,
|
|
@@ -2165,6 +2180,8 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
2165
2180
|
PaginatedLCNProfileManagersValidator: () => PaginatedLCNProfileManagersValidator2,
|
|
2166
2181
|
PaginatedLCNProfilesAndManagersValidator: () => PaginatedLCNProfilesAndManagersValidator2,
|
|
2167
2182
|
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator2,
|
|
2183
|
+
PaginatedSkillFrameworksValidator: () => PaginatedSkillFrameworksValidator2,
|
|
2184
|
+
PaginatedSkillTreeValidator: () => PaginatedSkillTreeValidator2,
|
|
2168
2185
|
PaginationOptionsValidator: () => PaginationOptionsValidator2,
|
|
2169
2186
|
PaginationResponseValidator: () => PaginationResponseValidator2,
|
|
2170
2187
|
ProfileValidator: () => ProfileValidator2,
|
|
@@ -2172,6 +2189,8 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
2172
2189
|
RefreshServiceValidator: () => RefreshServiceValidator2,
|
|
2173
2190
|
RegExpValidator: () => RegExpValidator2,
|
|
2174
2191
|
RelatedValidator: () => RelatedValidator2,
|
|
2192
|
+
ReplaceSkillFrameworkSkillsInputValidator: () => ReplaceSkillFrameworkSkillsInputValidator2,
|
|
2193
|
+
ReplaceSkillFrameworkSkillsResultValidator: () => ReplaceSkillFrameworkSkillsResultValidator2,
|
|
2175
2194
|
ResultDescriptionValidator: () => ResultDescriptionValidator2,
|
|
2176
2195
|
ResultStatusTypeValidator: () => ResultStatusTypeValidator2,
|
|
2177
2196
|
ResultTypeValidator: () => ResultTypeValidator2,
|
|
@@ -2180,11 +2199,27 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
2180
2199
|
SentCredentialInfoValidator: () => SentCredentialInfoValidator2,
|
|
2181
2200
|
ServiceValidator: () => ServiceValidator2,
|
|
2182
2201
|
SetPrimaryContactMethodValidator: () => SetPrimaryContactMethodValidator2,
|
|
2202
|
+
SkillDeletionStrategyValidator: () => SkillDeletionStrategyValidator2,
|
|
2203
|
+
SkillFrameworkAdminInputValidator: () => SkillFrameworkAdminInputValidator2,
|
|
2204
|
+
SkillFrameworkAdminsValidator: () => SkillFrameworkAdminsValidator2,
|
|
2205
|
+
SkillFrameworkIdInputValidator: () => SkillFrameworkIdInputValidator2,
|
|
2206
|
+
SkillFrameworkQueryValidator: () => SkillFrameworkQueryValidator2,
|
|
2207
|
+
SkillFrameworkStatusEnum: () => SkillFrameworkStatusEnum2,
|
|
2208
|
+
SkillFrameworkValidator: () => SkillFrameworkValidator2,
|
|
2209
|
+
SkillQueryValidator: () => SkillQueryValidator2,
|
|
2210
|
+
SkillStatusEnum: () => SkillStatusEnum2,
|
|
2211
|
+
SkillTreeNodeInputValidator: () => SkillTreeNodeInputValidator2,
|
|
2212
|
+
SkillTreeNodeValidator: () => SkillTreeNodeValidator2,
|
|
2213
|
+
SkillValidator: () => SkillValidator2,
|
|
2183
2214
|
StringQuery: () => StringQuery2,
|
|
2215
|
+
SyncFrameworkInputValidator: () => SyncFrameworkInputValidator2,
|
|
2216
|
+
TagValidator: () => TagValidator2,
|
|
2184
2217
|
TermsOfUseValidator: () => TermsOfUseValidator2,
|
|
2185
2218
|
UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator2,
|
|
2186
2219
|
UnsignedVCValidator: () => UnsignedVCValidator2,
|
|
2187
2220
|
UnsignedVPValidator: () => UnsignedVPValidator2,
|
|
2221
|
+
UpdateFrameworkInputValidator: () => UpdateFrameworkInputValidator2,
|
|
2222
|
+
UpdateSkillInputValidator: () => UpdateSkillInputValidator2,
|
|
2188
2223
|
VC2EvidenceValidator: () => VC2EvidenceValidator2,
|
|
2189
2224
|
VCValidator: () => VCValidator2,
|
|
2190
2225
|
VPValidator: () => VPValidator2,
|
|
@@ -6690,7 +6725,14 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
6690
6725
|
}
|
|
6691
6726
|
})
|
|
6692
6727
|
);
|
|
6693
|
-
var
|
|
6728
|
+
var BaseStringQuery2 = z2.string().or(z2.object({ $in: z2.string().array() })).or(z2.object({ $regex: RegExpValidator2 }));
|
|
6729
|
+
var StringQuery2 = z2.union([
|
|
6730
|
+
BaseStringQuery2,
|
|
6731
|
+
z2.object({
|
|
6732
|
+
$or: BaseStringQuery2.array()
|
|
6733
|
+
})
|
|
6734
|
+
]);
|
|
6735
|
+
extendZodWithOpenApi2(z2);
|
|
6694
6736
|
var LCNProfileDisplayValidator2 = z2.object({
|
|
6695
6737
|
backgroundColor: z2.string().optional(),
|
|
6696
6738
|
backgroundImage: z2.string().optional(),
|
|
@@ -6848,7 +6890,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
6848
6890
|
claimPermissions: BoostPermissionsValidator2.optional(),
|
|
6849
6891
|
allowAnyoneToCreateChildren: z2.boolean().optional()
|
|
6850
6892
|
});
|
|
6851
|
-
var
|
|
6893
|
+
var BaseBoostQueryValidator2 = z2.object({
|
|
6852
6894
|
uri: StringQuery2,
|
|
6853
6895
|
name: StringQuery2,
|
|
6854
6896
|
type: StringQuery2,
|
|
@@ -6857,6 +6899,12 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
6857
6899
|
status: LCNBoostStatus2.or(z2.object({ $in: LCNBoostStatus2.array() })),
|
|
6858
6900
|
autoConnectRecipients: z2.boolean()
|
|
6859
6901
|
}).partial();
|
|
6902
|
+
var BoostQueryValidator2 = z2.union([
|
|
6903
|
+
z2.object({
|
|
6904
|
+
$or: BaseBoostQueryValidator2.array()
|
|
6905
|
+
}),
|
|
6906
|
+
BaseBoostQueryValidator2
|
|
6907
|
+
]);
|
|
6860
6908
|
var PaginatedBoostsValidator2 = PaginationResponseValidator2.extend({
|
|
6861
6909
|
records: BoostValidator2.array()
|
|
6862
6910
|
});
|
|
@@ -6912,11 +6960,25 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
6912
6960
|
var ConsentFlowContractValidator2 = z2.object({
|
|
6913
6961
|
read: z2.object({
|
|
6914
6962
|
anonymize: z2.boolean().optional(),
|
|
6915
|
-
credentials: z2.object({
|
|
6963
|
+
credentials: z2.object({
|
|
6964
|
+
categories: z2.record(
|
|
6965
|
+
z2.object({
|
|
6966
|
+
required: z2.boolean(),
|
|
6967
|
+
defaultEnabled: z2.boolean().optional()
|
|
6968
|
+
})
|
|
6969
|
+
).default({})
|
|
6970
|
+
}).default({}),
|
|
6916
6971
|
personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
|
|
6917
6972
|
}).default({}),
|
|
6918
6973
|
write: z2.object({
|
|
6919
|
-
credentials: z2.object({
|
|
6974
|
+
credentials: z2.object({
|
|
6975
|
+
categories: z2.record(
|
|
6976
|
+
z2.object({
|
|
6977
|
+
required: z2.boolean(),
|
|
6978
|
+
defaultEnabled: z2.boolean().optional()
|
|
6979
|
+
})
|
|
6980
|
+
).default({})
|
|
6981
|
+
}).default({}),
|
|
6920
6982
|
personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
|
|
6921
6983
|
}).default({})
|
|
6922
6984
|
});
|
|
@@ -7059,6 +7121,17 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
7059
7121
|
var PaginatedConsentFlowTransactionsValidator2 = PaginationResponseValidator2.extend({
|
|
7060
7122
|
records: ConsentFlowTransactionValidator2.array()
|
|
7061
7123
|
});
|
|
7124
|
+
var BaseSkillFrameworkQueryValidator2 = z2.object({
|
|
7125
|
+
id: StringQuery2,
|
|
7126
|
+
name: StringQuery2,
|
|
7127
|
+
description: StringQuery2,
|
|
7128
|
+
sourceURI: StringQuery2,
|
|
7129
|
+
status: StringQuery2
|
|
7130
|
+
}).partial();
|
|
7131
|
+
var SkillFrameworkQueryValidator2 = z2.union([
|
|
7132
|
+
z2.object({ $or: BaseSkillFrameworkQueryValidator2.array() }),
|
|
7133
|
+
BaseSkillFrameworkQueryValidator2
|
|
7134
|
+
]);
|
|
7062
7135
|
var ContractCredentialValidator2 = z2.object({
|
|
7063
7136
|
credentialUri: z2.string(),
|
|
7064
7137
|
termsUri: z2.string(),
|
|
@@ -7237,31 +7310,55 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
7237
7310
|
});
|
|
7238
7311
|
var IssueInboxCredentialValidator2 = z2.object({
|
|
7239
7312
|
recipient: ContactMethodQueryValidator2.describe("The recipient of the credential"),
|
|
7240
|
-
credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe(
|
|
7313
|
+
credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe(
|
|
7314
|
+
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
7315
|
+
),
|
|
7241
7316
|
configuration: z2.object({
|
|
7242
|
-
signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe(
|
|
7317
|
+
signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe(
|
|
7318
|
+
"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."
|
|
7319
|
+
),
|
|
7243
7320
|
webhookUrl: z2.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
7244
7321
|
expiresInDays: z2.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
7245
7322
|
delivery: z2.object({
|
|
7246
|
-
suppress: z2.boolean().optional().default(false).describe(
|
|
7323
|
+
suppress: z2.boolean().optional().default(false).describe(
|
|
7324
|
+
"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."
|
|
7325
|
+
),
|
|
7247
7326
|
template: z2.object({
|
|
7248
|
-
id: z2.enum(["universal-inbox-claim"]).optional().describe(
|
|
7327
|
+
id: z2.enum(["universal-inbox-claim"]).optional().describe(
|
|
7328
|
+
"The template ID to use for the credential delivery. If not provided, the default template will be used."
|
|
7329
|
+
),
|
|
7249
7330
|
model: z2.object({
|
|
7250
7331
|
issuer: z2.object({
|
|
7251
|
-
name: z2.string().optional().describe(
|
|
7332
|
+
name: z2.string().optional().describe(
|
|
7333
|
+
'The name of the organization (e.g., "State University").'
|
|
7334
|
+
),
|
|
7252
7335
|
logoUrl: z2.string().url().optional().describe("The URL of the organization's logo.")
|
|
7253
7336
|
}).optional(),
|
|
7254
7337
|
credential: z2.object({
|
|
7255
|
-
name: z2.string().optional().describe(
|
|
7256
|
-
|
|
7338
|
+
name: z2.string().optional().describe(
|
|
7339
|
+
'The name of the credential (e.g., "Bachelor of Science").'
|
|
7340
|
+
),
|
|
7341
|
+
type: z2.string().optional().describe(
|
|
7342
|
+
'The type of the credential (e.g., "degree", "certificate").'
|
|
7343
|
+
)
|
|
7257
7344
|
}).optional(),
|
|
7258
7345
|
recipient: z2.object({
|
|
7259
|
-
name: z2.string().optional().describe(
|
|
7346
|
+
name: z2.string().optional().describe(
|
|
7347
|
+
'The name of the recipient (e.g., "John Doe").'
|
|
7348
|
+
)
|
|
7260
7349
|
}).optional()
|
|
7261
|
-
}).describe(
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7350
|
+
}).describe(
|
|
7351
|
+
"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."
|
|
7352
|
+
)
|
|
7353
|
+
}).optional().describe(
|
|
7354
|
+
"The template to use for the credential delivery. If not provided, the default template will be used."
|
|
7355
|
+
)
|
|
7356
|
+
}).optional().describe(
|
|
7357
|
+
"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."
|
|
7358
|
+
)
|
|
7359
|
+
}).optional().describe(
|
|
7360
|
+
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
7361
|
+
)
|
|
7265
7362
|
});
|
|
7266
7363
|
var IssueInboxCredentialResponseValidator2 = z2.object({
|
|
7267
7364
|
issuanceId: z2.string(),
|
|
@@ -7323,6 +7420,191 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
7323
7420
|
expiresAt: z2.string(),
|
|
7324
7421
|
used: z2.boolean()
|
|
7325
7422
|
});
|
|
7423
|
+
var TagValidator2 = z2.object({
|
|
7424
|
+
id: z2.string(),
|
|
7425
|
+
name: z2.string().min(1),
|
|
7426
|
+
slug: z2.string().min(1),
|
|
7427
|
+
createdAt: z2.string().optional(),
|
|
7428
|
+
updatedAt: z2.string().optional()
|
|
7429
|
+
});
|
|
7430
|
+
var SkillStatusEnum2 = z2.enum(["active", "archived"]);
|
|
7431
|
+
var SkillValidator2 = z2.object({
|
|
7432
|
+
id: z2.string(),
|
|
7433
|
+
statement: z2.string(),
|
|
7434
|
+
description: z2.string().optional(),
|
|
7435
|
+
code: z2.string().optional(),
|
|
7436
|
+
icon: z2.string().optional(),
|
|
7437
|
+
type: z2.string().default("skill"),
|
|
7438
|
+
status: SkillStatusEnum2.default("active"),
|
|
7439
|
+
frameworkId: z2.string().optional(),
|
|
7440
|
+
createdAt: z2.string().optional(),
|
|
7441
|
+
updatedAt: z2.string().optional()
|
|
7442
|
+
});
|
|
7443
|
+
var BaseSkillQueryValidator2 = z2.object({
|
|
7444
|
+
id: StringQuery2,
|
|
7445
|
+
statement: StringQuery2,
|
|
7446
|
+
description: StringQuery2,
|
|
7447
|
+
code: StringQuery2,
|
|
7448
|
+
type: StringQuery2,
|
|
7449
|
+
status: SkillStatusEnum2.or(z2.object({ $in: SkillStatusEnum2.array() }))
|
|
7450
|
+
}).partial();
|
|
7451
|
+
var SkillQueryValidator2 = z2.union([
|
|
7452
|
+
z2.object({
|
|
7453
|
+
$or: BaseSkillQueryValidator2.array()
|
|
7454
|
+
}),
|
|
7455
|
+
BaseSkillQueryValidator2
|
|
7456
|
+
]);
|
|
7457
|
+
var SkillFrameworkStatusEnum2 = z2.enum(["active", "archived"]);
|
|
7458
|
+
var SkillFrameworkValidator2 = z2.object({
|
|
7459
|
+
id: z2.string(),
|
|
7460
|
+
name: z2.string(),
|
|
7461
|
+
description: z2.string().optional(),
|
|
7462
|
+
image: z2.string().optional(),
|
|
7463
|
+
sourceURI: z2.string().url().optional(),
|
|
7464
|
+
status: SkillFrameworkStatusEnum2.default("active"),
|
|
7465
|
+
createdAt: z2.string().optional(),
|
|
7466
|
+
updatedAt: z2.string().optional()
|
|
7467
|
+
});
|
|
7468
|
+
var PaginatedSkillFrameworksValidator2 = PaginationResponseValidator2.extend({
|
|
7469
|
+
records: SkillFrameworkValidator2.array()
|
|
7470
|
+
});
|
|
7471
|
+
var SkillTreeNodeValidator2 = SkillValidator2.extend({
|
|
7472
|
+
children: z2.array(z2.lazy(() => SkillTreeNodeValidator2)),
|
|
7473
|
+
hasChildren: z2.boolean(),
|
|
7474
|
+
childrenCursor: z2.string().nullable().optional()
|
|
7475
|
+
}).openapi({ ref: "SkillTreeNode" });
|
|
7476
|
+
var PaginatedSkillTreeValidator2 = z2.object({
|
|
7477
|
+
hasMore: z2.boolean(),
|
|
7478
|
+
cursor: z2.string().nullable(),
|
|
7479
|
+
records: z2.array(SkillTreeNodeValidator2)
|
|
7480
|
+
});
|
|
7481
|
+
var SkillTreeNodeInputValidator2 = z2.lazy(
|
|
7482
|
+
() => z2.object({
|
|
7483
|
+
id: z2.string().optional(),
|
|
7484
|
+
statement: z2.string(),
|
|
7485
|
+
description: z2.string().optional(),
|
|
7486
|
+
code: z2.string().optional(),
|
|
7487
|
+
icon: z2.string().optional(),
|
|
7488
|
+
type: z2.string().optional(),
|
|
7489
|
+
status: SkillStatusEnum2.optional(),
|
|
7490
|
+
children: z2.array(SkillTreeNodeInputValidator2).optional()
|
|
7491
|
+
})
|
|
7492
|
+
).openapi({ ref: "SkillTreeNodeInput" });
|
|
7493
|
+
var LinkProviderFrameworkInputValidator2 = z2.object({
|
|
7494
|
+
frameworkId: z2.string()
|
|
7495
|
+
});
|
|
7496
|
+
var CreateManagedFrameworkInputValidator2 = z2.object({
|
|
7497
|
+
id: z2.string().optional(),
|
|
7498
|
+
name: z2.string().min(1),
|
|
7499
|
+
description: z2.string().optional(),
|
|
7500
|
+
image: z2.string().optional(),
|
|
7501
|
+
sourceURI: z2.string().url().optional(),
|
|
7502
|
+
status: SkillFrameworkStatusEnum2.optional(),
|
|
7503
|
+
skills: z2.array(SkillTreeNodeInputValidator2).optional(),
|
|
7504
|
+
boostUris: z2.array(z2.string()).optional()
|
|
7505
|
+
});
|
|
7506
|
+
var UpdateFrameworkInputValidator2 = z2.object({
|
|
7507
|
+
id: z2.string(),
|
|
7508
|
+
name: z2.string().min(1).optional(),
|
|
7509
|
+
description: z2.string().optional(),
|
|
7510
|
+
image: z2.string().optional(),
|
|
7511
|
+
sourceURI: z2.string().url().optional(),
|
|
7512
|
+
status: SkillFrameworkStatusEnum2.optional()
|
|
7513
|
+
}).refine(
|
|
7514
|
+
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
|
|
7515
|
+
{
|
|
7516
|
+
message: "At least one field must be provided to update",
|
|
7517
|
+
path: ["name"]
|
|
7518
|
+
}
|
|
7519
|
+
);
|
|
7520
|
+
var DeleteFrameworkInputValidator2 = z2.object({ id: z2.string() });
|
|
7521
|
+
var CreateManagedFrameworkBatchInputValidator2 = z2.object({
|
|
7522
|
+
frameworks: z2.array(
|
|
7523
|
+
CreateManagedFrameworkInputValidator2.extend({
|
|
7524
|
+
skills: z2.array(SkillTreeNodeInputValidator2).optional()
|
|
7525
|
+
})
|
|
7526
|
+
).min(1)
|
|
7527
|
+
});
|
|
7528
|
+
var SkillFrameworkAdminInputValidator2 = z2.object({
|
|
7529
|
+
frameworkId: z2.string(),
|
|
7530
|
+
profileId: z2.string()
|
|
7531
|
+
});
|
|
7532
|
+
var SkillFrameworkIdInputValidator2 = z2.object({ frameworkId: z2.string() });
|
|
7533
|
+
var SkillFrameworkAdminsValidator2 = LCNProfileValidator2.array();
|
|
7534
|
+
var SyncFrameworkInputValidator2 = z2.object({ id: z2.string() });
|
|
7535
|
+
var AddTagInputValidator2 = z2.object({
|
|
7536
|
+
slug: z2.string().min(1),
|
|
7537
|
+
name: z2.string().min(1)
|
|
7538
|
+
});
|
|
7539
|
+
var CreateSkillInputValidator2 = z2.object({
|
|
7540
|
+
frameworkId: z2.string(),
|
|
7541
|
+
skill: SkillTreeNodeInputValidator2,
|
|
7542
|
+
parentId: z2.string().nullable().optional()
|
|
7543
|
+
});
|
|
7544
|
+
var UpdateSkillInputValidator2 = z2.object({
|
|
7545
|
+
frameworkId: z2.string(),
|
|
7546
|
+
id: z2.string(),
|
|
7547
|
+
statement: z2.string().optional(),
|
|
7548
|
+
description: z2.string().optional(),
|
|
7549
|
+
code: z2.string().optional(),
|
|
7550
|
+
icon: z2.string().optional(),
|
|
7551
|
+
type: z2.string().optional(),
|
|
7552
|
+
status: SkillStatusEnum2.optional()
|
|
7553
|
+
}).refine(
|
|
7554
|
+
(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,
|
|
7555
|
+
{
|
|
7556
|
+
message: "At least one field must be provided to update a skill",
|
|
7557
|
+
path: ["statement"]
|
|
7558
|
+
}
|
|
7559
|
+
);
|
|
7560
|
+
var SkillDeletionStrategyValidator2 = z2.enum(["recursive", "reparent"]);
|
|
7561
|
+
var DeleteSkillInputValidator2 = z2.object({
|
|
7562
|
+
frameworkId: z2.string(),
|
|
7563
|
+
id: z2.string(),
|
|
7564
|
+
strategy: SkillDeletionStrategyValidator2.optional().default("reparent")
|
|
7565
|
+
});
|
|
7566
|
+
var CreateSkillsBatchInputValidator2 = z2.object({
|
|
7567
|
+
frameworkId: z2.string(),
|
|
7568
|
+
skills: z2.array(SkillTreeNodeInputValidator2).min(1),
|
|
7569
|
+
parentId: z2.string().nullable().optional()
|
|
7570
|
+
});
|
|
7571
|
+
var ReplaceSkillFrameworkSkillsInputValidator2 = z2.object({
|
|
7572
|
+
frameworkId: z2.string(),
|
|
7573
|
+
skills: z2.array(SkillTreeNodeInputValidator2).min(0)
|
|
7574
|
+
});
|
|
7575
|
+
var ReplaceSkillFrameworkSkillsResultValidator2 = z2.object({
|
|
7576
|
+
created: z2.number().int().min(0),
|
|
7577
|
+
updated: z2.number().int().min(0),
|
|
7578
|
+
deleted: z2.number().int().min(0),
|
|
7579
|
+
unchanged: z2.number().int().min(0),
|
|
7580
|
+
total: z2.number().int().min(0)
|
|
7581
|
+
});
|
|
7582
|
+
var CountSkillsInputValidator2 = z2.object({
|
|
7583
|
+
frameworkId: z2.string(),
|
|
7584
|
+
skillId: z2.string().optional(),
|
|
7585
|
+
recursive: z2.boolean().optional().default(false),
|
|
7586
|
+
onlyCountCompetencies: z2.boolean().optional().default(false)
|
|
7587
|
+
});
|
|
7588
|
+
var CountSkillsResultValidator2 = z2.object({
|
|
7589
|
+
count: z2.number().int().min(0)
|
|
7590
|
+
});
|
|
7591
|
+
var GetFullSkillTreeInputValidator2 = z2.object({
|
|
7592
|
+
frameworkId: z2.string()
|
|
7593
|
+
});
|
|
7594
|
+
var GetFullSkillTreeResultValidator2 = z2.object({
|
|
7595
|
+
skills: z2.array(SkillTreeNodeValidator2)
|
|
7596
|
+
});
|
|
7597
|
+
var GetSkillPathInputValidator2 = z2.object({
|
|
7598
|
+
frameworkId: z2.string(),
|
|
7599
|
+
skillId: z2.string()
|
|
7600
|
+
});
|
|
7601
|
+
var GetSkillPathResultValidator2 = z2.object({
|
|
7602
|
+
path: z2.array(SkillValidator2)
|
|
7603
|
+
});
|
|
7604
|
+
var FrameworkWithSkillsValidator2 = z2.object({
|
|
7605
|
+
framework: SkillFrameworkValidator2,
|
|
7606
|
+
skills: PaginatedSkillTreeValidator2
|
|
7607
|
+
});
|
|
7326
7608
|
}
|
|
7327
7609
|
});
|
|
7328
7610
|
var require_dist22 = __commonJS22({
|
|
@@ -7340,7 +7622,8 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
7340
7622
|
RegExpTransformer: () => RegExpTransformer2,
|
|
7341
7623
|
isEncrypted: () => isEncrypted,
|
|
7342
7624
|
isHex: () => isHex,
|
|
7343
|
-
isVC2Format: () => isVC2Format2
|
|
7625
|
+
isVC2Format: () => isVC2Format2,
|
|
7626
|
+
unwrapBoostCredential: () => unwrapBoostCredential
|
|
7344
7627
|
});
|
|
7345
7628
|
module2.exports = __toCommonJS2(src_exports2);
|
|
7346
7629
|
var import_types3 = __toESM22(require_dist22());
|
|
@@ -7381,6 +7664,13 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
7381
7664
|
}
|
|
7382
7665
|
return credential["@context"].includes("https://www.w3.org/ns/credentials/v2");
|
|
7383
7666
|
}, "isVC2Format");
|
|
7667
|
+
var unwrapBoostCredential = /* @__PURE__ */ __name22((vc) => {
|
|
7668
|
+
if (vc?.type?.includes("CertifiedBoostCredential") && vc?.boostCredential) {
|
|
7669
|
+
return vc.boostCredential;
|
|
7670
|
+
} else {
|
|
7671
|
+
return vc;
|
|
7672
|
+
}
|
|
7673
|
+
}, "unwrapBoostCredential");
|
|
7384
7674
|
}
|
|
7385
7675
|
});
|
|
7386
7676
|
var require_dist = __commonJS({
|
|
@@ -11926,7 +12216,14 @@ var RegExpValidator = z.instanceof(RegExp).or(
|
|
|
11926
12216
|
}
|
|
11927
12217
|
})
|
|
11928
12218
|
);
|
|
11929
|
-
var
|
|
12219
|
+
var BaseStringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
|
|
12220
|
+
var StringQuery = z.union([
|
|
12221
|
+
BaseStringQuery,
|
|
12222
|
+
z.object({
|
|
12223
|
+
$or: BaseStringQuery.array()
|
|
12224
|
+
})
|
|
12225
|
+
]);
|
|
12226
|
+
extendZodWithOpenApi(z);
|
|
11930
12227
|
var LCNProfileDisplayValidator = z.object({
|
|
11931
12228
|
backgroundColor: z.string().optional(),
|
|
11932
12229
|
backgroundImage: z.string().optional(),
|
|
@@ -12084,7 +12381,7 @@ var BoostValidator = z.object({
|
|
|
12084
12381
|
claimPermissions: BoostPermissionsValidator.optional(),
|
|
12085
12382
|
allowAnyoneToCreateChildren: z.boolean().optional()
|
|
12086
12383
|
});
|
|
12087
|
-
var
|
|
12384
|
+
var BaseBoostQueryValidator = z.object({
|
|
12088
12385
|
uri: StringQuery,
|
|
12089
12386
|
name: StringQuery,
|
|
12090
12387
|
type: StringQuery,
|
|
@@ -12093,6 +12390,12 @@ var BoostQueryValidator = z.object({
|
|
|
12093
12390
|
status: LCNBoostStatus.or(z.object({ $in: LCNBoostStatus.array() })),
|
|
12094
12391
|
autoConnectRecipients: z.boolean()
|
|
12095
12392
|
}).partial();
|
|
12393
|
+
var BoostQueryValidator = z.union([
|
|
12394
|
+
z.object({
|
|
12395
|
+
$or: BaseBoostQueryValidator.array()
|
|
12396
|
+
}),
|
|
12397
|
+
BaseBoostQueryValidator
|
|
12398
|
+
]);
|
|
12096
12399
|
var PaginatedBoostsValidator = PaginationResponseValidator.extend({
|
|
12097
12400
|
records: BoostValidator.array()
|
|
12098
12401
|
});
|
|
@@ -12148,11 +12451,25 @@ var ConsentFlowTermsStatusValidator = z.enum(["live", "stale", "withdrawn"]);
|
|
|
12148
12451
|
var ConsentFlowContractValidator = z.object({
|
|
12149
12452
|
read: z.object({
|
|
12150
12453
|
anonymize: z.boolean().optional(),
|
|
12151
|
-
credentials: z.object({
|
|
12454
|
+
credentials: z.object({
|
|
12455
|
+
categories: z.record(
|
|
12456
|
+
z.object({
|
|
12457
|
+
required: z.boolean(),
|
|
12458
|
+
defaultEnabled: z.boolean().optional()
|
|
12459
|
+
})
|
|
12460
|
+
).default({})
|
|
12461
|
+
}).default({}),
|
|
12152
12462
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
12153
12463
|
}).default({}),
|
|
12154
12464
|
write: z.object({
|
|
12155
|
-
credentials: z.object({
|
|
12465
|
+
credentials: z.object({
|
|
12466
|
+
categories: z.record(
|
|
12467
|
+
z.object({
|
|
12468
|
+
required: z.boolean(),
|
|
12469
|
+
defaultEnabled: z.boolean().optional()
|
|
12470
|
+
})
|
|
12471
|
+
).default({})
|
|
12472
|
+
}).default({}),
|
|
12156
12473
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
12157
12474
|
}).default({})
|
|
12158
12475
|
});
|
|
@@ -12295,6 +12612,17 @@ var ConsentFlowTransactionValidator = z.object({
|
|
|
12295
12612
|
var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
|
|
12296
12613
|
records: ConsentFlowTransactionValidator.array()
|
|
12297
12614
|
});
|
|
12615
|
+
var BaseSkillFrameworkQueryValidator = z.object({
|
|
12616
|
+
id: StringQuery,
|
|
12617
|
+
name: StringQuery,
|
|
12618
|
+
description: StringQuery,
|
|
12619
|
+
sourceURI: StringQuery,
|
|
12620
|
+
status: StringQuery
|
|
12621
|
+
}).partial();
|
|
12622
|
+
var SkillFrameworkQueryValidator = z.union([
|
|
12623
|
+
z.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
|
|
12624
|
+
BaseSkillFrameworkQueryValidator
|
|
12625
|
+
]);
|
|
12298
12626
|
var ContractCredentialValidator = z.object({
|
|
12299
12627
|
credentialUri: z.string(),
|
|
12300
12628
|
termsUri: z.string(),
|
|
@@ -12473,31 +12801,55 @@ var IssueInboxSigningAuthorityValidator = z.object({
|
|
|
12473
12801
|
});
|
|
12474
12802
|
var IssueInboxCredentialValidator = z.object({
|
|
12475
12803
|
recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
|
|
12476
|
-
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
12804
|
+
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
12805
|
+
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
12806
|
+
),
|
|
12477
12807
|
configuration: z.object({
|
|
12478
|
-
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
12808
|
+
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
12809
|
+
"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."
|
|
12810
|
+
),
|
|
12479
12811
|
webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
12480
12812
|
expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
12481
12813
|
delivery: z.object({
|
|
12482
|
-
suppress: z.boolean().optional().default(false).describe(
|
|
12814
|
+
suppress: z.boolean().optional().default(false).describe(
|
|
12815
|
+
"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."
|
|
12816
|
+
),
|
|
12483
12817
|
template: z.object({
|
|
12484
|
-
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
12818
|
+
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
12819
|
+
"The template ID to use for the credential delivery. If not provided, the default template will be used."
|
|
12820
|
+
),
|
|
12485
12821
|
model: z.object({
|
|
12486
12822
|
issuer: z.object({
|
|
12487
|
-
name: z.string().optional().describe(
|
|
12823
|
+
name: z.string().optional().describe(
|
|
12824
|
+
'The name of the organization (e.g., "State University").'
|
|
12825
|
+
),
|
|
12488
12826
|
logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
|
|
12489
12827
|
}).optional(),
|
|
12490
12828
|
credential: z.object({
|
|
12491
|
-
name: z.string().optional().describe(
|
|
12492
|
-
|
|
12829
|
+
name: z.string().optional().describe(
|
|
12830
|
+
'The name of the credential (e.g., "Bachelor of Science").'
|
|
12831
|
+
),
|
|
12832
|
+
type: z.string().optional().describe(
|
|
12833
|
+
'The type of the credential (e.g., "degree", "certificate").'
|
|
12834
|
+
)
|
|
12493
12835
|
}).optional(),
|
|
12494
12836
|
recipient: z.object({
|
|
12495
|
-
name: z.string().optional().describe(
|
|
12837
|
+
name: z.string().optional().describe(
|
|
12838
|
+
'The name of the recipient (e.g., "John Doe").'
|
|
12839
|
+
)
|
|
12496
12840
|
}).optional()
|
|
12497
|
-
}).describe(
|
|
12498
|
-
|
|
12499
|
-
|
|
12500
|
-
|
|
12841
|
+
}).describe(
|
|
12842
|
+
"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."
|
|
12843
|
+
)
|
|
12844
|
+
}).optional().describe(
|
|
12845
|
+
"The template to use for the credential delivery. If not provided, the default template will be used."
|
|
12846
|
+
)
|
|
12847
|
+
}).optional().describe(
|
|
12848
|
+
"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."
|
|
12849
|
+
)
|
|
12850
|
+
}).optional().describe(
|
|
12851
|
+
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
12852
|
+
)
|
|
12501
12853
|
});
|
|
12502
12854
|
var IssueInboxCredentialResponseValidator = z.object({
|
|
12503
12855
|
issuanceId: z.string(),
|
|
@@ -12559,6 +12911,191 @@ var ClaimTokenValidator = z.object({
|
|
|
12559
12911
|
expiresAt: z.string(),
|
|
12560
12912
|
used: z.boolean()
|
|
12561
12913
|
});
|
|
12914
|
+
var TagValidator = z.object({
|
|
12915
|
+
id: z.string(),
|
|
12916
|
+
name: z.string().min(1),
|
|
12917
|
+
slug: z.string().min(1),
|
|
12918
|
+
createdAt: z.string().optional(),
|
|
12919
|
+
updatedAt: z.string().optional()
|
|
12920
|
+
});
|
|
12921
|
+
var SkillStatusEnum = z.enum(["active", "archived"]);
|
|
12922
|
+
var SkillValidator = z.object({
|
|
12923
|
+
id: z.string(),
|
|
12924
|
+
statement: z.string(),
|
|
12925
|
+
description: z.string().optional(),
|
|
12926
|
+
code: z.string().optional(),
|
|
12927
|
+
icon: z.string().optional(),
|
|
12928
|
+
type: z.string().default("skill"),
|
|
12929
|
+
status: SkillStatusEnum.default("active"),
|
|
12930
|
+
frameworkId: z.string().optional(),
|
|
12931
|
+
createdAt: z.string().optional(),
|
|
12932
|
+
updatedAt: z.string().optional()
|
|
12933
|
+
});
|
|
12934
|
+
var BaseSkillQueryValidator = z.object({
|
|
12935
|
+
id: StringQuery,
|
|
12936
|
+
statement: StringQuery,
|
|
12937
|
+
description: StringQuery,
|
|
12938
|
+
code: StringQuery,
|
|
12939
|
+
type: StringQuery,
|
|
12940
|
+
status: SkillStatusEnum.or(z.object({ $in: SkillStatusEnum.array() }))
|
|
12941
|
+
}).partial();
|
|
12942
|
+
var SkillQueryValidator = z.union([
|
|
12943
|
+
z.object({
|
|
12944
|
+
$or: BaseSkillQueryValidator.array()
|
|
12945
|
+
}),
|
|
12946
|
+
BaseSkillQueryValidator
|
|
12947
|
+
]);
|
|
12948
|
+
var SkillFrameworkStatusEnum = z.enum(["active", "archived"]);
|
|
12949
|
+
var SkillFrameworkValidator = z.object({
|
|
12950
|
+
id: z.string(),
|
|
12951
|
+
name: z.string(),
|
|
12952
|
+
description: z.string().optional(),
|
|
12953
|
+
image: z.string().optional(),
|
|
12954
|
+
sourceURI: z.string().url().optional(),
|
|
12955
|
+
status: SkillFrameworkStatusEnum.default("active"),
|
|
12956
|
+
createdAt: z.string().optional(),
|
|
12957
|
+
updatedAt: z.string().optional()
|
|
12958
|
+
});
|
|
12959
|
+
var PaginatedSkillFrameworksValidator = PaginationResponseValidator.extend({
|
|
12960
|
+
records: SkillFrameworkValidator.array()
|
|
12961
|
+
});
|
|
12962
|
+
var SkillTreeNodeValidator = SkillValidator.extend({
|
|
12963
|
+
children: z.array(z.lazy(() => SkillTreeNodeValidator)),
|
|
12964
|
+
hasChildren: z.boolean(),
|
|
12965
|
+
childrenCursor: z.string().nullable().optional()
|
|
12966
|
+
}).openapi({ ref: "SkillTreeNode" });
|
|
12967
|
+
var PaginatedSkillTreeValidator = z.object({
|
|
12968
|
+
hasMore: z.boolean(),
|
|
12969
|
+
cursor: z.string().nullable(),
|
|
12970
|
+
records: z.array(SkillTreeNodeValidator)
|
|
12971
|
+
});
|
|
12972
|
+
var SkillTreeNodeInputValidator = z.lazy(
|
|
12973
|
+
() => z.object({
|
|
12974
|
+
id: z.string().optional(),
|
|
12975
|
+
statement: z.string(),
|
|
12976
|
+
description: z.string().optional(),
|
|
12977
|
+
code: z.string().optional(),
|
|
12978
|
+
icon: z.string().optional(),
|
|
12979
|
+
type: z.string().optional(),
|
|
12980
|
+
status: SkillStatusEnum.optional(),
|
|
12981
|
+
children: z.array(SkillTreeNodeInputValidator).optional()
|
|
12982
|
+
})
|
|
12983
|
+
).openapi({ ref: "SkillTreeNodeInput" });
|
|
12984
|
+
var LinkProviderFrameworkInputValidator = z.object({
|
|
12985
|
+
frameworkId: z.string()
|
|
12986
|
+
});
|
|
12987
|
+
var CreateManagedFrameworkInputValidator = z.object({
|
|
12988
|
+
id: z.string().optional(),
|
|
12989
|
+
name: z.string().min(1),
|
|
12990
|
+
description: z.string().optional(),
|
|
12991
|
+
image: z.string().optional(),
|
|
12992
|
+
sourceURI: z.string().url().optional(),
|
|
12993
|
+
status: SkillFrameworkStatusEnum.optional(),
|
|
12994
|
+
skills: z.array(SkillTreeNodeInputValidator).optional(),
|
|
12995
|
+
boostUris: z.array(z.string()).optional()
|
|
12996
|
+
});
|
|
12997
|
+
var UpdateFrameworkInputValidator = z.object({
|
|
12998
|
+
id: z.string(),
|
|
12999
|
+
name: z.string().min(1).optional(),
|
|
13000
|
+
description: z.string().optional(),
|
|
13001
|
+
image: z.string().optional(),
|
|
13002
|
+
sourceURI: z.string().url().optional(),
|
|
13003
|
+
status: SkillFrameworkStatusEnum.optional()
|
|
13004
|
+
}).refine(
|
|
13005
|
+
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
|
|
13006
|
+
{
|
|
13007
|
+
message: "At least one field must be provided to update",
|
|
13008
|
+
path: ["name"]
|
|
13009
|
+
}
|
|
13010
|
+
);
|
|
13011
|
+
var DeleteFrameworkInputValidator = z.object({ id: z.string() });
|
|
13012
|
+
var CreateManagedFrameworkBatchInputValidator = z.object({
|
|
13013
|
+
frameworks: z.array(
|
|
13014
|
+
CreateManagedFrameworkInputValidator.extend({
|
|
13015
|
+
skills: z.array(SkillTreeNodeInputValidator).optional()
|
|
13016
|
+
})
|
|
13017
|
+
).min(1)
|
|
13018
|
+
});
|
|
13019
|
+
var SkillFrameworkAdminInputValidator = z.object({
|
|
13020
|
+
frameworkId: z.string(),
|
|
13021
|
+
profileId: z.string()
|
|
13022
|
+
});
|
|
13023
|
+
var SkillFrameworkIdInputValidator = z.object({ frameworkId: z.string() });
|
|
13024
|
+
var SkillFrameworkAdminsValidator = LCNProfileValidator.array();
|
|
13025
|
+
var SyncFrameworkInputValidator = z.object({ id: z.string() });
|
|
13026
|
+
var AddTagInputValidator = z.object({
|
|
13027
|
+
slug: z.string().min(1),
|
|
13028
|
+
name: z.string().min(1)
|
|
13029
|
+
});
|
|
13030
|
+
var CreateSkillInputValidator = z.object({
|
|
13031
|
+
frameworkId: z.string(),
|
|
13032
|
+
skill: SkillTreeNodeInputValidator,
|
|
13033
|
+
parentId: z.string().nullable().optional()
|
|
13034
|
+
});
|
|
13035
|
+
var UpdateSkillInputValidator = z.object({
|
|
13036
|
+
frameworkId: z.string(),
|
|
13037
|
+
id: z.string(),
|
|
13038
|
+
statement: z.string().optional(),
|
|
13039
|
+
description: z.string().optional(),
|
|
13040
|
+
code: z.string().optional(),
|
|
13041
|
+
icon: z.string().optional(),
|
|
13042
|
+
type: z.string().optional(),
|
|
13043
|
+
status: SkillStatusEnum.optional()
|
|
13044
|
+
}).refine(
|
|
13045
|
+
(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,
|
|
13046
|
+
{
|
|
13047
|
+
message: "At least one field must be provided to update a skill",
|
|
13048
|
+
path: ["statement"]
|
|
13049
|
+
}
|
|
13050
|
+
);
|
|
13051
|
+
var SkillDeletionStrategyValidator = z.enum(["recursive", "reparent"]);
|
|
13052
|
+
var DeleteSkillInputValidator = z.object({
|
|
13053
|
+
frameworkId: z.string(),
|
|
13054
|
+
id: z.string(),
|
|
13055
|
+
strategy: SkillDeletionStrategyValidator.optional().default("reparent")
|
|
13056
|
+
});
|
|
13057
|
+
var CreateSkillsBatchInputValidator = z.object({
|
|
13058
|
+
frameworkId: z.string(),
|
|
13059
|
+
skills: z.array(SkillTreeNodeInputValidator).min(1),
|
|
13060
|
+
parentId: z.string().nullable().optional()
|
|
13061
|
+
});
|
|
13062
|
+
var ReplaceSkillFrameworkSkillsInputValidator = z.object({
|
|
13063
|
+
frameworkId: z.string(),
|
|
13064
|
+
skills: z.array(SkillTreeNodeInputValidator).min(0)
|
|
13065
|
+
});
|
|
13066
|
+
var ReplaceSkillFrameworkSkillsResultValidator = z.object({
|
|
13067
|
+
created: z.number().int().min(0),
|
|
13068
|
+
updated: z.number().int().min(0),
|
|
13069
|
+
deleted: z.number().int().min(0),
|
|
13070
|
+
unchanged: z.number().int().min(0),
|
|
13071
|
+
total: z.number().int().min(0)
|
|
13072
|
+
});
|
|
13073
|
+
var CountSkillsInputValidator = z.object({
|
|
13074
|
+
frameworkId: z.string(),
|
|
13075
|
+
skillId: z.string().optional(),
|
|
13076
|
+
recursive: z.boolean().optional().default(false),
|
|
13077
|
+
onlyCountCompetencies: z.boolean().optional().default(false)
|
|
13078
|
+
});
|
|
13079
|
+
var CountSkillsResultValidator = z.object({
|
|
13080
|
+
count: z.number().int().min(0)
|
|
13081
|
+
});
|
|
13082
|
+
var GetFullSkillTreeInputValidator = z.object({
|
|
13083
|
+
frameworkId: z.string()
|
|
13084
|
+
});
|
|
13085
|
+
var GetFullSkillTreeResultValidator = z.object({
|
|
13086
|
+
skills: z.array(SkillTreeNodeValidator)
|
|
13087
|
+
});
|
|
13088
|
+
var GetSkillPathInputValidator = z.object({
|
|
13089
|
+
frameworkId: z.string(),
|
|
13090
|
+
skillId: z.string()
|
|
13091
|
+
});
|
|
13092
|
+
var GetSkillPathResultValidator = z.object({
|
|
13093
|
+
path: z.array(SkillValidator)
|
|
13094
|
+
});
|
|
13095
|
+
var FrameworkWithSkillsValidator = z.object({
|
|
13096
|
+
framework: SkillFrameworkValidator,
|
|
13097
|
+
skills: PaginatedSkillTreeValidator
|
|
13098
|
+
});
|
|
12562
13099
|
|
|
12563
13100
|
// ../../learn-card-helpers/dist/helpers.esm.js
|
|
12564
13101
|
var __create2 = Object.create;
|
|
@@ -12612,6 +13149,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12612
13149
|
AchievementSubjectValidator: () => AchievementSubjectValidator2,
|
|
12613
13150
|
AchievementTypeValidator: () => AchievementTypeValidator2,
|
|
12614
13151
|
AchievementValidator: () => AchievementValidator2,
|
|
13152
|
+
AddTagInputValidator: () => AddTagInputValidator2,
|
|
12615
13153
|
AddressValidator: () => AddressValidator2,
|
|
12616
13154
|
AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator2,
|
|
12617
13155
|
AlignmentValidator: () => AlignmentValidator2,
|
|
@@ -12651,14 +13189,22 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12651
13189
|
ContactMethodVerificationValidator: () => ContactMethodVerificationValidator2,
|
|
12652
13190
|
ContextValidator: () => ContextValidator2,
|
|
12653
13191
|
ContractCredentialValidator: () => ContractCredentialValidator2,
|
|
13192
|
+
CountSkillsInputValidator: () => CountSkillsInputValidator2,
|
|
13193
|
+
CountSkillsResultValidator: () => CountSkillsResultValidator2,
|
|
12654
13194
|
CreateContactMethodSessionResponseValidator: () => CreateContactMethodSessionResponseValidator2,
|
|
12655
13195
|
CreateContactMethodSessionValidator: () => CreateContactMethodSessionValidator2,
|
|
13196
|
+
CreateManagedFrameworkBatchInputValidator: () => CreateManagedFrameworkBatchInputValidator2,
|
|
13197
|
+
CreateManagedFrameworkInputValidator: () => CreateManagedFrameworkInputValidator2,
|
|
13198
|
+
CreateSkillInputValidator: () => CreateSkillInputValidator2,
|
|
13199
|
+
CreateSkillsBatchInputValidator: () => CreateSkillsBatchInputValidator2,
|
|
12656
13200
|
CredentialInfoValidator: () => CredentialInfoValidator2,
|
|
12657
13201
|
CredentialRecordValidator: () => CredentialRecordValidator2,
|
|
12658
13202
|
CredentialSchemaValidator: () => CredentialSchemaValidator2,
|
|
12659
13203
|
CredentialStatusValidator: () => CredentialStatusValidator2,
|
|
12660
13204
|
CredentialSubjectValidator: () => CredentialSubjectValidator2,
|
|
12661
13205
|
CriteriaValidator: () => CriteriaValidator2,
|
|
13206
|
+
DeleteFrameworkInputValidator: () => DeleteFrameworkInputValidator2,
|
|
13207
|
+
DeleteSkillInputValidator: () => DeleteSkillInputValidator2,
|
|
12662
13208
|
DidDocumentValidator: () => DidDocumentValidator2,
|
|
12663
13209
|
EncryptedCredentialRecordValidator: () => EncryptedCredentialRecordValidator2,
|
|
12664
13210
|
EncryptedRecordValidator: () => EncryptedRecordValidator2,
|
|
@@ -12666,8 +13212,13 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12666
13212
|
EndorsementSubjectValidator: () => EndorsementSubjectValidator2,
|
|
12667
13213
|
EvidenceValidator: () => EvidenceValidator2,
|
|
12668
13214
|
FlatAuthGrantValidator: () => FlatAuthGrantValidator2,
|
|
13215
|
+
FrameworkWithSkillsValidator: () => FrameworkWithSkillsValidator2,
|
|
12669
13216
|
FullClaimHookValidator: () => FullClaimHookValidator2,
|
|
12670
13217
|
GeoCoordinatesValidator: () => GeoCoordinatesValidator2,
|
|
13218
|
+
GetFullSkillTreeInputValidator: () => GetFullSkillTreeInputValidator2,
|
|
13219
|
+
GetFullSkillTreeResultValidator: () => GetFullSkillTreeResultValidator2,
|
|
13220
|
+
GetSkillPathInputValidator: () => GetSkillPathInputValidator2,
|
|
13221
|
+
GetSkillPathResultValidator: () => GetSkillPathResultValidator2,
|
|
12671
13222
|
IdentifierEntryValidator: () => IdentifierEntryValidator2,
|
|
12672
13223
|
IdentifierTypeValidator: () => IdentifierTypeValidator2,
|
|
12673
13224
|
IdentityObjectValidator: () => IdentityObjectValidator2,
|
|
@@ -12706,6 +13257,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12706
13257
|
LCNProfileValidator: () => LCNProfileValidator2,
|
|
12707
13258
|
LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator2,
|
|
12708
13259
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator2,
|
|
13260
|
+
LinkProviderFrameworkInputValidator: () => LinkProviderFrameworkInputValidator2,
|
|
12709
13261
|
PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator2,
|
|
12710
13262
|
PaginatedBoostRecipientsWithChildrenValidator: () => PaginatedBoostRecipientsWithChildrenValidator2,
|
|
12711
13263
|
PaginatedBoostsValidator: () => PaginatedBoostsValidator2,
|
|
@@ -12723,6 +13275,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12723
13275
|
PaginatedLCNProfileManagersValidator: () => PaginatedLCNProfileManagersValidator2,
|
|
12724
13276
|
PaginatedLCNProfilesAndManagersValidator: () => PaginatedLCNProfilesAndManagersValidator2,
|
|
12725
13277
|
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator2,
|
|
13278
|
+
PaginatedSkillFrameworksValidator: () => PaginatedSkillFrameworksValidator2,
|
|
13279
|
+
PaginatedSkillTreeValidator: () => PaginatedSkillTreeValidator2,
|
|
12726
13280
|
PaginationOptionsValidator: () => PaginationOptionsValidator2,
|
|
12727
13281
|
PaginationResponseValidator: () => PaginationResponseValidator2,
|
|
12728
13282
|
ProfileValidator: () => ProfileValidator2,
|
|
@@ -12730,6 +13284,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12730
13284
|
RefreshServiceValidator: () => RefreshServiceValidator2,
|
|
12731
13285
|
RegExpValidator: () => RegExpValidator2,
|
|
12732
13286
|
RelatedValidator: () => RelatedValidator2,
|
|
13287
|
+
ReplaceSkillFrameworkSkillsInputValidator: () => ReplaceSkillFrameworkSkillsInputValidator2,
|
|
13288
|
+
ReplaceSkillFrameworkSkillsResultValidator: () => ReplaceSkillFrameworkSkillsResultValidator2,
|
|
12733
13289
|
ResultDescriptionValidator: () => ResultDescriptionValidator2,
|
|
12734
13290
|
ResultStatusTypeValidator: () => ResultStatusTypeValidator2,
|
|
12735
13291
|
ResultTypeValidator: () => ResultTypeValidator2,
|
|
@@ -12738,11 +13294,27 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12738
13294
|
SentCredentialInfoValidator: () => SentCredentialInfoValidator2,
|
|
12739
13295
|
ServiceValidator: () => ServiceValidator2,
|
|
12740
13296
|
SetPrimaryContactMethodValidator: () => SetPrimaryContactMethodValidator2,
|
|
13297
|
+
SkillDeletionStrategyValidator: () => SkillDeletionStrategyValidator2,
|
|
13298
|
+
SkillFrameworkAdminInputValidator: () => SkillFrameworkAdminInputValidator2,
|
|
13299
|
+
SkillFrameworkAdminsValidator: () => SkillFrameworkAdminsValidator2,
|
|
13300
|
+
SkillFrameworkIdInputValidator: () => SkillFrameworkIdInputValidator2,
|
|
13301
|
+
SkillFrameworkQueryValidator: () => SkillFrameworkQueryValidator2,
|
|
13302
|
+
SkillFrameworkStatusEnum: () => SkillFrameworkStatusEnum2,
|
|
13303
|
+
SkillFrameworkValidator: () => SkillFrameworkValidator2,
|
|
13304
|
+
SkillQueryValidator: () => SkillQueryValidator2,
|
|
13305
|
+
SkillStatusEnum: () => SkillStatusEnum2,
|
|
13306
|
+
SkillTreeNodeInputValidator: () => SkillTreeNodeInputValidator2,
|
|
13307
|
+
SkillTreeNodeValidator: () => SkillTreeNodeValidator2,
|
|
13308
|
+
SkillValidator: () => SkillValidator2,
|
|
12741
13309
|
StringQuery: () => StringQuery2,
|
|
13310
|
+
SyncFrameworkInputValidator: () => SyncFrameworkInputValidator2,
|
|
13311
|
+
TagValidator: () => TagValidator2,
|
|
12742
13312
|
TermsOfUseValidator: () => TermsOfUseValidator2,
|
|
12743
13313
|
UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator2,
|
|
12744
13314
|
UnsignedVCValidator: () => UnsignedVCValidator2,
|
|
12745
13315
|
UnsignedVPValidator: () => UnsignedVPValidator2,
|
|
13316
|
+
UpdateFrameworkInputValidator: () => UpdateFrameworkInputValidator2,
|
|
13317
|
+
UpdateSkillInputValidator: () => UpdateSkillInputValidator2,
|
|
12746
13318
|
VC2EvidenceValidator: () => VC2EvidenceValidator2,
|
|
12747
13319
|
VCValidator: () => VCValidator2,
|
|
12748
13320
|
VPValidator: () => VPValidator2,
|
|
@@ -17225,7 +17797,14 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17225
17797
|
}
|
|
17226
17798
|
})
|
|
17227
17799
|
);
|
|
17228
|
-
var
|
|
17800
|
+
var BaseStringQuery2 = z2.string().or(z2.object({ $in: z2.string().array() })).or(z2.object({ $regex: RegExpValidator2 }));
|
|
17801
|
+
var StringQuery2 = z2.union([
|
|
17802
|
+
BaseStringQuery2,
|
|
17803
|
+
z2.object({
|
|
17804
|
+
$or: BaseStringQuery2.array()
|
|
17805
|
+
})
|
|
17806
|
+
]);
|
|
17807
|
+
extendZodWithOpenApi2(z2);
|
|
17229
17808
|
var LCNProfileDisplayValidator2 = z2.object({
|
|
17230
17809
|
backgroundColor: z2.string().optional(),
|
|
17231
17810
|
backgroundImage: z2.string().optional(),
|
|
@@ -17383,7 +17962,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17383
17962
|
claimPermissions: BoostPermissionsValidator2.optional(),
|
|
17384
17963
|
allowAnyoneToCreateChildren: z2.boolean().optional()
|
|
17385
17964
|
});
|
|
17386
|
-
var
|
|
17965
|
+
var BaseBoostQueryValidator2 = z2.object({
|
|
17387
17966
|
uri: StringQuery2,
|
|
17388
17967
|
name: StringQuery2,
|
|
17389
17968
|
type: StringQuery2,
|
|
@@ -17392,6 +17971,12 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17392
17971
|
status: LCNBoostStatus2.or(z2.object({ $in: LCNBoostStatus2.array() })),
|
|
17393
17972
|
autoConnectRecipients: z2.boolean()
|
|
17394
17973
|
}).partial();
|
|
17974
|
+
var BoostQueryValidator2 = z2.union([
|
|
17975
|
+
z2.object({
|
|
17976
|
+
$or: BaseBoostQueryValidator2.array()
|
|
17977
|
+
}),
|
|
17978
|
+
BaseBoostQueryValidator2
|
|
17979
|
+
]);
|
|
17395
17980
|
var PaginatedBoostsValidator2 = PaginationResponseValidator2.extend({
|
|
17396
17981
|
records: BoostValidator2.array()
|
|
17397
17982
|
});
|
|
@@ -17447,11 +18032,25 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17447
18032
|
var ConsentFlowContractValidator2 = z2.object({
|
|
17448
18033
|
read: z2.object({
|
|
17449
18034
|
anonymize: z2.boolean().optional(),
|
|
17450
|
-
credentials: z2.object({
|
|
18035
|
+
credentials: z2.object({
|
|
18036
|
+
categories: z2.record(
|
|
18037
|
+
z2.object({
|
|
18038
|
+
required: z2.boolean(),
|
|
18039
|
+
defaultEnabled: z2.boolean().optional()
|
|
18040
|
+
})
|
|
18041
|
+
).default({})
|
|
18042
|
+
}).default({}),
|
|
17451
18043
|
personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
|
|
17452
18044
|
}).default({}),
|
|
17453
18045
|
write: z2.object({
|
|
17454
|
-
credentials: z2.object({
|
|
18046
|
+
credentials: z2.object({
|
|
18047
|
+
categories: z2.record(
|
|
18048
|
+
z2.object({
|
|
18049
|
+
required: z2.boolean(),
|
|
18050
|
+
defaultEnabled: z2.boolean().optional()
|
|
18051
|
+
})
|
|
18052
|
+
).default({})
|
|
18053
|
+
}).default({}),
|
|
17455
18054
|
personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
|
|
17456
18055
|
}).default({})
|
|
17457
18056
|
});
|
|
@@ -17594,6 +18193,17 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17594
18193
|
var PaginatedConsentFlowTransactionsValidator2 = PaginationResponseValidator2.extend({
|
|
17595
18194
|
records: ConsentFlowTransactionValidator2.array()
|
|
17596
18195
|
});
|
|
18196
|
+
var BaseSkillFrameworkQueryValidator2 = z2.object({
|
|
18197
|
+
id: StringQuery2,
|
|
18198
|
+
name: StringQuery2,
|
|
18199
|
+
description: StringQuery2,
|
|
18200
|
+
sourceURI: StringQuery2,
|
|
18201
|
+
status: StringQuery2
|
|
18202
|
+
}).partial();
|
|
18203
|
+
var SkillFrameworkQueryValidator2 = z2.union([
|
|
18204
|
+
z2.object({ $or: BaseSkillFrameworkQueryValidator2.array() }),
|
|
18205
|
+
BaseSkillFrameworkQueryValidator2
|
|
18206
|
+
]);
|
|
17597
18207
|
var ContractCredentialValidator2 = z2.object({
|
|
17598
18208
|
credentialUri: z2.string(),
|
|
17599
18209
|
termsUri: z2.string(),
|
|
@@ -17772,31 +18382,55 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17772
18382
|
});
|
|
17773
18383
|
var IssueInboxCredentialValidator2 = z2.object({
|
|
17774
18384
|
recipient: ContactMethodQueryValidator2.describe("The recipient of the credential"),
|
|
17775
|
-
credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe(
|
|
18385
|
+
credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe(
|
|
18386
|
+
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
18387
|
+
),
|
|
17776
18388
|
configuration: z2.object({
|
|
17777
|
-
signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe(
|
|
18389
|
+
signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe(
|
|
18390
|
+
"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."
|
|
18391
|
+
),
|
|
17778
18392
|
webhookUrl: z2.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
17779
18393
|
expiresInDays: z2.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
17780
18394
|
delivery: z2.object({
|
|
17781
|
-
suppress: z2.boolean().optional().default(false).describe(
|
|
18395
|
+
suppress: z2.boolean().optional().default(false).describe(
|
|
18396
|
+
"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."
|
|
18397
|
+
),
|
|
17782
18398
|
template: z2.object({
|
|
17783
|
-
id: z2.enum(["universal-inbox-claim"]).optional().describe(
|
|
18399
|
+
id: z2.enum(["universal-inbox-claim"]).optional().describe(
|
|
18400
|
+
"The template ID to use for the credential delivery. If not provided, the default template will be used."
|
|
18401
|
+
),
|
|
17784
18402
|
model: z2.object({
|
|
17785
18403
|
issuer: z2.object({
|
|
17786
|
-
name: z2.string().optional().describe(
|
|
18404
|
+
name: z2.string().optional().describe(
|
|
18405
|
+
'The name of the organization (e.g., "State University").'
|
|
18406
|
+
),
|
|
17787
18407
|
logoUrl: z2.string().url().optional().describe("The URL of the organization's logo.")
|
|
17788
18408
|
}).optional(),
|
|
17789
18409
|
credential: z2.object({
|
|
17790
|
-
name: z2.string().optional().describe(
|
|
17791
|
-
|
|
18410
|
+
name: z2.string().optional().describe(
|
|
18411
|
+
'The name of the credential (e.g., "Bachelor of Science").'
|
|
18412
|
+
),
|
|
18413
|
+
type: z2.string().optional().describe(
|
|
18414
|
+
'The type of the credential (e.g., "degree", "certificate").'
|
|
18415
|
+
)
|
|
17792
18416
|
}).optional(),
|
|
17793
18417
|
recipient: z2.object({
|
|
17794
|
-
name: z2.string().optional().describe(
|
|
18418
|
+
name: z2.string().optional().describe(
|
|
18419
|
+
'The name of the recipient (e.g., "John Doe").'
|
|
18420
|
+
)
|
|
17795
18421
|
}).optional()
|
|
17796
|
-
}).describe(
|
|
17797
|
-
|
|
17798
|
-
|
|
17799
|
-
|
|
18422
|
+
}).describe(
|
|
18423
|
+
"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."
|
|
18424
|
+
)
|
|
18425
|
+
}).optional().describe(
|
|
18426
|
+
"The template to use for the credential delivery. If not provided, the default template will be used."
|
|
18427
|
+
)
|
|
18428
|
+
}).optional().describe(
|
|
18429
|
+
"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."
|
|
18430
|
+
)
|
|
18431
|
+
}).optional().describe(
|
|
18432
|
+
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
18433
|
+
)
|
|
17800
18434
|
});
|
|
17801
18435
|
var IssueInboxCredentialResponseValidator2 = z2.object({
|
|
17802
18436
|
issuanceId: z2.string(),
|
|
@@ -17858,6 +18492,191 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17858
18492
|
expiresAt: z2.string(),
|
|
17859
18493
|
used: z2.boolean()
|
|
17860
18494
|
});
|
|
18495
|
+
var TagValidator2 = z2.object({
|
|
18496
|
+
id: z2.string(),
|
|
18497
|
+
name: z2.string().min(1),
|
|
18498
|
+
slug: z2.string().min(1),
|
|
18499
|
+
createdAt: z2.string().optional(),
|
|
18500
|
+
updatedAt: z2.string().optional()
|
|
18501
|
+
});
|
|
18502
|
+
var SkillStatusEnum2 = z2.enum(["active", "archived"]);
|
|
18503
|
+
var SkillValidator2 = z2.object({
|
|
18504
|
+
id: z2.string(),
|
|
18505
|
+
statement: z2.string(),
|
|
18506
|
+
description: z2.string().optional(),
|
|
18507
|
+
code: z2.string().optional(),
|
|
18508
|
+
icon: z2.string().optional(),
|
|
18509
|
+
type: z2.string().default("skill"),
|
|
18510
|
+
status: SkillStatusEnum2.default("active"),
|
|
18511
|
+
frameworkId: z2.string().optional(),
|
|
18512
|
+
createdAt: z2.string().optional(),
|
|
18513
|
+
updatedAt: z2.string().optional()
|
|
18514
|
+
});
|
|
18515
|
+
var BaseSkillQueryValidator2 = z2.object({
|
|
18516
|
+
id: StringQuery2,
|
|
18517
|
+
statement: StringQuery2,
|
|
18518
|
+
description: StringQuery2,
|
|
18519
|
+
code: StringQuery2,
|
|
18520
|
+
type: StringQuery2,
|
|
18521
|
+
status: SkillStatusEnum2.or(z2.object({ $in: SkillStatusEnum2.array() }))
|
|
18522
|
+
}).partial();
|
|
18523
|
+
var SkillQueryValidator2 = z2.union([
|
|
18524
|
+
z2.object({
|
|
18525
|
+
$or: BaseSkillQueryValidator2.array()
|
|
18526
|
+
}),
|
|
18527
|
+
BaseSkillQueryValidator2
|
|
18528
|
+
]);
|
|
18529
|
+
var SkillFrameworkStatusEnum2 = z2.enum(["active", "archived"]);
|
|
18530
|
+
var SkillFrameworkValidator2 = z2.object({
|
|
18531
|
+
id: z2.string(),
|
|
18532
|
+
name: z2.string(),
|
|
18533
|
+
description: z2.string().optional(),
|
|
18534
|
+
image: z2.string().optional(),
|
|
18535
|
+
sourceURI: z2.string().url().optional(),
|
|
18536
|
+
status: SkillFrameworkStatusEnum2.default("active"),
|
|
18537
|
+
createdAt: z2.string().optional(),
|
|
18538
|
+
updatedAt: z2.string().optional()
|
|
18539
|
+
});
|
|
18540
|
+
var PaginatedSkillFrameworksValidator2 = PaginationResponseValidator2.extend({
|
|
18541
|
+
records: SkillFrameworkValidator2.array()
|
|
18542
|
+
});
|
|
18543
|
+
var SkillTreeNodeValidator2 = SkillValidator2.extend({
|
|
18544
|
+
children: z2.array(z2.lazy(() => SkillTreeNodeValidator2)),
|
|
18545
|
+
hasChildren: z2.boolean(),
|
|
18546
|
+
childrenCursor: z2.string().nullable().optional()
|
|
18547
|
+
}).openapi({ ref: "SkillTreeNode" });
|
|
18548
|
+
var PaginatedSkillTreeValidator2 = z2.object({
|
|
18549
|
+
hasMore: z2.boolean(),
|
|
18550
|
+
cursor: z2.string().nullable(),
|
|
18551
|
+
records: z2.array(SkillTreeNodeValidator2)
|
|
18552
|
+
});
|
|
18553
|
+
var SkillTreeNodeInputValidator2 = z2.lazy(
|
|
18554
|
+
() => z2.object({
|
|
18555
|
+
id: z2.string().optional(),
|
|
18556
|
+
statement: z2.string(),
|
|
18557
|
+
description: z2.string().optional(),
|
|
18558
|
+
code: z2.string().optional(),
|
|
18559
|
+
icon: z2.string().optional(),
|
|
18560
|
+
type: z2.string().optional(),
|
|
18561
|
+
status: SkillStatusEnum2.optional(),
|
|
18562
|
+
children: z2.array(SkillTreeNodeInputValidator2).optional()
|
|
18563
|
+
})
|
|
18564
|
+
).openapi({ ref: "SkillTreeNodeInput" });
|
|
18565
|
+
var LinkProviderFrameworkInputValidator2 = z2.object({
|
|
18566
|
+
frameworkId: z2.string()
|
|
18567
|
+
});
|
|
18568
|
+
var CreateManagedFrameworkInputValidator2 = z2.object({
|
|
18569
|
+
id: z2.string().optional(),
|
|
18570
|
+
name: z2.string().min(1),
|
|
18571
|
+
description: z2.string().optional(),
|
|
18572
|
+
image: z2.string().optional(),
|
|
18573
|
+
sourceURI: z2.string().url().optional(),
|
|
18574
|
+
status: SkillFrameworkStatusEnum2.optional(),
|
|
18575
|
+
skills: z2.array(SkillTreeNodeInputValidator2).optional(),
|
|
18576
|
+
boostUris: z2.array(z2.string()).optional()
|
|
18577
|
+
});
|
|
18578
|
+
var UpdateFrameworkInputValidator2 = z2.object({
|
|
18579
|
+
id: z2.string(),
|
|
18580
|
+
name: z2.string().min(1).optional(),
|
|
18581
|
+
description: z2.string().optional(),
|
|
18582
|
+
image: z2.string().optional(),
|
|
18583
|
+
sourceURI: z2.string().url().optional(),
|
|
18584
|
+
status: SkillFrameworkStatusEnum2.optional()
|
|
18585
|
+
}).refine(
|
|
18586
|
+
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
|
|
18587
|
+
{
|
|
18588
|
+
message: "At least one field must be provided to update",
|
|
18589
|
+
path: ["name"]
|
|
18590
|
+
}
|
|
18591
|
+
);
|
|
18592
|
+
var DeleteFrameworkInputValidator2 = z2.object({ id: z2.string() });
|
|
18593
|
+
var CreateManagedFrameworkBatchInputValidator2 = z2.object({
|
|
18594
|
+
frameworks: z2.array(
|
|
18595
|
+
CreateManagedFrameworkInputValidator2.extend({
|
|
18596
|
+
skills: z2.array(SkillTreeNodeInputValidator2).optional()
|
|
18597
|
+
})
|
|
18598
|
+
).min(1)
|
|
18599
|
+
});
|
|
18600
|
+
var SkillFrameworkAdminInputValidator2 = z2.object({
|
|
18601
|
+
frameworkId: z2.string(),
|
|
18602
|
+
profileId: z2.string()
|
|
18603
|
+
});
|
|
18604
|
+
var SkillFrameworkIdInputValidator2 = z2.object({ frameworkId: z2.string() });
|
|
18605
|
+
var SkillFrameworkAdminsValidator2 = LCNProfileValidator2.array();
|
|
18606
|
+
var SyncFrameworkInputValidator2 = z2.object({ id: z2.string() });
|
|
18607
|
+
var AddTagInputValidator2 = z2.object({
|
|
18608
|
+
slug: z2.string().min(1),
|
|
18609
|
+
name: z2.string().min(1)
|
|
18610
|
+
});
|
|
18611
|
+
var CreateSkillInputValidator2 = z2.object({
|
|
18612
|
+
frameworkId: z2.string(),
|
|
18613
|
+
skill: SkillTreeNodeInputValidator2,
|
|
18614
|
+
parentId: z2.string().nullable().optional()
|
|
18615
|
+
});
|
|
18616
|
+
var UpdateSkillInputValidator2 = z2.object({
|
|
18617
|
+
frameworkId: z2.string(),
|
|
18618
|
+
id: z2.string(),
|
|
18619
|
+
statement: z2.string().optional(),
|
|
18620
|
+
description: z2.string().optional(),
|
|
18621
|
+
code: z2.string().optional(),
|
|
18622
|
+
icon: z2.string().optional(),
|
|
18623
|
+
type: z2.string().optional(),
|
|
18624
|
+
status: SkillStatusEnum2.optional()
|
|
18625
|
+
}).refine(
|
|
18626
|
+
(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,
|
|
18627
|
+
{
|
|
18628
|
+
message: "At least one field must be provided to update a skill",
|
|
18629
|
+
path: ["statement"]
|
|
18630
|
+
}
|
|
18631
|
+
);
|
|
18632
|
+
var SkillDeletionStrategyValidator2 = z2.enum(["recursive", "reparent"]);
|
|
18633
|
+
var DeleteSkillInputValidator2 = z2.object({
|
|
18634
|
+
frameworkId: z2.string(),
|
|
18635
|
+
id: z2.string(),
|
|
18636
|
+
strategy: SkillDeletionStrategyValidator2.optional().default("reparent")
|
|
18637
|
+
});
|
|
18638
|
+
var CreateSkillsBatchInputValidator2 = z2.object({
|
|
18639
|
+
frameworkId: z2.string(),
|
|
18640
|
+
skills: z2.array(SkillTreeNodeInputValidator2).min(1),
|
|
18641
|
+
parentId: z2.string().nullable().optional()
|
|
18642
|
+
});
|
|
18643
|
+
var ReplaceSkillFrameworkSkillsInputValidator2 = z2.object({
|
|
18644
|
+
frameworkId: z2.string(),
|
|
18645
|
+
skills: z2.array(SkillTreeNodeInputValidator2).min(0)
|
|
18646
|
+
});
|
|
18647
|
+
var ReplaceSkillFrameworkSkillsResultValidator2 = z2.object({
|
|
18648
|
+
created: z2.number().int().min(0),
|
|
18649
|
+
updated: z2.number().int().min(0),
|
|
18650
|
+
deleted: z2.number().int().min(0),
|
|
18651
|
+
unchanged: z2.number().int().min(0),
|
|
18652
|
+
total: z2.number().int().min(0)
|
|
18653
|
+
});
|
|
18654
|
+
var CountSkillsInputValidator2 = z2.object({
|
|
18655
|
+
frameworkId: z2.string(),
|
|
18656
|
+
skillId: z2.string().optional(),
|
|
18657
|
+
recursive: z2.boolean().optional().default(false),
|
|
18658
|
+
onlyCountCompetencies: z2.boolean().optional().default(false)
|
|
18659
|
+
});
|
|
18660
|
+
var CountSkillsResultValidator2 = z2.object({
|
|
18661
|
+
count: z2.number().int().min(0)
|
|
18662
|
+
});
|
|
18663
|
+
var GetFullSkillTreeInputValidator2 = z2.object({
|
|
18664
|
+
frameworkId: z2.string()
|
|
18665
|
+
});
|
|
18666
|
+
var GetFullSkillTreeResultValidator2 = z2.object({
|
|
18667
|
+
skills: z2.array(SkillTreeNodeValidator2)
|
|
18668
|
+
});
|
|
18669
|
+
var GetSkillPathInputValidator2 = z2.object({
|
|
18670
|
+
frameworkId: z2.string(),
|
|
18671
|
+
skillId: z2.string()
|
|
18672
|
+
});
|
|
18673
|
+
var GetSkillPathResultValidator2 = z2.object({
|
|
18674
|
+
path: z2.array(SkillValidator2)
|
|
18675
|
+
});
|
|
18676
|
+
var FrameworkWithSkillsValidator2 = z2.object({
|
|
18677
|
+
framework: SkillFrameworkValidator2,
|
|
18678
|
+
skills: PaginatedSkillTreeValidator2
|
|
18679
|
+
});
|
|
17861
18680
|
}
|
|
17862
18681
|
});
|
|
17863
18682
|
var require_dist2 = __commonJS2({
|
|
@@ -18248,19 +19067,40 @@ async function getLearnCardNetworkPlugin(learnCard, url, apiToken) {
|
|
|
18248
19067
|
},
|
|
18249
19068
|
createBoost: async (_learnCard, credential, metadata) => {
|
|
18250
19069
|
await ensureUser();
|
|
18251
|
-
|
|
19070
|
+
const { skills, ...rest } = metadata ?? {};
|
|
19071
|
+
const payload = { credential, ...rest };
|
|
19072
|
+
if (Array.isArray(skills) && skills.length > 0)
|
|
19073
|
+
payload.skills = skills;
|
|
19074
|
+
return client.boost.createBoost.mutate(payload);
|
|
18252
19075
|
},
|
|
18253
19076
|
createChildBoost: async (_learnCard, parentUri, credential, metadata) => {
|
|
18254
19077
|
await ensureUser();
|
|
18255
|
-
|
|
18256
|
-
|
|
18257
|
-
|
|
18258
|
-
|
|
19078
|
+
const { skills, ...restMetadata } = metadata || {};
|
|
19079
|
+
const payload = { parentUri, boost: { credential, ...restMetadata } };
|
|
19080
|
+
if (Array.isArray(skills) && skills.length > 0)
|
|
19081
|
+
payload.skills = skills;
|
|
19082
|
+
return client.boost.createChildBoost.mutate(payload);
|
|
18259
19083
|
},
|
|
18260
19084
|
getBoost: async (_learnCard, uri) => {
|
|
18261
19085
|
await ensureUser();
|
|
18262
19086
|
return client.boost.getBoost.query({ uri });
|
|
18263
19087
|
},
|
|
19088
|
+
getBoostFrameworks: async (_learnCard, uri, options = {}) => {
|
|
19089
|
+
if (!userData)
|
|
19090
|
+
throw new Error("Please make an account first!");
|
|
19091
|
+
const { limit, cursor, query } = options ?? {};
|
|
19092
|
+
return client.boost.getBoostFrameworks.query({ uri, limit, cursor, query });
|
|
19093
|
+
},
|
|
19094
|
+
getSkillsAvailableForBoost: async (_learnCard, uri) => {
|
|
19095
|
+
if (!userData)
|
|
19096
|
+
throw new Error("Please make an account first!");
|
|
19097
|
+
return client.boost.getSkillsAvailableForBoost.query({ uri });
|
|
19098
|
+
},
|
|
19099
|
+
searchSkillsAvailableForBoost: async (_learnCard, uri, query, options = {}) => {
|
|
19100
|
+
if (!userData)
|
|
19101
|
+
throw new Error("Please make an account first!");
|
|
19102
|
+
return client.boost.searchSkillsAvailableForBoost.query({ uri, query, ...options });
|
|
19103
|
+
},
|
|
18264
19104
|
getBoosts: async (_learnCard, query) => {
|
|
18265
19105
|
console.warn(
|
|
18266
19106
|
"The getBoosts method is deprecated! Please use getPaginatedBoosts instead!"
|
|
@@ -18393,6 +19233,21 @@ async function getLearnCardNetworkPlugin(learnCard, url, apiToken) {
|
|
|
18393
19233
|
updates: { ...credential && { credential }, ...updates }
|
|
18394
19234
|
});
|
|
18395
19235
|
},
|
|
19236
|
+
attachFrameworkToBoost: async (_learnCard, boostUri, frameworkId) => {
|
|
19237
|
+
if (!userData)
|
|
19238
|
+
throw new Error("Please make an account first!");
|
|
19239
|
+
return client.boost.attachFrameworkToBoost.mutate({ boostUri, frameworkId });
|
|
19240
|
+
},
|
|
19241
|
+
detachFrameworkFromBoost: async (_learnCard, boostUri, frameworkId) => {
|
|
19242
|
+
if (!userData)
|
|
19243
|
+
throw new Error("Please make an account first!");
|
|
19244
|
+
return client.boost.detachFrameworkFromBoost.mutate({ boostUri, frameworkId });
|
|
19245
|
+
},
|
|
19246
|
+
alignBoostSkills: async (_learnCard, boostUri, skills) => {
|
|
19247
|
+
if (!userData)
|
|
19248
|
+
throw new Error("Please make an account first!");
|
|
19249
|
+
return client.boost.alignBoostSkills.mutate({ boostUri, skills });
|
|
19250
|
+
},
|
|
18396
19251
|
getBoostAdmins: async (_learnCard, uri, options = {}) => {
|
|
18397
19252
|
await ensureUser();
|
|
18398
19253
|
return client.boost.getBoostAdmins.query({ uri, ...options });
|
|
@@ -18759,6 +19614,163 @@ async function getLearnCardNetworkPlugin(learnCard, url, apiToken) {
|
|
|
18759
19614
|
await ensureUser();
|
|
18760
19615
|
return client.contactMethods.removeContactMethod.mutate({ id });
|
|
18761
19616
|
},
|
|
19617
|
+
syncFrameworkSkills: async (_learnCard, input) => {
|
|
19618
|
+
if (!userData)
|
|
19619
|
+
throw new Error("Please make an account first!");
|
|
19620
|
+
return client.skills.syncFrameworkSkills.mutate(input);
|
|
19621
|
+
},
|
|
19622
|
+
listSkillTags: async (_learnCard, frameworkId, skillId) => {
|
|
19623
|
+
if (!userData)
|
|
19624
|
+
throw new Error("Please make an account first!");
|
|
19625
|
+
return client.skills.listSkillTags.query({ frameworkId, id: skillId });
|
|
19626
|
+
},
|
|
19627
|
+
addSkillTag: async (_learnCard, frameworkId, skillId, tag) => {
|
|
19628
|
+
if (!userData)
|
|
19629
|
+
throw new Error("Please make an account first!");
|
|
19630
|
+
return client.skills.addSkillTag.mutate({ frameworkId, id: skillId, tag });
|
|
19631
|
+
},
|
|
19632
|
+
removeSkillTag: async (_learnCard, frameworkId, skillId, slug) => {
|
|
19633
|
+
if (!userData)
|
|
19634
|
+
throw new Error("Please make an account first!");
|
|
19635
|
+
return client.skills.removeSkillTag.mutate({ frameworkId, id: skillId, slug });
|
|
19636
|
+
},
|
|
19637
|
+
createManagedSkillFramework: async (_learnCard, input) => {
|
|
19638
|
+
if (!userData)
|
|
19639
|
+
throw new Error("Please make an account first!");
|
|
19640
|
+
return client.skillFrameworks.createManaged.mutate(input);
|
|
19641
|
+
},
|
|
19642
|
+
createManagedSkillFrameworks: async (_learnCard, input) => {
|
|
19643
|
+
if (!userData)
|
|
19644
|
+
throw new Error("Please make an account first!");
|
|
19645
|
+
return client.skillFrameworks.createManagedBatch.mutate(input);
|
|
19646
|
+
},
|
|
19647
|
+
createSkillFramework: async (_learnCard, input) => {
|
|
19648
|
+
if (!userData)
|
|
19649
|
+
throw new Error("Please make an account first!");
|
|
19650
|
+
return client.skillFrameworks.create.mutate(input);
|
|
19651
|
+
},
|
|
19652
|
+
listMySkillFrameworks: async (_learnCard) => {
|
|
19653
|
+
if (!userData)
|
|
19654
|
+
throw new Error("Please make an account first!");
|
|
19655
|
+
return client.skillFrameworks.listMine.query();
|
|
19656
|
+
},
|
|
19657
|
+
getSkillFrameworkById: async (_learnCard, id, options = {}) => {
|
|
19658
|
+
if (!userData)
|
|
19659
|
+
throw new Error("Please make an account first!");
|
|
19660
|
+
return client.skillFrameworks.getById.query({ id, ...options });
|
|
19661
|
+
},
|
|
19662
|
+
getBoostsThatUseFramework: async (_learnCard, frameworkId, options = {}) => {
|
|
19663
|
+
if (!userData)
|
|
19664
|
+
throw new Error("Please make an account first!");
|
|
19665
|
+
return client.skillFrameworks.getBoostsThatUseFramework.query({
|
|
19666
|
+
id: frameworkId,
|
|
19667
|
+
...options
|
|
19668
|
+
});
|
|
19669
|
+
},
|
|
19670
|
+
countBoostsThatUseFramework: async (_learnCard, frameworkId, options = {}) => {
|
|
19671
|
+
if (!userData)
|
|
19672
|
+
throw new Error("Please make an account first!");
|
|
19673
|
+
return client.skillFrameworks.countBoostsThatUseFramework.query({
|
|
19674
|
+
id: frameworkId,
|
|
19675
|
+
...options
|
|
19676
|
+
});
|
|
19677
|
+
},
|
|
19678
|
+
getFrameworkSkillTree: async (_learnCard, frameworkId, options = {}) => {
|
|
19679
|
+
if (!userData)
|
|
19680
|
+
throw new Error("Please make an account first!");
|
|
19681
|
+
return client.skills.getFrameworkSkillTree.query({ id: frameworkId, ...options });
|
|
19682
|
+
},
|
|
19683
|
+
getSkillChildren: async (_learnCard, frameworkId, skillId, options = {}) => {
|
|
19684
|
+
if (!userData)
|
|
19685
|
+
throw new Error("Please make an account first!");
|
|
19686
|
+
return client.skills.getSkillChildrenTree.query({
|
|
19687
|
+
frameworkId,
|
|
19688
|
+
id: skillId,
|
|
19689
|
+
...options
|
|
19690
|
+
});
|
|
19691
|
+
},
|
|
19692
|
+
searchFrameworkSkills: async (_learnCard, frameworkId, query, options = {}) => {
|
|
19693
|
+
if (!userData)
|
|
19694
|
+
throw new Error("Please make an account first!");
|
|
19695
|
+
return client.skills.searchFrameworkSkills.query({
|
|
19696
|
+
id: frameworkId,
|
|
19697
|
+
query,
|
|
19698
|
+
...options
|
|
19699
|
+
});
|
|
19700
|
+
},
|
|
19701
|
+
updateSkillFramework: async (_learnCard, input) => {
|
|
19702
|
+
if (!userData)
|
|
19703
|
+
throw new Error("Please make an account first!");
|
|
19704
|
+
return client.skillFrameworks.update.mutate(input);
|
|
19705
|
+
},
|
|
19706
|
+
deleteSkillFramework: async (_learnCard, id) => {
|
|
19707
|
+
if (!userData)
|
|
19708
|
+
throw new Error("Please make an account first!");
|
|
19709
|
+
return client.skillFrameworks.delete.mutate({ id });
|
|
19710
|
+
},
|
|
19711
|
+
replaceSkillFrameworkSkills: async (_learnCard, input) => {
|
|
19712
|
+
if (!userData)
|
|
19713
|
+
throw new Error("Please make an account first!");
|
|
19714
|
+
return client.skillFrameworks.replaceSkills.mutate(input);
|
|
19715
|
+
},
|
|
19716
|
+
countSkills: async (_learnCard, input) => {
|
|
19717
|
+
if (!userData)
|
|
19718
|
+
throw new Error("Please make an account first!");
|
|
19719
|
+
return client.skills.countSkills.query(input);
|
|
19720
|
+
},
|
|
19721
|
+
getFullSkillTree: async (_learnCard, input) => {
|
|
19722
|
+
if (!userData)
|
|
19723
|
+
throw new Error("Please make an account first!");
|
|
19724
|
+
return client.skills.getFullSkillTree.query(input);
|
|
19725
|
+
},
|
|
19726
|
+
getSkillPath: async (_learnCard, input) => {
|
|
19727
|
+
if (!userData)
|
|
19728
|
+
throw new Error("Please make an account first!");
|
|
19729
|
+
return client.skills.getSkillPath.query(input);
|
|
19730
|
+
},
|
|
19731
|
+
getSkillFrameworkAdmins: async (_learnCard, frameworkId) => {
|
|
19732
|
+
if (!userData)
|
|
19733
|
+
throw new Error("Please make an account first!");
|
|
19734
|
+
return client.skillFrameworks.listFrameworkAdmins.query({ frameworkId });
|
|
19735
|
+
},
|
|
19736
|
+
addSkillFrameworkAdmin: async (_learnCard, frameworkId, profileId) => {
|
|
19737
|
+
if (!userData)
|
|
19738
|
+
throw new Error("Please make an account first!");
|
|
19739
|
+
return client.skillFrameworks.addFrameworkAdmin.mutate({ frameworkId, profileId });
|
|
19740
|
+
},
|
|
19741
|
+
removeSkillFrameworkAdmin: async (_learnCard, frameworkId, profileId) => {
|
|
19742
|
+
if (!userData)
|
|
19743
|
+
throw new Error("Please make an account first!");
|
|
19744
|
+
return client.skillFrameworks.removeFrameworkAdmin.mutate({
|
|
19745
|
+
frameworkId,
|
|
19746
|
+
profileId
|
|
19747
|
+
});
|
|
19748
|
+
},
|
|
19749
|
+
getSkill: async (_learnCard, frameworkId, skillId) => {
|
|
19750
|
+
if (!userData)
|
|
19751
|
+
throw new Error("Please make an account first!");
|
|
19752
|
+
return client.skills.getSkill.query({ frameworkId, id: skillId });
|
|
19753
|
+
},
|
|
19754
|
+
createSkill: async (_learnCard, input) => {
|
|
19755
|
+
if (!userData)
|
|
19756
|
+
throw new Error("Please make an account first!");
|
|
19757
|
+
return client.skills.create.mutate(input);
|
|
19758
|
+
},
|
|
19759
|
+
createSkills: async (_learnCard, input) => {
|
|
19760
|
+
if (!userData)
|
|
19761
|
+
throw new Error("Please make an account first!");
|
|
19762
|
+
return client.skills.createMany.mutate(input);
|
|
19763
|
+
},
|
|
19764
|
+
updateSkill: async (_learnCard, input) => {
|
|
19765
|
+
if (!userData)
|
|
19766
|
+
throw new Error("Please make an account first!");
|
|
19767
|
+
return client.skills.update.mutate(input);
|
|
19768
|
+
},
|
|
19769
|
+
deleteSkill: async (_learnCard, input) => {
|
|
19770
|
+
if (!userData)
|
|
19771
|
+
throw new Error("Please make an account first!");
|
|
19772
|
+
return client.skills.delete.mutate(input);
|
|
19773
|
+
},
|
|
18762
19774
|
addIntegration: async (_learnCard, integration) => {
|
|
18763
19775
|
await ensureUser();
|
|
18764
19776
|
return client.integrations.addIntegration.mutate(integration);
|