From 06d1622e93eac3aa2c1a2124146fcf05c9f4a705 Mon Sep 17 00:00:00 2001 From: Aubin Date: Wed, 19 Mar 2025 22:45:06 +0100 Subject: [PATCH 1/2] fix swagger doc for the timestamp (incorrect unit + not actually reserved) --- .../data_sources/[dsId]/documents/[documentId]/index.ts | 2 +- .../[wId]/spaces/[spaceId]/data_sources/[dsId]/tables/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/front/pages/api/v1/w/[wId]/spaces/[spaceId]/data_sources/[dsId]/documents/[documentId]/index.ts b/front/pages/api/v1/w/[wId]/spaces/[spaceId]/data_sources/[dsId]/documents/[documentId]/index.ts index 308a7039060a..deb7cfd7cba3 100644 --- a/front/pages/api/v1/w/[wId]/spaces/[spaceId]/data_sources/[dsId]/documents/[documentId]/index.ts +++ b/front/pages/api/v1/w/[wId]/spaces/[spaceId]/data_sources/[dsId]/documents/[documentId]/index.ts @@ -151,7 +151,7 @@ export const config = { * description: Tags to associate with the document. * timestamp: * type: number - * description: Reserved for internal use, should not be set. Unix timestamp (in seconds) of the time the document was last updated (e.g. 1698225000). + * description: Unix timestamp (in milliseconds) for the document (e.g. 1736365559000). * light_document_output: * type: boolean * description: If true, a lightweight version of the document will be returned in the response (excluding the text, chunks and vectors). Defaults to false. diff --git a/front/pages/api/v1/w/[wId]/spaces/[spaceId]/data_sources/[dsId]/tables/index.ts b/front/pages/api/v1/w/[wId]/spaces/[spaceId]/data_sources/[dsId]/tables/index.ts index b185c36f2b11..1a4e4b845e9d 100644 --- a/front/pages/api/v1/w/[wId]/spaces/[spaceId]/data_sources/[dsId]/tables/index.ts +++ b/front/pages/api/v1/w/[wId]/spaces/[spaceId]/data_sources/[dsId]/tables/index.ts @@ -104,7 +104,7 @@ import { CoreAPI } from "@app/types"; * description: Description of the table * timestamp: * type: number - * description: Reserved for internal use, should not be set. Unix timestamp (in seconds) of the time the document was last updated (e.g. 1698225000). + * description: Unix timestamp (in milliseconds) for the table (e.g. 1736365559000). * tags: * type: array * items: From d6a3c5a03e7c92b3189ca6ee14483e5e992cffd3 Mon Sep 17 00:00:00 2001 From: Aubin Date: Wed, 19 Mar 2025 22:47:46 +0100 Subject: [PATCH 2/2] update swaggerfile --- front/public/swagger.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front/public/swagger.json b/front/public/swagger.json index ece707cc8e7f..b7907afa769e 100644 --- a/front/public/swagger.json +++ b/front/public/swagger.json @@ -2384,7 +2384,7 @@ }, "timestamp": { "type": "number", - "description": "Reserved for internal use, should not be set. Unix timestamp (in seconds) of the time the document was last updated (e.g. 1698225000)." + "description": "Unix timestamp (in milliseconds) for the document (e.g. 1736365559000)." }, "light_document_output": { "type": "boolean", @@ -3552,7 +3552,7 @@ }, "timestamp": { "type": "number", - "description": "Reserved for internal use, should not be set. Unix timestamp (in seconds) of the time the document was last updated (e.g. 1698225000)." + "description": "Unix timestamp (in milliseconds) for the table (e.g. 1736365559000)." }, "tags": { "type": "array",