import { Context, S } from "effect-app"; import { NonEmptyString255 } from "effect-app/Schema"; export declare const Locale: import("effect/Schema").Literals & { changeDefault: (a: A) => import("effect/Schema").Literals & { Default: A; withDefault: S.withConstructorDefault>; withDecodingDefaultType: S.withDecodingDefaultType>; }; Default: "en"; withDefault: S.withConstructorDefault>; withDecodingDefaultType: S.withDecodingDefaultType>; }; export type Locale = typeof Locale.Type; declare const LocaleRef_base: Context.Reference<"de" | "en">; export declare class LocaleRef extends LocaleRef_base { } declare const RequestContext_base: import("effect/Schema").Opaque; withDecodingDefaultType: S.withDecodingDefaultType; }; }>; readonly name: S.WithDefaults, "Iso" | "Type" | "~type.make"> & { readonly Type: NonEmptyString255; readonly Iso: NonEmptyString255; readonly "~type.make": NonEmptyString255; }> & Omit, "Iso" | "Type" | "~type.make"> & { readonly Type: NonEmptyString255; readonly Iso: NonEmptyString255; readonly "~type.make": NonEmptyString255; }; readonly locale: import("effect/Schema").Literals & { changeDefault: (a: A) => import("effect/Schema").Literals & { Default: A; withDefault: S.withConstructorDefault>; withDecodingDefaultType: S.withDecodingDefaultType>; }; Default: "en"; withDefault: S.withConstructorDefault>; withDecodingDefaultType: S.withDecodingDefaultType>; }; readonly sourceId: S.optional, "Iso" | "Type" | "~type.make"> & { readonly Type: NonEmptyString255; readonly Iso: NonEmptyString255; readonly "~type.make": NonEmptyString255; }> & Omit, "Iso" | "Type" | "~type.make"> & { readonly Type: NonEmptyString255; readonly Iso: NonEmptyString255; readonly "~type.make": NonEmptyString255; }>; readonly namespace: S.WithDefaults, "Iso" | "Type" | "~type.make"> & { readonly Type: NonEmptyString255; readonly Iso: NonEmptyString255; readonly "~type.make": NonEmptyString255; }> & Omit, "Iso" | "Type" | "~type.make"> & { readonly Type: NonEmptyString255; readonly Iso: NonEmptyString255; readonly "~type.make": NonEmptyString255; }; /** @deprecated */ readonly userProfile: S.optional & { make: () => string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand; withDefault: S.withConstructorDefault & S.WithoutConstructorDefault>; } & S.WithDefaults>> & S.Codec & { make: () => string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand; withDefault: S.withConstructorDefault & S.WithoutConstructorDefault>; } & S.WithDefaults>; }>>; }>, "Encoded"> & { readonly Encoded: RequestContext.Encoded; }, {}> & Omit; withDecodingDefaultType: S.withDecodingDefaultType; }; }>; readonly name: S.WithDefaults, "Iso" | "Type" | "~type.make"> & { readonly Type: NonEmptyString255; readonly Iso: NonEmptyString255; readonly "~type.make": NonEmptyString255; }> & Omit, "Iso" | "Type" | "~type.make"> & { readonly Type: NonEmptyString255; readonly Iso: NonEmptyString255; readonly "~type.make": NonEmptyString255; }; readonly locale: import("effect/Schema").Literals & { changeDefault: (a: A) => import("effect/Schema").Literals & { Default: A; withDefault: S.withConstructorDefault>; withDecodingDefaultType: S.withDecodingDefaultType>; }; Default: "en"; withDefault: S.withConstructorDefault>; withDecodingDefaultType: S.withDecodingDefaultType>; }; readonly sourceId: S.optional, "Iso" | "Type" | "~type.make"> & { readonly Type: NonEmptyString255; readonly Iso: NonEmptyString255; readonly "~type.make": NonEmptyString255; }> & Omit, "Iso" | "Type" | "~type.make"> & { readonly Type: NonEmptyString255; readonly Iso: NonEmptyString255; readonly "~type.make": NonEmptyString255; }>; readonly namespace: S.WithDefaults, "Iso" | "Type" | "~type.make"> & { readonly Type: NonEmptyString255; readonly Iso: NonEmptyString255; readonly "~type.make": NonEmptyString255; }> & Omit, "Iso" | "Type" | "~type.make"> & { readonly Type: NonEmptyString255; readonly Iso: NonEmptyString255; readonly "~type.make": NonEmptyString255; }; /** @deprecated */ readonly userProfile: S.optional & { make: () => string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand; withDefault: S.withConstructorDefault & S.WithoutConstructorDefault>; } & S.WithDefaults>> & S.Codec & { make: () => string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand; withDefault: S.withConstructorDefault & S.WithoutConstructorDefault>; } & S.WithDefaults>; }>>; }>, keyof S.Top>; export declare class RequestContext extends RequestContext_base { static toMonitoring(this: void, self: RequestContext): { operationName: NonEmptyString255; locale: "de" | "en"; }; } export declare const spanAttributes: (ctx: Pick & Partial) => { "request.name": NonEmptyString255 | undefined; "request.locale": "de" | "en"; "request.namespace": string & S.NonEmptyString255Brand; "request.source.id"?: NonEmptyString255; "request.user.sub"?: string & S.StringIdBrand & import("effect-app/ids").UserProfileIdBrand; "request.user.roles"?: unknown; }; export declare namespace RequestContext { interface Encoded extends S.StructNestedEncoded { } } export {}; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmVxdWVzdENvbnRleHQuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9SZXF1ZXN0Q29udGV4dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsT0FBTyxFQUFFLENBQUMsRUFBRSxNQUFNLFlBQVksQ0FBQTtBQUV2QyxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQTtBQUVyRCxlQUFPLE1BQU0sTUFBTTs7Ozs7Ozs7O0NBQTJCLENBQUE7QUFDOUMsTUFBTSxNQUFNLE1BQU0sR0FBRyxPQUFPLE1BQU0sQ0FBQyxJQUFJLENBQUE7O0FBRXZDLHFCQUFhLFNBQVUsU0FBUSxjQUFpRTtDQUFHOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztJQWVqRyxrQkFBa0I7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7SUFBbEIsa0JBQWtCOzs7Ozs7Ozs7OztBQWJwQixxQkFBYSxjQUFlLFNBQVEsbUJBZWpDO0lBR0QsTUFBTSxDQUFDLFlBQVksQ0FBQyxJQUFJLEVB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