chromadb 1.7.2 → 1.7.3-beta2

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.
@@ -2,10 +2,10 @@
2
2
  // tslint:disable
3
3
  /**
4
4
  * FastAPI
5
- *
5
+ *
6
6
  *
7
7
  * OpenAPI spec version: 0.1.0
8
- *
8
+ *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator+.
11
11
  * https://github.com/karlvr/openapi-generator-plus
@@ -53,7 +53,7 @@ export const ApiApiFetchParamCreator = function (configuration?: Configuration)
53
53
  localVarHeaderParameter.set('Content-Type', 'application/json');
54
54
 
55
55
  localVarRequestOptions.headers = localVarHeaderParameter;
56
-
56
+
57
57
  if (request !== undefined) {
58
58
  localVarRequestOptions.body = JSON.stringify(request || {});
59
59
  }
@@ -96,7 +96,7 @@ export const ApiApiFetchParamCreator = function (configuration?: Configuration)
96
96
  localVarHeaderParameter.set('Content-Type', 'application/json');
97
97
 
98
98
  localVarRequestOptions.headers = localVarHeaderParameter;
99
-
99
+
100
100
  if (request !== undefined) {
101
101
  localVarRequestOptions.body = JSON.stringify(request || {});
102
102
  }
@@ -139,7 +139,7 @@ export const ApiApiFetchParamCreator = function (configuration?: Configuration)
139
139
  localVarHeaderParameter.set('Content-Type', 'application/json');
140
140
 
141
141
  localVarRequestOptions.headers = localVarHeaderParameter;
142
-
142
+
143
143
  if (request !== undefined) {
144
144
  localVarRequestOptions.body = JSON.stringify(request || {});
145
145
  }
@@ -185,51 +185,13 @@ export const ApiApiFetchParamCreator = function (configuration?: Configuration)
185
185
  options: localVarRequestOptions,
186
186
  };
187
187
  },
188
- /**
189
- * @summary Count Collections
190
- * @param {string} [tenant]
191
- * @param {string} [database]
192
- * @param {RequestInit} [options] Override http request option.
193
- * @throws {RequiredError}
194
- */
195
- countCollections(tenant: string | undefined, database: string | undefined, options: RequestInit = {}): FetchArgs {
196
- let localVarPath = `/api/v1/count_collections`;
197
- const localVarPathQueryStart = localVarPath.indexOf("?");
198
- const localVarRequestOptions: RequestInit = Object.assign({ method: 'GET' }, options);
199
- const localVarHeaderParameter: Headers = options.headers ? new Headers(options.headers) : new Headers();
200
- const localVarQueryParameter = new URLSearchParams(localVarPathQueryStart !== -1 ? localVarPath.substring(localVarPathQueryStart + 1) : "");
201
- if (localVarPathQueryStart !== -1) {
202
- localVarPath = localVarPath.substring(0, localVarPathQueryStart);
203
- }
204
-
205
- if (tenant !== undefined) {
206
- localVarQueryParameter.append('tenant', String(tenant));
207
- }
208
-
209
- if (database !== undefined) {
210
- localVarQueryParameter.append('database', String(database));
211
- }
212
-
213
- localVarRequestOptions.headers = localVarHeaderParameter;
214
-
215
- const localVarQueryParameterString = localVarQueryParameter.toString();
216
- if (localVarQueryParameterString) {
217
- localVarPath += "?" + localVarQueryParameterString;
218
- }
219
- return {
220
- url: localVarPath,
221
- options: localVarRequestOptions,
222
- };
223
- },
224
188
  /**
225
189
  * @summary Create Collection
226
- * @param {string} [tenant]
227
- * @param {string} [database]
228
190
  * @param {Api.CreateCollection} request
229
191
  * @param {RequestInit} [options] Override http request option.
230
192
  * @throws {RequiredError}
231
193
  */
232
- createCollection(tenant: string | undefined, database: string | undefined, request: Api.CreateCollection, options: RequestInit = {}): FetchArgs {
194
+ createCollection(request: Api.CreateCollection, options: RequestInit = {}): FetchArgs {
233
195
  // verify required parameter 'request' is not null or undefined
234
196
  if (request === null || request === undefined) {
235
197
  throw new RequiredError('request', 'Required parameter request was null or undefined when calling createCollection.');
@@ -243,97 +205,10 @@ export const ApiApiFetchParamCreator = function (configuration?: Configuration)
243
205
  localVarPath = localVarPath.substring(0, localVarPathQueryStart);
244
206
  }
245
207
 
246
- if (tenant !== undefined) {
247
- localVarQueryParameter.append('tenant', String(tenant));
248
- }
249
-
250
- if (database !== undefined) {
251
- localVarQueryParameter.append('database', String(database));
252
- }
253
-
254
208
  localVarHeaderParameter.set('Content-Type', 'application/json');
255
209
 
256
210
  localVarRequestOptions.headers = localVarHeaderParameter;
257
-
258
- if (request !== undefined) {
259
- localVarRequestOptions.body = JSON.stringify(request || {});
260
- }
261
-
262
- const localVarQueryParameterString = localVarQueryParameter.toString();
263
- if (localVarQueryParameterString) {
264
- localVarPath += "?" + localVarQueryParameterString;
265
- }
266
- return {
267
- url: localVarPath,
268
- options: localVarRequestOptions,
269
- };
270
- },
271
- /**
272
- * @summary Create Database
273
- * @param {string} [tenant]
274
- * @param {Api.CreateDatabase} request
275
- * @param {RequestInit} [options] Override http request option.
276
- * @throws {RequiredError}
277
- */
278
- createDatabase(tenant: string | undefined, request: Api.CreateDatabase, options: RequestInit = {}): FetchArgs {
279
- // verify required parameter 'request' is not null or undefined
280
- if (request === null || request === undefined) {
281
- throw new RequiredError('request', 'Required parameter request was null or undefined when calling createDatabase.');
282
- }
283
- let localVarPath = `/api/v1/databases`;
284
- const localVarPathQueryStart = localVarPath.indexOf("?");
285
- const localVarRequestOptions: RequestInit = Object.assign({ method: 'POST' }, options);
286
- const localVarHeaderParameter: Headers = options.headers ? new Headers(options.headers) : new Headers();
287
- const localVarQueryParameter = new URLSearchParams(localVarPathQueryStart !== -1 ? localVarPath.substring(localVarPathQueryStart + 1) : "");
288
- if (localVarPathQueryStart !== -1) {
289
- localVarPath = localVarPath.substring(0, localVarPathQueryStart);
290
- }
291
-
292
- if (tenant !== undefined) {
293
- localVarQueryParameter.append('tenant', String(tenant));
294
- }
295
-
296
- localVarHeaderParameter.set('Content-Type', 'application/json');
297
-
298
- localVarRequestOptions.headers = localVarHeaderParameter;
299
-
300
- if (request !== undefined) {
301
- localVarRequestOptions.body = JSON.stringify(request || {});
302
- }
303
-
304
- const localVarQueryParameterString = localVarQueryParameter.toString();
305
- if (localVarQueryParameterString) {
306
- localVarPath += "?" + localVarQueryParameterString;
307
- }
308
- return {
309
- url: localVarPath,
310
- options: localVarRequestOptions,
311
- };
312
- },
313
- /**
314
- * @summary Create Tenant
315
- * @param {Api.CreateTenant} request
316
- * @param {RequestInit} [options] Override http request option.
317
- * @throws {RequiredError}
318
- */
319
- createTenant(request: Api.CreateTenant, options: RequestInit = {}): FetchArgs {
320
- // verify required parameter 'request' is not null or undefined
321
- if (request === null || request === undefined) {
322
- throw new RequiredError('request', 'Required parameter request was null or undefined when calling createTenant.');
323
- }
324
- let localVarPath = `/api/v1/tenants`;
325
- const localVarPathQueryStart = localVarPath.indexOf("?");
326
- const localVarRequestOptions: RequestInit = Object.assign({ method: 'POST' }, options);
327
- const localVarHeaderParameter: Headers = options.headers ? new Headers(options.headers) : new Headers();
328
- const localVarQueryParameter = new URLSearchParams(localVarPathQueryStart !== -1 ? localVarPath.substring(localVarPathQueryStart + 1) : "");
329
- if (localVarPathQueryStart !== -1) {
330
- localVarPath = localVarPath.substring(0, localVarPathQueryStart);
331
- }
332
-
333
- localVarHeaderParameter.set('Content-Type', 'application/json');
334
211
 
335
- localVarRequestOptions.headers = localVarHeaderParameter;
336
-
337
212
  if (request !== undefined) {
338
213
  localVarRequestOptions.body = JSON.stringify(request || {});
339
214
  }
@@ -350,12 +225,10 @@ export const ApiApiFetchParamCreator = function (configuration?: Configuration)
350
225
  /**
351
226
  * @summary Delete Collection
352
227
  * @param {string} collectionName
353
- * @param {string} [tenant]
354
- * @param {string} [database]
355
228
  * @param {RequestInit} [options] Override http request option.
356
229
  * @throws {RequiredError}
357
230
  */
358
- deleteCollection(collectionName: string, tenant: string | undefined, database: string | undefined, options: RequestInit = {}): FetchArgs {
231
+ deleteCollection(collectionName: string, options: RequestInit = {}): FetchArgs {
359
232
  // verify required parameter 'collectionName' is not null or undefined
360
233
  if (collectionName === null || collectionName === undefined) {
361
234
  throw new RequiredError('collectionName', 'Required parameter collectionName was null or undefined when calling deleteCollection.');
@@ -370,14 +243,6 @@ export const ApiApiFetchParamCreator = function (configuration?: Configuration)
370
243
  localVarPath = localVarPath.substring(0, localVarPathQueryStart);
371
244
  }
372
245
 
373
- if (tenant !== undefined) {
374
- localVarQueryParameter.append('tenant', String(tenant));
375
- }
376
-
377
- if (database !== undefined) {
378
- localVarQueryParameter.append('database', String(database));
379
- }
380
-
381
246
  localVarRequestOptions.headers = localVarHeaderParameter;
382
247
 
383
248
  const localVarQueryParameterString = localVarQueryParameter.toString();
@@ -392,12 +257,10 @@ export const ApiApiFetchParamCreator = function (configuration?: Configuration)
392
257
  /**
393
258
  * @summary Get Collection
394
259
  * @param {string} collectionName
395
- * @param {string} [tenant]
396
- * @param {string} [database]
397
260
  * @param {RequestInit} [options] Override http request option.
398
261
  * @throws {RequiredError}
399
262
  */
400
- getCollection(collectionName: string, tenant: string | undefined, database: string | undefined, options: RequestInit = {}): FetchArgs {
263
+ getCollection(collectionName: string, options: RequestInit = {}): FetchArgs {
401
264
  // verify required parameter 'collectionName' is not null or undefined
402
265
  if (collectionName === null || collectionName === undefined) {
403
266
  throw new RequiredError('collectionName', 'Required parameter collectionName was null or undefined when calling getCollection.');
@@ -412,51 +275,6 @@ export const ApiApiFetchParamCreator = function (configuration?: Configuration)
412
275
  localVarPath = localVarPath.substring(0, localVarPathQueryStart);
413
276
  }
414
277
 
415
- if (tenant !== undefined) {
416
- localVarQueryParameter.append('tenant', String(tenant));
417
- }
418
-
419
- if (database !== undefined) {
420
- localVarQueryParameter.append('database', String(database));
421
- }
422
-
423
- localVarRequestOptions.headers = localVarHeaderParameter;
424
-
425
- const localVarQueryParameterString = localVarQueryParameter.toString();
426
- if (localVarQueryParameterString) {
427
- localVarPath += "?" + localVarQueryParameterString;
428
- }
429
- return {
430
- url: localVarPath,
431
- options: localVarRequestOptions,
432
- };
433
- },
434
- /**
435
- * @summary Get Database
436
- * @param {string} database
437
- * @param {string} [tenant]
438
- * @param {RequestInit} [options] Override http request option.
439
- * @throws {RequiredError}
440
- */
441
- getDatabase(database: string, tenant: string | undefined, options: RequestInit = {}): FetchArgs {
442
- // verify required parameter 'database' is not null or undefined
443
- if (database === null || database === undefined) {
444
- throw new RequiredError('database', 'Required parameter database was null or undefined when calling getDatabase.');
445
- }
446
- let localVarPath = `/api/v1/databases/{database}`
447
- .replace('{database}', encodeURIComponent(String(database)));
448
- const localVarPathQueryStart = localVarPath.indexOf("?");
449
- const localVarRequestOptions: RequestInit = Object.assign({ method: 'GET' }, options);
450
- const localVarHeaderParameter: Headers = options.headers ? new Headers(options.headers) : new Headers();
451
- const localVarQueryParameter = new URLSearchParams(localVarPathQueryStart !== -1 ? localVarPath.substring(localVarPathQueryStart + 1) : "");
452
- if (localVarPathQueryStart !== -1) {
453
- localVarPath = localVarPath.substring(0, localVarPathQueryStart);
454
- }
455
-
456
- if (tenant !== undefined) {
457
- localVarQueryParameter.append('tenant', String(tenant));
458
- }
459
-
460
278
  localVarRequestOptions.headers = localVarHeaderParameter;
461
279
 
462
280
  const localVarQueryParameterString = localVarQueryParameter.toString();
@@ -497,7 +315,7 @@ export const ApiApiFetchParamCreator = function (configuration?: Configuration)
497
315
  localVarHeaderParameter.set('Content-Type', 'application/json');
498
316
 
499
317
  localVarRequestOptions.headers = localVarHeaderParameter;
500
-
318
+
501
319
  if (request !== undefined) {
502
320
  localVarRequestOptions.body = JSON.stringify(request || {});
503
321
  }
@@ -511,38 +329,6 @@ export const ApiApiFetchParamCreator = function (configuration?: Configuration)
511
329
  options: localVarRequestOptions,
512
330
  };
513
331
  },
514
- /**
515
- * @summary Get Tenant
516
- * @param {string} tenant
517
- * @param {RequestInit} [options] Override http request option.
518
- * @throws {RequiredError}
519
- */
520
- getTenant(tenant: string, options: RequestInit = {}): FetchArgs {
521
- // verify required parameter 'tenant' is not null or undefined
522
- if (tenant === null || tenant === undefined) {
523
- throw new RequiredError('tenant', 'Required parameter tenant was null or undefined when calling getTenant.');
524
- }
525
- let localVarPath = `/api/v1/tenants/{tenant}`
526
- .replace('{tenant}', encodeURIComponent(String(tenant)));
527
- const localVarPathQueryStart = localVarPath.indexOf("?");
528
- const localVarRequestOptions: RequestInit = Object.assign({ method: 'GET' }, options);
529
- const localVarHeaderParameter: Headers = options.headers ? new Headers(options.headers) : new Headers();
530
- const localVarQueryParameter = new URLSearchParams(localVarPathQueryStart !== -1 ? localVarPath.substring(localVarPathQueryStart + 1) : "");
531
- if (localVarPathQueryStart !== -1) {
532
- localVarPath = localVarPath.substring(0, localVarPathQueryStart);
533
- }
534
-
535
- localVarRequestOptions.headers = localVarHeaderParameter;
536
-
537
- const localVarQueryParameterString = localVarQueryParameter.toString();
538
- if (localVarQueryParameterString) {
539
- localVarPath += "?" + localVarQueryParameterString;
540
- }
541
- return {
542
- url: localVarPath,
543
- options: localVarRequestOptions,
544
- };
545
- },
546
332
  /**
547
333
  * @summary Heartbeat
548
334
  * @param {RequestInit} [options] Override http request option.
@@ -571,14 +357,10 @@ export const ApiApiFetchParamCreator = function (configuration?: Configuration)
571
357
  },
572
358
  /**
573
359
  * @summary List Collections
574
- * @param {string} [tenant]
575
- * @param {string} [database]
576
- * @param {number} [limit]
577
- * @param {number} [offset]
578
360
  * @param {RequestInit} [options] Override http request option.
579
361
  * @throws {RequiredError}
580
362
  */
581
- listCollections(tenant: string | undefined, database: string | undefined, limit: number | undefined, offset: number | undefined, options: RequestInit = {}): FetchArgs {
363
+ listCollections(options: RequestInit = {}): FetchArgs {
582
364
  let localVarPath = `/api/v1/collections`;
583
365
  const localVarPathQueryStart = localVarPath.indexOf("?");
584
366
  const localVarRequestOptions: RequestInit = Object.assign({ method: 'GET' }, options);
@@ -588,48 +370,6 @@ export const ApiApiFetchParamCreator = function (configuration?: Configuration)
588
370
  localVarPath = localVarPath.substring(0, localVarPathQueryStart);
589
371
  }
590
372
 
591
- if (tenant !== undefined) {
592
- localVarQueryParameter.append('tenant', String(tenant));
593
- }
594
-
595
- if (database !== undefined) {
596
- localVarQueryParameter.append('database', String(database));
597
- }
598
-
599
- if (limit !== undefined) {
600
- localVarQueryParameter.append('limit', String(limit));
601
- }
602
-
603
- if (offset !== undefined) {
604
- localVarQueryParameter.append('offset', String(offset));
605
- }
606
-
607
- localVarRequestOptions.headers = localVarHeaderParameter;
608
-
609
- const localVarQueryParameterString = localVarQueryParameter.toString();
610
- if (localVarQueryParameterString) {
611
- localVarPath += "?" + localVarQueryParameterString;
612
- }
613
- return {
614
- url: localVarPath,
615
- options: localVarRequestOptions,
616
- };
617
- },
618
- /**
619
- * @summary Pre Flight Checks
620
- * @param {RequestInit} [options] Override http request option.
621
- * @throws {RequiredError}
622
- */
623
- preFlightChecks(options: RequestInit = {}): FetchArgs {
624
- let localVarPath = `/api/v1/pre-flight-checks`;
625
- const localVarPathQueryStart = localVarPath.indexOf("?");
626
- const localVarRequestOptions: RequestInit = Object.assign({ method: 'GET' }, options);
627
- const localVarHeaderParameter: Headers = options.headers ? new Headers(options.headers) : new Headers();
628
- const localVarQueryParameter = new URLSearchParams(localVarPathQueryStart !== -1 ? localVarPath.substring(localVarPathQueryStart + 1) : "");
629
- if (localVarPathQueryStart !== -1) {
630
- localVarPath = localVarPath.substring(0, localVarPathQueryStart);
631
- }
632
-
633
373
  localVarRequestOptions.headers = localVarHeaderParameter;
634
374
 
635
375
  const localVarQueryParameterString = localVarQueryParameter.toString();
@@ -722,7 +462,7 @@ export const ApiApiFetchParamCreator = function (configuration?: Configuration)
722
462
  localVarHeaderParameter.set('Content-Type', 'application/json');
723
463
 
724
464
  localVarRequestOptions.headers = localVarHeaderParameter;
725
-
465
+
726
466
  if (request !== undefined) {
727
467
  localVarRequestOptions.body = JSON.stringify(request || {});
728
468
  }
@@ -765,7 +505,7 @@ export const ApiApiFetchParamCreator = function (configuration?: Configuration)
765
505
  localVarHeaderParameter.set('Content-Type', 'application/json');
766
506
 
767
507
  localVarRequestOptions.headers = localVarHeaderParameter;
768
-
508
+
769
509
  if (request !== undefined) {
770
510
  localVarRequestOptions.body = JSON.stringify(request || {});
771
511
  }
@@ -808,7 +548,7 @@ export const ApiApiFetchParamCreator = function (configuration?: Configuration)
808
548
  localVarHeaderParameter.set('Content-Type', 'application/json');
809
549
 
810
550
  localVarRequestOptions.headers = localVarHeaderParameter;
811
-
551
+
812
552
  if (request !== undefined) {
813
553
  localVarRequestOptions.body = JSON.stringify(request || {});
814
554
  }
@@ -870,7 +610,7 @@ export const ApiApiFp = function(configuration?: Configuration) {
870
610
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
871
611
  const contentType = response.headers.get('Content-Type');
872
612
  const mimeType = contentType ? contentType.replace(/;.*/, '') : undefined;
873
-
613
+
874
614
  if (response.status === 201) {
875
615
  if (mimeType === 'application/json') {
876
616
  return response.json() as any;
@@ -900,7 +640,7 @@ export const ApiApiFp = function(configuration?: Configuration) {
900
640
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
901
641
  const contentType = response.headers.get('Content-Type');
902
642
  const mimeType = contentType ? contentType.replace(/;.*/, '') : undefined;
903
-
643
+
904
644
  if (response.status === 200) {
905
645
  if (mimeType === 'application/json') {
906
646
  return response.json() as any;
@@ -930,7 +670,7 @@ export const ApiApiFp = function(configuration?: Configuration) {
930
670
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
931
671
  const contentType = response.headers.get('Content-Type');
932
672
  const mimeType = contentType ? contentType.replace(/;.*/, '') : undefined;
933
-
673
+
934
674
  if (response.status === 200) {
935
675
  if (mimeType === 'application/json') {
936
676
  return response.json() as any;
@@ -959,37 +699,7 @@ export const ApiApiFp = function(configuration?: Configuration) {
959
699
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
960
700
  const contentType = response.headers.get('Content-Type');
961
701
  const mimeType = contentType ? contentType.replace(/;.*/, '') : undefined;
962
-
963
- if (response.status === 200) {
964
- if (mimeType === 'application/json') {
965
- return response.json() as any;
966
- }
967
- throw response;
968
- }
969
- if (response.status === 422) {
970
- if (mimeType === 'application/json') {
971
- throw response;
972
- }
973
- throw response;
974
- }
975
- throw response;
976
- });
977
- };
978
- },
979
- /**
980
- * @summary Count Collections
981
- * @param {string} [tenant]
982
- * @param {string} [database]
983
- * @param {RequestInit} [options] Override http request option.
984
- * @throws {RequiredError}
985
- */
986
- countCollections(tenant: string | undefined, database: string | undefined, options?: RequestInit): (fetch?: FetchAPI, basePath?: string) => Promise<Api.CountCollections200Response> {
987
- const localVarFetchArgs = ApiApiFetchParamCreator(configuration).countCollections(tenant, database, options);
988
- return (fetch: FetchAPI = defaultFetch, basePath: string = BASE_PATH) => {
989
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
990
- const contentType = response.headers.get('Content-Type');
991
- const mimeType = contentType ? contentType.replace(/;.*/, '') : undefined;
992
-
702
+
993
703
  if (response.status === 200) {
994
704
  if (mimeType === 'application/json') {
995
705
  return response.json() as any;
@@ -1008,78 +718,17 @@ export const ApiApiFp = function(configuration?: Configuration) {
1008
718
  },
1009
719
  /**
1010
720
  * @summary Create Collection
1011
- * @param {string} [tenant]
1012
- * @param {string} [database]
1013
721
  * @param {Api.CreateCollection} request
1014
722
  * @param {RequestInit} [options] Override http request option.
1015
723
  * @throws {RequiredError}
1016
724
  */
1017
- createCollection(tenant: string | undefined, database: string | undefined, request: Api.CreateCollection, options?: RequestInit): (fetch?: FetchAPI, basePath?: string) => Promise<Api.CreateCollection200Response> {
1018
- const localVarFetchArgs = ApiApiFetchParamCreator(configuration).createCollection(tenant, database, request, options);
725
+ createCollection(request: Api.CreateCollection, options?: RequestInit): (fetch?: FetchAPI, basePath?: string) => Promise<Api.CreateCollection200Response> {
726
+ const localVarFetchArgs = ApiApiFetchParamCreator(configuration).createCollection(request, options);
1019
727
  return (fetch: FetchAPI = defaultFetch, basePath: string = BASE_PATH) => {
1020
728
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
1021
729
  const contentType = response.headers.get('Content-Type');
1022
730
  const mimeType = contentType ? contentType.replace(/;.*/, '') : undefined;
1023
-
1024
- if (response.status === 200) {
1025
- if (mimeType === 'application/json') {
1026
- return response.json() as any;
1027
- }
1028
- throw response;
1029
- }
1030
- if (response.status === 422) {
1031
- if (mimeType === 'application/json') {
1032
- throw response;
1033
- }
1034
- throw response;
1035
- }
1036
- throw response;
1037
- });
1038
- };
1039
- },
1040
- /**
1041
- * @summary Create Database
1042
- * @param {string} [tenant]
1043
- * @param {Api.CreateDatabase} request
1044
- * @param {RequestInit} [options] Override http request option.
1045
- * @throws {RequiredError}
1046
- */
1047
- createDatabase(tenant: string | undefined, request: Api.CreateDatabase, options?: RequestInit): (fetch?: FetchAPI, basePath?: string) => Promise<Api.CreateDatabase200Response> {
1048
- const localVarFetchArgs = ApiApiFetchParamCreator(configuration).createDatabase(tenant, request, options);
1049
- return (fetch: FetchAPI = defaultFetch, basePath: string = BASE_PATH) => {
1050
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
1051
- const contentType = response.headers.get('Content-Type');
1052
- const mimeType = contentType ? contentType.replace(/;.*/, '') : undefined;
1053
-
1054
- if (response.status === 200) {
1055
- if (mimeType === 'application/json') {
1056
- return response.json() as any;
1057
- }
1058
- throw response;
1059
- }
1060
- if (response.status === 422) {
1061
- if (mimeType === 'application/json') {
1062
- throw response;
1063
- }
1064
- throw response;
1065
- }
1066
- throw response;
1067
- });
1068
- };
1069
- },
1070
- /**
1071
- * @summary Create Tenant
1072
- * @param {Api.CreateTenant} request
1073
- * @param {RequestInit} [options] Override http request option.
1074
- * @throws {RequiredError}
1075
- */
1076
- createTenant(request: Api.CreateTenant, options?: RequestInit): (fetch?: FetchAPI, basePath?: string) => Promise<Api.CreateTenant200Response> {
1077
- const localVarFetchArgs = ApiApiFetchParamCreator(configuration).createTenant(request, options);
1078
- return (fetch: FetchAPI = defaultFetch, basePath: string = BASE_PATH) => {
1079
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
1080
- const contentType = response.headers.get('Content-Type');
1081
- const mimeType = contentType ? contentType.replace(/;.*/, '') : undefined;
1082
-
731
+
1083
732
  if (response.status === 200) {
1084
733
  if (mimeType === 'application/json') {
1085
734
  return response.json() as any;
@@ -1099,18 +748,16 @@ export const ApiApiFp = function(configuration?: Configuration) {
1099
748
  /**
1100
749
  * @summary Delete Collection
1101
750
  * @param {string} collectionName
1102
- * @param {string} [tenant]
1103
- * @param {string} [database]
1104
751
  * @param {RequestInit} [options] Override http request option.
1105
752
  * @throws {RequiredError}
1106
753
  */
1107
- deleteCollection(collectionName: string, tenant: string | undefined, database: string | undefined, options?: RequestInit): (fetch?: FetchAPI, basePath?: string) => Promise<Api.DeleteCollection200Response> {
1108
- const localVarFetchArgs = ApiApiFetchParamCreator(configuration).deleteCollection(collectionName, tenant, database, options);
754
+ deleteCollection(collectionName: string, options?: RequestInit): (fetch?: FetchAPI, basePath?: string) => Promise<Api.DeleteCollection200Response> {
755
+ const localVarFetchArgs = ApiApiFetchParamCreator(configuration).deleteCollection(collectionName, options);
1109
756
  return (fetch: FetchAPI = defaultFetch, basePath: string = BASE_PATH) => {
1110
757
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
1111
758
  const contentType = response.headers.get('Content-Type');
1112
759
  const mimeType = contentType ? contentType.replace(/;.*/, '') : undefined;
1113
-
760
+
1114
761
  if (response.status === 200) {
1115
762
  if (mimeType === 'application/json') {
1116
763
  return response.json() as any;
@@ -1130,48 +777,16 @@ export const ApiApiFp = function(configuration?: Configuration) {
1130
777
  /**
1131
778
  * @summary Get Collection
1132
779
  * @param {string} collectionName
1133
- * @param {string} [tenant]
1134
- * @param {string} [database]
1135
- * @param {RequestInit} [options] Override http request option.
1136
- * @throws {RequiredError}
1137
- */
1138
- getCollection(collectionName: string, tenant: string | undefined, database: string | undefined, options?: RequestInit): (fetch?: FetchAPI, basePath?: string) => Promise<Api.GetCollection200Response> {
1139
- const localVarFetchArgs = ApiApiFetchParamCreator(configuration).getCollection(collectionName, tenant, database, options);
1140
- return (fetch: FetchAPI = defaultFetch, basePath: string = BASE_PATH) => {
1141
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
1142
- const contentType = response.headers.get('Content-Type');
1143
- const mimeType = contentType ? contentType.replace(/;.*/, '') : undefined;
1144
-
1145
- if (response.status === 200) {
1146
- if (mimeType === 'application/json') {
1147
- return response.json() as any;
1148
- }
1149
- throw response;
1150
- }
1151
- if (response.status === 422) {
1152
- if (mimeType === 'application/json') {
1153
- throw response;
1154
- }
1155
- throw response;
1156
- }
1157
- throw response;
1158
- });
1159
- };
1160
- },
1161
- /**
1162
- * @summary Get Database
1163
- * @param {string} database
1164
- * @param {string} [tenant]
1165
780
  * @param {RequestInit} [options] Override http request option.
1166
781
  * @throws {RequiredError}
1167
782
  */
1168
- getDatabase(database: string, tenant: string | undefined, options?: RequestInit): (fetch?: FetchAPI, basePath?: string) => Promise<Api.GetDatabase200Response> {
1169
- const localVarFetchArgs = ApiApiFetchParamCreator(configuration).getDatabase(database, tenant, options);
783
+ getCollection(collectionName: string, options?: RequestInit): (fetch?: FetchAPI, basePath?: string) => Promise<Api.GetCollection200Response> {
784
+ const localVarFetchArgs = ApiApiFetchParamCreator(configuration).getCollection(collectionName, options);
1170
785
  return (fetch: FetchAPI = defaultFetch, basePath: string = BASE_PATH) => {
1171
786
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
1172
787
  const contentType = response.headers.get('Content-Type');
1173
788
  const mimeType = contentType ? contentType.replace(/;.*/, '') : undefined;
1174
-
789
+
1175
790
  if (response.status === 200) {
1176
791
  if (mimeType === 'application/json') {
1177
792
  return response.json() as any;
@@ -1201,36 +816,7 @@ export const ApiApiFp = function(configuration?: Configuration) {
1201
816
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
1202
817
  const contentType = response.headers.get('Content-Type');
1203
818
  const mimeType = contentType ? contentType.replace(/;.*/, '') : undefined;
1204
-
1205
- if (response.status === 200) {
1206
- if (mimeType === 'application/json') {
1207
- return response.json() as any;
1208
- }
1209
- throw response;
1210
- }
1211
- if (response.status === 422) {
1212
- if (mimeType === 'application/json') {
1213
- throw response;
1214
- }
1215
- throw response;
1216
- }
1217
- throw response;
1218
- });
1219
- };
1220
- },
1221
- /**
1222
- * @summary Get Tenant
1223
- * @param {string} tenant
1224
- * @param {RequestInit} [options] Override http request option.
1225
- * @throws {RequiredError}
1226
- */
1227
- getTenant(tenant: string, options?: RequestInit): (fetch?: FetchAPI, basePath?: string) => Promise<Api.GetTenant200Response> {
1228
- const localVarFetchArgs = ApiApiFetchParamCreator(configuration).getTenant(tenant, options);
1229
- return (fetch: FetchAPI = defaultFetch, basePath: string = BASE_PATH) => {
1230
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
1231
- const contentType = response.headers.get('Content-Type');
1232
- const mimeType = contentType ? contentType.replace(/;.*/, '') : undefined;
1233
-
819
+
1234
820
  if (response.status === 200) {
1235
821
  if (mimeType === 'application/json') {
1236
822
  return response.json() as any;
@@ -1258,7 +844,7 @@ export const ApiApiFp = function(configuration?: Configuration) {
1258
844
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
1259
845
  const contentType = response.headers.get('Content-Type');
1260
846
  const mimeType = contentType ? contentType.replace(/;.*/, '') : undefined;
1261
-
847
+
1262
848
  if (response.status === 200) {
1263
849
  if (mimeType === 'application/json') {
1264
850
  return response.json() as any;
@@ -1271,48 +857,16 @@ export const ApiApiFp = function(configuration?: Configuration) {
1271
857
  },
1272
858
  /**
1273
859
  * @summary List Collections
1274
- * @param {string} [tenant]
1275
- * @param {string} [database]
1276
- * @param {number} [limit]
1277
- * @param {number} [offset]
1278
860
  * @param {RequestInit} [options] Override http request option.
1279
861
  * @throws {RequiredError}
1280
862
  */
1281
- listCollections(tenant: string | undefined, database: string | undefined, limit: number | undefined, offset: number | undefined, options?: RequestInit): (fetch?: FetchAPI, basePath?: string) => Promise<Api.ListCollections200Response> {
1282
- const localVarFetchArgs = ApiApiFetchParamCreator(configuration).listCollections(tenant, database, limit, offset, options);
863
+ listCollections(options?: RequestInit): (fetch?: FetchAPI, basePath?: string) => Promise<Api.ListCollections200Response> {
864
+ const localVarFetchArgs = ApiApiFetchParamCreator(configuration).listCollections(options);
1283
865
  return (fetch: FetchAPI = defaultFetch, basePath: string = BASE_PATH) => {
1284
866
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
1285
867
  const contentType = response.headers.get('Content-Type');
1286
868
  const mimeType = contentType ? contentType.replace(/;.*/, '') : undefined;
1287
-
1288
- if (response.status === 200) {
1289
- if (mimeType === 'application/json') {
1290
- return response.json() as any;
1291
- }
1292
- throw response;
1293
- }
1294
- if (response.status === 422) {
1295
- if (mimeType === 'application/json') {
1296
- throw response;
1297
- }
1298
- throw response;
1299
- }
1300
- throw response;
1301
- });
1302
- };
1303
- },
1304
- /**
1305
- * @summary Pre Flight Checks
1306
- * @param {RequestInit} [options] Override http request option.
1307
- * @throws {RequiredError}
1308
- */
1309
- preFlightChecks(options?: RequestInit): (fetch?: FetchAPI, basePath?: string) => Promise<Api.PreFlightChecks200Response> {
1310
- const localVarFetchArgs = ApiApiFetchParamCreator(configuration).preFlightChecks(options);
1311
- return (fetch: FetchAPI = defaultFetch, basePath: string = BASE_PATH) => {
1312
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
1313
- const contentType = response.headers.get('Content-Type');
1314
- const mimeType = contentType ? contentType.replace(/;.*/, '') : undefined;
1315
-
869
+
1316
870
  if (response.status === 200) {
1317
871
  if (mimeType === 'application/json') {
1318
872
  return response.json() as any;
@@ -1334,7 +888,7 @@ export const ApiApiFp = function(configuration?: Configuration) {
1334
888
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
1335
889
  const contentType = response.headers.get('Content-Type');
1336
890
  const mimeType = contentType ? contentType.replace(/;.*/, '') : undefined;
1337
-
891
+
1338
892
  if (response.status === 200) {
1339
893
  if (mimeType === 'application/json') {
1340
894
  return response.json() as any;
@@ -1356,7 +910,7 @@ export const ApiApiFp = function(configuration?: Configuration) {
1356
910
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
1357
911
  const contentType = response.headers.get('Content-Type');
1358
912
  const mimeType = contentType ? contentType.replace(/;.*/, '') : undefined;
1359
-
913
+
1360
914
  if (response.status === 200) {
1361
915
  if (mimeType === 'application/json') {
1362
916
  return response.json() as any;
@@ -1380,7 +934,7 @@ export const ApiApiFp = function(configuration?: Configuration) {
1380
934
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
1381
935
  const contentType = response.headers.get('Content-Type');
1382
936
  const mimeType = contentType ? contentType.replace(/;.*/, '') : undefined;
1383
-
937
+
1384
938
  if (response.status === 200) {
1385
939
  if (mimeType === 'application/json') {
1386
940
  return response.json() as any;
@@ -1410,7 +964,7 @@ export const ApiApiFp = function(configuration?: Configuration) {
1410
964
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
1411
965
  const contentType = response.headers.get('Content-Type');
1412
966
  const mimeType = contentType ? contentType.replace(/;.*/, '') : undefined;
1413
-
967
+
1414
968
  if (response.status === 200) {
1415
969
  if (mimeType === 'application/json') {
1416
970
  return response.json() as any;
@@ -1440,7 +994,7 @@ export const ApiApiFp = function(configuration?: Configuration) {
1440
994
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
1441
995
  const contentType = response.headers.get('Content-Type');
1442
996
  const mimeType = contentType ? contentType.replace(/;.*/, '') : undefined;
1443
-
997
+
1444
998
  if (response.status === 200) {
1445
999
  if (mimeType === 'application/json') {
1446
1000
  return response.json() as any;
@@ -1468,7 +1022,7 @@ export const ApiApiFp = function(configuration?: Configuration) {
1468
1022
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
1469
1023
  const contentType = response.headers.get('Content-Type');
1470
1024
  const mimeType = contentType ? contentType.replace(/;.*/, '') : undefined;
1471
-
1025
+
1472
1026
  if (response.status === 200) {
1473
1027
  if (mimeType === 'application/json') {
1474
1028
  return response.json() as any;
@@ -1540,83 +1094,34 @@ export class ApiApi extends BaseAPI {
1540
1094
  return ApiApiFp(this.configuration).count(collectionId, options)(this.fetch, this.basePath);
1541
1095
  }
1542
1096
 
1543
- /**
1544
- * @summary Count Collections
1545
- * @param {string} [tenant]
1546
- * @param {string} [database]
1547
- * @param {RequestInit} [options] Override http request option.
1548
- * @throws {RequiredError}
1549
- */
1550
- public countCollections(tenant: string | undefined, database: string | undefined, options?: RequestInit) {
1551
- return ApiApiFp(this.configuration).countCollections(tenant, database, options)(this.fetch, this.basePath);
1552
- }
1553
-
1554
1097
  /**
1555
1098
  * @summary Create Collection
1556
- * @param {string} [tenant]
1557
- * @param {string} [database]
1558
1099
  * @param {Api.CreateCollection} request
1559
1100
  * @param {RequestInit} [options] Override http request option.
1560
1101
  * @throws {RequiredError}
1561
1102
  */
1562
- public createCollection(tenant: string | undefined, database: string | undefined, request: Api.CreateCollection, options?: RequestInit) {
1563
- return ApiApiFp(this.configuration).createCollection(tenant, database, request, options)(this.fetch, this.basePath);
1564
- }
1565
-
1566
- /**
1567
- * @summary Create Database
1568
- * @param {string} [tenant]
1569
- * @param {Api.CreateDatabase} request
1570
- * @param {RequestInit} [options] Override http request option.
1571
- * @throws {RequiredError}
1572
- */
1573
- public createDatabase(tenant: string | undefined, request: Api.CreateDatabase, options?: RequestInit) {
1574
- return ApiApiFp(this.configuration).createDatabase(tenant, request, options)(this.fetch, this.basePath);
1575
- }
1576
-
1577
- /**
1578
- * @summary Create Tenant
1579
- * @param {Api.CreateTenant} request
1580
- * @param {RequestInit} [options] Override http request option.
1581
- * @throws {RequiredError}
1582
- */
1583
- public createTenant(request: Api.CreateTenant, options?: RequestInit) {
1584
- return ApiApiFp(this.configuration).createTenant(request, options)(this.fetch, this.basePath);
1103
+ public createCollection(request: Api.CreateCollection, options?: RequestInit) {
1104
+ return ApiApiFp(this.configuration).createCollection(request, options)(this.fetch, this.basePath);
1585
1105
  }
1586
1106
 
1587
1107
  /**
1588
1108
  * @summary Delete Collection
1589
1109
  * @param {string} collectionName
1590
- * @param {string} [tenant]
1591
- * @param {string} [database]
1592
1110
  * @param {RequestInit} [options] Override http request option.
1593
1111
  * @throws {RequiredError}
1594
1112
  */
1595
- public deleteCollection(collectionName: string, tenant: string | undefined, database: string | undefined, options?: RequestInit) {
1596
- return ApiApiFp(this.configuration).deleteCollection(collectionName, tenant, database, options)(this.fetch, this.basePath);
1113
+ public deleteCollection(collectionName: string, options?: RequestInit) {
1114
+ return ApiApiFp(this.configuration).deleteCollection(collectionName, options)(this.fetch, this.basePath);
1597
1115
  }
1598
1116
 
1599
1117
  /**
1600
1118
  * @summary Get Collection
1601
1119
  * @param {string} collectionName
1602
- * @param {string} [tenant]
1603
- * @param {string} [database]
1604
- * @param {RequestInit} [options] Override http request option.
1605
- * @throws {RequiredError}
1606
- */
1607
- public getCollection(collectionName: string, tenant: string | undefined, database: string | undefined, options?: RequestInit) {
1608
- return ApiApiFp(this.configuration).getCollection(collectionName, tenant, database, options)(this.fetch, this.basePath);
1609
- }
1610
-
1611
- /**
1612
- * @summary Get Database
1613
- * @param {string} database
1614
- * @param {string} [tenant]
1615
1120
  * @param {RequestInit} [options] Override http request option.
1616
1121
  * @throws {RequiredError}
1617
1122
  */
1618
- public getDatabase(database: string, tenant: string | undefined, options?: RequestInit) {
1619
- return ApiApiFp(this.configuration).getDatabase(database, tenant, options)(this.fetch, this.basePath);
1123
+ public getCollection(collectionName: string, options?: RequestInit) {
1124
+ return ApiApiFp(this.configuration).getCollection(collectionName, options)(this.fetch, this.basePath);
1620
1125
  }
1621
1126
 
1622
1127
  /**
@@ -1630,16 +1135,6 @@ export class ApiApi extends BaseAPI {
1630
1135
  return ApiApiFp(this.configuration).getNearestNeighbors(collectionId, request, options)(this.fetch, this.basePath);
1631
1136
  }
1632
1137
 
1633
- /**
1634
- * @summary Get Tenant
1635
- * @param {string} tenant
1636
- * @param {RequestInit} [options] Override http request option.
1637
- * @throws {RequiredError}
1638
- */
1639
- public getTenant(tenant: string, options?: RequestInit) {
1640
- return ApiApiFp(this.configuration).getTenant(tenant, options)(this.fetch, this.basePath);
1641
- }
1642
-
1643
1138
  /**
1644
1139
  * @summary Heartbeat
1645
1140
  * @param {RequestInit} [options] Override http request option.
@@ -1651,24 +1146,11 @@ export class ApiApi extends BaseAPI {
1651
1146
 
1652
1147
  /**
1653
1148
  * @summary List Collections
1654
- * @param {string} [tenant]
1655
- * @param {string} [database]
1656
- * @param {number} [limit]
1657
- * @param {number} [offset]
1658
- * @param {RequestInit} [options] Override http request option.
1659
- * @throws {RequiredError}
1660
- */
1661
- public listCollections(tenant: string | undefined, database: string | undefined, limit: number | undefined, offset: number | undefined, options?: RequestInit) {
1662
- return ApiApiFp(this.configuration).listCollections(tenant, database, limit, offset, options)(this.fetch, this.basePath);
1663
- }
1664
-
1665
- /**
1666
- * @summary Pre Flight Checks
1667
1149
  * @param {RequestInit} [options] Override http request option.
1668
1150
  * @throws {RequiredError}
1669
1151
  */
1670
- public preFlightChecks(options?: RequestInit) {
1671
- return ApiApiFp(this.configuration).preFlightChecks(options)(this.fetch, this.basePath);
1152
+ public listCollections(options?: RequestInit) {
1153
+ return ApiApiFp(this.configuration).listCollections(options)(this.fetch, this.basePath);
1672
1154
  }
1673
1155
 
1674
1156
  /**