import * as z from "zod"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { Embedding, Embedding$Outbound } from "./embedding.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; /** * The object type, which is always "list". */ export declare const CreateEmbeddingResponseObject: { readonly List: "list"; }; /** * The object type, which is always "list". */ export type CreateEmbeddingResponseObject = ClosedEnum; /** * The usage information for the request. */ export type Usage = { /** * The number of tokens used by the prompt. */ promptTokens: number; /** * The total number of tokens used by the request. */ totalTokens: number; }; export type CreateEmbeddingResponse = { /** * The list of embeddings generated by the model. */ data: Array; /** * The name of the model used to generate the embedding. */ model: string; /** * The object type, which is always "list". */ object: CreateEmbeddingResponseObject; /** * The usage information for the request. */ usage: Usage; }; /** @internal */ export declare const CreateEmbeddingResponseObject$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const CreateEmbeddingResponseObject$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace CreateEmbeddingResponseObject$ { /** @deprecated use `CreateEmbeddingResponseObject$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly List: "list"; }>; /** @deprecated use `CreateEmbeddingResponseObject$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly List: "list"; }>; } /** @internal */ export declare const Usage$inboundSchema: z.ZodType; /** @internal */ export type Usage$Outbound = { prompt_tokens: number; total_tokens: number; }; /** @internal */ export declare const Usage$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Usage$ { /** @deprecated use `Usage$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Usage$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Usage$Outbound` instead. */ type Outbound = Usage$Outbound; } export declare function usageToJSON(usage: Usage): string; export declare function usageFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CreateEmbeddingResponse$inboundSchema: z.ZodType; /** @internal */ export type CreateEmbeddingResponse$Outbound = { data: Array; model: string; object: string; usage: Usage$Outbound; }; /** @internal */ export declare const CreateEmbeddingResponse$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace CreateEmbeddingResponse$ { /** @deprecated use `CreateEmbeddingResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CreateEmbeddingResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CreateEmbeddingResponse$Outbound` instead. */ type Outbound = CreateEmbeddingResponse$Outbound; } export declare function createEmbeddingResponseToJSON(createEmbeddingResponse: CreateEmbeddingResponse): string; export declare function createEmbeddingResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=createembeddingresponse.d.ts.map