@knowledge-stack/ksapi 1.112.0 → 1.114.0

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.
@@ -23,6 +23,8 @@ docs/AskResponse.md
23
23
  docs/AuditEventsApi.md
24
24
  docs/AuthApi.md
25
25
  docs/BrandingLogoType.md
26
+ docs/BulkDownloadApi.md
27
+ docs/BulkDownloadRequest.md
26
28
  docs/BulkTagRequest.md
27
29
  docs/CatalogColumnResponse.md
28
30
  docs/CatalogTableResponse.md
@@ -337,6 +339,7 @@ src/apis/ApiConnectionsApi.ts
337
339
  src/apis/ApiKeysApi.ts
338
340
  src/apis/AuditEventsApi.ts
339
341
  src/apis/AuthApi.ts
342
+ src/apis/BulkDownloadApi.ts
340
343
  src/apis/ChunkLineagesApi.ts
341
344
  src/apis/ChunksApi.ts
342
345
  src/apis/DataSourcesApi.ts
@@ -384,6 +387,7 @@ src/models/Args.ts
384
387
  src/models/AskRequest.ts
385
388
  src/models/AskResponse.ts
386
389
  src/models/BrandingLogoType.ts
390
+ src/models/BulkDownloadRequest.ts
387
391
  src/models/BulkTagRequest.ts
388
392
  src/models/CatalogColumnResponse.ts
389
393
  src/models/CatalogTableResponse.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @knowledge-stack/ksapi@1.112.0
1
+ # @knowledge-stack/ksapi@1.114.0
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -88,6 +88,7 @@ All URIs are relative to *http://localhost:8000*
88
88
  *AuthApi* | [**signout**](docs/AuthApi.md#signout) | **POST** /v1/auth/signout | Signout Handler
89
89
  *AuthApi* | [**ssoSignin**](docs/AuthApi.md#ssosignin) | **GET** /v1/auth/sso/{tenant_id}/signin | Sso Login Handler
90
90
  *AuthApi* | [**validatePwResetCode**](docs/AuthApi.md#validatepwresetcode) | **POST** /v1/auth/pw/validate_reset_code | Validate Reset Code Handler
91
+ *BulkDownloadApi* | [**startBulkDownload**](docs/BulkDownloadApi.md#startbulkdownload) | **POST** /v1/bulk-download | Start Bulk Download Handler
91
92
  *ChunkLineagesApi* | [**createChunkLineage**](docs/ChunkLineagesApi.md#createchunklineageoperation) | **POST** /v1/chunk-lineages | Create Chunk Lineage Handler
92
93
  *ChunkLineagesApi* | [**deleteChunkLineage**](docs/ChunkLineagesApi.md#deletechunklineage) | **DELETE** /v1/chunk-lineages | Delete Chunk Lineage Handler
93
94
  *ChunkLineagesApi* | [**getChunkLineage**](docs/ChunkLineagesApi.md#getchunklineage) | **GET** /v1/chunk-lineages/{chunk_id} | Get Chunk Lineage Handler
@@ -277,6 +278,7 @@ All URIs are relative to *http://localhost:8000*
277
278
  - [AskRequest](docs/AskRequest.md)
278
279
  - [AskResponse](docs/AskResponse.md)
279
280
  - [BrandingLogoType](docs/BrandingLogoType.md)
281
+ - [BulkDownloadRequest](docs/BulkDownloadRequest.md)
280
282
  - [BulkTagRequest](docs/BulkTagRequest.md)
281
283
  - [CatalogColumnResponse](docs/CatalogColumnResponse.md)
282
284
  - [CatalogTableResponse](docs/CatalogTableResponse.md)
@@ -581,7 +583,7 @@ and is automatically generated by the
581
583
  [OpenAPI Generator](https://openapi-generator.tech) project:
582
584
 
583
585
  - API version: `0.1.0`
584
- - Package version: `1.112.0`
586
+ - Package version: `1.114.0`
585
587
  - Generator version: `7.21.0`
586
588
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
587
589
 
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { BulkDownloadRequest } from '../models/index';
14
+ export interface StartBulkDownloadRequest {
15
+ bulkDownloadRequest: BulkDownloadRequest;
16
+ }
17
+ /**
18
+ * BulkDownloadApi - interface
19
+ *
20
+ * @export
21
+ * @interface BulkDownloadApiInterface
22
+ */
23
+ export interface BulkDownloadApiInterface {
24
+ /**
25
+ * Creates request options for startBulkDownload without sending the request
26
+ * @param {BulkDownloadRequest} bulkDownloadRequest
27
+ * @throws {RequiredError}
28
+ * @memberof BulkDownloadApiInterface
29
+ */
30
+ startBulkDownloadRequestOpts(requestParameters: StartBulkDownloadRequest): Promise<runtime.RequestOpts>;
31
+ /**
32
+ * Package the selected folders/documents into one ``.zip`` and stream it. Folders are enumerated recursively; trashed and unreadable items are excluded, and each included file is recorded as a ``document.downloaded`` audit event. The selection is capped — exceeding it returns ``400``. Files that cannot be included (no source, still ingesting) are skipped; the count is returned in the ``X-Bulk-Download-Skipped`` header.
33
+ * @summary Start Bulk Download Handler
34
+ * @param {BulkDownloadRequest} bulkDownloadRequest
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ * @memberof BulkDownloadApiInterface
38
+ */
39
+ startBulkDownloadRaw(requestParameters: StartBulkDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
40
+ /**
41
+ * Package the selected folders/documents into one ``.zip`` and stream it. Folders are enumerated recursively; trashed and unreadable items are excluded, and each included file is recorded as a ``document.downloaded`` audit event. The selection is capped — exceeding it returns ``400``. Files that cannot be included (no source, still ingesting) are skipped; the count is returned in the ``X-Bulk-Download-Skipped`` header.
42
+ * Start Bulk Download Handler
43
+ */
44
+ startBulkDownload(requestParameters: StartBulkDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
45
+ }
46
+ /**
47
+ *
48
+ */
49
+ export declare class BulkDownloadApi extends runtime.BaseAPI implements BulkDownloadApiInterface {
50
+ /**
51
+ * Creates request options for startBulkDownload without sending the request
52
+ */
53
+ startBulkDownloadRequestOpts(requestParameters: StartBulkDownloadRequest): Promise<runtime.RequestOpts>;
54
+ /**
55
+ * Package the selected folders/documents into one ``.zip`` and stream it. Folders are enumerated recursively; trashed and unreadable items are excluded, and each included file is recorded as a ``document.downloaded`` audit event. The selection is capped — exceeding it returns ``400``. Files that cannot be included (no source, still ingesting) are skipped; the count is returned in the ``X-Bulk-Download-Skipped`` header.
56
+ * Start Bulk Download Handler
57
+ */
58
+ startBulkDownloadRaw(requestParameters: StartBulkDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
59
+ /**
60
+ * Package the selected folders/documents into one ``.zip`` and stream it. Folders are enumerated recursively; trashed and unreadable items are excluded, and each included file is recorded as a ``document.downloaded`` audit event. The selection is capped — exceeding it returns ``400``. Files that cannot be included (no source, still ingesting) are skipped; the count is returned in the ``X-Bulk-Download-Skipped`` header.
61
+ * Start Bulk Download Handler
62
+ */
63
+ startBulkDownload(requestParameters: StartBulkDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
64
+ }
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Knowledge Stack API
6
+ * Knowledge Stack backend API for authentication and knowledge management
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
28
+ }) : function(o, v) {
29
+ o["default"] = v;
30
+ });
31
+ var __importStar = (this && this.__importStar) || (function () {
32
+ var ownKeys = function(o) {
33
+ ownKeys = Object.getOwnPropertyNames || function (o) {
34
+ var ar = [];
35
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
+ return ar;
37
+ };
38
+ return ownKeys(o);
39
+ };
40
+ return function (mod) {
41
+ if (mod && mod.__esModule) return mod;
42
+ var result = {};
43
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
44
+ __setModuleDefault(result, mod);
45
+ return result;
46
+ };
47
+ })();
48
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
49
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
50
+ return new (P || (P = Promise))(function (resolve, reject) {
51
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
52
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
53
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
54
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
55
+ });
56
+ };
57
+ Object.defineProperty(exports, "__esModule", { value: true });
58
+ exports.BulkDownloadApi = void 0;
59
+ const runtime = __importStar(require("../runtime"));
60
+ const index_1 = require("../models/index");
61
+ /**
62
+ *
63
+ */
64
+ class BulkDownloadApi extends runtime.BaseAPI {
65
+ /**
66
+ * Creates request options for startBulkDownload without sending the request
67
+ */
68
+ startBulkDownloadRequestOpts(requestParameters) {
69
+ return __awaiter(this, void 0, void 0, function* () {
70
+ if (requestParameters['bulkDownloadRequest'] == null) {
71
+ throw new runtime.RequiredError('bulkDownloadRequest', 'Required parameter "bulkDownloadRequest" was null or undefined when calling startBulkDownload().');
72
+ }
73
+ const queryParameters = {};
74
+ const headerParameters = {};
75
+ headerParameters['Content-Type'] = 'application/json';
76
+ if (this.configuration && this.configuration.accessToken) {
77
+ const token = this.configuration.accessToken;
78
+ const tokenString = yield token("bearerAuth", []);
79
+ if (tokenString) {
80
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
81
+ }
82
+ }
83
+ let urlPath = `/v1/bulk-download`;
84
+ return {
85
+ path: urlPath,
86
+ method: 'POST',
87
+ headers: headerParameters,
88
+ query: queryParameters,
89
+ body: (0, index_1.BulkDownloadRequestToJSON)(requestParameters['bulkDownloadRequest']),
90
+ };
91
+ });
92
+ }
93
+ /**
94
+ * Package the selected folders/documents into one ``.zip`` and stream it. Folders are enumerated recursively; trashed and unreadable items are excluded, and each included file is recorded as a ``document.downloaded`` audit event. The selection is capped — exceeding it returns ``400``. Files that cannot be included (no source, still ingesting) are skipped; the count is returned in the ``X-Bulk-Download-Skipped`` header.
95
+ * Start Bulk Download Handler
96
+ */
97
+ startBulkDownloadRaw(requestParameters, initOverrides) {
98
+ return __awaiter(this, void 0, void 0, function* () {
99
+ const requestOptions = yield this.startBulkDownloadRequestOpts(requestParameters);
100
+ const response = yield this.request(requestOptions, initOverrides);
101
+ return new runtime.BlobApiResponse(response);
102
+ });
103
+ }
104
+ /**
105
+ * Package the selected folders/documents into one ``.zip`` and stream it. Folders are enumerated recursively; trashed and unreadable items are excluded, and each included file is recorded as a ``document.downloaded`` audit event. The selection is capped — exceeding it returns ``400``. Files that cannot be included (no source, still ingesting) are skipped; the count is returned in the ``X-Bulk-Download-Skipped`` header.
106
+ * Start Bulk Download Handler
107
+ */
108
+ startBulkDownload(requestParameters, initOverrides) {
109
+ return __awaiter(this, void 0, void 0, function* () {
110
+ const response = yield this.startBulkDownloadRaw(requestParameters, initOverrides);
111
+ return yield response.value();
112
+ });
113
+ }
114
+ }
115
+ exports.BulkDownloadApi = BulkDownloadApi;
@@ -3,6 +3,7 @@ export * from './ApiConnectionsApi';
3
3
  export * from './ApiKeysApi';
4
4
  export * from './AuditEventsApi';
5
5
  export * from './AuthApi';
6
+ export * from './BulkDownloadApi';
6
7
  export * from './ChunkLineagesApi';
7
8
  export * from './ChunksApi';
8
9
  export * from './DataSourcesApi';
@@ -21,6 +21,7 @@ __exportStar(require("./ApiConnectionsApi"), exports);
21
21
  __exportStar(require("./ApiKeysApi"), exports);
22
22
  __exportStar(require("./AuditEventsApi"), exports);
23
23
  __exportStar(require("./AuthApi"), exports);
24
+ __exportStar(require("./BulkDownloadApi"), exports);
24
25
  __exportStar(require("./ChunkLineagesApi"), exports);
25
26
  __exportStar(require("./ChunksApi"), exports);
26
27
  __exportStar(require("./DataSourcesApi"), exports);
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { BulkDownloadRequest } from '../models/index';
14
+ export interface StartBulkDownloadRequest {
15
+ bulkDownloadRequest: BulkDownloadRequest;
16
+ }
17
+ /**
18
+ * BulkDownloadApi - interface
19
+ *
20
+ * @export
21
+ * @interface BulkDownloadApiInterface
22
+ */
23
+ export interface BulkDownloadApiInterface {
24
+ /**
25
+ * Creates request options for startBulkDownload without sending the request
26
+ * @param {BulkDownloadRequest} bulkDownloadRequest
27
+ * @throws {RequiredError}
28
+ * @memberof BulkDownloadApiInterface
29
+ */
30
+ startBulkDownloadRequestOpts(requestParameters: StartBulkDownloadRequest): Promise<runtime.RequestOpts>;
31
+ /**
32
+ * Package the selected folders/documents into one ``.zip`` and stream it. Folders are enumerated recursively; trashed and unreadable items are excluded, and each included file is recorded as a ``document.downloaded`` audit event. The selection is capped — exceeding it returns ``400``. Files that cannot be included (no source, still ingesting) are skipped; the count is returned in the ``X-Bulk-Download-Skipped`` header.
33
+ * @summary Start Bulk Download Handler
34
+ * @param {BulkDownloadRequest} bulkDownloadRequest
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ * @memberof BulkDownloadApiInterface
38
+ */
39
+ startBulkDownloadRaw(requestParameters: StartBulkDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
40
+ /**
41
+ * Package the selected folders/documents into one ``.zip`` and stream it. Folders are enumerated recursively; trashed and unreadable items are excluded, and each included file is recorded as a ``document.downloaded`` audit event. The selection is capped — exceeding it returns ``400``. Files that cannot be included (no source, still ingesting) are skipped; the count is returned in the ``X-Bulk-Download-Skipped`` header.
42
+ * Start Bulk Download Handler
43
+ */
44
+ startBulkDownload(requestParameters: StartBulkDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
45
+ }
46
+ /**
47
+ *
48
+ */
49
+ export declare class BulkDownloadApi extends runtime.BaseAPI implements BulkDownloadApiInterface {
50
+ /**
51
+ * Creates request options for startBulkDownload without sending the request
52
+ */
53
+ startBulkDownloadRequestOpts(requestParameters: StartBulkDownloadRequest): Promise<runtime.RequestOpts>;
54
+ /**
55
+ * Package the selected folders/documents into one ``.zip`` and stream it. Folders are enumerated recursively; trashed and unreadable items are excluded, and each included file is recorded as a ``document.downloaded`` audit event. The selection is capped — exceeding it returns ``400``. Files that cannot be included (no source, still ingesting) are skipped; the count is returned in the ``X-Bulk-Download-Skipped`` header.
56
+ * Start Bulk Download Handler
57
+ */
58
+ startBulkDownloadRaw(requestParameters: StartBulkDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
59
+ /**
60
+ * Package the selected folders/documents into one ``.zip`` and stream it. Folders are enumerated recursively; trashed and unreadable items are excluded, and each included file is recorded as a ``document.downloaded`` audit event. The selection is capped — exceeding it returns ``400``. Files that cannot be included (no source, still ingesting) are skipped; the count is returned in the ``X-Bulk-Download-Skipped`` header.
61
+ * Start Bulk Download Handler
62
+ */
63
+ startBulkDownload(requestParameters: StartBulkDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
64
+ }
@@ -0,0 +1,78 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import * as runtime from '../runtime';
24
+ import { BulkDownloadRequestToJSON, } from '../models/index';
25
+ /**
26
+ *
27
+ */
28
+ export class BulkDownloadApi extends runtime.BaseAPI {
29
+ /**
30
+ * Creates request options for startBulkDownload without sending the request
31
+ */
32
+ startBulkDownloadRequestOpts(requestParameters) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ if (requestParameters['bulkDownloadRequest'] == null) {
35
+ throw new runtime.RequiredError('bulkDownloadRequest', 'Required parameter "bulkDownloadRequest" was null or undefined when calling startBulkDownload().');
36
+ }
37
+ const queryParameters = {};
38
+ const headerParameters = {};
39
+ headerParameters['Content-Type'] = 'application/json';
40
+ if (this.configuration && this.configuration.accessToken) {
41
+ const token = this.configuration.accessToken;
42
+ const tokenString = yield token("bearerAuth", []);
43
+ if (tokenString) {
44
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
45
+ }
46
+ }
47
+ let urlPath = `/v1/bulk-download`;
48
+ return {
49
+ path: urlPath,
50
+ method: 'POST',
51
+ headers: headerParameters,
52
+ query: queryParameters,
53
+ body: BulkDownloadRequestToJSON(requestParameters['bulkDownloadRequest']),
54
+ };
55
+ });
56
+ }
57
+ /**
58
+ * Package the selected folders/documents into one ``.zip`` and stream it. Folders are enumerated recursively; trashed and unreadable items are excluded, and each included file is recorded as a ``document.downloaded`` audit event. The selection is capped — exceeding it returns ``400``. Files that cannot be included (no source, still ingesting) are skipped; the count is returned in the ``X-Bulk-Download-Skipped`` header.
59
+ * Start Bulk Download Handler
60
+ */
61
+ startBulkDownloadRaw(requestParameters, initOverrides) {
62
+ return __awaiter(this, void 0, void 0, function* () {
63
+ const requestOptions = yield this.startBulkDownloadRequestOpts(requestParameters);
64
+ const response = yield this.request(requestOptions, initOverrides);
65
+ return new runtime.BlobApiResponse(response);
66
+ });
67
+ }
68
+ /**
69
+ * Package the selected folders/documents into one ``.zip`` and stream it. Folders are enumerated recursively; trashed and unreadable items are excluded, and each included file is recorded as a ``document.downloaded`` audit event. The selection is capped — exceeding it returns ``400``. Files that cannot be included (no source, still ingesting) are skipped; the count is returned in the ``X-Bulk-Download-Skipped`` header.
70
+ * Start Bulk Download Handler
71
+ */
72
+ startBulkDownload(requestParameters, initOverrides) {
73
+ return __awaiter(this, void 0, void 0, function* () {
74
+ const response = yield this.startBulkDownloadRaw(requestParameters, initOverrides);
75
+ return yield response.value();
76
+ });
77
+ }
78
+ }
@@ -3,6 +3,7 @@ export * from './ApiConnectionsApi';
3
3
  export * from './ApiKeysApi';
4
4
  export * from './AuditEventsApi';
5
5
  export * from './AuthApi';
6
+ export * from './BulkDownloadApi';
6
7
  export * from './ChunkLineagesApi';
7
8
  export * from './ChunksApi';
8
9
  export * from './DataSourcesApi';
@@ -5,6 +5,7 @@ export * from './ApiConnectionsApi';
5
5
  export * from './ApiKeysApi';
6
6
  export * from './AuditEventsApi';
7
7
  export * from './AuthApi';
8
+ export * from './BulkDownloadApi';
8
9
  export * from './ChunkLineagesApi';
9
10
  export * from './ChunksApi';
10
11
  export * from './DataSourcesApi';
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * A selection of folders and/or documents to package into one ``.zip``.
14
+ *
15
+ * Folder ids and document ids are PDO ids. Folders are enumerated recursively;
16
+ * documents are included directly. At least one id must be provided.
17
+ * @export
18
+ * @interface BulkDownloadRequest
19
+ */
20
+ export interface BulkDownloadRequest {
21
+ /**
22
+ *
23
+ * @type {Array<string>}
24
+ * @memberof BulkDownloadRequest
25
+ */
26
+ folderIds?: Array<string>;
27
+ /**
28
+ *
29
+ * @type {Array<string>}
30
+ * @memberof BulkDownloadRequest
31
+ */
32
+ documentIds?: Array<string>;
33
+ }
34
+ export declare const BulkDownloadRequestPropertyValidationAttributesMap: {
35
+ [property: string]: {
36
+ maxLength?: number;
37
+ minLength?: number;
38
+ pattern?: string;
39
+ maximum?: number;
40
+ exclusiveMaximum?: boolean;
41
+ minimum?: number;
42
+ exclusiveMinimum?: boolean;
43
+ multipleOf?: number;
44
+ maxItems?: number;
45
+ minItems?: number;
46
+ uniqueItems?: boolean;
47
+ };
48
+ };
49
+ /**
50
+ * Check if a given object implements the BulkDownloadRequest interface.
51
+ */
52
+ export declare function instanceOfBulkDownloadRequest(value: object): value is BulkDownloadRequest;
53
+ export declare function BulkDownloadRequestFromJSON(json: any): BulkDownloadRequest;
54
+ export declare function BulkDownloadRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkDownloadRequest;
55
+ export declare function BulkDownloadRequestToJSON(json: any): BulkDownloadRequest;
56
+ export declare function BulkDownloadRequestToJSONTyped(value?: BulkDownloadRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,53 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export const BulkDownloadRequestPropertyValidationAttributesMap = {
15
+ folderIds: {
16
+ maxItems: 200,
17
+ uniqueItems: false,
18
+ },
19
+ documentIds: {
20
+ maxItems: 200,
21
+ uniqueItems: false,
22
+ },
23
+ };
24
+ /**
25
+ * Check if a given object implements the BulkDownloadRequest interface.
26
+ */
27
+ export function instanceOfBulkDownloadRequest(value) {
28
+ return true;
29
+ }
30
+ export function BulkDownloadRequestFromJSON(json) {
31
+ return BulkDownloadRequestFromJSONTyped(json, false);
32
+ }
33
+ export function BulkDownloadRequestFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'folderIds': json['folder_ids'] == null ? undefined : json['folder_ids'],
39
+ 'documentIds': json['document_ids'] == null ? undefined : json['document_ids'],
40
+ };
41
+ }
42
+ export function BulkDownloadRequestToJSON(json) {
43
+ return BulkDownloadRequestToJSONTyped(json, false);
44
+ }
45
+ export function BulkDownloadRequestToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'folder_ids': value['folderIds'],
51
+ 'document_ids': value['documentIds'],
52
+ };
53
+ }
@@ -14,6 +14,7 @@ export * from './Args';
14
14
  export * from './AskRequest';
15
15
  export * from './AskResponse';
16
16
  export * from './BrandingLogoType';
17
+ export * from './BulkDownloadRequest';
17
18
  export * from './BulkTagRequest';
18
19
  export * from './CatalogColumnResponse';
19
20
  export * from './CatalogTableResponse';
@@ -16,6 +16,7 @@ export * from './Args';
16
16
  export * from './AskRequest';
17
17
  export * from './AskResponse';
18
18
  export * from './BrandingLogoType';
19
+ export * from './BulkDownloadRequest';
19
20
  export * from './BulkTagRequest';
20
21
  export * from './CatalogColumnResponse';
21
22
  export * from './CatalogTableResponse';
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * A selection of folders and/or documents to package into one ``.zip``.
14
+ *
15
+ * Folder ids and document ids are PDO ids. Folders are enumerated recursively;
16
+ * documents are included directly. At least one id must be provided.
17
+ * @export
18
+ * @interface BulkDownloadRequest
19
+ */
20
+ export interface BulkDownloadRequest {
21
+ /**
22
+ *
23
+ * @type {Array<string>}
24
+ * @memberof BulkDownloadRequest
25
+ */
26
+ folderIds?: Array<string>;
27
+ /**
28
+ *
29
+ * @type {Array<string>}
30
+ * @memberof BulkDownloadRequest
31
+ */
32
+ documentIds?: Array<string>;
33
+ }
34
+ export declare const BulkDownloadRequestPropertyValidationAttributesMap: {
35
+ [property: string]: {
36
+ maxLength?: number;
37
+ minLength?: number;
38
+ pattern?: string;
39
+ maximum?: number;
40
+ exclusiveMaximum?: boolean;
41
+ minimum?: number;
42
+ exclusiveMinimum?: boolean;
43
+ multipleOf?: number;
44
+ maxItems?: number;
45
+ minItems?: number;
46
+ uniqueItems?: boolean;
47
+ };
48
+ };
49
+ /**
50
+ * Check if a given object implements the BulkDownloadRequest interface.
51
+ */
52
+ export declare function instanceOfBulkDownloadRequest(value: object): value is BulkDownloadRequest;
53
+ export declare function BulkDownloadRequestFromJSON(json: any): BulkDownloadRequest;
54
+ export declare function BulkDownloadRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkDownloadRequest;
55
+ export declare function BulkDownloadRequestToJSON(json: any): BulkDownloadRequest;
56
+ export declare function BulkDownloadRequestToJSONTyped(value?: BulkDownloadRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Knowledge Stack API
6
+ * Knowledge Stack backend API for authentication and knowledge management
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.BulkDownloadRequestPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfBulkDownloadRequest = instanceOfBulkDownloadRequest;
18
+ exports.BulkDownloadRequestFromJSON = BulkDownloadRequestFromJSON;
19
+ exports.BulkDownloadRequestFromJSONTyped = BulkDownloadRequestFromJSONTyped;
20
+ exports.BulkDownloadRequestToJSON = BulkDownloadRequestToJSON;
21
+ exports.BulkDownloadRequestToJSONTyped = BulkDownloadRequestToJSONTyped;
22
+ exports.BulkDownloadRequestPropertyValidationAttributesMap = {
23
+ folderIds: {
24
+ maxItems: 200,
25
+ uniqueItems: false,
26
+ },
27
+ documentIds: {
28
+ maxItems: 200,
29
+ uniqueItems: false,
30
+ },
31
+ };
32
+ /**
33
+ * Check if a given object implements the BulkDownloadRequest interface.
34
+ */
35
+ function instanceOfBulkDownloadRequest(value) {
36
+ return true;
37
+ }
38
+ function BulkDownloadRequestFromJSON(json) {
39
+ return BulkDownloadRequestFromJSONTyped(json, false);
40
+ }
41
+ function BulkDownloadRequestFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'folderIds': json['folder_ids'] == null ? undefined : json['folder_ids'],
47
+ 'documentIds': json['document_ids'] == null ? undefined : json['document_ids'],
48
+ };
49
+ }
50
+ function BulkDownloadRequestToJSON(json) {
51
+ return BulkDownloadRequestToJSONTyped(json, false);
52
+ }
53
+ function BulkDownloadRequestToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'folder_ids': value['folderIds'],
59
+ 'document_ids': value['documentIds'],
60
+ };
61
+ }
@@ -14,6 +14,7 @@ export * from './Args';
14
14
  export * from './AskRequest';
15
15
  export * from './AskResponse';
16
16
  export * from './BrandingLogoType';
17
+ export * from './BulkDownloadRequest';
17
18
  export * from './BulkTagRequest';
18
19
  export * from './CatalogColumnResponse';
19
20
  export * from './CatalogTableResponse';
@@ -32,6 +32,7 @@ __exportStar(require("./Args"), exports);
32
32
  __exportStar(require("./AskRequest"), exports);
33
33
  __exportStar(require("./AskResponse"), exports);
34
34
  __exportStar(require("./BrandingLogoType"), exports);
35
+ __exportStar(require("./BulkDownloadRequest"), exports);
35
36
  __exportStar(require("./BulkTagRequest"), exports);
36
37
  __exportStar(require("./CatalogColumnResponse"), exports);
37
38
  __exportStar(require("./CatalogTableResponse"), exports);
@@ -0,0 +1,84 @@
1
+ # BulkDownloadApi
2
+
3
+ All URIs are relative to *http://localhost:8000*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**startBulkDownload**](BulkDownloadApi.md#startbulkdownload) | **POST** /v1/bulk-download | Start Bulk Download Handler |
8
+
9
+
10
+
11
+ ## startBulkDownload
12
+
13
+ > Blob startBulkDownload(bulkDownloadRequest)
14
+
15
+ Start Bulk Download Handler
16
+
17
+ Package the selected folders/documents into one &#x60;&#x60;.zip&#x60;&#x60; and stream it. Folders are enumerated recursively; trashed and unreadable items are excluded, and each included file is recorded as a &#x60;&#x60;document.downloaded&#x60;&#x60; audit event. The selection is capped — exceeding it returns &#x60;&#x60;400&#x60;&#x60;. Files that cannot be included (no source, still ingesting) are skipped; the count is returned in the &#x60;&#x60;X-Bulk-Download-Skipped&#x60;&#x60; header.
18
+
19
+ ### Example
20
+
21
+ ```ts
22
+ import {
23
+ Configuration,
24
+ BulkDownloadApi,
25
+ } from '@knowledge-stack/ksapi';
26
+ import type { StartBulkDownloadRequest } from '@knowledge-stack/ksapi';
27
+
28
+ async function example() {
29
+ console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
30
+ const config = new Configuration({
31
+ // To configure API key authorization: cookieAuth
32
+ apiKey: "YOUR API KEY",
33
+ // Configure HTTP bearer authorization: bearerAuth
34
+ accessToken: "YOUR BEARER TOKEN",
35
+ });
36
+ const api = new BulkDownloadApi(config);
37
+
38
+ const body = {
39
+ // BulkDownloadRequest
40
+ bulkDownloadRequest: ...,
41
+ } satisfies StartBulkDownloadRequest;
42
+
43
+ try {
44
+ const data = await api.startBulkDownload(body);
45
+ console.log(data);
46
+ } catch (error) {
47
+ console.error(error);
48
+ }
49
+ }
50
+
51
+ // Run the test
52
+ example().catch(console.error);
53
+ ```
54
+
55
+ ### Parameters
56
+
57
+
58
+ | Name | Type | Description | Notes |
59
+ |------------- | ------------- | ------------- | -------------|
60
+ | **bulkDownloadRequest** | [BulkDownloadRequest](BulkDownloadRequest.md) | | |
61
+
62
+ ### Return type
63
+
64
+ **Blob**
65
+
66
+ ### Authorization
67
+
68
+ [cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
69
+
70
+ ### HTTP request headers
71
+
72
+ - **Content-Type**: `application/json`
73
+ - **Accept**: `application/zip`, `application/json`
74
+
75
+
76
+ ### HTTP response details
77
+ | Status code | Description | Response headers |
78
+ |-------------|-------------|------------------|
79
+ | **200** | A ZIP archive of the selected documents. | - |
80
+ | **422** | Validation Error | - |
81
+ | **0** | Error response. | - |
82
+
83
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
84
+
@@ -0,0 +1,37 @@
1
+
2
+ # BulkDownloadRequest
3
+
4
+ A selection of folders and/or documents to package into one ``.zip``. Folder ids and document ids are PDO ids. Folders are enumerated recursively; documents are included directly. At least one id must be provided.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `folderIds` | Array&lt;string&gt;
11
+ `documentIds` | Array&lt;string&gt;
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { BulkDownloadRequest } from '@knowledge-stack/ksapi'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "folderIds": null,
21
+ "documentIds": null,
22
+ } satisfies BulkDownloadRequest
23
+
24
+ console.log(example)
25
+
26
+ // Convert the instance to a JSON string
27
+ const exampleJSON: string = JSON.stringify(example)
28
+ console.log(exampleJSON)
29
+
30
+ // Parse the JSON string back to an object
31
+ const exampleParsed = JSON.parse(exampleJSON) as BulkDownloadRequest
32
+ console.log(exampleParsed)
33
+ ```
34
+
35
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
36
+
37
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowledge-stack/ksapi",
3
- "version": "1.112.0",
3
+ "version": "1.114.0",
4
4
  "description": "OpenAPI client for @knowledge-stack/ksapi",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -0,0 +1,130 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ BulkDownloadRequest,
19
+ ErrorResponse,
20
+ HTTPValidationError,
21
+ } from '../models/index';
22
+ import {
23
+ BulkDownloadRequestFromJSON,
24
+ BulkDownloadRequestToJSON,
25
+ ErrorResponseFromJSON,
26
+ ErrorResponseToJSON,
27
+ HTTPValidationErrorFromJSON,
28
+ HTTPValidationErrorToJSON,
29
+ } from '../models/index';
30
+
31
+ export interface StartBulkDownloadRequest {
32
+ bulkDownloadRequest: BulkDownloadRequest;
33
+ }
34
+
35
+ /**
36
+ * BulkDownloadApi - interface
37
+ *
38
+ * @export
39
+ * @interface BulkDownloadApiInterface
40
+ */
41
+ export interface BulkDownloadApiInterface {
42
+ /**
43
+ * Creates request options for startBulkDownload without sending the request
44
+ * @param {BulkDownloadRequest} bulkDownloadRequest
45
+ * @throws {RequiredError}
46
+ * @memberof BulkDownloadApiInterface
47
+ */
48
+ startBulkDownloadRequestOpts(requestParameters: StartBulkDownloadRequest): Promise<runtime.RequestOpts>;
49
+
50
+ /**
51
+ * Package the selected folders/documents into one ``.zip`` and stream it. Folders are enumerated recursively; trashed and unreadable items are excluded, and each included file is recorded as a ``document.downloaded`` audit event. The selection is capped — exceeding it returns ``400``. Files that cannot be included (no source, still ingesting) are skipped; the count is returned in the ``X-Bulk-Download-Skipped`` header.
52
+ * @summary Start Bulk Download Handler
53
+ * @param {BulkDownloadRequest} bulkDownloadRequest
54
+ * @param {*} [options] Override http request option.
55
+ * @throws {RequiredError}
56
+ * @memberof BulkDownloadApiInterface
57
+ */
58
+ startBulkDownloadRaw(requestParameters: StartBulkDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
59
+
60
+ /**
61
+ * Package the selected folders/documents into one ``.zip`` and stream it. Folders are enumerated recursively; trashed and unreadable items are excluded, and each included file is recorded as a ``document.downloaded`` audit event. The selection is capped — exceeding it returns ``400``. Files that cannot be included (no source, still ingesting) are skipped; the count is returned in the ``X-Bulk-Download-Skipped`` header.
62
+ * Start Bulk Download Handler
63
+ */
64
+ startBulkDownload(requestParameters: StartBulkDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
65
+
66
+ }
67
+
68
+ /**
69
+ *
70
+ */
71
+ export class BulkDownloadApi extends runtime.BaseAPI implements BulkDownloadApiInterface {
72
+
73
+ /**
74
+ * Creates request options for startBulkDownload without sending the request
75
+ */
76
+ async startBulkDownloadRequestOpts(requestParameters: StartBulkDownloadRequest): Promise<runtime.RequestOpts> {
77
+ if (requestParameters['bulkDownloadRequest'] == null) {
78
+ throw new runtime.RequiredError(
79
+ 'bulkDownloadRequest',
80
+ 'Required parameter "bulkDownloadRequest" was null or undefined when calling startBulkDownload().'
81
+ );
82
+ }
83
+
84
+ const queryParameters: any = {};
85
+
86
+ const headerParameters: runtime.HTTPHeaders = {};
87
+
88
+ headerParameters['Content-Type'] = 'application/json';
89
+
90
+ if (this.configuration && this.configuration.accessToken) {
91
+ const token = this.configuration.accessToken;
92
+ const tokenString = await token("bearerAuth", []);
93
+
94
+ if (tokenString) {
95
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
96
+ }
97
+ }
98
+
99
+ let urlPath = `/v1/bulk-download`;
100
+
101
+ return {
102
+ path: urlPath,
103
+ method: 'POST',
104
+ headers: headerParameters,
105
+ query: queryParameters,
106
+ body: BulkDownloadRequestToJSON(requestParameters['bulkDownloadRequest']),
107
+ };
108
+ }
109
+
110
+ /**
111
+ * Package the selected folders/documents into one ``.zip`` and stream it. Folders are enumerated recursively; trashed and unreadable items are excluded, and each included file is recorded as a ``document.downloaded`` audit event. The selection is capped — exceeding it returns ``400``. Files that cannot be included (no source, still ingesting) are skipped; the count is returned in the ``X-Bulk-Download-Skipped`` header.
112
+ * Start Bulk Download Handler
113
+ */
114
+ async startBulkDownloadRaw(requestParameters: StartBulkDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
115
+ const requestOptions = await this.startBulkDownloadRequestOpts(requestParameters);
116
+ const response = await this.request(requestOptions, initOverrides);
117
+
118
+ return new runtime.BlobApiResponse(response);
119
+ }
120
+
121
+ /**
122
+ * Package the selected folders/documents into one ``.zip`` and stream it. Folders are enumerated recursively; trashed and unreadable items are excluded, and each included file is recorded as a ``document.downloaded`` audit event. The selection is capped — exceeding it returns ``400``. Files that cannot be included (no source, still ingesting) are skipped; the count is returned in the ``X-Bulk-Download-Skipped`` header.
123
+ * Start Bulk Download Handler
124
+ */
125
+ async startBulkDownload(requestParameters: StartBulkDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
126
+ const response = await this.startBulkDownloadRaw(requestParameters, initOverrides);
127
+ return await response.value();
128
+ }
129
+
130
+ }
package/src/apis/index.ts CHANGED
@@ -5,6 +5,7 @@ export * from './ApiConnectionsApi';
5
5
  export * from './ApiKeysApi';
6
6
  export * from './AuditEventsApi';
7
7
  export * from './AuthApi';
8
+ export * from './BulkDownloadApi';
8
9
  export * from './ChunkLineagesApi';
9
10
  export * from './ChunksApi';
10
11
  export * from './DataSourcesApi';
@@ -0,0 +1,101 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ * A selection of folders and/or documents to package into one ``.zip``.
18
+ *
19
+ * Folder ids and document ids are PDO ids. Folders are enumerated recursively;
20
+ * documents are included directly. At least one id must be provided.
21
+ * @export
22
+ * @interface BulkDownloadRequest
23
+ */
24
+ export interface BulkDownloadRequest {
25
+ /**
26
+ *
27
+ * @type {Array<string>}
28
+ * @memberof BulkDownloadRequest
29
+ */
30
+ folderIds?: Array<string>;
31
+ /**
32
+ *
33
+ * @type {Array<string>}
34
+ * @memberof BulkDownloadRequest
35
+ */
36
+ documentIds?: Array<string>;
37
+ }
38
+ export const BulkDownloadRequestPropertyValidationAttributesMap: {
39
+ [property: string]: {
40
+ maxLength?: number,
41
+ minLength?: number,
42
+ pattern?: string,
43
+ maximum?: number,
44
+ exclusiveMaximum?: boolean,
45
+ minimum?: number,
46
+ exclusiveMinimum?: boolean,
47
+ multipleOf?: number,
48
+ maxItems?: number,
49
+ minItems?: number,
50
+ uniqueItems?: boolean
51
+ }
52
+ } = {
53
+ folderIds: {
54
+ maxItems: 200,
55
+ uniqueItems: false,
56
+ },
57
+ documentIds: {
58
+ maxItems: 200,
59
+ uniqueItems: false,
60
+ },
61
+ }
62
+
63
+
64
+ /**
65
+ * Check if a given object implements the BulkDownloadRequest interface.
66
+ */
67
+ export function instanceOfBulkDownloadRequest(value: object): value is BulkDownloadRequest {
68
+ return true;
69
+ }
70
+
71
+ export function BulkDownloadRequestFromJSON(json: any): BulkDownloadRequest {
72
+ return BulkDownloadRequestFromJSONTyped(json, false);
73
+ }
74
+
75
+ export function BulkDownloadRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkDownloadRequest {
76
+ if (json == null) {
77
+ return json;
78
+ }
79
+ return {
80
+
81
+ 'folderIds': json['folder_ids'] == null ? undefined : json['folder_ids'],
82
+ 'documentIds': json['document_ids'] == null ? undefined : json['document_ids'],
83
+ };
84
+ }
85
+
86
+ export function BulkDownloadRequestToJSON(json: any): BulkDownloadRequest {
87
+ return BulkDownloadRequestToJSONTyped(json, false);
88
+ }
89
+
90
+ export function BulkDownloadRequestToJSONTyped(value?: BulkDownloadRequest | null, ignoreDiscriminator: boolean = false): any {
91
+ if (value == null) {
92
+ return value;
93
+ }
94
+
95
+ return {
96
+
97
+ 'folder_ids': value['folderIds'],
98
+ 'document_ids': value['documentIds'],
99
+ };
100
+ }
101
+
@@ -16,6 +16,7 @@ export * from './Args';
16
16
  export * from './AskRequest';
17
17
  export * from './AskResponse';
18
18
  export * from './BrandingLogoType';
19
+ export * from './BulkDownloadRequest';
19
20
  export * from './BulkTagRequest';
20
21
  export * from './CatalogColumnResponse';
21
22
  export * from './CatalogTableResponse';