@breign/client 1.0.83 → 1.0.85
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 +73 -1
- package/dist/apis/KnowledgeApi.js +166 -0
- package/dist/apis/ToolsApi.d.ts +12 -1
- package/dist/apis/ToolsApi.js +27 -0
- package/dist/models/IntrospectMcpTool200ResponseUio.d.ts +48 -0
- package/dist/models/IntrospectMcpTool200ResponseUio.js +52 -0
- package/dist/models/KnowledgeBaseConfigurationAuthenticationOneOfUio.d.ts +45 -0
- package/dist/models/KnowledgeBaseConfigurationAuthenticationOneOfUio.js +57 -0
- package/dist/models/KnowledgeBaseConfigurationAuthenticationUio.d.ts +22 -0
- package/dist/models/KnowledgeBaseConfigurationAuthenticationUio.js +50 -0
- package/dist/models/KnowledgeBaseConfigurationUio.d.ts +151 -0
- package/dist/models/KnowledgeBaseConfigurationUio.js +98 -0
- package/dist/models/KnowledgeFilePagePreviewUio.d.ts +44 -0
- package/dist/models/KnowledgeFilePagePreviewUio.js +56 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/openapi.json +403 -0
- package/package.json +1 -1
package/dist/openapi.json
CHANGED
|
@@ -6084,6 +6084,185 @@
|
|
|
6084
6084
|
"tags" : [ "knowledge" ]
|
|
6085
6085
|
}
|
|
6086
6086
|
},
|
|
6087
|
+
"/knowledge-bases/{knowledgebaseId}/configuration" : {
|
|
6088
|
+
"get" : {
|
|
6089
|
+
"description" : "Returns the current configuration for a knowledge base",
|
|
6090
|
+
"operationId" : "getKnowledgeBaseConfiguration",
|
|
6091
|
+
"parameters" : [ {
|
|
6092
|
+
"description" : "ID of the knowledge base to retrieve",
|
|
6093
|
+
"in" : "path",
|
|
6094
|
+
"name" : "knowledgebaseId",
|
|
6095
|
+
"required" : true,
|
|
6096
|
+
"schema" : {
|
|
6097
|
+
"format" : "uuid",
|
|
6098
|
+
"type" : "string"
|
|
6099
|
+
}
|
|
6100
|
+
} ],
|
|
6101
|
+
"responses" : {
|
|
6102
|
+
"200" : {
|
|
6103
|
+
"content" : {
|
|
6104
|
+
"application/json" : {
|
|
6105
|
+
"schema" : {
|
|
6106
|
+
"$ref" : "#/components/schemas/KnowledgeBaseConfiguration"
|
|
6107
|
+
}
|
|
6108
|
+
}
|
|
6109
|
+
},
|
|
6110
|
+
"description" : "Configuration retrieved successfully"
|
|
6111
|
+
},
|
|
6112
|
+
"401" : {
|
|
6113
|
+
"description" : "Unauthorized"
|
|
6114
|
+
},
|
|
6115
|
+
"404" : {
|
|
6116
|
+
"description" : "Knowledge base not found"
|
|
6117
|
+
},
|
|
6118
|
+
"500" : {
|
|
6119
|
+
"description" : "Server error"
|
|
6120
|
+
}
|
|
6121
|
+
},
|
|
6122
|
+
"summary" : "Get knowledge base configuration",
|
|
6123
|
+
"tags" : [ "knowledge" ]
|
|
6124
|
+
},
|
|
6125
|
+
"put" : {
|
|
6126
|
+
"description" : "Updates the module configuration for a knowledge base",
|
|
6127
|
+
"operationId" : "updateKnowledgeBaseConfiguration",
|
|
6128
|
+
"parameters" : [ {
|
|
6129
|
+
"description" : "ID of the knowledge base to retrieve",
|
|
6130
|
+
"in" : "path",
|
|
6131
|
+
"name" : "knowledgebaseId",
|
|
6132
|
+
"required" : true,
|
|
6133
|
+
"schema" : {
|
|
6134
|
+
"format" : "uuid",
|
|
6135
|
+
"type" : "string"
|
|
6136
|
+
}
|
|
6137
|
+
} ],
|
|
6138
|
+
"requestBody" : {
|
|
6139
|
+
"content" : {
|
|
6140
|
+
"application/json" : {
|
|
6141
|
+
"schema" : {
|
|
6142
|
+
"$ref" : "#/components/schemas/KnowledgeBaseConfiguration"
|
|
6143
|
+
}
|
|
6144
|
+
}
|
|
6145
|
+
},
|
|
6146
|
+
"required" : true
|
|
6147
|
+
},
|
|
6148
|
+
"responses" : {
|
|
6149
|
+
"200" : {
|
|
6150
|
+
"content" : {
|
|
6151
|
+
"application/json" : {
|
|
6152
|
+
"schema" : {
|
|
6153
|
+
"additionalProperties" : true,
|
|
6154
|
+
"type" : "object"
|
|
6155
|
+
}
|
|
6156
|
+
}
|
|
6157
|
+
},
|
|
6158
|
+
"description" : "Configuration updated successfully"
|
|
6159
|
+
},
|
|
6160
|
+
"400" : {
|
|
6161
|
+
"description" : "Invalid configuration payload"
|
|
6162
|
+
},
|
|
6163
|
+
"401" : {
|
|
6164
|
+
"description" : "Unauthorized"
|
|
6165
|
+
},
|
|
6166
|
+
"404" : {
|
|
6167
|
+
"description" : "Knowledge base not found"
|
|
6168
|
+
},
|
|
6169
|
+
"500" : {
|
|
6170
|
+
"description" : "Server error"
|
|
6171
|
+
}
|
|
6172
|
+
},
|
|
6173
|
+
"summary" : "Update knowledge base configuration",
|
|
6174
|
+
"tags" : [ "knowledge" ]
|
|
6175
|
+
}
|
|
6176
|
+
},
|
|
6177
|
+
"/knowledge-files/{fileId}" : {
|
|
6178
|
+
"get" : {
|
|
6179
|
+
"description" : "Retrieves metadata for a specific knowledge file by file ID",
|
|
6180
|
+
"operationId" : "getKnowledgeFile",
|
|
6181
|
+
"parameters" : [ {
|
|
6182
|
+
"description" : "The ID of the file",
|
|
6183
|
+
"in" : "path",
|
|
6184
|
+
"name" : "fileId",
|
|
6185
|
+
"required" : true,
|
|
6186
|
+
"schema" : {
|
|
6187
|
+
"type" : "string"
|
|
6188
|
+
}
|
|
6189
|
+
} ],
|
|
6190
|
+
"responses" : {
|
|
6191
|
+
"200" : {
|
|
6192
|
+
"content" : {
|
|
6193
|
+
"application/json" : {
|
|
6194
|
+
"schema" : {
|
|
6195
|
+
"$ref" : "#/components/schemas/FileWithDownloadUrl"
|
|
6196
|
+
}
|
|
6197
|
+
}
|
|
6198
|
+
},
|
|
6199
|
+
"description" : "File details retrieved successfully"
|
|
6200
|
+
},
|
|
6201
|
+
"401" : {
|
|
6202
|
+
"description" : "Unauthorized"
|
|
6203
|
+
},
|
|
6204
|
+
"404" : {
|
|
6205
|
+
"description" : "File not found"
|
|
6206
|
+
},
|
|
6207
|
+
"500" : {
|
|
6208
|
+
"description" : "Server error"
|
|
6209
|
+
}
|
|
6210
|
+
},
|
|
6211
|
+
"summary" : "Get a specific knowledge file",
|
|
6212
|
+
"tags" : [ "knowledge" ]
|
|
6213
|
+
}
|
|
6214
|
+
},
|
|
6215
|
+
"/knowledge-files/{fileId}/status" : {
|
|
6216
|
+
"post" : {
|
|
6217
|
+
"description" : "Updates the status of a knowledge file and triggers indexing when uploaded",
|
|
6218
|
+
"operationId" : "updateKnowledgeFileStatus",
|
|
6219
|
+
"parameters" : [ {
|
|
6220
|
+
"description" : "The ID of the file",
|
|
6221
|
+
"in" : "path",
|
|
6222
|
+
"name" : "fileId",
|
|
6223
|
+
"required" : true,
|
|
6224
|
+
"schema" : {
|
|
6225
|
+
"type" : "string"
|
|
6226
|
+
}
|
|
6227
|
+
} ],
|
|
6228
|
+
"requestBody" : {
|
|
6229
|
+
"content" : {
|
|
6230
|
+
"application/json" : {
|
|
6231
|
+
"schema" : {
|
|
6232
|
+
"$ref" : "#/components/schemas/FileStatusUpdateRequest"
|
|
6233
|
+
}
|
|
6234
|
+
}
|
|
6235
|
+
},
|
|
6236
|
+
"required" : true
|
|
6237
|
+
},
|
|
6238
|
+
"responses" : {
|
|
6239
|
+
"200" : {
|
|
6240
|
+
"content" : {
|
|
6241
|
+
"application/json" : {
|
|
6242
|
+
"schema" : {
|
|
6243
|
+
"$ref" : "#/components/schemas/File"
|
|
6244
|
+
}
|
|
6245
|
+
}
|
|
6246
|
+
},
|
|
6247
|
+
"description" : "File status updated successfully"
|
|
6248
|
+
},
|
|
6249
|
+
"400" : {
|
|
6250
|
+
"description" : "Invalid status update"
|
|
6251
|
+
},
|
|
6252
|
+
"401" : {
|
|
6253
|
+
"description" : "Unauthorized"
|
|
6254
|
+
},
|
|
6255
|
+
"404" : {
|
|
6256
|
+
"description" : "File not found"
|
|
6257
|
+
},
|
|
6258
|
+
"500" : {
|
|
6259
|
+
"description" : "Server error"
|
|
6260
|
+
}
|
|
6261
|
+
},
|
|
6262
|
+
"summary" : "Update knowledge file status",
|
|
6263
|
+
"tags" : [ "knowledge" ]
|
|
6264
|
+
}
|
|
6265
|
+
},
|
|
6087
6266
|
"/knowledge-files/by-ids" : {
|
|
6088
6267
|
"post" : {
|
|
6089
6268
|
"description" : "Returns knowledge file summaries (id and name) for the given file IDs.",
|
|
@@ -6123,6 +6302,53 @@
|
|
|
6123
6302
|
"tags" : [ "knowledge" ]
|
|
6124
6303
|
}
|
|
6125
6304
|
},
|
|
6305
|
+
"/knowledge-files/{fileId}/page-preview" : {
|
|
6306
|
+
"get" : {
|
|
6307
|
+
"description" : "Returns a presigned URL to preview a specific page image (ColPali knowledge bases only).",
|
|
6308
|
+
"operationId" : "getKnowledgeFilePagePreview",
|
|
6309
|
+
"parameters" : [ {
|
|
6310
|
+
"description" : "The ID of the file",
|
|
6311
|
+
"in" : "path",
|
|
6312
|
+
"name" : "fileId",
|
|
6313
|
+
"required" : true,
|
|
6314
|
+
"schema" : {
|
|
6315
|
+
"type" : "string"
|
|
6316
|
+
}
|
|
6317
|
+
}, {
|
|
6318
|
+
"description" : "Zero-based page index.",
|
|
6319
|
+
"in" : "query",
|
|
6320
|
+
"name" : "pageIndex",
|
|
6321
|
+
"required" : true,
|
|
6322
|
+
"schema" : {
|
|
6323
|
+
"minimum" : 0,
|
|
6324
|
+
"type" : "integer"
|
|
6325
|
+
}
|
|
6326
|
+
} ],
|
|
6327
|
+
"responses" : {
|
|
6328
|
+
"200" : {
|
|
6329
|
+
"content" : {
|
|
6330
|
+
"application/json" : {
|
|
6331
|
+
"schema" : {
|
|
6332
|
+
"$ref" : "#/components/schemas/KnowledgeFilePagePreview"
|
|
6333
|
+
}
|
|
6334
|
+
}
|
|
6335
|
+
},
|
|
6336
|
+
"description" : "Presigned preview URL"
|
|
6337
|
+
},
|
|
6338
|
+
"400" : {
|
|
6339
|
+
"description" : "Invalid page index or unsupported knowledge base type"
|
|
6340
|
+
},
|
|
6341
|
+
"401" : {
|
|
6342
|
+
"description" : "Unauthorized"
|
|
6343
|
+
},
|
|
6344
|
+
"404" : {
|
|
6345
|
+
"description" : "File not found"
|
|
6346
|
+
}
|
|
6347
|
+
},
|
|
6348
|
+
"summary" : "Get a presigned preview URL for a knowledge file page",
|
|
6349
|
+
"tags" : [ "knowledge" ]
|
|
6350
|
+
}
|
|
6351
|
+
},
|
|
6126
6352
|
"/tools" : {
|
|
6127
6353
|
"get" : {
|
|
6128
6354
|
"description" : "Returns tools matching optional search query, with pagination",
|
|
@@ -6696,6 +6922,49 @@
|
|
|
6696
6922
|
"tags" : [ "tools" ]
|
|
6697
6923
|
}
|
|
6698
6924
|
},
|
|
6925
|
+
"/tools/{toolId}/mcp/introspect" : {
|
|
6926
|
+
"get" : {
|
|
6927
|
+
"operationId" : "introspectMcpTool",
|
|
6928
|
+
"parameters" : [ {
|
|
6929
|
+
"description" : "Tool identifier",
|
|
6930
|
+
"in" : "path",
|
|
6931
|
+
"name" : "toolId",
|
|
6932
|
+
"required" : true,
|
|
6933
|
+
"schema" : {
|
|
6934
|
+
"type" : "string"
|
|
6935
|
+
}
|
|
6936
|
+
} ],
|
|
6937
|
+
"responses" : {
|
|
6938
|
+
"200" : {
|
|
6939
|
+
"content" : {
|
|
6940
|
+
"application/json" : {
|
|
6941
|
+
"schema" : {
|
|
6942
|
+
"$ref" : "#/components/schemas/introspectMcpTool_200_response"
|
|
6943
|
+
}
|
|
6944
|
+
}
|
|
6945
|
+
},
|
|
6946
|
+
"description" : "MCP introspection result"
|
|
6947
|
+
},
|
|
6948
|
+
"400" : {
|
|
6949
|
+
"description" : "Tool configuration missing"
|
|
6950
|
+
},
|
|
6951
|
+
"401" : {
|
|
6952
|
+
"description" : "Unauthorized"
|
|
6953
|
+
},
|
|
6954
|
+
"403" : {
|
|
6955
|
+
"description" : "Forbidden"
|
|
6956
|
+
},
|
|
6957
|
+
"404" : {
|
|
6958
|
+
"description" : "Tool not found"
|
|
6959
|
+
},
|
|
6960
|
+
"500" : {
|
|
6961
|
+
"description" : "MCP introspection failed"
|
|
6962
|
+
}
|
|
6963
|
+
},
|
|
6964
|
+
"summary" : "Introspect an MCP tool server to refresh available actions",
|
|
6965
|
+
"tags" : [ "tools" ]
|
|
6966
|
+
}
|
|
6967
|
+
},
|
|
6699
6968
|
"/skills" : {
|
|
6700
6969
|
"get" : {
|
|
6701
6970
|
"description" : "Returns a paginated list of skills scoped to an organization",
|
|
@@ -11175,6 +11444,84 @@
|
|
|
11175
11444
|
"enum" : [ "SCRAPING", "PENDING", "UPLOADED", "PROCESSING", "INDEXED" ],
|
|
11176
11445
|
"type" : "string"
|
|
11177
11446
|
},
|
|
11447
|
+
"KnowledgeBaseConfiguration" : {
|
|
11448
|
+
"properties" : {
|
|
11449
|
+
"host" : {
|
|
11450
|
+
"nullable" : true,
|
|
11451
|
+
"type" : "string"
|
|
11452
|
+
},
|
|
11453
|
+
"scheme" : {
|
|
11454
|
+
"enum" : [ "http", "https" ],
|
|
11455
|
+
"nullable" : true,
|
|
11456
|
+
"type" : "string"
|
|
11457
|
+
},
|
|
11458
|
+
"authentication" : {
|
|
11459
|
+
"$ref" : "#/components/schemas/KnowledgeBaseConfiguration_authentication"
|
|
11460
|
+
},
|
|
11461
|
+
"indexName" : {
|
|
11462
|
+
"nullable" : true,
|
|
11463
|
+
"type" : "string"
|
|
11464
|
+
},
|
|
11465
|
+
"colpaliKnowledgeBaseId" : {
|
|
11466
|
+
"nullable" : true,
|
|
11467
|
+
"type" : "string"
|
|
11468
|
+
},
|
|
11469
|
+
"emptyKnowledgeResult" : {
|
|
11470
|
+
"nullable" : true,
|
|
11471
|
+
"type" : "string"
|
|
11472
|
+
},
|
|
11473
|
+
"additionalInstructions" : {
|
|
11474
|
+
"nullable" : true,
|
|
11475
|
+
"type" : "string"
|
|
11476
|
+
},
|
|
11477
|
+
"fusionType" : {
|
|
11478
|
+
"enum" : [ "rankedFusion", "relativeScoreFusion" ],
|
|
11479
|
+
"nullable" : true,
|
|
11480
|
+
"type" : "string"
|
|
11481
|
+
},
|
|
11482
|
+
"toolDescription" : {
|
|
11483
|
+
"nullable" : true,
|
|
11484
|
+
"type" : "string"
|
|
11485
|
+
},
|
|
11486
|
+
"toolParametersQueryDescription" : {
|
|
11487
|
+
"nullable" : true,
|
|
11488
|
+
"type" : "string"
|
|
11489
|
+
},
|
|
11490
|
+
"scoreThreshold" : {
|
|
11491
|
+
"nullable" : true,
|
|
11492
|
+
"type" : "number"
|
|
11493
|
+
},
|
|
11494
|
+
"maxDocuments" : {
|
|
11495
|
+
"nullable" : true,
|
|
11496
|
+
"type" : "number"
|
|
11497
|
+
},
|
|
11498
|
+
"maxRetrievalLength" : {
|
|
11499
|
+
"nullable" : true,
|
|
11500
|
+
"type" : "number"
|
|
11501
|
+
},
|
|
11502
|
+
"vectorizerModel" : {
|
|
11503
|
+
"nullable" : true,
|
|
11504
|
+
"type" : "string"
|
|
11505
|
+
},
|
|
11506
|
+
"vectorizerModelDimensions" : {
|
|
11507
|
+
"nullable" : true,
|
|
11508
|
+
"type" : "number"
|
|
11509
|
+
},
|
|
11510
|
+
"embeddingProviderId" : {
|
|
11511
|
+
"nullable" : true,
|
|
11512
|
+
"type" : "string"
|
|
11513
|
+
},
|
|
11514
|
+
"embeddingModelId" : {
|
|
11515
|
+
"nullable" : true,
|
|
11516
|
+
"type" : "string"
|
|
11517
|
+
},
|
|
11518
|
+
"embeddingDimensions" : {
|
|
11519
|
+
"nullable" : true,
|
|
11520
|
+
"type" : "number"
|
|
11521
|
+
}
|
|
11522
|
+
},
|
|
11523
|
+
"type" : "object"
|
|
11524
|
+
},
|
|
11178
11525
|
"KnowledgeFilesByIdsRequest" : {
|
|
11179
11526
|
"properties" : {
|
|
11180
11527
|
"ids" : {
|
|
@@ -11188,6 +11535,21 @@
|
|
|
11188
11535
|
"required" : [ "ids" ],
|
|
11189
11536
|
"type" : "object"
|
|
11190
11537
|
},
|
|
11538
|
+
"KnowledgeFilePagePreview" : {
|
|
11539
|
+
"properties" : {
|
|
11540
|
+
"url" : {
|
|
11541
|
+
"type" : "string"
|
|
11542
|
+
},
|
|
11543
|
+
"key" : {
|
|
11544
|
+
"type" : "string"
|
|
11545
|
+
},
|
|
11546
|
+
"pageIndex" : {
|
|
11547
|
+
"type" : "integer"
|
|
11548
|
+
}
|
|
11549
|
+
},
|
|
11550
|
+
"required" : [ "pageIndex", "url" ],
|
|
11551
|
+
"type" : "object"
|
|
11552
|
+
},
|
|
11191
11553
|
"ToolCreateRequest" : {
|
|
11192
11554
|
"additionalProperties" : false,
|
|
11193
11555
|
"properties" : {
|
|
@@ -11925,6 +12287,25 @@
|
|
|
11925
12287
|
"required" : [ "authorizationUrl" ],
|
|
11926
12288
|
"type" : "object"
|
|
11927
12289
|
},
|
|
12290
|
+
"introspectMcpTool_200_response" : {
|
|
12291
|
+
"properties" : {
|
|
12292
|
+
"introspection" : {
|
|
12293
|
+
"additionalProperties" : true,
|
|
12294
|
+
"type" : "object"
|
|
12295
|
+
},
|
|
12296
|
+
"definition" : {
|
|
12297
|
+
"additionalProperties" : true,
|
|
12298
|
+
"type" : "object"
|
|
12299
|
+
},
|
|
12300
|
+
"allowedTools" : {
|
|
12301
|
+
"items" : {
|
|
12302
|
+
"type" : "string"
|
|
12303
|
+
},
|
|
12304
|
+
"type" : "array"
|
|
12305
|
+
}
|
|
12306
|
+
},
|
|
12307
|
+
"type" : "object"
|
|
12308
|
+
},
|
|
11928
12309
|
"KnowledgeBase_files_inner" : {
|
|
11929
12310
|
"properties" : {
|
|
11930
12311
|
"id" : {
|
|
@@ -12594,6 +12975,28 @@
|
|
|
12594
12975
|
"type" : "array"
|
|
12595
12976
|
} ]
|
|
12596
12977
|
},
|
|
12978
|
+
"KnowledgeBaseConfiguration_authentication_oneOf" : {
|
|
12979
|
+
"nullable" : true,
|
|
12980
|
+
"properties" : {
|
|
12981
|
+
"apiKey" : {
|
|
12982
|
+
"type" : "string"
|
|
12983
|
+
},
|
|
12984
|
+
"type" : {
|
|
12985
|
+
"enum" : [ "API_KEY" ],
|
|
12986
|
+
"type" : "string"
|
|
12987
|
+
}
|
|
12988
|
+
},
|
|
12989
|
+
"type" : "object"
|
|
12990
|
+
},
|
|
12991
|
+
"KnowledgeBaseConfiguration_authentication" : {
|
|
12992
|
+
"oneOf" : [ {
|
|
12993
|
+
"enum" : [ "NONE" ],
|
|
12994
|
+
"nullable" : true,
|
|
12995
|
+
"type" : "string"
|
|
12996
|
+
}, {
|
|
12997
|
+
"$ref" : "#/components/schemas/KnowledgeBaseConfiguration_authentication_oneOf"
|
|
12998
|
+
} ]
|
|
12999
|
+
},
|
|
12597
13000
|
"ToolSecure_configuration" : {
|
|
12598
13001
|
"additionalProperties" : true,
|
|
12599
13002
|
"properties" : {
|