mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: Implement experiment gated CRUD for workspace proxies (#6928)
* feat: Implement basic moon crud * chore: Implement enterprise endpoints for moons
This commit is contained in:
@@ -253,6 +253,15 @@ export interface CreateWorkspaceBuildRequest {
|
||||
readonly log_level?: ProvisionerLogLevel
|
||||
}
|
||||
|
||||
// From codersdk/workspaceproxy.go
|
||||
export interface CreateWorkspaceProxyRequest {
|
||||
readonly name: string
|
||||
readonly display_name: string
|
||||
readonly icon: string
|
||||
readonly url: string
|
||||
readonly wildcard_hostname: string
|
||||
}
|
||||
|
||||
// From codersdk/organizations.go
|
||||
export interface CreateWorkspaceRequest {
|
||||
readonly template_id: string
|
||||
@@ -1201,6 +1210,19 @@ export interface WorkspaceOptions {
|
||||
readonly include_deleted?: boolean
|
||||
}
|
||||
|
||||
// From codersdk/workspaceproxy.go
|
||||
export interface WorkspaceProxy {
|
||||
readonly id: string
|
||||
readonly organization_id: string
|
||||
readonly name: string
|
||||
readonly icon: string
|
||||
readonly url: string
|
||||
readonly wildcard_hostname: string
|
||||
readonly created_at: string
|
||||
readonly updated_at: string
|
||||
readonly deleted: boolean
|
||||
}
|
||||
|
||||
// From codersdk/workspaces.go
|
||||
export interface WorkspaceQuota {
|
||||
readonly credits_consumed: number
|
||||
@@ -1280,8 +1302,8 @@ export const Entitlements: Entitlement[] = [
|
||||
]
|
||||
|
||||
// From codersdk/deployment.go
|
||||
export type Experiment = "template_editor"
|
||||
export const Experiments: Experiment[] = ["template_editor"]
|
||||
export type Experiment = "moons" | "template_editor"
|
||||
export const Experiments: Experiment[] = ["moons", "template_editor"]
|
||||
|
||||
// From codersdk/deployment.go
|
||||
export type FeatureName =
|
||||
@@ -1295,6 +1317,7 @@ export type FeatureName =
|
||||
| "scim"
|
||||
| "template_rbac"
|
||||
| "user_limit"
|
||||
| "workspace_proxy"
|
||||
export const FeatureNames: FeatureName[] = [
|
||||
"advanced_template_scheduling",
|
||||
"appearance",
|
||||
@@ -1306,6 +1329,7 @@ export const FeatureNames: FeatureName[] = [
|
||||
"scim",
|
||||
"template_rbac",
|
||||
"user_limit",
|
||||
"workspace_proxy",
|
||||
]
|
||||
|
||||
// From codersdk/workspaceagents.go
|
||||
|
||||
Reference in New Issue
Block a user