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:
Steven Masley
2023-04-04 15:07:29 -05:00
committed by GitHub
parent 385a4262e2
commit b4afbe7720
33 changed files with 1327 additions and 7 deletions
+26 -2
View File
@@ -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