import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The feedback rating indicating user satisfaction */ export declare const ResultsRating: { readonly ThumbsUp: "thumbs_up"; readonly ThumbsDown: "thumbs_down"; }; /** * The feedback rating indicating user satisfaction */ export type ResultsRating = ClosedEnum; /** * Feedback object containing user ratings and comments about a chat completion or response. */ export type Results2 = { /** * The request ID that this feedback is associated with */ id: string; /** * The feedback rating indicating user satisfaction */ rating?: ResultsRating | undefined; /** * Optional detailed feedback description providing additional context or explanation (max 2000 characters) */ description?: string | undefined; /** * Timestamp when the feedback was created */ createdAt?: Date | undefined; /** * Timestamp when the feedback was last updated */ updatedAt?: Date | undefined; }; /** * Error result when the completion/response ID doesn't exist */ export type Results1 = { /** * The request ID that was queried */ id: string; /** * Error indicating the resource doesn't exist */ error: "not_found"; }; export type Results = Results1 | Results2; /** * Response containing batch feedback results. Each result is either the feedback data or a not_found error. */ export type BatchGetFeedbackResponse = { /** * Array of feedback results in the same order as the input IDs */ results: Array; }; /** @internal */ export declare const ResultsRating$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ResultsRating$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Results2$inboundSchema: z.ZodType; /** @internal */ export type Results2$Outbound = { id: string; rating?: string | undefined; description?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; }; /** @internal */ export declare const Results2$outboundSchema: z.ZodType; export declare function results2ToJSON(results2: Results2): string; export declare function results2FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Results1$inboundSchema: z.ZodType; /** @internal */ export type Results1$Outbound = { id: string; error: "not_found"; }; /** @internal */ export declare const Results1$outboundSchema: z.ZodType; export declare function results1ToJSON(results1: Results1): string; export declare function results1FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Results$inboundSchema: z.ZodType; /** @internal */ export type Results$Outbound = Results1$Outbound | Results2$Outbound; /** @internal */ export declare const Results$outboundSchema: z.ZodType; export declare function resultsToJSON(results: Results): string; export declare function resultsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const BatchGetFeedbackResponse$inboundSchema: z.ZodType; /** @internal */ export type BatchGetFeedbackResponse$Outbound = { results: Array; }; /** @internal */ export declare const BatchGetFeedbackResponse$outboundSchema: z.ZodType; export declare function batchGetFeedbackResponseToJSON(batchGetFeedbackResponse: BatchGetFeedbackResponse): string; export declare function batchGetFeedbackResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=batchgetfeedbackresponse.d.ts.map