This repository has been archived on 2026-03-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openclaw-extensions/wecom/node_modules/@mistralai/mistralai/models/components/contentchunk.d.ts
T

60 lines
2.4 KiB
TypeScript

import * as z from "zod";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
import { AudioChunk, AudioChunk$Outbound } from "./audiochunk.js";
import { DocumentURLChunk, DocumentURLChunk$Outbound } from "./documenturlchunk.js";
import { FileChunk, FileChunk$Outbound } from "./filechunk.js";
import { ImageURLChunk, ImageURLChunk$Outbound } from "./imageurlchunk.js";
import { ReferenceChunk, ReferenceChunk$Outbound } from "./referencechunk.js";
import { TextChunk, TextChunk$Outbound } from "./textchunk.js";
import { ThinkChunk, ThinkChunk$Outbound } from "./thinkchunk.js";
export type ContentChunk = (ImageURLChunk & {
type: "image_url";
}) | (DocumentURLChunk & {
type: "document_url";
}) | (TextChunk & {
type: "text";
}) | (ReferenceChunk & {
type: "reference";
}) | (FileChunk & {
type: "file";
}) | (ThinkChunk & {
type: "thinking";
}) | (AudioChunk & {
type: "input_audio";
});
/** @internal */
export declare const ContentChunk$inboundSchema: z.ZodType<ContentChunk, z.ZodTypeDef, unknown>;
/** @internal */
export type ContentChunk$Outbound = (ImageURLChunk$Outbound & {
type: "image_url";
}) | (DocumentURLChunk$Outbound & {
type: "document_url";
}) | (TextChunk$Outbound & {
type: "text";
}) | (ReferenceChunk$Outbound & {
type: "reference";
}) | (FileChunk$Outbound & {
type: "file";
}) | (ThinkChunk$Outbound & {
type: "thinking";
}) | (AudioChunk$Outbound & {
type: "input_audio";
});
/** @internal */
export declare const ContentChunk$outboundSchema: z.ZodType<ContentChunk$Outbound, z.ZodTypeDef, ContentChunk>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace ContentChunk$ {
/** @deprecated use `ContentChunk$inboundSchema` instead. */
const inboundSchema: z.ZodType<ContentChunk, z.ZodTypeDef, unknown>;
/** @deprecated use `ContentChunk$outboundSchema` instead. */
const outboundSchema: z.ZodType<ContentChunk$Outbound, z.ZodTypeDef, ContentChunk>;
/** @deprecated use `ContentChunk$Outbound` instead. */
type Outbound = ContentChunk$Outbound;
}
export declare function contentChunkToJSON(contentChunk: ContentChunk): string;
export declare function contentChunkFromJSON(jsonString: string): SafeParseResult<ContentChunk, SDKValidationError>;
//# sourceMappingURL=contentchunk.d.ts.map