mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: add "user_configs" db table (#16564)
This commit is contained in:
Generated
+44
-1
@@ -6395,6 +6395,38 @@ const docTemplate = `{
|
||||
}
|
||||
},
|
||||
"/users/{user}/appearance": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"CoderSessionToken": []
|
||||
}
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Users"
|
||||
],
|
||||
"summary": "Get user appearance settings",
|
||||
"operationId": "get-user-appearance-settings",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "User ID, name, or me",
|
||||
"name": "user",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/codersdk.UserAppearanceSettings"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"put": {
|
||||
"security": [
|
||||
{
|
||||
@@ -6434,7 +6466,7 @@ const docTemplate = `{
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/codersdk.User"
|
||||
"$ref": "#/definitions/codersdk.UserAppearanceSettings"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13857,6 +13889,7 @@ const docTemplate = `{
|
||||
]
|
||||
},
|
||||
"theme_preference": {
|
||||
"description": "Deprecated: this value should be retrieved from\n` + "`" + `codersdk.UserPreferenceSettings` + "`" + ` instead.",
|
||||
"type": "string"
|
||||
},
|
||||
"updated_at": {
|
||||
@@ -14724,6 +14757,7 @@ const docTemplate = `{
|
||||
]
|
||||
},
|
||||
"theme_preference": {
|
||||
"description": "Deprecated: this value should be retrieved from\n` + "`" + `codersdk.UserPreferenceSettings` + "`" + ` instead.",
|
||||
"type": "string"
|
||||
},
|
||||
"updated_at": {
|
||||
@@ -15334,6 +15368,7 @@ const docTemplate = `{
|
||||
]
|
||||
},
|
||||
"theme_preference": {
|
||||
"description": "Deprecated: this value should be retrieved from\n` + "`" + `codersdk.UserPreferenceSettings` + "`" + ` instead.",
|
||||
"type": "string"
|
||||
},
|
||||
"updated_at": {
|
||||
@@ -15406,6 +15441,14 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.UserAppearanceSettings": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"theme_preference": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.UserLatency": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Generated
+40
-1
@@ -5647,6 +5647,34 @@
|
||||
}
|
||||
},
|
||||
"/users/{user}/appearance": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"CoderSessionToken": []
|
||||
}
|
||||
],
|
||||
"produces": ["application/json"],
|
||||
"tags": ["Users"],
|
||||
"summary": "Get user appearance settings",
|
||||
"operationId": "get-user-appearance-settings",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "User ID, name, or me",
|
||||
"name": "user",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/codersdk.UserAppearanceSettings"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"put": {
|
||||
"security": [
|
||||
{
|
||||
@@ -5680,7 +5708,7 @@
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/codersdk.User"
|
||||
"$ref": "#/definitions/codersdk.UserAppearanceSettings"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12538,6 +12566,7 @@
|
||||
]
|
||||
},
|
||||
"theme_preference": {
|
||||
"description": "Deprecated: this value should be retrieved from\n`codersdk.UserPreferenceSettings` instead.",
|
||||
"type": "string"
|
||||
},
|
||||
"updated_at": {
|
||||
@@ -13380,6 +13409,7 @@
|
||||
]
|
||||
},
|
||||
"theme_preference": {
|
||||
"description": "Deprecated: this value should be retrieved from\n`codersdk.UserPreferenceSettings` instead.",
|
||||
"type": "string"
|
||||
},
|
||||
"updated_at": {
|
||||
@@ -13942,6 +13972,7 @@
|
||||
]
|
||||
},
|
||||
"theme_preference": {
|
||||
"description": "Deprecated: this value should be retrieved from\n`codersdk.UserPreferenceSettings` instead.",
|
||||
"type": "string"
|
||||
},
|
||||
"updated_at": {
|
||||
@@ -14014,6 +14045,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.UserAppearanceSettings": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"theme_preference": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.UserLatency": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user