Download src/interfaces/service/IGithubService.ts from lynfera/api: direct link, hf CLI and curl.
- Browser
- Download file 705 Bytes
-
https://huggingface.co/spaces/lynfera/api/resolve/c044fc22a5e2de895ca9282affe402eeab2b7f3d/src/interfaces/service/IGithubService.ts
- Command line
-
hf download hf://spaces/lynfera/api@c044fc22a5e2de895ca9282affe402eeab2b7f3d/src/interfaces/service/IGithubService.ts
-
curl -L -o IGithubService.ts https://huggingface.co/spaces/lynfera/api/resolve/c044fc22a5e2de895ca9282affe402eeab2b7f3d/src/interfaces/service/IGithubService.ts
705 Bytes
| import { GithubCommitType, GithubRepoResponse, GithubRepositoryBranch, GithubRepositoryOwner } from "@/constants/types/github.js"; | |
| import { IUser } from "@/models/User.js"; | |
| export interface IGithubService { | |
| getUserInfo(userId: string): Promise<IUser>; | |
| createGithubAccessToken(): string; | |
| createOrGetInstallationAcsTokn(installationId: number, token?: string): Promise<string>; | |
| getUserRepos(userId: string): Promise<GithubRepoResponse[]>; | |
| getUserRepo(userId: string, owner: string, repo: string): Promise<GithubRepoResponse>; | |
| getUserRepoBranches(userId: string, owner: string, repo: string): Promise<GithubRepositoryBranch[]>; | |
| getUserAccountData(userId: string): Promise<GithubRepositoryOwner>; | |
| } | |