@opencode/client 0.0.0-dev-192 → 0.0.0-dev-201

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.
Files changed (68) hide show
  1. package/dist/chunks/{service-8jxa4f6s.js → shared-events-00979gww.js} +17 -17
  2. package/dist/chunks/{service-8we1dz3p.js → shared-events-0f3b9fnq.js} +5 -5
  3. package/dist/chunks/shared-events-60xe5cbf.js +4 -0
  4. package/dist/chunks/{service-y2etg5bs.js → shared-events-7f0py9js.js} +2 -2
  5. package/dist/chunks/{service-8ye1ye6f.js → shared-events-8ye1ye6f.js} +2 -2
  6. package/dist/chunks/shared-events-ek8qkqrq.js +30 -0
  7. package/dist/chunks/{service-gecjxyvt.js → shared-events-gecjxyvt.js} +1 -1
  8. package/dist/chunks/{service-m37zsx6v.js → shared-events-j4snqxar.js} +207 -126
  9. package/dist/chunks/{service-nwcpakzx.js → shared-events-js54wxgp.js} +2 -2
  10. package/dist/chunks/{service-cyxwqteg.js → shared-events-khkm0pf7.js} +6 -2
  11. package/dist/chunks/{service-15p82y03.js → shared-events-myz4ngx9.js} +5 -5
  12. package/dist/chunks/{service-ryy6kscr.js → shared-events-ryy6kscr.js} +1 -1
  13. package/dist/chunks/{service-0mrkn4v6.js → shared-events-sp3vqdnr.js} +446 -374
  14. package/dist/chunks/{service-h6f391n3.js → shared-events-yhgf3er7.js} +2 -2
  15. package/dist/chunks/{service-ab9bm97w.js → shared-events-z11mztjj.js} +1 -1
  16. package/dist/contract.d.ts +1 -1
  17. package/dist/contract.js +3 -1
  18. package/dist/effect/api/api.d.ts +589 -342
  19. package/dist/effect/client.d.ts +174 -121
  20. package/dist/effect/client.js +12 -12
  21. package/dist/effect/generated/client-error.js +3 -3
  22. package/dist/effect/generated/client.d.ts +209 -122
  23. package/dist/effect/generated/client.js +5 -5
  24. package/dist/effect/generated/index.js +8 -8
  25. package/dist/effect/index.js +12 -12
  26. package/dist/effect/rpc.js +4 -4
  27. package/dist/effect/service.js +6 -6
  28. package/dist/promise/api.d.ts +3 -0
  29. package/dist/promise/client.d.ts +198 -137
  30. package/dist/promise/client.js +11 -11
  31. package/dist/promise/generated/client-error.js +3 -3
  32. package/dist/promise/generated/client.d.ts +234 -138
  33. package/dist/promise/generated/client.js +4 -4
  34. package/dist/promise/generated/index.js +12 -12
  35. package/dist/promise/generated/types.d.ts +463 -363
  36. package/dist/promise/generated/types.js +5 -5
  37. package/dist/promise/index.js +16 -16
  38. package/dist/promise/rpc.js +2 -2
  39. package/dist/promise/service.js +6 -6
  40. package/dist/pty-handoff.js +4 -4
  41. package/dist/rpc-runtime.js +1 -1
  42. package/dist/service-contender.js +1 -1
  43. package/dist/service-probe.js +3 -3
  44. package/dist/service-timing.js +1 -1
  45. package/dist/service-version.js +1 -1
  46. package/dist/service.js +1 -1
  47. package/dist/shared-events.js +1 -1
  48. package/dist/solid/connection.js +1 -1
  49. package/dist/solid/data.js +9 -9
  50. package/dist/solid/index.js +13 -13
  51. package/dist/solid/pty.js +1 -1
  52. package/dist/solid/retention.js +1 -1
  53. package/dist/solid/usage.js +1 -1
  54. package/package.json +4 -4
  55. package/dist/chunks/service-nrbbv8kf.js +0 -30
  56. package/dist/chunks/service-vmytr4q8.js +0 -4
  57. /package/dist/chunks/{service-6mptkzbc.js → shared-events-6mptkzbc.js} +0 -0
  58. /package/dist/chunks/{service-6mq2wh8y.js → shared-events-6mq2wh8y.js} +0 -0
  59. /package/dist/chunks/{service-8s2anffy.js → shared-events-8s2anffy.js} +0 -0
  60. /package/dist/chunks/{service-9rqn6x4v.js → shared-events-9rqn6x4v.js} +0 -0
  61. /package/dist/chunks/{service-gne7h7mq.js → shared-events-gne7h7mq.js} +0 -0
  62. /package/dist/chunks/{service-m2eywc8w.js → shared-events-m2eywc8w.js} +0 -0
  63. /package/dist/chunks/{service-qav6mfdz.js → shared-events-qav6mfdz.js} +0 -0
  64. /package/dist/chunks/{service-sxt88q69.js → shared-events-sxt88q69.js} +0 -0
  65. /package/dist/chunks/{service-ve4aws36.js → shared-events-ve4aws36.js} +0 -0
  66. /package/dist/chunks/{service-vyas3vgt.js → shared-events-vyas3vgt.js} +0 -0
  67. /package/dist/chunks/{service-xgnj2w4v.js → shared-events-xgnj2w4v.js} +0 -0
  68. /package/dist/chunks/{service-ydhz1zrh.js → shared-events-ydhz1zrh.js} +0 -0
@@ -6,16 +6,17 @@ import type { Session } from "@opencode/schema/session";
6
6
  import type { AbsolutePath } from "@opencode/schema/schema";
7
7
  import type { Project } from "@opencode/schema/project";
8
8
  import type { RelativePath } from "@opencode/schema/schema";
9
- import type { Money } from "@opencode/schema/money";
10
9
  import type { Model } from "@opencode/schema/model";
11
- import type { DateTime } from "effect";
12
10
  import type { Permission } from "@opencode/schema/permission";
13
11
  import type { SessionMessage } from "@opencode/schema/session-message";
14
12
  import type { SessionInbox } from "@opencode/schema/session-inbox";
15
13
  import type { PromptInput } from "@opencode/schema/prompt-input";
16
14
  import type { AgentAttachment } from "@opencode/schema/prompt";
17
- import type { Skill } from "@opencode/schema/skill";
18
15
  import type { FileDiff } from "@opencode/schema/file-diff";
16
+ import type { Form } from "@opencode/schema/form";
17
+ import type { DateTime } from "effect";
18
+ import type { Money } from "@opencode/schema/money";
19
+ import type { Skill } from "@opencode/schema/skill";
19
20
  import type { InstructionEntry } from "@opencode/schema/instruction-entry";
20
21
  import type { Schema } from "effect";
21
22
  import type { Event } from "@opencode/schema/event";
@@ -24,7 +25,6 @@ import type { Workspace } from "@opencode/schema/workspace";
24
25
  import type { Instruction } from "@opencode/schema/instruction";
25
26
  import type { Snapshot } from "@opencode/schema/snapshot";
26
27
  import type { Shell } from "@opencode/schema/shell";
27
- import type { Form } from "@opencode/schema/form";
28
28
  import type { Generate } from "@opencode/schema/generate";
29
29
  import type { Provider } from "@opencode/schema/provider";
30
30
  import type { Integration } from "@opencode/schema/integration";
@@ -175,81 +175,6 @@ export type SessionListOutput = {
175
175
  };
176
176
  };
177
177
  export type SessionListOperation<E = never> = (input?: SessionListInput) => Effect.Effect<SessionListOutput, E>;
178
- export type SessionStatsInput = {
179
- readonly from?: number | undefined;
180
- readonly to?: number | undefined;
181
- readonly project?: Project.ID | undefined;
182
- readonly timezone?: string | undefined;
183
- readonly tools?: "none" | "summary" | "detail" | undefined;
184
- };
185
- export type SessionStatsOutput = {
186
- readonly range: {
187
- readonly from: DateTime.Utc;
188
- readonly to: DateTime.Utc;
189
- };
190
- readonly sessions: number;
191
- readonly subagents: number;
192
- readonly prompts: number;
193
- readonly steps: number;
194
- readonly tokens: {
195
- readonly input: number;
196
- readonly output: number;
197
- readonly reasoning: number;
198
- readonly cache: {
199
- readonly read: number;
200
- readonly write: number;
201
- };
202
- };
203
- readonly cost: Money.USD;
204
- readonly tools: {
205
- readonly mode: "none";
206
- } | {
207
- readonly mode: "summary";
208
- readonly totals: {
209
- readonly calls: number;
210
- readonly succeeded: number;
211
- readonly failed: number;
212
- readonly unfinished: number;
213
- };
214
- } | {
215
- readonly mode: "detail";
216
- readonly totals: {
217
- readonly calls: number;
218
- readonly succeeded: number;
219
- readonly failed: number;
220
- readonly unfinished: number;
221
- };
222
- readonly usage: ReadonlyArray<{
223
- readonly name: string;
224
- readonly calls: number;
225
- readonly succeeded: number;
226
- readonly failed: number;
227
- readonly unfinished: number;
228
- readonly durationP50?: number | undefined;
229
- }>;
230
- };
231
- readonly activeDays: number;
232
- readonly streak: number;
233
- readonly activity: ReadonlyArray<{
234
- readonly date: string;
235
- readonly steps: number;
236
- }>;
237
- readonly models: ReadonlyArray<{
238
- readonly model: Model.Ref;
239
- readonly steps: number;
240
- readonly tokens: {
241
- readonly input: number;
242
- readonly output: number;
243
- readonly reasoning: number;
244
- readonly cache: {
245
- readonly read: number;
246
- readonly write: number;
247
- };
248
- };
249
- readonly cost: Money.USD;
250
- }>;
251
- };
252
- export type SessionStatsOperation<E = never> = (input?: SessionStatsInput) => Effect.Effect<SessionStatsOutput, E>;
253
178
  export type SessionCreateInput = {
254
179
  readonly id?: Session.ID | undefined;
255
180
  readonly parentID?: Session.ID | undefined;
@@ -262,22 +187,6 @@ export type SessionCreateInput = {
262
187
  };
263
188
  export type SessionCreateOutput = Session.Info;
264
189
  export type SessionCreateOperation<E = never> = (input?: SessionCreateInput) => Effect.Effect<SessionCreateOutput, E>;
265
- export type SessionImportInput = {
266
- readonly info: Session.Info;
267
- readonly messages: ReadonlyArray<SessionMessage.Info>;
268
- readonly location?: Location.PublicRef | undefined;
269
- };
270
- export type SessionImportOutput = Session.Info;
271
- export type SessionImportOperation<E = never> = (input: SessionImportInput) => Effect.Effect<SessionImportOutput, E>;
272
- export type SessionExportInput = {
273
- readonly sessionID: Session.ID;
274
- readonly sanitize?: boolean | undefined;
275
- };
276
- export type SessionExportOutput = {
277
- readonly info: Session.Info;
278
- readonly messages: ReadonlyArray<SessionMessage.Info>;
279
- };
280
- export type SessionExportOperation<E = never> = (input: SessionExportInput) => Effect.Effect<SessionExportOutput, E>;
281
190
  export type SessionActiveOutput = {
282
191
  readonly [x: Session.ID]: {
283
192
  readonly type: "running";
@@ -354,13 +263,6 @@ export type SessionCommandInput = {
354
263
  };
355
264
  export type SessionCommandOutput = void;
356
265
  export type SessionCommandOperation<E = never> = (input: SessionCommandInput) => Effect.Effect<SessionCommandOutput, E>;
357
- export type SessionSkillInput = {
358
- readonly sessionID: Session.ID;
359
- readonly id: Skill.ID;
360
- readonly resume?: boolean | undefined;
361
- };
362
- export type SessionSkillOutput = void;
363
- export type SessionSkillOperation<E = never> = (input: SessionSkillInput) => Effect.Effect<SessionSkillOutput, E>;
364
266
  export type SessionSyntheticInput = {
365
267
  readonly sessionID: Session.ID;
366
268
  readonly id?: SessionMessage.ID | undefined;
@@ -388,11 +290,6 @@ export type SessionCompactInput = {
388
290
  };
389
291
  export type SessionCompactOutput = SessionInbox.Compaction;
390
292
  export type SessionCompactOperation<E = never> = (input: SessionCompactInput) => Effect.Effect<SessionCompactOutput, E>;
391
- export type SessionWaitInput = {
392
- readonly sessionID: Session.ID;
393
- };
394
- export type SessionWaitOutput = void;
395
- export type SessionWaitOperation<E = never> = (input: SessionWaitInput) => Effect.Effect<SessionWaitOutput, E>;
396
293
  export type SessionRevertStageInput = {
397
294
  readonly sessionID: Session.ID;
398
295
  readonly messageID: SessionMessage.ID;
@@ -441,38 +338,276 @@ export type SessionInboxUpdateInput = {
441
338
  };
442
339
  export type SessionInboxUpdateOutput = void;
443
340
  export type SessionInboxUpdateOperation<E = never> = (input: SessionInboxUpdateInput) => Effect.Effect<SessionInboxUpdateOutput, E>;
444
- export type SessionInstructionsEntryListInput = {
341
+ export type SessionGenerateInput = {
445
342
  readonly sessionID: Session.ID;
343
+ readonly prompt: string;
446
344
  };
447
- export type SessionInstructionsEntryListOutput = ReadonlyArray<InstructionEntry.Info>;
448
- export type SessionInstructionsEntryListOperation<E = never> = (input: SessionInstructionsEntryListInput) => Effect.Effect<SessionInstructionsEntryListOutput, E>;
449
- export type SessionInstructionsEntryPutInput = {
345
+ export type SessionGenerateOutput = {
346
+ readonly text: string;
347
+ };
348
+ export type SessionGenerateOperation<E = never> = (input: SessionGenerateInput) => Effect.Effect<SessionGenerateOutput, E>;
349
+ export type SessionInterruptInput = {
450
350
  readonly sessionID: Session.ID;
451
- readonly key: InstructionEntry.Key;
452
- readonly value: Schema.Json;
351
+ readonly resume?: boolean | undefined;
352
+ };
353
+ export type SessionInterruptOutput = {
354
+ readonly interrupted: boolean;
453
355
  };
454
- export type SessionInstructionsEntryPutOutput = void;
455
- export type SessionInstructionsEntryPutOperation<E = never> = (input: SessionInstructionsEntryPutInput) => Effect.Effect<SessionInstructionsEntryPutOutput, E>;
456
- export type SessionInstructionsEntryRemoveInput = {
356
+ export type SessionInterruptOperation<E = never> = (input: SessionInterruptInput) => Effect.Effect<SessionInterruptOutput, E>;
357
+ export type SessionBackgroundInput = {
457
358
  readonly sessionID: Session.ID;
458
- readonly key: InstructionEntry.Key;
459
359
  };
460
- export type SessionInstructionsEntryRemoveOutput = void;
461
- export type SessionInstructionsEntryRemoveOperation<E = never> = (input: SessionInstructionsEntryRemoveInput) => Effect.Effect<SessionInstructionsEntryRemoveOutput, E>;
462
- export type SessionGenerateInput = {
360
+ export type SessionBackgroundOutput = void;
361
+ export type SessionBackgroundOperation<E = never> = (input: SessionBackgroundInput) => Effect.Effect<SessionBackgroundOutput, E>;
362
+ export type SessionMessageGetInput = {
463
363
  readonly sessionID: Session.ID;
464
- readonly prompt: string;
364
+ readonly messageID: SessionMessage.ID;
465
365
  };
466
- export type SessionGenerateOutput = {
467
- readonly text: string;
366
+ export type SessionMessageGetOutput = SessionMessage.Info;
367
+ export type SessionMessageGetOperation<E = never> = (input: SessionMessageGetInput) => Effect.Effect<SessionMessageGetOutput, E>;
368
+ export type SessionFormListInput = {
369
+ readonly sessionID: string;
468
370
  };
469
- export type SessionGenerateOperation<E = never> = (input: SessionGenerateInput) => Effect.Effect<SessionGenerateOutput, E>;
470
- export type SessionLogInput = {
371
+ export type SessionFormListOutput = ReadonlyArray<Form.Info>;
372
+ export type SessionFormListOperation<E = never> = (input: SessionFormListInput) => Effect.Effect<SessionFormListOutput, E>;
373
+ export type SessionFormCreateInput = {
374
+ readonly sessionID: string;
375
+ readonly id?: Form.ID | undefined;
376
+ readonly title: string;
377
+ readonly metadata?: Form.Metadata | undefined;
378
+ readonly fields: Form.Fields;
379
+ };
380
+ export type SessionFormCreateOutput = Form.Info;
381
+ export type SessionFormCreateOperation<E = never> = (input: SessionFormCreateInput) => Effect.Effect<SessionFormCreateOutput, E>;
382
+ export type SessionFormGetInput = {
383
+ readonly sessionID: string;
384
+ readonly formID: Form.ID;
385
+ };
386
+ export type SessionFormGetOutput = Form.Detail;
387
+ export type SessionFormGetOperation<E = never> = (input: SessionFormGetInput) => Effect.Effect<SessionFormGetOutput, E>;
388
+ export type SessionFormReplyInput = {
389
+ readonly sessionID: string;
390
+ readonly formID: Form.ID;
391
+ readonly answer: Form.Answer;
392
+ };
393
+ export type SessionFormReplyOutput = void;
394
+ export type SessionFormReplyOperation<E = never> = (input: SessionFormReplyInput) => Effect.Effect<SessionFormReplyOutput, E>;
395
+ export type SessionFormCancelInput = {
396
+ readonly sessionID: string;
397
+ readonly formID: Form.ID;
398
+ readonly message?: string | undefined;
399
+ };
400
+ export type SessionFormCancelOutput = void;
401
+ export type SessionFormCancelOperation<E = never> = (input: SessionFormCancelInput) => Effect.Effect<SessionFormCancelOutput, E>;
402
+ export type SessionEnvironmentInput = {
403
+ readonly sessionID: Session.ID;
404
+ readonly variables: {
405
+ readonly [x: string]: string;
406
+ };
407
+ };
408
+ export type SessionEnvironmentOutput = void;
409
+ export type SessionEnvironmentOperation<E = never> = (input: SessionEnvironmentInput) => Effect.Effect<SessionEnvironmentOutput, E>;
410
+ export type SessionViewInput = {
411
+ readonly sessionID: Session.ID;
412
+ readonly idle: DateTime.Utc;
413
+ };
414
+ export type SessionViewOutput = void;
415
+ export type SessionViewOperation<E = never> = (input: SessionViewInput) => Effect.Effect<SessionViewOutput, E>;
416
+ export interface SessionApi<E = never> {
417
+ readonly list: SessionListOperation<E>;
418
+ readonly create: SessionCreateOperation<E>;
419
+ readonly active: SessionActiveOperation<E>;
420
+ readonly get: SessionGetOperation<E>;
421
+ readonly remove: SessionRemoveOperation<E>;
422
+ readonly fork: SessionForkOperation<E>;
423
+ readonly switchAgent: SessionSwitchAgentOperation<E>;
424
+ readonly switchModel: SessionSwitchModelOperation<E>;
425
+ readonly update: SessionUpdateOperation<E>;
426
+ readonly move: SessionMoveOperation<E>;
427
+ readonly prompt: SessionPromptOperation<E>;
428
+ readonly command: SessionCommandOperation<E>;
429
+ readonly synthetic: SessionSyntheticOperation<E>;
430
+ readonly shell: SessionShellOperation<E>;
431
+ readonly compact: SessionCompactOperation<E>;
432
+ readonly revert: {
433
+ readonly stage: SessionRevertStageOperation<E>;
434
+ readonly clear: SessionRevertClearOperation<E>;
435
+ readonly commit: SessionRevertCommitOperation<E>;
436
+ };
437
+ readonly context: SessionContextOperation<E>;
438
+ readonly diff: SessionDiffOperation<E>;
439
+ readonly inbox: {
440
+ readonly list: SessionInboxListOperation<E>;
441
+ readonly cancel: SessionInboxCancelOperation<E>;
442
+ readonly update: SessionInboxUpdateOperation<E>;
443
+ };
444
+ readonly generate: SessionGenerateOperation<E>;
445
+ readonly interrupt: SessionInterruptOperation<E>;
446
+ readonly background: SessionBackgroundOperation<E>;
447
+ readonly message: {
448
+ readonly get: SessionMessageGetOperation<E>;
449
+ };
450
+ readonly form: {
451
+ readonly list: SessionFormListOperation<E>;
452
+ readonly create: SessionFormCreateOperation<E>;
453
+ readonly get: SessionFormGetOperation<E>;
454
+ readonly reply: SessionFormReplyOperation<E>;
455
+ readonly cancel: SessionFormCancelOperation<E>;
456
+ };
457
+ readonly environment: SessionEnvironmentOperation<E>;
458
+ readonly view: SessionViewOperation<E>;
459
+ /** @deprecated Use `client.experimental.session.stats`. Removed in the next minor. */
460
+ readonly stats: ExperimentalSessionStatsOperation<E>;
461
+ /** @deprecated Use `client.experimental.session.import`. Removed in the next minor. */
462
+ readonly import: ExperimentalSessionImportOperation<E>;
463
+ /** @deprecated Use `client.experimental.session.export`. Removed in the next minor. */
464
+ readonly export: ExperimentalSessionExportOperation<E>;
465
+ /** @deprecated Use `client.experimental.session.skill`. Removed in the next minor. */
466
+ readonly skill: ExperimentalSessionSkillOperation<E>;
467
+ /** @deprecated Use `client.experimental.session.wait`. Removed in the next minor. */
468
+ readonly wait: ExperimentalSessionWaitOperation<E>;
469
+ /** @deprecated Use `client.experimental.session.instructions`. Removed in the next minor. */
470
+ readonly instructions: {
471
+ /** @deprecated Use `client.experimental.session.instructions.entry`. Removed in the next minor. */
472
+ readonly entry: {
473
+ /** @deprecated Use `client.experimental.session.instructions.entry.list`. Removed in the next minor. */
474
+ readonly list: ExperimentalSessionInstructionsEntryListOperation<E>;
475
+ /** @deprecated Use `client.experimental.session.instructions.entry.put`. Removed in the next minor. */
476
+ readonly put: ExperimentalSessionInstructionsEntryPutOperation<E>;
477
+ /** @deprecated Use `client.experimental.session.instructions.entry.remove`. Removed in the next minor. */
478
+ readonly remove: ExperimentalSessionInstructionsEntryRemoveOperation<E>;
479
+ };
480
+ };
481
+ /** @deprecated Use `client.experimental.session.log`. Removed in the next minor. */
482
+ readonly log: ExperimentalSessionLogOperation<E>;
483
+ }
484
+ export type ExperimentalSessionStatsInput = {
485
+ readonly from?: number | undefined;
486
+ readonly to?: number | undefined;
487
+ readonly project?: Project.ID | undefined;
488
+ readonly timezone?: string | undefined;
489
+ readonly tools?: "none" | "summary" | "detail" | undefined;
490
+ };
491
+ export type ExperimentalSessionStatsOutput = {
492
+ readonly range: {
493
+ readonly from: DateTime.Utc;
494
+ readonly to: DateTime.Utc;
495
+ };
496
+ readonly sessions: number;
497
+ readonly subagents: number;
498
+ readonly prompts: number;
499
+ readonly steps: number;
500
+ readonly tokens: {
501
+ readonly input: number;
502
+ readonly output: number;
503
+ readonly reasoning: number;
504
+ readonly cache: {
505
+ readonly read: number;
506
+ readonly write: number;
507
+ };
508
+ };
509
+ readonly cost: Money.USD;
510
+ readonly tools: {
511
+ readonly mode: "none";
512
+ } | {
513
+ readonly mode: "summary";
514
+ readonly totals: {
515
+ readonly calls: number;
516
+ readonly succeeded: number;
517
+ readonly failed: number;
518
+ readonly unfinished: number;
519
+ };
520
+ } | {
521
+ readonly mode: "detail";
522
+ readonly totals: {
523
+ readonly calls: number;
524
+ readonly succeeded: number;
525
+ readonly failed: number;
526
+ readonly unfinished: number;
527
+ };
528
+ readonly usage: ReadonlyArray<{
529
+ readonly name: string;
530
+ readonly calls: number;
531
+ readonly succeeded: number;
532
+ readonly failed: number;
533
+ readonly unfinished: number;
534
+ readonly durationP50?: number | undefined;
535
+ }>;
536
+ };
537
+ readonly activeDays: number;
538
+ readonly streak: number;
539
+ readonly activity: ReadonlyArray<{
540
+ readonly date: string;
541
+ readonly steps: number;
542
+ }>;
543
+ readonly models: ReadonlyArray<{
544
+ readonly model: Model.Ref;
545
+ readonly steps: number;
546
+ readonly tokens: {
547
+ readonly input: number;
548
+ readonly output: number;
549
+ readonly reasoning: number;
550
+ readonly cache: {
551
+ readonly read: number;
552
+ readonly write: number;
553
+ };
554
+ };
555
+ readonly cost: Money.USD;
556
+ }>;
557
+ };
558
+ export type ExperimentalSessionStatsOperation<E = never> = (input?: ExperimentalSessionStatsInput) => Effect.Effect<ExperimentalSessionStatsOutput, E>;
559
+ export type ExperimentalSessionImportInput = {
560
+ readonly info: Session.Info;
561
+ readonly messages: ReadonlyArray<SessionMessage.Info>;
562
+ readonly location?: Location.PublicRef | undefined;
563
+ };
564
+ export type ExperimentalSessionImportOutput = Session.Info;
565
+ export type ExperimentalSessionImportOperation<E = never> = (input: ExperimentalSessionImportInput) => Effect.Effect<ExperimentalSessionImportOutput, E>;
566
+ export type ExperimentalSessionExportInput = {
567
+ readonly sessionID: Session.ID;
568
+ readonly sanitize?: boolean | undefined;
569
+ };
570
+ export type ExperimentalSessionExportOutput = {
571
+ readonly info: Session.Info;
572
+ readonly messages: ReadonlyArray<SessionMessage.Info>;
573
+ };
574
+ export type ExperimentalSessionExportOperation<E = never> = (input: ExperimentalSessionExportInput) => Effect.Effect<ExperimentalSessionExportOutput, E>;
575
+ export type ExperimentalSessionSkillInput = {
576
+ readonly sessionID: Session.ID;
577
+ readonly id: Skill.ID;
578
+ readonly resume?: boolean | undefined;
579
+ };
580
+ export type ExperimentalSessionSkillOutput = void;
581
+ export type ExperimentalSessionSkillOperation<E = never> = (input: ExperimentalSessionSkillInput) => Effect.Effect<ExperimentalSessionSkillOutput, E>;
582
+ export type ExperimentalSessionWaitInput = {
583
+ readonly sessionID: Session.ID;
584
+ };
585
+ export type ExperimentalSessionWaitOutput = void;
586
+ export type ExperimentalSessionWaitOperation<E = never> = (input: ExperimentalSessionWaitInput) => Effect.Effect<ExperimentalSessionWaitOutput, E>;
587
+ export type ExperimentalSessionInstructionsEntryListInput = {
588
+ readonly sessionID: Session.ID;
589
+ };
590
+ export type ExperimentalSessionInstructionsEntryListOutput = ReadonlyArray<InstructionEntry.Info>;
591
+ export type ExperimentalSessionInstructionsEntryListOperation<E = never> = (input: ExperimentalSessionInstructionsEntryListInput) => Effect.Effect<ExperimentalSessionInstructionsEntryListOutput, E>;
592
+ export type ExperimentalSessionInstructionsEntryPutInput = {
593
+ readonly sessionID: Session.ID;
594
+ readonly key: InstructionEntry.Key;
595
+ readonly value: Schema.Json;
596
+ };
597
+ export type ExperimentalSessionInstructionsEntryPutOutput = void;
598
+ export type ExperimentalSessionInstructionsEntryPutOperation<E = never> = (input: ExperimentalSessionInstructionsEntryPutInput) => Effect.Effect<ExperimentalSessionInstructionsEntryPutOutput, E>;
599
+ export type ExperimentalSessionInstructionsEntryRemoveInput = {
600
+ readonly sessionID: Session.ID;
601
+ readonly key: InstructionEntry.Key;
602
+ };
603
+ export type ExperimentalSessionInstructionsEntryRemoveOutput = void;
604
+ export type ExperimentalSessionInstructionsEntryRemoveOperation<E = never> = (input: ExperimentalSessionInstructionsEntryRemoveInput) => Effect.Effect<ExperimentalSessionInstructionsEntryRemoveOutput, E>;
605
+ export type ExperimentalSessionLogInput = {
471
606
  readonly sessionID: Session.ID;
472
607
  readonly after?: Event.Seq | undefined;
473
608
  readonly follow?: boolean | undefined;
474
609
  };
475
- export type SessionLogOutput = ({
610
+ export type ExperimentalSessionLogOutput = ({
476
611
  readonly id: Event.ID;
477
612
  readonly created: number;
478
613
  readonly metadata?: {
@@ -1636,130 +1771,21 @@ export type SessionLogOutput = ({
1636
1771
  readonly content: ReadonlyArray<SessionMessage.AssistantContentEncoded>;
1637
1772
  };
1638
1773
  }) | EventLog.Synced;
1639
- export type SessionLogOperation<E = never> = (input: SessionLogInput) => Stream.Stream<SessionLogOutput, E>;
1640
- export type SessionInterruptInput = {
1641
- readonly sessionID: Session.ID;
1642
- readonly resume?: boolean | undefined;
1643
- };
1644
- export type SessionInterruptOutput = {
1645
- readonly interrupted: boolean;
1646
- };
1647
- export type SessionInterruptOperation<E = never> = (input: SessionInterruptInput) => Effect.Effect<SessionInterruptOutput, E>;
1648
- export type SessionBackgroundInput = {
1649
- readonly sessionID: Session.ID;
1650
- };
1651
- export type SessionBackgroundOutput = void;
1652
- export type SessionBackgroundOperation<E = never> = (input: SessionBackgroundInput) => Effect.Effect<SessionBackgroundOutput, E>;
1653
- export type SessionMessageGetInput = {
1654
- readonly sessionID: Session.ID;
1655
- readonly messageID: SessionMessage.ID;
1656
- };
1657
- export type SessionMessageGetOutput = SessionMessage.Info;
1658
- export type SessionMessageGetOperation<E = never> = (input: SessionMessageGetInput) => Effect.Effect<SessionMessageGetOutput, E>;
1659
- export type SessionFormListInput = {
1660
- readonly sessionID: string;
1661
- };
1662
- export type SessionFormListOutput = ReadonlyArray<Form.Info>;
1663
- export type SessionFormListOperation<E = never> = (input: SessionFormListInput) => Effect.Effect<SessionFormListOutput, E>;
1664
- export type SessionFormCreateInput = {
1665
- readonly sessionID: string;
1666
- readonly id?: Form.ID | undefined;
1667
- readonly title: string;
1668
- readonly metadata?: Form.Metadata | undefined;
1669
- readonly fields: Form.Fields;
1670
- };
1671
- export type SessionFormCreateOutput = Form.Info;
1672
- export type SessionFormCreateOperation<E = never> = (input: SessionFormCreateInput) => Effect.Effect<SessionFormCreateOutput, E>;
1673
- export type SessionFormGetInput = {
1674
- readonly sessionID: string;
1675
- readonly formID: Form.ID;
1676
- };
1677
- export type SessionFormGetOutput = Form.Detail;
1678
- export type SessionFormGetOperation<E = never> = (input: SessionFormGetInput) => Effect.Effect<SessionFormGetOutput, E>;
1679
- export type SessionFormReplyInput = {
1680
- readonly sessionID: string;
1681
- readonly formID: Form.ID;
1682
- readonly answer: Form.Answer;
1683
- };
1684
- export type SessionFormReplyOutput = void;
1685
- export type SessionFormReplyOperation<E = never> = (input: SessionFormReplyInput) => Effect.Effect<SessionFormReplyOutput, E>;
1686
- export type SessionFormCancelInput = {
1687
- readonly sessionID: string;
1688
- readonly formID: Form.ID;
1689
- readonly message?: string | undefined;
1690
- };
1691
- export type SessionFormCancelOutput = void;
1692
- export type SessionFormCancelOperation<E = never> = (input: SessionFormCancelInput) => Effect.Effect<SessionFormCancelOutput, E>;
1693
- export type SessionEnvironmentInput = {
1694
- readonly sessionID: Session.ID;
1695
- readonly variables: {
1696
- readonly [x: string]: string;
1697
- };
1698
- };
1699
- export type SessionEnvironmentOutput = void;
1700
- export type SessionEnvironmentOperation<E = never> = (input: SessionEnvironmentInput) => Effect.Effect<SessionEnvironmentOutput, E>;
1701
- export type SessionViewInput = {
1702
- readonly sessionID: Session.ID;
1703
- readonly idle: DateTime.Utc;
1704
- };
1705
- export type SessionViewOutput = void;
1706
- export type SessionViewOperation<E = never> = (input: SessionViewInput) => Effect.Effect<SessionViewOutput, E>;
1707
- export interface SessionApi<E = never> {
1708
- readonly list: SessionListOperation<E>;
1709
- readonly stats: SessionStatsOperation<E>;
1710
- readonly create: SessionCreateOperation<E>;
1711
- readonly import: SessionImportOperation<E>;
1712
- readonly export: SessionExportOperation<E>;
1713
- readonly active: SessionActiveOperation<E>;
1714
- readonly get: SessionGetOperation<E>;
1715
- readonly remove: SessionRemoveOperation<E>;
1716
- readonly fork: SessionForkOperation<E>;
1717
- readonly switchAgent: SessionSwitchAgentOperation<E>;
1718
- readonly switchModel: SessionSwitchModelOperation<E>;
1719
- readonly update: SessionUpdateOperation<E>;
1720
- readonly move: SessionMoveOperation<E>;
1721
- readonly prompt: SessionPromptOperation<E>;
1722
- readonly command: SessionCommandOperation<E>;
1723
- readonly skill: SessionSkillOperation<E>;
1724
- readonly synthetic: SessionSyntheticOperation<E>;
1725
- readonly shell: SessionShellOperation<E>;
1726
- readonly compact: SessionCompactOperation<E>;
1727
- readonly wait: SessionWaitOperation<E>;
1728
- readonly revert: {
1729
- readonly stage: SessionRevertStageOperation<E>;
1730
- readonly clear: SessionRevertClearOperation<E>;
1731
- readonly commit: SessionRevertCommitOperation<E>;
1732
- };
1733
- readonly context: SessionContextOperation<E>;
1734
- readonly diff: SessionDiffOperation<E>;
1735
- readonly inbox: {
1736
- readonly list: SessionInboxListOperation<E>;
1737
- readonly cancel: SessionInboxCancelOperation<E>;
1738
- readonly update: SessionInboxUpdateOperation<E>;
1739
- };
1774
+ export type ExperimentalSessionLogOperation<E = never> = (input: ExperimentalSessionLogInput) => Stream.Stream<ExperimentalSessionLogOutput, E>;
1775
+ export interface ExperimentalSessionApi<E = never> {
1776
+ readonly stats: ExperimentalSessionStatsOperation<E>;
1777
+ readonly import: ExperimentalSessionImportOperation<E>;
1778
+ readonly export: ExperimentalSessionExportOperation<E>;
1779
+ readonly skill: ExperimentalSessionSkillOperation<E>;
1780
+ readonly wait: ExperimentalSessionWaitOperation<E>;
1740
1781
  readonly instructions: {
1741
1782
  readonly entry: {
1742
- readonly list: SessionInstructionsEntryListOperation<E>;
1743
- readonly put: SessionInstructionsEntryPutOperation<E>;
1744
- readonly remove: SessionInstructionsEntryRemoveOperation<E>;
1783
+ readonly list: ExperimentalSessionInstructionsEntryListOperation<E>;
1784
+ readonly put: ExperimentalSessionInstructionsEntryPutOperation<E>;
1785
+ readonly remove: ExperimentalSessionInstructionsEntryRemoveOperation<E>;
1745
1786
  };
1746
1787
  };
1747
- readonly generate: SessionGenerateOperation<E>;
1748
- readonly log: SessionLogOperation<E>;
1749
- readonly interrupt: SessionInterruptOperation<E>;
1750
- readonly background: SessionBackgroundOperation<E>;
1751
- readonly message: {
1752
- readonly get: SessionMessageGetOperation<E>;
1753
- };
1754
- readonly form: {
1755
- readonly list: SessionFormListOperation<E>;
1756
- readonly create: SessionFormCreateOperation<E>;
1757
- readonly get: SessionFormGetOperation<E>;
1758
- readonly reply: SessionFormReplyOperation<E>;
1759
- readonly cancel: SessionFormCancelOperation<E>;
1760
- };
1761
- readonly environment: SessionEnvironmentOperation<E>;
1762
- readonly view: SessionViewOperation<E>;
1788
+ readonly log: ExperimentalSessionLogOperation<E>;
1763
1789
  }
1764
1790
  export type MessageListInput = {
1765
1791
  readonly sessionID: Session.ID;
@@ -1804,15 +1830,15 @@ export interface ModelApi<E = never> {
1804
1830
  readonly list: ModelListOperation<E>;
1805
1831
  readonly default: ModelDefaultOperation<E>;
1806
1832
  }
1807
- export type GenerateTextInput = {
1833
+ export type ExperimentalGenerateTextInput = {
1808
1834
  readonly prompt: string;
1809
1835
  readonly model?: Model.Ref | undefined;
1810
1836
  };
1811
- export type GenerateTextOutput = {
1837
+ export type ExperimentalGenerateTextOutput = {
1812
1838
  readonly text: string;
1813
1839
  };
1814
- export type GenerateTextOperation<E = never> = (input: GenerateTextInput) => Effect.Effect<GenerateTextOutput, E>;
1815
- export type GenerateImageInput = {
1840
+ export type ExperimentalGenerateTextOperation<E = never> = (input: ExperimentalGenerateTextInput) => Effect.Effect<ExperimentalGenerateTextOutput, E>;
1841
+ export type ExperimentalGenerateImageInput = {
1816
1842
  readonly model: Model.Ref;
1817
1843
  readonly prompt: string;
1818
1844
  readonly images?: ReadonlyArray<Generate.File> | undefined;
@@ -1820,21 +1846,21 @@ export type GenerateImageInput = {
1820
1846
  readonly aspect?: Generate.ImageAspect | undefined;
1821
1847
  readonly resolution?: Generate.ImageResolution | undefined;
1822
1848
  };
1823
- export type GenerateImageOutput = Generate.ImageResult;
1824
- export type GenerateImageOperation<E = never> = (input: GenerateImageInput) => Effect.Effect<GenerateImageOutput, E>;
1825
- export type GenerateDecisionsInput = {
1849
+ export type ExperimentalGenerateImageOutput = Generate.ImageResult;
1850
+ export type ExperimentalGenerateImageOperation<E = never> = (input: ExperimentalGenerateImageInput) => Effect.Effect<ExperimentalGenerateImageOutput, E>;
1851
+ export type ExperimentalGenerateDecisionsInput = {
1826
1852
  readonly model: Model.Ref;
1827
1853
  readonly input: ReadonlyArray<Generate.DecisionPart>;
1828
1854
  readonly questions: ReadonlyArray<Generate.DecisionQuestion>;
1829
1855
  };
1830
- export type GenerateDecisionsOutput = Generate.DecisionResult;
1831
- export type GenerateDecisionsOperation<E = never> = (input: GenerateDecisionsInput) => Effect.Effect<GenerateDecisionsOutput, E>;
1832
- export interface GenerateApi<E = never> {
1833
- readonly text: GenerateTextOperation<E>;
1834
- readonly image: GenerateImageOperation<E>;
1835
- readonly decisions: GenerateDecisionsOperation<E>;
1856
+ export type ExperimentalGenerateDecisionsOutput = Generate.DecisionResult;
1857
+ export type ExperimentalGenerateDecisionsOperation<E = never> = (input: ExperimentalGenerateDecisionsInput) => Effect.Effect<ExperimentalGenerateDecisionsOutput, E>;
1858
+ export interface ExperimentalGenerateApi<E = never> {
1859
+ readonly text: ExperimentalGenerateTextOperation<E>;
1860
+ readonly image: ExperimentalGenerateImageOperation<E>;
1861
+ readonly decisions: ExperimentalGenerateDecisionsOperation<E>;
1836
1862
  }
1837
- export type VoiceModelsOutput = {
1863
+ export type ExperimentalVoiceModelsOutput = {
1838
1864
  readonly models: ReadonlyArray<{
1839
1865
  readonly model: string;
1840
1866
  readonly provider: string;
@@ -1843,8 +1869,8 @@ export type VoiceModelsOutput = {
1843
1869
  }>;
1844
1870
  readonly default?: string | undefined;
1845
1871
  };
1846
- export type VoiceModelsOperation<E = never> = () => Effect.Effect<VoiceModelsOutput, E>;
1847
- export type VoiceSessionInput = {
1872
+ export type ExperimentalVoiceModelsOperation<E = never> = () => Effect.Effect<ExperimentalVoiceModelsOutput, E>;
1873
+ export type ExperimentalVoiceSessionInput = {
1848
1874
  readonly model: string;
1849
1875
  readonly session?: {
1850
1876
  readonly [x: string]: unknown;
@@ -1857,7 +1883,7 @@ export type VoiceSessionInput = {
1857
1883
  readonly type: "websocket";
1858
1884
  };
1859
1885
  };
1860
- export type VoiceSessionOutput = {
1886
+ export type ExperimentalVoiceSessionOutput = {
1861
1887
  readonly transport: {
1862
1888
  readonly type: "webrtc";
1863
1889
  readonly sdp: string;
@@ -1868,10 +1894,10 @@ export type VoiceSessionOutput = {
1868
1894
  readonly expiresAt: number;
1869
1895
  };
1870
1896
  };
1871
- export type VoiceSessionOperation<E = never> = (input: VoiceSessionInput) => Effect.Effect<VoiceSessionOutput, E>;
1872
- export interface VoiceApi<E = never> {
1873
- readonly models: VoiceModelsOperation<E>;
1874
- readonly session: VoiceSessionOperation<E>;
1897
+ export type ExperimentalVoiceSessionOperation<E = never> = (input: ExperimentalVoiceSessionInput) => Effect.Effect<ExperimentalVoiceSessionOutput, E>;
1898
+ export interface ExperimentalVoiceApi<E = never> {
1899
+ readonly models: ExperimentalVoiceModelsOperation<E>;
1900
+ readonly session: ExperimentalVoiceSessionOperation<E>;
1875
1901
  }
1876
1902
  export type ProviderListInput = {
1877
1903
  readonly location?: {
@@ -1919,14 +1945,6 @@ export type IntegrationGetOutput = {
1919
1945
  readonly data: Integration.Info;
1920
1946
  };
1921
1947
  export type IntegrationGetOperation<E = never> = (input: IntegrationGetInput) => Effect.Effect<IntegrationGetOutput, E>;
1922
- export type IntegrationWellknownAddInput = {
1923
- readonly location?: {
1924
- readonly directory?: string | undefined;
1925
- } | undefined;
1926
- readonly url: string;
1927
- };
1928
- export type IntegrationWellknownAddOutput = void;
1929
- export type IntegrationWellknownAddOperation<E = never> = (input: IntegrationWellknownAddInput) => Effect.Effect<IntegrationWellknownAddOutput, E>;
1930
1948
  export type IntegrationConnectKeyInput = {
1931
1949
  readonly integrationID: Integration.ID;
1932
1950
  readonly location?: {
@@ -2031,9 +2049,6 @@ export type IntegrationCommandCancelOperation<E = never> = (input: IntegrationCo
2031
2049
  export interface IntegrationApi<E = never> {
2032
2050
  readonly list: IntegrationListOperation<E>;
2033
2051
  readonly get: IntegrationGetOperation<E>;
2034
- readonly wellknown: {
2035
- readonly add: IntegrationWellknownAddOperation<E>;
2036
- };
2037
2052
  readonly connect: {
2038
2053
  readonly key: IntegrationConnectKeyOperation<E>;
2039
2054
  readonly external: IntegrationConnectExternalOperation<E>;
@@ -2049,6 +2064,24 @@ export interface IntegrationApi<E = never> {
2049
2064
  readonly status: IntegrationCommandStatusOperation<E>;
2050
2065
  readonly cancel: IntegrationCommandCancelOperation<E>;
2051
2066
  };
2067
+ /** @deprecated Use `client.experimental.integration.wellknown`. Removed in the next minor. */
2068
+ readonly wellknown: {
2069
+ /** @deprecated Use `client.experimental.integration.wellknown.add`. Removed in the next minor. */
2070
+ readonly add: ExperimentalIntegrationWellknownAddOperation<E>;
2071
+ };
2072
+ }
2073
+ export type ExperimentalIntegrationWellknownAddInput = {
2074
+ readonly location?: {
2075
+ readonly directory?: string | undefined;
2076
+ } | undefined;
2077
+ readonly url: string;
2078
+ };
2079
+ export type ExperimentalIntegrationWellknownAddOutput = void;
2080
+ export type ExperimentalIntegrationWellknownAddOperation<E = never> = (input: ExperimentalIntegrationWellknownAddInput) => Effect.Effect<ExperimentalIntegrationWellknownAddOutput, E>;
2081
+ export interface ExperimentalIntegrationApi<E = never> {
2082
+ readonly wellknown: {
2083
+ readonly add: ExperimentalIntegrationWellknownAddOperation<E>;
2084
+ };
2052
2085
  }
2053
2086
  export type McpListInput = {
2054
2087
  readonly location?: {
@@ -2060,72 +2093,87 @@ export type McpListOutput = {
2060
2093
  readonly data: ReadonlyArray<Mcp.Server>;
2061
2094
  };
2062
2095
  export type McpListOperation<E = never> = (input?: McpListInput) => Effect.Effect<McpListOutput, E>;
2063
- export type McpAddInput = {
2064
- readonly server: string;
2096
+ export type McpResourceCatalogInput = {
2065
2097
  readonly location?: {
2066
2098
  readonly directory?: string | undefined;
2067
2099
  } | undefined;
2068
- readonly config: Mcp.LocalConfig | Mcp.RemoteConfig;
2069
2100
  };
2070
- export type McpAddOutput = void;
2071
- export type McpAddOperation<E = never> = (input: McpAddInput) => Effect.Effect<McpAddOutput, E>;
2072
- export type McpRemoveInput = {
2101
+ export type McpResourceCatalogOutput = {
2102
+ readonly location: Location.PublicRef;
2103
+ readonly data: Mcp.ResourceCatalog;
2104
+ };
2105
+ export type McpResourceCatalogOperation<E = never> = (input?: McpResourceCatalogInput) => Effect.Effect<McpResourceCatalogOutput, E>;
2106
+ export interface McpApi<E = never> {
2107
+ readonly list: McpListOperation<E>;
2108
+ readonly resource: {
2109
+ readonly catalog: McpResourceCatalogOperation<E>;
2110
+ };
2111
+ /** @deprecated Use `client.experimental.mcp.add`. Removed in the next minor. */
2112
+ readonly add: ExperimentalMcpAddOperation<E>;
2113
+ /** @deprecated Use `client.experimental.mcp.remove`. Removed in the next minor. */
2114
+ readonly remove: ExperimentalMcpRemoveOperation<E>;
2115
+ /** @deprecated Use `client.experimental.mcp.connect`. Removed in the next minor. */
2116
+ readonly connect: ExperimentalMcpConnectOperation<E>;
2117
+ /** @deprecated Use `client.experimental.mcp.disconnect`. Removed in the next minor. */
2118
+ readonly disconnect: ExperimentalMcpDisconnectOperation<E>;
2119
+ /** @deprecated Use `client.experimental.mcp.client`. Removed in the next minor. */
2120
+ readonly client: {
2121
+ /** @deprecated Use `client.experimental.mcp.client.token`. Removed in the next minor. */
2122
+ readonly token: ExperimentalMcpClientTokenOperation<E>;
2123
+ };
2124
+ }
2125
+ export type ExperimentalMcpAddInput = {
2073
2126
  readonly server: string;
2074
2127
  readonly location?: {
2075
2128
  readonly directory?: string | undefined;
2076
2129
  } | undefined;
2130
+ readonly config: Mcp.LocalConfig | Mcp.RemoteConfig;
2077
2131
  };
2078
- export type McpRemoveOutput = void;
2079
- export type McpRemoveOperation<E = never> = (input: McpRemoveInput) => Effect.Effect<McpRemoveOutput, E>;
2080
- export type McpConnectInput = {
2132
+ export type ExperimentalMcpAddOutput = void;
2133
+ export type ExperimentalMcpAddOperation<E = never> = (input: ExperimentalMcpAddInput) => Effect.Effect<ExperimentalMcpAddOutput, E>;
2134
+ export type ExperimentalMcpRemoveInput = {
2081
2135
  readonly server: string;
2082
2136
  readonly location?: {
2083
2137
  readonly directory?: string | undefined;
2084
2138
  } | undefined;
2085
2139
  };
2086
- export type McpConnectOutput = void;
2087
- export type McpConnectOperation<E = never> = (input: McpConnectInput) => Effect.Effect<McpConnectOutput, E>;
2088
- export type McpDisconnectInput = {
2140
+ export type ExperimentalMcpRemoveOutput = void;
2141
+ export type ExperimentalMcpRemoveOperation<E = never> = (input: ExperimentalMcpRemoveInput) => Effect.Effect<ExperimentalMcpRemoveOutput, E>;
2142
+ export type ExperimentalMcpConnectInput = {
2089
2143
  readonly server: string;
2090
2144
  readonly location?: {
2091
2145
  readonly directory?: string | undefined;
2092
2146
  } | undefined;
2093
2147
  };
2094
- export type McpDisconnectOutput = void;
2095
- export type McpDisconnectOperation<E = never> = (input: McpDisconnectInput) => Effect.Effect<McpDisconnectOutput, E>;
2096
- export type McpResourceCatalogInput = {
2148
+ export type ExperimentalMcpConnectOutput = void;
2149
+ export type ExperimentalMcpConnectOperation<E = never> = (input: ExperimentalMcpConnectInput) => Effect.Effect<ExperimentalMcpConnectOutput, E>;
2150
+ export type ExperimentalMcpDisconnectInput = {
2151
+ readonly server: string;
2097
2152
  readonly location?: {
2098
2153
  readonly directory?: string | undefined;
2099
2154
  } | undefined;
2100
2155
  };
2101
- export type McpResourceCatalogOutput = {
2102
- readonly location: Location.PublicRef;
2103
- readonly data: Mcp.ResourceCatalog;
2104
- };
2105
- export type McpResourceCatalogOperation<E = never> = (input?: McpResourceCatalogInput) => Effect.Effect<McpResourceCatalogOutput, E>;
2106
- export type McpClientTokenInput = {
2156
+ export type ExperimentalMcpDisconnectOutput = void;
2157
+ export type ExperimentalMcpDisconnectOperation<E = never> = (input: ExperimentalMcpDisconnectInput) => Effect.Effect<ExperimentalMcpDisconnectOutput, E>;
2158
+ export type ExperimentalMcpClientTokenInput = {
2107
2159
  readonly location?: {
2108
2160
  readonly directory?: string | undefined;
2109
2161
  } | undefined;
2110
2162
  readonly name: string;
2111
2163
  readonly "x-opencode-ticket"?: string | undefined;
2112
2164
  };
2113
- export type McpClientTokenOutput = {
2165
+ export type ExperimentalMcpClientTokenOutput = {
2114
2166
  readonly location: Location.PublicRef;
2115
2167
  readonly data: PtyTicket.ConnectToken;
2116
2168
  };
2117
- export type McpClientTokenOperation<E = never> = (input: McpClientTokenInput) => Effect.Effect<McpClientTokenOutput, E>;
2118
- export interface McpApi<E = never> {
2119
- readonly list: McpListOperation<E>;
2120
- readonly add: McpAddOperation<E>;
2121
- readonly remove: McpRemoveOperation<E>;
2122
- readonly connect: McpConnectOperation<E>;
2123
- readonly disconnect: McpDisconnectOperation<E>;
2124
- readonly resource: {
2125
- readonly catalog: McpResourceCatalogOperation<E>;
2126
- };
2169
+ export type ExperimentalMcpClientTokenOperation<E = never> = (input: ExperimentalMcpClientTokenInput) => Effect.Effect<ExperimentalMcpClientTokenOutput, E>;
2170
+ export interface ExperimentalMcpApi<E = never> {
2171
+ readonly add: ExperimentalMcpAddOperation<E>;
2172
+ readonly remove: ExperimentalMcpRemoveOperation<E>;
2173
+ readonly connect: ExperimentalMcpConnectOperation<E>;
2174
+ readonly disconnect: ExperimentalMcpDisconnectOperation<E>;
2127
2175
  readonly client: {
2128
- readonly token: McpClientTokenOperation<E>;
2176
+ readonly token: ExperimentalMcpClientTokenOperation<E>;
2129
2177
  };
2130
2178
  }
2131
2179
  export type CredentialListOutput = ReadonlyArray<Credential.Entry>;
@@ -2294,27 +2342,33 @@ export type FileFindOutput = {
2294
2342
  readonly data: ReadonlyArray<FileSystem.Entry>;
2295
2343
  };
2296
2344
  export type FileFindOperation<E = never> = (input: FileFindInput) => Effect.Effect<FileFindOutput, E>;
2297
- export type FileWatchInput = {
2345
+ export interface FileApi<E = never> {
2346
+ readonly list: FileListOperation<E>;
2347
+ readonly find: FileFindOperation<E>;
2348
+ /** @deprecated Use `client.experimental.file.watch`. Removed in the next minor. */
2349
+ readonly watch: ExperimentalFileWatchOperation<E>;
2350
+ /** @deprecated Use `client.experimental.file.unwatch`. Removed in the next minor. */
2351
+ readonly unwatch: ExperimentalFileUnwatchOperation<E>;
2352
+ }
2353
+ export type ExperimentalFileWatchInput = {
2298
2354
  readonly location?: {
2299
2355
  readonly directory?: string | undefined;
2300
2356
  } | undefined;
2301
2357
  readonly path: string;
2302
2358
  };
2303
- export type FileWatchOutput = void;
2304
- export type FileWatchOperation<E = never> = (input: FileWatchInput) => Effect.Effect<FileWatchOutput, E>;
2305
- export type FileUnwatchInput = {
2359
+ export type ExperimentalFileWatchOutput = void;
2360
+ export type ExperimentalFileWatchOperation<E = never> = (input: ExperimentalFileWatchInput) => Effect.Effect<ExperimentalFileWatchOutput, E>;
2361
+ export type ExperimentalFileUnwatchInput = {
2306
2362
  readonly location?: {
2307
2363
  readonly directory?: string | undefined;
2308
2364
  } | undefined;
2309
2365
  readonly path: string;
2310
2366
  };
2311
- export type FileUnwatchOutput = void;
2312
- export type FileUnwatchOperation<E = never> = (input: FileUnwatchInput) => Effect.Effect<FileUnwatchOutput, E>;
2313
- export interface FileApi<E = never> {
2314
- readonly list: FileListOperation<E>;
2315
- readonly find: FileFindOperation<E>;
2316
- readonly watch: FileWatchOperation<E>;
2317
- readonly unwatch: FileUnwatchOperation<E>;
2367
+ export type ExperimentalFileUnwatchOutput = void;
2368
+ export type ExperimentalFileUnwatchOperation<E = never> = (input: ExperimentalFileUnwatchInput) => Effect.Effect<ExperimentalFileUnwatchOutput, E>;
2369
+ export interface ExperimentalFileApi<E = never> {
2370
+ readonly watch: ExperimentalFileWatchOperation<E>;
2371
+ readonly unwatch: ExperimentalFileUnwatchOperation<E>;
2318
2372
  }
2319
2373
  export type CommandListInput = {
2320
2374
  readonly location?: {
@@ -2869,7 +2923,7 @@ export interface DebugApi<E = never> {
2869
2923
  readonly evict: DebugLocationEvictOperation<E>;
2870
2924
  };
2871
2925
  }
2872
- export type MigrationV1StatusOutput = {
2926
+ export type ExperimentalMigrationV1StatusOutput = {
2873
2927
  readonly status: "required" | "completed";
2874
2928
  } | {
2875
2929
  readonly status: "running";
@@ -2882,10 +2936,10 @@ export type MigrationV1StatusOutput = {
2882
2936
  readonly status: "error";
2883
2937
  readonly error: string;
2884
2938
  };
2885
- export type MigrationV1StatusOperation<E = never> = () => Effect.Effect<MigrationV1StatusOutput, E>;
2886
- export interface MigrationApi<E = never> {
2939
+ export type ExperimentalMigrationV1StatusOperation<E = never> = () => Effect.Effect<ExperimentalMigrationV1StatusOutput, E>;
2940
+ export interface ExperimentalMigrationApi<E = never> {
2887
2941
  readonly v1: {
2888
- readonly status: MigrationV1StatusOperation<E>;
2942
+ readonly status: ExperimentalMigrationV1StatusOperation<E>;
2889
2943
  };
2890
2944
  }
2891
2945
  export type WebsearchProvidersInput = {
@@ -2914,18 +2968,18 @@ export interface WebsearchApi<E = never> {
2914
2968
  readonly providers: WebsearchProvidersOperation<E>;
2915
2969
  readonly query: WebsearchQueryOperation<E>;
2916
2970
  }
2917
- export type UsageLimitsInput = {
2971
+ export type ExperimentalUsageLimitsInput = {
2918
2972
  readonly location?: {
2919
2973
  readonly directory?: string | undefined;
2920
2974
  } | undefined;
2921
2975
  };
2922
- export type UsageLimitsOutput = {
2976
+ export type ExperimentalUsageLimitsOutput = {
2923
2977
  readonly location: Location.PublicRef;
2924
2978
  readonly data: UsageLimits.Info | null;
2925
2979
  };
2926
- export type UsageLimitsOperation<E = never> = (input?: UsageLimitsInput) => Effect.Effect<UsageLimitsOutput, E>;
2927
- export interface UsageApi<E = never> {
2928
- readonly limits: UsageLimitsOperation<E>;
2980
+ export type ExperimentalUsageLimitsOperation<E = never> = (input?: ExperimentalUsageLimitsInput) => Effect.Effect<ExperimentalUsageLimitsOutput, E>;
2981
+ export interface ExperimentalUsageApi<E = never> {
2982
+ readonly limits: ExperimentalUsageLimitsOperation<E>;
2929
2983
  }
2930
2984
  export type ConfigGetInput = {
2931
2985
  readonly location?: {
@@ -2940,26 +2994,193 @@ export type ConfigShellsOutput = ReadonlyArray<{
2940
2994
  readonly acceptable: boolean;
2941
2995
  }>;
2942
2996
  export type ConfigShellsOperation<E = never> = () => Effect.Effect<ConfigShellsOutput, E>;
2943
- export type ConfigUpdateInput = {
2944
- readonly shell: string | null;
2945
- };
2946
- export type ConfigUpdateOutput = void;
2947
- export type ConfigUpdateOperation<E = never> = (input: ConfigUpdateInput) => Effect.Effect<ConfigUpdateOutput, E>;
2948
2997
  export interface ConfigApi<E = never> {
2949
2998
  readonly get: ConfigGetOperation<E>;
2950
2999
  readonly shells: ConfigShellsOperation<E>;
2951
- readonly update: ConfigUpdateOperation<E>;
3000
+ /** @deprecated Use `client.experimental.config.update`. Removed in the next minor. */
3001
+ readonly update: ExperimentalConfigUpdateOperation<E>;
2952
3002
  }
3003
+ export type ExperimentalConfigUpdateInput = {
3004
+ readonly shell: string | null;
3005
+ };
3006
+ export type ExperimentalConfigUpdateOutput = void;
3007
+ export type ExperimentalConfigUpdateOperation<E = never> = (input: ExperimentalConfigUpdateInput) => Effect.Effect<ExperimentalConfigUpdateOutput, E>;
3008
+ export interface ExperimentalConfigApi<E = never> {
3009
+ readonly update: ExperimentalConfigUpdateOperation<E>;
3010
+ }
3011
+ /** @deprecated Use `ExperimentalSessionStatsInput`. Removed in the next minor. */
3012
+ export type SessionStatsInput = ExperimentalSessionStatsInput;
3013
+ /** @deprecated Use `ExperimentalSessionStatsOutput`. Removed in the next minor. */
3014
+ export type SessionStatsOutput = ExperimentalSessionStatsOutput;
3015
+ /** @deprecated Use `ExperimentalSessionStatsOperation`. Removed in the next minor. */
3016
+ export type SessionStatsOperation<E = never> = ExperimentalSessionStatsOperation<E>;
3017
+ /** @deprecated Use `ExperimentalSessionImportInput`. Removed in the next minor. */
3018
+ export type SessionImportInput = ExperimentalSessionImportInput;
3019
+ /** @deprecated Use `ExperimentalSessionImportOutput`. Removed in the next minor. */
3020
+ export type SessionImportOutput = ExperimentalSessionImportOutput;
3021
+ /** @deprecated Use `ExperimentalSessionImportOperation`. Removed in the next minor. */
3022
+ export type SessionImportOperation<E = never> = ExperimentalSessionImportOperation<E>;
3023
+ /** @deprecated Use `ExperimentalSessionExportInput`. Removed in the next minor. */
3024
+ export type SessionExportInput = ExperimentalSessionExportInput;
3025
+ /** @deprecated Use `ExperimentalSessionExportOutput`. Removed in the next minor. */
3026
+ export type SessionExportOutput = ExperimentalSessionExportOutput;
3027
+ /** @deprecated Use `ExperimentalSessionExportOperation`. Removed in the next minor. */
3028
+ export type SessionExportOperation<E = never> = ExperimentalSessionExportOperation<E>;
3029
+ /** @deprecated Use `ExperimentalSessionSkillInput`. Removed in the next minor. */
3030
+ export type SessionSkillInput = ExperimentalSessionSkillInput;
3031
+ /** @deprecated Use `ExperimentalSessionSkillOutput`. Removed in the next minor. */
3032
+ export type SessionSkillOutput = ExperimentalSessionSkillOutput;
3033
+ /** @deprecated Use `ExperimentalSessionSkillOperation`. Removed in the next minor. */
3034
+ export type SessionSkillOperation<E = never> = ExperimentalSessionSkillOperation<E>;
3035
+ /** @deprecated Use `ExperimentalSessionWaitInput`. Removed in the next minor. */
3036
+ export type SessionWaitInput = ExperimentalSessionWaitInput;
3037
+ /** @deprecated Use `ExperimentalSessionWaitOutput`. Removed in the next minor. */
3038
+ export type SessionWaitOutput = ExperimentalSessionWaitOutput;
3039
+ /** @deprecated Use `ExperimentalSessionWaitOperation`. Removed in the next minor. */
3040
+ export type SessionWaitOperation<E = never> = ExperimentalSessionWaitOperation<E>;
3041
+ /** @deprecated Use `ExperimentalSessionInstructionsEntryListInput`. Removed in the next minor. */
3042
+ export type SessionInstructionsEntryListInput = ExperimentalSessionInstructionsEntryListInput;
3043
+ /** @deprecated Use `ExperimentalSessionInstructionsEntryListOutput`. Removed in the next minor. */
3044
+ export type SessionInstructionsEntryListOutput = ExperimentalSessionInstructionsEntryListOutput;
3045
+ /** @deprecated Use `ExperimentalSessionInstructionsEntryListOperation`. Removed in the next minor. */
3046
+ export type SessionInstructionsEntryListOperation<E = never> = ExperimentalSessionInstructionsEntryListOperation<E>;
3047
+ /** @deprecated Use `ExperimentalSessionInstructionsEntryPutInput`. Removed in the next minor. */
3048
+ export type SessionInstructionsEntryPutInput = ExperimentalSessionInstructionsEntryPutInput;
3049
+ /** @deprecated Use `ExperimentalSessionInstructionsEntryPutOutput`. Removed in the next minor. */
3050
+ export type SessionInstructionsEntryPutOutput = ExperimentalSessionInstructionsEntryPutOutput;
3051
+ /** @deprecated Use `ExperimentalSessionInstructionsEntryPutOperation`. Removed in the next minor. */
3052
+ export type SessionInstructionsEntryPutOperation<E = never> = ExperimentalSessionInstructionsEntryPutOperation<E>;
3053
+ /** @deprecated Use `ExperimentalSessionInstructionsEntryRemoveInput`. Removed in the next minor. */
3054
+ export type SessionInstructionsEntryRemoveInput = ExperimentalSessionInstructionsEntryRemoveInput;
3055
+ /** @deprecated Use `ExperimentalSessionInstructionsEntryRemoveOutput`. Removed in the next minor. */
3056
+ export type SessionInstructionsEntryRemoveOutput = ExperimentalSessionInstructionsEntryRemoveOutput;
3057
+ /** @deprecated Use `ExperimentalSessionInstructionsEntryRemoveOperation`. Removed in the next minor. */
3058
+ export type SessionInstructionsEntryRemoveOperation<E = never> = ExperimentalSessionInstructionsEntryRemoveOperation<E>;
3059
+ /** @deprecated Use `ExperimentalSessionLogInput`. Removed in the next minor. */
3060
+ export type SessionLogInput = ExperimentalSessionLogInput;
3061
+ /** @deprecated Use `ExperimentalSessionLogOutput`. Removed in the next minor. */
3062
+ export type SessionLogOutput = ExperimentalSessionLogOutput;
3063
+ /** @deprecated Use `ExperimentalSessionLogOperation`. Removed in the next minor. */
3064
+ export type SessionLogOperation<E = never> = ExperimentalSessionLogOperation<E>;
3065
+ /** @deprecated Use `ExperimentalGenerateTextInput`. Removed in the next minor. */
3066
+ export type GenerateTextInput = ExperimentalGenerateTextInput;
3067
+ /** @deprecated Use `ExperimentalGenerateTextOutput`. Removed in the next minor. */
3068
+ export type GenerateTextOutput = ExperimentalGenerateTextOutput;
3069
+ /** @deprecated Use `ExperimentalGenerateTextOperation`. Removed in the next minor. */
3070
+ export type GenerateTextOperation<E = never> = ExperimentalGenerateTextOperation<E>;
3071
+ /** @deprecated Use `ExperimentalGenerateImageInput`. Removed in the next minor. */
3072
+ export type GenerateImageInput = ExperimentalGenerateImageInput;
3073
+ /** @deprecated Use `ExperimentalGenerateImageOutput`. Removed in the next minor. */
3074
+ export type GenerateImageOutput = ExperimentalGenerateImageOutput;
3075
+ /** @deprecated Use `ExperimentalGenerateImageOperation`. Removed in the next minor. */
3076
+ export type GenerateImageOperation<E = never> = ExperimentalGenerateImageOperation<E>;
3077
+ /** @deprecated Use `ExperimentalGenerateDecisionsInput`. Removed in the next minor. */
3078
+ export type GenerateDecisionsInput = ExperimentalGenerateDecisionsInput;
3079
+ /** @deprecated Use `ExperimentalGenerateDecisionsOutput`. Removed in the next minor. */
3080
+ export type GenerateDecisionsOutput = ExperimentalGenerateDecisionsOutput;
3081
+ /** @deprecated Use `ExperimentalGenerateDecisionsOperation`. Removed in the next minor. */
3082
+ export type GenerateDecisionsOperation<E = never> = ExperimentalGenerateDecisionsOperation<E>;
3083
+ /** @deprecated Use `ExperimentalVoiceModelsOutput`. Removed in the next minor. */
3084
+ export type VoiceModelsOutput = ExperimentalVoiceModelsOutput;
3085
+ /** @deprecated Use `ExperimentalVoiceModelsOperation`. Removed in the next minor. */
3086
+ export type VoiceModelsOperation<E = never> = ExperimentalVoiceModelsOperation<E>;
3087
+ /** @deprecated Use `ExperimentalVoiceSessionInput`. Removed in the next minor. */
3088
+ export type VoiceSessionInput = ExperimentalVoiceSessionInput;
3089
+ /** @deprecated Use `ExperimentalVoiceSessionOutput`. Removed in the next minor. */
3090
+ export type VoiceSessionOutput = ExperimentalVoiceSessionOutput;
3091
+ /** @deprecated Use `ExperimentalVoiceSessionOperation`. Removed in the next minor. */
3092
+ export type VoiceSessionOperation<E = never> = ExperimentalVoiceSessionOperation<E>;
3093
+ /** @deprecated Use `ExperimentalIntegrationWellknownAddInput`. Removed in the next minor. */
3094
+ export type IntegrationWellknownAddInput = ExperimentalIntegrationWellknownAddInput;
3095
+ /** @deprecated Use `ExperimentalIntegrationWellknownAddOutput`. Removed in the next minor. */
3096
+ export type IntegrationWellknownAddOutput = ExperimentalIntegrationWellknownAddOutput;
3097
+ /** @deprecated Use `ExperimentalIntegrationWellknownAddOperation`. Removed in the next minor. */
3098
+ export type IntegrationWellknownAddOperation<E = never> = ExperimentalIntegrationWellknownAddOperation<E>;
3099
+ /** @deprecated Use `ExperimentalMcpAddInput`. Removed in the next minor. */
3100
+ export type McpAddInput = ExperimentalMcpAddInput;
3101
+ /** @deprecated Use `ExperimentalMcpAddOutput`. Removed in the next minor. */
3102
+ export type McpAddOutput = ExperimentalMcpAddOutput;
3103
+ /** @deprecated Use `ExperimentalMcpAddOperation`. Removed in the next minor. */
3104
+ export type McpAddOperation<E = never> = ExperimentalMcpAddOperation<E>;
3105
+ /** @deprecated Use `ExperimentalMcpRemoveInput`. Removed in the next minor. */
3106
+ export type McpRemoveInput = ExperimentalMcpRemoveInput;
3107
+ /** @deprecated Use `ExperimentalMcpRemoveOutput`. Removed in the next minor. */
3108
+ export type McpRemoveOutput = ExperimentalMcpRemoveOutput;
3109
+ /** @deprecated Use `ExperimentalMcpRemoveOperation`. Removed in the next minor. */
3110
+ export type McpRemoveOperation<E = never> = ExperimentalMcpRemoveOperation<E>;
3111
+ /** @deprecated Use `ExperimentalMcpConnectInput`. Removed in the next minor. */
3112
+ export type McpConnectInput = ExperimentalMcpConnectInput;
3113
+ /** @deprecated Use `ExperimentalMcpConnectOutput`. Removed in the next minor. */
3114
+ export type McpConnectOutput = ExperimentalMcpConnectOutput;
3115
+ /** @deprecated Use `ExperimentalMcpConnectOperation`. Removed in the next minor. */
3116
+ export type McpConnectOperation<E = never> = ExperimentalMcpConnectOperation<E>;
3117
+ /** @deprecated Use `ExperimentalMcpDisconnectInput`. Removed in the next minor. */
3118
+ export type McpDisconnectInput = ExperimentalMcpDisconnectInput;
3119
+ /** @deprecated Use `ExperimentalMcpDisconnectOutput`. Removed in the next minor. */
3120
+ export type McpDisconnectOutput = ExperimentalMcpDisconnectOutput;
3121
+ /** @deprecated Use `ExperimentalMcpDisconnectOperation`. Removed in the next minor. */
3122
+ export type McpDisconnectOperation<E = never> = ExperimentalMcpDisconnectOperation<E>;
3123
+ /** @deprecated Use `ExperimentalMcpClientTokenInput`. Removed in the next minor. */
3124
+ export type McpClientTokenInput = ExperimentalMcpClientTokenInput;
3125
+ /** @deprecated Use `ExperimentalMcpClientTokenOutput`. Removed in the next minor. */
3126
+ export type McpClientTokenOutput = ExperimentalMcpClientTokenOutput;
3127
+ /** @deprecated Use `ExperimentalMcpClientTokenOperation`. Removed in the next minor. */
3128
+ export type McpClientTokenOperation<E = never> = ExperimentalMcpClientTokenOperation<E>;
3129
+ /** @deprecated Use `ExperimentalFileWatchInput`. Removed in the next minor. */
3130
+ export type FileWatchInput = ExperimentalFileWatchInput;
3131
+ /** @deprecated Use `ExperimentalFileWatchOutput`. Removed in the next minor. */
3132
+ export type FileWatchOutput = ExperimentalFileWatchOutput;
3133
+ /** @deprecated Use `ExperimentalFileWatchOperation`. Removed in the next minor. */
3134
+ export type FileWatchOperation<E = never> = ExperimentalFileWatchOperation<E>;
3135
+ /** @deprecated Use `ExperimentalFileUnwatchInput`. Removed in the next minor. */
3136
+ export type FileUnwatchInput = ExperimentalFileUnwatchInput;
3137
+ /** @deprecated Use `ExperimentalFileUnwatchOutput`. Removed in the next minor. */
3138
+ export type FileUnwatchOutput = ExperimentalFileUnwatchOutput;
3139
+ /** @deprecated Use `ExperimentalFileUnwatchOperation`. Removed in the next minor. */
3140
+ export type FileUnwatchOperation<E = never> = ExperimentalFileUnwatchOperation<E>;
3141
+ /** @deprecated Use `ExperimentalMigrationV1StatusOutput`. Removed in the next minor. */
3142
+ export type MigrationV1StatusOutput = ExperimentalMigrationV1StatusOutput;
3143
+ /** @deprecated Use `ExperimentalMigrationV1StatusOperation`. Removed in the next minor. */
3144
+ export type MigrationV1StatusOperation<E = never> = ExperimentalMigrationV1StatusOperation<E>;
3145
+ /** @deprecated Use `ExperimentalUsageLimitsInput`. Removed in the next minor. */
3146
+ export type UsageLimitsInput = ExperimentalUsageLimitsInput;
3147
+ /** @deprecated Use `ExperimentalUsageLimitsOutput`. Removed in the next minor. */
3148
+ export type UsageLimitsOutput = ExperimentalUsageLimitsOutput;
3149
+ /** @deprecated Use `ExperimentalUsageLimitsOperation`. Removed in the next minor. */
3150
+ export type UsageLimitsOperation<E = never> = ExperimentalUsageLimitsOperation<E>;
3151
+ /** @deprecated Use `ExperimentalConfigUpdateInput`. Removed in the next minor. */
3152
+ export type ConfigUpdateInput = ExperimentalConfigUpdateInput;
3153
+ /** @deprecated Use `ExperimentalConfigUpdateOutput`. Removed in the next minor. */
3154
+ export type ConfigUpdateOutput = ExperimentalConfigUpdateOutput;
3155
+ /** @deprecated Use `ExperimentalConfigUpdateOperation`. Removed in the next minor. */
3156
+ export type ConfigUpdateOperation<E = never> = ExperimentalConfigUpdateOperation<E>;
3157
+ /** @deprecated Use `ExperimentalGenerateApi`. Removed in the next minor. */
3158
+ export type GenerateApi<E = never> = ExperimentalGenerateApi<E>;
3159
+ /** @deprecated Use `ExperimentalVoiceApi`. Removed in the next minor. */
3160
+ export type VoiceApi<E = never> = ExperimentalVoiceApi<E>;
3161
+ /** @deprecated Use `ExperimentalMigrationApi`. Removed in the next minor. */
3162
+ export type MigrationApi<E = never> = ExperimentalMigrationApi<E>;
3163
+ /** @deprecated Use `ExperimentalUsageApi`. Removed in the next minor. */
3164
+ export type UsageApi<E = never> = ExperimentalUsageApi<E>;
2953
3165
  export interface AppApi<E = never> {
2954
3166
  readonly server: ServerApi<E>;
2955
3167
  readonly location: LocationApi<E>;
2956
3168
  readonly agent: AgentApi<E>;
2957
3169
  readonly plugin: PluginApi<E>;
2958
3170
  readonly session: SessionApi<E>;
3171
+ readonly experimental: ExperimentalApi<E> & {
3172
+ readonly session: ExperimentalSessionApi<E>;
3173
+ readonly generate: ExperimentalGenerateApi<E>;
3174
+ readonly voice: ExperimentalVoiceApi<E>;
3175
+ readonly integration: ExperimentalIntegrationApi<E>;
3176
+ readonly mcp: ExperimentalMcpApi<E>;
3177
+ readonly file: ExperimentalFileApi<E>;
3178
+ readonly migration: ExperimentalMigrationApi<E>;
3179
+ readonly usage: ExperimentalUsageApi<E>;
3180
+ readonly config: ExperimentalConfigApi<E>;
3181
+ };
2959
3182
  readonly message: MessageApi<E>;
2960
3183
  readonly model: ModelApi<E>;
2961
- readonly generate: GenerateApi<E>;
2962
- readonly voice: VoiceApi<E>;
2963
3184
  readonly provider: ProviderApi<E>;
2964
3185
  readonly integration: IntegrationApi<E>;
2965
3186
  readonly mcp: McpApi<E>;
@@ -2973,14 +3194,40 @@ export interface AppApi<E = never> {
2973
3194
  readonly rpc: RpcApi<E>;
2974
3195
  readonly event: EventApi<E>;
2975
3196
  readonly pty: PtyApi<E>;
2976
- readonly experimental: ExperimentalApi<E>;
2977
3197
  readonly shell: ShellApi<E>;
2978
3198
  readonly reference: ReferenceApi<E>;
2979
3199
  readonly worktree: WorktreeApi<E>;
2980
3200
  readonly vcs: VcsApi<E>;
2981
3201
  readonly debug: DebugApi<E>;
2982
- readonly migration: MigrationApi<E>;
2983
3202
  readonly websearch: WebsearchApi<E>;
2984
- readonly usage: UsageApi<E>;
2985
3203
  readonly config: ConfigApi<E>;
3204
+ /** @deprecated Use `client.experimental.generate`. Removed in the next minor. */
3205
+ readonly generate: {
3206
+ /** @deprecated Use `client.experimental.generate.text`. Removed in the next minor. */
3207
+ readonly text: ExperimentalGenerateTextOperation<E>;
3208
+ /** @deprecated Use `client.experimental.generate.image`. Removed in the next minor. */
3209
+ readonly image: ExperimentalGenerateImageOperation<E>;
3210
+ /** @deprecated Use `client.experimental.generate.decisions`. Removed in the next minor. */
3211
+ readonly decisions: ExperimentalGenerateDecisionsOperation<E>;
3212
+ };
3213
+ /** @deprecated Use `client.experimental.voice`. Removed in the next minor. */
3214
+ readonly voice: {
3215
+ /** @deprecated Use `client.experimental.voice.models`. Removed in the next minor. */
3216
+ readonly models: ExperimentalVoiceModelsOperation<E>;
3217
+ /** @deprecated Use `client.experimental.voice.session`. Removed in the next minor. */
3218
+ readonly session: ExperimentalVoiceSessionOperation<E>;
3219
+ };
3220
+ /** @deprecated Use `client.experimental.migration`. Removed in the next minor. */
3221
+ readonly migration: {
3222
+ /** @deprecated Use `client.experimental.migration.v1`. Removed in the next minor. */
3223
+ readonly v1: {
3224
+ /** @deprecated Use `client.experimental.migration.v1.status`. Removed in the next minor. */
3225
+ readonly status: ExperimentalMigrationV1StatusOperation<E>;
3226
+ };
3227
+ };
3228
+ /** @deprecated Use `client.experimental.usage`. Removed in the next minor. */
3229
+ readonly usage: {
3230
+ /** @deprecated Use `client.experimental.usage.limits`. Removed in the next minor. */
3231
+ readonly limits: ExperimentalUsageLimitsOperation<E>;
3232
+ };
2986
3233
  }