The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import * as Schema from "effect/Schema"; |
| 2 | import type { CustomerId } from "../Customer/Customer.id.ts"; |
| 3 | |
| 4 | export const AccountId = Schema.String.pipe(Schema.brand("AccountId")); |
| 5 | export type AccountId = typeof AccountId.Type; |
| 6 | |
| 7 | /** Every customer gets a main account with a predictable id. */ |
| 8 | export const mainAccountId = (customerId: CustomerId): AccountId => |
| 9 | AccountId.make(`${customerId}-main`); |