@opencode-ai/sdk 1.17.4 → 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 | EventCredentialAdded | EventCredentialRemoved | EventCredentialSwitched | 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 | EventConnectorUpdated | 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;
@@ -500,6 +500,24 @@ export type Todo = {
500
500
  */
501
501
  priority: string;
502
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
+ };
503
521
  export type QuestionOption = {
504
522
  /**
505
523
  * Display text (1-5 words, concise)
@@ -531,24 +549,6 @@ export type QuestionTool = {
531
549
  callID: string;
532
550
  };
533
551
  export type QuestionAnswer = Array<string>;
534
- export type SessionStatus = {
535
- type: "idle";
536
- } | {
537
- type: "retry";
538
- attempt: number;
539
- message: string;
540
- action?: {
541
- reason: string;
542
- provider: string;
543
- title: string;
544
- message: string;
545
- label: string;
546
- link?: string;
547
- };
548
- next: number;
549
- } | {
550
- type: "busy";
551
- };
552
552
  export type GlobalEvent = {
553
553
  directory: string;
554
554
  project?: string;
@@ -559,26 +559,6 @@ export type GlobalEvent = {
559
559
  properties: {
560
560
  [key: string]: unknown;
561
561
  };
562
- } | {
563
- id: string;
564
- type: "credential.added";
565
- properties: {
566
- credential: CredentialInfo;
567
- };
568
- } | {
569
- id: string;
570
- type: "credential.removed";
571
- properties: {
572
- credential: CredentialInfo;
573
- };
574
- } | {
575
- id: string;
576
- type: "credential.switched";
577
- properties: {
578
- connectorID: string;
579
- from?: string;
580
- to?: string;
581
- };
582
562
  } | {
583
563
  id: string;
584
564
  type: "plugin.added";
@@ -1047,7 +1027,7 @@ export type GlobalEvent = {
1047
1027
  };
1048
1028
  } | {
1049
1029
  id: string;
1050
- type: "connector.updated";
1030
+ type: "integration.updated";
1051
1031
  properties: {
1052
1032
  [key: string]: unknown;
1053
1033
  };
@@ -1079,6 +1059,12 @@ export type GlobalEvent = {
1079
1059
  properties: {
1080
1060
  [key: string]: unknown;
1081
1061
  };
1062
+ } | {
1063
+ id: string;
1064
+ type: "project.directories.updated";
1065
+ properties: {
1066
+ projectID: string;
1067
+ };
1082
1068
  } | {
1083
1069
  id: string;
1084
1070
  type: "file.watcher.updated";
@@ -1228,12 +1214,6 @@ export type GlobalEvent = {
1228
1214
  arguments: string;
1229
1215
  messageID: string;
1230
1216
  };
1231
- } | {
1232
- id: string;
1233
- type: "project.directories.updated";
1234
- properties: {
1235
- projectID: string;
1236
- };
1237
1217
  } | {
1238
1218
  id: string;
1239
1219
  type: "project.updated";
@@ -1262,9 +1242,16 @@ export type GlobalEvent = {
1262
1242
  };
1263
1243
  } | {
1264
1244
  id: string;
1265
- type: "vcs.branch.updated";
1245
+ type: "session.status";
1266
1246
  properties: {
1267
- branch?: string;
1247
+ sessionID: string;
1248
+ status: SessionStatus;
1249
+ };
1250
+ } | {
1251
+ id: string;
1252
+ type: "session.idle";
1253
+ properties: {
1254
+ sessionID: string;
1268
1255
  };
1269
1256
  } | {
1270
1257
  id: string;
@@ -1295,54 +1282,47 @@ export type GlobalEvent = {
1295
1282
  };
1296
1283
  } | {
1297
1284
  id: string;
1298
- type: "session.status";
1299
- properties: {
1300
- sessionID: string;
1301
- status: SessionStatus;
1302
- };
1303
- } | {
1304
- id: string;
1305
- type: "session.idle";
1285
+ type: "session.compacted";
1306
1286
  properties: {
1307
1287
  sessionID: string;
1308
1288
  };
1309
1289
  } | {
1310
1290
  id: string;
1311
- type: "session.compacted";
1291
+ type: "vcs.branch.updated";
1312
1292
  properties: {
1313
- sessionID: string;
1293
+ branch?: string;
1314
1294
  };
1315
1295
  } | {
1316
1296
  id: string;
1317
- type: "worktree.ready";
1297
+ type: "workspace.ready";
1318
1298
  properties: {
1319
1299
  name: string;
1320
- branch?: string;
1321
1300
  };
1322
1301
  } | {
1323
1302
  id: string;
1324
- type: "worktree.failed";
1303
+ type: "workspace.failed";
1325
1304
  properties: {
1326
1305
  message: string;
1327
1306
  };
1328
1307
  } | {
1329
1308
  id: string;
1330
- type: "workspace.ready";
1309
+ type: "workspace.status";
1331
1310
  properties: {
1332
- name: string;
1311
+ workspaceID: string;
1312
+ status: "connected" | "connecting" | "disconnected" | "error";
1333
1313
  };
1334
1314
  } | {
1335
1315
  id: string;
1336
- type: "workspace.failed";
1316
+ type: "worktree.ready";
1337
1317
  properties: {
1338
- message: string;
1318
+ name: string;
1319
+ branch?: string;
1339
1320
  };
1340
1321
  } | {
1341
1322
  id: string;
1342
- type: "workspace.status";
1323
+ type: "worktree.failed";
1343
1324
  properties: {
1344
- workspaceID: string;
1345
- status: "connected" | "connecting" | "disconnected" | "error";
1325
+ message: string;
1346
1326
  };
1347
1327
  } | {
1348
1328
  id: string;
@@ -2059,13 +2039,6 @@ export type ProjectNotFoundError = {
2059
2039
  projectID: string;
2060
2040
  message: string;
2061
2041
  };
2062
- export type ProjectCopyError = {
2063
- name: "ProjectCopyError";
2064
- data: {
2065
- message: string;
2066
- forceRequired?: boolean;
2067
- };
2068
- };
2069
2042
  export type PtyNotFoundError = {
2070
2043
  _tag: "PtyNotFoundError";
2071
2044
  ptyID: string;
@@ -2305,6 +2278,13 @@ export type ProviderNotFoundError = {
2305
2278
  providerID: string;
2306
2279
  message: string;
2307
2280
  };
2281
+ export type ProjectCopyError = {
2282
+ name: "ProjectCopyError";
2283
+ data: {
2284
+ message: string;
2285
+ forceRequired?: boolean;
2286
+ };
2287
+ };
2308
2288
  export type EffectHttpApiErrorForbidden = {
2309
2289
  _tag: "Forbidden";
2310
2290
  };
@@ -2345,30 +2325,6 @@ export type EventTuiSessionSelect2 = {
2345
2325
  export type MoveSessionDestination = {
2346
2326
  directory: string;
2347
2327
  };
2348
- export type CredentialOAuth = {
2349
- type: "oauth";
2350
- refresh: string;
2351
- access: string;
2352
- expires: number;
2353
- metadata?: {
2354
- [key: string]: string;
2355
- };
2356
- };
2357
- export type CredentialKey = {
2358
- type: "key";
2359
- key: string;
2360
- metadata?: {
2361
- [key: string]: string;
2362
- };
2363
- };
2364
- export type CredentialValue = CredentialOAuth | CredentialKey;
2365
- export type CredentialInfo = {
2366
- id: string;
2367
- connectorID: string;
2368
- methodID: string;
2369
- label: string;
2370
- value: CredentialValue;
2371
- };
2372
2328
  export type ModelV2Info = {
2373
2329
  id: string;
2374
2330
  providerID: string;
@@ -3182,11 +3138,8 @@ export type ConfigV2ExperimentalPolicy = {
3182
3138
  };
3183
3139
  export type ProjectDirectories = Array<{
3184
3140
  directory: string;
3185
- type: "main" | "root" | "git_worktree";
3141
+ strategy?: string;
3186
3142
  }>;
3187
- export type ProjectCopyCopy = {
3188
- directory: string;
3189
- };
3190
3143
  export type LocationInfo = {
3191
3144
  directory: string;
3192
3145
  workspaceID?: string;
@@ -3505,19 +3458,19 @@ export type ProviderV2Info = {
3505
3458
  };
3506
3459
  };
3507
3460
  };
3508
- export type ConnectorWhen = {
3461
+ export type IntegrationWhen = {
3509
3462
  key: string;
3510
3463
  op: "eq" | "neq";
3511
3464
  value: string;
3512
3465
  };
3513
- export type ConnectorTextPrompt = {
3466
+ export type IntegrationTextPrompt = {
3514
3467
  type: "text";
3515
3468
  key: string;
3516
3469
  message: string;
3517
3470
  placeholder?: string;
3518
- when?: ConnectorWhen;
3471
+ when?: IntegrationWhen;
3519
3472
  };
3520
- export type ConnectorSelectPrompt = {
3473
+ export type IntegrationSelectPrompt = {
3521
3474
  type: "select";
3522
3475
  key: string;
3523
3476
  message: string;
@@ -3526,26 +3479,39 @@ export type ConnectorSelectPrompt = {
3526
3479
  value: string;
3527
3480
  hint?: string;
3528
3481
  }>;
3529
- when?: ConnectorWhen;
3482
+ when?: IntegrationWhen;
3530
3483
  };
3531
- export type ConnectorOAuthMethod = {
3484
+ export type IntegrationOAuthMethod = {
3532
3485
  id: string;
3533
3486
  type: "oauth";
3534
3487
  label: string;
3535
- prompts?: Array<ConnectorTextPrompt | ConnectorSelectPrompt>;
3488
+ prompts?: Array<IntegrationTextPrompt | IntegrationSelectPrompt>;
3536
3489
  };
3537
- export type ConnectorKeyMethod = {
3538
- id: string;
3490
+ export type IntegrationKeyMethod = {
3539
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;
3540
3501
  label: string;
3541
- prompts?: Array<ConnectorTextPrompt | ConnectorSelectPrompt>;
3542
3502
  };
3543
- export type ConnectorInfo = {
3503
+ export type ConnectionEnvInfo = {
3504
+ type: "env";
3505
+ name: string;
3506
+ };
3507
+ export type ConnectionInfo = ConnectionCredentialInfo | ConnectionEnvInfo;
3508
+ export type IntegrationInfo = {
3544
3509
  id: string;
3545
3510
  name: string;
3546
- methods: Array<ConnectorOAuthMethod | ConnectorKeyMethod>;
3511
+ methods: Array<IntegrationOAuthMethod | IntegrationKeyMethod | IntegrationEnvMethod>;
3512
+ connections: Array<ConnectionInfo>;
3547
3513
  };
3548
- export type ConnectorAttempt = {
3514
+ export type IntegrationAttempt = {
3549
3515
  attemptID: string;
3550
3516
  url: string;
3551
3517
  instructions: string;
@@ -3631,6 +3597,9 @@ export type ReferenceInfo = {
3631
3597
  hidden?: boolean;
3632
3598
  source: ReferenceLocalSource | ReferenceGitSource;
3633
3599
  };
3600
+ export type ProjectCopyCopy = {
3601
+ directory: string;
3602
+ };
3634
3603
  export type EventModelsDevRefreshed = {
3635
3604
  id: string;
3636
3605
  type: "models-dev.refreshed";
@@ -3638,29 +3607,6 @@ export type EventModelsDevRefreshed = {
3638
3607
  [key: string]: unknown;
3639
3608
  };
3640
3609
  };
3641
- export type EventCredentialAdded = {
3642
- id: string;
3643
- type: "credential.added";
3644
- properties: {
3645
- credential: CredentialInfo;
3646
- };
3647
- };
3648
- export type EventCredentialRemoved = {
3649
- id: string;
3650
- type: "credential.removed";
3651
- properties: {
3652
- credential: CredentialInfo;
3653
- };
3654
- };
3655
- export type EventCredentialSwitched = {
3656
- id: string;
3657
- type: "credential.switched";
3658
- properties: {
3659
- connectorID: string;
3660
- from?: string;
3661
- to?: string;
3662
- };
3663
- };
3664
3610
  export type EventPluginAdded = {
3665
3611
  id: string;
3666
3612
  type: "plugin.added";
@@ -4266,9 +4212,9 @@ export type EventFileEdited = {
4266
4212
  file: string;
4267
4213
  };
4268
4214
  };
4269
- export type EventConnectorUpdated = {
4215
+ export type EventIntegrationUpdated = {
4270
4216
  id: string;
4271
- type: "connector.updated";
4217
+ type: "integration.updated";
4272
4218
  properties: {
4273
4219
  [key: string]: unknown;
4274
4220
  };
@@ -4304,6 +4250,13 @@ export type EventReferenceUpdated = {
4304
4250
  [key: string]: unknown;
4305
4251
  };
4306
4252
  };
4253
+ export type EventProjectDirectoriesUpdated = {
4254
+ id: string;
4255
+ type: "project.directories.updated";
4256
+ properties: {
4257
+ projectID: string;
4258
+ };
4259
+ };
4307
4260
  export type EventFileWatcherUpdated = {
4308
4261
  id: string;
4309
4262
  type: "file.watcher.updated";
@@ -4438,13 +4391,6 @@ export type EventCommandExecuted = {
4438
4391
  messageID: string;
4439
4392
  };
4440
4393
  };
4441
- export type EventProjectDirectoriesUpdated = {
4442
- id: string;
4443
- type: "project.directories.updated";
4444
- properties: {
4445
- projectID: string;
4446
- };
4447
- };
4448
4394
  export type EventProjectUpdated = {
4449
4395
  id: string;
4450
4396
  type: "project.updated";
@@ -4472,11 +4418,19 @@ export type EventProjectUpdated = {
4472
4418
  sandboxes: Array<string>;
4473
4419
  };
4474
4420
  };
4475
- export type EventVcsBranchUpdated = {
4421
+ export type EventSessionStatus = {
4476
4422
  id: string;
4477
- type: "vcs.branch.updated";
4423
+ type: "session.status";
4478
4424
  properties: {
4479
- 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;
4480
4434
  };
4481
4435
  };
4482
4436
  export type EventQuestionAsked = {
@@ -4509,21 +4463,6 @@ export type EventQuestionRejected = {
4509
4463
  requestID: string;
4510
4464
  };
4511
4465
  };
4512
- export type EventSessionStatus = {
4513
- id: string;
4514
- type: "session.status";
4515
- properties: {
4516
- sessionID: string;
4517
- status: SessionStatus;
4518
- };
4519
- };
4520
- export type EventSessionIdle = {
4521
- id: string;
4522
- type: "session.idle";
4523
- properties: {
4524
- sessionID: string;
4525
- };
4526
- };
4527
4466
  export type EventSessionCompacted = {
4528
4467
  id: string;
4529
4468
  type: "session.compacted";
@@ -4531,21 +4470,13 @@ export type EventSessionCompacted = {
4531
4470
  sessionID: string;
4532
4471
  };
4533
4472
  };
4534
- export type EventWorktreeReady = {
4473
+ export type EventVcsBranchUpdated = {
4535
4474
  id: string;
4536
- type: "worktree.ready";
4475
+ type: "vcs.branch.updated";
4537
4476
  properties: {
4538
- name: string;
4539
4477
  branch?: string;
4540
4478
  };
4541
4479
  };
4542
- export type EventWorktreeFailed = {
4543
- id: string;
4544
- type: "worktree.failed";
4545
- properties: {
4546
- message: string;
4547
- };
4548
- };
4549
4480
  export type EventWorkspaceReady = {
4550
4481
  id: string;
4551
4482
  type: "workspace.ready";
@@ -4568,6 +4499,21 @@ export type EventWorkspaceStatus = {
4568
4499
  status: "connected" | "connecting" | "disconnected" | "error";
4569
4500
  };
4570
4501
  };
4502
+ export type EventWorktreeReady = {
4503
+ id: string;
4504
+ type: "worktree.ready";
4505
+ properties: {
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
+ };
4571
4517
  export type EventServerConnected = {
4572
4518
  id: string;
4573
4519
  type: "server.connected";
@@ -6037,87 +5983,35 @@ export type ProjectDirectoriesResponses = {
6037
5983
  200: ProjectDirectories;
6038
5984
  };
6039
5985
  export type ProjectDirectoriesResponse = ProjectDirectoriesResponses[keyof ProjectDirectoriesResponses];
6040
- export type ExperimentalProjectCopyRemoveData = {
5986
+ export type ExperimentalProjectCopyGenerateNameData = {
6041
5987
  body?: {
6042
- directory: string;
6043
- force: boolean;
6044
- };
6045
- path: {
6046
- projectID: string;
6047
- };
6048
- query?: {
6049
- workspace?: string;
6050
- };
6051
- url: "/experimental/project/{projectID}/copy";
6052
- };
6053
- export type ExperimentalProjectCopyRemoveErrors = {
6054
- /**
6055
- * ProjectCopyError | InvalidRequestError
6056
- */
6057
- 400: ProjectCopyError | InvalidRequestError;
6058
- };
6059
- export type ExperimentalProjectCopyRemoveError = ExperimentalProjectCopyRemoveErrors[keyof ExperimentalProjectCopyRemoveErrors];
6060
- export type ExperimentalProjectCopyRemoveResponses = {
6061
- /**
6062
- * Project copy removed
6063
- */
6064
- 204: void;
6065
- };
6066
- export type ExperimentalProjectCopyRemoveResponse = ExperimentalProjectCopyRemoveResponses[keyof ExperimentalProjectCopyRemoveResponses];
6067
- export type ExperimentalProjectCopyCreateData = {
6068
- body?: {
6069
- strategy: "git_worktree";
6070
- directory: string;
6071
- name?: string;
6072
5988
  context?: string;
6073
5989
  };
6074
5990
  path: {
6075
5991
  projectID: string;
6076
5992
  };
6077
- query?: {
6078
- workspace?: string;
6079
- };
6080
- url: "/experimental/project/{projectID}/copy";
6081
- };
6082
- export type ExperimentalProjectCopyCreateErrors = {
6083
- /**
6084
- * ProjectCopyError | InvalidRequestError
6085
- */
6086
- 400: ProjectCopyError | InvalidRequestError;
6087
- };
6088
- export type ExperimentalProjectCopyCreateError = ExperimentalProjectCopyCreateErrors[keyof ExperimentalProjectCopyCreateErrors];
6089
- export type ExperimentalProjectCopyCreateResponses = {
6090
- /**
6091
- * Project copy created
6092
- */
6093
- 200: ProjectCopyCopy;
6094
- };
6095
- export type ExperimentalProjectCopyCreateResponse = ExperimentalProjectCopyCreateResponses[keyof ExperimentalProjectCopyCreateResponses];
6096
- export type ExperimentalProjectCopyRefreshData = {
6097
- body?: never;
6098
- path: {
6099
- projectID: string;
6100
- };
6101
5993
  query?: {
6102
5994
  directory?: string;
6103
5995
  workspace?: string;
6104
5996
  };
6105
- url: "/experimental/project/{projectID}/copy/refresh";
5997
+ url: "/experimental/project/{projectID}/copy/generate-name";
6106
5998
  };
6107
- export type ExperimentalProjectCopyRefreshErrors = {
5999
+ export type ExperimentalProjectCopyGenerateNameErrors = {
6108
6000
  /**
6109
- * ProjectCopyError | InvalidRequestError
6001
+ * Bad request
6110
6002
  */
6111
- 400: ProjectCopyError | InvalidRequestError;
6003
+ 400: BadRequestError;
6112
6004
  };
6113
- export type ExperimentalProjectCopyRefreshError = ExperimentalProjectCopyRefreshErrors[keyof ExperimentalProjectCopyRefreshErrors];
6114
- export type ExperimentalProjectCopyRefreshResponses = {
6005
+ export type ExperimentalProjectCopyGenerateNameError = ExperimentalProjectCopyGenerateNameErrors[keyof ExperimentalProjectCopyGenerateNameErrors];
6006
+ export type ExperimentalProjectCopyGenerateNameResponses = {
6115
6007
  /**
6116
- * Project copies refreshed
6008
+ * Success
6117
6009
  */
6118
- 204: void;
6010
+ 200: {
6011
+ name: string;
6012
+ };
6119
6013
  };
6120
- export type ExperimentalProjectCopyRefreshResponse = ExperimentalProjectCopyRefreshResponses[keyof ExperimentalProjectCopyRefreshResponses];
6014
+ export type ExperimentalProjectCopyGenerateNameResponse = ExperimentalProjectCopyGenerateNameResponses[keyof ExperimentalProjectCopyGenerateNameResponses];
6121
6015
  export type PtyShellsData = {
6122
6016
  body?: never;
6123
6017
  path?: never;
@@ -8604,7 +8498,7 @@ export type V2ProviderGetResponses = {
8604
8498
  };
8605
8499
  };
8606
8500
  export type V2ProviderGetResponse = V2ProviderGetResponses[keyof V2ProviderGetResponses];
8607
- export type V2ConnectorListData = {
8501
+ export type V2IntegrationListData = {
8608
8502
  body?: never;
8609
8503
  path?: never;
8610
8504
  query?: {
@@ -8613,9 +8507,9 @@ export type V2ConnectorListData = {
8613
8507
  workspace?: string;
8614
8508
  };
8615
8509
  };
8616
- url: "/api/connector";
8510
+ url: "/api/integration";
8617
8511
  };
8618
- export type V2ConnectorListErrors = {
8512
+ export type V2IntegrationListErrors = {
8619
8513
  /**
8620
8514
  * InvalidRequestError
8621
8515
  */
@@ -8625,21 +8519,21 @@ export type V2ConnectorListErrors = {
8625
8519
  */
8626
8520
  401: UnauthorizedError;
8627
8521
  };
8628
- export type V2ConnectorListError = V2ConnectorListErrors[keyof V2ConnectorListErrors];
8629
- export type V2ConnectorListResponses = {
8522
+ export type V2IntegrationListError = V2IntegrationListErrors[keyof V2IntegrationListErrors];
8523
+ export type V2IntegrationListResponses = {
8630
8524
  /**
8631
8525
  * Success
8632
8526
  */
8633
8527
  200: {
8634
8528
  location: LocationInfo;
8635
- data: Array<ConnectorInfo>;
8529
+ data: Array<IntegrationInfo>;
8636
8530
  };
8637
8531
  };
8638
- export type V2ConnectorListResponse = V2ConnectorListResponses[keyof V2ConnectorListResponses];
8639
- export type V2ConnectorGetData = {
8532
+ export type V2IntegrationListResponse = V2IntegrationListResponses[keyof V2IntegrationListResponses];
8533
+ export type V2IntegrationGetData = {
8640
8534
  body?: never;
8641
8535
  path: {
8642
- connectorID: string;
8536
+ integrationID: string;
8643
8537
  };
8644
8538
  query?: {
8645
8539
  location?: {
@@ -8647,9 +8541,9 @@ export type V2ConnectorGetData = {
8647
8541
  workspace?: string;
8648
8542
  };
8649
8543
  };
8650
- url: "/api/connector/{connectorID}";
8544
+ url: "/api/integration/{integrationID}";
8651
8545
  };
8652
- export type V2ConnectorGetErrors = {
8546
+ export type V2IntegrationGetErrors = {
8653
8547
  /**
8654
8548
  * InvalidRequestError
8655
8549
  */
@@ -8659,28 +8553,24 @@ export type V2ConnectorGetErrors = {
8659
8553
  */
8660
8554
  401: UnauthorizedError;
8661
8555
  };
8662
- export type V2ConnectorGetError = V2ConnectorGetErrors[keyof V2ConnectorGetErrors];
8663
- export type V2ConnectorGetResponses = {
8556
+ export type V2IntegrationGetError = V2IntegrationGetErrors[keyof V2IntegrationGetErrors];
8557
+ export type V2IntegrationGetResponses = {
8664
8558
  /**
8665
8559
  * Success
8666
8560
  */
8667
8561
  200: {
8668
8562
  location: LocationInfo;
8669
- data: ConnectorInfo;
8563
+ data: IntegrationInfo;
8670
8564
  };
8671
8565
  };
8672
- export type V2ConnectorGetResponse = V2ConnectorGetResponses[keyof V2ConnectorGetResponses];
8673
- export type V2ConnectorConnectKeyData = {
8566
+ export type V2IntegrationGetResponse = V2IntegrationGetResponses[keyof V2IntegrationGetResponses];
8567
+ export type V2IntegrationConnectKeyData = {
8674
8568
  body: {
8675
- methodID: string;
8676
8569
  key: string;
8677
- inputs: {
8678
- [key: string]: string;
8679
- };
8680
8570
  label?: string;
8681
8571
  };
8682
8572
  path: {
8683
- connectorID: string;
8573
+ integrationID: string;
8684
8574
  };
8685
8575
  query?: {
8686
8576
  location?: {
@@ -8688,9 +8578,9 @@ export type V2ConnectorConnectKeyData = {
8688
8578
  workspace?: string;
8689
8579
  };
8690
8580
  };
8691
- url: "/api/connector/{connectorID}/connect/key";
8581
+ url: "/api/integration/{integrationID}/connect/key";
8692
8582
  };
8693
- export type V2ConnectorConnectKeyErrors = {
8583
+ export type V2IntegrationConnectKeyErrors = {
8694
8584
  /**
8695
8585
  * InvalidRequestError
8696
8586
  */
@@ -8700,15 +8590,15 @@ export type V2ConnectorConnectKeyErrors = {
8700
8590
  */
8701
8591
  401: UnauthorizedError;
8702
8592
  };
8703
- export type V2ConnectorConnectKeyError = V2ConnectorConnectKeyErrors[keyof V2ConnectorConnectKeyErrors];
8704
- export type V2ConnectorConnectKeyResponses = {
8593
+ export type V2IntegrationConnectKeyError = V2IntegrationConnectKeyErrors[keyof V2IntegrationConnectKeyErrors];
8594
+ export type V2IntegrationConnectKeyResponses = {
8705
8595
  /**
8706
8596
  * <No Content>
8707
8597
  */
8708
8598
  204: void;
8709
8599
  };
8710
- export type V2ConnectorConnectKeyResponse = V2ConnectorConnectKeyResponses[keyof V2ConnectorConnectKeyResponses];
8711
- export type V2ConnectorConnectOauthBeginData = {
8600
+ export type V2IntegrationConnectKeyResponse = V2IntegrationConnectKeyResponses[keyof V2IntegrationConnectKeyResponses];
8601
+ export type V2IntegrationConnectOauthData = {
8712
8602
  body: {
8713
8603
  methodID: string;
8714
8604
  inputs: {
@@ -8717,7 +8607,7 @@ export type V2ConnectorConnectOauthBeginData = {
8717
8607
  label?: string;
8718
8608
  };
8719
8609
  path: {
8720
- connectorID: string;
8610
+ integrationID: string;
8721
8611
  };
8722
8612
  query?: {
8723
8613
  location?: {
@@ -8725,9 +8615,9 @@ export type V2ConnectorConnectOauthBeginData = {
8725
8615
  workspace?: string;
8726
8616
  };
8727
8617
  };
8728
- url: "/api/connector/{connectorID}/connect/oauth";
8618
+ url: "/api/integration/{integrationID}/connect/oauth";
8729
8619
  };
8730
- export type V2ConnectorConnectOauthBeginErrors = {
8620
+ export type V2IntegrationConnectOauthErrors = {
8731
8621
  /**
8732
8622
  * InvalidRequestError
8733
8623
  */
@@ -8737,18 +8627,18 @@ export type V2ConnectorConnectOauthBeginErrors = {
8737
8627
  */
8738
8628
  401: UnauthorizedError;
8739
8629
  };
8740
- export type V2ConnectorConnectOauthBeginError = V2ConnectorConnectOauthBeginErrors[keyof V2ConnectorConnectOauthBeginErrors];
8741
- export type V2ConnectorConnectOauthBeginResponses = {
8630
+ export type V2IntegrationConnectOauthError = V2IntegrationConnectOauthErrors[keyof V2IntegrationConnectOauthErrors];
8631
+ export type V2IntegrationConnectOauthResponses = {
8742
8632
  /**
8743
8633
  * Success
8744
8634
  */
8745
8635
  200: {
8746
8636
  location: LocationInfo;
8747
- data: ConnectorAttempt;
8637
+ data: IntegrationAttempt;
8748
8638
  };
8749
8639
  };
8750
- export type V2ConnectorConnectOauthBeginResponse = V2ConnectorConnectOauthBeginResponses[keyof V2ConnectorConnectOauthBeginResponses];
8751
- export type V2ConnectorConnectOauthCancelData = {
8640
+ export type V2IntegrationConnectOauthResponse = V2IntegrationConnectOauthResponses[keyof V2IntegrationConnectOauthResponses];
8641
+ export type V2IntegrationAttemptCancelData = {
8752
8642
  body?: never;
8753
8643
  path: {
8754
8644
  attemptID: string;
@@ -8759,9 +8649,9 @@ export type V2ConnectorConnectOauthCancelData = {
8759
8649
  workspace?: string;
8760
8650
  };
8761
8651
  };
8762
- url: "/api/connector/oauth/{attemptID}";
8652
+ url: "/api/integration/attempt/{attemptID}";
8763
8653
  };
8764
- export type V2ConnectorConnectOauthCancelErrors = {
8654
+ export type V2IntegrationAttemptCancelErrors = {
8765
8655
  /**
8766
8656
  * InvalidRequestError
8767
8657
  */
@@ -8771,15 +8661,15 @@ export type V2ConnectorConnectOauthCancelErrors = {
8771
8661
  */
8772
8662
  401: UnauthorizedError;
8773
8663
  };
8774
- export type V2ConnectorConnectOauthCancelError = V2ConnectorConnectOauthCancelErrors[keyof V2ConnectorConnectOauthCancelErrors];
8775
- export type V2ConnectorConnectOauthCancelResponses = {
8664
+ export type V2IntegrationAttemptCancelError = V2IntegrationAttemptCancelErrors[keyof V2IntegrationAttemptCancelErrors];
8665
+ export type V2IntegrationAttemptCancelResponses = {
8776
8666
  /**
8777
8667
  * <No Content>
8778
8668
  */
8779
8669
  204: void;
8780
8670
  };
8781
- export type V2ConnectorConnectOauthCancelResponse = V2ConnectorConnectOauthCancelResponses[keyof V2ConnectorConnectOauthCancelResponses];
8782
- export type V2ConnectorConnectOauthStatusData = {
8671
+ export type V2IntegrationAttemptCancelResponse = V2IntegrationAttemptCancelResponses[keyof V2IntegrationAttemptCancelResponses];
8672
+ export type V2IntegrationAttemptStatusData = {
8783
8673
  body?: never;
8784
8674
  path: {
8785
8675
  attemptID: string;
@@ -8790,9 +8680,9 @@ export type V2ConnectorConnectOauthStatusData = {
8790
8680
  workspace?: string;
8791
8681
  };
8792
8682
  };
8793
- url: "/api/connector/oauth/{attemptID}";
8683
+ url: "/api/integration/attempt/{attemptID}";
8794
8684
  };
8795
- export type V2ConnectorConnectOauthStatusErrors = {
8685
+ export type V2IntegrationAttemptStatusErrors = {
8796
8686
  /**
8797
8687
  * InvalidRequestError
8798
8688
  */
@@ -8802,8 +8692,8 @@ export type V2ConnectorConnectOauthStatusErrors = {
8802
8692
  */
8803
8693
  401: UnauthorizedError;
8804
8694
  };
8805
- export type V2ConnectorConnectOauthStatusError = V2ConnectorConnectOauthStatusErrors[keyof V2ConnectorConnectOauthStatusErrors];
8806
- export type V2ConnectorConnectOauthStatusResponses = {
8695
+ export type V2IntegrationAttemptStatusError = V2IntegrationAttemptStatusErrors[keyof V2IntegrationAttemptStatusErrors];
8696
+ export type V2IntegrationAttemptStatusResponses = {
8807
8697
  /**
8808
8698
  * Success
8809
8699
  */
@@ -8837,8 +8727,8 @@ export type V2ConnectorConnectOauthStatusResponses = {
8837
8727
  };
8838
8728
  };
8839
8729
  };
8840
- export type V2ConnectorConnectOauthStatusResponse = V2ConnectorConnectOauthStatusResponses[keyof V2ConnectorConnectOauthStatusResponses];
8841
- export type V2ConnectorConnectOauthCompleteData = {
8730
+ export type V2IntegrationAttemptStatusResponse = V2IntegrationAttemptStatusResponses[keyof V2IntegrationAttemptStatusResponses];
8731
+ export type V2IntegrationAttemptCompleteData = {
8842
8732
  body: {
8843
8733
  code?: string;
8844
8734
  };
@@ -8851,9 +8741,63 @@ export type V2ConnectorConnectOauthCompleteData = {
8851
8741
  workspace?: string;
8852
8742
  };
8853
8743
  };
8854
- url: "/api/connector/oauth/{attemptID}/complete";
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}";
8855
8799
  };
8856
- export type V2ConnectorConnectOauthCompleteErrors = {
8800
+ export type V2CredentialUpdateErrors = {
8857
8801
  /**
8858
8802
  * InvalidRequestError
8859
8803
  */
@@ -8863,14 +8807,14 @@ export type V2ConnectorConnectOauthCompleteErrors = {
8863
8807
  */
8864
8808
  401: UnauthorizedError;
8865
8809
  };
8866
- export type V2ConnectorConnectOauthCompleteError = V2ConnectorConnectOauthCompleteErrors[keyof V2ConnectorConnectOauthCompleteErrors];
8867
- export type V2ConnectorConnectOauthCompleteResponses = {
8810
+ export type V2CredentialUpdateError = V2CredentialUpdateErrors[keyof V2CredentialUpdateErrors];
8811
+ export type V2CredentialUpdateResponses = {
8868
8812
  /**
8869
8813
  * <No Content>
8870
8814
  */
8871
8815
  204: void;
8872
8816
  };
8873
- export type V2ConnectorConnectOauthCompleteResponse = V2ConnectorConnectOauthCompleteResponses[keyof V2ConnectorConnectOauthCompleteResponses];
8817
+ export type V2CredentialUpdateResponse = V2CredentialUpdateResponses[keyof V2CredentialUpdateResponses];
8874
8818
  export type V2PermissionRequestListData = {
8875
8819
  body?: never;
8876
8820
  path?: never;
@@ -9371,6 +9315,94 @@ export type V2ReferenceListResponses = {
9371
9315
  };
9372
9316
  };
9373
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];
9374
9406
  export type PtyConnectData = {
9375
9407
  body?: never;
9376
9408
  path: {