@opencode-ai/client 0.0.0-next-15717 → 0.0.0-next-15747
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.
- package/dist/effect/api/api.d.ts +23 -15
- package/dist/effect/generated/client.d.ts +6797 -4978
- package/dist/effect/generated/client.js +10 -8
- package/dist/effect/service.js +1 -1
- package/dist/promise/generated/client.d.ts +4 -1
- package/dist/promise/generated/client.js +8 -0
- package/dist/promise/generated/types.d.ts +14 -0
- package/package.json +7 -7
package/dist/effect/api/api.d.ts
CHANGED
|
@@ -244,33 +244,40 @@ export type Endpoint5_24Input = {
|
|
|
244
244
|
};
|
|
245
245
|
export type Endpoint5_24Output = EffectValue<ReturnType<RawClient["server.session"]["session.instructions.entry.remove"]>>;
|
|
246
246
|
export type SessionInstructionsEntryRemoveOperation<E = never> = (input: Endpoint5_24Input) => Effect.Effect<Endpoint5_24Output, E>;
|
|
247
|
-
type Endpoint5_25Request = Parameters<RawClient["server.session"]["session.
|
|
247
|
+
type Endpoint5_25Request = Parameters<RawClient["server.session"]["session.generate"]>[0];
|
|
248
248
|
export type Endpoint5_25Input = {
|
|
249
249
|
readonly sessionID: Endpoint5_25Request["params"]["sessionID"];
|
|
250
|
-
readonly
|
|
251
|
-
readonly follow?: Endpoint5_25Request["query"]["follow"];
|
|
250
|
+
readonly prompt: Endpoint5_25Request["payload"]["prompt"];
|
|
252
251
|
};
|
|
253
|
-
export type Endpoint5_25Output =
|
|
254
|
-
export type
|
|
255
|
-
type Endpoint5_26Request = Parameters<RawClient["server.session"]["session.
|
|
252
|
+
export type Endpoint5_25Output = EffectValue<ReturnType<RawClient["server.session"]["session.generate"]>>["data"];
|
|
253
|
+
export type SessionGenerateOperation<E = never> = (input: Endpoint5_25Input) => Effect.Effect<Endpoint5_25Output, E>;
|
|
254
|
+
type Endpoint5_26Request = Parameters<RawClient["server.session"]["session.log"]>[0];
|
|
256
255
|
export type Endpoint5_26Input = {
|
|
257
256
|
readonly sessionID: Endpoint5_26Request["params"]["sessionID"];
|
|
257
|
+
readonly after?: Endpoint5_26Request["query"]["after"];
|
|
258
|
+
readonly follow?: Endpoint5_26Request["query"]["follow"];
|
|
258
259
|
};
|
|
259
|
-
export type Endpoint5_26Output = EffectValue<ReturnType<RawClient["server.session"]["session.
|
|
260
|
-
export type
|
|
261
|
-
type Endpoint5_27Request = Parameters<RawClient["server.session"]["session.
|
|
260
|
+
export type Endpoint5_26Output = StreamValue<EffectValue<ReturnType<RawClient["server.session"]["session.log"]>>>;
|
|
261
|
+
export type SessionLogOperation<E = never> = (input: Endpoint5_26Input) => Stream.Stream<Endpoint5_26Output, E>;
|
|
262
|
+
type Endpoint5_27Request = Parameters<RawClient["server.session"]["session.interrupt"]>[0];
|
|
262
263
|
export type Endpoint5_27Input = {
|
|
263
264
|
readonly sessionID: Endpoint5_27Request["params"]["sessionID"];
|
|
264
265
|
};
|
|
265
|
-
export type Endpoint5_27Output = EffectValue<ReturnType<RawClient["server.session"]["session.
|
|
266
|
-
export type
|
|
267
|
-
type Endpoint5_28Request = Parameters<RawClient["server.session"]["session.
|
|
266
|
+
export type Endpoint5_27Output = EffectValue<ReturnType<RawClient["server.session"]["session.interrupt"]>>;
|
|
267
|
+
export type SessionInterruptOperation<E = never> = (input: Endpoint5_27Input) => Effect.Effect<Endpoint5_27Output, E>;
|
|
268
|
+
type Endpoint5_28Request = Parameters<RawClient["server.session"]["session.background"]>[0];
|
|
268
269
|
export type Endpoint5_28Input = {
|
|
269
270
|
readonly sessionID: Endpoint5_28Request["params"]["sessionID"];
|
|
270
|
-
readonly messageID: Endpoint5_28Request["params"]["messageID"];
|
|
271
271
|
};
|
|
272
|
-
export type Endpoint5_28Output = EffectValue<ReturnType<RawClient["server.session"]["session.
|
|
273
|
-
export type
|
|
272
|
+
export type Endpoint5_28Output = EffectValue<ReturnType<RawClient["server.session"]["session.background"]>>;
|
|
273
|
+
export type SessionBackgroundOperation<E = never> = (input: Endpoint5_28Input) => Effect.Effect<Endpoint5_28Output, E>;
|
|
274
|
+
type Endpoint5_29Request = Parameters<RawClient["server.session"]["session.message"]>[0];
|
|
275
|
+
export type Endpoint5_29Input = {
|
|
276
|
+
readonly sessionID: Endpoint5_29Request["params"]["sessionID"];
|
|
277
|
+
readonly messageID: Endpoint5_29Request["params"]["messageID"];
|
|
278
|
+
};
|
|
279
|
+
export type Endpoint5_29Output = EffectValue<ReturnType<RawClient["server.session"]["session.message"]>>["data"];
|
|
280
|
+
export type SessionMessageOperation<E = never> = (input: Endpoint5_29Input) => Effect.Effect<Endpoint5_29Output, E>;
|
|
274
281
|
export interface SessionApi<E = never> {
|
|
275
282
|
readonly list: SessionListOperation<E>;
|
|
276
283
|
readonly create: SessionCreateOperation<E>;
|
|
@@ -305,6 +312,7 @@ export interface SessionApi<E = never> {
|
|
|
305
312
|
readonly remove: SessionInstructionsEntryRemoveOperation<E>;
|
|
306
313
|
};
|
|
307
314
|
};
|
|
315
|
+
readonly generate: SessionGenerateOperation<E>;
|
|
308
316
|
readonly log: SessionLogOperation<E>;
|
|
309
317
|
readonly interrupt: SessionInterruptOperation<E>;
|
|
310
318
|
readonly background: SessionBackgroundOperation<E>;
|