@breign/client 1.0.125 → 1.0.126
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/apis/KnowledgeApi.d.ts +127 -61
- package/dist/apis/KnowledgeApi.js +257 -108
- package/dist/models/ChunkCreateRequestContentInnerUio.d.ts +1 -1
- package/dist/models/ChunkCreateRequestContentInnerUio.js +1 -3
- package/dist/models/ChunkCreateRequestUio.d.ts +3 -3
- package/dist/models/ChunkCreateRequestUio.js +10 -4
- package/dist/models/CreateKnowledgeBaseRequestEmbeddingConfigUio.d.ts +44 -0
- package/dist/models/CreateKnowledgeBaseRequestEmbeddingConfigUio.js +58 -0
- package/dist/models/CreateKnowledgeBaseRequestUio.d.ts +59 -0
- package/dist/models/CreateKnowledgeBaseRequestUio.js +65 -0
- package/dist/models/CreateKnowledgeBaseResponseUio.d.ts +46 -0
- package/dist/models/CreateKnowledgeBaseResponseUio.js +62 -0
- package/dist/models/DeleteKnowledgeSitePage200ResponseUio.d.ts +38 -0
- package/dist/models/DeleteKnowledgeSitePage200ResponseUio.js +52 -0
- package/dist/models/FileCreationResponseUio.d.ts +1 -0
- package/dist/models/FileCreationResponseUio.js +2 -1
- package/dist/models/FileUio.d.ts +5 -3
- package/dist/models/FileUio.js +4 -4
- package/dist/models/FileWithDownloadUrlUio.d.ts +5 -3
- package/dist/models/FileWithDownloadUrlUio.js +4 -4
- package/dist/models/ImageKnowledgeUio.d.ts +13 -6
- package/dist/models/ImageKnowledgeUio.js +23 -6
- package/dist/models/KnowledgeBaseConfigurationUio.d.ts +14 -0
- package/dist/models/KnowledgeBaseConfigurationUio.js +10 -1
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio.d.ts +45 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestAuthenticationOneOfUio.js +57 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestAuthenticationUio.d.ts +22 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestAuthenticationUio.js +50 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestUio.d.ts +157 -0
- package/dist/models/KnowledgeBaseConfigurationUpdateRequestUio.js +102 -0
- package/dist/models/KnowledgeBaseUio.d.ts +6 -62
- package/dist/models/KnowledgeBaseUio.js +2 -22
- package/dist/models/KnowledgeFileCreationRequestUio.d.ts +68 -0
- package/dist/models/KnowledgeFileCreationRequestUio.js +64 -0
- package/dist/models/KnowledgeFileParsingCallbackRequestUio.d.ts +51 -0
- package/dist/models/KnowledgeFileParsingCallbackRequestUio.js +58 -0
- package/dist/models/KnowledgeFileSummaryUio.d.ts +2 -3
- package/dist/models/KnowledgeFileSummaryUio.js +2 -3
- package/dist/models/KnowledgeFileUio.d.ts +140 -0
- package/dist/models/KnowledgeFileUio.js +92 -0
- package/dist/models/UploadedStatusUpdateRequestUio.d.ts +39 -0
- package/dist/models/UploadedStatusUpdateRequestUio.js +57 -0
- package/dist/models/index.d.ts +11 -6
- package/dist/models/index.js +11 -6
- package/dist/openapi.json +662 -222
- package/package.json +1 -1
- package/dist/models/FileFormDataUio.d.ts +0 -38
- package/dist/models/FileFormDataUio.js +0 -50
- package/dist/models/FileStatusUpdateRequestUio.d.ts +0 -33
- package/dist/models/FileStatusUpdateRequestUio.js +0 -51
- package/dist/models/KnowledgeBaseFilesInnerUio.d.ts +0 -44
- package/dist/models/KnowledgeBaseFilesInnerUio.js +0 -58
- package/dist/models/KnowledgeBasePrivacyUio.d.ts +0 -25
- package/dist/models/KnowledgeBasePrivacyUio.js +0 -51
- package/dist/models/KnowledgeFilePagePreviewUio.d.ts +0 -44
- package/dist/models/KnowledgeFilePagePreviewUio.js +0 -56
- package/dist/models/KnowledgeFileSummaryKnowledgeBaseIdUio.d.ts +0 -21
- package/dist/models/KnowledgeFileSummaryKnowledgeBaseIdUio.js +0 -37
package/dist/openapi.json
CHANGED
|
@@ -7848,45 +7848,6 @@
|
|
|
7848
7848
|
"tags" : [ "knowledge" ]
|
|
7849
7849
|
}
|
|
7850
7850
|
},
|
|
7851
|
-
"/organizations/{organizationId}/modules" : {
|
|
7852
|
-
"post" : {
|
|
7853
|
-
"description" : "Create a new module for an organization",
|
|
7854
|
-
"operationId" : "createModuleForOrganization",
|
|
7855
|
-
"parameters" : [ {
|
|
7856
|
-
"description" : "ID of the organization",
|
|
7857
|
-
"in" : "path",
|
|
7858
|
-
"name" : "organizationId",
|
|
7859
|
-
"required" : true,
|
|
7860
|
-
"schema" : {
|
|
7861
|
-
"type" : "string"
|
|
7862
|
-
}
|
|
7863
|
-
} ],
|
|
7864
|
-
"requestBody" : {
|
|
7865
|
-
"content" : {
|
|
7866
|
-
"application/json" : {
|
|
7867
|
-
"schema" : {
|
|
7868
|
-
"$ref" : "#/components/schemas/AgentModule"
|
|
7869
|
-
}
|
|
7870
|
-
}
|
|
7871
|
-
},
|
|
7872
|
-
"required" : true
|
|
7873
|
-
},
|
|
7874
|
-
"responses" : {
|
|
7875
|
-
"201" : {
|
|
7876
|
-
"content" : {
|
|
7877
|
-
"application/json" : {
|
|
7878
|
-
"schema" : {
|
|
7879
|
-
"$ref" : "#/components/schemas/AgentModule"
|
|
7880
|
-
}
|
|
7881
|
-
}
|
|
7882
|
-
},
|
|
7883
|
-
"description" : "Module created successfully"
|
|
7884
|
-
}
|
|
7885
|
-
},
|
|
7886
|
-
"summary" : "Create a new module for an organization",
|
|
7887
|
-
"tags" : [ "knowledge" ]
|
|
7888
|
-
}
|
|
7889
|
-
},
|
|
7890
7851
|
"/organizations/{organizationId}/agents/{agentId}/available-knowledge-bases" : {
|
|
7891
7852
|
"get" : {
|
|
7892
7853
|
"description" : "Returns all knowledge bases belonging to the organization that can be assigned to the specified agent…\n",
|
|
@@ -7945,12 +7906,46 @@
|
|
|
7945
7906
|
"tags" : [ "knowledge" ]
|
|
7946
7907
|
}
|
|
7947
7908
|
},
|
|
7948
|
-
"/organizations/{organizationId}/knowledge
|
|
7909
|
+
"/organizations/{organizationId}/knowledge-bases" : {
|
|
7910
|
+
"get" : {
|
|
7911
|
+
"description" : "Returns every knowledge base belonging to the organization",
|
|
7912
|
+
"operationId" : "getOrganizationKnowledgeBases",
|
|
7913
|
+
"parameters" : [ {
|
|
7914
|
+
"in" : "path",
|
|
7915
|
+
"name" : "organizationId",
|
|
7916
|
+
"required" : true,
|
|
7917
|
+
"schema" : {
|
|
7918
|
+
"type" : "string"
|
|
7919
|
+
}
|
|
7920
|
+
} ],
|
|
7921
|
+
"responses" : {
|
|
7922
|
+
"200" : {
|
|
7923
|
+
"content" : {
|
|
7924
|
+
"application/json" : {
|
|
7925
|
+
"schema" : {
|
|
7926
|
+
"items" : {
|
|
7927
|
+
"$ref" : "#/components/schemas/KnowledgeBase"
|
|
7928
|
+
},
|
|
7929
|
+
"type" : "array"
|
|
7930
|
+
}
|
|
7931
|
+
}
|
|
7932
|
+
},
|
|
7933
|
+
"description" : "Knowledge bases retrieved successfully"
|
|
7934
|
+
},
|
|
7935
|
+
"401" : {
|
|
7936
|
+
"description" : "Unauthorized"
|
|
7937
|
+
},
|
|
7938
|
+
"403" : {
|
|
7939
|
+
"description" : "Forbidden - User is not part of the organization"
|
|
7940
|
+
}
|
|
7941
|
+
},
|
|
7942
|
+
"summary" : "List the knowledge bases of an organization",
|
|
7943
|
+
"tags" : [ "knowledge" ]
|
|
7944
|
+
},
|
|
7949
7945
|
"post" : {
|
|
7950
|
-
"description" : "
|
|
7951
|
-
"operationId" : "
|
|
7946
|
+
"description" : "Creates a knowledge base and provisions its vector store collection. `embeddingConfig` est obligatoire lorsque `vectorStoreType` vaut `qdrant`.",
|
|
7947
|
+
"operationId" : "createKnowledgeBase",
|
|
7952
7948
|
"parameters" : [ {
|
|
7953
|
-
"description" : "ID of the organization",
|
|
7954
7949
|
"in" : "path",
|
|
7955
7950
|
"name" : "organizationId",
|
|
7956
7951
|
"required" : true,
|
|
@@ -7958,19 +7953,86 @@
|
|
|
7958
7953
|
"type" : "string"
|
|
7959
7954
|
}
|
|
7960
7955
|
} ],
|
|
7956
|
+
"requestBody" : {
|
|
7957
|
+
"content" : {
|
|
7958
|
+
"application/json" : {
|
|
7959
|
+
"schema" : {
|
|
7960
|
+
"$ref" : "#/components/schemas/CreateKnowledgeBaseRequest"
|
|
7961
|
+
}
|
|
7962
|
+
}
|
|
7963
|
+
},
|
|
7964
|
+
"required" : true
|
|
7965
|
+
},
|
|
7961
7966
|
"responses" : {
|
|
7962
7967
|
"200" : {
|
|
7963
7968
|
"content" : {
|
|
7964
7969
|
"application/json" : {
|
|
7965
7970
|
"schema" : {
|
|
7966
|
-
"$ref" : "#/components/schemas/
|
|
7971
|
+
"$ref" : "#/components/schemas/CreateKnowledgeBaseResponse"
|
|
7967
7972
|
}
|
|
7968
7973
|
}
|
|
7969
7974
|
},
|
|
7970
|
-
"description" : "Knowledge base
|
|
7975
|
+
"description" : "Knowledge base created successfully"
|
|
7976
|
+
},
|
|
7977
|
+
"400" : {
|
|
7978
|
+
"description" : "Missing name, invalid authorizedAgents, missing embeddingConfig for Qdrant, or knowledge base name already taken"
|
|
7979
|
+
},
|
|
7980
|
+
"401" : {
|
|
7981
|
+
"description" : "Unauthorized"
|
|
7982
|
+
},
|
|
7983
|
+
"403" : {
|
|
7984
|
+
"description" : "Forbidden - User is not admin of the organization"
|
|
7985
|
+
},
|
|
7986
|
+
"500" : {
|
|
7987
|
+
"description" : "Failed to create the knowledge base"
|
|
7971
7988
|
}
|
|
7972
7989
|
},
|
|
7973
|
-
"summary" : "
|
|
7990
|
+
"summary" : "Create a knowledge base",
|
|
7991
|
+
"tags" : [ "knowledge" ]
|
|
7992
|
+
}
|
|
7993
|
+
},
|
|
7994
|
+
"/knowledge-bases/configurations" : {
|
|
7995
|
+
"get" : {
|
|
7996
|
+
"description" : "Returns the vector store module configuration of one or several knowledge bases. Toutes les knowledge bases demandées doivent appartenir à la même organisation.\n\nLa forme de la réponse dépend du paramètre : un seul id renvoie la configuration à plat, plusieurs ids (répétés ou séparés par des virgules) renvoient une map `{ [knowledgeBaseId]: configuration }`.",
|
|
7997
|
+
"operationId" : "getKnowledgeBasesConfigurations",
|
|
7998
|
+
"parameters" : [ {
|
|
7999
|
+
"description" : "IDs des knowledge bases dont on veut la configuration",
|
|
8000
|
+
"in" : "query",
|
|
8001
|
+
"name" : "knowledgeBaseIds",
|
|
8002
|
+
"required" : true,
|
|
8003
|
+
"schema" : {
|
|
8004
|
+
"items" : {
|
|
8005
|
+
"type" : "string"
|
|
8006
|
+
},
|
|
8007
|
+
"type" : "array"
|
|
8008
|
+
}
|
|
8009
|
+
} ],
|
|
8010
|
+
"responses" : {
|
|
8011
|
+
"200" : {
|
|
8012
|
+
"content" : {
|
|
8013
|
+
"application/json" : {
|
|
8014
|
+
"schema" : {
|
|
8015
|
+
"additionalProperties" : true,
|
|
8016
|
+
"type" : "object"
|
|
8017
|
+
}
|
|
8018
|
+
}
|
|
8019
|
+
},
|
|
8020
|
+
"description" : "Configurations retrieved successfully"
|
|
8021
|
+
},
|
|
8022
|
+
"400" : {
|
|
8023
|
+
"description" : "All knowledge bases must belong to the same organization"
|
|
8024
|
+
},
|
|
8025
|
+
"401" : {
|
|
8026
|
+
"description" : "Unauthorized"
|
|
8027
|
+
},
|
|
8028
|
+
"403" : {
|
|
8029
|
+
"description" : "Forbidden - User is not part of the organization"
|
|
8030
|
+
},
|
|
8031
|
+
"404" : {
|
|
8032
|
+
"description" : "Knowledge bases not found, or one of them has no vector store configuration"
|
|
8033
|
+
}
|
|
8034
|
+
},
|
|
8035
|
+
"summary" : "Get the vector store configurations of several knowledge bases",
|
|
7974
8036
|
"tags" : [ "knowledge" ]
|
|
7975
8037
|
}
|
|
7976
8038
|
},
|
|
@@ -8118,7 +8180,7 @@
|
|
|
8118
8180
|
"content" : {
|
|
8119
8181
|
"application/json" : {
|
|
8120
8182
|
"schema" : {
|
|
8121
|
-
"$ref" : "#/components/schemas/
|
|
8183
|
+
"$ref" : "#/components/schemas/KnowledgeFileCreationRequest"
|
|
8122
8184
|
}
|
|
8123
8185
|
}
|
|
8124
8186
|
},
|
|
@@ -8324,7 +8386,14 @@
|
|
|
8324
8386
|
}
|
|
8325
8387
|
} ],
|
|
8326
8388
|
"responses" : {
|
|
8327
|
-
"
|
|
8389
|
+
"200" : {
|
|
8390
|
+
"content" : {
|
|
8391
|
+
"application/json" : {
|
|
8392
|
+
"schema" : {
|
|
8393
|
+
"$ref" : "#/components/schemas/BodyWithMessage"
|
|
8394
|
+
}
|
|
8395
|
+
}
|
|
8396
|
+
},
|
|
8328
8397
|
"description" : "Chunk deleted successfully"
|
|
8329
8398
|
},
|
|
8330
8399
|
"401" : {
|
|
@@ -8342,48 +8411,6 @@
|
|
|
8342
8411
|
}
|
|
8343
8412
|
},
|
|
8344
8413
|
"/knowledge-bases/{knowledgebaseId}/images" : {
|
|
8345
|
-
"delete" : {
|
|
8346
|
-
"description" : "Delete a specific knowledge image from a library image in knowledge base",
|
|
8347
|
-
"operationId" : "deleteImageFromKnowledgeBaseLibrary",
|
|
8348
|
-
"parameters" : [ {
|
|
8349
|
-
"description" : "ID of the knowledge base to retrieve",
|
|
8350
|
-
"in" : "path",
|
|
8351
|
-
"name" : "knowledgebaseId",
|
|
8352
|
-
"required" : true,
|
|
8353
|
-
"schema" : {
|
|
8354
|
-
"format" : "uuid",
|
|
8355
|
-
"type" : "string"
|
|
8356
|
-
}
|
|
8357
|
-
}, {
|
|
8358
|
-
"description" : "ID of the image to delete",
|
|
8359
|
-
"in" : "path",
|
|
8360
|
-
"name" : "imageId",
|
|
8361
|
-
"required" : true,
|
|
8362
|
-
"schema" : {
|
|
8363
|
-
"format" : "uuid",
|
|
8364
|
-
"type" : "string"
|
|
8365
|
-
}
|
|
8366
|
-
} ],
|
|
8367
|
-
"responses" : {
|
|
8368
|
-
"204" : {
|
|
8369
|
-
"description" : "Image deleted successfully"
|
|
8370
|
-
},
|
|
8371
|
-
"401" : {
|
|
8372
|
-
"description" : "Unauthorized"
|
|
8373
|
-
},
|
|
8374
|
-
"403" : {
|
|
8375
|
-
"description" : "Forbidden - User doesn't have access to this knowledge base"
|
|
8376
|
-
},
|
|
8377
|
-
"404" : {
|
|
8378
|
-
"description" : "Knowledge base or image not found"
|
|
8379
|
-
},
|
|
8380
|
-
"500" : {
|
|
8381
|
-
"description" : "Server error"
|
|
8382
|
-
}
|
|
8383
|
-
},
|
|
8384
|
-
"summary" : "Delete a specific knowledge image from a library image in knowledge base",
|
|
8385
|
-
"tags" : [ "knowledge" ]
|
|
8386
|
-
},
|
|
8387
8414
|
"get" : {
|
|
8388
8415
|
"description" : "Get all images from a library image in knowledge base",
|
|
8389
8416
|
"operationId" : "getImagesFromKnowledgeBaseLibrary",
|
|
@@ -8478,6 +8505,57 @@
|
|
|
8478
8505
|
"tags" : [ "knowledge" ]
|
|
8479
8506
|
}
|
|
8480
8507
|
},
|
|
8508
|
+
"/knowledge-bases/{knowledgebaseId}/images/{imageId}" : {
|
|
8509
|
+
"delete" : {
|
|
8510
|
+
"description" : "Delete a specific knowledge image by ID from a knowledge base",
|
|
8511
|
+
"operationId" : "deleteImageFromKnowledgeBaseLibrary",
|
|
8512
|
+
"parameters" : [ {
|
|
8513
|
+
"description" : "ID of the knowledge base to retrieve",
|
|
8514
|
+
"in" : "path",
|
|
8515
|
+
"name" : "knowledgebaseId",
|
|
8516
|
+
"required" : true,
|
|
8517
|
+
"schema" : {
|
|
8518
|
+
"format" : "uuid",
|
|
8519
|
+
"type" : "string"
|
|
8520
|
+
}
|
|
8521
|
+
}, {
|
|
8522
|
+
"description" : "ID of the image to delete",
|
|
8523
|
+
"in" : "path",
|
|
8524
|
+
"name" : "imageId",
|
|
8525
|
+
"required" : true,
|
|
8526
|
+
"schema" : {
|
|
8527
|
+
"format" : "uuid",
|
|
8528
|
+
"type" : "string"
|
|
8529
|
+
}
|
|
8530
|
+
} ],
|
|
8531
|
+
"responses" : {
|
|
8532
|
+
"200" : {
|
|
8533
|
+
"content" : {
|
|
8534
|
+
"application/json" : {
|
|
8535
|
+
"schema" : {
|
|
8536
|
+
"$ref" : "#/components/schemas/BodyWithMessage"
|
|
8537
|
+
}
|
|
8538
|
+
}
|
|
8539
|
+
},
|
|
8540
|
+
"description" : "Image deleted successfully"
|
|
8541
|
+
},
|
|
8542
|
+
"401" : {
|
|
8543
|
+
"description" : "Unauthorized"
|
|
8544
|
+
},
|
|
8545
|
+
"403" : {
|
|
8546
|
+
"description" : "Forbidden - User doesn't have access to this knowledge base"
|
|
8547
|
+
},
|
|
8548
|
+
"404" : {
|
|
8549
|
+
"description" : "Knowledge base or image not found"
|
|
8550
|
+
},
|
|
8551
|
+
"500" : {
|
|
8552
|
+
"description" : "Server error"
|
|
8553
|
+
}
|
|
8554
|
+
},
|
|
8555
|
+
"summary" : "Delete a specific knowledge image from a knowledge base",
|
|
8556
|
+
"tags" : [ "knowledge" ]
|
|
8557
|
+
}
|
|
8558
|
+
},
|
|
8481
8559
|
"/knowledge-bases/{knowledgebaseId}/images/{imageId}/status" : {
|
|
8482
8560
|
"post" : {
|
|
8483
8561
|
"description" : "Update the status of a specific knowledge image in a library image in knowledge base",
|
|
@@ -8505,7 +8583,7 @@
|
|
|
8505
8583
|
"content" : {
|
|
8506
8584
|
"application/json" : {
|
|
8507
8585
|
"schema" : {
|
|
8508
|
-
"$ref" : "#/components/schemas/
|
|
8586
|
+
"$ref" : "#/components/schemas/UploadedStatusUpdateRequest"
|
|
8509
8587
|
}
|
|
8510
8588
|
}
|
|
8511
8589
|
},
|
|
@@ -8516,11 +8594,14 @@
|
|
|
8516
8594
|
"content" : {
|
|
8517
8595
|
"application/json" : {
|
|
8518
8596
|
"schema" : {
|
|
8519
|
-
"$ref" : "#/components/schemas/
|
|
8597
|
+
"$ref" : "#/components/schemas/ImageKnowledge"
|
|
8520
8598
|
}
|
|
8521
8599
|
}
|
|
8522
8600
|
},
|
|
8523
|
-
"description" : "Image status updated successfully"
|
|
8601
|
+
"description" : "Image status updated successfully — returns the updated image"
|
|
8602
|
+
},
|
|
8603
|
+
"400" : {
|
|
8604
|
+
"description" : "Invalid image status update"
|
|
8524
8605
|
},
|
|
8525
8606
|
"401" : {
|
|
8526
8607
|
"description" : "Unauthorized"
|
|
@@ -8636,23 +8717,22 @@
|
|
|
8636
8717
|
"content" : {
|
|
8637
8718
|
"application/json" : {
|
|
8638
8719
|
"schema" : {
|
|
8639
|
-
"$ref" : "#/components/schemas/
|
|
8720
|
+
"$ref" : "#/components/schemas/KnowledgeBaseConfigurationUpdateRequest"
|
|
8640
8721
|
}
|
|
8641
8722
|
}
|
|
8642
8723
|
},
|
|
8643
8724
|
"required" : true
|
|
8644
8725
|
},
|
|
8645
8726
|
"responses" : {
|
|
8646
|
-
"
|
|
8727
|
+
"201" : {
|
|
8647
8728
|
"content" : {
|
|
8648
8729
|
"application/json" : {
|
|
8649
8730
|
"schema" : {
|
|
8650
|
-
"
|
|
8651
|
-
"type" : "object"
|
|
8731
|
+
"$ref" : "#/components/schemas/AgentModule"
|
|
8652
8732
|
}
|
|
8653
8733
|
}
|
|
8654
8734
|
},
|
|
8655
|
-
"description" : "Configuration updated successfully"
|
|
8735
|
+
"description" : "Configuration updated successfully. La réponse est le module de vector store résultant (`{ type, name, configuration }`)."
|
|
8656
8736
|
},
|
|
8657
8737
|
"400" : {
|
|
8658
8738
|
"description" : "Invalid configuration payload"
|
|
@@ -8693,7 +8773,7 @@
|
|
|
8693
8773
|
"application/json" : {
|
|
8694
8774
|
"schema" : {
|
|
8695
8775
|
"items" : {
|
|
8696
|
-
"$ref" : "#/components/schemas/
|
|
8776
|
+
"$ref" : "#/components/schemas/KnowledgeFile"
|
|
8697
8777
|
},
|
|
8698
8778
|
"type" : "array"
|
|
8699
8779
|
}
|
|
@@ -8719,6 +8799,42 @@
|
|
|
8719
8799
|
}
|
|
8720
8800
|
},
|
|
8721
8801
|
"/knowledge-files/{fileId}" : {
|
|
8802
|
+
"delete" : {
|
|
8803
|
+
"description" : "Deletes a knowledge file, its stored object, its vectors and — pour une connaissance de type site — ses pages de site associées.",
|
|
8804
|
+
"operationId" : "deleteKnowledgeFile",
|
|
8805
|
+
"parameters" : [ {
|
|
8806
|
+
"description" : "The ID of the file",
|
|
8807
|
+
"in" : "path",
|
|
8808
|
+
"name" : "fileId",
|
|
8809
|
+
"required" : true,
|
|
8810
|
+
"schema" : {
|
|
8811
|
+
"type" : "string"
|
|
8812
|
+
}
|
|
8813
|
+
} ],
|
|
8814
|
+
"responses" : {
|
|
8815
|
+
"200" : {
|
|
8816
|
+
"content" : {
|
|
8817
|
+
"application/json" : {
|
|
8818
|
+
"schema" : {
|
|
8819
|
+
"$ref" : "#/components/schemas/BodyWithMessage"
|
|
8820
|
+
}
|
|
8821
|
+
}
|
|
8822
|
+
},
|
|
8823
|
+
"description" : "File deleted successfully"
|
|
8824
|
+
},
|
|
8825
|
+
"401" : {
|
|
8826
|
+
"description" : "Unauthorized"
|
|
8827
|
+
},
|
|
8828
|
+
"403" : {
|
|
8829
|
+
"description" : "Forbidden - User is not admin of the organization"
|
|
8830
|
+
},
|
|
8831
|
+
"404" : {
|
|
8832
|
+
"description" : "File or knowledge base not found"
|
|
8833
|
+
}
|
|
8834
|
+
},
|
|
8835
|
+
"summary" : "Delete a knowledge file",
|
|
8836
|
+
"tags" : [ "knowledge" ]
|
|
8837
|
+
},
|
|
8722
8838
|
"get" : {
|
|
8723
8839
|
"description" : "Retrieves metadata for a specific knowledge file by file ID",
|
|
8724
8840
|
"operationId" : "getKnowledgeFile",
|
|
@@ -8805,7 +8921,7 @@
|
|
|
8805
8921
|
"tags" : [ "knowledge" ]
|
|
8806
8922
|
}
|
|
8807
8923
|
},
|
|
8808
|
-
"/knowledge-files/{fileId}/
|
|
8924
|
+
"/knowledge-files/{fileId}/knowledge-site-pages" : {
|
|
8809
8925
|
"get" : {
|
|
8810
8926
|
"description" : "Get the scraped site pages attached to a knowledge file of type website",
|
|
8811
8927
|
"operationId" : "getKnowledgeSitePagesForFile",
|
|
@@ -8863,7 +8979,7 @@
|
|
|
8863
8979
|
"content" : {
|
|
8864
8980
|
"application/json" : {
|
|
8865
8981
|
"schema" : {
|
|
8866
|
-
"$ref" : "#/components/schemas/
|
|
8982
|
+
"$ref" : "#/components/schemas/UploadedStatusUpdateRequest"
|
|
8867
8983
|
}
|
|
8868
8984
|
}
|
|
8869
8985
|
},
|
|
@@ -8874,7 +8990,7 @@
|
|
|
8874
8990
|
"content" : {
|
|
8875
8991
|
"application/json" : {
|
|
8876
8992
|
"schema" : {
|
|
8877
|
-
"$ref" : "#/components/schemas/
|
|
8993
|
+
"$ref" : "#/components/schemas/KnowledgeFile"
|
|
8878
8994
|
}
|
|
8879
8995
|
}
|
|
8880
8996
|
},
|
|
@@ -8936,10 +9052,10 @@
|
|
|
8936
9052
|
"tags" : [ "knowledge" ]
|
|
8937
9053
|
}
|
|
8938
9054
|
},
|
|
8939
|
-
"/knowledge-files/{fileId}/
|
|
8940
|
-
"
|
|
8941
|
-
"description" : "
|
|
8942
|
-
"operationId" : "
|
|
9055
|
+
"/knowledge-files/{fileId}/parsing-callback" : {
|
|
9056
|
+
"post" : {
|
|
9057
|
+
"description" : "Internal callback endpoint called when file parsing is complete",
|
|
9058
|
+
"operationId" : "knowledgeFileParsingCallback",
|
|
8943
9059
|
"parameters" : [ {
|
|
8944
9060
|
"description" : "The ID of the file",
|
|
8945
9061
|
"in" : "path",
|
|
@@ -8948,14 +9064,50 @@
|
|
|
8948
9064
|
"schema" : {
|
|
8949
9065
|
"type" : "string"
|
|
8950
9066
|
}
|
|
8951
|
-
},
|
|
8952
|
-
|
|
8953
|
-
"
|
|
8954
|
-
|
|
9067
|
+
} ],
|
|
9068
|
+
"requestBody" : {
|
|
9069
|
+
"content" : {
|
|
9070
|
+
"application/json" : {
|
|
9071
|
+
"schema" : {
|
|
9072
|
+
"$ref" : "#/components/schemas/knowledgeFileParsingCallback_request"
|
|
9073
|
+
}
|
|
9074
|
+
}
|
|
9075
|
+
},
|
|
9076
|
+
"required" : true
|
|
9077
|
+
},
|
|
9078
|
+
"responses" : {
|
|
9079
|
+
"200" : {
|
|
9080
|
+
"content" : {
|
|
9081
|
+
"application/json" : {
|
|
9082
|
+
"schema" : {
|
|
9083
|
+
"$ref" : "#/components/schemas/KnowledgeFile"
|
|
9084
|
+
}
|
|
9085
|
+
}
|
|
9086
|
+
},
|
|
9087
|
+
"description" : "Callback processed successfully — returns the updated knowledge file"
|
|
9088
|
+
},
|
|
9089
|
+
"401" : {
|
|
9090
|
+
"description" : "Unauthorized"
|
|
9091
|
+
},
|
|
9092
|
+
"404" : {
|
|
9093
|
+
"description" : "File not found"
|
|
9094
|
+
}
|
|
9095
|
+
},
|
|
9096
|
+
"summary" : "Knowledge file parsing callback",
|
|
9097
|
+
"tags" : [ "knowledge" ]
|
|
9098
|
+
}
|
|
9099
|
+
},
|
|
9100
|
+
"/knowledge-site-pages/{knowledgeSitePageId}" : {
|
|
9101
|
+
"delete" : {
|
|
9102
|
+
"description" : "Deletes a specific knowledge site page. Lorsque la page supprimée était la dernière de la connaissance, celle-ci est supprimée avec elle et la réponse porte `lastPage: true`.",
|
|
9103
|
+
"operationId" : "deleteKnowledgeSitePage",
|
|
9104
|
+
"parameters" : [ {
|
|
9105
|
+
"description" : "ID of the knowledge site page",
|
|
9106
|
+
"in" : "path",
|
|
9107
|
+
"name" : "knowledgeSitePageId",
|
|
8955
9108
|
"required" : true,
|
|
8956
9109
|
"schema" : {
|
|
8957
|
-
"
|
|
8958
|
-
"type" : "integer"
|
|
9110
|
+
"type" : "string"
|
|
8959
9111
|
}
|
|
8960
9112
|
} ],
|
|
8961
9113
|
"responses" : {
|
|
@@ -8963,23 +9115,103 @@
|
|
|
8963
9115
|
"content" : {
|
|
8964
9116
|
"application/json" : {
|
|
8965
9117
|
"schema" : {
|
|
8966
|
-
"$ref" : "#/components/schemas/
|
|
9118
|
+
"$ref" : "#/components/schemas/deleteKnowledgeSitePage_200_response"
|
|
8967
9119
|
}
|
|
8968
9120
|
}
|
|
8969
9121
|
},
|
|
8970
|
-
"description" : "
|
|
9122
|
+
"description" : "Site page deleted successfully"
|
|
8971
9123
|
},
|
|
8972
|
-
"
|
|
8973
|
-
"description" : "
|
|
9124
|
+
"401" : {
|
|
9125
|
+
"description" : "Unauthorized"
|
|
9126
|
+
},
|
|
9127
|
+
"404" : {
|
|
9128
|
+
"description" : "Site page not found"
|
|
9129
|
+
}
|
|
9130
|
+
},
|
|
9131
|
+
"summary" : "Delete a knowledge site page",
|
|
9132
|
+
"tags" : [ "knowledge" ]
|
|
9133
|
+
}
|
|
9134
|
+
},
|
|
9135
|
+
"/knowledge-site-pages/{knowledgeSitePageId}/status" : {
|
|
9136
|
+
"post" : {
|
|
9137
|
+
"description" : "Updates the processing status of a knowledge site page",
|
|
9138
|
+
"operationId" : "updateKnowledgeSitePageStatus",
|
|
9139
|
+
"parameters" : [ {
|
|
9140
|
+
"description" : "ID of the knowledge site page",
|
|
9141
|
+
"in" : "path",
|
|
9142
|
+
"name" : "knowledgeSitePageId",
|
|
9143
|
+
"required" : true,
|
|
9144
|
+
"schema" : {
|
|
9145
|
+
"type" : "string"
|
|
9146
|
+
}
|
|
9147
|
+
} ],
|
|
9148
|
+
"requestBody" : {
|
|
9149
|
+
"content" : {
|
|
9150
|
+
"application/json" : {
|
|
9151
|
+
"schema" : {
|
|
9152
|
+
"$ref" : "#/components/schemas/UploadedStatusUpdateRequest"
|
|
9153
|
+
}
|
|
9154
|
+
}
|
|
9155
|
+
},
|
|
9156
|
+
"required" : true
|
|
9157
|
+
},
|
|
9158
|
+
"responses" : {
|
|
9159
|
+
"200" : {
|
|
9160
|
+
"content" : {
|
|
9161
|
+
"application/json" : {
|
|
9162
|
+
"schema" : {
|
|
9163
|
+
"$ref" : "#/components/schemas/KnowledgeSitePage"
|
|
9164
|
+
}
|
|
9165
|
+
}
|
|
9166
|
+
},
|
|
9167
|
+
"description" : "Status updated successfully — returns the updated site page"
|
|
8974
9168
|
},
|
|
8975
9169
|
"401" : {
|
|
8976
9170
|
"description" : "Unauthorized"
|
|
8977
9171
|
},
|
|
8978
9172
|
"404" : {
|
|
8979
|
-
"description" : "
|
|
9173
|
+
"description" : "Site page not found"
|
|
8980
9174
|
}
|
|
8981
9175
|
},
|
|
8982
|
-
"summary" : "
|
|
9176
|
+
"summary" : "Update knowledge site page status",
|
|
9177
|
+
"tags" : [ "knowledge" ]
|
|
9178
|
+
}
|
|
9179
|
+
},
|
|
9180
|
+
"/knowledge/{knowledgeId}/knowledge-site-pages" : {
|
|
9181
|
+
"get" : {
|
|
9182
|
+
"description" : "Retrieves all site pages associated with a knowledge base",
|
|
9183
|
+
"operationId" : "getKnowledgeSitePages",
|
|
9184
|
+
"parameters" : [ {
|
|
9185
|
+
"description" : "ID of the knowledge base",
|
|
9186
|
+
"in" : "path",
|
|
9187
|
+
"name" : "knowledgeId",
|
|
9188
|
+
"required" : true,
|
|
9189
|
+
"schema" : {
|
|
9190
|
+
"type" : "string"
|
|
9191
|
+
}
|
|
9192
|
+
} ],
|
|
9193
|
+
"responses" : {
|
|
9194
|
+
"200" : {
|
|
9195
|
+
"content" : {
|
|
9196
|
+
"application/json" : {
|
|
9197
|
+
"schema" : {
|
|
9198
|
+
"items" : {
|
|
9199
|
+
"$ref" : "#/components/schemas/KnowledgeSitePage"
|
|
9200
|
+
},
|
|
9201
|
+
"type" : "array"
|
|
9202
|
+
}
|
|
9203
|
+
}
|
|
9204
|
+
},
|
|
9205
|
+
"description" : "Site pages retrieved successfully"
|
|
9206
|
+
},
|
|
9207
|
+
"401" : {
|
|
9208
|
+
"description" : "Unauthorized"
|
|
9209
|
+
},
|
|
9210
|
+
"404" : {
|
|
9211
|
+
"description" : "Knowledge base not found"
|
|
9212
|
+
}
|
|
9213
|
+
},
|
|
9214
|
+
"summary" : "Get site pages for a knowledge base",
|
|
8983
9215
|
"tags" : [ "knowledge" ]
|
|
8984
9216
|
}
|
|
8985
9217
|
},
|
|
@@ -11944,6 +12176,24 @@
|
|
|
11944
12176
|
"type" : "string"
|
|
11945
12177
|
}
|
|
11946
12178
|
},
|
|
12179
|
+
"knowledgeSitePageIdPath" : {
|
|
12180
|
+
"description" : "ID of the knowledge site page",
|
|
12181
|
+
"in" : "path",
|
|
12182
|
+
"name" : "knowledgeSitePageId",
|
|
12183
|
+
"required" : true,
|
|
12184
|
+
"schema" : {
|
|
12185
|
+
"type" : "string"
|
|
12186
|
+
}
|
|
12187
|
+
},
|
|
12188
|
+
"knowledgeIdPath" : {
|
|
12189
|
+
"description" : "ID of the knowledge base",
|
|
12190
|
+
"in" : "path",
|
|
12191
|
+
"name" : "knowledgeId",
|
|
12192
|
+
"required" : true,
|
|
12193
|
+
"schema" : {
|
|
12194
|
+
"type" : "string"
|
|
12195
|
+
}
|
|
12196
|
+
},
|
|
11947
12197
|
"toolIdPath" : {
|
|
11948
12198
|
"description" : "Tool identifier",
|
|
11949
12199
|
"in" : "path",
|
|
@@ -12054,10 +12304,15 @@
|
|
|
12054
12304
|
"updatedAt" : {
|
|
12055
12305
|
"type" : "string"
|
|
12056
12306
|
},
|
|
12307
|
+
"status" : {
|
|
12308
|
+
"$ref" : "#/components/schemas/FileStatus"
|
|
12309
|
+
},
|
|
12057
12310
|
"url" : {
|
|
12311
|
+
"description" : "URL publique de l'image. Toujours renseignée par le backend : soit stockée (MongoDB), soit dérivée de `key` à la lecture (PostgreSQL).",
|
|
12058
12312
|
"type" : "string"
|
|
12059
12313
|
}
|
|
12060
12314
|
},
|
|
12315
|
+
"required" : [ "createdAt", "id", "key", "knowledgeBaseId", "name", "status", "url" ],
|
|
12061
12316
|
"type" : "object"
|
|
12062
12317
|
},
|
|
12063
12318
|
"KnowledgeBase" : {
|
|
@@ -12068,6 +12323,11 @@
|
|
|
12068
12323
|
"name" : {
|
|
12069
12324
|
"type" : "string"
|
|
12070
12325
|
},
|
|
12326
|
+
"indexName" : {
|
|
12327
|
+
"description" : "Nom de la collection/classe du vector store. Legacy : la source de vérité est `modules.<type>.configuration.indexName`.",
|
|
12328
|
+
"nullable" : true,
|
|
12329
|
+
"type" : "string"
|
|
12330
|
+
},
|
|
12071
12331
|
"createdAt" : {
|
|
12072
12332
|
"type" : "string"
|
|
12073
12333
|
},
|
|
@@ -12083,43 +12343,9 @@
|
|
|
12083
12343
|
},
|
|
12084
12344
|
"type" : "array"
|
|
12085
12345
|
},
|
|
12086
|
-
"isTemplate" : {
|
|
12087
|
-
"description" : "DEPRECATED",
|
|
12088
|
-
"type" : "boolean"
|
|
12089
|
-
},
|
|
12090
|
-
"privacy" : {
|
|
12091
|
-
"$ref" : "#/components/schemas/KnowledgeBasePrivacy"
|
|
12092
|
-
},
|
|
12093
|
-
"role" : {
|
|
12094
|
-
"type" : "string"
|
|
12095
|
-
},
|
|
12096
|
-
"description" : {
|
|
12097
|
-
"type" : "string"
|
|
12098
|
-
},
|
|
12099
|
-
"picture" : {
|
|
12100
|
-
"type" : "string"
|
|
12101
|
-
},
|
|
12102
|
-
"template" : {
|
|
12103
|
-
"type" : "string"
|
|
12104
|
-
},
|
|
12105
|
-
"agentType" : {
|
|
12106
|
-
"type" : "string"
|
|
12107
|
-
},
|
|
12108
12346
|
"modules" : {
|
|
12109
12347
|
"additionalProperties" : true,
|
|
12110
12348
|
"type" : "object"
|
|
12111
|
-
},
|
|
12112
|
-
"files" : {
|
|
12113
|
-
"items" : {
|
|
12114
|
-
"$ref" : "#/components/schemas/KnowledgeBase_files_inner"
|
|
12115
|
-
},
|
|
12116
|
-
"type" : "array"
|
|
12117
|
-
},
|
|
12118
|
-
"status" : {
|
|
12119
|
-
"type" : "string"
|
|
12120
|
-
},
|
|
12121
|
-
"indexed" : {
|
|
12122
|
-
"type" : "boolean"
|
|
12123
12349
|
}
|
|
12124
12350
|
},
|
|
12125
12351
|
"required" : [ "authorizedAgents", "createdAt", "id", "name" ],
|
|
@@ -13381,7 +13607,7 @@
|
|
|
13381
13607
|
"type" : "string"
|
|
13382
13608
|
},
|
|
13383
13609
|
"knowledgeType" : {
|
|
13384
|
-
"enum" : [ "file", "website" ],
|
|
13610
|
+
"enum" : [ "file", "website", "image" ],
|
|
13385
13611
|
"type" : "string"
|
|
13386
13612
|
},
|
|
13387
13613
|
"isFAQ" : {
|
|
@@ -13409,7 +13635,8 @@
|
|
|
13409
13635
|
"type" : "string"
|
|
13410
13636
|
},
|
|
13411
13637
|
"formData" : {
|
|
13412
|
-
"
|
|
13638
|
+
"additionalProperties" : true,
|
|
13639
|
+
"type" : "object"
|
|
13413
13640
|
},
|
|
13414
13641
|
"createdAt" : {
|
|
13415
13642
|
"type" : "string"
|
|
@@ -15032,20 +15259,28 @@
|
|
|
15032
15259
|
"type" : "object"
|
|
15033
15260
|
},
|
|
15034
15261
|
"ChunkCreateRequest" : {
|
|
15262
|
+
"additionalProperties" : false,
|
|
15035
15263
|
"properties" : {
|
|
15036
15264
|
"name" : {
|
|
15265
|
+
"maxLength" : 100,
|
|
15266
|
+
"minLength" : 1,
|
|
15037
15267
|
"type" : "string"
|
|
15038
15268
|
},
|
|
15039
15269
|
"version" : {
|
|
15270
|
+
"maxLength" : 25,
|
|
15271
|
+
"minLength" : 1,
|
|
15040
15272
|
"type" : "string"
|
|
15041
15273
|
},
|
|
15042
15274
|
"content" : {
|
|
15043
15275
|
"items" : {
|
|
15044
15276
|
"$ref" : "#/components/schemas/ChunkCreateRequest_content_inner"
|
|
15045
15277
|
},
|
|
15278
|
+
"maxItems" : 100,
|
|
15279
|
+
"minItems" : 1,
|
|
15046
15280
|
"type" : "array"
|
|
15047
15281
|
}
|
|
15048
15282
|
},
|
|
15283
|
+
"required" : [ "content", "name", "version" ],
|
|
15049
15284
|
"type" : "object"
|
|
15050
15285
|
},
|
|
15051
15286
|
"ChunkCreateResponse" : {
|
|
@@ -16245,46 +16480,125 @@
|
|
|
16245
16480
|
},
|
|
16246
16481
|
"type" : "array"
|
|
16247
16482
|
},
|
|
16248
|
-
"files" : {
|
|
16249
|
-
"items" : {
|
|
16250
|
-
"$ref" : "#/components/schemas/KnowledgeFileSummary"
|
|
16251
|
-
},
|
|
16252
|
-
"type" : "array"
|
|
16483
|
+
"files" : {
|
|
16484
|
+
"items" : {
|
|
16485
|
+
"$ref" : "#/components/schemas/KnowledgeFileSummary"
|
|
16486
|
+
},
|
|
16487
|
+
"type" : "array"
|
|
16488
|
+
}
|
|
16489
|
+
},
|
|
16490
|
+
"required" : [ "files", "id", "indexed", "name", "organisationId" ],
|
|
16491
|
+
"type" : "object"
|
|
16492
|
+
},
|
|
16493
|
+
"KnowledgeFileSummary" : {
|
|
16494
|
+
"properties" : {
|
|
16495
|
+
"id" : {
|
|
16496
|
+
"type" : "string"
|
|
16497
|
+
},
|
|
16498
|
+
"name" : {
|
|
16499
|
+
"type" : "string"
|
|
16500
|
+
},
|
|
16501
|
+
"knowledgeBaseId" : {
|
|
16502
|
+
"type" : "string"
|
|
16503
|
+
}
|
|
16504
|
+
},
|
|
16505
|
+
"required" : [ "id", "name" ],
|
|
16506
|
+
"type" : "object"
|
|
16507
|
+
},
|
|
16508
|
+
"CreateKnowledgeBaseRequest" : {
|
|
16509
|
+
"properties" : {
|
|
16510
|
+
"name" : {
|
|
16511
|
+
"type" : "string"
|
|
16512
|
+
},
|
|
16513
|
+
"authorizedAgents" : {
|
|
16514
|
+
"items" : {
|
|
16515
|
+
"type" : "string"
|
|
16516
|
+
},
|
|
16517
|
+
"type" : "array"
|
|
16518
|
+
},
|
|
16519
|
+
"vectorStoreType" : {
|
|
16520
|
+
"description" : "Défaut `weaviate` lorsque omis.",
|
|
16521
|
+
"enum" : [ "weaviate", "qdrant" ],
|
|
16522
|
+
"type" : "string"
|
|
16523
|
+
},
|
|
16524
|
+
"embeddingConfig" : {
|
|
16525
|
+
"$ref" : "#/components/schemas/CreateKnowledgeBaseRequest_embeddingConfig"
|
|
16253
16526
|
}
|
|
16254
16527
|
},
|
|
16255
|
-
"required" : [ "
|
|
16528
|
+
"required" : [ "name" ],
|
|
16256
16529
|
"type" : "object"
|
|
16257
16530
|
},
|
|
16258
|
-
"
|
|
16531
|
+
"CreateKnowledgeBaseResponse" : {
|
|
16259
16532
|
"properties" : {
|
|
16260
|
-
"
|
|
16533
|
+
"knowledgeBaseId" : {
|
|
16261
16534
|
"type" : "string"
|
|
16262
16535
|
},
|
|
16536
|
+
"vectorStoreType" : {
|
|
16537
|
+
"enum" : [ "weaviate", "qdrant" ],
|
|
16538
|
+
"type" : "string"
|
|
16539
|
+
}
|
|
16540
|
+
},
|
|
16541
|
+
"required" : [ "knowledgeBaseId", "vectorStoreType" ],
|
|
16542
|
+
"type" : "object"
|
|
16543
|
+
},
|
|
16544
|
+
"KnowledgeFileCreationRequest" : {
|
|
16545
|
+
"additionalProperties" : false,
|
|
16546
|
+
"properties" : {
|
|
16263
16547
|
"name" : {
|
|
16548
|
+
"maxLength" : 150,
|
|
16549
|
+
"minLength" : 1,
|
|
16264
16550
|
"type" : "string"
|
|
16265
16551
|
},
|
|
16266
|
-
"
|
|
16267
|
-
"
|
|
16552
|
+
"contentType" : {
|
|
16553
|
+
"description" : "MIME type of the file",
|
|
16554
|
+
"type" : "string"
|
|
16555
|
+
},
|
|
16556
|
+
"ext" : {
|
|
16557
|
+
"description" : "File extension",
|
|
16558
|
+
"maxLength" : 10,
|
|
16559
|
+
"minLength" : 1,
|
|
16560
|
+
"pattern" : "^[a-zA-Z0-9]{1,10}$",
|
|
16561
|
+
"type" : "string"
|
|
16562
|
+
},
|
|
16563
|
+
"hash" : {
|
|
16564
|
+
"description" : "File hash",
|
|
16565
|
+
"type" : "string"
|
|
16566
|
+
},
|
|
16567
|
+
"size" : {
|
|
16568
|
+
"description" : "File size in bytes",
|
|
16569
|
+
"maximum" : 1073741824,
|
|
16570
|
+
"minimum" : 1,
|
|
16571
|
+
"type" : "number"
|
|
16572
|
+
},
|
|
16573
|
+
"isActive" : {
|
|
16574
|
+
"type" : "boolean"
|
|
16575
|
+
},
|
|
16576
|
+
"isFAQ" : {
|
|
16577
|
+
"description" : "Whether the file is a FAQ document",
|
|
16578
|
+
"type" : "boolean"
|
|
16268
16579
|
}
|
|
16269
16580
|
},
|
|
16270
|
-
"required" : [ "
|
|
16581
|
+
"required" : [ "ext", "size" ],
|
|
16271
16582
|
"type" : "object"
|
|
16272
16583
|
},
|
|
16273
|
-
"
|
|
16584
|
+
"UploadedStatusUpdateRequest" : {
|
|
16585
|
+
"additionalProperties" : false,
|
|
16274
16586
|
"properties" : {
|
|
16275
16587
|
"status" : {
|
|
16276
|
-
"
|
|
16588
|
+
"enum" : [ "UPLOADED" ],
|
|
16589
|
+
"type" : "string"
|
|
16277
16590
|
}
|
|
16278
16591
|
},
|
|
16279
16592
|
"required" : [ "status" ],
|
|
16280
16593
|
"type" : "object"
|
|
16281
16594
|
},
|
|
16282
|
-
"FileStatus" : {
|
|
16283
|
-
"enum" : [ "SCRAPING", "PENDING", "UPLOADED", "PROCESSING", "INDEXED" ],
|
|
16284
|
-
"type" : "string"
|
|
16285
|
-
},
|
|
16286
16595
|
"KnowledgeBaseConfiguration" : {
|
|
16287
16596
|
"properties" : {
|
|
16597
|
+
"vectorStoreType" : {
|
|
16598
|
+
"description" : "Dérivé du module installé sur la knowledge base. Lecture seule : ce champ n'est pas accepté par le PUT.",
|
|
16599
|
+
"enum" : [ "weaviate", "qdrant" ],
|
|
16600
|
+
"type" : "string"
|
|
16601
|
+
},
|
|
16288
16602
|
"host" : {
|
|
16289
16603
|
"nullable" : true,
|
|
16290
16604
|
"type" : "string"
|
|
@@ -16369,6 +16683,102 @@
|
|
|
16369
16683
|
},
|
|
16370
16684
|
"type" : "object"
|
|
16371
16685
|
},
|
|
16686
|
+
"KnowledgeBaseConfigurationUpdateRequest" : {
|
|
16687
|
+
"additionalProperties" : false,
|
|
16688
|
+
"properties" : {
|
|
16689
|
+
"indexName" : {
|
|
16690
|
+
"type" : "string"
|
|
16691
|
+
},
|
|
16692
|
+
"host" : {
|
|
16693
|
+
"nullable" : true,
|
|
16694
|
+
"type" : "string"
|
|
16695
|
+
},
|
|
16696
|
+
"scheme" : {
|
|
16697
|
+
"enum" : [ "http", "https" ],
|
|
16698
|
+
"nullable" : true,
|
|
16699
|
+
"type" : "string"
|
|
16700
|
+
},
|
|
16701
|
+
"authentication" : {
|
|
16702
|
+
"$ref" : "#/components/schemas/KnowledgeBaseConfigurationUpdateRequest_authentication"
|
|
16703
|
+
},
|
|
16704
|
+
"emptyKnowledgeResult" : {
|
|
16705
|
+
"nullable" : true,
|
|
16706
|
+
"type" : "string"
|
|
16707
|
+
},
|
|
16708
|
+
"additionalInstructions" : {
|
|
16709
|
+
"nullable" : true,
|
|
16710
|
+
"type" : "string"
|
|
16711
|
+
},
|
|
16712
|
+
"fusionType" : {
|
|
16713
|
+
"enum" : [ "rankedFusion", "relativeScoreFusion" ],
|
|
16714
|
+
"nullable" : true,
|
|
16715
|
+
"type" : "string"
|
|
16716
|
+
},
|
|
16717
|
+
"scoreThreshold" : {
|
|
16718
|
+
"nullable" : true,
|
|
16719
|
+
"type" : "number"
|
|
16720
|
+
},
|
|
16721
|
+
"maxDocuments" : {
|
|
16722
|
+
"minimum" : 0,
|
|
16723
|
+
"nullable" : true,
|
|
16724
|
+
"type" : "number"
|
|
16725
|
+
},
|
|
16726
|
+
"maxRetrievalLength" : {
|
|
16727
|
+
"minimum" : 0,
|
|
16728
|
+
"nullable" : true,
|
|
16729
|
+
"type" : "number"
|
|
16730
|
+
},
|
|
16731
|
+
"isChunkingEnriched" : {
|
|
16732
|
+
"nullable" : true,
|
|
16733
|
+
"type" : "boolean"
|
|
16734
|
+
},
|
|
16735
|
+
"boostScore" : {
|
|
16736
|
+
"minimum" : 0,
|
|
16737
|
+
"nullable" : true,
|
|
16738
|
+
"type" : "number"
|
|
16739
|
+
},
|
|
16740
|
+
"toolDescription" : {
|
|
16741
|
+
"maxLength" : 500,
|
|
16742
|
+
"nullable" : true,
|
|
16743
|
+
"type" : "string"
|
|
16744
|
+
},
|
|
16745
|
+
"toolParametersQueryDescription" : {
|
|
16746
|
+
"maxLength" : 500,
|
|
16747
|
+
"nullable" : true,
|
|
16748
|
+
"type" : "string"
|
|
16749
|
+
},
|
|
16750
|
+
"vectorizerModel" : {
|
|
16751
|
+
"maxLength" : 100,
|
|
16752
|
+
"nullable" : true,
|
|
16753
|
+
"type" : "string"
|
|
16754
|
+
},
|
|
16755
|
+
"vectorizerModelDimensions" : {
|
|
16756
|
+
"nullable" : true,
|
|
16757
|
+
"type" : "number"
|
|
16758
|
+
},
|
|
16759
|
+
"embeddingProviderId" : {
|
|
16760
|
+
"maxLength" : 100,
|
|
16761
|
+
"nullable" : true,
|
|
16762
|
+
"type" : "string"
|
|
16763
|
+
},
|
|
16764
|
+
"embeddingModelId" : {
|
|
16765
|
+
"maxLength" : 100,
|
|
16766
|
+
"nullable" : true,
|
|
16767
|
+
"type" : "string"
|
|
16768
|
+
},
|
|
16769
|
+
"embeddingDimensions" : {
|
|
16770
|
+
"nullable" : true,
|
|
16771
|
+
"type" : "number"
|
|
16772
|
+
}
|
|
16773
|
+
},
|
|
16774
|
+
"required" : [ "indexName" ],
|
|
16775
|
+
"type" : "object"
|
|
16776
|
+
},
|
|
16777
|
+
"KnowledgeFile" : {
|
|
16778
|
+
"allOf" : [ {
|
|
16779
|
+
"$ref" : "#/components/schemas/File"
|
|
16780
|
+
} ]
|
|
16781
|
+
},
|
|
16372
16782
|
"KnowledgeSitePage" : {
|
|
16373
16783
|
"properties" : {
|
|
16374
16784
|
"id" : {
|
|
@@ -16439,21 +16849,6 @@
|
|
|
16439
16849
|
"required" : [ "ids" ],
|
|
16440
16850
|
"type" : "object"
|
|
16441
16851
|
},
|
|
16442
|
-
"KnowledgeFilePagePreview" : {
|
|
16443
|
-
"properties" : {
|
|
16444
|
-
"url" : {
|
|
16445
|
-
"type" : "string"
|
|
16446
|
-
},
|
|
16447
|
-
"key" : {
|
|
16448
|
-
"type" : "string"
|
|
16449
|
-
},
|
|
16450
|
-
"pageIndex" : {
|
|
16451
|
-
"type" : "integer"
|
|
16452
|
-
}
|
|
16453
|
-
},
|
|
16454
|
-
"required" : [ "pageIndex", "url" ],
|
|
16455
|
-
"type" : "object"
|
|
16456
|
-
},
|
|
16457
16852
|
"ToolCreateRequest" : {
|
|
16458
16853
|
"additionalProperties" : false,
|
|
16459
16854
|
"properties" : {
|
|
@@ -17280,8 +17675,8 @@
|
|
|
17280
17675
|
},
|
|
17281
17676
|
"type" : "array"
|
|
17282
17677
|
},
|
|
17283
|
-
"
|
|
17284
|
-
"enum" : [ "
|
|
17678
|
+
"FileStatus" : {
|
|
17679
|
+
"enum" : [ "SCRAPING", "PENDING", "UPLOADED", "PROCESSING", "INDEXED" ],
|
|
17285
17680
|
"type" : "string"
|
|
17286
17681
|
},
|
|
17287
17682
|
"HealthStatus" : {
|
|
@@ -17760,6 +18155,41 @@
|
|
|
17760
18155
|
"required" : [ "isActive" ],
|
|
17761
18156
|
"type" : "object"
|
|
17762
18157
|
},
|
|
18158
|
+
"knowledgeFileParsingCallback_request" : {
|
|
18159
|
+
"additionalProperties" : true,
|
|
18160
|
+
"properties" : {
|
|
18161
|
+
"success" : {
|
|
18162
|
+
"type" : "boolean"
|
|
18163
|
+
},
|
|
18164
|
+
"markdownKey" : {
|
|
18165
|
+
"nullable" : true,
|
|
18166
|
+
"type" : "string"
|
|
18167
|
+
},
|
|
18168
|
+
"markdown_object_name" : {
|
|
18169
|
+
"nullable" : true,
|
|
18170
|
+
"type" : "string"
|
|
18171
|
+
},
|
|
18172
|
+
"error" : {
|
|
18173
|
+
"nullable" : true,
|
|
18174
|
+
"type" : "string"
|
|
18175
|
+
}
|
|
18176
|
+
},
|
|
18177
|
+
"required" : [ "success" ],
|
|
18178
|
+
"type" : "object"
|
|
18179
|
+
},
|
|
18180
|
+
"deleteKnowledgeSitePage_200_response" : {
|
|
18181
|
+
"properties" : {
|
|
18182
|
+
"message" : {
|
|
18183
|
+
"type" : "string"
|
|
18184
|
+
},
|
|
18185
|
+
"lastPage" : {
|
|
18186
|
+
"description" : "Présent et à `true` quand la connaissance entière a été supprimée",
|
|
18187
|
+
"type" : "boolean"
|
|
18188
|
+
}
|
|
18189
|
+
},
|
|
18190
|
+
"required" : [ "message" ],
|
|
18191
|
+
"type" : "object"
|
|
18192
|
+
},
|
|
17763
18193
|
"updateToolStaticCredentials_request" : {
|
|
17764
18194
|
"properties" : {
|
|
17765
18195
|
"bearerToken" : {
|
|
@@ -17924,21 +18354,6 @@
|
|
|
17924
18354
|
"required" : [ "message", "updated" ],
|
|
17925
18355
|
"type" : "object"
|
|
17926
18356
|
},
|
|
17927
|
-
"KnowledgeBase_files_inner" : {
|
|
17928
|
-
"properties" : {
|
|
17929
|
-
"id" : {
|
|
17930
|
-
"type" : "string"
|
|
17931
|
-
},
|
|
17932
|
-
"name" : {
|
|
17933
|
-
"type" : "string"
|
|
17934
|
-
},
|
|
17935
|
-
"knowledgeBaseId" : {
|
|
17936
|
-
"type" : "string"
|
|
17937
|
-
}
|
|
17938
|
-
},
|
|
17939
|
-
"required" : [ "id", "knowledgeBaseId", "name" ],
|
|
17940
|
-
"type" : "object"
|
|
17941
|
-
},
|
|
17942
18357
|
"HealthCheckResponse_components_api" : {
|
|
17943
18358
|
"properties" : {
|
|
17944
18359
|
"status" : {
|
|
@@ -18136,17 +18551,6 @@
|
|
|
18136
18551
|
"required" : [ "x", "y" ],
|
|
18137
18552
|
"type" : "object"
|
|
18138
18553
|
},
|
|
18139
|
-
"File_formData" : {
|
|
18140
|
-
"properties" : {
|
|
18141
|
-
"fileName" : {
|
|
18142
|
-
"type" : "string"
|
|
18143
|
-
},
|
|
18144
|
-
"contentType" : {
|
|
18145
|
-
"type" : "string"
|
|
18146
|
-
}
|
|
18147
|
-
},
|
|
18148
|
-
"type" : "object"
|
|
18149
|
-
},
|
|
18150
18554
|
"ChatMessage_audio_inner" : {
|
|
18151
18555
|
"properties" : {
|
|
18152
18556
|
"sequence" : {
|
|
@@ -18648,21 +19052,29 @@
|
|
|
18648
19052
|
"type" : "object"
|
|
18649
19053
|
},
|
|
18650
19054
|
"ChunkCreateRequest_content_inner" : {
|
|
19055
|
+
"additionalProperties" : false,
|
|
18651
19056
|
"properties" : {
|
|
18652
19057
|
"fileName" : {
|
|
19058
|
+
"maxLength" : 100,
|
|
19059
|
+
"minLength" : 1,
|
|
18653
19060
|
"type" : "string"
|
|
18654
19061
|
},
|
|
18655
19062
|
"contentType" : {
|
|
18656
19063
|
"type" : "string"
|
|
18657
19064
|
},
|
|
18658
19065
|
"ext" : {
|
|
19066
|
+
"maxLength" : 10,
|
|
19067
|
+
"minLength" : 1,
|
|
19068
|
+
"pattern" : "^[a-zA-Z0-9]{1,10}$",
|
|
18659
19069
|
"type" : "string"
|
|
18660
19070
|
},
|
|
18661
19071
|
"size" : {
|
|
19072
|
+
"maximum" : 1073741824,
|
|
19073
|
+
"minimum" : 1,
|
|
18662
19074
|
"type" : "number"
|
|
18663
19075
|
}
|
|
18664
19076
|
},
|
|
18665
|
-
"required" : [ "contentType", "ext", "
|
|
19077
|
+
"required" : [ "contentType", "ext", "size" ],
|
|
18666
19078
|
"type" : "object"
|
|
18667
19079
|
},
|
|
18668
19080
|
"ConversationSummary_agent_engine_provider" : {
|
|
@@ -18827,15 +19239,21 @@
|
|
|
18827
19239
|
"required" : [ "agentId", "agentName", "usage" ],
|
|
18828
19240
|
"type" : "object"
|
|
18829
19241
|
},
|
|
18830
|
-
"
|
|
18831
|
-
"
|
|
18832
|
-
|
|
18833
|
-
|
|
18834
|
-
"items" : {
|
|
19242
|
+
"CreateKnowledgeBaseRequest_embeddingConfig" : {
|
|
19243
|
+
"description" : "Obligatoire lorsque `vectorStoreType` vaut `qdrant`.",
|
|
19244
|
+
"properties" : {
|
|
19245
|
+
"providerId" : {
|
|
18835
19246
|
"type" : "string"
|
|
18836
19247
|
},
|
|
18837
|
-
"
|
|
18838
|
-
|
|
19248
|
+
"modelId" : {
|
|
19249
|
+
"type" : "string"
|
|
19250
|
+
},
|
|
19251
|
+
"dimensions" : {
|
|
19252
|
+
"type" : "number"
|
|
19253
|
+
}
|
|
19254
|
+
},
|
|
19255
|
+
"required" : [ "dimensions", "modelId", "providerId" ],
|
|
19256
|
+
"type" : "object"
|
|
18839
19257
|
},
|
|
18840
19258
|
"KnowledgeBaseConfiguration_authentication_oneOf" : {
|
|
18841
19259
|
"nullable" : true,
|
|
@@ -18859,6 +19277,28 @@
|
|
|
18859
19277
|
"$ref" : "#/components/schemas/KnowledgeBaseConfiguration_authentication_oneOf"
|
|
18860
19278
|
} ]
|
|
18861
19279
|
},
|
|
19280
|
+
"KnowledgeBaseConfigurationUpdateRequest_authentication_oneOf" : {
|
|
19281
|
+
"nullable" : true,
|
|
19282
|
+
"properties" : {
|
|
19283
|
+
"type" : {
|
|
19284
|
+
"enum" : [ "API_KEY" ],
|
|
19285
|
+
"type" : "string"
|
|
19286
|
+
},
|
|
19287
|
+
"apiKey" : {
|
|
19288
|
+
"type" : "string"
|
|
19289
|
+
}
|
|
19290
|
+
},
|
|
19291
|
+
"type" : "object"
|
|
19292
|
+
},
|
|
19293
|
+
"KnowledgeBaseConfigurationUpdateRequest_authentication" : {
|
|
19294
|
+
"oneOf" : [ {
|
|
19295
|
+
"enum" : [ "NONE" ],
|
|
19296
|
+
"nullable" : true,
|
|
19297
|
+
"type" : "string"
|
|
19298
|
+
}, {
|
|
19299
|
+
"$ref" : "#/components/schemas/KnowledgeBaseConfigurationUpdateRequest_authentication_oneOf"
|
|
19300
|
+
} ]
|
|
19301
|
+
},
|
|
18862
19302
|
"ToolSecure_configuration" : {
|
|
18863
19303
|
"additionalProperties" : true,
|
|
18864
19304
|
"properties" : {
|