@opencode-ai/sdk 1.4.7 → 1.4.8
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 +138 -138
- package/dist/v2/gen/sdk.gen.js +202 -202
- package/dist/v2/gen/types.gen.d.ts +149 -149
- package/package.json +1 -1
|
@@ -1333,7 +1333,7 @@ export type Config = {
|
|
|
1333
1333
|
enabled: boolean;
|
|
1334
1334
|
};
|
|
1335
1335
|
};
|
|
1336
|
-
formatter?:
|
|
1336
|
+
formatter?: boolean | {
|
|
1337
1337
|
[key: string]: {
|
|
1338
1338
|
disabled?: boolean;
|
|
1339
1339
|
command?: Array<string>;
|
|
@@ -1343,7 +1343,7 @@ export type Config = {
|
|
|
1343
1343
|
extensions?: Array<string>;
|
|
1344
1344
|
};
|
|
1345
1345
|
};
|
|
1346
|
-
lsp?:
|
|
1346
|
+
lsp?: boolean | {
|
|
1347
1347
|
[key: string]: {
|
|
1348
1348
|
disabled: true;
|
|
1349
1349
|
} | {
|
|
@@ -1439,6 +1439,15 @@ export type WellKnownAuth = {
|
|
|
1439
1439
|
token: string;
|
|
1440
1440
|
};
|
|
1441
1441
|
export type Auth = OAuth | ApiAuth | WellKnownAuth;
|
|
1442
|
+
export type Workspace = {
|
|
1443
|
+
id: string;
|
|
1444
|
+
type: string;
|
|
1445
|
+
name: string;
|
|
1446
|
+
branch: string | null;
|
|
1447
|
+
directory: string | null;
|
|
1448
|
+
extra: unknown | null;
|
|
1449
|
+
projectID: string;
|
|
1450
|
+
};
|
|
1442
1451
|
export type NotFoundError = {
|
|
1443
1452
|
name: "NotFoundError";
|
|
1444
1453
|
data: {
|
|
@@ -1533,15 +1542,6 @@ export type ToolListItem = {
|
|
|
1533
1542
|
parameters: unknown;
|
|
1534
1543
|
};
|
|
1535
1544
|
export type ToolList = Array<ToolListItem>;
|
|
1536
|
-
export type Workspace = {
|
|
1537
|
-
id: string;
|
|
1538
|
-
type: string;
|
|
1539
|
-
name: string;
|
|
1540
|
-
branch: string | null;
|
|
1541
|
-
directory: string | null;
|
|
1542
|
-
extra: unknown | null;
|
|
1543
|
-
projectID: string;
|
|
1544
|
-
};
|
|
1545
1545
|
export type Worktree = {
|
|
1546
1546
|
name: string;
|
|
1547
1547
|
branch: string;
|
|
@@ -1993,6 +1993,144 @@ export type AppLogResponses = {
|
|
|
1993
1993
|
200: boolean;
|
|
1994
1994
|
};
|
|
1995
1995
|
export type AppLogResponse = AppLogResponses[keyof AppLogResponses];
|
|
1996
|
+
export type ExperimentalWorkspaceAdaptorListData = {
|
|
1997
|
+
body?: never;
|
|
1998
|
+
path?: never;
|
|
1999
|
+
query?: {
|
|
2000
|
+
directory?: string;
|
|
2001
|
+
workspace?: string;
|
|
2002
|
+
};
|
|
2003
|
+
url: "/experimental/workspace/adaptor";
|
|
2004
|
+
};
|
|
2005
|
+
export type ExperimentalWorkspaceAdaptorListResponses = {
|
|
2006
|
+
/**
|
|
2007
|
+
* Workspace adaptors
|
|
2008
|
+
*/
|
|
2009
|
+
200: Array<{
|
|
2010
|
+
type: string;
|
|
2011
|
+
name: string;
|
|
2012
|
+
description: string;
|
|
2013
|
+
}>;
|
|
2014
|
+
};
|
|
2015
|
+
export type ExperimentalWorkspaceAdaptorListResponse = ExperimentalWorkspaceAdaptorListResponses[keyof ExperimentalWorkspaceAdaptorListResponses];
|
|
2016
|
+
export type ExperimentalWorkspaceListData = {
|
|
2017
|
+
body?: never;
|
|
2018
|
+
path?: never;
|
|
2019
|
+
query?: {
|
|
2020
|
+
directory?: string;
|
|
2021
|
+
workspace?: string;
|
|
2022
|
+
};
|
|
2023
|
+
url: "/experimental/workspace";
|
|
2024
|
+
};
|
|
2025
|
+
export type ExperimentalWorkspaceListResponses = {
|
|
2026
|
+
/**
|
|
2027
|
+
* Workspaces
|
|
2028
|
+
*/
|
|
2029
|
+
200: Array<Workspace>;
|
|
2030
|
+
};
|
|
2031
|
+
export type ExperimentalWorkspaceListResponse = ExperimentalWorkspaceListResponses[keyof ExperimentalWorkspaceListResponses];
|
|
2032
|
+
export type ExperimentalWorkspaceCreateData = {
|
|
2033
|
+
body?: {
|
|
2034
|
+
id?: string;
|
|
2035
|
+
type: string;
|
|
2036
|
+
branch: string | null;
|
|
2037
|
+
extra: unknown | null;
|
|
2038
|
+
};
|
|
2039
|
+
path?: never;
|
|
2040
|
+
query?: {
|
|
2041
|
+
directory?: string;
|
|
2042
|
+
workspace?: string;
|
|
2043
|
+
};
|
|
2044
|
+
url: "/experimental/workspace";
|
|
2045
|
+
};
|
|
2046
|
+
export type ExperimentalWorkspaceCreateErrors = {
|
|
2047
|
+
/**
|
|
2048
|
+
* Bad request
|
|
2049
|
+
*/
|
|
2050
|
+
400: BadRequestError;
|
|
2051
|
+
};
|
|
2052
|
+
export type ExperimentalWorkspaceCreateError = ExperimentalWorkspaceCreateErrors[keyof ExperimentalWorkspaceCreateErrors];
|
|
2053
|
+
export type ExperimentalWorkspaceCreateResponses = {
|
|
2054
|
+
/**
|
|
2055
|
+
* Workspace created
|
|
2056
|
+
*/
|
|
2057
|
+
200: Workspace;
|
|
2058
|
+
};
|
|
2059
|
+
export type ExperimentalWorkspaceCreateResponse = ExperimentalWorkspaceCreateResponses[keyof ExperimentalWorkspaceCreateResponses];
|
|
2060
|
+
export type ExperimentalWorkspaceStatusData = {
|
|
2061
|
+
body?: never;
|
|
2062
|
+
path?: never;
|
|
2063
|
+
query?: {
|
|
2064
|
+
directory?: string;
|
|
2065
|
+
workspace?: string;
|
|
2066
|
+
};
|
|
2067
|
+
url: "/experimental/workspace/status";
|
|
2068
|
+
};
|
|
2069
|
+
export type ExperimentalWorkspaceStatusResponses = {
|
|
2070
|
+
/**
|
|
2071
|
+
* Workspace status
|
|
2072
|
+
*/
|
|
2073
|
+
200: Array<{
|
|
2074
|
+
workspaceID: string;
|
|
2075
|
+
status: "connected" | "connecting" | "disconnected" | "error";
|
|
2076
|
+
error?: string;
|
|
2077
|
+
}>;
|
|
2078
|
+
};
|
|
2079
|
+
export type ExperimentalWorkspaceStatusResponse = ExperimentalWorkspaceStatusResponses[keyof ExperimentalWorkspaceStatusResponses];
|
|
2080
|
+
export type ExperimentalWorkspaceRemoveData = {
|
|
2081
|
+
body?: never;
|
|
2082
|
+
path: {
|
|
2083
|
+
id: string;
|
|
2084
|
+
};
|
|
2085
|
+
query?: {
|
|
2086
|
+
directory?: string;
|
|
2087
|
+
workspace?: string;
|
|
2088
|
+
};
|
|
2089
|
+
url: "/experimental/workspace/{id}";
|
|
2090
|
+
};
|
|
2091
|
+
export type ExperimentalWorkspaceRemoveErrors = {
|
|
2092
|
+
/**
|
|
2093
|
+
* Bad request
|
|
2094
|
+
*/
|
|
2095
|
+
400: BadRequestError;
|
|
2096
|
+
};
|
|
2097
|
+
export type ExperimentalWorkspaceRemoveError = ExperimentalWorkspaceRemoveErrors[keyof ExperimentalWorkspaceRemoveErrors];
|
|
2098
|
+
export type ExperimentalWorkspaceRemoveResponses = {
|
|
2099
|
+
/**
|
|
2100
|
+
* Workspace removed
|
|
2101
|
+
*/
|
|
2102
|
+
200: Workspace;
|
|
2103
|
+
};
|
|
2104
|
+
export type ExperimentalWorkspaceRemoveResponse = ExperimentalWorkspaceRemoveResponses[keyof ExperimentalWorkspaceRemoveResponses];
|
|
2105
|
+
export type ExperimentalWorkspaceSessionRestoreData = {
|
|
2106
|
+
body?: {
|
|
2107
|
+
sessionID: string;
|
|
2108
|
+
};
|
|
2109
|
+
path: {
|
|
2110
|
+
id: string;
|
|
2111
|
+
};
|
|
2112
|
+
query?: {
|
|
2113
|
+
directory?: string;
|
|
2114
|
+
workspace?: string;
|
|
2115
|
+
};
|
|
2116
|
+
url: "/experimental/workspace/{id}/session-restore";
|
|
2117
|
+
};
|
|
2118
|
+
export type ExperimentalWorkspaceSessionRestoreErrors = {
|
|
2119
|
+
/**
|
|
2120
|
+
* Bad request
|
|
2121
|
+
*/
|
|
2122
|
+
400: BadRequestError;
|
|
2123
|
+
};
|
|
2124
|
+
export type ExperimentalWorkspaceSessionRestoreError = ExperimentalWorkspaceSessionRestoreErrors[keyof ExperimentalWorkspaceSessionRestoreErrors];
|
|
2125
|
+
export type ExperimentalWorkspaceSessionRestoreResponses = {
|
|
2126
|
+
/**
|
|
2127
|
+
* Session replay started
|
|
2128
|
+
*/
|
|
2129
|
+
200: {
|
|
2130
|
+
total: number;
|
|
2131
|
+
};
|
|
2132
|
+
};
|
|
2133
|
+
export type ExperimentalWorkspaceSessionRestoreResponse = ExperimentalWorkspaceSessionRestoreResponses[keyof ExperimentalWorkspaceSessionRestoreResponses];
|
|
1996
2134
|
export type ProjectListData = {
|
|
1997
2135
|
body?: never;
|
|
1998
2136
|
path?: never;
|
|
@@ -2408,144 +2546,6 @@ export type ToolListResponses = {
|
|
|
2408
2546
|
200: ToolList;
|
|
2409
2547
|
};
|
|
2410
2548
|
export type ToolListResponse = ToolListResponses[keyof ToolListResponses];
|
|
2411
|
-
export type ExperimentalWorkspaceAdaptorListData = {
|
|
2412
|
-
body?: never;
|
|
2413
|
-
path?: never;
|
|
2414
|
-
query?: {
|
|
2415
|
-
directory?: string;
|
|
2416
|
-
workspace?: string;
|
|
2417
|
-
};
|
|
2418
|
-
url: "/experimental/workspace/adaptor";
|
|
2419
|
-
};
|
|
2420
|
-
export type ExperimentalWorkspaceAdaptorListResponses = {
|
|
2421
|
-
/**
|
|
2422
|
-
* Workspace adaptors
|
|
2423
|
-
*/
|
|
2424
|
-
200: Array<{
|
|
2425
|
-
type: string;
|
|
2426
|
-
name: string;
|
|
2427
|
-
description: string;
|
|
2428
|
-
}>;
|
|
2429
|
-
};
|
|
2430
|
-
export type ExperimentalWorkspaceAdaptorListResponse = ExperimentalWorkspaceAdaptorListResponses[keyof ExperimentalWorkspaceAdaptorListResponses];
|
|
2431
|
-
export type ExperimentalWorkspaceListData = {
|
|
2432
|
-
body?: never;
|
|
2433
|
-
path?: never;
|
|
2434
|
-
query?: {
|
|
2435
|
-
directory?: string;
|
|
2436
|
-
workspace?: string;
|
|
2437
|
-
};
|
|
2438
|
-
url: "/experimental/workspace";
|
|
2439
|
-
};
|
|
2440
|
-
export type ExperimentalWorkspaceListResponses = {
|
|
2441
|
-
/**
|
|
2442
|
-
* Workspaces
|
|
2443
|
-
*/
|
|
2444
|
-
200: Array<Workspace>;
|
|
2445
|
-
};
|
|
2446
|
-
export type ExperimentalWorkspaceListResponse = ExperimentalWorkspaceListResponses[keyof ExperimentalWorkspaceListResponses];
|
|
2447
|
-
export type ExperimentalWorkspaceCreateData = {
|
|
2448
|
-
body?: {
|
|
2449
|
-
id?: string;
|
|
2450
|
-
type: string;
|
|
2451
|
-
branch: string | null;
|
|
2452
|
-
extra: unknown | null;
|
|
2453
|
-
};
|
|
2454
|
-
path?: never;
|
|
2455
|
-
query?: {
|
|
2456
|
-
directory?: string;
|
|
2457
|
-
workspace?: string;
|
|
2458
|
-
};
|
|
2459
|
-
url: "/experimental/workspace";
|
|
2460
|
-
};
|
|
2461
|
-
export type ExperimentalWorkspaceCreateErrors = {
|
|
2462
|
-
/**
|
|
2463
|
-
* Bad request
|
|
2464
|
-
*/
|
|
2465
|
-
400: BadRequestError;
|
|
2466
|
-
};
|
|
2467
|
-
export type ExperimentalWorkspaceCreateError = ExperimentalWorkspaceCreateErrors[keyof ExperimentalWorkspaceCreateErrors];
|
|
2468
|
-
export type ExperimentalWorkspaceCreateResponses = {
|
|
2469
|
-
/**
|
|
2470
|
-
* Workspace created
|
|
2471
|
-
*/
|
|
2472
|
-
200: Workspace;
|
|
2473
|
-
};
|
|
2474
|
-
export type ExperimentalWorkspaceCreateResponse = ExperimentalWorkspaceCreateResponses[keyof ExperimentalWorkspaceCreateResponses];
|
|
2475
|
-
export type ExperimentalWorkspaceStatusData = {
|
|
2476
|
-
body?: never;
|
|
2477
|
-
path?: never;
|
|
2478
|
-
query?: {
|
|
2479
|
-
directory?: string;
|
|
2480
|
-
workspace?: string;
|
|
2481
|
-
};
|
|
2482
|
-
url: "/experimental/workspace/status";
|
|
2483
|
-
};
|
|
2484
|
-
export type ExperimentalWorkspaceStatusResponses = {
|
|
2485
|
-
/**
|
|
2486
|
-
* Workspace status
|
|
2487
|
-
*/
|
|
2488
|
-
200: Array<{
|
|
2489
|
-
workspaceID: string;
|
|
2490
|
-
status: "connected" | "connecting" | "disconnected" | "error";
|
|
2491
|
-
error?: string;
|
|
2492
|
-
}>;
|
|
2493
|
-
};
|
|
2494
|
-
export type ExperimentalWorkspaceStatusResponse = ExperimentalWorkspaceStatusResponses[keyof ExperimentalWorkspaceStatusResponses];
|
|
2495
|
-
export type ExperimentalWorkspaceRemoveData = {
|
|
2496
|
-
body?: never;
|
|
2497
|
-
path: {
|
|
2498
|
-
id: string;
|
|
2499
|
-
};
|
|
2500
|
-
query?: {
|
|
2501
|
-
directory?: string;
|
|
2502
|
-
workspace?: string;
|
|
2503
|
-
};
|
|
2504
|
-
url: "/experimental/workspace/{id}";
|
|
2505
|
-
};
|
|
2506
|
-
export type ExperimentalWorkspaceRemoveErrors = {
|
|
2507
|
-
/**
|
|
2508
|
-
* Bad request
|
|
2509
|
-
*/
|
|
2510
|
-
400: BadRequestError;
|
|
2511
|
-
};
|
|
2512
|
-
export type ExperimentalWorkspaceRemoveError = ExperimentalWorkspaceRemoveErrors[keyof ExperimentalWorkspaceRemoveErrors];
|
|
2513
|
-
export type ExperimentalWorkspaceRemoveResponses = {
|
|
2514
|
-
/**
|
|
2515
|
-
* Workspace removed
|
|
2516
|
-
*/
|
|
2517
|
-
200: Workspace;
|
|
2518
|
-
};
|
|
2519
|
-
export type ExperimentalWorkspaceRemoveResponse = ExperimentalWorkspaceRemoveResponses[keyof ExperimentalWorkspaceRemoveResponses];
|
|
2520
|
-
export type ExperimentalWorkspaceSessionRestoreData = {
|
|
2521
|
-
body?: {
|
|
2522
|
-
sessionID: string;
|
|
2523
|
-
};
|
|
2524
|
-
path: {
|
|
2525
|
-
id: string;
|
|
2526
|
-
};
|
|
2527
|
-
query?: {
|
|
2528
|
-
directory?: string;
|
|
2529
|
-
workspace?: string;
|
|
2530
|
-
};
|
|
2531
|
-
url: "/experimental/workspace/{id}/session-restore";
|
|
2532
|
-
};
|
|
2533
|
-
export type ExperimentalWorkspaceSessionRestoreErrors = {
|
|
2534
|
-
/**
|
|
2535
|
-
* Bad request
|
|
2536
|
-
*/
|
|
2537
|
-
400: BadRequestError;
|
|
2538
|
-
};
|
|
2539
|
-
export type ExperimentalWorkspaceSessionRestoreError = ExperimentalWorkspaceSessionRestoreErrors[keyof ExperimentalWorkspaceSessionRestoreErrors];
|
|
2540
|
-
export type ExperimentalWorkspaceSessionRestoreResponses = {
|
|
2541
|
-
/**
|
|
2542
|
-
* Session replay started
|
|
2543
|
-
*/
|
|
2544
|
-
200: {
|
|
2545
|
-
total: number;
|
|
2546
|
-
};
|
|
2547
|
-
};
|
|
2548
|
-
export type ExperimentalWorkspaceSessionRestoreResponse = ExperimentalWorkspaceSessionRestoreResponses[keyof ExperimentalWorkspaceSessionRestoreResponses];
|
|
2549
2549
|
export type WorktreeRemoveData = {
|
|
2550
2550
|
body?: WorktreeRemoveInput;
|
|
2551
2551
|
path?: never;
|