sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ IoTManagedIntegrations/ ListSchemaVersions.ts

import type * as mi from "@distilled.cloud/aws/iot-managed-integrations";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";

/**
 * Request for {@link ListSchemaVersions}.
 */
export interface ListSchemaVersionsRequest extends mi.ListSchemaVersionsRequest {}

/**
 * Runtime binding for `iotmanagedintegrations:ListSchemaVersions`
 * (account-level).
 *
 * Lists capability or definition schema versions in the Managed
 * integrations schema catalog, optionally filtered by namespace, schema id,
 * visibility, or semantic version. Provide the implementation with
 * `Effect.provide(AWS.IoTManagedIntegrations.ListSchemaVersionsHttp)`.
 *
 * ### Working with the Schema Catalog
 * **Example:** List Matter Capability Schemas
 * ```typescript
 * const listSchemaVersions = yield* IoTManagedIntegrations.ListSchemaVersions();
 *
 * const { Items } = yield* listSchemaVersions({
 *   Type: "capability",
 *   Namespace: "matter",
 * });
 * ```
 *
 * @binding
 */
export interface ListSchemaVersions extends Binding.Service<
  ListSchemaVersions,
  "AWS.IoTManagedIntegrations.ListSchemaVersions",
  () => Effect.Effect<
    (
      request: ListSchemaVersionsRequest,
    ) => Effect.Effect<mi.ListSchemaVersionsResponse, mi.ListSchemaVersionsError>
  >
> {}
export const ListSchemaVersions = Binding.Service<ListSchemaVersions>(
  "AWS.IoTManagedIntegrations.ListSchemaVersions",
);