sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ QApps/ DisassociateLibraryItemReview.ts

import type * as qapps from "@distilled.cloud/aws/qapps";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";
import type { QApp } from "./QApp.ts";

/**
 * Request for {@link DisassociateLibraryItemReview} — `instanceId` is injected from the bound Q App.
 */
export interface DisassociateLibraryItemReviewRequest extends Omit<
  qapps.DisassociateLibraryItemReviewInput,
  "instanceId"
> {}

/**
 * Runtime binding for `qapps:DisassociateLibraryItemReview`.
 *
 * Removes the calling identity's upvote from a library item. Provide the implementation with
 * `Effect.provide(AWS.QApps.DisassociateLibraryItemReviewHttp)`.
 * ### Library Items
 * **Example:** Remove an Upvote
 * ```typescript
 * // init — bind the operation to the Q App
 * const disassociateLibraryItemReview = yield* AWS.QApps.DisassociateLibraryItemReview(app);
 *
 * // runtime
 * yield* disassociateLibraryItemReview({ libraryItemId });
 * ```
 *
 * @binding
 */
export interface DisassociateLibraryItemReview extends Binding.Service<
  DisassociateLibraryItemReview,
  "AWS.QApps.DisassociateLibraryItemReview",
  (
    app: QApp,
  ) => Effect.Effect<
    (
      request: DisassociateLibraryItemReviewRequest,
    ) => Effect.Effect<
      qapps.DisassociateLibraryItemReviewResponse,
      qapps.DisassociateLibraryItemReviewError
    >
  >
> {}

export const DisassociateLibraryItemReview = Binding.Service<DisassociateLibraryItemReview>(
  "AWS.QApps.DisassociateLibraryItemReview",
);