import { getCloudflareUserInfo, type CloudflareAuthOptions } from "./auth.js"; export type CloudflareAccountId = string & { readonly __brand: "CloudflareAccountId"; }; export async function CloudflareAccountId( options: CloudflareAuthOptions ): Promise { const userInfo = await getCloudflareUserInfo(options); return userInfo.accounts[0].id as CloudflareAccountId; }