2022-11-13 20:15:06 +00:00
|
|
|
// Code generated by 'make site/src/api/typesGenerated.ts'. DO NOT EDIT.
|
2022-04-19 00:45:22 +00:00
|
|
|
|
2022-10-06 19:02:27 +00:00
|
|
|
// From codersdk/apikey.go
|
2022-06-27 18:50:52 +00:00
|
|
|
export interface APIKey {
|
|
|
|
readonly id: string
|
|
|
|
readonly user_id: string
|
|
|
|
readonly last_used: string
|
|
|
|
readonly expires_at: string
|
|
|
|
readonly created_at: string
|
|
|
|
readonly updated_at: string
|
|
|
|
readonly login_type: LoginType
|
2022-10-14 16:46:38 +00:00
|
|
|
readonly scope: APIKeyScope
|
2023-03-02 17:39:38 +00:00
|
|
|
readonly token_name: string
|
2022-06-27 18:50:52 +00:00
|
|
|
readonly lifetime_seconds: number
|
|
|
|
}
|
|
|
|
|
2023-03-01 16:35:55 +00:00
|
|
|
// From codersdk/apikey.go
|
|
|
|
export interface APIKeyWithOwner extends APIKey {
|
|
|
|
readonly username: string
|
|
|
|
}
|
|
|
|
|
2022-08-22 22:02:50 +00:00
|
|
|
// From codersdk/licenses.go
|
|
|
|
export interface AddLicenseRequest {
|
|
|
|
readonly license: string
|
|
|
|
}
|
|
|
|
|
2022-09-01 19:58:23 +00:00
|
|
|
// From codersdk/templates.go
|
|
|
|
export interface AgentStatsReportResponse {
|
|
|
|
readonly num_comms: number
|
|
|
|
readonly rx_bytes: number
|
|
|
|
readonly tx_bytes: number
|
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/deployment.go
|
|
|
|
export interface AppHostResponse {
|
|
|
|
readonly host: string
|
|
|
|
}
|
|
|
|
|
|
|
|
// From codersdk/deployment.go
|
2023-01-04 21:31:45 +00:00
|
|
|
export interface AppearanceConfig {
|
|
|
|
readonly logo_url: string
|
|
|
|
readonly service_banner: ServiceBannerConfig
|
2023-02-27 08:25:04 +00:00
|
|
|
readonly support_links?: LinkConfig[]
|
2023-01-04 21:31:45 +00:00
|
|
|
}
|
|
|
|
|
2022-08-16 15:39:42 +00:00
|
|
|
// From codersdk/roles.go
|
|
|
|
export interface AssignableRoles extends Role {
|
|
|
|
readonly assignable: boolean
|
|
|
|
}
|
|
|
|
|
2022-08-31 21:12:54 +00:00
|
|
|
// From codersdk/audit.go
|
|
|
|
export type AuditDiff = Record<string, AuditDiffField>
|
|
|
|
|
|
|
|
// From codersdk/audit.go
|
|
|
|
export interface AuditDiffField {
|
2023-03-17 14:28:16 +00:00
|
|
|
// Empty interface{} type, cannot resolve the type.
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- interface{}
|
2022-09-07 16:38:19 +00:00
|
|
|
readonly old?: any
|
2023-03-17 14:28:16 +00:00
|
|
|
// Empty interface{} type, cannot resolve the type.
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- interface{}
|
2022-09-07 16:38:19 +00:00
|
|
|
readonly new?: any
|
|
|
|
readonly secret: boolean
|
2022-08-31 21:12:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// From codersdk/audit.go
|
|
|
|
export interface AuditLog {
|
|
|
|
readonly id: string
|
|
|
|
readonly request_id: string
|
|
|
|
readonly time: string
|
|
|
|
readonly organization_id: string
|
|
|
|
// Named type "net/netip.Addr" unknown, using "any"
|
2023-03-17 14:28:16 +00:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- External type
|
2022-08-31 21:12:54 +00:00
|
|
|
readonly ip: any
|
|
|
|
readonly user_agent: string
|
|
|
|
readonly resource_type: ResourceType
|
|
|
|
readonly resource_id: string
|
|
|
|
readonly resource_target: string
|
|
|
|
readonly resource_icon: string
|
|
|
|
readonly action: AuditAction
|
|
|
|
readonly diff: AuditDiff
|
|
|
|
readonly status_code: number
|
2022-10-27 19:57:41 +00:00
|
|
|
readonly additional_fields: Record<string, string>
|
2022-08-31 21:12:54 +00:00
|
|
|
readonly description: string
|
2022-12-02 20:14:45 +00:00
|
|
|
readonly resource_link: string
|
|
|
|
readonly is_deleted: boolean
|
2022-08-31 21:12:54 +00:00
|
|
|
readonly user?: User
|
|
|
|
}
|
|
|
|
|
2022-09-07 16:38:19 +00:00
|
|
|
// From codersdk/audit.go
|
|
|
|
export interface AuditLogResponse {
|
|
|
|
readonly audit_logs: AuditLog[]
|
2022-11-21 16:30:41 +00:00
|
|
|
readonly count: number
|
2022-09-07 16:38:19 +00:00
|
|
|
}
|
|
|
|
|
2022-09-19 13:37:33 +00:00
|
|
|
// From codersdk/audit.go
|
|
|
|
export interface AuditLogsRequest extends Pagination {
|
|
|
|
readonly q?: string
|
|
|
|
}
|
|
|
|
|
2023-01-31 18:33:25 +00:00
|
|
|
// From codersdk/users.go
|
|
|
|
export interface AuthMethod {
|
|
|
|
readonly enabled: boolean
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/users.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface AuthMethods {
|
2023-01-31 18:33:25 +00:00
|
|
|
readonly password: AuthMethod
|
|
|
|
readonly github: AuthMethod
|
|
|
|
readonly oidc: OIDCAuthMethod
|
2022-04-19 00:45:22 +00:00
|
|
|
}
|
|
|
|
|
2022-09-22 22:30:32 +00:00
|
|
|
// From codersdk/authorization.go
|
|
|
|
export interface AuthorizationCheck {
|
|
|
|
readonly object: AuthorizationObject
|
|
|
|
readonly action: string
|
|
|
|
}
|
|
|
|
|
|
|
|
// From codersdk/authorization.go
|
|
|
|
export interface AuthorizationObject {
|
|
|
|
readonly resource_type: string
|
|
|
|
readonly owner_id?: string
|
|
|
|
readonly organization_id?: string
|
|
|
|
readonly resource_id?: string
|
|
|
|
}
|
|
|
|
|
|
|
|
// From codersdk/authorization.go
|
|
|
|
export interface AuthorizationRequest {
|
|
|
|
readonly checks: Record<string, AuthorizationCheck>
|
|
|
|
}
|
|
|
|
|
|
|
|
// From codersdk/authorization.go
|
|
|
|
export type AuthorizationResponse = Record<string, boolean>
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/deployment.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface BuildInfoResponse {
|
|
|
|
readonly external_url: string
|
|
|
|
readonly version: string
|
2022-04-19 00:45:22 +00:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/parameters.go
|
2022-06-17 20:20:13 +00:00
|
|
|
export interface ComputedParameter extends Parameter {
|
|
|
|
readonly source_value: string
|
|
|
|
readonly schema_id: string
|
|
|
|
readonly default_source_value: boolean
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/users.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface CreateFirstUserRequest {
|
|
|
|
readonly email: string
|
|
|
|
readonly username: string
|
|
|
|
readonly password: string
|
2022-11-16 23:09:49 +00:00
|
|
|
readonly trial: boolean
|
2022-04-25 21:11:03 +00:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/users.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface CreateFirstUserResponse {
|
|
|
|
readonly user_id: string
|
|
|
|
readonly organization_id: string
|
|
|
|
}
|
|
|
|
|
2022-10-10 20:37:06 +00:00
|
|
|
// From codersdk/groups.go
|
|
|
|
export interface CreateGroupRequest {
|
|
|
|
readonly name: string
|
2022-10-17 22:46:01 +00:00
|
|
|
readonly avatar_url: string
|
2022-11-14 17:57:33 +00:00
|
|
|
readonly quota_allowance: number
|
2022-10-10 20:37:06 +00:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/users.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface CreateOrganizationRequest {
|
2022-04-19 00:45:22 +00:00
|
|
|
readonly name: string
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/parameters.go
|
2022-04-19 00:45:22 +00:00
|
|
|
export interface CreateParameterRequest {
|
2022-06-17 17:22:28 +00:00
|
|
|
readonly copy_from_parameter?: string
|
2022-04-19 00:45:22 +00:00
|
|
|
readonly name: string
|
|
|
|
readonly source_value: string
|
2022-05-19 18:04:44 +00:00
|
|
|
readonly source_scheme: ParameterSourceScheme
|
|
|
|
readonly destination_scheme: ParameterDestinationScheme
|
2022-04-19 00:45:22 +00:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/organizations.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface CreateTemplateRequest {
|
|
|
|
readonly name: string
|
2022-11-10 20:51:09 +00:00
|
|
|
readonly display_name?: string
|
2022-05-16 20:56:11 +00:00
|
|
|
readonly description?: string
|
2022-08-19 13:17:35 +00:00
|
|
|
readonly icon?: string
|
2022-04-28 16:59:14 +00:00
|
|
|
readonly template_version_id: string
|
2022-05-12 15:01:28 +00:00
|
|
|
readonly parameter_values?: CreateParameterRequest[]
|
2022-11-09 19:36:25 +00:00
|
|
|
readonly default_ttl_ms?: number
|
2023-03-07 14:14:58 +00:00
|
|
|
readonly max_ttl_ms?: number
|
2022-11-21 10:43:53 +00:00
|
|
|
readonly allow_user_cancel_workspace_jobs?: boolean
|
2022-04-19 00:45:22 +00:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/templateversions.go
|
2022-06-01 14:44:53 +00:00
|
|
|
export interface CreateTemplateVersionDryRunRequest {
|
2022-10-11 15:16:19 +00:00
|
|
|
readonly workspace_name: string
|
|
|
|
readonly parameter_values: CreateParameterRequest[]
|
2023-01-23 14:01:22 +00:00
|
|
|
readonly rich_parameter_values: WorkspaceBuildParameter[]
|
2023-02-15 17:24:15 +00:00
|
|
|
readonly user_variable_values?: VariableValue[]
|
2022-06-01 14:44:53 +00:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/organizations.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface CreateTemplateVersionRequest {
|
2022-09-24 01:17:36 +00:00
|
|
|
readonly name?: string
|
2022-05-12 15:01:28 +00:00
|
|
|
readonly template_id?: string
|
2022-05-19 18:04:44 +00:00
|
|
|
readonly storage_method: ProvisionerStorageMethod
|
2022-12-09 19:29:50 +00:00
|
|
|
readonly file_id?: string
|
|
|
|
readonly example_id?: string
|
2022-05-19 18:04:44 +00:00
|
|
|
readonly provisioner: ProvisionerType
|
2022-11-16 22:34:06 +00:00
|
|
|
readonly tags: Record<string, string>
|
2022-05-12 15:01:28 +00:00
|
|
|
readonly parameter_values?: CreateParameterRequest[]
|
2023-02-15 17:24:15 +00:00
|
|
|
readonly user_variable_values?: VariableValue[]
|
2022-04-19 00:45:22 +00:00
|
|
|
}
|
|
|
|
|
2022-09-19 13:37:33 +00:00
|
|
|
// From codersdk/audit.go
|
|
|
|
export interface CreateTestAuditLogRequest {
|
|
|
|
readonly action?: AuditAction
|
|
|
|
readonly resource_type?: ResourceType
|
2022-09-20 16:07:21 +00:00
|
|
|
readonly resource_id?: string
|
2023-01-30 18:43:29 +00:00
|
|
|
readonly additional_fields?: Record<string, string>
|
2022-11-03 15:04:36 +00:00
|
|
|
readonly time?: string
|
2023-01-24 20:34:29 +00:00
|
|
|
readonly build_reason?: BuildReason
|
2022-09-19 13:37:33 +00:00
|
|
|
}
|
|
|
|
|
2022-10-14 16:46:38 +00:00
|
|
|
// From codersdk/apikey.go
|
|
|
|
export interface CreateTokenRequest {
|
2022-12-12 20:39:31 +00:00
|
|
|
// This is likely an enum in an external package ("time.Duration")
|
|
|
|
readonly lifetime: number
|
2022-10-14 16:46:38 +00:00
|
|
|
readonly scope: APIKeyScope
|
2023-03-02 17:39:38 +00:00
|
|
|
readonly token_name: string
|
2022-10-14 16:46:38 +00:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/users.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface CreateUserRequest {
|
|
|
|
readonly email: string
|
|
|
|
readonly username: string
|
|
|
|
readonly password: string
|
|
|
|
readonly organization_id: string
|
2022-04-19 00:45:22 +00:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/workspaces.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface CreateWorkspaceBuildRequest {
|
2022-05-12 15:01:28 +00:00
|
|
|
readonly template_version_id?: string
|
2022-05-19 18:04:44 +00:00
|
|
|
readonly transition: WorkspaceTransition
|
2022-05-12 15:01:28 +00:00
|
|
|
readonly dry_run?: boolean
|
2022-05-10 07:44:09 +00:00
|
|
|
readonly state?: string
|
2022-09-06 17:07:00 +00:00
|
|
|
readonly orphan?: boolean
|
2022-06-27 16:19:10 +00:00
|
|
|
readonly parameter_values?: CreateParameterRequest[]
|
2023-01-17 15:24:45 +00:00
|
|
|
readonly rich_parameter_values?: WorkspaceBuildParameter[]
|
2023-03-30 14:00:33 +00:00
|
|
|
readonly log_level?: ProvisionerLogLevel
|
2022-04-22 20:27:55 +00:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/organizations.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface CreateWorkspaceRequest {
|
|
|
|
readonly template_id: string
|
|
|
|
readonly name: string
|
2022-05-23 22:31:41 +00:00
|
|
|
readonly autostart_schedule?: string
|
2022-06-02 10:23:34 +00:00
|
|
|
readonly ttl_ms?: number
|
2022-05-12 15:01:28 +00:00
|
|
|
readonly parameter_values?: CreateParameterRequest[]
|
2023-01-17 10:22:11 +00:00
|
|
|
readonly rich_parameter_values?: WorkspaceBuildParameter[]
|
2022-04-19 00:45:22 +00:00
|
|
|
}
|
|
|
|
|
2022-09-01 19:58:23 +00:00
|
|
|
// From codersdk/templates.go
|
|
|
|
export interface DAUEntry {
|
|
|
|
readonly date: string
|
|
|
|
readonly amount: number
|
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/deployment.go
|
2022-10-25 00:11:00 +00:00
|
|
|
export interface DERP {
|
|
|
|
readonly server: DERPServerConfig
|
|
|
|
readonly config: DERPConfig
|
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/deployment.go
|
2022-10-25 00:11:00 +00:00
|
|
|
export interface DERPConfig {
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly url: string
|
|
|
|
readonly path: string
|
2022-10-25 00:11:00 +00:00
|
|
|
}
|
|
|
|
|
2022-10-03 21:01:13 +00:00
|
|
|
// From codersdk/workspaceagents.go
|
2022-09-01 01:09:44 +00:00
|
|
|
export interface DERPRegion {
|
|
|
|
readonly preferred: boolean
|
|
|
|
readonly latency_ms: number
|
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/deployment.go
|
2022-10-25 00:11:00 +00:00
|
|
|
export interface DERPServerConfig {
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly enable: boolean
|
|
|
|
readonly region_id: number
|
|
|
|
readonly region_code: string
|
|
|
|
readonly region_name: string
|
2023-03-23 22:42:20 +00:00
|
|
|
// This is likely an enum in an external package ("github.com/coder/coder/cli/clibase.StringArray")
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly stun_addresses: string[]
|
|
|
|
readonly relay_url: string
|
2022-10-25 00:11:00 +00:00
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/deployment.go
|
2023-01-18 22:56:14 +00:00
|
|
|
export interface DangerousConfig {
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly allow_path_app_sharing: boolean
|
|
|
|
readonly allow_path_app_site_owner_access: boolean
|
2022-10-21 22:08:23 +00:00
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/deployment.go
|
2023-03-07 21:10:01 +00:00
|
|
|
export interface DeploymentDAUsResponse {
|
|
|
|
readonly entries: DAUEntry[]
|
2022-10-10 19:04:15 +00:00
|
|
|
}
|
|
|
|
|
2023-03-09 03:05:45 +00:00
|
|
|
// From codersdk/deployment.go
|
|
|
|
export interface DeploymentStats {
|
|
|
|
readonly aggregated_from: string
|
|
|
|
readonly collected_at: string
|
|
|
|
readonly next_update_at: string
|
|
|
|
readonly workspaces: WorkspaceDeploymentStats
|
|
|
|
readonly session_count: SessionCountDeploymentStats
|
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/deployment.go
|
2023-03-07 21:10:01 +00:00
|
|
|
export interface DeploymentValues {
|
|
|
|
readonly verbose?: boolean
|
|
|
|
readonly access_url?: string
|
|
|
|
readonly wildcard_access_url?: string
|
|
|
|
readonly redirect_to_access_url?: boolean
|
|
|
|
readonly http_address?: string
|
|
|
|
readonly autobuild_poll_interval?: number
|
|
|
|
readonly derp?: DERP
|
|
|
|
readonly prometheus?: PrometheusConfig
|
|
|
|
readonly pprof?: PprofConfig
|
2023-03-23 22:42:20 +00:00
|
|
|
// This is likely an enum in an external package ("github.com/coder/coder/cli/clibase.StringArray")
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly proxy_trusted_headers?: string[]
|
2023-03-23 22:42:20 +00:00
|
|
|
// This is likely an enum in an external package ("github.com/coder/coder/cli/clibase.StringArray")
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly proxy_trusted_origins?: string[]
|
|
|
|
readonly cache_directory?: string
|
|
|
|
readonly in_memory_database?: boolean
|
|
|
|
readonly pg_connection_url?: string
|
|
|
|
readonly oauth2?: OAuth2Config
|
|
|
|
readonly oidc?: OIDCConfig
|
|
|
|
readonly telemetry?: TelemetryConfig
|
|
|
|
readonly tls?: TLSConfig
|
|
|
|
readonly trace?: TraceConfig
|
|
|
|
readonly secure_auth_cookie?: boolean
|
|
|
|
readonly strict_transport_security?: number
|
2023-03-23 22:42:20 +00:00
|
|
|
// This is likely an enum in an external package ("github.com/coder/coder/cli/clibase.StringArray")
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly strict_transport_security_options?: string[]
|
|
|
|
readonly ssh_keygen_algorithm?: string
|
|
|
|
readonly metrics_cache_refresh_interval?: number
|
|
|
|
readonly agent_stat_refresh_interval?: number
|
|
|
|
readonly agent_fallback_troubleshooting_url?: string
|
|
|
|
readonly audit_logging?: boolean
|
|
|
|
readonly browser_only?: boolean
|
|
|
|
readonly scim_api_key?: string
|
|
|
|
readonly provisioner?: ProvisionerConfig
|
|
|
|
readonly rate_limit?: RateLimitConfig
|
2023-03-23 22:42:20 +00:00
|
|
|
// This is likely an enum in an external package ("github.com/coder/coder/cli/clibase.StringArray")
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly experiments?: string[]
|
|
|
|
readonly update_check?: boolean
|
|
|
|
readonly max_token_lifetime?: number
|
|
|
|
readonly swagger?: SwaggerConfig
|
|
|
|
readonly logging?: LoggingConfig
|
|
|
|
readonly dangerous?: DangerousConfig
|
|
|
|
readonly disable_path_apps?: boolean
|
|
|
|
readonly max_session_expiry?: number
|
|
|
|
readonly disable_session_expiry_refresh?: boolean
|
|
|
|
readonly disable_password_auth?: boolean
|
|
|
|
readonly support?: SupportConfig
|
|
|
|
// Named type "github.com/coder/coder/cli/clibase.Struct[[]github.com/coder/coder/codersdk.GitAuthConfig]" unknown, using "any"
|
2023-03-17 14:28:16 +00:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- External type
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly git_auth?: any
|
2023-03-16 18:03:37 +00:00
|
|
|
readonly config_ssh?: SSHConfig
|
2023-03-22 13:13:48 +00:00
|
|
|
readonly wgtunnel_host?: string
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly config?: string
|
|
|
|
readonly write_config?: boolean
|
|
|
|
// Named type "github.com/coder/coder/cli/clibase.HostPort" unknown, using "any"
|
2023-03-17 14:28:16 +00:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- External type
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly address?: any
|
2023-01-26 01:03:47 +00:00
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/deployment.go
|
2022-08-17 16:02:36 +00:00
|
|
|
export interface Entitlements {
|
2023-01-17 23:04:29 +00:00
|
|
|
readonly features: Record<FeatureName, Feature>
|
2022-08-17 16:02:36 +00:00
|
|
|
readonly warnings: string[]
|
2022-10-17 13:43:30 +00:00
|
|
|
readonly errors: string[]
|
2022-08-17 16:02:36 +00:00
|
|
|
readonly has_license: boolean
|
2022-10-07 00:28:22 +00:00
|
|
|
readonly trial: boolean
|
2023-02-14 20:26:47 +00:00
|
|
|
readonly require_telemetry: boolean
|
2022-08-17 16:02:36 +00:00
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/deployment.go
|
2023-01-18 19:12:53 +00:00
|
|
|
export type Experiments = Experiment[]
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/deployment.go
|
2022-08-17 16:02:36 +00:00
|
|
|
export interface Feature {
|
|
|
|
readonly entitlement: Entitlement
|
|
|
|
readonly enabled: boolean
|
|
|
|
readonly limit?: number
|
|
|
|
readonly actual?: number
|
|
|
|
}
|
|
|
|
|
2022-10-14 16:46:38 +00:00
|
|
|
// From codersdk/apikey.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface GenerateAPIKeyResponse {
|
|
|
|
readonly key: string
|
2022-04-19 00:45:22 +00:00
|
|
|
}
|
|
|
|
|
2022-11-14 22:22:57 +00:00
|
|
|
// From codersdk/users.go
|
|
|
|
export interface GetUsersResponse {
|
|
|
|
readonly users: User[]
|
|
|
|
readonly count: number
|
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/deployment.go
|
2022-10-25 00:46:24 +00:00
|
|
|
export interface GitAuthConfig {
|
|
|
|
readonly id: string
|
|
|
|
readonly type: string
|
|
|
|
readonly client_id: string
|
|
|
|
readonly auth_url: string
|
|
|
|
readonly token_url: string
|
2022-11-29 18:08:27 +00:00
|
|
|
readonly validate_url: string
|
2022-10-25 00:46:24 +00:00
|
|
|
readonly regex: string
|
2022-11-15 21:06:13 +00:00
|
|
|
readonly no_refresh: boolean
|
2022-10-27 17:38:05 +00:00
|
|
|
readonly scopes: string[]
|
2022-10-25 00:46:24 +00:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/gitsshkey.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface GitSSHKey {
|
|
|
|
readonly user_id: string
|
|
|
|
readonly created_at: string
|
|
|
|
readonly updated_at: string
|
|
|
|
readonly public_key: string
|
2022-04-19 00:45:22 +00:00
|
|
|
}
|
|
|
|
|
2022-10-10 20:37:06 +00:00
|
|
|
// From codersdk/groups.go
|
|
|
|
export interface Group {
|
|
|
|
readonly id: string
|
|
|
|
readonly name: string
|
|
|
|
readonly organization_id: string
|
|
|
|
readonly members: User[]
|
2022-10-17 22:46:01 +00:00
|
|
|
readonly avatar_url: string
|
2022-11-14 17:57:33 +00:00
|
|
|
readonly quota_allowance: number
|
2022-10-10 20:37:06 +00:00
|
|
|
}
|
|
|
|
|
2022-09-23 19:51:04 +00:00
|
|
|
// From codersdk/workspaceapps.go
|
|
|
|
export interface Healthcheck {
|
|
|
|
readonly url: string
|
|
|
|
readonly interval: number
|
|
|
|
readonly threshold: number
|
2022-04-19 00:45:22 +00:00
|
|
|
}
|
|
|
|
|
2022-08-22 22:02:50 +00:00
|
|
|
// From codersdk/licenses.go
|
|
|
|
export interface License {
|
|
|
|
readonly id: number
|
2022-11-16 23:09:49 +00:00
|
|
|
readonly uuid: string
|
2022-08-22 22:02:50 +00:00
|
|
|
readonly uploaded_at: string
|
2023-03-17 14:28:16 +00:00
|
|
|
// Empty interface{} type, cannot resolve the type.
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- interface{}
|
2022-08-22 22:02:50 +00:00
|
|
|
readonly claims: Record<string, any>
|
|
|
|
}
|
|
|
|
|
2023-02-27 08:25:04 +00:00
|
|
|
// From codersdk/deployment.go
|
|
|
|
export interface LinkConfig {
|
|
|
|
readonly name: string
|
|
|
|
readonly target: string
|
|
|
|
readonly icon: string
|
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/deployment.go
|
2023-01-13 02:08:23 +00:00
|
|
|
export interface LoggingConfig {
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly human: string
|
|
|
|
readonly json: string
|
|
|
|
readonly stackdriver: string
|
2023-01-13 02:08:23 +00:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/users.go
|
2022-04-19 00:45:22 +00:00
|
|
|
export interface LoginWithPasswordRequest {
|
|
|
|
readonly email: string
|
|
|
|
readonly password: string
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/users.go
|
2022-04-19 00:45:22 +00:00
|
|
|
export interface LoginWithPasswordResponse {
|
|
|
|
readonly session_token: string
|
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/deployment.go
|
2022-10-25 00:11:00 +00:00
|
|
|
export interface OAuth2Config {
|
|
|
|
readonly github: OAuth2GithubConfig
|
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/deployment.go
|
2022-10-25 00:11:00 +00:00
|
|
|
export interface OAuth2GithubConfig {
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly client_id: string
|
|
|
|
readonly client_secret: string
|
2023-03-23 22:42:20 +00:00
|
|
|
// This is likely an enum in an external package ("github.com/coder/coder/cli/clibase.StringArray")
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly allowed_orgs: string[]
|
2023-03-23 22:42:20 +00:00
|
|
|
// This is likely an enum in an external package ("github.com/coder/coder/cli/clibase.StringArray")
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly allowed_teams: string[]
|
|
|
|
readonly allow_signups: boolean
|
|
|
|
readonly allow_everyone: boolean
|
|
|
|
readonly enterprise_base_url: string
|
2022-10-25 00:11:00 +00:00
|
|
|
}
|
|
|
|
|
2023-01-31 18:33:25 +00:00
|
|
|
// From codersdk/users.go
|
|
|
|
export interface OIDCAuthMethod extends AuthMethod {
|
|
|
|
readonly signInText: string
|
|
|
|
readonly iconUrl: string
|
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/deployment.go
|
2022-10-25 00:11:00 +00:00
|
|
|
export interface OIDCConfig {
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly allow_signups: boolean
|
|
|
|
readonly client_id: string
|
|
|
|
readonly client_secret: string
|
2023-03-23 22:42:20 +00:00
|
|
|
// This is likely an enum in an external package ("github.com/coder/coder/cli/clibase.StringArray")
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly email_domain: string[]
|
|
|
|
readonly issuer_url: string
|
2023-03-23 22:42:20 +00:00
|
|
|
// This is likely an enum in an external package ("github.com/coder/coder/cli/clibase.StringArray")
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly scopes: string[]
|
|
|
|
readonly ignore_email_verified: boolean
|
|
|
|
readonly username_field: string
|
2023-03-30 08:36:57 +00:00
|
|
|
readonly email_field: string
|
|
|
|
// Named type "github.com/coder/coder/cli/clibase.Struct[map[string]string]" unknown, using "any"
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- External type
|
|
|
|
readonly auth_url_params: any
|
2023-03-10 05:31:38 +00:00
|
|
|
readonly groups_field: string
|
2023-03-21 19:25:45 +00:00
|
|
|
// Named type "github.com/coder/coder/cli/clibase.Struct[map[string]string]" unknown, using "any"
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- External type
|
|
|
|
readonly group_mapping: any
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly sign_in_text: string
|
|
|
|
readonly icon_url: string
|
2022-10-25 00:11:00 +00:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/organizations.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface Organization {
|
|
|
|
readonly id: string
|
|
|
|
readonly name: string
|
|
|
|
readonly created_at: string
|
|
|
|
readonly updated_at: string
|
2022-04-19 00:45:22 +00:00
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/organizations.go
|
2022-04-29 14:04:19 +00:00
|
|
|
export interface OrganizationMember {
|
|
|
|
readonly user_id: string
|
|
|
|
readonly organization_id: string
|
|
|
|
readonly created_at: string
|
|
|
|
readonly updated_at: string
|
2022-08-24 19:58:57 +00:00
|
|
|
readonly roles: Role[]
|
2022-04-29 14:04:19 +00:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/pagination.go
|
2022-05-10 07:44:09 +00:00
|
|
|
export interface Pagination {
|
|
|
|
readonly after_id?: string
|
|
|
|
readonly limit?: number
|
|
|
|
readonly offset?: number
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/parameters.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface Parameter {
|
|
|
|
readonly id: string
|
|
|
|
readonly scope: ParameterScope
|
|
|
|
readonly scope_id: string
|
2022-04-19 00:45:22 +00:00
|
|
|
readonly name: string
|
2022-05-19 18:04:44 +00:00
|
|
|
readonly source_scheme: ParameterSourceScheme
|
|
|
|
readonly destination_scheme: ParameterDestinationScheme
|
2022-08-18 16:41:00 +00:00
|
|
|
readonly created_at: string
|
|
|
|
readonly updated_at: string
|
2022-04-28 16:59:14 +00:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/parameters.go
|
2022-05-19 13:29:36 +00:00
|
|
|
export interface ParameterSchema {
|
|
|
|
readonly id: string
|
|
|
|
readonly created_at: string
|
|
|
|
readonly job_id: string
|
|
|
|
readonly name: string
|
|
|
|
readonly description: string
|
2022-05-19 18:04:44 +00:00
|
|
|
readonly default_source_scheme: ParameterSourceScheme
|
2022-05-19 13:29:36 +00:00
|
|
|
readonly default_source_value: string
|
|
|
|
readonly allow_override_source: boolean
|
2022-05-19 18:04:44 +00:00
|
|
|
readonly default_destination_scheme: ParameterDestinationScheme
|
2022-05-19 13:29:36 +00:00
|
|
|
readonly allow_override_destination: boolean
|
|
|
|
readonly default_refresh: string
|
|
|
|
readonly redisplay_value: boolean
|
|
|
|
readonly validation_error: string
|
|
|
|
readonly validation_condition: string
|
|
|
|
readonly validation_type_system: string
|
|
|
|
readonly validation_value_type: string
|
2022-06-15 19:12:57 +00:00
|
|
|
readonly validation_contains?: string[]
|
2022-05-19 13:29:36 +00:00
|
|
|
}
|
|
|
|
|
2022-10-10 20:37:06 +00:00
|
|
|
// From codersdk/groups.go
|
|
|
|
export interface PatchGroupRequest {
|
|
|
|
readonly add_users: string[]
|
|
|
|
readonly remove_users: string[]
|
|
|
|
readonly name: string
|
2022-10-17 22:46:01 +00:00
|
|
|
readonly avatar_url?: string
|
2022-11-14 17:57:33 +00:00
|
|
|
readonly quota_allowance?: number
|
2022-10-10 20:37:06 +00:00
|
|
|
}
|
|
|
|
|
2023-03-23 16:26:50 +00:00
|
|
|
// From codersdk/templateversions.go
|
|
|
|
export interface PatchTemplateVersionRequest {
|
|
|
|
readonly name: string
|
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/deployment.go
|
2022-10-25 00:11:00 +00:00
|
|
|
export interface PprofConfig {
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly enable: boolean
|
|
|
|
// Named type "github.com/coder/coder/cli/clibase.HostPort" unknown, using "any"
|
2023-03-17 14:28:16 +00:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- External type
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly address: any
|
2022-10-25 00:11:00 +00:00
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/deployment.go
|
2022-10-25 00:11:00 +00:00
|
|
|
export interface PrometheusConfig {
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly enable: boolean
|
|
|
|
// Named type "github.com/coder/coder/cli/clibase.HostPort" unknown, using "any"
|
2023-03-17 14:28:16 +00:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- External type
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly address: any
|
2022-10-25 00:11:00 +00:00
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/deployment.go
|
2022-11-08 13:19:40 +00:00
|
|
|
export interface ProvisionerConfig {
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly daemons: number
|
|
|
|
readonly daemon_poll_interval: number
|
|
|
|
readonly daemon_poll_jitter: number
|
|
|
|
readonly force_cancel_interval: number
|
2022-11-08 13:19:40 +00:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/provisionerdaemons.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface ProvisionerDaemon {
|
|
|
|
readonly id: string
|
|
|
|
readonly created_at: string
|
|
|
|
readonly updated_at?: string
|
|
|
|
readonly name: string
|
2022-05-19 18:04:44 +00:00
|
|
|
readonly provisioners: ProvisionerType[]
|
2022-11-16 22:34:06 +00:00
|
|
|
readonly tags: Record<string, string>
|
2022-04-19 00:45:22 +00:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/provisionerdaemons.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface ProvisionerJob {
|
|
|
|
readonly id: string
|
|
|
|
readonly created_at: string
|
|
|
|
readonly started_at?: string
|
|
|
|
readonly completed_at?: string
|
2022-10-11 17:50:41 +00:00
|
|
|
readonly canceled_at?: string
|
2022-05-10 07:44:09 +00:00
|
|
|
readonly error?: string
|
2023-03-08 15:32:00 +00:00
|
|
|
readonly error_code?: JobErrorCode
|
2022-04-28 16:59:14 +00:00
|
|
|
readonly status: ProvisionerJobStatus
|
|
|
|
readonly worker_id?: string
|
2022-10-13 23:02:52 +00:00
|
|
|
readonly file_id: string
|
2022-11-16 22:34:06 +00:00
|
|
|
readonly tags: Record<string, string>
|
2022-04-23 22:58:57 +00:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/provisionerdaemons.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface ProvisionerJobLog {
|
2022-11-07 02:50:34 +00:00
|
|
|
readonly id: number
|
2022-04-28 16:59:14 +00:00
|
|
|
readonly created_at: string
|
2022-05-19 18:04:44 +00:00
|
|
|
readonly log_source: LogSource
|
|
|
|
readonly log_level: LogLevel
|
2022-04-28 16:59:14 +00:00
|
|
|
readonly stage: string
|
|
|
|
readonly output: string
|
2022-04-19 00:45:22 +00:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/workspaces.go
|
2022-05-26 17:08:11 +00:00
|
|
|
export interface PutExtendWorkspaceRequest {
|
|
|
|
readonly deadline: string
|
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/deployment.go
|
2023-01-05 18:05:20 +00:00
|
|
|
export interface RateLimitConfig {
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly disable_all: boolean
|
|
|
|
readonly api: number
|
2023-01-05 18:05:20 +00:00
|
|
|
}
|
|
|
|
|
2022-10-17 13:43:30 +00:00
|
|
|
// From codersdk/replicas.go
|
|
|
|
export interface Replica {
|
|
|
|
readonly id: string
|
|
|
|
readonly hostname: string
|
|
|
|
readonly created_at: string
|
|
|
|
readonly relay_address: string
|
|
|
|
readonly region_id: number
|
|
|
|
readonly error: string
|
|
|
|
readonly database_latency: number
|
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/client.go
|
2022-07-13 00:15:02 +00:00
|
|
|
export interface Response {
|
|
|
|
readonly message: string
|
|
|
|
readonly detail?: string
|
|
|
|
readonly validations?: ValidationError[]
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/roles.go
|
2022-05-09 16:38:14 +00:00
|
|
|
export interface Role {
|
|
|
|
readonly name: string
|
|
|
|
readonly display_name: string
|
|
|
|
}
|
|
|
|
|
2023-03-16 18:03:37 +00:00
|
|
|
// From codersdk/deployment.go
|
|
|
|
export interface SSHConfig {
|
|
|
|
readonly DeploymentName: string
|
2023-03-23 22:42:20 +00:00
|
|
|
// This is likely an enum in an external package ("github.com/coder/coder/cli/clibase.StringArray")
|
2023-03-16 18:03:37 +00:00
|
|
|
readonly SSHConfigOptions: string[]
|
|
|
|
}
|
|
|
|
|
|
|
|
// From codersdk/deployment.go
|
|
|
|
export interface SSHConfigResponse {
|
|
|
|
readonly hostname_prefix: string
|
|
|
|
readonly ssh_config_options: Record<string, string>
|
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/serversentevents.go
|
2022-09-16 18:54:23 +00:00
|
|
|
export interface ServerSentEvent {
|
|
|
|
readonly type: ServerSentEventType
|
2023-03-17 14:28:16 +00:00
|
|
|
// Empty interface{} type, cannot resolve the type.
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- interface{}
|
2022-09-16 18:54:23 +00:00
|
|
|
readonly data: any
|
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/deployment.go
|
2023-01-04 21:31:45 +00:00
|
|
|
export interface ServiceBannerConfig {
|
2022-12-06 18:38:38 +00:00
|
|
|
readonly enabled: boolean
|
|
|
|
readonly message?: string
|
|
|
|
readonly background_color?: string
|
|
|
|
}
|
|
|
|
|
2023-03-09 03:05:45 +00:00
|
|
|
// From codersdk/deployment.go
|
|
|
|
export interface SessionCountDeploymentStats {
|
|
|
|
readonly vscode: number
|
|
|
|
readonly ssh: number
|
|
|
|
readonly jetbrains: number
|
|
|
|
readonly reconnecting_pty: number
|
|
|
|
}
|
|
|
|
|
2023-02-27 08:25:04 +00:00
|
|
|
// From codersdk/deployment.go
|
|
|
|
export interface SupportConfig {
|
2023-03-07 21:10:01 +00:00
|
|
|
// Named type "github.com/coder/coder/cli/clibase.Struct[[]github.com/coder/coder/codersdk.LinkConfig]" unknown, using "any"
|
2023-03-17 14:28:16 +00:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- External type
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly links: any
|
2023-02-27 08:25:04 +00:00
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/deployment.go
|
2022-12-19 17:43:46 +00:00
|
|
|
export interface SwaggerConfig {
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly enable: boolean
|
2022-12-19 17:43:46 +00:00
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/deployment.go
|
2022-10-25 00:11:00 +00:00
|
|
|
export interface TLSConfig {
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly enable: boolean
|
|
|
|
// Named type "github.com/coder/coder/cli/clibase.HostPort" unknown, using "any"
|
2023-03-17 14:28:16 +00:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- External type
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly address: any
|
|
|
|
readonly redirect_http: boolean
|
2023-03-23 22:42:20 +00:00
|
|
|
// This is likely an enum in an external package ("github.com/coder/coder/cli/clibase.StringArray")
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly cert_file: string[]
|
|
|
|
readonly client_auth: string
|
|
|
|
readonly client_ca_file: string
|
2023-03-23 22:42:20 +00:00
|
|
|
// This is likely an enum in an external package ("github.com/coder/coder/cli/clibase.StringArray")
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly key_file: string[]
|
|
|
|
readonly min_version: string
|
|
|
|
readonly client_cert_file: string
|
|
|
|
readonly client_key_file: string
|
2022-10-25 00:11:00 +00:00
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/deployment.go
|
2022-10-25 00:11:00 +00:00
|
|
|
export interface TelemetryConfig {
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly enable: boolean
|
|
|
|
readonly trace: boolean
|
|
|
|
readonly url: string
|
2022-10-25 00:11:00 +00:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/templates.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface Template {
|
|
|
|
readonly id: string
|
|
|
|
readonly created_at: string
|
|
|
|
readonly updated_at: string
|
|
|
|
readonly organization_id: string
|
|
|
|
readonly name: string
|
2022-11-10 20:51:09 +00:00
|
|
|
readonly display_name: string
|
2022-05-19 18:04:44 +00:00
|
|
|
readonly provisioner: ProvisionerType
|
2022-04-28 16:59:14 +00:00
|
|
|
readonly active_version_id: string
|
2022-09-09 19:30:31 +00:00
|
|
|
readonly active_user_count: number
|
2022-10-17 04:34:03 +00:00
|
|
|
readonly build_time_stats: TemplateBuildTimeStats
|
2022-05-16 20:56:11 +00:00
|
|
|
readonly description: string
|
2022-08-19 13:17:35 +00:00
|
|
|
readonly icon: string
|
2022-11-09 19:36:25 +00:00
|
|
|
readonly default_ttl_ms: number
|
2023-03-07 14:14:58 +00:00
|
|
|
readonly max_ttl_ms: number
|
2022-06-13 17:25:06 +00:00
|
|
|
readonly created_by_id: string
|
2022-06-10 19:24:21 +00:00
|
|
|
readonly created_by_name: string
|
2022-11-21 10:43:53 +00:00
|
|
|
readonly allow_user_cancel_workspace_jobs: boolean
|
2022-04-19 00:45:22 +00:00
|
|
|
}
|
|
|
|
|
2022-10-10 20:37:06 +00:00
|
|
|
// From codersdk/templates.go
|
|
|
|
export interface TemplateACL {
|
|
|
|
readonly users: TemplateUser[]
|
|
|
|
readonly group: TemplateGroup[]
|
|
|
|
}
|
|
|
|
|
2022-10-17 04:34:03 +00:00
|
|
|
// From codersdk/templates.go
|
2022-11-17 16:56:56 +00:00
|
|
|
export type TemplateBuildTimeStats = Record<
|
|
|
|
WorkspaceTransition,
|
|
|
|
TransitionStats
|
|
|
|
>
|
2022-10-17 04:34:03 +00:00
|
|
|
|
2022-09-01 19:58:23 +00:00
|
|
|
// From codersdk/templates.go
|
|
|
|
export interface TemplateDAUsResponse {
|
|
|
|
readonly entries: DAUEntry[]
|
|
|
|
}
|
|
|
|
|
2022-12-09 19:29:50 +00:00
|
|
|
// From codersdk/templates.go
|
|
|
|
export interface TemplateExample {
|
|
|
|
readonly id: string
|
|
|
|
readonly url: string
|
|
|
|
readonly name: string
|
|
|
|
readonly description: string
|
|
|
|
readonly icon: string
|
|
|
|
readonly tags: string[]
|
|
|
|
readonly markdown: string
|
|
|
|
}
|
|
|
|
|
2022-10-10 20:37:06 +00:00
|
|
|
// From codersdk/templates.go
|
|
|
|
export interface TemplateGroup extends Group {
|
|
|
|
readonly role: TemplateRole
|
|
|
|
}
|
|
|
|
|
|
|
|
// From codersdk/templates.go
|
|
|
|
export interface TemplateUser extends User {
|
|
|
|
readonly role: TemplateRole
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/templateversions.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface TemplateVersion {
|
|
|
|
readonly id: string
|
|
|
|
readonly template_id?: string
|
2022-06-01 14:44:53 +00:00
|
|
|
readonly organization_id?: string
|
2022-04-28 16:59:14 +00:00
|
|
|
readonly created_at: string
|
|
|
|
readonly updated_at: string
|
|
|
|
readonly name: string
|
|
|
|
readonly job: ProvisionerJob
|
2022-05-17 20:00:48 +00:00
|
|
|
readonly readme: string
|
2022-10-31 16:38:07 +00:00
|
|
|
readonly created_by: User
|
2022-04-19 13:48:13 +00:00
|
|
|
}
|
|
|
|
|
2023-02-27 16:18:19 +00:00
|
|
|
// From codersdk/templateversions.go
|
|
|
|
export interface TemplateVersionGitAuth {
|
|
|
|
readonly id: string
|
|
|
|
readonly type: GitProvider
|
|
|
|
readonly authenticate_url: string
|
|
|
|
readonly authenticated: boolean
|
|
|
|
}
|
|
|
|
|
2023-01-17 10:22:11 +00:00
|
|
|
// From codersdk/templateversions.go
|
|
|
|
export interface TemplateVersionParameter {
|
|
|
|
readonly name: string
|
2023-04-03 12:37:47 +00:00
|
|
|
readonly display_name?: string
|
2023-01-17 10:22:11 +00:00
|
|
|
readonly description: string
|
2023-02-08 11:57:12 +00:00
|
|
|
readonly description_plaintext: string
|
2023-01-17 10:22:11 +00:00
|
|
|
readonly type: string
|
|
|
|
readonly mutable: boolean
|
|
|
|
readonly default_value: string
|
|
|
|
readonly icon: string
|
|
|
|
readonly options: TemplateVersionParameterOption[]
|
2023-02-07 08:36:13 +00:00
|
|
|
readonly validation_error?: string
|
|
|
|
readonly validation_regex?: string
|
|
|
|
readonly validation_min?: number
|
|
|
|
readonly validation_max?: number
|
|
|
|
readonly validation_monotonic?: ValidationMonotonicOrder
|
2023-03-07 15:38:31 +00:00
|
|
|
readonly required: boolean
|
2023-03-14 12:02:44 +00:00
|
|
|
readonly legacy_variable_name?: string
|
2023-01-17 10:22:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// From codersdk/templateversions.go
|
|
|
|
export interface TemplateVersionParameterOption {
|
|
|
|
readonly name: string
|
|
|
|
readonly description: string
|
|
|
|
readonly value: string
|
|
|
|
readonly icon: string
|
|
|
|
}
|
|
|
|
|
2023-02-15 17:24:15 +00:00
|
|
|
// From codersdk/templateversions.go
|
|
|
|
export interface TemplateVersionVariable {
|
|
|
|
readonly name: string
|
|
|
|
readonly description: string
|
|
|
|
readonly type: string
|
|
|
|
readonly value: string
|
|
|
|
readonly default_value: string
|
|
|
|
readonly required: boolean
|
|
|
|
readonly sensitive: boolean
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/templates.go
|
2022-05-10 07:44:09 +00:00
|
|
|
export interface TemplateVersionsByTemplateRequest extends Pagination {
|
|
|
|
readonly template_id: string
|
|
|
|
}
|
|
|
|
|
2023-03-16 15:25:08 +00:00
|
|
|
// From codersdk/apikey.go
|
|
|
|
export interface TokenConfig {
|
|
|
|
// This is likely an enum in an external package ("time.Duration")
|
|
|
|
readonly max_token_lifetime: number
|
|
|
|
}
|
|
|
|
|
2023-02-23 15:00:27 +00:00
|
|
|
// From codersdk/apikey.go
|
|
|
|
export interface TokensFilter {
|
|
|
|
readonly include_all: boolean
|
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/deployment.go
|
2022-11-01 14:15:41 +00:00
|
|
|
export interface TraceConfig {
|
2023-03-07 21:10:01 +00:00
|
|
|
readonly enable: boolean
|
|
|
|
readonly honeycomb_api_key: string
|
|
|
|
readonly capture_logs: boolean
|
2022-11-01 14:15:41 +00:00
|
|
|
}
|
|
|
|
|
2022-11-17 16:56:56 +00:00
|
|
|
// From codersdk/templates.go
|
|
|
|
export interface TransitionStats {
|
|
|
|
readonly P50?: number
|
|
|
|
readonly P95?: number
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/templates.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface UpdateActiveTemplateVersion {
|
|
|
|
readonly id: string
|
|
|
|
}
|
|
|
|
|
2023-02-27 08:25:04 +00:00
|
|
|
// From codersdk/deployment.go
|
|
|
|
export interface UpdateAppearanceConfig {
|
|
|
|
readonly logo_url: string
|
|
|
|
readonly service_banner: ServiceBannerConfig
|
|
|
|
}
|
|
|
|
|
2022-12-01 17:43:28 +00:00
|
|
|
// From codersdk/updatecheck.go
|
|
|
|
export interface UpdateCheckResponse {
|
|
|
|
readonly current: boolean
|
|
|
|
readonly version: string
|
|
|
|
readonly url: string
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/users.go
|
2022-04-29 14:04:19 +00:00
|
|
|
export interface UpdateRoles {
|
|
|
|
readonly roles: string[]
|
|
|
|
}
|
|
|
|
|
2022-10-10 20:37:06 +00:00
|
|
|
// From codersdk/templates.go
|
|
|
|
export interface UpdateTemplateACL {
|
|
|
|
readonly user_perms?: Record<string, TemplateRole>
|
|
|
|
readonly group_perms?: Record<string, TemplateRole>
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/templates.go
|
2022-06-08 14:14:57 +00:00
|
|
|
export interface UpdateTemplateMeta {
|
2022-08-17 19:04:00 +00:00
|
|
|
readonly name?: string
|
2022-11-10 20:51:09 +00:00
|
|
|
readonly display_name?: string
|
2022-06-08 14:14:57 +00:00
|
|
|
readonly description?: string
|
2022-08-19 13:17:35 +00:00
|
|
|
readonly icon?: string
|
2022-11-09 19:36:25 +00:00
|
|
|
readonly default_ttl_ms?: number
|
2023-03-07 14:14:58 +00:00
|
|
|
readonly max_ttl_ms?: number
|
2022-11-21 10:43:53 +00:00
|
|
|
readonly allow_user_cancel_workspace_jobs?: boolean
|
2022-06-08 14:14:57 +00:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/users.go
|
2022-05-06 14:20:08 +00:00
|
|
|
export interface UpdateUserPasswordRequest {
|
2022-05-27 17:29:55 +00:00
|
|
|
readonly old_password: string
|
2022-05-06 14:20:08 +00:00
|
|
|
readonly password: string
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/users.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface UpdateUserProfileRequest {
|
|
|
|
readonly username: string
|
2022-04-19 00:45:22 +00:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/workspaces.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface UpdateWorkspaceAutostartRequest {
|
2022-06-02 10:23:34 +00:00
|
|
|
readonly schedule?: string
|
2022-04-28 16:59:14 +00:00
|
|
|
}
|
|
|
|
|
2022-08-26 09:28:38 +00:00
|
|
|
// From codersdk/workspaces.go
|
|
|
|
export interface UpdateWorkspaceRequest {
|
|
|
|
readonly name?: string
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/workspaces.go
|
2022-05-19 19:09:27 +00:00
|
|
|
export interface UpdateWorkspaceTTLRequest {
|
2022-06-02 10:23:34 +00:00
|
|
|
readonly ttl_ms?: number
|
2022-04-28 16:59:14 +00:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/files.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface UploadResponse {
|
|
|
|
readonly hash: string
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/users.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface User {
|
|
|
|
readonly id: string
|
2022-08-17 16:28:22 +00:00
|
|
|
readonly username: string
|
2022-04-28 16:59:14 +00:00
|
|
|
readonly email: string
|
|
|
|
readonly created_at: string
|
2022-09-26 15:31:03 +00:00
|
|
|
readonly last_seen_at: string
|
2022-04-28 16:59:14 +00:00
|
|
|
readonly status: UserStatus
|
|
|
|
readonly organization_ids: string[]
|
2022-05-09 16:38:14 +00:00
|
|
|
readonly roles: Role[]
|
2022-09-04 16:44:27 +00:00
|
|
|
readonly avatar_url: string
|
2022-04-28 16:59:14 +00:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/users.go
|
2022-04-29 14:04:19 +00:00
|
|
|
export interface UserRoles {
|
|
|
|
readonly roles: string[]
|
|
|
|
readonly organization_roles: Record<string, string[]>
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/users.go
|
2022-05-10 07:44:09 +00:00
|
|
|
export interface UsersRequest extends Pagination {
|
2022-06-24 15:02:23 +00:00
|
|
|
readonly q?: string
|
2022-04-28 16:59:14 +00:00
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/client.go
|
2022-07-13 00:15:02 +00:00
|
|
|
export interface ValidationError {
|
|
|
|
readonly field: string
|
|
|
|
readonly detail: string
|
|
|
|
}
|
|
|
|
|
2023-02-15 17:24:15 +00:00
|
|
|
// From codersdk/organizations.go
|
|
|
|
export interface VariableValue {
|
|
|
|
readonly name: string
|
|
|
|
readonly value: string
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/workspaces.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface Workspace {
|
|
|
|
readonly id: string
|
|
|
|
readonly created_at: string
|
|
|
|
readonly updated_at: string
|
|
|
|
readonly owner_id: string
|
2022-05-14 01:41:21 +00:00
|
|
|
readonly owner_name: string
|
2023-03-21 14:10:22 +00:00
|
|
|
readonly organization_id: string
|
2022-04-28 16:59:14 +00:00
|
|
|
readonly template_id: string
|
|
|
|
readonly template_name: string
|
2022-11-16 14:50:32 +00:00
|
|
|
readonly template_display_name: string
|
2022-08-22 14:42:11 +00:00
|
|
|
readonly template_icon: string
|
2022-11-21 10:43:53 +00:00
|
|
|
readonly template_allow_user_cancel_workspace_jobs: boolean
|
2022-04-28 16:59:14 +00:00
|
|
|
readonly latest_build: WorkspaceBuild
|
|
|
|
readonly outdated: boolean
|
2022-04-19 00:45:22 +00:00
|
|
|
readonly name: string
|
2022-06-02 10:23:34 +00:00
|
|
|
readonly autostart_schedule?: string
|
|
|
|
readonly ttl_ms?: number
|
2022-09-02 00:08:51 +00:00
|
|
|
readonly last_used_at: string
|
2022-04-19 00:45:22 +00:00
|
|
|
}
|
|
|
|
|
2022-10-03 21:01:13 +00:00
|
|
|
// From codersdk/workspaceagents.go
|
2022-04-19 00:45:22 +00:00
|
|
|
export interface WorkspaceAgent {
|
2022-04-28 16:59:14 +00:00
|
|
|
readonly id: string
|
|
|
|
readonly created_at: string
|
|
|
|
readonly updated_at: string
|
|
|
|
readonly first_connected_at?: string
|
|
|
|
readonly last_connected_at?: string
|
|
|
|
readonly disconnected_at?: string
|
2022-04-19 00:45:22 +00:00
|
|
|
readonly status: WorkspaceAgentStatus
|
2023-01-24 12:24:27 +00:00
|
|
|
readonly lifecycle_state: WorkspaceAgentLifecycle
|
2022-04-19 00:45:22 +00:00
|
|
|
readonly name: string
|
2022-04-28 16:59:14 +00:00
|
|
|
readonly resource_id: string
|
2022-05-10 07:44:09 +00:00
|
|
|
readonly instance_id?: string
|
2022-04-19 00:45:22 +00:00
|
|
|
readonly architecture: string
|
2022-04-28 16:59:14 +00:00
|
|
|
readonly environment_variables: Record<string, string>
|
2022-04-19 00:45:22 +00:00
|
|
|
readonly operating_system: string
|
2022-05-10 07:44:09 +00:00
|
|
|
readonly startup_script?: string
|
2023-03-23 19:09:13 +00:00
|
|
|
readonly startup_logs_length: number
|
|
|
|
readonly startup_logs_overflowed: boolean
|
2022-05-10 07:44:09 +00:00
|
|
|
readonly directory?: string
|
2023-02-07 21:35:09 +00:00
|
|
|
readonly expanded_directory?: string
|
2022-08-31 15:33:50 +00:00
|
|
|
readonly version: string
|
2022-09-01 01:09:44 +00:00
|
|
|
readonly apps: WorkspaceApp[]
|
2022-09-02 22:05:27 +00:00
|
|
|
readonly latency?: Record<string, DERPRegion>
|
2022-11-09 15:27:05 +00:00
|
|
|
readonly connection_timeout_seconds: number
|
2022-11-16 10:53:02 +00:00
|
|
|
readonly troubleshooting_url: string
|
2023-01-27 20:07:47 +00:00
|
|
|
readonly login_before_ready: boolean
|
2023-01-24 12:24:27 +00:00
|
|
|
readonly startup_script_timeout_seconds: number
|
2023-03-06 19:34:00 +00:00
|
|
|
readonly shutdown_script?: string
|
|
|
|
readonly shutdown_script_timeout_seconds: number
|
2022-06-24 15:25:01 +00:00
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/workspaceagentconn.go
|
|
|
|
export interface WorkspaceAgentListeningPort {
|
|
|
|
readonly process_name: string
|
|
|
|
readonly network: string
|
|
|
|
readonly port: number
|
2022-04-19 00:45:22 +00:00
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/workspaceagentconn.go
|
|
|
|
export interface WorkspaceAgentListeningPortsResponse {
|
|
|
|
readonly ports: WorkspaceAgentListeningPort[]
|
2022-04-19 00:45:22 +00:00
|
|
|
}
|
|
|
|
|
2023-03-31 20:26:19 +00:00
|
|
|
// From codersdk/workspaceagents.go
|
|
|
|
export interface WorkspaceAgentMetadata {
|
|
|
|
readonly result: WorkspaceAgentMetadataResult
|
|
|
|
readonly description: WorkspaceAgentMetadataDescription
|
|
|
|
}
|
|
|
|
|
|
|
|
// From codersdk/workspaceagents.go
|
|
|
|
export interface WorkspaceAgentMetadataDescription {
|
|
|
|
readonly display_name: string
|
|
|
|
readonly key: string
|
|
|
|
readonly script: string
|
|
|
|
readonly interval: number
|
|
|
|
readonly timeout: number
|
|
|
|
}
|
|
|
|
|
|
|
|
// From codersdk/workspaceagents.go
|
|
|
|
export interface WorkspaceAgentMetadataResult {
|
|
|
|
readonly collected_at: string
|
|
|
|
readonly age: number
|
|
|
|
readonly value: string
|
|
|
|
readonly error: string
|
|
|
|
}
|
|
|
|
|
2023-03-23 19:09:13 +00:00
|
|
|
// From codersdk/workspaceagents.go
|
|
|
|
export interface WorkspaceAgentStartupLog {
|
|
|
|
readonly id: number
|
|
|
|
readonly created_at: string
|
|
|
|
readonly output: string
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/workspaceapps.go
|
2022-06-04 20:13:37 +00:00
|
|
|
export interface WorkspaceApp {
|
|
|
|
readonly id: string
|
2022-12-14 21:54:18 +00:00
|
|
|
readonly url: string
|
|
|
|
readonly external: boolean
|
2022-10-28 17:41:31 +00:00
|
|
|
readonly slug: string
|
|
|
|
readonly display_name: string
|
2022-06-04 20:13:37 +00:00
|
|
|
readonly command?: string
|
|
|
|
readonly icon?: string
|
2022-10-05 19:23:01 +00:00
|
|
|
readonly subdomain: boolean
|
2022-10-14 16:46:38 +00:00
|
|
|
readonly sharing_level: WorkspaceAppSharingLevel
|
2022-09-23 19:51:04 +00:00
|
|
|
readonly healthcheck: Healthcheck
|
|
|
|
readonly health: WorkspaceAppHealth
|
2022-06-04 20:13:37 +00:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/workspacebuilds.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface WorkspaceBuild {
|
|
|
|
readonly id: string
|
|
|
|
readonly created_at: string
|
|
|
|
readonly updated_at: string
|
|
|
|
readonly workspace_id: string
|
2022-06-01 23:49:43 +00:00
|
|
|
readonly workspace_name: string
|
2022-06-07 14:28:47 +00:00
|
|
|
readonly workspace_owner_id: string
|
|
|
|
readonly workspace_owner_name: string
|
2022-04-28 16:59:14 +00:00
|
|
|
readonly template_version_id: string
|
2022-11-28 19:53:56 +00:00
|
|
|
readonly template_version_name: string
|
2022-05-18 16:33:33 +00:00
|
|
|
readonly build_number: number
|
2022-05-19 18:04:44 +00:00
|
|
|
readonly transition: WorkspaceTransition
|
2022-04-28 16:59:14 +00:00
|
|
|
readonly initiator_id: string
|
2022-06-09 01:23:35 +00:00
|
|
|
readonly initiator_name: string
|
2022-04-28 16:59:14 +00:00
|
|
|
readonly job: ProvisionerJob
|
2022-06-17 17:41:11 +00:00
|
|
|
readonly reason: BuildReason
|
2022-09-16 18:54:23 +00:00
|
|
|
readonly resources: WorkspaceResource[]
|
|
|
|
readonly deadline?: string
|
2023-03-07 14:14:58 +00:00
|
|
|
readonly max_deadline?: string
|
2022-10-03 16:43:11 +00:00
|
|
|
readonly status: WorkspaceStatus
|
2022-11-14 17:57:33 +00:00
|
|
|
readonly daily_cost: number
|
2022-04-19 00:45:22 +00:00
|
|
|
}
|
|
|
|
|
2023-01-17 10:22:11 +00:00
|
|
|
// From codersdk/workspacebuilds.go
|
|
|
|
export interface WorkspaceBuildParameter {
|
|
|
|
readonly name: string
|
|
|
|
readonly value: string
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/workspaces.go
|
2022-05-18 16:33:33 +00:00
|
|
|
export interface WorkspaceBuildsRequest extends Pagination {
|
|
|
|
readonly WorkspaceID: string
|
2022-10-09 20:01:18 +00:00
|
|
|
readonly Since: string
|
2022-05-18 16:33:33 +00:00
|
|
|
}
|
|
|
|
|
2023-03-09 03:05:45 +00:00
|
|
|
// From codersdk/deployment.go
|
|
|
|
export interface WorkspaceConnectionLatencyMS {
|
|
|
|
readonly P50: number
|
|
|
|
readonly P95: number
|
|
|
|
}
|
|
|
|
|
|
|
|
// From codersdk/deployment.go
|
|
|
|
export interface WorkspaceDeploymentStats {
|
|
|
|
readonly pending: number
|
|
|
|
readonly building: number
|
|
|
|
readonly running: number
|
|
|
|
readonly failed: number
|
|
|
|
readonly stopped: number
|
|
|
|
readonly connection_latency_ms: WorkspaceConnectionLatencyMS
|
|
|
|
readonly rx_bytes: number
|
|
|
|
readonly tx_bytes: number
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/workspaces.go
|
2022-05-18 15:09:07 +00:00
|
|
|
export interface WorkspaceFilter {
|
2022-06-14 13:46:33 +00:00
|
|
|
readonly q?: string
|
2022-05-18 15:09:07 +00:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/workspaces.go
|
2022-06-06 17:23:02 +00:00
|
|
|
export interface WorkspaceOptions {
|
2022-06-10 14:58:42 +00:00
|
|
|
readonly include_deleted?: boolean
|
2022-06-06 17:23:02 +00:00
|
|
|
}
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/workspaces.go
|
2022-09-30 18:01:20 +00:00
|
|
|
export interface WorkspaceQuota {
|
2022-11-14 17:57:33 +00:00
|
|
|
readonly credits_consumed: number
|
|
|
|
readonly budget: number
|
2022-09-30 18:01:20 +00:00
|
|
|
}
|
|
|
|
|
2022-10-03 21:01:13 +00:00
|
|
|
// From codersdk/workspacebuilds.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface WorkspaceResource {
|
|
|
|
readonly id: string
|
|
|
|
readonly created_at: string
|
|
|
|
readonly job_id: string
|
2022-05-19 18:04:44 +00:00
|
|
|
readonly workspace_transition: WorkspaceTransition
|
2022-04-28 16:59:14 +00:00
|
|
|
readonly type: string
|
|
|
|
readonly name: string
|
2022-09-09 19:38:00 +00:00
|
|
|
readonly hide: boolean
|
2022-09-13 14:32:59 +00:00
|
|
|
readonly icon: string
|
2022-05-10 07:44:09 +00:00
|
|
|
readonly agents?: WorkspaceAgent[]
|
2022-08-01 21:53:05 +00:00
|
|
|
readonly metadata?: WorkspaceResourceMetadata[]
|
2022-11-14 17:57:33 +00:00
|
|
|
readonly daily_cost: number
|
2022-08-01 21:53:05 +00:00
|
|
|
}
|
|
|
|
|
2022-10-03 21:01:13 +00:00
|
|
|
// From codersdk/workspacebuilds.go
|
2022-08-01 21:53:05 +00:00
|
|
|
export interface WorkspaceResourceMetadata {
|
|
|
|
readonly key: string
|
|
|
|
readonly value: string
|
|
|
|
readonly sensitive: boolean
|
2022-04-19 00:45:22 +00:00
|
|
|
}
|
|
|
|
|
2022-10-20 17:23:14 +00:00
|
|
|
// From codersdk/workspaces.go
|
|
|
|
export interface WorkspacesRequest extends Pagination {
|
|
|
|
readonly q?: string
|
|
|
|
}
|
|
|
|
|
2022-11-10 18:25:46 +00:00
|
|
|
// From codersdk/workspaces.go
|
|
|
|
export interface WorkspacesResponse {
|
|
|
|
readonly workspaces: Workspace[]
|
|
|
|
readonly count: number
|
|
|
|
}
|
|
|
|
|
2022-10-14 16:46:38 +00:00
|
|
|
// From codersdk/apikey.go
|
|
|
|
export type APIKeyScope = "all" | "application_connect"
|
2023-01-17 23:04:29 +00:00
|
|
|
export const APIKeyScopes: APIKeyScope[] = ["all", "application_connect"]
|
2022-10-14 16:46:38 +00:00
|
|
|
|
2022-08-31 21:12:54 +00:00
|
|
|
// From codersdk/audit.go
|
2023-02-06 20:12:50 +00:00
|
|
|
export type AuditAction =
|
|
|
|
| "create"
|
|
|
|
| "delete"
|
|
|
|
| "login"
|
|
|
|
| "logout"
|
|
|
|
| "start"
|
|
|
|
| "stop"
|
|
|
|
| "write"
|
2023-01-17 23:04:29 +00:00
|
|
|
export const AuditActions: AuditAction[] = [
|
|
|
|
"create",
|
|
|
|
"delete",
|
2023-02-06 20:12:50 +00:00
|
|
|
"login",
|
|
|
|
"logout",
|
2023-01-17 23:04:29 +00:00
|
|
|
"start",
|
|
|
|
"stop",
|
|
|
|
"write",
|
|
|
|
]
|
2022-08-31 21:12:54 +00:00
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/workspacebuilds.go
|
2022-06-17 17:41:11 +00:00
|
|
|
export type BuildReason = "autostart" | "autostop" | "initiator"
|
2023-01-17 23:04:29 +00:00
|
|
|
export const BuildReasons: BuildReason[] = [
|
|
|
|
"autostart",
|
|
|
|
"autostop",
|
|
|
|
"initiator",
|
|
|
|
]
|
2022-06-17 17:41:11 +00:00
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/deployment.go
|
2022-08-17 16:02:36 +00:00
|
|
|
export type Entitlement = "entitled" | "grace_period" | "not_entitled"
|
2023-01-17 23:04:29 +00:00
|
|
|
export const Entitlements: Entitlement[] = [
|
|
|
|
"entitled",
|
|
|
|
"grace_period",
|
|
|
|
"not_entitled",
|
|
|
|
]
|
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/deployment.go
|
2023-03-21 14:10:22 +00:00
|
|
|
export type Experiment = "template_editor"
|
|
|
|
export const Experiments: Experiment[] = ["template_editor"]
|
2023-01-18 19:12:53 +00:00
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/deployment.go
|
2023-01-17 23:04:29 +00:00
|
|
|
export type FeatureName =
|
2023-03-07 14:14:58 +00:00
|
|
|
| "advanced_template_scheduling"
|
2023-01-17 23:04:29 +00:00
|
|
|
| "appearance"
|
|
|
|
| "audit_log"
|
|
|
|
| "browser_only"
|
|
|
|
| "external_provisioner_daemons"
|
|
|
|
| "high_availability"
|
|
|
|
| "multiple_git_auth"
|
|
|
|
| "scim"
|
|
|
|
| "template_rbac"
|
|
|
|
| "user_limit"
|
|
|
|
export const FeatureNames: FeatureName[] = [
|
2023-03-07 14:14:58 +00:00
|
|
|
"advanced_template_scheduling",
|
2023-01-17 23:04:29 +00:00
|
|
|
"appearance",
|
|
|
|
"audit_log",
|
|
|
|
"browser_only",
|
|
|
|
"external_provisioner_daemons",
|
|
|
|
"high_availability",
|
|
|
|
"multiple_git_auth",
|
|
|
|
"scim",
|
|
|
|
"template_rbac",
|
|
|
|
"user_limit",
|
|
|
|
]
|
2022-08-17 16:02:36 +00:00
|
|
|
|
2023-02-27 16:18:19 +00:00
|
|
|
// From codersdk/workspaceagents.go
|
|
|
|
export type GitProvider = "azure-devops" | "bitbucket" | "github" | "gitlab"
|
|
|
|
export const GitProviders: GitProvider[] = [
|
|
|
|
"azure-devops",
|
|
|
|
"bitbucket",
|
|
|
|
"github",
|
|
|
|
"gitlab",
|
|
|
|
]
|
|
|
|
|
2023-03-08 15:32:00 +00:00
|
|
|
// From codersdk/provisionerdaemons.go
|
|
|
|
export type JobErrorCode =
|
|
|
|
| "MISSING_TEMPLATE_PARAMETER"
|
|
|
|
| "REQUIRED_TEMPLATE_VARIABLES"
|
|
|
|
export const JobErrorCodes: JobErrorCode[] = [
|
|
|
|
"MISSING_TEMPLATE_PARAMETER",
|
|
|
|
"REQUIRED_TEMPLATE_VARIABLES",
|
|
|
|
]
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/provisionerdaemons.go
|
2022-05-19 18:04:44 +00:00
|
|
|
export type LogLevel = "debug" | "error" | "info" | "trace" | "warn"
|
2023-01-17 23:04:29 +00:00
|
|
|
export const LogLevels: LogLevel[] = ["debug", "error", "info", "trace", "warn"]
|
2022-05-19 18:04:44 +00:00
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/provisionerdaemons.go
|
2022-05-19 18:04:44 +00:00
|
|
|
export type LogSource = "provisioner" | "provisioner_daemon"
|
2023-01-17 23:04:29 +00:00
|
|
|
export const LogSources: LogSource[] = ["provisioner", "provisioner_daemon"]
|
2022-05-19 18:04:44 +00:00
|
|
|
|
2022-10-06 19:02:27 +00:00
|
|
|
// From codersdk/apikey.go
|
|
|
|
export type LoginType = "github" | "oidc" | "password" | "token"
|
2023-01-17 23:04:29 +00:00
|
|
|
export const LoginTypes: LoginType[] = ["github", "oidc", "password", "token"]
|
2022-06-27 18:50:52 +00:00
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/parameters.go
|
2022-10-10 17:33:35 +00:00
|
|
|
export type ParameterDestinationScheme =
|
|
|
|
| "environment_variable"
|
|
|
|
| "none"
|
|
|
|
| "provisioner_variable"
|
2023-01-17 23:04:29 +00:00
|
|
|
export const ParameterDestinationSchemes: ParameterDestinationScheme[] = [
|
|
|
|
"environment_variable",
|
|
|
|
"none",
|
|
|
|
"provisioner_variable",
|
|
|
|
]
|
2022-05-19 18:04:44 +00:00
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/parameters.go
|
2022-06-15 23:21:01 +00:00
|
|
|
export type ParameterScope = "import_job" | "template" | "workspace"
|
2023-01-17 23:04:29 +00:00
|
|
|
export const ParameterScopes: ParameterScope[] = [
|
|
|
|
"import_job",
|
|
|
|
"template",
|
|
|
|
"workspace",
|
|
|
|
]
|
2022-04-19 00:45:22 +00:00
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/parameters.go
|
2022-05-19 18:04:44 +00:00
|
|
|
export type ParameterSourceScheme = "data" | "none"
|
2023-01-17 23:04:29 +00:00
|
|
|
export const ParameterSourceSchemes: ParameterSourceScheme[] = ["data", "none"]
|
2022-05-19 18:04:44 +00:00
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/parameters.go
|
2022-05-19 18:04:44 +00:00
|
|
|
export type ParameterTypeSystem = "hcl" | "none"
|
2023-01-17 23:04:29 +00:00
|
|
|
export const ParameterTypeSystems: ParameterTypeSystem[] = ["hcl", "none"]
|
2022-05-19 18:04:44 +00:00
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/provisionerdaemons.go
|
2022-06-27 14:53:44 +00:00
|
|
|
export type ProvisionerJobStatus =
|
|
|
|
| "canceled"
|
|
|
|
| "canceling"
|
|
|
|
| "failed"
|
|
|
|
| "pending"
|
|
|
|
| "running"
|
|
|
|
| "succeeded"
|
2023-01-17 23:04:29 +00:00
|
|
|
export const ProvisionerJobStatuses: ProvisionerJobStatus[] = [
|
|
|
|
"canceled",
|
|
|
|
"canceling",
|
|
|
|
"failed",
|
|
|
|
"pending",
|
|
|
|
"running",
|
|
|
|
"succeeded",
|
|
|
|
]
|
2022-04-19 02:03:37 +00:00
|
|
|
|
2023-03-30 14:00:33 +00:00
|
|
|
// From codersdk/workspaces.go
|
|
|
|
export type ProvisionerLogLevel = "debug"
|
|
|
|
export const ProvisionerLogLevels: ProvisionerLogLevel[] = ["debug"]
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/organizations.go
|
2022-05-19 18:04:44 +00:00
|
|
|
export type ProvisionerStorageMethod = "file"
|
2023-01-17 23:04:29 +00:00
|
|
|
export const ProvisionerStorageMethods: ProvisionerStorageMethod[] = ["file"]
|
2022-05-19 18:04:44 +00:00
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/organizations.go
|
2022-05-19 18:04:44 +00:00
|
|
|
export type ProvisionerType = "echo" | "terraform"
|
2023-01-17 23:04:29 +00:00
|
|
|
export const ProvisionerTypes: ProvisionerType[] = ["echo", "terraform"]
|
2022-05-19 18:04:44 +00:00
|
|
|
|
2022-08-31 21:12:54 +00:00
|
|
|
// From codersdk/audit.go
|
2022-09-08 14:36:34 +00:00
|
|
|
export type ResourceType =
|
|
|
|
| "api_key"
|
|
|
|
| "git_ssh_key"
|
2022-10-19 07:00:45 +00:00
|
|
|
| "group"
|
2023-02-14 21:34:13 +00:00
|
|
|
| "license"
|
2022-09-08 14:36:34 +00:00
|
|
|
| "template"
|
|
|
|
| "template_version"
|
|
|
|
| "user"
|
|
|
|
| "workspace"
|
2022-10-25 19:34:48 +00:00
|
|
|
| "workspace_build"
|
2023-01-17 23:04:29 +00:00
|
|
|
export const ResourceTypes: ResourceType[] = [
|
|
|
|
"api_key",
|
|
|
|
"git_ssh_key",
|
|
|
|
"group",
|
2023-02-14 21:34:13 +00:00
|
|
|
"license",
|
2023-01-17 23:04:29 +00:00
|
|
|
"template",
|
|
|
|
"template_version",
|
|
|
|
"user",
|
|
|
|
"workspace",
|
|
|
|
"workspace_build",
|
|
|
|
]
|
2022-08-31 21:12:54 +00:00
|
|
|
|
2023-01-29 21:47:24 +00:00
|
|
|
// From codersdk/serversentevents.go
|
2022-09-16 18:54:23 +00:00
|
|
|
export type ServerSentEventType = "data" | "error" | "ping"
|
2023-01-17 23:04:29 +00:00
|
|
|
export const ServerSentEventTypes: ServerSentEventType[] = [
|
|
|
|
"data",
|
|
|
|
"error",
|
|
|
|
"ping",
|
|
|
|
]
|
2022-09-16 18:54:23 +00:00
|
|
|
|
2022-10-10 20:37:06 +00:00
|
|
|
// From codersdk/templates.go
|
2022-10-12 19:33:21 +00:00
|
|
|
export type TemplateRole = "" | "admin" | "use"
|
2023-01-17 23:04:29 +00:00
|
|
|
export const TemplateRoles: TemplateRole[] = ["", "admin", "use"]
|
2022-10-10 20:37:06 +00:00
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/users.go
|
2022-04-26 14:00:07 +00:00
|
|
|
export type UserStatus = "active" | "suspended"
|
2023-01-17 23:04:29 +00:00
|
|
|
export const UserStatuses: UserStatus[] = ["active", "suspended"]
|
2022-04-26 14:00:07 +00:00
|
|
|
|
2023-02-07 08:36:13 +00:00
|
|
|
// From codersdk/templateversions.go
|
|
|
|
export type ValidationMonotonicOrder = "decreasing" | "increasing"
|
|
|
|
export const ValidationMonotonicOrders: ValidationMonotonicOrder[] = [
|
|
|
|
"decreasing",
|
|
|
|
"increasing",
|
|
|
|
]
|
|
|
|
|
2023-01-24 12:24:27 +00:00
|
|
|
// From codersdk/workspaceagents.go
|
|
|
|
export type WorkspaceAgentLifecycle =
|
|
|
|
| "created"
|
2023-03-06 19:34:00 +00:00
|
|
|
| "off"
|
2023-01-24 12:24:27 +00:00
|
|
|
| "ready"
|
2023-03-06 19:34:00 +00:00
|
|
|
| "shutdown_error"
|
|
|
|
| "shutdown_timeout"
|
|
|
|
| "shutting_down"
|
2023-01-24 12:24:27 +00:00
|
|
|
| "start_error"
|
|
|
|
| "start_timeout"
|
|
|
|
| "starting"
|
|
|
|
export const WorkspaceAgentLifecycles: WorkspaceAgentLifecycle[] = [
|
|
|
|
"created",
|
2023-03-06 19:34:00 +00:00
|
|
|
"off",
|
2023-01-24 12:24:27 +00:00
|
|
|
"ready",
|
2023-03-06 19:34:00 +00:00
|
|
|
"shutdown_error",
|
|
|
|
"shutdown_timeout",
|
|
|
|
"shutting_down",
|
2023-01-24 12:24:27 +00:00
|
|
|
"start_error",
|
|
|
|
"start_timeout",
|
|
|
|
"starting",
|
|
|
|
]
|
|
|
|
|
2022-10-03 21:01:13 +00:00
|
|
|
// From codersdk/workspaceagents.go
|
2022-11-09 15:27:05 +00:00
|
|
|
export type WorkspaceAgentStatus =
|
|
|
|
| "connected"
|
|
|
|
| "connecting"
|
|
|
|
| "disconnected"
|
|
|
|
| "timeout"
|
2023-01-17 23:04:29 +00:00
|
|
|
export const WorkspaceAgentStatuses: WorkspaceAgentStatus[] = [
|
|
|
|
"connected",
|
|
|
|
"connecting",
|
|
|
|
"disconnected",
|
|
|
|
"timeout",
|
|
|
|
]
|
2022-05-19 18:04:44 +00:00
|
|
|
|
2022-09-23 19:51:04 +00:00
|
|
|
// From codersdk/workspaceapps.go
|
2022-10-10 17:33:35 +00:00
|
|
|
export type WorkspaceAppHealth =
|
|
|
|
| "disabled"
|
|
|
|
| "healthy"
|
|
|
|
| "initializing"
|
|
|
|
| "unhealthy"
|
2023-01-17 23:04:29 +00:00
|
|
|
export const WorkspaceAppHealths: WorkspaceAppHealth[] = [
|
|
|
|
"disabled",
|
|
|
|
"healthy",
|
|
|
|
"initializing",
|
|
|
|
"unhealthy",
|
|
|
|
]
|
2022-09-23 19:51:04 +00:00
|
|
|
|
2022-10-14 16:46:38 +00:00
|
|
|
// From codersdk/workspaceapps.go
|
|
|
|
export type WorkspaceAppSharingLevel = "authenticated" | "owner" | "public"
|
2023-01-17 23:04:29 +00:00
|
|
|
export const WorkspaceAppSharingLevels: WorkspaceAppSharingLevel[] = [
|
|
|
|
"authenticated",
|
|
|
|
"owner",
|
|
|
|
"public",
|
|
|
|
]
|
2022-10-14 16:46:38 +00:00
|
|
|
|
2022-10-03 16:43:11 +00:00
|
|
|
// From codersdk/workspacebuilds.go
|
2022-09-30 21:36:21 +00:00
|
|
|
export type WorkspaceStatus =
|
|
|
|
| "canceled"
|
|
|
|
| "canceling"
|
|
|
|
| "deleted"
|
|
|
|
| "deleting"
|
|
|
|
| "failed"
|
|
|
|
| "pending"
|
|
|
|
| "running"
|
|
|
|
| "starting"
|
|
|
|
| "stopped"
|
|
|
|
| "stopping"
|
2023-01-17 23:04:29 +00:00
|
|
|
export const WorkspaceStatuses: WorkspaceStatus[] = [
|
|
|
|
"canceled",
|
|
|
|
"canceling",
|
|
|
|
"deleted",
|
|
|
|
"deleting",
|
|
|
|
"failed",
|
|
|
|
"pending",
|
|
|
|
"running",
|
|
|
|
"starting",
|
|
|
|
"stopped",
|
|
|
|
"stopping",
|
|
|
|
]
|
2022-09-30 21:36:21 +00:00
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/workspacebuilds.go
|
2022-05-19 18:04:44 +00:00
|
|
|
export type WorkspaceTransition = "delete" | "start" | "stop"
|
2023-01-17 23:04:29 +00:00
|
|
|
export const WorkspaceTransitions: WorkspaceTransition[] = [
|
|
|
|
"delete",
|
|
|
|
"start",
|
|
|
|
"stop",
|
|
|
|
]
|