1import type * as qapps from "@distilled.cloud/aws/qapps";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { QApp } from "./QApp.ts";
5
6/**
7 * Request for {@link UpdateLibraryItemMetadata} — `instanceId` is injected from the bound Q App.
8 */
9export interface UpdateLibraryItemMetadataRequest extends Omit<
10 qapps.UpdateLibraryItemMetadataInput,
11 "instanceId"
12> {}
13
14/**
15 * Runtime binding for `qapps:UpdateLibraryItemMetadata`.
16 *
17 * Updates a library item's verification badge (`isVerified`). Provide the implementation with
18 * `Effect.provide(AWS.QApps.UpdateLibraryItemMetadataHttp)`.
19 * ### Library Items
20 * **Example:** Mark a Library Item Verified
21 * ```typescript
22 * // init — bind the operation to the Q App
23 * const updateLibraryItemMetadata = yield* AWS.QApps.UpdateLibraryItemMetadata(app);
24 *
25 * // runtime
26 * yield* updateLibraryItemMetadata({ libraryItemId, isVerified: true });
27 * ```
28 *
29 * @binding
30 */
31export interface UpdateLibraryItemMetadata extends Binding.Service<
32 UpdateLibraryItemMetadata,
33 "AWS.QApps.UpdateLibraryItemMetadata",
34 (
35 app: QApp,
36 ) => Effect.Effect<
37 (
38 request: UpdateLibraryItemMetadataRequest,
39 ) => Effect.Effect<
40 qapps.UpdateLibraryItemMetadataResponse,
41 qapps.UpdateLibraryItemMetadataError
42 >
43 >
44> {}
45
46export const UpdateLibraryItemMetadata =
47 Binding.Service<UpdateLibraryItemMetadata>(
48 "AWS.QApps.UpdateLibraryItemMetadata",
49 );