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

main
ts 39 lines 1.2 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 ListQApps} — `instanceId` is injected from the bound Q App.
8 */
9 export interface ListQAppsRequest extends Omit<qapps.ListQAppsInput, "instanceId"> {}
10
11 /**
12 * Runtime binding for `qapps:ListQApps`.
13 *
14 * Lists the calling identity's Q Apps in the bound app's Q Business application environment instance. Provide the implementation with
15 * `Effect.provide(AWS.QApps.ListQAppsHttp)`.
16 * ### User Inventory
17 * **Example:** List the User's Q Apps
18 * ```typescript
19 * // init — bind the operation to the Q App
20 * const listQApps = yield* AWS.QApps.ListQApps(app);
21 *
22 * // runtime
23 * const page = yield* listQApps({ limit: 25 });
24 * console.log(page.apps.map((a) => a.title));
25 * ```
26 *
27 * @binding
28 */
29 export interface ListQApps extends Binding.Service<
30 ListQApps,
31 "AWS.QApps.ListQApps",
32 (
33 app: QApp,
34 ) => Effect.Effect<
35 (request?: ListQAppsRequest) => Effect.Effect<qapps.ListQAppsOutput, qapps.ListQAppsError>
36 >
37 > {}
38
39 export const ListQApps = Binding.Service<ListQApps>("AWS.QApps.ListQApps");