Skip to content

ref: move httpapi.Reponse into codersdk #2954

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 13, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
make gen again
  • Loading branch information
sreya committed Jul 13, 2022
commit 54c1fdbe30da3ee912980fce0be68a8088d8d9e6
16 changes: 7 additions & 9 deletions site/src/api/typesGenerated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,6 @@ export interface GoogleInstanceIdentityToken {
readonly json_web_token: string
}

// From codersdk/client.go:174:6
export interface HTTPError extends Response {
readonly statusCode: number
readonly method: string
readonly url: string
readonly Helper: string
}

// From codersdk/users.go:154:6
export interface LoginWithPasswordRequest {
readonly email: string
Expand Down Expand Up @@ -262,7 +254,7 @@ export interface PutExtendWorkspaceRequest {
export interface Response {
readonly message: string
readonly detail?: string
readonly validations?: Error[]
readonly validations?: ValidationError[]
}

// From codersdk/roles.go:12:6
Expand Down Expand Up @@ -392,6 +384,12 @@ export interface UsersRequest extends Pagination {
readonly q?: string
}

// From codersdk/error.go:24:6
export interface ValidationError {
readonly field: string
readonly detail: string
}

// From codersdk/workspaces.go:19:6
export interface Workspace {
readonly id: string
Expand Down