@opencode-ai/sdk 0.3.112 → 0.3.120

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  const extraPrefixesMap = {
2
- $body_: 'body',
3
- $headers_: 'headers',
4
- $path_: 'path',
5
- $query_: 'query',
2
+ $body_: "body",
3
+ $headers_: "headers",
4
+ $path_: "path",
5
+ $query_: "query",
6
6
  };
7
7
  const extraPrefixes = Object.entries(extraPrefixesMap);
8
8
  const buildKeyMap = (fields, map) => {
@@ -10,7 +10,7 @@ const buildKeyMap = (fields, map) => {
10
10
  map = new Map();
11
11
  }
12
12
  for (const config of fields) {
13
- if ('in' in config) {
13
+ if ("in" in config) {
14
14
  if (config.key) {
15
15
  map.set(config.key, {
16
16
  in: config.in,
@@ -26,7 +26,7 @@ const buildKeyMap = (fields, map) => {
26
26
  };
27
27
  const stripEmptySlots = (params) => {
28
28
  for (const [slot, value] of Object.entries(params)) {
29
- if (value && typeof value === 'object' && !Object.keys(value).length) {
29
+ if (value && typeof value === "object" && !Object.keys(value).length) {
30
30
  delete params[slot];
31
31
  }
32
32
  }
@@ -47,7 +47,7 @@ export const buildClientParams = (args, fields) => {
47
47
  if (!config) {
48
48
  continue;
49
49
  }
50
- if ('in' in config) {
50
+ if ("in" in config) {
51
51
  if (config.key) {
52
52
  const field = map.get(config.key);
53
53
  const name = field.map || config.key;
@@ -73,6 +73,7 @@ export const buildClientParams = (args, fields) => {
73
73
  else {
74
74
  for (const [slot, allowed] of Object.entries(config.allowExtra ?? {})) {
75
75
  if (allowed) {
76
+ ;
76
77
  params[slot][key] = value;
77
78
  break;
78
79
  }
@@ -11,10 +11,10 @@ export interface SerializerOptions<T> {
11
11
  explode: boolean;
12
12
  style: T;
13
13
  }
14
- export type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
14
+ export type ArrayStyle = "form" | "spaceDelimited" | "pipeDelimited";
15
15
  export type ArraySeparatorStyle = ArrayStyle | MatrixStyle;
16
- type MatrixStyle = 'label' | 'matrix' | 'simple';
17
- export type ObjectStyle = 'form' | 'deepObject';
16
+ type MatrixStyle = "label" | "matrix" | "simple";
17
+ export type ObjectStyle = "form" | "deepObject";
18
18
  type ObjectSeparatorStyle = ObjectStyle | MatrixStyle;
19
19
  interface SerializePrimitiveParam extends SerializePrimitiveOptions {
20
20
  value: string;
@@ -25,7 +25,7 @@ export declare const separatorObjectExplode: (style: ObjectSeparatorStyle) => ".
25
25
  export declare const serializeArrayParam: ({ allowReserved, explode, name, style, value, }: SerializeOptions<ArraySeparatorStyle> & {
26
26
  value: unknown[];
27
27
  }) => string;
28
- export declare const serializePrimitiveParam: ({ allowReserved, name, value, }: SerializePrimitiveParam) => string;
28
+ export declare const serializePrimitiveParam: ({ allowReserved, name, value }: SerializePrimitiveParam) => string;
29
29
  export declare const serializeObjectParam: ({ allowReserved, explode, name, style, value, valueOnly, }: SerializeOptions<ObjectSeparatorStyle> & {
30
30
  value: Record<string, unknown> | Date;
31
31
  valueOnly?: boolean;
@@ -1,48 +1,48 @@
1
1
  export const separatorArrayExplode = (style) => {
2
2
  switch (style) {
3
- case 'label':
4
- return '.';
5
- case 'matrix':
6
- return ';';
7
- case 'simple':
8
- return ',';
3
+ case "label":
4
+ return ".";
5
+ case "matrix":
6
+ return ";";
7
+ case "simple":
8
+ return ",";
9
9
  default:
10
- return '&';
10
+ return "&";
11
11
  }
12
12
  };
13
13
  export const separatorArrayNoExplode = (style) => {
14
14
  switch (style) {
15
- case 'form':
16
- return ',';
17
- case 'pipeDelimited':
18
- return '|';
19
- case 'spaceDelimited':
20
- return '%20';
15
+ case "form":
16
+ return ",";
17
+ case "pipeDelimited":
18
+ return "|";
19
+ case "spaceDelimited":
20
+ return "%20";
21
21
  default:
22
- return ',';
22
+ return ",";
23
23
  }
24
24
  };
25
25
  export const separatorObjectExplode = (style) => {
26
26
  switch (style) {
27
- case 'label':
28
- return '.';
29
- case 'matrix':
30
- return ';';
31
- case 'simple':
32
- return ',';
27
+ case "label":
28
+ return ".";
29
+ case "matrix":
30
+ return ";";
31
+ case "simple":
32
+ return ",";
33
33
  default:
34
- return '&';
34
+ return "&";
35
35
  }
36
36
  };
37
37
  export const serializeArrayParam = ({ allowReserved, explode, name, style, value, }) => {
38
38
  if (!explode) {
39
39
  const joinedValues = (allowReserved ? value : value.map((v) => encodeURIComponent(v))).join(separatorArrayNoExplode(style));
40
40
  switch (style) {
41
- case 'label':
41
+ case "label":
42
42
  return `.${joinedValues}`;
43
- case 'matrix':
43
+ case "matrix":
44
44
  return `;${name}=${joinedValues}`;
45
- case 'simple':
45
+ case "simple":
46
46
  return joinedValues;
47
47
  default:
48
48
  return `${name}=${joinedValues}`;
@@ -51,7 +51,7 @@ export const serializeArrayParam = ({ allowReserved, explode, name, style, value
51
51
  const separator = separatorArrayExplode(style);
52
52
  const joinedValues = value
53
53
  .map((v) => {
54
- if (style === 'label' || style === 'simple') {
54
+ if (style === "label" || style === "simple") {
55
55
  return allowReserved ? v : encodeURIComponent(v);
56
56
  }
57
57
  return serializePrimitiveParam({
@@ -61,16 +61,14 @@ export const serializeArrayParam = ({ allowReserved, explode, name, style, value
61
61
  });
62
62
  })
63
63
  .join(separator);
64
- return style === 'label' || style === 'matrix'
65
- ? separator + joinedValues
66
- : joinedValues;
64
+ return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
67
65
  };
68
- export const serializePrimitiveParam = ({ allowReserved, name, value, }) => {
66
+ export const serializePrimitiveParam = ({ allowReserved, name, value }) => {
69
67
  if (value === undefined || value === null) {
70
- return '';
68
+ return "";
71
69
  }
72
- if (typeof value === 'object') {
73
- throw new Error('Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.');
70
+ if (typeof value === "object") {
71
+ throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");
74
72
  }
75
73
  return `${name}=${allowReserved ? value : encodeURIComponent(value)}`;
76
74
  };
@@ -78,22 +76,18 @@ export const serializeObjectParam = ({ allowReserved, explode, name, style, valu
78
76
  if (value instanceof Date) {
79
77
  return valueOnly ? value.toISOString() : `${name}=${value.toISOString()}`;
80
78
  }
81
- if (style !== 'deepObject' && !explode) {
79
+ if (style !== "deepObject" && !explode) {
82
80
  let values = [];
83
81
  Object.entries(value).forEach(([key, v]) => {
84
- values = [
85
- ...values,
86
- key,
87
- allowReserved ? v : encodeURIComponent(v),
88
- ];
82
+ values = [...values, key, allowReserved ? v : encodeURIComponent(v)];
89
83
  });
90
- const joinedValues = values.join(',');
84
+ const joinedValues = values.join(",");
91
85
  switch (style) {
92
- case 'form':
86
+ case "form":
93
87
  return `${name}=${joinedValues}`;
94
- case 'label':
88
+ case "label":
95
89
  return `.${joinedValues}`;
96
- case 'matrix':
90
+ case "matrix":
97
91
  return `;${name}=${joinedValues}`;
98
92
  default:
99
93
  return joinedValues;
@@ -103,11 +97,9 @@ export const serializeObjectParam = ({ allowReserved, explode, name, style, valu
103
97
  const joinedValues = Object.entries(value)
104
98
  .map(([key, v]) => serializePrimitiveParam({
105
99
  allowReserved,
106
- name: style === 'deepObject' ? `${name}[${key}]` : key,
100
+ name: style === "deepObject" ? `${name}[${key}]` : key,
107
101
  value: v,
108
102
  }))
109
103
  .join(separator);
110
- return style === 'label' || style === 'matrix'
111
- ? separator + joinedValues
112
- : joinedValues;
104
+ return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
113
105
  };
@@ -1,5 +1,5 @@
1
- import type { Auth, AuthToken } from './auth';
2
- import type { BodySerializer, QuerySerializer, QuerySerializerOptions } from './bodySerializer';
1
+ import type { Auth, AuthToken } from "./auth";
2
+ import type { BodySerializer, QuerySerializer, QuerySerializerOptions } from "./bodySerializer";
3
3
  export interface Client<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never> {
4
4
  /**
5
5
  * Returns the final request URL.
@@ -35,13 +35,13 @@ export interface Config {
35
35
  *
36
36
  * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
37
37
  */
38
- headers?: RequestInit['headers'] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
38
+ headers?: RequestInit["headers"] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
39
39
  /**
40
40
  * The request method.
41
41
  *
42
42
  * {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
43
43
  */
44
- method?: 'CONNECT' | 'DELETE' | 'GET' | 'HEAD' | 'OPTIONS' | 'PATCH' | 'POST' | 'PUT' | 'TRACE';
44
+ method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
45
45
  /**
46
46
  * A function for serializing request query parameters. By default, arrays
47
47
  * will be exploded in form style, objects will be exploded in deepObject
@@ -1,5 +1,5 @@
1
- import type { Options as ClientOptions, TDataShape, Client } from './client';
2
- import type { EventSubscribeData, EventSubscribeResponses, AppGetData, AppGetResponses, AppInitData, AppInitResponses, ConfigGetData, ConfigGetResponses, SessionListData, SessionListResponses, SessionCreateData, SessionCreateResponses, SessionCreateErrors, SessionDeleteData, SessionDeleteResponses, SessionInitData, SessionInitResponses, SessionAbortData, SessionAbortResponses, SessionUnshareData, SessionUnshareResponses, SessionShareData, SessionShareResponses, SessionSummarizeData, SessionSummarizeResponses, SessionMessagesData, SessionMessagesResponses, SessionChatData, SessionChatResponses, SessionMessageData, SessionMessageResponses, SessionRevertData, SessionRevertResponses, SessionUnrevertData, SessionUnrevertResponses, PostSessionByIdPermissionsByPermissionIdData, PostSessionByIdPermissionsByPermissionIdResponses, ConfigProvidersData, ConfigProvidersResponses, FindTextData, FindTextResponses, FindFilesData, FindFilesResponses, FindSymbolsData, FindSymbolsResponses, FileReadData, FileReadResponses, FileStatusData, FileStatusResponses, AppLogData, AppLogResponses, AppModesData, AppModesResponses, TuiAppendPromptData, TuiAppendPromptResponses, TuiOpenHelpData, TuiOpenHelpResponses, TuiOpenSessionsData, TuiOpenSessionsResponses, TuiOpenThemesData, TuiOpenThemesResponses, TuiOpenModelsData, TuiOpenModelsResponses, TuiSubmitPromptData, TuiSubmitPromptResponses, TuiClearPromptData, TuiClearPromptResponses, TuiExecuteCommandData, TuiExecuteCommandResponses } from './types.gen';
1
+ import type { Options as ClientOptions, TDataShape, Client } from "./client";
2
+ import type { EventSubscribeData, EventSubscribeResponses, AppGetData, AppGetResponses, AppInitData, AppInitResponses, ConfigGetData, ConfigGetResponses, SessionListData, SessionListResponses, SessionCreateData, SessionCreateResponses, SessionCreateErrors, SessionDeleteData, SessionDeleteResponses, SessionInitData, SessionInitResponses, SessionAbortData, SessionAbortResponses, SessionUnshareData, SessionUnshareResponses, SessionShareData, SessionShareResponses, SessionSummarizeData, SessionSummarizeResponses, SessionMessagesData, SessionMessagesResponses, SessionChatData, SessionChatResponses, SessionMessageData, SessionMessageResponses, SessionRevertData, SessionRevertResponses, SessionUnrevertData, SessionUnrevertResponses, PostSessionByIdPermissionsByPermissionIdData, PostSessionByIdPermissionsByPermissionIdResponses, ConfigProvidersData, ConfigProvidersResponses, FindTextData, FindTextResponses, FindFilesData, FindFilesResponses, FindSymbolsData, FindSymbolsResponses, FileReadData, FileReadResponses, FileStatusData, FileStatusResponses, AppLogData, AppLogResponses, AppModesData, AppModesResponses, TuiAppendPromptData, TuiAppendPromptResponses, TuiOpenHelpData, TuiOpenHelpResponses, TuiOpenSessionsData, TuiOpenSessionsResponses, TuiOpenThemesData, TuiOpenThemesResponses, TuiOpenModelsData, TuiOpenModelsResponses, TuiSubmitPromptData, TuiSubmitPromptResponses, TuiClearPromptData, TuiClearPromptResponses, TuiExecuteCommandData, TuiExecuteCommandResponses } from "./types.gen";
3
3
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
4
4
  /**
5
5
  * You can provide a client instance returned by `createClient()` instead of
@@ -1,5 +1,5 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- import { client as _heyApiClient } from './client.gen';
2
+ import { client as _heyApiClient } from "./client.gen";
3
3
  class _HeyApiClient {
4
4
  _client = _heyApiClient;
5
5
  constructor(args) {
@@ -14,8 +14,8 @@ class Event extends _HeyApiClient {
14
14
  */
15
15
  subscribe(options) {
16
16
  return (options?.client ?? this._client).get({
17
- url: '/event',
18
- ...options
17
+ url: "/event",
18
+ ...options,
19
19
  });
20
20
  }
21
21
  }
@@ -25,8 +25,8 @@ class App extends _HeyApiClient {
25
25
  */
26
26
  get(options) {
27
27
  return (options?.client ?? this._client).get({
28
- url: '/app',
29
- ...options
28
+ url: "/app",
29
+ ...options,
30
30
  });
31
31
  }
32
32
  /**
@@ -34,8 +34,8 @@ class App extends _HeyApiClient {
34
34
  */
35
35
  init(options) {
36
36
  return (options?.client ?? this._client).post({
37
- url: '/app/init',
38
- ...options
37
+ url: "/app/init",
38
+ ...options,
39
39
  });
40
40
  }
41
41
  /**
@@ -43,12 +43,12 @@ class App extends _HeyApiClient {
43
43
  */
44
44
  log(options) {
45
45
  return (options?.client ?? this._client).post({
46
- url: '/log',
46
+ url: "/log",
47
47
  ...options,
48
48
  headers: {
49
- 'Content-Type': 'application/json',
50
- ...options?.headers
51
- }
49
+ "Content-Type": "application/json",
50
+ ...options?.headers,
51
+ },
52
52
  });
53
53
  }
54
54
  /**
@@ -56,8 +56,8 @@ class App extends _HeyApiClient {
56
56
  */
57
57
  modes(options) {
58
58
  return (options?.client ?? this._client).get({
59
- url: '/mode',
60
- ...options
59
+ url: "/mode",
60
+ ...options,
61
61
  });
62
62
  }
63
63
  }
@@ -67,8 +67,8 @@ class Config extends _HeyApiClient {
67
67
  */
68
68
  get(options) {
69
69
  return (options?.client ?? this._client).get({
70
- url: '/config',
71
- ...options
70
+ url: "/config",
71
+ ...options,
72
72
  });
73
73
  }
74
74
  /**
@@ -76,8 +76,8 @@ class Config extends _HeyApiClient {
76
76
  */
77
77
  providers(options) {
78
78
  return (options?.client ?? this._client).get({
79
- url: '/config/providers',
80
- ...options
79
+ url: "/config/providers",
80
+ ...options,
81
81
  });
82
82
  }
83
83
  }
@@ -87,8 +87,8 @@ class Session extends _HeyApiClient {
87
87
  */
88
88
  list(options) {
89
89
  return (options?.client ?? this._client).get({
90
- url: '/session',
91
- ...options
90
+ url: "/session",
91
+ ...options,
92
92
  });
93
93
  }
94
94
  /**
@@ -96,8 +96,8 @@ class Session extends _HeyApiClient {
96
96
  */
97
97
  create(options) {
98
98
  return (options?.client ?? this._client).post({
99
- url: '/session',
100
- ...options
99
+ url: "/session",
100
+ ...options,
101
101
  });
102
102
  }
103
103
  /**
@@ -105,8 +105,8 @@ class Session extends _HeyApiClient {
105
105
  */
106
106
  delete(options) {
107
107
  return (options.client ?? this._client).delete({
108
- url: '/session/{id}',
109
- ...options
108
+ url: "/session/{id}",
109
+ ...options,
110
110
  });
111
111
  }
112
112
  /**
@@ -114,12 +114,12 @@ class Session extends _HeyApiClient {
114
114
  */
115
115
  init(options) {
116
116
  return (options.client ?? this._client).post({
117
- url: '/session/{id}/init',
117
+ url: "/session/{id}/init",
118
118
  ...options,
119
119
  headers: {
120
- 'Content-Type': 'application/json',
121
- ...options.headers
122
- }
120
+ "Content-Type": "application/json",
121
+ ...options.headers,
122
+ },
123
123
  });
124
124
  }
125
125
  /**
@@ -127,8 +127,8 @@ class Session extends _HeyApiClient {
127
127
  */
128
128
  abort(options) {
129
129
  return (options.client ?? this._client).post({
130
- url: '/session/{id}/abort',
131
- ...options
130
+ url: "/session/{id}/abort",
131
+ ...options,
132
132
  });
133
133
  }
134
134
  /**
@@ -136,8 +136,8 @@ class Session extends _HeyApiClient {
136
136
  */
137
137
  unshare(options) {
138
138
  return (options.client ?? this._client).delete({
139
- url: '/session/{id}/share',
140
- ...options
139
+ url: "/session/{id}/share",
140
+ ...options,
141
141
  });
142
142
  }
143
143
  /**
@@ -145,8 +145,8 @@ class Session extends _HeyApiClient {
145
145
  */
146
146
  share(options) {
147
147
  return (options.client ?? this._client).post({
148
- url: '/session/{id}/share',
149
- ...options
148
+ url: "/session/{id}/share",
149
+ ...options,
150
150
  });
151
151
  }
152
152
  /**
@@ -154,12 +154,12 @@ class Session extends _HeyApiClient {
154
154
  */
155
155
  summarize(options) {
156
156
  return (options.client ?? this._client).post({
157
- url: '/session/{id}/summarize',
157
+ url: "/session/{id}/summarize",
158
158
  ...options,
159
159
  headers: {
160
- 'Content-Type': 'application/json',
161
- ...options.headers
162
- }
160
+ "Content-Type": "application/json",
161
+ ...options.headers,
162
+ },
163
163
  });
164
164
  }
165
165
  /**
@@ -167,8 +167,8 @@ class Session extends _HeyApiClient {
167
167
  */
168
168
  messages(options) {
169
169
  return (options.client ?? this._client).get({
170
- url: '/session/{id}/message',
171
- ...options
170
+ url: "/session/{id}/message",
171
+ ...options,
172
172
  });
173
173
  }
174
174
  /**
@@ -176,12 +176,12 @@ class Session extends _HeyApiClient {
176
176
  */
177
177
  chat(options) {
178
178
  return (options.client ?? this._client).post({
179
- url: '/session/{id}/message',
179
+ url: "/session/{id}/message",
180
180
  ...options,
181
181
  headers: {
182
- 'Content-Type': 'application/json',
183
- ...options.headers
184
- }
182
+ "Content-Type": "application/json",
183
+ ...options.headers,
184
+ },
185
185
  });
186
186
  }
187
187
  /**
@@ -189,8 +189,8 @@ class Session extends _HeyApiClient {
189
189
  */
190
190
  message(options) {
191
191
  return (options.client ?? this._client).get({
192
- url: '/session/{id}/message/{messageID}',
193
- ...options
192
+ url: "/session/{id}/message/{messageID}",
193
+ ...options,
194
194
  });
195
195
  }
196
196
  /**
@@ -198,12 +198,12 @@ class Session extends _HeyApiClient {
198
198
  */
199
199
  revert(options) {
200
200
  return (options.client ?? this._client).post({
201
- url: '/session/{id}/revert',
201
+ url: "/session/{id}/revert",
202
202
  ...options,
203
203
  headers: {
204
- 'Content-Type': 'application/json',
205
- ...options.headers
206
- }
204
+ "Content-Type": "application/json",
205
+ ...options.headers,
206
+ },
207
207
  });
208
208
  }
209
209
  /**
@@ -211,8 +211,8 @@ class Session extends _HeyApiClient {
211
211
  */
212
212
  unrevert(options) {
213
213
  return (options.client ?? this._client).post({
214
- url: '/session/{id}/unrevert',
215
- ...options
214
+ url: "/session/{id}/unrevert",
215
+ ...options,
216
216
  });
217
217
  }
218
218
  }
@@ -222,8 +222,8 @@ class Find extends _HeyApiClient {
222
222
  */
223
223
  text(options) {
224
224
  return (options.client ?? this._client).get({
225
- url: '/find',
226
- ...options
225
+ url: "/find",
226
+ ...options,
227
227
  });
228
228
  }
229
229
  /**
@@ -231,8 +231,8 @@ class Find extends _HeyApiClient {
231
231
  */
232
232
  files(options) {
233
233
  return (options.client ?? this._client).get({
234
- url: '/find/file',
235
- ...options
234
+ url: "/find/file",
235
+ ...options,
236
236
  });
237
237
  }
238
238
  /**
@@ -240,8 +240,8 @@ class Find extends _HeyApiClient {
240
240
  */
241
241
  symbols(options) {
242
242
  return (options.client ?? this._client).get({
243
- url: '/find/symbol',
244
- ...options
243
+ url: "/find/symbol",
244
+ ...options,
245
245
  });
246
246
  }
247
247
  }
@@ -251,8 +251,8 @@ class File extends _HeyApiClient {
251
251
  */
252
252
  read(options) {
253
253
  return (options.client ?? this._client).get({
254
- url: '/file',
255
- ...options
254
+ url: "/file",
255
+ ...options,
256
256
  });
257
257
  }
258
258
  /**
@@ -260,8 +260,8 @@ class File extends _HeyApiClient {
260
260
  */
261
261
  status(options) {
262
262
  return (options?.client ?? this._client).get({
263
- url: '/file/status',
264
- ...options
263
+ url: "/file/status",
264
+ ...options,
265
265
  });
266
266
  }
267
267
  }
@@ -271,12 +271,12 @@ class Tui extends _HeyApiClient {
271
271
  */
272
272
  appendPrompt(options) {
273
273
  return (options?.client ?? this._client).post({
274
- url: '/tui/append-prompt',
274
+ url: "/tui/append-prompt",
275
275
  ...options,
276
276
  headers: {
277
- 'Content-Type': 'application/json',
278
- ...options?.headers
279
- }
277
+ "Content-Type": "application/json",
278
+ ...options?.headers,
279
+ },
280
280
  });
281
281
  }
282
282
  /**
@@ -284,8 +284,8 @@ class Tui extends _HeyApiClient {
284
284
  */
285
285
  openHelp(options) {
286
286
  return (options?.client ?? this._client).post({
287
- url: '/tui/open-help',
288
- ...options
287
+ url: "/tui/open-help",
288
+ ...options,
289
289
  });
290
290
  }
291
291
  /**
@@ -293,8 +293,8 @@ class Tui extends _HeyApiClient {
293
293
  */
294
294
  openSessions(options) {
295
295
  return (options?.client ?? this._client).post({
296
- url: '/tui/open-sessions',
297
- ...options
296
+ url: "/tui/open-sessions",
297
+ ...options,
298
298
  });
299
299
  }
300
300
  /**
@@ -302,8 +302,8 @@ class Tui extends _HeyApiClient {
302
302
  */
303
303
  openThemes(options) {
304
304
  return (options?.client ?? this._client).post({
305
- url: '/tui/open-themes',
306
- ...options
305
+ url: "/tui/open-themes",
306
+ ...options,
307
307
  });
308
308
  }
309
309
  /**
@@ -311,8 +311,8 @@ class Tui extends _HeyApiClient {
311
311
  */
312
312
  openModels(options) {
313
313
  return (options?.client ?? this._client).post({
314
- url: '/tui/open-models',
315
- ...options
314
+ url: "/tui/open-models",
315
+ ...options,
316
316
  });
317
317
  }
318
318
  /**
@@ -320,8 +320,8 @@ class Tui extends _HeyApiClient {
320
320
  */
321
321
  submitPrompt(options) {
322
322
  return (options?.client ?? this._client).post({
323
- url: '/tui/submit-prompt',
324
- ...options
323
+ url: "/tui/submit-prompt",
324
+ ...options,
325
325
  });
326
326
  }
327
327
  /**
@@ -329,8 +329,8 @@ class Tui extends _HeyApiClient {
329
329
  */
330
330
  clearPrompt(options) {
331
331
  return (options?.client ?? this._client).post({
332
- url: '/tui/clear-prompt',
333
- ...options
332
+ url: "/tui/clear-prompt",
333
+ ...options,
334
334
  });
335
335
  }
336
336
  /**
@@ -338,12 +338,12 @@ class Tui extends _HeyApiClient {
338
338
  */
339
339
  executeCommand(options) {
340
340
  return (options?.client ?? this._client).post({
341
- url: '/tui/execute-command',
341
+ url: "/tui/execute-command",
342
342
  ...options,
343
343
  headers: {
344
- 'Content-Type': 'application/json',
345
- ...options?.headers
346
- }
344
+ "Content-Type": "application/json",
345
+ ...options?.headers,
346
+ },
347
347
  });
348
348
  }
349
349
  }
@@ -353,12 +353,12 @@ export class OpencodeClient extends _HeyApiClient {
353
353
  */
354
354
  postSessionByIdPermissionsByPermissionId(options) {
355
355
  return (options.client ?? this._client).post({
356
- url: '/session/{id}/permissions/{permissionID}',
356
+ url: "/session/{id}/permissions/{permissionID}",
357
357
  ...options,
358
358
  headers: {
359
- 'Content-Type': 'application/json',
360
- ...options.headers
361
- }
359
+ "Content-Type": "application/json",
360
+ ...options.headers,
361
+ },
362
362
  });
363
363
  }
364
364
  event = new Event({ client: this._client });