@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 45 lines 1.36 KB
Raw
1 import type * as qbusiness from "@distilled.cloud/aws/qbusiness";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Application } from "./Application.ts";
5
6 /**
7 * `ListConversations` request with `applicationId` injected from the bound application.
8 */
9 export interface ListConversationsRequest extends Omit<
10 qbusiness.ListConversationsRequest,
11 "applicationId"
12 > {}
13
14 /**
15 * Runtime binding for the `ListConversations` operation (IAM action
16 * `qbusiness:ListConversations`), scoped to one {@link Application}.
17 *
18 * Lists a user's chat conversations in the application.
19 * Provide the implementation with
20 * `Effect.provide(AWS.QBusiness.ListConversationsHttp)`.
21 *
22 * ### Conversations
23 * **Example:** List Conversations
24 * ```typescript
25 * const listConversations = yield* AWS.QBusiness.ListConversations(app);
26 *
27 * const { conversations } = yield* listConversations();
28 * ```
29 *
30 * @binding
31 */
32 export interface ListConversations extends Binding.Service<
33 ListConversations,
34 "AWS.QBusiness.ListConversations",
35 (
36 application: Application,
37 ) => Effect.Effect<
38 (
39 request?: ListConversationsRequest,
40 ) => Effect.Effect<qbusiness.ListConversationsResponse, qbusiness.ListConversationsError>
41 >
42 > {}
43 export const ListConversations = Binding.Service<ListConversations>(
44 "AWS.QBusiness.ListConversations",
45 );