pr_01m47d24b0e6n91zwymwxg0vpx/apps/sudo/app/lib/services.server.ts

12 lines500 bytesCodeBlame
1import { env } from "cloudflare:workers";
2
3import { billingAdminClient, billingClient, identityAdminClient } from "@g1t/contracts";
4
5/** Staff-only billing, on the billing service. */
6export const admin = billingAdminClient(env.BILLING);
7
8/** The public price book, read-only, from the same service. */
9export const priceBook = () => billingClient(env.BILLING).prices();
10
11/** Staff-only identity: every workspace, its owners and members. */
12export const identity = identityAdminClient(env.IDENTITY);