@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 39 lines 1.23 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 * `GetMedia` request with `applicationId` injected from the bound application.
8 */
9 export interface GetMediaRequest extends Omit<qbusiness.GetMediaRequest, "applicationId"> {}
10
11 /**
12 * Runtime binding for the `GetMedia` operation (IAM action
13 * `qbusiness:GetMedia`), scoped to one {@link Application}.
14 *
15 * Fetches the media object (e.g. an extracted image) associated with
16 * a chat message.
17 * Provide the implementation with
18 * `Effect.provide(AWS.QBusiness.GetMediaHttp)`.
19 *
20 * ### Conversations
21 * **Example:** Fetch Message Media
22 * ```typescript
23 * const getMedia = yield* AWS.QBusiness.GetMedia(app);
24 *
25 * const media = yield* getMedia({ conversationId, messageId, mediaId });
26 * ```
27 *
28 * @binding
29 */
30 export interface GetMedia extends Binding.Service<
31 GetMedia,
32 "AWS.QBusiness.GetMedia",
33 (
34 application: Application,
35 ) => Effect.Effect<
36 (request: GetMediaRequest) => Effect.Effect<qbusiness.GetMediaResponse, qbusiness.GetMediaError>
37 >
38 > {}
39 export const GetMedia = Binding.Service<GetMedia>("AWS.QBusiness.GetMedia");