import { type Codec, NonEmptyString255, type StringIdBrand } from "effect-app/Schema"; import type { B } from "effect-app/Schema/schema"; import type { Simplify } from "effect/Types"; import * as S from "./Schema.js"; export interface RequestIdBrand extends StringIdBrand { readonly RequestId: unique symbol; } export type RequestId = NonEmptyString255; /** * Schema for a request id. * * A request id may be made from a span id, which does not comply with the * `StringId` schema (hence the looser `NonEmptyString255` base). * * `.withConstructorDefault` => fresh `StringId` (construction-only; not * applied during decode — cannot be used to JIT-migrate database fields). * See `./Schema/ext.ts` for the full policy note. */ export declare const RequestId: S.WithDefaults & { make: { (): NonEmptyString255; (input: string, options?: S.MakeOptions): NonEmptyString255; }; /** * Construction-only default: fresh `StringId`. Applied only when the * field is omitted from `.make(...)` input. NOT applied during decode — * cannot be used to JIT-migrate database fields. See `./Schema/ext.ts` * file-level note. */ withConstructorDefault: S.withConstructorDefault; }> & Codec & { make: { (): NonEmptyString255; (input: string, options?: S.MakeOptions): NonEmptyString255; }; /** * Construction-only default: fresh `StringId`. Applied only when the * field is omitted from `.make(...)` input. NOT applied during decode — * cannot be used to JIT-migrate database fields. See `./Schema/ext.ts` * file-level note. */ withConstructorDefault: S.withConstructorDefault; }; export interface UserProfileIdBrand extends Simplify & StringIdBrand> { } export type UserProfileId = string & UserProfileIdBrand; /** * Branded `StringId` for user profiles. * * Exposes `.withConstructorDefault` (fresh id) — construction-only; not * applied during decode. See `./Schema/ext.ts` for the full policy note. */ export declare const UserProfileId: S.BrandedStringIdSchema; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaWRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBbUIsS0FBSyxLQUFLLEVBQUUsaUJBQWlCLEVBQVksS0FBSyxhQUFhLEVBQW1CLE1BQU0sbUJBQW1CLENBQUE7QUFDakksT0FBTyxLQUFLLEVBQ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