|
|
@@ -2845,6 +2845,38 @@ export class File extends HeyApiClient {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+export class Event extends HeyApiClient {
|
|
|
+ /**
|
|
|
+ * Subscribe to events
|
|
|
+ *
|
|
|
+ * Get events
|
|
|
+ */
|
|
|
+ public subscribe<ThrowOnError extends boolean = false>(
|
|
|
+ parameters?: {
|
|
|
+ directory?: string
|
|
|
+ workspace?: string
|
|
|
+ },
|
|
|
+ options?: Options<never, ThrowOnError>,
|
|
|
+ ) {
|
|
|
+ const params = buildClientParams(
|
|
|
+ [parameters],
|
|
|
+ [
|
|
|
+ {
|
|
|
+ args: [
|
|
|
+ { in: "query", key: "directory" },
|
|
|
+ { in: "query", key: "workspace" },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ )
|
|
|
+ return (options?.client ?? this.client).sse.get<EventSubscribeResponses, unknown, ThrowOnError>({
|
|
|
+ url: "/event",
|
|
|
+ ...options,
|
|
|
+ ...params,
|
|
|
+ })
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
export class Auth2 extends HeyApiClient {
|
|
|
/**
|
|
|
* Remove MCP OAuth
|
|
|
@@ -3866,38 +3898,6 @@ export class Formatter extends HeyApiClient {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export class Event extends HeyApiClient {
|
|
|
- /**
|
|
|
- * Subscribe to events
|
|
|
- *
|
|
|
- * Get events
|
|
|
- */
|
|
|
- public subscribe<ThrowOnError extends boolean = false>(
|
|
|
- parameters?: {
|
|
|
- directory?: string
|
|
|
- workspace?: string
|
|
|
- },
|
|
|
- options?: Options<never, ThrowOnError>,
|
|
|
- ) {
|
|
|
- const params = buildClientParams(
|
|
|
- [parameters],
|
|
|
- [
|
|
|
- {
|
|
|
- args: [
|
|
|
- { in: "query", key: "directory" },
|
|
|
- { in: "query", key: "workspace" },
|
|
|
- ],
|
|
|
- },
|
|
|
- ],
|
|
|
- )
|
|
|
- return (options?.client ?? this.client).sse.get<EventSubscribeResponses, unknown, ThrowOnError>({
|
|
|
- url: "/event",
|
|
|
- ...options,
|
|
|
- ...params,
|
|
|
- })
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
export class OpencodeClient extends HeyApiClient {
|
|
|
public static readonly __registry = new HeyApiRegistry<OpencodeClient>()
|
|
|
|
|
|
@@ -3981,6 +3981,11 @@ export class OpencodeClient extends HeyApiClient {
|
|
|
return (this._file ??= new File({ client: this.client }))
|
|
|
}
|
|
|
|
|
|
+ private _event?: Event
|
|
|
+ get event(): Event {
|
|
|
+ return (this._event ??= new Event({ client: this.client }))
|
|
|
+ }
|
|
|
+
|
|
|
private _mcp?: Mcp
|
|
|
get mcp(): Mcp {
|
|
|
return (this._mcp ??= new Mcp({ client: this.client }))
|
|
|
@@ -4025,9 +4030,4 @@ export class OpencodeClient extends HeyApiClient {
|
|
|
get formatter(): Formatter {
|
|
|
return (this._formatter ??= new Formatter({ client: this.client }))
|
|
|
}
|
|
|
-
|
|
|
- private _event?: Event
|
|
|
- get event(): Event {
|
|
|
- return (this._event ??= new Event({ client: this.client }))
|
|
|
- }
|
|
|
}
|