@thinkai/tai-api-contract 2.181.0 → 2.182.0
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.
|
@@ -3342,7 +3342,7 @@ export interface paths {
|
|
|
3342
3342
|
put?: never;
|
|
3343
3343
|
/**
|
|
3344
3344
|
* Upload a Conversations attachment
|
|
3345
|
-
* @description Any workspace member when chat is ready. Validates size/type against the active provider profile (`attachmentLimits` from readiness). Returns metadata; pass `id` as `attachmentIds` on the next POST message. Max 5 MB per file.
|
|
3345
|
+
* @description Any workspace member when chat is ready. Validates size/type against the active provider profile (`attachmentLimits` from readiness). Returns metadata; pass `id` as `attachmentIds` on the next POST message. Max 5 MB per file (JSON bodyLimit is raised for `contentBase64`). When unbound uploads already sit at the per-message file cap (e.g. after an aborted send), the oldest unbound rows are pruned so a new attach can proceed.
|
|
3346
3346
|
*/
|
|
3347
3347
|
post: operations["postCodeChatAttachment"];
|
|
3348
3348
|
delete?: never;
|
|
@@ -21579,7 +21579,7 @@ export interface operations {
|
|
|
21579
21579
|
"application/json": components["schemas"]["CodeChatAttachmentMetaDto"];
|
|
21580
21580
|
};
|
|
21581
21581
|
};
|
|
21582
|
-
/** @description Validation failed (size, type, totals) */
|
|
21582
|
+
/** @description Validation failed after decode (size, type, totals). Stable codes include `attachment_too_large`, `attachment_total_too_large`, `attachment_too_many`, `attachment_type_unsupported`, `attachment_pdf_too_long`, `attachment_failed`, `invalid_input`. */
|
|
21583
21583
|
400: {
|
|
21584
21584
|
headers: {
|
|
21585
21585
|
[name: string]: unknown;
|
|
@@ -21607,6 +21607,21 @@ export interface operations {
|
|
|
21607
21607
|
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
21608
21608
|
};
|
|
21609
21609
|
};
|
|
21610
|
+
/** @description Fastify rejected the JSON body before the handler (`request_body_too_large`). Typical when `contentBase64` exceeds the route bodyLimit (aligned with the 5 MB per-file cap after base64 expansion). Decoded-size overruns still return `400` `attachment_too_large`. */
|
|
21611
|
+
413: {
|
|
21612
|
+
headers: {
|
|
21613
|
+
[name: string]: unknown;
|
|
21614
|
+
};
|
|
21615
|
+
content: {
|
|
21616
|
+
/**
|
|
21617
|
+
* @example {
|
|
21618
|
+
* "error": "Request body is too large.",
|
|
21619
|
+
* "code": "request_body_too_large"
|
|
21620
|
+
* }
|
|
21621
|
+
*/
|
|
21622
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
21623
|
+
};
|
|
21624
|
+
};
|
|
21610
21625
|
/** @description Could not process the file */
|
|
21611
21626
|
422: {
|
|
21612
21627
|
headers: {
|