@opencode-ai/client 0.0.0-next-17074 → 0.0.0-next-17077

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.
@@ -22,9 +22,9 @@ import type { Shell } from "@opencode-ai/schema/shell";
22
22
  import type { DateTime } from "effect";
23
23
  import type { Provider } from "@opencode-ai/schema/provider";
24
24
  import type { Integration } from "@opencode-ai/schema/integration";
25
+ import type { Form } from "@opencode-ai/schema/form";
25
26
  import type { Mcp } from "@opencode-ai/schema/mcp";
26
27
  import type { Credential } from "@opencode-ai/schema/credential";
27
- import type { Form } from "@opencode-ai/schema/form";
28
28
  import type { Permission } from "@opencode-ai/schema/permission";
29
29
  import type { PermissionSaved } from "@opencode-ai/schema/permission-saved";
30
30
  import type { FileSystem } from "@opencode-ai/schema/filesystem";
@@ -1417,6 +1417,7 @@ export type Endpoint10_3Input = {
1417
1417
  readonly workspace?: string | undefined;
1418
1418
  } | undefined;
1419
1419
  readonly key: string;
1420
+ readonly answer?: Form.Answer | undefined;
1420
1421
  readonly label?: string | undefined;
1421
1422
  };
1422
1423
  export type Endpoint10_3Output = void;
@@ -1428,9 +1429,7 @@ export type Endpoint10_4Input = {
1428
1429
  readonly workspace?: string | undefined;
1429
1430
  } | undefined;
1430
1431
  readonly methodID: Integration.MethodID;
1431
- readonly inputs: {
1432
- readonly [x: string]: string;
1433
- };
1432
+ readonly answer?: Form.Answer | undefined;
1434
1433
  readonly label?: string | undefined;
1435
1434
  };
1436
1435
  export type Endpoint10_4Output = {
@@ -181,6 +181,239 @@ export declare const make: (options?: {
181
181
  readonly metadata?: {
182
182
  readonly [x: string]: unknown;
183
183
  } | undefined;
184
+ } | {
185
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
186
+ readonly data: {
187
+ readonly form: {
188
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
189
+ readonly sessionID: string;
190
+ readonly title: string;
191
+ readonly fields: readonly [{
192
+ readonly type: "string";
193
+ readonly key: string;
194
+ readonly required?: boolean | undefined;
195
+ readonly description?: string | undefined;
196
+ readonly format?: "email" | "uri" | "date" | "date-time" | undefined;
197
+ readonly minLength?: number | undefined;
198
+ readonly maxLength?: number | undefined;
199
+ readonly pattern?: string | undefined;
200
+ readonly placeholder?: string | undefined;
201
+ readonly default?: string | undefined;
202
+ readonly options?: readonly {
203
+ readonly value: string;
204
+ readonly label: string;
205
+ readonly description?: string | undefined;
206
+ }[] | undefined;
207
+ readonly custom?: boolean | undefined;
208
+ readonly title?: string | undefined;
209
+ readonly when?: readonly {
210
+ readonly key: string;
211
+ readonly op: "eq" | "neq";
212
+ readonly value: string | number | boolean;
213
+ }[] | undefined;
214
+ } | {
215
+ readonly type: "number";
216
+ readonly key: string;
217
+ readonly required?: boolean | undefined;
218
+ readonly description?: string | undefined;
219
+ readonly default?: number | undefined;
220
+ readonly title?: string | undefined;
221
+ readonly when?: readonly {
222
+ readonly key: string;
223
+ readonly op: "eq" | "neq";
224
+ readonly value: string | number | boolean;
225
+ }[] | undefined;
226
+ readonly minimum?: number | undefined;
227
+ readonly maximum?: number | undefined;
228
+ } | {
229
+ readonly type: "integer";
230
+ readonly key: string;
231
+ readonly required?: boolean | undefined;
232
+ readonly description?: string | undefined;
233
+ readonly default?: number | undefined;
234
+ readonly title?: string | undefined;
235
+ readonly when?: readonly {
236
+ readonly key: string;
237
+ readonly op: "eq" | "neq";
238
+ readonly value: string | number | boolean;
239
+ }[] | undefined;
240
+ readonly minimum?: number | undefined;
241
+ readonly maximum?: number | undefined;
242
+ } | {
243
+ readonly type: "boolean";
244
+ readonly key: string;
245
+ readonly required?: boolean | undefined;
246
+ readonly description?: string | undefined;
247
+ readonly default?: boolean | undefined;
248
+ readonly title?: string | undefined;
249
+ readonly when?: readonly {
250
+ readonly key: string;
251
+ readonly op: "eq" | "neq";
252
+ readonly value: string | number | boolean;
253
+ }[] | undefined;
254
+ } | {
255
+ readonly type: "multiselect";
256
+ readonly key: string;
257
+ readonly options: readonly {
258
+ readonly value: string;
259
+ readonly label: string;
260
+ readonly description?: string | undefined;
261
+ }[];
262
+ readonly required?: boolean | undefined;
263
+ readonly description?: string | undefined;
264
+ readonly default?: readonly string[] | undefined;
265
+ readonly custom?: boolean | undefined;
266
+ readonly title?: string | undefined;
267
+ readonly when?: readonly {
268
+ readonly key: string;
269
+ readonly op: "eq" | "neq";
270
+ readonly value: string | number | boolean;
271
+ }[] | undefined;
272
+ readonly minItems?: number | undefined;
273
+ readonly maxItems?: number | undefined;
274
+ } | {
275
+ readonly type: "external";
276
+ readonly url: string;
277
+ readonly key: string;
278
+ readonly description?: string | undefined;
279
+ readonly title?: string | undefined;
280
+ }, ...({
281
+ readonly type: "string";
282
+ readonly key: string;
283
+ readonly required?: boolean | undefined;
284
+ readonly description?: string | undefined;
285
+ readonly format?: "email" | "uri" | "date" | "date-time" | undefined;
286
+ readonly minLength?: number | undefined;
287
+ readonly maxLength?: number | undefined;
288
+ readonly pattern?: string | undefined;
289
+ readonly placeholder?: string | undefined;
290
+ readonly default?: string | undefined;
291
+ readonly options?: readonly {
292
+ readonly value: string;
293
+ readonly label: string;
294
+ readonly description?: string | undefined;
295
+ }[] | undefined;
296
+ readonly custom?: boolean | undefined;
297
+ readonly title?: string | undefined;
298
+ readonly when?: readonly {
299
+ readonly key: string;
300
+ readonly op: "eq" | "neq";
301
+ readonly value: string | number | boolean;
302
+ }[] | undefined;
303
+ } | {
304
+ readonly type: "number";
305
+ readonly key: string;
306
+ readonly required?: boolean | undefined;
307
+ readonly description?: string | undefined;
308
+ readonly default?: number | undefined;
309
+ readonly title?: string | undefined;
310
+ readonly when?: readonly {
311
+ readonly key: string;
312
+ readonly op: "eq" | "neq";
313
+ readonly value: string | number | boolean;
314
+ }[] | undefined;
315
+ readonly minimum?: number | undefined;
316
+ readonly maximum?: number | undefined;
317
+ } | {
318
+ readonly type: "integer";
319
+ readonly key: string;
320
+ readonly required?: boolean | undefined;
321
+ readonly description?: string | undefined;
322
+ readonly default?: number | undefined;
323
+ readonly title?: string | undefined;
324
+ readonly when?: readonly {
325
+ readonly key: string;
326
+ readonly op: "eq" | "neq";
327
+ readonly value: string | number | boolean;
328
+ }[] | undefined;
329
+ readonly minimum?: number | undefined;
330
+ readonly maximum?: number | undefined;
331
+ } | {
332
+ readonly type: "boolean";
333
+ readonly key: string;
334
+ readonly required?: boolean | undefined;
335
+ readonly description?: string | undefined;
336
+ readonly default?: boolean | undefined;
337
+ readonly title?: string | undefined;
338
+ readonly when?: readonly {
339
+ readonly key: string;
340
+ readonly op: "eq" | "neq";
341
+ readonly value: string | number | boolean;
342
+ }[] | undefined;
343
+ } | {
344
+ readonly type: "multiselect";
345
+ readonly key: string;
346
+ readonly options: readonly {
347
+ readonly value: string;
348
+ readonly label: string;
349
+ readonly description?: string | undefined;
350
+ }[];
351
+ readonly required?: boolean | undefined;
352
+ readonly description?: string | undefined;
353
+ readonly default?: readonly string[] | undefined;
354
+ readonly custom?: boolean | undefined;
355
+ readonly title?: string | undefined;
356
+ readonly when?: readonly {
357
+ readonly key: string;
358
+ readonly op: "eq" | "neq";
359
+ readonly value: string | number | boolean;
360
+ }[] | undefined;
361
+ readonly minItems?: number | undefined;
362
+ readonly maxItems?: number | undefined;
363
+ } | {
364
+ readonly type: "external";
365
+ readonly url: string;
366
+ readonly key: string;
367
+ readonly description?: string | undefined;
368
+ readonly title?: string | undefined;
369
+ })[]];
370
+ readonly metadata?: {
371
+ readonly [x: string]: unknown;
372
+ } | undefined;
373
+ };
374
+ };
375
+ readonly type: "form.created";
376
+ readonly created: import("effect/DateTime").Utc;
377
+ readonly location?: {
378
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
379
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
380
+ } | undefined;
381
+ readonly metadata?: {
382
+ readonly [x: string]: unknown;
383
+ } | undefined;
384
+ } | {
385
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
386
+ readonly data: {
387
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
388
+ readonly sessionID: string;
389
+ readonly answer: {
390
+ readonly [x: string]: string | number | boolean | readonly string[];
391
+ };
392
+ };
393
+ readonly type: "form.replied";
394
+ readonly created: import("effect/DateTime").Utc;
395
+ readonly location?: {
396
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
397
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
398
+ } | undefined;
399
+ readonly metadata?: {
400
+ readonly [x: string]: unknown;
401
+ } | undefined;
402
+ } | {
403
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
404
+ readonly data: {
405
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
406
+ readonly sessionID: string;
407
+ };
408
+ readonly type: "form.cancelled";
409
+ readonly created: import("effect/DateTime").Utc;
410
+ readonly location?: {
411
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
412
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
413
+ } | undefined;
414
+ readonly metadata?: {
415
+ readonly [x: string]: unknown;
416
+ } | undefined;
184
417
  } | {
185
418
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
186
419
  readonly data: {};
@@ -270,11 +503,11 @@ export declare const make: (options?: {
270
503
  readonly [x: string]: unknown;
271
504
  };
272
505
  readonly command: string;
506
+ readonly status: "running" | "exited" | "timeout" | "killed";
273
507
  readonly time: {
274
508
  readonly started: number;
275
509
  readonly completed?: number | undefined;
276
510
  };
277
- readonly status: "running" | "exited" | "timeout" | "killed";
278
511
  readonly cwd: string;
279
512
  readonly shell: string;
280
513
  readonly file: string;
@@ -332,6 +565,7 @@ export declare const make: (options?: {
332
565
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
333
566
  readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
334
567
  readonly slug: string;
568
+ readonly title?: string | undefined;
335
569
  readonly model?: {
336
570
  readonly id: string & import("effect/Brand").Brand<"Model.ID">;
337
571
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -340,7 +574,6 @@ export declare const make: (options?: {
340
574
  readonly agent?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
341
575
  readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
342
576
  readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
343
- readonly title?: string | undefined;
344
577
  };
345
578
  readonly durable: {
346
579
  readonly aggregateID: string;
@@ -833,11 +1066,11 @@ export declare const make: (options?: {
833
1066
  readonly [x: string]: unknown;
834
1067
  };
835
1068
  readonly command: string;
1069
+ readonly status: "running" | "exited" | "timeout" | "killed";
836
1070
  readonly time: {
837
1071
  readonly started: number;
838
1072
  readonly completed?: number | undefined;
839
1073
  };
840
- readonly status: "running" | "exited" | "timeout" | "killed";
841
1074
  readonly cwd: string;
842
1075
  readonly shell: string;
843
1076
  readonly file: string;
@@ -869,11 +1102,11 @@ export declare const make: (options?: {
869
1102
  readonly [x: string]: unknown;
870
1103
  };
871
1104
  readonly command: string;
1105
+ readonly status: "running" | "exited" | "timeout" | "killed";
872
1106
  readonly time: {
873
1107
  readonly started: number;
874
1108
  readonly completed?: number | undefined;
875
1109
  };
876
- readonly status: "running" | "exited" | "timeout" | "killed";
877
1110
  readonly cwd: string;
878
1111
  readonly shell: string;
879
1112
  readonly file: string;
@@ -1548,239 +1781,6 @@ export declare const make: (options?: {
1548
1781
  readonly metadata?: {
1549
1782
  readonly [x: string]: unknown;
1550
1783
  } | undefined;
1551
- } | {
1552
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1553
- readonly data: {
1554
- readonly form: {
1555
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
1556
- readonly sessionID: string;
1557
- readonly fields: readonly [{
1558
- readonly type: "string";
1559
- readonly key: string;
1560
- readonly required?: boolean | undefined;
1561
- readonly description?: string | undefined;
1562
- readonly placeholder?: string | undefined;
1563
- readonly when?: readonly {
1564
- readonly key: string;
1565
- readonly op: "eq" | "neq";
1566
- readonly value: string | number | boolean;
1567
- }[] | undefined;
1568
- readonly options?: readonly {
1569
- readonly label: string;
1570
- readonly value: string;
1571
- readonly description?: string | undefined;
1572
- }[] | undefined;
1573
- readonly default?: string | undefined;
1574
- readonly title?: string | undefined;
1575
- readonly format?: "uri" | "email" | "date" | "date-time" | undefined;
1576
- readonly minLength?: number | undefined;
1577
- readonly maxLength?: number | undefined;
1578
- readonly pattern?: string | undefined;
1579
- readonly custom?: boolean | undefined;
1580
- } | {
1581
- readonly type: "number";
1582
- readonly key: string;
1583
- readonly required?: boolean | undefined;
1584
- readonly description?: string | undefined;
1585
- readonly when?: readonly {
1586
- readonly key: string;
1587
- readonly op: "eq" | "neq";
1588
- readonly value: string | number | boolean;
1589
- }[] | undefined;
1590
- readonly default?: number | undefined;
1591
- readonly title?: string | undefined;
1592
- readonly minimum?: number | undefined;
1593
- readonly maximum?: number | undefined;
1594
- } | {
1595
- readonly type: "integer";
1596
- readonly key: string;
1597
- readonly required?: boolean | undefined;
1598
- readonly description?: string | undefined;
1599
- readonly when?: readonly {
1600
- readonly key: string;
1601
- readonly op: "eq" | "neq";
1602
- readonly value: string | number | boolean;
1603
- }[] | undefined;
1604
- readonly default?: number | undefined;
1605
- readonly title?: string | undefined;
1606
- readonly minimum?: number | undefined;
1607
- readonly maximum?: number | undefined;
1608
- } | {
1609
- readonly type: "boolean";
1610
- readonly key: string;
1611
- readonly required?: boolean | undefined;
1612
- readonly description?: string | undefined;
1613
- readonly when?: readonly {
1614
- readonly key: string;
1615
- readonly op: "eq" | "neq";
1616
- readonly value: string | number | boolean;
1617
- }[] | undefined;
1618
- readonly default?: boolean | undefined;
1619
- readonly title?: string | undefined;
1620
- } | {
1621
- readonly type: "multiselect";
1622
- readonly key: string;
1623
- readonly options: readonly {
1624
- readonly label: string;
1625
- readonly value: string;
1626
- readonly description?: string | undefined;
1627
- }[];
1628
- readonly required?: boolean | undefined;
1629
- readonly description?: string | undefined;
1630
- readonly when?: readonly {
1631
- readonly key: string;
1632
- readonly op: "eq" | "neq";
1633
- readonly value: string | number | boolean;
1634
- }[] | undefined;
1635
- readonly default?: readonly string[] | undefined;
1636
- readonly title?: string | undefined;
1637
- readonly custom?: boolean | undefined;
1638
- readonly minItems?: number | undefined;
1639
- readonly maxItems?: number | undefined;
1640
- } | {
1641
- readonly type: "external";
1642
- readonly url: string;
1643
- readonly key: string;
1644
- readonly description?: string | undefined;
1645
- readonly title?: string | undefined;
1646
- }, ...({
1647
- readonly type: "string";
1648
- readonly key: string;
1649
- readonly required?: boolean | undefined;
1650
- readonly description?: string | undefined;
1651
- readonly placeholder?: string | undefined;
1652
- readonly when?: readonly {
1653
- readonly key: string;
1654
- readonly op: "eq" | "neq";
1655
- readonly value: string | number | boolean;
1656
- }[] | undefined;
1657
- readonly options?: readonly {
1658
- readonly label: string;
1659
- readonly value: string;
1660
- readonly description?: string | undefined;
1661
- }[] | undefined;
1662
- readonly default?: string | undefined;
1663
- readonly title?: string | undefined;
1664
- readonly format?: "uri" | "email" | "date" | "date-time" | undefined;
1665
- readonly minLength?: number | undefined;
1666
- readonly maxLength?: number | undefined;
1667
- readonly pattern?: string | undefined;
1668
- readonly custom?: boolean | undefined;
1669
- } | {
1670
- readonly type: "number";
1671
- readonly key: string;
1672
- readonly required?: boolean | undefined;
1673
- readonly description?: string | undefined;
1674
- readonly when?: readonly {
1675
- readonly key: string;
1676
- readonly op: "eq" | "neq";
1677
- readonly value: string | number | boolean;
1678
- }[] | undefined;
1679
- readonly default?: number | undefined;
1680
- readonly title?: string | undefined;
1681
- readonly minimum?: number | undefined;
1682
- readonly maximum?: number | undefined;
1683
- } | {
1684
- readonly type: "integer";
1685
- readonly key: string;
1686
- readonly required?: boolean | undefined;
1687
- readonly description?: string | undefined;
1688
- readonly when?: readonly {
1689
- readonly key: string;
1690
- readonly op: "eq" | "neq";
1691
- readonly value: string | number | boolean;
1692
- }[] | undefined;
1693
- readonly default?: number | undefined;
1694
- readonly title?: string | undefined;
1695
- readonly minimum?: number | undefined;
1696
- readonly maximum?: number | undefined;
1697
- } | {
1698
- readonly type: "boolean";
1699
- readonly key: string;
1700
- readonly required?: boolean | undefined;
1701
- readonly description?: string | undefined;
1702
- readonly when?: readonly {
1703
- readonly key: string;
1704
- readonly op: "eq" | "neq";
1705
- readonly value: string | number | boolean;
1706
- }[] | undefined;
1707
- readonly default?: boolean | undefined;
1708
- readonly title?: string | undefined;
1709
- } | {
1710
- readonly type: "multiselect";
1711
- readonly key: string;
1712
- readonly options: readonly {
1713
- readonly label: string;
1714
- readonly value: string;
1715
- readonly description?: string | undefined;
1716
- }[];
1717
- readonly required?: boolean | undefined;
1718
- readonly description?: string | undefined;
1719
- readonly when?: readonly {
1720
- readonly key: string;
1721
- readonly op: "eq" | "neq";
1722
- readonly value: string | number | boolean;
1723
- }[] | undefined;
1724
- readonly default?: readonly string[] | undefined;
1725
- readonly title?: string | undefined;
1726
- readonly custom?: boolean | undefined;
1727
- readonly minItems?: number | undefined;
1728
- readonly maxItems?: number | undefined;
1729
- } | {
1730
- readonly type: "external";
1731
- readonly url: string;
1732
- readonly key: string;
1733
- readonly description?: string | undefined;
1734
- readonly title?: string | undefined;
1735
- })[]];
1736
- readonly title: string;
1737
- readonly metadata?: {
1738
- readonly [x: string]: unknown;
1739
- } | undefined;
1740
- };
1741
- };
1742
- readonly type: "form.created";
1743
- readonly created: import("effect/DateTime").Utc;
1744
- readonly location?: {
1745
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1746
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1747
- } | undefined;
1748
- readonly metadata?: {
1749
- readonly [x: string]: unknown;
1750
- } | undefined;
1751
- } | {
1752
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1753
- readonly data: {
1754
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
1755
- readonly sessionID: string;
1756
- readonly answer: {
1757
- readonly [x: string]: string | number | boolean | readonly string[];
1758
- };
1759
- };
1760
- readonly type: "form.replied";
1761
- readonly created: import("effect/DateTime").Utc;
1762
- readonly location?: {
1763
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1764
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1765
- } | undefined;
1766
- readonly metadata?: {
1767
- readonly [x: string]: unknown;
1768
- } | undefined;
1769
- } | {
1770
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1771
- readonly data: {
1772
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
1773
- readonly sessionID: string;
1774
- };
1775
- readonly type: "form.cancelled";
1776
- readonly created: import("effect/DateTime").Utc;
1777
- readonly location?: {
1778
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1779
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1780
- } | undefined;
1781
- readonly metadata?: {
1782
- readonly [x: string]: unknown;
1783
- } | undefined;
1784
1784
  } | {
1785
1785
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1786
1786
  readonly data: {};
@@ -1943,10 +1943,10 @@ export declare const make: (options?: {
1943
1943
  readonly info: {
1944
1944
  readonly id: string & import("effect/Brand").Brand<"PtyID">;
1945
1945
  readonly command: string;
1946
+ readonly title: string;
1946
1947
  readonly status: "running" | "exited";
1947
1948
  readonly pid: number;
1948
1949
  readonly cwd: string;
1949
- readonly title: string;
1950
1950
  readonly args: readonly string[];
1951
1951
  readonly exitCode?: number | undefined;
1952
1952
  };
@@ -1966,10 +1966,10 @@ export declare const make: (options?: {
1966
1966
  readonly info: {
1967
1967
  readonly id: string & import("effect/Brand").Brand<"PtyID">;
1968
1968
  readonly command: string;
1969
+ readonly title: string;
1969
1970
  readonly status: "running" | "exited";
1970
1971
  readonly pid: number;
1971
1972
  readonly cwd: string;
1972
- readonly title: string;
1973
1973
  readonly args: readonly string[];
1974
1974
  readonly exitCode?: number | undefined;
1975
1975
  };
@@ -2098,8 +2098,8 @@ export declare const make: (options?: {
2098
2098
  readonly action?: {
2099
2099
  readonly message: string;
2100
2100
  readonly label: string;
2101
- readonly reason: string;
2102
2101
  readonly title: string;
2102
+ readonly reason: string;
2103
2103
  readonly provider: string;
2104
2104
  readonly link?: string | undefined;
2105
2105
  } | undefined;
@@ -188,12 +188,12 @@ const Endpoint10_2 = (raw) => (input) => preserveEffect()(raw["integration.wellk
188
188
  const Endpoint10_3 = (raw) => (input) => preserveEffect()(raw["integration.connect.key"]({
189
189
  params: { integrationID: input["integrationID"] },
190
190
  query: { location: input["location"] },
191
- payload: { key: input["key"], label: input["label"] },
191
+ payload: { key: input["key"], answer: input["answer"], label: input["label"] },
192
192
  }).pipe(Effect.mapError(mapClientError)));
193
193
  const Endpoint10_4 = (raw) => (input) => preserveEffect()(raw["integration.oauth.connect"]({
194
194
  params: { integrationID: input["integrationID"] },
195
195
  query: { location: input["location"] },
196
- payload: { methodID: input["methodID"], inputs: input["inputs"], label: input["label"] },
196
+ payload: { methodID: input["methodID"], answer: input["answer"], label: input["label"] },
197
197
  }).pipe(Effect.mapError(mapClientError)));
198
198
  const Endpoint10_5 = (raw) => (input) => preserveEffect()(raw["integration.oauth.status"]({
199
199
  params: { integrationID: input["integrationID"], attemptID: input["attemptID"] },
@@ -586,7 +586,7 @@ export function make(options) {
586
586
  method: "POST",
587
587
  path: `/api/integration/${encodeURIComponent(input.integrationID)}/connect/key`,
588
588
  query: { location: input["location"] },
589
- body: { key: input["key"], label: input["label"] },
589
+ body: { key: input["key"], answer: input["answer"], label: input["label"] },
590
590
  successStatus: 204,
591
591
  declaredStatuses: [400, 401],
592
592
  empty: true,
@@ -597,7 +597,7 @@ export function make(options) {
597
597
  method: "POST",
598
598
  path: `/api/integration/${encodeURIComponent(input.integrationID)}/connect/oauth`,
599
599
  query: { location: input["location"] },
600
- body: { methodID: input["methodID"], inputs: input["inputs"], label: input["label"] },
600
+ body: { methodID: input["methodID"], answer: input["answer"], label: input["label"] },
601
601
  successStatus: 200,
602
602
  declaredStatuses: [400, 401],
603
603
  empty: false,
@@ -305,10 +305,22 @@ export type ProviderInfo = {
305
305
  [x: string]: any;
306
306
  };
307
307
  };
308
- export type IntegrationWhen = {
308
+ export type FormWhen = {
309
309
  key: string;
310
310
  op: "eq" | "neq";
311
+ value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
312
+ };
313
+ export type FormOption = {
311
314
  value: string;
315
+ label: string;
316
+ description?: string;
317
+ };
318
+ export type FormExternalField = {
319
+ key: string;
320
+ type: "external";
321
+ url: string;
322
+ title?: string;
323
+ description?: string;
312
324
  };
313
325
  export type IntegrationCommandMethod = {
314
326
  id: string;
@@ -316,10 +328,6 @@ export type IntegrationCommandMethod = {
316
328
  label: string;
317
329
  command: Array<string>;
318
330
  };
319
- export type IntegrationKeyMethod = {
320
- type: "key";
321
- label?: string;
322
- };
323
331
  export type IntegrationEnvMethod = {
324
332
  type: "env";
325
333
  names: Array<string>;
@@ -449,23 +457,6 @@ export type ProjectDirectory = {
449
457
  export type FormMetadata = {
450
458
  [x: string]: JsonValue;
451
459
  };
452
- export type FormWhen = {
453
- key: string;
454
- op: "eq" | "neq";
455
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
456
- };
457
- export type FormOption = {
458
- value: string;
459
- label: string;
460
- description?: string;
461
- };
462
- export type FormExternalField = {
463
- key: string;
464
- type: "external";
465
- url: string;
466
- title?: string;
467
- description?: string;
468
- };
469
460
  export type FormValue = string | number | boolean | Array<string>;
470
461
  export type PermissionSource = {
471
462
  type: "tool";
@@ -1929,45 +1920,6 @@ export type ModelCost = {
1929
1920
  write: MoneyUSDPerMillionTokens;
1930
1921
  };
1931
1922
  };
1932
- export type IntegrationTextPrompt = {
1933
- type: "text";
1934
- key: string;
1935
- message: string;
1936
- placeholder?: string;
1937
- when?: IntegrationWhen;
1938
- };
1939
- export type IntegrationSelectPrompt = {
1940
- type: "select";
1941
- key: string;
1942
- message: string;
1943
- options: Array<{
1944
- label: string;
1945
- value: string;
1946
- hint?: string;
1947
- }>;
1948
- when?: IntegrationWhen;
1949
- };
1950
- export type ConnectionInfo = ConnectionCredentialInfo | ConnectionEnvInfo;
1951
- export type McpServer = {
1952
- name: string;
1953
- status: McpStatusConnected | McpStatusPending | McpStatusDisabled | McpStatusFailed | McpStatusNeedsAuth;
1954
- integrationID?: string;
1955
- };
1956
- export type McpResourceCatalog = {
1957
- resources: Array<McpResource>;
1958
- templates: Array<McpResourceTemplate>;
1959
- };
1960
- export type Project = {
1961
- id: string;
1962
- canonical: string;
1963
- vcs?: ProjectVcs;
1964
- name?: string;
1965
- icon?: ProjectIcon;
1966
- commands?: ProjectCommands;
1967
- time: ProjectTime;
1968
- sandboxes: Array<string>;
1969
- };
1970
- export type ProjectDirectories = Array<ProjectDirectory>;
1971
1923
  export type FormNumberField = {
1972
1924
  key: string;
1973
1925
  title?: string;
@@ -2028,6 +1980,27 @@ export type FormMultiselectField = {
2028
1980
  custom?: boolean;
2029
1981
  default?: Array<string>;
2030
1982
  };
1983
+ export type ConnectionInfo = ConnectionCredentialInfo | ConnectionEnvInfo;
1984
+ export type McpServer = {
1985
+ name: string;
1986
+ status: McpStatusConnected | McpStatusPending | McpStatusDisabled | McpStatusFailed | McpStatusNeedsAuth;
1987
+ integrationID?: string;
1988
+ };
1989
+ export type McpResourceCatalog = {
1990
+ resources: Array<McpResource>;
1991
+ templates: Array<McpResourceTemplate>;
1992
+ };
1993
+ export type Project = {
1994
+ id: string;
1995
+ canonical: string;
1996
+ vcs?: ProjectVcs;
1997
+ name?: string;
1998
+ icon?: ProjectIcon;
1999
+ commands?: ProjectCommands;
2000
+ time: ProjectTime;
2001
+ sandboxes: Array<string>;
2002
+ };
2003
+ export type ProjectDirectories = Array<ProjectDirectory>;
2031
2004
  export type FormAnswer = {
2032
2005
  [x: string]: FormValue;
2033
2006
  };
@@ -2375,12 +2348,6 @@ export type ModelInfo = {
2375
2348
  output: number;
2376
2349
  };
2377
2350
  };
2378
- export type IntegrationOAuthMethod = {
2379
- id: string;
2380
- type: "oauth";
2381
- label: string;
2382
- prompts?: Array<IntegrationTextPrompt | IntegrationSelectPrompt>;
2383
- };
2384
2351
  export type FormField = FormStringField | FormNumberField | FormIntegerField | FormBooleanField | FormMultiselectField | FormExternalField;
2385
2352
  export type FormState = {
2386
2353
  status: "pending";
@@ -2755,9 +2722,8 @@ export type SessionMessageAssistantTool = {
2755
2722
  completed?: number;
2756
2723
  };
2757
2724
  };
2758
- export type IntegrationMethod = IntegrationOAuthMethod | IntegrationCommandMethod | IntegrationKeyMethod | IntegrationEnvMethod;
2759
2725
  export type FormFields = [FormField, ...Array<FormField>];
2760
- export type FormFields1 = [FormField1, ...Array<FormField1>];
2726
+ export type FormFields3 = [FormField1, ...Array<FormField1>];
2761
2727
  export type SessionPendingInfo = SessionPendingUser | SessionPendingSynthetic | SessionPendingCompaction;
2762
2728
  export type SessionPendingMessage = SessionPendingUserMessage | SessionPendingSyntheticMessage;
2763
2729
  export type SessionMessageAssistant = {
@@ -2784,11 +2750,16 @@ export type SessionMessageAssistant = {
2784
2750
  error?: SessionStructuredError;
2785
2751
  retry?: SessionMessageAssistantRetry;
2786
2752
  };
2787
- export type IntegrationInfo = {
2753
+ export type IntegrationOAuthMethod = {
2788
2754
  id: string;
2789
- name: string;
2790
- methods: Array<IntegrationMethod>;
2791
- connections: Array<ConnectionInfo>;
2755
+ type: "oauth";
2756
+ label: string;
2757
+ form?: FormFields;
2758
+ };
2759
+ export type IntegrationKeyMethod = {
2760
+ type: "key";
2761
+ label?: string;
2762
+ form?: FormFields;
2792
2763
  };
2793
2764
  export type FormInfo = {
2794
2765
  id: string;
@@ -2802,7 +2773,7 @@ export type FormInfo1 = {
2802
2773
  sessionID: string;
2803
2774
  title: string;
2804
2775
  metadata?: FormMetadata1;
2805
- fields: FormFields1;
2776
+ fields: FormFields3;
2806
2777
  };
2807
2778
  export type SessionInputAdmitted = {
2808
2779
  id: string;
@@ -2824,6 +2795,7 @@ export type SessionInputAdmitted = {
2824
2795
  };
2825
2796
  };
2826
2797
  export type SessionMessageInfo = SessionMessageAgentSelected | SessionMessageModelSelected | SessionMessageUser | SessionMessageSynthetic | SessionMessageSystem | SessionMessageSkill | SessionMessageShell | SessionMessageAssistant | SessionMessageCompaction;
2798
+ export type IntegrationMethod = IntegrationOAuthMethod | IntegrationCommandMethod | IntegrationKeyMethod | IntegrationEnvMethod;
2827
2799
  export type FormCreated = {
2828
2800
  id: string;
2829
2801
  created: number;
@@ -2848,6 +2820,12 @@ export type SessionMessagesResponse = {
2848
2820
  next?: string | null;
2849
2821
  };
2850
2822
  };
2823
+ export type IntegrationInfo = {
2824
+ id: string;
2825
+ name: string;
2826
+ methods: Array<IntegrationMethod>;
2827
+ connections: Array<ConnectionInfo>;
2828
+ };
2851
2829
  export type V2Event = ModelsDevRefreshed | IntegrationUpdated | IntegrationConnectionUpdated | CatalogUpdated | AgentUpdated | SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionUsageUpdated | SessionDeleted | SessionForked | SessionInputPromoted | SessionInputAdmitted | SessionInputCancelled | SessionInputSteered | SessionInputQueued | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextDelta | SessionTextEnded | SessionReasoningStarted | SessionReasoningDelta | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputDelta | SessionToolInputEnded | SessionToolCalled | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionAdmitted | SessionCompactionStarted | SessionCompactionDelta | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | FilesystemChanged | ReferenceUpdated | PermissionAsked | PermissionReplied | PluginAdded | PluginUpdated | ProjectDirectoriesUpdated | CommandUpdated | ConfigUpdated | SkillUpdated | PtyCreated | PtyUpdated | PtyExited | PtyDeleted | ShellCreated | ShellExited | ShellDeleted | QuestionAsked | QuestionReplied | QuestionRejected | FormCreated | FormReplied | FormCancelled | WebsearchUpdated | SessionStatus2 | SessionIdle | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | InstallationUpdated | InstallationUpdateAvailable | VcsBranchUpdated | McpStatusChanged | McpResourcesChanged | V2EventServerConnected;
2852
2830
  export type SessionLogItem = SessionEventDurable | EventLogSynced;
2853
2831
  export type UnauthorizedError = {
@@ -5666,10 +5644,23 @@ export type IntegrationConnectKeyInput = {
5666
5644
  }["location"];
5667
5645
  readonly key: {
5668
5646
  readonly key: string;
5647
+ readonly answer?: {
5648
+ readonly [x: string]: string | number | boolean | ReadonlyArray<string>;
5649
+ } | undefined;
5669
5650
  readonly label?: string | undefined;
5670
5651
  }["key"];
5652
+ readonly answer?: {
5653
+ readonly key: string;
5654
+ readonly answer?: {
5655
+ readonly [x: string]: string | number | boolean | ReadonlyArray<string>;
5656
+ } | undefined;
5657
+ readonly label?: string | undefined;
5658
+ }["answer"];
5671
5659
  readonly label?: {
5672
5660
  readonly key: string;
5661
+ readonly answer?: {
5662
+ readonly [x: string]: string | number | boolean | ReadonlyArray<string>;
5663
+ } | undefined;
5673
5664
  readonly label?: string | undefined;
5674
5665
  }["label"];
5675
5666
  };
@@ -5686,23 +5677,23 @@ export type IntegrationOauthConnectInput = {
5686
5677
  }["location"];
5687
5678
  readonly methodID: {
5688
5679
  readonly methodID: string;
5689
- readonly inputs: {
5690
- readonly [x: string]: string;
5691
- };
5680
+ readonly answer?: {
5681
+ readonly [x: string]: string | number | boolean | ReadonlyArray<string>;
5682
+ } | undefined;
5692
5683
  readonly label?: string | undefined;
5693
5684
  }["methodID"];
5694
- readonly inputs: {
5685
+ readonly answer?: {
5695
5686
  readonly methodID: string;
5696
- readonly inputs: {
5697
- readonly [x: string]: string;
5698
- };
5687
+ readonly answer?: {
5688
+ readonly [x: string]: string | number | boolean | ReadonlyArray<string>;
5689
+ } | undefined;
5699
5690
  readonly label?: string | undefined;
5700
- }["inputs"];
5691
+ }["answer"];
5701
5692
  readonly label?: {
5702
5693
  readonly methodID: string;
5703
- readonly inputs: {
5704
- readonly [x: string]: string;
5705
- };
5694
+ readonly answer?: {
5695
+ readonly [x: string]: string | number | boolean | ReadonlyArray<string>;
5696
+ } | undefined;
5706
5697
  readonly label?: string | undefined;
5707
5698
  }["label"];
5708
5699
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/client",
4
- "version": "0.0.0-next-17074",
4
+ "version": "0.0.0-next-17077",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -53,8 +53,8 @@
53
53
  "typecheck": "tsgo --noEmit"
54
54
  },
55
55
  "dependencies": {
56
- "@opencode-ai/schema": "0.0.0-next-17074",
57
- "@opencode-ai/protocol": "0.0.0-next-17074"
56
+ "@opencode-ai/schema": "0.0.0-next-17077",
57
+ "@opencode-ai/protocol": "0.0.0-next-17077"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "effect": "4.0.0-beta.101"
@@ -66,7 +66,7 @@
66
66
  },
67
67
  "devDependencies": {
68
68
  "@effect/platform-node": "4.0.0-beta.101",
69
- "@opencode-ai/httpapi-codegen": "0.0.0-next-17074",
69
+ "@opencode-ai/httpapi-codegen": "0.0.0-next-17077",
70
70
  "@tsconfig/bun": "1.0.9",
71
71
  "@types/bun": "1.3.13",
72
72
  "@typescript/native-preview": "7.0.0-dev.20251207.1",