import { GQLVariable } from "../../lib/variables.js";
import { MembershipInput } from "../membership/updateMembership.js";
import { useSingleTenantMutation } from "../../lib/useSingleTenantMutation.js";
const CREATE_API_KEY_MUTATION = `
createApiKey(projectSlug: $projectSlug, memberships: $memberships, description: $description) {
	ok
	error {
		code
		developerMessage
	}
	result {
		apiKey {
			id
			token
		}
	}
}
`;
const createApiKeyVariables = {
  projectSlug: GQLVariable.Required(GQLVariable.String),
  description: GQLVariable.Required(GQLVariable.String),
  memberships: GQLVariable.Required(GQLVariable.List(MembershipInput))
};
const useCreateApiKey = () => {
  return useSingleTenantMutation(CREATE_API_KEY_MUTATION, createApiKeyVariables);
};
export { useCreateApiKey };
//# sourceMappingURL=createApiKey.js.map
