@learncard/network-plugin 2.6.10 → 2.7.1
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 +1103 -67
- 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 +1103 -67
- package/dist/lcn-plugin.esm.js.map +3 -3
- package/dist/plugin.d.ts.map +1 -1
- package/dist/types.d.ts +101 -4
- 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(),
|
|
@@ -6750,7 +6792,8 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
6750
6792
|
to: z2.string(),
|
|
6751
6793
|
from: z2.string(),
|
|
6752
6794
|
sent: z2.string().datetime(),
|
|
6753
|
-
received: z2.string().datetime().optional()
|
|
6795
|
+
received: z2.string().datetime().optional(),
|
|
6796
|
+
metadata: z2.record(z2.unknown()).optional()
|
|
6754
6797
|
});
|
|
6755
6798
|
var BoostPermissionsValidator2 = z2.object({
|
|
6756
6799
|
role: z2.string(),
|
|
@@ -6823,7 +6866,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
6823
6866
|
claimPermissions: BoostPermissionsValidator2.optional(),
|
|
6824
6867
|
allowAnyoneToCreateChildren: z2.boolean().optional()
|
|
6825
6868
|
});
|
|
6826
|
-
var
|
|
6869
|
+
var BaseBoostQueryValidator2 = z2.object({
|
|
6827
6870
|
uri: StringQuery2,
|
|
6828
6871
|
name: StringQuery2,
|
|
6829
6872
|
type: StringQuery2,
|
|
@@ -6832,6 +6875,12 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
6832
6875
|
status: LCNBoostStatus2.or(z2.object({ $in: LCNBoostStatus2.array() })),
|
|
6833
6876
|
autoConnectRecipients: z2.boolean()
|
|
6834
6877
|
}).partial();
|
|
6878
|
+
var BoostQueryValidator2 = z2.union([
|
|
6879
|
+
z2.object({
|
|
6880
|
+
$or: BaseBoostQueryValidator2.array()
|
|
6881
|
+
}),
|
|
6882
|
+
BaseBoostQueryValidator2
|
|
6883
|
+
]);
|
|
6835
6884
|
var PaginatedBoostsValidator2 = PaginationResponseValidator2.extend({
|
|
6836
6885
|
records: BoostValidator2.array()
|
|
6837
6886
|
});
|
|
@@ -6887,11 +6936,25 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
6887
6936
|
var ConsentFlowContractValidator2 = z2.object({
|
|
6888
6937
|
read: z2.object({
|
|
6889
6938
|
anonymize: z2.boolean().optional(),
|
|
6890
|
-
credentials: z2.object({
|
|
6939
|
+
credentials: z2.object({
|
|
6940
|
+
categories: z2.record(
|
|
6941
|
+
z2.object({
|
|
6942
|
+
required: z2.boolean(),
|
|
6943
|
+
defaultEnabled: z2.boolean().optional()
|
|
6944
|
+
})
|
|
6945
|
+
).default({})
|
|
6946
|
+
}).default({}),
|
|
6891
6947
|
personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
|
|
6892
6948
|
}).default({}),
|
|
6893
6949
|
write: z2.object({
|
|
6894
|
-
credentials: z2.object({
|
|
6950
|
+
credentials: z2.object({
|
|
6951
|
+
categories: z2.record(
|
|
6952
|
+
z2.object({
|
|
6953
|
+
required: z2.boolean(),
|
|
6954
|
+
defaultEnabled: z2.boolean().optional()
|
|
6955
|
+
})
|
|
6956
|
+
).default({})
|
|
6957
|
+
}).default({}),
|
|
6895
6958
|
personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
|
|
6896
6959
|
}).default({})
|
|
6897
6960
|
});
|
|
@@ -7034,6 +7097,17 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
7034
7097
|
var PaginatedConsentFlowTransactionsValidator2 = PaginationResponseValidator2.extend({
|
|
7035
7098
|
records: ConsentFlowTransactionValidator2.array()
|
|
7036
7099
|
});
|
|
7100
|
+
var BaseSkillFrameworkQueryValidator2 = z2.object({
|
|
7101
|
+
id: StringQuery2,
|
|
7102
|
+
name: StringQuery2,
|
|
7103
|
+
description: StringQuery2,
|
|
7104
|
+
sourceURI: StringQuery2,
|
|
7105
|
+
status: StringQuery2
|
|
7106
|
+
}).partial();
|
|
7107
|
+
var SkillFrameworkQueryValidator2 = z2.union([
|
|
7108
|
+
z2.object({ $or: BaseSkillFrameworkQueryValidator2.array() }),
|
|
7109
|
+
BaseSkillFrameworkQueryValidator2
|
|
7110
|
+
]);
|
|
7037
7111
|
var ContractCredentialValidator2 = z2.object({
|
|
7038
7112
|
credentialUri: z2.string(),
|
|
7039
7113
|
termsUri: z2.string(),
|
|
@@ -7088,8 +7162,9 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
7088
7162
|
vcUris: z2.array(z2.string()).optional(),
|
|
7089
7163
|
vpUris: z2.array(z2.string()).optional(),
|
|
7090
7164
|
transaction: ConsentFlowTransactionValidator2.optional(),
|
|
7091
|
-
inbox: LCNNotificationInboxValidator2.optional()
|
|
7092
|
-
|
|
7165
|
+
inbox: LCNNotificationInboxValidator2.optional(),
|
|
7166
|
+
metadata: z2.record(z2.unknown()).optional()
|
|
7167
|
+
}).passthrough();
|
|
7093
7168
|
var LCNNotificationValidator2 = z2.object({
|
|
7094
7169
|
type: LCNNotificationTypeEnumValidator2,
|
|
7095
7170
|
to: LCNProfileValidator2.partial().and(z2.object({ did: z2.string() })),
|
|
@@ -7212,31 +7287,55 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
7212
7287
|
});
|
|
7213
7288
|
var IssueInboxCredentialValidator2 = z2.object({
|
|
7214
7289
|
recipient: ContactMethodQueryValidator2.describe("The recipient of the credential"),
|
|
7215
|
-
credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe(
|
|
7290
|
+
credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe(
|
|
7291
|
+
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
7292
|
+
),
|
|
7216
7293
|
configuration: z2.object({
|
|
7217
|
-
signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe(
|
|
7294
|
+
signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe(
|
|
7295
|
+
"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."
|
|
7296
|
+
),
|
|
7218
7297
|
webhookUrl: z2.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
7219
7298
|
expiresInDays: z2.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
7220
7299
|
delivery: z2.object({
|
|
7221
|
-
suppress: z2.boolean().optional().default(false).describe(
|
|
7300
|
+
suppress: z2.boolean().optional().default(false).describe(
|
|
7301
|
+
"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."
|
|
7302
|
+
),
|
|
7222
7303
|
template: z2.object({
|
|
7223
|
-
id: z2.enum(["universal-inbox-claim"]).optional().describe(
|
|
7304
|
+
id: z2.enum(["universal-inbox-claim"]).optional().describe(
|
|
7305
|
+
"The template ID to use for the credential delivery. If not provided, the default template will be used."
|
|
7306
|
+
),
|
|
7224
7307
|
model: z2.object({
|
|
7225
7308
|
issuer: z2.object({
|
|
7226
|
-
name: z2.string().optional().describe(
|
|
7309
|
+
name: z2.string().optional().describe(
|
|
7310
|
+
'The name of the organization (e.g., "State University").'
|
|
7311
|
+
),
|
|
7227
7312
|
logoUrl: z2.string().url().optional().describe("The URL of the organization's logo.")
|
|
7228
7313
|
}).optional(),
|
|
7229
7314
|
credential: z2.object({
|
|
7230
|
-
name: z2.string().optional().describe(
|
|
7231
|
-
|
|
7315
|
+
name: z2.string().optional().describe(
|
|
7316
|
+
'The name of the credential (e.g., "Bachelor of Science").'
|
|
7317
|
+
),
|
|
7318
|
+
type: z2.string().optional().describe(
|
|
7319
|
+
'The type of the credential (e.g., "degree", "certificate").'
|
|
7320
|
+
)
|
|
7232
7321
|
}).optional(),
|
|
7233
7322
|
recipient: z2.object({
|
|
7234
|
-
name: z2.string().optional().describe(
|
|
7323
|
+
name: z2.string().optional().describe(
|
|
7324
|
+
'The name of the recipient (e.g., "John Doe").'
|
|
7325
|
+
)
|
|
7235
7326
|
}).optional()
|
|
7236
|
-
}).describe(
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
|
|
7327
|
+
}).describe(
|
|
7328
|
+
"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."
|
|
7329
|
+
)
|
|
7330
|
+
}).optional().describe(
|
|
7331
|
+
"The template to use for the credential delivery. If not provided, the default template will be used."
|
|
7332
|
+
)
|
|
7333
|
+
}).optional().describe(
|
|
7334
|
+
"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."
|
|
7335
|
+
)
|
|
7336
|
+
}).optional().describe(
|
|
7337
|
+
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
7338
|
+
)
|
|
7240
7339
|
});
|
|
7241
7340
|
var IssueInboxCredentialResponseValidator2 = z2.object({
|
|
7242
7341
|
issuanceId: z2.string(),
|
|
@@ -7298,6 +7397,191 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
7298
7397
|
expiresAt: z2.string(),
|
|
7299
7398
|
used: z2.boolean()
|
|
7300
7399
|
});
|
|
7400
|
+
var TagValidator2 = z2.object({
|
|
7401
|
+
id: z2.string(),
|
|
7402
|
+
name: z2.string().min(1),
|
|
7403
|
+
slug: z2.string().min(1),
|
|
7404
|
+
createdAt: z2.string().optional(),
|
|
7405
|
+
updatedAt: z2.string().optional()
|
|
7406
|
+
});
|
|
7407
|
+
var SkillStatusEnum2 = z2.enum(["active", "archived"]);
|
|
7408
|
+
var SkillValidator2 = z2.object({
|
|
7409
|
+
id: z2.string(),
|
|
7410
|
+
statement: z2.string(),
|
|
7411
|
+
description: z2.string().optional(),
|
|
7412
|
+
code: z2.string().optional(),
|
|
7413
|
+
icon: z2.string().optional(),
|
|
7414
|
+
type: z2.string().default("skill"),
|
|
7415
|
+
status: SkillStatusEnum2.default("active"),
|
|
7416
|
+
frameworkId: z2.string().optional(),
|
|
7417
|
+
createdAt: z2.string().optional(),
|
|
7418
|
+
updatedAt: z2.string().optional()
|
|
7419
|
+
});
|
|
7420
|
+
var BaseSkillQueryValidator2 = z2.object({
|
|
7421
|
+
id: StringQuery2,
|
|
7422
|
+
statement: StringQuery2,
|
|
7423
|
+
description: StringQuery2,
|
|
7424
|
+
code: StringQuery2,
|
|
7425
|
+
type: StringQuery2,
|
|
7426
|
+
status: SkillStatusEnum2.or(z2.object({ $in: SkillStatusEnum2.array() }))
|
|
7427
|
+
}).partial();
|
|
7428
|
+
var SkillQueryValidator2 = z2.union([
|
|
7429
|
+
z2.object({
|
|
7430
|
+
$or: BaseSkillQueryValidator2.array()
|
|
7431
|
+
}),
|
|
7432
|
+
BaseSkillQueryValidator2
|
|
7433
|
+
]);
|
|
7434
|
+
var SkillFrameworkStatusEnum2 = z2.enum(["active", "archived"]);
|
|
7435
|
+
var SkillFrameworkValidator2 = z2.object({
|
|
7436
|
+
id: z2.string(),
|
|
7437
|
+
name: z2.string(),
|
|
7438
|
+
description: z2.string().optional(),
|
|
7439
|
+
image: z2.string().optional(),
|
|
7440
|
+
sourceURI: z2.string().url().optional(),
|
|
7441
|
+
status: SkillFrameworkStatusEnum2.default("active"),
|
|
7442
|
+
createdAt: z2.string().optional(),
|
|
7443
|
+
updatedAt: z2.string().optional()
|
|
7444
|
+
});
|
|
7445
|
+
var PaginatedSkillFrameworksValidator2 = PaginationResponseValidator2.extend({
|
|
7446
|
+
records: SkillFrameworkValidator2.array()
|
|
7447
|
+
});
|
|
7448
|
+
var SkillTreeNodeValidator2 = SkillValidator2.extend({
|
|
7449
|
+
children: z2.array(z2.lazy(() => SkillTreeNodeValidator2)),
|
|
7450
|
+
hasChildren: z2.boolean(),
|
|
7451
|
+
childrenCursor: z2.string().nullable().optional()
|
|
7452
|
+
}).openapi({ ref: "SkillTreeNode" });
|
|
7453
|
+
var PaginatedSkillTreeValidator2 = z2.object({
|
|
7454
|
+
hasMore: z2.boolean(),
|
|
7455
|
+
cursor: z2.string().nullable(),
|
|
7456
|
+
records: z2.array(SkillTreeNodeValidator2)
|
|
7457
|
+
});
|
|
7458
|
+
var SkillTreeNodeInputValidator2 = z2.lazy(
|
|
7459
|
+
() => z2.object({
|
|
7460
|
+
id: z2.string().optional(),
|
|
7461
|
+
statement: z2.string(),
|
|
7462
|
+
description: z2.string().optional(),
|
|
7463
|
+
code: z2.string().optional(),
|
|
7464
|
+
icon: z2.string().optional(),
|
|
7465
|
+
type: z2.string().optional(),
|
|
7466
|
+
status: SkillStatusEnum2.optional(),
|
|
7467
|
+
children: z2.array(SkillTreeNodeInputValidator2).optional()
|
|
7468
|
+
})
|
|
7469
|
+
).openapi({ ref: "SkillTreeNodeInput" });
|
|
7470
|
+
var LinkProviderFrameworkInputValidator2 = z2.object({
|
|
7471
|
+
frameworkId: z2.string()
|
|
7472
|
+
});
|
|
7473
|
+
var CreateManagedFrameworkInputValidator2 = z2.object({
|
|
7474
|
+
id: z2.string().optional(),
|
|
7475
|
+
name: z2.string().min(1),
|
|
7476
|
+
description: z2.string().optional(),
|
|
7477
|
+
image: z2.string().optional(),
|
|
7478
|
+
sourceURI: z2.string().url().optional(),
|
|
7479
|
+
status: SkillFrameworkStatusEnum2.optional(),
|
|
7480
|
+
skills: z2.array(SkillTreeNodeInputValidator2).optional(),
|
|
7481
|
+
boostUris: z2.array(z2.string()).optional()
|
|
7482
|
+
});
|
|
7483
|
+
var UpdateFrameworkInputValidator2 = z2.object({
|
|
7484
|
+
id: z2.string(),
|
|
7485
|
+
name: z2.string().min(1).optional(),
|
|
7486
|
+
description: z2.string().optional(),
|
|
7487
|
+
image: z2.string().optional(),
|
|
7488
|
+
sourceURI: z2.string().url().optional(),
|
|
7489
|
+
status: SkillFrameworkStatusEnum2.optional()
|
|
7490
|
+
}).refine(
|
|
7491
|
+
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
|
|
7492
|
+
{
|
|
7493
|
+
message: "At least one field must be provided to update",
|
|
7494
|
+
path: ["name"]
|
|
7495
|
+
}
|
|
7496
|
+
);
|
|
7497
|
+
var DeleteFrameworkInputValidator2 = z2.object({ id: z2.string() });
|
|
7498
|
+
var CreateManagedFrameworkBatchInputValidator2 = z2.object({
|
|
7499
|
+
frameworks: z2.array(
|
|
7500
|
+
CreateManagedFrameworkInputValidator2.extend({
|
|
7501
|
+
skills: z2.array(SkillTreeNodeInputValidator2).optional()
|
|
7502
|
+
})
|
|
7503
|
+
).min(1)
|
|
7504
|
+
});
|
|
7505
|
+
var SkillFrameworkAdminInputValidator2 = z2.object({
|
|
7506
|
+
frameworkId: z2.string(),
|
|
7507
|
+
profileId: z2.string()
|
|
7508
|
+
});
|
|
7509
|
+
var SkillFrameworkIdInputValidator2 = z2.object({ frameworkId: z2.string() });
|
|
7510
|
+
var SkillFrameworkAdminsValidator2 = LCNProfileValidator2.array();
|
|
7511
|
+
var SyncFrameworkInputValidator2 = z2.object({ id: z2.string() });
|
|
7512
|
+
var AddTagInputValidator2 = z2.object({
|
|
7513
|
+
slug: z2.string().min(1),
|
|
7514
|
+
name: z2.string().min(1)
|
|
7515
|
+
});
|
|
7516
|
+
var CreateSkillInputValidator2 = z2.object({
|
|
7517
|
+
frameworkId: z2.string(),
|
|
7518
|
+
skill: SkillTreeNodeInputValidator2,
|
|
7519
|
+
parentId: z2.string().nullable().optional()
|
|
7520
|
+
});
|
|
7521
|
+
var UpdateSkillInputValidator2 = z2.object({
|
|
7522
|
+
frameworkId: z2.string(),
|
|
7523
|
+
id: z2.string(),
|
|
7524
|
+
statement: z2.string().optional(),
|
|
7525
|
+
description: z2.string().optional(),
|
|
7526
|
+
code: z2.string().optional(),
|
|
7527
|
+
icon: z2.string().optional(),
|
|
7528
|
+
type: z2.string().optional(),
|
|
7529
|
+
status: SkillStatusEnum2.optional()
|
|
7530
|
+
}).refine(
|
|
7531
|
+
(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,
|
|
7532
|
+
{
|
|
7533
|
+
message: "At least one field must be provided to update a skill",
|
|
7534
|
+
path: ["statement"]
|
|
7535
|
+
}
|
|
7536
|
+
);
|
|
7537
|
+
var SkillDeletionStrategyValidator2 = z2.enum(["recursive", "reparent"]);
|
|
7538
|
+
var DeleteSkillInputValidator2 = z2.object({
|
|
7539
|
+
frameworkId: z2.string(),
|
|
7540
|
+
id: z2.string(),
|
|
7541
|
+
strategy: SkillDeletionStrategyValidator2.optional().default("reparent")
|
|
7542
|
+
});
|
|
7543
|
+
var CreateSkillsBatchInputValidator2 = z2.object({
|
|
7544
|
+
frameworkId: z2.string(),
|
|
7545
|
+
skills: z2.array(SkillTreeNodeInputValidator2).min(1),
|
|
7546
|
+
parentId: z2.string().nullable().optional()
|
|
7547
|
+
});
|
|
7548
|
+
var ReplaceSkillFrameworkSkillsInputValidator2 = z2.object({
|
|
7549
|
+
frameworkId: z2.string(),
|
|
7550
|
+
skills: z2.array(SkillTreeNodeInputValidator2).min(0)
|
|
7551
|
+
});
|
|
7552
|
+
var ReplaceSkillFrameworkSkillsResultValidator2 = z2.object({
|
|
7553
|
+
created: z2.number().int().min(0),
|
|
7554
|
+
updated: z2.number().int().min(0),
|
|
7555
|
+
deleted: z2.number().int().min(0),
|
|
7556
|
+
unchanged: z2.number().int().min(0),
|
|
7557
|
+
total: z2.number().int().min(0)
|
|
7558
|
+
});
|
|
7559
|
+
var CountSkillsInputValidator2 = z2.object({
|
|
7560
|
+
frameworkId: z2.string(),
|
|
7561
|
+
skillId: z2.string().optional(),
|
|
7562
|
+
recursive: z2.boolean().optional().default(false),
|
|
7563
|
+
onlyCountCompetencies: z2.boolean().optional().default(false)
|
|
7564
|
+
});
|
|
7565
|
+
var CountSkillsResultValidator2 = z2.object({
|
|
7566
|
+
count: z2.number().int().min(0)
|
|
7567
|
+
});
|
|
7568
|
+
var GetFullSkillTreeInputValidator2 = z2.object({
|
|
7569
|
+
frameworkId: z2.string()
|
|
7570
|
+
});
|
|
7571
|
+
var GetFullSkillTreeResultValidator2 = z2.object({
|
|
7572
|
+
skills: z2.array(SkillTreeNodeValidator2)
|
|
7573
|
+
});
|
|
7574
|
+
var GetSkillPathInputValidator2 = z2.object({
|
|
7575
|
+
frameworkId: z2.string(),
|
|
7576
|
+
skillId: z2.string()
|
|
7577
|
+
});
|
|
7578
|
+
var GetSkillPathResultValidator2 = z2.object({
|
|
7579
|
+
path: z2.array(SkillValidator2)
|
|
7580
|
+
});
|
|
7581
|
+
var FrameworkWithSkillsValidator2 = z2.object({
|
|
7582
|
+
framework: SkillFrameworkValidator2,
|
|
7583
|
+
skills: PaginatedSkillTreeValidator2
|
|
7584
|
+
});
|
|
7301
7585
|
}
|
|
7302
7586
|
});
|
|
7303
7587
|
var require_dist22 = __commonJS22({
|
|
@@ -7315,7 +7599,8 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
7315
7599
|
RegExpTransformer: () => RegExpTransformer2,
|
|
7316
7600
|
isEncrypted: () => isEncrypted,
|
|
7317
7601
|
isHex: () => isHex,
|
|
7318
|
-
isVC2Format: () => isVC2Format2
|
|
7602
|
+
isVC2Format: () => isVC2Format2,
|
|
7603
|
+
unwrapBoostCredential: () => unwrapBoostCredential
|
|
7319
7604
|
});
|
|
7320
7605
|
module.exports = __toCommonJS(src_exports);
|
|
7321
7606
|
var import_types3 = __toESM22(require_dist22());
|
|
@@ -7356,6 +7641,13 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
7356
7641
|
}
|
|
7357
7642
|
return credential["@context"].includes("https://www.w3.org/ns/credentials/v2");
|
|
7358
7643
|
}, "isVC2Format");
|
|
7644
|
+
var unwrapBoostCredential = /* @__PURE__ */ __name22((vc) => {
|
|
7645
|
+
if (vc?.type?.includes("CertifiedBoostCredential") && vc?.boostCredential) {
|
|
7646
|
+
return vc.boostCredential;
|
|
7647
|
+
} else {
|
|
7648
|
+
return vc;
|
|
7649
|
+
}
|
|
7650
|
+
}, "unwrapBoostCredential");
|
|
7359
7651
|
}
|
|
7360
7652
|
});
|
|
7361
7653
|
var require_dist = __commonJS({
|
|
@@ -11901,7 +12193,14 @@ var RegExpValidator = z.instanceof(RegExp).or(
|
|
|
11901
12193
|
}
|
|
11902
12194
|
})
|
|
11903
12195
|
);
|
|
11904
|
-
var
|
|
12196
|
+
var BaseStringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
|
|
12197
|
+
var StringQuery = z.union([
|
|
12198
|
+
BaseStringQuery,
|
|
12199
|
+
z.object({
|
|
12200
|
+
$or: BaseStringQuery.array()
|
|
12201
|
+
})
|
|
12202
|
+
]);
|
|
12203
|
+
extendZodWithOpenApi(z);
|
|
11905
12204
|
var LCNProfileDisplayValidator = z.object({
|
|
11906
12205
|
backgroundColor: z.string().optional(),
|
|
11907
12206
|
backgroundImage: z.string().optional(),
|
|
@@ -11986,7 +12285,8 @@ var SentCredentialInfoValidator = z.object({
|
|
|
11986
12285
|
to: z.string(),
|
|
11987
12286
|
from: z.string(),
|
|
11988
12287
|
sent: z.string().datetime(),
|
|
11989
|
-
received: z.string().datetime().optional()
|
|
12288
|
+
received: z.string().datetime().optional(),
|
|
12289
|
+
metadata: z.record(z.unknown()).optional()
|
|
11990
12290
|
});
|
|
11991
12291
|
var BoostPermissionsValidator = z.object({
|
|
11992
12292
|
role: z.string(),
|
|
@@ -12059,7 +12359,7 @@ var BoostValidator = z.object({
|
|
|
12059
12359
|
claimPermissions: BoostPermissionsValidator.optional(),
|
|
12060
12360
|
allowAnyoneToCreateChildren: z.boolean().optional()
|
|
12061
12361
|
});
|
|
12062
|
-
var
|
|
12362
|
+
var BaseBoostQueryValidator = z.object({
|
|
12063
12363
|
uri: StringQuery,
|
|
12064
12364
|
name: StringQuery,
|
|
12065
12365
|
type: StringQuery,
|
|
@@ -12068,6 +12368,12 @@ var BoostQueryValidator = z.object({
|
|
|
12068
12368
|
status: LCNBoostStatus.or(z.object({ $in: LCNBoostStatus.array() })),
|
|
12069
12369
|
autoConnectRecipients: z.boolean()
|
|
12070
12370
|
}).partial();
|
|
12371
|
+
var BoostQueryValidator = z.union([
|
|
12372
|
+
z.object({
|
|
12373
|
+
$or: BaseBoostQueryValidator.array()
|
|
12374
|
+
}),
|
|
12375
|
+
BaseBoostQueryValidator
|
|
12376
|
+
]);
|
|
12071
12377
|
var PaginatedBoostsValidator = PaginationResponseValidator.extend({
|
|
12072
12378
|
records: BoostValidator.array()
|
|
12073
12379
|
});
|
|
@@ -12123,11 +12429,25 @@ var ConsentFlowTermsStatusValidator = z.enum(["live", "stale", "withdrawn"]);
|
|
|
12123
12429
|
var ConsentFlowContractValidator = z.object({
|
|
12124
12430
|
read: z.object({
|
|
12125
12431
|
anonymize: z.boolean().optional(),
|
|
12126
|
-
credentials: z.object({
|
|
12432
|
+
credentials: z.object({
|
|
12433
|
+
categories: z.record(
|
|
12434
|
+
z.object({
|
|
12435
|
+
required: z.boolean(),
|
|
12436
|
+
defaultEnabled: z.boolean().optional()
|
|
12437
|
+
})
|
|
12438
|
+
).default({})
|
|
12439
|
+
}).default({}),
|
|
12127
12440
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
12128
12441
|
}).default({}),
|
|
12129
12442
|
write: z.object({
|
|
12130
|
-
credentials: z.object({
|
|
12443
|
+
credentials: z.object({
|
|
12444
|
+
categories: z.record(
|
|
12445
|
+
z.object({
|
|
12446
|
+
required: z.boolean(),
|
|
12447
|
+
defaultEnabled: z.boolean().optional()
|
|
12448
|
+
})
|
|
12449
|
+
).default({})
|
|
12450
|
+
}).default({}),
|
|
12131
12451
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
12132
12452
|
}).default({})
|
|
12133
12453
|
});
|
|
@@ -12270,6 +12590,17 @@ var ConsentFlowTransactionValidator = z.object({
|
|
|
12270
12590
|
var PaginatedConsentFlowTransactionsValidator = PaginationResponseValidator.extend({
|
|
12271
12591
|
records: ConsentFlowTransactionValidator.array()
|
|
12272
12592
|
});
|
|
12593
|
+
var BaseSkillFrameworkQueryValidator = z.object({
|
|
12594
|
+
id: StringQuery,
|
|
12595
|
+
name: StringQuery,
|
|
12596
|
+
description: StringQuery,
|
|
12597
|
+
sourceURI: StringQuery,
|
|
12598
|
+
status: StringQuery
|
|
12599
|
+
}).partial();
|
|
12600
|
+
var SkillFrameworkQueryValidator = z.union([
|
|
12601
|
+
z.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
|
|
12602
|
+
BaseSkillFrameworkQueryValidator
|
|
12603
|
+
]);
|
|
12273
12604
|
var ContractCredentialValidator = z.object({
|
|
12274
12605
|
credentialUri: z.string(),
|
|
12275
12606
|
termsUri: z.string(),
|
|
@@ -12324,8 +12655,9 @@ var LCNNotificationDataValidator = z.object({
|
|
|
12324
12655
|
vcUris: z.array(z.string()).optional(),
|
|
12325
12656
|
vpUris: z.array(z.string()).optional(),
|
|
12326
12657
|
transaction: ConsentFlowTransactionValidator.optional(),
|
|
12327
|
-
inbox: LCNNotificationInboxValidator.optional()
|
|
12328
|
-
|
|
12658
|
+
inbox: LCNNotificationInboxValidator.optional(),
|
|
12659
|
+
metadata: z.record(z.unknown()).optional()
|
|
12660
|
+
}).passthrough();
|
|
12329
12661
|
var LCNNotificationValidator = z.object({
|
|
12330
12662
|
type: LCNNotificationTypeEnumValidator,
|
|
12331
12663
|
to: LCNProfileValidator.partial().and(z.object({ did: z.string() })),
|
|
@@ -12448,31 +12780,55 @@ var IssueInboxSigningAuthorityValidator = z.object({
|
|
|
12448
12780
|
});
|
|
12449
12781
|
var IssueInboxCredentialValidator = z.object({
|
|
12450
12782
|
recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
|
|
12451
|
-
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
12783
|
+
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
12784
|
+
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
12785
|
+
),
|
|
12452
12786
|
configuration: z.object({
|
|
12453
|
-
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
12787
|
+
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
12788
|
+
"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."
|
|
12789
|
+
),
|
|
12454
12790
|
webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
12455
12791
|
expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
12456
12792
|
delivery: z.object({
|
|
12457
|
-
suppress: z.boolean().optional().default(false).describe(
|
|
12793
|
+
suppress: z.boolean().optional().default(false).describe(
|
|
12794
|
+
"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."
|
|
12795
|
+
),
|
|
12458
12796
|
template: z.object({
|
|
12459
|
-
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
12797
|
+
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
12798
|
+
"The template ID to use for the credential delivery. If not provided, the default template will be used."
|
|
12799
|
+
),
|
|
12460
12800
|
model: z.object({
|
|
12461
12801
|
issuer: z.object({
|
|
12462
|
-
name: z.string().optional().describe(
|
|
12802
|
+
name: z.string().optional().describe(
|
|
12803
|
+
'The name of the organization (e.g., "State University").'
|
|
12804
|
+
),
|
|
12463
12805
|
logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
|
|
12464
12806
|
}).optional(),
|
|
12465
12807
|
credential: z.object({
|
|
12466
|
-
name: z.string().optional().describe(
|
|
12467
|
-
|
|
12808
|
+
name: z.string().optional().describe(
|
|
12809
|
+
'The name of the credential (e.g., "Bachelor of Science").'
|
|
12810
|
+
),
|
|
12811
|
+
type: z.string().optional().describe(
|
|
12812
|
+
'The type of the credential (e.g., "degree", "certificate").'
|
|
12813
|
+
)
|
|
12468
12814
|
}).optional(),
|
|
12469
12815
|
recipient: z.object({
|
|
12470
|
-
name: z.string().optional().describe(
|
|
12816
|
+
name: z.string().optional().describe(
|
|
12817
|
+
'The name of the recipient (e.g., "John Doe").'
|
|
12818
|
+
)
|
|
12471
12819
|
}).optional()
|
|
12472
|
-
}).describe(
|
|
12473
|
-
|
|
12474
|
-
|
|
12475
|
-
|
|
12820
|
+
}).describe(
|
|
12821
|
+
"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."
|
|
12822
|
+
)
|
|
12823
|
+
}).optional().describe(
|
|
12824
|
+
"The template to use for the credential delivery. If not provided, the default template will be used."
|
|
12825
|
+
)
|
|
12826
|
+
}).optional().describe(
|
|
12827
|
+
"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."
|
|
12828
|
+
)
|
|
12829
|
+
}).optional().describe(
|
|
12830
|
+
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
12831
|
+
)
|
|
12476
12832
|
});
|
|
12477
12833
|
var IssueInboxCredentialResponseValidator = z.object({
|
|
12478
12834
|
issuanceId: z.string(),
|
|
@@ -12534,6 +12890,191 @@ var ClaimTokenValidator = z.object({
|
|
|
12534
12890
|
expiresAt: z.string(),
|
|
12535
12891
|
used: z.boolean()
|
|
12536
12892
|
});
|
|
12893
|
+
var TagValidator = z.object({
|
|
12894
|
+
id: z.string(),
|
|
12895
|
+
name: z.string().min(1),
|
|
12896
|
+
slug: z.string().min(1),
|
|
12897
|
+
createdAt: z.string().optional(),
|
|
12898
|
+
updatedAt: z.string().optional()
|
|
12899
|
+
});
|
|
12900
|
+
var SkillStatusEnum = z.enum(["active", "archived"]);
|
|
12901
|
+
var SkillValidator = z.object({
|
|
12902
|
+
id: z.string(),
|
|
12903
|
+
statement: z.string(),
|
|
12904
|
+
description: z.string().optional(),
|
|
12905
|
+
code: z.string().optional(),
|
|
12906
|
+
icon: z.string().optional(),
|
|
12907
|
+
type: z.string().default("skill"),
|
|
12908
|
+
status: SkillStatusEnum.default("active"),
|
|
12909
|
+
frameworkId: z.string().optional(),
|
|
12910
|
+
createdAt: z.string().optional(),
|
|
12911
|
+
updatedAt: z.string().optional()
|
|
12912
|
+
});
|
|
12913
|
+
var BaseSkillQueryValidator = z.object({
|
|
12914
|
+
id: StringQuery,
|
|
12915
|
+
statement: StringQuery,
|
|
12916
|
+
description: StringQuery,
|
|
12917
|
+
code: StringQuery,
|
|
12918
|
+
type: StringQuery,
|
|
12919
|
+
status: SkillStatusEnum.or(z.object({ $in: SkillStatusEnum.array() }))
|
|
12920
|
+
}).partial();
|
|
12921
|
+
var SkillQueryValidator = z.union([
|
|
12922
|
+
z.object({
|
|
12923
|
+
$or: BaseSkillQueryValidator.array()
|
|
12924
|
+
}),
|
|
12925
|
+
BaseSkillQueryValidator
|
|
12926
|
+
]);
|
|
12927
|
+
var SkillFrameworkStatusEnum = z.enum(["active", "archived"]);
|
|
12928
|
+
var SkillFrameworkValidator = z.object({
|
|
12929
|
+
id: z.string(),
|
|
12930
|
+
name: z.string(),
|
|
12931
|
+
description: z.string().optional(),
|
|
12932
|
+
image: z.string().optional(),
|
|
12933
|
+
sourceURI: z.string().url().optional(),
|
|
12934
|
+
status: SkillFrameworkStatusEnum.default("active"),
|
|
12935
|
+
createdAt: z.string().optional(),
|
|
12936
|
+
updatedAt: z.string().optional()
|
|
12937
|
+
});
|
|
12938
|
+
var PaginatedSkillFrameworksValidator = PaginationResponseValidator.extend({
|
|
12939
|
+
records: SkillFrameworkValidator.array()
|
|
12940
|
+
});
|
|
12941
|
+
var SkillTreeNodeValidator = SkillValidator.extend({
|
|
12942
|
+
children: z.array(z.lazy(() => SkillTreeNodeValidator)),
|
|
12943
|
+
hasChildren: z.boolean(),
|
|
12944
|
+
childrenCursor: z.string().nullable().optional()
|
|
12945
|
+
}).openapi({ ref: "SkillTreeNode" });
|
|
12946
|
+
var PaginatedSkillTreeValidator = z.object({
|
|
12947
|
+
hasMore: z.boolean(),
|
|
12948
|
+
cursor: z.string().nullable(),
|
|
12949
|
+
records: z.array(SkillTreeNodeValidator)
|
|
12950
|
+
});
|
|
12951
|
+
var SkillTreeNodeInputValidator = z.lazy(
|
|
12952
|
+
() => z.object({
|
|
12953
|
+
id: z.string().optional(),
|
|
12954
|
+
statement: z.string(),
|
|
12955
|
+
description: z.string().optional(),
|
|
12956
|
+
code: z.string().optional(),
|
|
12957
|
+
icon: z.string().optional(),
|
|
12958
|
+
type: z.string().optional(),
|
|
12959
|
+
status: SkillStatusEnum.optional(),
|
|
12960
|
+
children: z.array(SkillTreeNodeInputValidator).optional()
|
|
12961
|
+
})
|
|
12962
|
+
).openapi({ ref: "SkillTreeNodeInput" });
|
|
12963
|
+
var LinkProviderFrameworkInputValidator = z.object({
|
|
12964
|
+
frameworkId: z.string()
|
|
12965
|
+
});
|
|
12966
|
+
var CreateManagedFrameworkInputValidator = z.object({
|
|
12967
|
+
id: z.string().optional(),
|
|
12968
|
+
name: z.string().min(1),
|
|
12969
|
+
description: z.string().optional(),
|
|
12970
|
+
image: z.string().optional(),
|
|
12971
|
+
sourceURI: z.string().url().optional(),
|
|
12972
|
+
status: SkillFrameworkStatusEnum.optional(),
|
|
12973
|
+
skills: z.array(SkillTreeNodeInputValidator).optional(),
|
|
12974
|
+
boostUris: z.array(z.string()).optional()
|
|
12975
|
+
});
|
|
12976
|
+
var UpdateFrameworkInputValidator = z.object({
|
|
12977
|
+
id: z.string(),
|
|
12978
|
+
name: z.string().min(1).optional(),
|
|
12979
|
+
description: z.string().optional(),
|
|
12980
|
+
image: z.string().optional(),
|
|
12981
|
+
sourceURI: z.string().url().optional(),
|
|
12982
|
+
status: SkillFrameworkStatusEnum.optional()
|
|
12983
|
+
}).refine(
|
|
12984
|
+
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
|
|
12985
|
+
{
|
|
12986
|
+
message: "At least one field must be provided to update",
|
|
12987
|
+
path: ["name"]
|
|
12988
|
+
}
|
|
12989
|
+
);
|
|
12990
|
+
var DeleteFrameworkInputValidator = z.object({ id: z.string() });
|
|
12991
|
+
var CreateManagedFrameworkBatchInputValidator = z.object({
|
|
12992
|
+
frameworks: z.array(
|
|
12993
|
+
CreateManagedFrameworkInputValidator.extend({
|
|
12994
|
+
skills: z.array(SkillTreeNodeInputValidator).optional()
|
|
12995
|
+
})
|
|
12996
|
+
).min(1)
|
|
12997
|
+
});
|
|
12998
|
+
var SkillFrameworkAdminInputValidator = z.object({
|
|
12999
|
+
frameworkId: z.string(),
|
|
13000
|
+
profileId: z.string()
|
|
13001
|
+
});
|
|
13002
|
+
var SkillFrameworkIdInputValidator = z.object({ frameworkId: z.string() });
|
|
13003
|
+
var SkillFrameworkAdminsValidator = LCNProfileValidator.array();
|
|
13004
|
+
var SyncFrameworkInputValidator = z.object({ id: z.string() });
|
|
13005
|
+
var AddTagInputValidator = z.object({
|
|
13006
|
+
slug: z.string().min(1),
|
|
13007
|
+
name: z.string().min(1)
|
|
13008
|
+
});
|
|
13009
|
+
var CreateSkillInputValidator = z.object({
|
|
13010
|
+
frameworkId: z.string(),
|
|
13011
|
+
skill: SkillTreeNodeInputValidator,
|
|
13012
|
+
parentId: z.string().nullable().optional()
|
|
13013
|
+
});
|
|
13014
|
+
var UpdateSkillInputValidator = z.object({
|
|
13015
|
+
frameworkId: z.string(),
|
|
13016
|
+
id: z.string(),
|
|
13017
|
+
statement: z.string().optional(),
|
|
13018
|
+
description: z.string().optional(),
|
|
13019
|
+
code: z.string().optional(),
|
|
13020
|
+
icon: z.string().optional(),
|
|
13021
|
+
type: z.string().optional(),
|
|
13022
|
+
status: SkillStatusEnum.optional()
|
|
13023
|
+
}).refine(
|
|
13024
|
+
(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,
|
|
13025
|
+
{
|
|
13026
|
+
message: "At least one field must be provided to update a skill",
|
|
13027
|
+
path: ["statement"]
|
|
13028
|
+
}
|
|
13029
|
+
);
|
|
13030
|
+
var SkillDeletionStrategyValidator = z.enum(["recursive", "reparent"]);
|
|
13031
|
+
var DeleteSkillInputValidator = z.object({
|
|
13032
|
+
frameworkId: z.string(),
|
|
13033
|
+
id: z.string(),
|
|
13034
|
+
strategy: SkillDeletionStrategyValidator.optional().default("reparent")
|
|
13035
|
+
});
|
|
13036
|
+
var CreateSkillsBatchInputValidator = z.object({
|
|
13037
|
+
frameworkId: z.string(),
|
|
13038
|
+
skills: z.array(SkillTreeNodeInputValidator).min(1),
|
|
13039
|
+
parentId: z.string().nullable().optional()
|
|
13040
|
+
});
|
|
13041
|
+
var ReplaceSkillFrameworkSkillsInputValidator = z.object({
|
|
13042
|
+
frameworkId: z.string(),
|
|
13043
|
+
skills: z.array(SkillTreeNodeInputValidator).min(0)
|
|
13044
|
+
});
|
|
13045
|
+
var ReplaceSkillFrameworkSkillsResultValidator = z.object({
|
|
13046
|
+
created: z.number().int().min(0),
|
|
13047
|
+
updated: z.number().int().min(0),
|
|
13048
|
+
deleted: z.number().int().min(0),
|
|
13049
|
+
unchanged: z.number().int().min(0),
|
|
13050
|
+
total: z.number().int().min(0)
|
|
13051
|
+
});
|
|
13052
|
+
var CountSkillsInputValidator = z.object({
|
|
13053
|
+
frameworkId: z.string(),
|
|
13054
|
+
skillId: z.string().optional(),
|
|
13055
|
+
recursive: z.boolean().optional().default(false),
|
|
13056
|
+
onlyCountCompetencies: z.boolean().optional().default(false)
|
|
13057
|
+
});
|
|
13058
|
+
var CountSkillsResultValidator = z.object({
|
|
13059
|
+
count: z.number().int().min(0)
|
|
13060
|
+
});
|
|
13061
|
+
var GetFullSkillTreeInputValidator = z.object({
|
|
13062
|
+
frameworkId: z.string()
|
|
13063
|
+
});
|
|
13064
|
+
var GetFullSkillTreeResultValidator = z.object({
|
|
13065
|
+
skills: z.array(SkillTreeNodeValidator)
|
|
13066
|
+
});
|
|
13067
|
+
var GetSkillPathInputValidator = z.object({
|
|
13068
|
+
frameworkId: z.string(),
|
|
13069
|
+
skillId: z.string()
|
|
13070
|
+
});
|
|
13071
|
+
var GetSkillPathResultValidator = z.object({
|
|
13072
|
+
path: z.array(SkillValidator)
|
|
13073
|
+
});
|
|
13074
|
+
var FrameworkWithSkillsValidator = z.object({
|
|
13075
|
+
framework: SkillFrameworkValidator,
|
|
13076
|
+
skills: PaginatedSkillTreeValidator
|
|
13077
|
+
});
|
|
12537
13078
|
|
|
12538
13079
|
// ../../learn-card-helpers/dist/helpers.esm.js
|
|
12539
13080
|
var __create2 = Object.create;
|
|
@@ -12587,6 +13128,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12587
13128
|
AchievementSubjectValidator: () => AchievementSubjectValidator2,
|
|
12588
13129
|
AchievementTypeValidator: () => AchievementTypeValidator2,
|
|
12589
13130
|
AchievementValidator: () => AchievementValidator2,
|
|
13131
|
+
AddTagInputValidator: () => AddTagInputValidator2,
|
|
12590
13132
|
AddressValidator: () => AddressValidator2,
|
|
12591
13133
|
AlignmentTargetTypeValidator: () => AlignmentTargetTypeValidator2,
|
|
12592
13134
|
AlignmentValidator: () => AlignmentValidator2,
|
|
@@ -12626,14 +13168,22 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12626
13168
|
ContactMethodVerificationValidator: () => ContactMethodVerificationValidator2,
|
|
12627
13169
|
ContextValidator: () => ContextValidator2,
|
|
12628
13170
|
ContractCredentialValidator: () => ContractCredentialValidator2,
|
|
13171
|
+
CountSkillsInputValidator: () => CountSkillsInputValidator2,
|
|
13172
|
+
CountSkillsResultValidator: () => CountSkillsResultValidator2,
|
|
12629
13173
|
CreateContactMethodSessionResponseValidator: () => CreateContactMethodSessionResponseValidator2,
|
|
12630
13174
|
CreateContactMethodSessionValidator: () => CreateContactMethodSessionValidator2,
|
|
13175
|
+
CreateManagedFrameworkBatchInputValidator: () => CreateManagedFrameworkBatchInputValidator2,
|
|
13176
|
+
CreateManagedFrameworkInputValidator: () => CreateManagedFrameworkInputValidator2,
|
|
13177
|
+
CreateSkillInputValidator: () => CreateSkillInputValidator2,
|
|
13178
|
+
CreateSkillsBatchInputValidator: () => CreateSkillsBatchInputValidator2,
|
|
12631
13179
|
CredentialInfoValidator: () => CredentialInfoValidator2,
|
|
12632
13180
|
CredentialRecordValidator: () => CredentialRecordValidator2,
|
|
12633
13181
|
CredentialSchemaValidator: () => CredentialSchemaValidator2,
|
|
12634
13182
|
CredentialStatusValidator: () => CredentialStatusValidator2,
|
|
12635
13183
|
CredentialSubjectValidator: () => CredentialSubjectValidator2,
|
|
12636
13184
|
CriteriaValidator: () => CriteriaValidator2,
|
|
13185
|
+
DeleteFrameworkInputValidator: () => DeleteFrameworkInputValidator2,
|
|
13186
|
+
DeleteSkillInputValidator: () => DeleteSkillInputValidator2,
|
|
12637
13187
|
DidDocumentValidator: () => DidDocumentValidator2,
|
|
12638
13188
|
EncryptedCredentialRecordValidator: () => EncryptedCredentialRecordValidator2,
|
|
12639
13189
|
EncryptedRecordValidator: () => EncryptedRecordValidator2,
|
|
@@ -12641,8 +13191,13 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12641
13191
|
EndorsementSubjectValidator: () => EndorsementSubjectValidator2,
|
|
12642
13192
|
EvidenceValidator: () => EvidenceValidator2,
|
|
12643
13193
|
FlatAuthGrantValidator: () => FlatAuthGrantValidator2,
|
|
13194
|
+
FrameworkWithSkillsValidator: () => FrameworkWithSkillsValidator2,
|
|
12644
13195
|
FullClaimHookValidator: () => FullClaimHookValidator2,
|
|
12645
13196
|
GeoCoordinatesValidator: () => GeoCoordinatesValidator2,
|
|
13197
|
+
GetFullSkillTreeInputValidator: () => GetFullSkillTreeInputValidator2,
|
|
13198
|
+
GetFullSkillTreeResultValidator: () => GetFullSkillTreeResultValidator2,
|
|
13199
|
+
GetSkillPathInputValidator: () => GetSkillPathInputValidator2,
|
|
13200
|
+
GetSkillPathResultValidator: () => GetSkillPathResultValidator2,
|
|
12646
13201
|
IdentifierEntryValidator: () => IdentifierEntryValidator2,
|
|
12647
13202
|
IdentifierTypeValidator: () => IdentifierTypeValidator2,
|
|
12648
13203
|
IdentityObjectValidator: () => IdentityObjectValidator2,
|
|
@@ -12681,6 +13236,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12681
13236
|
LCNProfileValidator: () => LCNProfileValidator2,
|
|
12682
13237
|
LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator2,
|
|
12683
13238
|
LCNSigningAuthorityValidator: () => LCNSigningAuthorityValidator2,
|
|
13239
|
+
LinkProviderFrameworkInputValidator: () => LinkProviderFrameworkInputValidator2,
|
|
12684
13240
|
PaginatedBoostRecipientsValidator: () => PaginatedBoostRecipientsValidator2,
|
|
12685
13241
|
PaginatedBoostRecipientsWithChildrenValidator: () => PaginatedBoostRecipientsWithChildrenValidator2,
|
|
12686
13242
|
PaginatedBoostsValidator: () => PaginatedBoostsValidator2,
|
|
@@ -12698,6 +13254,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12698
13254
|
PaginatedLCNProfileManagersValidator: () => PaginatedLCNProfileManagersValidator2,
|
|
12699
13255
|
PaginatedLCNProfilesAndManagersValidator: () => PaginatedLCNProfilesAndManagersValidator2,
|
|
12700
13256
|
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator2,
|
|
13257
|
+
PaginatedSkillFrameworksValidator: () => PaginatedSkillFrameworksValidator2,
|
|
13258
|
+
PaginatedSkillTreeValidator: () => PaginatedSkillTreeValidator2,
|
|
12701
13259
|
PaginationOptionsValidator: () => PaginationOptionsValidator2,
|
|
12702
13260
|
PaginationResponseValidator: () => PaginationResponseValidator2,
|
|
12703
13261
|
ProfileValidator: () => ProfileValidator2,
|
|
@@ -12705,6 +13263,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12705
13263
|
RefreshServiceValidator: () => RefreshServiceValidator2,
|
|
12706
13264
|
RegExpValidator: () => RegExpValidator2,
|
|
12707
13265
|
RelatedValidator: () => RelatedValidator2,
|
|
13266
|
+
ReplaceSkillFrameworkSkillsInputValidator: () => ReplaceSkillFrameworkSkillsInputValidator2,
|
|
13267
|
+
ReplaceSkillFrameworkSkillsResultValidator: () => ReplaceSkillFrameworkSkillsResultValidator2,
|
|
12708
13268
|
ResultDescriptionValidator: () => ResultDescriptionValidator2,
|
|
12709
13269
|
ResultStatusTypeValidator: () => ResultStatusTypeValidator2,
|
|
12710
13270
|
ResultTypeValidator: () => ResultTypeValidator2,
|
|
@@ -12713,11 +13273,27 @@ var require_types_cjs_development = __commonJS2({
|
|
|
12713
13273
|
SentCredentialInfoValidator: () => SentCredentialInfoValidator2,
|
|
12714
13274
|
ServiceValidator: () => ServiceValidator2,
|
|
12715
13275
|
SetPrimaryContactMethodValidator: () => SetPrimaryContactMethodValidator2,
|
|
13276
|
+
SkillDeletionStrategyValidator: () => SkillDeletionStrategyValidator2,
|
|
13277
|
+
SkillFrameworkAdminInputValidator: () => SkillFrameworkAdminInputValidator2,
|
|
13278
|
+
SkillFrameworkAdminsValidator: () => SkillFrameworkAdminsValidator2,
|
|
13279
|
+
SkillFrameworkIdInputValidator: () => SkillFrameworkIdInputValidator2,
|
|
13280
|
+
SkillFrameworkQueryValidator: () => SkillFrameworkQueryValidator2,
|
|
13281
|
+
SkillFrameworkStatusEnum: () => SkillFrameworkStatusEnum2,
|
|
13282
|
+
SkillFrameworkValidator: () => SkillFrameworkValidator2,
|
|
13283
|
+
SkillQueryValidator: () => SkillQueryValidator2,
|
|
13284
|
+
SkillStatusEnum: () => SkillStatusEnum2,
|
|
13285
|
+
SkillTreeNodeInputValidator: () => SkillTreeNodeInputValidator2,
|
|
13286
|
+
SkillTreeNodeValidator: () => SkillTreeNodeValidator2,
|
|
13287
|
+
SkillValidator: () => SkillValidator2,
|
|
12716
13288
|
StringQuery: () => StringQuery2,
|
|
13289
|
+
SyncFrameworkInputValidator: () => SyncFrameworkInputValidator2,
|
|
13290
|
+
TagValidator: () => TagValidator2,
|
|
12717
13291
|
TermsOfUseValidator: () => TermsOfUseValidator2,
|
|
12718
13292
|
UnsignedAchievementCredentialValidator: () => UnsignedAchievementCredentialValidator2,
|
|
12719
13293
|
UnsignedVCValidator: () => UnsignedVCValidator2,
|
|
12720
13294
|
UnsignedVPValidator: () => UnsignedVPValidator2,
|
|
13295
|
+
UpdateFrameworkInputValidator: () => UpdateFrameworkInputValidator2,
|
|
13296
|
+
UpdateSkillInputValidator: () => UpdateSkillInputValidator2,
|
|
12721
13297
|
VC2EvidenceValidator: () => VC2EvidenceValidator2,
|
|
12722
13298
|
VCValidator: () => VCValidator2,
|
|
12723
13299
|
VPValidator: () => VPValidator2,
|
|
@@ -17200,7 +17776,14 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17200
17776
|
}
|
|
17201
17777
|
})
|
|
17202
17778
|
);
|
|
17203
|
-
var
|
|
17779
|
+
var BaseStringQuery2 = z2.string().or(z2.object({ $in: z2.string().array() })).or(z2.object({ $regex: RegExpValidator2 }));
|
|
17780
|
+
var StringQuery2 = z2.union([
|
|
17781
|
+
BaseStringQuery2,
|
|
17782
|
+
z2.object({
|
|
17783
|
+
$or: BaseStringQuery2.array()
|
|
17784
|
+
})
|
|
17785
|
+
]);
|
|
17786
|
+
extendZodWithOpenApi2(z2);
|
|
17204
17787
|
var LCNProfileDisplayValidator2 = z2.object({
|
|
17205
17788
|
backgroundColor: z2.string().optional(),
|
|
17206
17789
|
backgroundImage: z2.string().optional(),
|
|
@@ -17285,7 +17868,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17285
17868
|
to: z2.string(),
|
|
17286
17869
|
from: z2.string(),
|
|
17287
17870
|
sent: z2.string().datetime(),
|
|
17288
|
-
received: z2.string().datetime().optional()
|
|
17871
|
+
received: z2.string().datetime().optional(),
|
|
17872
|
+
metadata: z2.record(z2.unknown()).optional()
|
|
17289
17873
|
});
|
|
17290
17874
|
var BoostPermissionsValidator2 = z2.object({
|
|
17291
17875
|
role: z2.string(),
|
|
@@ -17358,7 +17942,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17358
17942
|
claimPermissions: BoostPermissionsValidator2.optional(),
|
|
17359
17943
|
allowAnyoneToCreateChildren: z2.boolean().optional()
|
|
17360
17944
|
});
|
|
17361
|
-
var
|
|
17945
|
+
var BaseBoostQueryValidator2 = z2.object({
|
|
17362
17946
|
uri: StringQuery2,
|
|
17363
17947
|
name: StringQuery2,
|
|
17364
17948
|
type: StringQuery2,
|
|
@@ -17367,6 +17951,12 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17367
17951
|
status: LCNBoostStatus2.or(z2.object({ $in: LCNBoostStatus2.array() })),
|
|
17368
17952
|
autoConnectRecipients: z2.boolean()
|
|
17369
17953
|
}).partial();
|
|
17954
|
+
var BoostQueryValidator2 = z2.union([
|
|
17955
|
+
z2.object({
|
|
17956
|
+
$or: BaseBoostQueryValidator2.array()
|
|
17957
|
+
}),
|
|
17958
|
+
BaseBoostQueryValidator2
|
|
17959
|
+
]);
|
|
17370
17960
|
var PaginatedBoostsValidator2 = PaginationResponseValidator2.extend({
|
|
17371
17961
|
records: BoostValidator2.array()
|
|
17372
17962
|
});
|
|
@@ -17422,11 +18012,25 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17422
18012
|
var ConsentFlowContractValidator2 = z2.object({
|
|
17423
18013
|
read: z2.object({
|
|
17424
18014
|
anonymize: z2.boolean().optional(),
|
|
17425
|
-
credentials: z2.object({
|
|
18015
|
+
credentials: z2.object({
|
|
18016
|
+
categories: z2.record(
|
|
18017
|
+
z2.object({
|
|
18018
|
+
required: z2.boolean(),
|
|
18019
|
+
defaultEnabled: z2.boolean().optional()
|
|
18020
|
+
})
|
|
18021
|
+
).default({})
|
|
18022
|
+
}).default({}),
|
|
17426
18023
|
personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
|
|
17427
18024
|
}).default({}),
|
|
17428
18025
|
write: z2.object({
|
|
17429
|
-
credentials: z2.object({
|
|
18026
|
+
credentials: z2.object({
|
|
18027
|
+
categories: z2.record(
|
|
18028
|
+
z2.object({
|
|
18029
|
+
required: z2.boolean(),
|
|
18030
|
+
defaultEnabled: z2.boolean().optional()
|
|
18031
|
+
})
|
|
18032
|
+
).default({})
|
|
18033
|
+
}).default({}),
|
|
17430
18034
|
personal: z2.record(z2.object({ required: z2.boolean(), defaultEnabled: z2.boolean().optional() })).default({})
|
|
17431
18035
|
}).default({})
|
|
17432
18036
|
});
|
|
@@ -17569,6 +18173,17 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17569
18173
|
var PaginatedConsentFlowTransactionsValidator2 = PaginationResponseValidator2.extend({
|
|
17570
18174
|
records: ConsentFlowTransactionValidator2.array()
|
|
17571
18175
|
});
|
|
18176
|
+
var BaseSkillFrameworkQueryValidator2 = z2.object({
|
|
18177
|
+
id: StringQuery2,
|
|
18178
|
+
name: StringQuery2,
|
|
18179
|
+
description: StringQuery2,
|
|
18180
|
+
sourceURI: StringQuery2,
|
|
18181
|
+
status: StringQuery2
|
|
18182
|
+
}).partial();
|
|
18183
|
+
var SkillFrameworkQueryValidator2 = z2.union([
|
|
18184
|
+
z2.object({ $or: BaseSkillFrameworkQueryValidator2.array() }),
|
|
18185
|
+
BaseSkillFrameworkQueryValidator2
|
|
18186
|
+
]);
|
|
17572
18187
|
var ContractCredentialValidator2 = z2.object({
|
|
17573
18188
|
credentialUri: z2.string(),
|
|
17574
18189
|
termsUri: z2.string(),
|
|
@@ -17623,8 +18238,9 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17623
18238
|
vcUris: z2.array(z2.string()).optional(),
|
|
17624
18239
|
vpUris: z2.array(z2.string()).optional(),
|
|
17625
18240
|
transaction: ConsentFlowTransactionValidator2.optional(),
|
|
17626
|
-
inbox: LCNNotificationInboxValidator2.optional()
|
|
17627
|
-
|
|
18241
|
+
inbox: LCNNotificationInboxValidator2.optional(),
|
|
18242
|
+
metadata: z2.record(z2.unknown()).optional()
|
|
18243
|
+
}).passthrough();
|
|
17628
18244
|
var LCNNotificationValidator2 = z2.object({
|
|
17629
18245
|
type: LCNNotificationTypeEnumValidator2,
|
|
17630
18246
|
to: LCNProfileValidator2.partial().and(z2.object({ did: z2.string() })),
|
|
@@ -17747,31 +18363,55 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17747
18363
|
});
|
|
17748
18364
|
var IssueInboxCredentialValidator2 = z2.object({
|
|
17749
18365
|
recipient: ContactMethodQueryValidator2.describe("The recipient of the credential"),
|
|
17750
|
-
credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe(
|
|
18366
|
+
credential: VCValidator2.passthrough().or(VPValidator2.passthrough()).or(UnsignedVCValidator2.passthrough()).describe(
|
|
18367
|
+
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
18368
|
+
),
|
|
17751
18369
|
configuration: z2.object({
|
|
17752
|
-
signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe(
|
|
18370
|
+
signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe(
|
|
18371
|
+
"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."
|
|
18372
|
+
),
|
|
17753
18373
|
webhookUrl: z2.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
17754
18374
|
expiresInDays: z2.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
17755
18375
|
delivery: z2.object({
|
|
17756
|
-
suppress: z2.boolean().optional().default(false).describe(
|
|
18376
|
+
suppress: z2.boolean().optional().default(false).describe(
|
|
18377
|
+
"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."
|
|
18378
|
+
),
|
|
17757
18379
|
template: z2.object({
|
|
17758
|
-
id: z2.enum(["universal-inbox-claim"]).optional().describe(
|
|
18380
|
+
id: z2.enum(["universal-inbox-claim"]).optional().describe(
|
|
18381
|
+
"The template ID to use for the credential delivery. If not provided, the default template will be used."
|
|
18382
|
+
),
|
|
17759
18383
|
model: z2.object({
|
|
17760
18384
|
issuer: z2.object({
|
|
17761
|
-
name: z2.string().optional().describe(
|
|
18385
|
+
name: z2.string().optional().describe(
|
|
18386
|
+
'The name of the organization (e.g., "State University").'
|
|
18387
|
+
),
|
|
17762
18388
|
logoUrl: z2.string().url().optional().describe("The URL of the organization's logo.")
|
|
17763
18389
|
}).optional(),
|
|
17764
18390
|
credential: z2.object({
|
|
17765
|
-
name: z2.string().optional().describe(
|
|
17766
|
-
|
|
18391
|
+
name: z2.string().optional().describe(
|
|
18392
|
+
'The name of the credential (e.g., "Bachelor of Science").'
|
|
18393
|
+
),
|
|
18394
|
+
type: z2.string().optional().describe(
|
|
18395
|
+
'The type of the credential (e.g., "degree", "certificate").'
|
|
18396
|
+
)
|
|
17767
18397
|
}).optional(),
|
|
17768
18398
|
recipient: z2.object({
|
|
17769
|
-
name: z2.string().optional().describe(
|
|
18399
|
+
name: z2.string().optional().describe(
|
|
18400
|
+
'The name of the recipient (e.g., "John Doe").'
|
|
18401
|
+
)
|
|
17770
18402
|
}).optional()
|
|
17771
|
-
}).describe(
|
|
17772
|
-
|
|
17773
|
-
|
|
17774
|
-
|
|
18403
|
+
}).describe(
|
|
18404
|
+
"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."
|
|
18405
|
+
)
|
|
18406
|
+
}).optional().describe(
|
|
18407
|
+
"The template to use for the credential delivery. If not provided, the default template will be used."
|
|
18408
|
+
)
|
|
18409
|
+
}).optional().describe(
|
|
18410
|
+
"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."
|
|
18411
|
+
)
|
|
18412
|
+
}).optional().describe(
|
|
18413
|
+
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
18414
|
+
)
|
|
17775
18415
|
});
|
|
17776
18416
|
var IssueInboxCredentialResponseValidator2 = z2.object({
|
|
17777
18417
|
issuanceId: z2.string(),
|
|
@@ -17833,6 +18473,191 @@ var require_types_cjs_development = __commonJS2({
|
|
|
17833
18473
|
expiresAt: z2.string(),
|
|
17834
18474
|
used: z2.boolean()
|
|
17835
18475
|
});
|
|
18476
|
+
var TagValidator2 = z2.object({
|
|
18477
|
+
id: z2.string(),
|
|
18478
|
+
name: z2.string().min(1),
|
|
18479
|
+
slug: z2.string().min(1),
|
|
18480
|
+
createdAt: z2.string().optional(),
|
|
18481
|
+
updatedAt: z2.string().optional()
|
|
18482
|
+
});
|
|
18483
|
+
var SkillStatusEnum2 = z2.enum(["active", "archived"]);
|
|
18484
|
+
var SkillValidator2 = z2.object({
|
|
18485
|
+
id: z2.string(),
|
|
18486
|
+
statement: z2.string(),
|
|
18487
|
+
description: z2.string().optional(),
|
|
18488
|
+
code: z2.string().optional(),
|
|
18489
|
+
icon: z2.string().optional(),
|
|
18490
|
+
type: z2.string().default("skill"),
|
|
18491
|
+
status: SkillStatusEnum2.default("active"),
|
|
18492
|
+
frameworkId: z2.string().optional(),
|
|
18493
|
+
createdAt: z2.string().optional(),
|
|
18494
|
+
updatedAt: z2.string().optional()
|
|
18495
|
+
});
|
|
18496
|
+
var BaseSkillQueryValidator2 = z2.object({
|
|
18497
|
+
id: StringQuery2,
|
|
18498
|
+
statement: StringQuery2,
|
|
18499
|
+
description: StringQuery2,
|
|
18500
|
+
code: StringQuery2,
|
|
18501
|
+
type: StringQuery2,
|
|
18502
|
+
status: SkillStatusEnum2.or(z2.object({ $in: SkillStatusEnum2.array() }))
|
|
18503
|
+
}).partial();
|
|
18504
|
+
var SkillQueryValidator2 = z2.union([
|
|
18505
|
+
z2.object({
|
|
18506
|
+
$or: BaseSkillQueryValidator2.array()
|
|
18507
|
+
}),
|
|
18508
|
+
BaseSkillQueryValidator2
|
|
18509
|
+
]);
|
|
18510
|
+
var SkillFrameworkStatusEnum2 = z2.enum(["active", "archived"]);
|
|
18511
|
+
var SkillFrameworkValidator2 = z2.object({
|
|
18512
|
+
id: z2.string(),
|
|
18513
|
+
name: z2.string(),
|
|
18514
|
+
description: z2.string().optional(),
|
|
18515
|
+
image: z2.string().optional(),
|
|
18516
|
+
sourceURI: z2.string().url().optional(),
|
|
18517
|
+
status: SkillFrameworkStatusEnum2.default("active"),
|
|
18518
|
+
createdAt: z2.string().optional(),
|
|
18519
|
+
updatedAt: z2.string().optional()
|
|
18520
|
+
});
|
|
18521
|
+
var PaginatedSkillFrameworksValidator2 = PaginationResponseValidator2.extend({
|
|
18522
|
+
records: SkillFrameworkValidator2.array()
|
|
18523
|
+
});
|
|
18524
|
+
var SkillTreeNodeValidator2 = SkillValidator2.extend({
|
|
18525
|
+
children: z2.array(z2.lazy(() => SkillTreeNodeValidator2)),
|
|
18526
|
+
hasChildren: z2.boolean(),
|
|
18527
|
+
childrenCursor: z2.string().nullable().optional()
|
|
18528
|
+
}).openapi({ ref: "SkillTreeNode" });
|
|
18529
|
+
var PaginatedSkillTreeValidator2 = z2.object({
|
|
18530
|
+
hasMore: z2.boolean(),
|
|
18531
|
+
cursor: z2.string().nullable(),
|
|
18532
|
+
records: z2.array(SkillTreeNodeValidator2)
|
|
18533
|
+
});
|
|
18534
|
+
var SkillTreeNodeInputValidator2 = z2.lazy(
|
|
18535
|
+
() => z2.object({
|
|
18536
|
+
id: z2.string().optional(),
|
|
18537
|
+
statement: z2.string(),
|
|
18538
|
+
description: z2.string().optional(),
|
|
18539
|
+
code: z2.string().optional(),
|
|
18540
|
+
icon: z2.string().optional(),
|
|
18541
|
+
type: z2.string().optional(),
|
|
18542
|
+
status: SkillStatusEnum2.optional(),
|
|
18543
|
+
children: z2.array(SkillTreeNodeInputValidator2).optional()
|
|
18544
|
+
})
|
|
18545
|
+
).openapi({ ref: "SkillTreeNodeInput" });
|
|
18546
|
+
var LinkProviderFrameworkInputValidator2 = z2.object({
|
|
18547
|
+
frameworkId: z2.string()
|
|
18548
|
+
});
|
|
18549
|
+
var CreateManagedFrameworkInputValidator2 = z2.object({
|
|
18550
|
+
id: z2.string().optional(),
|
|
18551
|
+
name: z2.string().min(1),
|
|
18552
|
+
description: z2.string().optional(),
|
|
18553
|
+
image: z2.string().optional(),
|
|
18554
|
+
sourceURI: z2.string().url().optional(),
|
|
18555
|
+
status: SkillFrameworkStatusEnum2.optional(),
|
|
18556
|
+
skills: z2.array(SkillTreeNodeInputValidator2).optional(),
|
|
18557
|
+
boostUris: z2.array(z2.string()).optional()
|
|
18558
|
+
});
|
|
18559
|
+
var UpdateFrameworkInputValidator2 = z2.object({
|
|
18560
|
+
id: z2.string(),
|
|
18561
|
+
name: z2.string().min(1).optional(),
|
|
18562
|
+
description: z2.string().optional(),
|
|
18563
|
+
image: z2.string().optional(),
|
|
18564
|
+
sourceURI: z2.string().url().optional(),
|
|
18565
|
+
status: SkillFrameworkStatusEnum2.optional()
|
|
18566
|
+
}).refine(
|
|
18567
|
+
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
|
|
18568
|
+
{
|
|
18569
|
+
message: "At least one field must be provided to update",
|
|
18570
|
+
path: ["name"]
|
|
18571
|
+
}
|
|
18572
|
+
);
|
|
18573
|
+
var DeleteFrameworkInputValidator2 = z2.object({ id: z2.string() });
|
|
18574
|
+
var CreateManagedFrameworkBatchInputValidator2 = z2.object({
|
|
18575
|
+
frameworks: z2.array(
|
|
18576
|
+
CreateManagedFrameworkInputValidator2.extend({
|
|
18577
|
+
skills: z2.array(SkillTreeNodeInputValidator2).optional()
|
|
18578
|
+
})
|
|
18579
|
+
).min(1)
|
|
18580
|
+
});
|
|
18581
|
+
var SkillFrameworkAdminInputValidator2 = z2.object({
|
|
18582
|
+
frameworkId: z2.string(),
|
|
18583
|
+
profileId: z2.string()
|
|
18584
|
+
});
|
|
18585
|
+
var SkillFrameworkIdInputValidator2 = z2.object({ frameworkId: z2.string() });
|
|
18586
|
+
var SkillFrameworkAdminsValidator2 = LCNProfileValidator2.array();
|
|
18587
|
+
var SyncFrameworkInputValidator2 = z2.object({ id: z2.string() });
|
|
18588
|
+
var AddTagInputValidator2 = z2.object({
|
|
18589
|
+
slug: z2.string().min(1),
|
|
18590
|
+
name: z2.string().min(1)
|
|
18591
|
+
});
|
|
18592
|
+
var CreateSkillInputValidator2 = z2.object({
|
|
18593
|
+
frameworkId: z2.string(),
|
|
18594
|
+
skill: SkillTreeNodeInputValidator2,
|
|
18595
|
+
parentId: z2.string().nullable().optional()
|
|
18596
|
+
});
|
|
18597
|
+
var UpdateSkillInputValidator2 = z2.object({
|
|
18598
|
+
frameworkId: z2.string(),
|
|
18599
|
+
id: z2.string(),
|
|
18600
|
+
statement: z2.string().optional(),
|
|
18601
|
+
description: z2.string().optional(),
|
|
18602
|
+
code: z2.string().optional(),
|
|
18603
|
+
icon: z2.string().optional(),
|
|
18604
|
+
type: z2.string().optional(),
|
|
18605
|
+
status: SkillStatusEnum2.optional()
|
|
18606
|
+
}).refine(
|
|
18607
|
+
(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,
|
|
18608
|
+
{
|
|
18609
|
+
message: "At least one field must be provided to update a skill",
|
|
18610
|
+
path: ["statement"]
|
|
18611
|
+
}
|
|
18612
|
+
);
|
|
18613
|
+
var SkillDeletionStrategyValidator2 = z2.enum(["recursive", "reparent"]);
|
|
18614
|
+
var DeleteSkillInputValidator2 = z2.object({
|
|
18615
|
+
frameworkId: z2.string(),
|
|
18616
|
+
id: z2.string(),
|
|
18617
|
+
strategy: SkillDeletionStrategyValidator2.optional().default("reparent")
|
|
18618
|
+
});
|
|
18619
|
+
var CreateSkillsBatchInputValidator2 = z2.object({
|
|
18620
|
+
frameworkId: z2.string(),
|
|
18621
|
+
skills: z2.array(SkillTreeNodeInputValidator2).min(1),
|
|
18622
|
+
parentId: z2.string().nullable().optional()
|
|
18623
|
+
});
|
|
18624
|
+
var ReplaceSkillFrameworkSkillsInputValidator2 = z2.object({
|
|
18625
|
+
frameworkId: z2.string(),
|
|
18626
|
+
skills: z2.array(SkillTreeNodeInputValidator2).min(0)
|
|
18627
|
+
});
|
|
18628
|
+
var ReplaceSkillFrameworkSkillsResultValidator2 = z2.object({
|
|
18629
|
+
created: z2.number().int().min(0),
|
|
18630
|
+
updated: z2.number().int().min(0),
|
|
18631
|
+
deleted: z2.number().int().min(0),
|
|
18632
|
+
unchanged: z2.number().int().min(0),
|
|
18633
|
+
total: z2.number().int().min(0)
|
|
18634
|
+
});
|
|
18635
|
+
var CountSkillsInputValidator2 = z2.object({
|
|
18636
|
+
frameworkId: z2.string(),
|
|
18637
|
+
skillId: z2.string().optional(),
|
|
18638
|
+
recursive: z2.boolean().optional().default(false),
|
|
18639
|
+
onlyCountCompetencies: z2.boolean().optional().default(false)
|
|
18640
|
+
});
|
|
18641
|
+
var CountSkillsResultValidator2 = z2.object({
|
|
18642
|
+
count: z2.number().int().min(0)
|
|
18643
|
+
});
|
|
18644
|
+
var GetFullSkillTreeInputValidator2 = z2.object({
|
|
18645
|
+
frameworkId: z2.string()
|
|
18646
|
+
});
|
|
18647
|
+
var GetFullSkillTreeResultValidator2 = z2.object({
|
|
18648
|
+
skills: z2.array(SkillTreeNodeValidator2)
|
|
18649
|
+
});
|
|
18650
|
+
var GetSkillPathInputValidator2 = z2.object({
|
|
18651
|
+
frameworkId: z2.string(),
|
|
18652
|
+
skillId: z2.string()
|
|
18653
|
+
});
|
|
18654
|
+
var GetSkillPathResultValidator2 = z2.object({
|
|
18655
|
+
path: z2.array(SkillValidator2)
|
|
18656
|
+
});
|
|
18657
|
+
var FrameworkWithSkillsValidator2 = z2.object({
|
|
18658
|
+
framework: SkillFrameworkValidator2,
|
|
18659
|
+
skills: PaginatedSkillTreeValidator2
|
|
18660
|
+
});
|
|
17836
18661
|
}
|
|
17837
18662
|
});
|
|
17838
18663
|
var require_dist2 = __commonJS2({
|
|
@@ -18150,10 +18975,24 @@ async function getLearnCardNetworkPlugin(learnCard, url, apiToken) {
|
|
|
18150
18975
|
await ensureUser();
|
|
18151
18976
|
return client.profile.blocked.query();
|
|
18152
18977
|
},
|
|
18153
|
-
sendCredential: async (_learnCard, profileId, vc, encrypt
|
|
18978
|
+
sendCredential: async (_learnCard, profileId, vc, metadataOrEncrypt, encrypt) => {
|
|
18154
18979
|
await ensureUser();
|
|
18155
|
-
|
|
18156
|
-
|
|
18980
|
+
let metadata;
|
|
18981
|
+
let shouldEncrypt = true;
|
|
18982
|
+
if (typeof metadataOrEncrypt === "boolean") {
|
|
18983
|
+
shouldEncrypt = metadataOrEncrypt;
|
|
18984
|
+
} else if (metadataOrEncrypt !== void 0) {
|
|
18985
|
+
metadata = metadataOrEncrypt;
|
|
18986
|
+
shouldEncrypt = encrypt ?? true;
|
|
18987
|
+
} else {
|
|
18988
|
+
shouldEncrypt = encrypt ?? true;
|
|
18989
|
+
}
|
|
18990
|
+
if (!shouldEncrypt) {
|
|
18991
|
+
return client.credential.sendCredential.mutate({
|
|
18992
|
+
profileId,
|
|
18993
|
+
credential: vc,
|
|
18994
|
+
metadata
|
|
18995
|
+
});
|
|
18157
18996
|
}
|
|
18158
18997
|
const target = await _learnCard.invoke.getProfile(profileId);
|
|
18159
18998
|
if (!target)
|
|
@@ -18162,7 +19001,11 @@ async function getLearnCardNetworkPlugin(learnCard, url, apiToken) {
|
|
|
18162
19001
|
_learnCard.id.did(),
|
|
18163
19002
|
target.did
|
|
18164
19003
|
]);
|
|
18165
|
-
return client.credential.sendCredential.mutate({
|
|
19004
|
+
return client.credential.sendCredential.mutate({
|
|
19005
|
+
profileId,
|
|
19006
|
+
credential,
|
|
19007
|
+
metadata
|
|
19008
|
+
});
|
|
18166
19009
|
},
|
|
18167
19010
|
acceptCredential: async (_learnCard, uri, options) => {
|
|
18168
19011
|
await ensureUser();
|
|
@@ -18223,19 +19066,40 @@ async function getLearnCardNetworkPlugin(learnCard, url, apiToken) {
|
|
|
18223
19066
|
},
|
|
18224
19067
|
createBoost: async (_learnCard, credential, metadata) => {
|
|
18225
19068
|
await ensureUser();
|
|
18226
|
-
|
|
19069
|
+
const { skills, ...rest } = metadata ?? {};
|
|
19070
|
+
const payload = { credential, ...rest };
|
|
19071
|
+
if (Array.isArray(skills) && skills.length > 0)
|
|
19072
|
+
payload.skills = skills;
|
|
19073
|
+
return client.boost.createBoost.mutate(payload);
|
|
18227
19074
|
},
|
|
18228
19075
|
createChildBoost: async (_learnCard, parentUri, credential, metadata) => {
|
|
18229
19076
|
await ensureUser();
|
|
18230
|
-
|
|
18231
|
-
|
|
18232
|
-
|
|
18233
|
-
|
|
19077
|
+
const { skills, ...restMetadata } = metadata || {};
|
|
19078
|
+
const payload = { parentUri, boost: { credential, ...restMetadata } };
|
|
19079
|
+
if (Array.isArray(skills) && skills.length > 0)
|
|
19080
|
+
payload.skills = skills;
|
|
19081
|
+
return client.boost.createChildBoost.mutate(payload);
|
|
18234
19082
|
},
|
|
18235
19083
|
getBoost: async (_learnCard, uri) => {
|
|
18236
19084
|
await ensureUser();
|
|
18237
19085
|
return client.boost.getBoost.query({ uri });
|
|
18238
19086
|
},
|
|
19087
|
+
getBoostFrameworks: async (_learnCard, uri, options = {}) => {
|
|
19088
|
+
if (!userData)
|
|
19089
|
+
throw new Error("Please make an account first!");
|
|
19090
|
+
const { limit, cursor, query } = options ?? {};
|
|
19091
|
+
return client.boost.getBoostFrameworks.query({ uri, limit, cursor, query });
|
|
19092
|
+
},
|
|
19093
|
+
getSkillsAvailableForBoost: async (_learnCard, uri) => {
|
|
19094
|
+
if (!userData)
|
|
19095
|
+
throw new Error("Please make an account first!");
|
|
19096
|
+
return client.boost.getSkillsAvailableForBoost.query({ uri });
|
|
19097
|
+
},
|
|
19098
|
+
searchSkillsAvailableForBoost: async (_learnCard, uri, query, options = {}) => {
|
|
19099
|
+
if (!userData)
|
|
19100
|
+
throw new Error("Please make an account first!");
|
|
19101
|
+
return client.boost.searchSkillsAvailableForBoost.query({ uri, query, ...options });
|
|
19102
|
+
},
|
|
18239
19103
|
getBoosts: async (_learnCard, query) => {
|
|
18240
19104
|
console.warn(
|
|
18241
19105
|
"The getBoosts method is deprecated! Please use getPaginatedBoosts instead!"
|
|
@@ -18368,6 +19232,21 @@ async function getLearnCardNetworkPlugin(learnCard, url, apiToken) {
|
|
|
18368
19232
|
updates: { ...credential && { credential }, ...updates }
|
|
18369
19233
|
});
|
|
18370
19234
|
},
|
|
19235
|
+
attachFrameworkToBoost: async (_learnCard, boostUri, frameworkId) => {
|
|
19236
|
+
if (!userData)
|
|
19237
|
+
throw new Error("Please make an account first!");
|
|
19238
|
+
return client.boost.attachFrameworkToBoost.mutate({ boostUri, frameworkId });
|
|
19239
|
+
},
|
|
19240
|
+
detachFrameworkFromBoost: async (_learnCard, boostUri, frameworkId) => {
|
|
19241
|
+
if (!userData)
|
|
19242
|
+
throw new Error("Please make an account first!");
|
|
19243
|
+
return client.boost.detachFrameworkFromBoost.mutate({ boostUri, frameworkId });
|
|
19244
|
+
},
|
|
19245
|
+
alignBoostSkills: async (_learnCard, boostUri, skills) => {
|
|
19246
|
+
if (!userData)
|
|
19247
|
+
throw new Error("Please make an account first!");
|
|
19248
|
+
return client.boost.alignBoostSkills.mutate({ boostUri, skills });
|
|
19249
|
+
},
|
|
18371
19250
|
getBoostAdmins: async (_learnCard, uri, options = {}) => {
|
|
18372
19251
|
await ensureUser();
|
|
18373
19252
|
return client.boost.getBoostAdmins.query({ uri, ...options });
|
|
@@ -18734,6 +19613,163 @@ async function getLearnCardNetworkPlugin(learnCard, url, apiToken) {
|
|
|
18734
19613
|
await ensureUser();
|
|
18735
19614
|
return client.contactMethods.removeContactMethod.mutate({ id });
|
|
18736
19615
|
},
|
|
19616
|
+
syncFrameworkSkills: async (_learnCard, input) => {
|
|
19617
|
+
if (!userData)
|
|
19618
|
+
throw new Error("Please make an account first!");
|
|
19619
|
+
return client.skills.syncFrameworkSkills.mutate(input);
|
|
19620
|
+
},
|
|
19621
|
+
listSkillTags: async (_learnCard, frameworkId, skillId) => {
|
|
19622
|
+
if (!userData)
|
|
19623
|
+
throw new Error("Please make an account first!");
|
|
19624
|
+
return client.skills.listSkillTags.query({ frameworkId, id: skillId });
|
|
19625
|
+
},
|
|
19626
|
+
addSkillTag: async (_learnCard, frameworkId, skillId, tag) => {
|
|
19627
|
+
if (!userData)
|
|
19628
|
+
throw new Error("Please make an account first!");
|
|
19629
|
+
return client.skills.addSkillTag.mutate({ frameworkId, id: skillId, tag });
|
|
19630
|
+
},
|
|
19631
|
+
removeSkillTag: async (_learnCard, frameworkId, skillId, slug) => {
|
|
19632
|
+
if (!userData)
|
|
19633
|
+
throw new Error("Please make an account first!");
|
|
19634
|
+
return client.skills.removeSkillTag.mutate({ frameworkId, id: skillId, slug });
|
|
19635
|
+
},
|
|
19636
|
+
createManagedSkillFramework: async (_learnCard, input) => {
|
|
19637
|
+
if (!userData)
|
|
19638
|
+
throw new Error("Please make an account first!");
|
|
19639
|
+
return client.skillFrameworks.createManaged.mutate(input);
|
|
19640
|
+
},
|
|
19641
|
+
createManagedSkillFrameworks: async (_learnCard, input) => {
|
|
19642
|
+
if (!userData)
|
|
19643
|
+
throw new Error("Please make an account first!");
|
|
19644
|
+
return client.skillFrameworks.createManagedBatch.mutate(input);
|
|
19645
|
+
},
|
|
19646
|
+
createSkillFramework: async (_learnCard, input) => {
|
|
19647
|
+
if (!userData)
|
|
19648
|
+
throw new Error("Please make an account first!");
|
|
19649
|
+
return client.skillFrameworks.create.mutate(input);
|
|
19650
|
+
},
|
|
19651
|
+
listMySkillFrameworks: async (_learnCard) => {
|
|
19652
|
+
if (!userData)
|
|
19653
|
+
throw new Error("Please make an account first!");
|
|
19654
|
+
return client.skillFrameworks.listMine.query();
|
|
19655
|
+
},
|
|
19656
|
+
getSkillFrameworkById: async (_learnCard, id, options = {}) => {
|
|
19657
|
+
if (!userData)
|
|
19658
|
+
throw new Error("Please make an account first!");
|
|
19659
|
+
return client.skillFrameworks.getById.query({ id, ...options });
|
|
19660
|
+
},
|
|
19661
|
+
getBoostsThatUseFramework: async (_learnCard, frameworkId, options = {}) => {
|
|
19662
|
+
if (!userData)
|
|
19663
|
+
throw new Error("Please make an account first!");
|
|
19664
|
+
return client.skillFrameworks.getBoostsThatUseFramework.query({
|
|
19665
|
+
id: frameworkId,
|
|
19666
|
+
...options
|
|
19667
|
+
});
|
|
19668
|
+
},
|
|
19669
|
+
countBoostsThatUseFramework: async (_learnCard, frameworkId, options = {}) => {
|
|
19670
|
+
if (!userData)
|
|
19671
|
+
throw new Error("Please make an account first!");
|
|
19672
|
+
return client.skillFrameworks.countBoostsThatUseFramework.query({
|
|
19673
|
+
id: frameworkId,
|
|
19674
|
+
...options
|
|
19675
|
+
});
|
|
19676
|
+
},
|
|
19677
|
+
getFrameworkSkillTree: async (_learnCard, frameworkId, options = {}) => {
|
|
19678
|
+
if (!userData)
|
|
19679
|
+
throw new Error("Please make an account first!");
|
|
19680
|
+
return client.skills.getFrameworkSkillTree.query({ id: frameworkId, ...options });
|
|
19681
|
+
},
|
|
19682
|
+
getSkillChildren: async (_learnCard, frameworkId, skillId, options = {}) => {
|
|
19683
|
+
if (!userData)
|
|
19684
|
+
throw new Error("Please make an account first!");
|
|
19685
|
+
return client.skills.getSkillChildrenTree.query({
|
|
19686
|
+
frameworkId,
|
|
19687
|
+
id: skillId,
|
|
19688
|
+
...options
|
|
19689
|
+
});
|
|
19690
|
+
},
|
|
19691
|
+
searchFrameworkSkills: async (_learnCard, frameworkId, query, options = {}) => {
|
|
19692
|
+
if (!userData)
|
|
19693
|
+
throw new Error("Please make an account first!");
|
|
19694
|
+
return client.skills.searchFrameworkSkills.query({
|
|
19695
|
+
id: frameworkId,
|
|
19696
|
+
query,
|
|
19697
|
+
...options
|
|
19698
|
+
});
|
|
19699
|
+
},
|
|
19700
|
+
updateSkillFramework: async (_learnCard, input) => {
|
|
19701
|
+
if (!userData)
|
|
19702
|
+
throw new Error("Please make an account first!");
|
|
19703
|
+
return client.skillFrameworks.update.mutate(input);
|
|
19704
|
+
},
|
|
19705
|
+
deleteSkillFramework: async (_learnCard, id) => {
|
|
19706
|
+
if (!userData)
|
|
19707
|
+
throw new Error("Please make an account first!");
|
|
19708
|
+
return client.skillFrameworks.delete.mutate({ id });
|
|
19709
|
+
},
|
|
19710
|
+
replaceSkillFrameworkSkills: async (_learnCard, input) => {
|
|
19711
|
+
if (!userData)
|
|
19712
|
+
throw new Error("Please make an account first!");
|
|
19713
|
+
return client.skillFrameworks.replaceSkills.mutate(input);
|
|
19714
|
+
},
|
|
19715
|
+
countSkills: async (_learnCard, input) => {
|
|
19716
|
+
if (!userData)
|
|
19717
|
+
throw new Error("Please make an account first!");
|
|
19718
|
+
return client.skills.countSkills.query(input);
|
|
19719
|
+
},
|
|
19720
|
+
getFullSkillTree: async (_learnCard, input) => {
|
|
19721
|
+
if (!userData)
|
|
19722
|
+
throw new Error("Please make an account first!");
|
|
19723
|
+
return client.skills.getFullSkillTree.query(input);
|
|
19724
|
+
},
|
|
19725
|
+
getSkillPath: async (_learnCard, input) => {
|
|
19726
|
+
if (!userData)
|
|
19727
|
+
throw new Error("Please make an account first!");
|
|
19728
|
+
return client.skills.getSkillPath.query(input);
|
|
19729
|
+
},
|
|
19730
|
+
getSkillFrameworkAdmins: async (_learnCard, frameworkId) => {
|
|
19731
|
+
if (!userData)
|
|
19732
|
+
throw new Error("Please make an account first!");
|
|
19733
|
+
return client.skillFrameworks.listFrameworkAdmins.query({ frameworkId });
|
|
19734
|
+
},
|
|
19735
|
+
addSkillFrameworkAdmin: async (_learnCard, frameworkId, profileId) => {
|
|
19736
|
+
if (!userData)
|
|
19737
|
+
throw new Error("Please make an account first!");
|
|
19738
|
+
return client.skillFrameworks.addFrameworkAdmin.mutate({ frameworkId, profileId });
|
|
19739
|
+
},
|
|
19740
|
+
removeSkillFrameworkAdmin: async (_learnCard, frameworkId, profileId) => {
|
|
19741
|
+
if (!userData)
|
|
19742
|
+
throw new Error("Please make an account first!");
|
|
19743
|
+
return client.skillFrameworks.removeFrameworkAdmin.mutate({
|
|
19744
|
+
frameworkId,
|
|
19745
|
+
profileId
|
|
19746
|
+
});
|
|
19747
|
+
},
|
|
19748
|
+
getSkill: async (_learnCard, frameworkId, skillId) => {
|
|
19749
|
+
if (!userData)
|
|
19750
|
+
throw new Error("Please make an account first!");
|
|
19751
|
+
return client.skills.getSkill.query({ frameworkId, id: skillId });
|
|
19752
|
+
},
|
|
19753
|
+
createSkill: async (_learnCard, input) => {
|
|
19754
|
+
if (!userData)
|
|
19755
|
+
throw new Error("Please make an account first!");
|
|
19756
|
+
return client.skills.create.mutate(input);
|
|
19757
|
+
},
|
|
19758
|
+
createSkills: async (_learnCard, input) => {
|
|
19759
|
+
if (!userData)
|
|
19760
|
+
throw new Error("Please make an account first!");
|
|
19761
|
+
return client.skills.createMany.mutate(input);
|
|
19762
|
+
},
|
|
19763
|
+
updateSkill: async (_learnCard, input) => {
|
|
19764
|
+
if (!userData)
|
|
19765
|
+
throw new Error("Please make an account first!");
|
|
19766
|
+
return client.skills.update.mutate(input);
|
|
19767
|
+
},
|
|
19768
|
+
deleteSkill: async (_learnCard, input) => {
|
|
19769
|
+
if (!userData)
|
|
19770
|
+
throw new Error("Please make an account first!");
|
|
19771
|
+
return client.skills.delete.mutate(input);
|
|
19772
|
+
},
|
|
18737
19773
|
addIntegration: async (_learnCard, integration) => {
|
|
18738
19774
|
await ensureUser();
|
|
18739
19775
|
return client.integrations.addIntegration.mutate(integration);
|