@opencode/client 0.0.0-dev-20300 → 0.0.0-dev-20307

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 (58) hide show
  1. package/dist/chunks/{service-timing-1tbj6z39.js → pty-handoff-1tbj6z39.js} +1 -1
  2. package/dist/chunks/{service-timing-7f9kfnys.js → pty-handoff-6tf2bay6.js} +18 -6
  3. package/dist/chunks/{service-timing-h9cy5hnk.js → pty-handoff-8wk26zth.js} +17 -2
  4. package/dist/chunks/{service-timing-frbwqjmf.js → pty-handoff-frbwqjmf.js} +1 -1
  5. package/dist/chunks/{service-timing-h11j9btw.js → pty-handoff-h11j9btw.js} +1 -1
  6. package/dist/chunks/{service-timing-s2sxgg3t.js → pty-handoff-p1ns5v1v.js} +1 -1
  7. package/dist/chunks/{service-timing-t1xa31vm.js → pty-handoff-t1xa31vm.js} +1 -1
  8. package/dist/chunks/{service-timing-9d87raqa.js → pty-handoff-w0z44nwf.js} +4 -4
  9. package/dist/chunks/{service-timing-mnyft54j.js → pty-handoff-w1w809zr.js} +5 -5
  10. package/dist/chunks/{service-timing-59sgbedk.js → pty-handoff-ycfn3pba.js} +9 -9
  11. package/dist/contract.js +1 -1
  12. package/dist/effect/api/api.d.ts +13 -0
  13. package/dist/effect/client.d.ts +2 -0
  14. package/dist/effect/client.js +8 -8
  15. package/dist/effect/generated/client-error.js +1 -1
  16. package/dist/effect/generated/client.d.ts +3 -1
  17. package/dist/effect/generated/client.js +5 -5
  18. package/dist/effect/generated/index.js +4 -4
  19. package/dist/effect/index.js +8 -8
  20. package/dist/effect/rpc.js +4 -4
  21. package/dist/effect/service.js +5 -5
  22. package/dist/promise/client.d.ts +2 -0
  23. package/dist/promise/client.js +7 -7
  24. package/dist/promise/generated/client-error.js +1 -1
  25. package/dist/promise/generated/client.d.ts +3 -1
  26. package/dist/promise/generated/client.js +2 -2
  27. package/dist/promise/generated/index.js +4 -4
  28. package/dist/promise/generated/types.d.ts +161 -2
  29. package/dist/promise/generated/types.js +1 -1
  30. package/dist/promise/index.js +8 -8
  31. package/dist/promise/rpc.js +2 -2
  32. package/dist/promise/service.js +5 -5
  33. package/dist/pty-handoff.js +1 -1
  34. package/dist/rpc-runtime.js +1 -1
  35. package/dist/service-contender.js +1 -1
  36. package/dist/service-timing.js +1 -1
  37. package/dist/service-version.js +1 -1
  38. package/dist/service.js +1 -1
  39. package/dist/shared-events.js +1 -1
  40. package/dist/solid/connection.js +1 -1
  41. package/dist/solid/data.js +9 -9
  42. package/dist/solid/index.js +11 -11
  43. package/dist/solid/pty.js +1 -1
  44. package/package.json +4 -4
  45. /package/dist/chunks/{service-timing-4tveyqeh.js → pty-handoff-4tveyqeh.js} +0 -0
  46. /package/dist/chunks/{service-timing-6mptkzbc.js → pty-handoff-6mptkzbc.js} +0 -0
  47. /package/dist/chunks/{service-timing-7f0py9js.js → pty-handoff-7f0py9js.js} +0 -0
  48. /package/dist/chunks/{service-timing-9rqn6x4v.js → pty-handoff-9rqn6x4v.js} +0 -0
  49. /package/dist/chunks/{service-timing-gne7h7mq.js → pty-handoff-gne7h7mq.js} +0 -0
  50. /package/dist/chunks/{service-timing-js54wxgp.js → pty-handoff-js54wxgp.js} +0 -0
  51. /package/dist/chunks/{service-timing-m2eywc8w.js → pty-handoff-m2eywc8w.js} +0 -0
  52. /package/dist/chunks/{service-timing-qav6mfdz.js → pty-handoff-qav6mfdz.js} +0 -0
  53. /package/dist/chunks/{service-timing-sxt88q69.js → pty-handoff-sxt88q69.js} +0 -0
  54. /package/dist/chunks/{service-timing-txckps9j.js → pty-handoff-txckps9j.js} +0 -0
  55. /package/dist/chunks/{service-timing-vmytr4q8.js → pty-handoff-vmytr4q8.js} +0 -0
  56. /package/dist/chunks/{service-timing-vyas3vgt.js → pty-handoff-vyas3vgt.js} +0 -0
  57. /package/dist/chunks/{service-timing-xgnj2w4v.js → pty-handoff-xgnj2w4v.js} +0 -0
  58. /package/dist/chunks/{service-timing-ydhz1zrh.js → pty-handoff-ydhz1zrh.js} +0 -0
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  isRpcError2,
3
3
  isRpcInternalError2
4
- } from "./service-timing-4tveyqeh.js";
4
+ } from "./pty-handoff-4tveyqeh.js";
5
5
 
6
6
  // src/promise/rpc.ts
7
7
  function makeRpc2(raw, events) {
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  ClientApi2
3
- } from "./service-timing-vmytr4q8.js";
3
+ } from "./pty-handoff-vmytr4q8.js";
4
4
  import {
5
5
  ClientError3
6
- } from "./service-timing-7f0py9js.js";
6
+ } from "./pty-handoff-7f0py9js.js";
7
7
  import {
8
8
  __export
9
- } from "./service-timing-9rqn6x4v.js";
9
+ } from "./pty-handoff-9rqn6x4v.js";
10
10
 
11
11
  // src/effect/generated/client.ts
12
12
  var exports_client4 = {};
13
13
  __export(exports_client4, {
14
- make: () => make6
14
+ make: () => make5
15
15
  });
16
16
  import { Effect, Stream, Schema } from "effect";
17
17
  import { Sse } from "effect/unstable/encoding";
@@ -344,6 +344,16 @@ var adaptGroupMcp = (raw) => ({
344
344
  disconnect: EndpointMcpDisconnect(raw),
345
345
  resource: { catalog: EndpointMcpResourceCatalog(raw) }
346
346
  });
347
+ var EndpointCredentialList = (raw) => () => preserveEffect()(raw["credential.list"]({}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
348
+ var EndpointCredentialCreate = (raw) => (input) => preserveEffect()(raw["credential.create"]({
349
+ payload: {
350
+ id: input["id"],
351
+ integrationID: input["integrationID"],
352
+ label: input["label"],
353
+ value: input["value"],
354
+ activate: input["activate"]
355
+ }
356
+ }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
347
357
  var EndpointCredentialUpdate = (raw) => (input) => preserveEffect()(raw["credential.update"]({
348
358
  params: { credentialID: input["credentialID"] },
349
359
  payload: { label: input["label"] }
@@ -351,6 +361,8 @@ var EndpointCredentialUpdate = (raw) => (input) => preserveEffect()(raw["credent
351
361
  var EndpointCredentialActivate = (raw) => (input) => preserveEffect()(raw["credential.activate"]({ params: { credentialID: input["credentialID"] } }).pipe(Effect.mapError(mapClientError)));
352
362
  var EndpointCredentialRemove = (raw) => (input) => preserveEffect()(raw["credential.remove"]({ params: { credentialID: input["credentialID"] } }).pipe(Effect.mapError(mapClientError)));
353
363
  var adaptGroupCredential = (raw) => ({
364
+ list: EndpointCredentialList(raw),
365
+ create: EndpointCredentialCreate(raw),
354
366
  update: EndpointCredentialUpdate(raw),
355
367
  activate: EndpointCredentialActivate(raw),
356
368
  remove: EndpointCredentialRemove(raw)
@@ -595,6 +607,6 @@ var adaptClient = (raw) => ({
595
607
  websearch: adaptGroupWebsearch(raw["server.websearch"]),
596
608
  config: adaptGroupConfig(raw["server.config"])
597
609
  });
598
- var make6 = (options) => HttpApiClient.make(ClientApi2, options).pipe(Effect.map(adaptClient));
610
+ var make5 = (options) => HttpApiClient.make(ClientApi2, options).pipe(Effect.map(adaptClient));
599
611
 
600
- export { make6, exports_client4 };
612
+ export { make5, exports_client4 };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  ClientError2
3
- } from "./service-timing-js54wxgp.js";
3
+ } from "./pty-handoff-js54wxgp.js";
4
4
  import {
5
5
  __export
6
- } from "./service-timing-9rqn6x4v.js";
6
+ } from "./pty-handoff-9rqn6x4v.js";
7
7
 
8
8
  // src/promise/generated/client.ts
9
9
  var exports_client2 = {};
@@ -818,6 +818,21 @@ function make3(options) {
818
818
  }
819
819
  },
820
820
  credential: {
821
+ list: (requestOptions) => request({ method: "GET", path: `/api/credential`, successStatus: 200, declaredStatuses: [400, 401], empty: false }, requestOptions).then((value) => value.data),
822
+ create: (input, requestOptions) => request({
823
+ method: "POST",
824
+ path: `/api/credential`,
825
+ body: {
826
+ id: input["id"],
827
+ integrationID: input["integrationID"],
828
+ label: input["label"],
829
+ value: input["value"],
830
+ activate: input["activate"]
831
+ },
832
+ successStatus: 200,
833
+ declaredStatuses: [400, 401, 409],
834
+ empty: false
835
+ }, requestOptions).then((value) => value.data),
821
836
  update: (input, requestOptions) => request({
822
837
  method: "PATCH",
823
838
  path: `/api/credential/${encodeURIComponent(input.credentialID)}`,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./service-timing-9rqn6x4v.js";
3
+ } from "./pty-handoff-9rqn6x4v.js";
4
4
 
5
5
  // src/shared-events.ts
6
6
  var exports_shared_events = {};
@@ -2,7 +2,7 @@ import {
2
2
  isFormNotFoundError2,
3
3
  isFormAlreadySettledError2,
4
4
  isPermissionNotFoundError2
5
- } from "./service-timing-4tveyqeh.js";
5
+ } from "./pty-handoff-4tveyqeh.js";
6
6
 
7
7
  // src/solid/data.ts
8
8
  import { Worktree } from "@opencode/schema/worktree";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./service-timing-9rqn6x4v.js";
3
+ } from "./pty-handoff-9rqn6x4v.js";
4
4
 
5
5
  // src/pty-handoff.ts
6
6
  var exports_pty_handoff = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./service-timing-9rqn6x4v.js";
3
+ } from "./pty-handoff-9rqn6x4v.js";
4
4
 
5
5
  // src/rpc-runtime.ts
6
6
  var exports_rpc_runtime = {};
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  make7
3
- } from "./service-timing-frbwqjmf.js";
3
+ } from "./pty-handoff-frbwqjmf.js";
4
4
  import {
5
5
  make3
6
- } from "./service-timing-h9cy5hnk.js";
6
+ } from "./pty-handoff-8wk26zth.js";
7
7
  import {
8
8
  makeRpc2
9
- } from "./service-timing-1tbj6z39.js";
9
+ } from "./pty-handoff-1tbj6z39.js";
10
10
  import {
11
11
  __export
12
- } from "./service-timing-9rqn6x4v.js";
12
+ } from "./pty-handoff-9rqn6x4v.js";
13
13
 
14
14
  // src/promise/client.ts
15
15
  var exports_client = {};
@@ -3,20 +3,20 @@ import {
3
3
  readError2,
4
4
  event2,
5
5
  eventType2
6
- } from "./service-timing-t1xa31vm.js";
6
+ } from "./pty-handoff-t1xa31vm.js";
7
7
  import {
8
8
  __export
9
- } from "./service-timing-9rqn6x4v.js";
9
+ } from "./pty-handoff-9rqn6x4v.js";
10
10
 
11
11
  // src/effect/rpc.ts
12
12
  var exports_rpc = {};
13
13
  __export(exports_rpc, {
14
14
  RpcClientRuntime: () => exports_rpc,
15
15
  aborted: () => aborted2,
16
- make: () => make5
16
+ make: () => make6
17
17
  });
18
18
  import { Effect, Stream } from "effect";
19
- function make5(call, subscribe) {
19
+ function make6(call, subscribe) {
20
20
  return (definition) => {
21
21
  const methods = Object.fromEntries(Object.entries(definition.methods).map(([name, method]) => [
22
22
  name,
@@ -59,4 +59,4 @@ function aborted2(signal) {
59
59
  });
60
60
  }
61
61
 
62
- export { make5, aborted2, exports_rpc };
62
+ export { make6, aborted2, exports_rpc };
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  make7
3
- } from "./service-timing-frbwqjmf.js";
3
+ } from "./pty-handoff-frbwqjmf.js";
4
4
  import {
5
5
  ClientError3
6
- } from "./service-timing-7f0py9js.js";
6
+ } from "./pty-handoff-7f0py9js.js";
7
7
  import {
8
- make6
9
- } from "./service-timing-7f9kfnys.js";
8
+ make5
9
+ } from "./pty-handoff-6tf2bay6.js";
10
10
  import {
11
- make5,
11
+ make6,
12
12
  aborted2
13
- } from "./service-timing-mnyft54j.js";
13
+ } from "./pty-handoff-w1w809zr.js";
14
14
  import {
15
15
  __export
16
- } from "./service-timing-9rqn6x4v.js";
16
+ } from "./pty-handoff-9rqn6x4v.js";
17
17
 
18
18
  // src/effect/client.ts
19
19
  var exports_client3 = {};
@@ -30,7 +30,7 @@ var CurrentHeaders = Context.Reference("@opencode/client/effect/rpc/headers", {
30
30
  });
31
31
  var make4 = Effect.fn("OpenCode.make")(function* (options) {
32
32
  const httpClient = yield* HttpClient.HttpClient;
33
- const raw = yield* make6(options).pipe(Effect.provideService(HttpClient.HttpClient, HttpClient.mapRequestEffect(httpClient, (request) => Effect.map(CurrentHeaders, (headers) => headers ? HttpClientRequest.setHeaders(request, new Headers(headers)) : request))));
33
+ const raw = yield* make5(options).pipe(Effect.provideService(HttpClient.HttpClient, HttpClient.mapRequestEffect(httpClient, (request) => Effect.map(CurrentHeaders, (headers) => headers ? HttpClientRequest.setHeaders(request, new Headers(headers)) : request))));
34
34
  const context = yield* Effect.context();
35
35
  const native = raw.event.subscribe();
36
36
 
@@ -45,7 +45,7 @@ var make4 = Effect.fn("OpenCode.make")(function* (options) {
45
45
  return {
46
46
  ...raw,
47
47
  event: { ...raw.event, subscribe },
48
- rpc: Object.assign(make5((input, options) => raw.rpc.call(input).pipe(Effect.provideService(CurrentHeaders, options?.headers)), subscribe), raw.rpc)
48
+ rpc: Object.assign(make6((input, options) => raw.rpc.call(input).pipe(Effect.provideService(CurrentHeaders, options?.headers)), subscribe), raw.rpc)
49
49
  };
50
50
  });
51
51
 
package/dist/contract.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  effectOmitEndpoints2,
4
4
  groupNames2,
5
5
  promiseOmitEndpoints2
6
- } from "./chunks/service-timing-vmytr4q8.js";
6
+ } from "./chunks/pty-handoff-vmytr4q8.js";
7
7
  export {
8
8
  ClientApi2 as ClientApi,
9
9
  effectOmitEndpoints2 as effectOmitEndpoints,
@@ -1988,6 +1988,17 @@ export interface McpApi<E = never> {
1988
1988
  readonly catalog: McpResourceCatalogOperation<E>;
1989
1989
  };
1990
1990
  }
1991
+ export type CredentialListOutput = ReadonlyArray<Credential.Entry>;
1992
+ export type CredentialListOperation<E = never> = () => Effect.Effect<CredentialListOutput, E>;
1993
+ export type CredentialCreateInput = {
1994
+ readonly id?: Credential.ID | undefined;
1995
+ readonly integrationID: Integration.ID;
1996
+ readonly label?: string | undefined;
1997
+ readonly value: Credential.Value;
1998
+ readonly activate?: boolean | undefined;
1999
+ };
2000
+ export type CredentialCreateOutput = Credential.Entry;
2001
+ export type CredentialCreateOperation<E = never> = (input: CredentialCreateInput) => Effect.Effect<CredentialCreateOutput, E>;
1991
2002
  export type CredentialUpdateInput = {
1992
2003
  readonly credentialID: Credential.ID;
1993
2004
  readonly label: string;
@@ -2005,6 +2016,8 @@ export type CredentialRemoveInput = {
2005
2016
  export type CredentialRemoveOutput = void;
2006
2017
  export type CredentialRemoveOperation<E = never> = (input: CredentialRemoveInput) => Effect.Effect<CredentialRemoveOutput, E>;
2007
2018
  export interface CredentialApi<E = never> {
2019
+ readonly list: CredentialListOperation<E>;
2020
+ readonly create: CredentialCreateOperation<E>;
2008
2021
  readonly update: CredentialUpdateOperation<E>;
2009
2022
  readonly activate: CredentialActivateOperation<E>;
2010
2023
  readonly remove: CredentialRemoveOperation<E>;
@@ -2416,6 +2416,8 @@ export declare const make: (options?: {
2416
2416
  };
2417
2417
  };
2418
2418
  credential: {
2419
+ list: () => Effect.Effect<import("./api.js").CredentialListOutput, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/unstable/http/HttpClientError").HttpClientError, never>;
2420
+ create: (input: import("./api.js").CredentialCreateInput) => Effect.Effect<import("@opencode/schema/credential").Entry, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ConflictError | import("effect/Schema").SchemaError | ClientError | import("effect/unstable/http/HttpClientError").HttpClientError, never>;
2419
2421
  update: (input: import("./api.js").CredentialUpdateInput) => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/unstable/http/HttpClientError").HttpClientError, never>;
2420
2422
  activate: (input: import("./api.js").CredentialActivateInput) => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/unstable/http/HttpClientError").HttpClientError, never>;
2421
2423
  remove: (input: import("./api.js").CredentialRemoveInput) => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("effect/Schema").SchemaError | ClientError | import("effect/unstable/http/HttpClientError").HttpClientError, never>;
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  make4,
3
3
  exports_client3
4
- } from "../chunks/service-timing-59sgbedk.js";
5
- import"../chunks/service-timing-mnyft54j.js";
6
- import"../chunks/service-timing-6mptkzbc.js";
7
- import"../chunks/service-timing-7f9kfnys.js";
8
- import"../chunks/service-timing-7f0py9js.js";
9
- import"../chunks/service-timing-t1xa31vm.js";
10
- import"../chunks/service-timing-vmytr4q8.js";
11
- import"../chunks/service-timing-frbwqjmf.js";
4
+ } from "../chunks/pty-handoff-ycfn3pba.js";
5
+ import"../chunks/pty-handoff-6mptkzbc.js";
6
+ import"../chunks/pty-handoff-6tf2bay6.js";
7
+ import"../chunks/pty-handoff-7f0py9js.js";
8
+ import"../chunks/pty-handoff-w1w809zr.js";
9
+ import"../chunks/pty-handoff-frbwqjmf.js";
10
+ import"../chunks/pty-handoff-t1xa31vm.js";
11
+ import"../chunks/pty-handoff-vmytr4q8.js";
12
12
  export {
13
13
  exports_client3 as OpenCode,
14
14
  make4 as make
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ClientError3
3
- } from "../../chunks/service-timing-7f0py9js.js";
3
+ } from "../../chunks/pty-handoff-7f0py9js.js";
4
4
  export {
5
5
  ClientError3 as ClientError
6
6
  };
@@ -1,7 +1,7 @@
1
1
  import { Effect, Stream, Schema } from "effect";
2
2
  import { Sse } from "effect/unstable/encoding";
3
3
  import { HttpClientError } from "effect/unstable/http";
4
- import type { ServerInfoOutput, ServerPairOutput, ServerConnectInput, ServerConnectOutput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionListOutput, SessionStatsInput, SessionStatsOutput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionExportOutput, SessionActiveOutput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionContextOutput, SessionDiffInput, SessionDiffOutput, SessionInboxListInput, SessionInboxListOutput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionInstructionsEntryListInput, SessionInstructionsEntryListOutput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionGenerateOutput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionInterruptOutput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormListOutput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, MessageListInput, MessageListOutput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, GenerateTextOutput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedListOutput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionCreateOutput, PermissionListInput, PermissionListOutput, PermissionGetInput, PermissionReplyInput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, RpcCallOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyReadOutput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyListOutput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyCreateOutput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyGetOutput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtyUpdateOutput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtySnapshotOutput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, ReferenceListInput, ReferenceListOutput, WorktreeListInput, WorktreeCreateInput, WorktreeRemoveInput, WorktreeRefreshInput, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchListInput, VcsBranchListOutput, VcsDiffInput, VcsDiffOutput, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ConfigUpdateInput } from "../api/api.js";
4
+ import type { ServerInfoOutput, ServerPairOutput, ServerConnectInput, ServerConnectOutput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionListOutput, SessionStatsInput, SessionStatsOutput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionExportOutput, SessionActiveOutput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionContextOutput, SessionDiffInput, SessionDiffOutput, SessionInboxListInput, SessionInboxListOutput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionInstructionsEntryListInput, SessionInstructionsEntryListOutput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionGenerateOutput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionInterruptOutput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormListOutput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, MessageListInput, MessageListOutput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, GenerateTextOutput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialListOutput, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedListOutput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionCreateOutput, PermissionListInput, PermissionListOutput, PermissionGetInput, PermissionReplyInput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, RpcCallOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyReadOutput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyListOutput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyCreateOutput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyGetOutput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtyUpdateOutput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtySnapshotOutput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, ReferenceListInput, ReferenceListOutput, WorktreeListInput, WorktreeCreateInput, WorktreeRemoveInput, WorktreeRefreshInput, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchListInput, VcsBranchListOutput, VcsDiffInput, VcsDiffOutput, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ConfigUpdateInput } from "../api/api.js";
5
5
  import { ClientError } from "./client-error.js";
6
6
  export declare const make: (options?: {
7
7
  readonly baseUrl?: URL | string;
@@ -127,6 +127,8 @@ export declare const make: (options?: {
127
127
  };
128
128
  };
129
129
  credential: {
130
+ list: () => Effect.Effect<CredentialListOutput, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | Schema.SchemaError | ClientError | HttpClientError.HttpClientError, never>;
131
+ create: (input: CredentialCreateInput) => Effect.Effect<import("@opencode/schema/credential").Entry, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").ConflictError | Schema.SchemaError | ClientError | HttpClientError.HttpClientError, never>;
130
132
  update: (input: CredentialUpdateInput) => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | Schema.SchemaError | ClientError | HttpClientError.HttpClientError, never>;
131
133
  activate: (input: CredentialActivateInput) => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | Schema.SchemaError | ClientError | HttpClientError.HttpClientError, never>;
132
134
  remove: (input: CredentialRemoveInput) => Effect.Effect<void, import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").UnauthorizedError | Schema.SchemaError | ClientError | HttpClientError.HttpClientError, never>;
@@ -1,8 +1,8 @@
1
1
  import {
2
- make6
3
- } from "../../chunks/service-timing-7f9kfnys.js";
4
- import"../../chunks/service-timing-7f0py9js.js";
5
- import"../../chunks/service-timing-vmytr4q8.js";
2
+ make5
3
+ } from "../../chunks/pty-handoff-6tf2bay6.js";
4
+ import"../../chunks/pty-handoff-7f0py9js.js";
5
+ import"../../chunks/pty-handoff-vmytr4q8.js";
6
6
  export {
7
- make6 as make
7
+ make5 as make
8
8
  };
@@ -1,11 +1,11 @@
1
- import"../../chunks/service-timing-6mptkzbc.js";
1
+ import"../../chunks/pty-handoff-6mptkzbc.js";
2
2
  import {
3
3
  exports_client4
4
- } from "../../chunks/service-timing-7f9kfnys.js";
4
+ } from "../../chunks/pty-handoff-6tf2bay6.js";
5
5
  import {
6
6
  ClientError3
7
- } from "../../chunks/service-timing-7f0py9js.js";
8
- import"../../chunks/service-timing-vmytr4q8.js";
7
+ } from "../../chunks/pty-handoff-7f0py9js.js";
8
+ import"../../chunks/pty-handoff-vmytr4q8.js";
9
9
  export {
10
10
  ClientError3 as ClientError,
11
11
  exports_client4 as OpenCode
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  ClientError3
3
- } from "../chunks/service-timing-7f0py9js.js";
4
- import"../chunks/service-timing-vmytr4q8.js";
5
- import"../chunks/service-timing-7f9kfnys.js";
6
- import"../chunks/service-timing-6mptkzbc.js";
7
- import"../chunks/service-timing-frbwqjmf.js";
8
- import"../chunks/service-timing-t1xa31vm.js";
9
- import"../chunks/service-timing-mnyft54j.js";
3
+ } from "../chunks/pty-handoff-7f0py9js.js";
4
+ import"../chunks/pty-handoff-vmytr4q8.js";
5
+ import"../chunks/pty-handoff-6tf2bay6.js";
6
+ import"../chunks/pty-handoff-6mptkzbc.js";
7
+ import"../chunks/pty-handoff-frbwqjmf.js";
8
+ import"../chunks/pty-handoff-t1xa31vm.js";
9
+ import"../chunks/pty-handoff-w1w809zr.js";
10
10
  import {
11
11
  exports_client3
12
- } from "../chunks/service-timing-59sgbedk.js";
12
+ } from "../chunks/pty-handoff-ycfn3pba.js";
13
13
 
14
14
  // src/effect/index.ts
15
15
  import { Agent } from "@opencode/schema/agent";
@@ -1,11 +1,11 @@
1
1
  import {
2
- make5,
2
+ make6,
3
3
  aborted2,
4
4
  exports_rpc
5
- } from "../chunks/service-timing-mnyft54j.js";
6
- import"../chunks/service-timing-t1xa31vm.js";
5
+ } from "../chunks/pty-handoff-w1w809zr.js";
6
+ import"../chunks/pty-handoff-t1xa31vm.js";
7
7
  export {
8
8
  exports_rpc as RpcClientRuntime,
9
9
  aborted2 as aborted,
10
- make5 as make
10
+ make6 as make
11
11
  };
@@ -2,21 +2,21 @@ import {
2
2
  spawnServiceContender2,
3
3
  contenderFailure2,
4
4
  contenderFinished2
5
- } from "../chunks/service-timing-txckps9j.js";
5
+ } from "../chunks/pty-handoff-txckps9j.js";
6
6
  import {
7
7
  defaultEnsureTiming2,
8
8
  ensureTiming2
9
- } from "../chunks/service-timing-xgnj2w4v.js";
9
+ } from "../chunks/pty-handoff-xgnj2w4v.js";
10
10
  import {
11
11
  matchesVersion2
12
- } from "../chunks/service-timing-sxt88q69.js";
12
+ } from "../chunks/pty-handoff-sxt88q69.js";
13
13
  import {
14
14
  prepare2,
15
15
  environment2,
16
16
  complete2,
17
17
  clear2
18
- } from "../chunks/service-timing-s2sxgg3t.js";
19
- import"../chunks/service-timing-qav6mfdz.js";
18
+ } from "../chunks/pty-handoff-p1ns5v1v.js";
19
+ import"../chunks/pty-handoff-qav6mfdz.js";
20
20
 
21
21
  // src/effect/service.ts
22
22
  import { Effect, FileSystem, Option, Schedule, Schema } from "effect";
@@ -137,6 +137,8 @@ export declare function make(options: ClientOptions): {
137
137
  };
138
138
  };
139
139
  credential: {
140
+ list: (requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").CredentialEntry[]>;
141
+ create: (input: import("./index.js").CredentialCreateInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").CredentialEntry>;
140
142
  update: (input: import("./index.js").CredentialUpdateInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
141
143
  activate: (input: import("./index.js").CredentialActivateInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
142
144
  remove: (input: import("./index.js").CredentialRemoveInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  make2,
3
3
  exports_client
4
- } from "../chunks/service-timing-9d87raqa.js";
5
- import"../chunks/service-timing-vyas3vgt.js";
6
- import"../chunks/service-timing-1tbj6z39.js";
7
- import"../chunks/service-timing-h9cy5hnk.js";
8
- import"../chunks/service-timing-js54wxgp.js";
9
- import"../chunks/service-timing-4tveyqeh.js";
10
- import"../chunks/service-timing-frbwqjmf.js";
4
+ } from "../chunks/pty-handoff-w0z44nwf.js";
5
+ import"../chunks/pty-handoff-vyas3vgt.js";
6
+ import"../chunks/pty-handoff-8wk26zth.js";
7
+ import"../chunks/pty-handoff-js54wxgp.js";
8
+ import"../chunks/pty-handoff-1tbj6z39.js";
9
+ import"../chunks/pty-handoff-4tveyqeh.js";
10
+ import"../chunks/pty-handoff-frbwqjmf.js";
11
11
  export {
12
12
  exports_client as OpenCode,
13
13
  make2 as make
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ClientError2
3
- } from "../../chunks/service-timing-js54wxgp.js";
3
+ } from "../../chunks/pty-handoff-js54wxgp.js";
4
4
  export {
5
5
  ClientError2 as ClientError
6
6
  };
@@ -1,4 +1,4 @@
1
- import type { ServerConnectInput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionStatsInput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionDiffInput, SessionInboxListInput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, FileWriteInput, FileWriteOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, ReferenceListInput, ReferenceListOutput, WorktreeListInput, WorktreeCreateInput, WorktreeRemoveInput, WorktreeRefreshInput, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchListInput, VcsBranchListOutput, VcsDiffInput, VcsDiffOutput, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ConfigUpdateInput } from "./types.js";
1
+ import type { ServerConnectInput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionStatsInput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionDiffInput, SessionInboxListInput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, FileWriteInput, FileWriteOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, ReferenceListInput, ReferenceListOutput, WorktreeListInput, WorktreeCreateInput, WorktreeRemoveInput, WorktreeRefreshInput, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchListInput, VcsBranchListOutput, VcsDiffInput, VcsDiffOutput, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ConfigUpdateInput } from "./types.js";
2
2
  export interface ClientOptions {
3
3
  readonly baseUrl: string;
4
4
  readonly fetch?: typeof globalThis.fetch;
@@ -138,6 +138,8 @@ export declare function make(options: ClientOptions): {
138
138
  };
139
139
  };
140
140
  credential: {
141
+ list: (requestOptions?: RequestOptions) => Promise<import("./types.js").CredentialEntry[]>;
142
+ create: (input: CredentialCreateInput, requestOptions?: RequestOptions) => Promise<import("./types.js").CredentialEntry>;
141
143
  update: (input: CredentialUpdateInput, requestOptions?: RequestOptions) => Promise<void>;
142
144
  activate: (input: CredentialActivateInput, requestOptions?: RequestOptions) => Promise<void>;
143
145
  remove: (input: CredentialRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  make3
3
- } from "../../chunks/service-timing-h9cy5hnk.js";
4
- import"../../chunks/service-timing-js54wxgp.js";
3
+ } from "../../chunks/pty-handoff-8wk26zth.js";
4
+ import"../../chunks/pty-handoff-js54wxgp.js";
5
5
  export {
6
6
  make3 as make
7
7
  };
@@ -1,10 +1,10 @@
1
- import"../../chunks/service-timing-vyas3vgt.js";
1
+ import"../../chunks/pty-handoff-vyas3vgt.js";
2
2
  import {
3
3
  exports_client2
4
- } from "../../chunks/service-timing-h9cy5hnk.js";
4
+ } from "../../chunks/pty-handoff-8wk26zth.js";
5
5
  import {
6
6
  ClientError2
7
- } from "../../chunks/service-timing-js54wxgp.js";
7
+ } from "../../chunks/pty-handoff-js54wxgp.js";
8
8
  import {
9
9
  isInvalidRequestError2,
10
10
  isUnauthorizedError2,
@@ -37,7 +37,7 @@ import {
37
37
  isForbiddenError2,
38
38
  isShellNotFoundError2,
39
39
  isWorktreeError2
40
- } from "../../chunks/service-timing-4tveyqeh.js";
40
+ } from "../../chunks/pty-handoff-4tveyqeh.js";
41
41
  export {
42
42
  ClientError2 as ClientError,
43
43
  exports_client2 as OpenCode,
@@ -483,6 +483,16 @@ export type McpResourceTemplate = {
483
483
  description?: string;
484
484
  mimeType?: string;
485
485
  };
486
+ export type CredentialOAuth = {
487
+ type: "oauth";
488
+ methodID: string;
489
+ refresh: string;
490
+ access: string;
491
+ expires: number;
492
+ metadata?: {
493
+ [x: string]: JsonValue;
494
+ };
495
+ };
486
496
  export type ProjectVcs = string;
487
497
  export type ProjectIcon = {
488
498
  url?: string;
@@ -2408,7 +2418,7 @@ export type FormMultiselectField1 = {
2408
2418
  custom?: boolean;
2409
2419
  default?: Array<string>;
2410
2420
  };
2411
- export type FormAnswer1 = {
2421
+ export type FormAnswer2 = {
2412
2422
  [x: string]: FormValue1;
2413
2423
  };
2414
2424
  export type SessionStatusUpdated = {
@@ -2711,6 +2721,14 @@ export type FormState = {
2711
2721
  } | {
2712
2722
  status: "cancelled";
2713
2723
  };
2724
+ export type CredentialKey = {
2725
+ type: "key";
2726
+ key: string;
2727
+ metadata?: {
2728
+ [x: string]: JsonValue;
2729
+ };
2730
+ configuration?: FormAnswer;
2731
+ };
2714
2732
  export type ConnectionInfo = ConnectionCredentialInfo | ConnectionEnvInfo;
2715
2733
  export type FormField1 = FormStringField1 | FormNumberField1 | FormIntegerField1 | FormBooleanField1 | FormMultiselectField1 | FormExternalField;
2716
2734
  export type FormReplied = {
@@ -2724,7 +2742,7 @@ export type FormReplied = {
2724
2742
  data: {
2725
2743
  id: string;
2726
2744
  sessionID: string;
2727
- answer: FormAnswer1;
2745
+ answer: FormAnswer2;
2728
2746
  };
2729
2747
  };
2730
2748
  export type ReferenceInfo = {
@@ -3174,6 +3192,7 @@ export type SessionMessageAssistantTool1 = {
3174
3192
  };
3175
3193
  };
3176
3194
  export type FormFields = [FormField, ...Array<FormField>];
3195
+ export type CredentialValue = CredentialOAuth | CredentialKey;
3177
3196
  export type FormFields2 = [FormField1, ...Array<FormField1>];
3178
3197
  export type SessionsResponse = {
3179
3198
  data: Array<SessionInfo>;
@@ -3256,6 +3275,13 @@ export type IntegrationKeyMethod = {
3256
3275
  label?: string;
3257
3276
  form?: FormFields;
3258
3277
  };
3278
+ export type CredentialEntry = {
3279
+ id: string;
3280
+ integrationID: string;
3281
+ label: string;
3282
+ active: boolean;
3283
+ value: CredentialValue;
3284
+ };
3259
3285
  export type FormInfo1 = {
3260
3286
  id: string;
3261
3287
  sessionID: string;
@@ -7490,6 +7516,139 @@ export type McpResourceCatalogOutput = {
7490
7516
  location: LocationPublicRef;
7491
7517
  data: McpResourceCatalog;
7492
7518
  };
7519
+ export type CredentialListOutput = {
7520
+ data: Array<CredentialEntry>;
7521
+ }["data"];
7522
+ export type CredentialCreateInput = {
7523
+ readonly id?: {
7524
+ readonly id?: string;
7525
+ readonly integrationID: string;
7526
+ readonly label?: string;
7527
+ readonly value: {
7528
+ readonly type: "oauth";
7529
+ readonly methodID: string;
7530
+ readonly refresh: string;
7531
+ readonly access: string;
7532
+ readonly expires: number;
7533
+ readonly metadata?: {
7534
+ readonly [x: string]: JsonValue;
7535
+ };
7536
+ } | {
7537
+ readonly type: "key";
7538
+ readonly key: string;
7539
+ readonly metadata?: {
7540
+ readonly [x: string]: JsonValue;
7541
+ };
7542
+ readonly configuration?: {
7543
+ readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
7544
+ };
7545
+ };
7546
+ readonly activate?: boolean;
7547
+ }["id"];
7548
+ readonly integrationID: {
7549
+ readonly id?: string;
7550
+ readonly integrationID: string;
7551
+ readonly label?: string;
7552
+ readonly value: {
7553
+ readonly type: "oauth";
7554
+ readonly methodID: string;
7555
+ readonly refresh: string;
7556
+ readonly access: string;
7557
+ readonly expires: number;
7558
+ readonly metadata?: {
7559
+ readonly [x: string]: JsonValue;
7560
+ };
7561
+ } | {
7562
+ readonly type: "key";
7563
+ readonly key: string;
7564
+ readonly metadata?: {
7565
+ readonly [x: string]: JsonValue;
7566
+ };
7567
+ readonly configuration?: {
7568
+ readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
7569
+ };
7570
+ };
7571
+ readonly activate?: boolean;
7572
+ }["integrationID"];
7573
+ readonly label?: {
7574
+ readonly id?: string;
7575
+ readonly integrationID: string;
7576
+ readonly label?: string;
7577
+ readonly value: {
7578
+ readonly type: "oauth";
7579
+ readonly methodID: string;
7580
+ readonly refresh: string;
7581
+ readonly access: string;
7582
+ readonly expires: number;
7583
+ readonly metadata?: {
7584
+ readonly [x: string]: JsonValue;
7585
+ };
7586
+ } | {
7587
+ readonly type: "key";
7588
+ readonly key: string;
7589
+ readonly metadata?: {
7590
+ readonly [x: string]: JsonValue;
7591
+ };
7592
+ readonly configuration?: {
7593
+ readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
7594
+ };
7595
+ };
7596
+ readonly activate?: boolean;
7597
+ }["label"];
7598
+ readonly value: {
7599
+ readonly id?: string;
7600
+ readonly integrationID: string;
7601
+ readonly label?: string;
7602
+ readonly value: {
7603
+ readonly type: "oauth";
7604
+ readonly methodID: string;
7605
+ readonly refresh: string;
7606
+ readonly access: string;
7607
+ readonly expires: number;
7608
+ readonly metadata?: {
7609
+ readonly [x: string]: JsonValue;
7610
+ };
7611
+ } | {
7612
+ readonly type: "key";
7613
+ readonly key: string;
7614
+ readonly metadata?: {
7615
+ readonly [x: string]: JsonValue;
7616
+ };
7617
+ readonly configuration?: {
7618
+ readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
7619
+ };
7620
+ };
7621
+ readonly activate?: boolean;
7622
+ }["value"];
7623
+ readonly activate?: {
7624
+ readonly id?: string;
7625
+ readonly integrationID: string;
7626
+ readonly label?: string;
7627
+ readonly value: {
7628
+ readonly type: "oauth";
7629
+ readonly methodID: string;
7630
+ readonly refresh: string;
7631
+ readonly access: string;
7632
+ readonly expires: number;
7633
+ readonly metadata?: {
7634
+ readonly [x: string]: JsonValue;
7635
+ };
7636
+ } | {
7637
+ readonly type: "key";
7638
+ readonly key: string;
7639
+ readonly metadata?: {
7640
+ readonly [x: string]: JsonValue;
7641
+ };
7642
+ readonly configuration?: {
7643
+ readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
7644
+ };
7645
+ };
7646
+ readonly activate?: boolean;
7647
+ }["activate"];
7648
+ };
7649
+ export type CredentialCreateOutput = {
7650
+ data: CredentialEntry;
7651
+ }["data"];
7493
7652
  export type CredentialUpdateInput = {
7494
7653
  readonly credentialID: {
7495
7654
  readonly credentialID: string;
@@ -30,7 +30,7 @@ import {
30
30
  isForbiddenError2,
31
31
  isShellNotFoundError2,
32
32
  isWorktreeError2
33
- } from "../../chunks/service-timing-4tveyqeh.js";
33
+ } from "../../chunks/pty-handoff-4tveyqeh.js";
34
34
  export {
35
35
  isAgentNotFoundError2 as isAgentNotFoundError,
36
36
  isCommandExecutionError2 as isCommandExecutionError,
@@ -1,13 +1,13 @@
1
- import"../chunks/service-timing-m2eywc8w.js";
1
+ import"../chunks/pty-handoff-m2eywc8w.js";
2
2
  import {
3
3
  exports_client
4
- } from "../chunks/service-timing-9d87raqa.js";
5
- import"../chunks/service-timing-vyas3vgt.js";
6
- import"../chunks/service-timing-1tbj6z39.js";
7
- import"../chunks/service-timing-h9cy5hnk.js";
4
+ } from "../chunks/pty-handoff-w0z44nwf.js";
5
+ import"../chunks/pty-handoff-vyas3vgt.js";
6
+ import"../chunks/pty-handoff-8wk26zth.js";
8
7
  import {
9
8
  ClientError2
10
- } from "../chunks/service-timing-js54wxgp.js";
9
+ } from "../chunks/pty-handoff-js54wxgp.js";
10
+ import"../chunks/pty-handoff-1tbj6z39.js";
11
11
  import {
12
12
  isInvalidRequestError2,
13
13
  isUnauthorizedError2,
@@ -40,8 +40,8 @@ import {
40
40
  isForbiddenError2,
41
41
  isShellNotFoundError2,
42
42
  isWorktreeError2
43
- } from "../chunks/service-timing-4tveyqeh.js";
44
- import"../chunks/service-timing-frbwqjmf.js";
43
+ } from "../chunks/pty-handoff-4tveyqeh.js";
44
+ import"../chunks/pty-handoff-frbwqjmf.js";
45
45
  export {
46
46
  ClientError2 as ClientError,
47
47
  exports_client as OpenCode,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  makeRpc2
3
- } from "../chunks/service-timing-1tbj6z39.js";
4
- import"../chunks/service-timing-4tveyqeh.js";
3
+ } from "../chunks/pty-handoff-1tbj6z39.js";
4
+ import"../chunks/pty-handoff-4tveyqeh.js";
5
5
  export {
6
6
  makeRpc2 as makeRpc
7
7
  };
@@ -2,21 +2,21 @@ import {
2
2
  spawnServiceContender2,
3
3
  contenderFailure2,
4
4
  contenderFinished2
5
- } from "../chunks/service-timing-txckps9j.js";
5
+ } from "../chunks/pty-handoff-txckps9j.js";
6
6
  import {
7
7
  defaultEnsureTiming2,
8
8
  ensureTiming2
9
- } from "../chunks/service-timing-xgnj2w4v.js";
9
+ } from "../chunks/pty-handoff-xgnj2w4v.js";
10
10
  import {
11
11
  matchesVersion2
12
- } from "../chunks/service-timing-sxt88q69.js";
12
+ } from "../chunks/pty-handoff-sxt88q69.js";
13
13
  import {
14
14
  prepare2,
15
15
  environment2,
16
16
  complete2,
17
17
  clear2
18
- } from "../chunks/service-timing-s2sxgg3t.js";
19
- import"../chunks/service-timing-qav6mfdz.js";
18
+ } from "../chunks/pty-handoff-p1ns5v1v.js";
19
+ import"../chunks/pty-handoff-qav6mfdz.js";
20
20
 
21
21
  // src/promise/service.ts
22
22
  import { readFile, rm } from "node:fs/promises";
@@ -4,7 +4,7 @@ import {
4
4
  complete2,
5
5
  clear2,
6
6
  exports_pty_handoff
7
- } from "./chunks/service-timing-s2sxgg3t.js";
7
+ } from "./chunks/pty-handoff-p1ns5v1v.js";
8
8
  export {
9
9
  exports_pty_handoff as PtyHandoff,
10
10
  clear2 as clear,
@@ -4,7 +4,7 @@ import {
4
4
  event2,
5
5
  eventType2,
6
6
  exports_rpc_runtime
7
- } from "./chunks/service-timing-t1xa31vm.js";
7
+ } from "./chunks/pty-handoff-t1xa31vm.js";
8
8
  export {
9
9
  exports_rpc_runtime as RpcRuntime,
10
10
  event2 as event,
@@ -2,7 +2,7 @@ import {
2
2
  spawnServiceContender2,
3
3
  contenderFailure2,
4
4
  contenderFinished2
5
- } from "./chunks/service-timing-txckps9j.js";
5
+ } from "./chunks/pty-handoff-txckps9j.js";
6
6
  export {
7
7
  contenderFailure2 as contenderFailure,
8
8
  contenderFinished2 as contenderFinished,
@@ -2,7 +2,7 @@ import {
2
2
  defaultEnsureTiming2,
3
3
  ensureTiming2,
4
4
  withEnsureTiming2
5
- } from "./chunks/service-timing-xgnj2w4v.js";
5
+ } from "./chunks/pty-handoff-xgnj2w4v.js";
6
6
  export {
7
7
  defaultEnsureTiming2 as defaultEnsureTiming,
8
8
  ensureTiming2 as ensureTiming,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  matchesVersion2
3
- } from "./chunks/service-timing-sxt88q69.js";
3
+ } from "./chunks/pty-handoff-sxt88q69.js";
4
4
  export {
5
5
  matchesVersion2 as matchesVersion
6
6
  };
package/dist/service.js CHANGED
@@ -1 +1 @@
1
- import"./chunks/service-timing-qav6mfdz.js";
1
+ import"./chunks/pty-handoff-qav6mfdz.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  make7,
3
3
  exports_shared_events
4
- } from "./chunks/service-timing-frbwqjmf.js";
4
+ } from "./chunks/pty-handoff-frbwqjmf.js";
5
5
  export {
6
6
  exports_shared_events as SharedEvents,
7
7
  make7 as make
@@ -2,7 +2,7 @@ import {
2
2
  defaultIdleTimeout2,
3
3
  foregroundIdleThreshold2,
4
4
  createClientConnection2
5
- } from "../chunks/service-timing-ydhz1zrh.js";
5
+ } from "../chunks/pty-handoff-ydhz1zrh.js";
6
6
  export {
7
7
  createClientConnection2 as createClientConnection,
8
8
  defaultIdleTimeout2 as defaultIdleTimeout,
@@ -2,15 +2,15 @@ import {
2
2
  settleMs2,
3
3
  locationKey2,
4
4
  createData2
5
- } from "../chunks/service-timing-h11j9btw.js";
6
- import"../chunks/service-timing-m2eywc8w.js";
7
- import"../chunks/service-timing-9d87raqa.js";
8
- import"../chunks/service-timing-vyas3vgt.js";
9
- import"../chunks/service-timing-1tbj6z39.js";
10
- import"../chunks/service-timing-h9cy5hnk.js";
11
- import"../chunks/service-timing-js54wxgp.js";
12
- import"../chunks/service-timing-4tveyqeh.js";
13
- import"../chunks/service-timing-frbwqjmf.js";
5
+ } from "../chunks/pty-handoff-h11j9btw.js";
6
+ import"../chunks/pty-handoff-m2eywc8w.js";
7
+ import"../chunks/pty-handoff-w0z44nwf.js";
8
+ import"../chunks/pty-handoff-vyas3vgt.js";
9
+ import"../chunks/pty-handoff-8wk26zth.js";
10
+ import"../chunks/pty-handoff-js54wxgp.js";
11
+ import"../chunks/pty-handoff-1tbj6z39.js";
12
+ import"../chunks/pty-handoff-4tveyqeh.js";
13
+ import"../chunks/pty-handoff-frbwqjmf.js";
14
14
  export {
15
15
  createData2 as createData,
16
16
  locationKey2 as locationKey,
@@ -1,25 +1,25 @@
1
- import"../chunks/service-timing-js54wxgp.js";
2
- import"../chunks/service-timing-h9cy5hnk.js";
3
- import"../chunks/service-timing-4tveyqeh.js";
4
- import"../chunks/service-timing-vyas3vgt.js";
5
- import"../chunks/service-timing-frbwqjmf.js";
6
- import"../chunks/service-timing-1tbj6z39.js";
7
- import"../chunks/service-timing-9d87raqa.js";
8
- import"../chunks/service-timing-m2eywc8w.js";
1
+ import"../chunks/pty-handoff-js54wxgp.js";
2
+ import"../chunks/pty-handoff-8wk26zth.js";
3
+ import"../chunks/pty-handoff-4tveyqeh.js";
4
+ import"../chunks/pty-handoff-vyas3vgt.js";
5
+ import"../chunks/pty-handoff-frbwqjmf.js";
6
+ import"../chunks/pty-handoff-1tbj6z39.js";
7
+ import"../chunks/pty-handoff-w0z44nwf.js";
8
+ import"../chunks/pty-handoff-m2eywc8w.js";
9
9
  import {
10
10
  settleMs2,
11
11
  locationKey2,
12
12
  createData2
13
- } from "../chunks/service-timing-h11j9btw.js";
13
+ } from "../chunks/pty-handoff-h11j9btw.js";
14
14
  import {
15
15
  defaultIdleTimeout2,
16
16
  foregroundIdleThreshold2,
17
17
  createClientConnection2
18
- } from "../chunks/service-timing-ydhz1zrh.js";
18
+ } from "../chunks/pty-handoff-ydhz1zrh.js";
19
19
  import {
20
20
  createPtyClient2,
21
21
  createPersistentPtyClient2
22
- } from "../chunks/service-timing-gne7h7mq.js";
22
+ } from "../chunks/pty-handoff-gne7h7mq.js";
23
23
  export {
24
24
  createClientConnection2 as createClientConnection,
25
25
  createData2 as createData,
package/dist/solid/pty.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createPtyClient2,
3
3
  createPersistentPtyClient2
4
- } from "../chunks/service-timing-gne7h7mq.js";
4
+ } from "../chunks/pty-handoff-gne7h7mq.js";
5
5
  export {
6
6
  createPersistentPtyClient2 as createPersistentPtyClient,
7
7
  createPtyClient2 as createPtyClient
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/client",
4
- "version": "0.0.0-dev-20300",
4
+ "version": "0.0.0-dev-20307",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -57,8 +57,8 @@
57
57
  "typecheck": "tsgo --noEmit"
58
58
  },
59
59
  "dependencies": {
60
- "@opencode/schema": "0.0.0-dev-20300",
61
- "@opencode/protocol": "0.0.0-dev-20300"
60
+ "@opencode/schema": "0.0.0-dev-20307",
61
+ "@opencode/protocol": "0.0.0-dev-20307"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "effect": "4.0.0-rc.112",
@@ -74,7 +74,7 @@
74
74
  },
75
75
  "devDependencies": {
76
76
  "@effect/platform-node": "4.0.0-rc.112",
77
- "@opencode/httpapi-codegen": "0.0.0-dev-20300",
77
+ "@opencode/httpapi-codegen": "0.0.0-dev-20307",
78
78
  "@tsconfig/bun": "1.0.9",
79
79
  "@types/bun": "1.4.0",
80
80
  "@typescript/native-preview": "7.0.0-dev.20251207.1",