"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const variables = require("../../lib/variables.cjs");
const updateMembership = require("../membership/updateMembership.cjs");
const useSingleTenantMutation = require("../../lib/useSingleTenantMutation.cjs");
const CREATE_API_KEY_MUTATION = `
createApiKey(projectSlug: $projectSlug, memberships: $memberships, description: $description) {
	ok
	error {
		code
		developerMessage
	}
	result {
		apiKey {
			id
			token
		}
	}
}
`;
const createApiKeyVariables = {
  projectSlug: variables.GQLVariable.Required(variables.GQLVariable.String),
  description: variables.GQLVariable.Required(variables.GQLVariable.String),
  memberships: variables.GQLVariable.Required(variables.GQLVariable.List(updateMembership.MembershipInput))
};
const useCreateApiKey = () => {
  return useSingleTenantMutation.useSingleTenantMutation(CREATE_API_KEY_MUTATION, createApiKeyVariables);
};
exports.useCreateApiKey = useCreateApiKey;
//# sourceMappingURL=createApiKey.cjs.map
