@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 48 lines 1.42 KB
Raw
1 import type * as qapps from "@distilled.cloud/aws/qapps";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { QApp } from "./QApp.ts";
5
6 /**
7 * Request for {@link AssociateLibraryItemReview} — `instanceId` is injected from the bound Q App.
8 */
9 export interface AssociateLibraryItemReviewRequest extends Omit<
10 qapps.AssociateLibraryItemReviewInput,
11 "instanceId"
12 > {}
13
14 /**
15 * Runtime binding for `qapps:AssociateLibraryItemReview`.
16 *
17 * Upvotes a library item as the calling identity. Provide the implementation with
18 * `Effect.provide(AWS.QApps.AssociateLibraryItemReviewHttp)`.
19 * ### Library Items
20 * **Example:** Upvote a Library Item
21 * ```typescript
22 * // init — bind the operation to the Q App
23 * const associateLibraryItemReview = yield* AWS.QApps.AssociateLibraryItemReview(app);
24 *
25 * // runtime
26 * yield* associateLibraryItemReview({ libraryItemId });
27 * ```
28 *
29 * @binding
30 */
31 export interface AssociateLibraryItemReview extends Binding.Service<
32 AssociateLibraryItemReview,
33 "AWS.QApps.AssociateLibraryItemReview",
34 (
35 app: QApp,
36 ) => Effect.Effect<
37 (
38 request: AssociateLibraryItemReviewRequest,
39 ) => Effect.Effect<
40 qapps.AssociateLibraryItemReviewResponse,
41 qapps.AssociateLibraryItemReviewError
42 >
43 >
44 > {}
45
46 export const AssociateLibraryItemReview = Binding.Service<AssociateLibraryItemReview>(
47 "AWS.QApps.AssociateLibraryItemReview",
48 );