import * as Context from "effect-app/Context"; import { UserProfileId } from "effect-app/ids"; import * as S from "effect-app/Schema"; import { NonEmptyString255 } from "effect-app/Schema"; export declare const Locale: import("effect/Schema").Literals & { changeDefault: (a: A) => import("effect/Schema").Literals & { Default: A; withConstructorDefault: S.withConstructorDefault>; withDecodingDefaultType: S.withDecodingDefaultType>; }; Default: "en"; withConstructorDefault: 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: S.Opaque; withDecodingDefaultType: S.withDecodingDefaultType; }; }>; readonly name: S.WithDefaults> & import("effect-app/Schema/brand").BrandedSchema; readonly locale: import("effect/Schema").Literals & { changeDefault: (a: A) => import("effect/Schema").Literals & { Default: A; withConstructorDefault: S.withConstructorDefault>; withDecodingDefaultType: S.withDecodingDefaultType>; }; Default: "en"; withConstructorDefault: S.withConstructorDefault>; withDecodingDefaultType: S.withDecodingDefaultType>; }; readonly sourceId: S.optional> & import("effect-app/Schema/brand").BrandedSchema>; readonly namespace: S.WithDefaults> & import("effect-app/Schema/brand").BrandedSchema; /** @deprecated */ readonly userProfile: S.optional & { withConstructorDefault: S.withConstructorDefault & S.WithoutConstructorDefault>; make: () => UserProfileId; } & S.WithDefaults>> & S.Codec & { withConstructorDefault: S.withConstructorDefault & S.WithoutConstructorDefault>; make: () => UserProfileId; } & S.WithDefaults>; }>>; }>, {}> & Omit; withDecodingDefaultType: S.withDecodingDefaultType; }; }>; readonly name: S.WithDefaults> & import("effect-app/Schema/brand").BrandedSchema; readonly locale: import("effect/Schema").Literals & { changeDefault: (a: A) => import("effect/Schema").Literals & { Default: A; withConstructorDefault: S.withConstructorDefault>; withDecodingDefaultType: S.withDecodingDefaultType>; }; Default: "en"; withConstructorDefault: S.withConstructorDefault>; withDecodingDefaultType: S.withDecodingDefaultType>; }; readonly sourceId: S.optional> & import("effect-app/Schema/brand").BrandedSchema>; readonly namespace: S.WithDefaults> & import("effect-app/Schema/brand").BrandedSchema; /** @deprecated */ readonly userProfile: S.optional & { withConstructorDefault: S.withConstructorDefault & S.WithoutConstructorDefault>; make: () => UserProfileId; } & S.WithDefaults>> & S.Codec & { withConstructorDefault: S.withConstructorDefault & S.WithoutConstructorDefault>; make: () => UserProfileId; } & 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) => { "code.function.name": NonEmptyString255 | undefined; "app.locale": "de" | "en"; "app.tenant.id": string & S.NonEmptyString255Brand; "client.id"?: NonEmptyString255; "user.id"?: UserProfileId; "user.roles"?: unknown; }; export declare namespace RequestContext { interface Encoded extends S.StructNestedEncoded { } } export {}; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmVxdWVzdENvbnRleHQuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9SZXF1ZXN0Q29udGV4dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssT0FBTyxNQUFNLG9CQUFvQixDQUFBO0FBQzdDLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQTtBQUM5QyxPQUFPLEtBQUssQ0FBQyxNQUFNLG1CQUFtQixDQUFBO0FBQ3RDLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLG1CQUFtQixDQUFBO0FBRXJELGVBQU8sTUFBTSxNQUFNOzs7Ozs7Ozs7Q0FBMkIsQ0FBQTtBQUM5QyxNQUFNLE1BQU0sTUFBTSxHQUFHLE9BQU8sTUFBTSxDQUFDLElBQUksQ0FBQTs7QUFFdkMscUJBQWEsU0FBVSxTQUFRLGNBQWlFO0NBQUc7Ozs7Ozs7Ozs7Ozs7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