1import type * as qbusiness from "@distilled.cloud/aws/qbusiness";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { Application } from "./Application.ts";
5
6/**
7 * `ListConversations` request with `applicationId` injected from the bound application.
8 */
9export 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 */
32export 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<
41 qbusiness.ListConversationsResponse,
42 qbusiness.ListConversationsError
43 >
44 >
45> {}
46export const ListConversations = Binding.Service<ListConversations>(
47 "AWS.QBusiness.ListConversations",
48);