mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-08-04 14:57:42 +00:00
fix: satisfy skill sync type checks
This commit is contained in:
parent
bd9b648034
commit
0799bcd791
2 changed files with 11 additions and 2 deletions
|
|
@ -172,7 +172,7 @@ function createDeps(
|
|||
}),
|
||||
getCredentialToken: jest.fn(async () => 'github_pat_secret'),
|
||||
getCredentialSummary: jest.fn(async () => ({
|
||||
provider: 'github',
|
||||
provider: 'github' as const,
|
||||
credentialKey: 'github-skills-prod',
|
||||
credentialPresent: true,
|
||||
tokenFingerprint: 'abc123',
|
||||
|
|
@ -1512,7 +1512,7 @@ describe('createGitHubSkillSyncRunner', () => {
|
|||
tryAcquireLock: jest.fn(async () => false),
|
||||
listCredentials: jest.fn(async () => [
|
||||
{
|
||||
provider: 'github',
|
||||
provider: 'github' as const,
|
||||
credentialKey: 'github-skills-prod',
|
||||
credentialPresent: true,
|
||||
tokenFingerprint: 'abc123',
|
||||
|
|
|
|||
|
|
@ -905,6 +905,15 @@ export function createSkillMethods(
|
|||
}) => Promise<UpdateSkillResult>;
|
||||
deleteSkill: (id: string) => Promise<{ deleted: boolean }>;
|
||||
deleteUserSkills: (userId: Types.ObjectId | string) => Promise<number>;
|
||||
findSkillBySourceIdentity: (params: {
|
||||
source: 'github' | 'notion';
|
||||
upstreamId: string;
|
||||
tenantId?: string;
|
||||
}) => Promise<(ISkill & { _id: Types.ObjectId }) | null>;
|
||||
listSkillsBySource: (params: {
|
||||
source: 'github' | 'notion';
|
||||
sourceId: string;
|
||||
}) => Promise<Array<ISkill & { _id: Types.ObjectId }>>;
|
||||
listSkillFiles: (
|
||||
skillId: Types.ObjectId | string,
|
||||
) => Promise<Array<ISkillFile & { _id: Types.ObjectId }>>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue