@opencode-ai/client 0.0.0-next-17335 → 0.0.0-next-17346
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 +34 -65
- package/dist/effect/generated/client.d.ts +33 -57
- package/dist/effect/generated/client.js +10 -7
- package/dist/effect/index.d.ts +1 -1
- package/dist/effect/index.js +1 -1
- package/dist/promise/generated/client.d.ts +10 -10
- package/dist/promise/generated/client.js +7 -7
- package/dist/promise/generated/types.d.ts +158 -158
- package/package.json +4 -4
package/dist/effect/api/api.d.ts
CHANGED
|
@@ -10,9 +10,9 @@ import type { RelativePath } from "@opencode-ai/schema/schema";
|
|
|
10
10
|
import type { Brand } from "effect";
|
|
11
11
|
import type { Model } from "@opencode-ai/schema/model";
|
|
12
12
|
import type { SessionMessage } from "@opencode-ai/schema/session-message";
|
|
13
|
+
import type { SessionInbox } from "@opencode-ai/schema/session-inbox";
|
|
13
14
|
import type { PromptInput } from "@opencode-ai/schema/prompt-input";
|
|
14
15
|
import type { AgentAttachment } from "@opencode-ai/schema/prompt";
|
|
15
|
-
import type { SessionPending } from "@opencode-ai/schema/session-pending";
|
|
16
16
|
import type { Skill } from "@opencode-ai/schema/skill";
|
|
17
17
|
import type { Event } from "@opencode-ai/schema/event";
|
|
18
18
|
import type { InstructionEntry } from "@opencode-ai/schema/instruction-entry";
|
|
@@ -202,6 +202,7 @@ export type Endpoint5_11Input = {
|
|
|
202
202
|
readonly sessionID: Session.ID;
|
|
203
203
|
readonly directory: AbsolutePath;
|
|
204
204
|
readonly workspaceID?: Workspace.ID | undefined;
|
|
205
|
+
readonly delivery?: SessionInbox.Delivery | undefined;
|
|
205
206
|
};
|
|
206
207
|
export type Endpoint5_11Output = void;
|
|
207
208
|
export type SessionMoveOperation<E = never> = (input: Endpoint5_11Input) => Effect.Effect<Endpoint5_11Output, E>;
|
|
@@ -215,10 +216,10 @@ export type Endpoint5_12Input = {
|
|
|
215
216
|
readonly metadata?: {
|
|
216
217
|
readonly [x: string]: unknown;
|
|
217
218
|
} | undefined;
|
|
218
|
-
readonly delivery?:
|
|
219
|
+
readonly delivery?: SessionInbox.Delivery | undefined;
|
|
219
220
|
readonly resume?: boolean | undefined;
|
|
220
221
|
};
|
|
221
|
-
export type Endpoint5_12Output =
|
|
222
|
+
export type Endpoint5_12Output = SessionInbox.User;
|
|
222
223
|
export type SessionPromptOperation<E = never> = (input: Endpoint5_12Input) => Effect.Effect<Endpoint5_12Output, E>;
|
|
223
224
|
export type Endpoint5_13Input = {
|
|
224
225
|
readonly sessionID: Session.ID;
|
|
@@ -230,10 +231,10 @@ export type Endpoint5_13Input = {
|
|
|
230
231
|
readonly files?: ReadonlyArray<PromptInput.FileAttachment> | undefined;
|
|
231
232
|
readonly agents?: ReadonlyArray<AgentAttachment> | undefined;
|
|
232
233
|
readonly skills?: ReadonlyArray<PromptInput.SkillAttachment> | undefined;
|
|
233
|
-
readonly delivery?:
|
|
234
|
+
readonly delivery?: SessionInbox.Delivery | undefined;
|
|
234
235
|
readonly resume?: boolean | undefined;
|
|
235
236
|
};
|
|
236
|
-
export type Endpoint5_13Output =
|
|
237
|
+
export type Endpoint5_13Output = SessionInbox.User;
|
|
237
238
|
export type SessionCommandOperation<E = never> = (input: Endpoint5_13Input) => Effect.Effect<Endpoint5_13Output, E>;
|
|
238
239
|
export type Endpoint5_14Input = {
|
|
239
240
|
readonly sessionID: Session.ID;
|
|
@@ -251,10 +252,10 @@ export type Endpoint5_15Input = {
|
|
|
251
252
|
readonly metadata?: {
|
|
252
253
|
readonly [x: string]: unknown;
|
|
253
254
|
} | undefined;
|
|
254
|
-
readonly delivery?:
|
|
255
|
+
readonly delivery?: SessionInbox.Delivery | undefined;
|
|
255
256
|
readonly resume?: boolean | undefined;
|
|
256
257
|
};
|
|
257
|
-
export type Endpoint5_15Output =
|
|
258
|
+
export type Endpoint5_15Output = SessionInbox.Synthetic;
|
|
258
259
|
export type SessionSyntheticOperation<E = never> = (input: Endpoint5_15Input) => Effect.Effect<Endpoint5_15Output, E>;
|
|
259
260
|
export type Endpoint5_16Input = {
|
|
260
261
|
readonly sessionID: Session.ID;
|
|
@@ -266,8 +267,9 @@ export type SessionShellOperation<E = never> = (input: Endpoint5_16Input) => Eff
|
|
|
266
267
|
export type Endpoint5_17Input = {
|
|
267
268
|
readonly sessionID: Session.ID;
|
|
268
269
|
readonly id?: SessionMessage.ID | undefined;
|
|
270
|
+
readonly delivery?: SessionInbox.Delivery | undefined;
|
|
269
271
|
};
|
|
270
|
-
export type Endpoint5_17Output =
|
|
272
|
+
export type Endpoint5_17Output = SessionInbox.Compaction;
|
|
271
273
|
export type SessionCompactOperation<E = never> = (input: Endpoint5_17Input) => Effect.Effect<Endpoint5_17Output, E>;
|
|
272
274
|
export type Endpoint5_18Input = {
|
|
273
275
|
readonly sessionID: Session.ID;
|
|
@@ -299,26 +301,26 @@ export type SessionContextOperation<E = never> = (input: Endpoint5_22Input) => E
|
|
|
299
301
|
export type Endpoint5_23Input = {
|
|
300
302
|
readonly sessionID: Session.ID;
|
|
301
303
|
};
|
|
302
|
-
export type Endpoint5_23Output = ReadonlyArray<
|
|
303
|
-
export type
|
|
304
|
+
export type Endpoint5_23Output = ReadonlyArray<SessionInbox.Info>;
|
|
305
|
+
export type SessionInboxListOperation<E = never> = (input: Endpoint5_23Input) => Effect.Effect<Endpoint5_23Output, E>;
|
|
304
306
|
export type Endpoint5_24Input = {
|
|
305
307
|
readonly sessionID: Session.ID;
|
|
306
|
-
readonly
|
|
308
|
+
readonly inboxID: SessionMessage.ID;
|
|
307
309
|
};
|
|
308
310
|
export type Endpoint5_24Output = void;
|
|
309
|
-
export type
|
|
311
|
+
export type SessionInboxCancelOperation<E = never> = (input: Endpoint5_24Input) => Effect.Effect<Endpoint5_24Output, E>;
|
|
310
312
|
export type Endpoint5_25Input = {
|
|
311
313
|
readonly sessionID: Session.ID;
|
|
312
|
-
readonly
|
|
314
|
+
readonly inboxID: SessionMessage.ID;
|
|
313
315
|
};
|
|
314
316
|
export type Endpoint5_25Output = void;
|
|
315
|
-
export type
|
|
317
|
+
export type SessionInboxSteerOperation<E = never> = (input: Endpoint5_25Input) => Effect.Effect<Endpoint5_25Output, E>;
|
|
316
318
|
export type Endpoint5_26Input = {
|
|
317
319
|
readonly sessionID: Session.ID;
|
|
318
|
-
readonly
|
|
320
|
+
readonly inboxID: SessionMessage.ID;
|
|
319
321
|
};
|
|
320
322
|
export type Endpoint5_26Output = void;
|
|
321
|
-
export type
|
|
323
|
+
export type SessionInboxQueueOperation<E = never> = (input: Endpoint5_26Input) => Effect.Effect<Endpoint5_26Output, E>;
|
|
322
324
|
export type Endpoint5_27Input = {
|
|
323
325
|
readonly sessionID: Session.ID;
|
|
324
326
|
};
|
|
@@ -427,7 +429,7 @@ export type Endpoint5_31Output = ({
|
|
|
427
429
|
readonly data: {
|
|
428
430
|
readonly sessionID: Session.ID;
|
|
429
431
|
readonly location: Location.Ref;
|
|
430
|
-
readonly projectID
|
|
432
|
+
readonly projectID: Project.ID;
|
|
431
433
|
readonly subpath?: RelativePath | undefined;
|
|
432
434
|
};
|
|
433
435
|
} | {
|
|
@@ -490,24 +492,7 @@ export type Endpoint5_31Output = ({
|
|
|
490
492
|
readonly metadata?: {
|
|
491
493
|
readonly [x: string]: unknown;
|
|
492
494
|
} | undefined;
|
|
493
|
-
readonly type: "session.
|
|
494
|
-
readonly durable: {
|
|
495
|
-
readonly aggregateID: string;
|
|
496
|
-
readonly seq: Event.Seq;
|
|
497
|
-
readonly version: Event.Version;
|
|
498
|
-
};
|
|
499
|
-
readonly location?: Location.Ref | undefined;
|
|
500
|
-
readonly data: {
|
|
501
|
-
readonly sessionID: Session.ID;
|
|
502
|
-
readonly inputID: SessionMessage.ID;
|
|
503
|
-
};
|
|
504
|
-
} | {
|
|
505
|
-
readonly id: Event.ID;
|
|
506
|
-
readonly created: DateTime.Utc;
|
|
507
|
-
readonly metadata?: {
|
|
508
|
-
readonly [x: string]: unknown;
|
|
509
|
-
} | undefined;
|
|
510
|
-
readonly type: "session.input.admitted";
|
|
495
|
+
readonly type: "session.inbox.delivered";
|
|
511
496
|
readonly durable: {
|
|
512
497
|
readonly aggregateID: string;
|
|
513
498
|
readonly seq: Event.Seq;
|
|
@@ -516,8 +501,7 @@ export type Endpoint5_31Output = ({
|
|
|
516
501
|
readonly location?: Location.Ref | undefined;
|
|
517
502
|
readonly data: {
|
|
518
503
|
readonly sessionID: Session.ID;
|
|
519
|
-
readonly
|
|
520
|
-
readonly input: SessionPending.Message;
|
|
504
|
+
readonly inboxID: SessionMessage.ID;
|
|
521
505
|
};
|
|
522
506
|
} | {
|
|
523
507
|
readonly id: Event.ID;
|
|
@@ -525,7 +509,7 @@ export type Endpoint5_31Output = ({
|
|
|
525
509
|
readonly metadata?: {
|
|
526
510
|
readonly [x: string]: unknown;
|
|
527
511
|
} | undefined;
|
|
528
|
-
readonly type: "session.
|
|
512
|
+
readonly type: "session.inbox.enqueued";
|
|
529
513
|
readonly durable: {
|
|
530
514
|
readonly aggregateID: string;
|
|
531
515
|
readonly seq: Event.Seq;
|
|
@@ -534,7 +518,8 @@ export type Endpoint5_31Output = ({
|
|
|
534
518
|
readonly location?: Location.Ref | undefined;
|
|
535
519
|
readonly data: {
|
|
536
520
|
readonly sessionID: Session.ID;
|
|
537
|
-
readonly
|
|
521
|
+
readonly inboxID: SessionMessage.ID;
|
|
522
|
+
readonly item: SessionInbox.Item;
|
|
538
523
|
};
|
|
539
524
|
} | {
|
|
540
525
|
readonly id: Event.ID;
|
|
@@ -542,7 +527,7 @@ export type Endpoint5_31Output = ({
|
|
|
542
527
|
readonly metadata?: {
|
|
543
528
|
readonly [x: string]: unknown;
|
|
544
529
|
} | undefined;
|
|
545
|
-
readonly type: "session.
|
|
530
|
+
readonly type: "session.inbox.cancelled";
|
|
546
531
|
readonly durable: {
|
|
547
532
|
readonly aggregateID: string;
|
|
548
533
|
readonly seq: Event.Seq;
|
|
@@ -551,7 +536,7 @@ export type Endpoint5_31Output = ({
|
|
|
551
536
|
readonly location?: Location.Ref | undefined;
|
|
552
537
|
readonly data: {
|
|
553
538
|
readonly sessionID: Session.ID;
|
|
554
|
-
readonly
|
|
539
|
+
readonly inboxID: SessionMessage.ID;
|
|
555
540
|
};
|
|
556
541
|
} | {
|
|
557
542
|
readonly id: Event.ID;
|
|
@@ -559,7 +544,7 @@ export type Endpoint5_31Output = ({
|
|
|
559
544
|
readonly metadata?: {
|
|
560
545
|
readonly [x: string]: unknown;
|
|
561
546
|
} | undefined;
|
|
562
|
-
readonly type: "session.
|
|
547
|
+
readonly type: "session.inbox.delivery.changed";
|
|
563
548
|
readonly durable: {
|
|
564
549
|
readonly aggregateID: string;
|
|
565
550
|
readonly seq: Event.Seq;
|
|
@@ -568,7 +553,8 @@ export type Endpoint5_31Output = ({
|
|
|
568
553
|
readonly location?: Location.Ref | undefined;
|
|
569
554
|
readonly data: {
|
|
570
555
|
readonly sessionID: Session.ID;
|
|
571
|
-
readonly
|
|
556
|
+
readonly inboxID: SessionMessage.ID;
|
|
557
|
+
readonly delivery: SessionInbox.Delivery;
|
|
572
558
|
};
|
|
573
559
|
} | {
|
|
574
560
|
readonly id: Event.ID;
|
|
@@ -1077,23 +1063,6 @@ export type Endpoint5_31Output = ({
|
|
|
1077
1063
|
readonly status?: number | undefined;
|
|
1078
1064
|
};
|
|
1079
1065
|
};
|
|
1080
|
-
} | {
|
|
1081
|
-
readonly id: Event.ID;
|
|
1082
|
-
readonly created: DateTime.Utc;
|
|
1083
|
-
readonly metadata?: {
|
|
1084
|
-
readonly [x: string]: unknown;
|
|
1085
|
-
} | undefined;
|
|
1086
|
-
readonly type: "session.compaction.admitted";
|
|
1087
|
-
readonly durable: {
|
|
1088
|
-
readonly aggregateID: string;
|
|
1089
|
-
readonly seq: Event.Seq;
|
|
1090
|
-
readonly version: Event.Version;
|
|
1091
|
-
};
|
|
1092
|
-
readonly location?: Location.Ref | undefined;
|
|
1093
|
-
readonly data: {
|
|
1094
|
-
readonly sessionID: Session.ID;
|
|
1095
|
-
readonly inputID: SessionMessage.ID;
|
|
1096
|
-
};
|
|
1097
1066
|
} | {
|
|
1098
1067
|
readonly id: Event.ID;
|
|
1099
1068
|
readonly created: DateTime.Utc;
|
|
@@ -1277,11 +1246,11 @@ export interface SessionApi<E = never> {
|
|
|
1277
1246
|
readonly commit: SessionRevertCommitOperation<E>;
|
|
1278
1247
|
};
|
|
1279
1248
|
readonly context: SessionContextOperation<E>;
|
|
1280
|
-
readonly
|
|
1281
|
-
readonly list:
|
|
1282
|
-
readonly cancel:
|
|
1283
|
-
readonly steer:
|
|
1284
|
-
readonly queue:
|
|
1249
|
+
readonly inbox: {
|
|
1250
|
+
readonly list: SessionInboxListOperation<E>;
|
|
1251
|
+
readonly cancel: SessionInboxCancelOperation<E>;
|
|
1252
|
+
readonly steer: SessionInboxSteerOperation<E>;
|
|
1253
|
+
readonly queue: SessionInboxQueueOperation<E>;
|
|
1285
1254
|
};
|
|
1286
1255
|
readonly instructions: {
|
|
1287
1256
|
readonly entry: {
|
|
@@ -36,12 +36,12 @@ export declare const make: (options?: {
|
|
|
36
36
|
switchModel: (input: Endpoint5_9Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
|
|
37
37
|
rename: (input: Endpoint5_10Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
|
|
38
38
|
move: (input: Endpoint5_11Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
|
|
39
|
-
prompt: (input: Endpoint5_12Input) => Effect.Effect<import("@opencode-ai/schema/session-
|
|
40
|
-
command: (input: Endpoint5_13Input) => Effect.Effect<import("@opencode-ai/schema/session-
|
|
39
|
+
prompt: (input: Endpoint5_12Input) => Effect.Effect<import("@opencode-ai/schema/session-inbox").User, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ConflictError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
|
|
40
|
+
command: (input: Endpoint5_13Input) => Effect.Effect<import("@opencode-ai/schema/session-inbox").User, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ConflictError | import("@opencode-ai/protocol/errors").SessionNotFoundError | import("@opencode-ai/protocol/errors").CommandNotFoundError | import("@opencode-ai/protocol/errors").CommandEvaluationError | ClientError | HttpClientError.HttpClientError, never>;
|
|
41
41
|
skill: (input: Endpoint5_14Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | import("@opencode-ai/protocol/errors").SkillNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
|
|
42
|
-
synthetic: (input: Endpoint5_15Input) => Effect.Effect<import("@opencode-ai/schema/session-
|
|
42
|
+
synthetic: (input: Endpoint5_15Input) => Effect.Effect<import("@opencode-ai/schema/session-inbox").Synthetic, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ConflictError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
|
|
43
43
|
shell: (input: Endpoint5_16Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
|
|
44
|
-
compact: (input: Endpoint5_17Input) => Effect.Effect<import("@opencode-ai/schema/session-
|
|
44
|
+
compact: (input: Endpoint5_17Input) => Effect.Effect<import("@opencode-ai/schema/session-inbox").Compaction, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ConflictError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
|
|
45
45
|
wait: (input: Endpoint5_18Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ServiceUnavailableError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
|
|
46
46
|
revert: {
|
|
47
47
|
stage: (input: Endpoint5_19Input) => Effect.Effect<import("@opencode-ai/schema/session-revert").Revert, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionBusyError | import("@opencode-ai/protocol/errors").UnknownError | import("@opencode-ai/protocol/errors").SessionNotFoundError | import("@opencode-ai/protocol/errors").MessageNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
|
|
@@ -49,7 +49,7 @@ export declare const make: (options?: {
|
|
|
49
49
|
commit: (input: Endpoint5_21Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionBusyError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
|
|
50
50
|
};
|
|
51
51
|
context: (input: Endpoint5_22Input) => Effect.Effect<Endpoint5_22Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").UnknownError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
|
|
52
|
-
|
|
52
|
+
inbox: {
|
|
53
53
|
list: (input: Endpoint5_23Input) => Effect.Effect<Endpoint5_23Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
|
|
54
54
|
cancel: (input: Endpoint5_24Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ConflictError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
|
|
55
55
|
steer: (input: Endpoint5_25Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ConflictError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
|
|
@@ -647,7 +647,7 @@ export declare const make: (options?: {
|
|
|
647
647
|
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
648
648
|
};
|
|
649
649
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
650
|
-
readonly projectID
|
|
650
|
+
readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
|
|
651
651
|
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
652
652
|
};
|
|
653
653
|
readonly durable: {
|
|
@@ -760,7 +760,7 @@ export declare const make: (options?: {
|
|
|
760
760
|
} | {
|
|
761
761
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
762
762
|
readonly data: {
|
|
763
|
-
readonly
|
|
763
|
+
readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
764
764
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
765
765
|
};
|
|
766
766
|
readonly durable: {
|
|
@@ -768,7 +768,7 @@ export declare const make: (options?: {
|
|
|
768
768
|
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
769
769
|
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
770
770
|
};
|
|
771
|
-
readonly type: "session.
|
|
771
|
+
readonly type: "session.inbox.delivered";
|
|
772
772
|
readonly created: import("effect/DateTime").Utc;
|
|
773
773
|
readonly location?: {
|
|
774
774
|
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
@@ -780,9 +780,9 @@ export declare const make: (options?: {
|
|
|
780
780
|
} | {
|
|
781
781
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
782
782
|
readonly data: {
|
|
783
|
-
readonly
|
|
783
|
+
readonly item: {
|
|
784
784
|
readonly type: "user";
|
|
785
|
-
readonly
|
|
785
|
+
readonly payload: {
|
|
786
786
|
readonly text: string;
|
|
787
787
|
readonly metadata?: {
|
|
788
788
|
readonly [x: string]: unknown;
|
|
@@ -826,7 +826,7 @@ export declare const make: (options?: {
|
|
|
826
826
|
readonly delivery: "steer" | "queue";
|
|
827
827
|
} | {
|
|
828
828
|
readonly type: "synthetic";
|
|
829
|
-
readonly
|
|
829
|
+
readonly payload: {
|
|
830
830
|
readonly text: string;
|
|
831
831
|
readonly metadata?: {
|
|
832
832
|
readonly [x: string]: unknown;
|
|
@@ -834,8 +834,23 @@ export declare const make: (options?: {
|
|
|
834
834
|
readonly description?: string | undefined;
|
|
835
835
|
};
|
|
836
836
|
readonly delivery: "steer" | "queue";
|
|
837
|
+
} | {
|
|
838
|
+
readonly type: "compaction";
|
|
839
|
+
readonly payload: {};
|
|
840
|
+
readonly delivery: "steer" | "queue";
|
|
841
|
+
} | {
|
|
842
|
+
readonly type: "move";
|
|
843
|
+
readonly payload: {
|
|
844
|
+
readonly location: {
|
|
845
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
846
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
847
|
+
};
|
|
848
|
+
readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
|
|
849
|
+
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
850
|
+
};
|
|
851
|
+
readonly delivery: "steer" | "queue";
|
|
837
852
|
};
|
|
838
|
-
readonly
|
|
853
|
+
readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
839
854
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
840
855
|
};
|
|
841
856
|
readonly durable: {
|
|
@@ -843,7 +858,7 @@ export declare const make: (options?: {
|
|
|
843
858
|
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
844
859
|
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
845
860
|
};
|
|
846
|
-
readonly type: "session.
|
|
861
|
+
readonly type: "session.inbox.enqueued";
|
|
847
862
|
readonly created: import("effect/DateTime").Utc;
|
|
848
863
|
readonly location?: {
|
|
849
864
|
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
@@ -855,7 +870,7 @@ export declare const make: (options?: {
|
|
|
855
870
|
} | {
|
|
856
871
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
857
872
|
readonly data: {
|
|
858
|
-
readonly
|
|
873
|
+
readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
859
874
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
860
875
|
};
|
|
861
876
|
readonly durable: {
|
|
@@ -863,7 +878,7 @@ export declare const make: (options?: {
|
|
|
863
878
|
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
864
879
|
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
865
880
|
};
|
|
866
|
-
readonly type: "session.
|
|
881
|
+
readonly type: "session.inbox.cancelled";
|
|
867
882
|
readonly created: import("effect/DateTime").Utc;
|
|
868
883
|
readonly location?: {
|
|
869
884
|
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
@@ -875,7 +890,8 @@ export declare const make: (options?: {
|
|
|
875
890
|
} | {
|
|
876
891
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
877
892
|
readonly data: {
|
|
878
|
-
readonly
|
|
893
|
+
readonly delivery: "steer" | "queue";
|
|
894
|
+
readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
879
895
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
880
896
|
};
|
|
881
897
|
readonly durable: {
|
|
@@ -883,27 +899,7 @@ export declare const make: (options?: {
|
|
|
883
899
|
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
884
900
|
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
885
901
|
};
|
|
886
|
-
readonly type: "session.
|
|
887
|
-
readonly created: import("effect/DateTime").Utc;
|
|
888
|
-
readonly location?: {
|
|
889
|
-
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
890
|
-
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
891
|
-
} | undefined;
|
|
892
|
-
readonly metadata?: {
|
|
893
|
-
readonly [x: string]: unknown;
|
|
894
|
-
} | undefined;
|
|
895
|
-
} | {
|
|
896
|
-
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
897
|
-
readonly data: {
|
|
898
|
-
readonly inputID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
899
|
-
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
900
|
-
};
|
|
901
|
-
readonly durable: {
|
|
902
|
-
readonly aggregateID: string;
|
|
903
|
-
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
904
|
-
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
905
|
-
};
|
|
906
|
-
readonly type: "session.input.queued";
|
|
902
|
+
readonly type: "session.inbox.delivery.changed";
|
|
907
903
|
readonly created: import("effect/DateTime").Utc;
|
|
908
904
|
readonly location?: {
|
|
909
905
|
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
@@ -1597,26 +1593,6 @@ export declare const make: (options?: {
|
|
|
1597
1593
|
readonly metadata?: {
|
|
1598
1594
|
readonly [x: string]: unknown;
|
|
1599
1595
|
} | undefined;
|
|
1600
|
-
} | {
|
|
1601
|
-
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
1602
|
-
readonly data: {
|
|
1603
|
-
readonly inputID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1604
|
-
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1605
|
-
};
|
|
1606
|
-
readonly durable: {
|
|
1607
|
-
readonly aggregateID: string;
|
|
1608
|
-
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
1609
|
-
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
1610
|
-
};
|
|
1611
|
-
readonly type: "session.compaction.admitted";
|
|
1612
|
-
readonly created: import("effect/DateTime").Utc;
|
|
1613
|
-
readonly location?: {
|
|
1614
|
-
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
1615
|
-
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
1616
|
-
} | undefined;
|
|
1617
|
-
readonly metadata?: {
|
|
1618
|
-
readonly [x: string]: unknown;
|
|
1619
|
-
} | undefined;
|
|
1620
1596
|
} | {
|
|
1621
1597
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
1622
1598
|
readonly data: {
|
|
@@ -57,7 +57,7 @@ const Endpoint5_9 = (raw) => (input) => preserveEffect()(raw["session.switchMode
|
|
|
57
57
|
const Endpoint5_10 = (raw) => (input) => preserveEffect()(raw["session.rename"]({ params: { sessionID: input["sessionID"] }, payload: { title: input["title"] } }).pipe(Effect.mapError(mapClientError)));
|
|
58
58
|
const Endpoint5_11 = (raw) => (input) => preserveEffect()(raw["session.move"]({
|
|
59
59
|
params: { sessionID: input["sessionID"] },
|
|
60
|
-
payload: { directory: input["directory"], workspaceID: input["workspaceID"] },
|
|
60
|
+
payload: { directory: input["directory"], workspaceID: input["workspaceID"], delivery: input["delivery"] },
|
|
61
61
|
}).pipe(Effect.mapError(mapClientError)));
|
|
62
62
|
const Endpoint5_12 = (raw) => (input) => preserveEffect()(raw["session.prompt"]({
|
|
63
63
|
params: { sessionID: input["sessionID"] },
|
|
@@ -106,7 +106,10 @@ const Endpoint5_16 = (raw) => (input) => preserveEffect()(raw["session.shell"]({
|
|
|
106
106
|
params: { sessionID: input["sessionID"] },
|
|
107
107
|
payload: { id: input["id"], command: input["command"] },
|
|
108
108
|
}).pipe(Effect.mapError(mapClientError)));
|
|
109
|
-
const Endpoint5_17 = (raw) => (input) => preserveEffect()(raw["session.compact"]({
|
|
109
|
+
const Endpoint5_17 = (raw) => (input) => preserveEffect()(raw["session.compact"]({
|
|
110
|
+
params: { sessionID: input["sessionID"] },
|
|
111
|
+
payload: { id: input["id"], delivery: input["delivery"] },
|
|
112
|
+
}).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
110
113
|
const Endpoint5_18 = (raw) => (input) => preserveEffect()(raw["session.wait"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError)));
|
|
111
114
|
const Endpoint5_19 = (raw) => (input) => preserveEffect()(raw["session.revert.stage"]({
|
|
112
115
|
params: { sessionID: input["sessionID"] },
|
|
@@ -115,10 +118,10 @@ const Endpoint5_19 = (raw) => (input) => preserveEffect()(raw["session.revert.st
|
|
|
115
118
|
const Endpoint5_20 = (raw) => (input) => preserveEffect()(raw["session.revert.clear"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError)));
|
|
116
119
|
const Endpoint5_21 = (raw) => (input) => preserveEffect()(raw["session.revert.commit"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError)));
|
|
117
120
|
const Endpoint5_22 = (raw) => (input) => preserveEffect()(raw["session.context"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
118
|
-
const Endpoint5_23 = (raw) => (input) => preserveEffect()(raw["session.
|
|
119
|
-
const Endpoint5_24 = (raw) => (input) => preserveEffect()(raw["session.
|
|
120
|
-
const Endpoint5_25 = (raw) => (input) => preserveEffect()(raw["session.
|
|
121
|
-
const Endpoint5_26 = (raw) => (input) => preserveEffect()(raw["session.
|
|
121
|
+
const Endpoint5_23 = (raw) => (input) => preserveEffect()(raw["session.inbox.list"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
122
|
+
const Endpoint5_24 = (raw) => (input) => preserveEffect()(raw["session.inbox.cancel"]({ params: { sessionID: input["sessionID"], inboxID: input["inboxID"] } }).pipe(Effect.mapError(mapClientError)));
|
|
123
|
+
const Endpoint5_25 = (raw) => (input) => preserveEffect()(raw["session.inbox.steer"]({ params: { sessionID: input["sessionID"], inboxID: input["inboxID"] } }).pipe(Effect.mapError(mapClientError)));
|
|
124
|
+
const Endpoint5_26 = (raw) => (input) => preserveEffect()(raw["session.inbox.queue"]({ params: { sessionID: input["sessionID"], inboxID: input["inboxID"] } }).pipe(Effect.mapError(mapClientError)));
|
|
122
125
|
const Endpoint5_27 = (raw) => (input) => preserveEffect()(raw["session.instructions.entry.list"]({ params: { sessionID: input["sessionID"] } }).pipe(Effect.mapError(mapClientError), Effect.map((value) => value.data)));
|
|
123
126
|
const Endpoint5_28 = (raw) => (input) => preserveEffect()(raw["session.instructions.entry.put"]({
|
|
124
127
|
params: { sessionID: input["sessionID"], key: input["key"] },
|
|
@@ -158,7 +161,7 @@ const adaptGroup5 = (raw) => ({
|
|
|
158
161
|
wait: Endpoint5_18(raw),
|
|
159
162
|
revert: { stage: Endpoint5_19(raw), clear: Endpoint5_20(raw), commit: Endpoint5_21(raw) },
|
|
160
163
|
context: Endpoint5_22(raw),
|
|
161
|
-
|
|
164
|
+
inbox: { list: Endpoint5_23(raw), cancel: Endpoint5_24(raw), steer: Endpoint5_25(raw), queue: Endpoint5_26(raw) },
|
|
162
165
|
instructions: { entry: { list: Endpoint5_27(raw), put: Endpoint5_28(raw), remove: Endpoint5_29(raw) } },
|
|
163
166
|
generate: Endpoint5_30(raw),
|
|
164
167
|
log: Endpoint5_31(raw),
|
package/dist/effect/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export { Reference } from "@opencode-ai/schema/reference";
|
|
|
23
23
|
export { WebSearch } from "@opencode-ai/schema/websearch";
|
|
24
24
|
export { AbsolutePath, RelativePath } from "@opencode-ai/schema/schema";
|
|
25
25
|
export { Session } from "@opencode-ai/schema/session";
|
|
26
|
-
export {
|
|
26
|
+
export { SessionInbox } from "@opencode-ai/schema/session-inbox";
|
|
27
27
|
export { SessionMessage } from "@opencode-ai/schema/session-message";
|
|
28
28
|
export { Skill } from "@opencode-ai/schema/skill";
|
|
29
29
|
export { Prompt } from "@opencode-ai/schema/prompt";
|
package/dist/effect/index.js
CHANGED
|
@@ -21,7 +21,7 @@ export { Reference } from "@opencode-ai/schema/reference";
|
|
|
21
21
|
export { WebSearch } from "@opencode-ai/schema/websearch";
|
|
22
22
|
export { AbsolutePath, RelativePath } from "@opencode-ai/schema/schema";
|
|
23
23
|
export { Session } from "@opencode-ai/schema/session";
|
|
24
|
-
export {
|
|
24
|
+
export { SessionInbox } from "@opencode-ai/schema/session-inbox";
|
|
25
25
|
export { SessionMessage } from "@opencode-ai/schema/session-message";
|
|
26
26
|
export { Skill } from "@opencode-ai/schema/skill";
|
|
27
27
|
export { Prompt } from "@opencode-ai/schema/prompt";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HealthStopInput, ServerGetOutput, LocationGetInput, LocationGetOutput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, SessionListInput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionRenameInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput,
|
|
1
|
+
import type { HealthStopInput, ServerGetOutput, LocationGetInput, LocationGetOutput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, SessionListInput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionRenameInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionInboxListInput, SessionInboxCancelInput, SessionInboxSteerInput, SessionInboxQueueInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageInput, 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, CredentialRemoveInput, ProjectListOutput, ProjectCurrentInput, ProjectDirectoriesInput, FormRequestListInput, FormRequestListOutput, FormListInput, FormCreateInput, FormGetInput, FormStateInput, FormReplyInput, FormCancelInput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellTimeoutInput, ShellTimeoutOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, QuestionRequestListInput, QuestionRequestListOutput, QuestionListInput, QuestionReplyInput, QuestionRejectInput, ReferenceListInput, ReferenceListOutput, ProjectCopyCreateInput, ProjectCopyRemoveInput, ProjectCopyRefreshInput, VcsGetInput, VcsGetOutput, VcsStatusInput, VcsStatusOutput, VcsDiffInput, VcsDiffOutput, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ConfigGetInput, ConfigGetOutput } from "./types.js";
|
|
2
2
|
export interface ClientOptions {
|
|
3
3
|
readonly baseUrl: string;
|
|
4
4
|
readonly fetch?: typeof globalThis.fetch;
|
|
@@ -41,12 +41,12 @@ export declare function make(options: ClientOptions): {
|
|
|
41
41
|
switchModel: (input: SessionSwitchModelInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
42
42
|
rename: (input: SessionRenameInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
43
43
|
move: (input: SessionMoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
44
|
-
prompt: (input: SessionPromptInput, requestOptions?: RequestOptions) => Promise<import("./types.js").
|
|
45
|
-
command: (input: SessionCommandInput, requestOptions?: RequestOptions) => Promise<import("./types.js").
|
|
44
|
+
prompt: (input: SessionPromptInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionInboxUser>;
|
|
45
|
+
command: (input: SessionCommandInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionInboxUser>;
|
|
46
46
|
skill: (input: SessionSkillInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
47
|
-
synthetic: (input: SessionSyntheticInput, requestOptions?: RequestOptions) => Promise<import("./types.js").
|
|
47
|
+
synthetic: (input: SessionSyntheticInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionInboxSynthetic>;
|
|
48
48
|
shell: (input: SessionShellInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
49
|
-
compact: (input: SessionCompactInput, requestOptions?: RequestOptions) => Promise<import("./types.js").
|
|
49
|
+
compact: (input: SessionCompactInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionInboxCompaction>;
|
|
50
50
|
wait: (input: SessionWaitInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
51
51
|
revert: {
|
|
52
52
|
stage: (input: SessionRevertStageInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionRevert>;
|
|
@@ -54,11 +54,11 @@ export declare function make(options: ClientOptions): {
|
|
|
54
54
|
commit: (input: SessionRevertCommitInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
55
55
|
};
|
|
56
56
|
context: (input: SessionContextInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionMessageInfo[]>;
|
|
57
|
-
|
|
58
|
-
list: (input:
|
|
59
|
-
cancel: (input:
|
|
60
|
-
steer: (input:
|
|
61
|
-
queue: (input:
|
|
57
|
+
inbox: {
|
|
58
|
+
list: (input: SessionInboxListInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionInboxInfo[]>;
|
|
59
|
+
cancel: (input: SessionInboxCancelInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
60
|
+
steer: (input: SessionInboxSteerInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
61
|
+
queue: (input: SessionInboxQueueInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
62
62
|
};
|
|
63
63
|
instructions: {
|
|
64
64
|
entry: {
|
|
@@ -284,7 +284,7 @@ export function make(options) {
|
|
|
284
284
|
move: (input, requestOptions) => request({
|
|
285
285
|
method: "POST",
|
|
286
286
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/move`,
|
|
287
|
-
body: { directory: input["directory"], workspaceID: input["workspaceID"] },
|
|
287
|
+
body: { directory: input["directory"], workspaceID: input["workspaceID"], delivery: input["delivery"] },
|
|
288
288
|
successStatus: 204,
|
|
289
289
|
declaredStatuses: [404, 400, 401],
|
|
290
290
|
empty: true,
|
|
@@ -359,7 +359,7 @@ export function make(options) {
|
|
|
359
359
|
compact: (input, requestOptions) => request({
|
|
360
360
|
method: "POST",
|
|
361
361
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/compact`,
|
|
362
|
-
body: { id: input["id"] },
|
|
362
|
+
body: { id: input["id"], delivery: input["delivery"] },
|
|
363
363
|
successStatus: 200,
|
|
364
364
|
declaredStatuses: [409, 404, 400, 401],
|
|
365
365
|
empty: false,
|
|
@@ -402,31 +402,31 @@ export function make(options) {
|
|
|
402
402
|
declaredStatuses: [404, 500, 401, 400],
|
|
403
403
|
empty: false,
|
|
404
404
|
}, requestOptions).then((value) => value.data),
|
|
405
|
-
|
|
405
|
+
inbox: {
|
|
406
406
|
list: (input, requestOptions) => request({
|
|
407
407
|
method: "GET",
|
|
408
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/
|
|
408
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/inbox`,
|
|
409
409
|
successStatus: 200,
|
|
410
410
|
declaredStatuses: [404, 401, 400],
|
|
411
411
|
empty: false,
|
|
412
412
|
}, requestOptions).then((value) => value.data),
|
|
413
413
|
cancel: (input, requestOptions) => request({
|
|
414
414
|
method: "DELETE",
|
|
415
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/
|
|
415
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/inbox/${encodeURIComponent(input.inboxID)}`,
|
|
416
416
|
successStatus: 204,
|
|
417
417
|
declaredStatuses: [409, 404, 401, 400],
|
|
418
418
|
empty: true,
|
|
419
419
|
}, requestOptions),
|
|
420
420
|
steer: (input, requestOptions) => request({
|
|
421
421
|
method: "POST",
|
|
422
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/
|
|
422
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/inbox/${encodeURIComponent(input.inboxID)}/steer`,
|
|
423
423
|
successStatus: 204,
|
|
424
424
|
declaredStatuses: [409, 404, 401, 400],
|
|
425
425
|
empty: true,
|
|
426
426
|
}, requestOptions),
|
|
427
427
|
queue: (input, requestOptions) => request({
|
|
428
428
|
method: "POST",
|
|
429
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/
|
|
429
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/inbox/${encodeURIComponent(input.inboxID)}/queue`,
|
|
430
430
|
successStatus: 204,
|
|
431
431
|
declaredStatuses: [409, 404, 401, 400],
|
|
432
432
|
empty: true,
|