1import type * as qapps from "@distilled.cloud/aws/qapps";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { QApp } from "./QApp.ts";
5
6/**
7 * Request for {@link ListQAppSessionData} — `instanceId` is injected from the bound Q App.
8 */
9export interface ListQAppSessionDataRequest extends Omit<
10 qapps.ListQAppSessionDataInput,
11 "instanceId" | "appId"
12> {}
13
14/**
15 * Runtime binding for `qapps:ListQAppSessionData`.
16 *
17 * Lists the per-user data collected in a shared Q App session. Provide the implementation with
18 * `Effect.provide(AWS.QApps.ListQAppSessionDataHttp)`.
19 * ### Sessions
20 * **Example:** List Session Data
21 * ```typescript
22 * // init — bind the operation to the Q App
23 * const listQAppSessionData = yield* AWS.QApps.ListQAppSessionData(app);
24 *
25 * // runtime
26 * const data = yield* listQAppSessionData({ sessionId });
27 * console.log(data.sessionData?.length);
28 * ```
29 *
30 * @binding
31 */
32export interface ListQAppSessionData extends Binding.Service<
33 ListQAppSessionData,
34 "AWS.QApps.ListQAppSessionData",
35 (
36 app: QApp,
37 ) => Effect.Effect<
38 (
39 request: ListQAppSessionDataRequest,
40 ) => Effect.Effect<
41 qapps.ListQAppSessionDataOutput,
42 qapps.ListQAppSessionDataError
43 >
44 >
45> {}
46
47export const ListQAppSessionData = Binding.Service<ListQAppSessionData>(
48 "AWS.QApps.ListQAppSessionData",
49);