import * as z from "zod/v4"; import { OpenEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export declare const Logic: { readonly And: "and"; readonly Or: "or"; }; export type Logic = OpenEnum; export declare const Field: { readonly Model: "model"; readonly Provider: "provider"; readonly SessionId: "session_id"; readonly UserId: "user_id"; readonly ApiKeyName: "api_key_name"; readonly FinishReason: "finish_reason"; readonly Input: "input"; readonly Output: "output"; readonly TotalCost: "total_cost"; readonly TotalTokens: "total_tokens"; readonly PromptTokens: "prompt_tokens"; readonly CompletionTokens: "completion_tokens"; }; export type Field = OpenEnum; export declare const Operator: { readonly Equals: "equals"; readonly NotEquals: "not_equals"; readonly Contains: "contains"; readonly NotContains: "not_contains"; readonly Regex: "regex"; readonly StartsWith: "starts_with"; readonly EndsWith: "ends_with"; readonly Gt: "gt"; readonly Lt: "lt"; readonly Gte: "gte"; readonly Lte: "lte"; readonly Exists: "exists"; readonly NotExists: "not_exists"; }; export type Operator = OpenEnum; export type ObservabilityFilterRulesConfigValue = string | number; export type Rule = { field: Field; operator: Operator; value?: string | number | undefined; }; export type Group = { logic?: Logic | undefined; rules: Array; }; /** * Optional structured filter rules controlling which events are forwarded. */ export type ObservabilityFilterRulesConfig = { enabled?: boolean | undefined; groups: Array; }; /** @internal */ export declare const Logic$inboundSchema: z.ZodType; /** @internal */ export declare const Logic$outboundSchema: z.ZodType; /** @internal */ export declare const Field$inboundSchema: z.ZodType; /** @internal */ export declare const Field$outboundSchema: z.ZodType; /** @internal */ export declare const Operator$inboundSchema: z.ZodType; /** @internal */ export declare const Operator$outboundSchema: z.ZodType; /** @internal */ export declare const ObservabilityFilterRulesConfigValue$inboundSchema: z.ZodType; /** @internal */ export type ObservabilityFilterRulesConfigValue$Outbound = string | number; /** @internal */ export declare const ObservabilityFilterRulesConfigValue$outboundSchema: z.ZodType; export declare function observabilityFilterRulesConfigValueToJSON(observabilityFilterRulesConfigValue: ObservabilityFilterRulesConfigValue): string; export declare function observabilityFilterRulesConfigValueFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Rule$inboundSchema: z.ZodType; /** @internal */ export type Rule$Outbound = { field: string; operator: string; value?: string | number | undefined; }; /** @internal */ export declare const Rule$outboundSchema: z.ZodType; export declare function ruleToJSON(rule: Rule): string; export declare function ruleFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Group$inboundSchema: z.ZodType; /** @internal */ export type Group$Outbound = { logic: string; rules: Array; }; /** @internal */ export declare const Group$outboundSchema: z.ZodType; export declare function groupToJSON(group: Group): string; export declare function groupFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ObservabilityFilterRulesConfig$inboundSchema: z.ZodType; /** @internal */ export type ObservabilityFilterRulesConfig$Outbound = { enabled: boolean; groups: Array; }; /** @internal */ export declare const ObservabilityFilterRulesConfig$outboundSchema: z.ZodType; export declare function observabilityFilterRulesConfigToJSON(observabilityFilterRulesConfig: ObservabilityFilterRulesConfig): string; export declare function observabilityFilterRulesConfigFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=observabilityfilterrulesconfig.d.ts.map