@learncard/network-plugin 2.6.9 → 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
package/dist/lcn-plugin.esm.js
CHANGED
|
@@ -2029,6 +2029,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
2029
2029
|
AchievementSubjectValidator: () => AchievementSubjectValidator2,
|
|
2030
2030
|
AchievementTypeValidator: () => AchievementTypeValidator2,
|
|
2031
2031
|
AchievementValidator: () => AchievementValidator2,
|
|
2032
|
+
AddTagInputValidator: () => AddTagInputValidator2,
|
|
2032
2033
|
AddressValidator: () => AddressValidator2,
|
|
2033
2034
|
AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator2,
|
|
2034
2035
|
AlignmentValidator: () => AlignmentValidator2,
|
|
@@ -2068,14 +2069,22 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
2068
2069
|
ContactMethodVerificationValidator: () => ContactMethodVerificationValidator2,
|
|
2069
2070
|
ContextValidator: () => ContextValidator2,
|
|
2070
2071
|
ContractCredentialValidator: () => ContractCredentialValidator2,
|
|
2072
|
+
CountSkillsInputValidator: () => CountSkillsInputValidator2,
|
|
2073
|
+
CountSkillsResultValidator: () => CountSkillsResultValidator2,
|
|
2071
2074
|
CreateContactMethodSessionResponseValidator: () => CreateContactMethodSessionResponseValidator2,
|
|
2072
2075
|
CreateContactMethodSessionValidator: () => CreateContactMethodSessionValidator2,
|
|
2076
|
+
CreateManagedFrameworkBatchInputValidator: () => CreateManagedFrameworkBatchInputValidator2,
|
|
2077
|
+
CreateManagedFrameworkInputValidator: () => CreateManagedFrameworkInputValidator2,
|
|
2078
|
+
CreateSkillInputValidator: () => CreateSkillInputValidator2,
|
|
2079
|
+
CreateSkillsBatchInputValidator: () => CreateSkillsBatchInputValidator2,
|
|
2073
2080
|
CredentialInfoValidator: () => CredentialInfoValidator2,
|
|
2074
2081
|
CredentialRecordValidator: () => CredentialRecordValidator2,
|
|
2075
2082
|
CredentialSchemaValidator: () => CredentialSchemaValidator2,
|
|
2076
2083
|
CredentialStatusValidator: () => CredentialStatusValidator2,
|
|
2077
2084
|
CredentialSubjectValidator: () => CredentialSubjectValidator2,
|
|
2078
2085
|
CriteriaValidator: () => CriteriaValidator2,
|
|
2086
|
+
DeleteFrameworkInputValidator: () => DeleteFrameworkInputValidator2,
|
|
2087
|
+
DeleteSkillInputValidator: () => DeleteSkillInputValidator2,
|
|
2079
2088
|
DidDocumentValidator: () => DidDocumentValidator2,
|
|
2080
2089
|
EncryptedCredentialRecordValidator: () => EncryptedCredentialRecordValidator2,
|
|
2081
2090
|
EncryptedRecordValidator: () => EncryptedRecordValidator2,
|
|
@@ -2083,8 +2092,13 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
2083
2092
|
EndorsementSubjectValidator: () => EndorsementSubjectValidator2,
|
|
2084
2093
|
EvidenceValidator: () => EvidenceValidator2,
|
|
2085
2094
|
FlatAuthGrantValidator: () => FlatAuthGrantValidator2,
|
|
2095
|
+
FrameworkWithSkillsValidator: () => FrameworkWithSkillsValidator2,
|
|
2086
2096
|
FullClaimHookValidator: () => FullClaimHookValidator2,
|
|
2087
2097
|
GeoCoordinatesValidator: () => GeoCoordinatesValidator2,
|
|
2098
|
+
GetFullSkillTreeInputValidator: () => GetFullSkillTreeInputValidator2,
|
|
2099
|
+
GetFullSkillTreeResultValidator: () => GetFullSkillTreeResultValidator2,
|
|
2100
|
+
GetSkillPathInputValidator: () => GetSkillPathInputValidator2,
|
|
2101
|
+
GetSkillPathResultValidator: () => GetSkillPathResultValidator2,
|
|
2088
2102
|
IdentifierEntryValidator: () => IdentifierEntryValidator2,
|
|
2089
2103
|
IdentifierTypeValidator: () => IdentifierTypeValidator2,
|
|
2090
2104
|
IdentityObjectValidator: () => IdentityObjectValidator2,
|
|
@@ -2123,6 +2137,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
2123
2137
|
LCNProfileValidator: () => LCNProfileValidator2,
|
|
2124
2138
|
LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator2,
|
|
2125
2139
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator2,
|
|
2140
|
+
LinkProviderFrameworkInputValidator: () => LinkProviderFrameworkInputValidator2,
|
|
2126
2141
|
PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator2,
|
|
2127
2142
|
PaginatedBoostRecipientsWithChildrenValidator: () => PaginatedBoostRecipientsWithChildrenValidator2,
|
|
2128
2143
|
PaginatedBoostsValidator: () => PaginatedBoostsValidator2,
|
|
@@ -2140,6 +2155,8 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
2140
2155
|
PaginatedLCNProfileManagersValidator: () => PaginatedLCNProfileManagersValidator2,
|
|
2141
2156
|
PaginatedLCNProfilesAndManagersValidator: () => PaginatedLCNProfilesAndManagersValidator2,
|
|
2142
2157
|
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator2,
|
|
2158
|
+
PaginatedSkillFrameworksValidator: () => PaginatedSkillFrameworksValidator2,
|
|
2159
|
+
PaginatedSkillTreeValidator: () => PaginatedSkillTreeValidator2,
|
|
2143
2160
|
PaginationOptionsValidator: () => PaginationOptionsValidator2,
|
|
2144
2161
|
PaginationResponseValidator: () => PaginationResponseValidator2,
|
|
2145
2162
|
ProfileValidator: () => ProfileValidator2,
|
|
@@ -2147,6 +2164,8 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
2147
2164
|
RefreshServiceValidator: () => RefreshServiceValidator2,
|
|
2148
2165
|
RegExpValidator: () => RegExpValidator2,
|
|
2149
2166
|
RelatedValidator: () => RelatedValidator2,
|
|
2167
|
+
ReplaceSkillFrameworkSkillsInputValidator: () => ReplaceSkillFrameworkSkillsInputValidator2,
|
|
2168
|
+
ReplaceSkillFrameworkSkillsResultValidator: () => ReplaceSkillFrameworkSkillsResultValidator2,
|
|
2150
2169
|
ResultDescriptionValidator: () => ResultDescriptionValidator2,
|
|
2151
2170
|
ResultStatusTypeValidator: () => ResultStatusTypeValidator2,
|
|
2152
2171
|
ResultTypeValidator: () => ResultTypeValidator2,
|
|
@@ -2155,11 +2174,27 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
2155
2174
|
SentCredentialInfoValidator: () => SentCredentialInfoValidator2,
|
|
2156
2175
|
ServiceValidator: () => ServiceValidator2,
|
|
2157
2176
|
SetPrimaryContactMethodValidator: () => SetPrimaryContactMethodValidator2,
|
|
2177
|
+
SkillDeletionStrategyValidator: () => SkillDeletionStrategyValidator2,
|
|
2178
|
+
SkillFrameworkAdminInputValidator: () => SkillFrameworkAdminInputValidator2,
|
|
2179
|
+
SkillFrameworkAdminsValidator: () => SkillFrameworkAdminsValidator2,
|
|
2180
|
+
SkillFrameworkIdInputValidator: () => SkillFrameworkIdInputValidator2,
|
|
2181
|
+
SkillFrameworkQueryValidator: () => SkillFrameworkQueryValidator2,
|
|
2182
|
+
SkillFrameworkStatusEnum: () => SkillFrameworkStatusEnum2,
|
|
2183
|
+
SkillFrameworkValidator: () => SkillFrameworkValidator2,
|
|
2184
|
+
SkillQueryValidator: () => SkillQueryValidator2,
|
|
2185
|
+
SkillStatusEnum: () => SkillStatusEnum2,
|
|
2186
|
+
SkillTreeNodeInputValidator: () => SkillTreeNodeInputValidator2,
|
|
2187
|
+
SkillTreeNodeValidator: () => SkillTreeNodeValidator2,
|
|
2188
|
+
SkillValidator: () => SkillValidator2,
|
|
2158
2189
|
StringQuery: () => StringQuery2,
|
|
2190
|
+
SyncFrameworkInputValidator: () => SyncFrameworkInputValidator2,
|
|
2191
|
+
TagValidator: () => TagValidator2,
|
|
2159
2192
|
TermsOfUseValidator: () => TermsOfUseValidator2,
|
|
2160
2193
|
UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator2,
|
|
2161
2194
|
UnsignedVCValidator: () => UnsignedVCValidator2,
|
|
2162
2195
|
UnsignedVPValidator: () => UnsignedVPValidator2,
|
|
2196
|
+
UpdateFrameworkInputValidator: () => UpdateFrameworkInputValidator2,
|
|
2197
|
+
UpdateSkillInputValidator: () => UpdateSkillInputValidator2,
|
|
2163
2198
|
VC2EvidenceValidator: () => VC2EvidenceValidator2,
|
|
2164
2199
|
VCValidator: () => VCValidator2,
|
|
2165
2200
|
VPValidator: () => VPValidator2,
|
|
@@ -6665,7 +6700,14 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
6665
6700
|
}
|
|
6666
6701
|
})
|
|
6667
6702
|
);
|
|
6668
|
-
var
|
|
6703
|
+
var BaseStringQuery2 = z2.string().or(z2.object({ $in: z2.string().array() })).or(z2.object({ $regex: RegExpValidator2 }));
|
|
6704
|
+
var StringQuery2 = z2.union([
|
|
6705
|
+
BaseStringQuery2,
|
|
6706
|
+
z2.object({
|
|
6707
|
+
$or: BaseStringQuery2.array()
|
|
6708
|
+
})
|
|
6709
|
+
]);
|
|
6710
|
+
extendZodWithOpenApi2(z2);
|
|
6669
6711
|
var LCNProfileDisplayValidator2 = z2.object({
|
|
6670
6712
|
backgroundColor: z2.string().optional(),
|
|
6671
6713
|
backgroundImage: z2.string().optional(),
|
|
@@ -6823,7 +6865,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
6823
6865
|
claimPermissions: BoostPermissionsValidator2.optional(),
|
|
6824
6866
|
allowAnyoneToCreateChildren: z2.boolean().optional()
|
|
6825
6867
|
});
|
|
6826
|
-
var
|
|
6868
|
+
var BaseBoostQueryValidator2 = z2.object({
|
|
6827
6869
|
uri: StringQuery2,
|
|
6828
6870
|
name: StringQuery2,
|
|
6829
6871
|
type: StringQuery2,
|
|
@@ -6832,6 +6874,12 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
6832
6874
|
status: LCNBoostStatus2.or(z2.object({ $in: LCNBoostStatus2.array() })),
|
|
6833
6875
|
autoConnectRecipients: z2.boolean()
|
|
6834
6876
|
}).partial();
|
|
6877
|
+
var BoostQueryValidator2 = z2.union([
|
|
6878
|
+
z2.object({
|
|
6879
|
+
$or: BaseBoostQueryValidator2.array()
|
|
6880
|
+
}),
|
|
6881
|
+
BaseBoostQueryValidator2
|
|
6882
|
+
]);
|
|
6835
6883
|
var PaginatedBoostsValidator2 = PaginationResponseValidator2.extend({
|
|
6836
6884
|
records: BoostValidator2.array()
|
|
6837
6885
|
});
|
|
@@ -6887,11 +6935,25 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
6887
6935
|
var ConsentFlowContractValidator2 = z2.object({
|
|
6888
6936
|
read: z2.object({
|
|
6889
6937
|
anonymize: z2.boolean().optional(),
|
|
6890
|
-
credentials: z2.object({
|
|
6938
|
+
credentials: z2.object({
|
|
6939
|
+
categories: z2.record(
|
|
6940
|
+
z2.object({
|
|
6941
|
+
required: z2.boolean(),
|
|
6942
|
+
defaultEnabled: z2.boolean().optional()
|
|
6943
|
+
})
|
|
6944
|
+
).default({})
|
|
6945
|
+
}).default({}),
|
|
6891
6946
|
personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
|
|
6892
6947
|
}).default({}),
|
|
6893
6948
|
write: z2.object({
|
|
6894
|
-
credentials: z2.object({
|
|
6949
|
+
credentials: z2.object({
|
|
6950
|
+
categories: z2.record(
|
|
6951
|
+
z2.object({
|
|
6952
|
+
required: z2.boolean(),
|
|
6953
|
+
defaultEnabled: z2.boolean().optional()
|
|
6954
|
+
})
|
|
6955
|
+
).default({})
|
|
6956
|
+
}).default({}),
|
|
6895
6957
|
personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
|
|
6896
6958
|
}).default({})
|
|
6897
6959
|
});
|
|
@@ -7034,6 +7096,17 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
7034
7096
|
var PaginatedConsentFlowTransactionsValidator2 = PaginationResponseValidator2.extend({
|
|
7035
7097
|
records: ConsentFlowTransactionValidator2.array()
|
|
7036
7098
|
});
|
|
7099
|
+
var BaseSkillFrameworkQueryValidator2 = z2.object({
|
|
7100
|
+
id: StringQuery2,
|
|
7101
|
+
name: StringQuery2,
|
|
7102
|
+
description: StringQuery2,
|
|
7103
|
+
sourceURI: StringQuery2,
|
|
7104
|
+
status: StringQuery2
|
|
7105
|
+
}).partial();
|
|
7106
|
+
var SkillFrameworkQueryValidator2 = z2.union([
|
|
7107
|
+
z2.object({ $or: BaseSkillFrameworkQueryValidator2.array() }),
|
|
7108
|
+
BaseSkillFrameworkQueryValidator2
|
|
7109
|
+
]);
|
|
7037
7110
|
var ContractCredentialValidator2 = z2.object({
|
|
7038
7111
|
credentialUri: z2.string(),
|
|
7039
7112
|
termsUri: z2.string(),
|
|
@@ -7212,31 +7285,55 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
7212
7285
|
});
|
|
7213
7286
|
var IssueInboxCredentialValidator2 = z2.object({
|
|
7214
7287
|
recipient: ContactMethodQueryValidator2.describe("The recipient of the credential"),
|
|
7215
|
-
credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe(
|
|
7288
|
+
credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe(
|
|
7289
|
+
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
7290
|
+
),
|
|
7216
7291
|
configuration: z2.object({
|
|
7217
|
-
signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe(
|
|
7292
|
+
signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe(
|
|
7293
|
+
"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."
|
|
7294
|
+
),
|
|
7218
7295
|
webhookUrl: z2.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
7219
7296
|
expiresInDays: z2.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
7220
7297
|
delivery: z2.object({
|
|
7221
|
-
suppress: z2.boolean().optional().default(false).describe(
|
|
7298
|
+
suppress: z2.boolean().optional().default(false).describe(
|
|
7299
|
+
"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."
|
|
7300
|
+
),
|
|
7222
7301
|
template: z2.object({
|
|
7223
|
-
id: z2.enum(["universal-inbox-claim"]).optional().describe(
|
|
7302
|
+
id: z2.enum(["universal-inbox-claim"]).optional().describe(
|
|
7303
|
+
"The template ID to use for the credential delivery. If not provided, the default template will be used."
|
|
7304
|
+
),
|
|
7224
7305
|
model: z2.object({
|
|
7225
7306
|
issuer: z2.object({
|
|
7226
|
-
name: z2.string().optional().describe(
|
|
7307
|
+
name: z2.string().optional().describe(
|
|
7308
|
+
'The name of the organization (e.g., "State University").'
|
|
7309
|
+
),
|
|
7227
7310
|
logoUrl: z2.string().url().optional().describe("The URL of the organization's logo.")
|
|
7228
7311
|
}).optional(),
|
|
7229
7312
|
credential: z2.object({
|
|
7230
|
-
name: z2.string().optional().describe(
|
|
7231
|
-
|
|
7313
|
+
name: z2.string().optional().describe(
|
|
7314
|
+
'The name of the credential (e.g., "Bachelor of Science").'
|
|
7315
|
+
),
|
|
7316
|
+
type: z2.string().optional().describe(
|
|
7317
|
+
'The type of the credential (e.g., "degree", "certificate").'
|
|
7318
|
+
)
|
|
7232
7319
|
}).optional(),
|
|
7233
7320
|
recipient: z2.object({
|
|
7234
|
-
name: z2.string().optional().describe(
|
|
7321
|
+
name: z2.string().optional().describe(
|
|
7322
|
+
'The name of the recipient (e.g., "John Doe").'
|
|
7323
|
+
)
|
|
7235
7324
|
}).optional()
|
|
7236
|
-
}).describe(
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
|
|
7325
|
+
}).describe(
|
|
7326
|
+
"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."
|
|
7327
|
+
)
|
|
7328
|
+
}).optional().describe(
|
|
7329
|
+
"The template to use for the credential delivery. If not provided, the default template will be used."
|
|
7330
|
+
)
|
|
7331
|
+
}).optional().describe(
|
|
7332
|
+
"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."
|
|
7333
|
+
)
|
|
7334
|
+
}).optional().describe(
|
|
7335
|
+
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
7336
|
+
)
|
|
7240
7337
|
});
|
|
7241
7338
|
var IssueInboxCredentialResponseValidator2 = z2.object({
|
|
7242
7339
|
issuanceId: z2.string(),
|
|
@@ -7298,6 +7395,191 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
7298
7395
|
expiresAt: z2.string(),
|
|
7299
7396
|
used: z2.boolean()
|
|
7300
7397
|
});
|
|
7398
|
+
var TagValidator2 = z2.object({
|
|
7399
|
+
id: z2.string(),
|
|
7400
|
+
name: z2.string().min(1),
|
|
7401
|
+
slug: z2.string().min(1),
|
|
7402
|
+
createdAt: z2.string().optional(),
|
|
7403
|
+
updatedAt: z2.string().optional()
|
|
7404
|
+
});
|
|
7405
|
+
var SkillStatusEnum2 = z2.enum(["active", "archived"]);
|
|
7406
|
+
var SkillValidator2 = z2.object({
|
|
7407
|
+
id: z2.string(),
|
|
7408
|
+
statement: z2.string(),
|
|
7409
|
+
description: z2.string().optional(),
|
|
7410
|
+
code: z2.string().optional(),
|
|
7411
|
+
icon: z2.string().optional(),
|
|
7412
|
+
type: z2.string().default("skill"),
|
|
7413
|
+
status: SkillStatusEnum2.default("active"),
|
|
7414
|
+
frameworkId: z2.string().optional(),
|
|
7415
|
+
createdAt: z2.string().optional(),
|
|
7416
|
+
updatedAt: z2.string().optional()
|
|
7417
|
+
});
|
|
7418
|
+
var BaseSkillQueryValidator2 = z2.object({
|
|
7419
|
+
id: StringQuery2,
|
|
7420
|
+
statement: StringQuery2,
|
|
7421
|
+
description: StringQuery2,
|
|
7422
|
+
code: StringQuery2,
|
|
7423
|
+
type: StringQuery2,
|
|
7424
|
+
status: SkillStatusEnum2.or(z2.object({ $in: SkillStatusEnum2.array() }))
|
|
7425
|
+
}).partial();
|
|
7426
|
+
var SkillQueryValidator2 = z2.union([
|
|
7427
|
+
z2.object({
|
|
7428
|
+
$or: BaseSkillQueryValidator2.array()
|
|
7429
|
+
}),
|
|
7430
|
+
BaseSkillQueryValidator2
|
|
7431
|
+
]);
|
|
7432
|
+
var SkillFrameworkStatusEnum2 = z2.enum(["active", "archived"]);
|
|
7433
|
+
var SkillFrameworkValidator2 = z2.object({
|
|
7434
|
+
id: z2.string(),
|
|
7435
|
+
name: z2.string(),
|
|
7436
|
+
description: z2.string().optional(),
|
|
7437
|
+
image: z2.string().optional(),
|
|
7438
|
+
sourceURI: z2.string().url().optional(),
|
|
7439
|
+
status: SkillFrameworkStatusEnum2.default("active"),
|
|
7440
|
+
createdAt: z2.string().optional(),
|
|
7441
|
+
updatedAt: z2.string().optional()
|
|
7442
|
+
});
|
|
7443
|
+
var PaginatedSkillFrameworksValidator2 = PaginationResponseValidator2.extend({
|
|
7444
|
+
records: SkillFrameworkValidator2.array()
|
|
7445
|
+
});
|
|
7446
|
+
var SkillTreeNodeValidator2 = SkillValidator2.extend({
|
|
7447
|
+
children: z2.array(z2.lazy(() => SkillTreeNodeValidator2)),
|
|
7448
|
+
hasChildren: z2.boolean(),
|
|
7449
|
+
childrenCursor: z2.string().nullable().optional()
|
|
7450
|
+
}).openapi({ ref: "SkillTreeNode" });
|
|
7451
|
+
var PaginatedSkillTreeValidator2 = z2.object({
|
|
7452
|
+
hasMore: z2.boolean(),
|
|
7453
|
+
cursor: z2.string().nullable(),
|
|
7454
|
+
records: z2.array(SkillTreeNodeValidator2)
|
|
7455
|
+
});
|
|
7456
|
+
var SkillTreeNodeInputValidator2 = z2.lazy(
|
|
7457
|
+
() => z2.object({
|
|
7458
|
+
id: z2.string().optional(),
|
|
7459
|
+
statement: z2.string(),
|
|
7460
|
+
description: z2.string().optional(),
|
|
7461
|
+
code: z2.string().optional(),
|
|
7462
|
+
icon: z2.string().optional(),
|
|
7463
|
+
type: z2.string().optional(),
|
|
7464
|
+
status: SkillStatusEnum2.optional(),
|
|
7465
|
+
children: z2.array(SkillTreeNodeInputValidator2).optional()
|
|
7466
|
+
})
|
|
7467
|
+
).openapi({ ref: "SkillTreeNodeInput" });
|
|
7468
|
+
var LinkProviderFrameworkInputValidator2 = z2.object({
|
|
7469
|
+
frameworkId: z2.string()
|
|
7470
|
+
});
|
|
7471
|
+
var CreateManagedFrameworkInputValidator2 = z2.object({
|
|
7472
|
+
id: z2.string().optional(),
|
|
7473
|
+
name: z2.string().min(1),
|
|
7474
|
+
description: z2.string().optional(),
|
|
7475
|
+
image: z2.string().optional(),
|
|
7476
|
+
sourceURI: z2.string().url().optional(),
|
|
7477
|
+
status: SkillFrameworkStatusEnum2.optional(),
|
|
7478
|
+
skills: z2.array(SkillTreeNodeInputValidator2).optional(),
|
|
7479
|
+
boostUris: z2.array(z2.string()).optional()
|
|
7480
|
+
});
|
|
7481
|
+
var UpdateFrameworkInputValidator2 = z2.object({
|
|
7482
|
+
id: z2.string(),
|
|
7483
|
+
name: z2.string().min(1).optional(),
|
|
7484
|
+
description: z2.string().optional(),
|
|
7485
|
+
image: z2.string().optional(),
|
|
7486
|
+
sourceURI: z2.string().url().optional(),
|
|
7487
|
+
status: SkillFrameworkStatusEnum2.optional()
|
|
7488
|
+
}).refine(
|
|
7489
|
+
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
|
|
7490
|
+
{
|
|
7491
|
+
message: "At least one field must be provided to update",
|
|
7492
|
+
path: ["name"]
|
|
7493
|
+
}
|
|
7494
|
+
);
|
|
7495
|
+
var DeleteFrameworkInputValidator2 = z2.object({ id: z2.string() });
|
|
7496
|
+
var CreateManagedFrameworkBatchInputValidator2 = z2.object({
|
|
7497
|
+
frameworks: z2.array(
|
|
7498
|
+
CreateManagedFrameworkInputValidator2.extend({
|
|
7499
|
+
skills: z2.array(SkillTreeNodeInputValidator2).optional()
|
|
7500
|
+
})
|
|
7501
|
+
).min(1)
|
|
7502
|
+
});
|
|
7503
|
+
var SkillFrameworkAdminInputValidator2 = z2.object({
|
|
7504
|
+
frameworkId: z2.string(),
|
|
7505
|
+
profileId: z2.string()
|
|
7506
|
+
});
|
|
7507
|
+
var SkillFrameworkIdInputValidator2 = z2.object({ frameworkId: z2.string() });
|
|
7508
|
+
var SkillFrameworkAdminsValidator2 = LCNProfileValidator2.array();
|
|
7509
|
+
var SyncFrameworkInputValidator2 = z2.object({ id: z2.string() });
|
|
7510
|
+
var AddTagInputValidator2 = z2.object({
|
|
7511
|
+
slug: z2.string().min(1),
|
|
7512
|
+
name: z2.string().min(1)
|
|
7513
|
+
});
|
|
7514
|
+
var CreateSkillInputValidator2 = z2.object({
|
|
7515
|
+
frameworkId: z2.string(),
|
|
7516
|
+
skill: SkillTreeNodeInputValidator2,
|
|
7517
|
+
parentId: z2.string().nullable().optional()
|
|
7518
|
+
});
|
|
7519
|
+
var UpdateSkillInputValidator2 = z2.object({
|
|
7520
|
+
frameworkId: z2.string(),
|
|
7521
|
+
id: z2.string(),
|
|
7522
|
+
statement: z2.string().optional(),
|
|
7523
|
+
description: z2.string().optional(),
|
|
7524
|
+
code: z2.string().optional(),
|
|
7525
|
+
icon: z2.string().optional(),
|
|
7526
|
+
type: z2.string().optional(),
|
|
7527
|
+
status: SkillStatusEnum2.optional()
|
|
7528
|
+
}).refine(
|
|
7529
|
+
(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,
|
|
7530
|
+
{
|
|
7531
|
+
message: "At least one field must be provided to update a skill",
|
|
7532
|
+
path: ["statement"]
|
|
7533
|
+
}
|
|
7534
|
+
);
|
|
7535
|
+
var SkillDeletionStrategyValidator2 = z2.enum(["recursive", "reparent"]);
|
|
7536
|
+
var DeleteSkillInputValidator2 = z2.object({
|
|
7537
|
+
frameworkId: z2.string(),
|
|
7538
|
+
id: z2.string(),
|
|
7539
|
+
strategy: SkillDeletionStrategyValidator2.optional().default("reparent")
|
|
7540
|
+
});
|
|
7541
|
+
var CreateSkillsBatchInputValidator2 = z2.object({
|
|
7542
|
+
frameworkId: z2.string(),
|
|
7543
|
+
skills: z2.array(SkillTreeNodeInputValidator2).min(1),
|
|
7544
|
+
parentId: z2.string().nullable().optional()
|
|
7545
|
+
});
|
|
7546
|
+
var ReplaceSkillFrameworkSkillsInputValidator2 = z2.object({
|
|
7547
|
+
frameworkId: z2.string(),
|
|
7548
|
+
skills: z2.array(SkillTreeNodeInputValidator2).min(0)
|
|
7549
|
+
});
|
|
7550
|
+
var ReplaceSkillFrameworkSkillsResultValidator2 = z2.object({
|
|
7551
|
+
created: z2.number().int().min(0),
|
|
7552
|
+
updated: z2.number().int().min(0),
|
|
7553
|
+
deleted: z2.number().int().min(0),
|
|
7554
|
+
unchanged: z2.number().int().min(0),
|
|
7555
|
+
total: z2.number().int().min(0)
|
|
7556
|
+
});
|
|
7557
|
+
var CountSkillsInputValidator2 = z2.object({
|
|
7558
|
+
frameworkId: z2.string(),
|
|
7559
|
+
skillId: z2.string().optional(),
|
|
7560
|
+
recursive: z2.boolean().optional().default(false),
|
|
7561
|
+
onlyCountCompetencies: z2.boolean().optional().default(false)
|
|
7562
|
+
});
|
|
7563
|
+
var CountSkillsResultValidator2 = z2.object({
|
|
7564
|
+
count: z2.number().int().min(0)
|
|
7565
|
+
});
|
|
7566
|
+
var GetFullSkillTreeInputValidator2 = z2.object({
|
|
7567
|
+
frameworkId: z2.string()
|
|
7568
|
+
});
|
|
7569
|
+
var GetFullSkillTreeResultValidator2 = z2.object({
|
|
7570
|
+
skills: z2.array(SkillTreeNodeValidator2)
|
|
7571
|
+
});
|
|
7572
|
+
var GetSkillPathInputValidator2 = z2.object({
|
|
7573
|
+
frameworkId: z2.string(),
|
|
7574
|
+
skillId: z2.string()
|
|
7575
|
+
});
|
|
7576
|
+
var GetSkillPathResultValidator2 = z2.object({
|
|
7577
|
+
path: z2.array(SkillValidator2)
|
|
7578
|
+
});
|
|
7579
|
+
var FrameworkWithSkillsValidator2 = z2.object({
|
|
7580
|
+
framework: SkillFrameworkValidator2,
|
|
7581
|
+
skills: PaginatedSkillTreeValidator2
|
|
7582
|
+
});
|
|
7301
7583
|
}
|
|
7302
7584
|
});
|
|
7303
7585
|
var require_dist22 = __commonJS22({
|
|
@@ -7315,7 +7597,8 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
7315
7597
|
RegExpTransformer: () => RegExpTransformer2,
|
|
7316
7598
|
isEncrypted: () => isEncrypted,
|
|
7317
7599
|
isHex: () => isHex,
|
|
7318
|
-
isVC2Format: () => isVC2Format2
|
|
7600
|
+
isVC2Format: () => isVC2Format2,
|
|
7601
|
+
unwrapBoostCredential: () => unwrapBoostCredential
|
|
7319
7602
|
});
|
|
7320
7603
|
module.exports = __toCommonJS(src_exports);
|
|
7321
7604
|
var import_types3 = __toESM22(require_dist22());
|
|
@@ -7356,6 +7639,13 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
7356
7639
|
}
|
|
7357
7640
|
return credential["@context"].includes("https://www.w3.org/ns/credentials/v2");
|
|
7358
7641
|
}, "isVC2Format");
|
|
7642
|
+
var unwrapBoostCredential = /* @__PURE__ */ __name22((vc) => {
|
|
7643
|
+
if (vc?.type?.includes("CertifiedBoostCredential") && vc?.boostCredential) {
|
|
7644
|
+
return vc.boostCredential;
|
|
7645
|
+
} else {
|
|
7646
|
+
return vc;
|
|
7647
|
+
}
|
|
7648
|
+
}, "unwrapBoostCredential");
|
|
7359
7649
|
}
|
|
7360
7650
|
});
|
|
7361
7651
|
var require_dist = __commonJS({
|
|
@@ -11901,7 +12191,14 @@ var RegExpValidator = z.instanceof(RegExp).or(
|
|
|
11901
12191
|
}
|
|
11902
12192
|
})
|
|
11903
12193
|
);
|
|
11904
|
-
var
|
|
12194
|
+
var BaseStringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
|
|
12195
|
+
var StringQuery = z.union([
|
|
12196
|
+
BaseStringQuery,
|
|
12197
|
+
z.object({
|
|
12198
|
+
$or: BaseStringQuery.array()
|
|
12199
|
+
})
|
|
12200
|
+
]);
|
|
12201
|
+
extendZodWithOpenApi(z);
|
|
11905
12202
|
var LCNProfileDisplayValidator = z.object({
|
|
11906
12203
|
backgroundColor: z.string().optional(),
|
|
11907
12204
|
backgroundImage: z.string().optional(),
|
|
@@ -12059,7 +12356,7 @@ var BoostValidator = z.object({
|
|
|
12059
12356
|
claimPermissions: BoostPermissionsValidator.optional(),
|
|
12060
12357
|
allowAnyoneToCreateChildren: z.boolean().optional()
|
|
12061
12358
|
});
|
|
12062
|
-
var
|
|
12359
|
+
var BaseBoostQueryValidator = z.object({
|
|
12063
12360
|
uri: StringQuery,
|
|
12064
12361
|
name: StringQuery,
|
|
12065
12362
|
type: StringQuery,
|
|
@@ -12068,6 +12365,12 @@ var BoostQueryValidator = z.object({
|
|
|
12068
12365
|
status: LCNBoostStatus.or(z.object({ $in: LCNBoostStatus.array() })),
|
|
12069
12366
|
autoConnectRecipients: z.boolean()
|
|
12070
12367
|
}).partial();
|
|
12368
|
+
var BoostQueryValidator = z.union([
|
|
12369
|
+
z.object({
|
|
12370
|
+
$or: BaseBoostQueryValidator.array()
|
|
12371
|
+
}),
|
|
12372
|
+
BaseBoostQueryValidator
|
|
12373
|
+
]);
|
|
12071
12374
|
var PaginatedBoostsValidator = PaginationResponseValidator.extend({
|
|
12072
12375
|
records: BoostValidator.array()
|
|
12073
12376
|
});
|
|
@@ -12123,11 +12426,25 @@ var ConsentFlowTermsStatusValidator = z.enum(["live", "stale", "withdrawn"]);
|
|
|
12123
12426
|
var ConsentFlowContractValidator = z.object({
|
|
12124
12427
|
read: z.object({
|
|
12125
12428
|
anonymize: z.boolean().optional(),
|
|
12126
|
-
credentials: z.object({
|
|
12429
|
+
credentials: z.object({
|
|
12430
|
+
categories: z.record(
|
|
12431
|
+
z.object({
|
|
12432
|
+
required: z.boolean(),
|
|
12433
|
+
defaultEnabled: z.boolean().optional()
|
|
12434
|
+
})
|
|
12435
|
+
).default({})
|
|
12436
|
+
}).default({}),
|
|
12127
12437
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
12128
12438
|
}).default({}),
|
|
12129
12439
|
write: z.object({
|
|
12130
|
-
credentials: z.object({
|
|
12440
|
+
credentials: z.object({
|
|
12441
|
+
categories: z.record(
|
|
12442
|
+
z.object({
|
|
12443
|
+
required: z.boolean(),
|
|
12444
|
+
defaultEnabled: z.boolean().optional()
|
|
12445
|
+
})
|
|
12446
|
+
).default({})
|
|
12447
|
+
}).default({}),
|
|
12131
12448
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
12132
12449
|
}).default({})
|
|
12133
12450
|
});
|
|
@@ -12270,6 +12587,17 @@ var ConsentFlowTransactionValidator = z.object({
|
|
|
12270
12587
|
var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
|
|
12271
12588
|
records: ConsentFlowTransactionValidator.array()
|
|
12272
12589
|
});
|
|
12590
|
+
var BaseSkillFrameworkQueryValidator = z.object({
|
|
12591
|
+
id: StringQuery,
|
|
12592
|
+
name: StringQuery,
|
|
12593
|
+
description: StringQuery,
|
|
12594
|
+
sourceURI: StringQuery,
|
|
12595
|
+
status: StringQuery
|
|
12596
|
+
}).partial();
|
|
12597
|
+
var SkillFrameworkQueryValidator = z.union([
|
|
12598
|
+
z.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
|
|
12599
|
+
BaseSkillFrameworkQueryValidator
|
|
12600
|
+
]);
|
|
12273
12601
|
var ContractCredentialValidator = z.object({
|
|
12274
12602
|
credentialUri: z.string(),
|
|
12275
12603
|
termsUri: z.string(),
|
|
@@ -12448,31 +12776,55 @@ var IssueInboxSigningAuthorityValidator = z.object({
|
|
|
12448
12776
|
});
|
|
12449
12777
|
var IssueInboxCredentialValidator = z.object({
|
|
12450
12778
|
recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
|
|
12451
|
-
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
12779
|
+
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
12780
|
+
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
12781
|
+
),
|
|
12452
12782
|
configuration: z.object({
|
|
12453
|
-
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
12783
|
+
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
12784
|
+
"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."
|
|
12785
|
+
),
|
|
12454
12786
|
webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
12455
12787
|
expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
12456
12788
|
delivery: z.object({
|
|
12457
|
-
suppress: z.boolean().optional().default(false).describe(
|
|
12789
|
+
suppress: z.boolean().optional().default(false).describe(
|
|
12790
|
+
"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."
|
|
12791
|
+
),
|
|
12458
12792
|
template: z.object({
|
|
12459
|
-
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
12793
|
+
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
12794
|
+
"The template ID to use for the credential delivery. If not provided, the default template will be used."
|
|
12795
|
+
),
|
|
12460
12796
|
model: z.object({
|
|
12461
12797
|
issuer: z.object({
|
|
12462
|
-
name: z.string().optional().describe(
|
|
12798
|
+
name: z.string().optional().describe(
|
|
12799
|
+
'The name of the organization (e.g., "State University").'
|
|
12800
|
+
),
|
|
12463
12801
|
logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
|
|
12464
12802
|
}).optional(),
|
|
12465
12803
|
credential: z.object({
|
|
12466
|
-
name: z.string().optional().describe(
|
|
12467
|
-
|
|
12804
|
+
name: z.string().optional().describe(
|
|
12805
|
+
'The name of the credential (e.g., "Bachelor of Science").'
|
|
12806
|
+
),
|
|
12807
|
+
type: z.string().optional().describe(
|
|
12808
|
+
'The type of the credential (e.g., "degree", "certificate").'
|
|
12809
|
+
)
|
|
12468
12810
|
}).optional(),
|
|
12469
12811
|
recipient: z.object({
|
|
12470
|
-
name: z.string().optional().describe(
|
|
12812
|
+
name: z.string().optional().describe(
|
|
12813
|
+
'The name of the recipient (e.g., "John Doe").'
|
|
12814
|
+
)
|
|
12471
12815
|
}).optional()
|
|
12472
|
-
}).describe(
|
|
12473
|
-
|
|
12474
|
-
|
|
12475
|
-
|
|
12816
|
+
}).describe(
|
|
12817
|
+
"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."
|
|
12818
|
+
)
|
|
12819
|
+
}).optional().describe(
|
|
12820
|
+
"The template to use for the credential delivery. If not provided, the default template will be used."
|
|
12821
|
+
)
|
|
12822
|
+
}).optional().describe(
|
|
12823
|
+
"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."
|
|
12824
|
+
)
|
|
12825
|
+
}).optional().describe(
|
|
12826
|
+
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
12827
|
+
)
|
|
12476
12828
|
});
|
|
12477
12829
|
var IssueInboxCredentialResponseValidator = z.object({
|
|
12478
12830
|
issuanceId: z.string(),
|
|
@@ -12534,6 +12886,191 @@ var ClaimTokenValidator = z.object({
|
|
|
12534
12886
|
expiresAt: z.string(),
|
|
12535
12887
|
used: z.boolean()
|
|
12536
12888
|
});
|
|
12889
|
+
var TagValidator = z.object({
|
|
12890
|
+
id: z.string(),
|
|
12891
|
+
name: z.string().min(1),
|
|
12892
|
+
slug: z.string().min(1),
|
|
12893
|
+
createdAt: z.string().optional(),
|
|
12894
|
+
updatedAt: z.string().optional()
|
|
12895
|
+
});
|
|
12896
|
+
var SkillStatusEnum = z.enum(["active", "archived"]);
|
|
12897
|
+
var SkillValidator = z.object({
|
|
12898
|
+
id: z.string(),
|
|
12899
|
+
statement: z.string(),
|
|
12900
|
+
description: z.string().optional(),
|
|
12901
|
+
code: z.string().optional(),
|
|
12902
|
+
icon: z.string().optional(),
|
|
12903
|
+
type: z.string().default("skill"),
|
|
12904
|
+
status: SkillStatusEnum.default("active"),
|
|
12905
|
+
frameworkId: z.string().optional(),
|
|
12906
|
+
createdAt: z.string().optional(),
|
|
12907
|
+
updatedAt: z.string().optional()
|
|
12908
|
+
});
|
|
12909
|
+
var BaseSkillQueryValidator = z.object({
|
|
12910
|
+
id: StringQuery,
|
|
12911
|
+
statement: StringQuery,
|
|
12912
|
+
description: StringQuery,
|
|
12913
|
+
code: StringQuery,
|
|
12914
|
+
type: StringQuery,
|
|
12915
|
+
status: SkillStatusEnum.or(z.object({ $in: SkillStatusEnum.array() }))
|
|
12916
|
+
}).partial();
|
|
12917
|
+
var SkillQueryValidator = z.union([
|
|
12918
|
+
z.object({
|
|
12919
|
+
$or: BaseSkillQueryValidator.array()
|
|
12920
|
+
}),
|
|
12921
|
+
BaseSkillQueryValidator
|
|
12922
|
+
]);
|
|
12923
|
+
var SkillFrameworkStatusEnum = z.enum(["active", "archived"]);
|
|
12924
|
+
var SkillFrameworkValidator = z.object({
|
|
12925
|
+
id: z.string(),
|
|
12926
|
+
name: z.string(),
|
|
12927
|
+
description: z.string().optional(),
|
|
12928
|
+
image: z.string().optional(),
|
|
12929
|
+
sourceURI: z.string().url().optional(),
|
|
12930
|
+
status: SkillFrameworkStatusEnum.default("active"),
|
|
12931
|
+
createdAt: z.string().optional(),
|
|
12932
|
+
updatedAt: z.string().optional()
|
|
12933
|
+
});
|
|
12934
|
+
var PaginatedSkillFrameworksValidator = PaginationResponseValidator.extend({
|
|
12935
|
+
records: SkillFrameworkValidator.array()
|
|
12936
|
+
});
|
|
12937
|
+
var SkillTreeNodeValidator = SkillValidator.extend({
|
|
12938
|
+
children: z.array(z.lazy(() => SkillTreeNodeValidator)),
|
|
12939
|
+
hasChildren: z.boolean(),
|
|
12940
|
+
childrenCursor: z.string().nullable().optional()
|
|
12941
|
+
}).openapi({ ref: "SkillTreeNode" });
|
|
12942
|
+
var PaginatedSkillTreeValidator = z.object({
|
|
12943
|
+
hasMore: z.boolean(),
|
|
12944
|
+
cursor: z.string().nullable(),
|
|
12945
|
+
records: z.array(SkillTreeNodeValidator)
|
|
12946
|
+
});
|
|
12947
|
+
var SkillTreeNodeInputValidator = z.lazy(
|
|
12948
|
+
() => z.object({
|
|
12949
|
+
id: z.string().optional(),
|
|
12950
|
+
statement: z.string(),
|
|
12951
|
+
description: z.string().optional(),
|
|
12952
|
+
code: z.string().optional(),
|
|
12953
|
+
icon: z.string().optional(),
|
|
12954
|
+
type: z.string().optional(),
|
|
12955
|
+
status: SkillStatusEnum.optional(),
|
|
12956
|
+
children: z.array(SkillTreeNodeInputValidator).optional()
|
|
12957
|
+
})
|
|
12958
|
+
).openapi({ ref: "SkillTreeNodeInput" });
|
|
12959
|
+
var LinkProviderFrameworkInputValidator = z.object({
|
|
12960
|
+
frameworkId: z.string()
|
|
12961
|
+
});
|
|
12962
|
+
var CreateManagedFrameworkInputValidator = z.object({
|
|
12963
|
+
id: z.string().optional(),
|
|
12964
|
+
name: z.string().min(1),
|
|
12965
|
+
description: z.string().optional(),
|
|
12966
|
+
image: z.string().optional(),
|
|
12967
|
+
sourceURI: z.string().url().optional(),
|
|
12968
|
+
status: SkillFrameworkStatusEnum.optional(),
|
|
12969
|
+
skills: z.array(SkillTreeNodeInputValidator).optional(),
|
|
12970
|
+
boostUris: z.array(z.string()).optional()
|
|
12971
|
+
});
|
|
12972
|
+
var UpdateFrameworkInputValidator = z.object({
|
|
12973
|
+
id: z.string(),
|
|
12974
|
+
name: z.string().min(1).optional(),
|
|
12975
|
+
description: z.string().optional(),
|
|
12976
|
+
image: z.string().optional(),
|
|
12977
|
+
sourceURI: z.string().url().optional(),
|
|
12978
|
+
status: SkillFrameworkStatusEnum.optional()
|
|
12979
|
+
}).refine(
|
|
12980
|
+
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
|
|
12981
|
+
{
|
|
12982
|
+
message: "At least one field must be provided to update",
|
|
12983
|
+
path: ["name"]
|
|
12984
|
+
}
|
|
12985
|
+
);
|
|
12986
|
+
var DeleteFrameworkInputValidator = z.object({ id: z.string() });
|
|
12987
|
+
var CreateManagedFrameworkBatchInputValidator = z.object({
|
|
12988
|
+
frameworks: z.array(
|
|
12989
|
+
CreateManagedFrameworkInputValidator.extend({
|
|
12990
|
+
skills: z.array(SkillTreeNodeInputValidator).optional()
|
|
12991
|
+
})
|
|
12992
|
+
).min(1)
|
|
12993
|
+
});
|
|
12994
|
+
var SkillFrameworkAdminInputValidator = z.object({
|
|
12995
|
+
frameworkId: z.string(),
|
|
12996
|
+
profileId: z.string()
|
|
12997
|
+
});
|
|
12998
|
+
var SkillFrameworkIdInputValidator = z.object({ frameworkId: z.string() });
|
|
12999
|
+
var SkillFrameworkAdminsValidator = LCNProfileValidator.array();
|
|
13000
|
+
var SyncFrameworkInputValidator = z.object({ id: z.string() });
|
|
13001
|
+
var AddTagInputValidator = z.object({
|
|
13002
|
+
slug: z.string().min(1),
|
|
13003
|
+
name: z.string().min(1)
|
|
13004
|
+
});
|
|
13005
|
+
var CreateSkillInputValidator = z.object({
|
|
13006
|
+
frameworkId: z.string(),
|
|
13007
|
+
skill: SkillTreeNodeInputValidator,
|
|
13008
|
+
parentId: z.string().nullable().optional()
|
|
13009
|
+
});
|
|
13010
|
+
var UpdateSkillInputValidator = z.object({
|
|
13011
|
+
frameworkId: z.string(),
|
|
13012
|
+
id: z.string(),
|
|
13013
|
+
statement: z.string().optional(),
|
|
13014
|
+
description: z.string().optional(),
|
|
13015
|
+
code: z.string().optional(),
|
|
13016
|
+
icon: z.string().optional(),
|
|
13017
|
+
type: z.string().optional(),
|
|
13018
|
+
status: SkillStatusEnum.optional()
|
|
13019
|
+
}).refine(
|
|
13020
|
+
(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,
|
|
13021
|
+
{
|
|
13022
|
+
message: "At least one field must be provided to update a skill",
|
|
13023
|
+
path: ["statement"]
|
|
13024
|
+
}
|
|
13025
|
+
);
|
|
13026
|
+
var SkillDeletionStrategyValidator = z.enum(["recursive", "reparent"]);
|
|
13027
|
+
var DeleteSkillInputValidator = z.object({
|
|
13028
|
+
frameworkId: z.string(),
|
|
13029
|
+
id: z.string(),
|
|
13030
|
+
strategy: SkillDeletionStrategyValidator.optional().default("reparent")
|
|
13031
|
+
});
|
|
13032
|
+
var CreateSkillsBatchInputValidator = z.object({
|
|
13033
|
+
frameworkId: z.string(),
|
|
13034
|
+
skills: z.array(SkillTreeNodeInputValidator).min(1),
|
|
13035
|
+
parentId: z.string().nullable().optional()
|
|
13036
|
+
});
|
|
13037
|
+
var ReplaceSkillFrameworkSkillsInputValidator = z.object({
|
|
13038
|
+
frameworkId: z.string(),
|
|
13039
|
+
skills: z.array(SkillTreeNodeInputValidator).min(0)
|
|
13040
|
+
});
|
|
13041
|
+
var ReplaceSkillFrameworkSkillsResultValidator = z.object({
|
|
13042
|
+
created: z.number().int().min(0),
|
|
13043
|
+
updated: z.number().int().min(0),
|
|
13044
|
+
deleted: z.number().int().min(0),
|
|
13045
|
+
unchanged: z.number().int().min(0),
|
|
13046
|
+
total: z.number().int().min(0)
|
|
13047
|
+
});
|
|
13048
|
+
var CountSkillsInputValidator = z.object({
|
|
13049
|
+
frameworkId: z.string(),
|
|
13050
|
+
skillId: z.string().optional(),
|
|
13051
|
+
recursive: z.boolean().optional().default(false),
|
|
13052
|
+
onlyCountCompetencies: z.boolean().optional().default(false)
|
|
13053
|
+
});
|
|
13054
|
+
var CountSkillsResultValidator = z.object({
|
|
13055
|
+
count: z.number().int().min(0)
|
|
13056
|
+
});
|
|
13057
|
+
var GetFullSkillTreeInputValidator = z.object({
|
|
13058
|
+
frameworkId: z.string()
|
|
13059
|
+
});
|
|
13060
|
+
var GetFullSkillTreeResultValidator = z.object({
|
|
13061
|
+
skills: z.array(SkillTreeNodeValidator)
|
|
13062
|
+
});
|
|
13063
|
+
var GetSkillPathInputValidator = z.object({
|
|
13064
|
+
frameworkId: z.string(),
|
|
13065
|
+
skillId: z.string()
|
|
13066
|
+
});
|
|
13067
|
+
var GetSkillPathResultValidator = z.object({
|
|
13068
|
+
path: z.array(SkillValidator)
|
|
13069
|
+
});
|
|
13070
|
+
var FrameworkWithSkillsValidator = z.object({
|
|
13071
|
+
framework: SkillFrameworkValidator,
|
|
13072
|
+
skills: PaginatedSkillTreeValidator
|
|
13073
|
+
});
|
|
12537
13074
|
|
|
12538
13075
|
// ../../learn-card-helpers/dist/helpers.esm.js
|
|
12539
13076
|
var __create2 = Object.create;
|
|
@@ -12587,6 +13124,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12587
13124
|
AchievementSubjectValidator: () => AchievementSubjectValidator2,
|
|
12588
13125
|
AchievementTypeValidator: () => AchievementTypeValidator2,
|
|
12589
13126
|
AchievementValidator: () => AchievementValidator2,
|
|
13127
|
+
AddTagInputValidator: () => AddTagInputValidator2,
|
|
12590
13128
|
AddressValidator: () => AddressValidator2,
|
|
12591
13129
|
AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator2,
|
|
12592
13130
|
AlignmentValidator: () => AlignmentValidator2,
|
|
@@ -12626,14 +13164,22 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12626
13164
|
ContactMethodVerificationValidator: () => ContactMethodVerificationValidator2,
|
|
12627
13165
|
ContextValidator: () => ContextValidator2,
|
|
12628
13166
|
ContractCredentialValidator: () => ContractCredentialValidator2,
|
|
13167
|
+
CountSkillsInputValidator: () => CountSkillsInputValidator2,
|
|
13168
|
+
CountSkillsResultValidator: () => CountSkillsResultValidator2,
|
|
12629
13169
|
CreateContactMethodSessionResponseValidator: () => CreateContactMethodSessionResponseValidator2,
|
|
12630
13170
|
CreateContactMethodSessionValidator: () => CreateContactMethodSessionValidator2,
|
|
13171
|
+
CreateManagedFrameworkBatchInputValidator: () => CreateManagedFrameworkBatchInputValidator2,
|
|
13172
|
+
CreateManagedFrameworkInputValidator: () => CreateManagedFrameworkInputValidator2,
|
|
13173
|
+
CreateSkillInputValidator: () => CreateSkillInputValidator2,
|
|
13174
|
+
CreateSkillsBatchInputValidator: () => CreateSkillsBatchInputValidator2,
|
|
12631
13175
|
CredentialInfoValidator: () => CredentialInfoValidator2,
|
|
12632
13176
|
CredentialRecordValidator: () => CredentialRecordValidator2,
|
|
12633
13177
|
CredentialSchemaValidator: () => CredentialSchemaValidator2,
|
|
12634
13178
|
CredentialStatusValidator: () => CredentialStatusValidator2,
|
|
12635
13179
|
CredentialSubjectValidator: () => CredentialSubjectValidator2,
|
|
12636
13180
|
CriteriaValidator: () => CriteriaValidator2,
|
|
13181
|
+
DeleteFrameworkInputValidator: () => DeleteFrameworkInputValidator2,
|
|
13182
|
+
DeleteSkillInputValidator: () => DeleteSkillInputValidator2,
|
|
12637
13183
|
DidDocumentValidator: () => DidDocumentValidator2,
|
|
12638
13184
|
EncryptedCredentialRecordValidator: () => EncryptedCredentialRecordValidator2,
|
|
12639
13185
|
EncryptedRecordValidator: () => EncryptedRecordValidator2,
|
|
@@ -12641,8 +13187,13 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12641
13187
|
EndorsementSubjectValidator: () => EndorsementSubjectValidator2,
|
|
12642
13188
|
EvidenceValidator: () => EvidenceValidator2,
|
|
12643
13189
|
FlatAuthGrantValidator: () => FlatAuthGrantValidator2,
|
|
13190
|
+
FrameworkWithSkillsValidator: () => FrameworkWithSkillsValidator2,
|
|
12644
13191
|
FullClaimHookValidator: () => FullClaimHookValidator2,
|
|
12645
13192
|
GeoCoordinatesValidator: () => GeoCoordinatesValidator2,
|
|
13193
|
+
GetFullSkillTreeInputValidator: () => GetFullSkillTreeInputValidator2,
|
|
13194
|
+
GetFullSkillTreeResultValidator: () => GetFullSkillTreeResultValidator2,
|
|
13195
|
+
GetSkillPathInputValidator: () => GetSkillPathInputValidator2,
|
|
13196
|
+
GetSkillPathResultValidator: () => GetSkillPathResultValidator2,
|
|
12646
13197
|
IdentifierEntryValidator: () => IdentifierEntryValidator2,
|
|
12647
13198
|
IdentifierTypeValidator: () => IdentifierTypeValidator2,
|
|
12648
13199
|
IdentityObjectValidator: () => IdentityObjectValidator2,
|
|
@@ -12681,6 +13232,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12681
13232
|
LCNProfileValidator: () => LCNProfileValidator2,
|
|
12682
13233
|
LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator2,
|
|
12683
13234
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator2,
|
|
13235
|
+
LinkProviderFrameworkInputValidator: () => LinkProviderFrameworkInputValidator2,
|
|
12684
13236
|
PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator2,
|
|
12685
13237
|
PaginatedBoostRecipientsWithChildrenValidator: () => PaginatedBoostRecipientsWithChildrenValidator2,
|
|
12686
13238
|
PaginatedBoostsValidator: () => PaginatedBoostsValidator2,
|
|
@@ -12698,6 +13250,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12698
13250
|
PaginatedLCNProfileManagersValidator: () => PaginatedLCNProfileManagersValidator2,
|
|
12699
13251
|
PaginatedLCNProfilesAndManagersValidator: () => PaginatedLCNProfilesAndManagersValidator2,
|
|
12700
13252
|
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator2,
|
|
13253
|
+
PaginatedSkillFrameworksValidator: () => PaginatedSkillFrameworksValidator2,
|
|
13254
|
+
PaginatedSkillTreeValidator: () => PaginatedSkillTreeValidator2,
|
|
12701
13255
|
PaginationOptionsValidator: () => PaginationOptionsValidator2,
|
|
12702
13256
|
PaginationResponseValidator: () => PaginationResponseValidator2,
|
|
12703
13257
|
ProfileValidator: () => ProfileValidator2,
|
|
@@ -12705,6 +13259,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12705
13259
|
RefreshServiceValidator: () => RefreshServiceValidator2,
|
|
12706
13260
|
RegExpValidator: () => RegExpValidator2,
|
|
12707
13261
|
RelatedValidator: () => RelatedValidator2,
|
|
13262
|
+
ReplaceSkillFrameworkSkillsInputValidator: () => ReplaceSkillFrameworkSkillsInputValidator2,
|
|
13263
|
+
ReplaceSkillFrameworkSkillsResultValidator: () => ReplaceSkillFrameworkSkillsResultValidator2,
|
|
12708
13264
|
ResultDescriptionValidator: () => ResultDescriptionValidator2,
|
|
12709
13265
|
ResultStatusTypeValidator: () => ResultStatusTypeValidator2,
|
|
12710
13266
|
ResultTypeValidator: () => ResultTypeValidator2,
|
|
@@ -12713,11 +13269,27 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12713
13269
|
SentCredentialInfoValidator: () => SentCredentialInfoValidator2,
|
|
12714
13270
|
ServiceValidator: () => ServiceValidator2,
|
|
12715
13271
|
SetPrimaryContactMethodValidator: () => SetPrimaryContactMethodValidator2,
|
|
13272
|
+
SkillDeletionStrategyValidator: () => SkillDeletionStrategyValidator2,
|
|
13273
|
+
SkillFrameworkAdminInputValidator: () => SkillFrameworkAdminInputValidator2,
|
|
13274
|
+
SkillFrameworkAdminsValidator: () => SkillFrameworkAdminsValidator2,
|
|
13275
|
+
SkillFrameworkIdInputValidator: () => SkillFrameworkIdInputValidator2,
|
|
13276
|
+
SkillFrameworkQueryValidator: () => SkillFrameworkQueryValidator2,
|
|
13277
|
+
SkillFrameworkStatusEnum: () => SkillFrameworkStatusEnum2,
|
|
13278
|
+
SkillFrameworkValidator: () => SkillFrameworkValidator2,
|
|
13279
|
+
SkillQueryValidator: () => SkillQueryValidator2,
|
|
13280
|
+
SkillStatusEnum: () => SkillStatusEnum2,
|
|
13281
|
+
SkillTreeNodeInputValidator: () => SkillTreeNodeInputValidator2,
|
|
13282
|
+
SkillTreeNodeValidator: () => SkillTreeNodeValidator2,
|
|
13283
|
+
SkillValidator: () => SkillValidator2,
|
|
12716
13284
|
StringQuery: () => StringQuery2,
|
|
13285
|
+
SyncFrameworkInputValidator: () => SyncFrameworkInputValidator2,
|
|
13286
|
+
TagValidator: () => TagValidator2,
|
|
12717
13287
|
TermsOfUseValidator: () => TermsOfUseValidator2,
|
|
12718
13288
|
UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator2,
|
|
12719
13289
|
UnsignedVCValidator: () => UnsignedVCValidator2,
|
|
12720
13290
|
UnsignedVPValidator: () => UnsignedVPValidator2,
|
|
13291
|
+
UpdateFrameworkInputValidator: () => UpdateFrameworkInputValidator2,
|
|
13292
|
+
UpdateSkillInputValidator: () => UpdateSkillInputValidator2,
|
|
12721
13293
|
VC2EvidenceValidator: () => VC2EvidenceValidator2,
|
|
12722
13294
|
VCValidator: () => VCValidator2,
|
|
12723
13295
|
VPValidator: () => VPValidator2,
|
|
@@ -17200,7 +17772,14 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17200
17772
|
}
|
|
17201
17773
|
})
|
|
17202
17774
|
);
|
|
17203
|
-
var
|
|
17775
|
+
var BaseStringQuery2 = z2.string().or(z2.object({ $in: z2.string().array() })).or(z2.object({ $regex: RegExpValidator2 }));
|
|
17776
|
+
var StringQuery2 = z2.union([
|
|
17777
|
+
BaseStringQuery2,
|
|
17778
|
+
z2.object({
|
|
17779
|
+
$or: BaseStringQuery2.array()
|
|
17780
|
+
})
|
|
17781
|
+
]);
|
|
17782
|
+
extendZodWithOpenApi2(z2);
|
|
17204
17783
|
var LCNProfileDisplayValidator2 = z2.object({
|
|
17205
17784
|
backgroundColor: z2.string().optional(),
|
|
17206
17785
|
backgroundImage: z2.string().optional(),
|
|
@@ -17358,7 +17937,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17358
17937
|
claimPermissions: BoostPermissionsValidator2.optional(),
|
|
17359
17938
|
allowAnyoneToCreateChildren: z2.boolean().optional()
|
|
17360
17939
|
});
|
|
17361
|
-
var
|
|
17940
|
+
var BaseBoostQueryValidator2 = z2.object({
|
|
17362
17941
|
uri: StringQuery2,
|
|
17363
17942
|
name: StringQuery2,
|
|
17364
17943
|
type: StringQuery2,
|
|
@@ -17367,6 +17946,12 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17367
17946
|
status: LCNBoostStatus2.or(z2.object({ $in: LCNBoostStatus2.array() })),
|
|
17368
17947
|
autoConnectRecipients: z2.boolean()
|
|
17369
17948
|
}).partial();
|
|
17949
|
+
var BoostQueryValidator2 = z2.union([
|
|
17950
|
+
z2.object({
|
|
17951
|
+
$or: BaseBoostQueryValidator2.array()
|
|
17952
|
+
}),
|
|
17953
|
+
BaseBoostQueryValidator2
|
|
17954
|
+
]);
|
|
17370
17955
|
var PaginatedBoostsValidator2 = PaginationResponseValidator2.extend({
|
|
17371
17956
|
records: BoostValidator2.array()
|
|
17372
17957
|
});
|
|
@@ -17422,11 +18007,25 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17422
18007
|
var ConsentFlowContractValidator2 = z2.object({
|
|
17423
18008
|
read: z2.object({
|
|
17424
18009
|
anonymize: z2.boolean().optional(),
|
|
17425
|
-
credentials: z2.object({
|
|
18010
|
+
credentials: z2.object({
|
|
18011
|
+
categories: z2.record(
|
|
18012
|
+
z2.object({
|
|
18013
|
+
required: z2.boolean(),
|
|
18014
|
+
defaultEnabled: z2.boolean().optional()
|
|
18015
|
+
})
|
|
18016
|
+
).default({})
|
|
18017
|
+
}).default({}),
|
|
17426
18018
|
personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
|
|
17427
18019
|
}).default({}),
|
|
17428
18020
|
write: z2.object({
|
|
17429
|
-
credentials: z2.object({
|
|
18021
|
+
credentials: z2.object({
|
|
18022
|
+
categories: z2.record(
|
|
18023
|
+
z2.object({
|
|
18024
|
+
required: z2.boolean(),
|
|
18025
|
+
defaultEnabled: z2.boolean().optional()
|
|
18026
|
+
})
|
|
18027
|
+
).default({})
|
|
18028
|
+
}).default({}),
|
|
17430
18029
|
personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
|
|
17431
18030
|
}).default({})
|
|
17432
18031
|
});
|
|
@@ -17569,6 +18168,17 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17569
18168
|
var PaginatedConsentFlowTransactionsValidator2 = PaginationResponseValidator2.extend({
|
|
17570
18169
|
records: ConsentFlowTransactionValidator2.array()
|
|
17571
18170
|
});
|
|
18171
|
+
var BaseSkillFrameworkQueryValidator2 = z2.object({
|
|
18172
|
+
id: StringQuery2,
|
|
18173
|
+
name: StringQuery2,
|
|
18174
|
+
description: StringQuery2,
|
|
18175
|
+
sourceURI: StringQuery2,
|
|
18176
|
+
status: StringQuery2
|
|
18177
|
+
}).partial();
|
|
18178
|
+
var SkillFrameworkQueryValidator2 = z2.union([
|
|
18179
|
+
z2.object({ $or: BaseSkillFrameworkQueryValidator2.array() }),
|
|
18180
|
+
BaseSkillFrameworkQueryValidator2
|
|
18181
|
+
]);
|
|
17572
18182
|
var ContractCredentialValidator2 = z2.object({
|
|
17573
18183
|
credentialUri: z2.string(),
|
|
17574
18184
|
termsUri: z2.string(),
|
|
@@ -17747,31 +18357,55 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17747
18357
|
});
|
|
17748
18358
|
var IssueInboxCredentialValidator2 = z2.object({
|
|
17749
18359
|
recipient: ContactMethodQueryValidator2.describe("The recipient of the credential"),
|
|
17750
|
-
credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe(
|
|
18360
|
+
credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe(
|
|
18361
|
+
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
18362
|
+
),
|
|
17751
18363
|
configuration: z2.object({
|
|
17752
|
-
signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe(
|
|
18364
|
+
signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe(
|
|
18365
|
+
"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."
|
|
18366
|
+
),
|
|
17753
18367
|
webhookUrl: z2.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
17754
18368
|
expiresInDays: z2.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
17755
18369
|
delivery: z2.object({
|
|
17756
|
-
suppress: z2.boolean().optional().default(false).describe(
|
|
18370
|
+
suppress: z2.boolean().optional().default(false).describe(
|
|
18371
|
+
"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."
|
|
18372
|
+
),
|
|
17757
18373
|
template: z2.object({
|
|
17758
|
-
id: z2.enum(["universal-inbox-claim"]).optional().describe(
|
|
18374
|
+
id: z2.enum(["universal-inbox-claim"]).optional().describe(
|
|
18375
|
+
"The template ID to use for the credential delivery. If not provided, the default template will be used."
|
|
18376
|
+
),
|
|
17759
18377
|
model: z2.object({
|
|
17760
18378
|
issuer: z2.object({
|
|
17761
|
-
name: z2.string().optional().describe(
|
|
18379
|
+
name: z2.string().optional().describe(
|
|
18380
|
+
'The name of the organization (e.g., "State University").'
|
|
18381
|
+
),
|
|
17762
18382
|
logoUrl: z2.string().url().optional().describe("The URL of the organization's logo.")
|
|
17763
18383
|
}).optional(),
|
|
17764
18384
|
credential: z2.object({
|
|
17765
|
-
name: z2.string().optional().describe(
|
|
17766
|
-
|
|
18385
|
+
name: z2.string().optional().describe(
|
|
18386
|
+
'The name of the credential (e.g., "Bachelor of Science").'
|
|
18387
|
+
),
|
|
18388
|
+
type: z2.string().optional().describe(
|
|
18389
|
+
'The type of the credential (e.g., "degree", "certificate").'
|
|
18390
|
+
)
|
|
17767
18391
|
}).optional(),
|
|
17768
18392
|
recipient: z2.object({
|
|
17769
|
-
name: z2.string().optional().describe(
|
|
18393
|
+
name: z2.string().optional().describe(
|
|
18394
|
+
'The name of the recipient (e.g., "John Doe").'
|
|
18395
|
+
)
|
|
17770
18396
|
}).optional()
|
|
17771
|
-
}).describe(
|
|
17772
|
-
|
|
17773
|
-
|
|
17774
|
-
|
|
18397
|
+
}).describe(
|
|
18398
|
+
"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."
|
|
18399
|
+
)
|
|
18400
|
+
}).optional().describe(
|
|
18401
|
+
"The template to use for the credential delivery. If not provided, the default template will be used."
|
|
18402
|
+
)
|
|
18403
|
+
}).optional().describe(
|
|
18404
|
+
"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."
|
|
18405
|
+
)
|
|
18406
|
+
}).optional().describe(
|
|
18407
|
+
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
18408
|
+
)
|
|
17775
18409
|
});
|
|
17776
18410
|
var IssueInboxCredentialResponseValidator2 = z2.object({
|
|
17777
18411
|
issuanceId: z2.string(),
|
|
@@ -17833,6 +18467,191 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17833
18467
|
expiresAt: z2.string(),
|
|
17834
18468
|
used: z2.boolean()
|
|
17835
18469
|
});
|
|
18470
|
+
var TagValidator2 = z2.object({
|
|
18471
|
+
id: z2.string(),
|
|
18472
|
+
name: z2.string().min(1),
|
|
18473
|
+
slug: z2.string().min(1),
|
|
18474
|
+
createdAt: z2.string().optional(),
|
|
18475
|
+
updatedAt: z2.string().optional()
|
|
18476
|
+
});
|
|
18477
|
+
var SkillStatusEnum2 = z2.enum(["active", "archived"]);
|
|
18478
|
+
var SkillValidator2 = z2.object({
|
|
18479
|
+
id: z2.string(),
|
|
18480
|
+
statement: z2.string(),
|
|
18481
|
+
description: z2.string().optional(),
|
|
18482
|
+
code: z2.string().optional(),
|
|
18483
|
+
icon: z2.string().optional(),
|
|
18484
|
+
type: z2.string().default("skill"),
|
|
18485
|
+
status: SkillStatusEnum2.default("active"),
|
|
18486
|
+
frameworkId: z2.string().optional(),
|
|
18487
|
+
createdAt: z2.string().optional(),
|
|
18488
|
+
updatedAt: z2.string().optional()
|
|
18489
|
+
});
|
|
18490
|
+
var BaseSkillQueryValidator2 = z2.object({
|
|
18491
|
+
id: StringQuery2,
|
|
18492
|
+
statement: StringQuery2,
|
|
18493
|
+
description: StringQuery2,
|
|
18494
|
+
code: StringQuery2,
|
|
18495
|
+
type: StringQuery2,
|
|
18496
|
+
status: SkillStatusEnum2.or(z2.object({ $in: SkillStatusEnum2.array() }))
|
|
18497
|
+
}).partial();
|
|
18498
|
+
var SkillQueryValidator2 = z2.union([
|
|
18499
|
+
z2.object({
|
|
18500
|
+
$or: BaseSkillQueryValidator2.array()
|
|
18501
|
+
}),
|
|
18502
|
+
BaseSkillQueryValidator2
|
|
18503
|
+
]);
|
|
18504
|
+
var SkillFrameworkStatusEnum2 = z2.enum(["active", "archived"]);
|
|
18505
|
+
var SkillFrameworkValidator2 = z2.object({
|
|
18506
|
+
id: z2.string(),
|
|
18507
|
+
name: z2.string(),
|
|
18508
|
+
description: z2.string().optional(),
|
|
18509
|
+
image: z2.string().optional(),
|
|
18510
|
+
sourceURI: z2.string().url().optional(),
|
|
18511
|
+
status: SkillFrameworkStatusEnum2.default("active"),
|
|
18512
|
+
createdAt: z2.string().optional(),
|
|
18513
|
+
updatedAt: z2.string().optional()
|
|
18514
|
+
});
|
|
18515
|
+
var PaginatedSkillFrameworksValidator2 = PaginationResponseValidator2.extend({
|
|
18516
|
+
records: SkillFrameworkValidator2.array()
|
|
18517
|
+
});
|
|
18518
|
+
var SkillTreeNodeValidator2 = SkillValidator2.extend({
|
|
18519
|
+
children: z2.array(z2.lazy(() => SkillTreeNodeValidator2)),
|
|
18520
|
+
hasChildren: z2.boolean(),
|
|
18521
|
+
childrenCursor: z2.string().nullable().optional()
|
|
18522
|
+
}).openapi({ ref: "SkillTreeNode" });
|
|
18523
|
+
var PaginatedSkillTreeValidator2 = z2.object({
|
|
18524
|
+
hasMore: z2.boolean(),
|
|
18525
|
+
cursor: z2.string().nullable(),
|
|
18526
|
+
records: z2.array(SkillTreeNodeValidator2)
|
|
18527
|
+
});
|
|
18528
|
+
var SkillTreeNodeInputValidator2 = z2.lazy(
|
|
18529
|
+
() => z2.object({
|
|
18530
|
+
id: z2.string().optional(),
|
|
18531
|
+
statement: z2.string(),
|
|
18532
|
+
description: z2.string().optional(),
|
|
18533
|
+
code: z2.string().optional(),
|
|
18534
|
+
icon: z2.string().optional(),
|
|
18535
|
+
type: z2.string().optional(),
|
|
18536
|
+
status: SkillStatusEnum2.optional(),
|
|
18537
|
+
children: z2.array(SkillTreeNodeInputValidator2).optional()
|
|
18538
|
+
})
|
|
18539
|
+
).openapi({ ref: "SkillTreeNodeInput" });
|
|
18540
|
+
var LinkProviderFrameworkInputValidator2 = z2.object({
|
|
18541
|
+
frameworkId: z2.string()
|
|
18542
|
+
});
|
|
18543
|
+
var CreateManagedFrameworkInputValidator2 = z2.object({
|
|
18544
|
+
id: z2.string().optional(),
|
|
18545
|
+
name: z2.string().min(1),
|
|
18546
|
+
description: z2.string().optional(),
|
|
18547
|
+
image: z2.string().optional(),
|
|
18548
|
+
sourceURI: z2.string().url().optional(),
|
|
18549
|
+
status: SkillFrameworkStatusEnum2.optional(),
|
|
18550
|
+
skills: z2.array(SkillTreeNodeInputValidator2).optional(),
|
|
18551
|
+
boostUris: z2.array(z2.string()).optional()
|
|
18552
|
+
});
|
|
18553
|
+
var UpdateFrameworkInputValidator2 = z2.object({
|
|
18554
|
+
id: z2.string(),
|
|
18555
|
+
name: z2.string().min(1).optional(),
|
|
18556
|
+
description: z2.string().optional(),
|
|
18557
|
+
image: z2.string().optional(),
|
|
18558
|
+
sourceURI: z2.string().url().optional(),
|
|
18559
|
+
status: SkillFrameworkStatusEnum2.optional()
|
|
18560
|
+
}).refine(
|
|
18561
|
+
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
|
|
18562
|
+
{
|
|
18563
|
+
message: "At least one field must be provided to update",
|
|
18564
|
+
path: ["name"]
|
|
18565
|
+
}
|
|
18566
|
+
);
|
|
18567
|
+
var DeleteFrameworkInputValidator2 = z2.object({ id: z2.string() });
|
|
18568
|
+
var CreateManagedFrameworkBatchInputValidator2 = z2.object({
|
|
18569
|
+
frameworks: z2.array(
|
|
18570
|
+
CreateManagedFrameworkInputValidator2.extend({
|
|
18571
|
+
skills: z2.array(SkillTreeNodeInputValidator2).optional()
|
|
18572
|
+
})
|
|
18573
|
+
).min(1)
|
|
18574
|
+
});
|
|
18575
|
+
var SkillFrameworkAdminInputValidator2 = z2.object({
|
|
18576
|
+
frameworkId: z2.string(),
|
|
18577
|
+
profileId: z2.string()
|
|
18578
|
+
});
|
|
18579
|
+
var SkillFrameworkIdInputValidator2 = z2.object({ frameworkId: z2.string() });
|
|
18580
|
+
var SkillFrameworkAdminsValidator2 = LCNProfileValidator2.array();
|
|
18581
|
+
var SyncFrameworkInputValidator2 = z2.object({ id: z2.string() });
|
|
18582
|
+
var AddTagInputValidator2 = z2.object({
|
|
18583
|
+
slug: z2.string().min(1),
|
|
18584
|
+
name: z2.string().min(1)
|
|
18585
|
+
});
|
|
18586
|
+
var CreateSkillInputValidator2 = z2.object({
|
|
18587
|
+
frameworkId: z2.string(),
|
|
18588
|
+
skill: SkillTreeNodeInputValidator2,
|
|
18589
|
+
parentId: z2.string().nullable().optional()
|
|
18590
|
+
});
|
|
18591
|
+
var UpdateSkillInputValidator2 = z2.object({
|
|
18592
|
+
frameworkId: z2.string(),
|
|
18593
|
+
id: z2.string(),
|
|
18594
|
+
statement: z2.string().optional(),
|
|
18595
|
+
description: z2.string().optional(),
|
|
18596
|
+
code: z2.string().optional(),
|
|
18597
|
+
icon: z2.string().optional(),
|
|
18598
|
+
type: z2.string().optional(),
|
|
18599
|
+
status: SkillStatusEnum2.optional()
|
|
18600
|
+
}).refine(
|
|
18601
|
+
(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,
|
|
18602
|
+
{
|
|
18603
|
+
message: "At least one field must be provided to update a skill",
|
|
18604
|
+
path: ["statement"]
|
|
18605
|
+
}
|
|
18606
|
+
);
|
|
18607
|
+
var SkillDeletionStrategyValidator2 = z2.enum(["recursive", "reparent"]);
|
|
18608
|
+
var DeleteSkillInputValidator2 = z2.object({
|
|
18609
|
+
frameworkId: z2.string(),
|
|
18610
|
+
id: z2.string(),
|
|
18611
|
+
strategy: SkillDeletionStrategyValidator2.optional().default("reparent")
|
|
18612
|
+
});
|
|
18613
|
+
var CreateSkillsBatchInputValidator2 = z2.object({
|
|
18614
|
+
frameworkId: z2.string(),
|
|
18615
|
+
skills: z2.array(SkillTreeNodeInputValidator2).min(1),
|
|
18616
|
+
parentId: z2.string().nullable().optional()
|
|
18617
|
+
});
|
|
18618
|
+
var ReplaceSkillFrameworkSkillsInputValidator2 = z2.object({
|
|
18619
|
+
frameworkId: z2.string(),
|
|
18620
|
+
skills: z2.array(SkillTreeNodeInputValidator2).min(0)
|
|
18621
|
+
});
|
|
18622
|
+
var ReplaceSkillFrameworkSkillsResultValidator2 = z2.object({
|
|
18623
|
+
created: z2.number().int().min(0),
|
|
18624
|
+
updated: z2.number().int().min(0),
|
|
18625
|
+
deleted: z2.number().int().min(0),
|
|
18626
|
+
unchanged: z2.number().int().min(0),
|
|
18627
|
+
total: z2.number().int().min(0)
|
|
18628
|
+
});
|
|
18629
|
+
var CountSkillsInputValidator2 = z2.object({
|
|
18630
|
+
frameworkId: z2.string(),
|
|
18631
|
+
skillId: z2.string().optional(),
|
|
18632
|
+
recursive: z2.boolean().optional().default(false),
|
|
18633
|
+
onlyCountCompetencies: z2.boolean().optional().default(false)
|
|
18634
|
+
});
|
|
18635
|
+
var CountSkillsResultValidator2 = z2.object({
|
|
18636
|
+
count: z2.number().int().min(0)
|
|
18637
|
+
});
|
|
18638
|
+
var GetFullSkillTreeInputValidator2 = z2.object({
|
|
18639
|
+
frameworkId: z2.string()
|
|
18640
|
+
});
|
|
18641
|
+
var GetFullSkillTreeResultValidator2 = z2.object({
|
|
18642
|
+
skills: z2.array(SkillTreeNodeValidator2)
|
|
18643
|
+
});
|
|
18644
|
+
var GetSkillPathInputValidator2 = z2.object({
|
|
18645
|
+
frameworkId: z2.string(),
|
|
18646
|
+
skillId: z2.string()
|
|
18647
|
+
});
|
|
18648
|
+
var GetSkillPathResultValidator2 = z2.object({
|
|
18649
|
+
path: z2.array(SkillValidator2)
|
|
18650
|
+
});
|
|
18651
|
+
var FrameworkWithSkillsValidator2 = z2.object({
|
|
18652
|
+
framework: SkillFrameworkValidator2,
|
|
18653
|
+
skills: PaginatedSkillTreeValidator2
|
|
18654
|
+
});
|
|
17836
18655
|
}
|
|
17837
18656
|
});
|
|
17838
18657
|
var require_dist2 = __commonJS2({
|
|
@@ -18223,19 +19042,40 @@ async function getLearnCardNetworkPlugin(learnCard, url, apiToken) {
|
|
|
18223
19042
|
},
|
|
18224
19043
|
createBoost: async (_learnCard, credential, metadata) => {
|
|
18225
19044
|
await ensureUser();
|
|
18226
|
-
|
|
19045
|
+
const { skills, ...rest } = metadata ?? {};
|
|
19046
|
+
const payload = { credential, ...rest };
|
|
19047
|
+
if (Array.isArray(skills) && skills.length > 0)
|
|
19048
|
+
payload.skills = skills;
|
|
19049
|
+
return client.boost.createBoost.mutate(payload);
|
|
18227
19050
|
},
|
|
18228
19051
|
createChildBoost: async (_learnCard, parentUri, credential, metadata) => {
|
|
18229
19052
|
await ensureUser();
|
|
18230
|
-
|
|
18231
|
-
|
|
18232
|
-
|
|
18233
|
-
|
|
19053
|
+
const { skills, ...restMetadata } = metadata || {};
|
|
19054
|
+
const payload = { parentUri, boost: { credential, ...restMetadata } };
|
|
19055
|
+
if (Array.isArray(skills) && skills.length > 0)
|
|
19056
|
+
payload.skills = skills;
|
|
19057
|
+
return client.boost.createChildBoost.mutate(payload);
|
|
18234
19058
|
},
|
|
18235
19059
|
getBoost: async (_learnCard, uri) => {
|
|
18236
19060
|
await ensureUser();
|
|
18237
19061
|
return client.boost.getBoost.query({ uri });
|
|
18238
19062
|
},
|
|
19063
|
+
getBoostFrameworks: async (_learnCard, uri, options = {}) => {
|
|
19064
|
+
if (!userData)
|
|
19065
|
+
throw new Error("Please make an account first!");
|
|
19066
|
+
const { limit, cursor, query } = options ?? {};
|
|
19067
|
+
return client.boost.getBoostFrameworks.query({ uri, limit, cursor, query });
|
|
19068
|
+
},
|
|
19069
|
+
getSkillsAvailableForBoost: async (_learnCard, uri) => {
|
|
19070
|
+
if (!userData)
|
|
19071
|
+
throw new Error("Please make an account first!");
|
|
19072
|
+
return client.boost.getSkillsAvailableForBoost.query({ uri });
|
|
19073
|
+
},
|
|
19074
|
+
searchSkillsAvailableForBoost: async (_learnCard, uri, query, options = {}) => {
|
|
19075
|
+
if (!userData)
|
|
19076
|
+
throw new Error("Please make an account first!");
|
|
19077
|
+
return client.boost.searchSkillsAvailableForBoost.query({ uri, query, ...options });
|
|
19078
|
+
},
|
|
18239
19079
|
getBoosts: async (_learnCard, query) => {
|
|
18240
19080
|
console.warn(
|
|
18241
19081
|
"The getBoosts method is deprecated! Please use getPaginatedBoosts instead!"
|
|
@@ -18368,6 +19208,21 @@ async function getLearnCardNetworkPlugin(learnCard, url, apiToken) {
|
|
|
18368
19208
|
updates: { ...credential && { credential }, ...updates }
|
|
18369
19209
|
});
|
|
18370
19210
|
},
|
|
19211
|
+
attachFrameworkToBoost: async (_learnCard, boostUri, frameworkId) => {
|
|
19212
|
+
if (!userData)
|
|
19213
|
+
throw new Error("Please make an account first!");
|
|
19214
|
+
return client.boost.attachFrameworkToBoost.mutate({ boostUri, frameworkId });
|
|
19215
|
+
},
|
|
19216
|
+
detachFrameworkFromBoost: async (_learnCard, boostUri, frameworkId) => {
|
|
19217
|
+
if (!userData)
|
|
19218
|
+
throw new Error("Please make an account first!");
|
|
19219
|
+
return client.boost.detachFrameworkFromBoost.mutate({ boostUri, frameworkId });
|
|
19220
|
+
},
|
|
19221
|
+
alignBoostSkills: async (_learnCard, boostUri, skills) => {
|
|
19222
|
+
if (!userData)
|
|
19223
|
+
throw new Error("Please make an account first!");
|
|
19224
|
+
return client.boost.alignBoostSkills.mutate({ boostUri, skills });
|
|
19225
|
+
},
|
|
18371
19226
|
getBoostAdmins: async (_learnCard, uri, options = {}) => {
|
|
18372
19227
|
await ensureUser();
|
|
18373
19228
|
return client.boost.getBoostAdmins.query({ uri, ...options });
|
|
@@ -18734,6 +19589,163 @@ async function getLearnCardNetworkPlugin(learnCard, url, apiToken) {
|
|
|
18734
19589
|
await ensureUser();
|
|
18735
19590
|
return client.contactMethods.removeContactMethod.mutate({ id });
|
|
18736
19591
|
},
|
|
19592
|
+
syncFrameworkSkills: async (_learnCard, input) => {
|
|
19593
|
+
if (!userData)
|
|
19594
|
+
throw new Error("Please make an account first!");
|
|
19595
|
+
return client.skills.syncFrameworkSkills.mutate(input);
|
|
19596
|
+
},
|
|
19597
|
+
listSkillTags: async (_learnCard, frameworkId, skillId) => {
|
|
19598
|
+
if (!userData)
|
|
19599
|
+
throw new Error("Please make an account first!");
|
|
19600
|
+
return client.skills.listSkillTags.query({ frameworkId, id: skillId });
|
|
19601
|
+
},
|
|
19602
|
+
addSkillTag: async (_learnCard, frameworkId, skillId, tag) => {
|
|
19603
|
+
if (!userData)
|
|
19604
|
+
throw new Error("Please make an account first!");
|
|
19605
|
+
return client.skills.addSkillTag.mutate({ frameworkId, id: skillId, tag });
|
|
19606
|
+
},
|
|
19607
|
+
removeSkillTag: async (_learnCard, frameworkId, skillId, slug) => {
|
|
19608
|
+
if (!userData)
|
|
19609
|
+
throw new Error("Please make an account first!");
|
|
19610
|
+
return client.skills.removeSkillTag.mutate({ frameworkId, id: skillId, slug });
|
|
19611
|
+
},
|
|
19612
|
+
createManagedSkillFramework: async (_learnCard, input) => {
|
|
19613
|
+
if (!userData)
|
|
19614
|
+
throw new Error("Please make an account first!");
|
|
19615
|
+
return client.skillFrameworks.createManaged.mutate(input);
|
|
19616
|
+
},
|
|
19617
|
+
createManagedSkillFrameworks: async (_learnCard, input) => {
|
|
19618
|
+
if (!userData)
|
|
19619
|
+
throw new Error("Please make an account first!");
|
|
19620
|
+
return client.skillFrameworks.createManagedBatch.mutate(input);
|
|
19621
|
+
},
|
|
19622
|
+
createSkillFramework: async (_learnCard, input) => {
|
|
19623
|
+
if (!userData)
|
|
19624
|
+
throw new Error("Please make an account first!");
|
|
19625
|
+
return client.skillFrameworks.create.mutate(input);
|
|
19626
|
+
},
|
|
19627
|
+
listMySkillFrameworks: async (_learnCard) => {
|
|
19628
|
+
if (!userData)
|
|
19629
|
+
throw new Error("Please make an account first!");
|
|
19630
|
+
return client.skillFrameworks.listMine.query();
|
|
19631
|
+
},
|
|
19632
|
+
getSkillFrameworkById: async (_learnCard, id, options = {}) => {
|
|
19633
|
+
if (!userData)
|
|
19634
|
+
throw new Error("Please make an account first!");
|
|
19635
|
+
return client.skillFrameworks.getById.query({ id, ...options });
|
|
19636
|
+
},
|
|
19637
|
+
getBoostsThatUseFramework: async (_learnCard, frameworkId, options = {}) => {
|
|
19638
|
+
if (!userData)
|
|
19639
|
+
throw new Error("Please make an account first!");
|
|
19640
|
+
return client.skillFrameworks.getBoostsThatUseFramework.query({
|
|
19641
|
+
id: frameworkId,
|
|
19642
|
+
...options
|
|
19643
|
+
});
|
|
19644
|
+
},
|
|
19645
|
+
countBoostsThatUseFramework: async (_learnCard, frameworkId, options = {}) => {
|
|
19646
|
+
if (!userData)
|
|
19647
|
+
throw new Error("Please make an account first!");
|
|
19648
|
+
return client.skillFrameworks.countBoostsThatUseFramework.query({
|
|
19649
|
+
id: frameworkId,
|
|
19650
|
+
...options
|
|
19651
|
+
});
|
|
19652
|
+
},
|
|
19653
|
+
getFrameworkSkillTree: async (_learnCard, frameworkId, options = {}) => {
|
|
19654
|
+
if (!userData)
|
|
19655
|
+
throw new Error("Please make an account first!");
|
|
19656
|
+
return client.skills.getFrameworkSkillTree.query({ id: frameworkId, ...options });
|
|
19657
|
+
},
|
|
19658
|
+
getSkillChildren: async (_learnCard, frameworkId, skillId, options = {}) => {
|
|
19659
|
+
if (!userData)
|
|
19660
|
+
throw new Error("Please make an account first!");
|
|
19661
|
+
return client.skills.getSkillChildrenTree.query({
|
|
19662
|
+
frameworkId,
|
|
19663
|
+
id: skillId,
|
|
19664
|
+
...options
|
|
19665
|
+
});
|
|
19666
|
+
},
|
|
19667
|
+
searchFrameworkSkills: async (_learnCard, frameworkId, query, options = {}) => {
|
|
19668
|
+
if (!userData)
|
|
19669
|
+
throw new Error("Please make an account first!");
|
|
19670
|
+
return client.skills.searchFrameworkSkills.query({
|
|
19671
|
+
id: frameworkId,
|
|
19672
|
+
query,
|
|
19673
|
+
...options
|
|
19674
|
+
});
|
|
19675
|
+
},
|
|
19676
|
+
updateSkillFramework: async (_learnCard, input) => {
|
|
19677
|
+
if (!userData)
|
|
19678
|
+
throw new Error("Please make an account first!");
|
|
19679
|
+
return client.skillFrameworks.update.mutate(input);
|
|
19680
|
+
},
|
|
19681
|
+
deleteSkillFramework: async (_learnCard, id) => {
|
|
19682
|
+
if (!userData)
|
|
19683
|
+
throw new Error("Please make an account first!");
|
|
19684
|
+
return client.skillFrameworks.delete.mutate({ id });
|
|
19685
|
+
},
|
|
19686
|
+
replaceSkillFrameworkSkills: async (_learnCard, input) => {
|
|
19687
|
+
if (!userData)
|
|
19688
|
+
throw new Error("Please make an account first!");
|
|
19689
|
+
return client.skillFrameworks.replaceSkills.mutate(input);
|
|
19690
|
+
},
|
|
19691
|
+
countSkills: async (_learnCard, input) => {
|
|
19692
|
+
if (!userData)
|
|
19693
|
+
throw new Error("Please make an account first!");
|
|
19694
|
+
return client.skills.countSkills.query(input);
|
|
19695
|
+
},
|
|
19696
|
+
getFullSkillTree: async (_learnCard, input) => {
|
|
19697
|
+
if (!userData)
|
|
19698
|
+
throw new Error("Please make an account first!");
|
|
19699
|
+
return client.skills.getFullSkillTree.query(input);
|
|
19700
|
+
},
|
|
19701
|
+
getSkillPath: async (_learnCard, input) => {
|
|
19702
|
+
if (!userData)
|
|
19703
|
+
throw new Error("Please make an account first!");
|
|
19704
|
+
return client.skills.getSkillPath.query(input);
|
|
19705
|
+
},
|
|
19706
|
+
getSkillFrameworkAdmins: async (_learnCard, frameworkId) => {
|
|
19707
|
+
if (!userData)
|
|
19708
|
+
throw new Error("Please make an account first!");
|
|
19709
|
+
return client.skillFrameworks.listFrameworkAdmins.query({ frameworkId });
|
|
19710
|
+
},
|
|
19711
|
+
addSkillFrameworkAdmin: async (_learnCard, frameworkId, profileId) => {
|
|
19712
|
+
if (!userData)
|
|
19713
|
+
throw new Error("Please make an account first!");
|
|
19714
|
+
return client.skillFrameworks.addFrameworkAdmin.mutate({ frameworkId, profileId });
|
|
19715
|
+
},
|
|
19716
|
+
removeSkillFrameworkAdmin: async (_learnCard, frameworkId, profileId) => {
|
|
19717
|
+
if (!userData)
|
|
19718
|
+
throw new Error("Please make an account first!");
|
|
19719
|
+
return client.skillFrameworks.removeFrameworkAdmin.mutate({
|
|
19720
|
+
frameworkId,
|
|
19721
|
+
profileId
|
|
19722
|
+
});
|
|
19723
|
+
},
|
|
19724
|
+
getSkill: async (_learnCard, frameworkId, skillId) => {
|
|
19725
|
+
if (!userData)
|
|
19726
|
+
throw new Error("Please make an account first!");
|
|
19727
|
+
return client.skills.getSkill.query({ frameworkId, id: skillId });
|
|
19728
|
+
},
|
|
19729
|
+
createSkill: async (_learnCard, input) => {
|
|
19730
|
+
if (!userData)
|
|
19731
|
+
throw new Error("Please make an account first!");
|
|
19732
|
+
return client.skills.create.mutate(input);
|
|
19733
|
+
},
|
|
19734
|
+
createSkills: async (_learnCard, input) => {
|
|
19735
|
+
if (!userData)
|
|
19736
|
+
throw new Error("Please make an account first!");
|
|
19737
|
+
return client.skills.createMany.mutate(input);
|
|
19738
|
+
},
|
|
19739
|
+
updateSkill: async (_learnCard, input) => {
|
|
19740
|
+
if (!userData)
|
|
19741
|
+
throw new Error("Please make an account first!");
|
|
19742
|
+
return client.skills.update.mutate(input);
|
|
19743
|
+
},
|
|
19744
|
+
deleteSkill: async (_learnCard, input) => {
|
|
19745
|
+
if (!userData)
|
|
19746
|
+
throw new Error("Please make an account first!");
|
|
19747
|
+
return client.skills.delete.mutate(input);
|
|
19748
|
+
},
|
|
18737
19749
|
addIntegration: async (_learnCard, integration) => {
|
|
18738
19750
|
await ensureUser();
|
|
18739
19751
|
return client.integrations.addIntegration.mutate(integration);
|