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