generated from NatoBoram/gigachad.ts
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpaths.ts
35 lines (32 loc) · 882 Bytes
/
paths.ts
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
27
28
29
30
31
32
33
34
35
import type { paths as openapi } from "../openapi/openapi-typescript.ts"
/**
* Overrides Bitbucket Cloud's OpenAPI schema.
*/
export interface paths
extends Omit<openapi, "/repositories/{workspace}/{repo_slug}/refs/branches"> {
readonly "/repositories/{workspace}/{repo_slug}/refs/branches": Omit<
openapi["/repositories/{workspace}/{repo_slug}/refs/branches"],
"post"
> & {
readonly post: Omit<
openapi["/repositories/{workspace}/{repo_slug}/refs/branches"]["post"],
"requestBody"
> & {
readonly requestBody: {
readonly content: {
readonly "application/json": CreateBranchRequest
}
}
}
}
}
/** Request to create a branch. */
export interface CreateBranchRequest {
/** Name of the new branch */
readonly name: string
/** Where to point the new branch to */
readonly target: Target
}
export interface Target {
readonly hash: string
}