@nestbox-ai/documents 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 +13 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +44 -2
- package/common.ts +4 -4
- package/docs/AppApi.md +51 -0
- package/docs/BadRequestExceptionResponse.md +22 -0
- package/docs/ChunkFileRequestDTO.md +24 -0
- package/docs/CollectionApi.md +705 -0
- package/docs/CreateCollectionRequestDTO.md +22 -0
- package/docs/CreateDocumentRequestDTO.md +24 -0
- package/docs/FatalErrorExceptionResponse.md +20 -0
- package/docs/ForbiddenExceptionResponse.md +20 -0
- package/docs/MessageResponseDTO.md +20 -0
- package/docs/NotFoundExceptionResponse.md +20 -0
- package/docs/SimilaritySearchQueryDTO.md +26 -0
- package/docs/UnauthorizedExceptionResponse.md +20 -0
- package/docs/UpdateDocumentRequestDTO.md +22 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -5,6 +5,19 @@ api.ts
|
|
|
5
5
|
base.ts
|
|
6
6
|
common.ts
|
|
7
7
|
configuration.ts
|
|
8
|
+
docs/AppApi.md
|
|
9
|
+
docs/BadRequestExceptionResponse.md
|
|
10
|
+
docs/ChunkFileRequestDTO.md
|
|
11
|
+
docs/CollectionApi.md
|
|
12
|
+
docs/CreateCollectionRequestDTO.md
|
|
13
|
+
docs/CreateDocumentRequestDTO.md
|
|
14
|
+
docs/FatalErrorExceptionResponse.md
|
|
15
|
+
docs/ForbiddenExceptionResponse.md
|
|
16
|
+
docs/MessageResponseDTO.md
|
|
17
|
+
docs/NotFoundExceptionResponse.md
|
|
18
|
+
docs/SimilaritySearchQueryDTO.md
|
|
19
|
+
docs/UnauthorizedExceptionResponse.md
|
|
20
|
+
docs/UpdateDocumentRequestDTO.md
|
|
8
21
|
git_push.sh
|
|
9
22
|
index.ts
|
|
10
23
|
package.json
|
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.14.0
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @nestbox-ai/documents@1.0.
|
|
1
|
+
## @nestbox-ai/documents@1.0.47
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @nestbox-ai/documents@1.0.
|
|
39
|
+
npm install @nestbox-ai/documents@1.0.47 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -44,3 +44,45 @@ _unPublished (not recommended):_
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
46
|
```
|
|
47
|
+
|
|
48
|
+
### Documentation for API Endpoints
|
|
49
|
+
|
|
50
|
+
All URIs are relative to *http://localhost*
|
|
51
|
+
|
|
52
|
+
Class | Method | HTTP request | Description
|
|
53
|
+
------------ | ------------- | ------------- | -------------
|
|
54
|
+
*AppApi* | [**appControllerGetHello**](docs/AppApi.md#appcontrollergethello) | **GET** / |
|
|
55
|
+
*CollectionApi* | [**collectionControllerAddDocToCollection**](docs/CollectionApi.md#collectioncontrolleradddoctocollection) | **POST** /collections/{collection_id}/docs | Add a new doc
|
|
56
|
+
*CollectionApi* | [**collectionControllerChunkFileToCollection**](docs/CollectionApi.md#collectioncontrollerchunkfiletocollection) | **POST** /collections/{collection_id}/docs/file | Use a file to chunk and add to collection
|
|
57
|
+
*CollectionApi* | [**collectionControllerCreateCollection**](docs/CollectionApi.md#collectioncontrollercreatecollection) | **POST** /collections | Create a new collection
|
|
58
|
+
*CollectionApi* | [**collectionControllerDeleteCollection**](docs/CollectionApi.md#collectioncontrollerdeletecollection) | **DELETE** /collections/{collection_id} | Delete a collection
|
|
59
|
+
*CollectionApi* | [**collectionControllerDeleteDoc**](docs/CollectionApi.md#collectioncontrollerdeletedoc) | **DELETE** /collections/{collection_id}/docs/{doc_id} | Delete doc by ID
|
|
60
|
+
*CollectionApi* | [**collectionControllerDeleteDocsByMetadata**](docs/CollectionApi.md#collectioncontrollerdeletedocsbymetadata) | **DELETE** /collections/{collection_id}/docs | Delete docs based on metadata filter
|
|
61
|
+
*CollectionApi* | [**collectionControllerGetCollection**](docs/CollectionApi.md#collectioncontrollergetcollection) | **GET** /collections/{collection_id} | Get a collection info
|
|
62
|
+
*CollectionApi* | [**collectionControllerGetCollections**](docs/CollectionApi.md#collectioncontrollergetcollections) | **GET** /collections | List all collections
|
|
63
|
+
*CollectionApi* | [**collectionControllerGetDocById**](docs/CollectionApi.md#collectioncontrollergetdocbyid) | **GET** /collections/{collection_id}/docs/{doc_id} | Retrieve doc by ID
|
|
64
|
+
*CollectionApi* | [**collectionControllerSimilaritySearch**](docs/CollectionApi.md#collectioncontrollersimilaritysearch) | **POST** /collections/{collection_id}/query | Similarity search query
|
|
65
|
+
*CollectionApi* | [**collectionControllerUpdateCollection**](docs/CollectionApi.md#collectioncontrollerupdatecollection) | **PUT** /collections/{collection_id} | Updates a collection
|
|
66
|
+
*CollectionApi* | [**collectionControllerUpdateDoc**](docs/CollectionApi.md#collectioncontrollerupdatedoc) | **PUT** /collections/{collection_id}/docs/{doc_id} | Update or upsert doc
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
### Documentation For Models
|
|
70
|
+
|
|
71
|
+
- [BadRequestExceptionResponse](docs/BadRequestExceptionResponse.md)
|
|
72
|
+
- [ChunkFileRequestDTO](docs/ChunkFileRequestDTO.md)
|
|
73
|
+
- [CreateCollectionRequestDTO](docs/CreateCollectionRequestDTO.md)
|
|
74
|
+
- [CreateDocumentRequestDTO](docs/CreateDocumentRequestDTO.md)
|
|
75
|
+
- [FatalErrorExceptionResponse](docs/FatalErrorExceptionResponse.md)
|
|
76
|
+
- [ForbiddenExceptionResponse](docs/ForbiddenExceptionResponse.md)
|
|
77
|
+
- [MessageResponseDTO](docs/MessageResponseDTO.md)
|
|
78
|
+
- [NotFoundExceptionResponse](docs/NotFoundExceptionResponse.md)
|
|
79
|
+
- [SimilaritySearchQueryDTO](docs/SimilaritySearchQueryDTO.md)
|
|
80
|
+
- [UnauthorizedExceptionResponse](docs/UnauthorizedExceptionResponse.md)
|
|
81
|
+
- [UpdateDocumentRequestDTO](docs/UpdateDocumentRequestDTO.md)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
<a id="documentation-for-authorization"></a>
|
|
85
|
+
## Documentation For Authorization
|
|
86
|
+
|
|
87
|
+
Endpoints do not require authorization.
|
|
88
|
+
|
package/common.ts
CHANGED
|
@@ -89,17 +89,17 @@ function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: an
|
|
|
89
89
|
if (typeof parameter === "object") {
|
|
90
90
|
if (Array.isArray(parameter)) {
|
|
91
91
|
(parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
92
|
-
}
|
|
92
|
+
}
|
|
93
93
|
else {
|
|
94
|
-
Object.keys(parameter).forEach(currentKey =>
|
|
94
|
+
Object.keys(parameter).forEach(currentKey =>
|
|
95
95
|
setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)
|
|
96
96
|
);
|
|
97
97
|
}
|
|
98
|
-
}
|
|
98
|
+
}
|
|
99
99
|
else {
|
|
100
100
|
if (urlSearchParams.has(key)) {
|
|
101
101
|
urlSearchParams.append(key, parameter);
|
|
102
|
-
}
|
|
102
|
+
}
|
|
103
103
|
else {
|
|
104
104
|
urlSearchParams.set(key, parameter);
|
|
105
105
|
}
|
package/docs/AppApi.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# AppApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**appControllerGetHello**](#appcontrollergethello) | **GET** / | |
|
|
8
|
+
|
|
9
|
+
# **appControllerGetHello**
|
|
10
|
+
> appControllerGetHello()
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import {
|
|
17
|
+
AppApi,
|
|
18
|
+
Configuration
|
|
19
|
+
} from '@nestbox-ai/documents';
|
|
20
|
+
|
|
21
|
+
const configuration = new Configuration();
|
|
22
|
+
const apiInstance = new AppApi(configuration);
|
|
23
|
+
|
|
24
|
+
const { status, data } = await apiInstance.appControllerGetHello();
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Parameters
|
|
28
|
+
This endpoint does not have any parameters.
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Return type
|
|
32
|
+
|
|
33
|
+
void (empty response body)
|
|
34
|
+
|
|
35
|
+
### Authorization
|
|
36
|
+
|
|
37
|
+
No authorization required
|
|
38
|
+
|
|
39
|
+
### HTTP request headers
|
|
40
|
+
|
|
41
|
+
- **Content-Type**: Not defined
|
|
42
|
+
- **Accept**: Not defined
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### HTTP response details
|
|
46
|
+
| Status code | Description | Response headers |
|
|
47
|
+
|-------------|-------------|------------------|
|
|
48
|
+
|**200** | | - |
|
|
49
|
+
|
|
50
|
+
[[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)
|
|
51
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# BadRequestExceptionResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [default to 'Bad Request. Check Input']
|
|
9
|
+
**errors** | **object** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { BadRequestExceptionResponse } from '@nestbox-ai/documents';
|
|
15
|
+
|
|
16
|
+
const instance: BadRequestExceptionResponse = {
|
|
17
|
+
message,
|
|
18
|
+
errors,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# ChunkFileRequestDTO
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**type** | **string** | | [default to undefined]
|
|
9
|
+
**url** | **string** | | [default to undefined]
|
|
10
|
+
**_options** | **object** | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ChunkFileRequestDTO } from '@nestbox-ai/documents';
|
|
16
|
+
|
|
17
|
+
const instance: ChunkFileRequestDTO = {
|
|
18
|
+
type,
|
|
19
|
+
url,
|
|
20
|
+
_options,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,705 @@
|
|
|
1
|
+
# CollectionApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**collectionControllerAddDocToCollection**](#collectioncontrolleradddoctocollection) | **POST** /collections/{collection_id}/docs | Add a new doc|
|
|
8
|
+
|[**collectionControllerChunkFileToCollection**](#collectioncontrollerchunkfiletocollection) | **POST** /collections/{collection_id}/docs/file | Use a file to chunk and add to collection|
|
|
9
|
+
|[**collectionControllerCreateCollection**](#collectioncontrollercreatecollection) | **POST** /collections | Create a new collection|
|
|
10
|
+
|[**collectionControllerDeleteCollection**](#collectioncontrollerdeletecollection) | **DELETE** /collections/{collection_id} | Delete a collection|
|
|
11
|
+
|[**collectionControllerDeleteDoc**](#collectioncontrollerdeletedoc) | **DELETE** /collections/{collection_id}/docs/{doc_id} | Delete doc by ID|
|
|
12
|
+
|[**collectionControllerDeleteDocsByMetadata**](#collectioncontrollerdeletedocsbymetadata) | **DELETE** /collections/{collection_id}/docs | Delete docs based on metadata filter|
|
|
13
|
+
|[**collectionControllerGetCollection**](#collectioncontrollergetcollection) | **GET** /collections/{collection_id} | Get a collection info|
|
|
14
|
+
|[**collectionControllerGetCollections**](#collectioncontrollergetcollections) | **GET** /collections | List all collections|
|
|
15
|
+
|[**collectionControllerGetDocById**](#collectioncontrollergetdocbyid) | **GET** /collections/{collection_id}/docs/{doc_id} | Retrieve doc by ID|
|
|
16
|
+
|[**collectionControllerSimilaritySearch**](#collectioncontrollersimilaritysearch) | **POST** /collections/{collection_id}/query | Similarity search query|
|
|
17
|
+
|[**collectionControllerUpdateCollection**](#collectioncontrollerupdatecollection) | **PUT** /collections/{collection_id} | Updates a collection|
|
|
18
|
+
|[**collectionControllerUpdateDoc**](#collectioncontrollerupdatedoc) | **PUT** /collections/{collection_id}/docs/{doc_id} | Update or upsert doc|
|
|
19
|
+
|
|
20
|
+
# **collectionControllerAddDocToCollection**
|
|
21
|
+
> MessageResponseDTO collectionControllerAddDocToCollection(createDocumentRequestDTO)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Example
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import {
|
|
28
|
+
CollectionApi,
|
|
29
|
+
Configuration,
|
|
30
|
+
CreateDocumentRequestDTO
|
|
31
|
+
} from '@nestbox-ai/documents';
|
|
32
|
+
|
|
33
|
+
const configuration = new Configuration();
|
|
34
|
+
const apiInstance = new CollectionApi(configuration);
|
|
35
|
+
|
|
36
|
+
let collectionId: string; // (default to undefined)
|
|
37
|
+
let createDocumentRequestDTO: CreateDocumentRequestDTO; //
|
|
38
|
+
|
|
39
|
+
const { status, data } = await apiInstance.collectionControllerAddDocToCollection(
|
|
40
|
+
collectionId,
|
|
41
|
+
createDocumentRequestDTO
|
|
42
|
+
);
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Parameters
|
|
46
|
+
|
|
47
|
+
|Name | Type | Description | Notes|
|
|
48
|
+
|------------- | ------------- | ------------- | -------------|
|
|
49
|
+
| **createDocumentRequestDTO** | **CreateDocumentRequestDTO**| | |
|
|
50
|
+
| **collectionId** | [**string**] | | defaults to undefined|
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### Return type
|
|
54
|
+
|
|
55
|
+
**MessageResponseDTO**
|
|
56
|
+
|
|
57
|
+
### Authorization
|
|
58
|
+
|
|
59
|
+
No authorization required
|
|
60
|
+
|
|
61
|
+
### HTTP request headers
|
|
62
|
+
|
|
63
|
+
- **Content-Type**: application/json
|
|
64
|
+
- **Accept**: application/json
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
### HTTP response details
|
|
68
|
+
| Status code | Description | Response headers |
|
|
69
|
+
|-------------|-------------|------------------|
|
|
70
|
+
|**200** | | - |
|
|
71
|
+
|**400** | | - |
|
|
72
|
+
|**401** | | - |
|
|
73
|
+
|**403** | | - |
|
|
74
|
+
|**404** | | - |
|
|
75
|
+
|**500** | | - |
|
|
76
|
+
|
|
77
|
+
[[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)
|
|
78
|
+
|
|
79
|
+
# **collectionControllerChunkFileToCollection**
|
|
80
|
+
> MessageResponseDTO collectionControllerChunkFileToCollection(chunkFileRequestDTO)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
### Example
|
|
84
|
+
|
|
85
|
+
```typescript
|
|
86
|
+
import {
|
|
87
|
+
CollectionApi,
|
|
88
|
+
Configuration,
|
|
89
|
+
ChunkFileRequestDTO
|
|
90
|
+
} from '@nestbox-ai/documents';
|
|
91
|
+
|
|
92
|
+
const configuration = new Configuration();
|
|
93
|
+
const apiInstance = new CollectionApi(configuration);
|
|
94
|
+
|
|
95
|
+
let collectionId: string; // (default to undefined)
|
|
96
|
+
let chunkFileRequestDTO: ChunkFileRequestDTO; //
|
|
97
|
+
|
|
98
|
+
const { status, data } = await apiInstance.collectionControllerChunkFileToCollection(
|
|
99
|
+
collectionId,
|
|
100
|
+
chunkFileRequestDTO
|
|
101
|
+
);
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### Parameters
|
|
105
|
+
|
|
106
|
+
|Name | Type | Description | Notes|
|
|
107
|
+
|------------- | ------------- | ------------- | -------------|
|
|
108
|
+
| **chunkFileRequestDTO** | **ChunkFileRequestDTO**| | |
|
|
109
|
+
| **collectionId** | [**string**] | | defaults to undefined|
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
### Return type
|
|
113
|
+
|
|
114
|
+
**MessageResponseDTO**
|
|
115
|
+
|
|
116
|
+
### Authorization
|
|
117
|
+
|
|
118
|
+
No authorization required
|
|
119
|
+
|
|
120
|
+
### HTTP request headers
|
|
121
|
+
|
|
122
|
+
- **Content-Type**: application/json
|
|
123
|
+
- **Accept**: application/json
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
### HTTP response details
|
|
127
|
+
| Status code | Description | Response headers |
|
|
128
|
+
|-------------|-------------|------------------|
|
|
129
|
+
|**200** | | - |
|
|
130
|
+
|**400** | | - |
|
|
131
|
+
|**401** | | - |
|
|
132
|
+
|**403** | | - |
|
|
133
|
+
|**404** | | - |
|
|
134
|
+
|**500** | | - |
|
|
135
|
+
|
|
136
|
+
[[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)
|
|
137
|
+
|
|
138
|
+
# **collectionControllerCreateCollection**
|
|
139
|
+
> MessageResponseDTO collectionControllerCreateCollection(createCollectionRequestDTO)
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
### Example
|
|
143
|
+
|
|
144
|
+
```typescript
|
|
145
|
+
import {
|
|
146
|
+
CollectionApi,
|
|
147
|
+
Configuration,
|
|
148
|
+
CreateCollectionRequestDTO
|
|
149
|
+
} from '@nestbox-ai/documents';
|
|
150
|
+
|
|
151
|
+
const configuration = new Configuration();
|
|
152
|
+
const apiInstance = new CollectionApi(configuration);
|
|
153
|
+
|
|
154
|
+
let createCollectionRequestDTO: CreateCollectionRequestDTO; //
|
|
155
|
+
|
|
156
|
+
const { status, data } = await apiInstance.collectionControllerCreateCollection(
|
|
157
|
+
createCollectionRequestDTO
|
|
158
|
+
);
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### Parameters
|
|
162
|
+
|
|
163
|
+
|Name | Type | Description | Notes|
|
|
164
|
+
|------------- | ------------- | ------------- | -------------|
|
|
165
|
+
| **createCollectionRequestDTO** | **CreateCollectionRequestDTO**| | |
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
### Return type
|
|
169
|
+
|
|
170
|
+
**MessageResponseDTO**
|
|
171
|
+
|
|
172
|
+
### Authorization
|
|
173
|
+
|
|
174
|
+
No authorization required
|
|
175
|
+
|
|
176
|
+
### HTTP request headers
|
|
177
|
+
|
|
178
|
+
- **Content-Type**: application/json
|
|
179
|
+
- **Accept**: application/json
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
### HTTP response details
|
|
183
|
+
| Status code | Description | Response headers |
|
|
184
|
+
|-------------|-------------|------------------|
|
|
185
|
+
|**200** | | - |
|
|
186
|
+
|**400** | | - |
|
|
187
|
+
|**401** | | - |
|
|
188
|
+
|**403** | | - |
|
|
189
|
+
|**404** | | - |
|
|
190
|
+
|**500** | | - |
|
|
191
|
+
|
|
192
|
+
[[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)
|
|
193
|
+
|
|
194
|
+
# **collectionControllerDeleteCollection**
|
|
195
|
+
> MessageResponseDTO collectionControllerDeleteCollection()
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
### Example
|
|
199
|
+
|
|
200
|
+
```typescript
|
|
201
|
+
import {
|
|
202
|
+
CollectionApi,
|
|
203
|
+
Configuration
|
|
204
|
+
} from '@nestbox-ai/documents';
|
|
205
|
+
|
|
206
|
+
const configuration = new Configuration();
|
|
207
|
+
const apiInstance = new CollectionApi(configuration);
|
|
208
|
+
|
|
209
|
+
let collectionId: string; // (default to undefined)
|
|
210
|
+
|
|
211
|
+
const { status, data } = await apiInstance.collectionControllerDeleteCollection(
|
|
212
|
+
collectionId
|
|
213
|
+
);
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
### Parameters
|
|
217
|
+
|
|
218
|
+
|Name | Type | Description | Notes|
|
|
219
|
+
|------------- | ------------- | ------------- | -------------|
|
|
220
|
+
| **collectionId** | [**string**] | | defaults to undefined|
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
### Return type
|
|
224
|
+
|
|
225
|
+
**MessageResponseDTO**
|
|
226
|
+
|
|
227
|
+
### Authorization
|
|
228
|
+
|
|
229
|
+
No authorization required
|
|
230
|
+
|
|
231
|
+
### HTTP request headers
|
|
232
|
+
|
|
233
|
+
- **Content-Type**: Not defined
|
|
234
|
+
- **Accept**: application/json
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
### HTTP response details
|
|
238
|
+
| Status code | Description | Response headers |
|
|
239
|
+
|-------------|-------------|------------------|
|
|
240
|
+
|**200** | | - |
|
|
241
|
+
|**400** | | - |
|
|
242
|
+
|**401** | | - |
|
|
243
|
+
|**403** | | - |
|
|
244
|
+
|**404** | | - |
|
|
245
|
+
|**500** | | - |
|
|
246
|
+
|
|
247
|
+
[[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)
|
|
248
|
+
|
|
249
|
+
# **collectionControllerDeleteDoc**
|
|
250
|
+
> MessageResponseDTO collectionControllerDeleteDoc()
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
### Example
|
|
254
|
+
|
|
255
|
+
```typescript
|
|
256
|
+
import {
|
|
257
|
+
CollectionApi,
|
|
258
|
+
Configuration
|
|
259
|
+
} from '@nestbox-ai/documents';
|
|
260
|
+
|
|
261
|
+
const configuration = new Configuration();
|
|
262
|
+
const apiInstance = new CollectionApi(configuration);
|
|
263
|
+
|
|
264
|
+
let collectionId: string; // (default to undefined)
|
|
265
|
+
let docId: string; // (default to undefined)
|
|
266
|
+
|
|
267
|
+
const { status, data } = await apiInstance.collectionControllerDeleteDoc(
|
|
268
|
+
collectionId,
|
|
269
|
+
docId
|
|
270
|
+
);
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
### Parameters
|
|
274
|
+
|
|
275
|
+
|Name | Type | Description | Notes|
|
|
276
|
+
|------------- | ------------- | ------------- | -------------|
|
|
277
|
+
| **collectionId** | [**string**] | | defaults to undefined|
|
|
278
|
+
| **docId** | [**string**] | | defaults to undefined|
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
### Return type
|
|
282
|
+
|
|
283
|
+
**MessageResponseDTO**
|
|
284
|
+
|
|
285
|
+
### Authorization
|
|
286
|
+
|
|
287
|
+
No authorization required
|
|
288
|
+
|
|
289
|
+
### HTTP request headers
|
|
290
|
+
|
|
291
|
+
- **Content-Type**: Not defined
|
|
292
|
+
- **Accept**: application/json
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
### HTTP response details
|
|
296
|
+
| Status code | Description | Response headers |
|
|
297
|
+
|-------------|-------------|------------------|
|
|
298
|
+
|**200** | | - |
|
|
299
|
+
|**400** | | - |
|
|
300
|
+
|**401** | | - |
|
|
301
|
+
|**403** | | - |
|
|
302
|
+
|**404** | | - |
|
|
303
|
+
|**500** | | - |
|
|
304
|
+
|
|
305
|
+
[[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)
|
|
306
|
+
|
|
307
|
+
# **collectionControllerDeleteDocsByMetadata**
|
|
308
|
+
> MessageResponseDTO collectionControllerDeleteDocsByMetadata()
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
### Example
|
|
312
|
+
|
|
313
|
+
```typescript
|
|
314
|
+
import {
|
|
315
|
+
CollectionApi,
|
|
316
|
+
Configuration
|
|
317
|
+
} from '@nestbox-ai/documents';
|
|
318
|
+
|
|
319
|
+
const configuration = new Configuration();
|
|
320
|
+
const apiInstance = new CollectionApi(configuration);
|
|
321
|
+
|
|
322
|
+
let collectionId: string; // (default to undefined)
|
|
323
|
+
let filter: string; // (default to undefined)
|
|
324
|
+
|
|
325
|
+
const { status, data } = await apiInstance.collectionControllerDeleteDocsByMetadata(
|
|
326
|
+
collectionId,
|
|
327
|
+
filter
|
|
328
|
+
);
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
### Parameters
|
|
332
|
+
|
|
333
|
+
|Name | Type | Description | Notes|
|
|
334
|
+
|------------- | ------------- | ------------- | -------------|
|
|
335
|
+
| **collectionId** | [**string**] | | defaults to undefined|
|
|
336
|
+
| **filter** | [**string**] | | defaults to undefined|
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
### Return type
|
|
340
|
+
|
|
341
|
+
**MessageResponseDTO**
|
|
342
|
+
|
|
343
|
+
### Authorization
|
|
344
|
+
|
|
345
|
+
No authorization required
|
|
346
|
+
|
|
347
|
+
### HTTP request headers
|
|
348
|
+
|
|
349
|
+
- **Content-Type**: Not defined
|
|
350
|
+
- **Accept**: application/json
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
### HTTP response details
|
|
354
|
+
| Status code | Description | Response headers |
|
|
355
|
+
|-------------|-------------|------------------|
|
|
356
|
+
|**200** | | - |
|
|
357
|
+
|**400** | | - |
|
|
358
|
+
|**401** | | - |
|
|
359
|
+
|**403** | | - |
|
|
360
|
+
|**404** | | - |
|
|
361
|
+
|**500** | | - |
|
|
362
|
+
|
|
363
|
+
[[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)
|
|
364
|
+
|
|
365
|
+
# **collectionControllerGetCollection**
|
|
366
|
+
> MessageResponseDTO collectionControllerGetCollection()
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
### Example
|
|
370
|
+
|
|
371
|
+
```typescript
|
|
372
|
+
import {
|
|
373
|
+
CollectionApi,
|
|
374
|
+
Configuration
|
|
375
|
+
} from '@nestbox-ai/documents';
|
|
376
|
+
|
|
377
|
+
const configuration = new Configuration();
|
|
378
|
+
const apiInstance = new CollectionApi(configuration);
|
|
379
|
+
|
|
380
|
+
let collectionId: string; // (default to undefined)
|
|
381
|
+
|
|
382
|
+
const { status, data } = await apiInstance.collectionControllerGetCollection(
|
|
383
|
+
collectionId
|
|
384
|
+
);
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
### Parameters
|
|
388
|
+
|
|
389
|
+
|Name | Type | Description | Notes|
|
|
390
|
+
|------------- | ------------- | ------------- | -------------|
|
|
391
|
+
| **collectionId** | [**string**] | | defaults to undefined|
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
### Return type
|
|
395
|
+
|
|
396
|
+
**MessageResponseDTO**
|
|
397
|
+
|
|
398
|
+
### Authorization
|
|
399
|
+
|
|
400
|
+
No authorization required
|
|
401
|
+
|
|
402
|
+
### HTTP request headers
|
|
403
|
+
|
|
404
|
+
- **Content-Type**: Not defined
|
|
405
|
+
- **Accept**: application/json
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
### HTTP response details
|
|
409
|
+
| Status code | Description | Response headers |
|
|
410
|
+
|-------------|-------------|------------------|
|
|
411
|
+
|**200** | | - |
|
|
412
|
+
|**400** | | - |
|
|
413
|
+
|**401** | | - |
|
|
414
|
+
|**403** | | - |
|
|
415
|
+
|**404** | | - |
|
|
416
|
+
|**500** | | - |
|
|
417
|
+
|
|
418
|
+
[[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)
|
|
419
|
+
|
|
420
|
+
# **collectionControllerGetCollections**
|
|
421
|
+
> MessageResponseDTO collectionControllerGetCollections()
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
### Example
|
|
425
|
+
|
|
426
|
+
```typescript
|
|
427
|
+
import {
|
|
428
|
+
CollectionApi,
|
|
429
|
+
Configuration
|
|
430
|
+
} from '@nestbox-ai/documents';
|
|
431
|
+
|
|
432
|
+
const configuration = new Configuration();
|
|
433
|
+
const apiInstance = new CollectionApi(configuration);
|
|
434
|
+
|
|
435
|
+
const { status, data } = await apiInstance.collectionControllerGetCollections();
|
|
436
|
+
```
|
|
437
|
+
|
|
438
|
+
### Parameters
|
|
439
|
+
This endpoint does not have any parameters.
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
### Return type
|
|
443
|
+
|
|
444
|
+
**MessageResponseDTO**
|
|
445
|
+
|
|
446
|
+
### Authorization
|
|
447
|
+
|
|
448
|
+
No authorization required
|
|
449
|
+
|
|
450
|
+
### HTTP request headers
|
|
451
|
+
|
|
452
|
+
- **Content-Type**: Not defined
|
|
453
|
+
- **Accept**: application/json
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
### HTTP response details
|
|
457
|
+
| Status code | Description | Response headers |
|
|
458
|
+
|-------------|-------------|------------------|
|
|
459
|
+
|**200** | | - |
|
|
460
|
+
|**400** | | - |
|
|
461
|
+
|**401** | | - |
|
|
462
|
+
|**403** | | - |
|
|
463
|
+
|**404** | | - |
|
|
464
|
+
|**500** | | - |
|
|
465
|
+
|
|
466
|
+
[[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)
|
|
467
|
+
|
|
468
|
+
# **collectionControllerGetDocById**
|
|
469
|
+
> MessageResponseDTO collectionControllerGetDocById()
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
### Example
|
|
473
|
+
|
|
474
|
+
```typescript
|
|
475
|
+
import {
|
|
476
|
+
CollectionApi,
|
|
477
|
+
Configuration
|
|
478
|
+
} from '@nestbox-ai/documents';
|
|
479
|
+
|
|
480
|
+
const configuration = new Configuration();
|
|
481
|
+
const apiInstance = new CollectionApi(configuration);
|
|
482
|
+
|
|
483
|
+
let collectionId: string; // (default to undefined)
|
|
484
|
+
let docId: string; // (default to undefined)
|
|
485
|
+
|
|
486
|
+
const { status, data } = await apiInstance.collectionControllerGetDocById(
|
|
487
|
+
collectionId,
|
|
488
|
+
docId
|
|
489
|
+
);
|
|
490
|
+
```
|
|
491
|
+
|
|
492
|
+
### Parameters
|
|
493
|
+
|
|
494
|
+
|Name | Type | Description | Notes|
|
|
495
|
+
|------------- | ------------- | ------------- | -------------|
|
|
496
|
+
| **collectionId** | [**string**] | | defaults to undefined|
|
|
497
|
+
| **docId** | [**string**] | | defaults to undefined|
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
### Return type
|
|
501
|
+
|
|
502
|
+
**MessageResponseDTO**
|
|
503
|
+
|
|
504
|
+
### Authorization
|
|
505
|
+
|
|
506
|
+
No authorization required
|
|
507
|
+
|
|
508
|
+
### HTTP request headers
|
|
509
|
+
|
|
510
|
+
- **Content-Type**: Not defined
|
|
511
|
+
- **Accept**: application/json
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
### HTTP response details
|
|
515
|
+
| Status code | Description | Response headers |
|
|
516
|
+
|-------------|-------------|------------------|
|
|
517
|
+
|**200** | | - |
|
|
518
|
+
|**400** | | - |
|
|
519
|
+
|**401** | | - |
|
|
520
|
+
|**403** | | - |
|
|
521
|
+
|**404** | | - |
|
|
522
|
+
|**500** | | - |
|
|
523
|
+
|
|
524
|
+
[[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)
|
|
525
|
+
|
|
526
|
+
# **collectionControllerSimilaritySearch**
|
|
527
|
+
> MessageResponseDTO collectionControllerSimilaritySearch(similaritySearchQueryDTO)
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
### Example
|
|
531
|
+
|
|
532
|
+
```typescript
|
|
533
|
+
import {
|
|
534
|
+
CollectionApi,
|
|
535
|
+
Configuration,
|
|
536
|
+
SimilaritySearchQueryDTO
|
|
537
|
+
} from '@nestbox-ai/documents';
|
|
538
|
+
|
|
539
|
+
const configuration = new Configuration();
|
|
540
|
+
const apiInstance = new CollectionApi(configuration);
|
|
541
|
+
|
|
542
|
+
let collectionId: string; // (default to undefined)
|
|
543
|
+
let similaritySearchQueryDTO: SimilaritySearchQueryDTO; //
|
|
544
|
+
|
|
545
|
+
const { status, data } = await apiInstance.collectionControllerSimilaritySearch(
|
|
546
|
+
collectionId,
|
|
547
|
+
similaritySearchQueryDTO
|
|
548
|
+
);
|
|
549
|
+
```
|
|
550
|
+
|
|
551
|
+
### Parameters
|
|
552
|
+
|
|
553
|
+
|Name | Type | Description | Notes|
|
|
554
|
+
|------------- | ------------- | ------------- | -------------|
|
|
555
|
+
| **similaritySearchQueryDTO** | **SimilaritySearchQueryDTO**| | |
|
|
556
|
+
| **collectionId** | [**string**] | | defaults to undefined|
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
### Return type
|
|
560
|
+
|
|
561
|
+
**MessageResponseDTO**
|
|
562
|
+
|
|
563
|
+
### Authorization
|
|
564
|
+
|
|
565
|
+
No authorization required
|
|
566
|
+
|
|
567
|
+
### HTTP request headers
|
|
568
|
+
|
|
569
|
+
- **Content-Type**: application/json
|
|
570
|
+
- **Accept**: application/json
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
### HTTP response details
|
|
574
|
+
| Status code | Description | Response headers |
|
|
575
|
+
|-------------|-------------|------------------|
|
|
576
|
+
|**200** | | - |
|
|
577
|
+
|**400** | | - |
|
|
578
|
+
|**401** | | - |
|
|
579
|
+
|**403** | | - |
|
|
580
|
+
|**404** | | - |
|
|
581
|
+
|**500** | | - |
|
|
582
|
+
|
|
583
|
+
[[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)
|
|
584
|
+
|
|
585
|
+
# **collectionControllerUpdateCollection**
|
|
586
|
+
> MessageResponseDTO collectionControllerUpdateCollection(createCollectionRequestDTO)
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
### Example
|
|
590
|
+
|
|
591
|
+
```typescript
|
|
592
|
+
import {
|
|
593
|
+
CollectionApi,
|
|
594
|
+
Configuration,
|
|
595
|
+
CreateCollectionRequestDTO
|
|
596
|
+
} from '@nestbox-ai/documents';
|
|
597
|
+
|
|
598
|
+
const configuration = new Configuration();
|
|
599
|
+
const apiInstance = new CollectionApi(configuration);
|
|
600
|
+
|
|
601
|
+
let collectionId: string; // (default to undefined)
|
|
602
|
+
let createCollectionRequestDTO: CreateCollectionRequestDTO; //
|
|
603
|
+
|
|
604
|
+
const { status, data } = await apiInstance.collectionControllerUpdateCollection(
|
|
605
|
+
collectionId,
|
|
606
|
+
createCollectionRequestDTO
|
|
607
|
+
);
|
|
608
|
+
```
|
|
609
|
+
|
|
610
|
+
### Parameters
|
|
611
|
+
|
|
612
|
+
|Name | Type | Description | Notes|
|
|
613
|
+
|------------- | ------------- | ------------- | -------------|
|
|
614
|
+
| **createCollectionRequestDTO** | **CreateCollectionRequestDTO**| | |
|
|
615
|
+
| **collectionId** | [**string**] | | defaults to undefined|
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
### Return type
|
|
619
|
+
|
|
620
|
+
**MessageResponseDTO**
|
|
621
|
+
|
|
622
|
+
### Authorization
|
|
623
|
+
|
|
624
|
+
No authorization required
|
|
625
|
+
|
|
626
|
+
### HTTP request headers
|
|
627
|
+
|
|
628
|
+
- **Content-Type**: application/json
|
|
629
|
+
- **Accept**: application/json
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
### HTTP response details
|
|
633
|
+
| Status code | Description | Response headers |
|
|
634
|
+
|-------------|-------------|------------------|
|
|
635
|
+
|**200** | | - |
|
|
636
|
+
|**400** | | - |
|
|
637
|
+
|**401** | | - |
|
|
638
|
+
|**403** | | - |
|
|
639
|
+
|**404** | | - |
|
|
640
|
+
|**500** | | - |
|
|
641
|
+
|
|
642
|
+
[[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)
|
|
643
|
+
|
|
644
|
+
# **collectionControllerUpdateDoc**
|
|
645
|
+
> MessageResponseDTO collectionControllerUpdateDoc(updateDocumentRequestDTO)
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
### Example
|
|
649
|
+
|
|
650
|
+
```typescript
|
|
651
|
+
import {
|
|
652
|
+
CollectionApi,
|
|
653
|
+
Configuration,
|
|
654
|
+
UpdateDocumentRequestDTO
|
|
655
|
+
} from '@nestbox-ai/documents';
|
|
656
|
+
|
|
657
|
+
const configuration = new Configuration();
|
|
658
|
+
const apiInstance = new CollectionApi(configuration);
|
|
659
|
+
|
|
660
|
+
let collectionId: string; // (default to undefined)
|
|
661
|
+
let docId: string; // (default to undefined)
|
|
662
|
+
let updateDocumentRequestDTO: UpdateDocumentRequestDTO; //
|
|
663
|
+
|
|
664
|
+
const { status, data } = await apiInstance.collectionControllerUpdateDoc(
|
|
665
|
+
collectionId,
|
|
666
|
+
docId,
|
|
667
|
+
updateDocumentRequestDTO
|
|
668
|
+
);
|
|
669
|
+
```
|
|
670
|
+
|
|
671
|
+
### Parameters
|
|
672
|
+
|
|
673
|
+
|Name | Type | Description | Notes|
|
|
674
|
+
|------------- | ------------- | ------------- | -------------|
|
|
675
|
+
| **updateDocumentRequestDTO** | **UpdateDocumentRequestDTO**| | |
|
|
676
|
+
| **collectionId** | [**string**] | | defaults to undefined|
|
|
677
|
+
| **docId** | [**string**] | | defaults to undefined|
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
### Return type
|
|
681
|
+
|
|
682
|
+
**MessageResponseDTO**
|
|
683
|
+
|
|
684
|
+
### Authorization
|
|
685
|
+
|
|
686
|
+
No authorization required
|
|
687
|
+
|
|
688
|
+
### HTTP request headers
|
|
689
|
+
|
|
690
|
+
- **Content-Type**: application/json
|
|
691
|
+
- **Accept**: application/json
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
### HTTP response details
|
|
695
|
+
| Status code | Description | Response headers |
|
|
696
|
+
|-------------|-------------|------------------|
|
|
697
|
+
|**200** | | - |
|
|
698
|
+
|**400** | | - |
|
|
699
|
+
|**401** | | - |
|
|
700
|
+
|**403** | | - |
|
|
701
|
+
|**404** | | - |
|
|
702
|
+
|**500** | | - |
|
|
703
|
+
|
|
704
|
+
[[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)
|
|
705
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# CreateCollectionRequestDTO
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [default to undefined]
|
|
9
|
+
**metadata** | **object** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { CreateCollectionRequestDTO } from '@nestbox-ai/documents';
|
|
15
|
+
|
|
16
|
+
const instance: CreateCollectionRequestDTO = {
|
|
17
|
+
name,
|
|
18
|
+
metadata,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# CreateDocumentRequestDTO
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**document** | **string** | | [default to undefined]
|
|
10
|
+
**metadata** | **object** | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { CreateDocumentRequestDTO } from '@nestbox-ai/documents';
|
|
16
|
+
|
|
17
|
+
const instance: CreateDocumentRequestDTO = {
|
|
18
|
+
id,
|
|
19
|
+
document,
|
|
20
|
+
metadata,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# FatalErrorExceptionResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [default to 'Something Went Wrong']
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { FatalErrorExceptionResponse } from '@nestbox-ai/documents';
|
|
14
|
+
|
|
15
|
+
const instance: FatalErrorExceptionResponse = {
|
|
16
|
+
message,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# ForbiddenExceptionResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [default to 'Access Not Allowed']
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { ForbiddenExceptionResponse } from '@nestbox-ai/documents';
|
|
14
|
+
|
|
15
|
+
const instance: ForbiddenExceptionResponse = {
|
|
16
|
+
message,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# MessageResponseDTO
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { MessageResponseDTO } from '@nestbox-ai/documents';
|
|
14
|
+
|
|
15
|
+
const instance: MessageResponseDTO = {
|
|
16
|
+
message,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# NotFoundExceptionResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [default to 'Not Found']
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { NotFoundExceptionResponse } from '@nestbox-ai/documents';
|
|
14
|
+
|
|
15
|
+
const instance: NotFoundExceptionResponse = {
|
|
16
|
+
message,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# SimilaritySearchQueryDTO
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**query** | **string** | | [default to undefined]
|
|
9
|
+
**params** | **object** | | [default to undefined]
|
|
10
|
+
**filter** | **object** | | [default to undefined]
|
|
11
|
+
**include** | **Array<string>** | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { SimilaritySearchQueryDTO } from '@nestbox-ai/documents';
|
|
17
|
+
|
|
18
|
+
const instance: SimilaritySearchQueryDTO = {
|
|
19
|
+
query,
|
|
20
|
+
params,
|
|
21
|
+
filter,
|
|
22
|
+
include,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UnauthorizedExceptionResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [default to 'Not Authorized']
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { UnauthorizedExceptionResponse } from '@nestbox-ai/documents';
|
|
14
|
+
|
|
15
|
+
const instance: UnauthorizedExceptionResponse = {
|
|
16
|
+
message,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# UpdateDocumentRequestDTO
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**document** | **string** | | [default to undefined]
|
|
9
|
+
**metadata** | **object** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { UpdateDocumentRequestDTO } from '@nestbox-ai/documents';
|
|
15
|
+
|
|
16
|
+
const instance: UpdateDocumentRequestDTO = {
|
|
17
|
+
document,
|
|
18
|
+
metadata,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|