@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, 04:45 UTC

main
ts 35 lines 1.12 KB
Raw
1 import type * as dataexchange from "@distilled.cloud/aws/dataexchange";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Revision } from "./Revision.ts";
5
6 /**
7 * Runtime binding for `dataexchange:DeleteAsset`.
8 *
9 * Deletes an asset from the bound (not-yet-finalized) revision. The
10 * data set and revision ids are injected from the binding.
11 * Provide the implementation with
12 * `Effect.provide(AWS.DataExchange.DeleteAssetHttp)`.
13 * ### Managing Assets
14 * **Example:** Remove A Bad Import
15 * ```typescript
16 * const deleteAsset = yield* AWS.DataExchange.DeleteAsset(revision);
17 *
18 * // runtime
19 * yield* deleteAsset({ AssetId: assetId });
20 * ```
21 *
22 * @binding
23 */
24 export interface DeleteAsset extends Binding.Service<
25 DeleteAsset,
26 "AWS.DataExchange.DeleteAsset",
27 (
28 revision: Revision,
29 ) => Effect.Effect<
30 (
31 request: Omit<dataexchange.DeleteAssetRequest, "DataSetId" | "RevisionId">,
32 ) => Effect.Effect<dataexchange.DeleteAssetResponse, dataexchange.DeleteAssetError>
33 >
34 > {}
35 export const DeleteAsset = Binding.Service<DeleteAsset>("AWS.DataExchange.DeleteAsset");