diff --git a/packages/api/src/skills/sync/github.spec.ts b/packages/api/src/skills/sync/github.spec.ts index 97c83a4265..9cf7ae4dde 100644 --- a/packages/api/src/skills/sync/github.spec.ts +++ b/packages/api/src/skills/sync/github.spec.ts @@ -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', diff --git a/packages/data-schemas/src/methods/skill.ts b/packages/data-schemas/src/methods/skill.ts index 9538b321b7..d5e72b9603 100644 --- a/packages/data-schemas/src/methods/skill.ts +++ b/packages/data-schemas/src/methods/skill.ts @@ -905,6 +905,15 @@ export function createSkillMethods( }) => Promise; deleteSkill: (id: string) => Promise<{ deleted: boolean }>; deleteUserSkills: (userId: Types.ObjectId | string) => Promise; + findSkillBySourceIdentity: (params: { + source: 'github' | 'notion'; + upstreamId: string; + tenantId?: string; + }) => Promise<(ISkill & { _id: Types.ObjectId }) | null>; + listSkillsBySource: (params: { + source: 'github' | 'notion'; + sourceId: string; + }) => Promise>; listSkillFiles: ( skillId: Types.ObjectId | string, ) => Promise>;