2022-04-28 16:59:14 +00:00
|
|
|
// Code generated by 'make coder/scripts/apitypings/main.go'. 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
|
2022-06-27 18:50:52 +00:00
|
|
|
readonly lifetime_seconds: number
|
|
|
|
}
|
|
|
|
|
2022-08-22 22:02:50 +00:00
|
|
|
// From codersdk/licenses.go
|
|
|
|
export interface AddLicenseRequest {
|
|
|
|
readonly license: string
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/gitsshkey.go
|
2022-04-19 00:45:22 +00:00
|
|
|
export interface AgentGitSSHKey {
|
2022-04-25 05:29:15 +00:00
|
|
|
readonly public_key: string
|
2022-04-19 00:45:22 +00:00
|
|
|
readonly private_key: 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
|
|
|
|
}
|
|
|
|
|
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 {
|
2022-10-28 20:46:51 +00:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- TODO explain why this is needed
|
2022-09-07 16:38:19 +00:00
|
|
|
readonly old?: any
|
2022-10-28 20:46:51 +00:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- TODO explain why this is needed
|
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"
|
2022-10-28 20:46:51 +00:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- TODO explain why this is needed
|
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
|
|
|
|
readonly user?: User
|
|
|
|
}
|
|
|
|
|
2022-09-19 17:08:25 +00:00
|
|
|
// From codersdk/audit.go
|
|
|
|
export interface AuditLogCountRequest {
|
|
|
|
readonly q?: string
|
|
|
|
}
|
|
|
|
|
2022-09-07 16:38:19 +00:00
|
|
|
// From codersdk/audit.go
|
|
|
|
export interface AuditLogCountResponse {
|
|
|
|
readonly count: number
|
|
|
|
}
|
|
|
|
|
|
|
|
// From codersdk/audit.go
|
|
|
|
export interface AuditLogResponse {
|
|
|
|
readonly audit_logs: AuditLog[]
|
|
|
|
}
|
|
|
|
|
2022-09-19 13:37:33 +00:00
|
|
|
// From codersdk/audit.go
|
|
|
|
export interface AuditLogsRequest extends Pagination {
|
|
|
|
readonly q?: string
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/users.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface AuthMethods {
|
|
|
|
readonly password: boolean
|
|
|
|
readonly github: boolean
|
2022-08-01 04:05:35 +00:00
|
|
|
readonly oidc: boolean
|
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>
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/workspaceagents.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface AzureInstanceIdentityToken {
|
|
|
|
readonly signature: string
|
|
|
|
readonly encoding: string
|
2022-04-19 00:45:22 +00:00
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/buildinfo.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
|
|
|
|
readonly organization: string
|
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-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-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-06-07 12:37:45 +00:00
|
|
|
readonly max_ttl_ms?: number
|
|
|
|
readonly min_autostart_interval_ms?: number
|
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[]
|
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-10-13 23:02:52 +00:00
|
|
|
readonly file_id: string
|
2022-05-19 18:04:44 +00:00
|
|
|
readonly provisioner: ProvisionerType
|
2022-05-12 15:01:28 +00:00
|
|
|
readonly parameter_values?: CreateParameterRequest[]
|
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
|
2022-09-19 13:37:33 +00:00
|
|
|
}
|
|
|
|
|
2022-10-14 16:46:38 +00:00
|
|
|
// From codersdk/apikey.go
|
|
|
|
export interface CreateTokenRequest {
|
|
|
|
readonly scope: APIKeyScope
|
|
|
|
}
|
|
|
|
|
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[]
|
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[]
|
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
|
|
|
|
}
|
|
|
|
|
2022-10-25 00:11:00 +00:00
|
|
|
// From codersdk/deploymentconfig.go
|
|
|
|
export interface DERP {
|
|
|
|
readonly server: DERPServerConfig
|
|
|
|
readonly config: DERPConfig
|
|
|
|
}
|
|
|
|
|
|
|
|
// From codersdk/deploymentconfig.go
|
|
|
|
export interface DERPConfig {
|
|
|
|
readonly url: DeploymentConfigField<string>
|
|
|
|
readonly path: DeploymentConfigField<string>
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2022-10-25 00:11:00 +00:00
|
|
|
// From codersdk/deploymentconfig.go
|
|
|
|
export interface DERPServerConfig {
|
|
|
|
readonly enable: DeploymentConfigField<boolean>
|
|
|
|
readonly region_id: DeploymentConfigField<number>
|
|
|
|
readonly region_code: DeploymentConfigField<string>
|
|
|
|
readonly region_name: DeploymentConfigField<string>
|
|
|
|
readonly stun_addresses: DeploymentConfigField<string[]>
|
|
|
|
readonly relay_url: DeploymentConfigField<string>
|
|
|
|
}
|
|
|
|
|
2022-10-21 22:08:23 +00:00
|
|
|
// From codersdk/deploymentconfig.go
|
|
|
|
export interface DeploymentConfig {
|
|
|
|
readonly access_url: DeploymentConfigField<string>
|
|
|
|
readonly wildcard_access_url: DeploymentConfigField<string>
|
|
|
|
readonly address: DeploymentConfigField<string>
|
|
|
|
readonly autobuild_poll_interval: DeploymentConfigField<number>
|
2022-10-25 00:11:00 +00:00
|
|
|
readonly derp: DERP
|
2022-10-25 00:46:24 +00:00
|
|
|
readonly gitauth: DeploymentConfigField<GitAuthConfig[]>
|
2022-10-25 00:11:00 +00:00
|
|
|
readonly prometheus: PrometheusConfig
|
|
|
|
readonly pprof: PprofConfig
|
2022-10-23 18:21:49 +00:00
|
|
|
readonly proxy_trusted_headers: DeploymentConfigField<string[]>
|
|
|
|
readonly proxy_trusted_origins: DeploymentConfigField<string[]>
|
2022-10-21 22:08:23 +00:00
|
|
|
readonly cache_directory: DeploymentConfigField<string>
|
|
|
|
readonly in_memory_database: DeploymentConfigField<boolean>
|
2022-10-25 00:11:00 +00:00
|
|
|
readonly provisioner_daemons: DeploymentConfigField<number>
|
|
|
|
readonly pg_connection_url: DeploymentConfigField<string>
|
|
|
|
readonly oauth2: OAuth2Config
|
|
|
|
readonly oidc: OIDCConfig
|
|
|
|
readonly telemetry: TelemetryConfig
|
|
|
|
readonly tls: TLSConfig
|
2022-10-21 22:08:23 +00:00
|
|
|
readonly trace_enable: DeploymentConfigField<boolean>
|
|
|
|
readonly secure_auth_cookie: DeploymentConfigField<boolean>
|
|
|
|
readonly ssh_keygen_algorithm: DeploymentConfigField<string>
|
|
|
|
readonly auto_import_templates: DeploymentConfigField<string[]>
|
|
|
|
readonly metrics_cache_refresh_interval: DeploymentConfigField<number>
|
|
|
|
readonly agent_stat_refresh_interval: DeploymentConfigField<number>
|
|
|
|
readonly audit_logging: DeploymentConfigField<boolean>
|
|
|
|
readonly browser_only: DeploymentConfigField<boolean>
|
2022-10-25 00:11:00 +00:00
|
|
|
readonly scim_api_key: DeploymentConfigField<string>
|
2022-10-21 22:08:23 +00:00
|
|
|
readonly user_workspace_quota: DeploymentConfigField<number>
|
|
|
|
}
|
|
|
|
|
|
|
|
// From codersdk/deploymentconfig.go
|
|
|
|
export interface DeploymentConfigField<T extends Flaggable> {
|
2022-10-10 19:04:15 +00:00
|
|
|
readonly name: string
|
2022-10-21 22:08:23 +00:00
|
|
|
readonly usage: string
|
2022-10-10 19:04:15 +00:00
|
|
|
readonly flag: string
|
|
|
|
readonly shorthand: string
|
|
|
|
readonly enterprise: boolean
|
2022-10-11 15:16:19 +00:00
|
|
|
readonly hidden: boolean
|
2022-10-25 00:11:00 +00:00
|
|
|
readonly secret: boolean
|
|
|
|
readonly default: T
|
2022-10-21 22:08:23 +00:00
|
|
|
readonly value: T
|
2022-10-10 19:04:15 +00:00
|
|
|
}
|
|
|
|
|
2022-08-17 16:02:36 +00:00
|
|
|
// From codersdk/features.go
|
|
|
|
export interface Entitlements {
|
|
|
|
readonly features: Record<string, Feature>
|
|
|
|
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-04 19:45:00 +00:00
|
|
|
readonly experimental: boolean
|
2022-10-07 00:28:22 +00:00
|
|
|
readonly trial: boolean
|
2022-08-17 16:02:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// From codersdk/features.go
|
|
|
|
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-09-22 22:30:32 +00:00
|
|
|
// From codersdk/workspaces.go
|
|
|
|
export interface GetAppHostResponse {
|
|
|
|
readonly host: string
|
|
|
|
}
|
|
|
|
|
2022-10-25 00:46:24 +00:00
|
|
|
// From codersdk/deploymentconfig.go
|
|
|
|
export interface GitAuthConfig {
|
|
|
|
readonly id: string
|
|
|
|
readonly type: string
|
|
|
|
readonly client_id: string
|
|
|
|
readonly auth_url: string
|
|
|
|
readonly token_url: string
|
|
|
|
readonly regex: string
|
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-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
|
|
|
|
readonly uploaded_at: string
|
2022-10-28 20:46:51 +00:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- TODO explain why this is needed
|
2022-08-22 22:02:50 +00:00
|
|
|
readonly claims: Record<string, any>
|
|
|
|
}
|
|
|
|
|
2022-10-06 12:38:22 +00:00
|
|
|
// From codersdk/agentconn.go
|
|
|
|
export interface ListeningPort {
|
|
|
|
readonly process_name: string
|
|
|
|
readonly network: ListeningPortNetwork
|
|
|
|
readonly port: number
|
|
|
|
}
|
|
|
|
|
|
|
|
// From codersdk/agentconn.go
|
|
|
|
export interface ListeningPortsResponse {
|
|
|
|
readonly ports: ListeningPort[]
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2022-10-25 00:11:00 +00:00
|
|
|
// From codersdk/deploymentconfig.go
|
|
|
|
export interface OAuth2Config {
|
|
|
|
readonly github: OAuth2GithubConfig
|
|
|
|
}
|
|
|
|
|
|
|
|
// From codersdk/deploymentconfig.go
|
|
|
|
export interface OAuth2GithubConfig {
|
|
|
|
readonly client_id: DeploymentConfigField<string>
|
|
|
|
readonly client_secret: DeploymentConfigField<string>
|
|
|
|
readonly allowed_orgs: DeploymentConfigField<string[]>
|
|
|
|
readonly allowed_teams: DeploymentConfigField<string[]>
|
|
|
|
readonly allow_signups: DeploymentConfigField<boolean>
|
|
|
|
readonly enterprise_base_url: DeploymentConfigField<string>
|
|
|
|
}
|
|
|
|
|
|
|
|
// From codersdk/deploymentconfig.go
|
|
|
|
export interface OIDCConfig {
|
|
|
|
readonly allow_signups: DeploymentConfigField<boolean>
|
|
|
|
readonly client_id: DeploymentConfigField<string>
|
|
|
|
readonly client_secret: DeploymentConfigField<string>
|
|
|
|
readonly email_domain: DeploymentConfigField<string>
|
|
|
|
readonly issuer_url: DeploymentConfigField<string>
|
|
|
|
readonly scopes: DeploymentConfigField<string[]>
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/organizationmember.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-10-10 20:37:06 +00:00
|
|
|
}
|
|
|
|
|
2022-10-25 00:11:00 +00:00
|
|
|
// From codersdk/deploymentconfig.go
|
|
|
|
export interface PprofConfig {
|
|
|
|
readonly enable: DeploymentConfigField<boolean>
|
|
|
|
readonly address: DeploymentConfigField<string>
|
|
|
|
}
|
|
|
|
|
|
|
|
// From codersdk/deploymentconfig.go
|
|
|
|
export interface PrometheusConfig {
|
|
|
|
readonly enable: DeploymentConfigField<boolean>
|
|
|
|
readonly address: DeploymentConfigField<string>
|
|
|
|
}
|
|
|
|
|
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-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
|
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-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 {
|
|
|
|
readonly id: string
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/error.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
|
|
|
|
}
|
|
|
|
|
2022-09-16 18:54:23 +00:00
|
|
|
// From codersdk/sse.go
|
|
|
|
export interface ServerSentEvent {
|
|
|
|
readonly type: ServerSentEventType
|
2022-10-28 20:46:51 +00:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- TODO explain why this is needed
|
2022-09-16 18:54:23 +00:00
|
|
|
readonly data: any
|
|
|
|
}
|
|
|
|
|
2022-10-25 00:11:00 +00:00
|
|
|
// From codersdk/deploymentconfig.go
|
|
|
|
export interface TLSConfig {
|
|
|
|
readonly enable: DeploymentConfigField<boolean>
|
|
|
|
readonly cert_file: DeploymentConfigField<string[]>
|
|
|
|
readonly client_auth: DeploymentConfigField<string>
|
|
|
|
readonly client_ca_file: DeploymentConfigField<string>
|
|
|
|
readonly key_file: DeploymentConfigField<string[]>
|
|
|
|
readonly min_version: DeploymentConfigField<string>
|
|
|
|
}
|
|
|
|
|
|
|
|
// From codersdk/deploymentconfig.go
|
|
|
|
export interface TelemetryConfig {
|
|
|
|
readonly enable: DeploymentConfigField<boolean>
|
|
|
|
readonly trace: DeploymentConfigField<boolean>
|
|
|
|
readonly url: DeploymentConfigField<string>
|
|
|
|
}
|
|
|
|
|
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-05-19 18:04:44 +00:00
|
|
|
readonly provisioner: ProvisionerType
|
2022-04-28 16:59:14 +00:00
|
|
|
readonly active_version_id: string
|
|
|
|
readonly workspace_owner_count: number
|
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-06-07 12:37:45 +00:00
|
|
|
readonly max_ttl_ms: number
|
|
|
|
readonly min_autostart_interval_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-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
|
|
|
|
export interface TemplateBuildTimeStats {
|
|
|
|
readonly start_ms?: number
|
|
|
|
readonly stop_ms?: number
|
|
|
|
readonly delete_ms?: number
|
|
|
|
}
|
|
|
|
|
2022-09-01 19:58:23 +00:00
|
|
|
// From codersdk/templates.go
|
|
|
|
export interface TemplateDAUsResponse {
|
|
|
|
readonly entries: DAUEntry[]
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
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-06-08 14:14:57 +00:00
|
|
|
readonly description?: string
|
2022-08-19 13:17:35 +00:00
|
|
|
readonly icon?: string
|
2022-06-08 14:14:57 +00:00
|
|
|
readonly max_ttl_ms?: number
|
|
|
|
readonly min_autostart_interval_ms?: number
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/error.go
|
2022-07-13 00:15:02 +00:00
|
|
|
export interface ValidationError {
|
|
|
|
readonly field: string
|
|
|
|
readonly detail: 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
|
2022-04-28 16:59:14 +00:00
|
|
|
readonly template_id: string
|
|
|
|
readonly template_name: string
|
2022-08-22 14:42:11 +00:00
|
|
|
readonly template_icon: string
|
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
|
|
|
|
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
|
|
|
|
readonly 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-06-24 15:25:01 +00:00
|
|
|
}
|
|
|
|
|
2022-10-25 00:46:24 +00:00
|
|
|
// From codersdk/workspaceagents.go
|
|
|
|
export interface WorkspaceAgentGitAuthResponse {
|
|
|
|
readonly username: string
|
|
|
|
readonly password: string
|
|
|
|
readonly url: string
|
|
|
|
}
|
|
|
|
|
2022-10-03 21:01:13 +00:00
|
|
|
// From codersdk/workspaceagents.go
|
2022-04-19 00:45:22 +00:00
|
|
|
export interface WorkspaceAgentInstanceMetadata {
|
|
|
|
readonly jail_orchestrator: string
|
|
|
|
readonly operating_system: string
|
|
|
|
readonly platform: string
|
|
|
|
readonly platform_family: string
|
|
|
|
readonly kernel_version: string
|
|
|
|
readonly kernel_architecture: string
|
|
|
|
readonly cloud: string
|
|
|
|
readonly jail: string
|
|
|
|
readonly vnc: boolean
|
|
|
|
}
|
|
|
|
|
2022-10-03 21:01:13 +00:00
|
|
|
// From codersdk/workspaceagents.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export interface WorkspaceAgentResourceMetadata {
|
|
|
|
readonly memory_total: number
|
|
|
|
readonly disk_total: number
|
|
|
|
readonly cpu_cores: number
|
|
|
|
readonly cpu_model: string
|
|
|
|
readonly cpu_mhz: number
|
2022-04-19 00:45:22 +00:00
|
|
|
}
|
|
|
|
|
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-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-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
|
2022-10-03 16:43:11 +00:00
|
|
|
readonly status: WorkspaceStatus
|
2022-04-19 00:45:22 +00:00
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2022-10-20 17:23:14 +00:00
|
|
|
// From codersdk/workspaces.go
|
|
|
|
export interface WorkspaceCountRequest {
|
|
|
|
readonly q?: string
|
|
|
|
}
|
|
|
|
|
|
|
|
// From codersdk/workspaces.go
|
|
|
|
export interface WorkspaceCountResponse {
|
|
|
|
readonly count: 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
|
|
|
}
|
|
|
|
|
2022-09-30 18:01:20 +00:00
|
|
|
// From codersdk/workspacequota.go
|
|
|
|
export interface WorkspaceQuota {
|
|
|
|
readonly user_workspace_count: number
|
|
|
|
readonly user_workspace_limit: number
|
|
|
|
}
|
|
|
|
|
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-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-10-14 16:46:38 +00:00
|
|
|
// From codersdk/apikey.go
|
|
|
|
export type APIKeyScope = "all" | "application_connect"
|
|
|
|
|
2022-08-31 21:12:54 +00:00
|
|
|
// From codersdk/audit.go
|
2022-10-25 19:34:48 +00:00
|
|
|
export type AuditAction = "create" | "delete" | "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"
|
|
|
|
|
2022-08-17 16:02:36 +00:00
|
|
|
// From codersdk/features.go
|
|
|
|
export type Entitlement = "entitled" | "grace_period" | "not_entitled"
|
|
|
|
|
2022-10-06 12:38:22 +00:00
|
|
|
// From codersdk/agentconn.go
|
|
|
|
export type ListeningPortNetwork = "tcp"
|
|
|
|
|
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"
|
|
|
|
|
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"
|
|
|
|
|
2022-10-06 19:02:27 +00:00
|
|
|
// From codersdk/apikey.go
|
|
|
|
export type 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"
|
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"
|
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"
|
|
|
|
|
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"
|
|
|
|
|
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"
|
2022-04-19 02:03:37 +00:00
|
|
|
|
2022-07-27 21:36:15 +00:00
|
|
|
// From codersdk/organizations.go
|
2022-05-19 18:04:44 +00:00
|
|
|
export type ProvisionerStorageMethod = "file"
|
|
|
|
|
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"
|
|
|
|
|
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"
|
2022-09-08 14:36:34 +00:00
|
|
|
| "organization"
|
|
|
|
| "template"
|
|
|
|
| "template_version"
|
|
|
|
| "user"
|
|
|
|
| "workspace"
|
2022-10-25 19:34:48 +00:00
|
|
|
| "workspace_build"
|
2022-08-31 21:12:54 +00:00
|
|
|
|
2022-09-16 18:54:23 +00:00
|
|
|
// From codersdk/sse.go
|
|
|
|
export type ServerSentEventType = "data" | "error" | "ping"
|
|
|
|
|
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"
|
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"
|
|
|
|
|
2022-10-03 21:01:13 +00:00
|
|
|
// From codersdk/workspaceagents.go
|
2022-04-28 16:59:14 +00:00
|
|
|
export type WorkspaceAgentStatus = "connected" | "connecting" | "disconnected"
|
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"
|
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"
|
|
|
|
|
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"
|
|
|
|
|
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"
|
2022-10-21 22:08:23 +00:00
|
|
|
|
|
|
|
// From codersdk/deploymentconfig.go
|
2022-10-25 00:46:24 +00:00
|
|
|
export type Flaggable = string | number | boolean | string[] | GitAuthConfig[]
|