refactor(config): remove preferences API

This commit is contained in:
Dax Raad
2026-09-13 19:27:56 -04:00
parent 7784b3ee0d
commit c2cf497e19
20 changed files with 11 additions and 888 deletions
-146
View File
@@ -12724,98 +12724,6 @@
"summary": "Get configuration"
}
},
"/api/config/preferences": {
"get": {
"tags": ["config"],
"operationId": "config.preferences",
"parameters": [],
"security": [],
"responses": {
"200": {
"description": "Config.Preferences",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Config.Preferences"
}
}
}
},
"400": {
"description": "InvalidRequestError",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/InvalidRequestErrorEncoded"
}
}
}
},
"401": {
"description": "UnauthorizedError",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UnauthorizedErrorEncoded"
}
}
}
}
},
"description": "Return preferences from the highest-precedence global configuration document.",
"summary": "Get global preferences"
},
"patch": {
"tags": ["config"],
"operationId": "config.updatePreferences",
"parameters": [],
"security": [],
"responses": {
"200": {
"description": "Config.Preferences",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Config.Preferences"
}
}
}
},
"400": {
"description": "InvalidRequestError",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/InvalidRequestErrorEncoded"
}
}
}
},
"401": {
"description": "UnauthorizedError",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UnauthorizedErrorEncoded"
}
}
}
}
},
"description": "Patch preferences in the highest-precedence global configuration document.",
"summary": "Update global preferences",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Config.PreferencesPatch"
}
}
},
"required": true
}
}
},
"/api/config/shell": {
"get": {
"tags": ["config"],
@@ -13686,60 +13594,6 @@
"required": ["package"],
"additionalProperties": false
},
"Config.Preferences": {
"type": "object",
"properties": {
"shell": {
"type": "string"
},
"websearch": {
"anyOf": [
{
"type": "boolean",
"enum": [false]
},
{
"$ref": "#/components/schemas/ConfigWebSearch.InfoEncoded"
}
]
}
},
"additionalProperties": false
},
"Config.PreferencesPatch": {
"type": "object",
"properties": {
"shell": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"websearch": {
"anyOf": [
{
"anyOf": [
{
"type": "boolean",
"enum": [false]
},
{
"$ref": "#/components/schemas/ConfigWebSearch.InfoEncoded"
}
]
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"Config.ProviderEncoded": {
"type": "object",
"properties": {
-146
View File
@@ -12724,98 +12724,6 @@
"summary": "Get configuration"
}
},
"/api/config/preferences": {
"get": {
"tags": ["config"],
"operationId": "config.preferences",
"parameters": [],
"security": [],
"responses": {
"200": {
"description": "Config.Preferences",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Config.Preferences"
}
}
}
},
"400": {
"description": "InvalidRequestError",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/InvalidRequestErrorEncoded"
}
}
}
},
"401": {
"description": "UnauthorizedError",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UnauthorizedErrorEncoded"
}
}
}
}
},
"description": "Return preferences from the highest-precedence global configuration document.",
"summary": "Get global preferences"
},
"patch": {
"tags": ["config"],
"operationId": "config.updatePreferences",
"parameters": [],
"security": [],
"responses": {
"200": {
"description": "Config.Preferences",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Config.Preferences"
}
}
}
},
"400": {
"description": "InvalidRequestError",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/InvalidRequestErrorEncoded"
}
}
}
},
"401": {
"description": "UnauthorizedError",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UnauthorizedErrorEncoded"
}
}
}
}
},
"description": "Patch preferences in the highest-precedence global configuration document.",
"summary": "Update global preferences",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Config.PreferencesPatch"
}
}
},
"required": true
}
}
},
"/api/config/shell": {
"get": {
"tags": ["config"],
@@ -13686,60 +13594,6 @@
"required": ["package"],
"additionalProperties": false
},
"Config.Preferences": {
"type": "object",
"properties": {
"shell": {
"type": "string"
},
"websearch": {
"anyOf": [
{
"type": "boolean",
"enum": [false]
},
{
"$ref": "#/components/schemas/ConfigWebSearch.InfoEncoded"
}
]
}
},
"additionalProperties": false
},
"Config.PreferencesPatch": {
"type": "object",
"properties": {
"shell": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"websearch": {
"anyOf": [
{
"anyOf": [
{
"type": "boolean",
"enum": [false]
},
{
"$ref": "#/components/schemas/ConfigWebSearch.InfoEncoded"
}
]
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"Config.ProviderEncoded": {
"type": "object",
"properties": {