import * as Schema from "effect/Schema";
import { API } from "../client.js";
import * as T from "../traits.js";
const __document = "mutation uploadSessionCreateAccountScopedUploadSession($accountID: ID!, $type: AccountUploadSessionType!) {\n  uploadSession {\n    createAccountScopedUploadSession(accountID: $accountID, type: $type) {\n      __typename\n    }\n  }\n}";
// Input Schema (GraphQL variables)
export const UploadSessionCreateAccountScopedUploadSessionInput = Schema.Struct({
    accountID: Schema.String,
    type: Schema.Literals([
        "PROFILE_IMAGE_UPLOAD",
        "WORKFLOWS_PROJECT_SOURCES",
    ]),
}).pipe(T.Http({ method: "POST", path: "/graphql" }), T.GraphQLOp({
    query: __document,
    operationName: "uploadSessionCreateAccountScopedUploadSession",
    type: "mutation",
}));
// Output Schema (GraphQL selection set)
export const UploadSessionCreateAccountScopedUploadSessionOutput = Schema.Unknown.pipe(T.ResponsePath("uploadSession.createAccountScopedUploadSession"));
export const uploadSessionCreateAccountScopedUploadSession = API.make(() => ({
    inputSchema: UploadSessionCreateAccountScopedUploadSessionInput,
    outputSchema: UploadSessionCreateAccountScopedUploadSessionOutput,
}));
//# sourceMappingURL=uploadSessionCreateAccountScopedUploadSession.js.map