@meistrari/chat-nuxt 4.14.0-rc.0 → 4.14.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
|
@@ -290,6 +290,16 @@ export declare const chatV3UpdateThreadSchema: z.ZodObject<{
|
|
|
290
290
|
}>>>;
|
|
291
291
|
}, z.core.$strict>;
|
|
292
292
|
export type ChatV3UpdateThread = z.infer<typeof chatV3UpdateThreadSchema>;
|
|
293
|
+
/** The largest rendered thread chat-api turns into a PDF, as v1's conversation export: 10 MiB. */
|
|
294
|
+
export declare const CHAT_V3_EXPORT_PDF_BYTES: number;
|
|
295
|
+
/**
|
|
296
|
+
* A thread as the browser rendered it, to be turned into a PDF. chat-api sanitizes it and renders
|
|
297
|
+
* it with scripts and network off, as v1 does.
|
|
298
|
+
*/
|
|
299
|
+
export declare const chatV3ExportThreadPdfSchema: z.ZodObject<{
|
|
300
|
+
html: z.ZodString;
|
|
301
|
+
}, z.core.$strict>;
|
|
302
|
+
export type ChatV3ExportThreadPdf = z.infer<typeof chatV3ExportThreadPdfSchema>;
|
|
293
303
|
/** Whose threads a list shows, as v1's `creator`: `all` (the default) or `me`, the caller's own. */
|
|
294
304
|
export declare const chatV3ThreadCreatorSchema: z.ZodEnum<{
|
|
295
305
|
all: "all";
|
|
@@ -179,6 +179,15 @@ export const chatV3UpdateThreadSchema = z.object({
|
|
|
179
179
|
else if (body.title === undefined && body.folderId === undefined && body.model === undefined)
|
|
180
180
|
ctx.addIssue({ code: 'custom', message: 'Send a title, a folderId, or a model and reasoningEffort.' });
|
|
181
181
|
});
|
|
182
|
+
/** The largest rendered thread chat-api turns into a PDF, as v1's conversation export: 10 MiB. */
|
|
183
|
+
export const CHAT_V3_EXPORT_PDF_BYTES = 10 * 1024 * 1024;
|
|
184
|
+
/**
|
|
185
|
+
* A thread as the browser rendered it, to be turned into a PDF. chat-api sanitizes it and renders
|
|
186
|
+
* it with scripts and network off, as v1 does.
|
|
187
|
+
*/
|
|
188
|
+
export const chatV3ExportThreadPdfSchema = z.object({
|
|
189
|
+
html: z.string().min(1).max(CHAT_V3_EXPORT_PDF_BYTES),
|
|
190
|
+
}).strict();
|
|
182
191
|
/** Whose threads a list shows, as v1's `creator`: `all` (the default) or `me`, the caller's own. */
|
|
183
192
|
export const chatV3ThreadCreatorSchema = z.enum(['all', 'me']);
|
|
184
193
|
/** `folderId=none` lists the threads outside every folder. */
|