mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
AGPL Entitlements API (#3523)
* AGPL Entitlements API Signed-off-by: Spike Curtis <spike@coder.com> * Generate typesGenerated.ts Signed-off-by: Spike Curtis <spike@coder.com> * AllFeatures -> FeatureNames Signed-off-by: Spike Curtis <spike@coder.com> Signed-off-by: Spike Curtis <spike@coder.com>
This commit is contained in:
@@ -134,6 +134,21 @@ export interface CreateWorkspaceRequest {
|
||||
readonly parameter_values?: CreateParameterRequest[]
|
||||
}
|
||||
|
||||
// From codersdk/features.go
|
||||
export interface Entitlements {
|
||||
readonly features: Record<string, Feature>
|
||||
readonly warnings: string[]
|
||||
readonly has_license: boolean
|
||||
}
|
||||
|
||||
// From codersdk/features.go
|
||||
export interface Feature {
|
||||
readonly entitlement: Entitlement
|
||||
readonly enabled: boolean
|
||||
readonly limit?: number
|
||||
readonly actual?: number
|
||||
}
|
||||
|
||||
// From codersdk/users.go
|
||||
export interface GenerateAPIKeyResponse {
|
||||
readonly key: string
|
||||
@@ -535,6 +550,9 @@ export interface WorkspaceResourceMetadata {
|
||||
// From codersdk/workspacebuilds.go
|
||||
export type BuildReason = "autostart" | "autostop" | "initiator"
|
||||
|
||||
// From codersdk/features.go
|
||||
export type Entitlement = "entitled" | "grace_period" | "not_entitled"
|
||||
|
||||
// From codersdk/provisionerdaemons.go
|
||||
export type LogLevel = "debug" | "error" | "info" | "trace" | "warn"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user