2022-12-07 23:49:43 +00:00
|
|
|
|
import type { HttpClient } from "isomorphic-git";
|
2021-11-30 20:53:33 +00:00
|
|
|
|
|
|
|
|
|
export interface BasicAuth {
|
2022-12-07 23:49:43 +00:00
|
|
|
|
username: string;
|
|
|
|
|
password: string;
|
2021-11-30 20:53:33 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// TODO: Restructure HTTPRequest to reuse Isomorphic Git’s GitHttpRequest?
|
|
|
|
|
|
|
|
|
|
export interface HTTPRequest {
|
|
|
|
|
http: HttpClient;
|
|
|
|
|
headers?: Record<string, any>;
|
|
|
|
|
|
|
|
|
|
/** Repository URL. */
|
|
|
|
|
url: string;
|
|
|
|
|
|
|
|
|
|
/** Auth data for basic HTTP auth. */
|
2022-12-07 23:49:43 +00:00
|
|
|
|
auth?: BasicAuth;
|
2021-11-30 20:53:33 +00:00
|
|
|
|
}
|