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