import { customAlphabet } from 'nanoid';
/**
 * The data store uses the LTREE for storing hierarchical data.
 * The PG extension for LTREE requires the keys to be
 * alphanumeric and underscore characters only.
 * This is a custom nanoid generator that generates
 * 21 character long IDs using the allowed characters. The same the API is using.
 */
const nanoid = customAlphabet('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_', 21);
export { nanoid };
//# sourceMappingURL=nanoid.js.map