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
| 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 | * `ListMessages` request with `applicationId` injected from the bound application. |
| 8 | */ |
| 9 | export interface ListMessagesRequest extends Omit<qbusiness.ListMessagesRequest, "applicationId"> {} |
| 10 | |
| 11 | /** |
| 12 | * Runtime binding for the `ListMessages` operation (IAM action |
| 13 | * `qbusiness:ListMessages`), scoped to one {@link Application}. |
| 14 | * |
| 15 | * Lists the messages of a chat conversation. |
| 16 | * Provide the implementation with |
| 17 | * `Effect.provide(AWS.QBusiness.ListMessagesHttp)`. |
| 18 | * |
| 19 | * ### Conversations |
| 20 | * **Example:** List a Conversation's Messages |
| 21 | * ```typescript |
| 22 | * const listMessages = yield* AWS.QBusiness.ListMessages(app); |
| 23 | * |
| 24 | * const { messages } = yield* listMessages({ conversationId }); |
| 25 | * ``` |
| 26 | * |
| 27 | * @binding |
| 28 | */ |
| 29 | export interface ListMessages extends Binding.Service< |
| 30 | ListMessages, |
| 31 | "AWS.QBusiness.ListMessages", |
| 32 | ( |
| 33 | application: Application, |
| 34 | ) => Effect.Effect< |
| 35 | ( |
| 36 | request: ListMessagesRequest, |
| 37 | ) => Effect.Effect<qbusiness.ListMessagesResponse, qbusiness.ListMessagesError> |
| 38 | > |
| 39 | > {} |
| 40 | export const ListMessages = Binding.Service<ListMessages>("AWS.QBusiness.ListMessages"); |