@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 * `DeleteConversation` request with `applicationId` injected from the bound application.
8 */
9 export interface DeleteConversationRequest extends Omit<
10 qbusiness.DeleteConversationRequest,
11 "applicationId"
12 > {}
13
14 /**
15 * Runtime binding for the `DeleteConversation` operation (IAM action
16 * `qbusiness:DeleteConversation`), scoped to one {@link Application}.
17 *
18 * Deletes a chat conversation and its messages.
19 * Provide the implementation with
20 * `Effect.provide(AWS.QBusiness.DeleteConversationHttp)`.
21 *
22 * ### Conversations
23 * **Example:** Delete a Conversation
24 * ```typescript
25 * const deleteConversation = yield* AWS.QBusiness.DeleteConversation(app);
26 *
27 * yield* deleteConversation({ conversationId });
28 * ```
29 *
30 * @binding
31 */
32 export interface DeleteConversation extends Binding.Service<
33 DeleteConversation,
34 "AWS.QBusiness.DeleteConversation",
35 (
36 application: Application,
37 ) => Effect.Effect<
38 (
39 request: DeleteConversationRequest,
40 ) => Effect.Effect<qbusiness.DeleteConversationResponse, qbusiness.DeleteConversationError>
41 >
42 > {}
43 export const DeleteConversation = Binding.Service<DeleteConversation>(
44 "AWS.QBusiness.DeleteConversation",
45 );