@opencode-ai/sdk 1.14.49 → 1.14.51
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.
- package/dist/v2/gen/sdk.gen.d.ts +16 -2
- package/dist/v2/gen/sdk.gen.js +14 -3
- package/dist/v2/gen/types.gen.d.ts +32 -369
- package/package.json +1 -1
package/dist/v2/gen/sdk.gen.d.ts
CHANGED
|
@@ -1374,7 +1374,12 @@ export declare class Model extends HeyApiClient {
|
|
|
1374
1374
|
*
|
|
1375
1375
|
* Retrieve available v2 models ordered by release date.
|
|
1376
1376
|
*/
|
|
1377
|
-
list<ThrowOnError extends boolean = false>(
|
|
1377
|
+
list<ThrowOnError extends boolean = false>(parameters?: {
|
|
1378
|
+
instance?: {
|
|
1379
|
+
directory?: string;
|
|
1380
|
+
workspace?: string;
|
|
1381
|
+
};
|
|
1382
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2ModelListResponses, unknown, ThrowOnError, "fields">;
|
|
1378
1383
|
}
|
|
1379
1384
|
export declare class Provider2 extends HeyApiClient {
|
|
1380
1385
|
/**
|
|
@@ -1382,7 +1387,12 @@ export declare class Provider2 extends HeyApiClient {
|
|
|
1382
1387
|
*
|
|
1383
1388
|
* Retrieve active v2 AI providers so clients can show provider availability and configuration.
|
|
1384
1389
|
*/
|
|
1385
|
-
list<ThrowOnError extends boolean = false>(
|
|
1390
|
+
list<ThrowOnError extends boolean = false>(parameters?: {
|
|
1391
|
+
instance?: {
|
|
1392
|
+
directory?: string;
|
|
1393
|
+
workspace?: string;
|
|
1394
|
+
};
|
|
1395
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2ProviderListResponses, unknown, ThrowOnError, "fields">;
|
|
1386
1396
|
/**
|
|
1387
1397
|
* Get v2 provider
|
|
1388
1398
|
*
|
|
@@ -1390,6 +1400,10 @@ export declare class Provider2 extends HeyApiClient {
|
|
|
1390
1400
|
*/
|
|
1391
1401
|
get<ThrowOnError extends boolean = false>(parameters: {
|
|
1392
1402
|
providerID: string;
|
|
1403
|
+
instance?: {
|
|
1404
|
+
directory?: string;
|
|
1405
|
+
workspace?: string;
|
|
1406
|
+
};
|
|
1393
1407
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2ProviderGetResponses, V2ProviderGetErrors, ThrowOnError, "fields">;
|
|
1394
1408
|
}
|
|
1395
1409
|
export declare class V2 extends HeyApiClient {
|
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -2752,10 +2752,12 @@ export class Model extends HeyApiClient {
|
|
|
2752
2752
|
*
|
|
2753
2753
|
* Retrieve available v2 models ordered by release date.
|
|
2754
2754
|
*/
|
|
2755
|
-
list(options) {
|
|
2755
|
+
list(parameters, options) {
|
|
2756
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "instance" }] }]);
|
|
2756
2757
|
return (options?.client ?? this.client).get({
|
|
2757
2758
|
url: "/api/model",
|
|
2758
2759
|
...options,
|
|
2760
|
+
...params,
|
|
2759
2761
|
});
|
|
2760
2762
|
}
|
|
2761
2763
|
}
|
|
@@ -2765,10 +2767,12 @@ export class Provider2 extends HeyApiClient {
|
|
|
2765
2767
|
*
|
|
2766
2768
|
* Retrieve active v2 AI providers so clients can show provider availability and configuration.
|
|
2767
2769
|
*/
|
|
2768
|
-
list(options) {
|
|
2770
|
+
list(parameters, options) {
|
|
2771
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "instance" }] }]);
|
|
2769
2772
|
return (options?.client ?? this.client).get({
|
|
2770
2773
|
url: "/api/provider",
|
|
2771
2774
|
...options,
|
|
2775
|
+
...params,
|
|
2772
2776
|
});
|
|
2773
2777
|
}
|
|
2774
2778
|
/**
|
|
@@ -2777,7 +2781,14 @@ export class Provider2 extends HeyApiClient {
|
|
|
2777
2781
|
* Retrieve a single v2 AI provider so clients can inspect its availability and endpoint settings.
|
|
2778
2782
|
*/
|
|
2779
2783
|
get(parameters, options) {
|
|
2780
|
-
const params = buildClientParams([parameters], [
|
|
2784
|
+
const params = buildClientParams([parameters], [
|
|
2785
|
+
{
|
|
2786
|
+
args: [
|
|
2787
|
+
{ in: "path", key: "providerID" },
|
|
2788
|
+
{ in: "query", key: "instance" },
|
|
2789
|
+
],
|
|
2790
|
+
},
|
|
2791
|
+
]);
|
|
2781
2792
|
return (options?.client ?? this.client).get({
|
|
2782
2793
|
url: "/api/provider/{providerID}",
|
|
2783
2794
|
...options,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type ClientOptions = {
|
|
2
2
|
baseUrl: `${string}://${string}` | (string & {});
|
|
3
3
|
};
|
|
4
|
-
export type Event = EventServerInstanceDisposed | EventFileEdited | EventFileWatcherUpdated | EventLspClientDiagnostics | EventLspUpdated | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionDiff | EventSessionError |
|
|
4
|
+
export type Event = EventServerInstanceDisposed | EventFileEdited | EventFileWatcherUpdated | EventLspClientDiagnostics | EventLspUpdated | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionDiff | EventSessionError | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow1 | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventProjectUpdated | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerConnected | EventGlobalDisposed;
|
|
5
5
|
export type OAuth = {
|
|
6
6
|
type: "oauth";
|
|
7
7
|
refresh: string;
|
|
@@ -609,7 +609,7 @@ export type GlobalEvent = {
|
|
|
609
609
|
directory: string;
|
|
610
610
|
project?: string;
|
|
611
611
|
workspace?: string;
|
|
612
|
-
payload: EventServerInstanceDisposed | EventFileEdited | EventFileWatcherUpdated | EventLspClientDiagnostics | EventLspUpdated | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionDiff | EventSessionError |
|
|
612
|
+
payload: EventServerInstanceDisposed | EventFileEdited | EventFileWatcherUpdated | EventLspClientDiagnostics | EventLspUpdated | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionDiff | EventSessionError | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventProjectUpdated | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerConnected | EventGlobalDisposed | SyncEventMessageUpdated | SyncEventMessageRemoved | SyncEventMessagePartUpdated | SyncEventMessagePartRemoved | SyncEventSessionCreated | SyncEventSessionUpdated | SyncEventSessionDeleted | SyncEventSessionNextAgentSwitched | SyncEventSessionNextModelSwitched | SyncEventSessionNextPrompted | SyncEventSessionNextSynthetic | SyncEventSessionNextShellStarted | SyncEventSessionNextShellEnded | SyncEventSessionNextStepStarted | SyncEventSessionNextStepEnded | SyncEventSessionNextStepFailed | SyncEventSessionNextTextStarted | SyncEventSessionNextTextDelta | SyncEventSessionNextTextEnded | SyncEventSessionNextReasoningStarted | SyncEventSessionNextReasoningDelta | SyncEventSessionNextReasoningEnded | SyncEventSessionNextToolInputStarted | SyncEventSessionNextToolInputDelta | SyncEventSessionNextToolInputEnded | SyncEventSessionNextToolCalled | SyncEventSessionNextToolProgress | SyncEventSessionNextToolSuccess | SyncEventSessionNextToolFailed | SyncEventSessionNextRetried | SyncEventSessionNextCompactionStarted | SyncEventSessionNextCompactionDelta | SyncEventSessionNextCompactionEnded;
|
|
613
613
|
};
|
|
614
614
|
/**
|
|
615
615
|
* Log level
|
|
@@ -2014,20 +2014,6 @@ export type EventSessionError = {
|
|
|
2014
2014
|
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ApiError;
|
|
2015
2015
|
};
|
|
2016
2016
|
};
|
|
2017
|
-
export type EventInstallationUpdated = {
|
|
2018
|
-
id: string;
|
|
2019
|
-
type: "installation.updated";
|
|
2020
|
-
properties: {
|
|
2021
|
-
version: string;
|
|
2022
|
-
};
|
|
2023
|
-
};
|
|
2024
|
-
export type EventInstallationUpdateAvailable = {
|
|
2025
|
-
id: string;
|
|
2026
|
-
type: "installation.update-available";
|
|
2027
|
-
properties: {
|
|
2028
|
-
version: string;
|
|
2029
|
-
};
|
|
2030
|
-
};
|
|
2031
2017
|
export type EventQuestionAsked = {
|
|
2032
2018
|
id: string;
|
|
2033
2019
|
type: "question.asked";
|
|
@@ -2176,84 +2162,32 @@ export type EventPtyDeleted = {
|
|
|
2176
2162
|
id: string;
|
|
2177
2163
|
};
|
|
2178
2164
|
};
|
|
2179
|
-
export type
|
|
2180
|
-
id: string;
|
|
2181
|
-
type: "message.updated";
|
|
2182
|
-
properties: {
|
|
2183
|
-
sessionID: string;
|
|
2184
|
-
info: Message;
|
|
2185
|
-
};
|
|
2186
|
-
};
|
|
2187
|
-
export type EventMessageRemoved = {
|
|
2188
|
-
id: string;
|
|
2189
|
-
type: "message.removed";
|
|
2190
|
-
properties: {
|
|
2191
|
-
sessionID: string;
|
|
2192
|
-
messageID: string;
|
|
2193
|
-
};
|
|
2194
|
-
};
|
|
2195
|
-
export type EventMessagePartUpdated = {
|
|
2196
|
-
id: string;
|
|
2197
|
-
type: "message.part.updated";
|
|
2198
|
-
properties: {
|
|
2199
|
-
sessionID: string;
|
|
2200
|
-
part: Part;
|
|
2201
|
-
time: number;
|
|
2202
|
-
};
|
|
2203
|
-
};
|
|
2204
|
-
export type EventMessagePartRemoved = {
|
|
2205
|
-
id: string;
|
|
2206
|
-
type: "message.part.removed";
|
|
2207
|
-
properties: {
|
|
2208
|
-
sessionID: string;
|
|
2209
|
-
messageID: string;
|
|
2210
|
-
partID: string;
|
|
2211
|
-
};
|
|
2212
|
-
};
|
|
2213
|
-
export type EventSessionCreated = {
|
|
2214
|
-
id: string;
|
|
2215
|
-
type: "session.created";
|
|
2216
|
-
properties: {
|
|
2217
|
-
sessionID: string;
|
|
2218
|
-
info: Session;
|
|
2219
|
-
};
|
|
2220
|
-
};
|
|
2221
|
-
export type EventSessionUpdated = {
|
|
2165
|
+
export type EventInstallationUpdated = {
|
|
2222
2166
|
id: string;
|
|
2223
|
-
type: "
|
|
2167
|
+
type: "installation.updated";
|
|
2224
2168
|
properties: {
|
|
2225
|
-
|
|
2226
|
-
info: Session;
|
|
2169
|
+
version: string;
|
|
2227
2170
|
};
|
|
2228
2171
|
};
|
|
2229
|
-
export type
|
|
2172
|
+
export type EventInstallationUpdateAvailable = {
|
|
2230
2173
|
id: string;
|
|
2231
|
-
type: "
|
|
2174
|
+
type: "installation.update-available";
|
|
2232
2175
|
properties: {
|
|
2233
|
-
|
|
2234
|
-
info: Session;
|
|
2176
|
+
version: string;
|
|
2235
2177
|
};
|
|
2236
2178
|
};
|
|
2237
|
-
export type
|
|
2179
|
+
export type EventServerConnected = {
|
|
2238
2180
|
id: string;
|
|
2239
|
-
type: "
|
|
2181
|
+
type: "server.connected";
|
|
2240
2182
|
properties: {
|
|
2241
|
-
|
|
2242
|
-
sessionID: string;
|
|
2243
|
-
agent: string;
|
|
2183
|
+
[key: string]: unknown;
|
|
2244
2184
|
};
|
|
2245
2185
|
};
|
|
2246
|
-
export type
|
|
2186
|
+
export type EventGlobalDisposed = {
|
|
2247
2187
|
id: string;
|
|
2248
|
-
type: "
|
|
2188
|
+
type: "global.disposed";
|
|
2249
2189
|
properties: {
|
|
2250
|
-
|
|
2251
|
-
sessionID: string;
|
|
2252
|
-
model: {
|
|
2253
|
-
id: string;
|
|
2254
|
-
providerID: string;
|
|
2255
|
-
variant: string;
|
|
2256
|
-
};
|
|
2190
|
+
[key: string]: unknown;
|
|
2257
2191
|
};
|
|
2258
2192
|
};
|
|
2259
2193
|
export type PromptSource = {
|
|
@@ -2283,196 +2217,10 @@ export type PromptReferenceAttachment = {
|
|
|
2283
2217
|
problem?: string;
|
|
2284
2218
|
source?: PromptSource;
|
|
2285
2219
|
};
|
|
2286
|
-
export type EventSessionNextPrompted = {
|
|
2287
|
-
id: string;
|
|
2288
|
-
type: "session.next.prompted";
|
|
2289
|
-
properties: {
|
|
2290
|
-
timestamp: number;
|
|
2291
|
-
sessionID: string;
|
|
2292
|
-
prompt: Prompt;
|
|
2293
|
-
};
|
|
2294
|
-
};
|
|
2295
|
-
export type EventSessionNextSynthetic = {
|
|
2296
|
-
id: string;
|
|
2297
|
-
type: "session.next.synthetic";
|
|
2298
|
-
properties: {
|
|
2299
|
-
timestamp: number;
|
|
2300
|
-
sessionID: string;
|
|
2301
|
-
text: string;
|
|
2302
|
-
};
|
|
2303
|
-
};
|
|
2304
|
-
export type EventSessionNextShellStarted = {
|
|
2305
|
-
id: string;
|
|
2306
|
-
type: "session.next.shell.started";
|
|
2307
|
-
properties: {
|
|
2308
|
-
timestamp: number;
|
|
2309
|
-
sessionID: string;
|
|
2310
|
-
callID: string;
|
|
2311
|
-
command: string;
|
|
2312
|
-
};
|
|
2313
|
-
};
|
|
2314
|
-
export type EventSessionNextShellEnded = {
|
|
2315
|
-
id: string;
|
|
2316
|
-
type: "session.next.shell.ended";
|
|
2317
|
-
properties: {
|
|
2318
|
-
timestamp: number;
|
|
2319
|
-
sessionID: string;
|
|
2320
|
-
callID: string;
|
|
2321
|
-
output: string;
|
|
2322
|
-
};
|
|
2323
|
-
};
|
|
2324
|
-
export type EventSessionNextStepStarted = {
|
|
2325
|
-
id: string;
|
|
2326
|
-
type: "session.next.step.started";
|
|
2327
|
-
properties: {
|
|
2328
|
-
timestamp: number;
|
|
2329
|
-
sessionID: string;
|
|
2330
|
-
agent: string;
|
|
2331
|
-
model: {
|
|
2332
|
-
id: string;
|
|
2333
|
-
providerID: string;
|
|
2334
|
-
variant: string;
|
|
2335
|
-
};
|
|
2336
|
-
snapshot?: string;
|
|
2337
|
-
};
|
|
2338
|
-
};
|
|
2339
|
-
export type EventSessionNextStepEnded = {
|
|
2340
|
-
id: string;
|
|
2341
|
-
type: "session.next.step.ended";
|
|
2342
|
-
properties: {
|
|
2343
|
-
timestamp: number;
|
|
2344
|
-
sessionID: string;
|
|
2345
|
-
finish: string;
|
|
2346
|
-
cost: number;
|
|
2347
|
-
tokens: {
|
|
2348
|
-
input: number;
|
|
2349
|
-
output: number;
|
|
2350
|
-
reasoning: number;
|
|
2351
|
-
cache: {
|
|
2352
|
-
read: number;
|
|
2353
|
-
write: number;
|
|
2354
|
-
};
|
|
2355
|
-
};
|
|
2356
|
-
snapshot?: string;
|
|
2357
|
-
};
|
|
2358
|
-
};
|
|
2359
2220
|
export type SessionErrorUnknown = {
|
|
2360
2221
|
type: "unknown";
|
|
2361
2222
|
message: string;
|
|
2362
2223
|
};
|
|
2363
|
-
export type EventSessionNextStepFailed = {
|
|
2364
|
-
id: string;
|
|
2365
|
-
type: "session.next.step.failed";
|
|
2366
|
-
properties: {
|
|
2367
|
-
timestamp: number;
|
|
2368
|
-
sessionID: string;
|
|
2369
|
-
error: SessionErrorUnknown;
|
|
2370
|
-
};
|
|
2371
|
-
};
|
|
2372
|
-
export type EventSessionNextTextStarted = {
|
|
2373
|
-
id: string;
|
|
2374
|
-
type: "session.next.text.started";
|
|
2375
|
-
properties: {
|
|
2376
|
-
timestamp: number;
|
|
2377
|
-
sessionID: string;
|
|
2378
|
-
};
|
|
2379
|
-
};
|
|
2380
|
-
export type EventSessionNextTextDelta = {
|
|
2381
|
-
id: string;
|
|
2382
|
-
type: "session.next.text.delta";
|
|
2383
|
-
properties: {
|
|
2384
|
-
timestamp: number;
|
|
2385
|
-
sessionID: string;
|
|
2386
|
-
delta: string;
|
|
2387
|
-
};
|
|
2388
|
-
};
|
|
2389
|
-
export type EventSessionNextTextEnded = {
|
|
2390
|
-
id: string;
|
|
2391
|
-
type: "session.next.text.ended";
|
|
2392
|
-
properties: {
|
|
2393
|
-
timestamp: number;
|
|
2394
|
-
sessionID: string;
|
|
2395
|
-
text: string;
|
|
2396
|
-
};
|
|
2397
|
-
};
|
|
2398
|
-
export type EventSessionNextReasoningStarted = {
|
|
2399
|
-
id: string;
|
|
2400
|
-
type: "session.next.reasoning.started";
|
|
2401
|
-
properties: {
|
|
2402
|
-
timestamp: number;
|
|
2403
|
-
sessionID: string;
|
|
2404
|
-
reasoningID: string;
|
|
2405
|
-
};
|
|
2406
|
-
};
|
|
2407
|
-
export type EventSessionNextReasoningDelta = {
|
|
2408
|
-
id: string;
|
|
2409
|
-
type: "session.next.reasoning.delta";
|
|
2410
|
-
properties: {
|
|
2411
|
-
timestamp: number;
|
|
2412
|
-
sessionID: string;
|
|
2413
|
-
reasoningID: string;
|
|
2414
|
-
delta: string;
|
|
2415
|
-
};
|
|
2416
|
-
};
|
|
2417
|
-
export type EventSessionNextReasoningEnded = {
|
|
2418
|
-
id: string;
|
|
2419
|
-
type: "session.next.reasoning.ended";
|
|
2420
|
-
properties: {
|
|
2421
|
-
timestamp: number;
|
|
2422
|
-
sessionID: string;
|
|
2423
|
-
reasoningID: string;
|
|
2424
|
-
text: string;
|
|
2425
|
-
};
|
|
2426
|
-
};
|
|
2427
|
-
export type EventSessionNextToolInputStarted = {
|
|
2428
|
-
id: string;
|
|
2429
|
-
type: "session.next.tool.input.started";
|
|
2430
|
-
properties: {
|
|
2431
|
-
timestamp: number;
|
|
2432
|
-
sessionID: string;
|
|
2433
|
-
callID: string;
|
|
2434
|
-
name: string;
|
|
2435
|
-
};
|
|
2436
|
-
};
|
|
2437
|
-
export type EventSessionNextToolInputDelta = {
|
|
2438
|
-
id: string;
|
|
2439
|
-
type: "session.next.tool.input.delta";
|
|
2440
|
-
properties: {
|
|
2441
|
-
timestamp: number;
|
|
2442
|
-
sessionID: string;
|
|
2443
|
-
callID: string;
|
|
2444
|
-
delta: string;
|
|
2445
|
-
};
|
|
2446
|
-
};
|
|
2447
|
-
export type EventSessionNextToolInputEnded = {
|
|
2448
|
-
id: string;
|
|
2449
|
-
type: "session.next.tool.input.ended";
|
|
2450
|
-
properties: {
|
|
2451
|
-
timestamp: number;
|
|
2452
|
-
sessionID: string;
|
|
2453
|
-
callID: string;
|
|
2454
|
-
text: string;
|
|
2455
|
-
};
|
|
2456
|
-
};
|
|
2457
|
-
export type EventSessionNextToolCalled = {
|
|
2458
|
-
id: string;
|
|
2459
|
-
type: "session.next.tool.called";
|
|
2460
|
-
properties: {
|
|
2461
|
-
timestamp: number;
|
|
2462
|
-
sessionID: string;
|
|
2463
|
-
callID: string;
|
|
2464
|
-
tool: string;
|
|
2465
|
-
input: {
|
|
2466
|
-
[key: string]: unknown;
|
|
2467
|
-
};
|
|
2468
|
-
provider: {
|
|
2469
|
-
executed: boolean;
|
|
2470
|
-
metadata?: {
|
|
2471
|
-
[key: string]: unknown;
|
|
2472
|
-
};
|
|
2473
|
-
};
|
|
2474
|
-
};
|
|
2475
|
-
};
|
|
2476
2224
|
export type ToolTextContent = {
|
|
2477
2225
|
type: "text";
|
|
2478
2226
|
text: string;
|
|
@@ -2483,54 +2231,6 @@ export type ToolFileContent = {
|
|
|
2483
2231
|
mime: string;
|
|
2484
2232
|
name?: string;
|
|
2485
2233
|
};
|
|
2486
|
-
export type EventSessionNextToolProgress = {
|
|
2487
|
-
id: string;
|
|
2488
|
-
type: "session.next.tool.progress";
|
|
2489
|
-
properties: {
|
|
2490
|
-
timestamp: number;
|
|
2491
|
-
sessionID: string;
|
|
2492
|
-
callID: string;
|
|
2493
|
-
structured: {
|
|
2494
|
-
[key: string]: unknown;
|
|
2495
|
-
};
|
|
2496
|
-
content: Array<ToolTextContent | ToolFileContent>;
|
|
2497
|
-
};
|
|
2498
|
-
};
|
|
2499
|
-
export type EventSessionNextToolSuccess = {
|
|
2500
|
-
id: string;
|
|
2501
|
-
type: "session.next.tool.success";
|
|
2502
|
-
properties: {
|
|
2503
|
-
timestamp: number;
|
|
2504
|
-
sessionID: string;
|
|
2505
|
-
callID: string;
|
|
2506
|
-
structured: {
|
|
2507
|
-
[key: string]: unknown;
|
|
2508
|
-
};
|
|
2509
|
-
content: Array<ToolTextContent | ToolFileContent>;
|
|
2510
|
-
provider: {
|
|
2511
|
-
executed: boolean;
|
|
2512
|
-
metadata?: {
|
|
2513
|
-
[key: string]: unknown;
|
|
2514
|
-
};
|
|
2515
|
-
};
|
|
2516
|
-
};
|
|
2517
|
-
};
|
|
2518
|
-
export type EventSessionNextToolFailed = {
|
|
2519
|
-
id: string;
|
|
2520
|
-
type: "session.next.tool.failed";
|
|
2521
|
-
properties: {
|
|
2522
|
-
timestamp: number;
|
|
2523
|
-
sessionID: string;
|
|
2524
|
-
callID: string;
|
|
2525
|
-
error: SessionErrorUnknown;
|
|
2526
|
-
provider: {
|
|
2527
|
-
executed: boolean;
|
|
2528
|
-
metadata?: {
|
|
2529
|
-
[key: string]: unknown;
|
|
2530
|
-
};
|
|
2531
|
-
};
|
|
2532
|
-
};
|
|
2533
|
-
};
|
|
2534
2234
|
export type SessionNextRetryError = {
|
|
2535
2235
|
message: string;
|
|
2536
2236
|
statusCode?: number;
|
|
@@ -2543,58 +2243,6 @@ export type SessionNextRetryError = {
|
|
|
2543
2243
|
[key: string]: string;
|
|
2544
2244
|
};
|
|
2545
2245
|
};
|
|
2546
|
-
export type EventSessionNextRetried = {
|
|
2547
|
-
id: string;
|
|
2548
|
-
type: "session.next.retried";
|
|
2549
|
-
properties: {
|
|
2550
|
-
timestamp: number;
|
|
2551
|
-
sessionID: string;
|
|
2552
|
-
attempt: number;
|
|
2553
|
-
error: SessionNextRetryError;
|
|
2554
|
-
};
|
|
2555
|
-
};
|
|
2556
|
-
export type EventSessionNextCompactionStarted = {
|
|
2557
|
-
id: string;
|
|
2558
|
-
type: "session.next.compaction.started";
|
|
2559
|
-
properties: {
|
|
2560
|
-
timestamp: number;
|
|
2561
|
-
sessionID: string;
|
|
2562
|
-
reason: "auto" | "manual";
|
|
2563
|
-
};
|
|
2564
|
-
};
|
|
2565
|
-
export type EventSessionNextCompactionDelta = {
|
|
2566
|
-
id: string;
|
|
2567
|
-
type: "session.next.compaction.delta";
|
|
2568
|
-
properties: {
|
|
2569
|
-
timestamp: number;
|
|
2570
|
-
sessionID: string;
|
|
2571
|
-
text: string;
|
|
2572
|
-
};
|
|
2573
|
-
};
|
|
2574
|
-
export type EventSessionNextCompactionEnded = {
|
|
2575
|
-
id: string;
|
|
2576
|
-
type: "session.next.compaction.ended";
|
|
2577
|
-
properties: {
|
|
2578
|
-
timestamp: number;
|
|
2579
|
-
sessionID: string;
|
|
2580
|
-
text: string;
|
|
2581
|
-
include?: string;
|
|
2582
|
-
};
|
|
2583
|
-
};
|
|
2584
|
-
export type EventServerConnected = {
|
|
2585
|
-
id: string;
|
|
2586
|
-
type: "server.connected";
|
|
2587
|
-
properties: {
|
|
2588
|
-
[key: string]: unknown;
|
|
2589
|
-
};
|
|
2590
|
-
};
|
|
2591
|
-
export type EventGlobalDisposed = {
|
|
2592
|
-
id: string;
|
|
2593
|
-
type: "global.disposed";
|
|
2594
|
-
properties: {
|
|
2595
|
-
[key: string]: unknown;
|
|
2596
|
-
};
|
|
2597
|
-
};
|
|
2598
2246
|
export type SessionInfo = {
|
|
2599
2247
|
id: string;
|
|
2600
2248
|
parentID?: string;
|
|
@@ -5626,7 +5274,12 @@ export type V2SessionMessagesResponse2 = V2SessionMessagesResponses[keyof V2Sess
|
|
|
5626
5274
|
export type V2ModelListData = {
|
|
5627
5275
|
body?: never;
|
|
5628
5276
|
path?: never;
|
|
5629
|
-
query?:
|
|
5277
|
+
query?: {
|
|
5278
|
+
instance?: {
|
|
5279
|
+
directory?: string;
|
|
5280
|
+
workspace?: string;
|
|
5281
|
+
};
|
|
5282
|
+
};
|
|
5630
5283
|
url: "/api/model";
|
|
5631
5284
|
};
|
|
5632
5285
|
export type V2ModelListResponses = {
|
|
@@ -5639,7 +5292,12 @@ export type V2ModelListResponse = V2ModelListResponses[keyof V2ModelListResponse
|
|
|
5639
5292
|
export type V2ProviderListData = {
|
|
5640
5293
|
body?: never;
|
|
5641
5294
|
path?: never;
|
|
5642
|
-
query?:
|
|
5295
|
+
query?: {
|
|
5296
|
+
instance?: {
|
|
5297
|
+
directory?: string;
|
|
5298
|
+
workspace?: string;
|
|
5299
|
+
};
|
|
5300
|
+
};
|
|
5643
5301
|
url: "/api/provider";
|
|
5644
5302
|
};
|
|
5645
5303
|
export type V2ProviderListResponses = {
|
|
@@ -5654,7 +5312,12 @@ export type V2ProviderGetData = {
|
|
|
5654
5312
|
path: {
|
|
5655
5313
|
providerID: string;
|
|
5656
5314
|
};
|
|
5657
|
-
query?:
|
|
5315
|
+
query?: {
|
|
5316
|
+
instance?: {
|
|
5317
|
+
directory?: string;
|
|
5318
|
+
workspace?: string;
|
|
5319
|
+
};
|
|
5320
|
+
};
|
|
5658
5321
|
url: "/api/provider/{providerID}";
|
|
5659
5322
|
};
|
|
5660
5323
|
export type V2ProviderGetErrors = {
|