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
| 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 ListLibraryItems} — `instanceId` is injected from the bound Q App. |
| 8 | */ |
| 9 | export interface ListLibraryItemsRequest extends Omit<qapps.ListLibraryItemsInput, "instanceId"> {} |
| 10 | |
| 11 | /** |
| 12 | * Runtime binding for `qapps:ListLibraryItems`. |
| 13 | * |
| 14 | * Lists the library items published in the bound app's Q Business application environment instance. Provide the implementation with |
| 15 | * `Effect.provide(AWS.QApps.ListLibraryItemsHttp)`. |
| 16 | * ### Library Items |
| 17 | * **Example:** List Library Items |
| 18 | * ```typescript |
| 19 | * // init — bind the operation to the Q App |
| 20 | * const listLibraryItems = yield* AWS.QApps.ListLibraryItems(app); |
| 21 | * |
| 22 | * // runtime |
| 23 | * const page = yield* listLibraryItems({ limit: 25 }); |
| 24 | * console.log(page.libraryItems?.length); |
| 25 | * ``` |
| 26 | * |
| 27 | * @binding |
| 28 | */ |
| 29 | export interface ListLibraryItems extends Binding.Service< |
| 30 | ListLibraryItems, |
| 31 | "AWS.QApps.ListLibraryItems", |
| 32 | ( |
| 33 | app: QApp, |
| 34 | ) => Effect.Effect< |
| 35 | ( |
| 36 | request?: ListLibraryItemsRequest, |
| 37 | ) => Effect.Effect<qapps.ListLibraryItemsOutput, qapps.ListLibraryItemsError> |
| 38 | > |
| 39 | > {} |
| 40 | |
| 41 | export const ListLibraryItems = Binding.Service<ListLibraryItems>("AWS.QApps.ListLibraryItems"); |