@opencode-ai/sdk 1.17.3 → 1.17.5

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,7 +1,7 @@
1
1
  export type ClientOptions = {
2
2
  baseUrl: `${string}://${string}` | (string & {});
3
3
  };
4
- export type Event = EventModelsDevRefreshed | EventPluginAdded | EventCatalogModelUpdated | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionNextAgentSwitched | EventSessionNextModelSwitched | EventSessionNextMoved | EventSessionNextPrompted | EventSessionNextPromptAdmitted | EventSessionNextPromptPromoted | EventSessionNextInterruptRequested | EventSessionNextContextUpdated | EventSessionNextSynthetic | EventSessionNextShellStarted | EventSessionNextShellEnded | EventSessionNextStepStarted | EventSessionNextStepEnded | EventSessionNextStepFailed | EventSessionNextTextStarted | EventSessionNextTextDelta | EventSessionNextTextEnded | EventSessionNextReasoningStarted | EventSessionNextReasoningDelta | EventSessionNextReasoningEnded | EventSessionNextToolInputStarted | EventSessionNextToolInputDelta | EventSessionNextToolInputEnded | EventSessionNextToolCalled | EventSessionNextToolProgress | EventSessionNextToolSuccess | EventSessionNextToolFailed | EventSessionNextRetried | EventSessionNextCompactionStarted | EventSessionNextCompactionDelta | EventSessionNextCompactionEnded | EventMessagePartDelta | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventFileEdited | EventAccountAdded | EventAccountRemoved | EventAccountSwitched | EventPermissionV2Asked | EventPermissionV2Replied | EventReferenceUpdated | EventFileWatcherUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventQuestionV2Asked | EventQuestionV2Replied | EventQuestionV2Rejected | EventTodoUpdated | EventLspUpdated | EventPermissionAsked | EventPermissionReplied | EventTuiPromptAppend2 | EventTuiCommandExecute2 | EventTuiToastShow2 | EventTuiSessionSelect2 | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventProjectDirectoriesUpdated | EventProjectUpdated | EventVcsBranchUpdated | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventWorktreeReady | EventWorktreeFailed | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventServerConnected | EventGlobalDisposed | EventServerInstanceDisposed;
4
+ export type Event = EventModelsDevRefreshed | EventPluginAdded | EventCatalogModelUpdated | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionNextAgentSwitched | EventSessionNextModelSwitched | EventSessionNextMoved | EventSessionNextPrompted | EventSessionNextPromptAdmitted | EventSessionNextPromptPromoted | EventSessionNextInterruptRequested | EventSessionNextContextUpdated | EventSessionNextSynthetic | EventSessionNextShellStarted | EventSessionNextShellEnded | EventSessionNextStepStarted | EventSessionNextStepEnded | EventSessionNextStepFailed | EventSessionNextTextStarted | EventSessionNextTextDelta | EventSessionNextTextEnded | EventSessionNextReasoningStarted | EventSessionNextReasoningDelta | EventSessionNextReasoningEnded | EventSessionNextToolInputStarted | EventSessionNextToolInputDelta | EventSessionNextToolInputEnded | EventSessionNextToolCalled | EventSessionNextToolProgress | EventSessionNextToolSuccess | EventSessionNextToolFailed | EventSessionNextRetried | EventSessionNextCompactionStarted | EventSessionNextCompactionDelta | EventSessionNextCompactionEnded | EventMessagePartDelta | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventFileEdited | EventIntegrationUpdated | EventPermissionV2Asked | EventPermissionV2Replied | EventReferenceUpdated | EventProjectDirectoriesUpdated | EventFileWatcherUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventQuestionV2Asked | EventQuestionV2Replied | EventQuestionV2Rejected | EventTodoUpdated | EventLspUpdated | EventPermissionAsked | EventPermissionReplied | EventTuiPromptAppend2 | EventTuiCommandExecute2 | EventTuiToastShow2 | EventTuiSessionSelect2 | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventProjectUpdated | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventServerConnected | EventGlobalDisposed | EventServerInstanceDisposed;
5
5
  export type QuestionReplied = {
6
6
  sessionID: string;
7
7
  requestID: string;
@@ -189,6 +189,12 @@ export type ContextOverflowError = {
189
189
  responseBody?: string;
190
190
  };
191
191
  };
192
+ export type ContentFilterError = {
193
+ name: "ContentFilterError";
194
+ data: {
195
+ message: string;
196
+ };
197
+ };
192
198
  export type ApiError = {
193
199
  name: "APIError";
194
200
  data: {
@@ -212,7 +218,7 @@ export type AssistantMessage = {
212
218
  created: number;
213
219
  completed?: number;
214
220
  };
215
- error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ApiError;
221
+ error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ContentFilterError | ApiError;
216
222
  parentID: string;
217
223
  modelID: string;
218
224
  providerID: string;
@@ -494,6 +500,24 @@ export type Todo = {
494
500
  */
495
501
  priority: string;
496
502
  };
503
+ export type SessionStatus = {
504
+ type: "idle";
505
+ } | {
506
+ type: "retry";
507
+ attempt: number;
508
+ message: string;
509
+ action?: {
510
+ reason: string;
511
+ provider: string;
512
+ title: string;
513
+ message: string;
514
+ label: string;
515
+ link?: string;
516
+ };
517
+ next: number;
518
+ } | {
519
+ type: "busy";
520
+ };
497
521
  export type QuestionOption = {
498
522
  /**
499
523
  * Display text (1-5 words, concise)
@@ -525,24 +549,6 @@ export type QuestionTool = {
525
549
  callID: string;
526
550
  };
527
551
  export type QuestionAnswer = Array<string>;
528
- export type SessionStatus = {
529
- type: "idle";
530
- } | {
531
- type: "retry";
532
- attempt: number;
533
- message: string;
534
- action?: {
535
- reason: string;
536
- provider: string;
537
- title: string;
538
- message: string;
539
- label: string;
540
- link?: string;
541
- };
542
- next: number;
543
- } | {
544
- type: "busy";
545
- };
546
552
  export type GlobalEvent = {
547
553
  directory: string;
548
554
  project?: string;
@@ -999,7 +1005,7 @@ export type GlobalEvent = {
999
1005
  type: "session.error";
1000
1006
  properties: {
1001
1007
  sessionID?: string;
1002
- error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ApiError;
1008
+ error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ContentFilterError | ApiError;
1003
1009
  };
1004
1010
  } | {
1005
1011
  id: string;
@@ -1021,23 +1027,9 @@ export type GlobalEvent = {
1021
1027
  };
1022
1028
  } | {
1023
1029
  id: string;
1024
- type: "account.added";
1025
- properties: {
1026
- account: AuthInfo;
1027
- };
1028
- } | {
1029
- id: string;
1030
- type: "account.removed";
1031
- properties: {
1032
- account: AuthInfo;
1033
- };
1034
- } | {
1035
- id: string;
1036
- type: "account.switched";
1030
+ type: "integration.updated";
1037
1031
  properties: {
1038
- serviceID: string;
1039
- from?: string;
1040
- to?: string;
1032
+ [key: string]: unknown;
1041
1033
  };
1042
1034
  } | {
1043
1035
  id: string;
@@ -1067,6 +1059,12 @@ export type GlobalEvent = {
1067
1059
  properties: {
1068
1060
  [key: string]: unknown;
1069
1061
  };
1062
+ } | {
1063
+ id: string;
1064
+ type: "project.directories.updated";
1065
+ properties: {
1066
+ projectID: string;
1067
+ };
1070
1068
  } | {
1071
1069
  id: string;
1072
1070
  type: "file.watcher.updated";
@@ -1216,12 +1214,6 @@ export type GlobalEvent = {
1216
1214
  arguments: string;
1217
1215
  messageID: string;
1218
1216
  };
1219
- } | {
1220
- id: string;
1221
- type: "project.directories.updated";
1222
- properties: {
1223
- projectID: string;
1224
- };
1225
1217
  } | {
1226
1218
  id: string;
1227
1219
  type: "project.updated";
@@ -1250,9 +1242,16 @@ export type GlobalEvent = {
1250
1242
  };
1251
1243
  } | {
1252
1244
  id: string;
1253
- type: "vcs.branch.updated";
1245
+ type: "session.status";
1254
1246
  properties: {
1255
- branch?: string;
1247
+ sessionID: string;
1248
+ status: SessionStatus;
1249
+ };
1250
+ } | {
1251
+ id: string;
1252
+ type: "session.idle";
1253
+ properties: {
1254
+ sessionID: string;
1256
1255
  };
1257
1256
  } | {
1258
1257
  id: string;
@@ -1283,54 +1282,47 @@ export type GlobalEvent = {
1283
1282
  };
1284
1283
  } | {
1285
1284
  id: string;
1286
- type: "session.status";
1287
- properties: {
1288
- sessionID: string;
1289
- status: SessionStatus;
1290
- };
1291
- } | {
1292
- id: string;
1293
- type: "session.idle";
1285
+ type: "session.compacted";
1294
1286
  properties: {
1295
1287
  sessionID: string;
1296
1288
  };
1297
1289
  } | {
1298
1290
  id: string;
1299
- type: "session.compacted";
1291
+ type: "vcs.branch.updated";
1300
1292
  properties: {
1301
- sessionID: string;
1293
+ branch?: string;
1302
1294
  };
1303
1295
  } | {
1304
1296
  id: string;
1305
- type: "worktree.ready";
1297
+ type: "workspace.ready";
1306
1298
  properties: {
1307
1299
  name: string;
1308
- branch?: string;
1309
1300
  };
1310
1301
  } | {
1311
1302
  id: string;
1312
- type: "worktree.failed";
1303
+ type: "workspace.failed";
1313
1304
  properties: {
1314
1305
  message: string;
1315
1306
  };
1316
1307
  } | {
1317
1308
  id: string;
1318
- type: "workspace.ready";
1309
+ type: "workspace.status";
1319
1310
  properties: {
1320
- name: string;
1311
+ workspaceID: string;
1312
+ status: "connected" | "connecting" | "disconnected" | "error";
1321
1313
  };
1322
1314
  } | {
1323
1315
  id: string;
1324
- type: "workspace.failed";
1316
+ type: "worktree.ready";
1325
1317
  properties: {
1326
- message: string;
1318
+ name: string;
1319
+ branch?: string;
1327
1320
  };
1328
1321
  } | {
1329
1322
  id: string;
1330
- type: "workspace.status";
1323
+ type: "worktree.failed";
1331
1324
  properties: {
1332
- workspaceID: string;
1333
- status: "connected" | "connecting" | "disconnected" | "error";
1325
+ message: string;
1334
1326
  };
1335
1327
  } | {
1336
1328
  id: string;
@@ -1503,6 +1495,7 @@ export type McpLocalConfig = {
1503
1495
  * Command and arguments to run the MCP server
1504
1496
  */
1505
1497
  command: Array<string>;
1498
+ cwd?: string;
1506
1499
  environment?: {
1507
1500
  [key: string]: string;
1508
1501
  };
@@ -2046,13 +2039,6 @@ export type ProjectNotFoundError = {
2046
2039
  projectID: string;
2047
2040
  message: string;
2048
2041
  };
2049
- export type ProjectCopyError = {
2050
- name: "ProjectCopyError";
2051
- data: {
2052
- message: string;
2053
- forceRequired?: boolean;
2054
- };
2055
- };
2056
2042
  export type PtyNotFoundError = {
2057
2043
  _tag: "PtyNotFoundError";
2058
2044
  ptyID: string;
@@ -2260,16 +2246,16 @@ export type InvalidCursorError = {
2260
2246
  _tag: "InvalidCursorError";
2261
2247
  message: string;
2262
2248
  };
2263
- export type ConflictError = {
2264
- _tag: "ConflictError";
2265
- message: string;
2266
- resource?: string;
2267
- };
2268
2249
  export type SessionNotFoundError = {
2269
2250
  _tag: "SessionNotFoundError";
2270
2251
  sessionID: string;
2271
2252
  message: string;
2272
2253
  };
2254
+ export type ConflictError = {
2255
+ _tag: "ConflictError";
2256
+ message: string;
2257
+ resource?: string;
2258
+ };
2273
2259
  export type ServiceUnavailableError = {
2274
2260
  _tag: "ServiceUnavailableError";
2275
2261
  message: string;
@@ -2292,6 +2278,13 @@ export type ProviderNotFoundError = {
2292
2278
  providerID: string;
2293
2279
  message: string;
2294
2280
  };
2281
+ export type ProjectCopyError = {
2282
+ name: "ProjectCopyError";
2283
+ data: {
2284
+ message: string;
2285
+ forceRequired?: boolean;
2286
+ };
2287
+ };
2295
2288
  export type EffectHttpApiErrorForbidden = {
2296
2289
  _tag: "Forbidden";
2297
2290
  };
@@ -2471,26 +2464,6 @@ export type SessionNextRetryError = {
2471
2464
  [key: string]: string;
2472
2465
  };
2473
2466
  };
2474
- export type AuthOAuthCredential = {
2475
- type: "oauth";
2476
- refresh: string;
2477
- access: string;
2478
- expires: number;
2479
- };
2480
- export type AuthApiKeyCredential = {
2481
- type: "api";
2482
- key: string;
2483
- metadata?: {
2484
- [key: string]: string;
2485
- };
2486
- };
2487
- export type AuthCredential = AuthOAuthCredential | AuthApiKeyCredential;
2488
- export type AuthInfo = {
2489
- id: string;
2490
- serviceID: string;
2491
- description: string;
2492
- credential: AuthCredential;
2493
- };
2494
2467
  export type PermissionV2Source = {
2495
2468
  type: "tool";
2496
2469
  messageID: string;
@@ -3165,11 +3138,8 @@ export type ConfigV2ExperimentalPolicy = {
3165
3138
  };
3166
3139
  export type ProjectDirectories = Array<{
3167
3140
  directory: string;
3168
- type: "main" | "root" | "git_worktree";
3141
+ strategy?: string;
3169
3142
  }>;
3170
- export type ProjectCopyCopy = {
3171
- directory: string;
3172
- };
3173
3143
  export type LocationInfo = {
3174
3144
  directory: string;
3175
3145
  workspaceID?: string;
@@ -3456,8 +3426,8 @@ export type ProviderV2Info = {
3456
3426
  via: "env";
3457
3427
  name: string;
3458
3428
  } | {
3459
- via: "account";
3460
- service: string;
3429
+ via: "credential";
3430
+ credentialID: string;
3461
3431
  } | {
3462
3432
  via: "custom";
3463
3433
  data: {
@@ -3488,6 +3458,69 @@ export type ProviderV2Info = {
3488
3458
  };
3489
3459
  };
3490
3460
  };
3461
+ export type IntegrationWhen = {
3462
+ key: string;
3463
+ op: "eq" | "neq";
3464
+ value: string;
3465
+ };
3466
+ export type IntegrationTextPrompt = {
3467
+ type: "text";
3468
+ key: string;
3469
+ message: string;
3470
+ placeholder?: string;
3471
+ when?: IntegrationWhen;
3472
+ };
3473
+ export type IntegrationSelectPrompt = {
3474
+ type: "select";
3475
+ key: string;
3476
+ message: string;
3477
+ options: Array<{
3478
+ label: string;
3479
+ value: string;
3480
+ hint?: string;
3481
+ }>;
3482
+ when?: IntegrationWhen;
3483
+ };
3484
+ export type IntegrationOAuthMethod = {
3485
+ id: string;
3486
+ type: "oauth";
3487
+ label: string;
3488
+ prompts?: Array<IntegrationTextPrompt | IntegrationSelectPrompt>;
3489
+ };
3490
+ export type IntegrationKeyMethod = {
3491
+ type: "key";
3492
+ label?: string;
3493
+ };
3494
+ export type IntegrationEnvMethod = {
3495
+ type: "env";
3496
+ names: Array<string>;
3497
+ };
3498
+ export type ConnectionCredentialInfo = {
3499
+ type: "credential";
3500
+ id: string;
3501
+ label: string;
3502
+ };
3503
+ export type ConnectionEnvInfo = {
3504
+ type: "env";
3505
+ name: string;
3506
+ };
3507
+ export type ConnectionInfo = ConnectionCredentialInfo | ConnectionEnvInfo;
3508
+ export type IntegrationInfo = {
3509
+ id: string;
3510
+ name: string;
3511
+ methods: Array<IntegrationOAuthMethod | IntegrationKeyMethod | IntegrationEnvMethod>;
3512
+ connections: Array<ConnectionInfo>;
3513
+ };
3514
+ export type IntegrationAttempt = {
3515
+ attemptID: string;
3516
+ url: string;
3517
+ instructions: string;
3518
+ mode: "auto" | "code";
3519
+ time: {
3520
+ created: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3521
+ expires: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
3522
+ };
3523
+ };
3491
3524
  export type PermissionV2Request = {
3492
3525
  id: string;
3493
3526
  sessionID: string;
@@ -3505,13 +3538,6 @@ export type PermissionSavedInfo = {
3505
3538
  action: string;
3506
3539
  resource: string;
3507
3540
  };
3508
- export type FileSystemContent = {
3509
- uri: string;
3510
- name?: string;
3511
- content: string;
3512
- encoding: "utf8" | "base64";
3513
- mime: string;
3514
- };
3515
3541
  export type FileSystemEntry = {
3516
3542
  path: string;
3517
3543
  type: "file" | "directory";
@@ -3571,6 +3597,9 @@ export type ReferenceInfo = {
3571
3597
  hidden?: boolean;
3572
3598
  source: ReferenceLocalSource | ReferenceGitSource;
3573
3599
  };
3600
+ export type ProjectCopyCopy = {
3601
+ directory: string;
3602
+ };
3574
3603
  export type EventModelsDevRefreshed = {
3575
3604
  id: string;
3576
3605
  type: "models-dev.refreshed";
@@ -4159,7 +4188,7 @@ export type EventSessionError = {
4159
4188
  type: "session.error";
4160
4189
  properties: {
4161
4190
  sessionID?: string;
4162
- error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ApiError;
4191
+ error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ContentFilterError | ApiError;
4163
4192
  };
4164
4193
  };
4165
4194
  export type EventInstallationUpdated = {
@@ -4183,27 +4212,11 @@ export type EventFileEdited = {
4183
4212
  file: string;
4184
4213
  };
4185
4214
  };
4186
- export type EventAccountAdded = {
4187
- id: string;
4188
- type: "account.added";
4189
- properties: {
4190
- account: AuthInfo;
4191
- };
4192
- };
4193
- export type EventAccountRemoved = {
4194
- id: string;
4195
- type: "account.removed";
4196
- properties: {
4197
- account: AuthInfo;
4198
- };
4199
- };
4200
- export type EventAccountSwitched = {
4215
+ export type EventIntegrationUpdated = {
4201
4216
  id: string;
4202
- type: "account.switched";
4217
+ type: "integration.updated";
4203
4218
  properties: {
4204
- serviceID: string;
4205
- from?: string;
4206
- to?: string;
4219
+ [key: string]: unknown;
4207
4220
  };
4208
4221
  };
4209
4222
  export type EventPermissionV2Asked = {
@@ -4237,6 +4250,13 @@ export type EventReferenceUpdated = {
4237
4250
  [key: string]: unknown;
4238
4251
  };
4239
4252
  };
4253
+ export type EventProjectDirectoriesUpdated = {
4254
+ id: string;
4255
+ type: "project.directories.updated";
4256
+ properties: {
4257
+ projectID: string;
4258
+ };
4259
+ };
4240
4260
  export type EventFileWatcherUpdated = {
4241
4261
  id: string;
4242
4262
  type: "file.watcher.updated";
@@ -4371,13 +4391,6 @@ export type EventCommandExecuted = {
4371
4391
  messageID: string;
4372
4392
  };
4373
4393
  };
4374
- export type EventProjectDirectoriesUpdated = {
4375
- id: string;
4376
- type: "project.directories.updated";
4377
- properties: {
4378
- projectID: string;
4379
- };
4380
- };
4381
4394
  export type EventProjectUpdated = {
4382
4395
  id: string;
4383
4396
  type: "project.updated";
@@ -4405,11 +4418,19 @@ export type EventProjectUpdated = {
4405
4418
  sandboxes: Array<string>;
4406
4419
  };
4407
4420
  };
4408
- export type EventVcsBranchUpdated = {
4421
+ export type EventSessionStatus = {
4409
4422
  id: string;
4410
- type: "vcs.branch.updated";
4423
+ type: "session.status";
4411
4424
  properties: {
4412
- branch?: string;
4425
+ sessionID: string;
4426
+ status: SessionStatus;
4427
+ };
4428
+ };
4429
+ export type EventSessionIdle = {
4430
+ id: string;
4431
+ type: "session.idle";
4432
+ properties: {
4433
+ sessionID: string;
4413
4434
  };
4414
4435
  };
4415
4436
  export type EventQuestionAsked = {
@@ -4442,21 +4463,6 @@ export type EventQuestionRejected = {
4442
4463
  requestID: string;
4443
4464
  };
4444
4465
  };
4445
- export type EventSessionStatus = {
4446
- id: string;
4447
- type: "session.status";
4448
- properties: {
4449
- sessionID: string;
4450
- status: SessionStatus;
4451
- };
4452
- };
4453
- export type EventSessionIdle = {
4454
- id: string;
4455
- type: "session.idle";
4456
- properties: {
4457
- sessionID: string;
4458
- };
4459
- };
4460
4466
  export type EventSessionCompacted = {
4461
4467
  id: string;
4462
4468
  type: "session.compacted";
@@ -4464,21 +4470,13 @@ export type EventSessionCompacted = {
4464
4470
  sessionID: string;
4465
4471
  };
4466
4472
  };
4467
- export type EventWorktreeReady = {
4473
+ export type EventVcsBranchUpdated = {
4468
4474
  id: string;
4469
- type: "worktree.ready";
4475
+ type: "vcs.branch.updated";
4470
4476
  properties: {
4471
- name: string;
4472
4477
  branch?: string;
4473
4478
  };
4474
4479
  };
4475
- export type EventWorktreeFailed = {
4476
- id: string;
4477
- type: "worktree.failed";
4478
- properties: {
4479
- message: string;
4480
- };
4481
- };
4482
4480
  export type EventWorkspaceReady = {
4483
4481
  id: string;
4484
4482
  type: "workspace.ready";
@@ -4501,11 +4499,26 @@ export type EventWorkspaceStatus = {
4501
4499
  status: "connected" | "connecting" | "disconnected" | "error";
4502
4500
  };
4503
4501
  };
4504
- export type EventServerConnected = {
4502
+ export type EventWorktreeReady = {
4505
4503
  id: string;
4506
- type: "server.connected";
4504
+ type: "worktree.ready";
4507
4505
  properties: {
4508
- [key: string]: unknown;
4506
+ name: string;
4507
+ branch?: string;
4508
+ };
4509
+ };
4510
+ export type EventWorktreeFailed = {
4511
+ id: string;
4512
+ type: "worktree.failed";
4513
+ properties: {
4514
+ message: string;
4515
+ };
4516
+ };
4517
+ export type EventServerConnected = {
4518
+ id: string;
4519
+ type: "server.connected";
4520
+ properties: {
4521
+ [key: string]: unknown;
4509
4522
  };
4510
4523
  };
4511
4524
  export type EventGlobalDisposed = {
@@ -5970,87 +5983,35 @@ export type ProjectDirectoriesResponses = {
5970
5983
  200: ProjectDirectories;
5971
5984
  };
5972
5985
  export type ProjectDirectoriesResponse = ProjectDirectoriesResponses[keyof ProjectDirectoriesResponses];
5973
- export type ExperimentalProjectCopyRemoveData = {
5974
- body?: {
5975
- directory: string;
5976
- force: boolean;
5977
- };
5978
- path: {
5979
- projectID: string;
5980
- };
5981
- query?: {
5982
- workspace?: string;
5983
- };
5984
- url: "/experimental/project/{projectID}/copy";
5985
- };
5986
- export type ExperimentalProjectCopyRemoveErrors = {
5987
- /**
5988
- * ProjectCopyError | InvalidRequestError
5989
- */
5990
- 400: ProjectCopyError | InvalidRequestError;
5991
- };
5992
- export type ExperimentalProjectCopyRemoveError = ExperimentalProjectCopyRemoveErrors[keyof ExperimentalProjectCopyRemoveErrors];
5993
- export type ExperimentalProjectCopyRemoveResponses = {
5994
- /**
5995
- * Project copy removed
5996
- */
5997
- 204: void;
5998
- };
5999
- export type ExperimentalProjectCopyRemoveResponse = ExperimentalProjectCopyRemoveResponses[keyof ExperimentalProjectCopyRemoveResponses];
6000
- export type ExperimentalProjectCopyCreateData = {
5986
+ export type ExperimentalProjectCopyGenerateNameData = {
6001
5987
  body?: {
6002
- strategy: "git_worktree";
6003
- directory: string;
6004
- name?: string;
6005
5988
  context?: string;
6006
5989
  };
6007
5990
  path: {
6008
5991
  projectID: string;
6009
5992
  };
6010
- query?: {
6011
- workspace?: string;
6012
- };
6013
- url: "/experimental/project/{projectID}/copy";
6014
- };
6015
- export type ExperimentalProjectCopyCreateErrors = {
6016
- /**
6017
- * ProjectCopyError | InvalidRequestError
6018
- */
6019
- 400: ProjectCopyError | InvalidRequestError;
6020
- };
6021
- export type ExperimentalProjectCopyCreateError = ExperimentalProjectCopyCreateErrors[keyof ExperimentalProjectCopyCreateErrors];
6022
- export type ExperimentalProjectCopyCreateResponses = {
6023
- /**
6024
- * Project copy created
6025
- */
6026
- 200: ProjectCopyCopy;
6027
- };
6028
- export type ExperimentalProjectCopyCreateResponse = ExperimentalProjectCopyCreateResponses[keyof ExperimentalProjectCopyCreateResponses];
6029
- export type ExperimentalProjectCopyRefreshData = {
6030
- body?: never;
6031
- path: {
6032
- projectID: string;
6033
- };
6034
5993
  query?: {
6035
5994
  directory?: string;
6036
5995
  workspace?: string;
6037
5996
  };
6038
- url: "/experimental/project/{projectID}/copy/refresh";
5997
+ url: "/experimental/project/{projectID}/copy/generate-name";
6039
5998
  };
6040
- export type ExperimentalProjectCopyRefreshErrors = {
5999
+ export type ExperimentalProjectCopyGenerateNameErrors = {
6041
6000
  /**
6042
- * ProjectCopyError | InvalidRequestError
6001
+ * Bad request
6043
6002
  */
6044
- 400: ProjectCopyError | InvalidRequestError;
6003
+ 400: BadRequestError;
6045
6004
  };
6046
- export type ExperimentalProjectCopyRefreshError = ExperimentalProjectCopyRefreshErrors[keyof ExperimentalProjectCopyRefreshErrors];
6047
- export type ExperimentalProjectCopyRefreshResponses = {
6005
+ export type ExperimentalProjectCopyGenerateNameError = ExperimentalProjectCopyGenerateNameErrors[keyof ExperimentalProjectCopyGenerateNameErrors];
6006
+ export type ExperimentalProjectCopyGenerateNameResponses = {
6048
6007
  /**
6049
- * Project copies refreshed
6008
+ * Success
6050
6009
  */
6051
- 204: void;
6010
+ 200: {
6011
+ name: string;
6012
+ };
6052
6013
  };
6053
- export type ExperimentalProjectCopyRefreshResponse = ExperimentalProjectCopyRefreshResponses[keyof ExperimentalProjectCopyRefreshResponses];
6014
+ export type ExperimentalProjectCopyGenerateNameResponse = ExperimentalProjectCopyGenerateNameResponses[keyof ExperimentalProjectCopyGenerateNameResponses];
6054
6015
  export type PtyShellsData = {
6055
6016
  body?: never;
6056
6017
  path?: never;
@@ -8073,6 +8034,35 @@ export type V2HealthGetResponses = {
8073
8034
  };
8074
8035
  };
8075
8036
  export type V2HealthGetResponse = V2HealthGetResponses[keyof V2HealthGetResponses];
8037
+ export type V2LocationGetData = {
8038
+ body?: never;
8039
+ path?: never;
8040
+ query?: {
8041
+ location?: {
8042
+ directory?: string;
8043
+ workspace?: string;
8044
+ };
8045
+ };
8046
+ url: "/api/location";
8047
+ };
8048
+ export type V2LocationGetErrors = {
8049
+ /**
8050
+ * InvalidRequestError
8051
+ */
8052
+ 400: InvalidRequestError;
8053
+ /**
8054
+ * UnauthorizedError
8055
+ */
8056
+ 401: UnauthorizedError;
8057
+ };
8058
+ export type V2LocationGetError = V2LocationGetErrors[keyof V2LocationGetErrors];
8059
+ export type V2LocationGetResponses = {
8060
+ /**
8061
+ * Location.Info
8062
+ */
8063
+ 200: LocationInfo;
8064
+ };
8065
+ export type V2LocationGetResponse = V2LocationGetResponses[keyof V2LocationGetResponses];
8076
8066
  export type V2AgentListData = {
8077
8067
  body?: never;
8078
8068
  path?: never;
@@ -8141,6 +8131,73 @@ export type V2SessionListResponses = {
8141
8131
  200: SessionsResponse;
8142
8132
  };
8143
8133
  export type V2SessionListResponse = V2SessionListResponses[keyof V2SessionListResponses];
8134
+ export type V2SessionCreateData = {
8135
+ body: {
8136
+ id?: string;
8137
+ agent?: string;
8138
+ model?: {
8139
+ id: string;
8140
+ providerID: string;
8141
+ variant?: string;
8142
+ };
8143
+ location?: LocationRef;
8144
+ };
8145
+ path?: never;
8146
+ query?: never;
8147
+ url: "/api/session";
8148
+ };
8149
+ export type V2SessionCreateErrors = {
8150
+ /**
8151
+ * InvalidRequestError
8152
+ */
8153
+ 400: InvalidRequestError;
8154
+ /**
8155
+ * UnauthorizedError
8156
+ */
8157
+ 401: UnauthorizedError;
8158
+ };
8159
+ export type V2SessionCreateError = V2SessionCreateErrors[keyof V2SessionCreateErrors];
8160
+ export type V2SessionCreateResponses = {
8161
+ /**
8162
+ * Success
8163
+ */
8164
+ 200: {
8165
+ data: SessionV2Info;
8166
+ };
8167
+ };
8168
+ export type V2SessionCreateResponse = V2SessionCreateResponses[keyof V2SessionCreateResponses];
8169
+ export type V2SessionGetData = {
8170
+ body?: never;
8171
+ path: {
8172
+ sessionID: string;
8173
+ };
8174
+ query?: never;
8175
+ url: "/api/session/{sessionID}";
8176
+ };
8177
+ export type V2SessionGetErrors = {
8178
+ /**
8179
+ * InvalidRequestError
8180
+ */
8181
+ 400: InvalidRequestError;
8182
+ /**
8183
+ * UnauthorizedError
8184
+ */
8185
+ 401: UnauthorizedError;
8186
+ /**
8187
+ * SessionNotFoundError
8188
+ */
8189
+ 404: SessionNotFoundError;
8190
+ };
8191
+ export type V2SessionGetError = V2SessionGetErrors[keyof V2SessionGetErrors];
8192
+ export type V2SessionGetResponses = {
8193
+ /**
8194
+ * Success
8195
+ */
8196
+ 200: {
8197
+ data: SessionV2Info;
8198
+ };
8199
+ };
8200
+ export type V2SessionGetResponse = V2SessionGetResponses[keyof V2SessionGetResponses];
8144
8201
  export type V2SessionPromptData = {
8145
8202
  body: {
8146
8203
  id?: string;
@@ -8441,6 +8498,323 @@ export type V2ProviderGetResponses = {
8441
8498
  };
8442
8499
  };
8443
8500
  export type V2ProviderGetResponse = V2ProviderGetResponses[keyof V2ProviderGetResponses];
8501
+ export type V2IntegrationListData = {
8502
+ body?: never;
8503
+ path?: never;
8504
+ query?: {
8505
+ location?: {
8506
+ directory?: string;
8507
+ workspace?: string;
8508
+ };
8509
+ };
8510
+ url: "/api/integration";
8511
+ };
8512
+ export type V2IntegrationListErrors = {
8513
+ /**
8514
+ * InvalidRequestError
8515
+ */
8516
+ 400: InvalidRequestError;
8517
+ /**
8518
+ * UnauthorizedError
8519
+ */
8520
+ 401: UnauthorizedError;
8521
+ };
8522
+ export type V2IntegrationListError = V2IntegrationListErrors[keyof V2IntegrationListErrors];
8523
+ export type V2IntegrationListResponses = {
8524
+ /**
8525
+ * Success
8526
+ */
8527
+ 200: {
8528
+ location: LocationInfo;
8529
+ data: Array<IntegrationInfo>;
8530
+ };
8531
+ };
8532
+ export type V2IntegrationListResponse = V2IntegrationListResponses[keyof V2IntegrationListResponses];
8533
+ export type V2IntegrationGetData = {
8534
+ body?: never;
8535
+ path: {
8536
+ integrationID: string;
8537
+ };
8538
+ query?: {
8539
+ location?: {
8540
+ directory?: string;
8541
+ workspace?: string;
8542
+ };
8543
+ };
8544
+ url: "/api/integration/{integrationID}";
8545
+ };
8546
+ export type V2IntegrationGetErrors = {
8547
+ /**
8548
+ * InvalidRequestError
8549
+ */
8550
+ 400: InvalidRequestError;
8551
+ /**
8552
+ * UnauthorizedError
8553
+ */
8554
+ 401: UnauthorizedError;
8555
+ };
8556
+ export type V2IntegrationGetError = V2IntegrationGetErrors[keyof V2IntegrationGetErrors];
8557
+ export type V2IntegrationGetResponses = {
8558
+ /**
8559
+ * Success
8560
+ */
8561
+ 200: {
8562
+ location: LocationInfo;
8563
+ data: IntegrationInfo;
8564
+ };
8565
+ };
8566
+ export type V2IntegrationGetResponse = V2IntegrationGetResponses[keyof V2IntegrationGetResponses];
8567
+ export type V2IntegrationConnectKeyData = {
8568
+ body: {
8569
+ key: string;
8570
+ label?: string;
8571
+ };
8572
+ path: {
8573
+ integrationID: string;
8574
+ };
8575
+ query?: {
8576
+ location?: {
8577
+ directory?: string;
8578
+ workspace?: string;
8579
+ };
8580
+ };
8581
+ url: "/api/integration/{integrationID}/connect/key";
8582
+ };
8583
+ export type V2IntegrationConnectKeyErrors = {
8584
+ /**
8585
+ * InvalidRequestError
8586
+ */
8587
+ 400: InvalidRequestError;
8588
+ /**
8589
+ * UnauthorizedError
8590
+ */
8591
+ 401: UnauthorizedError;
8592
+ };
8593
+ export type V2IntegrationConnectKeyError = V2IntegrationConnectKeyErrors[keyof V2IntegrationConnectKeyErrors];
8594
+ export type V2IntegrationConnectKeyResponses = {
8595
+ /**
8596
+ * <No Content>
8597
+ */
8598
+ 204: void;
8599
+ };
8600
+ export type V2IntegrationConnectKeyResponse = V2IntegrationConnectKeyResponses[keyof V2IntegrationConnectKeyResponses];
8601
+ export type V2IntegrationConnectOauthData = {
8602
+ body: {
8603
+ methodID: string;
8604
+ inputs: {
8605
+ [key: string]: string;
8606
+ };
8607
+ label?: string;
8608
+ };
8609
+ path: {
8610
+ integrationID: string;
8611
+ };
8612
+ query?: {
8613
+ location?: {
8614
+ directory?: string;
8615
+ workspace?: string;
8616
+ };
8617
+ };
8618
+ url: "/api/integration/{integrationID}/connect/oauth";
8619
+ };
8620
+ export type V2IntegrationConnectOauthErrors = {
8621
+ /**
8622
+ * InvalidRequestError
8623
+ */
8624
+ 400: InvalidRequestError;
8625
+ /**
8626
+ * UnauthorizedError
8627
+ */
8628
+ 401: UnauthorizedError;
8629
+ };
8630
+ export type V2IntegrationConnectOauthError = V2IntegrationConnectOauthErrors[keyof V2IntegrationConnectOauthErrors];
8631
+ export type V2IntegrationConnectOauthResponses = {
8632
+ /**
8633
+ * Success
8634
+ */
8635
+ 200: {
8636
+ location: LocationInfo;
8637
+ data: IntegrationAttempt;
8638
+ };
8639
+ };
8640
+ export type V2IntegrationConnectOauthResponse = V2IntegrationConnectOauthResponses[keyof V2IntegrationConnectOauthResponses];
8641
+ export type V2IntegrationAttemptCancelData = {
8642
+ body?: never;
8643
+ path: {
8644
+ attemptID: string;
8645
+ };
8646
+ query?: {
8647
+ location?: {
8648
+ directory?: string;
8649
+ workspace?: string;
8650
+ };
8651
+ };
8652
+ url: "/api/integration/attempt/{attemptID}";
8653
+ };
8654
+ export type V2IntegrationAttemptCancelErrors = {
8655
+ /**
8656
+ * InvalidRequestError
8657
+ */
8658
+ 400: InvalidRequestError;
8659
+ /**
8660
+ * UnauthorizedError
8661
+ */
8662
+ 401: UnauthorizedError;
8663
+ };
8664
+ export type V2IntegrationAttemptCancelError = V2IntegrationAttemptCancelErrors[keyof V2IntegrationAttemptCancelErrors];
8665
+ export type V2IntegrationAttemptCancelResponses = {
8666
+ /**
8667
+ * <No Content>
8668
+ */
8669
+ 204: void;
8670
+ };
8671
+ export type V2IntegrationAttemptCancelResponse = V2IntegrationAttemptCancelResponses[keyof V2IntegrationAttemptCancelResponses];
8672
+ export type V2IntegrationAttemptStatusData = {
8673
+ body?: never;
8674
+ path: {
8675
+ attemptID: string;
8676
+ };
8677
+ query?: {
8678
+ location?: {
8679
+ directory?: string;
8680
+ workspace?: string;
8681
+ };
8682
+ };
8683
+ url: "/api/integration/attempt/{attemptID}";
8684
+ };
8685
+ export type V2IntegrationAttemptStatusErrors = {
8686
+ /**
8687
+ * InvalidRequestError
8688
+ */
8689
+ 400: InvalidRequestError;
8690
+ /**
8691
+ * UnauthorizedError
8692
+ */
8693
+ 401: UnauthorizedError;
8694
+ };
8695
+ export type V2IntegrationAttemptStatusError = V2IntegrationAttemptStatusErrors[keyof V2IntegrationAttemptStatusErrors];
8696
+ export type V2IntegrationAttemptStatusResponses = {
8697
+ /**
8698
+ * Success
8699
+ */
8700
+ 200: {
8701
+ location: LocationInfo;
8702
+ data: {
8703
+ status: "pending";
8704
+ time: {
8705
+ created: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
8706
+ expires: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
8707
+ };
8708
+ } | {
8709
+ status: "complete";
8710
+ time: {
8711
+ created: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
8712
+ expires: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
8713
+ };
8714
+ } | {
8715
+ status: "failed";
8716
+ message: string;
8717
+ time: {
8718
+ created: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
8719
+ expires: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
8720
+ };
8721
+ } | {
8722
+ status: "expired";
8723
+ time: {
8724
+ created: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
8725
+ expires: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
8726
+ };
8727
+ };
8728
+ };
8729
+ };
8730
+ export type V2IntegrationAttemptStatusResponse = V2IntegrationAttemptStatusResponses[keyof V2IntegrationAttemptStatusResponses];
8731
+ export type V2IntegrationAttemptCompleteData = {
8732
+ body: {
8733
+ code?: string;
8734
+ };
8735
+ path: {
8736
+ attemptID: string;
8737
+ };
8738
+ query?: {
8739
+ location?: {
8740
+ directory?: string;
8741
+ workspace?: string;
8742
+ };
8743
+ };
8744
+ url: "/api/integration/attempt/{attemptID}/complete";
8745
+ };
8746
+ export type V2IntegrationAttemptCompleteErrors = {
8747
+ /**
8748
+ * InvalidRequestError
8749
+ */
8750
+ 400: InvalidRequestError;
8751
+ /**
8752
+ * UnauthorizedError
8753
+ */
8754
+ 401: UnauthorizedError;
8755
+ };
8756
+ export type V2IntegrationAttemptCompleteError = V2IntegrationAttemptCompleteErrors[keyof V2IntegrationAttemptCompleteErrors];
8757
+ export type V2IntegrationAttemptCompleteResponses = {
8758
+ /**
8759
+ * <No Content>
8760
+ */
8761
+ 204: void;
8762
+ };
8763
+ export type V2IntegrationAttemptCompleteResponse = V2IntegrationAttemptCompleteResponses[keyof V2IntegrationAttemptCompleteResponses];
8764
+ export type V2CredentialRemoveData = {
8765
+ body?: never;
8766
+ path: {
8767
+ credentialID: string;
8768
+ };
8769
+ query?: never;
8770
+ url: "/api/credential/{credentialID}";
8771
+ };
8772
+ export type V2CredentialRemoveErrors = {
8773
+ /**
8774
+ * InvalidRequestError
8775
+ */
8776
+ 400: InvalidRequestError;
8777
+ /**
8778
+ * UnauthorizedError
8779
+ */
8780
+ 401: UnauthorizedError;
8781
+ };
8782
+ export type V2CredentialRemoveError = V2CredentialRemoveErrors[keyof V2CredentialRemoveErrors];
8783
+ export type V2CredentialRemoveResponses = {
8784
+ /**
8785
+ * <No Content>
8786
+ */
8787
+ 204: void;
8788
+ };
8789
+ export type V2CredentialRemoveResponse = V2CredentialRemoveResponses[keyof V2CredentialRemoveResponses];
8790
+ export type V2CredentialUpdateData = {
8791
+ body: {
8792
+ label: string;
8793
+ };
8794
+ path: {
8795
+ credentialID: string;
8796
+ };
8797
+ query?: never;
8798
+ url: "/api/credential/{credentialID}";
8799
+ };
8800
+ export type V2CredentialUpdateErrors = {
8801
+ /**
8802
+ * InvalidRequestError
8803
+ */
8804
+ 400: InvalidRequestError;
8805
+ /**
8806
+ * UnauthorizedError
8807
+ */
8808
+ 401: UnauthorizedError;
8809
+ };
8810
+ export type V2CredentialUpdateError = V2CredentialUpdateErrors[keyof V2CredentialUpdateErrors];
8811
+ export type V2CredentialUpdateResponses = {
8812
+ /**
8813
+ * <No Content>
8814
+ */
8815
+ 204: void;
8816
+ };
8817
+ export type V2CredentialUpdateResponse = V2CredentialUpdateResponses[keyof V2CredentialUpdateResponses];
8444
8818
  export type V2PermissionRequestListData = {
8445
8819
  body?: never;
8446
8820
  path?: never;
@@ -8596,14 +8970,13 @@ export type V2SessionPermissionReplyResponse = V2SessionPermissionReplyResponses
8596
8970
  export type V2FsReadData = {
8597
8971
  body?: never;
8598
8972
  path?: never;
8599
- query: {
8973
+ query?: {
8600
8974
  location?: {
8601
8975
  directory?: string;
8602
8976
  workspace?: string;
8603
8977
  };
8604
- path: string;
8605
8978
  };
8606
- url: "/api/fs/read";
8979
+ url: "/api/fs/read/*";
8607
8980
  };
8608
8981
  export type V2FsReadErrors = {
8609
8982
  /**
@@ -8620,10 +8993,7 @@ export type V2FsReadResponses = {
8620
8993
  /**
8621
8994
  * Success
8622
8995
  */
8623
- 200: {
8624
- location: LocationInfo;
8625
- data: FileSystemContent;
8626
- };
8996
+ 200: Blob | File;
8627
8997
  };
8628
8998
  export type V2FsReadResponse = V2FsReadResponses[keyof V2FsReadResponses];
8629
8999
  export type V2FsListData = {
@@ -8819,6 +9189,38 @@ export type V2QuestionRequestListResponses = {
8819
9189
  };
8820
9190
  };
8821
9191
  export type V2QuestionRequestListResponse = V2QuestionRequestListResponses[keyof V2QuestionRequestListResponses];
9192
+ export type V2SessionQuestionListData = {
9193
+ body?: never;
9194
+ path: {
9195
+ sessionID: string;
9196
+ };
9197
+ query?: never;
9198
+ url: "/api/session/{sessionID}/question";
9199
+ };
9200
+ export type V2SessionQuestionListErrors = {
9201
+ /**
9202
+ * InvalidRequestError
9203
+ */
9204
+ 400: InvalidRequestError;
9205
+ /**
9206
+ * UnauthorizedError
9207
+ */
9208
+ 401: UnauthorizedError;
9209
+ /**
9210
+ * SessionNotFoundError
9211
+ */
9212
+ 404: SessionNotFoundError;
9213
+ };
9214
+ export type V2SessionQuestionListError = V2SessionQuestionListErrors[keyof V2SessionQuestionListErrors];
9215
+ export type V2SessionQuestionListResponses = {
9216
+ /**
9217
+ * Success
9218
+ */
9219
+ 200: {
9220
+ data: Array<QuestionV2Request>;
9221
+ };
9222
+ };
9223
+ export type V2SessionQuestionListResponse = V2SessionQuestionListResponses[keyof V2SessionQuestionListResponses];
8822
9224
  export type V2SessionQuestionReplyData = {
8823
9225
  body: QuestionV2Reply;
8824
9226
  path: {
@@ -8913,6 +9315,94 @@ export type V2ReferenceListResponses = {
8913
9315
  };
8914
9316
  };
8915
9317
  export type V2ReferenceListResponse = V2ReferenceListResponses[keyof V2ReferenceListResponses];
9318
+ export type V2ProjectCopyRemoveData = {
9319
+ body?: {
9320
+ directory: string;
9321
+ force: boolean;
9322
+ };
9323
+ path: {
9324
+ projectID: string;
9325
+ };
9326
+ query?: {
9327
+ location?: {
9328
+ directory?: string;
9329
+ workspace?: string;
9330
+ };
9331
+ };
9332
+ url: "/experimental/project/{projectID}/copy";
9333
+ };
9334
+ export type V2ProjectCopyRemoveErrors = {
9335
+ /**
9336
+ * ProjectCopyError | InvalidRequestError
9337
+ */
9338
+ 400: ProjectCopyError | InvalidRequestError;
9339
+ };
9340
+ export type V2ProjectCopyRemoveError = V2ProjectCopyRemoveErrors[keyof V2ProjectCopyRemoveErrors];
9341
+ export type V2ProjectCopyRemoveResponses = {
9342
+ /**
9343
+ * <No Content>
9344
+ */
9345
+ 204: void;
9346
+ };
9347
+ export type V2ProjectCopyRemoveResponse = V2ProjectCopyRemoveResponses[keyof V2ProjectCopyRemoveResponses];
9348
+ export type V2ProjectCopyCreateData = {
9349
+ body?: {
9350
+ strategy: string;
9351
+ directory: string;
9352
+ name?: string;
9353
+ };
9354
+ path: {
9355
+ projectID: string;
9356
+ };
9357
+ query?: {
9358
+ location?: {
9359
+ directory?: string;
9360
+ workspace?: string;
9361
+ };
9362
+ };
9363
+ url: "/experimental/project/{projectID}/copy";
9364
+ };
9365
+ export type V2ProjectCopyCreateErrors = {
9366
+ /**
9367
+ * ProjectCopyError | InvalidRequestError
9368
+ */
9369
+ 400: ProjectCopyError | InvalidRequestError;
9370
+ };
9371
+ export type V2ProjectCopyCreateError = V2ProjectCopyCreateErrors[keyof V2ProjectCopyCreateErrors];
9372
+ export type V2ProjectCopyCreateResponses = {
9373
+ /**
9374
+ * ProjectCopy.Copy
9375
+ */
9376
+ 200: ProjectCopyCopy;
9377
+ };
9378
+ export type V2ProjectCopyCreateResponse = V2ProjectCopyCreateResponses[keyof V2ProjectCopyCreateResponses];
9379
+ export type V2ProjectCopyRefreshData = {
9380
+ body?: never;
9381
+ path: {
9382
+ projectID: string;
9383
+ };
9384
+ query?: {
9385
+ location?: {
9386
+ directory?: string;
9387
+ workspace?: string;
9388
+ };
9389
+ };
9390
+ url: "/experimental/project/{projectID}/copy/refresh";
9391
+ };
9392
+ export type V2ProjectCopyRefreshErrors = {
9393
+ /**
9394
+ * ProjectCopyError | InvalidRequestError
9395
+ */
9396
+ 400: ProjectCopyError | InvalidRequestError;
9397
+ };
9398
+ export type V2ProjectCopyRefreshError = V2ProjectCopyRefreshErrors[keyof V2ProjectCopyRefreshErrors];
9399
+ export type V2ProjectCopyRefreshResponses = {
9400
+ /**
9401
+ * <No Content>
9402
+ */
9403
+ 204: void;
9404
+ };
9405
+ export type V2ProjectCopyRefreshResponse = V2ProjectCopyRefreshResponses[keyof V2ProjectCopyRefreshResponses];
8916
9406
  export type PtyConnectData = {
8917
9407
  body?: never;
8918
9408
  path: {