File size: 619 Bytes
21dd449 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
import type { SetRequired } from "../../vendor/type-fest/set-required";
import type { RepoType, SpaceHardwareFlavor, SpaceSdk } from "../public";
import type { ApiCommitFile } from "./api-commit";
export type ApiCreateRepoPayload = {
name: string;
canonical?: boolean;
license?: string;
template?: string;
organization?: string;
/** @default false */
private?: boolean;
lfsmultipartthresh?: number;
files?: SetRequired<ApiCommitFile, "content">[];
} & (
| {
type: Exclude<RepoType, "space">;
}
| {
type: "space";
hardware?: SpaceHardwareFlavor;
sdk: SpaceSdk;
sdkVersion?: string;
}
);
|