The best way to control Claude Code, Codex and more from any computer or phone

main
ts 43 lines 1.23 KB
Raw
1 import type * as qapps from "@distilled.cloud/aws/qapps";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { QApp } from "./QApp.ts";
5
6 /**
7 * Request for {@link StopQAppSession} — `instanceId` is injected from the bound Q App.
8 */
9 export interface StopQAppSessionRequest extends Omit<
10 qapps.StopQAppSessionInput,
11 "instanceId" | "appId"
12 > {}
13
14 /**
15 * Runtime binding for `qapps:StopQAppSession`.
16 *
17 * Stops an active Q App session, halting any in-progress card executions. Provide the implementation with
18 * `Effect.provide(AWS.QApps.StopQAppSessionHttp)`.
19 * ### Sessions
20 * **Example:** Stop a Session
21 * ```typescript
22 * // init — bind the operation to the Q App
23 * const stopQAppSession = yield* AWS.QApps.StopQAppSession(app);
24 *
25 * // runtime
26 * yield* stopQAppSession({ sessionId });
27 * ```
28 *
29 * @binding
30 */
31 export interface StopQAppSession extends Binding.Service<
32 StopQAppSession,
33 "AWS.QApps.StopQAppSession",
34 (
35 app: QApp,
36 ) => Effect.Effect<
37 (
38 request: StopQAppSessionRequest,
39 ) => Effect.Effect<qapps.StopQAppSessionResponse, qapps.StopQAppSessionError>
40 >
41 > {}
42
43 export const StopQAppSession = Binding.Service<StopQAppSession>("AWS.QApps.StopQAppSession");