feat(api): publish v2 reference
This commit is contained in:
parent
e6e951b252
commit
eed23d8ee9
40 changed files with 26473 additions and 147 deletions
|
|
@ -89,6 +89,7 @@ import type {
|
|||
CredentialUpdateOutput,
|
||||
CredentialRemoveInput,
|
||||
CredentialRemoveOutput,
|
||||
ProjectListOutput,
|
||||
ProjectCurrentInput,
|
||||
ProjectCurrentOutput,
|
||||
ProjectDirectoriesInput,
|
||||
|
|
@ -899,6 +900,11 @@ export function make(options: ClientOptions) {
|
|||
),
|
||||
},
|
||||
project: {
|
||||
list: (requestOptions?: RequestOptions) =>
|
||||
request<ProjectListOutput>(
|
||||
{ method: "GET", path: `/api/project`, successStatus: 200, declaredStatuses: [401, 400], empty: false },
|
||||
requestOptions,
|
||||
),
|
||||
current: (input?: ProjectCurrentInput, requestOptions?: RequestOptions) =>
|
||||
request<ProjectCurrentOutput>(
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2458,6 +2458,17 @@ export type CredentialRemoveInput = {
|
|||
|
||||
export type CredentialRemoveOutput = void
|
||||
|
||||
export type ProjectListOutput = ReadonlyArray<{
|
||||
readonly id: string
|
||||
readonly worktree: string
|
||||
readonly vcs?: "git" | "hg"
|
||||
readonly name?: string
|
||||
readonly icon?: { readonly url?: string; readonly override?: string; readonly color?: string }
|
||||
readonly commands?: { readonly start?: string }
|
||||
readonly time: { readonly created: number; readonly updated: number; readonly initialized?: number }
|
||||
readonly sandboxes: ReadonlyArray<string>
|
||||
}>
|
||||
|
||||
export type ProjectCurrentInput = {
|
||||
readonly location?: {
|
||||
readonly location?: { readonly directory?: string | undefined; readonly workspace?: string | undefined } | undefined
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue