import * as Schema from "effect/Schema";
import { API } from "../client.js";
import * as T from "../traits.js";
const __document = "mutation deploymentsDeleteAlias($aliasName: WorkerDeploymentIdentifier, $appId: ID!) {\n  deployments {\n    deleteAlias(aliasName: $aliasName, appId: $appId) {\n      aliasName\n      id\n    }\n  }\n}";
// Input Schema (GraphQL variables)
export const DeploymentsDeleteAliasInput = Schema.Struct({
    aliasName: Schema.optional(Schema.NullOr(Schema.Unknown)),
    appId: Schema.String,
}).pipe(T.Http({ method: "POST", path: "/graphql" }), T.GraphQLOp({
    query: __document,
    operationName: "deploymentsDeleteAlias",
    type: "mutation",
}));
// Output Schema (GraphQL selection set)
export const DeploymentsDeleteAliasOutput = Schema.Struct({
    aliasName: Schema.NullOr(Schema.Unknown),
    id: Schema.String,
}).pipe(T.ResponsePath("deployments.deleteAlias"));
export const deploymentsDeleteAlias = API.make(() => ({
    inputSchema: DeploymentsDeleteAliasInput,
    outputSchema: DeploymentsDeleteAliasOutput,
}));
//# sourceMappingURL=deploymentsDeleteAlias.js.map