@nestbox-ai/admin 1.0.39 → 1.0.47
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/.openapi-generator/FILES +77 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +145 -2
- package/api.ts +331 -488
- package/common.ts +4 -4
- package/dist/api.d.ts +155 -227
- package/dist/api.js +329 -484
- package/dist/esm/api.d.ts +155 -227
- package/dist/esm/api.js +324 -479
- package/docs/AddProjectMemberData.md +22 -0
- package/docs/AddProjectMemberDto.md +26 -0
- package/docs/AddProjectMemberResponseDTO.md +20 -0
- package/docs/AllProjectResponse.md +30 -0
- package/docs/AllProjectResponseModel.md +22 -0
- package/docs/AuthApi.md +405 -0
- package/docs/BadRequestExceptionResponse.md +22 -0
- package/docs/BooleanResponseDTO.md +20 -0
- package/docs/ChunkFileRequestDTO.md +24 -0
- package/docs/CreateCollectionRequestDTO.md +22 -0
- package/docs/CreateDocumentRequestDTO.md +24 -0
- package/docs/CreateMachineAgentDto.md +42 -0
- package/docs/CreatePermissionDto.md +26 -0
- package/docs/CreateProjectDTO.md +22 -0
- package/docs/CreateProjectResponseDTO.md +20 -0
- package/docs/CreateProjectRoleResponseDto.md +20 -0
- package/docs/CreateResourceDto.md +22 -0
- package/docs/CreateRoleDTO.md +26 -0
- package/docs/CreateRoleDto.md +24 -0
- package/docs/CreateWebhookDto.md +22 -0
- package/docs/DeleteProjectDto.md +20 -0
- package/docs/DeleteProjectResponseDTO.md +20 -0
- package/docs/DeleteProjectRoleByIdResponseDto.md +20 -0
- package/docs/DocumentsApi.md +781 -0
- package/docs/EvaluationTestApi.md +299 -0
- package/docs/FatalErrorExceptionResponse.md +20 -0
- package/docs/ForbiddenExceptionResponse.md +20 -0
- package/docs/ForgetPasswordRequestDTO.md +20 -0
- package/docs/ForgetPasswordResponseDTO.md +20 -0
- package/docs/ForgetPasswordVerificationRequestDTO.md +20 -0
- package/docs/ForgetPasswordVerificationResponseDTO.md +20 -0
- package/docs/GetAllProjectDto.md +22 -0
- package/docs/GetAllProjectMemberResponse.md +22 -0
- package/docs/GetAllProjectMemberResponseDto.md +20 -0
- package/docs/GetAllProjectRoleResponseDto.md +20 -0
- package/docs/GetAllProjectsResponseDTO.md +20 -0
- package/docs/GetAllRoleDTO.md +32 -0
- package/docs/GetProjectByIDResponseDTO.md +20 -0
- package/docs/GetProjectRoleByIdResponseDto.md +20 -0
- package/docs/GetRoleDTO.md +26 -0
- package/docs/GetUserProjectRoleByRoleIdResponseDto.md +20 -0
- package/docs/LoginRequestDTO.md +22 -0
- package/docs/LoginResponseDTO.md +20 -0
- package/docs/MachineAgentApi.md +253 -0
- package/docs/MachineAgentLogsApi.md +131 -0
- package/docs/MachineInstancesApi.md +361 -0
- package/docs/MembersApi.md +204 -0
- package/docs/MessageResponseDTO.md +20 -0
- package/docs/MiscellaneousApi.md +169 -0
- package/docs/NotFoundExceptionResponse.md +20 -0
- package/docs/NotificationsApi.md +122 -0
- package/docs/OAuthLoginRequestDTO.md +26 -0
- package/docs/PermissionsDTO.md +28 -0
- package/docs/ProjectResponseModel.md +30 -0
- package/docs/ProjectsApi.md +301 -0
- package/docs/QueriesAndDocumentationsApi.md +125 -0
- package/docs/ResetPasswordRequestDTO.md +22 -0
- package/docs/ResourceDTO.md +24 -0
- package/docs/RoleDto.md +22 -0
- package/docs/RolesApi.md +372 -0
- package/docs/SignupRequestDTO.md +36 -0
- package/docs/SignupResponseDTO.md +20 -0
- package/docs/SimilaritySearchQueryDTO.md +26 -0
- package/docs/TeamMemberDto.md +26 -0
- package/docs/UnauthorizedExceptionResponse.md +20 -0
- package/docs/UpdateDocumentRequestDTO.md +22 -0
- package/docs/UpdatePermissionDto.md +28 -0
- package/docs/UpdateProjectByIDResponseDTO.md +20 -0
- package/docs/UpdateProjectByIdRequest.md +22 -0
- package/docs/UpdateProjectRoleResponseDto.md +20 -0
- package/docs/UpdateResourceDto.md +24 -0
- package/docs/UpdateRoleByIdDto.md +24 -0
- package/docs/UpdateRoleDTO.md +26 -0
- package/docs/UpdateTeamMemberRequestDTO.md +20 -0
- package/docs/UpdateTeamMemberStatusRequestDTO.md +22 -0
- package/docs/UserDto.md +32 -0
- package/docs/WebhookApi.md +243 -0
- package/package.json +1 -1
|
@@ -0,0 +1,781 @@
|
|
|
1
|
+
# DocumentsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**documentControllerAddDocToCollection**](#documentcontrolleradddoctocollection) | **POST** /projects/{projectId}/document/{instanceId}/collections/{collectionId}/docs | Add a new doc|
|
|
8
|
+
|[**documentControllerAddDocToCollectionFromFile**](#documentcontrolleradddoctocollectionfromfile) | **POST** /projects/{projectId}/document/{instanceId}/collections/{collectionId}/docs/file | Use a file to chunk and add to collection|
|
|
9
|
+
|[**documentControllerCreateCollection**](#documentcontrollercreatecollection) | **POST** /projects/{projectId}/document/{instanceId}/collections | Create collection|
|
|
10
|
+
|[**documentControllerDeleteCollection**](#documentcontrollerdeletecollection) | **DELETE** /projects/{projectId}/document/{instanceId}/collections/{collectionId} | Delete collection|
|
|
11
|
+
|[**documentControllerDeleteDocById**](#documentcontrollerdeletedocbyid) | **DELETE** /projects/{projectId}/document/{instanceId}/collections/{collectionId}/docs/{docId} | Delete doc by ID|
|
|
12
|
+
|[**documentControllerDeleteDocsFromCollection**](#documentcontrollerdeletedocsfromcollection) | **DELETE** /projects/{projectId}/document/{instanceId}/collections/{collectionId}/docs | Delete docs based on metadata filters|
|
|
13
|
+
|[**documentControllerGetAllCollections**](#documentcontrollergetallcollections) | **GET** /projects/{projectId}/document/{instanceId}/collections | Get all collections|
|
|
14
|
+
|[**documentControllerGetCollectionInfo**](#documentcontrollergetcollectioninfo) | **GET** /projects/{projectId}/document/{instanceId}/collections/{collectionId} | Get collection info|
|
|
15
|
+
|[**documentControllerGetDocById**](#documentcontrollergetdocbyid) | **GET** /projects/{projectId}/document/{instanceId}/collections/{collectionId}/docs/{docId} | Get doc by ID|
|
|
16
|
+
|[**documentControllerSimilaritySearch**](#documentcontrollersimilaritysearch) | **POST** /projects/{projectId}/document/{instanceId}/collections/{collectionId}/query | Similarity search query|
|
|
17
|
+
|[**documentControllerUpdateCollection**](#documentcontrollerupdatecollection) | **PUT** /projects/{projectId}/document/{instanceId}/collections/{collectionId} | Update collection|
|
|
18
|
+
|[**documentControllerUpdateDoc**](#documentcontrollerupdatedoc) | **PUT** /projects/{projectId}/document/{instanceId}/collections/{collectionId}/docs/{docId} | Update or upsert doc|
|
|
19
|
+
|
|
20
|
+
# **documentControllerAddDocToCollection**
|
|
21
|
+
> MessageResponseDTO documentControllerAddDocToCollection(createDocumentRequestDTO)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Example
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import {
|
|
28
|
+
DocumentsApi,
|
|
29
|
+
Configuration,
|
|
30
|
+
CreateDocumentRequestDTO
|
|
31
|
+
} from '@nestbox-ai/admin';
|
|
32
|
+
|
|
33
|
+
const configuration = new Configuration();
|
|
34
|
+
const apiInstance = new DocumentsApi(configuration);
|
|
35
|
+
|
|
36
|
+
let projectId: string; // (default to undefined)
|
|
37
|
+
let instanceId: string; // (default to undefined)
|
|
38
|
+
let collectionId: string; // (default to undefined)
|
|
39
|
+
let createDocumentRequestDTO: CreateDocumentRequestDTO; //
|
|
40
|
+
|
|
41
|
+
const { status, data } = await apiInstance.documentControllerAddDocToCollection(
|
|
42
|
+
projectId,
|
|
43
|
+
instanceId,
|
|
44
|
+
collectionId,
|
|
45
|
+
createDocumentRequestDTO
|
|
46
|
+
);
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Parameters
|
|
50
|
+
|
|
51
|
+
|Name | Type | Description | Notes|
|
|
52
|
+
|------------- | ------------- | ------------- | -------------|
|
|
53
|
+
| **createDocumentRequestDTO** | **CreateDocumentRequestDTO**| | |
|
|
54
|
+
| **projectId** | [**string**] | | defaults to undefined|
|
|
55
|
+
| **instanceId** | [**string**] | | defaults to undefined|
|
|
56
|
+
| **collectionId** | [**string**] | | defaults to undefined|
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### Return type
|
|
60
|
+
|
|
61
|
+
**MessageResponseDTO**
|
|
62
|
+
|
|
63
|
+
### Authorization
|
|
64
|
+
|
|
65
|
+
No authorization required
|
|
66
|
+
|
|
67
|
+
### HTTP request headers
|
|
68
|
+
|
|
69
|
+
- **Content-Type**: application/json
|
|
70
|
+
- **Accept**: application/json
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
### HTTP response details
|
|
74
|
+
| Status code | Description | Response headers |
|
|
75
|
+
|-------------|-------------|------------------|
|
|
76
|
+
|**200** | | - |
|
|
77
|
+
|**400** | | - |
|
|
78
|
+
|**401** | | - |
|
|
79
|
+
|**403** | | - |
|
|
80
|
+
|**404** | | - |
|
|
81
|
+
|**500** | | - |
|
|
82
|
+
|
|
83
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
84
|
+
|
|
85
|
+
# **documentControllerAddDocToCollectionFromFile**
|
|
86
|
+
> MessageResponseDTO documentControllerAddDocToCollectionFromFile(chunkFileRequestDTO)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### Example
|
|
90
|
+
|
|
91
|
+
```typescript
|
|
92
|
+
import {
|
|
93
|
+
DocumentsApi,
|
|
94
|
+
Configuration,
|
|
95
|
+
ChunkFileRequestDTO
|
|
96
|
+
} from '@nestbox-ai/admin';
|
|
97
|
+
|
|
98
|
+
const configuration = new Configuration();
|
|
99
|
+
const apiInstance = new DocumentsApi(configuration);
|
|
100
|
+
|
|
101
|
+
let projectId: string; // (default to undefined)
|
|
102
|
+
let instanceId: string; // (default to undefined)
|
|
103
|
+
let collectionId: string; // (default to undefined)
|
|
104
|
+
let chunkFileRequestDTO: ChunkFileRequestDTO; //
|
|
105
|
+
|
|
106
|
+
const { status, data } = await apiInstance.documentControllerAddDocToCollectionFromFile(
|
|
107
|
+
projectId,
|
|
108
|
+
instanceId,
|
|
109
|
+
collectionId,
|
|
110
|
+
chunkFileRequestDTO
|
|
111
|
+
);
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Parameters
|
|
115
|
+
|
|
116
|
+
|Name | Type | Description | Notes|
|
|
117
|
+
|------------- | ------------- | ------------- | -------------|
|
|
118
|
+
| **chunkFileRequestDTO** | **ChunkFileRequestDTO**| | |
|
|
119
|
+
| **projectId** | [**string**] | | defaults to undefined|
|
|
120
|
+
| **instanceId** | [**string**] | | defaults to undefined|
|
|
121
|
+
| **collectionId** | [**string**] | | defaults to undefined|
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
### Return type
|
|
125
|
+
|
|
126
|
+
**MessageResponseDTO**
|
|
127
|
+
|
|
128
|
+
### Authorization
|
|
129
|
+
|
|
130
|
+
No authorization required
|
|
131
|
+
|
|
132
|
+
### HTTP request headers
|
|
133
|
+
|
|
134
|
+
- **Content-Type**: application/json
|
|
135
|
+
- **Accept**: application/json
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
### HTTP response details
|
|
139
|
+
| Status code | Description | Response headers |
|
|
140
|
+
|-------------|-------------|------------------|
|
|
141
|
+
|**200** | | - |
|
|
142
|
+
|**400** | | - |
|
|
143
|
+
|**401** | | - |
|
|
144
|
+
|**403** | | - |
|
|
145
|
+
|**404** | | - |
|
|
146
|
+
|**500** | | - |
|
|
147
|
+
|
|
148
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
149
|
+
|
|
150
|
+
# **documentControllerCreateCollection**
|
|
151
|
+
> MessageResponseDTO documentControllerCreateCollection(createCollectionRequestDTO)
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
### Example
|
|
155
|
+
|
|
156
|
+
```typescript
|
|
157
|
+
import {
|
|
158
|
+
DocumentsApi,
|
|
159
|
+
Configuration,
|
|
160
|
+
CreateCollectionRequestDTO
|
|
161
|
+
} from '@nestbox-ai/admin';
|
|
162
|
+
|
|
163
|
+
const configuration = new Configuration();
|
|
164
|
+
const apiInstance = new DocumentsApi(configuration);
|
|
165
|
+
|
|
166
|
+
let projectId: string; // (default to undefined)
|
|
167
|
+
let instanceId: string; // (default to undefined)
|
|
168
|
+
let createCollectionRequestDTO: CreateCollectionRequestDTO; //
|
|
169
|
+
|
|
170
|
+
const { status, data } = await apiInstance.documentControllerCreateCollection(
|
|
171
|
+
projectId,
|
|
172
|
+
instanceId,
|
|
173
|
+
createCollectionRequestDTO
|
|
174
|
+
);
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### Parameters
|
|
178
|
+
|
|
179
|
+
|Name | Type | Description | Notes|
|
|
180
|
+
|------------- | ------------- | ------------- | -------------|
|
|
181
|
+
| **createCollectionRequestDTO** | **CreateCollectionRequestDTO**| | |
|
|
182
|
+
| **projectId** | [**string**] | | defaults to undefined|
|
|
183
|
+
| **instanceId** | [**string**] | | defaults to undefined|
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
### Return type
|
|
187
|
+
|
|
188
|
+
**MessageResponseDTO**
|
|
189
|
+
|
|
190
|
+
### Authorization
|
|
191
|
+
|
|
192
|
+
No authorization required
|
|
193
|
+
|
|
194
|
+
### HTTP request headers
|
|
195
|
+
|
|
196
|
+
- **Content-Type**: application/json
|
|
197
|
+
- **Accept**: application/json
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
### HTTP response details
|
|
201
|
+
| Status code | Description | Response headers |
|
|
202
|
+
|-------------|-------------|------------------|
|
|
203
|
+
|**200** | | - |
|
|
204
|
+
|**400** | | - |
|
|
205
|
+
|**401** | | - |
|
|
206
|
+
|**403** | | - |
|
|
207
|
+
|**404** | | - |
|
|
208
|
+
|**500** | | - |
|
|
209
|
+
|
|
210
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
211
|
+
|
|
212
|
+
# **documentControllerDeleteCollection**
|
|
213
|
+
> MessageResponseDTO documentControllerDeleteCollection()
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
### Example
|
|
217
|
+
|
|
218
|
+
```typescript
|
|
219
|
+
import {
|
|
220
|
+
DocumentsApi,
|
|
221
|
+
Configuration
|
|
222
|
+
} from '@nestbox-ai/admin';
|
|
223
|
+
|
|
224
|
+
const configuration = new Configuration();
|
|
225
|
+
const apiInstance = new DocumentsApi(configuration);
|
|
226
|
+
|
|
227
|
+
let projectId: string; // (default to undefined)
|
|
228
|
+
let instanceId: string; // (default to undefined)
|
|
229
|
+
let collectionId: string; // (default to undefined)
|
|
230
|
+
|
|
231
|
+
const { status, data } = await apiInstance.documentControllerDeleteCollection(
|
|
232
|
+
projectId,
|
|
233
|
+
instanceId,
|
|
234
|
+
collectionId
|
|
235
|
+
);
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
### Parameters
|
|
239
|
+
|
|
240
|
+
|Name | Type | Description | Notes|
|
|
241
|
+
|------------- | ------------- | ------------- | -------------|
|
|
242
|
+
| **projectId** | [**string**] | | defaults to undefined|
|
|
243
|
+
| **instanceId** | [**string**] | | defaults to undefined|
|
|
244
|
+
| **collectionId** | [**string**] | | defaults to undefined|
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
### Return type
|
|
248
|
+
|
|
249
|
+
**MessageResponseDTO**
|
|
250
|
+
|
|
251
|
+
### Authorization
|
|
252
|
+
|
|
253
|
+
No authorization required
|
|
254
|
+
|
|
255
|
+
### HTTP request headers
|
|
256
|
+
|
|
257
|
+
- **Content-Type**: Not defined
|
|
258
|
+
- **Accept**: application/json
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
### HTTP response details
|
|
262
|
+
| Status code | Description | Response headers |
|
|
263
|
+
|-------------|-------------|------------------|
|
|
264
|
+
|**200** | | - |
|
|
265
|
+
|**400** | | - |
|
|
266
|
+
|**401** | | - |
|
|
267
|
+
|**403** | | - |
|
|
268
|
+
|**404** | | - |
|
|
269
|
+
|**500** | | - |
|
|
270
|
+
|
|
271
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
272
|
+
|
|
273
|
+
# **documentControllerDeleteDocById**
|
|
274
|
+
> MessageResponseDTO documentControllerDeleteDocById()
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
### Example
|
|
278
|
+
|
|
279
|
+
```typescript
|
|
280
|
+
import {
|
|
281
|
+
DocumentsApi,
|
|
282
|
+
Configuration
|
|
283
|
+
} from '@nestbox-ai/admin';
|
|
284
|
+
|
|
285
|
+
const configuration = new Configuration();
|
|
286
|
+
const apiInstance = new DocumentsApi(configuration);
|
|
287
|
+
|
|
288
|
+
let projectId: string; // (default to undefined)
|
|
289
|
+
let instanceId: string; // (default to undefined)
|
|
290
|
+
let collectionId: string; // (default to undefined)
|
|
291
|
+
let docId: string; // (default to undefined)
|
|
292
|
+
|
|
293
|
+
const { status, data } = await apiInstance.documentControllerDeleteDocById(
|
|
294
|
+
projectId,
|
|
295
|
+
instanceId,
|
|
296
|
+
collectionId,
|
|
297
|
+
docId
|
|
298
|
+
);
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
### Parameters
|
|
302
|
+
|
|
303
|
+
|Name | Type | Description | Notes|
|
|
304
|
+
|------------- | ------------- | ------------- | -------------|
|
|
305
|
+
| **projectId** | [**string**] | | defaults to undefined|
|
|
306
|
+
| **instanceId** | [**string**] | | defaults to undefined|
|
|
307
|
+
| **collectionId** | [**string**] | | defaults to undefined|
|
|
308
|
+
| **docId** | [**string**] | | defaults to undefined|
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
### Return type
|
|
312
|
+
|
|
313
|
+
**MessageResponseDTO**
|
|
314
|
+
|
|
315
|
+
### Authorization
|
|
316
|
+
|
|
317
|
+
No authorization required
|
|
318
|
+
|
|
319
|
+
### HTTP request headers
|
|
320
|
+
|
|
321
|
+
- **Content-Type**: Not defined
|
|
322
|
+
- **Accept**: application/json
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
### HTTP response details
|
|
326
|
+
| Status code | Description | Response headers |
|
|
327
|
+
|-------------|-------------|------------------|
|
|
328
|
+
|**200** | | - |
|
|
329
|
+
|**400** | | - |
|
|
330
|
+
|**401** | | - |
|
|
331
|
+
|**403** | | - |
|
|
332
|
+
|**404** | | - |
|
|
333
|
+
|**500** | | - |
|
|
334
|
+
|
|
335
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
336
|
+
|
|
337
|
+
# **documentControllerDeleteDocsFromCollection**
|
|
338
|
+
> MessageResponseDTO documentControllerDeleteDocsFromCollection()
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
### Example
|
|
342
|
+
|
|
343
|
+
```typescript
|
|
344
|
+
import {
|
|
345
|
+
DocumentsApi,
|
|
346
|
+
Configuration
|
|
347
|
+
} from '@nestbox-ai/admin';
|
|
348
|
+
|
|
349
|
+
const configuration = new Configuration();
|
|
350
|
+
const apiInstance = new DocumentsApi(configuration);
|
|
351
|
+
|
|
352
|
+
let projectId: string; // (default to undefined)
|
|
353
|
+
let instanceId: string; // (default to undefined)
|
|
354
|
+
let collectionId: string; // (default to undefined)
|
|
355
|
+
let filter: string; // (default to undefined)
|
|
356
|
+
|
|
357
|
+
const { status, data } = await apiInstance.documentControllerDeleteDocsFromCollection(
|
|
358
|
+
projectId,
|
|
359
|
+
instanceId,
|
|
360
|
+
collectionId,
|
|
361
|
+
filter
|
|
362
|
+
);
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
### Parameters
|
|
366
|
+
|
|
367
|
+
|Name | Type | Description | Notes|
|
|
368
|
+
|------------- | ------------- | ------------- | -------------|
|
|
369
|
+
| **projectId** | [**string**] | | defaults to undefined|
|
|
370
|
+
| **instanceId** | [**string**] | | defaults to undefined|
|
|
371
|
+
| **collectionId** | [**string**] | | defaults to undefined|
|
|
372
|
+
| **filter** | [**string**] | | defaults to undefined|
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
### Return type
|
|
376
|
+
|
|
377
|
+
**MessageResponseDTO**
|
|
378
|
+
|
|
379
|
+
### Authorization
|
|
380
|
+
|
|
381
|
+
No authorization required
|
|
382
|
+
|
|
383
|
+
### HTTP request headers
|
|
384
|
+
|
|
385
|
+
- **Content-Type**: Not defined
|
|
386
|
+
- **Accept**: application/json
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
### HTTP response details
|
|
390
|
+
| Status code | Description | Response headers |
|
|
391
|
+
|-------------|-------------|------------------|
|
|
392
|
+
|**200** | | - |
|
|
393
|
+
|**400** | | - |
|
|
394
|
+
|**401** | | - |
|
|
395
|
+
|**403** | | - |
|
|
396
|
+
|**404** | | - |
|
|
397
|
+
|**500** | | - |
|
|
398
|
+
|
|
399
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
400
|
+
|
|
401
|
+
# **documentControllerGetAllCollections**
|
|
402
|
+
> MessageResponseDTO documentControllerGetAllCollections()
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
### Example
|
|
406
|
+
|
|
407
|
+
```typescript
|
|
408
|
+
import {
|
|
409
|
+
DocumentsApi,
|
|
410
|
+
Configuration
|
|
411
|
+
} from '@nestbox-ai/admin';
|
|
412
|
+
|
|
413
|
+
const configuration = new Configuration();
|
|
414
|
+
const apiInstance = new DocumentsApi(configuration);
|
|
415
|
+
|
|
416
|
+
let projectId: string; // (default to undefined)
|
|
417
|
+
let instanceId: string; // (default to undefined)
|
|
418
|
+
|
|
419
|
+
const { status, data } = await apiInstance.documentControllerGetAllCollections(
|
|
420
|
+
projectId,
|
|
421
|
+
instanceId
|
|
422
|
+
);
|
|
423
|
+
```
|
|
424
|
+
|
|
425
|
+
### Parameters
|
|
426
|
+
|
|
427
|
+
|Name | Type | Description | Notes|
|
|
428
|
+
|------------- | ------------- | ------------- | -------------|
|
|
429
|
+
| **projectId** | [**string**] | | defaults to undefined|
|
|
430
|
+
| **instanceId** | [**string**] | | defaults to undefined|
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
### Return type
|
|
434
|
+
|
|
435
|
+
**MessageResponseDTO**
|
|
436
|
+
|
|
437
|
+
### Authorization
|
|
438
|
+
|
|
439
|
+
No authorization required
|
|
440
|
+
|
|
441
|
+
### HTTP request headers
|
|
442
|
+
|
|
443
|
+
- **Content-Type**: Not defined
|
|
444
|
+
- **Accept**: application/json
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
### HTTP response details
|
|
448
|
+
| Status code | Description | Response headers |
|
|
449
|
+
|-------------|-------------|------------------|
|
|
450
|
+
|**200** | | - |
|
|
451
|
+
|**400** | | - |
|
|
452
|
+
|**401** | | - |
|
|
453
|
+
|**403** | | - |
|
|
454
|
+
|**404** | | - |
|
|
455
|
+
|**500** | | - |
|
|
456
|
+
|
|
457
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
458
|
+
|
|
459
|
+
# **documentControllerGetCollectionInfo**
|
|
460
|
+
> MessageResponseDTO documentControllerGetCollectionInfo()
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
### Example
|
|
464
|
+
|
|
465
|
+
```typescript
|
|
466
|
+
import {
|
|
467
|
+
DocumentsApi,
|
|
468
|
+
Configuration
|
|
469
|
+
} from '@nestbox-ai/admin';
|
|
470
|
+
|
|
471
|
+
const configuration = new Configuration();
|
|
472
|
+
const apiInstance = new DocumentsApi(configuration);
|
|
473
|
+
|
|
474
|
+
let projectId: string; // (default to undefined)
|
|
475
|
+
let instanceId: string; // (default to undefined)
|
|
476
|
+
let collectionId: string; // (default to undefined)
|
|
477
|
+
|
|
478
|
+
const { status, data } = await apiInstance.documentControllerGetCollectionInfo(
|
|
479
|
+
projectId,
|
|
480
|
+
instanceId,
|
|
481
|
+
collectionId
|
|
482
|
+
);
|
|
483
|
+
```
|
|
484
|
+
|
|
485
|
+
### Parameters
|
|
486
|
+
|
|
487
|
+
|Name | Type | Description | Notes|
|
|
488
|
+
|------------- | ------------- | ------------- | -------------|
|
|
489
|
+
| **projectId** | [**string**] | | defaults to undefined|
|
|
490
|
+
| **instanceId** | [**string**] | | defaults to undefined|
|
|
491
|
+
| **collectionId** | [**string**] | | defaults to undefined|
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
### Return type
|
|
495
|
+
|
|
496
|
+
**MessageResponseDTO**
|
|
497
|
+
|
|
498
|
+
### Authorization
|
|
499
|
+
|
|
500
|
+
No authorization required
|
|
501
|
+
|
|
502
|
+
### HTTP request headers
|
|
503
|
+
|
|
504
|
+
- **Content-Type**: Not defined
|
|
505
|
+
- **Accept**: application/json
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
### HTTP response details
|
|
509
|
+
| Status code | Description | Response headers |
|
|
510
|
+
|-------------|-------------|------------------|
|
|
511
|
+
|**200** | | - |
|
|
512
|
+
|**400** | | - |
|
|
513
|
+
|**401** | | - |
|
|
514
|
+
|**403** | | - |
|
|
515
|
+
|**404** | | - |
|
|
516
|
+
|**500** | | - |
|
|
517
|
+
|
|
518
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
519
|
+
|
|
520
|
+
# **documentControllerGetDocById**
|
|
521
|
+
> MessageResponseDTO documentControllerGetDocById()
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
### Example
|
|
525
|
+
|
|
526
|
+
```typescript
|
|
527
|
+
import {
|
|
528
|
+
DocumentsApi,
|
|
529
|
+
Configuration
|
|
530
|
+
} from '@nestbox-ai/admin';
|
|
531
|
+
|
|
532
|
+
const configuration = new Configuration();
|
|
533
|
+
const apiInstance = new DocumentsApi(configuration);
|
|
534
|
+
|
|
535
|
+
let projectId: string; // (default to undefined)
|
|
536
|
+
let instanceId: string; // (default to undefined)
|
|
537
|
+
let collectionId: string; // (default to undefined)
|
|
538
|
+
let docId: string; // (default to undefined)
|
|
539
|
+
|
|
540
|
+
const { status, data } = await apiInstance.documentControllerGetDocById(
|
|
541
|
+
projectId,
|
|
542
|
+
instanceId,
|
|
543
|
+
collectionId,
|
|
544
|
+
docId
|
|
545
|
+
);
|
|
546
|
+
```
|
|
547
|
+
|
|
548
|
+
### Parameters
|
|
549
|
+
|
|
550
|
+
|Name | Type | Description | Notes|
|
|
551
|
+
|------------- | ------------- | ------------- | -------------|
|
|
552
|
+
| **projectId** | [**string**] | | defaults to undefined|
|
|
553
|
+
| **instanceId** | [**string**] | | defaults to undefined|
|
|
554
|
+
| **collectionId** | [**string**] | | defaults to undefined|
|
|
555
|
+
| **docId** | [**string**] | | defaults to undefined|
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
### Return type
|
|
559
|
+
|
|
560
|
+
**MessageResponseDTO**
|
|
561
|
+
|
|
562
|
+
### Authorization
|
|
563
|
+
|
|
564
|
+
No authorization required
|
|
565
|
+
|
|
566
|
+
### HTTP request headers
|
|
567
|
+
|
|
568
|
+
- **Content-Type**: Not defined
|
|
569
|
+
- **Accept**: application/json
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
### HTTP response details
|
|
573
|
+
| Status code | Description | Response headers |
|
|
574
|
+
|-------------|-------------|------------------|
|
|
575
|
+
|**200** | | - |
|
|
576
|
+
|**400** | | - |
|
|
577
|
+
|**401** | | - |
|
|
578
|
+
|**403** | | - |
|
|
579
|
+
|**404** | | - |
|
|
580
|
+
|**500** | | - |
|
|
581
|
+
|
|
582
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
583
|
+
|
|
584
|
+
# **documentControllerSimilaritySearch**
|
|
585
|
+
> MessageResponseDTO documentControllerSimilaritySearch(similaritySearchQueryDTO)
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
### Example
|
|
589
|
+
|
|
590
|
+
```typescript
|
|
591
|
+
import {
|
|
592
|
+
DocumentsApi,
|
|
593
|
+
Configuration,
|
|
594
|
+
SimilaritySearchQueryDTO
|
|
595
|
+
} from '@nestbox-ai/admin';
|
|
596
|
+
|
|
597
|
+
const configuration = new Configuration();
|
|
598
|
+
const apiInstance = new DocumentsApi(configuration);
|
|
599
|
+
|
|
600
|
+
let projectId: string; // (default to undefined)
|
|
601
|
+
let instanceId: string; // (default to undefined)
|
|
602
|
+
let collectionId: string; // (default to undefined)
|
|
603
|
+
let similaritySearchQueryDTO: SimilaritySearchQueryDTO; //
|
|
604
|
+
|
|
605
|
+
const { status, data } = await apiInstance.documentControllerSimilaritySearch(
|
|
606
|
+
projectId,
|
|
607
|
+
instanceId,
|
|
608
|
+
collectionId,
|
|
609
|
+
similaritySearchQueryDTO
|
|
610
|
+
);
|
|
611
|
+
```
|
|
612
|
+
|
|
613
|
+
### Parameters
|
|
614
|
+
|
|
615
|
+
|Name | Type | Description | Notes|
|
|
616
|
+
|------------- | ------------- | ------------- | -------------|
|
|
617
|
+
| **similaritySearchQueryDTO** | **SimilaritySearchQueryDTO**| | |
|
|
618
|
+
| **projectId** | [**string**] | | defaults to undefined|
|
|
619
|
+
| **instanceId** | [**string**] | | defaults to undefined|
|
|
620
|
+
| **collectionId** | [**string**] | | defaults to undefined|
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
### Return type
|
|
624
|
+
|
|
625
|
+
**MessageResponseDTO**
|
|
626
|
+
|
|
627
|
+
### Authorization
|
|
628
|
+
|
|
629
|
+
No authorization required
|
|
630
|
+
|
|
631
|
+
### HTTP request headers
|
|
632
|
+
|
|
633
|
+
- **Content-Type**: application/json
|
|
634
|
+
- **Accept**: application/json
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
### HTTP response details
|
|
638
|
+
| Status code | Description | Response headers |
|
|
639
|
+
|-------------|-------------|------------------|
|
|
640
|
+
|**200** | | - |
|
|
641
|
+
|**400** | | - |
|
|
642
|
+
|**401** | | - |
|
|
643
|
+
|**403** | | - |
|
|
644
|
+
|**404** | | - |
|
|
645
|
+
|**500** | | - |
|
|
646
|
+
|
|
647
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
648
|
+
|
|
649
|
+
# **documentControllerUpdateCollection**
|
|
650
|
+
> MessageResponseDTO documentControllerUpdateCollection(createCollectionRequestDTO)
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
### Example
|
|
654
|
+
|
|
655
|
+
```typescript
|
|
656
|
+
import {
|
|
657
|
+
DocumentsApi,
|
|
658
|
+
Configuration,
|
|
659
|
+
CreateCollectionRequestDTO
|
|
660
|
+
} from '@nestbox-ai/admin';
|
|
661
|
+
|
|
662
|
+
const configuration = new Configuration();
|
|
663
|
+
const apiInstance = new DocumentsApi(configuration);
|
|
664
|
+
|
|
665
|
+
let projectId: string; // (default to undefined)
|
|
666
|
+
let instanceId: string; // (default to undefined)
|
|
667
|
+
let collectionId: string; // (default to undefined)
|
|
668
|
+
let createCollectionRequestDTO: CreateCollectionRequestDTO; //
|
|
669
|
+
|
|
670
|
+
const { status, data } = await apiInstance.documentControllerUpdateCollection(
|
|
671
|
+
projectId,
|
|
672
|
+
instanceId,
|
|
673
|
+
collectionId,
|
|
674
|
+
createCollectionRequestDTO
|
|
675
|
+
);
|
|
676
|
+
```
|
|
677
|
+
|
|
678
|
+
### Parameters
|
|
679
|
+
|
|
680
|
+
|Name | Type | Description | Notes|
|
|
681
|
+
|------------- | ------------- | ------------- | -------------|
|
|
682
|
+
| **createCollectionRequestDTO** | **CreateCollectionRequestDTO**| | |
|
|
683
|
+
| **projectId** | [**string**] | | defaults to undefined|
|
|
684
|
+
| **instanceId** | [**string**] | | defaults to undefined|
|
|
685
|
+
| **collectionId** | [**string**] | | defaults to undefined|
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
### Return type
|
|
689
|
+
|
|
690
|
+
**MessageResponseDTO**
|
|
691
|
+
|
|
692
|
+
### Authorization
|
|
693
|
+
|
|
694
|
+
No authorization required
|
|
695
|
+
|
|
696
|
+
### HTTP request headers
|
|
697
|
+
|
|
698
|
+
- **Content-Type**: application/json
|
|
699
|
+
- **Accept**: application/json
|
|
700
|
+
|
|
701
|
+
|
|
702
|
+
### HTTP response details
|
|
703
|
+
| Status code | Description | Response headers |
|
|
704
|
+
|-------------|-------------|------------------|
|
|
705
|
+
|**200** | | - |
|
|
706
|
+
|**400** | | - |
|
|
707
|
+
|**401** | | - |
|
|
708
|
+
|**403** | | - |
|
|
709
|
+
|**404** | | - |
|
|
710
|
+
|**500** | | - |
|
|
711
|
+
|
|
712
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
713
|
+
|
|
714
|
+
# **documentControllerUpdateDoc**
|
|
715
|
+
> MessageResponseDTO documentControllerUpdateDoc(updateDocumentRequestDTO)
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
### Example
|
|
719
|
+
|
|
720
|
+
```typescript
|
|
721
|
+
import {
|
|
722
|
+
DocumentsApi,
|
|
723
|
+
Configuration,
|
|
724
|
+
UpdateDocumentRequestDTO
|
|
725
|
+
} from '@nestbox-ai/admin';
|
|
726
|
+
|
|
727
|
+
const configuration = new Configuration();
|
|
728
|
+
const apiInstance = new DocumentsApi(configuration);
|
|
729
|
+
|
|
730
|
+
let projectId: string; // (default to undefined)
|
|
731
|
+
let instanceId: string; // (default to undefined)
|
|
732
|
+
let collectionId: string; // (default to undefined)
|
|
733
|
+
let docId: string; // (default to undefined)
|
|
734
|
+
let updateDocumentRequestDTO: UpdateDocumentRequestDTO; //
|
|
735
|
+
|
|
736
|
+
const { status, data } = await apiInstance.documentControllerUpdateDoc(
|
|
737
|
+
projectId,
|
|
738
|
+
instanceId,
|
|
739
|
+
collectionId,
|
|
740
|
+
docId,
|
|
741
|
+
updateDocumentRequestDTO
|
|
742
|
+
);
|
|
743
|
+
```
|
|
744
|
+
|
|
745
|
+
### Parameters
|
|
746
|
+
|
|
747
|
+
|Name | Type | Description | Notes|
|
|
748
|
+
|------------- | ------------- | ------------- | -------------|
|
|
749
|
+
| **updateDocumentRequestDTO** | **UpdateDocumentRequestDTO**| | |
|
|
750
|
+
| **projectId** | [**string**] | | defaults to undefined|
|
|
751
|
+
| **instanceId** | [**string**] | | defaults to undefined|
|
|
752
|
+
| **collectionId** | [**string**] | | defaults to undefined|
|
|
753
|
+
| **docId** | [**string**] | | defaults to undefined|
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
### Return type
|
|
757
|
+
|
|
758
|
+
**MessageResponseDTO**
|
|
759
|
+
|
|
760
|
+
### Authorization
|
|
761
|
+
|
|
762
|
+
No authorization required
|
|
763
|
+
|
|
764
|
+
### HTTP request headers
|
|
765
|
+
|
|
766
|
+
- **Content-Type**: application/json
|
|
767
|
+
- **Accept**: application/json
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
### HTTP response details
|
|
771
|
+
| Status code | Description | Response headers |
|
|
772
|
+
|-------------|-------------|------------------|
|
|
773
|
+
|**200** | | - |
|
|
774
|
+
|**400** | | - |
|
|
775
|
+
|**401** | | - |
|
|
776
|
+
|**403** | | - |
|
|
777
|
+
|**404** | | - |
|
|
778
|
+
|**500** | | - |
|
|
779
|
+
|
|
780
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
781
|
+
|