@nestbox-ai/documents 1.0.49 → 1.0.60

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/common.ts CHANGED
@@ -12,22 +12,16 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
15
  import type { Configuration } from "./configuration";
17
16
  import type { RequestArgs } from "./base";
18
17
  import type { AxiosInstance, AxiosResponse } from 'axios';
19
18
  import { RequiredError } from "./base";
20
19
 
21
- /**
22
- *
23
- * @export
24
- */
25
20
  export const DUMMY_BASE_URL = 'https://example.com'
26
21
 
27
22
  /**
28
23
  *
29
24
  * @throws {RequiredError}
30
- * @export
31
25
  */
32
26
  export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {
33
27
  if (paramValue === null || paramValue === undefined) {
@@ -35,10 +29,6 @@ export const assertParamExists = function (functionName: string, paramName: stri
35
29
  }
36
30
  }
37
31
 
38
- /**
39
- *
40
- * @export
41
- */
42
32
  export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {
43
33
  if (configuration && configuration.apiKey) {
44
34
  const localVarApiKeyValue = typeof configuration.apiKey === 'function'
@@ -48,20 +38,12 @@ export const setApiKeyToObject = async function (object: any, keyParamName: stri
48
38
  }
49
39
  }
50
40
 
51
- /**
52
- *
53
- * @export
54
- */
55
41
  export const setBasicAuthToObject = function (object: any, configuration?: Configuration) {
56
42
  if (configuration && (configuration.username || configuration.password)) {
57
43
  object["auth"] = { username: configuration.username, password: configuration.password };
58
44
  }
59
45
  }
60
46
 
61
- /**
62
- *
63
- * @export
64
- */
65
47
  export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {
66
48
  if (configuration && configuration.accessToken) {
67
49
  const accessToken = typeof configuration.accessToken === 'function'
@@ -71,10 +53,6 @@ export const setBearerAuthToObject = async function (object: any, configuration?
71
53
  }
72
54
  }
73
55
 
74
- /**
75
- *
76
- * @export
77
- */
78
56
  export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {
79
57
  if (configuration && configuration.accessToken) {
80
58
  const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
@@ -84,10 +62,11 @@ export const setOAuthToObject = async function (object: any, name: string, scope
84
62
  }
85
63
  }
86
64
 
65
+
87
66
  function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void {
88
67
  if (parameter == null) return;
89
68
  if (typeof parameter === "object") {
90
- if (Array.isArray(parameter)) {
69
+ if (Array.isArray(parameter) || parameter instanceof Set) {
91
70
  (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
92
71
  }
93
72
  else {
@@ -106,10 +85,6 @@ function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: an
106
85
  }
107
86
  }
108
87
 
109
- /**
110
- *
111
- * @export
112
- */
113
88
  export const setSearchParams = function (url: URL, ...objects: any[]) {
114
89
  const searchParams = new URLSearchParams(url.search);
115
90
  setFlattenedQueryParams(searchParams, objects);
@@ -117,31 +92,32 @@ export const setSearchParams = function (url: URL, ...objects: any[]) {
117
92
  }
118
93
 
119
94
  /**
120
- *
121
- * @export
95
+ * JSON serialization helper function which replaces instances of unserializable types with serializable ones.
96
+ * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
97
+ * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
122
98
  */
99
+ export const replaceWithSerializableTypeIfNeeded = function(key: any, value: any) {
100
+ if (value instanceof Set) {
101
+ return Array.from(value);
102
+ } else {
103
+ return value;
104
+ }
105
+ }
106
+
123
107
  export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {
124
108
  const nonString = typeof value !== 'string';
125
109
  const needsSerialization = nonString && configuration && configuration.isJsonMime
126
110
  ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
127
111
  : nonString;
128
112
  return needsSerialization
129
- ? JSON.stringify(value !== undefined ? value : {})
113
+ ? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)
130
114
  : (value || "");
131
115
  }
132
116
 
133
- /**
134
- *
135
- * @export
136
- */
137
117
  export const toPathString = function (url: URL) {
138
118
  return url.pathname + url.search + url.hash
139
119
  }
140
120
 
141
- /**
142
- *
143
- * @export
144
- */
145
121
  export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
146
122
  return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
147
123
  const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};
package/configuration.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  /* tslint:disable */
2
- /* eslint-disable */
3
2
  /**
4
3
  * Nestbox API Documents API
5
4
  * API for Nestbox Documents, control your documents
@@ -12,12 +11,24 @@
12
11
  * Do not edit the class manually.
13
12
  */
14
13
 
14
+ interface AWSv4Configuration {
15
+ options?: {
16
+ region?: string
17
+ service?: string
18
+ }
19
+ credentials?: {
20
+ accessKeyId?: string
21
+ secretAccessKey?: string,
22
+ sessionToken?: string
23
+ }
24
+ }
15
25
 
16
26
  export interface ConfigurationParameters {
17
27
  apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
18
28
  username?: string;
19
29
  password?: string;
20
30
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
31
+ awsv4?: AWSv4Configuration;
21
32
  basePath?: string;
22
33
  serverIndex?: number;
23
34
  baseOptions?: any;
@@ -28,49 +39,43 @@ export class Configuration {
28
39
  /**
29
40
  * parameter for apiKey security
30
41
  * @param name security name
31
- * @memberof Configuration
32
42
  */
33
43
  apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
34
44
  /**
35
45
  * parameter for basic security
36
- *
37
- * @type {string}
38
- * @memberof Configuration
39
46
  */
40
47
  username?: string;
41
48
  /**
42
49
  * parameter for basic security
43
- *
44
- * @type {string}
45
- * @memberof Configuration
46
50
  */
47
51
  password?: string;
48
52
  /**
49
53
  * parameter for oauth2 security
50
54
  * @param name security name
51
55
  * @param scopes oauth2 scope
52
- * @memberof Configuration
53
56
  */
54
57
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
55
58
  /**
56
- * override base path
57
- *
58
- * @type {string}
59
+ * parameter for aws4 signature security
60
+ * @param {Object} AWS4Signature - AWS4 Signature security
61
+ * @param {string} options.region - aws region
62
+ * @param {string} options.service - name of the service.
63
+ * @param {string} credentials.accessKeyId - aws access key id
64
+ * @param {string} credentials.secretAccessKey - aws access key
65
+ * @param {string} credentials.sessionToken - aws session token
59
66
  * @memberof Configuration
60
67
  */
68
+ awsv4?: AWSv4Configuration;
69
+ /**
70
+ * override base path
71
+ */
61
72
  basePath?: string;
62
73
  /**
63
74
  * override server index
64
- *
65
- * @type {number}
66
- * @memberof Configuration
67
75
  */
68
76
  serverIndex?: number;
69
77
  /**
70
78
  * base options for axios calls
71
- *
72
- * @type {any}
73
- * @memberof Configuration
74
79
  */
75
80
  baseOptions?: any;
76
81
  /**
@@ -87,6 +92,7 @@ export class Configuration {
87
92
  this.username = param.username;
88
93
  this.password = param.password;
89
94
  this.accessToken = param.accessToken;
95
+ this.awsv4 = param.awsv4;
90
96
  this.basePath = param.basePath;
91
97
  this.serverIndex = param.serverIndex;
92
98
  this.baseOptions = {
package/dist/api.d.ts CHANGED
@@ -13,212 +13,51 @@ import type { Configuration } from './configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import type { RequestArgs } from './base';
15
15
  import { BaseAPI } from './base';
16
- /**
17
- *
18
- * @export
19
- * @interface BadRequestExceptionResponse
20
- */
21
16
  export interface BadRequestExceptionResponse {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof BadRequestExceptionResponse
26
- */
27
17
  'message': string;
28
- /**
29
- *
30
- * @type {object}
31
- * @memberof BadRequestExceptionResponse
32
- */
33
18
  'errors': object | null;
34
19
  }
35
- /**
36
- *
37
- * @export
38
- * @interface ChunkFileRequestDTO
39
- */
40
20
  export interface ChunkFileRequestDTO {
41
- /**
42
- *
43
- * @type {string}
44
- * @memberof ChunkFileRequestDTO
45
- */
46
21
  'type': string;
47
- /**
48
- *
49
- * @type {string}
50
- * @memberof ChunkFileRequestDTO
51
- */
52
22
  'url': string;
53
- /**
54
- *
55
- * @type {object}
56
- * @memberof ChunkFileRequestDTO
57
- */
58
23
  'options': object;
59
24
  }
60
- /**
61
- *
62
- * @export
63
- * @interface CreateCollectionRequestDTO
64
- */
65
25
  export interface CreateCollectionRequestDTO {
66
- /**
67
- *
68
- * @type {string}
69
- * @memberof CreateCollectionRequestDTO
70
- */
71
26
  'name': string;
72
- /**
73
- *
74
- * @type {object}
75
- * @memberof CreateCollectionRequestDTO
76
- */
77
27
  'metadata': object;
78
28
  }
79
- /**
80
- *
81
- * @export
82
- * @interface CreateDocumentRequestDTO
83
- */
84
29
  export interface CreateDocumentRequestDTO {
85
- /**
86
- *
87
- * @type {string}
88
- * @memberof CreateDocumentRequestDTO
89
- */
90
30
  'id': string;
91
- /**
92
- *
93
- * @type {string}
94
- * @memberof CreateDocumentRequestDTO
95
- */
96
31
  'document': string;
97
- /**
98
- *
99
- * @type {object}
100
- * @memberof CreateDocumentRequestDTO
101
- */
102
32
  'metadata': object;
103
33
  }
104
- /**
105
- *
106
- * @export
107
- * @interface FatalErrorExceptionResponse
108
- */
109
34
  export interface FatalErrorExceptionResponse {
110
- /**
111
- *
112
- * @type {string}
113
- * @memberof FatalErrorExceptionResponse
114
- */
115
35
  'message': string;
116
36
  }
117
- /**
118
- *
119
- * @export
120
- * @interface ForbiddenExceptionResponse
121
- */
122
37
  export interface ForbiddenExceptionResponse {
123
- /**
124
- *
125
- * @type {string}
126
- * @memberof ForbiddenExceptionResponse
127
- */
128
38
  'message': string;
129
39
  }
130
- /**
131
- *
132
- * @export
133
- * @interface MessageResponseDTO
134
- */
135
40
  export interface MessageResponseDTO {
136
- /**
137
- *
138
- * @type {string}
139
- * @memberof MessageResponseDTO
140
- */
141
41
  'message': string;
142
42
  }
143
- /**
144
- *
145
- * @export
146
- * @interface NotFoundExceptionResponse
147
- */
148
43
  export interface NotFoundExceptionResponse {
149
- /**
150
- *
151
- * @type {string}
152
- * @memberof NotFoundExceptionResponse
153
- */
154
44
  'message': string;
155
45
  }
156
- /**
157
- *
158
- * @export
159
- * @interface SimilaritySearchQueryDTO
160
- */
161
46
  export interface SimilaritySearchQueryDTO {
162
- /**
163
- *
164
- * @type {string}
165
- * @memberof SimilaritySearchQueryDTO
166
- */
167
47
  'query': string;
168
- /**
169
- *
170
- * @type {object}
171
- * @memberof SimilaritySearchQueryDTO
172
- */
173
48
  'params': object;
174
- /**
175
- *
176
- * @type {object}
177
- * @memberof SimilaritySearchQueryDTO
178
- */
179
49
  'filter': object;
180
- /**
181
- *
182
- * @type {Array<string>}
183
- * @memberof SimilaritySearchQueryDTO
184
- */
185
50
  'include': Array<string>;
186
51
  }
187
- /**
188
- *
189
- * @export
190
- * @interface UnauthorizedExceptionResponse
191
- */
192
52
  export interface UnauthorizedExceptionResponse {
193
- /**
194
- *
195
- * @type {string}
196
- * @memberof UnauthorizedExceptionResponse
197
- */
198
53
  'message': string;
199
54
  }
200
- /**
201
- *
202
- * @export
203
- * @interface UpdateDocumentRequestDTO
204
- */
205
55
  export interface UpdateDocumentRequestDTO {
206
- /**
207
- *
208
- * @type {string}
209
- * @memberof UpdateDocumentRequestDTO
210
- */
211
56
  'document': string;
212
- /**
213
- *
214
- * @type {object}
215
- * @memberof UpdateDocumentRequestDTO
216
- */
217
57
  'metadata': object;
218
58
  }
219
59
  /**
220
60
  * AppApi - axios parameter creator
221
- * @export
222
61
  */
223
62
  export declare const AppApiAxiosParamCreator: (configuration?: Configuration) => {
224
63
  /**
@@ -230,7 +69,6 @@ export declare const AppApiAxiosParamCreator: (configuration?: Configuration) =>
230
69
  };
231
70
  /**
232
71
  * AppApi - functional programming interface
233
- * @export
234
72
  */
235
73
  export declare const AppApiFp: (configuration?: Configuration) => {
236
74
  /**
@@ -242,7 +80,6 @@ export declare const AppApiFp: (configuration?: Configuration) => {
242
80
  };
243
81
  /**
244
82
  * AppApi - factory interface
245
- * @export
246
83
  */
247
84
  export declare const AppApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
248
85
  /**
@@ -254,22 +91,17 @@ export declare const AppApiFactory: (configuration?: Configuration, basePath?: s
254
91
  };
255
92
  /**
256
93
  * AppApi - object-oriented interface
257
- * @export
258
- * @class AppApi
259
- * @extends {BaseAPI}
260
94
  */
261
95
  export declare class AppApi extends BaseAPI {
262
96
  /**
263
97
  *
264
98
  * @param {*} [options] Override http request option.
265
99
  * @throws {RequiredError}
266
- * @memberof AppApi
267
100
  */
268
- appControllerGetHello(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
101
+ appControllerGetHello(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
269
102
  }
270
103
  /**
271
104
  * CollectionApi - axios parameter creator
272
- * @export
273
105
  */
274
106
  export declare const CollectionApiAxiosParamCreator: (configuration?: Configuration) => {
275
107
  /**
@@ -379,7 +211,6 @@ export declare const CollectionApiAxiosParamCreator: (configuration?: Configurat
379
211
  };
380
212
  /**
381
213
  * CollectionApi - functional programming interface
382
- * @export
383
214
  */
384
215
  export declare const CollectionApiFp: (configuration?: Configuration) => {
385
216
  /**
@@ -489,7 +320,6 @@ export declare const CollectionApiFp: (configuration?: Configuration) => {
489
320
  };
490
321
  /**
491
322
  * CollectionApi - factory interface
492
- * @export
493
323
  */
494
324
  export declare const CollectionApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
495
325
  /**
@@ -599,9 +429,6 @@ export declare const CollectionApiFactory: (configuration?: Configuration, baseP
599
429
  };
600
430
  /**
601
431
  * CollectionApi - object-oriented interface
602
- * @export
603
- * @class CollectionApi
604
- * @extends {BaseAPI}
605
432
  */
606
433
  export declare class CollectionApi extends BaseAPI {
607
434
  /**
@@ -611,9 +438,8 @@ export declare class CollectionApi extends BaseAPI {
611
438
  * @param {CreateDocumentRequestDTO} createDocumentRequestDTO
612
439
  * @param {*} [options] Override http request option.
613
440
  * @throws {RequiredError}
614
- * @memberof CollectionApi
615
441
  */
616
- collectionControllerAddDocToCollection(collectionId: string, createDocumentRequestDTO: CreateDocumentRequestDTO, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessageResponseDTO, any>>;
442
+ collectionControllerAddDocToCollection(collectionId: string, createDocumentRequestDTO: CreateDocumentRequestDTO, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessageResponseDTO, any, {}>>;
617
443
  /**
618
444
  *
619
445
  * @summary Use a file to chunk and add to collection
@@ -621,27 +447,24 @@ export declare class CollectionApi extends BaseAPI {
621
447
  * @param {ChunkFileRequestDTO} chunkFileRequestDTO
622
448
  * @param {*} [options] Override http request option.
623
449
  * @throws {RequiredError}
624
- * @memberof CollectionApi
625
450
  */
626
- collectionControllerChunkFileToCollection(collectionId: string, chunkFileRequestDTO: ChunkFileRequestDTO, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessageResponseDTO, any>>;
451
+ collectionControllerChunkFileToCollection(collectionId: string, chunkFileRequestDTO: ChunkFileRequestDTO, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessageResponseDTO, any, {}>>;
627
452
  /**
628
453
  *
629
454
  * @summary Create a new collection
630
455
  * @param {CreateCollectionRequestDTO} createCollectionRequestDTO
631
456
  * @param {*} [options] Override http request option.
632
457
  * @throws {RequiredError}
633
- * @memberof CollectionApi
634
458
  */
635
- collectionControllerCreateCollection(createCollectionRequestDTO: CreateCollectionRequestDTO, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessageResponseDTO, any>>;
459
+ collectionControllerCreateCollection(createCollectionRequestDTO: CreateCollectionRequestDTO, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessageResponseDTO, any, {}>>;
636
460
  /**
637
461
  *
638
462
  * @summary Delete a collection
639
463
  * @param {string} collectionId
640
464
  * @param {*} [options] Override http request option.
641
465
  * @throws {RequiredError}
642
- * @memberof CollectionApi
643
466
  */
644
- collectionControllerDeleteCollection(collectionId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessageResponseDTO, any>>;
467
+ collectionControllerDeleteCollection(collectionId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessageResponseDTO, any, {}>>;
645
468
  /**
646
469
  *
647
470
  * @summary Delete doc by ID
@@ -649,9 +472,8 @@ export declare class CollectionApi extends BaseAPI {
649
472
  * @param {string} docId
650
473
  * @param {*} [options] Override http request option.
651
474
  * @throws {RequiredError}
652
- * @memberof CollectionApi
653
475
  */
654
- collectionControllerDeleteDoc(collectionId: string, docId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessageResponseDTO, any>>;
476
+ collectionControllerDeleteDoc(collectionId: string, docId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessageResponseDTO, any, {}>>;
655
477
  /**
656
478
  *
657
479
  * @summary Delete docs based on metadata filter
@@ -659,26 +481,23 @@ export declare class CollectionApi extends BaseAPI {
659
481
  * @param {string} filter
660
482
  * @param {*} [options] Override http request option.
661
483
  * @throws {RequiredError}
662
- * @memberof CollectionApi
663
484
  */
664
- collectionControllerDeleteDocsByMetadata(collectionId: string, filter: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessageResponseDTO, any>>;
485
+ collectionControllerDeleteDocsByMetadata(collectionId: string, filter: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessageResponseDTO, any, {}>>;
665
486
  /**
666
487
  *
667
488
  * @summary Get a collection info
668
489
  * @param {string} collectionId
669
490
  * @param {*} [options] Override http request option.
670
491
  * @throws {RequiredError}
671
- * @memberof CollectionApi
672
492
  */
673
- collectionControllerGetCollection(collectionId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessageResponseDTO, any>>;
493
+ collectionControllerGetCollection(collectionId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessageResponseDTO, any, {}>>;
674
494
  /**
675
495
  *
676
496
  * @summary List all collections
677
497
  * @param {*} [options] Override http request option.
678
498
  * @throws {RequiredError}
679
- * @memberof CollectionApi
680
499
  */
681
- collectionControllerGetCollections(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessageResponseDTO, any>>;
500
+ collectionControllerGetCollections(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessageResponseDTO, any, {}>>;
682
501
  /**
683
502
  *
684
503
  * @summary Retrieve doc by ID
@@ -686,9 +505,8 @@ export declare class CollectionApi extends BaseAPI {
686
505
  * @param {string} docId
687
506
  * @param {*} [options] Override http request option.
688
507
  * @throws {RequiredError}
689
- * @memberof CollectionApi
690
508
  */
691
- collectionControllerGetDocById(collectionId: string, docId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessageResponseDTO, any>>;
509
+ collectionControllerGetDocById(collectionId: string, docId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessageResponseDTO, any, {}>>;
692
510
  /**
693
511
  *
694
512
  * @summary Similarity search query
@@ -696,9 +514,8 @@ export declare class CollectionApi extends BaseAPI {
696
514
  * @param {SimilaritySearchQueryDTO} similaritySearchQueryDTO
697
515
  * @param {*} [options] Override http request option.
698
516
  * @throws {RequiredError}
699
- * @memberof CollectionApi
700
517
  */
701
- collectionControllerSimilaritySearch(collectionId: string, similaritySearchQueryDTO: SimilaritySearchQueryDTO, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessageResponseDTO, any>>;
518
+ collectionControllerSimilaritySearch(collectionId: string, similaritySearchQueryDTO: SimilaritySearchQueryDTO, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessageResponseDTO, any, {}>>;
702
519
  /**
703
520
  *
704
521
  * @summary Updates a collection
@@ -706,9 +523,8 @@ export declare class CollectionApi extends BaseAPI {
706
523
  * @param {CreateCollectionRequestDTO} createCollectionRequestDTO
707
524
  * @param {*} [options] Override http request option.
708
525
  * @throws {RequiredError}
709
- * @memberof CollectionApi
710
526
  */
711
- collectionControllerUpdateCollection(collectionId: string, createCollectionRequestDTO: CreateCollectionRequestDTO, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessageResponseDTO, any>>;
527
+ collectionControllerUpdateCollection(collectionId: string, createCollectionRequestDTO: CreateCollectionRequestDTO, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessageResponseDTO, any, {}>>;
712
528
  /**
713
529
  *
714
530
  * @summary Update or upsert doc
@@ -717,7 +533,6 @@ export declare class CollectionApi extends BaseAPI {
717
533
  * @param {UpdateDocumentRequestDTO} updateDocumentRequestDTO
718
534
  * @param {*} [options] Override http request option.
719
535
  * @throws {RequiredError}
720
- * @memberof CollectionApi
721
536
  */
722
- collectionControllerUpdateDoc(collectionId: string, docId: string, updateDocumentRequestDTO: UpdateDocumentRequestDTO, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessageResponseDTO, any>>;
537
+ collectionControllerUpdateDoc(collectionId: string, docId: string, updateDocumentRequestDTO: UpdateDocumentRequestDTO, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessageResponseDTO, any, {}>>;
723
538
  }