Skip to content

Commit de7db33

Browse files
committed
make gen
1 parent 8f63d5c commit de7db33

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

coderd/database/queries/users.sql

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ INSERT INTO
3838
created_at,
3939
updated_at,
4040
rbac_roles,
41-
login_type,
42-
linked_id
41+
login_type,
42+
linked_id
4343
)
4444
VALUES
4545
($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING *;
@@ -164,11 +164,11 @@ WHERE
164164

165165
-- name: GetUserByLinkedID :one
166166
SELECT
167-
*
167+
*
168168
FROM
169-
users
169+
users
170170
WHERE
171-
linked_id = $1;
171+
linked_id = $1;
172172

173173
-- name: UpdateUserLinkedID :one
174174
UPDATE

site/src/api/typesGenerated.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,8 @@ export interface User {
352352
readonly status: UserStatus
353353
readonly organization_ids: string[]
354354
readonly roles: Role[]
355+
readonly login_type: LoginType
356+
readonly linked_id: string
355357
}
356358

357359
// From codersdk/users.go
@@ -537,7 +539,7 @@ export type LogLevel = "debug" | "error" | "info" | "trace" | "warn"
537539
export type LogSource = "provisioner" | "provisioner_daemon"
538540

539541
// From codersdk/users.go
540-
export type LoginType = "github" | "password"
542+
export type LoginType = "github" | "oidc" | "password"
541543

542544
// From codersdk/parameters.go
543545
export type ParameterDestinationScheme = "environment_variable" | "none" | "provisioner_variable"

0 commit comments

Comments
 (0)