chore: generate
This commit is contained in:
@@ -142,8 +142,7 @@ export function formatKeybind(config: string): string {
|
|||||||
space: "Space",
|
space: "Space",
|
||||||
}
|
}
|
||||||
const key = kb.key.toLowerCase()
|
const key = kb.key.toLowerCase()
|
||||||
const displayKey =
|
const displayKey = keys[key] ?? (key.length === 1 ? key.toUpperCase() : key.charAt(0).toUpperCase() + key.slice(1))
|
||||||
keys[key] ?? (key.length === 1 ? key.toUpperCase() : key.charAt(0).toUpperCase() + key.slice(1))
|
|
||||||
parts.push(displayKey)
|
parts.push(displayKey)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,9 +32,6 @@ import type {
|
|||||||
FindSymbolsResponses,
|
FindSymbolsResponses,
|
||||||
FindTextResponses,
|
FindTextResponses,
|
||||||
FormatterStatusResponses,
|
FormatterStatusResponses,
|
||||||
GlobalConfigGetResponses,
|
|
||||||
GlobalConfigUpdateErrors,
|
|
||||||
GlobalConfigUpdateResponses,
|
|
||||||
GlobalDisposeResponses,
|
GlobalDisposeResponses,
|
||||||
GlobalEventResponses,
|
GlobalEventResponses,
|
||||||
GlobalHealthResponses,
|
GlobalHealthResponses,
|
||||||
@@ -252,42 +249,6 @@ export class Global extends HeyApiClient {
|
|||||||
...options,
|
...options,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get global configuration
|
|
||||||
*
|
|
||||||
* Retrieve the global OpenCode configuration settings and preferences.
|
|
||||||
*/
|
|
||||||
public configGet<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
|
|
||||||
return (options?.client ?? this.client).get<GlobalConfigGetResponses, unknown, ThrowOnError>({
|
|
||||||
url: "/global/config",
|
|
||||||
...options,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Update global configuration
|
|
||||||
*
|
|
||||||
* Update global OpenCode configuration settings and preferences.
|
|
||||||
*/
|
|
||||||
public configUpdate<ThrowOnError extends boolean = false>(
|
|
||||||
parameters?: {
|
|
||||||
config?: Config2
|
|
||||||
},
|
|
||||||
options?: Options<never, ThrowOnError>,
|
|
||||||
) {
|
|
||||||
const params = buildClientParams([parameters], [{ args: [{ key: "config", map: "body" }] }])
|
|
||||||
return (options?.client ?? this.client).patch<GlobalConfigUpdateResponses, GlobalConfigUpdateErrors, ThrowOnError>({
|
|
||||||
url: "/global/config",
|
|
||||||
...options,
|
|
||||||
...params,
|
|
||||||
headers: {
|
|
||||||
"Content-Type": "application/json",
|
|
||||||
...options?.headers,
|
|
||||||
...params.headers,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export class Project extends HeyApiClient {
|
export class Project extends HeyApiClient {
|
||||||
|
|||||||
@@ -48,6 +48,20 @@ export type EventServerInstanceDisposed = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type EventServerConnected = {
|
||||||
|
type: "server.connected"
|
||||||
|
properties: {
|
||||||
|
[key: string]: unknown
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EventGlobalDisposed = {
|
||||||
|
type: "global.disposed"
|
||||||
|
properties: {
|
||||||
|
[key: string]: unknown
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export type EventLspClientDiagnostics = {
|
export type EventLspClientDiagnostics = {
|
||||||
type: "lsp.client.diagnostics"
|
type: "lsp.client.diagnostics"
|
||||||
properties: {
|
properties: {
|
||||||
@@ -846,25 +860,13 @@ export type EventPtyDeleted = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export type EventGlobalDisposed = {
|
|
||||||
type: "global.disposed"
|
|
||||||
properties: {
|
|
||||||
[key: string]: unknown
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EventServerConnected = {
|
|
||||||
type: "server.connected"
|
|
||||||
properties: {
|
|
||||||
[key: string]: unknown
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type Event =
|
export type Event =
|
||||||
| EventInstallationUpdated
|
| EventInstallationUpdated
|
||||||
| EventInstallationUpdateAvailable
|
| EventInstallationUpdateAvailable
|
||||||
| EventProjectUpdated
|
| EventProjectUpdated
|
||||||
| EventServerInstanceDisposed
|
| EventServerInstanceDisposed
|
||||||
|
| EventServerConnected
|
||||||
|
| EventGlobalDisposed
|
||||||
| EventLspClientDiagnostics
|
| EventLspClientDiagnostics
|
||||||
| EventLspUpdated
|
| EventLspUpdated
|
||||||
| EventFileEdited
|
| EventFileEdited
|
||||||
@@ -899,8 +901,6 @@ export type Event =
|
|||||||
| EventPtyUpdated
|
| EventPtyUpdated
|
||||||
| EventPtyExited
|
| EventPtyExited
|
||||||
| EventPtyDeleted
|
| EventPtyDeleted
|
||||||
| EventGlobalDisposed
|
|
||||||
| EventServerConnected
|
|
||||||
|
|
||||||
export type GlobalEvent = {
|
export type GlobalEvent = {
|
||||||
directory: string
|
directory: string
|
||||||
@@ -2189,47 +2189,6 @@ export type GlobalDisposeResponses = {
|
|||||||
|
|
||||||
export type GlobalDisposeResponse = GlobalDisposeResponses[keyof GlobalDisposeResponses]
|
export type GlobalDisposeResponse = GlobalDisposeResponses[keyof GlobalDisposeResponses]
|
||||||
|
|
||||||
export type GlobalConfigGetData = {
|
|
||||||
body?: never
|
|
||||||
path?: never
|
|
||||||
query?: never
|
|
||||||
url: "/global/config"
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GlobalConfigGetResponses = {
|
|
||||||
/**
|
|
||||||
* Global config
|
|
||||||
*/
|
|
||||||
200: Config
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GlobalConfigGetResponse = GlobalConfigGetResponses[keyof GlobalConfigGetResponses]
|
|
||||||
|
|
||||||
export type GlobalConfigUpdateData = {
|
|
||||||
body?: Config
|
|
||||||
path?: never
|
|
||||||
query?: never
|
|
||||||
url: "/global/config"
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GlobalConfigUpdateErrors = {
|
|
||||||
/**
|
|
||||||
* Bad request
|
|
||||||
*/
|
|
||||||
400: BadRequestError
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GlobalConfigUpdateError = GlobalConfigUpdateErrors[keyof GlobalConfigUpdateErrors]
|
|
||||||
|
|
||||||
export type GlobalConfigUpdateResponses = {
|
|
||||||
/**
|
|
||||||
* Successfully updated global config
|
|
||||||
*/
|
|
||||||
200: Config
|
|
||||||
}
|
|
||||||
|
|
||||||
export type GlobalConfigUpdateResponse = GlobalConfigUpdateResponses[keyof GlobalConfigUpdateResponses]
|
|
||||||
|
|
||||||
export type ProjectListData = {
|
export type ProjectListData = {
|
||||||
body?: never
|
body?: never
|
||||||
path?: never
|
path?: never
|
||||||
|
|||||||
@@ -5863,6 +5863,34 @@
|
|||||||
},
|
},
|
||||||
"required": ["type", "properties"]
|
"required": ["type", "properties"]
|
||||||
},
|
},
|
||||||
|
"Event.server.connected": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"const": "server.connected"
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": ["type", "properties"]
|
||||||
|
},
|
||||||
|
"Event.global.disposed": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"const": "global.disposed"
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": ["type", "properties"]
|
||||||
|
},
|
||||||
"Event.lsp.client.diagnostics": {
|
"Event.lsp.client.diagnostics": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
@@ -8075,34 +8103,6 @@
|
|||||||
},
|
},
|
||||||
"required": ["type", "properties"]
|
"required": ["type", "properties"]
|
||||||
},
|
},
|
||||||
"Event.global.disposed": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"type": {
|
|
||||||
"type": "string",
|
|
||||||
"const": "global.disposed"
|
|
||||||
},
|
|
||||||
"properties": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": ["type", "properties"]
|
|
||||||
},
|
|
||||||
"Event.server.connected": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"type": {
|
|
||||||
"type": "string",
|
|
||||||
"const": "server.connected"
|
|
||||||
},
|
|
||||||
"properties": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": ["type", "properties"]
|
|
||||||
},
|
|
||||||
"Event": {
|
"Event": {
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
@@ -8117,6 +8117,12 @@
|
|||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/Event.server.instance.disposed"
|
"$ref": "#/components/schemas/Event.server.instance.disposed"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/Event.server.connected"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/Event.global.disposed"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/Event.lsp.client.diagnostics"
|
"$ref": "#/components/schemas/Event.lsp.client.diagnostics"
|
||||||
},
|
},
|
||||||
@@ -8218,12 +8224,6 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/Event.pty.deleted"
|
"$ref": "#/components/schemas/Event.pty.deleted"
|
||||||
},
|
|
||||||
{
|
|
||||||
"$ref": "#/components/schemas/Event.global.disposed"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"$ref": "#/components/schemas/Event.server.connected"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -134,4 +134,3 @@
|
|||||||
transform: scale(1);
|
transform: scale(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user